(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[564],{9564:(oi,xr,Nt)=>{"use strict";Nt.r(xr),Nt.d(xr,{CLNModule:()=>rf});var Et=Nt(9808),_t=Nt(1402),Pn=Nt(8878),A=Nt(5e3),Ct=Nt(7093),Y=Nt(5899);function I(r,y){1&r&&A._UZ(0,"mat-progress-bar",3)}let n=(()=>{class r{constructor(t){this.router=t,this.loading=!1,this.router.events.subscribe(s=>{switch(!0){case s instanceof _t.OD:this.loading=!0;break;case s instanceof _t.m2:case s instanceof _t.gk:case s instanceof _t.Q3:this.loading=!1}})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-root"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["color","primary","mode","indeterminate",4,"ngIf"],["outlet","outlet"],["color","primary","mode","indeterminate"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,I,1,0,"mat-progress-bar",1),A._UZ(2,"router-outlet",null,2),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",s.loading))},directives:[Ct.xw,Ct.yH,Ct.Wh,Et.O5,Y.pW,_t.lC],styles:[""],data:{animation:[Pn.g]}}),r})();var c=Nt(7579),i=Nt(2722),o=Nt(1365),l=Nt(534),h=Nt(801),a=Nt(7731),g=Nt(9828),E=Nt(5043),u=Nt(5620),C=Nt(6642),e=Nt(62),f=Nt(9444),B=Nt(3954),w=Nt(9224),Q=Nt(7423),p=Nt(2181),S=Nt(5245),m=Nt(3322);const d=function(r){return{backgroundColor:r}};function v(r,y){if(1&r&&A._UZ(0,"span",6),2&r){const t=A.oxw();A.Q6J("ngStyle",A.VKq(1,d,"#"+(null==t.information?null:t.information.color)))}}function D(r,y){if(1&r&&(A.TgZ(0,"div")(1,"h4",1),A._uU(2,"Color"),A.qZA(),A.TgZ(3,"div",2),A._UZ(4,"span",7),A._uU(5),A.ALo(6,"uppercase"),A.qZA()()),2&r){const t=A.oxw();A.xp6(4),A.Q6J("ngStyle",A.VKq(4,d,"#"+(null==t.information?null:t.information.color))),A.xp6(1),A.hij(" ",A.lcZ(6,2,null==t.information?null:t.information.color)," ")}}function U(r,y){if(1&r&&(A.TgZ(0,"span",2),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(t)}}let T=(()=>{class r{constructor(t){this.commonService=t,this.chains=[""]}ngOnChanges(){this.information&&this.information.chains&&this.information.chains.length>0&&(this.chains=[""],this.information.chains.forEach(t=>{this.chains.push(this.commonService.titleCase(t.chain)+" "+this.commonService.titleCase(t.network))}))}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[A.TTD],decls:17,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["class","dashboard-node-dot dot",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","overflow-wrap dashboard-info-value",4,"ngFor","ngForOf"],[1,"dashboard-node-dot","dot",3,"ngStyle"],[1,"dashboard-node-square",3,"ngStyle"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0)(1,"div")(2,"h4",1),A._uU(3,"Alias"),A.qZA(),A.TgZ(4,"div",2),A._uU(5),A.YNc(6,v,1,3,"span",3),A.qZA()(),A.YNc(7,D,7,6,"div",4),A.TgZ(8,"div")(9,"h4",1),A._uU(10,"Implementation"),A.qZA(),A.TgZ(11,"div",2),A._uU(12),A.qZA()(),A.TgZ(13,"div")(14,"h4",1),A._uU(15,"Chain"),A.qZA(),A.YNc(16,U,2,1,"span",5),A.qZA()()),2&t&&(A.xp6(5),A.hij(" ",null==s.information?null:s.information.alias," "),A.xp6(1),A.Q6J("ngIf",!s.showColorFieldSeparately),A.xp6(1),A.Q6J("ngIf",s.showColorFieldSeparately),A.xp6(5),A.Oqu(null!=s.information&&s.information.lnImplementation||null!=s.information&&s.information.version?(null==s.information?null:s.information.lnImplementation)+" "+(null==s.information?null:s.information.version):""),A.xp6(4),A.Q6J("ngForOf",s.chains))},directives:[Ct.xw,Ct.yH,Ct.Wh,Et.O5,Et.PC,m.Zl,Et.sg],pipes:[Et.gd],styles:[""]}),r})();function F(r,y){if(1&r&&(A.TgZ(0,"div",2)(1,"div")(2,"h4",3),A._uU(3,"Lightning"),A.qZA(),A.TgZ(4,"div",4),A._uU(5),A.ALo(6,"number"),A.qZA(),A._UZ(7,"mat-progress-bar",5),A.qZA(),A.TgZ(8,"div")(9,"h4",3),A._uU(10,"On-chain"),A.qZA(),A.TgZ(11,"div",4),A._uU(12),A.ALo(13,"number"),A.qZA(),A._UZ(14,"mat-progress-bar",5),A.qZA(),A.TgZ(15,"div")(16,"h4",3),A._uU(17,"Total"),A.qZA(),A.TgZ(18,"div",4),A._uU(19),A.ALo(20,"number"),A.qZA()()()),2&r){const t=A.oxw();A.xp6(5),A.hij("",A.lcZ(6,5,t.balances.lightning)," Sats"),A.xp6(2),A.s9C("value",t.balances.lightning/t.balances.total*100),A.xp6(5),A.hij("",A.lcZ(13,7,t.balances.onchain)," Sats"),A.xp6(2),A.s9C("value",t.balances.onchain/t.balances.total*100),A.xp6(5),A.hij("",A.lcZ(20,9,t.balances.total)," Sats")}}function z(r,y){if(1&r&&(A.TgZ(0,"div",6)(1,"p"),A._uU(2),A.qZA()()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let b=(()=>{class r{constructor(){this.balances={onchain:0,lightning:0,total:0}}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-balances-info"]],inputs:{balances:"balances",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,s){if(1&t&&(A.YNc(0,F,21,11,"div",0),A.YNc(1,z,3,1,"ng-template",null,1,A.W1O)),2&t){const L=A.MAs(2);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",L)}},directives:[Et.O5,Ct.xw,Ct.yH,Ct.Wh,Y.pW],pipes:[Et.JJ],styles:[""]}),r})();var Z=Nt(7322),aA=Nt(7238),AA=Nt(4834),lA=Nt(8129);const MA=function(){return["../connections/channels/open"]},cA=function(r){return{filter:r}};function gA(r,y){if(1&r&&(A.TgZ(0,"div",19)(1,"a",20),A._uU(2),A.ALo(3,"slice"),A.qZA(),A.TgZ(4,"div",6)(5,"mat-hint",21)(6,"strong",8),A._uU(7,"Local:"),A.qZA(),A._uU(8),A.ALo(9,"number"),A.qZA(),A.TgZ(10,"mat-hint",22),A._UZ(11,"fa-icon",23),A._uU(12),A.ALo(13,"number"),A.qZA(),A.TgZ(14,"mat-hint",24)(15,"strong",8),A._uU(16,"Remote:"),A.qZA(),A._uU(17),A.ALo(18,"number"),A.qZA()(),A._UZ(19,"mat-progress-bar",25),A.qZA()),2&r){const t=y.$implicit,s=A.oxw(3);A.xp6(1),A.s9C("matTooltip",t.alias||t.id),A.s9C("matTooltipDisabled",(t.alias||t.id).length<26),A.Q6J("routerLink",A.DdM(23,MA))("state",A.VKq(24,cA,t.id)),A.xp6(1),A.AsE(" ",A.Dn7(3,11,t.alias||t.id,0,24),"",(t.alias||t.id).length>25?"...":""," "),A.xp6(6),A.hij("",A.xi3(9,15,t.msatoshi_to_us/1e3||0,"1.0-0")," Sats"),A.xp6(3),A.Q6J("icon",s.faBalanceScale),A.xp6(1),A.hij(" (",A.lcZ(13,18,t.balancedness||0),") "),A.xp6(5),A.hij("",A.xi3(18,20,t.msatoshi_to_them/1e3||0,"1.0-0")," Sats"),A.xp6(2),A.s9C("value",t.msatoshi_to_us&&t.msatoshi_to_us>0?+t.msatoshi_to_us/(+t.msatoshi_to_us+ +t.msatoshi_to_them)*100:0)}}function BA(r,y){if(1&r&&(A.TgZ(0,"div",17),A.YNc(1,gA,20,26,"div",18),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngForOf",t.activeChannels)}}function DA(r,y){if(1&r&&(A.TgZ(0,"div",3)(1,"div",4)(2,"span",5),A._uU(3,"Total Capacity"),A.qZA(),A.TgZ(4,"div",6)(5,"mat-hint",7)(6,"strong",8),A._uU(7,"Local:"),A.qZA(),A._uU(8),A.ALo(9,"number"),A.qZA(),A.TgZ(10,"mat-hint",9),A._UZ(11,"fa-icon",10),A._uU(12),A.ALo(13,"number"),A.qZA(),A.TgZ(14,"mat-hint",11)(15,"strong",8),A._uU(16,"Remote:"),A.qZA(),A._uU(17),A.ALo(18,"number"),A.qZA()(),A._UZ(19,"mat-progress-bar",12),A.qZA(),A.TgZ(20,"div",13),A._UZ(21,"mat-divider",14),A.qZA(),A.TgZ(22,"div",15),A.YNc(23,BA,2,1,"div",16),A.qZA()()),2&r){const t=A.oxw(),s=A.MAs(2);A.xp6(8),A.hij("",A.xi3(9,7,(null==t.channelBalances?null:t.channelBalances.localBalance)||0,"1.0-0")," Sats"),A.xp6(3),A.Q6J("icon",t.faBalanceScale),A.xp6(1),A.hij(" (",A.lcZ(13,10,(null==t.channelBalances?null:t.channelBalances.balancedness)||0),") "),A.xp6(5),A.hij("",A.xi3(18,12,(null==t.channelBalances?null:t.channelBalances.remoteBalance)||0,"1.0-0")," Sats"),A.xp6(2),A.s9C("value",null!=t.channelBalances&&t.channelBalances.localBalance&&(null==t.channelBalances?null:t.channelBalances.localBalance)>0?+(null==t.channelBalances?null:t.channelBalances.localBalance)/(+(null==t.channelBalances?null:t.channelBalances.localBalance)+ +(null==t.channelBalances?null:t.channelBalances.remoteBalance))*100:0),A.xp6(4),A.Q6J("ngIf",t.activeChannels&&t.activeChannels.length>0)("ngIfElse",s)}}function FA(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",26),A._uU(1," No channels available. "),A.TgZ(2,"button",27),A.NdJ("click",function(){return A.CHM(t),A.oxw().goToChannels()}),A._uU(3,"Open Channel"),A.qZA()()}}function _(r,y){if(1&r&&(A.TgZ(0,"div",28)(1,"p"),A._uU(2),A.qZA()()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let dA=(()=>{class r{constructor(t){this.router=t,this.faBalanceScale=h.DL8,this.faDumbbell=h.FlN,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/cln/connections")}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",activeChannels:"activeChannels",sortBy:"sortBy",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[1,"channels-capacity-scroll",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"routerLink","state","matTooltip","matTooltipDisabled"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90","color-primary"],["matTooltip","Balance Score",1,"color-primary","mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90","color-primary"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1","w-100"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,s){if(1&t&&(A.YNc(0,DA,24,15,"div",0),A.YNc(1,FA,4,0,"ng-template",null,1,A.W1O),A.YNc(3,_,3,1,"ng-template",null,2,A.W1O)),2&t){const L=A.MAs(4);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",L)}},directives:[Et.O5,Ct.xw,Ct.Wh,Ct.yH,Z.bx,f.BN,aA.gM,Y.pW,AA.d,lA.$V,Et.sg,_t.yS,Q.lW],pipes:[Et.JJ,Et.OU],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),r})();function uA(r,y){if(1&r&&(A.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),A._uU(4,"Total"),A.qZA(),A.TgZ(5,"div",5),A._uU(6),A.ALo(7,"number"),A.qZA()()(),A.TgZ(8,"div",3)(9,"div")(10,"h4",4),A._uU(11,"Transactions"),A.qZA(),A.TgZ(12,"div",5),A._uU(13),A.ALo(14,"number"),A.qZA()()()()),2&r){const t=A.oxw();A.xp6(6),A.hij("",A.lcZ(7,2,(null==t.fees?null:t.fees.feeCollected)/1e3)," Sats"),A.xp6(7),A.Oqu(A.lcZ(14,4,null==t.fees?null:t.fees.totalTxCount))}}function CA(r,y){if(1&r&&(A.TgZ(0,"div",6)(1,"p"),A._uU(2),A.qZA()()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let SA=(()=>{class r{constructor(){this.totalFees=[{name:"Total",value:0}]}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,s){if(1&t&&(A.YNc(0,uA,15,6,"div",0),A.YNc(1,CA,3,1,"ng-template",null,1,A.W1O)),2&t){const L=A.MAs(2);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",L)}},directives:[Et.O5,Ct.xw,Ct.yH,Ct.Wh],pipes:[Et.JJ],styles:[""]}),r})();function bA(r,y){if(1&r&&(A.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),A._uU(4,"Active"),A.qZA(),A.TgZ(5,"div",5),A._UZ(6,"span",6),A._uU(7),A.ALo(8,"number"),A.qZA()(),A.TgZ(9,"div")(10,"h4",4),A._uU(11,"Pending"),A.qZA(),A.TgZ(12,"div",5),A._UZ(13,"span",7),A._uU(14),A.ALo(15,"number"),A.qZA()(),A.TgZ(16,"div")(17,"h4",4),A._uU(18,"Inactive"),A.qZA(),A.TgZ(19,"div",5),A._UZ(20,"span",8),A._uU(21),A.ALo(22,"number"),A.qZA()()(),A.TgZ(23,"div",3)(24,"div")(25,"h4",4),A._uU(26,"Capacity"),A.qZA(),A.TgZ(27,"div",5),A._uU(28),A.ALo(29,"number"),A.qZA()(),A.TgZ(30,"div")(31,"h4",4),A._uU(32,"Capacity"),A.qZA(),A.TgZ(33,"div",5),A._uU(34),A.ALo(35,"number"),A.qZA()(),A.TgZ(36,"div")(37,"h4",4),A._uU(38,"Capacity"),A.qZA(),A.TgZ(39,"div",5),A._uU(40),A.ALo(41,"number"),A.qZA()()()()),2&r){const t=A.oxw();A.xp6(7),A.Oqu(A.lcZ(8,6,(null==t.channelsStatus||null==t.channelsStatus.active?null:t.channelsStatus.active.channels)||0)),A.xp6(7),A.Oqu(A.lcZ(15,8,(null==t.channelsStatus||null==t.channelsStatus.pending?null:t.channelsStatus.pending.channels)||0)),A.xp6(7),A.Oqu(A.lcZ(22,10,(null==t.channelsStatus||null==t.channelsStatus.inactive?null:t.channelsStatus.inactive.channels)||0)),A.xp6(7),A.hij("",A.lcZ(29,12,(null==t.channelsStatus||null==t.channelsStatus.active?null:t.channelsStatus.active.capacity)||0)," Sats"),A.xp6(6),A.hij("",A.lcZ(35,14,(null==t.channelsStatus||null==t.channelsStatus.pending?null:t.channelsStatus.pending.capacity)||0)," Sats"),A.xp6(6),A.hij("",A.lcZ(41,16,(null==t.channelsStatus||null==t.channelsStatus.inactive?null:t.channelsStatus.inactive.capacity)||0)," Sats")}}function XA(r,y){if(1&r&&(A.TgZ(0,"div",9)(1,"p"),A._uU(2),A.qZA()()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let q=(()=>{class r{constructor(){this.channelsStatus={active:{},pending:{},inactive:{}}}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-status-info"]],inputs:{channelsStatus:"channelsStatus",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],[1,"dot","tiny-dot","green"],[1,"dot","tiny-dot","yellow"],[1,"dot","tiny-dot","grey"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,s){if(1&t&&(A.YNc(0,bA,42,18,"div",0),A.YNc(1,XA,3,1,"ng-template",null,1,A.W1O)),2&t){const L=A.MAs(2);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",L)}},directives:[Et.O5,Ct.xw,Ct.yH,Ct.Wh],pipes:[Et.JJ],styles:[""]}),r})();function O(r,y){if(1&r&&(A.TgZ(0,"mat-hint",19)(1,"strong",20),A._uU(2,"Capacity: "),A.qZA(),A._uU(3),A.ALo(4,"number"),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(3),A.hij("",A.xi3(4,1,t.msatoshi_to_them/1e3||0,"1.0-0")," Sats")}}function $(r,y){if(1&r&&(A.TgZ(0,"mat-hint",19)(1,"strong",20),A._uU(2,"Capacity: "),A.qZA(),A._uU(3),A.ALo(4,"number"),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(3),A.hij("",A.xi3(4,1,t.msatoshi_to_us/1e3||0,"1.0-0")," Sats")}}function W(r,y){if(1&r&&A._UZ(0,"mat-progress-bar",21),2&r){const t=A.oxw().$implicit,s=A.oxw(3);A.s9C("value",s.totalLiquidity>0?(+t.msatoshi_to_them/1e3||0)/s.totalLiquidity*100:0)}}function hA(r,y){if(1&r&&A._UZ(0,"mat-progress-bar",21),2&r){const t=A.oxw().$implicit,s=A.oxw(3);A.s9C("value",s.totalLiquidity>0?(+t.msatoshi_to_us/1e3||0)/s.totalLiquidity*100:0)}}const mA=function(){return["../connections/channels/open"]},nA=function(r){return{filter:r}};function EA(r,y){if(1&r&&(A.TgZ(0,"div",14)(1,"a",15),A._uU(2),A.ALo(3,"slice"),A.qZA(),A.TgZ(4,"div",16),A.YNc(5,O,5,4,"mat-hint",17),A.YNc(6,$,5,4,"mat-hint",17),A.qZA(),A.YNc(7,W,1,1,"mat-progress-bar",18),A.YNc(8,hA,1,1,"mat-progress-bar",18),A.qZA()),2&r){const t=y.$implicit,s=A.oxw(3);A.xp6(1),A.s9C("matTooltip",t.alias||t.id),A.s9C("matTooltipDisabled",(t.alias||t.id).length<26),A.Q6J("routerLink",A.DdM(14,mA))("state",A.VKq(15,nA,t.id)),A.xp6(1),A.AsE(" ",A.Dn7(3,10,t.alias||t.id,0,24),"",(t.alias||t.id).length>25?"...":""," "),A.xp6(3),A.Q6J("ngIf","In"===s.direction),A.xp6(1),A.Q6J("ngIf","Out"===s.direction),A.xp6(1),A.Q6J("ngIf","In"===s.direction),A.xp6(1),A.Q6J("ngIf","Out"===s.direction)}}function GA(r,y){if(1&r&&(A.TgZ(0,"div",12),A.YNc(1,EA,9,17,"div",13),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngForOf",t.activeChannels)}}const et=function(r,y,t){return{"mb-4":r,"mb-2":y,"mb-1":t}};function ot(r,y){if(1&r&&(A.TgZ(0,"div",3)(1,"div",4)(2,"span",5),A._uU(3,"Total Capacity"),A.qZA(),A.TgZ(4,"mat-hint",6),A._uU(5),A.ALo(6,"number"),A.qZA(),A._UZ(7,"mat-progress-bar",7),A.qZA(),A.TgZ(8,"div",8),A._UZ(9,"mat-divider",9),A.qZA(),A.TgZ(10,"div",10),A.YNc(11,GA,2,1,"div",11),A.qZA()()),2&r){const t=A.oxw(),s=A.MAs(2);A.Q6J("ngClass",A.kEZ(7,et,t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM,t.screenSize===t.screenSizeEnum.MD,t.screenSize===t.screenSizeEnum.LG||t.screenSize===t.screenSizeEnum.XL)),A.xp6(5),A.hij("",A.xi3(6,4,t.totalLiquidity,"1.0-0")," Sats"),A.xp6(6),A.Q6J("ngIf",t.activeChannels&&t.activeChannels.length>0)("ngIfElse",s)}}function TA(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"button",24),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).goToChannels()}),A._uU(1,"Open Channel"),A.qZA()}}function it(r,y){if(1&r&&(A.TgZ(0,"div",22),A._uU(1," No channels available. "),A.YNc(2,TA,2,0,"button",23),A.qZA()),2&r){const t=A.oxw();A.xp6(2),A.Q6J("ngIf","Out"===t.direction)}}function mt(r,y){if(1&r&&(A.TgZ(0,"div",25)(1,"p"),A._uU(2),A.qZA()()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let It=(()=>{class r{constructor(t,s){this.router=t,this.commonService=s,this.screenSize="",this.screenSizeEnum=a.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}goToChannels(){this.router.navigateByUrl("/cln/connections")}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(_t.F0),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",activeChannels:"activeChannels",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",3,"ngClass",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","9","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],["fxLayout","column","fxFlex.gt-sm","88","fxFlex","84","fxLayoutAlign","start start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","class","w-100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100",1,"w-100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"routerLink","state","matTooltip","matTooltipDisabled"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","100","fxLayoutAlign","start center","class","font-size-90 color-primary",4,"ngIf"],["class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,s){if(1&t&&(A.YNc(0,ot,12,11,"div",0),A.YNc(1,it,3,1,"ng-template",null,1,A.W1O),A.YNc(3,mt,3,1,"ng-template",null,2,A.W1O)),2&t){const L=A.MAs(4);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",L)}},directives:[Et.O5,Ct.xw,Ct.Wh,Ct.yH,Et.mk,m.oO,Z.bx,Y.pW,AA.d,lA.$V,Et.sg,_t.yS,aA.gM,Q.lW],pipes:[Et.JJ,Et.OU],styles:[""]}),r})();var ft=Nt(3251),JA=Nt(9300),WA=Nt(6087),rt=Nt(4847),yA=Nt(2075),Mt=Nt(8966),ht=Nt(429),OA=Nt(3075),Yt=Nt(7531),H=Nt(3390),k=Nt(6534),R=Nt(4107),QA=Nt(508),wA=Nt(2368);function RA(r,y){if(1&r&&(A.TgZ(0,"mat-option",27),A._uU(1),A.ALo(2,"titlecase"),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t),A.xp6(1),A.Oqu(A.lcZ(2,2,t))}}function rA(r,y){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.invoiceError)}}function ct(r,y){if(1&r&&(A.TgZ(0,"div",28),A._UZ(1,"fa-icon",29),A.YNc(2,rA,2,1,"span",30),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.invoiceError)}}let Ft=(()=>{class r{constructor(t,s,L,vA,gt,ae){this.dialogRef=t,this.data=s,this.store=L,this.decimalPipe=vA,this.commonService=gt,this.actions=ae,this.faExclamationTriangle=h.eHv,this.selNode={},this.description="",this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=a.IV,this.timeUnitEnum=a.Qk,this.timeUnits=a.LO,this.selTimeUnit=a.Qk.SECS,this.invoiceError="",this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(g.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(g.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.actions.pipe((0,i.R)(this.unSubs[2]),(0,JA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&"SaveNewInvoice"===t.payload.action&&(t.payload.status===a.Bn.ERROR&&(this.invoiceError=t.payload.message),t.payload.status===a.Bn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(t){this.invoiceError="",this.invoiceValue||(this.invoiceValue=0);let s=this.expiry?this.expiry:3600;this.selTimeUnit!==a.Qk.SECS&&(s=this.commonService.convertTime(this.expiry,this.selTimeUnit,a.Qk.SECS)),this.store.dispatch((0,ht.Rd)({payload:{label:"ulbl"+Math.random().toString(36).slice(2)+Date.now(),amount:1e3*this.invoiceValue,description:this.description,expiry:s,private:this.private}}))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=a.Qk.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[3])).subscribe({next:t=>{this.invoiceValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,a.Xz.OTHER)+" "+t.unit},error:t=>{this.invoiceValueHint="Conversion Error: "+t}}))}onTimeUnitChange(t){this.expiry&&this.selTimeUnit!==t.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,t.value)),this.selTimeUnit=t.value}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(u.yh),A.Y36(Et.JJ),A.Y36(e.v),A.Y36(C.eX))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-create-invoices"]],decls:39,vars:16,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","start space-between","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","autoFocus","","placeholder","Description","tabindex","2","name","description",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","space-between start","fxFlex","100"],["fxFlex","40"],["matInput","","placeholder","Amount","type","number","tabindex","3","name","invoiceValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxFlex","30"],["matInput","","name","expiry","placeholder","Expiry","type","number","tabindex","4",3,"ngModel","step","min","ngModelChange"],["fxFlex","26"],["tabindex","5","name","timeUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","50","fxLayoutAlign","start center",1,"mt-2"],["tabindex","6","color","primary","name","private",3,"ngModel","ngModelChange"],["matTooltip","Include routing hints for private channels","matTooltipPosition","above",1,"info-icon"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(t,s){if(1&t){const L=A.EpF();A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5,"Create Invoice"),A.qZA()(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"mat-form-field",9)(12,"input",10),A.NdJ("ngModelChange",function(gt){return s.description=gt}),A.qZA()(),A.TgZ(13,"div",11)(14,"mat-form-field",12)(15,"input",13),A.NdJ("ngModelChange",function(gt){return s.invoiceValue=gt})("keyup",function(){return s.onInvoiceValueChange()}),A.qZA(),A.TgZ(16,"span",14),A._uU(17," Sats "),A.qZA(),A.TgZ(18,"mat-hint"),A._uU(19),A.qZA()(),A.TgZ(20,"mat-form-field",15)(21,"input",16),A.NdJ("ngModelChange",function(gt){return s.expiry=gt}),A.qZA(),A.TgZ(22,"span",14),A._uU(23),A.ALo(24,"titlecase"),A.qZA()(),A.TgZ(25,"mat-form-field",17)(26,"mat-select",18),A.NdJ("selectionChange",function(gt){return s.onTimeUnitChange(gt)}),A.YNc(27,RA,3,4,"mat-option",19),A.qZA()()(),A.TgZ(28,"div",20)(29,"mat-slide-toggle",21),A.NdJ("ngModelChange",function(gt){return s.private=gt}),A._uU(30,"Private Routing Hints"),A.qZA(),A.TgZ(31,"mat-icon",22),A._uU(32,"info_outline"),A.qZA()(),A.YNc(33,ct,3,2,"div",23),A.TgZ(34,"div",24)(35,"button",25),A.NdJ("click",function(){return s.resetData()}),A._uU(36,"Clear Field"),A.qZA(),A.TgZ(37,"button",26),A.NdJ("click",function(){A.CHM(L);const gt=A.MAs(10);return s.onAddInvoice(gt)}),A._uU(38,"Create Invoice"),A.qZA()()()()()()}2&t&&(A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(6),A.Q6J("ngModel",s.description),A.xp6(3),A.Q6J("ngModel",s.invoiceValue)("step",100)("min",1),A.xp6(4),A.Oqu(s.invoiceValueHint),A.xp6(2),A.Q6J("ngModel",s.expiry)("step",s.selTimeUnit===s.timeUnitEnum.SECS?300:s.selTimeUnit===s.timeUnitEnum.MINS?10:s.selTimeUnit===s.timeUnitEnum.HOURS?2:1)("min",1),A.xp6(2),A.hij(" ",A.lcZ(24,14,s.selTimeUnit)," "),A.xp6(3),A.Q6J("value",s.selTimeUnit),A.xp6(1),A.Q6J("ngForOf",s.timeUnits),A.xp6(2),A.Q6J("ngModel",s.private),A.xp6(4),A.Q6J("ngIf",""!==s.invoiceError))},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Q.lW,Mt.ZT,w.dn,OA._Y,OA.JL,OA.F,Z.KE,Yt.Nt,OA.Fj,H.h,OA.JJ,OA.On,OA.wV,OA.qQ,k.q,Z.R9,Z.bx,R.gD,Et.sg,QA.ey,wA.Rr,S.Hw,aA.gM,Et.O5,f.BN],pipes:[Et.rS],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();var j=Nt(5566),kA=Nt(7861),At=Nt(3093);function xA(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"form",4,5)(2,"mat-form-field",6)(3,"input",7),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().description=L}),A.qZA()(),A.TgZ(4,"mat-form-field",8)(5,"input",9),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().invoiceValue=L})("keyup",function(){return A.CHM(t),A.oxw().onInvoiceValueChange()}),A.qZA(),A.TgZ(6,"span",10),A._uU(7," Sats "),A.qZA(),A.TgZ(8,"mat-hint"),A._uU(9),A.qZA()(),A.TgZ(10,"div",11)(11,"button",12),A.NdJ("click",function(){return A.CHM(t),A.oxw().resetData()}),A._uU(12,"Clear Field"),A.qZA(),A.TgZ(13,"button",13),A.NdJ("click",function(){A.CHM(t);const L=A.MAs(1);return A.oxw().onAddInvoice(L)}),A._uU(14,"Create Invoice"),A.qZA()()()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.description),A.xp6(2),A.Q6J("ngModel",t.invoiceValue)("step",100)("min",1),A.xp6(4),A.Oqu(t.invoiceValueHint)}}function KA(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",14)(1,"button",15),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDeleteExpiredInvoices()}),A._uU(2,"Delete Expired"),A.qZA(),A.TgZ(3,"button",16),A.NdJ("click",function(){return A.CHM(t),A.oxw().openCreateInvoiceModal()}),A._uU(4,"Create Invoice"),A.qZA()()}}function st(r,y){1&r&&A._UZ(0,"mat-progress-bar",46)}function Lt(r,y){1&r&&(A.TgZ(0,"th",47),A._uU(1," Expiry Date "),A.qZA())}const Dt=function(r){return{"mr-0":r}};function Rt(r,y){if(1&r&&A._UZ(0,"span",52),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Dt,t.screenSize===t.screenSizeEnum.XS))}}function Vt(r,y){if(1&r&&A._UZ(0,"span",53),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Dt,t.screenSize===t.screenSizeEnum.XS))}}function Le(r,y){if(1&r&&A._UZ(0,"span",54),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Dt,t.screenSize===t.screenSizeEnum.XS))}}function re(r,y){if(1&r&&(A.TgZ(0,"td",48),A.YNc(1,Rt,1,3,"span",49),A.YNc(2,Vt,1,3,"span",50),A.YNc(3,Le,1,3,"span",51),A._uU(4),A.ALo(5,"date"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Q6J("ngIf","paid"===(null==t?null:t.status)),A.xp6(1),A.Q6J("ngIf","unpaid"===(null==t?null:t.status)),A.xp6(1),A.Q6J("ngIf","expired"===(null==t?null:t.status)),A.xp6(1),A.hij(" ",A.xi3(5,4,1e3*(null==t?null:t.expires_at),"dd/MMM/y HH:mm")," ")}}function Ae(r,y){1&r&&(A.TgZ(0,"th",47),A._uU(1," Date Settled "),A.qZA())}function ye(r,y){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.paid_at),"dd/MMM/y HH:mm")||"-")}}function be(r,y){1&r&&(A.TgZ(0,"th",47),A._uU(1," Type "),A.qZA())}function Re(r,y){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11&&!t.label.includes("keysend-")?"Bolt11":"Keysend")}}function yn(r,y){1&r&&(A.TgZ(0,"th",47),A._uU(1," Description "),A.qZA())}const xn=function(r){return{"max-width":r}};function ne(r,y){if(1&r&&(A.TgZ(0,"td",48)(1,"div",55)(2,"span",56),A._uU(3),A.qZA()()()),2&r){const t=y.$implicit,s=A.oxw(2);A.xp6(1),A.Q6J("ngStyle",A.VKq(2,xn,s.screenSize===s.screenSizeEnum.XS?"10rem":"32rem")),A.xp6(2),A.Oqu(null==t?null:t.description)}}function tn(r,y){1&r&&(A.TgZ(0,"th",57),A._uU(1," Amount (Sats) "),A.qZA())}function Te(r,y){if(1&r&&(A.TgZ(0,"td",48)(1,"span",58),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,(null==t?null:t.msatoshi)/1e3,(null==t?null:t.msatoshi)<1e3?"1.0-4":"1.0-0"),"")}}function en(r,y){1&r&&(A.TgZ(0,"th",57),A._uU(1," Amount Settled (Sats) "),A.qZA())}function Xe(r,y){if(1&r&&(A.TgZ(0,"td",48)(1,"span",58),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,(null==t?null:t.msatoshi_received)/1e3,(null==t?null:t.msatoshi_received)<1e3?"1.0-4":"1.0-0"),"")}}function Ln(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"th",59)(1,"div",60)(2,"mat-select",61),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",62),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}const bn=function(r){return{"px-3":r}};function Jt(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",63)(1,"div",64)(2,"mat-select",65),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",62),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw(2).onInvoiceClick(vA)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",62),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw(2).onRefreshInvoice(vA)}),A._uU(7,"Refresh"),A.qZA()()()()}if(2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,bn,t.screenSize!==t.screenSizeEnum.XS))}}function bt(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No invoice available."),A.qZA())}function Xt(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting invoices..."),A.qZA())}function oe(r,y){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function vn(r,y){if(1&r&&(A.TgZ(0,"td",66),A.YNc(1,bt,2,0,"p",67),A.YNc(2,Xt,2,0,"p",67),A.YNc(3,oe,2,1,"p",67),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.invoices&&t.invoices.data)||(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const pn=function(r){return{"display-none":r}};function Yn(r,y){if(1&r&&A._UZ(0,"tr",68),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,pn,(null==t.invoices?null:t.invoices.data)&&(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)>0))}}function jn(r,y){1&r&&A._UZ(0,"tr",69)}function Br(r,y){1&r&&A._UZ(0,"tr",70)}const Tn=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},ZA=function(){return["no_invoice"]};function YA(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",17)(1,"div",18)(2,"div",19),A._UZ(3,"fa-icon",20),A.TgZ(4,"span",21),A._uU(5,"Invoices History"),A.qZA()(),A.TgZ(6,"mat-form-field",22)(7,"input",23),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(L){return A.CHM(t),A.oxw().selFilter=L}),A.qZA()()(),A.TgZ(8,"div",24),A.YNc(9,st,1,0,"mat-progress-bar",25),A.TgZ(10,"table",26,27),A.ynx(12,28),A.YNc(13,Lt,2,0,"th",29),A.YNc(14,re,6,7,"td",30),A.BQk(),A.ynx(15,31),A.YNc(16,Ae,2,0,"th",29),A.YNc(17,ye,3,4,"td",30),A.BQk(),A.ynx(18,32),A.YNc(19,be,2,0,"th",29),A.YNc(20,Re,2,1,"td",30),A.BQk(),A.ynx(21,33),A.YNc(22,yn,2,0,"th",29),A.YNc(23,ne,4,4,"td",30),A.BQk(),A.ynx(24,34),A.YNc(25,tn,2,0,"th",35),A.YNc(26,Te,4,4,"td",30),A.BQk(),A.ynx(27,36),A.YNc(28,en,2,0,"th",35),A.YNc(29,Xe,4,4,"td",30),A.BQk(),A.ynx(30,37),A.YNc(31,Ln,6,0,"th",38),A.YNc(32,Jt,8,3,"td",39),A.BQk(),A.ynx(33,40),A.YNc(34,vn,4,3,"td",41),A.BQk(),A.YNc(35,Yn,1,3,"tr",42),A.YNc(36,jn,1,0,"tr",43),A.YNc(37,Br,1,0,"tr",44),A.qZA()(),A._UZ(38,"mat-paginator",45),A.qZA()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("icon",t.faHistory),A.xp6(4),A.Q6J("ngModel",t.selFilter),A.xp6(2),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.invoices)("ngClass",A.VKq(12,Tn,""!==t.errorMessage)),A.xp6(25),A.Q6J("matFooterRowDef",A.DdM(14,ZA)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns),A.xp6(1),A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let tt=(()=>{class r{constructor(t,s,L,vA,gt,ae,un){this.logger=t,this.store=s,this.decimalPipe=L,this.commonService=vA,this.rtlEffects=gt,this.datePipe=ae,this.actions=un,this.calledFrom="transactions",this.faHistory=h.qO$,this.selNode={},this.newlyAddedInvoiceMemo="",this.newlyAddedInvoiceValue=0,this.description="",this.invoiceValue=null,this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoiceJSONArr=[],this.information={},this.flgSticky=!1,this.private=!1,this.expiryStep=100,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["expires_at","msatoshi","actions"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["expires_at","description","msatoshi","actions"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["expires_at","type","description","msatoshi","msatoshi_received","actions"]):(this.flgSticky=!0,this.displayedColumns=["expires_at","paid_at","type","description","msatoshi","msatoshi_received","actions"])}ngOnInit(){this.store.select(g.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(g.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(g.gc).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.invoiceJSONArr=t.listInvoices.invoices||[],this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&this.loadInvoicesTable(this.invoiceJSONArr),this.logger.info(t)}),this.actions.pipe((0,i.R)(this.unSubs[3]),(0,JA.h)(t=>t.type===a.AB.SET_LOOKUP_CLN||t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===a.AB.SET_LOOKUP_CLN&&this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&t.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(t.payload))),this.loadInvoicesTable(this.invoiceJSONArr))})}ngAfterViewInit(){this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&this.loadInvoicesTable(this.invoiceJSONArr)}openCreateInvoiceModal(){this.store.dispatch((0,kA.qR)({payload:{data:{pageSize:this.pageSize,component:Ft}}}))}onAddInvoice(t){this.invoiceValue||(this.invoiceValue=0);const s=this.expiry?this.expiry:3600;this.newlyAddedInvoiceMemo="ulbl"+Math.random().toString(36).slice(2)+Date.now(),this.newlyAddedInvoiceValue=this.invoiceValue,this.store.dispatch((0,ht.Rd)({payload:{label:this.newlyAddedInvoiceMemo,amount:1e3*this.invoiceValue,description:this.description,expiry:s,private:this.private}})),this.resetData()}onDeleteExpiredInvoices(){this.store.dispatch((0,kA.c1)({payload:{data:{type:"CONFIRM",titleMessage:"Delete Expired Invoices",noBtnText:"Cancel",yesBtnText:"Delete Invoices"}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[4])).subscribe(t=>{t&&this.store.dispatch((0,ht.g6)({payload:null}))})}onInvoiceClick(t){this.store.dispatch((0,kA.qR)({payload:{data:{invoice:{msatoshi:t.msatoshi,label:t.label,expires_at:t.expires_at,paid_at:t.paid_at,bolt11:t.bolt11,payment_hash:t.payment_hash,description:t.description,status:t.status,msatoshi_received:t.msatoshi_received},newlyAdded:!1,component:j.y}}}))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint=""}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[5])).subscribe({next:t=>{this.invoiceValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,a.Xz.OTHER)+" "+t.unit},error:t=>{this.invoiceValueHint="Conversion Error: "+t}}))}onRefreshInvoice(t){this.store.dispatch((0,ht.n7)({payload:t.label}))}updateInvoicesData(t){this.invoiceJSONArr=this.invoiceJSONArr.map(s=>s.label===t.label?t:s)}loadInvoicesTable(t){this.invoices=new yA.by(t?[...t]:[]),this.invoices.sortingDataAccessor=(s,L)=>s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]:null,this.invoices.sort=this.sort,this.invoices.filterPredicate=(s,L)=>((s.paid_at?this.datePipe.transform(new Date(1e3*s.paid_at),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.expires_at?this.datePipe.transform(new Date(1e3*s.expires_at),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.bolt12?"bolt12":s.bolt11?"bolt11":"keysend")+JSON.stringify(s).toLowerCase()).includes(L),this.invoices.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(Et.JJ),A.Y36(e.v),A.Y36(At.V),A.Y36(Et.uU),A.Y36(C.eX))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-lightning-invoices-table"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(WA.NW,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.paginator=L.first)}},inputs:{calledFrom:"calledFrom"},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Invoices")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","space-between stretch"],["matInput","","placeholder","Description","tabindex","2","name","description",3,"ngModel","ngModelChange"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","name","invoiceValue","type","number","tabindex","3",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","9","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10",3,"click"],["fxLayout","row"],["mat-stroked-button","","color","warn","tabindex","7","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","expires_at"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","paid_at"],["matColumnDef","type"],["matColumnDef","description"],["matColumnDef","msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi_received"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Paid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Expired","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Paid","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Expired","matTooltipPosition","right",1,"dot","red",3,"ngClass"],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,xA,15,5,"form",1),A.YNc(2,KA,5,0,"div",2),A.YNc(3,YA,39,15,"div",3),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf","home"===s.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===s.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===s.calledFrom))},directives:[Ct.xw,Ct.yH,Ct.Wh,Et.O5,OA._Y,OA.JL,OA.F,Z.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,OA.wV,OA.qQ,k.q,Z.R9,Z.bx,Q.lW,f.BN,lA.$V,Y.pW,yA.BZ,rt.YE,Et.mk,m.oO,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,aA.gM,Et.PC,m.Zl,R.gD,R.$L,QA.ey,yA.mD,yA.yh,yA.Ke,yA.Q2,yA.as,yA.XQ,yA.nj,yA.Gk,WA.NW],pipes:[Et.uU,Et.JJ],styles:[".mat-column-description[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-description[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();var UA=Nt(5698),PA=Nt(8104),zA=Nt(9814),HA=Nt(7446);const $A=["sendPaymentForm"],LA=["paymentAmt"],at=["offerAmt"],VA=["paymentReq"],dt=["offerReq"];function St(r,y){if(1&r&&(A.TgZ(0,"mat-radio-button",22),A._uU(1,"Offer"),A.qZA()),2&r){const t=A.oxw(2);A.s9C("value",t.paymentTypes.OFFER)}}function Ut(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-radio-group",18),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().paymentType=L})("change",function(){return A.CHM(t),A.oxw().onPaymentTypeChange()}),A.TgZ(1,"mat-radio-button",19),A._uU(2,"Invoice"),A.qZA(),A.TgZ(3,"mat-radio-button",20),A._uU(4,"Keysend"),A.qZA(),A.YNc(5,St,2,1,"mat-radio-button",21),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("ngModel",t.paymentType),A.xp6(1),A.s9C("value",t.paymentTypes.INVOICE),A.xp6(2),A.s9C("value",t.paymentTypes.KEYSEND),A.xp6(2),A.Q6J("ngIf",t.selNode.enableOffers)}}function kt(r,y){1&r&&A.GkF(0)}function Wt(r,y){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.paymentError)}}function te(r,y){if(1&r&&(A.TgZ(0,"div",23),A._UZ(1,"fa-icon",24),A.YNc(2,Wt,2,1,"span",25),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.paymentError)}}function wt(r,y){if(1&r&&(A.TgZ(0,"mat-hint"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.paymentDecodedHint)}}function Pt(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Payment request is required."),A.qZA())}function jt(r,y){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.paymentDecodedHint)}}function Ht(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Payment amount is required."),A.qZA())}function ce(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"input",29,30),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw(2).paymentAmount=L})("change",function(L){return A.CHM(t),A.oxw(2).onAmountChange(L)}),A.qZA(),A.TgZ(3,"mat-hint"),A._uU(4,"It is a zero amount invoice, enter amount to be paid."),A.qZA(),A.YNc(5,Ht,2,0,"mat-error",25),A.qZA()}if(2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngModel",t.paymentAmount),A.xp6(4),A.Q6J("ngIf",!t.paymentAmount)}}function Zt(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"textarea",26,27),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().onPaymentRequestEntry(L)})("matTextareaAutosize",function(){return!0}),A.qZA(),A.YNc(3,wt,2,1,"mat-hint",25),A.YNc(4,Pt,2,0,"mat-error",25),A.YNc(5,jt,2,1,"mat-error",25),A.qZA(),A.YNc(6,ce,6,2,"mat-form-field",28)}if(2&r){const t=A.MAs(2),s=A.oxw();A.xp6(1),A.Q6J("ngModel",s.paymentRequest),A.xp6(2),A.Q6J("ngIf",s.paymentRequest&&""!==s.paymentDecodedHint),A.xp6(1),A.Q6J("ngIf",!s.paymentRequest),A.xp6(1),A.Q6J("ngIf",null==t.errors?null:t.errors.decodeError),A.xp6(1),A.Q6J("ngIf",s.zeroAmtInvoice)}}function ue(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Pubkey is required."),A.qZA())}function ge(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Keysend amount is required."),A.qZA())}function ve(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"input",31),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().pubkey=L}),A.qZA(),A.YNc(2,ue,2,0,"mat-error",25),A.qZA(),A.TgZ(3,"mat-form-field",1)(4,"input",32,33),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().keysendAmount=L}),A.qZA(),A.YNc(6,ge,2,0,"mat-error",25),A.qZA()}if(2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngModel",t.pubkey),A.xp6(1),A.Q6J("ngIf",!t.pubkey),A.xp6(2),A.Q6J("ngModel",t.keysendAmount),A.xp6(2),A.Q6J("ngIf",!t.keysendAmount)}}function Ge(r,y){if(1&r&&(A.TgZ(0,"mat-hint"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.offerDecodedHint)}}function Se(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Offer request is required."),A.qZA())}function xe(r,y){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.offerDecodedHint)}}function Ne(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Offer amount is required."),A.qZA())}function _e(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"input",40,41),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw(2).offerAmount=L})("change",function(L){return A.CHM(t),A.oxw(2).onAmountChange(L)}),A.qZA(),A.TgZ(3,"mat-hint"),A._uU(4,"It is a zero amount offer, enter amount to be paid."),A.qZA(),A.YNc(5,Ne,2,0,"mat-error",25),A.qZA()}if(2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngModel",t.offerAmount),A.xp6(4),A.Q6J("ngIf",!t.offerAmount)}}function Fn(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",42)(1,"input",43),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw(2).offerTitle=L}),A.qZA()()}if(2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngModel",t.offerTitle)}}function rn(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"textarea",34,35),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().onPaymentRequestEntry(L)})("matTextareaAutosize",function(){return!0}),A.qZA(),A.YNc(3,Ge,2,1,"mat-hint",25),A.YNc(4,Se,2,0,"mat-error",25),A.YNc(5,xe,2,1,"mat-error",25),A.qZA(),A.YNc(6,_e,6,2,"mat-form-field",28),A.TgZ(7,"div",36)(8,"mat-checkbox",37),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().flgSaveToDB=L}),A._uU(9,"Bookmark Offer"),A.qZA(),A.TgZ(10,"mat-icon",38),A._uU(11,"info_outline"),A.qZA()(),A.YNc(12,Fn,2,1,"mat-form-field",39)}if(2&r){const t=A.MAs(2),s=A.oxw();A.xp6(1),A.Q6J("ngModel",s.offerRequest),A.xp6(2),A.Q6J("ngIf",s.offerRequest&&""!==s.offerDecodedHint),A.xp6(1),A.Q6J("ngIf",!s.offerRequest),A.xp6(1),A.Q6J("ngIf",null==t.errors?null:t.errors.decodeError),A.xp6(1),A.Q6J("ngIf",s.zeroAmtOffer),A.xp6(2),A.Q6J("ngModel",s.flgSaveToDB),A.xp6(4),A.Q6J("ngIf",s.flgSaveToDB||""!==s.offerTitle)}}let Cn=(()=>{class r{constructor(t,s,L,vA,gt,ae,un,Qe){this.dialogRef=t,this.data=s,this.store=L,this.logger=vA,this.commonService=gt,this.decimalPipe=ae,this.actions=un,this.dataService=Qe,this.faExclamationTriangle=h.eHv,this.paymentTypes=a.IX,this.paymentType=a.IX.INVOICE,this.selNode={},this.offerDecoded={},this.offerRequest="",this.offerDecodedHint="",this.offerDescription="",this.offerVendor="",this.offerTitle="",this.zeroAmtOffer=!1,this.offerInvoice=null,this.offerAmount=null,this.flgSaveToDB=!1,this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentAmount=null,this.pubkey="",this.keysendAmount=null,this.selActiveChannel={},this.activeChannels={},this.feeLimit=null,this.selFeeLimitType=a.Vc[0],this.feeLimitTypes=a.Vc,this.paymentError="",this.isCompatibleVersion=!1,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x]}set payReq(t){t&&(this.paymentReq=t)}set offrReq(t){t&&(this.offerReq=t)}ngOnInit(){if(this.data&&this.data.paymentType)switch(this.paymentType=this.data.paymentType,this.paymentType){case a.IX.INVOICE:this.paymentRequest=this.data.invoiceBolt11;break;case a.IX.KEYSEND:this.pubkey=this.data.pubkeyKeysend;break;case a.IX.OFFER:this.onPaymentRequestEntry(this.data.bolt12),this.offerTitle=this.data.offerTitle,this.flgSaveToDB=!1}this.store.select(g.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(g.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.isCompatibleVersion=this.commonService.isVersionCompatible(t.version,"0.9.0")&&this.commonService.isVersionCompatible(t.api_version,"0.4.0")}),this.store.select(g.ZW).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.activeChannels=t.activeChannels,this.logger.info(t)}),this.actions.pipe((0,i.R)(this.unSubs[3]),(0,JA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN||t.type===a.AB.SEND_PAYMENT_STATUS_CLN||t.type===a.AB.SET_OFFER_INVOICE_CLN)).subscribe(t=>{t.type===a.AB.SEND_PAYMENT_STATUS_CLN&&this.dialogRef.close(),t.type===a.AB.SET_OFFER_INVOICE_CLN&&(this.offerInvoice=t.payload,this.sendPayment()),t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&t.payload.status===a.Bn.ERROR&&("SendPayment"===t.payload.action&&(delete this.paymentDecoded.msatoshi,this.paymentError=t.payload.message),"DecodePayment"===t.payload.action&&(this.paymentType===a.IX.INVOICE&&(this.paymentDecodedHint="ERROR: "+t.payload.message,this.paymentReq.control.setErrors({decodeError:!0})),this.paymentType===a.IX.OFFER&&(this.offerDecodedHint="ERROR: "+t.payload.message,this.offerReq.control.setErrors({decodeError:!0}))),"FetchOfferInvoice"===t.payload.action&&this.paymentType===a.IX.OFFER&&(this.paymentError=t.payload.message))})}onSendPayment(){switch(this.paymentType){case a.IX.KEYSEND:if(!this.pubkey||""===this.pubkey.trim()||!this.keysendAmount||this.keysendAmount<=0)return!0;this.keysendPayment();break;case a.IX.INVOICE:if(!this.paymentRequest||this.zeroAmtInvoice&&(0===this.paymentAmount||!this.paymentAmount))return this.paymentReq.control.markAsTouched(),this.paymentAmt.control.markAsTouched(),!0;this.paymentDecoded.created_at?this.sendPayment():(this.resetInvoiceDetails(),this.dataService.decodePayment(this.paymentRequest,!0).pipe((0,i.R)(this.unSubs[4])).subscribe(t=>{"bolt12 offer"===t.type&&t.offer_id?(this.paymentDecodedHint="ERROR: Select Offer option to pay the bolt12 offer invoice.",this.paymentReq.control.setErrors({decodeError:!0})):(this.paymentDecoded=t,this.setPaymentDecodedDetails())}));break;case a.IX.OFFER:if(!this.offerRequest||this.zeroAmtOffer&&(0===this.offerAmount||!this.offerAmount))return this.offerReq.control.markAsTouched(),this.offerAmt.control.markAsTouched(),!0;this.offerDecoded.offer_id?this.sendPayment():(this.resetOfferDetails(),this.dataService.decodePayment(this.offerRequest,!0).pipe((0,i.R)(this.unSubs[5])).subscribe(t=>{"bolt11 invoice"===t.type&&t.payment_hash?(this.offerDecodedHint="ERROR: Select Invoice option to pay the bolt11 invoice.",this.offerReq.control.setErrors({decodeError:!0})):(this.offerDecoded=t,this.setOfferDecodedDetails())}))}}keysendPayment(){this.store.dispatch((0,ht.oV)({payload:{uiMessage:a.m6.SEND_KEYSEND,paymentType:a.IX.KEYSEND,pubkey:this.pubkey,amount:1e3*this.keysendAmount,fromDialog:!0}}))}sendPayment(){this.paymentError="",this.paymentType===a.IX.INVOICE?this.store.dispatch((0,ht.oV)(this.zeroAmtInvoice?{payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.INVOICE,invoice:this.paymentRequest,amount:1e3*this.paymentAmount,fromDialog:!0}}:{payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.INVOICE,invoice:this.paymentRequest,fromDialog:!0}})):this.paymentType===a.IX.OFFER&&this.store.dispatch(this.offerInvoice?(0,ht.oV)({payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.OFFER,invoice:this.offerInvoice.invoice,saveToDB:this.flgSaveToDB,bolt12:this.offerRequest,amount:1e3*this.offerAmount,zeroAmtOffer:this.zeroAmtOffer,title:this.offerTitle,vendor:this.offerVendor,description:this.offerDescription,fromDialog:!0}}):(0,ht.eM)(this.zeroAmtOffer?{payload:{offer:this.offerRequest,msatoshi:1e3*this.offerAmount}}:{payload:{offer:this.offerRequest}}))}onPaymentRequestEntry(t){this.paymentType===a.IX.INVOICE?(this.paymentRequest=t,this.resetInvoiceDetails()):this.paymentType===a.IX.OFFER&&(this.offerRequest=t,this.resetOfferDetails()),t.length>100&&this.dataService.decodePayment(t,!0).pipe((0,i.R)(this.unSubs[6])).subscribe(s=>{this.paymentType===a.IX.INVOICE?"bolt12 offer"===s.type&&s.offer_id?(this.paymentDecodedHint="ERROR: Select Offer option to pay the bolt12 offer invoice.",this.paymentReq.control.setErrors({decodeError:!0})):(this.paymentDecoded=s,this.setPaymentDecodedDetails()):this.paymentType===a.IX.OFFER&&("bolt11 invoice"===s.type&&s.payment_hash?(this.offerDecodedHint="ERROR: Select Invoice option to pay the bolt11 invoice.",this.offerReq.control.setErrors({decodeError:!0})):(this.offerDecoded=s,this.setOfferDecodedDetails()))})}resetOfferDetails(){this.offerInvoice=null,this.offerAmount=null,this.offerDecodedHint="",this.zeroAmtOffer=!1,this.paymentError="",this.offerReq&&this.offerReq.control.setErrors(null)}resetInvoiceDetails(){this.paymentAmount=null,this.paymentDecodedHint="",this.zeroAmtInvoice=!1,this.paymentError="",this.paymentReq&&this.paymentReq.control.setErrors(null)}onAmountChange(t){this.paymentType===a.IX.INVOICE&&(delete this.paymentDecoded.msatoshi,this.paymentDecoded.msatoshi=+t.target.value),this.paymentType===a.IX.OFFER&&(delete this.offerDecoded.amount,delete this.offerDecoded.amount_msat,this.offerDecoded.amount=1e3*+t.target.value,this.offerDecoded.amount_msat=t.target.value+"msat")}onPaymentTypeChange(){this.paymentError="",this.paymentDecodedHint="",this.offerDecodedHint="",this.offerInvoice=null}setOfferDecodedDetails(){this.offerDecoded.offer_id&&!this.offerDecoded.amount_msat?(this.offerDecoded.amount_msat="0msat",this.offerDecoded.amount=0,this.zeroAmtOffer=!0,this.offerDescription=this.offerDecoded.description,this.offerVendor=this.offerDecoded.vendor?this.offerDecoded.vendor:this.offerDecoded.issuer?this.offerDecoded.issuer:"",this.offerDecodedHint="Zero Amount Offer | Description: "+this.offerDecoded.description):(this.zeroAmtOffer=!1,this.offerDecoded.amount=+(this.offerDecoded.amount||this.offerDecoded.amount_msat.slice(0,-4)),this.offerAmount=this.offerDecoded.amount?this.offerDecoded.amount/1e3:0,this.offerDescription=this.offerDecoded.description,this.offerVendor=this.offerDecoded.vendor?this.offerDecoded.vendor:this.offerDecoded.issuer?this.offerDecoded.issuer:"",this.selNode.fiatConversion?this.commonService.convertCurrency(this.offerAmount,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[7])).subscribe({next:t=>{this.offerDecodedHint="Sending: "+this.decimalPipe.transform(this.offerAmount)+" Sats ("+t.symbol+this.decimalPipe.transform(t.OTHER?t.OTHER:0,a.Xz.OTHER)+") | Description: "+this.offerDecoded.description},error:t=>{this.offerDecodedHint="Sending: "+this.decimalPipe.transform(this.offerAmount)+" Sats | Description: "+this.offerDecoded.description+". Unable to convert currency."}}):this.offerDecodedHint="Sending: "+this.decimalPipe.transform(this.offerAmount)+" Sats | Description: "+this.offerDecoded.description)}setPaymentDecodedDetails(){this.paymentDecoded.created_at&&!this.paymentDecoded.msatoshi?(this.paymentDecoded.msatoshi=0,this.zeroAmtInvoice=!0,this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description):(this.zeroAmtInvoice=!1,this.selNode.fiatConversion?this.commonService.convertCurrency(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[8])).subscribe({next:t=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats ("+t.symbol+this.decimalPipe.transform(t.OTHER?t.OTHER:0,a.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:t=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description)}resetData(){switch(this.paymentType){case a.IX.KEYSEND:this.pubkey="",this.keysendAmount=null;break;case a.IX.INVOICE:this.paymentRequest="",this.paymentDecoded={},this.selActiveChannel=null,this.feeLimit=null,this.selFeeLimitType=a.Vc[0],this.resetInvoiceDetails();break;case a.IX.OFFER:this.offerRequest="",this.offerDecoded={},this.flgSaveToDB=!1,this.resetOfferDetails()}this.paymentError=""}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(u.yh),A.Y36(E.mQ),A.Y36(e.v),A.Y36(Et.JJ),A.Y36(C.eX),A.Y36(PA.D))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-lightning-send-payments"]],viewQuery:function(t,s){if(1&t&&(A.Gf($A,5),A.Gf(LA,5),A.Gf(at,5),A.Gf(VA,5),A.Gf(dt,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.form=L.first),A.iGM(L=A.CRH())&&(s.paymentAmt=L.first),A.iGM(L=A.CRH())&&(s.offerAmt=L.first),A.iGM(L=A.CRH())&&(s.payReq=L.first),A.iGM(L=A.CRH())&&(s.offrReq=L.first)}},decls:25,vars:4,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","12","fxFlex","10","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["class","my-1","color","primary","name","paymentType","fxFlex","100","fxLayoutAlign","start start",3,"ngModel","ngModelChange","change",4,"ngIf"],["fxLayoutAlign","space-between stretch","fxLayout","column",3,"submit","reset"],["sendPaymentForm","ngForm"],[4,"ngTemplateOutlet"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","9","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit","tabindex","8"],["invoiceBlock",""],["keysendBlock",""],["offerBlock",""],["color","primary","name","paymentType","fxFlex","100","fxLayoutAlign","start start",1,"my-1",3,"ngModel","ngModelChange","change"],["fxFlex","20","tabindex","1",3,"value"],["fxFlex","20","tabindex","2",3,"value"],["fxFlex","20","tabindex","3",3,"value",4,"ngIf"],["fxFlex","20","tabindex","3",3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"],["autoFocus","","matInput","","placeholder","Payment Request","rows","4","name","paymentRequest","tabindex","4","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],["fxFlex","100",4,"ngIf"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","5","required","",3,"ngModel","ngModelChange","change"],["paymentAmt","ngModel"],["autoFocus","","matInput","","placeholder","Pubkey","name","pubkey","tabindex","4","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Amount (Sats)","name","keysendAmount","tabindex","5","required","",3,"ngModel","ngModelChange"],["keysendAmt","ngModel"],["autoFocus","","matInput","","placeholder","Offer Request","rows","4","name","offerRequest","tabindex","4","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["offerReq","ngModel"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["fxFlex","none","tabindex","6","color","primary",3,"ngModel","ngModelChange"],["matTooltip","Save offer in database for future payments","matTooltipPosition","below","fxFlex","none",1,"info-icon"],["fxFlex","100","class","mt-1",4,"ngIf"],["matInput","","placeholder","Amount (Sats)","name","amountoffer","tabindex","5","required","",3,"ngModel","ngModelChange","change"],["offerAmt","ngModel"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Title to Save","tabindex","7",3,"ngModel","ngModelChange"]],template:function(t,s){if(1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5,"Send Payment"),A.qZA()(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6),A.YNc(9,Ut,6,4,"mat-radio-group",7),A.TgZ(10,"form",8,9),A.NdJ("submit",function(){return s.onSendPayment()})("reset",function(){return s.resetData()}),A.YNc(12,kt,1,0,"ng-container",10),A.YNc(13,te,3,2,"div",11),A.TgZ(14,"div",12)(15,"button",13),A._uU(16,"Clear Fields"),A.qZA(),A.TgZ(17,"button",14),A._uU(18,"Send Payment"),A.qZA()()()()()(),A.YNc(19,Zt,7,5,"ng-template",null,15,A.W1O),A.YNc(21,ve,7,4,"ng-template",null,16,A.W1O),A.YNc(23,rn,13,7,"ng-template",null,17,A.W1O)),2&t){const L=A.MAs(20),vA=A.MAs(22),gt=A.MAs(24);A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(3),A.Q6J("ngIf",s.isCompatibleVersion),A.xp6(3),A.Q6J("ngTemplateOutlet",s.paymentType===s.paymentTypes.KEYSEND?vA:s.paymentType===s.paymentTypes.OFFER?gt:L),A.xp6(1),A.Q6J("ngIf",""!==s.paymentError)}},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Q.lW,Mt.ZT,w.dn,Et.O5,zA.VQ,OA.JJ,OA.On,zA.U0,OA._Y,OA.JL,OA.F,Et.tP,f.BN,Z.KE,Yt.Nt,OA.Fj,H.h,OA.Q7,Z.bx,Z.TO,HA.oG,S.Hw,aA.gM],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();var In=Nt(4947);const an=["sendPaymentForm"];function fn(r,y){if(1&r&&(A.TgZ(0,"mat-hint"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.paymentDecodedHint)}}function cn(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Payment request is required."),A.qZA())}function Xn(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"form",4,5)(2,"mat-form-field",6)(3,"textarea",7,8),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().onPaymentRequestEntry(L)})("matTextareaAutosize",function(){return!0}),A.qZA(),A.YNc(5,fn,2,1,"mat-hint",9),A.YNc(6,cn,2,0,"mat-error",9),A.qZA(),A.TgZ(7,"div",10)(8,"button",11),A.NdJ("click",function(){return A.CHM(t),A.oxw().resetData()}),A._uU(9,"Clear Field"),A.qZA(),A.TgZ(10,"button",12),A.NdJ("click",function(){return A.CHM(t),A.oxw().onSendPayment()}),A._uU(11,"Send Payment"),A.qZA()()()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.paymentRequest),A.xp6(2),A.Q6J("ngIf",t.paymentRequest&&""!==t.paymentDecodedHint),A.xp6(1),A.Q6J("ngIf",!t.paymentRequest)}}function Fr(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",13)(1,"button",12),A.NdJ("click",function(){return A.CHM(t),A.oxw().openSendPaymentModal()}),A._uU(2,"Send Payment"),A.qZA()()}}function Yr(r,y){1&r&&A._UZ(0,"mat-progress-bar",50)}function nr(r,y){1&r&&(A.TgZ(0,"th",51),A._uU(1,"Created At"),A.qZA())}const hn=function(r){return{"mr-0":r}};function qn(r,y){if(1&r&&A._UZ(0,"span",55),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,hn,t.screenSize===t.screenSizeEnum.XS))}}function IA(r,y){if(1&r&&A._UZ(0,"span",56),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,hn,t.screenSize===t.screenSizeEnum.XS))}}function J(r,y){if(1&r&&(A.TgZ(0,"td",52),A.YNc(1,qn,1,3,"span",53),A.YNc(2,IA,1,3,"span",54),A._uU(3),A.ALo(4,"date"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Q6J("ngIf","complete"===t.status),A.xp6(1),A.Q6J("ngIf","complete"!==t.status),A.xp6(1),A.hij(" ",A.xi3(4,3,1e3*(null==t?null:t.created_at),"dd/MMM/y HH:mm")," ")}}function N(r,y){1&r&&(A.TgZ(0,"th",51),A._uU(1," Type "),A.qZA())}function X(r,y){if(1&r&&(A.TgZ(0,"td",52),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11?"Bolt11":"Keysend")}}function K(r,y){1&r&&(A.TgZ(0,"th",51),A._uU(1,"Payment Hash"),A.qZA())}const fA=function(r){return{"max-width":r}};function pA(r,y){if(1&r&&(A.TgZ(0,"td",52)(1,"span",57)(2,"span",58),A._uU(3),A.qZA()()()),2&r){const t=y.$implicit,s=A.oxw(2);A.xp6(1),A.Q6J("ngStyle",A.VKq(2,fA,s.screenSize===s.screenSizeEnum.XS?"10rem":"30rem")),A.xp6(2),A.Oqu(null==t?null:t.payment_hash)}}function _A(r,y){1&r&&(A.TgZ(0,"th",59),A._uU(1,"Sats Sent"),A.qZA())}function nt(r,y){if(1&r&&(A.TgZ(0,"td",52)(1,"span",60),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.msatoshi_sent)/1e3,(null==t?null:t.msatoshi_sent)<1e3?"1.0-4":"1.0-0"))}}function ut(r,y){1&r&&(A.TgZ(0,"th",59),A._uU(1,"Sats Received"),A.qZA())}function Qt(r,y){if(1&r&&(A.TgZ(0,"td",52)(1,"span",60),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.msatoshi)/1e3,(null==t?null:t.msatoshi)<1e3?"1.0-4":"1.0-0"))}}function vt(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"th",61)(1,"div",62)(2,"mat-select",63),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",64),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function xt(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",65)(1,"button",66),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw(2).onPaymentClick(vA)}),A._uU(2,"View Info"),A.qZA()()}}function Tt(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No payment available."),A.qZA())}function Ot(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting payments..."),A.qZA())}function Kt(r,y){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function fe(r,y){if(1&r&&(A.TgZ(0,"td",67),A.YNc(1,Tt,2,0,"p",9),A.YNc(2,Ot,2,0,"p",9),A.YNc(3,Kt,2,1,"p",9),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.payments&&t.payments.data)||(null==t.payments||null==t.payments.data?null:t.payments.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}function Ee(r,y){if(1&r&&A._UZ(0,"span",71),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,hn,t.screenSize===t.screenSizeEnum.XS))}}function Ie(r,y){if(1&r&&A._UZ(0,"span",72),2&r){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,hn,t.screenSize===t.screenSizeEnum.XS))}}function nn(r,y){if(1&r&&A._UZ(0,"span",71),2&r){const t=A.oxw(5);A.Q6J("ngClass",A.VKq(1,hn,t.screenSize===t.screenSizeEnum.XS))}}function Me(r,y){if(1&r&&A._UZ(0,"span",72),2&r){const t=A.oxw(5);A.Q6J("ngClass",A.VKq(1,hn,t.screenSize===t.screenSizeEnum.XS))}}function je(r,y){if(1&r&&(A.TgZ(0,"span",74),A.YNc(1,nn,1,3,"span",69),A.YNc(2,Me,1,3,"span",70),A._uU(3),A.ALo(4,"date"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Q6J("ngIf","complete"===t.status),A.xp6(1),A.Q6J("ngIf","complete"!==t.status),A.xp6(1),A.hij(" ",A.xi3(4,3,1e3*t.created_at,"dd/MMM/y HH:mm")," ")}}function Qn(r,y){if(1&r&&(A.ynx(0),A.YNc(1,je,5,6,"span",73),A.BQk()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function Ke(r,y){if(1&r&&(A.TgZ(0,"td",52)(1,"span",68),A.YNc(2,Ee,1,3,"span",69),A.YNc(3,Ie,1,3,"span",70),A._uU(4),A.qZA(),A.YNc(5,Qn,2,1,"ng-container",9),A.qZA()),2&r){const t=y.$implicit;A.xp6(2),A.Q6J("ngIf","complete"===t.status),A.xp6(1),A.Q6J("ngIf","complete"!==t.status),A.xp6(1),A.hij(" Total Attempts: ",null==t?null:t.total_parts," "),A.xp6(1),A.Q6J("ngIf",t.is_expanded)}}function dn(r,y){if(1&r&&(A.TgZ(0,"span",68),A._uU(1),A.qZA()),2&r){const t=A.oxw(2).$implicit;A.xp6(1),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11?"Bolt11":"Keysend")}}function Kn(r,y){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,dn,2,1,"span",75),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function _n(r,y){if(1&r&&(A.TgZ(0,"td",52)(1,"span",68),A._uU(2),A.qZA(),A.YNc(3,Kn,2,1,"span",9),A.qZA()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11?"Bolt11":"Keysend"),A.xp6(1),A.Q6J("ngIf",t.is_expanded)}}function Sn(r,y){if(1&r&&(A.TgZ(0,"span",68),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" Part ID ",t.partid?t.partid:0," ")}}function Rr(r,y){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,Sn,2,1,"span",75),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function Hn(r,y){if(1&r&&(A.TgZ(0,"td",52)(1,"span",76)(2,"span",58),A._uU(3),A.qZA()(),A.YNc(4,Rr,2,1,"span",9),A.qZA()),2&r){const t=y.$implicit,s=A.oxw(2);A.xp6(1),A.Q6J("ngStyle",A.VKq(3,fA,s.screenSize===s.screenSizeEnum.XS?"10rem":"30rem")),A.xp6(2),A.Oqu(null==t?null:t.payment_hash),A.xp6(1),A.Q6J("ngIf",t.is_expanded)}}function rr(r,y){if(1&r&&(A.TgZ(0,"span",77),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,t.msatoshi_sent/1e3,t.msatoshi_sent<1e3?"1.0-4":"1.0-0")," ")}}function Qr(r,y){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,rr,3,4,"span",78),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function $n(r,y){if(1&r&&(A.TgZ(0,"td",52)(1,"span",77),A._uU(2),A.ALo(3,"number"),A.qZA(),A.YNc(4,Qr,2,1,"span",9),A.qZA()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(A.xi3(3,2,(null==t?null:t.msatoshi_sent)/1e3,(null==t?null:t.msatoshi_sent)<1e3?"1.0-4":"1.0-0")),A.xp6(2),A.Q6J("ngIf",t.is_expanded)}}function ur(r,y){if(1&r&&(A.TgZ(0,"span",77),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,t.msatoshi/1e3,t.msatoshi<1e3?"1.0-4":"1.0-0")," ")}}function zr(r,y){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,ur,3,4,"span",78),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function Vn(r,y){if(1&r&&(A.TgZ(0,"td",52)(1,"span",77),A._uU(2),A.ALo(3,"number"),A.qZA(),A.YNc(4,zr,2,1,"span",9),A.qZA()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(A.xi3(3,2,(null==t?null:t.msatoshi)/1e3,(null==t?null:t.msatoshi)<1e3?"1.0-4":"1.0-0")),A.xp6(2),A.Q6J("ngIf",t.is_expanded)}}function Lr(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",60)(1,"button",82),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw(4).onPaymentClick(vA)}),A._uU(2),A.qZA()()}if(2&r){const t=y.$implicit;A.xp6(2),A.hij("View ",t.partid?t.partid:0,"")}}function dr(r,y){if(1&r&&(A.TgZ(0,"div"),A.YNc(1,Lr,3,1,"div",81),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function br(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",79)(1,"span",60)(2,"button",80),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return vA.is_expanded=!vA.is_expanded}),A._uU(3),A.qZA()(),A.YNc(4,dr,2,1,"div",9),A.qZA()}if(2&r){const t=y.$implicit;A.xp6(3),A.Oqu(t.is_expanded?"Hide":"Show"),A.xp6(1),A.Q6J("ngIf",t.is_expanded)}}function Gr(r,y){1&r&&A._UZ(0,"tr",83)}const si=function(r){return{"display-none":r}};function Hr(r,y){if(1&r&&A._UZ(0,"tr",84),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,si,(null==t.payments?null:t.payments.data)&&(null==t.payments||null==t.payments.data?null:t.payments.data.length)>0))}}function ir(r,y){1&r&&A._UZ(0,"tr",85)}function Jr(r,y){1&r&&A._UZ(0,"tr",83)}const Wn=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},bi=function(){return["no_payment"]};function Gi(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",14)(1,"div",15)(2,"div",16),A._UZ(3,"fa-icon",17),A.TgZ(4,"span",18),A._uU(5,"Payments History"),A.qZA()(),A.TgZ(6,"mat-form-field",19)(7,"input",20),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(L){return A.CHM(t),A.oxw().selFilter=L}),A.qZA()()(),A.TgZ(8,"div",21)(9,"div",22),A.YNc(10,Yr,1,0,"mat-progress-bar",23),A.TgZ(11,"table",24,25),A.ynx(13,26),A.YNc(14,nr,2,0,"th",27),A.YNc(15,J,5,6,"td",28),A.BQk(),A.ynx(16,29),A.YNc(17,N,2,0,"th",27),A.YNc(18,X,2,1,"td",28),A.BQk(),A.ynx(19,30),A.YNc(20,K,2,0,"th",27),A.YNc(21,pA,4,4,"td",28),A.BQk(),A.ynx(22,31),A.YNc(23,_A,2,0,"th",32),A.YNc(24,nt,4,4,"td",28),A.BQk(),A.ynx(25,33),A.YNc(26,ut,2,0,"th",32),A.YNc(27,Qt,4,4,"td",28),A.BQk(),A.ynx(28,34),A.YNc(29,vt,6,0,"th",35),A.YNc(30,xt,3,0,"td",36),A.BQk(),A.ynx(31,37),A.YNc(32,fe,4,3,"td",38),A.BQk(),A.ynx(33,39),A.YNc(34,Ke,6,4,"td",28),A.BQk(),A.ynx(35,40),A.YNc(36,_n,4,2,"td",28),A.BQk(),A.ynx(37,41),A.YNc(38,Hn,5,5,"td",28),A.BQk(),A.ynx(39,42),A.YNc(40,$n,5,5,"td",28),A.BQk(),A.ynx(41,43),A.YNc(42,Vn,5,5,"td",28),A.BQk(),A.ynx(43,44),A.YNc(44,br,5,2,"td",45),A.BQk(),A.YNc(45,Gr,1,0,"tr",46),A.YNc(46,Hr,1,3,"tr",47),A.YNc(47,ir,1,0,"tr",48),A.YNc(48,Jr,1,0,"tr",46),A.qZA()()(),A._UZ(49,"mat-paginator",49),A.qZA()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("icon",t.faHistory),A.xp6(4),A.Q6J("ngModel",t.selFilter),A.xp6(3),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.payments)("ngClass",A.VKq(15,Wn,""!==t.errorMessage)),A.xp6(34),A.Q6J("matRowDefColumns",t.mppColumns)("matRowDefWhen",t.is_group),A.xp6(1),A.Q6J("matFooterRowDef",A.DdM(17,bi)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)("matRowDefWhen",!t.is_group),A.xp6(1),A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let aa=(()=>{class r{constructor(t,s,L,vA,gt,ae,un,Qe,An){this.logger=t,this.commonService=s,this.store=L,this.rtlEffects=vA,this.clnEffects=gt,this.decimalPipe=ae,this.titleCasePipe=un,this.datePipe=Qe,this.dataService=An,this.calledFrom="transactions",this.faHistory=h.qO$,this.newlyAddedPayment="",this.selNode={},this.information={},this.paymentJSONArr=[],this.displayedColumns=[],this.mppColumns=[],this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHint="",this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["created_at","actions"],this.mppColumns=["groupTotal","groupAction"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["created_at","msatoshi","actions"],this.mppColumns=["groupTotal","groupAmtRecv","groupAction"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["created_at","type","msatoshi_sent","msatoshi","actions"],this.mppColumns=["groupTotal","groupType","groupAmtSent","groupAmtRecv","groupAction"]):(this.flgSticky=!0,this.displayedColumns=["created_at","type","payment_hash","msatoshi_sent","msatoshi","actions"],this.mppColumns=["groupTotal","groupType","groupHash","groupAmtSent","groupAmtRecv","groupAction"])}ngOnInit(){this.store.select(g.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(g.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(g.PP).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.paymentJSONArr=t.payments||[],this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr),this.logger.info(t)})}ngAfterViewInit(){this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr)}is_group(t,s){return s.is_group}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.created_at?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.paymentDecoded=t,this.paymentDecoded.created_at?(this.paymentDecoded.msatoshi||(this.paymentDecoded.msatoshi=0),this.sendPayment()):this.resetData()})}sendPayment(){this.newlyAddedPayment=this.paymentDecoded.payment_hash,this.paymentDecoded.msatoshi&&0!==this.paymentDecoded.msatoshi?(this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"payee",value:this.paymentDecoded.payee,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"created_at",value:this.paymentDecoded.created_at,title:"Creation Date",width:50,type:a.Gi.DATE_TIME},{key:"num_satoshis",value:this.paymentDecoded.msatoshi/1e3,title:"Amount (Sats)",width:50,type:a.Gi.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:a.Gi.NUMBER},{key:"min_finaltv_expiry",value:this.paymentDecoded.min_final_cltv_expiry,title:"CLTV Expiry",width:50}]]}}})),this.rtlEffects.closeConfirm.pipe((0,UA.q)(1)).subscribe(s=>{s&&(this.store.dispatch((0,ht.oV)({payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.INVOICE,invoice:this.paymentRequest,fromDialog:!1}})),this.resetData())})):(this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"payee",value:this.paymentDecoded.payee,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"created_at",value:this.paymentDecoded.created_at,title:"Creation Date",width:40,type:a.Gi.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:a.Gi.NUMBER},{key:"min_finaltv_expiry",value:this.paymentDecoded.min_final_cltv_expiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",getInputs:[{placeholder:"Amount (Sats)",inputType:a.Gi.NUMBER.toLowerCase(),inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,UA.q)(1)).subscribe(L=>{L&&(this.paymentDecoded.msatoshi=L[0].inputValue,this.store.dispatch((0,ht.oV)({payload:{uiMessage:a.m6.SEND_PAYMENT,paymentType:a.IX.INVOICE,invoice:this.paymentRequest,amount:1e3*L[0].inputValue,fromDialog:!1}})),this.resetData())}))}onPaymentRequestEntry(t){this.paymentRequest=t,this.paymentDecodedHint="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,i.R)(this.unSubs[1])).subscribe(s=>{this.paymentDecoded=s,this.paymentDecoded.msatoshi?this.selNode.fiatConversion?this.commonService.convertCurrency(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[3])).subscribe({next:L=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats ("+L.symbol+this.decimalPipe.transform(L.OTHER?L.OTHER:0,a.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:L=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description:this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description})}openSendPaymentModal(){this.store.dispatch((0,kA.qR)({payload:{data:{component:Cn}}}))}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}onPaymentClick(t){const s=[[{key:"payment_preimage",value:t.payment_preimage,title:"Payment Preimage",width:100,type:a.Gi.STRING}],[{key:"id",value:t.id,title:"ID",width:20,type:a.Gi.STRING},{key:"destination",value:t.destination,title:"Destination",width:80,type:a.Gi.STRING}],[{key:"created_at",value:t.created_at,title:"Creation Date",width:50,type:a.Gi.DATE_TIME},{key:"status",value:this.titleCasePipe.transform(t.status),title:"Status",width:50,type:a.Gi.STRING}],[{key:"msatoshi",value:t.msatoshi,title:"Amount (mSats)",width:50,type:a.Gi.NUMBER},{key:"msatoshi_sent",value:t.msatoshi_sent,title:"Amount Sent (mSats)",width:50,type:a.Gi.NUMBER}]];t.bolt11&&""!==t.bolt11&&s.unshift([{key:"bolt11",value:t.bolt11,title:"Bolt 11",width:100,type:a.Gi.STRING}]),t.bolt12&&""!==t.bolt12&&s.unshift([{key:"bolt12",value:t.bolt12,title:"Bolt 12",width:100,type:a.Gi.STRING}]),t.memo&&""!==t.memo&&s.splice(2,0,[{key:"memo",value:t.memo,title:"Memo",width:100,type:a.Gi.STRING}]),t.hasOwnProperty("partid")?s.unshift([{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:80,type:a.Gi.STRING},{key:"partid",value:t.partid,title:"Part ID",width:20,type:a.Gi.STRING}]):s.unshift([{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:a.Gi.STRING}]),this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Payment Information",message:s}}}))}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}loadPaymentsTable(t){this.payments=new yA.by(t?[...t]:[]),this.payments.data=this.paymentJSONArr,this.payments.sort=this.sort,this.payments.sortingDataAccessor=(s,L)=>s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]:null,this.payments.filterPredicate=(s,L)=>((s.created_at?this.datePipe.transform(new Date(1e3*s.created_at),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.bolt12?"bolt12":s.bolt11?"bolt11":"keysend")+JSON.stringify(s).toLowerCase()).includes(L),this.payments.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const s=JSON.parse(JSON.stringify(this.payments.data)).reduce((L,vA)=>vA.mpps?L.concat(vA.mpps):(delete vA.is_group,delete vA.is_expanded,delete vA.total_parts,L.concat(vA)),[]);this.commonService.downloadFile(s,"Payments")}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh),A.Y36(At.V),A.Y36(In.J),A.Y36(Et.JJ),A.Y36(Et.rS),A.Y36(Et.uU),A.Y36(PA.D))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-lightning-payments"]],viewQuery:function(t,s){if(1&t&&(A.Gf(an,5),A.Gf(rt.YE,5),A.Gf(WA.NW,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.form=L.first),A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.paginator=L.first)}},inputs:{calledFrom:"calledFrom"},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Payments")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["sendPaymentForm","ngForm"],["fxFlex","100"],["matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"perfectScrollbar","ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","row"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","created_at"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","payment_hash"],["matColumnDef","msatoshi_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","groupTotal"],["matColumnDef","groupType"],["matColumnDef","groupHash"],["matColumnDef","groupAmtSent"],["matColumnDef","groupAmtRecv"],["matColumnDef","groupAction"],["mat-cell","","class","px-3",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Completed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Completed","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Failed","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"mpp-row-span"],["class","dot green mt-0","matTooltip","Completed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow mt-0","matTooltip","Incomplete/Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Completed","matTooltipPosition","right",1,"dot","green","mt-0",3,"ngClass"],["matTooltip","Incomplete/Failed","matTooltipPosition","right",1,"dot","yellow","mt-0",3,"ngClass"],["fxLayoutAlign","start center","class","mpp-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"mpp-row-span","pl-3"],["fxLayoutAlign","start center","class","mpp-row-span",4,"ngFor","ngForOf"],["fxLayout","row",1,"ellipsis-parent","mpp-row-span",3,"ngStyle"],["fxLayoutAlign","end center",1,"mpp-row-span"],["fxLayoutAlign","end center","class","mpp-row-span",4,"ngFor","ngForOf"],["mat-cell","",1,"px-3"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-mpp-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-mpp-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Xn,12,3,"form",1),A.YNc(2,Fr,3,0,"div",2),A.YNc(3,Gi,50,18,"div",3),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf","home"===s.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===s.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===s.calledFrom))},directives:[Ct.xw,Ct.yH,Ct.Wh,Et.O5,OA._Y,OA.JL,OA.F,Z.KE,Yt.Nt,OA.Fj,OA.Q7,lA.$V,OA.JJ,OA.On,Z.bx,Z.TO,Q.lW,f.BN,Y.pW,yA.BZ,rt.YE,Et.mk,m.oO,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,aA.gM,Et.PC,m.Zl,R.gD,R.$L,QA.ey,yA.mD,yA.yh,Et.sg,yA.nj,yA.Gk,yA.Ke,yA.Q2,yA.as,yA.XQ,WA.NW],pipes:[Et.uU,Et.JJ],styles:[".mat-column-payment_hash[_ngcontent-%COMP%]{flex:0 0 25%;width:25%}.mat-column-payment_hash[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%], .mat-column-groupAction[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-mpp-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-mpp-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}.mpp-row-span[_ngcontent-%COMP%]{min-height:4.2rem;place-content:center flex-start;align-items:center}.mat-column-groupTotal[_ngcontent-%COMP%]{min-width:17rem}"]}),r})();function oo(r,y){if(1&r&&(A.TgZ(0,"button",26)(1,"mat-icon"),A._uU(2,"more_vert"),A.qZA()()),2&r){A.oxw();const t=A.MAs(11);A.Q6J("matMenuTriggerFor",t)}}function so(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){const vA=A.CHM(t).index,gt=A.oxw().$implicit;return A.oxw(2).onNavigateTo(gt.links[vA])}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit;A.xp6(1),A.Oqu(t)}}function lo(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){return A.CHM(t),A.oxw(3).onsortChannelsBy()}),A._uU(1),A.qZA()}if(2&r){const t=A.oxw(3);A.xp6(1),A.hij("Sort By ","Balance Score"===t.sortField?"Capacity":"Balance Score","")}}function co(r,y){1&r&&A._UZ(0,"mat-progress-bar",28)}function go(r,y){if(1&r&&A._UZ(0,"rtl-cln-node-info",29),2&r){const t=A.oxw(3);A.Q6J("information",t.information)("showColorFieldSeparately",!1)}}function Bo(r,y){if(1&r&&A._UZ(0,"rtl-cln-balances-info",30),2&r){const t=A.oxw(3);A.Q6J("balances",t.balances)("errorMessage",t.errorMessages[2]+" "+t.errorMessages[3])}}function oa(r,y){if(1&r&&A._UZ(0,"rtl-cln-channel-capacity-info",31),2&r){const t=A.oxw(3);A.Q6J("sortBy",t.sortField)("channelBalances",t.channelBalances)("activeChannels",t.activeChannelsCapacity)("errorMessage",t.errorMessages[4]+" "+t.errorMessages[3])}}function uo(r,y){if(1&r&&A._UZ(0,"rtl-cln-fee-info",32),2&r){const t=A.oxw(3);A.Q6J("fees",t.fees)("errorMessage",t.errorMessages[1]+" "+t.errorMessages[4]+" "+t.errorMessages[5])}}function sa(r,y){if(1&r&&A._UZ(0,"rtl-cln-channel-status-info",33),2&r){const t=A.oxw(3);A.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[0]+" "+t.errorMessages[3]+" "+t.errorMessages[4])}}function la(r,y){1&r&&(A.TgZ(0,"h3"),A._uU(1,"Error! Unable to find information!"),A.qZA())}const ca=function(r){return{"dashboard-card-content":!0,"error-border":r}};function fo(r,y){if(1&r&&(A.TgZ(0,"mat-grid-tile",8)(1,"mat-card",9)(2,"mat-card-header")(3,"mat-card-title",10)(4,"div"),A._UZ(5,"fa-icon",11),A.TgZ(6,"span"),A._uU(7),A.qZA()(),A.TgZ(8,"div"),A.YNc(9,oo,3,1,"button",12),A.TgZ(10,"mat-menu",13,14),A.YNc(12,so,2,1,"button",15),A.YNc(13,lo,2,1,"button",16),A.qZA()()()(),A.TgZ(14,"mat-card-content",17),A.YNc(15,co,1,0,"mat-progress-bar",18),A.TgZ(16,"div",19),A.YNc(17,go,1,2,"rtl-cln-node-info",20),A.YNc(18,Bo,1,2,"rtl-cln-balances-info",21),A.YNc(19,oa,1,4,"rtl-cln-channel-capacity-info",22),A.YNc(20,uo,1,2,"rtl-cln-fee-info",23),A.YNc(21,sa,1,2,"rtl-cln-channel-status-info",24),A.YNc(22,la,2,0,"h3",25),A.qZA()()()()),2&r){const t=y.$implicit,s=A.oxw(2);A.Q6J("colspan",t.cols)("rowspan",t.rows),A.xp6(5),A.Q6J("icon",t.icon),A.xp6(2),A.Oqu(t.title),A.xp6(2),A.Q6J("ngIf",t.links[0]),A.xp6(3),A.Q6J("ngForOf",t.goToOptions),A.xp6(1),A.Q6J("ngIf","capacity"===t.id),A.xp6(1),A.s9C("fxFlex","capacity"===t.id?90:70),A.Q6J("ngClass",A.VKq(16,ca,"node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||"balance"===t.id&&(s.apiCallStatusBalance.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR)||"capacity"===t.id&&(s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.ERROR)||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR))),A.xp6(1),A.Q6J("ngIf","node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||"balance"===t.id&&(s.apiCallStatusBalance.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)||"capacity"===t.id&&(s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.INITIATED)||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)),A.xp6(1),A.Q6J("ngSwitch",t.id),A.xp6(1),A.Q6J("ngSwitchCase","node"),A.xp6(1),A.Q6J("ngSwitchCase","balance"),A.xp6(1),A.Q6J("ngSwitchCase","capacity"),A.xp6(1),A.Q6J("ngSwitchCase","fee"),A.xp6(1),A.Q6J("ngSwitchCase","status")}}function ho(r,y){if(1&r&&(A.TgZ(0,"div",2)(1,"div",3),A._UZ(2,"fa-icon",4),A.TgZ(3,"span",5),A._uU(4),A.qZA()(),A.TgZ(5,"mat-grid-list",6),A.YNc(6,fo,23,18,"mat-grid-tile",7),A.qZA()()),2&r){const t=A.oxw();A.xp6(2),A.Q6J("icon",t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.ERROR?t.faFrown:t.faSmile),A.xp6(2),A.Oqu(t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.COMPLETED?"Welcome "+t.information.alias+"! Your node is up and running.":t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.INITIATED?"Wait! Getting your node information...":"Error! Please check the server connection."),A.xp6(1),A.Q6J("rowHeight",t.operatorCardHeight),A.xp6(1),A.Q6J("ngForOf",t.operatorCards)}}function Eo(r,y){if(1&r&&(A.TgZ(0,"button",26)(1,"mat-icon"),A._uU(2,"more_vert"),A.qZA()()),2&r){A.oxw();const t=A.MAs(9);A.Q6J("matMenuTriggerFor",t)}}function wo(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){const vA=A.CHM(t).index,gt=A.oxw(2).$implicit;return A.oxw(2).onNavigateTo(gt.links[vA])}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit;A.xp6(1),A.Oqu(t)}}function Co(r,y){if(1&r&&(A.TgZ(0,"mat-card-header")(1,"mat-card-title",10)(2,"div"),A._UZ(3,"fa-icon",11),A.TgZ(4,"span"),A._uU(5),A.qZA()(),A.TgZ(6,"div"),A.YNc(7,Eo,3,1,"button",12),A.TgZ(8,"mat-menu",13,42),A.YNc(10,wo,2,1,"button",15),A.qZA()()()()),2&r){const t=A.oxw().$implicit;A.xp6(3),A.Q6J("icon",t.icon),A.xp6(2),A.Oqu(t.title),A.xp6(2),A.Q6J("ngIf",t.links[0]),A.xp6(3),A.Q6J("ngForOf",t.goToOptions)}}function Qo(r,y){1&r&&A._UZ(0,"mat-progress-bar",28)}function Mo(r,y){if(1&r&&A._UZ(0,"rtl-cln-node-info",43),2&r){const t=A.oxw(3);A.Q6J("information",t.information)}}function po(r,y){if(1&r&&A._UZ(0,"rtl-cln-balances-info",30),2&r){const t=A.oxw(3);A.Q6J("balances",t.balances)("errorMessage",t.errorMessages[2]+" "+t.errorMessages[3])}}function Io(r,y){if(1&r&&A._UZ(0,"rtl-cln-channel-liquidity-info",44),2&r){const t=A.oxw(3);A.Q6J("direction","In")("totalLiquidity",t.totalInboundLiquidity)("activeChannels",t.allInboundChannels)("errorMessage",t.errorMessages[4])}}function ga(r,y){if(1&r&&A._UZ(0,"rtl-cln-channel-liquidity-info",44),2&r){const t=A.oxw(3);A.Q6J("direction","Out")("totalLiquidity",t.totalOutboundLiquidity)("activeChannels",t.allOutboundChannels)("errorMessage",t.errorMessages[4])}}function mo(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"button",27),A.NdJ("click",function(){const vA=A.CHM(t).index,gt=A.oxw(3).$implicit;return A.oxw(2).onNavigateTo(gt.links[vA])}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit;A.xp6(1),A.Oqu(t)}}function vo(r,y){if(1&r&&(A.TgZ(0,"button",26)(1,"mat-icon"),A._uU(2,"more_vert"),A.qZA()(),A.TgZ(3,"mat-menu",13,53),A.YNc(5,mo,2,1,"button",15),A.qZA()),2&r){const t=A.MAs(4),s=A.oxw(2).$implicit;A.Q6J("matMenuTriggerFor",t),A.xp6(5),A.Q6J("ngForOf",s.goToOptions)}}function Do(r,y){1&r&&(A.TgZ(0,"span",45)(1,"mat-tab-group",46)(2,"mat-tab",47),A._UZ(3,"rtl-cln-lightning-invoices-table",48),A.qZA(),A.TgZ(4,"mat-tab",49),A._UZ(5,"rtl-cln-lightning-payments",50),A.qZA(),A.TgZ(6,"mat-tab",51),A.YNc(7,vo,6,2,"ng-template",52),A.qZA()()()),2&r&&(A.xp6(3),A.Q6J("calledFrom","home"),A.xp6(2),A.Q6J("calledFrom","home"),A.xp6(1),A.Q6J("disabled",!0))}function yo(r,y){1&r&&(A.TgZ(0,"h3"),A._uU(1,"Error! Unable to find information!"),A.qZA())}const Ar=function(r){return{"p-0":r}};function fr(r,y){if(1&r&&(A.TgZ(0,"mat-grid-tile",8)(1,"mat-card",36),A.YNc(2,Co,11,4,"mat-card-header",37),A.TgZ(3,"mat-card-content",38),A.YNc(4,Qo,1,0,"mat-progress-bar",18),A.TgZ(5,"div",19),A.YNc(6,Mo,1,1,"rtl-cln-node-info",39),A.YNc(7,po,1,2,"rtl-cln-balances-info",21),A.YNc(8,Io,1,4,"rtl-cln-channel-liquidity-info",40),A.YNc(9,ga,1,4,"rtl-cln-channel-liquidity-info",40),A.YNc(10,Do,8,3,"span",41),A.YNc(11,yo,2,0,"h3",25),A.qZA()()()()),2&r){const t=y.$implicit,s=A.oxw(2);A.Q6J("colspan",t.cols)("rowspan",t.rows),A.xp6(1),A.Q6J("ngClass",A.VKq(13,Ar,"transactions"===t.id)),A.xp6(1),A.Q6J("ngIf","transactions"!==t.id),A.xp6(1),A.s9C("fxFlex","transactions"===t.id?100:"balance"===t.id?70:90),A.Q6J("ngClass",A.VKq(15,ca,"node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||"balance"===t.id&&(s.apiCallStatusBalance.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR)),A.xp6(1),A.Q6J("ngIf","node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||"balance"===t.id&&(s.apiCallStatusBalance.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngSwitch",t.id),A.xp6(1),A.Q6J("ngSwitchCase","node"),A.xp6(1),A.Q6J("ngSwitchCase","balance"),A.xp6(1),A.Q6J("ngSwitchCase","inboundLiq"),A.xp6(1),A.Q6J("ngSwitchCase","outboundLiq"),A.xp6(1),A.Q6J("ngSwitchCase","transactions")}}function li(r,y){if(1&r&&(A.TgZ(0,"div",34),A._UZ(1,"fa-icon",4),A.TgZ(2,"span",5),A._uU(3),A.qZA()(),A.TgZ(4,"mat-grid-list",35),A.YNc(5,fr,12,17,"mat-grid-tile",7),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faSmile),A.xp6(2),A.hij("Welcome ",t.information.alias,"! Your node is up and running."),A.xp6(1),A.Q6J("rowHeight",t.merchantCardHeight),A.xp6(1),A.Q6J("ngForOf",t.merchantCards)}}let xo=(()=>{class r{constructor(t,s,L,vA,gt){this.logger=t,this.store=s,this.actions=L,this.commonService=vA,this.router=gt,this.faSmile=l.ctA,this.faFrown=l.KfU,this.faAngleDoubleDown=h.Sbq,this.faAngleDoubleUp=h.Vfw,this.faChartPie=h.OS1,this.faBolt=h.BDt,this.faServer=h.xf3,this.faNetworkWired=h.kXW,this.userPersonaEnum=a.ol,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.selNode={},this.information={},this.totalBalance={},this.balances={onchain:-1,lightning:-1,total:0},this.activeChannels=[],this.channelsStatus={active:{},pending:{},inactive:{}},this.activeChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="330px",this.merchantCardHeight="65px",this.sortField="Balance Score",this.errorMessages=["","","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusFees=null,this.apiCallStatusBalance=null,this.apiCallStatusLRBal=null,this.apiCallStatusChannels=null,this.apiCallStatusFHistory=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/pending"],icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:6,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/pending"],icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:3,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}]):(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/pending"],icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:2,rows:5}])}ngOnInit(){this.store.select(g.Hz).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessages[0]="",this.errorMessages[5]="",this.apiCallStatusNodeInfo=t.apisCallStatus[0],this.apiCallStatusFHistory=t.apisCallStatus[1],this.apiCallStatusNodeInfo.status===a.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message),this.apiCallStatusFHistory.status===a.Bn.ERROR&&(this.errorMessages[5]="object"==typeof this.apiCallStatusFHistory.message?JSON.stringify(this.apiCallStatusFHistory.message):this.apiCallStatusFHistory.message),this.selNode=t.nodeSettings,this.information=t.information}),this.store.select(g.JG).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.errorMessages[1]="",this.apiCallStatusFees=t.apiCallStatus,this.apiCallStatusFees.status===a.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message),this.fees=t.fees,this.logger.info(t)}),this.store.select(g.ZW).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessages[4]="",this.apiCallStatusChannels=t.apiCallStatus,this.apiCallStatusChannels.status===a.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message),this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.activeChannels=t.activeChannels,this.activeChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.activeChannels,"balancedness")))||[],this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.activeChannels.filter(s=>s.msatoshi_to_them>0),"msatoshi_to_them")))||[],this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.activeChannels.filter(s=>s.msatoshi_to_us>0),"msatoshi_to_us")))||[],this.activeChannels.forEach(s=>{this.totalInboundLiquidity=this.totalInboundLiquidity+Math.ceil(s.msatoshi_to_them/1e3),this.totalOutboundLiquidity=this.totalOutboundLiquidity+Math.floor(s.msatoshi_to_us/1e3)}),this.channelsStatus.active.channels=t.activeChannels.length||0,this.channelsStatus.pending.channels=t.pendingChannels.length||0,this.channelsStatus.inactive.channels=t.inactiveChannels.length||0,this.logger.info(t)}),this.store.select(g.Rn).pipe((0,i.R)(this.unSubs[3]),(0,o.M)(this.store.select(g.Wj))).subscribe(([t,s])=>{this.errorMessages[2]="",this.apiCallStatusBalance=t.apiCallStatus,this.apiCallStatusBalance.status===a.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusBalance.message?JSON.stringify(this.apiCallStatusBalance.message):this.apiCallStatusBalance.message),this.errorMessages[3]="",this.apiCallStatusLRBal=s.apiCallStatus,this.apiCallStatusLRBal.status===a.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusLRBal.message?JSON.stringify(this.apiCallStatusLRBal.message):this.apiCallStatusLRBal.message),this.totalBalance=t.balance,this.balances.onchain=t.balance.totalBalance,this.balances.lightning=s.localRemoteBalance.localBalance,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances);const L=s.localRemoteBalance.localBalance?+s.localRemoteBalance.localBalance:0,vA=s.localRemoteBalance.remoteBalance?+s.localRemoteBalance.remoteBalance:0;this.channelBalances={localBalance:L,remoteBalance:vA,balancedness:+(1-Math.abs((L-vA)/(L+vA))).toFixed(3)},this.channelsStatus.active.capacity=s.localRemoteBalance.localBalance||0,this.channelsStatus.pending.capacity=s.localRemoteBalance.pendingBalance||0,this.channelsStatus.inactive.capacity=s.localRemoteBalance.inactiveBalance||0,this.logger.info(t),this.logger.info(s)})}onNavigateTo(t){this.router.navigateByUrl("/cln/"+t)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.activeChannelsCapacity=this.activeChannels.sort((t,s)=>{const L=+t.msatoshi_to_us+ +t.msatoshi_to_them,vA=+s.msatoshi_to_them+ +s.msatoshi_to_them;return L>vA?-1:L{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(C.eX),A.Y36(e.v),A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-home"]],decls:3,vars:2,consts:[["fxLayout","column",4,"ngIf","ngIfElse"],["merchantDashboard",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","mb-0"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10",3,"rowHeight"],[3,"colspan","rowspan",4,"ngFor","ngForOf"],[3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card","mt-4"],["fxLayoutAlign","space-between center"],[1,"mr-1",3,"icon"],["mat-icon-button","","class","more-button","aria-label","Toggle menu",3,"matMenuTriggerFor",4,"ngIf"],["xPosition","before",1,"dashboard-vert-menu"],["menuOperator","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click",4,"ngIf"],["fxLayout","column",3,"fxFlex","ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"balances","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"sortBy","channelBalances","activeChannels","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["mat-icon-button","","aria-label","Toggle menu",1,"more-button",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"balances","errorMessage"],["fxFlex","100",3,"sortBy","channelBalances","activeChannels","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container","mb-0"],["cols","6",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card","mt-4",3,"ngClass"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",3,"fxFlex","ngClass"],["fxFlex","100",3,"information",4,"ngSwitchCase"],["fxFlex","100",3,"direction","totalLiquidity","activeChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start",4,"ngSwitchCase"],["menuMerchant","matMenu"],["fxFlex","100",3,"information"],["fxFlex","100",3,"direction","totalLiquidity","activeChannels","errorMessage"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","column",1,"w-100","dashboard-tabs-group"],["label","Receive"],[1,"h-100",3,"calledFrom"],["label","Pay"],[3,"calledFrom"],[3,"disabled"],["mat-tab-label",""],["menuTransactions","matMenu"]],template:function(t,s){if(1&t&&(A.YNc(0,ho,7,4,"div",0),A.YNc(1,li,6,4,"ng-template",null,1,A.W1O)),2&t){const L=A.MAs(2);A.Q6J("ngIf",(null==s.selNode?null:s.selNode.userPersona)===s.userPersonaEnum.OPERATOR)("ngIfElse",L)}},directives:[Et.O5,Ct.xw,Ct.Wh,f.BN,B.Il,Et.sg,B.DX,w.a8,Ct.yH,w.dk,w.n5,Q.lW,p.p6,S.Hw,p.VK,p.OP,w.dn,Et.mk,m.oO,Y.pW,Et.RF,Et.n9,T,b,dA,SA,q,Et.ED,It,ft.SP,ft.uX,tt,aa,ft.uD],styles:[""]}),r})();var Ba=Nt(9841),Fo=Nt(8012),ua=Nt(8377),Tr=Nt(7261),ar=Nt(1125),Mr=Nt(5615);const Yo=["form"],To=["formSweepAll"],So=["stepper"];function No(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Bitcoin address is required."),A.qZA())}function Uo(r,y){1&r&&(A.TgZ(0,"mat-hint"),A._uU(1,"Amount replaced by UTXO balance"),A.qZA())}function Po(r,y){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.amountError)}}function Ro(r,y){if(1&r&&(A.TgZ(0,"mat-option",38),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t),A.xp6(1),A.Oqu(t)}}function zo(r,y){if(1&r&&(A.TgZ(0,"mat-option",38),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function Lo(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function bo(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",39)(1,"input",40,41),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw(2).customFeeRate=L}),A.qZA(),A.YNc(3,Lo,2,0,"mat-error",14),A.qZA()}if(2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngModel",t.customFeeRate)("step",.1)("min",0)("required","customperkb"===t.selFeeRate&&!t.flgMinConf),A.xp6(2),A.Q6J("ngIf","customperkb"===t.selFeeRate&&!t.flgMinConf&&!t.customFeeRate)}}function Go(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function Ho(r,y){if(1&r&&(A.TgZ(0,"mat-option",38),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t),A.xp6(1),A.hij("",A.lcZ(2,2,t.value)," Sats")}}function fa(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",23)(1,"mat-expansion-panel",42),A.NdJ("closed",function(){return A.CHM(t),A.oxw(2).onAdvancedPanelToggle(!0)})("opened",function(){return A.CHM(t),A.oxw(2).onAdvancedPanelToggle(!1)}),A.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"span"),A._uU(5),A.qZA()()(),A.TgZ(6,"div",22)(7,"div",43)(8,"mat-form-field",44)(9,"mat-select",45),A.NdJ("selectionChange",function(L){return A.CHM(t),A.oxw(2).onUTXOSelectionChange(L)})("valueChange",function(L){return A.CHM(t),A.oxw(2).selUTXOs=L}),A.TgZ(10,"mat-select-trigger"),A._uU(11),A.ALo(12,"number"),A.qZA(),A.YNc(13,Ho,3,4,"mat-option",21),A.qZA()(),A.TgZ(14,"div",46)(15,"mat-slide-toggle",47),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw(2).flgUseAllBalance=L})("change",function(){return A.CHM(t),A.oxw(2).onUTXOAllBalanceChange()}),A._uU(16," Use selected UTXOs balance "),A.qZA(),A.TgZ(17,"mat-icon",48),A._uU(18,"info_outline"),A.qZA()()()()()()}if(2&r){const t=A.oxw(2);A.xp6(5),A.Oqu(t.advancedTitle),A.xp6(4),A.Q6J("value",t.selUTXOs),A.xp6(2),A.AsE("",A.lcZ(12,7,t.totalSelectedUTXOAmount)," Sats (",t.selUTXOs.length>1?t.selUTXOs.length+" UTXOs":"1 UTXO",")"),A.xp6(2),A.Q6J("ngForOf",t.utxos),A.xp6(2),A.Q6J("ngModel",t.flgUseAllBalance)("disabled",t.selUTXOs.length<1)}}function Jo(r,y){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.sendFundError)}}function Oo(r,y){if(1&r&&(A.TgZ(0,"div",49),A._UZ(1,"fa-icon",50),A.YNc(2,Jo,2,1,"span",14),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.sendFundError)}}const ha=function(r,y){return{"mr-6":r,"mr-2":y}};function ko(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"form",9,10),A.NdJ("submit",function(){return A.CHM(t),A.oxw().onSendFunds()})("reset",function(){return A.CHM(t),A.oxw().resetData()}),A.TgZ(2,"mat-form-field",11)(3,"input",12,13),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().transaction.address=L}),A.qZA(),A.YNc(5,No,2,0,"mat-error",14),A.qZA(),A.TgZ(6,"mat-form-field",15)(7,"input",16,17),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().transaction.satoshis=L}),A.qZA(),A.YNc(9,Uo,2,0,"mat-hint",14),A.TgZ(10,"span",18),A._uU(11),A.qZA(),A.YNc(12,Po,2,1,"mat-error",14),A.qZA(),A.TgZ(13,"mat-form-field",19)(14,"mat-select",20),A.NdJ("selectionChange",function(L){return A.CHM(t),A.oxw().onAmountUnitChange(L)}),A.YNc(15,Ro,2,2,"mat-option",21),A.qZA()(),A.TgZ(16,"div",22)(17,"div",23)(18,"div",24)(19,"mat-form-field",25)(20,"mat-select",26),A.NdJ("valueChange",function(L){return A.CHM(t),A.oxw().selFeeRate=L})("selectionChange",function(){return A.CHM(t),A.oxw().customFeeRate=null}),A.YNc(21,zo,2,2,"mat-option",21),A.qZA()(),A.YNc(22,bo,4,5,"mat-form-field",27),A.qZA(),A.TgZ(23,"div",28)(24,"mat-checkbox",29),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().flgMinConf=L})("change",function(){A.CHM(t);const L=A.oxw();return L.flgMinConf?L.selFeeRate=null:L.minConfValue=null}),A.qZA(),A.TgZ(25,"mat-form-field",30)(26,"input",31,32),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().minConfValue=L}),A.qZA(),A.YNc(28,Go,2,0,"mat-error",14),A.qZA()()(),A.YNc(29,fa,19,9,"div",33),A._UZ(30,"div",22),A.YNc(31,Oo,3,2,"div",34),A.TgZ(32,"div",35)(33,"button",36),A._uU(34,"Clear Fields"),A.qZA(),A.TgZ(35,"button",37),A._uU(36,"Send Funds"),A.qZA()()()()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.transaction.address),A.xp6(2),A.Q6J("ngIf",!t.transaction.address),A.xp6(2),A.Q6J("ngModel",t.transaction.satoshis)("type",t.flgUseAllBalance?"text":"number")("step",100)("min",0)("disabled",t.flgUseAllBalance),A.xp6(2),A.Q6J("ngIf",t.flgUseAllBalance),A.xp6(2),A.hij(" ",t.selAmountUnit," "),A.xp6(1),A.Q6J("ngIf",!t.transaction.satoshis),A.xp6(2),A.Q6J("value",t.selAmountUnit)("disabled",t.flgUseAllBalance),A.xp6(1),A.Q6J("ngForOf",t.amountUnits),A.xp6(4),A.Q6J("fxFlex","customperkb"!==t.selFeeRate||t.flgMinConf?"100":"48"),A.xp6(1),A.Q6J("value",t.selFeeRate)("disabled",t.flgMinConf),A.xp6(1),A.Q6J("ngForOf",t.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===t.selFeeRate&&!t.flgMinConf),A.xp6(2),A.Q6J("ngModel",t.flgMinConf)("ngClass",A.WLB(28,ha,t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM,t.screenSize===t.screenSizeEnum.MD||t.screenSize===t.screenSizeEnum.LG||t.screenSize===t.screenSizeEnum.XL)),A.xp6(2),A.Q6J("ngModel",t.minConfValue)("step",1)("min",0)("required",t.flgMinConf)("disabled",!t.flgMinConf),A.xp6(2),A.Q6J("ngIf",t.flgMinConf&&!t.minConfValue),A.xp6(1),A.Q6J("ngIf",t.isCompatibleVersion),A.xp6(2),A.Q6J("ngIf",""!==t.sendFundError)}}function jo(r,y){if(1&r&&A._uU(0),2&r){const t=A.oxw(3);A.Oqu(t.passwordFormLabel)}}function Ko(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Password is required."),A.qZA())}function Vo(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-step",55)(1,"form",73),A.YNc(2,jo,1,1,"ng-template",67),A.TgZ(3,"div",0)(4,"mat-form-field",1),A._UZ(5,"input",74),A.YNc(6,Ko,2,0,"mat-error",14),A.qZA()(),A.TgZ(7,"div",75)(8,"button",76),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onAuthenticate()}),A._uU(9,"Confirm"),A.qZA()()()()}if(2&r){const t=A.oxw(2);A.Q6J("stepControl",t.passwordFormGroup)("editable",t.flgEditable),A.xp6(1),A.Q6J("formGroup",t.passwordFormGroup),A.xp6(5),A.Q6J("ngIf",null==t.passwordFormGroup.controls.password.errors?null:t.passwordFormGroup.controls.password.errors.required)}}function Wo(r,y){if(1&r&&A._uU(0),2&r){const t=A.oxw(2);A.Oqu(t.sendFundFormLabel)}}function Zo(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Bitcoin address is required."),A.qZA())}function Xo(r,y){if(1&r&&(A.TgZ(0,"mat-option",38),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function qo(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function _o(r,y){if(1&r&&(A.TgZ(0,"mat-form-field",39),A._UZ(1,"input",77),A.YNc(2,qo,2,0,"mat-error",14),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("step",.1)("min",0),A.xp6(1),A.Q6J("ngIf","customperkb"===t.sendFundFormGroup.controls.selFeeRate.value&&!t.sendFundFormGroup.controls.flgMinConf.value&&!t.sendFundFormGroup.controls.customFeeRate.value)}}function se(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function $o(r,y){if(1&r&&A._uU(0),2&r){const t=A.oxw(2);A.Oqu(t.confirmFormLabel)}}function ci(r,y){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.sendFundError)}}function gi(r,y){if(1&r&&(A.TgZ(0,"div",49),A._UZ(1,"fa-icon",50),A.YNc(2,ci,2,1,"span",14),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.sendFundError)}}function Sr(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",51)(1,"mat-vertical-stepper",52,53),A.NdJ("selectionChange",function(L){return A.CHM(t),A.oxw().stepSelectionChanged(L)}),A.YNc(3,Vo,10,4,"mat-step",54),A.TgZ(4,"mat-step",55)(5,"form",56),A.YNc(6,Wo,1,1,"ng-template",57),A.TgZ(7,"div",22)(8,"mat-form-field",1),A._UZ(9,"input",58),A.YNc(10,Zo,2,0,"mat-error",14),A.qZA(),A.TgZ(11,"div",59)(12,"div",24)(13,"mat-form-field",25)(14,"mat-select",60),A.YNc(15,Xo,2,2,"mat-option",21),A.qZA()(),A.YNc(16,_o,3,3,"mat-form-field",27),A.qZA(),A.TgZ(17,"div",28),A._UZ(18,"mat-checkbox",61),A.TgZ(19,"mat-form-field",30),A._UZ(20,"input",62),A.YNc(21,se,2,0,"mat-error",14),A.qZA()()()(),A.TgZ(22,"div",63)(23,"button",64),A._uU(24,"Next"),A.qZA()()()(),A.TgZ(25,"mat-step",65)(26,"form",66),A.YNc(27,$o,1,1,"ng-template",67),A.TgZ(28,"div",51)(29,"div",68),A._UZ(30,"fa-icon",69),A.TgZ(31,"span"),A._uU(32,"You are about to sweep all funds from RTL. Are you sure?"),A.qZA()(),A.YNc(33,gi,3,2,"div",34),A.TgZ(34,"div",63)(35,"button",70),A.NdJ("click",function(){return A.CHM(t),A.oxw().onSendFunds()}),A._uU(36,"Sweep All Funds"),A.qZA()()()()()(),A.TgZ(37,"div",71)(38,"button",72),A._uU(39),A.qZA()()()}if(2&r){const t=A.oxw();A.xp6(1),A.Q6J("linear",!0),A.xp6(2),A.Q6J("ngIf",!t.appConfig.sso.rtlSSO),A.xp6(1),A.Q6J("stepControl",t.sendFundFormGroup)("editable",t.flgEditable),A.xp6(1),A.Q6J("formGroup",t.sendFundFormGroup),A.xp6(5),A.Q6J("ngIf",null==t.sendFundFormGroup.controls.transactionAddress.errors?null:t.sendFundFormGroup.controls.transactionAddress.errors.required),A.xp6(3),A.Q6J("fxFlex","customperkb"!==t.sendFundFormGroup.controls.selFeeRate.value||t.sendFundFormGroup.controls.flgMinConf.value?"100":"48"),A.xp6(2),A.Q6J("ngForOf",t.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===t.sendFundFormGroup.controls.selFeeRate.value&&!t.sendFundFormGroup.controls.flgMinConf.value),A.xp6(2),A.Q6J("ngClass",A.WLB(20,ha,t.screenSize===t.screenSizeEnum.XS||t.screenSize===t.screenSizeEnum.SM,t.screenSize===t.screenSizeEnum.MD||t.screenSize===t.screenSizeEnum.LG||t.screenSize===t.screenSizeEnum.XL)),A.xp6(2),A.Q6J("step",1)("min",0)("required",t.sendFundFormGroup.controls.flgMinConf.value),A.xp6(1),A.Q6J("ngIf",t.sendFundFormGroup.controls.flgMinConf.value&&!t.sendFundFormGroup.controls.minConfValue.value),A.xp6(4),A.Q6J("stepControl",t.confirmFormGroup),A.xp6(1),A.Q6J("formGroup",t.confirmFormGroup),A.xp6(4),A.Q6J("icon",t.faExclamationTriangle),A.xp6(3),A.Q6J("ngIf",""!==t.sendFundError),A.xp6(5),A.Q6J("mat-dialog-close",!1),A.xp6(1),A.Oqu(t.flgValidated?"Close":"Cancel")}}let or=(()=>{class r{constructor(t,s,L,vA,gt,ae,un,Qe,An,ia){this.dialogRef=t,this.data=s,this.logger=L,this.store=vA,this.commonService=gt,this.decimalPipe=ae,this.actions=un,this.formBuilder=Qe,this.rtlEffects=An,this.snackBar=ia,this.faExclamationTriangle=h.eHv,this.sweepAll=!1,this.selNode={},this.addressTypes=[],this.utxos=[],this.selUTXOs=[],this.flgUseAllBalance=!1,this.totalSelectedUTXOAmount=null,this.selectedAddress=a._t[1],this.blockchainBalance={},this.information={},this.isCompatibleVersion=!1,this.newAddress="",this.transaction={},this.feeRateTypes=a.vn,this.selFeeRate="",this.customFeeRate=null,this.flgMinConf=!1,this.minConfValue=null,this.sendFundError="",this.fiatConversion=!1,this.amountUnits=a.uA,this.selAmountUnit=a.uA[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=a.Xz,this.advancedTitle="Advanced Options",this.flgValidated=!1,this.flgEditable=!0,this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds",this.confirmFormLabel="Confirm sweep",this.amountError="Amount is Required.",this.screenSize="",this.screenSizeEnum=a.cu,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.sweepAll=this.data.sweepAll,this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[OA.kI.required]],password:["",[OA.kI.required]]}),this.sendFundFormGroup=this.formBuilder.group({transactionAddress:["",OA.kI.required],selFeeRate:[null],customFeeRate:[null],flgMinConf:[!1],minConfValue:[{value:null,disabled:!0}]}),this.confirmFormGroup=this.formBuilder.group({}),this.sendFundFormGroup.controls.flgMinConf.valueChanges.pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{t?(this.sendFundFormGroup.controls.selFeeRate.disable(),this.sendFundFormGroup.controls.selFeeRate.setValue(null),this.sendFundFormGroup.controls.minConfValue.reset(),this.sendFundFormGroup.controls.minConfValue.enable(),this.sendFundFormGroup.controls.minConfValue.setValidators([OA.kI.required]),this.sendFundFormGroup.controls.minConfValue.setValue(null)):(this.sendFundFormGroup.controls.selFeeRate.enable(),this.sendFundFormGroup.controls.selFeeRate.setValue(null),this.sendFundFormGroup.controls.minConfValue.setValue(null),this.sendFundFormGroup.controls.minConfValue.disable(),this.sendFundFormGroup.controls.minConfValue.setValidators(null),this.sendFundFormGroup.controls.minConfValue.setErrors(null))}),this.sendFundFormGroup.controls.selFeeRate.valueChanges.pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.sendFundFormGroup.controls.customFeeRate.setValue(null),this.sendFundFormGroup.controls.customFeeRate.reset(),this.sendFundFormGroup.controls.customFeeRate.setValidators("customperkb"!==t||this.sendFundFormGroup.controls.flgMinConf.value?null:[OA.kI.required])}),(0,Ba.a)([this.store.select(ua.dT),this.store.select(ua.Yj)]).pipe((0,i.R)(this.unSubs[1])).subscribe(([t,s])=>{this.fiatConversion=t.settings.fiatConversion,this.amountUnits=t.settings.currencyUnits,this.appConfig=s}),this.store.select(g.ey).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.information=t,this.isCompatibleVersion=this.commonService.isVersionCompatible(this.information.version,"0.9.0")&&this.commonService.isVersionCompatible(this.information.api_version,"0.4.0")}),this.store.select(g.T4).pipe((0,i.R)(this.unSubs[3])).subscribe(t=>{this.utxos=this.commonService.sortAscByKey(t.utxos.filter(s=>"confirmed"===s.status),"value"),this.logger.info(t)}),this.actions.pipe((0,i.R)(this.unSubs[4]),(0,JA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN||t.type===a.AB.SET_CHANNEL_TRANSACTION_RES_CLN)).subscribe(t=>{t.type===a.AB.SET_CHANNEL_TRANSACTION_RES_CLN&&(this.store.dispatch((0,kA.jW)({payload:"Fund Sent Successfully!"})),this.dialogRef.close()),t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&t.payload.status===a.Bn.ERROR&&"SetChannelTransaction"===t.payload.action&&(this.sendFundError=t.payload.message)})}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,kA.QO)({payload:Fo(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,UA.q)(1)).subscribe(t=>{"ERROR"!==t?(this.passwordFormGroup.controls.hiddenPassword.setValue(this.passwordFormGroup.controls.password.value),this.stepper.next()):(this.dialogRef.close(),this.snackBar.open("Unauthorized User. Logging out from RTL."))})}onSendFunds(){if(this.sendFundError="",this.flgUseAllBalance&&(this.transaction.satoshis="all"),this.selUTXOs.length&&this.selUTXOs.length>0&&(this.transaction.utxos=[],this.selUTXOs.forEach(t=>this.transaction.utxos.push(t.txid+":"+t.output))),this.sweepAll){if(!this.sendFundFormGroup.controls.transactionAddress.value||""===this.sendFundFormGroup.controls.transactionAddress.value||this.sendFundFormGroup.controls.flgMinConf.value&&(!this.sendFundFormGroup.controls.minConfValue.value||this.sendFundFormGroup.controls.minConfValue.value<=0)||"customperkb"===this.selFeeRate&&!this.flgMinConf&&!this.customFeeRate)return!0;this.transaction.satoshis="all",this.transaction.address=this.sendFundFormGroup.controls.transactionAddress.value,this.sendFundFormGroup.controls.flgMinConf.value?(delete this.transaction.feeRate,this.transaction.minconf=this.sendFundFormGroup.controls.flgMinConf.value?this.sendFundFormGroup.controls.minConfValue.value:null):(delete this.transaction.minconf,this.transaction.feeRate="customperkb"===this.sendFundFormGroup.controls.selFeeRate.value&&!this.sendFundFormGroup.controls.flgMinConf.value&&this.sendFundFormGroup.controls.customFeeRate.value?1e3*this.sendFundFormGroup.controls.customFeeRate.value+"perkb":this.sendFundFormGroup.controls.selFeeRate.value),delete this.transaction.utxos,this.store.dispatch((0,ht.Wi)({payload:this.transaction}))}else{if(this.transaction.minconf=this.flgMinConf?this.minConfValue:null,this.transaction.feeRate="customperkb"===this.selFeeRate&&!this.flgMinConf&&this.customFeeRate?1e3*this.customFeeRate+"perkb":this.selFeeRate,!this.transaction.address||""===this.transaction.address||!this.transaction.satoshis||+this.transaction.satoshis<=0||this.flgMinConf&&(!this.transaction.minconf||this.transaction.minconf<=0)||"customperkb"===this.selFeeRate&&!this.flgMinConf&&!this.customFeeRate)return!0;this.transaction.satoshis&&"all"!==this.transaction.satoshis&&this.selAmountUnit!==a.NT.SATS?this.commonService.convertCurrency(+this.transaction.satoshis,this.selAmountUnit===this.amountUnits[2]?a.NT.OTHER:this.selAmountUnit,a.NT.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,i.R)(this.unSubs[5])).subscribe({next:t=>{this.transaction.satoshis=t[a.NT.SATS],this.selAmountUnit=a.NT.SATS,this.store.dispatch((0,ht.Wi)({payload:this.transaction}))},error:t=>{this.transaction.satoshis=null,this.selAmountUnit=a.NT.SATS,this.amountError="Conversion Error: "+t}}):this.store.dispatch((0,ht.Wi)({payload:this.transaction}))}}resetData(){this.sendFundError="",this.transaction={},this.flgMinConf=!1,this.totalSelectedUTXOAmount=null,this.selUTXOs=[],this.flgUseAllBalance=!1,this.selAmountUnit=a.uA[0]}stepSelectionChanged(t){switch(this.sendFundError="",t.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds";break;case 1:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds";break;case 2:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds | Address: "+this.sendFundFormGroup.controls.transactionAddress.value+(this.sendFundFormGroup.controls.flgMinConf.value?" | Min Confirmation Blocks: "+this.sendFundFormGroup.controls.minConfValue.value:this.sendFundFormGroup.controls.selFeeRate.value?" | Fee Rate: "+this.feeRateTypes.find(s=>s.feeRateId===this.sendFundFormGroup.controls.selFeeRate.value).feeRateType:"")}t.selectedIndex0?(this.totalSelectedUTXOAmount=this.selUTXOs.reduce((L,vA)=>(s.value=L.value+vA.value,s)).value,this.flgUseAllBalance&&this.onUTXOAllBalanceChange()):(this.totalSelectedUTXOAmount=null,this.transaction.satoshis=null,this.flgUseAllBalance=!1)}onUTXOAllBalanceChange(){this.flgUseAllBalance?(this.transaction.satoshis=this.totalSelectedUTXOAmount,this.selAmountUnit=a.uA[0]):this.transaction.satoshis=null}onAmountUnitChange(t){const s=this,L=this.selAmountUnit===this.amountUnits[2]?a.NT.OTHER:this.selAmountUnit;let vA=t.value===this.amountUnits[2]?a.NT.OTHER:t.value;this.transaction.satoshis&&this.selAmountUnit!==t.value&&this.commonService.convertCurrency(+this.transaction.satoshis,L,vA,this.amountUnits[2],this.fiatConversion).pipe((0,i.R)(this.unSubs[6])).subscribe({next:gt=>{this.selAmountUnit=t.value,s.transaction.satoshis=s.decimalPipe.transform(gt[vA],s.currencyUnitFormats[vA]).replace(/,/g,"")},error:gt=>{s.transaction.satoshis=null,this.amountError="Conversion Error: "+gt,this.selAmountUnit=L,vA=L}})}onAdvancedPanelToggle(t){this.advancedTitle=t&&this.selUTXOs.length&&this.selUTXOs.length>0?"Advanced Options | Selected UTXOs: "+this.selUTXOs.length+" | Selected UTXO Amount: "+this.decimalPipe.transform(this.totalSelectedUTXOAmount)+" Sats":"Advanced Options"}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(E.mQ),A.Y36(u.yh),A.Y36(e.v),A.Y36(Et.JJ),A.Y36(C.eX),A.Y36(OA.qu),A.Y36(At.V),A.Y36(Tr.ux))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-on-chain-send-modal"]],viewQuery:function(t,s){if(1&t&&(A.Gf(Yo,7),A.Gf(To,5),A.Gf(So,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.form=L.first),A.iGM(L=A.CRH())&&(s.formSweepAll=L.first),A.iGM(L=A.CRH())&&(s.stepper=L.first)}},decls:12,vars:4,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100","class","overflow-x-hidden",3,"submit","reset",4,"ngIf","ngIfElse"],["sweepAllBlock",""],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex","55"],["matInput","","autoFocus","","placeholder","Bitcoin Address","tabindex","1","name","address","required","",3,"ngModel","ngModelChange"],["address","ngModel"],[4,"ngIf"],["fxFlex","30"],["matInput","","placeholder","Amount","name","amount","tabindex","2","required","",3,"ngModel","type","step","min","disabled","ngModelChange"],["amount","ngModel"],["matSuffix",""],["fxFlex","10","fxLayoutAlign","start end"],["tabindex","3","required","","name","amountUnit",3,"value","disabled","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-sm","space-between center","fxLayout.gt-sm","row wrap"],["fxFlex","48","fxLayoutAlign","space-between end"],["fxLayoutAlign","start center",3,"fxFlex"],["tabindex","4","placeholder","Fee Rate",3,"value","disabled","valueChange","selectionChange"],["fxFlex","48","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","48","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","2","tabindex","5","color","primary","name","flgMinConf","fxLayoutAlign","stretch start",3,"ngModel","ngClass","ngModelChange","change"],["fxFlex","98"],["matInput","","placeholder","Min Confirmation Blocks","type","number","name","blocks","tabindex","8",3,"ngModel","step","min","required","disabled","ngModelChange"],["blocks","ngModel"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-sm","space-between center","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit","tabindex","8"],[3,"value"],["fxFlex","48","fxLayoutAlign","end center"],["matInput","","placeholder","Fee Rate (Sats/vByte)","type","number","name","custFeeRate","tabindex","4",3,"ngModel","step","min","required","ngModelChange"],["custFeeRate","ngModel"],["fxLayout","column","fxFlex","100","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","35","fxLayoutAlign","start end"],["tabindex","8","placeholder","Coin Selection","multiple","",3,"value","selectionChange","valueChange"],["fxFlex","60","fxLayout","row","fxLayoutAlign","start center"],["tabindex","9","color","primary","name","flgUseAllBalance",3,"ngModel","disabled","ngModelChange","change"],["matTooltip","Use selected UTXOs balance as the amount to be sent. Final amount sent will be less the mining fee.","matTooltipPosition","above",1,"info-icon"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl","editable"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["matInput","","formControlName","transactionAddress","placeholder","Bitcoin Address","tabindex","4","name","address","required",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign.gt-sm","space-between center"],["tabindex","4","placeholder","Fee Rate","formControlName","selFeeRate"],["fxFlex","2","tabindex","5","color","primary","formControlName","flgMinConf","fxLayoutAlign","stretch start",3,"ngClass"],["matInput","","formControlName","minConfValue","placeholder","Min Confirmation Blocks","type","number","name","blocks","tabindex","8",3,"step","min","required"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","8","type","default","matStepperNext",""],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["fxFlex","100",1,"w-100","alert","alert-warn"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["mat-button","","color","primary","tabindex","9","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],["fxLayout","row",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","default",3,"click"],["matInput","","formControlName","customFeeRate","placeholder","Fee Rate (Sats/vByte)","type","number","name","custFeeRate","tabindex","4",3,"step","min"]],template:function(t,s){if(1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5),A.qZA()(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6),A.YNc(9,ko,37,31,"form",7),A.qZA()()(),A.YNc(10,Sr,40,23,"ng-template",null,8,A.W1O)),2&t){const L=A.MAs(11);A.xp6(5),A.Oqu(s.sweepAll?"Sweep All Funds":"Send Funds"),A.xp6(1),A.Q6J("mat-dialog-close",!1),A.xp6(3),A.Q6J("ngIf",!s.sweepAll)("ngIfElse",L)}},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Q.lW,Mt.ZT,w.dn,Et.O5,OA._Y,OA.JL,OA.F,Z.KE,Yt.Nt,OA.Fj,H.h,OA.Q7,OA.JJ,OA.On,Z.TO,k.q,Z.bx,Z.R9,R.gD,Et.sg,QA.ey,OA.wV,OA.qQ,HA.oG,Et.mk,m.oO,ar.ib,ar.yz,ar.yK,R.$L,wA.Rr,S.Hw,aA.gM,f.BN,Mr.Vq,Mr.C0,OA.sg,Mr.VY,OA.u,Mr.Ic],pipes:[Et.JJ],styles:[""]}),r})();var Or=Nt(1203),Bi=Nt(7544);function As(r,y){1&r&&A._UZ(0,"mat-progress-bar",27)}function ts(r,y){1&r&&(A.TgZ(0,"th",28),A._uU(1," Transaction ID "),A.qZA())}function Nr(r,y){1&r&&(A.TgZ(0,"span",36)(1,"mat-icon",37),A._uU(2,"warning"),A.qZA()())}function Ur(r,y){if(1&r&&(A.TgZ(0,"span"),A.YNc(1,Nr,3,0,"span",35),A.qZA()),2&r){const t=A.oxw().$implicit;A.oxw();const s=A.MAs(32);A.xp6(1),A.Q6J("ngIf",t.value<1e3)("ngIfElse",s)}}function Hi(r,y){1&r&&A._UZ(0,"span",38)}function Ji(r,y){if(1&r&&(A._UZ(0,"span",39),A.ALo(1,"titlecase")),2&r){const t=A.oxw().$implicit;A.s9C("matTooltip",A.lcZ(1,1,t.status))}}const Oi=function(r){return{"max-width":r}};function es(r,y){if(1&r&&(A.TgZ(0,"td",29)(1,"span",30),A.YNc(2,Ur,2,2,"span",31),A.YNc(3,Hi,1,0,"span",32),A.YNc(4,Ji,2,3,"span",33),A.TgZ(5,"span",34),A._uU(6),A.qZA()()()),2&r){const t=y.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(5,Oi,s.screenSize===s.screenSizeEnum.XS?"10rem":"50rem")),A.xp6(1),A.Q6J("ngIf",s.numDustUTXOs>0&&!s.isDustUTXO),A.xp6(1),A.Q6J("ngIf","confirmed"===t.status),A.xp6(1),A.Q6J("ngIf","confirmed"!==t.status),A.xp6(2),A.Oqu(t.txid)}}function Ea(r,y){1&r&&(A.TgZ(0,"th",40),A._uU(1," Output "),A.qZA())}function ns(r,y){if(1&r&&(A.TgZ(0,"td",29)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.output)," ")}}function rs(r,y){1&r&&(A.TgZ(0,"th",40),A._uU(1," Value (Sats) "),A.qZA())}function is(r,y){if(1&r&&(A.TgZ(0,"span",41),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,t.value))}}function as(r,y){if(1&r&&(A.TgZ(0,"span",44),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=A.oxw().$implicit;A.xp6(1),A.hij("(",A.lcZ(2,1,-1*t.value),")")}}function os(r,y){if(1&r&&(A.TgZ(0,"td",29),A.YNc(1,is,3,3,"span",42),A.YNc(2,as,3,3,"span",43),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Q6J("ngIf",t.value>0||0===t.value),A.xp6(1),A.Q6J("ngIf",t.value<0)}}function wa(r,y){1&r&&(A.TgZ(0,"th",40),A._uU(1," Blockheight "),A.qZA())}function ss(r,y){if(1&r&&(A.TgZ(0,"td",29)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.blockheight)," ")}}function ls(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"th",45)(1,"div",46)(2,"mat-select",47),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",48),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function pr(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",49)(1,"button",50),A.NdJ("click",function(L){const gt=A.CHM(t).$implicit;return A.oxw().onUTXOClick(gt,L)}),A._uU(2,"View Info"),A.qZA()()}}function zt(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No utxos available."),A.qZA())}function ui(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting utxos..."),A.qZA())}function fi(r,y){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function Ir(r,y){if(1&r&&(A.TgZ(0,"td",51),A.YNc(1,zt,2,0,"p",31),A.YNc(2,ui,2,0,"p",31),A.YNc(3,fi,2,1,"p",31),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.listUTXOs&&t.listUTXOs.data)||(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const Ca=function(r){return{"display-none":r}};function hi(r,y){if(1&r&&A._UZ(0,"tr",52),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,Ca,(null==t.listUTXOs?null:t.listUTXOs.data)&&(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)>0))}}function cs(r,y){1&r&&A._UZ(0,"tr",53)}function Qa(r,y){1&r&&A._UZ(0,"tr",54)}function gs(r,y){1&r&&A._UZ(0,"mat-icon",37)}const kr=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},Ei=function(){return["no_utxo"]};let Bs=(()=>{class r{constructor(t,s,L){this.logger=t,this.commonService=s,this.store=L,this.numDustUTXOs=0,this.isDustUTXO=!1,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["txid","value","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["txid","output","value","blockheight","actions"]):(this.flgSticky=!0,this.displayedColumns=["txid","output","value","blockheight","actions"])}ngOnInit(){this.store.select(g.T4).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.logger.info(t)})}ngAfterViewInit(){this.utxos&&this.utxos.length>0&&this.sort&&this.paginator&&this.loadUTXOsTable(this.utxos)}ngOnChanges(){this.utxos&&this.utxos.length>0&&this.loadUTXOsTable(this.utxos)}applyFilter(){this.listUTXOs.filter=this.selFilter.trim().toLowerCase()}onUTXOClick(t,s){const L=[[{key:"txid",value:t.txid,title:"Transaction ID",width:100}],[{key:"output",value:t.output,title:"Output",width:50,type:a.Gi.NUMBER},{key:"value",value:t.value,title:"Value (Sats)",width:50,type:a.Gi.NUMBER}],[{key:"status",value:this.commonService.titleCase(t.status),title:"Status",width:50,type:a.Gi.STRING},{key:"blockheight",value:t.blockheight,title:"Blockheight",width:50,type:a.Gi.NUMBER}],[{key:"address",value:t.address,title:"Address",width:100}]];this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"UTXO Information",message:L}}}))}loadUTXOsTable(t){this.listUTXOs=new yA.by([...t]),this.listUTXOs.sortingDataAccessor=(s,L)=>s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]:null,this.listUTXOs.sort=this.sort,this.listUTXOs.filterPredicate=(s,L)=>JSON.stringify(s).toLowerCase().includes(L),this.listUTXOs.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listUTXOs)}onDownloadCSV(){this.listUTXOs.data&&this.listUTXOs.data.length>0&&this.commonService.downloadFile(this.listUTXOs.data,"UTXOs")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-on-chain-utxos"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(WA.NW,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.paginator=L.first)}},inputs:{numDustUTXOs:"numDustUTXOs",isDustUTXO:"isDustUTXO",utxos:"utxos"},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("UTXOs")}]),A.TTD],decls:33,vars:14,consts:[["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","txid"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","output"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","value"],["matColumnDef","blockheight"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_utxo"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["emptySpace",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[4,"ngIf"],["class","dot green","matTooltip","Confirmed","matTooltipPosition","right",4,"ngIf"],["class","dot yellow","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Risk of dust attack","matTooltipPosition","right",4,"ngIf","ngIfElse"],["matTooltip","Risk of dust attack","matTooltipPosition","right"],["fxLayoutAlign","start center","color","warn",1,"mr-1"],["matTooltip","Confirmed","matTooltipPosition","right",1,"dot","green"],["matTooltipPosition","right",1,"dot","yellow",3,"matTooltip"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",4,"ngIf"],["fxLayoutAlign","end center","class","red",4,"ngIf"],["fxLayoutAlign","end center",1,"red"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,s){1&t&&(A.TgZ(0,"div",0)(1,"div",1),A._UZ(2,"div",2),A.TgZ(3,"mat-form-field",3)(4,"input",4),A.NdJ("keyup",function(){return s.applyFilter()})("ngModelChange",function(vA){return s.selFilter=vA}),A.qZA()()(),A.TgZ(5,"div",5)(6,"div",6),A.YNc(7,As,1,0,"mat-progress-bar",7),A.TgZ(8,"table",8,9),A.ynx(10,10),A.YNc(11,ts,2,0,"th",11),A.YNc(12,es,7,7,"td",12),A.BQk(),A.ynx(13,13),A.YNc(14,Ea,2,0,"th",14),A.YNc(15,ns,4,3,"td",12),A.BQk(),A.ynx(16,15),A.YNc(17,rs,2,0,"th",14),A.YNc(18,os,3,2,"td",12),A.BQk(),A.ynx(19,16),A.YNc(20,wa,2,0,"th",14),A.YNc(21,ss,4,3,"td",12),A.BQk(),A.ynx(22,17),A.YNc(23,ls,6,0,"th",18),A.YNc(24,pr,3,0,"td",19),A.BQk(),A.ynx(25,20),A.YNc(26,Ir,4,3,"td",21),A.BQk(),A.YNc(27,hi,1,3,"tr",22),A.YNc(28,cs,1,0,"tr",23),A.YNc(29,Qa,1,0,"tr",24),A.qZA(),A._UZ(30,"mat-paginator",25),A.qZA()()(),A.YNc(31,gs,1,0,"ng-template",null,26,A.W1O)),2&t&&(A.xp6(4),A.Q6J("ngModel",s.selFilter),A.xp6(3),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",s.listUTXOs)("ngClass",A.VKq(11,kr,""!==s.errorMessage)),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(13,Ei)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.Wh,Ct.yH,Z.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,Et.O5,Y.pW,yA.BZ,rt.YE,Et.mk,m.oO,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,Et.PC,m.Zl,aA.gM,S.Hw,R.gD,R.$L,QA.ey,Q.lW,yA.mD,yA.yh,yA.Ke,yA.Q2,yA.as,yA.XQ,yA.nj,yA.Gk,WA.NW],pipes:[Et.rS,Et.JJ],styles:[".mat-column-txid[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-txid[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();function da(r,y){if(1&r&&(A.TgZ(0,"span",5),A._uU(1,"UTXOs"),A.qZA()),2&r){const t=A.oxw();A.s9C("matBadge",t.numUtxos)}}function Ma(r,y){if(1&r&&(A.TgZ(0,"span",5),A._uU(1,"Dust UTXOs"),A.qZA()),2&r){const t=A.oxw();A.s9C("matBadge",t.numDustUtxos)}}let pa=(()=>{class r{constructor(t,s){this.logger=t,this.store=s,this.selectedTableIndex=0,this.selectedTableIndexChange=new A.vpe,this.utxos=[],this.numUtxos=0,this.dustUtxos=[],this.numDustUtxos=0,this.unSubs=[new c.x,new c.x]}ngOnInit(){this.store.select(g.T4).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{t.utxos&&t.utxos.length>0&&(this.utxos=t.utxos,this.numUtxos=this.utxos.length,this.dustUtxos=t.utxos.filter(s=>+s.value<1e3),this.numDustUtxos=this.dustUtxos.length),t.utxos&&t.utxos.length>0&&(this.utxos=t.utxos,this.numUtxos=this.utxos.length),this.logger.info(t)})}onSelectedIndexChanged(t){this.selectedTableIndexChange.emit(t)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-utxo-tables"]],inputs:{selectedTableIndex:"selectedTableIndex"},outputs:{selectedTableIndexChange:"selectedTableIndexChange"},decls:8,vars:7,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"bordered-box"],[3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["xLayout","row","fxFlex","100",3,"utxos","numDustUTXOs","isDustUTXO"],["fxLayout","row","fxFlex","100",3,"utxos","numDustUTXOs","isDustUTXO"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0)(1,"mat-tab-group",1),A.NdJ("selectedIndexChange",function(vA){return s.onSelectedIndexChanged(vA)}),A.TgZ(2,"mat-tab"),A.YNc(3,da,2,1,"ng-template",2),A._UZ(4,"rtl-cln-on-chain-utxos",3),A.qZA(),A.TgZ(5,"mat-tab"),A.YNc(6,Ma,2,1,"ng-template",2),A._UZ(7,"rtl-cln-on-chain-utxos",4),A.qZA()()()),2&t&&(A.xp6(1),A.Q6J("selectedIndex",s.selectedTableIndex),A.xp6(3),A.Q6J("utxos",s.utxos)("numDustUTXOs",s.numDustUtxos)("isDustUTXO",!1),A.xp6(3),A.Q6J("utxos",s.dustUtxos)("numDustUTXOs",s.numDustUtxos)("isDustUTXO",!0))},directives:[Ct.xw,Ct.yH,Ct.Wh,ft.SP,ft.uX,ft.uD,Bi.k,Bs],styles:[""]}),r})();const us=function(r,y){return[r,y]};function fs(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",12),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().activeLink=null==vA?null:vA.link}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit,s=A.oxw();A.Q6J("active",s.activeLink===(null==t?null:t.link))("routerLink",A.WLB(3,us,null==t?null:t.link,null==s.selectedTable?null:s.selectedTable.name)),A.xp6(1),A.Oqu(null==t?null:t.name)}}let jr=(()=>{class r{constructor(t,s,L){this.store=t,this.router=s,this.activatedRoute=L,this.selNode={},this.faExchangeAlt=h.Ssp,this.faChartPie=h.OS1,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"receive",name:"Receive"},{link:"send",name:"Send"},{link:"sweep",name:"Sweep All"}],this.activeLink=this.links[0].link,this.tables=[{id:0,name:"utxos"},{id:1,name:"dustUtxos"}],this.selectedTable=this.tables[0],this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){const t=this.links.find(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.selectedTable=this.tables.find(s=>s.name===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(s=>s instanceof _t.Av)).subscribe({next:s=>{const L=this.links.find(vA=>s.urlAfterRedirects.includes(vA.link));this.activeLink=L?L.link:this.links[0].link,this.selectedTable=this.tables.find(vA=>vA.name===s.urlAfterRedirects.substring(s.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(g.lw).pipe((0,i.R)(this.unSubs[1])).subscribe(s=>{this.selNode=s}),this.store.select(g.Rn).pipe((0,i.R)(this.unSubs[2])).subscribe(s=>{this.balances=[{title:"Total Balance",dataValue:s.balance.totalBalance||0},{title:"Confirmed",dataValue:s.balance.confBalance},{title:"Unconfirmed",dataValue:s.balance.unconfBalance}]})}openSendFundsModal(t){this.store.dispatch((0,kA.qR)({payload:{data:{sweepAll:t,component:or}}}))}onSelectedTableIndexChanged(t){this.selectedTable=this.tables.find(s=>s.id===t),this.router.navigate(["./",this.activeLink,this.selectedTable.name],{relativeTo:this.activatedRoute})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh),A.Y36(_t.F0),A.Y36(_t.gz))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-on-chain"]],decls:21,vars:5,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100",3,"selectedTableIndex","selectedTableIndexChange"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"On-chain Balance"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),A._UZ(7,"rtl-currency-unit-converter",5),A.qZA()()(),A.TgZ(8,"div",0),A._UZ(9,"fa-icon",1),A.TgZ(10,"span",2),A._uU(11,"On-chain Transactions"),A.qZA()(),A.TgZ(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"nav",7),A.YNc(16,fs,2,6,"div",8),A.qZA(),A.TgZ(17,"div",9),A._UZ(18,"router-outlet"),A.qZA(),A.TgZ(19,"div",10)(20,"rtl-cln-utxo-tables",11),A.NdJ("selectedTableIndexChange",function(vA){return s.onSelectedTableIndexChanged(vA)}),A.qZA()()()()()),2&t&&(A.xp6(1),A.Q6J("icon",s.faChartPie),A.xp6(6),A.Q6J("values",s.balances),A.xp6(2),A.Q6J("icon",s.faExchangeAlt),A.xp6(7),A.Q6J("ngForOf",s.links),A.xp6(4),A.Q6J("selectedTableIndex",null==s.selectedTable?null:s.selectedTable.id))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,Or.D,ft.BU,Et.sg,ft.Nj,_t.rH,Ct.yH,_t.lC,pa],styles:[""]}),r})();function hs(r,y){if(1&r&&(A.TgZ(0,"span",10),A._uU(1,"Channels"),A.qZA()),2&r){const t=A.oxw();A.s9C("matBadge",t.activeChannels)}}function Es(r,y){if(1&r&&(A.TgZ(0,"span",10),A._uU(1,"Peers"),A.qZA()),2&r){const t=A.oxw();A.s9C("matBadge",t.activePeers)}}let ws=(()=>{class r{constructor(t,s,L){this.store=t,this.logger=s,this.router=L,this.activePeers=0,this.activeChannels=0,this.faUsers=h.FVb,this.faChartPie=h.OS1,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"channels",name:"Channels"},{link:"peers",name:"Peers"}],this.activeLink=0,this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.activeLink=this.links.findIndex(t=>t.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(t=>t instanceof _t.Av)).subscribe({next:t=>{this.activeLink=this.links.findIndex(s=>s.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(g.ZW).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.activeChannels=t.activeChannels.length||0}),this.store.select(g.Wi).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.activePeers=t.peers&&t.peers.length?t.peers.length:0,this.logger.info(t)}),this.store.select(g.Rn).pipe((0,i.R)(this.unSubs[3])).subscribe(t=>{this.balances=[{title:"Total Balance",dataValue:t.balance.totalBalance||0},{title:"Confirmed",dataValue:t.balance.confBalance},{title:"Unconfirmed",dataValue:t.balance.unconfBalance}]})}onSelectedTabChange(t){this.router.navigateByUrl("/cln/connections/"+this.links[t.index].link)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh),A.Y36(E.mQ),A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-connections"]],decls:22,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"On-chain Balance"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),A._UZ(7,"rtl-currency-unit-converter",5),A.qZA()()(),A.TgZ(8,"div",0),A._UZ(9,"fa-icon",1),A.TgZ(10,"span",2),A._uU(11,"Connections"),A.qZA()(),A.TgZ(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"mat-tab-group",7),A.NdJ("selectedIndexChange",function(vA){return s.activeLink=vA})("selectedTabChange",function(vA){return s.onSelectedTabChange(vA)}),A.TgZ(16,"mat-tab"),A.YNc(17,hs,2,1,"ng-template",8),A.qZA(),A.TgZ(18,"mat-tab"),A.YNc(19,Es,2,1,"ng-template",8),A.qZA()(),A.TgZ(20,"div",9),A._UZ(21,"router-outlet"),A.qZA()()()()),2&t&&(A.xp6(1),A.Q6J("icon",s.faChartPie),A.xp6(6),A.Q6J("values",s.balances),A.xp6(2),A.Q6J("icon",s.faUsers),A.xp6(6),A.Q6J("selectedIndex",s.activeLink))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,Or.D,ft.SP,ft.uX,ft.uD,Bi.k,Ct.yH,_t.lC],styles:[""]}),r})();function Ia(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",11),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().activeLink=vA.link}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit,s=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",s.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let Cs=(()=>{class r{constructor(t,s,L){this.logger=t,this.store=s,this.router=L,this.faExchangeAlt=h.Ssp,this.faChartPie=h.OS1,this.currencyUnits=[],this.routerUrl="",this.balances=[{title:"Local Capacity",dataValue:0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:0,tooltip:"Amount you can receive"}],this.selNode={},this.links=[{link:"payments",name:"Payments"},{link:"invoices",name:"Invoices"}],this.activeLink=this.links[0].link,this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){const t=this.links.find(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(s=>s instanceof _t.Av)).subscribe({next:s=>{const L=this.links.find(vA=>s.urlAfterRedirects.includes(vA.link));this.activeLink=L?L.link:this.links[0].link,this.routerUrl=s.urlAfterRedirects}}),this.store.select(g.lw).pipe((0,i.R)(this.unSubs[1])).subscribe(s=>{if(this.selNode=s,this.selNode.enableOffers){this.store.dispatch((0,ht.yl)()),this.store.dispatch((0,ht.uT)()),this.links.push({link:"offers",name:"Offers"}),this.links.push({link:"offrBookmarks",name:"Paid Offer Bookmarks"});const L=this.links.find(vA=>this.router.url.includes(vA.link));this.activeLink=L?L.link:this.links[0].link}}),this.store.select(g.Wj).pipe((0,i.R)(this.unSubs[2]),(0,o.M)(this.store.select(g.lw))).subscribe(([s,L])=>{this.currencyUnits=L.currencyUnits,this.balances=L.userPersona===a.ol.OPERATOR?[{title:"Local Capacity",dataValue:s.localRemoteBalance.localBalance,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:s.localRemoteBalance.remoteBalance,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:s.localRemoteBalance.localBalance,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:s.localRemoteBalance.remoteBalance,tooltip:"Amount you can receive"}],this.logger.info(s)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-transactions"]],decls:19,vars:4,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Lightning Balance"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),A._UZ(7,"rtl-currency-unit-converter",5),A.qZA()()(),A.TgZ(8,"div",6),A._UZ(9,"fa-icon",1),A.TgZ(10,"span",2),A._uU(11,"Lightning Transactions"),A.qZA()(),A.TgZ(12,"div",7)(13,"mat-card")(14,"mat-card-content",4)(15,"nav",8),A.YNc(16,Ia,2,3,"div",9),A.qZA(),A.TgZ(17,"div",10),A._UZ(18,"router-outlet"),A.qZA()()()()),2&t&&(A.xp6(1),A.Q6J("icon",s.faChartPie),A.xp6(6),A.Q6J("values",s.balances),A.xp6(2),A.Q6J("icon",s.faExchangeAlt),A.xp6(7),A.Q6J("ngForOf",s.links))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,Or.D,ft.BU,Et.sg,ft.Nj,_t.rH,Ct.yH,_t.lC],styles:[""]}),r})();function Qs(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",11),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().activeLink=vA.link}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit,s=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",s.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let ds=(()=>{class r{constructor(t){this.router=t,this.faMapSigns=h.SuH,this.links=[{link:"forwardinghistory",name:"Forwarding History"},{link:"routingpeers",name:"Routing Peers"},{link:"failedtransactions",name:"Failed Transactions"},{link:"localfail",name:"Local Failed Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new c.x,new c.x,new c.x]}ngOnInit(){const t=this.links.find(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(s=>s instanceof _t.Av)).subscribe({next:s=>{const L=this.links.find(vA=>s.urlAfterRedirects.includes(vA.link));this.activeLink=L?L.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-routing"]],decls:13,vars:2,consts:[["fxLayout","column",1,"mb-2"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row","fxFlex","100"],["mat-tab-nav-bar","","fxFlex","100"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0)(1,"div",1),A._UZ(2,"fa-icon",2),A.TgZ(3,"span",3),A._uU(4,"Routing"),A.qZA()(),A.TgZ(5,"div",4)(6,"mat-card",5)(7,"mat-card-content",6)(8,"div",7)(9,"nav",8),A.YNc(10,Qs,2,3,"div",9),A.qZA()(),A.TgZ(11,"div",10),A._UZ(12,"router-outlet"),A.qZA()()()()()),2&t&&(A.xp6(2),A.Q6J("icon",s.faMapSigns),A.xp6(8),A.Q6J("ngForOf",s.links))},directives:[Ct.xw,Ct.Wh,f.BN,Ct.yH,w.a8,w.dn,ft.BU,Et.sg,ft.Nj,_t.rH,_t.lC],styles:[""]}),r})();var Kr=Nt(6895);function Ms(r,y){if(1&r&&(A.TgZ(0,"span",6),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(t)}}function ma(r,y){1&r&&(A.TgZ(0,"th",27),A._uU(1,"Type"),A.qZA())}function ps(r,y){if(1&r&&(A.TgZ(0,"td",28),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.type," ")}}function Is(r,y){1&r&&(A.TgZ(0,"th",27),A._uU(1,"Address"),A.qZA())}function ms(r,y){if(1&r&&(A.TgZ(0,"td",28),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.address," ")}}function vs(r,y){1&r&&(A.TgZ(0,"th",27),A._uU(1,"Port"),A.qZA())}function Ds(r,y){if(1&r&&(A.TgZ(0,"td",28),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.port," ")}}function Nn(r,y){1&r&&(A.TgZ(0,"th",29)(1,"span",30),A._uU(2,"Actions"),A.qZA()())}function ys(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",31)(1,"span",30)(2,"button",32),A.NdJ("copied",function(L){return A.CHM(t),A.oxw(2).onCopyNodeURI(L)}),A._uU(3,"Copy Node URI"),A.qZA()()()}if(2&r){const t=y.$implicit,s=A.oxw(2);A.xp6(2),A.Q6J("payload",(null==s.lookupResult?null:s.lookupResult.nodeid)+"@"+t.address+":"+t.port)}}function xs(r,y){1&r&&A._UZ(0,"tr",33)}function Fs(r,y){1&r&&A._UZ(0,"tr",34)}const Ys=function(r){return{"background-color":r}};function Ts(r,y){if(1&r&&(A.TgZ(0,"div",1),A._UZ(1,"mat-divider",2),A.TgZ(2,"div",3)(3,"div",4)(4,"h4",5),A._uU(5,"Alias"),A.qZA(),A.TgZ(6,"span",6),A._uU(7),A.TgZ(8,"span",7),A._uU(9),A.qZA()()(),A.TgZ(10,"div",8)(11,"h4",5),A._uU(12,"Pub Key"),A.qZA(),A.TgZ(13,"span",9),A._uU(14),A.qZA()()(),A._UZ(15,"mat-divider",10),A.TgZ(16,"div",3)(17,"div",4)(18,"h4",5),A._uU(19,"Last Update"),A.qZA(),A.TgZ(20,"span",6),A._uU(21),A.ALo(22,"date"),A.qZA()(),A.TgZ(23,"div",8)(24,"h4",5),A._uU(25,"Features"),A.qZA(),A.YNc(26,Ms,2,1,"span",11),A.qZA()(),A._UZ(27,"mat-divider",10),A.TgZ(28,"div",12)(29,"h4",13),A._uU(30,"Addresses"),A.qZA(),A.TgZ(31,"div",14)(32,"table",15,16),A.ynx(34,17),A.YNc(35,ma,2,0,"th",18),A.YNc(36,ps,2,1,"td",19),A.BQk(),A.ynx(37,20),A.YNc(38,Is,2,0,"th",18),A.YNc(39,ms,2,1,"td",19),A.BQk(),A.ynx(40,21),A.YNc(41,vs,2,0,"th",18),A.YNc(42,Ds,2,1,"td",19),A.BQk(),A.ynx(43,22),A.YNc(44,Nn,3,0,"th",23),A.YNc(45,ys,4,1,"td",24),A.BQk(),A.YNc(46,xs,1,0,"tr",25),A.YNc(47,Fs,1,0,"tr",26),A.qZA()()()()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(null==t.lookupResult?null:t.lookupResult.alias),A.xp6(1),A.Q6J("ngStyle",A.VKq(15,Ys,"#"+(null==t.lookupResult?null:t.lookupResult.color))),A.xp6(1),A.Oqu(null!=t.lookupResult&&t.lookupResult.color?"#"+(null==t.lookupResult?null:t.lookupResult.color):""),A.xp6(5),A.Oqu(null==t.lookupResult?null:t.lookupResult.nodeid),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(A.xi3(22,12,1e3*(null==t.lookupResult?null:t.lookupResult.last_timestamp),"dd/MMM/y HH:mm")),A.xp6(5),A.Q6J("ngForOf",t.featureDescriptions),A.xp6(1),A.Q6J("inset",!0),A.xp6(5),A.Q6J("dataSource",t.addresses),A.xp6(14),A.Q6J("matHeaderRowDef",t.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}let Ss=(()=>{class r{constructor(t,s){this.logger=t,this.snackBar=s,this.featureDescriptions=[],this.displayedColumns=["type","address","port","actions"]}ngOnInit(){if(this.addresses=new yA.by(this.lookupResult&&this.lookupResult.addresses?[...this.lookupResult.addresses]:[]),this.addresses.data=this.lookupResult.addresses||[],this.addresses.sort=this.sort,this.addresses.sortingDataAccessor=(t,s)=>t[s]&&isNaN(t[s])?t[s].toLocaleLowerCase():t[s]?+t[s]:null,this.lookupResult.features&&""!==this.lookupResult.features.trim()){const t=parseInt(this.lookupResult.features,16);a.Df.forEach(s=>{t&(1<{class r{constructor(t){this.store=t,this.lookupResult=[],this.node1_match=!1,this.node2_match=!1,this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.store.select(g.ey).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.lookupResult.length>0&&this.lookupResult[0].source===t.id&&(this.node1_match=!0),this.lookupResult.length>1&&this.lookupResult[1].source===t.id&&(this.node2_match=!0)})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-lookup"]],inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start start",1,"mt-1","bordered-box","padding-gap-large"],["fxLayout","column"],["class","page-title font-bold-500",4,"ngIf"],[3,"inset"],["fxLayout","column","fxFlex","20",1,"my-1"],[1,"font-bold-500"],[1,"foreground-secondary-text"],["fxLayout","column","fxFlex","10",1,"my-1"],[1,"page-title","font-bold-500"]],template:function(t,s){1&t&&A.YNc(0,va,204,91,"div",0),2&t&&A.Q6J("ngIf",s.lookupResult)},directives:[Et.O5,Ct.xw,AA.d,Ct.Wh,Ct.yH],pipes:[Et.JJ,Et.uU],styles:[".mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%], .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{height:38px!important}"]}),r})();const Ve=["form"];function Er(r,y){if(1&r&&(A.TgZ(0,"mat-radio-button",17),A._uU(1),A.qZA()),2&r){const t=y.$implicit,s=A.oxw();A.Q6J("value",t.id)("checked",s.selectedFieldId===t.id),A.xp6(1),A.hij(" ",t.name," ")}}function ji(r,y){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.hij("",null==t.lookupFields[t.selectedFieldId]?null:t.lookupFields[t.selectedFieldId].placeholder," is required.")}}function Rs(r,y){if(1&r&&(A.TgZ(0,"div"),A._UZ(1,"rtl-cln-node-lookup",26),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Q6J("lookupResult",t.nodeLookupValue)}}function wi(r,y){if(1&r&&(A.TgZ(0,"span",24),A.YNc(1,Rs,2,1,"div",25),A.qZA()),2&r){const t=A.oxw(2),s=A.MAs(19);A.xp6(1),A.Q6J("ngIf",""!==t.nodeLookupValue.nodeid)("ngIfElse",s)}}function Ci(r,y){if(1&r&&(A.TgZ(0,"div"),A._UZ(1,"rtl-cln-channel-lookup",26),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Q6J("lookupResult",t.channelLookupValue)}}function Qi(r,y){if(1&r&&(A.TgZ(0,"span",24),A.YNc(1,Ci,2,1,"div",25),A.qZA()),2&r){const t=A.oxw(2),s=A.MAs(19);A.xp6(1),A.Q6J("ngIf",t.channelLookupValue.length>0)("ngIfElse",s)}}function De(r,y){1&r&&(A.TgZ(0,"span",24)(1,"h3"),A._uU(2,"Error! Unable to find details!"),A.qZA()())}function zs(r,y){if(1&r&&(A.TgZ(0,"div",18)(1,"div",19)(2,"span",20),A._uU(3),A.qZA()(),A.TgZ(4,"div",21),A.YNc(5,wi,2,2,"span",22),A.YNc(6,Qi,2,2,"span",22),A.YNc(7,De,3,0,"span",23),A.qZA()()),2&r){const t=A.oxw();A.xp6(3),A.hij("",t.lookupFields[t.selectedFieldId].name," Details"),A.xp6(1),A.Q6J("ngSwitch",t.selectedFieldId),A.xp6(1),A.Q6J("ngSwitchCase",0),A.xp6(1),A.Q6J("ngSwitchCase",1)}}function wr(r,y){1&r&&(A.TgZ(0,"h3"),A._uU(1,"Error! Unable to find details!"),A.qZA())}const Ls=function(r){return{"mt-1":!0,"mt-2":r}};let bs=(()=>{class r{constructor(t,s,L,vA){this.logger=t,this.commonService=s,this.store=L,this.actions=vA,this.lookupKey="",this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Pubkey"},{id:1,name:"Channel",placeholder:"Short Channel ID"}],this.flgLoading=[!0],this.faSearch=h.wn1,this.screenSize="",this.screenSizeEnum=a.cu,this.unSubs=[new c.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(t=>t.type===a.AB.SET_LOOKUP_CLN||t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{if(t.type===a.AB.SET_LOOKUP_CLN){switch(this.flgLoading[0]=!0,this.selectedFieldId){case 0:this.nodeLookupValue="object"!=typeof t.payload[0]?{nodeid:""}:JSON.parse(JSON.stringify(t.payload[0]));break;case 1:this.channelLookupValue="object"!=typeof t.payload[0]?[]:JSON.parse(JSON.stringify(t.payload))}this.flgSetLookupValue=!0,this.logger.info(this.nodeLookupValue),this.logger.info(this.channelLookupValue)}t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&t.payload.status===a.Bn.ERROR&&"Lookup"===t.payload.action&&(this.flgLoading[0]="error")})}onLookup(){if(!this.lookupKey)return!0;switch(this.flgSetLookupValue=!1,this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.selectedFieldId){case 0:this.store.dispatch((0,ht.Sf)({payload:this.lookupKey.trim()}));break;case 1:this.store.dispatch((0,ht.$A)({payload:{uiMessage:a.m6.SEARCHING_CHANNEL,shortChannelID:this.lookupKey.trim(),showError:!1}}))}}onSelectChange(t){this.resetData(),this.selectedFieldId=t.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.form.resetForm()}clearLookupValue(){this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh),A.Y36(C.eX))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-lookups"]],viewQuery:function(t,s){if(1&t&&A.Gf(Ve,7),2&t){let L;A.iGM(L=A.CRH())&&(s.form=L.first)}},decls:20,vars:9,consts:[["fxLayout","column"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModel","ngModelChange","change"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"placeholder","ngModel","change","ngModelChange"],["key",""],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],["errorBlock",""],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100",4,"ngSwitchDefault"],["fxFlex","100"],[4,"ngIf","ngIfElse"],[3,"lookupResult"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-content",2)(3,"form",3,4)(5,"div",5)(6,"mat-radio-group",6),A.NdJ("ngModelChange",function(vA){return s.selectedFieldId=vA})("change",function(vA){return s.onSelectChange(vA)}),A.YNc(7,Er,2,3,"mat-radio-button",7),A.qZA()(),A.TgZ(8,"mat-form-field",8)(9,"input",9,10),A.NdJ("change",function(){return s.clearLookupValue()})("ngModelChange",function(vA){return s.lookupKey=vA}),A.qZA(),A.YNc(11,ji,2,1,"mat-error",11),A.qZA(),A.TgZ(12,"div",12)(13,"button",13),A.NdJ("click",function(){return s.resetData()}),A._uU(14,"Clear"),A.qZA(),A.TgZ(15,"button",14),A.NdJ("click",function(){return s.onLookup()}),A._uU(16,"Lookup"),A.qZA()()(),A.YNc(17,zs,8,4,"div",15),A.qZA()()(),A.YNc(18,wr,2,0,"ng-template",null,16,A.W1O)),2&t&&(A.xp6(6),A.Q6J("ngModel",s.selectedFieldId),A.xp6(1),A.Q6J("ngForOf",s.lookupFields),A.xp6(1),A.Q6J("ngClass",A.VKq(7,Ls,s.screenSize===s.screenSizeEnum.XS||s.screenSize===s.screenSizeEnum.SM)),A.xp6(1),A.Q6J("placeholder",(null==s.lookupFields[s.selectedFieldId]?null:s.lookupFields[s.selectedFieldId].placeholder)||"Lookup Key")("ngModel",s.lookupKey),A.xp6(2),A.Q6J("ngIf",!s.lookupKey),A.xp6(6),A.Q6J("ngIf",s.flgSetLookupValue))},directives:[Ct.xw,Ct.yH,Ct.Wh,w.dn,OA._Y,OA.JL,OA.F,zA.VQ,OA.JJ,OA.On,Et.sg,zA.U0,Z.KE,Et.mk,m.oO,Yt.Nt,OA.Fj,OA.Q7,Et.O5,Z.TO,Q.lW,Et.RF,Et.n9,Ss,ki,Et.ED],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.pl-3[_ngcontent-%COMP%]{padding-left:3rem}"]}),r})();var Vr=(()=>{return(r=Vr||(Vr={})).KB="KB",r.KW="KW",Vr;var r})();function di(r,y){if(1&r&&(A.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),A._uU(4," Opening "),A.TgZ(5,"mat-icon",5),A._uU(6,"info_outline"),A.qZA()(),A.TgZ(7,"div",6),A._uU(8),A.ALo(9,"number"),A.qZA()(),A.TgZ(10,"div")(11,"h4",4),A._uU(12," Mutual Close "),A.TgZ(13,"mat-icon",7),A._uU(14,"info_outline"),A.qZA()(),A.TgZ(15,"div",6),A._uU(16),A.ALo(17,"number"),A.qZA()(),A.TgZ(18,"div")(19,"h4",4),A._uU(20," Unilateral Close "),A.TgZ(21,"mat-icon",8),A._uU(22,"info_outline"),A.qZA()(),A.TgZ(23,"div",6),A._uU(24),A.ALo(25,"number"),A.qZA()(),A.TgZ(26,"div")(27,"h4",4),A._uU(28," Delayed To Us "),A.TgZ(29,"mat-icon",9),A._uU(30,"info_outline"),A.qZA()(),A.TgZ(31,"div",6),A._uU(32),A.ALo(33,"number"),A.qZA()()(),A.TgZ(34,"div",3)(35,"div")(36,"h4",4),A._uU(37," Minimum Acceptable "),A.TgZ(38,"mat-icon",10),A._uU(39,"info_outline"),A.qZA()(),A.TgZ(40,"div",6),A._uU(41),A.ALo(42,"number"),A.qZA()(),A.TgZ(43,"div")(44,"h4",4),A._uU(45," Maximum Acceptable "),A.TgZ(46,"mat-icon",11),A._uU(47,"info_outline"),A.qZA()(),A.TgZ(48,"div",6),A._uU(49),A.ALo(50,"number"),A.qZA()(),A.TgZ(51,"div")(52,"h4",4),A._uU(53," HTLC Resolution "),A.TgZ(54,"mat-icon",12),A._uU(55,"info_outline"),A.qZA()(),A.TgZ(56,"div",6),A._uU(57),A.ALo(58,"number"),A.qZA()(),A.TgZ(59,"div")(60,"h4",4),A._uU(61," Penalty "),A.TgZ(62,"mat-icon",13),A._uU(63,"info_outline"),A.qZA()(),A.TgZ(64,"div",6),A._uU(65),A.ALo(66,"number"),A.qZA()()()()),2&r){const t=A.oxw();A.xp6(8),A.Oqu(A.lcZ(9,8,null==t.perkbw?null:t.perkbw.opening)),A.xp6(8),A.Oqu(A.lcZ(17,10,null==t.perkbw?null:t.perkbw.mutual_close)),A.xp6(8),A.Oqu(A.lcZ(25,12,null==t.perkbw?null:t.perkbw.unilateral_close)),A.xp6(8),A.Oqu(A.lcZ(33,14,null==t.perkbw?null:t.perkbw.delayed_to_us)),A.xp6(9),A.Oqu(A.lcZ(42,16,null==t.perkbw?null:t.perkbw.min_acceptable)),A.xp6(8),A.Oqu(A.lcZ(50,18,null==t.perkbw?null:t.perkbw.max_acceptable)),A.xp6(8),A.Oqu(A.lcZ(58,20,null==t.perkbw?null:t.perkbw.htlc_resolution)),A.xp6(8),A.Oqu(A.lcZ(66,22,null==t.perkbw?null:t.perkbw.penalty))}}function sr(r,y){if(1&r&&(A.TgZ(0,"div",14)(1,"p"),A._uU(2),A.qZA()()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let Da=(()=>{class r{constructor(){this.perkbw={}}ngAfterContentChecked(){this.feeRateStyle===Vr.KB?this.perkbw=this.feeRates.perkb:this.feeRateStyle===Vr.KW&&(this.perkbw=this.feeRates.perkw)}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-fee-rates"]],inputs:{feeRateStyle:"feeRateStyle",feeRates:"feeRates",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","stretch","class","h-100",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","stretch",1,"h-100"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start center",1,"dashboard-info-title"],["matTooltip","Default feerate for fundchannel and withdraw","matTooltipPosition","below",1,"info-icon","info-icon-primary"],[1,"overflow-wrap","dashboard-info-value"],["matTooltip","Feerate to aim for in cooperative shutdown. Note that since mutual close is a negotiation, the actual feerate used in mutual close will be somewhere between this and the corresponding mutual close feerate of the peer","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Feerate for commitment_transaction in a live channel which we originally funded","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Feerate for returning unilateral close funds to our wallet","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","The smallest feerate that you can use, usually the minimum relayed feerate of the backend","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","The largest feerate we will accept from remote negotiations. If a peer attempts to set the feerate higher than this we will unilaterally close the channel (or simply forget it if it's not open yet)","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Feerate for returning unilateral close HTLC outputs to our wallet","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Feerate to start at when penalizing a cheat attempt","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,s){if(1&t&&(A.YNc(0,di,67,24,"div",0),A.YNc(1,sr,3,1,"ng-template",null,1,A.W1O)),2&t){const L=A.MAs(2);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",L)}},directives:[Et.O5,Ct.xw,Ct.yH,Ct.Wh,S.Hw,aA.gM],pipes:[Et.JJ],styles:[".fee-rate-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{height:44px}"]}),r})();function Pr(r,y){if(1&r&&(A.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),A._uU(4," Opening Channel "),A.TgZ(5,"mat-icon",5),A._uU(6,"info_outline"),A.qZA()(),A.TgZ(7,"div",6),A._uU(8),A.ALo(9,"number"),A.qZA()(),A.TgZ(10,"div")(11,"h4",4),A._uU(12," Mutual Close "),A.TgZ(13,"mat-icon",7),A._uU(14,"info_outline"),A.qZA()(),A.TgZ(15,"div",6),A._uU(16),A.ALo(17,"number"),A.qZA()(),A.TgZ(18,"div")(19,"h4",4),A._uU(20," Unilateral Close "),A.TgZ(21,"mat-icon",8),A._uU(22,"info_outline"),A.qZA()(),A.TgZ(23,"div",6),A._uU(24),A.ALo(25,"number"),A.qZA()(),A.TgZ(26,"div",9),A._UZ(27,"h4",4)(28,"div",6),A.qZA()(),A.TgZ(29,"div",3)(30,"div")(31,"h4",4),A._uU(32," HTLC Timeout "),A.TgZ(33,"mat-icon",10),A._uU(34,"info_outline"),A.qZA()(),A.TgZ(35,"div",6),A._uU(36),A.ALo(37,"number"),A.qZA()(),A.TgZ(38,"div")(39,"h4",4),A._uU(40," HTLC Success "),A.TgZ(41,"mat-icon",11),A._uU(42,"info_outline"),A.qZA()(),A.TgZ(43,"div",6),A._uU(44),A.ALo(45,"number"),A.qZA()(),A.TgZ(46,"div",9),A._UZ(47,"h4",4)(48,"div",6),A.qZA(),A.TgZ(49,"div",9),A._UZ(50,"h4",4)(51,"div",6),A.qZA()()()),2&r){const t=A.oxw();A.xp6(8),A.Oqu(A.lcZ(9,5,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.opening_channel_satoshis)),A.xp6(8),A.Oqu(A.lcZ(17,7,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.mutual_close_satoshis)),A.xp6(8),A.Oqu(A.lcZ(25,9,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.unilateral_close_satoshis)),A.xp6(12),A.Oqu(A.lcZ(37,11,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.htlc_timeout_satoshis)),A.xp6(8),A.Oqu(A.lcZ(45,13,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.htlc_success_satoshis))}}function ya(r,y){if(1&r&&(A.TgZ(0,"div",12)(1,"p"),A._uU(2),A.qZA()()),2&r){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let Gs=(()=>{class r{constructor(){}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-onchain-fee-estimates"]],inputs:{feeRates:"feeRates",errorMessage:"errorMessage"},decls:3,vars:2,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","stretch","class","h-100",4,"ngIf","ngIfElse"],["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","stretch",1,"h-100"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start center",1,"dashboard-info-title"],["matTooltip","Estimated cost of typical channel open","matTooltipPosition","below",1,"info-icon","info-icon-primary"],[1,"overflow-wrap","dashboard-info-value"],["matTooltip","Estimated cost of typical channel close","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Estimated cost of typical unilateral close (without HTLCs)","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["fxFlex","12"],["matTooltip","Estimated cost of typical HTLC timeout transaction","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Estimated cost of typical HTLC fulfillment transaction","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,s){if(1&t&&(A.YNc(0,Pr,52,15,"div",0),A.YNc(1,ya,3,1,"ng-template",null,1,A.W1O)),2&t){const L=A.MAs(2);A.Q6J("ngIf",""===(null==s.errorMessage?null:s.errorMessage.trim()))("ngIfElse",L)}},directives:[Et.O5,Ct.xw,Ct.yH,Ct.Wh,S.Hw,aA.gM],pipes:[Et.JJ],styles:[".fee-rate-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{height:44px}"]}),r})();function Mi(r,y){1&r&&A._UZ(0,"mat-progress-bar",19)}function pi(r,y){if(1&r&&A._UZ(0,"rtl-cln-node-info",20),2&r){const t=A.oxw(3);A.Q6J("information",t.information)("showColorFieldSeparately",!1)}}function mr(r,y){if(1&r&&A._UZ(0,"rtl-cln-channel-status-info",21),2&r){const t=A.oxw(3);A.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[0]+" "+t.errorMessages[2])}}function Hs(r,y){if(1&r&&A._UZ(0,"rtl-cln-fee-info",22),2&r){const t=A.oxw(3);A.Q6J("fees",t.fees)("errorMessage",t.errorMessages[1]+" "+t.errorMessages[3]+" "+t.errorMessages[4])}}function Ii(r,y){if(1&r&&A._UZ(0,"rtl-cln-fee-rates",23),2&r){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKB)("feeRateStyle","KB")("errorMessage",t.errorMessages[5])}}function Wr(r,y){if(1&r&&A._UZ(0,"rtl-cln-fee-rates",23),2&r){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKW)("feeRateStyle","KW")("errorMessage",t.errorMessages[6])}}function Js(r,y){if(1&r&&A._UZ(0,"rtl-cln-onchain-fee-estimates",24),2&r){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKW)("errorMessage",t.errorMessages[5])}}const xa=function(r){return{"dashboard-card-content":!0,"error-border":r}};function Os(r,y){if(1&r&&(A.TgZ(0,"mat-grid-tile",4)(1,"div",5)(2,"div",6)(3,"div",7),A._UZ(4,"fa-icon",8),A.TgZ(5,"span"),A._uU(6),A.qZA()()(),A.TgZ(7,"div",9)(8,"mat-card",10)(9,"mat-card-content",11),A.YNc(10,Mi,1,0,"mat-progress-bar",12),A.TgZ(11,"div",13),A.YNc(12,pi,1,2,"rtl-cln-node-info",14),A.YNc(13,mr,1,2,"rtl-cln-channel-status-info",15),A.YNc(14,Hs,1,2,"rtl-cln-fee-info",16),A.YNc(15,Ii,1,3,"rtl-cln-fee-rates",17),A.YNc(16,Wr,1,3,"rtl-cln-fee-rates",17),A.YNc(17,Js,1,2,"rtl-cln-onchain-fee-estimates",18),A.qZA()()()()()()),2&r){const t=y.$implicit,s=A.oxw(2);A.Q6J("colspan",t.cols)("rowspan",t.rows),A.xp6(4),A.Q6J("icon",t.icon),A.xp6(2),A.Oqu(t.title),A.xp6(3),A.Q6J("ngClass",A.VKq(13,xa,"node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.ERROR)||"feeRatesKB"===t.id&&s.apiCallStatusPerKB.status===s.apiCallStatusEnum.ERROR||"feeRatesKW"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.ERROR||"onChainFeeEstimates"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.ERROR)),A.xp6(1),A.Q6J("ngIf","node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.INITIATED)||"feeRatesKB"===t.id&&s.apiCallStatusPerKB.status===s.apiCallStatusEnum.INITIATED||"feeRatesKW"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.INITIATED||"onChainFeeEstimates"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngSwitch",t.id),A.xp6(1),A.Q6J("ngSwitchCase","node"),A.xp6(1),A.Q6J("ngSwitchCase","status"),A.xp6(1),A.Q6J("ngSwitchCase","fee"),A.xp6(1),A.Q6J("ngSwitchCase","feeRatesKB"),A.xp6(1),A.Q6J("ngSwitchCase","feeRatesKW"),A.xp6(1),A.Q6J("ngSwitchCase","onChainFeeEstimates")}}function Fa(r,y){if(1&r&&(A.TgZ(0,"mat-grid-list",2),A.YNc(1,Os,18,15,"mat-grid-tile",3),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngForOf",t.nodeCardsOperator)}}function ks(r,y){1&r&&A._UZ(0,"mat-progress-bar",19)}function js(r,y){if(1&r&&A._UZ(0,"rtl-cln-node-info",20),2&r){const t=A.oxw(3);A.Q6J("information",t.information)("showColorFieldSeparately",!1)}}function Ks(r,y){if(1&r&&A._UZ(0,"rtl-cln-channel-status-info",21),2&r){const t=A.oxw(3);A.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[0]+" "+t.errorMessages[2])}}function Vs(r,y){if(1&r&&A._UZ(0,"rtl-cln-fee-info",22),2&r){const t=A.oxw(3);A.Q6J("fees",t.fees)("errorMessage",t.errorMessages[1]+" "+t.errorMessages[3]+" "+t.errorMessages[4])}}function Ws(r,y){if(1&r&&A._UZ(0,"rtl-cln-fee-rates",23),2&r){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKB)("feeRateStyle","KB")("errorMessage",t.errorMessages[5])}}function Zs(r,y){if(1&r&&A._UZ(0,"rtl-cln-fee-rates",23),2&r){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKW)("feeRateStyle","KW")("errorMessage",t.errorMessages[5])}}function Xs(r,y){if(1&r&&A._UZ(0,"rtl-cln-onchain-fee-estimates",24),2&r){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKW)("errorMessage",t.errorMessages[5])}}function qs(r,y){if(1&r&&(A.TgZ(0,"mat-grid-tile",4)(1,"div",5)(2,"div",6)(3,"div",25),A._UZ(4,"fa-icon",8),A.TgZ(5,"span"),A._uU(6),A.qZA()()(),A.TgZ(7,"div",9)(8,"mat-card",10)(9,"mat-card-content",11),A.YNc(10,ks,1,0,"mat-progress-bar",12),A.TgZ(11,"div",13),A.YNc(12,js,1,2,"rtl-cln-node-info",14),A.YNc(13,Ks,1,2,"rtl-cln-channel-status-info",15),A.YNc(14,Vs,1,2,"rtl-cln-fee-info",16),A.YNc(15,Ws,1,3,"rtl-cln-fee-rates",17),A.YNc(16,Zs,1,3,"rtl-cln-fee-rates",17),A.YNc(17,Xs,1,2,"rtl-cln-onchain-fee-estimates",18),A.qZA()()()()()()),2&r){const t=y.$implicit,s=A.oxw(2);A.Q6J("colspan",t.cols)("rowspan",t.rows),A.xp6(4),A.Q6J("icon",t.icon),A.xp6(2),A.Oqu(t.title),A.xp6(3),A.Q6J("ngClass",A.VKq(13,xa,"node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.ERROR)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusChannels.status===s.apiCallStatusEnum.ERROR||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.ERROR)||"feeRatesKB"===t.id&&s.apiCallStatusPerKB.status===s.apiCallStatusEnum.ERROR||"feeRatesKW"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.ERROR||"onChainFeeEstimates"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.ERROR)),A.xp6(1),A.Q6J("ngIf","node"===t.id&&s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||"status"===t.id&&(s.apiCallStatusNodeInfo.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusLRBal.status===s.apiCallStatusEnum.INITIATED)||"fee"===t.id&&(s.apiCallStatusFees.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusChannels.status===s.apiCallStatusEnum.INITIATED||s.apiCallStatusFHistory.status===s.apiCallStatusEnum.INITIATED)||"feeRatesKB"===t.id&&s.apiCallStatusPerKB.status===s.apiCallStatusEnum.INITIATED||"feeRatesKW"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.INITIATED||"onChainFeeEstimates"===t.id&&s.apiCallStatusPerKW.status===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngSwitch",t.id),A.xp6(1),A.Q6J("ngSwitchCase","node"),A.xp6(1),A.Q6J("ngSwitchCase","status"),A.xp6(1),A.Q6J("ngSwitchCase","fee"),A.xp6(1),A.Q6J("ngSwitchCase","feeRatesKB"),A.xp6(1),A.Q6J("ngSwitchCase","feeRatesKW"),A.xp6(1),A.Q6J("ngSwitchCase","onChainFeeEstimates")}}function _s(r,y){if(1&r&&(A.TgZ(0,"mat-grid-list",2),A.YNc(1,qs,18,15,"mat-grid-tile",3),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngForOf",t.nodeCardsMerchant)}}let $s=(()=>{class r{constructor(t,s,L){this.logger=t,this.commonService=s,this.store=L,this.faBolt=h.BDt,this.faServer=h.xf3,this.faNetworkWired=h.kXW,this.faLink=h.nNP,this.selNode={},this.information={},this.channelsStatus={active:{},pending:{},inactive:{}},this.feeRatesPerKB={},this.feeRatesPerKW={},this.nodeCardsOperator=[],this.nodeCardsMerchant=[],this.screenSize="",this.screenSizeEnum=a.cu,this.userPersonaEnum=a.ol,this.errorMessages=["","","","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusLRBal=null,this.apiCallStatusChannels=null,this.apiCallStatusFees=null,this.apiCallStatusFHistory=null,this.apiCallStatusPerKB=null,this.apiCallStatusPerKW=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.nodeCardsMerchant=[{id:"node",icon:this.faServer,title:"Node Information",cols:6,rows:3},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:6,rows:3},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:6,rows:1},{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:4,rows:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:4,rows:4},{id:"onChainFeeEstimates",icon:this.faLink,title:"Onchain Fee Estimates (Sats)",cols:4,rows:4}],this.nodeCardsOperator=[{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:4,rows:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:4,rows:4},{id:"onChainFeeEstimates",icon:this.faLink,title:"Onchain Fee Estimates (Sats)",cols:4,rows:4}]):(this.nodeCardsMerchant=[{id:"node",icon:this.faServer,title:"Node Information",cols:2,rows:3},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:2,rows:3},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:2,rows:3},{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:2,rows:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:2,rows:4},{id:"onChainFeeEstimates",icon:this.faLink,title:"Onchain Fee Estimates (Sats)",cols:2,rows:4}],this.nodeCardsOperator=[{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:2,rows:4},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:2,rows:4},{id:"onChainFeeEstimates",icon:this.faLink,title:"Onchain Fee Estimates (Sats)",cols:2,rows:4}])}ngOnInit(){this.store.select(g.Hz).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=t.apisCallStatus[0],this.apiCallStatusNodeInfo.status===a.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message),this.selNode=t.nodeSettings,this.information=t.information,this.logger.info(t)}),this.store.select(g.ZW).pipe((0,i.R)(this.unSubs[1]),(0,o.M)(this.store.select(g.Wj))).subscribe(([t,s])=>{this.errorMessages[2]="",this.errorMessages[3]="",this.apiCallStatusLRBal=t.apiCallStatus,this.apiCallStatusChannels=s.apiCallStatus,this.apiCallStatusLRBal.status===a.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusLRBal.message?JSON.stringify(this.apiCallStatusLRBal.message):this.apiCallStatusLRBal.message),this.apiCallStatusChannels.status===a.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message),this.channelsStatus.active.channels=t.activeChannels.length||0,this.channelsStatus.pending.channels=t.pendingChannels.length||0,this.channelsStatus.inactive.channels=t.inactiveChannels.length||0,this.channelsStatus.active.capacity=s.localRemoteBalance.localBalance||0,this.channelsStatus.pending.capacity=s.localRemoteBalance.pendingBalance||0,this.channelsStatus.inactive.capacity=s.localRemoteBalance.inactiveBalance||0}),this.store.select(g.JG).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessages[1]="",this.apiCallStatusFees=t.apiCallStatus,this.apiCallStatusFees.status===a.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message),this.fees=t.fees}),this.store.select(g.Bo).pipe((0,i.R)(this.unSubs[3])).subscribe(t=>{this.errorMessages[4]="",this.apiCallStatusFHistory=t.apiCallStatus,this.apiCallStatusFHistory.status===a.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusFHistory.message?JSON.stringify(this.apiCallStatusFHistory.message):this.apiCallStatusFHistory.message),t.forwardingHistory&&t.forwardingHistory.listForwards.length&&(this.fees.totalTxCount=t.forwardingHistory.listForwards.length)}),this.store.select(g.zm).pipe((0,i.R)(this.unSubs[4])).subscribe(t=>{this.errorMessages[5]="",this.apiCallStatusPerKB=t.apiCallStatus,this.apiCallStatusPerKB.status===a.Bn.ERROR&&(this.errorMessages[5]="object"==typeof this.apiCallStatusPerKB.message?JSON.stringify(this.apiCallStatusPerKB.message):this.apiCallStatusPerKB.message),this.feeRatesPerKB=t.feeRatesPerKB}),this.store.select(g.hx).pipe((0,i.R)(this.unSubs[5])).subscribe(t=>{this.errorMessages[6]="",this.apiCallStatusPerKW=t.apiCallStatus,this.apiCallStatusPerKW.status===a.Bn.ERROR&&(this.errorMessages[6]="object"==typeof this.apiCallStatusPerKW.message?JSON.stringify(this.apiCallStatusPerKW.message):this.apiCallStatusPerKW.message),this.feeRatesPerKW=t.feeRatesPerKW})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-network-info"]],decls:3,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch",1,"mb-4"],["cols","6","rowHeight","100px",4,"ngIf"],["cols","6","rowHeight","100px"],["class","node-grid-tile",3,"colspan","rowspan",4,"ngFor","ngForOf"],[1,"node-grid-tile",3,"colspan","rowspan"],["fxLayout","column","fxLayoutAlign","stretch start","fxFlex","100",1,"h-100"],["fxLayout","row","fxLayoutAlign","start start",1,"w-100"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","pl-2"],[1,"mr-1",3,"icon"],["fxLayout","column","fxLayoutAlign","stretch center","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","center stretch",1,"w-100","h-93"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","w-96","h-93"],["fxLayout","column","fxFlex","100",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["class","h-100",3,"feeRates","feeRateStyle","errorMessage",4,"ngSwitchCase"],["class","h-100",3,"feeRates","errorMessage",4,"ngSwitchCase"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],[1,"h-100",3,"feeRates","feeRateStyle","errorMessage"],[1,"h-100",3,"feeRates","errorMessage"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","pl-15px"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Fa,2,1,"mat-grid-list",1),A.YNc(2,_s,2,1,"mat-grid-list",1),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",s.selNode.userPersona===s.userPersonaEnum.OPERATOR),A.xp6(1),A.Q6J("ngIf",s.selNode.userPersona===s.userPersonaEnum.MERCHANT))},directives:[Ct.xw,Ct.Wh,Et.O5,B.Il,Et.sg,B.DX,Ct.yH,f.BN,w.a8,w.dn,Et.mk,m.oO,Y.pW,Et.RF,Et.n9,T,q,SA,Da,Gs],styles:[""]}),r})();function A0(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",8),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().activeLink=vA.link}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit,s=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",s.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let mi=(()=>{class r{constructor(t){this.router=t,this.faUserCheck=h.hkK,this.links=[{link:"sign",name:"Sign"},{link:"verify",name:"Verify"}],this.activeLink=this.links[0].link,this.unSubs=[new c.x,new c.x]}ngOnInit(){const t=this.links.find(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(s=>s instanceof _t.Av)).subscribe({next:s=>{const L=this.links.find(vA=>s.urlAfterRedirects.includes(vA.link));this.activeLink=L?L.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-sign-verify-message"]],decls:11,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Sign/Verify Message"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),A.YNc(8,A0,2,3,"div",6),A.qZA(),A.TgZ(9,"div",7),A._UZ(10,"router-outlet"),A.qZA()()()()),2&t&&(A.xp6(1),A.Q6J("icon",s.faUserCheck),A.xp6(7),A.Q6J("ngForOf",s.links))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,ft.BU,Et.sg,ft.Nj,_t.rH,Ct.yH,_t.lC],styles:[""]}),r})();var Ki=Nt(9122);function vi(r,y){if(1&r&&(A.TgZ(0,"mat-option",7),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t),A.xp6(1),A.hij(" ",t.addressTp," ")}}let Ya=(()=>{class r{constructor(t,s){this.store=t,this.clnEffects=s,this.addressTypes=a._t,this.selectedAddressType=a._t[0],this.newAddress=""}onGenerateAddress(){this.store.dispatch((0,ht._E)({payload:this.selectedAddressType})),this.clnEffects.setNewAddressCL.pipe((0,UA.q)(1)).subscribe(t=>{this.newAddress=t,setTimeout(()=>{this.store.dispatch((0,kA.qR)({payload:{data:{address:this.newAddress,addressType:this.selectedAddressType.addressTp,component:Ki.n}}}))},0)})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh),A.Y36(In.J))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-on-chain-receive"]],decls:8,vars:2,consts:[["fxLayout","column",1,"padding-gap-x"],["fxLayout","row","fxLayoutAlign","space-between end","fxLayoutAlign.gt-sm","start end"],["fxFlex","48","fxFlex.gt-md","25","fxLayoutAlign","start end",1,"mr-2"],["placeholder","Address Type","name","address_type","tabindex","1",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mt-2"],["mat-flat-button","","color","primary","tabindex","2",1,"top-minus-15px",3,"click"],[3,"value"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-select",3),A.NdJ("ngModelChange",function(vA){return s.selectedAddressType=vA}),A.YNc(4,vi,2,2,"mat-option",4),A.qZA()(),A.TgZ(5,"div",5)(6,"button",6),A.NdJ("click",function(){return s.onGenerateAddress()}),A._uU(7,"Generate Address"),A.qZA()()()()),2&t&&(A.xp6(3),A.Q6J("ngModel",s.selectedAddressType),A.xp6(1),A.Q6J("ngForOf",s.addressTypes))},directives:[Ct.xw,Ct.Wh,Z.KE,Ct.yH,R.gD,OA.JJ,OA.On,Et.sg,QA.ey,Q.lW],styles:[""]}),r})(),Ta=(()=>{class r{constructor(t,s){this.store=t,this.activatedRoute=s,this.sweepAll=!1,this.unSubs=[new c.x,new c.x]}ngOnInit(){this.activatedRoute.data.pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.sweepAll=t.sweepAll})}openSendFundsModal(){this.store.dispatch((0,kA.qR)({payload:{data:{sweepAll:this.sweepAll,component:or}}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh),A.Y36(_t.gz))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-on-chain-send"]],decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"button",2),A.NdJ("click",function(){return s.openSendFundsModal()}),A._uU(3),A.qZA()()()),2&t&&(A.xp6(3),A.Oqu(s.sweepAll?"Sweep All":"Send Funds"))},directives:[Ct.xw,Ct.yH,Ct.Wh,Q.lW],styles:[""]}),r})();var Di=Nt(8675),Un=Nt(4004),tr=Nt(1079),yi=Nt(9843);const Vi=["form"];function Wi(r,y){if(1&r&&(A.TgZ(0,"mat-option",42),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t),A.xp6(1),A.Oqu(t.alias?t.alias:t.id?t.id:"")}}function t0(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Peer alias is required."),A.qZA())}function Zr(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Peer not found in the list."),A.qZA())}function Sa(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",1)(1,"input",39),A.NdJ("change",function(){return A.CHM(t),A.oxw().onSelectedPeerChanged()}),A.qZA(),A.TgZ(2,"mat-autocomplete",40,41),A.NdJ("optionSelected",function(){return A.CHM(t),A.oxw().onSelectedPeerChanged()}),A.YNc(4,Wi,2,2,"mat-option",26),A.ALo(5,"async"),A.qZA(),A.YNc(6,t0,2,0,"mat-error",17),A.YNc(7,Zr,2,0,"mat-error",17),A.qZA()}if(2&r){const t=A.MAs(3),s=A.oxw();A.xp6(1),A.Q6J("formControl",s.selectedPeer)("matAutocomplete",t),A.xp6(1),A.Q6J("displayWith",s.displayFn),A.xp6(2),A.Q6J("ngForOf",A.lcZ(5,6,s.filteredPeers)),A.xp6(2),A.Q6J("ngIf",null==s.selectedPeer.errors?null:s.selectedPeer.errors.required),A.xp6(1),A.Q6J("ngIf",null==s.selectedPeer.errors?null:s.selectedPeer.errors.notfound)}}function e0(r,y){1&r&&A.GkF(0)}function n0(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function r0(r,y){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.hij("Amount must be less than or equal to ",t.totalBalance,".")}}function i0(r,y){if(1&r&&(A.TgZ(0,"mat-option",42),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function a0(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function o0(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-form-field",43)(1,"input",44,45),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().customFeeRate=L}),A.qZA(),A.YNc(3,a0,2,0,"mat-error",17),A.qZA()}if(2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngModel",t.customFeeRate)("step",.1)("min",0)("required","customperkb"===t.selFeeRate&&!t.flgMinConf),A.xp6(2),A.Q6J("ngIf","customperkb"===t.selFeeRate&&!t.flgMinConf&&!t.customFeeRate)}}function s0(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function l0(r,y){if(1&r&&(A.TgZ(0,"mat-option",42),A._uU(1),A.ALo(2,"number"),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t),A.xp6(1),A.hij("",A.lcZ(2,2,t.value)," Sats")}}function c0(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",22)(1,"mat-form-field",46)(2,"mat-select",47),A.NdJ("selectionChange",function(L){return A.CHM(t),A.oxw().onUTXOSelectionChange(L)})("valueChange",function(L){return A.CHM(t),A.oxw().selUTXOs=L}),A.TgZ(3,"mat-select-trigger"),A._uU(4),A.ALo(5,"number"),A.qZA(),A.YNc(6,l0,3,4,"mat-option",26),A.qZA()(),A.TgZ(7,"div",28)(8,"mat-slide-toggle",48),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().flgUseAllBalance=L})("change",function(){return A.CHM(t),A.oxw().onUTXOAllBalanceChange()}),A._uU(9," Use selected UTXOs balance "),A.qZA(),A.TgZ(10,"mat-icon",49),A._uU(11,"info_outline"),A.qZA()()()}if(2&r){const t=A.oxw();A.xp6(2),A.Q6J("value",t.selUTXOs),A.xp6(2),A.AsE("",A.lcZ(5,6,t.totalSelectedUTXOAmount)," Sats (",t.selUTXOs.length>1?t.selUTXOs.length+" UTXOs":"1 UTXO",")"),A.xp6(2),A.Q6J("ngForOf",t.utxos),A.xp6(2),A.Q6J("ngModel",t.flgUseAllBalance)("disabled",t.selUTXOs.length<1)}}function g0(r,y){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.channelConnectionError)}}function B0(r,y){if(1&r&&(A.TgZ(0,"div",50),A._UZ(1,"fa-icon",51),A.YNc(2,g0,2,1,"span",17),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.channelConnectionError)}}function u0(r,y){if(1&r&&(A.TgZ(0,"mat-expansion-panel",53)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span"),A._uU(4,"Peer: \xa0"),A.qZA(),A.TgZ(5,"strong",54),A._uU(6),A.qZA()()(),A.TgZ(7,"div",9)(8,"div",0)(9,"div",1)(10,"h4",55),A._uU(11,"Pubkey"),A.qZA(),A.TgZ(12,"span",56),A._uU(13),A.qZA()()(),A._UZ(14,"mat-divider",57),A.TgZ(15,"div",0)(16,"div",58)(17,"h4",55),A._uU(18,"Address"),A.qZA(),A.TgZ(19,"span",59),A._uU(20),A.qZA()(),A.TgZ(21,"div",58)(22,"h4",55),A._uU(23,"Connected"),A.qZA(),A.TgZ(24,"span",59),A._uU(25),A.qZA()()()()()),2&r){const t=A.oxw(2);A.xp6(6),A.Oqu((null==t.peer?null:t.peer.alias)||(null==t.peer?null:t.peer.id)),A.xp6(7),A.Oqu(t.peer.id),A.xp6(7),A.Oqu(null==t.peer?null:t.peer.netaddr),A.xp6(5),A.Oqu(t.peer.connected?"True":"False")}}function f0(r,y){if(1&r&&A.YNc(0,u0,26,4,"mat-expansion-panel",52),2&r){const t=A.oxw();A.Q6J("ngIf",t.peer)}}const xi=function(r,y){return{"mr-6":r,"mr-2":y}};let pe=(()=>{class r{constructor(t,s,L,vA,gt,ae){this.dialogRef=t,this.data=s,this.store=L,this.actions=vA,this.decimalPipe=gt,this.commonService=ae,this.selectedPeer=new OA.NI,this.faExclamationTriangle=h.eHv,this.isCompatibleVersion=!1,this.utxos=[],this.selUTXOs=[],this.flgUseAllBalance=!1,this.totalSelectedUTXOAmount=0,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.fundingAmount=null,this.selectedPubkey="",this.isPrivate=!1,this.feeRateTypes=a.vn,this.selFeeRate="",this.customFeeRate=null,this.flgMinConf=!1,this.minConfValue=null,this.screenSize="",this.screenSizeEnum=a.cu,this.unSubs=[new c.x,new c.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.isCompatibleVersion=this.data.message.isCompatibleVersion,this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.utxos=this.data.message.utxos,this.alertTitle=this.data.alertTitle,this.peer=this.data.message.peer||null,this.peers=this.data.message.peers||[],this.actions.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(L=>L.type===a.AB.UPDATE_API_CALL_STATUS_CLN||L.type===a.AB.FETCH_CHANNELS_CLN)).subscribe(L=>{L.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&L.payload.status===a.Bn.ERROR&&"SaveNewChannel"===L.payload.action&&(this.channelConnectionError=L.payload.message),L.type===a.AB.FETCH_CHANNELS_CLN&&this.dialogRef.close()});let t="",s="";this.sortedPeers=this.peers.sort((L,vA)=>(t=L.alias?L.alias.toLowerCase():L.id?L.id.toLowerCase():"",s=vA.alias?vA.alias.toLowerCase():L.id.toLowerCase(),ts?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,i.R)(this.unSubs[1]),(0,Di.O)(""),(0,Un.U)(L=>"string"==typeof L?L:L.alias?L.alias:L.id),(0,Un.U)(L=>L?this.filterPeers(L):this.sortedPeers.slice()))}filterPeers(t){return this.sortedPeers.filter(s=>0===s.alias.toLowerCase().indexOf(t?t.toLowerCase():""))}displayFn(t){return t&&t.alias?t.alias:t&&t.id?t.id:""}onSelectedPeerChanged(){if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.id?this.selectedPeer.value.id:null,"string"==typeof this.selectedPeer.value){const t=this.peers.filter(s=>s.alias.length===this.selectedPeer.value.length&&0===s.alias.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""));1===t.length&&t[0].id&&(this.selectedPubkey=t[0].id)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)}onClose(){this.dialogRef.close(!1)}resetData(){this.flgMinConf=!1,this.selFeeRate="",this.minConfValue=null,this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!1,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onAdvancedPanelToggle(t){t&&(this.flgMinConf||this.selFeeRate||this.selUTXOs.length&&0!==this.selUTXOs.length)?(this.advancedTitle="Advanced Options",this.flgMinConf&&(this.advancedTitle=this.advancedTitle+" | Min Confirmation Blocks: "+this.minConfValue),this.selFeeRate&&(this.advancedTitle=this.advancedTitle+" | Fee Rate: "+(this.customFeeRate?this.customFeeRate+" (Sats/vByte)":this.feeRateTypes.find(s=>s.feeRateId===this.selFeeRate).feeRateType)),this.selUTXOs.length&&this.selUTXOs.length>0&&(this.advancedTitle=this.advancedTitle+" | Total Selected: "+this.selUTXOs.length+" | Selected UTXOs: "+this.decimalPipe.transform(this.totalSelectedUTXOAmount)+" Sats")):this.advancedTitle="Advanced Options"}onUTXOSelectionChange(t){const s={value:0};this.selUTXOs.length&&this.selUTXOs.length>0?(this.totalSelectedUTXOAmount=this.selUTXOs.reduce((L,vA)=>(s.value=L.value+vA.value,s)).value,this.flgUseAllBalance&&this.onUTXOAllBalanceChange()):(this.totalSelectedUTXOAmount=0,this.fundingAmount=null,this.flgUseAllBalance=!1)}onUTXOAllBalanceChange(){this.fundingAmount=this.flgUseAllBalance?this.totalSelectedUTXOAmount:null}onOpenChannel(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0||this.flgMinConf&&!this.minConfValue||"customperkb"===this.selFeeRate&&!this.flgMinConf&&!this.customFeeRate)return!0;const t={peerId:this.peer&&this.peer.id?this.peer.id:this.selectedPubkey,satoshis:this.flgUseAllBalance?"all":this.fundingAmount.toString(),announce:!this.isPrivate,minconf:this.flgMinConf?this.minConfValue:null};t.feeRate="customperkb"===this.selFeeRate&&!this.flgMinConf&&this.customFeeRate?1e3*this.customFeeRate+"perkb":this.selFeeRate,this.selUTXOs.length&&this.selUTXOs.length>0&&(t.utxos=[],this.selUTXOs.forEach(s=>t.utxos.push(s.txid+":"+s.output))),this.store.dispatch((0,ht.YX)({payload:t}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(u.yh),A.Y36(C.eX),A.Y36(Et.JJ),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-open-channel"]],viewQuery:function(t,s){if(1&t&&A.Gf(Vi,7),2&t){let L;A.iGM(L=A.CRH())&&(s.form=L.first)}},decls:56,vars:34,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column",3,"submit","reset"],["form","ngForm"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","70","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","1","required","","name","amount",3,"ngModel","step","min","max","disabled","ngModelChange"],["amount","ngModel"],["matSuffix",""],[4,"ngIf"],["fxFlex","25","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","isPrivate",3,"ngModel","ngModelChange"],["expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-sm","space-between center","fxLayout.gt-sm","row wrap"],["fxFlex","54","fxLayoutAlign","space-between end"],["fxLayoutAlign","start center",3,"fxFlex"],["tabindex","4","placeholder","Fee Rate",3,"value","disabled","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","42","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","2","tabindex","5","color","primary","name","flgMinConf","fxLayoutAlign","stretch start",3,"ngModel","ngClass","ngModelChange","change"],["fxFlex","98"],["matInput","","placeholder","Min Confirmation Blocks","type","number","name","blocks","tabindex","8",3,"ngModel","step","min","required","disabled","ngModelChange"],["blocks","ngModel"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-sm","space-between center","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","9"],["peerDetailsExpansionBlock",""],["type","text","placeholder","Peer Alias","aria-label","Peers","matInput","","tabindex","1","required","",3,"formControl","matAutocomplete","change"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value"],["fxFlex","48","fxLayoutAlign","end center"],["matInput","","placeholder","Fee Rate (Sats/vByte)","type","number","name","custFeeRate","tabindex","4",3,"ngModel","step","min","required","ngModelChange"],["custFeeRate","ngModel"],["fxFlex","54","fxLayoutAlign","start end"],["tabindex","6","placeholder","Coin Selection","multiple","",3,"value","selectionChange","valueChange"],["tabindex","7","color","primary","name","flgUseAllBalance",3,"ngModel","disabled","ngModelChange","change"],["matTooltip","Use selected UTXOs balance as the amount to be sent. Final amount sent will be less the mining fee.","matTooltipPosition","before",1,"info-icon"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["class","flat-expansion-panel my-1","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","my-1"],[1,"font-weight-900"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(t,s){if(1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5),A.qZA()(),A.TgZ(6,"button",5),A.NdJ("click",function(){return s.onClose()}),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"form",7,8),A.NdJ("submit",function(){return s.onOpenChannel()})("reset",function(){return s.resetData()}),A.TgZ(11,"div",9),A.YNc(12,Sa,8,8,"mat-form-field",10),A.qZA(),A.YNc(13,e0,1,0,"ng-container",11),A.TgZ(14,"div",9)(15,"div",12)(16,"mat-form-field",13)(17,"input",14,15),A.NdJ("ngModelChange",function(vA){return s.fundingAmount=vA}),A.qZA(),A.TgZ(19,"mat-hint"),A._uU(20),A.ALo(21,"number"),A.qZA(),A.TgZ(22,"span",16),A._uU(23," Sats "),A.qZA(),A.YNc(24,n0,2,0,"mat-error",17),A.YNc(25,r0,2,1,"mat-error",17),A.qZA(),A.TgZ(26,"div",18)(27,"mat-slide-toggle",19),A.NdJ("ngModelChange",function(vA){return s.isPrivate=vA}),A._uU(28,"Private Channel"),A.qZA()()(),A.TgZ(29,"mat-expansion-panel",20),A.NdJ("closed",function(){return s.onAdvancedPanelToggle(!0)})("opened",function(){return s.onAdvancedPanelToggle(!1)}),A.TgZ(30,"mat-expansion-panel-header")(31,"mat-panel-title")(32,"span"),A._uU(33),A.qZA()()(),A.TgZ(34,"div",21)(35,"div",22)(36,"div",23)(37,"mat-form-field",24)(38,"mat-select",25),A.NdJ("valueChange",function(vA){return s.selFeeRate=vA})("selectionChange",function(){return s.customFeeRate=null}),A.YNc(39,i0,2,2,"mat-option",26),A.qZA()(),A.YNc(40,o0,4,5,"mat-form-field",27),A.qZA(),A.TgZ(41,"div",28)(42,"mat-checkbox",29),A.NdJ("ngModelChange",function(vA){return s.flgMinConf=vA})("change",function(){return s.flgMinConf?s.selFeeRate=null:s.minConfValue=null}),A.qZA(),A.TgZ(43,"mat-form-field",30)(44,"input",31,32),A.NdJ("ngModelChange",function(vA){return s.minConfValue=vA}),A.qZA(),A.YNc(46,s0,2,0,"mat-error",17),A.qZA()()(),A.YNc(47,c0,12,8,"div",33),A.qZA()()(),A.YNc(48,B0,3,2,"div",34),A.TgZ(49,"div",35)(50,"button",36),A._uU(51,"Clear Fields"),A.qZA(),A.TgZ(52,"button",37),A._uU(53,"Open Channel"),A.qZA()()()()()(),A.YNc(54,f0,1,1,"ng-template",null,38,A.W1O)),2&t){const L=A.MAs(18),vA=A.MAs(55);A.xp6(5),A.Oqu(s.alertTitle),A.xp6(7),A.Q6J("ngIf",!s.peer&&s.peers&&s.peers.length>0),A.xp6(1),A.Q6J("ngTemplateOutlet",vA),A.xp6(4),A.Q6J("ngModel",s.fundingAmount)("step",1e3)("min",1)("max",s.totalBalance)("disabled",s.flgUseAllBalance),A.xp6(3),A.AsE("Remaining Bal: ",A.lcZ(21,29,s.totalBalance-(s.fundingAmount?s.fundingAmount:0)),"",s.flgUseAllBalance?". Amount replaced by UTXO balance":"",""),A.xp6(4),A.Q6J("ngIf",(null==L.errors?null:L.errors.required)||!s.fundingAmount),A.xp6(1),A.Q6J("ngIf",null==L.errors?null:L.errors.max),A.xp6(2),A.Q6J("ngModel",s.isPrivate),A.xp6(6),A.Oqu(s.advancedTitle),A.xp6(4),A.Q6J("fxFlex","customperkb"!==s.selFeeRate||s.flgMinConf?"100":"48"),A.xp6(1),A.Q6J("value",s.selFeeRate)("disabled",s.flgMinConf),A.xp6(1),A.Q6J("ngForOf",s.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===s.selFeeRate&&!s.flgMinConf),A.xp6(2),A.Q6J("ngModel",s.flgMinConf)("ngClass",A.WLB(31,xi,s.screenSize===s.screenSizeEnum.XS||s.screenSize===s.screenSizeEnum.SM,s.screenSize===s.screenSizeEnum.MD||s.screenSize===s.screenSizeEnum.LG||s.screenSize===s.screenSizeEnum.XL)),A.xp6(2),A.Q6J("ngModel",s.minConfValue)("step",1)("min",0)("required",s.flgMinConf)("disabled",!s.flgMinConf),A.xp6(2),A.Q6J("ngIf",s.flgMinConf&&!s.minConfValue),A.xp6(1),A.Q6J("ngIf",s.isCompatibleVersion),A.xp6(1),A.Q6J("ngIf",""!==s.channelConnectionError)}},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Q.lW,w.dn,OA._Y,OA.JL,OA.F,Et.O5,Z.KE,Yt.Nt,OA.Fj,tr.ZL,OA.Q7,OA.JJ,OA.oH,tr.XC,Et.sg,QA.ey,Z.TO,Et.tP,OA.wV,OA.qQ,OA.Fd,k.q,yi.F,OA.On,Z.bx,Z.R9,wA.Rr,ar.ib,ar.yz,ar.yK,R.gD,HA.oG,Et.mk,m.oO,R.$L,S.Hw,aA.gM,f.BN,H.h,AA.d],pipes:[Et.Ov,Et.JJ],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),r})();function ee(r,y){if(1&r&&(A.TgZ(0,"span",7),A._uU(1,"Open"),A.qZA()),2&r){const t=A.oxw();A.s9C("matBadge",t.openChannels)}}function h0(r,y){if(1&r&&(A.TgZ(0,"span",7),A._uU(1,"Pending/Inactive"),A.qZA()),2&r){const t=A.oxw();A.s9C("matBadge",t.pendingChannels)}}let Na=(()=>{class r{constructor(t,s,L,vA){this.logger=t,this.store=s,this.commonService=L,this.router=vA,this.openChannels=0,this.pendingChannels=0,this.selNode={},this.information={},this.peers=[],this.utxos=[],this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending/Inactive"}],this.activeLink=0,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.activeLink=this.links.findIndex(t=>t.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(t=>t instanceof _t.Av)).subscribe({next:t=>{this.activeLink=this.links.findIndex(s=>s.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(g.OL).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.selNode=t.nodeSettings,this.information=t.information,this.totalBalance=t.balance.totalBalance,this.logger.info(t)}),this.store.select(g.Wi).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.peers=t.peers}),this.store.select(g.T4).pipe((0,i.R)(this.unSubs[3])).subscribe(t=>{this.utxos=this.commonService.sortAscByKey(t.utxos.filter(s=>"confirmed"===s.status),"value")}),this.store.select(g.ZW).pipe((0,i.R)(this.unSubs[4])).subscribe(t=>{this.openChannels=t.activeChannels.length||0,this.pendingChannels=t.pendingChannels.length+t.inactiveChannels.length||0,this.logger.info(t)})}onOpenChannel(){const t={peers:this.peers,information:this.information,balance:this.totalBalance,utxos:this.utxos,isCompatibleVersion:this.commonService.isVersionCompatible(this.information.version,"0.9.0")&&this.commonService.isVersionCompatible(this.information.api_version,"0.4.0")};this.store.dispatch((0,kA.qR)({payload:{data:{alertTitle:"Open Channel",message:t,component:pe}}}))}onSelectedTabChange(t){this.router.navigateByUrl("/cln/connections/channels/"+this.links[t.index].link)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(e.v),A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channels-tables"]],decls:12,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100",1,"my-2","bordered-box"],[3,"selectedIndex","selectedIndexChange","selectedTabChange"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"button",2),A.NdJ("click",function(){return s.onOpenChannel()}),A._uU(3,"Open Channel"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-tab-group",4),A.NdJ("selectedIndexChange",function(vA){return s.activeLink=vA})("selectedTabChange",function(vA){return s.onSelectedTabChange(vA)}),A.TgZ(6,"mat-tab"),A.YNc(7,ee,2,1,"ng-template",5),A.qZA(),A.TgZ(8,"mat-tab"),A.YNc(9,h0,2,1,"ng-template",5),A.qZA()(),A.TgZ(10,"div",6),A._UZ(11,"router-outlet"),A.qZA()()()),2&t&&(A.xp6(5),A.Q6J("selectedIndex",s.activeLink))},directives:[Ct.xw,Ct.yH,Ct.Wh,Q.lW,ft.SP,ft.uX,ft.uD,Bi.k,_t.lC],styles:[""]}),r})();function Xr(r,y){if(1&r&&(A.TgZ(0,"div")(1,"div",9)(2,"div",1)(3,"h4",11),A._uU(4,"Funding Transaction Id"),A.qZA(),A.TgZ(5,"span",12),A._uU(6),A.qZA()()(),A._UZ(7,"mat-divider",13),A.qZA()),2&r){const t=A.oxw();A.xp6(6),A.Oqu(t.channel.funding_txid),A.xp6(1),A.Q6J("inset",!0)}}function Ua(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Show Advanced"),A.qZA())}function E0(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Hide Advanced"),A.qZA())}function w0(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"button",23),A.NdJ("copied",function(L){return A.CHM(t),A.oxw().onCopyChanID(L)}),A._uU(1,"Copy Short Channel ID"),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("payload",t.channel.short_channel_id)}}function Pa(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"button",24),A.NdJ("click",function(){return A.CHM(t),A.oxw().onClose()}),A._uU(1,"OK"),A.qZA()}}const C0=function(r){return{"xs-scroll-y":r}},En=function(r,y){return{"mt-2":r,"mt-1":y}};let Fi=(()=>{class r{constructor(t,s,L,vA,gt){this.dialogRef=t,this.data=s,this.logger=L,this.commonService=vA,this.snackBar=gt,this.faReceipt=h.dLy,this.showAdvanced=!1,this.showCopy=!0,this.showCopyField=null,this.screenSize="",this.screenSizeEnum=a.cu}ngOnInit(){this.channel=this.data.channel,this.showCopy=this.data.showCopy,this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(t){this.snackBar.open("Short channel ID "+t+" copied."),this.logger.info("Copied Text: "+t)}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(E.mQ),A.Y36(e.v),A.Y36(Tr.ux))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-information"]],decls:94,vars:40,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxFlex","25"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(t,s){if(1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3),A._UZ(4,"fa-icon",4),A.TgZ(5,"span",5),A._uU(6,"Channel Information"),A.qZA()(),A.TgZ(7,"button",6),A.NdJ("click",function(){return s.onClose()}),A._uU(8,"X"),A.qZA()(),A.TgZ(9,"mat-card-content",7)(10,"div",8)(11,"div",9)(12,"div",10)(13,"h4",11),A._uU(14,"Short Channel ID"),A.qZA(),A.TgZ(15,"span",12),A._uU(16),A.qZA()(),A.TgZ(17,"div",10)(18,"h4",11),A._uU(19,"Peer Alias"),A.qZA(),A.TgZ(20,"span",12),A._uU(21),A.qZA()()(),A._UZ(22,"mat-divider",13),A.TgZ(23,"div",9)(24,"div",1)(25,"h4",11),A._uU(26,"Channel ID"),A.qZA(),A.TgZ(27,"span",12),A._uU(28),A.qZA()()(),A._UZ(29,"mat-divider",13),A.TgZ(30,"div",9)(31,"div",1)(32,"h4",11),A._uU(33,"Peer Public Key"),A.qZA(),A.TgZ(34,"span",12),A._uU(35),A.qZA()()(),A._UZ(36,"mat-divider",13),A.TgZ(37,"div",9)(38,"div",14)(39,"h4",11),A._uU(40,"mSatoshi to Us"),A.qZA(),A.TgZ(41,"span",15),A._uU(42),A.ALo(43,"number"),A.qZA()(),A.TgZ(44,"div",14)(45,"h4",11),A._uU(46,"Spendable (mSats)"),A.qZA(),A.TgZ(47,"span",15),A._uU(48),A.ALo(49,"number"),A.qZA()(),A.TgZ(50,"div",14)(51,"h4",11),A._uU(52,"Total (mSats)"),A.qZA(),A.TgZ(53,"span",15),A._uU(54),A.ALo(55,"number"),A.qZA()(),A.TgZ(56,"div",14)(57,"h4",11),A._uU(58,"State"),A.qZA(),A.TgZ(59,"span",15),A._uU(60),A.qZA()()(),A._UZ(61,"mat-divider",13),A.TgZ(62,"div",9)(63,"div",14)(64,"h4",11),A._uU(65,"Our Reserve (Sats)"),A.qZA(),A.TgZ(66,"span",15),A._uU(67),A.ALo(68,"number"),A.qZA()(),A.TgZ(69,"div",14)(70,"h4",11),A._uU(71,"Their Reserve (Sats)"),A.qZA(),A.TgZ(72,"span",15),A._uU(73),A.ALo(74,"number"),A.qZA()(),A.TgZ(75,"div",14)(76,"h4",11),A._uU(77,"Connected"),A.qZA(),A.TgZ(78,"span",15),A._uU(79),A.qZA()(),A.TgZ(80,"div",14)(81,"h4",11),A._uU(82,"Private"),A.qZA(),A.TgZ(83,"span",15),A._uU(84),A.qZA()()(),A._UZ(85,"mat-divider",13),A.YNc(86,Xr,8,2,"div",16),A.TgZ(87,"div",17)(88,"button",18),A.NdJ("click",function(){return s.onShowAdvanced()}),A.YNc(89,Ua,2,0,"p",19),A.YNc(90,E0,2,0,"ng-template",null,20,A.W1O),A.qZA(),A.YNc(92,w0,2,1,"button",21),A.YNc(93,Pa,2,0,"button",22),A.qZA()()()()()),2&t){const L=A.MAs(91);A.xp6(4),A.Q6J("icon",s.faReceipt),A.xp6(5),A.Q6J("ngClass",A.VKq(35,C0,s.screenSize===s.screenSizeEnum.XS)),A.xp6(7),A.Oqu(s.channel.short_channel_id),A.xp6(5),A.Oqu(s.channel.alias),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(s.channel.channel_id),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(s.channel.id),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(A.lcZ(43,25,s.channel.msatoshi_to_us)),A.xp6(6),A.Oqu(A.lcZ(49,27,s.channel.spendable_msatoshi)),A.xp6(6),A.Oqu(A.lcZ(55,29,s.channel.msatoshi_total)),A.xp6(6),A.Oqu(s.channel.state),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(A.lcZ(68,31,s.channel.our_channel_reserve_satoshis)),A.xp6(6),A.Oqu(A.lcZ(74,33,s.channel.their_channel_reserve_satoshis)),A.xp6(6),A.Oqu(s.channel.connected?"Yes":"No"),A.xp6(5),A.Oqu(s.channel.private?"Yes":"No"),A.xp6(1),A.Q6J("inset",!0),A.xp6(1),A.Q6J("ngIf",s.showAdvanced),A.xp6(1),A.Q6J("ngClass",A.WLB(37,En,!s.showAdvanced,s.showAdvanced)),A.xp6(2),A.Q6J("ngIf",!s.showAdvanced)("ngIfElse",L),A.xp6(3),A.Q6J("ngIf",s.showCopy),A.xp6(1),A.Q6J("ngIf",!s.showCopy)}},directives:[Ct.xw,Ct.Wh,Ct.yH,w.dk,f.BN,Q.lW,w.dn,Et.mk,m.oO,AA.d,Et.O5,H.h,Kr.y],pipes:[Et.JJ],styles:[""]}),r})();function Ra(r,y){1&r&&A._UZ(0,"mat-progress-bar",33)}function Yi(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1," Short Channel ID "),A.qZA())}function Q0(r,y){if(1&r&&(A.TgZ(0,"span",40),A._UZ(1,"fa-icon",41),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("icon",t.faEyeSlash)}}function vr(r,y){if(1&r&&(A.TgZ(0,"span",42),A._UZ(1,"fa-icon",41),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("icon",t.faEye)}}const Zn=function(r){return{"max-width":r}};function lr(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"div",36),A.YNc(2,Q0,2,1,"span",37),A.YNc(3,vr,2,1,"span",38),A.TgZ(4,"span",39),A._uU(5),A.qZA()()()),2&r){const t=y.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(4,Zn,s.screenSize===s.screenSizeEnum.XS?"12rem":"22rem")),A.xp6(1),A.Q6J("ngIf",t.private),A.xp6(1),A.Q6J("ngIf",!t.private),A.xp6(2),A.Oqu(null==t?null:t.short_channel_id)}}function cr(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1," Alias "),A.qZA())}function d0(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"div",36)(2,"span",39),A._uU(3),A.qZA()()()),2&r){const t=y.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(2,Zn,s.screenSize===s.screenSizeEnum.XS?"12rem":"22rem")),A.xp6(2),A.Oqu(null==t?null:t.alias)}}function M0(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1," Connected "),A.qZA())}function p0(r,y){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.connected?"Connected":"Disconnected"," ")}}function Ti(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1," Private "),A.qZA())}function I0(r,y){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.private?"Private":"Public"," ")}}function za(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1," State "),A.qZA())}function m0(r,y){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.state,"")}}function v0(r,y){1&r&&(A.TgZ(0,"th",43),A._uU(1," Local Balance (Sats) "),A.qZA())}function de(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,(null==t?null:t.msatoshi_to_us)/1e3,(null==t?null:t.msatoshi_to_us)<1e3?"1.0-4":"1.0-0")," ")}}function La(r,y){1&r&&(A.TgZ(0,"th",43),A._uU(1," Remote Balance (Sats) "),A.qZA())}function D0(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,(null==t?null:t.msatoshi_to_them)/1e3,(null==t?null:t.msatoshi_to_them)<1e3?"1.0-4":"1.0-0")," ")}}function y0(r,y){1&r&&(A.TgZ(0,"th",43),A._uU(1," Total mSatoshis "),A.qZA())}function ba(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.msatoshi_total)," ")}}function x0(r,y){1&r&&(A.TgZ(0,"th",43),A._uU(1," Spendable Satoshi "),A.qZA())}function F0(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.spendable_msatoshi)," ")}}function Y0(r,y){1&r&&(A.TgZ(0,"th",45),A._uU(1,"Balance Score "),A.qZA())}function Ga(r,y){if(1&r&&(A.TgZ(0,"td",46)(1,"div",47)(2,"mat-hint",48),A._uU(3),A.ALo(4,"number"),A.qZA()(),A._UZ(5,"mat-progress-bar",49),A.qZA()),2&r){const t=y.$implicit;A.xp6(3),A.Oqu(A.lcZ(4,2,t.balancedness||0)),A.xp6(2),A.s9C("value",t.msatoshi_to_us&&t.msatoshi_to_us>0?+t.msatoshi_to_us/(+t.msatoshi_to_us+ +t.msatoshi_to_them)*100:0)}}function Si(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"th",50)(1,"div",51)(2,"mat-select",52),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",53),A.NdJ("click",function(){return A.CHM(t),A.oxw().onChannelUpdate("all")}),A._uU(5,"Update Fee Policy"),A.qZA(),A.TgZ(6,"mat-option",53),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(7,"Download CSV"),A.qZA()()()()}}function Ha(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",54)(1,"div",55)(2,"mat-select",56),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",53),A.NdJ("click",function(L){const gt=A.CHM(t).$implicit;return A.oxw().onChannelClick(gt,L)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",53),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onViewRemotePolicy(vA)}),A._uU(7,"View Remote Fee"),A.qZA(),A.TgZ(8,"mat-option",53),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onChannelUpdate(vA)}),A._uU(9,"Update Fee Policy"),A.qZA(),A.TgZ(10,"mat-option",53),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onChannelClose(vA)}),A._uU(11,"Close Channel"),A.qZA()()()()}}function T0(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No peers connected. Add a peer in order to open a channel."),A.qZA())}function S0(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No channel available."),A.qZA())}function N0(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting channels..."),A.qZA())}function U0(r,y){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function P0(r,y){if(1&r&&(A.TgZ(0,"td",57),A.YNc(1,T0,2,0,"p",58),A.YNc(2,S0,2,0,"p",58),A.YNc(3,N0,2,0,"p",58),A.YNc(4,U0,2,1,"p",58),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",t.numPeers<1&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",t.numPeers>0&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const R0=function(r){return{"display-none":r}};function z0(r,y){if(1&r&&A._UZ(0,"tr",59),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,R0,t.numPeers>0&&(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function Ni(r,y){1&r&&A._UZ(0,"tr",60)}function L0(r,y){1&r&&A._UZ(0,"tr",61)}const Zi=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},Ja=function(){return["no_peer"]};let b0=(()=>{class r{constructor(t,s,L,vA,gt,ae){var un,Qe,An,ia;this.logger=t,this.store=s,this.rtlEffects=L,this.clnEffects=vA,this.commonService=gt,this.router=ae,this.faEye=h.Mdf,this.faEyeSlash=h.Aq,this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=a.vn,this.selFilter="",this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","msatoshi_to_us","msatoshi_to_them","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["short_channel_id","alias","msatoshi_to_us","msatoshi_to_them","actions"]):(this.flgSticky=!0,this.displayedColumns=["short_channel_id","alias","msatoshi_to_us","msatoshi_to_them","balancedness","actions"]),this.selFilter=(null===(Qe=null===(un=this.router.getCurrentNavigation().extras)||void 0===un?void 0:un.state)||void 0===Qe?void 0:Qe.filter)?null===(ia=null===(An=this.router.getCurrentNavigation().extras)||void 0===An?void 0:An.state)||void 0===ia?void 0:ia.filter:""}ngOnInit(){this.store.select(g.jK).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.information=t.information,this.numPeers=t.numPeers,this.totalBalance=t.balance.totalBalance,this.logger.info(t)}),this.store.select(g.ZW).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.channelsData=t.activeChannels,this.channelsData.length>0&&this.loadChannelsTable(this.channelsData),this.logger.info(t)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadChannelsTable(this.channelsData)}onViewRemotePolicy(t){this.store.dispatch((0,ht.$A)({payload:{uiMessage:a.m6.GET_REMOTE_POLICY,shortChannelID:t.short_channel_id,showError:!0}})),this.clnEffects.setLookupCL.pipe((0,UA.q)(1)).subscribe(s=>{if(0===s.length)return!1;let L={};L=s[0].source!==this.information.id?s[0]:s[1];const vA=[[{key:"base_fee_millisatoshi",value:L.base_fee_millisatoshi,title:"Base Fees (mSats)",width:34,type:a.Gi.NUMBER},{key:"fee_per_millionth",value:L.fee_per_millionth,title:"Fee/Millionth",width:33,type:a.Gi.NUMBER},{key:"delay",value:L.delay,title:"Delay",width:33,type:a.Gi.NUMBER}]],gt="Remote policy for Channel: "+(t.alias||t.short_channel_id?t.alias&&t.short_channel_id?t.alias+" ("+t.short_channel_id+")":t.alias?t.alias:t.short_channel_id:t.channel_id);setTimeout(()=>{this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Remote Channel Policy",titleMessage:gt,message:vA}}}))},0)})}onChannelUpdate(t){"all"!==t&&"ONCHAIN"===t.state||("all"===t?(this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update All",message:[],titleMessage:"Update fee policy for all channels",flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSats)",inputType:"number",inputValue:1e3,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:"number",inputValue:1,min:1,width:48,hintFunction:this.percentHintFunction}]}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[1])).subscribe(L=>{L&&this.store.dispatch((0,ht.pW)({payload:{baseFeeMsat:L[0].inputValue,feeRate:L[1].inputValue,channelId:"all"}}))})):(this.myChanPolicy={fee_base_msat:0,fee_rate_milli_msat:0},this.store.dispatch((0,ht.$A)({payload:{uiMessage:a.m6.GET_CHAN_POLICY,shortChannelID:t.short_channel_id,showError:!1}})),this.clnEffects.setLookupCL.pipe((0,UA.q)(1)).subscribe(s=>{this.myChanPolicy=s.length>0&&s[0].source===this.information.id?{fee_base_msat:s[0].base_fee_millisatoshi,fee_rate_milli_msat:s[0].fee_per_millionth}:s.length>1&&s[1].source===this.information.id?{fee_base_msat:s[1].base_fee_millisatoshi,fee_rate_milli_msat:s[1].fee_per_millionth}:{fee_base_msat:0,fee_rate_milli_msat:0},this.logger.info(this.myChanPolicy);const L="Update fee policy for Channel: "+(t.alias||t.short_channel_id?t.alias&&t.short_channel_id?t.alias+" ("+t.short_channel_id+")":t.alias?t.alias:t.short_channel_id:t.channel_id),vA=[];setTimeout(()=>{this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update",message:vA,titleMessage:L,flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSats)",inputType:"number",inputValue:""===this.myChanPolicy.fee_base_msat?0:this.myChanPolicy.fee_base_msat,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:"number",inputValue:this.myChanPolicy.fee_rate_milli_msat,min:1,width:48,hintFunction:this.percentHintFunction}]}}}))},0)}),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[2])).subscribe(s=>{s&&this.store.dispatch((0,ht.pW)({payload:{baseFeeMsat:s[0].inputValue,feeRate:s[1].inputValue,channelId:t.channel_id}}))})),this.applyFilter())}percentHintFunction(t){return(t/1e4).toString()+"%"}onChannelClose(t){this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Close Channel",titleMessage:"Closing channel: "+(t.alias||t.short_channel_id?t.alias&&t.short_channel_id?t.alias+" ("+t.short_channel_id+")":t.alias?t.alias:t.short_channel_id:t.channel_id),noBtnText:"Cancel",yesBtnText:"Close Channel"}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[3])).subscribe(s=>{s&&this.store.dispatch((0,ht.BL)({payload:{id:t.id,channelId:t.channel_id,force:!1}}))})}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}onChannelClick(t,s){this.store.dispatch((0,kA.qR)({payload:{data:{channel:t,showCopy:!0,component:Fi}}}))}loadChannelsTable(t){t.sort((s,L)=>s.active===L.active?0:L.active?1:-1),this.channels=new yA.by([...t]),this.channels.filterPredicate=(s,L)=>((s.connected?"connected":"disconnected")+(s.channel_id?s.channel_id.toLowerCase():"")+(s.short_channel_id?s.short_channel_id.toLowerCase():"")+(s.id?s.id.toLowerCase():"")+(s.alias?s.alias.toLowerCase():"")+(s.private?"private":"public")+(s.state?s.state.toLowerCase():"")+(s.funding_txid?s.funding_txid.toLowerCase():"")+(s.msatoshi_to_us?s.msatoshi_to_us:"")+(s.msatoshi_total?s.msatoshi_total:"")+(s.their_channel_reserve_satoshis?s.their_channel_reserve_satoshis:"")+(s.our_channel_reserve_satoshis?s.our_channel_reserve_satoshis:"")+(s.spendable_msatoshi?s.spendable_msatoshi:"")).includes(L),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(s,L)=>s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]:null,this.channels.paginator=this.paginator,this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Open-channels")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(At.V),A.Y36(In.J),A.Y36(e.v),A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-open-table"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(WA.NW,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.paginator=L.first)}},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Channels")}])],decls:48,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["mode","indeterminate",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","short_channel_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","connected"],["matColumnDef","private"],["matColumnDef","state"],["matColumnDef","msatoshi_to_us"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi_to_them"],["matColumnDef","msatoshi_total"],["matColumnDef","spendable_msatoshi"],["matColumnDef","balancedness"],["mat-header-cell","","mat-sort-header","","class","pl-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-1",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pl-1",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],[1,"ellipsis-child"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-3"],["mat-cell","",1,"pl-3"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell","",1,"pl-1"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-1"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,s){1&t&&(A.TgZ(0,"div",0)(1,"div",1),A._UZ(2,"div",2),A.TgZ(3,"mat-form-field",3)(4,"input",4),A.NdJ("keyup",function(){return s.applyFilter()})("ngModelChange",function(vA){return s.selFilter=vA}),A.qZA()()(),A.YNc(5,Ra,1,0,"mat-progress-bar",5),A.TgZ(6,"div",6)(7,"table",7,8),A.ynx(9,9),A.YNc(10,Yi,2,0,"th",10),A.YNc(11,lr,6,6,"td",11),A.BQk(),A.ynx(12,12),A.YNc(13,cr,2,0,"th",10),A.YNc(14,d0,4,4,"td",11),A.BQk(),A.ynx(15,13),A.YNc(16,M0,2,0,"th",10),A.YNc(17,p0,2,1,"td",11),A.BQk(),A.ynx(18,14),A.YNc(19,Ti,2,0,"th",10),A.YNc(20,I0,2,1,"td",11),A.BQk(),A.ynx(21,15),A.YNc(22,za,2,0,"th",10),A.YNc(23,m0,2,1,"td",11),A.BQk(),A.ynx(24,16),A.YNc(25,v0,2,0,"th",17),A.YNc(26,de,4,4,"td",11),A.BQk(),A.ynx(27,18),A.YNc(28,La,2,0,"th",17),A.YNc(29,D0,4,4,"td",11),A.BQk(),A.ynx(30,19),A.YNc(31,y0,2,0,"th",17),A.YNc(32,ba,4,3,"td",11),A.BQk(),A.ynx(33,20),A.YNc(34,x0,2,0,"th",17),A.YNc(35,F0,4,3,"td",11),A.BQk(),A.ynx(36,21),A.YNc(37,Y0,2,0,"th",22),A.YNc(38,Ga,6,4,"td",23),A.BQk(),A.ynx(39,24),A.YNc(40,Si,8,0,"th",25),A.YNc(41,Ha,12,0,"td",26),A.BQk(),A.ynx(42,27),A.YNc(43,P0,5,4,"td",28),A.BQk(),A.YNc(44,z0,1,3,"tr",29),A.YNc(45,Ni,1,0,"tr",30),A.YNc(46,L0,1,0,"tr",31),A.qZA()(),A._UZ(47,"mat-paginator",32),A.qZA()),2&t&&(A.xp6(4),A.Q6J("ngModel",s.selFilter),A.xp6(1),A.Q6J("ngIf",s.apiCallStatus.status===s.apiCallStatusEnum.INITIATED),A.xp6(2),A.Q6J("dataSource",s.channels)("ngClass",A.VKq(11,Zi,""!==s.errorMessage)),A.xp6(37),A.Q6J("matFooterRowDef",A.DdM(13,Ja)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.Wh,Ct.yH,Z.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,Et.O5,Y.pW,lA.$V,yA.BZ,rt.YE,Et.mk,m.oO,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,Et.PC,m.Zl,aA.gM,f.BN,Z.bx,R.gD,R.$L,QA.ey,yA.mD,yA.yh,yA.Ke,yA.Q2,yA.as,yA.XQ,yA.nj,yA.Gk,WA.NW],pipes:[Et.JJ],styles:[".mat-column-short_channel_id[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-short_channel_id[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-alias[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}.mat-column-alias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:3rem;flex:0 0 22%;width:22%}.mat-column-state[_ngcontent-%COMP%], .mat-column-msatoshi_to_us[_ngcontent-%COMP%], .mat-column-msatoshi_to_them[_ngcontent-%COMP%]{flex:1 1 15%;width:15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media only screen and (max-width: 37.5em){.mat-column-state[_ngcontent-%COMP%], .mat-column-msatoshi_to_us[_ngcontent-%COMP%], .mat-column-msatoshi_to_them[_ngcontent-%COMP%]{white-space:unset}}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 100%}@media only screen and (max-width: 37.5em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 80%}}"]}),r})();const qr=["outputIdx"];function wn(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Output Index required."),A.qZA())}function Ui(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Invalid index value."),A.qZA())}function Oa(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fees is required."),A.qZA())}function G0(r,y){if(1&r&&(A.TgZ(0,"div",27),A._UZ(1,"fa-icon",13),A.TgZ(2,"span"),A._uU(3),A.qZA()()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(2),A.Oqu(t.bumpFeeError)}}let H0=(()=>{class r{constructor(t,s,L,vA,gt,ae){this.actions=t,this.dialogRef=s,this.data=L,this.store=vA,this.logger=gt,this.snackBar=ae,this.newAddress="",this.fees=null,this.outputIndex=null,this.faCopy=h.kZ_,this.faInfoCircle=h.sqG,this.faExclamationTriangle=h.eHv,this.bumpFeeError="",this.unSubs=[new c.x,new c.x]}set payReq(t){t&&(this.outputIdx=t)}ngOnInit(){this.bumpFeeChannel=this.data.channel}onBumpFee(){if(!this.outputIndex&&0!==this.outputIndex||!this.fees)return!0;this.bumpFeeError="",this.store.dispatch((0,ht._E)({payload:a._t[0]})),this.actions.pipe((0,JA.h)(t=>t.type===a.AB.SET_NEW_ADDRESS_CLN),(0,UA.q)(1)).subscribe(t=>{this.store.dispatch((0,ht.Wi)({payload:{address:t.payload,satoshis:"all",feeRate:this.fees,utxos:[this.bumpFeeChannel.funding_txid+":"+this.outputIndex.toString()]}}))}),this.actions.pipe((0,JA.h)(t=>t.type===a.AB.SET_CHANNEL_TRANSACTION_RES_CLN),(0,UA.q)(1)).subscribe(t=>{this.store.dispatch((0,kA.jW)({payload:"Successfully bumped the fee. Use the block explorer to verify transaction."})),this.dialogRef.close()}),this.actions.pipe((0,JA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN),(0,i.R)(this.unSubs[0])).subscribe(t=>{t.payload.status===a.Bn.ERROR&&("SetChannelTransaction"===t.payload.action||"GenerateNewAddress"===t.payload.action)&&(this.logger.error(t.payload.message),this.bumpFeeError=t.payload.message)})}onCopyID(t){this.snackBar.open("Transaction ID copied.")}resetData(){this.bumpFeeError="",this.fees=null,this.outputIndex=null,this.outputIdx.control.setErrors(null)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(C.eX),A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(u.yh),A.Y36(E.mQ),A.Y36(Tr.ux))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-bump-fee"]],viewQuery:function(t,s){if(1&t&&A.Gf(qr,5),2&t){let L;A.iGM(L=A.CRH())&&(s.payReq=L.first)}},decls:47,vars:15,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","mb-1","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],["matSuffix","","rtlClipboard","","matTooltip","Copy transaction ID",1,"ml-1",3,"icon","payload","copied"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],[1,"pl-1"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxFlex","49"],["autoFocus","","matInput","","placeholder","Output Index","type","number","tabindex","1","required","","name","outputIdx",3,"ngModel","step","min","ngModelChange"],["outputIdx","ngModel"],[4,"ngIf"],["matInput","","placeholder","Fees (Sats/vByte)","type","number","name","fees","required","","tabindex","4",3,"ngModel","step","min","ngModelChange"],["fee","ngModel"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","tabindex","5","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit","tabindex","6",3,"click"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(t,s){if(1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5,"Bump Fee"),A.qZA()(),A.TgZ(6,"button",5),A.NdJ("click",function(){return s.onClose()}),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"form",7)(10,"div",8)(11,"p",9),A._uU(12),A.TgZ(13,"fa-icon",10),A.NdJ("copied",function(vA){return s.onCopyID(vA)}),A.qZA()(),A.TgZ(14,"div",11)(15,"div",12),A._UZ(16,"fa-icon",13),A.TgZ(17,"span",14),A._uU(18,"Bumping fee on pending open channels is an advanced feature, attempt it only if you are familiar with the functionality of Bitcoin transactions. "),A.TgZ(19,"div"),A._uU(20,"Before attempting fee bump ensure the following:"),A.qZA(),A.TgZ(21,"div",15),A._uU(22,"1: Use a Bitcoin block explorer to ensure that channel opening transaction is not confirmed."),A.qZA(),A.TgZ(23,"div",15),A._uU(24,"2: The channel opening transaction must have a sizable change output, which can be spent further. The fee cannot be bumped without the change output."),A.qZA(),A.TgZ(25,"div",15),A._uU(26,"3: Find the index value of the change output via a block explorer."),A.qZA(),A.TgZ(27,"div",15),A._uU(28,"4: Enter the index value of the change output in the form below and the desired fee rate."),A.qZA(),A.TgZ(29,"div",15),A._uU(30,"5: Upon successful fee bump, use your block explorer to track the child transaction in the mempool, which should be linked with the change output transaction."),A.qZA()()(),A.TgZ(31,"div",16)(32,"mat-form-field",17)(33,"input",18,19),A.NdJ("ngModelChange",function(vA){return s.outputIndex=vA}),A.qZA(),A.YNc(35,wn,2,0,"mat-error",20),A.YNc(36,Ui,2,0,"mat-error",20),A.qZA(),A.TgZ(37,"mat-form-field",17)(38,"input",21,22),A.NdJ("ngModelChange",function(vA){return s.fees=vA}),A.qZA(),A.YNc(40,Oa,2,0,"mat-error",20),A.qZA()(),A.YNc(41,G0,4,2,"div",23),A.qZA()(),A.TgZ(42,"div",24)(43,"button",25),A.NdJ("click",function(){return s.resetData()}),A._uU(44,"Clear"),A.qZA(),A.TgZ(45,"button",26),A.NdJ("click",function(){return s.onBumpFee()}),A._uU(46),A.qZA()()()()()()),2&t){const L=A.MAs(34);A.xp6(12),A.hij("Bump fee for transaction id: ",null==s.bumpFeeChannel?null:s.bumpFeeChannel.funding_txid," "),A.xp6(1),A.Q6J("icon",s.faCopy)("payload",null==s.bumpFeeChannel?null:s.bumpFeeChannel.funding_txid),A.xp6(3),A.Q6J("icon",s.faInfoCircle),A.xp6(17),A.Q6J("ngModel",s.outputIndex)("step",1)("min",0),A.xp6(2),A.Q6J("ngIf",null==L.errors?null:L.errors.required),A.xp6(1),A.Q6J("ngIf",null==L.errors?null:L.errors.pendingChannelOutputIndex),A.xp6(2),A.Q6J("ngModel",s.fees)("step",1)("min",0),A.xp6(2),A.Q6J("ngIf",!s.fees),A.xp6(1),A.Q6J("ngIf",""!==s.bumpFeeError),A.xp6(5),A.Oqu(""!==s.bumpFeeError?"Retry Bump Fee":"Bump Fee")}},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Q.lW,w.dn,OA._Y,OA.JL,OA.F,f.BN,Z.R9,Kr.y,aA.gM,Z.KE,Yt.Nt,OA.wV,OA.qQ,OA.Fj,k.q,H.h,OA.Q7,OA.JJ,OA.On,Et.O5,Z.TO],styles:[""]}),r})();function J0(r,y){1&r&&A._UZ(0,"mat-progress-bar",30)}function O0(r,y){1&r&&(A.TgZ(0,"th",31),A._uU(1," Short Channel ID "),A.qZA())}function k0(r,y){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.short_channel_id,"")}}function j0(r,y){1&r&&(A.TgZ(0,"th",31),A._uU(1," Alias "),A.qZA())}function K0(r,y){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null==t?null:t.alias)}}function V0(r,y){1&r&&(A.TgZ(0,"th",31),A._uU(1," Connected "),A.qZA())}function ka(r,y){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.connected?"Connected":"Disconnected"," ")}}function W0(r,y){1&r&&(A.TgZ(0,"th",31),A._uU(1," Private "),A.qZA())}function Z0(r,y){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.private?"Private":"Public"," ")}}function X0(r,y){1&r&&(A.TgZ(0,"th",31),A._uU(1," State "),A.qZA())}const gr=function(r){return{"max-width":r}};function q0(r,y){if(1&r&&(A.TgZ(0,"td",33),A._uU(1),A.qZA()),2&r){const t=y.$implicit,s=A.oxw();A.Q6J("ngStyle",A.VKq(2,gr,s.screenSize===s.screenSizeEnum.XS?"10rem":"")),A.xp6(1),A.hij(" ",s.CLNChannelPendingState[null==t?null:t.state]," ")}}function Pi(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1," mSatoshi To Us "),A.qZA())}function _0(r,y){if(1&r&&(A.TgZ(0,"td",32)(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.msatoshi_to_us)," ")}}function $0(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1," Total (Sats) "),A.qZA())}function Al(r,y){if(1&r&&(A.TgZ(0,"td",32)(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,(null==t?null:t.msatoshi_total)/1e3)," ")}}function ja(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1," Spendable Satoshi "),A.qZA())}function tl(r,y){if(1&r&&(A.TgZ(0,"td",32)(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.spendable_msatoshi)," ")}}function el(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"th",36)(1,"div",37)(2,"mat-select",38),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",39),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function nl(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",39),A.NdJ("click",function(){A.CHM(t);const L=A.oxw().$implicit;return A.oxw().onChannelClose(L)}),A._uU(1,"Close Channel"),A.qZA()}}function rl(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",39),A.NdJ("click",function(){A.CHM(t);const L=A.oxw().$implicit;return A.oxw().onBumpFee(L)}),A._uU(1,"Bump Fee"),A.qZA()}}function Ka(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",40)(1,"div",37)(2,"mat-select",41),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",39),A.NdJ("click",function(L){const gt=A.CHM(t).$implicit;return A.oxw().onChannelClick(gt,L)}),A._uU(5,"View Info"),A.qZA(),A.YNc(6,nl,2,0,"mat-option",42),A.YNc(7,rl,2,0,"mat-option",42),A.qZA()()()}if(2&r){const t=y.$implicit,s=A.oxw();A.xp6(6),A.Q6J("ngIf",s.isCompatibleVersion&&("CHANNELD_SHUTTING_DOWN"===t.state||"CLOSINGD_SIGEXCHANGE"===t.state||!t.connected&&"CHANNELD_NORMAL"===t.state)),A.xp6(1),A.Q6J("ngIf","CHANNELD_AWAITING_LOCKIN"===t.state)}}function il(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No peers connected. Add a peer in order to open a channel."),A.qZA())}function Va(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No pending/inactive channel available."),A.qZA())}function Wa(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting pending/inactive channels..."),A.qZA())}function Za(r,y){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function al(r,y){if(1&r&&(A.TgZ(0,"td",43),A.YNc(1,il,2,0,"p",44),A.YNc(2,Va,2,0,"p",44),A.YNc(3,Wa,2,0,"p",44),A.YNc(4,Za,2,1,"p",44),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",t.numPeers<1&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",t.numPeers>0&&(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.channels&&t.channels.data)||(null==t.channels||null==t.channels.data?null:t.channels.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const ol=function(r){return{"display-none":r}};function sl(r,y){if(1&r&&A._UZ(0,"tr",45),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,ol,t.numPeers>0&&(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function ll(r,y){1&r&&A._UZ(0,"tr",46)}function cl(r,y){1&r&&A._UZ(0,"tr",47)}const Xa=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},gl=function(){return["no_peer"]};let Bl=(()=>{class r{constructor(t,s,L,vA){this.logger=t,this.store=s,this.rtlEffects=L,this.commonService=vA,this.isCompatibleVersion=!1,this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=a.vn,this.selFilter="",this.flgSticky=!1,this.CLNChannelPendingState=a.Zs,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","state","actions"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","connected","state","actions"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","connected","state","msatoshi_total","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","connected","state","msatoshi_total","actions"])}ngOnInit(){this.store.select(g.jK).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.information=t.information,this.information.api_version&&(this.isCompatibleVersion=this.commonService.isVersionCompatible(this.information.api_version,"0.4.2")),this.numPeers=t.numPeers,this.totalBalance=t.balance.totalBalance,this.logger.info(t)}),this.store.select(g.ZW).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.channelsData=[...t.pendingChannels,...t.inactiveChannels],this.channelsData=this.channelsData.sort((s,L)=>this.CLNChannelPendingState[s.state]>=this.CLNChannelPendingState[L.state]?1:-1),this.channelsData&&this.channelsData.length>0&&this.loadChannelsTable(this.channelsData),this.logger.info(t)})}ngAfterViewInit(){this.channelsData&&this.channelsData.length>0&&this.loadChannelsTable(this.channelsData)}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}onBumpFee(t){this.store.dispatch((0,kA.qR)({payload:{data:{channel:t,component:H0}}}))}onChannelClick(t,s){this.store.dispatch((0,kA.qR)({payload:{data:{channel:t,showCopy:!0,component:Fi}}}))}onChannelClose(t){this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Force Close Channel",titleMessage:"Force closing channel: "+(t.alias||t.short_channel_id?t.alias&&t.short_channel_id?t.alias+" ("+t.short_channel_id+")":t.alias?t.alias:t.short_channel_id:t.channel_id),noBtnText:"Cancel",yesBtnText:"Force Close"}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[2])).subscribe(s=>{s&&this.store.dispatch((0,ht.BL)({payload:{id:t.id,channelId:t.channel_id,force:!0}}))})}loadChannelsTable(t){t.sort((s,L)=>s.active===L.active?0:L.active?1:-1),this.channels=new yA.by([...t]),this.channels.filterPredicate=(s,L)=>((s.connected?"connected":"disconnected")+(s.channel_id?s.channel_id.toLowerCase():"")+(s.short_channel_id?s.short_channel_id.toLowerCase():"")+(s.id?s.id.toLowerCase():"")+(s.alias?s.alias.toLowerCase():"")+(s.private?"private":"public")+(s.state&&this.CLNChannelPendingState[s.state]?this.CLNChannelPendingState[s.state].toLowerCase():"")+(s.funding_txid?s.funding_txid.toLowerCase():"")+(s.msatoshi_to_us?s.msatoshi_to_us:"")+(s.msatoshi_total?s.msatoshi_total:"")+(s.their_channel_reserve_satoshis?s.their_channel_reserve_satoshis:"")+(s.our_channel_reserve_satoshis?s.our_channel_reserve_satoshis:"")+(s.spendable_msatoshi?s.spendable_msatoshi:"")).includes(L),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(s,L)=>"state"===L?this.CLNChannelPendingState[s.state]:s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]:null,this.channels.paginator=this.paginator,this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Pending-inactive-channels")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(At.V),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-channel-pending-table"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(WA.NW,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.paginator=L.first)}},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Channels")}])],decls:42,vars:14,consts:[["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["mode","indeterminate",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","short_channel_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","connected"],["matColumnDef","private"],["matColumnDef","state"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","msatoshi_to_us"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi_total"],["matColumnDef","spendable_msatoshi"],["matColumnDef","actions"],["mat-header-cell","","class","pr-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","pr-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"pr-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pr-3"],["placeholder","Actions","tabindex","4",1,"mr-0"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,s){1&t&&(A.TgZ(0,"div",0)(1,"div",1),A._UZ(2,"div",2),A.TgZ(3,"mat-form-field",3)(4,"input",4),A.NdJ("keyup",function(){return s.applyFilter()})("ngModelChange",function(vA){return s.selFilter=vA}),A.qZA()()(),A.YNc(5,J0,1,0,"mat-progress-bar",5),A.TgZ(6,"div",6)(7,"table",7,8),A.ynx(9,9),A.YNc(10,O0,2,0,"th",10),A.YNc(11,k0,2,1,"td",11),A.BQk(),A.ynx(12,12),A.YNc(13,j0,2,0,"th",10),A.YNc(14,K0,2,1,"td",11),A.BQk(),A.ynx(15,13),A.YNc(16,V0,2,0,"th",10),A.YNc(17,ka,2,1,"td",11),A.BQk(),A.ynx(18,14),A.YNc(19,W0,2,0,"th",10),A.YNc(20,Z0,2,1,"td",11),A.BQk(),A.ynx(21,15),A.YNc(22,X0,2,0,"th",10),A.YNc(23,q0,2,4,"td",16),A.BQk(),A.ynx(24,17),A.YNc(25,Pi,2,0,"th",18),A.YNc(26,_0,4,3,"td",11),A.BQk(),A.ynx(27,19),A.YNc(28,$0,2,0,"th",18),A.YNc(29,Al,4,3,"td",11),A.BQk(),A.ynx(30,20),A.YNc(31,ja,2,0,"th",18),A.YNc(32,tl,4,3,"td",11),A.BQk(),A.ynx(33,21),A.YNc(34,el,6,0,"th",22),A.YNc(35,Ka,8,2,"td",23),A.BQk(),A.ynx(36,24),A.YNc(37,al,5,4,"td",25),A.BQk(),A.YNc(38,sl,1,3,"tr",26),A.YNc(39,ll,1,0,"tr",27),A.YNc(40,cl,1,0,"tr",28),A.qZA()(),A._UZ(41,"mat-paginator",29),A.qZA()),2&t&&(A.xp6(4),A.Q6J("ngModel",s.selFilter),A.xp6(1),A.Q6J("ngIf",s.apiCallStatus.status===s.apiCallStatusEnum.INITIATED),A.xp6(2),A.Q6J("dataSource",s.channels)("ngClass",A.VKq(11,Xa,""!==s.errorMessage)),A.xp6(31),A.Q6J("matFooterRowDef",A.DdM(13,gl)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.Wh,Ct.yH,Z.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,Et.O5,Y.pW,lA.$V,yA.BZ,rt.YE,Et.mk,m.oO,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,Et.PC,m.Zl,R.gD,R.$L,QA.ey,yA.mD,yA.yh,yA.Ke,yA.Q2,yA.as,yA.XQ,yA.nj,yA.Gk,WA.NW],pipes:[Et.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-state[_ngcontent-%COMP%]{flex:1 1 15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();const ul=["peersForm"],fl=["stepper"];function hl(r,y){if(1&r&&A._uU(0),2&r){const t=A.oxw();A.Oqu(t.peerFormLabel)}}function El(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Address is required."),A.qZA())}function qa(r,y){if(1&r&&(A.TgZ(0,"div",40),A._UZ(1,"fa-icon",41),A.TgZ(2,"span"),A._uU(3),A.qZA()()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(2),A.Oqu(t.peerConnectionError)}}function _a(r,y){if(1&r&&A._uU(0),2&r){const t=A.oxw();A.Oqu(t.channelFormLabel)}}function wl(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function Cl(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount must be a positive number."),A.qZA())}function Ql(r,y){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.hij("Amount must be less than or equal to ",t.totalBalance,".")}}function on(r,y){if(1&r&&(A.TgZ(0,"mat-option",42),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function Dr(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function dl(r,y){if(1&r&&(A.TgZ(0,"mat-form-field",43),A._UZ(1,"input",44),A.YNc(2,Dr,2,0,"mat-error",14),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("step",.1)("min",0),A.xp6(1),A.Q6J("ngIf","customperkb"===t.channelFormGroup.controls.selFeeRate.value&&!t.channelFormGroup.controls.flgMinConf.value&&!t.channelFormGroup.controls.customFeeRate.value)}}function $a(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function Ml(r,y){if(1&r&&(A.TgZ(0,"div",40),A._UZ(1,"fa-icon",41),A.TgZ(2,"span"),A._uU(3),A.qZA()()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(2),A.Oqu(t.channelConnectionError)}}const pl=function(r,y){return{"mr-6":r,"mr-2":y}};let Ao=(()=>{class r{constructor(t,s,L,vA,gt,ae,un){this.dialogRef=t,this.data=s,this.store=L,this.formBuilder=vA,this.actions=gt,this.logger=ae,this.commonService=un,this.faExclamationTriangle=h.eHv,this.peerAddress="",this.totalBalance=0,this.feeRateTypes=a.vn,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.screenSize="",this.screenSizeEnum=a.cu,this.unSubs=[new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.totalBalance=this.data.message.balance,this.peerAddress=this.data.message.peer&&this.data.message.peer.id&&this.data.message.peer.netaddr?this.data.message.peer.id+"@"+this.data.message.peer.netaddr:this.data.message.peer&&this.data.message.peer.id&&!this.data.message.peer.netaddr?this.data.message.peer.id:"",this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[OA.kI.required]],peerAddress:[this.peerAddress,[OA.kI.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[OA.kI.required,OA.kI.min(1),OA.kI.max(this.totalBalance)]],isPrivate:[!1],selFeeRate:[null],customFeeRate:[null],flgMinConf:[!1],minConfValue:[{value:null,disabled:!0}],hiddenAmount:["",[OA.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.channelFormGroup.controls.flgMinConf.valueChanges.pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{t?(this.channelFormGroup.controls.selFeeRate.setValue(null),this.channelFormGroup.controls.selFeeRate.disable(),this.channelFormGroup.controls.customFeeRate.setValue(null),this.channelFormGroup.controls.minConfValue.reset(),this.channelFormGroup.controls.minConfValue.enable(),this.channelFormGroup.controls.minConfValue.setValidators([OA.kI.required])):(this.channelFormGroup.controls.selFeeRate.enable(),this.channelFormGroup.controls.minConfValue.setValue(null),this.channelFormGroup.controls.minConfValue.disable(),this.channelFormGroup.controls.minConfValue.setValidators(null))}),this.channelFormGroup.controls.selFeeRate.valueChanges.pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.channelFormGroup.controls.customFeeRate.setValue(null),this.channelFormGroup.controls.customFeeRate.reset(),this.channelFormGroup.controls.customFeeRate.setValidators("customperkb"!==t||this.channelFormGroup.controls.flgMinConf.value?null:[OA.kI.required])}),this.actions.pipe((0,i.R)(this.unSubs[2]),(0,JA.h)(t=>t.type===a.AB.NEWLY_ADDED_PEER_CLN||t.type===a.AB.FETCH_CHANNELS_CLN||t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===a.AB.NEWLY_ADDED_PEER_CLN&&(this.logger.info(t.payload),this.flgEditable=!1,this.newlyAddedPeer=t.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),t.type===a.AB.FETCH_CHANNELS_CLN&&this.dialogRef.close(),t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&t.payload.status===a.Bn.ERROR&&("SaveNewPeer"===t.payload.action?this.peerConnectionError=t.payload.message:"SaveNewChannel"===t.payload.action&&(this.channelConnectionError=t.payload.message))})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="",this.store.dispatch((0,ht.El)({payload:{id:this.peerFormGroup.controls.peerAddress.value}}))}onOpenChannel(){if(!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0||this.channelFormGroup.controls.flgMinConf.value&&!this.channelFormGroup.controls.minConfValue.value)return!0;this.channelConnectionError="",this.store.dispatch((0,ht.YX)({payload:{peerId:this.newlyAddedPeer.id,satoshis:this.channelFormGroup.controls.fundingAmount.value,announce:!this.channelFormGroup.controls.isPrivate.value,feeRate:"customperkb"===this.channelFormGroup.controls.selFeeRate.value&&!this.channelFormGroup.controls.flgMinConf.value&&this.channelFormGroup.controls.customFeeRate.value?1e3*this.channelFormGroup.controls.customFeeRate.value+"perkb":this.channelFormGroup.controls.selFeeRate.value,minconf:this.channelFormGroup.controls.flgMinConf.value?this.channelFormGroup.controls.minConfValue.value:null}}))}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(t){switch(t.selectedIndex){case 0:default:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 1:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(this.newlyAddedPeer.alias?this.newlyAddedPeer.alias:this.newlyAddedPeer.id):"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(this.newlyAddedPeer.alias?this.newlyAddedPeer.alias:this.newlyAddedPeer.id):"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)"}t.selectedIndex{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(u.yh),A.Y36(OA.qu),A.Y36(C.eX),A.Y36(E.mQ),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-connect-peer"]],viewQuery:function(t,s){if(1&t&&(A.Gf(ul,5),A.Gf(fl,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.form=L.first),A.iGM(L=A.CRH())&&(s.stepper=L.first)}},decls:57,vars:30,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["autoFocus","","matInput","","placeholder","Lightning Address (pubkey OR pubkey@ip:port)","formControlName","peerAddress","tabindex","1","required",""],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mb-1",3,"formGroup","ngSubmit"],["matStepLabel","","disabled","true"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign.gt-sm","space-between center"],["fxFlex","60","fxLayoutAlign","start end"],["matInput","","autoFocus","","formControlName","fundingAmount","placeholder","Amount","type","number","tabindex","1","required","",3,"step"],["matSuffix",""],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","formControlName","isPrivate","name","isPrivate"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign.gt-sm","space-between center"],["fxFlex","60","fxLayoutAlign","space-between end"],["fxLayoutAlign","start center",3,"fxFlex"],["tabindex","4","placeholder","Fee Rate","formControlName","selFeeRate"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","35","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","2","tabindex","5","color","primary","formControlName","flgMinConf","fxLayoutAlign","stretch start",3,"ngClass"],["fxFlex","98"],["matInput","","formControlName","minConfValue","placeholder","Min Confirmation Blocks","type","number","name","blocks","tabindex","8",3,"step","min","required"],["mat-button","","color","primary","tabindex","8","type","submit"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[3,"value"],["fxFlex","48","fxLayoutAlign","end center"],["matInput","","formControlName","customFeeRate","placeholder","Fee Rate (Sats/vByte)","type","number","name","custFeeRate","tabindex","4",3,"step","min"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5,"Connect to a new peer"),A.qZA()(),A.TgZ(6,"button",5),A.NdJ("click",function(){return s.onClose()}),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"div",7)(10,"mat-vertical-stepper",8,9),A.NdJ("selectionChange",function(vA){return s.stepSelectionChanged(vA)}),A.TgZ(12,"mat-step",10)(13,"form",11),A.YNc(14,hl,1,1,"ng-template",12),A.TgZ(15,"mat-form-field",1),A._UZ(16,"input",13),A.YNc(17,El,2,0,"mat-error",14),A.qZA(),A.YNc(18,qa,4,2,"div",15),A.TgZ(19,"div",16)(20,"button",17),A.NdJ("click",function(){return s.onConnectPeer()}),A._uU(21),A.qZA()()()(),A.TgZ(22,"mat-step",10)(23,"form",18),A.NdJ("ngSubmit",function(){return s.onOpenChannel()}),A.YNc(24,_a,1,1,"ng-template",19),A.TgZ(25,"div",20)(26,"div",21)(27,"mat-form-field",22),A._UZ(28,"input",23),A.TgZ(29,"mat-hint"),A._uU(30),A.qZA(),A.TgZ(31,"span",24),A._uU(32," Sats "),A.qZA(),A.YNc(33,wl,2,0,"mat-error",14),A.YNc(34,Cl,2,0,"mat-error",14),A.YNc(35,Ql,2,1,"mat-error",14),A.qZA(),A.TgZ(36,"div",25)(37,"mat-slide-toggle",26),A._uU(38,"Private Channel"),A.qZA()()(),A.TgZ(39,"div",27)(40,"div",28)(41,"mat-form-field",29)(42,"mat-select",30),A.YNc(43,on,2,2,"mat-option",31),A.qZA()(),A.YNc(44,dl,3,3,"mat-form-field",32),A.qZA(),A.TgZ(45,"div",33),A._UZ(46,"mat-checkbox",34),A.TgZ(47,"mat-form-field",35),A._UZ(48,"input",36),A.YNc(49,$a,2,0,"mat-error",14),A.qZA()()()(),A.YNc(50,Ml,4,2,"div",15),A.TgZ(51,"div",16)(52,"button",37),A._uU(53),A.qZA()()()()(),A.TgZ(54,"div",38)(55,"button",39),A._uU(56),A.qZA()()()()()()),2&t&&(A.xp6(10),A.Q6J("linear",!0),A.xp6(2),A.Q6J("stepControl",s.peerFormGroup)("editable",s.flgEditable),A.xp6(1),A.Q6J("formGroup",s.peerFormGroup),A.xp6(4),A.Q6J("ngIf",null==s.peerFormGroup.controls.peerAddress.errors?null:s.peerFormGroup.controls.peerAddress.errors.required),A.xp6(1),A.Q6J("ngIf",""!==s.peerConnectionError),A.xp6(3),A.Oqu(""!==s.peerConnectionError?"Retry":"Add Peer"),A.xp6(1),A.Q6J("stepControl",s.channelFormGroup)("editable",s.flgEditable),A.xp6(1),A.Q6J("formGroup",s.channelFormGroup),A.xp6(5),A.Q6J("step",1e3),A.xp6(2),A.hij("Remaining Bal: ",s.totalBalance-(s.channelFormGroup.controls.fundingAmount.value?s.channelFormGroup.controls.fundingAmount.value:0),""),A.xp6(3),A.Q6J("ngIf",null==s.channelFormGroup.controls.fundingAmount.errors?null:s.channelFormGroup.controls.fundingAmount.errors.required),A.xp6(1),A.Q6J("ngIf",null==s.channelFormGroup.controls.fundingAmount.errors?null:s.channelFormGroup.controls.fundingAmount.errors.min),A.xp6(1),A.Q6J("ngIf",null==s.channelFormGroup.controls.fundingAmount.errors?null:s.channelFormGroup.controls.fundingAmount.errors.max),A.xp6(6),A.Q6J("fxFlex","customperkb"!==s.channelFormGroup.controls.selFeeRate.value||s.channelFormGroup.controls.flgMinConf.value?"100":"48"),A.xp6(2),A.Q6J("ngForOf",s.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===s.channelFormGroup.controls.selFeeRate.value&&!s.channelFormGroup.controls.flgMinConf.value),A.xp6(2),A.Q6J("ngClass",A.WLB(27,pl,s.screenSize===s.screenSizeEnum.XS||s.screenSize===s.screenSizeEnum.SM,s.screenSize===s.screenSizeEnum.MD||s.screenSize===s.screenSizeEnum.LG||s.screenSize===s.screenSizeEnum.XL)),A.xp6(2),A.Q6J("step",1)("min",0)("required",s.channelFormGroup.controls.flgMinConf.value),A.xp6(1),A.Q6J("ngIf",s.channelFormGroup.controls.flgMinConf.value&&!s.channelFormGroup.controls.minConfValue.value),A.xp6(1),A.Q6J("ngIf",""!==s.channelConnectionError),A.xp6(3),A.Oqu(""!==s.channelConnectionError?"Retry":"Open Channel"),A.xp6(2),A.Q6J("mat-dialog-close",!1),A.xp6(1),A.Oqu(null!=s.newlyAddedPeer&&s.newlyAddedPeer.id?"Do It Later":"Close"))},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Q.lW,w.dn,Mr.Vq,Mr.C0,OA._Y,OA.JL,OA.sg,Mr.VY,Z.KE,Yt.Nt,OA.Fj,H.h,OA.JJ,OA.u,OA.Q7,Et.O5,Z.TO,f.BN,OA.wV,Z.bx,Z.R9,wA.Rr,R.gD,Et.sg,QA.ey,OA.qQ,k.q,HA.oG,Et.mk,m.oO,Mt.ZT],styles:[""]}),r})();function Il(r,y){1&r&&A._UZ(0,"mat-progress-bar",32)}function ml(r,y){1&r&&(A.TgZ(0,"th",33),A._uU(1," Alias "),A.qZA())}const Xi=function(r){return{"mr-0":r}};function vl(r,y){if(1&r&&A._UZ(0,"span",37),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Xi,t.screenSize===t.screenSizeEnum.XS))}}function yr(r,y){if(1&r&&A._UZ(0,"span",38),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Xi,t.screenSize===t.screenSizeEnum.XS))}}const qi=function(r){return{"max-width":r}};function Dl(r,y){if(1&r&&(A.TgZ(0,"td",34),A.YNc(1,vl,1,3,"span",35),A.YNc(2,yr,1,3,"span",36),A._uU(3),A.qZA()),2&r){const t=y.$implicit,s=A.oxw();A.Q6J("ngStyle",A.VKq(4,qi,s.screenSize===s.screenSizeEnum.XS?"10rem":"40rem")),A.xp6(1),A.Q6J("ngIf",null==t?null:t.connected),A.xp6(1),A.Q6J("ngIf",!(null!=t&&t.connected)),A.xp6(1),A.hij(" ",null==t?null:t.alias," ")}}function yl(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1," ID "),A.qZA())}function xl(r,y){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=y.$implicit,s=A.oxw();A.Q6J("ngStyle",A.VKq(2,qi,s.screenSize===s.screenSizeEnum.XS?"10rem":"40rem")),A.xp6(1),A.hij(" ",null==t?null:t.id," ")}}function to(r,y){1&r&&(A.TgZ(0,"th",33),A._uU(1," Network Address "),A.qZA())}function _i(r,y){1&r&&(A.TgZ(0,"span"),A._uU(1,","),A._UZ(2,"br"),A.qZA())}function er(r,y){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.YNc(2,_i,3,0,"span",42),A.qZA()),2&r){const t=y.$implicit,s=y.last;A.xp6(1),A.Oqu(t),A.xp6(1),A.Q6J("ngIf",!s)}}function Fl(r,y){if(1&r&&(A.TgZ(0,"td",34),A.YNc(1,er,3,2,"span",41),A.qZA()),2&r){const t=y.$implicit,s=A.oxw();A.Q6J("ngStyle",A.VKq(2,qi,s.screenSize===s.screenSizeEnum.XS?"10rem":"20rem")),A.xp6(1),A.Q6J("ngForOf",null==t?null:t.netaddr)}}function Yl(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"th",43)(1,"div",44)(2,"mat-select",45),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",46),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function Tl(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",46),A.NdJ("click",function(){A.CHM(t);const L=A.oxw().$implicit;return A.oxw().onPeerDetach(L)}),A._uU(1,"Disconnect"),A.qZA()}}function Sl(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",46),A.NdJ("click",function(){A.CHM(t);const L=A.oxw().$implicit;return A.oxw().onConnectPeer(L)}),A._uU(1,"Reconnect"),A.qZA()}}function Gl(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",47)(1,"div",48)(2,"mat-select",45),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",46),A.NdJ("click",function(L){const gt=A.CHM(t).$implicit;return A.oxw().onPeerClick(gt,L)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",46),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onOpenChannel(vA)}),A._uU(7,"Open Channel"),A.qZA(),A.YNc(8,Tl,2,0,"mat-option",49),A.YNc(9,Sl,2,0,"mat-option",49),A.qZA()()()}if(2&r){const t=y.$implicit;A.xp6(8),A.Q6J("ngIf",t.connected),A.xp6(1),A.Q6J("ngIf",!t.connected)}}function Nl(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No connected peer."),A.qZA())}function Ul(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting peers..."),A.qZA())}function Pl(r,y){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function Rl(r,y){if(1&r&&(A.TgZ(0,"td",50),A.YNc(1,Nl,2,0,"p",42),A.YNc(2,Ul,2,0,"p",42),A.YNc(3,Pl,2,1,"p",42),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers||null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers||null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.peers&&t.peers.data)||(null==t.peers||null==t.peers.data?null:t.peers.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const eo=function(r){return{"display-none":r}};function zl(r,y){if(1&r&&A._UZ(0,"tr",51),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,eo,(null==t.peers?null:t.peers.data)&&(null==t.peers||null==t.peers.data?null:t.peers.data.length)>0))}}function eA(r,y){1&r&&A._UZ(0,"tr",52)}function G(r,y){1&r&&A._UZ(0,"tr",53)}const V=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},M=function(){return["no_peer"]};let x=(()=>{class r{constructor(t,s,L,vA,gt){this.logger=t,this.store=s,this.rtlEffects=L,this.actions=vA,this.commonService=gt,this.faUsers=h.FVb,this.newlyAddedPeer="",this.displayedColumns=[],this.peerAddress="",this.peersData=[],this.information={},this.availableBalance=0,this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","id","netaddr","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","id","netaddr","actions"])}ngOnInit(){this.store.select(g.Ao).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.information=t.information,this.availableBalance=t.balance.totalBalance||0}),this.store.select(g.Wi).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.peersData=t.peers||[],this.peersData.length>0&&this.loadPeersTable(this.peersData),this.logger.info(t)}),this.actions.pipe((0,i.R)(this.unSubs[2]),(0,JA.h)(t=>t.type===a.AB.SET_PEERS_CLN)).subscribe(t=>{this.peerAddress=null})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(t,s){this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Peer Information",showQRName:"Public Key",showQRField:t.id,message:[[{key:"id",value:t.id,title:"Public Key",width:100}],[{key:"netaddr",value:t.netaddr,title:"Address",width:100}],[{key:"alias",value:t.alias,title:"Alias",width:50},{key:"connected",value:t.connected?"True":"False",title:"Connected",width:50}]]}}}))}onConnectPeer(t){this.store.dispatch((0,kA.qR)({payload:{data:{message:{peer:t.id?t:null,information:this.information,balance:this.availableBalance},component:Ao}}}))}onOpenChannel(t){this.store.dispatch((0,kA.qR)({payload:{data:{alertTitle:"Open Channel",message:{peer:t,information:this.information,balance:this.availableBalance},newlyAdded:!1,component:pe}}}))}onPeerDetach(t){this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(t.alias?t.alias:t.id),noBtnText:"Cancel",yesBtnText:"Disconnect"}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[3])).subscribe(L=>{L&&this.store.dispatch((0,ht.z)({payload:{id:t.id,force:!1}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}loadPeersTable(t){this.peers=new yA.by([...t]),this.peers.sortingDataAccessor=(s,L)=>{if("netaddr"===L){if(s.netaddr&&s.netaddr[0]){const vA=s.netaddr[0].toString().split(".");return vA[0]?+vA[0]:s.netaddr[0]}return""}return s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]:null},this.peers.sort=this.sort,this.peers.filterPredicate=(s,L)=>JSON.stringify(s).toLowerCase().includes(L),this.peers.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(At.V),A.Y36(C.eX),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-peers"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(WA.NW,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.paginator=L.first)}},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Peers")}])],decls:36,vars:15,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["peersForm","ngForm"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","30","fxFlex.gt-xs","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["fxLayout","row","fxLayoutAlign","start start"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","class","px-3","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","px-3",3,"ngStyle",4,"matCellDef"],["matColumnDef","netaddr"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["class","dot green","matTooltip","Connected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Disconnected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Connected","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Disconnected","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header","",1,"px-3"],["mat-cell","",1,"px-3",3,"ngStyle"],[4,"ngFor","ngForOf"],[4,"ngIf"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["fxFlex","100","fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,s){1&t&&(A.TgZ(0,"div",0)(1,"form",1,2)(3,"button",3),A.NdJ("click",function(){return s.onConnectPeer({})}),A._uU(4,"Add Peer"),A.qZA()(),A.TgZ(5,"div",4)(6,"div",5)(7,"div",6),A._UZ(8,"fa-icon",7),A.TgZ(9,"span",8),A._uU(10,"Connected Peers"),A.qZA()(),A.TgZ(11,"mat-form-field",9)(12,"div",10)(13,"input",11),A.NdJ("keyup",function(){return s.applyFilter()})("ngModelChange",function(vA){return s.selFilter=vA}),A.qZA()()()(),A.TgZ(14,"div",12),A.YNc(15,Il,1,0,"mat-progress-bar",13),A.TgZ(16,"table",14,15),A.ynx(18,16),A.YNc(19,ml,2,0,"th",17),A.YNc(20,Dl,4,6,"td",18),A.BQk(),A.ynx(21,19),A.YNc(22,yl,2,0,"th",20),A.YNc(23,xl,2,4,"td",21),A.BQk(),A.ynx(24,22),A.YNc(25,to,2,0,"th",17),A.YNc(26,Fl,2,4,"td",18),A.BQk(),A.ynx(27,23),A.YNc(28,Yl,6,0,"th",24),A.YNc(29,Gl,10,2,"td",25),A.BQk(),A.ynx(30,26),A.YNc(31,Rl,4,3,"td",27),A.BQk(),A.YNc(32,zl,1,3,"tr",28),A.YNc(33,eA,1,0,"tr",29),A.YNc(34,G,1,0,"tr",30),A.qZA()(),A._UZ(35,"mat-paginator",31),A.qZA()()),2&t&&(A.xp6(8),A.Q6J("icon",s.faUsers),A.xp6(5),A.Q6J("ngModel",s.selFilter),A.xp6(2),A.Q6J("ngIf",s.apiCallStatus.status===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",s.peers)("ngClass",A.VKq(12,V,""!==s.errorMessage)),A.xp6(16),A.Q6J("matFooterRowDef",A.DdM(14,M)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.yH,Ct.Wh,OA._Y,OA.JL,OA.F,Q.lW,f.BN,Z.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,Et.O5,Y.pW,yA.BZ,rt.YE,Et.mk,m.oO,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,Et.PC,m.Zl,aA.gM,Et.sg,R.gD,R.$L,QA.ey,yA.mD,yA.yh,yA.Ke,yA.Q2,yA.as,yA.XQ,yA.nj,yA.Gk,WA.NW],styles:[".mat-column-alias[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-id[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:2rem}.mat-column-netaddr[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();const P=["queryRoutesForm"];function tA(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Destination pubkey is required."),A.qZA())}function oA(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function sA(r,y){1&r&&A._UZ(0,"mat-progress-bar",38)}function iA(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1," ID "),A.qZA())}function NA(r,y){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.id," ")}}function jA(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1," Alias "),A.qZA())}function lt(r,y){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.alias," ")}}function qA(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1," Channel "),A.qZA())}function Bt(r,y){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.channel," ")}}function pt(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1," Direction "),A.qZA())}function yt(r,y){if(1&r&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.direction," ")}}function Gt(r,y){1&r&&(A.TgZ(0,"th",41),A._uU(1," Delay "),A.qZA())}function $t(r,y){if(1&r&&(A.TgZ(0,"td",40)(1,"span",42),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.delay)," ")}}function qt(r,y){1&r&&(A.TgZ(0,"th",41),A._uU(1," Amount (Sats) "),A.qZA())}function ie(r,y){if(1&r&&(A.TgZ(0,"td",40)(1,"span",42),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,(null==t?null:t.msatoshi)/1e3)," ")}}function Be(r,y){1&r&&(A.TgZ(0,"th",43),A._uU(1," Amount mSat "),A.qZA())}function we(r,y){if(1&r&&(A.TgZ(0,"td",44),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.amount_msat," ")}}function Ce(r,y){1&r&&(A.TgZ(0,"th",45)(1,"span",42),A._uU(2,"Actions"),A.qZA()())}function He(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",44)(1,"button",46),A.NdJ("click",function(L){const gt=A.CHM(t).$implicit;return A.oxw().onHopClick(gt,L)}),A._uU(2,"View Info"),A.qZA()()}}function sn(r,y){1&r&&A._UZ(0,"tr",47)}function Je(r,y){1&r&&A._UZ(0,"tr",48)}const le=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}};let ln=(()=>{class r{constructor(t,s,L){this.store=t,this.clnEffects=s,this.commonService=L,this.destinationPubkey="",this.amount=null,this.flgSticky=!1,this.displayedColumns=[],this.flgLoading=[!1],this.faRoute=h.FpQ,this.faExclamationTriangle=h.eHv,this.screenSize="",this.screenSizeEnum=a.cu,this.unSubs=[new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","msatoshi","actions"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","direction","msatoshi","actions"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","direction","delay","msatoshi","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","channel","direction","delay","msatoshi","actions"])}ngOnInit(){this.clnEffects.setQueryRoutesCL.pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.qrHops=new yA.by([]),this.qrHops.data=[],t.routes&&t.routes.length&&t.routes.length>0?(this.flgLoading[0]=!1,this.qrHops=new yA.by([...t.routes]),this.qrHops.data=t.routes):this.flgLoading[0]="error",this.qrHops.sort=this.sort,this.qrHops.sortingDataAccessor=(s,L)=>s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]:null})}onQueryRoutes(){if(!this.destinationPubkey||!this.amount)return!0;this.flgLoading[0]=!0,this.store.dispatch((0,ht.WO)({payload:{destPubkey:this.destinationPubkey,amount:1e3*this.amount}}))}resetData(){this.destinationPubkey="",this.amount=null,this.flgLoading[0]=!1,this.qrHops.data=[],this.form.resetForm()}onHopClick(t,s){this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Route Information",message:[[{key:"id",value:t.id,title:"ID",width:100,type:a.Gi.STRING}],[{key:"channel",value:t.channel,title:"Channel",width:50,type:a.Gi.STRING},{key:"alias",value:t.alias,title:"Peer Alias",width:50,type:a.Gi.STRING}],[{key:"msatoshi",value:t.msatoshi,title:"mSatoshi",width:50,type:a.Gi.NUMBER},{key:"amount_msat",value:t.amount_msat,title:"Amount mSat",width:50,type:a.Gi.STRING}],[{key:"direction",value:t.direction,title:"Direction",width:50,type:a.Gi.STRING},{key:"delay",value:t.delay,title:"Delay",width:50,type:a.Gi.NUMBER}]]}}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(u.yh),A.Y36(In.J),A.Y36(e.v))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-query-routes"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(P,7)),2&t){let L;A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.form=L.first)}},decls:54,vars:16,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["queryRoutesForm","ngForm"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","69","fxLayoutAlign","start end"],["matInput","","placeholder","Destination Pubkey","name","destinationPubkey","tabindex","1","required","",3,"ngModel","ngModelChange"],["destPubkey","ngModel"],[4,"ngIf"],["fxFlex","29","fxLayoutAlign","start end"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","type","number","required","",3,"ngModel","step","min","ngModelChange"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","row","fxLayoutAlign","start center",1,"page-sub-title-container","mt-2","mb-1"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"table-container","mb-6",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","channel"],["matColumnDef","direction"],["matColumnDef","delay"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi"],["matColumnDef","amount_msat"],["mat-header-cell","","class","pl-4","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","pl-4",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","pl-4 pr-3",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-4"],["mat-cell","",1,"pl-4"],["mat-header-cell","",1,"pl-4","pr-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(t,s){if(1&t){const L=A.EpF();A.TgZ(0,"div",0)(1,"form",1,2),A.NdJ("ngSubmit",function(){return A.CHM(L),A.MAs(2).form.valid&&s.onQueryRoutes()}),A.TgZ(3,"div",3),A._UZ(4,"fa-icon",4),A.TgZ(5,"span"),A._uU(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),A.qZA()(),A.TgZ(7,"mat-form-field",5)(8,"input",6,7),A.NdJ("ngModelChange",function(gt){return s.destinationPubkey=gt}),A.qZA(),A.YNc(10,tA,2,0,"mat-error",8),A.qZA(),A.TgZ(11,"mat-form-field",9)(12,"input",10),A.NdJ("ngModelChange",function(gt){return s.amount=gt}),A.qZA(),A.YNc(13,oA,2,0,"mat-error",8),A.qZA(),A.TgZ(14,"div",11)(15,"button",12),A.NdJ("click",function(){return s.resetData()}),A._uU(16,"Clear"),A.qZA(),A.TgZ(17,"button",13),A._uU(18,"Query Route"),A.qZA()()(),A.TgZ(19,"div",14)(20,"div",15),A._UZ(21,"fa-icon",16),A.TgZ(22,"span",17),A._uU(23,"Transaction Route"),A.qZA()()(),A.TgZ(24,"div",18),A.YNc(25,sA,1,0,"mat-progress-bar",19),A.TgZ(26,"table",20,21),A.ynx(28,22),A.YNc(29,iA,2,0,"th",23),A.YNc(30,NA,2,1,"td",24),A.BQk(),A.ynx(31,25),A.YNc(32,jA,2,0,"th",23),A.YNc(33,lt,2,1,"td",24),A.BQk(),A.ynx(34,26),A.YNc(35,qA,2,0,"th",23),A.YNc(36,Bt,2,1,"td",24),A.BQk(),A.ynx(37,27),A.YNc(38,pt,2,0,"th",23),A.YNc(39,yt,2,1,"td",24),A.BQk(),A.ynx(40,28),A.YNc(41,Gt,2,0,"th",29),A.YNc(42,$t,4,3,"td",24),A.BQk(),A.ynx(43,30),A.YNc(44,qt,2,0,"th",29),A.YNc(45,ie,4,3,"td",24),A.BQk(),A.ynx(46,31),A.YNc(47,Be,2,0,"th",32),A.YNc(48,we,2,1,"td",33),A.BQk(),A.ynx(49,34),A.YNc(50,Ce,3,0,"th",35),A.YNc(51,He,3,0,"td",33),A.BQk(),A.YNc(52,sn,1,0,"tr",36),A.YNc(53,Je,1,0,"tr",37),A.qZA()()()}2&t&&(A.xp6(4),A.Q6J("icon",s.faExclamationTriangle),A.xp6(4),A.Q6J("ngModel",s.destinationPubkey),A.xp6(2),A.Q6J("ngIf",!s.destinationPubkey),A.xp6(2),A.Q6J("ngModel",s.amount)("step",1e3)("min",0),A.xp6(1),A.Q6J("ngIf",!s.amount),A.xp6(8),A.Q6J("icon",s.faRoute),A.xp6(4),A.Q6J("ngIf",!0===s.flgLoading[0]),A.xp6(1),A.Q6J("dataSource",s.qrHops)("ngClass",A.VKq(14,le,"error"===s.flgLoading[0])),A.xp6(26),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns))},directives:[Ct.xw,Ct.yH,OA._Y,OA.JL,OA.F,Ct.Wh,f.BN,Z.KE,Yt.Nt,OA.Fj,OA.Q7,OA.JJ,OA.On,Et.O5,Z.TO,OA.wV,OA.qQ,k.q,Q.lW,lA.$V,Y.pW,yA.BZ,rt.YE,Et.mk,m.oO,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,yA.as,yA.XQ,yA.nj,yA.Gk],pipes:[Et.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{flex:0 0 5%;width:5%}.mat-column-pubkey_alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();function We(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Message is required."),A.qZA())}let Oe=(()=>{class r{constructor(t,s,L){this.dataService=t,this.snackBar=s,this.logger=L,this.message="",this.signedMessage="",this.signature="",this.unSubs=[new c.x,new c.x]}onSign(){if(!this.message||""===this.message)return!0;this.dataService.signMessage(this.message).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.signedMessage=this.message,this.signature=t.zbase})}onMessageChange(){this.signedMessage!==this.message&&(this.signature="")}onCopyField(t){this.snackBar.open("Signature copied."),this.logger.info("Copied Text: "+t)}resetData(){this.message="",this.signature="",this.signedMessage=""}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(PA.D),A.Y36(Tr.ux),A.Y36(E.mQ))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-sign"]],decls:20,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to sign","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","4","rtlClipboard","","type","button",3,"payload","copied"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0)(1,"form",1,2)(3,"mat-form-field",3)(4,"textarea",4),A.NdJ("ngModelChange",function(vA){return s.message=vA})("keyup",function(){return s.onMessageChange()}),A.qZA(),A.YNc(5,We,2,0,"mat-error",5),A.qZA(),A.TgZ(6,"div",6)(7,"button",7),A.NdJ("click",function(){return s.resetData()}),A._uU(8,"Clear Field"),A.qZA(),A.TgZ(9,"button",8),A.NdJ("click",function(){return s.onSign()}),A._uU(10,"Sign"),A.qZA()(),A._UZ(11,"mat-divider",9),A.TgZ(12,"div",10)(13,"p"),A._uU(14,"Generated Signature"),A.qZA()(),A.TgZ(15,"div",11),A._uU(16),A.qZA(),A.TgZ(17,"div",12)(18,"button",13),A.NdJ("copied",function(vA){return s.onCopyField(vA)}),A._uU(19,"Copy Signature"),A.qZA()()()()),2&t&&(A.xp6(4),A.Q6J("ngModel",s.message),A.xp6(1),A.Q6J("ngIf",!s.message),A.xp6(6),A.Q6J("inset",!0),A.xp6(5),A.Oqu(s.signature),A.xp6(2),A.Q6J("payload",s.signature))},directives:[Ct.xw,Ct.yH,Ct.Wh,OA._Y,OA.JL,OA.F,Z.KE,Yt.Nt,OA.Fj,H.h,OA.Q7,OA.JJ,OA.On,Et.O5,Z.TO,Q.lW,AA.d,Kr.y],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();function he(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Message is required."),A.qZA())}function qe(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Signature is required."),A.qZA())}function Ue(r,y){1&r&&(A.TgZ(0,"p",13)(1,"mat-icon",14),A._uU(2,"close"),A.qZA(),A._uU(3,"Verification failed, please double check message and signature"),A.qZA())}function Fe(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Pubkey Used"),A.qZA())}function $e(r,y){if(1&r&&(A.TgZ(0,"div",20)(1,"p"),A._uU(2),A.qZA()()),2&r){const t=A.oxw(2);A.xp6(2),A.Oqu(null==t.verifyRes?null:t.verifyRes.pubkey)}}function Rn(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",21)(1,"button",22),A.NdJ("copied",function(L){return A.CHM(t),A.oxw(2).onCopyField(L)}),A._uU(2,"Copy Pubkey"),A.qZA()()}if(2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("payload",null==t.verifyRes?null:t.verifyRes.pubkey)}}function gn(r,y){if(1&r&&(A.TgZ(0,"div",15),A._UZ(1,"mat-divider",16),A.TgZ(2,"div",17),A.YNc(3,Fe,2,0,"p",5),A.qZA(),A.YNc(4,$e,3,1,"div",18),A.YNc(5,Rn,3,1,"div",19),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("inset",!0),A.xp6(2),A.Q6J("ngIf",t.verifyRes.verified),A.xp6(1),A.Q6J("ngIf",t.verifyRes.verified),A.xp6(1),A.Q6J("ngIf",t.verifyRes.verified)}}let mn=(()=>{class r{constructor(t,s,L){this.dataService=t,this.snackBar=s,this.logger=L,this.message="",this.verifiedMessage="",this.signature="",this.verifiedSignature="",this.showVerifyStatus=!1,this.verifyRes={pubkey:"",verified:null},this.unSubs=[new c.x,new c.x]}onVerify(){if(!this.message||""===this.message||!this.signature||""===this.signature)return!0;this.dataService.verifyMessage(this.message,this.signature).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.verifyRes=t,this.showVerifyStatus=!0,this.verifiedMessage=this.message,this.verifiedSignature=this.signature})}onChange(){(this.verifiedMessage!==this.message||this.verifiedSignature!==this.signature)&&(this.showVerifyStatus=!1,this.verifyRes={pubkey:"",verified:null})}resetData(){this.message="",this.signature="",this.verifyRes=null,this.showVerifyStatus=!1}onCopyField(t){this.snackBar.open("Pubkey copied."),this.logger.info("Copied Text: "+t)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(PA.D),A.Y36(Tr.ux),A.Y36(E.mQ))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-verify"]],decls:17,vars:6,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["form","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","placeholder","Message to verify","required","","tabindex","1","name","message",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["matInput","","placeholder","Signature provided","name","signature","tabindex","2","required","",3,"ngModel","ngModelChange","keyup"],["sign","ngModel"],["fxFlex","100","class","color-warn","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start","class","bordered-box read-only h-4 padding-gap",4,"ngIf"],["fxLayout","row","class","mt-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"bordered-box","read-only","h-4","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","rtlClipboard","","type","button",3,"payload","copied"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0)(1,"form",1,2)(3,"mat-form-field",3)(4,"textarea",4),A.NdJ("ngModelChange",function(vA){return s.message=vA})("keyup",function(){return s.onChange()}),A.qZA(),A.YNc(5,he,2,0,"mat-error",5),A.qZA(),A.TgZ(6,"mat-form-field",3)(7,"input",6,7),A.NdJ("ngModelChange",function(vA){return s.signature=vA})("keyup",function(){return s.onChange()}),A.qZA(),A.YNc(9,qe,2,0,"mat-error",5),A.qZA(),A.YNc(10,Ue,4,0,"p",8),A.TgZ(11,"div",9)(12,"button",10),A.NdJ("click",function(){return s.resetData()}),A._uU(13,"Clear Fields"),A.qZA(),A.TgZ(14,"button",11),A.NdJ("click",function(){return s.onVerify()}),A._uU(15,"Verify"),A.qZA()(),A.YNc(16,gn,6,4,"div",12),A.qZA()()),2&t&&(A.xp6(4),A.Q6J("ngModel",s.message),A.xp6(1),A.Q6J("ngIf",!s.message),A.xp6(2),A.Q6J("ngModel",s.signature),A.xp6(2),A.Q6J("ngIf",!s.signature),A.xp6(1),A.Q6J("ngIf",s.showVerifyStatus&&!s.verifyRes.verified),A.xp6(6),A.Q6J("ngIf",s.showVerifyStatus&&s.verifyRes.verified))},directives:[Ct.xw,Ct.yH,Ct.Wh,OA._Y,OA.JL,OA.F,Z.KE,Yt.Nt,OA.Fj,H.h,OA.Q7,OA.JJ,OA.On,Et.O5,Z.TO,S.Hw,Q.lW,AA.d,Kr.y],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();function Gn(r,y){if(1&r&&(A.TgZ(0,"div",5),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function Jn(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",6),A._UZ(1,"div",7),A.TgZ(2,"mat-form-field",8)(3,"input",9),A.NdJ("ngModelChange",function(L){return A.CHM(t),A.oxw().filterValue=L})("input",function(){return A.CHM(t),A.oxw().applyFilter()})("keyup",function(){return A.CHM(t),A.oxw().applyFilter()}),A.qZA()()()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.filterValue)}}function Dn(r,y){1&r&&A._UZ(0,"mat-progress-bar",33)}function Mn(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Status"),A.qZA())}function On(r,y){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null==t?null:t.status)}}function kn(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Received Time"),A.qZA())}function me(r,y){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.received_time),"dd/MMM/y HH:mm"))}}function Pe(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Resolved Time"),A.qZA())}function Ye(r,y){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.resolved_time),"dd/MMM/y HH:mm"))}}function Ze(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1,"In Channel"),A.qZA())}function ke(r,y){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null==t?null:t.in_channel_alias)}}function Bn(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Out Channel"),A.qZA())}function $i(r,y){if(1&r&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null==t?null:t.out_channel_alias)}}function zn(r,y){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Amount In (Sats)"),A.qZA())}function Aa(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.in_msatoshi)/1e3,(null==t?null:t.in_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function ta(r,y){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Amount Out (Sats)"),A.qZA())}function Ll(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.out_msatoshi)/1e3,(null==t?null:t.out_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function bl(r,y){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Fee (mSat)"),A.qZA())}function Ri(r,y){if(1&r&&(A.TgZ(0,"td",35)(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,null==t?null:t.fee))}}function _r(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"th",38)(1,"div",39)(2,"mat-select",40),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",41),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function ea(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",42)(1,"button",43),A.NdJ("click",function(L){const gt=A.CHM(t).$implicit;return A.oxw(2).onForwardingEventClick(gt,L)}),A._uU(2,"View Info"),A.qZA()()}}function zi(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No forwarding history available."),A.qZA())}function Li(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting forwarding history..."),A.qZA())}function $r(r,y){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function Ai(r,y){if(1&r&&(A.TgZ(0,"td",44),A.YNc(1,zi,2,0,"p",45),A.YNc(2,Li,2,0,"p",45),A.YNc(3,$r,2,1,"p",45),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.forwardingHistoryEvents&&t.forwardingHistoryEvents.data)||(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const ti=function(r){return{"display-none":r}};function ei(r,y){if(1&r&&A._UZ(0,"tr",46),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,ti,(null==t.forwardingHistoryEvents?null:t.forwardingHistoryEvents.data)&&(null==t.forwardingHistoryEvents||null==t.forwardingHistoryEvents.data?null:t.forwardingHistoryEvents.data.length)>0))}}function ni(r,y){1&r&&A._UZ(0,"tr",47)}function ri(r,y){1&r&&A._UZ(0,"tr",48)}const ii=function(){return["no_event"]};function ai(r,y){if(1&r&&(A.TgZ(0,"div",10),A.YNc(1,Dn,1,0,"mat-progress-bar",11),A.TgZ(2,"table",12,13),A.ynx(4,14),A.YNc(5,Mn,2,0,"th",15),A.YNc(6,On,2,1,"td",16),A.BQk(),A.ynx(7,17),A.YNc(8,kn,2,0,"th",15),A.YNc(9,me,3,4,"td",16),A.BQk(),A.ynx(10,18),A.YNc(11,Pe,2,0,"th",15),A.YNc(12,Ye,3,4,"td",16),A.BQk(),A.ynx(13,19),A.YNc(14,Ze,2,0,"th",15),A.YNc(15,ke,2,1,"td",16),A.BQk(),A.ynx(16,20),A.YNc(17,Bn,2,0,"th",15),A.YNc(18,$i,2,1,"td",16),A.BQk(),A.ynx(19,21),A.YNc(20,zn,2,0,"th",22),A.YNc(21,Aa,4,4,"td",16),A.BQk(),A.ynx(22,23),A.YNc(23,ta,2,0,"th",22),A.YNc(24,Ll,4,4,"td",16),A.BQk(),A.ynx(25,24),A.YNc(26,bl,2,0,"th",22),A.YNc(27,Ri,4,3,"td",16),A.BQk(),A.ynx(28,25),A.YNc(29,_r,6,0,"th",26),A.YNc(30,ea,3,0,"td",27),A.BQk(),A.ynx(31,28),A.YNc(32,Ai,4,3,"td",29),A.BQk(),A.YNc(33,ei,1,3,"tr",30),A.YNc(34,ni,1,0,"tr",31),A.YNc(35,ri,1,0,"tr",32),A.qZA()()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.forwardingHistoryEvents),A.xp6(31),A.Q6J("matFooterRowDef",A.DdM(6,ii)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function Cr(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-paginator",49),A.NdJ("page",function(L){return A.CHM(t),A.oxw().onPageChange(L)}),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("length",t.totalForwardedTransactions)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let na=(()=>{class r{constructor(t,s,L,vA){this.logger=t,this.commonService=s,this.store=L,this.datePipe=vA,this.eventsData=[],this.filterValue="",this.flgCompatible=!0,this.information={},this.successfulEvents=[],this.displayedColumns=[],this.flgSticky=!1,this.indexOffset=-1,this.totalForwardedTransactions=0,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["in_msatoshi","out_msatoshi","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["received_time","in_msatoshi","out_msatoshi","fee","actions"]):(this.flgSticky=!0,this.displayedColumns=["received_time","resolved_time","in_channel","out_channel","in_msatoshi","out_msatoshi","fee","actions"])}ngOnInit(){this.store.select(g.Bo).pipe((0,i.R)(this.unSubs[0]),(0,o.M)(this.store.select(g.ey))).subscribe(([t,s])=>{this.information=s,this.flgCompatible=!this.information.api_version||this.commonService.isVersionCompatible(this.information.api_version,"0.7.3"),this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.eventsData.length<=0&&t.forwardingHistory.listForwards&&(this.totalForwardedTransactions=t.forwardingHistory.totalForwards,this.indexOffset=t.forwardingHistory.offset,this.successfulEvents=t.forwardingHistory.listForwards||[],this.successfulEvents.length>0&&this.sort&&this.paginator&&this.loadForwardingEventsTable(this.flgCompatible?this.successfulEvents:this.successfulEvents.slice(0,this.pageSize)),this.logger.info(t))})}ngAfterViewInit(){this.successfulEvents.length>0&&this.loadForwardingEventsTable(this.flgCompatible?this.successfulEvents:this.successfulEvents.slice(0,this.pageSize))}ngOnChanges(t){t.eventsData&&(this.apiCallStatus={status:a.Bn.COMPLETED,action:"FetchForwardingHistory"},this.eventsData=t.eventsData.currentValue,this.successfulEvents=this.eventsData,this.indexOffset=0,this.totalForwardedTransactions=this.eventsData.length,this.paginator&&this.paginator.firstPage(),t.eventsData.firstChange||this.loadForwardingEventsTable(this.successfulEvents.slice(0,this.pageSize))),t.filterValue&&!t.filterValue.firstChange&&this.applyFilter()}onForwardingEventClick(t,s){this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Event Information",message:[[{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:a.Gi.STRING}],[{key:"status",value:"Settled",title:"Status",width:50,type:a.Gi.STRING},{key:"fee",value:t.fee,title:"Fee (mSats)",width:50,type:a.Gi.NUMBER}],[{key:"received_time",value:t.received_time,title:"Received Time",width:50,type:a.Gi.DATE_TIME},{key:"resolved_time",value:t.resolved_time,title:"Resolved Time",width:50,type:a.Gi.DATE_TIME}],[{key:"in_channel",value:t.in_channel_alias,title:"Inbound Channel",width:50,type:a.Gi.STRING},{key:"out_channel",value:t.out_channel_alias,title:"Outbound Channel",width:50,type:a.Gi.STRING}],[{key:"in_msatoshi",value:t.in_msatoshi,title:"In (mSats)",width:50,type:a.Gi.NUMBER},{key:"out_msatoshi",value:t.out_msatoshi,title:"Out (mSats)",width:50,type:a.Gi.NUMBER}]]}}}))}loadForwardingEventsTable(t){this.forwardingHistoryEvents=new yA.by([...t]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(s,L)=>s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]:null,this.forwardingHistoryEvents.filterPredicate=(s,L)=>((s.received_time?this.datePipe.transform(new Date(1e3*s.received_time),"dd/MMM/YYYY HH:mm").toLowerCase()+" ":"")+(s.resolved_time?this.datePipe.transform(new Date(1e3*s.resolved_time),"dd/MMM/YYYY HH:mm").toLowerCase()+" ":"")+(s.in_channel?s.in_channel.toLowerCase()+" ":"")+(s.out_channel?s.out_channel.toLowerCase()+" ":"")+(s.in_channel_alias?s.in_channel_alias.toLowerCase()+" ":"")+(s.out_channel_alias?s.out_channel_alias.toLowerCase()+" ":"")+(s.in_msatoshi?s.in_msatoshi/1e3+" ":"")+(s.out_msatoshi?s.out_msatoshi/1e3+" ":"")+(s.fee?s.fee+" ":"")).includes(L),this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents&&this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.filterValue.trim().toLowerCase())}onPageChange(t){this.pageSize!==t.pageSize?(this.pageSize=t.pageSize,this.indexOffset=0):this.indexOffset=t.pageIndex*this.pageSize,this.flgCompatible?this.store.dispatch((0,ht.u0)({payload:{status:a.OO.SETTLED,maxLen:this.pageSize,offset:this.indexOffset}})):this.loadForwardingEventsTable(this.successfulEvents.slice(this.indexOffset,this.indexOffset+this.pageSize))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh),A.Y36(Et.uU))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-forwarding-history"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(WA.NW,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.paginator=L.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Events")}]),A.TTD],decls:5,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","received_time"],["matColumnDef","resolved_time"],["matColumnDef","in_channel"],["matColumnDef","out_channel"],["matColumnDef","in_msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","out_msatoshi"],["matColumnDef","fee"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Gn,2,1,"div",1),A.YNc(2,Jn,4,1,"div",2),A.YNc(3,ai,36,7,"div",3),A.YNc(4,Cr,1,4,"mat-paginator",4),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage))},directives:[Ct.xw,Ct.Wh,Et.O5,Ct.yH,Z.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,Y.pW,yA.BZ,rt.YE,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,R.gD,R.$L,QA.ey,Q.lW,yA.mD,yA.yh,yA.Ke,yA.Q2,Et.mk,m.oO,yA.as,yA.XQ,yA.nj,yA.Gk,WA.NW],pipes:[Et.uU,Et.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();function no(r,y){if(1&r&&(A.TgZ(0,"div",5),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function ro(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",6),A._UZ(1,"div",7),A.TgZ(2,"mat-form-field",8)(3,"input",9),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(L){return A.CHM(t),A.oxw().selFilter=L}),A.qZA()()()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.selFilter)}}function io(r,y){1&r&&A._UZ(0,"mat-progress-bar",32)}function ra(r,y){1&r&&(A.TgZ(0,"th",33),A._uU(1,"Received Time"),A.qZA())}function Wl(r,y){if(1&r&&(A.TgZ(0,"td",34),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.received_time),"dd/MMM/y HH:mm"))}}function Zl(r,y){1&r&&(A.TgZ(0,"th",33),A._uU(1,"Resolved Time"),A.qZA())}function Xl(r,y){if(1&r&&(A.TgZ(0,"td",34),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.resolved_time),"dd/MMM/y HH:mm"))}}function ql(r,y){1&r&&(A.TgZ(0,"th",33),A._uU(1,"In Channel"),A.qZA())}function _l(r,y){if(1&r&&(A.TgZ(0,"td",34),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null==t?null:t.in_channel_alias)}}function $l(r,y){1&r&&(A.TgZ(0,"th",33),A._uU(1,"Out Channel"),A.qZA())}function Ac(r,y){if(1&r&&(A.TgZ(0,"td",34),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null==t?null:t.out_channel_alias)}}function tc(r,y){1&r&&(A.TgZ(0,"th",35),A._uU(1,"Amount In (Sats)"),A.qZA())}function ec(r,y){if(1&r&&(A.TgZ(0,"td",34)(1,"span",36),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.in_msatoshi)/1e3,(null==t?null:t.in_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function nc(r,y){1&r&&(A.TgZ(0,"th",35),A._uU(1,"Amount Out (Sats)"),A.qZA())}function rc(r,y){if(1&r&&(A.TgZ(0,"td",34)(1,"span",36),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.out_msatoshi)/1e3,(null==t?null:t.out_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function ic(r,y){1&r&&(A.TgZ(0,"th",35),A._uU(1,"Fee (mSats)"),A.qZA())}function ac(r,y){if(1&r&&(A.TgZ(0,"td",34)(1,"span",36),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,null==t?null:t.fee,"1.0-0"))}}function oc(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"th",37)(1,"div",38)(2,"mat-select",39),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",40),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function sc(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",41)(1,"button",42),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw(2).onFailedEventClick(vA)}),A._uU(2,"View Info"),A.qZA()()}}function lc(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No failed transaction available."),A.qZA())}function cc(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting failed transactions..."),A.qZA())}function gc(r,y){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function Bc(r,y){if(1&r&&(A.TgZ(0,"td",43),A.YNc(1,lc,2,0,"p",44),A.YNc(2,cc,2,0,"p",44),A.YNc(3,gc,2,1,"p",44),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedForwardingEvents&&t.failedForwardingEvents.data)||(null==t.failedForwardingEvents||null==t.failedForwardingEvents.data?null:t.failedForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedForwardingEvents&&t.failedForwardingEvents.data)||(null==t.failedForwardingEvents||null==t.failedForwardingEvents.data?null:t.failedForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedForwardingEvents&&t.failedForwardingEvents.data)||(null==t.failedForwardingEvents||null==t.failedForwardingEvents.data?null:t.failedForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const uc=function(r){return{"display-none":r}};function fc(r,y){if(1&r&&A._UZ(0,"tr",45),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,uc,(null==t.failedForwardingEvents?null:t.failedForwardingEvents.data)&&(null==t.failedForwardingEvents||null==t.failedForwardingEvents.data?null:t.failedForwardingEvents.data.length)>0))}}function hc(r,y){1&r&&A._UZ(0,"tr",46)}function Ec(r,y){1&r&&A._UZ(0,"tr",47)}const wc=function(){return["no_event"]};function Cc(r,y){if(1&r&&(A.TgZ(0,"div",10),A.YNc(1,io,1,0,"mat-progress-bar",11),A.TgZ(2,"table",12,13),A.ynx(4,14),A.YNc(5,ra,2,0,"th",15),A.YNc(6,Wl,3,4,"td",16),A.BQk(),A.ynx(7,17),A.YNc(8,Zl,2,0,"th",15),A.YNc(9,Xl,3,4,"td",16),A.BQk(),A.ynx(10,18),A.YNc(11,ql,2,0,"th",15),A.YNc(12,_l,2,1,"td",16),A.BQk(),A.ynx(13,19),A.YNc(14,$l,2,0,"th",15),A.YNc(15,Ac,2,1,"td",16),A.BQk(),A.ynx(16,20),A.YNc(17,tc,2,0,"th",21),A.YNc(18,ec,4,4,"td",16),A.BQk(),A.ynx(19,22),A.YNc(20,nc,2,0,"th",21),A.YNc(21,rc,4,4,"td",16),A.BQk(),A.ynx(22,23),A.YNc(23,ic,2,0,"th",21),A.YNc(24,ac,4,4,"td",16),A.BQk(),A.ynx(25,24),A.YNc(26,oc,6,0,"th",25),A.YNc(27,sc,3,0,"td",26),A.BQk(),A.ynx(28,27),A.YNc(29,Bc,4,3,"td",28),A.BQk(),A.YNc(30,fc,1,3,"tr",29),A.YNc(31,hc,1,0,"tr",30),A.YNc(32,Ec,1,0,"tr",31),A.qZA()()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.failedForwardingEvents),A.xp6(28),A.Q6J("matFooterRowDef",A.DdM(6,wc)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function Qc(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-paginator",48),A.NdJ("page",function(L){return A.CHM(t),A.oxw().onPageChange(L)}),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("length",t.totalFailedTransactions)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let dc=(()=>{class r{constructor(t,s,L,vA,gt){this.logger=t,this.commonService=s,this.store=L,this.datePipe=vA,this.router=gt,this.flgCompatible=!0,this.information={},this.errorMessage="",this.displayedColumns=[],this.flgSticky=!1,this.selFilter="",this.indexOffset=-1,this.totalFailedTransactions=0,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["received_time","in_channel","in_msatoshi","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["received_time","in_channel","out_channel","in_msatoshi","out_msatoshi","actions"]):(this.flgSticky=!0,this.displayedColumns=["received_time","resolved_time","in_channel","out_channel","in_msatoshi","out_msatoshi","fee","actions"])}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.store.dispatch((0,ht.u0)({payload:{status:a.OO.FAILED,maxLen:this.pageSize,offset:0}})),this.store.select(g.xQ).pipe((0,i.R)(this.unSubs[0]),(0,o.M)(this.store.select(g.ey))).subscribe(([t,s])=>{this.information=s,this.flgCompatible=!this.information.api_version||this.commonService.isVersionCompatible(this.information.api_version,"0.7.3"),this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.totalFailedTransactions=t.failedForwardingHistory.totalForwards,this.indexOffset=t.failedForwardingHistory.offset,this.failedEvents=t.failedForwardingHistory.listForwards||[],this.failedEvents.length>0&&this.sort&&this.paginator&&this.loadFailedEventsTable(this.flgCompatible?this.failedEvents:this.failedEvents.slice(0,this.pageSize)),this.logger.info(t)})}ngAfterViewInit(){this.failedEvents.length>0&&this.loadFailedEventsTable(this.flgCompatible?this.failedEvents:this.failedEvents.slice(0,this.pageSize))}onFailedEventClick(t){const s=[[{key:"received_time",value:t.received_time,title:"Received Time",width:50,type:a.Gi.DATE_TIME},{key:"resolved_time",value:t.resolved_time,title:"Resolved Time",width:50,type:a.Gi.DATE_TIME}],[{key:"in_channel_alias",value:t.in_channel_alias,title:"Inbound Channel",width:50,type:a.Gi.STRING},{key:"out_channel_alias",value:t.out_channel_alias,title:"Outbound Channel",width:50,type:a.Gi.STRING}],[{key:"in_msatoshi",value:t.in_msatoshi,title:"Amount In (mSats)",width:33,type:a.Gi.NUMBER},{key:"out_msatoshi",value:t.out_msatoshi,title:"Amount Out (mSats)",width:33,type:a.Gi.NUMBER},{key:"fee",value:t.fee,title:"Fee (mSats)",width:34,type:a.Gi.NUMBER}]];t.payment_hash&&s.unshift([{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:a.Gi.STRING}]),this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Failed Event Information",message:s}}}))}loadFailedEventsTable(t){this.failedForwardingEvents=new yA.by([...t]),this.failedForwardingEvents.sort=this.sort,this.failedForwardingEvents.sortingDataAccessor=(s,L)=>s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]:null,this.failedForwardingEvents.filterPredicate=(s,L)=>((s.received_time?this.datePipe.transform(new Date(1e3*s.received_time),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.resolved_time?this.datePipe.transform(new Date(1e3*s.resolved_time),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.payment_hash?s.payment_hash.toLowerCase():"")+(s.in_channel?s.in_channel.toLowerCase():"")+(s.out_channel?s.out_channel.toLowerCase():"")+(s.in_channel_alias?s.in_channel_alias.toLowerCase():"")+(s.out_channel_alias?s.out_channel_alias.toLowerCase():"")+(s.in_msatoshi?s.in_msatoshi/1e3:"")+(s.out_msatoshi?s.out_msatoshi/1e3:"")+(s.fee?s.fee:"")).includes(L),this.applyFilter(),this.logger.info(this.failedForwardingEvents)}onDownloadCSV(){this.failedForwardingEvents&&this.failedForwardingEvents.data&&this.failedForwardingEvents.data.length>0&&this.commonService.downloadFile(this.failedForwardingEvents.data,"Failed-transactions")}applyFilter(){this.failedForwardingEvents.filter=this.selFilter.trim().toLowerCase()}onPageChange(t){this.pageSize!==t.pageSize?(this.pageSize=t.pageSize,this.indexOffset=0):this.indexOffset=t.pageIndex*this.pageSize,this.flgCompatible?this.store.dispatch((0,ht.u0)({payload:{status:a.OO.FAILED,maxLen:this.pageSize,offset:this.indexOffset}})):this.loadFailedEventsTable(this.failedEvents.slice(this.indexOffset,this.indexOffset+this.pageSize))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh),A.Y36(Et.uU),A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-failed-history"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(WA.NW,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.paginator=L.first)}},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Failed events")}])],decls:5,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","received_time"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","resolved_time"],["matColumnDef","in_channel"],["matColumnDef","out_channel"],["matColumnDef","in_msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","out_msatoshi"],["matColumnDef","fee"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,no,2,1,"div",1),A.YNc(2,ro,4,1,"div",2),A.YNc(3,Cc,33,7,"div",3),A.YNc(4,Qc,1,4,"mat-paginator",4),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage))},directives:[Ct.xw,Ct.Wh,Et.O5,Ct.yH,Z.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,Y.pW,yA.BZ,rt.YE,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,R.gD,R.$L,QA.ey,Q.lW,yA.mD,yA.yh,yA.Ke,yA.Q2,Et.mk,m.oO,yA.as,yA.XQ,yA.nj,yA.Gk,WA.NW],pipes:[Et.uU,Et.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();const Mc=["tableIn"],pc=["tableOut"],Ic=["paginatorIn"],mc=["paginatorOut"];function vc(r,y){if(1&r&&(A.TgZ(0,"div",3),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function Dc(r,y){1&r&&A._UZ(0,"mat-progress-bar",36)}function yc(r,y){1&r&&(A.TgZ(0,"th",37),A._uU(1,"Channel ID"),A.qZA())}const ao=function(r){return{"max-width":r}};function xc(r,y){if(1&r&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&r){const t=y.$implicit,s=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,ao,s.screenSize===s.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.channel_id)}}function Fc(r,y){1&r&&(A.TgZ(0,"th",37),A._uU(1,"Peer Alias"),A.qZA())}function Yc(r,y){if(1&r&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&r){const t=y.$implicit,s=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,ao,s.screenSize===s.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.alias)}}function Tc(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Events"),A.qZA())}function Sc(r,y){if(1&r&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,t.events))}}function Nc(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Amount (Sats)"),A.qZA())}function Uc(r,y){if(1&r&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.total_amount)/1e3,(null==t?null:t.total_amount)<1e3?"1.0-4":"1.0-0"))}}function Pc(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Fee (Sats)"),A.qZA())}function Rc(r,y){if(1&r&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.total_fee)/1e3,(null==t?null:t.total_fee)<1e3?"1.0-4":"1.0-0"))}}function zc(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No incoming routing peer available."),A.qZA())}function Lc(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting incoming routing peers..."),A.qZA())}function bc(r,y){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function Gc(r,y){if(1&r&&(A.TgZ(0,"td",42),A.YNc(1,zc,2,0,"p",43),A.YNc(2,Lc,2,0,"p",43),A.YNc(3,bc,2,1,"p",43),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersIncoming&&t.RoutingPeersIncoming.data)||(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const Hl=function(r){return{"display-none":r}};function Hc(r,y){if(1&r&&A._UZ(0,"tr",44),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Hl,(null==t.RoutingPeersIncoming?null:t.RoutingPeersIncoming.data)&&(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)>0))}}function Jc(r,y){1&r&&A._UZ(0,"tr",45)}function Oc(r,y){1&r&&A._UZ(0,"tr",46)}function kc(r,y){1&r&&A._UZ(0,"mat-progress-bar",36)}function jc(r,y){1&r&&(A.TgZ(0,"th",37),A._uU(1,"Channel ID"),A.qZA())}function Kc(r,y){if(1&r&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&r){const t=y.$implicit,s=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,ao,s.screenSize===s.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.channel_id)}}function Vc(r,y){1&r&&(A.TgZ(0,"th",37),A._uU(1,"Peer Alias"),A.qZA())}function Wc(r,y){if(1&r&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&r){const t=y.$implicit,s=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,ao,s.screenSize===s.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.alias)}}function Zc(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Events"),A.qZA())}function Xc(r,y){if(1&r&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,t.events))}}function qc(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Amount (Sats)"),A.qZA())}function _c(r,y){if(1&r&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.total_amount)/1e3,(null==t?null:t.total_amount)<1e3?"1.0-4":"1.0-0"))}}function $c(r,y){1&r&&(A.TgZ(0,"th",39),A._uU(1,"Fee (Sats)"),A.qZA())}function Ag(r,y){if(1&r&&(A.TgZ(0,"td",40)(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.total_fee)/1e3,(null==t?null:t.total_fee)<1e3?"1.0-4":"1.0-0"))}}function tg(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No outgoing routing peer available."),A.qZA())}function eg(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting outgoing routing peers..."),A.qZA())}function ng(r,y){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function rg(r,y){if(1&r&&(A.TgZ(0,"td",42),A.YNc(1,tg,2,0,"p",43),A.YNc(2,eg,2,0,"p",43),A.YNc(3,ng,2,1,"p",43),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.RoutingPeersOutgoing&&t.RoutingPeersOutgoing.data)||(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}function ig(r,y){if(1&r&&A._UZ(0,"tr",44),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Hl,(null==t.RoutingPeersOutgoing?null:t.RoutingPeersOutgoing.data)&&(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)>0))}}function ag(r,y){1&r&&A._UZ(0,"tr",45)}function og(r,y){1&r&&A._UZ(0,"tr",46)}const sg=function(r,y){return{"mt-2":r,"mt-1":y}},lg=function(){return["no_incoming_event"]},cg=function(r){return{"mt-2":r}},gg=function(){return["no_outgoing_event"]};function Bg(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7),A._uU(4,"Incoming"),A.qZA(),A.TgZ(5,"mat-form-field",8)(6,"input",9),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyIncomingFilter()})("ngModelChange",function(L){return A.CHM(t),A.oxw().filterIn=L}),A.qZA()()(),A.TgZ(7,"div",10),A.YNc(8,Dc,1,0,"mat-progress-bar",11),A.TgZ(9,"table",12,13),A.ynx(11,14),A.YNc(12,yc,2,0,"th",15),A.YNc(13,xc,2,4,"td",16),A.BQk(),A.ynx(14,17),A.YNc(15,Fc,2,0,"th",15),A.YNc(16,Yc,2,4,"td",16),A.BQk(),A.ynx(17,18),A.YNc(18,Tc,2,0,"th",19),A.YNc(19,Sc,4,3,"td",20),A.BQk(),A.ynx(20,21),A.YNc(21,Nc,2,0,"th",19),A.YNc(22,Uc,4,4,"td",20),A.BQk(),A.ynx(23,22),A.YNc(24,Pc,2,0,"th",19),A.YNc(25,Rc,4,4,"td",20),A.BQk(),A.ynx(26,23),A.YNc(27,Gc,4,3,"td",24),A.BQk(),A.YNc(28,Hc,1,3,"tr",25),A.YNc(29,Jc,1,0,"tr",26),A.YNc(30,Oc,1,0,"tr",27),A.qZA()(),A._UZ(31,"mat-paginator",28,29),A.qZA(),A.TgZ(33,"div",30)(34,"div",6)(35,"div",7),A._uU(36,"Outgoing"),A.qZA(),A.TgZ(37,"mat-form-field",8)(38,"input",9),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyOutgoingFilter()})("ngModelChange",function(L){return A.CHM(t),A.oxw().filterOut=L}),A.qZA()()(),A.TgZ(39,"div",31),A.YNc(40,kc,1,0,"mat-progress-bar",11),A.TgZ(41,"table",32,33),A.ynx(43,14),A.YNc(44,jc,2,0,"th",15),A.YNc(45,Kc,2,4,"td",16),A.BQk(),A.ynx(46,17),A.YNc(47,Vc,2,0,"th",15),A.YNc(48,Wc,2,4,"td",16),A.BQk(),A.ynx(49,18),A.YNc(50,Zc,2,0,"th",19),A.YNc(51,Xc,4,3,"td",20),A.BQk(),A.ynx(52,21),A.YNc(53,qc,2,0,"th",19),A.YNc(54,_c,4,4,"td",20),A.BQk(),A.ynx(55,22),A.YNc(56,$c,2,0,"th",19),A.YNc(57,Ag,4,4,"td",20),A.BQk(),A.ynx(58,34),A.YNc(59,rg,4,3,"td",24),A.BQk(),A.YNc(60,ig,1,3,"tr",25),A.YNc(61,ag,1,0,"tr",26),A.YNc(62,og,1,0,"tr",27),A.qZA(),A._UZ(63,"mat-paginator",28,35),A.qZA()()()}if(2&r){const t=A.oxw();A.xp6(2),A.Q6J("ngClass",A.WLB(22,sg,t.screenSize===t.screenSizeEnum.XS,t.screenSize===t.screenSizeEnum.SM)),A.xp6(4),A.Q6J("ngModel",t.filterIn),A.xp6(2),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.RoutingPeersIncoming),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(25,lg)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns),A.xp6(1),A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS),A.xp6(3),A.Q6J("ngClass",A.VKq(26,cg,t.screenSize!==t.screenSizeEnum.LG)),A.xp6(4),A.Q6J("ngModel",t.filterOut),A.xp6(2),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.RoutingPeersOutgoing),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(28,gg)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns),A.xp6(1),A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let ug=(()=>{class r{constructor(t,s,L){this.logger=t,this.commonService=s,this.store=L,this.eventsData=[],this.filterValue="",this.successfulEvents=[],this.displayedColumns=[],this.RoutingPeersIncoming=[],this.RoutingPeersOutgoing=[],this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.filterIn="",this.filterOut="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","total_fee"]):this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","events","total_fee"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","events","total_amount","total_fee"]):(this.flgSticky=!0,this.displayedColumns=["channel_id","alias","events","total_amount","total_fee"])}ngOnInit(){this.store.select(g.Bo).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.eventsData.length<=0&&(this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.successfulEvents=t.forwardingHistory.listForwards||[],this.successfulEvents.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.successfulEvents),this.logger.info(t))})}ngAfterViewInit(){this.successfulEvents.length>0&&this.loadRoutingPeersTable(this.successfulEvents)}ngOnChanges(t){t.eventsData&&(this.apiCallStatus={status:a.Bn.COMPLETED,action:"FetchForwardingHistory"},this.eventsData=t.eventsData.currentValue,this.successfulEvents=this.eventsData,t.eventsData.firstChange||this.loadRoutingPeersTable(this.successfulEvents))}loadRoutingPeersTable(t){if(t.length>0){const s=this.groupRoutingPeers(t);this.RoutingPeersIncoming=new yA.by(s[0]),this.RoutingPeersIncoming.sort=this.sortIn,this.RoutingPeersIncoming.filterPredicate=(L,vA)=>JSON.stringify(L).toLowerCase().includes(vA),this.RoutingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.RoutingPeersIncoming),this.RoutingPeersOutgoing=new yA.by(s[1]),this.RoutingPeersOutgoing.sort=this.sortOut,this.RoutingPeersOutgoing.filterPredicate=(L,vA)=>JSON.stringify(L).toLowerCase().includes(vA),this.RoutingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.RoutingPeersOutgoing)}else this.RoutingPeersIncoming=new yA.by([]),this.RoutingPeersOutgoing=new yA.by([]);this.applyIncomingFilter(),this.applyOutgoingFilter(),this.logger.info(this.RoutingPeersIncoming),this.logger.info(this.RoutingPeersOutgoing)}groupRoutingPeers(t){const s=[],L=[];return t.forEach(vA=>{const gt=s.find(un=>un.channel_id===vA.in_channel),ae=L.find(un=>un.channel_id===vA.out_channel);gt?(gt.events++,gt.total_amount=+gt.total_amount+ +vA.in_msatoshi,gt.total_fee=vA.in_msatoshi-vA.out_msatoshi+ +gt.total_fee):s.push({channel_id:vA.in_channel,alias:vA.in_channel_alias,events:1,total_amount:vA.in_msatoshi,total_fee:vA.in_msatoshi-vA.out_msatoshi}),ae?(ae.events++,ae.total_amount=+ae.total_amount+ +vA.out_msatoshi,ae.total_fee=vA.in_msatoshi-vA.out_msatoshi+ +ae.total_fee):L.push({channel_id:vA.out_channel,alias:vA.out_channel_alias,events:1,total_amount:vA.out_msatoshi,total_fee:vA.in_msatoshi-vA.out_msatoshi})}),[this.commonService.sortDescByKey(s,"total_fee"),this.commonService.sortDescByKey(L,"total_fee")]}applyIncomingFilter(){this.RoutingPeersIncoming.filter=this.filterIn.toLowerCase()}applyOutgoingFilter(){this.RoutingPeersOutgoing.filter=this.filterOut.toLowerCase()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-routing-peers"]],viewQuery:function(t,s){if(1&t&&(A.Gf(Mc,5,rt.YE),A.Gf(pc,5,rt.YE),A.Gf(Ic,5),A.Gf(mc,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.sortIn=L.first),A.iGM(L=A.CRH())&&(s.sortOut=L.first),A.iGM(L=A.CRH())&&(s.paginatorIn=L.first),A.iGM(L=A.CRH())&&(s.paginatorOut=L.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Peers")}]),A.TTD],decls:3,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch","class","page-sub-title-container",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch",1,"page-sub-title-container"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"page-sub-title-container","w-100",3,"ngClass"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto","incoming-table",3,"dataSource"],["tableIn",""],["matColumnDef","channel_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","total_amount"],["matColumnDef","total_fee"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["paginatorIn",""],["fxLayout","column","fxFlex","49","fxLayoutAlign","end stretch"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",1,"overflow-auto","outgoing-table",3,"dataSource"],["tableOut",""],["matColumnDef","no_outgoing_event"],["paginatorOut",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-cell",""],["fxLayoutAlign","end center"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,vc,2,1,"div",1),A.YNc(2,Bg,65,29,"div",2),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage))},directives:[Ct.xw,Ct.Wh,Et.O5,Ct.yH,Et.mk,m.oO,Z.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,Y.pW,yA.BZ,rt.YE,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,Et.PC,m.Zl,yA.mD,yA.yh,yA.Ke,yA.Q2,yA.as,yA.XQ,yA.nj,yA.Gk,WA.NW],pipes:[Et.JJ],styles:[".mat-column-channelId[_ngcontent-%COMP%], .mat-column-alias[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),r})();function fg(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",7),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().activeLink=vA.link}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit,s=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",s.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let hg=(()=>{class r{constructor(t){this.router=t,this.faChartBar=h.koM,this.links=[{link:"routingreport",name:"Routing"},{link:"transactions",name:"Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){const t=this.links.find(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(s=>s instanceof _t.Av)).subscribe({next:s=>{const L=this.links.find(vA=>s.urlAfterRedirects.includes(vA.link));this.activeLink=L?L.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-reports"]],decls:10,vars:2,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Reports"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),A.YNc(8,fg,2,3,"div",6),A.qZA(),A._UZ(9,"router-outlet"),A.qZA()()()),2&t&&(A.xp6(1),A.Q6J("icon",s.faChartBar),A.xp6(7),A.Q6J("ngForOf",s.links))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,ft.BU,Et.sg,ft.Nj,_t.rH,_t.lC],styles:[""]}),r})();var Jl=Nt(7772),Ol=Nt(7671),kl=Nt(1210);function Eg(r,y){1&r&&(A.TgZ(0,"div",14),A._UZ(1,"mat-progress-bar",15),A.TgZ(2,"p"),A._uU(3,"Getting Forwarding History..."),A.qZA()())}function wg(r,y){if(1&r&&(A.TgZ(0,"div",16),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function Cg(r,y){if(1&r&&(A.TgZ(0,"div",17),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=A.oxw();A.Q6J("@fadeIn",t.totalFeeMsat),A.xp6(1),A.AsE("",A.xi3(2,3,t.totalFeeMsat/1e3||0,"1.0-2")," Sats/",A.lcZ(3,6,t.filteredEventsBySelectedPeriod.length||0)," Events")}}function Qg(r,y){1&r&&(A.TgZ(0,"div",14),A._uU(1,"No routing report for the selected period"),A.qZA())}function dg(r,y){if(1&r&&(A.TgZ(0,"span")(1,"span",20),A._uU(2),A.ALo(3,"number"),A.qZA(),A.TgZ(4,"span",20),A._uU(5),A.ALo(6,"number"),A.qZA()()),2&r){const t=y.model,s=A.oxw(2);A.xp6(2),A.hij("Events: ",A.lcZ(3,2,(s.selReportBy===s.reportBy.EVENTS?t.value:t.extra.totalEvents)||0),""),A.xp6(3),A.hij("Fee: ",A.xi3(6,4,(s.selReportBy===s.reportBy.EVENTS?t.extra.totalFees:t.value)||0,"1.0-2"),"")}}function Mg(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"ngx-charts-bar-vertical",18),A.NdJ("select",function(L){return A.CHM(t),A.oxw().onChartBarSelected(L)})("mouseup",function(L){return A.CHM(t),A.oxw().onChartMouseUp(L)}),A.YNc(1,dg,7,7,"ng-template",null,19,A.W1O),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("view",t.view)("results",t.routingReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",t.showYAxisLabel)("xAxisLabel",t.xAxisLabel)("yAxisLabel",t.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function pg(r,y){if(1&r&&A._UZ(0,"rtl-cln-forwarding-history",21),2&r){const t=A.oxw();A.Q6J("eventsData",t.filteredEventsBySelectedPeriod)("filterValue",t.eventFilterValue)}}let Ig=(()=>{class r{constructor(t,s,L,vA){this.logger=t,this.commonService=s,this.store=L,this.dataService=vA,this.reportPeriod=a.op[0],this.secondsInADay=86400,this.events=[],this.filteredEventsBySelectedPeriod=[],this.eventFilterValue="",this.reportBy=a.Xr,this.selReportBy=a.Xr.FEES,this.totalFeeMsat=null,this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.routingReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Fee (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===a.cu.XS||this.screenSize===a.cu.SM),this.store.select(g.Bo).pipe((0,i.R)(this.unSubs[0]),(0,o.M)(this.store.select(g.ey))).subscribe(([t,s])=>{t.forwardingHistory.status===a.OO.SETTLED&&(t.apiCallStatus.status===a.Bn.COMPLETED||t.apiCallStatus.status===a.Bn.ERROR)&&(s.api_version&&this.commonService.isVersionCompatible(s.api_version,"0.7.3")?this.dataService.getForwardingHistory("CLN","","",a.OO.SETTLED).pipe((0,i.R)(this.unSubs[0])).subscribe(L=>{this.events=L||[],this.filterForwardingEvents(this.startDate,this.endDate),this.logger.info(L)}):(this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.events=t.forwardingHistory.listForwards||[],this.filterForwardingEvents(this.startDate,this.endDate),this.logger.info(t)))}),this.commonService.containerSizeUpdated.pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{switch(this.screenSize){case a.cu.MD:this.screenPaddingX=t.width/10;break;case a.cu.LG:this.screenPaddingX=t.width/16;break;default:this.screenPaddingX=t.width/20}this.view=[t.width-this.screenPaddingX,t.height/2.2],this.logger.info("Container Size: "+JSON.stringify(t)),this.logger.info("View: "+JSON.stringify(this.view))})}filterForwardingEvents(t,s){const L=Math.round(t.getTime()/1e3),vA=Math.round(s.getTime()/1e3);this.filteredEventsBySelectedPeriod=[],this.routingReportData=[],this.totalFeeMsat=null,this.events&&this.events.length>0&&(this.events.forEach(gt=>{gt.received_time>=L&>.received_time0&&"ngx-charts"===t.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(t){this.eventFilterValue=this.reportPeriod===a.op[1]?t.name+"/"+this.startDate.getFullYear():t.name.toString().padStart(2,"0")+"/"+a.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(t){const s=Math.round(t.getTime()/1e3),L=[];if(this.totalFeeMsat=0,this.reportPeriod===a.op[1]){for(let vA=0;vA<12;vA++)L.push({name:a.gg[vA].name,value:0,extra:{totalEvents:0}});this.filteredEventsBySelectedPeriod.map(vA=>{const gt=new Date(1e3*+vA.received_time).getMonth();return L[gt].value=L[gt].value+ +vA.fee/1e3,L[gt].extra.totalEvents=L[gt].extra.totalEvents+1,this.totalFeeMsat=(this.totalFeeMsat?this.totalFeeMsat:0)+ +vA.fee,this.filteredEventsBySelectedPeriod})}else{for(let vA=0;vA{const gt=Math.floor((+vA.received_time-s)/this.secondsInADay);return L[gt].value=L[gt].value+ +vA.fee/1e3,L[gt].extra.totalEvents=L[gt].extra.totalEvents+1,this.totalFeeMsat=(this.totalFeeMsat?this.totalFeeMsat:0)+ +vA.fee,this.filteredEventsBySelectedPeriod})}return L}prepareEventsReport(t){const s=Math.round(t.getTime()/1e3),L=[];if(this.totalFeeMsat=0,this.reportPeriod===a.op[1]){for(let vA=0;vA<12;vA++)L.push({name:a.gg[vA].name,value:0,extra:{totalFees:0}});this.filteredEventsBySelectedPeriod.map(vA=>{const gt=new Date(1e3*+vA.received_time).getMonth();return L[gt].value=L[gt].value+1,L[gt].extra.totalFees=L[gt].extra.totalFees+ +vA.fee/1e3,this.totalFeeMsat=(this.totalFeeMsat?this.totalFeeMsat:0)+ +vA.fee,this.filteredEventsBySelectedPeriod})}else{for(let vA=0;vA{const gt=Math.floor((+vA.received_time-s)/this.secondsInADay);return L[gt].value=L[gt].value+1,L[gt].extra.totalFees=L[gt].extra.totalFees+ +vA.fee/1e3,this.totalFeeMsat=(this.totalFeeMsat?this.totalFeeMsat:0)+ +vA.fee,this.filteredEventsBySelectedPeriod})}return L}onSelectionChange(t){const s=t.selDate.getMonth(),L=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===a.op[1]?(this.startDate=new Date(L,0,1,0,0,0),this.endDate=new Date(L,11,31,23,59,59)):(this.startDate=new Date(L,s,1,0,0,0),this.endDate=new Date(L,s,this.getMonthDays(s,L),23,59,59)),this.filterForwardingEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(t,s){return 1===t&&s%4==0?a.gg[t].days+1:a.gg[t].days}onSelReportByChange(){this.yAxisLabel=this.selReportBy===this.reportBy.EVENTS?"Events":"Fee (Sats)",this.routingReportData=this.selReportBy===this.reportBy.EVENTS?this.prepareEventsReport(this.startDate):this.prepareFeeReport(this.startDate)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh),A.Y36(PA.D))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-routing-report"]],hostBindings:function(t,s){1&t&&A.NdJ("mouseup",function(vA){return s.onChartMouseUp(vA)})},decls:19,vars:9,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","center center",1,"padding-gap-x"],["color","primary","name","selReportBy","fxFlex","100","fxLayoutAlign","start start",1,"my-1",3,"ngModel","ngModelChange","change"],[1,"mr-2"],["tabindex","1",1,"mr-2",3,"value"],["tabindex","2",3,"value"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1 error-border",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],[1,"mt-1"],["class","one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup",4,"ngIf"],[3,"eventsData","filterValue",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],["mode","indeterminate"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1","error-border"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],[1,"one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"eventsData","filterValue"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0)(1,"rtl-horizontal-scroller",1),A.NdJ("stepChanged",function(vA){return s.onSelectionChange(vA)}),A.qZA(),A.TgZ(2,"div",2)(3,"mat-radio-group",3),A.NdJ("ngModelChange",function(vA){return s.selReportBy=vA})("change",function(){return s.onSelReportByChange()}),A.TgZ(4,"span",4),A._uU(5,"Report By: "),A.qZA(),A.TgZ(6,"mat-radio-button",5),A._uU(7,"Fees"),A.qZA(),A.TgZ(8,"mat-radio-button",6),A._uU(9,"Events"),A.qZA()()(),A.TgZ(10,"div",7),A.YNc(11,Eg,4,0,"div",8),A.YNc(12,wg,2,1,"div",9),A.YNc(13,Cg,4,8,"div",10),A.YNc(14,Qg,2,0,"div",8),A.TgZ(15,"div",11),A.YNc(16,Mg,3,11,"ngx-charts-bar-vertical",12),A.qZA(),A.TgZ(17,"div",11),A.YNc(18,pg,1,2,"rtl-cln-forwarding-history",13),A.qZA()()()),2&t&&(A.xp6(3),A.Q6J("ngModel",s.selReportBy),A.xp6(3),A.s9C("value",s.reportBy.FEES),A.xp6(2),A.s9C("value",s.reportBy.EVENTS),A.xp6(3),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.ERROR),A.xp6(1),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.COMPLETED&&s.routingReportData.length>0&&s.filteredEventsBySelectedPeriod.length>0),A.xp6(1),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.COMPLETED&&(s.routingReportData.length<=0||s.filteredEventsBySelectedPeriod.length<=0)),A.xp6(2),A.Q6J("ngIf",s.routingReportData.length>0&&s.filteredEventsBySelectedPeriod.length>0),A.xp6(2),A.Q6J("ngIf",s.filteredEventsBySelectedPeriod&&s.filteredEventsBySelectedPeriod.length>0))},directives:[Ct.xw,Ct.Wh,Ct.yH,Ol.D,zA.VQ,OA.JJ,OA.On,zA.U0,Et.O5,Y.pW,kl.K$,na],pipes:[Et.JJ],styles:[""],data:{animation:[Jl.J]}}),r})();var mg=Nt(165);function vg(r,y){if(1&r&&(A.TgZ(0,"div",10),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.AsE(" Paid ",A.xi3(2,2,t.transactionsReportSummary.amountPaidSelectedPeriod/1e3||0,"1.0-2")," Sats/",A.lcZ(3,5,t.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function Dg(r,y){if(1&r&&(A.TgZ(0,"div",10),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.AsE(" Received ",A.xi3(2,2,t.transactionsReportSummary.amountReceivedSelectedPeriod/1e3||0,"1.0-2")," Sats/",A.lcZ(3,5,t.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function yg(r,y){if(1&r&&(A.TgZ(0,"div",8),A.YNc(1,vg,4,7,"div",9),A.YNc(2,Dg,4,7,"div",9),A.qZA()),2&r){const t=A.oxw();A.Q6J("@fadeIn",t.transactionsReportSummary),A.xp6(1),A.Q6J("ngIf",t.transactionsReportSummary.paymentsSelectedPeriod),A.xp6(1),A.Q6J("ngIf",t.transactionsReportSummary.invoicesSelectedPeriod)}}function xg(r,y){1&r&&(A.TgZ(0,"div",11),A._uU(1,"No transactions report for the selected period"),A.qZA())}function Fg(r,y){if(1&r&&(A.TgZ(0,"span",14),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=y.model;A.xp6(1),A.HOy("",t.name,": ",A.xi3(2,4,t.value||0,"1.0-2"),"/# ","Paid"===t.name?"Payments":"Invoices",": ",A.lcZ(3,7,(null==t.extra?null:t.extra.total)||0),"")}}function Yg(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"ngx-charts-bar-vertical-2d",12),A.NdJ("select",function(L){return A.CHM(t),A.oxw().onChartBarSelected(L)})("mouseup",function(L){return A.CHM(t),A.oxw().onChartMouseUp(L)}),A.YNc(1,Fg,4,9,"ng-template",null,13,A.W1O),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("view",t.view)("results",t.transactionsReportData)("noBarWhenZero",!1)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",t.showYAxisLabel)("xAxisLabel",t.xAxisLabel)("yAxisLabel",t.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)("groupPadding",t.reportPeriod===t.scrollRanges[0]?2:4)}}function Tg(r,y){if(1&r&&A._UZ(0,"rtl-transactions-report-table",15),2&r){const t=A.oxw();A.Q6J("dataList",t.transactionsNonZeroReportData)("dataRange",t.reportPeriod)("filterValue",t.transactionFilterValue)}}let Sg=(()=>{class r{constructor(t,s,L){this.logger=t,this.commonService=s,this.store=L,this.scrollRanges=a.op,this.reportPeriod=a.op[0],this.secondsInADay=86400,this.payments=[],this.invoices=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0},this.transactionFilterValue="",this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.transactionsReportData=[],this.transactionsNonZeroReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Amount (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=a.cu,this.unSubs=[new c.x,new c.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===a.cu.XS||this.screenSize===a.cu.SM),this.store.select(g.PP).pipe((0,i.R)(this.unSubs[0]),(0,o.M)(this.store.select(g.gc))).subscribe(([t,s])=>{this.payments=t.payments,this.invoices=s.listInvoices.invoices,this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData()}),this.commonService.containerSizeUpdated.pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{switch(this.screenSize){case a.cu.MD:this.screenPaddingX=t.width/10;break;case a.cu.LG:this.screenPaddingX=t.width/16;break;default:this.screenPaddingX=t.width/20}this.view=[t.width-this.screenPaddingX,t.height/2.2],this.logger.info("Container Size: "+JSON.stringify(t)),this.logger.info("View: "+JSON.stringify(this.view))})}onChartMouseUp(t){"svg"===t.srcElement.tagName&&t.srcElement.classList.length>0&&"ngx-charts"===t.srcElement.classList[0]&&(this.transactionFilterValue="")}onChartBarSelected(t){this.transactionFilterValue=this.reportPeriod===a.op[1]?t.series+"/"+this.startDate.getFullYear():t.series.toString().padStart(2,"0")+"/"+a.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(t,s){const L=Math.round(t.getTime()/1e3),vA=Math.round(s.getTime()/1e3),gt=[];this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const ae=this.payments.filter(Qe=>"complete"===Qe.status&&Qe.created_at>=L&&Qe.created_at"paid"===Qe.status&&Qe.paid_at>=L&&Qe.paid_at{const An=new Date(1e3*Qe.created_at).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+Qe.msatoshi_sent,gt[An].series[0].value=gt[An].series[0].value+Qe.msatoshi_sent/1e3,gt[An].series[0].extra.total=gt[An].series[0].extra.total+1,this.transactionsReportSummary}),un.map(Qe=>{const An=new Date(1e3*+Qe.paid_at).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+Qe.msatoshi_received,gt[An].series[1].value=gt[An].series[1].value+Qe.msatoshi_received/1e3,gt[An].series[1].extra.total=gt[An].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let Qe=0;Qe{const An=Math.floor((+Qe.created_at-L)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+Qe.msatoshi_sent,gt[An].series[0].value=gt[An].series[0].value+Qe.msatoshi_sent/1e3,gt[An].series[0].extra.total=gt[An].series[0].extra.total+1,this.transactionsReportSummary}),un.map(Qe=>{const An=Math.floor((+Qe.paid_at-L)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+Qe.msatoshi_received,gt[An].series[1].value=gt[An].series[1].value+Qe.msatoshi_received/1e3,gt[An].series[1].extra.total=gt[An].series[1].extra.total+1,this.transactionsReportSummary})}return gt}prepareTableData(){return this.transactionsReportData.reduce((t,s)=>s.series[0].extra.total>0||s.series[1].extra.total>0?t.concat({date:s.date,amount_paid:s.series[0].value,num_payments:s.series[0].extra.total,amount_received:s.series[1].value,num_invoices:s.series[1].extra.total}):t,[])}onSelectionChange(t){const s=t.selDate.getMonth(),L=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===a.op[1]?(this.startDate=new Date(L,0,1,0,0,0),this.endDate=new Date(L,11,31,23,59,59)):(this.startDate=new Date(L,s,1,0,0,0),this.endDate=new Date(L,s,this.getMonthDays(s,L),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(t,s){return 1===t&&s%4==0?a.gg[t].days+1:a.gg[t].days}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-transactions-report"]],hostBindings:function(t,s){1&t&&A.NdJ("mouseup",function(vA){return s.onChartMouseUp(vA)})},decls:9,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],[1,"mt-1"],["class","two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup",4,"ngIf"],[3,"dataList","dataRange","filterValue",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],[1,"two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"dataList","dataRange","filterValue"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0)(1,"rtl-horizontal-scroller",1),A.NdJ("stepChanged",function(vA){return s.onSelectionChange(vA)}),A.qZA(),A.TgZ(2,"div",2),A.YNc(3,yg,3,3,"div",3),A.YNc(4,xg,2,0,"div",4),A.TgZ(5,"div",5),A.YNc(6,Yg,3,13,"ngx-charts-bar-vertical-2d",6),A.qZA(),A.TgZ(7,"div",5),A.YNc(8,Tg,1,3,"rtl-transactions-report-table",7),A.qZA()()()),2&t&&(A.xp6(3),A.Q6J("ngIf",s.transactionsNonZeroReportData.length>0),A.xp6(1),A.Q6J("ngIf",s.transactionsNonZeroReportData.length<=0),A.xp6(2),A.Q6J("ngIf",s.transactionsNonZeroReportData.length>0),A.xp6(2),A.Q6J("ngIf",s.transactionsNonZeroReportData.length>0))},directives:[Ct.xw,Ct.Wh,Ct.yH,Ol.D,Et.O5,kl.H5,mg.g],pipes:[Et.JJ],styles:[""],data:{animation:[Jl.J]}}),r})();var ze=Nt(1643),Ng=Nt(9442);function Ug(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",8),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().activeLink=vA.link}),A._uU(1),A.qZA()}if(2&r){const t=y.$implicit,s=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",s.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let Pg=(()=>{class r{constructor(t){this.router=t,this.faSearch=h.wn1,this.links=[{link:"lookups",name:"Lookup"},{link:"queryroutes",name:"Query Routes"}],this.activeLink=this.links[0].link,this.unSubs=[new c.x,new c.x,new c.x,new c.x]}ngOnInit(){const t=this.links.find(s=>this.router.url.includes(s.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(s=>s instanceof _t.Av)).subscribe({next:s=>{const L=this.links.find(vA=>s.urlAfterRedirects.includes(vA.link));this.activeLink=L?L.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-graph"]],decls:11,vars:2,consts:[["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Graph Lookups"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),A.YNc(8,Ug,2,3,"div",6),A.qZA(),A.TgZ(9,"div",7),A._UZ(10,"router-outlet"),A.qZA()()()()),2&t&&(A.xp6(1),A.Q6J("icon",s.faSearch),A.xp6(7),A.Q6J("ngForOf",s.links))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,ft.BU,Et.sg,ft.Nj,_t.rH,Ct.yH,_t.lC],styles:[""]}),r})();var Rg=Nt(4641),zg=Nt(8493);function Lg(r,y){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.offerError)}}function bg(r,y){if(1&r&&(A.TgZ(0,"div",21),A._UZ(1,"fa-icon",22),A.YNc(2,Lg,2,1,"span",23),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.offerError)}}let Gg=(()=>{class r{constructor(t,s,L,vA,gt,ae){this.dialogRef=t,this.data=s,this.store=L,this.decimalPipe=vA,this.commonService=gt,this.actions=ae,this.faExclamationTriangle=h.eHv,this.selNode={},this.description="",this.vendor="",this.offerValueHint="",this.information={},this.pageSize=a.IV,this.offerError="",this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(g.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(g.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t,this.vendor=this.information.alias}),this.actions.pipe((0,i.R)(this.unSubs[2]),(0,JA.h)(t=>t.type===a.AB.UPDATE_API_CALL_STATUS_CLN)).subscribe(t=>{t.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&"SaveNewOffer"===t.payload.action&&(t.payload.status===a.Bn.ERROR&&(this.offerError=t.payload.message),t.payload.status===a.Bn.COMPLETED&&this.dialogRef.close())})}onAddOffer(){this.offerError="",this.store.dispatch((0,ht.dh)({payload:{amount:this.offerValue?this.offerValue+"sats":"any",description:this.description,vendor:this.vendor}}))}resetData(){this.description="",this.vendor=this.information.alias,this.offerValue=null,this.offerValueHint="",this.offerError=""}onOfferValueChange(){this.selNode.fiatConversion&&this.offerValue>99&&(this.offerValueHint="",this.commonService.convertCurrency(this.offerValue,a.NT.SATS,a.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,i.R)(this.unSubs[3])).subscribe({next:t=>{this.offerValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,a.Xz.OTHER)+" "+t.unit},error:t=>{this.offerValueHint="Conversion Error: "+t}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(u.yh),A.Y36(Et.JJ),A.Y36(e.v),A.Y36(C.eX))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-create-offer"]],decls:28,vars:8,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","6","fxFlex","5","fxLayoutAlign","center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","start space-between","fxFlex","100"],["addOfferForm","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","autoFocus","","placeholder","Description","tabindex","1","name","description",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","space-between start","fxFlex","100"],["fxFlex","40"],["matInput","","placeholder","Amount","type","number","tabindex","2","name","offerValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxFlex","58","fxLayoutAlign","start end"],["matInput","","placeholder","Vendor","tabindex","3","name","vendor",3,"ngModel","ngModelChange"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","4","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","5",3,"click"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5,"Create Offer"),A.qZA()(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"mat-form-field",9)(12,"input",10),A.NdJ("ngModelChange",function(vA){return s.description=vA}),A.qZA()(),A.TgZ(13,"div",11)(14,"mat-form-field",12)(15,"input",13),A.NdJ("ngModelChange",function(vA){return s.offerValue=vA})("keyup",function(){return s.onOfferValueChange()}),A.qZA(),A.TgZ(16,"span",14),A._uU(17," Sats "),A.qZA(),A.TgZ(18,"mat-hint"),A._uU(19),A.qZA()(),A.TgZ(20,"mat-form-field",15)(21,"input",16),A.NdJ("ngModelChange",function(vA){return s.vendor=vA}),A.qZA()()(),A.YNc(22,bg,3,2,"div",17),A.TgZ(23,"div",18)(24,"button",19),A.NdJ("click",function(){return s.resetData()}),A._uU(25,"Clear Field"),A.qZA(),A.TgZ(26,"button",20),A.NdJ("click",function(){return s.onAddOffer()}),A._uU(27,"Create Offer"),A.qZA()()()()()()),2&t&&(A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(6),A.Q6J("ngModel",s.description),A.xp6(3),A.Q6J("ngModel",s.offerValue)("step",100)("min",1),A.xp6(4),A.Oqu(s.offerValueHint),A.xp6(2),A.Q6J("ngModel",s.vendor),A.xp6(1),A.Q6J("ngIf",""!==s.offerError))},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Q.lW,Mt.ZT,w.dn,OA._Y,OA.JL,OA.F,Z.KE,Yt.Nt,OA.Fj,H.h,OA.JJ,OA.On,OA.wV,OA.qQ,k.q,Z.R9,Z.bx,Et.O5,f.BN],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();var jl=Nt(1462);function Hg(r,y){1&r&&A._UZ(0,"mat-progress-bar",28)}function Jg(r,y){1&r&&(A.TgZ(0,"th",29),A._uU(1," Offer ID "),A.qZA())}const Kl=function(r){return{"mr-0":r}};function Og(r,y){if(1&r&&A._UZ(0,"span",35),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Kl,t.screenSize===t.screenSizeEnum.XS))}}function kg(r,y){if(1&r&&A._UZ(0,"span",36),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Kl,t.screenSize===t.screenSizeEnum.XS))}}const jg=function(r){return{"max-width":r}};function Kg(r,y){if(1&r&&(A.TgZ(0,"td",30)(1,"div",31)(2,"span",32),A.YNc(3,Og,1,3,"span",33),A.YNc(4,kg,1,3,"span",34),A._uU(5),A.qZA()()()),2&r){const t=y.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(4,jg,s.screenSize===s.screenSizeEnum.XS?"25rem":"45rem")),A.xp6(2),A.Q6J("ngIf",t.active),A.xp6(1),A.Q6J("ngIf",!t.active),A.xp6(1),A.hij(" ",t.offer_id," ")}}function Vg(r,y){1&r&&(A.TgZ(0,"th",29),A._uU(1," Single Use "),A.qZA())}function Wg(r,y){if(1&r&&(A.TgZ(0,"td",30),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(t.single_use?"Yes":"No")}}function Zg(r,y){1&r&&(A.TgZ(0,"th",29),A._uU(1," Used "),A.qZA())}function Xg(r,y){if(1&r&&(A.TgZ(0,"td",30),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",t.used?"Yes":"No"," ")}}function qg(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"th",37)(1,"div",38)(2,"mat-select",39),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",40),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function _g(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",40),A.NdJ("click",function(){A.CHM(t);const L=A.oxw().$implicit;return A.oxw().onDisableOffer(L)}),A._uU(1,"Disable Offer"),A.qZA()}}function $g(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-option",40),A.NdJ("click",function(){A.CHM(t);const L=A.oxw().$implicit;return A.oxw().onPrintOffer(L)}),A._uU(1,"Export QR code"),A.qZA()}}const AB=function(r){return{"px-3":r}};function tB(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",41)(1,"div",42)(2,"mat-select",43),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",40),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onOfferClick(vA)}),A._uU(5,"View Info"),A.qZA(),A.YNc(6,_g,2,0,"mat-option",44),A.YNc(7,$g,2,0,"mat-option",44),A.qZA()()()}if(2&r){const t=y.$implicit,s=A.oxw();A.Q6J("ngClass",A.VKq(3,AB,s.screenSize!==s.screenSizeEnum.XS)),A.xp6(6),A.Q6J("ngIf",t.active),A.xp6(1),A.Q6J("ngIf",t.active)}}function eB(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No offer available."),A.qZA())}function nB(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting offers..."),A.qZA())}function rB(r,y){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function iB(r,y){if(1&r&&(A.TgZ(0,"td",45),A.YNc(1,eB,2,0,"p",46),A.YNc(2,nB,2,0,"p",46),A.YNc(3,rB,2,1,"p",46),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.offers&&t.offers.data)||(null==t.offers||null==t.offers.data?null:t.offers.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.offers&&t.offers.data)||(null==t.offers||null==t.offers.data?null:t.offers.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.offers&&t.offers.data)||(null==t.offers||null==t.offers.data?null:t.offers.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const aB=function(r){return{"display-none":r}};function oB(r,y){if(1&r&&A._UZ(0,"tr",47),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,aB,(null==t.offers?null:t.offers.data)&&(null==t.offers||null==t.offers.data?null:t.offers.data.length)>0))}}function sB(r,y){1&r&&A._UZ(0,"tr",48)}function lB(r,y){1&r&&A._UZ(0,"tr",49)}const cB=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},gB=function(){return["no_offer"]};let BB=(()=>{class r{constructor(t,s,L,vA,gt,ae,un){this.logger=t,this.store=s,this.commonService=L,this.rtlEffects=vA,this.dataService=gt,this.decimalPipe=ae,this.datePipe=un,this.faHistory=h.qO$,this.selNode={},this.newlyAddedOfferMemo="",this.newlyAddedOfferValue=0,this.description="",this.offerValue=null,this.offerValueHint="",this.displayedColumns=[],this.offerPaymentReq="",this.offerJSONArr=[],this.information={},this.flgSticky=!1,this.private=!1,this.expiryStep=100,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["offer_id","single_use","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["offer_id","single_use","used","actions"]):(this.flgSticky=!0,this.displayedColumns=["offer_id","single_use","used","actions"])}ngOnInit(){this.store.select(g.lw).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(g.ey).pipe((0,i.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(g.Y_).pipe((0,i.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.offerJSONArr=t.offers||[],this.offerJSONArr&&this.offerJSONArr.length>0&&this.sort&&this.paginator&&this.loadOffersTable(this.offerJSONArr),this.logger.info(t)})}ngAfterViewInit(){this.offerJSONArr&&this.offerJSONArr.length>0&&this.sort&&this.paginator&&this.loadOffersTable(this.offerJSONArr)}openCreateOfferModal(){this.store.dispatch((0,kA.qR)({payload:{data:{pageSize:this.pageSize,component:Gg}}}))}onOfferClick(t){this.store.dispatch((0,kA.qR)({payload:{data:{offer:{used:t.used,single_use:t.single_use,active:t.active,offer_id:t.offer_id,bolt12:t.bolt12,bolt12_unsigned:t.bolt12_unsigned},newlyAdded:!1,component:jl.k}}}))}onDisableOffer(t){this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Disable Offer",titleMessage:"Disabling Offer: "+(t.offer_id||t.bolt12),noBtnText:"Cancel",yesBtnText:"Disable"}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[3])).subscribe(s=>{s&&this.store.dispatch((0,ht.i9)({payload:{offer_id:t.offer_id}}))})}onPrintOffer(t){this.dataService.decodePayment(t.bolt12,!1).pipe((0,UA.q)(1)).subscribe(s=>{s.offer_id&&!s.amount_msat?(s.amount_msat="0msat",s.amount=0):s.amount=+(s.amount||s.amount_msat.slice(0,-4));const L={pageSize:"A5",pageOrientation:"portrait",pageMargins:[10,50,10,50],background:{svg:'\n \n \n \n \n \n ',width:249,height:333,absolutePosition:{x:84,y:160}},header:{text:s.vendor||s.issuer||"",alignment:"center",fontSize:25,color:"#272727",margin:[0,20,0,0]},content:[{svg:'',width:249,height:40,alignment:"center"},{text:s.description?s.description.substring(0,160):"",alignment:"center",fontSize:16,color:"#5C5C5C"},{qr:t.bolt12,eccLevel:"M",fit:"227",alignment:"center",absolutePosition:{x:7,y:205}},{text:(null==s?void 0:s.amount_msat)&&0!==(null==s?void 0:s.amount)?this.decimalPipe.transform(s.amount/1e3)+" SATS":"Open amount",fontSize:20,bold:!1,color:"white",alignment:"center",absolutePosition:{x:0,y:430}},{text:"SCAN TO PAY",fontSize:22,bold:!0,color:"white",alignment:"center",absolutePosition:{x:0,y:455}}],footer:{svg:'\n \n \n \n \n ',alignment:"center"}};Rg.createPdf(L,null,null,zg.I.vfs).download("Offer-"+(s&&s.description?s.description:t.bolt12))})}applyFilter(){this.offers.filter=this.selFilter.trim().toLowerCase()}loadOffersTable(t){this.offers=new yA.by(t?[...t]:[]),this.offers.sortingDataAccessor=(s,L)=>s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]:null,this.offers.sort=this.sort,this.offers.filterPredicate=(s,L)=>(("active"===L||"inactive"===L||"used"===L||"unused"===L||"single"===L||"multiple"===L)&&(L=" "+L),((s.active?" active":" inactive")+(s.used?" used":" unused")+(s.single_use?" single":" multiple")+JSON.stringify(s).toLowerCase()).includes(L)),this.offers.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.offers.data&&this.offers.data.length>0&&this.commonService.downloadFile(this.offers.data,"Offers")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(e.v),A.Y36(At.V),A.Y36(PA.D),A.Y36(Et.JJ),A.Y36(Et.uU))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-offers-table"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(WA.NW,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.paginator=L.first)}},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Offers")}])],decls:34,vars:15,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","offer_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","single_use"],["matColumnDef","used"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_offer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["class","dot green","matTooltip","Active","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Inactive","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Active","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Inactive","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","4",1,"mr-0"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,s){1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"button",2),A.NdJ("click",function(){return s.openCreateOfferModal()}),A._uU(3,"Create Offer"),A.qZA()(),A.TgZ(4,"div",3)(5,"div",4)(6,"div",5),A._UZ(7,"fa-icon",6),A.TgZ(8,"span",7),A._uU(9,"Offers History"),A.qZA()(),A.TgZ(10,"mat-form-field",8)(11,"input",9),A.NdJ("keyup",function(){return s.applyFilter()})("ngModelChange",function(vA){return s.selFilter=vA}),A.qZA()()(),A.TgZ(12,"div",10),A.YNc(13,Hg,1,0,"mat-progress-bar",11),A.TgZ(14,"table",12,13),A.ynx(16,14),A.YNc(17,Jg,2,0,"th",15),A.YNc(18,Kg,6,6,"td",16),A.BQk(),A.ynx(19,17),A.YNc(20,Vg,2,0,"th",15),A.YNc(21,Wg,2,1,"td",16),A.BQk(),A.ynx(22,18),A.YNc(23,Zg,2,0,"th",15),A.YNc(24,Xg,2,1,"td",16),A.BQk(),A.ynx(25,19),A.YNc(26,qg,6,0,"th",20),A.YNc(27,tB,8,5,"td",21),A.BQk(),A.ynx(28,22),A.YNc(29,iB,4,3,"td",23),A.BQk(),A.YNc(30,oB,1,3,"tr",24),A.YNc(31,sB,1,0,"tr",25),A.YNc(32,lB,1,0,"tr",26),A.qZA()(),A._UZ(33,"mat-paginator",27),A.qZA()()),2&t&&(A.xp6(7),A.Q6J("icon",s.faHistory),A.xp6(4),A.Q6J("ngModel",s.selFilter),A.xp6(2),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",s.offers)("ngClass",A.VKq(12,cB,""!==s.errorMessage)),A.xp6(16),A.Q6J("matFooterRowDef",A.DdM(14,gB)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.yH,Ct.Wh,Q.lW,f.BN,Z.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,Et.O5,Y.pW,yA.BZ,rt.YE,Et.mk,m.oO,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,Et.PC,m.Zl,aA.gM,R.gD,R.$L,QA.ey,yA.mD,yA.yh,yA.Ke,yA.Q2,yA.as,yA.XQ,yA.nj,yA.Gk,WA.NW],styles:[".mat-column-offer_id[_ngcontent-%COMP%]{flex:0 0 65%;width:65%}.mat-column-offer_id[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();function uB(r,y){1&r&&A._UZ(0,"mat-progress-bar",30)}function fB(r,y){1&r&&(A.TgZ(0,"th",31),A._uU(1," Updated At "),A.qZA())}function hB(r,y){if(1&r&&(A.TgZ(0,"td",32),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,t.lastUpdatedAt,"dd/MMM/y HH:mm"))}}function EB(r,y){1&r&&(A.TgZ(0,"th",31),A._uU(1," Title "),A.qZA())}const Vl=function(r){return{"max-width":r}};function wB(r,y){if(1&r&&(A.TgZ(0,"td",32)(1,"div",33)(2,"span",34),A._uU(3),A.qZA()()()),2&r){const t=y.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(2,Vl,s.screenSize===s.screenSizeEnum.XS?"20rem":"35rem")),A.xp6(2),A.Oqu(t.title)}}function CB(r,y){1&r&&(A.TgZ(0,"th",35),A._uU(1," Amount (Sats) "),A.qZA())}function QB(r,y){if(1&r&&(A.TgZ(0,"td",36)(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(0===t.amountmSat?"Open":A.lcZ(3,1,t.amountmSat/1e3))}}function dB(r,y){1&r&&(A.TgZ(0,"th",31),A._uU(1," Description "),A.qZA())}function MB(r,y){if(1&r&&(A.TgZ(0,"td",32)(1,"div",33)(2,"span",34),A._uU(3),A.qZA()()()),2&r){const t=y.$implicit,s=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(2,Vl,s.screenSize===s.screenSizeEnum.XS?"20rem":"35rem")),A.xp6(2),A.Oqu(t.description)}}function pB(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"th",38)(1,"div",39)(2,"mat-select",40),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",41),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}const IB=function(r){return{"px-3":r}};function mB(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",42)(1,"div",43)(2,"mat-select",44),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",41),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onOfferBookmarkClick(vA)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",41),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onRePayOffer(vA)}),A._uU(7,"Pay Again"),A.qZA(),A.TgZ(8,"mat-option",41),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onDeleteBookmark(vA)}),A._uU(9,"Delete Bookmark"),A.qZA()()()()}if(2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,IB,t.screenSize!==t.screenSizeEnum.XS))}}function vB(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No offer bookmarked."),A.qZA())}function DB(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting offer bookmarks..."),A.qZA())}function yB(r,y){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function xB(r,y){if(1&r&&(A.TgZ(0,"td",45),A.YNc(1,vB,2,0,"p",46),A.YNc(2,DB,2,0,"p",46),A.YNc(3,yB,2,1,"p",46),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.offersBookmarks&&t.offersBookmarks.data)||(null==t.offersBookmarks||null==t.offersBookmarks.data?null:t.offersBookmarks.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.offersBookmarks&&t.offersBookmarks.data)||(null==t.offersBookmarks||null==t.offersBookmarks.data?null:t.offersBookmarks.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.offersBookmarks&&t.offersBookmarks.data)||(null==t.offersBookmarks||null==t.offersBookmarks.data?null:t.offersBookmarks.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const FB=function(r){return{"display-none":r}};function YB(r,y){if(1&r&&A._UZ(0,"tr",47),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,FB,(null==t.offersBookmarks?null:t.offersBookmarks.data)&&(null==t.offersBookmarks||null==t.offersBookmarks.data?null:t.offersBookmarks.data.length)>0))}}function TB(r,y){1&r&&A._UZ(0,"tr",48)}function SB(r,y){1&r&&A._UZ(0,"tr",49)}const NB=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},UB=function(){return["no_offer"]};let PB=(()=>{class r{constructor(t,s,L,vA){this.logger=t,this.store=s,this.commonService=L,this.rtlEffects=vA,this.faHistory=h.qO$,this.displayedColumns=[],this.offersBookmarksJSONArr=[],this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.selFilter="",this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS||this.screenSize===a.cu.SM?(this.flgSticky=!1,this.displayedColumns=["lastUpdatedAt","title","amountmSat","actions"]):this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["lastUpdatedAt","title","amountmSat","description","actions"]):(this.flgSticky=!0,this.displayedColumns=["lastUpdatedAt","title","amountmSat","description","actions"])}ngOnInit(){this.store.select(g.EQ).pipe((0,i.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.offersBookmarksJSONArr=t.offersBookmarks||[],this.offersBookmarksJSONArr&&this.offersBookmarksJSONArr.length>0&&this.sort&&this.paginator&&this.loadOffersTable(this.offersBookmarksJSONArr),this.logger.info(t)})}ngAfterViewInit(){this.offersBookmarksJSONArr&&this.offersBookmarksJSONArr.length>0&&this.sort&&this.paginator&&this.loadOffersTable(this.offersBookmarksJSONArr)}onOfferBookmarkClick(t){this.store.dispatch((0,kA.qR)({payload:{data:{offer:{bolt12:t.bolt12},newlyAdded:!1,component:jl.k}}}))}onDeleteBookmark(t){this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Delete Bookmark",titleMessage:"Deleting Bookmark: "+(t.title||t.description),noBtnText:"Cancel",yesBtnText:"Delete"}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[1])).subscribe(s=>{s&&this.store.dispatch((0,ht._9)({payload:{bolt12:t.bolt12}}))})}onRePayOffer(t){this.store.dispatch((0,kA.qR)({payload:{data:{paymentType:a.IX.OFFER,bolt12:t.bolt12,offerTitle:t.title,component:Cn}}}))}applyFilter(){this.offersBookmarks.filter=this.selFilter.trim().toLowerCase()}loadOffersTable(t){this.offersBookmarks=new yA.by(t?[...t]:[]),this.offersBookmarks.sortingDataAccessor=(s,L)=>s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]:null,this.offersBookmarks.sort=this.sort,this.offersBookmarks.filterPredicate=(s,L)=>JSON.stringify(s).toLowerCase().includes(L),this.offersBookmarks.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){this.offersBookmarks.data&&this.offersBookmarks.data.length>0&&this.commonService.downloadFile(this.offersBookmarks.data,"OfferBookmarks")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(e.v),A.Y36(At.V))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-offer-bookmarks-table"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(WA.NW,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.paginator=L.first)}},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Offer Bookmarks")}])],decls:35,vars:15,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","lastUpdatedAt"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],["matColumnDef","amountmSat"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","pr-2",4,"matHeaderCellDef"],["mat-cell","","class","pr-2",4,"matCellDef"],["matColumnDef","description"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass",4,"matCellDef"],["matColumnDef","no_offer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"pr-2"],["mat-cell","",1,"pr-2"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",3,"ngClass"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"div",1),A.TgZ(2,"div",2)(3,"div",3)(4,"div",4),A._UZ(5,"fa-icon",5),A.TgZ(6,"span",6),A._uU(7,"Offer Bookmarks"),A.qZA()(),A.TgZ(8,"mat-form-field",7)(9,"input",8),A.NdJ("keyup",function(){return s.applyFilter()})("ngModelChange",function(vA){return s.selFilter=vA}),A.qZA()()(),A.TgZ(10,"div",9),A.YNc(11,uB,1,0,"mat-progress-bar",10),A.TgZ(12,"table",11,12),A.ynx(14,13),A.YNc(15,fB,2,0,"th",14),A.YNc(16,hB,3,4,"td",15),A.BQk(),A.ynx(17,16),A.YNc(18,EB,2,0,"th",14),A.YNc(19,wB,4,4,"td",15),A.BQk(),A.ynx(20,17),A.YNc(21,CB,2,0,"th",18),A.YNc(22,QB,4,3,"td",19),A.BQk(),A.ynx(23,20),A.YNc(24,dB,2,0,"th",14),A.YNc(25,MB,4,4,"td",15),A.BQk(),A.ynx(26,21),A.YNc(27,pB,6,0,"th",22),A.YNc(28,mB,10,3,"td",23),A.BQk(),A.ynx(29,24),A.YNc(30,xB,4,3,"td",25),A.BQk(),A.YNc(31,YB,1,3,"tr",26),A.YNc(32,TB,1,0,"tr",27),A.YNc(33,SB,1,0,"tr",28),A.qZA()(),A._UZ(34,"mat-paginator",29),A.qZA()()),2&t&&(A.xp6(5),A.Q6J("icon",s.faHistory),A.xp6(4),A.Q6J("ngModel",s.selFilter),A.xp6(2),A.Q6J("ngIf",(null==s.apiCallStatus?null:s.apiCallStatus.status)===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",s.offersBookmarks)("ngClass",A.VKq(12,NB,""!==s.errorMessage)),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(14,UB)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.yH,Ct.Wh,f.BN,Z.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,Et.O5,Y.pW,yA.BZ,rt.YE,Et.mk,m.oO,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,Et.PC,m.Zl,R.gD,R.$L,QA.ey,yA.mD,yA.yh,yA.Ke,yA.Q2,yA.as,yA.XQ,yA.nj,yA.Gk,WA.NW],pipes:[Et.uU,Et.JJ],styles:[".mat-column-title[_ngcontent-%COMP%], .mat-column-description[_ngcontent-%COMP%]{flex:0 0 30%;width:30%}.mat-column-title[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%], .mat-column-description[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();function RB(r,y){if(1&r&&(A.TgZ(0,"div",5),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function zB(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"div",6),A._UZ(1,"div",7),A.TgZ(2,"mat-form-field",8)(3,"input",9),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(L){return A.CHM(t),A.oxw().selFilter=L}),A.qZA()()()}if(2&r){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.selFilter)}}function LB(r,y){1&r&&A._UZ(0,"mat-progress-bar",31)}function bB(r,y){1&r&&(A.TgZ(0,"th",32),A._uU(1,"Received Time"),A.qZA())}function GB(r,y){if(1&r&&(A.TgZ(0,"td",33),A._uU(1),A.ALo(2,"date"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.received_time),"dd/MMM/y HH:mm"))}}function HB(r,y){1&r&&(A.TgZ(0,"th",32),A._uU(1,"In Channel"),A.qZA())}function JB(r,y){if(1&r&&(A.TgZ(0,"td",33),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.Oqu(null==t?null:t.in_channel_alias)}}function OB(r,y){1&r&&(A.TgZ(0,"th",34),A._uU(1,"Amount In (Sats)"),A.qZA())}function kB(r,y){if(1&r&&(A.TgZ(0,"td",33)(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.Oqu(A.xi3(3,1,(null==t?null:t.in_msatoshi)/1e3,(null==t?null:t.in_msatoshi)<1e3?"1.0-4":"1.0-0"))}}function jB(r,y){1&r&&(A.TgZ(0,"th",36),A._uU(1,"Fail Reason"),A.qZA())}function KB(r,y){if(1&r&&(A.TgZ(0,"td",37),A._uU(1),A.qZA()),2&r){const t=y.$implicit,s=A.oxw(2);A.xp6(1),A.Oqu(s.CLNFailReason[null==t?null:t.failreason])}}function VB(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"th",38)(1,"div",39)(2,"mat-select",40),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",41),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function WB(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",42)(1,"button",43),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw(2).onFailedLocalEventClick(vA)}),A._uU(2,"View Info"),A.qZA()()}}function ZB(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No failed transaction available."),A.qZA())}function XB(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting failed transactions..."),A.qZA())}function qB(r,y){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function _B(r,y){if(1&r&&(A.TgZ(0,"td",44),A.YNc(1,ZB,2,0,"p",45),A.YNc(2,XB,2,0,"p",45),A.YNc(3,qB,2,1,"p",45),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedLocalForwardingEvents&&t.failedLocalForwardingEvents.data)||(null==t.failedLocalForwardingEvents||null==t.failedLocalForwardingEvents.data?null:t.failedLocalForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedLocalForwardingEvents&&t.failedLocalForwardingEvents.data)||(null==t.failedLocalForwardingEvents||null==t.failedLocalForwardingEvents.data?null:t.failedLocalForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.failedLocalForwardingEvents&&t.failedLocalForwardingEvents.data)||(null==t.failedLocalForwardingEvents||null==t.failedLocalForwardingEvents.data?null:t.failedLocalForwardingEvents.data.length)<1)&&(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.ERROR)}}const $B=function(r){return{"display-none":r}};function Au(r,y){if(1&r&&A._UZ(0,"tr",46),2&r){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,$B,(null==t.failedLocalForwardingEvents?null:t.failedLocalForwardingEvents.data)&&(null==t.failedLocalForwardingEvents||null==t.failedLocalForwardingEvents.data?null:t.failedLocalForwardingEvents.data.length)>0))}}function tu(r,y){1&r&&A._UZ(0,"tr",47)}function eu(r,y){1&r&&A._UZ(0,"tr",48)}const nu=function(){return["no_event"]};function ru(r,y){if(1&r&&(A.TgZ(0,"div",10),A.YNc(1,LB,1,0,"mat-progress-bar",11),A.TgZ(2,"table",12,13),A.ynx(4,14),A.YNc(5,bB,2,0,"th",15),A.YNc(6,GB,3,4,"td",16),A.BQk(),A.ynx(7,17),A.YNc(8,HB,2,0,"th",15),A.YNc(9,JB,2,1,"td",16),A.BQk(),A.ynx(10,18),A.YNc(11,OB,2,0,"th",19),A.YNc(12,kB,4,4,"td",16),A.BQk(),A.ynx(13,20),A.YNc(14,jB,2,0,"th",21),A.YNc(15,KB,2,1,"td",22),A.BQk(),A.ynx(16,23),A.YNc(17,VB,6,0,"th",24),A.YNc(18,WB,3,0,"td",25),A.BQk(),A.ynx(19,26),A.YNc(20,_B,4,3,"td",27),A.BQk(),A.YNc(21,Au,1,3,"tr",28),A.YNc(22,tu,1,0,"tr",29),A.YNc(23,eu,1,0,"tr",30),A.qZA()()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(null==t.apiCallStatus?null:t.apiCallStatus.status)===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",t.failedLocalForwardingEvents),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(6,nu)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function iu(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"mat-paginator",49),A.NdJ("page",function(L){return A.CHM(t),A.oxw().onPageChange(L)}),A.qZA()}if(2&r){const t=A.oxw();A.Q6J("length",t.totalLocalFailedTransactions)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let au=(()=>{class r{constructor(t,s,L,vA,gt){this.logger=t,this.commonService=s,this.store=L,this.datePipe=vA,this.router=gt,this.flgCompatible=!0,this.information={},this.CLNFailReason=a.p7,this.errorMessage="",this.displayedColumns=[],this.flgSticky=!1,this.selFilter="",this.indexOffset=-1,this.totalLocalFailedTransactions=0,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.apiCallStatus=null,this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS||this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["received_time","in_channel","in_msatoshi","actions"]):(this.flgSticky=!0,this.displayedColumns=["received_time","in_channel","in_msatoshi","failreason","actions"])}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.store.dispatch((0,ht.u0)({payload:{status:a.OO.LOCAL_FAILED,maxLen:this.pageSize,offset:0}})),this.store.select(g.lK).pipe((0,i.R)(this.unSubs[0]),(0,o.M)(this.store.select(g.ey))).subscribe(([t,s])=>{this.information=s,this.flgCompatible=!this.information.api_version||this.commonService.isVersionCompatible(this.information.api_version,"0.7.3"),this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===a.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.totalLocalFailedTransactions=t.localFailedForwardingHistory.totalForwards,this.indexOffset=t.localFailedForwardingHistory.offset,this.failedLocalEvents=t.localFailedForwardingHistory.listForwards||[],this.failedLocalEvents.length>0&&this.sort&&this.paginator&&this.loadLocalfailedLocalEventsTable(this.flgCompatible?this.failedLocalEvents:this.failedLocalEvents.slice(0,this.pageSize)),this.logger.info(t)})}ngAfterViewInit(){this.failedLocalEvents.length>0&&this.loadLocalfailedLocalEventsTable(this.flgCompatible?this.failedLocalEvents:this.failedLocalEvents.slice(0,this.pageSize))}onFailedLocalEventClick(t){this.store.dispatch((0,kA.qR)({payload:{data:{type:a.n_.INFORMATION,alertTitle:"Local Failed Event Information",message:[[{key:"received_time",value:t.received_time,title:"Received Time",width:50,type:a.Gi.DATE_TIME},{key:"in_channel_alias",value:t.in_channel_alias,title:"Inbound Channel",width:50,type:a.Gi.STRING}],[{key:"in_msatoshi",value:t.in_msatoshi,title:"Amount In (mSats)",width:100,type:a.Gi.NUMBER}],[{key:"failreason",value:this.CLNFailReason[t.failreason],title:"Reason for Failure",width:100,type:a.Gi.STRING}]]}}}))}loadLocalfailedLocalEventsTable(t){this.failedLocalForwardingEvents=new yA.by([...t]),this.failedLocalForwardingEvents.filterPredicate=(s,L)=>((s.received_time?this.datePipe.transform(new Date(1e3*s.received_time),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(s.in_channel_alias?s.in_channel_alias.toLowerCase():"")+(s.failreason&&this.CLNFailReason[s.failreason]?this.CLNFailReason[s.failreason].toLowerCase():"")+(s.in_msatoshi?s.in_msatoshi/1e3:"")).includes(L),this.failedLocalForwardingEvents.sort=this.sort,this.failedLocalForwardingEvents.sortingDataAccessor=(s,L)=>"failreason"===L?this.CLNFailReason[s.failreason]:s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]:null,this.applyFilter(),this.logger.info(this.failedLocalForwardingEvents)}onDownloadCSV(){this.failedLocalForwardingEvents&&this.failedLocalForwardingEvents.data&&this.failedLocalForwardingEvents.data.length>0&&this.commonService.downloadFile(this.failedLocalForwardingEvents.data,"Local-failed-transactions")}applyFilter(){this.failedLocalForwardingEvents.filter=this.selFilter.trim().toLowerCase()}onPageChange(t){this.pageSize!==t.pageSize?(this.pageSize=t.pageSize,this.indexOffset=0):this.indexOffset=t.pageIndex*this.pageSize,this.flgCompatible?this.store.dispatch((0,ht.u0)({payload:{status:a.OO.LOCAL_FAILED,maxLen:this.pageSize,offset:this.indexOffset}})):this.loadLocalfailedLocalEventsTable(this.failedLocalEvents.slice(this.indexOffset,this.indexOffset+this.pageSize))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(e.v),A.Y36(u.yh),A.Y36(Et.uU),A.Y36(_t.F0))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-local-failed-history"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(WA.NW,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.paginator=L.first)}},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Local failed events")}])],decls:5,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","received_time"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","in_channel"],["matColumnDef","in_msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","failreason"],["mat-header-cell","","mat-sort-header","","class","pl-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","",1,"pl-3"],["mat-cell","",1,"pl-3"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A.YNc(1,RB,2,1,"div",1),A.YNc(2,zB,4,1,"div",2),A.YNc(3,ru,24,7,"div",3),A.YNc(4,iu,1,4,"mat-paginator",4),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage),A.xp6(1),A.Q6J("ngIf",""===s.errorMessage))},directives:[Ct.xw,Ct.Wh,Et.O5,Ct.yH,Z.KE,Yt.Nt,OA.Fj,OA.JJ,OA.On,lA.$V,Y.pW,yA.BZ,rt.YE,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,R.gD,R.$L,QA.ey,Q.lW,yA.mD,yA.yh,yA.Ke,yA.Q2,Et.mk,m.oO,yA.as,yA.XQ,yA.nj,yA.Gk,WA.NW],pipes:[Et.uU,Et.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})();const ou=["form"];function su(r,y){1&r&&A.GkF(0)}function lu(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Requested amount is required."),A.qZA())}function cu(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee rate is required."),A.qZA())}function gu(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Local amount is required."),A.qZA())}function Bu(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Local amount must be greater than or equal to 20000. This estimate covers force close fee for the provider."),A.qZA())}function uu(r,y){if(1&r&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.hij("Local amount must be less than or equal to ",t.totalBalance,".")}}function fu(r,y){if(1&r&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.channelConnectionError)}}function hu(r,y){if(1&r&&(A.TgZ(0,"div",26),A._UZ(1,"fa-icon",27),A.YNc(2,fu,2,1,"span",15),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.channelConnectionError)}}function Eu(r,y){1&r&&(A.TgZ(0,"th",47),A._uU(1,"Type"),A.qZA())}function wu(r,y){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.type," ")}}function Cu(r,y){1&r&&(A.TgZ(0,"th",47),A._uU(1,"Address"),A.qZA())}function Qu(r,y){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.address," ")}}function du(r,y){1&r&&(A.TgZ(0,"th",47),A._uU(1,"Port"),A.qZA())}function Mu(r,y){if(1&r&&(A.TgZ(0,"td",48),A._uU(1),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.port," ")}}function pu(r,y){1&r&&A._UZ(0,"tr",49)}function Iu(r,y){1&r&&A._UZ(0,"tr",50)}function mu(r,y){if(1&r&&(A.TgZ(0,"mat-expansion-panel",29)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span"),A._uU(4,"Node: \xa0"),A.qZA(),A.TgZ(5,"strong",30),A._uU(6),A.qZA()()(),A.TgZ(7,"div",7)(8,"div",0)(9,"div",1)(10,"h4",31),A._uU(11,"Pubkey"),A.qZA(),A.TgZ(12,"span",32),A._uU(13),A.qZA()()(),A._UZ(14,"mat-divider",33),A.TgZ(15,"div",0)(16,"div",1)(17,"h4",31),A._uU(18,"Last Timestamp"),A.qZA(),A.TgZ(19,"span",34),A._uU(20),A.ALo(21,"date"),A.qZA()()(),A._UZ(22,"mat-divider",33),A.TgZ(23,"div",35)(24,"h4",36),A._uU(25,"Addresses"),A.qZA(),A.TgZ(26,"div",37)(27,"table",38,39),A.ynx(29,40),A.YNc(30,Eu,2,0,"th",41),A.YNc(31,wu,2,1,"td",42),A.BQk(),A.ynx(32,43),A.YNc(33,Cu,2,0,"th",41),A.YNc(34,Qu,2,1,"td",42),A.BQk(),A.ynx(35,44),A.YNc(36,du,2,0,"th",41),A.YNc(37,Mu,2,1,"td",42),A.BQk(),A.YNc(38,pu,1,0,"tr",45),A.YNc(39,Iu,1,0,"tr",46),A.qZA()()()()()),2&r){const t=A.oxw(2);A.xp6(6),A.Oqu((null==t.node?null:t.node.alias)||(null==t.node?null:t.node.nodeid)),A.xp6(7),A.Oqu(t.node.nodeid),A.xp6(7),A.Oqu(A.xi3(21,6,1e3*t.node.last_timestamp,"dd/MMM/y HH:mm")),A.xp6(7),A.Q6J("dataSource",t.node.addresses),A.xp6(11),A.Q6J("matHeaderRowDef",t.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function vu(r,y){if(1&r&&A.YNc(0,mu,40,9,"mat-expansion-panel",28),2&r){const t=A.oxw();A.Q6J("ngIf",t.node)}}let Du=(()=>{class r{constructor(t,s,L,vA){this.dialogRef=t,this.data=s,this.actions=L,this.store=vA,this.faExclamationTriangle=h.eHv,this.totalBalance=0,this.node={},this.requestedAmount=0,this.feeRate=0,this.localAmount=0,this.channelConnectionError="",this.displayedColumns=["type","address","port"],this.unSubs=[new c.x,new c.x]}ngOnInit(){var t,s,L,vA,gt;this.alertTitle=this.data.alertTitle||"",this.totalBalance=(null===(t=this.data.message)||void 0===t?void 0:t.balance)||0,this.node=(null===(s=this.data.message)||void 0===s?void 0:s.node)||{},this.requestedAmount=(null===(L=this.data.message)||void 0===L?void 0:L.requestedAmount)||0,this.feeRate=(null===(vA=this.data.message)||void 0===vA?void 0:vA.feeRate)||0,this.localAmount=(null===(gt=this.data.message)||void 0===gt?void 0:gt.localAmount)||0,this.actions.pipe((0,i.R)(this.unSubs[0]),(0,JA.h)(ae=>ae.type===a.AB.UPDATE_API_CALL_STATUS_CLN||ae.type===a.AB.FETCH_CHANNELS_CLN)).subscribe(ae=>{ae.type===a.AB.UPDATE_API_CALL_STATUS_CLN&&ae.payload.status===a.Bn.ERROR&&"SaveNewChannel"===ae.payload.action&&(this.channelConnectionError=ae.payload.message),ae.type===a.AB.FETCH_CHANNELS_CLN&&this.dialogRef.close()})}onClose(){this.dialogRef.close(!1)}resetData(){var t,s,L;this.form.resetForm(),this.form.controls.ramount.setValue(null===(t=this.data.message)||void 0===t?void 0:t.requestedAmount),this.form.controls.feerate.setValue(null===(s=this.data.message)||void 0===s?void 0:s.feeRate),this.form.controls.lamount.setValue(null===(L=this.data.message)||void 0===L?void 0:L.localAmount),this.calculateFee(),this.channelConnectionError=""}calculateFee(){var t,s,L;this.node.channelOpeningFee=+((null===(t=this.node.option_will_fund)||void 0===t?void 0:t.lease_fee_base_msat)||0)/1e3+this.requestedAmount*+((null===(s=this.node.option_will_fund)||void 0===s?void 0:s.lease_fee_basis)||0)/1e4+ +((null===(L=this.node.option_will_fund)||void 0===L?void 0:L.funding_weight)||0)/4*this.feeRate}onOpenChannel(){if(!this.node||!this.node.option_will_fund||!this.requestedAmount||!this.feeRate||!this.localAmount||this.localAmount<2e4)return!0;const t={peerId:this.node.nodeid||"",satoshis:this.localAmount.toString(),feeRate:this.feeRate+"perkb",requestAmount:this.requestedAmount.toString(),compactLease:this.node.option_will_fund.compact_lease};this.store.dispatch((0,ht.YX)({payload:t}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(Mt.so),A.Y36(Mt.WI),A.Y36(C.eX),A.Y36(u.yh))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-open-liquidity-channel"]],viewQuery:function(t,s){if(1&t&&A.Gf(ou,7),2&t){let L;A.iGM(L=A.CRH())&&(s.form=L.first)}},decls:48,vars:24,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","6","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["form","ngForm"],[4,"ngTemplateOutlet"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-sm","space-between center","fxLayout.gt-sm","row wrap"],["fxFlex","30","fxLayoutAlign","start end"],["autoFocus","","matInput","","placeholder","Requested Amount","type","number","tabindex","1","required","","name","ramount",3,"ngModel","step","min","ngModelChange","keyup"],["ramount","ngModel"],["matSuffix",""],[4,"ngIf"],["matInput","","placeholder","Fee Rate","type","number","tabindex","2","required","","name","feerate",3,"ngModel","step","min","ngModelChange","keyup"],["feeRt","ngModel"],["matInput","","placeholder","Local Amount","type","number","tabindex","3","required","","name","lamount",3,"ngModel","step","min","max","ngModelChange"],["lamount","ngModel"],["fxFlex","100",1,"alert","alert-info","mt-4"],["fxFlex","100","class","alert alert-danger mt-2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","4",1,"mr-1",3,"click"],["autoFocus","","mat-button","","color","primary","tabindex","5",3,"click"],["nodeDetailsExpansionBlock",""],["fxFlex","100",1,"alert","alert-danger","mt-2"],[1,"mr-1","alert-icon",3,"icon"],["class","flat-expansion-panel mt-1 mb-2","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","mt-1","mb-2"],[1,"font-weight-900"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],[1,"overflow-wrap","foreground-secondary-text"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxFlex","100",1,"font-bold-500","mb-1"],[1,"table-container"],["mat-table","","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","type"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","address"],["matColumnDef","port"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(t,s){if(1&t&&(A.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),A._uU(5),A.qZA()(),A.TgZ(6,"button",5),A.NdJ("click",function(){return s.onClose()}),A._uU(7,"X"),A.qZA()(),A.TgZ(8,"mat-card-content",6)(9,"form",7,8),A.YNc(11,su,1,0,"ng-container",9),A.TgZ(12,"div",10)(13,"mat-form-field",11)(14,"input",12,13),A.NdJ("ngModelChange",function(vA){return s.requestedAmount=vA})("keyup",function(){return s.calculateFee()}),A.qZA(),A.TgZ(16,"span",14),A._uU(17," Sats "),A.qZA(),A.YNc(18,lu,2,0,"mat-error",15),A.qZA(),A.TgZ(19,"mat-form-field",11)(20,"input",16,17),A.NdJ("ngModelChange",function(vA){return s.feeRate=vA})("keyup",function(){return s.calculateFee()}),A.qZA(),A.TgZ(22,"span",14),A._uU(23," Sats/vByte "),A.qZA(),A.YNc(24,cu,2,0,"mat-error",15),A.qZA(),A.TgZ(25,"mat-form-field",11)(26,"input",18,19),A.NdJ("ngModelChange",function(vA){return s.localAmount=vA}),A.qZA(),A.TgZ(28,"mat-hint"),A._uU(29),A.ALo(30,"number"),A.qZA(),A.TgZ(31,"span",14),A._uU(32," Sats "),A.qZA(),A.YNc(33,gu,2,0,"mat-error",15),A.YNc(34,Bu,2,0,"mat-error",15),A.YNc(35,uu,2,1,"mat-error",15),A.qZA()(),A.TgZ(36,"div",20)(37,"span"),A._uU(38),A.ALo(39,"number"),A.qZA()(),A.YNc(40,hu,3,2,"div",21),A.TgZ(41,"div",22)(42,"button",23),A.NdJ("click",function(){return s.resetData()}),A._uU(43,"Clear"),A.qZA(),A.TgZ(44,"button",24),A.NdJ("click",function(){return s.onOpenChannel()}),A._uU(45,"Execute"),A.qZA()()()()()(),A.YNc(46,vu,1,1,"ng-template",null,25,A.W1O)),2&t){const L=A.MAs(15),vA=A.MAs(21),gt=A.MAs(27),ae=A.MAs(47);A.xp6(5),A.Oqu(s.alertTitle),A.xp6(6),A.Q6J("ngTemplateOutlet",ae),A.xp6(3),A.Q6J("ngModel",s.requestedAmount)("step",1e4)("min",0),A.xp6(4),A.Q6J("ngIf",null==L.errors?null:L.errors.required),A.xp6(2),A.Q6J("ngModel",s.feeRate)("step",10)("min",0),A.xp6(4),A.Q6J("ngIf",null==vA.errors?null:vA.errors.required),A.xp6(2),A.Q6J("ngModel",s.localAmount)("step",1e4)("min",2e4)("max",s.totalBalance),A.xp6(3),A.hij("Remaining Bal: ",A.lcZ(30,20,s.totalBalance-(s.localAmount?s.localAmount:0)),""),A.xp6(4),A.Q6J("ngIf",null==gt.errors?null:gt.errors.required),A.xp6(1),A.Q6J("ngIf",null==gt.errors?null:gt.errors.min),A.xp6(1),A.Q6J("ngIf",null==gt.errors?null:gt.errors.max),A.xp6(3),A.hij("Total cost to lease ",A.lcZ(39,22,s.node.channelOpeningFee)," (Sats)"),A.xp6(2),A.Q6J("ngIf",""!==s.channelConnectionError)}},directives:[Ct.xw,Ct.yH,w.dk,Ct.Wh,Q.lW,w.dn,OA._Y,OA.JL,OA.F,Et.tP,Z.KE,Yt.Nt,OA.wV,OA.qQ,OA.Fj,k.q,H.h,OA.Q7,OA.JJ,OA.On,Z.R9,Et.O5,Z.TO,OA.Fd,yi.F,Z.bx,f.BN,ar.ib,ar.yz,ar.yK,AA.d,yA.BZ,rt.YE,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,yA.as,yA.XQ,yA.nj,yA.Gk],pipes:[Et.JJ,Et.uU],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),r})();function yu(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Channel amount is required."),A.qZA())}function xu(r,y){1&r&&(A.TgZ(0,"mat-error"),A._uU(1,"Channel opening fee rate is required."),A.qZA())}function Fu(r,y){1&r&&A._UZ(0,"mat-progress-bar",40)}function Yu(r,y){1&r&&(A.TgZ(0,"th",41),A._uU(1," Alias "),A.qZA())}function Tu(r,y){1&r&&A._UZ(0,"span",44)}const Su=function(r){return{"max-width":r}};function Nu(r,y){if(1&r&&(A.TgZ(0,"td",42),A._uU(1),A.YNc(2,Tu,1,0,"span",43),A.qZA()),2&r){const t=y.$implicit,s=A.oxw();A.Q6J("ngStyle",A.VKq(3,Su,s.screenSize===s.screenSizeEnum.XS?"10rem":"40rem")),A.xp6(1),A.hij(" ",null==t?null:t.alias,""),A.xp6(1),A.Q6J("ngIf",t.tor_node)}}function Uu(r,y){1&r&&(A.TgZ(0,"th",45),A._uU(1," Capacity/Channels "),A.qZA())}function Pu(r,y){if(1&r&&(A.TgZ(0,"td",46),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.AsE(" ",A.xi3(2,2,(null==t?null:t.nodeCapacity)/1e8,"1.0-2")," BTC / ",A.xi3(3,5,null==t?null:t.channelCount,"1.0-0")," ")}}function Ru(r,y){1&r&&(A.TgZ(0,"th",45),A._uU(1," Lease Fee "),A.qZA())}function zu(r,y){if(1&r&&(A.TgZ(0,"td",46),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.AsE(" ",A.xi3(2,2,(null==t||null==t.option_will_fund?null:t.option_will_fund.lease_fee_base_msat)/1e3,"1.0-0")," Sats + ",A.xi3(3,5,(null==t||null==t.option_will_fund?null:t.option_will_fund.lease_fee_basis)/100,"1.2-2"),"% ")}}function Lu(r,y){1&r&&(A.TgZ(0,"th",45),A._uU(1," Routing Fee "),A.qZA())}function bu(r,y){if(1&r&&(A.TgZ(0,"td",46),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&r){const t=y.$implicit;A.xp6(1),A.AsE(" ",A.xi3(2,2,(null==t||null==t.option_will_fund?null:t.option_will_fund.channel_fee_max_base_msat)/1e3,"1.0-0")," Sats + ",A.xi3(3,5,1e3*(null==t||null==t.option_will_fund?null:t.option_will_fund.channel_fee_max_proportional_thousandths),"1.0-0")," ppm ")}}function Gu(r,y){1&r&&(A.TgZ(0,"th",47),A._uU(1," Channel Opening Fee "),A.qZA())}function Hu(r,y){if(1&r&&(A.TgZ(0,"td",46)(1,"span",48),A._uU(2),A.ALo(3,"number"),A.qZA()()),2&r){const t=y.$implicit;A.xp6(2),A.hij(" ",A.xi3(3,1,t.channelOpeningFee,"1.0-0")," Sats ")}}function Ju(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"th",49)(1,"div",50)(2,"mat-select",51),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",52),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA()()()()}}function Ou(r,y){if(1&r){const t=A.EpF();A.TgZ(0,"td",53)(1,"div",54)(2,"mat-select",51),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",52),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onViewLeaseInfo(vA)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",52),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().onOpenChannel(vA)}),A._uU(7,"Open Channel"),A.qZA(),A.TgZ(8,"mat-option",52),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().viewLeaseOn(vA,"LN")}),A._uU(9,"View on Lnrouter"),A.qZA(),A.TgZ(10,"mat-option",52),A.NdJ("click",function(){const vA=A.CHM(t).$implicit;return A.oxw().viewLeaseOn(vA,"AM")}),A._uU(11,"View on Amboss"),A.qZA()()()()}}function ku(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"No node with liquidity."),A.qZA())}function ju(r,y){1&r&&(A.TgZ(0,"p"),A._uU(1,"Getting nodes with liquidity..."),A.qZA())}function Ku(r,y){if(1&r&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&r){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function Vu(r,y){if(1&r&&(A.TgZ(0,"td",55),A.YNc(1,ku,2,0,"p",15),A.YNc(2,ju,2,0,"p",15),A.YNc(3,Ku,2,1,"p",15),A.qZA()),2&r){const t=A.oxw();A.xp6(1),A.Q6J("ngIf",(!(null!=t.liquidityNodes&&t.liquidityNodes.data)||(null==t.liquidityNodes||null==t.liquidityNodes.data?null:t.liquidityNodes.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.COMPLETED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.liquidityNodes&&t.liquidityNodes.data)||(null==t.liquidityNodes||null==t.liquidityNodes.data?null:t.liquidityNodes.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(!(null!=t.liquidityNodes&&t.liquidityNodes.data)||(null==t.liquidityNodes||null==t.liquidityNodes.data?null:t.liquidityNodes.data.length)<1)&&t.apiCallStatus.status===t.apiCallStatusEnum.ERROR)}}const Wu=function(r){return{"display-none":r}};function Zu(r,y){if(1&r&&A._UZ(0,"tr",56),2&r){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,Wu,(null==t.liquidityNodes?null:t.liquidityNodes.data)&&(null==t.liquidityNodes||null==t.liquidityNodes.data?null:t.liquidityNodes.data.length)>0))}}function Xu(r,y){1&r&&A._UZ(0,"tr",57)}function qu(r,y){1&r&&A._UZ(0,"tr",58)}const _u=function(r){return{"overflow-auto error-border":r,"overflow-auto":!0}},$u=function(){return["no_lqNode"]},ef=_t.Bz.forChild([{path:"",component:n,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:xo,canActivate:[ze.eQ]},{path:"onchain",component:jr,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"receive/utxos"},{path:"receive/:selTab",component:Ya,canActivate:[ze.eQ]},{path:"send/:selTab",component:Ta,data:{sweepAll:!1},canActivate:[ze.eQ]},{path:"sweep/:selTab",component:Ta,data:{sweepAll:!0},canActivate:[ze.eQ]}]},{path:"connections",component:ws,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:Na,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:b0,canActivate:[ze.eQ]},{path:"pending",component:Bl,canActivate:[ze.eQ]}]},{path:"peers",component:x,data:{sweepAll:!1},canActivate:[ze.eQ]}]},{path:"liquidityads",component:(()=>{class r{constructor(t,s,L,vA,gt){this.logger=t,this.store=s,this.dataService=L,this.commonService=vA,this.rtlEffects=gt,this.askTooltipMsg="",this.nodesTooltipMsg="",this.displayedColumns=[],this.faBullhorn=h.Acd,this.faExclamationTriangle=h.eHv,this.totalBalance=0,this.channelAmount=1e5,this.channelOpeningFeeRate=10,this.nodeCapacity=5e5,this.channelCount=5,this.liquidityNodesData=[],this.flgSticky=!1,this.pageSize=a.IV,this.pageSizeOptions=a.TJ,this.screenSize="",this.screenSizeEnum=a.cu,this.errorMessage="",this.apiCallStatus={status:a.Bn.INITIATED},this.apiCallStatusEnum=a.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x],this.askTooltipMsg="Specify the liquidity requirements for your node: \n 1. Channel Amount - Amount in Sats you need for the channel opened to your node \n 2. Channel opening fee rate - Rate in Sats/vByte that you are willing to pay to open the channel to you",this.nodesTooltipMsg="These nodes are advertising their liquidity offering on the network.\nYou should pay attention to the following aspects to evaluate each node offer: \n- The total bitcoin deployed on the node, the more the better\n",this.nodesTooltipMsg=this.nodesTooltipMsg+"- The number of channels open on the node, the more the better\n- The channel open fee which the node will charge from you\n- The routing fee which the node will charge on the payments, the lesser the better\n- The reliability of the node, ideally uptime. Refer to the information being provided by the node explorers",this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","channelOpeningFee","actions"]):this.screenSize===a.cu.SM||this.screenSize===a.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","leaseFee","routingFee","channelOpeningFee","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","leaseFee","routingFee","channelOpeningFee","actions"])}ngOnInit(){(0,Ba.a)([this.store.select(g.OL),this.dataService.listNetworkNodes("?liquidity_ads=yes")]).pipe((0,i.R)(this.unSubs[0])).subscribe({next:([t,s])=>{this.information=t.information,this.totalBalance=t.balance.totalBalance,this.logger.info(t),s&&!s.length&&(s=[]),this.logger.info("Received Liquidity Ads Enabled Nodes: "+JSON.stringify(s)),this.apiCallStatus.status=a.Bn.COMPLETED,this.liquidityNodesData=s.filter(L=>(L.tor_node=!!L.addresses&&L.addresses.filter(vA=>{var gt;return null===(gt=null==vA?void 0:vA.type)||void 0===gt?void 0:gt.includes("tor")}).length>0,L.nodeid!==this.information.id)),this.onCalculateOpeningFee(),this.loadLiqNodesTable(this.liquidityNodesData)},error:t=>{this.logger.error("Liquidity Ads Nodes Error: "+JSON.stringify(t)),this.apiCallStatus.status=a.Bn.ERROR,this.errorMessage=JSON.stringify(t)}})}onCalculateOpeningFee(){this.liquidityNodesData.forEach(t=>{t.option_will_fund&&(t.channelOpeningFee=+t.option_will_fund.lease_fee_base_msat/1e3+this.channelAmount*+t.option_will_fund.lease_fee_basis/1e4+ +t.option_will_fund.funding_weight/4*this.channelOpeningFeeRate)}),this.paginator&&this.paginator.firstPage()}onFilter(){}loadLiqNodesTable(t){this.liquidityNodes=new yA.by([...t]),this.liquidityNodes.sortingDataAccessor=(s,L)=>s[L]&&isNaN(s[L])?s[L].toLocaleLowerCase():s[L]?+s[L]:null,this.liquidityNodes.sort=this.sort,this.liquidityNodes.paginator=this.paginator,this.sort&&this.sort.sort({id:"channelOpeningFee",start:"asc",disableClear:!0}),this.liquidityNodes.filterPredicate=(s,L)=>s.channelCount>=this.channelCount&&s.nodeCapacity>=this.nodeCapacity,this.onFilter()}viewLeaseOn(t,s){"LN"===s?window.open("https://lnrouter.app/node/"+t.nodeid,"_blank"):"AM"===s&&window.open("https://amboss.space/node/"+t.nodeid,"_blank")}onOpenChannel(t){this.store.dispatch((0,kA.qR)({payload:{data:{alertTitle:"Open Channel",message:{node:t,balance:this.totalBalance,requestedAmount:this.channelAmount,feeRate:this.channelOpeningFeeRate,localAmount:2e4},component:Du}}}))}onViewLeaseInfo(t){const s=t.addresses.reduce((vA,gt)=>(gt.address.length>40&&(gt.address=gt.address.substring(0,39)+"..."),vA.concat(JSON.stringify(gt).replace("{","").replace("}","").replace(/:/g,": ").replace(/,/g,"        ").replace(/"/g,""))),[]);this.store.dispatch((0,kA.c1)({payload:{data:{type:a.n_.CONFIRM,alertTitle:"Lease Information",noBtnText:"Close",yesBtnText:"Open Channel",message:[[{key:"alias",value:t.alias,title:"Node Alias",width:50,type:a.Gi.STRING},{key:"last_timestamp",value:t.last_timestamp,title:"Last Timestamp",width:50,type:a.Gi.DATE_TIME}],[{key:"nodeid",value:t.nodeid,title:"Node ID",width:100,type:a.Gi.STRING}],[{key:"base_fee",value:t.option_will_fund.lease_fee_base_msat/1e3,title:"Lease Base Fee (Sats)",width:50,type:a.Gi.NUMBER},{key:"fee_basis",value:t.option_will_fund.lease_fee_basis,title:"Lease Base Basis (bps)",width:50,type:a.Gi.NUMBER}],[{key:"channel_max_base",value:t.option_will_fund.channel_fee_max_base_msat/1e3,title:"Max Channel Routing Base Fee (Sats)",width:50,type:a.Gi.NUMBER},{key:"channel_max_rate",value:1e3*t.option_will_fund.channel_fee_max_proportional_thousandths,title:"Max Channel Routing Fee Rate (ppm)",width:50,type:a.Gi.NUMBER}],[{key:"funding_rate",value:t.option_will_fund.funding_weight,title:"Funding Weight",width:100,type:a.Gi.NUMBER}],[{key:"address",value:s,title:"Address",width:100,type:a.Gi.ARRAY}]]}}})),this.rtlEffects.closeConfirm.pipe((0,i.R)(this.unSubs[1])).subscribe(vA=>{vA&&this.onOpenChannel(t)})}onDownloadCSV(){this.liquidityNodes.data&&this.liquidityNodes.data.length>0&&this.commonService.downloadFile(this.liquidityNodes.data,"LiquidityNodes")}onFilterReset(){this.nodeCapacity=0,this.channelCount=0}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return r.\u0275fac=function(t){return new(t||r)(A.Y36(E.mQ),A.Y36(u.yh),A.Y36(PA.D),A.Y36(e.v),A.Y36(At.V))},r.\u0275cmp=A.Xpm({type:r,selectors:[["rtl-cln-liquidity-ads-list"]],viewQuery:function(t,s){if(1&t&&(A.Gf(rt.YE,5),A.Gf(WA.NW,5)),2&t){let L;A.iGM(L=A.CRH())&&(s.sort=L.first),A.iGM(L=A.CRH())&&(s.paginator=L.first)}},features:[A._Bn([{provide:WA.ye,useValue:(0,a.pt)("Liquidity Ads")}])],decls:54,vars:20,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],[1,"padding-gap-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["formAsk","ngForm"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start start",1,"page-sub-title-container","mt-1"],["fxFlex","30"],["matTooltipPosition","above","matTooltipClass","pre-wrap",1,"info-icon","info-icon-primary",3,"matTooltip"],["fxFlex","34"],["autoFocus","","matInput","","placeholder","Channel Amount (Sats)","name","channelAmount","tabindex","1","type","number","step","10000","required","",3,"ngModel","ngModelChange","keyup"],[4,"ngIf"],["matInput","","placeholder","Channel Opening Fee Rate (Sats/vByte)","name","channelOpeningFeeRate","type","number","step","10","tabindex","2","required","",3,"ngModel","ngModelChange","keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container","mt-2",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","capacityChannels"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","leaseFee"],["matColumnDef","routingFee"],["matColumnDef","channelOpeningFee"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center","class","px-3",4,"matCellDef"],["matColumnDef","no_lqNode"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["matBadge","Tor Node","matBadgeOverlap","false","class","tab-badge",4,"ngIf"],["matBadge","Tor Node","matBadgeOverlap","false",1,"tab-badge"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(t,s){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Liquidity Ads"),A.qZA()(),A.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"div",5)(8,"form",6,7)(10,"div",8),A._UZ(11,"fa-icon",9),A.TgZ(12,"span"),A._uU(13,"Ads should be suplemented with additional research of the nodes, before buying liquidity."),A.qZA()(),A.TgZ(14,"div",10)(15,"div",11)(16,"span",2),A._uU(17," Liquidity Ask "),A.TgZ(18,"mat-icon",12),A._uU(19,"info_outline"),A.qZA()()(),A.TgZ(20,"mat-form-field",13)(21,"input",14),A.NdJ("ngModelChange",function(vA){return s.channelAmount=vA})("keyup",function(){return s.onCalculateOpeningFee()}),A.qZA(),A.YNc(22,yu,2,0,"mat-error",15),A.qZA(),A.TgZ(23,"mat-form-field",13)(24,"input",16),A.NdJ("ngModelChange",function(vA){return s.channelOpeningFeeRate=vA})("keyup",function(){return s.onCalculateOpeningFee()}),A.qZA(),A.YNc(25,xu,2,0,"mat-error",15),A.qZA()()(),A.TgZ(26,"div",17),A.YNc(27,Fu,1,0,"mat-progress-bar",18),A.TgZ(28,"table",19,20),A.ynx(30,21),A.YNc(31,Yu,2,0,"th",22),A.YNc(32,Nu,3,5,"td",23),A.BQk(),A.ynx(33,24),A.YNc(34,Uu,2,0,"th",25),A.YNc(35,Pu,4,8,"td",26),A.BQk(),A.ynx(36,27),A.YNc(37,Ru,2,0,"th",25),A.YNc(38,zu,4,8,"td",26),A.BQk(),A.ynx(39,28),A.YNc(40,Lu,2,0,"th",25),A.YNc(41,bu,4,8,"td",26),A.BQk(),A.ynx(42,29),A.YNc(43,Gu,2,0,"th",30),A.YNc(44,Hu,4,4,"td",26),A.BQk(),A.ynx(45,31),A.YNc(46,Ju,6,0,"th",32),A.YNc(47,Ou,12,0,"td",33),A.BQk(),A.ynx(48,34),A.YNc(49,Vu,4,3,"td",35),A.BQk(),A.YNc(50,Zu,1,3,"tr",36),A.YNc(51,Xu,1,0,"tr",37),A.YNc(52,qu,1,0,"tr",38),A.qZA()(),A._UZ(53,"mat-paginator",39),A.qZA()()()()),2&t&&(A.xp6(1),A.Q6J("icon",s.faBullhorn),A.xp6(10),A.Q6J("icon",s.faExclamationTriangle),A.xp6(7),A.Q6J("matTooltip",s.askTooltipMsg),A.xp6(3),A.Q6J("ngModel",s.channelAmount),A.xp6(1),A.Q6J("ngIf",!s.channelAmount),A.xp6(2),A.Q6J("ngModel",s.channelOpeningFeeRate),A.xp6(1),A.Q6J("ngIf",!s.channelOpeningFeeRate),A.xp6(2),A.Q6J("ngIf",s.apiCallStatus.status===s.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",s.liquidityNodes)("ngClass",A.VKq(17,_u,""!==s.errorMessage)),A.xp6(22),A.Q6J("matFooterRowDef",A.DdM(19,$u)),A.xp6(1),A.Q6J("matHeaderRowDef",s.displayedColumns)("matHeaderRowDefSticky",s.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",s.displayedColumns),A.xp6(1),A.Q6J("pageSize",s.pageSize)("pageSizeOptions",s.pageSizeOptions)("showFirstLastButtons",s.screenSize!==s.screenSizeEnum.XS))},directives:[Ct.xw,Ct.Wh,f.BN,w.a8,w.dn,Ct.yH,OA._Y,OA.JL,OA.F,S.Hw,aA.gM,Z.KE,Yt.Nt,OA.wV,OA.Fj,H.h,OA.Q7,OA.JJ,OA.On,Et.O5,Z.TO,lA.$V,Y.pW,yA.BZ,rt.YE,Et.mk,m.oO,yA.w1,yA.fO,yA.ge,rt.nU,yA.Dz,yA.ev,Et.PC,m.Zl,Bi.k,R.gD,R.$L,QA.ey,yA.mD,yA.yh,yA.Ke,yA.Q2,yA.as,yA.XQ,yA.nj,yA.Gk,WA.NW],pipes:[Et.JJ],styles:[".mat-column-alias[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),r})(),canActivate:[ze.eQ]},{path:"transactions",component:Cs,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:aa,canActivate:[ze.eQ]},{path:"invoices",component:tt,canActivate:[ze.eQ]},{path:"offers",component:BB,canActivate:[ze.eQ]},{path:"offrBookmarks",component:PB,canActivate:[ze.eQ]}]},{path:"messages",component:mi,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"sign"},{path:"sign",component:Oe,canActivate:[ze.eQ]},{path:"verify",component:mn,canActivate:[ze.eQ]}]},{path:"routing",component:ds,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:na,canActivate:[ze.eQ]},{path:"failedtransactions",component:dc,canActivate:[ze.eQ]},{path:"localfail",component:au,canActivate:[ze.eQ]},{path:"routingpeers",component:ug,canActivate:[ze.eQ]}]},{path:"reports",component:hg,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:Ig,canActivate:[ze.eQ]},{path:"transactions",component:Sg,canActivate:[ze.eQ]}]},{path:"graph",component:Pg,canActivate:[ze.eQ],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:bs,canActivate:[ze.eQ]},{path:"queryroutes",component:ln,canActivate:[ze.eQ]}]},{path:"rates",component:$s,canActivate:[ze.eQ]},{path:"**",component:Ng.w},{path:"network",redirectTo:"rates"},{path:"wallet",redirectTo:"home"},{path:"backup",redirectTo:"home"}]}]);var nf=Nt(8750);let rf=(()=>{class r{}return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=A.oAB({type:r,bootstrap:[n]}),r.\u0275inj=A.cJS({providers:[ze.eQ],imports:[[Et.ez,nf.m,ef]]}),r})()},4641:function(oi,xr,Nt){var Et=Nt(7757);"undefined"!=typeof self&&self,oi.exports=function(){var _t={9282:function(Y,I,n){"use strict";var c=n(4155);function i($){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(hA){return typeof hA}:function(hA){return hA&&"function"==typeof Symbol&&hA.constructor===Symbol&&hA!==Symbol.prototype?"symbol":typeof hA})($)}var v,D,h=n(2136).codes,a=h.ERR_AMBIGUOUS_ARGUMENT,g=h.ERR_INVALID_ARG_TYPE,E=h.ERR_INVALID_ARG_VALUE,u=h.ERR_INVALID_RETURN_VALUE,C=h.ERR_MISSING_ARGS,e=n(5961),B=n(9539).inspect,w=n(9539).types,Q=w.isPromise,p=w.isRegExp,S=Object.assign?Object.assign:n(8091).assign,m=Object.is?Object.is:n(609);function z(){var $=n(9158);v=$.isDeepEqual,D=$.isDeepStrictEqual}var AA=!1,lA=Y.exports=DA,MA={};function cA($){throw $.message instanceof Error?$.message:new e($)}function BA($,W,hA,mA){if(!hA){var nA=!1;if(0===W)nA=!0,mA="No value argument passed to `assert.ok()`";else if(mA instanceof Error)throw mA;var EA=new e({actual:hA,expected:!0,message:mA,operator:"==",stackStartFn:$});throw EA.generatedMessage=nA,EA}}function DA(){for(var $=arguments.length,W=new Array($),hA=0;hA<$;hA++)W[hA]=arguments[hA];BA.apply(void 0,[DA,W.length].concat(W))}lA.fail=function gA($,W,hA,mA,nA){var GA,EA=arguments.length;if(0===EA?GA="Failed":1===EA?(hA=$,$=void 0):(!1===AA&&(AA=!0,(c.emitWarning?c.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===EA&&(mA="!=")),hA instanceof Error)throw hA;var ot={actual:$,expected:W,operator:void 0===mA?"fail":mA,stackStartFn:nA||gA};void 0!==hA&&(ot.message=hA);var TA=new e(ot);throw GA&&(TA.message=GA,TA.generatedMessage=!0),TA},lA.AssertionError=e,lA.ok=DA,lA.equal=function $(W,hA,mA){if(arguments.length<2)throw new C("actual","expected");W!=hA&&cA({actual:W,expected:hA,message:mA,operator:"==",stackStartFn:$})},lA.notEqual=function $(W,hA,mA){if(arguments.length<2)throw new C("actual","expected");W==hA&&cA({actual:W,expected:hA,message:mA,operator:"!=",stackStartFn:$})},lA.deepEqual=function $(W,hA,mA){if(arguments.length<2)throw new C("actual","expected");void 0===v&&z(),v(W,hA)||cA({actual:W,expected:hA,message:mA,operator:"deepEqual",stackStartFn:$})},lA.notDeepEqual=function $(W,hA,mA){if(arguments.length<2)throw new C("actual","expected");void 0===v&&z(),v(W,hA)&&cA({actual:W,expected:hA,message:mA,operator:"notDeepEqual",stackStartFn:$})},lA.deepStrictEqual=function $(W,hA,mA){if(arguments.length<2)throw new C("actual","expected");void 0===v&&z(),D(W,hA)||cA({actual:W,expected:hA,message:mA,operator:"deepStrictEqual",stackStartFn:$})},lA.notDeepStrictEqual=function FA($,W,hA){if(arguments.length<2)throw new C("actual","expected");void 0===v&&z(),D($,W)&&cA({actual:$,expected:W,message:hA,operator:"notDeepStrictEqual",stackStartFn:FA})},lA.strictEqual=function $(W,hA,mA){if(arguments.length<2)throw new C("actual","expected");m(W,hA)||cA({actual:W,expected:hA,message:mA,operator:"strictEqual",stackStartFn:$})},lA.notStrictEqual=function $(W,hA,mA){if(arguments.length<2)throw new C("actual","expected");m(W,hA)&&cA({actual:W,expected:hA,message:mA,operator:"notStrictEqual",stackStartFn:$})};var _=function $(W,hA,mA){var nA=this;(function o($,W){if(!($ instanceof W))throw new TypeError("Cannot call a class as a function")})(this,$),hA.forEach(function(EA){EA in W&&(nA[EA]=void 0!==mA&&"string"==typeof mA[EA]&&p(W[EA])&&W[EA].test(mA[EA])?mA[EA]:W[EA])})};function dA($,W,hA,mA,nA,EA){if(!(hA in $)||!D($[hA],W[hA])){if(!mA){var GA=new _($,nA),et=new _(W,nA,$),ot=new e({actual:GA,expected:et,operator:"deepStrictEqual",stackStartFn:EA});throw ot.actual=$,ot.expected=W,ot.operator=EA.name,ot}cA({actual:$,expected:W,message:mA,operator:EA.name,stackStartFn:EA})}}function uA($,W,hA,mA){if("function"!=typeof W){if(p(W))return W.test($);if(2===arguments.length)throw new g("expected",["Function","RegExp"],W);if("object"!==i($)||null===$){var nA=new e({actual:$,expected:W,message:hA,operator:"deepStrictEqual",stackStartFn:mA});throw nA.operator=mA.name,nA}var EA=Object.keys(W);if(W instanceof Error)EA.push("name","message");else if(0===EA.length)throw new E("error",W,"may not be an empty object");return void 0===v&&z(),EA.forEach(function(GA){"string"==typeof $[GA]&&p(W[GA])&&W[GA].test($[GA])||dA($,W,GA,hA,EA,mA)}),!0}return void 0!==W.prototype&&$ instanceof W||!Error.isPrototypeOf(W)&&!0===W.call({},$)}function CA($){if("function"!=typeof $)throw new g("fn","Function",$);try{$()}catch(W){return W}return MA}function SA($){return Q($)||null!==$&&"object"===i($)&&"function"==typeof $.then&&"function"==typeof $.catch}function bA($){return Promise.resolve().then(function(){var W;if("function"==typeof $){if(!SA(W=$()))throw new u("instance of Promise","promiseFn",W)}else{if(!SA($))throw new g("promiseFn",["Function","Promise"],$);W=$}return Promise.resolve().then(function(){return W}).then(function(){return MA}).catch(function(hA){return hA})})}function XA($,W,hA,mA){if("string"==typeof hA){if(4===arguments.length)throw new g("error",["Object","Error","Function","RegExp"],hA);if("object"===i(W)&&null!==W){if(W.message===hA)throw new a("error/message",'The error message "'.concat(W.message,'" is identical to the message.'))}else if(W===hA)throw new a("error/message",'The error "'.concat(W,'" is identical to the message.'));mA=hA,hA=void 0}else if(null!=hA&&"object"!==i(hA)&&"function"!=typeof hA)throw new g("error",["Object","Error","Function","RegExp"],hA);if(W===MA){var nA="";hA&&hA.name&&(nA+=" (".concat(hA.name,")")),nA+=mA?": ".concat(mA):".",cA({actual:void 0,expected:hA,operator:$.name,message:"Missing expected ".concat("rejects"===$.name?"rejection":"exception").concat(nA),stackStartFn:$})}if(hA&&!uA(W,hA,mA,$))throw W}function q($,W,hA,mA){if(W!==MA){if("string"==typeof hA&&(mA=hA,hA=void 0),!hA||uA(W,hA)){var nA=mA?": ".concat(mA):".";cA({actual:W,expected:hA,operator:$.name,message:"Got unwanted ".concat("doesNotReject"===$.name?"rejection":"exception").concat(nA,"\n")+'Actual message: "'.concat(W&&W.message,'"'),stackStartFn:$})}throw W}}function O(){for(var $=arguments.length,W=new Array($),hA=0;hA<$;hA++)W[hA]=arguments[hA];BA.apply(void 0,[O,W.length].concat(W))}lA.throws=function $(W){for(var hA=arguments.length,mA=new Array(hA>1?hA-1:0),nA=1;nA1?hA-1:0),nA=1;nA1?hA-1:0),nA=1;nA1?hA-1:0),nA=1;nAgA.length)&&(DA=gA.length),gA.substring(DA-BA.length,DA)===BA}var T="",F="",z="",b="",Z={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function AA(gA){var BA=Object.keys(gA),DA=Object.create(Object.getPrototypeOf(gA));return BA.forEach(function(FA){DA[FA]=gA[FA]}),Object.defineProperty(DA,"message",{value:gA.message}),DA}function lA(gA){return m(gA,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function MA(gA,BA,DA){var FA="",_="",dA=0,uA="",CA=!1,SA=lA(gA),bA=SA.split("\n"),XA=lA(BA).split("\n"),q=0,O="";if("strictEqual"===DA&&"object"===p(gA)&&"object"===p(BA)&&null!==gA&&null!==BA&&(DA="strictEqualObject"),1===bA.length&&1===XA.length&&bA[0]!==XA[0]){var $=bA[0].length+XA[0].length;if($<=10){if(!("object"===p(gA)&&null!==gA||"object"===p(BA)&&null!==BA||0===gA&&0===BA))return"".concat(Z[DA],"\n\n")+"".concat(bA[0]," !== ").concat(XA[0],"\n")}else if("strictEqualObject"!==DA&&$<(c.stderr&&c.stderr.isTTY?c.stderr.columns:80)){for(;bA[0][q]===XA[0][q];)q++;q>2&&(O="\n ".concat(function U(gA,BA){if(BA=Math.floor(BA),0==gA.length||0==BA)return"";var DA=gA.length*BA;for(BA=Math.floor(Math.log(BA)/Math.log(2));BA;)gA+=gA,BA--;return gA+gA.substring(0,DA-gA.length)}(" ",q),"^"),q=0)}}for(var hA=bA[bA.length-1],mA=XA[XA.length-1];hA===mA&&(q++<2?uA="\n ".concat(hA).concat(uA):FA=hA,bA.pop(),XA.pop(),0!==bA.length&&0!==XA.length);)hA=bA[bA.length-1],mA=XA[XA.length-1];var nA=Math.max(bA.length,XA.length);if(0===nA){var EA=SA.split("\n");if(EA.length>30)for(EA[26]="".concat(T,"...").concat(b);EA.length>27;)EA.pop();return"".concat(Z.notIdentical,"\n\n").concat(EA.join("\n"),"\n")}q>3&&(uA="\n".concat(T,"...").concat(b).concat(uA),CA=!0),""!==FA&&(uA="\n ".concat(FA).concat(uA),FA="");var GA=0,et=Z[DA]+"\n".concat(F,"+ actual").concat(b," ").concat(z,"- expected").concat(b),ot=" ".concat(T,"...").concat(b," Lines skipped");for(q=0;q1&&q>2&&(TA>4?(_+="\n".concat(T,"...").concat(b),CA=!0):TA>3&&(_+="\n ".concat(XA[q-2]),GA++),_+="\n ".concat(XA[q-1]),GA++),dA=q,FA+="\n".concat(z,"-").concat(b," ").concat(XA[q]),GA++;else if(XA.length1&&q>2&&(TA>4?(_+="\n".concat(T,"...").concat(b),CA=!0):TA>3&&(_+="\n ".concat(bA[q-2]),GA++),_+="\n ".concat(bA[q-1]),GA++),dA=q,_+="\n".concat(F,"+").concat(b," ").concat(bA[q]),GA++;else{var it=XA[q],mt=bA[q],It=mt!==it&&(!D(mt,",")||mt.slice(0,-1)!==it);It&&D(it,",")&&it.slice(0,-1)===mt&&(It=!1,mt+=","),It?(TA>1&&q>2&&(TA>4?(_+="\n".concat(T,"...").concat(b),CA=!0):TA>3&&(_+="\n ".concat(bA[q-2]),GA++),_+="\n ".concat(bA[q-1]),GA++),dA=q,_+="\n".concat(F,"+").concat(b," ").concat(mt),FA+="\n".concat(z,"-").concat(b," ").concat(it),GA+=2):(_+=FA,FA="",(1===TA||0===q)&&(_+="\n ".concat(mt),GA++))}if(GA>20&&q30)for(q[26]="".concat(T,"...").concat(b);q.length>27;)q.pop();FA=g(this,1===q.length?Q(BA).call(this,"".concat(XA," ").concat(q[0])):Q(BA).call(this,"".concat(XA,"\n\n").concat(q.join("\n"),"\n")))}else{var O=lA(CA),$="",W=Z[dA];"notDeepEqual"===dA||"notEqual"===dA?(O="".concat(Z[dA],"\n\n").concat(O)).length>1024&&(O="".concat(O.slice(0,1021),"...")):($="".concat(lA(SA)),O.length>512&&(O="".concat(O.slice(0,509),"...")),$.length>512&&($="".concat($.slice(0,509),"...")),"deepEqual"===dA||"equal"===dA?O="".concat(W,"\n\n").concat(O,"\n\nshould equal\n\n"):$=" ".concat(dA," ").concat($)),FA=g(this,Q(BA).call(this,"".concat(O).concat($)))}return Error.stackTraceLimit=bA,FA.generatedMessage=!_,Object.defineProperty(E(FA),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),FA.code="ERR_ASSERTION",FA.actual=CA,FA.expected=SA,FA.operator=dA,Error.captureStackTrace&&Error.captureStackTrace(E(FA),uA),FA.name="AssertionError",g(FA)}return function u(gA,BA){if("function"!=typeof BA&&null!==BA)throw new TypeError("Super expression must either be null or a function");gA.prototype=Object.create(BA&&BA.prototype,{constructor:{value:gA,writable:!0,configurable:!0}}),BA&&w(gA,BA)}(BA,gA),function a(gA,BA,DA){return BA&&h(gA.prototype,BA),DA&&h(gA,DA),gA}(BA,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:m.custom,value:function(FA,_){return m(this,function i(gA){for(var BA=1;BA2?"one of ".concat(S," ").concat(p.slice(0,m-1).join(", "),", or ")+p[m-1]:2===m?"one of ".concat(S," ").concat(p[0]," or ").concat(p[1]):"of ".concat(S," ").concat(p[0])}return"of ".concat(S," ").concat(String(p))}e("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),e("ERR_INVALID_ARG_TYPE",function(p,S,m){var d,v;if(void 0===u&&(u=n(9282)),u("string"==typeof p,"'name' must be a string"),"string"==typeof S&&function B(p,S,m){return p.substr(!m||m<0?0:+m,S.length)===S}(S,"not ")?(d="must not be",S=S.replace(/^not /,"")):d="must be",function w(p,S,m){return(void 0===m||m>p.length)&&(m=p.length),p.substring(m-S.length,m)===S}(p," argument"))v="The ".concat(p," ").concat(d," ").concat(f(S,"type"));else{var D=function Q(p,S,m){return"number"!=typeof m&&(m=0),!(m+S.length>p.length)&&-1!==p.indexOf(S,m)}(p,".")?"property":"argument";v='The "'.concat(p,'" ').concat(D," ").concat(d," ").concat(f(S,"type"))}return v+". Received type ".concat(c(m))},TypeError),e("ERR_INVALID_ARG_VALUE",function(p,S){var m=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===C&&(C=n(9539));var d=C.inspect(S);return d.length>128&&(d="".concat(d.slice(0,128),"...")),"The argument '".concat(p,"' ").concat(m,". Received ").concat(d)},TypeError,RangeError),e("ERR_INVALID_RETURN_VALUE",function(p,S,m){var d;return d=m&&m.constructor&&m.constructor.name?"instance of ".concat(m.constructor.name):"type ".concat(c(m)),"Expected ".concat(p,' to be returned from the "').concat(S,'"')+" function but got ".concat(d,".")},TypeError),e("ERR_MISSING_ARGS",function(){for(var p=arguments.length,S=new Array(p),m=0;m0,"At least one arg needs to be specified");var d="The ",v=S.length;switch(S=S.map(function(D){return'"'.concat(D,'"')}),v){case 1:d+="".concat(S[0]," argument");break;case 2:d+="".concat(S[0]," and ").concat(S[1]," arguments");break;default:d+=S.slice(0,v-1).join(", "),d+=", and ".concat(S[v-1]," arguments")}return"".concat(d," must be specified")},TypeError),Y.exports.codes=E},9158:function(Y,I,n){"use strict";function c(JA,WA){return function l(JA){if(Array.isArray(JA))return JA}(JA)||function o(JA,WA){var rt=[],yA=!0,Mt=!1,ht=void 0;try{for(var Yt,OA=JA[Symbol.iterator]();!(yA=(Yt=OA.next()).done)&&(rt.push(Yt.value),!WA||rt.length!==WA);yA=!0);}catch(H){Mt=!0,ht=H}finally{try{!yA&&null!=OA.return&&OA.return()}finally{if(Mt)throw ht}}return rt}(JA,WA)||function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function h(JA){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(rt){return typeof rt}:function(rt){return rt&&"function"==typeof Symbol&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt})(JA)}var a=void 0!==/a/g.flags,g=function(WA){var rt=[];return WA.forEach(function(yA){return rt.push(yA)}),rt},E=function(WA){var rt=[];return WA.forEach(function(yA,Mt){return rt.push([Mt,yA])}),rt},u=Object.is?Object.is:n(609),C=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},e=Number.isNaN?Number.isNaN:n(360);function f(JA){return JA.call.bind(JA)}var B=f(Object.prototype.hasOwnProperty),w=f(Object.prototype.propertyIsEnumerable),Q=f(Object.prototype.toString),p=n(9539).types,S=p.isAnyArrayBuffer,m=p.isArrayBufferView,d=p.isDate,v=p.isMap,D=p.isRegExp,U=p.isSet,T=p.isNativeError,F=p.isBoxedPrimitive,z=p.isNumberObject,b=p.isStringObject,Z=p.isBooleanObject,aA=p.isBigIntObject,AA=p.isSymbolObject,lA=p.isFloat32Array,MA=p.isFloat64Array;function cA(JA){if(0===JA.length||JA.length>10)return!0;for(var WA=0;WA57)return!0}return 10===JA.length&&JA>=Math.pow(2,32)}function gA(JA){return Object.keys(JA).filter(cA).concat(C(JA).filter(Object.prototype.propertyIsEnumerable.bind(JA)))}function BA(JA,WA){if(JA===WA)return 0;for(var rt=JA.length,yA=WA.length,Mt=0,ht=Math.min(rt,yA);Mt=E.length?{done:!0}:{done:!1,value:E[e++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(E,u){(null==u||u>E.length)&&(u=E.length);for(var C=0,e=new Array(u);Cthis.buffer.length)return this.flush()},f.flush=function(){if(this.bufferOffset>0)return this.push(c.from(this.buffer.slice(0,this.bufferOffset))),this.bufferOffset=0},f.writeBuffer=function(w){return this.flush(),this.push(w),this.pos+=w.length},f.writeString=function(w,Q){switch(void 0===Q&&(Q="ascii"),Q){case"utf16le":case"ucs2":case"utf8":case"ascii":return this.writeBuffer(c.from(w,Q));case"utf16be":for(var p=c.from(w,"utf16le"),S=0,m=p.length-1;S>>16&255,this.buffer[this.bufferOffset++]=w>>>8&255,this.buffer[this.bufferOffset++]=255&w,this.pos+=3},f.writeUInt24LE=function(w){return this.ensure(3),this.buffer[this.bufferOffset++]=255&w,this.buffer[this.bufferOffset++]=w>>>8&255,this.buffer[this.bufferOffset++]=w>>>16&255,this.pos+=3},f.writeInt24BE=function(w){return this.writeUInt24BE(w>=0?w:w+16777215+1)},f.writeInt24LE=function(w){return this.writeUInt24LE(w>=0?w:w+16777215+1)},f.fill=function(w,Q){if(Q=this.length)){if(null==this.items[w]){var Q=this.stream.pos;this.stream.pos=this.base+this.type.size(null,this.ctx)*w,this.items[w]=this.type.decode(this.stream,this.ctx),this.stream.pos=Q}return this.items[w]}},f.toArray=function(){for(var w=[],Q=0,p=this.length;Q>1),(f=a.call(this,"Int"+u,C)||this)._point=1<u)throw new RangeError('The value "'+H+'" is invalid for option "size"');var k=new Uint8Array(H);return Object.setPrototypeOf(k,f.prototype),k}function f(H,k,R){if("number"==typeof H){if("string"==typeof k)throw new TypeError('The "string" argument must be of type string. Received type number');return p(H)}return B(H,k,R)}function B(H,k,R){if("string"==typeof H)return function S(H,k){if(("string"!=typeof k||""===k)&&(k="utf8"),!f.isEncoding(k))throw new TypeError("Unknown encoding: "+k);var R=0|F(H,k),QA=e(R),wA=QA.write(H,k);return wA!==R&&(QA=QA.slice(0,wA)),QA}(H,k);if(ArrayBuffer.isView(H))return function d(H){if(yA(H,Uint8Array)){var k=new Uint8Array(H);return v(k.buffer,k.byteOffset,k.byteLength)}return m(H)}(H);if(null==H)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof H);if(yA(H,ArrayBuffer)||H&&yA(H.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(yA(H,SharedArrayBuffer)||H&&yA(H.buffer,SharedArrayBuffer)))return v(H,k,R);if("number"==typeof H)throw new TypeError('The "value" argument must not be of type number. Received type number');var QA=H.valueOf&&H.valueOf();if(null!=QA&&QA!==H)return f.from(QA,k,R);var wA=function D(H){if(f.isBuffer(H)){var k=0|U(H.length),R=e(k);return 0===R.length||H.copy(R,0,0,k),R}return void 0!==H.length?"number"!=typeof H.length||Mt(H.length)?e(0):m(H):"Buffer"===H.type&&Array.isArray(H.data)?m(H.data):void 0}(H);if(wA)return wA;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof H[Symbol.toPrimitive])return f.from(H[Symbol.toPrimitive]("string"),k,R);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof H)}function w(H){if("number"!=typeof H)throw new TypeError('"size" argument must be of type number');if(H<0)throw new RangeError('The value "'+H+'" is invalid for option "size"')}function p(H){return w(H),e(H<0?0:0|U(H))}function m(H){for(var k=H.length<0?0:0|U(H.length),R=e(k),QA=0;QA=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return 0|H}function F(H,k){if(f.isBuffer(H))return H.length;if(ArrayBuffer.isView(H)||yA(H,ArrayBuffer))return H.byteLength;if("string"!=typeof H)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof H);var R=H.length,QA=arguments.length>2&&!0===arguments[2];if(!QA&&0===R)return 0;for(var wA=!1;;)switch(k){case"ascii":case"latin1":case"binary":return R;case"utf8":case"utf-8":return It(H).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*R;case"hex":return R>>>1;case"base64":return WA(H).length;default:if(wA)return QA?-1:It(H).length;k=(""+k).toLowerCase(),wA=!0}}function z(H,k,R){var QA=!1;if((void 0===k||k<0)&&(k=0),k>this.length||((void 0===R||R>this.length)&&(R=this.length),R<=0)||(R>>>=0)<=(k>>>=0))return"";for(H||(H="utf8");;)switch(H){case"hex":return CA(this,k,R);case"utf8":case"utf-8":return DA(this,k,R);case"ascii":return dA(this,k,R);case"latin1":case"binary":return uA(this,k,R);case"base64":return BA(this,k,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return SA(this,k,R);default:if(QA)throw new TypeError("Unknown encoding: "+H);H=(H+"").toLowerCase(),QA=!0}}function b(H,k,R){var QA=H[k];H[k]=H[R],H[R]=QA}function Z(H,k,R,QA,wA){if(0===H.length)return-1;if("string"==typeof R?(QA=R,R=0):R>2147483647?R=2147483647:R<-2147483648&&(R=-2147483648),Mt(R=+R)&&(R=wA?0:H.length-1),R<0&&(R=H.length+R),R>=H.length){if(wA)return-1;R=H.length-1}else if(R<0){if(!wA)return-1;R=0}if("string"==typeof k&&(k=f.from(k,QA)),f.isBuffer(k))return 0===k.length?-1:aA(H,k,R,QA,wA);if("number"==typeof k)return k&=255,"function"==typeof Uint8Array.prototype.indexOf?wA?Uint8Array.prototype.indexOf.call(H,k,R):Uint8Array.prototype.lastIndexOf.call(H,k,R):aA(H,[k],R,QA,wA);throw new TypeError("val must be string, number or Buffer")}function aA(H,k,R,QA,wA){var j,RA=1,rA=H.length,ct=k.length;if(void 0!==QA&&("ucs2"===(QA=String(QA).toLowerCase())||"ucs-2"===QA||"utf16le"===QA||"utf-16le"===QA)){if(H.length<2||k.length<2)return-1;RA=2,rA/=2,ct/=2,R/=2}function Ft(KA,st){return 1===RA?KA[st]:KA.readUInt16BE(st*RA)}if(wA){var kA=-1;for(j=R;jrA&&(R=rA-ct),j=R;j>=0;j--){for(var At=!0,xA=0;xAwA&&(QA=wA):QA=wA;var rA,RA=k.length;for(QA>RA/2&&(QA=RA/2),rA=0;rA>8,RA.push(R%256),RA.push(QA);return RA}(k,H.length-R),H,R,QA)}function BA(H,k,R){return a.fromByteArray(0===k&&R===H.length?H:H.slice(k,R))}function DA(H,k,R){R=Math.min(H.length,R);for(var QA=[],wA=k;wA239?4:RA>223?3:RA>191?2:1;if(wA+ct<=R){var Ft=void 0,j=void 0,kA=void 0,At=void 0;switch(ct){case 1:RA<128&&(rA=RA);break;case 2:128==(192&(Ft=H[wA+1]))&&(At=(31&RA)<<6|63&Ft)>127&&(rA=At);break;case 3:j=H[wA+2],128==(192&(Ft=H[wA+1]))&&128==(192&j)&&(At=(15&RA)<<12|(63&Ft)<<6|63&j)>2047&&(At<55296||At>57343)&&(rA=At);break;case 4:j=H[wA+2],kA=H[wA+3],128==(192&(Ft=H[wA+1]))&&128==(192&j)&&128==(192&kA)&&(At=(15&RA)<<18|(63&Ft)<<12|(63&j)<<6|63&kA)>65535&&At<1114112&&(rA=At)}}null===rA?(rA=65533,ct=1):rA>65535&&(QA.push((rA-=65536)>>>10&1023|55296),rA=56320|1023&rA),QA.push(rA),wA+=ct}return function _(H){var k=H.length;if(k<=4096)return String.fromCharCode.apply(String,H);for(var R="",QA=0;QAwA.length?(f.isBuffer(rA)||(rA=f.from(rA)),rA.copy(wA,RA)):Uint8Array.prototype.set.call(wA,rA,RA);else{if(!f.isBuffer(rA))throw new TypeError('"list" argument must be an Array of Buffers');rA.copy(wA,RA)}RA+=rA.length}return wA},f.byteLength=F,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var k=this.length;if(k%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var R=0;RR&&(k+=" ... "),""},E&&(f.prototype[E]=f.prototype.inspect),f.prototype.compare=function(k,R,QA,wA,RA){if(yA(k,Uint8Array)&&(k=f.from(k,k.offset,k.byteLength)),!f.isBuffer(k))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof k);if(void 0===R&&(R=0),void 0===QA&&(QA=k?k.length:0),void 0===wA&&(wA=0),void 0===RA&&(RA=this.length),R<0||QA>k.length||wA<0||RA>this.length)throw new RangeError("out of range index");if(wA>=RA&&R>=QA)return 0;if(wA>=RA)return-1;if(R>=QA)return 1;if(this===k)return 0;for(var rA=(RA>>>=0)-(wA>>>=0),ct=(QA>>>=0)-(R>>>=0),Ft=Math.min(rA,ct),j=this.slice(wA,RA),kA=k.slice(R,QA),At=0;At>>=0,isFinite(QA)?(QA>>>=0,void 0===wA&&(wA="utf8")):(wA=QA,QA=void 0)}var RA=this.length-R;if((void 0===QA||QA>RA)&&(QA=RA),k.length>0&&(QA<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");wA||(wA="utf8");for(var rA=!1;;)switch(wA){case"hex":return AA(this,k,R,QA);case"utf8":case"utf-8":return lA(this,k,R,QA);case"ascii":case"latin1":case"binary":return MA(this,k,R,QA);case"base64":return cA(this,k,R,QA);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gA(this,k,R,QA);default:if(rA)throw new TypeError("Unknown encoding: "+wA);wA=(""+wA).toLowerCase(),rA=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function dA(H,k,R){var QA="";R=Math.min(H.length,R);for(var wA=k;wAQA)&&(R=QA);for(var wA="",RA=k;RAR)throw new RangeError("Trying to access beyond buffer length")}function XA(H,k,R,QA,wA,RA){if(!f.isBuffer(H))throw new TypeError('"buffer" argument must be a Buffer instance');if(k>wA||kH.length)throw new RangeError("Index out of range")}function q(H,k,R,QA,wA){et(k,QA,wA,H,R,7);var RA=Number(k&BigInt(4294967295));H[R++]=RA,H[R++]=RA>>=8,H[R++]=RA>>=8,H[R++]=RA>>=8;var rA=Number(k>>BigInt(32)&BigInt(4294967295));return H[R++]=rA,H[R++]=rA>>=8,H[R++]=rA>>=8,H[R++]=rA>>=8,R}function O(H,k,R,QA,wA){et(k,QA,wA,H,R,7);var RA=Number(k&BigInt(4294967295));H[R+7]=RA,H[R+6]=RA>>=8,H[R+5]=RA>>=8,H[R+4]=RA>>=8;var rA=Number(k>>BigInt(32)&BigInt(4294967295));return H[R+3]=rA,H[R+2]=rA>>=8,H[R+1]=rA>>=8,H[R]=rA>>=8,R+8}function $(H,k,R,QA,wA,RA){if(R+QA>H.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("Index out of range")}function W(H,k,R,QA,wA){return k=+k,R>>>=0,wA||$(H,0,R,4),g.write(H,k,R,QA,23,4),R+4}function hA(H,k,R,QA,wA){return k=+k,R>>>=0,wA||$(H,0,R,8),g.write(H,k,R,QA,52,8),R+8}f.prototype.slice=function(k,R){var QA=this.length;(k=~~k)<0?(k+=QA)<0&&(k=0):k>QA&&(k=QA),(R=void 0===R?QA:~~R)<0?(R+=QA)<0&&(R=0):R>QA&&(R=QA),R>>=0,R>>>=0,QA||bA(k,R,this.length);for(var wA=this[k],RA=1,rA=0;++rA>>=0,R>>>=0,QA||bA(k,R,this.length);for(var wA=this[k+--R],RA=1;R>0&&(RA*=256);)wA+=this[k+--R]*RA;return wA},f.prototype.readUint8=f.prototype.readUInt8=function(k,R){return k>>>=0,R||bA(k,1,this.length),this[k]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(k,R){return k>>>=0,R||bA(k,2,this.length),this[k]|this[k+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(k,R){return k>>>=0,R||bA(k,2,this.length),this[k]<<8|this[k+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(k,R){return k>>>=0,R||bA(k,4,this.length),(this[k]|this[k+1]<<8|this[k+2]<<16)+16777216*this[k+3]},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(k,R){return k>>>=0,R||bA(k,4,this.length),16777216*this[k]+(this[k+1]<<16|this[k+2]<<8|this[k+3])},f.prototype.readBigUInt64LE=OA(function(k){ot(k>>>=0,"offset");var R=this[k],QA=this[k+7];(void 0===R||void 0===QA)&&TA(k,this.length-8);var wA=R+this[++k]*Math.pow(2,8)+this[++k]*Math.pow(2,16)+this[++k]*Math.pow(2,24),RA=this[++k]+this[++k]*Math.pow(2,8)+this[++k]*Math.pow(2,16)+QA*Math.pow(2,24);return BigInt(wA)+(BigInt(RA)<>>=0,"offset");var R=this[k],QA=this[k+7];(void 0===R||void 0===QA)&&TA(k,this.length-8);var wA=R*Math.pow(2,24)+this[++k]*Math.pow(2,16)+this[++k]*Math.pow(2,8)+this[++k],RA=this[++k]*Math.pow(2,24)+this[++k]*Math.pow(2,16)+this[++k]*Math.pow(2,8)+QA;return(BigInt(wA)<>>=0,R>>>=0,QA||bA(k,R,this.length);for(var wA=this[k],RA=1,rA=0;++rA=(RA*=128)&&(wA-=Math.pow(2,8*R)),wA},f.prototype.readIntBE=function(k,R,QA){k>>>=0,R>>>=0,QA||bA(k,R,this.length);for(var wA=R,RA=1,rA=this[k+--wA];wA>0&&(RA*=256);)rA+=this[k+--wA]*RA;return rA>=(RA*=128)&&(rA-=Math.pow(2,8*R)),rA},f.prototype.readInt8=function(k,R){return k>>>=0,R||bA(k,1,this.length),128&this[k]?-1*(255-this[k]+1):this[k]},f.prototype.readInt16LE=function(k,R){k>>>=0,R||bA(k,2,this.length);var QA=this[k]|this[k+1]<<8;return 32768&QA?4294901760|QA:QA},f.prototype.readInt16BE=function(k,R){k>>>=0,R||bA(k,2,this.length);var QA=this[k+1]|this[k]<<8;return 32768&QA?4294901760|QA:QA},f.prototype.readInt32LE=function(k,R){return k>>>=0,R||bA(k,4,this.length),this[k]|this[k+1]<<8|this[k+2]<<16|this[k+3]<<24},f.prototype.readInt32BE=function(k,R){return k>>>=0,R||bA(k,4,this.length),this[k]<<24|this[k+1]<<16|this[k+2]<<8|this[k+3]},f.prototype.readBigInt64LE=OA(function(k){ot(k>>>=0,"offset");var R=this[k],QA=this[k+7];(void 0===R||void 0===QA)&&TA(k,this.length-8);var wA=this[k+4]+this[k+5]*Math.pow(2,8)+this[k+6]*Math.pow(2,16)+(QA<<24);return(BigInt(wA)<>>=0,"offset");var R=this[k],QA=this[k+7];(void 0===R||void 0===QA)&&TA(k,this.length-8);var wA=(R<<24)+this[++k]*Math.pow(2,16)+this[++k]*Math.pow(2,8)+this[++k];return(BigInt(wA)<>>=0,R||bA(k,4,this.length),g.read(this,k,!0,23,4)},f.prototype.readFloatBE=function(k,R){return k>>>=0,R||bA(k,4,this.length),g.read(this,k,!1,23,4)},f.prototype.readDoubleLE=function(k,R){return k>>>=0,R||bA(k,8,this.length),g.read(this,k,!0,52,8)},f.prototype.readDoubleBE=function(k,R){return k>>>=0,R||bA(k,8,this.length),g.read(this,k,!1,52,8)},f.prototype.writeUintLE=f.prototype.writeUIntLE=function(k,R,QA,wA){k=+k,R>>>=0,QA>>>=0,wA||XA(this,k,R,QA,Math.pow(2,8*QA)-1,0);var rA=1,ct=0;for(this[R]=255&k;++ct>>=0,QA>>>=0,wA||XA(this,k,R,QA,Math.pow(2,8*QA)-1,0);var rA=QA-1,ct=1;for(this[R+rA]=255&k;--rA>=0&&(ct*=256);)this[R+rA]=k/ct&255;return R+QA},f.prototype.writeUint8=f.prototype.writeUInt8=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,1,255,0),this[R]=255&k,R+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,2,65535,0),this[R]=255&k,this[R+1]=k>>>8,R+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,2,65535,0),this[R]=k>>>8,this[R+1]=255&k,R+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,4,4294967295,0),this[R+3]=k>>>24,this[R+2]=k>>>16,this[R+1]=k>>>8,this[R]=255&k,R+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,4,4294967295,0),this[R]=k>>>24,this[R+1]=k>>>16,this[R+2]=k>>>8,this[R+3]=255&k,R+4},f.prototype.writeBigUInt64LE=OA(function(k,R){return void 0===R&&(R=0),q(this,k,R,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeBigUInt64BE=OA(function(k,R){return void 0===R&&(R=0),O(this,k,R,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeIntLE=function(k,R,QA,wA){if(k=+k,R>>>=0,!wA){var RA=Math.pow(2,8*QA-1);XA(this,k,R,QA,RA-1,-RA)}var rA=0,ct=1,Ft=0;for(this[R]=255&k;++rA>0)-Ft&255;return R+QA},f.prototype.writeIntBE=function(k,R,QA,wA){if(k=+k,R>>>=0,!wA){var RA=Math.pow(2,8*QA-1);XA(this,k,R,QA,RA-1,-RA)}var rA=QA-1,ct=1,Ft=0;for(this[R+rA]=255&k;--rA>=0&&(ct*=256);)k<0&&0===Ft&&0!==this[R+rA+1]&&(Ft=1),this[R+rA]=(k/ct>>0)-Ft&255;return R+QA},f.prototype.writeInt8=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,1,127,-128),k<0&&(k=255+k+1),this[R]=255&k,R+1},f.prototype.writeInt16LE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,2,32767,-32768),this[R]=255&k,this[R+1]=k>>>8,R+2},f.prototype.writeInt16BE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,2,32767,-32768),this[R]=k>>>8,this[R+1]=255&k,R+2},f.prototype.writeInt32LE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,4,2147483647,-2147483648),this[R]=255&k,this[R+1]=k>>>8,this[R+2]=k>>>16,this[R+3]=k>>>24,R+4},f.prototype.writeInt32BE=function(k,R,QA){return k=+k,R>>>=0,QA||XA(this,k,R,4,2147483647,-2147483648),k<0&&(k=4294967295+k+1),this[R]=k>>>24,this[R+1]=k>>>16,this[R+2]=k>>>8,this[R+3]=255&k,R+4},f.prototype.writeBigInt64LE=OA(function(k,R){return void 0===R&&(R=0),q(this,k,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeBigInt64BE=OA(function(k,R){return void 0===R&&(R=0),O(this,k,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeFloatLE=function(k,R,QA){return W(this,k,R,!0,QA)},f.prototype.writeFloatBE=function(k,R,QA){return W(this,k,R,!1,QA)},f.prototype.writeDoubleLE=function(k,R,QA){return hA(this,k,R,!0,QA)},f.prototype.writeDoubleBE=function(k,R,QA){return hA(this,k,R,!1,QA)},f.prototype.copy=function(k,R,QA,wA){if(!f.isBuffer(k))throw new TypeError("argument should be a Buffer");if(QA||(QA=0),!wA&&0!==wA&&(wA=this.length),R>=k.length&&(R=k.length),R||(R=0),wA>0&&wA=this.length)throw new RangeError("Index out of range");if(wA<0)throw new RangeError("sourceEnd out of bounds");wA>this.length&&(wA=this.length),k.length-R>>=0,QA=void 0===QA?this.length:QA>>>0,k||(k=0),"number"==typeof k)for(rA=R;rA=QA+4;R-=3)k="_"+H.slice(R-3,R)+k;return""+H.slice(0,R)+k}function et(H,k,R,QA,wA,RA){if(H>R||H3?0===k||k===BigInt(0)?">= 0"+rA+" and < 2"+rA+" ** "+8*(RA+1)+rA:">= -(2"+rA+" ** "+(8*(RA+1)-1)+rA+") and < 2 ** "+(8*(RA+1)-1)+rA:">= "+k+rA+" and <= "+R+rA,new mA.ERR_OUT_OF_RANGE("value",ct,H)}!function GA(H,k,R){ot(k,"offset"),(void 0===H[k]||void 0===H[k+R])&&TA(k,H.length-(R+1))}(QA,wA,RA)}function ot(H,k){if("number"!=typeof H)throw new mA.ERR_INVALID_ARG_TYPE(k,"number",H)}function TA(H,k,R){throw Math.floor(H)!==H?(ot(H,R),new mA.ERR_OUT_OF_RANGE(R||"offset","an integer",H)):k<0?new mA.ERR_BUFFER_OUT_OF_BOUNDS:new mA.ERR_OUT_OF_RANGE(R||"offset",">= "+(R?1:0)+" and <= "+k,H)}nA("ERR_BUFFER_OUT_OF_BOUNDS",function(H){return H?H+" is outside of buffer bounds":"Attempt to access memory outside buffer bounds"},RangeError),nA("ERR_INVALID_ARG_TYPE",function(H,k){return'The "'+H+'" argument must be of type number. Received type '+typeof k},TypeError),nA("ERR_OUT_OF_RANGE",function(H,k,R){var QA='The value of "'+H+'" is out of range.',wA=R;return Number.isInteger(R)&&Math.abs(R)>Math.pow(2,32)?wA=EA(String(R)):"bigint"==typeof R&&(wA=String(R),(R>Math.pow(BigInt(2),BigInt(32))||R<-Math.pow(BigInt(2),BigInt(32)))&&(wA=EA(wA)),wA+="n"),QA+" It must be "+k+". Received "+wA},RangeError);var it=/[^+/0-9A-Za-z-_]/g;function It(H,k){k=k||1/0;for(var R,QA=H.length,wA=null,RA=[],rA=0;rA55295&&R<57344){if(!wA){if(R>56319){(k-=3)>-1&&RA.push(239,191,189);continue}if(rA+1===QA){(k-=3)>-1&&RA.push(239,191,189);continue}wA=R;continue}if(R<56320){(k-=3)>-1&&RA.push(239,191,189),wA=R;continue}R=65536+(wA-55296<<10|R-56320)}else wA&&(k-=3)>-1&&RA.push(239,191,189);if(wA=null,R<128){if((k-=1)<0)break;RA.push(R)}else if(R<2048){if((k-=2)<0)break;RA.push(R>>6|192,63&R|128)}else if(R<65536){if((k-=3)<0)break;RA.push(R>>12|224,R>>6&63|128,63&R|128)}else{if(!(R<1114112))throw new Error("Invalid code point");if((k-=4)<0)break;RA.push(R>>18|240,R>>12&63|128,R>>6&63|128,63&R|128)}}return RA}function WA(H){return a.toByteArray(function mt(H){if((H=(H=H.split("=")[0]).trim().replace(it,"")).length<2)return"";for(;H.length%4!=0;)H+="=";return H}(H))}function rt(H,k,R,QA){var wA;for(wA=0;wA=k.length||wA>=H.length);++wA)k[wA+R]=H[wA];return wA}function yA(H,k){return H instanceof k||null!=H&&null!=H.constructor&&null!=H.constructor.name&&H.constructor.name===k.name}function Mt(H){return H!=H}var ht=function(){for(var H="0123456789abcdef",k=new Array(256),R=0;R<16;++R)for(var QA=16*R,wA=0;wA<16;++wA)k[QA+wA]=H[R]+H[wA];return k}();function OA(H){return"undefined"==typeof BigInt?Yt:H}function Yt(){throw new Error("BigInt not supported")}},477:function(Y,I,n){"use strict";n(7803),n(1539),Y.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},2094:function(Y,I,n){"use strict";var lA,MA,cA,c=n(477),i=n(9781),o=n(7854),l=n(614),h=n(111),a=n(2597),g=n(648),E=n(6330),u=n(8880),C=n(1320),e=n(3070).f,f=n(7976),B=n(9518),w=n(7674),Q=n(5112),p=n(9711),S=o.Int8Array,m=S&&S.prototype,d=o.Uint8ClampedArray,v=d&&d.prototype,D=S&&B(S),U=m&&B(m),T=Object.prototype,F=o.TypeError,z=Q("toStringTag"),b=p("TYPED_ARRAY_TAG"),Z=p("TYPED_ARRAY_CONSTRUCTOR"),aA=c&&!!w&&"Opera"!==g(o.opera),AA=!1,gA={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},BA={BigInt64Array:8,BigUint64Array:8},FA=function(bA){if(!h(bA))return!1;var XA=g(bA);return a(gA,XA)||a(BA,XA)};for(lA in gA)(cA=(MA=o[lA])&&MA.prototype)?u(cA,Z,MA):aA=!1;for(lA in BA)(cA=(MA=o[lA])&&MA.prototype)&&u(cA,Z,MA);if((!aA||!l(D)||D===Function.prototype)&&(D=function(){throw F("Incorrect invocation")},aA))for(lA in gA)o[lA]&&w(o[lA],D);if((!aA||!U||U===T)&&(U=D.prototype,aA))for(lA in gA)o[lA]&&w(o[lA].prototype,U);if(aA&&B(v)!==U&&w(v,U),i&&!a(U,z))for(lA in AA=!0,e(U,z,{get:function(){return h(this)?this[b]:void 0}}),gA)o[lA]&&u(o[lA],b,lA);Y.exports={NATIVE_ARRAY_BUFFER_VIEWS:aA,TYPED_ARRAY_CONSTRUCTOR:Z,TYPED_ARRAY_TAG:AA&&b,aTypedArray:function(bA){if(FA(bA))return bA;throw F("Target is not a typed array")},aTypedArrayConstructor:function(bA){if(l(bA)&&(!w||f(D,bA)))return bA;throw F(E(bA)+" is not a typed array constructor")},exportTypedArrayMethod:function(bA,XA,q){if(i){if(q)for(var O in gA){var $=o[O];if($&&a($.prototype,bA))try{delete $.prototype[bA]}catch(W){}}(!U[bA]||q)&&C(U,bA,q?XA:aA&&m[bA]||XA)}},exportTypedArrayStaticMethod:function(bA,XA,q){var O,$;if(i){if(w){if(q)for(O in gA)if(($=o[O])&&a($,bA))try{delete $[bA]}catch(W){}if(D[bA]&&!q)return;try{return C(D,bA,q?XA:aA&&D[bA]||XA)}catch(W){}}for(O in gA)($=o[O])&&(!$[bA]||q)&&C($,bA,XA)}},isView:function(bA){if(!h(bA))return!1;var XA=g(bA);return"DataView"===XA||a(gA,XA)||a(BA,XA)},isTypedArray:FA,TypedArray:D,TypedArrayPrototype:U}},2091:function(Y,I,n){"use strict";n(8309);var c=n(7854),i=n(1702),o=n(9781),l=n(477),h=n(6530),a=n(8880),g=n(2248),E=n(7293),u=n(5787),C=n(9303),e=n(7466),f=n(7067),B=n(1179),w=n(9518),Q=n(7674),p=n(8006).f,S=n(3070).f,m=n(1285),d=n(206),v=n(8003),D=n(9909),U=h.PROPER,T=h.CONFIGURABLE,F=D.get,z=D.set,b="ArrayBuffer",Z="DataView",aA="prototype",lA="Wrong index",MA=c[b],cA=MA,gA=cA&&cA[aA],BA=c[Z],DA=BA&&BA[aA],FA=Object.prototype,_=c.Array,dA=c.RangeError,uA=i(m),CA=i([].reverse),SA=B.pack,bA=B.unpack,XA=function(ft){return[255&ft]},q=function(ft){return[255&ft,ft>>8&255]},O=function(ft){return[255&ft,ft>>8&255,ft>>16&255,ft>>24&255]},$=function(ft){return ft[3]<<24|ft[2]<<16|ft[1]<<8|ft[0]},W=function(ft){return SA(ft,23,4)},hA=function(ft){return SA(ft,52,8)},mA=function(ft,JA){S(ft[aA],JA,{get:function(){return F(this)[JA]}})},nA=function(ft,JA,WA,rt){var yA=f(WA),Mt=F(ft);if(yA+JA>Mt.byteLength)throw dA(lA);var ht=F(Mt.buffer).bytes,OA=yA+Mt.byteOffset,Yt=d(ht,OA,OA+JA);return rt?Yt:CA(Yt)},EA=function(ft,JA,WA,rt,yA,Mt){var ht=f(WA),OA=F(ft);if(ht+JA>OA.byteLength)throw dA(lA);for(var Yt=F(OA.buffer).bytes,H=ht+OA.byteOffset,k=rt(+yA),R=0;Rot;)(TA=et[ot++])in cA||a(cA,TA,MA[TA]);gA.constructor=cA}Q&&w(DA)!==FA&&Q(DA,FA);var it=new BA(new cA(2)),mt=i(DA.setInt8);it.setInt8(0,2147483648),it.setInt8(1,2147483649),(it.getInt8(0)||!it.getInt8(1))&&g(DA,{setInt8:function(ft,JA){mt(this,ft,JA<<24>>24)},setUint8:function(ft,JA){mt(this,ft,JA<<24>>24)}},{unsafe:!0})}else gA=(cA=function(ft){u(this,gA);var JA=f(ft);z(this,{bytes:uA(_(JA),0),byteLength:JA}),o||(this.byteLength=JA)})[aA],DA=(BA=function(ft,JA,WA){u(this,DA),u(ft,gA);var rt=F(ft).byteLength,yA=C(JA);if(yA<0||yA>rt)throw dA("Wrong offset");if(yA+(WA=void 0===WA?rt-yA:e(WA))>rt)throw dA("Wrong length");z(this,{buffer:ft,byteLength:WA,byteOffset:yA}),o||(this.buffer=ft,this.byteLength=WA,this.byteOffset=yA)})[aA],o&&(mA(cA,"byteLength"),mA(BA,"buffer"),mA(BA,"byteLength"),mA(BA,"byteOffset")),g(DA,{getInt8:function(ft){return nA(this,1,ft)[0]<<24>>24},getUint8:function(ft){return nA(this,1,ft)[0]},getInt16:function(ft){var JA=nA(this,2,ft,arguments.length>1?arguments[1]:void 0);return(JA[1]<<8|JA[0])<<16>>16},getUint16:function(ft){var JA=nA(this,2,ft,arguments.length>1?arguments[1]:void 0);return JA[1]<<8|JA[0]},getInt32:function(ft){return $(nA(this,4,ft,arguments.length>1?arguments[1]:void 0))},getUint32:function(ft){return $(nA(this,4,ft,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(ft){return bA(nA(this,4,ft,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(ft){return bA(nA(this,8,ft,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(ft,JA){EA(this,1,ft,XA,JA)},setUint8:function(ft,JA){EA(this,1,ft,XA,JA)},setInt16:function(ft,JA){EA(this,2,ft,q,JA,arguments.length>2?arguments[2]:void 0)},setUint16:function(ft,JA){EA(this,2,ft,q,JA,arguments.length>2?arguments[2]:void 0)},setInt32:function(ft,JA){EA(this,4,ft,O,JA,arguments.length>2?arguments[2]:void 0)},setUint32:function(ft,JA){EA(this,4,ft,O,JA,arguments.length>2?arguments[2]:void 0)},setFloat32:function(ft,JA){EA(this,4,ft,W,JA,arguments.length>2?arguments[2]:void 0)},setFloat64:function(ft,JA){EA(this,8,ft,hA,JA,arguments.length>2?arguments[2]:void 0)}});v(cA,b),v(BA,Z),Y.exports={ArrayBuffer:cA,DataView:BA}},7803:function(Y,I,n){"use strict";var c=n(2109),i=n(7854),o=n(2091),l=n(6340),h="ArrayBuffer",a=o[h];c({global:!0,forced:i[h]!==a},{ArrayBuffer:a}),l(h)},194:function(Y,I,n){"use strict";Y.exports=function(c){return function(){var i=c,l=i.lib.BlockCipher,h=i.algo,a=[],g=[],E=[],u=[],C=[],e=[],f=[],B=[],w=[],Q=[];!function(){for(var m=[],d=0;d<256;d++)m[d]=d<128?d<<1:d<<1^283;var v=0,D=0;for(d=0;d<256;d++){var U=D^D<<1^D<<2^D<<3^D<<4;a[v]=U=U>>>8^255&U^99,g[U]=v;var b,T=m[v],F=m[T],z=m[F];E[v]=(b=257*m[U]^16843008*U)<<24|b>>>8,u[v]=b<<16|b>>>16,C[v]=b<<8|b>>>24,e[v]=b,f[U]=(b=16843009*z^65537*F^257*T^16843008*v)<<24|b>>>8,B[U]=b<<16|b>>>16,w[U]=b<<8|b>>>24,Q[U]=b,v?(v=T^m[m[m[z^T]]],D^=m[m[D]]):v=D=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],S=h.AES=l.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var v=this._keyPriorReset=this._key,D=v.words,U=v.sigBytes/4,F=4*((this._nRounds=U+6)+1),z=this._keySchedule=[],b=0;b6&&b%U==4&&(d=a[d>>>24]<<24|a[d>>>16&255]<<16|a[d>>>8&255]<<8|a[255&d]):(d=a[(d=d<<8|d>>>24)>>>24]<<24|a[d>>>16&255]<<16|a[d>>>8&255]<<8|a[255&d],d^=p[b/U|0]<<24),z[b]=z[b-U]^d);for(var Z=this._invKeySchedule=[],aA=0;aA>>24]]^B[a[d>>>16&255]]^w[a[d>>>8&255]]^Q[a[255&d]]}}},encryptBlock:function(d,v){this._doCryptBlock(d,v,this._keySchedule,E,u,C,e,a)},decryptBlock:function(d,v){var D=d[v+1];d[v+1]=d[v+3],d[v+3]=D,this._doCryptBlock(d,v,this._invKeySchedule,f,B,w,Q,g),D=d[v+1],d[v+1]=d[v+3],d[v+3]=D},_doCryptBlock:function(d,v,D,U,T,F,z,b){for(var Z=this._nRounds,aA=d[v]^D[0],AA=d[v+1]^D[1],lA=d[v+2]^D[2],MA=d[v+3]^D[3],cA=4,gA=1;gA>>24]^T[AA>>>16&255]^F[lA>>>8&255]^z[255&MA]^D[cA++],DA=U[AA>>>24]^T[lA>>>16&255]^F[MA>>>8&255]^z[255&aA]^D[cA++],FA=U[lA>>>24]^T[MA>>>16&255]^F[aA>>>8&255]^z[255&AA]^D[cA++],_=U[MA>>>24]^T[aA>>>16&255]^F[AA>>>8&255]^z[255&lA]^D[cA++];aA=BA,AA=DA,lA=FA,MA=_}BA=(b[aA>>>24]<<24|b[AA>>>16&255]<<16|b[lA>>>8&255]<<8|b[255&MA])^D[cA++],DA=(b[AA>>>24]<<24|b[lA>>>16&255]<<16|b[MA>>>8&255]<<8|b[255&aA])^D[cA++],FA=(b[lA>>>24]<<24|b[MA>>>16&255]<<16|b[aA>>>8&255]<<8|b[255&AA])^D[cA++],_=(b[MA>>>24]<<24|b[aA>>>16&255]<<16|b[AA>>>8&255]<<8|b[255&lA])^D[cA++],d[v]=BA,d[v+1]=DA,d[v+2]=FA,d[v+3]=_},keySize:8});i.AES=l._createHelper(S)}(),c.AES}(n(757),n(7508),n(3440),n(3839),n(1582))},1582:function(Y,I,n){"use strict";n(7042),n(2222),n(1539),n(9714),n(561),Y.exports=function(c){var o,l,h,a,g,C,f,B,Q,p,S,d,D,T,F,b,Z;c.lib.Cipher||(a=(l=(o=c).lib).WordArray,C=o.enc.Base64,f=o.algo.EvpKDF,B=l.Cipher=(g=l.BufferedBlockAlgorithm).extend({cfg:(h=l.Base).extend(),createEncryptor:function(AA,lA){return this.create(this._ENC_XFORM_MODE,AA,lA)},createDecryptor:function(AA,lA){return this.create(this._DEC_XFORM_MODE,AA,lA)},init:function(AA,lA,MA){this.cfg=this.cfg.extend(MA),this._xformMode=AA,this._key=lA,this.reset()},reset:function(){g.reset.call(this),this._doReset()},process:function(AA){return this._append(AA),this._process()},finalize:function(AA){return AA&&this._append(AA),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function aA(AA){return"string"==typeof AA?Z:F}return function(AA){return{encrypt:function(MA,cA,gA){return aA(cA).encrypt(AA,MA,cA,gA)},decrypt:function(MA,cA,gA){return aA(cA).decrypt(AA,MA,cA,gA)}}}}()}),l.StreamCipher=B.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),Q=o.mode={},p=l.BlockCipherMode=h.extend({createEncryptor:function(AA,lA){return this.Encryptor.create(AA,lA)},createDecryptor:function(AA,lA){return this.Decryptor.create(AA,lA)},init:function(AA,lA){this._cipher=AA,this._iv=lA}}),S=Q.CBC=function(){var aA=p.extend();function AA(lA,MA,cA){var gA,BA=this._iv;BA?(gA=BA,this._iv=undefined):gA=this._prevBlock;for(var DA=0;DA>>2]}},l.BlockCipher=B.extend({cfg:B.cfg.extend({mode:S,padding:d}),reset:function(){var AA;B.reset.call(this);var lA=this.cfg,MA=lA.iv,cA=lA.mode;this._xformMode==this._ENC_XFORM_MODE?AA=cA.createEncryptor:(AA=cA.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==AA?this._mode.init(this,MA&&MA.words):(this._mode=AA.call(cA,this,MA&&MA.words),this._mode.__creator=AA)},_doProcessBlock:function(AA,lA){this._mode.processBlock(AA,lA)},_doFinalize:function(){var AA,lA=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(lA.pad(this._data,this.blockSize),AA=this._process(!0)):(AA=this._process(!0),lA.unpad(AA)),AA},blockSize:4}),D=l.CipherParams=h.extend({init:function(AA){this.mixIn(AA)},toString:function(AA){return(AA||this.formatter).stringify(this)}}),T=(o.format={}).OpenSSL={stringify:function(AA){var MA=AA.ciphertext,cA=AA.salt;return(cA?a.create([1398893684,1701076831]).concat(cA).concat(MA):MA).toString(C)},parse:function(AA){var lA,MA=C.parse(AA),cA=MA.words;return 1398893684==cA[0]&&1701076831==cA[1]&&(lA=a.create(cA.slice(2,4)),cA.splice(0,4),MA.sigBytes-=16),D.create({ciphertext:MA,salt:lA})}},F=l.SerializableCipher=h.extend({cfg:h.extend({format:T}),encrypt:function(AA,lA,MA,cA){cA=this.cfg.extend(cA);var gA=AA.createEncryptor(MA,cA),BA=gA.finalize(lA),DA=gA.cfg;return D.create({ciphertext:BA,key:MA,iv:DA.iv,algorithm:AA,mode:DA.mode,padding:DA.padding,blockSize:AA.blockSize,formatter:cA.format})},decrypt:function(AA,lA,MA,cA){return cA=this.cfg.extend(cA),lA=this._parse(lA,cA.format),AA.createDecryptor(MA,cA).finalize(lA.ciphertext)},_parse:function(AA,lA){return"string"==typeof AA?lA.parse(AA,this):AA}}),b=(o.kdf={}).OpenSSL={execute:function(AA,lA,MA,cA){cA||(cA=a.random(8));var gA=f.create({keySize:lA+MA}).compute(AA,cA),BA=a.create(gA.words.slice(lA),4*MA);return gA.sigBytes=4*lA,D.create({key:gA,iv:BA,salt:cA})}},Z=l.PasswordBasedCipher=F.extend({cfg:F.cfg.extend({kdf:b}),encrypt:function(AA,lA,MA,cA){var gA=(cA=this.cfg.extend(cA)).kdf.execute(MA,AA.keySize,AA.ivSize);cA.iv=gA.iv;var BA=F.encrypt.call(this,AA,lA,gA.key,cA);return BA.mixIn(gA),BA},decrypt:function(AA,lA,MA,cA){cA=this.cfg.extend(cA),lA=this._parse(lA,cA.format);var gA=cA.kdf.execute(MA,AA.keySize,AA.ivSize,lA.salt);return cA.iv=gA.iv,F.decrypt.call(this,AA,lA,gA.key,cA)}}))}(n(757),n(3839))},757:function(Y,I,n){"use strict";var i;n(5743),n(6992),n(1539),n(9135),n(2990),n(8927),n(3105),n(5035),n(4345),n(7174),n(2846),n(4731),n(7209),n(6319),n(8867),n(7789),n(3739),n(9368),n(4483),n(2056),n(3462),n(678),n(7462),n(3824),n(5021),n(2974),n(5016),n(9714),n(7042),n(9600),n(2222),n(561),i=function(){var c=c||function(i,o){var l;if("undefined"!=typeof window&&window.crypto&&(l=window.crypto),"undefined"!=typeof self&&self.crypto&&(l=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(l=globalThis.crypto),!l&&"undefined"!=typeof window&&window.msCrypto&&(l=window.msCrypto),!l&&void 0!==n.g&&n.g.crypto&&(l=n.g.crypto),!l)try{l=n(2480)}catch(m){}var h=function(){if(l){if("function"==typeof l.getRandomValues)try{return l.getRandomValues(new Uint32Array(1))[0]}catch(d){}if("function"==typeof l.randomBytes)try{return l.randomBytes(4).readInt32LE()}catch(d){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function m(){}return function(d){var v;return m.prototype=d,v=new m,m.prototype=null,v}}(),g={},E=g.lib={},u=E.Base={extend:function(d){var v=a(this);return d&&v.mixIn(d),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var d=this.extend();return d.init.apply(d,arguments),d},init:function(){},mixIn:function(d){for(var v in d)d.hasOwnProperty(v)&&(this[v]=d[v]);d.hasOwnProperty("toString")&&(this.toString=d.toString)},clone:function(){return this.init.prototype.extend(this)}},C=E.WordArray=u.extend({init:function(d,v){d=this.words=d||[],this.sigBytes=null!=v?v:4*d.length},toString:function(d){return(d||f).stringify(this)},concat:function(d){var v=this.words,D=d.words,U=this.sigBytes,T=d.sigBytes;if(this.clamp(),U%4)for(var F=0;F>>2]|=(D[F>>>2]>>>24-F%4*8&255)<<24-(U+F)%4*8;else for(var b=0;b>>2]=D[b>>>2];return this.sigBytes+=T,this},clamp:function(){var d=this.words,v=this.sigBytes;d[v>>>2]&=4294967295<<32-v%4*8,d.length=i.ceil(v/4)},clone:function(){var d=u.clone.call(this);return d.words=this.words.slice(0),d},random:function(d){for(var v=[],D=0;D>>2]>>>24-T%4*8&255;U.push((F>>>4).toString(16)),U.push((15&F).toString(16))}return U.join("")},parse:function(d){for(var v=d.length,D=[],U=0;U>>3]|=parseInt(d.substr(U,2),16)<<24-U%8*4;return new C.init(D,v/2)}},B=e.Latin1={stringify:function(d){for(var v=d.words,D=d.sigBytes,U=[],T=0;T>>2]>>>24-T%4*8&255));return U.join("")},parse:function(d){for(var v=d.length,D=[],U=0;U>>2]|=(255&d.charCodeAt(U))<<24-U%4*8;return new C.init(D,v)}},w=e.Utf8={stringify:function(d){try{return decodeURIComponent(escape(B.stringify(d)))}catch(v){throw new Error("Malformed UTF-8 data")}},parse:function(d){return B.parse(unescape(encodeURIComponent(d)))}},Q=E.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new C.init,this._nDataBytes=0},_append:function(d){"string"==typeof d&&(d=w.parse(d)),this._data.concat(d),this._nDataBytes+=d.sigBytes},_process:function(d){var v,D=this._data,U=D.words,T=D.sigBytes,F=this.blockSize,b=T/(4*F),Z=(b=d?i.ceil(b):i.max((0|b)-this._minBufferSize,0))*F,aA=i.min(4*Z,T);if(Z){for(var AA=0;AA>>2]>>>24-w%4*8&255)<<16|(C[w+1>>>2]>>>24-(w+1)%4*8&255)<<8|C[w+2>>>2]>>>24-(w+2)%4*8&255,d=0;d<4&&w+.75*d>>6*(3-d)&63));var v=f.charAt(64);if(v)for(;B.length%4;)B.push(v);return B.join("")},parse:function(u){var C=u.length,e=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var B=0;B>>6-B%4*2;e[f>>>2]|=(w|Q)<<24-f%4*8,f++}return l.create(e,f)}(u,C,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},c.enc.Base64;var l}(n(757))},7590:function(Y,I,n){"use strict";n(9600),Y.exports=function(c){return l=c.lib.WordArray,c.enc.Base64url={stringify:function(u,C){void 0===C&&(C=!0);var e=u.words,f=u.sigBytes,B=C?this._safe_map:this._map;u.clamp();for(var w=[],Q=0;Q>>2]>>>24-Q%4*8&255)<<16|(e[Q+1>>>2]>>>24-(Q+1)%4*8&255)<<8|e[Q+2>>>2]>>>24-(Q+2)%4*8&255,v=0;v<4&&Q+.75*v>>6*(3-v)&63));var D=B.charAt(64);if(D)for(;w.length%4;)w.push(D);return w.join("")},parse:function(u,C){void 0===C&&(C=!0);var e=u.length,f=C?this._safe_map:this._map,B=this._reverseMap;if(!B){B=this._reverseMap=[];for(var w=0;w>>6-B%4*2;e[f>>>2]|=(w|Q)<<24-f%4*8,f++}return l.create(e,f)}(u,e,B)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},c.enc.Base64url;var l}(n(757))},4978:function(Y,I,n){"use strict";n(9600),Y.exports=function(c){return function(){var l=c.lib.WordArray,h=c.enc;function g(E){return E<<8&4278255360|E>>>8&16711935}h.Utf16=h.Utf16BE={stringify:function(u){for(var C=u.words,e=u.sigBytes,f=[],B=0;B>>2]>>>16-B%4*8&65535));return f.join("")},parse:function(u){for(var C=u.length,e=[],f=0;f>>1]|=u.charCodeAt(f)<<16-f%2*16;return l.create(e,2*C)}},h.Utf16LE={stringify:function(u){for(var C=u.words,e=u.sigBytes,f=[],B=0;B>>2]>>>16-B%4*8&65535);f.push(String.fromCharCode(w))}return f.join("")},parse:function(u){for(var C=u.length,e=[],f=0;f>>1]|=g(u.charCodeAt(f)<<16-f%2*16);return l.create(e,2*C)}}}(),c.enc.Utf16}(n(757))},3839:function(Y,I,n){"use strict";n(2222),Y.exports=function(c){return h=(o=(i=c).lib).WordArray,E=(a=i.algo).EvpKDF=(l=o.Base).extend({cfg:l.extend({keySize:4,hasher:a.MD5,iterations:1}),init:function(C){this.cfg=this.cfg.extend(C)},compute:function(C,e){for(var f,B=this.cfg,w=B.hasher.create(),Q=h.create(),p=Q.words,S=B.keySize,m=B.iterations;p.lengthB&&(e=C.finalize(e)),e.clamp();for(var w=this._oKey=e.clone(),Q=this._iKey=e.clone(),p=w.words,S=Q.words,m=0;m>>2]|=g[C]<<24-C%4*8;h.call(this,u,E)}else h.apply(this,arguments)};a.prototype=l}}(),c.lib.WordArray},Y.exports=i(n(757))},3440:function(Y,I,n){"use strict";Y.exports=function(c){return function(i){var o=c,l=o.lib,h=l.WordArray,a=l.Hasher,g=o.algo,E=[];!function(){for(var w=0;w<64;w++)E[w]=4294967296*i.abs(i.sin(w+1))|0}();var u=g.MD5=a.extend({_doReset:function(){this._hash=new h.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(Q,p){for(var S=0;S<16;S++){var m=p+S,d=Q[m];Q[m]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}var v=this._hash.words,D=Q[p+0],U=Q[p+1],T=Q[p+2],F=Q[p+3],z=Q[p+4],b=Q[p+5],Z=Q[p+6],aA=Q[p+7],AA=Q[p+8],lA=Q[p+9],MA=Q[p+10],cA=Q[p+11],gA=Q[p+12],BA=Q[p+13],DA=Q[p+14],FA=Q[p+15],_=v[0],dA=v[1],uA=v[2],CA=v[3];_=C(_,dA,uA,CA,D,7,E[0]),CA=C(CA,_,dA,uA,U,12,E[1]),uA=C(uA,CA,_,dA,T,17,E[2]),dA=C(dA,uA,CA,_,F,22,E[3]),_=C(_,dA,uA,CA,z,7,E[4]),CA=C(CA,_,dA,uA,b,12,E[5]),uA=C(uA,CA,_,dA,Z,17,E[6]),dA=C(dA,uA,CA,_,aA,22,E[7]),_=C(_,dA,uA,CA,AA,7,E[8]),CA=C(CA,_,dA,uA,lA,12,E[9]),uA=C(uA,CA,_,dA,MA,17,E[10]),dA=C(dA,uA,CA,_,cA,22,E[11]),_=C(_,dA,uA,CA,gA,7,E[12]),CA=C(CA,_,dA,uA,BA,12,E[13]),uA=C(uA,CA,_,dA,DA,17,E[14]),_=e(_,dA=C(dA,uA,CA,_,FA,22,E[15]),uA,CA,U,5,E[16]),CA=e(CA,_,dA,uA,Z,9,E[17]),uA=e(uA,CA,_,dA,cA,14,E[18]),dA=e(dA,uA,CA,_,D,20,E[19]),_=e(_,dA,uA,CA,b,5,E[20]),CA=e(CA,_,dA,uA,MA,9,E[21]),uA=e(uA,CA,_,dA,FA,14,E[22]),dA=e(dA,uA,CA,_,z,20,E[23]),_=e(_,dA,uA,CA,lA,5,E[24]),CA=e(CA,_,dA,uA,DA,9,E[25]),uA=e(uA,CA,_,dA,F,14,E[26]),dA=e(dA,uA,CA,_,AA,20,E[27]),_=e(_,dA,uA,CA,BA,5,E[28]),CA=e(CA,_,dA,uA,T,9,E[29]),uA=e(uA,CA,_,dA,aA,14,E[30]),_=f(_,dA=e(dA,uA,CA,_,gA,20,E[31]),uA,CA,b,4,E[32]),CA=f(CA,_,dA,uA,AA,11,E[33]),uA=f(uA,CA,_,dA,cA,16,E[34]),dA=f(dA,uA,CA,_,DA,23,E[35]),_=f(_,dA,uA,CA,U,4,E[36]),CA=f(CA,_,dA,uA,z,11,E[37]),uA=f(uA,CA,_,dA,aA,16,E[38]),dA=f(dA,uA,CA,_,MA,23,E[39]),_=f(_,dA,uA,CA,BA,4,E[40]),CA=f(CA,_,dA,uA,D,11,E[41]),uA=f(uA,CA,_,dA,F,16,E[42]),dA=f(dA,uA,CA,_,Z,23,E[43]),_=f(_,dA,uA,CA,lA,4,E[44]),CA=f(CA,_,dA,uA,gA,11,E[45]),uA=f(uA,CA,_,dA,FA,16,E[46]),_=B(_,dA=f(dA,uA,CA,_,T,23,E[47]),uA,CA,D,6,E[48]),CA=B(CA,_,dA,uA,aA,10,E[49]),uA=B(uA,CA,_,dA,DA,15,E[50]),dA=B(dA,uA,CA,_,b,21,E[51]),_=B(_,dA,uA,CA,gA,6,E[52]),CA=B(CA,_,dA,uA,F,10,E[53]),uA=B(uA,CA,_,dA,MA,15,E[54]),dA=B(dA,uA,CA,_,U,21,E[55]),_=B(_,dA,uA,CA,AA,6,E[56]),CA=B(CA,_,dA,uA,FA,10,E[57]),uA=B(uA,CA,_,dA,Z,15,E[58]),dA=B(dA,uA,CA,_,BA,21,E[59]),_=B(_,dA,uA,CA,z,6,E[60]),CA=B(CA,_,dA,uA,cA,10,E[61]),uA=B(uA,CA,_,dA,T,15,E[62]),dA=B(dA,uA,CA,_,lA,21,E[63]),v[0]=v[0]+_|0,v[1]=v[1]+dA|0,v[2]=v[2]+uA|0,v[3]=v[3]+CA|0},_doFinalize:function(){var Q=this._data,p=Q.words,S=8*this._nDataBytes,m=8*Q.sigBytes;p[m>>>5]|=128<<24-m%32;var d=i.floor(S/4294967296),v=S;p[15+(m+64>>>9<<4)]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),p[14+(m+64>>>9<<4)]=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8),Q.sigBytes=4*(p.length+1),this._process();for(var D=this._hash,U=D.words,T=0;T<4;T++){var F=U[T];U[T]=16711935&(F<<8|F>>>24)|4278255360&(F<<24|F>>>8)}return D},clone:function(){var Q=a.clone.call(this);return Q._hash=this._hash.clone(),Q}});function C(w,Q,p,S,m,d,v){var D=w+(Q&p|~Q&S)+m+v;return(D<>>32-d)+Q}function e(w,Q,p,S,m,d,v){var D=w+(Q&S|p&~S)+m+v;return(D<>>32-d)+Q}function f(w,Q,p,S,m,d,v){var D=w+(Q^p^S)+m+v;return(D<>>32-d)+Q}function B(w,Q,p,S,m,d,v){var D=w+(p^(Q|~S))+m+v;return(D<>>32-d)+Q}o.MD5=a._createHelper(u),o.HmacMD5=a._createHmacHelper(u)}(Math),c.MD5}(n(757))},702:function(Y,I,n){"use strict";n(7042),Y.exports=function(c){return c.mode.CFB=function(){var i=c.lib.BlockCipherMode.extend();function o(l,h,a,g){var E,u=this._iv;u?(E=u.slice(0),this._iv=void 0):E=this._prevBlock,g.encryptBlock(E,0);for(var C=0;C>24&255)){var g=a>>16&255,E=a>>8&255,u=255&a;255===g?(g=0,255===E?(E=0,255===u?u=0:++u):++E):++g,a=0,a+=g<<16,a+=E<<8,a+=u}else a+=16777216;return a}var h=i.Encryptor=i.extend({processBlock:function(g,E){var u=this._cipher,C=u.blockSize,e=this._iv,f=this._counter;e&&(f=this._counter=e.slice(0),this._iv=void 0),function l(a){return 0===(a[0]=o(a[0]))&&(a[1]=o(a[1])),a}(f);var B=f.slice(0);u.encryptBlock(B,0);for(var w=0;w>>2]|=g<<24-E%4*8,o.sigBytes+=g},unpad:function(o){o.sigBytes-=255&o.words[o.sigBytes-1>>>2]}},c.pad.Ansix923}(n(757),n(1582))},4431:function(Y,I,n){"use strict";n(2222),Y.exports=function(c){return c.pad.Iso10126={pad:function(o,l){var h=4*l,a=h-o.sigBytes%h;o.concat(c.lib.WordArray.random(a-1)).concat(c.lib.WordArray.create([a<<24],1))},unpad:function(o){o.sigBytes-=255&o.words[o.sigBytes-1>>>2]}},c.pad.Iso10126}(n(757),n(1582))},8800:function(Y,I,n){"use strict";n(2222),Y.exports=function(c){return c.pad.Iso97971={pad:function(o,l){o.concat(c.lib.WordArray.create([2147483648],1)),c.pad.ZeroPadding.pad(o,l)},unpad:function(o){c.pad.ZeroPadding.unpad(o),o.sigBytes--}},c.pad.Iso97971}(n(757),n(1582))},649:function(Y,I,n){"use strict";Y.exports=function(c){return c.pad.NoPadding={pad:function(){},unpad:function(){}},c.pad.NoPadding}(n(757),n(1582))},3992:function(Y,I,n){"use strict";Y.exports=function(c){return c.pad.ZeroPadding={pad:function(o,l){var h=4*l;o.clamp(),o.sigBytes+=h-(o.sigBytes%h||h)},unpad:function(o){var l=o.words,h=o.sigBytes-1;for(h=o.sigBytes-1;h>=0;h--)if(l[h>>>2]>>>24-h%4*8&255){o.sigBytes=h+1;break}}},c.pad.ZeroPadding}(n(757),n(1582))},3486:function(Y,I,n){"use strict";n(2222),Y.exports=function(c){return h=(o=(i=c).lib).WordArray,E=(a=i.algo).HMAC,u=a.PBKDF2=(l=o.Base).extend({cfg:l.extend({keySize:4,hasher:a.SHA1,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,f){for(var B=this.cfg,w=E.create(B.hasher,e),Q=h.create(),p=h.create([1]),S=Q.words,m=p.words,d=B.keySize,v=B.iterations;S.length>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],Q=this._C=[f[2]<<16|f[2]>>>16,4294901760&f[0]|65535&f[1],f[3]<<16|f[3]>>>16,4294901760&f[1]|65535&f[2],f[0]<<16|f[0]>>>16,4294901760&f[2]|65535&f[3],f[1]<<16|f[1]>>>16,4294901760&f[3]|65535&f[0]];this._b=0;for(var p=0;p<4;p++)C.call(this);for(p=0;p<8;p++)Q[p]^=w[p+4&7];if(B){var S=B.words,m=S[0],d=S[1],v=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),D=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),U=v>>>16|4294901760&D,T=D<<16|65535&v;for(Q[0]^=v,Q[1]^=U,Q[2]^=D,Q[3]^=T,Q[4]^=v,Q[5]^=U,Q[6]^=D,Q[7]^=T,p=0;p<4;p++)C.call(this)}},_doProcessBlock:function(f,B){var w=this._X;C.call(this),a[0]=w[0]^w[5]>>>16^w[3]<<16,a[1]=w[2]^w[7]>>>16^w[5]<<16,a[2]=w[4]^w[1]>>>16^w[7]<<16,a[3]=w[6]^w[3]>>>16^w[1]<<16;for(var Q=0;Q<4;Q++)a[Q]=16711935&(a[Q]<<8|a[Q]>>>24)|4278255360&(a[Q]<<24|a[Q]>>>8),f[B+Q]^=a[Q]},blockSize:4,ivSize:2});function C(){for(var e=this._X,f=this._C,B=0;B<8;B++)g[B]=f[B];for(f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0,B=0;B<8;B++){var w=e[B]+f[B],Q=65535&w,p=w>>>16;E[B]=((Q*Q>>>17)+Q*p>>>15)+p*p^((4294901760&w)*w|0)+((65535&w)*w|0)}e[0]=E[0]+(E[7]<<16|E[7]>>>16)+(E[6]<<16|E[6]>>>16)|0,e[1]=E[1]+(E[0]<<8|E[0]>>>24)+E[7]|0,e[2]=E[2]+(E[1]<<16|E[1]>>>16)+(E[0]<<16|E[0]>>>16)|0,e[3]=E[3]+(E[2]<<8|E[2]>>>24)+E[1]|0,e[4]=E[4]+(E[3]<<16|E[3]>>>16)+(E[2]<<16|E[2]>>>16)|0,e[5]=E[5]+(E[4]<<8|E[4]>>>24)+E[3]|0,e[6]=E[6]+(E[5]<<16|E[5]>>>16)+(E[4]<<16|E[4]>>>16)|0,e[7]=E[7]+(E[6]<<8|E[6]>>>24)+E[5]|0}i.RabbitLegacy=l._createHelper(u)}(),c.RabbitLegacy}(n(757),n(7508),n(3440),n(3839),n(1582))},5323:function(Y,I,n){"use strict";Y.exports=function(c){return function(){var i=c,l=i.lib.StreamCipher,a=[],g=[],E=[],u=i.algo.Rabbit=l.extend({_doReset:function(){for(var f=this._key.words,B=this.cfg.iv,w=0;w<4;w++)f[w]=16711935&(f[w]<<8|f[w]>>>24)|4278255360&(f[w]<<24|f[w]>>>8);var Q=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],p=this._C=[f[2]<<16|f[2]>>>16,4294901760&f[0]|65535&f[1],f[3]<<16|f[3]>>>16,4294901760&f[1]|65535&f[2],f[0]<<16|f[0]>>>16,4294901760&f[2]|65535&f[3],f[1]<<16|f[1]>>>16,4294901760&f[3]|65535&f[0]];for(this._b=0,w=0;w<4;w++)C.call(this);for(w=0;w<8;w++)p[w]^=Q[w+4&7];if(B){var S=B.words,m=S[0],d=S[1],v=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),D=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),U=v>>>16|4294901760&D,T=D<<16|65535&v;for(p[0]^=v,p[1]^=U,p[2]^=D,p[3]^=T,p[4]^=v,p[5]^=U,p[6]^=D,p[7]^=T,w=0;w<4;w++)C.call(this)}},_doProcessBlock:function(f,B){var w=this._X;C.call(this),a[0]=w[0]^w[5]>>>16^w[3]<<16,a[1]=w[2]^w[7]>>>16^w[5]<<16,a[2]=w[4]^w[1]>>>16^w[7]<<16,a[3]=w[6]^w[3]>>>16^w[1]<<16;for(var Q=0;Q<4;Q++)a[Q]=16711935&(a[Q]<<8|a[Q]>>>24)|4278255360&(a[Q]<<24|a[Q]>>>8),f[B+Q]^=a[Q]},blockSize:4,ivSize:2});function C(){for(var e=this._X,f=this._C,B=0;B<8;B++)g[B]=f[B];for(f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0,B=0;B<8;B++){var w=e[B]+f[B],Q=65535&w,p=w>>>16;E[B]=((Q*Q>>>17)+Q*p>>>15)+p*p^((4294901760&w)*w|0)+((65535&w)*w|0)}e[0]=E[0]+(E[7]<<16|E[7]>>>16)+(E[6]<<16|E[6]>>>16)|0,e[1]=E[1]+(E[0]<<8|E[0]>>>24)+E[7]|0,e[2]=E[2]+(E[1]<<16|E[1]>>>16)+(E[0]<<16|E[0]>>>16)|0,e[3]=E[3]+(E[2]<<8|E[2]>>>24)+E[1]|0,e[4]=E[4]+(E[3]<<16|E[3]>>>16)+(E[2]<<16|E[2]>>>16)|0,e[5]=E[5]+(E[4]<<8|E[4]>>>24)+E[3]|0,e[6]=E[6]+(E[5]<<16|E[5]>>>16)+(E[4]<<16|E[4]>>>16)|0,e[7]=E[7]+(E[6]<<8|E[6]>>>24)+E[5]|0}i.Rabbit=l._createHelper(u)}(),c.Rabbit}(n(757),n(7508),n(3440),n(3839),n(1582))},4640:function(Y,I,n){"use strict";n(1539),n(8674),Y.exports=function(c){return function(){var i=c,l=i.lib.StreamCipher,h=i.algo,a=h.RC4=l.extend({_doReset:function(){for(var C=this._key,e=C.words,f=C.sigBytes,B=this._S=[],w=0;w<256;w++)B[w]=w;w=0;for(var Q=0;w<256;w++){var p=w%f,m=B[w];B[w]=B[Q=(Q+B[w]+(e[p>>>2]>>>24-p%4*8&255))%256],B[Q]=m}this._i=this._j=0},_doProcessBlock:function(C,e){C[e]^=g.call(this)},keySize:8,ivSize:0});function g(){for(var u=this._S,C=this._i,e=this._j,f=0,B=0;B<4;B++){var w=u[C=(C+1)%256];u[C]=u[e=(e+u[C])%256],u[e]=w,f|=u[(u[C]+u[e])%256]<<24-8*B}return this._i=C,this._j=e,f}i.RC4=l._createHelper(a);var E=h.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var C=this.cfg.drop;C>0;C--)g.call(this)}});i.RC4Drop=l._createHelper(E)}(),c.RC4}(n(757),n(7508),n(3440),n(3839),n(1582))},8714:function(Y,I,n){"use strict";Y.exports=function(c){return function(i){var o=c,l=o.lib,h=l.WordArray,a=l.Hasher,g=o.algo,E=h.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=h.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),C=h.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),e=h.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=h.create([0,1518500249,1859775393,2400959708,2840853838]),B=h.create([1352829926,1548603684,1836072691,2053994217,0]),w=g.RIPEMD160=a.extend({_doReset:function(){this._hash=h.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(U,T){for(var F=0;F<16;F++){var z=T+F,b=U[z];U[z]=16711935&(b<<8|b>>>24)|4278255360&(b<<24|b>>>8)}var BA,DA,FA,_,dA,uA,CA,SA,bA,XA,q,Z=this._hash.words,aA=f.words,AA=B.words,lA=E.words,MA=u.words,cA=C.words,gA=e.words;for(uA=BA=Z[0],CA=DA=Z[1],SA=FA=Z[2],bA=_=Z[3],XA=dA=Z[4],F=0;F<80;F+=1)q=BA+U[T+lA[F]]|0,q+=F<16?Q(DA,FA,_)+aA[0]:F<32?p(DA,FA,_)+aA[1]:F<48?S(DA,FA,_)+aA[2]:F<64?m(DA,FA,_)+aA[3]:d(DA,FA,_)+aA[4],q=(q=v(q|=0,cA[F]))+dA|0,BA=dA,dA=_,_=v(FA,10),FA=DA,DA=q,q=uA+U[T+MA[F]]|0,q+=F<16?d(CA,SA,bA)+AA[0]:F<32?m(CA,SA,bA)+AA[1]:F<48?S(CA,SA,bA)+AA[2]:F<64?p(CA,SA,bA)+AA[3]:Q(CA,SA,bA)+AA[4],q=(q=v(q|=0,gA[F]))+XA|0,uA=XA,XA=bA,bA=v(SA,10),SA=CA,CA=q;q=Z[1]+FA+bA|0,Z[1]=Z[2]+_+XA|0,Z[2]=Z[3]+dA+uA|0,Z[3]=Z[4]+BA+CA|0,Z[4]=Z[0]+DA+SA|0,Z[0]=q},_doFinalize:function(){var U=this._data,T=U.words,F=8*this._nDataBytes,z=8*U.sigBytes;T[z>>>5]|=128<<24-z%32,T[14+(z+64>>>9<<4)]=16711935&(F<<8|F>>>24)|4278255360&(F<<24|F>>>8),U.sigBytes=4*(T.length+1),this._process();for(var b=this._hash,Z=b.words,aA=0;aA<5;aA++){var AA=Z[aA];Z[aA]=16711935&(AA<<8|AA>>>24)|4278255360&(AA<<24|AA>>>8)}return b},clone:function(){var U=a.clone.call(this);return U._hash=this._hash.clone(),U}});function Q(D,U,T){return D^U^T}function p(D,U,T){return D&U|~D&T}function S(D,U,T){return(D|~U)^T}function m(D,U,T){return D&T|U&~T}function d(D,U,T){return D^(U|~T)}function v(D,U){return D<>>32-U}o.RIPEMD160=a._createHelper(w),o.HmacRIPEMD160=a._createHmacHelper(w)}(Math),c.RIPEMD160}(n(757))},9865:function(Y,I,n){"use strict";Y.exports=function(c){return l=(o=(i=c).lib).WordArray,g=[],E=i.algo.SHA1=(h=o.Hasher).extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(C,e){for(var f=this._hash.words,B=f[0],w=f[1],Q=f[2],p=f[3],S=f[4],m=0;m<80;m++){if(m<16)g[m]=0|C[e+m];else{var d=g[m-3]^g[m-8]^g[m-14]^g[m-16];g[m]=d<<1|d>>>31}var v=(B<<5|B>>>27)+S+g[m];v+=m<20?1518500249+(w&Q|~w&p):m<40?1859775393+(w^Q^p):m<60?(w&Q|w&p|Q&p)-1894007588:(w^Q^p)-899497514,S=p,p=Q,Q=w<<30|w>>>2,w=B,B=v}f[0]=f[0]+B|0,f[1]=f[1]+w|0,f[2]=f[2]+Q|0,f[3]=f[3]+p|0,f[4]=f[4]+S|0},_doFinalize:function(){var C=this._data,e=C.words,f=8*this._nDataBytes,B=8*C.sigBytes;return e[B>>>5]|=128<<24-B%32,e[14+(B+64>>>9<<4)]=Math.floor(f/4294967296),e[15+(B+64>>>9<<4)]=f,C.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var C=h.clone.call(this);return C._hash=this._hash.clone(),C}}),i.SHA1=h._createHelper(E),i.HmacSHA1=h._createHmacHelper(E),c.SHA1;var i,o,l,h,g,E}(n(757))},6876:function(Y,I,n){"use strict";Y.exports=function(c){return l=(i=c).lib.WordArray,g=(h=i.algo).SHA224=(a=h.SHA256).extend({_doReset:function(){this._hash=new l.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var u=a._doFinalize.call(this);return u.sigBytes-=4,u}}),i.SHA224=a._createHelper(g),i.HmacSHA224=a._createHmacHelper(g),c.SHA224;var i,l,h,a,g}(n(757),n(8921))},8921:function(Y,I,n){"use strict";n(7042),Y.exports=function(c){return function(i){var o=c,l=o.lib,h=l.WordArray,a=l.Hasher,g=o.algo,E=[],u=[];!function(){function f(p){for(var S=i.sqrt(p),m=2;m<=S;m++)if(!(p%m))return!1;return!0}function B(p){return 4294967296*(p-(0|p))|0}for(var w=2,Q=0;Q<64;)f(w)&&(Q<8&&(E[Q]=B(i.pow(w,.5))),u[Q]=B(i.pow(w,.3333333333333333)),Q++),w++}();var C=[],e=g.SHA256=a.extend({_doReset:function(){this._hash=new h.init(E.slice(0))},_doProcessBlock:function(B,w){for(var Q=this._hash.words,p=Q[0],S=Q[1],m=Q[2],d=Q[3],v=Q[4],D=Q[5],U=Q[6],T=Q[7],F=0;F<64;F++){if(F<16)C[F]=0|B[w+F];else{var z=C[F-15],Z=C[F-2];C[F]=((z<<25|z>>>7)^(z<<14|z>>>18)^z>>>3)+C[F-7]+((Z<<15|Z>>>17)^(Z<<13|Z>>>19)^Z>>>10)+C[F-16]}var lA=p&S^p&m^S&m,gA=T+((v<<26|v>>>6)^(v<<21|v>>>11)^(v<<7|v>>>25))+(v&D^~v&U)+u[F]+C[F];T=U,U=D,D=v,v=d+gA|0,d=m,m=S,S=p,p=gA+(((p<<30|p>>>2)^(p<<19|p>>>13)^(p<<10|p>>>22))+lA)|0}Q[0]=Q[0]+p|0,Q[1]=Q[1]+S|0,Q[2]=Q[2]+m|0,Q[3]=Q[3]+d|0,Q[4]=Q[4]+v|0,Q[5]=Q[5]+D|0,Q[6]=Q[6]+U|0,Q[7]=Q[7]+T|0},_doFinalize:function(){var B=this._data,w=B.words,Q=8*this._nDataBytes,p=8*B.sigBytes;return w[p>>>5]|=128<<24-p%32,w[14+(p+64>>>9<<4)]=i.floor(Q/4294967296),w[15+(p+64>>>9<<4)]=Q,B.sigBytes=4*w.length,this._process(),this._hash},clone:function(){var B=a.clone.call(this);return B._hash=this._hash.clone(),B}});o.SHA256=a._createHelper(e),o.HmacSHA256=a._createHmacHelper(e)}(Math),c.SHA256}(n(757))},8342:function(Y,I,n){"use strict";n(7042),Y.exports=function(c){return function(i){var o=c,l=o.lib,h=l.WordArray,a=l.Hasher,E=o.x64.Word,u=o.algo,C=[],e=[],f=[];!function(){for(var Q=1,p=0,S=0;S<24;S++){C[Q+5*p]=(S+1)*(S+2)/2%64;var d=(2*Q+3*p)%5;Q=p%5,p=d}for(Q=0;Q<5;Q++)for(p=0;p<5;p++)e[Q+5*p]=p+(2*Q+3*p)%5*5;for(var v=1,D=0;D<24;D++){for(var U=0,T=0,F=0;F<7;F++){if(1&v){var z=(1<>>24)|4278255360&(D<<24|D>>>8),(T=m[v]).high^=U=16711935&(U<<8|U>>>24)|4278255360&(U<<24|U>>>8),T.low^=D}for(var F=0;F<24;F++){for(var z=0;z<5;z++){for(var b=0,Z=0,aA=0;aA<5;aA++)b^=(T=m[z+5*aA]).high,Z^=T.low;var AA=B[z];AA.high=b,AA.low=Z}for(z=0;z<5;z++){var lA=B[(z+4)%5],MA=B[(z+1)%5],cA=MA.high,gA=MA.low;for(b=lA.high^(cA<<1|gA>>>31),Z=lA.low^(gA<<1|cA>>>31),aA=0;aA<5;aA++)(T=m[z+5*aA]).high^=b,T.low^=Z}for(var BA=1;BA<25;BA++){var DA=(T=m[BA]).high,FA=T.low,_=C[BA];_<32?(b=DA<<_|FA>>>32-_,Z=FA<<_|DA>>>32-_):(b=FA<<_-32|DA>>>64-_,Z=DA<<_-32|FA>>>64-_);var dA=B[e[BA]];dA.high=b,dA.low=Z}var uA=B[0],CA=m[0];for(uA.high=CA.high,uA.low=CA.low,z=0;z<5;z++)for(aA=0;aA<5;aA++){var SA=B[BA=z+5*aA],bA=B[(z+1)%5+5*aA],XA=B[(z+2)%5+5*aA];(T=m[BA]).high=SA.high^~bA.high&XA.high,T.low=SA.low^~bA.low&XA.low}var T,q=f[F];(T=m[0]).high^=q.high,T.low^=q.low}},_doFinalize:function(){var p=this._data,S=p.words,d=8*p.sigBytes,v=32*this.blockSize;S[d>>>5]|=1<<24-d%32,S[(i.ceil((d+1)/v)*v>>>5)-1]|=128,p.sigBytes=4*S.length,this._process();for(var D=this._state,U=this.cfg.outputLength/8,T=U/8,F=[],z=0;z>>24)|4278255360&(Z<<24|Z>>>8),F.push(aA=16711935&(aA<<8|aA>>>24)|4278255360&(aA<<24|aA>>>8)),F.push(Z)}return new h.init(F,U)},clone:function(){for(var p=a.clone.call(this),S=p._state=this._state.slice(0),m=0;m<25;m++)S[m]=S[m].clone();return p}});o.SHA3=a._createHelper(w),o.HmacSHA3=a._createHmacHelper(w)}(Math),c.SHA3}(n(757),n(2601))},8122:function(Y,I,n){"use strict";Y.exports=function(c){return l=(o=(i=c).x64).Word,h=o.WordArray,E=(a=i.algo).SHA384=(g=a.SHA512).extend({_doReset:function(){this._hash=new h.init([new l.init(3418070365,3238371032),new l.init(1654270250,914150663),new l.init(2438529370,812702999),new l.init(355462360,4144912697),new l.init(1731405415,4290775857),new l.init(2394180231,1750603025),new l.init(3675008525,1694076839),new l.init(1203062813,3204075428)])},_doFinalize:function(){var C=g._doFinalize.call(this);return C.sigBytes-=16,C}}),i.SHA384=g._createHelper(E),i.HmacSHA384=g._createHmacHelper(E),c.SHA384;var i,o,l,h,a,g,E}(n(757),n(2601),n(7991))},7991:function(Y,I,n){"use strict";var i;i=function(c){return function(){var i=c,l=i.lib.Hasher,h=i.x64,a=h.Word,g=h.WordArray,E=i.algo;function u(){return a.create.apply(a,arguments)}var C=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],e=[];!function(){for(var B=0;B<80;B++)e[B]=u()}();var f=E.SHA512=l.extend({_doReset:function(){this._hash=new g.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(w,Q){for(var p=this._hash.words,S=p[0],m=p[1],d=p[2],v=p[3],D=p[4],U=p[5],T=p[6],F=p[7],z=S.high,b=S.low,Z=m.high,aA=m.low,AA=d.high,lA=d.low,MA=v.high,cA=v.low,gA=D.high,BA=D.low,DA=U.high,FA=U.low,_=T.high,dA=T.low,uA=F.high,CA=F.low,SA=z,bA=b,XA=Z,q=aA,O=AA,$=lA,W=MA,hA=cA,mA=gA,nA=BA,EA=DA,GA=FA,et=_,ot=dA,TA=uA,it=CA,mt=0;mt<80;mt++){var It,ft,JA=e[mt];if(mt<16)ft=JA.high=0|w[Q+2*mt],It=JA.low=0|w[Q+2*mt+1];else{var WA=e[mt-15],rt=WA.high,yA=WA.low,ht=(yA>>>1|rt<<31)^(yA>>>8|rt<<24)^(yA>>>7|rt<<25),OA=e[mt-2],Yt=OA.high,H=OA.low,R=(H>>>19|Yt<<13)^(H<<3|Yt>>>29)^(H>>>6|Yt<<26),QA=e[mt-7],rA=e[mt-16],Ft=rA.low;JA.high=ft=(ft=(ft=((rt>>>1|yA<<31)^(rt>>>8|yA<<24)^rt>>>7)+QA.high+((It=ht+QA.low)>>>0>>0?1:0))+((Yt>>>19|H<<13)^(Yt<<3|H>>>29)^Yt>>>6)+((It+=R)>>>0>>0?1:0))+rA.high+((It+=Ft)>>>0>>0?1:0),JA.low=It}var re,j=mA&EA^~mA&et,kA=nA&GA^~nA&ot,At=SA&XA^SA&O^XA&O,st=(bA>>>28|SA<<4)^(bA<<30|SA>>>2)^(bA<<25|SA>>>7),Rt=C[mt],Le=Rt.low,Ae=TA+((mA>>>14|nA<<18)^(mA>>>18|nA<<14)^(mA<<23|nA>>>9))+((re=it+((nA>>>14|mA<<18)^(nA>>>18|mA<<14)^(nA<<23|mA>>>9)))>>>0>>0?1:0),ye=st+(bA&q^bA&$^q&$);TA=et,it=ot,et=EA,ot=GA,EA=mA,GA=nA,mA=W+(Ae=(Ae=(Ae=Ae+j+((re+=kA)>>>0>>0?1:0))+Rt.high+((re+=Le)>>>0>>0?1:0))+ft+((re+=It)>>>0>>0?1:0))+((nA=hA+re|0)>>>0>>0?1:0)|0,W=O,hA=$,O=XA,$=q,XA=SA,q=bA,SA=Ae+(((SA>>>28|bA<<4)^(SA<<30|bA>>>2)^(SA<<25|bA>>>7))+At+(ye>>>0>>0?1:0))+((bA=re+ye|0)>>>0>>0?1:0)|0}b=S.low=b+bA,S.high=z+SA+(b>>>0>>0?1:0),aA=m.low=aA+q,m.high=Z+XA+(aA>>>0>>0?1:0),lA=d.low=lA+$,d.high=AA+O+(lA>>>0<$>>>0?1:0),cA=v.low=cA+hA,v.high=MA+W+(cA>>>0>>0?1:0),BA=D.low=BA+nA,D.high=gA+mA+(BA>>>0>>0?1:0),FA=U.low=FA+GA,U.high=DA+EA+(FA>>>0>>0?1:0),dA=T.low=dA+ot,T.high=_+et+(dA>>>0>>0?1:0),CA=F.low=CA+it,F.high=uA+TA+(CA>>>0>>0?1:0)},_doFinalize:function(){var w=this._data,Q=w.words,p=8*this._nDataBytes,S=8*w.sigBytes;return Q[S>>>5]|=128<<24-S%32,Q[30+(S+128>>>10<<5)]=Math.floor(p/4294967296),Q[31+(S+128>>>10<<5)]=p,w.sigBytes=4*Q.length,this._process(),this._hash.toX32()},clone:function(){var w=l.clone.call(this);return w._hash=this._hash.clone(),w},blockSize:32});i.SHA512=l._createHelper(f),i.HmacSHA512=l._createHmacHelper(f)}(),c.SHA512},Y.exports=i(n(757),n(2601))},8437:function(Y,I,n){"use strict";n(7042),Y.exports=function(c){return function(){var i=c,o=i.lib,l=o.WordArray,h=o.BlockCipher,a=i.algo,g=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],E=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],C=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],e=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=a.DES=h.extend({_doReset:function(){for(var m=this._key.words,d=[],v=0;v<56;v++){var D=g[v]-1;d[v]=m[D>>>5]>>>31-D%32&1}for(var U=this._subKeys=[],T=0;T<16;T++){var F=U[T]=[],z=u[T];for(v=0;v<24;v++)F[v/6|0]|=d[(E[v]-1+z)%28]<<31-v%6,F[4+(v/6|0)]|=d[28+(E[v+24]-1+z)%28]<<31-v%6;for(F[0]=F[0]<<1|F[0]>>>31,v=1;v<7;v++)F[v]=F[v]>>>4*(v-1)+3;F[7]=F[7]<<5|F[7]>>>27}var b=this._invSubKeys=[];for(v=0;v<16;v++)b[v]=U[15-v]},encryptBlock:function(S,m){this._doCryptBlock(S,m,this._subKeys)},decryptBlock:function(S,m){this._doCryptBlock(S,m,this._invSubKeys)},_doCryptBlock:function(S,m,d){this._lBlock=S[m],this._rBlock=S[m+1],B.call(this,4,252645135),B.call(this,16,65535),w.call(this,2,858993459),w.call(this,8,16711935),B.call(this,1,1431655765);for(var v=0;v<16;v++){for(var D=d[v],U=this._lBlock,T=this._rBlock,F=0,z=0;z<8;z++)F|=C[z][((T^D[z])&e[z])>>>0];this._lBlock=T,this._rBlock=U^F}var b=this._lBlock;this._lBlock=this._rBlock,this._rBlock=b,B.call(this,1,1431655765),w.call(this,8,16711935),w.call(this,2,858993459),B.call(this,16,65535),B.call(this,4,252645135),S[m]=this._lBlock,S[m+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function B(p,S){var m=(this._lBlock>>>p^this._rBlock)&S;this._rBlock^=m,this._lBlock^=m<>>p^this._lBlock)&S;this._lBlock^=m,this._rBlock^=m<192.");var d=m.slice(0,2),v=m.length<4?m.slice(0,2):m.slice(2,4),D=m.length<6?m.slice(0,2):m.slice(4,6);this._des1=f.createEncryptor(l.create(d)),this._des2=f.createEncryptor(l.create(v)),this._des3=f.createEncryptor(l.create(D))},encryptBlock:function(S,m){this._des1.encryptBlock(S,m),this._des2.decryptBlock(S,m),this._des3.encryptBlock(S,m)},decryptBlock:function(S,m){this._des3.decryptBlock(S,m),this._des2.encryptBlock(S,m),this._des1.decryptBlock(S,m)},keySize:6,ivSize:2,blockSize:2});i.TripleDES=h._createHelper(Q)}(),c.TripleDES}(n(757),n(7508),n(3440),n(3839),n(1582))},2601:function(Y,I,n){"use strict";n(7042),Y.exports=function(c){return h=(l=c.lib).Base,a=l.WordArray,(g=c.x64={}).Word=h.extend({init:function(e,f){this.high=e,this.low=f}}),g.WordArray=h.extend({init:function(e,f){e=this.words=e||[],this.sigBytes=null!=f?f:8*e.length},toX32:function(){for(var e=this.words,f=e.length,B=[],w=0;w=g.length?{done:!0}:{done:!1,value:g[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(g,E){(null==E||E>g.length)&&(E=g.length);for(var u=0,C=new Array(E);u=Q)){D.next=13;break}return D.next=13,[Q,p,f.tags[S]];case 13:w=f.stateTable[1][d],Q=null;case 15:0!==w&&null==Q&&(Q=m),f.accepting[w]&&(p=m),0===w&&(w=1);case 18:m++,D.next=5;break;case 21:if(!(null!=Q&&null!=p&&p>=Q)){D.next=24;break}return D.next=24,[Q,p,f.tags[w]];case 24:case"end":return D.stop()}},B)}),e},E.apply=function(C,e){for(var B,f=c(this.match(C));!(B=f()).done;)for(var d,w=B.value,Q=w[0],p=w[1],m=c(w[2]);!(d=m()).done;){var v=d.value;"function"==typeof e[v]&&e[v](Q,p,C.slice(Q,p+1))}},g}()},8478:function(Y,I,n){"use strict";var c=n(8823).Buffer;n(7042),n(6699);var i=n(3857),o=n(2635);Y.exports=function(){function l(a){var g;for(this.data=a,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.text={};;){var E=this.readUInt32(),u="";for(g=0;g<4;g++)u+=String.fromCharCode(this.data[this.pos++]);switch(u){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"PLTE":this.palette=this.read(E);break;case"IDAT":for(g=0;g0)for(g=0;gthis.data.length)throw new Error("Incomplete or corrupt PNG file")}}l.decode=function(g,E){return i.readFile(g,function(u,C){return new l(C).decode(function(f){return E(f)})})},l.load=function(g){return new l(i.readFileSync(g))};var h=l.prototype;return h.read=function(g){for(var E=new Array(g),u=0;u=2147483648)throw new RangeError('The value "'+g+'" is invalid for option "size"');var C=o(g);return E&&0!==E.length?"string"==typeof u?C.fill(E,u):C.fill(E):C.fill(0),C}),!l.kStringMaxLength)try{l.kStringMaxLength=c.binding("buffer").kStringMaxLength}catch(g){}l.constants||(l.constants={MAX_LENGTH:l.kMaxLength},l.kStringMaxLength&&(l.constants.MAX_STRING_LENGTH=l.kStringMaxLength)),Y.exports=l},3361:function(Y,I,n){"use strict";function c(B,w){var Q=Object.keys(B);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(B);w&&(p=p.filter(function(S){return Object.getOwnPropertyDescriptor(B,S).enumerable})),Q.push.apply(Q,p)}return Q}function o(B,w,Q){return w in B?Object.defineProperty(B,w,{value:Q,enumerable:!0,configurable:!0,writable:!0}):B[w]=Q,B}function h(B,w){for(var Q=0;Q0?this.tail.next=p:this.head=p,this.tail=p,++this.length}},{key:"unshift",value:function(Q){var p={data:Q,next:this.head};0===this.length&&(this.tail=p),this.head=p,++this.length}},{key:"shift",value:function(){if(0!==this.length){var Q=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,Q}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Q){if(0===this.length)return"";for(var p=this.head,S=""+p.data;p=p.next;)S+=Q+p.data;return S}},{key:"concat",value:function(Q){if(0===this.length)return E.alloc(0);for(var p=E.allocUnsafe(Q>>>0),S=this.head,m=0;S;)f(S.data,p,m),m+=S.data.length,S=S.next;return p}},{key:"consume",value:function(Q,p){var S;return Qd.length?d.length:Q;if(m+=v===d.length?d:d.slice(0,Q),0==(Q-=v)){v===d.length?(++S,this.head=p.next?p.next:this.tail=null):(this.head=p,p.data=d.slice(v));break}++S}return this.length-=S,m}},{key:"_getBuffer",value:function(Q){var p=E.allocUnsafe(Q),S=this.head,m=1;for(S.data.copy(p),Q-=S.data.length;S=S.next;){var d=S.data,v=Q>d.length?d.length:Q;if(d.copy(p,p.length-Q,0,v),0==(Q-=v)){v===d.length?(++m,this.head=S.next?S.next:this.tail=null):(this.head=S,S.data=d.slice(v));break}++m}return this.length-=m,p}},{key:e,value:function(Q,p){return C(this,function i(B){for(var w=1;wIA.length)&&(J=IA.length);for(var N=0,X=new Array(J);N=IA.length?{done:!0}:{done:!1,value:IA[X++]}},e:function(ut){throw ut},f:K}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var _A,fA=!0,pA=!1;return{s:function(){N=IA[Symbol.iterator]()},n:function(){var ut=N.next();return fA=ut.done,ut},e:function(ut){pA=!0,_A=ut},f:function(){try{!fA&&null!=N.return&&N.return()}finally{if(pA)throw _A}}}}var FA=function(){function IA(){f(this,IA)}return w(IA,[{key:"toString",value:function(){throw new Error("Must be implemented by subclasses")}}]),IA}(),_=function(){function IA(){var J=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f(this,IA),this._items={},this.limits="boolean"!=typeof J.limits||J.limits}return w(IA,[{key:"add",value:function(N,X){return this._items[N]=X}},{key:"get",value:function(N){return this._items[N]}},{key:"toString",value:function(){var N=this,X=Object.keys(this._items).sort(function(Qt,vt){return N._compareKeys(Qt,vt)}),K=["<<"];if(this.limits&&X.length>1){var pA=X[X.length-1];K.push(" /Limits ".concat(bA.convert([this._dataForKey(X[0]),this._dataForKey(pA)])))}K.push(" /".concat(this._keysName()," ["));var nt,_A=DA(X);try{for(_A.s();!(nt=_A.n()).done;){var ut=nt.value;K.push(" ".concat(bA.convert(this._dataForKey(ut))," ").concat(bA.convert(this._items[ut])))}}catch(Qt){_A.e(Qt)}finally{_A.f()}return K.push("]"),K.push(">>"),K.join("\n")}},{key:"_compareKeys",value:function(){throw new Error("Must be implemented by subclasses")}},{key:"_keysName",value:function(){throw new Error("Must be implemented by subclasses")}},{key:"_dataForKey",value:function(){throw new Error("Must be implemented by subclasses")}}]),IA}(),dA=function(J,N){return(Array(N+1).join("0")+J).slice(-N)},uA=/[\n\r\t\b\f()\\]/g,CA={"\n":"\\n","\r":"\\r","\t":"\\t","\b":"\\b","\f":"\\f","\\":"\\\\","(":"\\(",")":"\\)"},SA=function(J){var N=J.length;if(1&N)throw new Error("Buffer length must be even");for(var X=0,K=N-1;X1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof N)return"/".concat(N);if(N instanceof String){for(var K=N,fA=!1,pA=0,_A=K.length;pA<_A;pA++)if(K.charCodeAt(pA)>127){fA=!0;break}var nt;return nt=fA?SA(i.from("\ufeff".concat(K),"utf16le")):i.from(K.valueOf(),"ascii"),K=(K=X?X(nt).toString("binary"):nt.toString("binary")).replace(uA,function(Ot){return CA[Ot]}),"(".concat(K,")")}if(i.isBuffer(N))return"<".concat(N.toString("hex"),">");if(N instanceof FA||N instanceof _)return N.toString();if(N instanceof Date){var ut="D:".concat(dA(N.getUTCFullYear(),4))+dA(N.getUTCMonth()+1,2)+dA(N.getUTCDate(),2)+dA(N.getUTCHours(),2)+dA(N.getUTCMinutes(),2)+dA(N.getUTCSeconds(),2)+"Z";return X&&(ut=(ut=X(i.from(ut,"ascii")).toString("binary")).replace(uA,function(Ot){return CA[Ot]})),"(".concat(ut,")")}if(Array.isArray(N)){var Qt=N.map(function(Ot){return IA.convert(Ot,X)}).join(" ");return"[".concat(Qt,"]")}if("[object Object]"==={}.toString.call(N)){var vt=["<<"];for(var xt in N){var Tt=N[xt];vt.push("/".concat(xt," ").concat(IA.convert(Tt,X)))}return vt.push(">>"),vt.join("\n")}return"number"==typeof N?IA.number(N):"".concat(N)}},{key:"number",value:function(N){if(N>-1e21&&N<1e21)return Math.round(1e6*N)/1e6;throw new Error("unsupported number: ".concat(N))}}]),IA}(),XA=function(IA){m(N,IA);var J=F(N);function N(X,K){var fA,pA=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f(this,N),(fA=J.call(this)).document=X,fA.id=K,fA.data=pA,fA.gen=0,fA.compress=fA.document.compress&&!fA.data.Filter,fA.uncompressedLength=0,fA.buffer=[],fA}return w(N,[{key:"write",value:function(K){if(i.isBuffer(K)||(K=i.from(K+"\n","binary")),this.uncompressedLength+=K.length,null==this.data.Length&&(this.data.Length=0),this.buffer.push(K),this.data.Length+=K.length,this.compress)return this.data.Filter="FlateDecode"}},{key:"end",value:function(K){return K&&this.write(K),this.finalize()}},{key:"finalize",value:function(){this.offset=this.document._offset;var K=this.document._security?this.document._security.getEncryptFn(this.id,this.gen):null;this.buffer.length&&(this.buffer=i.concat(this.buffer),this.compress&&(this.buffer=l.default.deflateSync(this.buffer)),K&&(this.buffer=K(this.buffer)),this.data.Length=this.buffer.length),this.document._write("".concat(this.id," ").concat(this.gen," obj")),this.document._write(bA.convert(this.data,K)),this.buffer.length&&(this.document._write("stream"),this.document._write(this.buffer),this.buffer=[],this.document._write("\nendstream")),this.document._write("endobj"),this.document._refEnd(this)}},{key:"toString",value:function(){return"".concat(this.id," ").concat(this.gen," R")}}]),N}(FA),q={top:72,left:72,bottom:72,right:72},O={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]},$=function(){function IA(J){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(this,IA),this.document=J,this.size=N.size||"letter",this.layout=N.layout||"portrait",this.margins="number"==typeof N.margin?{top:N.margin,left:N.margin,bottom:N.margin,right:N.margin}:N.margins||q;var X=Array.isArray(this.size)?this.size:O[this.size.toUpperCase()];this.width=X["portrait"===this.layout?0:1],this.height=X["portrait"===this.layout?1:0],this.content=this.document.ref(),this.resources=this.document.ref({ProcSet:["PDF","Text","ImageB","ImageC","ImageI"]}),this.dictionary=this.document.ref({Type:"Page",Parent:this.document._root.data.Pages,MediaBox:[0,0,this.width,this.height],Contents:this.content,Resources:this.resources}),this.markings=[]}return w(IA,[{key:"maxY",value:function(){return this.height-this.margins.bottom}},{key:"write",value:function(N){return this.content.write(N)}},{key:"end",value:function(){return this.dictionary.end(),this.resources.end(),this.content.end()}},{key:"fonts",get:function(){var N=this.resources.data;return null!=N.Font?N.Font:N.Font={}}},{key:"xobjects",get:function(){var N=this.resources.data;return null!=N.XObject?N.XObject:N.XObject={}}},{key:"ext_gstates",get:function(){var N=this.resources.data;return null!=N.ExtGState?N.ExtGState:N.ExtGState={}}},{key:"patterns",get:function(){var N=this.resources.data;return null!=N.Pattern?N.Pattern:N.Pattern={}}},{key:"colorSpaces",get:function(){var N=this.resources.data;return N.ColorSpace||(N.ColorSpace={})}},{key:"annotations",get:function(){var N=this.dictionary.data;return null!=N.Annots?N.Annots:N.Annots=[]}},{key:"structParentTreeKey",get:function(){var N=this.dictionary.data;return null!=N.StructParents?N.StructParents:N.StructParents=this.document.createStructParentTreeNextKey()}}]),IA}(),W=function(IA){m(N,IA);var J=F(N);function N(){return f(this,N),J.apply(this,arguments)}return w(N,[{key:"_compareKeys",value:function(K,fA){return K.localeCompare(fA)}},{key:"_keysName",value:function(){return"Names"}},{key:"_dataForKey",value:function(K){return new String(K)}}]),N}(_);function hA(IA,J){if(IA=J[fA]&&IA<=J[fA+1])return!0;IA>J[fA+1]?N=K+1:X=K-1}return!1}var mA=[545,545,564,591,686,687,751,767,848,863,880,883,886,889,891,893,895,899,907,907,909,909,930,930,975,975,1015,1023,1159,1159,1231,1231,1270,1271,1274,1279,1296,1328,1367,1368,1376,1376,1416,1416,1419,1424,1442,1442,1466,1466,1477,1487,1515,1519,1525,1547,1549,1562,1564,1566,1568,1568,1595,1599,1622,1631,1774,1775,1791,1791,1806,1806,1837,1839,1867,1919,1970,2304,2308,2308,2362,2363,2382,2383,2389,2391,2417,2432,2436,2436,2445,2446,2449,2450,2473,2473,2481,2481,2483,2485,2490,2491,2493,2493,2501,2502,2505,2506,2510,2518,2520,2523,2526,2526,2532,2533,2555,2561,2563,2564,2571,2574,2577,2578,2601,2601,2609,2609,2612,2612,2615,2615,2618,2619,2621,2621,2627,2630,2633,2634,2638,2648,2653,2653,2655,2661,2677,2688,2692,2692,2700,2700,2702,2702,2706,2706,2729,2729,2737,2737,2740,2740,2746,2747,2758,2758,2762,2762,2766,2767,2769,2783,2785,2789,2800,2816,2820,2820,2829,2830,2833,2834,2857,2857,2865,2865,2868,2869,2874,2875,2884,2886,2889,2890,2894,2901,2904,2907,2910,2910,2914,2917,2929,2945,2948,2948,2955,2957,2961,2961,2966,2968,2971,2971,2973,2973,2976,2978,2981,2983,2987,2989,2998,2998,3002,3005,3011,3013,3017,3017,3022,3030,3032,3046,3059,3072,3076,3076,3085,3085,3089,3089,3113,3113,3124,3124,3130,3133,3141,3141,3145,3145,3150,3156,3159,3167,3170,3173,3184,3201,3204,3204,3213,3213,3217,3217,3241,3241,3252,3252,3258,3261,3269,3269,3273,3273,3278,3284,3287,3293,3295,3295,3298,3301,3312,3329,3332,3332,3341,3341,3345,3345,3369,3369,3386,3389,3396,3397,3401,3401,3406,3414,3416,3423,3426,3429,3440,3457,3460,3460,3479,3481,3506,3506,3516,3516,3518,3519,3527,3529,3531,3534,3541,3541,3543,3543,3552,3569,3573,3584,3643,3646,3676,3712,3715,3715,3717,3718,3721,3721,3723,3724,3726,3731,3736,3736,3744,3744,3748,3748,3750,3750,3752,3753,3756,3756,3770,3770,3774,3775,3781,3781,3783,3783,3790,3791,3802,3803,3806,3839,3912,3912,3947,3952,3980,3983,3992,3992,4029,4029,4045,4046,4048,4095,4130,4130,4136,4136,4139,4139,4147,4149,4154,4159,4186,4255,4294,4303,4345,4346,4348,4351,4442,4446,4515,4519,4602,4607,4615,4615,4679,4679,4681,4681,4686,4687,4695,4695,4697,4697,4702,4703,4743,4743,4745,4745,4750,4751,4783,4783,4785,4785,4790,4791,4799,4799,4801,4801,4806,4807,4815,4815,4823,4823,4847,4847,4879,4879,4881,4881,4886,4887,4895,4895,4935,4935,4955,4960,4989,5023,5109,5120,5751,5759,5789,5791,5873,5887,5901,5901,5909,5919,5943,5951,5972,5983,5997,5997,6001,6001,6004,6015,6109,6111,6122,6143,6159,6159,6170,6175,6264,6271,6314,7679,7836,7839,7930,7935,7958,7959,7966,7967,8006,8007,8014,8015,8024,8024,8026,8026,8028,8028,8030,8030,8062,8063,8117,8117,8133,8133,8148,8149,8156,8156,8176,8177,8181,8181,8191,8191,8275,8278,8280,8286,8292,8297,8306,8307,8335,8351,8370,8399,8427,8447,8507,8508,8524,8530,8580,8591,9167,9215,9255,9279,9291,9311,9471,9471,9748,9749,9752,9752,9854,9855,9866,9984,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10079,10080,10133,10135,10160,10160,10175,10191,10220,10223,11008,11903,11930,11930,12020,12031,12246,12271,12284,12287,12352,12352,12439,12440,12544,12548,12589,12592,12687,12687,12728,12783,12829,12831,12868,12880,12924,12926,13004,13007,13055,13055,13175,13178,13278,13279,13311,13311,19894,19967,40870,40959,42125,42127,42183,44031,55204,55295,64046,64047,64107,64255,64263,64274,64280,64284,64311,64311,64317,64317,64319,64319,64322,64322,64325,64325,64434,64466,64832,64847,64912,64913,64968,64975,65021,65023,65040,65055,65060,65071,65095,65096,65107,65107,65127,65127,65132,65135,65141,65141,65277,65278,65280,65280,65471,65473,65480,65481,65488,65489,65496,65497,65501,65503,65511,65511,65519,65528,65536,66303,66335,66335,66340,66351,66379,66559,66598,66599,66638,118783,119030,119039,119079,119081,119262,119807,119893,119893,119965,119965,119968,119969,119971,119972,119975,119976,119981,119981,119994,119994,119996,119996,120001,120001,120004,120004,120070,120070,120075,120076,120085,120085,120093,120093,120122,120122,120127,120127,120133,120133,120135,120137,120145,120145,120484,120487,120778,120781,120832,131069,173783,194559,195102,196605,196608,262141,262144,327677,327680,393213,393216,458749,458752,524285,524288,589821,589824,655357,655360,720893,720896,786429,786432,851965,851968,917501,917504,917504,917506,917535,917632,983037],nA=function(J){return hA(J,mA)},EA=[173,173,847,847,6150,6150,6155,6155,6156,6156,6157,6157,8203,8203,8204,8204,8205,8205,8288,8288,65024,65024,65025,65025,65026,65026,65027,65027,65028,65028,65029,65029,65030,65030,65031,65031,65032,65032,65033,65033,65034,65034,65035,65035,65036,65036,65037,65037,65038,65038,65039,65039,65279,65279],et=[160,160,5760,5760,8192,8192,8193,8193,8194,8194,8195,8195,8196,8196,8197,8197,8198,8198,8199,8199,8200,8200,8201,8201,8202,8202,8203,8203,8239,8239,8287,8287,12288,12288],TA=[128,159,1757,1757,1807,1807,6158,6158,8204,8204,8205,8205,8232,8232,8233,8233,8288,8288,8289,8289,8290,8290,8291,8291,8298,8303,65279,65279,65529,65532,119155,119162],it=[64976,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1114110,1114111],mt=[0,31,127,127,832,832,833,833,8206,8206,8207,8207,8234,8234,8235,8235,8236,8236,8237,8237,8238,8238,8298,8298,8299,8299,8300,8300,8301,8301,8302,8302,8303,8303,12272,12283,55296,57343,57344,63743,65529,65529,65530,65530,65531,65531,65532,65532,65533,65533,917505,917505,917536,917631,983040,1048573,1048576,1114109],It=function(J){return hA(J,et)||hA(J,mt)||hA(J,TA)||hA(J,it)},ft=[1470,1470,1472,1472,1475,1475,1488,1514,1520,1524,1563,1563,1567,1567,1569,1594,1600,1610,1645,1647,1649,1749,1757,1757,1765,1766,1786,1790,1792,1805,1808,1808,1810,1836,1920,1957,1969,1969,8207,8207,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65020,65136,65140,65142,65276],JA=function(J){return hA(J,ft)},WA=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,544,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,1013,1024,1154,1162,1230,1232,1269,1272,1273,1280,1295,1329,1366,1369,1375,1377,1415,1417,1417,2307,2307,2309,2361,2365,2368,2377,2380,2384,2384,2392,2401,2404,2416,2434,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2494,2496,2503,2504,2507,2508,2519,2519,2524,2525,2527,2529,2534,2545,2548,2554,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2622,2624,2649,2652,2654,2654,2662,2671,2674,2676,2691,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2752,2761,2761,2763,2764,2768,2768,2784,2784,2790,2799,2818,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2878,2880,2880,2887,2888,2891,2892,2903,2903,2908,2909,2911,2913,2918,2928,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3007,3009,3010,3014,3016,3018,3020,3031,3031,3047,3058,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3137,3140,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3262,3264,3268,3271,3272,3274,3275,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3392,3398,3400,3402,3404,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3535,3537,3544,3551,3570,3572,3585,3632,3634,3635,3648,3654,3663,3675,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3792,3801,3804,3805,3840,3863,3866,3892,3894,3894,3896,3896,3902,3911,3913,3946,3967,3967,3973,3973,3976,3979,4030,4037,4039,4044,4047,4047,4096,4129,4131,4135,4137,4138,4140,4140,4145,4145,4152,4152,4160,4183,4256,4293,4304,4344,4347,4347,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4961,4988,5024,5108,5121,5750,5761,5786,5792,5872,5888,5900,5902,5905,5920,5937,5941,5942,5952,5969,5984,5996,5998,6e3,6016,6070,6078,6085,6087,6088,6100,6106,6108,6108,6112,6121,6160,6169,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8206,8206,8305,8305,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8509,8511,8517,8521,8544,8579,9014,9082,9109,9109,9372,9449,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12588,12593,12686,12688,12727,12784,12828,12832,12867,12896,12923,12927,12976,12992,13003,13008,13054,13056,13174,13179,13277,13280,13310,13312,19893,19968,40869,40960,42124,44032,55203,55296,64045,64048,64106,64256,64262,64275,64279,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,66304,66334,66336,66339,66352,66378,66560,66597,66600,66637,118784,119029,119040,119078,119082,119142,119146,119154,119171,119172,119180,119209,119214,119261,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,12e4,120002,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120483,120488,120777,131072,173782,194560,195101,983040,1048573,1048576,1114109],rt=function(J){return hA(J,WA)},yA=function(J){return hA(J,et)},Mt=function(J){return hA(J,EA)},ht=function(J){return J.codePointAt(0)},OA=function(J){return J[0]},Yt=function(J){return J[J.length-1]};function H(IA){for(var J=[],N=IA.length,X=0;X=55296&&K<=56319&&N>X+1){var fA=IA.charCodeAt(X+1);if(fA>=56320&&fA<=57343){J.push(1024*(K-55296)+fA-56320+65536),X+=1;continue}}J.push(K)}return J}function k(IA){var J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof IA)throw new TypeError("Expected string.");if(0===IA.length)return"";var N=H(IA).map(function(vt){return yA(vt)?32:vt}).filter(function(vt){return!Mt(vt)}),X=String.fromCodePoint.apply(null,N).normalize("NFKC"),K=H(X);if(K.some(It))throw new Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3");if(!0!==J.allowUnassigned&&K.some(nA))throw new Error("Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5");var _A=K.some(JA),nt=K.some(rt);if(_A&&nt)throw new Error("String must not contain RandALCat and LCat at the same time, see https://tools.ietf.org/html/rfc3454#section-6");var ut=JA(ht(OA(X))),Qt=JA(ht(Yt(X)));if(_A&&(!ut||!Qt))throw new Error("Bidirectional RandALCat character must be the first and the last character of the string, see https://tools.ietf.org/html/rfc3454#section-6");return X}var R=function(){function IA(J){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(f(this,IA),!N.ownerPassword&&!N.userPassword)throw new Error("None of owner password and user password is defined.");this.document=J,this._setupEncryption(N)}return w(IA,null,[{key:"generateFileID",value:function(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},X="".concat(N.CreationDate.getTime(),"\n");for(var K in N)!N.hasOwnProperty(K)||(X+="".concat(K,": ").concat(N[K].valueOf(),"\n"));return Vt(h.default.MD5(X))}},{key:"generateRandomWordArray",value:function(N){return h.default.lib.WordArray.random(N)}},{key:"create",value:function(N){var X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return X.ownerPassword||X.userPassword?new IA(N,X):null}}]),w(IA,[{key:"_setupEncryption",value:function(N){switch(N.pdfVersion){case"1.4":case"1.5":this.version=2;break;case"1.6":case"1.7":this.version=4;break;case"1.7ext3":this.version=5;break;default:this.version=1}var X={Filter:"Standard"};switch(this.version){case 1:case 2:case 4:this._setupEncryptionV1V2V4(this.version,X,N);break;case 5:this._setupEncryptionV5(X,N)}this.dictionary=this.document.ref(X)}},{key:"_setupEncryptionV1V2V4",value:function(N,X,K){var fA,pA;switch(N){case 1:fA=2,this.keyBits=40,pA=function QA(){var IA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},J=-64;return IA.printing&&(J|=4),IA.modifying&&(J|=8),IA.copying&&(J|=16),IA.annotating&&(J|=32),J}(K.permissions);break;case 2:fA=3,this.keyBits=128,pA=wA(K.permissions);break;case 4:fA=4,this.keyBits=128,pA=wA(K.permissions)}var Qt,_A=Lt(K.userPassword),nt=K.ownerPassword?Lt(K.ownerPassword):_A,ut=function ct(IA,J,N,X){for(var K=X,fA=IA>=3?51:1,pA=0;pA=3?20:1;for(var ut=0;ut=3?51:1,nt=0;nt<_A;nt++)(pA=h.default.MD5(pA)).sigBytes=J/8;return pA}(fA,this.keyBits,this.document._id,_A,ut,pA),Qt=2===fA?function RA(IA){return h.default.RC4.encrypt(Lt(),IA).ciphertext}(this.encryptionKey):function rA(IA,J){for(var N=J.clone(),X=h.default.MD5(Lt().concat(h.default.lib.WordArray.create(IA))),K=0;K<20;K++){for(var fA=Math.ceil(N.sigBytes/4),pA=0;pA=2&&(X.Length=this.keyBits),4===N&&(X.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV2",Length:this.keyBits/8}},X.StmF="StdCF",X.StrF="StdCF"),X.R=fA,X.O=Vt(ut),X.U=Vt(Qt),X.P=pA}},{key:"_setupEncryptionV5",value:function(N,X){this.keyBits=256;var K=wA(X.permissions),fA=Dt(X.userPassword),pA=X.ownerPassword?Dt(X.ownerPassword):fA;this.encryptionKey=function KA(IA){return IA(32)}(IA.generateRandomWordArray);var _A=function j(IA,J){var N=J(8),X=J(8);return h.default.SHA256(IA.clone().concat(N)).concat(N).concat(X)}(fA,IA.generateRandomWordArray),ut=function kA(IA,J,N){var X=h.default.SHA256(IA.clone().concat(J)),K={mode:h.default.mode.CBC,padding:h.default.pad.NoPadding,iv:h.default.lib.WordArray.create(null,16)};return h.default.AES.encrypt(N,X,K).ciphertext}(fA,h.default.lib.WordArray.create(_A.words.slice(10,12),8),this.encryptionKey),Qt=function At(IA,J,N){var X=N(8),K=N(8);return h.default.SHA256(IA.clone().concat(X).concat(J)).concat(X).concat(K)}(pA,_A,IA.generateRandomWordArray),xt=function xA(IA,J,N,X){var K=h.default.SHA256(IA.clone().concat(J).concat(N)),fA={mode:h.default.mode.CBC,padding:h.default.pad.NoPadding,iv:h.default.lib.WordArray.create(null,16)};return h.default.AES.encrypt(X,K,fA).ciphertext}(pA,h.default.lib.WordArray.create(Qt.words.slice(10,12),8),_A,this.encryptionKey),Tt=function st(IA,J,N){var X=h.default.lib.WordArray.create([Rt(IA),4294967295,1415668834],12).concat(N(4));return h.default.AES.encrypt(X,J,{mode:h.default.mode.ECB,padding:h.default.pad.NoPadding}).ciphertext}(K,this.encryptionKey,IA.generateRandomWordArray);N.V=5,N.Length=this.keyBits,N.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV3",Length:this.keyBits/8}},N.StmF="StdCF",N.StrF="StdCF",N.R=5,N.O=Vt(Qt),N.OE=Vt(xt),N.U=Vt(_A),N.UE=Vt(ut),N.P=K,N.Perms=Vt(Tt)}},{key:"getEncryptFn",value:function(N,X){var K,pA;if(this.version<5&&(K=this.encryptionKey.clone().concat(h.default.lib.WordArray.create([(255&N)<<24|(65280&N)<<8|N>>8&65280|255&X,(65280&X)<<16],5))),1===this.version||2===this.version){var fA=h.default.MD5(K);return fA.sigBytes=Math.min(16,this.keyBits/8+5),function(ut){return Vt(h.default.RC4.encrypt(h.default.lib.WordArray.create(ut),fA).ciphertext)}}pA=4===this.version?h.default.MD5(K.concat(h.default.lib.WordArray.create([1933667412],4))):this.encryptionKey;var _A=IA.generateRandomWordArray(16),nt={mode:h.default.mode.CBC,padding:h.default.pad.Pkcs7,iv:_A};return function(ut){return Vt(_A.clone().concat(h.default.AES.encrypt(h.default.lib.WordArray.create(ut),pA,nt).ciphertext))}}},{key:"end",value:function(){this.dictionary.end()}}]),IA}();function wA(){var IA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},J=-3904;return"lowResolution"===IA.printing&&(J|=4),"highResolution"===IA.printing&&(J|=2052),IA.modifying&&(J|=8),IA.copying&&(J|=16),IA.annotating&&(J|=32),IA.fillingForms&&(J|=256),IA.contentAccessibility&&(J|=512),IA.documentAssembly&&(J|=1024),J}function Lt(){for(var IA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",J=i.alloc(32),N=IA.length,X=0;X255)throw new Error("Password contains one or more invalid characters.");J[X]=K,X++}for(;X<32;)J[X]=Le[X-N],X++;return h.default.lib.WordArray.create(J)}function Dt(){var IA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";IA=unescape(encodeURIComponent(k(IA)));for(var J=Math.min(127,IA.length),N=i.alloc(J),X=0;X>8&65280|IA>>24&255}function Vt(IA){for(var J=[],N=0;N>8*(3-N%4)&255);return i.from(J)}var Jt,bt,Xt,oe,vn,pn,Le=[40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122],re=bA.number,Ae=function(){function IA(J){f(this,IA),this.doc=J,this.stops=[],this.embedded=!1,this.transform=[1,0,0,1,0,0]}return w(IA,[{key:"stop",value:function(N,X,K){if(null==K&&(K=1),X=this.doc._normalizeColor(X),0===this.stops.length)if(3===X.length)this._colorSpace="DeviceRGB";else if(4===X.length)this._colorSpace="DeviceCMYK";else{if(1!==X.length)throw new Error("Unknown color space");this._colorSpace="DeviceGray"}else if("DeviceRGB"===this._colorSpace&&3!==X.length||"DeviceCMYK"===this._colorSpace&&4!==X.length||"DeviceGray"===this._colorSpace&&1!==X.length)throw new Error("All gradient stops must use the same color space");return K=Math.max(0,Math.min(1,K)),this.stops.push([N,X,K]),this}},{key:"setTransform",value:function(N,X,K,fA,pA,_A){return this.transform=[N,X,K,fA,pA,_A],this}},{key:"embed",value:function(N){var X,K=this.stops.length;if(0!==K){this.embedded=!0,this.matrix=N;var fA=this.stops[K-1];fA[0]<1&&this.stops.push([1,fA[1],fA[2]]);for(var pA=[],_A=[],nt=[],ut=0;ut>16,N>>8&255,255&N]}else bn[J]&&(J=bn[J]);return Array.isArray(J)?(3===J.length?J=J.map(function(X){return X/255}):4===J.length&&(J=J.map(function(X){return X/100})),J):null},_setColor:function(J,N){return J instanceof tn?(J.apply(N),!0):Array.isArray(J)&&J[0]instanceof Xe?(J[0].apply(N,J[1]),!0):this._setColorCore(J,N)},_setColorCore:function(J,N){if(!(J=this._normalizeColor(J)))return!1;var X=N?"SCN":"scn",K=this._getColorSpace(J);return this._setColorSpace(K,N),J=J.join(" "),this.addContent("".concat(J," ").concat(X)),!0},_setColorSpace:function(J,N){var X=N?"CS":"cs";return this.addContent("/".concat(J," ").concat(X))},_getColorSpace:function(J){return 4===J.length?"DeviceCMYK":"DeviceRGB"},fillColor:function(J,N){return this._setColor(J,!1)&&this.fillOpacity(N),this._fillColor=[J,N],this},strokeColor:function(J,N){return this._setColor(J,!0)&&this.strokeOpacity(N),this},opacity:function(J){return this._doOpacity(J,J),this},fillOpacity:function(J){return this._doOpacity(J,null),this},strokeOpacity:function(J){return this._doOpacity(null,J),this},_doOpacity:function(J,N){var X,K;if(null!=J||null!=N){null!=J&&(J=Math.max(0,Math.min(1,J))),null!=N&&(N=Math.max(0,Math.min(1,N)));var fA="".concat(J,"_").concat(N);if(this._opacityRegistry[fA]){var pA=z(this._opacityRegistry[fA],2);X=pA[0],K=pA[1]}else{X={Type:"ExtGState"},null!=J&&(X.ca=J),null!=N&&(X.CA=N),(X=this.ref(X)).end();var _A=++this._opacityCount;K="Gs".concat(_A),this._opacityRegistry[fA]=[X,K]}return this.page.ext_gstates[K]=X,this.addContent("/".concat(K," gs"))}},linearGradient:function(J,N,X,K){return new Te(this,J,N,X,K)},radialGradient:function(J,N,X,K,fA,pA){return new en(this,J,N,X,K,fA,pA)},pattern:function(J,N,X,K){return new Xe(this,J,N,X,K)}},bn={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};Jt=bt=Xt=oe=vn=pn=0;var Yn={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0},Tn={M:function(J,N){return Xt=oe=null,vn=Jt=N[0],pn=bt=N[1],J.moveTo(Jt,bt)},m:function(J,N){return Xt=oe=null,vn=Jt+=N[0],pn=bt+=N[1],J.moveTo(Jt,bt)},C:function(J,N){return Jt=N[4],bt=N[5],Xt=N[2],oe=N[3],J.bezierCurveTo.apply(J,b(N))},c:function(J,N){return J.bezierCurveTo(N[0]+Jt,N[1]+bt,N[2]+Jt,N[3]+bt,N[4]+Jt,N[5]+bt),Xt=Jt+N[2],oe=bt+N[3],Jt+=N[4],bt+=N[5]},S:function(J,N){return null===Xt&&(Xt=Jt,oe=bt),J.bezierCurveTo(Jt-(Xt-Jt),bt-(oe-bt),N[0],N[1],N[2],N[3]),Xt=N[0],oe=N[1],Jt=N[2],bt=N[3]},s:function(J,N){return null===Xt&&(Xt=Jt,oe=bt),J.bezierCurveTo(Jt-(Xt-Jt),bt-(oe-bt),Jt+N[0],bt+N[1],Jt+N[2],bt+N[3]),Xt=Jt+N[0],oe=bt+N[1],Jt+=N[2],bt+=N[3]},Q:function(J,N){return Xt=N[0],oe=N[1],J.quadraticCurveTo(N[0],N[1],Jt=N[2],bt=N[3])},q:function(J,N){return J.quadraticCurveTo(N[0]+Jt,N[1]+bt,N[2]+Jt,N[3]+bt),Xt=Jt+N[0],oe=bt+N[1],Jt+=N[2],bt+=N[3]},T:function(J,N){return null===Xt?(Xt=Jt,oe=bt):(Xt=Jt-(Xt-Jt),oe=bt-(oe-bt)),J.quadraticCurveTo(Xt,oe,N[0],N[1]),Xt=Jt-(Xt-Jt),oe=bt-(oe-bt),Jt=N[0],bt=N[1]},t:function(J,N){return null===Xt?(Xt=Jt,oe=bt):(Xt=Jt-(Xt-Jt),oe=bt-(oe-bt)),J.quadraticCurveTo(Xt,oe,Jt+N[0],bt+N[1]),Jt+=N[0],bt+=N[1]},A:function(J,N){return ZA(J,Jt,bt,N),Jt=N[5],bt=N[6]},a:function(J,N){return N[5]+=Jt,N[6]+=bt,ZA(J,Jt,bt,N),Jt=N[5],bt=N[6]},L:function(J,N){return Xt=oe=null,J.lineTo(Jt=N[0],bt=N[1])},l:function(J,N){return Xt=oe=null,J.lineTo(Jt+=N[0],bt+=N[1])},H:function(J,N){return Xt=oe=null,J.lineTo(Jt=N[0],bt)},h:function(J,N){return Xt=oe=null,J.lineTo(Jt+=N[0],bt)},V:function(J,N){return Xt=oe=null,J.lineTo(Jt,bt=N[0])},v:function(J,N){return Xt=oe=null,J.lineTo(Jt,bt+=N[0])},Z:function(J){return J.closePath(),Jt=vn,bt=pn},z:function(J){return J.closePath(),Jt=vn,bt=pn}},ZA=function(J,N,X,K){var Kt,fA=z(K,7),Ot=DA(YA(fA[5],fA[6],fA[0],fA[1],fA[3],fA[4],fA[2],N,X));try{for(Ot.s();!(Kt=Ot.n()).done;){var Ee=tt.apply(void 0,b(Kt.value));J.bezierCurveTo.apply(J,b(Ee))}}catch(Ie){Ot.e(Ie)}finally{Ot.f()}},YA=function(J,N,X,K,fA,pA,_A,nt,ut){var Qt=_A*(Math.PI/180),vt=Math.sin(Qt),xt=Math.cos(Qt);X=Math.abs(X),K=Math.abs(K);var Tt=(Xt=xt*(nt-J)*.5+vt*(ut-N)*.5)*Xt/(X*X)+(oe=xt*(ut-N)*.5-vt*(nt-J)*.5)*oe/(K*K);Tt>1&&(X*=Tt=Math.sqrt(Tt),K*=Tt);var Ot=xt/X,Kt=vt/X,fe=-vt/K,Ee=xt/K,Ie=Ot*nt+Kt*ut,nn=fe*nt+Ee*ut,Me=Ot*J+Kt*N,je=fe*J+Ee*N,Ke=1/((Me-Ie)*(Me-Ie)+(je-nn)*(je-nn))-.25;Ke<0&&(Ke=0);var dn=Math.sqrt(Ke);pA===fA&&(dn=-dn);var Kn=.5*(Ie+Me)-dn*(je-nn),_n=.5*(nn+je)+dn*(Me-Ie),Sn=Math.atan2(nn-_n,Ie-Kn),Hn=Math.atan2(je-_n,Me-Kn)-Sn;Hn<0&&1===pA?Hn+=2*Math.PI:Hn>0&&0===pA&&(Hn-=2*Math.PI);for(var rr=Math.ceil(Math.abs(Hn/(.5*Math.PI+.001))),Qr=[],$n=0;$n0&&(K[K.length]=+fA),X[X.length]={cmd:N,args:K},K=[],fA="",pA=!1),N=Qt;else if([" ",","].includes(Qt)||"-"===Qt&&fA.length>0&&"e"!==fA[fA.length-1]||"."===Qt&&pA){if(0===fA.length)continue;K.length===_A?(X[X.length]={cmd:N,args:K},K=[+fA],"M"===N&&(N="L"),"m"===N&&(N="l")):K[K.length]=+fA,pA="."===Qt,fA=["-","."].includes(Qt)?Qt:""}else fA+=Qt,"."===Qt&&(pA=!0)}}catch(vt){nt.e(vt)}finally{nt.f()}return fA.length>0&&(K.length===_A?(X[X.length]={cmd:N,args:K},K=[+fA],"M"===N&&(N="L"),"m"===N&&(N="l")):K[K.length]=+fA),X[X.length]={cmd:N,args:K},X}(X);!function(J,N){Jt=bt=Xt=oe=vn=pn=0;for(var X=0;X1&&void 0!==arguments[1]?arguments[1]:{},X=J;if(Array.isArray(J)||(J=[J,N.space||J]),!J.every(function(fA){return Number.isFinite(fA)&&fA>0}))throw new Error("dash(".concat(JSON.stringify(X),", ").concat(JSON.stringify(N),") invalid, lengths must be numeric and greater than zero"));return J=J.map(PA).join(" "),this.addContent("[".concat(J,"] ").concat(PA(N.phase||0)," d"))},undash:function(){return this.addContent("[] 0 d")},moveTo:function(J,N){return this.addContent("".concat(PA(J)," ").concat(PA(N)," m"))},lineTo:function(J,N){return this.addContent("".concat(PA(J)," ").concat(PA(N)," l"))},bezierCurveTo:function(J,N,X,K,fA,pA){return this.addContent("".concat(PA(J)," ").concat(PA(N)," ").concat(PA(X)," ").concat(PA(K)," ").concat(PA(fA)," ").concat(PA(pA)," c"))},quadraticCurveTo:function(J,N,X,K){return this.addContent("".concat(PA(J)," ").concat(PA(N)," ").concat(PA(X)," ").concat(PA(K)," v"))},rect:function(J,N,X,K){return this.addContent("".concat(PA(J)," ").concat(PA(N)," ").concat(PA(X)," ").concat(PA(K)," re"))},roundedRect:function(J,N,X,K,fA){null==fA&&(fA=0);var pA=(fA=Math.min(fA,.5*X,.5*K))*(1-zA);return this.moveTo(J+fA,N),this.lineTo(J+X-fA,N),this.bezierCurveTo(J+X-pA,N,J+X,N+pA,J+X,N+fA),this.lineTo(J+X,N+K-fA),this.bezierCurveTo(J+X,N+K-pA,J+X-pA,N+K,J+X-fA,N+K),this.lineTo(J+fA,N+K),this.bezierCurveTo(J+pA,N+K,J,N+K-pA,J,N+K-fA),this.lineTo(J,N+fA),this.bezierCurveTo(J,N+pA,J+pA,N,J+fA,N),this.closePath()},ellipse:function(J,N,X,K){null==K&&(K=X);var fA=X*zA,pA=K*zA,_A=(J-=X)+2*X,nt=(N-=K)+2*K,ut=J+X,Qt=N+K;return this.moveTo(J,Qt),this.bezierCurveTo(J,Qt-pA,ut-fA,N,ut,N),this.bezierCurveTo(ut+fA,N,_A,Qt-pA,_A,Qt),this.bezierCurveTo(_A,Qt+pA,ut+fA,nt,ut,nt),this.bezierCurveTo(ut-fA,nt,J,Qt+pA,J,Qt),this.closePath()},circle:function(J,N,X){return this.ellipse(J,N,X)},arc:function(J,N,X,K,fA,pA){null==pA&&(pA=!1);var _A=2*Math.PI,nt=.5*Math.PI,ut=fA-K;Math.abs(ut)>_A?ut=_A:0!==ut&&pA!==ut<0&&(ut=(pA?-1:1)*_A+ut);var vt=Math.ceil(Math.abs(ut)/nt),xt=ut/vt,Tt=xt/nt*zA*X,Ot=K,Kt=-Math.sin(Ot)*Tt,fe=Math.cos(Ot)*Tt,Ee=J+Math.cos(Ot)*X,Ie=N+Math.sin(Ot)*X;this.moveTo(Ee,Ie);for(var nn=0;nn1&&void 0!==arguments[1]?arguments[1]:{},K=J*Math.PI/180,fA=Math.cos(K),pA=Math.sin(K),_A=X=0;if(null!=N.origin){var nt=z(N.origin,2),Qt=(_A=nt[0])*pA+(X=nt[1])*fA;_A-=_A*fA-X*pA,X-=Qt}return this.transform(fA,pA,-pA,fA,_A,X)},scale:function(J,N){var K,X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};null==N&&(N=J),"object"==typeof N&&(X=N,N=J);var fA=K=0;if(null!=X.origin){var pA=z(X.origin,2);fA=pA[0],K=pA[1],fA-=J*fA,K-=N*K}return this.transform(J,0,0,N,fA,K)}},$A={402:131,8211:150,8212:151,8216:145,8217:146,8218:130,8220:147,8221:148,8222:132,8224:134,8225:135,8226:149,8230:133,8364:128,8240:137,8249:139,8250:155,710:136,8482:153,338:140,339:156,732:152,352:138,353:154,376:159,381:142,382:158},LA=".notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n \nspace exclam quotedbl numbersign\ndollar percent ampersand quotesingle\nparenleft parenright asterisk plus\ncomma hyphen period slash\nzero one two three\nfour five six seven\neight nine colon semicolon\nless equal greater question\n \nat A B C\nD E F G\nH I J K\nL M N O\nP Q R S\nT U V W\nX Y Z bracketleft\nbackslash bracketright asciicircum underscore\n \ngrave a b c\nd e f g\nh i j k\nl m n o\np q r s\nt u v w\nx y z braceleft\nbar braceright asciitilde .notdef\n \nEuro .notdef quotesinglbase florin\nquotedblbase ellipsis dagger daggerdbl\ncircumflex perthousand Scaron guilsinglleft\nOE .notdef Zcaron .notdef\n.notdef quoteleft quoteright quotedblleft\nquotedblright bullet endash emdash\ntilde trademark scaron guilsinglright\noe .notdef zcaron ydieresis\n \nspace exclamdown cent sterling\ncurrency yen brokenbar section\ndieresis copyright ordfeminine guillemotleft\nlogicalnot hyphen registered macron\ndegree plusminus twosuperior threesuperior\nacute mu paragraph periodcentered\ncedilla onesuperior ordmasculine guillemotright\nonequarter onehalf threequarters questiondown\n \nAgrave Aacute Acircumflex Atilde\nAdieresis Aring AE Ccedilla\nEgrave Eacute Ecircumflex Edieresis\nIgrave Iacute Icircumflex Idieresis\nEth Ntilde Ograve Oacute\nOcircumflex Otilde Odieresis multiply\nOslash Ugrave Uacute Ucircumflex\nUdieresis Yacute Thorn germandbls\n \nagrave aacute acircumflex atilde\nadieresis aring ae ccedilla\negrave eacute ecircumflex edieresis\nigrave iacute icircumflex idieresis\neth ntilde ograve oacute\nocircumflex otilde odieresis divide\noslash ugrave uacute ucircumflex\nudieresis yacute thorn ydieresis".split(/\s+/),at=function(){function IA(J){f(this,IA),this.contents=J,this.attributes={},this.glyphWidths={},this.boundingBoxes={},this.kernPairs={},this.parse(),this.charWidths=new Array(256);for(var N=0;N<=255;N++)this.charWidths[N]=this.glyphWidths[LA[N]];this.bbox=this.attributes.FontBBox.split(/\s+/).map(function(X){return+X}),this.ascender=+(this.attributes.Ascender||0),this.descender=+(this.attributes.Descender||0),this.xHeight=+(this.attributes.XHeight||0),this.capHeight=+(this.attributes.CapHeight||0),this.lineGap=this.bbox[3]-this.bbox[1]-(this.ascender-this.descender)}return w(IA,null,[{key:"open",value:function(N){return new IA(e.readFileSync(N,"utf8"))}}]),w(IA,[{key:"parse",value:function(){var K,N="",X=DA(this.contents.split("\n"));try{for(X.s();!(K=X.n()).done;){var pA,_A,fA=K.value;if(pA=fA.match(/^Start(\w+)/))N=pA[1];else if(pA=fA.match(/^End(\w+)/))N="";else switch(N){case"FontMetrics":var nt=(pA=fA.match(/(^\w+)\s+(.*)/))[1],ut=pA[2];(_A=this.attributes[nt])?(Array.isArray(_A)||(_A=this.attributes[nt]=[_A]),_A.push(ut)):this.attributes[nt]=ut;break;case"CharMetrics":if(!/^CH?\s/.test(fA))continue;var Qt=fA.match(/\bN\s+(\.?\w+)\s*;/)[1];this.glyphWidths[Qt]=+fA.match(/\bWX\s+(\d+)\s*;/)[1];break;case"KernPairs":(pA=fA.match(/^KPX\s+(\.?\w+)\s+(\.?\w+)\s+(-?\d+)/))&&(this.kernPairs[pA[1]+"\0"+pA[2]]=parseInt(pA[3]))}}}catch(vt){X.e(vt)}finally{X.f()}}},{key:"encodeText",value:function(N){for(var X=[],K=0,fA=N.length;K>8,nt=0;this.font.post.isFixedPitch&&(nt|=1),1<=_A&&_A<=7&&(nt|=2),nt|=4,10===_A&&(nt|=8),this.font.head.macStyle.italic&&(nt|=64);var Qt=[1,2,3,4,5,6].map(function(Kt){return String.fromCharCode((K.id.charCodeAt(Kt)||73)+17)}).join("")+"+"+this.font.postscriptName,vt=this.font.bbox,xt=this.document.ref({Type:"FontDescriptor",FontName:Qt,Flags:nt,FontBBox:[vt.minX*this.scale,vt.minY*this.scale,vt.maxX*this.scale,vt.maxY*this.scale],ItalicAngle:this.font.italicAngle,Ascent:this.ascender,Descent:this.descender,CapHeight:(this.font.capHeight||this.font.ascent)*this.scale,XHeight:(this.font.xHeight||0)*this.scale,StemV:0});fA?xt.data.FontFile3=pA:xt.data.FontFile2=pA,xt.end();var Tt={Type:"Font",Subtype:"CIDFontType0",BaseFont:Qt,CIDSystemInfo:{Registry:new String("Adobe"),Ordering:new String("Identity"),Supplement:0},FontDescriptor:xt,W:[0,this.widths]};fA||(Tt.Subtype="CIDFontType2",Tt.CIDToGIDMap="Identity");var Ot=this.document.ref(Tt);return Ot.end(),this.dictionary.data={Type:"Font",Subtype:"Type0",BaseFont:Qt,Encoding:"Identity-H",DescendantFonts:[Ot],ToUnicode:this.toUnicodeCmap()},this.dictionary.end()}},{key:"toUnicodeCmap",value:function(){var _A,K=this.document.ref(),fA=[],pA=DA(this.unicode);try{for(pA.s();!(_A=pA.n()).done;){var vt,ut=[],Qt=DA(_A.value);try{for(Qt.s();!(vt=Qt.n()).done;){var xt=vt.value;xt>65535&&(ut.push(Ut((xt-=65536)>>>10&1023|55296)),xt=56320|1023&xt),ut.push(Ut(xt))}}catch(Tt){Qt.e(Tt)}finally{Qt.f()}fA.push("<".concat(ut.join(" "),">"))}}catch(Tt){pA.e(Tt)}finally{pA.f()}return K.end("/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000>\nendcodespacerange\n1 beginbfrange\n<0000> <".concat(Ut(fA.length-1),"> [").concat(fA.join(" "),"]\nendbfrange\nendcmap\nCMapName currentdict /CMap defineresource pop\nend\nend")),K}}]),N}(VA),Wt=function(){function IA(){f(this,IA)}return w(IA,null,[{key:"open",value:function(N,X,K,fA){var pA;if("string"==typeof X){if(St.isStandardFont(X))return new St(N,X,fA);X=e.readFileSync(X)}if(i.isBuffer(X)?pA=a.default.create(X,K):X instanceof Uint8Array?pA=a.default.create(i.from(X),K):X instanceof ArrayBuffer&&(pA=a.default.create(i.from(new Uint8Array(X)),K)),null==pA)throw new Error("Not a supported font format or standard PDF font.");return new kt(N,pA,fA)}}]),IA}(),te={initFonts:function(){var J=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Helvetica";this._fontFamilies={},this._fontCount=0,this._fontSize=12,this._font=null,this._registeredFonts={},J&&this.font(J)},font:function(J,N,X){var K,fA;if("number"==typeof N&&(X=N,N=null),"string"==typeof J&&this._registeredFonts[J]){K=J;var pA=this._registeredFonts[J];J=pA.src,N=pA.family}else"string"!=typeof(K=N||J)&&(K=null);if(null!=X&&this.fontSize(X),fA=this._fontFamilies[K])return this._font=fA,this;var _A="F".concat(++this._fontCount);return this._font=Wt.open(this,J,N,_A),(fA=this._fontFamilies[this._font.name])?(this._font=fA,this):(K&&(this._fontFamilies[K]=this._font),this._font.name&&(this._fontFamilies[this._font.name]=this._font),this)},fontSize:function(J){return this._fontSize=J,this},currentLineHeight:function(J){return null==J&&(J=!1),this._font.lineHeight(this._fontSize,J)},registerFont:function(J,N,X){return this._registeredFonts[J]={src:N,family:X},this}},wt=function(IA){m(N,IA);var J=F(N);function N(X,K){var fA;return f(this,N),(fA=J.call(this)).document=X,fA.indent=K.indent||0,fA.characterSpacing=K.characterSpacing||0,fA.wordSpacing=0===K.wordSpacing,fA.columns=K.columns||1,fA.columnGap=null!=K.columnGap?K.columnGap:18,fA.lineWidth=(K.width-fA.columnGap*(fA.columns-1))/fA.columns,fA.spaceLeft=fA.lineWidth,fA.startX=fA.document.x,fA.startY=fA.document.y,fA.column=1,fA.ellipsis=K.ellipsis,fA.continuedX=0,fA.features=K.features,null!=K.height?(fA.height=K.height,fA.maxY=fA.startY+K.height):fA.maxY=fA.document.page.maxY(),fA.on("firstLine",function(pA){var _A=fA.continuedX||fA.indent;return fA.document.x+=_A,fA.lineWidth-=_A,fA.once("line",function(){if(fA.document.x-=_A,fA.lineWidth+=_A,pA.continued&&!fA.continuedX&&(fA.continuedX=fA.indent),!pA.continued)return fA.continuedX=0})}),fA.on("lastLine",function(pA){var _A=pA.align;return"justify"===_A&&(pA.align="left"),fA.lastLine=!0,fA.once("line",function(){return fA.document.y+=pA.paragraphGap||0,pA.align=_A,fA.lastLine=!1})}),fA}return w(N,[{key:"wordWidth",value:function(K){return this.document.widthOfString(K,this)+this.characterSpacing+this.wordSpacing}},{key:"eachWord",value:function(K,fA){for(var pA,_A=new E.default(K),nt=null,ut=Object.create(null);pA=_A.nextBreak();){var Qt,vt=K.slice((null!=nt?nt.position:void 0)||0,pA.position),xt=null!=ut[vt]?ut[vt]:ut[vt]=this.wordWidth(vt);if(xt>this.lineWidth+this.continuedX)for(var Tt=nt,Ot={};vt.length;){var Kt,fe;xt>this.spaceLeft?(Kt=Math.ceil(this.spaceLeft/(xt/vt.length)),fe=(xt=this.wordWidth(vt.slice(0,Kt)))<=this.spaceLeft&&Ktthis.spaceLeft&&Kt>0;Ee||fe;)Ee?Ee=(xt=this.wordWidth(vt.slice(0,--Kt)))>this.spaceLeft&&Kt>0:(Ee=(xt=this.wordWidth(vt.slice(0,++Kt)))>this.spaceLeft&&Kt>0,fe=xt<=this.spaceLeft&&Ktthis.maxY||_A>this.maxY)&&this.nextSection();var nt="",ut=0,Qt=0,vt=0,xt=this.document.y,Tt=function(){return fA.textWidth=ut+pA.wordSpacing*(Qt-1),fA.wordCount=Qt,fA.lineWidth=pA.lineWidth,xt=pA.document.y,pA.emit("line",nt,fA,pA),vt++};return this.emit("sectionStart",fA,this),this.eachWord(K,function(Ot,Kt,fe,Ee){if((null==Ee||Ee.required)&&(pA.emit("firstLine",fA,pA),pA.spaceLeft=pA.lineWidth),Kt<=pA.spaceLeft&&(nt+=Ot,ut+=Kt,Qt++),fe.required||Kt>pA.spaceLeft){var Ie=pA.document.currentLineHeight(!0);if(null!=pA.height&&pA.ellipsis&&pA.document.y+2*Ie>pA.maxY&&pA.column>=pA.columns){for(!0===pA.ellipsis&&(pA.ellipsis="\u2026"),nt=nt.replace(/\s+$/,""),ut=pA.wordWidth(nt+pA.ellipsis);nt&&ut>pA.lineWidth;)nt=nt.slice(0,-1).replace(/\s+$/,""),ut=pA.wordWidth(nt+pA.ellipsis);ut<=pA.lineWidth&&(nt+=pA.ellipsis),ut=pA.wordWidth(nt)}return fe.required&&(Kt>pA.spaceLeft&&(Tt(),nt=Ot,ut=Kt,Qt=1),pA.emit("lastLine",fA,pA)),Tt(),pA.document.y+Ie>pA.maxY&&!pA.nextSection()?(Qt=0,nt="",!1):fe.required?(pA.spaceLeft=pA.lineWidth,nt="",ut=0,Qt=0):(pA.spaceLeft=pA.lineWidth-Kt,nt=Ot,ut=Kt,Qt=1)}return pA.spaceLeft-=Kt}),Qt>0&&(this.emit("lastLine",fA,this),Tt()),this.emit("sectionEnd",fA,this),!0===fA.continued?(vt>1&&(this.continuedX=0),this.continuedX+=fA.textWidth||0,this.document.y=xt):this.document.x=this.startX}},{key:"nextSection",value:function(K){if(this.emit("sectionEnd",K,this),++this.column>this.columns){if(null!=this.height)return!1;var fA;this.document.continueOnNewPage(),this.column=1,this.startY=this.document.page.margins.top,this.maxY=this.document.page.maxY(),this.document.x=this.startX,this.document._fillColor&&(fA=this.document).fillColor.apply(fA,b(this.document._fillColor)),this.emit("pageBreak",K,this)}else this.document.x+=this.lineWidth+this.columnGap,this.document.y=this.startY,this.emit("columnBreak",K,this);return this.emit("sectionStart",K,this),!0}}]),N}(g.EventEmitter),Pt=bA.number,jt={initText:function(){return this._line=this._line.bind(this),this.x=0,this.y=0,this._lineGap=0},lineGap:function(J){return this._lineGap=J,this},moveDown:function(J){return null==J&&(J=1),this.y+=this.currentLineHeight(!0)*J+this._lineGap,this},moveUp:function(J){return null==J&&(J=1),this.y-=this.currentLineHeight(!0)*J+this._lineGap,this},_text:function(J,N,X,K,fA){var pA=this;K=this._initOptions(N,X,K),J=null==J?"":"".concat(J),K.wordSpacing&&(J=J.replace(/\s{2,}/g," "));var _A=function(){K.structParent&&K.structParent.add(pA.struct(K.structType||"P",[pA.markStructureContent(K.structType||"P")]))};if(K.width){var nt=this._wrapper;nt||((nt=new wt(this,K)).on("line",fA),nt.on("firstLine",_A)),this._wrapper=K.continued?nt:null,this._textOptions=K.continued?K:null,nt.wrap(J,K)}else{var Qt,ut=DA(J.split("\n"));try{for(ut.s();!(Qt=ut.n()).done;){var vt=Qt.value;_A(),fA(vt,K)}}catch(xt){ut.e(xt)}finally{ut.f()}}return this},text:function(J,N,X,K){return this._text(J,N,X,K,this._line)},widthOfString:function(J){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._font.widthOfString(J,this._fontSize,N.features)+(N.characterSpacing||0)*(J.length-1)},heightOfString:function(J,N){var X=this,K=this.x,fA=this.y;(N=this._initOptions(N)).height=1/0;var pA=N.lineGap||this._lineGap||0;this._text(J,this.x,this.y,N,function(){return X.y+=X.currentLineHeight(!0)+pA});var _A=this.y-fA;return this.x=K,this.y=fA,_A},list:function(J,N,X,K,fA){var pA=this,_A=(K=this._initOptions(N,X,K)).listType||"bullet",nt=Math.round(this._font.ascender/1e3*this._fontSize),ut=nt/2,Qt=K.bulletRadius||nt/3,vt=K.textIndent||("bullet"===_A?5*Qt:2*nt),xt=K.bulletIndent||("bullet"===_A?8*Qt:2*nt),Tt=1,Ot=[],Kt=[],fe=[];!function Me(je){for(var Qn=1,Ke=0;Ke0&&void 0!==arguments[0]?arguments[0]:{},N=arguments.length>1?arguments[1]:void 0,X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"==typeof J&&(X=J,J=null);var K=Object.assign({},X);if(this._textOptions)for(var fA in this._textOptions)"continued"!==fA&&void 0===K[fA]&&(K[fA]=this._textOptions[fA]);return null!=J&&(this.x=J),null!=N&&(this.y=N),!1!==K.lineBreak&&(null==K.width&&(K.width=this.page.width-this.x-this.page.margins.right),K.width=Math.max(K.width,0)),K.columns||(K.columns=0),null==K.columnGap&&(K.columnGap=18),K},_line:function(J){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},X=arguments.length>2?arguments[2]:void 0;this._fragment(J,this.x,this.y,N);var K=N.lineGap||this._lineGap||0;return X?this.y+=this.currentLineHeight(!0)+K:this.x+=this.widthOfString(J)},_fragment:function(J,N,X,K){var pA,_A,nt,ut,Qt,vt,fA=this;if(0!==(J="".concat(J).replace(/\n/g,"")).length){var Tt=K.wordSpacing||0,Ot=K.characterSpacing||0;if(K.width)switch(K.align||"left"){case"right":Qt=this.widthOfString(J.replace(/\s+$/,""),K),N+=K.lineWidth-Qt;break;case"center":N+=K.lineWidth/2-K.textWidth/2;break;case"justify":vt=J.trim().split(/\s+/),Qt=this.widthOfString(J.replace(/\s+/g,""),K);var Kt=this.widthOfString(" ")+Ot;Tt=Math.max(0,(K.lineWidth-Qt)/Math.max(1,vt.length-1)-Kt)}if("number"==typeof K.baseline)pA=-K.baseline;else{switch(K.baseline){case"svg-middle":pA=.5*this._font.xHeight;break;case"middle":case"svg-central":pA=.5*(this._font.descender+this._font.ascender);break;case"bottom":case"ideographic":pA=this._font.descender;break;case"alphabetic":pA=0;break;case"mathematical":pA=.5*this._font.ascender;break;case"hanging":pA=.8*this._font.ascender;break;default:pA=this._font.ascender}pA=pA/1e3*this._fontSize}var je,fe=K.textWidth+Tt*(K.wordCount-1)+Ot*(J.length-1);if(null!=K.link&&this.link(N,X,fe,this.currentLineHeight(),K.link),null!=K.goTo&&this.goTo(N,X,fe,this.currentLineHeight(),K.goTo),null!=K.destination&&this.addNamedDestination(K.destination,"XYZ",N,X,null),K.underline){this.save(),K.stroke||this.strokeColor.apply(this,b(this._fillColor||[]));var Ee=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(Ee);var Ie=X+this.currentLineHeight()-Ee;this.moveTo(N,Ie),this.lineTo(N+fe,Ie),this.stroke(),this.restore()}if(K.strike){this.save(),K.stroke||this.strokeColor.apply(this,b(this._fillColor||[]));var nn=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(nn);var Me=X+this.currentLineHeight()/2;this.moveTo(N,Me),this.lineTo(N+fe,Me),this.stroke(),this.restore()}this.save(),K.oblique&&(je="number"==typeof K.oblique?-Math.tan(K.oblique*Math.PI/180):-.25,this.transform(1,0,0,1,N,X),this.transform(1,0,je,1,-je*pA,0),this.transform(1,0,0,1,-N,-X)),this.transform(1,0,0,-1,0,this.page.height),X=this.page.height-X-pA,null==this.page.fonts[this._font.id]&&(this.page.fonts[this._font.id]=this._font.ref()),this.addContent("BT"),this.addContent("1 0 0 1 ".concat(Pt(N)," ").concat(Pt(X)," Tm")),this.addContent("/".concat(this._font.id," ").concat(Pt(this._fontSize)," Tf"));var Qn=K.fill&&K.stroke?2:K.stroke?1:0;if(Qn&&this.addContent("".concat(Qn," Tr")),Ot&&this.addContent("".concat(Pt(Ot)," Tc")),Tt){vt=J.trim().split(/\s+/),Tt+=this.widthOfString(" ")+Ot,Tt*=1e3/this._fontSize,_A=[],ut=[];var dn,Ke=DA(vt);try{for(Ke.s();!(dn=Ke.n()).done;){var Sn=z(this._font.encode(dn.value,K.features),2),Hn=Sn[1];_A=_A.concat(Sn[0]),ut=ut.concat(Hn);var rr={},Qr=ut[ut.length-1];for(var $n in Qr)rr[$n]=Qr[$n];rr.xAdvance+=Tt,ut[ut.length-1]=rr}}catch(Jr){Ke.e(Jr)}finally{Ke.f()}}else{var Vn=z(this._font.encode(J,K.features),2);_A=Vn[0],ut=Vn[1]}var Lr=this._fontSize/1e3,dr=[],br=0,Gr=!1,si=function(Wn){if(br ").concat(Pt(-Gi)))}return br=Wn},Hr=function(Wn){if(si(Wn),dr.length>0)return fA.addContent("[".concat(dr.join(" "),"] TJ")),dr.length=0};for(nt=0;nt3&&void 0!==arguments[3]?arguments[3]:{};"object"==typeof N&&(K=N,N=null),N=null!=(Qt=null!=N?N:K.x)?Qt:this.x,X=null!=(vt=null!=X?X:K.y)?vt:this.y,"string"==typeof J&&(nt=this._imageRegistry[J]),nt||(nt=J.width&&J.height?J:this.openImage(J)),nt.obj||nt.embed(this),null==this.page.xobjects[nt.label]&&(this.page.xobjects[nt.label]=nt.obj);var xt=K.width||nt.width,Tt=K.height||nt.height;if(K.width&&!K.height){var Ot=xt/nt.width;xt=nt.width*Ot,Tt=nt.height*Ot}else if(K.height&&!K.width){var Kt=Tt/nt.height;xt=nt.width*Kt,Tt=nt.height*Kt}else if(K.scale)xt=nt.width*K.scale,Tt=nt.height*K.scale;else if(K.fit){var fe=z(K.fit,2);(ut=nt.width/nt.height)>(_A=fe[0])/(fA=fe[1])?(xt=_A,Tt=_A/ut):(Tt=fA,xt=fA*ut)}else if(K.cover){var Ee=z(K.cover,2);(ut=nt.width/nt.height)>(_A=Ee[0])/(fA=Ee[1])?(Tt=fA,xt=fA*ut):(xt=_A,Tt=_A/ut)}return(K.fit||K.cover)&&("center"===K.align?N=N+_A/2-xt/2:"right"===K.align&&(N=N+_A-xt),"center"===K.valign?X=X+fA/2-Tt/2:"bottom"===K.valign&&(X=X+fA-Tt)),null!=K.link&&this.link(N,X,xt,Tt,K.link),null!=K.goTo&&this.goTo(N,X,xt,Tt,K.goTo),null!=K.destination&&this.addNamedDestination(K.destination,"XYZ",N,X,null),this.y===X&&(this.y+=Tt),this.save(),this.transform(xt,0,0,-Tt,N,X+Tt),this.addContent("/".concat(nt.label," Do")),this.restore(),this},openImage:function(J){var N;return"string"==typeof J&&(N=this._imageRegistry[J]),N||(N=ge.open(J,"I".concat(++this._imageCount)),"string"==typeof J&&(this._imageRegistry[J]=N)),N}},Ge={annotate:function(J,N,X,K,fA){for(var pA in fA.Type="Annot",fA.Rect=this._convertRect(J,N,X,K),fA.Border=[0,0,0],"Link"===fA.Subtype&&void 0===fA.F&&(fA.F=4),"Link"!==fA.Subtype&&null==fA.C&&(fA.C=this._normalizeColor(fA.color||[0,0,0])),delete fA.color,"string"==typeof fA.Dest&&(fA.Dest=new String(fA.Dest)),fA){var _A=fA[pA];fA[pA[0].toUpperCase()+pA.slice(1)]=_A}var nt=this.ref(fA);return this.page.annotations.push(nt),nt.end(),this},note:function(J,N,X,K,fA){var pA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return pA.Subtype="Text",pA.Contents=new String(fA),pA.Name="Comment",null==pA.color&&(pA.color=[243,223,92]),this.annotate(J,N,X,K,pA)},goTo:function(J,N,X,K,fA){var pA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return pA.Subtype="Link",pA.A=this.ref({S:"GoTo",D:new String(fA)}),pA.A.end(),this.annotate(J,N,X,K,pA)},link:function(J,N,X,K,fA){var pA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(pA.Subtype="Link","number"==typeof fA){var _A=this._root.data.Pages.data;if(!(fA>=0&&fA<_A.Kids.length))throw new Error("The document has no page ".concat(fA));pA.A=this.ref({S:"GoTo",D:[_A.Kids[fA],"XYZ",null,null,null]}),pA.A.end()}else pA.A=this.ref({S:"URI",URI:new String(fA)}),pA.A.end();return this.annotate(J,N,X,K,pA)},_markup:function(J,N,X,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},_A=z(this._convertRect(J,N,X,K),4),nt=_A[0],ut=_A[1],Qt=_A[2],vt=_A[3];return fA.QuadPoints=[nt,vt,Qt,vt,nt,ut,Qt,ut],fA.Contents=new String,this.annotate(J,N,X,K,fA)},highlight:function(J,N,X,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Highlight",null==fA.color&&(fA.color=[241,238,148]),this._markup(J,N,X,K,fA)},underline:function(J,N,X,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Underline",this._markup(J,N,X,K,fA)},strike:function(J,N,X,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="StrikeOut",this._markup(J,N,X,K,fA)},lineAnnotation:function(J,N,X,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Line",fA.Contents=new String,fA.L=[J,this.page.height-N,X,this.page.height-K],this.annotate(J,N,X,K,fA)},rectAnnotation:function(J,N,X,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Square",fA.Contents=new String,this.annotate(J,N,X,K,fA)},ellipseAnnotation:function(J,N,X,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Circle",fA.Contents=new String,this.annotate(J,N,X,K,fA)},textAnnotation:function(J,N,X,K,fA){var pA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return pA.Subtype="FreeText",pA.Contents=new String(fA),pA.DA=new String,this.annotate(J,N,X,K,pA)},fileAnnotation:function(J,N,X,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},pA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},_A=this.file(fA.src,Object.assign({hidden:!0},fA));return pA.Subtype="FileAttachment",pA.FS=_A,pA.Contents?pA.Contents=new String(pA.Contents):_A.data.Desc&&(pA.Contents=_A.data.Desc),this.annotate(J,N,X,K,pA)},_convertRect:function(J,N,X,K){var fA=N;N+=K;var pA=J+X,_A=z(this._ctm,6),nt=_A[0],ut=_A[1],Qt=_A[2],vt=_A[3],xt=_A[4],Tt=_A[5];return[J=nt*J+Qt*N+xt,N=ut*J+vt*N+Tt,pA=nt*pA+Qt*fA+xt,fA=ut*pA+vt*fA+Tt]}},Se=function(){function IA(J,N,X,K){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{expanded:!1};f(this,IA),this.document=J,this.options=fA,this.outlineData={},null!==K&&(this.outlineData.Dest=[K.dictionary,"Fit"]),null!==N&&(this.outlineData.Parent=N),null!==X&&(this.outlineData.Title=new String(X)),this.dictionary=this.document.ref(this.outlineData),this.children=[]}return w(IA,[{key:"addItem",value:function(N){var K=new IA(this.document,this.dictionary,N,this.document.page,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{expanded:!1});return this.children.push(K),K}},{key:"endOutline",value:function(){if(this.children.length>0){this.options.expanded&&(this.outlineData.Count=this.children.length);var X=this.children[this.children.length-1];this.outlineData.First=this.children[0].dictionary,this.outlineData.Last=X.dictionary;for(var K=0,fA=this.children.length;K0&&(pA.outlineData.Prev=this.children[K-1].dictionary),K0)return this._root.data.Outlines=this.outline.dictionary,this._root.data.PageMode="UseOutlines"}},Ne=function(){function IA(J,N){f(this,IA),this.refs=[{pageRef:J,mcid:N}]}return w(IA,[{key:"push",value:function(N){var X=this;N.refs.forEach(function(K){return X.refs.push(K)})}}]),IA}(),_e=function(){function IA(J,N){var X=this,K=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},fA=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;f(this,IA),this.document=J,this._attached=!1,this._ended=!1,this._flushed=!1,this.dictionary=J.ref({S:N});var pA=this.dictionary.data;(Array.isArray(K)||this._isValidChild(K))&&(fA=K,K={}),void 0!==K.title&&(pA.T=new String(K.title)),void 0!==K.lang&&(pA.Lang=new String(K.lang)),void 0!==K.alt&&(pA.Alt=new String(K.alt)),void 0!==K.expanded&&(pA.E=new String(K.expanded)),void 0!==K.actual&&(pA.ActualText=new String(K.actual)),this._children=[],fA&&(Array.isArray(fA)||(fA=[fA]),fA.forEach(function(_A){return X.add(_A)}),this.end())}return w(IA,[{key:"add",value:function(N){if(this._ended)throw new Error("Cannot add child to already-ended structure element");if(!this._isValidChild(N))throw new Error("Invalid structure element child");return N instanceof IA&&(N.setParent(this.dictionary),this._attached&&N.setAttached()),N instanceof Ne&&this._addContentToParentTree(N),"function"==typeof N&&this._attached&&(N=this._contentForClosure(N)),this._children.push(N),this}},{key:"_addContentToParentTree",value:function(N){var X=this;N.refs.forEach(function(K){var fA=K.pageRef,pA=K.mcid;X.document.getStructParentTree().get(fA.data.StructParents)[pA]=X.dictionary})}},{key:"setParent",value:function(N){if(this.dictionary.data.P)throw new Error("Structure element added to more than one parent");this.dictionary.data.P=N,this._flush()}},{key:"setAttached",value:function(){var N=this;this._attached||(this._children.forEach(function(X,K){X instanceof IA&&X.setAttached(),"function"==typeof X&&(N._children[K]=N._contentForClosure(X))}),this._attached=!0,this._flush())}},{key:"end",value:function(){this._ended||(this._children.filter(function(N){return N instanceof IA}).forEach(function(N){return N.end()}),this._ended=!0,this._flush())}},{key:"_isValidChild",value:function(N){return N instanceof IA||N instanceof Ne||"function"==typeof N}},{key:"_contentForClosure",value:function(N){var X=this.document.markStructureContent(this.dictionary.data.S);return N(),this.document.endMarkedContent(),this._addContentToParentTree(X),X}},{key:"_isFlushable",value:function(){return!(!this.dictionary.data.P||!this._ended)&&this._children.every(function(N){return"function"!=typeof N&&(!(N instanceof IA)||N._isFlushable())})}},{key:"_flush",value:function(){var N=this;this._flushed||!this._isFlushable()||(this.dictionary.data.K=[],this._children.forEach(function(X){return N._flushChild(X)}),this.dictionary.end(),this._children=[],this.dictionary.data.K=null,this._flushed=!0)}},{key:"_flushChild",value:function(N){var X=this;N instanceof IA&&this.dictionary.data.K.push(N.dictionary),N instanceof Ne&&N.refs.forEach(function(K){var fA=K.pageRef,pA=K.mcid;X.dictionary.data.Pg||(X.dictionary.data.Pg=fA),X.dictionary.data.K.push(X.dictionary.data.Pg===fA?pA:{Type:"MCR",Pg:fA,MCID:pA})})}}]),IA}(),Fn=function(IA){m(N,IA);var J=F(N);function N(){return f(this,N),J.apply(this,arguments)}return w(N,[{key:"_compareKeys",value:function(K,fA){return parseInt(K)-parseInt(fA)}},{key:"_keysName",value:function(){return"Nums"}},{key:"_dataForKey",value:function(K){return parseInt(K)}}]),N}(_),rn={initMarkings:function(J){this.structChildren=[],J.tagged&&(this.getMarkInfoDictionary().data.Marked=!0,this.getStructTreeRoot())},markContent:function(J){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("Artifact"===J||N&&N.mcid){var X=0;for(this.page.markings.forEach(function(fA){(X||fA.structContent||"Artifact"===fA.tag)&&X++});X--;)this.endMarkedContent()}if(!N)return this.page.markings.push({tag:J}),this.addContent("/".concat(J," BMC")),this;this.page.markings.push({tag:J,options:N});var K={};return void 0!==N.mcid&&(K.MCID=N.mcid),"Artifact"===J&&("string"==typeof N.type&&(K.Type=N.type),Array.isArray(N.bbox)&&(K.BBox=[N.bbox[0],this.page.height-N.bbox[3],N.bbox[2],this.page.height-N.bbox[1]]),Array.isArray(N.attached)&&N.attached.every(function(fA){return"string"==typeof fA})&&(K.Attached=N.attached)),"Span"===J&&(N.lang&&(K.Lang=new String(N.lang)),N.alt&&(K.Alt=new String(N.alt)),N.expanded&&(K.E=new String(N.expanded)),N.actual&&(K.ActualText=new String(N.actual))),this.addContent("/".concat(J," ").concat(bA.convert(K)," BDC")),this},markStructureContent:function(J){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},X=this.getStructParentTree().get(this.page.structParentTreeKey),K=X.length;X.push(null),this.markContent(J,S(S({},N),{},{mcid:K}));var fA=new Ne(this.page.dictionary,K);return this.page.markings.slice(-1)[0].structContent=fA,fA},endMarkedContent:function(){return this.page.markings.pop(),this.addContent("EMC"),this},struct:function(J){return new _e(this,J,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)},addStructure:function(J){var N=this.getStructTreeRoot();return J.setParent(N),J.setAttached(),this.structChildren.push(J),N.data.K||(N.data.K=[]),N.data.K.push(J.dictionary),this},initPageMarkings:function(J){var N=this;J.forEach(function(X){if(X.structContent){var K=X.structContent,fA=N.markStructureContent(X.tag,X.options);K.push(fA),N.page.markings.slice(-1)[0].structContent=K}else N.markContent(X.tag,X.options)})},endPageMarkings:function(J){var N=J.markings;return N.forEach(function(){return J.write("EMC")}),J.markings=[],N},getMarkInfoDictionary:function(){return this._root.data.MarkInfo||(this._root.data.MarkInfo=this.ref({})),this._root.data.MarkInfo},getStructTreeRoot:function(){return this._root.data.StructTreeRoot||(this._root.data.StructTreeRoot=this.ref({Type:"StructTreeRoot",ParentTree:new Fn,ParentTreeNextKey:0})),this._root.data.StructTreeRoot},getStructParentTree:function(){return this.getStructTreeRoot().data.ParentTree},createStructParentTreeNextKey:function(){this.getMarkInfoDictionary();var J=this.getStructTreeRoot(),N=J.data.ParentTreeNextKey++;return J.data.ParentTree.add(N,[]),N},endMarkings:function(){var J=this._root.data.StructTreeRoot;J&&(J.end(),this.structChildren.forEach(function(N){return N.end()})),this._root.data.MarkInfo&&this._root.data.MarkInfo.end()}},Cn={readOnly:1,required:2,noExport:4,multiline:4096,password:8192,toggleToOffButton:16384,radioButton:32768,pushButton:65536,combo:131072,edit:262144,sort:524288,multiSelect:2097152,noSpell:4194304},In={left:0,center:1,right:2},an={value:"V",defaultValue:"DV"},fn={zip:"0",zipPlus4:"1",zip4:"1",phone:"2",ssn:"3"},cn_number={nDec:0,sepComma:!1,negStyle:"MinusBlack",currency:"",currencyPrepend:!0},cn_percent={nDec:0,sepComma:!1},Xn={initForm:function(){if(!this._font)throw new Error("Must set a font before calling initForm method");this._acroform={fonts:{},defaultFont:this._font.name},this._acroform.fonts[this._font.id]=this._font.ref();var J={Fields:[],NeedAppearances:!0,DA:new String("/".concat(this._font.id," 0 Tf 0 g")),DR:{Font:{}}};J.DR.Font[this._font.id]=this._font.ref();var N=this.ref(J);return this._root.data.AcroForm=N,this},endAcroForm:function(){var J=this;if(this._root.data.AcroForm){if(!Object.keys(this._acroform.fonts).length&&!this._acroform.defaultFont)throw new Error("No fonts specified for PDF form");var N=this._root.data.AcroForm.data.DR.Font;Object.keys(this._acroform.fonts).forEach(function(X){N[X]=J._acroform.fonts[X]}),this._root.data.AcroForm.data.Fields.forEach(function(X){J._endChild(X)}),this._root.data.AcroForm.end()}return this},_endChild:function(J){var N=this;return Array.isArray(J.data.Kids)&&(J.data.Kids.forEach(function(X){N._endChild(X)}),J.end()),this},formField:function(J){var X=this._fieldDict(J,null,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),K=this.ref(X);return this._addToParent(K),K},formAnnotation:function(J,N,X,K,fA,pA){var nt=this._fieldDict(J,N,arguments.length>6&&void 0!==arguments[6]?arguments[6]:{});return nt.Subtype="Widget",void 0===nt.F&&(nt.F=4),this.annotate(X,K,fA,pA,nt),this._addToParent(this.page.annotations[this.page.annotations.length-1])},formText:function(J,N,X,K,fA){return this.formAnnotation(J,"text",N,X,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formPushButton:function(J,N,X,K,fA){return this.formAnnotation(J,"pushButton",N,X,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formCombo:function(J,N,X,K,fA){return this.formAnnotation(J,"combo",N,X,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formList:function(J,N,X,K,fA){return this.formAnnotation(J,"list",N,X,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formRadioButton:function(J,N,X,K,fA){return this.formAnnotation(J,"radioButton",N,X,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formCheckbox:function(J,N,X,K,fA){return this.formAnnotation(J,"checkbox",N,X,K,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},_addToParent:function(J){var N=J.data.Parent;return N?(N.data.Kids||(N.data.Kids=[]),N.data.Kids.push(J)):this._root.data.AcroForm.data.Fields.push(J),this},_fieldDict:function(J,N){var X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._acroform)throw new Error("Call document.initForms() method before adding form elements to document");var K=Object.assign({},X);return null!==N&&(K=this._resolveType(N,X)),K=this._resolveFlags(K),K=this._resolveJustify(K),K=this._resolveFont(K),K=this._resolveStrings(K),K=this._resolveColors(K),(K=this._resolveFormat(K)).T=new String(J),K.parent&&(K.Parent=K.parent,delete K.parent),K},_resolveType:function(J,N){if("text"===J)N.FT="Tx";else if("pushButton"===J)N.FT="Btn",N.pushButton=!0;else if("radioButton"===J)N.FT="Btn",N.radioButton=!0;else if("checkbox"===J)N.FT="Btn";else if("combo"===J)N.FT="Ch",N.combo=!0;else{if("list"!==J)throw new Error("Invalid form annotation type '".concat(J,"'"));N.FT="Ch"}return N},_resolveFormat:function(J){var N=J.format;if(N&&N.type){var X,K,fA="";if(void 0!==fn[N.type])X="AFSpecial_Keystroke",K="AFSpecial_Format",fA=fn[N.type];else{var pA=N.type.charAt(0).toUpperCase()+N.type.slice(1);if(X="AF".concat(pA,"_Keystroke"),K="AF".concat(pA,"_Format"),"date"===N.type)X+="Ex",fA=String(N.param);else if("time"===N.type)fA=String(N.param);else if("number"===N.type){var _A=Object.assign({},cn_number,N);fA=String([String(_A.nDec),_A.sepComma?"0":"1",'"'+_A.negStyle+'"',"null",'"'+_A.currency+'"',String(_A.currencyPrepend)].join(","))}else if("percent"===N.type){var nt=Object.assign({},cn_percent,N);fA=String([String(nt.nDec),nt.sepComma?"0":"1"].join(","))}}J.AA=J.AA?J.AA:{},J.AA.K={S:"JavaScript",JS:new String("".concat(X,"(").concat(fA,");"))},J.AA.F={S:"JavaScript",JS:new String("".concat(K,"(").concat(fA,");"))}}return delete J.format,J},_resolveColors:function(J){var N=this._normalizeColor(J.backgroundColor);return N&&(J.MK||(J.MK={}),J.MK.BG=N),(N=this._normalizeColor(J.borderColor))&&(J.MK||(J.MK={}),J.MK.BC=N),delete J.backgroundColor,delete J.borderColor,J},_resolveFlags:function(J){var N=0;return Object.keys(J).forEach(function(X){Cn[X]&&(N|=Cn[X],delete J[X])}),0!==N&&(J.Ff=J.Ff?J.Ff:0,J.Ff|=N),J},_resolveJustify:function(J){var N=0;return void 0!==J.align&&("number"==typeof In[J.align]&&(N=In[J.align]),delete J.align),0!==N&&(J.Q=N),J},_resolveFont:function(J){if(null===this._acroform.fonts[this._font.id]&&(this._acroform.fonts[this._font.id]=this._font.ref()),this._acroform.defaultFont!==this._font.name){J.DR={Font:{}};var N=J.fontSize||0;J.DR.Font[this._font.id]=this._font.ref(),J.DA=new String("/".concat(this._font.id," ").concat(N," Tf 0 g"))}return J},_resolveStrings:function(J){var N=[];function X(K){if(Array.isArray(K))for(var fA=0;fA1&&void 0!==arguments[1]?arguments[1]:{};N.name=N.name||J;var K,X={Type:"EmbeddedFile",Params:{}};if(!J)throw new Error("No src specified");if(i.isBuffer(J))K=J;else if(J instanceof ArrayBuffer)K=i.from(new Uint8Array(J));else{var fA;if(fA=/^data:(.*);base64,(.*)$/.exec(J))fA[1]&&(X.Subtype=fA[1].replace("/","#2F")),K=i.from(fA[2],"base64");else{if(!(K=e.readFileSync(J)))throw new Error("Could not read contents of file at filepath ".concat(J));var pA=e.statSync(J),nt=pA.ctime;X.Params.CreationDate=pA.birthtime,X.Params.ModDate=nt}}N.creationDate instanceof Date&&(X.Params.CreationDate=N.creationDate),N.modifiedDate instanceof Date&&(X.Params.ModDate=N.modifiedDate),N.type&&(X.Subtype=N.type.replace("/","#2F"));var Qt,ut=h.default.MD5(h.default.lib.WordArray.create(new Uint8Array(K)));X.Params.CheckSum=new String(ut),X.Params.Size=K.byteLength,this._fileRegistry||(this._fileRegistry={});var vt=this._fileRegistry[N.name];vt&&Yr(X,vt)?Qt=vt.ref:((Qt=this.ref(X)).end(K),this._fileRegistry[N.name]=S(S({},X),{},{ref:Qt}));var xt={Type:"Filespec",F:new String(N.name),EF:{F:Qt},UF:new String(N.name)};N.description&&(xt.Desc=new String(N.description));var Tt=this.ref(xt);return Tt.end(),N.hidden||this.addNamedEmbeddedFile(N.name,Tt),Tt}};function Yr(IA,J){return IA.Subtype===J.Subtype&&IA.Params.CheckSum.toString()===J.Params.CheckSum.toString()&&IA.Params.Size===J.Params.Size&&IA.Params.CreationDate===J.Params.CreationDate&&IA.Params.ModDate===J.Params.ModDate}var nr=function(IA){m(N,IA);var J=F(N);function N(){var X,K=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch(f(this,N),(X=J.call(this,K)).options=K,K.pdfVersion){case"1.4":X.version=1.4;break;case"1.5":X.version=1.5;break;case"1.6":X.version=1.6;break;case"1.7":case"1.7ext3":X.version=1.7;break;default:X.version=1.3}X.compress=null==X.options.compress||X.options.compress,X._pageBuffer=[],X._pageBufferStart=0,X._offsets=[],X._waiting=0,X._ended=!1,X._offset=0;var fA=X.ref({Type:"Pages",Count:0,Kids:[]}),pA=X.ref({Dests:new W});if(X._root=X.ref({Type:"Catalog",Pages:fA,Names:pA}),X.options.lang&&(X._root.data.Lang=new String(X.options.lang)),X.page=null,X.initColor(),X.initVector(),X.initFonts(K.font),X.initText(),X.initImages(),X.initOutline(),X.initMarkings(K),X.info={Producer:"PDFKit",Creator:"PDFKit",CreationDate:new Date},X.options.info)for(var _A in X.options.info)X.info[_A]=X.options.info[_A];return X.options.displayTitle&&(X._root.data.ViewerPreferences=X.ref({DisplayDocTitle:!0})),X._id=R.generateFileID(X.info),X._security=R.create(U(X),K),X._write("%PDF-".concat(X.version)),X._write("%\xff\xff\xff\xff"),!1!==X.options.autoFirstPage&&X.addPage(),X}return w(N,[{key:"addPage",value:function(K){null==K&&(K=this.options),this.options.bufferPages||this.flushPages(),this.page=new $(this,K),this._pageBuffer.push(this.page);var fA=this._root.data.Pages.data;return fA.Kids.push(this.page.dictionary),fA.Count++,this.x=this.page.margins.left,this.y=this.page.margins.top,this._ctm=[1,0,0,1,0,0],this.transform(1,0,0,-1,0,this.page.height),this.emit("pageAdded"),this}},{key:"continueOnNewPage",value:function(K){var fA=this.endPageMarkings(this.page);return this.addPage(K),this.initPageMarkings(fA),this}},{key:"bufferedPageRange",value:function(){return{start:this._pageBufferStart,count:this._pageBuffer.length}}},{key:"switchToPage",value:function(K){var fA;if(!(fA=this._pageBuffer[K-this._pageBufferStart]))throw new Error("switchToPage(".concat(K,") out of bounds, current buffer covers pages ").concat(this._pageBufferStart," to ").concat(this._pageBufferStart+this._pageBuffer.length-1));return this.page=fA}},{key:"flushPages",value:function(){var K=this._pageBuffer;this._pageBuffer=[],this._pageBufferStart+=K.length;var pA,fA=DA(K);try{for(fA.s();!(pA=fA.n()).done;){var _A=pA.value;this.endPageMarkings(_A),_A.end()}}catch(nt){fA.e(nt)}finally{fA.f()}}},{key:"addNamedDestination",value:function(K){for(var fA=arguments.length,pA=new Array(fA>1?fA-1:0),_A=1;_A>z&AA]},getCombiningClass:function(mA){var nA=d.get(mA);return m.combiningClasses[nA>>b&lA]},getScript:function(mA){var nA=d.get(mA);return m.scripts[nA>>Z&MA]},getEastAsianWidth:function(mA){var nA=d.get(mA);return m.eaw[nA>>10&cA]},getNumericValue:function(mA){var nA=d.get(mA),EA=1023&nA;if(0===EA)return null;if(EA<=50)return EA-1;if(EA<480)return((EA>>4)-12)/(1+(15&EA));if(EA<768){nA=(EA>>5)-14;for(var ot=2+(31&EA);ot>0;)nA*=10,ot--;return nA}nA=(EA>>2)-191;for(var TA=1+(3&EA);TA>0;)nA*=60,TA--;return nA},isAlphabetic:uA,isDigit:CA,isPunctuation:SA,isLowerCase:bA,isUpperCase:XA,isTitleCase:q,isWhiteSpace:O,isBaseForm:$,isMark:W});I.default=Q},4781:function(Y,I,n){"use strict";n(7042),n(6992),n(1539),n(2472),n(2990),n(8927),n(3105),n(5035),n(4345),n(7174),n(2846),n(4731),n(7209),n(6319),n(8867),n(7789),n(3739),n(9368),n(4483),n(2056),n(3462),n(678),n(7462),n(3824),n(5021),n(2974),n(5016),n(9135);var c=n(311),o=n(1753).swap32LE;Y.exports=function(){function D(T){var F="function"==typeof T.readUInt32BE&&"function"==typeof T.slice;if(F||T instanceof Uint8Array){var z;if(F)this.highStart=T.readUInt32LE(0),this.errorValue=T.readUInt32LE(4),z=T.readUInt32LE(8),T=T.slice(12);else{var b=new DataView(T.buffer);this.highStart=b.getUint32(0,!0),this.errorValue=b.getUint32(4,!0),z=b.getUint32(8,!0),T=T.subarray(12)}T=c(T,new Uint8Array(z)),T=c(T,new Uint8Array(z)),o(T),this.data=new Uint32Array(T.buffer)}else{var Z=T;this.data=Z.data,this.highStart=Z.highStart,this.errorValue=Z.errorValue}}return D.prototype.get=function(F){return F<0||F>1114111?this.errorValue:F<55296||F>56319&&F<=65535?this.data[(this.data[F>>5]<<2)+(31&F)]:F<=65535?this.data[(this.data[2048+(F-55296>>5)]<<2)+(31&F)]:F>11)]+(F>>5&63)]<<2)+(31&F)]:this.data[this.data.length-4]},D}()},1753:function(Y,I,n){"use strict";n(6992),n(1539),n(2472),n(2990),n(8927),n(3105),n(5035),n(4345),n(7174),n(2846),n(4731),n(7209),n(6319),n(8867),n(7789),n(3739),n(9368),n(4483),n(2056),n(3462),n(678),n(7462),n(3824),n(5021),n(2974),n(5016),n(9135);var c=18===new Uint8Array(new Uint32Array([305419896]).buffer)[0],i=function(a,g,E){var u=a[g];a[g]=a[E],a[E]=u};Y.exports={swap32LE:function(a){c&&function(a){for(var g=a.length,E=0;E/)){for(;at=$A();)VA.childNodes.push(at),at.parentNode=VA,VA.textContent+=3===at.nodeType||4===at.nodeType?at.nodeValue:at.textContent;return(LA=tt.match(/^<\/([\w:.-]+)\s*>/,!0))?(LA[1]===VA.nodeName||(ne('parseXml: tag not matching, opening "'+VA.nodeName+'" & closing "'+LA[1]+'"'),zA=!0),VA):(ne('parseXml: tag not matching, opening "'+VA.nodeName+'" & not closing'),zA=!0,VA)}if(tt.match(/^\/>/))return VA;ne('parseXml: tag could not be parsed "'+VA.nodeName+'"'),zA=!0}else{if(LA=tt.match(/^/))return new YA(null,8,LA,zA);if(LA=tt.match(/^<\?[\s\S]*?\?>/))return new YA(null,7,LA,zA);if(LA=tt.match(/^/))return new YA(null,10,LA,zA);if(LA=tt.match(/^/,!0))return new YA("#cdata-section",4,LA[1],zA);if(LA=tt.match(/^([^<]+)/,!0))return new YA("#text",3,AA(LA[1]),zA)}};PA=HA();)1!==PA.nodeType||UA?(1===PA.nodeType||3===PA.nodeType&&""!==PA.nodeValue.trim())&&ne("parseXml: data after document end has been discarded"):UA=PA;return tt.matchAll()&&ne("parseXml: parsing error"),UA}function AA(ZA){return ZA.replace(/&(?:#([0-9]+)|#[xX]([0-9A-Fa-f]+)|([0-9A-Za-z]+));/g,function(YA,tt,UA,PA){return tt?String.fromCharCode(parseInt(tt,10)):UA?String.fromCharCode(parseInt(UA,16)):PA&&C[PA]?String.fromCharCode(C[PA]):YA})}function lA(ZA){var YA,tt;return ZA=(ZA||"").trim(),(YA=E[ZA])?tt=[YA.slice(),1]:(YA=ZA.match(/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)$/i))?(YA[1]=parseInt(YA[1]),YA[2]=parseInt(YA[2]),YA[3]=parseInt(YA[3]),YA[4]=parseFloat(YA[4]),YA[1]<256&&YA[2]<256&&YA[3]<256&&YA[4]<=1&&(tt=[YA.slice(1,4),YA[4]])):(YA=ZA.match(/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)$/i))?(YA[1]=parseInt(YA[1]),YA[2]=parseInt(YA[2]),YA[3]=parseInt(YA[3]),YA[1]<256&&YA[2]<256&&YA[3]<256&&(tt=[YA.slice(1,4),1])):(YA=ZA.match(/^rgb\(\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*\)$/i))?(YA[1]=2.55*parseFloat(YA[1]),YA[2]=2.55*parseFloat(YA[2]),YA[3]=2.55*parseFloat(YA[3]),YA[1]<256&&YA[2]<256&&YA[3]<256&&(tt=[YA.slice(1,4),1])):(YA=ZA.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i))?tt=[[parseInt(YA[1],16),parseInt(YA[2],16),parseInt(YA[3],16)],1]:(YA=ZA.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i))&&(tt=[[17*parseInt(YA[1],16),17*parseInt(YA[2],16),17*parseInt(YA[3],16)],1]),en?en(tt,ZA):tt}function MA(ZA,YA,tt){var UA=ZA[0].slice(),PA=ZA[1]*YA;if(tt){for(var zA=0;zA=0;YA--)ZA=cA(bn[YA].savedMatrix,ZA);return ZA}function DA(){return(new WA).M(0,0).L(o.page.width,0).L(o.page.width,o.page.height).L(0,o.page.height).transform(FA(BA())).getBoundingBox()}function FA(ZA){var YA=ZA[0]*ZA[3]-ZA[1]*ZA[2];return[ZA[3]/YA,-ZA[1]/YA,-ZA[2]/YA,ZA[0]/YA,(ZA[2]*ZA[5]-ZA[3]*ZA[4])/YA,(ZA[1]*ZA[4]-ZA[0]*ZA[5])/YA]}function _(ZA){var YA=bA(ZA[0]),tt=bA(ZA[1]),UA=bA(ZA[2]),PA=bA(ZA[3]),zA=bA(ZA[4]),HA=bA(ZA[5]);if(SA(YA*PA-tt*UA,0))return[YA,tt,UA,PA,zA,HA]}function dA(ZA){var YA=ZA[2]||0,tt=ZA[1]||0,UA=ZA[0]||0;if(CA(YA,0)&&CA(tt,0))return[];if(CA(YA,0))return[-UA/tt];var PA=tt*tt-4*YA*UA;return SA(PA,0)&&PA>0?[(-tt+Math.sqrt(PA))/(2*YA),(-tt-Math.sqrt(PA))/(2*YA)]:CA(PA,0)?[-tt/(2*YA)]:[]}function uA(ZA,YA){return(YA[0]||0)+(YA[1]||0)*ZA+(YA[2]||0)*ZA*ZA+(YA[3]||0)*ZA*ZA*ZA}function CA(ZA,YA){return Math.abs(ZA-YA)<1e-10}function SA(ZA,YA){return Math.abs(ZA-YA)>=1e-10}function bA(ZA){return ZA>-1e21&&ZA<1e21?Math.round(1e6*ZA)/1e6:0}function q(ZA){for(var UA,YA=new It((ZA||"").trim()),tt=[1,0,0,1,0,0];UA=YA.match(/^([A-Za-z]+)\s*[(]([^(]+)[)]/,!0);){for(var PA=UA[1],zA=[],HA=new It(UA[2].trim()),$A=void 0;$A=HA.matchNumber();)zA.push(Number($A)),HA.matchSeparator();if("matrix"===PA&&6===zA.length)tt=cA(tt,[zA[0],zA[1],zA[2],zA[3],zA[4],zA[5]]);else if("translate"===PA&&2===zA.length)tt=cA(tt,[1,0,0,1,zA[0],zA[1]]);else if("translate"===PA&&1===zA.length)tt=cA(tt,[1,0,0,1,zA[0],0]);else if("scale"===PA&&2===zA.length)tt=cA(tt,[zA[0],0,0,zA[1],0,0]);else if("scale"===PA&&1===zA.length)tt=cA(tt,[zA[0],0,0,zA[0],0,0]);else if("rotate"===PA&&3===zA.length){var LA=zA[0]*Math.PI/180;tt=cA(tt,[1,0,0,1,zA[1],zA[2]],[Math.cos(LA),Math.sin(LA),-Math.sin(LA),Math.cos(LA),0,0],[1,0,0,1,-zA[1],-zA[2]])}else if("rotate"===PA&&1===zA.length){var at=zA[0]*Math.PI/180;tt=cA(tt,[Math.cos(at),Math.sin(at),-Math.sin(at),Math.cos(at),0,0])}else if("skewX"===PA&&1===zA.length){var VA=zA[0]*Math.PI/180;tt=cA(tt,[1,0,Math.tan(VA),1,0,0])}else{if("skewY"!==PA||1!==zA.length)return;var dt=zA[0]*Math.PI/180;tt=cA(tt,[1,Math.tan(dt),0,1,0,0])}YA.matchSeparator()}if(!YA.matchAll())return tt}function O(ZA,YA,tt,UA,PA,zA){var HA=(ZA||"").trim().match(/^(none)$|^x(Min|Mid|Max)Y(Min|Mid|Max)(?:\s+(meet|slice))?$/)||[],$A=HA[1]||HA[4]||"meet",VA=YA/UA,dt=tt/PA,St={Min:0,Mid:.5,Max:1}[HA[2]||"Mid"]-(zA||0),Ut={Min:0,Mid:.5,Max:1}[HA[3]||"Mid"]-(zA||0);return"slice"===$A?dt=VA=Math.max(VA,dt):"meet"===$A&&(dt=VA=Math.min(VA,dt)),[VA,0,0,dt,St*(YA-UA*VA),Ut*(tt-PA*dt)]}function $(ZA){var YA=Object.create(null);ZA=(ZA||"").trim().split(/;/);for(var tt=0;ttue&&(Ht=ue,ue=ce,ce=Ht),Zt>ge&&(Ht=ge,ge=Zt,Zt=Ht);for(var ve=dA(St),Ge=0;Ge=0&&ve[Ge]<=1){var Se=uA(ve[Ge],VA);Seue&&(ue=Se)}for(var xe=dA(Ut),Ne=0;Ne=0&&xe[Ne]<=1){var _e=uA(xe[Ne],dt);_ege&&(ge=_e)}return[ce,Zt,ue,ge]},this.getPointAtLength=function(Ht){if(CA(Ht,0))return this.startPoint;if(CA(Ht,this.totalLength))return this.endPoint;if(!(Ht<0||Ht>this.totalLength))for(var ce=1;ce<=at;ce++){var Zt=kt[ce-1],ue=kt[ce];if(Zt<=Ht&&Ht<=ue){var ge=(ce-(ue-Ht)/(ue-Zt))/at,ve=uA(ge,VA),Ge=uA(ge,dt),Se=uA(ge,St),xe=uA(ge,Ut);return[ve,Ge,Math.atan2(xe,Se)]}}}},JA=function(YA,tt,UA,PA){this.totalLength=Math.sqrt((UA-YA)*(UA-YA)+(PA-tt)*(PA-tt)),this.startPoint=[YA,tt,Math.atan2(PA-tt,UA-YA)],this.endPoint=[UA,PA,Math.atan2(PA-tt,UA-YA)],this.getBoundingBox=function(){return[Math.min(this.startPoint[0],this.endPoint[0]),Math.min(this.startPoint[1],this.endPoint[1]),Math.max(this.startPoint[0],this.endPoint[0]),Math.max(this.startPoint[1],this.endPoint[1])]},this.getPointAtLength=function(zA){if(zA>=0&&zA<=this.totalLength){var HA=zA/this.totalLength||0;return[this.startPoint[0]+HA*(this.endPoint[0]-this.startPoint[0]),this.startPoint[1]+HA*(this.endPoint[1]-this.startPoint[1]),this.startPoint[2]]}}},WA=function ZA(){this.pathCommands=[],this.pathSegments=[],this.startPoint=null,this.endPoint=null,this.totalLength=0;var zA,HA,$A,YA=0,tt=0,UA=0,PA=0;this.move=function(LA,at){return YA=UA=LA,tt=PA=at,null},this.line=function(LA,at){var VA=new JA(UA,PA,LA,at);return UA=LA,PA=at,VA},this.curve=function(LA,at,VA,dt,St,Ut){var kt=new ft(UA,PA,LA,at,VA,dt,St,Ut);return UA=St,PA=Ut,kt},this.close=function(){var LA=new JA(UA,PA,YA,tt);return UA=YA,PA=tt,LA},this.addCommand=function(LA){this.pathCommands.push(LA);var at=this[LA[0]].apply(this,LA.slice(3));at&&(at.hasStart=LA[1],at.hasEnd=LA[2],this.startPoint=this.startPoint||at.startPoint,this.endPoint=at.endPoint,this.pathSegments.push(at),this.totalLength+=at.totalLength)},this.M=function(LA,at){return this.addCommand(["move",!0,!0,LA,at]),zA="M",this},this.m=function(LA,at){return this.M(UA+LA,PA+at)},this.Z=this.z=function(){return this.addCommand(["close",!0,!0]),zA="Z",this},this.L=function(LA,at){return this.addCommand(["line",!0,!0,LA,at]),zA="L",this},this.l=function(LA,at){return this.L(UA+LA,PA+at)},this.H=function(LA){return this.L(LA,PA)},this.h=function(LA){return this.L(UA+LA,PA)},this.V=function(LA){return this.L(UA,LA)},this.v=function(LA){return this.L(UA,PA+LA)},this.C=function(LA,at,VA,dt,St,Ut){return this.addCommand(["curve",!0,!0,LA,at,VA,dt,St,Ut]),zA="C",HA=VA,$A=dt,this},this.c=function(LA,at,VA,dt,St,Ut){return this.C(UA+LA,PA+at,UA+VA,PA+dt,UA+St,PA+Ut)},this.S=function(LA,at,VA,dt){return this.C(UA+("C"===zA?UA-HA:0),PA+("C"===zA?PA-$A:0),LA,at,VA,dt)},this.s=function(LA,at,VA,dt){return this.C(UA+("C"===zA?UA-HA:0),PA+("C"===zA?PA-$A:0),UA+LA,PA+at,UA+VA,PA+dt)},this.Q=function(LA,at,VA,dt){return this.addCommand(["curve",!0,!0,UA+.6666666666666666*(LA-UA),PA+2/3*(at-PA),VA+2/3*(LA-VA),dt+2/3*(at-dt),VA,dt]),zA="Q",HA=LA,$A=at,this},this.q=function(LA,at,VA,dt){return this.Q(UA+LA,PA+at,UA+VA,PA+dt)},this.T=function(LA,at){return this.Q(UA+("Q"===zA?UA-HA:0),PA+("Q"===zA?PA-$A:0),LA,at)},this.t=function(LA,at){return this.Q(UA+("Q"===zA?UA-HA:0),PA+("Q"===zA?PA-$A:0),UA+LA,PA+at)},this.A=function(LA,at,VA,dt,St,Ut,kt){if(CA(LA,0)||CA(at,0))this.addCommand(["line",!0,!0,Ut,kt]);else{VA*=Math.PI/180,LA=Math.abs(LA),at=Math.abs(at),dt=1*!!dt,St=1*!!St;var Wt=Math.cos(VA)*(UA-Ut)/2+Math.sin(VA)*(PA-kt)/2,te=Math.cos(VA)*(PA-kt)/2-Math.sin(VA)*(UA-Ut)/2,wt=Wt*Wt/(LA*LA)+te*te/(at*at);wt>1&&(LA*=Math.sqrt(wt),at*=Math.sqrt(wt));var Pt=Math.sqrt(Math.max(0,LA*LA*at*at-LA*LA*te*te-at*at*Wt*Wt)/(LA*LA*te*te+at*at*Wt*Wt)),jt=(dt===St?-1:1)*Pt*LA*te/at,Ht=(dt===St?1:-1)*Pt*at*Wt/LA,ce=Math.cos(VA)*jt-Math.sin(VA)*Ht+(UA+Ut)/2,Zt=Math.sin(VA)*jt+Math.cos(VA)*Ht+(PA+kt)/2,ue=Math.atan2((te-Ht)/at,(Wt-jt)/LA),ge=Math.atan2((-te-Ht)/at,(-Wt-jt)/LA);0===St&&ge-ue>0?ge-=2*Math.PI:1===St&&ge-ue<0&&(ge+=2*Math.PI);for(var ve=Math.ceil(Math.abs(ge-ue)/(Math.PI/Ln)),Ge=0;GeLA[2]&&(LA[2]=dt[2]),dt[1]LA[3]&&(LA[3]=dt[3]);return LA[0]===1/0&&(LA[0]=0),LA[1]===1/0&&(LA[1]=0),LA[2]===-1/0&&(LA[2]=0),LA[3]===-1/0&&(LA[3]=0),LA},this.getPointAtLength=function(LA){if(LA>=0&&LA<=this.totalLength){for(var at,VA=0;VAPA.selector.specificity||(YA[zA]=PA.css[zA],tt[zA]=PA.selector.specificity)}return YA}(YA),this.allowedChildren=[],this.attr=function(zA){if("function"==typeof YA.getAttribute)return YA.getAttribute(zA)},this.resolveUrl=function(zA){var HA=(zA||"").match(/^\s*(?:url\("(.*)#(.*)"\)|url\('(.*)#(.*)'\)|url\((.*)#(.*)\)|(.*)#(.*))\s*$/)||[],$A=HA[1]||HA[3]||HA[5]||HA[7],LA=HA[2]||HA[4]||HA[6]||HA[8];if(LA){if(!$A){var at=l.getElementById(LA);if(at)return-1===this.stack.indexOf(at)?at:void ne('SVGtoPDF: loop of circular references for id "'+LA+'"')}if(Xe){var VA=Jt[$A];if(!VA){(function XA(ZA){return"object"==typeof ZA&&null!==ZA&&"number"==typeof ZA.length})(VA=Xe($A))||(VA=[VA]);for(var dt=0;dt=0&&$A[3]>=0?$A:HA},this.getPercent=function(zA,HA){var $A=this.attr(zA),LA=new It(($A||"").trim()),dt=LA.matchNumber();return!dt||(LA.match("%")&&(dt*=.01),LA.matchAll())?HA:Math.max(0,Math.min(1,dt))},this.chooseValue=function(zA){for(var HA=0;HA=0&&(LA=VA);break;case"stroke-miterlimit":null!=(VA=parseFloat($A))&&VA>=1&&(LA=VA);break;case"word-spacing":case"letter-spacing":LA=this.computeLength($A,this.getViewport());break;case"stroke-dashoffset":if(null!=(LA=this.computeLength($A,this.getViewport()))&&LA<0)for(var te=this.get("stroke-dasharray"),wt=0;wt0?HA:this.ref?this.ref.getChildren():[]},this.getPaint=function(HA,$A,LA,at){var VA="userSpaceOnUse"!==this.attr("patternUnits"),dt="objectBoundingBox"===this.attr("patternContentUnits"),St=this.getLength("x",VA?1:this.getParentVWidth(),0),Ut=this.getLength("y",VA?1:this.getParentVHeight(),0),kt=this.getLength("width",VA?1:this.getParentVWidth(),0),Wt=this.getLength("height",VA?1:this.getParentVHeight(),0);dt&&!VA?(St=(St-HA[0])/(HA[2]-HA[0])||0,Ut=(Ut-HA[1])/(HA[3]-HA[1])||0,kt=kt/(HA[2]-HA[0])||0,Wt=Wt/(HA[3]-HA[1])||0):!dt&&VA&&(St=HA[0]+St*(HA[2]-HA[0]),Ut=HA[1]+Ut*(HA[3]-HA[1]),kt*=HA[2]-HA[0],Wt*=HA[3]-HA[1]);var te=this.getViewbox("viewBox",[0,0,kt,Wt]),Pt=cA(O((this.attr("preserveAspectRatio")||"").trim(),kt,Wt,te[2],te[3],0),[1,0,0,1,-te[0],-te[1]]),jt=q(this.attr("patternTransform"));if(dt&&(jt=cA([HA[2]-HA[0],0,0,HA[3]-HA[1],HA[0],HA[1]],jt)),(jt=_(jt=cA(jt,[1,0,0,1,St,Ut])))&&(Pt=_(Pt))&&(kt=bA(kt))&&(Wt=bA(Wt))){var Ht=w([0,0,kt,Wt]);return o.transform.apply(o,Pt),this.drawChildren(LA,at),Q(Ht),[m(Ht,kt,Wt,jt),$A]}return UA?[UA[0],UA[1]*$A]:void 0},this.getVWidth=function(){var HA="userSpaceOnUse"!==this.attr("patternUnits"),$A=this.getLength("width",HA?1:this.getParentVWidth(),0);return this.getViewbox("viewBox",[0,0,$A,0])[2]},this.getVHeight=function(){var HA="userSpaceOnUse"!==this.attr("patternUnits"),$A=this.getLength("height",HA?1:this.getParentVHeight(),0);return this.getViewbox("viewBox",[0,0,0,$A])[3]}},RA=function ZA(YA,tt,UA){rt.call(this,YA,tt),this.allowedChildren=["stop"],this.ref=function(){var HA=this.getUrl("href")||this.getUrl("xlink:href");if(HA&&HA.nodeName===YA.nodeName)return new ZA(HA,tt,UA)}.call(this);var PA=this.attr;this.attr=function(HA){var $A=PA.call(this,HA);return null!=$A||"href"===HA||"xlink:href"===HA?$A:this.ref?this.ref.attr(HA):null};var zA=this.getChildren;this.getChildren=function(){var HA=zA.call(this);return HA.length>0?HA:this.ref?this.ref.getChildren():[]},this.getPaint=function(HA,$A,LA,at){var VA=this.getChildren();if(0!==VA.length){if(1===VA.length){var dt=VA[0],St=dt.get("stop-color");return"none"===St?void 0:MA(St,dt.get("stop-opacity")*$A,at)}var te,wt,Pt,jt,Ht,ce,Ut="userSpaceOnUse"!==this.attr("gradientUnits"),kt=q(this.attr("gradientTransform")),Wt=this.attr("spreadMethod"),Zt=0,ue=0,ge=1;if(Ut&&(kt=cA([HA[2]-HA[0],0,0,HA[3]-HA[1],HA[0],HA[1]],kt)),kt=_(kt)){if("linearGradient"===this.name)wt=this.getLength("x1",Ut?1:this.getVWidth(),0),Pt=this.getLength("x2",Ut?1:this.getVWidth(),Ut?1:this.getVWidth()),jt=this.getLength("y1",Ut?1:this.getVHeight(),0),Ht=this.getLength("y2",Ut?1:this.getVHeight(),0);else{Pt=this.getLength("cx",Ut?1:this.getVWidth(),Ut?.5:.5*this.getVWidth()),Ht=this.getLength("cy",Ut?1:this.getVHeight(),Ut?.5:.5*this.getVHeight()),ce=this.getLength("r",Ut?1:this.getViewport(),Ut?.5:.5*this.getViewport()),wt=this.getLength("fx",Ut?1:this.getVWidth(),Pt),jt=this.getLength("fy",Ut?1:this.getVHeight(),Ht),ce<0&&ne("SvgElemGradient: negative r value");var ve=Math.sqrt(Math.pow(Pt-wt,2)+Math.pow(Ht-jt,2)),Ge=1;ve>ce&&(wt=Pt+(wt-Pt)*(Ge=ce/ve),jt=Ht+(jt-Ht)*Ge),ce=Math.max(ce,ve*Ge*1.000001)}if("reflect"===Wt||"repeat"===Wt){var Se=FA(kt),xe=gA([HA[0],HA[1]],Se),Ne=gA([HA[2],HA[1]],Se),_e=gA([HA[2],HA[3]],Se),Fn=gA([HA[0],HA[3]],Se);"linearGradient"===this.name?(Zt=Math.max((xe[0]-Pt)*(Pt-wt)+(xe[1]-Ht)*(Ht-jt),(Ne[0]-Pt)*(Pt-wt)+(Ne[1]-Ht)*(Ht-jt),(_e[0]-Pt)*(Pt-wt)+(_e[1]-Ht)*(Ht-jt),(Fn[0]-Pt)*(Pt-wt)+(Fn[1]-Ht)*(Ht-jt))/(Math.pow(Pt-wt,2)+Math.pow(Ht-jt,2)),ue=Math.max((xe[0]-wt)*(wt-Pt)+(xe[1]-jt)*(jt-Ht),(Ne[0]-wt)*(wt-Pt)+(Ne[1]-jt)*(jt-Ht),(_e[0]-wt)*(wt-Pt)+(_e[1]-jt)*(jt-Ht),(Fn[0]-wt)*(wt-Pt)+(Fn[1]-jt)*(jt-Ht))/(Math.pow(Pt-wt,2)+Math.pow(Ht-jt,2))):Zt=Math.sqrt(Math.max(Math.pow(xe[0]-Pt,2)+Math.pow(xe[1]-Ht,2),Math.pow(Ne[0]-Pt,2)+Math.pow(Ne[1]-Ht,2),Math.pow(_e[0]-Pt,2)+Math.pow(_e[1]-Ht,2),Math.pow(Fn[0]-Pt,2)+Math.pow(Fn[1]-Ht,2)))/ce-1,Zt=Math.ceil(Zt+.5),ge=(ue=Math.ceil(ue+.5))+1+Zt}te="linearGradient"===this.name?o.linearGradient(wt-ue*(Pt-wt),jt-ue*(Ht-jt),Pt+Zt*(Pt-wt),Ht+Zt*(Ht-jt)):o.radialGradient(wt,jt,0,Pt,Ht,ce+Zt*ce);for(var rn=0;rn0&&te.stop((rn+0)/ge,cn[0],cn[1]),te.stop((rn+Cn)/(Zt+ue+1),cn[0],cn[1]),an===VA.length-1&&Cn<1&&te.stop((rn+1)/ge,cn[0],cn[1])}return te.setTransform.apply(te,kt),[te,1]}return UA?[UA[0],UA[1]*$A]:void 0}}},rA=function(YA,tt){yA.call(this,YA,tt),this.dashScale=1,this.getBoundingShape=function(){return this.shape},this.getTransformation=function(){return this.get("transform")},this.drawInDocument=function(UA,PA){if("hidden"!==this.get("visibility")&&this.shape){if(o.save(),this.transform(),this.clip(),UA)this.shape.insertInDocument(),z(u.white),o.fill(this.get("clip-rule"));else{var HA;this.mask()&&(HA=w(DA()));var $A=this.shape.getSubPaths(),LA=this.getFill(UA,PA),at=this.getStroke(UA,PA),VA=this.get("stroke-width"),dt=this.get("stroke-linecap");if(LA||at){if(LA&&z(LA),at){for(var St=0;St<$A.length;St++)if(CA($A[St].totalLength,0)&&("square"===dt||"round"===dt)&&VA>0&&$A[St].startPoint&&$A[St].startPoint.length>1){var Ut=$A[St].startPoint[0],kt=$A[St].startPoint[1];z(at),"square"===dt?o.rect(Ut-.5*VA,kt-.5*VA,VA,VA):"round"===dt&&o.circle(Ut,kt,.5*VA),o.fill()}var Wt=this.get("stroke-dasharray"),te=this.get("stroke-dashoffset");if(SA(this.dashScale,1)){for(var wt=0;wt0&&$A[Pt].insertInDocument();LA&&at?o.fillAndStroke(this.get("fill-rule")):LA?o.fill(this.get("fill-rule")):at&&o.stroke()}var jt=this.get("marker-start"),Ht=this.get("marker-mid"),ce=this.get("marker-end");if("none"!==jt||"none"!==Ht||"none"!==ce){var Zt=this.shape.getMarkers();if("none"!==jt&&new st(jt,null).drawMarker(!1,PA,Zt[0],VA),"none"!==Ht)for(var ge=1;ge0&&HA>0?$A&&LA?($A=Math.min($A,.5*zA),LA=Math.min(LA,.5*HA),this.shape=(new WA).M(UA+$A,PA).L(UA+zA-$A,PA).A($A,LA,0,0,1,UA+zA,PA+LA).L(UA+zA,PA+HA-LA).A($A,LA,0,0,1,UA+zA-$A,PA+HA).L(UA+$A,PA+HA).A($A,LA,0,0,1,UA,PA+HA-LA).L(UA,PA+LA).A($A,LA,0,0,1,UA+$A,PA).Z()):this.shape=(new WA).M(UA,PA).L(UA+zA,PA).L(UA+zA,PA+HA).L(UA,PA+HA).Z():this.shape=new WA},Ft=function(YA,tt){rA.call(this,YA,tt);var UA=this.getLength("cx",this.getVWidth(),0),PA=this.getLength("cy",this.getVHeight(),0),zA=this.getLength("r",this.getViewport(),0);this.shape=zA>0?(new WA).M(UA+zA,PA).A(zA,zA,0,0,1,UA-zA,PA).A(zA,zA,0,0,1,UA+zA,PA).Z():new WA},j=function(YA,tt){rA.call(this,YA,tt);var UA=this.getLength("cx",this.getVWidth(),0),PA=this.getLength("cy",this.getVHeight(),0),zA=this.getLength("rx",this.getVWidth(),0),HA=this.getLength("ry",this.getVHeight(),0);this.shape=zA>0&&HA>0?(new WA).M(UA+zA,PA).A(zA,HA,0,0,1,UA-zA,PA).A(zA,HA,0,0,1,UA+zA,PA).Z():new WA},kA=function(YA,tt){rA.call(this,YA,tt);var UA=this.getLength("x1",this.getVWidth(),0),PA=this.getLength("y1",this.getVHeight(),0),zA=this.getLength("x2",this.getVWidth(),0),HA=this.getLength("y2",this.getVHeight(),0);this.shape=(new WA).M(UA,PA).L(zA,HA)},At=function(YA,tt){rA.call(this,YA,tt);var UA=this.getNumberList("points");this.shape=new WA;for(var PA=0;PA0?UA:void 0,this.dashScale=void 0!==this.pathLength?this.shape.totalLength/this.pathLength:1},st=function(YA,tt){Mt.call(this,YA,tt);var UA=this.getLength("markerWidth",this.getParentVWidth(),3),PA=this.getLength("markerHeight",this.getParentVHeight(),3),zA=this.getViewbox("viewBox",[0,0,UA,PA]);this.getVWidth=function(){return zA[2]},this.getVHeight=function(){return zA[3]},this.drawMarker=function(HA,$A,LA,at){o.save();var VA=this.attr("orient"),dt=this.attr("markerUnits"),St="auto"===VA?LA[2]:(parseFloat(VA)||0)*Math.PI/180,Ut="userSpaceOnUse"===dt?1:at;o.transform(Math.cos(St)*Ut,Math.sin(St)*Ut,-Math.sin(St)*Ut,Math.cos(St)*Ut,LA[0],LA[1]);var wt,kt=this.getLength("refX",this.getVWidth(),0),Wt=this.getLength("refY",this.getVHeight(),0),te=O(this.attr("preserveAspectRatio"),UA,PA,zA[2],zA[3],.5);"hidden"===this.get("overflow")&&o.rect(te[0]*(zA[0]+zA[2]/2-kt)-UA/2,te[3]*(zA[1]+zA[3]/2-Wt)-PA/2,UA,PA).clip(),o.transform.apply(o,te),o.translate(-kt,-Wt),this.get("opacity")<1&&!HA&&(wt=w(DA())),this.drawChildren(HA,$A),wt&&(Q(wt),o.fillOpacity(this.get("opacity")),p(wt)),o.restore()}},Lt=function(YA,tt){Mt.call(this,YA,tt),this.useMask=function(UA){var PA=w(DA());o.save(),"objectBoundingBox"===this.attr("clipPathUnits")&&o.transform(UA[2]-UA[0],0,0,UA[3]-UA[1],UA[0],UA[1]),this.clip(),this.drawChildren(!0,!1),o.restore(),Q(PA),S(PA,!0)}},Dt=function(YA,tt){Mt.call(this,YA,tt),this.useMask=function(UA){var zA,HA,$A,LA,PA=w(DA());o.save(),"userSpaceOnUse"===this.attr("maskUnits")?(zA=this.getLength("x",this.getVWidth(),-.1*(UA[2]-UA[0])+UA[0]),HA=this.getLength("y",this.getVHeight(),-.1*(UA[3]-UA[1])+UA[1]),$A=this.getLength("width",this.getVWidth(),1.2*(UA[2]-UA[0])),LA=this.getLength("height",this.getVHeight(),1.2*(UA[3]-UA[1]))):(zA=this.getLength("x",this.getVWidth(),-.1)*(UA[2]-UA[0])+UA[0],HA=this.getLength("y",this.getVHeight(),-.1)*(UA[3]-UA[1])+UA[1],$A=this.getLength("width",this.getVWidth(),1.2)*(UA[2]-UA[0]),LA=this.getLength("height",this.getVHeight(),1.2)*(UA[3]-UA[1])),o.rect(zA,HA,$A,LA).clip(),"objectBoundingBox"===this.attr("maskContentUnits")&&o.transform(UA[2]-UA[0],0,0,UA[3]-UA[1],UA[0],UA[1]),this.clip(),this.drawChildren(!1,!0),o.restore(),Q(PA),S(PA,!0)}},Rt=function(YA,tt){yA.call(this,YA,tt),this.allowedChildren=["tspan","#text","#cdata-section","a"],this.isText=!0,this.getBoundingShape=function(){for(var UA=new WA,PA=0;PA Tj")}o.addContent("ET")}}}"line-through"===this.get("text-decoration")&&this.decorate(.05*this._font.size,.5*(GA(this._font.font,this._font.size)+et(this._font.font,this._font.size)),UA,PA)},this.decorate=function(UA,PA,zA,HA){var $A=this.getFill(zA,HA),LA=this.getStroke(zA,HA);$A&&z($A),LA&&(b(LA),o.lineWidth(this.get("stroke-width")).miterLimit(this.get("stroke-miterlimit")).lineJoin(this.get("stroke-linejoin")).lineCap(this.get("stroke-linecap")).dash(this.get("stroke-dasharray"),{phase:this.get("stroke-dashoffset")}));for(var at=0,VA=this._pos;at0?HA:this.pathObject.totalLength,this.pathScale=this.pathObject.totalLength/this.pathLength}else if((zA=this.getUrl("href")||this.getUrl("xlink:href"))&&"path"===zA.nodeName){var $A=new KA(zA,this);this.pathObject=$A.shape.clone().transform($A.get("transform")),this.pathLength=this.chooseValue($A.pathLength,this.pathObject.totalLength),this.pathScale=this.pathObject.totalLength/this.pathLength}},Ae=function(YA,tt){Rt.call(this,YA,tt),this.allowedChildren=["textPath","tspan","#text","#cdata-section","a"],function(UA){var LA,at,PA="",zA=YA.textContent,HA=[],$A=[],VA=0,dt=0;function St(){if($A.length)for(var wt=$A[$A.length-1],Ht={startltr:0,middleltr:.5,endltr:1,startrtl:1,middlertl:.5,endrtl:0}[LA+at]*(wt.x+wt.width-$A[0].x)||0,ce=0;ce<$A.length;ce++)$A[ce].x-=Ht;$A=[]}function Wt(wt){var Pt=wt.pathObject,jt=wt.pathLength,Ht=wt.pathScale;if(Pt)for(var ce=wt.getLength("startOffset",jt,0),Zt=0;Ztjt||ue<0)wt._pos[Zt].hidden=!0;else{var ge=Pt.getPointAtLength(ue*Ht);SA(Ht,1)&&(wt._pos[Zt].scale*=Ht,wt._pos[Zt].width*=Ht),wt._pos[Zt].x=ge[0]-.5*wt._pos[Zt].width*Math.cos(ge[2])-wt._pos[Zt].y*Math.sin(ge[2]),wt._pos[Zt].y=ge[1]-.5*wt._pos[Zt].width*Math.sin(ge[2])+wt._pos[Zt].y*Math.cos(ge[2]),wt._pos[Zt].rotate=ge[2]+wt._pos[Zt].rotate,wt._pos[Zt].continuous=!1}}else for(var ve=0;ve0&&ge<1/0)for(var ve=0;ve=2)for(var Ge=(Pt-(ue-Zt))/(wt.length-1),Se=0;Se0?p-4:p;for(D=0;D>16&255,m[d++]=w>>8&255,m[d++]=255&w;return 2===S&&(w=c[B.charCodeAt(D)]<<2|c[B.charCodeAt(D+1)]>>4,m[d++]=255&w),1===S&&(w=c[B.charCodeAt(D)]<<10|c[B.charCodeAt(D+1)]<<4|c[B.charCodeAt(D+2)]>>2,m[d++]=w>>8&255,m[d++]=255&w),m},I.fromByteArray=function f(B){for(var w,Q=B.length,p=Q%3,S=[],m=16383,d=0,v=Q-p;dv?v:d+m));return 1===p?S.push(n[(w=B[Q-1])>>2]+n[w<<4&63]+"=="):2===p&&S.push(n[(w=(B[Q-2]<<8)+B[Q-1])>>10]+n[w>>4&63]+n[w<<2&63]+"="),S.join("")};for(var n=[],c=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,h=o.length;l0)throw new Error("Invalid string. Length must be a multiple of 4");var Q=B.indexOf("=");return-1===Q&&(Q=w),[Q,Q===w?0:4-Q%4]}function C(B){return n[B>>18&63]+n[B>>12&63]+n[B>>6&63]+n[63&B]}function e(B,w,Q){for(var S=[],m=w;m0},o.prototype.readMoreInput=function(){if(!(this.bit_end_pos_>256))if(this.eos_){if(this.bit_pos_>this.bit_end_pos_)throw new Error("Unexpected end of input "+this.bit_pos_+" "+this.bit_end_pos_)}else{var l=this.buf_ptr_,h=this.input_.read(this.buf_,l,I);if(h<0)throw new Error("Unexpected end of input");if(h=8;)this.val_>>>=8,this.val_|=this.buf_[8191&this.pos_]<<24,++this.pos_,this.bit_pos_=this.bit_pos_-8>>>0,this.bit_end_pos_=this.bit_end_pos_-8>>>0},o.prototype.readBits=function(l){32-this.bit_pos_>>this.bit_pos_&i[l];return this.bit_pos_+=l,h},Y.exports=o},7080:function(Y,I){I.lookup=new Uint8Array([0,0,0,0,0,0,0,0,0,4,4,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,12,16,12,12,20,12,16,24,28,12,12,32,12,36,12,44,44,44,44,44,44,44,44,44,44,32,32,24,40,28,12,12,48,52,52,52,48,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,24,12,28,12,12,12,56,60,60,60,56,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,24,12,28,12,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,56,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,26,26,27,27,27,27,28,28,28,28,29,29,29,29,30,30,30,30,31,31,31,31,32,32,32,32,33,33,33,33,34,34,34,34,35,35,35,35,36,36,36,36,37,37,37,37,38,38,38,38,39,39,39,39,40,40,40,40,41,41,41,41,42,42,42,42,43,43,43,43,44,44,44,44,45,45,45,45,46,46,46,46,47,47,47,47,48,48,48,48,49,49,49,49,50,50,50,50,51,51,51,51,52,52,52,52,53,53,53,53,54,54,54,54,55,55,55,55,56,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,61,61,61,61,62,62,62,62,63,63,63,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),I.lookupOffsets=new Uint16Array([1024,1536,1280,1536,0,256,768,512])},6450:function(Y,I,n){var i=n(6154).g,o=n(6154).j,l=n(4181),h=n(5139),a=n(966).h,g=n(966).g,E=n(7080),u=n(8435),C=n(2973),v=1080,U=new Uint8Array([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),F=new Uint8Array([3,2,1,0,3,3,3,3,3,3,2,2,2,2,2,2]),z=new Int8Array([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),b=new Uint16Array([256,402,436,468,500,534,566,598,630,662,694,726,758,790,822,854,886,920,952,984,1016,1048,1080]);function Z($){var W;return 0===$.readBits(1)?16:(W=$.readBits(3))>0?17+W:(W=$.readBits(3))>0?8+W:17}function aA($){if($.readBits(1)){var W=$.readBits(3);return 0===W?1:$.readBits(W)+(1<1&&0===EA)throw new Error("Invalid size byte");W.meta_block_length|=EA<<8*nA}}else for(nA=0;nA4&&0===GA)throw new Error("Invalid size nibble");W.meta_block_length|=GA<<4*nA}return++W.meta_block_length,!W.input_end&&!W.is_metadata&&(W.is_uncompressed=$.readBits(1)),W}function MA($,W,hA){var nA;return hA.fillBitWindow(),(nA=$[W+=hA.val_>>>hA.bit_pos_&255].bits-8)>0&&(hA.bit_pos_+=8,W+=$[W].value,W+=hA.val_>>>hA.bit_pos_&(1<>=1,++TA;for(et=0;et0;++et){var Mt,rt=U[et],yA=0;mA.fillBitWindow(),mA.bit_pos_+=WA[yA+=mA.val_>>>mA.bit_pos_&15].bits,It[rt]=Mt=WA[yA].value,0!==Mt&&(ft-=32>>Mt,++JA)}if(1!==JA&&0!==ft)throw new Error("[ReadHuffmanCode] invalid num_codes or space");!function cA($,W,hA,mA){for(var nA=0,EA=8,GA=0,et=0,ot=32768,TA=[],it=0;it<32;it++)TA.push(new a(0,0));for(g(TA,0,5,$,18);nA0;){var It,mt=0;if(mA.readMoreInput(),mA.fillBitWindow(),mA.bit_pos_+=TA[mt+=mA.val_>>>mA.bit_pos_&31].bits,(It=255&TA[mt].value)<16)GA=0,hA[nA++]=It,0!==It&&(EA=It,ot-=32768>>It);else{var JA,WA,ft=It-14,rt=0;if(16===It&&(rt=EA),et!==rt&&(GA=0,et=rt),JA=GA,GA>0&&(GA-=2,GA<<=ft),nA+(WA=(GA+=mA.readBits(ft)+3)-JA)>W)throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");for(var yA=0;yA>>5]),this.htrees=new Uint32Array(W)}function uA($,W){var EA,GA,hA={num_htrees:null,context_map:null},nA=0;W.readMoreInput();var et=hA.num_htrees=aA(W)+1,ot=hA.context_map=new Uint8Array($);if(et<=1)return hA;for(W.readBits(1)&&(nA=W.readBits(4)+1),EA=[],GA=0;GA=$)throw new Error("[DecodeContextMap] i >= context_map_size");ot[GA]=0,++GA}else ot[GA]=TA-nA,++GA}return W.readBits(1)&&function _($,W){var mA,hA=new Uint8Array(256);for(mA=0;mA<256;++mA)hA[mA]=mA;for(mA=0;mA=$&&(it-=$),mA[hA]=it,nA[et+(1&EA[ot])]=it,++EA[ot]}function SA($,W,hA,mA,nA,EA){var TA,GA=nA+1,et=hA&nA,ot=EA.pos_&l.IBUF_MASK;if(W<8||EA.bit_pos_+(W<<3)0;)EA.readMoreInput(),mA[et++]=EA.readBits(8),et===GA&&($.write(mA,GA),et=0);else{if(EA.bit_end_pos_<32)throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");for(;EA.bit_pos_<32;)mA[et]=EA.val_>>>EA.bit_pos_,EA.bit_pos_+=8,++et,--W;if(ot+(TA=EA.bit_end_pos_-EA.bit_pos_>>3)>l.IBUF_MASK){for(var it=l.IBUF_MASK+1-ot,mt=0;mt=GA)for($.write(mA,GA),et-=GA,mt=0;mt=GA;){if(EA.input_.read(mA,et,TA=GA-et)W.buffer.length){var ne=new Uint8Array(mA+H);ne.set(W.buffer),W.buffer=ne}if(nA=xn.input_end,k=xn.is_uncompressed,xn.is_metadata)for(bA(ht);H>0;--H)ht.readMoreInput(),ht.readBits(8);else if(0!==H){if(k){ht.bit_pos_=ht.bit_pos_+7&-8,SA(W,H,mA,it,TA,ht),mA+=H;continue}for(hA=0;hA<3;++hA)wA[hA]=aA(ht)+1,wA[hA]>=2&&(gA(wA[hA]+2,yA,hA*v,ht),gA(26,Mt,hA*v,ht),R[hA]=BA(Mt,hA*v,ht),rA[hA]=1);for(ht.readMoreInput(),j=(1<<(ct=ht.readBits(2)))-1,kA=(Ft=16+(ht.readBits(4)<0;){var en,Xe,Ln,bn,Jt,bt,Xt,oe,pn,Yn,jn,Br;for(ht.readMoreInput(),0===R[1]&&(CA(wA[1],yA,1,QA,RA,rA,ht),R[1]=BA(Mt,v,ht),yn=rt[1].htrees[QA[1]]),--R[1],(Xe=(en=MA(rt[1].codes,yn,ht))>>6)>=2?(Xe-=2,Xt=-1):Xt=0,bn=u.kCopyRangeLut[Xe]+(7&en),Jt=u.kInsertLengthPrefixCode[Ln=u.kInsertRangeLut[Xe]+(en>>3&7)].offset+ht.readBits(u.kInsertLengthPrefixCode[Ln].nbits),bt=u.kCopyLengthPrefixCode[bn].offset+ht.readBits(u.kCopyLengthPrefixCode[bn].nbits),JA=it[mA-1&TA],WA=it[mA-2&TA],pn=0;pn4?3:bt-2))]],ht))>=Ft&&(Br=(Xt-=Ft)&j,Xt=Ft+((Tn=(2+(1&(Xt>>=ct))<<(jn=1+(Xt>>1)))-4)+ht.readBits(jn)<(et=mA=h.minDictionaryWordLength&&bt<=h.maxDictionaryWordLength))throw new Error("Invalid backward reference. pos: "+mA+" distance: "+oe+" len: "+bt+" bytes left: "+H);var Tn=h.offsetsByLength[bt],ZA=oe-et-1,YA=h.sizeBitsByLength[bt],PA=ZA>>YA;if(Tn+=(ZA&(1<=mt){W.write(it,ot);for(var HA=0;HA0&&(It[3&ft]=oe,++ft),bt>H)throw new Error("Invalid backward reference. pos: "+mA+" distance: "+oe+" len: "+bt+" bytes left: "+H);for(pn=0;pn>=1;return(h&g-1)+g}function o(h,a,g,E,u){do{h[a+(E-=g)]=new n(u.bits,u.value)}while(E>0)}function l(h,a,g){for(var E=1<0;--U[f])o(h,a+w,Q,d,new n(255&f,65535&D[B++])),w=i(w,f);for(S=v-1,p=-1,f=g+1,Q=2;f<=c;++f,Q<<=1)for(;U[f]>0;--U[f])(w&S)!==p&&(a+=d,v+=d=1<<(m=l(U,f,g)),h[C+(p=w&S)]=new n(m+g&255,a-C-p&65535)),o(h,a+(w>>g),Q,d,new n(f-g&255,65535&D[B++])),w=i(w,f);return v}},8435:function(Y,I){function n(c,i){this.offset=c,this.nbits=i}I.kBlockLengthPrefixCode=[new n(1,2),new n(5,2),new n(9,2),new n(13,2),new n(17,3),new n(25,3),new n(33,3),new n(41,3),new n(49,4),new n(65,4),new n(81,4),new n(97,4),new n(113,5),new n(145,5),new n(177,5),new n(209,5),new n(241,6),new n(305,6),new n(369,7),new n(497,8),new n(753,9),new n(1265,10),new n(2289,11),new n(4337,12),new n(8433,13),new n(16625,24)],I.kInsertLengthPrefixCode=[new n(0,0),new n(1,0),new n(2,0),new n(3,0),new n(4,0),new n(5,0),new n(6,1),new n(8,1),new n(10,2),new n(14,2),new n(18,3),new n(26,3),new n(34,4),new n(50,4),new n(66,5),new n(98,5),new n(130,6),new n(194,7),new n(322,8),new n(578,9),new n(1090,10),new n(2114,12),new n(6210,14),new n(22594,24)],I.kCopyLengthPrefixCode=[new n(2,0),new n(3,0),new n(4,0),new n(5,0),new n(6,0),new n(7,0),new n(8,0),new n(9,0),new n(10,1),new n(12,1),new n(14,2),new n(18,2),new n(22,3),new n(30,3),new n(38,4),new n(54,4),new n(70,5),new n(102,5),new n(134,6),new n(198,7),new n(326,8),new n(582,9),new n(1094,10),new n(2118,24)],I.kInsertRangeLut=[0,0,8,8,0,16,8,16,16],I.kCopyRangeLut=[0,8,0,8,16,0,16,8,16]},6154:function(Y,I){function n(i){this.buffer=i,this.pos=0}function c(i){this.buffer=i,this.pos=0}n.prototype.read=function(i,o,l){this.pos+l>this.buffer.length&&(l=this.buffer.length-this.pos);for(var h=0;hthis.buffer.length)throw new Error("Output buffer is not large enough");return this.buffer.set(i.subarray(0,o),this.pos),this.pos+=o,o},I.j=c},2973:function(Y,I,n){var c=n(5139),f=10,B=11;function T(b,Z,aA){this.prefix=new Uint8Array(b.length),this.transform=Z,this.suffix=new Uint8Array(aA.length);for(var AA=0;AA'),new T("",0,"\n"),new T("",3,""),new T("",0,"]"),new T("",0," for "),new T("",14,""),new T("",2,""),new T("",0," a "),new T("",0," that "),new T(" ",f,""),new T("",0,". "),new T(".",0,""),new T(" ",0,", "),new T("",15,""),new T("",0," with "),new T("",0,"'"),new T("",0," from "),new T("",0," by "),new T("",16,""),new T("",17,""),new T(" the ",0,""),new T("",4,""),new T("",0,". The "),new T("",B,""),new T("",0," on "),new T("",0," as "),new T("",0," is "),new T("",7,""),new T("",1,"ing "),new T("",0,"\n\t"),new T("",0,":"),new T(" ",0,". "),new T("",0,"ed "),new T("",20,""),new T("",18,""),new T("",6,""),new T("",0,"("),new T("",f,", "),new T("",8,""),new T("",0," at "),new T("",0,"ly "),new T(" the ",0," of "),new T("",5,""),new T("",9,""),new T(" ",f,", "),new T("",f,'"'),new T(".",0,"("),new T("",B," "),new T("",f,'">'),new T("",0,'="'),new T(" ",0,"."),new T(".com/",0,""),new T(" the ",0," of the "),new T("",f,"'"),new T("",0,". This "),new T("",0,","),new T(".",0," "),new T("",f,"("),new T("",f,"."),new T("",0," not "),new T(" ",0,'="'),new T("",0,"er "),new T(" ",B," "),new T("",0,"al "),new T(" ",B,""),new T("",0,"='"),new T("",B,'"'),new T("",f,". "),new T(" ",0,"("),new T("",0,"ful "),new T(" ",f,". "),new T("",0,"ive "),new T("",0,"less "),new T("",B,"'"),new T("",0,"est "),new T(" ",f,"."),new T("",B,'">'),new T(" ",0,"='"),new T("",f,","),new T("",0,"ize "),new T("",B,"."),new T("\xc2\xa0",0,""),new T(" ",0,","),new T("",f,'="'),new T("",B,'="'),new T("",0,"ous "),new T("",B,", "),new T("",f,"='"),new T(" ",f,","),new T(" ",B,'="'),new T(" ",B,", "),new T("",B,","),new T("",B,"("),new T("",B,". "),new T(" ",B,"."),new T("",B,"='"),new T(" ",B,". "),new T(" ",f,'="'),new T(" ",B,"='"),new T(" ",f,"='")];function z(b,Z){return b[Z]<192?(b[Z]>=97&&b[Z]<=122&&(b[Z]^=32),1):b[Z]<224?(b[Z+1]^=32,2):(b[Z+2]^=5,3)}I.kTransforms=F,I.kNumTransforms=F.length,I.transformDictionaryWord=function(b,Z,aA,AA,lA){var _,MA=F[lA].prefix,cA=F[lA].suffix,gA=F[lA].transform,BA=gA<12?0:gA-11,DA=0,FA=Z;BA>AA&&(BA=AA);for(var dA=0;dA0;){var uA=z(b,_);_+=uA,AA-=uA}for(var CA=0;CAI.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=f,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}e.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,o(this.init_done,"close before init"),o(this.mode<=I.UNZIP),this.mode===I.DEFLATE||this.mode===I.GZIP||this.mode===I.DEFLATERAW?h.deflateEnd(this.strm):(this.mode===I.INFLATE||this.mode===I.GUNZIP||this.mode===I.INFLATERAW||this.mode===I.UNZIP)&&a.inflateEnd(this.strm),this.mode=I.NONE,this.dictionary=null)},e.prototype.write=function(f,B,w,Q,p,S,m){return this._write(!0,f,B,w,Q,p,S,m)},e.prototype.writeSync=function(f,B,w,Q,p,S,m){return this._write(!1,f,B,w,Q,p,S,m)},e.prototype._write=function(f,B,w,Q,p,S,m,d){if(o.equal(arguments.length,8),o(this.init_done,"write before init"),o(this.mode!==I.NONE,"already finalized"),o.equal(!1,this.write_in_progress,"write already in progress"),o.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,o.equal(!1,void 0===B,"must provide flush value"),this.write_in_progress=!0,B!==I.Z_NO_FLUSH&&B!==I.Z_PARTIAL_FLUSH&&B!==I.Z_SYNC_FLUSH&&B!==I.Z_FULL_FLUSH&&B!==I.Z_FINISH&&B!==I.Z_BLOCK)throw new Error("Invalid flush value");if(null==w&&(w=c.alloc(0),p=0,Q=0),this.strm.avail_in=p,this.strm.input=w,this.strm.next_in=Q,this.strm.avail_out=d,this.strm.output=S,this.strm.next_out=m,this.flush=B,!f)return this._process(),this._checkError()?this._afterSync():void 0;var v=this;return i.nextTick(function(){v._process(),v._after()}),this},e.prototype._afterSync=function(){var f=this.strm.avail_out,B=this.strm.avail_in;return this.write_in_progress=!1,[B,f]},e.prototype._process=function(){var f=null;switch(this.mode){case I.DEFLATE:case I.GZIP:case I.DEFLATERAW:this.err=h.deflate(this.strm,this.flush);break;case I.UNZIP:switch(this.strm.avail_in>0&&(f=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===f)break;if(31!==this.strm.input[f]){this.mode=I.INFLATE;break}if(this.gzip_id_bytes_read=1,f++,1===this.strm.avail_in)break;case 1:if(null===f)break;139===this.strm.input[f]?(this.gzip_id_bytes_read=2,this.mode=I.GUNZIP):this.mode=I.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case I.INFLATE:case I.GUNZIP:case I.INFLATERAW:for(this.err=a.inflate(this.strm,this.flush),this.err===I.Z_NEED_DICT&&this.dictionary&&(this.err=a.inflateSetDictionary(this.strm,this.dictionary),this.err===I.Z_OK?this.err=a.inflate(this.strm,this.flush):this.err===I.Z_DATA_ERROR&&(this.err=I.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===I.GUNZIP&&this.err===I.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=a.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},e.prototype._checkError=function(){switch(this.err){case I.Z_OK:case I.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===I.Z_FINISH)return this._error("unexpected end of file"),!1;break;case I.Z_STREAM_END:break;case I.Z_NEED_DICT:return this._error(null==this.dictionary?"Missing dictionary":"Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},e.prototype._after=function(){if(this._checkError()){var f=this.strm.avail_out,B=this.strm.avail_in;this.write_in_progress=!1,this.callback(B,f),this.pending_close&&this.close()}},e.prototype._error=function(f){this.strm.msg&&(f=this.strm.msg),this.onerror(f,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},e.prototype.init=function(f,B,w,Q,p){o(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),o(f>=8&&f<=15,"invalid windowBits"),o(B>=-1&&B<=9,"invalid compression level"),o(w>=1&&w<=9,"invalid memlevel"),o(Q===I.Z_FILTERED||Q===I.Z_HUFFMAN_ONLY||Q===I.Z_RLE||Q===I.Z_FIXED||Q===I.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(B,f,w,Q,p),this._setDictionary()},e.prototype.params=function(){throw new Error("deflateParams Not supported")},e.prototype.reset=function(){this._reset(),this._setDictionary()},e.prototype._init=function(f,B,w,Q,p){switch(this.level=f,this.windowBits=B,this.memLevel=w,this.strategy=Q,this.flush=I.Z_NO_FLUSH,this.err=I.Z_OK,(this.mode===I.GZIP||this.mode===I.GUNZIP)&&(this.windowBits+=16),this.mode===I.UNZIP&&(this.windowBits+=32),(this.mode===I.DEFLATERAW||this.mode===I.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new l,this.mode){case I.DEFLATE:case I.GZIP:case I.DEFLATERAW:this.err=h.deflateInit2(this.strm,this.level,I.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case I.INFLATE:case I.GUNZIP:case I.INFLATERAW:case I.UNZIP:this.err=a.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==I.Z_OK&&this._error("Init error"),this.dictionary=p,this.write_in_progress=!1,this.init_done=!0},e.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=I.Z_OK,this.mode){case I.DEFLATE:case I.DEFLATERAW:this.err=h.deflateSetDictionary(this.strm,this.dictionary)}this.err!==I.Z_OK&&this._error("Failed to set dictionary")}},e.prototype._reset=function(){switch(this.err=I.Z_OK,this.mode){case I.DEFLATE:case I.DEFLATERAW:case I.GZIP:this.err=h.deflateReset(this.strm);break;case I.INFLATE:case I.INFLATERAW:case I.GUNZIP:this.err=a.inflateReset(this.strm)}this.err!==I.Z_OK&&this._error("Failed to reset stream")},I.Zlib=e},2635:function(Y,I,n){"use strict";var c=n(4155),i=n(8823).Buffer,o=n(2830).Transform,l=n(4505),h=n(9539),a=n(9282).ok,g=n(8823).kMaxLength,E="Cannot create final Buffer. It would be larger than 0x"+g.toString(16)+" bytes";l.Z_MIN_WINDOWBITS=8,l.Z_MAX_WINDOWBITS=15,l.Z_DEFAULT_WINDOWBITS=15,l.Z_MIN_CHUNK=64,l.Z_MAX_CHUNK=1/0,l.Z_DEFAULT_CHUNK=16384,l.Z_MIN_MEMLEVEL=1,l.Z_MAX_MEMLEVEL=9,l.Z_DEFAULT_MEMLEVEL=8,l.Z_MIN_LEVEL=-1,l.Z_MAX_LEVEL=9,l.Z_DEFAULT_LEVEL=l.Z_DEFAULT_COMPRESSION;for(var u=Object.keys(l),C=0;C=g?dA=new RangeError(E):_=i.concat(cA,gA),cA=[],AA.close(),MA(dA,_)}AA.on("error",function DA(_){AA.removeListener("end",FA),AA.removeListener("readable",BA),MA(_)}),AA.on("end",FA),AA.end(lA),BA()}function S(AA,lA){if("string"==typeof lA&&(lA=i.from(lA)),!i.isBuffer(lA))throw new TypeError("Not a string or buffer");return AA._processChunk(lA,AA._finishFlushFlag)}function m(AA){if(!(this instanceof m))return new m(AA);b.call(this,AA,l.DEFLATE)}function d(AA){if(!(this instanceof d))return new d(AA);b.call(this,AA,l.INFLATE)}function v(AA){if(!(this instanceof v))return new v(AA);b.call(this,AA,l.GZIP)}function D(AA){if(!(this instanceof D))return new D(AA);b.call(this,AA,l.GUNZIP)}function U(AA){if(!(this instanceof U))return new U(AA);b.call(this,AA,l.DEFLATERAW)}function T(AA){if(!(this instanceof T))return new T(AA);b.call(this,AA,l.INFLATERAW)}function F(AA){if(!(this instanceof F))return new F(AA);b.call(this,AA,l.UNZIP)}function z(AA){return AA===l.Z_NO_FLUSH||AA===l.Z_PARTIAL_FLUSH||AA===l.Z_SYNC_FLUSH||AA===l.Z_FULL_FLUSH||AA===l.Z_FINISH||AA===l.Z_BLOCK}function b(AA,lA){var MA=this;if(this._opts=AA=AA||{},this._chunkSize=AA.chunkSize||I.Z_DEFAULT_CHUNK,o.call(this,AA),AA.flush&&!z(AA.flush))throw new Error("Invalid flush flag: "+AA.flush);if(AA.finishFlush&&!z(AA.finishFlush))throw new Error("Invalid flush flag: "+AA.finishFlush);if(this._flushFlag=AA.flush||l.Z_NO_FLUSH,this._finishFlushFlag=void 0!==AA.finishFlush?AA.finishFlush:l.Z_FINISH,AA.chunkSize&&(AA.chunkSizeI.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+AA.chunkSize);if(AA.windowBits&&(AA.windowBitsI.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+AA.windowBits);if(AA.level&&(AA.levelI.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+AA.level);if(AA.memLevel&&(AA.memLevelI.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+AA.memLevel);if(AA.strategy&&AA.strategy!=I.Z_FILTERED&&AA.strategy!=I.Z_HUFFMAN_ONLY&&AA.strategy!=I.Z_RLE&&AA.strategy!=I.Z_FIXED&&AA.strategy!=I.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+AA.strategy);if(AA.dictionary&&!i.isBuffer(AA.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new l.Zlib(lA);var cA=this;this._hadError=!1,this._handle.onerror=function(DA,FA){Z(cA),cA._hadError=!0;var _=new Error(DA);_.errno=FA,_.code=I.codes[FA],cA.emit("error",_)};var gA=I.Z_DEFAULT_COMPRESSION;"number"==typeof AA.level&&(gA=AA.level);var BA=I.Z_DEFAULT_STRATEGY;"number"==typeof AA.strategy&&(BA=AA.strategy),this._handle.init(AA.windowBits||I.Z_DEFAULT_WINDOWBITS,gA,AA.memLevel||I.Z_DEFAULT_MEMLEVEL,BA,AA.dictionary),this._buffer=i.allocUnsafe(this._chunkSize),this._offset=0,this._level=gA,this._strategy=BA,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!MA._handle},configurable:!0,enumerable:!0})}function Z(AA,lA){lA&&c.nextTick(lA),AA._handle&&(AA._handle.close(),AA._handle=null)}function aA(AA){AA.emit("close")}Object.defineProperty(I,"codes",{enumerable:!0,value:Object.freeze(f),writable:!1}),I.Deflate=m,I.Inflate=d,I.Gzip=v,I.Gunzip=D,I.DeflateRaw=U,I.InflateRaw=T,I.Unzip=F,I.createDeflate=function(AA){return new m(AA)},I.createInflate=function(AA){return new d(AA)},I.createDeflateRaw=function(AA){return new U(AA)},I.createInflateRaw=function(AA){return new T(AA)},I.createGzip=function(AA){return new v(AA)},I.createGunzip=function(AA){return new D(AA)},I.createUnzip=function(AA){return new F(AA)},I.deflate=function(AA,lA,MA){return"function"==typeof lA&&(MA=lA,lA={}),p(new m(lA),AA,MA)},I.deflateSync=function(AA,lA){return S(new m(lA),AA)},I.gzip=function(AA,lA,MA){return"function"==typeof lA&&(MA=lA,lA={}),p(new v(lA),AA,MA)},I.gzipSync=function(AA,lA){return S(new v(lA),AA)},I.deflateRaw=function(AA,lA,MA){return"function"==typeof lA&&(MA=lA,lA={}),p(new U(lA),AA,MA)},I.deflateRawSync=function(AA,lA){return S(new U(lA),AA)},I.unzip=function(AA,lA,MA){return"function"==typeof lA&&(MA=lA,lA={}),p(new F(lA),AA,MA)},I.unzipSync=function(AA,lA){return S(new F(lA),AA)},I.inflate=function(AA,lA,MA){return"function"==typeof lA&&(MA=lA,lA={}),p(new d(lA),AA,MA)},I.inflateSync=function(AA,lA){return S(new d(lA),AA)},I.gunzip=function(AA,lA,MA){return"function"==typeof lA&&(MA=lA,lA={}),p(new D(lA),AA,MA)},I.gunzipSync=function(AA,lA){return S(new D(lA),AA)},I.inflateRaw=function(AA,lA,MA){return"function"==typeof lA&&(MA=lA,lA={}),p(new T(lA),AA,MA)},I.inflateRawSync=function(AA,lA){return S(new T(lA),AA)},h.inherits(b,o),b.prototype.params=function(AA,lA,MA){if(AAI.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+AA);if(lA!=I.Z_FILTERED&&lA!=I.Z_HUFFMAN_ONLY&&lA!=I.Z_RLE&&lA!=I.Z_FIXED&&lA!=I.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+lA);if(this._level!==AA||this._strategy!==lA){var cA=this;this.flush(l.Z_SYNC_FLUSH,function(){a(cA._handle,"zlib binding closed"),cA._handle.params(AA,lA),cA._hadError||(cA._level=AA,cA._strategy=lA,MA&&MA())})}else c.nextTick(MA)},b.prototype.reset=function(){return a(this._handle,"zlib binding closed"),this._handle.reset()},b.prototype._flush=function(AA){this._transform(i.alloc(0),"",AA)},b.prototype.flush=function(AA,lA){var MA=this,cA=this._writableState;("function"==typeof AA||void 0===AA&&!lA)&&(lA=AA,AA=l.Z_FULL_FLUSH),cA.ended?lA&&c.nextTick(lA):cA.ending?lA&&this.once("end",lA):cA.needDrain?lA&&this.once("drain",function(){return MA.flush(AA,lA)}):(this._flushFlag=AA,this.write(i.alloc(0),"",lA))},b.prototype.close=function(AA){Z(this,AA),c.nextTick(aA,this)},b.prototype._transform=function(AA,lA,MA){var cA,gA=this._writableState,DA=(gA.ending||gA.ended)&&(!AA||gA.length===AA.length);return null===AA||i.isBuffer(AA)?this._handle?(DA?cA=this._finishFlushFlag:(cA=this._flushFlag,AA.length>=gA.length&&(this._flushFlag=this._opts.flush||l.Z_NO_FLUSH)),void this._processChunk(AA,cA,MA)):MA(new Error("zlib binding closed")):MA(new Error("invalid input"))},b.prototype._processChunk=function(AA,lA,MA){var cA=AA&&AA.length,gA=this._chunkSize-this._offset,BA=0,DA=this,FA="function"==typeof MA;if(!FA){var uA,_=[],dA=0;this.on("error",function(q){uA=q}),a(this._handle,"zlib binding closed");do{var CA=this._handle.writeSync(lA,AA,BA,cA,this._buffer,this._offset,gA)}while(!this._hadError&&XA(CA[0],CA[1]));if(this._hadError)throw uA;if(dA>=g)throw Z(this),new RangeError(E);var SA=i.concat(_,dA);return Z(this),SA}a(this._handle,"zlib binding closed");var bA=this._handle.write(lA,AA,BA,cA,this._buffer,this._offset,gA);function XA(q,O){if(this&&(this.buffer=null,this.callback=null),!DA._hadError){var $=gA-O;if(a($>=0,"have should not go down"),$>0){var W=DA._buffer.slice(DA._offset,DA._offset+$);DA._offset+=$,FA?DA.push(W):(_.push(W),dA+=W.length)}if((0===O||DA._offset>=DA._chunkSize)&&(gA=DA._chunkSize,DA._offset=0,DA._buffer=i.allocUnsafe(DA._chunkSize)),0===O){if(BA+=cA-q,cA=q,!FA)return!0;var hA=DA._handle.write(lA,AA,BA,cA,DA._buffer,DA._offset,DA._chunkSize);return hA.callback=XA,void(hA.buffer=AA)}if(!FA)return!1;MA()}}bA.buffer=AA,bA.callback=XA},h.inherits(m,b),h.inherits(d,b),h.inherits(v,b),h.inherits(D,b),h.inherits(U,b),h.inherits(T,b),h.inherits(F,b)},1924:function(Y,I,n){"use strict";var c=n(210),i=n(5559),o=i(c("String.prototype.indexOf"));Y.exports=function(h,a){var g=c(h,!!a);return"function"==typeof g&&o(h,".prototype.")>-1?i(g):g}},5559:function(Y,I,n){"use strict";var c=n(8612),i=n(210),o=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),h=i("%Reflect.apply%",!0)||c.call(l,o),a=i("%Object.getOwnPropertyDescriptor%",!0),g=i("%Object.defineProperty%",!0),E=i("%Math.max%");if(g)try{g({},"a",{value:1})}catch(C){g=null}Y.exports=function(e){var f=h(c,l,arguments);return a&&g&&a(f,"length").configurable&&g(f,"length",{value:1+E(0,e.length-(arguments.length-1))}),f};var u=function(){return h(c,o,arguments)};g?g(Y.exports,"apply",{value:u}):Y.exports.apply=u},6313:function(Y,I,n){var c=n(8823).Buffer,i=function(){"use strict";function o(u,C,e,f){"object"==typeof C&&(e=C.depth,f=C.prototype,C=C.circular);var w=[],Q=[],p=void 0!==c;return void 0===C&&(C=!0),void 0===e&&(e=1/0),function S(m,d){if(null===m)return null;if(0==d)return m;var v,D;if("object"!=typeof m)return m;if(o.__isArray(m))v=[];else if(o.__isRegExp(m))v=new RegExp(m.source,E(m)),m.lastIndex&&(v.lastIndex=m.lastIndex);else if(o.__isDate(m))v=new Date(m.getTime());else{if(p&&c.isBuffer(m))return v=c.allocUnsafe?c.allocUnsafe(m.length):new c(m.length),m.copy(v),v;void 0===f?(D=Object.getPrototypeOf(m),v=Object.create(D)):(v=Object.create(f),D=f)}if(C){var U=w.indexOf(m);if(-1!=U)return Q[U];w.push(m),Q.push(v)}for(var T in m){var F;D&&(F=Object.getOwnPropertyDescriptor(D,T)),(!F||null!=F.set)&&(v[T]=S(m[T],d-1))}return v}(u,e)}function l(u){return Object.prototype.toString.call(u)}function E(u){var C="";return u.global&&(C+="g"),u.ignoreCase&&(C+="i"),u.multiline&&(C+="m"),C}return o.clonePrototype=function(C){if(null===C)return null;var e=function(){};return e.prototype=C,new e},o.__objToStr=l,o.__isDate=function h(u){return"object"==typeof u&&"[object Date]"===l(u)},o.__isArray=function a(u){return"object"==typeof u&&"[object Array]"===l(u)},o.__isRegExp=function g(u){return"object"==typeof u&&"[object RegExp]"===l(u)},o.__getRegExpFlags=E,o}();Y.exports&&(Y.exports=i)},4667:function(Y,I,n){n(2479);var c=n(857);Y.exports=c.Object.values},7633:function(Y,I,n){n(9170),n(6992),n(1539),n(8674),n(7922),n(4668),n(7727),n(8783);var c=n(857);Y.exports=c.Promise},3867:function(Y,I,n){var c=n(1150);n(8628),n(7314),n(7479),n(6290),Y.exports=c},9662:function(Y,I,n){var c=n(7854),i=n(614),o=n(6330),l=c.TypeError;Y.exports=function(h){if(i(h))return h;throw l(o(h)+" is not a function")}},9483:function(Y,I,n){var c=n(7854),i=n(4411),o=n(6330),l=c.TypeError;Y.exports=function(h){if(i(h))return h;throw l(o(h)+" is not a constructor")}},6077:function(Y,I,n){var c=n(7854),i=n(614),o=c.String,l=c.TypeError;Y.exports=function(h){if("object"==typeof h||i(h))return h;throw l("Can't set "+o(h)+" as a prototype")}},1223:function(Y,I,n){var c=n(5112),i=n(30),o=n(3070),l=c("unscopables"),h=Array.prototype;null==h[l]&&o.f(h,l,{configurable:!0,value:i(null)}),Y.exports=function(a){h[l][a]=!0}},1530:function(Y,I,n){"use strict";var c=n(8710).charAt;Y.exports=function(i,o,l){return o+(l?c(i,o).length:1)}},5787:function(Y,I,n){var c=n(7854),i=n(7976),o=c.TypeError;Y.exports=function(l,h){if(i(h,l))return l;throw o("Incorrect invocation")}},9670:function(Y,I,n){var c=n(7854),i=n(111),o=c.String,l=c.TypeError;Y.exports=function(h){if(i(h))return h;throw l(o(h)+" is not an object")}},1048:function(Y,I,n){"use strict";var c=n(7908),i=n(1400),o=n(6244),l=Math.min;Y.exports=[].copyWithin||function(a,g){var E=c(this),u=o(E),C=i(a,u),e=i(g,u),f=arguments.length>2?arguments[2]:void 0,B=l((void 0===f?u:i(f,u))-e,u-C),w=1;for(e0;)e in E?E[C]=E[e]:delete E[C],C+=w,e+=w;return E}},1285:function(Y,I,n){"use strict";var c=n(7908),i=n(1400),o=n(6244);Y.exports=function(h){for(var a=c(this),g=o(a),E=arguments.length,u=i(E>1?arguments[1]:void 0,g),C=E>2?arguments[2]:void 0,e=void 0===C?g:i(C,g);e>u;)a[u++]=h;return a}},8533:function(Y,I,n){"use strict";var c=n(2092).forEach,o=n(9341)("forEach");Y.exports=o?[].forEach:function(h){return c(this,h,arguments.length>1?arguments[1]:void 0)}},7745:function(Y){Y.exports=function(I,n){for(var c=0,i=n.length,o=new I(i);i>c;)o[c]=n[c++];return o}},8457:function(Y,I,n){"use strict";var c=n(7854),i=n(9974),o=n(6916),l=n(7908),h=n(3411),a=n(7659),g=n(4411),E=n(6244),u=n(6135),C=n(8554),e=n(1246),f=c.Array;Y.exports=function(w){var Q=l(w),p=g(this),S=arguments.length,m=S>1?arguments[1]:void 0,d=void 0!==m;d&&(m=i(m,S>2?arguments[2]:void 0));var U,T,F,z,b,Z,v=e(Q),D=0;if(!v||this==f&&a(v))for(U=E(Q),T=p?new this(U):f(U);U>D;D++)Z=d?m(Q[D],D):Q[D],u(T,D,Z);else for(b=(z=C(Q,v)).next,T=p?new this:[];!(F=o(b,z)).done;D++)Z=d?h(z,m,[F.value,D],!0):F.value,u(T,D,Z);return T.length=D,T}},1318:function(Y,I,n){var c=n(5656),i=n(1400),o=n(6244),l=function(h){return function(a,g,E){var f,u=c(a),C=o(u),e=i(E,C);if(h&&g!=g){for(;C>e;)if((f=u[e++])!=f)return!0}else for(;C>e;e++)if((h||e in u)&&u[e]===g)return h||e||0;return!h&&-1}};Y.exports={includes:l(!0),indexOf:l(!1)}},2092:function(Y,I,n){var c=n(9974),i=n(1702),o=n(8361),l=n(7908),h=n(6244),a=n(5417),g=i([].push),E=function(u){var C=1==u,e=2==u,f=3==u,B=4==u,w=6==u,Q=7==u,p=5==u||w;return function(S,m,d,v){for(var aA,AA,D=l(S),U=o(D),T=c(m,d),F=h(U),z=0,b=v||a,Z=C?b(S,F):e||Q?b(S,0):void 0;F>z;z++)if((p||z in U)&&(AA=T(aA=U[z],z,D),u))if(C)Z[z]=AA;else if(AA)switch(u){case 3:return!0;case 5:return aA;case 6:return z;case 2:g(Z,aA)}else switch(u){case 4:return!1;case 7:g(Z,aA)}return w?-1:f||B?B:Z}};Y.exports={forEach:E(0),map:E(1),filter:E(2),some:E(3),every:E(4),find:E(5),findIndex:E(6),filterReject:E(7)}},6583:function(Y,I,n){"use strict";var c=n(2104),i=n(5656),o=n(9303),l=n(6244),h=n(9341),a=Math.min,g=[].lastIndexOf,E=!!g&&1/[1].lastIndexOf(1,-0)<0,u=h("lastIndexOf");Y.exports=E||!u?function(f){if(E)return c(g,this,arguments)||0;var B=i(this),w=l(B),Q=w-1;for(arguments.length>1&&(Q=a(Q,o(arguments[1]))),Q<0&&(Q=w+Q);Q>=0;Q--)if(Q in B&&B[Q]===f)return Q||0;return-1}:g},1194:function(Y,I,n){var c=n(7293),i=n(5112),o=n(7392),l=i("species");Y.exports=function(h){return o>=51||!c(function(){var a=[];return(a.constructor={})[l]=function(){return{foo:1}},1!==a[h](Boolean).foo})}},9341:function(Y,I,n){"use strict";var c=n(7293);Y.exports=function(i,o){var l=[][i];return!!l&&c(function(){l.call(null,o||function(){throw 1},1)})}},3671:function(Y,I,n){var c=n(7854),i=n(9662),o=n(7908),l=n(8361),h=n(6244),a=c.TypeError,g=function(E){return function(u,C,e,f){i(C);var B=o(u),w=l(B),Q=h(B),p=E?Q-1:0,S=E?-1:1;if(e<2)for(;;){if(p in w){f=w[p],p+=S;break}if(p+=S,E?p<0:Q<=p)throw a("Reduce of empty array with no initial value")}for(;E?p>=0:Q>p;p+=S)p in w&&(f=C(f,w[p],p,B));return f}};Y.exports={left:g(!1),right:g(!0)}},206:function(Y,I,n){var c=n(1702);Y.exports=c([].slice)},4362:function(Y,I,n){var c=n(206),i=Math.floor,o=function(a,g){var E=a.length,u=i(E/2);return E<8?l(a,g):h(a,o(c(a,0,u),g),o(c(a,u),g),g)},l=function(a,g){for(var C,e,E=a.length,u=1;u0;)a[e]=a[--e];e!==u++&&(a[e]=C)}return a},h=function(a,g,E,u){for(var C=g.length,e=E.length,f=0,B=0;f1?arguments[1]:void 0);Z=Z?Z.next:z.first;)for(b(Z.value,Z.key,this);Z&&Z.removed;)Z=Z.previous},has:function(F){return!!U(this,F)}}),o(d,p?{get:function(F){var z=U(this,F);return z&&z.value},set:function(F,z){return D(this,0===F?0:F,z)}}:{add:function(F){return D(this,F=0===F?0:F,F)}}),u&&c(d,"size",{get:function(){return v(this).size}}),m},setStrong:function(w,Q,p){var S=Q+" Iterator",m=B(Q),d=B(S);g(w,Q,function(v,D){f(this,{type:S,target:v,state:m(v),kind:D,last:void 0})},function(){for(var v=d(this),D=v.kind,U=v.last;U&&U.removed;)U=U.previous;return v.target&&(v.last=U=U?U.next:v.state.first)?"keys"==D?{value:U.key,done:!1}:"values"==D?{value:U.value,done:!1}:{value:[U.key,U.value],done:!1}:(v.target=void 0,{value:void 0,done:!0})},p?"entries":"values",!p,!0),E(Q)}}},7710:function(Y,I,n){"use strict";var c=n(2109),i=n(7854),o=n(1702),l=n(4705),h=n(1320),a=n(2423),g=n(408),E=n(5787),u=n(614),C=n(111),e=n(7293),f=n(7072),B=n(8003),w=n(9587);Y.exports=function(Q,p,S){var m=-1!==Q.indexOf("Map"),d=-1!==Q.indexOf("Weak"),v=m?"set":"add",D=i[Q],U=D&&D.prototype,T=D,F={},z=function(cA){var gA=o(U[cA]);h(U,cA,"add"==cA?function(DA){return gA(this,0===DA?0:DA),this}:"delete"==cA?function(BA){return!(d&&!C(BA))&&gA(this,0===BA?0:BA)}:"get"==cA?function(DA){return d&&!C(DA)?void 0:gA(this,0===DA?0:DA)}:"has"==cA?function(DA){return!(d&&!C(DA))&&gA(this,0===DA?0:DA)}:function(DA,FA){return gA(this,0===DA?0:DA,FA),this})};if(l(Q,!u(D)||!(d||U.forEach&&!e(function(){(new D).entries().next()}))))T=S.getConstructor(p,Q,m,v),a.enable();else if(l(Q,!0)){var Z=new T,aA=Z[v](d?{}:-0,1)!=Z,AA=e(function(){Z.has(1)}),lA=f(function(cA){new D(cA)}),MA=!d&&e(function(){for(var cA=new D,gA=5;gA--;)cA[v](gA,gA);return!cA.has(-0)});lA||((T=p(function(cA,gA){E(cA,U);var BA=w(new D,cA,T);return null!=gA&&g(gA,BA[v],{that:BA,AS_ENTRIES:m}),BA})).prototype=U,U.constructor=T),(AA||MA)&&(z("delete"),z("has"),m&&z("get")),(MA||aA)&&z(v),d&&U.clear&&delete U.clear}return F[Q]=T,c({global:!0,forced:T!=D},F),B(T,Q),d||S.setStrong(T,Q,m),T}},9920:function(Y,I,n){var c=n(2597),i=n(3887),o=n(1236),l=n(3070);Y.exports=function(h,a){for(var g=i(a),E=l.f,u=o.f,C=0;C"+C+""}},4994:function(Y,I,n){"use strict";var c=n(3383).IteratorPrototype,i=n(30),o=n(9114),l=n(8003),h=n(7497),a=function(){return this};Y.exports=function(g,E,u){var C=E+" Iterator";return g.prototype=i(c,{next:o(1,u)}),l(g,C,!1,!0),h[C]=a,g}},8880:function(Y,I,n){var c=n(9781),i=n(3070),o=n(9114);Y.exports=c?function(l,h,a){return i.f(l,h,o(1,a))}:function(l,h,a){return l[h]=a,l}},9114:function(Y){Y.exports=function(I,n){return{enumerable:!(1&I),configurable:!(2&I),writable:!(4&I),value:n}}},6135:function(Y,I,n){"use strict";var c=n(4948),i=n(3070),o=n(9114);Y.exports=function(l,h,a){var g=c(h);g in l?i.f(l,g,o(0,a)):l[g]=a}},8709:function(Y,I,n){"use strict";var c=n(7854),i=n(9670),o=n(2140),l=c.TypeError;Y.exports=function(h){if(i(this),"string"===h||"default"===h)h="string";else if("number"!==h)throw l("Incorrect hint");return o(this,h)}},654:function(Y,I,n){"use strict";var c=n(2109),i=n(6916),o=n(1913),l=n(6530),h=n(614),a=n(4994),g=n(9518),E=n(7674),u=n(8003),C=n(8880),e=n(1320),f=n(5112),B=n(7497),w=n(3383),Q=l.PROPER,p=l.CONFIGURABLE,S=w.IteratorPrototype,m=w.BUGGY_SAFARI_ITERATORS,d=f("iterator"),v="keys",D="values",U="entries",T=function(){return this};Y.exports=function(F,z,b,Z,aA,AA,lA){a(b,z,Z);var dA,uA,CA,MA=function(SA){if(SA===aA&&FA)return FA;if(!m&&SA in BA)return BA[SA];switch(SA){case v:case D:case U:return function(){return new b(this,SA)}}return function(){return new b(this)}},cA=z+" Iterator",gA=!1,BA=F.prototype,DA=BA[d]||BA["@@iterator"]||aA&&BA[aA],FA=!m&&DA||MA(aA),_="Array"==z&&BA.entries||DA;if(_&&(dA=g(_.call(new F)))!==Object.prototype&&dA.next&&(!o&&g(dA)!==S&&(E?E(dA,S):h(dA[d])||e(dA,d,T)),u(dA,cA,!0,!0),o&&(B[cA]=T)),Q&&aA==D&&DA&&DA.name!==D&&(!o&&p?C(BA,"name",D):(gA=!0,FA=function(){return i(DA,this)})),aA)if(uA={values:MA(D),keys:AA?FA:MA(v),entries:MA(U)},lA)for(CA in uA)(m||gA||!(CA in BA))&&e(BA,CA,uA[CA]);else c({target:z,proto:!0,forced:m||gA},uA);return(!o||lA)&&BA[d]!==FA&&e(BA,d,FA,{name:aA}),B[z]=FA,uA}},7235:function(Y,I,n){var c=n(857),i=n(2597),o=n(6061),l=n(3070).f;Y.exports=function(h){var a=c.Symbol||(c.Symbol={});i(a,h)||l(a,h,{value:o.f(h)})}},9781:function(Y,I,n){var c=n(7293);Y.exports=!c(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},317:function(Y,I,n){var c=n(7854),i=n(111),o=c.document,l=i(o)&&i(o.createElement);Y.exports=function(h){return l?o.createElement(h):{}}},8324:function(Y){Y.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:function(Y,I,n){var i=n(317)("span").classList,o=i&&i.constructor&&i.constructor.prototype;Y.exports=o===Object.prototype?void 0:o},8886:function(Y,I,n){var i=n(8113).match(/firefox\/(\d+)/i);Y.exports=!!i&&+i[1]},7871:function(Y){Y.exports="object"==typeof window},256:function(Y,I,n){var c=n(8113);Y.exports=/MSIE|Trident/.test(c)},1528:function(Y,I,n){var c=n(8113),i=n(7854);Y.exports=/ipad|iphone|ipod/i.test(c)&&void 0!==i.Pebble},6833:function(Y,I,n){var c=n(8113);Y.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(c)},5268:function(Y,I,n){var c=n(4326),i=n(7854);Y.exports="process"==c(i.process)},1036:function(Y,I,n){var c=n(8113);Y.exports=/web0s(?!.*chrome)/i.test(c)},8113:function(Y,I,n){var c=n(5005);Y.exports=c("navigator","userAgent")||""},7392:function(Y,I,n){var g,E,c=n(7854),i=n(8113),o=c.process,l=c.Deno,h=o&&o.versions||l&&l.version,a=h&&h.v8;a&&(E=(g=a.split("."))[0]>0&&g[0]<4?1:+(g[0]+g[1])),!E&&i&&(!(g=i.match(/Edge\/(\d+)/))||g[1]>=74)&&(g=i.match(/Chrome\/(\d+)/))&&(E=+g[1]),Y.exports=E},8008:function(Y,I,n){var i=n(8113).match(/AppleWebKit\/(\d+)\./);Y.exports=!!i&&+i[1]},748:function(Y){Y.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(Y,I,n){var c=n(7293),i=n(9114);Y.exports=!c(function(){var o=Error("a");return!("stack"in o)||(Object.defineProperty(o,"stack",i(1,7)),7!==o.stack)})},2109:function(Y,I,n){var c=n(7854),i=n(1236).f,o=n(8880),l=n(1320),h=n(3505),a=n(9920),g=n(4705);Y.exports=function(E,u){var w,Q,p,S,m,C=E.target,e=E.global,f=E.stat;if(w=e?c:f?c[C]||h(C,{}):(c[C]||{}).prototype)for(Q in u){if(S=u[Q],p=E.noTargetGet?(m=i(w,Q))&&m.value:w[Q],!g(e?Q:C+(f?".":"#")+Q,E.forced)&&void 0!==p){if(typeof S==typeof p)continue;a(S,p)}(E.sham||p&&p.sham)&&o(S,"sham",!0),l(w,Q,S,E)}}},7293:function(Y){Y.exports=function(I){try{return!!I()}catch(n){return!0}}},7007:function(Y,I,n){"use strict";n(4916);var c=n(1702),i=n(1320),o=n(2261),l=n(7293),h=n(5112),a=n(8880),g=h("species"),E=RegExp.prototype;Y.exports=function(u,C,e,f){var B=h(u),w=!l(function(){var m={};return m[B]=function(){return 7},7!=""[u](m)}),Q=w&&!l(function(){var m=!1,d=/a/;return"split"===u&&((d={}).constructor={},d.constructor[g]=function(){return d},d.flags="",d[B]=/./[B]),d.exec=function(){return m=!0,null},d[B](""),!m});if(!w||!Q||e){var p=c(/./[B]),S=C(B,""[u],function(m,d,v,D,U){var T=c(m),F=d.exec;return F===o||F===E.exec?w&&!U?{done:!0,value:p(d,v,D)}:{done:!0,value:T(v,d,D)}:{done:!1}});i(String.prototype,u,S[0]),i(E,B,S[1])}f&&a(E[B],"sham",!0)}},6677:function(Y,I,n){var c=n(7293);Y.exports=!c(function(){return Object.isExtensible(Object.preventExtensions({}))})},2104:function(Y){var I=Function.prototype,n=I.apply,i=I.call;Y.exports="object"==typeof Reflect&&Reflect.apply||(I.bind?i.bind(n):function(){return i.apply(n,arguments)})},9974:function(Y,I,n){var c=n(1702),i=n(9662),o=c(c.bind);Y.exports=function(l,h){return i(l),void 0===h?l:o?o(l,h):function(){return l.apply(h,arguments)}}},7065:function(Y,I,n){"use strict";var c=n(7854),i=n(1702),o=n(9662),l=n(111),h=n(2597),a=n(206),g=c.Function,E=i([].concat),u=i([].join),C={},e=function(f,B,w){if(!h(C,B)){for(var Q=[],p=0;p]*>)/g,E=/\$([$&'`]|\d{1,2})/g;Y.exports=function(u,C,e,f,B,w){var Q=e+u.length,p=f.length,S=E;return void 0!==B&&(B=i(B),S=g),h(w,S,function(m,d){var v;switch(l(d,0)){case"$":return"$";case"&":return u;case"`":return a(C,0,e);case"'":return a(C,Q);case"<":v=B[a(d,1,-1)];break;default:var D=+d;if(0===D)return m;if(D>p){var U=o(D/10);return 0===U?m:U<=p?void 0===f[U-1]?l(d,1):f[U-1]+l(d,1):m}v=f[D-1]}return void 0===v?"":v})}},7854:function(Y,I,n){var c=function(i){return i&&i.Math==Math&&i};Y.exports=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(Y,I,n){var c=n(1702),i=n(7908),o=c({}.hasOwnProperty);Y.exports=Object.hasOwn||function(h,a){return o(i(h),a)}},3501:function(Y){Y.exports={}},842:function(Y,I,n){var c=n(7854);Y.exports=function(i,o){var l=c.console;l&&l.error&&(1==arguments.length?l.error(i):l.error(i,o))}},490:function(Y,I,n){var c=n(5005);Y.exports=c("document","documentElement")},4664:function(Y,I,n){var c=n(9781),i=n(7293),o=n(317);Y.exports=!c&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},1179:function(Y,I,n){var i=n(7854).Array,o=Math.abs,l=Math.pow,h=Math.floor,a=Math.log,g=Math.LN2;Y.exports={pack:function(C,e,f){var v,D,U,B=i(f),w=8*f-e-1,Q=(1<>1,S=23===e?l(2,-24)-l(2,-77):0,m=C<0||0===C&&1/C<0?1:0,d=0;for((C=o(C))!=C||C===1/0?(D=C!=C?1:0,v=Q):(v=h(a(C)/g),C*(U=l(2,-v))<1&&(v--,U*=2),(C+=v+p>=1?S/U:S*l(2,1-p))*U>=2&&(v++,U/=2),v+p>=Q?(D=0,v=Q):v+p>=1?(D=(C*U-1)*l(2,e),v+=p):(D=C*l(2,p-1)*l(2,e),v=0));e>=8;B[d++]=255&D,D/=256,e-=8);for(v=v<0;B[d++]=255&v,v/=256,w-=8);return B[--d]|=128*m,B},unpack:function(C,e){var v,f=C.length,B=8*f-e-1,w=(1<>1,p=B-7,S=f-1,m=C[S--],d=127&m;for(m>>=7;p>0;d=256*d+C[S],S--,p-=8);for(v=d&(1<<-p)-1,d>>=-p,p+=e;p>0;v=256*v+C[S],S--,p-=8);if(0===d)d=1-Q;else{if(d===w)return v?NaN:m?-1/0:1/0;v+=l(2,e),d-=Q}return(m?-1:1)*v*l(2,d-e)}}},8361:function(Y,I,n){var c=n(7854),i=n(1702),o=n(7293),l=n(4326),h=c.Object,a=i("".split);Y.exports=o(function(){return!h("z").propertyIsEnumerable(0)})?function(g){return"String"==l(g)?a(g,""):h(g)}:h},9587:function(Y,I,n){var c=n(614),i=n(111),o=n(7674);Y.exports=function(l,h,a){var g,E;return o&&c(g=h.constructor)&&g!==a&&i(E=g.prototype)&&E!==a.prototype&&o(l,E),l}},2788:function(Y,I,n){var c=n(1702),i=n(614),o=n(5465),l=c(Function.toString);i(o.inspectSource)||(o.inspectSource=function(h){return l(h)}),Y.exports=o.inspectSource},8340:function(Y,I,n){var c=n(111),i=n(8880);Y.exports=function(o,l){c(l)&&"cause"in l&&i(o,"cause",l.cause)}},2423:function(Y,I,n){var c=n(2109),i=n(1702),o=n(3501),l=n(111),h=n(2597),a=n(3070).f,g=n(8006),E=n(1156),u=n(9711),C=n(6677),e=!1,f=u("meta"),B=0,w=Object.isExtensible||function(){return!0},Q=function(D){a(D,f,{value:{objectID:"O"+B++,weakData:{}}})},v=Y.exports={enable:function(){v.enable=function(){},e=!0;var D=g.f,U=i([].splice),T={};T[f]=1,D(T).length&&(g.f=function(F){for(var z=D(F),b=0,Z=z.length;bz;z++)if((Z=MA(Q[z]))&&E(w,Z))return Z;return new B(!1)}T=u(Q,F)}for(aA=T.next;!(AA=o(aA,T)).done;){try{Z=MA(AA.value)}catch(cA){e(T,"throw",cA)}if("object"==typeof Z&&Z&&E(w,Z))return Z}return new B(!1)}},9212:function(Y,I,n){var c=n(6916),i=n(9670),o=n(8173);Y.exports=function(l,h,a){var g,E;i(l);try{if(!(g=o(l,"return"))){if("throw"===h)throw a;return a}g=c(g,l)}catch(u){E=!0,g=u}if("throw"===h)throw a;if(E)throw g;return i(g),a}},3383:function(Y,I,n){"use strict";var C,e,f,c=n(7293),i=n(614),o=n(30),l=n(9518),h=n(1320),a=n(5112),g=n(1913),E=a("iterator"),u=!1;[].keys&&("next"in(f=[].keys())?(e=l(l(f)))!==Object.prototype&&(C=e):u=!0),null==C||c(function(){var w={};return C[E].call(w)!==w})?C={}:g&&(C=o(C)),i(C[E])||h(C,E,function(){return this}),Y.exports={IteratorPrototype:C,BUGGY_SAFARI_ITERATORS:u}},7497:function(Y){Y.exports={}},6244:function(Y,I,n){var c=n(7466);Y.exports=function(i){return c(i.length)}},5948:function(Y,I,n){var Q,p,S,m,d,v,D,U,c=n(7854),i=n(9974),o=n(1236).f,l=n(261).set,h=n(6833),a=n(1528),g=n(1036),E=n(5268),u=c.MutationObserver||c.WebKitMutationObserver,C=c.document,e=c.process,f=c.Promise,B=o(c,"queueMicrotask"),w=B&&B.value;w||(Q=function(){var T,F;for(E&&(T=e.domain)&&T.exit();p;){F=p.fn,p=p.next;try{F()}catch(z){throw p?m():S=void 0,z}}S=void 0,T&&T.enter()},h||E||g||!u||!C?!a&&f&&f.resolve?((D=f.resolve(void 0)).constructor=f,U=i(D.then,D),m=function(){U(Q)}):E?m=function(){e.nextTick(Q)}:(l=i(l,c),m=function(){l(Q)}):(d=!0,v=C.createTextNode(""),new u(Q).observe(v,{characterData:!0}),m=function(){v.data=d=!d})),Y.exports=w||function(T){var F={fn:T,next:void 0};S&&(S.next=F),p||(p=F,m()),S=F}},3366:function(Y,I,n){var c=n(7854);Y.exports=c.Promise},133:function(Y,I,n){var c=n(7392),i=n(7293);Y.exports=!!Object.getOwnPropertySymbols&&!i(function(){var o=Symbol();return!String(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&c&&c<41})},8536:function(Y,I,n){var c=n(7854),i=n(614),o=n(2788),l=c.WeakMap;Y.exports=i(l)&&/native code/.test(o(l))},8523:function(Y,I,n){"use strict";var c=n(9662),i=function(o){var l,h;this.promise=new o(function(a,g){if(void 0!==l||void 0!==h)throw TypeError("Bad Promise constructor");l=a,h=g}),this.resolve=c(l),this.reject=c(h)};Y.exports.f=function(o){return new i(o)}},6277:function(Y,I,n){var c=n(1340);Y.exports=function(i,o){return void 0===i?arguments.length<2?"":o:c(i)}},3929:function(Y,I,n){var c=n(7854),i=n(7850),o=c.TypeError;Y.exports=function(l){if(i(l))throw o("The method doesn't accept regular expressions");return l}},7023:function(Y,I,n){var i=n(7854).isFinite;Y.exports=Number.isFinite||function(l){return"number"==typeof l&&i(l)}},1574:function(Y,I,n){"use strict";var c=n(9781),i=n(1702),o=n(6916),l=n(7293),h=n(1956),a=n(5181),g=n(5296),E=n(7908),u=n(8361),C=Object.assign,e=Object.defineProperty,f=i([].concat);Y.exports=!C||l(function(){if(c&&1!==C({b:1},C(e({},"a",{enumerable:!0,get:function(){e(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var B={},w={},Q=Symbol(),p="abcdefghijklmnopqrst";return B[Q]=7,p.split("").forEach(function(S){w[S]=S}),7!=C({},B)[Q]||h(C({},w)).join("")!=p})?function(w,Q){for(var p=E(w),S=arguments.length,m=1,d=a.f,v=g.f;S>m;)for(var z,D=u(arguments[m++]),U=d?f(h(D),d(D)):h(D),T=U.length,F=0;T>F;)z=U[F++],(!c||o(v,D,z))&&(p[z]=D[z]);return p}:C},30:function(Y,I,n){var S,c=n(9670),i=n(6048),o=n(748),l=n(3501),h=n(490),a=n(317),g=n(6200),C="prototype",e="script",f=g("IE_PROTO"),B=function(){},w=function(d){return"<"+e+">"+d+""},Q=function(d){d.write(w("")),d.close();var v=d.parentWindow.Object;return d=null,v},m=function(){try{S=new ActiveXObject("htmlfile")}catch(v){}m="undefined"!=typeof document?document.domain&&S?Q(S):function(){var D,d=a("iframe");return d.style.display="none",h.appendChild(d),d.src=String("javascript:"),(D=d.contentWindow.document).open(),D.write(w("document.F=Object")),D.close(),D.F}():Q(S);for(var d=o.length;d--;)delete m[C][o[d]];return m()};l[f]=!0,Y.exports=Object.create||function(v,D){var U;return null!==v?(B[C]=c(v),U=new B,B[C]=null,U[f]=v):U=m(),void 0===D?U:i(U,D)}},6048:function(Y,I,n){var c=n(9781),i=n(3070),o=n(9670),l=n(5656),h=n(1956);Y.exports=c?Object.defineProperties:function(g,E){o(g);for(var B,u=l(E),C=h(E),e=C.length,f=0;e>f;)i.f(g,B=C[f++],u[B]);return g}},3070:function(Y,I,n){var c=n(7854),i=n(9781),o=n(4664),l=n(9670),h=n(4948),a=c.TypeError,g=Object.defineProperty;I.f=i?g:function(u,C,e){if(l(u),C=h(C),l(e),o)try{return g(u,C,e)}catch(f){}if("get"in e||"set"in e)throw a("Accessors not supported");return"value"in e&&(u[C]=e.value),u}},1236:function(Y,I,n){var c=n(9781),i=n(6916),o=n(5296),l=n(9114),h=n(5656),a=n(4948),g=n(2597),E=n(4664),u=Object.getOwnPropertyDescriptor;I.f=c?u:function(e,f){if(e=h(e),f=a(f),E)try{return u(e,f)}catch(B){}if(g(e,f))return l(!i(o.f,e,f),e[f])}},1156:function(Y,I,n){var c=n(4326),i=n(5656),o=n(8006).f,l=n(206),h="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Y.exports.f=function(E){return h&&"Window"==c(E)?function(g){try{return o(g)}catch(E){return l(h)}}(E):o(i(E))}},8006:function(Y,I,n){var c=n(6324),o=n(748).concat("length","prototype");I.f=Object.getOwnPropertyNames||function(h){return c(h,o)}},5181:function(Y,I){I.f=Object.getOwnPropertySymbols},9518:function(Y,I,n){var c=n(7854),i=n(2597),o=n(614),l=n(7908),h=n(6200),a=n(8544),g=h("IE_PROTO"),E=c.Object,u=E.prototype;Y.exports=a?E.getPrototypeOf:function(C){var e=l(C);if(i(e,g))return e[g];var f=e.constructor;return o(f)&&e instanceof f?f.prototype:e instanceof E?u:null}},7976:function(Y,I,n){var c=n(1702);Y.exports=c({}.isPrototypeOf)},6324:function(Y,I,n){var c=n(1702),i=n(2597),o=n(5656),l=n(1318).indexOf,h=n(3501),a=c([].push);Y.exports=function(g,E){var f,u=o(g),C=0,e=[];for(f in u)!i(h,f)&&i(u,f)&&a(e,f);for(;E.length>C;)i(u,f=E[C++])&&(~l(e,f)||a(e,f));return e}},1956:function(Y,I,n){var c=n(6324),i=n(748);Y.exports=Object.keys||function(l){return c(l,i)}},5296:function(Y,I){"use strict";var n={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,i=c&&!n.call({1:2},1);I.f=i?function(l){var h=c(this,l);return!!h&&h.enumerable}:n},7674:function(Y,I,n){var c=n(1702),i=n(9670),o=n(6077);Y.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var a,l=!1,h={};try{(a=c(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(h,[]),l=h instanceof Array}catch(g){}return function(E,u){return i(E),o(u),l?a(E,u):E.__proto__=u,E}}():void 0)},4699:function(Y,I,n){var c=n(9781),i=n(1702),o=n(1956),l=n(5656),a=i(n(5296).f),g=i([].push),E=function(u){return function(C){for(var p,e=l(C),f=o(e),B=f.length,w=0,Q=[];B>w;)p=f[w++],(!c||a(e,p))&&g(Q,u?[p,e[p]]:e[p]);return Q}};Y.exports={entries:E(!0),values:E(!1)}},288:function(Y,I,n){"use strict";var c=n(1694),i=n(648);Y.exports=c?{}.toString:function(){return"[object "+i(this)+"]"}},2140:function(Y,I,n){var c=n(7854),i=n(6916),o=n(614),l=n(111),h=c.TypeError;Y.exports=function(a,g){var E,u;if("string"===g&&o(E=a.toString)&&!l(u=i(E,a))||o(E=a.valueOf)&&!l(u=i(E,a))||"string"!==g&&o(E=a.toString)&&!l(u=i(E,a)))return u;throw h("Can't convert object to primitive value")}},3887:function(Y,I,n){var c=n(5005),i=n(1702),o=n(8006),l=n(5181),h=n(9670),a=i([].concat);Y.exports=c("Reflect","ownKeys")||function(E){var u=o.f(h(E)),C=l.f;return C?a(u,C(E)):u}},857:function(Y,I,n){var c=n(7854);Y.exports=c},2534:function(Y){Y.exports=function(I){try{return{error:!1,value:I()}}catch(n){return{error:!0,value:n}}}},9478:function(Y,I,n){var c=n(9670),i=n(111),o=n(8523);Y.exports=function(l,h){if(c(l),i(h)&&h.constructor===l)return h;var a=o.f(l);return(0,a.resolve)(h),a.promise}},2248:function(Y,I,n){var c=n(1320);Y.exports=function(i,o,l){for(var h in o)c(i,h,o[h],l);return i}},1320:function(Y,I,n){var c=n(7854),i=n(614),o=n(2597),l=n(8880),h=n(3505),a=n(2788),g=n(9909),E=n(6530).CONFIGURABLE,u=g.get,C=g.enforce,e=String(String).split("String");(Y.exports=function(f,B,w,Q){var v,p=!!Q&&!!Q.unsafe,S=!!Q&&!!Q.enumerable,m=!!Q&&!!Q.noTargetGet,d=Q&&void 0!==Q.name?Q.name:B;i(w)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(w,"name")||E&&w.name!==d)&&l(w,"name",d),(v=C(w)).source||(v.source=e.join("string"==typeof d?d:""))),f!==c?(p?!m&&f[B]&&(S=!0):delete f[B],S?f[B]=w:l(f,B,w)):S?f[B]=w:h(B,w)})(Function.prototype,"toString",function(){return i(this)&&u(this).source||a(this)})},7651:function(Y,I,n){var c=n(7854),i=n(6916),o=n(9670),l=n(614),h=n(4326),a=n(2261),g=c.TypeError;Y.exports=function(E,u){var C=E.exec;if(l(C)){var e=i(C,E,u);return null!==e&&o(e),e}if("RegExp"===h(E))return i(a,E,u);throw g("RegExp#exec called on incompatible receiver")}},2261:function(Y,I,n){"use strict";var U,T,c=n(6916),i=n(1702),o=n(1340),l=n(7066),h=n(2999),a=n(2309),g=n(30),E=n(9909).get,u=n(9441),C=n(7168),e=a("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,B=f,w=i("".charAt),Q=i("".indexOf),p=i("".replace),S=i("".slice),m=(T=/b*/g,c(f,U=/a/,"a"),c(f,T,"a"),0!==U.lastIndex||0!==T.lastIndex),d=h.UNSUPPORTED_Y||h.BROKEN_CARET,v=void 0!==/()??/.exec("")[1];(m||v||d||u||C)&&(B=function(T){var aA,AA,lA,MA,cA,gA,BA,F=this,z=E(F),b=o(T),Z=z.raw;if(Z)return Z.lastIndex=F.lastIndex,aA=c(B,Z,b),F.lastIndex=Z.lastIndex,aA;var DA=z.groups,FA=d&&F.sticky,_=c(l,F),dA=F.source,uA=0,CA=b;if(FA&&(_=p(_,"y",""),-1===Q(_,"g")&&(_+="g"),CA=S(b,F.lastIndex),F.lastIndex>0&&(!F.multiline||F.multiline&&"\n"!==w(b,F.lastIndex-1))&&(dA="(?: "+dA+")",CA=" "+CA,uA++),AA=new RegExp("^(?:"+dA+")",_)),v&&(AA=new RegExp("^"+dA+"$(?!\\s)",_)),m&&(lA=F.lastIndex),MA=c(f,FA?AA:F,CA),FA?MA?(MA.input=S(MA.input,uA),MA[0]=S(MA[0],uA),MA.index=F.lastIndex,F.lastIndex+=MA[0].length):F.lastIndex=0:m&&MA&&(F.lastIndex=F.global?MA.index+MA[0].length:lA),v&&MA&&MA.length>1&&c(e,MA[0],AA,function(){for(cA=1;cAb)","g");return"b"!==l.exec("b").groups.a||"bc"!=="b".replace(l,"$c")})},4488:function(Y,I,n){var i=n(7854).TypeError;Y.exports=function(o){if(null==o)throw i("Can't call method on "+o);return o}},3505:function(Y,I,n){var c=n(7854),i=Object.defineProperty;Y.exports=function(o,l){try{i(c,o,{value:l,configurable:!0,writable:!0})}catch(h){c[o]=l}return l}},6340:function(Y,I,n){"use strict";var c=n(5005),i=n(3070),o=n(5112),l=n(9781),h=o("species");Y.exports=function(a){var g=c(a);l&&g&&!g[h]&&(0,i.f)(g,h,{configurable:!0,get:function(){return this}})}},8003:function(Y,I,n){var c=n(3070).f,i=n(2597),l=n(5112)("toStringTag");Y.exports=function(h,a,g){h&&!i(h=g?h:h.prototype,l)&&c(h,l,{configurable:!0,value:a})}},6200:function(Y,I,n){var c=n(2309),i=n(9711),o=c("keys");Y.exports=function(l){return o[l]||(o[l]=i(l))}},5465:function(Y,I,n){var c=n(7854),i=n(3505),o="__core-js_shared__",l=c[o]||i(o,{});Y.exports=l},2309:function(Y,I,n){var c=n(1913),i=n(5465);(Y.exports=function(o,l){return i[o]||(i[o]=void 0!==l?l:{})})("versions",[]).push({version:"3.19.0",mode:c?"pure":"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(Y,I,n){var c=n(9670),i=n(9483),l=n(5112)("species");Y.exports=function(h,a){var E,g=c(h).constructor;return void 0===g||null==(E=c(g)[l])?a:i(E)}},3429:function(Y,I,n){var c=n(7293);Y.exports=function(i){return c(function(){var o=""[i]('"');return o!==o.toLowerCase()||o.split('"').length>3})}},8710:function(Y,I,n){var c=n(1702),i=n(9303),o=n(1340),l=n(4488),h=c("".charAt),a=c("".charCodeAt),g=c("".slice),E=function(u){return function(C,e){var Q,p,f=o(l(C)),B=i(e),w=f.length;return B<0||B>=w?u?"":void 0:(Q=a(f,B))<55296||Q>56319||B+1===w||(p=a(f,B+1))<56320||p>57343?u?h(f,B):Q:u?g(f,B,B+2):p-56320+(Q-55296<<10)+65536}};Y.exports={codeAt:E(!1),charAt:E(!0)}},8415:function(Y,I,n){"use strict";var c=n(7854),i=n(9303),o=n(1340),l=n(4488),h=c.RangeError;Y.exports=function(g){var E=o(l(this)),u="",C=i(g);if(C<0||C==1/0)throw h("Wrong number of repetitions");for(;C>0;(C>>>=1)&&(E+=E))1&C&&(u+=E);return u}},6091:function(Y,I,n){var c=n(6530).PROPER,i=n(7293),o=n(1361);Y.exports=function(h){return i(function(){return!!o[h]()||"\u200b\x85\u180e"!=="\u200b\x85\u180e"[h]()||c&&o[h].name!==h})}},3111:function(Y,I,n){var c=n(1702),i=n(4488),o=n(1340),l=n(1361),h=c("".replace),a="["+l+"]",g=RegExp("^"+a+a+"*"),E=RegExp(a+a+"*$"),u=function(C){return function(e){var f=o(i(e));return 1&C&&(f=h(f,g,"")),2&C&&(f=h(f,E,"")),f}};Y.exports={start:u(1),end:u(2),trim:u(3)}},261:function(Y,I,n){var U,T,F,z,c=n(7854),i=n(2104),o=n(9974),l=n(614),h=n(2597),a=n(7293),g=n(490),E=n(206),u=n(317),C=n(6833),e=n(5268),f=c.setImmediate,B=c.clearImmediate,w=c.process,Q=c.Dispatch,p=c.Function,S=c.MessageChannel,m=c.String,d=0,v={},D="onreadystatechange";try{U=c.location}catch(lA){}var b=function(lA){if(h(v,lA)){var MA=v[lA];delete v[lA],MA()}},Z=function(lA){return function(){b(lA)}},aA=function(lA){b(lA.data)},AA=function(lA){c.postMessage(m(lA),U.protocol+"//"+U.host)};(!f||!B)&&(f=function(MA){var cA=E(arguments,1);return v[++d]=function(){i(l(MA)?MA:p(MA),void 0,cA)},T(d),d},B=function(MA){delete v[MA]},e?T=function(lA){w.nextTick(Z(lA))}:Q&&Q.now?T=function(lA){Q.now(Z(lA))}:S&&!C?(z=(F=new S).port2,F.port1.onmessage=aA,T=o(z.postMessage,z)):c.addEventListener&&l(c.postMessage)&&!c.importScripts&&U&&"file:"!==U.protocol&&!a(AA)?(T=AA,c.addEventListener("message",aA,!1)):T=D in u("script")?function(lA){g.appendChild(u("script"))[D]=function(){g.removeChild(this),b(lA)}}:function(lA){setTimeout(Z(lA),0)}),Y.exports={set:f,clear:B}},863:function(Y,I,n){var c=n(1702);Y.exports=c(1..valueOf)},1400:function(Y,I,n){var c=n(9303),i=Math.max,o=Math.min;Y.exports=function(l,h){var a=c(l);return a<0?i(a+h,0):o(a,h)}},7067:function(Y,I,n){var c=n(7854),i=n(9303),o=n(7466),l=c.RangeError;Y.exports=function(h){if(void 0===h)return 0;var a=i(h),g=o(a);if(a!==g)throw l("Wrong length or index");return g}},5656:function(Y,I,n){var c=n(8361),i=n(4488);Y.exports=function(o){return c(i(o))}},9303:function(Y){var I=Math.ceil,n=Math.floor;Y.exports=function(c){var i=+c;return i!=i||0===i?0:(i>0?n:I)(i)}},7466:function(Y,I,n){var c=n(9303),i=Math.min;Y.exports=function(o){return o>0?i(c(o),9007199254740991):0}},7908:function(Y,I,n){var c=n(7854),i=n(4488),o=c.Object;Y.exports=function(l){return o(i(l))}},4590:function(Y,I,n){var c=n(7854),i=n(3002),o=c.RangeError;Y.exports=function(l,h){var a=i(l);if(a%h)throw o("Wrong offset");return a}},3002:function(Y,I,n){var c=n(7854),i=n(9303),o=c.RangeError;Y.exports=function(l){var h=i(l);if(h<0)throw o("The argument can't be less than 0");return h}},7593:function(Y,I,n){var c=n(7854),i=n(6916),o=n(111),l=n(2190),h=n(8173),a=n(2140),g=n(5112),E=c.TypeError,u=g("toPrimitive");Y.exports=function(C,e){if(!o(C)||l(C))return C;var B,f=h(C,u);if(f){if(void 0===e&&(e="default"),B=i(f,C,e),!o(B)||l(B))return B;throw E("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(C,e)}},4948:function(Y,I,n){var c=n(7593),i=n(2190);Y.exports=function(o){var l=c(o,"string");return i(l)?l:l+""}},1694:function(Y,I,n){var o={};o[n(5112)("toStringTag")]="z",Y.exports="[object z]"===String(o)},1340:function(Y,I,n){var c=n(7854),i=n(648),o=c.String;Y.exports=function(l){if("Symbol"===i(l))throw TypeError("Cannot convert a Symbol value to a string");return o(l)}},6330:function(Y,I,n){var i=n(7854).String;Y.exports=function(o){try{return i(o)}catch(l){return"Object"}}},9843:function(Y,I,n){"use strict";var c=n(2109),i=n(7854),o=n(6916),l=n(9781),h=n(3832),a=n(2094),g=n(2091),E=n(5787),u=n(9114),C=n(8880),e=n(5988),f=n(7466),B=n(7067),w=n(4590),Q=n(4948),p=n(2597),S=n(648),m=n(111),d=n(2190),v=n(30),D=n(7976),U=n(7674),T=n(8006).f,F=n(7321),z=n(2092).forEach,b=n(6340),Z=n(3070),aA=n(1236),AA=n(9909),lA=n(9587),MA=AA.get,cA=AA.set,gA=Z.f,BA=aA.f,DA=Math.round,FA=i.RangeError,_=g.ArrayBuffer,dA=_.prototype,uA=g.DataView,CA=a.NATIVE_ARRAY_BUFFER_VIEWS,SA=a.TYPED_ARRAY_CONSTRUCTOR,bA=a.TYPED_ARRAY_TAG,XA=a.TypedArray,q=a.TypedArrayPrototype,O=a.aTypedArrayConstructor,$=a.isTypedArray,W="BYTES_PER_ELEMENT",hA="Wrong length",mA=function(TA,it){O(TA);for(var mt=0,It=it.length,ft=new TA(It);It>mt;)ft[mt]=it[mt++];return ft},nA=function(TA,it){gA(TA,it,{get:function(){return MA(this)[it]}})},EA=function(TA){var it;return D(dA,TA)||"ArrayBuffer"==(it=S(TA))||"SharedArrayBuffer"==it},GA=function(TA,it){return $(TA)&&!d(it)&&it in TA&&e(+it)&&it>=0},et=function(it,mt){return mt=Q(mt),GA(it,mt)?u(2,it[mt]):BA(it,mt)},ot=function(it,mt,It){return mt=Q(mt),!(GA(it,mt)&&m(It)&&p(It,"value"))||p(It,"get")||p(It,"set")||It.configurable||p(It,"writable")&&!It.writable||p(It,"enumerable")&&!It.enumerable?gA(it,mt,It):(it[mt]=It.value,it)};l?(CA||(aA.f=et,Z.f=ot,nA(q,"buffer"),nA(q,"byteOffset"),nA(q,"byteLength"),nA(q,"length")),c({target:"Object",stat:!0,forced:!CA},{getOwnPropertyDescriptor:et,defineProperty:ot}),Y.exports=function(TA,it,mt){var It=TA.match(/\d+$/)[0]/8,ft=TA+(mt?"Clamped":"")+"Array",JA="get"+TA,WA="set"+TA,rt=i[ft],yA=rt,Mt=yA&&yA.prototype,ht={},H=function(k,R){gA(k,R,{get:function(){return function(k,R){var QA=MA(k);return QA.view[JA](R*It+QA.byteOffset,!0)}(this,R)},set:function(QA){return function(k,R,QA){var wA=MA(k);mt&&(QA=(QA=DA(QA))<0?0:QA>255?255:255&QA),wA.view[WA](R*It+wA.byteOffset,QA,!0)}(this,R,QA)},enumerable:!0})};CA?h&&(yA=it(function(k,R,QA,wA){return E(k,Mt),lA(m(R)?EA(R)?void 0!==wA?new rt(R,w(QA,It),wA):void 0!==QA?new rt(R,w(QA,It)):new rt(R):$(R)?mA(yA,R):o(F,yA,R):new rt(B(R)),k,yA)}),U&&U(yA,XA),z(T(rt),function(k){k in yA||C(yA,k,rt[k])}),yA.prototype=Mt):(yA=it(function(k,R,QA,wA){E(k,Mt);var ct,Ft,j,RA=0,rA=0;if(m(R)){if(!EA(R))return $(R)?mA(yA,R):o(F,yA,R);ct=R,rA=w(QA,It);var kA=R.byteLength;if(void 0===wA){if(kA%It||(Ft=kA-rA)<0)throw FA(hA)}else if((Ft=f(wA)*It)+rA>kA)throw FA(hA);j=Ft/It}else j=B(R),ct=new _(Ft=j*It);for(cA(k,{buffer:ct,byteOffset:rA,byteLength:Ft,length:j,view:new uA(ct)});RA1?arguments[1]:void 0,p=void 0!==Q,S=g(B);if(S&&!E(S))for(T=(U=a(B,S)).next,B=[];!(D=i(T,U)).done;)B.push(D.value);for(p&&w>2&&(Q=c(Q,arguments[2])),d=h(B),v=new(u(f))(d),m=0;d>m;m++)v[m]=p?Q(B[m],m):B[m];return v}},6304:function(Y,I,n){var c=n(2094),i=n(6707),o=c.TYPED_ARRAY_CONSTRUCTOR,l=c.aTypedArrayConstructor;Y.exports=function(h){return l(i(h,h[o]))}},9711:function(Y,I,n){var c=n(1702),i=0,o=Math.random(),l=c(1..toString);Y.exports=function(h){return"Symbol("+(void 0===h?"":h)+")_"+l(++i+o,36)}},3307:function(Y,I,n){var c=n(133);Y.exports=c&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:function(Y,I,n){var c=n(5112);I.f=c},5112:function(Y,I,n){var c=n(7854),i=n(2309),o=n(2597),l=n(9711),h=n(133),a=n(3307),g=i("wks"),E=c.Symbol,u=E&&E.for,C=a?E:E&&E.withoutSetter||l;Y.exports=function(e){if(!o(g,e)||!h&&"string"!=typeof g[e]){var f="Symbol."+e;g[e]=h&&o(E,e)?E[e]:a&&u?u(f):C(f)}return g[e]}},1361:function(Y){Y.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},9170:function(Y,I,n){"use strict";var c=n(2109),i=n(7854),o=n(7976),l=n(9518),h=n(7674),a=n(9920),g=n(30),E=n(8880),u=n(9114),C=n(7741),e=n(8340),f=n(408),B=n(6277),w=n(2914),Q=i.Error,p=[].push,S=function(v,D){var U=o(m,this)?this:g(m),T=arguments.length>2?arguments[2]:void 0;h&&(U=h(new Q(void 0),l(U))),E(U,"message",B(D,"")),w&&E(U,"stack",C(U.stack,1)),e(U,T);var F=[];return f(v,p,{that:F}),E(U,"errors",F),U};h?h(S,Q):a(S,Q);var m=S.prototype=g(Q.prototype,{constructor:u(1,S),message:u(1,""),name:u(1,"AggregateError")});c({global:!0},{AggregateError:S})},2222:function(Y,I,n){"use strict";var c=n(2109),i=n(7854),o=n(7293),l=n(3157),h=n(111),a=n(7908),g=n(6244),E=n(6135),u=n(5417),C=n(1194),e=n(5112),f=n(7392),B=e("isConcatSpreadable"),w=9007199254740991,Q="Maximum allowed index exceeded",p=i.TypeError,S=f>=51||!o(function(){var D=[];return D[B]=!1,D.concat()[0]!==D}),m=C("concat"),d=function(D){if(!h(D))return!1;var U=D[B];return void 0!==U?!!U:l(D)};c({target:"Array",proto:!0,forced:!S||!m},{concat:function(U){var b,Z,aA,AA,lA,T=a(this),F=u(T,0),z=0;for(b=-1,aA=arguments.length;bw)throw p(Q);for(Z=0;Z=w)throw p(Q);E(F,z++,lA)}return F.length=z,F}})},545:function(Y,I,n){var c=n(2109),i=n(1048),o=n(1223);c({target:"Array",proto:!0},{copyWithin:i}),o("copyWithin")},3290:function(Y,I,n){var c=n(2109),i=n(1285),o=n(1223);c({target:"Array",proto:!0},{fill:i}),o("fill")},7327:function(Y,I,n){"use strict";var c=n(2109),i=n(2092).filter;c({target:"Array",proto:!0,forced:!n(1194)("filter")},{filter:function(a){return i(this,a,arguments.length>1?arguments[1]:void 0)}})},1038:function(Y,I,n){var c=n(2109),i=n(8457);c({target:"Array",stat:!0,forced:!n(7072)(function(h){Array.from(h)})},{from:i})},6699:function(Y,I,n){"use strict";var c=n(2109),i=n(1318).includes,o=n(1223);c({target:"Array",proto:!0},{includes:function(h){return i(this,h,arguments.length>1?arguments[1]:void 0)}}),o("includes")},6992:function(Y,I,n){"use strict";var c=n(5656),i=n(1223),o=n(7497),l=n(9909),h=n(654),a="Array Iterator",g=l.set,E=l.getterFor(a);Y.exports=h(Array,"Array",function(u,C){g(this,{type:a,target:c(u),index:0,kind:C})},function(){var u=E(this),C=u.target,e=u.kind,f=u.index++;return!C||f>=C.length?(u.target=void 0,{value:void 0,done:!0}):"keys"==e?{value:f,done:!1}:"values"==e?{value:C[f],done:!1}:{value:[f,C[f]],done:!1}},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},9600:function(Y,I,n){"use strict";var c=n(2109),i=n(1702),o=n(8361),l=n(5656),h=n(9341),a=i([].join),g=o!=Object,E=h("join",",");c({target:"Array",proto:!0,forced:g||!E},{join:function(C){return a(l(this),void 0===C?",":C)}})},1249:function(Y,I,n){"use strict";var c=n(2109),i=n(2092).map;c({target:"Array",proto:!0,forced:!n(1194)("map")},{map:function(a){return i(this,a,arguments.length>1?arguments[1]:void 0)}})},7042:function(Y,I,n){"use strict";var c=n(2109),i=n(7854),o=n(3157),l=n(4411),h=n(111),a=n(1400),g=n(6244),E=n(5656),u=n(6135),C=n(5112),e=n(1194),f=n(206),B=e("slice"),w=C("species"),Q=i.Array,p=Math.max;c({target:"Array",proto:!0,forced:!B},{slice:function(m,d){var F,z,b,v=E(this),D=g(v),U=a(m,D),T=a(void 0===d?D:d,D);if(o(v)&&((l(F=v.constructor)&&(F===Q||o(F.prototype))||h(F)&&null===(F=F[w]))&&(F=void 0),F===Q||void 0===F))return f(v,U,T);for(z=new(void 0===F?Q:F)(p(T-U,0)),b=0;U3)){if(e)return!0;if(B)return B<603;var F,z,b,Z,T="";for(F=65;F<76;F++){switch(z=String.fromCharCode(F),F){case 66:case 69:case 70:case 72:b=3;break;case 68:case 71:b=4;break;default:b=2}for(Z=0;Z<47;Z++)w.push({k:z+Z,v:b})}for(w.sort(function(aA,AA){return AA.v-aA.v}),Z=0;Za(z)?1:-1}}(F)),aA=b.length,AA=0;AAw)throw e(Q);for(z=g(d,F),b=0;bv-F+T;b--)delete d[b-1]}else if(T>F)for(b=v-F;b>D;b--)aA=b+T-1,(Z=b+F-1)in d?d[aA]=d[Z]:delete d[aA];for(b=0;b2)if(lA=p(lA),43===(MA=U(lA,0))||45===MA){if(88===(cA=U(lA,2))||120===cA)return NaN}else if(48===MA){switch(U(lA,1)){case 66:case 98:gA=2,BA=49;break;case 79:case 111:gA=8,BA=55;break;default:return+lA}for(FA=(DA=D(lA,2)).length,_=0;_BA)return NaN;return parseInt(DA,gA)}return+lA};if(l(S,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var aA,z=function(lA){var MA=arguments.length<1?0:m(T(lA)),cA=this;return E(d,cA)&&e(function(){Q(cA)})?g(Object(MA),cA,z):MA},b=c?f(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Z=0;b.length>Z;Z++)a(m,aA=b[Z])&&!a(z,aA)&&w(z,aA,B(m,aA));z.prototype=d,d.constructor=z,h(i,S,z)}},3299:function(Y,I,n){n(2109)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},5192:function(Y,I,n){n(2109)({target:"Number",stat:!0},{isFinite:n(7023)})},3161:function(Y,I,n){n(2109)({target:"Number",stat:!0},{isInteger:n(5988)})},6977:function(Y,I,n){"use strict";var c=n(2109),i=n(7854),o=n(1702),l=n(9303),h=n(863),a=n(8415),g=n(7293),E=i.RangeError,u=i.String,C=Math.floor,e=o(a),f=o("".slice),B=o(1..toFixed),w=function(v,D,U){return 0===D?U:D%2==1?w(v,D-1,U*v):w(v*v,D/2,U)},p=function(v,D,U){for(var T=-1,F=U;++T<6;)v[T]=(F+=D*v[T])%1e7,F=C(F/1e7)},S=function(v,D){for(var U=6,T=0;--U>=0;)v[U]=C((T+=v[U])/D),T=T%D*1e7},m=function(v){for(var D=6,U="";--D>=0;)if(""!==U||0===D||0!==v[D]){var T=u(v[D]);U=""===U?T:U+e("0",7-T.length)+T}return U};c({target:"Number",proto:!0,forced:g(function(){return"0.000"!==B(8e-5,3)||"1"!==B(.9,0)||"1.25"!==B(1.255,2)||"1000000000000000128"!==B(0xde0b6b3a7640080,0)})||!g(function(){B({})})},{toFixed:function(D){var Z,aA,AA,lA,U=h(this),T=l(D),F=[0,0,0,0,0,0],z="",b="0";if(T<0||T>20)throw E("Incorrect fraction digits");if(U!=U)return"NaN";if(U<=-1e21||U>=1e21)return u(U);if(U<0&&(z="-",U=-U),U>1e-21)if(aA=(Z=function(v){for(var D=0,U=v;U>=4096;)D+=12,U/=4096;for(;U>=2;)D+=1,U/=2;return D}(U*w(2,69,1))-69)<0?U*w(2,-Z,1):U/w(2,Z,1),aA*=4503599627370496,(Z=52-Z)>0){for(p(F,0,aA),AA=T;AA>=7;)p(F,1e7,0),AA-=7;for(p(F,w(10,AA,1),0),AA=Z-1;AA>=23;)S(F,8388608),AA-=23;S(F,1<0?z+((lA=b.length)<=T?"0."+e("0",T-lA)+b:f(b,0,lA-T)+"."+f(b,lA-T)):z+b}})},9601:function(Y,I,n){var c=n(2109),i=n(1574);c({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},3371:function(Y,I,n){var c=n(2109),i=n(6677),o=n(7293),l=n(111),h=n(2423).onFreeze,a=Object.freeze;c({target:"Object",stat:!0,forced:o(function(){a(1)}),sham:!i},{freeze:function(u){return a&&l(u)?a(h(u)):u}})},5003:function(Y,I,n){var c=n(2109),i=n(7293),o=n(5656),l=n(1236).f,h=n(9781),a=i(function(){l(1)});c({target:"Object",stat:!0,forced:!h||a,sham:!h},{getOwnPropertyDescriptor:function(u,C){return l(o(u),C)}})},9337:function(Y,I,n){var c=n(2109),i=n(9781),o=n(3887),l=n(5656),h=n(1236),a=n(6135);c({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(E){for(var w,Q,u=l(E),C=h.f,e=o(u),f={},B=0;e.length>B;)void 0!==(Q=C(u,w=e[B++]))&&a(f,w,Q);return f}})},489:function(Y,I,n){var c=n(2109),i=n(7293),o=n(7908),l=n(9518),h=n(8544);c({target:"Object",stat:!0,forced:i(function(){l(1)}),sham:!h},{getPrototypeOf:function(E){return l(o(E))}})},7941:function(Y,I,n){var c=n(2109),i=n(7908),o=n(1956);c({target:"Object",stat:!0,forced:n(7293)(function(){o(1)})},{keys:function(g){return o(i(g))}})},1539:function(Y,I,n){var c=n(1694),i=n(1320),o=n(288);c||i(Object.prototype,"toString",o,{unsafe:!0})},2479:function(Y,I,n){var c=n(2109),i=n(4699).values;c({target:"Object",stat:!0},{values:function(l){return i(l)}})},7922:function(Y,I,n){"use strict";var c=n(2109),i=n(6916),o=n(9662),l=n(8523),h=n(2534),a=n(408);c({target:"Promise",stat:!0},{allSettled:function(E){var u=this,C=l.f(u),e=C.resolve,f=C.reject,B=h(function(){var w=o(u.resolve),Q=[],p=0,S=1;a(E,function(m){var d=p++,v=!1;S++,i(w,u,m).then(function(D){v||(v=!0,Q[d]={status:"fulfilled",value:D},--S||e(Q))},function(D){v||(v=!0,Q[d]={status:"rejected",reason:D},--S||e(Q))})}),--S||e(Q)});return B.error&&f(B.value),C.promise}})},4668:function(Y,I,n){"use strict";var c=n(2109),i=n(9662),o=n(5005),l=n(6916),h=n(8523),a=n(2534),g=n(408),E="No one promise resolved";c({target:"Promise",stat:!0},{any:function(C){var e=this,f=o("AggregateError"),B=h.f(e),w=B.resolve,Q=B.reject,p=a(function(){var S=i(e.resolve),m=[],d=0,v=1,D=!1;g(C,function(U){var T=d++,F=!1;v++,l(S,e,U).then(function(z){F||D||(D=!0,w(z))},function(z){F||D||(F=!0,m[T]=z,--v||Q(new f(m,E)))})}),--v||Q(new f(m,E))});return p.error&&Q(p.value),B.promise}})},7727:function(Y,I,n){"use strict";var c=n(2109),i=n(1913),o=n(3366),l=n(7293),h=n(5005),a=n(614),g=n(6707),E=n(9478),u=n(1320);if(c({target:"Promise",proto:!0,real:!0,forced:!!o&&l(function(){o.prototype.finally.call({then:function(){}},function(){})})},{finally:function(f){var B=g(this,h("Promise")),w=a(f);return this.then(w?function(Q){return E(B,f()).then(function(){return Q})}:f,w?function(Q){return E(B,f()).then(function(){throw Q})}:f)}}),!i&&a(o)){var e=h("Promise").prototype.finally;o.prototype.finally!==e&&u(o.prototype,"finally",e,{unsafe:!0})}},8674:function(Y,I,n){"use strict";var TA,it,mt,It,c=n(2109),i=n(1913),o=n(7854),l=n(5005),h=n(6916),a=n(3366),g=n(1320),E=n(2248),u=n(7674),C=n(8003),e=n(6340),f=n(9662),B=n(614),w=n(111),Q=n(5787),p=n(2788),S=n(408),m=n(7072),d=n(6707),v=n(261).set,D=n(5948),U=n(9478),T=n(842),F=n(8523),z=n(2534),b=n(9909),Z=n(4705),aA=n(5112),AA=n(7871),lA=n(5268),MA=n(7392),cA=aA("species"),gA="Promise",BA=b.get,DA=b.set,FA=b.getterFor(gA),_=a&&a.prototype,dA=a,uA=_,CA=o.TypeError,SA=o.document,bA=o.process,XA=F.f,q=XA,O=!!(SA&&SA.createEvent&&o.dispatchEvent),$=B(o.PromiseRejectionEvent),W="unhandledrejection",ot=!1,ft=Z(gA,function(){var R=p(dA),QA=R!==String(dA);if(!QA&&66===MA||i&&!uA.finally)return!0;if(MA>=51&&/native code/.test(R))return!1;var wA=new dA(function(ct){ct(1)}),RA=function(ct){ct(function(){},function(){})};return(wA.constructor={})[cA]=RA,!(ot=wA.then(function(){})instanceof RA)||!QA&&AA&&!$}),JA=ft||!m(function(R){dA.all(R).catch(function(){})}),WA=function(R){var QA;return!(!w(R)||!B(QA=R.then))&&QA},rt=function(R,QA){if(!R.notified){R.notified=!0;var wA=R.reactions;D(function(){for(var RA=R.value,rA=1==R.state,ct=0;wA.length>ct;){var KA,st,Lt,Ft=wA[ct++],j=rA?Ft.ok:Ft.fail,kA=Ft.resolve,At=Ft.reject,xA=Ft.domain;try{j?(rA||(2===R.rejection&&OA(R),R.rejection=1),!0===j?KA=RA:(xA&&xA.enter(),KA=j(RA),xA&&(xA.exit(),Lt=!0)),KA===Ft.promise?At(CA("Promise-chain cycle")):(st=WA(KA))?h(st,KA,kA,At):kA(KA)):At(RA)}catch(Dt){xA&&!Lt&&xA.exit(),At(Dt)}}R.reactions=[],R.notified=!1,QA&&!R.rejection&&Mt(R)})}},yA=function(R,QA,wA){var RA,rA;O?((RA=SA.createEvent("Event")).promise=QA,RA.reason=wA,RA.initEvent(R,!1,!0),o.dispatchEvent(RA)):RA={promise:QA,reason:wA},!$&&(rA=o["on"+R])?rA(RA):R===W&&T("Unhandled promise rejection",wA)},Mt=function(R){h(v,o,function(){var rA,QA=R.facade,wA=R.value;if(ht(R)&&(rA=z(function(){lA?bA.emit("unhandledRejection",wA,QA):yA(W,QA,wA)}),R.rejection=lA||ht(R)?2:1,rA.error))throw rA.value})},ht=function(R){return 1!==R.rejection&&!R.parent},OA=function(R){h(v,o,function(){var QA=R.facade;lA?bA.emit("rejectionHandled",QA):yA("rejectionhandled",QA,R.value)})},Yt=function(R,QA,wA){return function(RA){R(QA,RA,wA)}},H=function(R,QA,wA){R.done||(R.done=!0,wA&&(R=wA),R.value=QA,R.state=2,rt(R,!0))},k=function(R,QA,wA){if(!R.done){R.done=!0,wA&&(R=wA);try{if(R.facade===QA)throw CA("Promise can't be resolved itself");var RA=WA(QA);RA?D(function(){var rA={done:!1};try{h(RA,QA,Yt(k,rA,R),Yt(H,rA,R))}catch(ct){H(rA,ct,R)}}):(R.value=QA,R.state=1,rt(R,!1))}catch(rA){H({done:!1},rA,R)}}};if(ft&&(dA=function(QA){Q(this,uA),f(QA),h(TA,this);var wA=BA(this);try{QA(Yt(k,wA),Yt(H,wA))}catch(RA){H(wA,RA)}},(TA=function(QA){DA(this,{type:gA,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=E(uA=dA.prototype,{then:function(QA,wA){var RA=FA(this),rA=RA.reactions,ct=XA(d(this,dA));return ct.ok=!B(QA)||QA,ct.fail=B(wA)&&wA,ct.domain=lA?bA.domain:void 0,RA.parent=!0,rA[rA.length]=ct,0!=RA.state&&rt(RA,!1),ct.promise},catch:function(R){return this.then(void 0,R)}}),it=function(){var R=new TA,QA=BA(R);this.promise=R,this.resolve=Yt(k,QA),this.reject=Yt(H,QA)},F.f=XA=function(R){return R===dA||R===mt?new it(R):q(R)},!i&&B(a)&&_!==Object.prototype)){It=_.then,ot||(g(_,"then",function(QA,wA){var RA=this;return new dA(function(rA,ct){h(It,RA,rA,ct)}).then(QA,wA)},{unsafe:!0}),g(_,"catch",uA.catch,{unsafe:!0}));try{delete _.constructor}catch(R){}u&&u(_,uA)}c({global:!0,wrap:!0,forced:ft},{Promise:dA}),C(dA,gA,!1,!0),e(gA),mt=l(gA),c({target:gA,stat:!0,forced:ft},{reject:function(QA){var wA=XA(this);return h(wA.reject,void 0,QA),wA.promise}}),c({target:gA,stat:!0,forced:i||ft},{resolve:function(QA){return U(i&&this===mt?dA:this,QA)}}),c({target:gA,stat:!0,forced:JA},{all:function(QA){var wA=this,RA=XA(wA),rA=RA.resolve,ct=RA.reject,Ft=z(function(){var j=f(wA.resolve),kA=[],At=0,xA=1;S(QA,function(KA){var st=At++,Lt=!1;xA++,h(j,wA,KA).then(function(Dt){Lt||(Lt=!0,kA[st]=Dt,--xA||rA(kA))},ct)}),--xA||rA(kA)});return Ft.error&&ct(Ft.value),RA.promise},race:function(QA){var wA=this,RA=XA(wA),rA=RA.reject,ct=z(function(){var Ft=f(wA.resolve);S(QA,function(j){h(Ft,wA,j).then(RA.resolve,rA)})});return ct.error&&rA(ct.value),RA.promise}})},2419:function(Y,I,n){var c=n(2109),i=n(5005),o=n(2104),l=n(7065),h=n(9483),a=n(9670),g=n(111),E=n(30),u=n(7293),C=i("Reflect","construct"),e=Object.prototype,f=[].push,B=u(function(){function p(){}return!(C(function(){},[],p)instanceof p)}),w=!u(function(){C(function(){})}),Q=B||w;c({target:"Reflect",stat:!0,forced:Q,sham:Q},{construct:function(S,m){h(S),a(m);var d=arguments.length<3?S:h(arguments[2]);if(w&&!B)return C(S,m,d);if(S==d){switch(m.length){case 0:return new S;case 1:return new S(m[0]);case 2:return new S(m[0],m[1]);case 3:return new S(m[0],m[1],m[2]);case 4:return new S(m[0],m[1],m[2],m[3])}var v=[null];return o(f,v,m),new(o(l,S,v))}var D=d.prototype,U=E(g(D)?D:e),T=o(S,U,m);return g(T)?T:U}})},4916:function(Y,I,n){"use strict";var c=n(2109),i=n(2261);c({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},2087:function(Y,I,n){var c=n(9781),i=n(3070),o=n(7066),l=n(7293),h=RegExp.prototype;c&&l(function(){return"sy"!==Object.getOwnPropertyDescriptor(h,"flags").get.call({dotAll:!0,sticky:!0})})&&i.f(h,"flags",{configurable:!0,get:o})},9714:function(Y,I,n){"use strict";var c=n(1702),i=n(6530).PROPER,o=n(1320),l=n(9670),h=n(7976),a=n(1340),g=n(7293),E=n(7066),u="toString",C=RegExp.prototype,e=C[u],f=c(E);(g(function(){return"/a/b"!=e.call({source:"a",flags:"b"})})||i&&e.name!=u)&&o(RegExp.prototype,u,function(){var p=l(this),S=a(p.source),m=p.flags;return"/"+S+"/"+a(void 0===m&&h(C,p)&&!("flags"in C)?f(p):m)},{unsafe:!0})},189:function(Y,I,n){"use strict";n(7710)("Set",function(o){return function(){return o(this,arguments.length?arguments[0]:void 0)}},n(5631))},9841:function(Y,I,n){"use strict";var c=n(2109),i=n(8710).codeAt;c({target:"String",proto:!0},{codePointAt:function(l){return i(this,l)}})},4953:function(Y,I,n){var c=n(2109),i=n(7854),o=n(1702),l=n(1400),h=i.RangeError,a=String.fromCharCode,g=String.fromCodePoint,E=o([].join);c({target:"String",stat:!0,forced:!!g&&1!=g.length},{fromCodePoint:function(e){for(var Q,f=[],B=arguments.length,w=0;B>w;){if(Q=+arguments[w++],l(Q,1114111)!==Q)throw h(Q+" is not a valid code point");f[w]=Q<65536?a(Q):a(55296+((Q-=65536)>>10),Q%1024+56320)}return E(f,"")}})},2023:function(Y,I,n){"use strict";var c=n(2109),i=n(1702),o=n(3929),l=n(4488),h=n(1340),a=n(4964),g=i("".indexOf);c({target:"String",proto:!0,forced:!a("includes")},{includes:function(u){return!!~g(h(l(this)),h(o(u)),arguments.length>1?arguments[1]:void 0)}})},8734:function(Y,I,n){"use strict";var c=n(2109),i=n(4230);c({target:"String",proto:!0,forced:n(3429)("italics")},{italics:function(){return i(this,"i","","")}})},8783:function(Y,I,n){"use strict";var c=n(8710).charAt,i=n(1340),o=n(9909),l=n(654),h="String Iterator",a=o.set,g=o.getterFor(h);l(String,"String",function(E){a(this,{type:h,string:i(E),index:0})},function(){var f,u=g(this),C=u.string,e=u.index;return e>=C.length?{value:void 0,done:!0}:(f=c(C,e),u.index+=f.length,{value:f,done:!1})})},9254:function(Y,I,n){"use strict";var c=n(2109),i=n(4230);c({target:"String",proto:!0,forced:n(3429)("link")},{link:function(h){return i(this,"a","href",h)}})},6373:function(Y,I,n){"use strict";var c=n(2109),i=n(7854),o=n(6916),l=n(1702),h=n(4994),a=n(4488),g=n(7466),E=n(1340),u=n(9670),C=n(4326),e=n(7976),f=n(7850),B=n(7066),w=n(8173),Q=n(1320),p=n(7293),S=n(5112),m=n(6707),d=n(1530),v=n(7651),D=n(9909),U=n(1913),T=S("matchAll"),F="RegExp String",z=F+" Iterator",b=D.set,Z=D.getterFor(z),aA=RegExp.prototype,AA=i.TypeError,lA=l(B),MA=l("".indexOf),cA=l("".matchAll),gA=!!cA&&!p(function(){cA("a",/./)}),BA=h(function(_,dA,uA,CA){b(this,{type:z,regexp:_,string:dA,global:uA,unicode:CA,done:!1})},F,function(){var _=Z(this);if(_.done)return{value:void 0,done:!0};var dA=_.regexp,uA=_.string,CA=v(dA,uA);return null===CA?{value:void 0,done:_.done=!0}:_.global?(""===E(CA[0])&&(dA.lastIndex=d(uA,g(dA.lastIndex),_.unicode)),{value:CA,done:!1}):(_.done=!0,{value:CA,done:!1})}),DA=function(FA){var uA,CA,SA,bA,XA,q,_=u(this),dA=E(FA);return uA=m(_,RegExp),void 0===(CA=_.flags)&&e(aA,_)&&!("flags"in aA)&&(CA=lA(_)),SA=void 0===CA?"":E(CA),bA=new uA(uA===RegExp?_.source:_,SA),XA=!!~MA(SA,"g"),q=!!~MA(SA,"u"),bA.lastIndex=g(_.lastIndex),new BA(bA,dA,XA,q)};c({target:"String",proto:!0,forced:gA},{matchAll:function(_){var uA,CA,SA,bA,dA=a(this);if(null!=_){if(f(_)&&(uA=E(a("flags"in aA?_.flags:lA(_))),!~MA(uA,"g")))throw AA("`.matchAll` does not allow non-global regexes");if(gA)return cA(dA,_);if(void 0===(SA=w(_,T))&&U&&"RegExp"==C(_)&&(SA=DA),SA)return o(SA,_,dA)}else if(gA)return cA(dA,_);return CA=E(dA),bA=new RegExp(_,"g"),U?o(DA,bA,CA):bA[T](CA)}}),U||T in aA||Q(aA,T,DA)},4723:function(Y,I,n){"use strict";var c=n(6916),i=n(7007),o=n(9670),l=n(7466),h=n(1340),a=n(4488),g=n(8173),E=n(1530),u=n(7651);i("match",function(C,e,f){return[function(w){var Q=a(this),p=null==w?void 0:g(w,C);return p?c(p,w,Q):new RegExp(w)[C](h(Q))},function(B){var w=o(this),Q=h(B),p=f(e,w,Q);if(p.done)return p.value;if(!w.global)return u(w,Q);var S=w.unicode;w.lastIndex=0;for(var v,m=[],d=0;null!==(v=u(w,Q));){var D=h(v[0]);m[d]=D,""===D&&(w.lastIndex=E(Q,l(w.lastIndex),S)),d++}return 0===d?null:m}]})},2481:function(Y,I,n){n(2109)({target:"String",proto:!0},{repeat:n(8415)})},5306:function(Y,I,n){"use strict";var c=n(2104),i=n(6916),o=n(1702),l=n(7007),h=n(7293),a=n(9670),g=n(614),E=n(9303),u=n(7466),C=n(1340),e=n(4488),f=n(1530),B=n(8173),w=n(647),Q=n(7651),S=n(5112)("replace"),m=Math.max,d=Math.min,v=o([].concat),D=o([].push),U=o("".indexOf),T=o("".slice),F=function(aA){return void 0===aA?aA:String(aA)},z="$0"==="a".replace(/./,"$0"),b=!!/./[S]&&""===/./[S]("a","$0");l("replace",function(aA,AA,lA){var MA=b?"$":"$0";return[function(gA,BA){var DA=e(this),FA=null==gA?void 0:B(gA,S);return FA?i(FA,gA,DA,BA):i(AA,C(DA),gA,BA)},function(cA,gA){var BA=a(this),DA=C(cA);if("string"==typeof gA&&-1===U(gA,MA)&&-1===U(gA,"$<")){var FA=lA(AA,BA,DA,gA);if(FA.done)return FA.value}var _=g(gA);_||(gA=C(gA));var dA=BA.global;if(dA){var uA=BA.unicode;BA.lastIndex=0}for(var CA=[];;){var SA=Q(BA,DA);if(null===SA||(D(CA,SA),!dA))break;""===C(SA[0])&&(BA.lastIndex=f(DA,u(BA.lastIndex),uA))}for(var XA="",q=0,O=0;O=q&&(XA+=T(DA,q,W)+GA,q=W+$.length)}return XA+T(DA,q)}]},!!h(function(){var aA=/./;return aA.exec=function(){var AA=[];return AA.groups={a:"7"},AA},"7"!=="".replace(aA,"$")})||!z||b)},3123:function(Y,I,n){"use strict";var c=n(2104),i=n(6916),o=n(1702),l=n(7007),h=n(7850),a=n(9670),g=n(4488),E=n(6707),u=n(1530),C=n(7466),e=n(1340),f=n(8173),B=n(206),w=n(7651),Q=n(2261),p=n(2999),S=n(7293),m=p.UNSUPPORTED_Y,d=4294967295,v=Math.min,D=[].push,U=o(/./.exec),T=o(D),F=o("".slice),z=!S(function(){var b=/(?:)/,Z=b.exec;b.exec=function(){return Z.apply(this,arguments)};var aA="ab".split(b);return 2!==aA.length||"a"!==aA[0]||"b"!==aA[1]});l("split",function(b,Z,aA){var AA;return AA="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(lA,MA){var cA=e(g(this)),gA=void 0===MA?d:MA>>>0;if(0===gA)return[];if(void 0===lA)return[cA];if(!h(lA))return i(Z,cA,lA,gA);for(var dA,uA,CA,BA=[],FA=0,_=new RegExp(lA.source,(lA.ignoreCase?"i":"")+(lA.multiline?"m":"")+(lA.unicode?"u":"")+(lA.sticky?"y":"")+"g");(dA=i(Q,_,cA))&&!((uA=_.lastIndex)>FA&&(T(BA,F(cA,FA,dA.index)),dA.length>1&&dA.index=gA));)_.lastIndex===dA.index&&_.lastIndex++;return FA===cA.length?(CA||!U(_,""))&&T(BA,""):T(BA,F(cA,FA)),BA.length>gA?B(BA,0,gA):BA}:"0".split(void 0,0).length?function(lA,MA){return void 0===lA&&0===MA?[]:i(Z,this,lA,MA)}:Z,[function(MA,cA){var gA=g(this),BA=null==MA?void 0:f(MA,b);return BA?i(BA,MA,gA,cA):i(AA,e(gA),MA,cA)},function(lA,MA){var cA=a(this),gA=e(lA),BA=aA(AA,cA,gA,MA,AA!==Z);if(BA.done)return BA.value;var DA=E(cA,RegExp),FA=cA.unicode,dA=new DA(m?"^(?:"+cA.source+")":cA,(cA.ignoreCase?"i":"")+(cA.multiline?"m":"")+(cA.unicode?"u":"")+(m?"g":"y")),uA=void 0===MA?d:MA>>>0;if(0===uA)return[];if(0===gA.length)return null===w(dA,gA)?[gA]:[];for(var CA=0,SA=0,bA=[];SA2?arguments[2]:void 0)})},8927:function(Y,I,n){"use strict";var c=n(2094),i=n(2092).every,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("every",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},3105:function(Y,I,n){"use strict";var c=n(2094),i=n(6916),o=n(1285),l=c.aTypedArray;(0,c.exportTypedArrayMethod)("fill",function(g){var E=arguments.length;return i(o,l(this),g,E>1?arguments[1]:void 0,E>2?arguments[2]:void 0)})},5035:function(Y,I,n){"use strict";var c=n(2094),i=n(2092).filter,o=n(3074),l=c.aTypedArray;(0,c.exportTypedArrayMethod)("filter",function(g){var E=i(l(this),g,arguments.length>1?arguments[1]:void 0);return o(this,E)})},7174:function(Y,I,n){"use strict";var c=n(2094),i=n(2092).findIndex,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("findIndex",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},4345:function(Y,I,n){"use strict";var c=n(2094),i=n(2092).find,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("find",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},4197:function(Y,I,n){n(9843)("Float32",function(i){return function(l,h,a){return i(this,l,h,a)}})},6495:function(Y,I,n){n(9843)("Float64",function(i){return function(l,h,a){return i(this,l,h,a)}})},2846:function(Y,I,n){"use strict";var c=n(2094),i=n(2092).forEach,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("forEach",function(a){i(o(this),a,arguments.length>1?arguments[1]:void 0)})},8145:function(Y,I,n){"use strict";var c=n(3832);(0,n(2094).exportTypedArrayStaticMethod)("from",n(7321),c)},4731:function(Y,I,n){"use strict";var c=n(2094),i=n(1318).includes,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("includes",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},7209:function(Y,I,n){"use strict";var c=n(2094),i=n(1318).indexOf,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("indexOf",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},5109:function(Y,I,n){n(9843)("Int16",function(i){return function(l,h,a){return i(this,l,h,a)}})},5125:function(Y,I,n){n(9843)("Int32",function(i){return function(l,h,a){return i(this,l,h,a)}})},7145:function(Y,I,n){n(9843)("Int8",function(i){return function(l,h,a){return i(this,l,h,a)}})},6319:function(Y,I,n){"use strict";var c=n(7854),i=n(1702),o=n(6530).PROPER,l=n(2094),h=n(6992),g=n(5112)("iterator"),E=c.Uint8Array,u=i(h.values),C=i(h.keys),e=i(h.entries),f=l.aTypedArray,B=l.exportTypedArrayMethod,w=E&&E.prototype[g],Q=!!w&&"values"===w.name,p=function(){return u(f(this))};B("entries",function(){return e(f(this))}),B("keys",function(){return C(f(this))}),B("values",p,o&&!Q),B(g,p,o&&!Q)},8867:function(Y,I,n){"use strict";var c=n(2094),i=n(1702),o=c.aTypedArray,l=c.exportTypedArrayMethod,h=i([].join);l("join",function(g){return h(o(this),g)})},7789:function(Y,I,n){"use strict";var c=n(2094),i=n(2104),o=n(6583),l=c.aTypedArray;(0,c.exportTypedArrayMethod)("lastIndexOf",function(g){var E=arguments.length;return i(o,l(this),E>1?[g,arguments[1]]:[g])})},3739:function(Y,I,n){"use strict";var c=n(2094),i=n(2092).map,o=n(6304),l=c.aTypedArray;(0,c.exportTypedArrayMethod)("map",function(g){return i(l(this),g,arguments.length>1?arguments[1]:void 0,function(E,u){return new(o(E))(u)})})},4483:function(Y,I,n){"use strict";var c=n(2094),i=n(3671).right,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("reduceRight",function(a){var g=arguments.length;return i(o(this),a,g,g>1?arguments[1]:void 0)})},9368:function(Y,I,n){"use strict";var c=n(2094),i=n(3671).left,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("reduce",function(a){var g=arguments.length;return i(o(this),a,g,g>1?arguments[1]:void 0)})},2056:function(Y,I,n){"use strict";var c=n(2094),i=c.aTypedArray,l=Math.floor;(0,c.exportTypedArrayMethod)("reverse",function(){for(var C,a=this,g=i(a).length,E=l(g/2),u=0;u1?arguments[1]:void 0,1),w=this.length,Q=h(f),p=o(Q),S=0;if(p+B>w)throw g("Wrong length");for(;SB;)Q[B]=e[B++];return Q},o(function(){new Int8Array(1).slice()}))},7462:function(Y,I,n){"use strict";var c=n(2094),i=n(2092).some,o=c.aTypedArray;(0,c.exportTypedArrayMethod)("some",function(a){return i(o(this),a,arguments.length>1?arguments[1]:void 0)})},3824:function(Y,I,n){"use strict";var c=n(7854),i=n(1702),o=n(7293),l=n(9662),h=n(4362),a=n(2094),g=n(8886),E=n(256),u=n(7392),C=n(8008),e=c.Array,f=a.aTypedArray,B=a.exportTypedArrayMethod,w=c.Uint16Array,Q=w&&i(w.prototype.sort),p=!(!Q||o(function(){Q(new w(2),null)})&&o(function(){Q(new w(2),{})})),S=!!Q&&!o(function(){if(u)return u<74;if(g)return g<67;if(E)return!0;if(C)return C<602;var D,U,d=new w(516),v=e(516);for(D=0;D<516;D++)U=D%4,d[D]=515-D,v[D]=D-2*U+3;for(Q(d,function(T,F){return(T/4|0)-(F/4|0)}),D=0;D<516;D++)if(d[D]!==v[D])return!0});B("sort",function(v){return void 0!==v&&l(v),S?Q(this,v):h(f(this),(d=v,function(v,D){return void 0!==d?+d(v,D)||0:D!=D?-1:v!=v?1:0===v&&0===D?1/v>0&&1/D<0?1:-1:v>D}));var d},!S||p)},5021:function(Y,I,n){"use strict";var c=n(2094),i=n(7466),o=n(1400),l=n(6304),h=c.aTypedArray;(0,c.exportTypedArrayMethod)("subarray",function(E,u){var C=h(this),e=C.length,f=o(E,e);return new(l(C))(C.buffer,C.byteOffset+f*C.BYTES_PER_ELEMENT,i((void 0===u?e:o(u,e))-f))})},2974:function(Y,I,n){"use strict";var c=n(7854),i=n(2104),o=n(2094),l=n(7293),h=n(206),a=c.Int8Array,g=o.aTypedArray,E=o.exportTypedArrayMethod,u=[].toLocaleString,C=!!a&&l(function(){u.call(new a(1))});E("toLocaleString",function(){return i(u,C?h(g(this)):g(this),h(arguments))},l(function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()})||!l(function(){a.prototype.toLocaleString.call([1,2])}))},5016:function(Y,I,n){"use strict";var c=n(2094).exportTypedArrayMethod,i=n(7293),o=n(7854),l=n(1702),h=o.Uint8Array,a=h&&h.prototype||{},g=[].toString,E=l([].join);i(function(){g.call({})})&&(g=function(){return E(this)}),c("toString",g,a.toString!=g)},8255:function(Y,I,n){n(9843)("Uint16",function(i){return function(l,h,a){return i(this,l,h,a)}})},9135:function(Y,I,n){n(9843)("Uint32",function(i){return function(l,h,a){return i(this,l,h,a)}})},2472:function(Y,I,n){n(9843)("Uint8",function(i){return function(l,h,a){return i(this,l,h,a)}})},9743:function(Y,I,n){n(9843)("Uint8",function(i){return function(l,h,a){return i(this,l,h,a)}},!0)},8628:function(Y,I,n){n(9170)},5743:function(Y,I,n){n(5837)},7314:function(Y,I,n){n(7922)},6290:function(Y,I,n){n(4668)},7479:function(Y,I,n){"use strict";var c=n(2109),i=n(8523),o=n(2534);c({target:"Promise",stat:!0},{try:function(l){var h=i.f(this),a=o(l);return(a.error?h.reject:h.resolve)(a.value),h.promise}})},3728:function(Y,I,n){n(6373)},4747:function(Y,I,n){var c=n(7854),i=n(8324),o=n(8509),l=n(8533),h=n(8880),a=function(E){if(E&&E.forEach!==l)try{h(E,"forEach",l)}catch(u){E.forEach=l}};for(var g in i)i[g]&&a(c[g]&&c[g].prototype);a(o)},3948:function(Y,I,n){var c=n(7854),i=n(8324),o=n(8509),l=n(6992),h=n(8880),a=n(5112),g=a("iterator"),E=a("toStringTag"),u=l.values,C=function(f,B){if(f){if(f[g]!==u)try{h(f,g,u)}catch(Q){f[g]=u}if(f[E]||h(f,E,B),i[B])for(var w in l)if(f[w]!==l[w])try{h(f,w,l[w])}catch(Q){f[w]=l[w]}}};for(var e in i)C(c[e]&&c[e].prototype,e);C(o,"DOMTokenList")},3753:function(Y,I,n){"use strict";var c=n(2109),i=n(6916);c({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},1150:function(Y,I,n){var c=n(7633);n(3948),Y.exports=c},251:function(Y,I,n){var c=n(2215),i=n(2584),o=n(609),l=n(8420),h=n(2847),a=n(8923),g=Date.prototype.getTime;function E(f,B,w){var Q=w||{};return!!(Q.strict?o(f,B):f===B)||(!f||!B||"object"!=typeof f&&"object"!=typeof B?Q.strict?o(f,B):f==B:function e(f,B,w){var Q,p;if(typeof f!=typeof B||u(f)||u(B)||f.prototype!==B.prototype||i(f)!==i(B))return!1;var S=l(f),m=l(B);if(S!==m)return!1;if(S||m)return f.source===B.source&&h(f)===h(B);if(a(f)&&a(B))return g.call(f)===g.call(B);var d=C(f),v=C(B);if(d!==v)return!1;if(d||v){if(f.length!==B.length)return!1;for(Q=0;Q=0;Q--)if(D[Q]!=U[Q])return!1;for(Q=D.length-1;Q>=0;Q--)if(!E(f[p=D[Q]],B[p],w))return!1;return!0}(f,B,Q))}function u(f){return null==f}function C(f){return!(!f||"object"!=typeof f||"number"!=typeof f.length||"function"!=typeof f.copy||"function"!=typeof f.slice||f.length>0&&"number"!=typeof f[0])}Y.exports=E},4289:function(Y,I,n){"use strict";var c=n(2215),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,l=Array.prototype.concat,h=Object.defineProperty,E=h&&function(){var e={};try{for(var f in h(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(B){return!1}}(),u=function(e,f,B,w){f in e&&(!function(e){return"function"==typeof e&&"[object Function]"===o.call(e)}(w)||!w())||(E?h(e,f,{configurable:!0,enumerable:!1,value:B,writable:!0}):e[f]=B)},C=function(e,f){var B=arguments.length>2?arguments[2]:{},w=c(f);i&&(w=l.call(w,Object.getOwnPropertySymbols(f)));for(var Q=0;Q0&&z.length>T&&!z.warned){z.warned=!0;var b=new Error("Possible EventEmitter memory leak detected. "+z.length+" "+String(v)+" listeners added. Use emitter.setMaxListeners() to increase limit");b.name="MaxListenersExceededWarning",b.emitter=d,b.type=v,b.count=z.length,function i(d){console&&console.warn&&console.warn(d)}(b)}return d}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function C(d,v,D){var U={fired:!1,wrapFn:void 0,target:d,type:v,listener:D},T=u.bind(U);return T.listener=D,U.wrapFn=T,T}function e(d,v,D){var U=d._events;if(void 0===U)return[];var T=U[v];return void 0===T?[]:"function"==typeof T?D?[T.listener||T]:[T]:D?function Q(d){for(var v=new Array(d.length),D=0;D0&&(z=D[0]),z instanceof Error)throw z;var b=new Error("Unhandled error."+(z?" ("+z.message+")":""));throw b.context=z,b}var Z=F[v];if(void 0===Z)return!1;if("function"==typeof Z)n(Z,this,D);else{var aA=Z.length,AA=B(Z,aA);for(U=0;U=0;z--)if(U[z]===D||U[z].listener===D){b=U[z].listener,F=z;break}if(F<0)return this;0===F?U.shift():function w(d,v){for(;v+1=0;T--)this.removeListener(v,D[T]);return this},l.prototype.listeners=function(v){return e(this,v,!0)},l.prototype.rawListeners=function(v){return e(this,v,!1)},l.listenerCount=function(d,v){return"function"==typeof d.listenerCount?d.listenerCount(v):f.call(d,v)},l.prototype.listenerCount=f,l.prototype.eventNames=function(){return this._eventsCount>0?c(this._events):[]}},2536:function(Y,I,n){var c=n(4275),i=n(7672);void 0===i.pdfMake&&(i.pdfMake=c),Y.exports=c},7672:function(Y,I,n){"use strict";Y.exports=function(){if("object"==typeof globalThis)return globalThis;var c;try{c=this||new Function("return this")()}catch(i){if("object"==typeof window)return window;if("object"==typeof self)return self;if(void 0!==n.g)return n.g}return c}()},9804:function(Y){var I=Object.prototype.hasOwnProperty,n=Object.prototype.toString;Y.exports=function(i,o,l){if("[object Function]"!==n.call(o))throw new TypeError("iterator must be a function");var h=i.length;if(h===+h)for(var a=0;a1&&"boolean"!=typeof aA)throw new l('"allowMissing" argument must be a boolean');var AA=F(Z),lA=AA.length>0?AA[0]:"",MA=z("%"+lA+"%",aA),cA=MA.name,gA=MA.value,BA=!1,DA=MA.alias;DA&&(lA=DA[0],d(AA,m([0,1],DA)));for(var FA=1,_=!0;FA=AA.length){var SA=a(gA,dA);gA=(_=!!SA)&&"get"in SA&&!("originalValue"in SA.get)?SA.get:gA[dA]}else _=S(gA,dA),gA=gA[dA];_&&!BA&&(B[cA]=gA)}}return gA}},1405:function(Y,I,n){"use strict";var c="undefined"!=typeof Symbol&&Symbol,i=n(5419);Y.exports=function(){return"function"==typeof c&&"function"==typeof Symbol&&"symbol"==typeof c("foo")&&"symbol"==typeof Symbol("bar")&&i()}},5419:function(Y){"use strict";Y.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var n={},c=Symbol("test"),i=Object(c);if("string"==typeof c||"[object Symbol]"!==Object.prototype.toString.call(c)||"[object Symbol]"!==Object.prototype.toString.call(i))return!1;for(c in n[c]=42,n)return!1;if("function"==typeof Object.keys&&0!==Object.keys(n).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(n).length)return!1;var l=Object.getOwnPropertySymbols(n);if(1!==l.length||l[0]!==c||!Object.prototype.propertyIsEnumerable.call(n,c))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var h=Object.getOwnPropertyDescriptor(n,c);if(42!==h.value||!0!==h.enumerable)return!1}return!0}},6410:function(Y,I,n){"use strict";var c=n(5419);Y.exports=function(){return c()&&!!Symbol.toStringTag}},7642:function(Y,I,n){"use strict";var c=n(8612);Y.exports=c.call(Function.call,Object.prototype.hasOwnProperty)},688:function(Y,I,n){"use strict";var c=n(7103).Buffer;I._dbcs=u;for(var i=-1,l=-10,h=-1e3,a=new Array(256),E=0;E<256;E++)a[E]=i;function u(B,w){if(this.encodingName=B.encodingName,!B)throw new Error("DBCS codec is called without the data.");if(!B.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var Q=B.table();this.decodeTables=[],this.decodeTables[0]=a.slice(0),this.decodeTableSeq=[];for(var p=0;ph)throw new Error("gb18030 decode tables conflict at byte 2");for(var U=this.decodeTables[h-v[D]],T=129;T<=254;T++){if(U[T]===i)U[T]=h-m;else{if(U[T]===h-m)continue;if(U[T]>h)throw new Error("gb18030 decode tables conflict at byte 3")}for(var F=this.decodeTables[h-U[T]],z=48;z<=57;z++)F[z]===i&&(F[z]=-2)}}}this.defaultCharUnicode=w.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var b={};if(B.encodeSkipVals)for(p=0;pw)return-1;for(var Q=0,p=B.length;Q>1);B[S]<=w?Q=S:p=S}return Q}u.prototype.encoder=C,u.prototype.decoder=e,u.prototype._getDecodeTrieNode=function(B){for(var w=[];B>0;B>>>=8)w.push(255&B);0==w.length&&w.push(0);for(var Q=this.decodeTables[0],p=w.length-1;p>0;p--){var S=Q[w[p]];if(S==i)Q[w[p]]=h-this.decodeTables.length,this.decodeTables.push(Q=a.slice(0));else{if(!(S<=h))throw new Error("Overwrite byte in "+this.encodingName+", addr: "+B.toString(16));Q=this.decodeTables[h-S]}}return Q},u.prototype._addDecodeChunk=function(B){var w=parseInt(B[0],16),Q=this._getDecodeTrieNode(w);w&=255;for(var p=1;p255)throw new Error("Incorrect chunk in "+this.encodingName+" at addr "+B[0]+": too long"+w)},u.prototype._getEncodeBucket=function(B){var w=B>>8;return void 0===this.encodeTable[w]&&(this.encodeTable[w]=a.slice(0)),this.encodeTable[w]},u.prototype._setEncodeChar=function(B,w){var Q=this._getEncodeBucket(B),p=255&B;Q[p]<=l?this.encodeTableSeq[l-Q[p]][-1]=w:Q[p]==i&&(Q[p]=w)},u.prototype._setEncodeSequence=function(B,w){var m,Q=B[0],p=this._getEncodeBucket(Q),S=255&Q;p[S]<=l?m=this.encodeTableSeq[l-p[S]]:(m={},p[S]!==i&&(m[-1]=p[S]),p[S]=l-this.encodeTableSeq.length,this.encodeTableSeq.push(m));for(var d=1;d=0)this._setEncodeChar(v,D),S=!0;else if(v<=h){var U=h-v;m[U]||(this._fillEncodeTable(U,D<<8>>>0,Q)?S=!0:m[U]=!0)}else v<=l&&(this._setEncodeSequence(this.decodeTableSeq[l-v],D),S=!0)}return S},C.prototype.write=function(B){for(var w=c.alloc(B.length*(this.gb18030?4:3)),Q=this.leadSurrogate,p=this.seqObj,S=-1,m=0,d=0;;){if(-1===S){if(m==B.length)break;var v=B.charCodeAt(m++)}else v=S,S=-1;if(55296<=v&&v<57344)if(v<56320){if(-1===Q){Q=v;continue}Q=v,v=i}else-1!==Q?(v=65536+1024*(Q-55296)+(v-56320),Q=-1):v=i;else-1!==Q&&(S=v,v=i,Q=-1);var D=i;if(void 0!==p&&v!=i){var U=p[v];if("object"==typeof U){p=U;continue}"number"==typeof U?D=U:null==U&&void 0!==(U=p[-1])&&(D=U,S=v),p=void 0}else if(v>=0){var T=this.encodeTable[v>>8];if(void 0!==T&&(D=T[255&v]),D<=l){p=this.encodeTableSeq[l-D];continue}if(D==i&&this.gb18030){var F=f(this.gb18030.uChars,v);if(-1!=F){D=this.gb18030.gbChars[F]+(v-this.gb18030.uChars[F]),w[d++]=129+Math.floor(D/12600),D%=12600,w[d++]=48+Math.floor(D/1260),D%=1260,w[d++]=129+Math.floor(D/10),w[d++]=48+(D%=10);continue}}}D===i&&(D=this.defaultCharSingleByte),D<256?w[d++]=D:D<65536?(w[d++]=D>>8,w[d++]=255&D):D<16777216?(w[d++]=D>>16,w[d++]=D>>8&255,w[d++]=255&D):(w[d++]=D>>>24,w[d++]=D>>>16&255,w[d++]=D>>>8&255,w[d++]=255&D)}return this.seqObj=p,this.leadSurrogate=Q,w.slice(0,d)},C.prototype.end=function(){if(-1!==this.leadSurrogate||void 0!==this.seqObj){var B=c.alloc(10),w=0;if(this.seqObj){var Q=this.seqObj[-1];void 0!==Q&&(Q<256?B[w++]=Q:(B[w++]=Q>>8,B[w++]=255&Q)),this.seqObj=void 0}return-1!==this.leadSurrogate&&(B[w++]=this.defaultCharSingleByte,this.leadSurrogate=-1),B.slice(0,w)}},C.prototype.findIdx=f,e.prototype.write=function(B){for(var w=c.alloc(2*B.length),Q=this.nodeIdx,p=this.prevBytes,S=this.prevBytes.length,m=-this.prevBytes.length,v=0,D=0;v=0?B[v]:p[v+S];if(!((d=this.decodeTables[Q][U])>=0))if(d===i)d=this.defaultCharUnicode.charCodeAt(0),v=m;else if(-2===d){if(v>=3)var T=12600*(B[v-3]-129)+1260*(B[v-2]-48)+10*(B[v-1]-129)+(U-48);else T=12600*(p[v-3+S]-129)+1260*((v-2>=0?B[v-2]:p[v-2+S])-48)+10*((v-1>=0?B[v-1]:p[v-1+S])-129)+(U-48);var F=f(this.gb18030.gbChars,T);d=this.gb18030.uChars[F]+T-this.gb18030.gbChars[F]}else{if(d<=h){Q=h-d;continue}if(!(d<=l))throw new Error("iconv-lite internal error: invalid decoding table value "+d+" at "+Q+"/"+U);for(var z=this.decodeTableSeq[l-d],b=0;b>8;d=z[z.length-1]}if(d>=65536){var Z=55296|(d-=65536)>>10;w[D++]=255&Z,w[D++]=Z>>8,d=56320|1023&d}w[D++]=255&d,w[D++]=d>>8,Q=0,m=v+1}return this.nodeIdx=Q,this.prevBytes=m>=0?Array.prototype.slice.call(B,m):p.slice(m+S).concat(Array.prototype.slice.call(B)),w.slice(0,D).toString("ucs2")},e.prototype.end=function(){for(var B="";this.prevBytes.length>0;){B+=this.defaultCharUnicode;var w=this.prevBytes.slice(1);this.prevBytes=[],this.nodeIdx=0,w.length>0&&(B+=this.write(w))}return this.prevBytes=[],this.nodeIdx=0,B}},5990:function(Y,I,n){"use strict";Y.exports={shiftjis:{type:"_dbcs",table:function(){return n(7014)},encodeAdd:{"\xa5":92,"\u203e":126},encodeSkipVals:[{from:60736,to:63808}]},csshiftjis:"shiftjis",mskanji:"shiftjis",sjis:"shiftjis",windows31j:"shiftjis",ms31j:"shiftjis",xsjis:"shiftjis",windows932:"shiftjis",ms932:"shiftjis",932:"shiftjis",cp932:"shiftjis",eucjp:{type:"_dbcs",table:function(){return n(5633)},encodeAdd:{"\xa5":92,"\u203e":126}},gb2312:"cp936",gb231280:"cp936",gb23121980:"cp936",csgb2312:"cp936",csiso58gb231280:"cp936",euccn:"cp936",windows936:"cp936",ms936:"cp936",936:"cp936",cp936:{type:"_dbcs",table:function(){return n(3336)}},gbk:{type:"_dbcs",table:function(){return n(3336).concat(n(4346))}},xgbk:"gbk",isoir58:"gbk",gb18030:{type:"_dbcs",table:function(){return n(3336).concat(n(4346))},gb18030:function(){return n(6258)},encodeSkipVals:[128],encodeAdd:{"\u20ac":41699}},chinese:"gb18030",windows949:"cp949",ms949:"cp949",949:"cp949",cp949:{type:"_dbcs",table:function(){return n(7348)}},cseuckr:"cp949",csksc56011987:"cp949",euckr:"cp949",isoir149:"cp949",korean:"cp949",ksc56011987:"cp949",ksc56011989:"cp949",ksc5601:"cp949",windows950:"cp950",ms950:"cp950",950:"cp950",cp950:{type:"_dbcs",table:function(){return n(4284)}},big5:"big5hkscs",big5hkscs:{type:"_dbcs",table:function(){return n(4284).concat(n(3480))},encodeSkipVals:[36457,36463,36478,36523,36532,36557,36560,36695,36713,36718,36811,36862,36973,36986,37060,37084,37105,37311,37551,37552,37553,37554,37585,37959,38090,38361,38652,39285,39798,39800,39803,39878,39902,39916,39926,40002,40019,40034,40040,40043,40055,40124,40125,40144,40279,40282,40388,40431,40443,40617,40687,40701,40800,40907,41079,41180,41183,36812,37576,38468,38637,41636,41637,41639,41638,41676,41678]},cnbig5:"big5hkscs",csbig5:"big5hkscs",xxbig5:"big5hkscs"}},6934:function(Y,I,n){"use strict";for(var c=[n(1025),n(7688),n(1279),n(758),n(9068),n(3769),n(7018),n(688),n(5990)],i=0;i>>6),C[e++]=128+(63&B)):(C[e++]=224+(B>>>12),C[e++]=128+(B>>>6&63),C[e++]=128+(63&B))}return C.slice(0,e)},g.prototype.end=function(){},E.prototype.write=function(u){for(var C=this.acc,e=this.contBytes,f=this.accBytes,B="",w=0;w0&&(B+=this.defaultCharUnicode,e=0),Q<128?B+=String.fromCharCode(Q):Q<224?(C=31&Q,e=1,f=1):Q<240?(C=15&Q,e=2,f=1):B+=this.defaultCharUnicode):e>0?(C=C<<6|63&Q,f++,0==--e&&(B+=2===f&&C<128&&C>0||3===f&&C<2048?this.defaultCharUnicode:String.fromCharCode(C))):B+=this.defaultCharUnicode}return this.acc=C,this.contBytes=e,this.accBytes=f,B},E.prototype.end=function(){var u=0;return this.contBytes>0&&(u+=this.defaultCharUnicode),u}},9068:function(Y,I,n){"use strict";var c=n(7103).Buffer;function i(h,a){if(!h)throw new Error("SBCS codec is called without the data.");if(!h.chars||128!==h.chars.length&&256!==h.chars.length)throw new Error("Encoding '"+h.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(128===h.chars.length){for(var g="",E=0;E<128;E++)g+=String.fromCharCode(E);h.chars=g+h.chars}this.decodeBuf=c.from(h.chars,"ucs2");var u=c.alloc(65536,a.defaultCharSingleByte.charCodeAt(0));for(E=0;E?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\xb0\xb7\u2219\u221a\u2592\u2500\u2502\u253c\u2524\u252c\u251c\u2534\u2510\u250c\u2514\u2518\u03b2\u221e\u03c6\xb1\xbd\xbc\u2248\xab\xbb\ufef7\ufef8\ufffd\ufffd\ufefb\ufefc\ufffd\xa0\xad\ufe82\xa3\xa4\ufe84\ufffd\ufffd\ufe8e\ufe8f\ufe95\ufe99\u060c\ufe9d\ufea1\ufea5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\ufed1\u061b\ufeb1\ufeb5\ufeb9\u061f\xa2\ufe80\ufe81\ufe83\ufe85\ufeca\ufe8b\ufe8d\ufe91\ufe93\ufe97\ufe9b\ufe9f\ufea3\ufea7\ufea9\ufeab\ufead\ufeaf\ufeb3\ufeb7\ufebb\ufebf\ufec1\ufec5\ufecb\ufecf\xa6\xac\xf7\xd7\ufec9\u0640\ufed3\ufed7\ufedb\ufedf\ufee3\ufee7\ufeeb\ufeed\ufeef\ufef3\ufebd\ufecc\ufece\ufecd\ufee1\ufe7d\u0651\ufee5\ufee9\ufeec\ufef0\ufef2\ufed0\ufed5\ufef5\ufef6\ufedd\ufed9\ufef1\u25a0\ufffd"},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xef\xee\xec\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xf2\xfb\xf9\xff\xd6\xdc\xf8\xa3\xd8\u20a7\u0192\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf\u2310\xac\xbd\xbc\xa1\xab\xa4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u03b1\xdf\u0393\u03c0\u03a3\u03c3\xb5\u03c4\u03a6\u0398\u03a9\u03b4\u221e\u03c6\u03b5\u2229\u2261\xb1\u2265\u2264\u2320\u2321\xf7\u2248\xb0\u2219\xb7\u221a\u207f\xb2\u25a0\xa0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u0401\u0451\u0404\u0454\u0407\u0457\u040e\u045e\xb0\u2219\xb7\u221a\u2116\xa4\u25a0\xa0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0386\ufffd\xb7\xac\xa6\u2018\u2019\u0388\u2015\u0389\u038a\u03aa\u038c\ufffd\ufffd\u038e\u03ab\xa9\u038f\xb2\xb3\u03ac\xa3\u03ad\u03ae\u03af\u03ca\u0390\u03cc\u03cd\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xbd\u0398\u0399\xab\xbb\u2591\u2592\u2593\u2502\u2524\u039a\u039b\u039c\u039d\u2563\u2551\u2557\u255d\u039e\u039f\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u03a0\u03a1\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u03a3\u03a4\u03a5\u03a6\u03a7\u03a8\u03a9\u03b1\u03b2\u03b3\u2518\u250c\u2588\u2584\u03b4\u03b5\u2580\u03b6\u03b7\u03b8\u03b9\u03ba\u03bb\u03bc\u03bd\u03be\u03bf\u03c0\u03c1\u03c3\u03c2\u03c4\u0384\xad\xb1\u03c5\u03c6\u03c7\xa7\u03c8\u0385\xb0\xa8\u03c9\u03cb\u03b0\u03ce\u25a0\xa0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\u203e\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\u0160\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\u017d\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\u0161\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\u017e\xff"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\ufe88\xd7\xf7\uf8f6\uf8f5\uf8f4\uf8f7\ufe71\x88\u25a0\u2502\u2500\u2510\u250c\u2514\u2518\ufe79\ufe7b\ufe7d\ufe7f\ufe77\ufe8a\ufef0\ufef3\ufef2\ufece\ufecf\ufed0\ufef6\ufef8\ufefa\ufefc\xa0\uf8fa\uf8f9\uf8f8\xa4\uf8fb\ufe8b\ufe91\ufe97\ufe9b\ufe9f\ufea3\u060c\xad\ufea7\ufeb3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\ufeb7\u061b\ufebb\ufebf\ufeca\u061f\ufecb\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062a\u062b\u062c\u062d\u062e\u062f\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\ufec7\u0639\u063a\ufecc\ufe82\ufe84\ufe8e\ufed3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064a\u064b\u064c\u064d\u064e\u064f\u0650\u0651\u0652\ufed7\ufedb\ufedf\uf8fc\ufef5\ufef7\ufef9\ufefb\ufee3\ufee7\ufeec\ufee9\ufffd"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040a\u040b\u040c\xad\u040e\u040f\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u2116\u0451\u0452\u0491\u0454\u0455\u0456\u0457\u0458\u0459\u045a\u045b\u045c\xa7\u045e\u045f"},ibm1124:"cp1124",csibm1124:"cp1124",cp1125:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u0401\u0451\u0490\u0491\u0404\u0454\u0406\u0456\u0407\u0457\xb7\u221a\u2116\xa4\u25a0\xa0"},ibm1125:"cp1125",csibm1125:"cp1125",cp1129:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\u0153\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\u0178\xb5\xb6\xb7\u0152\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\u0102\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\u0300\xcd\xce\xcf\u0110\xd1\u0309\xd3\xd4\u01a0\xd6\xd7\xd8\xd9\xda\xdb\xdc\u01af\u0303\xdf\xe0\xe1\xe2\u0103\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\u0301\xed\xee\xef\u0111\xf1\u0323\xf3\xf4\u01a1\xf6\xf7\xf8\xf9\xfa\xfb\xfc\u01b0\u20ab\xff"},ibm1129:"cp1129",csibm1129:"cp1129",cp1133:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\u0e81\u0e82\u0e84\u0e87\u0e88\u0eaa\u0e8a\u0e8d\u0e94\u0e95\u0e96\u0e97\u0e99\u0e9a\u0e9b\u0e9c\u0e9d\u0e9e\u0e9f\u0ea1\u0ea2\u0ea3\u0ea5\u0ea7\u0eab\u0ead\u0eae\ufffd\ufffd\ufffd\u0eaf\u0eb0\u0eb2\u0eb3\u0eb4\u0eb5\u0eb6\u0eb7\u0eb8\u0eb9\u0ebc\u0eb1\u0ebb\u0ebd\ufffd\ufffd\ufffd\u0ec0\u0ec1\u0ec2\u0ec3\u0ec4\u0ec8\u0ec9\u0eca\u0ecb\u0ecc\u0ecd\u0ec6\ufffd\u0edc\u0edd\u20ad\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0ed0\u0ed1\u0ed2\u0ed3\u0ed4\u0ed5\u0ed6\u0ed7\u0ed8\u0ed9\ufffd\ufffd\xa2\xac\xa6\ufffd"},ibm1133:"cp1133",csibm1133:"cp1133",cp1161:{type:"_sbcs",chars:"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0e48\u0e01\u0e02\u0e03\u0e04\u0e05\u0e06\u0e07\u0e08\u0e09\u0e0a\u0e0b\u0e0c\u0e0d\u0e0e\u0e0f\u0e10\u0e11\u0e12\u0e13\u0e14\u0e15\u0e16\u0e17\u0e18\u0e19\u0e1a\u0e1b\u0e1c\u0e1d\u0e1e\u0e1f\u0e20\u0e21\u0e22\u0e23\u0e24\u0e25\u0e26\u0e27\u0e28\u0e29\u0e2a\u0e2b\u0e2c\u0e2d\u0e2e\u0e2f\u0e30\u0e31\u0e32\u0e33\u0e34\u0e35\u0e36\u0e37\u0e38\u0e39\u0e3a\u0e49\u0e4a\u0e4b\u20ac\u0e3f\u0e40\u0e41\u0e42\u0e43\u0e44\u0e45\u0e46\u0e47\u0e48\u0e49\u0e4a\u0e4b\u0e4c\u0e4d\u0e4e\u0e4f\u0e50\u0e51\u0e52\u0e53\u0e54\u0e55\u0e56\u0e57\u0e58\u0e59\u0e5a\u0e5b\xa2\xac\xa6\xa0"},ibm1161:"cp1161",csibm1161:"cp1161",cp1162:{type:"_sbcs",chars:"\u20ac\x81\x82\x83\x84\u2026\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\u2018\u2019\u201c\u201d\u2022\u2013\u2014\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\u0e01\u0e02\u0e03\u0e04\u0e05\u0e06\u0e07\u0e08\u0e09\u0e0a\u0e0b\u0e0c\u0e0d\u0e0e\u0e0f\u0e10\u0e11\u0e12\u0e13\u0e14\u0e15\u0e16\u0e17\u0e18\u0e19\u0e1a\u0e1b\u0e1c\u0e1d\u0e1e\u0e1f\u0e20\u0e21\u0e22\u0e23\u0e24\u0e25\u0e26\u0e27\u0e28\u0e29\u0e2a\u0e2b\u0e2c\u0e2d\u0e2e\u0e2f\u0e30\u0e31\u0e32\u0e33\u0e34\u0e35\u0e36\u0e37\u0e38\u0e39\u0e3a\ufffd\ufffd\ufffd\ufffd\u0e3f\u0e40\u0e41\u0e42\u0e43\u0e44\u0e45\u0e46\u0e47\u0e48\u0e49\u0e4a\u0e4b\u0e4c\u0e4d\u0e4e\u0e4f\u0e50\u0e51\u0e52\u0e53\u0e54\u0e55\u0e56\u0e57\u0e58\u0e59\u0e5a\u0e5b\ufffd\ufffd\ufffd\ufffd"},ibm1162:"cp1162",csibm1162:"cp1162",cp1163:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\u20ac\xa5\xa6\xa7\u0153\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\u0178\xb5\xb6\xb7\u0152\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\u0102\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\u0300\xcd\xce\xcf\u0110\xd1\u0309\xd3\xd4\u01a0\xd6\xd7\xd8\xd9\xda\xdb\xdc\u01af\u0303\xdf\xe0\xe1\xe2\u0103\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\u0301\xed\xee\xef\u0111\xf1\u0323\xf3\xf4\u01a1\xf6\xf7\xf8\xf9\xfa\xfb\xfc\u01b0\u20ab\xff"},ibm1163:"cp1163",csibm1163:"cp1163",maccroatian:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\u0160\u2122\xb4\xa8\u2260\u017d\xd8\u221e\xb1\u2264\u2265\u2206\xb5\u2202\u2211\u220f\u0161\u222b\xaa\xba\u2126\u017e\xf8\xbf\xa1\xac\u221a\u0192\u2248\u0106\xab\u010c\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u0110\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\ufffd\xa9\u2044\xa4\u2039\u203a\xc6\xbb\u2013\xb7\u201a\u201e\u2030\xc2\u0107\xc1\u010d\xc8\xcd\xce\xcf\xcc\xd3\xd4\u0111\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u03c0\xcb\u02da\xb8\xca\xe6\u02c7"},maccyrillic:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u2020\xb0\xa2\xa3\xa7\u2022\xb6\u0406\xae\xa9\u2122\u0402\u0452\u2260\u0403\u0453\u221e\xb1\u2264\u2265\u0456\xb5\u2202\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040a\u045a\u0458\u0405\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\u040b\u045b\u040c\u045c\u0455\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u201e\u040e\u045e\u040f\u045f\u2116\u0401\u0451\u044f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\xa4"},macgreek:{type:"_sbcs",chars:"\xc4\xb9\xb2\xc9\xb3\xd6\xdc\u0385\xe0\xe2\xe4\u0384\xa8\xe7\xe9\xe8\xea\xeb\xa3\u2122\xee\xef\u2022\xbd\u2030\xf4\xf6\xa6\xad\xf9\xfb\xfc\u2020\u0393\u0394\u0398\u039b\u039e\u03a0\xdf\xae\xa9\u03a3\u03aa\xa7\u2260\xb0\u0387\u0391\xb1\u2264\u2265\xa5\u0392\u0395\u0396\u0397\u0399\u039a\u039c\u03a6\u03ab\u03a8\u03a9\u03ac\u039d\xac\u039f\u03a1\u2248\u03a4\xab\xbb\u2026\xa0\u03a5\u03a7\u0386\u0388\u0153\u2013\u2015\u201c\u201d\u2018\u2019\xf7\u0389\u038a\u038c\u038e\u03ad\u03ae\u03af\u03cc\u038f\u03cd\u03b1\u03b2\u03c8\u03b4\u03b5\u03c6\u03b3\u03b7\u03b9\u03be\u03ba\u03bb\u03bc\u03bd\u03bf\u03c0\u03ce\u03c1\u03c3\u03c4\u03b8\u03c9\u03c2\u03c7\u03c5\u03b6\u03ca\u03cb\u0390\u03b0\ufffd"},maciceland:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\xdd\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\xc6\xd8\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u2126\xe6\xf8\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u2044\xa4\xd0\xf0\xde\xfe\xfd\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\ufffd\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"},macroman:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\xc6\xd8\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u2126\xe6\xf8\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u2044\xa4\u2039\u203a\ufb01\ufb02\u2021\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\ufffd\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"},macromania:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\u0102\u015e\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u2126\u0103\u015f\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u2044\xa4\u2039\u203a\u0162\u0163\u2021\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\ufffd\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"},macthai:{type:"_sbcs",chars:"\xab\xbb\u2026\uf88c\uf88f\uf892\uf895\uf898\uf88b\uf88e\uf891\uf894\uf897\u201c\u201d\uf899\ufffd\u2022\uf884\uf889\uf885\uf886\uf887\uf888\uf88a\uf88d\uf890\uf893\uf896\u2018\u2019\ufffd\xa0\u0e01\u0e02\u0e03\u0e04\u0e05\u0e06\u0e07\u0e08\u0e09\u0e0a\u0e0b\u0e0c\u0e0d\u0e0e\u0e0f\u0e10\u0e11\u0e12\u0e13\u0e14\u0e15\u0e16\u0e17\u0e18\u0e19\u0e1a\u0e1b\u0e1c\u0e1d\u0e1e\u0e1f\u0e20\u0e21\u0e22\u0e23\u0e24\u0e25\u0e26\u0e27\u0e28\u0e29\u0e2a\u0e2b\u0e2c\u0e2d\u0e2e\u0e2f\u0e30\u0e31\u0e32\u0e33\u0e34\u0e35\u0e36\u0e37\u0e38\u0e39\u0e3a\ufeff\u200b\u2013\u2014\u0e3f\u0e40\u0e41\u0e42\u0e43\u0e44\u0e45\u0e46\u0e47\u0e48\u0e49\u0e4a\u0e4b\u0e4c\u0e4d\u2122\u0e4f\u0e50\u0e51\u0e52\u0e53\u0e54\u0e55\u0e56\u0e57\u0e58\u0e59\xae\xa9\ufffd\ufffd\ufffd\ufffd"},macturkish:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\xc6\xd8\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u2126\xe6\xf8\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u011e\u011f\u0130\u0131\u015e\u015f\u2021\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\ufffd\xd2\xda\xdb\xd9\ufffd\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"},macukraine:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u2020\xb0\u0490\xa3\xa7\u2022\xb6\u0406\xae\xa9\u2122\u0402\u0452\u2260\u0403\u0453\u221e\xb1\u2264\u2265\u0456\xb5\u0491\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040a\u045a\u0458\u0405\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\u040b\u045b\u040c\u045c\u0455\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u201e\u040e\u045e\u040f\u045f\u2116\u0401\u0451\u044f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\xa4"},koi8r:{type:"_sbcs",chars:"\u2500\u2502\u250c\u2510\u2514\u2518\u251c\u2524\u252c\u2534\u253c\u2580\u2584\u2588\u258c\u2590\u2591\u2592\u2593\u2320\u25a0\u2219\u221a\u2248\u2264\u2265\xa0\u2321\xb0\xb2\xb7\xf7\u2550\u2551\u2552\u0451\u2553\u2554\u2555\u2556\u2557\u2558\u2559\u255a\u255b\u255c\u255d\u255e\u255f\u2560\u2561\u0401\u2562\u2563\u2564\u2565\u2566\u2567\u2568\u2569\u256a\u256b\u256c\xa9\u044e\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u044f\u0440\u0441\u0442\u0443\u0436\u0432\u044c\u044b\u0437\u0448\u044d\u0449\u0447\u044a\u042e\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u042f\u0420\u0421\u0422\u0423\u0416\u0412\u042c\u042b\u0417\u0428\u042d\u0429\u0427\u042a"},koi8u:{type:"_sbcs",chars:"\u2500\u2502\u250c\u2510\u2514\u2518\u251c\u2524\u252c\u2534\u253c\u2580\u2584\u2588\u258c\u2590\u2591\u2592\u2593\u2320\u25a0\u2219\u221a\u2248\u2264\u2265\xa0\u2321\xb0\xb2\xb7\xf7\u2550\u2551\u2552\u0451\u0454\u2554\u0456\u0457\u2557\u2558\u2559\u255a\u255b\u0491\u255d\u255e\u255f\u2560\u2561\u0401\u0404\u2563\u0406\u0407\u2566\u2567\u2568\u2569\u256a\u0490\u256c\xa9\u044e\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u044f\u0440\u0441\u0442\u0443\u0436\u0432\u044c\u044b\u0437\u0448\u044d\u0449\u0447\u044a\u042e\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u042f\u0420\u0421\u0422\u0423\u0416\u0412\u042c\u042b\u0417\u0428\u042d\u0429\u0427\u042a"},koi8ru:{type:"_sbcs",chars:"\u2500\u2502\u250c\u2510\u2514\u2518\u251c\u2524\u252c\u2534\u253c\u2580\u2584\u2588\u258c\u2590\u2591\u2592\u2593\u2320\u25a0\u2219\u221a\u2248\u2264\u2265\xa0\u2321\xb0\xb2\xb7\xf7\u2550\u2551\u2552\u0451\u0454\u2554\u0456\u0457\u2557\u2558\u2559\u255a\u255b\u0491\u045e\u255e\u255f\u2560\u2561\u0401\u0404\u2563\u0406\u0407\u2566\u2567\u2568\u2569\u256a\u0490\u040e\xa9\u044e\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u044f\u0440\u0441\u0442\u0443\u0436\u0432\u044c\u044b\u0437\u0448\u044d\u0449\u0447\u044a\u042e\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u042f\u0420\u0421\u0422\u0423\u0416\u0412\u042c\u042b\u0417\u0428\u042d\u0429\u0427\u042a"},koi8t:{type:"_sbcs",chars:"\u049b\u0493\u201a\u0492\u201e\u2026\u2020\u2021\ufffd\u2030\u04b3\u2039\u04b2\u04b7\u04b6\ufffd\u049a\u2018\u2019\u201c\u201d\u2022\u2013\u2014\ufffd\u2122\ufffd\u203a\ufffd\ufffd\ufffd\ufffd\ufffd\u04ef\u04ee\u0451\xa4\u04e3\xa6\xa7\ufffd\ufffd\ufffd\xab\xac\xad\xae\ufffd\xb0\xb1\xb2\u0401\ufffd\u04e2\xb6\xb7\ufffd\u2116\ufffd\xbb\ufffd\ufffd\ufffd\xa9\u044e\u0430\u0431\u0446\u0434\u0435\u0444\u0433\u0445\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u044f\u0440\u0441\u0442\u0443\u0436\u0432\u044c\u044b\u0437\u0448\u044d\u0449\u0447\u044a\u042e\u0410\u0411\u0426\u0414\u0415\u0424\u0413\u0425\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u042f\u0420\u0421\u0422\u0423\u0416\u0412\u042c\u042b\u0417\u0428\u042d\u0429\u0427\u042a"},armscii8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\ufffd\u0587\u0589)(\xbb\xab\u2014.\u055d,-\u058a\u2026\u055c\u055b\u055e\u0531\u0561\u0532\u0562\u0533\u0563\u0534\u0564\u0535\u0565\u0536\u0566\u0537\u0567\u0538\u0568\u0539\u0569\u053a\u056a\u053b\u056b\u053c\u056c\u053d\u056d\u053e\u056e\u053f\u056f\u0540\u0570\u0541\u0571\u0542\u0572\u0543\u0573\u0544\u0574\u0545\u0575\u0546\u0576\u0547\u0577\u0548\u0578\u0549\u0579\u054a\u057a\u054b\u057b\u054c\u057c\u054d\u057d\u054e\u057e\u054f\u057f\u0550\u0580\u0551\u0581\u0552\u0582\u0553\u0583\u0554\u0584\u0555\u0585\u0556\u0586\u055a\ufffd"},rk1048:{type:"_sbcs",chars:"\u0402\u0403\u201a\u0453\u201e\u2026\u2020\u2021\u20ac\u2030\u0409\u2039\u040a\u049a\u04ba\u040f\u0452\u2018\u2019\u201c\u201d\u2022\u2013\u2014\ufffd\u2122\u0459\u203a\u045a\u049b\u04bb\u045f\xa0\u04b0\u04b1\u04d8\xa4\u04e8\xa6\xa7\u0401\xa9\u0492\xab\xac\xad\xae\u04ae\xb0\xb1\u0406\u0456\u04e9\xb5\xb6\xb7\u0451\u2116\u0493\xbb\u04d9\u04a2\u04a3\u04af\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f"},tcvn:{type:"_sbcs",chars:"\0\xda\u1ee4\x03\u1eea\u1eec\u1eee\x07\b\t\n\v\f\r\x0e\x0f\x10\u1ee8\u1ef0\u1ef2\u1ef6\u1ef8\xdd\u1ef4\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\xc0\u1ea2\xc3\xc1\u1ea0\u1eb6\u1eac\xc8\u1eba\u1ebc\xc9\u1eb8\u1ec6\xcc\u1ec8\u0128\xcd\u1eca\xd2\u1ece\xd5\xd3\u1ecc\u1ed8\u1edc\u1ede\u1ee0\u1eda\u1ee2\xd9\u1ee6\u0168\xa0\u0102\xc2\xca\xd4\u01a0\u01af\u0110\u0103\xe2\xea\xf4\u01a1\u01b0\u0111\u1eb0\u0300\u0309\u0303\u0301\u0323\xe0\u1ea3\xe3\xe1\u1ea1\u1eb2\u1eb1\u1eb3\u1eb5\u1eaf\u1eb4\u1eae\u1ea6\u1ea8\u1eaa\u1ea4\u1ec0\u1eb7\u1ea7\u1ea9\u1eab\u1ea5\u1ead\xe8\u1ec2\u1ebb\u1ebd\xe9\u1eb9\u1ec1\u1ec3\u1ec5\u1ebf\u1ec7\xec\u1ec9\u1ec4\u1ebe\u1ed2\u0129\xed\u1ecb\xf2\u1ed4\u1ecf\xf5\xf3\u1ecd\u1ed3\u1ed5\u1ed7\u1ed1\u1ed9\u1edd\u1edf\u1ee1\u1edb\u1ee3\xf9\u1ed6\u1ee7\u0169\xfa\u1ee5\u1eeb\u1eed\u1eef\u1ee9\u1ef1\u1ef3\u1ef7\u1ef9\xfd\u1ef5\u1ed0"},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\x8d\x8e\x8f\x90\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\x9d\x9e\u0178\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\u10d0\u10d1\u10d2\u10d3\u10d4\u10d5\u10d6\u10d7\u10d8\u10d9\u10da\u10db\u10dc\u10dd\u10de\u10df\u10e0\u10e1\u10e2\u10e3\u10e4\u10e5\u10e6\u10e7\u10e8\u10e9\u10ea\u10eb\u10ec\u10ed\u10ee\u10ef\u10f0\u10f1\u10f2\u10f3\u10f4\u10f5\u10f6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\x8d\x8e\x8f\x90\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\x9d\x9e\u0178\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\u10d0\u10d1\u10d2\u10d3\u10d4\u10d5\u10d6\u10f1\u10d7\u10d8\u10d9\u10da\u10db\u10dc\u10f2\u10dd\u10de\u10df\u10e0\u10e1\u10e2\u10f3\u10e3\u10e4\u10e5\u10e6\u10e7\u10e8\u10e9\u10ea\u10eb\u10ec\u10ed\u10ee\u10f4\u10ef\u10f0\u10f5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04ee\u0493\u201e\u2026\u04b6\u04ae\u04b2\u04af\u04a0\u04e2\u04a2\u049a\u04ba\u04b8\u0497\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u04b3\u04b7\u04a1\u04e3\u04a3\u049b\u04bb\u04b9\xa0\u040e\u045e\u0408\u04e8\u0498\u04b0\xa7\u0401\xa9\u04d8\xab\xac\u04ef\xae\u049c\xb0\u04b1\u0406\u0456\u0499\u04e9\xb6\xb7\u0451\u2116\u04d9\xbb\u0458\u04aa\u04ab\u049d\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f"},viscii:{type:"_sbcs",chars:"\0\x01\u1eb2\x03\x04\u1eb4\u1eaa\x07\b\t\n\v\f\r\x0e\x0f\x10\x11\x12\x13\u1ef6\x15\x16\x17\x18\u1ef8\x1a\x1b\x1c\x1d\u1ef4\x1f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\u1ea0\u1eae\u1eb0\u1eb6\u1ea4\u1ea6\u1ea8\u1eac\u1ebc\u1eb8\u1ebe\u1ec0\u1ec2\u1ec4\u1ec6\u1ed0\u1ed2\u1ed4\u1ed6\u1ed8\u1ee2\u1eda\u1edc\u1ede\u1eca\u1ece\u1ecc\u1ec8\u1ee6\u0168\u1ee4\u1ef2\xd5\u1eaf\u1eb1\u1eb7\u1ea5\u1ea7\u1ea9\u1ead\u1ebd\u1eb9\u1ebf\u1ec1\u1ec3\u1ec5\u1ec7\u1ed1\u1ed3\u1ed5\u1ed7\u1ee0\u01a0\u1ed9\u1edd\u1edf\u1ecb\u1ef0\u1ee8\u1eea\u1eec\u01a1\u1edb\u01af\xc0\xc1\xc2\xc3\u1ea2\u0102\u1eb3\u1eb5\xc8\xc9\xca\u1eba\xcc\xcd\u0128\u1ef3\u0110\u1ee9\xd2\xd3\xd4\u1ea1\u1ef7\u1eeb\u1eed\xd9\xda\u1ef9\u1ef5\xdd\u1ee1\u01b0\xe0\xe1\xe2\xe3\u1ea3\u0103\u1eef\u1eab\xe8\xe9\xea\u1ebb\xec\xed\u0129\u1ec9\u0111\u1ef1\xf2\xf3\xf4\xf5\u1ecf\u1ecd\u1ee5\xf9\xfa\u0169\u1ee7\xfd\u1ee3\u1eee"},iso646cn:{type:"_sbcs",chars:"\0\x01\x02\x03\x04\x05\x06\x07\b\t\n\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !\"#\xa5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}\u203e\x7f\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd"},iso646jp:{type:"_sbcs",chars:"\0\x01\x02\x03\x04\x05\x06\x07\b\t\n\v\f\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xa5]^_`abcdefghijklmnopqrstuvwxyz{|}\u203e\x7f\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd"},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xc0\xc2\xc8\xca\xcb\xce\xcf\xb4\u02cb\u02c6\xa8\u02dc\xd9\xdb\u20a4\xaf\xdd\xfd\xb0\xc7\xe7\xd1\xf1\xa1\xbf\xa4\xa3\xa5\xa7\u0192\xa2\xe2\xea\xf4\xfb\xe1\xe9\xf3\xfa\xe0\xe8\xf2\xf9\xe4\xeb\xf6\xfc\xc5\xee\xd8\xc6\xe5\xed\xf8\xe6\xc4\xec\xd6\xdc\xc9\xef\xdf\xd4\xc1\xc3\xe3\xd0\xf0\xcd\xcc\xd3\xd2\xd5\xf5\u0160\u0161\xda\u0178\xff\xde\xfe\xb7\xb5\xb6\xbe\u2014\xbc\xbd\xaa\xba\xab\u25a0\xbb\xb1\ufffd"},macintosh:{type:"_sbcs",chars:"\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\xc6\xd8\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u2126\xe6\xf8\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u2044\xa4\u2039\u203a\ufb01\ufb02\u2021\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\ufffd\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7"},ascii:{type:"_sbcs",chars:"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd"},tis620:{type:"_sbcs",chars:"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0e01\u0e02\u0e03\u0e04\u0e05\u0e06\u0e07\u0e08\u0e09\u0e0a\u0e0b\u0e0c\u0e0d\u0e0e\u0e0f\u0e10\u0e11\u0e12\u0e13\u0e14\u0e15\u0e16\u0e17\u0e18\u0e19\u0e1a\u0e1b\u0e1c\u0e1d\u0e1e\u0e1f\u0e20\u0e21\u0e22\u0e23\u0e24\u0e25\u0e26\u0e27\u0e28\u0e29\u0e2a\u0e2b\u0e2c\u0e2d\u0e2e\u0e2f\u0e30\u0e31\u0e32\u0e33\u0e34\u0e35\u0e36\u0e37\u0e38\u0e39\u0e3a\ufffd\ufffd\ufffd\ufffd\u0e3f\u0e40\u0e41\u0e42\u0e43\u0e44\u0e45\u0e46\u0e47\u0e48\u0e49\u0e4a\u0e4b\u0e4c\u0e4d\u0e4e\u0e4f\u0e50\u0e51\u0e52\u0e53\u0e54\u0e55\u0e56\u0e57\u0e58\u0e59\u0e5a\u0e5b\ufffd\ufffd\ufffd\ufffd"}}},3769:function(Y){"use strict";Y.exports={10029:"maccenteuro",maccenteuro:{type:"_sbcs",chars:"\xc4\u0100\u0101\xc9\u0104\xd6\xdc\xe1\u0105\u010c\xe4\u010d\u0106\u0107\xe9\u0179\u017a\u010e\xed\u010f\u0112\u0113\u0116\xf3\u0117\xf4\xf6\xf5\xfa\u011a\u011b\xfc\u2020\xb0\u0118\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\u0119\xa8\u2260\u0123\u012e\u012f\u012a\u2264\u2265\u012b\u0136\u2202\u2211\u0142\u013b\u013c\u013d\u013e\u0139\u013a\u0145\u0146\u0143\xac\u221a\u0144\u0147\u2206\xab\xbb\u2026\xa0\u0148\u0150\xd5\u0151\u014c\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\u014d\u0154\u0155\u0158\u2039\u203a\u0159\u0156\u0157\u0160\u201a\u201e\u0161\u015a\u015b\xc1\u0164\u0165\xcd\u017d\u017e\u016a\xd3\xd4\u016b\u016e\xda\u016f\u0170\u0171\u0172\u0173\xdd\xfd\u0137\u017b\u0141\u017c\u0122\u02c7"},808:"cp808",ibm808:"cp808",cp808:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u0401\u0451\u0404\u0454\u0407\u0457\u040e\u045e\xb0\u2219\xb7\u221a\u2116\u20ac\u25a0\xa0"},mik:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041a\u041b\u041c\u041d\u041e\u041f\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042a\u042b\u042c\u042d\u042e\u042f\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044a\u044b\u044c\u044d\u044e\u044f\u2514\u2534\u252c\u251c\u2500\u253c\u2563\u2551\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2510\u2591\u2592\u2593\u2502\u2524\u2116\xa7\u2557\u255d\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u03b1\xdf\u0393\u03c0\u03a3\u03c3\xb5\u03c4\u03a6\u0398\u03a9\u03b4\u221e\u03c6\u03b5\u2229\u2261\xb1\u2265\u2264\u2320\u2321\xf7\u2248\xb0\u2219\xb7\u221a\u207f\xb2\u25a0\xa0"},cp720:{type:"_sbcs",chars:"\x80\x81\xe9\xe2\x84\xe0\x86\xe7\xea\xeb\xe8\xef\xee\x8d\x8e\x8f\x90\u0651\u0652\xf4\xa4\u0640\xfb\xf9\u0621\u0622\u0623\u0624\xa3\u0625\u0626\u0627\u0628\u0629\u062a\u062b\u062c\u062d\u062e\u062f\u0630\u0631\u0632\u0633\u0634\u0635\xab\xbb\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u0636\u0637\u0638\u0639\u063a\u0641\xb5\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064a\u2261\u064b\u064c\u064d\u064e\u064f\u0650\u2248\xb0\u2219\xb7\u221a\u207f\xb2\u25a0\xa0"},ascii8bit:"ascii",usascii:"ascii",ansix34:"ascii",ansix341968:"ascii",ansix341986:"ascii",csascii:"ascii",cp367:"ascii",ibm367:"ascii",isoir6:"ascii",iso646us:"ascii",iso646irv:"ascii",us:"ascii",latin1:"iso88591",latin2:"iso88592",latin3:"iso88593",latin4:"iso88594",latin5:"iso88599",latin6:"iso885910",latin7:"iso885913",latin8:"iso885914",latin9:"iso885915",latin10:"iso885916",csisolatin1:"iso88591",csisolatin2:"iso88592",csisolatin3:"iso88593",csisolatin4:"iso88594",csisolatincyrillic:"iso88595",csisolatinarabic:"iso88596",csisolatingreek:"iso88597",csisolatinhebrew:"iso88598",csisolatin5:"iso88599",csisolatin6:"iso885910",l1:"iso88591",l2:"iso88592",l3:"iso88593",l4:"iso88594",l5:"iso88599",l6:"iso885910",l7:"iso885913",l8:"iso885914",l9:"iso885915",l10:"iso885916",isoir14:"iso646jp",isoir57:"iso646cn",isoir100:"iso88591",isoir101:"iso88592",isoir109:"iso88593",isoir110:"iso88594",isoir144:"iso88595",isoir127:"iso88596",isoir126:"iso88597",isoir138:"iso88598",isoir148:"iso88599",isoir157:"iso885910",isoir166:"tis620",isoir179:"iso885913",isoir199:"iso885914",isoir203:"iso885915",isoir226:"iso885916",cp819:"iso88591",ibm819:"iso88591",cyrillic:"iso88595",arabic:"iso88596",arabic8:"iso88596",ecma114:"iso88596",asmo708:"iso88596",greek:"iso88597",greek8:"iso88597",ecma118:"iso88597",elot928:"iso88597",hebrew:"iso88598",hebrew8:"iso88598",turkish:"iso88599",turkish8:"iso88599",thai:"iso885911",thai8:"iso885911",celtic:"iso885914",celtic8:"iso885914",isoceltic:"iso885914",tis6200:"tis620",tis62025291:"tis620",tis62025330:"tis620",1e4:"macroman",10006:"macgreek",10007:"maccyrillic",10079:"maciceland",10081:"macturkish",cspc8codepage437:"cp437",cspc775baltic:"cp775",cspc850multilingual:"cp850",cspcp852:"cp852",cspc862latinhebrew:"cp862",cpgr:"cp869",msee:"cp1250",mscyrl:"cp1251",msansi:"cp1252",msgreek:"cp1253",msturk:"cp1254",mshebr:"cp1255",msarab:"cp1256",winbaltrim:"cp1257",cp20866:"koi8r",20866:"koi8r",ibm878:"koi8r",cskoi8r:"koi8r",cp21866:"koi8u",21866:"koi8u",ibm1168:"koi8u",strk10482002:"rk1048",tcvn5712:"tcvn",tcvn57121:"tcvn",gb198880:"iso646cn",cn:"iso646cn",csiso14jisc6220ro:"iso646jp",jisc62201969ro:"iso646jp",jp:"iso646jp",cshproman8:"hproman8",r8:"hproman8",roman8:"hproman8",xroman8:"hproman8",ibm1051:"hproman8",mac:"macintosh",csmacintosh:"macintosh"}},1279:function(Y,I,n){"use strict";var c=n(7103).Buffer;function i(){}function o(){}function l(){this.overflowByte=-1}function h(u,C){this.iconv=C}function a(u,C){void 0===(u=u||{}).addBOM&&(u.addBOM=!0),this.encoder=C.iconv.getEncoder("utf-16le",u)}function g(u,C){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=u||{},this.iconv=C.iconv}function E(u,C){var e=[],f=0,B=0,w=0;A:for(var Q=0;Q=100)break A}return w>B?"utf-16be":w1114111)&&(f=B),f>=65536){var w=55296|(f-=65536)>>10;C[e++]=255&w,C[e++]=w>>8,f=56320|1023&f}return C[e++]=255&f,C[e++]=f>>8,e}function a(C,e){this.iconv=e}function g(C,e){void 0===(C=C||{}).addBOM&&(C.addBOM=!0),this.encoder=e.iconv.getEncoder(C.defaultEncoding||"utf-32le",C)}function E(C,e){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=C||{},this.iconv=e.iconv}function u(C,e){var f=[],B=0,w=0,Q=0,p=0,S=0;A:for(var m=0;m16)&&Q++,(0!==f[3]||f[2]>16)&&w++,0===f[0]&&0===f[1]&&(0!==f[2]||0!==f[3])&&S++,(0!==f[0]||0!==f[1])&&0===f[2]&&0===f[3]&&p++,f.length=0,++B>=100)break A}return S-Q>p-w?"utf-32be":S-Q0){for(;e0&&(p=this.iconv.decode(c.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",p},I.utf7imap=f,f.prototype.encoder=B,f.prototype.decoder=w,f.prototype.bomAware=!0,B.prototype.write=function(p){for(var S=this.inBase64,m=this.base64Accum,d=this.base64AccumIdx,v=c.alloc(5*p.length+10),D=0,U=0;U0&&(D+=v.write(m.slice(0,d).toString("base64").replace(/\//g,",").replace(/=+$/,""),D),d=0),v[D++]=C,S=!1),S||(v[D++]=T,T===e&&(v[D++]=C))):(S||(v[D++]=e,S=!0),S&&(m[d++]=T>>8,m[d++]=255&T,d==m.length&&(D+=v.write(m.toString("base64").replace(/\//g,","),D),d=0)))}return this.inBase64=S,this.base64AccumIdx=d,v.slice(0,D)},B.prototype.end=function(){var p=c.alloc(10),S=0;return this.inBase64&&(this.base64AccumIdx>0&&(S+=p.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),S),this.base64AccumIdx=0),p[S++]=C,this.inBase64=!1),p.slice(0,S)};var Q=g.slice();Q[",".charCodeAt(0)]=!0,w.prototype.write=function(p){for(var S="",m=0,d=this.inBase64,v=this.base64Accum,D=0;D0&&(p=this.iconv.decode(c.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",p}},5395:function(Y,I){"use strict";function c(o,l){this.encoder=o,this.addBOM=!0}function i(o,l){this.decoder=o,this.pass=!1,this.options=l||{}}I.PrependBOM=c,c.prototype.write=function(o){return this.addBOM&&(o="\ufeff"+o,this.addBOM=!1),this.encoder.write(o)},c.prototype.end=function(){return this.encoder.end()},I.StripBOM=i,i.prototype.write=function(o){var l=this.decoder.write(o);return this.pass||!l||("\ufeff"===l[0]&&(l=l.slice(1),"function"==typeof this.options.stripBOM&&this.options.stripBOM()),this.pass=!0),l},i.prototype.end=function(){return this.decoder.end()}},4914:function(Y,I,n){"use strict";var l,c=n(7103).Buffer,i=n(5395),o=Y.exports;o.encodings=null,o.defaultCharUnicode="\ufffd",o.defaultCharSingleByte="?",o.encode=function(a,g,E){a=""+(a||"");var u=o.getEncoder(g,E),C=u.write(a),e=u.end();return e&&e.length>0?c.concat([C,e]):C},o.decode=function(a,g,E){"string"==typeof a&&(o.skipDecodeWarning||(console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"),o.skipDecodeWarning=!0),a=c.from(""+(a||""),"binary"));var u=o.getDecoder(g,E),C=u.write(a),e=u.end();return e?C+e:C},o.encodingExists=function(a){try{return o.getCodec(a),!0}catch(g){return!1}},o.toEncoding=o.encode,o.fromEncoding=o.decode,o._codecDataCache={},o.getCodec=function(a){o.encodings||(o.encodings=n(6934));for(var g=o._canonicalizeEncoding(a),E={};;){var u=o._codecDataCache[g];if(u)return u;var C=o.encodings[g];switch(typeof C){case"string":g=C;break;case"object":for(var e in C)E[e]=C[e];E.encodingName||(E.encodingName=g),g=C.type;break;case"function":return E.encodingName||(E.encodingName=g),u=new C(E,o),o._codecDataCache[E.encodingName]=u,u;default:throw new Error("Encoding not recognized: '"+a+"' (searched as: '"+g+"')")}}},o._canonicalizeEncoding=function(h){return(""+h).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")},o.getEncoder=function(a,g){var E=o.getCodec(a),u=new E.encoder(g,E);return E.bomAware&&g&&g.addBOM&&(u=new i.PrependBOM(u,g)),u},o.getDecoder=function(a,g){var E=o.getCodec(a),u=new E.decoder(g,E);return E.bomAware&&!(g&&!1===g.stripBOM)&&(u=new i.StripBOM(u,g)),u},o.enableStreamingAPI=function(a){if(!o.supportsStreams){var g=n(8044)(a);o.IconvLiteEncoderStream=g.IconvLiteEncoderStream,o.IconvLiteDecoderStream=g.IconvLiteDecoderStream,o.encodeStream=function(u,C){return new o.IconvLiteEncoderStream(o.getEncoder(u,C),C)},o.decodeStream=function(u,C){return new o.IconvLiteDecoderStream(o.getDecoder(u,C),C)},o.supportsStreams=!0}};try{l=n(5832)}catch(h){}l&&l.Transform?o.enableStreamingAPI(l):o.encodeStream=o.decodeStream=function(){throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.")}},8044:function(Y,I,n){"use strict";var c=n(7103).Buffer;Y.exports=function(i){var o=i.Transform;function l(a,g){this.conv=a,(g=g||{}).decodeStrings=!1,o.call(this,g)}function h(a,g){this.conv=a,(g=g||{}).encoding=this.encoding="utf8",o.call(this,g)}return(l.prototype=Object.create(o.prototype,{constructor:{value:l}}))._transform=function(a,g,E){if("string"!=typeof a)return E(new Error("Iconv encoding stream needs strings as its input."));try{var u=this.conv.write(a);u&&u.length&&this.push(u),E()}catch(C){E(C)}},l.prototype._flush=function(a){try{var g=this.conv.end();g&&g.length&&this.push(g),a()}catch(E){a(E)}},l.prototype.collect=function(a){var g=[];return this.on("error",a),this.on("data",function(E){g.push(E)}),this.on("end",function(){a(null,c.concat(g))}),this},(h.prototype=Object.create(o.prototype,{constructor:{value:h}}))._transform=function(a,g,E){if(!(c.isBuffer(a)||a instanceof Uint8Array))return E(new Error("Iconv decoding stream needs buffers as its input."));try{var u=this.conv.write(a);u&&u.length&&this.push(u,this.encoding),E()}catch(C){E(C)}},h.prototype._flush=function(a){try{var g=this.conv.end();g&&g.length&&this.push(g,this.encoding),a()}catch(E){a(E)}},h.prototype.collect=function(a){var g="";return this.on("error",a),this.on("data",function(E){g+=E}),this.on("end",function(){a(null,g)}),this},{IconvLiteEncoderStream:l,IconvLiteDecoderStream:h}}},645:function(Y,I){I.read=function(n,c,i,o,l){var h,a,g=8*l-o-1,E=(1<>1,C=-7,e=i?l-1:0,f=i?-1:1,B=n[c+e];for(e+=f,h=B&(1<<-C)-1,B>>=-C,C+=g;C>0;h=256*h+n[c+e],e+=f,C-=8);for(a=h&(1<<-C)-1,h>>=-C,C+=o;C>0;a=256*a+n[c+e],e+=f,C-=8);if(0===h)h=1-u;else{if(h===E)return a?NaN:1/0*(B?-1:1);a+=Math.pow(2,o),h-=u}return(B?-1:1)*a*Math.pow(2,h-o)},I.write=function(n,c,i,o,l,h){var a,g,E,u=8*h-l-1,C=(1<>1,f=23===l?Math.pow(2,-24)-Math.pow(2,-77):0,B=o?0:h-1,w=o?1:-1,Q=c<0||0===c&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(g=isNaN(c)?1:0,a=C):(a=Math.floor(Math.log(c)/Math.LN2),c*(E=Math.pow(2,-a))<1&&(a--,E*=2),(c+=a+e>=1?f/E:f*Math.pow(2,1-e))*E>=2&&(a++,E/=2),a+e>=C?(g=0,a=C):a+e>=1?(g=(c*E-1)*Math.pow(2,l),a+=e):(g=c*Math.pow(2,e-1)*Math.pow(2,l),a=0));l>=8;n[i+B]=255&g,B+=w,g/=256,l-=8);for(a=a<0;n[i+B]=255&a,B+=w,a/=256,u-=8);n[i+B-w]|=128*Q}},5717:function(Y){Y.exports="function"==typeof Object.create?function(n,c){c&&(n.super_=c,n.prototype=Object.create(c.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:function(n,c){if(c){n.super_=c;var i=function(){};i.prototype=c.prototype,n.prototype=new i,n.prototype.constructor=n}}},2584:function(Y,I,n){"use strict";var c=n(6410)(),o=n(1924)("Object.prototype.toString"),l=function(E){return!(c&&E&&"object"==typeof E&&Symbol.toStringTag in E)&&"[object Arguments]"===o(E)},h=function(E){return!!l(E)||null!==E&&"object"==typeof E&&"number"==typeof E.length&&E.length>=0&&"[object Array]"!==o(E)&&"[object Function]"===o(E.callee)},a=function(){return l(arguments)}();l.isLegacyArguments=h,Y.exports=a?l:h},8923:function(Y,I,n){"use strict";var c=Date.prototype.getDay,o=Object.prototype.toString,h=n(6410)();Y.exports=function(g){return"object"==typeof g&&null!==g&&(h?function(g){try{return c.call(g),!0}catch(E){return!1}}(g):"[object Date]"===o.call(g))}},8662:function(Y,I,n){"use strict";var g,c=Object.prototype.toString,i=Function.prototype.toString,o=/^\s*(?:function)?\*/,l=n(6410)(),h=Object.getPrototypeOf;Y.exports=function(u){if("function"!=typeof u)return!1;if(o.test(i.call(u)))return!0;if(!l)return"[object GeneratorFunction]"===c.call(u);if(!h)return!1;if(void 0===g){var e=function(){if(!l)return!1;try{return Function("return function*() {}")()}catch(E){}}();g=!!e&&h(e)}return h(u)===g}},8611:function(Y){"use strict";Y.exports=function(n){return n!=n}},360:function(Y,I,n){"use strict";var c=n(5559),i=n(4289),o=n(8611),l=n(9415),h=n(6743),a=c(l(),Number);i(a,{getPolyfill:l,implementation:o,shim:h}),Y.exports=a},9415:function(Y,I,n){"use strict";var c=n(8611);Y.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:c}},6743:function(Y,I,n){"use strict";var c=n(4289),i=n(9415);Y.exports=function(){var l=i();return c(Number,{isNaN:l},{isNaN:function(){return Number.isNaN!==l}}),l}},8420:function(Y,I,n){"use strict";var o,l,h,a,c=n(1924),i=n(6410)();if(i){o=c("Object.prototype.hasOwnProperty"),l=c("RegExp.prototype.exec"),h={};var g=function(){throw h};a={toString:g,valueOf:g},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=g)}var E=c("Object.prototype.toString"),u=Object.getOwnPropertyDescriptor;Y.exports=i?function(f){if(!f||"object"!=typeof f)return!1;var B=u(f,"lastIndex");if(!B||!o(B,"value"))return!1;try{l(f,a)}catch(Q){return Q===h}}:function(f){return!(!f||"object"!=typeof f&&"function"!=typeof f)&&"[object RegExp]"===E(f)}},5692:function(Y,I,n){"use strict";var c=n(9804),i=n(3083),o=n(1924),l=o("Object.prototype.toString"),h=n(6410)(),a="undefined"==typeof globalThis?n.g:globalThis,g=i(),E=o("Array.prototype.indexOf",!0)||function(Q,p){for(var S=0;S-1}return!!e&&function(Q){var p=!1;return c(C,function(S,m){if(!p)try{p=S.call(Q)===m}catch(d){}}),p}(Q)}},4244:function(Y){"use strict";var I=function(n){return n!=n};Y.exports=function(c,i){return 0===c&&0===i?1/c==1/i:!!(c===i||I(c)&&I(i))}},609:function(Y,I,n){"use strict";var c=n(4289),i=n(5559),o=n(4244),l=n(5624),h=n(2281),a=i(l(),Object);c(a,{getPolyfill:l,implementation:o,shim:h}),Y.exports=a},5624:function(Y,I,n){"use strict";var c=n(4244);Y.exports=function(){return"function"==typeof Object.is?Object.is:c}},2281:function(Y,I,n){"use strict";var c=n(5624),i=n(4289);Y.exports=function(){var l=c();return i(Object,{is:l},{is:function(){return Object.is!==l}}),l}},8987:function(Y,I,n){"use strict";var c;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,l=n(1414),h=Object.prototype.propertyIsEnumerable,a=!h.call({toString:null},"toString"),g=h.call(function(){},"prototype"),E=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(B){var w=B.constructor;return w&&w.prototype===B},C={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},e=function(){if("undefined"==typeof window)return!1;for(var B in window)try{if(!C["$"+B]&&i.call(window,B)&&null!==window[B]&&"object"==typeof window[B])try{u(window[B])}catch(w){return!0}}catch(w){return!0}return!1}();c=function(w){var Q=null!==w&&"object"==typeof w,p="[object Function]"===o.call(w),S=l(w),m=Q&&"[object String]"===o.call(w),d=[];if(!Q&&!p&&!S)throw new TypeError("Object.keys called on a non-object");var v=g&&p;if(m&&w.length>0&&!i.call(w,0))for(var D=0;D0)for(var U=0;U=0&&"[object Function]"===I.call(c.callee)),o}},4236:function(Y,I){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function c(l,h){return Object.prototype.hasOwnProperty.call(l,h)}I.assign=function(l){for(var h=Array.prototype.slice.call(arguments,1);h.length;){var a=h.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(var g in a)c(a,g)&&(l[g]=a[g])}}return l},I.shrinkBuf=function(l,h){return l.length===h?l:l.subarray?l.subarray(0,h):(l.length=h,l)};var i={arraySet:function(l,h,a,g,E){if(h.subarray&&l.subarray)l.set(h.subarray(a,a+g),E);else for(var u=0;u>>16&65535|0,a=0;0!==i;){i-=a=i>2e3?2e3:i;do{h=h+(l=l+c[o++]|0)|0}while(--a);l%=65521,h%=65521}return l|h<<16|0}},1619:function(Y){"use strict";Y.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},2869:function(Y){"use strict";var n=function I(){for(var i,o=[],l=0;l<256;l++){i=l;for(var h=0;h<8;h++)i=1&i?3988292384^i>>>1:i>>>1;o[l]=i}return o}();Y.exports=function c(i,o,l,h){var a=n,g=h+l;i^=-1;for(var E=h;E>>8^a[255&(i^o[E])];return-1^i}},405:function(Y,I,n){"use strict";var OA,c=n(4236),i=n(342),o=n(6069),l=n(2869),h=n(8898),B=-2,DA=258,FA=262,q=666;function nA(j,kA){return j.msg=h[kA],kA}function EA(j){return(j<<1)-(j>4?9:0)}function GA(j){for(var kA=j.length;--kA>=0;)j[kA]=0}function et(j){var kA=j.state,At=kA.pending;At>j.avail_out&&(At=j.avail_out),0!==At&&(c.arraySet(j.output,kA.pending_buf,kA.pending_out,At,j.next_out),j.next_out+=At,kA.pending_out+=At,j.total_out+=At,j.avail_out-=At,kA.pending-=At,0===kA.pending&&(kA.pending_out=0))}function ot(j,kA){i._tr_flush_block(j,j.block_start>=0?j.block_start:-1,j.strstart-j.block_start,kA),j.block_start=j.strstart,et(j.strm)}function TA(j,kA){j.pending_buf[j.pending++]=kA}function it(j,kA){j.pending_buf[j.pending++]=kA>>>8&255,j.pending_buf[j.pending++]=255&kA}function mt(j,kA,At,xA){var KA=j.avail_in;return KA>xA&&(KA=xA),0===KA?0:(j.avail_in-=KA,c.arraySet(kA,j.input,j.next_in,KA,At),1===j.state.wrap?j.adler=o(j.adler,kA,KA,At):2===j.state.wrap&&(j.adler=l(j.adler,kA,KA,At)),j.next_in+=KA,j.total_in+=KA,KA)}function It(j,kA){var KA,st,At=j.max_chain_length,xA=j.strstart,Lt=j.prev_length,Dt=j.nice_match,Rt=j.strstart>j.w_size-FA?j.strstart-(j.w_size-FA):0,Vt=j.window,Le=j.w_mask,re=j.prev,Ae=j.strstart+DA,ye=Vt[xA+Lt-1],be=Vt[xA+Lt];j.prev_length>=j.good_match&&(At>>=2),Dt>j.lookahead&&(Dt=j.lookahead);do{if(Vt[(KA=kA)+Lt]===be&&Vt[KA+Lt-1]===ye&&Vt[KA]===Vt[xA]&&Vt[++KA]===Vt[xA+1]){xA+=2,KA++;do{}while(Vt[++xA]===Vt[++KA]&&Vt[++xA]===Vt[++KA]&&Vt[++xA]===Vt[++KA]&&Vt[++xA]===Vt[++KA]&&Vt[++xA]===Vt[++KA]&&Vt[++xA]===Vt[++KA]&&Vt[++xA]===Vt[++KA]&&Vt[++xA]===Vt[++KA]&&xALt){if(j.match_start=kA,Lt=st,st>=Dt)break;ye=Vt[xA+Lt-1],be=Vt[xA+Lt]}}}while((kA=re[kA&Le])>Rt&&0!=--At);return Lt<=j.lookahead?Lt:j.lookahead}function ft(j){var At,xA,KA,st,Lt,kA=j.w_size;do{if(st=j.window_size-j.lookahead-j.strstart,j.strstart>=kA+(kA-FA)){c.arraySet(j.window,j.window,kA,kA,0),j.match_start-=kA,j.strstart-=kA,j.block_start-=kA,At=xA=j.hash_size;do{KA=j.head[--At],j.head[At]=KA>=kA?KA-kA:0}while(--xA);At=xA=kA;do{KA=j.prev[--At],j.prev[At]=KA>=kA?KA-kA:0}while(--xA);st+=kA}if(0===j.strm.avail_in)break;if(xA=mt(j.strm,j.window,j.strstart+j.lookahead,st),j.lookahead+=xA,j.lookahead+j.insert>=3)for(j.ins_h=j.window[Lt=j.strstart-j.insert],j.ins_h=(j.ins_h<=3&&(j.ins_h=(j.ins_h<=3)if(xA=i._tr_tally(j,j.strstart-j.match_start,j.match_length-3),j.lookahead-=j.match_length,j.match_length<=j.max_lazy_match&&j.lookahead>=3){j.match_length--;do{j.strstart++,j.ins_h=(j.ins_h<=3&&(j.ins_h=(j.ins_h<4096)&&(j.match_length=2)),j.prev_length>=3&&j.match_length<=j.prev_length){KA=j.strstart+j.lookahead-3,xA=i._tr_tally(j,j.strstart-1-j.prev_match,j.prev_length-3),j.lookahead-=j.prev_length-1,j.prev_length-=2;do{++j.strstart<=KA&&(j.ins_h=(j.ins_h<15&&(Lt=2,xA-=16),KA<1||KA>9||8!==At||xA<8||xA>15||kA<0||kA>9||st<0||st>4)return nA(j,B);8===xA&&(xA=9);var Dt=new H;return j.state=Dt,Dt.strm=j,Dt.wrap=Lt,Dt.gzhead=null,Dt.w_bits=xA,Dt.w_size=1<j.pending_buf_size-5&&(At=j.pending_buf_size-5);;){if(j.lookahead<=1){if(ft(j),0===j.lookahead&&0===kA)return 1;if(0===j.lookahead)break}j.strstart+=j.lookahead,j.lookahead=0;var xA=j.block_start+At;if((0===j.strstart||j.strstart>=xA)&&(j.lookahead=j.strstart-xA,j.strstart=xA,ot(j,!1),0===j.strm.avail_out)||j.strstart-j.block_start>=j.w_size-FA&&(ot(j,!1),0===j.strm.avail_out))return 1}return j.insert=0,4===kA?(ot(j,!0),0===j.strm.avail_out?3:4):(j.strstart>j.block_start&&ot(j,!1),1)}),new ht(4,4,8,4,WA),new ht(4,5,16,8,WA),new ht(4,6,32,32,WA),new ht(4,4,16,16,rt),new ht(8,16,32,32,rt),new ht(8,16,128,128,rt),new ht(8,32,128,256,rt),new ht(32,128,258,1024,rt),new ht(32,258,258,4096,rt)],I.deflateInit=function RA(j,kA){return wA(j,kA,8,15,8,0)},I.deflateInit2=wA,I.deflateReset=R,I.deflateResetKeep=k,I.deflateSetHeader=function QA(j,kA){return j&&j.state&&2===j.state.wrap?(j.state.gzhead=kA,0):B},I.deflate=function rA(j,kA){var At,xA,KA,st;if(!j||!j.state||kA>5||kA<0)return j?nA(j,B):B;if(xA=j.state,!j.output||!j.input&&0!==j.avail_in||xA.status===q&&4!==kA)return nA(j,0===j.avail_out?-5:B);if(xA.strm=j,At=xA.last_flush,xA.last_flush=kA,42===xA.status)if(2===xA.wrap)j.adler=0,TA(xA,31),TA(xA,139),TA(xA,8),xA.gzhead?(TA(xA,(xA.gzhead.text?1:0)+(xA.gzhead.hcrc?2:0)+(xA.gzhead.extra?4:0)+(xA.gzhead.name?8:0)+(xA.gzhead.comment?16:0)),TA(xA,255&xA.gzhead.time),TA(xA,xA.gzhead.time>>8&255),TA(xA,xA.gzhead.time>>16&255),TA(xA,xA.gzhead.time>>24&255),TA(xA,9===xA.level?2:xA.strategy>=2||xA.level<2?4:0),TA(xA,255&xA.gzhead.os),xA.gzhead.extra&&xA.gzhead.extra.length&&(TA(xA,255&xA.gzhead.extra.length),TA(xA,xA.gzhead.extra.length>>8&255)),xA.gzhead.hcrc&&(j.adler=l(j.adler,xA.pending_buf,xA.pending,0)),xA.gzindex=0,xA.status=69):(TA(xA,0),TA(xA,0),TA(xA,0),TA(xA,0),TA(xA,0),TA(xA,9===xA.level?2:xA.strategy>=2||xA.level<2?4:0),TA(xA,3),xA.status=113);else{var Lt=8+(xA.w_bits-8<<4)<<8;Lt|=(xA.strategy>=2||xA.level<2?0:xA.level<6?1:6===xA.level?2:3)<<6,0!==xA.strstart&&(Lt|=32),Lt+=31-Lt%31,xA.status=113,it(xA,Lt),0!==xA.strstart&&(it(xA,j.adler>>>16),it(xA,65535&j.adler)),j.adler=1}if(69===xA.status)if(xA.gzhead.extra){for(KA=xA.pending;xA.gzindex<(65535&xA.gzhead.extra.length)&&(xA.pending!==xA.pending_buf_size||(xA.gzhead.hcrc&&xA.pending>KA&&(j.adler=l(j.adler,xA.pending_buf,xA.pending-KA,KA)),et(j),KA=xA.pending,xA.pending!==xA.pending_buf_size));)TA(xA,255&xA.gzhead.extra[xA.gzindex]),xA.gzindex++;xA.gzhead.hcrc&&xA.pending>KA&&(j.adler=l(j.adler,xA.pending_buf,xA.pending-KA,KA)),xA.gzindex===xA.gzhead.extra.length&&(xA.gzindex=0,xA.status=73)}else xA.status=73;if(73===xA.status)if(xA.gzhead.name){KA=xA.pending;do{if(xA.pending===xA.pending_buf_size&&(xA.gzhead.hcrc&&xA.pending>KA&&(j.adler=l(j.adler,xA.pending_buf,xA.pending-KA,KA)),et(j),KA=xA.pending,xA.pending===xA.pending_buf_size)){st=1;break}st=xA.gzindexKA&&(j.adler=l(j.adler,xA.pending_buf,xA.pending-KA,KA)),0===st&&(xA.gzindex=0,xA.status=91)}else xA.status=91;if(91===xA.status)if(xA.gzhead.comment){KA=xA.pending;do{if(xA.pending===xA.pending_buf_size&&(xA.gzhead.hcrc&&xA.pending>KA&&(j.adler=l(j.adler,xA.pending_buf,xA.pending-KA,KA)),et(j),KA=xA.pending,xA.pending===xA.pending_buf_size)){st=1;break}st=xA.gzindexKA&&(j.adler=l(j.adler,xA.pending_buf,xA.pending-KA,KA)),0===st&&(xA.status=103)}else xA.status=103;if(103===xA.status&&(xA.gzhead.hcrc?(xA.pending+2>xA.pending_buf_size&&et(j),xA.pending+2<=xA.pending_buf_size&&(TA(xA,255&j.adler),TA(xA,j.adler>>8&255),j.adler=0,xA.status=113)):xA.status=113),0!==xA.pending){if(et(j),0===j.avail_out)return xA.last_flush=-1,0}else if(0===j.avail_in&&EA(kA)<=EA(At)&&4!==kA)return nA(j,-5);if(xA.status===q&&0!==j.avail_in)return nA(j,-5);if(0!==j.avail_in||0!==xA.lookahead||0!==kA&&xA.status!==q){var Rt=2===xA.strategy?function Mt(j,kA){for(var At;;){if(0===j.lookahead&&(ft(j),0===j.lookahead)){if(0===kA)return 1;break}if(j.match_length=0,At=i._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++,At&&(ot(j,!1),0===j.strm.avail_out))return 1}return j.insert=0,4===kA?(ot(j,!0),0===j.strm.avail_out?3:4):j.last_lit&&(ot(j,!1),0===j.strm.avail_out)?1:2}(xA,kA):3===xA.strategy?function yA(j,kA){for(var At,xA,KA,st,Lt=j.window;;){if(j.lookahead<=DA){if(ft(j),j.lookahead<=DA&&0===kA)return 1;if(0===j.lookahead)break}if(j.match_length=0,j.lookahead>=3&&j.strstart>0&&(xA=Lt[KA=j.strstart-1])===Lt[++KA]&&xA===Lt[++KA]&&xA===Lt[++KA]){st=j.strstart+DA;do{}while(xA===Lt[++KA]&&xA===Lt[++KA]&&xA===Lt[++KA]&&xA===Lt[++KA]&&xA===Lt[++KA]&&xA===Lt[++KA]&&xA===Lt[++KA]&&xA===Lt[++KA]&&KAj.lookahead&&(j.match_length=j.lookahead)}if(j.match_length>=3?(At=i._tr_tally(j,1,j.match_length-3),j.lookahead-=j.match_length,j.strstart+=j.match_length,j.match_length=0):(At=i._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++),At&&(ot(j,!1),0===j.strm.avail_out))return 1}return j.insert=0,4===kA?(ot(j,!0),0===j.strm.avail_out?3:4):j.last_lit&&(ot(j,!1),0===j.strm.avail_out)?1:2}(xA,kA):OA[xA.level].func(xA,kA);if((3===Rt||4===Rt)&&(xA.status=q),1===Rt||3===Rt)return 0===j.avail_out&&(xA.last_flush=-1),0;if(2===Rt&&(1===kA?i._tr_align(xA):5!==kA&&(i._tr_stored_block(xA,0,0,!1),3===kA&&(GA(xA.head),0===xA.lookahead&&(xA.strstart=0,xA.block_start=0,xA.insert=0))),et(j),0===j.avail_out))return xA.last_flush=-1,0}return 4!==kA?0:xA.wrap<=0?1:(2===xA.wrap?(TA(xA,255&j.adler),TA(xA,j.adler>>8&255),TA(xA,j.adler>>16&255),TA(xA,j.adler>>24&255),TA(xA,255&j.total_in),TA(xA,j.total_in>>8&255),TA(xA,j.total_in>>16&255),TA(xA,j.total_in>>24&255)):(it(xA,j.adler>>>16),it(xA,65535&j.adler)),et(j),xA.wrap>0&&(xA.wrap=-xA.wrap),0!==xA.pending?0:1)},I.deflateEnd=function ct(j){var kA;return j&&j.state?42!==(kA=j.state.status)&&69!==kA&&73!==kA&&91!==kA&&103!==kA&&113!==kA&&kA!==q?nA(j,B):(j.state=null,113===kA?nA(j,-3):0):B},I.deflateSetDictionary=function Ft(j,kA){var xA,KA,st,Lt,Dt,Rt,Vt,Le,At=kA.length;if(!j||!j.state||2===(Lt=(xA=j.state).wrap)||1===Lt&&42!==xA.status||xA.lookahead)return B;for(1===Lt&&(j.adler=o(j.adler,kA,At,0)),xA.wrap=0,At>=xA.w_size&&(0===Lt&&(GA(xA.head),xA.strstart=0,xA.block_start=0,xA.insert=0),Le=new c.Buf8(xA.w_size),c.arraySet(Le,kA,At-xA.w_size,xA.w_size,0),kA=Le,At=xA.w_size),Dt=j.avail_in,Rt=j.next_in,Vt=j.input,j.avail_in=At,j.next_in=0,j.input=kA,ft(xA);xA.lookahead>=3;){KA=xA.strstart,st=xA.lookahead-2;do{xA.ins_h=(xA.ins_h<>>=U=D>>>24,p-=U,0==(U=D>>>16&255))aA[g++]=65535&D;else{if(!(16&U)){if(0==(64&U)){D=S[(65535&D)+(Q&(1<>>=U,p-=U),p<15&&(Q+=Z[h++]<>>=U=D>>>24,p-=U,!(16&(U=D>>>16&255))){if(0==(64&U)){D=m[(65535&D)+(Q&(1<C){i.msg="invalid distance too far back",l.mode=30;break A}if(Q>>>=U,p-=U,F>(U=g-E)){if((U=F-U)>f&&l.sane){i.msg="invalid distance too far back",l.mode=30;break A}if(z=0,b=w,0===B){if(z+=e-U,U2;)aA[g++]=b[z++],aA[g++]=b[z++],aA[g++]=b[z++],T-=3;T&&(aA[g++]=b[z++],T>1&&(aA[g++]=b[z++]))}else{z=g-F;do{aA[g++]=aA[z++],aA[g++]=aA[z++],aA[g++]=aA[z++],T-=3}while(T>2);T&&(aA[g++]=aA[z++],T>1&&(aA[g++]=aA[z++]))}break}}break}}while(h>3)<<3))-1,i.next_in=h-=T,i.next_out=g,i.avail_in=h>>24&255)+(wA>>>8&65280)+((65280&wA)<<8)+((255&wA)<<24)}function mt(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new c.Buf16(320),this.work=new c.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function It(wA){var RA;return wA&&wA.state?(wA.total_in=wA.total_out=(RA=wA.state).total=0,wA.msg="",RA.wrap&&(wA.adler=1&RA.wrap),RA.mode=1,RA.last=0,RA.havedict=0,RA.dmax=32768,RA.head=null,RA.hold=0,RA.bits=0,RA.lencode=RA.lendyn=new c.Buf32(852),RA.distcode=RA.distdyn=new c.Buf32(592),RA.sane=1,RA.back=-1,0):Q}function ft(wA){var RA;return wA&&wA.state?((RA=wA.state).wsize=0,RA.whave=0,RA.wnext=0,It(wA)):Q}function JA(wA,RA){var rA,ct;return!wA||!wA.state||(ct=wA.state,RA<0?(rA=0,RA=-RA):(rA=1+(RA>>4),RA<48&&(RA&=15)),RA&&(RA<8||RA>15))?Q:(null!==ct.window&&ct.wbits!==RA&&(ct.window=null),ct.wrap=rA,ct.wbits=RA,ft(wA))}function WA(wA,RA){var rA,ct;return wA?(ct=new mt,wA.state=ct,ct.window=null,0!==(rA=JA(wA,RA))&&(wA.state=null),rA):Q}var Mt,ht,yA=!0;function OA(wA){if(yA){var RA;for(Mt=new c.Buf32(512),ht=new c.Buf32(32),RA=0;RA<144;)wA.lens[RA++]=8;for(;RA<256;)wA.lens[RA++]=9;for(;RA<280;)wA.lens[RA++]=7;for(;RA<288;)wA.lens[RA++]=8;for(h(1,wA.lens,0,288,Mt,0,wA.work,{bits:9}),RA=0;RA<32;)wA.lens[RA++]=5;h(2,wA.lens,0,32,ht,0,wA.work,{bits:5}),yA=!1}wA.lencode=Mt,wA.lenbits=9,wA.distcode=ht,wA.distbits=5}function Yt(wA,RA,rA,ct){var Ft,j=wA.state;return null===j.window&&(j.wsize=1<=j.wsize?(c.arraySet(j.window,RA,rA-j.wsize,j.wsize,0),j.wnext=0,j.whave=j.wsize):((Ft=j.wsize-j.wnext)>ct&&(Ft=ct),c.arraySet(j.window,RA,rA-ct,Ft,j.wnext),(ct-=Ft)?(c.arraySet(j.window,RA,rA-ct,ct,0),j.wnext=ct,j.whave=j.wsize):(j.wnext+=Ft,j.wnext===j.wsize&&(j.wnext=0),j.whave>>8&255,rA.check=o(rA.check,Te,2,0),KA=0,st=0,rA.mode=2;break}if(rA.flags=0,rA.head&&(rA.head.done=!1),!(1&rA.wrap)||(((255&KA)<<8)+(KA>>8))%31){wA.msg="incorrect header check",rA.mode=30;break}if(8!=(15&KA)){wA.msg="unknown compression method",rA.mode=30;break}if(st-=4,ne=8+(15&(KA>>>=4)),0===rA.wbits)rA.wbits=ne;else if(ne>rA.wbits){wA.msg="invalid window size",rA.mode=30;break}rA.dmax=1<>8&1),512&rA.flags&&(Te[0]=255&KA,Te[1]=KA>>>8&255,rA.check=o(rA.check,Te,2,0)),KA=0,st=0,rA.mode=3;case 3:for(;st<32;){if(0===At)break A;At--,KA+=ct[j++]<>>8&255,Te[2]=KA>>>16&255,Te[3]=KA>>>24&255,rA.check=o(rA.check,Te,4,0)),KA=0,st=0,rA.mode=4;case 4:for(;st<16;){if(0===At)break A;At--,KA+=ct[j++]<>8),512&rA.flags&&(Te[0]=255&KA,Te[1]=KA>>>8&255,rA.check=o(rA.check,Te,2,0)),KA=0,st=0,rA.mode=5;case 5:if(1024&rA.flags){for(;st<16;){if(0===At)break A;At--,KA+=ct[j++]<>>8&255,rA.check=o(rA.check,Te,2,0)),KA=0,st=0}else rA.head&&(rA.head.extra=null);rA.mode=6;case 6:if(1024&rA.flags&&((Rt=rA.length)>At&&(Rt=At),Rt&&(rA.head&&(ne=rA.head.extra_len-rA.length,rA.head.extra||(rA.head.extra=new Array(rA.head.extra_len)),c.arraySet(rA.head.extra,ct,j,Rt,ne)),512&rA.flags&&(rA.check=o(rA.check,ct,Rt,j)),At-=Rt,j+=Rt,rA.length-=Rt),rA.length))break A;rA.length=0,rA.mode=7;case 7:if(2048&rA.flags){if(0===At)break A;Rt=0;do{ne=ct[j+Rt++],rA.head&&ne&&rA.length<65536&&(rA.head.name+=String.fromCharCode(ne))}while(ne&&Rt>9&1,rA.head.done=!0),wA.adler=rA.check=0,rA.mode=12;break;case 10:for(;st<32;){if(0===At)break A;At--,KA+=ct[j++]<>>=7&st,st-=7&st,rA.mode=27;break}for(;st<3;){if(0===At)break A;At--,KA+=ct[j++]<>>=1)){case 0:rA.mode=14;break;case 1:if(OA(rA),rA.mode=20,6===RA){KA>>>=2,st-=2;break A}break;case 2:rA.mode=17;break;case 3:wA.msg="invalid block type",rA.mode=30}KA>>>=2,st-=2;break;case 14:for(KA>>>=7&st,st-=7&st;st<32;){if(0===At)break A;At--,KA+=ct[j++]<>>16^65535)){wA.msg="invalid stored block lengths",rA.mode=30;break}if(rA.length=65535&KA,KA=0,st=0,rA.mode=15,6===RA)break A;case 15:rA.mode=16;case 16:if(Rt=rA.length){if(Rt>At&&(Rt=At),Rt>xA&&(Rt=xA),0===Rt)break A;c.arraySet(Ft,ct,j,Rt,kA),At-=Rt,j+=Rt,xA-=Rt,kA+=Rt,rA.length-=Rt;break}rA.mode=12;break;case 17:for(;st<14;){if(0===At)break A;At--,KA+=ct[j++]<>>=5)),st-=5,rA.ncode=4+(15&(KA>>>=5)),KA>>>=4,st-=4,rA.nlen>286||rA.ndist>30){wA.msg="too many length or distance symbols",rA.mode=30;break}rA.have=0,rA.mode=18;case 18:for(;rA.have>>=3,st-=3}for(;rA.have<19;)rA.lens[Ln[rA.have++]]=0;if(rA.lencode=rA.lendyn,rA.lenbits=7,tn=h(0,rA.lens,0,19,rA.lencode,0,rA.work,en={bits:rA.lenbits}),rA.lenbits=en.bits,tn){wA.msg="invalid code lengths set",rA.mode=30;break}rA.have=0,rA.mode=19;case 19:for(;rA.have>>16&255,be=65535&re,!((Ae=re>>>24)<=st);){if(0===At)break A;At--,KA+=ct[j++]<>>=Ae,st-=Ae,rA.lens[rA.have++]=be;else{if(16===be){for(Xe=Ae+2;st>>=Ae,st-=Ae,0===rA.have){wA.msg="invalid bit length repeat",rA.mode=30;break}ne=rA.lens[rA.have-1],Rt=3+(3&KA),KA>>>=2,st-=2}else if(17===be){for(Xe=Ae+3;st>>=Ae)),KA>>>=3,st-=3}else{for(Xe=Ae+7;st>>=Ae)),KA>>>=7,st-=7}if(rA.have+Rt>rA.nlen+rA.ndist){wA.msg="invalid bit length repeat",rA.mode=30;break}for(;Rt--;)rA.lens[rA.have++]=ne}}if(30===rA.mode)break;if(0===rA.lens[256]){wA.msg="invalid code -- missing end-of-block",rA.mode=30;break}if(rA.lenbits=9,tn=h(1,rA.lens,0,rA.nlen,rA.lencode,0,rA.work,en={bits:rA.lenbits}),rA.lenbits=en.bits,tn){wA.msg="invalid literal/lengths set",rA.mode=30;break}if(rA.distbits=6,rA.distcode=rA.distdyn,tn=h(2,rA.lens,rA.nlen,rA.ndist,rA.distcode,0,rA.work,en={bits:rA.distbits}),rA.distbits=en.bits,tn){wA.msg="invalid distances set",rA.mode=30;break}if(rA.mode=20,6===RA)break A;case 20:rA.mode=21;case 21:if(At>=6&&xA>=258){wA.next_out=kA,wA.avail_out=xA,wA.next_in=j,wA.avail_in=At,rA.hold=KA,rA.bits=st,l(wA,Dt),kA=wA.next_out,Ft=wA.output,xA=wA.avail_out,j=wA.next_in,ct=wA.input,At=wA.avail_in,KA=rA.hold,st=rA.bits,12===rA.mode&&(rA.back=-1);break}for(rA.back=0;ye=(re=rA.lencode[KA&(1<>>16&255,be=65535&re,!((Ae=re>>>24)<=st);){if(0===At)break A;At--,KA+=ct[j++]<>Re)])>>>16&255,be=65535&re,!(Re+(Ae=re>>>24)<=st);){if(0===At)break A;At--,KA+=ct[j++]<>>=Re,st-=Re,rA.back+=Re}if(KA>>>=Ae,st-=Ae,rA.back+=Ae,rA.length=be,0===ye){rA.mode=26;break}if(32&ye){rA.back=-1,rA.mode=12;break}if(64&ye){wA.msg="invalid literal/length code",rA.mode=30;break}rA.extra=15&ye,rA.mode=22;case 22:if(rA.extra){for(Xe=rA.extra;st>>=rA.extra,st-=rA.extra,rA.back+=rA.extra}rA.was=rA.length,rA.mode=23;case 23:for(;ye=(re=rA.distcode[KA&(1<>>16&255,be=65535&re,!((Ae=re>>>24)<=st);){if(0===At)break A;At--,KA+=ct[j++]<>Re)])>>>16&255,be=65535&re,!(Re+(Ae=re>>>24)<=st);){if(0===At)break A;At--,KA+=ct[j++]<>>=Re,st-=Re,rA.back+=Re}if(KA>>>=Ae,st-=Ae,rA.back+=Ae,64&ye){wA.msg="invalid distance code",rA.mode=30;break}rA.offset=be,rA.extra=15&ye,rA.mode=24;case 24:if(rA.extra){for(Xe=rA.extra;st>>=rA.extra,st-=rA.extra,rA.back+=rA.extra}if(rA.offset>rA.dmax){wA.msg="invalid distance too far back",rA.mode=30;break}rA.mode=25;case 25:if(0===xA)break A;if(rA.offset>(Rt=Dt-xA)){if((Rt=rA.offset-Rt)>rA.whave&&rA.sane){wA.msg="invalid distance too far back",rA.mode=30;break}Vt=Rt>rA.wnext?rA.wsize-(Rt-=rA.wnext):rA.wnext-Rt,Rt>rA.length&&(Rt=rA.length),Le=rA.window}else Le=Ft,Vt=kA-rA.offset,Rt=rA.length;Rt>xA&&(Rt=xA),xA-=Rt,rA.length-=Rt;do{Ft[kA++]=Le[Vt++]}while(--Rt);0===rA.length&&(rA.mode=21);break;case 26:if(0===xA)break A;Ft[kA++]=rA.length,xA--,rA.mode=21;break;case 27:if(rA.wrap){for(;st<32;){if(0===At)break A;At--,KA|=ct[j++]<=1&&0===CA[z];z--);if(b>z&&(b=z),0===z)return S[m++]=20971520,S[m++]=20971520,v.bits=1,0;for(F=1;F0&&(0===B||1!==z))return-1;for(SA[1]=0,U=1;U852||2===B&&lA>592)return 1;for(;;){q=U-aA,d[T]uA?(O=bA[XA+d[T]],$=_[dA+d[T]]):(O=96,$=0),cA=1<>aA)+(gA-=cA)]=q<<24|O<<16|$|0}while(0!==gA);for(cA=1<>=1;if(0!==cA?(MA&=cA-1,MA+=cA):MA=0,T++,0==--CA[U]){if(U===z)break;U=w[Q+d[T]]}if(U>b&&(MA&DA)!==BA){for(0===aA&&(aA=b),FA+=F,AA=1<<(Z=U-aA);Z+aA852||2===B&&lA>592)return 1;S[BA=MA&DA]=b<<24|Z<<16|FA-m|0}}return 0!==MA&&(S[FA+MA]=4194304|U-aA<<24),v.bits=b,0}},8898:function(Y){"use strict";Y.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},342:function(Y,I,n){"use strict";var c=n(4236);function a(H){for(var k=H.length;--k>=0;)H[k]=0}var B=256,w=286,Q=30,m=15,z=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],b=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Z=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],aA=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],lA=new Array(576);a(lA);var MA=new Array(60);a(MA);var cA=new Array(512);a(cA);var gA=new Array(256);a(gA);var BA=new Array(29);a(BA);var _,dA,uA,DA=new Array(Q);function FA(H,k,R,QA,wA){this.static_tree=H,this.extra_bits=k,this.extra_base=R,this.elems=QA,this.max_length=wA,this.has_stree=H&&H.length}function CA(H,k){this.dyn_tree=H,this.max_code=0,this.stat_desc=k}function SA(H){return H<256?cA[H]:cA[256+(H>>>7)]}function bA(H,k){H.pending_buf[H.pending++]=255&k,H.pending_buf[H.pending++]=k>>>8&255}function XA(H,k,R){H.bi_valid>16-R?(H.bi_buf|=k<>16-H.bi_valid,H.bi_valid+=R-16):(H.bi_buf|=k<>>=1,R<<=1}while(--k>0);return R>>>1}function hA(H,k,R){var RA,rA,QA=new Array(16),wA=0;for(RA=1;RA<=m;RA++)QA[RA]=wA=wA+R[RA-1]<<1;for(rA=0;rA<=k;rA++){var ct=H[2*rA+1];0!==ct&&(H[2*rA]=O(QA[ct]++,ct))}}function nA(H){var k;for(k=0;k8?bA(H,H.bi_buf):H.bi_valid>0&&(H.pending_buf[H.pending++]=H.bi_buf),H.bi_buf=0,H.bi_valid=0}function et(H,k,R,QA){var wA=2*k,RA=2*R;return H[wA]>1;rA>=1;rA--)ot(H,R,rA);j=RA;do{rA=H.heap[1],H.heap[1]=H.heap[H.heap_len--],ot(H,R,1),ct=H.heap[1],H.heap[--H.heap_max]=rA,H.heap[--H.heap_max]=ct,R[2*j]=R[2*rA]+R[2*ct],H.depth[j]=(H.depth[rA]>=H.depth[ct]?H.depth[rA]:H.depth[ct])+1,R[2*rA+1]=R[2*ct+1]=j,H.heap[1]=j++,ot(H,R,1)}while(H.heap_len>=2);H.heap[--H.heap_max]=H.heap[1],function W(H,k){var j,kA,At,xA,KA,st,R=k.dyn_tree,QA=k.max_code,wA=k.stat_desc.static_tree,RA=k.stat_desc.has_stree,rA=k.stat_desc.extra_bits,ct=k.stat_desc.extra_base,Ft=k.stat_desc.max_length,Lt=0;for(xA=0;xA<=m;xA++)H.bl_count[xA]=0;for(R[2*H.heap[H.heap_max]+1]=0,j=H.heap_max+1;j<573;j++)(xA=R[2*R[2*(kA=H.heap[j])+1]+1]+1)>Ft&&(xA=Ft,Lt++),R[2*kA+1]=xA,!(kA>QA)&&(H.bl_count[xA]++,KA=0,kA>=ct&&(KA=rA[kA-ct]),H.opt_len+=(st=R[2*kA])*(xA+KA),RA&&(H.static_len+=st*(wA[2*kA+1]+KA)));if(0!==Lt){do{for(xA=Ft-1;0===H.bl_count[xA];)xA--;H.bl_count[xA]--,H.bl_count[xA+1]+=2,H.bl_count[Ft]--,Lt-=2}while(Lt>0);for(xA=Ft;0!==xA;xA--)for(kA=H.bl_count[xA];0!==kA;)!((At=H.heap[--j])>QA)&&(R[2*At+1]!==xA&&(H.opt_len+=(xA-R[2*At+1])*R[2*At],R[2*At+1]=xA),kA--)}}(H,k),hA(R,Ft,H.bl_count)}function mt(H,k,R){var QA,RA,wA=-1,rA=k[1],ct=0,Ft=7,j=4;for(0===rA&&(Ft=138,j=3),k[2*(R+1)+1]=65535,QA=0;QA<=R;QA++)RA=rA,rA=k[2*(QA+1)+1],!(++ct>=7;QA0?(2===H.strm.data_type&&(H.strm.data_type=function WA(H){var R,k=4093624447;for(R=0;R<=31;R++,k>>>=1)if(1&k&&0!==H.dyn_ltree[2*R])return 0;if(0!==H.dyn_ltree[18]||0!==H.dyn_ltree[20]||0!==H.dyn_ltree[26])return 1;for(R=32;R=3&&0===H.bl_tree[2*aA[k]+1];k--);return H.opt_len+=3*(k+1)+5+5+4,k}(H),(RA=H.static_len+3+7>>>3)<=(wA=H.opt_len+3+7>>>3)&&(wA=RA)):wA=RA=R+5,R+4<=wA&&-1!==k?Mt(H,k,R,QA):4===H.strategy||RA===wA?(XA(H,2+(QA?1:0),3),TA(H,lA,MA)):(XA(H,4+(QA?1:0),3),function JA(H,k,R,QA){var wA;for(XA(H,k-257,5),XA(H,R-1,5),XA(H,QA-4,4),wA=0;wA>>8&255,H.pending_buf[H.d_buf+2*H.last_lit+1]=255&k,H.pending_buf[H.l_buf+H.last_lit]=255&R,H.last_lit++,0===k?H.dyn_ltree[2*R]++:(H.matches++,k--,H.dyn_ltree[2*(gA[R]+B+1)]++,H.dyn_dtree[2*SA(k)]++),H.last_lit===H.lit_bufsize-1},I._tr_align=function ht(H){XA(H,2,3),q(H,256,lA),function $(H){16===H.bi_valid?(bA(H,H.bi_buf),H.bi_buf=0,H.bi_valid=0):H.bi_valid>=8&&(H.pending_buf[H.pending++]=255&H.bi_buf,H.bi_buf>>=8,H.bi_valid-=8)}(H)}},2292:function(Y){"use strict";Y.exports=function I(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},4155:function(Y){var n,c,I=Y.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function l(w){if(n===setTimeout)return setTimeout(w,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(w,0);try{return n(w,0)}catch(Q){try{return n.call(null,w,0)}catch(p){return n.call(this,w,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(w){n=i}try{c="function"==typeof clearTimeout?clearTimeout:o}catch(w){c=o}}();var E,a=[],g=!1,u=-1;function C(){!g||!E||(g=!1,E.length?a=E.concat(a):u=-1,a.length&&e())}function e(){if(!g){var w=l(C);g=!0;for(var Q=a.length;Q;){for(E=a,a=[];++u1)for(var p=1;p=0;--DA){var FA=this.tryEntries[DA],_=FA.completion;if("root"===FA.tryLoc)return BA("end");if(FA.tryLoc<=this.prev){var dA=i.call(FA,"catchLoc"),uA=i.call(FA,"finallyLoc");if(dA&&uA){if(this.prev=0;--BA){var DA=this.tryEntries[BA];if(DA.tryLoc<=this.prev&&i.call(DA,"finallyLoc")&&this.prev=0;--gA){var BA=this.tryEntries[gA];if(BA.finallyLoc===cA)return this.complete(BA.completion,BA.afterLoc),aA(BA),Q}},catch:function(cA){for(var gA=this.tryEntries.length-1;gA>=0;--gA){var BA=this.tryEntries[gA];if(BA.tryLoc===cA){var DA=BA.completion;if("throw"===DA.type){var FA=DA.arg;aA(BA)}return FA}}throw new Error("illegal catch attempt")},delegateYield:function(cA,gA,BA){return this.delegate={iterator:lA(cA),resultName:gA,nextLoc:BA},"next"===this.method&&(this.arg=o),Q}},n}(Y.exports);try{regeneratorRuntime=I}catch(n){"object"==typeof globalThis?globalThis.regeneratorRuntime=I:Function("r","regeneratorRuntime = r")(I)}},3697:function(Y){"use strict";var I=Object,n=TypeError;Y.exports=function(){if(null!=this&&this!==I(this))throw new n("RegExp.prototype.flags getter called on non-object");var i="";return this.hasIndices&&(i+="d"),this.global&&(i+="g"),this.ignoreCase&&(i+="i"),this.multiline&&(i+="m"),this.dotAll&&(i+="s"),this.unicode&&(i+="u"),this.sticky&&(i+="y"),i}},2847:function(Y,I,n){"use strict";var c=n(4289),i=n(5559),o=n(3697),l=n(1721),h=n(2753),a=i(l());c(a,{getPolyfill:l,implementation:o,shim:h}),Y.exports=a},1721:function(Y,I,n){"use strict";var c=n(3697),i=n(4289).supportsDescriptors,o=Object.getOwnPropertyDescriptor;Y.exports=function(){if(i&&"gim"===/a/gim.flags){var h=o(RegExp.prototype,"flags");if(h&&"function"==typeof h.get&&"boolean"==typeof/a/.dotAll)return h.get}return c}},2753:function(Y,I,n){"use strict";var c=n(4289).supportsDescriptors,i=n(1721),o=Object.getOwnPropertyDescriptor,l=Object.defineProperty,h=TypeError,a=Object.getPrototypeOf,g=/a/;Y.exports=function(){if(!c||!a)throw new h("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var u=i(),C=a(g),e=o(C,"flags");return(!e||e.get!==u)&&l(C,"flags",{configurable:!0,enumerable:!1,get:u}),u}},6099:function(Y,I,n){var c=n(8823).Buffer;!function(i){i.parser=function(q,O){return new l(q,O)},i.SAXParser=l,i.SAXStream=e,i.createStream=function C(q,O){return new e(q,O)},i.MAX_BUFFER_LENGTH=65536;var E,o=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function l(q,O){if(!(this instanceof l))return new l(q,O);var $=this;(function a(q){for(var O=0,$=o.length;O<$;O++)q[o[O]]=""})($),$.q=$.c="",$.bufferCheckPosition=i.MAX_BUFFER_LENGTH,$.opt=O||{},$.opt.lowercase=$.opt.lowercase||$.opt.lowercasetags,$.looseCase=$.opt.lowercase?"toLowerCase":"toUpperCase",$.tags=[],$.closed=$.closedRoot=$.sawRoot=!1,$.tag=$.error=null,$.strict=!!q,$.noscript=!(!q&&!$.opt.noscript),$.state=b.BEGIN,$.strictEntities=$.opt.strictEntities,$.ENTITIES=Object.create($.strictEntities?i.XML_ENTITIES:i.ENTITIES),$.attribList=[],$.opt.xmlns&&($.ns=Object.create(p)),$.trackPosition=!1!==$.opt.position,$.trackPosition&&($.position=$.line=$.column=0),aA($,"onready")}i.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(q){function O(){}return O.prototype=q,new O}),Object.keys||(Object.keys=function(q){var O=[];for(var $ in q)q.hasOwnProperty($)&&O.push($);return O}),l.prototype={end:function(){gA(this)},write:function XA(q){var O=this;if(this.error)throw this.error;if(O.closed)return cA(O,"Cannot write after close. Assign an onready handler.");if(null===q)return gA(O);"object"==typeof q&&(q=q.toString());for(var $=0,W="";W=bA(q,$++),O.c=W,W;)switch(O.trackPosition&&(O.position++,"\n"===W?(O.line++,O.column=0):O.column++),O.state){case b.BEGIN:if(O.state=b.BEGIN_WHITESPACE,"\ufeff"===W)continue;SA(O,W);continue;case b.BEGIN_WHITESPACE:SA(O,W);continue;case b.TEXT:if(O.sawRoot&&!O.closedRoot){for(var hA=$-1;W&&"<"!==W&&"&"!==W;)(W=bA(q,$++))&&O.trackPosition&&(O.position++,"\n"===W?(O.line++,O.column=0):O.column++);O.textNode+=q.substring(hA,$-1)}"<"!==W||O.sawRoot&&O.closedRoot&&!O.strict?(!D(W)&&(!O.sawRoot||O.closedRoot)&&BA(O,"Text data outside of root node."),"&"===W?O.state=b.TEXT_ENTITY:O.textNode+=W):(O.state=b.OPEN_WAKA,O.startTagPosition=O.position);continue;case b.SCRIPT:"<"===W?O.state=b.SCRIPT_ENDING:O.script+=W;continue;case b.SCRIPT_ENDING:"/"===W?O.state=b.CLOSE_TAG:(O.script+="<"+W,O.state=b.SCRIPT);continue;case b.OPEN_WAKA:"!"===W?(O.state=b.SGML_DECL,O.sgmlDecl=""):D(W)||(F(S,W)?(O.state=b.OPEN_TAG,O.tagName=W):"/"===W?(O.state=b.CLOSE_TAG,O.tagName=""):"?"===W?(O.state=b.PROC_INST,O.procInstName=O.procInstBody=""):(BA(O,"Unencoded <"),O.startTagPosition+1"===W?(AA(O,"onsgmldeclaration",O.sgmlDecl),O.sgmlDecl="",O.state=b.TEXT):(U(W)&&(O.state=b.SGML_DECL_QUOTED),O.sgmlDecl+=W);continue;case b.SGML_DECL_QUOTED:W===O.q&&(O.state=b.SGML_DECL,O.q=""),O.sgmlDecl+=W;continue;case b.DOCTYPE:">"===W?(O.state=b.TEXT,AA(O,"ondoctype",O.doctype),O.doctype=!0):(O.doctype+=W,"["===W?O.state=b.DOCTYPE_DTD:U(W)&&(O.state=b.DOCTYPE_QUOTED,O.q=W));continue;case b.DOCTYPE_QUOTED:O.doctype+=W,W===O.q&&(O.q="",O.state=b.DOCTYPE);continue;case b.DOCTYPE_DTD:O.doctype+=W,"]"===W?O.state=b.DOCTYPE:U(W)&&(O.state=b.DOCTYPE_DTD_QUOTED,O.q=W);continue;case b.DOCTYPE_DTD_QUOTED:O.doctype+=W,W===O.q&&(O.state=b.DOCTYPE_DTD,O.q="");continue;case b.COMMENT:"-"===W?O.state=b.COMMENT_ENDING:O.comment+=W;continue;case b.COMMENT_ENDING:"-"===W?(O.state=b.COMMENT_ENDED,O.comment=MA(O.opt,O.comment),O.comment&&AA(O,"oncomment",O.comment),O.comment=""):(O.comment+="-"+W,O.state=b.COMMENT);continue;case b.COMMENT_ENDED:">"!==W?(BA(O,"Malformed comment"),O.comment+="--"+W,O.state=b.COMMENT):O.state=b.TEXT;continue;case b.CDATA:"]"===W?O.state=b.CDATA_ENDING:O.cdata+=W;continue;case b.CDATA_ENDING:"]"===W?O.state=b.CDATA_ENDING_2:(O.cdata+="]"+W,O.state=b.CDATA);continue;case b.CDATA_ENDING_2:">"===W?(O.cdata&&AA(O,"oncdata",O.cdata),AA(O,"onclosecdata"),O.cdata="",O.state=b.TEXT):"]"===W?O.cdata+="]":(O.cdata+="]]"+W,O.state=b.CDATA);continue;case b.PROC_INST:"?"===W?O.state=b.PROC_INST_ENDING:D(W)?O.state=b.PROC_INST_BODY:O.procInstName+=W;continue;case b.PROC_INST_BODY:if(!O.procInstBody&&D(W))continue;"?"===W?O.state=b.PROC_INST_ENDING:O.procInstBody+=W;continue;case b.PROC_INST_ENDING:">"===W?(AA(O,"onprocessinginstruction",{name:O.procInstName,body:O.procInstBody}),O.procInstName=O.procInstBody="",O.state=b.TEXT):(O.procInstBody+="?"+W,O.state=b.PROC_INST_BODY);continue;case b.OPEN_TAG:F(m,W)?O.tagName+=W:(DA(O),">"===W?dA(O):"/"===W?O.state=b.OPEN_TAG_SLASH:(D(W)||BA(O,"Invalid character in tag name"),O.state=b.ATTRIB));continue;case b.OPEN_TAG_SLASH:">"===W?(dA(O,!0),uA(O)):(BA(O,"Forward-slash in opening tag not followed by >"),O.state=b.ATTRIB);continue;case b.ATTRIB:if(D(W))continue;">"===W?dA(O):"/"===W?O.state=b.OPEN_TAG_SLASH:F(S,W)?(O.attribName=W,O.attribValue="",O.state=b.ATTRIB_NAME):BA(O,"Invalid attribute name");continue;case b.ATTRIB_NAME:"="===W?O.state=b.ATTRIB_VALUE:">"===W?(BA(O,"Attribute without value"),O.attribValue=O.attribName,_(O),dA(O)):D(W)?O.state=b.ATTRIB_NAME_SAW_WHITE:F(m,W)?O.attribName+=W:BA(O,"Invalid attribute name");continue;case b.ATTRIB_NAME_SAW_WHITE:if("="===W)O.state=b.ATTRIB_VALUE;else{if(D(W))continue;BA(O,"Attribute without value"),O.tag.attributes[O.attribName]="",O.attribValue="",AA(O,"onattribute",{name:O.attribName,value:""}),O.attribName="",">"===W?dA(O):F(S,W)?(O.attribName=W,O.state=b.ATTRIB_NAME):(BA(O,"Invalid attribute name"),O.state=b.ATTRIB)}continue;case b.ATTRIB_VALUE:if(D(W))continue;U(W)?(O.q=W,O.state=b.ATTRIB_VALUE_QUOTED):(BA(O,"Unquoted attribute value"),O.state=b.ATTRIB_VALUE_UNQUOTED,O.attribValue=W);continue;case b.ATTRIB_VALUE_QUOTED:if(W!==O.q){"&"===W?O.state=b.ATTRIB_VALUE_ENTITY_Q:O.attribValue+=W;continue}_(O),O.q="",O.state=b.ATTRIB_VALUE_CLOSED;continue;case b.ATTRIB_VALUE_CLOSED:D(W)?O.state=b.ATTRIB:">"===W?dA(O):"/"===W?O.state=b.OPEN_TAG_SLASH:F(S,W)?(BA(O,"No whitespace between attributes"),O.attribName=W,O.attribValue="",O.state=b.ATTRIB_NAME):BA(O,"Invalid attribute name");continue;case b.ATTRIB_VALUE_UNQUOTED:if(!T(W)){"&"===W?O.state=b.ATTRIB_VALUE_ENTITY_U:O.attribValue+=W;continue}_(O),">"===W?dA(O):O.state=b.ATTRIB;continue;case b.CLOSE_TAG:if(O.tagName)">"===W?uA(O):F(m,W)?O.tagName+=W:O.script?(O.script+=""===W?uA(O):BA(O,"Invalid characters in closing tag");continue;case b.TEXT_ENTITY:case b.ATTRIB_VALUE_ENTITY_Q:case b.ATTRIB_VALUE_ENTITY_U:var nA,EA;switch(O.state){case b.TEXT_ENTITY:nA=b.TEXT,EA="textNode";break;case b.ATTRIB_VALUE_ENTITY_Q:nA=b.ATTRIB_VALUE_QUOTED,EA="attribValue";break;case b.ATTRIB_VALUE_ENTITY_U:nA=b.ATTRIB_VALUE_UNQUOTED,EA="attribValue"}";"===W?(O[EA]+=CA(O),O.entity="",O.state=nA):F(O.entity.length?v:d,W)?O.entity+=W:(BA(O,"Invalid character in entity name"),O[EA]+="&"+O.entity+W,O.entity="",O.state=nA);continue;default:throw new Error(O,"Unknown state: "+O.state)}return O.position>=O.bufferCheckPosition&&function h(q){for(var O=Math.max(i.MAX_BUFFER_LENGTH,10),$=0,W=0,hA=o.length;WO)switch(o[W]){case"textNode":lA(q);break;case"cdata":AA(q,"oncdata",q.cdata),q.cdata="";break;case"script":AA(q,"onscript",q.script),q.script="";break;default:cA(q,"Max buffer length exceeded: "+o[W])}$=Math.max($,mA)}q.bufferCheckPosition=i.MAX_BUFFER_LENGTH-$+q.position}(O),O},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){!function g(q){lA(q),""!==q.cdata&&(AA(q,"oncdata",q.cdata),q.cdata=""),""!==q.script&&(AA(q,"onscript",q.script),q.script="")}(this)}};try{E=n(2830).Stream}catch(q){E=function(){}}var u=i.EVENTS.filter(function(q){return"error"!==q&&"end"!==q});function e(q,O){if(!(this instanceof e))return new e(q,O);E.apply(this),this._parser=new l(q,O),this.writable=!0,this.readable=!0;var $=this;this._parser.onend=function(){$.emit("end")},this._parser.onerror=function(W){$.emit("error",W),$._parser.error=null},this._decoder=null,u.forEach(function(W){Object.defineProperty($,"on"+W,{get:function(){return $._parser["on"+W]},set:function(hA){if(!hA)return $.removeAllListeners(W),$._parser["on"+W]=hA,hA;$.on(W,hA)},enumerable:!0,configurable:!1})})}(e.prototype=Object.create(E.prototype,{constructor:{value:e}})).write=function(q){if("function"==typeof c&&"function"==typeof c.isBuffer&&c.isBuffer(q)){if(!this._decoder){var O=n(2553).s;this._decoder=new O("utf8")}q=this._decoder.write(q)}return this._parser.write(q.toString()),this.emit("data",q),!0},e.prototype.end=function(q){return q&&q.length&&this.write(q),this._parser.end(),!0},e.prototype.on=function(q,O){var $=this;return!$._parser["on"+q]&&-1!==u.indexOf(q)&&($._parser["on"+q]=function(){var W=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);W.splice(0,0,q),$.emit.apply($,W)}),E.prototype.on.call($,q,O)};var w="http://www.w3.org/XML/1998/namespace",Q="http://www.w3.org/2000/xmlns/",p={xml:w,xmlns:Q},S=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,m=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,d=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,v=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function D(q){return" "===q||"\n"===q||"\r"===q||"\t"===q}function U(q){return'"'===q||"'"===q}function T(q){return">"===q||D(q)}function F(q,O){return q.test(O)}function z(q,O){return!F(q,O)}var q,O,$,b=0;for(var Z in i.STATE={BEGIN:b++,BEGIN_WHITESPACE:b++,TEXT:b++,TEXT_ENTITY:b++,OPEN_WAKA:b++,SGML_DECL:b++,SGML_DECL_QUOTED:b++,DOCTYPE:b++,DOCTYPE_QUOTED:b++,DOCTYPE_DTD:b++,DOCTYPE_DTD_QUOTED:b++,COMMENT_STARTING:b++,COMMENT:b++,COMMENT_ENDING:b++,COMMENT_ENDED:b++,CDATA:b++,CDATA_ENDING:b++,CDATA_ENDING_2:b++,PROC_INST:b++,PROC_INST_BODY:b++,PROC_INST_ENDING:b++,OPEN_TAG:b++,OPEN_TAG_SLASH:b++,ATTRIB:b++,ATTRIB_NAME:b++,ATTRIB_NAME_SAW_WHITE:b++,ATTRIB_VALUE:b++,ATTRIB_VALUE_QUOTED:b++,ATTRIB_VALUE_CLOSED:b++,ATTRIB_VALUE_UNQUOTED:b++,ATTRIB_VALUE_ENTITY_Q:b++,ATTRIB_VALUE_ENTITY_U:b++,CLOSE_TAG:b++,CLOSE_TAG_SAW_WHITE:b++,SCRIPT:b++,SCRIPT_ENDING:b++},i.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},i.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(i.ENTITIES).forEach(function(q){var O=i.ENTITIES[q],$="number"==typeof O?String.fromCharCode(O):O;i.ENTITIES[q]=$}),i.STATE)i.STATE[i.STATE[Z]]=Z;function aA(q,O,$){q[O]&&q[O]($)}function AA(q,O,$){q.textNode&&lA(q),aA(q,O,$)}function lA(q){q.textNode=MA(q.opt,q.textNode),q.textNode&&aA(q,"ontext",q.textNode),q.textNode=""}function MA(q,O){return q.trim&&(O=O.trim()),q.normalize&&(O=O.replace(/\s+/g," ")),O}function cA(q,O){return lA(q),q.trackPosition&&(O+="\nLine: "+q.line+"\nColumn: "+q.column+"\nChar: "+q.c),O=new Error(O),q.error=O,aA(q,"onerror",O),q}function gA(q){return q.sawRoot&&!q.closedRoot&&BA(q,"Unclosed root tag"),q.state!==b.BEGIN&&q.state!==b.BEGIN_WHITESPACE&&q.state!==b.TEXT&&cA(q,"Unexpected end"),lA(q),q.c="",q.closed=!0,aA(q,"onend"),l.call(q,q.strict,q.opt),q}function BA(q,O){if("object"!=typeof q||!(q instanceof l))throw new Error("bad call to strictFail");q.strict&&cA(q,O)}function DA(q){q.strict||(q.tagName=q.tagName[q.looseCase]());var O=q.tags[q.tags.length-1]||q,$=q.tag={name:q.tagName,attributes:{}};q.opt.xmlns&&($.ns=O.ns),q.attribList.length=0,AA(q,"onopentagstart",$)}function FA(q,O){var W=q.indexOf(":")<0?["",q]:q.split(":"),hA=W[0],mA=W[1];return O&&"xmlns"===q&&(hA="xmlns",mA=""),{prefix:hA,local:mA}}function _(q){if(q.strict||(q.attribName=q.attribName[q.looseCase]()),-1!==q.attribList.indexOf(q.attribName)||q.tag.attributes.hasOwnProperty(q.attribName))q.attribName=q.attribValue="";else{if(q.opt.xmlns){var O=FA(q.attribName,!0),W=O.local;if("xmlns"===O.prefix)if("xml"===W&&q.attribValue!==w)BA(q,"xml: prefix must be bound to "+w+"\nActual: "+q.attribValue);else if("xmlns"===W&&q.attribValue!==Q)BA(q,"xmlns: prefix must be bound to "+Q+"\nActual: "+q.attribValue);else{var hA=q.tag,mA=q.tags[q.tags.length-1]||q;hA.ns===mA.ns&&(hA.ns=Object.create(mA.ns)),hA.ns[W]=q.attribValue}q.attribList.push([q.attribName,q.attribValue])}else q.tag.attributes[q.attribName]=q.attribValue,AA(q,"onattribute",{name:q.attribName,value:q.attribValue});q.attribName=q.attribValue=""}}function dA(q,O){if(q.opt.xmlns){var $=q.tag,W=FA(q.tagName);$.prefix=W.prefix,$.local=W.local,$.uri=$.ns[W.prefix]||"",$.prefix&&!$.uri&&(BA(q,"Unbound namespace prefix: "+JSON.stringify(q.tagName)),$.uri=W.prefix),$.ns&&(q.tags[q.tags.length-1]||q).ns!==$.ns&&Object.keys($.ns).forEach(function(ft){AA(q,"onopennamespace",{prefix:ft,uri:$.ns[ft]})});for(var mA=0,nA=q.attribList.length;mA",q.tagName="",void(q.state=b.SCRIPT);AA(q,"onscript",q.script),q.script=""}var O=q.tags.length,$=q.tagName;q.strict||($=$[q.looseCase]());for(var W=$;O--&&q.tags[O].name!==W;)BA(q,"Unexpected close tag");if(O<0)return BA(q,"Unmatched closing tag: "+q.tagName),q.textNode+="",void(q.state=b.TEXT);q.tagName=$;for(var mA=q.tags.length;mA-- >O;){var nA=q.tag=q.tags.pop();q.tagName=q.tag.name,AA(q,"onclosetag",q.tagName);var EA={};for(var GA in nA.ns)EA[GA]=nA.ns[GA];q.opt.xmlns&&nA.ns!==(q.tags[q.tags.length-1]||q).ns&&Object.keys(nA.ns).forEach(function(ot){AA(q,"onclosenamespace",{prefix:ot,uri:nA.ns[ot]})})}0===O&&(q.closedRoot=!0),q.tagName=q.attribValue=q.attribName="",q.attribList.length=0,q.state=b.TEXT}function CA(q){var W,O=q.entity,$=O.toLowerCase(),hA="";return q.ENTITIES[O]?q.ENTITIES[O]:q.ENTITIES[$]?q.ENTITIES[$]:("#"===(O=$).charAt(0)&&("x"===O.charAt(1)?(O=O.slice(2),hA=(W=parseInt(O,16)).toString(16)):(O=O.slice(1),hA=(W=parseInt(O,10)).toString(10))),O=O.replace(/^0+/,""),isNaN(W)||hA.toLowerCase()!==O?(BA(q,"Invalid character entity"),"&"+q.entity+";"):String.fromCodePoint(W))}function SA(q,O){"<"===O?(q.state=b.OPEN_WAKA,q.startTagPosition=q.position):D(O)||(BA(q,"Non-whitespace before first tag."),q.textNode=O,q.state=b.TEXT)}function bA(q,O){var $="";return O1114111||O(ot)!==ot)throw RangeError("Invalid code point: "+ot);ot<=65535?hA.push(ot):hA.push(55296+((ot-=65536)>>10),ot%1024+56320),(EA+1===GA||hA.length>W)&&(et+=q.apply(null,hA),hA.length=0)}return et},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:$,configurable:!0,writable:!0}):String.fromCodePoint=$)}(I)},2830:function(Y,I,n){Y.exports=o;var c=n(7187).EventEmitter;function o(){c.call(this)}n(5717)(o,c),o.Readable=n(6577),o.Writable=n(323),o.Duplex=n(8656),o.Transform=n(4473),o.PassThrough=n(2366),o.finished=n(1086),o.pipeline=n(6472),o.Stream=o,o.prototype.pipe=function(l,h){var a=this;function g(w){l.writable&&!1===l.write(w)&&a.pause&&a.pause()}function E(){a.readable&&a.resume&&a.resume()}a.on("data",g),l.on("drain",E),!l._isStdio&&(!h||!1!==h.end)&&(a.on("end",C),a.on("close",e));var u=!1;function C(){u||(u=!0,l.end())}function e(){u||(u=!0,"function"==typeof l.destroy&&l.destroy())}function f(w){if(B(),0===c.listenerCount(this,"error"))throw w}function B(){a.removeListener("data",g),l.removeListener("drain",E),a.removeListener("end",C),a.removeListener("close",e),a.removeListener("error",f),l.removeListener("error",f),a.removeListener("end",B),a.removeListener("close",B),l.removeListener("close",B)}return a.on("error",f),l.on("error",f),a.on("end",B),a.on("close",B),l.on("close",B),l.emit("pipe",a),l}},8106:function(Y){"use strict";var n={};function c(a,g,E){E||(E=Error);var C=function(e){function f(B,w,Q){return e.call(this,function u(e,f,B){return"string"==typeof g?g:g(e,f,B)}(B,w,Q))||this}return function I(a,g){a.prototype=Object.create(g.prototype),a.prototype.constructor=a,a.__proto__=g}(f,e),f}(E);C.prototype.name=E.name,C.prototype.code=a,n[a]=C}function i(a,g){if(Array.isArray(a)){var E=a.length;return a=a.map(function(u){return String(u)}),E>2?"one of ".concat(g," ").concat(a.slice(0,E-1).join(", "),", or ")+a[E-1]:2===E?"one of ".concat(g," ").concat(a[0]," or ").concat(a[1]):"of ".concat(g," ").concat(a[0])}return"of ".concat(g," ").concat(String(a))}c("ERR_INVALID_OPT_VALUE",function(a,g){return'The value "'+g+'" is invalid for option "'+a+'"'},TypeError),c("ERR_INVALID_ARG_TYPE",function(a,g,E){var u,C;if("string"==typeof g&&function o(a,g,E){return a.substr(!E||E<0?0:+E,g.length)===g}(g,"not ")?(u="must not be",g=g.replace(/^not /,"")):u="must be",function l(a,g,E){return(void 0===E||E>a.length)&&(E=a.length),a.substring(E-g.length,E)===g}(a," argument"))C="The ".concat(a," ").concat(u," ").concat(i(g,"type"));else{var e=function h(a,g,E){return"number"!=typeof E&&(E=0),!(E+g.length>a.length)&&-1!==a.indexOf(g,E)}(a,".")?"property":"argument";C='The "'.concat(a,'" ').concat(e," ").concat(u," ").concat(i(g,"type"))}return C+". Received type ".concat(typeof E)},TypeError),c("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),c("ERR_METHOD_NOT_IMPLEMENTED",function(a){return"The "+a+" method is not implemented"}),c("ERR_STREAM_PREMATURE_CLOSE","Premature close"),c("ERR_STREAM_DESTROYED",function(a){return"Cannot call "+a+" after a stream was destroyed"}),c("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),c("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),c("ERR_STREAM_WRITE_AFTER_END","write after end"),c("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),c("ERR_UNKNOWN_ENCODING",function(a){return"Unknown encoding: "+a},TypeError),c("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Y.exports.q=n},8656:function(Y,I,n){"use strict";var c=n(4155),i=Object.keys||function(e){var f=[];for(var B in e)f.push(B);return f};Y.exports=E;var o=n(6577),l=n(323);n(5717)(E,o);for(var h=i(l.prototype),a=0;a0)if("string"!=typeof EA&&!TA.objectMode&&Object.getPrototypeOf(EA)!==a.prototype&&(EA=function E(nA){return a.from(nA)}(EA)),et)TA.endEmitted?F(nA,new v):lA(nA,TA,EA,!0);else if(TA.ended)F(nA,new m);else{if(TA.destroyed)return!1;TA.reading=!1,TA.decoder&&!GA?(EA=TA.decoder.write(EA),TA.objectMode||0!==EA.length?lA(nA,TA,EA,!1):dA(nA,TA)):lA(nA,TA,EA,!1)}else et||(TA.reading=!1,dA(nA,TA));return!TA.ended&&(TA.lengthEA.highWaterMark&&(EA.highWaterMark=function gA(nA){return nA>=cA?nA=cA:(nA--,nA|=nA>>>1,nA|=nA>>>2,nA|=nA>>>4,nA|=nA>>>8,nA|=nA>>>16,nA++),nA}(nA)),nA<=EA.length?nA:EA.ended?EA.length:(EA.needReadable=!0,0))}function FA(nA){var EA=nA._readableState;e("emitReadable",EA.needReadable,EA.emittedReadable),EA.needReadable=!1,EA.emittedReadable||(e("emitReadable",EA.flowing),EA.emittedReadable=!0,c.nextTick(_,nA))}function _(nA){var EA=nA._readableState;e("emitReadable_",EA.destroyed,EA.length,EA.ended),!EA.destroyed&&(EA.length||EA.ended)&&(nA.emit("readable"),EA.emittedReadable=!1),EA.needReadable=!EA.flowing&&!EA.ended&&EA.length<=EA.highWaterMark,O(nA)}function dA(nA,EA){EA.readingMore||(EA.readingMore=!0,c.nextTick(uA,nA,EA))}function uA(nA,EA){for(;!EA.reading&&!EA.ended&&(EA.length0,EA.resumeScheduled&&!EA.paused?EA.flowing=!0:nA.listenerCount("data")>0&&nA.resume()}function bA(nA){e("readable nexttick read 0"),nA.read(0)}function q(nA,EA){e("resume",EA.reading),EA.reading||nA.read(0),EA.resumeScheduled=!1,nA.emit("resume"),O(nA),EA.flowing&&!EA.reading&&nA.read(0)}function O(nA){var EA=nA._readableState;for(e("flow",EA.flowing);EA.flowing&&null!==nA.read(););}function $(nA,EA){return 0===EA.length?null:(EA.objectMode?GA=EA.buffer.shift():!nA||nA>=EA.length?(GA=EA.decoder?EA.buffer.join(""):1===EA.buffer.length?EA.buffer.first():EA.buffer.concat(EA.length),EA.buffer.clear()):GA=EA.buffer.consume(nA,EA.decoder),GA);var GA}function W(nA){var EA=nA._readableState;e("endReadable",EA.endEmitted),EA.endEmitted||(EA.ended=!0,c.nextTick(hA,EA,nA))}function hA(nA,EA){if(e("endReadableNT",nA.endEmitted,nA.length),!nA.endEmitted&&0===nA.length&&(nA.endEmitted=!0,EA.readable=!1,EA.emit("end"),nA.autoDestroy)){var GA=EA._writableState;(!GA||GA.autoDestroy&&GA.finished)&&EA.destroy()}}function mA(nA,EA){for(var GA=0,et=nA.length;GA=EA.highWaterMark:EA.length>0)||EA.ended))return e("read: emitReadable",EA.length,EA.ended),0===EA.length&&EA.ended?W(this):FA(this),null;if(0===(nA=BA(nA,EA))&&EA.ended)return 0===EA.length&&W(this),null;var ot,et=EA.needReadable;return e("need readable",et),(0===EA.length||EA.length-nA0?$(nA,EA):null)?(EA.needReadable=EA.length<=EA.highWaterMark,nA=0):(EA.length-=nA,EA.awaitDrain=0),0===EA.length&&(EA.ended||(EA.needReadable=!0),GA!==nA&&EA.ended&&W(this)),null!==ot&&this.emit("data",ot),ot},aA.prototype._read=function(nA){F(this,new d("_read()"))},aA.prototype.pipe=function(nA,EA){var GA=this,et=this._readableState;switch(et.pipesCount){case 0:et.pipes=nA;break;case 1:et.pipes=[et.pipes,nA];break;default:et.pipes.push(nA)}et.pipesCount+=1,e("pipe count=%d opts=%j",et.pipesCount,EA);var TA=EA&&!1===EA.end||nA===c.stdout||nA===c.stderr?ht:mt;function it(OA,Yt){e("onunpipe"),OA===GA&&Yt&&!1===Yt.hasUnpiped&&(Yt.hasUnpiped=!0,function JA(){e("cleanup"),nA.removeListener("close",yA),nA.removeListener("finish",Mt),nA.removeListener("drain",It),nA.removeListener("error",rt),nA.removeListener("unpipe",it),GA.removeListener("end",mt),GA.removeListener("end",ht),GA.removeListener("data",WA),ft=!0,et.awaitDrain&&(!nA._writableState||nA._writableState.needDrain)&&It()}())}function mt(){e("onend"),nA.end()}et.endEmitted?c.nextTick(TA):GA.once("end",TA),nA.on("unpipe",it);var It=function CA(nA){return function(){var GA=nA._readableState;e("pipeOnDrain",GA.awaitDrain),GA.awaitDrain&&GA.awaitDrain--,0===GA.awaitDrain&&l(nA,"data")&&(GA.flowing=!0,O(nA))}}(GA);nA.on("drain",It);var ft=!1;function WA(OA){e("ondata");var Yt=nA.write(OA);e("dest.write",Yt),!1===Yt&&((1===et.pipesCount&&et.pipes===nA||et.pipesCount>1&&-1!==mA(et.pipes,nA))&&!ft&&(e("false write response, pause",et.awaitDrain),et.awaitDrain++),GA.pause())}function rt(OA){e("onerror",OA),ht(),nA.removeListener("error",rt),0===l(nA,"error")&&F(nA,OA)}function yA(){nA.removeListener("finish",Mt),ht()}function Mt(){e("onfinish"),nA.removeListener("close",yA),ht()}function ht(){e("unpipe"),GA.unpipe(nA)}return GA.on("data",WA),function b(nA,EA,GA){if("function"==typeof nA.prependListener)return nA.prependListener(EA,GA);nA._events&&nA._events[EA]?Array.isArray(nA._events[EA])?nA._events[EA].unshift(GA):nA._events[EA]=[GA,nA._events[EA]]:nA.on(EA,GA)}(nA,"error",rt),nA.once("close",yA),nA.once("finish",Mt),nA.emit("pipe",GA),et.flowing||(e("pipe resume"),GA.resume()),nA},aA.prototype.unpipe=function(nA){var EA=this._readableState,GA={hasUnpiped:!1};if(0===EA.pipesCount)return this;if(1===EA.pipesCount)return nA&&nA!==EA.pipes||(nA||(nA=EA.pipes),EA.pipes=null,EA.pipesCount=0,EA.flowing=!1,nA&&nA.emit("unpipe",this,GA)),this;if(!nA){var et=EA.pipes,ot=EA.pipesCount;EA.pipes=null,EA.pipesCount=0,EA.flowing=!1;for(var TA=0;TA0,!1!==et.flowing&&this.resume()):"readable"===nA&&!et.endEmitted&&!et.readableListening&&(et.readableListening=et.needReadable=!0,et.flowing=!1,et.emittedReadable=!1,e("on readable",et.length,et.reading),et.length?FA(this):et.reading||c.nextTick(bA,this)),GA},aA.prototype.removeListener=function(nA,EA){var GA=h.prototype.removeListener.call(this,nA,EA);return"readable"===nA&&c.nextTick(SA,this),GA},aA.prototype.removeAllListeners=function(nA){var EA=h.prototype.removeAllListeners.apply(this,arguments);return("readable"===nA||void 0===nA)&&c.nextTick(SA,this),EA},aA.prototype.resume=function(){var nA=this._readableState;return nA.flowing||(e("resume"),nA.flowing=!nA.readableListening,function XA(nA,EA){EA.resumeScheduled||(EA.resumeScheduled=!0,c.nextTick(q,nA,EA))}(this,nA)),nA.paused=!1,this},aA.prototype.pause=function(){return e("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(e("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},aA.prototype.wrap=function(nA){var EA=this,GA=this._readableState,et=!1;for(var ot in nA.on("end",function(){if(e("wrapped end"),GA.decoder&&!GA.ended){var it=GA.decoder.end();it&&it.length&&EA.push(it)}EA.push(null)}),nA.on("data",function(it){e("wrapped data"),GA.decoder&&(it=GA.decoder.write(it)),GA.objectMode&&null==it||!(GA.objectMode||it&&it.length)||EA.push(it)||(et=!0,nA.pause())}),nA)void 0===this[ot]&&"function"==typeof nA[ot]&&(this[ot]=function(mt){return function(){return nA[mt].apply(nA,arguments)}}(ot));for(var TA=0;TA-1))throw new U($);return this._writableState.defaultEncoding=$,this},Object.defineProperty(Z.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Z.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Z.prototype._write=function(O,$,W){W(new p("_write()"))},Z.prototype._writev=null,Z.prototype.end=function(O,$,W){var hA=this._writableState;return"function"==typeof O?(W=O,O=null,$=null):"function"==typeof $&&(W=$,$=null),null!=O&&this.write(O,$),hA.corked&&(hA.corked=1,this.uncork()),hA.ending||function XA(O,$,W){$.ending=!0,bA(O,$),W&&($.finished?c.nextTick(W):O.once("finish",W)),$.ended=!0,O.writable=!1}(this,hA,W),this},Object.defineProperty(Z.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Z.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function($){!this._writableState||(this._writableState.destroyed=$)}}),Z.prototype.destroy=e.destroy,Z.prototype._undestroy=e.undestroy,Z.prototype._destroy=function(O,$){$(O)}},828:function(Y,I,n){"use strict";var i,c=n(4155);function o(d,v,D){return v in d?Object.defineProperty(d,v,{value:D,enumerable:!0,configurable:!0,writable:!0}):d[v]=D,d}var l=n(1086),h=Symbol("lastResolve"),a=Symbol("lastReject"),g=Symbol("error"),E=Symbol("ended"),u=Symbol("lastPromise"),C=Symbol("handlePromise"),e=Symbol("stream");function f(d,v){return{value:d,done:v}}function B(d){var v=d[h];if(null!==v){var D=d[e].read();null!==D&&(d[u]=null,d[h]=null,d[a]=null,v(f(D,!1)))}}function w(d){c.nextTick(B,d)}var p=Object.getPrototypeOf(function(){}),S=Object.setPrototypeOf((o(i={get stream(){return this[e]},next:function(){var v=this,D=this[g];if(null!==D)return Promise.reject(D);if(this[E])return Promise.resolve(f(void 0,!0));if(this[e].destroyed)return new Promise(function(z,b){c.nextTick(function(){v[g]?b(v[g]):z(f(void 0,!0))})});var T,U=this[u];if(U)T=new Promise(function Q(d,v){return function(D,U){d.then(function(){v[E]?D(f(void 0,!0)):v[C](D,U)},U)}}(U,this));else{var F=this[e].read();if(null!==F)return Promise.resolve(f(F,!1));T=new Promise(this[C])}return this[u]=T,T}},Symbol.asyncIterator,function(){return this}),o(i,"return",function(){var v=this;return new Promise(function(D,U){v[e].destroy(null,function(T){T?U(T):D(f(void 0,!0))})})}),i),p);Y.exports=function(v){var D,U=Object.create(S,(o(D={},e,{value:v,writable:!0}),o(D,h,{value:null,writable:!0}),o(D,a,{value:null,writable:!0}),o(D,g,{value:null,writable:!0}),o(D,E,{value:v._readableState.endEmitted,writable:!0}),o(D,C,{value:function(F,z){var b=U[e].read();b?(U[u]=null,U[h]=null,U[a]=null,F(f(b,!1))):(U[h]=F,U[a]=z)},writable:!0}),D));return U[u]=null,l(v,function(T){if(T&&"ERR_STREAM_PREMATURE_CLOSE"!==T.code){var F=U[a];return null!==F&&(U[u]=null,U[h]=null,U[a]=null,F(T)),void(U[g]=T)}var z=U[h];null!==z&&(U[u]=null,U[h]=null,U[a]=null,z(f(void 0,!0))),U[E]=!0}),v.on("readable",w.bind(null,U)),U}},1029:function(Y,I,n){"use strict";var c=n(4155);function o(E,u){a(E,u),l(E)}function l(E){E._writableState&&!E._writableState.emitClose||E._readableState&&!E._readableState.emitClose||E.emit("close")}function a(E,u){E.emit("error",u)}Y.exports={destroy:function i(E,u){var C=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(u?u(E):E&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,c.nextTick(a,this,E)):c.nextTick(a,this,E)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(E||null,function(B){!u&&B?C._writableState?C._writableState.errorEmitted?c.nextTick(l,C):(C._writableState.errorEmitted=!0,c.nextTick(o,C,B)):c.nextTick(o,C,B):u?(c.nextTick(l,C),u(B)):c.nextTick(l,C)}),this)},undestroy:function h(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function g(E,u){var C=E._readableState,e=E._writableState;C&&C.autoDestroy||e&&e.autoDestroy?E.destroy(u):E.emit("error",u)}}},1086:function(Y,I,n){"use strict";var c=n(8106).q.ERR_STREAM_PREMATURE_CLOSE;function o(){}Y.exports=function h(a,g,E){if("function"==typeof g)return h(a,null,g);g||(g={}),E=function i(a){var g=!1;return function(){if(!g){g=!0;for(var E=arguments.length,u=new Array(E),C=0;C0,function(T){S||(S=T),T&&m.forEach(u),!D&&(m.forEach(u),p(S))})});return w.reduce(C)}},94:function(Y,I,n){"use strict";var c=n(8106).q.ERR_INVALID_OPT_VALUE;Y.exports={getHighWaterMark:function o(l,h,a,g){var E=function i(l,h,a){return null!=l.highWaterMark?l.highWaterMark:h?l[a]:null}(h,g,a);if(null!=E){if(!isFinite(E)||Math.floor(E)!==E||E<0)throw new c(g?a:"highWaterMark",E);return Math.floor(E)}return l.objectMode?16:16384}}},3194:function(Y,I,n){Y.exports=n(7187).EventEmitter},1818:function(Y,I,n){var c,o;void 0!==(o="function"==typeof(c=function(){"use strict";function h(e,f,B){var w=new XMLHttpRequest;w.open("GET",e),w.responseType="blob",w.onload=function(){C(w.response,f,B)},w.onerror=function(){console.error("could not download file")},w.send()}function a(e){var f=new XMLHttpRequest;f.open("HEAD",e,!1);try{f.send()}catch(B){}return 200<=f.status&&299>=f.status}function g(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(B){var f=document.createEvent("MouseEvents");f.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(f)}}var E="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,u=E.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),C=E.saveAs||("object"!=typeof window||window!==E?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!u?function(e,f,B){var w=E.URL||E.webkitURL,Q=document.createElement("a");Q.download=f=f||e.name||"download",Q.rel="noopener","string"==typeof e?(Q.href=e,Q.origin===location.origin?g(Q):a(Q.href)?h(e,f,B):g(Q,Q.target="_blank")):(Q.href=w.createObjectURL(e),setTimeout(function(){w.revokeObjectURL(Q.href)},4e4),setTimeout(function(){g(Q)},0))}:"msSaveOrOpenBlob"in navigator?function(e,f,B){if(f=f||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function l(e,f){return void 0===f?f={autoBom:!1}:"object"!=typeof f&&(console.warn("Deprecated: Expected third argument to be a object"),f={autoBom:!f}),f.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,B),f);else if(a(e))h(e,f,B);else{var w=document.createElement("a");w.href=e,w.target="_blank",setTimeout(function(){g(w)})}}:function(e,f,B,w){if((w=w||open("","_blank"))&&(w.document.title=w.document.body.innerText="downloading..."),"string"==typeof e)return h(e,f,B);var Q="application/octet-stream"===e.type,p=/constructor/i.test(E.HTMLElement)||E.safari,S=/CriOS\/[\d]+/.test(navigator.userAgent);if((S||Q&&p||u)&&"undefined"!=typeof FileReader){var m=new FileReader;m.onloadend=function(){var D=m.result;D=S?D:D.replace(/^data:[^;]*;/,"data:attachment/file;"),w?w.location.href=D:location=D,w=null},m.readAsDataURL(e)}else{var d=E.URL||E.webkitURL,v=d.createObjectURL(e);w?w.location=v:location.href=v,w=null,setTimeout(function(){d.revokeObjectURL(v)},4e4)}});E.saveAs=C.saveAs=C,Y.exports=C})?c.apply(I,[]):c)&&(Y.exports=o)},2553:function(Y,I,n){"use strict";var c=n(1750).Buffer,i=c.isEncoding||function(m){switch((m=""+m)&&m.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function h(m){var d;switch(this.encoding=function l(m){var d=function o(m){if(!m)return"utf8";for(var d;;)switch(m){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 m;default:if(d)return;m=(""+m).toLowerCase(),d=!0}}(m);if("string"!=typeof d&&(c.isEncoding===i||!i(m)))throw new Error("Unknown encoding: "+m);return d||m}(m),this.encoding){case"utf16le":this.text=f,this.end=B,d=4;break;case"utf8":this.fillLast=u,d=4;break;case"base64":this.text=w,this.end=Q,d=3;break;default:return this.write=p,void(this.end=S)}this.lastNeed=0,this.lastTotal=0,this.lastChar=c.allocUnsafe(d)}function a(m){return m<=127?0:m>>5==6?2:m>>4==14?3:m>>3==30?4:m>>6==2?-1:-2}function u(m){var d=this.lastTotal-this.lastNeed,v=function E(m,d,v){if(128!=(192&d[0]))return m.lastNeed=0,"\ufffd";if(m.lastNeed>1&&d.length>1){if(128!=(192&d[1]))return m.lastNeed=1,"\ufffd";if(m.lastNeed>2&&d.length>2&&128!=(192&d[2]))return m.lastNeed=2,"\ufffd"}}(this,m);return void 0!==v?v:this.lastNeed<=m.length?(m.copy(this.lastChar,d,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(m.copy(this.lastChar,d,0,m.length),void(this.lastNeed-=m.length))}function f(m,d){if((m.length-d)%2==0){var v=m.toString("utf16le",d);if(v){var D=v.charCodeAt(v.length-1);if(D>=55296&&D<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1],v.slice(0,-1)}return v}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=m[m.length-1],m.toString("utf16le",d,m.length-1)}function B(m){var d=m&&m.length?this.write(m):"";return this.lastNeed?d+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):d}function w(m,d){var v=(m.length-d)%3;return 0===v?m.toString("base64",d):(this.lastNeed=3-v,this.lastTotal=3,1===v?this.lastChar[0]=m[m.length-1]:(this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1]),m.toString("base64",d,m.length-v))}function Q(m){var d=m&&m.length?this.write(m):"";return this.lastNeed?d+this.lastChar.toString("base64",0,3-this.lastNeed):d}function p(m){return m.toString(this.encoding)}function S(m){return m&&m.length?this.write(m):""}I.s=h,h.prototype.write=function(m){if(0===m.length)return"";var d,v;if(this.lastNeed){if(void 0===(d=this.fillLast(m)))return"";v=this.lastNeed,this.lastNeed=0}else v=0;return v=0?(U>0&&(m.lastNeed=U-1),U):--D=0?(U>0&&(m.lastNeed=U-2),U):--D=0?(U>0&&(2===U?U=0:m.lastNeed=U-3),U):0}(this,m,d);if(!this.lastNeed)return m.toString("utf8",d);this.lastTotal=v;var D=m.length-(v-this.lastNeed);return m.copy(this.lastChar,0,D),m.toString("utf8",d,D)},h.prototype.fillLast=function(m){if(this.lastNeed<=m.length)return m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);m.copy(this.lastChar,this.lastTotal-this.lastNeed,0,m.length),this.lastNeed-=m.length}},311:function(Y){function c(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function i(T,F){this.source=T,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=F,this.destLen=0,this.ltree=new c,this.dtree=new c}var o=new c,l=new c,h=new Uint8Array(30),a=new Uint16Array(30),g=new Uint8Array(30),E=new Uint16Array(30),u=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),C=new c,e=new Uint8Array(320);function f(T,F,z,b){var Z,aA;for(Z=0;Z>>=1,F}function S(T,F,z){if(!F)return z;for(;T.bitcount<24;)T.tag|=T.source[T.sourceIndex++]<>>16-F;return T.tag>>>=F,T.bitcount-=F,b+z}function m(T,F){for(;T.bitcount<24;)T.tag|=T.source[T.sourceIndex++]<>>=1,++Z,z+=F.table[Z],b-=F.table[Z]}while(b>=0);return T.tag=aA,T.bitcount-=Z,F.trans[z+b]}function d(T,F,z){var b,Z,aA,AA,lA,MA;for(b=S(T,5,257),Z=S(T,5,1),aA=S(T,4,4),AA=0;AA<19;++AA)e[AA]=0;for(AA=0;AA8;)T.sourceIndex--,T.bitcount-=8;if((F=256*(F=T.source[T.sourceIndex+1])+T.source[T.sourceIndex])!==(65535&~(256*T.source[T.sourceIndex+3]+T.source[T.sourceIndex+2])))return-3;for(T.sourceIndex+=4,b=F;b;--b)T.dest[T.destLen++]=T.source[T.sourceIndex++];return T.bitcount=0,0}(function B(T,F){var z;for(z=0;z<7;++z)T.table[z]=0;for(T.table[7]=24,T.table[8]=152,T.table[9]=112,z=0;z<24;++z)T.trans[z]=256+z;for(z=0;z<144;++z)T.trans[24+z]=z;for(z=0;z<8;++z)T.trans[168+z]=280+z;for(z=0;z<112;++z)T.trans[176+z]=144+z;for(z=0;z<5;++z)F.table[z]=0;for(F.table[5]=32,z=0;z<32;++z)F.trans[z]=z})(o,l),f(h,a,4,3),f(g,E,2,1),h[28]=0,a[28]=258,Y.exports=function U(T,F){var b,aA,z=new i(T,F);do{switch(b=p(z),S(z,2,0)){case 0:aA=D(z);break;case 1:aA=v(z,o,l);break;case 2:d(z,z.ltree,z.dtree),aA=v(z,z.ltree,z.dtree);break;default:aA=-3}if(0!==aA)throw new Error("Data error")}while(!b);return z.destLen=eA.length?{done:!0}:{done:!1,value:eA[M++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(eA,G){(null==G||G>eA.length)&&(G=eA.length);for(var V=0,M=new Array(G);V0?iA[0]:"value";if(tA.has(jA))return tA.get(jA);var lt=x.apply(this,iA);return tA.set(jA,lt),lt}return Object.defineProperty(this,G,{value:oA}),oA}}}}D.registerFormat=function(eA){U.push(eA)},D.openSync=function(eA,G){var V=v.readFileSync(eA);return D.create(V,G)},D.open=function(eA,G,V){"function"==typeof G&&(V=G,G=null),v.readFile(eA,function(M,x){if(M)return V(M);try{var P=D.create(x,G)}catch(tA){return V(tA)}return V(null,P)})},D.create=function(eA,G){for(var V=0;V>1},searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16,endCode:new e.LazyArray(e.uint16,"segCount"),reservedPad:new e.Reserved(e.uint16),startCode:new e.LazyArray(e.uint16,"segCount"),idDelta:new e.LazyArray(e.int16,"segCount"),idRangeOffset:new e.LazyArray(e.uint16,"segCount"),glyphIndexArray:new e.LazyArray(e.uint16,function(eA){return(eA.length-eA._currentOffset)/2})},6:{length:e.uint16,language:e.uint16,firstCode:e.uint16,entryCount:e.uint16,glyphIndices:new e.LazyArray(e.uint16,"entryCount")},8:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint16,is32:new e.LazyArray(e.uint8,8192),nGroups:e.uint32,groups:new e.LazyArray(Z,"nGroups")},10:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint32,firstCode:e.uint32,entryCount:e.uint32,glyphIndices:new e.LazyArray(e.uint16,"numChars")},12:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint32,nGroups:e.uint32,groups:new e.LazyArray(Z,"nGroups")},13:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint32,nGroups:e.uint32,groups:new e.LazyArray(Z,"nGroups")},14:{length:e.uint32,numRecords:e.uint32,varSelectors:new e.LazyArray(cA,"numRecords")}}),BA=new e.Struct({platformID:e.uint16,encodingID:e.uint16,table:new e.Pointer(e.uint32,gA,{type:"parent",lazy:!0})}),DA=new e.Struct({version:e.uint16,numSubtables:e.uint16,tables:new e.Array(BA,"numSubtables")}),FA=new e.Struct({version:e.int32,revision:e.int32,checkSumAdjustment:e.uint32,magicNumber:e.uint32,flags:e.uint16,unitsPerEm:e.uint16,created:new e.Array(e.int32,2),modified:new e.Array(e.int32,2),xMin:e.int16,yMin:e.int16,xMax:e.int16,yMax:e.int16,macStyle:new e.Bitfield(e.uint16,["bold","italic","underline","outline","shadow","condensed","extended"]),lowestRecPPEM:e.uint16,fontDirectionHint:e.int16,indexToLocFormat:e.int16,glyphDataFormat:e.int16}),_=new e.Struct({version:e.int32,ascent:e.int16,descent:e.int16,lineGap:e.int16,advanceWidthMax:e.uint16,minLeftSideBearing:e.int16,minRightSideBearing:e.int16,xMaxExtent:e.int16,caretSlopeRise:e.int16,caretSlopeRun:e.int16,caretOffset:e.int16,reserved:new e.Reserved(e.int16,4),metricDataFormat:e.int16,numberOfMetrics:e.uint16}),dA=new e.Struct({advance:e.uint16,bearing:e.int16}),uA=new e.Struct({metrics:new e.LazyArray(dA,function(eA){return eA.parent.hhea.numberOfMetrics}),bearings:new e.LazyArray(e.int16,function(eA){return eA.parent.maxp.numGlyphs-eA.parent.hhea.numberOfMetrics})}),CA=new e.Struct({version:e.int32,numGlyphs:e.uint16,maxPoints:e.uint16,maxContours:e.uint16,maxComponentPoints:e.uint16,maxComponentContours:e.uint16,maxZones:e.uint16,maxTwilightPoints:e.uint16,maxStorage:e.uint16,maxFunctionDefs:e.uint16,maxInstructionDefs:e.uint16,maxStackElements:e.uint16,maxSizeOfInstructions:e.uint16,maxComponentElements:e.uint16,maxComponentDepth:e.uint16});function SA(eA,G,V){return void 0===V&&(V=0),1===eA&&XA[V]?XA[V]:bA[eA][G]}var bA=[["utf16be","utf16be","utf16be","utf16be","utf16be","utf16be"],["macroman","shift-jis","big5","euc-kr","iso-8859-6","iso-8859-8","macgreek","maccyrillic","symbol","Devanagari","Gurmukhi","Gujarati","Oriya","Bengali","Tamil","Telugu","Kannada","Malayalam","Sinhalese","Burmese","Khmer","macthai","Laotian","Georgian","Armenian","gb-2312-80","Tibetan","Mongolian","Geez","maccenteuro","Vietnamese","Sindhi"],["ascii"],["symbol","utf16be","shift-jis","gb18030","big5","wansung","johab",null,null,null,"utf16be"]],XA={15:"maciceland",17:"macturkish",18:"maccroatian",24:"maccenteuro",25:"maccenteuro",26:"maccenteuro",27:"maccenteuro",28:"maccenteuro",30:"maciceland",37:"macromania",38:"maccenteuro",39:"maccenteuro",40:"maccenteuro",143:"macinuit",146:"macgaelic"},q=[[],{0:"en",30:"fo",60:"ks",90:"rw",1:"fr",31:"fa",61:"ku",91:"rn",2:"de",32:"ru",62:"sd",92:"ny",3:"it",33:"zh",63:"bo",93:"mg",4:"nl",34:"nl-BE",64:"ne",94:"eo",5:"sv",35:"ga",65:"sa",128:"cy",6:"es",36:"sq",66:"mr",129:"eu",7:"da",37:"ro",67:"bn",130:"ca",8:"pt",38:"cz",68:"as",131:"la",9:"no",39:"sk",69:"gu",132:"qu",10:"he",40:"si",70:"pa",133:"gn",11:"ja",41:"yi",71:"or",134:"ay",12:"ar",42:"sr",72:"ml",135:"tt",13:"fi",43:"mk",73:"kn",136:"ug",14:"el",44:"bg",74:"ta",137:"dz",15:"is",45:"uk",75:"te",138:"jv",16:"mt",46:"be",76:"si",139:"su",17:"tr",47:"uz",77:"my",140:"gl",18:"hr",48:"kk",78:"km",141:"af",19:"zh-Hant",49:"az-Cyrl",79:"lo",142:"br",20:"ur",50:"az-Arab",80:"vi",143:"iu",21:"hi",51:"hy",81:"id",144:"gd",22:"th",52:"ka",82:"tl",145:"gv",23:"ko",53:"mo",83:"ms",146:"ga",24:"lt",54:"ky",84:"ms-Arab",147:"to",25:"pl",55:"tg",85:"am",148:"el-polyton",26:"hu",56:"tk",86:"ti",149:"kl",27:"es",57:"mn-CN",87:"om",150:"az",28:"lv",58:"mn",88:"so",151:"nn",29:"se",59:"ps",89:"sw"},[],{1078:"af",16393:"en-IN",1159:"rw",1074:"tn",1052:"sq",6153:"en-IE",1089:"sw",1115:"si",1156:"gsw",8201:"en-JM",1111:"kok",1051:"sk",1118:"am",17417:"en-MY",1042:"ko",1060:"sl",5121:"ar-DZ",5129:"en-NZ",1088:"ky",11274:"es-AR",15361:"ar-BH",13321:"en-PH",1108:"lo",16394:"es-BO",3073:"ar",18441:"en-SG",1062:"lv",13322:"es-CL",2049:"ar-IQ",7177:"en-ZA",1063:"lt",9226:"es-CO",11265:"ar-JO",11273:"en-TT",2094:"dsb",5130:"es-CR",13313:"ar-KW",2057:"en-GB",1134:"lb",7178:"es-DO",12289:"ar-LB",1033:"en",1071:"mk",12298:"es-EC",4097:"ar-LY",12297:"en-ZW",2110:"ms-BN",17418:"es-SV",6145:"ary",1061:"et",1086:"ms",4106:"es-GT",8193:"ar-OM",1080:"fo",1100:"ml",18442:"es-HN",16385:"ar-QA",1124:"fil",1082:"mt",2058:"es-MX",1025:"ar-SA",1035:"fi",1153:"mi",19466:"es-NI",10241:"ar-SY",2060:"fr-BE",1146:"arn",6154:"es-PA",7169:"aeb",3084:"fr-CA",1102:"mr",15370:"es-PY",14337:"ar-AE",1036:"fr",1148:"moh",10250:"es-PE",9217:"ar-YE",5132:"fr-LU",1104:"mn",20490:"es-PR",1067:"hy",6156:"fr-MC",2128:"mn-CN",3082:"es",1101:"as",4108:"fr-CH",1121:"ne",1034:"es",2092:"az-Cyrl",1122:"fy",1044:"nb",21514:"es-US",1068:"az",1110:"gl",2068:"nn",14346:"es-UY",1133:"ba",1079:"ka",1154:"oc",8202:"es-VE",1069:"eu",3079:"de-AT",1096:"or",2077:"sv-FI",1059:"be",1031:"de",1123:"ps",1053:"sv",2117:"bn",5127:"de-LI",1045:"pl",1114:"syr",1093:"bn-IN",4103:"de-LU",1046:"pt",1064:"tg",8218:"bs-Cyrl",2055:"de-CH",2070:"pt-PT",2143:"tzm",5146:"bs",1032:"el",1094:"pa",1097:"ta",1150:"br",1135:"kl",1131:"qu-BO",1092:"tt",1026:"bg",1095:"gu",2155:"qu-EC",1098:"te",1027:"ca",1128:"ha",3179:"qu",1054:"th",3076:"zh-HK",1037:"he",1048:"ro",1105:"bo",5124:"zh-MO",1081:"hi",1047:"rm",1055:"tr",2052:"zh",1038:"hu",1049:"ru",1090:"tk",4100:"zh-SG",1039:"is",9275:"smn",1152:"ug",1028:"zh-TW",1136:"ig",4155:"smj-NO",1058:"uk",1155:"co",1057:"id",5179:"smj",1070:"hsb",1050:"hr",1117:"iu",3131:"se-FI",1056:"ur",4122:"hr-BA",2141:"iu-Latn",1083:"se",2115:"uz-Cyrl",1029:"cs",2108:"ga",2107:"se-SE",1091:"uz",1030:"da",1076:"xh",8251:"sms",1066:"vi",1164:"prs",1077:"zu",6203:"sma-NO",1106:"cy",1125:"dv",1040:"it",7227:"sms",1160:"wo",2067:"nl-BE",2064:"it-CH",1103:"sa",1157:"sah",1043:"nl",1041:"ja",7194:"sr-Cyrl-BA",1144:"ii",3081:"en-AU",1099:"kn",3098:"sr",1130:"yo",10249:"en-BZ",1087:"kk",6170:"sr-Latn-BA",4105:"en-CA",1107:"km",2074:"sr-Latn",9225:"en-029",1158:"quc",1132:"nso"}],O=new e.Struct({platformID:e.uint16,encodingID:e.uint16,languageID:e.uint16,nameID:e.uint16,length:e.uint16,string:new e.Pointer(e.uint16,new e.String("length",function(eA){return SA(eA.platformID,eA.encodingID,eA.languageID)}),{type:"parent",relativeTo:function(G){return G.parent.stringOffset},allowNull:!1})}),$=new e.Struct({length:e.uint16,tag:new e.Pointer(e.uint16,new e.String("length","utf16be"),{type:"parent",relativeTo:function(G){return G.stringOffset}})}),W=new e.VersionedStruct(e.uint16,{0:{count:e.uint16,stringOffset:e.uint16,records:new e.Array(O,"count")},1:{count:e.uint16,stringOffset:e.uint16,records:new e.Array(O,"count"),langTagCount:e.uint16,langTags:new e.Array($,"langTagCount")}}),hA=["copyright","fontFamily","fontSubfamily","uniqueSubfamily","fullName","version","postscriptName","trademark","manufacturer","designer","description","vendorURL","designerURL","license","licenseURL",null,"preferredFamily","preferredSubfamily","compatibleFull","sampleText","postscriptCIDFontName","wwsFamilyName","wwsSubfamilyName"];W.process=function(eA){for(var M,G={},V=g(this.records);!(M=V()).done;){var x=M.value,P=q[x.platformID][x.languageID];null==P&&null!=this.langTags&&x.languageID>=32768&&(P=this.langTags[x.languageID-32768].tag),null==P&&(P=x.platformID+"-"+x.languageID);var tA=x.nameID>=256?"fontFeatures":hA[x.nameID]||x.nameID;null==G[tA]&&(G[tA]={});var oA=G[tA];x.nameID>=256&&(oA=oA[x.nameID]||(oA[x.nameID]={})),("string"==typeof x.string||"string"!=typeof oA[P])&&(oA[P]=x.string)}this.records=G},W.preEncode=function(){if(!Array.isArray(this.records)){this.version=0;var eA=[];for(var G in this.records){var V=this.records[G];"fontFeatures"!==G&&(eA.push({platformID:3,encodingID:1,languageID:1033,nameID:hA.indexOf(G),length:c.byteLength(V.en,"utf16le"),string:V.en}),"postscriptName"===G&&eA.push({platformID:1,encodingID:0,languageID:0,nameID:hA.indexOf(G),length:V.en.length,string:V.en}))}this.records=eA,this.count=eA.length,this.stringOffset=W.size(this,null,!1)}};var mA=new e.VersionedStruct(e.uint16,{header:{xAvgCharWidth:e.int16,usWeightClass:e.uint16,usWidthClass:e.uint16,fsType:new e.Bitfield(e.uint16,[null,"noEmbedding","viewOnly","editable",null,null,null,null,"noSubsetting","bitmapOnly"]),ySubscriptXSize:e.int16,ySubscriptYSize:e.int16,ySubscriptXOffset:e.int16,ySubscriptYOffset:e.int16,ySuperscriptXSize:e.int16,ySuperscriptYSize:e.int16,ySuperscriptXOffset:e.int16,ySuperscriptYOffset:e.int16,yStrikeoutSize:e.int16,yStrikeoutPosition:e.int16,sFamilyClass:e.int16,panose:new e.Array(e.uint8,10),ulCharRange:new e.Array(e.uint32,4),vendorID:new e.String(4),fsSelection:new e.Bitfield(e.uint16,["italic","underscore","negative","outlined","strikeout","bold","regular","useTypoMetrics","wws","oblique"]),usFirstCharIndex:e.uint16,usLastCharIndex:e.uint16},0:{},1:{typoAscender:e.int16,typoDescender:e.int16,typoLineGap:e.int16,winAscent:e.uint16,winDescent:e.uint16,codePageRange:new e.Array(e.uint32,2)},2:{typoAscender:e.int16,typoDescender:e.int16,typoLineGap:e.int16,winAscent:e.uint16,winDescent:e.uint16,codePageRange:new e.Array(e.uint32,2),xHeight:e.int16,capHeight:e.int16,defaultChar:e.uint16,breakChar:e.uint16,maxContent:e.uint16},5:{typoAscender:e.int16,typoDescender:e.int16,typoLineGap:e.int16,winAscent:e.uint16,winDescent:e.uint16,codePageRange:new e.Array(e.uint32,2),xHeight:e.int16,capHeight:e.int16,defaultChar:e.uint16,breakChar:e.uint16,maxContent:e.uint16,usLowerOpticalPointSize:e.uint16,usUpperOpticalPointSize:e.uint16}}),nA=mA.versions;nA[3]=nA[4]=nA[2];var EA=new e.VersionedStruct(e.fixed32,{header:{italicAngle:e.fixed32,underlinePosition:e.int16,underlineThickness:e.int16,isFixedPitch:e.uint32,minMemType42:e.uint32,maxMemType42:e.uint32,minMemType1:e.uint32,maxMemType1:e.uint32},1:{},2:{numberOfGlyphs:e.uint16,glyphNameIndex:new e.Array(e.uint16,"numberOfGlyphs"),names:new e.Array(new e.String(e.uint8))},2.5:{numberOfGlyphs:e.uint16,offsets:new e.Array(e.uint8,"numberOfGlyphs")},3:{},4:{map:new e.Array(e.uint32,function(eA){return eA.parent.maxp.numGlyphs})}}),GA=new e.Struct({controlValues:new e.Array(e.int16)}),et=new e.Struct({instructions:new e.Array(e.uint8)}),ot=new e.VersionedStruct("head.indexToLocFormat",{0:{offsets:new e.Array(e.uint16)},1:{offsets:new e.Array(e.uint32)}});ot.process=function(){if(0===this.version)for(var eA=0;eA>>=1};var TA=new e.Struct({controlValueProgram:new e.Array(e.uint8)}),it=new e.Array(new e.Buffer),mt=function(){function eA(V){this.type=V}var G=eA.prototype;return G.getCFFVersion=function(M){for(;M&&!M.hdrSize;)M=M.parent;return M?M.version:-1},G.decode=function(M,x){var tA=this.getCFFVersion(x)>=2?M.readUInt32BE():M.readUInt16BE();if(0===tA)return[];var sA,oA=M.readUInt8();if(1===oA)sA=e.uint8;else if(2===oA)sA=e.uint16;else if(3===oA)sA=e.uint24;else{if(4!==oA)throw new Error("Bad offset size in CFFIndex: ".concat(oA," ").concat(M.pos));sA=e.uint32}for(var iA=[],NA=M.pos+(tA+1)*oA-1,jA=sA.decode(M),lt=0;lt>4;if(15===tA)break;x+=ft[tA];var oA=15&P;if(15===oA)break;x+=ft[oA]}return parseFloat(x)}return null},eA.size=function(V){return V.forceLarge&&(V=32768),(0|V)!==V?1+Math.ceil(((""+V).length+1)/2):-107<=V&&V<=107?1:108<=V&&V<=1131||-1131<=V&&V<=-108?2:-32768<=V&&V<=32767?3:5},eA.encode=function(V,M){var x=Number(M);if(M.forceLarge)return V.writeUInt8(29),V.writeInt32BE(x);if((0|x)===x)return-107<=x&&x<=107?V.writeUInt8(x+139):108<=x&&x<=1131?(V.writeUInt8(247+((x-=108)>>8)),V.writeUInt8(255&x)):-1131<=x&&x<=-108?(V.writeUInt8(251+((x=-x-108)>>8)),V.writeUInt8(255&x)):-32768<=x&&x<=32767?(V.writeUInt8(28),V.writeInt16BE(x)):(V.writeUInt8(29),V.writeInt32BE(x));V.writeUInt8(30);for(var P=""+x,tA=0;tAP;)x.pop()},eA}(),null],[19,"Subrs",new yA(new mt,{type:"local"}),null]]),Yt=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],H=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],R=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"],RA=new e.Struct({reserved:new e.Reserved(e.uint16),reqFeatureIndex:e.uint16,featureCount:e.uint16,featureIndexes:new e.Array(e.uint16,"featureCount")}),rA=new e.Struct({tag:new e.String(4),langSys:new e.Pointer(e.uint16,RA,{type:"parent"})}),ct=new e.Struct({defaultLangSys:new e.Pointer(e.uint16,RA),count:e.uint16,langSysRecords:new e.Array(rA,"count")}),Ft=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,ct,{type:"parent"})}),j=new e.Array(Ft,e.uint16),kA=new e.Struct({featureParams:e.uint16,lookupCount:e.uint16,lookupListIndexes:new e.Array(e.uint16,"lookupCount")}),At=new e.Struct({tag:new e.String(4),feature:new e.Pointer(e.uint16,kA,{type:"parent"})}),xA=new e.Array(At,e.uint16),KA=new e.Struct({markAttachmentType:e.uint8,flags:new e.Bitfield(e.uint8,["rightToLeft","ignoreBaseGlyphs","ignoreLigatures","ignoreMarks","useMarkFilteringSet"])});function st(eA){var G=new e.Struct({lookupType:e.uint16,flags:KA,subTableCount:e.uint16,subTables:new e.Array(new e.Pointer(e.uint16,eA),"subTableCount"),markFilteringSet:new e.Optional(e.uint16,function(V){return V.flags.flags.useMarkFilteringSet})});return new e.LazyArray(new e.Pointer(e.uint16,G),e.uint16)}var Lt=new e.Struct({start:e.uint16,end:e.uint16,startCoverageIndex:e.uint16}),Dt=new e.VersionedStruct(e.uint16,{1:{glyphCount:e.uint16,glyphs:new e.Array(e.uint16,"glyphCount")},2:{rangeCount:e.uint16,rangeRecords:new e.Array(Lt,"rangeCount")}}),Rt=new e.Struct({start:e.uint16,end:e.uint16,class:e.uint16}),Vt=new e.VersionedStruct(e.uint16,{1:{startGlyph:e.uint16,glyphCount:e.uint16,classValueArray:new e.Array(e.uint16,"glyphCount")},2:{classRangeCount:e.uint16,classRangeRecord:new e.Array(Rt,"classRangeCount")}}),Le=new e.Struct({a:e.uint16,b:e.uint16,deltaFormat:e.uint16}),re=new e.Struct({sequenceIndex:e.uint16,lookupListIndex:e.uint16}),Ae=new e.Struct({glyphCount:e.uint16,lookupCount:e.uint16,input:new e.Array(e.uint16,function(eA){return eA.glyphCount-1}),lookupRecords:new e.Array(re,"lookupCount")}),ye=new e.Array(new e.Pointer(e.uint16,Ae),e.uint16),be=new e.Struct({glyphCount:e.uint16,lookupCount:e.uint16,classes:new e.Array(e.uint16,function(eA){return eA.glyphCount-1}),lookupRecords:new e.Array(re,"lookupCount")}),Re=new e.Array(new e.Pointer(e.uint16,be),e.uint16),yn=new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,Dt),ruleSetCount:e.uint16,ruleSets:new e.Array(new e.Pointer(e.uint16,ye),"ruleSetCount")},2:{coverage:new e.Pointer(e.uint16,Dt),classDef:new e.Pointer(e.uint16,Vt),classSetCnt:e.uint16,classSet:new e.Array(new e.Pointer(e.uint16,Re),"classSetCnt")},3:{glyphCount:e.uint16,lookupCount:e.uint16,coverages:new e.Array(new e.Pointer(e.uint16,Dt),"glyphCount"),lookupRecords:new e.Array(re,"lookupCount")}}),xn=new e.Struct({backtrackGlyphCount:e.uint16,backtrack:new e.Array(e.uint16,"backtrackGlyphCount"),inputGlyphCount:e.uint16,input:new e.Array(e.uint16,function(eA){return eA.inputGlyphCount-1}),lookaheadGlyphCount:e.uint16,lookahead:new e.Array(e.uint16,"lookaheadGlyphCount"),lookupCount:e.uint16,lookupRecords:new e.Array(re,"lookupCount")}),ne=new e.Array(new e.Pointer(e.uint16,xn),e.uint16),tn=new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,Dt),chainCount:e.uint16,chainRuleSets:new e.Array(new e.Pointer(e.uint16,ne),"chainCount")},2:{coverage:new e.Pointer(e.uint16,Dt),backtrackClassDef:new e.Pointer(e.uint16,Vt),inputClassDef:new e.Pointer(e.uint16,Vt),lookaheadClassDef:new e.Pointer(e.uint16,Vt),chainCount:e.uint16,chainClassSet:new e.Array(new e.Pointer(e.uint16,ne),"chainCount")},3:{backtrackGlyphCount:e.uint16,backtrackCoverage:new e.Array(new e.Pointer(e.uint16,Dt),"backtrackGlyphCount"),inputGlyphCount:e.uint16,inputCoverage:new e.Array(new e.Pointer(e.uint16,Dt),"inputGlyphCount"),lookaheadGlyphCount:e.uint16,lookaheadCoverage:new e.Array(new e.Pointer(e.uint16,Dt),"lookaheadGlyphCount"),lookupCount:e.uint16,lookupRecords:new e.Array(re,"lookupCount")}}),Te=new e.Fixed(16,"BE",14),en=new e.Struct({startCoord:Te,peakCoord:Te,endCoord:Te}),Xe=new e.Struct({axisCount:e.uint16,regionCount:e.uint16,variationRegions:new e.Array(new e.Array(en,"axisCount"),"regionCount")}),Ln=new e.Struct({shortDeltas:new e.Array(e.int16,function(eA){return eA.parent.shortDeltaCount}),regionDeltas:new e.Array(e.int8,function(eA){return eA.parent.regionIndexCount-eA.parent.shortDeltaCount}),deltas:function(G){return G.shortDeltas.concat(G.regionDeltas)}}),bn=new e.Struct({itemCount:e.uint16,shortDeltaCount:e.uint16,regionIndexCount:e.uint16,regionIndexes:new e.Array(e.uint16,"regionIndexCount"),deltaSets:new e.Array(Ln,"itemCount")}),Jt=new e.Struct({format:e.uint16,variationRegionList:new e.Pointer(e.uint32,Xe),variationDataCount:e.uint16,itemVariationData:new e.Array(new e.Pointer(e.uint32,bn),"variationDataCount")}),bt=new e.VersionedStruct(e.uint16,{1:(i={axisIndex:e.uint16},i.axisIndex=e.uint16,i.filterRangeMinValue=Te,i.filterRangeMaxValue=Te,i)}),Xt=new e.Struct({conditionCount:e.uint16,conditionTable:new e.Array(new e.Pointer(e.uint32,bt),"conditionCount")}),oe=new e.Struct({featureIndex:e.uint16,alternateFeatureTable:new e.Pointer(e.uint32,kA,{type:"parent"})}),vn=new e.Struct({version:e.fixed32,substitutionCount:e.uint16,substitutions:new e.Array(oe,"substitutionCount")}),pn=new e.Struct({conditionSet:new e.Pointer(e.uint32,Xt,{type:"parent"}),featureTableSubstitution:new e.Pointer(e.uint32,vn,{type:"parent"})}),Yn=new e.Struct({majorVersion:e.uint16,minorVersion:e.uint16,featureVariationRecordCount:e.uint32,featureVariationRecords:new e.Array(pn,"featureVariationRecordCount")}),jn=function(){function eA(V,M){this.predefinedOps=V,this.type=M}var G=eA.prototype;return G.decode=function(M,x,P){return this.predefinedOps[P[0]]?this.predefinedOps[P[0]]:this.type.decode(M,x,P)},G.size=function(M,x){return this.type.size(M,x)},G.encode=function(M,x,P){var tA=this.predefinedOps.indexOf(x);return-1!==tA?tA:this.type.encode(M,x,P)},eA}(),Br=function(eA){function G(){return eA.call(this,"UInt8")||this}return h(G,eA),G.prototype.decode=function(x){return 127&e.uint8.decode(x)},G}(e.Number),Tn=new e.Struct({first:e.uint16,nLeft:e.uint8}),ZA=new e.Struct({first:e.uint16,nLeft:e.uint16}),tt=new jn([H,["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"]],new yA(new e.VersionedStruct(new Br,{0:{nCodes:e.uint8,codes:new e.Array(e.uint8,"nCodes")},1:{nRanges:e.uint8,ranges:new e.Array(Tn,"nRanges")}}),{lazy:!0})),UA=function(eA){function G(){return eA.apply(this,arguments)||this}return h(G,eA),G.prototype.decode=function(x,P){for(var tA=f.resolveLength(this.length,x,P),oA=0,sA=[];oA=2?null:M=2||this.isCIDFont)return null;var x=this.topDict.charset;if(Array.isArray(x))return x[M];if(0===M)return".notdef";switch(M-=1,x.version){case 0:return this.string(x.glyphs[M]);case 1:case 2:for(var P=0;P>1;if(M=x[oA+1].first))return x[oA].fd;P=oA+1}}default:throw new Error("Unknown FDSelect version: ".concat(this.topDict.FDSelect.version))}},G.privateDictForGlyph=function(M){if(this.topDict.FDSelect){var x=this.fdForGlyph(M);return this.topDict.FDArray[x]?this.topDict.FDArray[x].Private:null}return this.version<2?this.topDict.Private:this.topDict.FDArray[0].Private},l(eA,[{key:"postscriptName",get:function(){return this.version<2?this.nameIndex[0]:null}},{key:"fullName",get:function(){return this.string(this.topDict.FullName)}},{key:"familyName",get:function(){return this.string(this.topDict.FamilyName)}}]),eA}(),wt=new e.Struct({glyphIndex:e.uint16,vertOriginY:e.int16}),Pt=new e.Struct({majorVersion:e.uint16,minorVersion:e.uint16,defaultVertOriginY:e.int16,numVertOriginYMetrics:e.uint16,metrics:new e.Array(wt,"numVertOriginYMetrics")}),jt=new e.Struct({height:e.uint8,width:e.uint8,horiBearingX:e.int8,horiBearingY:e.int8,horiAdvance:e.uint8,vertBearingX:e.int8,vertBearingY:e.int8,vertAdvance:e.uint8}),Ht=new e.Struct({height:e.uint8,width:e.uint8,bearingX:e.int8,bearingY:e.int8,advance:e.uint8}),ce=new e.Struct({glyph:e.uint16,xOffset:e.int8,yOffset:e.int8}),Zt=function(){},ue=function(){},ve=(new e.VersionedStruct("version",{1:{metrics:Ht,data:Zt},2:{metrics:Ht,data:ue},5:{data:ue},6:{metrics:jt,data:Zt},7:{metrics:jt,data:ue},8:{metrics:Ht,pad:new e.Reserved(e.uint8),numComponents:e.uint16,components:new e.Array(ce,"numComponents")},9:{metrics:jt,pad:new e.Reserved(e.uint8),numComponents:e.uint16,components:new e.Array(ce,"numComponents")},17:{metrics:Ht,dataLen:e.uint32,data:new e.Buffer("dataLen")},18:{metrics:jt,dataLen:e.uint32,data:new e.Buffer("dataLen")},19:{dataLen:e.uint32,data:new e.Buffer("dataLen")}}),new e.Struct({ascender:e.int8,descender:e.int8,widthMax:e.uint8,caretSlopeNumerator:e.int8,caretSlopeDenominator:e.int8,caretOffset:e.int8,minOriginSB:e.int8,minAdvanceSB:e.int8,maxBeforeBL:e.int8,minAfterBL:e.int8,pad:new e.Reserved(e.int8,2)})),Ge=new e.Struct({glyphCode:e.uint16,offset:e.uint16}),Se=new e.VersionedStruct(e.uint16,{header:{imageFormat:e.uint16,imageDataOffset:e.uint32},1:{offsetArray:new e.Array(e.uint32,function(eA){return eA.parent.lastGlyphIndex-eA.parent.firstGlyphIndex+1})},2:{imageSize:e.uint32,bigMetrics:jt},3:{offsetArray:new e.Array(e.uint16,function(eA){return eA.parent.lastGlyphIndex-eA.parent.firstGlyphIndex+1})},4:{numGlyphs:e.uint32,glyphArray:new e.Array(Ge,function(eA){return eA.numGlyphs+1})},5:{imageSize:e.uint32,bigMetrics:jt,numGlyphs:e.uint32,glyphCodeArray:new e.Array(e.uint16,"numGlyphs")}}),xe=new e.Struct({firstGlyphIndex:e.uint16,lastGlyphIndex:e.uint16,subtable:new e.Pointer(e.uint32,Se)}),Ne=new e.Struct({indexSubTableArray:new e.Pointer(e.uint32,new e.Array(xe,1),{type:"parent"}),indexTablesSize:e.uint32,numberOfIndexSubTables:e.uint32,colorRef:e.uint32,hori:ve,vert:ve,startGlyphIndex:e.uint16,endGlyphIndex:e.uint16,ppemX:e.uint8,ppemY:e.uint8,bitDepth:e.uint8,flags:new e.Bitfield(e.uint8,["horizontal","vertical"])}),_e=new e.Struct({version:e.uint32,numSizes:e.uint32,sizes:new e.Array(Ne,"numSizes")}),Fn=new e.Struct({ppem:e.uint16,resolution:e.uint16,imageOffsets:new e.Array(new e.Pointer(e.uint32,"void"),function(eA){return eA.parent.parent.maxp.numGlyphs+1})}),rn=new e.Struct({version:e.uint16,flags:new e.Bitfield(e.uint16,["renderOutlines"]),numImgTables:e.uint32,imageTables:new e.Array(new e.Pointer(e.uint32,Fn),"numImgTables")}),Cn=new e.Struct({gid:e.uint16,paletteIndex:e.uint16}),In=new e.Struct({gid:e.uint16,firstLayerIndex:e.uint16,numLayers:e.uint16}),an=new e.Struct({version:e.uint16,numBaseGlyphRecords:e.uint16,baseGlyphRecord:new e.Pointer(e.uint32,new e.Array(In,"numBaseGlyphRecords")),layerRecords:new e.Pointer(e.uint32,new e.Array(Cn,"numLayerRecords"),{lazy:!0}),numLayerRecords:e.uint16}),fn=new e.Struct({blue:e.uint8,green:e.uint8,red:e.uint8,alpha:e.uint8}),cn=new e.VersionedStruct(e.uint16,{header:{numPaletteEntries:e.uint16,numPalettes:e.uint16,numColorRecords:e.uint16,colorRecords:new e.Pointer(e.uint32,new e.Array(fn,"numColorRecords")),colorRecordIndices:new e.Array(e.uint16,"numPalettes")},0:{},1:{offsetPaletteTypeArray:new e.Pointer(e.uint32,new e.Array(e.uint32,"numPalettes")),offsetPaletteLabelArray:new e.Pointer(e.uint32,new e.Array(e.uint16,"numPalettes")),offsetPaletteEntryLabelArray:new e.Pointer(e.uint32,new e.Array(e.uint16,"numPaletteEntries"))}}),Xn=new e.VersionedStruct(e.uint16,{1:{coordinate:e.int16},2:{coordinate:e.int16,referenceGlyph:e.uint16,baseCoordPoint:e.uint16},3:{coordinate:e.int16,deviceTable:new e.Pointer(e.uint16,Le)}}),Fr=new e.Struct({defaultIndex:e.uint16,baseCoordCount:e.uint16,baseCoords:new e.Array(new e.Pointer(e.uint16,Xn),"baseCoordCount")}),Yr=new e.Struct({tag:new e.String(4),minCoord:new e.Pointer(e.uint16,Xn,{type:"parent"}),maxCoord:new e.Pointer(e.uint16,Xn,{type:"parent"})}),nr=new e.Struct({minCoord:new e.Pointer(e.uint16,Xn),maxCoord:new e.Pointer(e.uint16,Xn),featMinMaxCount:e.uint16,featMinMaxRecords:new e.Array(Yr,"featMinMaxCount")}),hn=new e.Struct({tag:new e.String(4),minMax:new e.Pointer(e.uint16,nr,{type:"parent"})}),qn=new e.Struct({baseValues:new e.Pointer(e.uint16,Fr),defaultMinMax:new e.Pointer(e.uint16,nr),baseLangSysCount:e.uint16,baseLangSysRecords:new e.Array(hn,"baseLangSysCount")}),IA=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,qn,{type:"parent"})}),J=new e.Array(IA,e.uint16),N=new e.Array(new e.String(4),e.uint16),X=new e.Struct({baseTagList:new e.Pointer(e.uint16,N),baseScriptList:new e.Pointer(e.uint16,J)}),K=new e.VersionedStruct(e.uint32,{header:{horizAxis:new e.Pointer(e.uint16,X),vertAxis:new e.Pointer(e.uint16,X)},65536:{},65537:{itemVariationStore:new e.Pointer(e.uint32,Jt)}}),fA=new e.Array(e.uint16,e.uint16),pA=new e.Struct({coverage:new e.Pointer(e.uint16,Dt),glyphCount:e.uint16,attachPoints:new e.Array(new e.Pointer(e.uint16,fA),"glyphCount")}),_A=new e.VersionedStruct(e.uint16,{1:{coordinate:e.int16},2:{caretValuePoint:e.uint16},3:{coordinate:e.int16,deviceTable:new e.Pointer(e.uint16,Le)}}),nt=new e.Array(new e.Pointer(e.uint16,_A),e.uint16),ut=new e.Struct({coverage:new e.Pointer(e.uint16,Dt),ligGlyphCount:e.uint16,ligGlyphs:new e.Array(new e.Pointer(e.uint16,nt),"ligGlyphCount")}),Qt=new e.Struct({markSetTableFormat:e.uint16,markSetCount:e.uint16,coverage:new e.Array(new e.Pointer(e.uint32,Dt),"markSetCount")}),vt=new e.VersionedStruct(e.uint32,{header:{glyphClassDef:new e.Pointer(e.uint16,Vt),attachList:new e.Pointer(e.uint16,pA),ligCaretList:new e.Pointer(e.uint16,ut),markAttachClassDef:new e.Pointer(e.uint16,Vt)},65536:{},65538:{markGlyphSetsDef:new e.Pointer(e.uint16,Qt)},65539:{markGlyphSetsDef:new e.Pointer(e.uint16,Qt),itemVariationStore:new e.Pointer(e.uint32,Jt)}}),xt=new e.Bitfield(e.uint16,["xPlacement","yPlacement","xAdvance","yAdvance","xPlaDevice","yPlaDevice","xAdvDevice","yAdvDevice"]),Tt={xPlacement:e.int16,yPlacement:e.int16,xAdvance:e.int16,yAdvance:e.int16,xPlaDevice:new e.Pointer(e.uint16,Le,{type:"global",relativeTo:function(G){return G.rel}}),yPlaDevice:new e.Pointer(e.uint16,Le,{type:"global",relativeTo:function(G){return G.rel}}),xAdvDevice:new e.Pointer(e.uint16,Le,{type:"global",relativeTo:function(G){return G.rel}}),yAdvDevice:new e.Pointer(e.uint16,Le,{type:"global",relativeTo:function(G){return G.rel}})},Ot=function(){function eA(V){void 0===V&&(V="valueFormat"),this.key=V}var G=eA.prototype;return G.buildStruct=function(M){for(var x=M;!x[this.key]&&x.parent;)x=x.parent;if(x[this.key]){var P={rel:function(){return x._startOffset}},tA=x[this.key];for(var oA in tA)tA[oA]&&(P[oA]=Tt[oA]);return new e.Struct(P)}},G.size=function(M,x){return this.buildStruct(x).size(M,x)},G.decode=function(M,x){var P=this.buildStruct(x).decode(M,x);return delete P.rel,P},eA}(),Kt=new e.Struct({secondGlyph:e.uint16,value1:new Ot("valueFormat1"),value2:new Ot("valueFormat2")}),fe=new e.Array(Kt,e.uint16),Ee=new e.Struct({value1:new Ot("valueFormat1"),value2:new Ot("valueFormat2")}),Ie=new e.VersionedStruct(e.uint16,{1:{xCoordinate:e.int16,yCoordinate:e.int16},2:{xCoordinate:e.int16,yCoordinate:e.int16,anchorPoint:e.uint16},3:{xCoordinate:e.int16,yCoordinate:e.int16,xDeviceTable:new e.Pointer(e.uint16,Le),yDeviceTable:new e.Pointer(e.uint16,Le)}}),nn=new e.Struct({entryAnchor:new e.Pointer(e.uint16,Ie,{type:"parent"}),exitAnchor:new e.Pointer(e.uint16,Ie,{type:"parent"})}),Me=new e.Struct({class:e.uint16,markAnchor:new e.Pointer(e.uint16,Ie,{type:"parent"})}),je=new e.Array(Me,e.uint16),Qn=new e.Array(new e.Pointer(e.uint16,Ie),function(eA){return eA.parent.classCount}),Ke=new e.Array(Qn,e.uint16),dn=new e.Array(new e.Pointer(e.uint16,Ie),function(eA){return eA.parent.parent.classCount}),Kn=new e.Array(dn,e.uint16),_n=new e.Array(new e.Pointer(e.uint16,Kn),e.uint16),Sn=new e.VersionedStruct("lookupType",{1:new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,Dt),valueFormat:xt,value:new Ot},2:{coverage:new e.Pointer(e.uint16,Dt),valueFormat:xt,valueCount:e.uint16,values:new e.LazyArray(new Ot,"valueCount")}}),2:new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,Dt),valueFormat1:xt,valueFormat2:xt,pairSetCount:e.uint16,pairSets:new e.LazyArray(new e.Pointer(e.uint16,fe),"pairSetCount")},2:{coverage:new e.Pointer(e.uint16,Dt),valueFormat1:xt,valueFormat2:xt,classDef1:new e.Pointer(e.uint16,Vt),classDef2:new e.Pointer(e.uint16,Vt),class1Count:e.uint16,class2Count:e.uint16,classRecords:new e.LazyArray(new e.LazyArray(Ee,"class2Count"),"class1Count")}}),3:{format:e.uint16,coverage:new e.Pointer(e.uint16,Dt),entryExitCount:e.uint16,entryExitRecords:new e.Array(nn,"entryExitCount")},4:{format:e.uint16,markCoverage:new e.Pointer(e.uint16,Dt),baseCoverage:new e.Pointer(e.uint16,Dt),classCount:e.uint16,markArray:new e.Pointer(e.uint16,je),baseArray:new e.Pointer(e.uint16,Ke)},5:{format:e.uint16,markCoverage:new e.Pointer(e.uint16,Dt),ligatureCoverage:new e.Pointer(e.uint16,Dt),classCount:e.uint16,markArray:new e.Pointer(e.uint16,je),ligatureArray:new e.Pointer(e.uint16,_n)},6:{format:e.uint16,mark1Coverage:new e.Pointer(e.uint16,Dt),mark2Coverage:new e.Pointer(e.uint16,Dt),classCount:e.uint16,mark1Array:new e.Pointer(e.uint16,je),mark2Array:new e.Pointer(e.uint16,Ke)},7:yn,8:tn,9:{posFormat:e.uint16,lookupType:e.uint16,extension:new e.Pointer(e.uint32,Sn)}});Sn.versions[9].extension.type=Sn;var Rr=new e.VersionedStruct(e.uint32,{header:{scriptList:new e.Pointer(e.uint16,j),featureList:new e.Pointer(e.uint16,xA),lookupList:new e.Pointer(e.uint16,new st(Sn))},65536:{},65537:{featureVariations:new e.Pointer(e.uint32,Yn)}}),Hn=new e.Array(e.uint16,e.uint16),rr=Hn,Qr=new e.Struct({glyph:e.uint16,compCount:e.uint16,components:new e.Array(e.uint16,function(eA){return eA.compCount-1})}),$n=new e.Array(new e.Pointer(e.uint16,Qr),e.uint16),ur=new e.VersionedStruct("lookupType",{1:new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,Dt),deltaGlyphID:e.int16},2:{coverage:new e.Pointer(e.uint16,Dt),glyphCount:e.uint16,substitute:new e.LazyArray(e.uint16,"glyphCount")}}),2:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,Dt),count:e.uint16,sequences:new e.LazyArray(new e.Pointer(e.uint16,Hn),"count")},3:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,Dt),count:e.uint16,alternateSet:new e.LazyArray(new e.Pointer(e.uint16,rr),"count")},4:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,Dt),count:e.uint16,ligatureSets:new e.LazyArray(new e.Pointer(e.uint16,$n),"count")},5:yn,6:tn,7:{substFormat:e.uint16,lookupType:e.uint16,extension:new e.Pointer(e.uint32,ur)},8:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,Dt),backtrackCoverage:new e.Array(new e.Pointer(e.uint16,Dt),"backtrackGlyphCount"),lookaheadGlyphCount:e.uint16,lookaheadCoverage:new e.Array(new e.Pointer(e.uint16,Dt),"lookaheadGlyphCount"),glyphCount:e.uint16,substitutes:new e.Array(e.uint16,"glyphCount")}});ur.versions[7].extension.type=ur;var zr=new e.VersionedStruct(e.uint32,{header:{scriptList:new e.Pointer(e.uint16,j),featureList:new e.Pointer(e.uint16,xA),lookupList:new e.Pointer(e.uint16,new st(ur))},65536:{},65537:{featureVariations:new e.Pointer(e.uint32,Yn)}}),Vn=new e.Array(e.uint16,e.uint16),Lr=new e.Struct({shrinkageEnableGSUB:new e.Pointer(e.uint16,Vn),shrinkageDisableGSUB:new e.Pointer(e.uint16,Vn),shrinkageEnableGPOS:new e.Pointer(e.uint16,Vn),shrinkageDisableGPOS:new e.Pointer(e.uint16,Vn),shrinkageJstfMax:new e.Pointer(e.uint16,new st(Sn)),extensionEnableGSUB:new e.Pointer(e.uint16,Vn),extensionDisableGSUB:new e.Pointer(e.uint16,Vn),extensionEnableGPOS:new e.Pointer(e.uint16,Vn),extensionDisableGPOS:new e.Pointer(e.uint16,Vn),extensionJstfMax:new e.Pointer(e.uint16,new st(Sn))}),dr=new e.Array(new e.Pointer(e.uint16,Lr),e.uint16),br=new e.Struct({tag:new e.String(4),jstfLangSys:new e.Pointer(e.uint16,dr)}),Gr=new e.Struct({extenderGlyphs:new e.Pointer(e.uint16,new e.Array(e.uint16,e.uint16)),defaultLangSys:new e.Pointer(e.uint16,dr),langSysCount:e.uint16,langSysRecords:new e.Array(br,"langSysCount")}),si=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,Gr,{type:"parent"})}),Hr=new e.Struct({version:e.uint32,scriptCount:e.uint16,scriptList:new e.Array(si,"scriptCount")}),Jr=new e.Struct({entry:new(function(){function eA(V){this._size=V}var G=eA.prototype;return G.decode=function(M,x){switch(this.size(0,x)){case 1:return M.readUInt8();case 2:return M.readUInt16BE();case 3:return M.readUInt24BE();case 4:return M.readUInt32BE()}},G.size=function(M,x){return f.resolveLength(this._size,null,x)},eA}())(function(eA){return 1+((48&eA.parent.entryFormat)>>4)}),outerIndex:function(G){return G.entry>>1+(15&G.parent.entryFormat)},innerIndex:function(G){return G.entry&(1<<1+(15&G.parent.entryFormat))-1}}),Wn=new e.Struct({entryFormat:e.uint16,mapCount:e.uint16,mapData:new e.Array(Jr,"mapCount")}),bi=new e.Struct({majorVersion:e.uint16,minorVersion:e.uint16,itemVariationStore:new e.Pointer(e.uint32,Jt),advanceWidthMapping:new e.Pointer(e.uint32,Wn),LSBMapping:new e.Pointer(e.uint32,Wn),RSBMapping:new e.Pointer(e.uint32,Wn)}),Gi=new e.Struct({format:e.uint32,length:e.uint32,offset:e.uint32}),aa=new e.Struct({reserved:new e.Reserved(e.uint16,2),cbSignature:e.uint32,signature:new e.Buffer("cbSignature")}),oo=new e.Struct({ulVersion:e.uint32,usNumSigs:e.uint16,usFlag:e.uint16,signatures:new e.Array(Gi,"usNumSigs"),signatureBlocks:new e.Array(aa,"usNumSigs")}),so=new e.Struct({rangeMaxPPEM:e.uint16,rangeGaspBehavior:new e.Bitfield(e.uint16,["grayscale","gridfit","symmetricSmoothing","symmetricGridfit"])}),lo=new e.Struct({version:e.uint16,numRanges:e.uint16,gaspRanges:new e.Array(so,"numRanges")}),co=new e.Struct({pixelSize:e.uint8,maximumWidth:e.uint8,widths:new e.Array(e.uint8,function(eA){return eA.parent.parent.maxp.numGlyphs})}),go=new e.Struct({version:e.uint16,numRecords:e.int16,sizeDeviceRecord:e.int32,records:new e.Array(co,"numRecords")}),Bo=new e.Struct({left:e.uint16,right:e.uint16,value:e.int16}),oa=new e.Struct({firstGlyph:e.uint16,nGlyphs:e.uint16,offsets:new e.Array(e.uint16,"nGlyphs"),max:function(G){return G.offsets.length&&Math.max.apply(Math,G.offsets)}}),uo=new e.Struct({off:function(G){return G._startOffset-G.parent.parent._startOffset},len:function(G){return G.parent.rowWidth/2*((G.parent.leftTable.max-G.off)/G.parent.rowWidth+1)},values:new e.LazyArray(e.int16,"len")}),sa=new e.VersionedStruct("format",{0:{nPairs:e.uint16,searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16,pairs:new e.Array(Bo,"nPairs")},2:{rowWidth:e.uint16,leftTable:new e.Pointer(e.uint16,oa,{type:"parent"}),rightTable:new e.Pointer(e.uint16,oa,{type:"parent"}),array:new e.Pointer(e.uint16,uo,{type:"parent"})},3:{glyphCount:e.uint16,kernValueCount:e.uint8,leftClassCount:e.uint8,rightClassCount:e.uint8,flags:e.uint8,kernValue:new e.Array(e.int16,"kernValueCount"),leftClass:new e.Array(e.uint8,"glyphCount"),rightClass:new e.Array(e.uint8,"glyphCount"),kernIndex:new e.Array(e.uint8,function(eA){return eA.leftClassCount*eA.rightClassCount})}}),la=new e.VersionedStruct("version",{0:{subVersion:e.uint16,length:e.uint16,format:e.uint8,coverage:new e.Bitfield(e.uint8,["horizontal","minimum","crossStream","override"]),subtable:sa,padding:new e.Reserved(e.uint8,function(eA){return eA.length-eA._currentOffset})},1:{length:e.uint32,coverage:new e.Bitfield(e.uint8,[null,null,null,null,null,"variation","crossStream","vertical"]),format:e.uint8,tupleIndex:e.uint16,subtable:sa,padding:new e.Reserved(e.uint8,function(eA){return eA.length-eA._currentOffset})}}),ca=new e.VersionedStruct(e.uint16,{0:{nTables:e.uint16,tables:new e.Array(la,"nTables")},1:{reserved:new e.Reserved(e.uint16),nTables:e.uint32,tables:new e.Array(la,"nTables")}}),fo=new e.Struct({version:e.uint16,numGlyphs:e.uint16,yPels:new e.Array(e.uint8,"numGlyphs")}),ho=new e.Struct({version:e.uint16,fontNumber:e.uint32,pitch:e.uint16,xHeight:e.uint16,style:e.uint16,typeFamily:e.uint16,capHeight:e.uint16,symbolSet:e.uint16,typeface:new e.String(16),characterComplement:new e.String(8),fileName:new e.String(6),strokeWeight:new e.String(1),widthType:new e.String(1),serifStyle:e.uint8,reserved:new e.Reserved(e.uint8)}),Eo=new e.Struct({bCharSet:e.uint8,xRatio:e.uint8,yStartRatio:e.uint8,yEndRatio:e.uint8}),wo=new e.Struct({yPelHeight:e.uint16,yMax:e.int16,yMin:e.int16}),Co=new e.Struct({recs:e.uint16,startsz:e.uint8,endsz:e.uint8,entries:new e.Array(wo,"recs")}),Qo=new e.Struct({version:e.uint16,numRecs:e.uint16,numRatios:e.uint16,ratioRanges:new e.Array(Eo,"numRatios"),offsets:new e.Array(e.uint16,"numRatios"),groups:new e.Array(Co,"numRecs")}),Mo=new e.Struct({version:e.uint16,ascent:e.int16,descent:e.int16,lineGap:e.int16,advanceHeightMax:e.int16,minTopSideBearing:e.int16,minBottomSideBearing:e.int16,yMaxExtent:e.int16,caretSlopeRise:e.int16,caretSlopeRun:e.int16,caretOffset:e.int16,reserved:new e.Reserved(e.int16,4),metricDataFormat:e.int16,numberOfMetrics:e.uint16}),po=new e.Struct({advance:e.uint16,bearing:e.int16}),Io=new e.Struct({metrics:new e.LazyArray(po,function(eA){return eA.parent.vhea.numberOfMetrics}),bearings:new e.LazyArray(e.int16,function(eA){return eA.parent.maxp.numGlyphs-eA.parent.vhea.numberOfMetrics})}),ga=new e.Fixed(16,"BE",14),mo=new e.Struct({fromCoord:ga,toCoord:ga}),vo=new e.Struct({pairCount:e.uint16,correspondence:new e.Array(mo,"pairCount")}),Do=new e.Struct({version:e.fixed32,axisCount:e.uint32,segment:new e.Array(vo,"axisCount")}),yo=function(){function eA(V,M,x){this.type=V,this.stream=M,this.parent=x,this.base=this.stream.pos,this._items=[]}var G=eA.prototype;return G.getItem=function(M){if(null==this._items[M]){var x=this.stream.pos;this.stream.pos=this.base+this.type.size(null,this.parent)*M,this._items[M]=this.type.decode(this.stream,this.parent),this.stream.pos=x}return this._items[M]},G.inspect=function(){return"[UnboundedArray ".concat(this.type.constructor.name,"]")},eA}(),Ar=function(eA){function G(M){return eA.call(this,M,0)||this}return h(G,eA),G.prototype.decode=function(x,P){return new yo(this.type,x,P)},G}(e.Array),fr=function(G){void 0===G&&(G=e.uint16),G=new(function(){function oA(iA){this.type=iA}var sA=oA.prototype;return sA.decode=function(NA,jA){return this.type.decode(NA,jA=jA.parent.parent)},sA.size=function(NA,jA){return this.type.size(NA,jA=jA.parent.parent)},sA.encode=function(NA,jA,lt){return this.type.encode(NA,jA,lt=lt.parent.parent)},oA}())(G);var M=new e.Struct({unitSize:e.uint16,nUnits:e.uint16,searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16}),x=new e.Struct({lastGlyph:e.uint16,firstGlyph:e.uint16,value:G}),P=new e.Struct({lastGlyph:e.uint16,firstGlyph:e.uint16,values:new e.Pointer(e.uint16,new e.Array(G,function(oA){return oA.lastGlyph-oA.firstGlyph+1}),{type:"parent"})}),tA=new e.Struct({glyph:e.uint16,value:G});return new e.VersionedStruct(e.uint16,{0:{values:new Ar(G)},2:{binarySearchHeader:M,segments:new e.Array(x,function(oA){return oA.binarySearchHeader.nUnits})},4:{binarySearchHeader:M,segments:new e.Array(P,function(oA){return oA.binarySearchHeader.nUnits})},6:{binarySearchHeader:M,segments:new e.Array(tA,function(oA){return oA.binarySearchHeader.nUnits})},8:{firstGlyph:e.uint16,count:e.uint16,values:new e.Array(G,"count")}})};function li(eA,G){void 0===eA&&(eA={}),void 0===G&&(G=e.uint16);var V=Object.assign({newState:e.uint16,flags:e.uint16},eA),M=new e.Struct(V),x=new Ar(new e.Array(e.uint16,function(tA){return tA.nClasses}));return new e.Struct({nClasses:e.uint32,classTable:new e.Pointer(e.uint32,new fr(G)),stateArray:new e.Pointer(e.uint32,x),entryTable:new e.Pointer(e.uint32,new Ar(M))})}var Ba=new e.VersionedStruct("format",{0:{deltas:new e.Array(e.int16,32)},1:{deltas:new e.Array(e.int16,32),mappingData:new fr(e.uint16)},2:{standardGlyph:e.uint16,controlPoints:new e.Array(e.uint16,32)},3:{standardGlyph:e.uint16,controlPoints:new e.Array(e.uint16,32),mappingData:new fr(e.uint16)}}),Fo=new e.Struct({version:e.fixed32,format:e.uint16,defaultBaseline:e.uint16,subtable:Ba}),ua=new e.Struct({setting:e.uint16,nameIndex:e.int16,name:function(G){return G.parent.parent.parent.name.records.fontFeatures[G.nameIndex]}}),Tr=new e.Struct({feature:e.uint16,nSettings:e.uint16,settingTable:new e.Pointer(e.uint32,new e.Array(ua,"nSettings"),{type:"parent"}),featureFlags:new e.Bitfield(e.uint8,[null,null,null,null,null,null,"hasDefault","exclusive"]),defaultSetting:e.uint8,nameIndex:e.int16,name:function(G){return G.parent.parent.name.records.fontFeatures[G.nameIndex]}}),ar=new e.Struct({version:e.fixed32,featureNameCount:e.uint16,reserved1:new e.Reserved(e.uint16),reserved2:new e.Reserved(e.uint32),featureNames:new e.Array(Tr,"featureNameCount")}),Mr=new e.Struct({axisTag:new e.String(4),minValue:e.fixed32,defaultValue:e.fixed32,maxValue:e.fixed32,flags:e.uint16,nameID:e.uint16,name:function(G){return G.parent.parent.name.records.fontFeatures[G.nameID]}}),Yo=new e.Struct({nameID:e.uint16,name:function(G){return G.parent.parent.name.records.fontFeatures[G.nameID]},flags:e.uint16,coord:new e.Array(e.fixed32,function(eA){return eA.parent.axisCount}),postscriptNameID:new e.Optional(e.uint16,function(eA){return eA.parent.instanceSize-eA._currentOffset>0})}),To=new e.Struct({version:e.fixed32,offsetToData:e.uint16,countSizePairs:e.uint16,axisCount:e.uint16,axisSize:e.uint16,instanceCount:e.uint16,instanceSize:e.uint16,axis:new e.Array(Mr,"axisCount"),instance:new e.Array(Yo,"instanceCount")}),So=new e.Fixed(16,"BE",14),No=function(){function eA(){}return eA.decode=function(V,M){return M.flags?V.readUInt32BE():2*V.readUInt16BE()},eA}(),Uo=new e.Struct({version:e.uint16,reserved:new e.Reserved(e.uint16),axisCount:e.uint16,globalCoordCount:e.uint16,globalCoords:new e.Pointer(e.uint32,new e.Array(new e.Array(So,"axisCount"),"globalCoordCount")),glyphCount:e.uint16,flags:e.uint16,offsetToData:e.uint32,offsets:new e.Array(new e.Pointer(No,"void",{relativeTo:function(G){return G.offsetToData},allowNull:!1}),function(eA){return eA.glyphCount+1})}),Po=new e.Struct({length:e.uint16,coverage:e.uint16,subFeatureFlags:e.uint32,stateTable:new function xo(eA,G){void 0===eA&&(eA={}),void 0===G&&(G=e.uint16);var V=new e.Struct({version:function(){return 8},firstGlyph:e.uint16,values:new e.Array(e.uint8,e.uint16)}),M=Object.assign({newStateOffset:e.uint16,newState:function(sA){return(sA.newStateOffset-(sA.parent.stateArray.base-sA.parent._startOffset))/sA.parent.nClasses},flags:e.uint16},eA),x=new e.Struct(M),P=new Ar(new e.Array(e.uint8,function(oA){return oA.nClasses}));return new e.Struct({nClasses:e.uint16,classTable:new e.Pointer(e.uint16,V),stateArray:new e.Pointer(e.uint16,P),entryTable:new e.Pointer(e.uint16,new Ar(x))})}}),Ro=new e.Struct({justClass:e.uint32,beforeGrowLimit:e.fixed32,beforeShrinkLimit:e.fixed32,afterGrowLimit:e.fixed32,afterShrinkLimit:e.fixed32,growFlags:e.uint16,shrinkFlags:e.uint16}),zo=new e.Array(Ro,e.uint32),Lo=new e.VersionedStruct("actionType",{0:{lowerLimit:e.fixed32,upperLimit:e.fixed32,order:e.uint16,glyphs:new e.Array(e.uint16,e.uint16)},1:{addGlyph:e.uint16},2:{substThreshold:e.fixed32,addGlyph:e.uint16,substGlyph:e.uint16},3:{},4:{variationAxis:e.uint32,minimumLimit:e.fixed32,noStretchValue:e.fixed32,maximumLimit:e.fixed32},5:{flags:e.uint16,glyph:e.uint16}}),bo=new e.Struct({actionClass:e.uint16,actionType:e.uint16,actionLength:e.uint32,actionData:Lo,padding:new e.Reserved(e.uint8,function(eA){return eA.actionLength-eA._currentOffset})}),Go=new e.Array(bo,e.uint32),Ho=new e.Struct({lookupTable:new fr(new e.Pointer(e.uint16,Go))}),fa=new e.Struct({classTable:new e.Pointer(e.uint16,Po,{type:"parent"}),wdcOffset:e.uint16,postCompensationTable:new e.Pointer(e.uint16,Ho,{type:"parent"}),widthDeltaClusters:new fr(new e.Pointer(e.uint16,zo,{type:"parent",relativeTo:function(G){return G.wdcOffset}}))}),Jo=new e.Struct({version:e.uint32,format:e.uint16,horizontal:new e.Pointer(e.uint16,fa),vertical:new e.Pointer(e.uint16,fa)}),Oo={action:e.uint16},ha={markIndex:e.uint16,currentIndex:e.uint16},ko={currentInsertIndex:e.uint16,markedInsertIndex:e.uint16},jo=new e.Struct({items:new Ar(new e.Pointer(e.uint32,new fr))}),Ko=new e.VersionedStruct("type",{0:{stateTable:new li},1:{stateTable:new li(ha),substitutionTable:new e.Pointer(e.uint32,jo)},2:{stateTable:new li(Oo),ligatureActions:new e.Pointer(e.uint32,new Ar(e.uint32)),components:new e.Pointer(e.uint32,new Ar(e.uint16)),ligatureList:new e.Pointer(e.uint32,new Ar(e.uint16))},4:{lookupTable:new fr},5:{stateTable:new li(ko),insertionActions:new e.Pointer(e.uint32,new Ar(e.uint16))}}),Vo=new e.Struct({length:e.uint32,coverage:e.uint24,type:e.uint8,subFeatureFlags:e.uint32,table:Ko,padding:new e.Reserved(e.uint8,function(eA){return eA.length-eA._currentOffset})}),Wo=new e.Struct({featureType:e.uint16,featureSetting:e.uint16,enableFlags:e.uint32,disableFlags:e.uint32}),Zo=new e.Struct({defaultFlags:e.uint32,chainLength:e.uint32,nFeatureEntries:e.uint32,nSubtables:e.uint32,features:new e.Array(Wo,"nFeatureEntries"),subtables:new e.Array(Vo,"nSubtables")}),Xo=new e.Struct({version:e.uint16,unused:new e.Reserved(e.uint16),nChains:e.uint32,chains:new e.Array(Zo,"nChains")}),qo=new e.Struct({left:e.int16,top:e.int16,right:e.int16,bottom:e.int16}),_o=new e.Struct({version:e.fixed32,format:e.uint16,lookupTable:new fr(qo)}),se={};se.cmap=DA,se.head=FA,se.hhea=_,se.hmtx=uA,se.maxp=CA,se.name=W,se["OS/2"]=mA,se.post=EA,se.fpgm=et,se.loca=ot,se.prep=TA,se["cvt "]=GA,se.glyf=it,se["CFF "]=te,se.CFF2=te,se.VORG=Pt,se.EBLC=_e,se.CBLC=se.EBLC,se.sbix=rn,se.COLR=an,se.CPAL=cn,se.BASE=K,se.GDEF=vt,se.GPOS=Rr,se.GSUB=zr,se.JSTF=Hr,se.HVAR=bi,se.DSIG=oo,se.gasp=lo,se.hdmx=go,se.kern=ca,se.LTSH=fo,se.PCLT=ho,se.VDMX=Qo,se.vhea=Mo,se.vmtx=Io,se.avar=Do,se.bsln=Fo,se.feat=ar,se.fvar=To,se.gvar=Uo,se.just=Jo,se.morx=Xo,se.opbd=_o;var or,$o=new e.Struct({tag:new e.String(4),checkSum:e.uint32,offset:new e.Pointer(e.uint32,"void",{type:"global"}),length:e.uint32}),ci=new e.Struct({tag:new e.String(4),numTables:e.uint16,searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16,tables:new e.Array($o,"numTables")});function gi(eA,G){for(var V=0,M=eA.length-1;V<=M;){var x=V+M>>1,P=G(eA[x]);if(P<0)M=x-1;else{if(!(P>0))return x;V=x+1}}return-1}function Sr(eA,G){for(var V=[];eA>1;if(MsA.endCode.get(jA))){var lt=sA.idRangeOffset.get(jA),qA=void 0;if(0===lt)qA=M+sA.idDelta.get(jA);else{var Bt=lt/2+(M-sA.startCode.get(jA))-(sA.segCount-jA);0!==(qA=sA.glyphIndexArray.get(Bt)||0)&&(qA+=sA.idDelta.get(jA))}return 65535&qA}iA=jA+1}}return 0;case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return sA.glyphIndices.get(M-sA.firstCode)||0;case 12:case 13:for(var pt=0,yt=sA.nGroups-1;pt<=yt;){var Gt=pt+yt>>1,$t=sA.groups.get(Gt);if(M<$t.startCharCode)yt=Gt-1;else{if(!(M>$t.endCharCode))return 12===sA.version?$t.glyphID+(M-$t.startCharCode):$t.glyphID;pt=Gt+1}}return 0;case 14:throw new Error("TODO: cmap format 14");default:throw new Error("Unknown cmap format ".concat(sA.version))}},G.getVariationSelector=function(M,x){if(!this.uvs)return 0;var P=this.uvs.varSelectors.toArray(),tA=gi(P,function(sA){return x-sA.varSelector}),oA=P[tA];return-1!==tA&&oA.defaultUVS&&(tA=gi(oA.defaultUVS,function(sA){return MsA.startUnicodeValue+sA.additionalCount?1:0})),-1!==tA&&oA.nonDefaultUVS&&-1!==(tA=gi(oA.nonDefaultUVS,function(sA){return M-sA.unicodeValue}))?oA.nonDefaultUVS[tA].glyphID:0},G.getCharacterSet=function(){var M=this.cmap;switch(M.version){case 0:return Sr(0,M.codeMap.length);case 4:for(var x=[],P=M.endCode.toArray(),tA=0;tA=qt.glyphID&&M<=qt.glyphID+(qt.endCharCode-qt.startCharCode)&&yt.push(qt.startCharCode+(M-qt.glyphID))}return yt;case 13:for(var we,ie=[],Be=g(x.groups.toArray());!(we=Be()).done;){var Ce=we.value;M===Ce.glyphID&&ie.push.apply(ie,Sr(Ce.startCharCode,Ce.endCharCode+1))}return ie;default:throw new Error("Unknown cmap format ".concat(x.version))}},eA}()).prototype,"getCharacterSet",[z],Object.getOwnPropertyDescriptor(or.prototype,"getCharacterSet"),or.prototype),F(or.prototype,"codePointsForGlyph",[z],Object.getOwnPropertyDescriptor(or.prototype,"codePointsForGlyph"),or.prototype),or),As=function(){function eA(V){this.kern=V.kern}var G=eA.prototype;return G.process=function(M,x){for(var P=0;P=0&&(iA=NA.pairs[jA].value);break;case 2:var qA=0;x>=NA.rightTable.firstGlyph&&x=NA.leftTable.firstGlyph&&M=NA.glyphCount||x>=NA.glyphCount)return 0;iA=NA.kernValue[NA.kernIndex[NA.leftClass[M]*NA.rightClassCount+NA.rightClass[x]]];break;default:throw new Error("Unsupported kerning sub-table format ".concat(sA.format))}sA.coverage.override?P=iA:P+=iA}}return P},eA}(),ts=function(){function eA(V){this.font=V}var G=eA.prototype;return G.positionGlyphs=function(M,x){for(var P=0,tA=0,oA=0;oA1&&(sA.minX+=(oA.codePoints.length-1)*sA.width/oA.codePoints.length);for(var iA=-x[P].xAdvance,NA=0,jA=this.font.unitsPerEm/16,lt=P+1;lt<=tA;lt++){var qA=M[lt],Bt=qA.cbox,pt=x[lt],yt=this.getCombiningClass(qA.codePoints[0]);if("Not_Reordered"!==yt){switch(pt.xOffset=pt.yOffset=0,yt){case"Double_Above":case"Double_Below":pt.xOffset+=sA.minX-Bt.width/2-Bt.minX;break;case"Attached_Below_Left":case"Below_Left":case"Above_Left":pt.xOffset+=sA.minX-Bt.minX;break;case"Attached_Above_Right":case"Below_Right":case"Above_Right":pt.xOffset+=sA.maxX-Bt.width-Bt.minX;break;default:pt.xOffset+=sA.minX+(sA.width-Bt.width)/2-Bt.minX}switch(yt){case"Double_Below":case"Below_Left":case"Below":case"Below_Right":case"Attached_Below_Left":case"Attached_Below":("Attached_Below_Left"===yt||"Attached_Below"===yt)&&(sA.minY+=jA),pt.yOffset=-sA.minY-Bt.maxY,sA.minY+=Bt.height;break;case"Double_Above":case"Above_Left":case"Above":case"Above_Right":case"Attached_Above":case"Attached_Above_Right":("Attached_Above"===yt||"Attached_Above_Right"===yt)&&(sA.maxY+=jA),pt.yOffset=sA.maxY-Bt.minY,sA.maxY+=Bt.height}pt.xAdvance=pt.yAdvance=0,pt.xOffset+=iA,pt.yOffset+=NA}else iA-=pt.xAdvance,NA-=pt.yAdvance}},G.getCombiningClass=function(M){var x=w.getCombiningClass(M);if(3584==(-256&M))if("Not_Reordered"===x)switch(M){case 3633:case 3636:case 3637:case 3638:case 3639:case 3655:case 3660:case 3645:case 3662:return"Above_Right";case 3761:case 3764:case 3765:case 3766:case 3767:case 3771:case 3788:case 3789:return"Above";case 3772:return"Below"}else if(3642===M)return"Below_Right";switch(x){case"CCC10":case"CCC11":case"CCC12":case"CCC13":case"CCC14":case"CCC15":case"CCC16":case"CCC17":case"CCC18":case"CCC20":case"CCC22":case"CCC29":case"CCC32":case"CCC118":case"CCC129":case"CCC132":return"Below";case"CCC23":return"Attached_Above";case"CCC24":case"CCC107":return"Above_Right";case"CCC25":case"CCC19":return"Above_Left";case"CCC26":case"CCC27":case"CCC28":case"CCC30":case"CCC31":case"CCC33":case"CCC34":case"CCC35":case"CCC36":case"CCC122":case"CCC130":return"Above";case"CCC21":break;case"CCC103":return"Below_Right"}return x},eA}(),Nr=function(){function eA(V,M,x,P){void 0===V&&(V=1/0),void 0===M&&(M=1/0),void 0===x&&(x=-1/0),void 0===P&&(P=-1/0),this.minX=V,this.minY=M,this.maxX=x,this.maxY=P}var G=eA.prototype;return G.addPoint=function(M,x){Math.abs(M)!==1/0&&(Mthis.maxX&&(this.maxX=M)),Math.abs(x)!==1/0&&(xthis.maxY&&(this.maxY=x))},G.copy=function(){return new eA(this.minX,this.minY,this.maxX,this.maxY)},l(eA,[{key:"width",get:function(){return this.maxX-this.minX}},{key:"height",get:function(){return this.maxY-this.minY}}]),eA}(),Ur={Caucasian_Albanian:"aghb",Arabic:"arab",Imperial_Aramaic:"armi",Armenian:"armn",Avestan:"avst",Balinese:"bali",Bamum:"bamu",Bassa_Vah:"bass",Batak:"batk",Bengali:["bng2","beng"],Bopomofo:"bopo",Brahmi:"brah",Braille:"brai",Buginese:"bugi",Buhid:"buhd",Chakma:"cakm",Canadian_Aboriginal:"cans",Carian:"cari",Cham:"cham",Cherokee:"cher",Coptic:"copt",Cypriot:"cprt",Cyrillic:"cyrl",Devanagari:["dev2","deva"],Deseret:"dsrt",Duployan:"dupl",Egyptian_Hieroglyphs:"egyp",Elbasan:"elba",Ethiopic:"ethi",Georgian:"geor",Glagolitic:"glag",Gothic:"goth",Grantha:"gran",Greek:"grek",Gujarati:["gjr2","gujr"],Gurmukhi:["gur2","guru"],Hangul:"hang",Han:"hani",Hanunoo:"hano",Hebrew:"hebr",Hiragana:"hira",Pahawh_Hmong:"hmng",Katakana_Or_Hiragana:"hrkt",Old_Italic:"ital",Javanese:"java",Kayah_Li:"kali",Katakana:"kana",Kharoshthi:"khar",Khmer:"khmr",Khojki:"khoj",Kannada:["knd2","knda"],Kaithi:"kthi",Tai_Tham:"lana",Lao:"lao ",Latin:"latn",Lepcha:"lepc",Limbu:"limb",Linear_A:"lina",Linear_B:"linb",Lisu:"lisu",Lycian:"lyci",Lydian:"lydi",Mahajani:"mahj",Mandaic:"mand",Manichaean:"mani",Mende_Kikakui:"mend",Meroitic_Cursive:"merc",Meroitic_Hieroglyphs:"mero",Malayalam:["mlm2","mlym"],Modi:"modi",Mongolian:"mong",Mro:"mroo",Meetei_Mayek:"mtei",Myanmar:["mym2","mymr"],Old_North_Arabian:"narb",Nabataean:"nbat",Nko:"nko ",Ogham:"ogam",Ol_Chiki:"olck",Old_Turkic:"orkh",Oriya:["ory2","orya"],Osmanya:"osma",Palmyrene:"palm",Pau_Cin_Hau:"pauc",Old_Permic:"perm",Phags_Pa:"phag",Inscriptional_Pahlavi:"phli",Psalter_Pahlavi:"phlp",Phoenician:"phnx",Miao:"plrd",Inscriptional_Parthian:"prti",Rejang:"rjng",Runic:"runr",Samaritan:"samr",Old_South_Arabian:"sarb",Saurashtra:"saur",Shavian:"shaw",Sharada:"shrd",Siddham:"sidd",Khudawadi:"sind",Sinhala:"sinh",Sora_Sompeng:"sora",Sundanese:"sund",Syloti_Nagri:"sylo",Syriac:"syrc",Tagbanwa:"tagb",Takri:"takr",Tai_Le:"tale",New_Tai_Lue:"talu",Tamil:["tml2","taml"],Tai_Viet:"tavt",Telugu:["tel2","telu"],Tifinagh:"tfng",Tagalog:"tglg",Thaana:"thaa",Thai:"thai",Tibetan:"tibt",Tirhuta:"tirh",Ugaritic:"ugar",Vai:"vai ",Warang_Citi:"wara",Old_Persian:"xpeo",Cuneiform:"xsux",Yi:"yi ",Inherited:"zinh",Common:"zyyy",Unknown:"zzzz"},Hi={};for(var Ji in Ur){var Oi=Ur[Ji];if(Array.isArray(Oi))for(var Ea,es=g(Oi);!(Ea=es()).done;)Hi[Ea.value]=Ji;else Hi[Oi]=Ji}var os={arab:!0,hebr:!0,syrc:!0,thaa:!0,cprt:!0,khar:!0,phnx:!0,"nko ":!0,lydi:!0,avst:!0,armi:!0,phli:!0,prti:!0,sarb:!0,orkh:!0,samr:!0,mand:!0,merc:!0,mero:!0,mani:!0,mend:!0,nbat:!0,narb:!0,palm:!0,phlp:!0};function wa(eA){return os[eA]?"rtl":"ltr"}for(var ss=function(){function eA(G,V,M,x,P){if(this.glyphs=G,this.positions=null,this.script=M,this.language=x||null,this.direction=P||wa(M),this.features={},Array.isArray(V))for(var oA,tA=g(V);!(oA=tA()).done;)this.features[oA.value]=!0;else"object"==typeof V&&(this.features=V)}return l(eA,[{key:"advanceWidth",get:function(){for(var x,V=0,M=g(this.positions);!(x=M()).done;)V+=x.value.xAdvance;return V}},{key:"advanceHeight",get:function(){for(var x,V=0,M=g(this.positions);!(x=M()).done;)V+=x.value.yAdvance;return V}},{key:"bbox",get:function(){for(var V=new Nr,M=0,x=0,P=0;P>1]).firstGlyph)return null;if(MoA.lastGlyph))return 2===this.table.version?oA.value:oA.values[M-oA.firstGlyph];x=tA+1}}return null;case 6:for(var sA=0,iA=this.table.binarySearchHeader.nUnits-1;sA<=iA;){var tA,oA;if(65535===(oA=this.table.segments[tA=sA+iA>>1]).glyph)return null;if(MoA.glyph))return oA.value;sA=tA+1}}return null;case 8:return this.table.values[M-this.table.firstGlyph];default:throw new Error("Unknown lookup table format: ".concat(this.table.version))}},G.glyphsForValue=function(M){var x=[];switch(this.table.version){case 2:case 4:for(var tA,P=g(this.table.segments);!(tA=P()).done;){var oA=tA.value;if(2===this.table.version&&oA.value===M)x.push.apply(x,Sr(oA.firstGlyph,oA.lastGlyph+1));else for(var sA=0;sA=-1;){var iA=null,NA=1,jA=!0;oA===M.length||-1===oA?NA=0:65535===(iA=M[oA]).id?NA=2:null==(NA=this.lookupTable.lookup(iA.id))&&(NA=1);var lt=this.stateTable.stateArray.getItem(tA),Bt=this.stateTable.entryTable.getItem(lt[NA]);0!==NA&&2!==NA&&(P(iA,Bt,oA),jA=!(16384&Bt.flags)),tA=Bt.newState,jA&&(oA+=sA)}return M},G.traverse=function(M,x,P){if(void 0===x&&(x=0),void 0===P&&(P=new Set),!P.has(x)){P.add(x);for(var tA=this.stateTable,oA=tA.nClasses,iA=tA.entryTable,NA=tA.stateArray.getItem(x),jA=4;jA=0;)65535===M[yt].id&&M.splice(yt,1),yt--;return M},G.processSubtable=function(M,x){if(this.subtable=M,this.glyphs=x,4!==this.subtable.type){this.ligatureStack=[],this.markedGlyph=null,this.firstGlyph=null,this.lastGlyph=null,this.markedIndex=null;var P=this.getStateMachine(M),tA=this.getProcessor();return P.process(this.glyphs,!!(4194304&this.subtable.coverage),tA)}this.processNoncontextualSubstitutions(this.subtable,this.glyphs)},G.getStateMachine=function(M){return new fs(M.table.stateTable)},G.getProcessor=function(){switch(this.subtable.type){case 0:return this.processIndicRearragement;case 1:return this.processContextualSubstitution;case 2:return this.processLigature;case 4:return this.processNoncontextualSubstitutions;case 5:return this.processGlyphInsertion;default:throw new Error("Invalid morx subtable type: ".concat(this.subtable.type))}},G.processIndicRearragement=function(M,x,P){32768&x.flags&&(this.firstGlyph=P),8192&x.flags&&(this.lastGlyph=P),function ys(eA,G,V,M){switch(G){case 0:return eA;case 1:return Nn(eA,[V,1],[M,0]);case 2:return Nn(eA,[V,0],[M,1]);case 3:return Nn(eA,[V,1],[M,1]);case 4:return Nn(eA,[V,2],[M,0]);case 5:return Nn(eA,[V,2],[M,0],!0,!1);case 6:return Nn(eA,[V,0],[M,2]);case 7:return Nn(eA,[V,0],[M,2],!1,!0);case 8:return Nn(eA,[V,1],[M,2]);case 9:return Nn(eA,[V,1],[M,2],!1,!0);case 10:return Nn(eA,[V,2],[M,1]);case 11:return Nn(eA,[V,2],[M,1],!0,!1);case 12:return Nn(eA,[V,2],[M,2]);case 13:return Nn(eA,[V,2],[M,2],!0,!1);case 14:return Nn(eA,[V,2],[M,2],!1,!0);case 15:return Nn(eA,[V,2],[M,2],!0,!0);default:throw new Error("Unknown verb: ".concat(G))}}(this.glyphs,15&x.flags,this.firstGlyph,this.lastGlyph)},G.processContextualSubstitution=function(M,x,P){var tA=this.subtable.table.substitutionTable.items;if(65535!==x.markIndex){var oA=tA.getItem(x.markIndex);(iA=new Ei(oA).lookup((M=this.glyphs[this.markedGlyph]).id))&&(this.glyphs[this.markedGlyph]=this.font.getGlyph(iA,M.codePoints))}if(65535!==x.currentIndex){var iA,NA=tA.getItem(x.currentIndex);(iA=new Ei(NA).lookup((M=this.glyphs[P]).id))&&(this.glyphs[P]=this.font.getGlyph(iA,M.codePoints))}32768&x.flags&&(this.markedGlyph=P)},G.processLigature=function(M,x,P){if(32768&x.flags&&this.ligatureStack.push(P),8192&x.flags){for(var tA,oA=this.subtable.table.ligatureActions,sA=this.subtable.table.components,iA=this.subtable.table.ligatureList,NA=x.action,jA=!1,lt=0,qA=[],Bt=[];!jA;){var pt,yt=this.ligatureStack.pop();(pt=qA).unshift.apply(pt,this.glyphs[yt].codePoints);var Gt=oA.getItem(NA++);jA=!!(2147483648&Gt);var $t=!!(1073741824&Gt),qt=(1073741823&Gt)<<2>>2;if(lt+=sA.getItem(qt+=this.glyphs[yt].id),jA||$t){var Be=iA.getItem(lt);this.glyphs[yt]=this.font.getGlyph(Be,qA),Bt.push(yt),lt=0,qA=[]}else this.glyphs[yt]=this.font.getGlyph(65535)}(tA=this.ligatureStack).push.apply(tA,Bt)}},G.processNoncontextualSubstitutions=function(M,x,P){var tA=new Ei(M.table.lookupTable);for(P=0;P>>5,!!(1024&x.flags)),65535!==x.currentInsertIndex&&this._insertGlyphs(P,x.currentInsertIndex,(992&x.flags)>>>5,!!(2048&x.flags))},G.getSupportedFeatures=function(){for(var P,M=[],x=g(this.morx.chains);!(P=x()).done;)for(var sA,oA=g(P.value.features);!(sA=oA()).done;){var iA=sA.value;M.push([iA.featureType,iA.featureSetting])}return M},G.generateInputs=function(M){return this.inputCache||this.generateInputCache(),this.inputCache[M]||[]},G.generateInputCache=function(){this.inputCache={};for(var x,M=g(this.morx.chains);!(x=M()).done;)for(var sA,P=x.value,tA=P.defaultFlags,oA=g(P.subtables);!(sA=oA()).done;){var iA=sA.value;iA.subFeatureFlags&tA&&this.generateInputsForSubtable(iA)}},G.generateInputsForSubtable=function(M){var x=this;if(2===M.type){if(4194304&M.coverage)throw new Error("Reverse subtable, not supported.");this.subtable=M,this.ligatureStack=[];var tA=this.getStateMachine(M),oA=this.getProcessor(),sA=[],iA=[];this.glyphs=[],tA.traverse({enter:function(jA,lt){var qA=x.glyphs;iA.push({glyphs:qA.slice(),ligatureStack:x.ligatureStack.slice()});var Bt=x.font.getGlyph(jA);sA.push(Bt),qA.push(sA[sA.length-1]),oA(qA[qA.length-1],lt,qA.length-1);for(var pt=0,yt=0,Gt=0;Gt0&&M.applyFeatures(sA,x,P)}},eA}(),Ys=["rvrn"],Ts=["ccmp","locl","rlig","mark","mkmk"],Ss=["frac","numr","dnom"],Ns=["calt","clig","liga","rclt","curs","kern"],Us={ltr:["ltra","ltrm"],rtl:["rtla","rtlm"]},hr=function(){function eA(){}return eA.plan=function(V,M,x){this.planPreprocessing(V),this.planFeatures(V),this.planPostprocessing(V,x),V.assignGlobalFeatures(M),this.assignFeatures(V,M)},eA.planPreprocessing=function(V){V.add({global:[].concat(Ys,Us[V.direction]),local:Ss})},eA.planFeatures=function(V){},eA.planPostprocessing=function(V,M){V.add([].concat(Ts,Ns)),V.setFeatureOverrides(M)},eA.assignFeatures=function(V,M){for(var x=0;x0&&w.isDigit(M[tA-1].codePoints[0]);)M[tA-1].features.numr=!0,M[tA-1].features.frac=!0,tA--;for(;oAthis.index||this.index>=this.glyphs.length?null:this.glyphs[this.index]},G.next=function(){return this.move(1)},G.prev=function(){return this.move(-1)},G.peek=function(M){void 0===M&&(M=1);var x=this.index,P=this.increment(M);return this.index=x,P},G.peekIndex=function(M){void 0===M&&(M=1);var x=this.index;this.increment(M);var P=this.index;return this.index=x,P},G.increment=function(M){void 0===M&&(M=1);var x=M<0?-1:1;for(M=Math.abs(M);M--;)this.move(x);return this.glyphs[this.index]},l(eA,[{key:"cur",get:function(){return this.glyphs[this.index]||null}}]),eA}(),Vr=["DFLT","dflt","latn"],di=function(){function eA(V,M){this.font=V,this.table=M,this.script=null,this.scriptTag=null,this.language=null,this.languageTag=null,this.features={},this.lookups={},this.variationsIndex=V._variationProcessor?this.findVariationsIndex(V._variationProcessor.normalizedCoords):-1,this.selectScript(),this.glyphs=[],this.positions=[],this.ligatureID=1,this.currentFeature=null}var G=eA.prototype;return G.findScript=function(M){if(null==this.table.scriptList)return null;Array.isArray(M)||(M=[M]);for(var P,x=g(M);!(P=x()).done;)for(var sA,tA=P.value,oA=g(this.table.scriptList);!(sA=oA()).done;){var iA=sA.value;if(iA.tag===tA)return iA}return null},G.selectScript=function(M,x,P){var oA,tA=!1;if(!this.script||M!==this.scriptTag){if((oA=this.findScript(M))||(oA=this.findScript(Vr)),!oA)return this.scriptTag;this.scriptTag=oA.tag,this.script=oA.script,this.language=null,this.languageTag=null,tA=!0}if((!P||P!==this.direction)&&(this.direction=P||wa(M)),x&&x.length<4&&(x+=" ".repeat(4-x.length)),!x||x!==this.languageTag){this.language=null;for(var iA,sA=g(this.script.langSysRecords);!(iA=sA()).done;){var NA=iA.value;if(NA.tag===x){this.language=NA.langSys,this.languageTag=NA.tag;break}}this.language||(this.language=this.script.defaultLangSys,this.languageTag=null),tA=!0}if(tA&&(this.features={},this.language))for(var lt,jA=g(this.language.featureIndexes);!(lt=jA()).done;){var qA=lt.value,Bt=this.table.featureList[qA],pt=this.substituteFeatureForVariations(qA);this.features[Bt.tag]=pt||Bt.feature}return this.scriptTag},G.lookupsForFeatures=function(M,x){void 0===M&&(M=[]);for(var oA,P=[],tA=g(M);!(oA=tA()).done;){var sA=oA.value,iA=this.features[sA];if(iA)for(var jA,NA=g(iA.lookupListIndexes);!(jA=NA()).done;){var lt=jA.value;x&&-1!==x.indexOf(lt)||P.push({feature:sA,index:lt,lookup:this.table.lookupList.get(lt)})}}return P.sort(function(qA,Bt){return qA.index-Bt.index}),P},G.substituteFeatureForVariations=function(M){if(-1===this.variationsIndex)return null;for(var oA,tA=g(this.table.featureVariations.featureVariationRecords[this.variationsIndex].featureTableSubstitution.substitutions);!(oA=tA()).done;){var sA=oA.value;if(sA.featureIndex===M)return sA.alternateFeatureTable}return null},G.findVariationsIndex=function(M){var x=this.table.featureVariations;if(!x)return-1;for(var P=x.featureVariationRecords,tA=0;tA=0})},G.getClassID=function(M,x){switch(x.version){case 1:var P=M-x.startGlyph;if(P>=0&&P0&&this.codePoints.every(w.isMark),this.isBase=!this.isMark,this.isLigature=this.codePoints.length>1,this.markAttachmentType=0}}]),eA}(),Da=function(eA){function G(){return eA.apply(this,arguments)||this}return h(G,eA),G.planFeatures=function(M){M.add(["ljmo","vjmo","tjmo"],!1)},G.assignFeatures=function(M,x){for(var P=0,tA=0;tAmr){var lt=Zr(V,tA,M.features);lt.features.tjmo=!0,jA.push(lt)}return eA.splice.apply(eA,[G,1].concat(jA)),G+jA.length-1}function e0(eA,G,V){var sA,iA,NA,jA,M=eA[G],P=Di(eA[G].codePoints[0]),tA=eA[G-1].codePoints[0],oA=Di(tA);if(4===oA&&3===P)sA=tA,jA=M;else{2===P?(iA=eA[G-1],NA=M):(iA=eA[G-2],NA=eA[G-1],jA=M);var lt=iA.codePoints[0],qA=NA.codePoints[0];(function(G){return 4352<=G&&G<=4370})(lt)&&function(G){return 4449<=G&&G<=4469}(qA)&&(sA=Pr+28*(21*(lt-4352)+(qA-4449)))}var Bt=jA&&jA.codePoints[0]||mr;if(null!=sA&&(Bt===mr||function(G){return 1<=G&&G<=4546}(Bt))){var pt=sA+(Bt-mr);if(V.hasGlyphForCodePoint(pt)){var yt=2===oA?3:2;return eA.splice(G-yt+1,yt,Zr(V,pt,M.features)),G-yt+1}}return iA&&(iA.features.ljmo=!0),NA&&(NA.features.vjmo=!0),jA&&(jA.features.tjmo=!0),4===oA?(Sa(eA,G-1,V),G+1):G}function r0(eA,G,V){var M=eA[G];if(0!==V.glyphForCodePoint(eA[G].codePoints[0]).advanceWidth){var tA=function n0(eA){switch(Di(eA)){case 4:case 5:return 1;case 2:return 2;case 3:return 3}}(eA[G-1].codePoints[0]);return eA.splice(G,1),eA.splice(G-tA,0,M)}}function i0(eA,G,V){var M=eA[G],x=eA[G].codePoints[0];if(V.hasGlyphForCodePoint(9676)){var P=Zr(V,9676,M.features),tA=0===V.glyphForCodePoint(x).advanceWidth?G:G+1;eA.splice(tA,0,P),G++}return G}var xi={categories:["O","IND","S","GB","B","FM","CGJ","VMAbv","VMPst","VAbv","VPst","CMBlw","VPre","VBlw","H","VMBlw","CMAbv","MBlw","CS","R","SUB","MPst","MPre","FAbv","FPst","FBlw","null","SMAbv","SMBlw","VMPre","ZWNJ","ZWJ","WJ","M","VS","N","HN","MAbv"],decompositions:{2507:[2503,2494],2508:[2503,2519],2888:[2887,2902],2891:[2887,2878],2892:[2887,2903],3018:[3014,3006],3019:[3015,3006],3020:[3014,3031],3144:[3142,3158],3264:[3263,3285],3271:[3270,3285],3272:[3270,3286],3274:[3270,3266],3275:[3270,3266,3285],3402:[3398,3390],3403:[3399,3390],3404:[3398,3415],3546:[3545,3530],3548:[3545,3535],3549:[3545,3535,3530],3550:[3545,3551],3635:[3661,3634],3763:[3789,3762],3955:[3953,3954],3957:[3953,3956],3958:[4018,3968],3959:[4018,3953,3968],3960:[4019,3968],3961:[4019,3953,3968],3969:[3953,3968],6971:[6970,6965],6973:[6972,6965],6976:[6974,6965],6977:[6975,6965],6979:[6978,6965],69934:[69937,69927],69935:[69938,69927],70475:[70471,70462],70476:[70471,70487],70843:[70841,70842],70844:[70841,70832],70846:[70841,70845],71098:[71096,71087],71099:[71097,71087]},stateTable:[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[2,2,3,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,17,18,11,19,20,21,22,0,0,0,23,0,0,2,0,0,24,0,25],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,26,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,28,0,0,0,0,0,27,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,39,0,0,47],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,49,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,28,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,28,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,41,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,53,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,51,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0]],accepting:[!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0],tags:[[],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["symbol_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["virama_terminated_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["number_joiner_terminated_cluster"],["standard_cluster"],["standard_cluster"],["numeral_cluster"]]},pe_X=1,pe_N=8,pe_H=16,pe_ZWNJ=32,pe_ZWJ=64,pe_M=128,pe_RS=8192,pe_Repha=32768,pe_Ra=65536,pe_CM=1<<17,ee={Start:1,Ra_To_Become_Reph:2,Pre_M:4,Pre_C:8,Base_C:16,After_Main:32,Above_C:64,Before_Sub:128,Below_C:256,After_Sub:512,Before_Post:1024,Post_C:2048,After_Post:4096,Final_C:8192,SMVD:16384,End:32768},h0=2|pe_Ra|pe_CM|4|2048|4096,Na=pe_ZWJ|pe_ZWNJ,Xr=pe_H|16384,Ua={Default:{hasOldSpec:!1,virama:0,basePos:"Last",rephPos:ee.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Devanagari:{hasOldSpec:!0,virama:2381,basePos:"Last",rephPos:ee.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Bengali:{hasOldSpec:!0,virama:2509,basePos:"Last",rephPos:ee.After_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gurmukhi:{hasOldSpec:!0,virama:2637,basePos:"Last",rephPos:ee.Before_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gujarati:{hasOldSpec:!0,virama:2765,basePos:"Last",rephPos:ee.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Oriya:{hasOldSpec:!0,virama:2893,basePos:"Last",rephPos:ee.After_Main,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Tamil:{hasOldSpec:!0,virama:3021,basePos:"Last",rephPos:ee.After_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Telugu:{hasOldSpec:!0,virama:3149,basePos:"Last",rephPos:ee.After_Post,rephMode:"Explicit",blwfMode:"Post_Only"},Kannada:{hasOldSpec:!0,virama:3277,basePos:"Last",rephPos:ee.After_Post,rephMode:"Implicit",blwfMode:"Post_Only"},Malayalam:{hasOldSpec:!0,virama:3405,basePos:"Last",rephPos:ee.After_Main,rephMode:"Log_Repha",blwfMode:"Pre_And_Post"},Khmer:{hasOldSpec:!1,virama:6098,basePos:"First",rephPos:ee.Ra_To_Become_Reph,rephMode:"Vis_Repha",blwfMode:"Pre_And_Post"}},E0={6078:[6081,6078],6079:[6081,6079],6080:[6081,6080],6084:[6081,6084],6085:[6081,6085]},w0=xi.decompositions,Pa=new Q(c("AAARAAAAAABg2AAAAWYPmfDtnXuMXFUdx+/uzs7M7szudAtECGJRIMRQbUAithQWkGAKiVhNpFVRRAmIQVCDkDYICGotIA9BTCz8IeUviv7BQ2PBtBIRLBBQIWAUsKg1BKxRAqIgfs/cc+aeOXPej3tnZX7JJ/dxzj3nd36/8753Z5fUsuxgsAwcAU4Gp4BPgM+Cd4P3RjieDs4GXwLrHJ5bDy4DG8A14LvgZrAZbAF3gns0z18ALgY/B78C94NHwBPgabAE/AX8DbwM5sF/QX0yD5vFcU/wVnAgWAoOAyvAceBE8CGwBpwGzgJfAF8BXwXfAFeC68EmsBlsAXeCreA+8CB4DDwF/gh2gd3gFfAGmKxn2QzYC+wHDgRLweFgJTgWrKrnuq/GcQ04jV6fheN54EJwEbgcXAG+Q8O/j+Mt4DZwB9haz8t9Hz3a8iCN/xiOvwRP0evH6fE68AzOH+Ke2eWYhw3PcGnuxvkr4A3QaGRZB7wFLAEHg2XgiEZ/fHKcp/ceBh/A+cngFPCpRm6vM3E8l8a5gN67GMdvgqsbeX2ap9yI601gM7gN3AG20mfuo8cdOP6GpvdUg9oKxz839GV90RDO2/glxN1B790NXsN1rZll7WYRdw+c70uvTwIHNAfTO0RyL5TDmnnbc3lmRQI9UnM0dD5eovfz4FpJ/BNpXNYWV+N6Lfg0hY97JK1vn+Pur9DoQur2F7m436bHDUK8C5t5/8vruo4+97WmXG+GLmzEiBF+PDwEOowYMWLEiBEjRoxYeBw5BDqIPEfXut9yWN+vVNxfrnnmWqR/PdgENoMt4E5wD9gOHgCPgifBs2BXM99b2o3jP8F/wMRUlrXAHNgHvH0q3895J46HguXgWHAGLctmLv9VuL96qnp7jxgxYsSbCbJvuRZ97/tqxT59VVRtixEjRsThBG7OSt5zzoPT0M+cBc4T5noXOs79TqLHeZrHUeCSqeJ96gacXy2kecNU8V6Hh7yXuQlhtw7B/PO1RTkr52Aj8JNFZjYg3gOKuC/g/v6Ls2wNuAY8urg//PcIb+6RZXuDNeCS6SzbBrJWlh0DLiFHco8ed9IjzzvaWfa9sZzTcf6D9mCcnbg3PlNcH4fzS8F2MDaLdQG4dLZIJxbbaZqv4ri8k58f3+mPs66T6/TTzqDeI0aMGDGiHP5dcR8ce/xxYcWi6vOfr725uRzcjnngXVOD61Hync+9uL+Nmyfej/NHpvL56A5Jeuz7uyfo+pqcPz2Vf1NH0ttJ03pekt8SmuY/EPYy9zzbN319ym/9TL6ZIt9MHCXRdxJtoAkWTRdz472n87D9cTwYLJvuz++I6WIePo/zE8AHp4v8WLyP0nufnM6/+zoDx8+DL08P6r9+urheRtO+jD6/cdrsx3mqu8w+xH4PScKIXa5D2jeCm8Et4DbwI/BjcC/4BXgI/Bb8DuwEu8Bu8Ap4A9RaRZptnO8J9gUHgEPAoWA5OLY1qMO90GEV7q+mYWtxPBWcIYnL4p+DsPNbxfVFOP86uAr8DNc34HgTDb8Vx9sVaRFI/LtagzYjnCqpb908EX87eBA8Bh4Hf2jle/9/wvGFVv787rrZZy8h7qtgDOuFOmiBuXYRvg/O9wMHgXeB97SLspk4sq0OI/q9v13+ek+sh3zYSRp9jrYorw9ll1/GRzR+KotYZSHf8laVP2lvpA/8OGdPMk59hqtXZ+L8nHbxvWwqO65ryu+fT3VZz+l4dET7L0R072ljsMyzTpaJqQxsbL8M9WajY789DO85XMp/Dcp3Qztdn+9qf/a97ZWK8PXc3G+TpC/nv8Mncy7ZvICF302P5O+aNiOtLdTXd+D4Q7DVwfcvWvx9zTEJ/o5iG3R8YAjGNFseha5PGuZKz7b7xxXbOrXMcu5eJSo//rXdH/73Enz6L1q/X+fyIu8wZGtNBmkjkzNZNgP2AvuBg2bysKUzduXn/66JtNeN4PCZvO0/x7Ujdn4VnYOvRJzjZ/I+9sQZeftX2Tc1RPcPz/Tf4/si0g+t5Mq+kfZjZL34Mc5ul3PPnE7TOxvHK2qDaZ+L++db2HyYqMo/qVnb/P8uH8/rmnFxR0k6DCu/rjj/RxT7KGUSWgbd+LMQuEgYB1zsk2qtvJD8v5AhdfdttbEunSxbcJD9Zf7chqp1Hlbe7FK1/aPVTfp7FgtC1yGGiSncFK/DhZvi+epZta0WWjlsfDZMyPRdSPrryqSSKnXx1bkq/Ye9TlRpk7Lrjq1UrfdC9X+MtKqwP6+3a/4pJFUZF0pZZpv91MYjMBaRRXbxpho5zQmUY3F+Pt4o7rvQrBXPdm00TaE24uMadaM2meLSI7iu071t3er3b6ZLi8JEde3qw+6zGv+ycF5kaRBh/m1T/7Yl/mMyTuMwadP4xL9ifjJpNwbvDZRJ8G8vnqV/Wf12aa/kyOdl69+BspTsXzGueE6E+JfZnvmXIfNPW+FfXkjb1YmqPNpnLP3b61fHCj/X5tzGANf2y3yqvC7Jv7btV4TVbdammI9l/g0dS5lNxLrk2j9r8xjjxhBQnygg0lgg/bOrfyct+udJi/Yrk0lFnxC7f+5kRbsNmcexfrubt0X/rGvLqrGSnYv3ZPHEe8r7lvMvUfi2LOu/2dg8LrRtQt2yfcv8r5IU70VkIs6nbebUXf0M/o7Znl39Sdoz+X1oEb5N8ffF67qhPfPP6eoUbxf+GRf/6sRnvaSdmw+Bf1VxmbD+2sa//DU7t/Gv2PfKpKdrBP92Ojk+IvqX16ks/2qxbL8EZnc2HqsgYuqPuzZV+I3RbujbDm+T0PmWCVO/5jqftp1zy+wSA6s0JWtp2z5e1oZV+yMsjB3ZXolsv0Ulrv01v3/iKrF94Qtbt9siCnmeb6fjjf59KnLk1xaEbvtvFnFirGvEOqmycQrbm/IMsXd3P28uh4nM3swXRER717OiX8kc7K2qqyn2p3maFGU/aruP5VCv+PraoTYU8yUmmbDwcYo6pusnM486xdoga4dkPCb1pK7Sfc6ebvkd4qeAtQcd/N63bB3lU3dlUnUf38VyvqCqK7JxlNSd7lydrDlm+/uqHiRvl30Nrp/n9zpkZRjoJ3V1diyP05rIYXHYs+w+D5+WMS8b5gZtKcuX0KT5d/WwtB97VnyvY6rjMukI56HI0rFJPwt8PjT/1OXzSbcMeEmdh294qvKK4rNu7j4n3LNZg8TKXwafv025U+XvKjHsT8Q7/7LGaJt9lAh7Asz3uv0XEX6t0duDoWN/93wmh92XpUHmCKb9GALbG+rZP3AfNbQPKKv/jpF/bP0JXfuW1QYk7dhljcyvk5mw+933Hpo1g26PQ2ZP6zVmTJt47P25jncD9vPwGS+q9QS/V6RaY8j8K8LmvUr9HfYCpH5OWL9lZY+Sv6pesHCJHbtrf9k6etZvf0G1L0ja4cAe1UT/s3zdCe3/Q5/n372wMc97/E1Qh0Tbmfwh3m/V9On72tNnrCF1sJkVe1EyXMdBa7+lHMsk44zMF6St9e2djNnbm8ybpHkq+gbbemMaH0UZmD8obKGrk7r+nt+3bE7o83YZp/vqOKdv6PzJNN6mTJsI/51XR7i2ZrGA5B6zFwnjzxmqPjaGfW3tZNrz1eljq29mOOqeCfF/irRt87PNw0uXSVAvrmOMNT569MptsYaV0sic/wbY13e8hPrb9K2ySUJ0j6G/Lu0U4qpTrR23jMp6m5hU+YTaWCeh9aIsm/rqUHV4bFv42kgnZdfH1PUj1D7DVH9d8khRN1zFRl/+/TW//qxL1uH83+mk3H+SvRtS2TDU90nX2TpM6/1xzZpZtoYdK763dqlz0f6uNeFehcs+H/nbGP77MpX06n/ofpzP+tVmTUvRtVuX/cjS67OE5kRBrxyJ+w/dPo7r+9cO1160e3gqu0S2uW7PjN/L6ns/UfMf10Lai87frJ+3KndAfc8yTf1M3T4s6qm4/yh7/2GSkG8UMw//DvRLgbYZSEOxr0LCWvRdjfh9XGzfqN4NivfZd7rsmFp08zmbssrKJEuTfVMZopdpbuwSrhNv3/N2s+0PDG3KNB6RMrFvJHv6B85HXObAoWsd3zm3i+6uZYytv+5+pohbpo6+tpZJFfmGlrcMf4c8b1Pe2OUIsaXJrinCTfaxtZOt+NYnU3hIfQlN20Z/1+dt7JaqLsbIzycNWZmrlNg2Dc2/LJ1T+T6WrrYSml4Ku7ik7yIx2opJD51vU9UfVRmrqL8u/olZj0PyCLV5irxcdKoi/6rKb8qTrHsnhW9jyZH/nSpeWDzxd9769uQ016lgUuf2pAfKPhu2FpfZL2Yb9snLNl/fNIepXaUsj4vNXCXUZ75px8ojNP8UPvAta2g6fb+F1ckZuneshv1vGXXDeyRRrN/bBPS1Jul+l+7zW86R7Wv63WXyDpt/RxraRjvC+TC3O61/Sqj/prag8x372yQivn+XwudrI2X2E2KdtJEov52e0L+uv4FO3p/rvssgsL8F4d/z9PzlWS94m8fqS3361Fi+6qaVYHwi9Yz4iH2fobIj+45cpz/TUaarr/4+z+vaWtVtyAX2d1LG8W9C3f+F1mnf36/k4w3YPrLv+XBVXCJs3cr+n4MKJuLv/fN9GhNdXVP5pJMN9vFi3rpv3/r8Ywg3SYp66zNOsO8QGcxPpnmRS/1mvmJjju3v7absI2xspQrvs1dNbjOj/wP7h1RlZyKGy8occ408UL8En4v6xfC/K3z52XzJd62T8vuZGGsxo/6O46ntmNqqFb/jps2/hHV4rPKH0svT4pstU7t2tZ9u/ZdqbJL1MwP6O86Fyt4jYaIrGz9mjEt8lFL4PtVE6votG2P6fpdf/GZRse7s3bf4BtSl/DIbKMctx++Z+8o6K6z9FPOwKsRmXiaNl7C+6NYRpjlbqG1j72f49qsuY4brd/amb4ZVc8TQ+sSH985LrEe8iPWJnfPrJRbWbb+dwn4x6o+r/aS2S7w3qWt//LnYz2ntE0vH1uDcyKatx1rH+EiMPEN1SZG/iz6+9o01Rob6O7Q+xLZ1jHobK61U+pWVvo2EpuWqzzD6Poa+pvhli0wn8Zq/72Mzm2d90o5VN1x9ZKuzbTgvqWwUIin8FSpl1CXXvFRxU0iozVPYJDRtF3uFphn6XAyJUUdD7SjTJ8v6n9fVbVObkKWp001lc9VRlqdOf5v0ZM+bymdbfp1NfG0bq27Y5JMyfxeJkU6o/inKH8O2Zfgidb6h/g3VJ7QcVbWL0Pxt6rlrPqa4KfQ25a2zl4/E8GdM/4fK/wA=","base64")),C0=new p({stateTable:[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,14,15,16,17],[0,0,0,18,19,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,28,29,30,31,32,33,0,34,0,0,35,36,0,0,37,0],[0,0,0,38,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,39,0,0,0,40,41,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,12,43,0,0,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,0,43,0,0,0,0],[0,0,0,45,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,50,0,0,51,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0],[0,0,0,53,54,55,56,57,58,0,59,0,0,60,61,0,0,62,0],[0,0,0,4,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,63,64,0,0,40,41,0,9,0,10,0,0,0,42,0,63,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,0,2,16,0],[0,0,0,18,65,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,0,0],[0,0,0,69,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,73,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,75,0,0,0,76,77,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,25,79,0,0,0,0],[0,0,0,18,19,20,74,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,81,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,86,0,0,87,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,88,0,0,0,0,0,0,0,0],[0,0,0,18,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,89,90,0,0,76,77,0,23,0,24,0,0,0,78,0,89,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,0,0],[0,0,0,94,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,96,0,0,0,97,98,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,35,100,0,0,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,102,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,107,0,0,108,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,109,0,0,0,0,0,0,0,0],[0,0,0,28,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,110,111,0,0,97,98,0,33,0,34,0,0,0,99,0,110,0,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,0,0],[0,0,0,0,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,0,0,115,116,117,118,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,39,0,122,0,123,123,8,9,0,10,0,0,0,42,0,39,0,0],[0,124,64,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,0],[0,39,0,0,0,121,125,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,126,126,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,47,47,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,128,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,129,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,50,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,134,0,0,0,0,0,0,0,0],[0,0,0,135,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,136,0,0,0,137,138,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,60,140,0,0,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,0,140,0,0,0,0],[0,0,0,142,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,147,0,0,148,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,149,0,0,0,0,0,0,0,0],[0,0,0,53,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,150,151,0,0,137,138,0,58,0,59,0,0,0,139,0,150,0,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,0,0],[0,0,0,155,116,156,157,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,75,3,4,5,159,160,8,161,0,162,0,11,12,163,0,75,16,0],[0,0,0,0,0,40,164,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,0,165,0,0,0,0],[0,124,64,0,0,40,164,0,9,0,10,0,0,0,42,0,124,0,0],[0,0,0,0,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,71,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,167,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,168,0,0,0,0,0,0,0,0],[0,0,0,0,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,0,79,0,0,0,0],[0,0,0,169,170,171,172,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,75,0,176,0,177,177,22,23,0,24,0,0,0,78,0,75,0,0],[0,178,90,0,0,0,0,0,0,0,0,0,0,0,0,0,178,0,0],[0,75,0,0,0,175,179,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,180,180,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,83,83,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,182,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,183,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,86,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,188,0,0,0,0,0,0,0,0],[0,0,0,189,170,190,191,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,76,193,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,0,194,0,0,0,0],[0,178,90,0,0,76,193,0,23,0,24,0,0,0,78,0,178,0,0],[0,0,0,0,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,195,196,197,198,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,96,0,202,0,203,203,32,33,0,34,0,0,0,99,0,96,0,0],[0,204,111,0,0,0,0,0,0,0,0,0,0,0,0,0,204,0,0],[0,96,0,0,0,201,205,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,206,206,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,104,104,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,208,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,209,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,107,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,214,0,0,0,0,0,0,0,0],[0,0,0,215,196,216,217,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,97,219,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,0,220,0,0,0,0],[0,204,111,0,0,97,219,0,33,0,34,0,0,0,99,0,204,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,223,0,0,0,40,224,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,119,225,0,0,0,0],[0,0,0,115,116,117,222,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,115,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,226,64,0,0,40,224,0,9,0,10,0,0,0,42,0,226,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,39,0,0,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,44,44,8,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,227,0,228,229,0,9,0,10,0,0,230,0,0,0,0,0],[0,39,0,122,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,231,231,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,232,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,131,131,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,234,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,235,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,0,0,240,241,242,243,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,136,0,247,0,248,248,57,58,0,59,0,0,0,139,0,136,0,0],[0,249,151,0,0,0,0,0,0,0,0,0,0,0,0,0,249,0,0],[0,136,0,0,0,246,250,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,251,251,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,144,144,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,253,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,254,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,147,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,259,0,0,0,0,0,0,0,0],[0,0,0,260,241,261,262,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,137,264,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,0,265,0,0,0,0],[0,249,151,0,0,137,264,0,58,0,59,0,0,0,139,0,249,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,158,225,0,0,0,0],[0,0,0,155,116,156,222,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,155,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,43,266,266,8,161,0,24,0,0,12,267,0,0,0,0],[0,75,0,176,43,268,268,269,161,0,24,0,0,0,267,0,75,0,0],[0,0,0,0,0,270,0,0,271,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,272,0,0,0,0,0,0,0,0],[0,273,274,0,0,40,41,0,9,0,10,0,0,0,42,0,273,0,0],[0,0,0,40,0,123,123,8,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,121,275,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,276,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,279,0,0,0,76,280,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,173,281,0,0,0,0],[0,0,0,169,170,171,278,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,169,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,282,90,0,0,76,280,0,23,0,24,0,0,0,78,0,282,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,75,0,0,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,80,80,22,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,283,0,284,285,0,23,0,24,0,0,286,0,0,0,0,0],[0,75,0,176,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,287,287,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,288,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,185,185,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,290,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,291,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,192,281,0,0,0,0],[0,0,0,189,170,190,278,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,189,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,76,0,177,177,22,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,175,296,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,299,0,0,0,97,300,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,199,301,0,0,0,0],[0,0,0,195,196,197,298,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,195,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,302,111,0,0,97,300,0,33,0,34,0,0,0,99,0,302,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,96,0,0,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,101,101,32,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,303,0,304,305,0,33,0,34,0,0,306,0,0,0,0,0],[0,96,0,202,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,307,307,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,308,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,211,211,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,310,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,311,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,218,301,0,0,0,0],[0,0,0,215,196,216,298,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,215,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,97,0,203,203,32,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,201,316,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,0,225,0,0,0,0],[0,0,0,317,318,319,320,8,9,0,10,0,0,321,322,0,0,16,0],[0,223,0,323,0,123,123,8,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,0,0,121,324,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,325,318,326,327,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,64,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,230,0,0,0,0,0],[0,0,0,227,0,228,121,0,9,0,10,0,0,230,0,0,0,0,0],[0,0,0,227,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,46,0,0],[0,0,0,0,0,329,329,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,330,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,237,237,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,332,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,333,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,337,0,0,0,137,338,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,244,339,0,0,0,0],[0,0,0,240,241,242,336,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,240,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,340,151,0,0,137,338,0,58,0,59,0,0,0,139,0,340,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,136,0,0,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,141,141,57,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,341,0,342,343,0,58,0,59,0,0,344,0,0,0,0,0],[0,136,0,247,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,0,0,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,345,345,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,346,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,256,256,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,348,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,349,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,263,339,0,0,0,0],[0,0,0,260,241,261,336,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,260,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,137,0,248,248,57,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,246,354,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,126,126,8,23,0,0,0,0,0,0,0,0,0,0],[0,355,90,0,0,121,125,0,9,0,10,0,0,0,42,0,355,0,0],[0,0,0,0,0,356,356,269,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,357,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,270,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,363,0,0,0,0,0,0,0,0],[0,0,0,364,116,365,366,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,40,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,0,281,0,0,0,0],[0,0,0,369,370,371,372,22,23,0,24,0,0,373,374,0,0,27,0],[0,279,0,375,0,177,177,22,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,0,0,175,376,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,377,370,378,379,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,90,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,286,0,0,0,0,0],[0,0,0,283,0,284,175,0,23,0,24,0,0,286,0,0,0,0,0],[0,0,0,283,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,82,0,0],[0,0,0,0,0,381,381,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,382,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,293,293,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,384,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,385,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,76,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,0,301,0,0,0,0],[0,0,0,387,388,389,390,32,33,0,34,0,0,391,392,0,0,37,0],[0,299,0,393,0,203,203,32,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,0,0,201,394,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,395,388,396,397,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,111,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,306,0,0,0,0,0],[0,0,0,303,0,304,201,0,33,0,34,0,0,306,0,0,0,0,0],[0,0,0,303,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,0,0],[0,0,0,0,0,399,399,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,400,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,313,313,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,402,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,403,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,97,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,407,0,0,0,40,408,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,321,409,0,0,0,0],[0,0,0,317,318,319,406,8,9,0,10,0,0,321,322,0,0,16,0],[0,0,0,317,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,410,64,0,0,40,408,0,9,0,10,0,0,0,42,0,410,0,0],[0,223,0,0,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,323,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,328,409,0,0,0,0],[0,0,0,325,318,326,406,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,325,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,0,0,0,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,130,0,0],[0,0,0,0,0,411,411,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,412,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,413,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,0,339,0,0,0,0],[0,0,0,414,415,416,417,57,58,0,59,0,0,418,419,0,0,62,0],[0,337,0,420,0,248,248,57,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,0,0,246,421,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,422,415,423,424,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,151,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,344,0,0,0,0,0],[0,0,0,341,0,342,246,0,58,0,59,0,0,344,0,0,0,0,0],[0,0,0,341,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,0],[0,0,0,0,0,426,426,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,427,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,351,351,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,429,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,430,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,137,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,432,116,433,434,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,0,0,180,180,269,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,359,359,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,437,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,438,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,443,274,0,0,0,0,0,0,0,0,0,0,0,0,0,443,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,367,225,0,0,0,0],[0,0,0,364,116,365,445,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,364,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,448,0,0,0,76,449,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,373,450,0,0,0,0],[0,0,0,369,370,371,447,22,23,0,24,0,0,373,374,0,0,27,0],[0,0,0,369,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,451,90,0,0,76,449,0,23,0,24,0,0,0,78,0,451,0,0],[0,279,0,0,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,375,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,380,450,0,0,0,0],[0,0,0,377,370,378,447,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,377,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,0,0,0,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,184,0,0],[0,0,0,0,0,452,452,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,453,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,454,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,457,0,0,0,97,458,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,391,459,0,0,0,0],[0,0,0,387,388,389,456,32,33,0,34,0,0,391,392,0,0,37,0],[0,0,0,387,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,460,111,0,0,97,458,0,33,0,34,0,0,0,99,0,460,0,0],[0,299,0,0,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,393,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,398,459,0,0,0,0],[0,0,0,395,388,396,456,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,395,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,0,0,0,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,210,0,0],[0,0,0,0,0,461,461,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,462,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,463,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,0,409,0,0,0,0],[0,0,0,464,465,466,467,8,9,0,10,0,0,468,469,0,0,16,0],[0,407,0,470,0,123,123,8,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,0,0,121,471,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,472,465,473,474,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,0,0,0,0,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,236,0,0],[0,0,0,0,0,0,476,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,479,0,0,0,137,480,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,418,481,0,0,0,0],[0,0,0,414,415,416,478,57,58,0,59,0,0,418,419,0,0,62,0],[0,0,0,414,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,482,151,0,0,137,480,0,58,0,59,0,0,0,139,0,482,0,0],[0,337,0,0,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,420,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,425,481,0,0,0,0],[0,0,0,422,415,423,478,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,422,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,0,0,0,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,0,0],[0,0,0,0,0,483,483,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,484,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,485,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,435,225,0,0,0,0],[0,0,0,432,116,433,445,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,432,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,486,486,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,487,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,440,440,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,489,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,490,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,495,0,496,497,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,0,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,0,225,0,0,0,0],[0,0,0,0,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,0,450,0,0,0,0],[0,0,0,499,500,501,502,22,23,0,24,0,0,503,504,0,0,27,0],[0,448,0,505,0,177,177,22,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,0,0,175,506,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,507,500,508,509,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,0,0,0,0,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,292,0,0],[0,0,0,0,0,0,511,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,0,459,0,0,0,0],[0,0,0,512,513,514,515,32,33,0,34,0,0,516,517,0,0,37,0],[0,457,0,518,0,203,203,32,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,0,0,201,519,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,520,513,521,522,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,0,0,0,0,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,312,0,0],[0,0,0,0,0,0,524,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,527,0,0,0,40,528,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,468,529,0,0,0,0],[0,0,0,464,465,466,526,8,9,0,10,0,0,468,469,0,0,16,0],[0,0,0,464,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,530,64,0,0,40,528,0,9,0,10,0,0,0,42,0,530,0,0],[0,407,0,0,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,470,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,475,529,0,0,0,0],[0,0,0,472,465,473,526,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,472,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,40,0,0],[0,0,0,0,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,0,481,0,0,0,0],[0,0,0,531,532,533,534,57,58,0,59,0,0,535,536,0,0,62,0],[0,479,0,537,0,248,248,57,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,0,0,246,538,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,539,532,540,541,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,0,0,0,0,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,350,0,0],[0,0,0,0,0,0,543,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,358,0,0],[0,0,0,0,0,544,544,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,545,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,492,492,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,547,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,548,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,274,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,498,0,0,0,0,0],[0,0,0,495,0,496,368,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,495,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,553,0,0,0,76,554,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,503,555,0,0,0,0],[0,0,0,499,500,501,552,22,23,0,24,0,0,503,504,0,0,27,0],[0,0,0,499,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,556,90,0,0,76,554,0,23,0,24,0,0,0,78,0,556,0,0],[0,448,0,0,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,505,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,510,555,0,0,0,0],[0,0,0,507,500,508,552,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,507,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,559,0,0,0,97,560,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,516,561,0,0,0,0],[0,0,0,512,513,514,558,32,33,0,34,0,0,516,517,0,0,37,0],[0,0,0,512,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,562,111,0,0,97,560,0,33,0,34,0,0,0,99,0,562,0,0],[0,457,0,0,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,518,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,523,561,0,0,0,0],[0,0,0,520,513,521,558,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,520,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0],[0,0,0,0,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,0,529,0,0,0,0],[0,0,0,563,66,564,565,8,9,0,10,0,0,566,68,0,0,16,0],[0,527,0,567,0,123,123,8,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,0,0,121,568,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,569,66,570,571,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,575,0,0,0,137,576,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,535,577,0,0,0,0],[0,0,0,531,532,533,574,57,58,0,59,0,0,535,536,0,0,62,0],[0,0,0,531,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,578,151,0,0,137,576,0,58,0,59,0,0,0,139,0,578,0,0],[0,479,0,0,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,537,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,542,577,0,0,0,0],[0,0,0,539,532,540,574,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,539,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,137,0,0],[0,0,0,0,0,0,0,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,439,0,0],[0,0,0,0,0,579,579,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,580,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,581,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,0,555,0,0,0,0],[0,0,0,582,91,583,584,22,23,0,24,0,0,585,93,0,0,27,0],[0,553,0,586,0,177,177,22,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,0,0,175,587,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,588,91,589,590,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,0,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,0,561,0,0,0,0],[0,0,0,592,112,593,594,32,33,0,34,0,0,595,114,0,0,37,0],[0,559,0,596,0,203,203,32,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,0,0,201,597,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,598,112,599,600,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,566,165,0,0,0,0],[0,0,0,563,66,564,67,8,9,0,10,0,0,566,68,0,0,16,0],[0,0,0,563,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,527,0,0,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,567,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,572,165,0,0,0,0],[0,0,0,569,66,570,67,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,569,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,0,577,0,0,0,0],[0,0,0,603,152,604,605,57,58,0,59,0,0,606,154,0,0,62,0],[0,575,0,607,0,248,248,57,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,0,0,246,608,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,609,152,610,611,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,0,0,0,0,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,491,0,0],[0,0,0,0,0,0,613,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,585,194,0,0,0,0],[0,0,0,582,91,583,92,22,23,0,24,0,0,585,93,0,0,27,0],[0,0,0,582,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,553,0,0,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,586,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,591,194,0,0,0,0],[0,0,0,588,91,589,92,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,588,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,595,220,0,0,0,0],[0,0,0,592,112,593,113,32,33,0,34,0,0,595,114,0,0,37,0],[0,0,0,592,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,559,0,0,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,596,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,601,220,0,0,0,0],[0,0,0,598,112,599,113,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,598,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,606,265,0,0,0,0],[0,0,0,603,152,604,153,57,58,0,59,0,0,606,154,0,0,62,0],[0,0,0,603,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,575,0,0,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,607,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,612,265,0,0,0,0],[0,0,0,609,152,610,153,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,609,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,549,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0]],accepting:[!1,!0,!0,!0,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!1,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!1,!1,!0,!1,!0,!0,!1,!0,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!1,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!1,!0,!0,!1,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0],tags:[[],["broken_cluster"],["consonant_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],[],["broken_cluster"],["symbol_cluster"],[],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["symbol_cluster"],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],[],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],[],[],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],["consonant_syllable"],["vowel_syllable"],["standalone_cluster"]]}),En=function(eA){function G(){return eA.apply(this,arguments)||this}return h(G,eA),G.planFeatures=function(M){M.addStage(Q0),M.addStage(["locl","ccmp"]),M.addStage(M0),M.addStage("nukt"),M.addStage("akhn"),M.addStage("rphf",!1),M.addStage("rkrf"),M.addStage("pref",!1),M.addStage("blwf",!1),M.addStage("abvf",!1),M.addStage("half",!1),M.addStage("pstf",!1),M.addStage("vatu"),M.addStage("cjct"),M.addStage("cfar",!1),M.addStage(p0),M.addStage({local:["init"],global:["pres","abvs","blws","psts","haln","dist","abvm","blwm","calt","clig"]}),M.unicodeScript=function rs(eA){return Hi[eA]}(M.script),M.indicConfig=Ua[M.unicodeScript]||Ua.Default,M.isOldSpec=M.indicConfig.hasOldSpec&&"2"!==M.script[M.script.length-1]},G.assignFeatures=function(M,x){for(var P=function(sA){var iA=x[sA].codePoints[0],NA=E0[iA]||w0[iA];if(NA){var jA=NA.map(function(lt){var qA=M.font.glyphForCodePoint(lt);return new sr(M.font,qA.id,[lt],x[sA].features)});x.splice.apply(x,[sA,1].concat(jA))}},tA=x.length-1;tA>=0;tA--)P(tA)},G}(hr);function Fi(eA){return Pa.get(eA.codePoints[0])>>8}function Ra(eA){return 1<<(255&Pa.get(eA.codePoints[0]))}T(En,"zeroMarkWidths","NONE");var Yi=function(G,V,M,x){this.category=G,this.position=V,this.syllableType=M,this.syllable=x};function Q0(eA,G){for(var P,V=0,M=0,x=g(C0.match(G.map(Fi)));!(P=x()).done;){var tA=P.value,oA=tA[0],sA=tA[1],iA=tA[2];if(oA>M){++V;for(var NA=M;NAGt);break;case"First":for(var Ce=(yt=iA)+1;CeWe&&!(vr(G[Oe])||ln&&G[Oe].shaperInfo.category===pe_H);Oe--);if(G[Oe].shaperInfo.category!==pe_H&&Oe>We){var he=G[We];G.splice.apply(G,[We,0].concat(G.splice(We+1,Oe-We))),G[Oe]=he}break}for(var qe=ee.Start,Ue=iA;UeiA;$e--)if(G[$e-1].shaperInfo.position!==ee.Pre_M){Fe.position=G[$e-1].shaperInfo.position;break}}else Fe.position!==ee.SMVD&&(qe=Fe.position)}for(var Rn=yt,gn=yt+1;gniA&&!vr(G[zn]))}}}}function p0(eA,G,V){for(var M=V.indicConfig,x=eA._layoutEngine.engine.GSUBProcessor.features,P=0,tA=Ti(G,0);P=ee.Base_C){if(oA&&sA+1ee.Base_C&&sA--;break}if(sA===tA&&PP&&!(G[jA].shaperInfo.category&(pe_M|Xr));)jA--;lr(G[jA])&&G[jA].shaperInfo.position!==ee.Pre_M?jA+1P;lt--)if(G[lt-1].shaperInfo.position===ee.Pre_M){var qA=lt-1;qAP&&G[pt].shaperInfo.position===ee.SMVD;)pt--;if(lr(G[pt]))for(var $t=sA+1;$tP&&!(G[Be-1].shaperInfo.category&(pe_M|Xr));)Be--;if(Be>P&&G[Be-1].shaperInfo.category===pe_M)for(var we=ie,Ce=sA+1;CeP&&lr(G[Be-1])&&Be=eA.length)return G;for(var V=eA[G].shaperInfo.syllable;++G=0;tA--)P(tA)},G}(hr);function La(eA){return m0.get(eA.codePoints[0])}T(de,"zeroMarkWidths","BEFORE_GPOS");var D0=function(G,V,M){this.category=G,this.syllableType=V,this.syllable=M};function y0(eA,G){for(var x,V=0,M=g(v0.match(G.map(La)));!(x=M()).done;){var P=x.value,tA=P[0],oA=P[1],sA=P[2];++V;for(var iA=tA;iA<=oA;iA++)G[iA].shaperInfo=new D0(I0[La(G[iA])],sA[0],V);for(var NA="R"===G[tA].shaperInfo.category?1:Math.min(3,oA-tA),jA=tA;jA1)for(P=M+1;P=eA.length)return G;for(var V=eA[G].shaperInfo.syllable;++G=0;Gn--)this.glyphs.splice(Be[Gn],1);return this.glyphs[this.glyphIterator.index]=le,!0}}return!1;case 5:return this.applyContext(P);case 6:return this.applyChainingContext(P);case 7:return this.applyLookup(P.lookupType,P.extension);default:throw new Error("GSUB lookupType ".concat(x," is not supported"))}},G}(di),U0=function(eA){function G(){return eA.apply(this,arguments)||this}h(G,eA);var V=G.prototype;return V.applyPositionValue=function(x,P){var tA=this.positions[this.glyphIterator.peekIndex(x)];null!=P.xAdvance&&(tA.xAdvance+=P.xAdvance),null!=P.yAdvance&&(tA.yAdvance+=P.yAdvance),null!=P.xPlacement&&(tA.xOffset+=P.xPlacement),null!=P.yPlacement&&(tA.yOffset+=P.yPlacement);var oA=this.font._variationProcessor,sA=this.font.GDEF&&this.font.GDEF.itemVariationStore;oA&&sA&&(P.xPlaDevice&&(tA.xOffset+=oA.getDelta(sA,P.xPlaDevice.a,P.xPlaDevice.b)),P.yPlaDevice&&(tA.yOffset+=oA.getDelta(sA,P.yPlaDevice.a,P.yPlaDevice.b)),P.xAdvDevice&&(tA.xAdvance+=oA.getDelta(sA,P.xAdvDevice.a,P.xAdvDevice.b)),P.yAdvDevice&&(tA.yAdvance+=oA.getDelta(sA,P.yAdvDevice.a,P.yAdvDevice.b)))},V.applyLookup=function(x,P){switch(x){case 1:var tA=this.coverageIndex(P.coverage);if(-1===tA)return!1;switch(P.version){case 1:this.applyPositionValue(0,P.value);break;case 2:this.applyPositionValue(0,P.values.get(tA))}return!0;case 2:var oA=this.glyphIterator.peek();if(!oA)return!1;var sA=this.coverageIndex(P.coverage);if(-1===sA)return!1;switch(P.version){case 1:for(var jA,NA=g(P.pairSets.get(sA));!(jA=NA()).done;){var lt=jA.value;if(lt.secondGlyph===oA.id)return this.applyPositionValue(0,lt.value1),this.applyPositionValue(1,lt.value2),!0}return!1;case 2:var qA=this.getClassID(this.glyphIterator.cur.id,P.classDef1),Bt=this.getClassID(oA.id,P.classDef2);if(-1===qA||-1===Bt)return!1;var pt=P.classRecords.get(qA).get(Bt);return this.applyPositionValue(0,pt.value1),this.applyPositionValue(1,pt.value2),!0}case 3:var yt=this.glyphIterator.peekIndex(),Gt=this.glyphs[yt];if(!Gt)return!1;var $t=P.entryExitRecords[this.coverageIndex(P.coverage)];if(!$t||!$t.exitAnchor)return!1;var qt=P.entryExitRecords[this.coverageIndex(P.coverage,Gt.id)];if(!qt||!qt.entryAnchor)return!1;var ie=this.getAnchor(qt.entryAnchor),Be=this.getAnchor($t.exitAnchor),we=this.positions[this.glyphIterator.index],Ce=this.positions[yt];switch(this.direction){case"ltr":we.xAdvance=Be.x+we.xOffset;var He=ie.x+Ce.xOffset;Ce.xAdvance-=He,Ce.xOffset-=He;break;case"rtl":we.xAdvance-=He=Be.x+we.xOffset,we.xOffset-=He,Ce.xAdvance=ie.x+Ce.xOffset}return this.glyphIterator.flags.rightToLeft?(this.glyphIterator.cur.cursiveAttachment=yt,we.yOffset=ie.y-Be.y):(Gt.cursiveAttachment=this.glyphIterator.index,we.yOffset=Be.y-ie.y),!0;case 4:var sn=this.coverageIndex(P.markCoverage);if(-1===sn)return!1;for(var Je=this.glyphIterator.index;--Je>=0&&(this.glyphs[Je].isMark||this.glyphs[Je].ligatureComponent>0););if(Je<0)return!1;var le=this.coverageIndex(P.baseCoverage,this.glyphs[Je].id);if(-1===le)return!1;var ln=P.markArray[sn];return this.applyAnchor(ln,P.baseArray[le][ln.class],Je),!0;case 5:var Oe=this.coverageIndex(P.markCoverage);if(-1===Oe)return!1;for(var he=this.glyphIterator.index;--he>=0&&this.glyphs[he].isMark;);if(he<0)return!1;var qe=this.coverageIndex(P.ligatureCoverage,this.glyphs[he].id);if(-1===qe)return!1;var Ue=P.ligatureArray[qe],Fe=this.glyphIterator.cur,$e=this.glyphs[he],Rn=$e.ligatureID&&$e.ligatureID===Fe.ligatureID&&Fe.ligatureComponent>0?Math.min(Fe.ligatureComponent,$e.codePoints.length)-1:$e.codePoints.length-1,gn=P.markArray[Oe];return this.applyAnchor(gn,Ue[Rn][gn.class],he),!0;case 6:var Gn=this.coverageIndex(P.mark1Coverage);if(-1===Gn)return!1;var Jn=this.glyphIterator.peekIndex(-1),Dn=this.glyphs[Jn];if(!Dn||!Dn.isMark)return!1;var Mn=this.glyphIterator.cur,On=!1;if(Mn.ligatureID===Dn.ligatureID?Mn.ligatureID?Mn.ligatureComponent===Dn.ligatureComponent&&(On=!0):On=!0:(Mn.ligatureID&&!Mn.ligatureComponent||Dn.ligatureID&&!Dn.ligatureComponent)&&(On=!0),!On)return!1;var kn=this.coverageIndex(P.mark2Coverage,Dn.id);if(-1===kn)return!1;var me=P.mark1Array[Gn];return this.applyAnchor(me,P.mark2Array[kn][me.class],Jn),!0;case 7:return this.applyContext(P);case 8:return this.applyChainingContext(P);case 9:return this.applyLookup(P.lookupType,P.extension);default:throw new Error("Unsupported GPOS table: ".concat(x))}},V.applyAnchor=function(x,P,tA){var oA=this.getAnchor(P),sA=this.getAnchor(x.markAnchor),NA=this.positions[this.glyphIterator.index];NA.xOffset=oA.x-sA.x,NA.yOffset=oA.y-sA.y,this.glyphIterator.cur.markAttachment=tA},V.getAnchor=function(x){var P=x.xCoordinate,tA=x.yCoordinate,oA=this.font._variationProcessor,sA=this.font.GDEF&&this.font.GDEF.itemVariationStore;return oA&&sA&&(x.xDeviceTable&&(P+=oA.getDelta(sA,x.xDeviceTable.a,x.xDeviceTable.b)),x.yDeviceTable&&(tA+=oA.getDelta(sA,x.yDeviceTable.a,x.yDeviceTable.b))),{x:P,y:tA}},V.applyFeatures=function(x,P,tA){eA.prototype.applyFeatures.call(this,x,P,tA);for(var oA=0;oA>16;if(0===x)switch(M>>8){case 0:return 173===M;case 3:return 847===M;case 6:return 1564===M;case 23:return 6068<=M&&M<=6069;case 24:return 6155<=M&&M<=6158;case 32:return 8203<=M&&M<=8207||8234<=M&&M<=8238||8288<=M&&M<=8303;case 254:return 65024<=M&&M<=65039||65279===M;case 255:return 65520<=M&&M<=65528;default:return!1}else switch(x){case 1:return 113824<=M&&M<=113827||119155<=M&&M<=119162;case 14:return 917504<=M&&M<=921599;default:return!1}},G.getAvailableFeatures=function(M,x){var P=[];return this.engine&&P.push.apply(P,this.engine.getAvailableFeatures(M,x)),this.font.kern&&-1===P.indexOf("kern")&&P.push("kern"),P},G.stringsForGlyph=function(M){for(var oA,x=new Set,tA=g(this.font._cmapProcessor.codePointsForGlyph(M));!(oA=tA()).done;)x.add(String.fromCodePoint(oA.value));if(this.engine&&this.engine.stringsForGlyph)for(var NA,iA=g(this.engine.stringsForGlyph(M));!(NA=iA()).done;)x.add(NA.value);return Array.from(x)},eA}(),z0={moveTo:"M",lineTo:"L",quadraticCurveTo:"Q",bezierCurveTo:"C",closePath:"Z"},Ni=function(){function eA(){this.commands=[],this._bbox=null,this._cbox=null}var G=eA.prototype;return G.toFunction=function(){var M=this;return function(x){M.commands.forEach(function(P){return x[P.command].apply(x,P.args)})}},G.toSVG=function(){return this.commands.map(function(x){var P=x.args.map(function(tA){return Math.round(100*tA)/100});return"".concat(z0[x.command]).concat(P.join(" "))}).join("")},G.mapPoints=function(M){for(var tA,x=new eA,P=g(this.commands);!(tA=P()).done;){for(var oA=tA.value,sA=[],iA=0;iA0&&this.codePoints.every(w.isMark),this.isLigature=this.codePoints.length>1}var G=eA.prototype;return G._getPath=function(){return new Ni},G._getCBox=function(){return this.path.cbox},G._getBBox=function(){return this.path.bbox},G._getTableMetrics=function(M){if(this.id0)sA=Math.abs(NA.typoAscender-NA.typoDescender),iA=NA.typoAscender-M.maxY;else{var jA=this._font.hhea;sA=Math.abs(jA.ascent-jA.descent),iA=jA.ascent-M.maxY}return this._font._variationProcessor&&this._font.HVAR&&(P+=this._font._variationProcessor.getAdvanceAdjustment(this.id,this._font.HVAR)),this._metrics={advanceWidth:P,advanceHeight:sA,leftBearing:tA,topBearing:iA}},G.getScaledPath=function(M){return this.path.scale(1/this._font.unitsPerEm*M)},G._getName=function(){var M=this._font.post;if(!M)return null;switch(M.version){case 1:return qr[this.id];case 2:var x=M.glyphNameIndex[this.id];return x0?this._decodeSimple(sA,tA):sA.numberOfContours<0&&this._decodeComposite(sA,tA,oA),sA},V._decodeSimple=function(x,P){x.points=[];var tA=new e.Array(e.uint16,x.numberOfContours).decode(P);x.instructions=new e.Array(e.uint8,e.uint16).decode(P);for(var oA=[],sA=tA[tA.length-1]+1;oA.length=0,0,0);x.points.push(qA)}var Bt=0;for(lt=0;lt>1,iA.length=0}function ln(Oe,he){Gt&&sA.closePath(),sA.moveTo(Oe,he),Gt=!0}return function Oe(){for(;P.pos1&&Je(),Bt+=iA.shift(),ln(qA,Bt);break;case 5:for(;iA.length>=2;)qA+=iA.shift(),Bt+=iA.shift(),sA.lineTo(qA,Bt);break;case 6:case 7:for(var qe=6===he;iA.length>=1;)qe?qA+=iA.shift():Bt+=iA.shift(),sA.lineTo(qA,Bt),qe=!qe;break;case 8:for(;iA.length>0;){var me=qA+iA.shift(),Pe=Bt+iA.shift(),Ye=me+iA.shift(),Ze=Pe+iA.shift();qA=Ye+iA.shift(),Bt=Ze+iA.shift(),sA.bezierCurveTo(me,Pe,Ye,Ze,qA,Bt)}break;case 10:var Ue=iA.pop()+we,Fe=Be[Ue];if(Fe){yt[Ue]=!0;var $e=P.pos,Rn=oA;P.pos=Fe.offset,oA=Fe.offset+Fe.length,Oe(),P.pos=$e,oA=Rn}break;case 11:if(x.version>=2)break;return;case 14:if(x.version>=2)break;iA.length>0&&Je(),Gt&&(sA.closePath(),Gt=!1);break;case 15:if(x.version<2)throw new Error("vsindex operator not supported in CFF v1");He=iA.pop();break;case 16:if(x.version<2)throw new Error("blend operator not supported in CFF v1");if(!sn)throw new Error("blend operator in non-variation font");for(var gn=sn.getBlendVector(Ce,He),mn=iA.pop(),Gn=mn*gn.length,Jn=iA.length-Gn,Dn=Jn-mn,Mn=0;Mn>3;break;case 21:iA.length>2&&Je(),qA+=iA.shift(),Bt+=iA.shift(),ln(qA,Bt);break;case 22:iA.length>1&&Je(),ln(qA+=iA.shift(),Bt);break;case 24:for(;iA.length>=8;)me=qA+iA.shift(),Pe=Bt+iA.shift(),Ye=me+iA.shift(),Ze=Pe+iA.shift(),qA=Ye+iA.shift(),Bt=Ze+iA.shift(),sA.bezierCurveTo(me,Pe,Ye,Ze,qA,Bt);qA+=iA.shift(),Bt+=iA.shift(),sA.lineTo(qA,Bt);break;case 25:for(;iA.length>=8;)qA+=iA.shift(),Bt+=iA.shift(),sA.lineTo(qA,Bt);me=qA+iA.shift(),Pe=Bt+iA.shift(),Ye=me+iA.shift(),Ze=Pe+iA.shift(),qA=Ye+iA.shift(),Bt=Ze+iA.shift(),sA.bezierCurveTo(me,Pe,Ye,Ze,qA,Bt);break;case 26:for(iA.length%2&&(qA+=iA.shift());iA.length>=4;)me=qA,Pe=Bt+iA.shift(),Ye=me+iA.shift(),Ze=Pe+iA.shift(),qA=Ye,Bt=Ze+iA.shift(),sA.bezierCurveTo(me,Pe,Ye,Ze,qA,Bt);break;case 27:for(iA.length%2&&(Bt+=iA.shift());iA.length>=4;)me=qA+iA.shift(),Pe=Bt,Ye=me+iA.shift(),Ze=Pe+iA.shift(),qA=Ye+iA.shift(),sA.bezierCurveTo(me,Pe,Ye,Ze,qA,Bt=Ze);break;case 28:iA.push(P.readInt16BE());break;case 29:Ue=iA.pop()+qt,(Fe=$t[Ue])&&(pt[Ue]=!0,$e=P.pos,Rn=oA,P.pos=Fe.offset,oA=Fe.offset+Fe.length,Oe(),P.pos=$e,oA=Rn);break;case 30:case 31:for(qe=31===he;iA.length>=4;)qe?(me=qA+iA.shift(),Pe=Bt,Ye=me+iA.shift(),Ze=Pe+iA.shift(),Bt=Ze+iA.shift(),qA=Ye+(1===iA.length?iA.shift():0)):(me=qA,Pe=Bt+iA.shift(),Ye=me+iA.shift(),Ze=Pe+iA.shift(),qA=Ye+iA.shift(),Bt=Ze+(1===iA.length?iA.shift():0)),sA.bezierCurveTo(me,Pe,Ye,Ze,qA,Bt),qe=!qe;break;case 12:switch(he=P.readUInt8()){case 3:var ke=iA.pop(),Bn=iA.pop();iA.push(ke&&Bn?1:0);break;case 4:ke=iA.pop(),Bn=iA.pop(),iA.push(ke||Bn?1:0);break;case 5:ke=iA.pop(),iA.push(ke?0:1);break;case 9:ke=iA.pop(),iA.push(Math.abs(ke));break;case 10:ke=iA.pop(),Bn=iA.pop(),iA.push(ke+Bn);break;case 11:ke=iA.pop(),Bn=iA.pop(),iA.push(ke-Bn);break;case 12:ke=iA.pop(),Bn=iA.pop(),iA.push(ke/Bn);break;case 14:ke=iA.pop(),iA.push(-ke);break;case 15:ke=iA.pop(),Bn=iA.pop(),iA.push(ke===Bn?1:0);break;case 18:iA.pop();break;case 20:var $i=iA.pop(),zn=iA.pop();NA[zn]=$i;break;case 21:zn=iA.pop(),iA.push(NA[zn]||0);break;case 22:var Aa=iA.pop(),ta=iA.pop(),Ll=iA.pop(),bl=iA.pop();iA.push(Ll<=bl?Aa:ta);break;case 23:iA.push(Math.random());break;case 24:ke=iA.pop(),Bn=iA.pop(),iA.push(ke*Bn);break;case 26:ke=iA.pop(),iA.push(Math.sqrt(ke));break;case 27:ke=iA.pop(),iA.push(ke,ke);break;case 28:ke=iA.pop(),Bn=iA.pop(),iA.push(Bn,ke);break;case 29:(zn=iA.pop())<0?zn=0:zn>iA.length-1&&(zn=iA.length-1),iA.push(iA[zn]);break;case 30:var Ri=iA.pop(),_r=iA.pop();if(_r>=0)for(;_r>0;){for(var ea=iA[Ri-1],zi=Ri-2;zi>=0;zi--)iA[zi+1]=iA[zi];iA[0]=ea,_r--}else for(;_r<0;){ea=iA[0];for(var Li=0;Li<=Ri;Li++)iA[Li]=iA[Li+1];iA[Ri-1]=ea,_r++}break;case 34:me=qA+iA.shift(),Pe=Bt,Ye=me+iA.shift(),Ze=Pe+iA.shift();var $r=Ye+iA.shift(),Ai=Ze,ti=$r+iA.shift(),ei=Ai,ni=ti+iA.shift(),ri=ei,ii=ni+iA.shift(),ai=ri;qA=ii,Bt=ai,sA.bezierCurveTo(me,Pe,Ye,Ze,$r,Ai),sA.bezierCurveTo(ti,ei,ni,ri,ii,ai);break;case 35:for(var Cr=[],na=0;na<=5;na++)qA+=iA.shift(),Bt+=iA.shift(),Cr.push(qA,Bt);sA.bezierCurveTo.apply(sA,Cr.slice(0,6)),sA.bezierCurveTo.apply(sA,Cr.slice(6)),iA.shift();break;case 36:me=qA+iA.shift(),Pe=Bt+iA.shift(),Ye=me+iA.shift(),ei=Ai=Ze=Pe+iA.shift(),ni=(ti=($r=Ye+iA.shift())+iA.shift())+iA.shift(),ri=ei+iA.shift(),ii=ni+iA.shift(),qA=ii,Bt=ai=ri,sA.bezierCurveTo(me,Pe,Ye,Ze,$r,Ai),sA.bezierCurveTo(ti,ei,ni,ri,ii,ai);break;case 37:var no=qA,ro=Bt;Cr=[];for(var io=0;io<=4;io++)qA+=iA.shift(),Bt+=iA.shift(),Cr.push(qA,Bt);Math.abs(qA-no)>Math.abs(Bt-ro)?(qA+=iA.shift(),Bt=ro):(qA=no,Bt+=iA.shift()),Cr.push(qA,Bt),sA.bezierCurveTo.apply(sA,Cr.slice(0,6)),sA.bezierCurveTo.apply(sA,Cr.slice(6));break;default:throw new Error("Unknown op: 12 ".concat(he))}break;default:throw new Error("Unknown op: ".concat(he))}else if(he<247)iA.push(he-139);else if(he<251){var ra=P.readUInt8();iA.push(256*(he-247)+ra+108)}else he<255?(ra=P.readUInt8(),iA.push(256*-(he-251)-ra-108)):iA.push(P.readInt32BE()/65536)}}(),Gt&&sA.closePath(),sA},G}(Ui),$0=new e.Struct({originX:e.uint16,originY:e.uint16,type:new e.String(4),data:new e.Buffer(function(eA){return eA.parent.buflen-eA._currentOffset})}),Al=function(eA){function G(){return eA.apply(this,arguments)||this}h(G,eA);var V=G.prototype;return V.getImageForSize=function(x){for(var P=0;P=x)break}var oA=tA.imageOffsets,sA=oA[this.id],iA=oA[this.id+1];return sA===iA?null:(this._font.stream.pos=sA,$0.decode(this._font.stream,{buflen:iA-sA}))},V.render=function(x,P){var tA=this.getImageForSize(P);null!=tA&&x.image(tA.data,{height:P,x:tA.originX,y:P/this._font.unitsPerEm*(this.bbox.minY-tA.originY)}),this._font.sbix.flags.renderOutlines&&eA.prototype.render.call(this,x,P)},G}(Pi),ja=function(G,V){this.glyph=G,this.color=V},tl=function(eA){function G(){return eA.apply(this,arguments)||this}h(G,eA);var V=G.prototype;return V._getBBox=function(){for(var x=new Nr,P=0;P>1;if(this.id<(iA=P.baseGlyphRecord[sA]).gid)oA=sA-1;else{if(!(this.id>iA.gid)){var NA=iA;break}tA=sA+1}}if(null==NA){var jA=this._font._getBaseGlyph(this.id);return[new ja(jA,lt={red:0,green:0,blue:0,alpha:255})]}for(var qA=[],Bt=NA.firstLayerIndex;Bt=1&&x[P]=P.glyphCount)){var tA=P.offsets[M];if(tA!==P.offsets[M+1]){var oA=this.font.stream;if(oA.pos=tA,!(oA.pos>=oA.length)){var sA=oA.readUInt16BE(),iA=tA+oA.readUInt16BE();if(32768&sA){var NA=oA.pos;oA.pos=iA;var jA=this.decodePoints();iA=oA.pos,oA.pos=NA}var lt=x.map(function(gn){return gn.copy()});sA&=4095;for(var qA=0;qA=P.globalCoordCount)throw new Error("Invalid gvar table");yt=P.globalCoords[4095&pt]}if(16384&pt){for(var $t=[],qt=0;qtMath.max(0,x[NA]))return 0;iA=(iA*oA[NA]+Number.EPSILON)/(x[NA]+Number.EPSILON)}else{if(oA[NA]tA[NA])return 0;iA=oA[NA]sA)){var NA=tA,jA=tA;for(tA++;tA<=sA;)P[tA]&&(this.deltaInterpolate(jA+1,tA-1,jA,tA,x,M),jA=tA),tA++;jA===NA?this.deltaShift(oA,sA,jA,x,M):(this.deltaInterpolate(jA+1,sA,jA,NA,x,M),NA>0&&this.deltaInterpolate(oA,NA-1,jA,NA,x,M)),tA=sA+1}}},G.deltaInterpolate=function(M,x,P,tA,oA,sA){if(!(M>x))for(var iA=["x","y"],NA=0;NAoA[tA][jA]){var lt=P;P=tA,tA=lt}var qA=oA[P][jA],Bt=oA[tA][jA],pt=sA[P][jA],yt=sA[tA][jA];if(qA!==Bt||pt===yt)for(var Gt=qA===Bt?0:(yt-pt)/(Bt-qA),$t=M;$t<=x;$t++){var qt=oA[$t][jA];qt<=qA?qt+=pt-qA:qt>=Bt?qt+=yt-Bt:qt=pt+(qt-qA)*Gt,sA[$t][jA]=qt}}},G.deltaShift=function(M,x,P,tA,oA){var sA=oA[P].x-tA[P].x,iA=oA[P].y-tA[P].y;if(0!==sA||0!==iA)for(var NA=M;NA<=x;NA++)NA!==P&&(oA[NA].x+=sA,oA[NA].y+=iA)},G.getAdvanceAdjustment=function(M,x){var P,tA;if(x.advanceWidthMapping){var oA=M;oA>=x.advanceWidthMapping.mapCount&&(oA=x.advanceWidthMapping.mapCount-1);var iA=x.advanceWidthMapping.mapData[oA];P=iA.outerIndex,tA=iA.innerIndex}else P=0,tA=M;return this.getDelta(x.itemVariationStore,P,tA)},G.getDelta=function(M,x,P){if(x>=M.itemVariationData.length)return 0;var tA=M.itemVariationData[x];if(P>=tA.deltaSets.length)return 0;for(var oA=tA.deltaSets[P],sA=this.getBlendVector(M,x),iA=0,NA=0;NAqA.peakCoord||qA.peakCoord>qA.endCoord||qA.startCoord<0&&qA.endCoord>0&&0!==qA.peakCoord||0===qA.peakCoord?1:tA[lt]qA.endCoord?0:tA[lt]===qA.peakCoord?1:tA[lt]=0&&V<=255?1:2},eA.encode=function(V,M){M>=0&&M<=255?V.writeUInt8(M):V.writeInt16BE(M)},eA}(),_a=new e.Struct({numberOfContours:e.int16,xMin:e.int16,yMin:e.int16,xMax:e.int16,yMax:e.int16,endPtsOfContours:new e.Array(e.uint16,"numberOfContours"),instructions:new e.Array(e.uint8,e.uint16),flags:new e.Array(e.uint8,0),xPoints:new e.Array(qa,0),yPoints:new e.Array(qa,0)}),wl=function(){function eA(){}var G=eA.prototype;return G.encodeSimple=function(M,x){void 0===x&&(x=[]);for(var P=[],tA=[],oA=[],sA=[],iA=0,NA=0,jA=0,lt=0,qA=0,Bt=0;Bt0&&(sA.push(iA),iA=0),sA.push(qt),lt=qt),NA=Gt,jA=$t,qA++}"closePath"===pt.command&&P.push(qA-1)}M.commands.length>1&&"closePath"!==M.commands[M.commands.length-1].command&&P.push(qA-1);var Ce=M.bbox,He={numberOfContours:P.length,xMin:Ce.minX,yMin:Ce.minY,xMax:Ce.maxX,yMax:Ce.maxY,endPtsOfContours:P,instructions:x,flags:sA,xPoints:tA,yPoints:oA},sn=_a.size(He),Je=4-sn%4,le=new e.EncodeStream(sn+Je);return _a.encode(le,He),0!==Je&&le.fill(0,Je),le.buffer},G._encodePoint=function(M,x,P,tA,oA,sA){var iA=M-x;return M===x?tA|=sA:(-255<=iA&&iA<=255&&(tA|=oA,iA<0?iA=-iA:tA|=sA),P.push(iA)),tA},eA}(),Cl=function(eA){function G(M){var x;return(x=eA.call(this,M)||this).glyphEncoder=new wl,x}h(G,eA);var V=G.prototype;return V._addGlyph=function(x){var P=this.font.getGlyph(x),tA=P._decode(),oA=this.font.loca.offsets[x],sA=this.font.loca.offsets[x+1],iA=this.font._getTableStream("glyf");iA.pos+=oA;var NA=iA.readBuffer(sA-oA);if(tA&&tA.numberOfContours<0){NA=c.from(NA);for(var lt,jA=g(tA.components);!(lt=jA()).done;){var qA=lt.value;x=this.includeGlyph(qA.glyphID),NA.writeUInt16BE(x,qA.pos)}}else tA&&this.font._variationProcessor&&(NA=this.glyphEncoder.encodeSimple(P.path,tA.instructions));return this.glyf.push(NA),this.loca.offsets.push(this.offset),this.hmtx.metrics.push({advance:P.advanceWidth,bearing:P._getMetrics().leftBearing}),this.offset+=NA.length,this.glyf.length-1},V.encode=function(x){this.glyf=[],this.offset=0,this.loca={offsets:[],version:this.font.loca.version},this.hmtx={metrics:[],bearings:[]};for(var P=0;P255?2:1,ranges:[{first:1,nLeft:this.charstrings.length-2}]},tA=Object.assign({},this.cff.topDict);tA.Private=null,tA.charset=P,tA.Encoding=null,tA.CharStrings=this.charstrings;for(var oA=0,sA=["version","Notice","Copyright","FullName","FamilyName","Weight","PostScript","BaseFontName","FontName"];oA0&&Object.defineProperty(this,x,{get:this._getTable.bind(this,P)})}}eA.probe=function(M){var x=M.toString("ascii",0,4);return"true"===x||"OTTO"===x||x===String.fromCharCode(0,1,0,0)};var G=eA.prototype;return G.setDefaultLanguage=function(M){void 0===M&&(M=null),this.defaultLanguage=M},G._getTable=function(M){if(!(M.tag in this._tables))try{this._tables[M.tag]=this._decodeTable(M)}catch(x){D.logErrors&&(console.error("Error decoding table ".concat(M.tag)),console.error(x.stack))}return this._tables[M.tag]},G._getTableStream=function(M){var x=this.directory.tables[M];return x?(this.stream.pos=x.offset,this.stream):null},G._decodeDirectory=function(){return this.directory=ci.decode(this.stream,{_startOffset:0})},G._decodeTable=function(M){var x=this.stream.pos,P=this._getTableStream(M.tag),tA=se[M.tag].decode(P,this,M.length);return this.stream.pos=x,tA},G.getName=function(M,x){void 0===x&&(x=this.defaultLanguage||D.defaultLanguage);var P=this.name&&this.name.records[M];return P&&(P[x]||P[this.defaultLanguage]||P[D.defaultLanguage]||P.en||P[Object.keys(P)[0]])||null},G.hasGlyphForCodePoint=function(M){return!!this._cmapProcessor.lookup(M)},G.glyphForCodePoint=function(M){return this.getGlyph(this._cmapProcessor.lookup(M),[M])},G.glyphsForString=function(M){for(var x=[],P=M.length,tA=0,oA=-1,sA=-1;tA<=P;){var iA=0,NA=0;if(tA>>6&3},transformed:function(G){return"glyf"===G.tag||"loca"===G.tag?0===G.transformVersion:0!==G.transformVersion},transformLength:new e.Optional(Ao,function(eA){return eA.transformed})}),Xi=new e.Struct({tag:new e.String(4),flavor:e.uint32,length:e.uint32,numTables:e.uint16,reserved:new e.Reserved(e.uint16),totalSfntSize:e.uint32,totalCompressedSize:e.uint32,majorVersion:e.uint16,minorVersion:e.uint16,metaOffset:e.uint32,metaLength:e.uint32,metaOrigLength:e.uint32,privOffset:e.uint32,privLength:e.uint32,tables:new e.Array(ml,"numTables")});Xi.process=function(){for(var eA={},G=0;G0){for(var iA=[],NA=0,jA=0;jA>7);if((iA&=127)<10)oA=0,sA=er(iA,((14&iA)<<7)+G.readUInt8());else if(iA<20)oA=er(iA,((iA-10&14)<<7)+G.readUInt8()),sA=0;else if(iA<84)oA=er(iA,1+(48&(jA=iA-20))+((lt=G.readUInt8())>>4)),sA=er(iA>>1,1+((12&jA)<<2)+(15<));else if(iA<120){var jA;oA=er(iA,1+((jA=iA-84)/12<<8)+G.readUInt8()),sA=er(iA>>1,1+(jA%12>>2<<8)+G.readUInt8())}else if(iA<124){var lt=G.readUInt8(),qA=G.readUInt8();oA=er(iA,(lt<<4)+(qA>>4)),sA=er(iA>>1,((15&qA)<<8)+G.readUInt8())}else oA=er(iA,G.readUInt16BE()),sA=er(iA>>1,G.readUInt16BE());P.push(new gr(NA,!1,x+=oA,M+=sA))}return P}var Yl=new e.VersionedStruct(e.uint32,{65536:{numFonts:e.uint32,offsets:new e.Array(e.uint32,"numFonts")},131072:{numFonts:e.uint32,offsets:new e.Array(e.uint32,"numFonts"),dsigTag:e.uint32,dsigLength:e.uint32,dsigOffset:e.uint32}}),Tl=function(){function eA(V){if(this.stream=V,"ttcf"!==V.readString(4))throw new Error("Not a TrueType collection");this.header=Yl.decode(V)}return eA.probe=function(M){return"ttcf"===M.toString("ascii",0,4)},eA.prototype.getFont=function(M){for(var P,x=g(this.header.offsets);!(P=x()).done;){var tA=P.value,oA=new e.DecodeStream(this.stream.buffer);oA.pos=tA;var sA=new Dr(oA);if(sA.postscriptName===M)return sA}return null},l(eA,[{key:"fonts",get:function(){for(var P,M=[],x=g(this.header.offsets);!(P=x()).done;){var tA=P.value,oA=new e.DecodeStream(this.stream.buffer);oA.pos=tA,M.push(new Dr(oA))}return M}}]),eA}(),Sl=new e.String(e.uint8),Nl=(new e.Struct({len:e.uint32,buf:new e.Buffer("len")}),new e.Struct({id:e.uint16,nameOffset:e.int16,attr:e.uint8,dataOffset:e.uint24,handle:e.uint32})),Ul=new e.Struct({name:new e.String(4),maxTypeIndex:e.uint16,refList:new e.Pointer(e.uint16,new e.Array(Nl,function(eA){return eA.maxTypeIndex+1}),{type:"parent"})}),Pl=new e.Struct({length:e.uint16,types:new e.Array(Ul,function(eA){return eA.length+1})}),Rl=new e.Struct({reserved:new e.Reserved(e.uint8,24),typeList:new e.Pointer(e.uint16,Pl),nameListOffset:new e.Pointer(e.uint16,"void")}),eo=new e.Struct({dataOffset:e.uint32,map:new e.Pointer(e.uint32,Rl),dataLength:e.uint32,mapLength:e.uint32}),zl=function(){function eA(V){this.stream=V,this.header=eo.decode(this.stream);for(var x,M=g(this.header.map.typeList.types);!(x=M()).done;){for(var oA,P=x.value,tA=g(P.refList);!(oA=tA()).done;){var sA=oA.value;sA.nameOffset>=0?(this.stream.pos=sA.nameOffset+this.header.map.nameListOffset,sA.name=Sl.decode(this.stream)):sA.name=null}"sfnt"===P.name&&(this.sfnt=P)}}return eA.probe=function(M){var x=new e.DecodeStream(M);try{var P=eo.decode(x)}catch(iA){return!1}for(var oA,tA=g(P.map.typeList.types);!(oA=tA()).done;)if("sfnt"===oA.value.name)return!0;return!1},eA.prototype.getFont=function(M){if(!this.sfnt)return null;for(var P,x=g(this.sfnt.refList);!(P=x()).done;){var sA=new e.DecodeStream(this.stream.buffer.slice(this.header.dataOffset+P.value.dataOffset+4)),iA=new Dr(sA);if(iA.postscriptName===M)return iA}return null},l(eA,[{key:"fonts",get:function(){for(var P,M=[],x=g(this.sfnt.refList);!(P=x()).done;){var sA=new e.DecodeStream(this.stream.buffer.slice(this.header.dataOffset+P.value.dataOffset+4));M.push(new Dr(sA))}return M}}]),eA}();D.registerFormat(Dr),D.registerFormat(Ml),D.registerFormat(vl),D.registerFormat(Tl),D.registerFormat(zl),Y.exports=D},7337:function(Y,I,n){"use strict";var c=n(4781),i=n(9742),o=n(2055),l=o.BK,h=o.CR,a=o.LF,g=o.NL,E=o.SG,u=o.WJ,C=o.SP,e=o.ZWJ,f=o.BA,B=o.HY,w=o.NS,Q=o.AI,p=o.AL,S=o.CJ,m=o.HL,d=o.RI,v=o.SA,D=o.XX,U=n(8383),T=U.DI_BRK,F=U.IN_BRK,z=U.CI_BRK,b=U.CP_BRK,aA=U.pairTable,lA=new c(i.toByteArray("AAgOAAAAAACA3QAAAe0OEvHtnXuMXUUdx+d2d2/33r237V3YSoFC11r6IGgbRFBEfFF5KCVCMYKFaKn8AYqmwUeqECFabUGQipUiNCkgSRElUkKwJRWtwSpJrZpCI4E2NQqiBsFGwWL8Tu6Md3Z23o9zbund5JM5c+b1m9/85nnOuXtTHyFrwXpwL9gBngTPgj+Dv4H9Ae4B0N9PSAMcDqaB0X57urmIs8AQ72SEnQ4+ABaBxWAJWAquENJ9BtdfANeCleBGcCv4NvgeuBv8AGwCm8FWlpbzOPw7wC7wFNgDngMvgpfAq2DCACF10ACHgaPAzIF2+PFwT2Th1P8OuO8FZ4MPggvAxWAp+A6VHe5ysILFvx7u6oF2+Wvg3g7uYvlT+TbC/TH4CdgCtoGtfW3/E2An8++Gu5eleR7uP8B+8BoLf4LFH6i23Vp1rB5a1Q7TGMeCUYYY18RcxF0gxT8H5b3dIw8X3iPkdxauPwQWgyVgWbVT30/h+mrwZan8r8L/FcEWVsJ/E1grpKXcwdLdI9y/H9cPgUerbbun0PadCHcbjQd+D55mafcx9y9wXwKvCLJUJiLdRH09ef4xupqE/KeCY8Bx4M3gbeBdYCE4G3wYXASWgGXgSibTcuaugHs9WA3WgNvBBha2Ee4D4GFNPTYL9x/D9XaJXwnXvwW7wDPgTzQd2A9eAwODhDTBCJgOZoETwEngtEFmF3DPAouY/0K4Swb9dbaMpbkS7nKP9CsCyrpOSrNK8K9kNnYL7q0DGwbb/XnjoDv3gQfBZvBz8GvwO/AHdr3Pkv4F4fplj3J79OgRBx8HypajR48ePXr06NGjx8HFv7pABhX/HRx7HqKjr9Y+y6PXg7X2WRoPm1Kzpz8CcWaweLPhHt/fPq95C65PZnmfDnchOLfWPo/7OLgQ15ewdJ+E++na2PMhyudw72bDGc01CP8aWAm+Dr4BVoHV4IZeWC+sF9YL64UlD1sD1oE7au0z0zK5p1YuZde/R49uJnYdez/62EPgkVr4c7pHkfYXivTbcW8n2A32gOekOH+F/5/gAOivE9IArXpbrmlwR+vljz9bJrV552RCvgQ2GXgRzJ9CyGVTxofdLd17Gv6jW4RcAG5ote/9FO4B8NZhQs4DN4O9kOFY6OFSsB48C/qGCFkAyERCzh9q+0WuA2sqHX4m+Smv4t6RjXYelItwvQ7sBtOahHwU3NYcn+5Q4pFmRz89evTocajxStM898/FfLSgrg8/sT5+zcLDTkXY+6S0C+E/l907SXO+Rt/Lujrxe1kmztPU70JDvSmXILwJWS9TxLuC3VtuycPGCoV+VfD41yvKW6W4d1O9/S5YtZ+Qtbi+k/m/D/eHYBPzb4G7DfyS+enZ42/qnXPFp+pjZdgD/yX0XcV6+93DF+H+G5AhtcxPIs/BoY5cg0g7RRGXx/8Ewo8Y6vhp/Bnwz2F5zId7CgunZ6Dv1uTF0585pNY7P9NdhPCPDI1Ncyn8l4OrwHKwguVB12WrNPnpoPW5BWluA3eCuxRl3cfyfFCom43NBjkeQ9h2Tzlzs7PL5CmD3UwHew26+KMm7AVHu8hJaL1fTtj29L3E/wi6oPvWvkY7bAjucKOYtpymKWdGo/3e5KxGR8YTGvmfZ4XW46RGmnMIG6excs6Ae46nPuh7pGXbvm/fOB91vLhRXvkmlkKuK8BnFTb8xYL6TyqugbzXJZCZ9tlVrO9+C+53G5134A8G1htsjdbvXoT/KEBPmwq04dS2v6UxNnxbAXV5gul4Z6J+tMtBZtv4+Qzy2Ndof+fwPHP/zsbg/QFz02tIM4B9ZRO0mp379NxxBpgD5gv3T8H16eAMcCZYxMIWw/2YEG8pri9n/qvgfr45fm67VtjPzmbpVrJ7NzL3VrjvF/Jdh+sN3M/cB+A+LOV/bVNdX13b0G9KtmrSHCo8jvqfGjFu7WiWP37E8s2+yv8ZwVbYRgvMAm9kvMkhjStzAZbIBGIR+ngAy2NSZ9f0Hv2bIIShCckU5k5sb+OdGGQ0BKqSPzeE1WFCgWXK5dO2rDD/COn9zTvEUfXJ4zT3c9DP2oH2+ZoAtc9RBr/mY0SLdGyap+Nxh6W0In2Sn5C8/W00c/7dXn63we1DtAHud9WZbFNimmFL2iIoqt8eDPQHptERIkNoO8prFVvblm13OaG6oGM+n7P4/RrRz2HdTktotxHFdZW5tvm72UWEtm9dQF6n++hU1FmVFL++L2Nsdt3/1IVrWaacda4Se91t+pHDVXF5HFd9pG7X14NNyePr6wkfPTRI+H6qDPvLqRM5DR2beZ8W95Divq0IWXXyy/d18Yq09ZhyY/fyPjafY37yta8ybD9l3W15+crXYhQ5rsj2Wkb7iDadon1c+tKI4p5NR6HjPl/vqvLm92uK8lTjWNntkwJTu9hkiJmHVf3S1V5UOii6PWL1nVqOkP5QI/b2L2o+Kqr/h9i0bHNl9HudnKn0btKBbZzItQ7n47Drmutg6P+ubZK7/5va0PU8XZS56DP4Isci07gUo3/fscdlfMyp6xR6dy0vt/275K1bJ8qkHI99bdK3v4vt4Gtzs7sEWa5aZH4NDz3yfWG368bXLlQ6GZYQ7/UL1y3mryroZ+nkZwK28SD1vlt+7sNd+lcR3Ji1RKq1WcvhftFzousYxftH7Ngu2pZubcGfD8eMizp5Y/uha/m69NNK5siSOapkcq2lTOOGvE4y9aPclFl20eXTvwoZO374ymob90Jx3Zfk2h/I849q7VNE+WXsj+ZFlJ96Xcd1PyD4ue2J69/Q9V+u9uPrQC7/sHRftjE+n+eQP2Ztl5Kc+0TX/WND8vP2iF23xO7lfO3XtKfLhUm/PE6Ze78RD/3Fknr8i907yWsoUx+M3S+0SNjcHyu7qg6+aYvqF671TLXfTzU+2uaTnOOzbFc+7yHoZE59npIL175kay/ZxlKMH6a+NSJdl90XKXytpbMpTr/kP5zJfqxQDzneYWTstxh9pPPdYJ/CL8alTBag+fFvHFXtQMutWxBloOUMMHS6GWSyVYS4pvgmexXtVjc/TFWk9ZnnZLt3+caI10/8Xkb+hsYlfeh+QOyPNQN1S7hv2nqivEVSj/Ex+1lu73Ib1olbu4jpfN4ddbWbHN+/mcpWfUem+g7RhK4833SuepHbN0d5PjKF1kUll3xPFc5d+btTW9uqdCHXwaQ7kw252ENIW9vKTdEfTLox+VPYT6r8XXUWq7tYuXyZnEAG+ic+pwyVdRLDp8wcOp0kEZNXzLyqw3f+yEkjMI1sFznk8ulDKcoKlcFVlz75qPyu9+U8YuvnqnfXNDn6t6neNr3xfHj4JEU500ma8SSkjjodptBlTLurbI7rTxUnhcxF6d9W76KRbd6G3DdVNj2qia/qD3KY2O90elLJocpHJc90Q7kqVLqaLlGUjYj+Pg00jD8Xk+Wnf5UAN8c8HGrvXKYi+4irnsoo09ctU29Fll2UraSyaxnTOar8DFw+w60St+cRNlzfm9E9y9CNUTZM5/7iOTWR6imOgaKf/pn6hJw/f8dDdS6u0tNhDN1ZOlGUoauTrqyQNvCd21Mjy8N/T7AixBkQrm3tRKS0tngDwrWYzobuLFwXV3WfP5uR9TGTXdvc3BRVjq18l3rbwmaS8c9QByR4m3Sb/lPVX2V/M4naDkV79GFmJDad2NaLOdpBpxsbvs+/YubgVPO5bn3h+75BahnEOU/EVb+yTL7vQeTQp04GH/twfTYaCv9ehe8XXdZ0Ic+IY94Hcik/9h0Zk35c7MdWXo737HM/y6dllPENj9zeuvq7vMMYam88fZnfU7nOHznf6/AdP+W8ffXv2q6uelDlE1N/Wx+Prb/MG8ARBVJ0eb7rz5Tf6sl5l/G9nizDnJLJudZoaNqU/hbsCPH73dhu+03aWPiZhW9/yLHf8IGvT1OtzwZJ56yG/7YvX5sSdn+yof6x5av2ebxcV1dOZ9pDVgSXys/36uLzG1s5Nvj7pKo9axm2zsueylxeT1lWlQ4rkuuzx5f3+VXPPGIhgbLnKp/rtiJdcz2lOtMpAtMZV27E/kRttyaF83dFbf3NdYwXx6sZpH0uVkZ/VslmOrspa24V1+O56u3TdmXpQdaJy36wLPm4LZVR7jyp/CLOmULtzeWZoqstuLS9rhzTmqwIe3LVia0f2OSP3c/71Ec8V0itv6JtONbOXdb3Oc5YdcTaQVFzRWg7+z6HydnHy+qPoWO+j1yq8anofifWl7ri97chNiq/z6KyM37t8333sJR/SF/3bUvd+z+8nV3KNPWfIvt3mfNZijFAZT8xfXSekLfOtl3rHCuPzxrEdT7U9UvRjn3HKV5/XTuo2i3n+E3L5L+3yN+TkH+z07ZGDlkviuXLcX3aL7b+8m+duhCzJonp/yF9wabPItZhJmJ/N8pVfvn31Fok7PeiYsalFON4bPnyuOO7Ru2G+S52fqB5DAt55bJtXf2LtJdQParCVevHlqcufduvKJuQ5yxxvA/Zw6W0l5D3+nz7a4wdieXxd+FS2SjPN7Z9XXDRp62/dMv4GTM22uwx1/iTe7zTUSfjf1Mqld36EHv2xvPoprMnGfGvIiDHk+/x+EQTP7fMOjl928f0/855OTnaJ5XeQsevVHNojO5147ePXLH681mDqOBhqef/Ivp+7PMF1Vxs02kMITLK30zp/k+FbX1RdP/w1b2OMt9hiR1bKLHfZ+XWT+4+ahqzVM8iUug81r5tfTf3+JB6DPFpk1zllLUu9523cpPLdlR6zTVP+bShGFd1lh/Td33rVdT44WqTtjqktOtc87osc8x5hM9vyLrK49v+Pvmp7De0/vyvLJvk1C3+1OOyLyG/aSSud1L/TlLq/BoZ5M2xNj66IFRlT9fcT4GqDYosQ3df/G0zlR5U4UVzjAJZPpW8NlLI5lOejzwq+eS4rnWZbsjTx7ZUrq4sXdrQPmAa82Pb0HVuyZl3rrrZ7Nal/ULzdy0zBUXrMaQcU18v6ncmxd9eM/1fkdQ24Tvu+paZ2q5S6z13+anlTyVfrv4aWz/desfFfn3WEj727rNGKHJdlqsM1VompjzT+shXv7F75dj3J3K3qY7QM7DcZ2L/Aw==")),MA=function(FA){switch(FA){case Q:case v:case E:case D:return p;case S:return w;default:return FA}},cA=function(FA){switch(FA){case a:case g:return l;case C:return u;default:return FA}},gA=function(FA,_){void 0===_&&(_=!1),this.position=FA,this.required=_};Y.exports=function(){function DA(_){this.string=_,this.pos=0,this.lastPos=0,this.curClass=null,this.nextClass=null,this.LB8a=!1,this.LB21a=!1,this.LB30a=0}var FA=DA.prototype;return FA.nextCodePoint=function(){var dA=this.string.charCodeAt(this.pos++),uA=this.string.charCodeAt(this.pos);return 55296<=dA&&dA<=56319&&56320<=uA&&uA<=57343?(this.pos++,1024*(dA-55296)+(uA-56320)+65536):dA},FA.nextCharClass=function(){return MA(lA.get(this.nextCodePoint()))},FA.getSimpleBreak=function(){switch(this.nextClass){case C:return!1;case l:case a:case g:return this.curClass=l,!1;case h:return this.curClass=h,!1}return null},FA.getPairTableBreak=function(dA){var uA=!1;switch(aA[this.curClass][this.nextClass]){case T:uA=!0;break;case F:uA=dA===C;break;case z:if(!(uA=dA===C))return!1;break;case b:if(dA!==C)return uA}return this.LB8a&&(uA=!1),!this.LB21a||this.curClass!==B&&this.curClass!==f?this.LB21a=this.curClass===m:(uA=!1,this.LB21a=!1),this.curClass===d?(this.LB30a++,2==this.LB30a&&this.nextClass===d&&(uA=!0,this.LB30a=0)):this.LB30a=0,this.curClass=this.nextClass,uA},FA.nextBreak=function(){if(null==this.curClass){var dA=this.nextCharClass();this.curClass=cA(dA),this.nextClass=dA,this.LB8a=dA===e,this.LB30a=0}for(;this.pos=XA)return $;switch($){case"%s":return String(bA[SA++]);case"%d":return Number(bA[SA++]);case"%j":try{return JSON.stringify(bA[SA++])}catch(W){return"[Circular]"}default:return $}}),O=bA[SA];SA=3&&(SA.depth=arguments[2]),arguments.length>=4&&(SA.colors=arguments[3]),m(CA)?SA.showHidden=CA:CA&&I._extend(SA,CA),F(SA.showHidden)&&(SA.showHidden=!1),F(SA.depth)&&(SA.depth=2),F(SA.colors)&&(SA.colors=!1),F(SA.customInspect)&&(SA.customInspect=!0),SA.colors&&(SA.stylize=E),e(SA,uA,SA.depth)}function E(uA,CA){var SA=g.styles[CA];return SA?"\x1b["+g.colors[SA][0]+"m"+uA+"\x1b["+g.colors[SA][1]+"m":uA}function u(uA,CA){return uA}function e(uA,CA,SA){if(uA.customInspect&&CA&&AA(CA.inspect)&&CA.inspect!==I.inspect&&(!CA.constructor||CA.constructor.prototype!==CA)){var bA=CA.inspect(SA,uA);return U(bA)||(bA=e(uA,bA,SA)),bA}var XA=function f(uA,CA){if(F(CA))return uA.stylize("undefined","undefined");if(U(CA)){var SA="'"+JSON.stringify(CA).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return uA.stylize(SA,"string")}return D(CA)?uA.stylize(""+CA,"number"):m(CA)?uA.stylize(""+CA,"boolean"):d(CA)?uA.stylize("null","null"):void 0}(uA,CA);if(XA)return XA;var q=Object.keys(CA),O=function C(uA){var CA={};return uA.forEach(function(SA,bA){CA[SA]=!0}),CA}(q);if(uA.showHidden&&(q=Object.getOwnPropertyNames(CA)),aA(CA)&&(q.indexOf("message")>=0||q.indexOf("description")>=0))return B(CA);if(0===q.length){if(AA(CA))return uA.stylize("[Function"+(CA.name?": "+CA.name:"")+"]","special");if(z(CA))return uA.stylize(RegExp.prototype.toString.call(CA),"regexp");if(Z(CA))return uA.stylize(Date.prototype.toString.call(CA),"date");if(aA(CA))return B(CA)}var EA,W="",hA=!1,mA=["{","}"];return S(CA)&&(hA=!0,mA=["[","]"]),AA(CA)&&(W=" [Function"+(CA.name?": "+CA.name:"")+"]"),z(CA)&&(W=" "+RegExp.prototype.toString.call(CA)),Z(CA)&&(W=" "+Date.prototype.toUTCString.call(CA)),aA(CA)&&(W=" "+B(CA)),0!==q.length||hA&&0!=CA.length?SA<0?z(CA)?uA.stylize(RegExp.prototype.toString.call(CA),"regexp"):uA.stylize("[Object]","special"):(uA.seen.push(CA),EA=hA?function w(uA,CA,SA,bA,XA){for(var q=[],O=0,$=CA.length;O<$;++O)DA(CA,String(O))?q.push(Q(uA,CA,SA,bA,String(O),!0)):q.push("");return XA.forEach(function(W){W.match(/^\d+$/)||q.push(Q(uA,CA,SA,bA,W,!0))}),q}(uA,CA,SA,O,q):q.map(function(GA){return Q(uA,CA,SA,O,GA,hA)}),uA.seen.pop(),function p(uA,CA,SA){return uA.reduce(function(q,O){return O.indexOf("\n"),q+O.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?SA[0]+(""===CA?"":CA+"\n ")+" "+uA.join(",\n ")+" "+SA[1]:SA[0]+CA+" "+uA.join(", ")+" "+SA[1]}(EA,W,mA)):mA[0]+W+mA[1]}function B(uA){return"["+Error.prototype.toString.call(uA)+"]"}function Q(uA,CA,SA,bA,XA,q){var O,$,W;if((W=Object.getOwnPropertyDescriptor(CA,XA)||{value:CA[XA]}).get?$=uA.stylize(W.set?"[Getter/Setter]":"[Getter]","special"):W.set&&($=uA.stylize("[Setter]","special")),DA(bA,XA)||(O="["+XA+"]"),$||(uA.seen.indexOf(W.value)<0?($=d(SA)?e(uA,W.value,null):e(uA,W.value,SA-1)).indexOf("\n")>-1&&($=q?$.split("\n").map(function(hA){return" "+hA}).join("\n").substr(2):"\n"+$.split("\n").map(function(hA){return" "+hA}).join("\n")):$=uA.stylize("[Circular]","special")),F(O)){if(q&&XA.match(/^\d+$/))return $;(O=JSON.stringify(""+XA)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(O=O.substr(1,O.length-2),O=uA.stylize(O,"name")):(O=O.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),O=uA.stylize(O,"string"))}return O+": "+$}function S(uA){return Array.isArray(uA)}function m(uA){return"boolean"==typeof uA}function d(uA){return null===uA}function D(uA){return"number"==typeof uA}function U(uA){return"string"==typeof uA}function F(uA){return void 0===uA}function z(uA){return b(uA)&&"[object RegExp]"===MA(uA)}function b(uA){return"object"==typeof uA&&null!==uA}function Z(uA){return b(uA)&&"[object Date]"===MA(uA)}function aA(uA){return b(uA)&&("[object Error]"===MA(uA)||uA instanceof Error)}function AA(uA){return"function"==typeof uA}function MA(uA){return Object.prototype.toString.call(uA)}function cA(uA){return uA<10?"0"+uA.toString(10):uA.toString(10)}I.debuglog=function(uA){if(uA=uA.toUpperCase(),!l[uA])if(h.test(uA)){var CA=c.pid;l[uA]=function(){var SA=I.format.apply(I,arguments);console.error("%s %d: %s",uA,CA,SA)}}else l[uA]=function(){};return l[uA]},I.inspect=g,g.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},g.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},I.types=n(5955),I.isArray=S,I.isBoolean=m,I.isNull=d,I.isNullOrUndefined=function v(uA){return null==uA},I.isNumber=D,I.isString=U,I.isSymbol=function T(uA){return"symbol"==typeof uA},I.isUndefined=F,I.isRegExp=z,I.types.isRegExp=z,I.isObject=b,I.isDate=Z,I.types.isDate=Z,I.isError=aA,I.types.isNativeError=aA,I.isFunction=AA,I.isPrimitive=function lA(uA){return null===uA||"boolean"==typeof uA||"number"==typeof uA||"string"==typeof uA||"symbol"==typeof uA||void 0===uA},I.isBuffer=n(384);var gA=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function BA(){var uA=new Date,CA=[cA(uA.getHours()),cA(uA.getMinutes()),cA(uA.getSeconds())].join(":");return[uA.getDate(),gA[uA.getMonth()],CA].join(" ")}function DA(uA,CA){return Object.prototype.hasOwnProperty.call(uA,CA)}I.log=function(){console.log("%s - %s",BA(),I.format.apply(I,arguments))},I.inherits=n(5717),I._extend=function(uA,CA){if(!CA||!b(CA))return uA;for(var SA=Object.keys(CA),bA=SA.length;bA--;)uA[SA[bA]]=CA[SA[bA]];return uA};var FA="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function _(uA,CA){if(!uA){var SA=new Error("Promise was rejected with a falsy value");SA.reason=uA,uA=SA}return CA(uA)}I.promisify=function(CA){if("function"!=typeof CA)throw new TypeError('The "original" argument must be of type Function');if(FA&&CA[FA]){var SA;if("function"!=typeof(SA=CA[FA]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(SA,FA,{value:SA,enumerable:!1,writable:!1,configurable:!0}),SA}function SA(){for(var bA,XA,q=new Promise(function(W,hA){bA=W,XA=hA}),O=[],$=0;$1?D.attr[v[1]]:D.val},i.prototype.toString=function(d){return this.toStringWithIndent("",d)},i.prototype.toStringWithIndent=function(d,v){var D=d+"<"+this.name,U=v&&v.compressed?"":"\n";for(var F in this.attr)Object.prototype.hasOwnProperty.call(this.attr,F)&&(D+=" "+F+'="'+S(this.attr[F])+'"');if(1===this.children.length&&"element"!==this.children[0].type)D+=">"+this.children[0].toString(v)+"";else if(this.children.length){D+=">"+U;for(var z=d+(v&&v.compressed?"":" "),b=0,Z=this.children.length;b"}else v&&v.html?-1!==["area","base","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"].indexOf(this.name)?D+="/>":D+=">":D+="/>";return D},o.prototype.toString=function(d){return m(S(this.text),d)},o.prototype.toStringWithIndent=function(d,v){return d+this.toString(v)},l.prototype.toString=function(d){return""},l.prototype.toStringWithIndent=function(d,v){return d+this.toString(v)},h.prototype.toString=function(d){return"\x3c!--"+m(S(this.comment),d)+"--\x3e"},h.prototype.toStringWithIndent=function(d,v){return d+this.toString(v)},i.prototype.type="element",o.prototype.type="text",l.prototype.type="cdata",h.prototype.type="comment",function p(d,v){for(var D in v)v.hasOwnProperty(D)&&(d[D]=v[D])}(a.prototype,i.prototype),a.prototype._opentag=function(d){void 0===this.children?i.call(this,d):i.prototype._opentag.apply(this,arguments)},a.prototype._doctype=function(d){this.doctype+=d};var g=null;function u(){g[0]&&g[0]._opentag.apply(g[0],arguments)}function C(){g[0]&&g[0]._closetag.apply(g[0],arguments)}function e(){g[0]&&g[0]._text.apply(g[0],arguments)}function f(){g[0]&&g[0]._cdata.apply(g[0],arguments)}function B(){g[0]&&g[0]._comment.apply(g[0],arguments)}function w(){g[0]&&g[0]._doctype.apply(g[0],arguments)}function Q(){g[0]&&g[0]._error.apply(g[0],arguments)}function S(d){return d.toString().replace(/&/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")}function m(d,v){var D=d;return v&&v.trimmed&&d.length>25&&(D=D.substring(0,25).trim()+"\u2026"),v&&v.preserveWhitespace||(D=D.trim()),D}Y.exports&&!n.g.xmldocAssumeBrowser?Y.exports.XmlDocument=a:this.XmlDocument=a}()},6255:function(Y,I,n){"use strict";"undefined"!=typeof window&&!window.Promise&&n(3867),n(4667);function i(o){this.fs=o,this.resolving={}}i.prototype.resolve=function(o,l){if(!this.resolving[o]){var h=this;this.resolving[o]=new Promise(function(a,g){0===o.toLowerCase().indexOf("https://")||0===o.toLowerCase().indexOf("http://")?function(o,l){return new Promise(function(h,a){var g=new XMLHttpRequest;for(var E in g.open("GET",o,!0),l)g.setRequestHeader(E,l[E]);g.responseType="arraybuffer",g.onreadystatechange=function(){4===g.readyState&&(g.status>=200&&g.status<300||setTimeout(function(){a(new TypeError('Failed to fetch (url: "'+o+'")'))},0))},g.onload=function(){g.status>=200&&g.status<300&&h(g.response)},g.onerror=function(){setTimeout(function(){a(new TypeError('Network request failed (url: "'+o+'")'))},0)},g.ontimeout=function(){setTimeout(function(){a(new TypeError('Network request failed (url: "'+o+'")'))},0)},g.send()})}(o,l).then(function(E){h.fs.writeFileSync(o,E),a()},function(E){g(E)}):a()})}return this.resolving[o]},i.prototype.resolved=function(){var o=this;return new Promise(function(l,h){Promise.all(Object.values(o.resolving)).then(function(){l()},function(a){h(a)})})},Y.exports=i},4275:function(Y,I,n){"use strict";var c=n(8823).Buffer,i=n(6225).isFunction,o=n(6225).isUndefined,a=(n(6225),n(1818).saveAs),g={Roboto:{normal:"Roboto-Regular.ttf",bold:"Roboto-Medium.ttf",italics:"Roboto-Italic.ttf",bolditalics:"Roboto-MediumItalic.ttf"}};function E(C,e,f,B){this.docDefinition=C,this.tableLayouts=e||null,this.fonts=f||g,this.vfs=B}E.prototype._createDoc=function(C,e){var f=function(U){return"object"==typeof U?{url:U.url,headers:U.headers}:{url:U,headers:{}}};C=C||{},this.tableLayouts&&(C.tableLayouts=this.tableLayouts);var w=new(n(8617))(this.fonts);if(n(3857).bindFS(this.vfs),!i(e))return w.createPdfKitDocument(this.docDefinition,C);var S=new(n(6255))(n(3857));for(var m in this.fonts)if(this.fonts.hasOwnProperty(m)){if(this.fonts[m].normal){var d=f(this.fonts[m].normal);S.resolve(d.url,d.headers),this.fonts[m].normal=d.url}this.fonts[m].bold&&(d=f(this.fonts[m].bold),S.resolve(d.url,d.headers),this.fonts[m].bold=d.url),this.fonts[m].italics&&(d=f(this.fonts[m].italics),S.resolve(d.url,d.headers),this.fonts[m].italics=d.url),this.fonts[m].bolditalics&&(d=f(this.fonts[m].bolditalics),S.resolve(d.url,d.headers),this.fonts[m].bolditalics=d.url)}if(this.docDefinition.images)for(var v in this.docDefinition.images)this.docDefinition.images.hasOwnProperty(v)&&(d=f(this.docDefinition.images[v]),S.resolve(d.url,d.headers),this.docDefinition.images[v]=d.url);var D=this;S.resolved().then(function(){var U=w.createPdfKitDocument(D.docDefinition,C);e(U)},function(U){throw U})},E.prototype._flushDoc=function(C,e){var B,f=[];C.on("readable",function(){for(var w;null!==(w=C.read(9007199254740991));)f.push(w)}),C.on("end",function(){B=c.concat(f),e(B,C._pdfMakePages)}),C.end()},E.prototype._getPages=function(C,e){if(!e)throw"_getPages is an async method and needs a callback argument";var f=this;this._createDoc(C,function(B){f._flushDoc(B,function(w,Q){e(Q)})})},E.prototype._bufferToBlob=function(C){var e;try{e=new Blob([C],{type:"application/pdf"})}catch(B){if("InvalidStateError"===B.name){var f=new Uint8Array(C);e=new Blob([f.buffer],{type:"application/pdf"})}}if(!e)throw"Could not generate blob";return e},E.prototype._openWindow=function(){var C=window.open("","_blank");if(null===C)throw"Open PDF in new window blocked by browser";return C},E.prototype._openPdf=function(C,e){e||(e=this._openWindow());try{this.getBlob(function(f){var w=(window.URL||window.webkitURL).createObjectURL(f);e.location.href=w},C)}catch(f){throw e.close(),f}},E.prototype.open=function(C,e){(C=C||{}).autoPrint=!1,this._openPdf(C,e=e||null)},E.prototype.print=function(C,e){(C=C||{}).autoPrint=!0,this._openPdf(C,e=e||null)},E.prototype.download=function(C,e,f){i(C)&&(o(e)||(f=e),e=C,C=null),C=C||"file.pdf",this.getBlob(function(B){a(B,C),i(e)&&e()},f)},E.prototype.getBase64=function(C,e){if(!C)throw"getBase64 is an async method and needs a callback argument";this.getBuffer(function(f){C(f.toString("base64"))},e)},E.prototype.getDataUrl=function(C,e){if(!C)throw"getDataUrl is an async method and needs a callback argument";this.getBuffer(function(f){C("data:application/pdf;base64,"+f.toString("base64"))},e)},E.prototype.getBlob=function(C,e){if(!C)throw"getBlob is an async method and needs a callback argument";var f=this;this.getBuffer(function(B){var w=f._bufferToBlob(B);C(w)},e)},E.prototype.getBuffer=function(C,e){if(!C)throw"getBuffer is an async method and needs a callback argument";var f=this;this._createDoc(e,function(B){f._flushDoc(B,function(w){C(w)})})},E.prototype.getStream=function(C,e){if(!i(e))return this._createDoc(C);this._createDoc(C,function(B){e(B)})},Y.exports={createPdf:function(C,e,f,B){if(!function u(){try{var C=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(C,e),42===C.foo()}catch(f){return!1}}())throw"Your browser does not provide the level of support needed";return new E(C,e||n.g.pdfMake.tableLayouts,f||n.g.pdfMake.fonts,B||n.g.pdfMake.vfs)}}},3857:function(Y,I,n){"use strict";var i=n(8823).Buffer;function o(){this.fileSystem={},this.dataSystem={}}function l(h){return 0===h.indexOf("/")&&(h=h.substring("/".length)),0===h.indexOf("/")&&(h=h.substring(1)),h}o.prototype.existsSync=function(h){return h=l(h),void 0!==this.fileSystem[h]||void 0!==this.dataSystem[h]},o.prototype.readFileSync=function(h,a){h=l(h);var g=this.dataSystem[h];if("string"==typeof g&&"utf8"===a)return g;if(g)return new i(g,"string"==typeof g?"base64":void 0);var E=this.fileSystem[h];if(E)return E;throw"File '"+h+"' not found in virtual file system"},o.prototype.writeFileSync=function(h,a){this.fileSystem[l(h)]=a},o.prototype.bindFS=function(h){this.dataSystem=h||{}},Y.exports=new o},4498:function(Y,I,n){"use strict";var c=n(6225).isString;function o(a){return"auto"===a.width}function l(a){return null==a.width||"*"===a.width||"star"===a.width}Y.exports={buildColumnWidths:function i(a,g){var E=[],u=0,C=0,e=[],f=0,B=0,w=[],Q=g;a.forEach(function(D){o(D)?(E.push(D),u+=D._minWidth,C+=D._maxWidth):l(D)?(e.push(D),f=Math.max(f,D._minWidth),B=Math.max(B,D._maxWidth)):w.push(D)}),w.forEach(function(D){c(D.width)&&/\d+%/.test(D.width)&&(D.width=parseFloat(D.width)*Q/100),D._calcWidth=D.width=g)E.forEach(function(D){D._calcWidth=D._minWidth}),e.forEach(function(D){D._calcWidth=f});else{if(S0){var v=g/e.length;e.forEach(function(D){D._calcWidth=v})}}},measureMinMax:function h(a){for(var g={min:0,max:0},E={min:0,max:0},u=0,C=0,e=a.length;C=0;z--){var Z=w.styleStack.styleDictionary[T[z]];for(var aA in Z)Z.hasOwnProperty(aA)&&(F[aA]=Z[aA])}return F}function d(T){return h(T)?T=[T,T,T,T]:g(T)&&2===T.length&&(T=[T[0],T[1],T[0],T[1]]),T}var v=[void 0,void 0,void 0,void 0];if(B.style){var U=m(g(B.style)?B.style:[B.style]);U&&(v=S(U,v)),U.margin&&(v=d(U.margin))}return v=S(B,v),B.margin&&(v=d(B.margin)),void 0===v[0]&&void 0===v[1]&&void 0===v[2]&&void 0===v[3]?null:v}(),B.columns)return Q(w.measureColumns(B));if(B.stack)return Q(w.measureVerticalContainer(B));if(B.ul)return Q(w.measureUnorderedList(B));if(B.ol)return Q(w.measureOrderedList(B));if(B.table)return Q(w.measureTable(B));if(void 0!==B.text)return Q(w.measureLeaf(B));if(B.toc)return Q(w.measureToc(B));if(B.image)return Q(w.measureImage(B));if(B.svg)return Q(w.measureSVG(B));if(B.canvas)return Q(w.measureCanvas(B));if(B.qr)return Q(w.measureQr(B));throw"Unrecognized document structure: "+JSON.stringify(B,E)});function Q(S){var m=S._margin;return m&&(S._minWidth+=m[0]+m[2],S._maxWidth+=m[0]+m[2]),S}},f.prototype.convertIfBase64Image=function(B){if(/^data:image\/(jpeg|jpg|png);base64,/.test(B.image)){var w="$$pdfmake$$"+this.autoImageIndex++;this.images[w]=B.image,B.image=w}},f.prototype.measureImageWithDimensions=function(B,w){if(B.fit){var Q=w.width/w.height>B.fit[0]/B.fit[1]?B.fit[0]/w.width:B.fit[1]/w.height;B._width=B._minWidth=B._maxWidth=w.width*Q,B._height=w.height*Q}else B._width=B._minWidth=B._maxWidth=B.width||w.width,B._height=B.height||w.height*B._width/w.width,h(B.maxWidth)&&B.maxWidthB._width&&(B._width=B._minWidth=B._maxWidth=B.minWidth,B._height=B._width*w.height/w.width),h(B.minHeight)&&B.minHeight>B._height&&(B._height=B.minHeight,B._width=B._minWidth=B._maxWidth=B._height*w.width/w.height);B._alignment=this.styleStack.getProperty("alignment")},f.prototype.measureImage=function(B){this.images&&this.convertIfBase64Image(B);var w=this.imageMeasure.measureImage(B.image);return this.measureImageWithDimensions(B,w),B},f.prototype.measureSVG=function(B){var w=this.svgMeasure.measureSVG(B.svg);return this.measureImageWithDimensions(B,w),B.font=this.styleStack.getProperty("font"),B.svg=this.svgMeasure.writeDimensions(B.svg,{width:B._width,height:B._height}),B},f.prototype.measureLeaf=function(B){B._textRef&&B._textRef._textNodeRef.text&&(B.text=B._textRef._textNodeRef.text);var w=this.styleStack.clone();w.push(B);var Q=this.textTools.buildInlines(B.text,w);return B._inlines=Q.items,B._minWidth=Q.minWidth,B._maxWidth=Q.maxWidth,B},f.prototype.measureToc=function(B){if(B.toc.title&&(B.toc.title=this.measureNode(B.toc.title)),B.toc._items.length>0){for(var w=[],Q=B.toc.textStyle||{},p=B.toc.numberStyle||Q,S=B.toc.textMargin||[0,0,0,0],m=0,d=B.toc._items.length;m=26?F((z/26>>0)-1):"")+"abcdefghijklmnopqrstuvwxyz"[z%26>>0]}(T-1)}function m(T){if(T<1||T>4999)return T.toString();var Z,F=T,z={M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1},b="";for(Z in z)for(;F>=z[Z];)b+=Z,F-=z[Z];return b}var v;switch(Q){case"none":v=null;break;case"upper-alpha":v=S(B).toUpperCase();break;case"lower-alpha":v=S(B);break;case"upper-roman":v=m(B);break;case"lower-roman":v=m(B).toLowerCase();break;default:v=function d(T){return T.toString()}(B)}if(null===v)return{};p&&(g(p)?(p[0]&&(v=p[0]+v),p[1]&&(v+=p[1]),v+=" "):v+=p+" ");var D={text:v},U=w.getProperty("markerColor");return U&&(D.color=U),{_inlines:this.textTools.buildInlines(D,w).items}},f.prototype.measureUnorderedList=function(B){var w=this.styleStack.clone(),Q=B.ul;B.type=B.type||"disc",B._gapSize=this.gapSizeForList(),B._minWidth=0,B._maxWidth=0;for(var p=0,S=Q.length;p0?w.length-1:0;return B._minWidth=S.min+B._gap*m,B._maxWidth=S.max+B._gap*m,B},f.prototype.measureTable=function(B){(function lA(MA){if(MA.table.widths||(MA.table.widths="auto"),l(MA.table.widths))for(MA.table.widths=[MA.table.widths];MA.table.widths.length1?(aA(v,Q,D.colSpan),w.push({col:Q,span:D.colSpan,minWidth:D._minWidth,maxWidth:D._maxWidth})):(d._minWidth=Math.max(d._minWidth,D._minWidth),d._maxWidth=Math.max(d._maxWidth,D._maxWidth))),D.rowSpan&&D.rowSpan>1&&AA(B.table,p,Q,D.rowSpan)}}!function b(){for(var MA,cA,gA=0,BA=w.length;gA0)for(MA=_/DA.span,cA=0;cA0)for(MA=dA/DA.span,cA=0;cAE.page?g:E.page>g.page?E:g.y>E.y?g:E).page,x:u.x,y:u.y,availableHeight:u.availableHeight,availableWidth:u.availableWidth}}(this,g.bottomMost)},o.prototype.markEnding=function(g){this.page=g._columnEndingContext.page,this.x=g._columnEndingContext.x,this.y=g._columnEndingContext.y,this.availableWidth=g._columnEndingContext.availableWidth,this.availableHeight=g._columnEndingContext.availableHeight,this.lastColumnWidth=g._columnEndingContext.lastColumnWidth},o.prototype.saveContextInEndingCell=function(g){g._columnEndingContext={page:this.page,x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,lastColumnWidth:this.lastColumnWidth}},o.prototype.completeColumnGroup=function(g){var E=this.snapshots.pop();this.calculateBottomMost(E),this.endingCell=null,this.x=E.x;var u=E.bottomMost.y;g&&(E.page===E.bottomMost.page?E.y+g>u&&(u=E.y+g):u+=g),this.y=u,this.page=E.bottomMost.page,this.availableWidth=E.availableWidth,this.availableHeight=E.bottomMost.availableHeight,g&&(this.availableHeight-=u-E.bottomMost.y),this.lastColumnWidth=E.lastColumnWidth},o.prototype.addMargin=function(g,E){this.x+=g,this.availableWidth-=g+(E||0)},o.prototype.moveDown=function(g){return this.y+=g,this.availableHeight-=g,this.availableHeight>0},o.prototype.initializePage=function(){this.y=this.pageMargins.top,this.availableHeight=this.getCurrentPage().pageSize.height-this.pageMargins.top-this.pageMargins.bottom,this.pageSnapshot().availableWidth=this.getCurrentPage().pageSize.width-this.pageMargins.left-this.pageMargins.right},o.prototype.pageSnapshot=function(){return this.snapshots[0]?this.snapshots[0]:this},o.prototype.moveTo=function(g,E){null!=g&&(this.x=g,this.availableWidth=this.getCurrentPage().pageSize.width-this.x-this.pageMargins.right),null!=E&&(this.y=E,this.availableHeight=this.getCurrentPage().pageSize.height-this.y-this.pageMargins.bottom)},o.prototype.moveToRelative=function(g,E){null!=g&&(this.x=this.x+g),null!=E&&(this.y=this.y+E)},o.prototype.beginDetachedBlock=function(){this.snapshots.push({x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,page:this.page,endingCell:this.endingCell,lastColumnWidth:this.lastColumnWidth})},o.prototype.endDetachedBlock=function(){var g=this.snapshots.pop();this.x=g.x,this.y=g.y,this.availableWidth=g.availableWidth,this.availableHeight=g.availableHeight,this.page=g.page,this.endingCell=g.endingCell,this.lastColumnWidth=g.lastColumnWidth};var h=function(g,E){return(E=function l(g,E){return void 0===g?E:i(g)&&"landscape"===g.toLowerCase()?"landscape":"portrait"}(E,g.pageSize.orientation))!==g.pageSize.orientation?{orientation:E,width:g.pageSize.height,height:g.pageSize.width}:{orientation:g.pageSize.orientation,width:g.pageSize.width,height:g.pageSize.height}};o.prototype.moveToNextPage=function(g){var E=this.page+1,u=this.page,C=this.y,e=E>=this.pages.length;if(e){var f=this.availableWidth,B=this.getCurrentPage().pageSize.orientation,w=h(this.getCurrentPage(),g);this.addPage(w),B===w.orientation&&(this.availableWidth=f)}else this.page=E,this.initializePage();return{newPageCreated:e,prevPage:u,prevY:C,y:this.y}},o.prototype.addPage=function(g){var E={items:[],pageSize:g};return this.pages.push(E),this.backgroundLength.push(0),this.page=this.pages.length-1,this.initializePage(),this.tracker.emit("pageAdded"),E},o.prototype.getCurrentPage=function(){return this.page<0||this.page>=this.pages.length?null:this.pages[this.page]},o.prototype.getCurrentPosition=function(){var g=this.getCurrentPage().pageSize,E=g.height-this.pageMargins.top-this.pageMargins.bottom,u=g.width-this.pageMargins.left-this.pageMargins.right;return{pageNumber:this.page+1,pageOrientation:g.orientation,pageInnerHeight:E,pageInnerWidth:u,left:this.x,top:this.y,verticalRatio:(this.y-this.pageMargins.top)/E,horizontalRatio:(this.x-this.pageMargins.left)/u}},Y.exports=o},1196:function(Y,I,n){"use strict";var c=n(4775),i=n(6225).isNumber,o=n(6225).pack,l=n(6225).offsetVector,h=n(3858);function a(u,C){this.context=u,this.contextStack=[],this.tracker=C}function g(u,C,e){null==e||e<0||e>u.items.length?u.items.push(C):u.items.splice(e,0,C)}a.prototype.addLine=function(u,C,e){var f=u.getHeight(),B=this.context,w=B.getCurrentPage(),Q=this.getCurrentPositionOnPage();return!(B.availableHeight0&&u.inlines[0].alignment,B=0;switch(f){case"right":B=C-e;break;case"center":B=(C-e)/2}if(B&&(u.x=(u.x||0)+B),"justify"===f&&!u.newLineForced&&!u.lastLineInParagraph&&u.inlines.length>1)for(var w=(C-e)/(u.inlines.length-1),Q=1,p=u.inlines.length;Q0)&&(void 0===u._x&&(u._x=u.x||0),u.x=f.x+u._x,u.y=f.y,this.alignImage(u),g(B,{type:e||"image",item:u},C),f.moveDown(u._height),w)},a.prototype.addSVG=function(u,C){return this.addImage(u,C,"svg")},a.prototype.addQr=function(u,C){var e=this.context,f=e.getCurrentPage(),B=this.getCurrentPositionOnPage();if(!f||void 0===u.absolutePosition&&e.availableHeightB.availableHeight||(u.items.forEach(function(Q){switch(Q.type){case"line":var p=function E(u){var C=new c(u.maxWidth);for(var e in u)u.hasOwnProperty(e)&&(C[e]=u[e]);return C}(Q.item);p._node&&(p._node.positions[0].pageNumber=B.page+1),p.x=(p.x||0)+(C?u.xOffset||0:B.x),p.y=(p.y||0)+(e?u.yOffset||0:B.y),w.items.push({type:"line",item:p});break;case"vector":var S=o(Q.item);l(S,C?u.xOffset||0:B.x,e?u.yOffset||0:B.y),w.items.push({type:"vector",item:S});break;case"image":case"svg":var m=o(Q.item);m.x=(m.x||0)+(C?u.xOffset||0:B.x),m.y=(m.y||0)+(e?u.yOffset||0:B.y),w.items.push({type:Q.type,item:m})}}),f||B.moveDown(u.height),0))},a.prototype.pushContext=function(u,C){void 0===u&&(C=this.context.getCurrentPage().height-this.context.pageMargins.top-this.context.pageMargins.bottom,u=this.context.availableWidth),i(u)&&(u=new h({width:u,height:C},{left:0,right:0,top:0,bottom:0})),this.contextStack.push(this.context),this.context=u},a.prototype.popContext=function(){this.context=this.contextStack.pop()},a.prototype.getCurrentPositionOnPage=function(){return(this.contextStack[0]||this.context).getCurrentPosition()},Y.exports=a},2249:function(Y,I,n){"use strict";var c=n(6225).isArray;function o(l,h){for(var a in this.fonts={},this.pdfKitDoc=h,this.fontCache={},l)if(l.hasOwnProperty(a)){var g=l[a];this.fonts[a]={normal:g.normal,bold:g.bold,italics:g.italics,bolditalics:g.bolditalics}}}o.prototype.getFontType=function(l,h){return function i(l,h){var a="normal";return l&&h?a="bolditalics":l?a="bold":h&&(a="italics"),a}(l,h)},o.prototype.getFontFile=function(l,h,a){var g=this.getFontType(h,a);return this.fonts[l]&&this.fonts[l][g]?this.fonts[l][g]:null},o.prototype.provideFont=function(l,h,a){var g=this.getFontType(h,a);if(null===this.getFontFile(l,h,a))throw new Error("Font '"+l+"' in style '"+g+"' is not defined in the font section of the document definition.");if(this.fontCache[l]=this.fontCache[l]||{},!this.fontCache[l][g]){var E=this.fonts[l][g];c(E)||(E=[E]),this.fontCache[l][g]=this.pdfKitDoc.font.apply(this.pdfKitDoc,E)._font}return this.fontCache[l][g]},Y.exports=o},6225:function(Y){"use strict";function i(B){return Array.isArray(B)}Y.exports={isString:function I(B){return"string"==typeof B||B instanceof String},isNumber:function n(B){return"number"==typeof B||B instanceof Number},isBoolean:function c(B){return"boolean"==typeof B},isArray:i,isFunction:function o(B){return"function"==typeof B},isObject:function l(B){return null!==B&&"object"==typeof B},isNull:function h(B){return null===B},isUndefined:function a(B){return void 0===B},pack:function g(){for(var B={},w=0,Q=arguments.length;w0})).forEach(function(W){var hA={};["id","text","ul","ol","table","image","qr","canvas","svg","columns","headlineLevel","style","pageBreak","pageOrientation","width","height"].forEach(function(mA){void 0!==W[mA]&&(hA[mA]=W[mA])}),hA.startPosition=W.positions[0],hA.pageNumbers=Array.from(new Set(W.positions.map(function(mA){return mA.pageNumber}))),hA.pages=dA.length,hA.stack=C(W.stack),W.nodeInfo=hA});for(var uA=0;uA<_.length;uA++){var CA=_[uA];if("before"!==CA.pageBreak&&!CA.pageBreakCalculated){CA.pageBreakCalculated=!0;var SA=CA.nodeInfo.pageNumbers[0],bA=[],XA=[],q=[];if(gA.length>1)for(var O=uA+1,$=_.length;O<$;O++)_[O].nodeInfo.pageNumbers.indexOf(SA)>-1&&bA.push(_[O].nodeInfo),gA.length>2&&_[O].nodeInfo.pageNumbers.indexOf(SA+1)>-1&&XA.push(_[O].nodeInfo);if(gA.length>3)for(O=0;O-1&&q.push(_[O].nodeInfo);if(gA(CA.nodeInfo,bA,XA,q))return CA.pageBreak="before",!0}}return!1}this.docPreprocessor=new i,this.docMeasure=new o(z,b,Z,this.imageMeasure,this.svgMeasure,this.tableLayouts,MA);for(var FA=this.tryLayoutDocument(F,z,b,Z,aA,AA,lA,MA,cA);BA(FA.linearNodeList,FA.pages);)FA.linearNodeList.forEach(function(dA){dA.resetXY()}),FA=this.tryLayoutDocument(F,z,b,Z,aA,AA,lA,MA,cA);return FA.pages},U.prototype.tryLayoutDocument=function(F,z,b,Z,aA,AA,lA,MA,cA,gA){this.linearNodeList=[],F=this.docPreprocessor.preprocessDocument(F),F=this.docMeasure.measureDocument(F),this.writer=new h(new l(this.pageSize,this.pageMargins),this.tracker);var BA=this;return this.writer.context().tracker.startTracking("pageAdded",function(){BA.addBackground(aA)}),this.addBackground(aA),this.processNode(F),this.addHeadersAndFooters(AA,lA),null!=cA&&this.addWatermark(cA,z,Z),{pages:this.writer.context().pages,linearNodeList:this.linearNodeList}},U.prototype.addBackground=function(F){var z=S(F)?F:function(){return F},b=this.writer.context(),Z=b.getCurrentPage().pageSize,aA=z(b.page+1,Z);aA&&(this.writer.beginUnbreakableBlock(Z.width,Z.height),aA=this.docPreprocessor.preprocessDocument(aA),this.processNode(this.docMeasure.measureDocument(aA)),this.writer.commitUnbreakableBlock(0,0),b.backgroundLength[b.page]+=aA.positions.length)},U.prototype.addStaticRepeatable=function(F,z){this.addDynamicRepeatable(function(){return JSON.parse(JSON.stringify(F))},z)},U.prototype.addDynamicRepeatable=function(F,z){for(var Z=0,aA=this.writer.context().pages.length;Z1;)_.push({fontSize:SA}),(dA=FA.sizeOfRotatedText(BA.text,BA.angle,_)).width>gA.width?SA=(uA+(CA=SA))/2:dA.widthgA.height?(uA+(CA=SA))/2:((uA=SA)+CA)/2),_.pop();return SA}(this.pageSize,F,z));var Z={text:F.text,font:z.provideFont(F.font,F.bold,F.italics),fontSize:F.fontSize,color:F.color,opacity:F.opacity,angle:F.angle};Z._size=function MA(gA,BA){var DA=new m(BA),FA=new d(null,{font:gA.font,bold:gA.bold,italics:gA.italics});return FA.push({fontSize:gA.fontSize}),{size:DA.sizeOfString(gA.text,FA),rotatedSize:DA.sizeOfRotatedText(gA.text,gA.angle,FA)}}(F,z);for(var aA=this.writer.context().pages,AA=0,lA=aA.length;AA0;cA--)MA.push(lA);return MA}(F._gap);Z&&(b-=(Z.length-1)*F._gap),a.buildColumnWidths(z,b);var aA=this.processRow(z,z,Z);D(F.positions,aA.positions)},U.prototype.processRow=function(F,z,b,Z,aA,AA){var lA=this,MA=[],cA=[];return this.tracker.auto("pageChanged",function gA(FA){for(var _,dA=0,uA=MA.length;dA1)for(var SA=1;SAFA?b[FA]:0}function DA(FA,_){if(FA.rowSpan&&FA.rowSpan>1){var dA=aA+FA.rowSpan-1;if(dA>=Z.length)throw"Row span for column "+_+" (with indexes starting from 0) exceeded row count";return Z[dA][_]}return null}},U.prototype.processList=function(F,z){var AA,b=this,Z=F?z.ol:z.ul,aA=z._gapSize;this.writer.context().addMargin(aA.width),this.tracker.auto("lineAdded",function lA(MA){if(AA){var cA=AA;if(AA=null,cA.canvas){var gA=cA.canvas[0];w(gA,-cA._minWidth,0),b.writer.addVector(gA)}else if(cA._inlines){var BA=new E(b.pageSize.width);BA.addInline(cA._inlines[0]),BA.x=-cA._minWidth,BA.y=MA.getAscenderHeight()-BA.getAscenderHeight(),b.writer.addLine(BA,!0)}}},function(){Z.forEach(function(MA){AA=MA.listMarker,b.processNode(MA),D(z.positions,MA.positions)})}),this.writer.context().addMargin(-aA.width)},U.prototype.processTable=function(F){var z=new g(F);z.beginTable(this.writer);for(var b=F.table.heights,Z=0,aA=F.table.body.length;Z0&&(b.hasEnoughSpaceForInline(F._inlines[0],F._inlines.slice(1))||aA);){var AA=!1,lA=F._inlines.shift();if(aA=!1,!lA.noWrap&&lA.text.length>1&&lA.width>b.getAvailableWidth()){var MA=lA.width/lA.text.length,cA=Math.floor(b.getAvailableWidth()/MA);if(cA<1&&(cA=1),cA0){var u=g.pages[0];if(u.xOffset=h,u.yOffset=a,E>1)if(void 0!==h||void 0!==a)u.height=g.getCurrentPage().pageSize.height-g.pageMargins.top-g.pageMargins.bottom;else{u.height=this.writer.context.getCurrentPage().pageSize.height-this.writer.context.pageMargins.top-this.writer.context.pageMargins.bottom;for(var C=0,e=this.repeatables.length;CXA.item.y2?XA.item.y1:XA.item.y2:0}(XA)}var SA=T(dA||40),bA=SA.top;return _.forEach(function(XA){XA.items.forEach(function(q){var O=CA(q);O>bA&&(bA=O)})}),bA+=SA.bottom}function U(_,dA){_&&"auto"===_.height&&(_.height=1/0);var CA=function z(_){if(C(_)){var dA=l[_.toUpperCase()];if(!dA)throw"Page size "+_+" not recognized";return{width:dA[0],height:dA[1]}}return _}(_||"A4");return function uA(SA){return!!C(SA)&&("portrait"===(SA=SA.toLowerCase())&&CA.width>CA.height||"landscape"===SA&&CA.widthCA.height?"landscape":"portrait",CA}function T(_){if(e(_))_={left:_,right:_,top:_,bottom:_};else if(B(_))if(2===_.length)_={left:_[0],top:_[1],right:_[0],bottom:_[1]};else{if(4!==_.length)throw"Invalid pageMargins definition";_={left:_[0],top:_[1],right:_[2],bottom:_[3]}}return _}function b(_,dA){_.pageSize.orientation!==(dA.options.size[0]>dA.options.size[1]?"landscape":"portrait")&&(dA.options.size=[dA.options.size[1],dA.options.size[0]])}function aA(_,dA){var uA=_;return dA.sup&&(uA-=.75*dA.fontSize),dA.sub&&(uA+=.35*dA.fontSize),uA}function AA(_,dA,uA,CA,SA){function bA(ot,TA){var it,mt,It=new E(null);if(w(ot.positions))throw"Page reference id not found";var ft=ot.positions[0].pageNumber.toString();switch(TA.text=ft,it=It.widthOfString(TA.text,TA.font,TA.fontSize,TA.characterSpacing,TA.fontFeatures),mt=TA.width-it,TA.width=it,TA.alignment){case"right":TA.x+=mt;break;case"center":TA.x+=mt/2}}_._pageNodeRef&&bA(_._pageNodeRef,_.inlines[0]),dA=dA||0,uA=uA||0;var XA=_.getHeight(),O=XA-_.getAscenderHeight();g.drawBackground(_,dA,uA,CA,SA);for(var $=0,W=_.inlines.length;$1){var XA=_.points[0],q=_.points[_.points.length-1];(_.closePath||XA.x===q.x&&XA.y===q.y)&&uA.closePath()}break;case"path":uA.path(_.d)}if(_.linearGradient&&CA){var O=1/(_.linearGradient.length-1);for(SA=0;SA<_.linearGradient.length;SA++)CA.stop(SA*O,_.linearGradient[SA]);_.color=CA}Q(_.color)&&(_.color=p(_.color,dA));var $=e(_.fillOpacity)?_.fillOpacity:1,W=e(_.strokeOpacity)?_.strokeOpacity:1;_.color&&_.lineColor?(uA.fillColor(_.color,$),uA.strokeColor(_.lineColor,W),uA.fillAndStroke()):_.color?(uA.fillColor(_.color,$),uA.fill()):(uA.strokeColor(_.lineColor||"black",W),uA.stroke())}function cA(_,dA,uA,CA){var SA=e(_.opacity)?_.opacity:1;if(CA.opacity(SA),_.cover){var bA=_.cover.align||"center",XA=_.cover.valign||"center",q=_.cover.width?_.cover.width:_.width,O=_.cover.height?_.cover.height:_.height;CA.save(),CA.rect(_.x,_.y,q,O).clip(),CA.image(_.image,_.x,_.y,{cover:[q,O],align:bA,valign:XA}),CA.restore()}else CA.image(_.image,_.x,_.y,{width:_._width,height:_._height});_.link&&CA.link(_.x,_.y,_._width,_._height,_.link),_.linkToPage&&(CA.ref({Type:"Action",S:"GoTo",D:[_.linkToPage,0,0]}).end(),CA.annotate(_.x,_.y,_._width,_._height,{Subtype:"Link",Dest:[_.linkToPage-1,"XYZ",null,null,null]})),_.linkToDestination&&CA.goTo(_.x,_.y,_._width,_._height,_.linkToDestination)}function gA(_,dA,uA,CA,SA){var bA=Object.assign({width:_._width,height:_._height,assumePt:!0},_.options);bA.fontCallback=function(XA,q,O){var $=XA.split(",").map(function(nA){return nA.trim().replace(/('|")/g,"")}),W=function(_,dA,uA){for(var CA=0;CA-1&&(bA=bA.slice(0,XA)),uA.height===1/0){var q=D(bA,_.pageMargins);this.pdfKitDoc.options.size=[uA.width,q]}var O=function FA(_,dA){var uA={};return Object.keys(_).forEach(function(CA){var SA=_[CA];uA[CA]=dA.pattern(SA.boundingBox,SA.xStep,SA.yStep,SA.pattern,SA.colored)}),uA}(_.patterns||{},this.pdfKitDoc);if(function Z(_,dA,uA,CA,SA){uA._pdfMakePages=_,uA.addPage();var bA=0;SA&&_.forEach(function(mA){bA+=mA.items.length});var XA=0;SA=SA||function(){};for(var q=0;q<_.length;q++){q>0&&(b(_[q],uA),uA.addPage(uA.options));for(var O=_[q],$=0,W=O.items.length;$=128?285:0);var p=[[]];for(w=0;w<30;++w){for(var S=p[w],m=[],d=0;d<=w;++d)m.push(B[(d6},Z=function(q,O){var $=-8&function(q){var O=I[q],$=16*q*q+128*q+64;return F(q)&&($-=36),O[2].length&&($-=25*O[2].length*O[2].length-10*O[2].length-55),$}(q),W=I[q];return $-8*W[0][O]*W[1][O]},aA=function(q,O){switch(O){case 1:return q<10?10:q<27?12:14;case 2:return q<10?9:q<27?11:13;case 4:return q<10?8:16;case 8:return q<10?8:q<27?10:12}},AA=function(q,O,$){var W=Z(q,$)-4-aA(q,O);switch(O){case 1:return 3*(W/10|0)+(W%10<4?0:W%10<7?1:2);case 2:return 2*(W/11|0)+(W%11<6?0:1);case 4:return W/8|0;case 8:return W/13|0}},cA=function(q,O){for(var $=q.slice(0),W=q.length,hA=O.length,mA=0;mA=0)for(var EA=0;EA=0;--mA)hA>>W+mA&1&&(hA^=$<>nA&1;return q},uA=function(q){for(var mA=function(JA){for(var WA=0,rt=0;rt=5&&(WA+=JA[rt]-5+3);for(rt=5;rt=4*yA||JA[rt+1]>=4*yA)&&(WA+=40)}return WA},nA=q.length,EA=0,GA=0,et=0;et=nA){for(hA.push(mA|TA>>(it-=nA));it>=8;)hA.push(TA>>(it-=8)&255);mA=0,nA=8}it>0&&(mA|=(TA&(1<>3);nA=function(q,O,$){for(var W=[],hA=q.length/O|0,mA=0,nA=O-q.length%O,EA=0;EA>Mt&1,hA[It+yA][ft+Mt]=1};for(nA(0,0,9,9,[127,65,93,93,93,65,383,0,64]),nA($-8,0,8,9,[256,127,65,93,93,93,65,127]),nA(0,$-8,9,8,[254,130,186,186,186,130,254,0,0]),mA=9;mA<$-8;++mA)W[6][mA]=W[mA][6]=1&~mA,hA[6][mA]=hA[mA][6]=1;var EA=O[2],GA=EA.length;for(mA=0;mA>mt++&1,hA[mA][$-11+TA]=hA[$-11+TA][mA]=1}return{matrix:W,reserved:hA}}(O),GA=EA.matrix,et=EA.reserved;if(function(q,O,$){for(var W=q.length,hA=0,mA=-1,nA=W-1;nA>=0;nA-=2){6==nA&&--nA;for(var EA=mA<0?W-1:0,GA=0;GAnA-2;--et)O[EA][et]||(q[EA][et]=$[hA>>3]>>(7&~hA)&1,++hA);EA+=mA}mA=-mA}}(GA,et,nA),hA<0){_(GA,et,0),dA(GA,0,W,0);var ot=0,TA=uA(GA);for(_(GA,et,0),hA=1;hA<8;++hA){_(GA,et,hA),dA(GA,0,W,hA);var it=uA(GA);TA>it&&(TA=it,ot=hA),_(GA,et,hA)}hA=ot}return _(GA,et,hA),dA(GA,0,W,hA),GA};function SA(q,O){var $={numeric:1,alphanumeric:2,octet:4},hA=(O=O||{}).version||-1,mA={L:1,M:0,Q:3,H:2}[(O.eccLevel||"L").toUpperCase()],nA=O.mode?$[O.mode.toLowerCase()]:-1,EA="mask"in O?O.mask:-1;if(nA<0)nA="string"==typeof q?q.match(h)?1:q.match(g)?2:4:4;else if(1!=nA&&2!=nA&&4!=nA)throw"invalid or unsupported mode";if(null===(q=function(q,O){switch(q){case 1:return O.match(h)?O:null;case 2:return O.match(a)?O.toUpperCase():null;case 4:if("string"==typeof O){for(var $=[],W=0;W>6,128|63&hA):hA<65536?$.push(224|hA>>12,128|hA>>6&63,128|63&hA):$.push(240|hA>>18,128|hA>>12&63,128|hA>>6&63,128|63&hA)}return $}return O}}(nA,q)))throw"invalid data format";if(mA<0||mA>3)throw"invalid ECC level";if(hA<0){for(hA=1;hA<=40&&!(q.length<=AA(hA,nA,mA));++hA);if(hA>40)throw"too large data for the Qr format"}else if(hA<1||hA>40)throw"invalid Qr version! should be between 1 and 40";if(-1!=EA&&(EA<0||EA>8))throw"invalid mask";return CA(q,hA,nA,mA,EA)}Y.exports={measure:function XA(q){var O=function bA(q,O){var $=[],W=O.background||"#fff",hA=O.foreground||"#000",mA=SA(q,O),nA=mA.length,EA=Math.floor(O.fit?O.fit/nA:5),GA=nA*EA;$.push({type:"rect",x:0,y:0,w:GA,h:GA,lineWidth:0,color:W});for(var et=0;et0;)this.styleOverrides.pop()},h.prototype.autopush=function(a){if(c(a))return 0;var g=[];a.style&&(g=i(a.style)?a.style:[a.style]);for(var E=0,u=g.length;E0&&this.pop(E),u},h.prototype.getProperty=function(a){if(this.styleOverrides)for(var g=this.styleOverrides.length-1;g>=0;g--){var E=this.styleOverrides[g];if(c(E)){var u=this.styleDictionary[E];if(u&&!o(u[a])&&!l(u[a]))return u[a]}else if(!o(E[a])&&!l(E[a]))return E[a]}return this.defaultStyle&&this.defaultStyle[a]},Y.exports=h},7601:function(Y,I,n){"use strict";var c=n(6513);function i(h){var a=parseFloat(h);if("number"==typeof a&&!isNaN(a))return a}function o(h){var a;try{a=new c.XmlDocument(h)}catch(g){throw new Error("SVGMeasure: "+g)}if("svg"!==a.name)throw new Error("SVGMeasure: expected document");return a}function l(){}l.prototype.measureSVG=function(h){var a=o(h),g=i(a.attr.width),E=i(a.attr.height);if((null==g||null==E)&&"string"==typeof a.attr.viewBox){var u=a.attr.viewBox.split(/[,\s]+/);if(4!==u.length)throw new Error("Unexpected svg viewbox format, should have 4 entries but found: '"+a.attr.viewBox+"'");null==g&&(g=i(u[2])),null==E&&(E=i(u[3]))}return{width:g,height:E}},l.prototype.writeDimensions=function(h,a){var g=o(h);return g.attr.width=""+a.width,g.attr.height=""+a.height,g.toString()},Y.exports=l},9342:function(Y,I,n){"use strict";var c=n(4498),i=n(6225).isFunction,o=n(6225).isNumber;function l(h){this.tableNode=h}l.prototype.beginTable=function(h){var a,g,E=this;this.offsets=(a=this.tableNode)._offsets,this.layout=a._layout,g=h.context().availableWidth-this.offsets.total,c.buildColumnWidths(a.table.widths,g),this.tableWidth=a._offsets.total+function u(){var f=0;return a.table.widths.forEach(function(B){f+=B._calcWidth}),f}(),this.rowSpanData=function C(){var f=[],B=0,w=0;f.push({left:0,rowSpan:0});for(var Q=0,p=E.tableNode.table.body[0].length;Q0&&D(B+d,Q,0,p.border[0]),void 0!==p.border[2]&&D(B+d,Q+m-1,2,p.border[2]);for(var v=0;v0&&D(B,Q+v,1,p.border[1]),void 0!==p.border[3]&&D(B+S-1,Q+v,3,p.border[3])}}function D(U,T,F,z){var b=f[U][T];b.border=b.border||{},b.border[F]=z}}(this.tableNode.table.body),this.drawHorizontalLine(0,h)},l.prototype.onRowBreak=function(h,a){var g=this;return function(){var E=g.rowPaddingTop+(g.headerRows?0:g.topLineWidth);a.context().availableHeight-=g.reservedAtBottom,a.context().moveDown(E)}},l.prototype.beginRow=function(h,a){this.topLineWidth=this.layout.hLineWidth(h,this.tableNode),this.rowPaddingTop=this.layout.paddingTop(h,this.tableNode),this.bottomLineWidth=this.layout.hLineWidth(h+1,this.tableNode),this.rowPaddingBottom=this.layout.paddingBottom(h,this.tableNode),this.rowCallback=this.onRowBreak(h,a),a.tracker.startTracking("pageChanged",this.rowCallback),this.dontBreakRows&&a.beginUnbreakableBlock(),this.rowTopY=a.context().y,this.reservedAtBottom=this.bottomLineWidth+this.rowPaddingBottom,a.context().availableHeight-=this.reservedAtBottom,a.context().moveDown(this.rowPaddingTop)},l.prototype.drawHorizontalLine=function(h,a,g){var E=this.layout.hLineWidth(h,this.tableNode);if(E){var C,u=this.layout.hLineStyle(h,this.tableNode);u&&u.dash&&(C=u.dash);for(var w,Q,p,e=E/2,f=null,B=this.tableNode.table.body,S=0,m=this.rowSpanData.length;S0&&(T=(w=B[h-1][S]).border?w.border[3]:this.layout.defaultBorder)&&w.borderColor&&(D=w.borderColor[3]),hz;)f.width+=this.rowSpanData[S+z++].width||0;S+=z-1}else if(w&&w.colSpan&&T){for(;w.colSpan>z;)f.width+=this.rowSpanData[S+z++].width||0;S+=z-1}else if(Q&&Q.colSpan&&U){for(;Q.colSpan>z;)f.width+=this.rowSpanData[S+z++].width||0;S+=z-1}else f.width+=this.rowSpanData[S].width||0}var b=(g||0)+e;v&&f&&f.width&&(a.addVector({type:"line",x1:f.left,x2:f.left+f.width,y1:b,y2:b,lineWidth:E,dash:C,lineColor:D},!1,g),f=null,D=null,w=null,Q=null,p=null)}a.context().moveDown(E)}},l.prototype.drawVerticalLine=function(h,a,g,E,u,C,e){var f=this.layout.vLineWidth(E,this.tableNode);if(0!==f){var w,B=this.layout.vLineStyle(E,this.tableNode);B&&B.dash&&(w=B.dash);var p,S,m,Q=this.tableNode.table.body;if(E>0&&(p=Q[C][e])&&p.borderColor&&(p.border?p.border[2]:this.layout.defaultBorder)&&(m=p.borderColor[2]),null==m&&E0&&$--}return O.push({x:C.rowSpanData[C.rowSpanData.length-1].left,index:C.rowSpanData.length-1}),O}(),w=[],Q=g&&g.length>0,p=this.tableNode.table.body;if(w.push({y0:this.rowTopY,page:Q?g[0].prevPage:e}),Q)for(u=0,E=g.length;u0&&!this.headerRows,T=U?0:this.topLineWidth,F=w[d].y0,z=w[d].y1;for(D&&(z+=this.rowPaddingBottom),a.context().page!=w[d].page&&(a.context().page=w[d].page,this.reservedAtBottom=0),u=0,E=B.length;u0&&!b&&(b=(AA=p[h][aA-1]).border?AA.border[2]:this.layout.defaultBorder),aA+11)for(var XA=1;XA1)for(XA=1;XA0&&this.rowSpanData[u].rowSpan--}this.drawHorizontalLine(h+1,a),this.headerRows&&h===this.headerRows-1&&(this.headerRepeatable=a.currentBlockToRepeatable()),this.dontBreakRows&&a.tracker.auto("pageChanged",function(){!C.headerRows&&!1!==C.layout.hLineWhenBroken&&C.drawHorizontalLine(h,a)},function(){a.commitUnbreakableBlock()}),this.headerRepeatable&&(h===this.rowsWithoutPageBreak-1||h===this.tableNode.table.body.length-1)&&(a.commitUnbreakableBlock(),a.pushToRepeatables(this.headerRepeatable),this.cleanUpRepeatables=!0,this.headerRepeatable=null)},Y.exports=l},3497:function(Y,I,n){"use strict";var c=n(6225).isArray,i=n(6225).isPattern,o=n(6225).getPattern;function h(E,u,C,e){var w=E.inlines[0],Q=function f(){for(var BA=0,DA=0,FA=E.inlines.length;DABA?DA:BA;return E.inlines[BA]}(),p=function B(){for(var BA=0,DA=0,FA=E.inlines.length;DA=0&&i.splice(o,1)}},I.prototype.emit=function(n){var c=Array.prototype.slice.call(arguments,1),i=this.events[n];!i||i.forEach(function(o){o.apply(this,c)})},I.prototype.auto=function(n,c,i){this.startTracking(n,c),i(),this.stopTracking(n,c)},Y.exports=I},2480:function(){},5832:function(){},9862:function(){},964:function(){},3083:function(Y,I,n){"use strict";var c=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?n.g:globalThis;Y.exports=function(){for(var l=[],h=0;h{var xr=function(Nt){"use strict";var Pn,Et=Object.prototype,_t=Et.hasOwnProperty,A="function"==typeof Symbol?Symbol:{},Ct=A.iterator||"@@iterator",Y=A.asyncIterator||"@@asyncIterator",I=A.toStringTag||"@@toStringTag";function n(F,z,b){return Object.defineProperty(F,z,{value:b,enumerable:!0,configurable:!0,writable:!0}),F[z]}try{n({},"")}catch(F){n=function(z,b,Z){return z[b]=Z}}function c(F,z,b,Z){var AA=Object.create((z&&z.prototype instanceof E?z:E).prototype),lA=new D(Z||[]);return AA._invoke=function S(F,z,b){var Z=o;return function(AA,lA){if(Z===h)throw new Error("Generator is already running");if(Z===a){if("throw"===AA)throw lA;return T()}for(b.method=AA,b.arg=lA;;){var MA=b.delegate;if(MA){var cA=m(MA,b);if(cA){if(cA===g)continue;return cA}}if("next"===b.method)b.sent=b._sent=b.arg;else if("throw"===b.method){if(Z===o)throw Z=a,b.arg;b.dispatchException(b.arg)}else"return"===b.method&&b.abrupt("return",b.arg);Z=h;var gA=i(F,z,b);if("normal"===gA.type){if(Z=b.done?a:l,gA.arg===g)continue;return{value:gA.arg,done:b.done}}"throw"===gA.type&&(Z=a,b.method="throw",b.arg=gA.arg)}}}(F,b,lA),AA}function i(F,z,b){try{return{type:"normal",arg:F.call(z,b)}}catch(Z){return{type:"throw",arg:Z}}}Nt.wrap=c;var o="suspendedStart",l="suspendedYield",h="executing",a="completed",g={};function E(){}function u(){}function C(){}var e={};n(e,Ct,function(){return this});var f=Object.getPrototypeOf,B=f&&f(f(U([])));B&&B!==Et&&_t.call(B,Ct)&&(e=B);var w=C.prototype=E.prototype=Object.create(e);function Q(F){["next","throw","return"].forEach(function(z){n(F,z,function(b){return this._invoke(z,b)})})}function p(F,z){function b(AA,lA,MA,cA){var gA=i(F[AA],F,lA);if("throw"!==gA.type){var BA=gA.arg,DA=BA.value;return DA&&"object"==typeof DA&&_t.call(DA,"__await")?z.resolve(DA.__await).then(function(FA){b("next",FA,MA,cA)},function(FA){b("throw",FA,MA,cA)}):z.resolve(DA).then(function(FA){BA.value=FA,MA(BA)},function(FA){return b("throw",FA,MA,cA)})}cA(gA.arg)}var Z;this._invoke=function aA(AA,lA){function MA(){return new z(function(cA,gA){b(AA,lA,cA,gA)})}return Z=Z?Z.then(MA,MA):MA()}}function m(F,z){var b=F.iterator[z.method];if(b===Pn){if(z.delegate=null,"throw"===z.method){if(F.iterator.return&&(z.method="return",z.arg=Pn,m(F,z),"throw"===z.method))return g;z.method="throw",z.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var Z=i(b,F.iterator,z.arg);if("throw"===Z.type)return z.method="throw",z.arg=Z.arg,z.delegate=null,g;var aA=Z.arg;return aA?aA.done?(z[F.resultName]=aA.value,z.next=F.nextLoc,"return"!==z.method&&(z.method="next",z.arg=Pn),z.delegate=null,g):aA:(z.method="throw",z.arg=new TypeError("iterator result is not an object"),z.delegate=null,g)}function d(F){var z={tryLoc:F[0]};1 in F&&(z.catchLoc=F[1]),2 in F&&(z.finallyLoc=F[2],z.afterLoc=F[3]),this.tryEntries.push(z)}function v(F){var z=F.completion||{};z.type="normal",delete z.arg,F.completion=z}function D(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(d,this),this.reset(!0)}function U(F){if(F){var z=F[Ct];if(z)return z.call(F);if("function"==typeof F.next)return F;if(!isNaN(F.length)){var b=-1,Z=function aA(){for(;++b=0;--Z){var aA=this.tryEntries[Z],AA=aA.completion;if("root"===aA.tryLoc)return b("end");if(aA.tryLoc<=this.prev){var lA=_t.call(aA,"catchLoc"),MA=_t.call(aA,"finallyLoc");if(lA&&MA){if(this.prev=0;--b){var Z=this.tryEntries[b];if(Z.tryLoc<=this.prev&&_t.call(Z,"finallyLoc")&&this.prev=0;--z){var b=this.tryEntries[z];if(b.finallyLoc===F)return this.complete(b.completion,b.afterLoc),v(b),g}},catch:function(F){for(var z=this.tryEntries.length-1;z>=0;--z){var b=this.tryEntries[z];if(b.tryLoc===F){var Z=b.completion;if("throw"===Z.type){var aA=Z.arg;v(b)}return aA}}throw new Error("illegal catch attempt")},delegateYield:function(F,z,b){return this.delegate={iterator:U(F),resultName:z,nextLoc:b},"next"===this.method&&(this.arg=Pn),g}},Nt}(oi.exports);try{regeneratorRuntime=xr}catch(Nt){"object"==typeof globalThis?globalThis.regeneratorRuntime=xr:Function("r","regeneratorRuntime = r")(xr)}},7757:(oi,xr,Nt)=>{oi.exports=Nt(4979)}}]);