(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[632],{7632:(ci,Fr,St)=>{"use strict";St.r(Fr),St.d(Fr,{CLModule:()=>mB});var ht=St(9808),Ae=St(9291),zn=St(8878),A=St(5e3),Qt=St(7093),Y=St(5899);function I(i,U){1&i&&A._UZ(0,"mat-progress-bar",3)}let n=(()=>{class i{constructor(t){this.router=t,this.loading=!1,this.router.events.subscribe(B=>{switch(!0){case B instanceof Ae.OD:this.loading=!0;break;case B instanceof Ae.m2:case B instanceof Ae.gk:case B instanceof Ae.Q3:this.loading=!1}})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(Ae.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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,B){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",B.loading))},directives:[Qt.xw,Qt.yH,Qt.Wh,ht.O5,Ae.lC,Y.pW],styles:[""],data:{animation:[zn.g]}}),i})();var c=St(7579),r=St(2722),a=St(1365),s=St(534),E=St(801),o=St(7731),l=St(7080),h=St(5043),u=St(5620),C=St(6642),e=St(62),f=St(9444),g=St(3954),w=St(9224),Q=St(2181),d=St(3322),F=St(7423),m=St(5245);const p=function(i){return{backgroundColor:i}};function D(i,U){if(1&i&&A._UZ(0,"span",6),2&i){const t=A.oxw();A.Q6J("ngStyle",A.VKq(1,p,"#"+(null==t.information?null:t.information.color)))}}function v(i,U){if(1&i&&(A.TgZ(0,"div"),A.TgZ(1,"h4",1),A._uU(2,"Color"),A.qZA(),A.TgZ(3,"div",2),A._UZ(4,"span",7),A._uU(5),A.ALo(6,"uppercase"),A.qZA(),A.qZA()),2&i){const t=A.oxw();A.xp6(4),A.Q6J("ngStyle",A.VKq(4,p,"#"+(null==t.information?null:t.information.color))),A.xp6(1),A.hij(" ",A.lcZ(6,2,null==t.information?null:t.information.color)," ")}}function P(i,U){if(1&i&&(A.TgZ(0,"span",2),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.Oqu(t)}}let T=(()=>{class i{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 i.\u0275fac=function(t){return new(t||i)(A.Y36(e.v))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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,B){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div"),A.TgZ(2,"h4",1),A._uU(3,"Alias"),A.qZA(),A.TgZ(4,"div",2),A._uU(5),A.YNc(6,D,1,3,"span",3),A.qZA(),A.qZA(),A.YNc(7,v,7,6,"div",4),A.TgZ(8,"div"),A.TgZ(9,"h4",1),A._uU(10,"Implementation"),A.qZA(),A.TgZ(11,"div",2),A._uU(12),A.qZA(),A.qZA(),A.TgZ(13,"div"),A.TgZ(14,"h4",1),A._uU(15,"Chain"),A.qZA(),A.YNc(16,P,2,1,"span",5),A.qZA(),A.qZA()),2&t&&(A.xp6(5),A.hij(" ",null==B.information?null:B.information.alias," "),A.xp6(1),A.Q6J("ngIf",!B.showColorFieldSeparately),A.xp6(1),A.Q6J("ngIf",B.showColorFieldSeparately),A.xp6(5),A.Oqu(null!=B.information&&B.information.lnImplementation||null!=B.information&&B.information.version?(null==B.information?null:B.information.lnImplementation)+" "+(null==B.information?null:B.information.version):""),A.xp6(4),A.Q6J("ngForOf",B.chains))},directives:[Qt.xw,Qt.yH,Qt.Wh,ht.O5,ht.sg,ht.PC,d.Zl],pipes:[ht.gd],styles:[""]}),i})();function x(i,U){if(1&i&&(A.TgZ(0,"div",2),A.TgZ(1,"div"),A.TgZ(2,"h4",3),A._uU(3,"Lightning"),A.qZA(),A.TgZ(4,"div",4),A._uU(5),A.ALo(6,"number"),A.qZA(),A._UZ(7,"mat-progress-bar",5),A.qZA(),A.TgZ(8,"div"),A.TgZ(9,"h4",3),A._uU(10,"On-chain"),A.qZA(),A.TgZ(11,"div",4),A._uU(12),A.ALo(13,"number"),A.qZA(),A._UZ(14,"mat-progress-bar",5),A.qZA(),A.TgZ(15,"div"),A.TgZ(16,"h4",3),A._uU(17,"Total"),A.qZA(),A.TgZ(18,"div",4),A._uU(19),A.ALo(20,"number"),A.qZA(),A.qZA(),A.qZA()),2&i){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 R(i,U){if(1&i&&(A.TgZ(0,"div",6),A.TgZ(1,"p"),A._uU(2),A.qZA(),A.qZA()),2&i){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let N=(()=>{class i{constructor(){this.balances={onchain:0,lightning:0,total:0}}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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,B){if(1&t&&(A.YNc(0,x,21,11,"div",0),A.YNc(1,R,3,1,"ng-template",null,1,A.W1O)),2&t){const k=A.MAs(2);A.Q6J("ngIf",""===(null==B.errorMessage?null:B.errorMessage.trim()))("ngIfElse",k)}},directives:[ht.O5,Qt.xw,Qt.yH,Qt.Wh,Y.pW],pipes:[ht.JJ],styles:[""]}),i})();var V=St(7322),aA=St(7238),AA=St(4834),gA=St(644);function MA(i,U){if(1&i&&(A.TgZ(0,"div",19),A.TgZ(1,"span",20),A._uU(2),A.ALo(3,"slice"),A.qZA(),A.TgZ(4,"div",6),A.TgZ(5,"mat-hint",21),A.TgZ(6,"strong",8),A._uU(7,"Local:"),A.qZA(),A._uU(8),A.ALo(9,"number"),A.qZA(),A.TgZ(10,"mat-hint",22),A._UZ(11,"fa-icon",23),A._uU(12),A.ALo(13,"number"),A.qZA(),A.TgZ(14,"mat-hint",24),A.TgZ(15,"strong",8),A._uU(16,"Remote:"),A.qZA(),A._uU(17),A.ALo(18,"number"),A.qZA(),A.qZA(),A._UZ(19,"mat-progress-bar",25),A.qZA()),2&i){const t=U.$implicit,B=A.oxw(3);A.xp6(1),A.s9C("matTooltip",t.alias||t.id),A.s9C("matTooltipDisabled",(t.alias||t.id).length<26),A.xp6(1),A.AsE("",A.Dn7(3,9,t.alias||t.id,0,24),"",(t.alias||t.id).length>25?"...":"",""),A.xp6(6),A.hij("",A.xi3(9,13,t.msatoshi_to_us/1e3||0,"1.0-0")," Sats"),A.xp6(3),A.Q6J("icon",B.faBalanceScale),A.xp6(1),A.hij(" (",A.lcZ(13,16,t.balancedness||0),") "),A.xp6(5),A.hij("",A.xi3(18,18,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 cA(i,U){if(1&i&&(A.TgZ(0,"div",17),A.YNc(1,MA,20,21,"div",18),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("ngForOf",t.activeChannels)}}function lA(i,U){if(1&i&&(A.TgZ(0,"div",3),A.TgZ(1,"div",4),A.TgZ(2,"span",5),A._uU(3,"Total Capacity"),A.qZA(),A.TgZ(4,"div",6),A.TgZ(5,"mat-hint",7),A.TgZ(6,"strong",8),A._uU(7,"Local:"),A.qZA(),A._uU(8),A.ALo(9,"number"),A.qZA(),A.TgZ(10,"mat-hint",9),A._UZ(11,"fa-icon",10),A._uU(12),A.ALo(13,"number"),A.qZA(),A.TgZ(14,"mat-hint",11),A.TgZ(15,"strong",8),A._uU(16,"Remote:"),A.qZA(),A._uU(17),A.ALo(18,"number"),A.qZA(),A.qZA(),A._UZ(19,"mat-progress-bar",12),A.qZA(),A.TgZ(20,"div",13),A._UZ(21,"mat-divider",14),A.qZA(),A.TgZ(22,"div",15),A.YNc(23,cA,2,1,"div",16),A.qZA(),A.qZA()),2&i){const t=A.oxw(),B=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",B)}}function BA(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"div",26),A._uU(1," No channels available. "),A.TgZ(2,"button",27),A.NdJ("click",function(){return A.CHM(t),A.oxw().goToChannels()}),A._uU(3,"Open Channel"),A.qZA(),A.qZA()}}function vA(i,U){if(1&i&&(A.TgZ(0,"div",28),A.TgZ(1,"p"),A._uU(2),A.qZA(),A.qZA()),2&i){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let xA=(()=>{class i{constructor(t){this.router=t,this.faBalanceScale=E.DL8,this.faDumbbell=E.FlN,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/cl/connections")}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(Ae.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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,"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,B){if(1&t&&(A.YNc(0,lA,24,15,"div",0),A.YNc(1,BA,4,0,"ng-template",null,1,A.W1O),A.YNc(3,vA,3,1,"ng-template",null,2,A.W1O)),2&t){const k=A.MAs(4);A.Q6J("ngIf",""===(null==B.errorMessage?null:B.errorMessage.trim()))("ngIfElse",k)}},directives:[ht.O5,Qt.xw,Qt.Wh,Qt.yH,V.bx,f.BN,aA.gM,Y.pW,AA.d,gA.$V,ht.sg,F.lW],pipes:[ht.JJ,ht.OU],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),i})();function _(i,U){if(1&i&&(A.TgZ(0,"div",2),A.TgZ(1,"div",3),A.TgZ(2,"div"),A.TgZ(3,"h4",4),A._uU(4,"Total"),A.qZA(),A.TgZ(5,"div",5),A._uU(6),A.ALo(7,"number"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(8,"div",3),A.TgZ(9,"div"),A.TgZ(10,"h4",4),A._uU(11,"Transactions"),A.qZA(),A.TgZ(12,"div",5),A._uU(13),A.ALo(14,"number"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&i){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 QA(i,U){if(1&i&&(A.TgZ(0,"div",6),A.TgZ(1,"p"),A._uU(2),A.qZA(),A.qZA()),2&i){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let uA=(()=>{class i{constructor(){this.totalFees=[{name:"Total",value:0}]}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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,B){if(1&t&&(A.YNc(0,_,15,6,"div",0),A.YNc(1,QA,3,1,"ng-template",null,1,A.W1O)),2&t){const k=A.MAs(2);A.Q6J("ngIf",""===(null==B.errorMessage?null:B.errorMessage.trim()))("ngIfElse",k)}},directives:[ht.O5,Qt.xw,Qt.yH,Qt.Wh],pipes:[ht.JJ],styles:[""]}),i})();function CA(i,U){if(1&i&&(A.TgZ(0,"div",2),A.TgZ(1,"div",3),A.TgZ(2,"div"),A.TgZ(3,"h4",4),A._uU(4,"Active"),A.qZA(),A.TgZ(5,"div",5),A._UZ(6,"span",6),A._uU(7),A.ALo(8,"number"),A.qZA(),A.qZA(),A.TgZ(9,"div"),A.TgZ(10,"h4",4),A._uU(11,"Pending"),A.qZA(),A.TgZ(12,"div",5),A._UZ(13,"span",7),A._uU(14),A.ALo(15,"number"),A.qZA(),A.qZA(),A.TgZ(16,"div"),A.TgZ(17,"h4",4),A._uU(18,"Inactive"),A.qZA(),A.TgZ(19,"div",5),A._UZ(20,"span",8),A._uU(21),A.ALo(22,"number"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(23,"div",3),A.TgZ(24,"div"),A.TgZ(25,"h4",4),A._uU(26,"Capacity"),A.qZA(),A.TgZ(27,"div",5),A._uU(28),A.ALo(29,"number"),A.qZA(),A.qZA(),A.TgZ(30,"div"),A.TgZ(31,"h4",4),A._uU(32,"Capacity"),A.qZA(),A.TgZ(33,"div",5),A._uU(34),A.ALo(35,"number"),A.qZA(),A.qZA(),A.TgZ(36,"div"),A.TgZ(37,"h4",4),A._uU(38,"Capacity"),A.qZA(),A.TgZ(39,"div",5),A._uU(40),A.ALo(41,"number"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&i){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 TA(i,U){if(1&i&&(A.TgZ(0,"div",9),A.TgZ(1,"p"),A._uU(2),A.qZA(),A.qZA()),2&i){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let GA=(()=>{class i{constructor(){this.channelsStatus={active:{},pending:{},inactive:{}}}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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,B){if(1&t&&(A.YNc(0,CA,42,18,"div",0),A.YNc(1,TA,3,1,"ng-template",null,1,A.W1O)),2&t){const k=A.MAs(2);A.Q6J("ngIf",""===(null==B.errorMessage?null:B.errorMessage.trim()))("ngIfElse",k)}},directives:[ht.O5,Qt.xw,Qt.yH,Qt.Wh],pipes:[ht.JJ],styles:[""]}),i})();function VA(i,U){if(1&i&&(A.TgZ(0,"mat-hint",19),A.TgZ(1,"strong",20),A._uU(2,"Capacity: "),A.qZA(),A._uU(3),A.ALo(4,"number"),A.qZA()),2&i){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 q(i,U){if(1&i&&(A.TgZ(0,"mat-hint",19),A.TgZ(1,"strong",20),A._uU(2,"Capacity: "),A.qZA(),A._uU(3),A.ALo(4,"number"),A.qZA()),2&i){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 J(i,U){if(1&i&&A._UZ(0,"mat-progress-bar",21),2&i){const t=A.oxw().$implicit,B=A.oxw(3);A.s9C("value",B.totalLiquidity>0?(+t.msatoshi_to_them/1e3||0)/B.totalLiquidity*100:0)}}function $(i,U){if(1&i&&A._UZ(0,"mat-progress-bar",21),2&i){const t=A.oxw().$implicit,B=A.oxw(3);A.s9C("value",B.totalLiquidity>0?(+t.msatoshi_to_us/1e3||0)/B.totalLiquidity*100:0)}}function W(i,U){if(1&i&&(A.TgZ(0,"div",14),A.TgZ(1,"span",15),A._uU(2),A.ALo(3,"slice"),A.qZA(),A.TgZ(4,"div",16),A.YNc(5,VA,5,4,"mat-hint",17),A.YNc(6,q,5,4,"mat-hint",17),A.qZA(),A.YNc(7,J,1,1,"mat-progress-bar",18),A.YNc(8,$,1,1,"mat-progress-bar",18),A.qZA()),2&i){const t=U.$implicit,B=A.oxw(3);A.xp6(1),A.s9C("matTooltip",t.alias||t.id),A.s9C("matTooltipDisabled",(t.alias||t.id).length<26),A.xp6(1),A.AsE("",A.Dn7(3,8,t.alias||t.id,0,24),"",(t.alias||t.id).length>25?"...":"",""),A.xp6(3),A.Q6J("ngIf","In"===B.direction),A.xp6(1),A.Q6J("ngIf","Out"===B.direction),A.xp6(1),A.Q6J("ngIf","In"===B.direction),A.xp6(1),A.Q6J("ngIf","Out"===B.direction)}}function EA(i,U){if(1&i&&(A.TgZ(0,"div",12),A.YNc(1,W,9,12,"div",13),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("ngForOf",t.activeChannels)}}const DA=function(i,U,t){return{"mb-4":i,"mb-2":U,"mb-1":t}};function rA(i,U){if(1&i&&(A.TgZ(0,"div",3),A.TgZ(1,"div",4),A.TgZ(2,"span",5),A._uU(3,"Total Capacity"),A.qZA(),A.TgZ(4,"mat-hint",6),A._uU(5),A.ALo(6,"number"),A.qZA(),A._UZ(7,"mat-progress-bar",7),A.qZA(),A.TgZ(8,"div",8),A._UZ(9,"mat-divider",9),A.qZA(),A.TgZ(10,"div",10),A.YNc(11,EA,2,1,"div",11),A.qZA(),A.qZA()),2&i){const t=A.oxw(),B=A.MAs(2);A.Q6J("ngClass",A.kEZ(7,DA,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",B)}}function hA(i,U){if(1&i){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 HA(i,U){if(1&i&&(A.TgZ(0,"div",22),A._uU(1," No channels available. "),A.YNc(2,hA,2,0,"button",23),A.qZA()),2&i){const t=A.oxw();A.xp6(2),A.Q6J("ngIf","Out"===t.direction)}}function nt(i,U){if(1&i&&(A.TgZ(0,"div",25),A.TgZ(1,"p"),A._uU(2),A.qZA(),A.qZA()),2&i){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let st=(()=>{class i{constructor(t,B){this.router=t,this.commonService=B,this.screenSize="",this.screenSizeEnum=o.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}goToChannels(){this.router.navigateByUrl("/cl/connections")}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(Ae.F0),A.Y36(e.v))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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,"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,B){if(1&t&&(A.YNc(0,rA,12,11,"div",0),A.YNc(1,HA,3,1,"ng-template",null,1,A.W1O),A.YNc(3,nt,3,1,"ng-template",null,2,A.W1O)),2&t){const k=A.MAs(4);A.Q6J("ngIf",""===(null==B.errorMessage?null:B.errorMessage.trim()))("ngIfElse",k)}},directives:[ht.O5,Qt.xw,Qt.Wh,Qt.yH,ht.mk,d.oO,V.bx,Y.pW,AA.d,gA.$V,ht.sg,aA.gM,F.lW],pipes:[ht.JJ,ht.OU],styles:[""]}),i})();var yA=St(3251),_A=St(9300),ft=St(6087),lt=St(4847),SA=St(2075),OA=St(8966),WA=St(1443),zA=St(3075),ot=St(7531),It=St(3390),dt=St(6534),vt=St(4107),Pt=St(2368),G=St(508);function O(i,U){if(1&i&&(A.TgZ(0,"mat-option",26),A._uU(1),A.ALo(2,"titlecase"),A.qZA()),2&i){const t=U.$implicit;A.Q6J("value",t),A.xp6(1),A.Oqu(A.lcZ(2,2,t))}}function L(i,U){if(1&i&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.invoiceError)}}function dA(i,U){if(1&i&&(A.TgZ(0,"div",27),A._UZ(1,"fa-icon",28),A.YNc(2,L,2,1,"span",29),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.invoiceError)}}let wA=(()=>{class i{constructor(t,B,k,FA,pt,Ye){this.dialogRef=t,this.data=B,this.store=k,this.decimalPipe=FA,this.commonService=pt,this.actions=Ye,this.faExclamationTriangle=E.eHv,this.selNode={},this.description="",this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=o.IV,this.timeUnitEnum=o.Qk,this.timeUnits=o.LO,this.selTimeUnit=o.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(l.Jo).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(l.W3).pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.actions.pipe((0,r.R)(this.unSubs[2]),(0,_A.h)(t=>t.type===o.sW.UPDATE_API_CALL_STATUS_CL)).subscribe(t=>{t.type===o.sW.UPDATE_API_CALL_STATUS_CL&&"SaveNewInvoice"===t.payload.action&&(t.payload.status===o.Bn.ERROR&&(this.invoiceError=t.payload.message),t.payload.status===o.Bn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(t){this.invoiceError="",this.invoiceValue||(this.invoiceValue=0);let B=this.expiry?this.expiry:3600;this.selTimeUnit!==o.Qk.SECS&&(B=this.commonService.convertTime(this.expiry,this.selTimeUnit,o.Qk.SECS)),this.store.dispatch((0,WA.Rd)({payload:{label:"ulbl"+Math.random().toString(36).slice(2)+Date.now(),amount:1e3*this.invoiceValue,description:this.description,expiry:B,private:this.private}}))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=o.Qk.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,o.NT.SATS,o.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,r.R)(this.unSubs[3])).subscribe({next:t=>{this.invoiceValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,o.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 i.\u0275fac=function(t){return new(t||i)(A.Y36(OA.so),A.Y36(OA.WI),A.Y36(u.yh),A.Y36(ht.JJ),A.Y36(e.v),A.Y36(C.eX))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-create-invoices"]],decls:37,vars:17,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","matTooltip","Include routing hints for private channels","name","private",3,"ngModel","matTooltipPosition","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","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,B){if(1&t){const k=A.EpF();A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A.TgZ(4,"span",4),A._uU(5,"Create Invoice"),A.qZA(),A.qZA(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA(),A.qZA(),A.TgZ(8,"mat-card-content",6),A.TgZ(9,"form",7,8),A.TgZ(11,"mat-form-field",9),A.TgZ(12,"input",10),A.NdJ("ngModelChange",function(pt){return B.description=pt}),A.qZA(),A.qZA(),A.TgZ(13,"div",11),A.TgZ(14,"mat-form-field",12),A.TgZ(15,"input",13),A.NdJ("ngModelChange",function(pt){return B.invoiceValue=pt})("keyup",function(){return B.onInvoiceValueChange()}),A.qZA(),A.TgZ(16,"span",14),A._uU(17," Sats "),A.qZA(),A.TgZ(18,"mat-hint"),A._uU(19),A.qZA(),A.qZA(),A.TgZ(20,"mat-form-field",15),A.TgZ(21,"input",16),A.NdJ("ngModelChange",function(pt){return B.expiry=pt}),A.qZA(),A.TgZ(22,"span",14),A._uU(23),A.ALo(24,"titlecase"),A.qZA(),A.qZA(),A.TgZ(25,"mat-form-field",17),A.TgZ(26,"mat-select",18),A.NdJ("selectionChange",function(pt){return B.onTimeUnitChange(pt)}),A.YNc(27,O,3,4,"mat-option",19),A.qZA(),A.qZA(),A.qZA(),A.TgZ(28,"div",20),A.TgZ(29,"mat-slide-toggle",21),A.NdJ("ngModelChange",function(pt){return B.private=pt}),A._uU(30,"Private Routing Hints"),A.qZA(),A.qZA(),A.YNc(31,dA,3,2,"div",22),A.TgZ(32,"div",23),A.TgZ(33,"button",24),A.NdJ("click",function(){return B.resetData()}),A._uU(34,"Clear Field"),A.qZA(),A.TgZ(35,"button",25),A.NdJ("click",function(){A.CHM(k);const pt=A.MAs(10);return B.onAddInvoice(pt)}),A._uU(36,"Create Invoice"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()}2&t&&(A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(6),A.Q6J("ngModel",B.description),A.xp6(3),A.Q6J("ngModel",B.invoiceValue)("step",100)("min",1),A.xp6(4),A.Oqu(B.invoiceValueHint),A.xp6(2),A.Q6J("ngModel",B.expiry)("step",B.selTimeUnit===B.timeUnitEnum.SECS?300:B.selTimeUnit===B.timeUnitEnum.MINS?10:B.selTimeUnit===B.timeUnitEnum.HOURS?2:1)("min",1),A.xp6(2),A.hij(" ",A.lcZ(24,15,B.selTimeUnit)," "),A.xp6(3),A.Q6J("value",B.selTimeUnit),A.xp6(1),A.Q6J("ngForOf",B.timeUnits),A.xp6(2),A.Q6J("ngModel",B.private)("matTooltipPosition","above"),A.xp6(2),A.Q6J("ngIf",""!==B.invoiceError))},directives:[Qt.xw,Qt.yH,w.dk,Qt.Wh,F.lW,OA.ZT,w.dn,zA._Y,zA.JL,zA.F,V.KE,ot.Nt,zA.Fj,It.h,zA.JJ,zA.On,zA.wV,zA.qQ,dt.q,V.R9,V.bx,vt.gD,ht.sg,Pt.Rr,aA.gM,ht.O5,G.ey,f.BN],pipes:[ht.rS],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),i})();var RA=St(1954),eA=St(7861),at=St(3093);function Ft(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"form",4,5),A.TgZ(2,"mat-form-field",6),A.TgZ(3,"input",7),A.NdJ("ngModelChange",function(k){return A.CHM(t),A.oxw().description=k}),A.qZA(),A.qZA(),A.TgZ(4,"mat-form-field",8),A.TgZ(5,"input",9),A.NdJ("ngModelChange",function(k){return A.CHM(t),A.oxw().invoiceValue=k})("keyup",function(){return A.CHM(t),A.oxw().onInvoiceValueChange()}),A.qZA(),A.TgZ(6,"span",10),A._uU(7," Sats "),A.qZA(),A.TgZ(8,"mat-hint"),A._uU(9),A.qZA(),A.qZA(),A.TgZ(10,"div",11),A.TgZ(11,"button",12),A.NdJ("click",function(){return A.CHM(t),A.oxw().resetData()}),A._uU(12,"Clear Field"),A.qZA(),A.TgZ(13,"button",13),A.NdJ("click",function(){A.CHM(t);const k=A.MAs(1);return A.oxw().onAddInvoice(k)}),A._uU(14,"Create Invoice"),A.qZA(),A.qZA(),A.qZA()}if(2&i){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 j(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"div",14),A.TgZ(1,"button",15),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDeleteExpiredInvoices()}),A._uU(2,"Delete Expired"),A.qZA(),A.TgZ(3,"button",16),A.NdJ("click",function(){return A.CHM(t),A.oxw().openCreateInvoiceModal()}),A._uU(4,"Create Invoice"),A.qZA(),A.qZA()}}function XA(i,U){1&i&&A._UZ(0,"mat-progress-bar",46)}function et(i,U){1&i&&(A.TgZ(0,"th",47),A._uU(1," Expiry Date "),A.qZA())}const mA=function(i){return{"mr-0":i}};function jA(i,U){if(1&i&&A._UZ(0,"span",52),2&i){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,mA,t.screenSize===t.screenSizeEnum.XS))}}function ct(i,U){if(1&i&&A._UZ(0,"span",53),2&i){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,mA,t.screenSize===t.screenSizeEnum.XS))}}function bt(i,U){if(1&i&&A._UZ(0,"span",54),2&i){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,mA,t.screenSize===t.screenSizeEnum.XS))}}function yt(i,U){if(1&i&&(A.TgZ(0,"td",48),A.YNc(1,jA,1,3,"span",49),A.YNc(2,ct,1,3,"span",50),A.YNc(3,bt,1,3,"span",51),A._uU(4),A.ALo(5,"date"),A.qZA()),2&i){const t=U.$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/YYYY HH:mm")," ")}}function Rt(i,U){1&i&&(A.TgZ(0,"th",47),A._uU(1," Date Settled "),A.qZA())}function Kt(i,U){if(1&i&&(A.TgZ(0,"td",48),A._uU(1),A.ALo(2,"date"),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.paid_at),"dd/MMM/YYYY HH:mm")||"-")}}function Ne(i,U){1&i&&(A.TgZ(0,"th",47),A._uU(1," Type "),A.qZA())}function ie(i,U){if(1&i&&(A.TgZ(0,"td",48),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11&&!t.label.includes("keysend-")?"Bolt11":"Keysend")}}function $t(i,U){1&i&&(A.TgZ(0,"th",47),A._uU(1," Description "),A.qZA())}const me=function(i){return{"max-width":i}};function be(i,U){if(1&i&&(A.TgZ(0,"td",48),A.TgZ(1,"div",55),A.TgZ(2,"span",56),A._uU(3),A.qZA(),A.qZA(),A.qZA()),2&i){const t=U.$implicit,B=A.oxw(2);A.xp6(1),A.Q6J("ngStyle",A.VKq(2,me,B.screenSize===B.screenSizeEnum.XS?"10rem":"32rem")),A.xp6(2),A.Oqu(null==t?null:t.description)}}function Re(i,U){1&i&&(A.TgZ(0,"th",57),A._uU(1," Amount (Sats) "),A.qZA())}function mn(i,U){if(1&i&&(A.TgZ(0,"td",48),A.TgZ(1,"span",58),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$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 yn(i,U){1&i&&(A.TgZ(0,"th",57),A._uU(1," Amount Settled (Sats) "),A.qZA())}function ne(i,U){if(1&i&&(A.TgZ(0,"td",48),A.TgZ(1,"span",58),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$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 An(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"th",59),A.TgZ(1,"div",60),A.TgZ(2,"mat-select",61),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",62),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}const Se=function(i){return{"px-3":i}};function tn(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"td",63),A.TgZ(1,"div",64),A.TgZ(2,"mat-select",65),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",62),A.NdJ("click",function(){const FA=A.CHM(t).$implicit;return A.oxw(2).onInvoiceClick(FA)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",62),A.NdJ("click",function(){const FA=A.CHM(t).$implicit;return A.oxw(2).onRefreshInvoice(FA)}),A._uU(7,"Refresh"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&i){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Se,t.screenSize!==t.screenSizeEnum.XS))}}function qe(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"No invoice available."),A.qZA())}function Ln(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting invoices..."),A.qZA())}function Gn(i,U){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function Jt(i,U){if(1&i&&(A.TgZ(0,"td",66),A.YNc(1,qe,2,0,"p",67),A.YNc(2,Ln,2,0,"p",67),A.YNc(3,Gn,2,1,"p",67),A.qZA()),2&i){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 Lt=function(i){return{"display-none":i}};function Xt(i,U){if(1&i&&A._UZ(0,"tr",68),2&i){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Lt,(null==t.invoices?null:t.invoices.data)&&(null==t.invoices||null==t.invoices.data?null:t.invoices.data.length)>0))}}function oe(i,U){1&i&&A._UZ(0,"tr",69)}function In(i,U){1&i&&A._UZ(0,"tr",70)}const Mn=function(i){return{"overflow-auto error-border":i,"overflow-auto":!0}},Fn=function(){return["no_invoice"]};function Kn(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"div",17),A.TgZ(1,"div",18),A.TgZ(2,"div",19),A._UZ(3,"fa-icon",20),A.TgZ(4,"span",21),A._uU(5,"Invoices History"),A.qZA(),A.qZA(),A.TgZ(6,"mat-form-field",22),A.TgZ(7,"input",23),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(k){return A.CHM(t),A.oxw().selFilter=k}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(8,"div",24),A.YNc(9,XA,1,0,"mat-progress-bar",25),A.TgZ(10,"table",26,27),A.ynx(12,28),A.YNc(13,et,2,0,"th",29),A.YNc(14,yt,6,7,"td",30),A.BQk(),A.ynx(15,31),A.YNc(16,Rt,2,0,"th",29),A.YNc(17,Kt,3,4,"td",30),A.BQk(),A.ynx(18,32),A.YNc(19,Ne,2,0,"th",29),A.YNc(20,ie,2,1,"td",30),A.BQk(),A.ynx(21,33),A.YNc(22,$t,2,0,"th",29),A.YNc(23,be,4,4,"td",30),A.BQk(),A.ynx(24,34),A.YNc(25,Re,2,0,"th",35),A.YNc(26,mn,4,4,"td",30),A.BQk(),A.ynx(27,36),A.YNc(28,yn,2,0,"th",35),A.YNc(29,ne,4,4,"td",30),A.BQk(),A.ynx(30,37),A.YNc(31,An,6,0,"th",38),A.YNc(32,tn,8,3,"td",39),A.BQk(),A.ynx(33,40),A.YNc(34,Jt,4,3,"td",41),A.BQk(),A.YNc(35,Xt,1,3,"tr",42),A.YNc(36,oe,1,0,"tr",43),A.YNc(37,In,1,0,"tr",44),A.qZA(),A.qZA(),A._UZ(38,"mat-paginator",45),A.qZA()}if(2&i){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,Mn,""!==t.errorMessage)),A.xp6(25),A.Q6J("matFooterRowDef",A.DdM(14,Fn)),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 nr=(()=>{class i{constructor(t,B,k,FA,pt,Ye,vn){this.logger=t,this.store=B,this.decimalPipe=k,this.commonService=FA,this.rtlEffects=pt,this.datePipe=Ye,this.actions=vn,this.calledFrom="transactions",this.faHistory=E.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=o.IV,this.pageSizeOptions=o.TJ,this.screenSize="",this.screenSizeEnum=o.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=o.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===o.cu.XS?(this.flgSticky=!1,this.displayedColumns=["expires_at","msatoshi","actions"]):this.screenSize===o.cu.SM?(this.flgSticky=!1,this.displayedColumns=["expires_at","description","msatoshi","actions"]):this.screenSize===o.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(l.Jo).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(l.W3).pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(l.gc).pipe((0,r.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===o.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,r.R)(this.unSubs[3]),(0,_A.h)(t=>t.type===o.sW.SET_LOOKUP_CL||t.type===o.sW.UPDATE_API_CALL_STATUS_CL)).subscribe(t=>{t.type===o.sW.SET_LOOKUP_CL&&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,eA.qR)({payload:{data:{pageSize:this.pageSize,component:wA}}}))}onAddInvoice(t){this.invoiceValue||(this.invoiceValue=0);const B=this.expiry?this.expiry:3600;this.newlyAddedInvoiceMemo="ulbl"+Math.random().toString(36).slice(2)+Date.now(),this.newlyAddedInvoiceValue=this.invoiceValue,this.store.dispatch((0,WA.Rd)({payload:{label:this.newlyAddedInvoiceMemo,amount:1e3*this.invoiceValue,description:this.description,expiry:B,private:this.private}})),this.resetData()}onDeleteExpiredInvoices(){this.store.dispatch((0,eA.c1)({payload:{data:{type:"CONFIRM",titleMessage:"Delete Expired Invoices",noBtnText:"Cancel",yesBtnText:"Delete Invoices"}}})),this.rtlEffects.closeConfirm.pipe((0,r.R)(this.unSubs[4])).subscribe(t=>{t&&this.store.dispatch((0,WA.g6)({payload:null}))})}onInvoiceClick(t){this.store.dispatch((0,eA.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:RA.$}}}))}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,o.NT.SATS,o.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,r.R)(this.unSubs[5])).subscribe({next:t=>{this.invoiceValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,o.Xz.OTHER)+" "+t.unit},error:t=>{this.invoiceValueHint="Conversion Error: "+t}}))}onRefreshInvoice(t){this.store.dispatch((0,WA.n7)({payload:t.label}))}updateInvoicesData(t){this.invoiceJSONArr=this.invoiceJSONArr.map(B=>B.label===t.label?t:B)}loadInvoicesTable(t){this.invoices=new SA.by(t?[...t]:[]),this.invoices.sortingDataAccessor=(B,k)=>B[k]&&isNaN(B[k])?B[k].toLocaleLowerCase():B[k]?+B[k]:null,this.invoices.sort=this.sort,this.invoices.filterPredicate=(B,k)=>((B.paid_at?this.datePipe.transform(new Date(1e3*B.paid_at),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(B.expires_at?this.datePipe.transform(new Date(1e3*B.expires_at),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(B.bolt12?"bolt12":B.bolt11?"bolt11":"keysend")+JSON.stringify(B).toLowerCase()).includes(k),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 i.\u0275fac=function(t){return new(t||i)(A.Y36(h.mQ),A.Y36(u.yh),A.Y36(ht.JJ),A.Y36(e.v),A.Y36(at.V),A.Y36(ht.uU),A.Y36(C.eX))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-lightning-invoices-table"]],viewQuery:function(t,B){if(1&t&&(A.Gf(lt.YE,5),A.Gf(ft.NW,5)),2&t){let k;A.iGM(k=A.CRH())&&(B.sort=k.first),A.iGM(k=A.CRH())&&(B.paginator=k.first)}},inputs:{calledFrom:"calledFrom"},features:[A._Bn([{provide:ft.ye,useValue:(0,o.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,B){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Ft,15,5,"form",1),A.YNc(2,j,5,0,"div",2),A.YNc(3,Kn,39,15,"div",3),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf","home"===B.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===B.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===B.calledFrom))},directives:[Qt.xw,Qt.yH,Qt.Wh,ht.O5,zA._Y,zA.JL,zA.F,V.KE,ot.Nt,zA.Fj,zA.JJ,zA.On,zA.wV,zA.qQ,dt.q,V.R9,V.bx,F.lW,f.BN,gA.$V,SA.BZ,lt.YE,ht.mk,d.oO,SA.w1,SA.fO,SA.Dz,SA.mD,SA.Ke,SA.as,SA.nj,ft.NW,Y.pW,SA.ge,lt.nU,SA.ev,aA.gM,ht.PC,d.Zl,vt.gD,vt.$L,G.ey,SA.yh,SA.Q2,SA.XQ,SA.Gk],pipes:[ht.uU,ht.JJ],styles:[".mat-column-description[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-description[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),i})();var nn=St(5698),KA=St(8104),YA=St(9814),tt=St(7446);const PA=["sendPaymentForm"],NA=["paymentAmt"],bA=["offerAmt"],JA=["paymentReq"],At=["offerReq"];function LA(i,U){if(1&i&&(A.TgZ(0,"mat-radio-button",22),A._uU(1,"Offer"),A.qZA()),2&i){const t=A.oxw(2);A.s9C("value",t.paymentTypes.OFFER)}}function it(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"mat-radio-group",18),A.NdJ("ngModelChange",function(k){return A.CHM(t),A.oxw().paymentType=k})("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,LA,2,1,"mat-radio-button",21),A.qZA()}if(2&i){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 ZA(i,U){1&i&&A.GkF(0)}function Ct(i,U){if(1&i&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.paymentError)}}function Tt(i,U){if(1&i&&(A.TgZ(0,"div",23),A._UZ(1,"fa-icon",24),A.YNc(2,Ct,2,1,"span",25),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.paymentError)}}function Ut(i,U){if(1&i&&(A.TgZ(0,"mat-hint"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.paymentDecodedHint)}}function kt(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Payment request is required."),A.qZA())}function Wt(i,U){if(1&i&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.paymentDecodedHint)}}function te(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Payment amount is required."),A.qZA())}function Et(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"mat-form-field",1),A.TgZ(1,"input",29,30),A.NdJ("ngModelChange",function(k){return A.CHM(t),A.oxw(2).paymentAmount=k})("change",function(k){return A.CHM(t),A.oxw(2).onAmountChange(k)}),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,te,2,0,"mat-error",25),A.qZA()}if(2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("ngModel",t.paymentAmount),A.xp6(4),A.Q6J("ngIf",!t.paymentAmount)}}function zt(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"mat-form-field",1),A.TgZ(1,"textarea",26,27),A.NdJ("ngModelChange",function(k){return A.CHM(t),A.oxw().onPaymentRequestEntry(k)})("matTextareaAutosize",function(){return!0}),A.qZA(),A.YNc(3,Ut,2,1,"mat-hint",25),A.YNc(4,kt,2,0,"mat-error",25),A.YNc(5,Wt,2,1,"mat-error",25),A.qZA(),A.YNc(6,Et,6,2,"mat-form-field",28)}if(2&i){const t=A.MAs(2),B=A.oxw();A.xp6(1),A.Q6J("ngModel",B.paymentRequest),A.xp6(2),A.Q6J("ngIf",B.paymentRequest&&""!==B.paymentDecodedHint),A.xp6(1),A.Q6J("ngIf",!B.paymentRequest),A.xp6(1),A.Q6J("ngIf",null==t.errors?null:t.errors.decodeError),A.xp6(1),A.Q6J("ngIf",B.zeroAmtInvoice)}}function jt(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Pubkey is required."),A.qZA())}function Ht(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Keysend amount is required."),A.qZA())}function ce(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"mat-form-field",1),A.TgZ(1,"input",31),A.NdJ("ngModelChange",function(k){return A.CHM(t),A.oxw().pubkey=k}),A.qZA(),A.YNc(2,jt,2,0,"mat-error",25),A.qZA(),A.TgZ(3,"mat-form-field",1),A.TgZ(4,"input",32,33),A.NdJ("ngModelChange",function(k){return A.CHM(t),A.oxw().keysendAmount=k}),A.qZA(),A.YNc(6,Ht,2,0,"mat-error",25),A.qZA()}if(2&i){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 Vt(i,U){if(1&i&&(A.TgZ(0,"mat-hint"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.offerDecodedHint)}}function Be(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Offer request is required."),A.qZA())}function ge(i,U){if(1&i&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.offerDecodedHint)}}function De(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Offer amount is required."),A.qZA())}function Le(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"mat-form-field",1),A.TgZ(1,"input",38,39),A.NdJ("ngModelChange",function(k){return A.CHM(t),A.oxw(2).offerAmount=k})("change",function(k){return A.CHM(t),A.oxw(2).onAmountChange(k)}),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,De,2,0,"mat-error",25),A.qZA()}if(2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("ngModel",t.offerAmount),A.xp6(4),A.Q6J("ngIf",!t.offerAmount)}}function Ue(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"mat-form-field",40),A.TgZ(1,"input",41),A.NdJ("ngModelChange",function(k){return A.CHM(t),A.oxw(2).offerTitle=k}),A.qZA(),A.qZA()}if(2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("ngModel",t.offerTitle)}}function ye(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"mat-form-field",1),A.TgZ(1,"textarea",34,35),A.NdJ("ngModelChange",function(k){return A.CHM(t),A.oxw().onPaymentRequestEntry(k)})("matTextareaAutosize",function(){return!0}),A.qZA(),A.YNc(3,Vt,2,1,"mat-hint",25),A.YNc(4,Be,2,0,"mat-error",25),A.YNc(5,ge,2,1,"mat-error",25),A.qZA(),A.YNc(6,Le,6,2,"mat-form-field",28),A.TgZ(7,"div",1),A.TgZ(8,"mat-checkbox",36),A.NdJ("ngModelChange",function(k){return A.CHM(t),A.oxw().flgSaveToDB=k}),A._uU(9,"Bookmark Offer"),A.qZA(),A.qZA(),A.YNc(10,Ue,2,1,"mat-form-field",37)}if(2&i){const t=A.MAs(2),B=A.oxw();A.xp6(1),A.Q6J("ngModel",B.offerRequest),A.xp6(2),A.Q6J("ngIf",B.offerRequest&&""!==B.offerDecodedHint),A.xp6(1),A.Q6J("ngIf",!B.offerRequest),A.xp6(1),A.Q6J("ngIf",null==t.errors?null:t.errors.decodeError),A.xp6(1),A.Q6J("ngIf",B.zeroAmtOffer),A.xp6(2),A.Q6J("ngModel",B.flgSaveToDB)("matTooltipPosition","above"),A.xp6(2),A.Q6J("ngIf",B.flgSaveToDB||""!==B.offerTitle)}}let Te=(()=>{class i{constructor(t,B,k,FA,pt,Ye,vn,Ie){this.dialogRef=t,this.data=B,this.store=k,this.logger=FA,this.commonService=pt,this.decimalPipe=Ye,this.actions=vn,this.dataService=Ie,this.faExclamationTriangle=E.eHv,this.paymentTypes=o.IX,this.paymentType=o.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=o.Vc[0],this.feeLimitTypes=o.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 o.IX.INVOICE:this.paymentRequest=this.data.invoiceBolt11;break;case o.IX.KEYSEND:this.pubkey=this.data.pubkeyKeysend;break;case o.IX.OFFER:this.onPaymentRequestEntry(this.data.bolt12),this.offerTitle=this.data.offerTitle,this.flgSaveToDB=!1}this.store.select(l.Jo).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(l.W3).pipe((0,r.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(l.ZW).pipe((0,r.R)(this.unSubs[2])).subscribe(t=>{this.activeChannels=t.activeChannels,this.logger.info(t)}),this.actions.pipe((0,r.R)(this.unSubs[3]),(0,_A.h)(t=>t.type===o.sW.UPDATE_API_CALL_STATUS_CL||t.type===o.sW.SEND_PAYMENT_STATUS_CL||t.type===o.sW.SET_OFFER_INVOICE_CL)).subscribe(t=>{t.type===o.sW.SEND_PAYMENT_STATUS_CL&&this.dialogRef.close(),t.type===o.sW.SET_OFFER_INVOICE_CL&&(this.offerInvoice=t.payload,this.sendPayment()),t.type===o.sW.UPDATE_API_CALL_STATUS_CL&&t.payload.status===o.Bn.ERROR&&("SendPayment"===t.payload.action&&(delete this.paymentDecoded.msatoshi,this.paymentError=t.payload.message),"DecodePayment"===t.payload.action&&(this.paymentType===o.IX.INVOICE&&(this.paymentDecodedHint="ERROR: "+t.payload.message,this.paymentReq.control.setErrors({decodeError:!0})),this.paymentType===o.IX.OFFER&&(this.offerDecodedHint="ERROR: "+t.payload.message,this.offerReq.control.setErrors({decodeError:!0}))),"FetchOfferInvoice"===t.payload.action&&this.paymentType===o.IX.OFFER&&(this.paymentError=t.payload.message))})}onSendPayment(){switch(this.paymentType){case o.IX.KEYSEND:if(!this.pubkey||""===this.pubkey.trim()||!this.keysendAmount||this.keysendAmount<=0)return!0;this.keysendPayment();break;case o.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,r.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 o.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,r.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,WA.oV)({payload:{uiMessage:o.m6.SEND_KEYSEND,paymentType:o.IX.KEYSEND,pubkey:this.pubkey,amount:1e3*this.keysendAmount,fromDialog:!0}}))}sendPayment(){this.paymentError="",this.paymentType===o.IX.INVOICE?this.store.dispatch((0,WA.oV)(this.zeroAmtInvoice?{payload:{uiMessage:o.m6.SEND_PAYMENT,paymentType:o.IX.INVOICE,invoice:this.paymentRequest,amount:1e3*this.paymentAmount,fromDialog:!0}}:{payload:{uiMessage:o.m6.SEND_PAYMENT,paymentType:o.IX.INVOICE,invoice:this.paymentRequest,fromDialog:!0}})):this.paymentType===o.IX.OFFER&&this.store.dispatch(this.offerInvoice?(0,WA.oV)({payload:{uiMessage:o.m6.SEND_PAYMENT,paymentType:o.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,WA.eM)(this.zeroAmtOffer?{payload:{offer:this.offerRequest,msatoshi:1e3*this.offerAmount}}:{payload:{offer:this.offerRequest}}))}onPaymentRequestEntry(t){this.paymentType===o.IX.INVOICE?(this.paymentRequest=t,this.resetInvoiceDetails()):this.paymentType===o.IX.OFFER&&(this.offerRequest=t,this.resetOfferDetails()),t.length>100&&this.dataService.decodePayment(t,!0).pipe((0,r.R)(this.unSubs[6])).subscribe(B=>{this.paymentType===o.IX.INVOICE?"bolt12 offer"===B.type&&B.offer_id?(this.paymentDecodedHint="ERROR: Select Offer option to pay the bolt12 offer invoice.",this.paymentReq.control.setErrors({decodeError:!0})):(this.paymentDecoded=B,this.setPaymentDecodedDetails()):this.paymentType===o.IX.OFFER&&("bolt11 invoice"===B.type&&B.payment_hash?(this.offerDecodedHint="ERROR: Select Invoice option to pay the bolt11 invoice.",this.offerReq.control.setErrors({decodeError:!0})):(this.offerDecoded=B,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===o.IX.INVOICE&&(delete this.paymentDecoded.msatoshi,this.paymentDecoded.msatoshi=+t.target.value),this.paymentType===o.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,o.NT.SATS,o.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,r.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,o.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,o.NT.SATS,o.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,r.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,o.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 o.IX.KEYSEND:this.pubkey="",this.keysendAmount=null;break;case o.IX.INVOICE:this.paymentRequest="",this.paymentDecoded={},this.selActiveChannel=null,this.feeLimit=null,this.selFeeLimitType=o.Vc[0],this.resetInvoiceDetails();break;case o.IX.OFFER:this.offerRequest="",this.offerDecoded={},this.flgSaveToDB=!1,this.resetOfferDetails()}this.paymentError=""}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(OA.so),A.Y36(OA.WI),A.Y36(u.yh),A.Y36(h.mQ),A.Y36(e.v),A.Y36(ht.JJ),A.Y36(C.eX),A.Y36(KA.D))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-lightning-send-payments"]],viewQuery:function(t,B){if(1&t&&(A.Gf(PA,5),A.Gf(NA,5),A.Gf(bA,5),A.Gf(JA,5),A.Gf(At,5)),2&t){let k;A.iGM(k=A.CRH())&&(B.form=k.first),A.iGM(k=A.CRH())&&(B.paymentAmt=k.first),A.iGM(k=A.CRH())&&(B.offerAmt=k.first),A.iGM(k=A.CRH())&&(B.payReq=k.first),A.iGM(k=A.CRH())&&(B.offrReq=k.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"],["fxFlex","30","tabindex","6","color","primary","matTooltip","Save offer in database for future payments",1,"mt-1",3,"ngModel","matTooltipPosition","ngModelChange"],["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,B){if(1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A.TgZ(4,"span",4),A._uU(5,"Send Payment"),A.qZA(),A.qZA(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA(),A.qZA(),A.TgZ(8,"mat-card-content",6),A.YNc(9,it,6,4,"mat-radio-group",7),A.TgZ(10,"form",8,9),A.NdJ("submit",function(){return B.onSendPayment()})("reset",function(){return B.resetData()}),A.YNc(12,ZA,1,0,"ng-container",10),A.YNc(13,Tt,3,2,"div",11),A.TgZ(14,"div",12),A.TgZ(15,"button",13),A._uU(16,"Clear Fields"),A.qZA(),A.TgZ(17,"button",14),A._uU(18,"Send Payment"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.YNc(19,zt,7,5,"ng-template",null,15,A.W1O),A.YNc(21,ce,7,4,"ng-template",null,16,A.W1O),A.YNc(23,ye,11,8,"ng-template",null,17,A.W1O)),2&t){const k=A.MAs(20),FA=A.MAs(22),pt=A.MAs(24);A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(3),A.Q6J("ngIf",B.isCompatibleVersion),A.xp6(3),A.Q6J("ngTemplateOutlet",B.paymentType===B.paymentTypes.KEYSEND?FA:B.paymentType===B.paymentTypes.OFFER?pt:k),A.xp6(1),A.Q6J("ngIf",""!==B.paymentError)}},directives:[Qt.xw,Qt.yH,w.dk,Qt.Wh,F.lW,OA.ZT,w.dn,ht.O5,zA._Y,zA.JL,zA.F,ht.tP,YA.VQ,zA.JJ,zA.On,YA.U0,f.BN,V.KE,ot.Nt,zA.Fj,It.h,zA.Q7,V.bx,V.TO,tt.oG,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}"]}),i})();var ke=St(3504);const xn=["sendPaymentForm"];function rn(i,U){if(1&i&&(A.TgZ(0,"mat-hint"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.paymentDecodedHint)}}function dn(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Payment request is required."),A.qZA())}function Yn(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"form",4,5),A.TgZ(2,"mat-form-field",6),A.TgZ(3,"textarea",7,8),A.NdJ("ngModelChange",function(k){return A.CHM(t),A.oxw().onPaymentRequestEntry(k)})("matTextareaAutosize",function(){return!0}),A.qZA(),A.YNc(5,rn,2,1,"mat-hint",9),A.YNc(6,dn,2,0,"mat-error",9),A.qZA(),A.TgZ(7,"div",10),A.TgZ(8,"button",11),A.NdJ("click",function(){return A.CHM(t),A.oxw().resetData()}),A._uU(9,"Clear Field"),A.qZA(),A.TgZ(10,"button",12),A.NdJ("click",function(){return A.CHM(t),A.oxw().onSendPayment()}),A._uU(11,"Send Payment"),A.qZA(),A.qZA(),A.qZA()}if(2&i){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 an(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"div",13),A.TgZ(1,"button",12),A.NdJ("click",function(){return A.CHM(t),A.oxw().openSendPaymentModal()}),A._uU(2,"Send Payment"),A.qZA(),A.qZA()}}function En(i,U){1&i&&A._UZ(0,"mat-progress-bar",50)}function gn(i,U){1&i&&(A.TgZ(0,"th",51),A._uU(1,"Created At"),A.qZA())}const Tn=function(i){return{"mr-0":i}};function Yr(i,U){if(1&i&&A._UZ(0,"span",55),2&i){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Tn,t.screenSize===t.screenSizeEnum.XS))}}function Tr(i,U){if(1&i&&A._UZ(0,"span",56),2&i){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Tn,t.screenSize===t.screenSizeEnum.XS))}}function rr(i,U){if(1&i&&(A.TgZ(0,"td",52),A.YNc(1,Yr,1,3,"span",53),A.YNc(2,Tr,1,3,"span",54),A._uU(3),A.ALo(4,"date"),A.qZA()),2&i){const t=U.$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/YYYY HH:mm")," ")}}function Sn(i,U){1&i&&(A.TgZ(0,"th",51),A._uU(1," Type "),A.qZA())}function _n(i,U){if(1&i&&(A.TgZ(0,"td",52),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11?"Bolt11":"Keysend")}}function IA(i,U){1&i&&(A.TgZ(0,"th",51),A._uU(1,"Payment Hash"),A.qZA())}const H=function(i){return{"max-width":i}};function S(i,U){if(1&i&&(A.TgZ(0,"td",52),A.TgZ(1,"span",57),A.TgZ(2,"span",58),A._uU(3),A.qZA(),A.qZA(),A.qZA()),2&i){const t=U.$implicit,B=A.oxw(2);A.xp6(1),A.Q6J("ngStyle",A.VKq(2,H,B.screenSize===B.screenSizeEnum.XS?"10rem":"30rem")),A.xp6(2),A.Oqu(null==t?null:t.payment_hash)}}function X(i,U){1&i&&(A.TgZ(0,"th",59),A._uU(1,"Sats Sent"),A.qZA())}function Z(i,U){if(1&i&&(A.TgZ(0,"td",52),A.TgZ(1,"span",60),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$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 fA(i,U){1&i&&(A.TgZ(0,"th",59),A._uU(1,"Sats Received"),A.qZA())}function pA(i,U){if(1&i&&(A.TgZ(0,"td",52),A.TgZ(1,"span",60),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$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 $A(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"th",61),A.TgZ(1,"div",62),A.TgZ(2,"mat-select",63),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",64),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function rt(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"td",65),A.TgZ(1,"button",66),A.NdJ("click",function(){const FA=A.CHM(t).$implicit;return A.oxw(2).onPaymentClick(FA)}),A._uU(2,"View Info"),A.qZA(),A.qZA()}}function ut(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"No payment available."),A.qZA())}function wt(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting payments..."),A.qZA())}function Dt(i,U){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function xt(i,U){if(1&i&&(A.TgZ(0,"td",67),A.YNc(1,ut,2,0,"p",9),A.YNc(2,wt,2,0,"p",9),A.YNc(3,Dt,2,1,"p",9),A.qZA()),2&i){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 Yt(i,U){if(1&i&&A._UZ(0,"span",71),2&i){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Tn,t.screenSize===t.screenSizeEnum.XS))}}function Ot(i,U){if(1&i&&A._UZ(0,"span",72),2&i){const t=A.oxw(3);A.Q6J("ngClass",A.VKq(1,Tn,t.screenSize===t.screenSizeEnum.XS))}}function Zt(i,U){if(1&i&&A._UZ(0,"span",71),2&i){const t=A.oxw(5);A.Q6J("ngClass",A.VKq(1,Tn,t.screenSize===t.screenSizeEnum.XS))}}function ue(i,U){if(1&i&&A._UZ(0,"span",72),2&i){const t=A.oxw(5);A.Q6J("ngClass",A.VKq(1,Tn,t.screenSize===t.screenSizeEnum.XS))}}function Ee(i,U){if(1&i&&(A.TgZ(0,"span",74),A.YNc(1,Zt,1,3,"span",69),A.YNc(2,ue,1,3,"span",70),A._uU(3),A.ALo(4,"date"),A.qZA()),2&i){const t=U.$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/YYYY HH:mm")," ")}}function Me(i,U){if(1&i&&(A.ynx(0),A.YNc(1,Ee,5,6,"span",73),A.BQk()),2&i){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function en(i,U){if(1&i&&(A.TgZ(0,"td",52),A.TgZ(1,"span",68),A.YNc(2,Yt,1,3,"span",69),A.YNc(3,Ot,1,3,"span",70),A._uU(4),A.qZA(),A.YNc(5,Me,2,1,"ng-container",9),A.qZA()),2&i){const t=U.$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 Qe(i,U){if(1&i&&(A.TgZ(0,"span",68),A._uU(1),A.qZA()),2&i){const t=A.oxw(2).$implicit;A.xp6(1),A.Oqu(null!=t&&t.bolt12?"Bolt12":null!=t&&t.bolt11?"Bolt11":"Keysend")}}function je(i,U){if(1&i&&(A.TgZ(0,"span"),A.YNc(1,Qe,2,1,"span",75),A.qZA()),2&i){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function wn(i,U){if(1&i&&(A.TgZ(0,"td",52),A.TgZ(1,"span",68),A._uU(2),A.qZA(),A.YNc(3,je,2,1,"span",9),A.qZA()),2&i){const t=U.$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 Ze(i,U){if(1&i&&(A.TgZ(0,"span",68),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.hij(" Part ID ",t.partid?t.partid:0," ")}}function Cn(i,U){if(1&i&&(A.TgZ(0,"span"),A.YNc(1,Ze,2,1,"span",75),A.qZA()),2&i){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function Wn(i,U){if(1&i&&(A.TgZ(0,"td",52),A.TgZ(1,"span",76),A.TgZ(2,"span",58),A._uU(3),A.qZA(),A.qZA(),A.YNc(4,Cn,2,1,"span",9),A.qZA()),2&i){const t=U.$implicit,B=A.oxw(2);A.xp6(1),A.Q6J("ngStyle",A.VKq(3,H,B.screenSize===B.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 $n(i,U){if(1&i&&(A.TgZ(0,"span",77),A._uU(1),A.ALo(2,"number"),A.qZA()),2&i){const t=U.$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 Un(i,U){if(1&i&&(A.TgZ(0,"span"),A.YNc(1,$n,3,4,"span",78),A.qZA()),2&i){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function Lr(i,U){if(1&i&&(A.TgZ(0,"td",52),A.TgZ(1,"span",77),A._uU(2),A.ALo(3,"number"),A.qZA(),A.YNc(4,Un,2,1,"span",9),A.qZA()),2&i){const t=U.$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 On(i,U){if(1&i&&(A.TgZ(0,"span",77),A._uU(1),A.ALo(2,"number"),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,t.msatoshi/1e3,t.msatoshi<1e3?"1.0-4":"1.0-0")," ")}}function ir(i,U){if(1&i&&(A.TgZ(0,"span"),A.YNc(1,On,3,4,"span",78),A.qZA()),2&i){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function Mr(i,U){if(1&i&&(A.TgZ(0,"td",52),A.TgZ(1,"span",77),A._uU(2),A.ALo(3,"number"),A.qZA(),A.YNc(4,ir,2,1,"span",9),A.qZA()),2&i){const t=U.$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 Ar(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"div",60),A.TgZ(1,"button",82),A.NdJ("click",function(){const FA=A.CHM(t).$implicit;return A.oxw(4).onPaymentClick(FA)}),A._uU(2),A.qZA(),A.qZA()}if(2&i){const t=U.$implicit;A.xp6(2),A.hij("View ",t.partid?t.partid:0,"")}}function ur(i,U){if(1&i&&(A.TgZ(0,"div"),A.YNc(1,Ar,3,1,"div",81),A.qZA()),2&i){const t=A.oxw().$implicit;A.xp6(1),A.Q6J("ngForOf",null==t?null:t.mpps)}}function Gr(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"td",79),A.TgZ(1,"span",60),A.TgZ(2,"button",80),A.NdJ("click",function(){const FA=A.CHM(t).$implicit;return FA.is_expanded=!FA.is_expanded}),A._uU(3),A.qZA(),A.qZA(),A.YNc(4,ur,2,1,"div",9),A.qZA()}if(2&i){const t=U.$implicit;A.xp6(3),A.Oqu(t.is_expanded?"Hide":"Show"),A.xp6(1),A.Q6J("ngIf",t.is_expanded)}}function Vn(i,U){1&i&&A._UZ(0,"tr",83)}const Hr=function(i){return{"display-none":i}};function dr(i,U){if(1&i&&A._UZ(0,"tr",84),2&i){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Hr,(null==t.payments?null:t.payments.data)&&(null==t.payments||null==t.payments.data?null:t.payments.data.length)>0))}}function Jr(i,U){1&i&&A._UZ(0,"tr",85)}function Or(i,U){1&i&&A._UZ(0,"tr",83)}const gi=function(i){return{"overflow-auto error-border":i,"overflow-auto":!0}},kr=function(){return["no_payment"]};function ar(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"div",14),A.TgZ(1,"div",15),A.TgZ(2,"div",16),A._UZ(3,"fa-icon",17),A.TgZ(4,"span",18),A._uU(5,"Payments History"),A.qZA(),A.qZA(),A.TgZ(6,"mat-form-field",19),A.TgZ(7,"input",20),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(k){return A.CHM(t),A.oxw().selFilter=k}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(8,"div",21),A.TgZ(9,"div",22),A.YNc(10,En,1,0,"mat-progress-bar",23),A.TgZ(11,"table",24,25),A.ynx(13,26),A.YNc(14,gn,2,0,"th",27),A.YNc(15,rr,5,6,"td",28),A.BQk(),A.ynx(16,29),A.YNc(17,Sn,2,0,"th",27),A.YNc(18,_n,2,1,"td",28),A.BQk(),A.ynx(19,30),A.YNc(20,IA,2,0,"th",27),A.YNc(21,S,4,4,"td",28),A.BQk(),A.ynx(22,31),A.YNc(23,X,2,0,"th",32),A.YNc(24,Z,4,4,"td",28),A.BQk(),A.ynx(25,33),A.YNc(26,fA,2,0,"th",32),A.YNc(27,pA,4,4,"td",28),A.BQk(),A.ynx(28,34),A.YNc(29,$A,6,0,"th",35),A.YNc(30,rt,3,0,"td",36),A.BQk(),A.ynx(31,37),A.YNc(32,xt,4,3,"td",38),A.BQk(),A.ynx(33,39),A.YNc(34,en,6,4,"td",28),A.BQk(),A.ynx(35,40),A.YNc(36,wn,4,2,"td",28),A.BQk(),A.ynx(37,41),A.YNc(38,Wn,5,5,"td",28),A.BQk(),A.ynx(39,42),A.YNc(40,Lr,5,5,"td",28),A.BQk(),A.ynx(41,43),A.YNc(42,Mr,5,5,"td",28),A.BQk(),A.ynx(43,44),A.YNc(44,Gr,5,2,"td",45),A.BQk(),A.YNc(45,Vn,1,0,"tr",46),A.YNc(46,dr,1,3,"tr",47),A.YNc(47,Jr,1,0,"tr",48),A.YNc(48,Or,1,0,"tr",46),A.qZA(),A.qZA(),A.qZA(),A._UZ(49,"mat-paginator",49),A.qZA()}if(2&i){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,gi,""!==t.errorMessage)),A.xp6(34),A.Q6J("matRowDefColumns",t.mppColumns)("matRowDefWhen",t.is_group),A.xp6(1),A.Q6J("matFooterRowDef",A.DdM(17,kr)),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 Sr=(()=>{class i{constructor(t,B,k,FA,pt,Ye,vn,Ie,fn){this.logger=t,this.commonService=B,this.store=k,this.rtlEffects=FA,this.clEffects=pt,this.decimalPipe=Ye,this.titleCasePipe=vn,this.datePipe=Ie,this.dataService=fn,this.calledFrom="transactions",this.faHistory=E.qO$,this.newlyAddedPayment="",this.selNode={},this.information={},this.paymentJSONArr=[],this.displayedColumns=[],this.mppColumns=[],this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHint="",this.flgSticky=!1,this.pageSize=o.IV,this.pageSizeOptions=o.TJ,this.screenSize="",this.screenSizeEnum=o.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=o.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS?(this.flgSticky=!1,this.displayedColumns=["created_at","actions"],this.mppColumns=["groupTotal","groupAction"]):this.screenSize===o.cu.SM?(this.flgSticky=!1,this.displayedColumns=["created_at","msatoshi","actions"],this.mppColumns=["groupTotal","groupAmtRecv","groupAction"]):this.screenSize===o.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(l.Jo).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(l.W3).pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(l.PP).pipe((0,r.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===o.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,B){return B.is_group}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.created_at?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,r.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,eA.c1)({payload:{data:{type:o.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:o.Gi.DATE_TIME},{key:"num_satoshis",value:this.paymentDecoded.msatoshi/1e3,title:"Amount (Sats)",width:50,type:o.Gi.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:o.Gi.NUMBER},{key:"min_finaltv_expiry",value:this.paymentDecoded.min_final_cltv_expiry,title:"CLTV Expiry",width:50}]]}}})),this.rtlEffects.closeConfirm.pipe((0,nn.q)(1)).subscribe(B=>{B&&(this.store.dispatch((0,WA.oV)({payload:{uiMessage:o.m6.SEND_PAYMENT,paymentType:o.IX.INVOICE,invoice:this.paymentRequest,fromDialog:!1}})),this.resetData())})):(this.store.dispatch((0,eA.c1)({payload:{data:{type:o.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:o.Gi.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:o.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:o.Gi.NUMBER.toLowerCase(),inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,nn.q)(1)).subscribe(k=>{k&&(this.paymentDecoded.msatoshi=k[0].inputValue,this.store.dispatch((0,WA.oV)({payload:{uiMessage:o.m6.SEND_PAYMENT,paymentType:o.IX.INVOICE,invoice:this.paymentRequest,amount:1e3*k[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,r.R)(this.unSubs[1])).subscribe(B=>{this.paymentDecoded=B,this.paymentDecoded.msatoshi?this.selNode.fiatConversion?this.commonService.convertCurrency(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0,o.NT.SATS,o.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,r.R)(this.unSubs[3])).subscribe({next:k=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.msatoshi?this.paymentDecoded.msatoshi/1e3:0)+" Sats ("+k.symbol+this.decimalPipe.transform(k.OTHER?k.OTHER:0,o.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:k=>{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,eA.qR)({payload:{data:{component:Te}}}))}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}onPaymentClick(t){const B=[[{key:"payment_preimage",value:t.payment_preimage,title:"Payment Preimage",width:100,type:o.Gi.STRING}],[{key:"id",value:t.id,title:"ID",width:20,type:o.Gi.STRING},{key:"destination",value:t.destination,title:"Destination",width:80,type:o.Gi.STRING}],[{key:"created_at",value:t.created_at,title:"Creation Date",width:50,type:o.Gi.DATE_TIME},{key:"status",value:this.titleCasePipe.transform(t.status),title:"Status",width:50,type:o.Gi.STRING}],[{key:"msatoshi",value:t.msatoshi,title:"Amount (mSats)",width:50,type:o.Gi.NUMBER},{key:"msatoshi_sent",value:t.msatoshi_sent,title:"Amount Sent (mSats)",width:50,type:o.Gi.NUMBER}]];t.bolt11&&""!==t.bolt11&&B.unshift([{key:"bolt11",value:t.bolt11,title:"Bolt 11",width:100,type:o.Gi.STRING}]),t.bolt12&&""!==t.bolt12&&B.unshift([{key:"bolt12",value:t.bolt12,title:"Bolt 12",width:100,type:o.Gi.STRING}]),t.memo&&""!==t.memo&&B.splice(2,0,[{key:"memo",value:t.memo,title:"Memo",width:100,type:o.Gi.STRING}]),t.hasOwnProperty("partid")?B.unshift([{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:80,type:o.Gi.STRING},{key:"partid",value:t.partid,title:"Part ID",width:20,type:o.Gi.STRING}]):B.unshift([{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:o.Gi.STRING}]),this.store.dispatch((0,eA.qR)({payload:{data:{type:o.n_.INFORMATION,alertTitle:"Payment Information",message:B}}}))}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}loadPaymentsTable(t){this.payments=new SA.by(t?[...t]:[]),this.payments.data=this.paymentJSONArr,this.payments.sort=this.sort,this.payments.sortingDataAccessor=(B,k)=>B[k]&&isNaN(B[k])?B[k].toLocaleLowerCase():B[k]?+B[k]:null,this.payments.filterPredicate=(B,k)=>((B.created_at?this.datePipe.transform(new Date(1e3*B.created_at),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(B.bolt12?"bolt12":B.bolt11?"bolt11":"keysend")+JSON.stringify(B).toLowerCase()).includes(k),this.payments.paginator=this.paginator,this.applyFilter()}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const B=JSON.parse(JSON.stringify(this.payments.data)).reduce((k,FA)=>FA.mpps?k.concat(FA.mpps):(delete FA.is_group,delete FA.is_expanded,delete FA.total_parts,k.concat(FA)),[]);this.commonService.downloadFile(B,"Payments")}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(h.mQ),A.Y36(e.v),A.Y36(u.yh),A.Y36(at.V),A.Y36(ke.s),A.Y36(ht.JJ),A.Y36(ht.rS),A.Y36(ht.uU),A.Y36(KA.D))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-lightning-payments"]],viewQuery:function(t,B){if(1&t&&(A.Gf(xn,5),A.Gf(lt.YE,5),A.Gf(ft.NW,5)),2&t){let k;A.iGM(k=A.CRH())&&(B.form=k.first),A.iGM(k=A.CRH())&&(B.sort=k.first),A.iGM(k=A.CRH())&&(B.paginator=k.first)}},inputs:{calledFrom:"calledFrom"},features:[A._Bn([{provide:ft.ye,useValue:(0,o.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,B){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Yn,12,3,"form",1),A.YNc(2,an,3,0,"div",2),A.YNc(3,ar,50,18,"div",3),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf","home"===B.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===B.calledFrom),A.xp6(1),A.Q6J("ngIf","transactions"===B.calledFrom))},directives:[Qt.xw,Qt.yH,Qt.Wh,ht.O5,zA._Y,zA.JL,zA.F,V.KE,ot.Nt,zA.Fj,zA.Q7,gA.$V,zA.JJ,zA.On,F.lW,V.bx,V.TO,f.BN,SA.BZ,lt.YE,ht.mk,d.oO,SA.w1,SA.fO,SA.Dz,SA.mD,SA.nj,SA.Ke,SA.as,ft.NW,Y.pW,SA.ge,lt.nU,SA.ev,aA.gM,ht.PC,d.Zl,vt.gD,vt.$L,G.ey,SA.yh,ht.sg,SA.Gk,SA.Q2,SA.XQ],pipes:[ht.uU,ht.JJ],styles:[".mat-column-payment_hash[_ngcontent-%COMP%]{flex:0 0 25%;width:25%}.mat-column-payment_hash[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%], .mat-column-groupAction[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-mpp-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-mpp-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}.mpp-row-span[_ngcontent-%COMP%]{min-height:4.2rem;place-content:center flex-start;align-items:center}.mat-column-groupTotal[_ngcontent-%COMP%]{min-width:17rem}"]}),i})();function Xn(i,U){if(1&i&&(A.TgZ(0,"button",26),A.TgZ(1,"mat-icon"),A._uU(2,"more_vert"),A.qZA(),A.qZA()),2&i){A.oxw();const t=A.MAs(11);A.Q6J("matMenuTriggerFor",t)}}function Ui(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"button",15),A.NdJ("click",function(){return A.CHM(t),A.oxw(3).onNavigateTo("/cl/reports")}),A._uU(1,"Fees Summary"),A.qZA()}}function Pi(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"button",15),A.NdJ("click",function(){return A.CHM(t),A.oxw(3).onsortChannelsBy()}),A._uU(1),A.qZA()}if(2&i){const t=A.oxw(3);A.xp6(1),A.hij("Sort By ","Balance Score"===t.sortField?"Capacity":"Balance Score","")}}function _a(i,U){1&i&&A._UZ(0,"mat-progress-bar",27)}function $a(i,U){if(1&i&&A._UZ(0,"rtl-cl-node-info",28),2&i){const t=A.oxw(3);A.Q6J("information",t.information)("showColorFieldSeparately",!1)}}function Ao(i,U){if(1&i&&A._UZ(0,"rtl-cl-balances-info",29),2&i){const t=A.oxw(3);A.Q6J("balances",t.balances)("errorMessage",t.errorMessages[2]+" "+t.errorMessages[3])}}function to(i,U){if(1&i&&A._UZ(0,"rtl-cl-channel-capacity-info",30),2&i){const t=A.oxw(3);A.Q6J("sortBy",t.sortField)("channelBalances",t.channelBalances)("activeChannels",t.activeChannelsCapacity)("errorMessage",t.errorMessages[4]+" "+t.errorMessages[3])}}function eo(i,U){if(1&i&&A._UZ(0,"rtl-cl-fee-info",31),2&i){const t=A.oxw(3);A.Q6J("fees",t.fees)("errorMessage",t.errorMessages[1]+" "+t.errorMessages[4]+" "+t.errorMessages[5])}}function no(i,U){if(1&i&&A._UZ(0,"rtl-cl-channel-status-info",32),2&i){const t=A.oxw(3);A.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[0]+" "+t.errorMessages[3])}}function ro(i,U){1&i&&(A.TgZ(0,"h3"),A._uU(1,"Error! Unable to find information!"),A.qZA())}const zi=function(i){return{"dashboard-card-content":!0,"error-border":i}};function io(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"mat-grid-tile",8),A.TgZ(1,"mat-card",9),A.TgZ(2,"mat-card-header"),A.TgZ(3,"mat-card-title",10),A.TgZ(4,"div"),A._UZ(5,"fa-icon",11),A.TgZ(6,"span"),A._uU(7),A.qZA(),A.qZA(),A.TgZ(8,"div"),A.YNc(9,Xn,3,1,"button",12),A.TgZ(10,"mat-menu",13,14),A.TgZ(12,"button",15),A.NdJ("click",function(){const FA=A.CHM(t).$implicit;return A.oxw(2).onNavigateTo(FA.link)}),A._uU(13),A.qZA(),A.YNc(14,Ui,2,0,"button",16),A.YNc(15,Pi,2,1,"button",16),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.TgZ(16,"mat-card-content",17),A.YNc(17,_a,1,0,"mat-progress-bar",18),A.TgZ(18,"div",19),A.YNc(19,$a,1,2,"rtl-cl-node-info",20),A.YNc(20,Ao,1,2,"rtl-cl-balances-info",21),A.YNc(21,to,1,4,"rtl-cl-channel-capacity-info",22),A.YNc(22,eo,1,2,"rtl-cl-fee-info",23),A.YNc(23,no,1,2,"rtl-cl-channel-status-info",24),A.YNc(24,ro,2,0,"h3",25),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&i){const t=U.$implicit,B=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.link),A.xp6(4),A.hij("Go To ",t.goTo,""),A.xp6(1),A.Q6J("ngIf","fee"===t.id),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(17,zi,"node"===t.id&&B.apiCallStatusNodeInfo.status===B.apiCallStatusEnum.ERROR||"balance"===t.id&&(B.apiCallStatusBalance.status===B.apiCallStatusEnum.ERROR||B.apiCallStatusLRBal.status===B.apiCallStatusEnum.ERROR)||"capacity"===t.id&&(B.apiCallStatusChannels.status===B.apiCallStatusEnum.ERROR||B.apiCallStatusLRBal.status===B.apiCallStatusEnum.ERROR)||"fee"===t.id&&(B.apiCallStatusFees.status===B.apiCallStatusEnum.ERROR||B.apiCallStatusChannels.status===B.apiCallStatusEnum.ERROR||B.apiCallStatusFHistory.status===B.apiCallStatusEnum.ERROR)||"status"===t.id&&(B.apiCallStatusNodeInfo.status===B.apiCallStatusEnum.ERROR||B.apiCallStatusLRBal.status===B.apiCallStatusEnum.ERROR))),A.xp6(1),A.Q6J("ngIf","node"===t.id&&B.apiCallStatusNodeInfo.status===B.apiCallStatusEnum.INITIATED||"balance"===t.id&&(B.apiCallStatusBalance.status===B.apiCallStatusEnum.INITIATED||B.apiCallStatusLRBal.status===B.apiCallStatusEnum.INITIATED)||"capacity"===t.id&&(B.apiCallStatusChannels.status===B.apiCallStatusEnum.INITIATED||B.apiCallStatusLRBal.status===B.apiCallStatusEnum.INITIATED)||"fee"===t.id&&(B.apiCallStatusFees.status===B.apiCallStatusEnum.INITIATED||B.apiCallStatusChannels.status===B.apiCallStatusEnum.INITIATED||B.apiCallStatusFHistory.status===B.apiCallStatusEnum.INITIATED)||"status"===t.id&&(B.apiCallStatusNodeInfo.status===B.apiCallStatusEnum.INITIATED||B.apiCallStatusLRBal.status===B.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 ea(i,U){if(1&i&&(A.TgZ(0,"div",2),A.TgZ(1,"div",3),A._UZ(2,"fa-icon",4),A.TgZ(3,"span",5),A._uU(4),A.qZA(),A.qZA(),A.TgZ(5,"mat-grid-list",6),A.YNc(6,io,25,19,"mat-grid-tile",7),A.qZA(),A.qZA()),2&i){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 na(i,U){if(1&i&&(A.TgZ(0,"button",26),A.TgZ(1,"mat-icon"),A._uU(2,"more_vert"),A.qZA(),A.qZA()),2&i){A.oxw();const t=A.MAs(9);A.Q6J("matMenuTriggerFor",t)}}function ao(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"mat-card-header"),A.TgZ(1,"mat-card-title",10),A.TgZ(2,"div"),A._UZ(3,"fa-icon",11),A.TgZ(4,"span"),A._uU(5),A.qZA(),A.qZA(),A.TgZ(6,"div"),A.YNc(7,na,3,1,"button",12),A.TgZ(8,"mat-menu",13,41),A.TgZ(10,"button",15),A.NdJ("click",function(){A.CHM(t);const k=A.oxw().$implicit;return A.oxw(2).onNavigateTo(k.link)}),A._uU(11),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&i){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.link),A.xp6(4),A.hij("Go To ",t.goTo,"")}}function oo(i,U){1&i&&A._UZ(0,"mat-progress-bar",27)}function so(i,U){if(1&i&&A._UZ(0,"rtl-cl-node-info",42),2&i){const t=A.oxw(3);A.Q6J("information",t.information)}}function co(i,U){if(1&i&&A._UZ(0,"rtl-cl-balances-info",29),2&i){const t=A.oxw(3);A.Q6J("balances",t.balances)("errorMessage",t.errorMessages[2]+" "+t.errorMessages[3])}}function go(i,U){if(1&i&&A._UZ(0,"rtl-cl-channel-liquidity-info",43),2&i){const t=A.oxw(3);A.Q6J("direction","In")("totalLiquidity",t.totalInboundLiquidity)("activeChannels",t.allInboundChannels)("errorMessage",t.errorMessages[4])}}function lo(i,U){if(1&i&&A._UZ(0,"rtl-cl-channel-liquidity-info",43),2&i){const t=A.oxw(3);A.Q6J("direction","Out")("totalLiquidity",t.totalOutboundLiquidity)("activeChannels",t.allOutboundChannels)("errorMessage",t.errorMessages[4])}}function Bo(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"button",52),A.TgZ(1,"mat-icon"),A._uU(2,"more_vert"),A.qZA(),A.qZA(),A.TgZ(3,"mat-menu",13,53),A.TgZ(5,"button",15),A.NdJ("click",function(){A.CHM(t);const k=A.oxw(2).$implicit;return A.oxw(2).onNavigateTo(k.link)}),A._uU(6),A.qZA(),A.TgZ(7,"button",15),A.NdJ("click",function(){return A.CHM(t),A.oxw(4).onNavigateTo("/cl/reports/transactions")}),A._uU(8,"Transactions Summary"),A.qZA(),A.qZA()}if(2&i){const t=A.MAs(4),B=A.oxw(2).$implicit;A.Q6J("matMenuTriggerFor",t),A.xp6(6),A.hij("Go To ",B.goTo,"")}}function uo(i,U){1&i&&(A.TgZ(0,"span",44),A.TgZ(1,"mat-tab-group",45),A.TgZ(2,"mat-tab",46),A._UZ(3,"rtl-cl-lightning-invoices-table",47),A.qZA(),A.TgZ(4,"mat-tab",48),A._UZ(5,"rtl-cl-lightning-payments",49),A.qZA(),A.TgZ(6,"mat-tab",50),A.YNc(7,Bo,9,2,"ng-template",51),A.qZA(),A.qZA(),A.qZA()),2&i&&(A.xp6(3),A.Q6J("calledFrom","home"),A.xp6(2),A.Q6J("calledFrom","home"),A.xp6(1),A.Q6J("disabled",!0))}function fo(i,U){1&i&&(A.TgZ(0,"h3"),A._uU(1,"Error! Unable to find information!"),A.qZA())}const Eo=function(i){return{"p-0":i}};function ra(i,U){if(1&i&&(A.TgZ(0,"mat-grid-tile",8),A.TgZ(1,"mat-card",35),A.YNc(2,ao,12,4,"mat-card-header",36),A.TgZ(3,"mat-card-content",37),A.YNc(4,oo,1,0,"mat-progress-bar",18),A.TgZ(5,"div",19),A.YNc(6,so,1,1,"rtl-cl-node-info",38),A.YNc(7,co,1,2,"rtl-cl-balances-info",21),A.YNc(8,go,1,4,"rtl-cl-channel-liquidity-info",39),A.YNc(9,lo,1,4,"rtl-cl-channel-liquidity-info",39),A.YNc(10,uo,8,3,"span",40),A.YNc(11,fo,2,0,"h3",25),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&i){const t=U.$implicit,B=A.oxw(2);A.Q6J("colspan",t.cols)("rowspan",t.rows),A.xp6(1),A.Q6J("ngClass",A.VKq(13,Eo,"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,zi,"node"===t.id&&B.apiCallStatusNodeInfo.status===B.apiCallStatusEnum.ERROR||"balance"===t.id&&(B.apiCallStatusBalance.status===B.apiCallStatusEnum.ERROR||B.apiCallStatusLRBal.status===B.apiCallStatusEnum.ERROR)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&B.apiCallStatusChannels.status===B.apiCallStatusEnum.ERROR)),A.xp6(1),A.Q6J("ngIf","node"===t.id&&B.apiCallStatusNodeInfo.status===B.apiCallStatusEnum.INITIATED||"balance"===t.id&&(B.apiCallStatusBalance.status===B.apiCallStatusEnum.INITIATED||B.apiCallStatusLRBal.status===B.apiCallStatusEnum.INITIATED)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&B.apiCallStatusChannels.status===B.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 ho(i,U){if(1&i&&(A.TgZ(0,"div",33),A._UZ(1,"fa-icon",4),A.TgZ(2,"span",5),A._uU(3),A.qZA(),A.qZA(),A.TgZ(4,"mat-grid-list",34),A.YNc(5,ra,12,17,"mat-grid-tile",7),A.qZA()),2&i){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 wo=(()=>{class i{constructor(t,B,k,FA,pt){this.logger=t,this.store=B,this.actions=k,this.commonService=FA,this.router=pt,this.faSmile=s.I3,this.faFrown=s.Kf,this.faAngleDoubleDown=E.Sbq,this.faAngleDoubleUp=E.Vfw,this.faChartPie=E.OS1,this.faBolt=E.BDt,this.faServer=E.xf3,this.faNetworkWired=E.kXW,this.userPersonaEnum=o.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=o.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===o.cu.XS?(this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goTo:"On-Chain",link:"/cl/onchain",icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goTo:"Routing",link:"/cl/routing",icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goTo:"Channels",link:"/cl/connections",icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goTo:"Channels",link:"/cl/connections",icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/cl/onchain",icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goTo:"Transactions",link:"/cl/transactions",title:"",cols:6,rows:4},{id:"inboundLiq",goTo:"Channels",link:"/cl/connections",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goTo:"Channels",link:"/cl/connections",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}]):this.screenSize===o.cu.SM||this.screenSize===o.cu.MD?(this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goTo:"On-Chain",link:"/cl/onchain",icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goTo:"Routing",link:"/cl/routing",icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goTo:"Channels",link:"/cl/connections",icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goTo:"Channels",link:"/cl/connections",icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/cl/onchain",icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goTo:"Transactions",link:"/cl/transactions",title:"",cols:3,rows:4},{id:"inboundLiq",goTo:"Channels",link:"/cl/connections",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goTo:"Channels",link:"/cl/connections",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}]):(this.operatorCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goTo:"On-Chain",link:"/cl/onchain",icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goTo:"Channels",link:"/cl/connections",icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goTo:"Routing",link:"/cl/routing",icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goTo:"Channels",link:"/cl/connections",icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goTo:"On-Chain",link:"/cl/onchain",icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goTo:"Channels",link:"/cl/connections",icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goTo:"Channels",link:"/cl/connections",icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goTo:"Transactions",link:"/cl/transactions",title:"",cols:2,rows:5}])}ngOnInit(){this.store.select(l.Hz).pipe((0,r.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===o.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message),this.apiCallStatusFHistory.status===o.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(l.JG).pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.errorMessages[1]="",this.apiCallStatusFees=t.apiCallStatus,this.apiCallStatusFees.status===o.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(l.ZW).pipe((0,r.R)(this.unSubs[2])).subscribe(t=>{this.errorMessages[4]="",this.apiCallStatusChannels=t.apiCallStatus,this.apiCallStatusChannels.status===o.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(B=>B.msatoshi_to_them>0),"msatoshi_to_them")))||[],this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.activeChannels.filter(B=>B.msatoshi_to_us>0),"msatoshi_to_us")))||[],this.activeChannels.forEach(B=>{this.totalInboundLiquidity=this.totalInboundLiquidity+Math.ceil(B.msatoshi_to_them/1e3),this.totalOutboundLiquidity=this.totalOutboundLiquidity+Math.floor(B.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(l.Rn).pipe((0,r.R)(this.unSubs[3]),(0,a.M)(this.store.select(l.Wj))).subscribe(([t,B])=>{this.errorMessages[2]="",this.apiCallStatusBalance=t.apiCallStatus,this.apiCallStatusBalance.status===o.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusBalance.message?JSON.stringify(this.apiCallStatusBalance.message):this.apiCallStatusBalance.message),this.errorMessages[3]="",this.apiCallStatusLRBal=B.apiCallStatus,this.apiCallStatusLRBal.status===o.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=B.localRemoteBalance.localBalance,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances);const k=B.localRemoteBalance.localBalance?+B.localRemoteBalance.localBalance:0,FA=B.localRemoteBalance.remoteBalance?+B.localRemoteBalance.remoteBalance:0;this.channelBalances={localBalance:k,remoteBalance:FA,balancedness:+(1-Math.abs((k-FA)/(k+FA))).toFixed(3)},this.channelsStatus.active.capacity=B.localRemoteBalance.localBalance||0,this.channelsStatus.pending.capacity=B.localRemoteBalance.pendingBalance||0,this.channelsStatus.inactive.capacity=B.localRemoteBalance.inactiveBalance||0,this.logger.info(t),this.logger.info(B)})}onNavigateTo(t){this.router.navigateByUrl(t)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.activeChannelsCapacity=this.activeChannels.sort((t,B)=>{const k=+t.msatoshi_to_us+ +t.msatoshi_to_them,FA=+B.msatoshi_to_them+ +B.msatoshi_to_them;return k>FA?-1:k{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(h.mQ),A.Y36(u.yh),A.Y36(C.eX),A.Y36(e.v),A.Y36(Ae.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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"],["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"],["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",""],["mat-icon-button","","aria-label","Toggle menu",1,"more-button",2,"max-width","20px",3,"matMenuTriggerFor"],["menuTransactions","matMenu"]],template:function(t,B){if(1&t&&(A.YNc(0,ea,7,4,"div",0),A.YNc(1,ho,6,4,"ng-template",null,1,A.W1O)),2&t){const k=A.MAs(2);A.Q6J("ngIf",(null==B.selNode?null:B.selNode.userPersona)===B.userPersonaEnum.OPERATOR)("ngIfElse",k)}},directives:[ht.O5,Qt.xw,Qt.Wh,f.BN,g.Il,ht.sg,g.DX,w.a8,Qt.yH,w.dk,w.n5,Q.VK,Q.OP,w.dn,ht.mk,d.oO,ht.RF,ht.n9,ht.ED,F.lW,Q.p6,m.Hw,Y.pW,T,N,xA,uA,GA,st,yA.SP,yA.uX,nr,Sr,yA.uD],styles:[""]}),i})();var Co=St(9841),Qo=St(8012),qn=St(8377),Hn=St(7261),or=St(1125),pr=St(5615);const Mo=["form"],po=["formSweepAll"],Io=["stepper"];function Do(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Bitcoin address is required."),A.qZA())}function vo(i,U){1&i&&(A.TgZ(0,"mat-hint"),A._uU(1,"Amount replaced by UTXO balance"),A.qZA())}function mo(i,U){if(1&i&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.amountError)}}function yo(i,U){if(1&i&&(A.TgZ(0,"mat-option",38),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.Q6J("value",t),A.xp6(1),A.Oqu(t)}}function xo(i,U){if(1&i&&(A.TgZ(0,"mat-option",38),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function Fo(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function Yo(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"mat-form-field",39),A.TgZ(1,"input",40,41),A.NdJ("ngModelChange",function(k){return A.CHM(t),A.oxw(2).customFeeRate=k}),A.qZA(),A.YNc(3,Fo,2,0,"mat-error",14),A.qZA()}if(2&i){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 To(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function So(i,U){if(1&i&&(A.TgZ(0,"mat-option",38),A._uU(1),A.ALo(2,"number"),A.qZA()),2&i){const t=U.$implicit;A.Q6J("value",t),A.xp6(1),A.hij("",A.lcZ(2,2,t.value)," Sats")}}function Uo(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"div",23),A.TgZ(1,"mat-expansion-panel",42),A.NdJ("closed",function(){return A.CHM(t),A.oxw(2).onAdvancedPanelToggle(!0)})("opened",function(){return A.CHM(t),A.oxw(2).onAdvancedPanelToggle(!1)}),A.TgZ(2,"mat-expansion-panel-header"),A.TgZ(3,"mat-panel-title"),A.TgZ(4,"span"),A._uU(5),A.qZA(),A.qZA(),A.qZA(),A.TgZ(6,"div",22),A.TgZ(7,"div",43),A.TgZ(8,"mat-form-field",44),A.TgZ(9,"mat-select",45),A.NdJ("selectionChange",function(k){return A.CHM(t),A.oxw(2).onUTXOSelectionChange(k)})("valueChange",function(k){return A.CHM(t),A.oxw(2).selUTXOs=k}),A.TgZ(10,"mat-select-trigger"),A._uU(11),A.ALo(12,"number"),A.qZA(),A.YNc(13,So,3,4,"mat-option",21),A.qZA(),A.qZA(),A.TgZ(14,"mat-slide-toggle",46),A.NdJ("ngModelChange",function(k){return A.CHM(t),A.oxw(2).flgUseAllBalance=k})("change",function(){return A.CHM(t),A.oxw(2).onUTXOAllBalanceChange()}),A._uU(15," Use selected UTXOs balance "),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&i){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(1),A.Q6J("ngModel",t.flgUseAllBalance)("disabled",t.selUTXOs.length<1)}}function Po(i,U){if(1&i&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&i){const t=A.oxw(3);A.xp6(1),A.Oqu(t.sendFundError)}}function zo(i,U){if(1&i&&(A.TgZ(0,"div",47),A._UZ(1,"fa-icon",48),A.YNc(2,Po,2,1,"span",14),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.sendFundError)}}const ia=function(i,U){return{"mr-6":i,"mr-2":U}};function Ro(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"form",9,10),A.NdJ("submit",function(){return A.CHM(t),A.oxw().onSendFunds()})("reset",function(){return A.CHM(t),A.oxw().resetData()}),A.TgZ(2,"mat-form-field",11),A.TgZ(3,"input",12,13),A.NdJ("ngModelChange",function(k){return A.CHM(t),A.oxw().transaction.address=k}),A.qZA(),A.YNc(5,Do,2,0,"mat-error",14),A.qZA(),A.TgZ(6,"mat-form-field",15),A.TgZ(7,"input",16,17),A.NdJ("ngModelChange",function(k){return A.CHM(t),A.oxw().transaction.satoshis=k}),A.qZA(),A.YNc(9,vo,2,0,"mat-hint",14),A.TgZ(10,"span",18),A._uU(11),A.qZA(),A.YNc(12,mo,2,1,"mat-error",14),A.qZA(),A.TgZ(13,"mat-form-field",19),A.TgZ(14,"mat-select",20),A.NdJ("selectionChange",function(k){return A.CHM(t),A.oxw().onAmountUnitChange(k)}),A.YNc(15,yo,2,2,"mat-option",21),A.qZA(),A.qZA(),A.TgZ(16,"div",22),A.TgZ(17,"div",23),A.TgZ(18,"div",24),A.TgZ(19,"mat-form-field",25),A.TgZ(20,"mat-select",26),A.NdJ("valueChange",function(k){return A.CHM(t),A.oxw().selFeeRate=k})("selectionChange",function(){return A.CHM(t),A.oxw().customFeeRate=null}),A.YNc(21,xo,2,2,"mat-option",21),A.qZA(),A.qZA(),A.YNc(22,Yo,4,5,"mat-form-field",27),A.qZA(),A.TgZ(23,"div",28),A.TgZ(24,"mat-checkbox",29),A.NdJ("ngModelChange",function(k){return A.CHM(t),A.oxw().flgMinConf=k})("change",function(){A.CHM(t);const k=A.oxw();return k.flgMinConf?k.selFeeRate=null:k.minConfValue=null}),A.qZA(),A.TgZ(25,"mat-form-field",30),A.TgZ(26,"input",31,32),A.NdJ("ngModelChange",function(k){return A.CHM(t),A.oxw().minConfValue=k}),A.qZA(),A.YNc(28,To,2,0,"mat-error",14),A.qZA(),A.qZA(),A.qZA(),A.YNc(29,Uo,16,9,"div",33),A._UZ(30,"div",22),A.YNc(31,zo,3,2,"div",34),A.TgZ(32,"div",35),A.TgZ(33,"button",36),A._uU(34,"Clear Fields"),A.qZA(),A.TgZ(35,"button",37),A._uU(36,"Send Funds"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&i){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,ia,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 No(i,U){if(1&i&&A._uU(0),2&i){const t=A.oxw(3);A.Oqu(t.passwordFormLabel)}}function aa(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Password is required."),A.qZA())}function bo(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"mat-step",53),A.TgZ(1,"form",71),A.YNc(2,No,1,1,"ng-template",65),A.TgZ(3,"div",0),A.TgZ(4,"mat-form-field",1),A._UZ(5,"input",72),A.YNc(6,aa,2,0,"mat-error",14),A.qZA(),A.qZA(),A.TgZ(7,"div",73),A.TgZ(8,"button",74),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onAuthenticate()}),A._uU(9,"Confirm"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&i){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 Lo(i,U){if(1&i&&A._uU(0),2&i){const t=A.oxw(2);A.Oqu(t.sendFundFormLabel)}}function Go(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Bitcoin address is required."),A.qZA())}function Ho(i,U){if(1&i&&(A.TgZ(0,"mat-option",38),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function Jo(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function Oo(i,U){if(1&i&&(A.TgZ(0,"mat-form-field",39),A._UZ(1,"input",75),A.YNc(2,Jo,2,0,"mat-error",14),A.qZA()),2&i){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 ko(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function jo(i,U){if(1&i&&A._uU(0),2&i){const t=A.oxw(2);A.Oqu(t.confirmFormLabel)}}function Zo(i,U){if(1&i&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&i){const t=A.oxw(3);A.xp6(1),A.Oqu(t.sendFundError)}}function Ko(i,U){if(1&i&&(A.TgZ(0,"div",47),A._UZ(1,"fa-icon",48),A.YNc(2,Zo,2,1,"span",14),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.sendFundError)}}function Wo(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"div",49),A.TgZ(1,"mat-vertical-stepper",50,51),A.NdJ("selectionChange",function(k){return A.CHM(t),A.oxw().stepSelectionChanged(k)}),A.YNc(3,bo,10,4,"mat-step",52),A.TgZ(4,"mat-step",53),A.TgZ(5,"form",54),A.YNc(6,Lo,1,1,"ng-template",55),A.TgZ(7,"div",22),A.TgZ(8,"mat-form-field",1),A._UZ(9,"input",56),A.YNc(10,Go,2,0,"mat-error",14),A.qZA(),A.TgZ(11,"div",57),A.TgZ(12,"div",24),A.TgZ(13,"mat-form-field",25),A.TgZ(14,"mat-select",58),A.YNc(15,Ho,2,2,"mat-option",21),A.qZA(),A.qZA(),A.YNc(16,Oo,3,3,"mat-form-field",27),A.qZA(),A.TgZ(17,"div",28),A._UZ(18,"mat-checkbox",59),A.TgZ(19,"mat-form-field",30),A._UZ(20,"input",60),A.YNc(21,ko,2,0,"mat-error",14),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.TgZ(22,"div",61),A.TgZ(23,"button",62),A._uU(24,"Next"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.TgZ(25,"mat-step",63),A.TgZ(26,"form",64),A.YNc(27,jo,1,1,"ng-template",65),A.TgZ(28,"div",49),A.TgZ(29,"div",66),A._UZ(30,"fa-icon",67),A.TgZ(31,"span"),A._uU(32,"You are about to sweep all funds from RTL. Are you sure?"),A.qZA(),A.qZA(),A.YNc(33,Ko,3,2,"div",34),A.TgZ(34,"div",61),A.TgZ(35,"button",68),A.NdJ("click",function(){return A.CHM(t),A.oxw().onSendFunds()}),A._uU(36,"Sweep All Funds"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.TgZ(37,"div",69),A.TgZ(38,"button",70),A._uU(39),A.qZA(),A.qZA(),A.qZA()}if(2&i){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,ia,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 oa=(()=>{class i{constructor(t,B,k,FA,pt,Ye,vn,Ie,fn,yB){this.dialogRef=t,this.data=B,this.logger=k,this.store=FA,this.commonService=pt,this.decimalPipe=Ye,this.actions=vn,this.formBuilder=Ie,this.rtlEffects=fn,this.snackBar=yB,this.faExclamationTriangle=E.eHv,this.sweepAll=!1,this.selNode={},this.addressTypes=[],this.utxos=[],this.selUTXOs=[],this.flgUseAllBalance=!1,this.totalSelectedUTXOAmount=null,this.selectedAddress=o._t[1],this.blockchainBalance={},this.information={},this.isCompatibleVersion=!1,this.newAddress="",this.transaction={},this.feeRateTypes=o.vn,this.selFeeRate="",this.customFeeRate=null,this.flgMinConf=!1,this.minConfValue=null,this.sendFundError="",this.fiatConversion=!1,this.amountUnits=o.uA,this.selAmountUnit=o.uA[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=o.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=o.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:["",[zA.kI.required]],password:["",[zA.kI.required]]}),this.sendFundFormGroup=this.formBuilder.group({transactionAddress:["",zA.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,r.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([zA.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,r.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:[zA.kI.required])}),(0,Co.a)([this.store.select(qn.dT),this.store.select(qn.Yj)]).pipe((0,r.R)(this.unSubs[1])).subscribe(([t,B])=>{this.fiatConversion=t.settings.fiatConversion,this.amountUnits=t.settings.currencyUnits,this.appConfig=B}),this.store.select(l.W3).pipe((0,r.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(l.T4).pipe((0,r.R)(this.unSubs[3])).subscribe(t=>{this.utxos=this.commonService.sortAscByKey(t.utxos.filter(B=>"confirmed"===B.status),"value"),this.logger.info(t)}),this.actions.pipe((0,r.R)(this.unSubs[4]),(0,_A.h)(t=>t.type===o.sW.UPDATE_API_CALL_STATUS_CL||t.type===o.sW.SET_CHANNEL_TRANSACTION_RES_CL)).subscribe(t=>{t.type===o.sW.SET_CHANNEL_TRANSACTION_RES_CL&&(this.store.dispatch((0,eA.jW)({payload:"Fund Sent Successfully!"})),this.dialogRef.close()),t.type===o.sW.UPDATE_API_CALL_STATUS_CL&&t.payload.status===o.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,eA.QO)({payload:Qo(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,nn.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,WA.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!==o.NT.SATS?this.commonService.convertCurrency(+this.transaction.satoshis,this.selAmountUnit===this.amountUnits[2]?o.NT.OTHER:this.selAmountUnit,o.NT.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,r.R)(this.unSubs[5])).subscribe({next:t=>{this.transaction.satoshis=t[o.NT.SATS],this.selAmountUnit=o.NT.SATS,this.store.dispatch((0,WA.Wi)({payload:this.transaction}))},error:t=>{this.transaction.satoshis=null,this.selAmountUnit=o.NT.SATS,this.amountError="Conversion Error: "+t}}):this.store.dispatch((0,WA.Wi)({payload:this.transaction}))}}resetData(){this.sendFundError="",this.transaction={},this.flgMinConf=!1,this.totalSelectedUTXOAmount=null,this.selUTXOs=[],this.flgUseAllBalance=!1,this.selAmountUnit=o.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(B=>B.feeRateId===this.sendFundFormGroup.controls.selFeeRate.value).feeRateType:"")}t.selectedIndex0?(this.totalSelectedUTXOAmount=this.selUTXOs.reduce((k,FA)=>(B.value=k.value+FA.value,B)).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=o.uA[0]):this.transaction.satoshis=null}onAmountUnitChange(t){const B=this,k=this.selAmountUnit===this.amountUnits[2]?o.NT.OTHER:this.selAmountUnit;let FA=t.value===this.amountUnits[2]?o.NT.OTHER:t.value;this.transaction.satoshis&&this.selAmountUnit!==t.value&&this.commonService.convertCurrency(+this.transaction.satoshis,k,FA,this.amountUnits[2],this.fiatConversion).pipe((0,r.R)(this.unSubs[6])).subscribe({next:pt=>{this.selAmountUnit=t.value,B.transaction.satoshis=B.decimalPipe.transform(pt[FA],B.currencyUnitFormats[FA]).replace(/,/g,"")},error:pt=>{B.transaction.satoshis=null,this.amountError="Conversion Error: "+pt,this.selAmountUnit=k,FA=k}})}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 i.\u0275fac=function(t){return new(t||i)(A.Y36(OA.so),A.Y36(OA.WI),A.Y36(h.mQ),A.Y36(u.yh),A.Y36(e.v),A.Y36(ht.JJ),A.Y36(C.eX),A.Y36(zA.qu),A.Y36(at.V),A.Y36(Hn.ux))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-on-chain-send-modal"]],viewQuery:function(t,B){if(1&t&&(A.Gf(Mo,7),A.Gf(po,5),A.Gf(Io,5)),2&t){let k;A.iGM(k=A.CRH())&&(B.form=k.first),A.iGM(k=A.CRH())&&(B.formSweepAll=k.first),A.iGM(k=A.CRH())&&(B.stepper=k.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/vB)","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","tabindex","9","color","primary","name","flgUseAllBalance","matTooltip","Use selected UTXOs balance as the amount to be sent. Final amount sent will be less the mining fee.","matTooltipPosition","above",3,"ngModel","disabled","ngModelChange","change"],["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/vB)","type","number","name","custFeeRate","tabindex","4",3,"step","min"]],template:function(t,B){if(1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A.TgZ(4,"span",4),A._uU(5),A.qZA(),A.qZA(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA(),A.qZA(),A.TgZ(8,"mat-card-content",6),A.YNc(9,Ro,37,31,"form",7),A.qZA(),A.qZA(),A.qZA(),A.YNc(10,Wo,40,23,"ng-template",null,8,A.W1O)),2&t){const k=A.MAs(11);A.xp6(5),A.Oqu(B.sweepAll?"Sweep All Funds":"Send Funds"),A.xp6(1),A.Q6J("mat-dialog-close",!1),A.xp6(3),A.Q6J("ngIf",!B.sweepAll)("ngIfElse",k)}},directives:[Qt.xw,Qt.yH,w.dk,Qt.Wh,F.lW,OA.ZT,w.dn,ht.O5,zA._Y,zA.JL,zA.F,V.KE,ot.Nt,zA.Fj,It.h,zA.Q7,zA.JJ,zA.On,dt.q,V.R9,vt.gD,ht.sg,tt.oG,ht.mk,d.oO,zA.wV,zA.qQ,V.TO,V.bx,G.ey,or.ib,or.yz,or.yK,vt.$L,Pt.Rr,aA.gM,f.BN,pr.Vq,pr.C0,zA.sg,pr.VY,zA.u,pr.Ic],pipes:[ht.JJ],styles:[""]}),i})();var re=St(1203);function Vo(i,U){1&i&&A._UZ(0,"mat-progress-bar",27)}function li(i,U){1&i&&(A.TgZ(0,"th",28),A._uU(1," Transaction ID "),A.qZA())}function Bi(i,U){1&i&&(A.TgZ(0,"span",36),A.TgZ(1,"mat-icon",37),A._uU(2,"warning"),A.qZA(),A.qZA())}function Ur(i,U){if(1&i&&(A.TgZ(0,"span"),A.YNc(1,Bi,3,0,"span",35),A.qZA()),2&i){const t=A.oxw().$implicit;A.oxw();const B=A.MAs(32);A.xp6(1),A.Q6J("ngIf",t.value<1e3)("ngIfElse",B)}}function fr(i,U){1&i&&A._UZ(0,"span",38)}function Ri(i,U){if(1&i&&(A._UZ(0,"span",39),A.ALo(1,"titlecase")),2&i){const t=A.oxw().$implicit;A.s9C("matTooltip",A.lcZ(1,1,t.status))}}const Xo=function(i){return{"max-width":i}};function qo(i,U){if(1&i&&(A.TgZ(0,"td",29),A.TgZ(1,"span",30),A.YNc(2,Ur,2,2,"span",31),A.YNc(3,fr,1,0,"span",32),A.YNc(4,Ri,2,3,"span",33),A.TgZ(5,"span",34),A._uU(6),A.qZA(),A.qZA(),A.qZA()),2&i){const t=U.$implicit,B=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(5,Xo,B.screenSize===B.screenSizeEnum.XS?"10rem":"50rem")),A.xp6(1),A.Q6J("ngIf",B.numDustUTXOs>0&&!B.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 _o(i,U){1&i&&(A.TgZ(0,"th",40),A._uU(1," Output "),A.qZA())}function Pr(i,U){if(1&i&&(A.TgZ(0,"td",29),A.TgZ(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.output)," ")}}function zr(i,U){1&i&&(A.TgZ(0,"th",40),A._uU(1," Value (Sats) "),A.qZA())}function Ni(i,U){if(1&i&&(A.TgZ(0,"span",41),A._uU(1),A.ALo(2,"number"),A.qZA()),2&i){const t=A.oxw().$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,t.value))}}function bi(i,U){if(1&i&&(A.TgZ(0,"span",44),A._uU(1),A.ALo(2,"number"),A.qZA()),2&i){const t=A.oxw().$implicit;A.xp6(1),A.hij("(",A.lcZ(2,1,-1*t.value),")")}}function Li(i,U){if(1&i&&(A.TgZ(0,"td",29),A.YNc(1,Ni,3,3,"span",42),A.YNc(2,bi,3,3,"span",43),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.Q6J("ngIf",t.value>0||0===t.value),A.xp6(1),A.Q6J("ngIf",t.value<0)}}function $o(i,U){1&i&&(A.TgZ(0,"th",40),A._uU(1," Blockheight "),A.qZA())}function sa(i,U){if(1&i&&(A.TgZ(0,"td",29),A.TgZ(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.blockheight)," ")}}function As(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"th",45),A.TgZ(1,"div",46),A.TgZ(2,"mat-select",47),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",48),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function ts(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"td",49),A.TgZ(1,"button",50),A.NdJ("click",function(k){const pt=A.CHM(t).$implicit;return A.oxw().onUTXOClick(pt,k)}),A._uU(2,"View Info"),A.qZA(),A.qZA()}}function es(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"No utxos available."),A.qZA())}function ns(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting utxos..."),A.qZA())}function rs(i,U){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function ca(i,U){if(1&i&&(A.TgZ(0,"td",51),A.YNc(1,es,2,0,"p",31),A.YNc(2,ns,2,0,"p",31),A.YNc(3,rs,2,1,"p",31),A.qZA()),2&i){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 is=function(i){return{"display-none":i}};function as(i,U){if(1&i&&A._UZ(0,"tr",52),2&i){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,is,(null==t.listUTXOs?null:t.listUTXOs.data)&&(null==t.listUTXOs||null==t.listUTXOs.data?null:t.listUTXOs.data.length)>0))}}function Ir(i,U){1&i&&A._UZ(0,"tr",53)}function Nt(i,U){1&i&&A._UZ(0,"tr",54)}function ui(i,U){1&i&&A._UZ(0,"mat-icon",37)}const fi=function(i){return{"overflow-auto error-border":i,"overflow-auto":!0}},Dr=function(){return["no_utxo"]};let ga=(()=>{class i{constructor(t,B,k){this.logger=t,this.commonService=B,this.store=k,this.numDustUTXOs=0,this.isDustUTXO=!1,this.displayedColumns=[],this.flgSticky=!1,this.pageSize=o.IV,this.pageSizeOptions=o.TJ,this.screenSize="",this.screenSizeEnum=o.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=o.Bn,this.unSubs=[new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS?(this.flgSticky=!1,this.displayedColumns=["txid","value","actions"]):this.screenSize===o.cu.SM||this.screenSize===o.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(l.T4).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===o.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,B){const k=[[{key:"txid",value:t.txid,title:"Transaction ID",width:100}],[{key:"output",value:t.output,title:"Output",width:50,type:o.Gi.NUMBER},{key:"value",value:t.value,title:"Value (Sats)",width:50,type:o.Gi.NUMBER}],[{key:"status",value:this.commonService.titleCase(t.status),title:"Status",width:50,type:o.Gi.STRING},{key:"blockheight",value:t.blockheight,title:"Blockheight",width:50,type:o.Gi.NUMBER}],[{key:"address",value:t.address,title:"Address",width:100}]];this.store.dispatch((0,eA.qR)({payload:{data:{type:o.n_.INFORMATION,alertTitle:"UTXO Information",message:k}}}))}loadUTXOsTable(t){this.listUTXOs=new SA.by([...t]),this.listUTXOs.sortingDataAccessor=(B,k)=>B[k]&&isNaN(B[k])?B[k].toLocaleLowerCase():B[k]?+B[k]:null,this.listUTXOs.sort=this.sort,this.listUTXOs.filterPredicate=(B,k)=>JSON.stringify(B).toLowerCase().includes(k),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 i.\u0275fac=function(t){return new(t||i)(A.Y36(h.mQ),A.Y36(e.v),A.Y36(u.yh))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-on-chain-utxos"]],viewQuery:function(t,B){if(1&t&&(A.Gf(lt.YE,5),A.Gf(ft.NW,5)),2&t){let k;A.iGM(k=A.CRH())&&(B.sort=k.first),A.iGM(k=A.CRH())&&(B.paginator=k.first)}},inputs:{numDustUTXOs:"numDustUTXOs",isDustUTXO:"isDustUTXO",utxos:"utxos"},features:[A._Bn([{provide:ft.ye,useValue:(0,o.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,B){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A._UZ(2,"div",2),A.TgZ(3,"mat-form-field",3),A.TgZ(4,"input",4),A.NdJ("keyup",function(){return B.applyFilter()})("ngModelChange",function(FA){return B.selFilter=FA}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(5,"div",5),A.TgZ(6,"div",6),A.YNc(7,Vo,1,0,"mat-progress-bar",7),A.TgZ(8,"table",8,9),A.ynx(10,10),A.YNc(11,li,2,0,"th",11),A.YNc(12,qo,7,7,"td",12),A.BQk(),A.ynx(13,13),A.YNc(14,_o,2,0,"th",14),A.YNc(15,Pr,4,3,"td",12),A.BQk(),A.ynx(16,15),A.YNc(17,zr,2,0,"th",14),A.YNc(18,Li,3,2,"td",12),A.BQk(),A.ynx(19,16),A.YNc(20,$o,2,0,"th",14),A.YNc(21,sa,4,3,"td",12),A.BQk(),A.ynx(22,17),A.YNc(23,As,6,0,"th",18),A.YNc(24,ts,3,0,"td",19),A.BQk(),A.ynx(25,20),A.YNc(26,ca,4,3,"td",21),A.BQk(),A.YNc(27,as,1,3,"tr",22),A.YNc(28,Ir,1,0,"tr",23),A.YNc(29,Nt,1,0,"tr",24),A.qZA(),A._UZ(30,"mat-paginator",25),A.qZA(),A.qZA(),A.qZA(),A.YNc(31,ui,1,0,"ng-template",null,26,A.W1O)),2&t&&(A.xp6(4),A.Q6J("ngModel",B.selFilter),A.xp6(3),A.Q6J("ngIf",(null==B.apiCallStatus?null:B.apiCallStatus.status)===B.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",B.listUTXOs)("ngClass",A.VKq(11,fi,""!==B.errorMessage)),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(13,Dr)),A.xp6(1),A.Q6J("matHeaderRowDef",B.displayedColumns)("matHeaderRowDefSticky",B.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",B.displayedColumns),A.xp6(1),A.Q6J("pageSize",B.pageSize)("pageSizeOptions",B.pageSizeOptions)("showFirstLastButtons",B.screenSize!==B.screenSizeEnum.XS))},directives:[Qt.xw,Qt.Wh,Qt.yH,V.KE,ot.Nt,zA.Fj,zA.JJ,zA.On,gA.$V,ht.O5,SA.BZ,lt.YE,ht.mk,d.oO,SA.w1,SA.fO,SA.Dz,SA.mD,SA.Ke,SA.as,SA.nj,ft.NW,Y.pW,SA.ge,lt.nU,SA.ev,ht.PC,d.Zl,aA.gM,m.Hw,vt.gD,vt.$L,G.ey,F.lW,SA.yh,SA.Q2,SA.XQ,SA.Gk],pipes:[ht.rS,ht.JJ],styles:[".mat-column-txid[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-txid[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),i})();var Rr=St(7544);function os(i,U){if(1&i&&(A.TgZ(0,"span",5),A._uU(1,"UTXOs"),A.qZA()),2&i){const t=A.oxw();A.s9C("matBadge",t.numUtxos)}}function la(i,U){if(1&i&&(A.TgZ(0,"span",5),A._uU(1,"Dust UTXOs"),A.qZA()),2&i){const t=A.oxw();A.s9C("matBadge",t.numDustUtxos)}}let ss=(()=>{class i{constructor(t,B){this.logger=t,this.store=B,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(l.T4).pipe((0,r.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(B=>+B.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 i.\u0275fac=function(t){return new(t||i)(A.Y36(h.mQ),A.Y36(u.yh))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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,B){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"mat-tab-group",1),A.NdJ("selectedIndexChange",function(FA){return B.onSelectedIndexChanged(FA)}),A.TgZ(2,"mat-tab"),A.YNc(3,os,2,1,"ng-template",2),A._UZ(4,"rtl-cl-on-chain-utxos",3),A.qZA(),A.TgZ(5,"mat-tab"),A.YNc(6,la,2,1,"ng-template",2),A._UZ(7,"rtl-cl-on-chain-utxos",4),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(1),A.Q6J("selectedIndex",B.selectedTableIndex),A.xp6(3),A.Q6J("utxos",B.utxos)("numDustUTXOs",B.numDustUtxos)("isDustUTXO",!1),A.xp6(3),A.Q6J("utxos",B.dustUtxos)("numDustUTXOs",B.numDustUtxos)("isDustUTXO",!0))},directives:[Qt.xw,Qt.yH,Qt.Wh,yA.SP,yA.uX,yA.uD,ga,Rr.k],styles:[""]}),i})();const jr=function(i,U){return[i,U]};function Ei(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"div",12),A.NdJ("click",function(){const FA=A.CHM(t).$implicit;return A.oxw().activeLink=null==FA?null:FA.link}),A._uU(1),A.qZA()}if(2&i){const t=U.$implicit,B=A.oxw();A.Q6J("active",B.activeLink===(null==t?null:t.link))("routerLink",A.WLB(3,jr,null==t?null:t.link,null==B.selectedTable?null:B.selectedTable.name)),A.xp6(1),A.Oqu(null==t?null:t.name)}}let cs=(()=>{class i{constructor(t,B,k){this.store=t,this.router=B,this.activatedRoute=k,this.selNode={},this.faExchangeAlt=E.Ssp,this.faChartPie=E.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(B=>this.router.url.includes(B.link));this.activeLink=t?t.link:this.links[0].link,this.selectedTable=this.tables.find(B=>B.name===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,r.R)(this.unSubs[0]),(0,_A.h)(B=>B instanceof Ae.Av)).subscribe(B=>{const k=this.links.find(FA=>B.urlAfterRedirects.includes(FA.link));this.activeLink=k?k.link:this.links[0].link,this.selectedTable=this.tables.find(FA=>FA.name===B.urlAfterRedirects.substring(B.urlAfterRedirects.lastIndexOf("/")+1))}),this.store.select(l.Jo).pipe((0,r.R)(this.unSubs[1])).subscribe(B=>{this.selNode=B}),this.store.select(l.Rn).pipe((0,r.R)(this.unSubs[2])).subscribe(B=>{this.balances=[{title:"Total Balance",dataValue:B.balance.totalBalance||0},{title:"Confirmed",dataValue:B.balance.confBalance},{title:"Unconfirmed",dataValue:B.balance.unconfBalance}]})}openSendFundsModal(t){this.store.dispatch((0,eA.qR)({payload:{data:{sweepAll:t,component:oa}}}))}onSelectedTableIndexChanged(t){this.selectedTable=this.tables.find(B=>B.id===t),this.router.navigate(["./",this.activeLink,this.selectedTable.name],{relativeTo:this.activatedRoute})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(u.yh),A.Y36(Ae.F0),A.Y36(Ae.gz))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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,B){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"On-chain Balance"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"mat-card"),A.TgZ(6,"mat-card-content",4),A._UZ(7,"rtl-currency-unit-converter",5),A.qZA(),A.qZA(),A.qZA(),A.TgZ(8,"div",0),A._UZ(9,"fa-icon",1),A.TgZ(10,"span",2),A._uU(11,"On-chain Transactions"),A.qZA(),A.qZA(),A.TgZ(12,"div",6),A.TgZ(13,"mat-card"),A.TgZ(14,"mat-card-content",4),A.TgZ(15,"nav",7),A.YNc(16,Ei,2,6,"div",8),A.qZA(),A.TgZ(17,"div",9),A._UZ(18,"router-outlet"),A.qZA(),A.TgZ(19,"div",10),A.TgZ(20,"rtl-cl-utxo-tables",11),A.NdJ("selectedTableIndexChange",function(FA){return B.onSelectedTableIndexChanged(FA)}),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(1),A.Q6J("icon",B.faChartPie),A.xp6(6),A.Q6J("values",B.balances),A.xp6(2),A.Q6J("icon",B.faExchangeAlt),A.xp6(7),A.Q6J("ngForOf",B.links),A.xp6(4),A.Q6J("selectedTableIndex",null==B.selectedTable?null:B.selectedTable.id))},directives:[Qt.xw,Qt.Wh,f.BN,w.a8,w.dn,re.D,yA.BU,ht.sg,Qt.yH,Ae.lC,ss,yA.Nj,Ae.rH],styles:[""]}),i})();function Ba(i,U){if(1&i&&(A.TgZ(0,"span",10),A._uU(1,"Channels"),A.qZA()),2&i){const t=A.oxw();A.s9C("matBadge",t.activeChannels)}}function ua(i,U){if(1&i&&(A.TgZ(0,"span",10),A._uU(1,"Peers"),A.qZA()),2&i){const t=A.oxw();A.s9C("matBadge",t.activePeers)}}let fa=(()=>{class i{constructor(t,B,k){this.store=t,this.logger=B,this.router=k,this.activePeers=0,this.activeChannels=0,this.faUsers=E.FVb,this.faChartPie=E.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,r.R)(this.unSubs[0]),(0,_A.h)(t=>t instanceof Ae.Av)).subscribe(t=>{this.activeLink=this.links.findIndex(B=>B.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}),this.store.select(l.ZW).pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.activeChannels=t.activeChannels.length||0}),this.store.select(l.Wi).pipe((0,r.R)(this.unSubs[2])).subscribe(t=>{this.activePeers=t.peers&&t.peers.length?t.peers.length:0,this.logger.info(t)}),this.store.select(l.Rn).pipe((0,r.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("/cl/connections/"+this.links[t.index].link)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(u.yh),A.Y36(h.mQ),A.Y36(Ae.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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,B){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"On-chain Balance"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"mat-card"),A.TgZ(6,"mat-card-content",4),A._UZ(7,"rtl-currency-unit-converter",5),A.qZA(),A.qZA(),A.qZA(),A.TgZ(8,"div",0),A._UZ(9,"fa-icon",1),A.TgZ(10,"span",2),A._uU(11,"Connections"),A.qZA(),A.qZA(),A.TgZ(12,"div",6),A.TgZ(13,"mat-card"),A.TgZ(14,"mat-card-content",4),A.TgZ(15,"mat-tab-group",7),A.NdJ("selectedIndexChange",function(FA){return B.activeLink=FA})("selectedTabChange",function(FA){return B.onSelectedTabChange(FA)}),A.TgZ(16,"mat-tab"),A.YNc(17,Ba,2,1,"ng-template",8),A.qZA(),A.TgZ(18,"mat-tab"),A.YNc(19,ua,2,1,"ng-template",8),A.qZA(),A.qZA(),A.TgZ(20,"div",9),A._UZ(21,"router-outlet"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(1),A.Q6J("icon",B.faChartPie),A.xp6(6),A.Q6J("values",B.balances),A.xp6(2),A.Q6J("icon",B.faUsers),A.xp6(6),A.Q6J("selectedIndex",B.activeLink))},directives:[Qt.xw,Qt.Wh,f.BN,w.a8,w.dn,re.D,yA.SP,yA.uX,yA.uD,Qt.yH,Ae.lC,Rr.k],styles:[""]}),i})();function gs(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"div",11),A.NdJ("click",function(){const FA=A.CHM(t).$implicit;return A.oxw().activeLink=FA.link}),A._uU(1),A.qZA()}if(2&i){const t=U.$implicit,B=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",B.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let ls=(()=>{class i{constructor(t,B,k){this.logger=t,this.store=B,this.router=k,this.faExchangeAlt=E.Ssp,this.faChartPie=E.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(B=>this.router.url.includes(B.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,r.R)(this.unSubs[0]),(0,_A.h)(B=>B instanceof Ae.Av)).subscribe(B=>{const k=this.links.find(FA=>B.urlAfterRedirects.includes(FA.link));this.activeLink=k?k.link:this.links[0].link,this.routerUrl=B.urlAfterRedirects}),this.store.select(l.Jo).pipe((0,r.R)(this.unSubs[1])).subscribe(B=>{if(this.selNode=B,this.selNode.enableOffers){this.store.dispatch((0,WA.yl)()),this.store.dispatch((0,WA.uT)()),this.links.push({link:"offers",name:"Offers"}),this.links.push({link:"offrBookmarks",name:"Paid Offer Bookmarks"});const k=this.links.find(FA=>this.router.url.includes(FA.link));this.activeLink=k?k.link:this.links[0].link}}),this.store.select(l.Wj).pipe((0,r.R)(this.unSubs[2]),(0,a.M)(this.store.select(l.Jo))).subscribe(([B,k])=>{this.currencyUnits=k.currencyUnits,this.balances=k.userPersona===o.ol.OPERATOR?[{title:"Local Capacity",dataValue:B.localRemoteBalance.localBalance,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:B.localRemoteBalance.remoteBalance,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:B.localRemoteBalance.localBalance,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:B.localRemoteBalance.remoteBalance,tooltip:"Amount you can receive"}],this.logger.info(B)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(h.mQ),A.Y36(u.yh),A.Y36(Ae.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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,B){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Lightning Balance"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"mat-card"),A.TgZ(6,"mat-card-content",4),A._UZ(7,"rtl-currency-unit-converter",5),A.qZA(),A.qZA(),A.qZA(),A.TgZ(8,"div",6),A._UZ(9,"fa-icon",1),A.TgZ(10,"span",2),A._uU(11,"Lightning Transactions"),A.qZA(),A.qZA(),A.TgZ(12,"div",7),A.TgZ(13,"mat-card"),A.TgZ(14,"mat-card-content",4),A.TgZ(15,"nav",8),A.YNc(16,gs,2,3,"div",9),A.qZA(),A.TgZ(17,"div",10),A._UZ(18,"router-outlet"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(1),A.Q6J("icon",B.faChartPie),A.xp6(6),A.Q6J("values",B.balances),A.xp6(2),A.Q6J("icon",B.faExchangeAlt),A.xp6(7),A.Q6J("ngForOf",B.links))},directives:[Qt.xw,Qt.Wh,f.BN,w.a8,w.dn,re.D,yA.BU,ht.sg,Qt.yH,Ae.lC,yA.Nj,Ae.rH],styles:[""]}),i})();function Zr(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"div",11),A.NdJ("click",function(){const FA=A.CHM(t).$implicit;return A.oxw().activeLink=FA.link}),A._uU(1),A.qZA()}if(2&i){const t=U.$implicit,B=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",B.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let Bs=(()=>{class i{constructor(t){this.router=t,this.faMapSigns=E.SuH,this.links=[{link:"forwardinghistory",name:"Forwarding History"},{link:"routingpeers",name:"Routing Peers"},{link:"failedtransactions",name:"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(B=>this.router.url.includes(B.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,r.R)(this.unSubs[0]),(0,_A.h)(B=>B instanceof Ae.Av)).subscribe(B=>{const k=this.links.find(FA=>B.urlAfterRedirects.includes(FA.link));this.activeLink=k?k.link:this.links[0].link})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(Ae.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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,B){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A._UZ(2,"fa-icon",2),A.TgZ(3,"span",3),A._uU(4,"Routing"),A.qZA(),A.qZA(),A.TgZ(5,"div",4),A.TgZ(6,"mat-card",5),A.TgZ(7,"mat-card-content",6),A.TgZ(8,"div",7),A.TgZ(9,"nav",8),A.YNc(10,Zr,2,3,"div",9),A.qZA(),A.qZA(),A.TgZ(11,"div",10),A._UZ(12,"router-outlet"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(2),A.Q6J("icon",B.faMapSigns),A.xp6(8),A.Q6J("ngForOf",B.links))},directives:[Qt.xw,Qt.Wh,f.BN,Qt.yH,w.a8,w.dn,yA.BU,ht.sg,Ae.lC,yA.Nj,Ae.rH],styles:[""]}),i})();var Kr=St(6895);function us(i,U){if(1&i&&(A.TgZ(0,"span",6),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.Oqu(t)}}function Ea(i,U){1&i&&(A.TgZ(0,"th",27),A._uU(1,"Type"),A.qZA())}function fs(i,U){if(1&i&&(A.TgZ(0,"td",28),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.type," ")}}function Es(i,U){1&i&&(A.TgZ(0,"th",27),A._uU(1,"Address"),A.qZA())}function hs(i,U){if(1&i&&(A.TgZ(0,"td",28),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.address," ")}}function ws(i,U){1&i&&(A.TgZ(0,"th",27),A._uU(1,"Port"),A.qZA())}function Cs(i,U){if(1&i&&(A.TgZ(0,"td",28),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.port," ")}}function ha(i,U){1&i&&(A.TgZ(0,"th",29),A.TgZ(1,"span",30),A._uU(2,"Actions"),A.qZA(),A.qZA())}function Qs(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"td",31),A.TgZ(1,"span",30),A.TgZ(2,"button",32),A.NdJ("copied",function(k){return A.CHM(t),A.oxw(2).onCopyNodeURI(k)}),A._uU(3,"Copy Node URI"),A.qZA(),A.qZA(),A.qZA()}if(2&i){const t=U.$implicit,B=A.oxw(2);A.xp6(2),A.Q6J("payload",(null==B.lookupResult?null:B.lookupResult.nodeid)+"@"+t.address+":"+t.port)}}function Ms(i,U){1&i&&A._UZ(0,"tr",33)}function ds(i,U){1&i&&A._UZ(0,"tr",34)}const ps=function(i){return{"background-color":i}};function Is(i,U){if(1&i&&(A.TgZ(0,"div",1),A._UZ(1,"mat-divider",2),A.TgZ(2,"div",3),A.TgZ(3,"div",4),A.TgZ(4,"h4",5),A._uU(5,"Alias"),A.qZA(),A.TgZ(6,"span",6),A._uU(7),A.TgZ(8,"span",7),A._uU(9),A.qZA(),A.qZA(),A.qZA(),A.TgZ(10,"div",8),A.TgZ(11,"h4",5),A._uU(12,"Pub Key"),A.qZA(),A.TgZ(13,"span",9),A._uU(14),A.qZA(),A.qZA(),A.qZA(),A._UZ(15,"mat-divider",10),A.TgZ(16,"div",3),A.TgZ(17,"div",4),A.TgZ(18,"h4",5),A._uU(19,"Last Update"),A.qZA(),A.TgZ(20,"span",6),A._uU(21),A.ALo(22,"date"),A.qZA(),A.qZA(),A.TgZ(23,"div",8),A.TgZ(24,"h4",5),A._uU(25,"Features"),A.qZA(),A.YNc(26,us,2,1,"span",11),A.qZA(),A.qZA(),A._UZ(27,"mat-divider",10),A.TgZ(28,"div",12),A.TgZ(29,"h4",13),A._uU(30,"Addresses"),A.qZA(),A.TgZ(31,"div",14),A.TgZ(32,"table",15,16),A.ynx(34,17),A.YNc(35,Ea,2,0,"th",18),A.YNc(36,fs,2,1,"td",19),A.BQk(),A.ynx(37,20),A.YNc(38,Es,2,0,"th",18),A.YNc(39,hs,2,1,"td",19),A.BQk(),A.ynx(40,21),A.YNc(41,ws,2,0,"th",18),A.YNc(42,Cs,2,1,"td",19),A.BQk(),A.ynx(43,22),A.YNc(44,ha,3,0,"th",23),A.YNc(45,Qs,4,1,"td",24),A.BQk(),A.YNc(46,Ms,1,0,"tr",25),A.YNc(47,ds,1,0,"tr",26),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&i){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,ps,"#"+(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/YYYY 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 Pn=(()=>{class i{constructor(t,B){this.logger=t,this.snackBar=B,this.featureDescriptions=[],this.displayedColumns=["type","address","port","actions"]}ngOnInit(){if(this.addresses=new SA.by(this.lookupResult&&this.lookupResult.addresses?[...this.lookupResult.addresses]:[]),this.addresses.data=this.lookupResult.addresses||[],this.addresses.sort=this.sort,this.addresses.sortingDataAccessor=(t,B)=>t[B]&&isNaN(t[B])?t[B].toLocaleLowerCase():t[B]?+t[B]:null,this.lookupResult.features&&""!==this.lookupResult.features.trim()){const t=parseInt(this.lookupResult.features,16);o._C.forEach(B=>{t&(1<{class i{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(l.W3).pipe((0,r.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 i.\u0275fac=function(t){return new(t||i)(A.Y36(u.yh))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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,B){1&t&&A.YNc(0,xs,204,91,"div",0),2&t&&A.Q6J("ngIf",B.lookupResult)},directives:[ht.O5,Qt.xw,AA.d,Qt.Wh,Qt.yH],pipes:[ht.JJ,ht.uU],styles:[".mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%], .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{height:38px!important}"]}),i})();const Ys=["form"];function Ts(i,U){if(1&i&&(A.TgZ(0,"mat-radio-button",17),A._uU(1),A.qZA()),2&i){const t=U.$implicit,B=A.oxw();A.Q6J("value",t.id)("checked",B.selectedFieldId===t.id),A.xp6(1),A.hij(" ",t.name," ")}}function Er(i,U){if(1&i&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.hij("",null==t.lookupFields[t.selectedFieldId]?null:t.lookupFields[t.selectedFieldId].placeholder," is required.")}}function Ss(i,U){if(1&i&&(A.TgZ(0,"div"),A._UZ(1,"rtl-cl-node-lookup",26),A.qZA()),2&i){const t=A.oxw(3);A.xp6(1),A.Q6J("lookupResult",t.nodeLookupValue)}}function wa(i,U){if(1&i&&(A.TgZ(0,"span",24),A.YNc(1,Ss,2,1,"div",25),A.qZA()),2&i){const t=A.oxw(2),B=A.MAs(19);A.xp6(1),A.Q6J("ngIf",""!==t.nodeLookupValue.nodeid)("ngIfElse",B)}}function Gi(i,U){if(1&i&&(A.TgZ(0,"div"),A._UZ(1,"rtl-cl-channel-lookup",26),A.qZA()),2&i){const t=A.oxw(3);A.xp6(1),A.Q6J("lookupResult",t.channelLookupValue)}}function We(i,U){if(1&i&&(A.TgZ(0,"span",24),A.YNc(1,Gi,2,1,"div",25),A.qZA()),2&i){const t=A.oxw(2),B=A.MAs(19);A.xp6(1),A.Q6J("ngIf",t.channelLookupValue.length>0)("ngIfElse",B)}}function hr(i,U){1&i&&(A.TgZ(0,"span",24),A.TgZ(1,"h3"),A._uU(2,"Error! Unable to find details!"),A.qZA(),A.qZA())}function Hi(i,U){if(1&i&&(A.TgZ(0,"div",18),A.TgZ(1,"div",19),A.TgZ(2,"span",20),A._uU(3),A.qZA(),A.qZA(),A.TgZ(4,"div",21),A.YNc(5,wa,2,2,"span",22),A.YNc(6,We,2,2,"span",22),A.YNc(7,hr,3,0,"span",23),A.qZA(),A.qZA()),2&i){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 Us(i,U){1&i&&(A.TgZ(0,"h3"),A._uU(1,"Error! Unable to find details!"),A.qZA())}const hi=function(i){return{"mt-1":!0,"mt-2":i}};let wi=(()=>{class i{constructor(t,B,k,FA){this.logger=t,this.commonService=B,this.store=k,this.actions=FA,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=E.wn1,this.screenSize="",this.screenSizeEnum=o.cu,this.unSubs=[new c.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,r.R)(this.unSubs[0]),(0,_A.h)(t=>t.type===o.sW.SET_LOOKUP_CL||t.type===o.sW.UPDATE_API_CALL_STATUS_CL)).subscribe(t=>{if(t.type===o.sW.SET_LOOKUP_CL){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===o.sW.UPDATE_API_CALL_STATUS_CL&&t.payload.status===o.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,WA.Sf)({payload:this.lookupKey.trim()}));break;case 1:this.store.dispatch((0,WA.$A)({payload:{uiMessage:o.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 i.\u0275fac=function(t){return new(t||i)(A.Y36(h.mQ),A.Y36(e.v),A.Y36(u.yh),A.Y36(C.eX))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-lookups"]],viewQuery:function(t,B){if(1&t&&A.Gf(Ys,7),2&t){let k;A.iGM(k=A.CRH())&&(B.form=k.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,B){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-content",2),A.TgZ(3,"form",3,4),A.TgZ(5,"div",5),A.TgZ(6,"mat-radio-group",6),A.NdJ("ngModelChange",function(FA){return B.selectedFieldId=FA})("change",function(FA){return B.onSelectChange(FA)}),A.YNc(7,Ts,2,3,"mat-radio-button",7),A.qZA(),A.qZA(),A.TgZ(8,"mat-form-field",8),A.TgZ(9,"input",9,10),A.NdJ("change",function(){return B.clearLookupValue()})("ngModelChange",function(FA){return B.lookupKey=FA}),A.qZA(),A.YNc(11,Er,2,1,"mat-error",11),A.qZA(),A.TgZ(12,"div",12),A.TgZ(13,"button",13),A.NdJ("click",function(){return B.resetData()}),A._uU(14,"Clear"),A.qZA(),A.TgZ(15,"button",14),A.NdJ("click",function(){return B.onLookup()}),A._uU(16,"Lookup"),A.qZA(),A.qZA(),A.qZA(),A.YNc(17,Hi,8,4,"div",15),A.qZA(),A.qZA(),A.qZA(),A.YNc(18,Us,2,0,"ng-template",null,16,A.W1O)),2&t&&(A.xp6(6),A.Q6J("ngModel",B.selectedFieldId),A.xp6(1),A.Q6J("ngForOf",B.lookupFields),A.xp6(1),A.Q6J("ngClass",A.VKq(7,hi,B.screenSize===B.screenSizeEnum.XS||B.screenSize===B.screenSizeEnum.SM)),A.xp6(1),A.Q6J("placeholder",(null==B.lookupFields[B.selectedFieldId]?null:B.lookupFields[B.selectedFieldId].placeholder)||"Lookup Key")("ngModel",B.lookupKey),A.xp6(2),A.Q6J("ngIf",!B.lookupKey),A.xp6(6),A.Q6J("ngIf",B.flgSetLookupValue))},directives:[Qt.xw,Qt.yH,Qt.Wh,w.dn,zA._Y,zA.JL,zA.F,YA.VQ,zA.JJ,zA.On,ht.sg,V.KE,ht.mk,d.oO,ot.Nt,zA.Fj,zA.Q7,ht.O5,F.lW,YA.U0,V.TO,ht.RF,ht.n9,ht.ED,Pn,Fs],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}"]}),i})();var wr=(()=>{return(i=wr||(wr={})).KB="KB",i.KW="KW",wr;var i})();function ve(i,U){if(1&i&&(A.TgZ(0,"div",2),A.TgZ(1,"div",3),A.TgZ(2,"div",4),A.TgZ(3,"h4",5),A._uU(4,"Opening"),A.qZA(),A.TgZ(5,"div",6),A._uU(6),A.ALo(7,"number"),A.qZA(),A.qZA(),A.TgZ(8,"div",7),A.TgZ(9,"h4",5),A._uU(10,"Mutual Close"),A.qZA(),A.TgZ(11,"div",6),A._uU(12),A.ALo(13,"number"),A.qZA(),A.qZA(),A.TgZ(14,"div",8),A.TgZ(15,"h4",5),A._uU(16,"Unilateral Close"),A.qZA(),A.TgZ(17,"div",6),A._uU(18),A.ALo(19,"number"),A.qZA(),A.qZA(),A.TgZ(20,"div",9),A.TgZ(21,"h4",5),A._uU(22,"Delayed To Us"),A.qZA(),A.TgZ(23,"div",6),A._uU(24),A.ALo(25,"number"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(26,"div",3),A.TgZ(27,"div",10),A.TgZ(28,"h4",5),A._uU(29,"Minimum Acceptable"),A.qZA(),A.TgZ(30,"div",6),A._uU(31),A.ALo(32,"number"),A.qZA(),A.qZA(),A.TgZ(33,"div",11),A.TgZ(34,"h4",5),A._uU(35,"Maximum Acceptable"),A.qZA(),A.TgZ(36,"div",6),A._uU(37),A.ALo(38,"number"),A.qZA(),A.qZA(),A.TgZ(39,"div",12),A.TgZ(40,"h4",5),A._uU(41,"HTLC Resolution"),A.qZA(),A.TgZ(42,"div",6),A._uU(43),A.ALo(44,"number"),A.qZA(),A.qZA(),A.TgZ(45,"div",13),A.TgZ(46,"h4",5),A._uU(47,"Penalty"),A.qZA(),A.TgZ(48,"div",6),A._uU(49),A.ALo(50,"number"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&i){const t=A.oxw();A.xp6(6),A.Oqu(A.lcZ(7,8,null==t.perkbw?null:t.perkbw.opening)),A.xp6(6),A.Oqu(A.lcZ(13,10,null==t.perkbw?null:t.perkbw.mutual_close)),A.xp6(6),A.Oqu(A.lcZ(19,12,null==t.perkbw?null:t.perkbw.unilateral_close)),A.xp6(6),A.Oqu(A.lcZ(25,14,null==t.perkbw?null:t.perkbw.delayed_to_us)),A.xp6(7),A.Oqu(A.lcZ(32,16,null==t.perkbw?null:t.perkbw.min_acceptable)),A.xp6(6),A.Oqu(A.lcZ(38,18,null==t.perkbw?null:t.perkbw.max_acceptable)),A.xp6(6),A.Oqu(A.lcZ(44,20,null==t.perkbw?null:t.perkbw.htlc_resolution)),A.xp6(6),A.Oqu(A.lcZ(50,22,null==t.perkbw?null:t.perkbw.penalty))}}function Ps(i,U){if(1&i&&(A.TgZ(0,"div",14),A.TgZ(1,"p"),A._uU(2),A.qZA(),A.qZA()),2&i){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let Cr=(()=>{class i{constructor(){this.perkbw={}}ngAfterContentChecked(){this.feeRateStyle===wr.KB?this.perkbw=this.feeRates.perkb:this.feeRateStyle===wr.KW&&(this.perkbw=this.feeRates.perkw)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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"],["matTooltip","Default feerate for fundchannel and withdraw","matTooltipPosition","below"],["fxLayoutAlign","start",1,"dashboard-info-title"],[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"],["matTooltip","Feerate for commitment_transaction in a live channel which we originally funded","matTooltipPosition","below"],["matTooltip","Feerate for returning unilateral close funds to our wallet","matTooltipPosition","below"],["matTooltip","The smallest feerate that you can use, usually the minimum relayed feerate of the backend","matTooltipPosition","below"],["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"],["matTooltip","Feerate for returning unilateral close HTLC outputs to our wallet","matTooltipPosition","below"],["matTooltip","Feerate to start at when penalizing a cheat attempt","matTooltipPosition","below"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,B){if(1&t&&(A.YNc(0,ve,51,24,"div",0),A.YNc(1,Ps,3,1,"ng-template",null,1,A.W1O)),2&t){const k=A.MAs(2);A.Q6J("ngIf",""===(null==B.errorMessage?null:B.errorMessage.trim()))("ngIfElse",k)}},directives:[ht.O5,Qt.xw,Qt.yH,Qt.Wh,aA.gM],pipes:[ht.JJ],styles:[".fee-rate-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{height:44px}"]}),i})();function zs(i,U){if(1&i&&(A.TgZ(0,"div",2),A.TgZ(1,"div",3),A.TgZ(2,"div",4),A.TgZ(3,"h4",5),A._uU(4,"Opening Channel"),A.qZA(),A.TgZ(5,"div",6),A._uU(6),A.ALo(7,"number"),A.qZA(),A.qZA(),A.TgZ(8,"div",7),A.TgZ(9,"h4",5),A._uU(10,"Mutual Close"),A.qZA(),A.TgZ(11,"div",6),A._uU(12),A.ALo(13,"number"),A.qZA(),A.qZA(),A.TgZ(14,"div",8),A.TgZ(15,"h4",5),A._uU(16,"Unilateral Close"),A.qZA(),A.TgZ(17,"div",6),A._uU(18),A.ALo(19,"number"),A.qZA(),A.qZA(),A.TgZ(20,"div",9),A._UZ(21,"h4",5),A._UZ(22,"div",6),A.qZA(),A.qZA(),A.TgZ(23,"div",3),A.TgZ(24,"div",10),A.TgZ(25,"h4",5),A._uU(26,"HTLC Timeout"),A.qZA(),A.TgZ(27,"div",6),A._uU(28),A.ALo(29,"number"),A.qZA(),A.qZA(),A.TgZ(30,"div",11),A.TgZ(31,"h4",5),A._uU(32,"HTLC Success"),A.qZA(),A.TgZ(33,"div",6),A._uU(34),A.ALo(35,"number"),A.qZA(),A.qZA(),A.TgZ(36,"div",9),A._UZ(37,"h4",5),A._UZ(38,"div",6),A.qZA(),A.TgZ(39,"div",9),A._UZ(40,"h4",5),A._UZ(41,"div",6),A.qZA(),A.qZA(),A.qZA()),2&i){const t=A.oxw();A.xp6(6),A.Oqu(A.lcZ(7,5,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.opening_channel_satoshis)),A.xp6(6),A.Oqu(A.lcZ(13,7,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.mutual_close_satoshis)),A.xp6(6),A.Oqu(A.lcZ(19,9,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.unilateral_close_satoshis)),A.xp6(10),A.Oqu(A.lcZ(29,11,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.htlc_timeout_satoshis)),A.xp6(6),A.Oqu(A.lcZ(35,13,null==t.feeRates||null==t.feeRates.onchain_fee_estimates?null:t.feeRates.onchain_fee_estimates.htlc_success_satoshis))}}function Rs(i,U){if(1&i&&(A.TgZ(0,"div",12),A.TgZ(1,"p"),A._uU(2),A.qZA(),A.qZA()),2&i){const t=A.oxw();A.xp6(2),A.Oqu(t.errorMessage)}}let Ns=(()=>{class i{constructor(){}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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"],["matTooltip","Estimated cost of typical channel open","matTooltipPosition","below"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["matTooltip","Estimated cost of typical channel close","matTooltipPosition","below"],["matTooltip","Estimated cost of typical unilateral close (without HTLCs)","matTooltipPosition","below"],["fxFlex","12"],["matTooltip","Estimated cost of typical HTLC timeout transaction","matTooltipPosition","below"],["matTooltip","Estimated cost of typical HTLC fulfillment transaction","matTooltipPosition","below"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(t,B){if(1&t&&(A.YNc(0,zs,42,15,"div",0),A.YNc(1,Rs,3,1,"ng-template",null,1,A.W1O)),2&t){const k=A.MAs(2);A.Q6J("ngIf",""===(null==B.errorMessage?null:B.errorMessage.trim()))("ngIfElse",k)}},directives:[ht.O5,Qt.xw,Qt.yH,Qt.Wh,aA.gM],pipes:[ht.JJ],styles:[".fee-rate-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{height:44px}"]}),i})();function Ci(i,U){1&i&&A._UZ(0,"mat-progress-bar",19)}function sr(i,U){if(1&i&&A._UZ(0,"rtl-cl-node-info",20),2&i){const t=A.oxw(3);A.Q6J("information",t.information)("showColorFieldSeparately",!1)}}function Ca(i,U){if(1&i&&A._UZ(0,"rtl-cl-channel-status-info",21),2&i){const t=A.oxw(3);A.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[0]+" "+t.errorMessages[2])}}function Nr(i,U){if(1&i&&A._UZ(0,"rtl-cl-fee-info",22),2&i){const t=A.oxw(3);A.Q6J("fees",t.fees)("errorMessage",t.errorMessages[1]+" "+t.errorMessages[3]+" "+t.errorMessages[4])}}function Qa(i,U){if(1&i&&A._UZ(0,"rtl-cl-fee-rates",23),2&i){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKB)("feeRateStyle","KB")("errorMessage",t.errorMessages[5])}}function bs(i,U){if(1&i&&A._UZ(0,"rtl-cl-fee-rates",23),2&i){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKW)("feeRateStyle","KW")("errorMessage",t.errorMessages[6])}}function Qi(i,U){if(1&i&&A._UZ(0,"rtl-cl-onchain-fee-estimates",24),2&i){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKW)("errorMessage",t.errorMessages[5])}}const Wr=function(i){return{"dashboard-card-content":!0,"error-border":i}};function vr(i,U){if(1&i&&(A.TgZ(0,"mat-grid-tile",4),A.TgZ(1,"div",5),A.TgZ(2,"div",6),A.TgZ(3,"div",7),A._UZ(4,"fa-icon",8),A.TgZ(5,"span"),A._uU(6),A.qZA(),A.qZA(),A.qZA(),A.TgZ(7,"div",9),A.TgZ(8,"mat-card",10),A.TgZ(9,"mat-card-content",11),A.YNc(10,Ci,1,0,"mat-progress-bar",12),A.TgZ(11,"div",13),A.YNc(12,sr,1,2,"rtl-cl-node-info",14),A.YNc(13,Ca,1,2,"rtl-cl-channel-status-info",15),A.YNc(14,Nr,1,2,"rtl-cl-fee-info",16),A.YNc(15,Qa,1,3,"rtl-cl-fee-rates",17),A.YNc(16,bs,1,3,"rtl-cl-fee-rates",17),A.YNc(17,Qi,1,2,"rtl-cl-onchain-fee-estimates",18),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&i){const t=U.$implicit,B=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,Wr,"node"===t.id&&B.apiCallStatusNodeInfo.status===B.apiCallStatusEnum.ERROR||"status"===t.id&&(B.apiCallStatusNodeInfo.status===B.apiCallStatusEnum.ERROR||B.apiCallStatusLRBal.status===B.apiCallStatusEnum.ERROR)||"fee"===t.id&&(B.apiCallStatusFees.status===B.apiCallStatusEnum.ERROR||B.apiCallStatusChannels.status===B.apiCallStatusEnum.ERROR||B.apiCallStatusFHistory.status===B.apiCallStatusEnum.ERROR)||"feeRatesKB"===t.id&&B.apiCallStatusPerKB.status===B.apiCallStatusEnum.ERROR||"feeRatesKW"===t.id&&B.apiCallStatusPerKW.status===B.apiCallStatusEnum.ERROR||"onChainFeeEstimates"===t.id&&B.apiCallStatusPerKW.status===B.apiCallStatusEnum.ERROR)),A.xp6(1),A.Q6J("ngIf","node"===t.id&&B.apiCallStatusNodeInfo.status===B.apiCallStatusEnum.INITIATED||"status"===t.id&&(B.apiCallStatusNodeInfo.status===B.apiCallStatusEnum.INITIATED||B.apiCallStatusLRBal.status===B.apiCallStatusEnum.INITIATED)||"fee"===t.id&&(B.apiCallStatusFees.status===B.apiCallStatusEnum.INITIATED||B.apiCallStatusChannels.status===B.apiCallStatusEnum.INITIATED||B.apiCallStatusFHistory.status===B.apiCallStatusEnum.INITIATED)||"feeRatesKB"===t.id&&B.apiCallStatusPerKB.status===B.apiCallStatusEnum.INITIATED||"feeRatesKW"===t.id&&B.apiCallStatusPerKW.status===B.apiCallStatusEnum.INITIATED||"onChainFeeEstimates"===t.id&&B.apiCallStatusPerKW.status===B.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 Ls(i,U){if(1&i&&(A.TgZ(0,"mat-grid-list",2),A.YNc(1,vr,18,15,"mat-grid-tile",3),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("ngForOf",t.nodeCardsOperator)}}function Mi(i,U){1&i&&A._UZ(0,"mat-progress-bar",19)}function Vr(i,U){if(1&i&&A._UZ(0,"rtl-cl-node-info",20),2&i){const t=A.oxw(3);A.Q6J("information",t.information)("showColorFieldSeparately",!1)}}function Gs(i,U){if(1&i&&A._UZ(0,"rtl-cl-channel-status-info",21),2&i){const t=A.oxw(3);A.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[0]+" "+t.errorMessages[2])}}function Hs(i,U){if(1&i&&A._UZ(0,"rtl-cl-fee-info",22),2&i){const t=A.oxw(3);A.Q6J("fees",t.fees)("errorMessage",t.errorMessages[1]+" "+t.errorMessages[3]+" "+t.errorMessages[4])}}function Js(i,U){if(1&i&&A._UZ(0,"rtl-cl-fee-rates",23),2&i){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKB)("feeRateStyle","KB")("errorMessage",t.errorMessages[5])}}function Ma(i,U){if(1&i&&A._UZ(0,"rtl-cl-fee-rates",23),2&i){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKW)("feeRateStyle","KW")("errorMessage",t.errorMessages[5])}}function Os(i,U){if(1&i&&A._UZ(0,"rtl-cl-onchain-fee-estimates",24),2&i){const t=A.oxw(3);A.Q6J("feeRates",t.feeRatesPerKW)("errorMessage",t.errorMessages[5])}}function ks(i,U){if(1&i&&(A.TgZ(0,"mat-grid-tile",4),A.TgZ(1,"div",5),A.TgZ(2,"div",6),A.TgZ(3,"div",25),A._UZ(4,"fa-icon",8),A.TgZ(5,"span"),A._uU(6),A.qZA(),A.qZA(),A.qZA(),A.TgZ(7,"div",9),A.TgZ(8,"mat-card",10),A.TgZ(9,"mat-card-content",11),A.YNc(10,Mi,1,0,"mat-progress-bar",12),A.TgZ(11,"div",13),A.YNc(12,Vr,1,2,"rtl-cl-node-info",14),A.YNc(13,Gs,1,2,"rtl-cl-channel-status-info",15),A.YNc(14,Hs,1,2,"rtl-cl-fee-info",16),A.YNc(15,Js,1,3,"rtl-cl-fee-rates",17),A.YNc(16,Ma,1,3,"rtl-cl-fee-rates",17),A.YNc(17,Os,1,2,"rtl-cl-onchain-fee-estimates",18),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&i){const t=U.$implicit,B=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,Wr,"node"===t.id&&B.apiCallStatusNodeInfo.status===B.apiCallStatusEnum.ERROR||"status"===t.id&&(B.apiCallStatusNodeInfo.status===B.apiCallStatusEnum.ERROR||B.apiCallStatusLRBal.status===B.apiCallStatusEnum.ERROR)||"fee"===t.id&&(B.apiCallStatusFees.status===B.apiCallStatusEnum.ERROR||B.apiCallStatusChannels.status===B.apiCallStatusEnum.ERROR||B.apiCallStatusFHistory.status===B.apiCallStatusEnum.ERROR)||"feeRatesKB"===t.id&&B.apiCallStatusPerKB.status===B.apiCallStatusEnum.ERROR||"feeRatesKW"===t.id&&B.apiCallStatusPerKW.status===B.apiCallStatusEnum.ERROR||"onChainFeeEstimates"===t.id&&B.apiCallStatusPerKW.status===B.apiCallStatusEnum.ERROR)),A.xp6(1),A.Q6J("ngIf","node"===t.id&&B.apiCallStatusNodeInfo.status===B.apiCallStatusEnum.INITIATED||"status"===t.id&&(B.apiCallStatusNodeInfo.status===B.apiCallStatusEnum.INITIATED||B.apiCallStatusLRBal.status===B.apiCallStatusEnum.INITIATED)||"fee"===t.id&&(B.apiCallStatusFees.status===B.apiCallStatusEnum.INITIATED||B.apiCallStatusChannels.status===B.apiCallStatusEnum.INITIATED||B.apiCallStatusFHistory.status===B.apiCallStatusEnum.INITIATED)||"feeRatesKB"===t.id&&B.apiCallStatusPerKB.status===B.apiCallStatusEnum.INITIATED||"feeRatesKW"===t.id&&B.apiCallStatusPerKW.status===B.apiCallStatusEnum.INITIATED||"onChainFeeEstimates"===t.id&&B.apiCallStatusPerKW.status===B.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 js(i,U){if(1&i&&(A.TgZ(0,"mat-grid-list",2),A.YNc(1,ks,18,15,"mat-grid-tile",3),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("ngForOf",t.nodeCardsMerchant)}}let Zs=(()=>{class i{constructor(t,B,k){this.logger=t,this.commonService=B,this.store=k,this.faBolt=E.BDt,this.faServer=E.xf3,this.faNetworkWired=E.kXW,this.faLink=E.nNP,this.selNode={},this.information={},this.channelsStatus={active:{},pending:{},inactive:{}},this.feeRatesPerKB={},this.feeRatesPerKW={},this.nodeCardsOperator=[],this.nodeCardsMerchant=[],this.screenSize="",this.screenSizeEnum=o.cu,this.userPersonaEnum=o.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=o.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===o.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(l.Hz).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=t.apisCallStatus[0],this.apiCallStatusNodeInfo.status===o.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(l.ZW).pipe((0,r.R)(this.unSubs[1]),(0,a.M)(this.store.select(l.Wj))).subscribe(([t,B])=>{this.errorMessages[2]="",this.errorMessages[3]="",this.apiCallStatusLRBal=t.apiCallStatus,this.apiCallStatusChannels=B.apiCallStatus,this.apiCallStatusLRBal.status===o.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusLRBal.message?JSON.stringify(this.apiCallStatusLRBal.message):this.apiCallStatusLRBal.message),this.apiCallStatusChannels.status===o.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=B.localRemoteBalance.localBalance||0,this.channelsStatus.pending.capacity=B.localRemoteBalance.pendingBalance||0,this.channelsStatus.inactive.capacity=B.localRemoteBalance.inactiveBalance||0}),this.store.select(l.JG).pipe((0,r.R)(this.unSubs[2])).subscribe(t=>{this.errorMessages[1]="",this.apiCallStatusFees=t.apiCallStatus,this.apiCallStatusFees.status===o.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(l.Bo).pipe((0,r.R)(this.unSubs[3])).subscribe(t=>{this.errorMessages[4]="",this.apiCallStatusFHistory=t.apiCallStatus,this.apiCallStatusFHistory.status===o.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusFHistory.message?JSON.stringify(this.apiCallStatusFHistory.message):this.apiCallStatusFHistory.message),t.forwardingHistory&&t.forwardingHistory.length&&(this.fees.totalTxCount=t.forwardingHistory.length)}),this.store.select(l.zm).pipe((0,r.R)(this.unSubs[4])).subscribe(t=>{this.errorMessages[5]="",this.apiCallStatusPerKB=t.apiCallStatus,this.apiCallStatusPerKB.status===o.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(l.hx).pipe((0,r.R)(this.unSubs[5])).subscribe(t=>{this.errorMessages[6]="",this.apiCallStatusPerKW=t.apiCallStatus,this.apiCallStatusPerKW.status===o.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 i.\u0275fac=function(t){return new(t||i)(A.Y36(h.mQ),A.Y36(e.v),A.Y36(u.yh))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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,B){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Ls,2,1,"mat-grid-list",1),A.YNc(2,js,2,1,"mat-grid-list",1),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",B.selNode.userPersona===B.userPersonaEnum.OPERATOR),A.xp6(1),A.Q6J("ngIf",B.selNode.userPersona===B.userPersonaEnum.MERCHANT))},directives:[Qt.xw,Qt.Wh,ht.O5,g.Il,ht.sg,g.DX,Qt.yH,f.BN,w.a8,w.dn,ht.mk,d.oO,ht.RF,ht.n9,Y.pW,T,GA,uA,Cr,Ns],styles:[""]}),i})();function Ks(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"div",8),A.NdJ("click",function(){const FA=A.CHM(t).$implicit;return A.oxw().activeLink=FA.link}),A._uU(1),A.qZA()}if(2&i){const t=U.$implicit,B=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",B.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let Ws=(()=>{class i{constructor(t){this.router=t,this.faUserCheck=E.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(B=>this.router.url.includes(B.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,r.R)(this.unSubs[0]),(0,_A.h)(B=>B instanceof Ae.Av)).subscribe(B=>{const k=this.links.find(FA=>B.urlAfterRedirects.includes(FA.link));this.activeLink=k?k.link:this.links[0].link})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(Ae.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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,B){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Sign/Verify Message"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"mat-card"),A.TgZ(6,"mat-card-content",4),A.TgZ(7,"nav",5),A.YNc(8,Ks,2,3,"div",6),A.qZA(),A.TgZ(9,"div",7),A._UZ(10,"router-outlet"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(1),A.Q6J("icon",B.faUserCheck),A.xp6(7),A.Q6J("ngForOf",B.links))},directives:[Qt.xw,Qt.Wh,f.BN,w.a8,w.dn,yA.BU,ht.sg,Qt.yH,Ae.lC,yA.Nj,Ae.rH],styles:[""]}),i})();var Vs=St(9122);function Xs(i,U){if(1&i&&(A.TgZ(0,"mat-option",7),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.Q6J("value",t),A.xp6(1),A.hij(" ",t.addressTp," ")}}let qs=(()=>{class i{constructor(t,B){this.store=t,this.clEffects=B,this.addressTypes=o._t,this.selectedAddressType=o._t[0],this.newAddress=""}onGenerateAddress(){this.store.dispatch((0,WA._E)({payload:this.selectedAddressType})),this.clEffects.setNewAddressCL.pipe((0,nn.q)(1)).subscribe(t=>{this.newAddress=t,setTimeout(()=>{this.store.dispatch((0,eA.qR)({payload:{data:{address:this.newAddress,addressType:this.selectedAddressType.addressTp,component:Vs.n}}}))},0)})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(u.yh),A.Y36(ke.s))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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,B){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-form-field",2),A.TgZ(3,"mat-select",3),A.NdJ("ngModelChange",function(FA){return B.selectedAddressType=FA}),A.YNc(4,Xs,2,2,"mat-option",4),A.qZA(),A.qZA(),A.TgZ(5,"div",5),A.TgZ(6,"button",6),A.NdJ("click",function(){return B.onGenerateAddress()}),A._uU(7,"Generate Address"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(3),A.Q6J("ngModel",B.selectedAddressType),A.xp6(1),A.Q6J("ngForOf",B.addressTypes))},directives:[Qt.xw,Qt.Wh,V.KE,Qt.yH,vt.gD,zA.JJ,zA.On,ht.sg,F.lW,G.ey],styles:[""]}),i})(),da=(()=>{class i{constructor(t,B){this.store=t,this.activatedRoute=B,this.sweepAll=!1,this.unSubs=[new c.x,new c.x]}ngOnInit(){this.activatedRoute.data.pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.sweepAll=t.sweepAll})}openSendFundsModal(){this.store.dispatch((0,eA.qR)({payload:{data:{sweepAll:this.sweepAll,component:oa}}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(u.yh),A.Y36(Ae.gz))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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,B){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"button",2),A.NdJ("click",function(){return B.openSendFundsModal()}),A._uU(3),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(3),A.Oqu(B.sweepAll?"Sweep All":"Send Funds"))},directives:[Qt.xw,Qt.yH,Qt.Wh,F.lW],styles:[""]}),i})();var _s=St(8675),Xr=St(4004),Ji=St(9843),qr=St(1079);const pa=["form"];function $s(i,U){if(1&i&&(A.TgZ(0,"mat-option",42),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.Q6J("value",t),A.xp6(1),A.Oqu(t.alias?t.alias:t.id?t.id:"")}}function di(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Peer alias is required."),A.qZA())}function Rn(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Peer not found in the list."),A.qZA())}function cr(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"mat-form-field",1),A.TgZ(1,"input",39),A.NdJ("change",function(){return A.CHM(t),A.oxw().onSelectedPeerChanged()}),A.qZA(),A.TgZ(2,"mat-autocomplete",40,41),A.NdJ("optionSelected",function(){return A.CHM(t),A.oxw().onSelectedPeerChanged()}),A.YNc(4,$s,2,2,"mat-option",26),A.ALo(5,"async"),A.qZA(),A.YNc(6,di,2,0,"mat-error",17),A.YNc(7,Rn,2,0,"mat-error",17),A.qZA()}if(2&i){const t=A.MAs(3),B=A.oxw();A.xp6(1),A.Q6J("formControl",B.selectedPeer)("matAutocomplete",t),A.xp6(1),A.Q6J("displayWith",B.displayFn),A.xp6(2),A.Q6J("ngForOf",A.lcZ(5,6,B.filteredPeers)),A.xp6(2),A.Q6J("ngIf",null==B.selectedPeer.errors?null:B.selectedPeer.errors.required),A.xp6(1),A.Q6J("ngIf",null==B.selectedPeer.errors?null:B.selectedPeer.errors.notfound)}}function Oi(i,U){1&i&&A.GkF(0)}function ki(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function ji(i,U){if(1&i&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.hij("Amount must be less than or equal to ",t.totalBalance,".")}}function A0(i,U){if(1&i&&(A.TgZ(0,"mat-option",42),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function _r(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function Ia(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"mat-form-field",43),A.TgZ(1,"input",44,45),A.NdJ("ngModelChange",function(k){return A.CHM(t),A.oxw().customFeeRate=k}),A.qZA(),A.YNc(3,_r,2,0,"mat-error",17),A.qZA()}if(2&i){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 t0(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function e0(i,U){if(1&i&&(A.TgZ(0,"mat-option",42),A._uU(1),A.ALo(2,"number"),A.qZA()),2&i){const t=U.$implicit;A.Q6J("value",t),A.xp6(1),A.hij("",A.lcZ(2,2,t.value)," Sats")}}function n0(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"div",22),A.TgZ(1,"mat-form-field",46),A.TgZ(2,"mat-select",47),A.NdJ("selectionChange",function(k){return A.CHM(t),A.oxw().onUTXOSelectionChange(k)})("valueChange",function(k){return A.CHM(t),A.oxw().selUTXOs=k}),A.TgZ(3,"mat-select-trigger"),A._uU(4),A.ALo(5,"number"),A.qZA(),A.YNc(6,e0,3,4,"mat-option",26),A.qZA(),A.qZA(),A.TgZ(7,"mat-slide-toggle",48),A.NdJ("ngModelChange",function(k){return A.CHM(t),A.oxw().flgUseAllBalance=k})("change",function(){return A.CHM(t),A.oxw().onUTXOAllBalanceChange()}),A._uU(8," Use selected UTXOs balance "),A.qZA(),A.qZA()}if(2&i){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(1),A.Q6J("ngModel",t.flgUseAllBalance)("disabled",t.selUTXOs.length<1)}}function r0(i,U){if(1&i&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.channelConnectionError)}}function i0(i,U){if(1&i&&(A.TgZ(0,"div",49),A._UZ(1,"fa-icon",50),A.YNc(2,r0,2,1,"span",17),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.channelConnectionError)}}function a0(i,U){if(1&i&&(A.TgZ(0,"mat-expansion-panel",52),A.TgZ(1,"mat-expansion-panel-header"),A.TgZ(2,"mat-panel-title"),A.TgZ(3,"span"),A._uU(4,"Peer: \xa0"),A.qZA(),A.TgZ(5,"strong",53),A._uU(6),A.qZA(),A.qZA(),A.qZA(),A.TgZ(7,"div",9),A.TgZ(8,"div",0),A.TgZ(9,"div",1),A.TgZ(10,"h4",54),A._uU(11,"Pubkey"),A.qZA(),A.TgZ(12,"span",55),A._uU(13),A.qZA(),A.qZA(),A.qZA(),A._UZ(14,"mat-divider",56),A.TgZ(15,"div",0),A.TgZ(16,"div",57),A.TgZ(17,"h4",54),A._uU(18,"Address"),A.qZA(),A.TgZ(19,"span",58),A._uU(20),A.qZA(),A.qZA(),A.TgZ(21,"div",57),A.TgZ(22,"h4",54),A._uU(23,"Connected"),A.qZA(),A.TgZ(24,"span",58),A._uU(25),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&i){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 o0(i,U){if(1&i&&A.YNc(0,a0,26,4,"mat-expansion-panel",51),2&i){const t=A.oxw();A.Q6J("ngIf",t.peer)}}const s0=function(i,U){return{"mr-6":i,"mr-2":U}};let Da=(()=>{class i{constructor(t,B,k,FA,pt,Ye){this.dialogRef=t,this.data=B,this.store=k,this.actions=FA,this.decimalPipe=pt,this.commonService=Ye,this.selectedPeer=new zA.NI,this.faExclamationTriangle=E.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=o.vn,this.selFeeRate="",this.customFeeRate=null,this.flgMinConf=!1,this.minConfValue=null,this.screenSize="",this.screenSizeEnum=o.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,r.R)(this.unSubs[0]),(0,_A.h)(k=>k.type===o.sW.UPDATE_API_CALL_STATUS_CL||k.type===o.sW.FETCH_CHANNELS_CL)).subscribe(k=>{k.type===o.sW.UPDATE_API_CALL_STATUS_CL&&k.payload.status===o.Bn.ERROR&&"SaveNewChannel"===k.payload.action&&(this.channelConnectionError=k.payload.message),k.type===o.sW.FETCH_CHANNELS_CL&&this.dialogRef.close()});let t="",B="";this.sortedPeers=this.peers.sort((k,FA)=>(t=k.alias?k.alias.toLowerCase():k.id?k.id.toLowerCase():"",B=FA.alias?FA.alias.toLowerCase():k.id.toLowerCase(),tB?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,r.R)(this.unSubs[1]),(0,_s.O)(""),(0,Xr.U)(k=>"string"==typeof k?k:k.alias?k.alias:k.id),(0,Xr.U)(k=>k?this.filterPeers(k):this.sortedPeers.slice()))}filterPeers(t){return this.sortedPeers.filter(B=>0===B.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(B=>B.alias.length===this.selectedPeer.value.length&&0===B.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/vB)":this.feeRateTypes.find(B=>B.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 B={value:0};this.selUTXOs.length&&this.selUTXOs.length>0?(this.totalSelectedUTXOAmount=this.selUTXOs.reduce((k,FA)=>(B.value=k.value+FA.value,B)).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(B=>t.utxos.push(B.txid+":"+B.output))),this.store.dispatch((0,WA.YX)({payload:t}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(OA.so),A.Y36(OA.WI),A.Y36(u.yh),A.Y36(C.eX),A.Y36(ht.JJ),A.Y36(e.v))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-open-channel"]],viewQuery:function(t,B){if(1&t&&A.Gf(pa,7),2&t){let k;A.iGM(k=A.CRH())&&(B.form=k.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","48","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","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","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/vB)","type","number","name","custFeeRate","tabindex","4",3,"ngModel","step","min","required","ngModelChange"],["custFeeRate","ngModel"],["fxFlex","48","fxLayoutAlign","start end"],["tabindex","6","placeholder","Coin Selection","multiple","",3,"value","selectionChange","valueChange"],["fxFlex","48","tabindex","7","color","primary","name","flgUseAllBalance","matTooltip","Use selected UTXOs balance as the amount to be sent. Final amount sent will be less the mining fee.","matTooltipPosition","above",3,"ngModel","disabled","ngModelChange","change"],["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,B){if(1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A.TgZ(4,"span",4),A._uU(5),A.qZA(),A.qZA(),A.TgZ(6,"button",5),A.NdJ("click",function(){return B.onClose()}),A._uU(7,"X"),A.qZA(),A.qZA(),A.TgZ(8,"mat-card-content",6),A.TgZ(9,"form",7,8),A.NdJ("submit",function(){return B.onOpenChannel()})("reset",function(){return B.resetData()}),A.TgZ(11,"div",9),A.YNc(12,cr,8,8,"mat-form-field",10),A.qZA(),A.YNc(13,Oi,1,0,"ng-container",11),A.TgZ(14,"div",9),A.TgZ(15,"div",12),A.TgZ(16,"mat-form-field",13),A.TgZ(17,"input",14,15),A.NdJ("ngModelChange",function(FA){return B.fundingAmount=FA}),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,ki,2,0,"mat-error",17),A.YNc(25,ji,2,1,"mat-error",17),A.qZA(),A.TgZ(26,"div",18),A.TgZ(27,"mat-slide-toggle",19),A.NdJ("ngModelChange",function(FA){return B.isPrivate=FA}),A._uU(28,"Private Channel"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(29,"mat-expansion-panel",20),A.NdJ("closed",function(){return B.onAdvancedPanelToggle(!0)})("opened",function(){return B.onAdvancedPanelToggle(!1)}),A.TgZ(30,"mat-expansion-panel-header"),A.TgZ(31,"mat-panel-title"),A.TgZ(32,"span"),A._uU(33),A.qZA(),A.qZA(),A.qZA(),A.TgZ(34,"div",21),A.TgZ(35,"div",22),A.TgZ(36,"div",23),A.TgZ(37,"mat-form-field",24),A.TgZ(38,"mat-select",25),A.NdJ("valueChange",function(FA){return B.selFeeRate=FA})("selectionChange",function(){return B.customFeeRate=null}),A.YNc(39,A0,2,2,"mat-option",26),A.qZA(),A.qZA(),A.YNc(40,Ia,4,5,"mat-form-field",27),A.qZA(),A.TgZ(41,"div",28),A.TgZ(42,"mat-checkbox",29),A.NdJ("ngModelChange",function(FA){return B.flgMinConf=FA})("change",function(){return B.flgMinConf?B.selFeeRate=null:B.minConfValue=null}),A.qZA(),A.TgZ(43,"mat-form-field",30),A.TgZ(44,"input",31,32),A.NdJ("ngModelChange",function(FA){return B.minConfValue=FA}),A.qZA(),A.YNc(46,t0,2,0,"mat-error",17),A.qZA(),A.qZA(),A.qZA(),A.YNc(47,n0,9,8,"div",33),A.qZA(),A.qZA(),A.qZA(),A.YNc(48,i0,3,2,"div",34),A.TgZ(49,"div",35),A.TgZ(50,"button",36),A._uU(51,"Clear Fields"),A.qZA(),A.TgZ(52,"button",37),A._uU(53,"Open Channel"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.YNc(54,o0,1,1,"ng-template",null,38,A.W1O)),2&t){const k=A.MAs(18),FA=A.MAs(55);A.xp6(5),A.Oqu(B.alertTitle),A.xp6(7),A.Q6J("ngIf",!B.peer&&B.peers&&B.peers.length>0),A.xp6(1),A.Q6J("ngTemplateOutlet",FA),A.xp6(4),A.Q6J("ngModel",B.fundingAmount)("step",1e3)("min",1)("max",B.totalBalance)("disabled",B.flgUseAllBalance),A.xp6(3),A.AsE("Remaining Bal: ",A.lcZ(21,29,B.totalBalance-(B.fundingAmount?B.fundingAmount:0)),"",B.flgUseAllBalance?". Amount replaced by UTXO balance":"",""),A.xp6(4),A.Q6J("ngIf",(null==k.errors?null:k.errors.required)||!B.fundingAmount),A.xp6(1),A.Q6J("ngIf",null==k.errors?null:k.errors.max),A.xp6(2),A.Q6J("ngModel",B.isPrivate),A.xp6(6),A.Oqu(B.advancedTitle),A.xp6(4),A.Q6J("fxFlex","customperkb"!==B.selFeeRate||B.flgMinConf?"100":"48"),A.xp6(1),A.Q6J("value",B.selFeeRate)("disabled",B.flgMinConf),A.xp6(1),A.Q6J("ngForOf",B.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===B.selFeeRate&&!B.flgMinConf),A.xp6(2),A.Q6J("ngModel",B.flgMinConf)("ngClass",A.WLB(31,s0,B.screenSize===B.screenSizeEnum.XS||B.screenSize===B.screenSizeEnum.SM,B.screenSize===B.screenSizeEnum.MD||B.screenSize===B.screenSizeEnum.LG||B.screenSize===B.screenSizeEnum.XL)),A.xp6(2),A.Q6J("ngModel",B.minConfValue)("step",1)("min",0)("required",B.flgMinConf)("disabled",!B.flgMinConf),A.xp6(2),A.Q6J("ngIf",B.flgMinConf&&!B.minConfValue),A.xp6(1),A.Q6J("ngIf",B.isCompatibleVersion),A.xp6(1),A.Q6J("ngIf",""!==B.channelConnectionError)}},directives:[Qt.xw,Qt.yH,w.dk,Qt.Wh,F.lW,w.dn,zA._Y,zA.JL,zA.F,ht.O5,ht.tP,V.KE,ot.Nt,zA.wV,zA.qQ,zA.Fd,zA.Fj,dt.q,Ji.F,zA.Q7,zA.JJ,zA.On,V.bx,V.R9,Pt.Rr,or.ib,or.yz,or.yK,vt.gD,ht.sg,tt.oG,ht.mk,d.oO,It.h,qr.ZL,zA.oH,qr.XC,G.ey,V.TO,vt.$L,aA.gM,f.BN,AA.d],pipes:[ht.JJ,ht.Ov],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),i})();function c0(i,U){if(1&i&&(A.TgZ(0,"span",7),A._uU(1,"Open"),A.qZA()),2&i){const t=A.oxw();A.s9C("matBadge",t.openChannels)}}function g0(i,U){if(1&i&&(A.TgZ(0,"span",7),A._uU(1,"Pending/Inactive"),A.qZA()),2&i){const t=A.oxw();A.s9C("matBadge",t.pendingChannels)}}let l0=(()=>{class i{constructor(t,B,k,FA){this.logger=t,this.store=B,this.commonService=k,this.router=FA,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,r.R)(this.unSubs[0]),(0,_A.h)(t=>t instanceof Ae.Av)).subscribe(t=>{this.activeLink=this.links.findIndex(B=>B.link===t.urlAfterRedirects.substring(t.urlAfterRedirects.lastIndexOf("/")+1))}),this.store.select(l.OL).pipe((0,r.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(l.Wi).pipe((0,r.R)(this.unSubs[2])).subscribe(t=>{this.peers=t.peers}),this.store.select(l.T4).pipe((0,r.R)(this.unSubs[3])).subscribe(t=>{this.utxos=this.commonService.sortAscByKey(t.utxos.filter(B=>"confirmed"===B.status),"value")}),this.store.select(l.ZW).pipe((0,r.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,eA.qR)({payload:{data:{alertTitle:"Open Channel",message:t,component:Da}}}))}onSelectedTabChange(t){this.router.navigateByUrl("/cl/connections/channels/"+this.links[t.index].link)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(h.mQ),A.Y36(u.yh),A.Y36(e.v),A.Y36(Ae.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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,B){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"button",2),A.NdJ("click",function(){return B.onOpenChannel()}),A._uU(3,"Open Channel"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"mat-tab-group",4),A.NdJ("selectedIndexChange",function(FA){return B.activeLink=FA})("selectedTabChange",function(FA){return B.onSelectedTabChange(FA)}),A.TgZ(6,"mat-tab"),A.YNc(7,c0,2,1,"ng-template",5),A.qZA(),A.TgZ(8,"mat-tab"),A.YNc(9,g0,2,1,"ng-template",5),A.qZA(),A.qZA(),A.TgZ(10,"div",6),A._UZ(11,"router-outlet"),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(5),A.Q6J("selectedIndex",B.activeLink))},directives:[Qt.xw,Qt.yH,Qt.Wh,F.lW,yA.SP,yA.uX,yA.uD,Ae.lC,Rr.k],styles:[""]}),i})();function B0(i,U){if(1&i&&(A.TgZ(0,"div"),A.TgZ(1,"div",9),A.TgZ(2,"div",1),A.TgZ(3,"h4",11),A._uU(4,"Funding Transaction Id"),A.qZA(),A.TgZ(5,"span",12),A._uU(6),A.qZA(),A.qZA(),A.qZA(),A._UZ(7,"mat-divider",13),A.qZA()),2&i){const t=A.oxw();A.xp6(6),A.Oqu(t.channel.funding_txid),A.xp6(1),A.Q6J("inset",!0)}}function pi(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"Show Advanced"),A.qZA())}function de(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"Hide Advanced"),A.qZA())}function ee(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"button",23),A.NdJ("copied",function(k){return A.CHM(t),A.oxw().onCopyChanID(k)}),A._uU(1,"Copy Short Channel ID"),A.qZA()}if(2&i){const t=A.oxw();A.Q6J("payload",t.channel.short_channel_id)}}function u0(i,U){if(1&i){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 va=function(i){return{"xs-scroll-y":i}},$r=function(i,U){return{"mt-2":i,"mt-1":U}};let Zi=(()=>{class i{constructor(t,B,k,FA,pt){this.dialogRef=t,this.data=B,this.logger=k,this.commonService=FA,this.snackBar=pt,this.faReceipt=E.dLy,this.showAdvanced=!1,this.showCopy=!0,this.showCopyField=null,this.screenSize="",this.screenSizeEnum=o.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 i.\u0275fac=function(t){return new(t||i)(A.Y36(OA.so),A.Y36(OA.WI),A.Y36(h.mQ),A.Y36(e.v),A.Y36(Hn.ux))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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,B){if(1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A._UZ(4,"fa-icon",4),A.TgZ(5,"span",5),A._uU(6,"Channel Information"),A.qZA(),A.qZA(),A.TgZ(7,"button",6),A.NdJ("click",function(){return B.onClose()}),A._uU(8,"X"),A.qZA(),A.qZA(),A.TgZ(9,"mat-card-content",7),A.TgZ(10,"div",8),A.TgZ(11,"div",9),A.TgZ(12,"div",10),A.TgZ(13,"h4",11),A._uU(14,"Short Channel ID"),A.qZA(),A.TgZ(15,"span",12),A._uU(16),A.qZA(),A.qZA(),A.TgZ(17,"div",10),A.TgZ(18,"h4",11),A._uU(19,"Peer Alias"),A.qZA(),A.TgZ(20,"span",12),A._uU(21),A.qZA(),A.qZA(),A.qZA(),A._UZ(22,"mat-divider",13),A.TgZ(23,"div",9),A.TgZ(24,"div",1),A.TgZ(25,"h4",11),A._uU(26,"Channel ID"),A.qZA(),A.TgZ(27,"span",12),A._uU(28),A.qZA(),A.qZA(),A.qZA(),A._UZ(29,"mat-divider",13),A.TgZ(30,"div",9),A.TgZ(31,"div",1),A.TgZ(32,"h4",11),A._uU(33,"Peer Public Key"),A.qZA(),A.TgZ(34,"span",12),A._uU(35),A.qZA(),A.qZA(),A.qZA(),A._UZ(36,"mat-divider",13),A.TgZ(37,"div",9),A.TgZ(38,"div",14),A.TgZ(39,"h4",11),A._uU(40,"mSatoshi to Us"),A.qZA(),A.TgZ(41,"span",15),A._uU(42),A.ALo(43,"number"),A.qZA(),A.qZA(),A.TgZ(44,"div",14),A.TgZ(45,"h4",11),A._uU(46,"Spendable (mSats)"),A.qZA(),A.TgZ(47,"span",15),A._uU(48),A.ALo(49,"number"),A.qZA(),A.qZA(),A.TgZ(50,"div",14),A.TgZ(51,"h4",11),A._uU(52,"Total (mSats)"),A.qZA(),A.TgZ(53,"span",15),A._uU(54),A.ALo(55,"number"),A.qZA(),A.qZA(),A.TgZ(56,"div",14),A.TgZ(57,"h4",11),A._uU(58,"State"),A.qZA(),A.TgZ(59,"span",15),A._uU(60),A.qZA(),A.qZA(),A.qZA(),A._UZ(61,"mat-divider",13),A.TgZ(62,"div",9),A.TgZ(63,"div",14),A.TgZ(64,"h4",11),A._uU(65,"Our Reserve (Sats)"),A.qZA(),A.TgZ(66,"span",15),A._uU(67),A.ALo(68,"number"),A.qZA(),A.qZA(),A.TgZ(69,"div",14),A.TgZ(70,"h4",11),A._uU(71,"Their Reserve (Sats)"),A.qZA(),A.TgZ(72,"span",15),A._uU(73),A.ALo(74,"number"),A.qZA(),A.qZA(),A.TgZ(75,"div",14),A.TgZ(76,"h4",11),A._uU(77,"Connected"),A.qZA(),A.TgZ(78,"span",15),A._uU(79),A.qZA(),A.qZA(),A.TgZ(80,"div",14),A.TgZ(81,"h4",11),A._uU(82,"Private"),A.qZA(),A.TgZ(83,"span",15),A._uU(84),A.qZA(),A.qZA(),A.qZA(),A._UZ(85,"mat-divider",13),A.YNc(86,B0,8,2,"div",16),A.TgZ(87,"div",17),A.TgZ(88,"button",18),A.NdJ("click",function(){return B.onShowAdvanced()}),A.YNc(89,pi,2,0,"p",19),A.YNc(90,de,2,0,"ng-template",null,20,A.W1O),A.qZA(),A.YNc(92,ee,2,1,"button",21),A.YNc(93,u0,2,0,"button",22),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t){const k=A.MAs(91);A.xp6(4),A.Q6J("icon",B.faReceipt),A.xp6(5),A.Q6J("ngClass",A.VKq(35,va,B.screenSize===B.screenSizeEnum.XS)),A.xp6(7),A.Oqu(B.channel.short_channel_id),A.xp6(5),A.Oqu(B.channel.alias),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(B.channel.channel_id),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(B.channel.id),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(A.lcZ(43,25,B.channel.msatoshi_to_us)),A.xp6(6),A.Oqu(A.lcZ(49,27,B.channel.spendable_msatoshi)),A.xp6(6),A.Oqu(A.lcZ(55,29,B.channel.msatoshi_total)),A.xp6(6),A.Oqu(B.channel.state),A.xp6(1),A.Q6J("inset",!0),A.xp6(6),A.Oqu(A.lcZ(68,31,B.channel.our_channel_reserve_satoshis)),A.xp6(6),A.Oqu(A.lcZ(74,33,B.channel.their_channel_reserve_satoshis)),A.xp6(6),A.Oqu(B.channel.connected?"Yes":"No"),A.xp6(5),A.Oqu(B.channel.private?"Yes":"No"),A.xp6(1),A.Q6J("inset",!0),A.xp6(1),A.Q6J("ngIf",B.showAdvanced),A.xp6(1),A.Q6J("ngClass",A.WLB(37,$r,!B.showAdvanced,B.showAdvanced)),A.xp6(2),A.Q6J("ngIf",!B.showAdvanced)("ngIfElse",k),A.xp6(3),A.Q6J("ngIf",B.showCopy),A.xp6(1),A.Q6J("ngIf",!B.showCopy)}},directives:[Qt.xw,Qt.Wh,Qt.yH,w.dk,f.BN,F.lW,w.dn,ht.mk,d.oO,AA.d,ht.O5,It.h,Kr.y],pipes:[ht.JJ],styles:[""]}),i})();function f0(i,U){1&i&&A._UZ(0,"mat-progress-bar",33)}function E0(i,U){1&i&&(A.TgZ(0,"th",34),A._uU(1," Short Channel ID "),A.qZA())}function ma(i,U){if(1&i&&(A.TgZ(0,"span",40),A._UZ(1,"fa-icon",41),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("icon",t.faEyeSlash)}}function h0(i,U){if(1&i&&(A.TgZ(0,"span",42),A._UZ(1,"fa-icon",41),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("icon",t.faEye)}}const ln=function(i){return{"max-width":i}};function Ki(i,U){if(1&i&&(A.TgZ(0,"td",35),A.TgZ(1,"div",36),A.YNc(2,ma,2,1,"span",37),A.YNc(3,h0,2,1,"span",38),A.TgZ(4,"span",39),A._uU(5),A.qZA(),A.qZA(),A.qZA()),2&i){const t=U.$implicit,B=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(4,ln,B.screenSize===B.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 ya(i,U){1&i&&(A.TgZ(0,"th",34),A._uU(1," Alias "),A.qZA())}function Ii(i,U){if(1&i&&(A.TgZ(0,"td",35),A.TgZ(1,"div",36),A.TgZ(2,"span",39),A._uU(3),A.qZA(),A.qZA(),A.qZA()),2&i){const t=U.$implicit,B=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(2,ln,B.screenSize===B.screenSizeEnum.XS?"12rem":"22rem")),A.xp6(2),A.Oqu(null==t?null:t.alias)}}function w0(i,U){1&i&&(A.TgZ(0,"th",34),A._uU(1," Connected "),A.qZA())}function mr(i,U){if(1&i&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.connected?"Connected":"Disconnected"," ")}}function tr(i,U){1&i&&(A.TgZ(0,"th",34),A._uU(1," Private "),A.qZA())}function gr(i,U){if(1&i&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.private?"Private":"Public"," ")}}function lr(i,U){1&i&&(A.TgZ(0,"th",34),A._uU(1," State "),A.qZA())}function C0(i,U){if(1&i&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.state,"")}}function Q0(i,U){1&i&&(A.TgZ(0,"th",43),A._uU(1," Local Balance (Sats) "),A.qZA())}function M0(i,U){if(1&i&&(A.TgZ(0,"td",35),A.TgZ(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$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 Di(i,U){1&i&&(A.TgZ(0,"th",43),A._uU(1," Remote Balance (Sats) "),A.qZA())}function d0(i,U){if(1&i&&(A.TgZ(0,"td",35),A.TgZ(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$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 xa(i,U){1&i&&(A.TgZ(0,"th",43),A._uU(1," Total mSatoshis "),A.qZA())}function p0(i,U){if(1&i&&(A.TgZ(0,"td",35),A.TgZ(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.msatoshi_total)," ")}}function I0(i,U){1&i&&(A.TgZ(0,"th",43),A._uU(1," Spendable Satoshi "),A.qZA())}function Ce(i,U){if(1&i&&(A.TgZ(0,"td",35),A.TgZ(1,"span",44),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.spendable_msatoshi)," ")}}function Fa(i,U){1&i&&(A.TgZ(0,"th",45),A._uU(1,"Balance Score "),A.qZA())}function D0(i,U){if(1&i&&(A.TgZ(0,"td",46),A.TgZ(1,"div",47),A.TgZ(2,"mat-hint",48),A._uU(3),A.ALo(4,"number"),A.qZA(),A.qZA(),A._UZ(5,"mat-progress-bar",49),A.qZA()),2&i){const t=U.$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 v0(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"th",50),A.TgZ(1,"div",51),A.TgZ(2,"mat-select",52),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",53),A.NdJ("click",function(){return A.CHM(t),A.oxw().onChannelUpdate("all")}),A._uU(5,"Update Fee Policy"),A.qZA(),A.TgZ(6,"mat-option",53),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(7,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function Ya(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"td",54),A.TgZ(1,"div",55),A.TgZ(2,"mat-select",56),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",53),A.NdJ("click",function(k){const pt=A.CHM(t).$implicit;return A.oxw().onChannelClick(pt,k)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",53),A.NdJ("click",function(){const FA=A.CHM(t).$implicit;return A.oxw().onViewRemotePolicy(FA)}),A._uU(7,"View Remote Fee"),A.qZA(),A.TgZ(8,"mat-option",53),A.NdJ("click",function(){const FA=A.CHM(t).$implicit;return A.oxw().onChannelUpdate(FA)}),A._uU(9,"Update Fee Policy"),A.qZA(),A.TgZ(10,"mat-option",53),A.NdJ("click",function(){const FA=A.CHM(t).$implicit;return A.oxw().onChannelClose(FA)}),A._uU(11,"Close Channel"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function m0(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"No peers connected. Add a peer in order to open a channel."),A.qZA())}function y0(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"No channel available."),A.qZA())}function x0(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting channels..."),A.qZA())}function Ta(i,U){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function vi(i,U){if(1&i&&(A.TgZ(0,"td",57),A.YNc(1,m0,2,0,"p",58),A.YNc(2,y0,2,0,"p",58),A.YNc(3,x0,2,0,"p",58),A.YNc(4,Ta,2,1,"p",58),A.qZA()),2&i){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 Sa=function(i){return{"display-none":i}};function F0(i,U){if(1&i&&A._UZ(0,"tr",59),2&i){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,Sa,t.numPeers>0&&(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function Y0(i,U){1&i&&A._UZ(0,"tr",60)}function T0(i,U){1&i&&A._UZ(0,"tr",61)}const S0=function(i){return{"overflow-auto error-border":i,"overflow-auto":!0}},U0=function(){return["no_peer"]};let P0=(()=>{class i{constructor(t,B,k,FA,pt){this.logger=t,this.store=B,this.rtlEffects=k,this.clEffects=FA,this.commonService=pt,this.faEye=E.Mdf,this.faEyeSlash=E.Aq,this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=o.vn,this.selFilter="",this.flgSticky=!1,this.pageSize=o.IV,this.pageSizeOptions=o.TJ,this.screenSize="",this.screenSizeEnum=o.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=o.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===o.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","msatoshi_to_us","msatoshi_to_them","actions"]):this.screenSize===o.cu.SM||this.screenSize===o.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"])}ngOnInit(){this.store.select(l.jK).pipe((0,r.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(l.ZW).pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===o.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,WA.$A)({payload:{uiMessage:o.m6.GET_REMOTE_POLICY,shortChannelID:t.short_channel_id,showError:!0}})),this.clEffects.setLookupCL.pipe((0,nn.q)(1)).subscribe(B=>{if(0===B.length)return!1;let k={};k=B[0].source!==this.information.id?B[0]:B[1];const FA=[[{key:"base_fee_millisatoshi",value:k.base_fee_millisatoshi,title:"Base Fees (mSats)",width:34,type:o.Gi.NUMBER},{key:"fee_per_millionth",value:k.fee_per_millionth,title:"Fee/Millionth",width:33,type:o.Gi.NUMBER},{key:"delay",value:k.delay,title:"Delay",width:33,type:o.Gi.NUMBER}]],pt="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,eA.qR)({payload:{data:{type:o.n_.INFORMATION,alertTitle:"Remote Channel Policy",titleMessage:pt,message:FA}}}))},0)})}onChannelUpdate(t){"all"!==t&&"ONCHAIN"===t.state||("all"===t?(this.store.dispatch((0,eA.c1)({payload:{data:{type:o.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,r.R)(this.unSubs[1])).subscribe(k=>{k&&this.store.dispatch((0,WA.pW)({payload:{baseFeeMsat:k[0].inputValue,feeRate:k[1].inputValue,channelId:"all"}}))})):(this.myChanPolicy={fee_base_msat:0,fee_rate_milli_msat:0},this.store.dispatch((0,WA.$A)({payload:{uiMessage:o.m6.GET_CHAN_POLICY,shortChannelID:t.short_channel_id,showError:!1}})),this.clEffects.setLookupCL.pipe((0,nn.q)(1)).subscribe(B=>{this.myChanPolicy=B.length>0&&B[0].source===this.information.id?{fee_base_msat:B[0].base_fee_millisatoshi,fee_rate_milli_msat:B[0].fee_per_millionth}:B.length>1&&B[1].source===this.information.id?{fee_base_msat:B[1].base_fee_millisatoshi,fee_rate_milli_msat:B[1].fee_per_millionth}:{fee_base_msat:0,fee_rate_milli_msat:0},this.logger.info(this.myChanPolicy);const k="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),FA=[];setTimeout(()=>{this.store.dispatch((0,eA.c1)({payload:{data:{type:o.n_.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update",message:FA,titleMessage:k,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,r.R)(this.unSubs[2])).subscribe(B=>{B&&this.store.dispatch((0,WA.pW)({payload:{baseFeeMsat:B[0].inputValue,feeRate:B[1].inputValue,channelId:t.channel_id}}))})),this.applyFilter())}percentHintFunction(t){return(t/1e4).toString()+"%"}onChannelClose(t){this.store.dispatch((0,eA.c1)({payload:{data:{type:o.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,r.R)(this.unSubs[3])).subscribe(B=>{B&&this.store.dispatch((0,WA.BL)({payload:{id:t.id,channelId:t.channel_id,force:!1}}))})}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}onChannelClick(t,B){this.store.dispatch((0,eA.qR)({payload:{data:{channel:t,showCopy:!0,component:Zi}}}))}loadChannelsTable(t){t.sort((B,k)=>B.active===k.active?0:k.active?1:-1),this.channels=new SA.by([...t]),this.channels.filterPredicate=(B,k)=>((B.connected?"connected":"disconnected")+(B.channel_id?B.channel_id.toLowerCase():"")+(B.short_channel_id?B.short_channel_id.toLowerCase():"")+(B.id?B.id.toLowerCase():"")+(B.alias?B.alias.toLowerCase():"")+(B.private?"private":"public")+(B.state?B.state.toLowerCase():"")+(B.funding_txid?B.funding_txid.toLowerCase():"")+(B.msatoshi_to_us?B.msatoshi_to_us:"")+(B.msatoshi_total?B.msatoshi_total:"")+(B.their_channel_reserve_satoshis?B.their_channel_reserve_satoshis:"")+(B.our_channel_reserve_satoshis?B.our_channel_reserve_satoshis:"")+(B.spendable_msatoshi?B.spendable_msatoshi:"")).includes(k),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(B,k)=>B[k]&&isNaN(B[k])?B[k].toLocaleLowerCase():B[k]?+B[k]: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 i.\u0275fac=function(t){return new(t||i)(A.Y36(h.mQ),A.Y36(u.yh),A.Y36(at.V),A.Y36(ke.s),A.Y36(e.v))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-channel-open-table"]],viewQuery:function(t,B){if(1&t&&(A.Gf(lt.YE,5),A.Gf(ft.NW,5)),2&t){let k;A.iGM(k=A.CRH())&&(B.sort=k.first),A.iGM(k=A.CRH())&&(B.paginator=k.first)}},features:[A._Bn([{provide:ft.ye,useValue:(0,o.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,B){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A._UZ(2,"div",2),A.TgZ(3,"mat-form-field",3),A.TgZ(4,"input",4),A.NdJ("keyup",function(){return B.applyFilter()})("ngModelChange",function(FA){return B.selFilter=FA}),A.qZA(),A.qZA(),A.qZA(),A.YNc(5,f0,1,0,"mat-progress-bar",5),A.TgZ(6,"div",6),A.TgZ(7,"table",7,8),A.ynx(9,9),A.YNc(10,E0,2,0,"th",10),A.YNc(11,Ki,6,6,"td",11),A.BQk(),A.ynx(12,12),A.YNc(13,ya,2,0,"th",10),A.YNc(14,Ii,4,4,"td",11),A.BQk(),A.ynx(15,13),A.YNc(16,w0,2,0,"th",10),A.YNc(17,mr,2,1,"td",11),A.BQk(),A.ynx(18,14),A.YNc(19,tr,2,0,"th",10),A.YNc(20,gr,2,1,"td",11),A.BQk(),A.ynx(21,15),A.YNc(22,lr,2,0,"th",10),A.YNc(23,C0,2,1,"td",11),A.BQk(),A.ynx(24,16),A.YNc(25,Q0,2,0,"th",17),A.YNc(26,M0,4,4,"td",11),A.BQk(),A.ynx(27,18),A.YNc(28,Di,2,0,"th",17),A.YNc(29,d0,4,4,"td",11),A.BQk(),A.ynx(30,19),A.YNc(31,xa,2,0,"th",17),A.YNc(32,p0,4,3,"td",11),A.BQk(),A.ynx(33,20),A.YNc(34,I0,2,0,"th",17),A.YNc(35,Ce,4,3,"td",11),A.BQk(),A.ynx(36,21),A.YNc(37,Fa,2,0,"th",22),A.YNc(38,D0,6,4,"td",23),A.BQk(),A.ynx(39,24),A.YNc(40,v0,8,0,"th",25),A.YNc(41,Ya,12,0,"td",26),A.BQk(),A.ynx(42,27),A.YNc(43,vi,5,4,"td",28),A.BQk(),A.YNc(44,F0,1,3,"tr",29),A.YNc(45,Y0,1,0,"tr",30),A.YNc(46,T0,1,0,"tr",31),A.qZA(),A.qZA(),A._UZ(47,"mat-paginator",32),A.qZA()),2&t&&(A.xp6(4),A.Q6J("ngModel",B.selFilter),A.xp6(1),A.Q6J("ngIf",B.apiCallStatus.status===B.apiCallStatusEnum.INITIATED),A.xp6(2),A.Q6J("dataSource",B.channels)("ngClass",A.VKq(11,S0,""!==B.errorMessage)),A.xp6(37),A.Q6J("matFooterRowDef",A.DdM(13,U0)),A.xp6(1),A.Q6J("matHeaderRowDef",B.displayedColumns)("matHeaderRowDefSticky",B.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",B.displayedColumns),A.xp6(1),A.Q6J("pageSize",B.pageSize)("pageSizeOptions",B.pageSizeOptions)("showFirstLastButtons",B.screenSize!==B.screenSizeEnum.XS))},directives:[Qt.xw,Qt.Wh,Qt.yH,V.KE,ot.Nt,zA.Fj,zA.JJ,zA.On,ht.O5,gA.$V,SA.BZ,lt.YE,ht.mk,d.oO,SA.w1,SA.fO,SA.Dz,SA.mD,SA.Ke,SA.as,SA.nj,ft.NW,Y.pW,SA.ge,lt.nU,SA.ev,ht.PC,d.Zl,aA.gM,f.BN,V.bx,vt.gD,vt.$L,G.ey,SA.yh,SA.Q2,SA.XQ,SA.Gk],pipes:[ht.JJ],styles:[".mat-column-short_channel_id[_ngcontent-%COMP%]{flex:0 0 15%;width:15%}.mat-column-short_channel_id[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-alias[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}.mat-column-alias[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:3rem;flex:0 0 22%;width:22%}.mat-column-state[_ngcontent-%COMP%], .mat-column-msatoshi_to_us[_ngcontent-%COMP%], .mat-column-msatoshi_to_them[_ngcontent-%COMP%]{flex:1 1 15%;width:15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media only screen and (max-width: 37.5em){.mat-column-state[_ngcontent-%COMP%], .mat-column-msatoshi_to_us[_ngcontent-%COMP%], .mat-column-msatoshi_to_them[_ngcontent-%COMP%]{white-space:unset}}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 100%}@media only screen and (max-width: 37.5em){.mat-column-actions[_ngcontent-%COMP%] .bordered-box.table-actions-select[_ngcontent-%COMP%]{flex:0 0 80%}}"]}),i})();const z0=["outputIdx"];function mi(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Output Index required."),A.qZA())}function R0(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Invalid index value."),A.qZA())}function Wi(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Fees is required."),A.qZA())}function Ua(i,U){if(1&i&&(A.TgZ(0,"div",27),A._UZ(1,"fa-icon",13),A.TgZ(2,"span"),A._uU(3),A.qZA(),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(2),A.Oqu(t.bumpFeeError)}}let N0=(()=>{class i{constructor(t,B,k,FA,pt,Ye){this.actions=t,this.dialogRef=B,this.data=k,this.store=FA,this.logger=pt,this.snackBar=Ye,this.newAddress="",this.fees=null,this.outputIndex=null,this.faCopy=E.kZ_,this.faInfoCircle=E.sqG,this.faExclamationTriangle=E.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,WA._E)({payload:o._t[0]})),this.actions.pipe((0,_A.h)(t=>t.type===o.sW.SET_NEW_ADDRESS_CL),(0,nn.q)(1)).subscribe(t=>{this.store.dispatch((0,WA.Wi)({payload:{address:t.payload,satoshis:"all",feeRate:this.fees,utxos:[this.bumpFeeChannel.funding_txid+":"+this.outputIndex.toString()]}}))}),this.actions.pipe((0,_A.h)(t=>t.type===o.sW.SET_CHANNEL_TRANSACTION_RES_CL),(0,nn.q)(1)).subscribe(t=>{this.store.dispatch((0,eA.jW)({payload:"Successfully bumped the fee. Use the block explorer to verify transaction."})),this.dialogRef.close()}),this.actions.pipe((0,_A.h)(t=>t.type===o.sW.UPDATE_API_CALL_STATUS_CL),(0,r.R)(this.unSubs[0])).subscribe(t=>{t.payload.status===o.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 i.\u0275fac=function(t){return new(t||i)(A.Y36(C.eX),A.Y36(OA.so),A.Y36(OA.WI),A.Y36(u.yh),A.Y36(h.mQ),A.Y36(Hn.ux))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-bump-fee"]],viewQuery:function(t,B){if(1&t&&A.Gf(z0,5),2&t){let k;A.iGM(k=A.CRH())&&(B.payReq=k.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,B){if(1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A.TgZ(4,"span",4),A._uU(5,"Bump Fee"),A.qZA(),A.qZA(),A.TgZ(6,"button",5),A.NdJ("click",function(){return B.onClose()}),A._uU(7,"X"),A.qZA(),A.qZA(),A.TgZ(8,"mat-card-content",6),A.TgZ(9,"form",7),A.TgZ(10,"div",8),A.TgZ(11,"p",9),A._uU(12),A.TgZ(13,"fa-icon",10),A.NdJ("copied",function(FA){return B.onCopyID(FA)}),A.qZA(),A.qZA(),A.TgZ(14,"div",11),A.TgZ(15,"div",12),A._UZ(16,"fa-icon",13),A.TgZ(17,"span",14),A._uU(18,"Bumping fee on pending open channels is an advanced feature, attempt it only if you are familiar with the functionality of Bitcoin transactions. "),A.TgZ(19,"div"),A._uU(20,"Before attempting fee bump ensure the following:"),A.qZA(),A.TgZ(21,"div",15),A._uU(22,"1: Use a Bitcoin block explorer to ensure that channel opening transaction is not confirmed."),A.qZA(),A.TgZ(23,"div",15),A._uU(24,"2: The channel opening transaction must have a sizable change output, which can be spent further. The fee cannot be bumped without the change output."),A.qZA(),A.TgZ(25,"div",15),A._uU(26,"3: Find the index value of the change output via a block explorer."),A.qZA(),A.TgZ(27,"div",15),A._uU(28,"4: Enter the index value of the change output in the form below and the desired fee rate."),A.qZA(),A.TgZ(29,"div",15),A._uU(30,"5: Upon successful fee bump, use your block explorer to track the child transaction in the mempool, which should be linked with the change output transaction."),A.qZA(),A.qZA(),A.qZA(),A.TgZ(31,"div",16),A.TgZ(32,"mat-form-field",17),A.TgZ(33,"input",18,19),A.NdJ("ngModelChange",function(FA){return B.outputIndex=FA}),A.qZA(),A.YNc(35,mi,2,0,"mat-error",20),A.YNc(36,R0,2,0,"mat-error",20),A.qZA(),A.TgZ(37,"mat-form-field",17),A.TgZ(38,"input",21,22),A.NdJ("ngModelChange",function(FA){return B.fees=FA}),A.qZA(),A.YNc(40,Wi,2,0,"mat-error",20),A.qZA(),A.qZA(),A.YNc(41,Ua,4,2,"div",23),A.qZA(),A.qZA(),A.TgZ(42,"div",24),A.TgZ(43,"button",25),A.NdJ("click",function(){return B.resetData()}),A._uU(44,"Clear"),A.qZA(),A.TgZ(45,"button",26),A.NdJ("click",function(){return B.onBumpFee()}),A._uU(46),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t){const k=A.MAs(34);A.xp6(12),A.hij("Bump fee for transaction id: ",null==B.bumpFeeChannel?null:B.bumpFeeChannel.funding_txid," "),A.xp6(1),A.Q6J("icon",B.faCopy)("payload",null==B.bumpFeeChannel?null:B.bumpFeeChannel.funding_txid),A.xp6(3),A.Q6J("icon",B.faInfoCircle),A.xp6(17),A.Q6J("ngModel",B.outputIndex)("step",1)("min",0),A.xp6(2),A.Q6J("ngIf",null==k.errors?null:k.errors.required),A.xp6(1),A.Q6J("ngIf",null==k.errors?null:k.errors.pendingChannelOutputIndex),A.xp6(2),A.Q6J("ngModel",B.fees)("step",1)("min",0),A.xp6(2),A.Q6J("ngIf",!B.fees),A.xp6(1),A.Q6J("ngIf",""!==B.bumpFeeError),A.xp6(5),A.Oqu(""!==B.bumpFeeError?"Retry Bump Fee":"Bump Fee")}},directives:[Qt.xw,Qt.yH,w.dk,Qt.Wh,F.lW,w.dn,zA._Y,zA.JL,zA.F,f.BN,V.R9,Kr.y,aA.gM,V.KE,ot.Nt,zA.wV,zA.qQ,zA.Fj,dt.q,It.h,zA.Q7,zA.JJ,zA.On,ht.O5,V.TO],styles:[""]}),i})();function Ai(i,U){1&i&&A._UZ(0,"mat-progress-bar",30)}function hn(i,U){1&i&&(A.TgZ(0,"th",31),A._uU(1," Short Channel ID "),A.qZA())}function yi(i,U){if(1&i&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.short_channel_id,"")}}function Pa(i,U){1&i&&(A.TgZ(0,"th",31),A._uU(1," Alias "),A.qZA())}function b0(i,U){if(1&i&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.Oqu(null==t?null:t.alias)}}function L0(i,U){1&i&&(A.TgZ(0,"th",31),A._uU(1," Connected "),A.qZA())}function G0(i,U){if(1&i&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.connected?"Connected":"Disconnected"," ")}}function H0(i,U){1&i&&(A.TgZ(0,"th",31),A._uU(1," Private "),A.qZA())}function J0(i,U){if(1&i&&(A.TgZ(0,"td",32),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.hij(" ",null!=t&&t.private?"Private":"Public"," ")}}function O0(i,U){1&i&&(A.TgZ(0,"th",31),A._uU(1," State "),A.qZA())}const k0=function(i){return{"max-width":i}};function j0(i,U){if(1&i&&(A.TgZ(0,"td",33),A._uU(1),A.qZA()),2&i){const t=U.$implicit,B=A.oxw();A.Q6J("ngStyle",A.VKq(2,k0,B.screenSize===B.screenSizeEnum.XS?"10rem":"")),A.xp6(1),A.hij(" ",B.CLChannelPendingState[null==t?null:t.state]," ")}}function za(i,U){1&i&&(A.TgZ(0,"th",34),A._uU(1," mSatoshi To Us "),A.qZA())}function Z0(i,U){if(1&i&&(A.TgZ(0,"td",32),A.TgZ(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.msatoshi_to_us)," ")}}function K0(i,U){1&i&&(A.TgZ(0,"th",34),A._uU(1," Total (Sats) "),A.qZA())}function W0(i,U){if(1&i&&(A.TgZ(0,"td",32),A.TgZ(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,(null==t?null:t.msatoshi_total)/1e3)," ")}}function Br(i,U){1&i&&(A.TgZ(0,"th",34),A._uU(1," Spendable Satoshi "),A.qZA())}function V0(i,U){if(1&i&&(A.TgZ(0,"td",32),A.TgZ(1,"span",35),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.spendable_msatoshi)," ")}}function xi(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"th",36),A.TgZ(1,"div",37),A.TgZ(2,"mat-select",38),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",39),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function X0(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"mat-option",39),A.NdJ("click",function(){A.CHM(t);const k=A.oxw().$implicit;return A.oxw().onChannelClose(k)}),A._uU(1,"Close Channel"),A.qZA()}}function q0(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"mat-option",39),A.NdJ("click",function(){A.CHM(t);const k=A.oxw().$implicit;return A.oxw().onBumpFee(k)}),A._uU(1,"Bump Fee"),A.qZA()}}function _0(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"td",40),A.TgZ(1,"div",37),A.TgZ(2,"mat-select",41),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",39),A.NdJ("click",function(k){const pt=A.CHM(t).$implicit;return A.oxw().onChannelClick(pt,k)}),A._uU(5,"View Info"),A.qZA(),A.YNc(6,X0,2,0,"mat-option",42),A.YNc(7,q0,2,0,"mat-option",42),A.qZA(),A.qZA(),A.qZA()}if(2&i){const t=U.$implicit,B=A.oxw();A.xp6(6),A.Q6J("ngIf",B.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 Ra(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"No peers connected. Add a peer in order to open a channel."),A.qZA())}function $0(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"No pending/inactive channel available."),A.qZA())}function Ac(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting pending/inactive channels..."),A.qZA())}function tc(i,U){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function ec(i,U){if(1&i&&(A.TgZ(0,"td",43),A.YNc(1,Ra,2,0,"p",44),A.YNc(2,$0,2,0,"p",44),A.YNc(3,Ac,2,0,"p",44),A.YNc(4,tc,2,1,"p",44),A.qZA()),2&i){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 Na=function(i){return{"display-none":i}};function nc(i,U){if(1&i&&A._UZ(0,"tr",45),2&i){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,Na,t.numPeers>0&&(null==t.channels?null:t.channels.data)&&(null==t.channels||null==t.channels.data?null:t.channels.data.length)>0))}}function ba(i,U){1&i&&A._UZ(0,"tr",46)}function La(i,U){1&i&&A._UZ(0,"tr",47)}const Ga=function(i){return{"overflow-auto error-border":i,"overflow-auto":!0}},rc=function(){return["no_peer"]};let ic=(()=>{class i{constructor(t,B,k,FA){this.logger=t,this.store=B,this.rtlEffects=k,this.commonService=FA,this.isCompatibleVersion=!1,this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=o.vn,this.selFilter="",this.flgSticky=!1,this.CLChannelPendingState=o.uX,this.pageSize=o.IV,this.pageSizeOptions=o.TJ,this.screenSize="",this.screenSizeEnum=o.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=o.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===o.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","state","actions"]):this.screenSize===o.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","connected","state","actions"]):this.screenSize===o.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(l.jK).pipe((0,r.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(l.ZW).pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===o.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((B,k)=>this.CLChannelPendingState[B.state]>=this.CLChannelPendingState[k.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,eA.qR)({payload:{data:{channel:t,component:N0}}}))}onChannelClick(t,B){this.store.dispatch((0,eA.qR)({payload:{data:{channel:t,showCopy:!0,component:Zi}}}))}onChannelClose(t){this.store.dispatch((0,eA.c1)({payload:{data:{type:o.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,r.R)(this.unSubs[2])).subscribe(B=>{B&&this.store.dispatch((0,WA.BL)({payload:{id:t.id,channelId:t.channel_id,force:!0}}))})}loadChannelsTable(t){t.sort((B,k)=>B.active===k.active?0:k.active?1:-1),this.channels=new SA.by([...t]),this.channels.filterPredicate=(B,k)=>((B.connected?"connected":"disconnected")+(B.channel_id?B.channel_id.toLowerCase():"")+(B.short_channel_id?B.short_channel_id.toLowerCase():"")+(B.id?B.id.toLowerCase():"")+(B.alias?B.alias.toLowerCase():"")+(B.private?"private":"public")+(B.state&&this.CLChannelPendingState[B.state]?this.CLChannelPendingState[B.state].toLowerCase():"")+(B.funding_txid?B.funding_txid.toLowerCase():"")+(B.msatoshi_to_us?B.msatoshi_to_us:"")+(B.msatoshi_total?B.msatoshi_total:"")+(B.their_channel_reserve_satoshis?B.their_channel_reserve_satoshis:"")+(B.our_channel_reserve_satoshis?B.our_channel_reserve_satoshis:"")+(B.spendable_msatoshi?B.spendable_msatoshi:"")).includes(k),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(B,k)=>"state"===k?this.CLChannelPendingState[B.state]:B[k]&&isNaN(B[k])?B[k].toLocaleLowerCase():B[k]?+B[k]: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 i.\u0275fac=function(t){return new(t||i)(A.Y36(h.mQ),A.Y36(u.yh),A.Y36(at.V),A.Y36(e.v))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-channel-pending-table"]],viewQuery:function(t,B){if(1&t&&(A.Gf(lt.YE,5),A.Gf(ft.NW,5)),2&t){let k;A.iGM(k=A.CRH())&&(B.sort=k.first),A.iGM(k=A.CRH())&&(B.paginator=k.first)}},features:[A._Bn([{provide:ft.ye,useValue:(0,o.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,B){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A._UZ(2,"div",2),A.TgZ(3,"mat-form-field",3),A.TgZ(4,"input",4),A.NdJ("keyup",function(){return B.applyFilter()})("ngModelChange",function(FA){return B.selFilter=FA}),A.qZA(),A.qZA(),A.qZA(),A.YNc(5,Ai,1,0,"mat-progress-bar",5),A.TgZ(6,"div",6),A.TgZ(7,"table",7,8),A.ynx(9,9),A.YNc(10,hn,2,0,"th",10),A.YNc(11,yi,2,1,"td",11),A.BQk(),A.ynx(12,12),A.YNc(13,Pa,2,0,"th",10),A.YNc(14,b0,2,1,"td",11),A.BQk(),A.ynx(15,13),A.YNc(16,L0,2,0,"th",10),A.YNc(17,G0,2,1,"td",11),A.BQk(),A.ynx(18,14),A.YNc(19,H0,2,0,"th",10),A.YNc(20,J0,2,1,"td",11),A.BQk(),A.ynx(21,15),A.YNc(22,O0,2,0,"th",10),A.YNc(23,j0,2,4,"td",16),A.BQk(),A.ynx(24,17),A.YNc(25,za,2,0,"th",18),A.YNc(26,Z0,4,3,"td",11),A.BQk(),A.ynx(27,19),A.YNc(28,K0,2,0,"th",18),A.YNc(29,W0,4,3,"td",11),A.BQk(),A.ynx(30,20),A.YNc(31,Br,2,0,"th",18),A.YNc(32,V0,4,3,"td",11),A.BQk(),A.ynx(33,21),A.YNc(34,xi,6,0,"th",22),A.YNc(35,_0,8,2,"td",23),A.BQk(),A.ynx(36,24),A.YNc(37,ec,5,4,"td",25),A.BQk(),A.YNc(38,nc,1,3,"tr",26),A.YNc(39,ba,1,0,"tr",27),A.YNc(40,La,1,0,"tr",28),A.qZA(),A.qZA(),A._UZ(41,"mat-paginator",29),A.qZA()),2&t&&(A.xp6(4),A.Q6J("ngModel",B.selFilter),A.xp6(1),A.Q6J("ngIf",B.apiCallStatus.status===B.apiCallStatusEnum.INITIATED),A.xp6(2),A.Q6J("dataSource",B.channels)("ngClass",A.VKq(11,Ga,""!==B.errorMessage)),A.xp6(31),A.Q6J("matFooterRowDef",A.DdM(13,rc)),A.xp6(1),A.Q6J("matHeaderRowDef",B.displayedColumns)("matHeaderRowDefSticky",B.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",B.displayedColumns),A.xp6(1),A.Q6J("pageSize",B.pageSize)("pageSizeOptions",B.pageSizeOptions)("showFirstLastButtons",B.screenSize!==B.screenSizeEnum.XS))},directives:[Qt.xw,Qt.Wh,Qt.yH,V.KE,ot.Nt,zA.Fj,zA.JJ,zA.On,ht.O5,gA.$V,SA.BZ,lt.YE,ht.mk,d.oO,SA.w1,SA.fO,SA.Dz,SA.mD,SA.Ke,SA.as,SA.nj,ft.NW,Y.pW,SA.ge,lt.nU,SA.ev,ht.PC,d.Zl,vt.gD,vt.$L,G.ey,SA.yh,SA.Q2,SA.XQ,SA.Gk],pipes:[ht.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-state[_ngcontent-%COMP%]{flex:1 1 15%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),i})();const ac=["peersForm"],oc=["stepper"];function sc(i,U){if(1&i&&A._uU(0),2&i){const t=A.oxw();A.Oqu(t.peerFormLabel)}}function Ha(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Address is required."),A.qZA())}function cc(i,U){if(1&i&&(A.TgZ(0,"div",40),A._UZ(1,"fa-icon",41),A.TgZ(2,"span"),A._uU(3),A.qZA(),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(2),A.Oqu(t.peerConnectionError)}}function gc(i,U){if(1&i&&A._uU(0),2&i){const t=A.oxw();A.Oqu(t.channelFormLabel)}}function lc(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function Bc(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount must be a positive number."),A.qZA())}function uc(i,U){if(1&i&&(A.TgZ(0,"mat-error"),A._uU(1),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.hij("Amount must be less than or equal to ",t.totalBalance,".")}}function fc(i,U){if(1&i&&(A.TgZ(0,"mat-option",42),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.Q6J("value",t.feeRateId),A.xp6(1),A.hij(" ",t.feeRateType," ")}}function Ja(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Fee Rate is required."),A.qZA())}function Oa(i,U){if(1&i&&(A.TgZ(0,"mat-form-field",43),A._UZ(1,"input",44),A.YNc(2,Ja,2,0,"mat-error",14),A.qZA()),2&i){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 Ec(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Min Confirmation Blocks is required."),A.qZA())}function hc(i,U){if(1&i&&(A.TgZ(0,"div",40),A._UZ(1,"fa-icon",41),A.TgZ(2,"span"),A._uU(3),A.qZA(),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(2),A.Oqu(t.channelConnectionError)}}const wc=function(i,U){return{"mr-6":i,"mr-2":U}};let on=(()=>{class i{constructor(t,B,k,FA,pt,Ye,vn){this.dialogRef=t,this.data=B,this.store=k,this.formBuilder=FA,this.actions=pt,this.logger=Ye,this.commonService=vn,this.faExclamationTriangle=E.eHv,this.peerAddress="",this.totalBalance=0,this.feeRateTypes=o.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=o.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:["",[zA.kI.required]],peerAddress:[this.peerAddress,[zA.kI.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[zA.kI.required,zA.kI.min(1),zA.kI.max(this.totalBalance)]],isPrivate:[!1],selFeeRate:[null],customFeeRate:[null],flgMinConf:[!1],minConfValue:[{value:null,disabled:!0}],hiddenAmount:["",[zA.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.channelFormGroup.controls.flgMinConf.valueChanges.pipe((0,r.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([zA.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,r.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:[zA.kI.required])}),this.actions.pipe((0,r.R)(this.unSubs[2]),(0,_A.h)(t=>t.type===o.sW.NEWLY_ADDED_PEER_CL||t.type===o.sW.FETCH_CHANNELS_CL||t.type===o.sW.UPDATE_API_CALL_STATUS_CL)).subscribe(t=>{t.type===o.sW.NEWLY_ADDED_PEER_CL&&(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===o.sW.FETCH_CHANNELS_CL&&this.dialogRef.close(),t.type===o.sW.UPDATE_API_CALL_STATUS_CL&&t.payload.status===o.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,WA.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,WA.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 i.\u0275fac=function(t){return new(t||i)(A.Y36(OA.so),A.Y36(OA.WI),A.Y36(u.yh),A.Y36(zA.qu),A.Y36(C.eX),A.Y36(h.mQ),A.Y36(e.v))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-connect-peer"]],viewQuery:function(t,B){if(1&t&&(A.Gf(ac,5),A.Gf(oc,5)),2&t){let k;A.iGM(k=A.CRH())&&(B.form=k.first),A.iGM(k=A.CRH())&&(B.stepper=k.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","48","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","48","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/vB)","type","number","name","custFeeRate","tabindex","4",3,"step","min"]],template:function(t,B){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A.TgZ(4,"span",4),A._uU(5,"Connect to a new peer"),A.qZA(),A.qZA(),A.TgZ(6,"button",5),A.NdJ("click",function(){return B.onClose()}),A._uU(7,"X"),A.qZA(),A.qZA(),A.TgZ(8,"mat-card-content",6),A.TgZ(9,"div",7),A.TgZ(10,"mat-vertical-stepper",8,9),A.NdJ("selectionChange",function(FA){return B.stepSelectionChanged(FA)}),A.TgZ(12,"mat-step",10),A.TgZ(13,"form",11),A.YNc(14,sc,1,1,"ng-template",12),A.TgZ(15,"mat-form-field",1),A._UZ(16,"input",13),A.YNc(17,Ha,2,0,"mat-error",14),A.qZA(),A.YNc(18,cc,4,2,"div",15),A.TgZ(19,"div",16),A.TgZ(20,"button",17),A.NdJ("click",function(){return B.onConnectPeer()}),A._uU(21),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.TgZ(22,"mat-step",10),A.TgZ(23,"form",18),A.NdJ("ngSubmit",function(){return B.onOpenChannel()}),A.YNc(24,gc,1,1,"ng-template",19),A.TgZ(25,"div",20),A.TgZ(26,"div",21),A.TgZ(27,"mat-form-field",22),A._UZ(28,"input",23),A.TgZ(29,"mat-hint"),A._uU(30),A.qZA(),A.TgZ(31,"span",24),A._uU(32," Sats "),A.qZA(),A.YNc(33,lc,2,0,"mat-error",14),A.YNc(34,Bc,2,0,"mat-error",14),A.YNc(35,uc,2,1,"mat-error",14),A.qZA(),A.TgZ(36,"div",25),A.TgZ(37,"mat-slide-toggle",26),A._uU(38,"Private Channel"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(39,"div",27),A.TgZ(40,"div",28),A.TgZ(41,"mat-form-field",29),A.TgZ(42,"mat-select",30),A.YNc(43,fc,2,2,"mat-option",31),A.qZA(),A.qZA(),A.YNc(44,Oa,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,Ec,2,0,"mat-error",14),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.YNc(50,hc,4,2,"div",15),A.TgZ(51,"div",16),A.TgZ(52,"button",37),A._uU(53),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.TgZ(54,"div",38),A.TgZ(55,"button",39),A._uU(56),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(10),A.Q6J("linear",!0),A.xp6(2),A.Q6J("stepControl",B.peerFormGroup)("editable",B.flgEditable),A.xp6(1),A.Q6J("formGroup",B.peerFormGroup),A.xp6(4),A.Q6J("ngIf",null==B.peerFormGroup.controls.peerAddress.errors?null:B.peerFormGroup.controls.peerAddress.errors.required),A.xp6(1),A.Q6J("ngIf",""!==B.peerConnectionError),A.xp6(3),A.Oqu(""!==B.peerConnectionError?"Retry":"Add Peer"),A.xp6(1),A.Q6J("stepControl",B.channelFormGroup)("editable",B.flgEditable),A.xp6(1),A.Q6J("formGroup",B.channelFormGroup),A.xp6(5),A.Q6J("step",1e3),A.xp6(2),A.hij("Remaining Bal: ",B.totalBalance-(B.channelFormGroup.controls.fundingAmount.value?B.channelFormGroup.controls.fundingAmount.value:0),""),A.xp6(3),A.Q6J("ngIf",null==B.channelFormGroup.controls.fundingAmount.errors?null:B.channelFormGroup.controls.fundingAmount.errors.required),A.xp6(1),A.Q6J("ngIf",null==B.channelFormGroup.controls.fundingAmount.errors?null:B.channelFormGroup.controls.fundingAmount.errors.min),A.xp6(1),A.Q6J("ngIf",null==B.channelFormGroup.controls.fundingAmount.errors?null:B.channelFormGroup.controls.fundingAmount.errors.max),A.xp6(6),A.Q6J("fxFlex","customperkb"!==B.channelFormGroup.controls.selFeeRate.value||B.channelFormGroup.controls.flgMinConf.value?"100":"48"),A.xp6(2),A.Q6J("ngForOf",B.feeRateTypes),A.xp6(1),A.Q6J("ngIf","customperkb"===B.channelFormGroup.controls.selFeeRate.value&&!B.channelFormGroup.controls.flgMinConf.value),A.xp6(2),A.Q6J("ngClass",A.WLB(27,wc,B.screenSize===B.screenSizeEnum.XS||B.screenSize===B.screenSizeEnum.SM,B.screenSize===B.screenSizeEnum.MD||B.screenSize===B.screenSizeEnum.LG||B.screenSize===B.screenSizeEnum.XL)),A.xp6(2),A.Q6J("step",1)("min",0)("required",B.channelFormGroup.controls.flgMinConf.value),A.xp6(1),A.Q6J("ngIf",B.channelFormGroup.controls.flgMinConf.value&&!B.channelFormGroup.controls.minConfValue.value),A.xp6(1),A.Q6J("ngIf",""!==B.channelConnectionError),A.xp6(3),A.Oqu(""!==B.channelConnectionError?"Retry":"Open Channel"),A.xp6(2),A.Q6J("mat-dialog-close",!1),A.xp6(1),A.Oqu(null!=B.newlyAddedPeer&&B.newlyAddedPeer.id?"Do It Later":"Close"))},directives:[Qt.xw,Qt.yH,w.dk,Qt.Wh,F.lW,w.dn,pr.Vq,pr.C0,zA._Y,zA.JL,zA.sg,pr.VY,V.KE,ot.Nt,zA.Fj,It.h,zA.JJ,zA.u,zA.Q7,ht.O5,zA.wV,V.bx,V.R9,Pt.Rr,vt.gD,ht.sg,tt.oG,ht.mk,d.oO,zA.qQ,dt.q,OA.ZT,V.TO,f.BN,G.ey],styles:[""]}),i})();function yr(i,U){1&i&&A._UZ(0,"mat-progress-bar",32)}function Cc(i,U){1&i&&(A.TgZ(0,"th",33),A._uU(1," Alias "),A.qZA())}const Vi=function(i){return{"mr-0":i}};function Qc(i,U){if(1&i&&A._UZ(0,"span",37),2&i){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Vi,t.screenSize===t.screenSizeEnum.XS))}}function Mc(i,U){if(1&i&&A._UZ(0,"span",38),2&i){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Vi,t.screenSize===t.screenSizeEnum.XS))}}const Fi=function(i){return{"max-width":i}};function dc(i,U){if(1&i&&(A.TgZ(0,"td",34),A.YNc(1,Qc,1,3,"span",35),A.YNc(2,Mc,1,3,"span",36),A._uU(3),A.qZA()),2&i){const t=U.$implicit,B=A.oxw();A.Q6J("ngStyle",A.VKq(4,Fi,B.screenSize===B.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 pc(i,U){1&i&&(A.TgZ(0,"th",39),A._uU(1," ID "),A.qZA())}function ka(i,U){if(1&i&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&i){const t=U.$implicit,B=A.oxw();A.Q6J("ngStyle",A.VKq(2,Fi,B.screenSize===B.screenSizeEnum.XS?"10rem":"40rem")),A.xp6(1),A.hij(" ",null==t?null:t.id," ")}}function Ic(i,U){1&i&&(A.TgZ(0,"th",33),A._uU(1," Network Address "),A.qZA())}function xr(i,U){1&i&&(A.TgZ(0,"span"),A._uU(1,","),A._UZ(2,"br"),A.qZA())}function Dc(i,U){if(1&i&&(A.TgZ(0,"span"),A._uU(1),A.YNc(2,xr,3,0,"span",42),A.qZA()),2&i){const t=U.$implicit,B=U.last;A.xp6(1),A.Oqu(t),A.xp6(1),A.Q6J("ngIf",!B)}}function vc(i,U){if(1&i&&(A.TgZ(0,"td",34),A.YNc(1,Dc,3,2,"span",41),A.qZA()),2&i){const t=U.$implicit,B=A.oxw();A.Q6J("ngStyle",A.VKq(2,Fi,B.screenSize===B.screenSizeEnum.XS?"10rem":"20rem")),A.xp6(1),A.Q6J("ngForOf",null==t?null:t.netaddr)}}function mc(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"th",43),A.TgZ(1,"div",44),A.TgZ(2,"mat-select",45),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",46),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function yc(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"mat-option",46),A.NdJ("click",function(){A.CHM(t);const k=A.oxw().$implicit;return A.oxw().onPeerDetach(k)}),A._uU(1,"Disconnect"),A.qZA()}}function ja(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"mat-option",46),A.NdJ("click",function(){A.CHM(t);const k=A.oxw().$implicit;return A.oxw().onConnectPeer(k)}),A._uU(1,"Reconnect"),A.qZA()}}function Xi(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"td",47),A.TgZ(1,"div",48),A.TgZ(2,"mat-select",45),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",46),A.NdJ("click",function(k){const pt=A.CHM(t).$implicit;return A.oxw().onPeerClick(pt,k)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",46),A.NdJ("click",function(){const FA=A.CHM(t).$implicit;return A.oxw().onOpenChannel(FA)}),A._uU(7,"Open Channel"),A.qZA(),A.YNc(8,yc,2,0,"mat-option",49),A.YNc(9,ja,2,0,"mat-option",49),A.qZA(),A.qZA(),A.qZA()}if(2&i){const t=U.$implicit;A.xp6(8),A.Q6J("ngIf",t.connected),A.xp6(1),A.Q6J("ngIf",!t.connected)}}function er(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"No connected peer."),A.qZA())}function xc(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting peers..."),A.qZA())}function Fc(i,U){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function Yc(i,U){if(1&i&&(A.TgZ(0,"td",50),A.YNc(1,er,2,0,"p",42),A.YNc(2,xc,2,0,"p",42),A.YNc(3,Fc,2,1,"p",42),A.qZA()),2&i){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 Tc=function(i){return{"display-none":i}};function Lc(i,U){if(1&i&&A._UZ(0,"tr",51),2&i){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,Tc,(null==t.peers?null:t.peers.data)&&(null==t.peers||null==t.peers.data?null:t.peers.data.length)>0))}}function Sc(i,U){1&i&&A._UZ(0,"tr",52)}function Uc(i,U){1&i&&A._UZ(0,"tr",53)}const Pc=function(i){return{"overflow-auto error-border":i,"overflow-auto":!0}},zc=function(){return["no_peer"]};let Za=(()=>{class i{constructor(t,B,k,FA,pt){this.logger=t,this.store=B,this.rtlEffects=k,this.actions=FA,this.commonService=pt,this.faUsers=E.FVb,this.newlyAddedPeer="",this.displayedColumns=[],this.peerAddress="",this.peersData=[],this.information={},this.availableBalance=0,this.flgSticky=!1,this.pageSize=o.IV,this.pageSizeOptions=o.TJ,this.screenSize="",this.screenSizeEnum=o.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=o.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","actions"]):this.screenSize===o.cu.SM||this.screenSize===o.cu.MD?(this.flgSticky=!1,this.displayedColumns=["alias","id","netaddr","actions"]):(this.flgSticky=!0,this.displayedColumns=["alias","id","netaddr","actions"])}ngOnInit(){this.store.select(l.Ao).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.information=t.information,this.availableBalance=t.balance.totalBalance||0}),this.store.select(l.Wi).pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===o.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,r.R)(this.unSubs[2]),(0,_A.h)(t=>t.type===o.sW.SET_PEERS_CL)).subscribe(t=>{this.peerAddress=null})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(t,B){this.store.dispatch((0,eA.qR)({payload:{data:{type:o.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,eA.qR)({payload:{data:{message:{peer:t.id?t:null,information:this.information,balance:this.availableBalance},component:on}}}))}onOpenChannel(t){this.store.dispatch((0,eA.qR)({payload:{data:{alertTitle:"Open Channel",message:{peer:t,information:this.information,balance:this.availableBalance},newlyAdded:!1,component:Da}}}))}onPeerDetach(t){this.store.dispatch((0,eA.c1)({payload:{data:{type:o.n_.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(t.alias?t.alias:t.id),noBtnText:"Cancel",yesBtnText:"Disconnect"}}})),this.rtlEffects.closeConfirm.pipe((0,r.R)(this.unSubs[3])).subscribe(k=>{k&&this.store.dispatch((0,WA.z)({payload:{id:t.id,force:!1}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}loadPeersTable(t){this.peers=new SA.by([...t]),this.peers.sortingDataAccessor=(B,k)=>{if("netaddr"===k){if(B.netaddr&&B.netaddr[0]){const FA=B.netaddr[0].toString().split(".");return FA[0]?+FA[0]:B.netaddr[0]}return""}return B[k]&&isNaN(B[k])?B[k].toLocaleLowerCase():B[k]?+B[k]:null},this.peers.sort=this.sort,this.peers.filterPredicate=(B,k)=>JSON.stringify(B).toLowerCase().includes(k),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 i.\u0275fac=function(t){return new(t||i)(A.Y36(h.mQ),A.Y36(u.yh),A.Y36(at.V),A.Y36(C.eX),A.Y36(e.v))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-peers"]],viewQuery:function(t,B){if(1&t&&(A.Gf(lt.YE,5),A.Gf(ft.NW,5)),2&t){let k;A.iGM(k=A.CRH())&&(B.sort=k.first),A.iGM(k=A.CRH())&&(B.paginator=k.first)}},features:[A._Bn([{provide:ft.ye,useValue:(0,o.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,B){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"form",1,2),A.TgZ(3,"button",3),A.NdJ("click",function(){return B.onConnectPeer({})}),A._uU(4,"Add Peer"),A.qZA(),A.qZA(),A.TgZ(5,"div",4),A.TgZ(6,"div",5),A.TgZ(7,"div",6),A._UZ(8,"fa-icon",7),A.TgZ(9,"span",8),A._uU(10,"Connected Peers"),A.qZA(),A.qZA(),A.TgZ(11,"mat-form-field",9),A.TgZ(12,"div",10),A.TgZ(13,"input",11),A.NdJ("keyup",function(){return B.applyFilter()})("ngModelChange",function(FA){return B.selFilter=FA}),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.TgZ(14,"div",12),A.YNc(15,yr,1,0,"mat-progress-bar",13),A.TgZ(16,"table",14,15),A.ynx(18,16),A.YNc(19,Cc,2,0,"th",17),A.YNc(20,dc,4,6,"td",18),A.BQk(),A.ynx(21,19),A.YNc(22,pc,2,0,"th",20),A.YNc(23,ka,2,4,"td",21),A.BQk(),A.ynx(24,22),A.YNc(25,Ic,2,0,"th",17),A.YNc(26,vc,2,4,"td",18),A.BQk(),A.ynx(27,23),A.YNc(28,mc,6,0,"th",24),A.YNc(29,Xi,10,2,"td",25),A.BQk(),A.ynx(30,26),A.YNc(31,Yc,4,3,"td",27),A.BQk(),A.YNc(32,Lc,1,3,"tr",28),A.YNc(33,Sc,1,0,"tr",29),A.YNc(34,Uc,1,0,"tr",30),A.qZA(),A.qZA(),A._UZ(35,"mat-paginator",31),A.qZA(),A.qZA()),2&t&&(A.xp6(8),A.Q6J("icon",B.faUsers),A.xp6(5),A.Q6J("ngModel",B.selFilter),A.xp6(2),A.Q6J("ngIf",B.apiCallStatus.status===B.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",B.peers)("ngClass",A.VKq(12,Pc,""!==B.errorMessage)),A.xp6(16),A.Q6J("matFooterRowDef",A.DdM(14,zc)),A.xp6(1),A.Q6J("matHeaderRowDef",B.displayedColumns)("matHeaderRowDefSticky",B.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",B.displayedColumns),A.xp6(1),A.Q6J("pageSize",B.pageSize)("pageSizeOptions",B.pageSizeOptions)("showFirstLastButtons",B.screenSize!==B.screenSizeEnum.XS))},directives:[Qt.xw,Qt.yH,Qt.Wh,zA._Y,zA.JL,zA.F,F.lW,f.BN,V.KE,ot.Nt,zA.Fj,zA.JJ,zA.On,gA.$V,ht.O5,SA.BZ,lt.YE,ht.mk,d.oO,SA.w1,SA.fO,SA.Dz,SA.mD,SA.Ke,SA.as,SA.nj,ft.NW,Y.pW,SA.ge,lt.nU,SA.ev,ht.PC,d.Zl,aA.gM,ht.sg,vt.gD,vt.$L,G.ey,SA.yh,SA.Q2,SA.XQ,SA.Gk],styles:[".mat-column-alias[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-column-id[_ngcontent-%COMP%]{flex:1 1 20%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:2rem}.mat-column-netaddr[_ngcontent-%COMP%]{flex:1 1 25%;width:25%}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),i})();const Rc=["queryRoutesForm"];function nA(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Destination pubkey is required."),A.qZA())}function b(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Amount is required."),A.qZA())}function K(i,U){1&i&&A._UZ(0,"mat-progress-bar",38)}function M(i,U){1&i&&(A.TgZ(0,"th",39),A._uU(1," ID "),A.qZA())}function y(i,U){if(1&i&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.id," ")}}function z(i,U){1&i&&(A.TgZ(0,"th",39),A._uU(1," Alias "),A.qZA())}function tA(i,U){if(1&i&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.alias," ")}}function oA(i,U){1&i&&(A.TgZ(0,"th",39),A._uU(1," Channel "),A.qZA())}function sA(i,U){if(1&i&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.channel," ")}}function iA(i,U){1&i&&(A.TgZ(0,"th",39),A._uU(1," Direction "),A.qZA())}function UA(i,U){if(1&i&&(A.TgZ(0,"td",40),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.direction," ")}}function kA(i,U){1&i&&(A.TgZ(0,"th",41),A._uU(1," Delay "),A.qZA())}function gt(i,U){if(1&i&&(A.TgZ(0,"td",40),A.TgZ(1,"span",42),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,null==t?null:t.delay)," ")}}function qA(i,U){1&i&&(A.TgZ(0,"th",41),A._uU(1," Amount (Sats) "),A.qZA())}function Bt(i,U){if(1&i&&(A.TgZ(0,"td",40),A.TgZ(1,"span",42),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$implicit;A.xp6(2),A.hij(" ",A.lcZ(3,1,(null==t?null:t.msatoshi)/1e3)," ")}}function Mt(i,U){1&i&&(A.TgZ(0,"th",43),A._uU(1," Amount mSat "),A.qZA())}function mt(i,U){if(1&i&&(A.TgZ(0,"td",44),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.hij(" ",null==t?null:t.amount_msat," ")}}function Gt(i,U){1&i&&(A.TgZ(0,"th",45),A.TgZ(1,"span",42),A._uU(2,"Actions"),A.qZA(),A.qZA())}function _t(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"td",44),A.TgZ(1,"button",46),A.NdJ("click",function(k){const pt=A.CHM(t).$implicit;return A.oxw().onHopClick(pt,k)}),A._uU(2,"View Info"),A.qZA(),A.qZA()}}function qt(i,U){1&i&&A._UZ(0,"tr",47)}function ae(i,U){1&i&&A._UZ(0,"tr",48)}const le=function(i){return{"overflow-auto error-border":i,"overflow-auto":!0}};let he=(()=>{class i{constructor(t,B,k){this.store=t,this.clEffects=B,this.commonService=k,this.destinationPubkey="",this.amount=null,this.flgSticky=!1,this.displayedColumns=[],this.flgLoading=[!1],this.faRoute=E.FpQ,this.faExclamationTriangle=E.eHv,this.screenSize="",this.screenSizeEnum=o.cu,this.unSubs=[new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","msatoshi","actions"]):this.screenSize===o.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","direction","msatoshi","actions"]):this.screenSize===o.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.clEffects.setQueryRoutesCL.pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.qrHops=new SA.by([]),this.qrHops.data=[],t.routes&&t.routes.length&&t.routes.length>0?(this.flgLoading[0]=!1,this.qrHops=new SA.by([...t.routes]),this.qrHops.data=t.routes):this.flgLoading[0]="error",this.qrHops.sort=this.sort,this.qrHops.sortingDataAccessor=(B,k)=>B[k]&&isNaN(B[k])?B[k].toLocaleLowerCase():B[k]?+B[k]:null})}onQueryRoutes(){if(!this.destinationPubkey||!this.amount)return!0;this.flgLoading[0]=!0,this.store.dispatch((0,WA.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,B){this.store.dispatch((0,eA.qR)({payload:{data:{type:o.n_.INFORMATION,alertTitle:"Route Information",message:[[{key:"id",value:t.id,title:"ID",width:100,type:o.Gi.STRING}],[{key:"channel",value:t.channel,title:"Channel",width:50,type:o.Gi.STRING},{key:"alias",value:t.alias,title:"Peer Alias",width:50,type:o.Gi.STRING}],[{key:"msatoshi",value:t.msatoshi,title:"mSatoshi",width:50,type:o.Gi.NUMBER},{key:"amount_msat",value:t.amount_msat,title:"Amount mSat",width:50,type:o.Gi.STRING}],[{key:"direction",value:t.direction,title:"Direction",width:50,type:o.Gi.STRING},{key:"delay",value:t.delay,title:"Delay",width:50,type:o.Gi.NUMBER}]]}}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(u.yh),A.Y36(ke.s),A.Y36(e.v))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-query-routes"]],viewQuery:function(t,B){if(1&t&&(A.Gf(lt.YE,5),A.Gf(Rc,7)),2&t){let k;A.iGM(k=A.CRH())&&(B.sort=k.first),A.iGM(k=A.CRH())&&(B.form=k.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,B){if(1&t){const k=A.EpF();A.TgZ(0,"div",0),A.TgZ(1,"form",1,2),A.NdJ("ngSubmit",function(){return A.CHM(k),A.MAs(2).form.valid&&B.onQueryRoutes()}),A.TgZ(3,"div",3),A._UZ(4,"fa-icon",4),A.TgZ(5,"span"),A._uU(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),A.qZA(),A.qZA(),A.TgZ(7,"mat-form-field",5),A.TgZ(8,"input",6,7),A.NdJ("ngModelChange",function(pt){return B.destinationPubkey=pt}),A.qZA(),A.YNc(10,nA,2,0,"mat-error",8),A.qZA(),A.TgZ(11,"mat-form-field",9),A.TgZ(12,"input",10),A.NdJ("ngModelChange",function(pt){return B.amount=pt}),A.qZA(),A.YNc(13,b,2,0,"mat-error",8),A.qZA(),A.TgZ(14,"div",11),A.TgZ(15,"button",12),A.NdJ("click",function(){return B.resetData()}),A._uU(16,"Clear"),A.qZA(),A.TgZ(17,"button",13),A._uU(18,"Query Route"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(19,"div",14),A.TgZ(20,"div",15),A._UZ(21,"fa-icon",16),A.TgZ(22,"span",17),A._uU(23,"Transaction Route"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(24,"div",18),A.YNc(25,K,1,0,"mat-progress-bar",19),A.TgZ(26,"table",20,21),A.ynx(28,22),A.YNc(29,M,2,0,"th",23),A.YNc(30,y,2,1,"td",24),A.BQk(),A.ynx(31,25),A.YNc(32,z,2,0,"th",23),A.YNc(33,tA,2,1,"td",24),A.BQk(),A.ynx(34,26),A.YNc(35,oA,2,0,"th",23),A.YNc(36,sA,2,1,"td",24),A.BQk(),A.ynx(37,27),A.YNc(38,iA,2,0,"th",23),A.YNc(39,UA,2,1,"td",24),A.BQk(),A.ynx(40,28),A.YNc(41,kA,2,0,"th",29),A.YNc(42,gt,4,3,"td",24),A.BQk(),A.ynx(43,30),A.YNc(44,qA,2,0,"th",29),A.YNc(45,Bt,4,3,"td",24),A.BQk(),A.ynx(46,31),A.YNc(47,Mt,2,0,"th",32),A.YNc(48,mt,2,1,"td",33),A.BQk(),A.ynx(49,34),A.YNc(50,Gt,3,0,"th",35),A.YNc(51,_t,3,0,"td",33),A.BQk(),A.YNc(52,qt,1,0,"tr",36),A.YNc(53,ae,1,0,"tr",37),A.qZA(),A.qZA(),A.qZA()}2&t&&(A.xp6(4),A.Q6J("icon",B.faExclamationTriangle),A.xp6(4),A.Q6J("ngModel",B.destinationPubkey),A.xp6(2),A.Q6J("ngIf",!B.destinationPubkey),A.xp6(2),A.Q6J("ngModel",B.amount)("step",1e3)("min",0),A.xp6(1),A.Q6J("ngIf",!B.amount),A.xp6(8),A.Q6J("icon",B.faRoute),A.xp6(4),A.Q6J("ngIf",!0===B.flgLoading[0]),A.xp6(1),A.Q6J("dataSource",B.qrHops)("ngClass",A.VKq(14,le,"error"===B.flgLoading[0])),A.xp6(26),A.Q6J("matHeaderRowDef",B.displayedColumns)("matHeaderRowDefSticky",B.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",B.displayedColumns))},directives:[Qt.xw,Qt.yH,zA._Y,zA.JL,zA.F,Qt.Wh,f.BN,V.KE,ot.Nt,zA.Fj,zA.Q7,zA.JJ,zA.On,ht.O5,zA.wV,zA.qQ,dt.q,F.lW,gA.$V,SA.BZ,lt.YE,ht.mk,d.oO,SA.w1,SA.fO,SA.Dz,SA.as,SA.nj,V.TO,Y.pW,SA.ge,lt.nU,SA.ev,SA.XQ,SA.Gk],pipes:[ht.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{flex:0 0 5%;width:5%}.mat-column-pubkey_alias[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),i})();function we(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Message is required."),A.qZA())}let Ge=(()=>{class i{constructor(t,B,k){this.dataService=t,this.snackBar=B,this.logger=k,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,r.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 i.\u0275fac=function(t){return new(t||i)(A.Y36(KA.D),A.Y36(Hn.ux),A.Y36(h.mQ))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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,B){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"form",1,2),A.TgZ(3,"mat-form-field",3),A.TgZ(4,"textarea",4),A.NdJ("ngModelChange",function(FA){return B.message=FA})("keyup",function(){return B.onMessageChange()}),A.qZA(),A.YNc(5,we,2,0,"mat-error",5),A.qZA(),A.TgZ(6,"div",6),A.TgZ(7,"button",7),A.NdJ("click",function(){return B.resetData()}),A._uU(8,"Clear Field"),A.qZA(),A.TgZ(9,"button",8),A.NdJ("click",function(){return B.onSign()}),A._uU(10,"Sign"),A.qZA(),A.qZA(),A._UZ(11,"mat-divider",9),A.TgZ(12,"div",10),A.TgZ(13,"p"),A._uU(14,"Generated Signature"),A.qZA(),A.qZA(),A.TgZ(15,"div",11),A._uU(16),A.qZA(),A.TgZ(17,"div",12),A.TgZ(18,"button",13),A.NdJ("copied",function(FA){return B.onCopyField(FA)}),A._uU(19,"Copy Signature"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(4),A.Q6J("ngModel",B.message),A.xp6(1),A.Q6J("ngIf",!B.message),A.xp6(6),A.Q6J("inset",!0),A.xp6(5),A.Oqu(B.signature),A.xp6(2),A.Q6J("payload",B.signature))},directives:[Qt.xw,Qt.yH,Qt.Wh,zA._Y,zA.JL,zA.F,V.KE,ot.Nt,zA.Fj,It.h,zA.Q7,zA.JJ,zA.On,ht.O5,F.lW,AA.d,Kr.y,V.TO],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),i})();function sn(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Message is required."),A.qZA())}function He(i,U){1&i&&(A.TgZ(0,"mat-error"),A._uU(1,"Signature is required."),A.qZA())}function se(i,U){1&i&&(A.TgZ(0,"p",13),A.TgZ(1,"mat-icon",14),A._uU(2,"close"),A.qZA(),A._uU(3,"Verification failed, please double check message and signature"),A.qZA())}function cn(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"Pubkey Used"),A.qZA())}function Ve(i,U){if(1&i&&(A.TgZ(0,"div",20),A.TgZ(1,"p"),A._uU(2),A.qZA(),A.qZA()),2&i){const t=A.oxw(2);A.xp6(2),A.Oqu(null==t.verifyRes?null:t.verifyRes.pubkey)}}function Je(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"div",21),A.TgZ(1,"button",22),A.NdJ("copied",function(k){return A.CHM(t),A.oxw(2).onCopyField(k)}),A._uU(2,"Copy Pubkey"),A.qZA(),A.qZA()}if(2&i){const t=A.oxw(2);A.xp6(1),A.Q6J("payload",null==t.verifyRes?null:t.verifyRes.pubkey)}}function fe(i,U){if(1&i&&(A.TgZ(0,"div",15),A._UZ(1,"mat-divider",16),A.TgZ(2,"div",17),A.YNc(3,cn,2,0,"p",5),A.qZA(),A.YNc(4,Ve,3,1,"div",18),A.YNc(5,Je,3,1,"div",19),A.qZA()),2&i){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 _e=(()=>{class i{constructor(t,B,k){this.dataService=t,this.snackBar=B,this.logger=k,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,r.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 i.\u0275fac=function(t){return new(t||i)(A.Y36(KA.D),A.Y36(Hn.ux),A.Y36(h.mQ))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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,B){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"form",1,2),A.TgZ(3,"mat-form-field",3),A.TgZ(4,"textarea",4),A.NdJ("ngModelChange",function(FA){return B.message=FA})("keyup",function(){return B.onChange()}),A.qZA(),A.YNc(5,sn,2,0,"mat-error",5),A.qZA(),A.TgZ(6,"mat-form-field",3),A.TgZ(7,"input",6,7),A.NdJ("ngModelChange",function(FA){return B.signature=FA})("keyup",function(){return B.onChange()}),A.qZA(),A.YNc(9,He,2,0,"mat-error",5),A.qZA(),A.YNc(10,se,4,0,"p",8),A.TgZ(11,"div",9),A.TgZ(12,"button",10),A.NdJ("click",function(){return B.resetData()}),A._uU(13,"Clear Fields"),A.qZA(),A.TgZ(14,"button",11),A.NdJ("click",function(){return B.onVerify()}),A._uU(15,"Verify"),A.qZA(),A.qZA(),A.YNc(16,fe,6,4,"div",12),A.qZA(),A.qZA()),2&t&&(A.xp6(4),A.Q6J("ngModel",B.message),A.xp6(1),A.Q6J("ngIf",!B.message),A.xp6(2),A.Q6J("ngModel",B.signature),A.xp6(2),A.Q6J("ngIf",!B.signature),A.xp6(1),A.Q6J("ngIf",B.showVerifyStatus&&!B.verifyRes.verified),A.xp6(6),A.Q6J("ngIf",B.showVerifyStatus&&B.verifyRes.verified))},directives:[Qt.xw,Qt.yH,Qt.Wh,zA._Y,zA.JL,zA.F,V.KE,ot.Nt,zA.Fj,It.h,zA.Q7,zA.JJ,zA.On,ht.O5,F.lW,V.TO,m.Hw,AA.d,Kr.y],styles:[".mat-column-channel_point[_ngcontent-%COMP%]{flex:1 1 25%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),i})();function Pe(i,U){if(1&i&&(A.TgZ(0,"div",5),A._uU(1),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function xe(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"div",6),A._UZ(1,"div",7),A.TgZ(2,"mat-form-field",8),A.TgZ(3,"input",9),A.NdJ("ngModelChange",function(k){return A.CHM(t),A.oxw().filterValue=k})("input",function(){return A.CHM(t),A.oxw().applyFilter()})("keyup",function(){return A.CHM(t),A.oxw().applyFilter()}),A.qZA(),A.qZA(),A.qZA()}if(2&i){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.filterValue)}}function $e(i,U){1&i&&A._UZ(0,"mat-progress-bar",33)}function Nn(i,U){1&i&&(A.TgZ(0,"th",34),A._uU(1,"Status"),A.qZA())}function Bn(i,U){if(1&i&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.Oqu(null==t?null:t.status)}}function pn(i,U){1&i&&(A.TgZ(0,"th",34),A._uU(1,"Received Time"),A.qZA())}function Jn(i,U){if(1&i&&(A.TgZ(0,"td",35),A._uU(1),A.ALo(2,"date"),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.received_time),"dd/MMM/YYYY HH:mm"))}}function kn(i,U){1&i&&(A.TgZ(0,"th",34),A._uU(1,"Resolved Time"),A.qZA())}function Dn(i,U){if(1&i&&(A.TgZ(0,"td",35),A._uU(1),A.ALo(2,"date"),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.resolved_time),"dd/MMM/YYYY HH:mm"))}}function Qn(i,U){1&i&&(A.TgZ(0,"th",34),A._uU(1,"In Channel"),A.qZA())}function jn(i,U){if(1&i&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.Oqu(null==t?null:t.in_channel_alias)}}function Zn(i,U){1&i&&(A.TgZ(0,"th",34),A._uU(1,"Out Channel"),A.qZA())}function pe(i,U){if(1&i&&(A.TgZ(0,"td",35),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.Oqu(null==t?null:t.out_channel_alias)}}function ze(i,U){1&i&&(A.TgZ(0,"th",36),A._uU(1,"Amount In (Sats)"),A.qZA())}function Fe(i,U){if(1&i&&(A.TgZ(0,"td",35),A.TgZ(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$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 Xe(i,U){1&i&&(A.TgZ(0,"th",36),A._uU(1,"Amount Out (Sats)"),A.qZA())}function Oe(i,U){if(1&i&&(A.TgZ(0,"td",35),A.TgZ(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$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 un(i,U){1&i&&(A.TgZ(0,"th",36),A._uU(1,"Fee (mSat)"),A.qZA())}function qi(i,U){if(1&i&&(A.TgZ(0,"td",35),A.TgZ(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,null==t?null:t.fee))}}function bn(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"th",38),A.TgZ(1,"div",39),A.TgZ(2,"mat-select",40),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",41),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function _i(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"td",42),A.TgZ(1,"button",43),A.NdJ("click",function(k){const pt=A.CHM(t).$implicit;return A.oxw(2).onForwardingEventClick(pt,k)}),A._uU(2,"View Info"),A.qZA(),A.qZA()}}function $i(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"No forwarding history available."),A.qZA())}function Nc(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting forwarding history..."),A.qZA())}function bc(i,U){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function Yi(i,U){if(1&i&&(A.TgZ(0,"td",44),A.YNc(1,$i,2,0,"p",45),A.YNc(2,Nc,2,0,"p",45),A.YNc(3,bc,2,1,"p",45),A.qZA()),2&i){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(i){return{"display-none":i}};function Aa(i,U){if(1&i&&A._UZ(0,"tr",46),2&i){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 Ti(i,U){1&i&&A._UZ(0,"tr",47)}function Si(i,U){1&i&&A._UZ(0,"tr",48)}const ei=function(){return["no_event"]};function ni(i,U){if(1&i&&(A.TgZ(0,"div",10),A.YNc(1,$e,1,0,"mat-progress-bar",11),A.TgZ(2,"table",12,13),A.ynx(4,14),A.YNc(5,Nn,2,0,"th",15),A.YNc(6,Bn,2,1,"td",16),A.BQk(),A.ynx(7,17),A.YNc(8,pn,2,0,"th",15),A.YNc(9,Jn,3,4,"td",16),A.BQk(),A.ynx(10,18),A.YNc(11,kn,2,0,"th",15),A.YNc(12,Dn,3,4,"td",16),A.BQk(),A.ynx(13,19),A.YNc(14,Qn,2,0,"th",15),A.YNc(15,jn,2,1,"td",16),A.BQk(),A.ynx(16,20),A.YNc(17,Zn,2,0,"th",15),A.YNc(18,pe,2,1,"td",16),A.BQk(),A.ynx(19,21),A.YNc(20,ze,2,0,"th",22),A.YNc(21,Fe,4,4,"td",16),A.BQk(),A.ynx(22,23),A.YNc(23,Xe,2,0,"th",22),A.YNc(24,Oe,4,4,"td",16),A.BQk(),A.ynx(25,24),A.YNc(26,un,2,0,"th",22),A.YNc(27,qi,4,3,"td",16),A.BQk(),A.ynx(28,25),A.YNc(29,bn,6,0,"th",26),A.YNc(30,_i,3,0,"td",27),A.BQk(),A.ynx(31,28),A.YNc(32,Yi,4,3,"td",29),A.BQk(),A.YNc(33,Aa,1,3,"tr",30),A.YNc(34,Ti,1,0,"tr",31),A.YNc(35,Si,1,0,"tr",32),A.qZA(),A.qZA()),2&i){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,ei)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function ri(i,U){if(1&i&&A._UZ(0,"mat-paginator",49),2&i){const t=A.oxw();A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let br=(()=>{class i{constructor(t,B,k,FA){this.logger=t,this.commonService=B,this.store=k,this.datePipe=FA,this.eventsData=[],this.filterValue="",this.successfulEvents=[],this.displayedColumns=[],this.flgSticky=!1,this.pageSize=o.IV,this.pageSizeOptions=o.TJ,this.screenSize="",this.screenSizeEnum=o.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=o.Bn,this.unSubs=[new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS?(this.flgSticky=!1,this.displayedColumns=["in_msatoshi","out_msatoshi","actions"]):this.screenSize===o.cu.SM||this.screenSize===o.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(l.Bo).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.eventsData.length<=0&&(this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===o.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.successfulEvents=t.forwardingHistory||[],this.successfulEvents.length>0&&this.sort&&this.paginator&&this.loadForwardingEventsTable(this.successfulEvents),this.logger.info(t))})}ngAfterViewInit(){this.successfulEvents.length>0&&this.loadForwardingEventsTable(this.successfulEvents)}ngOnChanges(t){t.eventsData&&(this.apiCallStatus={status:o.Bn.COMPLETED,action:"FetchForwardingHistory"},this.eventsData=t.eventsData.currentValue,this.successfulEvents=this.eventsData,t.eventsData.firstChange||this.loadForwardingEventsTable(this.successfulEvents)),t.filterValue&&!t.filterValue.firstChange&&this.applyFilter()}onForwardingEventClick(t,B){this.store.dispatch((0,eA.qR)({payload:{data:{type:o.n_.INFORMATION,alertTitle:"Event Information",message:[[{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:o.Gi.STRING}],[{key:"status",value:"Settled",title:"Status",width:50,type:o.Gi.STRING},{key:"fee",value:t.fee,title:"Fee (mSats)",width:50,type:o.Gi.NUMBER}],[{key:"received_time",value:t.received_time,title:"Received Time",width:50,type:o.Gi.DATE_TIME},{key:"resolved_time",value:t.resolved_time,title:"Resolved Time",width:50,type:o.Gi.DATE_TIME}],[{key:"in_channel",value:t.in_channel_alias,title:"Inbound Channel",width:50,type:o.Gi.STRING},{key:"out_channel",value:t.out_channel_alias,title:"Outbound Channel",width:50,type:o.Gi.STRING}],[{key:"in_msatoshi",value:t.in_msatoshi,title:"In (mSats)",width:50,type:o.Gi.NUMBER},{key:"out_msatoshi",value:t.out_msatoshi,title:"Out (mSats)",width:50,type:o.Gi.NUMBER}]]}}}))}loadForwardingEventsTable(t){this.forwardingHistoryEvents=new SA.by([...t]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(B,k)=>B[k]&&isNaN(B[k])?B[k].toLocaleLowerCase():B[k]?+B[k]:null,this.forwardingHistoryEvents.paginator=this.paginator,this.forwardingHistoryEvents.filterPredicate=(B,k)=>((B.received_time?this.datePipe.transform(new Date(1e3*B.received_time),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(B.resolved_time?this.datePipe.transform(new Date(1e3*B.resolved_time),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(B.in_channel?B.in_channel.toLowerCase():"")+(B.out_channel?B.out_channel.toLowerCase():"")+(B.in_msatoshi?B.in_msatoshi/1e3:"")+(B.out_msatoshi?B.out_msatoshi/1e3:"")+(B.fee?B.fee:"")).includes(k),this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents&&this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.filterValue.trim().toLowerCase())}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(h.mQ),A.Y36(e.v),A.Y36(u.yh),A.Y36(ht.uU))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-forwarding-history"]],viewQuery:function(t,B){if(1&t&&(A.Gf(lt.YE,5),A.Gf(ft.NW,5)),2&t){let k;A.iGM(k=A.CRH())&&(B.sort=k.first),A.iGM(k=A.CRH())&&(B.paginator=k.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[A._Bn([{provide:ft.ye,useValue:(0,o.pt)("Events")}]),A.TTD],decls:5,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","received_time"],["matColumnDef","resolved_time"],["matColumnDef","in_channel"],["matColumnDef","out_channel"],["matColumnDef","in_msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","out_msatoshi"],["matColumnDef","fee"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(t,B){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Pe,2,1,"div",1),A.YNc(2,xe,4,1,"div",2),A.YNc(3,ni,36,7,"div",3),A.YNc(4,ri,1,3,"mat-paginator",4),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==B.errorMessage),A.xp6(1),A.Q6J("ngIf",""===B.errorMessage),A.xp6(1),A.Q6J("ngIf",""===B.errorMessage),A.xp6(1),A.Q6J("ngIf",""===B.errorMessage))},directives:[Qt.xw,Qt.Wh,ht.O5,Qt.yH,V.KE,ot.Nt,zA.Fj,zA.JJ,zA.On,gA.$V,SA.BZ,lt.YE,SA.w1,SA.fO,SA.Dz,SA.mD,SA.Ke,SA.as,SA.nj,Y.pW,SA.ge,lt.nU,SA.ev,vt.gD,vt.$L,G.ey,F.lW,SA.yh,SA.Q2,ht.mk,d.oO,SA.XQ,SA.Gk,ft.NW],pipes:[ht.uU,ht.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),i})();function ii(i,U){if(1&i&&(A.TgZ(0,"div",5),A._uU(1),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function ai(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"div",6),A._UZ(1,"div",7),A.TgZ(2,"mat-form-field",8),A.TgZ(3,"input",9),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyFilter()})("ngModelChange",function(k){return A.CHM(t),A.oxw().selFilter=k}),A.qZA(),A.qZA(),A.qZA()}if(2&i){const t=A.oxw();A.xp6(3),A.Q6J("ngModel",t.selFilter)}}function oi(i,U){1&i&&A._UZ(0,"mat-progress-bar",29)}function si(i,U){1&i&&(A.TgZ(0,"th",30),A._uU(1,"Status"),A.qZA())}function Qr(i,U){if(1&i&&(A.TgZ(0,"td",31),A._uU(1),A.ALo(2,"titlecase"),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,"local_failed"===(null==t?null:t.status)?"local failed":null==t?null:t.status))}}function Ka(i,U){1&i&&(A.TgZ(0,"th",30),A._uU(1,"Received Time"),A.qZA())}function Wa(i,U){if(1&i&&(A.TgZ(0,"td",31),A._uU(1),A.ALo(2,"date"),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,1e3*(null==t?null:t.received_time),"dd/MMM/YYYY HH:mm"))}}function Va(i,U){1&i&&(A.TgZ(0,"th",30),A._uU(1,"In Channel"),A.qZA())}function Xa(i,U){if(1&i&&(A.TgZ(0,"td",31),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.Oqu(null==t?null:t.in_channel_alias)}}function ta(i,U){1&i&&(A.TgZ(0,"th",32),A._uU(1,"Amount In (Sats)"),A.qZA())}function Kc(i,U){if(1&i&&(A.TgZ(0,"td",31),A.TgZ(1,"span",33),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$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 Wc(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"th",34),A.TgZ(1,"div",35),A.TgZ(2,"mat-select",36),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",37),A.NdJ("click",function(){return A.CHM(t),A.oxw(2).onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function Vc(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"td",38),A.TgZ(1,"button",39),A.NdJ("click",function(){const FA=A.CHM(t).$implicit;return A.oxw(2).onFailedEventClick(FA)}),A._uU(2,"View Info"),A.qZA(),A.qZA()}}function Xc(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"No failed transaction available."),A.qZA())}function qc(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting failed transactions..."),A.qZA())}function _c(i,U){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function $c(i,U){if(1&i&&(A.TgZ(0,"td",40),A.YNc(1,Xc,2,0,"p",41),A.YNc(2,qc,2,0,"p",41),A.YNc(3,_c,2,1,"p",41),A.qZA()),2&i){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 Ag=function(i){return{"display-none":i}};function tg(i,U){if(1&i&&A._UZ(0,"tr",42),2&i){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Ag,(null==t.failedForwardingEvents?null:t.failedForwardingEvents.data)&&(null==t.failedForwardingEvents||null==t.failedForwardingEvents.data?null:t.failedForwardingEvents.data.length)>0))}}function eg(i,U){1&i&&A._UZ(0,"tr",43)}function ng(i,U){1&i&&A._UZ(0,"tr",44)}const rg=function(){return["no_event"]};function ig(i,U){if(1&i&&(A.TgZ(0,"div",10),A.YNc(1,oi,1,0,"mat-progress-bar",11),A.TgZ(2,"table",12,13),A.ynx(4,14),A.YNc(5,si,2,0,"th",15),A.YNc(6,Qr,3,3,"td",16),A.BQk(),A.ynx(7,17),A.YNc(8,Ka,2,0,"th",15),A.YNc(9,Wa,3,4,"td",16),A.BQk(),A.ynx(10,18),A.YNc(11,Va,2,0,"th",15),A.YNc(12,Xa,2,1,"td",16),A.BQk(),A.ynx(13,19),A.YNc(14,ta,2,0,"th",20),A.YNc(15,Kc,4,4,"td",16),A.BQk(),A.ynx(16,21),A.YNc(17,Wc,6,0,"th",22),A.YNc(18,Vc,3,0,"td",23),A.BQk(),A.ynx(19,24),A.YNc(20,$c,4,3,"td",25),A.BQk(),A.YNc(21,tg,1,3,"tr",26),A.YNc(22,eg,1,0,"tr",27),A.YNc(23,ng,1,0,"tr",28),A.qZA(),A.qZA()),2&i){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(19),A.Q6J("matFooterRowDef",A.DdM(6,rg)),A.xp6(1),A.Q6J("matHeaderRowDef",t.displayedColumns)("matHeaderRowDefSticky",t.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",t.displayedColumns)}}function ag(i,U){if(1&i&&A._UZ(0,"mat-paginator",45),2&i){const t=A.oxw();A.Q6J("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)("showFirstLastButtons",t.screenSize!==t.screenSizeEnum.XS)}}let og=(()=>{class i{constructor(t,B,k,FA,pt){this.logger=t,this.commonService=B,this.store=k,this.datePipe=FA,this.router=pt,this.errorMessage="",this.displayedColumns=[],this.flgSticky=!1,this.selFilter="",this.pageSize=o.IV,this.pageSizeOptions=o.TJ,this.screenSize="",this.screenSizeEnum=o.cu,this.apiCallStatus=null,this.apiCallStatusEnum=o.Bn,this.unSubs=[new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS||this.screenSize===o.cu.SM||this.screenSize===o.cu.MD?(this.flgSticky=!1,this.displayedColumns=["status","received_time","in_msatoshi","actions"]):(this.flgSticky=!0,this.displayedColumns=["status","received_time","in_channel","in_msatoshi","actions"])}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.store.dispatch((0,WA.Ip)()),this.store.select(l.xQ).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===o.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.failedEvents=t.failedForwardingHistory||[],this.failedEvents.length>0&&this.sort&&this.paginator&&this.loadFailedEventsTable(this.failedEvents),this.logger.info(t)})}ngAfterViewInit(){this.failedEvents.length>0&&this.loadFailedEventsTable(this.failedEvents)}onFailedEventClick(t){const B=[[{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:o.Gi.STRING}],[{key:"status",value:"local_failed"===t.status?"Local Failed":this.commonService.titleCase(t.status),title:"Status",width:50,type:o.Gi.STRING},{key:"received_time",value:t.received_time,title:"Received Time",width:50,type:o.Gi.DATE_TIME}],[{key:"in_channel",value:t.in_channel_alias,title:"Inbound Channel",width:50,type:o.Gi.STRING},{key:"in_msatoshi",value:t.in_msatoshi,title:"In (mSats)",width:50,type:o.Gi.NUMBER}]];this.store.dispatch((0,eA.qR)({payload:{data:{type:o.n_.INFORMATION,alertTitle:"Event Information",message:B}}}))}loadFailedEventsTable(t){this.failedForwardingEvents=new SA.by([...t]),this.failedForwardingEvents.sort=this.sort,this.failedForwardingEvents.sortingDataAccessor=(B,k)=>B[k]&&isNaN(B[k])?B[k].toLocaleLowerCase():B[k]?+B[k]:null,this.failedForwardingEvents.paginator=this.paginator,this.failedForwardingEvents.filterPredicate=(B,k)=>((B.status?"local_failed"===B.status?"local failed":B.status.toLowerCase():"")+(B.received_time?this.datePipe.transform(new Date(1e3*B.received_time),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(B.resolved_time?this.datePipe.transform(new Date(1e3*B.resolved_time),"dd/MMM/YYYY HH:mm").toLowerCase():"")+(B.in_channel?B.in_channel.toLowerCase():"")+(B.out_channel?B.out_channel.toLowerCase():"")+(B.in_msatoshi?B.in_msatoshi/1e3:"")+(B.out_msatoshi?B.out_msatoshi/1e3:"")+(B.fee?B.fee:"")).includes(k),this.applyFilter(),this.logger.info(this.failedForwardingEvents)}onDownloadCSV(){this.failedForwardingEvents&&this.failedForwardingEvents.data&&this.failedForwardingEvents.data.length>0&&this.commonService.downloadFile(this.failedForwardingEvents.data,"Failed-transactions")}applyFilter(){this.failedForwardingEvents.filter=this.selFilter.trim().toLowerCase()}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(h.mQ),A.Y36(e.v),A.Y36(u.yh),A.Y36(ht.uU),A.Y36(Ae.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-failed-history"]],viewQuery:function(t,B){if(1&t&&(A.Gf(lt.YE,5),A.Gf(ft.NW,5)),2&t){let k;A.iGM(k=A.CRH())&&(B.sort=k.first),A.iGM(k=A.CRH())&&(B.paginator=k.first)}},features:[A._Bn([{provide:ft.ye,useValue:(0,o.pt)("Events")}])],decls:5,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","received_time"],["matColumnDef","in_channel"],["matColumnDef","in_msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","px-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(t,B){1&t&&(A.TgZ(0,"div",0),A.YNc(1,ii,2,1,"div",1),A.YNc(2,ai,4,1,"div",2),A.YNc(3,ig,24,7,"div",3),A.YNc(4,ag,1,3,"mat-paginator",4),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==B.errorMessage),A.xp6(1),A.Q6J("ngIf",""===B.errorMessage),A.xp6(1),A.Q6J("ngIf",""===B.errorMessage),A.xp6(1),A.Q6J("ngIf",""===B.errorMessage))},directives:[Qt.xw,Qt.Wh,ht.O5,Qt.yH,V.KE,ot.Nt,zA.Fj,zA.JJ,zA.On,gA.$V,SA.BZ,lt.YE,SA.w1,SA.fO,SA.Dz,SA.mD,SA.Ke,SA.as,SA.nj,Y.pW,SA.ge,lt.nU,SA.ev,vt.gD,vt.$L,G.ey,F.lW,SA.yh,SA.Q2,ht.mk,d.oO,SA.XQ,SA.Gk,ft.NW],pipes:[ht.rS,ht.uU,ht.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),i})();const sg=["tableIn"],cg=["tableOut"],gg=["paginatorIn"],lg=["paginatorOut"];function Bg(i,U){if(1&i&&(A.TgZ(0,"div",3),A._uU(1),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function ug(i,U){1&i&&A._UZ(0,"mat-progress-bar",36)}function fg(i,U){1&i&&(A.TgZ(0,"th",37),A._uU(1,"Channel ID"),A.qZA())}const qa=function(i){return{"max-width":i}};function Eg(i,U){if(1&i&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&i){const t=U.$implicit,B=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,qa,B.screenSize===B.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.channel_id)}}function hg(i,U){1&i&&(A.TgZ(0,"th",37),A._uU(1,"Peer Alias"),A.qZA())}function wg(i,U){if(1&i&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&i){const t=U.$implicit,B=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,qa,B.screenSize===B.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.alias)}}function Cg(i,U){1&i&&(A.TgZ(0,"th",39),A._uU(1,"Events"),A.qZA())}function Qg(i,U){if(1&i&&(A.TgZ(0,"td",40),A.TgZ(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,t.events))}}function Mg(i,U){1&i&&(A.TgZ(0,"th",39),A._uU(1,"Amount (Sats)"),A.qZA())}function dg(i,U){if(1&i&&(A.TgZ(0,"td",40),A.TgZ(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$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 pg(i,U){1&i&&(A.TgZ(0,"th",39),A._uU(1,"Fee (Sats)"),A.qZA())}function Ig(i,U){if(1&i&&(A.TgZ(0,"td",40),A.TgZ(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$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 Dg(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"No incoming routing peer available."),A.qZA())}function vg(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting incoming routing peers..."),A.qZA())}function mg(i,U){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function yg(i,U){if(1&i&&(A.TgZ(0,"td",42),A.YNc(1,Dg,2,0,"p",43),A.YNc(2,vg,2,0,"p",43),A.YNc(3,mg,2,1,"p",43),A.qZA()),2&i){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 Gc=function(i){return{"display-none":i}};function xg(i,U){if(1&i&&A._UZ(0,"tr",44),2&i){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Gc,(null==t.RoutingPeersIncoming?null:t.RoutingPeersIncoming.data)&&(null==t.RoutingPeersIncoming||null==t.RoutingPeersIncoming.data?null:t.RoutingPeersIncoming.data.length)>0))}}function Fg(i,U){1&i&&A._UZ(0,"tr",45)}function Yg(i,U){1&i&&A._UZ(0,"tr",46)}function Tg(i,U){1&i&&A._UZ(0,"mat-progress-bar",36)}function Sg(i,U){1&i&&(A.TgZ(0,"th",37),A._uU(1,"Channel ID"),A.qZA())}function Ug(i,U){if(1&i&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&i){const t=U.$implicit,B=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,qa,B.screenSize===B.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.channel_id)}}function Pg(i,U){1&i&&(A.TgZ(0,"th",37),A._uU(1,"Peer Alias"),A.qZA())}function zg(i,U){if(1&i&&(A.TgZ(0,"td",38),A._uU(1),A.qZA()),2&i){const t=U.$implicit,B=A.oxw(2);A.Q6J("ngStyle",A.VKq(2,qa,B.screenSize===B.screenSizeEnum.XS?"5rem":"10rem")),A.xp6(1),A.Oqu(t.alias)}}function Rg(i,U){1&i&&(A.TgZ(0,"th",39),A._uU(1,"Events"),A.qZA())}function Ng(i,U){if(1&i&&(A.TgZ(0,"td",40),A.TgZ(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$implicit;A.xp6(2),A.Oqu(A.lcZ(3,1,t.events))}}function bg(i,U){1&i&&(A.TgZ(0,"th",39),A._uU(1,"Amount (Sats)"),A.qZA())}function Lg(i,U){if(1&i&&(A.TgZ(0,"td",40),A.TgZ(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$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 Gg(i,U){1&i&&(A.TgZ(0,"th",39),A._uU(1,"Fee (Sats)"),A.qZA())}function Hg(i,U){if(1&i&&(A.TgZ(0,"td",40),A.TgZ(1,"span",41),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$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 Jg(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"No outgoing routing peer available."),A.qZA())}function Og(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting outgoing routing peers..."),A.qZA())}function kg(i,U){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(3);A.xp6(1),A.Oqu(t.errorMessage)}}function jg(i,U){if(1&i&&(A.TgZ(0,"td",42),A.YNc(1,Jg,2,0,"p",43),A.YNc(2,Og,2,0,"p",43),A.YNc(3,kg,2,1,"p",43),A.qZA()),2&i){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 Zg(i,U){if(1&i&&A._UZ(0,"tr",44),2&i){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,Gc,(null==t.RoutingPeersOutgoing?null:t.RoutingPeersOutgoing.data)&&(null==t.RoutingPeersOutgoing||null==t.RoutingPeersOutgoing.data?null:t.RoutingPeersOutgoing.data.length)>0))}}function Kg(i,U){1&i&&A._UZ(0,"tr",45)}function Wg(i,U){1&i&&A._UZ(0,"tr",46)}const Vg=function(i,U){return{"mt-2":i,"mt-1":U}},Xg=function(){return["no_incoming_event"]},qg=function(i){return{"mt-2":i}},_g=function(){return["no_outgoing_event"]};function $g(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"div",4),A.TgZ(1,"div",5),A.TgZ(2,"div",6),A.TgZ(3,"div",7),A._uU(4,"Incoming"),A.qZA(),A.TgZ(5,"mat-form-field",8),A.TgZ(6,"input",9),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyIncomingFilter()})("ngModelChange",function(k){return A.CHM(t),A.oxw().filterIn=k}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(7,"div",10),A.YNc(8,ug,1,0,"mat-progress-bar",11),A.TgZ(9,"table",12,13),A.ynx(11,14),A.YNc(12,fg,2,0,"th",15),A.YNc(13,Eg,2,4,"td",16),A.BQk(),A.ynx(14,17),A.YNc(15,hg,2,0,"th",15),A.YNc(16,wg,2,4,"td",16),A.BQk(),A.ynx(17,18),A.YNc(18,Cg,2,0,"th",19),A.YNc(19,Qg,4,3,"td",20),A.BQk(),A.ynx(20,21),A.YNc(21,Mg,2,0,"th",19),A.YNc(22,dg,4,4,"td",20),A.BQk(),A.ynx(23,22),A.YNc(24,pg,2,0,"th",19),A.YNc(25,Ig,4,4,"td",20),A.BQk(),A.ynx(26,23),A.YNc(27,yg,4,3,"td",24),A.BQk(),A.YNc(28,xg,1,3,"tr",25),A.YNc(29,Fg,1,0,"tr",26),A.YNc(30,Yg,1,0,"tr",27),A.qZA(),A.qZA(),A._UZ(31,"mat-paginator",28,29),A.qZA(),A.TgZ(33,"div",30),A.TgZ(34,"div",6),A.TgZ(35,"div",7),A._uU(36,"Outgoing"),A.qZA(),A.TgZ(37,"mat-form-field",8),A.TgZ(38,"input",9),A.NdJ("keyup",function(){return A.CHM(t),A.oxw().applyOutgoingFilter()})("ngModelChange",function(k){return A.CHM(t),A.oxw().filterOut=k}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(39,"div",31),A.YNc(40,Tg,1,0,"mat-progress-bar",11),A.TgZ(41,"table",32,33),A.ynx(43,14),A.YNc(44,Sg,2,0,"th",15),A.YNc(45,Ug,2,4,"td",16),A.BQk(),A.ynx(46,17),A.YNc(47,Pg,2,0,"th",15),A.YNc(48,zg,2,4,"td",16),A.BQk(),A.ynx(49,18),A.YNc(50,Rg,2,0,"th",19),A.YNc(51,Ng,4,3,"td",20),A.BQk(),A.ynx(52,21),A.YNc(53,bg,2,0,"th",19),A.YNc(54,Lg,4,4,"td",20),A.BQk(),A.ynx(55,22),A.YNc(56,Gg,2,0,"th",19),A.YNc(57,Hg,4,4,"td",20),A.BQk(),A.ynx(58,34),A.YNc(59,jg,4,3,"td",24),A.BQk(),A.YNc(60,Zg,1,3,"tr",25),A.YNc(61,Kg,1,0,"tr",26),A.YNc(62,Wg,1,0,"tr",27),A.qZA(),A._UZ(63,"mat-paginator",28,35),A.qZA(),A.qZA(),A.qZA()}if(2&i){const t=A.oxw();A.xp6(2),A.Q6J("ngClass",A.WLB(22,Vg,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,Xg)),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,qg,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,_g)),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 Al=(()=>{class i{constructor(t,B,k){this.logger=t,this.commonService=B,this.store=k,this.eventsData=[],this.filterValue="",this.successfulEvents=[],this.displayedColumns=[],this.RoutingPeersIncoming=[],this.RoutingPeersOutgoing=[],this.flgSticky=!1,this.pageSize=o.IV,this.pageSizeOptions=o.TJ,this.screenSize="",this.screenSizeEnum=o.cu,this.errorMessage="",this.filterIn="",this.filterOut="",this.apiCallStatus=null,this.apiCallStatusEnum=o.Bn,this.unSubs=[new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS?(this.flgSticky=!1,this.displayedColumns=["alias","total_fee"]):this.screenSize===o.cu.SM?(this.flgSticky=!1,this.displayedColumns=["alias","events","total_fee"]):this.screenSize===o.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(l.Bo).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.eventsData.length<=0&&(this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===o.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.successfulEvents=t.forwardingHistory||[],this.successfulEvents.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.successfulEvents),this.logger.info(t))})}ngAfterViewInit(){this.successfulEvents.length>0&&this.loadRoutingPeersTable(this.successfulEvents)}ngOnChanges(t){t.eventsData&&(this.apiCallStatus={status:o.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 B=this.groupRoutingPeers(t);this.RoutingPeersIncoming=new SA.by(B[0]),this.RoutingPeersIncoming.sort=this.sortIn,this.RoutingPeersIncoming.filterPredicate=(k,FA)=>JSON.stringify(k).toLowerCase().includes(FA),this.RoutingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.RoutingPeersIncoming),this.RoutingPeersOutgoing=new SA.by(B[1]),this.RoutingPeersOutgoing.sort=this.sortOut,this.RoutingPeersOutgoing.filterPredicate=(k,FA)=>JSON.stringify(k).toLowerCase().includes(FA),this.RoutingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.RoutingPeersOutgoing)}else this.RoutingPeersIncoming=new SA.by([]),this.RoutingPeersOutgoing=new SA.by([]);this.applyIncomingFilter(),this.applyOutgoingFilter(),this.logger.info(this.RoutingPeersIncoming),this.logger.info(this.RoutingPeersOutgoing)}groupRoutingPeers(t){const B=[],k=[];return t.forEach(FA=>{const pt=B.find(vn=>vn.channel_id===FA.in_channel),Ye=k.find(vn=>vn.channel_id===FA.out_channel);pt?(pt.events++,pt.total_amount=+pt.total_amount+ +FA.in_msatoshi,pt.total_fee=FA.in_msatoshi-FA.out_msatoshi+ +pt.total_fee):B.push({channel_id:FA.in_channel,alias:FA.in_channel_alias,events:1,total_amount:FA.in_msatoshi,total_fee:FA.in_msatoshi-FA.out_msatoshi}),Ye?(Ye.events++,Ye.total_amount=+Ye.total_amount+ +FA.out_msatoshi,Ye.total_fee=FA.in_msatoshi-FA.out_msatoshi+ +Ye.total_fee):k.push({channel_id:FA.out_channel,alias:FA.out_channel_alias,events:1,total_amount:FA.out_msatoshi,total_fee:FA.in_msatoshi-FA.out_msatoshi})}),[this.commonService.sortDescByKey(B,"total_fee"),this.commonService.sortDescByKey(k,"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 i.\u0275fac=function(t){return new(t||i)(A.Y36(h.mQ),A.Y36(e.v),A.Y36(u.yh))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-routing-peers"]],viewQuery:function(t,B){if(1&t&&(A.Gf(sg,5,lt.YE),A.Gf(cg,5,lt.YE),A.Gf(gg,5),A.Gf(lg,5)),2&t){let k;A.iGM(k=A.CRH())&&(B.sortIn=k.first),A.iGM(k=A.CRH())&&(B.sortOut=k.first),A.iGM(k=A.CRH())&&(B.paginatorIn=k.first),A.iGM(k=A.CRH())&&(B.paginatorOut=k.first)}},inputs:{eventsData:"eventsData",filterValue:"filterValue"},features:[A._Bn([{provide:ft.ye,useValue:(0,o.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,B){1&t&&(A.TgZ(0,"div",0),A.YNc(1,Bg,2,1,"div",1),A.YNc(2,$g,65,29,"div",2),A.qZA()),2&t&&(A.xp6(1),A.Q6J("ngIf",""!==B.errorMessage),A.xp6(1),A.Q6J("ngIf",""===B.errorMessage))},directives:[Qt.xw,Qt.Wh,ht.O5,Qt.yH,ht.mk,d.oO,V.KE,ot.Nt,zA.Fj,zA.JJ,zA.On,gA.$V,SA.BZ,lt.YE,SA.w1,SA.fO,SA.Dz,SA.mD,SA.Ke,SA.as,SA.nj,ft.NW,Y.pW,SA.ge,lt.nU,SA.ev,ht.PC,d.Zl,SA.yh,SA.Q2,SA.XQ,SA.Gk],pipes:[ht.JJ],styles:[".mat-column-channelId[_ngcontent-%COMP%], .mat-column-alias[_ngcontent-%COMP%]{flex:1 1 10%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),i})();function tl(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"div",7),A.NdJ("click",function(){const FA=A.CHM(t).$implicit;return A.oxw().activeLink=FA.link}),A._uU(1),A.qZA()}if(2&i){const t=U.$implicit,B=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",B.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let el=(()=>{class i{constructor(t){this.router=t,this.faChartBar=E.koM,this.links=[{link:"routingfees",name:"Routing Fees"},{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(B=>this.router.url.includes(B.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,r.R)(this.unSubs[0]),(0,_A.h)(B=>B instanceof Ae.Av)).subscribe(B=>{const k=this.links.find(FA=>B.urlAfterRedirects.includes(FA.link));this.activeLink=k?k.link:this.links[0].link})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(Ae.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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,B){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Reports"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"mat-card"),A.TgZ(6,"mat-card-content",4),A.TgZ(7,"nav",5),A.YNc(8,tl,2,3,"div",6),A.qZA(),A._UZ(9,"router-outlet"),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(1),A.Q6J("icon",B.faChartBar),A.xp6(7),A.Q6J("ngForOf",B.links))},directives:[Qt.xw,Qt.Wh,f.BN,w.a8,w.dn,yA.BU,ht.sg,Ae.lC,yA.Nj,Ae.rH],styles:[""]}),i})();var Hc=St(7772),Jc=St(7671),Oc=St(6046);function nl(i,U){1&i&&(A.TgZ(0,"div",9),A._UZ(1,"mat-progress-bar",10),A.TgZ(2,"p"),A._uU(3,"Getting fee report..."),A.qZA(),A.qZA())}function rl(i,U){if(1&i&&(A.TgZ(0,"div",11),A._uU(1),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Oqu(t.errorMessage)}}function il(i,U){if(1&i&&(A.TgZ(0,"div",12),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&i){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 al(i,U){1&i&&(A.TgZ(0,"div",9),A._uU(1,"No fee report for the selected period"),A.qZA())}function ol(i,U){if(1&i&&(A.TgZ(0,"span"),A.TgZ(1,"span",15),A._uU(2),A.ALo(3,"number"),A.qZA(),A.TgZ(4,"span",15),A._uU(5),A.ALo(6,"number"),A.qZA(),A.qZA()),2&i){const t=U.model;A.xp6(2),A.hij("Events: ",A.lcZ(3,2,t.extra.totalEvents||0),""),A.xp6(3),A.hij("Fee: ",A.xi3(6,4,t.value||0,"1.0-2"),"")}}function sl(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"ngx-charts-bar-vertical",13),A.NdJ("select",function(k){return A.CHM(t),A.oxw().onChartBarSelected(k)})("mouseup",function(k){return A.CHM(t),A.oxw().onChartMouseUp(k)}),A.YNc(1,ol,7,7,"ng-template",null,14,A.W1O),A.qZA()}if(2&i){const t=A.oxw();A.Q6J("view",t.view)("results",t.feeReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",t.showYAxisLabel)("xAxisLabel",t.xAxisLabel)("yAxisLabel",t.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function cl(i,U){if(1&i&&A._UZ(0,"rtl-cl-forwarding-history",16),2&i){const t=A.oxw();A.Q6J("eventsData",t.filteredEventsBySelectedPeriod)("filterValue",t.eventFilterValue)}}let gl=(()=>{class i{constructor(t,B,k){this.logger=t,this.commonService=B,this.store=k,this.reportPeriod=o.op[0],this.secondsInADay=86400,this.events=[],this.filteredEventsBySelectedPeriod=[],this.eventFilterValue="",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.feeReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Fee (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=o.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=o.Bn,this.unSubs=[new c.x,new c.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===o.cu.XS||this.screenSize===o.cu.SM),this.store.select(l.Bo).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===o.Bn.ERROR&&(this.errorMessage="object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message),this.events=t.forwardingHistory||[],this.filterForwardingEvents(this.startDate,this.endDate),this.logger.info(t)}),this.commonService.containerSizeUpdated.pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{switch(this.screenSize){case o.cu.MD:this.screenPaddingX=t.width/10;break;case o.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,B){const k=Math.round(t.getTime()/1e3),FA=Math.round(B.getTime()/1e3);this.filteredEventsBySelectedPeriod=[],this.feeReportData=[],this.totalFeeMsat=null,this.events&&this.events.length>0&&(this.events.forEach(pt=>{pt.received_time>=k&&pt.received_time0&&"ngx-charts"===t.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(t){this.eventFilterValue=this.reportPeriod===o.op[1]?t.name+"/"+this.startDate.getFullYear():t.name.toString().padStart(2,"0")+"/"+o.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(t){const B=Math.round(t.getTime()/1e3),k=[];if(this.reportPeriod===o.op[1]){for(let FA=0;FA<12;FA++)k.push({name:o.gg[FA].name,value:0,extra:{totalEvents:0}});this.filteredEventsBySelectedPeriod.map(FA=>{const pt=new Date(1e3*+FA.received_time).getMonth();return k[pt].value=k[pt].value+ +FA.fee/1e3,k[pt].extra.totalEvents=k[pt].extra.totalEvents+1,this.totalFeeMsat=(this.totalFeeMsat?this.totalFeeMsat:0)+ +FA.fee,this.filteredEventsBySelectedPeriod})}else{for(let FA=0;FA{const pt=Math.floor((+FA.received_time-B)/this.secondsInADay);return k[pt].value=k[pt].value+ +FA.fee/1e3,k[pt].extra.totalEvents=k[pt].extra.totalEvents+1,this.totalFeeMsat=(this.totalFeeMsat?this.totalFeeMsat:0)+ +FA.fee,this.filteredEventsBySelectedPeriod})}return k}onSelectionChange(t){const B=t.selDate.getMonth(),k=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===o.op[1]?(this.startDate=new Date(k,0,1,0,0,0),this.endDate=new Date(k,11,31,23,59,59)):(this.startDate=new Date(k,B,1,0,0,0),this.endDate=new Date(k,B,this.getMonthDays(B,k),23,59,59)),this.filterForwardingEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(t,B){return 1===t&&B%4==0?o.gg[t].days+1:o.gg[t].days}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(h.mQ),A.Y36(e.v),A.Y36(u.yh))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-fee-report"]],hostBindings:function(t,B){1&t&&A.NdJ("mouseup",function(FA){return B.onChartMouseUp(FA)})},decls:11,vars:6,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 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,B){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"rtl-horizontal-scroller",1),A.NdJ("stepChanged",function(FA){return B.onSelectionChange(FA)}),A.qZA(),A.TgZ(2,"div",2),A.YNc(3,nl,4,0,"div",3),A.YNc(4,rl,2,1,"div",4),A.YNc(5,il,4,8,"div",5),A.YNc(6,al,2,0,"div",3),A.TgZ(7,"div",6),A.YNc(8,sl,3,11,"ngx-charts-bar-vertical",7),A.qZA(),A.TgZ(9,"div",6),A.YNc(10,cl,1,2,"rtl-cl-forwarding-history",8),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(3),A.Q6J("ngIf",(null==B.apiCallStatus?null:B.apiCallStatus.status)===B.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("ngIf",(null==B.apiCallStatus?null:B.apiCallStatus.status)===B.apiCallStatusEnum.ERROR),A.xp6(1),A.Q6J("ngIf",(null==B.apiCallStatus?null:B.apiCallStatus.status)===B.apiCallStatusEnum.COMPLETED&&B.feeReportData.length>0&&B.filteredEventsBySelectedPeriod.length>0),A.xp6(1),A.Q6J("ngIf",(null==B.apiCallStatus?null:B.apiCallStatus.status)===B.apiCallStatusEnum.COMPLETED&&(B.feeReportData.length<=0||B.filteredEventsBySelectedPeriod.length<=0)),A.xp6(2),A.Q6J("ngIf",B.feeReportData.length>0&&B.filteredEventsBySelectedPeriod.length>0),A.xp6(2),A.Q6J("ngIf",B.filteredEventsBySelectedPeriod&&B.filteredEventsBySelectedPeriod.length>0))},directives:[Qt.xw,Qt.Wh,Qt.yH,Jc.D,ht.O5,Y.pW,Oc.K$,br],pipes:[ht.JJ],styles:[""],data:{animation:[Hc.J]}}),i})();var ll=St(165);function Bl(i,U){if(1&i&&(A.TgZ(0,"div",10),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&i){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 ul(i,U){if(1&i&&(A.TgZ(0,"div",10),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&i){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 fl(i,U){if(1&i&&(A.TgZ(0,"div",8),A.YNc(1,Bl,4,7,"div",9),A.YNc(2,ul,4,7,"div",9),A.qZA()),2&i){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 El(i,U){1&i&&(A.TgZ(0,"div",11),A._uU(1,"No transactions report for the selected period"),A.qZA())}function hl(i,U){if(1&i&&(A.TgZ(0,"span",14),A._uU(1),A.ALo(2,"number"),A.ALo(3,"number"),A.qZA()),2&i){const t=U.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 wl(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"ngx-charts-bar-vertical-2d",12),A.NdJ("select",function(k){return A.CHM(t),A.oxw().onChartBarSelected(k)})("mouseup",function(k){return A.CHM(t),A.oxw().onChartMouseUp(k)}),A.YNc(1,hl,4,9,"ng-template",null,13,A.W1O),A.qZA()}if(2&i){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 Cl(i,U){if(1&i&&A._UZ(0,"rtl-transactions-report-table",15),2&i){const t=A.oxw();A.Q6J("dataList",t.transactionsNonZeroReportData)("dataRange",t.reportPeriod)("filterValue",t.transactionFilterValue)}}let Ql=(()=>{class i{constructor(t,B,k){this.logger=t,this.commonService=B,this.store=k,this.scrollRanges=o.op,this.reportPeriod=o.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=o.cu,this.unSubs=[new c.x,new c.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===o.cu.XS||this.screenSize===o.cu.SM),this.store.select(l.PP).pipe((0,r.R)(this.unSubs[0]),(0,a.M)(this.store.select(l.gc))).subscribe(([t,B])=>{this.payments=t.payments,this.invoices=B.listInvoices.invoices,this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData()}),this.commonService.containerSizeUpdated.pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{switch(this.screenSize){case o.cu.MD:this.screenPaddingX=t.width/10;break;case o.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===o.op[1]?t.series+"/"+this.startDate.getFullYear():t.series.toString().padStart(2,"0")+"/"+o.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(t,B){const k=Math.round(t.getTime()/1e3),FA=Math.round(B.getTime()/1e3),pt=[];this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const Ye=this.payments.filter(Ie=>"complete"===Ie.status&&Ie.created_at>=k&&Ie.created_at"paid"===Ie.status&&Ie.paid_at>=k&&Ie.paid_at{const fn=new Date(1e3*Ie.created_at).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+Ie.msatoshi_sent,pt[fn].series[0].value=pt[fn].series[0].value+Ie.msatoshi_sent/1e3,pt[fn].series[0].extra.total=pt[fn].series[0].extra.total+1,this.transactionsReportSummary}),vn.map(Ie=>{const fn=new Date(1e3*+Ie.paid_at).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+Ie.msatoshi_received,pt[fn].series[1].value=pt[fn].series[1].value+Ie.msatoshi_received/1e3,pt[fn].series[1].extra.total=pt[fn].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let Ie=0;Ie{const fn=Math.floor((+Ie.created_at-k)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+Ie.msatoshi_sent,pt[fn].series[0].value=pt[fn].series[0].value+Ie.msatoshi_sent/1e3,pt[fn].series[0].extra.total=pt[fn].series[0].extra.total+1,this.transactionsReportSummary}),vn.map(Ie=>{const fn=Math.floor((+Ie.paid_at-k)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+Ie.msatoshi_received,pt[fn].series[1].value=pt[fn].series[1].value+Ie.msatoshi_received/1e3,pt[fn].series[1].extra.total=pt[fn].series[1].extra.total+1,this.transactionsReportSummary})}return pt}prepareTableData(){return this.transactionsReportData.reduce((t,B)=>B.series[0].extra.total>0||B.series[1].extra.total>0?t.concat({date:B.date,amount_paid:B.series[0].value,num_payments:B.series[0].extra.total,amount_received:B.series[1].value,num_invoices:B.series[1].extra.total}):t,[])}onSelectionChange(t){const B=t.selDate.getMonth(),k=t.selDate.getFullYear();this.reportPeriod=t.selScrollRange,this.reportPeriod===o.op[1]?(this.startDate=new Date(k,0,1,0,0,0),this.endDate=new Date(k,11,31,23,59,59)):(this.startDate=new Date(k,B,1,0,0,0),this.endDate=new Date(k,B,this.getMonthDays(B,k),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(t,B){return 1===t&&B%4==0?o.gg[t].days+1:o.gg[t].days}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(h.mQ),A.Y36(e.v),A.Y36(u.yh))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-transactions-report"]],hostBindings:function(t,B){1&t&&A.NdJ("mouseup",function(FA){return B.onChartMouseUp(FA)})},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,B){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"rtl-horizontal-scroller",1),A.NdJ("stepChanged",function(FA){return B.onSelectionChange(FA)}),A.qZA(),A.TgZ(2,"div",2),A.YNc(3,fl,3,3,"div",3),A.YNc(4,El,2,0,"div",4),A.TgZ(5,"div",5),A.YNc(6,wl,3,13,"ngx-charts-bar-vertical-2d",6),A.qZA(),A.TgZ(7,"div",5),A.YNc(8,Cl,1,3,"rtl-transactions-report-table",7),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(3),A.Q6J("ngIf",B.transactionsNonZeroReportData.length>0),A.xp6(1),A.Q6J("ngIf",B.transactionsNonZeroReportData.length<=0),A.xp6(2),A.Q6J("ngIf",B.transactionsNonZeroReportData.length>0),A.xp6(2),A.Q6J("ngIf",B.transactionsNonZeroReportData.length>0))},directives:[Qt.xw,Qt.Wh,Qt.yH,Jc.D,ht.O5,Oc.H5,ll.g],pipes:[ht.JJ],styles:[""],data:{animation:[Hc.J]}}),i})();var Ke=St(1643),Ml=St(9442);function dl(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"div",8),A.NdJ("click",function(){const FA=A.CHM(t).$implicit;return A.oxw().activeLink=FA.link}),A._uU(1),A.qZA()}if(2&i){const t=U.$implicit,B=A.oxw();A.s9C("routerLink",t.link),A.Q6J("active",B.activeLink===t.link),A.xp6(1),A.Oqu(t.name)}}let pl=(()=>{class i{constructor(t){this.router=t,this.faSearch=E.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(B=>this.router.url.includes(B.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe((0,r.R)(this.unSubs[0]),(0,_A.h)(B=>B instanceof Ae.Av)).subscribe(B=>{const k=this.links.find(FA=>B.urlAfterRedirects.includes(FA.link));this.activeLink=k?k.link:this.links[0].link})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(Ae.F0))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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,B){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"fa-icon",1),A.TgZ(2,"span",2),A._uU(3,"Graph Lookups"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"mat-card"),A.TgZ(6,"mat-card-content",4),A.TgZ(7,"nav",5),A.YNc(8,dl,2,3,"div",6),A.qZA(),A.TgZ(9,"div",7),A._UZ(10,"router-outlet"),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(1),A.Q6J("icon",B.faSearch),A.xp6(7),A.Q6J("ngForOf",B.links))},directives:[Qt.xw,Qt.Wh,f.BN,w.a8,w.dn,yA.BU,ht.sg,Qt.yH,Ae.lC,yA.Nj,Ae.rH],styles:[""]}),i})();var Il=St(4641),Dl=St(8493);function vl(i,U){if(1&i&&(A.TgZ(0,"span"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.offerError)}}function ml(i,U){if(1&i&&(A.TgZ(0,"div",21),A._UZ(1,"fa-icon",22),A.YNc(2,vl,2,1,"span",23),A.qZA()),2&i){const t=A.oxw();A.xp6(1),A.Q6J("icon",t.faExclamationTriangle),A.xp6(1),A.Q6J("ngIf",""!==t.offerError)}}let yl=(()=>{class i{constructor(t,B,k,FA,pt,Ye){this.dialogRef=t,this.data=B,this.store=k,this.decimalPipe=FA,this.commonService=pt,this.actions=Ye,this.faExclamationTriangle=E.eHv,this.selNode={},this.description="",this.vendor="",this.offerValueHint="",this.information={},this.pageSize=o.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(l.Jo).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(l.W3).pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.information=t,this.vendor=this.information.alias}),this.actions.pipe((0,r.R)(this.unSubs[2]),(0,_A.h)(t=>t.type===o.sW.UPDATE_API_CALL_STATUS_CL)).subscribe(t=>{t.type===o.sW.UPDATE_API_CALL_STATUS_CL&&"SaveNewOffer"===t.payload.action&&(t.payload.status===o.Bn.ERROR&&(this.offerError=t.payload.message),t.payload.status===o.Bn.COMPLETED&&this.dialogRef.close())})}onAddOffer(){this.offerError="",this.store.dispatch((0,WA.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,o.NT.SATS,o.NT.OTHER,this.selNode.currencyUnits[2],this.selNode.fiatConversion).pipe((0,r.R)(this.unSubs[3])).subscribe({next:t=>{this.offerValueHint="= "+t.symbol+this.decimalPipe.transform(t.OTHER,o.Xz.OTHER)+" "+t.unit},error:t=>{this.offerValueHint="Conversion Error: "+t}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return i.\u0275fac=function(t){return new(t||i)(A.Y36(OA.so),A.Y36(OA.WI),A.Y36(u.yh),A.Y36(ht.JJ),A.Y36(e.v),A.Y36(C.eX))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-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,B){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"mat-card-header",2),A.TgZ(3,"div",3),A.TgZ(4,"span",4),A._uU(5,"Create Offer"),A.qZA(),A.qZA(),A.TgZ(6,"button",5),A._uU(7,"X"),A.qZA(),A.qZA(),A.TgZ(8,"mat-card-content",6),A.TgZ(9,"form",7,8),A.TgZ(11,"mat-form-field",9),A.TgZ(12,"input",10),A.NdJ("ngModelChange",function(FA){return B.description=FA}),A.qZA(),A.qZA(),A.TgZ(13,"div",11),A.TgZ(14,"mat-form-field",12),A.TgZ(15,"input",13),A.NdJ("ngModelChange",function(FA){return B.offerValue=FA})("keyup",function(){return B.onOfferValueChange()}),A.qZA(),A.TgZ(16,"span",14),A._uU(17," Sats "),A.qZA(),A.TgZ(18,"mat-hint"),A._uU(19),A.qZA(),A.qZA(),A.TgZ(20,"mat-form-field",15),A.TgZ(21,"input",16),A.NdJ("ngModelChange",function(FA){return B.vendor=FA}),A.qZA(),A.qZA(),A.qZA(),A.YNc(22,ml,3,2,"div",17),A.TgZ(23,"div",18),A.TgZ(24,"button",19),A.NdJ("click",function(){return B.resetData()}),A._uU(25,"Clear Field"),A.qZA(),A.TgZ(26,"button",20),A.NdJ("click",function(){return B.onAddOffer()}),A._uU(27,"Create Offer"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&t&&(A.xp6(6),A.Q6J("mat-dialog-close",!1),A.xp6(6),A.Q6J("ngModel",B.description),A.xp6(3),A.Q6J("ngModel",B.offerValue)("step",100)("min",1),A.xp6(4),A.Oqu(B.offerValueHint),A.xp6(2),A.Q6J("ngModel",B.vendor),A.xp6(1),A.Q6J("ngIf",""!==B.offerError))},directives:[Qt.xw,Qt.yH,w.dk,Qt.Wh,F.lW,OA.ZT,w.dn,zA._Y,zA.JL,zA.F,V.KE,ot.Nt,zA.Fj,It.h,zA.JJ,zA.On,zA.wV,zA.qQ,dt.q,V.R9,V.bx,ht.O5,f.BN],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),i})();var kc=St(1189);function xl(i,U){1&i&&A._UZ(0,"mat-progress-bar",28)}function Fl(i,U){1&i&&(A.TgZ(0,"th",29),A._uU(1," Offer ID "),A.qZA())}const jc=function(i){return{"mr-0":i}};function Yl(i,U){if(1&i&&A._UZ(0,"span",35),2&i){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,jc,t.screenSize===t.screenSizeEnum.XS))}}function Tl(i,U){if(1&i&&A._UZ(0,"span",36),2&i){const t=A.oxw(2);A.Q6J("ngClass",A.VKq(1,jc,t.screenSize===t.screenSizeEnum.XS))}}const Sl=function(i){return{"max-width":i}};function Ul(i,U){if(1&i&&(A.TgZ(0,"td",30),A.TgZ(1,"div",31),A.TgZ(2,"span",32),A.YNc(3,Yl,1,3,"span",33),A.YNc(4,Tl,1,3,"span",34),A._uU(5),A.qZA(),A.qZA(),A.qZA()),2&i){const t=U.$implicit,B=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(4,Sl,B.screenSize===B.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 Pl(i,U){1&i&&(A.TgZ(0,"th",29),A._uU(1," Single Use "),A.qZA())}function zl(i,U){if(1&i&&(A.TgZ(0,"td",30),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.Oqu(t.single_use?"Yes":"No")}}function Rl(i,U){1&i&&(A.TgZ(0,"th",29),A._uU(1," Used "),A.qZA())}function Nl(i,U){if(1&i&&(A.TgZ(0,"td",30),A._uU(1),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.hij(" ",t.used?"Yes":"No"," ")}}function bl(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"th",37),A.TgZ(1,"div",38),A.TgZ(2,"mat-select",39),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",40),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}function Ll(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"mat-option",40),A.NdJ("click",function(){A.CHM(t);const k=A.oxw().$implicit;return A.oxw().onDisableOffer(k)}),A._uU(1,"Disable Offer"),A.qZA()}}function Gl(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"mat-option",40),A.NdJ("click",function(){A.CHM(t);const k=A.oxw().$implicit;return A.oxw().onPrintOffer(k)}),A._uU(1,"Export QR code"),A.qZA()}}const Hl=function(i){return{"px-3":i}};function Jl(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"td",41),A.TgZ(1,"div",42),A.TgZ(2,"mat-select",43),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",40),A.NdJ("click",function(){const FA=A.CHM(t).$implicit;return A.oxw().onOfferClick(FA)}),A._uU(5,"View Info"),A.qZA(),A.YNc(6,Ll,2,0,"mat-option",44),A.YNc(7,Gl,2,0,"mat-option",44),A.qZA(),A.qZA(),A.qZA()}if(2&i){const t=U.$implicit,B=A.oxw();A.Q6J("ngClass",A.VKq(3,Hl,B.screenSize!==B.screenSizeEnum.XS)),A.xp6(6),A.Q6J("ngIf",t.active),A.xp6(1),A.Q6J("ngIf",t.active)}}function Ol(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"No offer available."),A.qZA())}function kl(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting offers..."),A.qZA())}function jl(i,U){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function Zl(i,U){if(1&i&&(A.TgZ(0,"td",45),A.YNc(1,Ol,2,0,"p",46),A.YNc(2,kl,2,0,"p",46),A.YNc(3,jl,2,1,"p",46),A.qZA()),2&i){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 Kl=function(i){return{"display-none":i}};function Wl(i,U){if(1&i&&A._UZ(0,"tr",47),2&i){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,Kl,(null==t.offers?null:t.offers.data)&&(null==t.offers||null==t.offers.data?null:t.offers.data.length)>0))}}function Vl(i,U){1&i&&A._UZ(0,"tr",48)}function Xl(i,U){1&i&&A._UZ(0,"tr",49)}const ql=function(i){return{"overflow-auto error-border":i,"overflow-auto":!0}},_l=function(){return["no_offer"]};function AB(i,U){1&i&&A._UZ(0,"mat-progress-bar",30)}function tB(i,U){1&i&&(A.TgZ(0,"th",31),A._uU(1," Updated At "),A.qZA())}function eB(i,U){if(1&i&&(A.TgZ(0,"td",32),A._uU(1),A.ALo(2,"date"),A.qZA()),2&i){const t=U.$implicit;A.xp6(1),A.Oqu(A.xi3(2,1,t.lastUpdatedAt,"dd/MMM/YYYY HH:mm"))}}function nB(i,U){1&i&&(A.TgZ(0,"th",31),A._uU(1," Title "),A.qZA())}const Zc=function(i){return{"max-width":i}};function rB(i,U){if(1&i&&(A.TgZ(0,"td",32),A.TgZ(1,"div",33),A.TgZ(2,"span",34),A._uU(3),A.qZA(),A.qZA(),A.qZA()),2&i){const t=U.$implicit,B=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(2,Zc,B.screenSize===B.screenSizeEnum.XS?"20rem":"35rem")),A.xp6(2),A.Oqu(t.title)}}function iB(i,U){1&i&&(A.TgZ(0,"th",35),A._uU(1," Amount (Sats) "),A.qZA())}function aB(i,U){if(1&i&&(A.TgZ(0,"td",36),A.TgZ(1,"span",37),A._uU(2),A.ALo(3,"number"),A.qZA(),A.qZA()),2&i){const t=U.$implicit;A.xp6(2),A.Oqu(0===t.amountmSat?"Open":A.lcZ(3,1,t.amountmSat/1e3))}}function oB(i,U){1&i&&(A.TgZ(0,"th",31),A._uU(1," Description "),A.qZA())}function sB(i,U){if(1&i&&(A.TgZ(0,"td",32),A.TgZ(1,"div",33),A.TgZ(2,"span",34),A._uU(3),A.qZA(),A.qZA(),A.qZA()),2&i){const t=U.$implicit,B=A.oxw();A.xp6(1),A.Q6J("ngStyle",A.VKq(2,Zc,B.screenSize===B.screenSizeEnum.XS?"20rem":"35rem")),A.xp6(2),A.Oqu(t.description)}}function cB(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"th",38),A.TgZ(1,"div",39),A.TgZ(2,"mat-select",40),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",41),A.NdJ("click",function(){return A.CHM(t),A.oxw().onDownloadCSV()}),A._uU(5,"Download CSV"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}}const gB=function(i){return{"px-3":i}};function lB(i,U){if(1&i){const t=A.EpF();A.TgZ(0,"td",42),A.TgZ(1,"div",43),A.TgZ(2,"mat-select",44),A._UZ(3,"mat-select-trigger"),A.TgZ(4,"mat-option",41),A.NdJ("click",function(){const FA=A.CHM(t).$implicit;return A.oxw().onOfferBookmarkClick(FA)}),A._uU(5,"View Info"),A.qZA(),A.TgZ(6,"mat-option",41),A.NdJ("click",function(){const FA=A.CHM(t).$implicit;return A.oxw().onDeleteBookmark(FA)}),A._uU(7,"Delete Bookmark"),A.qZA(),A.TgZ(8,"mat-option",41),A.NdJ("click",function(){const FA=A.CHM(t).$implicit;return A.oxw().onRePayOffer(FA)}),A._uU(9,"Pay Again"),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&i){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,gB,t.screenSize!==t.screenSizeEnum.XS))}}function BB(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"No offer bookmarked."),A.qZA())}function uB(i,U){1&i&&(A.TgZ(0,"p"),A._uU(1,"Getting offer bookmarks..."),A.qZA())}function fB(i,U){if(1&i&&(A.TgZ(0,"p"),A._uU(1),A.qZA()),2&i){const t=A.oxw(2);A.xp6(1),A.Oqu(t.errorMessage)}}function EB(i,U){if(1&i&&(A.TgZ(0,"td",45),A.YNc(1,BB,2,0,"p",46),A.YNc(2,uB,2,0,"p",46),A.YNc(3,fB,2,1,"p",46),A.qZA()),2&i){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 hB=function(i){return{"display-none":i}};function wB(i,U){if(1&i&&A._UZ(0,"tr",47),2&i){const t=A.oxw();A.Q6J("ngClass",A.VKq(1,hB,(null==t.offersBookmarks?null:t.offersBookmarks.data)&&(null==t.offersBookmarks||null==t.offersBookmarks.data?null:t.offersBookmarks.data.length)>0))}}function CB(i,U){1&i&&A._UZ(0,"tr",48)}function QB(i,U){1&i&&A._UZ(0,"tr",49)}const MB=function(i){return{"overflow-auto error-border":i,"overflow-auto":!0}},dB=function(){return["no_offer"]},DB=Ae.Bz.forChild([{path:"",component:n,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:wo,canActivate:[Ke.lB]},{path:"onchain",component:cs,canActivate:[Ke.lB],children:[{path:"",pathMatch:"full",redirectTo:"receive/utxos"},{path:"receive/:selTab",component:qs,canActivate:[Ke.lB]},{path:"send/:selTab",component:da,data:{sweepAll:!1},canActivate:[Ke.lB]},{path:"sweep/:selTab",component:da,data:{sweepAll:!0},canActivate:[Ke.lB]}]},{path:"connections",component:fa,canActivate:[Ke.lB],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:l0,canActivate:[Ke.lB],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:P0,canActivate:[Ke.lB]},{path:"pending",component:ic,canActivate:[Ke.lB]}]},{path:"peers",component:Za,data:{sweepAll:!1},canActivate:[Ke.lB]}]},{path:"transactions",component:ls,canActivate:[Ke.lB],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:Sr,canActivate:[Ke.lB]},{path:"invoices",component:nr,canActivate:[Ke.lB]},{path:"offers",component:(()=>{class i{constructor(t,B,k,FA,pt,Ye,vn){this.logger=t,this.store=B,this.commonService=k,this.rtlEffects=FA,this.dataService=pt,this.decimalPipe=Ye,this.datePipe=vn,this.faHistory=E.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=o.IV,this.pageSizeOptions=o.TJ,this.screenSize="",this.screenSizeEnum=o.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=o.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===o.cu.XS?(this.flgSticky=!1,this.displayedColumns=["offer_id","single_use","actions"]):this.screenSize===o.cu.SM||this.screenSize===o.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(l.Jo).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.selNode=t}),this.store.select(l.W3).pipe((0,r.R)(this.unSubs[1])).subscribe(t=>{this.information=t}),this.store.select(l.Y_).pipe((0,r.R)(this.unSubs[2])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===o.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,eA.qR)({payload:{data:{pageSize:this.pageSize,component:yl}}}))}onOfferClick(t){this.store.dispatch((0,eA.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:kc.V}}}))}onDisableOffer(t){this.store.dispatch((0,eA.c1)({payload:{data:{type:o.n_.CONFIRM,alertTitle:"Disable Offer",titleMessage:"Disabling Offer: "+(t.offer_id||t.bolt12),noBtnText:"Cancel",yesBtnText:"Disable"}}})),this.rtlEffects.closeConfirm.pipe((0,r.R)(this.unSubs[3])).subscribe(B=>{B&&this.store.dispatch((0,WA.i9)({payload:{offer_id:t.offer_id}}))})}onPrintOffer(t){this.dataService.decodePayment(t.bolt12,!1).pipe((0,nn.q)(1)).subscribe(B=>{B.offer_id&&!B.amount_msat?(B.amount_msat="0msat",B.amount=0):B.amount=+(B.amount||B.amount_msat.slice(0,-4));const k={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:B.vendor||B.issuer||"",alignment:"center",fontSize:25,color:"#272727",margin:[0,20,0,0]},content:[{svg:'',width:249,height:40,alignment:"center"},{text:B.description?B.description.substring(0,165):"",alignment:"center",fontSize:16,color:"#5C5C5C"},{qr:t.bolt12,eccLevel:"M",fit:"259",alignment:"center",absolutePosition:{x:7,y:195}},{text:(null==B?void 0:B.amount_msat)&&0!==(null==B?void 0:B.amount)?this.decimalPipe.transform(B.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"}};Il.createPdf(k,null,null,Dl.I.vfs).download("Offer-"+(B&&B.description?B.description:t.bolt12))})}applyFilter(){this.offers.filter=this.selFilter.trim().toLowerCase()}loadOffersTable(t){this.offers=new SA.by(t?[...t]:[]),this.offers.sortingDataAccessor=(B,k)=>B[k]&&isNaN(B[k])?B[k].toLocaleLowerCase():B[k]?+B[k]:null,this.offers.sort=this.sort,this.offers.filterPredicate=(B,k)=>(("active"===k||"inactive"===k||"used"===k||"unused"===k||"single"===k||"multiple"===k)&&(k=" "+k),((B.active?" active":" inactive")+(B.used?" used":" unused")+(B.single_use?" single":" multiple")+JSON.stringify(B).toLowerCase()).includes(k)),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 i.\u0275fac=function(t){return new(t||i)(A.Y36(h.mQ),A.Y36(u.yh),A.Y36(e.v),A.Y36(at.V),A.Y36(KA.D),A.Y36(ht.JJ),A.Y36(ht.uU))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-offers-table"]],viewQuery:function(t,B){if(1&t&&(A.Gf(lt.YE,5),A.Gf(ft.NW,5)),2&t){let k;A.iGM(k=A.CRH())&&(B.sort=k.first),A.iGM(k=A.CRH())&&(B.paginator=k.first)}},features:[A._Bn([{provide:ft.ye,useValue:(0,o.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,B){1&t&&(A.TgZ(0,"div",0),A.TgZ(1,"div",1),A.TgZ(2,"button",2),A.NdJ("click",function(){return B.openCreateOfferModal()}),A._uU(3,"Create Offer"),A.qZA(),A.qZA(),A.TgZ(4,"div",3),A.TgZ(5,"div",4),A.TgZ(6,"div",5),A._UZ(7,"fa-icon",6),A.TgZ(8,"span",7),A._uU(9,"Offers History"),A.qZA(),A.qZA(),A.TgZ(10,"mat-form-field",8),A.TgZ(11,"input",9),A.NdJ("keyup",function(){return B.applyFilter()})("ngModelChange",function(FA){return B.selFilter=FA}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(12,"div",10),A.YNc(13,xl,1,0,"mat-progress-bar",11),A.TgZ(14,"table",12,13),A.ynx(16,14),A.YNc(17,Fl,2,0,"th",15),A.YNc(18,Ul,6,6,"td",16),A.BQk(),A.ynx(19,17),A.YNc(20,Pl,2,0,"th",15),A.YNc(21,zl,2,1,"td",16),A.BQk(),A.ynx(22,18),A.YNc(23,Rl,2,0,"th",15),A.YNc(24,Nl,2,1,"td",16),A.BQk(),A.ynx(25,19),A.YNc(26,bl,6,0,"th",20),A.YNc(27,Jl,8,5,"td",21),A.BQk(),A.ynx(28,22),A.YNc(29,Zl,4,3,"td",23),A.BQk(),A.YNc(30,Wl,1,3,"tr",24),A.YNc(31,Vl,1,0,"tr",25),A.YNc(32,Xl,1,0,"tr",26),A.qZA(),A.qZA(),A._UZ(33,"mat-paginator",27),A.qZA(),A.qZA()),2&t&&(A.xp6(7),A.Q6J("icon",B.faHistory),A.xp6(4),A.Q6J("ngModel",B.selFilter),A.xp6(2),A.Q6J("ngIf",(null==B.apiCallStatus?null:B.apiCallStatus.status)===B.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",B.offers)("ngClass",A.VKq(12,ql,""!==B.errorMessage)),A.xp6(16),A.Q6J("matFooterRowDef",A.DdM(14,_l)),A.xp6(1),A.Q6J("matHeaderRowDef",B.displayedColumns)("matHeaderRowDefSticky",B.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",B.displayedColumns),A.xp6(1),A.Q6J("pageSize",B.pageSize)("pageSizeOptions",B.pageSizeOptions)("showFirstLastButtons",B.screenSize!==B.screenSizeEnum.XS))},directives:[Qt.xw,Qt.yH,Qt.Wh,F.lW,f.BN,V.KE,ot.Nt,zA.Fj,zA.JJ,zA.On,gA.$V,ht.O5,SA.BZ,lt.YE,ht.mk,d.oO,SA.w1,SA.fO,SA.Dz,SA.mD,SA.Ke,SA.as,SA.nj,ft.NW,Y.pW,SA.ge,lt.nU,SA.ev,ht.PC,d.Zl,aA.gM,vt.gD,vt.$L,G.ey,SA.yh,SA.Q2,SA.XQ,SA.Gk],styles:[".mat-column-offer_id[_ngcontent-%COMP%]{flex:0 0 65%;width:65%}.mat-column-offer_id[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),i})(),canActivate:[Ke.lB]},{path:"offrBookmarks",component:(()=>{class i{constructor(t,B,k,FA){this.logger=t,this.store=B,this.commonService=k,this.rtlEffects=FA,this.faHistory=E.qO$,this.displayedColumns=[],this.offersBookmarksJSONArr=[],this.flgSticky=!1,this.pageSize=o.IV,this.pageSizeOptions=o.TJ,this.screenSize="",this.screenSizeEnum=o.cu,this.selFilter="",this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=o.Bn,this.unSubs=[new c.x,new c.x,new c.x,new c.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.cu.XS||this.screenSize===o.cu.SM?(this.flgSticky=!1,this.displayedColumns=["lastUpdatedAt","title","amountmSat","actions"]):this.screenSize===o.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(l.EQ).pipe((0,r.R)(this.unSubs[0])).subscribe(t=>{this.errorMessage="",this.apiCallStatus=t.apiCallStatus,this.apiCallStatus.status===o.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,eA.qR)({payload:{data:{offer:{bolt12:t.bolt12},newlyAdded:!1,component:kc.V}}}))}onDeleteBookmark(t){this.store.dispatch((0,eA.c1)({payload:{data:{type:o.n_.CONFIRM,alertTitle:"Delete Bookmark",titleMessage:"Deleting Bookmark: "+(t.title||t.description),noBtnText:"Cancel",yesBtnText:"Delete"}}})),this.rtlEffects.closeConfirm.pipe((0,r.R)(this.unSubs[1])).subscribe(B=>{B&&this.store.dispatch((0,WA._9)({payload:{bolt12:t.bolt12}}))})}onRePayOffer(t){this.store.dispatch((0,eA.qR)({payload:{data:{paymentType:o.IX.OFFER,bolt12:t.bolt12,offerTitle:t.title,component:Te}}}))}applyFilter(){this.offersBookmarks.filter=this.selFilter.trim().toLowerCase()}loadOffersTable(t){this.offersBookmarks=new SA.by(t?[...t]:[]),this.offersBookmarks.sortingDataAccessor=(B,k)=>B[k]&&isNaN(B[k])?B[k].toLocaleLowerCase():B[k]?+B[k]:null,this.offersBookmarks.sort=this.sort,this.offersBookmarks.filterPredicate=(B,k)=>JSON.stringify(B).toLowerCase().includes(k),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 i.\u0275fac=function(t){return new(t||i)(A.Y36(h.mQ),A.Y36(u.yh),A.Y36(e.v),A.Y36(at.V))},i.\u0275cmp=A.Xpm({type:i,selectors:[["rtl-cl-offer-bookmarks-table"]],viewQuery:function(t,B){if(1&t&&(A.Gf(lt.YE,5),A.Gf(ft.NW,5)),2&t){let k;A.iGM(k=A.CRH())&&(B.sort=k.first),A.iGM(k=A.CRH())&&(B.paginator=k.first)}},features:[A._Bn([{provide:ft.ye,useValue:(0,o.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,B){1&t&&(A.TgZ(0,"div",0),A._UZ(1,"div",1),A.TgZ(2,"div",2),A.TgZ(3,"div",3),A.TgZ(4,"div",4),A._UZ(5,"fa-icon",5),A.TgZ(6,"span",6),A._uU(7,"Offer Bookmarks"),A.qZA(),A.qZA(),A.TgZ(8,"mat-form-field",7),A.TgZ(9,"input",8),A.NdJ("keyup",function(){return B.applyFilter()})("ngModelChange",function(FA){return B.selFilter=FA}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(10,"div",9),A.YNc(11,AB,1,0,"mat-progress-bar",10),A.TgZ(12,"table",11,12),A.ynx(14,13),A.YNc(15,tB,2,0,"th",14),A.YNc(16,eB,3,4,"td",15),A.BQk(),A.ynx(17,16),A.YNc(18,nB,2,0,"th",14),A.YNc(19,rB,4,4,"td",15),A.BQk(),A.ynx(20,17),A.YNc(21,iB,2,0,"th",18),A.YNc(22,aB,4,3,"td",19),A.BQk(),A.ynx(23,20),A.YNc(24,oB,2,0,"th",14),A.YNc(25,sB,4,4,"td",15),A.BQk(),A.ynx(26,21),A.YNc(27,cB,6,0,"th",22),A.YNc(28,lB,10,3,"td",23),A.BQk(),A.ynx(29,24),A.YNc(30,EB,4,3,"td",25),A.BQk(),A.YNc(31,wB,1,3,"tr",26),A.YNc(32,CB,1,0,"tr",27),A.YNc(33,QB,1,0,"tr",28),A.qZA(),A.qZA(),A._UZ(34,"mat-paginator",29),A.qZA(),A.qZA()),2&t&&(A.xp6(5),A.Q6J("icon",B.faHistory),A.xp6(4),A.Q6J("ngModel",B.selFilter),A.xp6(2),A.Q6J("ngIf",(null==B.apiCallStatus?null:B.apiCallStatus.status)===B.apiCallStatusEnum.INITIATED),A.xp6(1),A.Q6J("dataSource",B.offersBookmarks)("ngClass",A.VKq(12,MB,""!==B.errorMessage)),A.xp6(19),A.Q6J("matFooterRowDef",A.DdM(14,dB)),A.xp6(1),A.Q6J("matHeaderRowDef",B.displayedColumns)("matHeaderRowDefSticky",B.flgSticky),A.xp6(1),A.Q6J("matRowDefColumns",B.displayedColumns),A.xp6(1),A.Q6J("pageSize",B.pageSize)("pageSizeOptions",B.pageSizeOptions)("showFirstLastButtons",B.screenSize!==B.screenSizeEnum.XS))},directives:[Qt.xw,Qt.yH,Qt.Wh,f.BN,V.KE,ot.Nt,zA.Fj,zA.JJ,zA.On,gA.$V,ht.O5,SA.BZ,lt.YE,ht.mk,d.oO,SA.w1,SA.fO,SA.Dz,SA.mD,SA.Ke,SA.as,SA.nj,ft.NW,Y.pW,SA.ge,lt.nU,SA.ev,ht.PC,d.Zl,vt.gD,vt.$L,G.ey,SA.yh,SA.Q2,SA.XQ,SA.Gk],pipes:[ht.uU,ht.JJ],styles:[".mat-column-title[_ngcontent-%COMP%], .mat-column-description[_ngcontent-%COMP%]{flex:0 0 30%;width:30%}.mat-column-title[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%], .mat-column-description[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),i})(),canActivate:[Ke.lB]}]},{path:"messages",component:Ws,canActivate:[Ke.lB],children:[{path:"",pathMatch:"full",redirectTo:"sign"},{path:"sign",component:Ge,canActivate:[Ke.lB]},{path:"verify",component:_e,canActivate:[Ke.lB]}]},{path:"routing",component:Bs,canActivate:[Ke.lB],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:br,canActivate:[Ke.lB]},{path:"failedtransactions",component:og,canActivate:[Ke.lB]},{path:"routingpeers",component:Al,canActivate:[Ke.lB]}]},{path:"reports",component:el,canActivate:[Ke.lB],children:[{path:"",pathMatch:"full",redirectTo:"routingfees"},{path:"routingfees",component:gl,canActivate:[Ke.lB]},{path:"transactions",component:Ql,canActivate:[Ke.lB]}]},{path:"graph",component:pl,canActivate:[Ke.lB],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:wi,canActivate:[Ke.lB]},{path:"queryroutes",component:he,canActivate:[Ke.lB]}]},{path:"rates",component:Zs,canActivate:[Ke.lB]},{path:"**",component:Ml.w},{path:"network",redirectTo:"rates"},{path:"wallet",redirectTo:"home"},{path:"backup",redirectTo:"home"}]}]);var vB=St(8750);let mB=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=A.oAB({type:i,bootstrap:[n]}),i.\u0275inj=A.cJS({providers:[Ke.lB],imports:[[ht.ez,vB.m,DB]]}),i})()},4641:function(ci,Fr,St){var ht=St(7757);"undefined"!=typeof self&&self,ci.exports=function(){var Ae={9282:function(Y,I,n){"use strict";var c=n(4155);function r($){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(EA){return typeof EA}:function(EA){return EA&&"function"==typeof Symbol&&EA.constructor===Symbol&&EA!==Symbol.prototype?"symbol":typeof EA})($)}var D,v,E=n(2136).codes,o=E.ERR_AMBIGUOUS_ARGUMENT,l=E.ERR_INVALID_ARG_TYPE,h=E.ERR_INVALID_ARG_VALUE,u=E.ERR_INVALID_RETURN_VALUE,C=E.ERR_MISSING_ARGS,e=n(5961),g=n(9539).inspect,w=n(9539).types,Q=w.isPromise,d=w.isRegExp,F=Object.assign?Object.assign:n(8091).assign,m=Object.is?Object.is:n(609);function R(){var $=n(9158);D=$.isDeepEqual,v=$.isDeepStrictEqual}var AA=!1,gA=Y.exports=vA,MA={};function cA($){throw $.message instanceof Error?$.message:new e($)}function BA($,W,EA,DA){if(!EA){var rA=!1;if(0===W)rA=!0,DA="No value argument passed to `assert.ok()`";else if(DA instanceof Error)throw DA;var hA=new e({actual:EA,expected:!0,message:DA,operator:"==",stackStartFn:$});throw hA.generatedMessage=rA,hA}}function vA(){for(var $=arguments.length,W=new Array($),EA=0;EA<$;EA++)W[EA]=arguments[EA];BA.apply(void 0,[vA,W.length].concat(W))}gA.fail=function lA($,W,EA,DA,rA){var HA,hA=arguments.length;if(0===hA?HA="Failed":1===hA?(EA=$,$=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===hA&&(DA="!=")),EA instanceof Error)throw EA;var st={actual:$,expected:W,operator:void 0===DA?"fail":DA,stackStartFn:rA||lA};void 0!==EA&&(st.message=EA);var yA=new e(st);throw HA&&(yA.message=HA,yA.generatedMessage=!0),yA},gA.AssertionError=e,gA.ok=vA,gA.equal=function $(W,EA,DA){if(arguments.length<2)throw new C("actual","expected");W!=EA&&cA({actual:W,expected:EA,message:DA,operator:"==",stackStartFn:$})},gA.notEqual=function $(W,EA,DA){if(arguments.length<2)throw new C("actual","expected");W==EA&&cA({actual:W,expected:EA,message:DA,operator:"!=",stackStartFn:$})},gA.deepEqual=function $(W,EA,DA){if(arguments.length<2)throw new C("actual","expected");void 0===D&&R(),D(W,EA)||cA({actual:W,expected:EA,message:DA,operator:"deepEqual",stackStartFn:$})},gA.notDeepEqual=function $(W,EA,DA){if(arguments.length<2)throw new C("actual","expected");void 0===D&&R(),D(W,EA)&&cA({actual:W,expected:EA,message:DA,operator:"notDeepEqual",stackStartFn:$})},gA.deepStrictEqual=function $(W,EA,DA){if(arguments.length<2)throw new C("actual","expected");void 0===D&&R(),v(W,EA)||cA({actual:W,expected:EA,message:DA,operator:"deepStrictEqual",stackStartFn:$})},gA.notDeepStrictEqual=function xA($,W,EA){if(arguments.length<2)throw new C("actual","expected");void 0===D&&R(),v($,W)&&cA({actual:$,expected:W,message:EA,operator:"notDeepStrictEqual",stackStartFn:xA})},gA.strictEqual=function $(W,EA,DA){if(arguments.length<2)throw new C("actual","expected");m(W,EA)||cA({actual:W,expected:EA,message:DA,operator:"strictEqual",stackStartFn:$})},gA.notStrictEqual=function $(W,EA,DA){if(arguments.length<2)throw new C("actual","expected");m(W,EA)&&cA({actual:W,expected:EA,message:DA,operator:"notStrictEqual",stackStartFn:$})};var _=function $(W,EA,DA){var rA=this;(function($,W){if(!($ instanceof W))throw new TypeError("Cannot call a class as a function")})(this,$),EA.forEach(function(hA){hA in W&&(rA[hA]=void 0!==DA&&"string"==typeof DA[hA]&&d(W[hA])&&W[hA].test(DA[hA])?DA[hA]:W[hA])})};function QA($,W,EA,DA,rA,hA){if(!(EA in $)||!v($[EA],W[EA])){if(!DA){var HA=new _($,rA),nt=new _(W,rA,$),st=new e({actual:HA,expected:nt,operator:"deepStrictEqual",stackStartFn:hA});throw st.actual=$,st.expected=W,st.operator=hA.name,st}cA({actual:$,expected:W,message:DA,operator:hA.name,stackStartFn:hA})}}function uA($,W,EA,DA){if("function"!=typeof W){if(d(W))return W.test($);if(2===arguments.length)throw new l("expected",["Function","RegExp"],W);if("object"!==r($)||null===$){var rA=new e({actual:$,expected:W,message:EA,operator:"deepStrictEqual",stackStartFn:DA});throw rA.operator=DA.name,rA}var hA=Object.keys(W);if(W instanceof Error)hA.push("name","message");else if(0===hA.length)throw new h("error",W,"may not be an empty object");return void 0===D&&R(),hA.forEach(function(HA){"string"==typeof $[HA]&&d(W[HA])&&W[HA].test($[HA])||QA($,W,HA,EA,hA,DA)}),!0}return void 0!==W.prototype&&$ instanceof W||!Error.isPrototypeOf(W)&&!0===W.call({},$)}function CA($){if("function"!=typeof $)throw new l("fn","Function",$);try{$()}catch(W){return W}return MA}function TA($){return Q($)||null!==$&&"object"===r($)&&"function"==typeof $.then&&"function"==typeof $.catch}function GA($){return Promise.resolve().then(function(){var W;if("function"==typeof $){if(!TA(W=$()))throw new u("instance of Promise","promiseFn",W)}else{if(!TA($))throw new l("promiseFn",["Function","Promise"],$);W=$}return Promise.resolve().then(function(){return W}).then(function(){return MA}).catch(function(EA){return EA})})}function VA($,W,EA,DA){if("string"==typeof EA){if(4===arguments.length)throw new l("error",["Object","Error","Function","RegExp"],EA);if("object"===r(W)&&null!==W){if(W.message===EA)throw new o("error/message",'The error message "'.concat(W.message,'" is identical to the message.'))}else if(W===EA)throw new o("error/message",'The error "'.concat(W,'" is identical to the message.'));DA=EA,EA=void 0}else if(null!=EA&&"object"!==r(EA)&&"function"!=typeof EA)throw new l("error",["Object","Error","Function","RegExp"],EA);if(W===MA){var rA="";EA&&EA.name&&(rA+=" (".concat(EA.name,")")),rA+=DA?": ".concat(DA):".",cA({actual:void 0,expected:EA,operator:$.name,message:"Missing expected ".concat("rejects"===$.name?"rejection":"exception").concat(rA),stackStartFn:$})}if(EA&&!uA(W,EA,DA,$))throw W}function q($,W,EA,DA){if(W!==MA){if("string"==typeof EA&&(DA=EA,EA=void 0),!EA||uA(W,EA)){var rA=DA?": ".concat(DA):".";cA({actual:W,expected:EA,operator:$.name,message:"Got unwanted ".concat("doesNotReject"===$.name?"rejection":"exception").concat(rA,"\n")+'Actual message: "'.concat(W&&W.message,'"'),stackStartFn:$})}throw W}}function J(){for(var $=arguments.length,W=new Array($),EA=0;EA<$;EA++)W[EA]=arguments[EA];BA.apply(void 0,[J,W.length].concat(W))}gA.throws=function $(W){for(var EA=arguments.length,DA=new Array(EA>1?EA-1:0),rA=1;rA1?EA-1:0),rA=1;rA1?EA-1:0),rA=1;rA1?EA-1:0),rA=1;rAlA.length)&&(vA=lA.length),lA.substring(vA-BA.length,vA)===BA}var T="",x="",R="",N="",V={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(lA){var BA=Object.keys(lA),vA=Object.create(Object.getPrototypeOf(lA));return BA.forEach(function(xA){vA[xA]=lA[xA]}),Object.defineProperty(vA,"message",{value:lA.message}),vA}function gA(lA){return m(lA,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function MA(lA,BA,vA){var xA="",_="",QA=0,uA="",CA=!1,TA=gA(lA),GA=TA.split("\n"),VA=gA(BA).split("\n"),q=0,J="";if("strictEqual"===vA&&"object"===d(lA)&&"object"===d(BA)&&null!==lA&&null!==BA&&(vA="strictEqualObject"),1===GA.length&&1===VA.length&&GA[0]!==VA[0]){var $=GA[0].length+VA[0].length;if($<=10){if(!("object"===d(lA)&&null!==lA||"object"===d(BA)&&null!==BA||0===lA&&0===BA))return"".concat(V[vA],"\n\n")+"".concat(GA[0]," !== ").concat(VA[0],"\n")}else if("strictEqualObject"!==vA&&$<(c.stderr&&c.stderr.isTTY?c.stderr.columns:80)){for(;GA[0][q]===VA[0][q];)q++;q>2&&(J="\n ".concat(function(lA,BA){if(BA=Math.floor(BA),0==lA.length||0==BA)return"";var vA=lA.length*BA;for(BA=Math.floor(Math.log(BA)/Math.log(2));BA;)lA+=lA,BA--;return lA+lA.substring(0,vA-lA.length)}(" ",q),"^"),q=0)}}for(var EA=GA[GA.length-1],DA=VA[VA.length-1];EA===DA&&(q++<2?uA="\n ".concat(EA).concat(uA):xA=EA,GA.pop(),VA.pop(),0!==GA.length&&0!==VA.length);)EA=GA[GA.length-1],DA=VA[VA.length-1];var rA=Math.max(GA.length,VA.length);if(0===rA){var hA=TA.split("\n");if(hA.length>30)for(hA[26]="".concat(T,"...").concat(N);hA.length>27;)hA.pop();return"".concat(V.notIdentical,"\n\n").concat(hA.join("\n"),"\n")}q>3&&(uA="\n".concat(T,"...").concat(N).concat(uA),CA=!0),""!==xA&&(uA="\n ".concat(xA).concat(uA),xA="");var HA=0,nt=V[vA]+"\n".concat(x,"+ actual").concat(N," ").concat(R,"- expected").concat(N),st=" ".concat(T,"...").concat(N," Lines skipped");for(q=0;q1&&q>2&&(yA>4?(_+="\n".concat(T,"...").concat(N),CA=!0):yA>3&&(_+="\n ".concat(VA[q-2]),HA++),_+="\n ".concat(VA[q-1]),HA++),QA=q,xA+="\n".concat(R,"-").concat(N," ").concat(VA[q]),HA++;else if(VA.length1&&q>2&&(yA>4?(_+="\n".concat(T,"...").concat(N),CA=!0):yA>3&&(_+="\n ".concat(GA[q-2]),HA++),_+="\n ".concat(GA[q-1]),HA++),QA=q,_+="\n".concat(x,"+").concat(N," ").concat(GA[q]),HA++;else{var _A=VA[q],ft=GA[q],lt=ft!==_A&&(!v(ft,",")||ft.slice(0,-1)!==_A);lt&&v(_A,",")&&_A.slice(0,-1)===ft&&(lt=!1,ft+=","),lt?(yA>1&&q>2&&(yA>4?(_+="\n".concat(T,"...").concat(N),CA=!0):yA>3&&(_+="\n ".concat(GA[q-2]),HA++),_+="\n ".concat(GA[q-1]),HA++),QA=q,_+="\n".concat(x,"+").concat(N," ").concat(ft),xA+="\n".concat(R,"-").concat(N," ").concat(_A),HA+=2):(_+=xA,xA="",(1===yA||0===q)&&(_+="\n ".concat(ft),HA++))}if(HA>20&&q30)for(q[26]="".concat(T,"...").concat(N);q.length>27;)q.pop();xA=l(this,1===q.length?Q(BA).call(this,"".concat(VA," ").concat(q[0])):Q(BA).call(this,"".concat(VA,"\n\n").concat(q.join("\n"),"\n")))}else{var J=gA(CA),$="",W=V[QA];"notDeepEqual"===QA||"notEqual"===QA?(J="".concat(V[QA],"\n\n").concat(J)).length>1024&&(J="".concat(J.slice(0,1021),"...")):($="".concat(gA(TA)),J.length>512&&(J="".concat(J.slice(0,509),"...")),$.length>512&&($="".concat($.slice(0,509),"...")),"deepEqual"===QA||"equal"===QA?J="".concat(W,"\n\n").concat(J,"\n\nshould equal\n\n"):$=" ".concat(QA," ").concat($)),xA=l(this,Q(BA).call(this,"".concat(J).concat($)))}return Error.stackTraceLimit=GA,xA.generatedMessage=!_,Object.defineProperty(h(xA),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),xA.code="ERR_ASSERTION",xA.actual=CA,xA.expected=TA,xA.operator=QA,Error.captureStackTrace&&Error.captureStackTrace(h(xA),uA),xA.name="AssertionError",l(xA)}return function(lA,BA){if("function"!=typeof BA&&null!==BA)throw new TypeError("Super expression must either be null or a function");lA.prototype=Object.create(BA&&BA.prototype,{constructor:{value:lA,writable:!0,configurable:!0}}),BA&&w(lA,BA)}(BA,lA),function(lA,BA,vA){BA&&E(lA.prototype,BA),vA&&E(lA,vA)}(BA,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:m.custom,value:function(xA,_){return m(this,function(lA){for(var BA=1;BA2?"one of ".concat(F," ").concat(d.slice(0,m-1).join(", "),", or ")+d[m-1]:2===m?"one of ".concat(F," ").concat(d[0]," or ").concat(d[1]):"of ".concat(F," ").concat(d[0])}return"of ".concat(F," ").concat(String(d))}e("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),e("ERR_INVALID_ARG_TYPE",function(d,F,m){var p,D;if(void 0===u&&(u=n(9282)),u("string"==typeof d,"'name' must be a string"),"string"==typeof F&&function(d,F,m){return d.substr(!m||m<0?0:+m,F.length)===F}(F,"not ")?(p="must not be",F=F.replace(/^not /,"")):p="must be",function(d,F,m){return(void 0===m||m>d.length)&&(m=d.length),d.substring(m-F.length,m)===F}(d," argument"))D="The ".concat(d," ").concat(p," ").concat(f(F,"type"));else{var v=function(d,F,m){return"number"!=typeof m&&(m=0),!(m+F.length>d.length)&&-1!==d.indexOf(F,m)}(d,".")?"property":"argument";D='The "'.concat(d,'" ').concat(v," ").concat(p," ").concat(f(F,"type"))}return D+". Received type ".concat(c(m))},TypeError),e("ERR_INVALID_ARG_VALUE",function(d,F){var m=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===C&&(C=n(9539));var p=C.inspect(F);return p.length>128&&(p="".concat(p.slice(0,128),"...")),"The argument '".concat(d,"' ").concat(m,". Received ").concat(p)},TypeError,RangeError),e("ERR_INVALID_RETURN_VALUE",function(d,F,m){var p;return p=m&&m.constructor&&m.constructor.name?"instance of ".concat(m.constructor.name):"type ".concat(c(m)),"Expected ".concat(d,' to be returned from the "').concat(F,'"')+" function but got ".concat(p,".")},TypeError),e("ERR_MISSING_ARGS",function(){for(var d=arguments.length,F=new Array(d),m=0;m0,"At least one arg needs to be specified");var p="The ",D=F.length;switch(F=F.map(function(v){return'"'.concat(v,'"')}),D){case 1:p+="".concat(F[0]," argument");break;case 2:p+="".concat(F[0]," and ").concat(F[1]," arguments");break;default:p+=F.slice(0,D-1).join(", "),p+=", and ".concat(F[D-1]," arguments")}return"".concat(p," must be specified")},TypeError),Y.exports.codes=h},9158:function(Y,I,n){"use strict";function c(OA,WA){return function(OA){if(Array.isArray(OA))return OA}(OA)||function(OA,WA){var zA=[],ot=!0,It=!1,dt=void 0;try{for(var Pt,vt=OA[Symbol.iterator]();!(ot=(Pt=vt.next()).done)&&(zA.push(Pt.value),!WA||zA.length!==WA);ot=!0);}catch(G){It=!0,dt=G}finally{try{!ot&&null!=vt.return&&vt.return()}finally{if(It)throw dt}}return zA}(OA,WA)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function E(OA){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(zA){return typeof zA}:function(zA){return zA&&"function"==typeof Symbol&&zA.constructor===Symbol&&zA!==Symbol.prototype?"symbol":typeof zA})(OA)}var o=void 0!==/a/g.flags,l=function(WA){var zA=[];return WA.forEach(function(ot){return zA.push(ot)}),zA},h=function(WA){var zA=[];return WA.forEach(function(ot,It){return zA.push([It,ot])}),zA},u=Object.is?Object.is:n(609),C=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},e=Number.isNaN?Number.isNaN:n(360);function f(OA){return OA.call.bind(OA)}var g=f(Object.prototype.hasOwnProperty),w=f(Object.prototype.propertyIsEnumerable),Q=f(Object.prototype.toString),d=n(9539).types,F=d.isAnyArrayBuffer,m=d.isArrayBufferView,p=d.isDate,D=d.isMap,v=d.isRegExp,P=d.isSet,T=d.isNativeError,x=d.isBoxedPrimitive,R=d.isNumberObject,N=d.isStringObject,V=d.isBooleanObject,aA=d.isBigIntObject,AA=d.isSymbolObject,gA=d.isFloat32Array,MA=d.isFloat64Array;function cA(OA){if(0===OA.length||OA.length>10)return!0;for(var WA=0;WA57)return!0}return 10===OA.length&&OA>=Math.pow(2,32)}function lA(OA){return Object.keys(OA).filter(cA).concat(C(OA).filter(Object.prototype.propertyIsEnumerable.bind(OA)))}function BA(OA,WA){if(OA===WA)return 0;for(var zA=OA.length,ot=WA.length,It=0,dt=Math.min(zA,ot);It=h.length?{done:!0}:{done:!1,value:h[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 a(h,u){(null==u||u>h.length)&&(u=h.length);for(var C=0,e=new Array(u);Cthis.buffer.length)return this.flush()},f.flush=function(){if(this.bufferOffset>0)return this.push(c.from(this.buffer.slice(0,this.bufferOffset))),this.bufferOffset=0},f.writeBuffer=function(w){return this.flush(),this.push(w),this.pos+=w.length},f.writeString=function(w,Q){switch(void 0===Q&&(Q="ascii"),Q){case"utf16le":case"ucs2":case"utf8":case"ascii":return this.writeBuffer(c.from(w,Q));case"utf16be":for(var d=c.from(w,"utf16le"),F=0,m=d.length-1;F>>16&255,this.buffer[this.bufferOffset++]=w>>>8&255,this.buffer[this.bufferOffset++]=255&w,this.pos+=3},f.writeUInt24LE=function(w){return this.ensure(3),this.buffer[this.bufferOffset++]=255&w,this.buffer[this.bufferOffset++]=w>>>8&255,this.buffer[this.bufferOffset++]=w>>>16&255,this.pos+=3},f.writeInt24BE=function(w){return this.writeUInt24BE(w>=0?w:w+16777215+1)},f.writeInt24LE=function(w){return this.writeUInt24LE(w>=0?w:w+16777215+1)},f.fill=function(w,Q){if(Q=this.length)){if(null==this.items[w]){var Q=this.stream.pos;this.stream.pos=this.base+this.type.size(null,this.ctx)*w,this.items[w]=this.type.decode(this.stream,this.ctx),this.stream.pos=Q}return this.items[w]}},f.toArray=function(){for(var w=[],Q=0,d=this.length;Q>1),(f=o.call(this,"Int"+u,C)||this)._point=1<u)throw new RangeError('The value "'+G+'" is invalid for option "size"');var O=new Uint8Array(G);return Object.setPrototypeOf(O,f.prototype),O}function f(G,O,L){if("number"==typeof G){if("string"==typeof O)throw new TypeError('The "string" argument must be of type string. Received type number');return d(G)}return g(G,O,L)}function g(G,O,L){if("string"==typeof G)return function(G,O){if(("string"!=typeof O||""===O)&&(O="utf8"),!f.isEncoding(O))throw new TypeError("Unknown encoding: "+O);var L=0|x(G,O),dA=e(L),wA=dA.write(G,O);return wA!==L&&(dA=dA.slice(0,wA)),dA}(G,O);if(ArrayBuffer.isView(G))return function(G){if(ot(G,Uint8Array)){var O=new Uint8Array(G);return D(O.buffer,O.byteOffset,O.byteLength)}return m(G)}(G);if(null==G)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof G);if(ot(G,ArrayBuffer)||G&&ot(G.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(ot(G,SharedArrayBuffer)||G&&ot(G.buffer,SharedArrayBuffer)))return D(G,O,L);if("number"==typeof G)throw new TypeError('The "value" argument must not be of type number. Received type number');var dA=G.valueOf&&G.valueOf();if(null!=dA&&dA!==G)return f.from(dA,O,L);var wA=function(G){if(f.isBuffer(G)){var O=0|P(G.length),L=e(O);return 0===L.length||G.copy(L,0,0,O),L}return void 0!==G.length?"number"!=typeof G.length||It(G.length)?e(0):m(G):"Buffer"===G.type&&Array.isArray(G.data)?m(G.data):void 0}(G);if(wA)return wA;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof G[Symbol.toPrimitive])return f.from(G[Symbol.toPrimitive]("string"),O,L);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof G)}function w(G){if("number"!=typeof G)throw new TypeError('"size" argument must be of type number');if(G<0)throw new RangeError('The value "'+G+'" is invalid for option "size"')}function d(G){return w(G),e(G<0?0:0|P(G))}function m(G){for(var O=G.length<0?0:0|P(G.length),L=e(O),dA=0;dA=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return 0|G}function x(G,O){if(f.isBuffer(G))return G.length;if(ArrayBuffer.isView(G)||ot(G,ArrayBuffer))return G.byteLength;if("string"!=typeof G)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof G);var L=G.length,dA=arguments.length>2&&!0===arguments[2];if(!dA&&0===L)return 0;for(var wA=!1;;)switch(O){case"ascii":case"latin1":case"binary":return L;case"utf8":case"utf-8":return lt(G).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*L;case"hex":return L>>>1;case"base64":return WA(G).length;default:if(wA)return dA?-1:lt(G).length;O=(""+O).toLowerCase(),wA=!0}}function R(G,O,L){var dA=!1;if((void 0===O||O<0)&&(O=0),O>this.length||((void 0===L||L>this.length)&&(L=this.length),L<=0)||(L>>>=0)<=(O>>>=0))return"";for(G||(G="utf8");;)switch(G){case"hex":return CA(this,O,L);case"utf8":case"utf-8":return vA(this,O,L);case"ascii":return QA(this,O,L);case"latin1":case"binary":return uA(this,O,L);case"base64":return BA(this,O,L);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return TA(this,O,L);default:if(dA)throw new TypeError("Unknown encoding: "+G);G=(G+"").toLowerCase(),dA=!0}}function N(G,O,L){var dA=G[O];G[O]=G[L],G[L]=dA}function V(G,O,L,dA,wA){if(0===G.length)return-1;if("string"==typeof L?(dA=L,L=0):L>2147483647?L=2147483647:L<-2147483648&&(L=-2147483648),It(L=+L)&&(L=wA?0:G.length-1),L<0&&(L=G.length+L),L>=G.length){if(wA)return-1;L=G.length-1}else if(L<0){if(!wA)return-1;L=0}if("string"==typeof O&&(O=f.from(O,dA)),f.isBuffer(O))return 0===O.length?-1:aA(G,O,L,dA,wA);if("number"==typeof O)return O&=255,"function"==typeof Uint8Array.prototype.indexOf?wA?Uint8Array.prototype.indexOf.call(G,O,L):Uint8Array.prototype.lastIndexOf.call(G,O,L):aA(G,[O],L,dA,wA);throw new TypeError("val must be string, number or Buffer")}function aA(G,O,L,dA,wA){var j,RA=1,eA=G.length,at=O.length;if(void 0!==dA&&("ucs2"===(dA=String(dA).toLowerCase())||"ucs-2"===dA||"utf16le"===dA||"utf-16le"===dA)){if(G.length<2||O.length<2)return-1;RA=2,eA/=2,at/=2,L/=2}function Ft(jA,ct){return 1===RA?jA[ct]:jA.readUInt16BE(ct*RA)}if(wA){var XA=-1;for(j=L;jeA&&(L=eA-at),j=L;j>=0;j--){for(var et=!0,mA=0;mAwA&&(dA=wA):dA=wA;var eA,RA=O.length;for(dA>RA/2&&(dA=RA/2),eA=0;eA>8,RA.push(L%256),RA.push(dA);return RA}(O,G.length-L),G,L,dA)}function BA(G,O,L){return o.fromByteArray(0===O&&L===G.length?G:G.slice(O,L))}function vA(G,O,L){L=Math.min(G.length,L);for(var dA=[],wA=O;wA239?4:RA>223?3:RA>191?2:1;if(wA+at<=L){var Ft=void 0,j=void 0,XA=void 0,et=void 0;switch(at){case 1:RA<128&&(eA=RA);break;case 2:128==(192&(Ft=G[wA+1]))&&(et=(31&RA)<<6|63&Ft)>127&&(eA=et);break;case 3:j=G[wA+2],128==(192&(Ft=G[wA+1]))&&128==(192&j)&&(et=(15&RA)<<12|(63&Ft)<<6|63&j)>2047&&(et<55296||et>57343)&&(eA=et);break;case 4:j=G[wA+2],XA=G[wA+3],128==(192&(Ft=G[wA+1]))&&128==(192&j)&&128==(192&XA)&&(et=(15&RA)<<18|(63&Ft)<<12|(63&j)<<6|63&XA)>65535&&et<1114112&&(eA=et)}}null===eA?(eA=65533,at=1):eA>65535&&(dA.push((eA-=65536)>>>10&1023|55296),eA=56320|1023&eA),dA.push(eA),wA+=at}return function(G){var O=G.length;if(O<=4096)return String.fromCharCode.apply(String,G);for(var L="",dA=0;dAwA.length?(f.isBuffer(eA)||(eA=f.from(eA)),eA.copy(wA,RA)):Uint8Array.prototype.set.call(wA,eA,RA);else{if(!f.isBuffer(eA))throw new TypeError('"list" argument must be an Array of Buffers');eA.copy(wA,RA)}RA+=eA.length}return wA},f.byteLength=x,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var O=this.length;if(O%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var L=0;LL&&(O+=" ... "),""},h&&(f.prototype[h]=f.prototype.inspect),f.prototype.compare=function(O,L,dA,wA,RA){if(ot(O,Uint8Array)&&(O=f.from(O,O.offset,O.byteLength)),!f.isBuffer(O))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof O);if(void 0===L&&(L=0),void 0===dA&&(dA=O?O.length:0),void 0===wA&&(wA=0),void 0===RA&&(RA=this.length),L<0||dA>O.length||wA<0||RA>this.length)throw new RangeError("out of range index");if(wA>=RA&&L>=dA)return 0;if(wA>=RA)return-1;if(L>=dA)return 1;if(this===O)return 0;for(var eA=(RA>>>=0)-(wA>>>=0),at=(dA>>>=0)-(L>>>=0),Ft=Math.min(eA,at),j=this.slice(wA,RA),XA=O.slice(L,dA),et=0;et>>=0,isFinite(dA)?(dA>>>=0,void 0===wA&&(wA="utf8")):(wA=dA,dA=void 0)}var RA=this.length-L;if((void 0===dA||dA>RA)&&(dA=RA),O.length>0&&(dA<0||L<0)||L>this.length)throw new RangeError("Attempt to write outside buffer bounds");wA||(wA="utf8");for(var eA=!1;;)switch(wA){case"hex":return AA(this,O,L,dA);case"utf8":case"utf-8":return gA(this,O,L,dA);case"ascii":case"latin1":case"binary":return MA(this,O,L,dA);case"base64":return cA(this,O,L,dA);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lA(this,O,L,dA);default:if(eA)throw new TypeError("Unknown encoding: "+wA);wA=(""+wA).toLowerCase(),eA=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function QA(G,O,L){var dA="";L=Math.min(G.length,L);for(var wA=O;wAdA)&&(L=dA);for(var wA="",RA=O;RAL)throw new RangeError("Trying to access beyond buffer length")}function VA(G,O,L,dA,wA,RA){if(!f.isBuffer(G))throw new TypeError('"buffer" argument must be a Buffer instance');if(O>wA||OG.length)throw new RangeError("Index out of range")}function q(G,O,L,dA,wA){nt(O,dA,wA,G,L,7);var RA=Number(O&BigInt(4294967295));G[L++]=RA,G[L++]=RA>>=8,G[L++]=RA>>=8,G[L++]=RA>>=8;var eA=Number(O>>BigInt(32)&BigInt(4294967295));return G[L++]=eA,G[L++]=eA>>=8,G[L++]=eA>>=8,G[L++]=eA>>=8,L}function J(G,O,L,dA,wA){nt(O,dA,wA,G,L,7);var RA=Number(O&BigInt(4294967295));G[L+7]=RA,G[L+6]=RA>>=8,G[L+5]=RA>>=8,G[L+4]=RA>>=8;var eA=Number(O>>BigInt(32)&BigInt(4294967295));return G[L+3]=eA,G[L+2]=eA>>=8,G[L+1]=eA>>=8,G[L]=eA>>=8,L+8}function $(G,O,L,dA,wA,RA){if(L+dA>G.length)throw new RangeError("Index out of range");if(L<0)throw new RangeError("Index out of range")}function W(G,O,L,dA,wA){return O=+O,L>>>=0,wA||$(G,0,L,4),l.write(G,O,L,dA,23,4),L+4}function EA(G,O,L,dA,wA){return O=+O,L>>>=0,wA||$(G,0,L,8),l.write(G,O,L,dA,52,8),L+8}f.prototype.slice=function(O,L){var dA=this.length;(O=~~O)<0?(O+=dA)<0&&(O=0):O>dA&&(O=dA),(L=void 0===L?dA:~~L)<0?(L+=dA)<0&&(L=0):L>dA&&(L=dA),L>>=0,L>>>=0,dA||GA(O,L,this.length);for(var wA=this[O],RA=1,eA=0;++eA>>=0,L>>>=0,dA||GA(O,L,this.length);for(var wA=this[O+--L],RA=1;L>0&&(RA*=256);)wA+=this[O+--L]*RA;return wA},f.prototype.readUint8=f.prototype.readUInt8=function(O,L){return O>>>=0,L||GA(O,1,this.length),this[O]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(O,L){return O>>>=0,L||GA(O,2,this.length),this[O]|this[O+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(O,L){return O>>>=0,L||GA(O,2,this.length),this[O]<<8|this[O+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(O,L){return O>>>=0,L||GA(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+16777216*this[O+3]},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(O,L){return O>>>=0,L||GA(O,4,this.length),16777216*this[O]+(this[O+1]<<16|this[O+2]<<8|this[O+3])},f.prototype.readBigUInt64LE=vt(function(O){st(O>>>=0,"offset");var L=this[O],dA=this[O+7];(void 0===L||void 0===dA)&&yA(O,this.length-8);var wA=L+this[++O]*Math.pow(2,8)+this[++O]*Math.pow(2,16)+this[++O]*Math.pow(2,24),RA=this[++O]+this[++O]*Math.pow(2,8)+this[++O]*Math.pow(2,16)+dA*Math.pow(2,24);return BigInt(wA)+(BigInt(RA)<>>=0,"offset");var L=this[O],dA=this[O+7];(void 0===L||void 0===dA)&&yA(O,this.length-8);var wA=L*Math.pow(2,24)+this[++O]*Math.pow(2,16)+this[++O]*Math.pow(2,8)+this[++O],RA=this[++O]*Math.pow(2,24)+this[++O]*Math.pow(2,16)+this[++O]*Math.pow(2,8)+dA;return(BigInt(wA)<>>=0,L>>>=0,dA||GA(O,L,this.length);for(var wA=this[O],RA=1,eA=0;++eA=(RA*=128)&&(wA-=Math.pow(2,8*L)),wA},f.prototype.readIntBE=function(O,L,dA){O>>>=0,L>>>=0,dA||GA(O,L,this.length);for(var wA=L,RA=1,eA=this[O+--wA];wA>0&&(RA*=256);)eA+=this[O+--wA]*RA;return eA>=(RA*=128)&&(eA-=Math.pow(2,8*L)),eA},f.prototype.readInt8=function(O,L){return O>>>=0,L||GA(O,1,this.length),128&this[O]?-1*(255-this[O]+1):this[O]},f.prototype.readInt16LE=function(O,L){O>>>=0,L||GA(O,2,this.length);var dA=this[O]|this[O+1]<<8;return 32768&dA?4294901760|dA:dA},f.prototype.readInt16BE=function(O,L){O>>>=0,L||GA(O,2,this.length);var dA=this[O+1]|this[O]<<8;return 32768&dA?4294901760|dA:dA},f.prototype.readInt32LE=function(O,L){return O>>>=0,L||GA(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},f.prototype.readInt32BE=function(O,L){return O>>>=0,L||GA(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},f.prototype.readBigInt64LE=vt(function(O){st(O>>>=0,"offset");var L=this[O],dA=this[O+7];(void 0===L||void 0===dA)&&yA(O,this.length-8);var wA=this[O+4]+this[O+5]*Math.pow(2,8)+this[O+6]*Math.pow(2,16)+(dA<<24);return(BigInt(wA)<>>=0,"offset");var L=this[O],dA=this[O+7];(void 0===L||void 0===dA)&&yA(O,this.length-8);var wA=(L<<24)+this[++O]*Math.pow(2,16)+this[++O]*Math.pow(2,8)+this[++O];return(BigInt(wA)<>>=0,L||GA(O,4,this.length),l.read(this,O,!0,23,4)},f.prototype.readFloatBE=function(O,L){return O>>>=0,L||GA(O,4,this.length),l.read(this,O,!1,23,4)},f.prototype.readDoubleLE=function(O,L){return O>>>=0,L||GA(O,8,this.length),l.read(this,O,!0,52,8)},f.prototype.readDoubleBE=function(O,L){return O>>>=0,L||GA(O,8,this.length),l.read(this,O,!1,52,8)},f.prototype.writeUintLE=f.prototype.writeUIntLE=function(O,L,dA,wA){O=+O,L>>>=0,dA>>>=0,wA||VA(this,O,L,dA,Math.pow(2,8*dA)-1,0);var eA=1,at=0;for(this[L]=255&O;++at>>=0,dA>>>=0,wA||VA(this,O,L,dA,Math.pow(2,8*dA)-1,0);var eA=dA-1,at=1;for(this[L+eA]=255&O;--eA>=0&&(at*=256);)this[L+eA]=O/at&255;return L+dA},f.prototype.writeUint8=f.prototype.writeUInt8=function(O,L,dA){return O=+O,L>>>=0,dA||VA(this,O,L,1,255,0),this[L]=255&O,L+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(O,L,dA){return O=+O,L>>>=0,dA||VA(this,O,L,2,65535,0),this[L]=255&O,this[L+1]=O>>>8,L+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(O,L,dA){return O=+O,L>>>=0,dA||VA(this,O,L,2,65535,0),this[L]=O>>>8,this[L+1]=255&O,L+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(O,L,dA){return O=+O,L>>>=0,dA||VA(this,O,L,4,4294967295,0),this[L+3]=O>>>24,this[L+2]=O>>>16,this[L+1]=O>>>8,this[L]=255&O,L+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(O,L,dA){return O=+O,L>>>=0,dA||VA(this,O,L,4,4294967295,0),this[L]=O>>>24,this[L+1]=O>>>16,this[L+2]=O>>>8,this[L+3]=255&O,L+4},f.prototype.writeBigUInt64LE=vt(function(O,L){return void 0===L&&(L=0),q(this,O,L,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeBigUInt64BE=vt(function(O,L){return void 0===L&&(L=0),J(this,O,L,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeIntLE=function(O,L,dA,wA){if(O=+O,L>>>=0,!wA){var RA=Math.pow(2,8*dA-1);VA(this,O,L,dA,RA-1,-RA)}var eA=0,at=1,Ft=0;for(this[L]=255&O;++eA>0)-Ft&255;return L+dA},f.prototype.writeIntBE=function(O,L,dA,wA){if(O=+O,L>>>=0,!wA){var RA=Math.pow(2,8*dA-1);VA(this,O,L,dA,RA-1,-RA)}var eA=dA-1,at=1,Ft=0;for(this[L+eA]=255&O;--eA>=0&&(at*=256);)O<0&&0===Ft&&0!==this[L+eA+1]&&(Ft=1),this[L+eA]=(O/at>>0)-Ft&255;return L+dA},f.prototype.writeInt8=function(O,L,dA){return O=+O,L>>>=0,dA||VA(this,O,L,1,127,-128),O<0&&(O=255+O+1),this[L]=255&O,L+1},f.prototype.writeInt16LE=function(O,L,dA){return O=+O,L>>>=0,dA||VA(this,O,L,2,32767,-32768),this[L]=255&O,this[L+1]=O>>>8,L+2},f.prototype.writeInt16BE=function(O,L,dA){return O=+O,L>>>=0,dA||VA(this,O,L,2,32767,-32768),this[L]=O>>>8,this[L+1]=255&O,L+2},f.prototype.writeInt32LE=function(O,L,dA){return O=+O,L>>>=0,dA||VA(this,O,L,4,2147483647,-2147483648),this[L]=255&O,this[L+1]=O>>>8,this[L+2]=O>>>16,this[L+3]=O>>>24,L+4},f.prototype.writeInt32BE=function(O,L,dA){return O=+O,L>>>=0,dA||VA(this,O,L,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),this[L]=O>>>24,this[L+1]=O>>>16,this[L+2]=O>>>8,this[L+3]=255&O,L+4},f.prototype.writeBigInt64LE=vt(function(O,L){return void 0===L&&(L=0),q(this,O,L,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeBigInt64BE=vt(function(O,L){return void 0===L&&(L=0),J(this,O,L,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeFloatLE=function(O,L,dA){return W(this,O,L,!0,dA)},f.prototype.writeFloatBE=function(O,L,dA){return W(this,O,L,!1,dA)},f.prototype.writeDoubleLE=function(O,L,dA){return EA(this,O,L,!0,dA)},f.prototype.writeDoubleBE=function(O,L,dA){return EA(this,O,L,!1,dA)},f.prototype.copy=function(O,L,dA,wA){if(!f.isBuffer(O))throw new TypeError("argument should be a Buffer");if(dA||(dA=0),!wA&&0!==wA&&(wA=this.length),L>=O.length&&(L=O.length),L||(L=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),O.length-L>>=0,dA=void 0===dA?this.length:dA>>>0,O||(O=0),"number"==typeof O)for(eA=L;eA=dA+4;L-=3)O="_"+G.slice(L-3,L)+O;return""+G.slice(0,L)+O}function nt(G,O,L,dA,wA,RA){if(G>L||G3?0===O||O===BigInt(0)?">= 0"+eA+" and < 2"+eA+" ** "+8*(RA+1)+eA:">= -(2"+eA+" ** "+(8*(RA+1)-1)+eA+") and < 2 ** "+(8*(RA+1)-1)+eA:">= "+O+eA+" and <= "+L+eA,new DA.ERR_OUT_OF_RANGE("value",at,G)}!function(G,O,L){st(O,"offset"),(void 0===G[O]||void 0===G[O+L])&&yA(O,G.length-(L+1))}(dA,wA,RA)}function st(G,O){if("number"!=typeof G)throw new DA.ERR_INVALID_ARG_TYPE(O,"number",G)}function yA(G,O,L){throw Math.floor(G)!==G?(st(G,L),new DA.ERR_OUT_OF_RANGE(L||"offset","an integer",G)):O<0?new DA.ERR_BUFFER_OUT_OF_BOUNDS:new DA.ERR_OUT_OF_RANGE(L||"offset",">= "+(L?1:0)+" and <= "+O,G)}rA("ERR_BUFFER_OUT_OF_BOUNDS",function(G){return G?G+" is outside of buffer bounds":"Attempt to access memory outside buffer bounds"},RangeError),rA("ERR_INVALID_ARG_TYPE",function(G,O){return'The "'+G+'" argument must be of type number. Received type '+typeof O},TypeError),rA("ERR_OUT_OF_RANGE",function(G,O,L){var dA='The value of "'+G+'" is out of range.',wA=L;return Number.isInteger(L)&&Math.abs(L)>Math.pow(2,32)?wA=hA(String(L)):"bigint"==typeof L&&(wA=String(L),(L>Math.pow(BigInt(2),BigInt(32))||L<-Math.pow(BigInt(2),BigInt(32)))&&(wA=hA(wA)),wA+="n"),dA+" It must be "+O+". Received "+wA},RangeError);var _A=/[^+/0-9A-Za-z-_]/g;function lt(G,O){O=O||1/0;for(var L,dA=G.length,wA=null,RA=[],eA=0;eA55295&&L<57344){if(!wA){if(L>56319){(O-=3)>-1&&RA.push(239,191,189);continue}if(eA+1===dA){(O-=3)>-1&&RA.push(239,191,189);continue}wA=L;continue}if(L<56320){(O-=3)>-1&&RA.push(239,191,189),wA=L;continue}L=65536+(wA-55296<<10|L-56320)}else wA&&(O-=3)>-1&&RA.push(239,191,189);if(wA=null,L<128){if((O-=1)<0)break;RA.push(L)}else if(L<2048){if((O-=2)<0)break;RA.push(L>>6|192,63&L|128)}else if(L<65536){if((O-=3)<0)break;RA.push(L>>12|224,L>>6&63|128,63&L|128)}else{if(!(L<1114112))throw new Error("Invalid code point");if((O-=4)<0)break;RA.push(L>>18|240,L>>12&63|128,L>>6&63|128,63&L|128)}}return RA}function WA(G){return o.toByteArray(function(G){if((G=(G=G.split("=")[0]).trim().replace(_A,"")).length<2)return"";for(;G.length%4!=0;)G+="=";return G}(G))}function zA(G,O,L,dA){var wA;for(wA=0;wA=O.length||wA>=G.length);++wA)O[wA+L]=G[wA];return wA}function ot(G,O){return G instanceof O||null!=G&&null!=G.constructor&&null!=G.constructor.name&&G.constructor.name===O.name}function It(G){return G!=G}var dt=function(){for(var G="0123456789abcdef",O=new Array(256),L=0;L<16;++L)for(var dA=16*L,wA=0;wA<16;++wA)O[dA+wA]=G[L]+G[wA];return O}();function vt(G){return"undefined"==typeof BigInt?Pt:G}function Pt(){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 gA,MA,cA,c=n(477),r=n(9781),a=n(7854),s=n(614),E=n(111),o=n(2597),l=n(648),h=n(6330),u=n(8880),C=n(1320),e=n(3070).f,f=n(7976),g=n(9518),w=n(7674),Q=n(5112),d=n(9711),F=a.Int8Array,m=F&&F.prototype,p=a.Uint8ClampedArray,D=p&&p.prototype,v=F&&g(F),P=m&&g(m),T=Object.prototype,x=a.TypeError,R=Q("toStringTag"),N=d("TYPED_ARRAY_TAG"),V=d("TYPED_ARRAY_CONSTRUCTOR"),aA=c&&!!w&&"Opera"!==l(a.opera),AA=!1,lA={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},BA={BigInt64Array:8,BigUint64Array:8},xA=function(GA){if(!E(GA))return!1;var VA=l(GA);return o(lA,VA)||o(BA,VA)};for(gA in lA)(cA=(MA=a[gA])&&MA.prototype)?u(cA,V,MA):aA=!1;for(gA in BA)(cA=(MA=a[gA])&&MA.prototype)&&u(cA,V,MA);if((!aA||!s(v)||v===Function.prototype)&&(v=function(){throw x("Incorrect invocation")},aA))for(gA in lA)a[gA]&&w(a[gA],v);if((!aA||!P||P===T)&&(P=v.prototype,aA))for(gA in lA)a[gA]&&w(a[gA].prototype,P);if(aA&&g(D)!==P&&w(D,P),r&&!o(P,R))for(gA in AA=!0,e(P,R,{get:function(){return E(this)?this[N]:void 0}}),lA)a[gA]&&u(a[gA],N,gA);Y.exports={NATIVE_ARRAY_BUFFER_VIEWS:aA,TYPED_ARRAY_CONSTRUCTOR:V,TYPED_ARRAY_TAG:AA&&N,aTypedArray:function(GA){if(xA(GA))return GA;throw x("Target is not a typed array")},aTypedArrayConstructor:function(GA){if(s(GA)&&(!w||f(v,GA)))return GA;throw x(h(GA)+" is not a typed array constructor")},exportTypedArrayMethod:function(GA,VA,q){if(r){if(q)for(var J in lA){var $=a[J];if($&&o($.prototype,GA))try{delete $.prototype[GA]}catch(W){}}(!P[GA]||q)&&C(P,GA,q?VA:aA&&m[GA]||VA)}},exportTypedArrayStaticMethod:function(GA,VA,q){var J,$;if(r){if(w){if(q)for(J in lA)if(($=a[J])&&o($,GA))try{delete $[GA]}catch(W){}if(v[GA]&&!q)return;try{return C(v,GA,q?VA:aA&&v[GA]||VA)}catch(W){}}for(J in lA)($=a[J])&&(!$[GA]||q)&&C($,GA,VA)}},isView:function(GA){if(!E(GA))return!1;var VA=l(GA);return"DataView"===VA||o(lA,VA)||o(BA,VA)},isTypedArray:xA,TypedArray:v,TypedArrayPrototype:P}},2091:function(Y,I,n){"use strict";n(8309);var c=n(7854),r=n(1702),a=n(9781),s=n(477),E=n(6530),o=n(8880),l=n(2248),h=n(7293),u=n(5787),C=n(9303),e=n(7466),f=n(7067),g=n(1179),w=n(9518),Q=n(7674),d=n(8006).f,F=n(3070).f,m=n(1285),p=n(206),D=n(8003),v=n(9909),P=E.PROPER,T=E.CONFIGURABLE,x=v.get,R=v.set,N="ArrayBuffer",V="DataView",aA="prototype",gA="Wrong index",MA=c[N],cA=MA,lA=cA&&cA[aA],BA=c[V],vA=BA&&BA[aA],xA=Object.prototype,_=c.Array,QA=c.RangeError,uA=r(m),CA=r([].reverse),TA=g.pack,GA=g.unpack,VA=function(SA){return[255&SA]},q=function(SA){return[255&SA,SA>>8&255]},J=function(SA){return[255&SA,SA>>8&255,SA>>16&255,SA>>24&255]},$=function(SA){return SA[3]<<24|SA[2]<<16|SA[1]<<8|SA[0]},W=function(SA){return TA(SA,23,4)},EA=function(SA){return TA(SA,52,8)},DA=function(SA,OA){F(SA[aA],OA,{get:function(){return x(this)[OA]}})},rA=function(SA,OA,WA,zA){var ot=f(WA),It=x(SA);if(ot+OA>It.byteLength)throw QA(gA);var dt=x(It.buffer).bytes,vt=ot+It.byteOffset,Pt=p(dt,vt,vt+OA);return zA?Pt:CA(Pt)},hA=function(SA,OA,WA,zA,ot,It){var dt=f(WA),vt=x(SA);if(dt+OA>vt.byteLength)throw QA(gA);for(var Pt=x(vt.buffer).bytes,G=dt+vt.byteOffset,O=zA(+ot),L=0;Lst;)(yA=nt[st++])in cA||o(cA,yA,MA[yA]);lA.constructor=cA}Q&&w(vA)!==xA&&Q(vA,xA);var _A=new BA(new cA(2)),ft=r(vA.setInt8);_A.setInt8(0,2147483648),_A.setInt8(1,2147483649),(_A.getInt8(0)||!_A.getInt8(1))&&l(vA,{setInt8:function(SA,OA){ft(this,SA,OA<<24>>24)},setUint8:function(SA,OA){ft(this,SA,OA<<24>>24)}},{unsafe:!0})}else lA=(cA=function(SA){u(this,lA);var OA=f(SA);R(this,{bytes:uA(_(OA),0),byteLength:OA}),a||(this.byteLength=OA)})[aA],vA=(BA=function(SA,OA,WA){u(this,vA),u(SA,lA);var zA=x(SA).byteLength,ot=C(OA);if(ot<0||ot>zA)throw QA("Wrong offset");if(ot+(WA=void 0===WA?zA-ot:e(WA))>zA)throw QA("Wrong length");R(this,{buffer:SA,byteLength:WA,byteOffset:ot}),a||(this.buffer=SA,this.byteLength=WA,this.byteOffset=ot)})[aA],a&&(DA(cA,"byteLength"),DA(BA,"buffer"),DA(BA,"byteLength"),DA(BA,"byteOffset")),l(vA,{getInt8:function(SA){return rA(this,1,SA)[0]<<24>>24},getUint8:function(SA){return rA(this,1,SA)[0]},getInt16:function(SA){var OA=rA(this,2,SA,arguments.length>1?arguments[1]:void 0);return(OA[1]<<8|OA[0])<<16>>16},getUint16:function(SA){var OA=rA(this,2,SA,arguments.length>1?arguments[1]:void 0);return OA[1]<<8|OA[0]},getInt32:function(SA){return $(rA(this,4,SA,arguments.length>1?arguments[1]:void 0))},getUint32:function(SA){return $(rA(this,4,SA,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(SA){return GA(rA(this,4,SA,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(SA){return GA(rA(this,8,SA,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(SA,OA){hA(this,1,SA,VA,OA)},setUint8:function(SA,OA){hA(this,1,SA,VA,OA)},setInt16:function(SA,OA){hA(this,2,SA,q,OA,arguments.length>2?arguments[2]:void 0)},setUint16:function(SA,OA){hA(this,2,SA,q,OA,arguments.length>2?arguments[2]:void 0)},setInt32:function(SA,OA){hA(this,4,SA,J,OA,arguments.length>2?arguments[2]:void 0)},setUint32:function(SA,OA){hA(this,4,SA,J,OA,arguments.length>2?arguments[2]:void 0)},setFloat32:function(SA,OA){hA(this,4,SA,W,OA,arguments.length>2?arguments[2]:void 0)},setFloat64:function(SA,OA){hA(this,8,SA,EA,OA,arguments.length>2?arguments[2]:void 0)}});D(cA,N),D(BA,V),Y.exports={ArrayBuffer:cA,DataView:BA}},7803:function(Y,I,n){"use strict";var c=n(2109),r=n(7854),a=n(2091),s=n(6340),E="ArrayBuffer",o=a[E];c({global:!0,forced:r[E]!==o},{ArrayBuffer:o}),s(E)},194:function(Y,I,n){"use strict";Y.exports=function(c){return function(){var r=c,s=r.lib.BlockCipher,E=r.algo,o=[],l=[],h=[],u=[],C=[],e=[],f=[],g=[],w=[],Q=[];!function(){for(var m=[],p=0;p<256;p++)m[p]=p<128?p<<1:p<<1^283;var D=0,v=0;for(p=0;p<256;p++){var P=v^v<<1^v<<2^v<<3^v<<4;o[D]=P=P>>>8^255&P^99,l[P]=D;var N,T=m[D],x=m[T],R=m[x];h[D]=(N=257*m[P]^16843008*P)<<24|N>>>8,u[D]=N<<16|N>>>16,C[D]=N<<8|N>>>24,e[D]=N,f[P]=(N=16843009*R^65537*x^257*T^16843008*D)<<24|N>>>8,g[P]=N<<16|N>>>16,w[P]=N<<8|N>>>24,Q[P]=N,D?(D=T^m[m[m[R^T]]],v^=m[m[v]]):D=v=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],F=E.AES=s.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var D=this._keyPriorReset=this._key,v=D.words,P=D.sigBytes/4,x=4*((this._nRounds=P+6)+1),R=this._keySchedule=[],N=0;N6&&N%P==4&&(p=o[p>>>24]<<24|o[p>>>16&255]<<16|o[p>>>8&255]<<8|o[255&p]):(p=o[(p=p<<8|p>>>24)>>>24]<<24|o[p>>>16&255]<<16|o[p>>>8&255]<<8|o[255&p],p^=d[N/P|0]<<24),R[N]=R[N-P]^p);for(var V=this._invKeySchedule=[],aA=0;aA>>24]]^g[o[p>>>16&255]]^w[o[p>>>8&255]]^Q[o[255&p]]}}},encryptBlock:function(p,D){this._doCryptBlock(p,D,this._keySchedule,h,u,C,e,o)},decryptBlock:function(p,D){var v=p[D+1];p[D+1]=p[D+3],p[D+3]=v,this._doCryptBlock(p,D,this._invKeySchedule,f,g,w,Q,l),v=p[D+1],p[D+1]=p[D+3],p[D+3]=v},_doCryptBlock:function(p,D,v,P,T,x,R,N){for(var V=this._nRounds,aA=p[D]^v[0],AA=p[D+1]^v[1],gA=p[D+2]^v[2],MA=p[D+3]^v[3],cA=4,lA=1;lA>>24]^T[AA>>>16&255]^x[gA>>>8&255]^R[255&MA]^v[cA++],vA=P[AA>>>24]^T[gA>>>16&255]^x[MA>>>8&255]^R[255&aA]^v[cA++],xA=P[gA>>>24]^T[MA>>>16&255]^x[aA>>>8&255]^R[255&AA]^v[cA++],_=P[MA>>>24]^T[aA>>>16&255]^x[AA>>>8&255]^R[255&gA]^v[cA++];aA=BA,AA=vA,gA=xA,MA=_}BA=(N[aA>>>24]<<24|N[AA>>>16&255]<<16|N[gA>>>8&255]<<8|N[255&MA])^v[cA++],vA=(N[AA>>>24]<<24|N[gA>>>16&255]<<16|N[MA>>>8&255]<<8|N[255&aA])^v[cA++],xA=(N[gA>>>24]<<24|N[MA>>>16&255]<<16|N[aA>>>8&255]<<8|N[255&AA])^v[cA++],_=(N[MA>>>24]<<24|N[aA>>>16&255]<<16|N[AA>>>8&255]<<8|N[255&gA])^v[cA++],p[D]=BA,p[D+1]=vA,p[D+2]=xA,p[D+3]=_},keySize:8});r.AES=s._createHelper(F)}(),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 a,s,E,o,l,C,f,g,Q,d,F,p,v,T,x,N,V;c.lib.Cipher||(o=(s=(a=c).lib).WordArray,C=a.enc.Base64,f=a.algo.EvpKDF,g=s.Cipher=(l=s.BufferedBlockAlgorithm).extend({cfg:(E=s.Base).extend(),createEncryptor:function(AA,gA){return this.create(this._ENC_XFORM_MODE,AA,gA)},createDecryptor:function(AA,gA){return this.create(this._DEC_XFORM_MODE,AA,gA)},init:function(AA,gA,MA){this.cfg=this.cfg.extend(MA),this._xformMode=AA,this._key=gA,this.reset()},reset:function(){l.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?V:x}return function(AA){return{encrypt:function(MA,cA,lA){return aA(cA).encrypt(AA,MA,cA,lA)},decrypt:function(MA,cA,lA){return aA(cA).decrypt(AA,MA,cA,lA)}}}}()}),s.StreamCipher=g.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),Q=a.mode={},d=s.BlockCipherMode=E.extend({createEncryptor:function(AA,gA){return this.Encryptor.create(AA,gA)},createDecryptor:function(AA,gA){return this.Decryptor.create(AA,gA)},init:function(AA,gA){this._cipher=AA,this._iv=gA}}),F=Q.CBC=function(){var aA=d.extend();function AA(gA,MA,cA){var lA,BA=this._iv;BA?(lA=BA,this._iv=undefined):lA=this._prevBlock;for(var vA=0;vA>>2]}},s.BlockCipher=g.extend({cfg:g.cfg.extend({mode:F,padding:p}),reset:function(){var AA;g.reset.call(this);var gA=this.cfg,MA=gA.iv,cA=gA.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,gA){this._mode.processBlock(AA,gA)},_doFinalize:function(){var AA,gA=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(gA.pad(this._data,this.blockSize),AA=this._process(!0)):(AA=this._process(!0),gA.unpad(AA)),AA},blockSize:4}),v=s.CipherParams=E.extend({init:function(AA){this.mixIn(AA)},toString:function(AA){return(AA||this.formatter).stringify(this)}}),T=(a.format={}).OpenSSL={stringify:function(AA){var MA=AA.ciphertext,cA=AA.salt;return(cA?o.create([1398893684,1701076831]).concat(cA).concat(MA):MA).toString(C)},parse:function(AA){var gA,MA=C.parse(AA),cA=MA.words;return 1398893684==cA[0]&&1701076831==cA[1]&&(gA=o.create(cA.slice(2,4)),cA.splice(0,4),MA.sigBytes-=16),v.create({ciphertext:MA,salt:gA})}},x=s.SerializableCipher=E.extend({cfg:E.extend({format:T}),encrypt:function(AA,gA,MA,cA){cA=this.cfg.extend(cA);var lA=AA.createEncryptor(MA,cA),BA=lA.finalize(gA),vA=lA.cfg;return v.create({ciphertext:BA,key:MA,iv:vA.iv,algorithm:AA,mode:vA.mode,padding:vA.padding,blockSize:AA.blockSize,formatter:cA.format})},decrypt:function(AA,gA,MA,cA){return cA=this.cfg.extend(cA),gA=this._parse(gA,cA.format),AA.createDecryptor(MA,cA).finalize(gA.ciphertext)},_parse:function(AA,gA){return"string"==typeof AA?gA.parse(AA,this):AA}}),N=(a.kdf={}).OpenSSL={execute:function(AA,gA,MA,cA){cA||(cA=o.random(8));var lA=f.create({keySize:gA+MA}).compute(AA,cA),BA=o.create(lA.words.slice(gA),4*MA);return lA.sigBytes=4*gA,v.create({key:lA,iv:BA,salt:cA})}},V=s.PasswordBasedCipher=x.extend({cfg:x.cfg.extend({kdf:N}),encrypt:function(AA,gA,MA,cA){var lA=(cA=this.cfg.extend(cA)).kdf.execute(MA,AA.keySize,AA.ivSize);cA.iv=lA.iv;var BA=x.encrypt.call(this,AA,gA,lA.key,cA);return BA.mixIn(lA),BA},decrypt:function(AA,gA,MA,cA){cA=this.cfg.extend(cA),gA=this._parse(gA,cA.format);var lA=cA.kdf.execute(MA,AA.keySize,AA.ivSize,gA.salt);return cA.iv=lA.iv,x.decrypt.call(this,AA,gA,lA.key,cA)}}))}(n(757),n(3839))},757:function(Y,I,n){"use strict";var r;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),r=function(){var c=c||function(r,a){var s;if("undefined"!=typeof window&&window.crypto&&(s=window.crypto),"undefined"!=typeof self&&self.crypto&&(s=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(s=globalThis.crypto),!s&&"undefined"!=typeof window&&window.msCrypto&&(s=window.msCrypto),!s&&void 0!==n.g&&n.g.crypto&&(s=n.g.crypto),!s)try{s=n(2480)}catch(m){}var E=function(){if(s){if("function"==typeof s.getRandomValues)try{return s.getRandomValues(new Uint32Array(1))[0]}catch(p){}if("function"==typeof s.randomBytes)try{return s.randomBytes(4).readInt32LE()}catch(p){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function m(){}return function(p){var D;return m.prototype=p,D=new m,m.prototype=null,D}}(),l={},h=l.lib={},u=h.Base={extend:function(p){var D=o(this);return p&&D.mixIn(p),(!D.hasOwnProperty("init")||this.init===D.init)&&(D.init=function(){D.$super.init.apply(this,arguments)}),D.init.prototype=D,D.$super=this,D},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var D in p)p.hasOwnProperty(D)&&(this[D]=p[D]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}},C=h.WordArray=u.extend({init:function(p,D){p=this.words=p||[],this.sigBytes=null!=D?D:4*p.length},toString:function(p){return(p||f).stringify(this)},concat:function(p){var D=this.words,v=p.words,P=this.sigBytes,T=p.sigBytes;if(this.clamp(),P%4)for(var x=0;x>>2]|=(v[x>>>2]>>>24-x%4*8&255)<<24-(P+x)%4*8;else for(var N=0;N>>2]=v[N>>>2];return this.sigBytes+=T,this},clamp:function(){var p=this.words,D=this.sigBytes;p[D>>>2]&=4294967295<<32-D%4*8,p.length=r.ceil(D/4)},clone:function(){var p=u.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var D=[],v=0;v>>2]>>>24-T%4*8&255;P.push((x>>>4).toString(16)),P.push((15&x).toString(16))}return P.join("")},parse:function(p){for(var D=p.length,v=[],P=0;P>>3]|=parseInt(p.substr(P,2),16)<<24-P%8*4;return new C.init(v,D/2)}},g=e.Latin1={stringify:function(p){for(var D=p.words,v=p.sigBytes,P=[],T=0;T>>2]>>>24-T%4*8&255));return P.join("")},parse:function(p){for(var D=p.length,v=[],P=0;P>>2]|=(255&p.charCodeAt(P))<<24-P%4*8;return new C.init(v,D)}},w=e.Utf8={stringify:function(p){try{return decodeURIComponent(escape(g.stringify(p)))}catch(D){throw new Error("Malformed UTF-8 data")}},parse:function(p){return g.parse(unescape(encodeURIComponent(p)))}},Q=h.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new C.init,this._nDataBytes=0},_append:function(p){"string"==typeof p&&(p=w.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var D,v=this._data,P=v.words,T=v.sigBytes,x=this.blockSize,N=T/(4*x),V=(N=p?r.ceil(N):r.max((0|N)-this._minBufferSize,0))*x,aA=r.min(4*V,T);if(V){for(var AA=0;AA>>2]>>>24-w%4*8&255)<<16|(C[w+1>>>2]>>>24-(w+1)%4*8&255)<<8|C[w+2>>>2]>>>24-(w+2)%4*8&255,p=0;p<4&&w+.75*p>>6*(3-p)&63));var D=f.charAt(64);if(D)for(;g.length%4;)g.push(D);return g.join("")},parse:function(u){var C=u.length,e=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var g=0;g>>6-g%4*2;e[f>>>2]|=(w|Q)<<24-f%4*8,f++}return s.create(e,f)}(u,C,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},c.enc.Base64;var s}(n(757))},7590:function(Y,I,n){"use strict";n(9600),Y.exports=function(c){return s=c.lib.WordArray,c.enc.Base64url={stringify:function(u,C){void 0===C&&(C=!0);var e=u.words,f=u.sigBytes,g=C?this._safe_map:this._map;u.clamp();for(var w=[],Q=0;Q>>2]>>>24-Q%4*8&255)<<16|(e[Q+1>>>2]>>>24-(Q+1)%4*8&255)<<8|e[Q+2>>>2]>>>24-(Q+2)%4*8&255,D=0;D<4&&Q+.75*D>>6*(3-D)&63));var v=g.charAt(64);if(v)for(;w.length%4;)w.push(v);return w.join("")},parse:function(u,C){void 0===C&&(C=!0);var e=u.length,f=C?this._safe_map:this._map,g=this._reverseMap;if(!g){g=this._reverseMap=[];for(var w=0;w>>6-g%4*2;e[f>>>2]|=(w|Q)<<24-f%4*8,f++}return s.create(e,f)}(u,e,g)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},c.enc.Base64url;var s}(n(757))},4978:function(Y,I,n){"use strict";n(9600),Y.exports=function(c){return function(){var s=c.lib.WordArray,E=c.enc;function l(h){return h<<8&4278255360|h>>>8&16711935}E.Utf16=E.Utf16BE={stringify:function(u){for(var C=u.words,e=u.sigBytes,f=[],g=0;g>>2]>>>16-g%4*8&65535));return f.join("")},parse:function(u){for(var C=u.length,e=[],f=0;f>>1]|=u.charCodeAt(f)<<16-f%2*16;return s.create(e,2*C)}},E.Utf16LE={stringify:function(u){for(var C=u.words,e=u.sigBytes,f=[],g=0;g>>2]>>>16-g%4*8&65535);f.push(String.fromCharCode(w))}return f.join("")},parse:function(u){for(var C=u.length,e=[],f=0;f>>1]|=l(u.charCodeAt(f)<<16-f%2*16);return s.create(e,2*C)}}}(),c.enc.Utf16}(n(757))},3839:function(Y,I,n){"use strict";n(2222),Y.exports=function(c){return E=(a=(r=c).lib).WordArray,h=(o=r.algo).EvpKDF=(s=a.Base).extend({cfg:s.extend({keySize:4,hasher:o.MD5,iterations:1}),init:function(C){this.cfg=this.cfg.extend(C)},compute:function(C,e){for(var f,g=this.cfg,w=g.hasher.create(),Q=E.create(),d=Q.words,F=g.keySize,m=g.iterations;d.lengthg&&(e=C.finalize(e)),e.clamp();for(var w=this._oKey=e.clone(),Q=this._iKey=e.clone(),d=w.words,F=Q.words,m=0;m>>2]|=l[C]<<24-C%4*8;E.call(this,u,h)}else E.apply(this,arguments)};o.prototype=s}}(),c.lib.WordArray},Y.exports=r(n(757))},3440:function(Y,I,n){"use strict";Y.exports=function(c){return function(r){var a=c,s=a.lib,E=s.WordArray,o=s.Hasher,l=a.algo,h=[];!function(){for(var w=0;w<64;w++)h[w]=4294967296*r.abs(r.sin(w+1))|0}();var u=l.MD5=o.extend({_doReset:function(){this._hash=new E.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(Q,d){for(var F=0;F<16;F++){var m=d+F,p=Q[m];Q[m]=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8)}var D=this._hash.words,v=Q[d+0],P=Q[d+1],T=Q[d+2],x=Q[d+3],R=Q[d+4],N=Q[d+5],V=Q[d+6],aA=Q[d+7],AA=Q[d+8],gA=Q[d+9],MA=Q[d+10],cA=Q[d+11],lA=Q[d+12],BA=Q[d+13],vA=Q[d+14],xA=Q[d+15],_=D[0],QA=D[1],uA=D[2],CA=D[3];_=C(_,QA,uA,CA,v,7,h[0]),CA=C(CA,_,QA,uA,P,12,h[1]),uA=C(uA,CA,_,QA,T,17,h[2]),QA=C(QA,uA,CA,_,x,22,h[3]),_=C(_,QA,uA,CA,R,7,h[4]),CA=C(CA,_,QA,uA,N,12,h[5]),uA=C(uA,CA,_,QA,V,17,h[6]),QA=C(QA,uA,CA,_,aA,22,h[7]),_=C(_,QA,uA,CA,AA,7,h[8]),CA=C(CA,_,QA,uA,gA,12,h[9]),uA=C(uA,CA,_,QA,MA,17,h[10]),QA=C(QA,uA,CA,_,cA,22,h[11]),_=C(_,QA,uA,CA,lA,7,h[12]),CA=C(CA,_,QA,uA,BA,12,h[13]),uA=C(uA,CA,_,QA,vA,17,h[14]),_=e(_,QA=C(QA,uA,CA,_,xA,22,h[15]),uA,CA,P,5,h[16]),CA=e(CA,_,QA,uA,V,9,h[17]),uA=e(uA,CA,_,QA,cA,14,h[18]),QA=e(QA,uA,CA,_,v,20,h[19]),_=e(_,QA,uA,CA,N,5,h[20]),CA=e(CA,_,QA,uA,MA,9,h[21]),uA=e(uA,CA,_,QA,xA,14,h[22]),QA=e(QA,uA,CA,_,R,20,h[23]),_=e(_,QA,uA,CA,gA,5,h[24]),CA=e(CA,_,QA,uA,vA,9,h[25]),uA=e(uA,CA,_,QA,x,14,h[26]),QA=e(QA,uA,CA,_,AA,20,h[27]),_=e(_,QA,uA,CA,BA,5,h[28]),CA=e(CA,_,QA,uA,T,9,h[29]),uA=e(uA,CA,_,QA,aA,14,h[30]),_=f(_,QA=e(QA,uA,CA,_,lA,20,h[31]),uA,CA,N,4,h[32]),CA=f(CA,_,QA,uA,AA,11,h[33]),uA=f(uA,CA,_,QA,cA,16,h[34]),QA=f(QA,uA,CA,_,vA,23,h[35]),_=f(_,QA,uA,CA,P,4,h[36]),CA=f(CA,_,QA,uA,R,11,h[37]),uA=f(uA,CA,_,QA,aA,16,h[38]),QA=f(QA,uA,CA,_,MA,23,h[39]),_=f(_,QA,uA,CA,BA,4,h[40]),CA=f(CA,_,QA,uA,v,11,h[41]),uA=f(uA,CA,_,QA,x,16,h[42]),QA=f(QA,uA,CA,_,V,23,h[43]),_=f(_,QA,uA,CA,gA,4,h[44]),CA=f(CA,_,QA,uA,lA,11,h[45]),uA=f(uA,CA,_,QA,xA,16,h[46]),_=g(_,QA=f(QA,uA,CA,_,T,23,h[47]),uA,CA,v,6,h[48]),CA=g(CA,_,QA,uA,aA,10,h[49]),uA=g(uA,CA,_,QA,vA,15,h[50]),QA=g(QA,uA,CA,_,N,21,h[51]),_=g(_,QA,uA,CA,lA,6,h[52]),CA=g(CA,_,QA,uA,x,10,h[53]),uA=g(uA,CA,_,QA,MA,15,h[54]),QA=g(QA,uA,CA,_,P,21,h[55]),_=g(_,QA,uA,CA,AA,6,h[56]),CA=g(CA,_,QA,uA,xA,10,h[57]),uA=g(uA,CA,_,QA,V,15,h[58]),QA=g(QA,uA,CA,_,BA,21,h[59]),_=g(_,QA,uA,CA,R,6,h[60]),CA=g(CA,_,QA,uA,cA,10,h[61]),uA=g(uA,CA,_,QA,T,15,h[62]),QA=g(QA,uA,CA,_,gA,21,h[63]),D[0]=D[0]+_|0,D[1]=D[1]+QA|0,D[2]=D[2]+uA|0,D[3]=D[3]+CA|0},_doFinalize:function(){var Q=this._data,d=Q.words,F=8*this._nDataBytes,m=8*Q.sigBytes;d[m>>>5]|=128<<24-m%32;var p=r.floor(F/4294967296),D=F;d[15+(m+64>>>9<<4)]=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),d[14+(m+64>>>9<<4)]=16711935&(D<<8|D>>>24)|4278255360&(D<<24|D>>>8),Q.sigBytes=4*(d.length+1),this._process();for(var v=this._hash,P=v.words,T=0;T<4;T++){var x=P[T];P[T]=16711935&(x<<8|x>>>24)|4278255360&(x<<24|x>>>8)}return v},clone:function(){var Q=o.clone.call(this);return Q._hash=this._hash.clone(),Q}});function C(w,Q,d,F,m,p,D){var v=w+(Q&d|~Q&F)+m+D;return(v<>>32-p)+Q}function e(w,Q,d,F,m,p,D){var v=w+(Q&F|d&~F)+m+D;return(v<>>32-p)+Q}function f(w,Q,d,F,m,p,D){var v=w+(Q^d^F)+m+D;return(v<>>32-p)+Q}function g(w,Q,d,F,m,p,D){var v=w+(d^(Q|~F))+m+D;return(v<>>32-p)+Q}a.MD5=o._createHelper(u),a.HmacMD5=o._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 r=c.lib.BlockCipherMode.extend();function a(s,E,o,l){var h,u=this._iv;u?(h=u.slice(0),this._iv=void 0):h=this._prevBlock,l.encryptBlock(h,0);for(var C=0;C>24&255)){var l=o>>16&255,h=o>>8&255,u=255&o;255===l?(l=0,255===h?(h=0,255===u?u=0:++u):++h):++l,o=0,o+=l<<16,o+=h<<8,o+=u}else o+=1<<24;return o}var E=r.Encryptor=r.extend({processBlock:function(l,h){var o,u=this._cipher,C=u.blockSize,e=this._iv,f=this._counter;e&&(f=this._counter=e.slice(0),this._iv=void 0),0===((o=f)[0]=a(o[0]))&&(o[1]=a(o[1]));var g=f.slice(0);u.encryptBlock(g,0);for(var w=0;w>>2]|=l<<24-h%4*8,a.sigBytes+=l},unpad:function(a){a.sigBytes-=255&a.words[a.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(a,s){var E=4*s,o=E-a.sigBytes%E;a.concat(c.lib.WordArray.random(o-1)).concat(c.lib.WordArray.create([o<<24],1))},unpad:function(a){a.sigBytes-=255&a.words[a.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(a,s){a.concat(c.lib.WordArray.create([2147483648],1)),c.pad.ZeroPadding.pad(a,s)},unpad:function(a){c.pad.ZeroPadding.unpad(a),a.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(a,s){var E=4*s;a.clamp(),a.sigBytes+=E-(a.sigBytes%E||E)},unpad:function(a){var s=a.words,E=a.sigBytes-1;for(E=a.sigBytes-1;E>=0;E--)if(s[E>>>2]>>>24-E%4*8&255){a.sigBytes=E+1;break}}},c.pad.ZeroPadding}(n(757),n(1582))},3486:function(Y,I,n){"use strict";n(2222),Y.exports=function(c){return E=(a=(r=c).lib).WordArray,h=(o=r.algo).HMAC,u=o.PBKDF2=(s=a.Base).extend({cfg:s.extend({keySize:4,hasher:o.SHA1,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,f){for(var g=this.cfg,w=h.create(g.hasher,e),Q=E.create(),d=E.create([1]),F=Q.words,m=d.words,p=g.keySize,D=g.iterations;F.length>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],Q=this._C=[f[2]<<16|f[2]>>>16,4294901760&f[0]|65535&f[1],f[3]<<16|f[3]>>>16,4294901760&f[1]|65535&f[2],f[0]<<16|f[0]>>>16,4294901760&f[2]|65535&f[3],f[1]<<16|f[1]>>>16,4294901760&f[3]|65535&f[0]];this._b=0;for(var d=0;d<4;d++)C.call(this);for(d=0;d<8;d++)Q[d]^=w[d+4&7];if(g){var F=g.words,m=F[0],p=F[1],D=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),v=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),P=D>>>16|4294901760&v,T=v<<16|65535&D;for(Q[0]^=D,Q[1]^=P,Q[2]^=v,Q[3]^=T,Q[4]^=D,Q[5]^=P,Q[6]^=v,Q[7]^=T,d=0;d<4;d++)C.call(this)}},_doProcessBlock:function(f,g){var w=this._X;C.call(this),o[0]=w[0]^w[5]>>>16^w[3]<<16,o[1]=w[2]^w[7]>>>16^w[5]<<16,o[2]=w[4]^w[1]>>>16^w[7]<<16,o[3]=w[6]^w[3]>>>16^w[1]<<16;for(var Q=0;Q<4;Q++)o[Q]=16711935&(o[Q]<<8|o[Q]>>>24)|4278255360&(o[Q]<<24|o[Q]>>>8),f[g+Q]^=o[Q]},blockSize:4,ivSize:2});function C(){for(var e=this._X,f=this._C,g=0;g<8;g++)l[g]=f[g];for(f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0,g=0;g<8;g++){var w=e[g]+f[g],Q=65535&w,d=w>>>16;h[g]=((Q*Q>>>17)+Q*d>>>15)+d*d^((4294901760&w)*w|0)+((65535&w)*w|0)}e[0]=h[0]+(h[7]<<16|h[7]>>>16)+(h[6]<<16|h[6]>>>16)|0,e[1]=h[1]+(h[0]<<8|h[0]>>>24)+h[7]|0,e[2]=h[2]+(h[1]<<16|h[1]>>>16)+(h[0]<<16|h[0]>>>16)|0,e[3]=h[3]+(h[2]<<8|h[2]>>>24)+h[1]|0,e[4]=h[4]+(h[3]<<16|h[3]>>>16)+(h[2]<<16|h[2]>>>16)|0,e[5]=h[5]+(h[4]<<8|h[4]>>>24)+h[3]|0,e[6]=h[6]+(h[5]<<16|h[5]>>>16)+(h[4]<<16|h[4]>>>16)|0,e[7]=h[7]+(h[6]<<8|h[6]>>>24)+h[5]|0}r.RabbitLegacy=s._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 r=c,s=r.lib.StreamCipher,o=[],l=[],h=[],u=r.algo.Rabbit=s.extend({_doReset:function(){for(var f=this._key.words,g=this.cfg.iv,w=0;w<4;w++)f[w]=16711935&(f[w]<<8|f[w]>>>24)|4278255360&(f[w]<<24|f[w]>>>8);var Q=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],d=this._C=[f[2]<<16|f[2]>>>16,4294901760&f[0]|65535&f[1],f[3]<<16|f[3]>>>16,4294901760&f[1]|65535&f[2],f[0]<<16|f[0]>>>16,4294901760&f[2]|65535&f[3],f[1]<<16|f[1]>>>16,4294901760&f[3]|65535&f[0]];for(this._b=0,w=0;w<4;w++)C.call(this);for(w=0;w<8;w++)d[w]^=Q[w+4&7];if(g){var F=g.words,m=F[0],p=F[1],D=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),v=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),P=D>>>16|4294901760&v,T=v<<16|65535&D;for(d[0]^=D,d[1]^=P,d[2]^=v,d[3]^=T,d[4]^=D,d[5]^=P,d[6]^=v,d[7]^=T,w=0;w<4;w++)C.call(this)}},_doProcessBlock:function(f,g){var w=this._X;C.call(this),o[0]=w[0]^w[5]>>>16^w[3]<<16,o[1]=w[2]^w[7]>>>16^w[5]<<16,o[2]=w[4]^w[1]>>>16^w[7]<<16,o[3]=w[6]^w[3]>>>16^w[1]<<16;for(var Q=0;Q<4;Q++)o[Q]=16711935&(o[Q]<<8|o[Q]>>>24)|4278255360&(o[Q]<<24|o[Q]>>>8),f[g+Q]^=o[Q]},blockSize:4,ivSize:2});function C(){for(var e=this._X,f=this._C,g=0;g<8;g++)l[g]=f[g];for(f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0,g=0;g<8;g++){var w=e[g]+f[g],Q=65535&w,d=w>>>16;h[g]=((Q*Q>>>17)+Q*d>>>15)+d*d^((4294901760&w)*w|0)+((65535&w)*w|0)}e[0]=h[0]+(h[7]<<16|h[7]>>>16)+(h[6]<<16|h[6]>>>16)|0,e[1]=h[1]+(h[0]<<8|h[0]>>>24)+h[7]|0,e[2]=h[2]+(h[1]<<16|h[1]>>>16)+(h[0]<<16|h[0]>>>16)|0,e[3]=h[3]+(h[2]<<8|h[2]>>>24)+h[1]|0,e[4]=h[4]+(h[3]<<16|h[3]>>>16)+(h[2]<<16|h[2]>>>16)|0,e[5]=h[5]+(h[4]<<8|h[4]>>>24)+h[3]|0,e[6]=h[6]+(h[5]<<16|h[5]>>>16)+(h[4]<<16|h[4]>>>16)|0,e[7]=h[7]+(h[6]<<8|h[6]>>>24)+h[5]|0}r.Rabbit=s._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 r=c,s=r.lib.StreamCipher,E=r.algo,o=E.RC4=s.extend({_doReset:function(){for(var C=this._key,e=C.words,f=C.sigBytes,g=this._S=[],w=0;w<256;w++)g[w]=w;w=0;for(var Q=0;w<256;w++){var d=w%f,m=g[w];g[w]=g[Q=(Q+g[w]+(e[d>>>2]>>>24-d%4*8&255))%256],g[Q]=m}this._i=this._j=0},_doProcessBlock:function(C,e){C[e]^=l.call(this)},keySize:8,ivSize:0});function l(){for(var u=this._S,C=this._i,e=this._j,f=0,g=0;g<4;g++){var w=u[C=(C+1)%256];u[C]=u[e=(e+u[C])%256],u[e]=w,f|=u[(u[C]+u[e])%256]<<24-8*g}return this._i=C,this._j=e,f}r.RC4=s._createHelper(o);var h=E.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var C=this.cfg.drop;C>0;C--)l.call(this)}});r.RC4Drop=s._createHelper(h)}(),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(r){var a=c,s=a.lib,E=s.WordArray,o=s.Hasher,l=a.algo,h=E.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=E.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=E.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=E.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=E.create([0,1518500249,1859775393,2400959708,2840853838]),g=E.create([1352829926,1548603684,1836072691,2053994217,0]),w=l.RIPEMD160=o.extend({_doReset:function(){this._hash=E.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(P,T){for(var x=0;x<16;x++){var R=T+x,N=P[R];P[R]=16711935&(N<<8|N>>>24)|4278255360&(N<<24|N>>>8)}var BA,vA,xA,_,QA,uA,CA,TA,GA,VA,q,V=this._hash.words,aA=f.words,AA=g.words,gA=h.words,MA=u.words,cA=C.words,lA=e.words;for(uA=BA=V[0],CA=vA=V[1],TA=xA=V[2],GA=_=V[3],VA=QA=V[4],x=0;x<80;x+=1)q=BA+P[T+gA[x]]|0,q+=x<16?Q(vA,xA,_)+aA[0]:x<32?d(vA,xA,_)+aA[1]:x<48?F(vA,xA,_)+aA[2]:x<64?m(vA,xA,_)+aA[3]:p(vA,xA,_)+aA[4],q=(q=D(q|=0,cA[x]))+QA|0,BA=QA,QA=_,_=D(xA,10),xA=vA,vA=q,q=uA+P[T+MA[x]]|0,q+=x<16?p(CA,TA,GA)+AA[0]:x<32?m(CA,TA,GA)+AA[1]:x<48?F(CA,TA,GA)+AA[2]:x<64?d(CA,TA,GA)+AA[3]:Q(CA,TA,GA)+AA[4],q=(q=D(q|=0,lA[x]))+VA|0,uA=VA,VA=GA,GA=D(TA,10),TA=CA,CA=q;q=V[1]+xA+GA|0,V[1]=V[2]+_+VA|0,V[2]=V[3]+QA+uA|0,V[3]=V[4]+BA+CA|0,V[4]=V[0]+vA+TA|0,V[0]=q},_doFinalize:function(){var P=this._data,T=P.words,x=8*this._nDataBytes,R=8*P.sigBytes;T[R>>>5]|=128<<24-R%32,T[14+(R+64>>>9<<4)]=16711935&(x<<8|x>>>24)|4278255360&(x<<24|x>>>8),P.sigBytes=4*(T.length+1),this._process();for(var N=this._hash,V=N.words,aA=0;aA<5;aA++){var AA=V[aA];V[aA]=16711935&(AA<<8|AA>>>24)|4278255360&(AA<<24|AA>>>8)}return N},clone:function(){var P=o.clone.call(this);return P._hash=this._hash.clone(),P}});function Q(v,P,T){return v^P^T}function d(v,P,T){return v&P|~v&T}function F(v,P,T){return(v|~P)^T}function m(v,P,T){return v&T|P&~T}function p(v,P,T){return v^(P|~T)}function D(v,P){return v<>>32-P}a.RIPEMD160=o._createHelper(w),a.HmacRIPEMD160=o._createHmacHelper(w)}(Math),c.RIPEMD160}(n(757))},9865:function(Y,I,n){"use strict";Y.exports=function(c){return s=(a=(r=c).lib).WordArray,l=[],h=r.algo.SHA1=(E=a.Hasher).extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(C,e){for(var f=this._hash.words,g=f[0],w=f[1],Q=f[2],d=f[3],F=f[4],m=0;m<80;m++){if(m<16)l[m]=0|C[e+m];else{var p=l[m-3]^l[m-8]^l[m-14]^l[m-16];l[m]=p<<1|p>>>31}var D=(g<<5|g>>>27)+F+l[m];D+=m<20?1518500249+(w&Q|~w&d):m<40?1859775393+(w^Q^d):m<60?(w&Q|w&d|Q&d)-1894007588:(w^Q^d)-899497514,F=d,d=Q,Q=w<<30|w>>>2,w=g,g=D}f[0]=f[0]+g|0,f[1]=f[1]+w|0,f[2]=f[2]+Q|0,f[3]=f[3]+d|0,f[4]=f[4]+F|0},_doFinalize:function(){var C=this._data,e=C.words,f=8*this._nDataBytes,g=8*C.sigBytes;return e[g>>>5]|=128<<24-g%32,e[14+(g+64>>>9<<4)]=Math.floor(f/4294967296),e[15+(g+64>>>9<<4)]=f,C.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var C=E.clone.call(this);return C._hash=this._hash.clone(),C}}),r.SHA1=E._createHelper(h),r.HmacSHA1=E._createHmacHelper(h),c.SHA1;var r,a,s,E,l,h}(n(757))},6876:function(Y,I,n){"use strict";Y.exports=function(c){return s=(r=c).lib.WordArray,l=(E=r.algo).SHA224=(o=E.SHA256).extend({_doReset:function(){this._hash=new s.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var u=o._doFinalize.call(this);return u.sigBytes-=4,u}}),r.SHA224=o._createHelper(l),r.HmacSHA224=o._createHmacHelper(l),c.SHA224;var r,s,E,o,l}(n(757),n(8921))},8921:function(Y,I,n){"use strict";n(7042),Y.exports=function(c){return function(r){var a=c,s=a.lib,E=s.WordArray,o=s.Hasher,l=a.algo,h=[],u=[];!function(){function f(d){for(var F=r.sqrt(d),m=2;m<=F;m++)if(!(d%m))return!1;return!0}function g(d){return 4294967296*(d-(0|d))|0}for(var w=2,Q=0;Q<64;)f(w)&&(Q<8&&(h[Q]=g(r.pow(w,.5))),u[Q]=g(r.pow(w,1/3)),Q++),w++}();var C=[],e=l.SHA256=o.extend({_doReset:function(){this._hash=new E.init(h.slice(0))},_doProcessBlock:function(g,w){for(var Q=this._hash.words,d=Q[0],F=Q[1],m=Q[2],p=Q[3],D=Q[4],v=Q[5],P=Q[6],T=Q[7],x=0;x<64;x++){if(x<16)C[x]=0|g[w+x];else{var R=C[x-15],V=C[x-2];C[x]=((R<<25|R>>>7)^(R<<14|R>>>18)^R>>>3)+C[x-7]+((V<<15|V>>>17)^(V<<13|V>>>19)^V>>>10)+C[x-16]}var gA=d&F^d&m^F&m,lA=T+((D<<26|D>>>6)^(D<<21|D>>>11)^(D<<7|D>>>25))+(D&v^~D&P)+u[x]+C[x];T=P,P=v,v=D,D=p+lA|0,p=m,m=F,F=d,d=lA+(((d<<30|d>>>2)^(d<<19|d>>>13)^(d<<10|d>>>22))+gA)|0}Q[0]=Q[0]+d|0,Q[1]=Q[1]+F|0,Q[2]=Q[2]+m|0,Q[3]=Q[3]+p|0,Q[4]=Q[4]+D|0,Q[5]=Q[5]+v|0,Q[6]=Q[6]+P|0,Q[7]=Q[7]+T|0},_doFinalize:function(){var g=this._data,w=g.words,Q=8*this._nDataBytes,d=8*g.sigBytes;return w[d>>>5]|=128<<24-d%32,w[14+(d+64>>>9<<4)]=r.floor(Q/4294967296),w[15+(d+64>>>9<<4)]=Q,g.sigBytes=4*w.length,this._process(),this._hash},clone:function(){var g=o.clone.call(this);return g._hash=this._hash.clone(),g}});a.SHA256=o._createHelper(e),a.HmacSHA256=o._createHmacHelper(e)}(Math),c.SHA256}(n(757))},8342:function(Y,I,n){"use strict";n(7042),Y.exports=function(c){return function(r){var a=c,s=a.lib,E=s.WordArray,o=s.Hasher,h=a.x64.Word,u=a.algo,C=[],e=[],f=[];!function(){for(var Q=1,d=0,F=0;F<24;F++){C[Q+5*d]=(F+1)*(F+2)/2%64;var p=(2*Q+3*d)%5;Q=d%5,d=p}for(Q=0;Q<5;Q++)for(d=0;d<5;d++)e[Q+5*d]=d+(2*Q+3*d)%5*5;for(var D=1,v=0;v<24;v++){for(var P=0,T=0,x=0;x<7;x++){if(1&D){var R=(1<>>24)|4278255360&(v<<24|v>>>8),(T=m[D]).high^=P=16711935&(P<<8|P>>>24)|4278255360&(P<<24|P>>>8),T.low^=v}for(var x=0;x<24;x++){for(var R=0;R<5;R++){for(var N=0,V=0,aA=0;aA<5;aA++)N^=(T=m[R+5*aA]).high,V^=T.low;var AA=g[R];AA.high=N,AA.low=V}for(R=0;R<5;R++){var gA=g[(R+4)%5],MA=g[(R+1)%5],cA=MA.high,lA=MA.low;for(N=gA.high^(cA<<1|lA>>>31),V=gA.low^(lA<<1|cA>>>31),aA=0;aA<5;aA++)(T=m[R+5*aA]).high^=N,T.low^=V}for(var BA=1;BA<25;BA++){var vA=(T=m[BA]).high,xA=T.low,_=C[BA];_<32?(N=vA<<_|xA>>>32-_,V=xA<<_|vA>>>32-_):(N=xA<<_-32|vA>>>64-_,V=vA<<_-32|xA>>>64-_);var QA=g[e[BA]];QA.high=N,QA.low=V}var uA=g[0],CA=m[0];for(uA.high=CA.high,uA.low=CA.low,R=0;R<5;R++)for(aA=0;aA<5;aA++){var TA=g[BA=R+5*aA],GA=g[(R+1)%5+5*aA],VA=g[(R+2)%5+5*aA];(T=m[BA]).high=TA.high^~GA.high&VA.high,T.low=TA.low^~GA.low&VA.low}var T,q=f[x];(T=m[0]).high^=q.high,T.low^=q.low}},_doFinalize:function(){var d=this._data,F=d.words,p=8*d.sigBytes,D=32*this.blockSize;F[p>>>5]|=1<<24-p%32,F[(r.ceil((p+1)/D)*D>>>5)-1]|=128,d.sigBytes=4*F.length,this._process();for(var v=this._state,P=this.cfg.outputLength/8,T=P/8,x=[],R=0;R>>24)|4278255360&(V<<24|V>>>8),x.push(aA=16711935&(aA<<8|aA>>>24)|4278255360&(aA<<24|aA>>>8)),x.push(V)}return new E.init(x,P)},clone:function(){for(var d=o.clone.call(this),F=d._state=this._state.slice(0),m=0;m<25;m++)F[m]=F[m].clone();return d}});a.SHA3=o._createHelper(w),a.HmacSHA3=o._createHmacHelper(w)}(Math),c.SHA3}(n(757),n(2601))},8122:function(Y,I,n){"use strict";Y.exports=function(c){return s=(a=(r=c).x64).Word,E=a.WordArray,h=(o=r.algo).SHA384=(l=o.SHA512).extend({_doReset:function(){this._hash=new E.init([new s.init(3418070365,3238371032),new s.init(1654270250,914150663),new s.init(2438529370,812702999),new s.init(355462360,4144912697),new s.init(1731405415,4290775857),new s.init(2394180231,1750603025),new s.init(3675008525,1694076839),new s.init(1203062813,3204075428)])},_doFinalize:function(){var C=l._doFinalize.call(this);return C.sigBytes-=16,C}}),r.SHA384=l._createHelper(h),r.HmacSHA384=l._createHmacHelper(h),c.SHA384;var r,a,s,E,o,l,h}(n(757),n(2601),n(7991))},7991:function(Y,I,n){"use strict";var r;r=function(c){return function(){var r=c,s=r.lib.Hasher,E=r.x64,o=E.Word,l=E.WordArray,h=r.algo;function u(){return o.create.apply(o,arguments)}var C=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],e=[];!function(){for(var g=0;g<80;g++)e[g]=u()}();var f=h.SHA512=s.extend({_doReset:function(){this._hash=new l.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(w,Q){for(var d=this._hash.words,F=d[0],m=d[1],p=d[2],D=d[3],v=d[4],P=d[5],T=d[6],x=d[7],R=F.high,N=F.low,V=m.high,aA=m.low,AA=p.high,gA=p.low,MA=D.high,cA=D.low,lA=v.high,BA=v.low,vA=P.high,xA=P.low,_=T.high,QA=T.low,uA=x.high,CA=x.low,TA=R,GA=N,VA=V,q=aA,J=AA,$=gA,W=MA,EA=cA,DA=lA,rA=BA,hA=vA,HA=xA,nt=_,st=QA,yA=uA,_A=CA,ft=0;ft<80;ft++){var lt,SA,OA=e[ft];if(ft<16)SA=OA.high=0|w[Q+2*ft],lt=OA.low=0|w[Q+2*ft+1];else{var WA=e[ft-15],zA=WA.high,ot=WA.low,dt=(ot>>>1|zA<<31)^(ot>>>8|zA<<24)^(ot>>>7|zA<<25),vt=e[ft-2],Pt=vt.high,G=vt.low,L=(G>>>19|Pt<<13)^(G<<3|Pt>>>29)^(G>>>6|Pt<<26),dA=e[ft-7],eA=e[ft-16],Ft=eA.low;OA.high=SA=(SA=(SA=((zA>>>1|ot<<31)^(zA>>>8|ot<<24)^zA>>>7)+dA.high+((lt=dt+dA.low)>>>0
>>0?1:0))+((Pt>>>19|G<<13)^(Pt<<3|G>>>29)^Pt>>>6)+((lt+=L)>>>0>>0?1:0))+eA.high+((lt+=Ft)>>>0>>0?1:0),OA.low=lt}var ie,j=DA&hA^~DA&nt,XA=rA&HA^~rA&st,et=TA&VA^TA&J^VA&J,ct=(GA>>>28|TA<<4)^(GA<<30|TA>>>2)^(GA<<25|TA>>>7),Rt=C[ft],Ne=Rt.low,$t=yA+((DA>>>14|rA<<18)^(DA>>>18|rA<<14)^(DA<<23|rA>>>9))+((ie=_A+((rA>>>14|DA<<18)^(rA>>>18|DA<<14)^(rA<<23|DA>>>9)))>>>0<_A>>>0?1:0),me=ct+(GA&q^GA&$^q&$);yA=nt,_A=st,nt=hA,st=HA,hA=DA,HA=rA,DA=W+($t=($t=($t=$t+j+((ie+=XA)>>>0>>0?1:0))+Rt.high+((ie+=Ne)>>>0>>0?1:0))+SA+((ie+=lt)>>>0>>0?1:0))+((rA=EA+ie|0)>>>0>>0?1:0)|0,W=J,EA=$,J=VA,$=q,VA=TA,q=GA,TA=$t+(((TA>>>28|GA<<4)^(TA<<30|GA>>>2)^(TA<<25|GA>>>7))+et+(me>>>0>>0?1:0))+((GA=ie+me|0)>>>0>>0?1:0)|0}N=F.low=N+GA,F.high=R+TA+(N>>>0>>0?1:0),aA=m.low=aA+q,m.high=V+VA+(aA>>>0>>0?1:0),gA=p.low=gA+$,p.high=AA+J+(gA>>>0<$>>>0?1:0),cA=D.low=cA+EA,D.high=MA+W+(cA>>>0>>0?1:0),BA=v.low=BA+rA,v.high=lA+DA+(BA>>>0>>0?1:0),xA=P.low=xA+HA,P.high=vA+hA+(xA>>>0>>0?1:0),QA=T.low=QA+st,T.high=_+nt+(QA>>>0>>0?1:0),CA=x.low=CA+_A,x.high=uA+yA+(CA>>>0<_A>>>0?1:0)},_doFinalize:function(){var w=this._data,Q=w.words,d=8*this._nDataBytes,F=8*w.sigBytes;return Q[F>>>5]|=128<<24-F%32,Q[30+(F+128>>>10<<5)]=Math.floor(d/4294967296),Q[31+(F+128>>>10<<5)]=d,w.sigBytes=4*Q.length,this._process(),this._hash.toX32()},clone:function(){var w=s.clone.call(this);return w._hash=this._hash.clone(),w},blockSize:32});r.SHA512=s._createHelper(f),r.HmacSHA512=s._createHmacHelper(f)}(),c.SHA512},Y.exports=r(n(757),n(2601))},8437:function(Y,I,n){"use strict";n(7042),Y.exports=function(c){return function(){var r=c,a=r.lib,s=a.WordArray,E=a.BlockCipher,o=r.algo,l=[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],h=[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=o.DES=E.extend({_doReset:function(){for(var m=this._key.words,p=[],D=0;D<56;D++){var v=l[D]-1;p[D]=m[v>>>5]>>>31-v%32&1}for(var P=this._subKeys=[],T=0;T<16;T++){var x=P[T]=[],R=u[T];for(D=0;D<24;D++)x[D/6|0]|=p[(h[D]-1+R)%28]<<31-D%6,x[4+(D/6|0)]|=p[28+(h[D+24]-1+R)%28]<<31-D%6;for(x[0]=x[0]<<1|x[0]>>>31,D=1;D<7;D++)x[D]=x[D]>>>4*(D-1)+3;x[7]=x[7]<<5|x[7]>>>27}var N=this._invSubKeys=[];for(D=0;D<16;D++)N[D]=P[15-D]},encryptBlock:function(F,m){this._doCryptBlock(F,m,this._subKeys)},decryptBlock:function(F,m){this._doCryptBlock(F,m,this._invSubKeys)},_doCryptBlock:function(F,m,p){this._lBlock=F[m],this._rBlock=F[m+1],g.call(this,4,252645135),g.call(this,16,65535),w.call(this,2,858993459),w.call(this,8,16711935),g.call(this,1,1431655765);for(var D=0;D<16;D++){for(var v=p[D],P=this._lBlock,T=this._rBlock,x=0,R=0;R<8;R++)x|=C[R][((T^v[R])&e[R])>>>0];this._lBlock=T,this._rBlock=P^x}var N=this._lBlock;this._lBlock=this._rBlock,this._rBlock=N,g.call(this,1,1431655765),w.call(this,8,16711935),w.call(this,2,858993459),g.call(this,16,65535),g.call(this,4,252645135),F[m]=this._lBlock,F[m+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function g(d,F){var m=(this._lBlock>>>d^this._rBlock)&F;this._rBlock^=m,this._lBlock^=m<>>d^this._lBlock)&F;this._lBlock^=m,this._rBlock^=m<192.");var p=m.slice(0,2),D=m.length<4?m.slice(0,2):m.slice(2,4),v=m.length<6?m.slice(0,2):m.slice(4,6);this._des1=f.createEncryptor(s.create(p)),this._des2=f.createEncryptor(s.create(D)),this._des3=f.createEncryptor(s.create(v))},encryptBlock:function(F,m){this._des1.encryptBlock(F,m),this._des2.decryptBlock(F,m),this._des3.encryptBlock(F,m)},decryptBlock:function(F,m){this._des3.decryptBlock(F,m),this._des2.encryptBlock(F,m),this._des1.decryptBlock(F,m)},keySize:6,ivSize:2,blockSize:2});r.TripleDES=E._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 E=(s=c.lib).Base,o=s.WordArray,(l=c.x64={}).Word=E.extend({init:function(e,f){this.high=e,this.low=f}}),l.WordArray=E.extend({init:function(e,f){e=this.words=e||[],this.sigBytes=null!=f?f:8*e.length},toX32:function(){for(var e=this.words,f=e.length,g=[],w=0;w=l.length?{done:!0}:{done:!1,value:l[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 a(l,h){(null==h||h>l.length)&&(h=l.length);for(var u=0,C=new Array(h);u=Q)){v.next=13;break}return v.next=13,[Q,d,f.tags[F]];case 13:w=f.stateTable[1][p],Q=null;case 15:0!==w&&null==Q&&(Q=m),f.accepting[w]&&(d=m),0===w&&(w=1);case 18:m++,v.next=5;break;case 21:if(!(null!=Q&&null!=d&&d>=Q)){v.next=24;break}return v.next=24,[Q,d,f.tags[w]];case 24:case"end":return v.stop()}},g)}),e},h.apply=function(C,e){for(var g,f=c(this.match(C));!(g=f()).done;)for(var p,w=g.value,Q=w[0],d=w[1],m=c(w[2]);!(p=m()).done;){var D=p.value;"function"==typeof e[D]&&e[D](Q,d,C.slice(Q,d+1))}},l}()},8478:function(Y,I,n){"use strict";var c=n(8823).Buffer;n(7042),n(6699);var r=n(3857),a=n(2635);Y.exports=function(){function s(o){var l;for(this.data=o,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.text={};;){var h=this.readUInt32(),u="";for(l=0;l<4;l++)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(h);break;case"IDAT":for(l=0;l0)for(l=0;lthis.data.length)throw new Error("Incomplete or corrupt PNG file")}}s.decode=function(l,h){return r.readFile(l,function(u,C){return new s(C).decode(function(f){return h(f)})})},s.load=function(l){return new s(r.readFileSync(l))};var E=s.prototype;return E.read=function(l){for(var h=new Array(l),u=0;u=2*(1<<30))throw new RangeError('The value "'+l+'" is invalid for option "size"');var C=a(l);return h&&0!==h.length?"string"==typeof u?C.fill(h,u):C.fill(h):C.fill(0),C}),!s.kStringMaxLength)try{s.kStringMaxLength=c.binding("buffer").kStringMaxLength}catch(l){}s.constants||(s.constants={MAX_LENGTH:s.kMaxLength},s.kStringMaxLength&&(s.constants.MAX_STRING_LENGTH=s.kStringMaxLength)),Y.exports=s},3361:function(Y,I,n){"use strict";function c(g,w){var Q=Object.keys(g);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(g);w&&(d=d.filter(function(F){return Object.getOwnPropertyDescriptor(g,F).enumerable})),Q.push.apply(Q,d)}return Q}function a(g,w,Q){return w in g?Object.defineProperty(g,w,{value:Q,enumerable:!0,configurable:!0,writable:!0}):g[w]=Q,g}function E(g,w){for(var Q=0;Q0?this.tail.next=d:this.head=d,this.tail=d,++this.length}},{key:"unshift",value:function(Q){var d={data:Q,next:this.head};0===this.length&&(this.tail=d),this.head=d,++this.length}},{key:"shift",value:function(){if(0!==this.length){var Q=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,Q}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Q){if(0===this.length)return"";for(var d=this.head,F=""+d.data;d=d.next;)F+=Q+d.data;return F}},{key:"concat",value:function(Q){if(0===this.length)return h.alloc(0);for(var d=h.allocUnsafe(Q>>>0),F=this.head,m=0;F;)f(F.data,d,m),m+=F.data.length,F=F.next;return d}},{key:"consume",value:function(Q,d){var F;return Qp.length?p.length:Q;if(m+=D===p.length?p:p.slice(0,Q),0==(Q-=D)){D===p.length?(++F,this.head=d.next?d.next:this.tail=null):(this.head=d,d.data=p.slice(D));break}++F}return this.length-=F,m}},{key:"_getBuffer",value:function(Q){var d=h.allocUnsafe(Q),F=this.head,m=1;for(F.data.copy(d),Q-=F.data.length;F=F.next;){var p=F.data,D=Q>p.length?p.length:Q;if(p.copy(d,d.length-Q,0,D),0==(Q-=D)){D===p.length?(++m,this.head=F.next?F.next:this.tail=null):(this.head=F,F.data=p.slice(D));break}++m}return this.length-=m,d}},{key:e,value:function(Q,d){return C(this,function(g){for(var w=1;wIA.length)&&(H=IA.length);for(var S=0,X=new Array(H);S=IA.length?{done:!0}:{done:!1,value:IA[X++]}},e:function(ut){throw ut},f:Z}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var $A,fA=!0,pA=!1;return{s:function(){S=IA[Symbol.iterator]()},n:function(){var ut=S.next();return fA=ut.done,ut},e:function(ut){pA=!0,$A=ut},f:function(){try{!fA&&null!=S.return&&S.return()}finally{if(pA)throw $A}}}}var xA=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 H=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f(this,IA),this._items={},this.limits="boolean"!=typeof H.limits||H.limits}return w(IA,[{key:"add",value:function(S,X){return this._items[S]=X}},{key:"get",value:function(S){return this._items[S]}},{key:"toString",value:function(){var S=this,X=Object.keys(this._items).sort(function(wt,Dt){return S._compareKeys(wt,Dt)}),Z=["<<"];if(this.limits&&X.length>1){var pA=X[X.length-1];Z.push(" /Limits ".concat(GA.convert([this._dataForKey(X[0]),this._dataForKey(pA)])))}Z.push(" /".concat(this._keysName()," ["));var rt,$A=vA(X);try{for($A.s();!(rt=$A.n()).done;){var ut=rt.value;Z.push(" ".concat(GA.convert(this._dataForKey(ut))," ").concat(GA.convert(this._items[ut])))}}catch(wt){$A.e(wt)}finally{$A.f()}return Z.push("]"),Z.push(">>"),Z.join("\n")}},{key:"_compareKeys",value:function(){throw new Error("Must be implemented by subclasses")}},{key:"_keysName",value:function(){throw new Error("Must be implemented by subclasses")}},{key:"_dataForKey",value:function(){throw new Error("Must be implemented by subclasses")}}]),IA}(),QA=function(H,S){return(Array(S+1).join("0")+H).slice(-S)},uA=/[\n\r\t\b\f()\\]/g,CA={"\n":"\\n","\r":"\\r","\t":"\\t","\b":"\\b","\f":"\\f","\\":"\\\\","(":"\\(",")":"\\)"},TA=function(H){var S=H.length;if(1&S)throw new Error("Buffer length must be even");for(var X=0,Z=S-1;X1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof S)return"/".concat(S);if(S instanceof String){for(var Z=S,fA=!1,pA=0,$A=Z.length;pA<$A;pA++)if(Z.charCodeAt(pA)>127){fA=!0;break}var rt;return rt=fA?TA(r.from("\ufeff".concat(Z),"utf16le")):r.from(Z.valueOf(),"ascii"),Z=(Z=X?X(rt).toString("binary"):rt.toString("binary")).replace(uA,function(Ot){return CA[Ot]}),"(".concat(Z,")")}if(r.isBuffer(S))return"<".concat(S.toString("hex"),">");if(S instanceof xA||S instanceof _)return S.toString();if(S instanceof Date){var ut="D:".concat(QA(S.getUTCFullYear(),4))+QA(S.getUTCMonth()+1,2)+QA(S.getUTCDate(),2)+QA(S.getUTCHours(),2)+QA(S.getUTCMinutes(),2)+QA(S.getUTCSeconds(),2)+"Z";return X&&(ut=(ut=X(r.from(ut,"ascii")).toString("binary")).replace(uA,function(Ot){return CA[Ot]})),"(".concat(ut,")")}if(Array.isArray(S)){var wt=S.map(function(Ot){return IA.convert(Ot,X)}).join(" ");return"[".concat(wt,"]")}if("[object Object]"==={}.toString.call(S)){var Dt=["<<"];for(var xt in S){var Yt=S[xt];Dt.push("/".concat(xt," ").concat(IA.convert(Yt,X)))}return Dt.push(">>"),Dt.join("\n")}return"number"==typeof S?IA.number(S):"".concat(S)}},{key:"number",value:function(S){if(S>-1e21&&S<1e21)return Math.round(1e6*S)/1e6;throw new Error("unsupported number: ".concat(S))}}]),IA}(),VA=function(IA){m(S,IA);var H=x(S);function S(X,Z){var fA,pA=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f(this,S),(fA=H.call(this)).document=X,fA.id=Z,fA.data=pA,fA.gen=0,fA.compress=fA.document.compress&&!fA.data.Filter,fA.uncompressedLength=0,fA.buffer=[],fA}return w(S,[{key:"write",value:function(Z){if(r.isBuffer(Z)||(Z=r.from(Z+"\n","binary")),this.uncompressedLength+=Z.length,null==this.data.Length&&(this.data.Length=0),this.buffer.push(Z),this.data.Length+=Z.length,this.compress)return this.data.Filter="FlateDecode"}},{key:"end",value:function(Z){return Z&&this.write(Z),this.finalize()}},{key:"finalize",value:function(){this.offset=this.document._offset;var Z=this.document._security?this.document._security.getEncryptFn(this.id,this.gen):null;this.buffer.length&&(this.buffer=r.concat(this.buffer),this.compress&&(this.buffer=s.default.deflateSync(this.buffer)),Z&&(this.buffer=Z(this.buffer)),this.data.Length=this.buffer.length),this.document._write("".concat(this.id," ").concat(this.gen," obj")),this.document._write(GA.convert(this.data,Z)),this.buffer.length&&(this.document._write("stream"),this.document._write(this.buffer),this.buffer=[],this.document._write("\nendstream")),this.document._write("endobj"),this.document._refEnd(this)}},{key:"toString",value:function(){return"".concat(this.id," ").concat(this.gen," R")}}]),S}(xA),q={top:72,left:72,bottom:72,right:72},J={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]},$=function(){function IA(H){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(this,IA),this.document=H,this.size=S.size||"letter",this.layout=S.layout||"portrait",this.margins="number"==typeof S.margin?{top:S.margin,left:S.margin,bottom:S.margin,right:S.margin}:S.margins||q;var X=Array.isArray(this.size)?this.size:J[this.size.toUpperCase()];this.width=X["portrait"===this.layout?0:1],this.height=X["portrait"===this.layout?1:0],this.content=this.document.ref(),this.resources=this.document.ref({ProcSet:["PDF","Text","ImageB","ImageC","ImageI"]}),this.dictionary=this.document.ref({Type:"Page",Parent:this.document._root.data.Pages,MediaBox:[0,0,this.width,this.height],Contents:this.content,Resources:this.resources}),this.markings=[]}return w(IA,[{key:"maxY",value:function(){return this.height-this.margins.bottom}},{key:"write",value:function(S){return this.content.write(S)}},{key:"end",value:function(){return this.dictionary.end(),this.resources.end(),this.content.end()}},{key:"fonts",get:function(){var S=this.resources.data;return null!=S.Font?S.Font:S.Font={}}},{key:"xobjects",get:function(){var S=this.resources.data;return null!=S.XObject?S.XObject:S.XObject={}}},{key:"ext_gstates",get:function(){var S=this.resources.data;return null!=S.ExtGState?S.ExtGState:S.ExtGState={}}},{key:"patterns",get:function(){var S=this.resources.data;return null!=S.Pattern?S.Pattern:S.Pattern={}}},{key:"colorSpaces",get:function(){var S=this.resources.data;return S.ColorSpace||(S.ColorSpace={})}},{key:"annotations",get:function(){var S=this.dictionary.data;return null!=S.Annots?S.Annots:S.Annots=[]}},{key:"structParentTreeKey",get:function(){var S=this.dictionary.data;return null!=S.StructParents?S.StructParents:S.StructParents=this.document.createStructParentTreeNextKey()}}]),IA}(),W=function(IA){m(S,IA);var H=x(S);function S(){return f(this,S),H.apply(this,arguments)}return w(S,[{key:"_compareKeys",value:function(Z,fA){return Z.localeCompare(fA)}},{key:"_keysName",value:function(){return"Names"}},{key:"_dataForKey",value:function(Z){return new String(Z)}}]),S}(_);function EA(IA,H){if(IA=H[fA]&&IA<=H[fA+1])return!0;IA>H[fA+1]?S=Z+1:X=Z-1}return!1}var DA=[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],rA=function(H){return EA(H,DA)},hA=[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],nt=[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],yA=[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],_A=[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],ft=[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],lt=function(H){return EA(H,nt)||EA(H,ft)||EA(H,yA)||EA(H,_A)},SA=[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],OA=function(H){return EA(H,SA)},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],zA=function(H){return EA(H,WA)},ot=function(H){return EA(H,nt)},It=function(H){return EA(H,hA)},dt=function(H){return H.codePointAt(0)},vt=function(H){return H[0]},Pt=function(H){return H[H.length-1]};function G(IA){for(var H=[],S=IA.length,X=0;X=55296&&Z<=56319&&S>X+1){var fA=IA.charCodeAt(X+1);if(fA>=56320&&fA<=57343){H.push(1024*(Z-55296)+fA-56320+65536),X+=1;continue}}H.push(Z)}return H}function O(IA){var H=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof IA)throw new TypeError("Expected string.");if(0===IA.length)return"";var S=G(IA).map(function(Dt){return ot(Dt)?32:Dt}).filter(function(Dt){return!It(Dt)}),X=String.fromCodePoint.apply(null,S).normalize("NFKC"),Z=G(X);if(Z.some(lt))throw new Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3");if(!0!==H.allowUnassigned&&Z.some(rA))throw new Error("Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5");var $A=Z.some(OA),rt=Z.some(zA);if($A&&rt)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=OA(dt(vt(X))),wt=OA(dt(Pt(X)));if($A&&(!ut||!wt))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 L=function(){function IA(H){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(f(this,IA),!S.ownerPassword&&!S.userPassword)throw new Error("None of owner password and user password is defined.");this.document=H,this._setupEncryption(S)}return w(IA,null,[{key:"generateFileID",value:function(){var S=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},X="".concat(S.CreationDate.getTime(),"\n");for(var Z in S)!S.hasOwnProperty(Z)||(X+="".concat(Z,": ").concat(S[Z].valueOf(),"\n"));return Kt(E.default.MD5(X))}},{key:"generateRandomWordArray",value:function(S){return E.default.lib.WordArray.random(S)}},{key:"create",value:function(S){var X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return X.ownerPassword||X.userPassword?new IA(S,X):null}}]),w(IA,[{key:"_setupEncryption",value:function(S){switch(S.pdfVersion){case"1.4":case"1.5":this.version=2;break;case"1.6":case"1.7":this.version=4;break;case"1.7ext3":this.version=5;break;default:this.version=1}var X={Filter:"Standard"};switch(this.version){case 1:case 2:case 4:this._setupEncryptionV1V2V4(this.version,X,S);break;case 5:this._setupEncryptionV5(X,S)}this.dictionary=this.document.ref(X)}},{key:"_setupEncryptionV1V2V4",value:function(S,X,Z){var fA,pA;switch(S){case 1:fA=2,this.keyBits=40,pA=function(){var IA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},H=-64;return IA.printing&&(H|=4),IA.modifying&&(H|=8),IA.copying&&(H|=16),IA.annotating&&(H|=32),H}(Z.permissions);break;case 2:fA=3,this.keyBits=128,pA=wA(Z.permissions);break;case 4:fA=4,this.keyBits=128,pA=wA(Z.permissions)}var wt,$A=bt(Z.userPassword),rt=Z.ownerPassword?bt(Z.ownerPassword):$A,ut=function(IA,H,S,X){for(var Z=X,fA=IA>=3?51:1,pA=0;pA=3?20:1;for(var ut=0;ut=3?51:1,rt=0;rt<$A;rt++)(pA=E.default.MD5(pA)).sigBytes=H/8;return pA}(fA,this.keyBits,this.document._id,$A,ut,pA),wt=2===fA?function(IA){return E.default.RC4.encrypt(bt(),IA).ciphertext}(this.encryptionKey):function(IA,H){for(var S=H.clone(),X=E.default.MD5(bt().concat(E.default.lib.WordArray.create(IA))),Z=0;Z<20;Z++){for(var fA=Math.ceil(S.sigBytes/4),pA=0;pA=2&&(X.Length=this.keyBits),4===S&&(X.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV2",Length:this.keyBits/8}},X.StmF="StdCF",X.StrF="StdCF"),X.R=fA,X.O=Kt(ut),X.U=Kt(wt),X.P=pA}},{key:"_setupEncryptionV5",value:function(S,X){this.keyBits=256;var Z=wA(X.permissions),fA=yt(X.userPassword),pA=X.ownerPassword?yt(X.ownerPassword):fA;this.encryptionKey=function(IA){return IA(32)}(IA.generateRandomWordArray);var $A=function(IA,H){var S=H(8),X=H(8);return E.default.SHA256(IA.clone().concat(S)).concat(S).concat(X)}(fA,IA.generateRandomWordArray),ut=function(IA,H,S){var X=E.default.SHA256(IA.clone().concat(H)),Z={mode:E.default.mode.CBC,padding:E.default.pad.NoPadding,iv:E.default.lib.WordArray.create(null,16)};return E.default.AES.encrypt(S,X,Z).ciphertext}(fA,E.default.lib.WordArray.create($A.words.slice(10,12),8),this.encryptionKey),wt=function(IA,H,S){var X=S(8),Z=S(8);return E.default.SHA256(IA.clone().concat(X).concat(H)).concat(X).concat(Z)}(pA,$A,IA.generateRandomWordArray),xt=function(IA,H,S,X){var Z=E.default.SHA256(IA.clone().concat(H).concat(S)),fA={mode:E.default.mode.CBC,padding:E.default.pad.NoPadding,iv:E.default.lib.WordArray.create(null,16)};return E.default.AES.encrypt(X,Z,fA).ciphertext}(pA,E.default.lib.WordArray.create(wt.words.slice(10,12),8),$A,this.encryptionKey),Yt=function(IA,H,S){var X=E.default.lib.WordArray.create([Rt(IA),4294967295,1415668834],12).concat(S(4));return E.default.AES.encrypt(X,H,{mode:E.default.mode.ECB,padding:E.default.pad.NoPadding}).ciphertext}(Z,this.encryptionKey,IA.generateRandomWordArray);S.V=5,S.Length=this.keyBits,S.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV3",Length:this.keyBits/8}},S.StmF="StdCF",S.StrF="StdCF",S.R=5,S.O=Kt(wt),S.OE=Kt(xt),S.U=Kt($A),S.UE=Kt(ut),S.P=Z,S.Perms=Kt(Yt)}},{key:"getEncryptFn",value:function(S,X){var Z,pA;if(this.version<5&&(Z=this.encryptionKey.clone().concat(E.default.lib.WordArray.create([(255&S)<<24|(65280&S)<<8|S>>8&65280|255&X,(65280&X)<<16],5))),1===this.version||2===this.version){var fA=E.default.MD5(Z);return fA.sigBytes=Math.min(16,this.keyBits/8+5),function(ut){return Kt(E.default.RC4.encrypt(E.default.lib.WordArray.create(ut),fA).ciphertext)}}pA=4===this.version?E.default.MD5(Z.concat(E.default.lib.WordArray.create([1933667412],4))):this.encryptionKey;var $A=IA.generateRandomWordArray(16),rt={mode:E.default.mode.CBC,padding:E.default.pad.Pkcs7,iv:$A};return function(ut){return Kt($A.clone().concat(E.default.AES.encrypt(E.default.lib.WordArray.create(ut),pA,rt).ciphertext))}}},{key:"end",value:function(){this.dictionary.end()}}]),IA}();function wA(){var IA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},H=-3904;return"lowResolution"===IA.printing&&(H|=4),"highResolution"===IA.printing&&(H|=2052),IA.modifying&&(H|=8),IA.copying&&(H|=16),IA.annotating&&(H|=32),IA.fillingForms&&(H|=256),IA.contentAccessibility&&(H|=512),IA.documentAssembly&&(H|=1024),H}function bt(){for(var IA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",H=r.alloc(32),S=IA.length,X=0;X255)throw new Error("Password contains one or more invalid characters.");H[X]=Z,X++}for(;X<32;)H[X]=Ne[X-S],X++;return E.default.lib.WordArray.create(H)}function yt(){var IA=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";IA=unescape(encodeURIComponent(O(IA)));for(var H=Math.min(127,IA.length),S=r.alloc(H),X=0;X>8&65280|IA>>24&255}function Kt(IA){for(var H=[],S=0;S>8*(3-S%4)&255);return r.from(H)}var Jt,Lt,Xt,oe,In,Mn,Ne=[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],ie=GA.number,$t=function(){function IA(H){f(this,IA),this.doc=H,this.stops=[],this.embedded=!1,this.transform=[1,0,0,1,0,0]}return w(IA,[{key:"stop",value:function(S,X,Z){if(null==Z&&(Z=1),X=this.doc._normalizeColor(X),0===this.stops.length)if(3===X.length)this._colorSpace="DeviceRGB";else if(4===X.length)this._colorSpace="DeviceCMYK";else{if(1!==X.length)throw new Error("Unknown color space");this._colorSpace="DeviceGray"}else if("DeviceRGB"===this._colorSpace&&3!==X.length||"DeviceCMYK"===this._colorSpace&&4!==X.length||"DeviceGray"===this._colorSpace&&1!==X.length)throw new Error("All gradient stops must use the same color space");return Z=Math.max(0,Math.min(1,Z)),this.stops.push([S,X,Z]),this}},{key:"setTransform",value:function(S,X,Z,fA,pA,$A){return this.transform=[S,X,Z,fA,pA,$A],this}},{key:"embed",value:function(S){var X,Z=this.stops.length;if(0!==Z){this.embedded=!0,this.matrix=S;var fA=this.stops[Z-1];fA[0]<1&&this.stops.push([1,fA[1],fA[2]]);for(var pA=[],$A=[],rt=[],ut=0;ut>16,S>>8&255,255&S]}else Gn[H]&&(H=Gn[H]);return Array.isArray(H)?(3===H.length?H=H.map(function(X){return X/255}):4===H.length&&(H=H.map(function(X){return X/100})),H):null},_setColor:function(H,S){return H instanceof An?(H.apply(S),!0):Array.isArray(H)&&H[0]instanceof qe?(H[0].apply(S,H[1]),!0):this._setColorCore(H,S)},_setColorCore:function(H,S){if(!(H=this._normalizeColor(H)))return!1;var X=S?"SCN":"scn",Z=this._getColorSpace(H);return this._setColorSpace(Z,S),H=H.join(" "),this.addContent("".concat(H," ").concat(X)),!0},_setColorSpace:function(H,S){var X=S?"CS":"cs";return this.addContent("/".concat(H," ").concat(X))},_getColorSpace:function(H){return 4===H.length?"DeviceCMYK":"DeviceRGB"},fillColor:function(H,S){return this._setColor(H,!1)&&this.fillOpacity(S),this._fillColor=[H,S],this},strokeColor:function(H,S){return this._setColor(H,!0)&&this.strokeOpacity(S),this},opacity:function(H){return this._doOpacity(H,H),this},fillOpacity:function(H){return this._doOpacity(H,null),this},strokeOpacity:function(H){return this._doOpacity(null,H),this},_doOpacity:function(H,S){var X,Z;if(null!=H||null!=S){null!=H&&(H=Math.max(0,Math.min(1,H))),null!=S&&(S=Math.max(0,Math.min(1,S)));var fA="".concat(H,"_").concat(S);if(this._opacityRegistry[fA]){var pA=R(this._opacityRegistry[fA],2);X=pA[0],Z=pA[1]}else{X={Type:"ExtGState"},null!=H&&(X.ca=H),null!=S&&(X.CA=S),(X=this.ref(X)).end();var $A=++this._opacityCount;Z="Gs".concat($A),this._opacityRegistry[fA]=[X,Z]}return this.page.ext_gstates[Z]=X,this.addContent("/".concat(Z," gs"))}},linearGradient:function(H,S,X,Z){return new Se(this,H,S,X,Z)},radialGradient:function(H,S,X,Z,fA,pA){return new tn(this,H,S,X,Z,fA,pA)},pattern:function(H,S,X,Z){return new qe(this,H,S,X,Z)}},Gn={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=Lt=Xt=oe=In=Mn=0;var Fn={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},nn={M:function(H,S){return Xt=oe=null,In=Jt=S[0],Mn=Lt=S[1],H.moveTo(Jt,Lt)},m:function(H,S){return Xt=oe=null,In=Jt+=S[0],Mn=Lt+=S[1],H.moveTo(Jt,Lt)},C:function(H,S){return Jt=S[4],Lt=S[5],Xt=S[2],oe=S[3],H.bezierCurveTo.apply(H,N(S))},c:function(H,S){return H.bezierCurveTo(S[0]+Jt,S[1]+Lt,S[2]+Jt,S[3]+Lt,S[4]+Jt,S[5]+Lt),Xt=Jt+S[2],oe=Lt+S[3],Jt+=S[4],Lt+=S[5]},S:function(H,S){return null===Xt&&(Xt=Jt,oe=Lt),H.bezierCurveTo(Jt-(Xt-Jt),Lt-(oe-Lt),S[0],S[1],S[2],S[3]),Xt=S[0],oe=S[1],Jt=S[2],Lt=S[3]},s:function(H,S){return null===Xt&&(Xt=Jt,oe=Lt),H.bezierCurveTo(Jt-(Xt-Jt),Lt-(oe-Lt),Jt+S[0],Lt+S[1],Jt+S[2],Lt+S[3]),Xt=Jt+S[0],oe=Lt+S[1],Jt+=S[2],Lt+=S[3]},Q:function(H,S){return Xt=S[0],oe=S[1],H.quadraticCurveTo(S[0],S[1],Jt=S[2],Lt=S[3])},q:function(H,S){return H.quadraticCurveTo(S[0]+Jt,S[1]+Lt,S[2]+Jt,S[3]+Lt),Xt=Jt+S[0],oe=Lt+S[1],Jt+=S[2],Lt+=S[3]},T:function(H,S){return null===Xt?(Xt=Jt,oe=Lt):(Xt=Jt-(Xt-Jt),oe=Lt-(oe-Lt)),H.quadraticCurveTo(Xt,oe,S[0],S[1]),Xt=Jt-(Xt-Jt),oe=Lt-(oe-Lt),Jt=S[0],Lt=S[1]},t:function(H,S){return null===Xt?(Xt=Jt,oe=Lt):(Xt=Jt-(Xt-Jt),oe=Lt-(oe-Lt)),H.quadraticCurveTo(Xt,oe,Jt+S[0],Lt+S[1]),Jt+=S[0],Lt+=S[1]},A:function(H,S){return KA(H,Jt,Lt,S),Jt=S[5],Lt=S[6]},a:function(H,S){return S[5]+=Jt,S[6]+=Lt,KA(H,Jt,Lt,S),Jt=S[5],Lt=S[6]},L:function(H,S){return Xt=oe=null,H.lineTo(Jt=S[0],Lt=S[1])},l:function(H,S){return Xt=oe=null,H.lineTo(Jt+=S[0],Lt+=S[1])},H:function(H,S){return Xt=oe=null,H.lineTo(Jt=S[0],Lt)},h:function(H,S){return Xt=oe=null,H.lineTo(Jt+=S[0],Lt)},V:function(H,S){return Xt=oe=null,H.lineTo(Jt,Lt=S[0])},v:function(H,S){return Xt=oe=null,H.lineTo(Jt,Lt+=S[0])},Z:function(H){return H.closePath(),Jt=In,Lt=Mn},z:function(H){return H.closePath(),Jt=In,Lt=Mn}},KA=function(H,S,X,Z){var Zt,fA=R(Z,7),Ot=vA(YA(fA[5],fA[6],fA[0],fA[1],fA[3],fA[4],fA[2],S,X));try{for(Ot.s();!(Zt=Ot.n()).done;){var Ee=tt.apply(void 0,N(Zt.value));H.bezierCurveTo.apply(H,N(Ee))}}catch(Me){Ot.e(Me)}finally{Ot.f()}},YA=function(H,S,X,Z,fA,pA,$A,rt,ut){var wt=$A*(Math.PI/180),Dt=Math.sin(wt),xt=Math.cos(wt);X=Math.abs(X),Z=Math.abs(Z);var Yt=(Xt=xt*(rt-H)*.5+Dt*(ut-S)*.5)*Xt/(X*X)+(oe=xt*(ut-S)*.5-Dt*(rt-H)*.5)*oe/(Z*Z);Yt>1&&(X*=Yt=Math.sqrt(Yt),Z*=Yt);var Ot=xt/X,Zt=Dt/X,ue=-Dt/Z,Ee=xt/Z,Me=Ot*rt+Zt*ut,en=ue*rt+Ee*ut,Qe=Ot*H+Zt*S,je=ue*H+Ee*S,Ze=1/((Qe-Me)*(Qe-Me)+(je-en)*(je-en))-.25;Ze<0&&(Ze=0);var Cn=Math.sqrt(Ze);pA===fA&&(Cn=-Cn);var Wn=.5*(Me+Qe)-Cn*(je-en),$n=.5*(en+je)+Cn*(Qe-Me),Un=Math.atan2(en-$n,Me-Wn),On=Math.atan2(je-$n,Qe-Wn)-Un;On<0&&1===pA?On+=2*Math.PI:On>0&&0===pA&&(On-=2*Math.PI);for(var ir=Math.ceil(Math.abs(On/(.5*Math.PI+.001))),Mr=[],Ar=0;Ar0&&(Z[Z.length]=+fA),X[X.length]={cmd:S,args:Z},Z=[],fA="",pA=!1),S=wt;else if([" ",","].includes(wt)||"-"===wt&&fA.length>0&&"e"!==fA[fA.length-1]||"."===wt&&pA){if(0===fA.length)continue;Z.length===$A?(X[X.length]={cmd:S,args:Z},Z=[+fA],"M"===S&&(S="L"),"m"===S&&(S="l")):Z[Z.length]=+fA,pA="."===wt,fA=["-","."].includes(wt)?wt:""}else fA+=wt,"."===wt&&(pA=!0)}}catch(Dt){rt.e(Dt)}finally{rt.f()}return fA.length>0&&(Z.length===$A?(X[X.length]={cmd:S,args:Z},Z=[+fA],"M"===S&&(S="L"),"m"===S&&(S="l")):Z[Z.length]=+fA),X[X.length]={cmd:S,args:Z},X}(X);!function(H,S){Jt=Lt=Xt=oe=In=Mn=0;for(var X=0;X1&&void 0!==arguments[1]?arguments[1]:{},X=H;if(Array.isArray(H)||(H=[H,S.space||H]),!H.every(function(fA){return Number.isFinite(fA)&&fA>0}))throw new Error("dash(".concat(JSON.stringify(X),", ").concat(JSON.stringify(S),") invalid, lengths must be numeric and greater than zero"));return H=H.map(NA).join(" "),this.addContent("[".concat(H,"] ").concat(NA(S.phase||0)," d"))},undash:function(){return this.addContent("[] 0 d")},moveTo:function(H,S){return this.addContent("".concat(NA(H)," ").concat(NA(S)," m"))},lineTo:function(H,S){return this.addContent("".concat(NA(H)," ").concat(NA(S)," l"))},bezierCurveTo:function(H,S,X,Z,fA,pA){return this.addContent("".concat(NA(H)," ").concat(NA(S)," ").concat(NA(X)," ").concat(NA(Z)," ").concat(NA(fA)," ").concat(NA(pA)," c"))},quadraticCurveTo:function(H,S,X,Z){return this.addContent("".concat(NA(H)," ").concat(NA(S)," ").concat(NA(X)," ").concat(NA(Z)," v"))},rect:function(H,S,X,Z){return this.addContent("".concat(NA(H)," ").concat(NA(S)," ").concat(NA(X)," ").concat(NA(Z)," re"))},roundedRect:function(H,S,X,Z,fA){null==fA&&(fA=0);var pA=(fA=Math.min(fA,.5*X,.5*Z))*(1-bA);return this.moveTo(H+fA,S),this.lineTo(H+X-fA,S),this.bezierCurveTo(H+X-pA,S,H+X,S+pA,H+X,S+fA),this.lineTo(H+X,S+Z-fA),this.bezierCurveTo(H+X,S+Z-pA,H+X-pA,S+Z,H+X-fA,S+Z),this.lineTo(H+fA,S+Z),this.bezierCurveTo(H+pA,S+Z,H,S+Z-pA,H,S+Z-fA),this.lineTo(H,S+fA),this.bezierCurveTo(H,S+pA,H+pA,S,H+fA,S),this.closePath()},ellipse:function(H,S,X,Z){null==Z&&(Z=X);var fA=X*bA,pA=Z*bA,$A=(H-=X)+2*X,rt=(S-=Z)+2*Z,ut=H+X,wt=S+Z;return this.moveTo(H,wt),this.bezierCurveTo(H,wt-pA,ut-fA,S,ut,S),this.bezierCurveTo(ut+fA,S,$A,wt-pA,$A,wt),this.bezierCurveTo($A,wt+pA,ut+fA,rt,ut,rt),this.bezierCurveTo(ut-fA,rt,H,wt+pA,H,wt),this.closePath()},circle:function(H,S,X){return this.ellipse(H,S,X)},arc:function(H,S,X,Z,fA,pA){null==pA&&(pA=!1);var $A=2*Math.PI,rt=.5*Math.PI,ut=fA-Z;Math.abs(ut)>$A?ut=$A:0!==ut&&pA!==ut<0&&(ut=(pA?-1:1)*$A+ut);var Dt=Math.ceil(Math.abs(ut)/rt),xt=ut/Dt,Yt=xt/rt*bA*X,Ot=Z,Zt=-Math.sin(Ot)*Yt,ue=Math.cos(Ot)*Yt,Ee=H+Math.cos(Ot)*X,Me=S+Math.sin(Ot)*X;this.moveTo(Ee,Me);for(var en=0;en1&&void 0!==arguments[1]?arguments[1]:{},Z=H*Math.PI/180,fA=Math.cos(Z),pA=Math.sin(Z),$A=X=0;if(null!=S.origin){var rt=R(S.origin,2),wt=($A=rt[0])*pA+(X=rt[1])*fA;$A-=$A*fA-X*pA,X-=wt}return this.transform(fA,pA,-pA,fA,$A,X)},scale:function(H,S){var Z,X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};null==S&&(S=H),"object"==typeof S&&(X=S,S=H);var fA=Z=0;if(null!=X.origin){var pA=R(X.origin,2);fA=pA[0],Z=pA[1],fA-=H*fA,Z-=S*Z}return this.transform(H,0,0,S,fA,Z)}},At={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+/),it=function(){function IA(H){f(this,IA),this.contents=H,this.attributes={},this.glyphWidths={},this.boundingBoxes={},this.kernPairs={},this.parse(),this.charWidths=new Array(256);for(var S=0;S<=255;S++)this.charWidths[S]=this.glyphWidths[LA[S]];this.bbox=this.attributes.FontBBox.split(/\s+/).map(function(X){return+X}),this.ascender=+(this.attributes.Ascender||0),this.descender=+(this.attributes.Descender||0),this.xHeight=+(this.attributes.XHeight||0),this.capHeight=+(this.attributes.CapHeight||0),this.lineGap=this.bbox[3]-this.bbox[1]-(this.ascender-this.descender)}return w(IA,null,[{key:"open",value:function(S){return new IA(e.readFileSync(S,"utf8"))}}]),w(IA,[{key:"parse",value:function(){var Z,S="",X=vA(this.contents.split("\n"));try{for(X.s();!(Z=X.n()).done;){var pA,$A,fA=Z.value;if(pA=fA.match(/^Start(\w+)/))S=pA[1];else if(pA=fA.match(/^End(\w+)/))S="";else switch(S){case"FontMetrics":var rt=(pA=fA.match(/(^\w+)\s+(.*)/))[1],ut=pA[2];($A=this.attributes[rt])?(Array.isArray($A)||($A=this.attributes[rt]=[$A]),$A.push(ut)):this.attributes[rt]=ut;break;case"CharMetrics":if(!/^CH?\s/.test(fA))continue;var wt=fA.match(/\bN\s+(\.?\w+)\s*;/)[1];this.glyphWidths[wt]=+fA.match(/\bWX\s+(\d+)\s*;/)[1];break;case"KernPairs":(pA=fA.match(/^KPX\s+(\.?\w+)\s+(\.?\w+)\s+(-?\d+)/))&&(this.kernPairs[pA[1]+"\0"+pA[2]]=parseInt(pA[3]))}}}catch(Dt){X.e(Dt)}finally{X.f()}}},{key:"encodeText",value:function(S){for(var X=[],Z=0,fA=S.length;Z>8,rt=0;this.font.post.isFixedPitch&&(rt|=1),1<=$A&&$A<=7&&(rt|=2),rt|=4,10===$A&&(rt|=8),this.font.head.macStyle.italic&&(rt|=64);var wt=[1,2,3,4,5,6].map(function(Zt){return String.fromCharCode((Z.id.charCodeAt(Zt)||73)+17)}).join("")+"+"+this.font.postscriptName,Dt=this.font.bbox,xt=this.document.ref({Type:"FontDescriptor",FontName:wt,Flags:rt,FontBBox:[Dt.minX*this.scale,Dt.minY*this.scale,Dt.maxX*this.scale,Dt.maxY*this.scale],ItalicAngle:this.font.italicAngle,Ascent:this.ascender,Descent:this.descender,CapHeight:(this.font.capHeight||this.font.ascent)*this.scale,XHeight:(this.font.xHeight||0)*this.scale,StemV:0});fA?xt.data.FontFile3=pA:xt.data.FontFile2=pA,xt.end();var Yt={Type:"Font",Subtype:"CIDFontType0",BaseFont:wt,CIDSystemInfo:{Registry:new String("Adobe"),Ordering:new String("Identity"),Supplement:0},FontDescriptor:xt,W:[0,this.widths]};fA||(Yt.Subtype="CIDFontType2",Yt.CIDToGIDMap="Identity");var Ot=this.document.ref(Yt);return Ot.end(),this.dictionary.data={Type:"Font",Subtype:"Type0",BaseFont:wt,Encoding:"Identity-H",DescendantFonts:[Ot],ToUnicode:this.toUnicodeCmap()},this.dictionary.end()}},{key:"toUnicodeCmap",value:function(){var $A,Z=this.document.ref(),fA=[],pA=vA(this.unicode);try{for(pA.s();!($A=pA.n()).done;){var Dt,ut=[],wt=vA($A.value);try{for(wt.s();!(Dt=wt.n()).done;){var xt=Dt.value;xt>65535&&(ut.push(Ut((xt-=65536)>>>10&1023|55296)),xt=56320|1023&xt),ut.push(Ut(xt))}}catch(Yt){wt.e(Yt)}finally{wt.f()}fA.push("<".concat(ut.join(" "),">"))}}catch(Yt){pA.e(Yt)}finally{pA.f()}return Z.end("/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000>\nendcodespacerange\n1 beginbfrange\n<0000> <".concat(Ut(fA.length-1),"> [").concat(fA.join(" "),"]\nendbfrange\nendcmap\nCMapName currentdict /CMap defineresource pop\nend\nend")),Z}}]),S}(ZA),Wt=function(){function IA(){f(this,IA)}return w(IA,null,[{key:"open",value:function(S,X,Z,fA){var pA;if("string"==typeof X){if(Tt.isStandardFont(X))return new Tt(S,X,fA);X=e.readFileSync(X)}if(r.isBuffer(X)?pA=o.default.create(X,Z):X instanceof Uint8Array?pA=o.default.create(r.from(X),Z):X instanceof ArrayBuffer&&(pA=o.default.create(r.from(new Uint8Array(X)),Z)),null==pA)throw new Error("Not a supported font format or standard PDF font.");return new kt(S,pA,fA)}}]),IA}(),te={initFonts:function(){var H=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Helvetica";this._fontFamilies={},this._fontCount=0,this._fontSize=12,this._font=null,this._registeredFonts={},H&&this.font(H)},font:function(H,S,X){var Z,fA;if("number"==typeof S&&(X=S,S=null),"string"==typeof H&&this._registeredFonts[H]){Z=H;var pA=this._registeredFonts[H];H=pA.src,S=pA.family}else"string"!=typeof(Z=S||H)&&(Z=null);if(null!=X&&this.fontSize(X),fA=this._fontFamilies[Z])return this._font=fA,this;var $A="F".concat(++this._fontCount);return this._font=Wt.open(this,H,S,$A),(fA=this._fontFamilies[this._font.name])?(this._font=fA,this):(Z&&(this._fontFamilies[Z]=this._font),this._font.name&&(this._fontFamilies[this._font.name]=this._font),this)},fontSize:function(H){return this._fontSize=H,this},currentLineHeight:function(H){return null==H&&(H=!1),this._font.lineHeight(this._fontSize,H)},registerFont:function(H,S,X){return this._registeredFonts[H]={src:S,family:X},this}},Et=function(IA){m(S,IA);var H=x(S);function S(X,Z){var fA;return f(this,S),(fA=H.call(this)).document=X,fA.indent=Z.indent||0,fA.characterSpacing=Z.characterSpacing||0,fA.wordSpacing=0===Z.wordSpacing,fA.columns=Z.columns||1,fA.columnGap=null!=Z.columnGap?Z.columnGap:18,fA.lineWidth=(Z.width-fA.columnGap*(fA.columns-1))/fA.columns,fA.spaceLeft=fA.lineWidth,fA.startX=fA.document.x,fA.startY=fA.document.y,fA.column=1,fA.ellipsis=Z.ellipsis,fA.continuedX=0,fA.features=Z.features,null!=Z.height?(fA.height=Z.height,fA.maxY=fA.startY+Z.height):fA.maxY=fA.document.page.maxY(),fA.on("firstLine",function(pA){var $A=fA.continuedX||fA.indent;return fA.document.x+=$A,fA.lineWidth-=$A,fA.once("line",function(){if(fA.document.x-=$A,fA.lineWidth+=$A,pA.continued&&!fA.continuedX&&(fA.continuedX=fA.indent),!pA.continued)return fA.continuedX=0})}),fA.on("lastLine",function(pA){var $A=pA.align;return"justify"===$A&&(pA.align="left"),fA.lastLine=!0,fA.once("line",function(){return fA.document.y+=pA.paragraphGap||0,pA.align=$A,fA.lastLine=!1})}),fA}return w(S,[{key:"wordWidth",value:function(Z){return this.document.widthOfString(Z,this)+this.characterSpacing+this.wordSpacing}},{key:"eachWord",value:function(Z,fA){for(var pA,$A=new h.default(Z),rt=null,ut=Object.create(null);pA=$A.nextBreak();){var wt,Dt=Z.slice((null!=rt?rt.position:void 0)||0,pA.position),xt=null!=ut[Dt]?ut[Dt]:ut[Dt]=this.wordWidth(Dt);if(xt>this.lineWidth+this.continuedX)for(var Yt=rt,Ot={};Dt.length;){var Zt,ue;xt>this.spaceLeft?(Zt=Math.ceil(this.spaceLeft/(xt/Dt.length)),ue=(xt=this.wordWidth(Dt.slice(0,Zt)))<=this.spaceLeft&&Ztthis.spaceLeft&&Zt>0;Ee||ue;)Ee?Ee=(xt=this.wordWidth(Dt.slice(0,--Zt)))>this.spaceLeft&&Zt>0:(Ee=(xt=this.wordWidth(Dt.slice(0,++Zt)))>this.spaceLeft&&Zt>0,ue=xt<=this.spaceLeft&&Ztthis.maxY||$A>this.maxY)&&this.nextSection();var rt="",ut=0,wt=0,Dt=0,xt=this.document.y,Yt=function(){return fA.textWidth=ut+pA.wordSpacing*(wt-1),fA.wordCount=wt,fA.lineWidth=pA.lineWidth,xt=pA.document.y,pA.emit("line",rt,fA,pA),Dt++};return this.emit("sectionStart",fA,this),this.eachWord(Z,function(Ot,Zt,ue,Ee){if((null==Ee||Ee.required)&&(pA.emit("firstLine",fA,pA),pA.spaceLeft=pA.lineWidth),Zt<=pA.spaceLeft&&(rt+=Ot,ut+=Zt,wt++),ue.required||Zt>pA.spaceLeft){var Me=pA.document.currentLineHeight(!0);if(null!=pA.height&&pA.ellipsis&&pA.document.y+2*Me>pA.maxY&&pA.column>=pA.columns){for(!0===pA.ellipsis&&(pA.ellipsis="\u2026"),rt=rt.replace(/\s+$/,""),ut=pA.wordWidth(rt+pA.ellipsis);rt&&ut>pA.lineWidth;)rt=rt.slice(0,-1).replace(/\s+$/,""),ut=pA.wordWidth(rt+pA.ellipsis);ut<=pA.lineWidth&&(rt+=pA.ellipsis),ut=pA.wordWidth(rt)}return ue.required&&(Zt>pA.spaceLeft&&(Yt(),rt=Ot,ut=Zt,wt=1),pA.emit("lastLine",fA,pA)),Yt(),pA.document.y+Me>pA.maxY&&!pA.nextSection()?(wt=0,rt="",!1):ue.required?(pA.spaceLeft=pA.lineWidth,rt="",ut=0,wt=0):(pA.spaceLeft=pA.lineWidth-Zt,rt=Ot,ut=Zt,wt=1)}return pA.spaceLeft-=Zt}),wt>0&&(this.emit("lastLine",fA,this),Yt()),this.emit("sectionEnd",fA,this),!0===fA.continued?(Dt>1&&(this.continuedX=0),this.continuedX+=fA.textWidth||0,this.document.y=xt):this.document.x=this.startX}},{key:"nextSection",value:function(Z){if(this.emit("sectionEnd",Z,this),++this.column>this.columns){if(null!=this.height)return!1;var fA;this.document.continueOnNewPage(),this.column=1,this.startY=this.document.page.margins.top,this.maxY=this.document.page.maxY(),this.document.x=this.startX,this.document._fillColor&&(fA=this.document).fillColor.apply(fA,N(this.document._fillColor)),this.emit("pageBreak",Z,this)}else this.document.x+=this.lineWidth+this.columnGap,this.document.y=this.startY,this.emit("columnBreak",Z,this);return this.emit("sectionStart",Z,this),!0}}]),S}(l.EventEmitter),zt=GA.number,jt={initText:function(){return this._line=this._line.bind(this),this.x=0,this.y=0,this._lineGap=0},lineGap:function(H){return this._lineGap=H,this},moveDown:function(H){return null==H&&(H=1),this.y+=this.currentLineHeight(!0)*H+this._lineGap,this},moveUp:function(H){return null==H&&(H=1),this.y-=this.currentLineHeight(!0)*H+this._lineGap,this},_text:function(H,S,X,Z,fA){var pA=this;Z=this._initOptions(S,X,Z),H=null==H?"":"".concat(H),Z.wordSpacing&&(H=H.replace(/\s{2,}/g," "));var $A=function(){Z.structParent&&Z.structParent.add(pA.struct(Z.structType||"P",[pA.markStructureContent(Z.structType||"P")]))};if(Z.width){var rt=this._wrapper;rt||((rt=new Et(this,Z)).on("line",fA),rt.on("firstLine",$A)),this._wrapper=Z.continued?rt:null,this._textOptions=Z.continued?Z:null,rt.wrap(H,Z)}else{var wt,ut=vA(H.split("\n"));try{for(ut.s();!(wt=ut.n()).done;){var Dt=wt.value;$A(),fA(Dt,Z)}}catch(xt){ut.e(xt)}finally{ut.f()}}return this},text:function(H,S,X,Z){return this._text(H,S,X,Z,this._line)},widthOfString:function(H){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._font.widthOfString(H,this._fontSize,S.features)+(S.characterSpacing||0)*(H.length-1)},heightOfString:function(H,S){var X=this,Z=this.x,fA=this.y;(S=this._initOptions(S)).height=1/0;var pA=S.lineGap||this._lineGap||0;this._text(H,this.x,this.y,S,function(){return X.y+=X.currentLineHeight(!0)+pA});var $A=this.y-fA;return this.x=Z,this.y=fA,$A},list:function(H,S,X,Z,fA){var pA=this,$A=(Z=this._initOptions(S,X,Z)).listType||"bullet",rt=Math.round(this._font.ascender/1e3*this._fontSize),ut=rt/2,wt=Z.bulletRadius||rt/3,Dt=Z.textIndent||("bullet"===$A?5*wt:2*rt),xt=Z.bulletIndent||("bullet"===$A?8*wt:2*rt),Yt=1,Ot=[],Zt=[],ue=[];!function Qe(je){for(var wn=1,Ze=0;Ze0&&void 0!==arguments[0]?arguments[0]:{},S=arguments.length>1?arguments[1]:void 0,X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"==typeof H&&(X=H,H=null);var Z=Object.assign({},X);if(this._textOptions)for(var fA in this._textOptions)"continued"!==fA&&void 0===Z[fA]&&(Z[fA]=this._textOptions[fA]);return null!=H&&(this.x=H),null!=S&&(this.y=S),!1!==Z.lineBreak&&(null==Z.width&&(Z.width=this.page.width-this.x-this.page.margins.right),Z.width=Math.max(Z.width,0)),Z.columns||(Z.columns=0),null==Z.columnGap&&(Z.columnGap=18),Z},_line:function(H){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},X=arguments.length>2?arguments[2]:void 0;this._fragment(H,this.x,this.y,S);var Z=S.lineGap||this._lineGap||0;return X?this.y+=this.currentLineHeight(!0)+Z:this.x+=this.widthOfString(H)},_fragment:function(H,S,X,Z){var pA,$A,rt,ut,wt,Dt,fA=this;if(0!==(H="".concat(H).replace(/\n/g,"")).length){var Yt=Z.wordSpacing||0,Ot=Z.characterSpacing||0;if(Z.width)switch(Z.align||"left"){case"right":wt=this.widthOfString(H.replace(/\s+$/,""),Z),S+=Z.lineWidth-wt;break;case"center":S+=Z.lineWidth/2-Z.textWidth/2;break;case"justify":Dt=H.trim().split(/\s+/),wt=this.widthOfString(H.replace(/\s+/g,""),Z);var Zt=this.widthOfString(" ")+Ot;Yt=Math.max(0,(Z.lineWidth-wt)/Math.max(1,Dt.length-1)-Zt)}if("number"==typeof Z.baseline)pA=-Z.baseline;else{switch(Z.baseline){case"svg-middle":pA=.5*this._font.xHeight;break;case"middle":case"svg-central":pA=.5*(this._font.descender+this._font.ascender);break;case"bottom":case"ideographic":pA=this._font.descender;break;case"alphabetic":pA=0;break;case"mathematical":pA=.5*this._font.ascender;break;case"hanging":pA=.8*this._font.ascender;break;default:pA=this._font.ascender}pA=pA/1e3*this._fontSize}var je,ue=Z.textWidth+Yt*(Z.wordCount-1)+Ot*(H.length-1);if(null!=Z.link&&this.link(S,X,ue,this.currentLineHeight(),Z.link),null!=Z.goTo&&this.goTo(S,X,ue,this.currentLineHeight(),Z.goTo),null!=Z.destination&&this.addNamedDestination(Z.destination,"XYZ",S,X,null),Z.underline){this.save(),Z.stroke||this.strokeColor.apply(this,N(this._fillColor||[]));var Ee=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(Ee);var Me=X+this.currentLineHeight()-Ee;this.moveTo(S,Me),this.lineTo(S+ue,Me),this.stroke(),this.restore()}if(Z.strike){this.save(),Z.stroke||this.strokeColor.apply(this,N(this._fillColor||[]));var en=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(en);var Qe=X+this.currentLineHeight()/2;this.moveTo(S,Qe),this.lineTo(S+ue,Qe),this.stroke(),this.restore()}this.save(),Z.oblique&&(je="number"==typeof Z.oblique?-Math.tan(Z.oblique*Math.PI/180):-.25,this.transform(1,0,0,1,S,X),this.transform(1,0,je,1,-je*pA,0),this.transform(1,0,0,1,-S,-X)),this.transform(1,0,0,-1,0,this.page.height),X=this.page.height-X-pA,null==this.page.fonts[this._font.id]&&(this.page.fonts[this._font.id]=this._font.ref()),this.addContent("BT"),this.addContent("1 0 0 1 ".concat(zt(S)," ").concat(zt(X)," Tm")),this.addContent("/".concat(this._font.id," ").concat(zt(this._fontSize)," Tf"));var wn=Z.fill&&Z.stroke?2:Z.stroke?1:0;if(wn&&this.addContent("".concat(wn," Tr")),Ot&&this.addContent("".concat(zt(Ot)," Tc")),Yt){Dt=H.trim().split(/\s+/),Yt+=this.widthOfString(" ")+Ot,Yt*=1e3/this._fontSize,$A=[],ut=[];var Cn,Ze=vA(Dt);try{for(Ze.s();!(Cn=Ze.n()).done;){var Un=R(this._font.encode(Cn.value,Z.features),2),On=Un[1];$A=$A.concat(Un[0]),ut=ut.concat(On);var ir={},Mr=ut[ut.length-1];for(var Ar in Mr)ir[Ar]=Mr[Ar];ir.xAdvance+=Yt,ut[ut.length-1]=ir}}catch(Sr){Ze.e(Sr)}finally{Ze.f()}}else{var Vn=R(this._font.encode(H,Z.features),2);$A=Vn[0],ut=Vn[1]}var Hr=this._fontSize/1e3,dr=[],Jr=0,Or=!1,gi=function(Xn){if(Jr ").concat(zt(-Pi)))}return Jr=Xn},kr=function(Xn){if(gi(Xn),dr.length>0)return fA.addContent("[".concat(dr.join(" "),"] TJ")),dr.length=0};for(rt=0;rt3&&void 0!==arguments[3]?arguments[3]:{};"object"==typeof S&&(Z=S,S=null),S=null!=(wt=null!=S?S:Z.x)?wt:this.x,X=null!=(Dt=null!=X?X:Z.y)?Dt:this.y,"string"==typeof H&&(rt=this._imageRegistry[H]),rt||(rt=H.width&&H.height?H:this.openImage(H)),rt.obj||rt.embed(this),null==this.page.xobjects[rt.label]&&(this.page.xobjects[rt.label]=rt.obj);var xt=Z.width||rt.width,Yt=Z.height||rt.height;if(Z.width&&!Z.height){var Ot=xt/rt.width;xt=rt.width*Ot,Yt=rt.height*Ot}else if(Z.height&&!Z.width){var Zt=Yt/rt.height;xt=rt.width*Zt,Yt=rt.height*Zt}else if(Z.scale)xt=rt.width*Z.scale,Yt=rt.height*Z.scale;else if(Z.fit){var ue=R(Z.fit,2);(ut=rt.width/rt.height)>($A=ue[0])/(fA=ue[1])?(xt=$A,Yt=$A/ut):(Yt=fA,xt=fA*ut)}else if(Z.cover){var Ee=R(Z.cover,2);(ut=rt.width/rt.height)>($A=Ee[0])/(fA=Ee[1])?(Yt=fA,xt=fA*ut):(xt=$A,Yt=$A/ut)}return(Z.fit||Z.cover)&&("center"===Z.align?S=S+$A/2-xt/2:"right"===Z.align&&(S=S+$A-xt),"center"===Z.valign?X=X+fA/2-Yt/2:"bottom"===Z.valign&&(X=X+fA-Yt)),null!=Z.link&&this.link(S,X,xt,Yt,Z.link),null!=Z.goTo&&this.goTo(S,X,xt,Yt,Z.goTo),null!=Z.destination&&this.addNamedDestination(Z.destination,"XYZ",S,X,null),this.y===X&&(this.y+=Yt),this.save(),this.transform(xt,0,0,-Yt,S,X+Yt),this.addContent("/".concat(rt.label," Do")),this.restore(),this},openImage:function(H){var S;return"string"==typeof H&&(S=this._imageRegistry[H]),S||(S=ge.open(H,"I".concat(++this._imageCount)),"string"==typeof H&&(this._imageRegistry[H]=S)),S}},Le={annotate:function(H,S,X,Z,fA){for(var pA in fA.Type="Annot",fA.Rect=this._convertRect(H,S,X,Z),fA.Border=[0,0,0],"Link"===fA.Subtype&&void 0===fA.F&&(fA.F=4),"Link"!==fA.Subtype&&null==fA.C&&(fA.C=this._normalizeColor(fA.color||[0,0,0])),delete fA.color,"string"==typeof fA.Dest&&(fA.Dest=new String(fA.Dest)),fA){var $A=fA[pA];fA[pA[0].toUpperCase()+pA.slice(1)]=$A}var rt=this.ref(fA);return this.page.annotations.push(rt),rt.end(),this},note:function(H,S,X,Z,fA){var pA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return pA.Subtype="Text",pA.Contents=new String(fA),pA.Name="Comment",null==pA.color&&(pA.color=[243,223,92]),this.annotate(H,S,X,Z,pA)},goTo:function(H,S,X,Z,fA){var pA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return pA.Subtype="Link",pA.A=this.ref({S:"GoTo",D:new String(fA)}),pA.A.end(),this.annotate(H,S,X,Z,pA)},link:function(H,S,X,Z,fA){var pA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(pA.Subtype="Link","number"==typeof fA){var $A=this._root.data.Pages.data;if(!(fA>=0&&fA<$A.Kids.length))throw new Error("The document has no page ".concat(fA));pA.A=this.ref({S:"GoTo",D:[$A.Kids[fA],"XYZ",null,null,null]}),pA.A.end()}else pA.A=this.ref({S:"URI",URI:new String(fA)}),pA.A.end();return this.annotate(H,S,X,Z,pA)},_markup:function(H,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},$A=R(this._convertRect(H,S,X,Z),4),rt=$A[0],ut=$A[1],wt=$A[2],Dt=$A[3];return fA.QuadPoints=[rt,Dt,wt,Dt,rt,ut,wt,ut],fA.Contents=new String,this.annotate(H,S,X,Z,fA)},highlight:function(H,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Highlight",null==fA.color&&(fA.color=[241,238,148]),this._markup(H,S,X,Z,fA)},underline:function(H,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Underline",this._markup(H,S,X,Z,fA)},strike:function(H,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="StrikeOut",this._markup(H,S,X,Z,fA)},lineAnnotation:function(H,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Line",fA.Contents=new String,fA.L=[H,this.page.height-S,X,this.page.height-Z],this.annotate(H,S,X,Z,fA)},rectAnnotation:function(H,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Square",fA.Contents=new String,this.annotate(H,S,X,Z,fA)},ellipseAnnotation:function(H,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return fA.Subtype="Circle",fA.Contents=new String,this.annotate(H,S,X,Z,fA)},textAnnotation:function(H,S,X,Z,fA){var pA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return pA.Subtype="FreeText",pA.Contents=new String(fA),pA.DA=new String,this.annotate(H,S,X,Z,pA)},fileAnnotation:function(H,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},pA=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},$A=this.file(fA.src,Object.assign({hidden:!0},fA));return pA.Subtype="FileAttachment",pA.FS=$A,pA.Contents?pA.Contents=new String(pA.Contents):$A.data.Desc&&(pA.Contents=$A.data.Desc),this.annotate(H,S,X,Z,pA)},_convertRect:function(H,S,X,Z){var fA=S;S+=Z;var pA=H+X,$A=R(this._ctm,6),rt=$A[0],ut=$A[1],wt=$A[2],Dt=$A[3],xt=$A[4],Yt=$A[5];return[H=rt*H+wt*S+xt,S=ut*H+Dt*S+Yt,pA=rt*pA+wt*fA+xt,fA=ut*pA+Dt*fA+Yt]}},Ue=function(){function IA(H,S,X,Z){var fA=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{expanded:!1};f(this,IA),this.document=H,this.options=fA,this.outlineData={},null!==Z&&(this.outlineData.Dest=[Z.dictionary,"Fit"]),null!==S&&(this.outlineData.Parent=S),null!==X&&(this.outlineData.Title=new String(X)),this.dictionary=this.document.ref(this.outlineData),this.children=[]}return w(IA,[{key:"addItem",value:function(S){var Z=new IA(this.document,this.dictionary,S,this.document.page,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{expanded:!1});return this.children.push(Z),Z}},{key:"endOutline",value:function(){if(this.children.length>0){this.options.expanded&&(this.outlineData.Count=this.children.length);var X=this.children[this.children.length-1];this.outlineData.First=this.children[0].dictionary,this.outlineData.Last=X.dictionary;for(var Z=0,fA=this.children.length;Z0&&(pA.outlineData.Prev=this.children[Z-1].dictionary),Z0)return this._root.data.Outlines=this.outline.dictionary,this._root.data.PageMode="UseOutlines"}},Te=function(){function IA(H,S){f(this,IA),this.refs=[{pageRef:H,mcid:S}]}return w(IA,[{key:"push",value:function(S){var X=this;S.refs.forEach(function(Z){return X.refs.push(Z)})}}]),IA}(),ke=function(){function IA(H,S){var X=this,Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},fA=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;f(this,IA),this.document=H,this._attached=!1,this._ended=!1,this._flushed=!1,this.dictionary=H.ref({S});var pA=this.dictionary.data;(Array.isArray(Z)||this._isValidChild(Z))&&(fA=Z,Z={}),void 0!==Z.title&&(pA.T=new String(Z.title)),void 0!==Z.lang&&(pA.Lang=new String(Z.lang)),void 0!==Z.alt&&(pA.Alt=new String(Z.alt)),void 0!==Z.expanded&&(pA.E=new String(Z.expanded)),void 0!==Z.actual&&(pA.ActualText=new String(Z.actual)),this._children=[],fA&&(Array.isArray(fA)||(fA=[fA]),fA.forEach(function($A){return X.add($A)}),this.end())}return w(IA,[{key:"add",value:function(S){if(this._ended)throw new Error("Cannot add child to already-ended structure element");if(!this._isValidChild(S))throw new Error("Invalid structure element child");return S instanceof IA&&(S.setParent(this.dictionary),this._attached&&S.setAttached()),S instanceof Te&&this._addContentToParentTree(S),"function"==typeof S&&this._attached&&(S=this._contentForClosure(S)),this._children.push(S),this}},{key:"_addContentToParentTree",value:function(S){var X=this;S.refs.forEach(function(Z){var fA=Z.pageRef,pA=Z.mcid;X.document.getStructParentTree().get(fA.data.StructParents)[pA]=X.dictionary})}},{key:"setParent",value:function(S){if(this.dictionary.data.P)throw new Error("Structure element added to more than one parent");this.dictionary.data.P=S,this._flush()}},{key:"setAttached",value:function(){var S=this;this._attached||(this._children.forEach(function(X,Z){X instanceof IA&&X.setAttached(),"function"==typeof X&&(S._children[Z]=S._contentForClosure(X))}),this._attached=!0,this._flush())}},{key:"end",value:function(){this._ended||(this._children.filter(function(S){return S instanceof IA}).forEach(function(S){return S.end()}),this._ended=!0,this._flush())}},{key:"_isValidChild",value:function(S){return S instanceof IA||S instanceof Te||"function"==typeof S}},{key:"_contentForClosure",value:function(S){var X=this.document.markStructureContent(this.dictionary.data.S);return S(),this.document.endMarkedContent(),this._addContentToParentTree(X),X}},{key:"_isFlushable",value:function(){return!(!this.dictionary.data.P||!this._ended)&&this._children.every(function(S){return"function"!=typeof S&&(!(S instanceof IA)||S._isFlushable())})}},{key:"_flush",value:function(){var S=this;this._flushed||!this._isFlushable()||(this.dictionary.data.K=[],this._children.forEach(function(X){return S._flushChild(X)}),this.dictionary.end(),this._children=[],this.dictionary.data.K=null,this._flushed=!0)}},{key:"_flushChild",value:function(S){var X=this;S instanceof IA&&this.dictionary.data.K.push(S.dictionary),S instanceof Te&&S.refs.forEach(function(Z){var fA=Z.pageRef,pA=Z.mcid;X.dictionary.data.Pg||(X.dictionary.data.Pg=fA),X.dictionary.data.K.push(X.dictionary.data.Pg===fA?pA:{Type:"MCR",Pg:fA,MCID:pA})})}}]),IA}(),xn=function(IA){m(S,IA);var H=x(S);function S(){return f(this,S),H.apply(this,arguments)}return w(S,[{key:"_compareKeys",value:function(Z,fA){return parseInt(Z)-parseInt(fA)}},{key:"_keysName",value:function(){return"Nums"}},{key:"_dataForKey",value:function(Z){return parseInt(Z)}}]),S}(_),rn={initMarkings:function(H){this.structChildren=[],H.tagged&&(this.getMarkInfoDictionary().data.Marked=!0,this.getStructTreeRoot())},markContent:function(H){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("Artifact"===H||S&&S.mcid){var X=0;for(this.page.markings.forEach(function(fA){(X||fA.structContent||"Artifact"===fA.tag)&&X++});X--;)this.endMarkedContent()}if(!S)return this.page.markings.push({tag:H}),this.addContent("/".concat(H," BMC")),this;this.page.markings.push({tag:H,options:S});var Z={};return void 0!==S.mcid&&(Z.MCID=S.mcid),"Artifact"===H&&("string"==typeof S.type&&(Z.Type=S.type),Array.isArray(S.bbox)&&(Z.BBox=[S.bbox[0],this.page.height-S.bbox[3],S.bbox[2],this.page.height-S.bbox[1]]),Array.isArray(S.attached)&&S.attached.every(function(fA){return"string"==typeof fA})&&(Z.Attached=S.attached)),"Span"===H&&(S.lang&&(Z.Lang=new String(S.lang)),S.alt&&(Z.Alt=new String(S.alt)),S.expanded&&(Z.E=new String(S.expanded)),S.actual&&(Z.ActualText=new String(S.actual))),this.addContent("/".concat(H," ").concat(GA.convert(Z)," BDC")),this},markStructureContent:function(H){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},X=this.getStructParentTree().get(this.page.structParentTreeKey),Z=X.length;X.push(null),this.markContent(H,F(F({},S),{},{mcid:Z}));var fA=new Te(this.page.dictionary,Z);return this.page.markings.slice(-1)[0].structContent=fA,fA},endMarkedContent:function(){return this.page.markings.pop(),this.addContent("EMC"),this},struct:function(H){return new ke(this,H,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)},addStructure:function(H){var S=this.getStructTreeRoot();return H.setParent(S),H.setAttached(),this.structChildren.push(H),S.data.K||(S.data.K=[]),S.data.K.push(H.dictionary),this},initPageMarkings:function(H){var S=this;H.forEach(function(X){if(X.structContent){var Z=X.structContent,fA=S.markStructureContent(X.tag,X.options);Z.push(fA),S.page.markings.slice(-1)[0].structContent=Z}else S.markContent(X.tag,X.options)})},endPageMarkings:function(H){var S=H.markings;return S.forEach(function(){return H.write("EMC")}),H.markings=[],S},getMarkInfoDictionary:function(){return this._root.data.MarkInfo||(this._root.data.MarkInfo=this.ref({})),this._root.data.MarkInfo},getStructTreeRoot:function(){return this._root.data.StructTreeRoot||(this._root.data.StructTreeRoot=this.ref({Type:"StructTreeRoot",ParentTree:new xn,ParentTreeNextKey:0})),this._root.data.StructTreeRoot},getStructParentTree:function(){return this.getStructTreeRoot().data.ParentTree},createStructParentTreeNextKey:function(){this.getMarkInfoDictionary();var H=this.getStructTreeRoot(),S=H.data.ParentTreeNextKey++;return H.data.ParentTree.add(S,[]),S},endMarkings:function(){var H=this._root.data.StructTreeRoot;H&&(H.end(),this.structChildren.forEach(function(S){return S.end()})),this._root.data.MarkInfo&&this._root.data.MarkInfo.end()}},dn={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},Yn={left:0,center:1,right:2},an={value:"V",defaultValue:"DV"},En={zip:"0",zipPlus4:"1",zip4:"1",phone:"2",ssn:"3"},gn_number={nDec:0,sepComma:!1,negStyle:"MinusBlack",currency:"",currencyPrepend:!0},gn_percent={nDec:0,sepComma:!1},Tn={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 H={Fields:[],NeedAppearances:!0,DA:new String("/".concat(this._font.id," 0 Tf 0 g")),DR:{Font:{}}};H.DR.Font[this._font.id]=this._font.ref();var S=this.ref(H);return this._root.data.AcroForm=S,this},endAcroForm:function(){var H=this;if(this._root.data.AcroForm){if(!Object.keys(this._acroform.fonts).length&&!this._acroform.defaultFont)throw new Error("No fonts specified for PDF form");var S=this._root.data.AcroForm.data.DR.Font;Object.keys(this._acroform.fonts).forEach(function(X){S[X]=H._acroform.fonts[X]}),this._root.data.AcroForm.data.Fields.forEach(function(X){H._endChild(X)}),this._root.data.AcroForm.end()}return this},_endChild:function(H){var S=this;return Array.isArray(H.data.Kids)&&(H.data.Kids.forEach(function(X){S._endChild(X)}),H.end()),this},formField:function(H){var X=this._fieldDict(H,null,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),Z=this.ref(X);return this._addToParent(Z),Z},formAnnotation:function(H,S,X,Z,fA,pA){var rt=this._fieldDict(H,S,arguments.length>6&&void 0!==arguments[6]?arguments[6]:{});return rt.Subtype="Widget",void 0===rt.F&&(rt.F=4),this.annotate(X,Z,fA,pA,rt),this._addToParent(this.page.annotations[this.page.annotations.length-1])},formText:function(H,S,X,Z,fA){return this.formAnnotation(H,"text",S,X,Z,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formPushButton:function(H,S,X,Z,fA){return this.formAnnotation(H,"pushButton",S,X,Z,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formCombo:function(H,S,X,Z,fA){return this.formAnnotation(H,"combo",S,X,Z,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formList:function(H,S,X,Z,fA){return this.formAnnotation(H,"list",S,X,Z,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formRadioButton:function(H,S,X,Z,fA){return this.formAnnotation(H,"radioButton",S,X,Z,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},formCheckbox:function(H,S,X,Z,fA){return this.formAnnotation(H,"checkbox",S,X,Z,fA,arguments.length>5&&void 0!==arguments[5]?arguments[5]:{})},_addToParent:function(H){var S=H.data.Parent;return S?(S.data.Kids||(S.data.Kids=[]),S.data.Kids.push(H)):this._root.data.AcroForm.data.Fields.push(H),this},_fieldDict:function(H,S){var X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._acroform)throw new Error("Call document.initForms() method before adding form elements to document");var Z=Object.assign({},X);return null!==S&&(Z=this._resolveType(S,X)),Z=this._resolveFlags(Z),Z=this._resolveJustify(Z),Z=this._resolveFont(Z),Z=this._resolveStrings(Z),Z=this._resolveColors(Z),(Z=this._resolveFormat(Z)).T=new String(H),Z.parent&&(Z.Parent=Z.parent,delete Z.parent),Z},_resolveType:function(H,S){if("text"===H)S.FT="Tx";else if("pushButton"===H)S.FT="Btn",S.pushButton=!0;else if("radioButton"===H)S.FT="Btn",S.radioButton=!0;else if("checkbox"===H)S.FT="Btn";else if("combo"===H)S.FT="Ch",S.combo=!0;else{if("list"!==H)throw new Error("Invalid form annotation type '".concat(H,"'"));S.FT="Ch"}return S},_resolveFormat:function(H){var S=H.format;if(S&&S.type){var X,Z,fA="";if(void 0!==En[S.type])X="AFSpecial_Keystroke",Z="AFSpecial_Format",fA=En[S.type];else{var pA=S.type.charAt(0).toUpperCase()+S.type.slice(1);if(X="AF".concat(pA,"_Keystroke"),Z="AF".concat(pA,"_Format"),"date"===S.type)X+="Ex",fA=String(S.param);else if("time"===S.type)fA=String(S.param);else if("number"===S.type){var $A=Object.assign({},gn_number,S);fA=String([String($A.nDec),$A.sepComma?"0":"1",'"'+$A.negStyle+'"',"null",'"'+$A.currency+'"',String($A.currencyPrepend)].join(","))}else if("percent"===S.type){var rt=Object.assign({},gn_percent,S);fA=String([String(rt.nDec),rt.sepComma?"0":"1"].join(","))}}H.AA=H.AA?H.AA:{},H.AA.K={S:"JavaScript",JS:new String("".concat(X,"(").concat(fA,");"))},H.AA.F={S:"JavaScript",JS:new String("".concat(Z,"(").concat(fA,");"))}}return delete H.format,H},_resolveColors:function(H){var S=this._normalizeColor(H.backgroundColor);return S&&(H.MK||(H.MK={}),H.MK.BG=S),(S=this._normalizeColor(H.borderColor))&&(H.MK||(H.MK={}),H.MK.BC=S),delete H.backgroundColor,delete H.borderColor,H},_resolveFlags:function(H){var S=0;return Object.keys(H).forEach(function(X){dn[X]&&(S|=dn[X],delete H[X])}),0!==S&&(H.Ff=H.Ff?H.Ff:0,H.Ff|=S),H},_resolveJustify:function(H){var S=0;return void 0!==H.align&&("number"==typeof Yn[H.align]&&(S=Yn[H.align]),delete H.align),0!==S&&(H.Q=S),H},_resolveFont:function(H){if(null===this._acroform.fonts[this._font.id]&&(this._acroform.fonts[this._font.id]=this._font.ref()),this._acroform.defaultFont!==this._font.name){H.DR={Font:{}};var S=H.fontSize||0;H.DR.Font[this._font.id]=this._font.ref(),H.DA=new String("/".concat(this._font.id," ").concat(S," Tf 0 g"))}return H},_resolveStrings:function(H){var S=[];function X(Z){if(Array.isArray(Z))for(var fA=0;fA1&&void 0!==arguments[1]?arguments[1]:{};S.name=S.name||H;var Z,X={Type:"EmbeddedFile",Params:{}};if(!H)throw new Error("No src specified");if(r.isBuffer(H))Z=H;else if(H instanceof ArrayBuffer)Z=r.from(new Uint8Array(H));else{var fA;if(fA=/^data:(.*);base64,(.*)$/.exec(H))fA[1]&&(X.Subtype=fA[1].replace("/","#2F")),Z=r.from(fA[2],"base64");else{if(!(Z=e.readFileSync(H)))throw new Error("Could not read contents of file at filepath ".concat(H));var pA=e.statSync(H),rt=pA.ctime;X.Params.CreationDate=pA.birthtime,X.Params.ModDate=rt}}S.creationDate instanceof Date&&(X.Params.CreationDate=S.creationDate),S.modifiedDate instanceof Date&&(X.Params.ModDate=S.modifiedDate),S.type&&(X.Subtype=S.type.replace("/","#2F"));var wt,ut=E.default.MD5(E.default.lib.WordArray.create(new Uint8Array(Z)));X.Params.CheckSum=new String(ut),X.Params.Size=Z.byteLength,this._fileRegistry||(this._fileRegistry={});var Dt=this._fileRegistry[S.name];Dt&&Tr(X,Dt)?wt=Dt.ref:((wt=this.ref(X)).end(Z),this._fileRegistry[S.name]=F(F({},X),{},{ref:wt}));var xt={Type:"Filespec",F:new String(S.name),EF:{F:wt},UF:new String(S.name)};S.description&&(xt.Desc=new String(S.description));var Yt=this.ref(xt);return Yt.end(),S.hidden||this.addNamedEmbeddedFile(S.name,Yt),Yt}};function Tr(IA,H){return IA.Subtype===H.Subtype&&IA.Params.CheckSum.toString()===H.Params.CheckSum.toString()&&IA.Params.Size===H.Params.Size&&IA.Params.CreationDate===H.Params.CreationDate&&IA.Params.ModDate===H.Params.ModDate}var rr=function(IA){m(S,IA);var H=x(S);function S(){var X,Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch(f(this,S),(X=H.call(this,Z)).options=Z,Z.pdfVersion){case"1.4":X.version=1.4;break;case"1.5":X.version=1.5;break;case"1.6":X.version=1.6;break;case"1.7":case"1.7ext3":X.version=1.7;break;default:X.version=1.3}X.compress=null==X.options.compress||X.options.compress,X._pageBuffer=[],X._pageBufferStart=0,X._offsets=[],X._waiting=0,X._ended=!1,X._offset=0;var fA=X.ref({Type:"Pages",Count:0,Kids:[]}),pA=X.ref({Dests:new 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(Z.font),X.initText(),X.initImages(),X.initOutline(),X.initMarkings(Z),X.info={Producer:"PDFKit",Creator:"PDFKit",CreationDate:new Date},X.options.info)for(var $A in X.options.info)X.info[$A]=X.options.info[$A];return X.options.displayTitle&&(X._root.data.ViewerPreferences=X.ref({DisplayDocTitle:!0})),X._id=L.generateFileID(X.info),X._security=L.create(P(X),Z),X._write("%PDF-".concat(X.version)),X._write("%\xff\xff\xff\xff"),!1!==X.options.autoFirstPage&&X.addPage(),X}return w(S,[{key:"addPage",value:function(Z){null==Z&&(Z=this.options),this.options.bufferPages||this.flushPages(),this.page=new $(this,Z),this._pageBuffer.push(this.page);var fA=this._root.data.Pages.data;return fA.Kids.push(this.page.dictionary),fA.Count++,this.x=this.page.margins.left,this.y=this.page.margins.top,this._ctm=[1,0,0,1,0,0],this.transform(1,0,0,-1,0,this.page.height),this.emit("pageAdded"),this}},{key:"continueOnNewPage",value:function(Z){var fA=this.endPageMarkings(this.page);return this.addPage(Z),this.initPageMarkings(fA),this}},{key:"bufferedPageRange",value:function(){return{start:this._pageBufferStart,count:this._pageBuffer.length}}},{key:"switchToPage",value:function(Z){var fA;if(!(fA=this._pageBuffer[Z-this._pageBufferStart]))throw new Error("switchToPage(".concat(Z,") out of bounds, current buffer covers pages ").concat(this._pageBufferStart," to ").concat(this._pageBufferStart+this._pageBuffer.length-1));return this.page=fA}},{key:"flushPages",value:function(){var Z=this._pageBuffer;this._pageBuffer=[],this._pageBufferStart+=Z.length;var pA,fA=vA(Z);try{for(fA.s();!(pA=fA.n()).done;){var $A=pA.value;this.endPageMarkings($A),$A.end()}}catch(rt){fA.e(rt)}finally{fA.f()}}},{key:"addNamedDestination",value:function(Z){for(var fA=arguments.length,pA=new Array(fA>1?fA-1:0),$A=1;$A>R&AA]},getCombiningClass:function(DA){var rA=p.get(DA);return m.combiningClasses[rA>>N&gA]},getScript:function(DA){var rA=p.get(DA);return m.scripts[rA>>V&MA]},getEastAsianWidth:function(DA){var rA=p.get(DA);return m.eaw[rA>>10&cA]},getNumericValue:function(DA){var rA=p.get(DA),hA=1023&rA;if(0===hA)return null;if(hA<=50)return hA-1;if(hA<480)return((hA>>4)-12)/(1+(15&hA));if(hA<768){rA=(hA>>5)-14;for(var st=2+(31&hA);st>0;)rA*=10,st--;return rA}rA=(hA>>2)-191;for(var yA=1+(3&hA);yA>0;)rA*=60,yA--;return rA},isAlphabetic:uA,isDigit:CA,isPunctuation:TA,isLowerCase:GA,isUpperCase:VA,isTitleCase:q,isWhiteSpace:J,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),a=n(1753).swap32LE;Y.exports=function(){function v(T){var x="function"==typeof T.readUInt32BE&&"function"==typeof T.slice;if(x||T instanceof Uint8Array){var R;if(x)this.highStart=T.readUInt32LE(0),this.errorValue=T.readUInt32LE(4),R=T.readUInt32LE(8),T=T.slice(12);else{var N=new DataView(T.buffer);this.highStart=N.getUint32(0,!0),this.errorValue=N.getUint32(4,!0),R=N.getUint32(8,!0),T=T.subarray(12)}T=c(T,new Uint8Array(R)),T=c(T,new Uint8Array(R)),a(T),this.data=new Uint32Array(T.buffer)}else{var V=T;this.data=V.data,this.highStart=V.highStart,this.errorValue=V.errorValue}}return v.prototype.get=function(x){return x<0||x>1114111?this.errorValue:x<55296||x>56319&&x<=65535?this.data[(this.data[x>>5]<<2)+(31&x)]:x<=65535?this.data[(this.data[2048+(x-55296>>5)]<<2)+(31&x)]:x>11)]+(x>>5&63)]<<2)+(31&x)]:this.data[this.data.length-4]},v}()},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],r=function(o,l,h){var u=o[l];o[l]=o[h],o[h]=u};Y.exports={swap32LE:function(o){c&&function(o){for(var l=o.length,h=0;h/)){for(;it=At();)ZA.childNodes.push(it),it.parentNode=ZA,ZA.textContent+=3===it.nodeType||4===it.nodeType?it.nodeValue:it.textContent;return(LA=tt.match(/^<\/([\w:.-]+)\s*>/,!0))?(LA[1]===ZA.nodeName||(ne('parseXml: tag not matching, opening "'+ZA.nodeName+'" & closing "'+LA[1]+'"'),bA=!0),ZA):(ne('parseXml: tag not matching, opening "'+ZA.nodeName+'" & not closing'),bA=!0,ZA)}if(tt.match(/^\/>/))return ZA;ne('parseXml: tag could not be parsed "'+ZA.nodeName+'"'),bA=!0}else{if(LA=tt.match(/^/))return new YA(null,8,LA,bA);if(LA=tt.match(/^<\?[\s\S]*?\?>/))return new YA(null,7,LA,bA);if(LA=tt.match(/^/))return new YA(null,10,LA,bA);if(LA=tt.match(/^/,!0))return new YA("#cdata-section",4,LA[1],bA);if(LA=tt.match(/^([^<]+)/,!0))return new YA("#text",3,AA(LA[1]),bA)}};NA=JA();)1!==NA.nodeType||PA?(1===NA.nodeType||3===NA.nodeType&&""!==NA.nodeValue.trim())&&ne("parseXml: data after document end has been discarded"):PA=NA;return tt.matchAll()&&ne("parseXml: parsing error"),PA}function AA(KA){return KA.replace(/&(?:#([0-9]+)|#[xX]([0-9A-Fa-f]+)|([0-9A-Za-z]+));/g,function(YA,tt,PA,NA){return tt?String.fromCharCode(parseInt(tt,10)):PA?String.fromCharCode(parseInt(PA,16)):NA&&C[NA]?String.fromCharCode(C[NA]):YA})}function gA(KA){var YA,tt;return KA=(KA||"").trim(),(YA=h[KA])?tt=[YA.slice(),1]:(YA=KA.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=KA.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=KA.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=KA.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=KA.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]),tn?tn(tt,KA):tt}function MA(KA,YA,tt){var PA=KA[0].slice(),NA=KA[1]*YA;if(tt){for(var bA=0;bA=0;YA--)KA=cA(Gn[YA].savedMatrix,KA);return KA}function vA(){return(new WA).M(0,0).L(a.page.width,0).L(a.page.width,a.page.height).L(0,a.page.height).transform(xA(BA())).getBoundingBox()}function xA(KA){var YA=KA[0]*KA[3]-KA[1]*KA[2];return[KA[3]/YA,-KA[1]/YA,-KA[2]/YA,KA[0]/YA,(KA[2]*KA[5]-KA[3]*KA[4])/YA,(KA[1]*KA[4]-KA[0]*KA[5])/YA]}function _(KA){var YA=GA(KA[0]),tt=GA(KA[1]),PA=GA(KA[2]),NA=GA(KA[3]),bA=GA(KA[4]),JA=GA(KA[5]);if(TA(YA*NA-tt*PA,0))return[YA,tt,PA,NA,bA,JA]}function QA(KA){var YA=KA[2]||0,tt=KA[1]||0,PA=KA[0]||0;if(CA(YA,0)&&CA(tt,0))return[];if(CA(YA,0))return[-PA/tt];var NA=tt*tt-4*YA*PA;return TA(NA,0)&&NA>0?[(-tt+Math.sqrt(NA))/(2*YA),(-tt-Math.sqrt(NA))/(2*YA)]:CA(NA,0)?[-tt/(2*YA)]:[]}function uA(KA,YA){return(YA[0]||0)+(YA[1]||0)*KA+(YA[2]||0)*KA*KA+(YA[3]||0)*KA*KA*KA}function CA(KA,YA){return Math.abs(KA-YA)<1e-10}function TA(KA,YA){return Math.abs(KA-YA)>=1e-10}function GA(KA){return KA>-1e21&&KA<1e21?Math.round(1e6*KA)/1e6:0}function q(KA){for(var PA,YA=new lt((KA||"").trim()),tt=[1,0,0,1,0,0];PA=YA.match(/^([A-Za-z]+)\s*[(]([^(]+)[)]/,!0);){for(var NA=PA[1],bA=[],JA=new lt(PA[2].trim()),At=void 0;At=JA.matchNumber();)bA.push(Number(At)),JA.matchSeparator();if("matrix"===NA&&6===bA.length)tt=cA(tt,[bA[0],bA[1],bA[2],bA[3],bA[4],bA[5]]);else if("translate"===NA&&2===bA.length)tt=cA(tt,[1,0,0,1,bA[0],bA[1]]);else if("translate"===NA&&1===bA.length)tt=cA(tt,[1,0,0,1,bA[0],0]);else if("scale"===NA&&2===bA.length)tt=cA(tt,[bA[0],0,0,bA[1],0,0]);else if("scale"===NA&&1===bA.length)tt=cA(tt,[bA[0],0,0,bA[0],0,0]);else if("rotate"===NA&&3===bA.length){var LA=bA[0]*Math.PI/180;tt=cA(tt,[1,0,0,1,bA[1],bA[2]],[Math.cos(LA),Math.sin(LA),-Math.sin(LA),Math.cos(LA),0,0],[1,0,0,1,-bA[1],-bA[2]])}else if("rotate"===NA&&1===bA.length){var it=bA[0]*Math.PI/180;tt=cA(tt,[Math.cos(it),Math.sin(it),-Math.sin(it),Math.cos(it),0,0])}else if("skewX"===NA&&1===bA.length){var ZA=bA[0]*Math.PI/180;tt=cA(tt,[1,0,Math.tan(ZA),1,0,0])}else{if("skewY"!==NA||1!==bA.length)return;var Ct=bA[0]*Math.PI/180;tt=cA(tt,[1,Math.tan(Ct),0,1,0,0])}YA.matchSeparator()}if(!YA.matchAll())return tt}function J(KA,YA,tt,PA,NA,bA){var JA=(KA||"").trim().match(/^(none)$|^x(Min|Mid|Max)Y(Min|Mid|Max)(?:\s+(meet|slice))?$/)||[],At=JA[1]||JA[4]||"meet",ZA=YA/PA,Ct=tt/NA,Tt={Min:0,Mid:.5,Max:1}[JA[2]||"Mid"]-(bA||0),Ut={Min:0,Mid:.5,Max:1}[JA[3]||"Mid"]-(bA||0);return"slice"===At?Ct=ZA=Math.max(ZA,Ct):"meet"===At&&(Ct=ZA=Math.min(ZA,Ct)),[ZA,0,0,Ct,Tt*(YA-PA*ZA),Ut*(tt-NA*Ct)]}function $(KA){var YA=Object.create(null);KA=(KA||"").trim().split(/;/);for(var tt=0;ttBe&&(Ht=Be,Be=ce,ce=Ht),Vt>ge&&(Ht=ge,ge=Vt,Vt=Ht);for(var De=QA(Tt),Le=0;Le=0&&De[Le]<=1){var Ue=uA(De[Le],ZA);UeBe&&(Be=Ue)}for(var ye=QA(Ut),Te=0;Te=0&&ye[Te]<=1){var ke=uA(ye[Te],Ct);kege&&(ge=ke)}return[ce,Vt,Be,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<=it;ce++){var Vt=kt[ce-1],Be=kt[ce];if(Vt<=Ht&&Ht<=Be){var ge=(ce-(Be-Ht)/(Be-Vt))/it,De=uA(ge,ZA),Le=uA(ge,Ct),Ue=uA(ge,Tt),ye=uA(ge,Ut);return[De,Le,Math.atan2(ye,Ue)]}}}},OA=function(YA,tt,PA,NA){this.totalLength=Math.sqrt((PA-YA)*(PA-YA)+(NA-tt)*(NA-tt)),this.startPoint=[YA,tt,Math.atan2(NA-tt,PA-YA)],this.endPoint=[PA,NA,Math.atan2(NA-tt,PA-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(bA){if(bA>=0&&bA<=this.totalLength){var JA=bA/this.totalLength||0;return[this.startPoint[0]+JA*(this.endPoint[0]-this.startPoint[0]),this.startPoint[1]+JA*(this.endPoint[1]-this.startPoint[1]),this.startPoint[2]]}}},WA=function KA(){this.pathCommands=[],this.pathSegments=[],this.startPoint=null,this.endPoint=null,this.totalLength=0;var bA,JA,At,YA=0,tt=0,PA=0,NA=0;this.move=function(LA,it){return YA=PA=LA,tt=NA=it,null},this.line=function(LA,it){var ZA=new OA(PA,NA,LA,it);return PA=LA,NA=it,ZA},this.curve=function(LA,it,ZA,Ct,Tt,Ut){var kt=new SA(PA,NA,LA,it,ZA,Ct,Tt,Ut);return PA=Tt,NA=Ut,kt},this.close=function(){var LA=new OA(PA,NA,YA,tt);return PA=YA,NA=tt,LA},this.addCommand=function(LA){this.pathCommands.push(LA);var it=this[LA[0]].apply(this,LA.slice(3));it&&(it.hasStart=LA[1],it.hasEnd=LA[2],this.startPoint=this.startPoint||it.startPoint,this.endPoint=it.endPoint,this.pathSegments.push(it),this.totalLength+=it.totalLength)},this.M=function(LA,it){return this.addCommand(["move",!0,!0,LA,it]),bA="M",this},this.m=function(LA,it){return this.M(PA+LA,NA+it)},this.Z=this.z=function(){return this.addCommand(["close",!0,!0]),bA="Z",this},this.L=function(LA,it){return this.addCommand(["line",!0,!0,LA,it]),bA="L",this},this.l=function(LA,it){return this.L(PA+LA,NA+it)},this.H=function(LA){return this.L(LA,NA)},this.h=function(LA){return this.L(PA+LA,NA)},this.V=function(LA){return this.L(PA,LA)},this.v=function(LA){return this.L(PA,NA+LA)},this.C=function(LA,it,ZA,Ct,Tt,Ut){return this.addCommand(["curve",!0,!0,LA,it,ZA,Ct,Tt,Ut]),bA="C",JA=ZA,At=Ct,this},this.c=function(LA,it,ZA,Ct,Tt,Ut){return this.C(PA+LA,NA+it,PA+ZA,NA+Ct,PA+Tt,NA+Ut)},this.S=function(LA,it,ZA,Ct){return this.C(PA+("C"===bA?PA-JA:0),NA+("C"===bA?NA-At:0),LA,it,ZA,Ct)},this.s=function(LA,it,ZA,Ct){return this.C(PA+("C"===bA?PA-JA:0),NA+("C"===bA?NA-At:0),PA+LA,NA+it,PA+ZA,NA+Ct)},this.Q=function(LA,it,ZA,Ct){return this.addCommand(["curve",!0,!0,PA+2/3*(LA-PA),NA+2/3*(it-NA),ZA+2/3*(LA-ZA),Ct+2/3*(it-Ct),ZA,Ct]),bA="Q",JA=LA,At=it,this},this.q=function(LA,it,ZA,Ct){return this.Q(PA+LA,NA+it,PA+ZA,NA+Ct)},this.T=function(LA,it){return this.Q(PA+("Q"===bA?PA-JA:0),NA+("Q"===bA?NA-At:0),LA,it)},this.t=function(LA,it){return this.Q(PA+("Q"===bA?PA-JA:0),NA+("Q"===bA?NA-At:0),PA+LA,NA+it)},this.A=function(LA,it,ZA,Ct,Tt,Ut,kt){if(CA(LA,0)||CA(it,0))this.addCommand(["line",!0,!0,Ut,kt]);else{ZA*=Math.PI/180,LA=Math.abs(LA),it=Math.abs(it),Ct=1*!!Ct,Tt=1*!!Tt;var Wt=Math.cos(ZA)*(PA-Ut)/2+Math.sin(ZA)*(NA-kt)/2,te=Math.cos(ZA)*(NA-kt)/2-Math.sin(ZA)*(PA-Ut)/2,Et=Wt*Wt/(LA*LA)+te*te/(it*it);Et>1&&(LA*=Math.sqrt(Et),it*=Math.sqrt(Et));var zt=Math.sqrt(Math.max(0,LA*LA*it*it-LA*LA*te*te-it*it*Wt*Wt)/(LA*LA*te*te+it*it*Wt*Wt)),jt=(Ct===Tt?-1:1)*zt*LA*te/it,Ht=(Ct===Tt?1:-1)*zt*it*Wt/LA,ce=Math.cos(ZA)*jt-Math.sin(ZA)*Ht+(PA+Ut)/2,Vt=Math.sin(ZA)*jt+Math.cos(ZA)*Ht+(NA+kt)/2,Be=Math.atan2((te-Ht)/it,(Wt-jt)/LA),ge=Math.atan2((-te-Ht)/it,(-Wt-jt)/LA);0===Tt&&ge-Be>0?ge-=2*Math.PI:1===Tt&&ge-Be<0&&(ge+=2*Math.PI);for(var De=Math.ceil(Math.abs(ge-Be)/(Math.PI/Ln)),Le=0;LeLA[2]&&(LA[2]=Ct[2]),Ct[1]LA[3]&&(LA[3]=Ct[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 it,ZA=0;ZANA.selector.specificity||(YA[bA]=NA.css[bA],tt[bA]=NA.selector.specificity)}return YA}(YA),this.allowedChildren=[],this.attr=function(bA){if("function"==typeof YA.getAttribute)return YA.getAttribute(bA)},this.resolveUrl=function(bA){var KA,JA=(bA||"").match(/^\s*(?:url\("(.*)#(.*)"\)|url\('(.*)#(.*)'\)|url\((.*)#(.*)\)|(.*)#(.*))\s*$/)||[],At=JA[1]||JA[3]||JA[5]||JA[7],LA=JA[2]||JA[4]||JA[6]||JA[8];if(LA){if(!At){var it=s.getElementById(LA);if(it)return-1===this.stack.indexOf(it)?it:void ne('SVGtoPDF: loop of circular references for id "'+LA+'"')}if(qe){var ZA=Jt[At];if(!ZA){"object"==typeof(KA=ZA=qe(At))&&null!==KA&&"number"==typeof KA.length||(ZA=[ZA]);for(var Ct=0;Ct=0&&At[3]>=0?At:JA},this.getPercent=function(bA,JA){var At=this.attr(bA),LA=new lt((At||"").trim()),Ct=LA.matchNumber();return!Ct||(LA.match("%")&&(Ct*=.01),LA.matchAll())?JA:Math.max(0,Math.min(1,Ct))},this.chooseValue=function(bA){for(var JA=0;JA=0&&(LA=ZA);break;case"stroke-miterlimit":null!=(ZA=parseFloat(At))&&ZA>=1&&(LA=ZA);break;case"word-spacing":case"letter-spacing":LA=this.computeLength(At,this.getViewport());break;case"stroke-dashoffset":if(null!=(LA=this.computeLength(At,this.getViewport()))&&LA<0)for(var te=this.get("stroke-dasharray"),Et=0;Et0?JA:this.ref?this.ref.getChildren():[]},this.getPaint=function(JA,At,LA,it){var ZA="userSpaceOnUse"!==this.attr("patternUnits"),Ct="objectBoundingBox"===this.attr("patternContentUnits"),Tt=this.getLength("x",ZA?1:this.getParentVWidth(),0),Ut=this.getLength("y",ZA?1:this.getParentVHeight(),0),kt=this.getLength("width",ZA?1:this.getParentVWidth(),0),Wt=this.getLength("height",ZA?1:this.getParentVHeight(),0);Ct&&!ZA?(Tt=(Tt-JA[0])/(JA[2]-JA[0])||0,Ut=(Ut-JA[1])/(JA[3]-JA[1])||0,kt=kt/(JA[2]-JA[0])||0,Wt=Wt/(JA[3]-JA[1])||0):!Ct&&ZA&&(Tt=JA[0]+Tt*(JA[2]-JA[0]),Ut=JA[1]+Ut*(JA[3]-JA[1]),kt*=JA[2]-JA[0],Wt*=JA[3]-JA[1]);var te=this.getViewbox("viewBox",[0,0,kt,Wt]),zt=cA(J((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(Ct&&(jt=cA([JA[2]-JA[0],0,0,JA[3]-JA[1],JA[0],JA[1]],jt)),(jt=_(jt=cA(jt,[1,0,0,1,Tt,Ut])))&&(zt=_(zt))&&(kt=GA(kt))&&(Wt=GA(Wt))){var Ht=w([0,0,kt,Wt]);return a.transform.apply(a,zt),this.drawChildren(LA,it),Q(Ht),[m(Ht,kt,Wt,jt),At]}return PA?[PA[0],PA[1]*At]:void 0},this.getVWidth=function(){var JA="userSpaceOnUse"!==this.attr("patternUnits"),At=this.getLength("width",JA?1:this.getParentVWidth(),0);return this.getViewbox("viewBox",[0,0,At,0])[2]},this.getVHeight=function(){var JA="userSpaceOnUse"!==this.attr("patternUnits"),At=this.getLength("height",JA?1:this.getParentVHeight(),0);return this.getViewbox("viewBox",[0,0,0,At])[3]}},RA=function KA(YA,tt,PA){zA.call(this,YA,tt),this.allowedChildren=["stop"],this.ref=function(){var JA=this.getUrl("href")||this.getUrl("xlink:href");if(JA&&JA.nodeName===YA.nodeName)return new KA(JA,tt,PA)}.call(this);var NA=this.attr;this.attr=function(JA){var At=NA.call(this,JA);return null!=At||"href"===JA||"xlink:href"===JA?At:this.ref?this.ref.attr(JA):null};var bA=this.getChildren;this.getChildren=function(){var JA=bA.call(this);return JA.length>0?JA:this.ref?this.ref.getChildren():[]},this.getPaint=function(JA,At,LA,it){var ZA=this.getChildren();if(0!==ZA.length){if(1===ZA.length){var Ct=ZA[0],Tt=Ct.get("stop-color");return"none"===Tt?void 0:MA(Tt,Ct.get("stop-opacity")*At,it)}var te,Et,zt,jt,Ht,ce,Ut="userSpaceOnUse"!==this.attr("gradientUnits"),kt=q(this.attr("gradientTransform")),Wt=this.attr("spreadMethod"),Vt=0,Be=0,ge=1;if(Ut&&(kt=cA([JA[2]-JA[0],0,0,JA[3]-JA[1],JA[0],JA[1]],kt)),kt=_(kt)){if("linearGradient"===this.name)Et=this.getLength("x1",Ut?1:this.getVWidth(),0),zt=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{zt=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()),Et=this.getLength("fx",Ut?1:this.getVWidth(),zt),jt=this.getLength("fy",Ut?1:this.getVHeight(),Ht),ce<0&&ne("SvgElemGradient: negative r value");var De=Math.sqrt(Math.pow(zt-Et,2)+Math.pow(Ht-jt,2)),Le=1;De>ce&&(Et=zt+(Et-zt)*(Le=ce/De),jt=Ht+(jt-Ht)*Le),ce=Math.max(ce,De*Le*1.000001)}if("reflect"===Wt||"repeat"===Wt){var Ue=xA(kt),ye=lA([JA[0],JA[1]],Ue),Te=lA([JA[2],JA[1]],Ue),ke=lA([JA[2],JA[3]],Ue),xn=lA([JA[0],JA[3]],Ue);"linearGradient"===this.name?(Vt=Math.max((ye[0]-zt)*(zt-Et)+(ye[1]-Ht)*(Ht-jt),(Te[0]-zt)*(zt-Et)+(Te[1]-Ht)*(Ht-jt),(ke[0]-zt)*(zt-Et)+(ke[1]-Ht)*(Ht-jt),(xn[0]-zt)*(zt-Et)+(xn[1]-Ht)*(Ht-jt))/(Math.pow(zt-Et,2)+Math.pow(Ht-jt,2)),Be=Math.max((ye[0]-Et)*(Et-zt)+(ye[1]-jt)*(jt-Ht),(Te[0]-Et)*(Et-zt)+(Te[1]-jt)*(jt-Ht),(ke[0]-Et)*(Et-zt)+(ke[1]-jt)*(jt-Ht),(xn[0]-Et)*(Et-zt)+(xn[1]-jt)*(jt-Ht))/(Math.pow(zt-Et,2)+Math.pow(Ht-jt,2))):Vt=Math.sqrt(Math.max(Math.pow(ye[0]-zt,2)+Math.pow(ye[1]-Ht,2),Math.pow(Te[0]-zt,2)+Math.pow(Te[1]-Ht,2),Math.pow(ke[0]-zt,2)+Math.pow(ke[1]-Ht,2),Math.pow(xn[0]-zt,2)+Math.pow(xn[1]-Ht,2)))/ce-1,Vt=Math.ceil(Vt+.5),ge=(Be=Math.ceil(Be+.5))+1+Vt}te="linearGradient"===this.name?a.linearGradient(Et-Be*(zt-Et),jt-Be*(Ht-jt),zt+Vt*(zt-Et),Ht+Vt*(Ht-jt)):a.radialGradient(Et,jt,0,zt,Ht,ce+Vt*ce);for(var rn=0;rn0&&te.stop((rn+0)/ge,gn[0],gn[1]),te.stop((rn+dn)/(Vt+Be+1),gn[0],gn[1]),an===ZA.length-1&&dn<1&&te.stop((rn+1)/ge,gn[0],gn[1])}return te.setTransform.apply(te,kt),[te,1]}return PA?[PA[0],PA[1]*At]:void 0}}},eA=function(YA,tt){ot.call(this,YA,tt),this.dashScale=1,this.getBoundingShape=function(){return this.shape},this.getTransformation=function(){return this.get("transform")},this.drawInDocument=function(PA,NA){if("hidden"!==this.get("visibility")&&this.shape){if(a.save(),this.transform(),this.clip(),PA)this.shape.insertInDocument(),R(u.white),a.fill(this.get("clip-rule"));else{var JA;this.mask()&&(JA=w(vA()));var At=this.shape.getSubPaths(),LA=this.getFill(PA,NA),it=this.getStroke(PA,NA),ZA=this.get("stroke-width"),Ct=this.get("stroke-linecap");if(LA||it){if(LA&&R(LA),it){for(var Tt=0;Tt0&&At[Tt].startPoint&&At[Tt].startPoint.length>1){var Ut=At[Tt].startPoint[0],kt=At[Tt].startPoint[1];R(it),"square"===Ct?a.rect(Ut-.5*ZA,kt-.5*ZA,ZA,ZA):"round"===Ct&&a.circle(Ut,kt,.5*ZA),a.fill()}var Wt=this.get("stroke-dasharray"),te=this.get("stroke-dashoffset");if(TA(this.dashScale,1)){for(var Et=0;Et0&&At[zt].insertInDocument();LA&&it?a.fillAndStroke(this.get("fill-rule")):LA?a.fill(this.get("fill-rule")):it&&a.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 Vt=this.shape.getMarkers();if("none"!==jt&&new ct(jt,null).drawMarker(!1,NA,Vt[0],ZA),"none"!==Ht)for(var ge=1;ge0&&JA>0?At&&LA?(At=Math.min(At,.5*bA),LA=Math.min(LA,.5*JA),this.shape=(new WA).M(PA+At,NA).L(PA+bA-At,NA).A(At,LA,0,0,1,PA+bA,NA+LA).L(PA+bA,NA+JA-LA).A(At,LA,0,0,1,PA+bA-At,NA+JA).L(PA+At,NA+JA).A(At,LA,0,0,1,PA,NA+JA-LA).L(PA,NA+LA).A(At,LA,0,0,1,PA+At,NA).Z()):this.shape=(new WA).M(PA,NA).L(PA+bA,NA).L(PA+bA,NA+JA).L(PA,NA+JA).Z():this.shape=new WA},Ft=function(YA,tt){eA.call(this,YA,tt);var PA=this.getLength("cx",this.getVWidth(),0),NA=this.getLength("cy",this.getVHeight(),0),bA=this.getLength("r",this.getViewport(),0);this.shape=bA>0?(new WA).M(PA+bA,NA).A(bA,bA,0,0,1,PA-bA,NA).A(bA,bA,0,0,1,PA+bA,NA).Z():new WA},j=function(YA,tt){eA.call(this,YA,tt);var PA=this.getLength("cx",this.getVWidth(),0),NA=this.getLength("cy",this.getVHeight(),0),bA=this.getLength("rx",this.getVWidth(),0),JA=this.getLength("ry",this.getVHeight(),0);this.shape=bA>0&&JA>0?(new WA).M(PA+bA,NA).A(bA,JA,0,0,1,PA-bA,NA).A(bA,JA,0,0,1,PA+bA,NA).Z():new WA},XA=function(YA,tt){eA.call(this,YA,tt);var PA=this.getLength("x1",this.getVWidth(),0),NA=this.getLength("y1",this.getVHeight(),0),bA=this.getLength("x2",this.getVWidth(),0),JA=this.getLength("y2",this.getVHeight(),0);this.shape=(new WA).M(PA,NA).L(bA,JA)},et=function(YA,tt){eA.call(this,YA,tt);var PA=this.getNumberList("points");this.shape=new WA;for(var NA=0;NA0?PA:void 0,this.dashScale=void 0!==this.pathLength?this.shape.totalLength/this.pathLength:1},ct=function(YA,tt){It.call(this,YA,tt);var PA=this.getLength("markerWidth",this.getParentVWidth(),3),NA=this.getLength("markerHeight",this.getParentVHeight(),3),bA=this.getViewbox("viewBox",[0,0,PA,NA]);this.getVWidth=function(){return bA[2]},this.getVHeight=function(){return bA[3]},this.drawMarker=function(JA,At,LA,it){a.save();var ZA=this.attr("orient"),Ct=this.attr("markerUnits"),Tt="auto"===ZA?LA[2]:(parseFloat(ZA)||0)*Math.PI/180,Ut="userSpaceOnUse"===Ct?1:it;a.transform(Math.cos(Tt)*Ut,Math.sin(Tt)*Ut,-Math.sin(Tt)*Ut,Math.cos(Tt)*Ut,LA[0],LA[1]);var Et,kt=this.getLength("refX",this.getVWidth(),0),Wt=this.getLength("refY",this.getVHeight(),0),te=J(this.attr("preserveAspectRatio"),PA,NA,bA[2],bA[3],.5);"hidden"===this.get("overflow")&&a.rect(te[0]*(bA[0]+bA[2]/2-kt)-PA/2,te[3]*(bA[1]+bA[3]/2-Wt)-NA/2,PA,NA).clip(),a.transform.apply(a,te),a.translate(-kt,-Wt),this.get("opacity")<1&&!JA&&(Et=w(vA())),this.drawChildren(JA,At),Et&&(Q(Et),a.fillOpacity(this.get("opacity")),d(Et)),a.restore()}},bt=function(YA,tt){It.call(this,YA,tt),this.useMask=function(PA){var NA=w(vA());a.save(),"objectBoundingBox"===this.attr("clipPathUnits")&&a.transform(PA[2]-PA[0],0,0,PA[3]-PA[1],PA[0],PA[1]),this.clip(),this.drawChildren(!0,!1),a.restore(),Q(NA),F(NA,!0)}},yt=function(YA,tt){It.call(this,YA,tt),this.useMask=function(PA){var bA,JA,At,LA,NA=w(vA());a.save(),"userSpaceOnUse"===this.attr("maskUnits")?(bA=this.getLength("x",this.getVWidth(),-.1*(PA[2]-PA[0])+PA[0]),JA=this.getLength("y",this.getVHeight(),-.1*(PA[3]-PA[1])+PA[1]),At=this.getLength("width",this.getVWidth(),1.2*(PA[2]-PA[0])),LA=this.getLength("height",this.getVHeight(),1.2*(PA[3]-PA[1]))):(bA=this.getLength("x",this.getVWidth(),-.1)*(PA[2]-PA[0])+PA[0],JA=this.getLength("y",this.getVHeight(),-.1)*(PA[3]-PA[1])+PA[1],At=this.getLength("width",this.getVWidth(),1.2)*(PA[2]-PA[0]),LA=this.getLength("height",this.getVHeight(),1.2)*(PA[3]-PA[1])),a.rect(bA,JA,At,LA).clip(),"objectBoundingBox"===this.attr("maskContentUnits")&&a.transform(PA[2]-PA[0],0,0,PA[3]-PA[1],PA[0],PA[1]),this.clip(),this.drawChildren(!1,!0),a.restore(),Q(NA),F(NA,!0)}},Rt=function(YA,tt){ot.call(this,YA,tt),this.allowedChildren=["tspan","#text","#cdata-section","a"],this.isText=!0,this.getBoundingShape=function(){for(var PA=new WA,NA=0;NA Tj")}a.addContent("ET")}}}"line-through"===this.get("text-decoration")&&this.decorate(.05*this._font.size,.5*(HA(this._font.font,this._font.size)+nt(this._font.font,this._font.size)),PA,NA)},this.decorate=function(PA,NA,bA,JA){var At=this.getFill(bA,JA),LA=this.getStroke(bA,JA);At&&R(At),LA&&(N(LA),a.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 it=0,ZA=this._pos;it0?JA:this.pathObject.totalLength,this.pathScale=this.pathObject.totalLength/this.pathLength}else if((bA=this.getUrl("href")||this.getUrl("xlink:href"))&&"path"===bA.nodeName){var At=new jA(bA,this);this.pathObject=At.shape.clone().transform(At.get("transform")),this.pathLength=this.chooseValue(At.pathLength,this.pathObject.totalLength),this.pathScale=this.pathObject.totalLength/this.pathLength}},$t=function(YA,tt){Rt.call(this,YA,tt),this.allowedChildren=["textPath","tspan","#text","#cdata-section","a"],function(PA){var LA,it,NA="",bA=YA.textContent,JA=[],At=[],ZA=0,Ct=0;function Tt(){if(At.length)for(var Et=At[At.length-1],Ht={startltr:0,middleltr:.5,endltr:1,startrtl:1,middlertl:.5,endrtl:0}[LA+it]*(Et.x+Et.width-At[0].x)||0,ce=0;cejt||Be<0)Et._pos[Vt].hidden=!0;else{var ge=zt.getPointAtLength(Be*Ht);TA(Ht,1)&&(Et._pos[Vt].scale*=Ht,Et._pos[Vt].width*=Ht),Et._pos[Vt].x=ge[0]-.5*Et._pos[Vt].width*Math.cos(ge[2])-Et._pos[Vt].y*Math.sin(ge[2]),Et._pos[Vt].y=ge[1]-.5*Et._pos[Vt].width*Math.sin(ge[2])+Et._pos[Vt].y*Math.cos(ge[2]),Et._pos[Vt].rotate=ge[2]+Et._pos[Vt].rotate,Et._pos[Vt].continuous=!1}}else for(var De=0;De0&&ge<1/0)for(var De=0;De=2)for(var Le=(zt-(Be-Vt))/(Et.length-1),Ue=0;Ue0?d-4:d;for(v=0;v>16&255,m[p++]=w>>8&255,m[p++]=255&w;return 2===F&&(w=c[g.charCodeAt(v)]<<2|c[g.charCodeAt(v+1)]>>4,m[p++]=255&w),1===F&&(w=c[g.charCodeAt(v)]<<10|c[g.charCodeAt(v+1)]<<4|c[g.charCodeAt(v+2)]>>2,m[p++]=w>>8&255,m[p++]=255&w),m},I.fromByteArray=function(g){for(var w,Q=g.length,d=Q%3,F=[],m=16383,p=0,D=Q-d;pD?D:p+m));return 1===d?F.push(n[(w=g[Q-1])>>2]+n[w<<4&63]+"=="):2===d&&F.push(n[(w=(g[Q-2]<<8)+g[Q-1])>>10]+n[w>>4&63]+n[w<<2&63]+"="),F.join("")};for(var n=[],c=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,E=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var Q=g.indexOf("=");return-1===Q&&(Q=w),[Q,Q===w?0:4-Q%4]}function C(g){return n[g>>18&63]+n[g>>12&63]+n[g>>6&63]+n[63&g]}function e(g,w,Q){for(var F=[],m=w;m0},a.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 s=this.buf_ptr_,E=this.input_.read(this.buf_,s,I);if(E<0)throw new Error("Unexpected end of input");if(E=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},a.prototype.readBits=function(s){32-this.bit_pos_>>this.bit_pos_&r[s];return this.bit_pos_+=s,E},Y.exports=a},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 r=n(6154).g,a=n(6154).j,s=n(4181),E=n(5139),o=n(966).h,l=n(966).g,h=n(7080),u=n(8435),C=n(2973),D=1080,P=new Uint8Array([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),x=new Uint8Array([3,2,1,0,3,3,3,3,3,3,2,2,2,2,2,2]),R=new Int8Array([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),N=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 V($){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===hA)throw new Error("Invalid size byte");W.meta_block_length|=hA<<8*rA}}else for(rA=0;rA4&&0===HA)throw new Error("Invalid size nibble");W.meta_block_length|=HA<<4*rA}return++W.meta_block_length,!W.input_end&&!W.is_metadata&&(W.is_uncompressed=$.readBits(1)),W}function MA($,W,EA){var rA;return EA.fillBitWindow(),(rA=$[W+=EA.val_>>>EA.bit_pos_&255].bits-8)>0&&(EA.bit_pos_+=8,W+=$[W].value,W+=EA.val_>>>EA.bit_pos_&(1<>=1,++yA;for(nt=0;nt0;++nt){var It,zA=P[nt],ot=0;DA.fillBitWindow(),DA.bit_pos_+=WA[ot+=DA.val_>>>DA.bit_pos_&15].bits,lt[zA]=It=WA[ot].value,0!==It&&(SA-=32>>It,++OA)}if(1!==OA&&0!==SA)throw new Error("[ReadHuffmanCode] invalid num_codes or space");!function($,W,EA,DA){for(var rA=0,hA=8,HA=0,nt=0,st=32768,yA=[],_A=0;_A<32;_A++)yA.push(new o(0,0));for(l(yA,0,5,$,18);rA0;){var lt,ft=0;if(DA.readMoreInput(),DA.fillBitWindow(),DA.bit_pos_+=yA[ft+=DA.val_>>>DA.bit_pos_&31].bits,(lt=255&yA[ft].value)<16)HA=0,EA[rA++]=lt,0!==lt&&(hA=lt,st-=32768>>lt);else{var OA,WA,SA=lt-14,zA=0;if(16===lt&&(zA=hA),nt!==zA&&(HA=0,nt=zA),OA=HA,HA>0&&(HA-=2,HA<<=SA),rA+(WA=(HA+=DA.readBits(SA)+3)-OA)>W)throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");for(var ot=0;ot>>5]),this.htrees=new Uint32Array(W)}function uA($,W){var hA,HA,EA={num_htrees:null,context_map:null},rA=0;W.readMoreInput();var nt=EA.num_htrees=aA(W)+1,st=EA.context_map=new Uint8Array($);if(nt<=1)return EA;for(W.readBits(1)&&(rA=W.readBits(4)+1),hA=[],HA=0;HA=$)throw new Error("[DecodeContextMap] i >= context_map_size");st[HA]=0,++HA}else st[HA]=yA-rA,++HA}return W.readBits(1)&&function($,W){var DA,EA=new Uint8Array(256);for(DA=0;DA<256;++DA)EA[DA]=DA;for(DA=0;DA=$&&(_A-=$),DA[EA]=_A,rA[nt+(1&hA[st])]=_A,++hA[st]}function TA($,W,EA,DA,rA,hA){var yA,HA=rA+1,nt=EA&rA,st=hA.pos_&s.IBUF_MASK;if(W<8||hA.bit_pos_+(W<<3)0;)hA.readMoreInput(),DA[nt++]=hA.readBits(8),nt===HA&&($.write(DA,HA),nt=0);else{if(hA.bit_end_pos_<32)throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");for(;hA.bit_pos_<32;)DA[nt]=hA.val_>>>hA.bit_pos_,hA.bit_pos_+=8,++nt,--W;if(st+(yA=hA.bit_end_pos_-hA.bit_pos_>>3)>s.IBUF_MASK){for(var _A=s.IBUF_MASK+1-st,ft=0;ft<_A;ft++)DA[nt+ft]=hA.buf_[st+ft];yA-=_A,nt+=_A,W-=_A,st=0}for(ft=0;ft=HA)for($.write(DA,HA),nt-=HA,ft=0;ft=HA;){if(hA.input_.read(DA,nt,yA=HA-nt)W.buffer.length){var ne=new Uint8Array(DA+G);ne.set(W.buffer),W.buffer=ne}if(rA=yn.input_end,O=yn.is_uncompressed,yn.is_metadata)for(GA(dt);G>0;--G)dt.readMoreInput(),dt.readBits(8);else if(0!==G){if(O){dt.bit_pos_=dt.bit_pos_+7&-8,TA(W,G,DA,_A,yA,dt),DA+=G;continue}for(EA=0;EA<3;++EA)wA[EA]=aA(dt)+1,wA[EA]>=2&&(lA(wA[EA]+2,ot,EA*D,dt),lA(26,It,EA*D,dt),L[EA]=BA(It,EA*D,dt),eA[EA]=1);for(dt.readMoreInput(),j=(1<<(at=dt.readBits(2)))-1,XA=(Ft=16+(dt.readBits(4)<0;){var tn,qe,Ln,Gn,Jt,Lt,Xt,oe,Mn,Fn,Kn,nr;for(dt.readMoreInput(),0===L[1]&&(CA(wA[1],ot,1,dA,RA,eA,dt),L[1]=BA(It,D,dt),mn=zA[1].htrees[dA[1]]),--L[1],(qe=(tn=MA(zA[1].codes,mn,dt))>>6)>=2?(qe-=2,Xt=-1):Xt=0,Gn=u.kCopyRangeLut[qe]+(7&tn),Jt=u.kInsertLengthPrefixCode[Ln=u.kInsertRangeLut[qe]+(tn>>3&7)].offset+dt.readBits(u.kInsertLengthPrefixCode[Ln].nbits),Lt=u.kCopyLengthPrefixCode[Gn].offset+dt.readBits(u.kCopyLengthPrefixCode[Gn].nbits),OA=_A[DA-1&yA],WA=_A[DA-2&yA],Mn=0;Mn4?3:Lt-2))]],dt))>=Ft&&(nr=(Xt-=Ft)&j,Xt=Ft+((nn=(2+(1&(Xt>>=at))<<(Kn=1+(Xt>>1)))-4)+dt.readBits(Kn)<(nt=DA=E.minDictionaryWordLength&&Lt<=E.maxDictionaryWordLength))throw new Error("Invalid backward reference. pos: "+DA+" distance: "+oe+" len: "+Lt+" bytes left: "+G);var nn=E.offsetsByLength[Lt],KA=oe-nt-1,YA=E.sizeBitsByLength[Lt],NA=KA>>YA;if(nn+=(KA&(1<=ft){W.write(_A,st);for(var JA=0;JA0&&(lt[3&SA]=oe,++SA),Lt>G)throw new Error("Invalid backward reference. pos: "+DA+" distance: "+oe+" len: "+Lt+" bytes left: "+G);for(Mn=0;Mn>=1;return(E&l-1)+l}function a(E,o,l,h,u){do{E[o+(h-=l)]=new n(u.bits,u.value)}while(h>0)}function s(E,o,l){for(var h=1<0;--P[f])a(E,o+w,Q,p,new n(255&f,65535&v[g++])),w=r(w,f);for(F=D-1,d=-1,f=l+1,Q=2;f<=c;++f,Q<<=1)for(;P[f]>0;--P[f])(w&F)!==d&&(o+=p,D+=p=1<<(m=s(P,f,l)),E[C+(d=w&F)]=new n(m+l&255,o-C-d&65535)),a(E,o+(w>>l),Q,p,new n(f-l&255,65535&v[g++])),w=r(w,f);return D}},8435:function(Y,I){function n(c,r){this.offset=c,this.nbits=r}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(r){this.buffer=r,this.pos=0}function c(r){this.buffer=r,this.pos=0}n.prototype.read=function(r,a,s){this.pos+s>this.buffer.length&&(s=this.buffer.length-this.pos);for(var E=0;Ethis.buffer.length)throw new Error("Output buffer is not large enough");return this.buffer.set(r.subarray(0,a),this.pos),this.pos+=a,a},I.j=c},2973:function(Y,I,n){var c=n(5139),f=10,g=11;function T(N,V,aA){this.prefix=new Uint8Array(N.length),this.transform=V,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("",g,""),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("",g," "),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(" ",g," "),new T("",0,"al "),new T(" ",g,""),new T("",0,"='"),new T("",g,'"'),new T("",f,". "),new T(" ",0,"("),new T("",0,"ful "),new T(" ",f,". "),new T("",0,"ive "),new T("",0,"less "),new T("",g,"'"),new T("",0,"est "),new T(" ",f,"."),new T("",g,'">'),new T(" ",0,"='"),new T("",f,","),new T("",0,"ize "),new T("",g,"."),new T("\xc2\xa0",0,""),new T(" ",0,","),new T("",f,'="'),new T("",g,'="'),new T("",0,"ous "),new T("",g,", "),new T("",f,"='"),new T(" ",f,","),new T(" ",g,'="'),new T(" ",g,", "),new T("",g,","),new T("",g,"("),new T("",g,". "),new T(" ",g,"."),new T("",g,"='"),new T(" ",g,". "),new T(" ",f,'="'),new T(" ",g,"='"),new T(" ",f,"='")];function R(N,V){return N[V]<192?(N[V]>=97&&N[V]<=122&&(N[V]^=32),1):N[V]<224?(N[V+1]^=32,2):(N[V+2]^=5,3)}I.kTransforms=x,I.kNumTransforms=x.length,I.transformDictionaryWord=function(N,V,aA,AA,gA){var _,MA=x[gA].prefix,cA=x[gA].suffix,lA=x[gA].transform,BA=lA<12?0:lA-11,vA=0,xA=V;BA>AA&&(BA=AA);for(var QA=0;QA0;){var uA=R(N,_);_+=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,a(this.init_done,"close before init"),a(this.mode<=I.UNZIP),this.mode===I.DEFLATE||this.mode===I.GZIP||this.mode===I.DEFLATERAW?E.deflateEnd(this.strm):(this.mode===I.INFLATE||this.mode===I.GUNZIP||this.mode===I.INFLATERAW||this.mode===I.UNZIP)&&o.inflateEnd(this.strm),this.mode=I.NONE,this.dictionary=null)},e.prototype.write=function(f,g,w,Q,d,F,m){return this._write(!0,f,g,w,Q,d,F,m)},e.prototype.writeSync=function(f,g,w,Q,d,F,m){return this._write(!1,f,g,w,Q,d,F,m)},e.prototype._write=function(f,g,w,Q,d,F,m,p){if(a.equal(arguments.length,8),a(this.init_done,"write before init"),a(this.mode!==I.NONE,"already finalized"),a.equal(!1,this.write_in_progress,"write already in progress"),a.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,a.equal(!1,void 0===g,"must provide flush value"),this.write_in_progress=!0,g!==I.Z_NO_FLUSH&&g!==I.Z_PARTIAL_FLUSH&&g!==I.Z_SYNC_FLUSH&&g!==I.Z_FULL_FLUSH&&g!==I.Z_FINISH&&g!==I.Z_BLOCK)throw new Error("Invalid flush value");if(null==w&&(w=c.alloc(0),d=0,Q=0),this.strm.avail_in=d,this.strm.input=w,this.strm.next_in=Q,this.strm.avail_out=p,this.strm.output=F,this.strm.next_out=m,this.flush=g,!f)return this._process(),this._checkError()?this._afterSync():void 0;var D=this;return r.nextTick(function(){D._process(),D._after()}),this},e.prototype._afterSync=function(){var f=this.strm.avail_out,g=this.strm.avail_in;return this.write_in_progress=!1,[g,f]},e.prototype._process=function(){var f=null;switch(this.mode){case I.DEFLATE:case I.GZIP:case I.DEFLATERAW:this.err=E.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=o.inflate(this.strm,this.flush),this.err===I.Z_NEED_DICT&&this.dictionary&&(this.err=o.inflateSetDictionary(this.strm,this.dictionary),this.err===I.Z_OK?this.err=o.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=o.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},e.prototype._checkError=function(){switch(this.err){case I.Z_OK:case I.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===I.Z_FINISH)return this._error("unexpected end of file"),!1;break;case I.Z_STREAM_END:break;case I.Z_NEED_DICT:return this._error(null==this.dictionary?"Missing dictionary":"Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},e.prototype._after=function(){if(this._checkError()){var f=this.strm.avail_out,g=this.strm.avail_in;this.write_in_progress=!1,this.callback(g,f),this.pending_close&&this.close()}},e.prototype._error=function(f){this.strm.msg&&(f=this.strm.msg),this.onerror(f,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},e.prototype.init=function(f,g,w,Q,d){a(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),a(f>=8&&f<=15,"invalid windowBits"),a(g>=-1&&g<=9,"invalid compression level"),a(w>=1&&w<=9,"invalid memlevel"),a(Q===I.Z_FILTERED||Q===I.Z_HUFFMAN_ONLY||Q===I.Z_RLE||Q===I.Z_FIXED||Q===I.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(g,f,w,Q,d),this._setDictionary()},e.prototype.params=function(){throw new Error("deflateParams Not supported")},e.prototype.reset=function(){this._reset(),this._setDictionary()},e.prototype._init=function(f,g,w,Q,d){switch(this.level=f,this.windowBits=g,this.memLevel=w,this.strategy=Q,this.flush=I.Z_NO_FLUSH,this.err=I.Z_OK,(this.mode===I.GZIP||this.mode===I.GUNZIP)&&(this.windowBits+=16),this.mode===I.UNZIP&&(this.windowBits+=32),(this.mode===I.DEFLATERAW||this.mode===I.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new s,this.mode){case I.DEFLATE:case I.GZIP:case I.DEFLATERAW:this.err=E.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=o.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==I.Z_OK&&this._error("Init error"),this.dictionary=d,this.write_in_progress=!1,this.init_done=!0},e.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=I.Z_OK,this.mode){case I.DEFLATE:case I.DEFLATERAW:this.err=E.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=E.deflateReset(this.strm);break;case I.INFLATE:case I.INFLATERAW:case I.GUNZIP:this.err=o.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),r=n(8823).Buffer,a=n(2830).Transform,s=n(4505),E=n(9539),o=n(9282).ok,l=n(8823).kMaxLength,h="Cannot create final Buffer. It would be larger than 0x"+l.toString(16)+" bytes";s.Z_MIN_WINDOWBITS=8,s.Z_MAX_WINDOWBITS=15,s.Z_DEFAULT_WINDOWBITS=15,s.Z_MIN_CHUNK=64,s.Z_MAX_CHUNK=1/0,s.Z_DEFAULT_CHUNK=16384,s.Z_MIN_MEMLEVEL=1,s.Z_MAX_MEMLEVEL=9,s.Z_DEFAULT_MEMLEVEL=8,s.Z_MIN_LEVEL=-1,s.Z_MAX_LEVEL=9,s.Z_DEFAULT_LEVEL=s.Z_DEFAULT_COMPRESSION;for(var u=Object.keys(s),C=0;C=l?QA=new RangeError(h):_=r.concat(cA,lA),cA=[],AA.close(),MA(QA,_)}AA.on("error",function(_){AA.removeListener("end",xA),AA.removeListener("readable",BA),MA(_)}),AA.on("end",xA),AA.end(gA),BA()}function F(AA,gA){if("string"==typeof gA&&(gA=r.from(gA)),!r.isBuffer(gA))throw new TypeError("Not a string or buffer");return AA._processChunk(gA,AA._finishFlushFlag)}function m(AA){if(!(this instanceof m))return new m(AA);N.call(this,AA,s.DEFLATE)}function p(AA){if(!(this instanceof p))return new p(AA);N.call(this,AA,s.INFLATE)}function D(AA){if(!(this instanceof D))return new D(AA);N.call(this,AA,s.GZIP)}function v(AA){if(!(this instanceof v))return new v(AA);N.call(this,AA,s.GUNZIP)}function P(AA){if(!(this instanceof P))return new P(AA);N.call(this,AA,s.DEFLATERAW)}function T(AA){if(!(this instanceof T))return new T(AA);N.call(this,AA,s.INFLATERAW)}function x(AA){if(!(this instanceof x))return new x(AA);N.call(this,AA,s.UNZIP)}function R(AA){return AA===s.Z_NO_FLUSH||AA===s.Z_PARTIAL_FLUSH||AA===s.Z_SYNC_FLUSH||AA===s.Z_FULL_FLUSH||AA===s.Z_FINISH||AA===s.Z_BLOCK}function N(AA,gA){var MA=this;if(this._opts=AA=AA||{},this._chunkSize=AA.chunkSize||I.Z_DEFAULT_CHUNK,a.call(this,AA),AA.flush&&!R(AA.flush))throw new Error("Invalid flush flag: "+AA.flush);if(AA.finishFlush&&!R(AA.finishFlush))throw new Error("Invalid flush flag: "+AA.finishFlush);if(this._flushFlag=AA.flush||s.Z_NO_FLUSH,this._finishFlushFlag=void 0!==AA.finishFlush?AA.finishFlush:s.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&&!r.isBuffer(AA.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new s.Zlib(gA);var cA=this;this._hadError=!1,this._handle.onerror=function(vA,xA){V(cA),cA._hadError=!0;var _=new Error(vA);_.errno=xA,_.code=I.codes[xA],cA.emit("error",_)};var lA=I.Z_DEFAULT_COMPRESSION;"number"==typeof AA.level&&(lA=AA.level);var BA=I.Z_DEFAULT_STRATEGY;"number"==typeof AA.strategy&&(BA=AA.strategy),this._handle.init(AA.windowBits||I.Z_DEFAULT_WINDOWBITS,lA,AA.memLevel||I.Z_DEFAULT_MEMLEVEL,BA,AA.dictionary),this._buffer=r.allocUnsafe(this._chunkSize),this._offset=0,this._level=lA,this._strategy=BA,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!MA._handle},configurable:!0,enumerable:!0})}function V(AA,gA){gA&&c.nextTick(gA),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=p,I.Gzip=D,I.Gunzip=v,I.DeflateRaw=P,I.InflateRaw=T,I.Unzip=x,I.createDeflate=function(AA){return new m(AA)},I.createInflate=function(AA){return new p(AA)},I.createDeflateRaw=function(AA){return new P(AA)},I.createInflateRaw=function(AA){return new T(AA)},I.createGzip=function(AA){return new D(AA)},I.createGunzip=function(AA){return new v(AA)},I.createUnzip=function(AA){return new x(AA)},I.deflate=function(AA,gA,MA){return"function"==typeof gA&&(MA=gA,gA={}),d(new m(gA),AA,MA)},I.deflateSync=function(AA,gA){return F(new m(gA),AA)},I.gzip=function(AA,gA,MA){return"function"==typeof gA&&(MA=gA,gA={}),d(new D(gA),AA,MA)},I.gzipSync=function(AA,gA){return F(new D(gA),AA)},I.deflateRaw=function(AA,gA,MA){return"function"==typeof gA&&(MA=gA,gA={}),d(new P(gA),AA,MA)},I.deflateRawSync=function(AA,gA){return F(new P(gA),AA)},I.unzip=function(AA,gA,MA){return"function"==typeof gA&&(MA=gA,gA={}),d(new x(gA),AA,MA)},I.unzipSync=function(AA,gA){return F(new x(gA),AA)},I.inflate=function(AA,gA,MA){return"function"==typeof gA&&(MA=gA,gA={}),d(new p(gA),AA,MA)},I.inflateSync=function(AA,gA){return F(new p(gA),AA)},I.gunzip=function(AA,gA,MA){return"function"==typeof gA&&(MA=gA,gA={}),d(new v(gA),AA,MA)},I.gunzipSync=function(AA,gA){return F(new v(gA),AA)},I.inflateRaw=function(AA,gA,MA){return"function"==typeof gA&&(MA=gA,gA={}),d(new T(gA),AA,MA)},I.inflateRawSync=function(AA,gA){return F(new T(gA),AA)},E.inherits(N,a),N.prototype.params=function(AA,gA,MA){if(AAI.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+AA);if(gA!=I.Z_FILTERED&&gA!=I.Z_HUFFMAN_ONLY&&gA!=I.Z_RLE&&gA!=I.Z_FIXED&&gA!=I.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+gA);if(this._level!==AA||this._strategy!==gA){var cA=this;this.flush(s.Z_SYNC_FLUSH,function(){o(cA._handle,"zlib binding closed"),cA._handle.params(AA,gA),cA._hadError||(cA._level=AA,cA._strategy=gA,MA&&MA())})}else c.nextTick(MA)},N.prototype.reset=function(){return o(this._handle,"zlib binding closed"),this._handle.reset()},N.prototype._flush=function(AA){this._transform(r.alloc(0),"",AA)},N.prototype.flush=function(AA,gA){var MA=this,cA=this._writableState;("function"==typeof AA||void 0===AA&&!gA)&&(gA=AA,AA=s.Z_FULL_FLUSH),cA.ended?gA&&c.nextTick(gA):cA.ending?gA&&this.once("end",gA):cA.needDrain?gA&&this.once("drain",function(){return MA.flush(AA,gA)}):(this._flushFlag=AA,this.write(r.alloc(0),"",gA))},N.prototype.close=function(AA){V(this,AA),c.nextTick(aA,this)},N.prototype._transform=function(AA,gA,MA){var cA,lA=this._writableState,vA=(lA.ending||lA.ended)&&(!AA||lA.length===AA.length);return null===AA||r.isBuffer(AA)?this._handle?(vA?cA=this._finishFlushFlag:(cA=this._flushFlag,AA.length>=lA.length&&(this._flushFlag=this._opts.flush||s.Z_NO_FLUSH)),void this._processChunk(AA,cA,MA)):MA(new Error("zlib binding closed")):MA(new Error("invalid input"))},N.prototype._processChunk=function(AA,gA,MA){var cA=AA&&AA.length,lA=this._chunkSize-this._offset,BA=0,vA=this,xA="function"==typeof MA;if(!xA){var uA,_=[],QA=0;this.on("error",function(q){uA=q}),o(this._handle,"zlib binding closed");do{var CA=this._handle.writeSync(gA,AA,BA,cA,this._buffer,this._offset,lA)}while(!this._hadError&&VA(CA[0],CA[1]));if(this._hadError)throw uA;if(QA>=l)throw V(this),new RangeError(h);var TA=r.concat(_,QA);return V(this),TA}o(this._handle,"zlib binding closed");var GA=this._handle.write(gA,AA,BA,cA,this._buffer,this._offset,lA);function VA(q,J){if(this&&(this.buffer=null,this.callback=null),!vA._hadError){var $=lA-J;if(o($>=0,"have should not go down"),$>0){var W=vA._buffer.slice(vA._offset,vA._offset+$);vA._offset+=$,xA?vA.push(W):(_.push(W),QA+=W.length)}if((0===J||vA._offset>=vA._chunkSize)&&(lA=vA._chunkSize,vA._offset=0,vA._buffer=r.allocUnsafe(vA._chunkSize)),0===J){if(BA+=cA-q,cA=q,!xA)return!0;var EA=vA._handle.write(gA,AA,BA,cA,vA._buffer,vA._offset,vA._chunkSize);return EA.callback=VA,void(EA.buffer=AA)}if(!xA)return!1;MA()}}GA.buffer=AA,GA.callback=VA},E.inherits(m,N),E.inherits(p,N),E.inherits(D,N),E.inherits(v,N),E.inherits(P,N),E.inherits(T,N),E.inherits(x,N)},6907:function(Y,I){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function c(s,E){return Object.prototype.hasOwnProperty.call(s,E)}I.assign=function(s){for(var E=Array.prototype.slice.call(arguments,1);E.length;){var o=E.shift();if(o){if("object"!=typeof o)throw new TypeError(o+"must be non-object");for(var l in o)c(o,l)&&(s[l]=o[l])}}return s},I.shrinkBuf=function(s,E){return s.length===E?s:s.subarray?s.subarray(0,E):(s.length=E,s)};var r={arraySet:function(s,E,o,l,h){if(E.subarray&&s.subarray)s.set(E.subarray(o,o+l),h);else for(var u=0;u>>16&65535|0,o=0;0!==r;){r-=o=r>2e3?2e3:r;do{E=E+(s=s+c[a++]|0)|0}while(--o);s%=65521,E%=65521}return s|E<<16|0}},7162: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}},3415:function(Y){"use strict";var n=function(){for(var r,a=[],s=0;s<256;s++){r=s;for(var E=0;E<8;E++)r=1&r?3988292384^r>>>1:r>>>1;a[s]=r}return a}();Y.exports=function(r,a,s,E){var o=n,l=E+s;r^=-1;for(var h=E;h>>8^o[255&(r^a[h])];return-1^r}},2233:function(Y,I,n){"use strict";var vt,c=n(6907),r=n(1339),a=n(7575),s=n(3415),E=n(9364),g=-2,vA=258,xA=262,q=666;function rA(j,XA){return j.msg=E[XA],XA}function hA(j){return(j<<1)-(j>4?9:0)}function HA(j){for(var XA=j.length;--XA>=0;)j[XA]=0}function nt(j){var XA=j.state,et=XA.pending;et>j.avail_out&&(et=j.avail_out),0!==et&&(c.arraySet(j.output,XA.pending_buf,XA.pending_out,et,j.next_out),j.next_out+=et,XA.pending_out+=et,j.total_out+=et,j.avail_out-=et,XA.pending-=et,0===XA.pending&&(XA.pending_out=0))}function st(j,XA){r._tr_flush_block(j,j.block_start>=0?j.block_start:-1,j.strstart-j.block_start,XA),j.block_start=j.strstart,nt(j.strm)}function yA(j,XA){j.pending_buf[j.pending++]=XA}function _A(j,XA){j.pending_buf[j.pending++]=XA>>>8&255,j.pending_buf[j.pending++]=255&XA}function ft(j,XA,et,mA){var jA=j.avail_in;return jA>mA&&(jA=mA),0===jA?0:(j.avail_in-=jA,c.arraySet(XA,j.input,j.next_in,jA,et),1===j.state.wrap?j.adler=a(j.adler,XA,jA,et):2===j.state.wrap&&(j.adler=s(j.adler,XA,jA,et)),j.next_in+=jA,j.total_in+=jA,jA)}function lt(j,XA){var jA,ct,et=j.max_chain_length,mA=j.strstart,bt=j.prev_length,yt=j.nice_match,Rt=j.strstart>j.w_size-xA?j.strstart-(j.w_size-xA):0,Kt=j.window,Ne=j.w_mask,ie=j.prev,$t=j.strstart+vA,me=Kt[mA+bt-1],be=Kt[mA+bt];j.prev_length>=j.good_match&&(et>>=2),yt>j.lookahead&&(yt=j.lookahead);do{if(Kt[(jA=XA)+bt]===be&&Kt[jA+bt-1]===me&&Kt[jA]===Kt[mA]&&Kt[++jA]===Kt[mA+1]){mA+=2,jA++;do{}while(Kt[++mA]===Kt[++jA]&&Kt[++mA]===Kt[++jA]&&Kt[++mA]===Kt[++jA]&&Kt[++mA]===Kt[++jA]&&Kt[++mA]===Kt[++jA]&&Kt[++mA]===Kt[++jA]&&Kt[++mA]===Kt[++jA]&&Kt[++mA]===Kt[++jA]&&mA<$t);if(ct=vA-($t-mA),mA=$t-vA,ct>bt){if(j.match_start=XA,bt=ct,ct>=yt)break;me=Kt[mA+bt-1],be=Kt[mA+bt]}}}while((XA=ie[XA&Ne])>Rt&&0!=--et);return bt<=j.lookahead?bt:j.lookahead}function SA(j){var et,mA,jA,ct,bt,XA=j.w_size;do{if(ct=j.window_size-j.lookahead-j.strstart,j.strstart>=XA+(XA-xA)){c.arraySet(j.window,j.window,XA,XA,0),j.match_start-=XA,j.strstart-=XA,j.block_start-=XA,et=mA=j.hash_size;do{jA=j.head[--et],j.head[et]=jA>=XA?jA-XA:0}while(--mA);et=mA=XA;do{jA=j.prev[--et],j.prev[et]=jA>=XA?jA-XA:0}while(--mA);ct+=XA}if(0===j.strm.avail_in)break;if(mA=ft(j.strm,j.window,j.strstart+j.lookahead,ct),j.lookahead+=mA,j.lookahead+j.insert>=3)for(j.ins_h=j.window[bt=j.strstart-j.insert],j.ins_h=(j.ins_h<=3&&(j.ins_h=(j.ins_h<=3)if(mA=r._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){jA=j.strstart+j.lookahead-3,mA=r._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<=jA&&(j.ins_h=(j.ins_h<15&&(bt=2,mA-=16),jA<1||jA>9||8!==et||mA<8||mA>15||XA<0||XA>9||ct<0||ct>4)return rA(j,g);8===mA&&(mA=9);var yt=new G;return j.state=yt,yt.strm=j,yt.wrap=bt,yt.gzhead=null,yt.w_bits=mA,yt.w_size=1<j.pending_buf_size-5&&(et=j.pending_buf_size-5);;){if(j.lookahead<=1){if(SA(j),0===j.lookahead&&0===XA)return 1;if(0===j.lookahead)break}j.strstart+=j.lookahead,j.lookahead=0;var mA=j.block_start+et;if((0===j.strstart||j.strstart>=mA)&&(j.lookahead=j.strstart-mA,j.strstart=mA,st(j,!1),0===j.strm.avail_out)||j.strstart-j.block_start>=j.w_size-xA&&(st(j,!1),0===j.strm.avail_out))return 1}return j.insert=0,4===XA?(st(j,!0),0===j.strm.avail_out?3:4):(j.strstart>j.block_start&&st(j,!1),1)}),new dt(4,4,8,4,WA),new dt(4,5,16,8,WA),new dt(4,6,32,32,WA),new dt(4,4,16,16,zA),new dt(8,16,32,32,zA),new dt(8,16,128,128,zA),new dt(8,32,128,256,zA),new dt(32,128,258,1024,zA),new dt(32,258,258,4096,zA)],I.deflateInit=function(j,XA){return wA(j,XA,8,15,8,0)},I.deflateInit2=wA,I.deflateReset=L,I.deflateResetKeep=O,I.deflateSetHeader=function(j,XA){return j&&j.state&&2===j.state.wrap?(j.state.gzhead=XA,0):g},I.deflate=function(j,XA){var et,mA,jA,ct;if(!j||!j.state||XA>5||XA<0)return j?rA(j,g):g;if(mA=j.state,!j.output||!j.input&&0!==j.avail_in||mA.status===q&&4!==XA)return rA(j,0===j.avail_out?-5:g);if(mA.strm=j,et=mA.last_flush,mA.last_flush=XA,42===mA.status)if(2===mA.wrap)j.adler=0,yA(mA,31),yA(mA,139),yA(mA,8),mA.gzhead?(yA(mA,(mA.gzhead.text?1:0)+(mA.gzhead.hcrc?2:0)+(mA.gzhead.extra?4:0)+(mA.gzhead.name?8:0)+(mA.gzhead.comment?16:0)),yA(mA,255&mA.gzhead.time),yA(mA,mA.gzhead.time>>8&255),yA(mA,mA.gzhead.time>>16&255),yA(mA,mA.gzhead.time>>24&255),yA(mA,9===mA.level?2:mA.strategy>=2||mA.level<2?4:0),yA(mA,255&mA.gzhead.os),mA.gzhead.extra&&mA.gzhead.extra.length&&(yA(mA,255&mA.gzhead.extra.length),yA(mA,mA.gzhead.extra.length>>8&255)),mA.gzhead.hcrc&&(j.adler=s(j.adler,mA.pending_buf,mA.pending,0)),mA.gzindex=0,mA.status=69):(yA(mA,0),yA(mA,0),yA(mA,0),yA(mA,0),yA(mA,0),yA(mA,9===mA.level?2:mA.strategy>=2||mA.level<2?4:0),yA(mA,3),mA.status=113);else{var bt=8+(mA.w_bits-8<<4)<<8;bt|=(mA.strategy>=2||mA.level<2?0:mA.level<6?1:6===mA.level?2:3)<<6,0!==mA.strstart&&(bt|=32),bt+=31-bt%31,mA.status=113,_A(mA,bt),0!==mA.strstart&&(_A(mA,j.adler>>>16),_A(mA,65535&j.adler)),j.adler=1}if(69===mA.status)if(mA.gzhead.extra){for(jA=mA.pending;mA.gzindex<(65535&mA.gzhead.extra.length)&&(mA.pending!==mA.pending_buf_size||(mA.gzhead.hcrc&&mA.pending>jA&&(j.adler=s(j.adler,mA.pending_buf,mA.pending-jA,jA)),nt(j),jA=mA.pending,mA.pending!==mA.pending_buf_size));)yA(mA,255&mA.gzhead.extra[mA.gzindex]),mA.gzindex++;mA.gzhead.hcrc&&mA.pending>jA&&(j.adler=s(j.adler,mA.pending_buf,mA.pending-jA,jA)),mA.gzindex===mA.gzhead.extra.length&&(mA.gzindex=0,mA.status=73)}else mA.status=73;if(73===mA.status)if(mA.gzhead.name){jA=mA.pending;do{if(mA.pending===mA.pending_buf_size&&(mA.gzhead.hcrc&&mA.pending>jA&&(j.adler=s(j.adler,mA.pending_buf,mA.pending-jA,jA)),nt(j),jA=mA.pending,mA.pending===mA.pending_buf_size)){ct=1;break}ct=mA.gzindexjA&&(j.adler=s(j.adler,mA.pending_buf,mA.pending-jA,jA)),0===ct&&(mA.gzindex=0,mA.status=91)}else mA.status=91;if(91===mA.status)if(mA.gzhead.comment){jA=mA.pending;do{if(mA.pending===mA.pending_buf_size&&(mA.gzhead.hcrc&&mA.pending>jA&&(j.adler=s(j.adler,mA.pending_buf,mA.pending-jA,jA)),nt(j),jA=mA.pending,mA.pending===mA.pending_buf_size)){ct=1;break}ct=mA.gzindexjA&&(j.adler=s(j.adler,mA.pending_buf,mA.pending-jA,jA)),0===ct&&(mA.status=103)}else mA.status=103;if(103===mA.status&&(mA.gzhead.hcrc?(mA.pending+2>mA.pending_buf_size&&nt(j),mA.pending+2<=mA.pending_buf_size&&(yA(mA,255&j.adler),yA(mA,j.adler>>8&255),j.adler=0,mA.status=113)):mA.status=113),0!==mA.pending){if(nt(j),0===j.avail_out)return mA.last_flush=-1,0}else if(0===j.avail_in&&hA(XA)<=hA(et)&&4!==XA)return rA(j,-5);if(mA.status===q&&0!==j.avail_in)return rA(j,-5);if(0!==j.avail_in||0!==mA.lookahead||0!==XA&&mA.status!==q){var Rt=2===mA.strategy?function(j,XA){for(var et;;){if(0===j.lookahead&&(SA(j),0===j.lookahead)){if(0===XA)return 1;break}if(j.match_length=0,et=r._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++,et&&(st(j,!1),0===j.strm.avail_out))return 1}return j.insert=0,4===XA?(st(j,!0),0===j.strm.avail_out?3:4):j.last_lit&&(st(j,!1),0===j.strm.avail_out)?1:2}(mA,XA):3===mA.strategy?function(j,XA){for(var et,mA,jA,ct,bt=j.window;;){if(j.lookahead<=vA){if(SA(j),j.lookahead<=vA&&0===XA)return 1;if(0===j.lookahead)break}if(j.match_length=0,j.lookahead>=3&&j.strstart>0&&(mA=bt[jA=j.strstart-1])===bt[++jA]&&mA===bt[++jA]&&mA===bt[++jA]){ct=j.strstart+vA;do{}while(mA===bt[++jA]&&mA===bt[++jA]&&mA===bt[++jA]&&mA===bt[++jA]&&mA===bt[++jA]&&mA===bt[++jA]&&mA===bt[++jA]&&mA===bt[++jA]&&jAj.lookahead&&(j.match_length=j.lookahead)}if(j.match_length>=3?(et=r._tr_tally(j,1,j.match_length-3),j.lookahead-=j.match_length,j.strstart+=j.match_length,j.match_length=0):(et=r._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++),et&&(st(j,!1),0===j.strm.avail_out))return 1}return j.insert=0,4===XA?(st(j,!0),0===j.strm.avail_out?3:4):j.last_lit&&(st(j,!1),0===j.strm.avail_out)?1:2}(mA,XA):vt[mA.level].func(mA,XA);if((3===Rt||4===Rt)&&(mA.status=q),1===Rt||3===Rt)return 0===j.avail_out&&(mA.last_flush=-1),0;if(2===Rt&&(1===XA?r._tr_align(mA):5!==XA&&(r._tr_stored_block(mA,0,0,!1),3===XA&&(HA(mA.head),0===mA.lookahead&&(mA.strstart=0,mA.block_start=0,mA.insert=0))),nt(j),0===j.avail_out))return mA.last_flush=-1,0}return 4!==XA?0:mA.wrap<=0?1:(2===mA.wrap?(yA(mA,255&j.adler),yA(mA,j.adler>>8&255),yA(mA,j.adler>>16&255),yA(mA,j.adler>>24&255),yA(mA,255&j.total_in),yA(mA,j.total_in>>8&255),yA(mA,j.total_in>>16&255),yA(mA,j.total_in>>24&255)):(_A(mA,j.adler>>>16),_A(mA,65535&j.adler)),nt(j),mA.wrap>0&&(mA.wrap=-mA.wrap),0!==mA.pending?0:1)},I.deflateEnd=function(j){var XA;return j&&j.state?42!==(XA=j.state.status)&&69!==XA&&73!==XA&&91!==XA&&103!==XA&&113!==XA&&XA!==q?rA(j,g):(j.state=null,113===XA?rA(j,-3):0):g},I.deflateSetDictionary=function(j,XA){var mA,jA,ct,bt,yt,Rt,Kt,Ne,et=XA.length;if(!j||!j.state||2===(bt=(mA=j.state).wrap)||1===bt&&42!==mA.status||mA.lookahead)return g;for(1===bt&&(j.adler=a(j.adler,XA,et,0)),mA.wrap=0,et>=mA.w_size&&(0===bt&&(HA(mA.head),mA.strstart=0,mA.block_start=0,mA.insert=0),Ne=new c.Buf8(mA.w_size),c.arraySet(Ne,XA,et-mA.w_size,mA.w_size,0),XA=Ne,et=mA.w_size),yt=j.avail_in,Rt=j.next_in,Kt=j.input,j.avail_in=et,j.next_in=0,j.input=XA,SA(mA);mA.lookahead>=3;){jA=mA.strstart,ct=mA.lookahead-2;do{mA.ins_h=(mA.ins_h<>>=P=v>>>24,d-=P,0==(P=v>>>16&255))aA[l++]=65535&v;else{if(!(16&P)){if(0==(64&P)){v=F[(65535&v)+(Q&(1<>>=P,d-=P),d<15&&(Q+=V[E++]<>>=P=v>>>24,d-=P,!(16&(P=v>>>16&255))){if(0==(64&P)){v=m[(65535&v)+(Q&(1<C){r.msg="invalid distance too far back",s.mode=30;break A}if(Q>>>=P,d-=P,x>(P=l-h)){if((P=x-P)>f&&s.sane){r.msg="invalid distance too far back",s.mode=30;break A}if(R=0,N=w,0===g){if(R+=e-P,P2;)aA[l++]=N[R++],aA[l++]=N[R++],aA[l++]=N[R++],T-=3;T&&(aA[l++]=N[R++],T>1&&(aA[l++]=N[R++]))}else{R=l-x;do{aA[l++]=aA[R++],aA[l++]=aA[R++],aA[l++]=aA[R++],T-=3}while(T>2);T&&(aA[l++]=aA[R++],T>1&&(aA[l++]=aA[R++]))}break}}break}}while(E>3)<<3))-1,r.next_in=E-=T,r.next_out=l,r.avail_in=E>>24&255)+(wA>>>8&65280)+((65280&wA)<<8)+((255&wA)<<24)}function ft(){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 lt(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 SA(wA){var RA;return wA&&wA.state?((RA=wA.state).wsize=0,RA.whave=0,RA.wnext=0,lt(wA)):Q}function OA(wA,RA){var eA,at;return!wA||!wA.state||(at=wA.state,RA<0?(eA=0,RA=-RA):(eA=1+(RA>>4),RA<48&&(RA&=15)),RA&&(RA<8||RA>15))?Q:(null!==at.window&&at.wbits!==RA&&(at.window=null),at.wrap=eA,at.wbits=RA,SA(wA))}function WA(wA,RA){var eA,at;return wA?(at=new ft,wA.state=at,at.window=null,0!==(eA=OA(wA,RA))&&(wA.state=null),eA):Q}var It,dt,ot=!0;function vt(wA){if(ot){var RA;for(It=new c.Buf32(512),dt=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(E(1,wA.lens,0,288,It,0,wA.work,{bits:9}),RA=0;RA<32;)wA.lens[RA++]=5;E(2,wA.lens,0,32,dt,0,wA.work,{bits:5}),ot=!1}wA.lencode=It,wA.lenbits=9,wA.distcode=dt,wA.distbits=5}function Pt(wA,RA,eA,at){var Ft,j=wA.state;return null===j.window&&(j.wsize=1<=j.wsize?(c.arraySet(j.window,RA,eA-j.wsize,j.wsize,0),j.wnext=0,j.whave=j.wsize):((Ft=j.wsize-j.wnext)>at&&(Ft=at),c.arraySet(j.window,RA,eA-at,Ft,j.wnext),(at-=Ft)?(c.arraySet(j.window,RA,eA-at,at,0),j.wnext=at,j.whave=j.wsize):(j.wnext+=Ft,j.wnext===j.wsize&&(j.wnext=0),j.whave>>8&255,eA.check=a(eA.check,Se,2,0),jA=0,ct=0,eA.mode=2;break}if(eA.flags=0,eA.head&&(eA.head.done=!1),!(1&eA.wrap)||(((255&jA)<<8)+(jA>>8))%31){wA.msg="incorrect header check",eA.mode=30;break}if(8!=(15&jA)){wA.msg="unknown compression method",eA.mode=30;break}if(ct-=4,ne=8+(15&(jA>>>=4)),0===eA.wbits)eA.wbits=ne;else if(ne>eA.wbits){wA.msg="invalid window size",eA.mode=30;break}eA.dmax=1<>8&1),512&eA.flags&&(Se[0]=255&jA,Se[1]=jA>>>8&255,eA.check=a(eA.check,Se,2,0)),jA=0,ct=0,eA.mode=3;case 3:for(;ct<32;){if(0===et)break A;et--,jA+=at[j++]<>>8&255,Se[2]=jA>>>16&255,Se[3]=jA>>>24&255,eA.check=a(eA.check,Se,4,0)),jA=0,ct=0,eA.mode=4;case 4:for(;ct<16;){if(0===et)break A;et--,jA+=at[j++]<>8),512&eA.flags&&(Se[0]=255&jA,Se[1]=jA>>>8&255,eA.check=a(eA.check,Se,2,0)),jA=0,ct=0,eA.mode=5;case 5:if(1024&eA.flags){for(;ct<16;){if(0===et)break A;et--,jA+=at[j++]<>>8&255,eA.check=a(eA.check,Se,2,0)),jA=0,ct=0}else eA.head&&(eA.head.extra=null);eA.mode=6;case 6:if(1024&eA.flags&&((Rt=eA.length)>et&&(Rt=et),Rt&&(eA.head&&(ne=eA.head.extra_len-eA.length,eA.head.extra||(eA.head.extra=new Array(eA.head.extra_len)),c.arraySet(eA.head.extra,at,j,Rt,ne)),512&eA.flags&&(eA.check=a(eA.check,at,Rt,j)),et-=Rt,j+=Rt,eA.length-=Rt),eA.length))break A;eA.length=0,eA.mode=7;case 7:if(2048&eA.flags){if(0===et)break A;Rt=0;do{ne=at[j+Rt++],eA.head&&ne&&eA.length<65536&&(eA.head.name+=String.fromCharCode(ne))}while(ne&&Rt>9&1,eA.head.done=!0),wA.adler=eA.check=0,eA.mode=12;break;case 10:for(;ct<32;){if(0===et)break A;et--,jA+=at[j++]<>>=7&ct,ct-=7&ct,eA.mode=27;break}for(;ct<3;){if(0===et)break A;et--,jA+=at[j++]<>>=1)){case 0:eA.mode=14;break;case 1:if(vt(eA),eA.mode=20,6===RA){jA>>>=2,ct-=2;break A}break;case 2:eA.mode=17;break;case 3:wA.msg="invalid block type",eA.mode=30}jA>>>=2,ct-=2;break;case 14:for(jA>>>=7&ct,ct-=7&ct;ct<32;){if(0===et)break A;et--,jA+=at[j++]<>>16^65535)){wA.msg="invalid stored block lengths",eA.mode=30;break}if(eA.length=65535&jA,jA=0,ct=0,eA.mode=15,6===RA)break A;case 15:eA.mode=16;case 16:if(Rt=eA.length){if(Rt>et&&(Rt=et),Rt>mA&&(Rt=mA),0===Rt)break A;c.arraySet(Ft,at,j,Rt,XA),et-=Rt,j+=Rt,mA-=Rt,XA+=Rt,eA.length-=Rt;break}eA.mode=12;break;case 17:for(;ct<14;){if(0===et)break A;et--,jA+=at[j++]<>>=5)),ct-=5,eA.ncode=4+(15&(jA>>>=5)),jA>>>=4,ct-=4,eA.nlen>286||eA.ndist>30){wA.msg="too many length or distance symbols",eA.mode=30;break}eA.have=0,eA.mode=18;case 18:for(;eA.have>>=3,ct-=3}for(;eA.have<19;)eA.lens[Ln[eA.have++]]=0;if(eA.lencode=eA.lendyn,eA.lenbits=7,An=E(0,eA.lens,0,19,eA.lencode,0,eA.work,tn={bits:eA.lenbits}),eA.lenbits=tn.bits,An){wA.msg="invalid code lengths set",eA.mode=30;break}eA.have=0,eA.mode=19;case 19:for(;eA.have>>16&255,be=65535&ie,!(($t=ie>>>24)<=ct);){if(0===et)break A;et--,jA+=at[j++]<>>=$t,ct-=$t,eA.lens[eA.have++]=be;else{if(16===be){for(qe=$t+2;ct>>=$t,ct-=$t,0===eA.have){wA.msg="invalid bit length repeat",eA.mode=30;break}ne=eA.lens[eA.have-1],Rt=3+(3&jA),jA>>>=2,ct-=2}else if(17===be){for(qe=$t+3;ct>>=$t)),jA>>>=3,ct-=3}else{for(qe=$t+7;ct>>=$t)),jA>>>=7,ct-=7}if(eA.have+Rt>eA.nlen+eA.ndist){wA.msg="invalid bit length repeat",eA.mode=30;break}for(;Rt--;)eA.lens[eA.have++]=ne}}if(30===eA.mode)break;if(0===eA.lens[256]){wA.msg="invalid code -- missing end-of-block",eA.mode=30;break}if(eA.lenbits=9,An=E(1,eA.lens,0,eA.nlen,eA.lencode,0,eA.work,tn={bits:eA.lenbits}),eA.lenbits=tn.bits,An){wA.msg="invalid literal/lengths set",eA.mode=30;break}if(eA.distbits=6,eA.distcode=eA.distdyn,An=E(2,eA.lens,eA.nlen,eA.ndist,eA.distcode,0,eA.work,tn={bits:eA.distbits}),eA.distbits=tn.bits,An){wA.msg="invalid distances set",eA.mode=30;break}if(eA.mode=20,6===RA)break A;case 20:eA.mode=21;case 21:if(et>=6&&mA>=258){wA.next_out=XA,wA.avail_out=mA,wA.next_in=j,wA.avail_in=et,eA.hold=jA,eA.bits=ct,s(wA,yt),XA=wA.next_out,Ft=wA.output,mA=wA.avail_out,j=wA.next_in,at=wA.input,et=wA.avail_in,jA=eA.hold,ct=eA.bits,12===eA.mode&&(eA.back=-1);break}for(eA.back=0;me=(ie=eA.lencode[jA&(1<>>16&255,be=65535&ie,!(($t=ie>>>24)<=ct);){if(0===et)break A;et--,jA+=at[j++]<>Re)])>>>16&255,be=65535&ie,!(Re+($t=ie>>>24)<=ct);){if(0===et)break A;et--,jA+=at[j++]<>>=Re,ct-=Re,eA.back+=Re}if(jA>>>=$t,ct-=$t,eA.back+=$t,eA.length=be,0===me){eA.mode=26;break}if(32&me){eA.back=-1,eA.mode=12;break}if(64&me){wA.msg="invalid literal/length code",eA.mode=30;break}eA.extra=15&me,eA.mode=22;case 22:if(eA.extra){for(qe=eA.extra;ct>>=eA.extra,ct-=eA.extra,eA.back+=eA.extra}eA.was=eA.length,eA.mode=23;case 23:for(;me=(ie=eA.distcode[jA&(1<>>16&255,be=65535&ie,!(($t=ie>>>24)<=ct);){if(0===et)break A;et--,jA+=at[j++]<>Re)])>>>16&255,be=65535&ie,!(Re+($t=ie>>>24)<=ct);){if(0===et)break A;et--,jA+=at[j++]<>>=Re,ct-=Re,eA.back+=Re}if(jA>>>=$t,ct-=$t,eA.back+=$t,64&me){wA.msg="invalid distance code",eA.mode=30;break}eA.offset=be,eA.extra=15&me,eA.mode=24;case 24:if(eA.extra){for(qe=eA.extra;ct>>=eA.extra,ct-=eA.extra,eA.back+=eA.extra}if(eA.offset>eA.dmax){wA.msg="invalid distance too far back",eA.mode=30;break}eA.mode=25;case 25:if(0===mA)break A;if(eA.offset>(Rt=yt-mA)){if((Rt=eA.offset-Rt)>eA.whave&&eA.sane){wA.msg="invalid distance too far back",eA.mode=30;break}Kt=Rt>eA.wnext?eA.wsize-(Rt-=eA.wnext):eA.wnext-Rt,Rt>eA.length&&(Rt=eA.length),Ne=eA.window}else Ne=Ft,Kt=XA-eA.offset,Rt=eA.length;Rt>mA&&(Rt=mA),mA-=Rt,eA.length-=Rt;do{Ft[XA++]=Ne[Kt++]}while(--Rt);0===eA.length&&(eA.mode=21);break;case 26:if(0===mA)break A;Ft[XA++]=eA.length,mA--,eA.mode=21;break;case 27:if(eA.wrap){for(;ct<32;){if(0===et)break A;et--,jA|=at[j++]<=1&&0===CA[R];R--);if(N>R&&(N=R),0===R)return F[m++]=20971520,F[m++]=20971520,D.bits=1,0;for(x=1;x0&&(0===g||1!==R))return-1;for(TA[1]=0,P=1;P852||2===g&&gA>592)return 1;for(;;){q=P-aA,p[T]uA?(J=GA[VA+p[T]],$=_[QA+p[T]]):(J=96,$=0),cA=1<>aA)+(lA-=cA)]=q<<24|J<<16|$|0}while(0!==lA);for(cA=1<>=1;if(0!==cA?(MA&=cA-1,MA+=cA):MA=0,T++,0==--CA[P]){if(P===R)break;P=w[Q+p[T]]}if(P>N&&(MA&vA)!==BA){for(0===aA&&(aA=N),xA+=x,AA=1<<(V=P-aA);V+aA852||2===g&&gA>592)return 1;F[BA=MA&vA]=N<<24|V<<16|xA-m|0}}return 0!==MA&&(F[xA+MA]=P-aA<<24|64<<16|0),D.bits=N,0}},9364: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"}},1339:function(Y,I,n){"use strict";var c=n(6907);function o(G){for(var O=G.length;--O>=0;)G[O]=0}var g=256,w=286,Q=30,m=15,R=[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],N=[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],V=[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],gA=new Array(576);o(gA);var MA=new Array(60);o(MA);var cA=new Array(512);o(cA);var lA=new Array(256);o(lA);var BA=new Array(29);o(BA);var _,QA,uA,vA=new Array(Q);function xA(G,O,L,dA,wA){this.static_tree=G,this.extra_bits=O,this.extra_base=L,this.elems=dA,this.max_length=wA,this.has_stree=G&&G.length}function CA(G,O){this.dyn_tree=G,this.max_code=0,this.stat_desc=O}function TA(G){return G<256?cA[G]:cA[256+(G>>>7)]}function GA(G,O){G.pending_buf[G.pending++]=255&O,G.pending_buf[G.pending++]=O>>>8&255}function VA(G,O,L){G.bi_valid>16-L?(G.bi_buf|=O<>16-G.bi_valid,G.bi_valid+=L-16):(G.bi_buf|=O<>>=1,L<<=1}while(--O>0);return L>>>1}function EA(G,O,L){var RA,eA,dA=new Array(16),wA=0;for(RA=1;RA<=m;RA++)dA[RA]=wA=wA+L[RA-1]<<1;for(eA=0;eA<=O;eA++){var at=G[2*eA+1];0!==at&&(G[2*eA]=J(dA[at]++,at))}}function rA(G){var O;for(O=0;O8?GA(G,G.bi_buf):G.bi_valid>0&&(G.pending_buf[G.pending++]=G.bi_buf),G.bi_buf=0,G.bi_valid=0}function nt(G,O,L,dA){var wA=2*O,RA=2*L;return G[wA]>1;eA>=1;eA--)st(G,L,eA);j=RA;do{eA=G.heap[1],G.heap[1]=G.heap[G.heap_len--],st(G,L,1),at=G.heap[1],G.heap[--G.heap_max]=eA,G.heap[--G.heap_max]=at,L[2*j]=L[2*eA]+L[2*at],G.depth[j]=(G.depth[eA]>=G.depth[at]?G.depth[eA]:G.depth[at])+1,L[2*eA+1]=L[2*at+1]=j,G.heap[1]=j++,st(G,L,1)}while(G.heap_len>=2);G.heap[--G.heap_max]=G.heap[1],function(G,O){var j,XA,et,mA,jA,ct,L=O.dyn_tree,dA=O.max_code,wA=O.stat_desc.static_tree,RA=O.stat_desc.has_stree,eA=O.stat_desc.extra_bits,at=O.stat_desc.extra_base,Ft=O.stat_desc.max_length,bt=0;for(mA=0;mA<=m;mA++)G.bl_count[mA]=0;for(L[2*G.heap[G.heap_max]+1]=0,j=G.heap_max+1;j<573;j++)(mA=L[2*L[2*(XA=G.heap[j])+1]+1]+1)>Ft&&(mA=Ft,bt++),L[2*XA+1]=mA,!(XA>dA)&&(G.bl_count[mA]++,jA=0,XA>=at&&(jA=eA[XA-at]),G.opt_len+=(ct=L[2*XA])*(mA+jA),RA&&(G.static_len+=ct*(wA[2*XA+1]+jA)));if(0!==bt){do{for(mA=Ft-1;0===G.bl_count[mA];)mA--;G.bl_count[mA]--,G.bl_count[mA+1]+=2,G.bl_count[Ft]--,bt-=2}while(bt>0);for(mA=Ft;0!==mA;mA--)for(XA=G.bl_count[mA];0!==XA;)!((et=G.heap[--j])>dA)&&(L[2*et+1]!==mA&&(G.opt_len+=(mA-L[2*et+1])*L[2*et],L[2*et+1]=mA),XA--)}}(G,O),EA(L,Ft,G.bl_count)}function ft(G,O,L){var dA,RA,wA=-1,eA=O[1],at=0,Ft=7,j=4;for(0===eA&&(Ft=138,j=3),O[2*(L+1)+1]=65535,dA=0;dA<=L;dA++)RA=eA,eA=O[2*(dA+1)+1],!(++at>=7;dA0?(2===G.strm.data_type&&(G.strm.data_type=function(G){var L,O=4093624447;for(L=0;L<=31;L++,O>>>=1)if(1&O&&0!==G.dyn_ltree[2*L])return 0;if(0!==G.dyn_ltree[18]||0!==G.dyn_ltree[20]||0!==G.dyn_ltree[26])return 1;for(L=32;L=3&&0===G.bl_tree[2*aA[O]+1];O--);return G.opt_len+=3*(O+1)+5+5+4,O}(G),(RA=G.static_len+3+7>>>3)<=(wA=G.opt_len+3+7>>>3)&&(wA=RA)):wA=RA=L+5,L+4<=wA&&-1!==O?It(G,O,L,dA):4===G.strategy||RA===wA?(VA(G,2+(dA?1:0),3),yA(G,gA,MA)):(VA(G,4+(dA?1:0),3),function(G,O,L,dA){var wA;for(VA(G,O-257,5),VA(G,L-1,5),VA(G,dA-4,4),wA=0;wA>>8&255,G.pending_buf[G.d_buf+2*G.last_lit+1]=255&O,G.pending_buf[G.l_buf+G.last_lit]=255&L,G.last_lit++,0===O?G.dyn_ltree[2*L]++:(G.matches++,O--,G.dyn_ltree[2*(lA[L]+g+1)]++,G.dyn_dtree[2*TA(O)]++),G.last_lit===G.lit_bufsize-1},I._tr_align=function(G){VA(G,2,3),q(G,256,gA),function(G){16===G.bi_valid?(GA(G,G.bi_buf),G.bi_buf=0,G.bi_valid=0):G.bi_valid>=8&&(G.pending_buf[G.pending++]=255&G.bi_buf,G.bi_buf>>=8,G.bi_valid-=8)}(G)}},4860:function(Y){"use strict";Y.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},1924:function(Y,I,n){"use strict";var c=n(210),r=n(5559),a=r(c("String.prototype.indexOf"));Y.exports=function(E,o){var l=c(E,!!o);return"function"==typeof l&&a(E,".prototype.")>-1?r(l):l}},5559:function(Y,I,n){"use strict";var c=n(8612),r=n(210),a=r("%Function.prototype.apply%"),s=r("%Function.prototype.call%"),E=r("%Reflect.apply%",!0)||c.call(s,a),o=r("%Object.getOwnPropertyDescriptor%",!0),l=r("%Object.defineProperty%",!0),h=r("%Math.max%");if(l)try{l({},"a",{value:1})}catch(C){l=null}Y.exports=function(e){var f=E(c,s,arguments);return o&&l&&o(f,"length").configurable&&l(f,"length",{value:1+h(0,e.length-(arguments.length-1))}),f};var u=function(){return E(c,a,arguments)};l?l(Y.exports,"apply",{value:u}):Y.exports.apply=u},6313:function(Y,I,n){var c=n(8823).Buffer,r=function(){"use strict";function a(u,C,e,f){"object"==typeof C&&(e=C.depth,f=C.prototype,C=C.circular);var w=[],Q=[],d=void 0!==c;return void 0===C&&(C=!0),void 0===e&&(e=1/0),function F(m,p){if(null===m)return null;if(0==p)return m;var D,v;if("object"!=typeof m)return m;if(a.__isArray(m))D=[];else if(a.__isRegExp(m))D=new RegExp(m.source,h(m)),m.lastIndex&&(D.lastIndex=m.lastIndex);else if(a.__isDate(m))D=new Date(m.getTime());else{if(d&&c.isBuffer(m))return D=c.allocUnsafe?c.allocUnsafe(m.length):new c(m.length),m.copy(D),D;void 0===f?(v=Object.getPrototypeOf(m),D=Object.create(v)):(D=Object.create(f),v=f)}if(C){var P=w.indexOf(m);if(-1!=P)return Q[P];w.push(m),Q.push(D)}for(var T in m){var x;v&&(x=Object.getOwnPropertyDescriptor(v,T)),(!x||null!=x.set)&&(D[T]=F(m[T],p-1))}return D}(u,e)}function s(u){return Object.prototype.toString.call(u)}function h(u){var C="";return u.global&&(C+="g"),u.ignoreCase&&(C+="i"),u.multiline&&(C+="m"),C}return a.clonePrototype=function(C){if(null===C)return null;var e=function(){};return e.prototype=C,new e},a.__objToStr=s,a.__isDate=function(u){return"object"==typeof u&&"[object Date]"===s(u)},a.__isArray=function(u){return"object"==typeof u&&"[object Array]"===s(u)},a.__isRegExp=function(u){return"object"==typeof u&&"[object RegExp]"===s(u)},a.__getRegExpFlags=h,a}();Y.exports&&(Y.exports=r)},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),r=n(614),a=n(6330),s=c.TypeError;Y.exports=function(E){if(r(E))return E;throw s(a(E)+" is not a function")}},9483:function(Y,I,n){var c=n(7854),r=n(4411),a=n(6330),s=c.TypeError;Y.exports=function(E){if(r(E))return E;throw s(a(E)+" is not a constructor")}},6077:function(Y,I,n){var c=n(7854),r=n(614),a=c.String,s=c.TypeError;Y.exports=function(E){if("object"==typeof E||r(E))return E;throw s("Can't set "+a(E)+" as a prototype")}},1223:function(Y,I,n){var c=n(5112),r=n(30),a=n(3070),s=c("unscopables"),E=Array.prototype;null==E[s]&&a.f(E,s,{configurable:!0,value:r(null)}),Y.exports=function(o){E[s][o]=!0}},1530:function(Y,I,n){"use strict";var c=n(8710).charAt;Y.exports=function(r,a,s){return a+(s?c(r,a).length:1)}},5787:function(Y,I,n){var c=n(7854),r=n(7976),a=c.TypeError;Y.exports=function(s,E){if(r(E,s))return s;throw a("Incorrect invocation")}},9670:function(Y,I,n){var c=n(7854),r=n(111),a=c.String,s=c.TypeError;Y.exports=function(E){if(r(E))return E;throw s(a(E)+" is not an object")}},1048:function(Y,I,n){"use strict";var c=n(7908),r=n(1400),a=n(6244),s=Math.min;Y.exports=[].copyWithin||function(o,l){var h=c(this),u=a(h),C=r(o,u),e=r(l,u),f=arguments.length>2?arguments[2]:void 0,g=s((void 0===f?u:r(f,u))-e,u-C),w=1;for(e0;)e in h?h[C]=h[e]:delete h[C],C+=w,e+=w;return h}},1285:function(Y,I,n){"use strict";var c=n(7908),r=n(1400),a=n(6244);Y.exports=function(E){for(var o=c(this),l=a(o),h=arguments.length,u=r(h>1?arguments[1]:void 0,l),C=h>2?arguments[2]:void 0,e=void 0===C?l:r(C,l);e>u;)o[u++]=E;return o}},8533:function(Y,I,n){"use strict";var c=n(2092).forEach,a=n(9341)("forEach");Y.exports=a?[].forEach:function(E){return c(this,E,arguments.length>1?arguments[1]:void 0)}},7745:function(Y){Y.exports=function(I,n){for(var c=0,r=n.length,a=new I(r);r>c;)a[c]=n[c++];return a}},8457:function(Y,I,n){"use strict";var c=n(7854),r=n(9974),a=n(6916),s=n(7908),E=n(3411),o=n(7659),l=n(4411),h=n(6244),u=n(6135),C=n(8554),e=n(1246),f=c.Array;Y.exports=function(w){var Q=s(w),d=l(this),F=arguments.length,m=F>1?arguments[1]:void 0,p=void 0!==m;p&&(m=r(m,F>2?arguments[2]:void 0));var P,T,x,R,N,V,D=e(Q),v=0;if(!D||this==f&&o(D))for(P=h(Q),T=d?new this(P):f(P);P>v;v++)V=p?m(Q[v],v):Q[v],u(T,v,V);else for(N=(R=C(Q,D)).next,T=d?new this:[];!(x=a(N,R)).done;v++)V=p?E(R,m,[x.value,v],!0):x.value,u(T,v,V);return T.length=v,T}},1318:function(Y,I,n){var c=n(5656),r=n(1400),a=n(6244),s=function(E){return function(o,l,h){var f,u=c(o),C=a(u),e=r(h,C);if(E&&l!=l){for(;C>e;)if((f=u[e++])!=f)return!0}else for(;C>e;e++)if((E||e in u)&&u[e]===l)return E||e||0;return!E&&-1}};Y.exports={includes:s(!0),indexOf:s(!1)}},2092:function(Y,I,n){var c=n(9974),r=n(1702),a=n(8361),s=n(7908),E=n(6244),o=n(5417),l=r([].push),h=function(u){var C=1==u,e=2==u,f=3==u,g=4==u,w=6==u,Q=7==u,d=5==u||w;return function(F,m,p,D){for(var aA,AA,v=s(F),P=a(v),T=c(m,p),x=E(P),R=0,N=D||o,V=C?N(F,x):e||Q?N(F,0):void 0;x>R;R++)if((d||R in P)&&(AA=T(aA=P[R],R,v),u))if(C)V[R]=AA;else if(AA)switch(u){case 3:return!0;case 5:return aA;case 6:return R;case 2:l(V,aA)}else switch(u){case 4:return!1;case 7:l(V,aA)}return w?-1:f||g?g:V}};Y.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6),filterReject:h(7)}},6583:function(Y,I,n){"use strict";var c=n(2104),r=n(5656),a=n(9303),s=n(6244),E=n(9341),o=Math.min,l=[].lastIndexOf,h=!!l&&1/[1].lastIndexOf(1,-0)<0,u=E("lastIndexOf");Y.exports=h||!u?function(f){if(h)return c(l,this,arguments)||0;var g=r(this),w=s(g),Q=w-1;for(arguments.length>1&&(Q=o(Q,a(arguments[1]))),Q<0&&(Q=w+Q);Q>=0;Q--)if(Q in g&&g[Q]===f)return Q||0;return-1}:l},1194:function(Y,I,n){var c=n(7293),r=n(5112),a=n(7392),s=r("species");Y.exports=function(E){return a>=51||!c(function(){var o=[];return(o.constructor={})[s]=function(){return{foo:1}},1!==o[E](Boolean).foo})}},9341:function(Y,I,n){"use strict";var c=n(7293);Y.exports=function(r,a){var s=[][r];return!!s&&c(function(){s.call(null,a||function(){throw 1},1)})}},3671:function(Y,I,n){var c=n(7854),r=n(9662),a=n(7908),s=n(8361),E=n(6244),o=c.TypeError,l=function(h){return function(u,C,e,f){r(C);var g=a(u),w=s(g),Q=E(g),d=h?Q-1:0,F=h?-1:1;if(e<2)for(;;){if(d in w){f=w[d],d+=F;break}if(d+=F,h?d<0:Q<=d)throw o("Reduce of empty array with no initial value")}for(;h?d>=0:Q>d;d+=F)d in w&&(f=C(f,w[d],d,g));return f}};Y.exports={left:l(!1),right:l(!0)}},206:function(Y,I,n){var c=n(1702);Y.exports=c([].slice)},4362:function(Y,I,n){var c=n(206),r=Math.floor,a=function(o,l){var h=o.length,u=r(h/2);return h<8?s(o,l):E(o,a(c(o,0,u),l),a(c(o,u),l),l)},s=function(o,l){for(var C,e,h=o.length,u=1;u0;)o[e]=o[--e];e!==u++&&(o[e]=C)}return o},E=function(o,l,h,u){for(var C=l.length,e=h.length,f=0,g=0;f1?arguments[1]:void 0);V=V?V.next:R.first;)for(N(V.value,V.key,this);V&&V.removed;)V=V.previous},has:function(x){return!!P(this,x)}}),a(p,d?{get:function(x){var R=P(this,x);return R&&R.value},set:function(x,R){return v(this,0===x?0:x,R)}}:{add:function(x){return v(this,x=0===x?0:x,x)}}),u&&c(p,"size",{get:function(){return D(this).size}}),m},setStrong:function(w,Q,d){var F=Q+" Iterator",m=g(Q),p=g(F);l(w,Q,function(D,v){f(this,{type:F,target:D,state:m(D),kind:v,last:void 0})},function(){for(var D=p(this),v=D.kind,P=D.last;P&&P.removed;)P=P.previous;return D.target&&(D.last=P=P?P.next:D.state.first)?"keys"==v?{value:P.key,done:!1}:"values"==v?{value:P.value,done:!1}:{value:[P.key,P.value],done:!1}:(D.target=void 0,{value:void 0,done:!0})},d?"entries":"values",!d,!0),h(Q)}}},7710:function(Y,I,n){"use strict";var c=n(2109),r=n(7854),a=n(1702),s=n(4705),E=n(1320),o=n(2423),l=n(408),h=n(5787),u=n(614),C=n(111),e=n(7293),f=n(7072),g=n(8003),w=n(9587);Y.exports=function(Q,d,F){var m=-1!==Q.indexOf("Map"),p=-1!==Q.indexOf("Weak"),D=m?"set":"add",v=r[Q],P=v&&v.prototype,T=v,x={},R=function(cA){var lA=a(P[cA]);E(P,cA,"add"==cA?function(vA){return lA(this,0===vA?0:vA),this}:"delete"==cA?function(BA){return!(p&&!C(BA))&&lA(this,0===BA?0:BA)}:"get"==cA?function(vA){return p&&!C(vA)?void 0:lA(this,0===vA?0:vA)}:"has"==cA?function(vA){return!(p&&!C(vA))&&lA(this,0===vA?0:vA)}:function(vA,xA){return lA(this,0===vA?0:vA,xA),this})};if(s(Q,!u(v)||!(p||P.forEach&&!e(function(){(new v).entries().next()}))))T=F.getConstructor(d,Q,m,D),o.enable();else if(s(Q,!0)){var V=new T,aA=V[D](p?{}:-0,1)!=V,AA=e(function(){V.has(1)}),gA=f(function(cA){new v(cA)}),MA=!p&&e(function(){for(var cA=new v,lA=5;lA--;)cA[D](lA,lA);return!cA.has(-0)});gA||((T=d(function(cA,lA){h(cA,P);var BA=w(new v,cA,T);return null!=lA&&l(lA,BA[D],{that:BA,AS_ENTRIES:m}),BA})).prototype=P,P.constructor=T),(AA||MA)&&(R("delete"),R("has"),m&&R("get")),(MA||aA)&&R(D),p&&P.clear&&delete P.clear}return x[Q]=T,c({global:!0,forced:T!=v},x),g(T,Q),p||F.setStrong(T,Q,m),T}},9920:function(Y,I,n){var c=n(2597),r=n(3887),a=n(1236),s=n(3070);Y.exports=function(E,o){for(var l=r(o),h=s.f,u=a.f,C=0;C"+C+""}},4994:function(Y,I,n){"use strict";var c=n(3383).IteratorPrototype,r=n(30),a=n(9114),s=n(8003),E=n(7497),o=function(){return this};Y.exports=function(l,h,u){var C=h+" Iterator";return l.prototype=r(c,{next:a(1,u)}),s(l,C,!1,!0),E[C]=o,l}},8880:function(Y,I,n){var c=n(9781),r=n(3070),a=n(9114);Y.exports=c?function(s,E,o){return r.f(s,E,a(1,o))}:function(s,E,o){return s[E]=o,s}},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),r=n(3070),a=n(9114);Y.exports=function(s,E,o){var l=c(E);l in s?r.f(s,l,a(0,o)):s[l]=o}},8709:function(Y,I,n){"use strict";var c=n(7854),r=n(9670),a=n(2140),s=c.TypeError;Y.exports=function(E){if(r(this),"string"===E||"default"===E)E="string";else if("number"!==E)throw s("Incorrect hint");return a(this,E)}},654:function(Y,I,n){"use strict";var c=n(2109),r=n(6916),a=n(1913),s=n(6530),E=n(614),o=n(4994),l=n(9518),h=n(7674),u=n(8003),C=n(8880),e=n(1320),f=n(5112),g=n(7497),w=n(3383),Q=s.PROPER,d=s.CONFIGURABLE,F=w.IteratorPrototype,m=w.BUGGY_SAFARI_ITERATORS,p=f("iterator"),D="keys",v="values",P="entries",T=function(){return this};Y.exports=function(x,R,N,V,aA,AA,gA){o(N,R,V);var QA,uA,CA,MA=function(TA){if(TA===aA&&xA)return xA;if(!m&&TA in BA)return BA[TA];switch(TA){case D:case v:case P:return function(){return new N(this,TA)}}return function(){return new N(this)}},cA=R+" Iterator",lA=!1,BA=x.prototype,vA=BA[p]||BA["@@iterator"]||aA&&BA[aA],xA=!m&&vA||MA(aA),_="Array"==R&&BA.entries||vA;if(_&&(QA=l(_.call(new x)))!==Object.prototype&&QA.next&&(!a&&l(QA)!==F&&(h?h(QA,F):E(QA[p])||e(QA,p,T)),u(QA,cA,!0,!0),a&&(g[cA]=T)),Q&&aA==v&&vA&&vA.name!==v&&(!a&&d?C(BA,"name",v):(lA=!0,xA=function(){return r(vA,this)})),aA)if(uA={values:MA(v),keys:AA?xA:MA(D),entries:MA(P)},gA)for(CA in uA)(m||lA||!(CA in BA))&&e(BA,CA,uA[CA]);else c({target:R,proto:!0,forced:m||lA},uA);return(!a||gA)&&BA[p]!==xA&&e(BA,p,xA,{name:aA}),g[R]=xA,uA}},7235:function(Y,I,n){var c=n(857),r=n(2597),a=n(6061),s=n(3070).f;Y.exports=function(E){var o=c.Symbol||(c.Symbol={});r(o,E)||s(o,E,{value:a.f(E)})}},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),r=n(111),a=c.document,s=r(a)&&r(a.createElement);Y.exports=function(E){return s?a.createElement(E):{}}},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 r=n(317)("span").classList,a=r&&r.constructor&&r.constructor.prototype;Y.exports=a===Object.prototype?void 0:a},8886:function(Y,I,n){var r=n(8113).match(/firefox\/(\d+)/i);Y.exports=!!r&&+r[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),r=n(7854);Y.exports=/ipad|iphone|ipod/i.test(c)&&void 0!==r.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),r=n(7854);Y.exports="process"==c(r.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 l,h,c=n(7854),r=n(8113),a=c.process,s=c.Deno,E=a&&a.versions||s&&s.version,o=E&&E.v8;o&&(h=(l=o.split("."))[0]>0&&l[0]<4?1:+(l[0]+l[1])),!h&&r&&(!(l=r.match(/Edge\/(\d+)/))||l[1]>=74)&&(l=r.match(/Chrome\/(\d+)/))&&(h=+l[1]),Y.exports=h},8008:function(Y,I,n){var r=n(8113).match(/AppleWebKit\/(\d+)\./);Y.exports=!!r&&+r[1]},748:function(Y){Y.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(Y,I,n){var c=n(7293),r=n(9114);Y.exports=!c(function(){var a=Error("a");return!("stack"in a)||(Object.defineProperty(a,"stack",r(1,7)),7!==a.stack)})},2109:function(Y,I,n){var c=n(7854),r=n(1236).f,a=n(8880),s=n(1320),E=n(3505),o=n(9920),l=n(4705);Y.exports=function(h,u){var w,Q,d,F,m,C=h.target,e=h.global,f=h.stat;if(w=e?c:f?c[C]||E(C,{}):(c[C]||{}).prototype)for(Q in u){if(F=u[Q],d=h.noTargetGet?(m=r(w,Q))&&m.value:w[Q],!l(e?Q:C+(f?".":"#")+Q,h.forced)&&void 0!==d){if(typeof F==typeof d)continue;o(F,d)}(h.sham||d&&d.sham)&&a(F,"sham",!0),s(w,Q,F,h)}}},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),r=n(1320),a=n(2261),s=n(7293),E=n(5112),o=n(8880),l=E("species"),h=RegExp.prototype;Y.exports=function(u,C,e,f){var g=E(u),w=!s(function(){var m={};return m[g]=function(){return 7},7!=""[u](m)}),Q=w&&!s(function(){var m=!1,p=/a/;return"split"===u&&((p={}).constructor={},p.constructor[l]=function(){return p},p.flags="",p[g]=/./[g]),p.exec=function(){return m=!0,null},p[g](""),!m});if(!w||!Q||e){var d=c(/./[g]),F=C(g,""[u],function(m,p,D,v,P){var T=c(m),x=p.exec;return x===a||x===h.exec?w&&!P?{done:!0,value:d(p,D,v)}:{done:!0,value:T(D,p,v)}:{done:!1}});r(String.prototype,u,F[0]),r(h,g,F[1])}f&&o(h[g],"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,r=I.call;Y.exports="object"==typeof Reflect&&Reflect.apply||(I.bind?r.bind(n):function(){return r.apply(n,arguments)})},9974:function(Y,I,n){var c=n(1702),r=n(9662),a=c(c.bind);Y.exports=function(s,E){return r(s),void 0===E?s:a?a(s,E):function(){return s.apply(E,arguments)}}},7065:function(Y,I,n){"use strict";var c=n(7854),r=n(1702),a=n(9662),s=n(111),E=n(2597),o=n(206),l=c.Function,h=r([].concat),u=r([].join),C={},e=function(f,g,w){if(!E(C,g)){for(var Q=[],d=0;d]*>)/g,h=/\$([$&'`]|\d{1,2})/g;Y.exports=function(u,C,e,f,g,w){var Q=e+u.length,d=f.length,F=h;return void 0!==g&&(g=r(g),F=l),E(w,F,function(m,p){var D;switch(s(p,0)){case"$":return"$";case"&":return u;case"`":return o(C,0,e);case"'":return o(C,Q);case"<":D=g[o(p,1,-1)];break;default:var v=+p;if(0===v)return m;if(v>d){var P=a(v/10);return 0===P?m:P<=d?void 0===f[P-1]?s(p,1):f[P-1]+s(p,1):m}D=f[v-1]}return void 0===D?"":D})}},7854:function(Y,I,n){var c=function(r){return r&&r.Math==Math&&r};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),r=n(7908),a=c({}.hasOwnProperty);Y.exports=Object.hasOwn||function(E,o){return a(r(E),o)}},3501:function(Y){Y.exports={}},842:function(Y,I,n){var c=n(7854);Y.exports=function(r,a){var s=c.console;s&&s.error&&(1==arguments.length?s.error(r):s.error(r,a))}},490:function(Y,I,n){var c=n(5005);Y.exports=c("document","documentElement")},4664:function(Y,I,n){var c=n(9781),r=n(7293),a=n(317);Y.exports=!c&&!r(function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})},1179:function(Y,I,n){var r=n(7854).Array,a=Math.abs,s=Math.pow,E=Math.floor,o=Math.log,l=Math.LN2;Y.exports={pack:function(C,e,f){var D,v,P,g=r(f),w=8*f-e-1,Q=(1<>1,F=23===e?s(2,-24)-s(2,-77):0,m=C<0||0===C&&1/C<0?1:0,p=0;for((C=a(C))!=C||C===1/0?(v=C!=C?1:0,D=Q):(D=E(o(C)/l),C*(P=s(2,-D))<1&&(D--,P*=2),(C+=D+d>=1?F/P:F*s(2,1-d))*P>=2&&(D++,P/=2),D+d>=Q?(v=0,D=Q):D+d>=1?(v=(C*P-1)*s(2,e),D+=d):(v=C*s(2,d-1)*s(2,e),D=0));e>=8;g[p++]=255&v,v/=256,e-=8);for(D=D<0;g[p++]=255&D,D/=256,w-=8);return g[--p]|=128*m,g},unpack:function(C,e){var D,f=C.length,g=8*f-e-1,w=(1<>1,d=g-7,F=f-1,m=C[F--],p=127&m;for(m>>=7;d>0;p=256*p+C[F],F--,d-=8);for(D=p&(1<<-d)-1,p>>=-d,d+=e;d>0;D=256*D+C[F],F--,d-=8);if(0===p)p=1-Q;else{if(p===w)return D?NaN:m?-1/0:1/0;D+=s(2,e),p-=Q}return(m?-1:1)*D*s(2,p-e)}}},8361:function(Y,I,n){var c=n(7854),r=n(1702),a=n(7293),s=n(4326),E=c.Object,o=r("".split);Y.exports=a(function(){return!E("z").propertyIsEnumerable(0)})?function(l){return"String"==s(l)?o(l,""):E(l)}:E},9587:function(Y,I,n){var c=n(614),r=n(111),a=n(7674);Y.exports=function(s,E,o){var l,h;return a&&c(l=E.constructor)&&l!==o&&r(h=l.prototype)&&h!==o.prototype&&a(s,h),s}},2788:function(Y,I,n){var c=n(1702),r=n(614),a=n(5465),s=c(Function.toString);r(a.inspectSource)||(a.inspectSource=function(E){return s(E)}),Y.exports=a.inspectSource},8340:function(Y,I,n){var c=n(111),r=n(8880);Y.exports=function(a,s){c(s)&&"cause"in s&&r(a,"cause",s.cause)}},2423:function(Y,I,n){var c=n(2109),r=n(1702),a=n(3501),s=n(111),E=n(2597),o=n(3070).f,l=n(8006),h=n(1156),u=n(9711),C=n(6677),e=!1,f=u("meta"),g=0,w=Object.isExtensible||function(){return!0},Q=function(v){o(v,f,{value:{objectID:"O"+g++,weakData:{}}})},D=Y.exports={enable:function(){D.enable=function(){},e=!0;var v=l.f,P=r([].splice),T={};T[f]=1,v(T).length&&(l.f=function(x){for(var R=v(x),N=0,V=R.length;NR;R++)if((V=MA(Q[R]))&&h(w,V))return V;return new g(!1)}T=u(Q,x)}for(aA=T.next;!(AA=a(aA,T)).done;){try{V=MA(AA.value)}catch(cA){e(T,"throw",cA)}if("object"==typeof V&&V&&h(w,V))return V}return new g(!1)}},9212:function(Y,I,n){var c=n(6916),r=n(9670),a=n(8173);Y.exports=function(s,E,o){var l,h;r(s);try{if(!(l=a(s,"return"))){if("throw"===E)throw o;return o}l=c(l,s)}catch(u){h=!0,l=u}if("throw"===E)throw o;if(h)throw l;return r(l),o}},3383:function(Y,I,n){"use strict";var C,e,f,c=n(7293),r=n(614),a=n(30),s=n(9518),E=n(1320),o=n(5112),l=n(1913),h=o("iterator"),u=!1;[].keys&&("next"in(f=[].keys())?(e=s(s(f)))!==Object.prototype&&(C=e):u=!0),null==C||c(function(){var w={};return C[h].call(w)!==w})?C={}:l&&(C=a(C)),r(C[h])||E(C,h,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(r){return c(r.length)}},5948:function(Y,I,n){var Q,d,F,m,p,D,v,P,c=n(7854),r=n(9974),a=n(1236).f,s=n(261).set,E=n(6833),o=n(1528),l=n(1036),h=n(5268),u=c.MutationObserver||c.WebKitMutationObserver,C=c.document,e=c.process,f=c.Promise,g=a(c,"queueMicrotask"),w=g&&g.value;w||(Q=function(){var T,x;for(h&&(T=e.domain)&&T.exit();d;){x=d.fn,d=d.next;try{x()}catch(R){throw d?m():F=void 0,R}}F=void 0,T&&T.enter()},E||h||l||!u||!C?!o&&f&&f.resolve?((v=f.resolve(void 0)).constructor=f,P=r(v.then,v),m=function(){P(Q)}):h?m=function(){e.nextTick(Q)}:(s=r(s,c),m=function(){s(Q)}):(p=!0,D=C.createTextNode(""),new u(Q).observe(D,{characterData:!0}),m=function(){D.data=p=!p})),Y.exports=w||function(T){var x={fn:T,next:void 0};F&&(F.next=x),d||(d=x,m()),F=x}},3366:function(Y,I,n){var c=n(7854);Y.exports=c.Promise},133:function(Y,I,n){var c=n(7392),r=n(7293);Y.exports=!!Object.getOwnPropertySymbols&&!r(function(){var a=Symbol();return!String(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&c&&c<41})},8536:function(Y,I,n){var c=n(7854),r=n(614),a=n(2788),s=c.WeakMap;Y.exports=r(s)&&/native code/.test(a(s))},8523:function(Y,I,n){"use strict";var c=n(9662),r=function(a){var s,E;this.promise=new a(function(o,l){if(void 0!==s||void 0!==E)throw TypeError("Bad Promise constructor");s=o,E=l}),this.resolve=c(s),this.reject=c(E)};Y.exports.f=function(a){return new r(a)}},6277:function(Y,I,n){var c=n(1340);Y.exports=function(r,a){return void 0===r?arguments.length<2?"":a:c(r)}},3929:function(Y,I,n){var c=n(7854),r=n(7850),a=c.TypeError;Y.exports=function(s){if(r(s))throw a("The method doesn't accept regular expressions");return s}},7023:function(Y,I,n){var r=n(7854).isFinite;Y.exports=Number.isFinite||function(s){return"number"==typeof s&&r(s)}},1574:function(Y,I,n){"use strict";var c=n(9781),r=n(1702),a=n(6916),s=n(7293),E=n(1956),o=n(5181),l=n(5296),h=n(7908),u=n(8361),C=Object.assign,e=Object.defineProperty,f=r([].concat);Y.exports=!C||s(function(){if(c&&1!==C({b:1},C(e({},"a",{enumerable:!0,get:function(){e(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var g={},w={},Q=Symbol(),d="abcdefghijklmnopqrst";return g[Q]=7,d.split("").forEach(function(F){w[F]=F}),7!=C({},g)[Q]||E(C({},w)).join("")!=d})?function(w,Q){for(var d=h(w),F=arguments.length,m=1,p=o.f,D=l.f;F>m;)for(var R,v=u(arguments[m++]),P=p?f(E(v),p(v)):E(v),T=P.length,x=0;T>x;)R=P[x++],(!c||a(D,v,R))&&(d[R]=v[R]);return d}:C},30:function(Y,I,n){var F,c=n(9670),r=n(6048),a=n(748),s=n(3501),E=n(490),o=n(317),l=n(6200),C="prototype",e="script",f=l("IE_PROTO"),g=function(){},w=function(p){return"<"+e+">"+p+""},Q=function(p){p.write(w("")),p.close();var D=p.parentWindow.Object;return p=null,D},m=function(){try{F=new ActiveXObject("htmlfile")}catch(D){}m="undefined"!=typeof document?document.domain&&F?Q(F):function(){var v,p=o("iframe");return p.style.display="none",E.appendChild(p),p.src=String("javascript:"),(v=p.contentWindow.document).open(),v.write(w("document.F=Object")),v.close(),v.F}():Q(F);for(var p=a.length;p--;)delete m[C][a[p]];return m()};s[f]=!0,Y.exports=Object.create||function(D,v){var P;return null!==D?(g[C]=c(D),P=new g,g[C]=null,P[f]=D):P=m(),void 0===v?P:r(P,v)}},6048:function(Y,I,n){var c=n(9781),r=n(3070),a=n(9670),s=n(5656),E=n(1956);Y.exports=c?Object.defineProperties:function(l,h){a(l);for(var g,u=s(h),C=E(h),e=C.length,f=0;e>f;)r.f(l,g=C[f++],u[g]);return l}},3070:function(Y,I,n){var c=n(7854),r=n(9781),a=n(4664),s=n(9670),E=n(4948),o=c.TypeError,l=Object.defineProperty;I.f=r?l:function(u,C,e){if(s(u),C=E(C),s(e),a)try{return l(u,C,e)}catch(f){}if("get"in e||"set"in e)throw o("Accessors not supported");return"value"in e&&(u[C]=e.value),u}},1236:function(Y,I,n){var c=n(9781),r=n(6916),a=n(5296),s=n(9114),E=n(5656),o=n(4948),l=n(2597),h=n(4664),u=Object.getOwnPropertyDescriptor;I.f=c?u:function(e,f){if(e=E(e),f=o(f),h)try{return u(e,f)}catch(g){}if(l(e,f))return s(!r(a.f,e,f),e[f])}},1156:function(Y,I,n){var c=n(4326),r=n(5656),a=n(8006).f,s=n(206),E="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Y.exports.f=function(h){return E&&"Window"==c(h)?function(l){try{return a(l)}catch(h){return s(E)}}(h):a(r(h))}},8006:function(Y,I,n){var c=n(6324),a=n(748).concat("length","prototype");I.f=Object.getOwnPropertyNames||function(E){return c(E,a)}},5181:function(Y,I){I.f=Object.getOwnPropertySymbols},9518:function(Y,I,n){var c=n(7854),r=n(2597),a=n(614),s=n(7908),E=n(6200),o=n(8544),l=E("IE_PROTO"),h=c.Object,u=h.prototype;Y.exports=o?h.getPrototypeOf:function(C){var e=s(C);if(r(e,l))return e[l];var f=e.constructor;return a(f)&&e instanceof f?f.prototype:e instanceof h?u:null}},7976:function(Y,I,n){var c=n(1702);Y.exports=c({}.isPrototypeOf)},6324:function(Y,I,n){var c=n(1702),r=n(2597),a=n(5656),s=n(1318).indexOf,E=n(3501),o=c([].push);Y.exports=function(l,h){var f,u=a(l),C=0,e=[];for(f in u)!r(E,f)&&r(u,f)&&o(e,f);for(;h.length>C;)r(u,f=h[C++])&&(~s(e,f)||o(e,f));return e}},1956:function(Y,I,n){var c=n(6324),r=n(748);Y.exports=Object.keys||function(s){return c(s,r)}},5296:function(Y,I){"use strict";var n={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,r=c&&!n.call({1:2},1);I.f=r?function(s){var E=c(this,s);return!!E&&E.enumerable}:n},7674:function(Y,I,n){var c=n(1702),r=n(9670),a=n(6077);Y.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o,s=!1,E={};try{(o=c(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(E,[]),s=E instanceof Array}catch(l){}return function(h,u){return r(h),a(u),s?o(h,u):h.__proto__=u,h}}():void 0)},4699:function(Y,I,n){var c=n(9781),r=n(1702),a=n(1956),s=n(5656),o=r(n(5296).f),l=r([].push),h=function(u){return function(C){for(var d,e=s(C),f=a(e),g=f.length,w=0,Q=[];g>w;)d=f[w++],(!c||o(e,d))&&l(Q,u?[d,e[d]]:e[d]);return Q}};Y.exports={entries:h(!0),values:h(!1)}},288:function(Y,I,n){"use strict";var c=n(1694),r=n(648);Y.exports=c?{}.toString:function(){return"[object "+r(this)+"]"}},2140:function(Y,I,n){var c=n(7854),r=n(6916),a=n(614),s=n(111),E=c.TypeError;Y.exports=function(o,l){var h,u;if("string"===l&&a(h=o.toString)&&!s(u=r(h,o))||a(h=o.valueOf)&&!s(u=r(h,o))||"string"!==l&&a(h=o.toString)&&!s(u=r(h,o)))return u;throw E("Can't convert object to primitive value")}},3887:function(Y,I,n){var c=n(5005),r=n(1702),a=n(8006),s=n(5181),E=n(9670),o=r([].concat);Y.exports=c("Reflect","ownKeys")||function(h){var u=a.f(E(h)),C=s.f;return C?o(u,C(h)):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),r=n(111),a=n(8523);Y.exports=function(s,E){if(c(s),r(E)&&E.constructor===s)return E;var o=a.f(s);return(0,o.resolve)(E),o.promise}},2248:function(Y,I,n){var c=n(1320);Y.exports=function(r,a,s){for(var E in a)c(r,E,a[E],s);return r}},1320:function(Y,I,n){var c=n(7854),r=n(614),a=n(2597),s=n(8880),E=n(3505),o=n(2788),l=n(9909),h=n(6530).CONFIGURABLE,u=l.get,C=l.enforce,e=String(String).split("String");(Y.exports=function(f,g,w,Q){var D,d=!!Q&&!!Q.unsafe,F=!!Q&&!!Q.enumerable,m=!!Q&&!!Q.noTargetGet,p=Q&&void 0!==Q.name?Q.name:g;r(w)&&("Symbol("===String(p).slice(0,7)&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!a(w,"name")||h&&w.name!==p)&&s(w,"name",p),(D=C(w)).source||(D.source=e.join("string"==typeof p?p:""))),f!==c?(d?!m&&f[g]&&(F=!0):delete f[g],F?f[g]=w:s(f,g,w)):F?f[g]=w:E(g,w)})(Function.prototype,"toString",function(){return r(this)&&u(this).source||o(this)})},7651:function(Y,I,n){var c=n(7854),r=n(6916),a=n(9670),s=n(614),E=n(4326),o=n(2261),l=c.TypeError;Y.exports=function(h,u){var C=h.exec;if(s(C)){var e=r(C,h,u);return null!==e&&a(e),e}if("RegExp"===E(h))return r(o,h,u);throw l("RegExp#exec called on incompatible receiver")}},2261:function(Y,I,n){"use strict";var P,T,c=n(6916),r=n(1702),a=n(1340),s=n(7066),E=n(2999),o=n(2309),l=n(30),h=n(9909).get,u=n(9441),C=n(7168),e=o("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,g=f,w=r("".charAt),Q=r("".indexOf),d=r("".replace),F=r("".slice),m=(T=/b*/g,c(f,P=/a/,"a"),c(f,T,"a"),0!==P.lastIndex||0!==T.lastIndex),p=E.UNSUPPORTED_Y||E.BROKEN_CARET,D=void 0!==/()??/.exec("")[1];(m||D||p||u||C)&&(g=function(T){var aA,AA,gA,MA,cA,lA,BA,x=this,R=h(x),N=a(T),V=R.raw;if(V)return V.lastIndex=x.lastIndex,aA=c(g,V,N),x.lastIndex=V.lastIndex,aA;var vA=R.groups,xA=p&&x.sticky,_=c(s,x),QA=x.source,uA=0,CA=N;if(xA&&(_=d(_,"y",""),-1===Q(_,"g")&&(_+="g"),CA=F(N,x.lastIndex),x.lastIndex>0&&(!x.multiline||x.multiline&&"\n"!==w(N,x.lastIndex-1))&&(QA="(?: "+QA+")",CA=" "+CA,uA++),AA=new RegExp("^(?:"+QA+")",_)),D&&(AA=new RegExp("^"+QA+"$(?!\\s)",_)),m&&(gA=x.lastIndex),MA=c(f,xA?AA:x,CA),xA?MA?(MA.input=F(MA.input,uA),MA[0]=F(MA[0],uA),MA.index=x.lastIndex,x.lastIndex+=MA[0].length):x.lastIndex=0:m&&MA&&(x.lastIndex=x.global?MA.index+MA[0].length:gA),D&&MA&&MA.length>1&&c(e,MA[0],AA,function(){for(cA=1;cAb)","g");return"b"!==s.exec("b").groups.a||"bc"!=="b".replace(s,"$c")})},4488:function(Y,I,n){var r=n(7854).TypeError;Y.exports=function(a){if(null==a)throw r("Can't call method on "+a);return a}},3505:function(Y,I,n){var c=n(7854),r=Object.defineProperty;Y.exports=function(a,s){try{r(c,a,{value:s,configurable:!0,writable:!0})}catch(E){c[a]=s}return s}},6340:function(Y,I,n){"use strict";var c=n(5005),r=n(3070),a=n(5112),s=n(9781),E=a("species");Y.exports=function(o){var l=c(o);s&&l&&!l[E]&&(0,r.f)(l,E,{configurable:!0,get:function(){return this}})}},8003:function(Y,I,n){var c=n(3070).f,r=n(2597),s=n(5112)("toStringTag");Y.exports=function(E,o,l){E&&!r(E=l?E:E.prototype,s)&&c(E,s,{configurable:!0,value:o})}},6200:function(Y,I,n){var c=n(2309),r=n(9711),a=c("keys");Y.exports=function(s){return a[s]||(a[s]=r(s))}},5465:function(Y,I,n){var c=n(7854),r=n(3505),a="__core-js_shared__",s=c[a]||r(a,{});Y.exports=s},2309:function(Y,I,n){var c=n(1913),r=n(5465);(Y.exports=function(a,s){return r[a]||(r[a]=void 0!==s?s:{})})("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),r=n(9483),s=n(5112)("species");Y.exports=function(E,o){var h,l=c(E).constructor;return void 0===l||null==(h=c(l)[s])?o:r(h)}},3429:function(Y,I,n){var c=n(7293);Y.exports=function(r){return c(function(){var a=""[r]('"');return a!==a.toLowerCase()||a.split('"').length>3})}},8710:function(Y,I,n){var c=n(1702),r=n(9303),a=n(1340),s=n(4488),E=c("".charAt),o=c("".charCodeAt),l=c("".slice),h=function(u){return function(C,e){var Q,d,f=a(s(C)),g=r(e),w=f.length;return g<0||g>=w?u?"":void 0:(Q=o(f,g))<55296||Q>56319||g+1===w||(d=o(f,g+1))<56320||d>57343?u?E(f,g):Q:u?l(f,g,g+2):d-56320+(Q-55296<<10)+65536}};Y.exports={codeAt:h(!1),charAt:h(!0)}},8415:function(Y,I,n){"use strict";var c=n(7854),r=n(9303),a=n(1340),s=n(4488),E=c.RangeError;Y.exports=function(l){var h=a(s(this)),u="",C=r(l);if(C<0||C==1/0)throw E("Wrong number of repetitions");for(;C>0;(C>>>=1)&&(h+=h))1&C&&(u+=h);return u}},6091:function(Y,I,n){var c=n(6530).PROPER,r=n(7293),a=n(1361);Y.exports=function(E){return r(function(){return!!a[E]()||"\u200b\x85\u180e"!=="\u200b\x85\u180e"[E]()||c&&a[E].name!==E})}},3111:function(Y,I,n){var c=n(1702),r=n(4488),a=n(1340),s=n(1361),E=c("".replace),o="["+s+"]",l=RegExp("^"+o+o+"*"),h=RegExp(o+o+"*$"),u=function(C){return function(e){var f=a(r(e));return 1&C&&(f=E(f,l,"")),2&C&&(f=E(f,h,"")),f}};Y.exports={start:u(1),end:u(2),trim:u(3)}},261:function(Y,I,n){var P,T,x,R,c=n(7854),r=n(2104),a=n(9974),s=n(614),E=n(2597),o=n(7293),l=n(490),h=n(206),u=n(317),C=n(6833),e=n(5268),f=c.setImmediate,g=c.clearImmediate,w=c.process,Q=c.Dispatch,d=c.Function,F=c.MessageChannel,m=c.String,p=0,D={},v="onreadystatechange";try{P=c.location}catch(gA){}var N=function(gA){if(E(D,gA)){var MA=D[gA];delete D[gA],MA()}},V=function(gA){return function(){N(gA)}},aA=function(gA){N(gA.data)},AA=function(gA){c.postMessage(m(gA),P.protocol+"//"+P.host)};(!f||!g)&&(f=function(MA){var cA=h(arguments,1);return D[++p]=function(){r(s(MA)?MA:d(MA),void 0,cA)},T(p),p},g=function(MA){delete D[MA]},e?T=function(gA){w.nextTick(V(gA))}:Q&&Q.now?T=function(gA){Q.now(V(gA))}:F&&!C?(R=(x=new F).port2,x.port1.onmessage=aA,T=a(R.postMessage,R)):c.addEventListener&&s(c.postMessage)&&!c.importScripts&&P&&"file:"!==P.protocol&&!o(AA)?(T=AA,c.addEventListener("message",aA,!1)):T=v in u("script")?function(gA){l.appendChild(u("script"))[v]=function(){l.removeChild(this),N(gA)}}:function(gA){setTimeout(V(gA),0)}),Y.exports={set:f,clear:g}},863:function(Y,I,n){var c=n(1702);Y.exports=c(1..valueOf)},1400:function(Y,I,n){var c=n(9303),r=Math.max,a=Math.min;Y.exports=function(s,E){var o=c(s);return o<0?r(o+E,0):a(o,E)}},7067:function(Y,I,n){var c=n(7854),r=n(9303),a=n(7466),s=c.RangeError;Y.exports=function(E){if(void 0===E)return 0;var o=r(E),l=a(o);if(o!==l)throw s("Wrong length or index");return l}},5656:function(Y,I,n){var c=n(8361),r=n(4488);Y.exports=function(a){return c(r(a))}},9303:function(Y){var I=Math.ceil,n=Math.floor;Y.exports=function(c){var r=+c;return r!=r||0===r?0:(r>0?n:I)(r)}},7466:function(Y,I,n){var c=n(9303),r=Math.min;Y.exports=function(a){return a>0?r(c(a),9007199254740991):0}},7908:function(Y,I,n){var c=n(7854),r=n(4488),a=c.Object;Y.exports=function(s){return a(r(s))}},4590:function(Y,I,n){var c=n(7854),r=n(3002),a=c.RangeError;Y.exports=function(s,E){var o=r(s);if(o%E)throw a("Wrong offset");return o}},3002:function(Y,I,n){var c=n(7854),r=n(9303),a=c.RangeError;Y.exports=function(s){var E=r(s);if(E<0)throw a("The argument can't be less than 0");return E}},7593:function(Y,I,n){var c=n(7854),r=n(6916),a=n(111),s=n(2190),E=n(8173),o=n(2140),l=n(5112),h=c.TypeError,u=l("toPrimitive");Y.exports=function(C,e){if(!a(C)||s(C))return C;var g,f=E(C,u);if(f){if(void 0===e&&(e="default"),g=r(f,C,e),!a(g)||s(g))return g;throw h("Can't convert object to primitive value")}return void 0===e&&(e="number"),o(C,e)}},4948:function(Y,I,n){var c=n(7593),r=n(2190);Y.exports=function(a){var s=c(a,"string");return r(s)?s:s+""}},1694:function(Y,I,n){var a={};a[n(5112)("toStringTag")]="z",Y.exports="[object z]"===String(a)},1340:function(Y,I,n){var c=n(7854),r=n(648),a=c.String;Y.exports=function(s){if("Symbol"===r(s))throw TypeError("Cannot convert a Symbol value to a string");return a(s)}},6330:function(Y,I,n){var r=n(7854).String;Y.exports=function(a){try{return r(a)}catch(s){return"Object"}}},9843:function(Y,I,n){"use strict";var c=n(2109),r=n(7854),a=n(6916),s=n(9781),E=n(3832),o=n(2094),l=n(2091),h=n(5787),u=n(9114),C=n(8880),e=n(5988),f=n(7466),g=n(7067),w=n(4590),Q=n(4948),d=n(2597),F=n(648),m=n(111),p=n(2190),D=n(30),v=n(7976),P=n(7674),T=n(8006).f,x=n(7321),R=n(2092).forEach,N=n(6340),V=n(3070),aA=n(1236),AA=n(9909),gA=n(9587),MA=AA.get,cA=AA.set,lA=V.f,BA=aA.f,vA=Math.round,xA=r.RangeError,_=l.ArrayBuffer,QA=_.prototype,uA=l.DataView,CA=o.NATIVE_ARRAY_BUFFER_VIEWS,TA=o.TYPED_ARRAY_CONSTRUCTOR,GA=o.TYPED_ARRAY_TAG,VA=o.TypedArray,q=o.TypedArrayPrototype,J=o.aTypedArrayConstructor,$=o.isTypedArray,W="BYTES_PER_ELEMENT",EA="Wrong length",DA=function(yA,_A){J(yA);for(var ft=0,lt=_A.length,SA=new yA(lt);lt>ft;)SA[ft]=_A[ft++];return SA},rA=function(yA,_A){lA(yA,_A,{get:function(){return MA(this)[_A]}})},hA=function(yA){var _A;return v(QA,yA)||"ArrayBuffer"==(_A=F(yA))||"SharedArrayBuffer"==_A},HA=function(yA,_A){return $(yA)&&!p(_A)&&_A in yA&&e(+_A)&&_A>=0},nt=function(_A,ft){return ft=Q(ft),HA(_A,ft)?u(2,_A[ft]):BA(_A,ft)},st=function(_A,ft,lt){return ft=Q(ft),!(HA(_A,ft)&&m(lt)&&d(lt,"value"))||d(lt,"get")||d(lt,"set")||lt.configurable||d(lt,"writable")&&!lt.writable||d(lt,"enumerable")&&!lt.enumerable?lA(_A,ft,lt):(_A[ft]=lt.value,_A)};s?(CA||(aA.f=nt,V.f=st,rA(q,"buffer"),rA(q,"byteOffset"),rA(q,"byteLength"),rA(q,"length")),c({target:"Object",stat:!0,forced:!CA},{getOwnPropertyDescriptor:nt,defineProperty:st}),Y.exports=function(yA,_A,ft){var lt=yA.match(/\d+$/)[0]/8,SA=yA+(ft?"Clamped":"")+"Array",OA="get"+yA,WA="set"+yA,zA=r[SA],ot=zA,It=ot&&ot.prototype,dt={},G=function(O,L){lA(O,L,{get:function(){return function(O,L){var dA=MA(O);return dA.view[OA](L*lt+dA.byteOffset,!0)}(this,L)},set:function(dA){return function(O,L,dA){var wA=MA(O);ft&&(dA=(dA=vA(dA))<0?0:dA>255?255:255&dA),wA.view[WA](L*lt+wA.byteOffset,dA,!0)}(this,L,dA)},enumerable:!0})};CA?E&&(ot=_A(function(O,L,dA,wA){return h(O,It),gA(m(L)?hA(L)?void 0!==wA?new zA(L,w(dA,lt),wA):void 0!==dA?new zA(L,w(dA,lt)):new zA(L):$(L)?DA(ot,L):a(x,ot,L):new zA(g(L)),O,ot)}),P&&P(ot,VA),R(T(zA),function(O){O in ot||C(ot,O,zA[O])}),ot.prototype=It):(ot=_A(function(O,L,dA,wA){h(O,It);var at,Ft,j,RA=0,eA=0;if(m(L)){if(!hA(L))return $(L)?DA(ot,L):a(x,ot,L);at=L,eA=w(dA,lt);var XA=L.byteLength;if(void 0===wA){if(XA%lt||(Ft=XA-eA)<0)throw xA(EA)}else if((Ft=f(wA)*lt)+eA>XA)throw xA(EA);j=Ft/lt}else j=g(L),at=new _(Ft=j*lt);for(cA(O,{buffer:at,byteOffset:eA,byteLength:Ft,length:j,view:new uA(at)});RA1?arguments[1]:void 0,d=void 0!==Q,F=l(g);if(F&&!h(F))for(T=(P=o(g,F)).next,g=[];!(v=r(T,P)).done;)g.push(v.value);for(d&&w>2&&(Q=c(Q,arguments[2])),p=E(g),D=new(u(f))(p),m=0;p>m;m++)D[m]=d?Q(g[m],m):g[m];return D}},6304:function(Y,I,n){var c=n(2094),r=n(6707),a=c.TYPED_ARRAY_CONSTRUCTOR,s=c.aTypedArrayConstructor;Y.exports=function(E){return s(r(E,E[a]))}},9711:function(Y,I,n){var c=n(1702),r=0,a=Math.random(),s=c(1..toString);Y.exports=function(E){return"Symbol("+(void 0===E?"":E)+")_"+s(++r+a,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),r=n(2309),a=n(2597),s=n(9711),E=n(133),o=n(3307),l=r("wks"),h=c.Symbol,u=h&&h.for,C=o?h:h&&h.withoutSetter||s;Y.exports=function(e){if(!a(l,e)||!E&&"string"!=typeof l[e]){var f="Symbol."+e;l[e]=E&&a(h,e)?h[e]:o&&u?u(f):C(f)}return l[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),r=n(7854),a=n(7976),s=n(9518),E=n(7674),o=n(9920),l=n(30),h=n(8880),u=n(9114),C=n(7741),e=n(8340),f=n(408),g=n(6277),w=n(2914),Q=r.Error,d=[].push,F=function(D,v){var P=a(m,this)?this:l(m),T=arguments.length>2?arguments[2]:void 0;E&&(P=E(new Q(void 0),s(P))),h(P,"message",g(v,"")),w&&h(P,"stack",C(P.stack,1)),e(P,T);var x=[];return f(D,d,{that:x}),h(P,"errors",x),P};E?E(F,Q):o(F,Q);var m=F.prototype=l(Q.prototype,{constructor:u(1,F),message:u(1,""),name:u(1,"AggregateError")});c({global:!0},{AggregateError:F})},2222:function(Y,I,n){"use strict";var c=n(2109),r=n(7854),a=n(7293),s=n(3157),E=n(111),o=n(7908),l=n(6244),h=n(6135),u=n(5417),C=n(1194),e=n(5112),f=n(7392),g=e("isConcatSpreadable"),w=9007199254740991,Q="Maximum allowed index exceeded",d=r.TypeError,F=f>=51||!a(function(){var v=[];return v[g]=!1,v.concat()[0]!==v}),m=C("concat"),p=function(v){if(!E(v))return!1;var P=v[g];return void 0!==P?!!P:s(v)};c({target:"Array",proto:!0,forced:!F||!m},{concat:function(P){var N,V,aA,AA,gA,T=o(this),x=u(T,0),R=0;for(N=-1,aA=arguments.length;Nw)throw d(Q);for(V=0;V=w)throw d(Q);h(x,R++,gA)}return x.length=R,x}})},545:function(Y,I,n){var c=n(2109),r=n(1048),a=n(1223);c({target:"Array",proto:!0},{copyWithin:r}),a("copyWithin")},3290:function(Y,I,n){var c=n(2109),r=n(1285),a=n(1223);c({target:"Array",proto:!0},{fill:r}),a("fill")},7327:function(Y,I,n){"use strict";var c=n(2109),r=n(2092).filter;c({target:"Array",proto:!0,forced:!n(1194)("filter")},{filter:function(o){return r(this,o,arguments.length>1?arguments[1]:void 0)}})},1038:function(Y,I,n){var c=n(2109),r=n(8457);c({target:"Array",stat:!0,forced:!n(7072)(function(E){Array.from(E)})},{from:r})},6699:function(Y,I,n){"use strict";var c=n(2109),r=n(1318).includes,a=n(1223);c({target:"Array",proto:!0},{includes:function(E){return r(this,E,arguments.length>1?arguments[1]:void 0)}}),a("includes")},6992:function(Y,I,n){"use strict";var c=n(5656),r=n(1223),a=n(7497),s=n(9909),E=n(654),o="Array Iterator",l=s.set,h=s.getterFor(o);Y.exports=E(Array,"Array",function(u,C){l(this,{type:o,target:c(u),index:0,kind:C})},function(){var u=h(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"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},9600:function(Y,I,n){"use strict";var c=n(2109),r=n(1702),a=n(8361),s=n(5656),E=n(9341),o=r([].join),l=a!=Object,h=E("join",",");c({target:"Array",proto:!0,forced:l||!h},{join:function(C){return o(s(this),void 0===C?",":C)}})},1249:function(Y,I,n){"use strict";var c=n(2109),r=n(2092).map;c({target:"Array",proto:!0,forced:!n(1194)("map")},{map:function(o){return r(this,o,arguments.length>1?arguments[1]:void 0)}})},7042:function(Y,I,n){"use strict";var c=n(2109),r=n(7854),a=n(3157),s=n(4411),E=n(111),o=n(1400),l=n(6244),h=n(5656),u=n(6135),C=n(5112),e=n(1194),f=n(206),g=e("slice"),w=C("species"),Q=r.Array,d=Math.max;c({target:"Array",proto:!0,forced:!g},{slice:function(m,p){var x,R,N,D=h(this),v=l(D),P=o(m,v),T=o(void 0===p?v:p,v);if(a(D)&&((s(x=D.constructor)&&(x===Q||a(x.prototype))||E(x)&&null===(x=x[w]))&&(x=void 0),x===Q||void 0===x))return f(D,P,T);for(R=new(void 0===x?Q:x)(d(T-P,0)),N=0;P3)){if(e)return!0;if(g)return g<603;var x,R,N,V,T="";for(x=65;x<76;x++){switch(R=String.fromCharCode(x),x){case 66:case 69:case 70:case 72:N=3;break;case 68:case 71:N=4;break;default:N=2}for(V=0;V<47;V++)w.push({k:R+V,v:N})}for(w.sort(function(aA,AA){return AA.v-aA.v}),V=0;Vo(R)?1:-1}}(x)),aA=N.length,AA=0;AAw)throw e(Q);for(R=l(p,x),N=0;ND-x+T;N--)delete p[N-1]}else if(T>x)for(N=D-x;N>v;N--)aA=N+T-1,(V=N+x-1)in p?p[aA]=p[V]:delete p[aA];for(N=0;N2)if(gA=d(gA),43===(MA=P(gA,0))||45===MA){if(88===(cA=P(gA,2))||120===cA)return NaN}else if(48===MA){switch(P(gA,1)){case 66:case 98:lA=2,BA=49;break;case 79:case 111:lA=8,BA=55;break;default:return+gA}for(xA=(vA=v(gA,2)).length,_=0;_BA)return NaN;return parseInt(vA,lA)}return+gA};if(s(F,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var aA,R=function(gA){var MA=arguments.length<1?0:m(T(gA)),cA=this;return h(p,cA)&&e(function(){Q(cA)})?l(Object(MA),cA,R):MA},N=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(","),V=0;N.length>V;V++)o(m,aA=N[V])&&!o(R,aA)&&w(R,aA,g(m,aA));R.prototype=p,p.constructor=R,E(r,F,R)}},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),r=n(7854),a=n(1702),s=n(9303),E=n(863),o=n(8415),l=n(7293),h=r.RangeError,u=r.String,C=Math.floor,e=a(o),f=a("".slice),g=a(1..toFixed),w=function(D,v,P){return 0===v?P:v%2==1?w(D,v-1,P*D):w(D*D,v/2,P)},d=function(D,v,P){for(var T=-1,x=P;++T<6;)D[T]=(x+=v*D[T])%1e7,x=C(x/1e7)},F=function(D,v){for(var P=6,T=0;--P>=0;)D[P]=C((T+=D[P])/v),T=T%v*1e7},m=function(D){for(var v=6,P="";--v>=0;)if(""!==P||0===v||0!==D[v]){var T=u(D[v]);P=""===P?T:P+e("0",7-T.length)+T}return P};c({target:"Number",proto:!0,forced:l(function(){return"0.000"!==g(8e-5,3)||"1"!==g(.9,0)||"1.25"!==g(1.255,2)||"1000000000000000128"!==g(0xde0b6b3a7640080,0)})||!l(function(){g({})})},{toFixed:function(v){var V,aA,AA,gA,P=E(this),T=s(v),x=[0,0,0,0,0,0],R="",N="0";if(T<0||T>20)throw h("Incorrect fraction digits");if(P!=P)return"NaN";if(P<=-1e21||P>=1e21)return u(P);if(P<0&&(R="-",P=-P),P>1e-21)if(aA=(V=function(D){for(var v=0,P=D;P>=4096;)v+=12,P/=4096;for(;P>=2;)v+=1,P/=2;return v}(P*w(2,69,1))-69)<0?P*w(2,-V,1):P/w(2,V,1),aA*=4503599627370496,(V=52-V)>0){for(d(x,0,aA),AA=T;AA>=7;)d(x,1e7,0),AA-=7;for(d(x,w(10,AA,1),0),AA=V-1;AA>=23;)F(x,1<<23),AA-=23;F(x,1<0?R+((gA=N.length)<=T?"0."+e("0",T-gA)+N:f(N,0,gA-T)+"."+f(N,gA-T)):R+N}})},9601:function(Y,I,n){var c=n(2109),r=n(1574);c({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},3371:function(Y,I,n){var c=n(2109),r=n(6677),a=n(7293),s=n(111),E=n(2423).onFreeze,o=Object.freeze;c({target:"Object",stat:!0,forced:a(function(){o(1)}),sham:!r},{freeze:function(u){return o&&s(u)?o(E(u)):u}})},5003:function(Y,I,n){var c=n(2109),r=n(7293),a=n(5656),s=n(1236).f,E=n(9781),o=r(function(){s(1)});c({target:"Object",stat:!0,forced:!E||o,sham:!E},{getOwnPropertyDescriptor:function(u,C){return s(a(u),C)}})},9337:function(Y,I,n){var c=n(2109),r=n(9781),a=n(3887),s=n(5656),E=n(1236),o=n(6135);c({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(h){for(var w,Q,u=s(h),C=E.f,e=a(u),f={},g=0;e.length>g;)void 0!==(Q=C(u,w=e[g++]))&&o(f,w,Q);return f}})},489:function(Y,I,n){var c=n(2109),r=n(7293),a=n(7908),s=n(9518),E=n(8544);c({target:"Object",stat:!0,forced:r(function(){s(1)}),sham:!E},{getPrototypeOf:function(h){return s(a(h))}})},7941:function(Y,I,n){var c=n(2109),r=n(7908),a=n(1956);c({target:"Object",stat:!0,forced:n(7293)(function(){a(1)})},{keys:function(l){return a(r(l))}})},1539:function(Y,I,n){var c=n(1694),r=n(1320),a=n(288);c||r(Object.prototype,"toString",a,{unsafe:!0})},2479:function(Y,I,n){var c=n(2109),r=n(4699).values;c({target:"Object",stat:!0},{values:function(s){return r(s)}})},7922:function(Y,I,n){"use strict";var c=n(2109),r=n(6916),a=n(9662),s=n(8523),E=n(2534),o=n(408);c({target:"Promise",stat:!0},{allSettled:function(h){var u=this,C=s.f(u),e=C.resolve,f=C.reject,g=E(function(){var w=a(u.resolve),Q=[],d=0,F=1;o(h,function(m){var p=d++,D=!1;F++,r(w,u,m).then(function(v){D||(D=!0,Q[p]={status:"fulfilled",value:v},--F||e(Q))},function(v){D||(D=!0,Q[p]={status:"rejected",reason:v},--F||e(Q))})}),--F||e(Q)});return g.error&&f(g.value),C.promise}})},4668:function(Y,I,n){"use strict";var c=n(2109),r=n(9662),a=n(5005),s=n(6916),E=n(8523),o=n(2534),l=n(408),h="No one promise resolved";c({target:"Promise",stat:!0},{any:function(C){var e=this,f=a("AggregateError"),g=E.f(e),w=g.resolve,Q=g.reject,d=o(function(){var F=r(e.resolve),m=[],p=0,D=1,v=!1;l(C,function(P){var T=p++,x=!1;D++,s(F,e,P).then(function(R){x||v||(v=!0,w(R))},function(R){x||v||(x=!0,m[T]=R,--D||Q(new f(m,h)))})}),--D||Q(new f(m,h))});return d.error&&Q(d.value),g.promise}})},7727:function(Y,I,n){"use strict";var c=n(2109),r=n(1913),a=n(3366),s=n(7293),E=n(5005),o=n(614),l=n(6707),h=n(9478),u=n(1320);if(c({target:"Promise",proto:!0,real:!0,forced:!!a&&s(function(){a.prototype.finally.call({then:function(){}},function(){})})},{finally:function(f){var g=l(this,E("Promise")),w=o(f);return this.then(w?function(Q){return h(g,f()).then(function(){return Q})}:f,w?function(Q){return h(g,f()).then(function(){throw Q})}:f)}}),!r&&o(a)){var e=E("Promise").prototype.finally;a.prototype.finally!==e&&u(a.prototype,"finally",e,{unsafe:!0})}},8674:function(Y,I,n){"use strict";var yA,_A,ft,lt,c=n(2109),r=n(1913),a=n(7854),s=n(5005),E=n(6916),o=n(3366),l=n(1320),h=n(2248),u=n(7674),C=n(8003),e=n(6340),f=n(9662),g=n(614),w=n(111),Q=n(5787),d=n(2788),F=n(408),m=n(7072),p=n(6707),D=n(261).set,v=n(5948),P=n(9478),T=n(842),x=n(8523),R=n(2534),N=n(9909),V=n(4705),aA=n(5112),AA=n(7871),gA=n(5268),MA=n(7392),cA=aA("species"),lA="Promise",BA=N.get,vA=N.set,xA=N.getterFor(lA),_=o&&o.prototype,QA=o,uA=_,CA=a.TypeError,TA=a.document,GA=a.process,VA=x.f,q=VA,J=!!(TA&&TA.createEvent&&a.dispatchEvent),$=g(a.PromiseRejectionEvent),W="unhandledrejection",st=!1,SA=V(lA,function(){var L=d(QA),dA=L!==String(QA);if(!dA&&66===MA||r&&!uA.finally)return!0;if(MA>=51&&/native code/.test(L))return!1;var wA=new QA(function(at){at(1)}),RA=function(at){at(function(){},function(){})};return(wA.constructor={})[cA]=RA,!(st=wA.then(function(){})instanceof RA)||!dA&&AA&&!$}),OA=SA||!m(function(L){QA.all(L).catch(function(){})}),WA=function(L){var dA;return!(!w(L)||!g(dA=L.then))&&dA},zA=function(L,dA){if(!L.notified){L.notified=!0;var wA=L.reactions;v(function(){for(var RA=L.value,eA=1==L.state,at=0;wA.length>at;){var jA,ct,bt,Ft=wA[at++],j=eA?Ft.ok:Ft.fail,XA=Ft.resolve,et=Ft.reject,mA=Ft.domain;try{j?(eA||(2===L.rejection&&vt(L),L.rejection=1),!0===j?jA=RA:(mA&&mA.enter(),jA=j(RA),mA&&(mA.exit(),bt=!0)),jA===Ft.promise?et(CA("Promise-chain cycle")):(ct=WA(jA))?E(ct,jA,XA,et):XA(jA)):et(RA)}catch(yt){mA&&!bt&&mA.exit(),et(yt)}}L.reactions=[],L.notified=!1,dA&&!L.rejection&&It(L)})}},ot=function(L,dA,wA){var RA,eA;J?((RA=TA.createEvent("Event")).promise=dA,RA.reason=wA,RA.initEvent(L,!1,!0),a.dispatchEvent(RA)):RA={promise:dA,reason:wA},!$&&(eA=a["on"+L])?eA(RA):L===W&&T("Unhandled promise rejection",wA)},It=function(L){E(D,a,function(){var eA,dA=L.facade,wA=L.value;if(dt(L)&&(eA=R(function(){gA?GA.emit("unhandledRejection",wA,dA):ot(W,dA,wA)}),L.rejection=gA||dt(L)?2:1,eA.error))throw eA.value})},dt=function(L){return 1!==L.rejection&&!L.parent},vt=function(L){E(D,a,function(){var dA=L.facade;gA?GA.emit("rejectionHandled",dA):ot("rejectionhandled",dA,L.value)})},Pt=function(L,dA,wA){return function(RA){L(dA,RA,wA)}},G=function(L,dA,wA){L.done||(L.done=!0,wA&&(L=wA),L.value=dA,L.state=2,zA(L,!0))},O=function(L,dA,wA){if(!L.done){L.done=!0,wA&&(L=wA);try{if(L.facade===dA)throw CA("Promise can't be resolved itself");var RA=WA(dA);RA?v(function(){var eA={done:!1};try{E(RA,dA,Pt(O,eA,L),Pt(G,eA,L))}catch(at){G(eA,at,L)}}):(L.value=dA,L.state=1,zA(L,!1))}catch(eA){G({done:!1},eA,L)}}};if(SA&&(QA=function(dA){Q(this,uA),f(dA),E(yA,this);var wA=BA(this);try{dA(Pt(O,wA),Pt(G,wA))}catch(RA){G(wA,RA)}},(yA=function(dA){vA(this,{type:lA,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(uA=QA.prototype,{then:function(dA,wA){var RA=xA(this),eA=RA.reactions,at=VA(p(this,QA));return at.ok=!g(dA)||dA,at.fail=g(wA)&&wA,at.domain=gA?GA.domain:void 0,RA.parent=!0,eA[eA.length]=at,0!=RA.state&&zA(RA,!1),at.promise},catch:function(L){return this.then(void 0,L)}}),_A=function(){var L=new yA,dA=BA(L);this.promise=L,this.resolve=Pt(O,dA),this.reject=Pt(G,dA)},x.f=VA=function(L){return L===QA||L===ft?new _A(L):q(L)},!r&&g(o)&&_!==Object.prototype)){lt=_.then,st||(l(_,"then",function(dA,wA){var RA=this;return new QA(function(eA,at){E(lt,RA,eA,at)}).then(dA,wA)},{unsafe:!0}),l(_,"catch",uA.catch,{unsafe:!0}));try{delete _.constructor}catch(L){}u&&u(_,uA)}c({global:!0,wrap:!0,forced:SA},{Promise:QA}),C(QA,lA,!1,!0),e(lA),ft=s(lA),c({target:lA,stat:!0,forced:SA},{reject:function(dA){var wA=VA(this);return E(wA.reject,void 0,dA),wA.promise}}),c({target:lA,stat:!0,forced:r||SA},{resolve:function(dA){return P(r&&this===ft?QA:this,dA)}}),c({target:lA,stat:!0,forced:OA},{all:function(dA){var wA=this,RA=VA(wA),eA=RA.resolve,at=RA.reject,Ft=R(function(){var j=f(wA.resolve),XA=[],et=0,mA=1;F(dA,function(jA){var ct=et++,bt=!1;mA++,E(j,wA,jA).then(function(yt){bt||(bt=!0,XA[ct]=yt,--mA||eA(XA))},at)}),--mA||eA(XA)});return Ft.error&&at(Ft.value),RA.promise},race:function(dA){var wA=this,RA=VA(wA),eA=RA.reject,at=R(function(){var Ft=f(wA.resolve);F(dA,function(j){E(Ft,wA,j).then(RA.resolve,eA)})});return at.error&&eA(at.value),RA.promise}})},2419:function(Y,I,n){var c=n(2109),r=n(5005),a=n(2104),s=n(7065),E=n(9483),o=n(9670),l=n(111),h=n(30),u=n(7293),C=r("Reflect","construct"),e=Object.prototype,f=[].push,g=u(function(){function d(){}return!(C(function(){},[],d)instanceof d)}),w=!u(function(){C(function(){})}),Q=g||w;c({target:"Reflect",stat:!0,forced:Q,sham:Q},{construct:function(F,m){E(F),o(m);var p=arguments.length<3?F:E(arguments[2]);if(w&&!g)return C(F,m,p);if(F==p){switch(m.length){case 0:return new F;case 1:return new F(m[0]);case 2:return new F(m[0],m[1]);case 3:return new F(m[0],m[1],m[2]);case 4:return new F(m[0],m[1],m[2],m[3])}var D=[null];return a(f,D,m),new(a(s,F,D))}var v=p.prototype,P=h(l(v)?v:e),T=a(F,P,m);return l(T)?T:P}})},4916:function(Y,I,n){"use strict";var c=n(2109),r=n(2261);c({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},2087:function(Y,I,n){var c=n(9781),r=n(3070),a=n(7066),s=n(7293),E=RegExp.prototype;c&&s(function(){return"sy"!==Object.getOwnPropertyDescriptor(E,"flags").get.call({dotAll:!0,sticky:!0})})&&r.f(E,"flags",{configurable:!0,get:a})},9714:function(Y,I,n){"use strict";var c=n(1702),r=n(6530).PROPER,a=n(1320),s=n(9670),E=n(7976),o=n(1340),l=n(7293),h=n(7066),u="toString",C=RegExp.prototype,e=C[u],f=c(h);(l(function(){return"/a/b"!=e.call({source:"a",flags:"b"})})||r&&e.name!=u)&&a(RegExp.prototype,u,function(){var d=s(this),F=o(d.source),m=d.flags;return"/"+F+"/"+o(void 0===m&&E(C,d)&&!("flags"in C)?f(d):m)},{unsafe:!0})},189:function(Y,I,n){"use strict";n(7710)("Set",function(a){return function(){return a(this,arguments.length?arguments[0]:void 0)}},n(5631))},9841:function(Y,I,n){"use strict";var c=n(2109),r=n(8710).codeAt;c({target:"String",proto:!0},{codePointAt:function(s){return r(this,s)}})},4953:function(Y,I,n){var c=n(2109),r=n(7854),a=n(1702),s=n(1400),E=r.RangeError,o=String.fromCharCode,l=String.fromCodePoint,h=a([].join);c({target:"String",stat:!0,forced:!!l&&1!=l.length},{fromCodePoint:function(e){for(var Q,f=[],g=arguments.length,w=0;g>w;){if(Q=+arguments[w++],s(Q,1114111)!==Q)throw E(Q+" is not a valid code point");f[w]=Q<65536?o(Q):o(55296+((Q-=65536)>>10),Q%1024+56320)}return h(f,"")}})},2023:function(Y,I,n){"use strict";var c=n(2109),r=n(1702),a=n(3929),s=n(4488),E=n(1340),o=n(4964),l=r("".indexOf);c({target:"String",proto:!0,forced:!o("includes")},{includes:function(u){return!!~l(E(s(this)),E(a(u)),arguments.length>1?arguments[1]:void 0)}})},8734:function(Y,I,n){"use strict";var c=n(2109),r=n(4230);c({target:"String",proto:!0,forced:n(3429)("italics")},{italics:function(){return r(this,"i","","")}})},8783:function(Y,I,n){"use strict";var c=n(8710).charAt,r=n(1340),a=n(9909),s=n(654),E="String Iterator",o=a.set,l=a.getterFor(E);s(String,"String",function(h){o(this,{type:E,string:r(h),index:0})},function(){var f,u=l(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),r=n(4230);c({target:"String",proto:!0,forced:n(3429)("link")},{link:function(E){return r(this,"a","href",E)}})},6373:function(Y,I,n){"use strict";var c=n(2109),r=n(7854),a=n(6916),s=n(1702),E=n(4994),o=n(4488),l=n(7466),h=n(1340),u=n(9670),C=n(4326),e=n(7976),f=n(7850),g=n(7066),w=n(8173),Q=n(1320),d=n(7293),F=n(5112),m=n(6707),p=n(1530),D=n(7651),v=n(9909),P=n(1913),T=F("matchAll"),x="RegExp String",R=x+" Iterator",N=v.set,V=v.getterFor(R),aA=RegExp.prototype,AA=r.TypeError,gA=s(g),MA=s("".indexOf),cA=s("".matchAll),lA=!!cA&&!d(function(){cA("a",/./)}),BA=E(function(_,QA,uA,CA){N(this,{type:R,regexp:_,string:QA,global:uA,unicode:CA,done:!1})},x,function(){var _=V(this);if(_.done)return{value:void 0,done:!0};var QA=_.regexp,uA=_.string,CA=D(QA,uA);return null===CA?{value:void 0,done:_.done=!0}:_.global?(""===h(CA[0])&&(QA.lastIndex=p(uA,l(QA.lastIndex),_.unicode)),{value:CA,done:!1}):(_.done=!0,{value:CA,done:!1})}),vA=function(xA){var uA,CA,TA,GA,VA,q,_=u(this),QA=h(xA);return uA=m(_,RegExp),void 0===(CA=_.flags)&&e(aA,_)&&!("flags"in aA)&&(CA=gA(_)),TA=void 0===CA?"":h(CA),GA=new uA(uA===RegExp?_.source:_,TA),VA=!!~MA(TA,"g"),q=!!~MA(TA,"u"),GA.lastIndex=l(_.lastIndex),new BA(GA,QA,VA,q)};c({target:"String",proto:!0,forced:lA},{matchAll:function(_){var uA,CA,TA,GA,QA=o(this);if(null!=_){if(f(_)&&(uA=h(o("flags"in aA?_.flags:gA(_))),!~MA(uA,"g")))throw AA("`.matchAll` does not allow non-global regexes");if(lA)return cA(QA,_);if(void 0===(TA=w(_,T))&&P&&"RegExp"==C(_)&&(TA=vA),TA)return a(TA,_,QA)}else if(lA)return cA(QA,_);return CA=h(QA),GA=new RegExp(_,"g"),P?a(vA,GA,CA):GA[T](CA)}}),P||T in aA||Q(aA,T,vA)},4723:function(Y,I,n){"use strict";var c=n(6916),r=n(7007),a=n(9670),s=n(7466),E=n(1340),o=n(4488),l=n(8173),h=n(1530),u=n(7651);r("match",function(C,e,f){return[function(w){var Q=o(this),d=null==w?void 0:l(w,C);return d?c(d,w,Q):new RegExp(w)[C](E(Q))},function(g){var w=a(this),Q=E(g),d=f(e,w,Q);if(d.done)return d.value;if(!w.global)return u(w,Q);var F=w.unicode;w.lastIndex=0;for(var D,m=[],p=0;null!==(D=u(w,Q));){var v=E(D[0]);m[p]=v,""===v&&(w.lastIndex=h(Q,s(w.lastIndex),F)),p++}return 0===p?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),r=n(6916),a=n(1702),s=n(7007),E=n(7293),o=n(9670),l=n(614),h=n(9303),u=n(7466),C=n(1340),e=n(4488),f=n(1530),g=n(8173),w=n(647),Q=n(7651),F=n(5112)("replace"),m=Math.max,p=Math.min,D=a([].concat),v=a([].push),P=a("".indexOf),T=a("".slice),x=function(aA){return void 0===aA?aA:String(aA)},R="$0"==="a".replace(/./,"$0"),N=!!/./[F]&&""===/./[F]("a","$0");s("replace",function(aA,AA,gA){var MA=N?"$":"$0";return[function(lA,BA){var vA=e(this),xA=null==lA?void 0:g(lA,F);return xA?r(xA,lA,vA,BA):r(AA,C(vA),lA,BA)},function(cA,lA){var BA=o(this),vA=C(cA);if("string"==typeof lA&&-1===P(lA,MA)&&-1===P(lA,"$<")){var xA=gA(AA,BA,vA,lA);if(xA.done)return xA.value}var _=l(lA);_||(lA=C(lA));var QA=BA.global;if(QA){var uA=BA.unicode;BA.lastIndex=0}for(var CA=[];;){var TA=Q(BA,vA);if(null===TA||(v(CA,TA),!QA))break;""===C(TA[0])&&(BA.lastIndex=f(vA,u(BA.lastIndex),uA))}for(var VA="",q=0,J=0;J=q&&(VA+=T(vA,q,W)+HA,q=W+$.length)}return VA+T(vA,q)}]},!!E(function(){var aA=/./;return aA.exec=function(){var AA=[];return AA.groups={a:"7"},AA},"7"!=="".replace(aA,"$")})||!R||N)},3123:function(Y,I,n){"use strict";var c=n(2104),r=n(6916),a=n(1702),s=n(7007),E=n(7850),o=n(9670),l=n(4488),h=n(6707),u=n(1530),C=n(7466),e=n(1340),f=n(8173),g=n(206),w=n(7651),Q=n(2261),d=n(2999),F=n(7293),m=d.UNSUPPORTED_Y,p=4294967295,D=Math.min,v=[].push,P=a(/./.exec),T=a(v),x=a("".slice),R=!F(function(){var N=/(?:)/,V=N.exec;N.exec=function(){return V.apply(this,arguments)};var aA="ab".split(N);return 2!==aA.length||"a"!==aA[0]||"b"!==aA[1]});s("split",function(N,V,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(gA,MA){var cA=e(l(this)),lA=void 0===MA?p:MA>>>0;if(0===lA)return[];if(void 0===gA)return[cA];if(!E(gA))return r(V,cA,gA,lA);for(var QA,uA,CA,BA=[],xA=0,_=new RegExp(gA.source,(gA.ignoreCase?"i":"")+(gA.multiline?"m":"")+(gA.unicode?"u":"")+(gA.sticky?"y":"")+"g");(QA=r(Q,_,cA))&&!((uA=_.lastIndex)>xA&&(T(BA,x(cA,xA,QA.index)),QA.length>1&&QA.index=lA));)_.lastIndex===QA.index&&_.lastIndex++;return xA===cA.length?(CA||!P(_,""))&&T(BA,""):T(BA,x(cA,xA)),BA.length>lA?g(BA,0,lA):BA}:"0".split(void 0,0).length?function(gA,MA){return void 0===gA&&0===MA?[]:r(V,this,gA,MA)}:V,[function(MA,cA){var lA=l(this),BA=null==MA?void 0:f(MA,N);return BA?r(BA,MA,lA,cA):r(AA,e(lA),MA,cA)},function(gA,MA){var cA=o(this),lA=e(gA),BA=aA(AA,cA,lA,MA,AA!==V);if(BA.done)return BA.value;var vA=h(cA,RegExp),xA=cA.unicode,QA=new vA(m?"^(?:"+cA.source+")":cA,(cA.ignoreCase?"i":"")+(cA.multiline?"m":"")+(cA.unicode?"u":"")+(m?"g":"y")),uA=void 0===MA?p:MA>>>0;if(0===uA)return[];if(0===lA.length)return null===w(QA,lA)?[lA]:[];for(var CA=0,TA=0,GA=[];TA2?arguments[2]:void 0)})},8927:function(Y,I,n){"use strict";var c=n(2094),r=n(2092).every,a=c.aTypedArray;(0,c.exportTypedArrayMethod)("every",function(o){return r(a(this),o,arguments.length>1?arguments[1]:void 0)})},3105:function(Y,I,n){"use strict";var c=n(2094),r=n(6916),a=n(1285),s=c.aTypedArray;(0,c.exportTypedArrayMethod)("fill",function(l){var h=arguments.length;return r(a,s(this),l,h>1?arguments[1]:void 0,h>2?arguments[2]:void 0)})},5035:function(Y,I,n){"use strict";var c=n(2094),r=n(2092).filter,a=n(3074),s=c.aTypedArray;(0,c.exportTypedArrayMethod)("filter",function(l){var h=r(s(this),l,arguments.length>1?arguments[1]:void 0);return a(this,h)})},7174:function(Y,I,n){"use strict";var c=n(2094),r=n(2092).findIndex,a=c.aTypedArray;(0,c.exportTypedArrayMethod)("findIndex",function(o){return r(a(this),o,arguments.length>1?arguments[1]:void 0)})},4345:function(Y,I,n){"use strict";var c=n(2094),r=n(2092).find,a=c.aTypedArray;(0,c.exportTypedArrayMethod)("find",function(o){return r(a(this),o,arguments.length>1?arguments[1]:void 0)})},4197:function(Y,I,n){n(9843)("Float32",function(r){return function(s,E,o){return r(this,s,E,o)}})},6495:function(Y,I,n){n(9843)("Float64",function(r){return function(s,E,o){return r(this,s,E,o)}})},2846:function(Y,I,n){"use strict";var c=n(2094),r=n(2092).forEach,a=c.aTypedArray;(0,c.exportTypedArrayMethod)("forEach",function(o){r(a(this),o,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),r=n(1318).includes,a=c.aTypedArray;(0,c.exportTypedArrayMethod)("includes",function(o){return r(a(this),o,arguments.length>1?arguments[1]:void 0)})},7209:function(Y,I,n){"use strict";var c=n(2094),r=n(1318).indexOf,a=c.aTypedArray;(0,c.exportTypedArrayMethod)("indexOf",function(o){return r(a(this),o,arguments.length>1?arguments[1]:void 0)})},5109:function(Y,I,n){n(9843)("Int16",function(r){return function(s,E,o){return r(this,s,E,o)}})},5125:function(Y,I,n){n(9843)("Int32",function(r){return function(s,E,o){return r(this,s,E,o)}})},7145:function(Y,I,n){n(9843)("Int8",function(r){return function(s,E,o){return r(this,s,E,o)}})},6319:function(Y,I,n){"use strict";var c=n(7854),r=n(1702),a=n(6530).PROPER,s=n(2094),E=n(6992),l=n(5112)("iterator"),h=c.Uint8Array,u=r(E.values),C=r(E.keys),e=r(E.entries),f=s.aTypedArray,g=s.exportTypedArrayMethod,w=h&&h.prototype[l],Q=!!w&&"values"===w.name,d=function(){return u(f(this))};g("entries",function(){return e(f(this))}),g("keys",function(){return C(f(this))}),g("values",d,a&&!Q),g(l,d,a&&!Q)},8867:function(Y,I,n){"use strict";var c=n(2094),r=n(1702),a=c.aTypedArray,s=c.exportTypedArrayMethod,E=r([].join);s("join",function(l){return E(a(this),l)})},7789:function(Y,I,n){"use strict";var c=n(2094),r=n(2104),a=n(6583),s=c.aTypedArray;(0,c.exportTypedArrayMethod)("lastIndexOf",function(l){var h=arguments.length;return r(a,s(this),h>1?[l,arguments[1]]:[l])})},3739:function(Y,I,n){"use strict";var c=n(2094),r=n(2092).map,a=n(6304),s=c.aTypedArray;(0,c.exportTypedArrayMethod)("map",function(l){return r(s(this),l,arguments.length>1?arguments[1]:void 0,function(h,u){return new(a(h))(u)})})},4483:function(Y,I,n){"use strict";var c=n(2094),r=n(3671).right,a=c.aTypedArray;(0,c.exportTypedArrayMethod)("reduceRight",function(o){var l=arguments.length;return r(a(this),o,l,l>1?arguments[1]:void 0)})},9368:function(Y,I,n){"use strict";var c=n(2094),r=n(3671).left,a=c.aTypedArray;(0,c.exportTypedArrayMethod)("reduce",function(o){var l=arguments.length;return r(a(this),o,l,l>1?arguments[1]:void 0)})},2056:function(Y,I,n){"use strict";var c=n(2094),r=c.aTypedArray,s=Math.floor;(0,c.exportTypedArrayMethod)("reverse",function(){for(var C,o=this,l=r(o).length,h=s(l/2),u=0;u1?arguments[1]:void 0,1),w=this.length,Q=E(f),d=a(Q),F=0;if(d+g>w)throw l("Wrong length");for(;Fg;)Q[g]=e[g++];return Q},a(function(){new Int8Array(1).slice()}))},7462:function(Y,I,n){"use strict";var c=n(2094),r=n(2092).some,a=c.aTypedArray;(0,c.exportTypedArrayMethod)("some",function(o){return r(a(this),o,arguments.length>1?arguments[1]:void 0)})},3824:function(Y,I,n){"use strict";var c=n(7854),r=n(1702),a=n(7293),s=n(9662),E=n(4362),o=n(2094),l=n(8886),h=n(256),u=n(7392),C=n(8008),e=c.Array,f=o.aTypedArray,g=o.exportTypedArrayMethod,w=c.Uint16Array,Q=w&&r(w.prototype.sort),d=!(!Q||a(function(){Q(new w(2),null)})&&a(function(){Q(new w(2),{})})),F=!!Q&&!a(function(){if(u)return u<74;if(l)return l<67;if(h)return!0;if(C)return C<602;var v,P,p=new w(516),D=e(516);for(v=0;v<516;v++)P=v%4,p[v]=515-v,D[v]=v-2*P+3;for(Q(p,function(T,x){return(T/4|0)-(x/4|0)}),v=0;v<516;v++)if(p[v]!==D[v])return!0});g("sort",function(D){return void 0!==D&&s(D),F?Q(this,D):E(f(this),(p=D,function(D,v){return void 0!==p?+p(D,v)||0:v!=v?-1:D!=D?1:0===D&&0===v?1/D>0&&1/v<0?1:-1:D>v}));var p},!F||d)},5021:function(Y,I,n){"use strict";var c=n(2094),r=n(7466),a=n(1400),s=n(6304),E=c.aTypedArray;(0,c.exportTypedArrayMethod)("subarray",function(h,u){var C=E(this),e=C.length,f=a(h,e);return new(s(C))(C.buffer,C.byteOffset+f*C.BYTES_PER_ELEMENT,r((void 0===u?e:a(u,e))-f))})},2974:function(Y,I,n){"use strict";var c=n(7854),r=n(2104),a=n(2094),s=n(7293),E=n(206),o=c.Int8Array,l=a.aTypedArray,h=a.exportTypedArrayMethod,u=[].toLocaleString,C=!!o&&s(function(){u.call(new o(1))});h("toLocaleString",function(){return r(u,C?E(l(this)):l(this),E(arguments))},s(function(){return[1,2].toLocaleString()!=new o([1,2]).toLocaleString()})||!s(function(){o.prototype.toLocaleString.call([1,2])}))},5016:function(Y,I,n){"use strict";var c=n(2094).exportTypedArrayMethod,r=n(7293),a=n(7854),s=n(1702),E=a.Uint8Array,o=E&&E.prototype||{},l=[].toString,h=s([].join);r(function(){l.call({})})&&(l=function(){return h(this)}),c("toString",l,o.toString!=l)},8255:function(Y,I,n){n(9843)("Uint16",function(r){return function(s,E,o){return r(this,s,E,o)}})},9135:function(Y,I,n){n(9843)("Uint32",function(r){return function(s,E,o){return r(this,s,E,o)}})},2472:function(Y,I,n){n(9843)("Uint8",function(r){return function(s,E,o){return r(this,s,E,o)}})},9743:function(Y,I,n){n(9843)("Uint8",function(r){return function(s,E,o){return r(this,s,E,o)}},!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),r=n(8523),a=n(2534);c({target:"Promise",stat:!0},{try:function(s){var E=r.f(this),o=a(s);return(o.error?E.reject:E.resolve)(o.value),E.promise}})},3728:function(Y,I,n){n(6373)},4747:function(Y,I,n){var c=n(7854),r=n(8324),a=n(8509),s=n(8533),E=n(8880),o=function(h){if(h&&h.forEach!==s)try{E(h,"forEach",s)}catch(u){h.forEach=s}};for(var l in r)r[l]&&o(c[l]&&c[l].prototype);o(a)},3948:function(Y,I,n){var c=n(7854),r=n(8324),a=n(8509),s=n(6992),E=n(8880),o=n(5112),l=o("iterator"),h=o("toStringTag"),u=s.values,C=function(f,g){if(f){if(f[l]!==u)try{E(f,l,u)}catch(Q){f[l]=u}if(f[h]||E(f,h,g),r[g])for(var w in s)if(f[w]!==s[w])try{E(f,w,s[w])}catch(Q){f[w]=s[w]}}};for(var e in r)C(c[e]&&c[e].prototype,e);C(a,"DOMTokenList")},3753:function(Y,I,n){"use strict";var c=n(2109),r=n(6916);c({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return r(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),r=n(2584),a=n(609),s=n(8420),E=n(2847),o=n(8923),l=Date.prototype.getTime;function h(f,g,w){var Q=w||{};return!!(Q.strict?a(f,g):f===g)||(!f||!g||"object"!=typeof f&&"object"!=typeof g?Q.strict?a(f,g):f==g:function(f,g,w){var Q,d;if(typeof f!=typeof g||u(f)||u(g)||f.prototype!==g.prototype||r(f)!==r(g))return!1;var F=s(f),m=s(g);if(F!==m)return!1;if(F||m)return f.source===g.source&&E(f)===E(g);if(o(f)&&o(g))return l.call(f)===l.call(g);var p=C(f),D=C(g);if(p!==D)return!1;if(p||D){if(f.length!==g.length)return!1;for(Q=0;Q=0;Q--)if(v[Q]!=P[Q])return!1;for(Q=v.length-1;Q>=0;Q--)if(!h(f[d=v[Q]],g[d],w))return!1;return!0}(f,g,Q))}function u(f){return null==f}function C(f){return!(!f||"object"!=typeof f||"number"!=typeof f.length||"function"!=typeof f.copy||"function"!=typeof f.slice||f.length>0&&"number"!=typeof f[0])}Y.exports=h},4289:function(Y,I,n){"use strict";var c=n(2215),r="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=Object.prototype.toString,s=Array.prototype.concat,E=Object.defineProperty,h=E&&function(){var e={};try{for(var f in E(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(g){return!1}}(),u=function(e,f,g,w){f in e&&(!function(e){return"function"==typeof e&&"[object Function]"===a.call(e)}(w)||!w())||(h?E(e,f,{configurable:!0,enumerable:!1,value:g,writable:!0}):e[f]=g)},C=function(e,f){var g=arguments.length>2?arguments[2]:{},w=c(f);r&&(w=s.call(w,Object.getOwnPropertySymbols(f)));for(var Q=0;Q0&&R.length>T&&!R.warned){R.warned=!0;var N=new Error("Possible EventEmitter memory leak detected. "+R.length+" "+String(D)+" listeners added. Use emitter.setMaxListeners() to increase limit");N.name="MaxListenersExceededWarning",N.emitter=p,N.type=D,N.count=R.length,function(p){console&&console.warn&&console.warn(p)}(N)}return p}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function C(p,D,v){var P={fired:!1,wrapFn:void 0,target:p,type:D,listener:v},T=u.bind(P);return T.listener=v,P.wrapFn=T,T}function e(p,D,v){var P=p._events;if(void 0===P)return[];var T=P[D];return void 0===T?[]:"function"==typeof T?v?[T.listener||T]:[T]:v?function(p){for(var D=new Array(p.length),v=0;v0&&(R=v[0]),R instanceof Error)throw R;var N=new Error("Unhandled error."+(R?" ("+R.message+")":""));throw N.context=R,N}var V=x[D];if(void 0===V)return!1;if("function"==typeof V)n(V,this,v);else{var aA=V.length,AA=g(V,aA);for(P=0;P=0;R--)if(P[R]===v||P[R].listener===v){N=P[R].listener,x=R;break}if(x<0)return this;0===x?P.shift():function(p,D){for(;D+1=0;T--)this.removeListener(D,v[T]);return this},s.prototype.listeners=function(D){return e(this,D,!0)},s.prototype.rawListeners=function(D){return e(this,D,!1)},s.listenerCount=function(p,D){return"function"==typeof p.listenerCount?p.listenerCount(D):f.call(p,D)},s.prototype.listenerCount=f,s.prototype.eventNames=function(){return this._eventsCount>0?c(this._events):[]}},2536:function(Y,I,n){var c=n(4275),r=n(7672);void 0===r.pdfMake&&(r.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(r){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(r,a,s){if("[object Function]"!==n.call(a))throw new TypeError("iterator must be a function");var E=r.length;if(E===+E)for(var o=0;o1&&"boolean"!=typeof aA)throw new s('"allowMissing" argument must be a boolean');var AA=x(V),gA=AA.length>0?AA[0]:"",MA=R("%"+gA+"%",aA),cA=MA.name,lA=MA.value,BA=!1,vA=MA.alias;vA&&(gA=vA[0],p(AA,m([0,1],vA)));for(var xA=1,_=!0;xA=AA.length){var TA=o(lA,QA);lA=(_=!!TA)&&"get"in TA&&!("originalValue"in TA.get)?TA.get:lA[QA]}else _=F(lA,QA),lA=lA[QA];_&&!BA&&(g[cA]=lA)}}return lA}},1405:function(Y,I,n){"use strict";var c="undefined"!=typeof Symbol&&Symbol,r=n(5419);Y.exports=function(){return"function"==typeof c&&"function"==typeof Symbol&&"symbol"==typeof c("foo")&&"symbol"==typeof Symbol("bar")&&r()}},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"),r=Object(c);if("string"==typeof c||"[object Symbol]"!==Object.prototype.toString.call(c)||"[object Symbol]"!==Object.prototype.toString.call(r))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 s=Object.getOwnPropertySymbols(n);if(1!==s.length||s[0]!==c||!Object.prototype.propertyIsEnumerable.call(n,c))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var E=Object.getOwnPropertyDescriptor(n,c);if(42!==E.value||!0!==E.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 r=-1,s=-10,E=-1e3,o=new Array(256),h=0;h<256;h++)o[h]=r;function u(g,w){if(this.encodingName=g.encodingName,!g)throw new Error("DBCS codec is called without the data.");if(!g.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var Q=g.table();this.decodeTables=[],this.decodeTables[0]=o.slice(0),this.decodeTableSeq=[];for(var d=0;dE)throw new Error("gb18030 decode tables conflict at byte 2");for(var P=this.decodeTables[E-D[v]],T=129;T<=254;T++){if(P[T]===r)P[T]=E-m;else{if(P[T]===E-m)continue;if(P[T]>E)throw new Error("gb18030 decode tables conflict at byte 3")}for(var x=this.decodeTables[E-P[T]],R=48;R<=57;R++)x[R]===r&&(x[R]=-2)}}}this.defaultCharUnicode=w.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var N={};if(g.encodeSkipVals)for(d=0;dw)return-1;for(var Q=0,d=g.length;Q>1);g[F]<=w?Q=F:d=F}return Q}u.prototype.encoder=C,u.prototype.decoder=e,u.prototype._getDecodeTrieNode=function(g){for(var w=[];g>0;g>>>=8)w.push(255&g);0==w.length&&w.push(0);for(var Q=this.decodeTables[0],d=w.length-1;d>0;d--){var F=Q[w[d]];if(F==r)Q[w[d]]=E-this.decodeTables.length,this.decodeTables.push(Q=o.slice(0));else{if(!(F<=E))throw new Error("Overwrite byte in "+this.encodingName+", addr: "+g.toString(16));Q=this.decodeTables[E-F]}}return Q},u.prototype._addDecodeChunk=function(g){var w=parseInt(g[0],16),Q=this._getDecodeTrieNode(w);w&=255;for(var d=1;d255)throw new Error("Incorrect chunk in "+this.encodingName+" at addr "+g[0]+": too long"+w)},u.prototype._getEncodeBucket=function(g){var w=g>>8;return void 0===this.encodeTable[w]&&(this.encodeTable[w]=o.slice(0)),this.encodeTable[w]},u.prototype._setEncodeChar=function(g,w){var Q=this._getEncodeBucket(g),d=255&g;Q[d]<=s?this.encodeTableSeq[s-Q[d]][-1]=w:Q[d]==r&&(Q[d]=w)},u.prototype._setEncodeSequence=function(g,w){var m,Q=g[0],d=this._getEncodeBucket(Q),F=255&Q;d[F]<=s?m=this.encodeTableSeq[s-d[F]]:(m={},d[F]!==r&&(m[-1]=d[F]),d[F]=s-this.encodeTableSeq.length,this.encodeTableSeq.push(m));for(var p=1;p=0)this._setEncodeChar(D,v),F=!0;else if(D<=E){var P=E-D;m[P]||(this._fillEncodeTable(P,v<<8>>>0,Q)?F=!0:m[P]=!0)}else D<=s&&(this._setEncodeSequence(this.decodeTableSeq[s-D],v),F=!0)}return F},C.prototype.write=function(g){for(var w=c.alloc(g.length*(this.gb18030?4:3)),Q=this.leadSurrogate,d=this.seqObj,F=-1,m=0,p=0;;){if(-1===F){if(m==g.length)break;var D=g.charCodeAt(m++)}else D=F,F=-1;if(55296<=D&&D<57344)if(D<56320){if(-1===Q){Q=D;continue}Q=D,D=r}else-1!==Q?(D=65536+1024*(Q-55296)+(D-56320),Q=-1):D=r;else-1!==Q&&(F=D,D=r,Q=-1);var v=r;if(void 0!==d&&D!=r){var P=d[D];if("object"==typeof P){d=P;continue}"number"==typeof P?v=P:null==P&&void 0!==(P=d[-1])&&(v=P,F=D),d=void 0}else if(D>=0){var T=this.encodeTable[D>>8];if(void 0!==T&&(v=T[255&D]),v<=s){d=this.encodeTableSeq[s-v];continue}if(v==r&&this.gb18030){var x=f(this.gb18030.uChars,D);if(-1!=x){v=this.gb18030.gbChars[x]+(D-this.gb18030.uChars[x]),w[p++]=129+Math.floor(v/12600),v%=12600,w[p++]=48+Math.floor(v/1260),v%=1260,w[p++]=129+Math.floor(v/10),w[p++]=48+(v%=10);continue}}}v===r&&(v=this.defaultCharSingleByte),v<256?w[p++]=v:v<65536?(w[p++]=v>>8,w[p++]=255&v):v<16777216?(w[p++]=v>>16,w[p++]=v>>8&255,w[p++]=255&v):(w[p++]=v>>>24,w[p++]=v>>>16&255,w[p++]=v>>>8&255,w[p++]=255&v)}return this.seqObj=d,this.leadSurrogate=Q,w.slice(0,p)},C.prototype.end=function(){if(-1!==this.leadSurrogate||void 0!==this.seqObj){var g=c.alloc(10),w=0;if(this.seqObj){var Q=this.seqObj[-1];void 0!==Q&&(Q<256?g[w++]=Q:(g[w++]=Q>>8,g[w++]=255&Q)),this.seqObj=void 0}return-1!==this.leadSurrogate&&(g[w++]=this.defaultCharSingleByte,this.leadSurrogate=-1),g.slice(0,w)}},C.prototype.findIdx=f,e.prototype.write=function(g){for(var w=c.alloc(2*g.length),Q=this.nodeIdx,d=this.prevBytes,F=this.prevBytes.length,m=-this.prevBytes.length,D=0,v=0;D=0?g[D]:d[D+F];if(!((p=this.decodeTables[Q][P])>=0))if(p===r)p=this.defaultCharUnicode.charCodeAt(0),D=m;else if(-2===p){if(D>=3)var T=12600*(g[D-3]-129)+1260*(g[D-2]-48)+10*(g[D-1]-129)+(P-48);else T=12600*(d[D-3+F]-129)+1260*((D-2>=0?g[D-2]:d[D-2+F])-48)+10*((D-1>=0?g[D-1]:d[D-1+F])-129)+(P-48);var x=f(this.gb18030.gbChars,T);p=this.gb18030.uChars[x]+T-this.gb18030.gbChars[x]}else{if(p<=E){Q=E-p;continue}if(!(p<=s))throw new Error("iconv-lite internal error: invalid decoding table value "+p+" at "+Q+"/"+P);for(var R=this.decodeTableSeq[s-p],N=0;N>8;p=R[R.length-1]}if(p>=65536){var V=55296|(p-=65536)>>10;w[v++]=255&V,w[v++]=V>>8,p=56320|1023&p}w[v++]=255&p,w[v++]=p>>8,Q=0,m=D+1}return this.nodeIdx=Q,this.prevBytes=m>=0?Array.prototype.slice.call(g,m):d.slice(m+F).concat(Array.prototype.slice.call(g)),w.slice(0,v).toString("ucs2")},e.prototype.end=function(){for(var g="";this.prevBytes.length>0;){g+=this.defaultCharUnicode;var w=this.prevBytes.slice(1);this.prevBytes=[],this.nodeIdx=0,w.length>0&&(g+=this.write(w))}return this.prevBytes=[],this.nodeIdx=0,g}},5990:function(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)],r=0;r>>6),C[e++]=128+(63&g)):(C[e++]=224+(g>>>12),C[e++]=128+(g>>>6&63),C[e++]=128+(63&g))}return C.slice(0,e)},l.prototype.end=function(){},h.prototype.write=function(u){for(var C=this.acc,e=this.contBytes,f=this.accBytes,g="",w=0;w0&&(g+=this.defaultCharUnicode,e=0),Q<128?g+=String.fromCharCode(Q):Q<224?(C=31&Q,e=1,f=1):Q<240?(C=15&Q,e=2,f=1):g+=this.defaultCharUnicode):e>0?(C=C<<6|63&Q,f++,0==--e&&(g+=2===f&&C<128&&C>0||3===f&&C<2048?this.defaultCharUnicode:String.fromCharCode(C))):g+=this.defaultCharUnicode}return this.acc=C,this.contBytes=e,this.accBytes=f,g},h.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 r(E,o){if(!E)throw new Error("SBCS codec is called without the data.");if(!E.chars||128!==E.chars.length&&256!==E.chars.length)throw new Error("Encoding '"+E.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(128===E.chars.length){for(var l="",h=0;h<128;h++)l+=String.fromCharCode(h);E.chars=l+E.chars}this.decodeBuf=c.from(E.chars,"ucs2");var u=c.alloc(65536,o.defaultCharSingleByte.charCodeAt(0));for(h=0;h?@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 r(){}function a(){}function s(){this.overflowByte=-1}function E(u,C){this.iconv=C}function o(u,C){void 0===(u=u||{}).addBOM&&(u.addBOM=!0),this.encoder=C.iconv.getEncoder("utf-16le",u)}function l(u,C){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=u||{},this.iconv=C.iconv}function h(u,C){var e=[],f=0,g=0,w=0;A:for(var Q=0;Q=100)break A}return w>g?"utf-16be":w1114111)&&(f=g),f>=65536){var w=55296|(f-=65536)>>10;C[e++]=255&w,C[e++]=w>>8,f=56320|1023&f}return C[e++]=255&f,C[e++]=f>>8,e}function o(C,e){this.iconv=e}function l(C,e){void 0===(C=C||{}).addBOM&&(C.addBOM=!0),this.encoder=e.iconv.getEncoder(C.defaultEncoding||"utf-32le",C)}function h(C,e){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=C||{},this.iconv=e.iconv}function u(C,e){var f=[],g=0,w=0,Q=0,d=0,F=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])&&F++,(0!==f[0]||0!==f[1])&&0===f[2]&&0===f[3]&&d++,f.length=0,++g>=100)break A}return F-Q>d-w?"utf-32be":F-Q0){for(;e0&&(d=this.iconv.decode(c.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",d},I.utf7imap=f,f.prototype.encoder=g,f.prototype.decoder=w,f.prototype.bomAware=!0,g.prototype.write=function(d){for(var F=this.inBase64,m=this.base64Accum,p=this.base64AccumIdx,D=c.alloc(5*d.length+10),v=0,P=0;P0&&(v+=D.write(m.slice(0,p).toString("base64").replace(/\//g,",").replace(/=+$/,""),v),p=0),D[v++]=C,F=!1),F||(D[v++]=T,T===e&&(D[v++]=C))):(F||(D[v++]=e,F=!0),F&&(m[p++]=T>>8,m[p++]=255&T,p==m.length&&(v+=D.write(m.toString("base64").replace(/\//g,","),v),p=0)))}return this.inBase64=F,this.base64AccumIdx=p,D.slice(0,v)},g.prototype.end=function(){var d=c.alloc(10),F=0;return this.inBase64&&(this.base64AccumIdx>0&&(F+=d.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),F),this.base64AccumIdx=0),d[F++]=C,this.inBase64=!1),d.slice(0,F)};var Q=l.slice();Q[",".charCodeAt(0)]=!0,w.prototype.write=function(d){for(var F="",m=0,p=this.inBase64,D=this.base64Accum,v=0;v0&&(d=this.iconv.decode(c.from(this.base64Accum,"base64"),"utf16-be")),this.inBase64=!1,this.base64Accum="",d}},5395:function(Y,I){"use strict";function c(a,s){this.encoder=a,this.addBOM=!0}function r(a,s){this.decoder=a,this.pass=!1,this.options=s||{}}I.PrependBOM=c,c.prototype.write=function(a){return this.addBOM&&(a="\ufeff"+a,this.addBOM=!1),this.encoder.write(a)},c.prototype.end=function(){return this.encoder.end()},I.StripBOM=r,r.prototype.write=function(a){var s=this.decoder.write(a);return this.pass||!s||("\ufeff"===s[0]&&(s=s.slice(1),"function"==typeof this.options.stripBOM&&this.options.stripBOM()),this.pass=!0),s},r.prototype.end=function(){return this.decoder.end()}},4914:function(Y,I,n){"use strict";var s,c=n(7103).Buffer,r=n(5395),a=Y.exports;a.encodings=null,a.defaultCharUnicode="\ufffd",a.defaultCharSingleByte="?",a.encode=function(o,l,h){o=""+(o||"");var u=a.getEncoder(l,h),C=u.write(o),e=u.end();return e&&e.length>0?c.concat([C,e]):C},a.decode=function(o,l,h){"string"==typeof o&&(a.skipDecodeWarning||(console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"),a.skipDecodeWarning=!0),o=c.from(""+(o||""),"binary"));var u=a.getDecoder(l,h),C=u.write(o),e=u.end();return e?C+e:C},a.encodingExists=function(o){try{return a.getCodec(o),!0}catch(l){return!1}},a.toEncoding=a.encode,a.fromEncoding=a.decode,a._codecDataCache={},a.getCodec=function(o){a.encodings||(a.encodings=n(6934));for(var l=a._canonicalizeEncoding(o),h={};;){var u=a._codecDataCache[l];if(u)return u;var C=a.encodings[l];switch(typeof C){case"string":l=C;break;case"object":for(var e in C)h[e]=C[e];h.encodingName||(h.encodingName=l),l=C.type;break;case"function":return h.encodingName||(h.encodingName=l),u=new C(h,a),a._codecDataCache[h.encodingName]=u,u;default:throw new Error("Encoding not recognized: '"+o+"' (searched as: '"+l+"')")}}},a._canonicalizeEncoding=function(E){return(""+E).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")},a.getEncoder=function(o,l){var h=a.getCodec(o),u=new h.encoder(l,h);return h.bomAware&&l&&l.addBOM&&(u=new r.PrependBOM(u,l)),u},a.getDecoder=function(o,l){var h=a.getCodec(o),u=new h.decoder(l,h);return h.bomAware&&!(l&&!1===l.stripBOM)&&(u=new r.StripBOM(u,l)),u},a.enableStreamingAPI=function(o){if(!a.supportsStreams){var l=n(8044)(o);a.IconvLiteEncoderStream=l.IconvLiteEncoderStream,a.IconvLiteDecoderStream=l.IconvLiteDecoderStream,a.encodeStream=function(u,C){return new a.IconvLiteEncoderStream(a.getEncoder(u,C),C)},a.decodeStream=function(u,C){return new a.IconvLiteDecoderStream(a.getDecoder(u,C),C)},a.supportsStreams=!0}};try{s=n(5832)}catch(E){}s&&s.Transform?a.enableStreamingAPI(s):a.encodeStream=a.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(r){var a=r.Transform;function s(o,l){this.conv=o,(l=l||{}).decodeStrings=!1,a.call(this,l)}function E(o,l){this.conv=o,(l=l||{}).encoding=this.encoding="utf8",a.call(this,l)}return(s.prototype=Object.create(a.prototype,{constructor:{value:s}}))._transform=function(o,l,h){if("string"!=typeof o)return h(new Error("Iconv encoding stream needs strings as its input."));try{var u=this.conv.write(o);u&&u.length&&this.push(u),h()}catch(C){h(C)}},s.prototype._flush=function(o){try{var l=this.conv.end();l&&l.length&&this.push(l),o()}catch(h){o(h)}},s.prototype.collect=function(o){var l=[];return this.on("error",o),this.on("data",function(h){l.push(h)}),this.on("end",function(){o(null,c.concat(l))}),this},(E.prototype=Object.create(a.prototype,{constructor:{value:E}}))._transform=function(o,l,h){if(!(c.isBuffer(o)||o instanceof Uint8Array))return h(new Error("Iconv decoding stream needs buffers as its input."));try{var u=this.conv.write(o);u&&u.length&&this.push(u,this.encoding),h()}catch(C){h(C)}},E.prototype._flush=function(o){try{var l=this.conv.end();l&&l.length&&this.push(l,this.encoding),o()}catch(h){o(h)}},E.prototype.collect=function(o){var l="";return this.on("error",o),this.on("data",function(h){l+=h}),this.on("end",function(){o(null,l)}),this},{IconvLiteEncoderStream:s,IconvLiteDecoderStream:E}}},645:function(Y,I){I.read=function(n,c,r,a,s){var E,o,l=8*s-a-1,h=(1<>1,C=-7,e=r?s-1:0,f=r?-1:1,g=n[c+e];for(e+=f,E=g&(1<<-C)-1,g>>=-C,C+=l;C>0;E=256*E+n[c+e],e+=f,C-=8);for(o=E&(1<<-C)-1,E>>=-C,C+=a;C>0;o=256*o+n[c+e],e+=f,C-=8);if(0===E)E=1-u;else{if(E===h)return o?NaN:1/0*(g?-1:1);o+=Math.pow(2,a),E-=u}return(g?-1:1)*o*Math.pow(2,E-a)},I.write=function(n,c,r,a,s,E){var o,l,h,u=8*E-s-1,C=(1<>1,f=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,g=a?0:E-1,w=a?1:-1,Q=c<0||0===c&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(l=isNaN(c)?1:0,o=C):(o=Math.floor(Math.log(c)/Math.LN2),c*(h=Math.pow(2,-o))<1&&(o--,h*=2),(c+=o+e>=1?f/h:f*Math.pow(2,1-e))*h>=2&&(o++,h/=2),o+e>=C?(l=0,o=C):o+e>=1?(l=(c*h-1)*Math.pow(2,s),o+=e):(l=c*Math.pow(2,e-1)*Math.pow(2,s),o=0));s>=8;n[r+g]=255&l,g+=w,l/=256,s-=8);for(o=o<0;n[r+g]=255&o,g+=w,o/=256,u-=8);n[r+g-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 r=function(){};r.prototype=c.prototype,n.prototype=new r,n.prototype.constructor=n}}},2584:function(Y,I,n){"use strict";var c=n(6410)(),a=n(1924)("Object.prototype.toString"),s=function(h){return!(c&&h&&"object"==typeof h&&Symbol.toStringTag in h)&&"[object Arguments]"===a(h)},E=function(h){return!!s(h)||null!==h&&"object"==typeof h&&"number"==typeof h.length&&h.length>=0&&"[object Array]"!==a(h)&&"[object Function]"===a(h.callee)},o=function(){return s(arguments)}();s.isLegacyArguments=E,Y.exports=o?s:E},8923:function(Y,I,n){"use strict";var c=Date.prototype.getDay,a=Object.prototype.toString,E=n(6410)();Y.exports=function(l){return"object"==typeof l&&null!==l&&(E?function(l){try{return c.call(l),!0}catch(h){return!1}}(l):"[object Date]"===a.call(l))}},8662:function(Y,I,n){"use strict";var l,c=Object.prototype.toString,r=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=n(6410)(),E=Object.getPrototypeOf;Y.exports=function(u){if("function"!=typeof u)return!1;if(a.test(r.call(u)))return!0;if(!s)return"[object GeneratorFunction]"===c.call(u);if(!E)return!1;if(void 0===l){var e=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(h){}}();l=!!e&&E(e)}return E(u)===l}},8611:function(Y){"use strict";Y.exports=function(n){return n!=n}},360:function(Y,I,n){"use strict";var c=n(5559),r=n(4289),a=n(8611),s=n(9415),E=n(6743),o=c(s(),Number);r(o,{getPolyfill:s,implementation:a,shim:E}),Y.exports=o},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),r=n(9415);Y.exports=function(){var s=r();return c(Number,{isNaN:s},{isNaN:function(){return Number.isNaN!==s}}),s}},8420:function(Y,I,n){"use strict";var a,s,E,o,c=n(1924),r=n(6410)();if(r){a=c("Object.prototype.hasOwnProperty"),s=c("RegExp.prototype.exec"),E={};var l=function(){throw E};o={toString:l,valueOf:l},"symbol"==typeof Symbol.toPrimitive&&(o[Symbol.toPrimitive]=l)}var h=c("Object.prototype.toString"),u=Object.getOwnPropertyDescriptor;Y.exports=r?function(f){if(!f||"object"!=typeof f)return!1;var g=u(f,"lastIndex");if(!g||!a(g,"value"))return!1;try{s(f,o)}catch(Q){return Q===E}}:function(f){return!(!f||"object"!=typeof f&&"function"!=typeof f)&&"[object RegExp]"===h(f)}},5692:function(Y,I,n){"use strict";var c=n(9804),r=n(3083),a=n(1924),s=a("Object.prototype.toString"),E=n(6410)(),o="undefined"==typeof globalThis?n.g:globalThis,l=r(),h=a("Array.prototype.indexOf",!0)||function(Q,d){for(var F=0;F-1}return!!e&&function(Q){var d=!1;return c(C,function(F,m){if(!d)try{d=F.call(Q)===m}catch(p){}}),d}(Q)}},4244:function(Y){"use strict";var I=function(n){return n!=n};Y.exports=function(c,r){return 0===c&&0===r?1/c==1/r:!!(c===r||I(c)&&I(r))}},609:function(Y,I,n){"use strict";var c=n(4289),r=n(5559),a=n(4244),s=n(5624),E=n(2281),o=r(s(),Object);c(o,{getPolyfill:s,implementation:a,shim:E}),Y.exports=o},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),r=n(4289);Y.exports=function(){var s=c();return r(Object,{is:s},{is:function(){return Object.is!==s}}),s}},8987:function(Y,I,n){"use strict";var c;if(!Object.keys){var r=Object.prototype.hasOwnProperty,a=Object.prototype.toString,s=n(1414),E=Object.prototype.propertyIsEnumerable,o=!E.call({toString:null},"toString"),l=E.call(function(){},"prototype"),h=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(g){var w=g.constructor;return w&&w.prototype===g},C={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},e=function(){if("undefined"==typeof window)return!1;for(var g in window)try{if(!C["$"+g]&&r.call(window,g)&&null!==window[g]&&"object"==typeof window[g])try{u(window[g])}catch(w){return!0}}catch(w){return!0}return!1}();c=function(w){var Q=null!==w&&"object"==typeof w,d="[object Function]"===a.call(w),F=s(w),m=Q&&"[object String]"===a.call(w),p=[];if(!Q&&!d&&!F)throw new TypeError("Object.keys called on a non-object");var D=l&&d;if(m&&w.length>0&&!r.call(w,0))for(var v=0;v0)for(var P=0;P=0&&"[object Function]"===I.call(c.callee)),a}},4155:function(Y){var n,c,I=Y.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(w){if(n===setTimeout)return setTimeout(w,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(w,0);try{return n(w,0)}catch(Q){try{return n.call(null,w,0)}catch(d){return n.call(this,w,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(w){n=r}try{c="function"==typeof clearTimeout?clearTimeout:a}catch(w){c=a}}();var h,o=[],l=!1,u=-1;function C(){!l||!h||(l=!1,h.length?o=h.concat(o):u=-1,o.length&&e())}function e(){if(!l){var w=s(C);l=!0;for(var Q=o.length;Q;){for(h=o,o=[];++u1)for(var d=1;d=0;--vA){var xA=this.tryEntries[vA],_=xA.completion;if("root"===xA.tryLoc)return BA("end");if(xA.tryLoc<=this.prev){var QA=r.call(xA,"catchLoc"),uA=r.call(xA,"finallyLoc");if(QA&&uA){if(this.prev=0;--BA){var vA=this.tryEntries[BA];if(vA.tryLoc<=this.prev&&r.call(vA,"finallyLoc")&&this.prev=0;--lA){var BA=this.tryEntries[lA];if(BA.finallyLoc===cA)return this.complete(BA.completion,BA.afterLoc),aA(BA),Q}},catch:function(cA){for(var lA=this.tryEntries.length-1;lA>=0;--lA){var BA=this.tryEntries[lA];if(BA.tryLoc===cA){var vA=BA.completion;if("throw"===vA.type){var xA=vA.arg;aA(BA)}return xA}}throw new Error("illegal catch attempt")},delegateYield:function(cA,lA,BA){return this.delegate={iterator:gA(cA),resultName:lA,nextLoc:BA},"next"===this.method&&(this.arg=a),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 r="";return this.global&&(r+="g"),this.ignoreCase&&(r+="i"),this.multiline&&(r+="m"),this.dotAll&&(r+="s"),this.unicode&&(r+="u"),this.sticky&&(r+="y"),r}},2847:function(Y,I,n){"use strict";var c=n(4289),r=n(5559),a=n(3697),s=n(1721),E=n(2753),o=r(a);c(o,{getPolyfill:s,implementation:a,shim:E}),Y.exports=o},1721:function(Y,I,n){"use strict";var c=n(3697),r=n(4289).supportsDescriptors,a=Object.getOwnPropertyDescriptor,s=TypeError;Y.exports=function(){if(!r)throw new s("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");if("gim"===/a/gim.flags){var o=a(RegExp.prototype,"flags");if(o&&"function"==typeof o.get&&"boolean"==typeof/a/.dotAll)return o.get}return c}},2753:function(Y,I,n){"use strict";var c=n(4289).supportsDescriptors,r=n(1721),a=Object.getOwnPropertyDescriptor,s=Object.defineProperty,E=TypeError,o=Object.getPrototypeOf,l=/a/;Y.exports=function(){if(!c||!o)throw new E("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var u=r(),C=o(l),e=a(C,"flags");return(!e||e.get!==u)&&s(C,"flags",{configurable:!0,enumerable:!1,get:u}),u}},6099:function(Y,I,n){var c=n(8823).Buffer;!function(r){r.parser=function(q,J){return new s(q,J)},r.SAXParser=s,r.SAXStream=e,r.createStream=function(q,J){return new e(q,J)},r.MAX_BUFFER_LENGTH=65536;var h,a=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function s(q,J){if(!(this instanceof s))return new s(q,J);var $=this;(function(q){for(var J=0,$=a.length;J<$;J++)q[a[J]]=""})($),$.q=$.c="",$.bufferCheckPosition=r.MAX_BUFFER_LENGTH,$.opt=J||{},$.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=N.BEGIN,$.strictEntities=$.opt.strictEntities,$.ENTITIES=Object.create($.strictEntities?r.XML_ENTITIES:r.ENTITIES),$.attribList=[],$.opt.xmlns&&($.ns=Object.create(d)),$.trackPosition=!1!==$.opt.position,$.trackPosition&&($.position=$.line=$.column=0),aA($,"onready")}r.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 J(){}return J.prototype=q,new J}),Object.keys||(Object.keys=function(q){var J=[];for(var $ in q)q.hasOwnProperty($)&&J.push($);return J}),s.prototype={end:function(){lA(this)},write:function(q){var J=this;if(this.error)throw this.error;if(J.closed)return cA(J,"Cannot write after close. Assign an onready handler.");if(null===q)return lA(J);"object"==typeof q&&(q=q.toString());for(var $=0,W="";W=GA(q,$++),J.c=W,W;)switch(J.trackPosition&&(J.position++,"\n"===W?(J.line++,J.column=0):J.column++),J.state){case N.BEGIN:if(J.state=N.BEGIN_WHITESPACE,"\ufeff"===W)continue;TA(J,W);continue;case N.BEGIN_WHITESPACE:TA(J,W);continue;case N.TEXT:if(J.sawRoot&&!J.closedRoot){for(var EA=$-1;W&&"<"!==W&&"&"!==W;)(W=GA(q,$++))&&J.trackPosition&&(J.position++,"\n"===W?(J.line++,J.column=0):J.column++);J.textNode+=q.substring(EA,$-1)}"<"!==W||J.sawRoot&&J.closedRoot&&!J.strict?(!v(W)&&(!J.sawRoot||J.closedRoot)&&BA(J,"Text data outside of root node."),"&"===W?J.state=N.TEXT_ENTITY:J.textNode+=W):(J.state=N.OPEN_WAKA,J.startTagPosition=J.position);continue;case N.SCRIPT:"<"===W?J.state=N.SCRIPT_ENDING:J.script+=W;continue;case N.SCRIPT_ENDING:"/"===W?J.state=N.CLOSE_TAG:(J.script+="<"+W,J.state=N.SCRIPT);continue;case N.OPEN_WAKA:"!"===W?(J.state=N.SGML_DECL,J.sgmlDecl=""):v(W)||(x(F,W)?(J.state=N.OPEN_TAG,J.tagName=W):"/"===W?(J.state=N.CLOSE_TAG,J.tagName=""):"?"===W?(J.state=N.PROC_INST,J.procInstName=J.procInstBody=""):(BA(J,"Unencoded <"),J.startTagPosition+1"===W?(AA(J,"onsgmldeclaration",J.sgmlDecl),J.sgmlDecl="",J.state=N.TEXT):(P(W)&&(J.state=N.SGML_DECL_QUOTED),J.sgmlDecl+=W);continue;case N.SGML_DECL_QUOTED:W===J.q&&(J.state=N.SGML_DECL,J.q=""),J.sgmlDecl+=W;continue;case N.DOCTYPE:">"===W?(J.state=N.TEXT,AA(J,"ondoctype",J.doctype),J.doctype=!0):(J.doctype+=W,"["===W?J.state=N.DOCTYPE_DTD:P(W)&&(J.state=N.DOCTYPE_QUOTED,J.q=W));continue;case N.DOCTYPE_QUOTED:J.doctype+=W,W===J.q&&(J.q="",J.state=N.DOCTYPE);continue;case N.DOCTYPE_DTD:J.doctype+=W,"]"===W?J.state=N.DOCTYPE:P(W)&&(J.state=N.DOCTYPE_DTD_QUOTED,J.q=W);continue;case N.DOCTYPE_DTD_QUOTED:J.doctype+=W,W===J.q&&(J.state=N.DOCTYPE_DTD,J.q="");continue;case N.COMMENT:"-"===W?J.state=N.COMMENT_ENDING:J.comment+=W;continue;case N.COMMENT_ENDING:"-"===W?(J.state=N.COMMENT_ENDED,J.comment=MA(J.opt,J.comment),J.comment&&AA(J,"oncomment",J.comment),J.comment=""):(J.comment+="-"+W,J.state=N.COMMENT);continue;case N.COMMENT_ENDED:">"!==W?(BA(J,"Malformed comment"),J.comment+="--"+W,J.state=N.COMMENT):J.state=N.TEXT;continue;case N.CDATA:"]"===W?J.state=N.CDATA_ENDING:J.cdata+=W;continue;case N.CDATA_ENDING:"]"===W?J.state=N.CDATA_ENDING_2:(J.cdata+="]"+W,J.state=N.CDATA);continue;case N.CDATA_ENDING_2:">"===W?(J.cdata&&AA(J,"oncdata",J.cdata),AA(J,"onclosecdata"),J.cdata="",J.state=N.TEXT):"]"===W?J.cdata+="]":(J.cdata+="]]"+W,J.state=N.CDATA);continue;case N.PROC_INST:"?"===W?J.state=N.PROC_INST_ENDING:v(W)?J.state=N.PROC_INST_BODY:J.procInstName+=W;continue;case N.PROC_INST_BODY:if(!J.procInstBody&&v(W))continue;"?"===W?J.state=N.PROC_INST_ENDING:J.procInstBody+=W;continue;case N.PROC_INST_ENDING:">"===W?(AA(J,"onprocessinginstruction",{name:J.procInstName,body:J.procInstBody}),J.procInstName=J.procInstBody="",J.state=N.TEXT):(J.procInstBody+="?"+W,J.state=N.PROC_INST_BODY);continue;case N.OPEN_TAG:x(m,W)?J.tagName+=W:(vA(J),">"===W?QA(J):"/"===W?J.state=N.OPEN_TAG_SLASH:(v(W)||BA(J,"Invalid character in tag name"),J.state=N.ATTRIB));continue;case N.OPEN_TAG_SLASH:">"===W?(QA(J,!0),uA(J)):(BA(J,"Forward-slash in opening tag not followed by >"),J.state=N.ATTRIB);continue;case N.ATTRIB:if(v(W))continue;">"===W?QA(J):"/"===W?J.state=N.OPEN_TAG_SLASH:x(F,W)?(J.attribName=W,J.attribValue="",J.state=N.ATTRIB_NAME):BA(J,"Invalid attribute name");continue;case N.ATTRIB_NAME:"="===W?J.state=N.ATTRIB_VALUE:">"===W?(BA(J,"Attribute without value"),J.attribValue=J.attribName,_(J),QA(J)):v(W)?J.state=N.ATTRIB_NAME_SAW_WHITE:x(m,W)?J.attribName+=W:BA(J,"Invalid attribute name");continue;case N.ATTRIB_NAME_SAW_WHITE:if("="===W)J.state=N.ATTRIB_VALUE;else{if(v(W))continue;BA(J,"Attribute without value"),J.tag.attributes[J.attribName]="",J.attribValue="",AA(J,"onattribute",{name:J.attribName,value:""}),J.attribName="",">"===W?QA(J):x(F,W)?(J.attribName=W,J.state=N.ATTRIB_NAME):(BA(J,"Invalid attribute name"),J.state=N.ATTRIB)}continue;case N.ATTRIB_VALUE:if(v(W))continue;P(W)?(J.q=W,J.state=N.ATTRIB_VALUE_QUOTED):(BA(J,"Unquoted attribute value"),J.state=N.ATTRIB_VALUE_UNQUOTED,J.attribValue=W);continue;case N.ATTRIB_VALUE_QUOTED:if(W!==J.q){"&"===W?J.state=N.ATTRIB_VALUE_ENTITY_Q:J.attribValue+=W;continue}_(J),J.q="",J.state=N.ATTRIB_VALUE_CLOSED;continue;case N.ATTRIB_VALUE_CLOSED:v(W)?J.state=N.ATTRIB:">"===W?QA(J):"/"===W?J.state=N.OPEN_TAG_SLASH:x(F,W)?(BA(J,"No whitespace between attributes"),J.attribName=W,J.attribValue="",J.state=N.ATTRIB_NAME):BA(J,"Invalid attribute name");continue;case N.ATTRIB_VALUE_UNQUOTED:if(!T(W)){"&"===W?J.state=N.ATTRIB_VALUE_ENTITY_U:J.attribValue+=W;continue}_(J),">"===W?QA(J):J.state=N.ATTRIB;continue;case N.CLOSE_TAG:if(J.tagName)">"===W?uA(J):x(m,W)?J.tagName+=W:J.script?(J.script+=""===W?uA(J):BA(J,"Invalid characters in closing tag");continue;case N.TEXT_ENTITY:case N.ATTRIB_VALUE_ENTITY_Q:case N.ATTRIB_VALUE_ENTITY_U:var rA,hA;switch(J.state){case N.TEXT_ENTITY:rA=N.TEXT,hA="textNode";break;case N.ATTRIB_VALUE_ENTITY_Q:rA=N.ATTRIB_VALUE_QUOTED,hA="attribValue";break;case N.ATTRIB_VALUE_ENTITY_U:rA=N.ATTRIB_VALUE_UNQUOTED,hA="attribValue"}";"===W?(J[hA]+=CA(J),J.entity="",J.state=rA):x(J.entity.length?D:p,W)?J.entity+=W:(BA(J,"Invalid character in entity name"),J[hA]+="&"+J.entity+W,J.entity="",J.state=rA);continue;default:throw new Error(J,"Unknown state: "+J.state)}return J.position>=J.bufferCheckPosition&&function(q){for(var J=Math.max(r.MAX_BUFFER_LENGTH,10),$=0,W=0,EA=a.length;WJ)switch(a[W]){case"textNode":gA(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: "+a[W])}$=Math.max($,DA)}q.bufferCheckPosition=r.MAX_BUFFER_LENGTH-$+q.position}(J),J},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){!function(q){gA(q),""!==q.cdata&&(AA(q,"oncdata",q.cdata),q.cdata=""),""!==q.script&&(AA(q,"onscript",q.script),q.script="")}(this)}};try{h=n(2830).Stream}catch(q){h=function(){}}var u=r.EVENTS.filter(function(q){return"error"!==q&&"end"!==q});function e(q,J){if(!(this instanceof e))return new e(q,J);h.apply(this),this._parser=new s(q,J),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(EA){if(!EA)return $.removeAllListeners(W),$._parser["on"+W]=EA,EA;$.on(W,EA)},enumerable:!0,configurable:!1})})}(e.prototype=Object.create(h.prototype,{constructor:{value:e}})).write=function(q){if("function"==typeof c&&"function"==typeof c.isBuffer&&c.isBuffer(q)){if(!this._decoder){var J=n(2553).s;this._decoder=new J("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,J){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)}),h.prototype.on.call($,q,J)};var w="http://www.w3.org/XML/1998/namespace",Q="http://www.w3.org/2000/xmlns/",d={xml:w,xmlns:Q},F=/[:_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-]/,p=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,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\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function v(q){return" "===q||"\n"===q||"\r"===q||"\t"===q}function P(q){return'"'===q||"'"===q}function T(q){return">"===q||v(q)}function x(q,J){return q.test(J)}function R(q,J){return!x(q,J)}var q,J,$,N=0;for(var V in r.STATE={BEGIN:N++,BEGIN_WHITESPACE:N++,TEXT:N++,TEXT_ENTITY:N++,OPEN_WAKA:N++,SGML_DECL:N++,SGML_DECL_QUOTED:N++,DOCTYPE:N++,DOCTYPE_QUOTED:N++,DOCTYPE_DTD:N++,DOCTYPE_DTD_QUOTED:N++,COMMENT_STARTING:N++,COMMENT:N++,COMMENT_ENDING:N++,COMMENT_ENDED:N++,CDATA:N++,CDATA_ENDING:N++,CDATA_ENDING_2:N++,PROC_INST:N++,PROC_INST_BODY:N++,PROC_INST_ENDING:N++,OPEN_TAG:N++,OPEN_TAG_SLASH:N++,ATTRIB:N++,ATTRIB_NAME:N++,ATTRIB_NAME_SAW_WHITE:N++,ATTRIB_VALUE:N++,ATTRIB_VALUE_QUOTED:N++,ATTRIB_VALUE_CLOSED:N++,ATTRIB_VALUE_UNQUOTED:N++,ATTRIB_VALUE_ENTITY_Q:N++,ATTRIB_VALUE_ENTITY_U:N++,CLOSE_TAG:N++,CLOSE_TAG_SAW_WHITE:N++,SCRIPT:N++,SCRIPT_ENDING:N++},r.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},r.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(r.ENTITIES).forEach(function(q){var J=r.ENTITIES[q],$="number"==typeof J?String.fromCharCode(J):J;r.ENTITIES[q]=$}),r.STATE)r.STATE[r.STATE[V]]=V;function aA(q,J,$){q[J]&&q[J]($)}function AA(q,J,$){q.textNode&&gA(q),aA(q,J,$)}function gA(q){q.textNode=MA(q.opt,q.textNode),q.textNode&&aA(q,"ontext",q.textNode),q.textNode=""}function MA(q,J){return q.trim&&(J=J.trim()),q.normalize&&(J=J.replace(/\s+/g," ")),J}function cA(q,J){return gA(q),q.trackPosition&&(J+="\nLine: "+q.line+"\nColumn: "+q.column+"\nChar: "+q.c),J=new Error(J),q.error=J,aA(q,"onerror",J),q}function lA(q){return q.sawRoot&&!q.closedRoot&&BA(q,"Unclosed root tag"),q.state!==N.BEGIN&&q.state!==N.BEGIN_WHITESPACE&&q.state!==N.TEXT&&cA(q,"Unexpected end"),gA(q),q.c="",q.closed=!0,aA(q,"onend"),s.call(q,q.strict,q.opt),q}function BA(q,J){if("object"!=typeof q||!(q instanceof s))throw new Error("bad call to strictFail");q.strict&&cA(q,J)}function vA(q){q.strict||(q.tagName=q.tagName[q.looseCase]());var J=q.tags[q.tags.length-1]||q,$=q.tag={name:q.tagName,attributes:{}};q.opt.xmlns&&($.ns=J.ns),q.attribList.length=0,AA(q,"onopentagstart",$)}function xA(q,J){var W=q.indexOf(":")<0?["",q]:q.split(":"),EA=W[0],DA=W[1];return J&&"xmlns"===q&&(EA="xmlns",DA=""),{prefix:EA,local:DA}}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 J=xA(q.attribName,!0),W=J.local;if("xmlns"===J.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 EA=q.tag,DA=q.tags[q.tags.length-1]||q;EA.ns===DA.ns&&(EA.ns=Object.create(DA.ns)),EA.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 QA(q,J){if(q.opt.xmlns){var $=q.tag,W=xA(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(SA){AA(q,"onopennamespace",{prefix:SA,uri:$.ns[SA]})});for(var DA=0,rA=q.attribList.length;DA",q.tagName="",void(q.state=N.SCRIPT);AA(q,"onscript",q.script),q.script=""}var J=q.tags.length,$=q.tagName;q.strict||($=$[q.looseCase]());for(var W=$;J--&&q.tags[J].name!==W;)BA(q,"Unexpected close tag");if(J<0)return BA(q,"Unmatched closing tag: "+q.tagName),q.textNode+="",void(q.state=N.TEXT);q.tagName=$;for(var DA=q.tags.length;DA-- >J;){var rA=q.tag=q.tags.pop();q.tagName=q.tag.name,AA(q,"onclosetag",q.tagName);var hA={};for(var HA in rA.ns)hA[HA]=rA.ns[HA];q.opt.xmlns&&rA.ns!==(q.tags[q.tags.length-1]||q).ns&&Object.keys(rA.ns).forEach(function(st){AA(q,"onclosenamespace",{prefix:st,uri:rA.ns[st]})})}0===J&&(q.closedRoot=!0),q.tagName=q.attribValue=q.attribName="",q.attribList.length=0,q.state=N.TEXT}function CA(q){var W,J=q.entity,$=J.toLowerCase(),EA="";return q.ENTITIES[J]?q.ENTITIES[J]:q.ENTITIES[$]?q.ENTITIES[$]:("#"===(J=$).charAt(0)&&("x"===J.charAt(1)?(J=J.slice(2),EA=(W=parseInt(J,16)).toString(16)):(J=J.slice(1),EA=(W=parseInt(J,10)).toString(10))),J=J.replace(/^0+/,""),isNaN(W)||EA.toLowerCase()!==J?(BA(q,"Invalid character entity"),"&"+q.entity+";"):String.fromCodePoint(W))}function TA(q,J){"<"===J?(q.state=N.OPEN_WAKA,q.startTagPosition=q.position):v(J)||(BA(q,"Non-whitespace before first tag."),q.textNode=J,q.state=N.TEXT)}function GA(q,J){var $="";return J1114111||J(st)!==st)throw RangeError("Invalid code point: "+st);st<=65535?EA.push(st):EA.push(55296+((st-=65536)>>10),st%1024+56320),(hA+1===HA||EA.length>W)&&(nt+=q.apply(null,EA),EA.length=0)}return nt},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:$,configurable:!0,writable:!0}):String.fromCodePoint=$)}(I)},2830:function(Y,I,n){Y.exports=a;var c=n(7187).EventEmitter;function a(){c.call(this)}n(5717)(a,c),a.Readable=n(6577),a.Writable=n(323),a.Duplex=n(8656),a.Transform=n(4473),a.PassThrough=n(2366),a.finished=n(1086),a.pipeline=n(6472),a.Stream=a,a.prototype.pipe=function(s,E){var o=this;function l(w){s.writable&&!1===s.write(w)&&o.pause&&o.pause()}function h(){o.readable&&o.resume&&o.resume()}o.on("data",l),s.on("drain",h),!s._isStdio&&(!E||!1!==E.end)&&(o.on("end",C),o.on("close",e));var u=!1;function C(){u||(u=!0,s.end())}function e(){u||(u=!0,"function"==typeof s.destroy&&s.destroy())}function f(w){if(g(),0===c.listenerCount(this,"error"))throw w}function g(){o.removeListener("data",l),s.removeListener("drain",h),o.removeListener("end",C),o.removeListener("close",e),o.removeListener("error",f),s.removeListener("error",f),o.removeListener("end",g),o.removeListener("close",g),s.removeListener("close",g)}return o.on("error",f),s.on("error",f),o.on("end",g),o.on("close",g),s.on("close",g),s.emit("pipe",o),s}},8106:function(Y){"use strict";var n={};function c(o,l,h){h||(h=Error);var C=function(e){function f(g,w,Q){return e.call(this,function(e,f,g){return"string"==typeof l?l:l(e,f,g)}(g,w,Q))||this}return function(o,l){o.prototype=Object.create(l.prototype),o.prototype.constructor=o,o.__proto__=l}(f,e),f}(h);C.prototype.name=h.name,C.prototype.code=o,n[o]=C}function r(o,l){if(Array.isArray(o)){var h=o.length;return o=o.map(function(u){return String(u)}),h>2?"one of ".concat(l," ").concat(o.slice(0,h-1).join(", "),", or ")+o[h-1]:2===h?"one of ".concat(l," ").concat(o[0]," or ").concat(o[1]):"of ".concat(l," ").concat(o[0])}return"of ".concat(l," ").concat(String(o))}c("ERR_INVALID_OPT_VALUE",function(o,l){return'The value "'+l+'" is invalid for option "'+o+'"'},TypeError),c("ERR_INVALID_ARG_TYPE",function(o,l,h){var u,C;if("string"==typeof l&&function(o,l,h){return o.substr(!h||h<0?0:+h,l.length)===l}(l,"not ")?(u="must not be",l=l.replace(/^not /,"")):u="must be",function(o,l,h){return(void 0===h||h>o.length)&&(h=o.length),o.substring(h-l.length,h)===l}(o," argument"))C="The ".concat(o," ").concat(u," ").concat(r(l,"type"));else{var e=function(o,l,h){return"number"!=typeof h&&(h=0),!(h+l.length>o.length)&&-1!==o.indexOf(l,h)}(o,".")?"property":"argument";C='The "'.concat(o,'" ').concat(e," ").concat(u," ").concat(r(l,"type"))}return C+". Received type ".concat(typeof h)},TypeError),c("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),c("ERR_METHOD_NOT_IMPLEMENTED",function(o){return"The "+o+" method is not implemented"}),c("ERR_STREAM_PREMATURE_CLOSE","Premature close"),c("ERR_STREAM_DESTROYED",function(o){return"Cannot call "+o+" 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(o){return"Unknown encoding: "+o},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),r=Object.keys||function(e){var f=[];for(var g in e)f.push(g);return f};Y.exports=h;var a=n(6577),s=n(323);n(5717)(h,a);for(var E=r(s.prototype),o=0;o0)if("string"!=typeof hA&&!yA.objectMode&&Object.getPrototypeOf(hA)!==o.prototype&&(hA=function(rA){return o.from(rA)}(hA)),nt)yA.endEmitted?x(rA,new D):gA(rA,yA,hA,!0);else if(yA.ended)x(rA,new m);else{if(yA.destroyed)return!1;yA.reading=!1,yA.decoder&&!HA?(hA=yA.decoder.write(hA),yA.objectMode||0!==hA.length?gA(rA,yA,hA,!1):QA(rA,yA)):gA(rA,yA,hA,!1)}else nt||(yA.reading=!1,QA(rA,yA));return!yA.ended&&(yA.lengthhA.highWaterMark&&(hA.highWaterMark=function(rA){return rA>=cA?rA=cA:(rA--,rA|=rA>>>1,rA|=rA>>>2,rA|=rA>>>4,rA|=rA>>>8,rA|=rA>>>16,rA++),rA}(rA)),rA<=hA.length?rA:hA.ended?hA.length:(hA.needReadable=!0,0))}function xA(rA){var hA=rA._readableState;e("emitReadable",hA.needReadable,hA.emittedReadable),hA.needReadable=!1,hA.emittedReadable||(e("emitReadable",hA.flowing),hA.emittedReadable=!0,c.nextTick(_,rA))}function _(rA){var hA=rA._readableState;e("emitReadable_",hA.destroyed,hA.length,hA.ended),!hA.destroyed&&(hA.length||hA.ended)&&(rA.emit("readable"),hA.emittedReadable=!1),hA.needReadable=!hA.flowing&&!hA.ended&&hA.length<=hA.highWaterMark,J(rA)}function QA(rA,hA){hA.readingMore||(hA.readingMore=!0,c.nextTick(uA,rA,hA))}function uA(rA,hA){for(;!hA.reading&&!hA.ended&&(hA.length0,hA.resumeScheduled&&!hA.paused?hA.flowing=!0:rA.listenerCount("data")>0&&rA.resume()}function GA(rA){e("readable nexttick read 0"),rA.read(0)}function q(rA,hA){e("resume",hA.reading),hA.reading||rA.read(0),hA.resumeScheduled=!1,rA.emit("resume"),J(rA),hA.flowing&&!hA.reading&&rA.read(0)}function J(rA){var hA=rA._readableState;for(e("flow",hA.flowing);hA.flowing&&null!==rA.read(););}function $(rA,hA){return 0===hA.length?null:(hA.objectMode?HA=hA.buffer.shift():!rA||rA>=hA.length?(HA=hA.decoder?hA.buffer.join(""):1===hA.buffer.length?hA.buffer.first():hA.buffer.concat(hA.length),hA.buffer.clear()):HA=hA.buffer.consume(rA,hA.decoder),HA);var HA}function W(rA){var hA=rA._readableState;e("endReadable",hA.endEmitted),hA.endEmitted||(hA.ended=!0,c.nextTick(EA,hA,rA))}function EA(rA,hA){if(e("endReadableNT",rA.endEmitted,rA.length),!rA.endEmitted&&0===rA.length&&(rA.endEmitted=!0,hA.readable=!1,hA.emit("end"),rA.autoDestroy)){var HA=hA._writableState;(!HA||HA.autoDestroy&&HA.finished)&&hA.destroy()}}function DA(rA,hA){for(var HA=0,nt=rA.length;HA=hA.highWaterMark:hA.length>0)||hA.ended))return e("read: emitReadable",hA.length,hA.ended),0===hA.length&&hA.ended?W(this):xA(this),null;if(0===(rA=BA(rA,hA))&&hA.ended)return 0===hA.length&&W(this),null;var st,nt=hA.needReadable;return e("need readable",nt),(0===hA.length||hA.length-rA0?$(rA,hA):null)?(hA.needReadable=hA.length<=hA.highWaterMark,rA=0):(hA.length-=rA,hA.awaitDrain=0),0===hA.length&&(hA.ended||(hA.needReadable=!0),HA!==rA&&hA.ended&&W(this)),null!==st&&this.emit("data",st),st},aA.prototype._read=function(rA){x(this,new p("_read()"))},aA.prototype.pipe=function(rA,hA){var HA=this,nt=this._readableState;switch(nt.pipesCount){case 0:nt.pipes=rA;break;case 1:nt.pipes=[nt.pipes,rA];break;default:nt.pipes.push(rA)}nt.pipesCount+=1,e("pipe count=%d opts=%j",nt.pipesCount,hA);var yA=hA&&!1===hA.end||rA===c.stdout||rA===c.stderr?dt:ft;function _A(vt,Pt){e("onunpipe"),vt===HA&&Pt&&!1===Pt.hasUnpiped&&(Pt.hasUnpiped=!0,e("cleanup"),rA.removeListener("close",ot),rA.removeListener("finish",It),rA.removeListener("drain",lt),rA.removeListener("error",zA),rA.removeListener("unpipe",_A),HA.removeListener("end",ft),HA.removeListener("end",dt),HA.removeListener("data",WA),SA=!0,nt.awaitDrain&&(!rA._writableState||rA._writableState.needDrain)&<())}function ft(){e("onend"),rA.end()}nt.endEmitted?c.nextTick(yA):HA.once("end",yA),rA.on("unpipe",_A);var lt=function(rA){return function(){var HA=rA._readableState;e("pipeOnDrain",HA.awaitDrain),HA.awaitDrain&&HA.awaitDrain--,0===HA.awaitDrain&&s(rA,"data")&&(HA.flowing=!0,J(rA))}}(HA);rA.on("drain",lt);var SA=!1;function WA(vt){e("ondata");var Pt=rA.write(vt);e("dest.write",Pt),!1===Pt&&((1===nt.pipesCount&&nt.pipes===rA||nt.pipesCount>1&&-1!==DA(nt.pipes,rA))&&!SA&&(e("false write response, pause",nt.awaitDrain),nt.awaitDrain++),HA.pause())}function zA(vt){e("onerror",vt),dt(),rA.removeListener("error",zA),0===s(rA,"error")&&x(rA,vt)}function ot(){rA.removeListener("finish",It),dt()}function It(){e("onfinish"),rA.removeListener("close",ot),dt()}function dt(){e("unpipe"),HA.unpipe(rA)}return HA.on("data",WA),function(rA,hA,HA){if("function"==typeof rA.prependListener)return rA.prependListener(hA,HA);rA._events&&rA._events[hA]?Array.isArray(rA._events[hA])?rA._events[hA].unshift(HA):rA._events[hA]=[HA,rA._events[hA]]:rA.on(hA,HA)}(rA,"error",zA),rA.once("close",ot),rA.once("finish",It),rA.emit("pipe",HA),nt.flowing||(e("pipe resume"),HA.resume()),rA},aA.prototype.unpipe=function(rA){var hA=this._readableState,HA={hasUnpiped:!1};if(0===hA.pipesCount)return this;if(1===hA.pipesCount)return rA&&rA!==hA.pipes||(rA||(rA=hA.pipes),hA.pipes=null,hA.pipesCount=0,hA.flowing=!1,rA&&rA.emit("unpipe",this,HA)),this;if(!rA){var nt=hA.pipes,st=hA.pipesCount;hA.pipes=null,hA.pipesCount=0,hA.flowing=!1;for(var yA=0;yA0,!1!==nt.flowing&&this.resume()):"readable"===rA&&!nt.endEmitted&&!nt.readableListening&&(nt.readableListening=nt.needReadable=!0,nt.flowing=!1,nt.emittedReadable=!1,e("on readable",nt.length,nt.reading),nt.length?xA(this):nt.reading||c.nextTick(GA,this)),HA},aA.prototype.removeListener=function(rA,hA){var HA=E.prototype.removeListener.call(this,rA,hA);return"readable"===rA&&c.nextTick(TA,this),HA},aA.prototype.removeAllListeners=function(rA){var hA=E.prototype.removeAllListeners.apply(this,arguments);return("readable"===rA||void 0===rA)&&c.nextTick(TA,this),hA},aA.prototype.resume=function(){var rA=this._readableState;return rA.flowing||(e("resume"),rA.flowing=!rA.readableListening,function(rA,hA){hA.resumeScheduled||(hA.resumeScheduled=!0,c.nextTick(q,rA,hA))}(this,rA)),rA.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(rA){var hA=this,HA=this._readableState,nt=!1;for(var st in rA.on("end",function(){if(e("wrapped end"),HA.decoder&&!HA.ended){var _A=HA.decoder.end();_A&&_A.length&&hA.push(_A)}hA.push(null)}),rA.on("data",function(_A){e("wrapped data"),HA.decoder&&(_A=HA.decoder.write(_A)),HA.objectMode&&null==_A||!(HA.objectMode||_A&&_A.length)||hA.push(_A)||(nt=!0,rA.pause())}),rA)void 0===this[st]&&"function"==typeof rA[st]&&(this[st]=function(ft){return function(){return rA[ft].apply(rA,arguments)}}(st));for(var yA=0;yA-1))throw new P($);return this._writableState.defaultEncoding=$,this},Object.defineProperty(V.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(V.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),V.prototype._write=function(J,$,W){W(new d("_write()"))},V.prototype._writev=null,V.prototype.end=function(J,$,W){var EA=this._writableState;return"function"==typeof J?(W=J,J=null,$=null):"function"==typeof $&&(W=$,$=null),null!=J&&this.write(J,$),EA.corked&&(EA.corked=1,this.uncork()),EA.ending||function(J,$,W){$.ending=!0,GA(J,$),W&&($.finished?c.nextTick(W):J.once("finish",W)),$.ended=!0,J.writable=!1}(this,EA,W),this},Object.defineProperty(V.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function($){!this._writableState||(this._writableState.destroyed=$)}}),V.prototype.destroy=e.destroy,V.prototype._undestroy=e.undestroy,V.prototype._destroy=function(J,$){$(J)}},828:function(Y,I,n){"use strict";var r,c=n(4155);function a(p,D,v){return D in p?Object.defineProperty(p,D,{value:v,enumerable:!0,configurable:!0,writable:!0}):p[D]=v,p}var s=n(1086),E=Symbol("lastResolve"),o=Symbol("lastReject"),l=Symbol("error"),h=Symbol("ended"),u=Symbol("lastPromise"),C=Symbol("handlePromise"),e=Symbol("stream");function f(p,D){return{value:p,done:D}}function g(p){var D=p[E];if(null!==D){var v=p[e].read();null!==v&&(p[u]=null,p[E]=null,p[o]=null,D(f(v,!1)))}}function w(p){c.nextTick(g,p)}var d=Object.getPrototypeOf(function(){}),F=Object.setPrototypeOf((a(r={get stream(){return this[e]},next:function(){var D=this,v=this[l];if(null!==v)return Promise.reject(v);if(this[h])return Promise.resolve(f(void 0,!0));if(this[e].destroyed)return new Promise(function(R,N){c.nextTick(function(){D[l]?N(D[l]):R(f(void 0,!0))})});var T,P=this[u];if(P)T=new Promise(function(p,D){return function(v,P){p.then(function(){D[h]?v(f(void 0,!0)):D[C](v,P)},P)}}(P,this));else{var x=this[e].read();if(null!==x)return Promise.resolve(f(x,!1));T=new Promise(this[C])}return this[u]=T,T}},Symbol.asyncIterator,function(){return this}),a(r,"return",function(){var D=this;return new Promise(function(v,P){D[e].destroy(null,function(T){T?P(T):v(f(void 0,!0))})})}),r),d);Y.exports=function(D){var v,P=Object.create(F,(a(v={},e,{value:D,writable:!0}),a(v,E,{value:null,writable:!0}),a(v,o,{value:null,writable:!0}),a(v,l,{value:null,writable:!0}),a(v,h,{value:D._readableState.endEmitted,writable:!0}),a(v,C,{value:function(x,R){var N=P[e].read();N?(P[u]=null,P[E]=null,P[o]=null,x(f(N,!1))):(P[E]=x,P[o]=R)},writable:!0}),v));return P[u]=null,s(D,function(T){if(T&&"ERR_STREAM_PREMATURE_CLOSE"!==T.code){var x=P[o];return null!==x&&(P[u]=null,P[E]=null,P[o]=null,x(T)),void(P[l]=T)}var R=P[E];null!==R&&(P[u]=null,P[E]=null,P[o]=null,R(f(void 0,!0))),P[h]=!0}),D.on("readable",w.bind(null,P)),P}},1029:function(Y,I,n){"use strict";var c=n(4155);function a(h,u){o(h,u),s(h)}function s(h){h._writableState&&!h._writableState.emitClose||h._readableState&&!h._readableState.emitClose||h.emit("close")}function o(h,u){h.emit("error",u)}Y.exports={destroy:function(h,u){var C=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(u?u(h):h&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,c.nextTick(o,this,h)):c.nextTick(o,this,h)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(h||null,function(g){!u&&g?C._writableState?C._writableState.errorEmitted?c.nextTick(s,C):(C._writableState.errorEmitted=!0,c.nextTick(a,C,g)):c.nextTick(a,C,g):u?(c.nextTick(s,C),u(g)):c.nextTick(s,C)}),this)},undestroy:function(){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(h,u){var C=h._readableState,e=h._writableState;C&&C.autoDestroy||e&&e.autoDestroy?h.destroy(u):h.emit("error",u)}}},1086:function(Y,I,n){"use strict";var c=n(8106).q.ERR_STREAM_PREMATURE_CLOSE;function a(){}Y.exports=function E(o,l,h){if("function"==typeof l)return E(o,null,l);l||(l={}),h=function(o){var l=!1;return function(){if(!l){l=!0;for(var h=arguments.length,u=new Array(h),C=0;C0,function(T){F||(F=T),T&&m.forEach(u),!v&&(m.forEach(u),d(F))})});return w.reduce(C)}},94:function(Y,I,n){"use strict";var c=n(8106).q.ERR_INVALID_OPT_VALUE;Y.exports={getHighWaterMark:function(s,E,o,l){var h=function(s,E,o){return null!=s.highWaterMark?s.highWaterMark:E?s[o]:null}(E,l,o);if(null!=h){if(!isFinite(h)||Math.floor(h)!==h||h<0)throw new c(l?o:"highWaterMark",h);return Math.floor(h)}return s.objectMode?16:16384}}},3194:function(Y,I,n){Y.exports=n(7187).EventEmitter},4896:function(Y,I,n){var c,a;void 0!==(a="function"==typeof(c=function(){"use strict";function E(e,f,g){var w=new XMLHttpRequest;w.open("GET",e),w.responseType="blob",w.onload=function(){C(w.response,f,g)},w.onerror=function(){console.error("could not download file")},w.send()}function o(e){var f=new XMLHttpRequest;f.open("HEAD",e,!1);try{f.send()}catch(g){}return 200<=f.status&&299>=f.status}function l(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(g){var f=document.createEvent("MouseEvents");f.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(f)}}var h="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=h.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),C=h.saveAs||("object"!=typeof window||window!==h?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!u?function(e,f,g){var w=h.URL||h.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?l(Q):o(Q.href)?E(e,f,g):l(Q,Q.target="_blank")):(Q.href=w.createObjectURL(e),setTimeout(function(){w.revokeObjectURL(Q.href)},4e4),setTimeout(function(){l(Q)},0))}:"msSaveOrOpenBlob"in navigator?function(e,f,g){if(f=f||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,f){return void 0===f?f={autoBom:!1}:"object"!=typeof f&&(console.warn("Deprecated: Expected third argument to be a object"),f={autoBom:!f}),f.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,g),f);else if(o(e))E(e,f,g);else{var w=document.createElement("a");w.href=e,w.target="_blank",setTimeout(function(){l(w)})}}:function(e,f,g,w){if((w=w||open("","_blank"))&&(w.document.title=w.document.body.innerText="downloading..."),"string"==typeof e)return E(e,f,g);var Q="application/octet-stream"===e.type,d=/constructor/i.test(h.HTMLElement)||h.safari,F=/CriOS\/[\d]+/.test(navigator.userAgent);if((F||Q&&d||u)&&"undefined"!=typeof FileReader){var m=new FileReader;m.onloadend=function(){var v=m.result;v=F?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),w?w.location.href=v:location=v,w=null},m.readAsDataURL(e)}else{var p=h.URL||h.webkitURL,D=p.createObjectURL(e);w?w.location=D:location.href=D,w=null,setTimeout(function(){p.revokeObjectURL(D)},4e4)}});h.saveAs=C.saveAs=C,Y.exports=C})?c.apply(I,[]):c)&&(Y.exports=a)},2553:function(Y,I,n){"use strict";var c=n(1750).Buffer,r=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 E(m){var p;switch(this.encoding=function(m){var p=function(m){if(!m)return"utf8";for(var p;;)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(p)return;m=(""+m).toLowerCase(),p=!0}}(m);if("string"!=typeof p&&(c.isEncoding===r||!r(m)))throw new Error("Unknown encoding: "+m);return p||m}(m),this.encoding){case"utf16le":this.text=f,this.end=g,p=4;break;case"utf8":this.fillLast=u,p=4;break;case"base64":this.text=w,this.end=Q,p=3;break;default:return this.write=d,void(this.end=F)}this.lastNeed=0,this.lastTotal=0,this.lastChar=c.allocUnsafe(p)}function o(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 p=this.lastTotal-this.lastNeed,D=function(m,p,D){if(128!=(192&p[0]))return m.lastNeed=0,"\ufffd";if(m.lastNeed>1&&p.length>1){if(128!=(192&p[1]))return m.lastNeed=1,"\ufffd";if(m.lastNeed>2&&p.length>2&&128!=(192&p[2]))return m.lastNeed=2,"\ufffd"}}(this,m);return void 0!==D?D:this.lastNeed<=m.length?(m.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(m.copy(this.lastChar,p,0,m.length),void(this.lastNeed-=m.length))}function f(m,p){if((m.length-p)%2==0){var D=m.toString("utf16le",p);if(D){var v=D.charCodeAt(D.length-1);if(v>=55296&&v<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1],D.slice(0,-1)}return D}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=m[m.length-1],m.toString("utf16le",p,m.length-1)}function g(m){var p=m&&m.length?this.write(m):"";return this.lastNeed?p+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):p}function w(m,p){var D=(m.length-p)%3;return 0===D?m.toString("base64",p):(this.lastNeed=3-D,this.lastTotal=3,1===D?this.lastChar[0]=m[m.length-1]:(this.lastChar[0]=m[m.length-2],this.lastChar[1]=m[m.length-1]),m.toString("base64",p,m.length-D))}function Q(m){var p=m&&m.length?this.write(m):"";return this.lastNeed?p+this.lastChar.toString("base64",0,3-this.lastNeed):p}function d(m){return m.toString(this.encoding)}function F(m){return m&&m.length?this.write(m):""}I.s=E,E.prototype.write=function(m){if(0===m.length)return"";var p,D;if(this.lastNeed){if(void 0===(p=this.fillLast(m)))return"";D=this.lastNeed,this.lastNeed=0}else D=0;return D=0?(P>0&&(m.lastNeed=P-1),P):--v=0?(P>0&&(m.lastNeed=P-2),P):--v=0?(P>0&&(2===P?P=0:m.lastNeed=P-3),P):0}(this,m,p);if(!this.lastNeed)return m.toString("utf8",p);this.lastTotal=D;var v=m.length-(D-this.lastNeed);return m.copy(this.lastChar,0,v),m.toString("utf8",p,v)},E.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 r(T,x){this.source=T,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=x,this.destLen=0,this.ltree=new c,this.dtree=new c}var a=new c,s=new c,E=new Uint8Array(30),o=new Uint16Array(30),l=new Uint8Array(30),h=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,x,R,N){var V,aA;for(V=0;V>>=1,x}function F(T,x,R){if(!x)return R;for(;T.bitcount<24;)T.tag|=T.source[T.sourceIndex++]<>>16-x;return T.tag>>>=x,T.bitcount-=x,N+R}function m(T,x){for(;T.bitcount<24;)T.tag|=T.source[T.sourceIndex++]<>>=1,++V,R+=x.table[V],N-=x.table[V]}while(N>=0);return T.tag=aA,T.bitcount-=V,x.trans[R+N]}function p(T,x,R){var N,V,aA,AA,gA,MA;for(N=F(T,5,257),V=F(T,5,1),aA=F(T,4,4),AA=0;AA<19;++AA)e[AA]=0;for(AA=0;AA8;)T.sourceIndex--,T.bitcount-=8;if((x=256*(x=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,N=x;N;--N)T.dest[T.destLen++]=T.source[T.sourceIndex++];return T.bitcount=0,0}(function(T,x){var R;for(R=0;R<7;++R)T.table[R]=0;for(T.table[7]=24,T.table[8]=152,T.table[9]=112,R=0;R<24;++R)T.trans[R]=256+R;for(R=0;R<144;++R)T.trans[24+R]=R;for(R=0;R<8;++R)T.trans[168+R]=280+R;for(R=0;R<112;++R)T.trans[176+R]=144+R;for(R=0;R<5;++R)x.table[R]=0;for(x.table[5]=32,R=0;R<32;++R)x.trans[R]=R})(a,s),f(E,o,4,3),f(l,h,2,1),E[28]=0,o[28]=258,Y.exports=function(T,x){var N,aA,R=new r(T,x);do{switch(N=d(R),F(R,2,0)){case 0:aA=v(R);break;case 1:aA=D(R,a,s);break;case 2:p(R,R.ltree,R.dtree),aA=D(R,R.ltree,R.dtree);break;default:aA=-3}if(0!==aA)throw new Error("Data error")}while(!N);return R.destLen=nA.length?{done:!0}:{done:!1,value:nA[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(nA,b){(null==b||b>nA.length)&&(b=nA.length);for(var K=0,M=new Array(b);K0?iA[0]:"value";if(tA.has(kA))return tA.get(kA);var gt=y.apply(this,iA);return tA.set(kA,gt),gt}return Object.defineProperty(this,b,{value:oA}),oA}}}}v.registerFormat=function(nA){P.push(nA)},v.openSync=function(nA,b){var K=D.readFileSync(nA);return v.create(K,b)},v.open=function(nA,b,K){"function"==typeof b&&(K=b,b=null),D.readFile(nA,function(M,y){if(M)return K(M);try{var z=v.create(y,b)}catch(tA){return K(tA)}return K(null,z)})},v.create=function(nA,b){for(var K=0;K>1},searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16,endCode:new e.LazyArray(e.uint16,"segCount"),reservedPad:new e.Reserved(e.uint16),startCode:new e.LazyArray(e.uint16,"segCount"),idDelta:new e.LazyArray(e.int16,"segCount"),idRangeOffset:new e.LazyArray(e.uint16,"segCount"),glyphIndexArray:new e.LazyArray(e.uint16,function(nA){return(nA.length-nA._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(V,"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(V,"nGroups")},13:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint32,nGroups:e.uint32,groups:new e.LazyArray(V,"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,lA,{type:"parent",lazy:!0})}),vA=new e.Struct({version:e.uint16,numSubtables:e.uint16,tables:new e.Array(BA,"numSubtables")}),xA=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}),QA=new e.Struct({advance:e.uint16,bearing:e.int16}),uA=new e.Struct({metrics:new e.LazyArray(QA,function(nA){return nA.parent.hhea.numberOfMetrics}),bearings:new e.LazyArray(e.int16,function(nA){return nA.parent.maxp.numGlyphs-nA.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 TA(nA,b,K){return void 0===K&&(K=0),1===nA&&VA[K]?VA[K]:GA[nA][b]}var GA=[["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"]],VA={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"}],J=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(nA){return TA(nA.platformID,nA.encodingID,nA.languageID)}),{type:"parent",relativeTo:function(b){return b.parent.stringOffset},allowNull:!1})}),$=new e.Struct({length:e.uint16,tag:new e.Pointer(e.uint16,new e.String("length","utf16be"),{type:"parent",relativeTo:function(b){return b.stringOffset}})}),W=new e.VersionedStruct(e.uint16,{0:{count:e.uint16,stringOffset:e.uint16,records:new e.Array(J,"count")},1:{count:e.uint16,stringOffset:e.uint16,records:new e.Array(J,"count"),langTagCount:e.uint16,langTags:new e.Array($,"langTagCount")}}),EA=["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(nA){for(var M,b={},K=l(this.records);!(M=K()).done;){var y=M.value,z=q[y.platformID][y.languageID];null==z&&null!=this.langTags&&y.languageID>=32768&&(z=this.langTags[y.languageID-32768].tag),null==z&&(z=y.platformID+"-"+y.languageID);var tA=y.nameID>=256?"fontFeatures":EA[y.nameID]||y.nameID;null==b[tA]&&(b[tA]={});var oA=b[tA];y.nameID>=256&&(oA=oA[y.nameID]||(oA[y.nameID]={})),("string"==typeof y.string||"string"!=typeof oA[z])&&(oA[z]=y.string)}this.records=b},W.preEncode=function(){if(!Array.isArray(this.records)){this.version=0;var nA=[];for(var b in this.records){var K=this.records[b];"fontFeatures"!==b&&(nA.push({platformID:3,encodingID:1,languageID:1033,nameID:EA.indexOf(b),length:c.byteLength(K.en,"utf16le"),string:K.en}),"postscriptName"===b&&nA.push({platformID:1,encodingID:0,languageID:0,nameID:EA.indexOf(b),length:K.en.length,string:K.en}))}this.records=nA,this.count=nA.length,this.stringOffset=W.size(this,null,!1)}};var DA=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}}),rA=DA.versions;rA[3]=rA[4]=rA[2];var hA=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(nA){return nA.parent.maxp.numGlyphs})}}),HA=new e.Struct({controlValues:new e.Array(e.int16)}),nt=new e.Struct({instructions:new e.Array(e.uint8)}),st=new e.VersionedStruct("head.indexToLocFormat",{0:{offsets:new e.Array(e.uint16)},1:{offsets:new e.Array(e.uint32)}});st.process=function(){if(0===this.version)for(var nA=0;nA>>=1};var yA=new e.Struct({controlValueProgram:new e.Array(e.uint8)}),_A=new e.Array(new e.Buffer),ft=function(){function nA(K){this.type=K}var b=nA.prototype;return b.getCFFVersion=function(M){for(;M&&!M.hdrSize;)M=M.parent;return M?M.version:-1},b.decode=function(M,y){var tA=this.getCFFVersion(y)>=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=[],UA=M.pos+(tA+1)*oA-1,kA=sA.decode(M),gt=0;gt>4;if(15===tA)break;y+=SA[tA];var oA=15&z;if(15===oA)break;y+=SA[oA]}return parseFloat(y)}return null},nA.size=function(K){return K.forceLarge&&(K=32768),(0|K)!==K?1+Math.ceil(((""+K).length+1)/2):-107<=K&&K<=107?1:108<=K&&K<=1131||-1131<=K&&K<=-108?2:-32768<=K&&K<=32767?3:5},nA.encode=function(K,M){var y=Number(M);if(M.forceLarge)return K.writeUInt8(29),K.writeInt32BE(y);if((0|y)===y)return-107<=y&&y<=107?K.writeUInt8(y+139):108<=y&&y<=1131?(K.writeUInt8(247+((y-=108)>>8)),K.writeUInt8(255&y)):-1131<=y&&y<=-108?(K.writeUInt8(251+((y=-y-108)>>8)),K.writeUInt8(255&y)):-32768<=y&&y<=32767?(K.writeUInt8(28),K.writeInt16BE(y)):(K.writeUInt8(29),K.writeInt32BE(y));K.writeUInt8(30);for(var z=""+y,tA=0;tAz;)y.pop()},nA}(),null],[19,"Subrs",new ot(new ft,{type:"local"}),null]]),Pt=[".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"],G=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],L=[".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")}),eA=new e.Struct({tag:new e.String(4),langSys:new e.Pointer(e.uint16,RA,{type:"parent"})}),at=new e.Struct({defaultLangSys:new e.Pointer(e.uint16,RA),count:e.uint16,langSysRecords:new e.Array(eA,"count")}),Ft=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,at,{type:"parent"})}),j=new e.Array(Ft,e.uint16),XA=new e.Struct({featureParams:e.uint16,lookupCount:e.uint16,lookupListIndexes:new e.Array(e.uint16,"lookupCount")}),et=new e.Struct({tag:new e.String(4),feature:new e.Pointer(e.uint16,XA,{type:"parent"})}),mA=new e.Array(et,e.uint16),jA=new e.Struct({markAttachmentType:e.uint8,flags:new e.Bitfield(e.uint8,["rightToLeft","ignoreBaseGlyphs","ignoreLigatures","ignoreMarks","useMarkFilteringSet"])});function ct(nA){var b=new e.Struct({lookupType:e.uint16,flags:jA,subTableCount:e.uint16,subTables:new e.Array(new e.Pointer(e.uint16,nA),"subTableCount"),markFilteringSet:new e.Optional(e.uint16,function(K){return K.flags.flags.useMarkFilteringSet})});return new e.LazyArray(new e.Pointer(e.uint16,b),e.uint16)}var bt=new e.Struct({start:e.uint16,end:e.uint16,startCoverageIndex:e.uint16}),yt=new e.VersionedStruct(e.uint16,{1:{glyphCount:e.uint16,glyphs:new e.Array(e.uint16,"glyphCount")},2:{rangeCount:e.uint16,rangeRecords:new e.Array(bt,"rangeCount")}}),Rt=new e.Struct({start:e.uint16,end:e.uint16,class:e.uint16}),Kt=new e.VersionedStruct(e.uint16,{1:{startGlyph:e.uint16,glyphCount:e.uint16,classValueArray:new e.Array(e.uint16,"glyphCount")},2:{classRangeCount:e.uint16,classRangeRecord:new e.Array(Rt,"classRangeCount")}}),Ne=new e.Struct({a:e.uint16,b:e.uint16,deltaFormat:e.uint16}),ie=new e.Struct({sequenceIndex:e.uint16,lookupListIndex:e.uint16}),$t=new e.Struct({glyphCount:e.uint16,lookupCount:e.uint16,input:new e.Array(e.uint16,function(nA){return nA.glyphCount-1}),lookupRecords:new e.Array(ie,"lookupCount")}),me=new e.Array(new e.Pointer(e.uint16,$t),e.uint16),be=new e.Struct({glyphCount:e.uint16,lookupCount:e.uint16,classes:new e.Array(e.uint16,function(nA){return nA.glyphCount-1}),lookupRecords:new e.Array(ie,"lookupCount")}),Re=new e.Array(new e.Pointer(e.uint16,be),e.uint16),mn=new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,yt),ruleSetCount:e.uint16,ruleSets:new e.Array(new e.Pointer(e.uint16,me),"ruleSetCount")},2:{coverage:new e.Pointer(e.uint16,yt),classDef:new e.Pointer(e.uint16,Kt),classSetCnt:e.uint16,classSet:new e.Array(new e.Pointer(e.uint16,Re),"classSetCnt")},3:{glyphCount:e.uint16,lookupCount:e.uint16,coverages:new e.Array(new e.Pointer(e.uint16,yt),"glyphCount"),lookupRecords:new e.Array(ie,"lookupCount")}}),yn=new e.Struct({backtrackGlyphCount:e.uint16,backtrack:new e.Array(e.uint16,"backtrackGlyphCount"),inputGlyphCount:e.uint16,input:new e.Array(e.uint16,function(nA){return nA.inputGlyphCount-1}),lookaheadGlyphCount:e.uint16,lookahead:new e.Array(e.uint16,"lookaheadGlyphCount"),lookupCount:e.uint16,lookupRecords:new e.Array(ie,"lookupCount")}),ne=new e.Array(new e.Pointer(e.uint16,yn),e.uint16),An=new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,yt),chainCount:e.uint16,chainRuleSets:new e.Array(new e.Pointer(e.uint16,ne),"chainCount")},2:{coverage:new e.Pointer(e.uint16,yt),backtrackClassDef:new e.Pointer(e.uint16,Kt),inputClassDef:new e.Pointer(e.uint16,Kt),lookaheadClassDef:new e.Pointer(e.uint16,Kt),chainCount:e.uint16,chainClassSet:new e.Array(new e.Pointer(e.uint16,ne),"chainCount")},3:{backtrackGlyphCount:e.uint16,backtrackCoverage:new e.Array(new e.Pointer(e.uint16,yt),"backtrackGlyphCount"),inputGlyphCount:e.uint16,inputCoverage:new e.Array(new e.Pointer(e.uint16,yt),"inputGlyphCount"),lookaheadGlyphCount:e.uint16,lookaheadCoverage:new e.Array(new e.Pointer(e.uint16,yt),"lookaheadGlyphCount"),lookupCount:e.uint16,lookupRecords:new e.Array(ie,"lookupCount")}}),Se=new e.Fixed(16,"BE",14),tn=new e.Struct({startCoord:Se,peakCoord:Se,endCoord:Se}),qe=new e.Struct({axisCount:e.uint16,regionCount:e.uint16,variationRegions:new e.Array(new e.Array(tn,"axisCount"),"regionCount")}),Ln=new e.Struct({shortDeltas:new e.Array(e.int16,function(nA){return nA.parent.shortDeltaCount}),regionDeltas:new e.Array(e.int8,function(nA){return nA.parent.regionIndexCount-nA.parent.shortDeltaCount}),deltas:function(b){return b.shortDeltas.concat(b.regionDeltas)}}),Gn=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,qe),variationDataCount:e.uint16,itemVariationData:new e.Array(new e.Pointer(e.uint32,Gn),"variationDataCount")}),Lt=new e.VersionedStruct(e.uint16,{1:(r={axisIndex:e.uint16},r.axisIndex=e.uint16,r.filterRangeMinValue=Se,r.filterRangeMaxValue=Se,r)}),Xt=new e.Struct({conditionCount:e.uint16,conditionTable:new e.Array(new e.Pointer(e.uint32,Lt),"conditionCount")}),oe=new e.Struct({featureIndex:e.uint16,alternateFeatureTable:new e.Pointer(e.uint32,XA,{type:"parent"})}),In=new e.Struct({version:e.fixed32,substitutionCount:e.uint16,substitutions:new e.Array(oe,"substitutionCount")}),Mn=new e.Struct({conditionSet:new e.Pointer(e.uint32,Xt,{type:"parent"}),featureTableSubstitution:new e.Pointer(e.uint32,In,{type:"parent"})}),Fn=new e.Struct({majorVersion:e.uint16,minorVersion:e.uint16,featureVariationRecordCount:e.uint32,featureVariationRecords:new e.Array(Mn,"featureVariationRecordCount")}),Kn=function(){function nA(K,M){this.predefinedOps=K,this.type=M}var b=nA.prototype;return b.decode=function(M,y,z){return this.predefinedOps[z[0]]?this.predefinedOps[z[0]]:this.type.decode(M,y,z)},b.size=function(M,y){return this.type.size(M,y)},b.encode=function(M,y,z){var tA=this.predefinedOps.indexOf(y);return-1!==tA?tA:this.type.encode(M,y,z)},nA}(),nr=function(nA){function b(){return nA.call(this,"UInt8")||this}return E(b,nA),b.prototype.decode=function(y){return 127&e.uint8.decode(y)},b}(e.Number),nn=new e.Struct({first:e.uint16,nLeft:e.uint8}),KA=new e.Struct({first:e.uint16,nLeft:e.uint16}),tt=new Kn([G,["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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 ot(new e.VersionedStruct(new nr,{0:{nCodes:e.uint8,codes:new e.Array(e.uint8,"nCodes")},1:{nRanges:e.uint8,ranges:new e.Array(nn,"nRanges")}}),{lazy:!0})),PA=function(nA){function b(){return nA.apply(this,arguments)||this}return E(b,nA),b.prototype.decode=function(y,z){for(var tA=f.resolveLength(this.length,y,z),oA=0,sA=[];oA=2?null:M=2||this.isCIDFont)return null;var y=this.topDict.charset;if(Array.isArray(y))return y[M];if(0===M)return".notdef";switch(M-=1,y.version){case 0:return this.string(y.glyphs[M]);case 1:case 2:for(var z=0;z>1;if(M=y[oA+1].first))return y[oA].fd;z=oA+1}}default:throw new Error("Unknown FDSelect version: ".concat(this.topDict.FDSelect.version))}},b.privateDictForGlyph=function(M){if(this.topDict.FDSelect){var y=this.fdForGlyph(M);return this.topDict.FDArray[y]?this.topDict.FDArray[y].Private:null}return this.version<2?this.topDict.Private:this.topDict.FDArray[0].Private},s(nA,[{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)}}]),nA}(),Et=new e.Struct({glyphIndex:e.uint16,vertOriginY:e.int16}),zt=new e.Struct({majorVersion:e.uint16,minorVersion:e.uint16,defaultVertOriginY:e.int16,numVertOriginYMetrics:e.uint16,metrics:new e.Array(Et,"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}),Vt=function(){},Be=function(){},De=(new e.VersionedStruct("version",{1:{metrics:Ht,data:Vt},2:{metrics:Ht,data:Be},5:{data:Be},6:{metrics:jt,data:Vt},7:{metrics:jt,data:Be},8:{metrics:Ht,pad:new e.Reserved(e.uint8),numComponents:e.uint16,components:new e.Array(ce,"numComponents")},9:{metrics:jt,pad:new e.Reserved(e.uint8),numComponents:e.uint16,components:new e.Array(ce,"numComponents")},17:{metrics:Ht,dataLen:e.uint32,data:new e.Buffer("dataLen")},18:{metrics:jt,dataLen:e.uint32,data:new e.Buffer("dataLen")},19:{dataLen:e.uint32,data:new e.Buffer("dataLen")}}),new e.Struct({ascender:e.int8,descender:e.int8,widthMax:e.uint8,caretSlopeNumerator:e.int8,caretSlopeDenominator:e.int8,caretOffset:e.int8,minOriginSB:e.int8,minAdvanceSB:e.int8,maxBeforeBL:e.int8,minAfterBL:e.int8,pad:new e.Reserved(e.int8,2)})),Le=new e.Struct({glyphCode:e.uint16,offset:e.uint16}),Ue=new e.VersionedStruct(e.uint16,{header:{imageFormat:e.uint16,imageDataOffset:e.uint32},1:{offsetArray:new e.Array(e.uint32,function(nA){return nA.parent.lastGlyphIndex-nA.parent.firstGlyphIndex+1})},2:{imageSize:e.uint32,bigMetrics:jt},3:{offsetArray:new e.Array(e.uint16,function(nA){return nA.parent.lastGlyphIndex-nA.parent.firstGlyphIndex+1})},4:{numGlyphs:e.uint32,glyphArray:new e.Array(Le,function(nA){return nA.numGlyphs+1})},5:{imageSize:e.uint32,bigMetrics:jt,numGlyphs:e.uint32,glyphCodeArray:new e.Array(e.uint16,"numGlyphs")}}),ye=new e.Struct({firstGlyphIndex:e.uint16,lastGlyphIndex:e.uint16,subtable:new e.Pointer(e.uint32,Ue)}),Te=new e.Struct({indexSubTableArray:new e.Pointer(e.uint32,new e.Array(ye,1),{type:"parent"}),indexTablesSize:e.uint32,numberOfIndexSubTables:e.uint32,colorRef:e.uint32,hori:De,vert:De,startGlyphIndex:e.uint16,endGlyphIndex:e.uint16,ppemX:e.uint8,ppemY:e.uint8,bitDepth:e.uint8,flags:new e.Bitfield(e.uint8,["horizontal","vertical"])}),ke=new e.Struct({version:e.uint32,numSizes:e.uint32,sizes:new e.Array(Te,"numSizes")}),xn=new e.Struct({ppem:e.uint16,resolution:e.uint16,imageOffsets:new e.Array(new e.Pointer(e.uint32,"void"),function(nA){return nA.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,xn),"numImgTables")}),dn=new e.Struct({gid:e.uint16,paletteIndex:e.uint16}),Yn=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(Yn,"numBaseGlyphRecords")),layerRecords:new e.Pointer(e.uint32,new e.Array(dn,"numLayerRecords"),{lazy:!0}),numLayerRecords:e.uint16}),En=new e.Struct({blue:e.uint8,green:e.uint8,red:e.uint8,alpha:e.uint8}),gn=new e.VersionedStruct(e.uint16,{header:{numPaletteEntries:e.uint16,numPalettes:e.uint16,numColorRecords:e.uint16,colorRecords:new e.Pointer(e.uint32,new e.Array(En,"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"))}}),Tn=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,Ne)}}),Yr=new e.Struct({defaultIndex:e.uint16,baseCoordCount:e.uint16,baseCoords:new e.Array(new e.Pointer(e.uint16,Tn),"baseCoordCount")}),Tr=new e.Struct({tag:new e.String(4),minCoord:new e.Pointer(e.uint16,Tn,{type:"parent"}),maxCoord:new e.Pointer(e.uint16,Tn,{type:"parent"})}),rr=new e.Struct({minCoord:new e.Pointer(e.uint16,Tn),maxCoord:new e.Pointer(e.uint16,Tn),featMinMaxCount:e.uint16,featMinMaxRecords:new e.Array(Tr,"featMinMaxCount")}),Sn=new e.Struct({tag:new e.String(4),minMax:new e.Pointer(e.uint16,rr,{type:"parent"})}),_n=new e.Struct({baseValues:new e.Pointer(e.uint16,Yr),defaultMinMax:new e.Pointer(e.uint16,rr),baseLangSysCount:e.uint16,baseLangSysRecords:new e.Array(Sn,"baseLangSysCount")}),IA=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,_n,{type:"parent"})}),H=new e.Array(IA,e.uint16),S=new e.Array(new e.String(4),e.uint16),X=new e.Struct({baseTagList:new e.Pointer(e.uint16,S),baseScriptList:new e.Pointer(e.uint16,H)}),Z=new e.VersionedStruct(e.uint32,{header:{horizAxis:new e.Pointer(e.uint16,X),vertAxis:new e.Pointer(e.uint16,X)},65536:{},65537:{itemVariationStore:new e.Pointer(e.uint32,Jt)}}),fA=new e.Array(e.uint16,e.uint16),pA=new e.Struct({coverage:new e.Pointer(e.uint16,yt),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,Ne)}}),rt=new e.Array(new e.Pointer(e.uint16,$A),e.uint16),ut=new e.Struct({coverage:new e.Pointer(e.uint16,yt),ligGlyphCount:e.uint16,ligGlyphs:new e.Array(new e.Pointer(e.uint16,rt),"ligGlyphCount")}),wt=new e.Struct({markSetTableFormat:e.uint16,markSetCount:e.uint16,coverage:new e.Array(new e.Pointer(e.uint32,yt),"markSetCount")}),Dt=new e.VersionedStruct(e.uint32,{header:{glyphClassDef:new e.Pointer(e.uint16,Kt),attachList:new e.Pointer(e.uint16,pA),ligCaretList:new e.Pointer(e.uint16,ut),markAttachClassDef:new e.Pointer(e.uint16,Kt)},65536:{},65538:{markGlyphSetsDef:new e.Pointer(e.uint16,wt)},65539:{markGlyphSetsDef:new e.Pointer(e.uint16,wt),itemVariationStore:new e.Pointer(e.uint32,Jt)}}),xt=new e.Bitfield(e.uint16,["xPlacement","yPlacement","xAdvance","yAdvance","xPlaDevice","yPlaDevice","xAdvDevice","yAdvDevice"]),Yt={xPlacement:e.int16,yPlacement:e.int16,xAdvance:e.int16,yAdvance:e.int16,xPlaDevice:new e.Pointer(e.uint16,Ne,{type:"global",relativeTo:function(b){return b.rel}}),yPlaDevice:new e.Pointer(e.uint16,Ne,{type:"global",relativeTo:function(b){return b.rel}}),xAdvDevice:new e.Pointer(e.uint16,Ne,{type:"global",relativeTo:function(b){return b.rel}}),yAdvDevice:new e.Pointer(e.uint16,Ne,{type:"global",relativeTo:function(b){return b.rel}})},Ot=function(){function nA(K){void 0===K&&(K="valueFormat"),this.key=K}var b=nA.prototype;return b.buildStruct=function(M){for(var y=M;!y[this.key]&&y.parent;)y=y.parent;if(y[this.key]){var z={rel:function(){return y._startOffset}},tA=y[this.key];for(var oA in tA)tA[oA]&&(z[oA]=Yt[oA]);return new e.Struct(z)}},b.size=function(M,y){return this.buildStruct(y).size(M,y)},b.decode=function(M,y){var z=this.buildStruct(y).decode(M,y);return delete z.rel,z},nA}(),Zt=new e.Struct({secondGlyph:e.uint16,value1:new Ot("valueFormat1"),value2:new Ot("valueFormat2")}),ue=new e.Array(Zt,e.uint16),Ee=new e.Struct({value1:new Ot("valueFormat1"),value2:new Ot("valueFormat2")}),Me=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,Ne),yDeviceTable:new e.Pointer(e.uint16,Ne)}}),en=new e.Struct({entryAnchor:new e.Pointer(e.uint16,Me,{type:"parent"}),exitAnchor:new e.Pointer(e.uint16,Me,{type:"parent"})}),Qe=new e.Struct({class:e.uint16,markAnchor:new e.Pointer(e.uint16,Me,{type:"parent"})}),je=new e.Array(Qe,e.uint16),wn=new e.Array(new e.Pointer(e.uint16,Me),function(nA){return nA.parent.classCount}),Ze=new e.Array(wn,e.uint16),Cn=new e.Array(new e.Pointer(e.uint16,Me),function(nA){return nA.parent.parent.classCount}),Wn=new e.Array(Cn,e.uint16),$n=new e.Array(new e.Pointer(e.uint16,Wn),e.uint16),Un=new e.VersionedStruct("lookupType",{1:new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,yt),valueFormat:xt,value:new Ot},2:{coverage:new e.Pointer(e.uint16,yt),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,yt),valueFormat1:xt,valueFormat2:xt,pairSetCount:e.uint16,pairSets:new e.LazyArray(new e.Pointer(e.uint16,ue),"pairSetCount")},2:{coverage:new e.Pointer(e.uint16,yt),valueFormat1:xt,valueFormat2:xt,classDef1:new e.Pointer(e.uint16,Kt),classDef2:new e.Pointer(e.uint16,Kt),class1Count:e.uint16,class2Count:e.uint16,classRecords:new e.LazyArray(new e.LazyArray(Ee,"class2Count"),"class1Count")}}),3:{format:e.uint16,coverage:new e.Pointer(e.uint16,yt),entryExitCount:e.uint16,entryExitRecords:new e.Array(en,"entryExitCount")},4:{format:e.uint16,markCoverage:new e.Pointer(e.uint16,yt),baseCoverage:new e.Pointer(e.uint16,yt),classCount:e.uint16,markArray:new e.Pointer(e.uint16,je),baseArray:new e.Pointer(e.uint16,Ze)},5:{format:e.uint16,markCoverage:new e.Pointer(e.uint16,yt),ligatureCoverage:new e.Pointer(e.uint16,yt),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,yt),mark2Coverage:new e.Pointer(e.uint16,yt),classCount:e.uint16,mark1Array:new e.Pointer(e.uint16,je),mark2Array:new e.Pointer(e.uint16,Ze)},7:mn,8:An,9:{posFormat:e.uint16,lookupType:e.uint16,extension:new e.Pointer(e.uint32,Un)}});Un.versions[9].extension.type=Un;var Lr=new e.VersionedStruct(e.uint32,{header:{scriptList:new e.Pointer(e.uint16,j),featureList:new e.Pointer(e.uint16,mA),lookupList:new e.Pointer(e.uint16,new ct(Un))},65536:{},65537:{featureVariations:new e.Pointer(e.uint32,Fn)}}),On=new e.Array(e.uint16,e.uint16),ir=On,Mr=new e.Struct({glyph:e.uint16,compCount:e.uint16,components:new e.Array(e.uint16,function(nA){return nA.compCount-1})}),Ar=new e.Array(new e.Pointer(e.uint16,Mr),e.uint16),ur=new e.VersionedStruct("lookupType",{1:new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,yt),deltaGlyphID:e.int16},2:{coverage:new e.Pointer(e.uint16,yt),glyphCount:e.uint16,substitute:new e.LazyArray(e.uint16,"glyphCount")}}),2:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,yt),count:e.uint16,sequences:new e.LazyArray(new e.Pointer(e.uint16,On),"count")},3:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,yt),count:e.uint16,alternateSet:new e.LazyArray(new e.Pointer(e.uint16,ir),"count")},4:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,yt),count:e.uint16,ligatureSets:new e.LazyArray(new e.Pointer(e.uint16,Ar),"count")},5:mn,6:An,7:{substFormat:e.uint16,lookupType:e.uint16,extension:new e.Pointer(e.uint32,ur)},8:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,yt),backtrackCoverage:new e.Array(new e.Pointer(e.uint16,yt),"backtrackGlyphCount"),lookaheadGlyphCount:e.uint16,lookaheadCoverage:new e.Array(new e.Pointer(e.uint16,yt),"lookaheadGlyphCount"),glyphCount:e.uint16,substitutes:new e.Array(e.uint16,"glyphCount")}});ur.versions[7].extension.type=ur;var Gr=new e.VersionedStruct(e.uint32,{header:{scriptList:new e.Pointer(e.uint16,j),featureList:new e.Pointer(e.uint16,mA),lookupList:new e.Pointer(e.uint16,new ct(ur))},65536:{},65537:{featureVariations:new e.Pointer(e.uint32,Fn)}}),Vn=new e.Array(e.uint16,e.uint16),Hr=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 ct(Un)),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 ct(Un))}),dr=new e.Array(new e.Pointer(e.uint16,Hr),e.uint16),Jr=new e.Struct({tag:new e.String(4),jstfLangSys:new e.Pointer(e.uint16,dr)}),Or=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(Jr,"langSysCount")}),gi=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,Or,{type:"parent"})}),kr=new e.Struct({version:e.uint32,scriptCount:e.uint16,scriptList:new e.Array(gi,"scriptCount")}),Sr=new e.Struct({entry:new(function(){function nA(K){this._size=K}var b=nA.prototype;return b.decode=function(M,y){switch(this.size(0,y)){case 1:return M.readUInt8();case 2:return M.readUInt16BE();case 3:return M.readUInt24BE();case 4:return M.readUInt32BE()}},b.size=function(M,y){return f.resolveLength(this._size,null,y)},nA}())(function(nA){return 1+((48&nA.parent.entryFormat)>>4)}),outerIndex:function(b){return b.entry>>1+(15&b.parent.entryFormat)},innerIndex:function(b){return b.entry&(1<<1+(15&b.parent.entryFormat))-1}}),Xn=new e.Struct({entryFormat:e.uint16,mapCount:e.uint16,mapData:new e.Array(Sr,"mapCount")}),Ui=new e.Struct({majorVersion:e.uint16,minorVersion:e.uint16,itemVariationStore:new e.Pointer(e.uint32,Jt),advanceWidthMapping:new e.Pointer(e.uint32,Xn),LSBMapping:new e.Pointer(e.uint32,Xn),RSBMapping:new e.Pointer(e.uint32,Xn)}),Pi=new e.Struct({format:e.uint32,length:e.uint32,offset:e.uint32}),_a=new e.Struct({reserved:new e.Reserved(e.uint16,2),cbSignature:e.uint32,signature:new e.Buffer("cbSignature")}),$a=new e.Struct({ulVersion:e.uint32,usNumSigs:e.uint16,usFlag:e.uint16,signatures:new e.Array(Pi,"usNumSigs"),signatureBlocks:new e.Array(_a,"usNumSigs")}),Ao=new e.Struct({rangeMaxPPEM:e.uint16,rangeGaspBehavior:new e.Bitfield(e.uint16,["grayscale","gridfit","symmetricSmoothing","symmetricGridfit"])}),to=new e.Struct({version:e.uint16,numRanges:e.uint16,gaspRanges:new e.Array(Ao,"numRanges")}),eo=new e.Struct({pixelSize:e.uint8,maximumWidth:e.uint8,widths:new e.Array(e.uint8,function(nA){return nA.parent.parent.maxp.numGlyphs})}),no=new e.Struct({version:e.uint16,numRecords:e.int16,sizeDeviceRecord:e.int32,records:new e.Array(eo,"numRecords")}),ro=new e.Struct({left:e.uint16,right:e.uint16,value:e.int16}),zi=new e.Struct({firstGlyph:e.uint16,nGlyphs:e.uint16,offsets:new e.Array(e.uint16,"nGlyphs"),max:function(b){return b.offsets.length&&Math.max.apply(Math,b.offsets)}}),io=new e.Struct({off:function(b){return b._startOffset-b.parent.parent._startOffset},len:function(b){return b.parent.rowWidth/2*((b.parent.leftTable.max-b.off)/b.parent.rowWidth+1)},values:new e.LazyArray(e.int16,"len")}),ea=new e.VersionedStruct("format",{0:{nPairs:e.uint16,searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16,pairs:new e.Array(ro,"nPairs")},2:{rowWidth:e.uint16,leftTable:new e.Pointer(e.uint16,zi,{type:"parent"}),rightTable:new e.Pointer(e.uint16,zi,{type:"parent"}),array:new e.Pointer(e.uint16,io,{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(nA){return nA.leftClassCount*nA.rightClassCount})}}),na=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:ea,padding:new e.Reserved(e.uint8,function(nA){return nA.length-nA._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:ea,padding:new e.Reserved(e.uint8,function(nA){return nA.length-nA._currentOffset})}}),ao=new e.VersionedStruct(e.uint16,{0:{nTables:e.uint16,tables:new e.Array(na,"nTables")},1:{reserved:new e.Reserved(e.uint16),nTables:e.uint32,tables:new e.Array(na,"nTables")}}),oo=new e.Struct({version:e.uint16,numGlyphs:e.uint16,yPels:new e.Array(e.uint8,"numGlyphs")}),so=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)}),co=new e.Struct({bCharSet:e.uint8,xRatio:e.uint8,yStartRatio:e.uint8,yEndRatio:e.uint8}),go=new e.Struct({yPelHeight:e.uint16,yMax:e.int16,yMin:e.int16}),lo=new e.Struct({recs:e.uint16,startsz:e.uint8,endsz:e.uint8,entries:new e.Array(go,"recs")}),Bo=new e.Struct({version:e.uint16,numRecs:e.uint16,numRatios:e.uint16,ratioRanges:new e.Array(co,"numRatios"),offsets:new e.Array(e.uint16,"numRatios"),groups:new e.Array(lo,"numRecs")}),uo=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}),fo=new e.Struct({advance:e.uint16,bearing:e.int16}),Eo=new e.Struct({metrics:new e.LazyArray(fo,function(nA){return nA.parent.vhea.numberOfMetrics}),bearings:new e.LazyArray(e.int16,function(nA){return nA.parent.maxp.numGlyphs-nA.parent.vhea.numberOfMetrics})}),ra=new e.Fixed(16,"BE",14),ho=new e.Struct({fromCoord:ra,toCoord:ra}),wo=new e.Struct({pairCount:e.uint16,correspondence:new e.Array(ho,"pairCount")}),Co=new e.Struct({version:e.fixed32,axisCount:e.uint32,segment:new e.Array(wo,"axisCount")}),Qo=function(){function nA(K,M,y){this.type=K,this.stream=M,this.parent=y,this.base=this.stream.pos,this._items=[]}var b=nA.prototype;return b.getItem=function(M){if(null==this._items[M]){var y=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=y}return this._items[M]},b.inspect=function(){return"[UnboundedArray ".concat(this.type.constructor.name,"]")},nA}(),qn=function(nA){function b(M){return nA.call(this,M,0)||this}return E(b,nA),b.prototype.decode=function(y,z){return new Qo(this.type,y,z)},b}(e.Array),Hn=function(b){void 0===b&&(b=e.uint16),b=new(function(){function oA(iA){this.type=iA}var sA=oA.prototype;return sA.decode=function(UA,kA){return this.type.decode(UA,kA=kA.parent.parent)},sA.size=function(UA,kA){return this.type.size(UA,kA=kA.parent.parent)},sA.encode=function(UA,kA,gt){return this.type.encode(UA,kA,gt=gt.parent.parent)},oA}())(b);var M=new e.Struct({unitSize:e.uint16,nUnits:e.uint16,searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16}),y=new e.Struct({lastGlyph:e.uint16,firstGlyph:e.uint16,value:b}),z=new e.Struct({lastGlyph:e.uint16,firstGlyph:e.uint16,values:new e.Pointer(e.uint16,new e.Array(b,function(oA){return oA.lastGlyph-oA.firstGlyph+1}),{type:"parent"})}),tA=new e.Struct({glyph:e.uint16,value:b});return new e.VersionedStruct(e.uint16,{0:{values:new qn(b)},2:{binarySearchHeader:M,segments:new e.Array(y,function(oA){return oA.binarySearchHeader.nUnits})},4:{binarySearchHeader:M,segments:new e.Array(z,function(oA){return oA.binarySearchHeader.nUnits})},6:{binarySearchHeader:M,segments:new e.Array(tA,function(oA){return oA.binarySearchHeader.nUnits})},8:{firstGlyph:e.uint16,count:e.uint16,values:new e.Array(b,"count")}})};function or(nA,b){void 0===nA&&(nA={}),void 0===b&&(b=e.uint16);var K=Object.assign({newState:e.uint16,flags:e.uint16},nA),M=new e.Struct(K),y=new qn(new e.Array(e.uint16,function(tA){return tA.nClasses}));return new e.Struct({nClasses:e.uint32,classTable:new e.Pointer(e.uint32,new Hn(b)),stateArray:new e.Pointer(e.uint32,y),entryTable:new e.Pointer(e.uint32,new qn(M))})}var Mo=new e.VersionedStruct("format",{0:{deltas:new e.Array(e.int16,32)},1:{deltas:new e.Array(e.int16,32),mappingData:new Hn(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 Hn(e.uint16)}}),po=new e.Struct({version:e.fixed32,format:e.uint16,defaultBaseline:e.uint16,subtable:Mo}),Io=new e.Struct({setting:e.uint16,nameIndex:e.int16,name:function(b){return b.parent.parent.parent.name.records.fontFeatures[b.nameIndex]}}),Do=new e.Struct({feature:e.uint16,nSettings:e.uint16,settingTable:new e.Pointer(e.uint32,new e.Array(Io,"nSettings"),{type:"parent"}),featureFlags:new e.Bitfield(e.uint8,[null,null,null,null,null,null,"hasDefault","exclusive"]),defaultSetting:e.uint8,nameIndex:e.int16,name:function(b){return b.parent.parent.name.records.fontFeatures[b.nameIndex]}}),vo=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(Do,"featureNameCount")}),mo=new e.Struct({axisTag:new e.String(4),minValue:e.fixed32,defaultValue:e.fixed32,maxValue:e.fixed32,flags:e.uint16,nameID:e.uint16,name:function(b){return b.parent.parent.name.records.fontFeatures[b.nameID]}}),yo=new e.Struct({nameID:e.uint16,name:function(b){return b.parent.parent.name.records.fontFeatures[b.nameID]},flags:e.uint16,coord:new e.Array(e.fixed32,function(nA){return nA.parent.axisCount}),postscriptNameID:new e.Optional(e.uint16,function(nA){return nA.parent.instanceSize-nA._currentOffset>0})}),xo=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(mo,"axisCount"),instance:new e.Array(yo,"instanceCount")}),Fo=new e.Fixed(16,"BE",14),Yo=function(){function nA(){}return nA.decode=function(K,M){return M.flags?K.readUInt32BE():2*K.readUInt16BE()},nA}(),To=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(Fo,"axisCount"),"globalCoordCount")),glyphCount:e.uint16,flags:e.uint16,offsetToData:e.uint32,offsets:new e.Array(new e.Pointer(Yo,"void",{relativeTo:function(b){return b.offsetToData},allowNull:!1}),function(nA){return nA.glyphCount+1})}),So=new e.Struct({length:e.uint16,coverage:e.uint16,subFeatureFlags:e.uint32,stateTable:new function(nA,b){void 0===nA&&(nA={}),void 0===b&&(b=e.uint16);var K=new e.Struct({version:function(){return 8},firstGlyph:e.uint16,values:new e.Array(e.uint8,e.uint16)}),M=Object.assign({newStateOffset:e.uint16,newState:function(sA){return(sA.newStateOffset-(sA.parent.stateArray.base-sA.parent._startOffset))/sA.parent.nClasses},flags:e.uint16},nA),y=new e.Struct(M),z=new qn(new e.Array(e.uint8,function(oA){return oA.nClasses}));return new e.Struct({nClasses:e.uint16,classTable:new e.Pointer(e.uint16,K),stateArray:new e.Pointer(e.uint16,z),entryTable:new e.Pointer(e.uint16,new qn(y))})}}),Uo=new e.Struct({justClass:e.uint32,beforeGrowLimit:e.fixed32,beforeShrinkLimit:e.fixed32,afterGrowLimit:e.fixed32,afterShrinkLimit:e.fixed32,growFlags:e.uint16,shrinkFlags:e.uint16}),Po=new e.Array(Uo,e.uint32),zo=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}}),ia=new e.Struct({actionClass:e.uint16,actionType:e.uint16,actionLength:e.uint32,actionData:zo,padding:new e.Reserved(e.uint8,function(nA){return nA.actionLength-nA._currentOffset})}),Ro=new e.Array(ia,e.uint32),No=new e.Struct({lookupTable:new Hn(new e.Pointer(e.uint16,Ro))}),aa=new e.Struct({classTable:new e.Pointer(e.uint16,So,{type:"parent"}),wdcOffset:e.uint16,postCompensationTable:new e.Pointer(e.uint16,No,{type:"parent"}),widthDeltaClusters:new Hn(new e.Pointer(e.uint16,Po,{type:"parent",relativeTo:function(b){return b.wdcOffset}}))}),bo=new e.Struct({version:e.uint32,format:e.uint16,horizontal:new e.Pointer(e.uint16,aa),vertical:new e.Pointer(e.uint16,aa)}),Lo={action:e.uint16},Go={markIndex:e.uint16,currentIndex:e.uint16},Ho={currentInsertIndex:e.uint16,markedInsertIndex:e.uint16},Jo=new e.Struct({items:new qn(new e.Pointer(e.uint32,new Hn))}),Oo=new e.VersionedStruct("type",{0:{stateTable:new or},1:{stateTable:new or(Go),substitutionTable:new e.Pointer(e.uint32,Jo)},2:{stateTable:new or(Lo),ligatureActions:new e.Pointer(e.uint32,new qn(e.uint32)),components:new e.Pointer(e.uint32,new qn(e.uint16)),ligatureList:new e.Pointer(e.uint32,new qn(e.uint16))},4:{lookupTable:new Hn},5:{stateTable:new or(Ho),insertionActions:new e.Pointer(e.uint32,new qn(e.uint16))}}),ko=new e.Struct({length:e.uint32,coverage:e.uint24,type:e.uint8,subFeatureFlags:e.uint32,table:Oo,padding:new e.Reserved(e.uint8,function(nA){return nA.length-nA._currentOffset})}),jo=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(jo,"nFeatureEntries"),subtables:new e.Array(ko,"nSubtables")}),Ko=new e.Struct({version:e.uint16,unused:new e.Reserved(e.uint16),nChains:e.uint32,chains:new e.Array(Zo,"nChains")}),Wo=new e.Struct({left:e.int16,top:e.int16,right:e.int16,bottom:e.int16}),oa=new e.Struct({version:e.fixed32,format:e.uint16,lookupTable:new Hn(Wo)}),re={};re.cmap=vA,re.head=xA,re.hhea=_,re.hmtx=uA,re.maxp=CA,re.name=W,re["OS/2"]=DA,re.post=hA,re.fpgm=nt,re.loca=st,re.prep=yA,re["cvt "]=HA,re.glyf=_A,re["CFF "]=te,re.CFF2=te,re.VORG=zt,re.EBLC=ke,re.CBLC=re.EBLC,re.sbix=rn,re.COLR=an,re.CPAL=gn,re.BASE=Z,re.GDEF=Dt,re.GPOS=Lr,re.GSUB=Gr,re.JSTF=kr,re.HVAR=Ui,re.DSIG=$a,re.gasp=to,re.hdmx=no,re.kern=ao,re.LTSH=oo,re.PCLT=so,re.VDMX=Bo,re.vhea=uo,re.vmtx=Eo,re.avar=Co,re.bsln=po,re.feat=vo,re.fvar=xo,re.gvar=To,re.just=bo,re.morx=Ko,re.opbd=oa;var fr,Vo=new e.Struct({tag:new e.String(4),checkSum:e.uint32,offset:new e.Pointer(e.uint32,"void",{type:"global"}),length:e.uint32}),li=new e.Struct({tag:new e.String(4),numTables:e.uint16,searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16,tables:new e.Array(Vo,"numTables")});function Bi(nA,b){for(var K=0,M=nA.length-1;K<=M;){var y=K+M>>1,z=b(nA[y]);if(z<0)M=y-1;else{if(!(z>0))return y;K=y+1}}return-1}function Ur(nA,b){for(var K=[];nA>1;if(MsA.endCode.get(kA))){var gt=sA.idRangeOffset.get(kA),qA=void 0;if(0===gt)qA=M+sA.idDelta.get(kA);else{var Bt=gt/2+(M-sA.startCode.get(kA))-(sA.segCount-kA);0!==(qA=sA.glyphIndexArray.get(Bt)||0)&&(qA+=sA.idDelta.get(kA))}return 65535&qA}iA=kA+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 Mt=0,mt=sA.nGroups-1;Mt<=mt;){var Gt=Mt+mt>>1,_t=sA.groups.get(Gt);if(M<_t.startCharCode)mt=Gt-1;else{if(!(M>_t.endCharCode))return 12===sA.version?_t.glyphID+(M-_t.startCharCode):_t.glyphID;Mt=Gt+1}}return 0;case 14:throw new Error("TODO: cmap format 14");default:throw new Error("Unknown cmap format ".concat(sA.version))}},b.getVariationSelector=function(M,y){if(!this.uvs)return 0;var z=this.uvs.varSelectors.toArray(),tA=Bi(z,function(sA){return y-sA.varSelector}),oA=z[tA];return-1!==tA&&oA.defaultUVS&&(tA=Bi(oA.defaultUVS,function(sA){return MsA.startUnicodeValue+sA.additionalCount?1:0})),-1!==tA&&oA.nonDefaultUVS&&-1!==(tA=Bi(oA.nonDefaultUVS,function(sA){return M-sA.unicodeValue}))?oA.nonDefaultUVS[tA].glyphID:0},b.getCharacterSet=function(){var M=this.cmap;switch(M.version){case 0:return Ur(0,M.codeMap.length);case 4:for(var y=[],z=M.endCode.toArray(),tA=0;tA=qt.glyphID&&M<=qt.glyphID+(qt.endCharCode-qt.startCharCode)&&mt.push(qt.startCharCode+(M-qt.glyphID))}return mt;case 13:for(var he,ae=[],le=l(y.groups.toArray());!(he=le()).done;){var we=he.value;M===we.glyphID&&ae.push.apply(ae,Ur(we.startCharCode,we.endCharCode+1))}return ae;default:throw new Error("Unknown cmap format ".concat(y.version))}},nA}()).prototype,"getCharacterSet",[R],Object.getOwnPropertyDescriptor(fr.prototype,"getCharacterSet"),fr.prototype),x(fr.prototype,"codePointsForGlyph",[R],Object.getOwnPropertyDescriptor(fr.prototype,"codePointsForGlyph"),fr.prototype),fr),qo=function(){function nA(K){this.kern=K.kern}var b=nA.prototype;return b.process=function(M,y){for(var z=0;z=0&&(iA=UA.pairs[kA].value);break;case 2:var qA=0;y>=UA.rightTable.firstGlyph&&y=UA.leftTable.firstGlyph&&M=UA.glyphCount||y>=UA.glyphCount)return 0;iA=UA.kernValue[UA.kernIndex[UA.leftClass[M]*UA.rightClassCount+UA.rightClass[y]]];break;default:throw new Error("Unsupported kerning sub-table format ".concat(sA.format))}sA.coverage.override?z=iA:z+=iA}}return z},nA}(),_o=function(){function nA(K){this.font=K}var b=nA.prototype;return b.positionGlyphs=function(M,y){for(var z=0,tA=0,oA=0;oA1&&(sA.minX+=(oA.codePoints.length-1)*sA.width/oA.codePoints.length);for(var iA=-y[z].xAdvance,UA=0,kA=this.font.unitsPerEm/16,gt=z+1;gt<=tA;gt++){var qA=M[gt],Bt=qA.cbox,Mt=y[gt],mt=this.getCombiningClass(qA.codePoints[0]);if("Not_Reordered"!==mt){switch(Mt.xOffset=Mt.yOffset=0,mt){case"Double_Above":case"Double_Below":Mt.xOffset+=sA.minX-Bt.width/2-Bt.minX;break;case"Attached_Below_Left":case"Below_Left":case"Above_Left":Mt.xOffset+=sA.minX-Bt.minX;break;case"Attached_Above_Right":case"Below_Right":case"Above_Right":Mt.xOffset+=sA.maxX-Bt.width-Bt.minX;break;default:Mt.xOffset+=sA.minX+(sA.width-Bt.width)/2-Bt.minX}switch(mt){case"Double_Below":case"Below_Left":case"Below":case"Below_Right":case"Attached_Below_Left":case"Attached_Below":("Attached_Below_Left"===mt||"Attached_Below"===mt)&&(sA.minY+=kA),Mt.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"===mt||"Attached_Above_Right"===mt)&&(sA.maxY+=kA),Mt.yOffset=sA.maxY-Bt.minY,sA.maxY+=Bt.height}Mt.xAdvance=Mt.yAdvance=0,Mt.xOffset+=iA,Mt.yOffset+=UA}else iA-=Mt.xAdvance,UA-=Mt.yAdvance}},b.getCombiningClass=function(M){var y=w.getCombiningClass(M);if(3584==(-256&M))if("Not_Reordered"===y)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(y){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 y},nA}(),Pr=function(){function nA(K,M,y,z){void 0===K&&(K=1/0),void 0===M&&(M=1/0),void 0===y&&(y=-1/0),void 0===z&&(z=-1/0),this.minX=K,this.minY=M,this.maxX=y,this.maxY=z}var b=nA.prototype;return b.addPoint=function(M,y){Math.abs(M)!==1/0&&(Mthis.maxX&&(this.maxX=M)),Math.abs(y)!==1/0&&(ythis.maxY&&(this.maxY=y))},b.copy=function(){return new nA(this.minX,this.minY,this.maxX,this.maxY)},s(nA,[{key:"width",get:function(){return this.maxX-this.minX}},{key:"height",get:function(){return this.maxY-this.minY}}]),nA}(),zr={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"},Ni={};for(var bi in zr){var Li=zr[bi];if(Array.isArray(Li))for(var sa,$o=l(Li);!(sa=$o()).done;)Ni[sa.value]=bi;else Ni[Li]=bi}var rs={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 ca(nA){return rs[nA]?"rtl":"ltr"}for(var is=function(){function nA(b,K,M,y,z){if(this.glyphs=b,this.positions=null,this.script=M,this.language=y||null,this.direction=z||ca(M),this.features={},Array.isArray(K))for(var oA,tA=l(K);!(oA=tA()).done;)this.features[oA.value]=!0;else"object"==typeof K&&(this.features=K)}return s(nA,[{key:"advanceWidth",get:function(){for(var y,K=0,M=l(this.positions);!(y=M()).done;)K+=y.value.xAdvance;return K}},{key:"advanceHeight",get:function(){for(var y,K=0,M=l(this.positions);!(y=M()).done;)K+=y.value.yAdvance;return K}},{key:"bbox",get:function(){for(var K=new Pr,M=0,y=0,z=0;z>1]).firstGlyph)return null;if(MoA.lastGlyph))return 2===this.table.version?oA.value:oA.values[M-oA.firstGlyph];y=tA+1}}return null;case 6:for(var sA=0,iA=this.table.binarySearchHeader.nUnits-1;sA<=iA;){var tA,oA;if(65535===(oA=this.table.segments[tA=sA+iA>>1]).glyph)return null;if(MoA.glyph))return oA.value;sA=tA+1}}return null;case 8:return this.table.values[M-this.table.firstGlyph];default:throw new Error("Unknown lookup table format: ".concat(this.table.version))}},b.glyphsForValue=function(M){var y=[];switch(this.table.version){case 2:case 4:for(var tA,z=l(this.table.segments);!(tA=z()).done;){var oA=tA.value;if(2===this.table.version&&oA.value===M)y.push.apply(y,Ur(oA.firstGlyph,oA.lastGlyph+1));else for(var sA=0;sA=-1;){var iA=null,UA=1,kA=!0;oA===M.length||-1===oA?UA=0:65535===(iA=M[oA]).id?UA=2:null==(UA=this.lookupTable.lookup(iA.id))&&(UA=1);var gt=this.stateTable.stateArray.getItem(tA),Bt=this.stateTable.entryTable.getItem(gt[UA]);0!==UA&&2!==UA&&(z(iA,Bt,oA),kA=!(16384&Bt.flags)),tA=Bt.newState,kA&&(oA+=sA)}return M},b.traverse=function(M,y,z){if(void 0===y&&(y=0),void 0===z&&(z=new Set),!z.has(y)){z.add(y);for(var tA=this.stateTable,oA=tA.nClasses,iA=tA.entryTable,UA=tA.stateArray.getItem(y),kA=4;kA=0;)65535===M[mt].id&&M.splice(mt,1),mt--;return M},b.processSubtable=function(M,y){if(this.subtable=M,this.glyphs=y,4!==this.subtable.type){this.ligatureStack=[],this.markedGlyph=null,this.firstGlyph=null,this.lastGlyph=null,this.markedIndex=null;var z=this.getStateMachine(M),tA=this.getProcessor();return z.process(this.glyphs,!!(4194304&this.subtable.coverage),tA)}this.processNoncontextualSubstitutions(this.subtable,this.glyphs)},b.getStateMachine=function(M){return new ls(M.table.stateTable)},b.getProcessor=function(){switch(this.subtable.type){case 0:return this.processIndicRearragement;case 1:return this.processContextualSubstitution;case 2:return this.processLigature;case 4:return this.processNoncontextualSubstitutions;case 5:return this.processGlyphInsertion;default:throw new Error("Invalid morx subtable type: ".concat(this.subtable.type))}},b.processIndicRearragement=function(M,y,z){32768&y.flags&&(this.firstGlyph=z),8192&y.flags&&(this.lastGlyph=z),function(nA,b,K,M){switch(b){case 0:return nA;case 1:return Pn(nA,[K,1],[M,0]);case 2:return Pn(nA,[K,0],[M,1]);case 3:return Pn(nA,[K,1],[M,1]);case 4:return Pn(nA,[K,2],[M,0]);case 5:return Pn(nA,[K,2],[M,0],!0,!1);case 6:return Pn(nA,[K,0],[M,2]);case 7:return Pn(nA,[K,0],[M,2],!1,!0);case 8:return Pn(nA,[K,1],[M,2]);case 9:return Pn(nA,[K,1],[M,2],!1,!0);case 10:return Pn(nA,[K,2],[M,1]);case 11:return Pn(nA,[K,2],[M,1],!0,!1);case 12:return Pn(nA,[K,2],[M,2]);case 13:return Pn(nA,[K,2],[M,2],!0,!1);case 14:return Pn(nA,[K,2],[M,2],!1,!0);case 15:return Pn(nA,[K,2],[M,2],!0,!0);default:throw new Error("Unknown verb: ".concat(b))}}(this.glyphs,15&y.flags,this.firstGlyph,this.lastGlyph)},b.processContextualSubstitution=function(M,y,z){var tA=this.subtable.table.substitutionTable.items;if(65535!==y.markIndex){var oA=tA.getItem(y.markIndex);(iA=new Ei(oA).lookup((M=this.glyphs[this.markedGlyph]).id))&&(this.glyphs[this.markedGlyph]=this.font.getGlyph(iA,M.codePoints))}if(65535!==y.currentIndex){var iA,UA=tA.getItem(y.currentIndex);(iA=new Ei(UA).lookup((M=this.glyphs[z]).id))&&(this.glyphs[z]=this.font.getGlyph(iA,M.codePoints))}32768&y.flags&&(this.markedGlyph=z)},b.processLigature=function(M,y,z){if(32768&y.flags&&this.ligatureStack.push(z),8192&y.flags){for(var tA,oA=this.subtable.table.ligatureActions,sA=this.subtable.table.components,iA=this.subtable.table.ligatureList,UA=y.action,kA=!1,gt=0,qA=[],Bt=[];!kA;){var Mt,mt=this.ligatureStack.pop();(Mt=qA).unshift.apply(Mt,this.glyphs[mt].codePoints);var Gt=oA.getItem(UA++);kA=!!(2147483648&Gt);var _t=!!(1073741824&Gt),qt=(1073741823&Gt)<<2>>2;if(gt+=sA.getItem(qt+=this.glyphs[mt].id),kA||_t){var le=iA.getItem(gt);this.glyphs[mt]=this.font.getGlyph(le,qA),Bt.push(mt),gt=0,qA=[]}else this.glyphs[mt]=this.font.getGlyph(65535)}(tA=this.ligatureStack).push.apply(tA,Bt)}},b.processNoncontextualSubstitutions=function(M,y,z){var tA=new Ei(M.table.lookupTable);for(z=0;z>>5,!!(1024&y.flags)),65535!==y.currentInsertIndex&&this._insertGlyphs(z,y.currentInsertIndex,(992&y.flags)>>>5,!!(2048&y.flags))},b.getSupportedFeatures=function(){for(var z,M=[],y=l(this.morx.chains);!(z=y()).done;)for(var sA,oA=l(z.value.features);!(sA=oA()).done;){var iA=sA.value;M.push([iA.featureType,iA.featureSetting])}return M},b.generateInputs=function(M){return this.inputCache||this.generateInputCache(),this.inputCache[M]||[]},b.generateInputCache=function(){this.inputCache={};for(var y,M=l(this.morx.chains);!(y=M()).done;)for(var sA,z=y.value,tA=z.defaultFlags,oA=l(z.subtables);!(sA=oA()).done;){var iA=sA.value;iA.subFeatureFlags&tA&&this.generateInputsForSubtable(iA)}},b.generateInputsForSubtable=function(M){var y=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(kA,gt){var qA=y.glyphs;iA.push({glyphs:qA.slice(),ligatureStack:y.ligatureStack.slice()});var Bt=y.font.getGlyph(kA);sA.push(Bt),qA.push(sA[sA.length-1]),oA(qA[qA.length-1],gt,qA.length-1);for(var Mt=0,mt=0,Gt=0;Gt0&&M.applyFeatures(sA,y,z)}},nA}(),ys=["rvrn"],xs=["ccmp","locl","rlig","mark","mkmk"],Fs=["frac","numr","dnom"],Ys=["calt","clig","liga","rclt","curs","kern"],Ts={ltr:["ltra","ltrm"],rtl:["rtla","rtlm"]},Er=function(){function nA(){}return nA.plan=function(K,M,y){this.planPreprocessing(K),this.planFeatures(K),this.planPostprocessing(K,y),K.assignGlobalFeatures(M),this.assignFeatures(K,M)},nA.planPreprocessing=function(K){K.add({global:[].concat(ys,Ts[K.direction]),local:Fs})},nA.planFeatures=function(K){},nA.planPostprocessing=function(K,M){K.add([].concat(xs,Ys)),K.setFeatureOverrides(M)},nA.assignFeatures=function(K,M){for(var y=0;y0&&w.isDigit(M[tA-1].codePoints[0]);)M[tA-1].features.numr=!0,M[tA-1].features.frac=!0,tA--;for(;oAthis.index||this.index>=this.glyphs.length?null:this.glyphs[this.index]},b.next=function(){return this.move(1)},b.prev=function(){return this.move(-1)},b.peek=function(M){void 0===M&&(M=1);var y=this.index,z=this.increment(M);return this.index=y,z},b.peekIndex=function(M){void 0===M&&(M=1);var y=this.index;this.increment(M);var z=this.index;return this.index=y,z},b.increment=function(M){void 0===M&&(M=1);var y=M<0?-1:1;for(M=Math.abs(M);M--;)this.move(y);return this.glyphs[this.index]},s(nA,[{key:"cur",get:function(){return this.glyphs[this.index]||null}}]),nA}(),Ns=["DFLT","dflt","latn"],Ci=function(){function nA(K,M){this.font=K,this.table=M,this.script=null,this.scriptTag=null,this.language=null,this.languageTag=null,this.features={},this.lookups={},this.variationsIndex=K._variationProcessor?this.findVariationsIndex(K._variationProcessor.normalizedCoords):-1,this.selectScript(),this.glyphs=[],this.positions=[],this.ligatureID=1,this.currentFeature=null}var b=nA.prototype;return b.findScript=function(M){if(null==this.table.scriptList)return null;Array.isArray(M)||(M=[M]);for(var z,y=l(M);!(z=y()).done;)for(var sA,tA=z.value,oA=l(this.table.scriptList);!(sA=oA()).done;){var iA=sA.value;if(iA.tag===tA)return iA}return null},b.selectScript=function(M,y,z){var oA,tA=!1;if(!this.script||M!==this.scriptTag){if((oA=this.findScript(M))||(oA=this.findScript(Ns)),!oA)return this.scriptTag;this.scriptTag=oA.tag,this.script=oA.script,this.language=null,this.languageTag=null,tA=!0}if((!z||z!==this.direction)&&(this.direction=z||ca(M)),y&&y.length<4&&(y+=" ".repeat(4-y.length)),!y||y!==this.languageTag){this.language=null;for(var iA,sA=l(this.script.langSysRecords);!(iA=sA()).done;){var UA=iA.value;if(UA.tag===y){this.language=UA.langSys,this.languageTag=UA.tag;break}}this.language||(this.language=this.script.defaultLangSys,this.languageTag=null),tA=!0}if(tA&&(this.features={},this.language))for(var gt,kA=l(this.language.featureIndexes);!(gt=kA()).done;){var qA=gt.value,Bt=this.table.featureList[qA],Mt=this.substituteFeatureForVariations(qA);this.features[Bt.tag]=Mt||Bt.feature}return this.scriptTag},b.lookupsForFeatures=function(M,y){void 0===M&&(M=[]);for(var oA,z=[],tA=l(M);!(oA=tA()).done;){var sA=oA.value,iA=this.features[sA];if(iA)for(var kA,UA=l(iA.lookupListIndexes);!(kA=UA()).done;){var gt=kA.value;y&&-1!==y.indexOf(gt)||z.push({feature:sA,index:gt,lookup:this.table.lookupList.get(gt)})}}return z.sort(function(qA,Bt){return qA.index-Bt.index}),z},b.substituteFeatureForVariations=function(M){if(-1===this.variationsIndex)return null;for(var oA,tA=l(this.table.featureVariations.featureVariationRecords[this.variationsIndex].featureTableSubstitution.substitutions);!(oA=tA()).done;){var sA=oA.value;if(sA.featureIndex===M)return sA.alternateFeatureTable}return null},b.findVariationsIndex=function(M){var y=this.table.featureVariations;if(!y)return-1;for(var z=y.featureVariationRecords,tA=0;tA=0})},b.getClassID=function(M,y){switch(y.version){case 1:var z=M-y.startGlyph;if(z>=0&&z0&&this.codePoints.every(w.isMark),this.isBase=!this.isMark,this.isLigature=this.codePoints.length>1,this.markAttachmentType=0}}]),nA}(),Ca=function(nA){function b(){return nA.apply(this,arguments)||this}return E(b,nA),b.planFeatures=function(M){M.add(["ljmo","vjmo","tjmo"],!1)},b.assignFeatures=function(M,y){for(var z=0,tA=0;tAvr){var gt=_r(K,tA,M.features);gt.features.tjmo=!0,kA.push(gt)}return nA.splice.apply(nA,[b,1].concat(kA)),b+kA.length-1}function t0(nA,b,K){var sA,iA,UA,kA,M=nA[b],z=di(nA[b].codePoints[0]),tA=nA[b-1].codePoints[0],oA=di(tA);if(4===oA&&3===z)sA=tA,kA=M;else{2===z?(iA=nA[b-1],UA=M):(iA=nA[b-2],UA=nA[b-1],kA=M);var gt=iA.codePoints[0],qA=UA.codePoints[0];(function(b){return 4352<=b&&b<=4370})(gt)&&function(b){return 4449<=b&&b<=4469}(qA)&&(sA=Nr+28*(21*(gt-4352)+(qA-4449)))}var Bt=kA&&kA.codePoints[0]||vr;if(null!=sA&&(Bt===vr||function(b){return 1<=b&&b<=4546}(Bt))){var Mt=sA+(Bt-vr);if(K.hasGlyphForCodePoint(Mt)){var mt=2===oA?3:2;return nA.splice(b-mt+1,mt,_r(K,Mt,M.features)),b-mt+1}}return iA&&(iA.features.ljmo=!0),UA&&(UA.features.vjmo=!0),kA&&(kA.features.tjmo=!0),4===oA?(Ia(nA,b-1,K),b+1):b}function n0(nA,b,K){var M=nA[b];if(0!==K.glyphForCodePoint(nA[b].codePoints[0]).advanceWidth){var tA=function(nA){switch(di(nA)){case 4:case 5:return 1;case 2:return 2;case 3:return 3}}(nA[b-1].codePoints[0]);return nA.splice(b,1),nA.splice(b-tA,0,M)}}function r0(nA,b,K){var M=nA[b],y=nA[b].codePoints[0];if(K.hasGlyphForCodePoint(9676)){var z=_r(K,9676,M.features),tA=0===K.glyphForCodePoint(y).advanceWidth?b:b+1;nA.splice(tA,0,z),b++}return b}var pi={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"]]},de_X=1,de_N=8,de_H=16,de_ZWNJ=32,de_ZWJ=64,de_M=128,de_RS=8192,de_Repha=32768,de_Ra=65536,de_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},u0=2|de_Ra|de_CM|4|2048|4096,va=de_ZWJ|de_ZWNJ,$r=de_H|16384,Zi={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"}},f0={6078:[6081,6078],6079:[6081,6079],6080:[6081,6080],6084:[6081,6084],6085:[6081,6085]},E0=pi.decompositions,ma=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")),h0=new d({stateTable:[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,14,15,16,17],[0,0,0,18,19,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,28,29,30,31,32,33,0,34,0,0,35,36,0,0,37,0],[0,0,0,38,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,39,0,0,0,40,41,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,12,43,0,0,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,0,43,0,0,0,0],[0,0,0,45,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,50,0,0,51,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0],[0,0,0,53,54,55,56,57,58,0,59,0,0,60,61,0,0,62,0],[0,0,0,4,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,63,64,0,0,40,41,0,9,0,10,0,0,0,42,0,63,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,0,2,16,0],[0,0,0,18,65,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,0,0],[0,0,0,69,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,73,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,75,0,0,0,76,77,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,25,79,0,0,0,0],[0,0,0,18,19,20,74,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,81,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,86,0,0,87,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,88,0,0,0,0,0,0,0,0],[0,0,0,18,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,89,90,0,0,76,77,0,23,0,24,0,0,0,78,0,89,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,0,0],[0,0,0,94,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,96,0,0,0,97,98,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,35,100,0,0,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,102,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,107,0,0,108,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,109,0,0,0,0,0,0,0,0],[0,0,0,28,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,110,111,0,0,97,98,0,33,0,34,0,0,0,99,0,110,0,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,0,0],[0,0,0,0,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,0,0,115,116,117,118,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,39,0,122,0,123,123,8,9,0,10,0,0,0,42,0,39,0,0],[0,124,64,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,0],[0,39,0,0,0,121,125,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,126,126,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,47,47,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,128,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,129,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,50,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,134,0,0,0,0,0,0,0,0],[0,0,0,135,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,136,0,0,0,137,138,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,60,140,0,0,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,0,140,0,0,0,0],[0,0,0,142,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,147,0,0,148,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,149,0,0,0,0,0,0,0,0],[0,0,0,53,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,150,151,0,0,137,138,0,58,0,59,0,0,0,139,0,150,0,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,0,0],[0,0,0,155,116,156,157,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,75,3,4,5,159,160,8,161,0,162,0,11,12,163,0,75,16,0],[0,0,0,0,0,40,164,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,0,165,0,0,0,0],[0,124,64,0,0,40,164,0,9,0,10,0,0,0,42,0,124,0,0],[0,0,0,0,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,71,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,167,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,168,0,0,0,0,0,0,0,0],[0,0,0,0,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,0,79,0,0,0,0],[0,0,0,169,170,171,172,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,75,0,176,0,177,177,22,23,0,24,0,0,0,78,0,75,0,0],[0,178,90,0,0,0,0,0,0,0,0,0,0,0,0,0,178,0,0],[0,75,0,0,0,175,179,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,180,180,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,83,83,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,182,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,183,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,86,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,188,0,0,0,0,0,0,0,0],[0,0,0,189,170,190,191,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,76,193,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,0,194,0,0,0,0],[0,178,90,0,0,76,193,0,23,0,24,0,0,0,78,0,178,0,0],[0,0,0,0,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,195,196,197,198,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,96,0,202,0,203,203,32,33,0,34,0,0,0,99,0,96,0,0],[0,204,111,0,0,0,0,0,0,0,0,0,0,0,0,0,204,0,0],[0,96,0,0,0,201,205,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,206,206,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,104,104,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,208,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,209,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,107,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,214,0,0,0,0,0,0,0,0],[0,0,0,215,196,216,217,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,97,219,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,0,220,0,0,0,0],[0,204,111,0,0,97,219,0,33,0,34,0,0,0,99,0,204,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,223,0,0,0,40,224,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,119,225,0,0,0,0],[0,0,0,115,116,117,222,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,115,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,226,64,0,0,40,224,0,9,0,10,0,0,0,42,0,226,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,39,0,0,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,44,44,8,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,227,0,228,229,0,9,0,10,0,0,230,0,0,0,0,0],[0,39,0,122,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,231,231,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,232,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,131,131,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,234,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,235,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,0,0,240,241,242,243,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,136,0,247,0,248,248,57,58,0,59,0,0,0,139,0,136,0,0],[0,249,151,0,0,0,0,0,0,0,0,0,0,0,0,0,249,0,0],[0,136,0,0,0,246,250,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,251,251,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,144,144,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,253,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,254,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,147,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,259,0,0,0,0,0,0,0,0],[0,0,0,260,241,261,262,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,137,264,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,0,265,0,0,0,0],[0,249,151,0,0,137,264,0,58,0,59,0,0,0,139,0,249,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,158,225,0,0,0,0],[0,0,0,155,116,156,222,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,155,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,43,266,266,8,161,0,24,0,0,12,267,0,0,0,0],[0,75,0,176,43,268,268,269,161,0,24,0,0,0,267,0,75,0,0],[0,0,0,0,0,270,0,0,271,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,272,0,0,0,0,0,0,0,0],[0,273,274,0,0,40,41,0,9,0,10,0,0,0,42,0,273,0,0],[0,0,0,40,0,123,123,8,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,121,275,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,276,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,279,0,0,0,76,280,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,173,281,0,0,0,0],[0,0,0,169,170,171,278,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,169,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,282,90,0,0,76,280,0,23,0,24,0,0,0,78,0,282,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,75,0,0,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,80,80,22,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,283,0,284,285,0,23,0,24,0,0,286,0,0,0,0,0],[0,75,0,176,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,287,287,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,288,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,185,185,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,290,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,291,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,192,281,0,0,0,0],[0,0,0,189,170,190,278,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,189,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,76,0,177,177,22,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,175,296,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,299,0,0,0,97,300,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,199,301,0,0,0,0],[0,0,0,195,196,197,298,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,195,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,302,111,0,0,97,300,0,33,0,34,0,0,0,99,0,302,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,96,0,0,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,101,101,32,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,303,0,304,305,0,33,0,34,0,0,306,0,0,0,0,0],[0,96,0,202,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,307,307,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,308,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,211,211,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,310,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,311,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,218,301,0,0,0,0],[0,0,0,215,196,216,298,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,215,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,97,0,203,203,32,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,201,316,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,0,225,0,0,0,0],[0,0,0,317,318,319,320,8,9,0,10,0,0,321,322,0,0,16,0],[0,223,0,323,0,123,123,8,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,0,0,121,324,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,325,318,326,327,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,64,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,230,0,0,0,0,0],[0,0,0,227,0,228,121,0,9,0,10,0,0,230,0,0,0,0,0],[0,0,0,227,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,46,0,0],[0,0,0,0,0,329,329,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,330,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,237,237,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,332,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,333,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,337,0,0,0,137,338,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,244,339,0,0,0,0],[0,0,0,240,241,242,336,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,240,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,340,151,0,0,137,338,0,58,0,59,0,0,0,139,0,340,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,136,0,0,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,141,141,57,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,341,0,342,343,0,58,0,59,0,0,344,0,0,0,0,0],[0,136,0,247,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,0,0,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,345,345,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,346,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,256,256,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,348,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,349,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,263,339,0,0,0,0],[0,0,0,260,241,261,336,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,260,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,137,0,248,248,57,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,246,354,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,126,126,8,23,0,0,0,0,0,0,0,0,0,0],[0,355,90,0,0,121,125,0,9,0,10,0,0,0,42,0,355,0,0],[0,0,0,0,0,356,356,269,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,357,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,270,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,363,0,0,0,0,0,0,0,0],[0,0,0,364,116,365,366,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,40,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,0,281,0,0,0,0],[0,0,0,369,370,371,372,22,23,0,24,0,0,373,374,0,0,27,0],[0,279,0,375,0,177,177,22,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,0,0,175,376,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,377,370,378,379,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,90,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,286,0,0,0,0,0],[0,0,0,283,0,284,175,0,23,0,24,0,0,286,0,0,0,0,0],[0,0,0,283,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,82,0,0],[0,0,0,0,0,381,381,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,382,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,293,293,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,384,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,385,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,76,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,0,301,0,0,0,0],[0,0,0,387,388,389,390,32,33,0,34,0,0,391,392,0,0,37,0],[0,299,0,393,0,203,203,32,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,0,0,201,394,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,395,388,396,397,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,111,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,306,0,0,0,0,0],[0,0,0,303,0,304,201,0,33,0,34,0,0,306,0,0,0,0,0],[0,0,0,303,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,0,0],[0,0,0,0,0,399,399,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,400,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,313,313,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,402,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,403,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,97,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,407,0,0,0,40,408,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,321,409,0,0,0,0],[0,0,0,317,318,319,406,8,9,0,10,0,0,321,322,0,0,16,0],[0,0,0,317,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,410,64,0,0,40,408,0,9,0,10,0,0,0,42,0,410,0,0],[0,223,0,0,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,323,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,328,409,0,0,0,0],[0,0,0,325,318,326,406,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,325,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,0,0,0,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,130,0,0],[0,0,0,0,0,411,411,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,412,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,413,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,0,339,0,0,0,0],[0,0,0,414,415,416,417,57,58,0,59,0,0,418,419,0,0,62,0],[0,337,0,420,0,248,248,57,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,0,0,246,421,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,422,415,423,424,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,151,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,344,0,0,0,0,0],[0,0,0,341,0,342,246,0,58,0,59,0,0,344,0,0,0,0,0],[0,0,0,341,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,0],[0,0,0,0,0,426,426,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,427,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,351,351,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,429,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,430,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,137,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,432,116,433,434,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,0,0,180,180,269,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,359,359,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,437,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,438,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,443,274,0,0,0,0,0,0,0,0,0,0,0,0,0,443,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,367,225,0,0,0,0],[0,0,0,364,116,365,445,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,364,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,448,0,0,0,76,449,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,373,450,0,0,0,0],[0,0,0,369,370,371,447,22,23,0,24,0,0,373,374,0,0,27,0],[0,0,0,369,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,451,90,0,0,76,449,0,23,0,24,0,0,0,78,0,451,0,0],[0,279,0,0,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,375,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,380,450,0,0,0,0],[0,0,0,377,370,378,447,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,377,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,0,0,0,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,184,0,0],[0,0,0,0,0,452,452,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,453,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,454,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,457,0,0,0,97,458,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,391,459,0,0,0,0],[0,0,0,387,388,389,456,32,33,0,34,0,0,391,392,0,0,37,0],[0,0,0,387,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,460,111,0,0,97,458,0,33,0,34,0,0,0,99,0,460,0,0],[0,299,0,0,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,393,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,398,459,0,0,0,0],[0,0,0,395,388,396,456,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,395,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,0,0,0,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,210,0,0],[0,0,0,0,0,461,461,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,462,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,463,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,0,409,0,0,0,0],[0,0,0,464,465,466,467,8,9,0,10,0,0,468,469,0,0,16,0],[0,407,0,470,0,123,123,8,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,0,0,121,471,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,472,465,473,474,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,0,0,0,0,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,236,0,0],[0,0,0,0,0,0,476,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,479,0,0,0,137,480,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,418,481,0,0,0,0],[0,0,0,414,415,416,478,57,58,0,59,0,0,418,419,0,0,62,0],[0,0,0,414,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,482,151,0,0,137,480,0,58,0,59,0,0,0,139,0,482,0,0],[0,337,0,0,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,420,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,425,481,0,0,0,0],[0,0,0,422,415,423,478,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,422,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,0,0,0,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,0,0],[0,0,0,0,0,483,483,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,484,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,485,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,435,225,0,0,0,0],[0,0,0,432,116,433,445,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,432,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,486,486,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,487,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,440,440,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,489,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,490,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,495,0,496,497,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,0,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,0,225,0,0,0,0],[0,0,0,0,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,0,450,0,0,0,0],[0,0,0,499,500,501,502,22,23,0,24,0,0,503,504,0,0,27,0],[0,448,0,505,0,177,177,22,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,0,0,175,506,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,507,500,508,509,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,0,0,0,0,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,292,0,0],[0,0,0,0,0,0,511,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,0,459,0,0,0,0],[0,0,0,512,513,514,515,32,33,0,34,0,0,516,517,0,0,37,0],[0,457,0,518,0,203,203,32,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,0,0,201,519,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,520,513,521,522,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,0,0,0,0,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,312,0,0],[0,0,0,0,0,0,524,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,527,0,0,0,40,528,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,468,529,0,0,0,0],[0,0,0,464,465,466,526,8,9,0,10,0,0,468,469,0,0,16,0],[0,0,0,464,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,530,64,0,0,40,528,0,9,0,10,0,0,0,42,0,530,0,0],[0,407,0,0,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,470,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,475,529,0,0,0,0],[0,0,0,472,465,473,526,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,472,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,40,0,0],[0,0,0,0,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,0,481,0,0,0,0],[0,0,0,531,532,533,534,57,58,0,59,0,0,535,536,0,0,62,0],[0,479,0,537,0,248,248,57,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,0,0,246,538,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,539,532,540,541,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,0,0,0,0,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,350,0,0],[0,0,0,0,0,0,543,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,358,0,0],[0,0,0,0,0,544,544,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,545,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,492,492,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,547,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,548,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,274,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,498,0,0,0,0,0],[0,0,0,495,0,496,368,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,495,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,553,0,0,0,76,554,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,503,555,0,0,0,0],[0,0,0,499,500,501,552,22,23,0,24,0,0,503,504,0,0,27,0],[0,0,0,499,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,556,90,0,0,76,554,0,23,0,24,0,0,0,78,0,556,0,0],[0,448,0,0,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,505,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,510,555,0,0,0,0],[0,0,0,507,500,508,552,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,507,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,559,0,0,0,97,560,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,516,561,0,0,0,0],[0,0,0,512,513,514,558,32,33,0,34,0,0,516,517,0,0,37,0],[0,0,0,512,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,562,111,0,0,97,560,0,33,0,34,0,0,0,99,0,562,0,0],[0,457,0,0,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,518,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,523,561,0,0,0,0],[0,0,0,520,513,521,558,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,520,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0],[0,0,0,0,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,0,529,0,0,0,0],[0,0,0,563,66,564,565,8,9,0,10,0,0,566,68,0,0,16,0],[0,527,0,567,0,123,123,8,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,0,0,121,568,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,569,66,570,571,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,575,0,0,0,137,576,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,535,577,0,0,0,0],[0,0,0,531,532,533,574,57,58,0,59,0,0,535,536,0,0,62,0],[0,0,0,531,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,578,151,0,0,137,576,0,58,0,59,0,0,0,139,0,578,0,0],[0,479,0,0,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,537,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,542,577,0,0,0,0],[0,0,0,539,532,540,574,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,539,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,137,0,0],[0,0,0,0,0,0,0,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,439,0,0],[0,0,0,0,0,579,579,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,580,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,581,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,0,555,0,0,0,0],[0,0,0,582,91,583,584,22,23,0,24,0,0,585,93,0,0,27,0],[0,553,0,586,0,177,177,22,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,0,0,175,587,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,588,91,589,590,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,0,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,0,561,0,0,0,0],[0,0,0,592,112,593,594,32,33,0,34,0,0,595,114,0,0,37,0],[0,559,0,596,0,203,203,32,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,0,0,201,597,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,598,112,599,600,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,566,165,0,0,0,0],[0,0,0,563,66,564,67,8,9,0,10,0,0,566,68,0,0,16,0],[0,0,0,563,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,527,0,0,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,567,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,572,165,0,0,0,0],[0,0,0,569,66,570,67,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,569,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,0,577,0,0,0,0],[0,0,0,603,152,604,605,57,58,0,59,0,0,606,154,0,0,62,0],[0,575,0,607,0,248,248,57,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,0,0,246,608,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,609,152,610,611,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,0,0,0,0,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,491,0,0],[0,0,0,0,0,0,613,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,585,194,0,0,0,0],[0,0,0,582,91,583,92,22,23,0,24,0,0,585,93,0,0,27,0],[0,0,0,582,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,553,0,0,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,586,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,591,194,0,0,0,0],[0,0,0,588,91,589,92,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,588,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,595,220,0,0,0,0],[0,0,0,592,112,593,113,32,33,0,34,0,0,595,114,0,0,37,0],[0,0,0,592,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,559,0,0,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,596,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,601,220,0,0,0,0],[0,0,0,598,112,599,113,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,598,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,606,265,0,0,0,0],[0,0,0,603,152,604,153,57,58,0,59,0,0,606,154,0,0,62,0],[0,0,0,603,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,575,0,0,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,607,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,612,265,0,0,0,0],[0,0,0,609,152,610,153,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,609,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,549,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0]],accepting:[!1,!0,!0,!0,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!1,!0,!1,!0,!0,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!1,!0,!1,!0,!0,!0,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!0,!1,!1,!0,!1,!0,!0,!1,!0,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!0,!1,!0,!1,!0,!0,!1,!1,!0,!0,!1,!1,!0,!0,!0,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!1,!0,!0,!0,!0,!1,!1,!1,!1,!1,!1,!1,!0,!0,!1,!1,!0,!0,!1,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!0,!1,!0,!0,!1,!1,!1,!1,!1,!0,!0,!1,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!0,!1,!1,!1,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!0,!0,!1,!0,!0,!0,!0,!0,!1,!0,!0,!1,!0,!0,!0],tags:[[],["broken_cluster"],["consonant_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],[],["broken_cluster"],["symbol_cluster"],[],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["symbol_cluster"],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],[],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],[],[],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],["consonant_syllable"],["vowel_syllable"],["standalone_cluster"]]}),ln=function(nA){function b(){return nA.apply(this,arguments)||this}return E(b,nA),b.planFeatures=function(M){M.addStage(w0),M.addStage(["locl","ccmp"]),M.addStage(Q0),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(M0),M.addStage({local:["init"],global:["pres","abvs","blws","psts","haln","dist","abvm","blwm","calt","clig"]}),M.unicodeScript=function(nA){return Ni[nA]}(M.script),M.indicConfig=Zi[M.unicodeScript]||Zi.Default,M.isOldSpec=M.indicConfig.hasOldSpec&&"2"!==M.script[M.script.length-1]},b.assignFeatures=function(M,y){for(var z=function(sA){var iA=y[sA].codePoints[0],UA=f0[iA]||E0[iA];if(UA){var kA=UA.map(function(gt){var qA=M.font.glyphForCodePoint(gt);return new sr(M.font,qA.id,[gt],y[sA].features)});y.splice.apply(y,[sA,1].concat(kA))}},tA=y.length-1;tA>=0;tA--)z(tA)},b}(Er);function Ki(nA){return ma.get(nA.codePoints[0])>>8}function ya(nA){return 1<<(255&ma.get(nA.codePoints[0]))}T(ln,"zeroMarkWidths","NONE");var Ii=function(b,K,M,y){this.category=b,this.position=K,this.syllableType=M,this.syllable=y};function w0(nA,b){for(var z,K=0,M=0,y=l(h0.match(b.map(Ki)));!(z=y()).done;){var tA=z.value,oA=tA[0],sA=tA[1],iA=tA[2];if(oA>M){++K;for(var UA=M;UAGt);break;case"First":for(var we=(mt=iA)+1;weVe&&!(mr(b[Je])||cn&&b[Je].shaperInfo.category===de_H);Je--);if(b[Je].shaperInfo.category!==de_H&&Je>Ve){var fe=b[Ve];b.splice.apply(b,[Ve,0].concat(b.splice(Ve+1,Je-Ve))),b[Je]=fe}break}for(var _e=ee.Start,Pe=iA;PeiA;$e--)if(b[$e-1].shaperInfo.position!==ee.Pre_M){xe.position=b[$e-1].shaperInfo.position;break}}else xe.position!==ee.SMVD&&(_e=xe.position)}for(var Nn=mt,Bn=mt+1;BniA&&!mr(b[bn]))}}}}function M0(nA,b,K){for(var M=K.indicConfig,y=nA._layoutEngine.engine.GSUBProcessor.features,z=0,tA=Di(b,0);z=ee.Base_C){if(oA&&sA+1ee.Base_C&&sA--;break}if(sA===tA&&zz&&!(b[kA].shaperInfo.category&(de_M|$r));)kA--;gr(b[kA])&&b[kA].shaperInfo.position!==ee.Pre_M?kA+1z;gt--)if(b[gt-1].shaperInfo.position===ee.Pre_M){var qA=gt-1;qAz&&b[Mt].shaperInfo.position===ee.SMVD;)Mt--;if(gr(b[Mt]))for(var _t=sA+1;_tz&&!(b[le-1].shaperInfo.category&(de_M|$r));)le--;if(le>z&&b[le-1].shaperInfo.category===de_M)for(var he=ae,we=sA+1;wez&&gr(b[le-1])&&le=nA.length)return b;for(var K=nA[b].shaperInfo.syllable;++b=0;tA--)z(tA)},b}(Er);function Fa(nA){return p0.get(nA.codePoints[0])}T(Ce,"zeroMarkWidths","BEFORE_GPOS");var D0=function(b,K,M){this.category=b,this.syllableType=K,this.syllable=M};function v0(nA,b){for(var y,K=0,M=l(I0.match(b.map(Fa)));!(y=M()).done;){var z=y.value,tA=z[0],oA=z[1],sA=z[2];++K;for(var iA=tA;iA<=oA;iA++)b[iA].shaperInfo=new D0(d0[Fa(b[iA])],sA[0],K);for(var UA="R"===b[tA].shaperInfo.category?1:Math.min(3,oA-tA),kA=tA;kA1)for(z=M+1;z=nA.length)return b;for(var K=nA[b].shaperInfo.syllable;++b=0;Jn--)this.glyphs.splice(le[Jn],1);return this.glyphs[this.glyphIterator.index]=se,!0}}return!1;case 5:return this.applyContext(z);case 6:return this.applyChainingContext(z);case 7:return this.applyLookup(z.lookupType,z.extension);default:throw new Error("GSUB lookupType ".concat(y," is not supported"))}},b}(Ci),S0=function(nA){function b(){return nA.apply(this,arguments)||this}E(b,nA);var K=b.prototype;return K.applyPositionValue=function(y,z){var tA=this.positions[this.glyphIterator.peekIndex(y)];null!=z.xAdvance&&(tA.xAdvance+=z.xAdvance),null!=z.yAdvance&&(tA.yAdvance+=z.yAdvance),null!=z.xPlacement&&(tA.xOffset+=z.xPlacement),null!=z.yPlacement&&(tA.yOffset+=z.yPlacement);var oA=this.font._variationProcessor,sA=this.font.GDEF&&this.font.GDEF.itemVariationStore;oA&&sA&&(z.xPlaDevice&&(tA.xOffset+=oA.getDelta(sA,z.xPlaDevice.a,z.xPlaDevice.b)),z.yPlaDevice&&(tA.yOffset+=oA.getDelta(sA,z.yPlaDevice.a,z.yPlaDevice.b)),z.xAdvDevice&&(tA.xAdvance+=oA.getDelta(sA,z.xAdvDevice.a,z.xAdvDevice.b)),z.yAdvDevice&&(tA.yAdvance+=oA.getDelta(sA,z.yAdvDevice.a,z.yAdvDevice.b)))},K.applyLookup=function(y,z){switch(y){case 1:var tA=this.coverageIndex(z.coverage);if(-1===tA)return!1;switch(z.version){case 1:this.applyPositionValue(0,z.value);break;case 2:this.applyPositionValue(0,z.values.get(tA))}return!0;case 2:var oA=this.glyphIterator.peek();if(!oA)return!1;var sA=this.coverageIndex(z.coverage);if(-1===sA)return!1;switch(z.version){case 1:for(var kA,UA=l(z.pairSets.get(sA));!(kA=UA()).done;){var gt=kA.value;if(gt.secondGlyph===oA.id)return this.applyPositionValue(0,gt.value1),this.applyPositionValue(1,gt.value2),!0}return!1;case 2:var qA=this.getClassID(this.glyphIterator.cur.id,z.classDef1),Bt=this.getClassID(oA.id,z.classDef2);if(-1===qA||-1===Bt)return!1;var Mt=z.classRecords.get(qA).get(Bt);return this.applyPositionValue(0,Mt.value1),this.applyPositionValue(1,Mt.value2),!0}case 3:var mt=this.glyphIterator.peekIndex(),Gt=this.glyphs[mt];if(!Gt)return!1;var _t=z.entryExitRecords[this.coverageIndex(z.coverage)];if(!_t||!_t.exitAnchor)return!1;var qt=z.entryExitRecords[this.coverageIndex(z.coverage,Gt.id)];if(!qt||!qt.entryAnchor)return!1;var ae=this.getAnchor(qt.entryAnchor),le=this.getAnchor(_t.exitAnchor),he=this.positions[this.glyphIterator.index],we=this.positions[mt];switch(this.direction){case"ltr":he.xAdvance=le.x+he.xOffset;var Ge=ae.x+we.xOffset;we.xAdvance-=Ge,we.xOffset-=Ge;break;case"rtl":he.xAdvance-=Ge=le.x+he.xOffset,he.xOffset-=Ge,we.xAdvance=ae.x+we.xOffset}return this.glyphIterator.flags.rightToLeft?(this.glyphIterator.cur.cursiveAttachment=mt,he.yOffset=ae.y-le.y):(Gt.cursiveAttachment=this.glyphIterator.index,he.yOffset=le.y-ae.y),!0;case 4:var sn=this.coverageIndex(z.markCoverage);if(-1===sn)return!1;for(var He=this.glyphIterator.index;--He>=0&&(this.glyphs[He].isMark||this.glyphs[He].ligatureComponent>0););if(He<0)return!1;var se=this.coverageIndex(z.baseCoverage,this.glyphs[He].id);if(-1===se)return!1;var cn=z.markArray[sn];return this.applyAnchor(cn,z.baseArray[se][cn.class],He),!0;case 5:var Je=this.coverageIndex(z.markCoverage);if(-1===Je)return!1;for(var fe=this.glyphIterator.index;--fe>=0&&this.glyphs[fe].isMark;);if(fe<0)return!1;var _e=this.coverageIndex(z.ligatureCoverage,this.glyphs[fe].id);if(-1===_e)return!1;var Pe=z.ligatureArray[_e],xe=this.glyphIterator.cur,$e=this.glyphs[fe],Nn=$e.ligatureID&&$e.ligatureID===xe.ligatureID&&xe.ligatureComponent>0?Math.min(xe.ligatureComponent,$e.codePoints.length)-1:$e.codePoints.length-1,Bn=z.markArray[Je];return this.applyAnchor(Bn,Pe[Nn][Bn.class],fe),!0;case 6:var Jn=this.coverageIndex(z.mark1Coverage);if(-1===Jn)return!1;var kn=this.glyphIterator.peekIndex(-1),Dn=this.glyphs[kn];if(!Dn||!Dn.isMark)return!1;var Qn=this.glyphIterator.cur,jn=!1;if(Qn.ligatureID===Dn.ligatureID?Qn.ligatureID?Qn.ligatureComponent===Dn.ligatureComponent&&(jn=!0):jn=!0:(Qn.ligatureID&&!Qn.ligatureComponent||Dn.ligatureID&&!Dn.ligatureComponent)&&(jn=!0),!jn)return!1;var Zn=this.coverageIndex(z.mark2Coverage,Dn.id);if(-1===Zn)return!1;var pe=z.mark1Array[Jn];return this.applyAnchor(pe,z.mark2Array[Zn][pe.class],kn),!0;case 7:return this.applyContext(z);case 8:return this.applyChainingContext(z);case 9:return this.applyLookup(z.lookupType,z.extension);default:throw new Error("Unsupported GPOS table: ".concat(y))}},K.applyAnchor=function(y,z,tA){var oA=this.getAnchor(z),sA=this.getAnchor(y.markAnchor),UA=this.positions[this.glyphIterator.index];UA.xOffset=oA.x-sA.x,UA.yOffset=oA.y-sA.y,this.glyphIterator.cur.markAttachment=tA},K.getAnchor=function(y){var z=y.xCoordinate,tA=y.yCoordinate,oA=this.font._variationProcessor,sA=this.font.GDEF&&this.font.GDEF.itemVariationStore;return oA&&sA&&(y.xDeviceTable&&(z+=oA.getDelta(sA,y.xDeviceTable.a,y.xDeviceTable.b)),y.yDeviceTable&&(tA+=oA.getDelta(sA,y.yDeviceTable.a,y.yDeviceTable.b))),{x:z,y:tA}},K.applyFeatures=function(y,z,tA){nA.prototype.applyFeatures.call(this,y,z,tA);for(var oA=0;oA>16;if(0===y)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(y){case 1:return 113824<=M&&M<=113827||119155<=M&&M<=119162;case 14:return 917504<=M&&M<=921599;default:return!1}},b.getAvailableFeatures=function(M,y){var z=[];return this.engine&&z.push.apply(z,this.engine.getAvailableFeatures(M,y)),this.font.kern&&-1===z.indexOf("kern")&&z.push("kern"),z},b.stringsForGlyph=function(M){for(var oA,y=new Set,tA=l(this.font._cmapProcessor.codePointsForGlyph(M));!(oA=tA()).done;)y.add(String.fromCodePoint(oA.value));if(this.engine&&this.engine.stringsForGlyph)for(var UA,iA=l(this.engine.stringsForGlyph(M));!(UA=iA()).done;)y.add(UA.value);return Array.from(y)},nA}(),z0={moveTo:"M",lineTo:"L",quadraticCurveTo:"Q",bezierCurveTo:"C",closePath:"Z"},mi=function(){function nA(){this.commands=[],this._bbox=null,this._cbox=null}var b=nA.prototype;return b.toFunction=function(){var M=this;return function(y){M.commands.forEach(function(z){return y[z.command].apply(y,z.args)})}},b.toSVG=function(){return this.commands.map(function(y){var z=y.args.map(function(tA){return Math.round(100*tA)/100});return"".concat(z0[y.command]).concat(z.join(" "))}).join("")},b.mapPoints=function(M){for(var tA,y=new nA,z=l(this.commands);!(tA=z()).done;){for(var oA=tA.value,sA=[],iA=0;iA0&&this.codePoints.every(w.isMark),this.isLigature=this.codePoints.length>1}var b=nA.prototype;return b._getPath=function(){return new mi},b._getCBox=function(){return this.path.cbox},b._getBBox=function(){return this.path.bbox},b._getTableMetrics=function(M){if(this.id0)sA=Math.abs(UA.typoAscender-UA.typoDescender),iA=UA.typoAscender-M.maxY;else{var kA=this._font.hhea;sA=Math.abs(kA.ascent-kA.descent),iA=kA.ascent-M.maxY}return this._font._variationProcessor&&this._font.HVAR&&(z+=this._font._variationProcessor.getAdvanceAdjustment(this.id,this._font.HVAR)),this._metrics={advanceWidth:z,advanceHeight:sA,leftBearing:tA,topBearing:iA}},b.getScaledPath=function(M){return this.path.scale(1/this._font.unitsPerEm*M)},b._getName=function(){var M=this._font.post;if(!M)return null;switch(M.version){case 1:return Ai[this.id];case 2:var y=M.glyphNameIndex[this.id];return y0?this._decodeSimple(sA,tA):sA.numberOfContours<0&&this._decodeComposite(sA,tA,oA),sA},K._decodeSimple=function(y,z){y.points=[];var tA=new e.Array(e.uint16,y.numberOfContours).decode(z);y.instructions=new e.Array(e.uint8,e.uint16).decode(z);for(var oA=[],sA=tA[tA.length-1]+1;oA.length=0,0,0);y.points.push(qA)}var Bt=0;for(gt=0;gt>1,iA.length=0}function cn(Je,fe){Gt&&sA.closePath(),sA.moveTo(Je,fe),Gt=!0}return function Je(){for(;z.pos1&&He(),Bt+=iA.shift(),cn(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 _e=6===fe;iA.length>=1;)_e?qA+=iA.shift():Bt+=iA.shift(),sA.lineTo(qA,Bt),_e=!_e;break;case 8:for(;iA.length>0;){var pe=qA+iA.shift(),ze=Bt+iA.shift(),Fe=pe+iA.shift(),Xe=ze+iA.shift();qA=Fe+iA.shift(),Bt=Xe+iA.shift(),sA.bezierCurveTo(pe,ze,Fe,Xe,qA,Bt)}break;case 10:var Pe=iA.pop()+he,xe=le[Pe];if(xe){mt[Pe]=!0;var $e=z.pos,Nn=oA;z.pos=xe.offset,oA=xe.offset+xe.length,Je(),z.pos=$e,oA=Nn}break;case 11:if(y.version>=2)break;return;case 14:if(y.version>=2)break;iA.length>0&&He(),Gt&&(sA.closePath(),Gt=!1);break;case 15:if(y.version<2)throw new Error("vsindex operator not supported in CFF v1");Ge=iA.pop();break;case 16:if(y.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 Bn=sn.getBlendVector(we,Ge),pn=iA.pop(),Jn=pn*Bn.length,kn=iA.length-Jn,Dn=kn-pn,Qn=0;Qn>3;break;case 21:iA.length>2&&He(),qA+=iA.shift(),Bt+=iA.shift(),cn(qA,Bt);break;case 22:iA.length>1&&He(),cn(qA+=iA.shift(),Bt);break;case 24:for(;iA.length>=8;)pe=qA+iA.shift(),ze=Bt+iA.shift(),Fe=pe+iA.shift(),Xe=ze+iA.shift(),qA=Fe+iA.shift(),Bt=Xe+iA.shift(),sA.bezierCurveTo(pe,ze,Fe,Xe,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);pe=qA+iA.shift(),ze=Bt+iA.shift(),Fe=pe+iA.shift(),Xe=ze+iA.shift(),qA=Fe+iA.shift(),Bt=Xe+iA.shift(),sA.bezierCurveTo(pe,ze,Fe,Xe,qA,Bt);break;case 26:for(iA.length%2&&(qA+=iA.shift());iA.length>=4;)pe=qA,ze=Bt+iA.shift(),Fe=pe+iA.shift(),Xe=ze+iA.shift(),qA=Fe,Bt=Xe+iA.shift(),sA.bezierCurveTo(pe,ze,Fe,Xe,qA,Bt);break;case 27:for(iA.length%2&&(Bt+=iA.shift());iA.length>=4;)pe=qA+iA.shift(),ze=Bt,Fe=pe+iA.shift(),Xe=ze+iA.shift(),qA=Fe+iA.shift(),sA.bezierCurveTo(pe,ze,Fe,Xe,qA,Bt=Xe);break;case 28:iA.push(z.readInt16BE());break;case 29:Pe=iA.pop()+qt,(xe=_t[Pe])&&(Mt[Pe]=!0,$e=z.pos,Nn=oA,z.pos=xe.offset,oA=xe.offset+xe.length,Je(),z.pos=$e,oA=Nn);break;case 30:case 31:for(_e=31===fe;iA.length>=4;)_e?(pe=qA+iA.shift(),ze=Bt,Fe=pe+iA.shift(),Xe=ze+iA.shift(),Bt=Xe+iA.shift(),qA=Fe+(1===iA.length?iA.shift():0)):(pe=qA,ze=Bt+iA.shift(),Fe=pe+iA.shift(),Xe=ze+iA.shift(),qA=Fe+iA.shift(),Bt=Xe+(1===iA.length?iA.shift():0)),sA.bezierCurveTo(pe,ze,Fe,Xe,qA,Bt),_e=!_e;break;case 12:switch(fe=z.readUInt8()){case 3:var Oe=iA.pop(),un=iA.pop();iA.push(Oe&&un?1:0);break;case 4:Oe=iA.pop(),un=iA.pop(),iA.push(Oe||un?1:0);break;case 5:Oe=iA.pop(),iA.push(Oe?0:1);break;case 9:Oe=iA.pop(),iA.push(Math.abs(Oe));break;case 10:Oe=iA.pop(),un=iA.pop(),iA.push(Oe+un);break;case 11:Oe=iA.pop(),un=iA.pop(),iA.push(Oe-un);break;case 12:Oe=iA.pop(),un=iA.pop(),iA.push(Oe/un);break;case 14:Oe=iA.pop(),iA.push(-Oe);break;case 15:Oe=iA.pop(),un=iA.pop(),iA.push(Oe===un?1:0);break;case 18:iA.pop();break;case 20:var qi=iA.pop(),bn=iA.pop();UA[bn]=qi;break;case 21:bn=iA.pop(),iA.push(UA[bn]||0);break;case 22:var _i=iA.pop(),$i=iA.pop(),Nc=iA.pop(),bc=iA.pop();iA.push(Nc<=bc?_i:$i);break;case 23:iA.push(Math.random());break;case 24:Oe=iA.pop(),un=iA.pop(),iA.push(Oe*un);break;case 26:Oe=iA.pop(),iA.push(Math.sqrt(Oe));break;case 27:Oe=iA.pop(),iA.push(Oe,Oe);break;case 28:Oe=iA.pop(),un=iA.pop(),iA.push(un,Oe);break;case 29:(bn=iA.pop())<0?bn=0:bn>iA.length-1&&(bn=iA.length-1),iA.push(iA[bn]);break;case 30:var Yi=iA.pop(),ti=iA.pop();if(ti>=0)for(;ti>0;){for(var Aa=iA[Yi-1],Ti=Yi-2;Ti>=0;Ti--)iA[Ti+1]=iA[Ti];iA[0]=Aa,ti--}else for(;ti<0;){Aa=iA[0];for(var Si=0;Si<=Yi;Si++)iA[Si]=iA[Si+1];iA[Yi-1]=Aa,ti++}break;case 34:pe=qA+iA.shift(),ze=Bt,Fe=pe+iA.shift(),Xe=ze+iA.shift();var ei=Fe+iA.shift(),ni=Xe,ri=ei+iA.shift(),br=ni,ii=ri+iA.shift(),ai=br,oi=ii+iA.shift(),si=ai;qA=oi,Bt=si,sA.bezierCurveTo(pe,ze,Fe,Xe,ei,ni),sA.bezierCurveTo(ri,br,ii,ai,oi,si);break;case 35:for(var Qr=[],Ka=0;Ka<=5;Ka++)qA+=iA.shift(),Bt+=iA.shift(),Qr.push(qA,Bt);sA.bezierCurveTo.apply(sA,Qr.slice(0,6)),sA.bezierCurveTo.apply(sA,Qr.slice(6)),iA.shift();break;case 36:pe=qA+iA.shift(),ze=Bt+iA.shift(),Fe=pe+iA.shift(),br=ni=Xe=ze+iA.shift(),ii=(ri=(ei=Fe+iA.shift())+iA.shift())+iA.shift(),ai=br+iA.shift(),oi=ii+iA.shift(),qA=oi,Bt=si=ai,sA.bezierCurveTo(pe,ze,Fe,Xe,ei,ni),sA.bezierCurveTo(ri,br,ii,ai,oi,si);break;case 37:var Wa=qA,Va=Bt;Qr=[];for(var Xa=0;Xa<=4;Xa++)qA+=iA.shift(),Bt+=iA.shift(),Qr.push(qA,Bt);Math.abs(qA-Wa)>Math.abs(Bt-Va)?(qA+=iA.shift(),Bt=Va):(qA=Wa,Bt+=iA.shift()),Qr.push(qA,Bt),sA.bezierCurveTo.apply(sA,Qr.slice(0,6)),sA.bezierCurveTo.apply(sA,Qr.slice(6));break;default:throw new Error("Unknown op: 12 ".concat(fe))}break;default:throw new Error("Unknown op: ".concat(fe))}else if(fe<247)iA.push(fe-139);else if(fe<251){var ta=z.readUInt8();iA.push(256*(fe-247)+ta+108)}else fe<255?(ta=z.readUInt8(),iA.push(256*-(fe-251)-ta-108)):iA.push(z.readInt32BE()/65536)}}(),Gt&&sA.closePath(),sA},b}(yi),q0=new e.Struct({originX:e.uint16,originY:e.uint16,type:new e.String(4),data:new e.Buffer(function(nA){return nA.parent.buflen-nA._currentOffset})}),_0=function(nA){function b(){return nA.apply(this,arguments)||this}E(b,nA);var K=b.prototype;return K.getImageForSize=function(y){for(var z=0;z=y)break}var oA=tA.imageOffsets,sA=oA[this.id],iA=oA[this.id+1];return sA===iA?null:(this._font.stream.pos=sA,q0.decode(this._font.stream,{buflen:iA-sA}))},K.render=function(y,z){var tA=this.getImageForSize(z);null!=tA&&y.image(tA.data,{height:z,x:tA.originX,y:z/this._font.unitsPerEm*(this.bbox.minY-tA.originY)}),this._font.sbix.flags.renderOutlines&&nA.prototype.render.call(this,y,z)},b}(xi),Ra=function(b,K){this.glyph=b,this.color=K},$0=function(nA){function b(){return nA.apply(this,arguments)||this}E(b,nA);var K=b.prototype;return K._getBBox=function(){for(var y=new Pr,z=0;z>1;if(this.id<(iA=z.baseGlyphRecord[sA]).gid)oA=sA-1;else{if(!(this.id>iA.gid)){var UA=iA;break}tA=sA+1}}if(null==UA){var kA=this._font._getBaseGlyph(this.id);return[new Ra(kA,gt={red:0,green:0,blue:0,alpha:255})]}for(var qA=[],Bt=UA.firstLayerIndex;Bt=1&&y[z]=z.glyphCount)){var tA=z.offsets[M];if(tA!==z.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 UA=oA.pos;oA.pos=iA;var kA=this.decodePoints();iA=oA.pos,oA.pos=UA}var gt=y.map(function(Bn){return Bn.copy()});sA&=4095;for(var qA=0;qA=z.globalCoordCount)throw new Error("Invalid gvar table");mt=z.globalCoords[4095&Mt]}if(16384&Mt){for(var _t=[],qt=0;qtMath.max(0,y[UA]))return 0;iA=(iA*oA[UA]+Number.EPSILON)/(y[UA]+Number.EPSILON)}else{if(oA[UA]tA[UA])return 0;iA=oA[UA]sA)){var UA=tA,kA=tA;for(tA++;tA<=sA;)z[tA]&&(this.deltaInterpolate(kA+1,tA-1,kA,tA,y,M),kA=tA),tA++;kA===UA?this.deltaShift(oA,sA,kA,y,M):(this.deltaInterpolate(kA+1,sA,kA,UA,y,M),UA>0&&this.deltaInterpolate(oA,UA-1,kA,UA,y,M)),tA=sA+1}}},b.deltaInterpolate=function(M,y,z,tA,oA,sA){if(!(M>y))for(var iA=["x","y"],UA=0;UAoA[tA][kA]){var gt=z;z=tA,tA=gt}var qA=oA[z][kA],Bt=oA[tA][kA],Mt=sA[z][kA],mt=sA[tA][kA];if(qA!==Bt||Mt===mt)for(var Gt=qA===Bt?0:(mt-Mt)/(Bt-qA),_t=M;_t<=y;_t++){var qt=oA[_t][kA];qt<=qA?qt+=Mt-qA:qt>=Bt?qt+=mt-Bt:qt=Mt+(qt-qA)*Gt,sA[_t][kA]=qt}}},b.deltaShift=function(M,y,z,tA,oA){var sA=oA[z].x-tA[z].x,iA=oA[z].y-tA[z].y;if(0!==sA||0!==iA)for(var UA=M;UA<=y;UA++)UA!==z&&(oA[UA].x+=sA,oA[UA].y+=iA)},b.getAdvanceAdjustment=function(M,y){var z,tA;if(y.advanceWidthMapping){var oA=M;oA>=y.advanceWidthMapping.mapCount&&(oA=y.advanceWidthMapping.mapCount-1);var iA=y.advanceWidthMapping.mapData[oA];z=iA.outerIndex,tA=iA.innerIndex}else z=0,tA=M;return this.getDelta(y.itemVariationStore,z,tA)},b.getDelta=function(M,y,z){if(y>=M.itemVariationData.length)return 0;var tA=M.itemVariationData[y];if(z>=tA.deltaSets.length)return 0;for(var oA=tA.deltaSets[z],sA=this.getBlendVector(M,y),iA=0,UA=0;UAqA.peakCoord||qA.peakCoord>qA.endCoord||qA.startCoord<0&&qA.endCoord>0&&0!==qA.peakCoord||0===qA.peakCoord?1:tA[gt]qA.endCoord?0:tA[gt]===qA.peakCoord?1:tA[gt]=0&&K<=255?1:2},nA.encode=function(K,M){M>=0&&M<=255?K.writeUInt8(M):K.writeInt16BE(M)},nA}(),Oa=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(Ja,0),yPoints:new e.Array(Ja,0)}),Ec=function(){function nA(){}var b=nA.prototype;return b.encodeSimple=function(M,y){void 0===y&&(y=[]);for(var z=[],tA=[],oA=[],sA=[],iA=0,UA=0,kA=0,gt=0,qA=0,Bt=0;Bt0&&(sA.push(iA),iA=0),sA.push(qt),gt=qt),UA=Gt,kA=_t,qA++}"closePath"===Mt.command&&z.push(qA-1)}M.commands.length>1&&"closePath"!==M.commands[M.commands.length-1].command&&z.push(qA-1);var we=M.bbox,Ge={numberOfContours:z.length,xMin:we.minX,yMin:we.minY,xMax:we.maxX,yMax:we.maxY,endPtsOfContours:z,instructions:y,flags:sA,xPoints:tA,yPoints:oA},sn=Oa.size(Ge),He=4-sn%4,se=new e.EncodeStream(sn+He);return Oa.encode(se,Ge),0!==He&&se.fill(0,He),se.buffer},b._encodePoint=function(M,y,z,tA,oA,sA){var iA=M-y;return M===y?tA|=sA:(-255<=iA&&iA<=255&&(tA|=oA,iA<0?iA=-iA:tA|=sA),z.push(iA)),tA},nA}(),hc=function(nA){function b(M){var y;return(y=nA.call(this,M)||this).glyphEncoder=new Ec,y}E(b,nA);var K=b.prototype;return K._addGlyph=function(y){var z=this.font.getGlyph(y),tA=z._decode(),oA=this.font.loca.offsets[y],sA=this.font.loca.offsets[y+1],iA=this.font._getTableStream("glyf");iA.pos+=oA;var UA=iA.readBuffer(sA-oA);if(tA&&tA.numberOfContours<0){UA=c.from(UA);for(var gt,kA=l(tA.components);!(gt=kA()).done;){var qA=gt.value;y=this.includeGlyph(qA.glyphID),UA.writeUInt16BE(y,qA.pos)}}else tA&&this.font._variationProcessor&&(UA=this.glyphEncoder.encodeSimple(z.path,tA.instructions));return this.glyf.push(UA),this.loca.offsets.push(this.offset),this.hmtx.metrics.push({advance:z.advanceWidth,bearing:z._getMetrics().leftBearing}),this.offset+=UA.length,this.glyf.length-1},K.encode=function(y){this.glyf=[],this.offset=0,this.loca={offsets:[],version:this.font.loca.version},this.hmtx={metrics:[],bearings:[]};for(var z=0;z255?2:1,ranges:[{first:1,nLeft:this.charstrings.length-2}]},tA=Object.assign({},this.cff.topDict);tA.Private=null,tA.charset=z,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,y,{get:this._getTable.bind(this,z)})}}nA.probe=function(M){var y=M.toString("ascii",0,4);return"true"===y||"OTTO"===y||y===String.fromCharCode(0,1,0,0)};var b=nA.prototype;return b.setDefaultLanguage=function(M){void 0===M&&(M=null),this.defaultLanguage=M},b._getTable=function(M){if(!(M.tag in this._tables))try{this._tables[M.tag]=this._decodeTable(M)}catch(y){v.logErrors&&(console.error("Error decoding table ".concat(M.tag)),console.error(y.stack))}return this._tables[M.tag]},b._getTableStream=function(M){var y=this.directory.tables[M];return y?(this.stream.pos=y.offset,this.stream):null},b._decodeDirectory=function(){return this.directory=li.decode(this.stream,{_startOffset:0})},b._decodeTable=function(M){var y=this.stream.pos,z=this._getTableStream(M.tag),tA=re[M.tag].decode(z,this,M.length);return this.stream.pos=y,tA},b.getName=function(M,y){void 0===y&&(y=this.defaultLanguage||v.defaultLanguage);var z=this.name&&this.name.records[M];return z&&(z[y]||z[this.defaultLanguage]||z[v.defaultLanguage]||z.en||z[Object.keys(z)[0]])||null},b.hasGlyphForCodePoint=function(M){return!!this._cmapProcessor.lookup(M)},b.glyphForCodePoint=function(M){return this.getGlyph(this._cmapProcessor.lookup(M),[M])},b.glyphsForString=function(M){for(var y=[],z=M.length,tA=0,oA=-1,sA=-1;tA<=z;){var iA=0,UA=0;if(tA>>6&3},transformed:function(b){return"glyf"===b.tag||"loca"===b.tag?0===b.transformVersion:0!==b.transformVersion},transformLength:new e.Optional(Fi,function(nA){return nA.transformed})}),ka=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(pc,"numTables")});ka.process=function(){for(var nA={},b=0;b0){for(var iA=[],UA=0,kA=0;kA>7);if((iA&=127)<10)oA=0,sA=er(iA,((14&iA)<<7)+b.readUInt8());else if(iA<20)oA=er(iA,((iA-10&14)<<7)+b.readUInt8()),sA=0;else if(iA<84)oA=er(iA,1+(48&(kA=iA-20))+((gt=b.readUInt8())>>4)),sA=er(iA>>1,1+((12&kA)<<2)+(15>));else if(iA<120){var kA;oA=er(iA,1+((kA=iA-84)/12<<8)+b.readUInt8()),sA=er(iA>>1,1+(kA%12>>2<<8)+b.readUInt8())}else if(iA<124){var gt=b.readUInt8(),qA=b.readUInt8();oA=er(iA,(gt<<4)+(qA>>4)),sA=er(iA>>1,((15&qA)<<8)+b.readUInt8())}else oA=er(iA,b.readUInt16BE()),sA=er(iA>>1,b.readUInt16BE());z.push(new Br(UA,!1,y+=oA,M+=sA))}return z}var Fc=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}}),Yc=function(){function nA(K){if(this.stream=K,"ttcf"!==K.readString(4))throw new Error("Not a TrueType collection");this.header=Fc.decode(K)}return nA.probe=function(M){return"ttcf"===M.toString("ascii",0,4)},nA.prototype.getFont=function(M){for(var z,y=l(this.header.offsets);!(z=y()).done;){var tA=z.value,oA=new e.DecodeStream(this.stream.buffer);oA.pos=tA;var sA=new yr(oA);if(sA.postscriptName===M)return sA}return null},s(nA,[{key:"fonts",get:function(){for(var z,M=[],y=l(this.header.offsets);!(z=y()).done;){var tA=z.value,oA=new e.DecodeStream(this.stream.buffer);oA.pos=tA,M.push(new yr(oA))}return M}}]),nA}(),Tc=new e.String(e.uint8),Sc=(new e.Struct({len:e.uint32,buf:new e.Buffer("len")}),new e.Struct({id:e.uint16,nameOffset:e.int16,attr:e.uint8,dataOffset:e.uint24,handle:e.uint32})),Uc=new e.Struct({name:new e.String(4),maxTypeIndex:e.uint16,refList:new e.Pointer(e.uint16,new e.Array(Sc,function(nA){return nA.maxTypeIndex+1}),{type:"parent"})}),Pc=new e.Struct({length:e.uint16,types:new e.Array(Uc,function(nA){return nA.length+1})}),zc=new e.Struct({reserved:new e.Reserved(e.uint8,24),typeList:new e.Pointer(e.uint16,Pc),nameListOffset:new e.Pointer(e.uint16,"void")}),Za=new e.Struct({dataOffset:e.uint32,map:new e.Pointer(e.uint32,zc),dataLength:e.uint32,mapLength:e.uint32}),Rc=function(){function nA(K){this.stream=K,this.header=Za.decode(this.stream);for(var y,M=l(this.header.map.typeList.types);!(y=M()).done;){for(var oA,z=y.value,tA=l(z.refList);!(oA=tA()).done;){var sA=oA.value;sA.nameOffset>=0?(this.stream.pos=sA.nameOffset+this.header.map.nameListOffset,sA.name=Tc.decode(this.stream)):sA.name=null}"sfnt"===z.name&&(this.sfnt=z)}}return nA.probe=function(M){var y=new e.DecodeStream(M);try{var z=Za.decode(y)}catch(iA){return!1}for(var oA,tA=l(z.map.typeList.types);!(oA=tA()).done;)if("sfnt"===oA.value.name)return!0;return!1},nA.prototype.getFont=function(M){if(!this.sfnt)return null;for(var z,y=l(this.sfnt.refList);!(z=y()).done;){var sA=new e.DecodeStream(this.stream.buffer.slice(this.header.dataOffset+z.value.dataOffset+4)),iA=new yr(sA);if(iA.postscriptName===M)return iA}return null},s(nA,[{key:"fonts",get:function(){for(var z,M=[],y=l(this.sfnt.refList);!(z=y()).done;){var sA=new e.DecodeStream(this.stream.buffer.slice(this.header.dataOffset+z.value.dataOffset+4));M.push(new yr(sA))}return M}}]),nA}();v.registerFormat(yr),v.registerFormat(Qc),v.registerFormat(Ic),v.registerFormat(Yc),v.registerFormat(Rc),Y.exports=v},7337:function(Y,I,n){"use strict";var c=n(4781),r=n(9742),a=n(2055),s=a.BK,E=a.CR,o=a.LF,l=a.NL,h=a.SG,u=a.WJ,C=a.SP,e=a.ZWJ,f=a.BA,g=a.HY,w=a.NS,Q=a.AI,d=a.AL,F=a.CJ,m=a.HL,p=a.RI,D=a.SA,v=a.XX,P=n(8383),T=P.DI_BRK,x=P.IN_BRK,R=P.CI_BRK,N=P.CP_BRK,aA=P.pairTable,gA=new c(r.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(xA){switch(xA){case Q:case D:case h:case v:return d;case F:return w;default:return xA}},cA=function(xA){switch(xA){case o:case l:return s;case C:return u;default:return xA}},lA=function(xA,_){void 0===_&&(_=!1),this.position=xA,this.required=_};Y.exports=function(){function vA(_){this.string=_,this.pos=0,this.lastPos=0,this.curClass=null,this.nextClass=null,this.LB8a=!1,this.LB21a=!1,this.LB30a=0}var xA=vA.prototype;return xA.nextCodePoint=function(){var QA=this.string.charCodeAt(this.pos++),uA=this.string.charCodeAt(this.pos);return 55296<=QA&&QA<=56319&&56320<=uA&&uA<=57343?(this.pos++,1024*(QA-55296)+(uA-56320)+65536):QA},xA.nextCharClass=function(){return MA(gA.get(this.nextCodePoint()))},xA.getSimpleBreak=function(){switch(this.nextClass){case C:return!1;case s:case o:case l:return this.curClass=s,!1;case E:return this.curClass=E,!1}return null},xA.getPairTableBreak=function(QA){var uA=!1;switch(aA[this.curClass][this.nextClass]){case T:uA=!0;break;case x:uA=QA===C;break;case R:if(!(uA=QA===C))return!1;break;case N:if(QA!==C)return uA}return this.LB8a&&(uA=!1),!this.LB21a||this.curClass!==g&&this.curClass!==f?this.LB21a=this.curClass===m:(uA=!1,this.LB21a=!1),this.curClass===p?(this.LB30a++,2==this.LB30a&&this.nextClass===p&&(uA=!0,this.LB30a=0)):this.LB30a=0,this.curClass=this.nextClass,uA},xA.nextBreak=function(){if(null==this.curClass){var QA=this.nextCharClass();this.curClass=cA(QA),this.nextClass=QA,this.LB8a=QA===e,this.LB30a=0}for(;this.pos=VA)return $;switch($){case"%s":return String(GA[TA++]);case"%d":return Number(GA[TA++]);case"%j":try{return JSON.stringify(GA[TA++])}catch(W){return"[Circular]"}default:return $}}),J=GA[TA];TA=3&&(TA.depth=arguments[2]),arguments.length>=4&&(TA.colors=arguments[3]),m(CA)?TA.showHidden=CA:CA&&I._extend(TA,CA),x(TA.showHidden)&&(TA.showHidden=!1),x(TA.depth)&&(TA.depth=2),x(TA.colors)&&(TA.colors=!1),x(TA.customInspect)&&(TA.customInspect=!0),TA.colors&&(TA.stylize=h),e(TA,uA,TA.depth)}function h(uA,CA){var TA=l.styles[CA];return TA?"\x1b["+l.colors[TA][0]+"m"+uA+"\x1b["+l.colors[TA][1]+"m":uA}function u(uA,CA){return uA}function e(uA,CA,TA){if(uA.customInspect&&CA&&AA(CA.inspect)&&CA.inspect!==I.inspect&&(!CA.constructor||CA.constructor.prototype!==CA)){var GA=CA.inspect(TA,uA);return P(GA)||(GA=e(uA,GA,TA)),GA}var VA=function(uA,CA){if(x(CA))return uA.stylize("undefined","undefined");if(P(CA)){var TA="'"+JSON.stringify(CA).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return uA.stylize(TA,"string")}return v(CA)?uA.stylize(""+CA,"number"):m(CA)?uA.stylize(""+CA,"boolean"):p(CA)?uA.stylize("null","null"):void 0}(uA,CA);if(VA)return VA;var q=Object.keys(CA),J=function(uA){var CA={};return uA.forEach(function(TA,GA){CA[TA]=!0}),CA}(q);if(uA.showHidden&&(q=Object.getOwnPropertyNames(CA)),aA(CA)&&(q.indexOf("message")>=0||q.indexOf("description")>=0))return g(CA);if(0===q.length){if(AA(CA))return uA.stylize("[Function"+(CA.name?": "+CA.name:"")+"]","special");if(R(CA))return uA.stylize(RegExp.prototype.toString.call(CA),"regexp");if(V(CA))return uA.stylize(Date.prototype.toString.call(CA),"date");if(aA(CA))return g(CA)}var hA,W="",EA=!1,DA=["{","}"];return F(CA)&&(EA=!0,DA=["[","]"]),AA(CA)&&(W=" [Function"+(CA.name?": "+CA.name:"")+"]"),R(CA)&&(W=" "+RegExp.prototype.toString.call(CA)),V(CA)&&(W=" "+Date.prototype.toUTCString.call(CA)),aA(CA)&&(W=" "+g(CA)),0!==q.length||EA&&0!=CA.length?TA<0?R(CA)?uA.stylize(RegExp.prototype.toString.call(CA),"regexp"):uA.stylize("[Object]","special"):(uA.seen.push(CA),hA=EA?function(uA,CA,TA,GA,VA){for(var q=[],J=0,$=CA.length;J<$;++J)vA(CA,String(J))?q.push(Q(uA,CA,TA,GA,String(J),!0)):q.push("");return VA.forEach(function(W){W.match(/^\d+$/)||q.push(Q(uA,CA,TA,GA,W,!0))}),q}(uA,CA,TA,J,q):q.map(function(HA){return Q(uA,CA,TA,J,HA,EA)}),uA.seen.pop(),function(uA,CA,TA){return uA.reduce(function(q,J){return J.indexOf("\n"),q+J.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?TA[0]+(""===CA?"":CA+"\n ")+" "+uA.join(",\n ")+" "+TA[1]:TA[0]+CA+" "+uA.join(", ")+" "+TA[1]}(hA,W,DA)):DA[0]+W+DA[1]}function g(uA){return"["+Error.prototype.toString.call(uA)+"]"}function Q(uA,CA,TA,GA,VA,q){var J,$,W;if((W=Object.getOwnPropertyDescriptor(CA,VA)||{value:CA[VA]}).get?$=uA.stylize(W.set?"[Getter/Setter]":"[Getter]","special"):W.set&&($=uA.stylize("[Setter]","special")),vA(GA,VA)||(J="["+VA+"]"),$||(uA.seen.indexOf(W.value)<0?($=p(TA)?e(uA,W.value,null):e(uA,W.value,TA-1)).indexOf("\n")>-1&&($=q?$.split("\n").map(function(EA){return" "+EA}).join("\n").substr(2):"\n"+$.split("\n").map(function(EA){return" "+EA}).join("\n")):$=uA.stylize("[Circular]","special")),x(J)){if(q&&VA.match(/^\d+$/))return $;(J=JSON.stringify(""+VA)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(J=J.substr(1,J.length-2),J=uA.stylize(J,"name")):(J=J.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),J=uA.stylize(J,"string"))}return J+": "+$}function F(uA){return Array.isArray(uA)}function m(uA){return"boolean"==typeof uA}function p(uA){return null===uA}function v(uA){return"number"==typeof uA}function P(uA){return"string"==typeof uA}function x(uA){return void 0===uA}function R(uA){return N(uA)&&"[object RegExp]"===MA(uA)}function N(uA){return"object"==typeof uA&&null!==uA}function V(uA){return N(uA)&&"[object Date]"===MA(uA)}function aA(uA){return N(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(),!s[uA])if(E.test(uA)){var CA=c.pid;s[uA]=function(){var TA=I.format.apply(I,arguments);console.error("%s %d: %s",uA,CA,TA)}}else s[uA]=function(){};return s[uA]},I.inspect=l,l.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]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},I.types=n(5955),I.isArray=F,I.isBoolean=m,I.isNull=p,I.isNullOrUndefined=function(uA){return null==uA},I.isNumber=v,I.isString=P,I.isSymbol=function(uA){return"symbol"==typeof uA},I.isUndefined=x,I.isRegExp=R,I.types.isRegExp=R,I.isObject=N,I.isDate=V,I.types.isDate=V,I.isError=aA,I.types.isNativeError=aA,I.isFunction=AA,I.isPrimitive=function(uA){return null===uA||"boolean"==typeof uA||"number"==typeof uA||"string"==typeof uA||"symbol"==typeof uA||void 0===uA},I.isBuffer=n(384);var lA=["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(),lA[uA.getMonth()],CA].join(" ")}function vA(uA,CA){return Object.prototype.hasOwnProperty.call(uA,CA)}I.log=function(){console.log("%s - %s",BA(),I.format.apply(I,arguments))},I.inherits=n(5717),I._extend=function(uA,CA){if(!CA||!N(CA))return uA;for(var TA=Object.keys(CA),GA=TA.length;GA--;)uA[TA[GA]]=CA[TA[GA]];return uA};var xA="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function _(uA,CA){if(!uA){var TA=new Error("Promise was rejected with a falsy value");TA.reason=uA,uA=TA}return CA(uA)}I.promisify=function(CA){if("function"!=typeof CA)throw new TypeError('The "original" argument must be of type Function');if(xA&&CA[xA]){var TA;if("function"!=typeof(TA=CA[xA]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(TA,xA,{value:TA,enumerable:!1,writable:!1,configurable:!0}),TA}function TA(){for(var GA,VA,q=new Promise(function(W,EA){GA=W,VA=EA}),J=[],$=0;$1?v.attr[D[1]]:v.val},r.prototype.toString=function(p){return this.toStringWithIndent("",p)},r.prototype.toStringWithIndent=function(p,D){var v=p+"<"+this.name,P=D&&D.compressed?"":"\n";for(var x in this.attr)Object.prototype.hasOwnProperty.call(this.attr,x)&&(v+=" "+x+'="'+F(this.attr[x])+'"');if(1===this.children.length&&"element"!==this.children[0].type)v+=">"+this.children[0].toString(D)+"";else if(this.children.length){v+=">"+P;for(var R=p+(D&&D.compressed?"":" "),N=0,V=this.children.length;N"}else D&&D.html?-1!==["area","base","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"].indexOf(this.name)?v+="/>":v+=">":v+="/>";return v},a.prototype.toString=function(p){return m(F(this.text),p)},a.prototype.toStringWithIndent=function(p,D){return p+this.toString(D)},s.prototype.toString=function(p){return""},s.prototype.toStringWithIndent=function(p,D){return p+this.toString(D)},E.prototype.toString=function(p){return"\x3c!--"+m(F(this.comment),p)+"--\x3e"},E.prototype.toStringWithIndent=function(p,D){return p+this.toString(D)},r.prototype.type="element",a.prototype.type="text",s.prototype.type="cdata",E.prototype.type="comment",function(p,D){for(var v in D)D.hasOwnProperty(v)&&(p[v]=D[v])}(o.prototype,r.prototype),o.prototype._opentag=function(p){void 0===this.children?r.call(this,p):r.prototype._opentag.apply(this,arguments)},o.prototype._doctype=function(p){this.doctype+=p};var l=null;function u(){l[0]&&l[0]._opentag.apply(l[0],arguments)}function C(){l[0]&&l[0]._closetag.apply(l[0],arguments)}function e(){l[0]&&l[0]._text.apply(l[0],arguments)}function f(){l[0]&&l[0]._cdata.apply(l[0],arguments)}function g(){l[0]&&l[0]._comment.apply(l[0],arguments)}function w(){l[0]&&l[0]._doctype.apply(l[0],arguments)}function Q(){l[0]&&l[0]._error.apply(l[0],arguments)}function F(p){return p.toString().replace(/&/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")}function m(p,D){var v=p;return D&&D.trimmed&&p.length>25&&(v=v.substring(0,25).trim()+"\u2026"),D&&D.preserveWhitespace||(v=v.trim()),v}Y.exports&&!n.g.xmldocAssumeBrowser?Y.exports.XmlDocument=o:this.XmlDocument=o}()},6255:function(Y,I,n){"use strict";"undefined"!=typeof window&&!window.Promise&&n(3867),n(4667);function r(a){this.fs=a,this.resolving={}}r.prototype.resolve=function(a){if(!this.resolving[a]){var s=this;this.resolving[a]=new Promise(function(E,o){0===a.toLowerCase().indexOf("https://")||0===a.toLowerCase().indexOf("http://")?function(a){return new Promise(function(s,E){var o=new XMLHttpRequest;o.open("GET",a,!0),o.responseType="arraybuffer",o.onreadystatechange=function(){4===o.readyState&&(o.status>=200&&o.status<300||setTimeout(function(){E(new TypeError('Failed to fetch (url: "'+a+'")'))},0))},o.onload=function(){o.status>=200&&o.status<300&&s(o.response)},o.onerror=function(){setTimeout(function(){E(new TypeError('Network request failed (url: "'+a+'")'))},0)},o.ontimeout=function(){setTimeout(function(){E(new TypeError('Network request failed (url: "'+a+'")'))},0)},o.send()})}(a).then(function(l){s.fs.writeFileSync(a,l),E()},function(l){o(l)}):E()})}return this.resolving[a]},r.prototype.resolved=function(){var a=this;return new Promise(function(s,E){Promise.all(Object.values(a.resolving)).then(function(){s()},function(o){E(o)})})},Y.exports=r},4275:function(Y,I,n){"use strict";var c=n(8823).Buffer,r=n(6225).isFunction,a=n(6225).isUndefined,o=(n(6225),n(4896).saveAs),l={Roboto:{normal:"Roboto-Regular.ttf",bold:"Roboto-Medium.ttf",italics:"Roboto-Italic.ttf",bolditalics:"Roboto-MediumItalic.ttf"}};function h(C,e,f,g){this.docDefinition=C,this.tableLayouts=e||null,this.fonts=f||l,this.vfs=g}h.prototype._createDoc=function(C,e){C=C||{},this.tableLayouts&&(C.tableLayouts=this.tableLayouts);var g=new(n(8617))(this.fonts);if(n(3857).bindFS(this.vfs),!r(e))return g.createPdfKitDocument(this.docDefinition,C);var d=new(n(6255))(n(3857));for(var F in this.fonts)this.fonts.hasOwnProperty(F)&&(this.fonts[F].normal&&d.resolve(this.fonts[F].normal),this.fonts[F].bold&&d.resolve(this.fonts[F].bold),this.fonts[F].italics&&d.resolve(this.fonts[F].italics),this.fonts[F].bolditalics&&d.resolve(this.fonts[F].bolditalics));if(this.docDefinition.images)for(var m in this.docDefinition.images)this.docDefinition.images.hasOwnProperty(m)&&d.resolve(this.docDefinition.images[m]);var p=this;d.resolved().then(function(){var D=g.createPdfKitDocument(p.docDefinition,C);e(D)},function(D){throw D})},h.prototype._flushDoc=function(C,e){var g,f=[];C.on("readable",function(){for(var w;null!==(w=C.read(9007199254740991));)f.push(w)}),C.on("end",function(){g=c.concat(f),e(g,C._pdfMakePages)}),C.end()},h.prototype._getPages=function(C,e){if(!e)throw"_getPages is an async method and needs a callback argument";var f=this;this._createDoc(C,function(g){f._flushDoc(g,function(w,Q){e(Q)})})},h.prototype._bufferToBlob=function(C){var e;try{e=new Blob([C],{type:"application/pdf"})}catch(g){if("InvalidStateError"===g.name){var f=new Uint8Array(C);e=new Blob([f.buffer],{type:"application/pdf"})}}if(!e)throw"Could not generate blob";return e},h.prototype._openWindow=function(){var C=window.open("","_blank");if(null===C)throw"Open PDF in new window blocked by browser";return C},h.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}},h.prototype.open=function(C,e){(C=C||{}).autoPrint=!1,this._openPdf(C,e=e||null)},h.prototype.print=function(C,e){(C=C||{}).autoPrint=!0,this._openPdf(C,e=e||null)},h.prototype.download=function(C,e,f){r(C)&&(a(e)||(f=e),e=C,C=null),C=C||"file.pdf",this.getBlob(function(g){o(g,C),r(e)&&e()},f)},h.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)},h.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)},h.prototype.getBlob=function(C,e){if(!C)throw"getBlob is an async method and needs a callback argument";var f=this;this.getBuffer(function(g){var w=f._bufferToBlob(g);C(w)},e)},h.prototype.getBuffer=function(C,e){if(!C)throw"getBuffer is an async method and needs a callback argument";var f=this;this._createDoc(e,function(g){f._flushDoc(g,function(w){C(w)})})},h.prototype.getStream=function(C,e){if(!r(e))return this._createDoc(C);this._createDoc(C,function(g){e(g)})},Y.exports={createPdf:function(C,e,f,g){if(!function(){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 h(C,e||n.g.pdfMake.tableLayouts,f||n.g.pdfMake.fonts,g||n.g.pdfMake.vfs)}}},3857:function(Y,I,n){"use strict";var r=n(8823).Buffer;function a(){this.fileSystem={},this.dataSystem={}}function s(E){return 0===E.indexOf("/")&&(E=E.substring("/".length)),0===E.indexOf("/")&&(E=E.substring(1)),E}a.prototype.existsSync=function(E){return E=s(E),void 0!==this.fileSystem[E]||void 0!==this.dataSystem[E]},a.prototype.readFileSync=function(E,o){E=s(E);var l=this.dataSystem[E];if("string"==typeof l&&"utf8"===o)return l;if(l)return new r(l,"string"==typeof l?"base64":void 0);var h=this.fileSystem[E];if(h)return h;throw"File '"+E+"' not found in virtual file system"},a.prototype.writeFileSync=function(E,o){this.fileSystem[s(E)]=o},a.prototype.bindFS=function(E){this.dataSystem=E||{}},Y.exports=new a},4498:function(Y,I,n){"use strict";var c=n(6225).isString;function a(o){return"auto"===o.width}function s(o){return null==o.width||"*"===o.width||"star"===o.width}Y.exports={buildColumnWidths:function(o,l){var h=[],u=0,C=0,e=[],f=0,g=0,w=[],Q=l;o.forEach(function(v){a(v)?(h.push(v),u+=v._minWidth,C+=v._maxWidth):s(v)?(e.push(v),f=Math.max(f,v._minWidth),g=Math.max(g,v._maxWidth)):w.push(v)}),w.forEach(function(v){c(v.width)&&/\d+%/.test(v.width)&&(v.width=parseFloat(v.width)*Q/100),v._calcWidth=v.width=l)h.forEach(function(v){v._calcWidth=v._minWidth}),e.forEach(function(v){v._calcWidth=f});else{if(F0){var D=l/e.length;e.forEach(function(v){v._calcWidth=D})}}},measureMinMax:function(o){for(var l={min:0,max:0},h={min:0,max:0},u=0,C=0,e=o.length;C=0;R--){var V=w.styleStack.styleDictionary[T[R]];for(var aA in V)V.hasOwnProperty(aA)&&(x[aA]=V[aA])}return x}function p(T){return E(T)?T=[T,T,T,T]:l(T)&&2===T.length&&(T=[T[0],T[1],T[0],T[1]]),T}var D=[void 0,void 0,void 0,void 0];if(g.style){var P=m(l(g.style)?g.style:[g.style]);P&&(D=F(P,D)),P.margin&&(D=p(P.margin))}return D=F(g,D),g.margin&&(D=p(g.margin)),void 0===D[0]&&void 0===D[1]&&void 0===D[2]&&void 0===D[3]?null:D}(),g.columns)return Q(w.measureColumns(g));if(g.stack)return Q(w.measureVerticalContainer(g));if(g.ul)return Q(w.measureUnorderedList(g));if(g.ol)return Q(w.measureOrderedList(g));if(g.table)return Q(w.measureTable(g));if(void 0!==g.text)return Q(w.measureLeaf(g));if(g.toc)return Q(w.measureToc(g));if(g.image)return Q(w.measureImage(g));if(g.svg)return Q(w.measureSVG(g));if(g.canvas)return Q(w.measureCanvas(g));if(g.qr)return Q(w.measureQr(g));throw"Unrecognized document structure: "+JSON.stringify(g,h)});function Q(F){var m=F._margin;return m&&(F._minWidth+=m[0]+m[2],F._maxWidth+=m[0]+m[2]),F}},f.prototype.convertIfBase64Image=function(g){if(/^data:image\/(jpeg|jpg|png);base64,/.test(g.image)){var w="$$pdfmake$$"+this.autoImageIndex++;this.images[w]=g.image,g.image=w}},f.prototype.measureImageWithDimensions=function(g,w){if(g.fit){var Q=w.width/w.height>g.fit[0]/g.fit[1]?g.fit[0]/w.width:g.fit[1]/w.height;g._width=g._minWidth=g._maxWidth=w.width*Q,g._height=w.height*Q}else g._width=g._minWidth=g._maxWidth=g.width||w.width,g._height=g.height||w.height*g._width/w.width,E(g.maxWidth)&&g.maxWidthg._width&&(g._width=g._minWidth=g._maxWidth=g.minWidth,g._height=g._width*w.height/w.width),E(g.minHeight)&&g.minHeight>g._height&&(g._height=g.minHeight,g._width=g._minWidth=g._maxWidth=g._height*w.width/w.height);g._alignment=this.styleStack.getProperty("alignment")},f.prototype.measureImage=function(g){this.images&&this.convertIfBase64Image(g);var w=this.imageMeasure.measureImage(g.image);return this.measureImageWithDimensions(g,w),g},f.prototype.measureSVG=function(g){var w=this.svgMeasure.measureSVG(g.svg);return this.measureImageWithDimensions(g,w),g.font=this.styleStack.getProperty("font"),g.svg=this.svgMeasure.writeDimensions(g.svg,{width:g._width,height:g._height}),g},f.prototype.measureLeaf=function(g){g._textRef&&g._textRef._textNodeRef.text&&(g.text=g._textRef._textNodeRef.text);var w=this.styleStack.clone();w.push(g);var Q=this.textTools.buildInlines(g.text,w);return g._inlines=Q.items,g._minWidth=Q.minWidth,g._maxWidth=Q.maxWidth,g},f.prototype.measureToc=function(g){if(g.toc.title&&(g.toc.title=this.measureNode(g.toc.title)),g.toc._items.length>0){for(var w=[],Q=g.toc.textStyle||{},d=g.toc.numberStyle||Q,F=g.toc.textMargin||[0,0,0,0],m=0,p=g.toc._items.length;m=26?x((R/26>>0)-1):"")+"abcdefghijklmnopqrstuvwxyz"[R%26>>0]}(T-1)}function m(T){if(T<1||T>4999)return T.toString();var V,x=T,R={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},N="";for(V in R)for(;x>=R[V];)N+=V,x-=R[V];return N}var D;switch(Q){case"none":D=null;break;case"upper-alpha":D=F(g).toUpperCase();break;case"lower-alpha":D=F(g);break;case"upper-roman":D=m(g);break;case"lower-roman":D=m(g).toLowerCase();break;default:D=g.toString()}if(null===D)return{};d&&(l(d)?(d[0]&&(D=d[0]+D),d[1]&&(D+=d[1]),D+=" "):D+=d+" ");var v={text:D},P=w.getProperty("markerColor");return P&&(v.color=P),{_inlines:this.textTools.buildInlines(v,w).items}},f.prototype.measureUnorderedList=function(g){var w=this.styleStack.clone(),Q=g.ul;g.type=g.type||"disc",g._gapSize=this.gapSizeForList(),g._minWidth=0,g._maxWidth=0;for(var d=0,F=Q.length;d0?w.length-1:0;return g._minWidth=F.min+g._gap*m,g._maxWidth=F.max+g._gap*m,g},f.prototype.measureTable=function(g){var MA,cA;(function(MA){if(MA.table.widths||(MA.table.widths="auto"),s(MA.table.widths))for(MA.table.widths=[MA.table.widths];MA.table.widths.length1?(aA(D,Q,v.colSpan),w.push({col:Q,span:v.colSpan,minWidth:v._minWidth,maxWidth:v._maxWidth})):(p._minWidth=Math.max(p._minWidth,v._minWidth),p._maxWidth=Math.max(p._maxWidth,v._maxWidth))),v.rowSpan&&v.rowSpan>1&&AA(g.table,d,Q,v.rowSpan)}}!function(){for(var MA,cA,lA=0,BA=w.length;lA0)for(MA=_/vA.span,cA=0;cA0)for(MA=QA/vA.span,cA=0;cAh.page?l:h.page>l.page?h:l.y>h.y?l:h).page,x:u.x,y:u.y,availableHeight:u.availableHeight,availableWidth:u.availableWidth}}(this,l.bottomMost)},a.prototype.markEnding=function(l){this.page=l._columnEndingContext.page,this.x=l._columnEndingContext.x,this.y=l._columnEndingContext.y,this.availableWidth=l._columnEndingContext.availableWidth,this.availableHeight=l._columnEndingContext.availableHeight,this.lastColumnWidth=l._columnEndingContext.lastColumnWidth},a.prototype.saveContextInEndingCell=function(l){l._columnEndingContext={page:this.page,x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,lastColumnWidth:this.lastColumnWidth}},a.prototype.completeColumnGroup=function(l){var h=this.snapshots.pop();this.calculateBottomMost(h),this.endingCell=null,this.x=h.x;var u=h.bottomMost.y;l&&(h.page===h.bottomMost.page?h.y+l>u&&(u=h.y+l):u+=l),this.y=u,this.page=h.bottomMost.page,this.availableWidth=h.availableWidth,this.availableHeight=h.bottomMost.availableHeight,l&&(this.availableHeight-=u-h.bottomMost.y),this.lastColumnWidth=h.lastColumnWidth},a.prototype.addMargin=function(l,h){this.x+=l,this.availableWidth-=l+(h||0)},a.prototype.moveDown=function(l){return this.y+=l,this.availableHeight-=l,this.availableHeight>0},a.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},a.prototype.pageSnapshot=function(){return this.snapshots[0]?this.snapshots[0]:this},a.prototype.moveTo=function(l,h){null!=l&&(this.x=l,this.availableWidth=this.getCurrentPage().pageSize.width-this.x-this.pageMargins.right),null!=h&&(this.y=h,this.availableHeight=this.getCurrentPage().pageSize.height-this.y-this.pageMargins.bottom)},a.prototype.moveToRelative=function(l,h){null!=l&&(this.x=this.x+l),null!=h&&(this.y=this.y+h)},a.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})},a.prototype.endDetachedBlock=function(){var l=this.snapshots.pop();this.x=l.x,this.y=l.y,this.availableWidth=l.availableWidth,this.availableHeight=l.availableHeight,this.page=l.page,this.endingCell=l.endingCell,this.lastColumnWidth=l.lastColumnWidth};var E=function(l,h){return(h=function(l,h){return void 0===l?h:r(l)&&"landscape"===l.toLowerCase()?"landscape":"portrait"}(h,l.pageSize.orientation))!==l.pageSize.orientation?{orientation:h,width:l.pageSize.height,height:l.pageSize.width}:{orientation:l.pageSize.orientation,width:l.pageSize.width,height:l.pageSize.height}};a.prototype.moveToNextPage=function(l){var h=this.page+1,u=this.page,C=this.y,e=h>=this.pages.length;if(e){var f=this.availableWidth,g=this.getCurrentPage().pageSize.orientation,w=E(this.getCurrentPage(),l);this.addPage(w),g===w.orientation&&(this.availableWidth=f)}else this.page=h,this.initializePage();return{newPageCreated:e,prevPage:u,prevY:C,y:this.y}},a.prototype.addPage=function(l){var h={items:[],pageSize:l};return this.pages.push(h),this.backgroundLength.push(0),this.page=this.pages.length-1,this.initializePage(),this.tracker.emit("pageAdded"),h},a.prototype.getCurrentPage=function(){return this.page<0||this.page>=this.pages.length?null:this.pages[this.page]},a.prototype.getCurrentPosition=function(){var l=this.getCurrentPage().pageSize,h=l.height-this.pageMargins.top-this.pageMargins.bottom,u=l.width-this.pageMargins.left-this.pageMargins.right;return{pageNumber:this.page+1,pageOrientation:l.orientation,pageInnerHeight:h,pageInnerWidth:u,left:this.x,top:this.y,verticalRatio:(this.y-this.pageMargins.top)/h,horizontalRatio:(this.x-this.pageMargins.left)/u}},Y.exports=a},1196:function(Y,I,n){"use strict";var c=n(4775),r=n(6225).isNumber,a=n(6225).pack,s=n(6225).offsetVector,E=n(3858);function o(u,C){this.context=u,this.contextStack=[],this.tracker=C}function l(u,C,e){null==e||e<0||e>u.items.length?u.items.push(C):u.items.splice(e,0,C)}o.prototype.addLine=function(u,C,e){var f=u.getHeight(),g=this.context,w=g.getCurrentPage(),Q=this.getCurrentPositionOnPage();return!(g.availableHeight0&&u.inlines[0].alignment,g=0;switch(f){case"right":g=C-e;break;case"center":g=(C-e)/2}if(g&&(u.x=(u.x||0)+g),"justify"===f&&!u.newLineForced&&!u.lastLineInParagraph&&u.inlines.length>1)for(var w=(C-e)/(u.inlines.length-1),Q=1,d=u.inlines.length;Q0)&&(void 0===u._x&&(u._x=u.x||0),u.x=f.x+u._x,u.y=f.y,this.alignImage(u),l(g,{type:e||"image",item:u},C),f.moveDown(u._height),w)},o.prototype.addSVG=function(u,C){return this.addImage(u,C,"svg")},o.prototype.addQr=function(u,C){var e=this.context,f=e.getCurrentPage(),g=this.getCurrentPositionOnPage();if(!f||void 0===u.absolutePosition&&e.availableHeightg.availableHeight||(u.items.forEach(function(Q){switch(Q.type){case"line":var d=function(u){var C=new c(u.maxWidth);for(var e in u)u.hasOwnProperty(e)&&(C[e]=u[e]);return C}(Q.item);d._node&&(d._node.positions[0].pageNumber=g.page+1),d.x=(d.x||0)+(C?u.xOffset||0:g.x),d.y=(d.y||0)+(e?u.yOffset||0:g.y),w.items.push({type:"line",item:d});break;case"vector":var F=a(Q.item);s(F,C?u.xOffset||0:g.x,e?u.yOffset||0:g.y),w.items.push({type:"vector",item:F});break;case"image":case"svg":var m=a(Q.item);m.x=(m.x||0)+(C?u.xOffset||0:g.x),m.y=(m.y||0)+(e?u.yOffset||0:g.y),w.items.push({type:Q.type,item:m})}}),f||g.moveDown(u.height),0))},o.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),r(u)&&(u=new E({width:u,height:C},{left:0,right:0,top:0,bottom:0})),this.contextStack.push(this.context),this.context=u},o.prototype.popContext=function(){this.context=this.contextStack.pop()},o.prototype.getCurrentPositionOnPage=function(){return(this.contextStack[0]||this.context).getCurrentPosition()},Y.exports=o},2249:function(Y,I,n){"use strict";var c=n(6225).isArray;function a(s,E){for(var o in this.fonts={},this.pdfKitDoc=E,this.fontCache={},s)if(s.hasOwnProperty(o)){var l=s[o];this.fonts[o]={normal:l.normal,bold:l.bold,italics:l.italics,bolditalics:l.bolditalics}}}a.prototype.getFontType=function(s,E){return function(s,E){var o="normal";return s&&E?o="bolditalics":s?o="bold":E&&(o="italics"),o}(s,E)},a.prototype.getFontFile=function(s,E,o){var l=this.getFontType(E,o);return this.fonts[s]&&this.fonts[s][l]?this.fonts[s][l]:null},a.prototype.provideFont=function(s,E,o){var l=this.getFontType(E,o);if(null===this.getFontFile(s,E,o))throw new Error("Font '"+s+"' in style '"+l+"' is not defined in the font section of the document definition.");if(this.fontCache[s]=this.fontCache[s]||{},!this.fontCache[s][l]){var h=this.fonts[s][l];c(h)||(h=[h]),this.fontCache[s][l]=this.pdfKitDoc.font.apply(this.pdfKitDoc,h)._font}return this.fontCache[s][l]},Y.exports=a},6225:function(Y){"use strict";function r(g){return Array.isArray(g)}Y.exports={isString:function(g){return"string"==typeof g||g instanceof String},isNumber:function(g){return"number"==typeof g||g instanceof Number},isBoolean:function(g){return"boolean"==typeof g},isArray:r,isFunction:function(g){return"function"==typeof g},isObject:function(g){return null!==g&&"object"==typeof g},isNull:function(g){return null===g},isUndefined:function(g){return void 0===g},pack:function(){for(var g={},w=0,Q=arguments.length;w0})).forEach(function(W){var EA={};["id","text","ul","ol","table","image","qr","canvas","svg","columns","headlineLevel","style","pageBreak","pageOrientation","width","height"].forEach(function(DA){void 0!==W[DA]&&(EA[DA]=W[DA])}),EA.startPosition=W.positions[0],EA.pageNumbers=Array.from(new Set(W.positions.map(function(DA){return DA.pageNumber}))),EA.pages=QA.length,EA.stack=C(W.stack),W.nodeInfo=EA});for(var uA=0;uA<_.length;uA++){var CA=_[uA];if("before"!==CA.pageBreak&&!CA.pageBreakCalculated){CA.pageBreakCalculated=!0;var TA=CA.nodeInfo.pageNumbers[0],GA=[],VA=[],q=[];if(lA.length>1)for(var J=uA+1,$=_.length;J<$;J++)_[J].nodeInfo.pageNumbers.indexOf(TA)>-1&&GA.push(_[J].nodeInfo),lA.length>2&&_[J].nodeInfo.pageNumbers.indexOf(TA+1)>-1&&VA.push(_[J].nodeInfo);if(lA.length>3)for(J=0;J-1&&q.push(_[J].nodeInfo);if(lA(CA.nodeInfo,GA,VA,q))return CA.pageBreak="before",!0}}return!1}this.docPreprocessor=new r,this.docMeasure=new a(R,N,V,this.imageMeasure,this.svgMeasure,this.tableLayouts,MA);for(var xA=this.tryLayoutDocument(x,R,N,V,aA,AA,gA,MA,cA);BA(xA.linearNodeList,xA.pages);)xA.linearNodeList.forEach(function(QA){QA.resetXY()}),xA=this.tryLayoutDocument(x,R,N,V,aA,AA,gA,MA,cA);return xA.pages},P.prototype.tryLayoutDocument=function(x,R,N,V,aA,AA,gA,MA,cA,lA){this.linearNodeList=[],x=this.docPreprocessor.preprocessDocument(x),x=this.docMeasure.measureDocument(x),this.writer=new E(new s(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(x),this.addHeadersAndFooters(AA,gA),null!=cA&&this.addWatermark(cA,R,V),{pages:this.writer.context().pages,linearNodeList:this.linearNodeList}},P.prototype.addBackground=function(x){var R=F(x)?x:function(){return x},N=this.writer.context(),V=N.getCurrentPage().pageSize,aA=R(N.page+1,V);aA&&(this.writer.beginUnbreakableBlock(V.width,V.height),aA=this.docPreprocessor.preprocessDocument(aA),this.processNode(this.docMeasure.measureDocument(aA)),this.writer.commitUnbreakableBlock(0,0),N.backgroundLength[N.page]+=aA.positions.length)},P.prototype.addStaticRepeatable=function(x,R){this.addDynamicRepeatable(function(){return JSON.parse(JSON.stringify(x))},R)},P.prototype.addDynamicRepeatable=function(x,R){for(var V=0,aA=this.writer.context().pages.length;V1;)_.push({fontSize:TA}),(QA=xA.sizeOfRotatedText(BA.text,BA.angle,_)).width>lA.width?TA=(uA+(CA=TA))/2:QA.widthlA.height?(uA+(CA=TA))/2:((uA=TA)+CA)/2),_.pop();return TA}(this.pageSize,x,R));var V={text:x.text,font:R.provideFont(x.font,x.bold,x.italics),fontSize:x.fontSize,color:x.color,opacity:x.opacity,angle:x.angle};V._size=(lA=x,vA=new m(R),(xA=new p(null,{font:lA.font,bold:lA.bold,italics:lA.italics})).push({fontSize:lA.fontSize}),{size:vA.sizeOfString(lA.text,xA),rotatedSize:vA.sizeOfRotatedText(lA.text,lA.angle,xA)});for(var aA=this.writer.context().pages,AA=0,gA=aA.length;AA0;cA--)MA.push(gA);return MA}(x._gap);V&&(N-=(V.length-1)*x._gap),o.buildColumnWidths(R,N);var aA=this.processRow(R,R,V);v(x.positions,aA.positions)},P.prototype.processRow=function(x,R,N,V,aA,AA){var gA=this,MA=[],cA=[];return this.tracker.auto("pageChanged",function(xA){for(var _,QA=0,uA=MA.length;QA1)for(var TA=1;TAxA?N[xA]:0}function vA(xA,_){if(xA.rowSpan&&xA.rowSpan>1){var QA=aA+xA.rowSpan-1;if(QA>=V.length)throw"Row span for column "+_+" (with indexes starting from 0) exceeded row count";return V[QA][_]}return null}},P.prototype.processList=function(x,R){var AA,N=this,V=x?R.ol:R.ul,aA=R._gapSize;this.writer.context().addMargin(aA.width),this.tracker.auto("lineAdded",function(MA){if(AA){var cA=AA;if(AA=null,cA.canvas){var lA=cA.canvas[0];w(lA,-cA._minWidth,0),N.writer.addVector(lA)}else if(cA._inlines){var BA=new h(N.pageSize.width);BA.addInline(cA._inlines[0]),BA.x=-cA._minWidth,BA.y=MA.getAscenderHeight()-BA.getAscenderHeight(),N.writer.addLine(BA,!0)}}},function(){V.forEach(function(MA){AA=MA.listMarker,N.processNode(MA),v(R.positions,MA.positions)})}),this.writer.context().addMargin(-aA.width)},P.prototype.processTable=function(x){var R=new l(x);R.beginTable(this.writer);for(var N=x.table.heights,V=0,aA=x.table.body.length;V0&&(N.hasEnoughSpaceForInline(x._inlines[0],x._inlines.slice(1))||aA);){var AA=!1,gA=x._inlines.shift();if(aA=!1,!gA.noWrap&&gA.text.length>1&&gA.width>N.getAvailableWidth()){var MA=gA.width/gA.text.length,cA=Math.floor(N.getAvailableWidth()/MA);if(cA<1&&(cA=1),cA0){var u=l.pages[0];if(u.xOffset=E,u.yOffset=o,h>1)if(void 0!==E||void 0!==o)u.height=l.getCurrentPage().pageSize.height-l.pageMargins.top-l.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;CVA.item.y2?VA.item.y1:VA.item.y2:0}(VA)}var TA=T(QA||40),GA=TA.top;return _.forEach(function(VA){VA.items.forEach(function(q){var J=CA(q);J>GA&&(GA=J)})}),GA+=TA.bottom}function P(_,QA){_&&"auto"===_.height&&(_.height=1/0);var TA,CA=function(_){if(C(_)){var QA=s[_.toUpperCase()];if(!QA)throw"Page size "+_+" not recognized";return{width:QA[0],height:QA[1]}}return _}(_||"A4");return!!C(TA=QA)&&("portrait"===(TA=TA.toLowerCase())&&CA.width>CA.height||"landscape"===TA&&CA.widthCA.height?"landscape":"portrait",CA}function T(_){if(e(_))_={left:_,right:_,top:_,bottom:_};else if(g(_))if(2===_.length)_={left:_[0],top:_[1],right:_[0],bottom:_[1]};else{if(4!==_.length)throw"Invalid pageMargins definition";_={left:_[0],top:_[1],right:_[2],bottom:_[3]}}return _}function N(_,QA){_.pageSize.orientation!==(QA.options.size[0]>QA.options.size[1]?"landscape":"portrait")&&(QA.options.size=[QA.options.size[1],QA.options.size[0]])}function aA(_,QA){var uA=_;return QA.sup&&(uA-=.75*QA.fontSize),QA.sub&&(uA+=.35*QA.fontSize),uA}function AA(_,QA,uA,CA,TA){function GA(st,yA){var _A,ft,lt=new h(null);if(w(st.positions))throw"Page reference id not found";var SA=st.positions[0].pageNumber.toString();switch(yA.text=SA,_A=lt.widthOfString(yA.text,yA.font,yA.fontSize,yA.characterSpacing,yA.fontFeatures),ft=yA.width-_A,yA.width=_A,yA.alignment){case"right":yA.x+=ft;break;case"center":yA.x+=ft/2}}_._pageNodeRef&&GA(_._pageNodeRef,_.inlines[0]),QA=QA||0,uA=uA||0;var VA=_.getHeight(),J=VA-_.getAscenderHeight();l.drawBackground(_,QA,uA,CA,TA);for(var $=0,W=_.inlines.length;$1){var VA=_.points[0],q=_.points[_.points.length-1];(_.closePath||VA.x===q.x&&VA.y===q.y)&&uA.closePath()}break;case"path":uA.path(_.d)}if(_.linearGradient&&CA){var J=1/(_.linearGradient.length-1);for(TA=0;TA<_.linearGradient.length;TA++)CA.stop(TA*J,_.linearGradient[TA]);_.color=CA}Q(_.color)&&(_.color=d(_.color,QA));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(_,QA,uA,CA){var TA=e(_.opacity)?_.opacity:1;if(CA.opacity(TA),_.cover){var GA=_.cover.align||"center",VA=_.cover.valign||"center",q=_.cover.width?_.cover.width:_.width,J=_.cover.height?_.cover.height:_.height;CA.save(),CA.rect(_.x,_.y,q,J).clip(),CA.image(_.image,_.x,_.y,{cover:[q,J],align:GA,valign:VA}),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 lA(_,QA,uA,CA,TA){var GA=Object.assign({width:_._width,height:_._height,assumePt:!0},_.options);GA.fontCallback=function(VA,q,J){var $=VA.split(",").map(function(rA){return rA.trim().replace(/('|")/g,"")}),W=function(_,QA,uA){for(var CA=0;CA-1&&(GA=GA.slice(0,VA)),uA.height===1/0){var q=v(GA,_.pageMargins);this.pdfKitDoc.options.size=[uA.width,q]}var J=function(_,QA){var uA={};return Object.keys(_).forEach(function(CA){var TA=_[CA];uA[CA]=QA.pattern(TA.boundingBox,TA.xStep,TA.yStep,TA.pattern,TA.colored)}),uA}(_.patterns||{},this.pdfKitDoc);if(function(_,QA,uA,CA,TA){uA._pdfMakePages=_,uA.addPage();var GA=0;TA&&_.forEach(function(DA){GA+=DA.items.length});var VA=0;TA=TA||function(){};for(var q=0;q<_.length;q++){q>0&&(N(_[q],uA),uA.addPage(uA.options));for(var J=_[q],$=0,W=J.items.length;$=128?285:0);var d=[[]];for(w=0;w<30;++w){for(var F=d[w],m=[],p=0;p<=w;++p)m.push(g[(p6},V=function(q,J){var $=-8&function(q){var J=I[q],$=16*q*q+128*q+64;return x(q)&&($-=36),J[2].length&&($-=25*J[2].length*J[2].length-10*J[2].length-55),$}(q),W=I[q];return $-8*W[0][J]*W[1][J]},aA=function(q,J){switch(J){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,J,$){var W=V(q,$)-4-aA(q,J);switch(J){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,J){for(var $=q.slice(0),W=q.length,EA=J.length,DA=0;DA=0)for(var hA=0;hA=0;--DA)EA>>W+DA&1&&(EA^=$<>rA&1;return q},uA=function(q){for(var DA=function(OA){for(var WA=0,zA=0;zA=5&&(WA+=OA[zA]-5+3);for(zA=5;zA=4*ot||OA[zA+1]>=4*ot)&&(WA+=40)}return WA},rA=q.length,hA=0,HA=0,nt=0;nt=rA){for(EA.push(DA|yA>>(_A-=rA));_A>=8;)EA.push(yA>>(_A-=8)&255);DA=0,rA=8}_A>0&&(DA|=(yA&(1<<_A)-1)<<(rA-=_A))},nt=aA(q,J);switch(HA(J,4),HA(hA,nt),J){case 1:for(var st=2;st>3);rA=function(q,J,$){for(var W=[],EA=q.length/J|0,DA=0,rA=J-q.length%J,hA=0;hA>It&1,EA[lt+ot][SA+It]=1};for(rA(0,0,9,9,[127,65,93,93,93,65,383,0,64]),rA($-8,0,8,9,[256,127,65,93,93,93,65,127]),rA(0,$-8,9,8,[254,130,186,186,186,130,254,0,0]),DA=9;DA<$-8;++DA)W[6][DA]=W[DA][6]=1&~DA,EA[6][DA]=EA[DA][6]=1;var hA=J[2],HA=hA.length;for(DA=0;DA>ft++&1,EA[DA][$-11+yA]=EA[$-11+yA][DA]=1}return{matrix:W,reserved:EA}}(J),HA=hA.matrix,nt=hA.reserved;if(function(q,J,$){for(var W=q.length,EA=0,DA=-1,rA=W-1;rA>=0;rA-=2){6==rA&&--rA;for(var hA=DA<0?W-1:0,HA=0;HArA-2;--nt)J[hA][nt]||(q[hA][nt]=$[EA>>3]>>(7&~EA)&1,++EA);hA+=DA}DA=-DA}}(HA,nt,rA),EA<0){_(HA,nt,0),QA(HA,0,W,0);var st=0,yA=uA(HA);for(_(HA,nt,0),EA=1;EA<8;++EA){_(HA,nt,EA),QA(HA,0,W,EA);var _A=uA(HA);yA>_A&&(yA=_A,st=EA),_(HA,nt,EA)}EA=st}return _(HA,nt,EA),QA(HA,0,W,EA),HA};function TA(q,J){var $={numeric:1,alphanumeric:2,octet:4},EA=(J=J||{}).version||-1,DA={L:1,M:0,Q:3,H:2}[(J.eccLevel||"L").toUpperCase()],rA=J.mode?$[J.mode.toLowerCase()]:-1,hA="mask"in J?J.mask:-1;if(rA<0)rA="string"==typeof q?q.match(E)?1:q.match(l)?2:4:4;else if(1!=rA&&2!=rA&&4!=rA)throw"invalid or unsupported mode";if(null===(q=function(q,J){switch(q){case 1:return J.match(E)?J:null;case 2:return J.match(o)?J.toUpperCase():null;case 4:if("string"==typeof J){for(var $=[],W=0;W>6,128|63&EA):EA<65536?$.push(224|EA>>12,128|EA>>6&63,128|63&EA):$.push(240|EA>>18,128|EA>>12&63,128|EA>>6&63,128|63&EA)}return $}return J}}(rA,q)))throw"invalid data format";if(DA<0||DA>3)throw"invalid ECC level";if(EA<0){for(EA=1;EA<=40&&!(q.length<=AA(EA,rA,DA));++EA);if(EA>40)throw"too large data for the Qr format"}else if(EA<1||EA>40)throw"invalid Qr version! should be between 1 and 40";if(-1!=hA&&(hA<0||hA>8))throw"invalid mask";return CA(q,EA,rA,DA,hA)}Y.exports={measure:function(q){var J=function(q,J){var $=[],W=J.background||"#fff",EA=J.foreground||"#000",DA=TA(q,J),rA=DA.length,hA=Math.floor(J.fit?J.fit/rA:5),HA=rA*hA;$.push({type:"rect",x:0,y:0,w:HA,h:HA,lineWidth:0,color:W});for(var nt=0;nt0;)this.styleOverrides.pop()},E.prototype.autopush=function(o){if(c(o))return 0;var l=[];o.style&&(l=r(o.style)?o.style:[o.style]);for(var h=0,u=l.length;h0&&this.pop(h),u},E.prototype.getProperty=function(o){if(this.styleOverrides)for(var l=this.styleOverrides.length-1;l>=0;l--){var h=this.styleOverrides[l];if(c(h)){var u=this.styleDictionary[h];if(u&&!a(u[o])&&!s(u[o]))return u[o]}else if(!a(h[o])&&!s(h[o]))return h[o]}return this.defaultStyle&&this.defaultStyle[o]},Y.exports=E},7601:function(Y,I,n){"use strict";var c=n(6513);function r(E){var o=parseFloat(E);if("number"==typeof o&&!isNaN(o))return o}function a(E){var o;try{o=new c.XmlDocument(E)}catch(l){throw new Error("SVGMeasure: "+l)}if("svg"!==o.name)throw new Error("SVGMeasure: expected document");return o}function s(){}s.prototype.measureSVG=function(E){var o=a(E),l=r(o.attr.width),h=r(o.attr.height);if((null==l||null==h)&&"string"==typeof o.attr.viewBox){var u=o.attr.viewBox.split(/[,\s]+/);if(4!==u.length)throw new Error("Unexpected svg viewbox format, should have 4 entries but found: '"+o.attr.viewBox+"'");null==l&&(l=r(u[2])),null==h&&(h=r(u[3]))}return{width:l,height:h}},s.prototype.writeDimensions=function(E,o){var l=a(E);return l.attr.width=""+o.width,l.attr.height=""+o.height,l.toString()},Y.exports=s},9342:function(Y,I,n){"use strict";var c=n(4498),r=n(6225).isFunction,a=n(6225).isNumber;function s(E){this.tableNode=E}s.prototype.beginTable=function(E){var o,l,f,h=this;this.offsets=(o=this.tableNode)._offsets,this.layout=o._layout,l=E.context().availableWidth-this.offsets.total,c.buildColumnWidths(o.table.widths,l),this.tableWidth=o._offsets.total+(f=0,o.table.widths.forEach(function(g){f+=g._calcWidth}),f),this.rowSpanData=function(){var f=[],g=0,w=0;f.push({left:0,rowSpan:0});for(var Q=0,d=h.tableNode.table.body[0].length;Q0&&v(g+p,Q,0,d.border[0]),void 0!==d.border[2]&&v(g+p,Q+m-1,2,d.border[2]);for(var D=0;D0&&v(g,Q+D,1,d.border[1]),void 0!==d.border[3]&&v(g+F-1,Q+D,3,d.border[3])}}function v(P,T,x,R){var N=f[P][T];N.border=N.border||{},N.border[x]=R}}(this.tableNode.table.body),this.drawHorizontalLine(0,E)},s.prototype.onRowBreak=function(E,o){var l=this;return function(){var h=l.rowPaddingTop+(l.headerRows?0:l.topLineWidth);o.context().availableHeight-=l.reservedAtBottom,o.context().moveDown(h)}},s.prototype.beginRow=function(E,o){this.topLineWidth=this.layout.hLineWidth(E,this.tableNode),this.rowPaddingTop=this.layout.paddingTop(E,this.tableNode),this.bottomLineWidth=this.layout.hLineWidth(E+1,this.tableNode),this.rowPaddingBottom=this.layout.paddingBottom(E,this.tableNode),this.rowCallback=this.onRowBreak(E,o),o.tracker.startTracking("pageChanged",this.rowCallback),this.dontBreakRows&&o.beginUnbreakableBlock(),this.rowTopY=o.context().y,this.reservedAtBottom=this.bottomLineWidth+this.rowPaddingBottom,o.context().availableHeight-=this.reservedAtBottom,o.context().moveDown(this.rowPaddingTop)},s.prototype.drawHorizontalLine=function(E,o,l){var h=this.layout.hLineWidth(E,this.tableNode);if(h){var C,u=this.layout.hLineStyle(E,this.tableNode);u&&u.dash&&(C=u.dash);for(var w,Q,d,e=h/2,f=null,g=this.tableNode.table.body,F=0,m=this.rowSpanData.length;F0&&(T=(w=g[E-1][F]).border?w.border[3]:this.layout.defaultBorder)&&w.borderColor&&(v=w.borderColor[3]),ER;)f.width+=this.rowSpanData[F+R++].width||0;F+=R-1}else if(w&&w.colSpan&&T){for(;w.colSpan>R;)f.width+=this.rowSpanData[F+R++].width||0;F+=R-1}else if(Q&&Q.colSpan&&P){for(;Q.colSpan>R;)f.width+=this.rowSpanData[F+R++].width||0;F+=R-1}else f.width+=this.rowSpanData[F].width||0}var N=(l||0)+e;D&&f&&f.width&&(o.addVector({type:"line",x1:f.left,x2:f.left+f.width,y1:N,y2:N,lineWidth:h,dash:C,lineColor:v},!1,l),f=null,v=null,w=null,Q=null,d=null)}o.context().moveDown(h)}},s.prototype.drawVerticalLine=function(E,o,l,h,u,C,e){var f=this.layout.vLineWidth(h,this.tableNode);if(0!==f){var w,g=this.layout.vLineStyle(h,this.tableNode);g&&g.dash&&(w=g.dash);var d,F,m,Q=this.tableNode.table.body;if(h>0&&(d=Q[C][e])&&d.borderColor&&(d.border?d.border[2]:this.layout.defaultBorder)&&(m=d.borderColor[2]),null==m&&h0&&$--}return J.push({x:C.rowSpanData[C.rowSpanData.length-1].left,index:C.rowSpanData.length-1}),J}(),w=[],Q=l&&l.length>0,d=this.tableNode.table.body;if(w.push({y0:this.rowTopY,page:Q?l[0].prevPage:e}),Q)for(u=0,h=l.length;u0&&!this.headerRows,T=P?0:this.topLineWidth,x=w[p].y0,R=w[p].y1;for(v&&(R+=this.rowPaddingBottom),o.context().page!=w[p].page&&(o.context().page=w[p].page,this.reservedAtBottom=0),u=0,h=g.length;u0&&!N&&(N=(AA=d[E][aA-1]).border?AA.border[2]:this.layout.defaultBorder),aA+11)for(var VA=1;VA1)for(VA=1;VA0&&this.rowSpanData[u].rowSpan--}this.drawHorizontalLine(E+1,o),this.headerRows&&E===this.headerRows-1&&(this.headerRepeatable=o.currentBlockToRepeatable()),this.dontBreakRows&&o.tracker.auto("pageChanged",function(){!C.headerRows&&!1!==C.layout.hLineWhenBroken&&C.drawHorizontalLine(E,o)},function(){o.commitUnbreakableBlock()}),this.headerRepeatable&&(E===this.rowsWithoutPageBreak-1||E===this.tableNode.table.body.length-1)&&(o.commitUnbreakableBlock(),o.pushToRepeatables(this.headerRepeatable),this.cleanUpRepeatables=!0,this.headerRepeatable=null)},Y.exports=s},3497:function(Y,I,n){"use strict";var c=n(6225).isArray,r=n(6225).isPattern,a=n(6225).getPattern;function E(h,u,C,e){var w=h.inlines[0],Q=function(){for(var BA=0,vA=0,xA=h.inlines.length;vABA?vA:BA;return h.inlines[BA]}(),d=function(){for(var BA=0,vA=0,xA=h.inlines.length;vA=0&&r.splice(a,1)}},I.prototype.emit=function(n){var c=Array.prototype.slice.call(arguments,1),r=this.events[n];!r||r.forEach(function(a){a.apply(this,c)})},I.prototype.auto=function(n,c,r){this.startTracking(n,c),r(),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"],r="undefined"==typeof globalThis?n.g:globalThis;Y.exports=function(){for(var s=[],E=0;E{var Fr=function(St){"use strict";var zn,ht=Object.prototype,Ae=ht.hasOwnProperty,A="function"==typeof Symbol?Symbol:{},Qt=A.iterator||"@@iterator",Y=A.asyncIterator||"@@asyncIterator",I=A.toStringTag||"@@toStringTag";function n(x,R,N){return Object.defineProperty(x,R,{value:N,enumerable:!0,configurable:!0,writable:!0}),x[R]}try{n({},"")}catch(x){n=function(R,N,V){return R[N]=V}}function c(x,R,N,V){var AA=Object.create((R&&R.prototype instanceof h?R:h).prototype),gA=new v(V||[]);return AA._invoke=function(x,R,N){var V=a;return function(AA,gA){if(V===E)throw new Error("Generator is already running");if(V===o){if("throw"===AA)throw gA;return T()}for(N.method=AA,N.arg=gA;;){var MA=N.delegate;if(MA){var cA=m(MA,N);if(cA){if(cA===l)continue;return cA}}if("next"===N.method)N.sent=N._sent=N.arg;else if("throw"===N.method){if(V===a)throw V=o,N.arg;N.dispatchException(N.arg)}else"return"===N.method&&N.abrupt("return",N.arg);V=E;var lA=r(x,R,N);if("normal"===lA.type){if(V=N.done?o:s,lA.arg===l)continue;return{value:lA.arg,done:N.done}}"throw"===lA.type&&(V=o,N.method="throw",N.arg=lA.arg)}}}(x,N,gA),AA}function r(x,R,N){try{return{type:"normal",arg:x.call(R,N)}}catch(V){return{type:"throw",arg:V}}}St.wrap=c;var a="suspendedStart",s="suspendedYield",E="executing",o="completed",l={};function h(){}function u(){}function C(){}var e={};n(e,Qt,function(){return this});var f=Object.getPrototypeOf,g=f&&f(f(P([])));g&&g!==ht&&Ae.call(g,Qt)&&(e=g);var w=C.prototype=h.prototype=Object.create(e);function Q(x){["next","throw","return"].forEach(function(R){n(x,R,function(N){return this._invoke(R,N)})})}function d(x,R){function N(AA,gA,MA,cA){var lA=r(x[AA],x,gA);if("throw"!==lA.type){var BA=lA.arg,vA=BA.value;return vA&&"object"==typeof vA&&Ae.call(vA,"__await")?R.resolve(vA.__await).then(function(xA){N("next",xA,MA,cA)},function(xA){N("throw",xA,MA,cA)}):R.resolve(vA).then(function(xA){BA.value=xA,MA(BA)},function(xA){return N("throw",xA,MA,cA)})}cA(lA.arg)}var V;this._invoke=function(AA,gA){function MA(){return new R(function(cA,lA){N(AA,gA,cA,lA)})}return V=V?V.then(MA,MA):MA()}}function m(x,R){var N=x.iterator[R.method];if(N===zn){if(R.delegate=null,"throw"===R.method){if(x.iterator.return&&(R.method="return",R.arg=zn,m(x,R),"throw"===R.method))return l;R.method="throw",R.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var V=r(N,x.iterator,R.arg);if("throw"===V.type)return R.method="throw",R.arg=V.arg,R.delegate=null,l;var aA=V.arg;return aA?aA.done?(R[x.resultName]=aA.value,R.next=x.nextLoc,"return"!==R.method&&(R.method="next",R.arg=zn),R.delegate=null,l):aA:(R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,l)}function p(x){var R={tryLoc:x[0]};1 in x&&(R.catchLoc=x[1]),2 in x&&(R.finallyLoc=x[2],R.afterLoc=x[3]),this.tryEntries.push(R)}function D(x){var R=x.completion||{};R.type="normal",delete R.arg,x.completion=R}function v(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(p,this),this.reset(!0)}function P(x){if(x){var R=x[Qt];if(R)return R.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var N=-1,V=function aA(){for(;++N=0;--V){var aA=this.tryEntries[V],AA=aA.completion;if("root"===aA.tryLoc)return N("end");if(aA.tryLoc<=this.prev){var gA=Ae.call(aA,"catchLoc"),MA=Ae.call(aA,"finallyLoc");if(gA&&MA){if(this.prev=0;--N){var V=this.tryEntries[N];if(V.tryLoc<=this.prev&&Ae.call(V,"finallyLoc")&&this.prev=0;--R){var N=this.tryEntries[R];if(N.finallyLoc===x)return this.complete(N.completion,N.afterLoc),D(N),l}},catch:function(x){for(var R=this.tryEntries.length-1;R>=0;--R){var N=this.tryEntries[R];if(N.tryLoc===x){var V=N.completion;if("throw"===V.type){var aA=V.arg;D(N)}return aA}}throw new Error("illegal catch attempt")},delegateYield:function(x,R,N){return this.delegate={iterator:P(x),resultName:R,nextLoc:N},"next"===this.method&&(this.arg=zn),l}},St}(ci.exports);try{regeneratorRuntime=Fr}catch(St){"object"==typeof globalThis?globalThis.regeneratorRuntime=Fr:Function("r","regeneratorRuntime = r")(Fr)}},7757:(ci,Fr,St)=>{ci.exports=St(4979)}}]);