Channel: "+u.alias.padEnd(20)+"			Amount (Sats): "+a.decimalPipe.transform(s.amt_to_forward)+""):a.dataService.getAliasesFromPubkeys(s.pub_key,!1).pipe((0,d.R)(a.unSubs[6])).subscribe(g=>{o.push("
Channel: "+(g.node&&g.node.alias?g.node.alias.padEnd(20):s.pub_key.substring(0,17)+"...")+"			Amount (Sats): "+a.decimalPipe.transform(s.amt_to_forward)+"")}),o},[])}onHTLCClick(t,a){a.payment_request&&""!==a.payment_request.trim()?this.dataService.decodePayment(a.payment_request,!1).pipe((0,G.q)(1)).subscribe({next:o=>{setTimeout(()=>{this.showHTLCView(t,a,o)},0)},error:o=>{this.showHTLCView(t,a,null)}}):this.showHTLCView(t,a,null)}showHTLCView(t,a,o){const s=[[{key:"payment_hash",value:a.payment_hash,title:"Payment Hash",width:100,type:l.Gi.STRING}],[{key:"preimage",value:t.preimage,title:"Preimage",width:100,type:l.Gi.STRING}],[{key:"payment_request",value:a.payment_request,title:"Payment Request",width:100,type:l.Gi.STRING}],[{key:"status",value:t.status,title:"Status",width:33,type:l.Gi.STRING},{key:"attempt_time_ns",value:+t.attempt_time_ns/1e9,title:"Attempt Time",width:33,type:l.Gi.DATE_TIME},{key:"resolve_time_ns",value:+t.resolve_time_ns/1e9,title:"Resolve Time",width:34,type:l.Gi.DATE_TIME}],[{key:"total_amt",value:t.route.total_amt,title:"Amount (Sats)",width:33,type:l.Gi.NUMBER},{key:"total_fees",value:t.route.total_fees,title:"Fee (Sats)",width:33,type:l.Gi.NUMBER},{key:"total_time_lock",value:t.route.total_time_lock,title:"Total Time Lock",width:34,type:l.Gi.NUMBER}],[{key:"hops",value:this.getHopDetails(t.route.hops),title:"Hops",width:100,type:l.Gi.ARRAY}]];o&&o.description&&""!==o.description&&s.splice(3,0,[{key:"description",value:o.description,title:"Description",width:100,type:l.Gi.STRING}]),this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"HTLC Information",message:s,scrollable:t.route&&t.route.hops&&t.route.hops.length>1}}}))}onPaymentClick(t){if(t.htlcs&&t.htlcs[0]&&t.htlcs[0].route&&t.htlcs[0].route.hops&&t.htlcs[0].route.hops.length>0){const a=t.htlcs[0].route.hops.reduce((o,s)=>""===o?s.pub_key:o+","+s.pub_key,"");this.dataService.getAliasesFromPubkeys(a,!0).pipe((0,d.R)(this.unSubs[7])).subscribe(o=>{this.showPaymentView(t,o.reduce((s,u)=>""===s?u:s+"\n"+u,""))})}else this.showPaymentView(t,"")}showPaymentView(t,a){const o=[[{key:"payment_hash",value:t.payment_hash,title:"Payment Hash",width:100,type:l.Gi.STRING}],[{key:"payment_preimage",value:t.payment_preimage,title:"Payment Preimage",width:100,type:l.Gi.STRING}],[{key:"payment_request",value:t.payment_request,title:"Payment Request",width:100,type:l.Gi.STRING}],[{key:"status",value:t.status,title:"Status",width:50,type:l.Gi.STRING},{key:"creation_date",value:t.creation_date,title:"Creation Date",width:50,type:l.Gi.DATE_TIME}],[{key:"value_msat",value:t.value_msat,title:"Value (mSats)",width:50,type:l.Gi.NUMBER},{key:"fee_msat",value:t.fee_msat,title:"Fee (mSats)",width:50,type:l.Gi.NUMBER}],[{key:"path",value:a,title:"Path",width:100,type:l.Gi.STRING}]];t.payment_request&&""!==t.payment_request.trim()?this.dataService.decodePayment(t.payment_request,!1).pipe((0,G.q)(1)).subscribe(s=>{s&&s.description&&""!==s.description&&o.splice(3,0,[{key:"description",value:s.description,title:"Description",width:100,type:l.Gi.STRING}]),setTimeout(()=>{this.openPaymentAlert(o,t.htlcs&&t.htlcs[0]&&t.htlcs[0].route&&t.htlcs[0].route.hops&&t.htlcs[0].route.hops.length>1)},0)}):this.openPaymentAlert(o,!1)}openPaymentAlert(t,a){this.store.dispatch((0,v.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Payment Information",message:t,scrollable:a}}}))}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}loadPaymentsTable(t){this.payments=new r.by(t?[...t]:[]),this.payments.sortingDataAccessor=(a,o)=>"hops"===o?a.htlcs.length&&a.htlcs[0]&&a.htlcs[0].route&&a.htlcs[0].route.hops&&a.htlcs[0].route.hops.length?a.htlcs[0].route.hops.length:0:a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.payments.sort=this.sort,this.payments.filterPredicate=(a,o)=>((a.creation_date?this.datePipe.transform(new Date(1e3*a.creation_date),"dd/MMM/YYYY HH:mm").toLowerCase():"")+JSON.stringify(a).toLowerCase()).includes(o),this.applyFilter()}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const t=JSON.parse(JSON.stringify(this.payments.data)),a=t.reduce((o,s)=>(s.payment_request&&""!==s.payment_request.trim()&&(o=""===o?s.payment_request:o+","+s.payment_request),o),"");this.dataService.decodePayments(a).pipe((0,d.R)(this.unSubs[8])).subscribe(o=>{let s=0;o.forEach((g,U)=>{if(g){for(;t[U+s].payment_hash!==g.payment_hash;)s+=1;t[U+s].description=g.description}});const u=t.reduce((g,U)=>g.concat(U),[]);this.commonService.downloadFile(u,"Payments")})}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(F.mQ),e.Y36(P.v),e.Y36(K.D),e.Y36(w.yh),e.Y36(ie.V),e.Y36(ee.l),e.Y36(m.JJ),e.Y36(m.uU))},n.\u0275cmp=e.Xpm({type:n,selectors:[["rtl-lightning-payments"]],viewQuery:function(t,a){if(1&t&&(e.Gf(kn,5),e.Gf(Z.YE,5),e.Gf(q.NW,5)),2&t){let o;e.iGM(o=e.CRH())&&(a.form=o.first),e.iGM(o=e.CRH())&&(a.sort=o.first),e.iGM(o=e.CRH())&&(a.paginator=o.first)}},inputs:{calledFrom:"calledFrom"},features:[e._Bn([{provide:q.ye,useValue:(0,l.pt)("Payments")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap"],["sendPaymentForm","ngForm"],["fxFlex","100"],["matInput","","placeholder","Payment Request","name","paymentRequest","tabindex","1","required","",3,"perfectScrollbar","ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","4",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign","start end"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","payment_hash"],["matColumnDef","fee"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","value"],["matColumnDef","hops"],["matColumnDef","actions"],["mat-header-cell","","class","px-2",4,"matHeaderCellDef"],["mat-cell","","class","px-2","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","groupTotal"],["matColumnDef","groupHash"],["matColumnDef","groupFee"],["matColumnDef","groupValue"],["matColumnDef","groupHops"],["matColumnDef","groupAction"],["mat-cell","","class","px-2",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"length","pageSize","pageSizeOptions","showFirstLastButtons","page"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","dot green","matTooltip","Succeeded","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Succeeded","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Failed","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-2"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"px-2"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"htlc-row-span"],["fxLayoutAlign","start center","class","htlc-row-span pl-3",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"htlc-row-span","pl-3"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-cell","",1,"px-2"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["fxLayoutAlign","end center",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(t,a){1&t&&(e.TgZ(0,"div",0),e.YNc(1,On,12,3,"form",1),e.YNc(2,Un,3,0,"div",2),e.YNc(3,La,50,18,"div",3),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf","home"===a.calledFrom),e.xp6(1),e.Q6J("ngIf","transactions"===a.calledFrom),e.xp6(1),e.Q6J("ngIf","transactions"===a.calledFrom))},directives:[_.xw,_.yH,_.Wh,m.O5,c._Y,c.JL,c.F,f.KE,R.Nt,c.Fj,c.Q7,Y.$V,c.JJ,c.On,L.lW,f.bx,f.TO,I.BN,r.BZ,Z.YE,m.mk,S.oO,r.w1,r.fO,r.Dz,r.mD,r.nj,r.Ke,r.as,q.NW,M.pW,r.ge,Z.nU,r.ev,W.gM,m.PC,S.Zl,O.gD,O.$L,E.ey,r.yh,m.sg,r.Gk,r.Q2,r.XQ],pipes:[m.uU,m.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-payment_hash[_ngcontent-%COMP%]{flex:0 0 20%;width:20%}.mat-column-payment_hash[_ngcontent-%COMP%] .ellipsis-parent[_ngcontent-%COMP%]{display:flex}.mat-column-groupAction[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{width:9rem}.mat-column-groupAction[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{margin-top:.5rem;width:9rem}.htlc-row-span[_ngcontent-%COMP%]{min-height:4.2rem;place-content:center flex-start;align-items:center}.mat-column-groupTotal[_ngcontent-%COMP%]{min-width:17rem}"]}),n})();function ka(n,i){if(1&n&&(e.TgZ(0,"button",26),e.TgZ(1,"mat-icon"),e._uU(2,"more_vert"),e.qZA(),e.qZA()),2&n){e.oxw();const t=e.MAs(11);e.Q6J("matMenuTriggerFor",t)}}function Fa(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){const s=e.CHM(t).index,u=e.oxw().$implicit;return e.oxw(2).onNavigateTo(u.links[s])}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function Na(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){return e.CHM(t),e.oxw(3).onsortChannelsBy()}),e._uU(1),e.qZA()}if(2&n){const t=e.oxw(3);e.xp6(1),e.hij("Sort By ","Balance Score"===t.sortField?"Capacity":"Balance Score","")}}function Oa(n,i){1&n&&e._UZ(0,"mat-progress-bar",28)}function Ua(n,i){if(1&n&&e._UZ(0,"rtl-node-info",29),2&n){const t=e.oxw(3);e.Q6J("information",t.information)("showColorFieldSeparately",!1)}}function Ra(n,i){if(1&n&&e._UZ(0,"rtl-balances-info",30),2&n){const t=e.oxw(3);e.Q6J("balances",t.balances)("errorMessage",t.errorMessages[3]+" "+t.errorMessages[2])}}function Ia(n,i){if(1&n&&e._UZ(0,"rtl-channel-capacity-info",31),2&n){const t=e.oxw(3);e.Q6J("sortBy",t.sortField)("channelBalances",t.channelBalances)("allChannels",t.allChannelsCapacity)("errorMessage",t.errorMessages[3])}}function Da(n,i){if(1&n&&e._UZ(0,"rtl-fee-info",32),2&n){const t=e.oxw(3);e.Q6J("fees",t.fees)("errorMessage",t.errorMessages[1])}}function Pa(n,i){if(1&n&&e._UZ(0,"rtl-channel-status-info",33),2&n){const t=e.oxw(3);e.Q6J("channelsStatus",t.channelsStatus)("errorMessage",t.errorMessages[3]+" "+t.errorMessages[4])}}function Ma(n,i){1&n&&(e.TgZ(0,"h3"),e._uU(1,"Error! Unable to find information!"),e.qZA())}const Re=function(n){return{"dashboard-card-content":!0,"error-border":n}};function Ja(n,i){if(1&n&&(e.TgZ(0,"mat-grid-tile",8),e.TgZ(1,"mat-card",9),e.TgZ(2,"mat-card-header"),e.TgZ(3,"mat-card-title",10),e.TgZ(4,"div"),e._UZ(5,"fa-icon",11),e.TgZ(6,"span"),e._uU(7),e.qZA(),e.qZA(),e.TgZ(8,"div"),e.YNc(9,ka,3,1,"button",12),e.TgZ(10,"mat-menu",13,14),e.YNc(12,Fa,2,1,"button",15),e.YNc(13,Na,2,1,"button",16),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"mat-card-content",17),e.YNc(15,Oa,1,0,"mat-progress-bar",18),e.TgZ(16,"div",19),e.YNc(17,Ua,1,2,"rtl-node-info",20),e.YNc(18,Ra,1,2,"rtl-balances-info",21),e.YNc(19,Ia,1,4,"rtl-channel-capacity-info",22),e.YNc(20,Da,1,2,"rtl-fee-info",23),e.YNc(21,Pa,1,2,"rtl-channel-status-info",24),e.YNc(22,Ma,2,0,"h3",25),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("colspan",t.cols)("rowspan",t.rows),e.xp6(5),e.Q6J("icon",t.icon),e.xp6(2),e.Oqu(t.title),e.xp6(2),e.Q6J("ngIf",t.links[0]),e.xp6(3),e.Q6J("ngForOf",t.goToOptions),e.xp6(1),e.Q6J("ngIf","capacity"===t.id),e.xp6(1),e.s9C("fxFlex","node"===t.id||"balance"===t.id?70:"fee"===t.id||"status"===t.id?78:90),e.Q6J("ngClass",e.VKq(16,Re,"node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.ERROR||"balance"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR||a.apiCallStatusBlockchainBalance.status===a.apiCallStatusEnum.ERROR)||"capacity"===t.id&&a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR||"fee"===t.id&&a.apiCallStatusFees.status===a.apiCallStatusEnum.ERROR||"status"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR||a.apiCallStatusPendingChannels.status===a.apiCallStatusEnum.ERROR))),e.xp6(1),e.Q6J("ngIf","node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.INITIATED||"balance"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED||a.apiCallStatusBlockchainBalance.status===a.apiCallStatusEnum.INITIATED)||"capacity"===t.id&&a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED||"fee"===t.id&&a.apiCallStatusFees.status===a.apiCallStatusEnum.INITIATED||"status"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED||a.apiCallStatusPendingChannels.status===a.apiCallStatusEnum.INITIATED)),e.xp6(1),e.Q6J("ngSwitch",t.id),e.xp6(1),e.Q6J("ngSwitchCase","node"),e.xp6(1),e.Q6J("ngSwitchCase","balance"),e.xp6(1),e.Q6J("ngSwitchCase","capacity"),e.xp6(1),e.Q6J("ngSwitchCase","fee"),e.xp6(1),e.Q6J("ngSwitchCase","status")}}function Qa(n,i){if(1&n&&(e.TgZ(0,"div",2),e.TgZ(1,"div",3),e._UZ(2,"fa-icon",4),e.TgZ(3,"span",5),e._uU(4),e.qZA(),e.qZA(),e.TgZ(5,"mat-grid-list",6),e.YNc(6,Ja,23,18,"mat-grid-tile",7),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("icon",t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.ERROR?t.faFrown:t.faSmile),e.xp6(2),e.Oqu(t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.COMPLETED?"Welcome "+t.information.alias+"! Your node is up and running.":t.apiCallStatusNodeInfo.status===t.apiCallStatusEnum.INITIATED?"Wait! Getting your node information...":"Error! Please check the server connection."),e.xp6(1),e.Q6J("rowHeight",t.operatorCardHeight),e.xp6(1),e.Q6J("ngForOf",t.operatorCards)}}function Ea(n,i){if(1&n&&(e.TgZ(0,"button",26),e.TgZ(1,"mat-icon"),e._uU(2,"more_vert"),e.qZA(),e.qZA()),2&n){e.oxw();const t=e.MAs(9);e.Q6J("matMenuTriggerFor",t)}}function Ya(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){const s=e.CHM(t).index,u=e.oxw(2).$implicit;return e.oxw(2).onNavigateTo(u.links[s])}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function Ba(n,i){if(1&n&&(e.TgZ(0,"mat-card-header"),e.TgZ(1,"mat-card-title",10),e.TgZ(2,"div"),e._UZ(3,"fa-icon",11),e.TgZ(4,"span"),e._uU(5),e.qZA(),e.qZA(),e.TgZ(6,"div"),e.YNc(7,Ea,3,1,"button",12),e.TgZ(8,"mat-menu",13,43),e.YNc(10,Ya,2,1,"button",15),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(3),e.Q6J("icon",t.icon),e.xp6(2),e.Oqu(t.title),e.xp6(2),e.Q6J("ngIf",t.links[0]),e.xp6(3),e.Q6J("ngForOf",t.goToOptions)}}function Ha(n,i){1&n&&e._UZ(0,"mat-progress-bar",28)}function Ga(n,i){if(1&n&&e._UZ(0,"rtl-node-info",44),2&n){const t=e.oxw(3);e.Q6J("information",t.information)}}function za(n,i){if(1&n&&e._UZ(0,"rtl-balances-info",30),2&n){const t=e.oxw(3);e.Q6J("balances",t.balances)("errorMessage",t.errorMessages[3]+" "+t.errorMessages[2])}}function Va(n,i){if(1&n&&e._UZ(0,"rtl-channel-liquidity-info",45),2&n){const t=e.oxw(3);e.Q6J("direction","In")("totalLiquidity",t.totalInboundLiquidity)("allChannels",t.allInboundChannels)("errorMessage",t.errorMessages[3])}}function Wa(n,i){if(1&n&&e._UZ(0,"rtl-channel-liquidity-info",45),2&n){const t=e.oxw(3);e.Q6J("direction","Out")("totalLiquidity",t.totalOutboundLiquidity)("allChannels",t.allOutboundChannels)("errorMessage",t.errorMessages[3])}}function Xa(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",27),e.NdJ("click",function(){const s=e.CHM(t).index,u=e.oxw(3).$implicit;return e.oxw(2).onNavigateTo(u.links[s])}),e._uU(1),e.qZA()}if(2&n){const t=i.$implicit;e.xp6(1),e.Oqu(t)}}function $a(n,i){if(1&n&&(e.TgZ(0,"button",26),e.TgZ(1,"mat-icon"),e._uU(2,"more_vert"),e.qZA(),e.qZA(),e.TgZ(3,"mat-menu",13,53),e.YNc(5,Xa,2,1,"button",15),e.qZA()),2&n){const t=e.MAs(4),a=e.oxw(2).$implicit;e.Q6J("matMenuTriggerFor",t),e.xp6(5),e.Q6J("ngForOf",a.goToOptions)}}function ja(n,i){1&n&&(e.TgZ(0,"span",46),e.TgZ(1,"mat-tab-group",47),e.TgZ(2,"mat-tab",48),e._UZ(3,"rtl-lightning-invoices",49),e.qZA(),e.TgZ(4,"mat-tab",50),e._UZ(5,"rtl-lightning-payments",49),e.qZA(),e.TgZ(6,"mat-tab",51),e.YNc(7,$a,6,2,"ng-template",52),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.xp6(3),e.Q6J("calledFrom","home"),e.xp6(2),e.Q6J("calledFrom","home"),e.xp6(1),e.Q6J("disabled",!0))}function Ka(n,i){1&n&&(e.TgZ(0,"h3"),e._uU(1,"Error! Unable to find information!"),e.qZA())}const ei=function(n){return{"p-0":n}};function ti(n,i){if(1&n&&(e.TgZ(0,"mat-grid-tile",8),e.TgZ(1,"mat-card",36),e.YNc(2,Ba,11,4,"mat-card-header",37),e.TgZ(3,"mat-card-content",38),e.YNc(4,Ha,1,0,"mat-progress-bar",18),e.TgZ(5,"div",39),e.YNc(6,Ga,1,1,"rtl-node-info",40),e.YNc(7,za,1,2,"rtl-balances-info",21),e.YNc(8,Va,1,4,"rtl-channel-liquidity-info",41),e.YNc(9,Wa,1,4,"rtl-channel-liquidity-info",41),e.YNc(10,ja,8,3,"span",42),e.YNc(11,Ka,2,0,"h3",25),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n){const t=i.$implicit,a=e.oxw(2);e.Q6J("colspan",t.cols)("rowspan",t.rows),e.xp6(1),e.Q6J("ngClass",e.VKq(13,ei,"transactions"===t.id)),e.xp6(1),e.Q6J("ngIf","transactions"!==t.id),e.xp6(1),e.s9C("fxFlex","transactions"===t.id?100:"balance"===t.id?70:90),e.Q6J("ngClass",e.VKq(15,Re,"node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.ERROR||"balance"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR||a.apiCallStatusBlockchainBalance.status===a.apiCallStatusEnum.ERROR)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&a.apiCallStatusChannels.status===a.apiCallStatusEnum.ERROR)),e.xp6(1),e.Q6J("ngIf","node"===t.id&&a.apiCallStatusNodeInfo.status===a.apiCallStatusEnum.INITIATED||"balance"===t.id&&(a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED||a.apiCallStatusBlockchainBalance.status===a.apiCallStatusEnum.INITIATED)||("inboundLiq"===t.id||"outboundLiq"===t.id)&&a.apiCallStatusChannels.status===a.apiCallStatusEnum.INITIATED),e.xp6(1),e.Q6J("ngSwitch",t.id),e.xp6(1),e.Q6J("ngSwitchCase","node"),e.xp6(1),e.Q6J("ngSwitchCase","balance"),e.xp6(1),e.Q6J("ngSwitchCase","inboundLiq"),e.xp6(1),e.Q6J("ngSwitchCase","outboundLiq"),e.xp6(1),e.Q6J("ngSwitchCase","transactions")}}function ni(n,i){if(1&n&&(e.TgZ(0,"div",34),e._UZ(1,"fa-icon",4),e.TgZ(2,"span",5),e._uU(3),e.qZA(),e.qZA(),e.TgZ(4,"mat-grid-list",35),e.YNc(5,ti,12,17,"mat-grid-tile",7),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("icon",t.faSmile),e.xp6(2),e.hij("Welcome ",t.information.alias,"! Your node is up and running."),e.xp6(1),e.Q6J("rowHeight",t.merchantCardHeight),e.xp6(1),e.Q6J("ngForOf",t.merchantCards)}}let ai=(()=>{class n{constructor(t,a,o,s,u){switch(this.logger=t,this.store=a,this.actions=o,this.commonService=s,this.router=u,this.faSmile=ve.I3,this.faFrown=ve.Kf,this.faAngleDoubleDown=y.Sbq,this.faAngleDoubleUp=y.Vfw,this.faChartPie=y.OS1,this.faBolt=y.BDt,this.faServer=y.xf3,this.faNetworkWired=y.kXW,this.flgChildInfoUpdated=!1,this.userPersonaEnum=l.ol,this.activeChannels=0,this.inactiveChannels=0,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.selNode={},this.information={},this.balances={onchain:-1,lightning:-1,total:0},this.allChannels=[],this.channelsStatus={},this.allChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="330px",this.merchantCardHeight="65px",this.sortField="Balance Score",this.screenSizeEnum=l.cu,this.errorMessages=["","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusFees=null,this.apiCallStatusBlockchainBalance=null,this.apiCallStatusChannels=null,this.apiCallStatusPendingChannels=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize){case l.cu.XS:this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","inactive"],icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:6,rows:6},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}];break;case l.cu.SM:case l.cu.MD:this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","inactive"],icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:3,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}];break;default:this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","inactive"],icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:2,rows:5}]}}ngOnInit(){this.store.select(C.bx).pipe((0,d.R)(this.unSubs[0])).subscribe(t=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=t.apiCallStatus,this.apiCallStatusNodeInfo.status===l.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message),this.selNode=t.nodeSettings,this.information=t.information}),this.store.select(C.JG).pipe((0,d.R)(this.unSubs[1])).subscribe(t=>{this.errorMessages[1]="",this.apiCallStatusFees=t.apiCallStatus,this.apiCallStatusFees.status===l.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message),this.fees=t.fees}),this.store.select(C.qU).pipe((0,d.R)(this.unSubs[2])).subscribe(t=>{this.errorMessages[2]="",this.apiCallStatusBlockchainBalance=t.apiCallStatus,this.apiCallStatusBlockchainBalance.status===l.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusBlockchainBalance.message?JSON.stringify(this.apiCallStatusBlockchainBalance.message):this.apiCallStatusBlockchainBalance.message),this.balances.onchain=+t.blockchainBalance.total_balance>=0?+t.blockchainBalance.total_balance:0,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances)}),this.store.select(C.ni).pipe((0,d.R)(this.unSubs[3])).subscribe(t=>{this.errorMessages[4]="",this.apiCallStatusPendingChannels=t.apiCallStatus,this.apiCallStatusPendingChannels.status===l.Bn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusPendingChannels.message?JSON.stringify(this.apiCallStatusPendingChannels.message):this.apiCallStatusPendingChannels.message),this.channelsStatus.pending={num_channels:t.pendingChannelsSummary.open.num_channels,capacity:t.pendingChannelsSummary.open.limbo_balance},this.channelsStatus.closing={num_channels:t.pendingChannelsSummary.closing.num_channels+t.pendingChannelsSummary.force_closing.num_channels+t.pendingChannelsSummary.waiting_close.num_channels,capacity:t.pendingChannelsSummary.total_limbo_balance}}),this.store.select(C.ZW).pipe((0,d.R)(this.unSubs[4])).subscribe(t=>{this.errorMessages[3]="",this.apiCallStatusChannels=t.apiCallStatus,this.apiCallStatusChannels.status===l.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message);const a=t.lightningBalance&&t.lightningBalance.local?+t.lightningBalance.local:0,o=t.lightningBalance&&t.lightningBalance.remote?+t.lightningBalance.remote:0;this.channelBalances={localBalance:a,remoteBalance:o,balancedness:+(1-Math.abs((a-o)/(a+o))).toFixed(3)},this.balances.lightning=t.lightningBalance.local,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances),this.activeChannels=t.channelsSummary.active.num_channels,this.inactiveChannels=t.channelsSummary.inactive.num_channels,this.channelsStatus.active=t.channelsSummary.active,this.channelsStatus.inactive=t.channelsSummary.inactive,this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.allChannels=t.channels.filter(u=>!0===u.active),this.allChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels,"balancedness"))),this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels.filter(u=>u.remote_balance>0),"remote_balance"))),this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels.filter(u=>u.local_balance>0),"local_balance"))),this.allChannels.forEach(u=>{this.totalInboundLiquidity=this.totalInboundLiquidity+ +u.remote_balance,this.totalOutboundLiquidity=this.totalOutboundLiquidity+ +u.local_balance}),this.flgChildInfoUpdated=this.balances.lightning>=0&&this.balances.onchain>=0&&this.fees.month_fee_sum>=0,this.logger.info(t)}),this.actions.pipe((0,d.R)(this.unSubs[5]),(0,Q.h)(t=>t.type===l.uR.FETCH_FEES_LND||t.type===l.uR.SET_FEES_LND)).subscribe(t=>{t.type===l.uR.FETCH_FEES_LND&&(this.flgChildInfoUpdated=!1),t.type===l.uR.SET_FEES_LND&&(this.flgChildInfoUpdated=!0)})}onNavigateTo(t){"inactive"===t?this.router.navigateByUrl("/lnd/connections",{state:{filter:t}}):this.router.navigateByUrl("/lnd/"+t)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.allChannels.sort((t,a)=>{const o=+t.local_balance+ +t.remote_balance,s=+a.local_balance+ +a.remote_balance;return o>s?-1:o
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(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;BA 2?"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;m 0,"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;WA 57)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;j eA&&(L=eA-at),j=L;j>=0;j--){for(var et=!0,mA=0;mA wA&&(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;wA 239?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;dA wA.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;L L&&(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;wA dA)&&(L=dA);for(var wA="",RA=O;RA L)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||O G.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||G 3?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;eA 55295&&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;L st;)(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;N 6&&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.length g&&(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;l 0)for(l=0;l this.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;Q 0?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 Q p.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;w IA.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;X 1&&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;X 255)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;Ar 0&&(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;X 1&&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;en 1&&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&&Zt this.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&&Zt this.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;Ze 0&&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;rt 3&&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;Z 0&&(pA.outlineData.Prev=this.children[Z-1].dictionary),Z 0)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;fA 1&&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;tt Be&&(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);Ue Be&&(Be=Ue)}for(var ye=QA(Ut),Te=0;Te =0&&ye[Te]<=1){var ke=uA(ye[Te],Ct);ke ge&&(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;Le LA[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;ZA NA.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;Et 0?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;rn 0&&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;Tt 0&&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;Et 0&&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;ge 0&&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;NA 0?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;it 0?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;ce jt||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;De 0&&ge<1/0)for(var De=0;De =2)for(var Le=(zt-(Be-Vt))/(Et.length-1),Ue=0;Ue 0?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;p D?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;s 0)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;m 0},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;rA 4&&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;nt 0;++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);rA 0;){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;Mn 4?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;JA 0&&(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;E this.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;QA 0;){var uA=R(N,_);_+=uA,AA-=uA}for(var CA=0;CA I.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.chunkSize I.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+AA.chunkSize);if(AA.windowBits&&(AA.windowBits I.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+AA.windowBits);if(AA.level&&(AA.level I.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+AA.level);if(AA.memLevel&&(AA.memLevel I.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(AA I.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.gzindex jA&&(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.gzindex jA&&(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]&&jA j.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,P
2;)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++]<