1(self.webpackChunkngx_admin_demo=self.webpackChunkngx_admin_demo||[]).push([[776],{63993:(ys,Ha,bn)=>{"use strict";bn.d(Ha,{f:()=>ie});var E=bn(93953),Ie=bn(21626),xi=bn(69546);let ie=(()=>{class Bi{constructor(tn,e){this.http=tn,this.commonService=e}postPaymentItem(tn){return this.commonService.postData("payment-page/collection-item/",tn)}getAllCollectionItems(){return this.commonService.getData("payment-page/collection-item/")}getCollectionBySearch(tn){return this.commonService.getData("payment-page/collection-item/all/?"+tn)}updateCollection(tn,e){return this.commonService.putData("payment-page/collection-item/?id="+tn,e)}deleteCollectionData(tn){return this.commonService.deleteData("payment-page/collection-item/?id="+tn)}getPaymentPageDataAll(tn,e,Tn){return this.commonService.getData("payment-page/?page="+tn+"&limit="+e+Tn)}postPaymentPage(tn){return this.commonService.postData("payment-page/",tn)}deletePaymentPageData(tn){return this.commonService.deleteData("payment-page/?id="+tn)}getPageHistory(tn,e,Tn){return this.commonService.getData("payment-page/transaction/?page="+tn+"&limit="+e+"&"+Tn)}publishPaymentPageData(tn,e){return this.commonService.putData("payment-page/?id="+tn,e)}getApps(){return this.commonService.getData("ipg/ipg/app/")}static#e=this.\u0275fac=function(e){return new(e||Bi)(E.KVO(Ie.Qq),E.KVO(xi.h))};static#t=this.\u0275prov=E.jDH({token:Bi,factory:Bi.\u0275fac,providedIn:"root"})}return Bi})()},80701:(ys,Ha,bn)=>{"use strict";bn.d(Ha,{G:()=>xi});var E=bn(93953),Ie=bn(69546);let xi=(()=>{class ie{constructor(u){this.commonService=u}getIpgReportTransaction(u){return this.commonService.postData("ipg/admin/history/",u)}postCreateBatch(u){return this.commonService.postData("ipg/admin/batch/",u)}getIpgBatchAll(u,tn){return this.commonService.getData("ipg/admin/batch/?page="+u+"&limit="+tn)}getIpgBatchByStatus(u,tn,e){return this.commonService.getData("ipg/admin/batch/?page="+u+"&limit="+tn+"&is_approved="+e)}getBatchIpgTransactions(u,tn,e){return this.commonService.getData("ipg/admin/ipg_transaction_batch/?page="+u+"&limit="+tn+"&id="+e)}getIpgProvider(){return this.commonService.getData("ipg/admin/get_ipg_providers/")}getSettlementProvider(){return this.commonService.getData("merchant/provider-drop-down/")}getBatchReportTransaction(u){return this.commonService.postData("ipg/admin/batch_report/",u)}deleteTransaction(u){return this.commonService.postData("ipg/admin/delete_batch_assigned_transaction/",u)}approveData(u){return this.commonService.postData("ipg/admin/ipg_transaction_batch_approve/",u)}getIpgReport(u){return this.commonService.postData("ipg/ipg_report/",u)}getPaymentLinkReport(u){return this.commonService.postData("ipg/payment_link_report/",u)}getPaymentPageReport(u){return this.commonService.postDataPaymentPage("ipg/payment_page_report/",u)}getMerchantEventReport(u){return this.commonService.getData("events/export-event-excel/?event_id="+u)}getTransactionHistoryReport(u){return this.commonService.getData("ipg/merchant/history/?"+u)}getPayoutReport(u){return this.commonService.postData("ipg/settlement-report/",u)}getPayoutReportTran(u){return this.commonService.getData("ipg/settlement-data/?batch_id="+u)}getAllTransactionforMerchant(u){return this.commonService.postData("ipg/admin/total_transaction_amount_merchant_batch/",u)}static#e=this.\u0275fac=function(tn){return new(tn||ie)(E.KVO(Ie.h))};static#t=this.\u0275prov=E.jDH({token:ie,factory:ie.\u0275fac,providedIn:"root"})}return ie})()},37572:(ys,Ha,bn)=>{"use strict";bn.r(Ha),bn.d(Ha,{AccountSettingsModule:()=>os});var E=bn(88928),Ie=bn(76984),xi=bn(89417),ie=bn(85013),Bi=bn(95633),u=bn(93953),tn=bn(2037),e=bn(73989),Tn=bn(45312),qe=bn(60177),Ot=bn(91725);const Pn=()=>["jpg","jpeg","png"];function wt(Ye,Jn){if(1&Ye){const ee=u.RV6();u.j41(0,"div",3)(1,"label",4),u.EFF(2,"Setup Fee Amount"),u.k0s(),u.j41(3,"input",5),u.bIt("keydown",function(Be){u.eBV(ee);const J=u.XpG();return u.Njj(J.onKeyDown(Be))}),u.k0s()()}if(2&Ye){const ee=u.XpG();u.R7$(3),u.Y8G("value",(null==ee.details?null:ee.details.setup_fee_amount)||"Not Available")}}
1function Wn(Ye,Jn){if(1&Ye){const ee=u.RV6();u.j41(0,"div",3)(1,"label",4),u.EFF(2,"Setup Fee Paid Date"),u.k0s(),u.j41(3,"input",5),u.bIt("keydown",function(Be){u.eBV(ee);const J=u.XpG();return u.Njj(J.onKeyDown(Be))}),u.k0s()()}if(2&Ye){const ee=u.XpG();u.R7$(3),u.Y8G("value",(null==ee.details?null:ee.details.setup_fee_paid_on)||"Not Available")}}function Pt(Ye,Jn){if(1&Ye){const ee=u.RV6();u.j41(0,"div",3)(1,"label",4),u.EFF(2,"Setup Fee Waved off?"),u.k0s(),u.j41(3,"input",5),u.bIt("keydown",function(Be){u.eBV(ee);const J=u.XpG();return u.Njj(J.onKeyDown(Be))}),u.k0s()()}if(2&Ye){const ee=u.XpG();u.R7$(3),u.Y8G("value",1===(null==ee.details?null:ee.details.is_setup_fee_waved_off)?"Yes":"No")}}function Mt(Ye,Jn){if(1&Ye){const ee=u.RV6();u.qex(0),u.j41(1,"div",15)(2,"div",16)(3,"div",8)(4,"div",17),u.nrm(5,"nb-icon",20),u.j41(6,"h2",19),u.EFF(7,"Account Details"),u.k0s()()()()(),u.j41(8,"div",2)(9,"div",3)(10,"label",4),u.EFF(11,"Bank"),u.k0s(),u.j41(12,"input",5),u.bIt("keydown",function(Be){u.eBV(ee);const J=u.XpG();return u.Njj(J.onKeyDown(Be))}),u.k0s()(),u.j41(13,"div",3)(14,"label",4),u.EFF(15,"Bank Acc Type"),u.k0s(),u.j41(16,"input",5),u.bIt("keydown",function(Be){u.eBV(ee);const J=u.XpG();return u.Njj(J.onKeyDown(Be))}),u.k0s()(),u.j41(17,"div",3)(18,"label",4),u.EFF(19,"Bank Acc. No."),u.k0s(),u.j41(20,"input",5),u.bIt("keydown",function(Be){u.eBV(ee);const J=u.XpG();return u.Njj(J.onKeyDown(Be))}),u.k0s()(),u.j41(21,"div",3)(22,"label",4),u.EFF(23,"Branch Code"),u.k0s(),u.j41(24,"input",5),u.bIt("keydown",function(Be){u.eBV(ee);const J=u.XpG();return u.Njj(J.onKeyDown(Be))}),u.k0s()()(),u.bVm()}if(2&Ye){const ee=u.XpG();u.R7$(12),u.Y8G("value",null!=ee.details&&ee.details.account_details?null==ee.details||null==ee.details.account_details[0]?null:ee.details.account_details[0].bank_name:"Not Available"),u.R7$(4),u.Y8G("value",null!=ee.details&&ee.details.account_details?null==ee.details||null==ee.details.account_details[0]?null:ee.details.account_details[0].type:"Not Available"),u.R7$(4),u.Y8G("value",null!=ee.details&&ee.details.account_details?null==ee.details||null==ee.details.account_details[0]?null:ee.details.account_details[0].account_no:"Not Available"),u.R7$(4),u.Y8G("value",null!=ee.details&&ee.details.account_details?null==ee.details||null==ee.details.account_details[0]?null:ee.details.account_details[0].branch_code:"Not Available")}}function Dt(Ye,Jn){1&Ye&&(u.j41(0,"span"),u.EFF(1,"Amex"),u.k0s())}function Fe(Ye,Jn){1&Ye&&(u.j41(0,"span"),u.EFF(1,"Visa"),u.k0s())}function $t(Ye,Jn){1&Ye&&(u.j41(0,"span"),u.EFF(1,"Justpay"),u.k0s())}function dn(Ye,Jn){if(1&Ye&&(u.j41(0,"li"),u.DNE(1,Dt,2,0,"span",14)(2,Fe,2,0,"span",14)(3,$t,2,0,"span",14),u.k0s()),2&Ye){const ee=Jn.$implicit;u.R7$(),u.Y8G("ngIf","AMEX"==ee.type),u.R7$(),u.Y8G("ngIf","VISA"==ee.type),u.R7$(),u.Y8G("ngIf","JUSTPAY"==ee.type)}}function un(Ye,Jn){if(1&Ye&&(u.qex(0),u.j41(1,"div",15)(2,"div",16)(3,"div",8)(4,"div",17),u.nrm(5,"nb-icon",21),u.j41(6,"h2",19),u.EFF(7,"Commision Details"),u.k0s()()()()(),u.j41(8,"div",22)(9,"div",8)(10,"div",23)(11,"label",4),u.EFF(12,"Commission Rate for"),u.k0s(),u.j41(13,"div",24)(14,"ul"),u.DNE(15,dn,4,3,"li",25),u.k0s()()()()(),u.bVm()),2&Ye){const ee=u.XpG();u.R7$(15),u.Y8G("ngForOf",ee.details.commission_details)}}function qt(Ye,Jn){if(1&Ye){const ee=u.RV6();u.j41(0,"div",29)(1,"div",30)(2,"label",31),u.EFF(3),u.k0s(),u.j41(4,"input",5),u.bIt("keydown",function(Be){u.eBV(ee);const J=u.XpG(2);return u.Njj(J.onKeyDown(Be))}),u.k0s()(),u.j41(5,"div",30)(6,"label",31),u.EFF(7),u.k0s(),u.j41(8,"input",5),u.bIt("keydown",function(Be){u.eBV(ee);const J=u.XpG(2);return u.Njj(J.onKeyDown(Be))}),u.k0s()(),u.j41(9,"div",30)(10,"label",31),u.EFF(11),u.k0s(),u.j41(12,"input",5),u.bIt("keydown",function(Be){u.eBV(ee);const J=u.XpG(2);return u.Njj(J.onKeyDown(Be))}),u.k0s()()()}if(2&Ye){const ee=Jn.$implicit,bt=Jn.index,Be=u.XpG(2);u.R7$(3),u.SpI("Shareholder ",bt+1," Name"),u.R7$(),u.Y8G("value",(null==Be.details?null:Be.details.name_shareholder)||"Not Available"),u.R7$(3),u.SpI("Shareholder ",bt+1," Percentage"),u.R7$(),u.Y8G("value",(null==ee?null:ee.percentage_shareholder)||"Not Available"),u.R7$(3),u.SpI("Shareholder ",bt+1," Phone No."),u.R7$(),u.Y8G("value",(null==ee?null:ee.phone_number)||"Not Available")}}
1function yn(Ye,Jn){if(1&Ye&&(u.qex(0),u.j41(1,"div",15)(2,"div",16)(3,"div",8)(4,"div",17),u.nrm(5,"nb-icon",26),u.j41(6,"h2",19),u.EFF(7,"Shareholder Details"),u.k0s()()()()(),u.j41(8,"div",15)(9,"div",27),u.DNE(10,qt,13,6,"div",28),u.k0s()(),u.bVm()),2&Ye){const ee=u.XpG();u.R7$(10),u.Y8G("ngForOf",null==ee.details?null:ee.details.shareholder_details)}}function K(Ye,Jn){1&Ye&&(u.j41(0,"li"),u.EFF(1,"Profile picture is required."),u.k0s())}function ei(Ye,Jn){if(1&Ye&&(u.j41(0,"ul",47),u.DNE(1,K,2,0,"li",14),u.k0s()),2&Ye){const ee=u.XpG(2);u.R7$(),u.Y8G("ngIf",null==ee.picture||null==ee.picture.errors?null:ee.picture.errors.required)}}function kn(Ye,Jn){if(1&Ye){const ee=u.RV6();u.j41(0,"form",32),u.bIt("ngSubmit",function(){u.eBV(ee);const Be=u.XpG();return u.Njj(Be.addUpdateProfilePic())}),u.j41(1,"nb-card",33)(2,"nb-card-header")(3,"div",34)(4,"h4",35),u.EFF(5),u.k0s(),u.j41(6,"button",36),u.bIt("click",function(){u.eBV(ee);const Be=u.XpG();return u.Njj(Be.cancel())}),u.j41(7,"a"),u.nrm(8,"i",37),u.k0s()()()(),u.j41(9,"nb-card-body")(10,"div",38)(11,"label",39),u.EFF(12," Profile Picture "),u.j41(13,"span",40),u.EFF(14,"*"),u.k0s()(),u.j41(15,"div",41)(16,"ngx-file-upload",42),u.bIt("fileChange",function(Be){u.eBV(ee);const J=u.XpG();return u.Njj(J.onFileChange(Be))}),u.k0s(),u.DNE(17,ei,2,1,"ul",43),u.k0s()()(),u.j41(18,"nb-card-footer")(19,"div",44)(20,"button",45),u.bIt("click",function(){u.eBV(ee);const Be=u.XpG();return u.Njj(Be.cancel())}),u.EFF(21,"Cancel"),u.k0s(),u.j41(22,"button",46),u.EFF(23),u.k0s()()()()()}if(2&Ye){const ee=u.XpG();u.Y8G("formGroup",ee.profile_pic_form),u.R7$(5),u.SpI(" ",null!=ee.details&&ee.details.merchant_logo?"Update":"Add"," Profile Picture "),u.R7$(11),u.Y8G("formats",u.lJ4(7,Pn)),u.R7$(),u.Y8G("ngIf",ee.isFieldInvalid("picture")),u.R7$(5),u.Y8G("nbSpinner",ee.is_requesting)("disabled",!ee.profile_pic_form.valid||ee.is_requesting),u.R7$(),u.SpI(" ",null!=ee.details&&ee.details.merchant_logo?"Update":"Add"," ")}}let Fn=(()=>{class Ye{constructor(ee,bt,Be,J){this.fb=ee,this.dialogService=bt,this.toastr=Be,this.profileService=J,this.details=null,this.getMerchantDetails=new u.bkB,this.is_requesting=!1,this.modal_ref=null,this.profile_pic_form=null,this.image_base_path=Tn.c.aws,this.profile_pic_form=this.fb.group({picture:["",[xi.k0.required]]})}get picture(){return this.profile_pic_form.get("picture")}ngOnInit(){}addUpdateProfilePic(){this.is_requesting=!0;const ee={merchant_logo:this.picture.value};console.log(ee,"image"),this.profileService.updateProfilePic(ee).then(bt=>{this.is_requesting=!1,100===bt?.status?(this.toastr.showToast("success","Success!",`Profile picture ${this.details?.merchant_logo?"Updated":"Added"} successfully.`),this.cancel(),setTimeout(()=>{this.getMerchantDetails.emit()},500)):this.toastr.showToast("danger","Error!",bt?.message||(this.details?.merchant_logo?"Updating":"Adding")+" profile picture failed.")},bt=>{this.is_requesting=!1,console.log("Internal Server Error",bt),this.toastr.showToast("danger","Error!","Internal Server Error.")})}isFieldInvalid(ee){const bt=this.profile_pic_form.get(ee);return!!(bt&&bt?.invalid&&bt?.errors&&(bt?.dirty||bt?.touched))}formatCommisionRate(ee){return parseFloat(ee)&&ee}onFileChange(ee){if(!ee||Array.isArray(ee)||"object"!=typeof ee)return void this.picture.setValue("");const bt=new FileReader;bt.readAsDataURL(ee),bt.onload=()=>{this.picture.setValue(bt.result)}}onKeyDown(ee){const bt=ee?.keyCode;return 17===bt||16===bt||35===bt||36===bt||37===bt||39===bt||67===bt}openModal(ee){this.modal_ref=this.dialogService.open(ee,{closeOnBackdropClick:!1})}cancel(){this.profile_pic_form.reset(),this.modal_ref.close()}static#e=this.\u0275fac=function(bt){return new(bt||Ye)(u.rXU(xi.ok),u.rXU(E.S0W),u.rXU(e.V4),u.rXU(tn.pq))};static#t=this.\u0275cmp=u.VBU({type:Ye,selectors:[["ngx-personal-details"]],inputs:{details:"details"},outputs:{getMerchantDetails:"getMerchantDetails"},decls:119,vars:30,consts:[["uploadProfilePictureModal",""],[1,"col-12","col-sm-11","col-md-8","col-lg-12","col-xl-11","col-xxl-10","mx-auto","my-4","profile-details-root"],[1,"row","justify-content-start","align-items-center"],[1,"col-12","col-lg-6","d-flex","flex-column","flex-lg-row","justify-content-start","align-items-start","align-items-lg-center","px-0","px-lg-4","mb-3"],[1,"col","col-lg-5","px-0","px-lg-3","mb-1","mb-md-0"],["type","text","nbInput","","fullWidth","","fieldSize","small",3,"keydown","value"],["class","col-12 col-lg-6 d-flex flex-column flex-lg-row justify-content-start align-items-start align-items-lg-center px-0 px-lg-4 mb-3",4,"ngIf"],[1,"row","my-4","profile-picture"],[1,"col","px-0","px-lg-3"],[1,"col","col-lg-6","d-flex","flex-column","flex-sm-row","justify-content-start","align-items-start","align-items-sm-center","px-0","px-lg-3","mb-3"],[1,"col-12","col-sm-4","col-md-5","d-flex","justify-content-start","align-items-center","px-0","px-lg-2","mb-2","mb-md-0"],["nbButton","","status","basic","size","small",3,"click"],[1,"col","d-flex","justify-content-start","align-items-center","px-0"],["alt","profile picture",3,"src"],[4,"ngIf"],[1,"row"],[1,"col","px-0","px-lg-3","mt-3"],[1,"col","d-flex","justify-content-start","align-items-center","px-0","px-lg-2","mb-3"],["icon","phone-outline"],[1,"ml-2","sub-heading"],["icon","credit-card-outline"],["icon","award-outline"],[1,"row","justify-content-start","align-items-start"],[1,"col","col-lg-6","d-flex","flex-column","flex-sm-row","justify-content-start","align-items-start","px-0","px-lg-3","mb-3"],[1,"col","d-flex","flex-column","justify-content-start","align-items-start","commission-rate-for"],[4,"ngFor","ngForOf"],["icon","person-add-outline"],[1,"col","d-flex","flex-column","justify-content-start","align-items-start","px-0","px-lg-2"],["class","col d-flex flex-column flex-lg-row justify-content-start align-items-start align-items-lg-center mb-3 px-0 px-lg-3",4,"ngFor","ngForOf"],[1,"col","d-flex","flex-column","flex-lg-row","justify-content-start","align-items-start","align-items-lg-center","mb-3","px-0","px-lg-3"],[1,"col","col-lg-4","d-flex","flex-column","justify-content-start","align-items-start","px-0","px-lg-3","mb-2","mb-lg-0"],[1,"col","d-flex","align-items-end","px-0","mb-1"],[3,"ngSubmit","formGroup"],[1,"popup-modal-root","profile-pic-modal"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"sub-heading"],["type","button",1,"btn","p-0",2,"color","rgba(0, 0, 0, 0.5)",3,"click"],["size","2px",1,"fas","fa-times"],[1,"d-flex","flex-column","justify-content-start","align-items-start","mb-3"],[1,"col","mb-1"],[1,"form-required-sign"],[1,"col","d-flex","flex-column","justify-content-start","align-items-stretch"],[3,"fileChange","formats"],["class","error-wrapper",4,"ngIf"],[1,"col","d-flex","justify-content-end","align-items-center"],["nbButton","","status","basic","type","button",1,"mr-1",3,"click"],["nbButton","","status","primary","nbSpinnerStatus","success","type","submit",1,"primary-green-btn",3,"nbSpinner","disabled"],[1,"error-wrapper"]],template:function(bt,Be){if(1&bt){const J=u.RV6();u.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"label",4),u.EFF(4,"LankaQR MID"),u.k0s(),u.j41(5,"input",5),u.bIt("keydown",function(se){return u.eBV(J),u.Njj(Be.onKeyDown(se))}),u.k0s()(),u.j41(6,"div",3)(7,"label",4),u.EFF(8,"Business Category"),u.k0s(),u.j41(9,"input",5),u.bIt("keydown",function(se){return u.eBV(J),u.Njj(Be.onKeyDown(se))}),u.k0s()(),u.j41(10,"div",3)(11,"label",4),u.EFF(12,"Business Type"),u.k0s(),u.j41(13,"input",5),u.bIt("keydown",function(se){return u.eBV(J),u.Njj(Be.onKeyDown(se))}),u.k0s()(),u.j41(14,"div",3)(15,"label",4),u.EFF(16,"Commission Rate"),u.k0s(),u.j41(17,"input",5),u.bIt("keydown",function(se){return u.eBV(J),u.Njj(Be.onKeyDown(se))}),u.k0s()(),u.j41(18,"div",3)(19,"label",4),u.EFF(20,"Date of Registration"),u.k0s(),u.j41(21,"input",5),u.bIt("keydown",function(se){return u.eBV(J),u.Njj(Be.onKeyDown(se))}),u.k0s()(),u.j41(22,"div",3)(23,"label",4),u.EFF(24,"Registered Business N
1ame"),u.k0s(),u.j41(25,"input",5),u.bIt("keydown",function(se){return u.eBV(J),u.Njj(Be.onKeyDown(se))}),u.k0s()(),u.j41(26,"div",3)(27,"label",4),u.EFF(28,"Register Number"),u.k0s(),u.j41(29,"input",5),u.bIt("keydown",function(se){return u.eBV(J),u.Njj(Be.onKeyDown(se))}),u.k0s()(),u.j41(30,"div",3)(31,"label",4),u.EFF(32,"Title"),u.k0s(),u.j41(33,"input",5),u.bIt("keydown",function(se){return u.eBV(J),u.Njj(Be.onKeyDown(se))}),u.k0s()(),u.j41(34,"div",3)(35,"label",4),u.EFF(36,"First Name"),u.k0s(),u.j41(37,"input",5),u.bIt("keydown",function(se){return u.eBV(J),u.Njj(Be.onKeyDown(se))}),u.k0s()(),u.j41(38,"div",3)(39,"label",4),u.EFF(40,"Last Name"),u.k0s(),u.j41(41,"input",5),u.bIt("keydown",function(se){return u.eBV(J),u.Njj(Be.onKeyDown(se))}),u.k0s()(),u.j41(42,"div",3)(43,"label",4),u.EFF(44,"Identification"),u.k0s(),u.j41(45,"input",5),u.bIt("keydown",function(se){return u.eBV(J),u.Njj(Be.onKeyDown(se))}),u.k0s()(),u.j41(46,"div",3)(47,"label",4),u.EFF(48,"NIC"),u.k0s(),u.j41(49,"input",5),u.bIt("keydown",function(se){return u.eBV(J),u.Njj(Be.onKeyDown(se))}),u.k0s()(),u.j41(50,"div",3)(51,"label",4),u.EFF(52,"Gender"),u.k0s(),u.j41(53,"input",5),u.bIt("keydown",function(se){return u.eBV(J),u.Njj(Be.onKeyDown(se))}),u.k0s()(),u.j41(54,"div",3)(55,"label",4),u.EFF(56,"Designation"),u.k0s(),u.j41(57,"input",5),u.bIt("keydown",function(se){return u.eBV(J),u.Njj(Be.onKeyDown(se))}),u.k0s()(),u.j41(58,"div",3)(59,"label",4),u.EFF(60,"Monthly Income"),u.k0s(),u.j41(61,"input",5),u.bIt("keydown",function(se){return u.eBV(J),u.Njj(Be.onKeyDown(se))}),u.k0s()(),u.j41(62,"div",3)(63,"label",4),u.EFF(64,"Income Tax Number"),u.k0s(),u.j41(65,"input",5),u.bIt("keydown",function(se){return u.eBV(J),u.Njj(Be.onKeyDown(se))}),u.k0s()(),u.j41(66,"div",3)(67,"label",4),u.EFF(68,"Status"),u.k0s(),u.j41(69,"input",5),u.bIt("keydown",function(se){return u.eBV(J),u.Njj(Be.onKeyDown(se))}),u.k0s()(),u.j41(70,"div",3)(71,"label",4),u.EFF(72,"Merchant Agreement Date"),u.k0s(),u.j41(73,"input",5),u.bIt("keydown",function(se){return u.eBV(J),u.Njj(Be.onKeyDown(se))}),u.k0s()(),u.DNE(74,wt,4,1,"div",6)(75,Wn,4,1,"div",6)(76,Pt,4,1,"div",6),u.j41(77,"div",3)(78,"label",4),u.EFF(79,"Correspondence Address"),u.k0s(),u.j41(80,"input",5),u.bIt("keydown",function(se){return u.eBV(J),u.Njj(Be.onKeyDown(se))}),u.k0s()(),u.j41(81,"div",3)(82,"label",4),u.EFF(83,"City"),u.k0s(),u.j41(84,"input",5),u.bIt("keydown",function(se){return u.eBV(J),u.Njj(Be.onKeyDown(se))}),u.k0s()(),u.j41(85,"div",3)(86,"label",4),u.EFF(87,"Postal Code"),u.k0s(),u.j41(88,"input",5),u.bIt("keydown",function(se){return u.eBV(J),u.Njj(Be.onKeyDown(se))}),u.k0s()()(),u.j41(89,"div",7)(90,"div",8)(91,"div",9)(92,"div",10)(93,"button",11),u.bIt("click",function(){u.eBV(J);const se=u.sdS(118);return u.Njj(Be.openModal(se))}),u.EFF(94," Upload Profile "),u.k0s()(),u.j41(95,"div",12),u.nrm(96,"img",13),u.k0s()()()(),u.DNE(97,Mt,25,4,"ng-container",14),u.qex(98),u.j41(99,"div",15)(100,"div",16)(101,"div",8)(102,"div",17),u.nrm(103,"nb-icon",18),u.j41(104,"h2",19),u.EFF(105,"Contact Information"),u.k0s()()()()(),u.j41(106,"div",2)(107,"div",3)(108,"label",4),u.EFF(109,"Phone No."),u.k0s(),u.j41(110,"input",5),u.bIt("keydown",function(se){return u.eBV(J),u.Njj(Be.onKeyDown(se))}),u.k0s()(),u.j41(111,"div",3)(112,"label",4),u.EFF(113,"Email"),u.k0s(),u.j41(114,"input",5),u.bIt("keydown",function(se){return u.eBV(J),u.Njj(Be.onKeyDown(se))}),u.k0s()()(),u.bVm(),u.DNE(115,un,16,1,"ng-container",14)(116,yn,11,1,"ng-container",14),u.k0s(),u.DNE(117,kn,24,8,"ng-template",null,0,u.C5r)}2&bt&&(u.R7$(5),u.Y8G("value",(null==Be.details?null:Be.details.qr_mid)||"Not Available"),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.business_cat)||"Not Available"),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.business_type)||"Not Available"),u.R7$(4),u.Y8G("value",Be.formatCommisionRate(null==Be.details?null:Be.details.commission_rate)||"Not Available"),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.date_of_reg)||"Not Available"),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.business_name)||"Not Available"),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.register_no)||"Not Available"),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.title)||"
1Not Available"),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.first_name)||"No Available"),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.last_name)||"No Available"),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.identification)||"No Available"),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.nic)||"No Available"),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.gender)||"No Available"),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.designation)||"No Available"),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.monthly_income)||"No Available"),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.income_tax)||"No Available"),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.status)||"No Available"),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.merchant_agreement_date)||"Not Available"),u.R7$(),u.Y8G("ngIf",0===(null==Be.details?null:Be.details.is_setup_fee_waved_off)),u.R7$(),u.Y8G("ngIf",0===(null==Be.details?null:Be.details.is_setup_fee_waved_off)),u.R7$(),u.Y8G("ngIf",1===(null==Be.details?null:Be.details.is_setup_fee_waved_off)),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.address_corr)||"Not Available"),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.city)||"Not Available"),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.postal_code)||"Not Available"),u.R7$(8),u.Y8G("src",null!=Be.details&&Be.details.merchant_logo?Be.image_base_path+(null==Be.details?null:Be.details.merchant_logo):"assets/images/blank-profile-picture.png",u.B4B),u.R7$(),u.Y8G("ngIf",null==Be.details?null:Be.details.account_details),u.R7$(13),u.Y8G("value",(null==Be.details?null:Be.details.user_phone_no)||"No Available"),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.user_email)||"No Available"),u.R7$(),u.Y8G("ngIf",(null==Be.details?null:Be.details.commission_details)&&(null==Be.details.commission_details?null:Be.details.commission_details.length)>0),u.R7$(),u.Y8G("ngIf",(null==Be.details?null:Be.details.shareholder_details)&&(null==Be.details.shareholder_details?null:Be.details.shareholder_details.length)>0))},dependencies:[qe.Sq,qe.bT,xi.qT,xi.cb,xi.j4,Ot.P,E.SrT,E.KH5,E.VDm,E.zJv,E.YP2,E.i6h,E.tHu,E.zwc],styles:[".profile-details-root[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:400;font-size:13px;color:#1a202c}.profile-details-root[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{color:#8e8e8e!important}.profile-details-root[_ngcontent-%COMP%] .profile-picture[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:8rem;height:auto;border-radius:10px}.profile-details-root[_ngcontent-%COMP%] .commission-rate-for[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{word-wrap:break-word}.profile-details-root[_ngcontent-%COMP%] .commission-rate-for[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#000000e6;margin-right:8px}.profile-pic-modal[_ngcontent-%COMP%]{width:45rem;height:auto;max-height:78vh}"]})}return Ye})(),Si=(()=>{class Ye{constructor(){this.details=null}ngOnInit(){}onKeyDown(ee){const bt=ee?.keyCode;return 17===bt||16===bt||35===bt||36===bt||37===bt||39===bt||67===bt}static#e=this.\u0275fac=function(bt){return new(bt||Ye)};static#t=this.\u0275cmp=u.VBU({type:Ye,selectors:[["ngx-company-details"]],inputs:{details:"details"},decls:30,vars:7,consts:[[1,"col-10","col-md-8","col-lg-7","col-xl-6","col-xxl-6","mx-auto","my-4","personal-details-root"],[1,"d-flex","flex-column","justify-content-start","align-items-start"],[1,"col","d-flex","flex-column","flex-lg-row","justify-content-start","align-items-start","align-items-lg-center","mx-0","mx-xl-3","mb-3"],[1,"col","col-md-5","d-flex","align-items-end","px-0","px-lg-3","mb-1","mb-md-0"],["type","text","nbInput","","fullWidth","","fieldSize","small",3,"keydown","value"]],template:function(bt,Be){1&bt&&(u.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"label",3),u.EFF(4,"Company Name"),u.k0s(),u.j41(5,"input",4),u.bIt("keydown",function(me){return Be.onKeyDown(me)}),u.k0s()(),u.j41(6,"div",2)(7,"label",3),u.EFF(8,"Company Website"),u.k0s(),u.j41(9,"input",4),u.bIt("keydown",function(me){return Be.onKeyDown(me)}),u.k0s()(),u.j41(10,"div",2)(11,"label",3),u.EFF(12,"Facebook Page URL"),u.k0s(),u.j41(13,"input",4),u.bIt("keydown",function(me){return Be.onKeyDown(me)}),u.k0s()(),u.j41(14,"div",2)(15,"label",3),u.EFF(16,"Instagram Page URL"),u.k0s(),u.j41(17,"input",4),u.bIt("keydown",function(me){return Be.onKeyDown(me)}),u.k0s()(),u.j41(18,"div",2)(19,"label",3),u.EFF(20,"Contact Mobile No."),u.k0s(),u.j41(21,"input",4),u.bIt("keydown",function(me){return Be.onKeyDown(me)}),u.k0s()(),u.j41(22,"div",2)(23,"label",3),u.EFF(24,"Contact Email"),u.k0s(),u.j41(25,"input",4),u.bIt("keydown",function(me){return Be.onKeyDown(me)}),u.k0s()(),u.j41(26,"div",2)(27,"label",3),u.EFF(28,"Location"),u.k0s(),u.j41(29,"input",4),u.bIt("keydown",function(me){return Be.onKeyDown(me)}),u.k0s()()()()),2&bt&&(u.R7$(5),u.Y8G("value",(null==Be.details?null:Be.details.business_name)||"Not Available"),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.business_website)||"Not Available"),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.facebook_page)||"Not Available"),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.instagrame)||"Not Available"),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.contact_phone_no)||"Not Available"),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.contact_phone_no)||"Not Available"),u.R7$(4),u.Y8G("value",(null==Be.details?null:Be.details.city)||"Not Available"))},dependencies:[E.i6h],styles:[".profile-details-root[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:400;font-size:13px;
1color:#1a202c}.profile-details-root[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{color:#8e8e8e!important}.profile-details-root[_ngcontent-%COMP%] .profile-picture[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:8rem;height:auto;border-radius:10px}.profile-details-root[_ngcontent-%COMP%] .commission-rate-for[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{word-wrap:break-word}.profile-details-root[_ngcontent-%COMP%] .commission-rate-for[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#000000e6;margin-right:8px}.profile-pic-modal[_ngcontent-%COMP%]{width:45rem;height:auto;max-height:78vh}"]})}return Ye})(),gr=(()=>{class Ye{constructor(ee,bt){this.profileService=ee,this.toastr=bt,this.is_loading=!1,this.merchant_details=null}ngOnInit(){this.getMerchantDetails()}getMerchantDetails(){this.is_loading=!0,this.profileService.getMerchantDetails().then(ee=>{console.log("getMerchantDetails444444444444444",ee),this.is_loading=!1,100===ee?.status?this.merchant_details=ee?.data:this.toastr.showToast("danger","Error!",ee?.message||"Getting merchant details failed.")},ee=>{this.is_loading=!1,console.log("Internal Server Error",ee),this.toastr.showToast("danger","Error!","Internal Server Error.")})}static#e=this.\u0275fac=function(bt){return new(bt||Ye)(u.rXU(tn.pq),u.rXU(e.V4))};static#t=this.\u0275cmp=u.VBU({type:Ye,selectors:[["ngx-profile"]],decls:13,vars:4,consts:[[1,"body-style","payment-links-root"],[1,"container"],[1,"row","mb-3"],[1,"col"],["tabTitle","Personal Details","tabIcon","person-outline","responsive",""],["nbSpinnerStatus","primary","nbSpinnerSize","large",2,"min-height","35rem",3,"nbSpinner"],[3,"getMerchantDetails","details"],["tabTitle","Company Details","tabIcon","globe-outline","responsive",""],[3,"details"]],template:function(bt,Be){1&bt&&(u.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"nb-tabset")(5,"nb-tab",4)(6,"nb-card",5)(7,"nb-card-body")(8,"ngx-personal-details",6),u.bIt("getMerchantDetails",function(){return Be.getMerchantDetails()}),u.k0s()()()(),u.j41(9,"nb-tab",7)(10,"nb-card",5)(11,"nb-card-body"),u.nrm(12,"ngx-company-details",8),u.k0s()()()()()()()()),2&bt&&(u.R7$(6),u.Y8G("nbSpinner",Be.is_loading),u.R7$(2),u.Y8G("details",Be.merchant_details),u.R7$(2),u.Y8G("nbSpinner",Be.is_loading),u.R7$(2),u.Y8G("details",Be.merchant_details))},dependencies:[E.SrT,E.KH5,E.zwc,E.Hsi,E.d3K,Fn,Si],styles:[".profile-details-root[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:400;font-size:13px;color:#1a202c}.profile-details-root[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{color:#8e8e8e!important}.profile-details-root[_ngcontent-%COMP%] .profile-picture[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:8rem;height:auto;border-radius:10px}.profile-details-root[_ngcontent-%COMP%] .commission-rate-for[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{word-wrap:break-word}.profile-details-root[_ngcontent-%COMP%] .commission-rate-for[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#000000e6;margin-right:8px}.profile-pic-modal[_ngcontent-%COMP%]{width:45rem;height:auto;max-height:78vh}"]})}return Ye})();var ji=bn(10467),jn=bn(63273),sn=bn(62796);const ui=(Ye,Jn,ee)=>({itemsPerPage:Ye,currentPage:Jn,totalItems:ee}),Mn=(Ye,Jn,ee,bt)=>({"text-success":Ye,"text-danger":Jn,"text-warning":ee,"text-muted":bt});function Zi(Ye,Jn){1&Ye&&(u.j41(0,"div",11)(1,"div",12),u.nrm(2,"nb-spinner",13),u.j41(3,"p",14),u.EFF(4,"Loading packages..."),u.k0s()()())}function Mi(Ye,Jn){1&Ye&&(u.j41(0,"span"),u.EFF(1,"Get started"),u.k0s())}function Xi(Ye,Jn){1&Ye&&(u.j41(0,"span"),u.nrm(1,"span",42),u.EFF(2," Processing... "),u.k0s())}function hr(Ye,Jn){1&Ye&&(u.qex(0),u.j41(1,"p",43),u.EFF(2,"Everything in Standard Plan"),u.k0s(),u.j41(3,"li"),u.EFF(4,"Accepts payment from Links, Plugins, API, SDK"),u.k0s(),u.j41(5,"li"),u.EFF(6,"General Support"),u.k0s(),u.j41(7,"li"),u.EFF(8,"Visa, Master, Amex and QR payments"),u.k0s(),u.j41(9,"li"),u.EFF(10,"Daily Payouts 2 days after payment"),u.k0s(),u.j41(11,"li"),u.EFF(12,"Monthly Payment Limit LKR 100,000"),u.k0s(),u.bVm())}function Lr(Ye,Jn){1&Ye&&(u.qex(0),u.j41(1,"p",43),u.EFF(2,"Everything in Essential Plan"),u.k0s(),u.j41(3,"li"),u.EFF(4,"USD acceptance and payouts"),u.k0s(),u.j41(5,"li"),u.EFF(6,"Accepts payment from Links, Plugins, API, SDK"),u.k0s(),u.j41(7,"li"),u.EFF(8,"General Support"),u.k0s(),u.j41(9,"li"),u.EFF(10,"Visa, Master, Amex and QR payments"),u.k0s(),u.j41(11,"li"),u.EFF(12,"Daily Payouts 2 days after payment"),u.k0s(),u.j41(13,"li"),u.EFF(14,"Subscription waived-off limit LKR 500,000"),u.k0s(),u.j41(15,"li"),u.EFF(16,"Monthly Payment Limit LKR 600,000"),u.k0s(),u.bVm())}function Nr(Ye,Jn){1&Ye&&(u.qex(0),u.j41(1,"p",43),u.EFF(2,"Everything in Elevate Plan"),u.k0s(),u.j41(3,"li"),u.EFF(4,"USD acceptance and payouts"),u.k0s(),u.j41(5,"li"),u.EFF(6,"Accepts payment from Links, Plugins, API, SDK"),u.k0s(),u.j41(7,"li"),u.EFF(8,"General Support"),u.k0s(),u.j41(9,"li"),u.EFF(10,"Visa, Master, Amex and QR payments"),u.k0s(),u.j41(11,"li"),u.EFF(12,"Daily Payouts 2 days after payment"),u.k0s(),u.j41(13,"li"),u.EFF(14,"Subscription waived-off limit LKR 2,000,000"),u.k0s(),u.j41(15,"li"),u.EFF(16,"Monthly Payment Limit LKR 2,250,000"),u.k0s(),u.bVm())}function Gi(Ye,Jn){1&Ye&&(u.qex(0),u.j41(1,"p",43),u.EFF(2,"Everything in Premier Plan"),u.k0s(),u.j41(3,"li"),u.EFF(4,"USD acceptance and payouts"),u.k0s(),u.j41(5,"li"),u.EFF(6,"Accepts payment from Links, Plugins, API, SDK"),u.k0s(),u.j41(7,"li"),u.EFF(8,"General Support"),u.k0s(),u.j41(9,"li"),u.EFF(10,"Visa, Master, Amex and QR payments"),u.k0s(),u.j41(11,"li"),u.EFF(12,"Daily Payouts 2 days after payment"),u.k0s(),u.j41(13,"li"),u.EFF(14,"Subscription waived-off limit LKR 3,000,000"),u.k0s(),u.j41(15,"li"),u.EFF(16,"Unlimited Monthly Payment Limit"),u.k0s(),u.bVm())}function Mo(Ye,Jn){1&Ye&&(u.j41(0,"small",44),u.EFF(1," Add payment card to subscribe "),u.k0s())}
1function Bo(Ye,Jn){if(1&Ye){const ee=u.RV6();u.j41(0,"div",26)(1,"div",27),u.bIt("click",function(){const Be=u.eBV(ee).$implicit,J=u.XpG(2);return u.Njj(J.selectPackage(Be))}),u.j41(2,"div",28)(3,"h4",29),u.EFF(4),u.k0s(),u.j41(5,"div",30)(6,"span",31),u.EFF(7,"LKR"),u.k0s(),u.j41(8,"span",32),u.EFF(9),u.k0s(),u.j41(10,"span",33),u.EFF(11,"monthly"),u.k0s()(),u.j41(12,"p",34),u.EFF(13," Payment processing fee is "),u.j41(14,"strong"),u.EFF(15),u.k0s()(),u.j41(16,"button",35),u.bIt("click",function(Be){const J=u.eBV(ee).$implicit;return u.XpG(2).confirmPackageSelection(J),u.Njj(Be.stopPropagation())}),u.DNE(17,Mi,2,0,"span",36)(18,Xi,3,0,"span",36),u.k0s()(),u.nrm(19,"div",37),u.j41(20,"div",38)(21,"h6",39),u.EFF(22,"Features:"),u.k0s(),u.j41(23,"ul",40),u.DNE(24,hr,13,0,"ng-container",36)(25,Lr,17,0,"ng-container",36)(26,Nr,17,0,"ng-container",36)(27,Gi,17,0,"ng-container",36),u.k0s(),u.DNE(28,Mo,2,0,"small",41),u.k0s()()()}if(2&Ye){const ee=Jn.$implicit,bt=u.XpG(2);u.R7$(),u.AVh("active",bt.selectedPackageId===ee.id),u.R7$(3),u.JRh(ee.name),u.R7$(5),u.JRh(ee.price),u.R7$(6),u.SpI(" ","Standard"===ee.name?"3.50":"Essential"===ee.
1name?"3.25":"Elevate"===ee.name?"2.75":"2.50","% "),u.R7$(),u.AVh("active-btn",bt.selectedPackageId===ee.id),u.Y8G("disabled",bt.isPackageLoading(ee.id)||!bt.hasCardData),u.R7$(),u.Y8G("ngIf",!bt.isPackageLoading(ee.id)),u.R7$(),u.Y8G("ngIf",bt.isPackageLoading(ee.id)),u.R7$(6),u.Y8G("ngIf","Standard"===ee.name),u.R7$(),u.Y8G("ngIf","Essential"===ee.name),u.R7$(),u.Y8G("ngIf","Elevate"===ee.name),u.R7$(),u.Y8G("ngIf","Premier"===ee.name),u.R7$(),u.Y8G("ngIf",!bt.hasCardData)}}function Bs(Ye,Jn){1&Ye&&(u.j41(0,"div",45),u.nrm(1,"i",46),u.j41(2,"h4"),u.EFF(3,"No packages available"),u.k0s(),u.j41(4,"p",47),u.EFF(5,"There are no subscription packages available at the moment."),u.k0s()())}function Ts(Ye,Jn){1&Ye&&u.nrm(0,"span",61)}function Hc(Ye,Jn){if(1&Ye){const ee=u.RV6();u.j41(0,"div",48)(1,"div",49)(2,"h2",50),u.EFF(3,"Get Start with OnePay"),u.k0s(),u.j41(4,"div",51)(5,"div",52),u.nrm(6,"img",53),u.k0s()(),u.j41(7,"p",54),u.EFF(8," Save your card to unlock the full potential of your plan. "),u.k0s(),u.j41(9,"ul",55)(10,"li")(11,"span",56),u.EFF(12,"\u2714"),u.k0s(),u.EFF(13," Enjoy instant, one-click transactions. "),u.k0s(),u.j41(14,"li")(15,"span",56),u.EFF(16,"\u2714"),u.k0s(),u.EFF(17," Get priority access to our support team "),u.k0s(),u.j41(18,"li")(19,"span",56),u.EFF(20,"\u2714"),u.k0s(),u.EFF(21," Receive your earnings automatically every day. "),u.k0s()(),u.j41(22,"button",57),u.bIt("click",function(){u.eBV(ee);const Be=u.XpG(2);return u.Njj(Be.saveCard())}),u.DNE(23,Ts,1,0,"span",58),u.EFF(24),u.k0s(),u.j41(25,"button",59),u.bIt("click",function(){u.eBV(ee);const Be=u.XpG(2);return u.Njj(Be.redirectToPricing())}),u.EFF(26," View Packages "),u.k0s(),u.j41(27,"button",60),u.EFF(28," Back Dashboard "),u.k0s()()()}if(2&Ye){const ee=u.XpG(2);u.R7$(22),u.Y8G("disabled",ee.is_requesting),u.R7$(),u.Y8G("ngIf",ee.is_requesting),u.R7$(),u.SpI(" ",ee.is_requesting?"Processing...":"Save Card"," "),u.R7$(),u.Y8G("disabled",ee.is_requesting)}}function Jo(Ye,Jn){if(1&Ye){const ee=u.RV6();u.j41(0,"div",15)(1,"div",16)(2,"div",17)(3,"div",18)(4,"div")(5,"h1",19),u.EFF(6,"Select the package"),u.k0s(),u.j41(7,"p",20),u.EFF(8,"Choose the plan that best fits your needs"),u.k0s()(),u.j41(9,"button",21),u.bIt("click",function(){u.eBV(ee);const Be=u.XpG();return u.Njj(Be.openViewCardModal())}),u.nrm(10,"i",22),u.j41(11,"span"),u.EFF(12,"View Payment Method"),u.k0s()()()(),u.j41(13,"div",23),u.DNE(14,Bo,29,15,"div",24),u.k0s(),u.DNE(15,Bs,6,0,"div",25)(16,Hc,29,4,"div",10),u.k0s()()}if(2&Ye){const ee=u.XpG();u.R7$(9),u.Y8G("disabled",ee.is_requesting),u.R7$(5),u.Y8G("ngForOf",ee.availablePackages),u.R7$(),u.Y8G("ngIf",0===ee.availablePackages.length),u.R7$(),u.Y8G("ngIf",ee.showCardAddModal)}}function rl(Ye,Jn){if(1&Ye){const ee=u.RV6();u.j41(0,"div",105)(1,"button",106),u.bIt("click",function(){u.eBV(ee);const Be=u.XpG(3),J=u.sdS(10);return u.Njj(Be.openCancelConfirmation(J))}),u.EFF(2," Cancel "),u.k0s(),u.j41(3,"button",107),u.EFF(4),u.k0s()()}if(2&Ye){const ee=u.XpG(3);u.R7$(),u.Y8G("disabled",ee.is_requesting),u.R7$(3),u.JRh(ee.package_details.status_display)}}function Wl(Ye,Jn){if(1&Ye&&(u.j41(0,"div",108)(1,"div",109)(2,"div",110),u.EFF(3),u.k0s(),u.j41(4,"div",111),u.EFF(5,"Available"),u.k0s()()()),2&Ye){const ee=u.XpG(3);u.R7$(3),u.SpI("",ee.formatCurrencyReal(ee.package_details.remaining)," ")}}function Zo(Ye,Jn){1&Ye&&(u.j41(0,"div",108)(1,"div",109)(2,"div",110),u.EFF(3,"Unlimited"),u.k0s()()())}function xc(Ye,Jn){if(1&Ye&&(u.j41(0,"span",123),u.EFF(1),u.k0s()),2&Ye){const ee=u.XpG(4);u.R7$(),u.JRh(ee.formatCurrencyReal(ee.package_details.period_limit))}}function al(Ye,Jn){1&Ye&&(u.j41(0,"span",123),u.EFF(1,"Unlimited"),u.k0s())}function fs(Ye,Jn){if(1&Ye&&(u.j41(0,"span",122),u.EFF(1),u.k0s()),2&Ye){const ee=u.XpG(4);u.R7$(),u.JRh(ee.formatCurrencyReal(ee.package_details.remaining))}}function Pl(Ye,Jn){1&Ye&&(u.j41(0,"span",122),u.EFF(1,"Unlimited"),u.k0s())}function aa(Ye,Jn){if(1&Ye&&(u.j41(0,"div",112)(1,"div",113)(2,"div",114),u.nrm(3,"div",115),u.k0s()(),u.j41(4,"div",116)(5,"div",117)(6,"span",118),u.EFF(7,"Total Limit:"),u.k0s(),u.DNE(8,xc,2,1,"span",119)(9,al,2,0,"span",119),u.k0s(),u.j41(10,"div",117)(11,"span",118),u.EFF(12,"Used Amount:"),u.k0s(),u.j41(13,"span",120),u.EFF(14),u.k0s()(),u.j41(15,"div",117)(16,"span",118),u.EFF(17,"Available Limit:"),u.k0s(),u.DNE(18,fs,2,1,"span",121)(19,Pl,2,0,"span",121),u.k0s(),u.j41(20,"div",117)(21,"span",118),u.EFF(22,"Top Up Amount:"),u.k0s(),u.j41(23,"span",122),u.EFF(24),u.k0s()()()()),2&Ye){const ee=u.XpG(3);u.R7$(3),u.xc7("width",ee.getUsagePercentage()+"%"),u.R7$(5),u.Y8G("ngIf",null!==ee.package_details.base_limit),u.R7$(),u.Y8G("ngIf",null===ee.package_details.base_limit),u.R7$(5),u.JRh(ee.formatCurrencyReal(ee.package_details.used)),u.R7$(4),u.Y8G("ngIf",null!==ee.package_details.base_limit),u.R7$(),u.Y8G("ngIf",null===ee.package_details.base_limit),u.R7$(5),u.JRh(ee.formatCurrencyReal(ee.getTopipValue()))}}function ps(Ye,Jn){1&Ye&&(u.j41(0,"span",123),u.EFF(1,"Auto-pay"),u.k0s())}function Gs(Ye,Jn){1&Ye&&(u.j41(0,"span",123),u.EFF(1,"Manually"),u.k0s())}
1function Bd(Ye,Jn){if(1&Ye&&(u.j41(0,"div",112)(1,"div",124)(2,"div",125)(3,"span",118),u.EFF(4,"Current Period:"),u.k0s(),u.j41(5,"span",123),u.EFF(6),u.k0s()(),u.j41(7,"div",125)(8,"span",118),u.EFF(9,"Next Billing Date:"),u.k0s(),u.j41(10,"span",123),u.EFF(11),u.k0s()(),u.j41(12,"div",125)(13,"span",118),u.EFF(14,"Payment Mode:"),u.k0s(),u.DNE(15,ps,2,0,"span",119)(16,Gs,2,0,"span",119),u.k0s()()()),2&Ye){const ee=u.XpG(3);u.R7$(6),u.Lme(" ",ee.formatDate(ee.package_details.current_period_start)," - ",ee.formatDate(ee.package_details.current_period_end)," "),u.R7$(5),u.JRh(ee.formatDate(ee.package_details.next_billing_date)),u.R7$(4),u.Y8G("ngIf","AUTO_MERCHANT"===ee.package_details.payment_mode),u.R7$(),u.Y8G("ngIf","MANUAL_COLLECTION"===ee.package_details.payment_mode)}}function Ia(Ye,Jn){1&Ye&&u.nrm(0,"span",61)}function Kc(Ye,Jn){if(1&Ye){const ee=u.RV6();u.j41(0,"div")(1,"div",125)(2,"span",118),u.EFF(3,"Card Number:"),u.k0s(),u.j41(4,"span",123),u.nrm(5,"i",127),u.EFF(6),u.k0s()(),u.j41(7,"div",125)(8,"span",118),u.EFF(9,"Expiry Date:"),u.k0s(),u.j41(10,"span",123),u.EFF(11),u.k0s()(),u.j41(12,"div",125)(13,"span",118),u.EFF(14,"Card Type:"),u.k0s(),u.j41(15,"span",123),u.EFF(16),u.k0s()(),u.j41(17,"div",125)(18,"span",118),u.EFF(19,"Scheme:"),u.k0s(),u.j41(20,"span",123),u.EFF(21),u.k0s()(),u.j41(22,"div",128),u.nrm(23,"span",118),u.j41(24,"button",106),u.bIt("click",function(){u.eBV(ee);const Be=u.XpG(4);return u.Njj(Be.requestUpdate())}),u.DNE(25,Ia,1,0,"span",58),u.EFF(26),u.k0s()()()}if(2&Ye){const ee=u.XpG(4);u.R7$(6),u.SpI(" ",ee.subscription_card_info.card_no||"xxxx xxxx xxxx xxxx"," "),u.R7$(5),u.Lme(" ",ee.subscription_card_info.expire_month||"xx","/",ee.subscription_card_info.expire_year||"xx"," "),u.R7$(5),u.JRh(ee.subscription_card_info.funding_method||"Not specified"),u.R7$(5),u.JRh(ee.subscription_card_info.scheme||"Not specified"),u.R7$(3),u.Y8G("disabled",ee.is_requesting),u.R7$(),u.Y8G("ngIf",ee.is_requesting),u.R7$(),u.SpI(" ",ee.is_requesting?"Updating...":"Update"," ")}}function Vs(Ye,Jn){1&Ye&&u.nrm(0,"span",61)}function fr(Ye,Jn){if(1&Ye){const ee=u.RV6();u.j41(0,"div")(1,"div",125)(2,"span",118),u.EFF(3,"Status:"),u.k0s(),u.j41(4,"span",129),u.EFF(5,"No payment method added"),u.k0s()(),u.j41(6,"div",128),u.nrm(7,"span",118),u.j41(8,"button",130),u.bIt("click",function(){u.eBV(ee);const Be=u.XpG(4);return u.Njj(Be.requestUpdate())}),u.DNE(9,Vs,1,0,"span",58),u.nrm(10,"i",131),u.EFF(11),u.k0s()()()}if(2&Ye){const ee=u.XpG(4);u.R7$(8),u.Y8G("disabled",ee.is_requesting),u.R7$(),u.Y8G("ngIf",ee.is_requesting),u.R7$(2),u.SpI("",ee.is_requesting?"Adding...":"Add Payment Method"," ")}}function bo(Ye,Jn){if(1&Ye&&(u.j41(0,"div",112)(1,"div",126),u.DNE(2,Kc,27,8,"div",36)(3,fr,12,3,"div",36),u.k0s()()),2&Ye){const ee=u.XpG(3);u.R7$(2),u.Y8G("ngIf",ee.subscription_card_info.card_no),u.R7$(),u.Y8G("ngIf",!ee.subscription_card_info.card_no)}}function Cs(Ye,Jn){if(1&Ye){const ee=u.RV6();u.j41(0,"div",90)(1,"div",91)(2,"div",92)(3,"h2",93),u.EFF(4),u.k0s(),u.DNE(5,rl,5,2,"div",94),u.k0s(),u.DNE(6,Wl,6,1,"div",95)(7,Zo,4,0,"div",95),u.k0s(),u.j41(8,"div",96)(9,"div",97),u.bIt("click",function(){u.eBV(ee);const Be=u.XpG(2);return u.Njj(Be.toggleSection("usage"))}),u.j41(10,"div",98)(11,"span",99),u.EFF(12,"\u{1f4ca}"),u.k0s(),u.j41(13,"span"),u.EFF(14,"Usage Overview"),u.k0s()(),u.j41(15,"div",100)(16,"span",101),u.EFF(17),u.nI1(18,"number"),u.k0s(),u.j41(19,"span",102),u.EFF(20),u.k0s()()(),u.DNE(21,aa,25,8,"div",103),u.k0s(),u.j41(22,"div",96)(23,"div",97),u.bIt("click",function(){u.eBV(ee);const Be=u.XpG(2);return u.Njj(Be.toggleSection("billing"))}),u.j41(24,"div",98)(25,"span",99),u.EFF(26,"\u{1f4b3}"),u.k0s(),u.j41(27,"span"),u.EFF(28,"Billing & Renewal"),u.k0s()(),u.j41(29,"div",100)(30,"span",104),u.EFF(31),u.k0s(),u.j41(32,"span",102),u.EFF(33),u.k0s()()(),u.DNE(34,Bd,17,5,"div",103),u.k0s(),u.j41(35,"div",96)(36,"div",97),u.bIt("click",function(){u.eBV(ee);const Be=u.XpG(2);return u.Njj(Be.toggleSection("payment"))}),u.j41(37,"div",98)(38,"span",99),u.EFF(39,"\u{1f4b0}"),u.k0s(),u.j41(40,"span"),u.EFF(41,"Payment Details"),u.k0s()(),u.j41(42,"div",100)(43,"span",102),u.EFF(44),u.k0s()()(),u.DNE(45,bo,4,2,"div",103),u.k0s()()}if(2&Ye){const ee=u.XpG(2);u.R7$(4),u.JRh(ee.package_details.package_name),u.R7$(),u.Y8G("ngIf",ee.package_details&&"ACTIVE"===ee.package_details.status),u.R7$(),u.Y8G("ngIf",null!==ee.package_details.base_limit),u.R7$(),u.Y8G("ngIf",null===ee.package_details.base_limit),u.R7$(10),u.SpI("",u.i5U(18,12,ee.getUsagePercentage(),"1.2-2"),"% used"),u.R7$(3),u.JRh(ee.expandedSections.usage?"\u2212":"+"),u.R7$(),u.Y8G("ngIf",ee.expandedSections.usage),u.R7$(10),u.JRh(ee.formatDate(ee.package_details.next_billing_date)),u.R7$(2),u.JRh(ee.expandedSections.billing?"\u2212":"+"),u.R7$(),u.Y8G("ngIf",ee.expandedSections.billing),u.R7$(10),u.JRh(ee.expandedSections.payment?"\u2212":"+"),u.R7$(),u.Y8G("ngIf",ee.expandedSections.payment)}}function yo(Ye,Jn){1&Ye&&(u.j41(0,"div",132)(1,"h3"),u.EFF(2,"No Active Subscription"),u.k0s(),u.j41(3,"p"),u.EFF(4,"You currently don't have an active package or subscription plan."),u.k0s()())}
1function Go(Ye,Jn){if(1&Ye&&(u.j41(0,"tr")(1,"td",138),u.EFF(2),u.k0s(),u.j41(3,"td"),u.EFF(4),u.k0s()()),2&Ye){const ee=Jn.$implicit;u.R7$(2),u.JRh(ee.item_name||"Not Available"),u.R7$(2),u.JRh(ee.expired_on||"Not Available")}}function Ml(Ye,Jn){if(1&Ye&&(u.j41(0,"div",135)(1,"table",136)(2,"thead")(3,"tr")(4,"th"),u.EFF(5,"Item Name"),u.k0s(),u.j41(6,"th"),u.EFF(7,"Expired On"),u.k0s()()(),u.j41(8,"tbody"),u.DNE(9,Go,5,2,"tr",137),u.k0s()()()),2&Ye){const ee=u.XpG(3);u.R7$(9),u.Y8G("ngForOf",null==ee.package_details?null:ee.package_details.subscription_data)}}function kr(Ye,Jn){if(1&Ye&&(u.j41(0,"div",133),u.DNE(1,Ml,10,1,"div",134),u.k0s()),2&Ye){u.XpG();const ee=u.sdS(42),bt=u.XpG();u.R7$(),u.Y8G("ngIf",(null==bt.package_details?null:bt.package_details.subscription_data)&&(null==bt.package_details?null:bt.package_details.subscription_data.length)>0)("ngIfElse",ee)}}function $l(Ye,Jn){if(1&Ye&&(u.j41(0,"h4",143),u.EFF(1),u.k0s()),2&Ye){const ee=u.XpG(3);u.R7$(),u.SpI(" ",null==ee.package_details?null:ee.package_details.status_display,"")}}function ol(Ye,Jn){if(1&Ye&&(u.j41(0,"h4",144),u.EFF(1),u.k0s()),2&Ye){const ee=u.XpG(3);u.R7$(),u.JRh(null==ee.package_details?null:ee.package_details.package_name)}}function gl(Ye,Jn){if(1&Ye&&(u.j41(0,"div",139)(1,"h4",140),u.EFF(2,"Package :"),u.k0s(),u.DNE(3,$l,2,1,"h4",141)(4,ol,2,1,"h4",142),u.k0s()),2&Ye){const ee=u.XpG(2);u.R7$(3),u.Y8G("ngIf","SUSPENDED"===ee.package_details.status),u.R7$(),u.Y8G("ngIf","SUSPENDED"!==ee.package_details.status)}}function ql(Ye,Jn){if(1&Ye&&(u.qex(0),u.j41(1,"div",145),u.nrm(2,"ngx-charts-pie-chart",146),u.k0s(),u.bVm()),2&Ye){const ee=u.XpG(2);u.R7$(2),u.Y8G("scheme",ee.colorScheme)("results",ee.chart_data)}}function Mu(Ye,Jn){if(1&Ye&&(u.j41(0,"span"),u.EFF(1),u.nI1(2,"date"),u.k0s()),2&Ye){const ee=u.XpG().$implicit;u.R7$(),u.SpI(" ",u.i5U(2,1,ee.transaction_paid_on,"medium")," ")}}function cu(Ye,Jn){if(1&Ye&&(u.EFF(0),u.nI1(1,"date")),2&Ye){const ee=u.XpG().$implicit;u.SpI(" ",u.i5U(1,1,ee.created_at,"medium")," ")}}function af(Ye,Jn){if(1&Ye&&(u.j41(0,"span"),u.EFF(1),u.k0s()),2&Ye){const ee=u.XpG().$implicit;u.R7$(),u.SpI(" ",ee.onepay_transaction_id," ")}}function _d(Ye,Jn){1&Ye&&(u.j41(0,"span",47),u.EFF(1,"Not Available"),u.k0s())}function Gd(Ye,Jn){if(1&Ye&&(u.j41(0,"span"),u.EFF(1),u.nI1(2,"number"),u.k0s()),2&Ye){const ee=u.XpG().$implicit;u.R7$(),u.Lme(" ",ee.transaction_currency||"LKR"," ",u.i5U(2,2,ee.transaction_amount,"1.2-2")," ")}}function to(Ye,Jn){1&Ye&&(u.j41(0,"span",47),u.EFF(1,"-"),u.k0s())}function Vd(Ye,Jn){if(1&Ye&&(u.j41(0,"span",153),u.EFF(1),u.k0s()),2&Ye){const ee=u.XpG().$implicit;u.R7$(),u.SpI(" ",ee.transaction_status," ")}}function we(Ye,Jn){1&Ye&&(u.j41(0,"span",154),u.EFF(1," Failed "),u.k0s())}function jc(Ye,Jn){if(1&Ye&&(u.j41(0,"span",155),u.EFF(1),u.k0s()),2&Ye){const ee=u.XpG().$implicit;u.R7$(),u.SpI(" ",ee.transaction_status," ")}}function zs(Ye,Jn){1&Ye&&(u.j41(0,"span",47),u.EFF(1,"-"),u.k0s())}function Ss(Ye,Jn){if(1&Ye&&(u.j41(0,"small",47),u.EFF(1),u.k0s()),2&Ye){const ee=u.XpG().$implicit;u.R7$(),u.Lme(" LKR ",ee.package_price," / ",ee.package_billing_interval," month(s) ")}}function zd(Ye,Jn){if(1&Ye&&(u.j41(0,"tr")(1,"td"),u.DNE(2,Mu,3,4,"span",79)(3,cu,2,4,"ng-template",null,4,u.C5r),u.k0s(),u.j41(5,"td"),u.DNE(6,af,2,1,"span",79)(7,_d,2,0,"ng-template",null,5,u.C5r),u.k0s(),u.j41(9,"td"),u.DNE(10,Gd,3,5,"span",79)(11,to,2,0,"ng-template",null,6,u.C5r),u.k0s(),u.j41(13,"td"),u.DNE(14,Vd,2,1,"span",148)(15,we,2,0,"span",149)(16,jc,2,1,"span",150)(17,zs,2,0,"span",151),u.k0s(),u.j41(18,"td")(19,"div")(20,"strong"),u.EFF(21),u.k0s()(),u.DNE(22,Ss,2,2,"small",151),u.k0s(),u.j41(23,"td")(24,"span",152),u.EFF(25),u.k0s()()()),2&Ye){const ee=Jn.$implicit,bt=u.sdS(4),Be=u.sdS(8),J=u.sdS(12);u.R7$(2),u.Y8G("ngIf",ee.transaction_paid_on)("ngIfElse",bt),u.R7$(4),u.Y8G("ngIf",ee.onepay_transaction_id)("ngIfElse",Be),u.R7$(4),u.Y8G("ngIf",ee.transaction_amount)("ngIfElse",J),u.R7$(4),u.Y8G("ngIf","SUCCESS"===ee.transaction_status||"BANCSTAC SUCCESS"===ee.transaction_status),u.R7$(),u.Y8G("ngIf","FAILED"===ee.transaction_status),u.R7$(),u.Y8G("ngIf",ee.transaction_status&&"SUCCESS"!==ee.transaction_status&&"BANCSTAC SUCCESS"!==ee.transaction_status&&"FAILED"!==ee.transaction_status),u.R7$(),u.Y8G("ngIf",!ee.transaction_status),u.R7$(4),u.JRh(ee.package_name||"N/A"),u.R7$(),u.Y8G("ngIf",ee.package_price),u.R7$(2),u.Y8G("ngClass",u.ziG(14,Mn,"ACTIVE"===ee.subscription_status,"CANCELED"===ee.subscription_status,"PENDING"===ee.subscription_status,!ee.subscription_status)),u.R7$(),u.SpI(" ",ee.subscription_status||"N/A"," ")}}
1function Ou(Ye,Jn){if(1&Ye&&(u.j41(0,"div",147)(1,"table",136)(2,"thead")(3,"tr")(4,"th"),u.EFF(5,"DATE TIME"),u.k0s(),u.j41(6,"th"),u.EFF(7,"TRANSACTION ID"),u.k0s(),u.j41(8,"th"),u.EFF(9,"AMOUNT"),u.k0s(),u.j41(10,"th"),u.EFF(11,"STATUS"),u.k0s(),u.j41(12,"th"),u.EFF(13,"PACKAGE"),u.k0s(),u.j41(14,"th"),u.EFF(15,"SUBSCRIPTION STATUS"),u.k0s()()(),u.j41(16,"tbody"),u.DNE(17,zd,26,19,"tr",137),u.nI1(18,"paginate"),u.k0s()()()),2&Ye){const ee=u.XpG(2);u.R7$(17),u.Y8G("ngForOf",u.i5U(18,1,ee.get_subcription_history,u.sMw(4,ui,ee.page_size,ee.page,ee.subscription_history_count)))}}function Du(Ye,Jn){1&Ye&&(u.j41(0,"div",156)(1,"p",47),u.EFF(2,"No subscription history available"),u.k0s()())}function Ud(Ye,Jn){if(1&Ye){const ee=u.RV6();u.j41(0,"pagination-controls",157),u.bIt("pageChange",function(Be){u.eBV(ee);const J=u.XpG(2);return u.Njj(J.pageChanged(Be))})("pageBoundsCorrection",function(Be){u.eBV(ee);const J=u.XpG(2);return u.Njj(J.pageChanged(Be))}),u.k0s()}}function Es(Ye,Jn){if(1&Ye){const ee=u.RV6();u.j41(0,"div",62)(1,"div",16)(2,"div",63)(3,"div",64)(4,"h2",65),u.EFF(5,"Subscription Details"),u.k0s()()(),u.j41(6,"div",66)(7,"div",67)(8,"nb-card",68)(9,"nb-card-body")(10,"div",69)(11,"h4",70),u.EFF(12,"Quota Details"),u.k0s()(),u.DNE(13,Cs,46,15,"div",71)(14,yo,5,0,"ng-template",72)(15,kr,2,2,"div",73),u.k0s()()(),u.j41(16,"div",74)(17,"nb-card",68)(18,"nb-card-body")(19,"div",75),u.DNE(20,gl,5,2,"div",76),u.k0s(),u.j41(21,"div",77)(22,"div",78),u.DNE(23,ql,3,2,"ng-container",79),u.k0s(),u.j41(24,"div",80),u.nrm(25,"img",81),u.j41(26,"span",82),u.EFF(27,"Topup Your Monthly Quota"),u.k0s(),u.j41(28,"button",83),u.bIt("click",function(){u.eBV(ee);const Be=u.XpG(),J=u.sdS(8);return u.Njj(Be.topupHandler(J))}),u.nrm(29,"img",84),u.EFF(30," Topup "),u.k0s()()()()()()(),u.j41(31,"div",66)(32,"div",85)(33,"nb-card")(34,"nb-card-body")(35,"div",86)(36,"h4",70),u.EFF(37,"Transaction History"),u.k0s()(),u.j41(38,"div",66)(39,"div",87),u.DNE(40,Ou,19,8,"div",88)(41,Du,3,0,"ng-template",null,0,u.C5r)(43,Ud,1,0,"pagination-controls",89),u.k0s()()()()()()()()}if(2&Ye){const ee=u.sdS(42),bt=u.XpG();u.R7$(8),u.Y8G("nbSpinner",bt.is_loading),u.R7$(5),u.Y8G("ngIf",bt.package_details),u.R7$(),u.Y8G("ngIf",bt.hasNoPackage()),u.R7$(),u.Y8G("ngIf",!bt.is_qd_table_quota),u.R7$(2),u.Y8G("nbSpinner",bt.is_loading),u.R7$(3),u.Y8G("ngIf",bt.package_details),u.R7$(3),u.Y8G("ngIf",bt.chart_data.length>0)("ngIfElse",ee),u.R7$(17),u.Y8G("ngIf",bt.get_subcription_history&&(null==bt.get_subcription_history?null:bt.get_subcription_history.length)>0)("ngIfElse",ee),u.R7$(3),u.Y8G("ngIf",(null==bt.get_subcription_history?null:bt.get_subcription_history.length)>0)}}function Ol(Ye,Jn){1&Ye&&(u.j41(0,"div",158)(1,"h6"),u.EFF(2,"No data available!"),u.k0s()())}function du(Ye,Jn){1&Ye&&(u.qex(0),u.j41(1,"p",43),u.EFF(2,"Everything in Standard Plan"),u.k0s(),u.j41(3,"li"),u.EFF(4,"Accepts payment from Links, Plugins, API, SDK"),u.k0s(),u.j41(5,"li"),u.EFF(6,"General Support"),u.k0s(),u.j41(7,"li"),u.EFF(8,"Visa, Master, Amex and QR payments"),u.k0s(),u.j41(9,"li"),u.EFF(10,"Daily Payouts 2 days after payment"),u.k0s(),u.j41(11,"li"),u.EFF(12,"Monthly Payment Limit LKR 100,000"),u.k0s(),u.bVm())}function Yd(Ye,Jn){1&Ye&&(u.qex(0),u.j41(1,"p",43),u.EFF(2,"Everything in Essential Plan"),u.k0s(),u.j41(3,"li"),u.EFF(4,"USD acceptance and payouts"),u.k0s(),u.j41(5,"li"),u.EFF(6,"Accepts payment from Links, Plugins, API, SDK"),u.k0s(),u.j41(7,"li"),u.EFF(8,"General Support"),u.k0s(),u.j41(9,"li"),u.EFF(10,"Visa, Master, Amex and QR payments"),u.k0s(),u.j41(11,"li"),u.EFF(12,"Daily Payouts 2 days after payment"),u.k0s(),u.j41(13,"li"),u.EFF(14,"Subscription waived-off limit LKR 500,000"),u.k0s(),u.j41(15,"li"),u.EFF(16,"Monthly Payment Limit LKR 600,000"),u.k0s(),u.bVm())}function bc(Ye,Jn){1&Ye&&(u.qex(0),u.j41(1,"p",43),u.EFF(2,"Everything in Elevate Plan"),u.k0s(),u.j41(3,"li"),u.EFF(4,"USD acceptance and payouts"),u.k0s(),u.j41(5,"li"),u.EFF(6,"Accepts payment from Links, Plugins, API, SDK"),u.k0s(),u.j41(7,"li"),u.EFF(8,"General Support"),u.k0s(),u.j41(9,"li"),u.EFF(10,"Visa, Master, Amex and QR payments"),u.k0s(),u.j41(11,"li"),u.EFF(12,"Daily Payouts 2 days after payment"),u.k0s(),u.j41(13,"li"),u.EFF(14,"Subscription waived-off limit LKR 2,000,000"),u.k0s(),u.j41(15,"li"),u.EFF(16,"Monthly Payment Limit LKR 2,250,000"),u.k0s(),u.bVm())}
1function Jc(Ye,Jn){1&Ye&&(u.qex(0),u.j41(1,"p",43),u.EFF(2,"Everything in Premier Plan"),u.k0s(),u.j41(3,"li"),u.EFF(4,"USD acceptance and payouts"),u.k0s(),u.j41(5,"li"),u.EFF(6,"Accepts payment from Links, Plugins, API, SDK"),u.k0s(),u.j41(7,"li"),u.EFF(8,"General Support"),u.k0s(),u.j41(9,"li"),u.EFF(10,"Visa, Master, Amex and QR payments"),u.k0s(),u.j41(11,"li"),u.EFF(12,"Daily Payouts 2 days after payment"),u.k0s(),u.j41(13,"li"),u.EFF(14,"Subscription waived-off limit LKR 3,000,000"),u.k0s(),u.j41(15,"li"),u.EFF(16,"Unlimited Monthly Payment Limit"),u.k0s(),u.bVm())}function Ef(Ye,Jn){if(1&Ye&&(u.j41(0,"div",172),u.nrm(1,"input",173),u.j41(2,"label",174)(3,"div",28)(4,"h5",29),u.EFF(5),u.k0s(),u.j41(6,"div",30)(7,"span",31),u.EFF(8,"LKR"),u.k0s(),u.j41(9,"span",32),u.EFF(10),u.k0s(),u.j41(11,"span",33),u.EFF(12,"monthly"),u.k0s()(),u.j41(13,"p",175),u.EFF(14," Payment processing fee is "),u.j41(15,"strong"),u.EFF(16),u.k0s()(),u.j41(17,"button",176),u.EFF(18," Get started "),u.k0s()(),u.nrm(19,"div",37),u.j41(20,"div",38)(21,"h6",39),u.EFF(22,"Features:"),u.k0s(),u.j41(23,"ul",40),u.DNE(24,du,13,0,"ng-container",36)(25,Yd,17,0,"ng-container",36)(26,bc,17,0,"ng-container",36)(27,Jc,17,0,"ng-container",36),u.k0s(),u.j41(28,"p",177),u.EFF(29),u.k0s()()()()),2&Ye){const ee=Jn.$implicit,bt=u.XpG(2);u.R7$(),u.Y8G("id","pkg_"+ee.id)("value",ee.id),u.R7$(),u.AVh("active",bt.packageInformationForm.get("package_id").value===ee.id),u.Y8G("for","pkg_"+ee.id),u.R7$(3),u.JRh(ee.name),u.R7$(5),u.JRh(ee.price),u.R7$(6),u.SpI(" ","Standard"===ee.name?"3.50":"Essential"===ee.
1name?"3.25":"Elevate"===ee.name?"2.75":"2.50","% "),u.R7$(),u.AVh("active-btn",bt.packageInformationForm.get("package_id").value===ee.id),u.R7$(7),u.Y8G("ngIf","Standard"===ee.name),u.R7$(),u.Y8G("ngIf","Essential"===ee.name),u.R7$(),u.Y8G("ngIf","Elevate"===ee.name),u.R7$(),u.Y8G("ngIf","Premier"===ee.name),u.R7$(2),u.SpI(" Monthly Quota: LKR ",ee.base_limit_display," ")}}function uu(Ye,Jn){1&Ye&&(u.j41(0,"div",178),u.nrm(1,"i",179),u.EFF(2," Please select a package to continue. "),u.k0s())}function fu(Ye,Jn){1&Ye&&(u.j41(0,"div",180),u.nrm(1,"i",181),u.EFF(2," No packages available for selection. "),u.k0s())}function Qo(Ye,Jn){1&Ye&&(u.j41(0,"small",182),u.nrm(1,"i",183),u.EFF(2,"Package selected "),u.k0s())}function sl(Ye,Jn){1&Ye&&(u.j41(0,"small",47),u.nrm(1,"i",184),u.EFF(2,"No package selected "),u.k0s())}function Pf(Ye,Jn){1&Ye&&u.nrm(0,"span",61)}function Wd(Ye,Jn){if(1&Ye){const ee=u.RV6();u.j41(0,"form",159),u.bIt("ngSubmit",function(){u.eBV(ee);const Be=u.XpG();return u.Njj(Be.onFormSubmit())}),u.j41(1,"nb-card",160)(2,"nb-card-header")(3,"div",161)(4,"h4",70),u.EFF(5,"Change Package"),u.k0s(),u.j41(6,"button",162),u.bIt("click",function(){u.eBV(ee);const Be=u.XpG();return u.Njj(Be.closeUpdatePackageModal())}),u.j41(7,"a"),u.nrm(8,"i",163),u.k0s()()()(),u.j41(9,"nb-card-body")(10,"div",164),u.DNE(11,Ef,30,15,"div",165),u.k0s(),u.DNE(12,uu,3,0,"div",166)(13,fu,3,0,"div",167),u.k0s(),u.j41(14,"nb-card-footer")(15,"div",18)(16,"div",168),u.DNE(17,Qo,3,0,"small",169)(18,sl,3,0,"small",151),u.k0s(),u.j41(19,"div")(20,"button",170),u.bIt("click",function(){u.eBV(ee);const Be=u.XpG();return u.Njj(Be.closeUpdatePackageModal())}
1),u.EFF(21," Cancel "),u.k0s(),u.j41(22,"button",171),u.DNE(23,Pf,1,0,"span",58),u.EFF(24),u.k0s()()()()()()}if(2&Ye){const ee=u.XpG();u.Y8G("formGroup",ee.packageInformationForm),u.R7$(11),u.Y8G("ngForOf",ee.get_packages),u.R7$(),u.Y8G("ngIf",ee.packageInformationForm.get("package_id").invalid&&ee.packageInformationForm.get("package_id").touched),u.R7$(),u.Y8G("ngIf",!ee.get_packages||0===ee.get_packages.length),u.R7$(4),u.Y8G("ngIf",ee.packageInformationForm.get("package_id").value),u.R7$(),u.Y8G("ngIf",!ee.packageInformationForm.get("package_id").value),u.R7$(4),u.Y8G("disabled",ee.is_requesting||!ee.packageInformationForm.valid||!ee.packageInformationForm.get("package_id").value),u.R7$(),u.Y8G("ngIf",ee.is_requesting),u.R7$(),u.SpI(" ",ee.is_requesting?"Processing...":"Change Package"," ")}}function of(Ye,Jn){if(1&Ye){const ee=u.RV6();u.j41(0,"div",189)(1,"input",190),u.bIt("change",function(){u.eBV(ee);const Be=u.XpG(2);return u.Njj(Be.onTopupSelectionChange())}),u.k0s(),u.j41(2,"label",191)(3,"p")(4,"strong"),u.EFF(5,"Limit:"),u.k0s(),u.EFF(6),u.k0s(),u.j41(7,"p")(8,"strong"),u.EFF(9,"Price:"),u.k0s(),u.EFF(10),u.k0s(),u.j41(11,"p")(12,"strong"),u.EFF(13,"Scope:"),u.k0s(),u.EFF(14),u.k0s()()()}if(2&Ye){const ee=Jn.$implicit;u.R7$(),u.Mz_("id","topup_",ee.id,""),u.Y8G("value",ee.id),u.R7$(),u.Mz_("for","topup_",ee.id,""),u.R7$(4),u.SpI(" LKR ",ee.limit,""),u.R7$(4),u.SpI(" LKR ",ee.price,""),u.R7$(4),u.SpI(" ",ee.scope_display,"")}}function vd(Ye,Jn){1&Ye&&(u.j41(0,"div",192)(1,"p"),u.EFF(2,"No top-up packages available at the moment."),u.k0s()())}function Zc(Ye,Jn){1&Ye&&(u.j41(0,"div",178),u.EFF(1," Please select a top-up package to continue. "),u.k0s())}function xd(Ye,Jn){1&Ye&&u.nrm(0,"span",61)}function Qc(Ye,Jn){if(1&Ye){const ee=u.RV6();u.j41(0,"form",159),u.bIt("ngSubmit",function(){u.eBV(ee);const Be=u.XpG();return u.Njj(Be.updateTopUp())}),u.j41(1,"nb-card",185)(2,"nb-card-header")(3,"div",161)(4,"h4",70),u.EFF(5,"Topup"),u.k0s(),u.j41(6,"button",162),u.bIt("click",function(){u.eBV(ee);const Be=u.XpG();return u.Njj(Be.closeTopupModal())}),u.j41(7,"a"),u.nrm(8,"i",163),u.k0s()()()(),u.j41(9,"nb-card-body"),u.DNE(10,of,15,8,"div",186)(11,vd,3,0,"div",187)(12,Zc,2,0,"div",166),u.k0s(),u.j41(13,"nb-card-footer")(14,"div",188)(15,"button",171),u.DNE(16,xd,1,0,"span",58),u.EFF(17),u.k0s()()()()()}if(2&Ye){const ee=u.XpG();u.Y8G("formGroup",ee.topupInformationForm),u.R7$(10),u.Y8G("ngForOf",ee.get_topup),u.R7$(),u.Y8G("ngIf",!ee.get_topup||0===ee.get_topup.length),u.R7$(),u.Y8G("ngIf",ee.topupInformationForm.get("topup_amount").invalid&&ee.topupInformationForm.get("topup_amount").touched),u.R7$(3),u.Y8G("disabled",ee.is_requesting||!ee.topupInformationForm.valid||!ee.get_topup||0===ee.get_topup.length),u.R7$(),u.Y8G("ngIf",ee.is_requesting),u.R7$(),u.SpI(" ",ee.is_requesting?"Processing...":"Submit"," ")}}function Iu(Ye,Jn){1&Ye&&u.nrm(0,"span",61)}function yc(Ye,Jn){if(1&Ye){const ee=u.RV6();u.j41(0,"nb-card",193)(1,"nb-card-header")(2,"div",161)(3,"h4",70),u.EFF(4,"Confirm Cancellation"),u.k0s(),u.j41(5,"button",194),u.bIt("click",function(){u.eBV(ee);const Be=u.XpG();return u.Njj(Be.closeCancelConfirmModal())}),u.j41(6,"a"),u.nrm(7,"i",163),u.k0s()()()(),u.j41(8,"nb-card-body")(9,"div",192)(10,"div",195),u.nrm(11,"i",196),u.k0s(),u.j41(12,"h5",82),u.EFF(13,"Are you sure you want to cancel your subscription?"),u.k0s(),u.j41(14,"div",197),u.nrm(15,"i",181),u.j41(16,"strong"),u.EFF(17,"Important:"),u.k0s(),u.EFF(18," Once cancelled, you will lose access to: "),u.j41(19,"label",198),u.EFF(20," I understand that my subscription will be cancelled and I'll need to select a new package to continue using premium features. "),u.k0s()(),u.j41(21,"div",199)(22,"div",200)(23,"input",201),u.mxI("ngModelChange",function(Be){u.eBV(ee);const J=u.XpG();return u.DH7(J.confirmCancelChecked,Be)||(J.confirmCancelChecked=Be),u.Njj(Be)}),u.k0s(),u.j41(24,"label",202),u.EFF(25," I understand that my subscription will be cancelled and I'll need to select a new package to continue using premium features. "),u.k0s()()()()(),u.j41(26,"nb-card-footer")(27,"div",203)(28,"button",204),u.bIt("click",function(){u.eBV(ee);const Be=u.XpG();return u.Njj(Be.closeCancelConfirmModal())}
1),u.EFF(29," Keep Subscription "),u.k0s(),u.j41(30,"button",205),u.bIt("click",function(){u.eBV(ee);const Be=u.XpG();return u.Njj(Be.proceedWithCancellation())}),u.DNE(31,Iu,1,0,"span",58),u.EFF(32),u.k0s()()()()}if(2&Ye){const ee=u.XpG();u.R7$(5),u.Y8G("disabled",ee.is_requesting),u.R7$(18),u.R50("ngModel",ee.confirmCancelChecked),u.R7$(5),u.Y8G("disabled",ee.is_requesting),u.R7$(2),u.Y8G("disabled",ee.is_requesting||!ee.confirmCancelChecked),u.R7$(),u.Y8G("ngIf",ee.is_requesting),u.R7$(),u.SpI(" ",ee.is_requesting?"Cancelling...":"Yes, Cancel Subscription"," ")}}function sc(Ye,Jn){if(1&Ye&&(u.j41(0,"div",219)(1,"span",220),u.EFF(2),u.k0s()()),2&Ye){const ee=u.XpG(2);u.R7$(2),u.JRh(ee.subscription_card_info.scheme)}}function ed(Ye,Jn){if(1&Ye&&(u.j41(0,"div",221)(1,"span",222),u.EFF(2,"Card Scheme:"),u.k0s(),u.j41(3,"span",223),u.EFF(4),u.k0s()()),2&Ye){const ee=u.XpG(2);u.R7$(4),u.JRh(ee.subscription_card_info.scheme)}}function ju(Ye,Jn){if(1&Ye&&(u.j41(0,"div",221)(1,"span",222),u.EFF(2,"Card Type:"),u.k0s(),u.j41(3,"span",223),u.EFF(4),u.k0s()()),2&Ye){const ee=u.XpG(2);u.R7$(4),u.JRh(ee.subscription_card_info.funding_method)}}function ll(Ye,Jn){1&Ye&&(u.j41(0,"div",224)(1,"div",225),u.nrm(2,"i",22),u.k0s(),u.j41(3,"p",226),u.EFF(4,"No payment method added yet"),u.k0s(),u.j41(5,"p",227),u.EFF(6,"Add a card to start using our services"),u.k0s()())}function Ru(Ye,Jn){1&Ye&&u.nrm(0,"span",61)}function Rc(Ye,Jn){if(1&Ye){const ee=u.RV6();u.j41(0,"div",48)(1,"div",206)(2,"h2",50),u.EFF(3,"Payment Method"),u.k0s(),u.j41(4,"div",207)(5,"div",208)(6,"div",209),u.nrm(7,"i",22),u.k0s(),u.j41(8,"div",210),u.EFF(9),u.k0s(),u.j41(10,"div",211),u.EFF(11),u.k0s(),u.DNE(12,sc,3,1,"div",212),u.k0s(),u.j41(13,"div",213),u.DNE(14,ed,5,1,"div",214)(15,ju,5,1,"div",214),u.k0s()(),u.DNE(16,ll,7,0,"div",215),u.j41(17,"button",216),u.bIt("click",function(){u.eBV(ee);const Be=u.XpG();return u.Njj(Be.requestUpdate())}),u.DNE(18,Ru,1,0,"span",58),u.nrm(19,"i",217),u.EFF(20),u.k0s(),u.j41(21,"button",218),u.bIt("click",function(){u.eBV(ee);const Be=u.XpG();return u.Njj(Be.closeViewCardModal())}
1),u.EFF(22," Close "),u.k0s()()()}if(2&Ye){const ee=u.XpG();u.R7$(9),u.SpI(" ",ee.subscription_card_info.card_no||"XXXX XXXX XXXX XXXX"," "),u.R7$(2),u.Lme(" Expires: ",ee.subscription_card_info.expire_month||"XX","/",ee.subscription_card_info.expire_year||"XX"," "),u.R7$(),u.Y8G("ngIf",ee.subscription_card_info.scheme),u.R7$(2),u.Y8G("ngIf",ee.subscription_card_info.scheme),u.R7$(),u.Y8G("ngIf",ee.subscription_card_info.funding_method),u.R7$(),u.Y8G("ngIf",!ee.subscription_card_info.card_no),u.R7$(),u.Y8G("disabled",ee.is_requesting),u.R7$(),u.Y8G("ngIf",ee.is_requesting),u.R7$(),u.AVh("fa-plus",!ee.subscription_card_info.card_no)("fa-sync-alt",ee.subscription_card_info.card_no),u.R7$(),u.SpI(" ",ee.subscription_card_info.card_no?ee.is_requesting?"Processing...":"Update Card":ee.is_requesting?"Processing...":"Add Card"," "),u.R7$(),u.Y8G("disabled",ee.is_requesting)}}let Vr=(()=>{class Ye{constructor(ee,bt,Be,J,me,se,Ue){this.theme=ee,this.dialogService=bt,this.packageService=Be,this.toastr=J,this.encriptionService=me,this.fb=se,this.router=Ue,this.is_loading=!1,this.is_requesting=!1,this.package_details=null,this.modal_ref=null,this.showSubscriptionRoot=!1,this.showPackageSelection=!1,this.showCardAddModal=!1,this.availablePackages=[],this.selectedPackageId=null,this.selectedPackageName="",this.selectedPackagePrice="",this.selectedPackageData=null,this.hasCardData=!1,this.subscription_card_info={card_no:"",expire_year:"",expire_month:"",funding_method:"",scheme:""},this.chart_data=[],this.qd_table_data_package=[],this.qd_table_data_subscription=[],this.is_qd_table_quota=!0,this.get_packages=[],this.get_topup=[],this.get_subcription_history=[],this.page=1,this.page_size=10,this.subscription_history_count=0,this.expandedSections={usage:!0,billing:!1,payment:!1,details:!1},this.confirmCancelChecked=!1,this.cancelConfirmModalRef=null,this.isCancelling=!1,this.showViewCardModal=!1,this.loadingPackages={},this.themeSubscription=this.theme.getJsTheme().subscribe(nn=>{this.colorScheme={domain:["#8423FF","#FFA05B"]}}),this.packageInformationForm=this.fb.group({package_id:["",[xi.k0.required]]}),this.topupInformationForm=this.fb.group({topup_amount:["",[xi.k0.required]]})}ngOnInit(){this.initializeSubscriptionFlow()}redirectToPricing(){window.open("https://www.onepay.lk/pricing","_blank")}ngOnDestroy(){this.themeSubscription.unsubscribe()}initializeSubscriptionFlow(){var ee=this;return(0,ji.A)(function*(){ee.is_loading=!0;try{yield ee.getUserPackages(),(yield ee.checkCurrentSubscription())?yield ee.handleExistingUser():yield ee.handleFreshUser()}catch(bt){console.error("Initialization error:",bt),ee.toastr.showToast("danger","Error!","Failed to initialize subscription.")}finally{ee.is_loading=!1}})()}getUserPackages(){var ee=this;return(0,ji.A)(function*(){return new Promise((bt,Be)=>{ee.packageService.getUserPackagesNew().then(J=>{console.log("getUserPackages response:",J),ee.get_packages=(J?.data||[]).reverse(),ee.availablePackages=ee.get_packages.filter(me=>!0===me.is_active),console.log("Available packages:",ee.availablePackages),bt()},J=>{console.log("Error getting packages:",J),ee.get_packages=[],ee.availablePackages=[],Be(J)})})})()}checkCurrentSubscription(){var ee=this;return(0,ji.A)(function*(){return new Promise(bt=>{ee.packageService.getCurentPackageDetailsNew().then(Be=>{console.log("Subscription check response:",Be),200===Be?.status&&Be?.data?(ee.package_details=Be.data,bt(!0)):(ee.package_details=null,bt(!1))},Be=>{console.error("Error checking subscription:",Be),ee.package_details=null,bt(!1)})})})()}handleExistingUser(){var ee=this;return(0,ji.A)(function*(){console.log("Existing user flow started"),"AUTO_MERCHANT"===ee.package_details?.payment_mode?(yield ee.getSubscriptionCardData(),ee.hasCardData?ee.showSubscriptionDetails():(ee.showPackageSelectionUI(),setTimeout(()=>{ee.showCardAddModal=!0},300))):ee.showSubscriptionDetails()})()}handleFreshUser(){var ee=this;return(0,ji.A)(function*(){console.log("Fresh user flow started"),yield ee.getSubscriptionCardData(),0!==ee.availablePackages.length?(ee.showPackageSelectionUI(),ee.hasCardData||(console.log("Fresh user with no card - showing package selection with card add modal"),setTimeout(()=>
1{ee.showCardAddModal=!0},300))):ee.toastr.showToast("warning","No Packages","There are no subscription packages available at the moment.")})()}getSubscriptionCardData(){var ee=this;return(0,ji.A)(function*(){return new Promise(bt=>{ee.packageService.getSubscriptionCardData().then(Be=>{if(console.log("Card data response:",Be),Be&&200===Be.status&&Be.data&&Be.data.length>0){ee.hasCardData=!0;const J=Be.data[0];ee.subscription_card_info={card_no:J.card_mask||J.card_no||"",expire_year:J.card_expire?J.card_expire.substring(2):"",expire_month:J.card_expire?J.card_expire.substring(0,2):"",funding_method:J.card_type||J.funding_method||"",scheme:J.card_type||J.scheme||""},console.log("User has card data")}else ee.hasCardData=!1,ee.setDefaultCardInfo(),console.log("User has no card data");bt()},Be=>{console.log("Error getting card data:",Be),ee.hasCardData=!1,ee.setDefaultCardInfo(),bt()})})})()}showCardAddModalUI(){this.showCardAddModal=!0}hideCardAddModal(){this.showCardAddModal=!1}showPackageSelectionUI(){this.showSubscriptionRoot=!1,this.showPackageSelection=!0,this.showCardAddModal=!1}showSubscriptionDetails(){this.showSubscriptionRoot=!0,this.showPackageSelection=!1,this.showCardAddModal=!1,this.getTopUpDetails(),this.getSubscriptionHistory(),this.createChart(),this.transformQuotaData()}saveCard(){this.is_requesting=!0,this.packageService.requestToChangeCardNew("").then(ee=>{this.is_requesting=!1,200==ee.status?window.location.href=ee.data.tokenized_url:this.toastr.showToast("danger","Error!",ee.message||"Failed to initialize card addition.")},ee=>{this.is_requesting=!1,console.log("Card add error:",ee),this.toastr.showToast("danger","Error!","Internal Server Error.")})}skipCardAdd(){this.hideCardAddModal(),this.toastr.showToast("info","Note","You can view packages, but need to add a card to subscribe.")}selectPackage(ee){this.selectedPackageId=ee.id,this.selectedPackageName=ee.name,this.selectedPackagePrice=ee.price,this.selectedPackageData=ee}confirmPackageSelection(ee){var bt=this;return(0,ji.A)(function*(){if(ee&&ee.id){bt.selectPackage(ee),bt.loadingPackages[ee.id]=!0;try{bt.hasCardData?yield bt.subscribeToPackage(ee.id):(bt.showCardAddModalUI(),bt.toastr.showToast("warning","Card Required","Please add a payment card to subscribe."))}catch(Be){console.error("Package selection error:",Be),bt.toastr.showToast("danger","Error!","Failed to process package selection.")}finally{bt.loadingPackages[ee.id]=!1}}else bt.toastr.showToast("warning","Selection Required","Please select a package.")})()}isPackageLoading(ee){return!0===this.loadingPackages[ee]}subscribeToPackage(ee){var bt=this;return(0,ji.A)(function*(){bt.is_requesting=!0;try{const Be={package_id:ee},J=yield bt.packageService.updatePackageNew(Be);if(201===J.status)bt.toastr.showToast("success","Success!","Subscription activated successfully."),yield bt.initializeSubscriptionFlow();else if(402===J.status){const me=J.error||J.message||"Payment processing failed";me.toLowerCase().includes("not sufficient funds")||me.toLowerCase().includes("insufficient funds")?bt.toastr.showToast("warning","Insufficient Funds","You don't have sufficient funds. Please add funds to proceed."):bt.toastr.showToast("warning","Payment Failed",me)}else bt.toastr.showToast("warning","Notice",J.message||"Subscription failed.")}catch(Be){console.error("Subscription error:",Be);let J="Internal Server Error.";Be?.error?.error?J=Be.error.error:Be?.error?.message&&(J=Be.error.message),bt.toastr.showToast("danger","Error!",J)}finally{bt.is_requesting=!1}})()}setDefaultCardInfo(){this.subscription_card_info={card_no:"",expire_year:"",expire_month:"",funding_method:"",scheme:""}}getCurrentPackageDetails(){this.packageService.getCurentPackageDetailsNew().then(ee=>{200===ee?.status&&(this.package_details=ee?.data,this.createChart(),this.transformQuotaData())},ee=>{console.log("Error getting package details:",ee)})}formatCurrencyReal(ee){if(null==ee)return"LKR 0.00";const bt=parseFloat(ee);return isNaN(bt)?"LKR 0.00":"LKR "+bt.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")}formatCurrency(ee){return ee?"LKR "+(ee/1e3).toFixed(0)+"K":"LKR 0"}getUsagePercentage(){return this.package_details&&this.package_details.period_limit&&0!==this.package_details.period_limit?this.package_details.used/this.package_details.period_limit*100:0}getRemainingBalance(){return this.package_details?this.package_details.base_limit-this.package_details.used:0}getTopipValue(){return this.package_details?this.package_details.period_limit-this.package_details.base_limit:0}createChart(){if(!this.package_details)return;const ee=parseFloat(this.package_details?.period_limit)||0,bt=parseFloat(this.package_details?.used)||0,Be=ee>0?parseFloat((bt/ee*100).toFixed(2)):0,J=parseFloat((100-Be).toFixed(2));!isNaN(Be)&&!isNaN(J)&&(this.chart_data=[{name:`Used - ${Be}%`,value:Be},{name:`Free - ${J}%`,value:J}])}transformQuotaData(){this.package_details&&!this.package_details.quota_details&&(this.package_details.quota_details=[{item_name:this.package_details.package_name||"Base Quota",current_limit:this.package_details.used,max_limit:this.package_details.base_limit,is_active:"ACTIVE"===this.package_details.status?1:0,expired_on:this.package_details.current_period_end,is_top_up:!1,status:this.package_details.status,status_display:this.package_details.status_display}])}onPackageSelectionChange(){this.packageInformationForm.get("package_id").markAsTouched(),this.packageInformationForm.get("package_id").updateV
1alueAndValidity()}onTopupSelectionChange(){this.topupInformationForm.get("topup_amount").markAsTouched(),this.topupInformationForm.get("topup_amount").updateValueAndValidity()}toggleSection(ee){this.expandedSections[ee]=!this.expandedSections[ee]}formatDate(ee){return ee?new Date(ee).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):"Not set"}formatPackageName(ee){return ee?ee.split(" ")[0]:"Not Available"}formatLimit(ee){return ee&&ee.trim().length>0?ee:"Not Available"}changePackageHandler(ee){this.packageInformationForm.reset(),this.packageInformationForm.markAsPristine(),this.packageInformationForm.markAsUntouched(),this.modal_ref=this.dialogService.open(ee,{closeOnBackdropClick:!1})}closeUpdatePackageModal(){this.modal_ref.close(),this.packageInformationForm.reset(),this.packageInformationForm.markAsPristine(),this.packageInformationForm.markAsUntouched()}topupHandler(ee){this.topupInformationForm.reset(),this.topupInformationForm.markAsPristine(),this.topupInformationForm.markAsUntouched(),this.modal_ref=this.dialogService.open(ee,{closeOnBackdropClick:!1})}closeTopupModal(){this.modal_ref.close(),this.topupInformationForm.reset(),this.topupInformationForm.markAsPristine(),this.topupInformationForm.markAsUntouched()}requestUpdate(){this.is_requesting=!0,this.packageService.requestToChangeCardNew("").then(ee=>{this.is_requesting=!1,200==ee.status?window.location.href=ee.data.tokenized_url:this.toastr.showToast("danger","Error!",ee.message||"Request to change card failed.")},ee=>{this.is_requesting=!1,console.log("Internal Server Error",ee),this.toastr.showToast("danger","Error!","Internal Server Error.")})}onFormSubmit(){var ee=this;return(0,ji.A)(function*(){if(ee.packageInformationForm.markAllAsTouched(),ee.packageInformationForm.invalid)ee.toastr.showToast("warning","Validation Error","Please select a package to continue.");else{ee.is_requesting=!0;try{const bt={package_id:ee.packageInformationForm.get("package_id").value},Be=yield ee.packageService.updatePackageNew(bt);if(ee.is_requesting=!1,201===Be.status)ee.toastr.showToast("success","Success!","Package changed successfully."),ee.getSubscriptionHistory(),ee.getCurrentPackageDetails(),ee.modal_ref.close();else if(402===Be.status){const J=Be.error||Be.message||"Payment processing failed";J.toLowerCase().includes("not sufficient funds")||J.toLowerCase().includes("insufficient funds")?ee.toastr.showToast("warning","Insufficient Funds","You don't have sufficient funds in your account. Please add funds to proceed with this package change."):ee.toastr.showToast("warning","Payment Failed",J)}else ee.toastr.showToast("warning","Notice",Be.message||"Request completed with warnings.")}catch(bt){ee.is_requesting=!1,console.log("API Error caught:",bt);let Be="Internal Server Error.";bt?.error?.error?Be=bt.error.error:bt?.error?.message?Be=bt.error.message:bt?.message?Be=bt.message:bt?.error&&(Be=bt.error),Be.toLowerCase().includes("not sufficient funds")||Be.toLowerCase().includes("insufficient funds")?ee.toastr.showToast("warning","Insufficient Funds","You don't have sufficient funds in your account. Please add funds to proceed with this package change."):ee.toastr.showToast("warning","Subscription Issue",Be)}}})()}getTopUpDetails(){this.packageService.getTopUpdetails().then(ee=>{ee&&200===ee.status?this.get_topup=ee.data?.packages||[]:ee&&404===ee.status?(this.get_topup=[],console.log("No active subscription for top-ups:",ee.message),this.toastr.showToast("info","Information","No active subscription available for top-ups.")):(this.get_topup=[],console.log("Unexpected response:",ee))},ee=>{this.is_loading=!1,404===ee?.status?(this.get_topup=[],console.log("No active subscription for top-ups:",ee.message),this.toastr.showToast("info","Information","No active subscription available for top-ups.")):(console.log("Internal Server Error",ee),this.toastr.showToast("danger","Error!","Internal Server Error."),this.get_topup=[])})}updateTopUp(){if(this.topupInformationForm.markAllAsTouched(),this.topupInformationForm.invalid)return void this.toastr.showToast("warning","Validation Error","Please select a top-up package to continue.");this.is_requesting=!0;let ee={package_id:this.topupInformationForm.get("topup_amount").value};this.packageService.addTopUpNew(ee).then(bt=>
1{if(this.is_requesting=!1,this.getSubscriptionHistory(),console.log("Topup response:",bt),201===bt?.status)this.toastr.showToast("success","Success!",bt?.message||"Topped up successfully."),this.modal_ref.close(),this.getCurrentPackageDetails();else if(402===bt?.status){const J=bt.data?.payment?.response_text||bt.data?.payment?.error;let me="Payment failed. ";J?J.includes("Not sufficient funds")?me+="Insufficient funds in your account.":J.includes("declined")||"51"===bt.data?.payment?.response_code?me+="Your card was declined. Please check your card details or use a different payment method.":J.includes("expired")?me+="Your card has expired. Please update your card details.":me+=J:me+="Please check your payment details and try again.",this.toastr.showToast("danger","Payment Failed",me)}else 100===bt?.status?(this.toastr.showToast("success","Success!",bt?.message||"Topped up successfully."),this.modal_ref.close(),this.getCurrentPackageDetails()):this.toastr.showToast("danger","Error!",bt?.message||"Failed to process top-up. Please try again.")},bt=>{this.is_requesting=!1,console.log("Internal Server Error",bt);let Be="Internal Server Error.";400===bt.status?Be="Bad request. Please check your input and try again.":401===bt.status?Be="Authentication failed. Please log in again.":403===bt.status?Be="You don't have permission to perform this action.":404===bt.status?Be="Service not available. Please try again later.":500===bt.status?Be="Server error. Please try again later.":bt.error?.message&&(Be=bt.error.message),this.toastr.showToast("danger","Error!",Be)})}pageChanged(ee){this.page=ee,this.getSubscriptionHistory()}getSubscriptionHistory(){this.packageService.getPackageSubscriptionHistory(this.page,this.page_size).then(ee=>{ee&&200===ee.status?(this.get_subcription_history=ee?.data||[],ee.data&&"object"==typeof ee.data&&void 0!==ee.data.count?(this.subscription_history_count=ee.data.count,this.get_subcription_history=ee.data.results||ee.data.data||[]):this.subscription_history_count=this.get_subcription_history.length):(this.get_subcription_history=[],this.subscription_history_count=0)},ee=>{console.log("Internal Server Error",ee),this.toastr.showToast("danger","Error!","Internal Server Error."),this.get_subcription_history=[],this.subscription_history_count=0})}activePackage(){const ee=this.encriptionService.response_decript(localStorage.getItem("xu"))?.user_id;this.is_requesting=!0,this.packageService.activePackage(ee,{required_payment:1}).then(Be=>{this.is_requesting=!1,this.getSubscriptionHistory(),Be&&100===Be?.status?(this.getCurrentPackageDetails(),console.log("activePackage",Be),this.toastr.showToast("success","Cheers!","Package activated successfully.")):this.toastr.showToast("danger","Error!",Be?.message||"Activating package failed.")},Be=>{this.is_requesting=!1,this.toastr.showToast("danger","Error!","Internal Server Error.")})}cancelPackage(){this.is_requesting=!0,this.packageService.cancelPackage().then(ee=>{this.is_requesting=!1,ee&&200===ee?.status?(this.closeCancelConfirmModal(),this.package_details=null,this.showPackageSelection=!0,this.showSubscriptionRoot=!1,this.showCardAddModal=!1,this.selectedPackageId=null,this.selectedPackageName="",this.selectedPackagePrice="",this.selectedPackageData=null,this.getUserPackages(),this.get_subcription_history=[],this.chart_data=[],console.log("cancelPackage",ee),this.toastr.showToast("success","Success!","Package cancelled successfully.")):this.toastr.showToast("danger","Error!",ee?.message||"Cancelling package failed.")},ee=>{this.is_requesting=!1,this.toastr.showToast("danger","Error!","Internal Server Error.")})}confirmCancelPackage(){confirm("Are you sure you want to cancel your subscription?")&&this.cancelPackage()}openCancelConfirmation(ee){this.confirmCancelChecked=!1,this.isCancelling=!1,this.cancelConfirmModalRef=this.dialogService.open(ee,{closeOnBackdropClick:!1,hasBackdrop:!0,autoFocus:!0})}closeCancelConfirmModal(){this.cancelConfirmModalRef&&(this.cancelConfirmModalRef.close(),this.cancelConfirmModalRef=null),this.confirmCancelChecked=!1,this.isCancelling=!1}proceedWithCancellation(){this.confirmCancelChecked?(this.isCancelling=!0,this.cancelPackage()):this.toastr.showToast("warning","Confirmation Required","Please confirm that you understand the cancellation terms.")}resetToPackageSelection(){this.showSubscriptionRoot=!1,this.showPackageSelection=!0,this.showCardAddMo
1dal=!1,this.selectedPackageId=null,this.selectedPackageName="",this.selectedPackagePrice="",this.selectedPackageData=null,this.package_details=null,this.chart_data=[],this.get_subcription_history=[],this.confirmCancelChecked=!1,this.getUserPackages(),this.getSubscriptionCardData()}changeQuotaDetailsTable(){this.is_qd_table_quota=!this.is_qd_table_quota}isPackageSelected(){return!!this.packageInformationForm.get("package_id").value}isTopupSelected(){return!!this.topupInformationForm.get("topup_amount").value}getLastPaymentDate(){if(this.get_subcription_history&&this.get_subcription_history.length>0){const ee=this.get_subcription_history[0];return this.formatDate(ee.transaction_paid_on?ee.transaction_paid_on:ee.created_at)}return""}hasNoPackage(){return!this.package_details||0===Object.keys(this.package_details).length}openViewCardModal(){this.getSubscriptionCardData().then(()=>{this.showViewCardModal=!0})}closeViewCardModal(){this.showViewCardModal=!1}static#e=this.\u0275fac=function(bt){return new(bt||Ye)(u.rXU(E.NS1),u.rXU(E.S0W),u.rXU(tn.Y0),u.rXU(e.V4),u.rXU(tn.Vv),u.rXU(xi.ok),u.rXU(Bi.Ix))};static#t=this.\u0275cmp=u.VBU({type:Ye,selectors:[["ngx-subscription"]],decls:12,vars:4,consts:[["no_data_div",""],["changePackageModal",""],["topupModal",""],["cancelConfirmModal",""],["createdDate",""],["noTransactionId",""],["noAmount",""],["class","loading-overlay",4,"ngIf"],["class","body-style package-selection-root",4,"ngIf"],["class","body-style subscription-root",4,"ngIf"],["class","onepay-modal-backdrop",4,"ngIf"],[1,"loading-overlay"],[1,"loading-content"],["size","large","status","primary"],[1,"loading-text"],[1,"body-style","package-selection-root"],[1,"container"],[1,"text-left","mb-4"],[1,"d-flex","justify-content-between","align-items-center"],[1,"page-heading_package"],[1,"lead","text-muted"],[1,"btn-update-card-header",3,"click","disabled"],[1,"fas","fa-credit-card"],[1,"row","justify-content-center"],["class","col-lg-3 col-md-6 mb-4 package_grid",4,"ngFor","ngForOf"],["class","text-center p-5",4,"ngIf"],[1,"col-lg-3","col-md-6","mb-4","package_grid"],[1,"subscription-card",2,"width","100%",3,"click"],[1,"card-top"],[1,"plan-name"],[1,"price"],[1,"currency","amount"],[1,"amount"],[1,"period"],[1,"fee","mb-3"],[1,"btn-get-started",3,"click","disabled"],[4,"ngIf"],[1,"divider"],[1,"card-bottom"],[1,"features-title"],[1,"features-list"],["class","warning",4,"ngIf"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"package_grid_p"],[1,"warning"],[1,"text-center","p-5"],[1,"fas","fa-box-open","fa-3x","text-muted","mb-3"],[1,"text-muted"],[1,"onepay-modal-backdrop"],[1,"onepay-modal"],[1,"modal-title"],[1,"logo-wrapper"],[1,"logo-ring"],["src","../../../../assets/images/package_onepay_logo.png","alt","OnePay"],[1,"modal-subtitle"],[1,"benefits-list"],[1,"check-icon"],[1,"btn-save-card",3,"click","disabled"],["class","spinner-border spinner-border-sm mr-2",4,"ngIf"],[1,"btn-view-packages",3,"click","disabled"],["routerLink","/pages/dashboard",1,"btn-view-packages",2,"font-size","12px","color","rgba(0, 0, 0, 0.55)"],[1,"spinner-border","spinner-border-sm","mr-2"],[1,"body-style","subscription-root"],[1,"row","mb-4"],[1,"col","d-flex","align-items-center"],[1,"page-heading"],[1,"row"],[1,"col-sm-12","col-lg-7"],["nbSpinnerStatus","primary","nbSpinnerSize","large",3,"nbSpinner"],[1,"d-flex","justify-content-start","sub-heading-div"],[1,"sub-heading"],["class","compact-package-view",4,"ngIf"],[3,"ngIf"],["class","col d-flex flex-column px-0 list-like-table quota-details-table",4,"ngIf"],[1,"col-sm-12","col-lg-5"],[1,"d-flex","justify-content-between","align-items-center","mb-4"],["class","d-flex align-items-center package-name",4,"ngIf"],[1,"d-flex","align-items-strech",2,"height","20rem"],[1,"w-50"],[4,"ngIf","ngIfElse"],[1,"w-50","d-flex","flex-column","justify-content-center","align-items-center","topup"],["src","assets/svgs/topup.svg","alt","topup",1,"mb-3"],[1,"mb-3"],[3,"click"],["src","assets/svgs/topup_button_icon.svg","alt",""],[1,"col-12"],[1,"d-flex","justify-content-start","mb-4","sub-heading-div"],[1,"col","d-flex","flex-column","px-0","list-like-table"],["class","table-responsive",4,"ngIf","ngIfElse"],["responsive","true","class","mx-auto mt-3 mt-lg-1",3,"pageChange","pageBoundsCorrection",4,"ngIf"],[1,"compact-package-view"],[1,"compact-header"],[1,"header-left"],[1,"package-name"],["style","padding-left: 0;","class","col d-flex justify-content-end align-items-center",4,"ngIf"],["class","header-right",4,"ngIf"],[1,"collapsible-card"],[1,"card-header",3,"click"],[1,"header-title"],[1,"icon"],[1,"header-actions"],[1,"usage-percentage"],[1,"toggle-icon"],["class","card-content",4,"ngIf"],[1,"next-billing"],[1,"col","d-flex","justify-content-end","align-items-center",2,"padding-left","0"],[1,"btn_update",3,"click","disabled"],[1,"btn_manual"],[1,"header-right"],[1,"quick-stat"],[1,"stat-value"],[1,"stat-label"],[1,"card-content"],[1,"progress-container"],[1,"progress-bar"],[1,"progress-fill"],[1,"usage-stats"],[1,"usage-item"],[1,"label"],["class","value",4,"ngIf"],[1,"value","used"],["class","value free",4,"ngIf"],[1,"value","free"],[1,"value"],[1,"billing-details"],[1,"detail-item"],[1,"payment-details"],[1,"fas","fa-credit-card","mr-2"],[1,"detail-item","actions"],[1,"value","text-muted"],[1,"btn","btn-success",3,"click","disabled"],[1,"fas","fa-plus","mr-1"],[1,"n
1o-package-card"],[1,"col","d-flex","flex-column","px-0","list-like-table","quota-details-table"],["class","table-responsive","style","overflow-y: hidden; overflow-x: auto; min-width: 38rem;",4,"ngIf","ngIfElse"],[1,"table-responsive",2,"overflow-y","hidden","overflow-x","auto","min-width","38rem"],[1,"table","table-sm","align-top"],[4,"ngFor","ngForOf"],[2,"min-width","10rem"],[1,"d-flex","align-items-center","package-name"],[1,"mr-1"],["style","color: red;",4,"ngIf"],["style","color: #008D49;",4,"ngIf"],[2,"color","red"],[2,"color","#008D49"],["id","package-status-chart"],["legend","true","legendPosition","bellow",3,"scheme","results"],[1,"table-responsive"],["class","badge badge-success",4,"ngIf"],["class","badge badge-danger",4,"ngIf"],["class","badge badge-warning",4,"ngIf"],["class","text-muted",4,"ngIf"],[3,"ngClass"],[1,"badge","badge-success"],[1,"badge","badge-danger"],[1,"badge","badge-warning"],[1,"text-center","p-4"],["responsive","true",1,"mx-auto","mt-3","mt-lg-1",3,"pageChange","pageBoundsCorrection"],[1,"w-100","h-100","d-flex","justify-content-center","align-items-center","text-center","subscription-no-data-div"],[3,"ngSubmit","formGroup"],[1,"popup-modal-root","change-package-modal"],[1,"col","d-flex","justify-content-between","align-items-center"],["type","button",1,"btn","p-0",2,"color","rgba(0, 0, 0, 0.5)",3,"click"],["size","2px",1,"fas","fa-times"],[1,"row","pt-2"],["class","col-lg-3 col-md-3 col-12 mb-4",4,"ngFor","ngForOf"],["class","alert alert-danger mt-3",4,"ngIf"],["class","alert alert-warning mt-3",4,"ngIf"],[1,"selection-status"],["class","text-success",4,"ngIf"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click"],["type","submit",1,"btn","btn-success",3,"disabled"],[1,"col-lg-3","col-md-3","col-12","mb-4"],["type","radio","formControlName","package_id",1,"d-none",3,"id","value"],[1,"subscription-card",2,"width","100%",3,"for"],[1,"fee_change_package"],["type","button",1,"btn-get-started"],[1,"limit"],[1,"alert","alert-danger","mt-3"],[1,"fas","fa-exclamation-circle","mr-2"],[1,"alert","alert-warning","mt-3"],[1,"fas","fa-info-circle","mr-2"],[1,"text-success"],[1,"fas","fa-check-circle","mr-1"],[1,"fas","fa-info-circle","mr-1"],[1,"popup-modal-root","topup-modal"],["class","pt-2",4,"ngFor","ngForOf"],["class","text-center p-3",4,"ngIf"],[1,"d-flex","justify-content-end"],[1,"pt-2"],["type","radio","formControlName","topup_amount",1,"topradio",3,"change","id","value"],[1,"lbl2",3,"for"],[1,"text-center","p-3"],[1,"popup-modal-root","cancel-confirm-modal"],["type","button",1,"btn","p-0",2,"color","rgba(0, 0, 0, 0.5)",3,"click","disabled"],[1,"warning-icon","mb-3"],[1,"fas","fa-exclamation-triangle","fa-3x","text-warning"],[1,"alert","alert-warning","text-left","mb-4"],["for","confirmCancel",1,"form-check-label","mt-2","mb-0","pl-3"],[1,"confirmation-check","mt-4"],[1,"form-check"],["type","checkbox","id","confirmCancel",1,"form-check-input",3,"ngModelChange","ngModel"],["for","confirmCancel",1,"form-check-label"],[1,"d-flex","justify-content-center"],["type","button",1,"btn","btn-outline-secondary","mr-2",3,"click","disabled"],["type","button",1,"btn","btn-danger",3,"click","disabled"],[1,"onepay-modal","view-card-modal"],[1,"card-details-section"],[1,"card-preview"],[1,"card-icon-large"],[1,"card-number-display"],[1,"card-expiry-display"],["class","card-type-display",4,"ngIf"],[1,"card-info-list"],["class","info-item",4,"ngIf"],["class","no-card-section",4,"ngIf"],[1,"btn-update-payment",3,"click","disabled"],[1,"fas"],[1,"btn-close-modal",3,"click","disabled"],[1,"card-type-display"],[1,"card-badge"],[1,"info-item"],[1,"info-label"],[1,"info-value"],[1,"no-card-section"],[1,"no-card-icon"],[1,"no-card-text"],[1,"no-card-subtext"]],template:function(bt,Be){1&bt&&u.DNE(0,Zi,5,0,"div",7)(1,Jo,17,4,"div",8)(2,Es,44,11,"div",9)(3,Ol,3,0,"ng-template",null,0,u.C5r)(5,Wd,25,9,"ng-template",null,1,u.C5r)(7,Qc,18,7,"ng-template",null,2,u.C5r)(9,yc,33,6,"ng-template",null,3,u.C5r)(11,Rc,23,15,"div",10),2&bt&&(u.Y8G("ngIf",Be.is_loading),u.R7$(),u.Y8G("ngIf",Be.showPackageSelection),u.R7$(),u.Y8G("ngIf",Be.showSubscriptionRoot),u.R7$(9),u.Y8G("ngIf",Be.showViewCardModal))},dependencies:[qe.YU,qe.Sq,qe.bT,xi.qT,xi.me,xi.Zm,xi.Fm,xi.BC,xi.cb,xi.vS,xi.j4,xi.JD,Bi.Wk,jn.km,E.SrT,E.KH5,E.VDm,E.zJv,E.jBr,E.zwc,sn.ej,qe.QX,qe.vh,sn.kf],styles:['@charset "UTF-8";
1.subscription-root[_ngcontent-%COMP%] .package-name[_ngcontent-%COMP%] > h4[_ngcontent-%COMP%]{font-weight:500;font-size:18px;color:#000}.subscription-root[_ngcontent-%COMP%] .package-change-btn[_ngcontent-%COMP%]{font-weight:400;font-size:16px;color:red;text-decoration-line:underline;outline:none;border:none;background:none}.subscription-root[_ngcontent-%COMP%] .topup[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:500;font-size:14px;color:#1a202c;text-align:center}.subscription-root[_ngcontent-%COMP%] .topup[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:108px;height:36px;font-weight:500;font-size:14px;color:#fff;padding:10px 20px;background:red!important;box-shadow:0 6px 10px #ff000038;border-radius:6px;outline:none;border:none;background:none;display:flex;justify-content:space-between;align-items:center}.subscription-root[_ngcontent-%COMP%] nb-badge[_ngcontent-%COMP%]{position:absolute;top:30px!important;left:15px!important}.subscription-root[_ngcontent-%COMP%] .btn_recurring[_ngcontent-%COMP%], .subscription-root[_ngcontent-%COMP%] .btn_manual[_ngcontent-%COMP%], .subscription-root[_ngcontent-%COMP%] .btn_update[_ngcontent-%COMP%], .subscription-root[_ngcontent-%COMP%] .btn_success[_ngcontent-%COMP%]{width:68px;height:21px;font-weight:500;font-size:10px;border:none!important;outline:none;border-radius:1px;margin:3px;cursor:default;cursor:pointer}.subscription-root[_ngcontent-%COMP%] .btn_recurring[_ngcontent-%COMP%]{background:#fcedc8;color:#d67455}.subscription-root[_ngcontent-%COMP%] .btn_manual[_ngcontent-%COMP%]{background:#c8fce6;color:#3b8968}.subscription-root[_ngcontent-%COMP%] .btn_update[_ngcontent-%COMP%]{background:#000;color:#fff}.subscription-root[_ngcontent-%COMP%] .btn_success[_ngcontent-%COMP%]{background:#c8fce6;color:#3b8968}.subscription-root[_ngcontent-%COMP%] .btn_fail[_ngcontent-%COMP%]{background:#fcc8c8;color:#893b3b;border:none}.subscription-root[_ngcontent-%COMP%] .subscription-no-data-div[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{color:#0000008c!important;font-weight:600!important;word-wrap:break-word}.subscription-root[_ngcontent-%COMP%] .quota-details-table[_ngcontent-%COMP%]{height:18.45rem;overflow-y:hidden;overflow-x:auto}.subscription-root[_ngcontent-%COMP%] .quota-details-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border-spacing:2px}.subscription-root[_ngcontent-%COMP%] .quota-details-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%], .subscription-root[_ngcontent-%COMP%] .quota-details-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%], .subscription-root[_ngcontent-%COMP%] .quota-details-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{display:table;width:100%;table-layout:fixed}.subscription-root[_ngcontent-%COMP%] .quota-details-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{width:calc(100% - 8px)}.subscription-root[_ngcontent-%COMP%] .quota-details-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{display:block;height:15.4rem;overflow:auto;padding:0 5px 50px}.subscription-root[_ngcontent-%COMP%] .quota-details-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{box-shadow:0 1px 5px #0000001a;-webkit-box-shadow:0px 1px 5px rgba(0,0,0,.1);-moz-box-shadow:0px 1px 5px rgba(0,0,0,.1);margin:5px 0}.change-package-modal[_ngcontent-%COMP%]{width:80rem}.topup-modal[_ngcontent-%COMP%]{width:40rem}.inputradio[_ngcontent-%COMP%]{display:none}.inputradio[_ngcontent-%COMP%]:not(:disabled) ~ .lbl[_ngcontent-%COMP%]{cursor:pointer}.inputradio[_ngcontent-%COMP%]:disabled ~ .lbl[_ngcontent-%COMP%]{color:#bcc2bf;border-color:#bcc2bf;box-shadow:none;cursor:not-allowed}.lbl[_ngcontent-%COMP%]{height:100%;display:block;background:#fff;border:2px solid hsl(150,75%,50%);border-radius:20px;padding:1rem;margin-bottom:1rem;text-align:center;box-shadow:0 3px 10px -2px #a1aaa680;position:relative}
1.inputradio[_ngcontent-%COMP%]:checked + .lbl[_ngcontent-%COMP%]{background:#20df80;color:#fff;box-shadow:0 0 20px #00ff80bf}.inputradio[_ngcontent-%COMP%]:checked + .lbl[_ngcontent-%COMP%]:after{color:#3d3f43;font-family:"Font Awesome 5 Free";border:2px solid hsl(150,75%,45%);content:"\\f058";font-size:24px;position:absolute;top:-25px;left:50%;transform:translate(-50%);height:50px;width:50px;line-height:50px;text-align:center;border-radius:50%;background:#fff;box-shadow:0 2px 5px -2px #00000040}input[type=radio]#control_05[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:red;border-color:red}p[_ngcontent-%COMP%]{font-weight:600}@media only screen and (max-width: 700px){section[_ngcontent-%COMP%]{flex-direction:column}}.topradio[_ngcontent-%COMP%]{display:none}.topradio[_ngcontent-%COMP%]:not(:disabled) ~ .lbl2[_ngcontent-%COMP%]{cursor:pointer}.topradio[_ngcontent-%COMP%]:disabled ~ .lbl2[_ngcontent-%COMP%]{color:#bcc2bf;border-color:#bcc2bf;box-shadow:none;cursor:not-allowed}.topradio[_ngcontent-%COMP%]:checked + .lbl2[_ngcontent-%COMP%]{background:#d2d8d59e;color:#000;box-shadow:0 0 20px #c5ecd9bf}.lbl2[_ngcontent-%COMP%]{height:100%;display:block;background:#fff;border:2px solid hsl(150,75%,50%);border-radius:20px;padding:1rem;margin-bottom:1rem;text-align:left;box-shadow:0 3px 10px -2px #a1aaa680;position:relative}@media (max-width: 1000px){.change-package-modal[_ngcontent-%COMP%]{width:100%}}.subscriptionDetailsFee[_ngcontent-%COMP%]{font-family:Poppins;font-style:normal;font-weight:400;font-size:12px;font-weight:700;color:#525252}.compact-package-view[_ngcontent-%COMP%]{max-width:600px;margin:0 auto;padding:16px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:14px;font-weight:400;line-height:1.4}.compact-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #e1e5e9}.package-name[_ngcontent-%COMP%]{font-size:18px;font-weight:600;margin:0;color:#2c3e50}.status-badge[_ngcontent-%COMP%]{display:inline-block;padding:4px 8px;border-radius:12px;font-size:12px;font-weight:500;margin-left:8px}.status-badge.active[_ngcontent-%COMP%]{background:#d4edda;color:#155724}.quick-stat[_ngcontent-%COMP%]{text-align:right}.stat-value[_ngcontent-%COMP%]{font-size:16px;font-weight:600;color:#2c3e50}.stat-label[_ngcontent-%COMP%]{font-size:12px;color:#6c757d}.collapsible-card[_ngcontent-%COMP%]{background:#fff;border:1px solid #e1e5e9;border-radius:8px;margin-bottom:12px;overflow:hidden}.card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;cursor:pointer;background:#f8f9fa;transition:background-color .2s}.card-header[_ngcontent-%COMP%]:hover{background:#e9ecef}.header-title[_ngcontent-%COMP%]{display:flex;align-items:center;font-weight:500;color:#2c3e50}.icon[_ngcontent-%COMP%]{margin-right:8px;font-size:14px}.header-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.usage-percentage[_ngcontent-%COMP%]{font-size:12px;color:#6c757d;font-weight:500}.next-billing[_ngcontent-%COMP%]{font-size:12px;color:#6c757d}.toggle-icon[_ngcontent-%COMP%]{font-size:16px;font-weight:600;color:#6c757d;width:16px;text-align:center}.card-content[_ngcontent-%COMP%]{padding:16px;background:#fff}.progress-container[_ngcontent-%COMP%]{margin-bottom:16px}.progress-bar[_ngcontent-%COMP%]{height:6px;background:#e9ecef;border-radius:3px;overflow:hidden}.progress-fill[_ngcontent-%COMP%]{height:100%;background:linear-gradient(90deg,#28a745,#20c997);border-radius:3px;transition:width .3s ease}.usage-stats[_ngcontent-%COMP%]{display:grid;gap:12px}.usage-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.label[_ngcontent-%COMP%]{color:#6c757d;font-size:13px}.value[_ngcontent-%COMP%]{font-weight:500;color:#2c3e50;font-size:13px}.value.used[_ngcontent-%COMP%]{color:#dc3545}.value.free[_ngcontent-%COMP%]{color:#28a745}.billing-details[_ngcontent-%COMP%], .details-grid[_ngcontent-%COMP%]{display:grid;gap:12px}.detail-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start}.detail-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{min-width:80px;margin-right:12px}.detail-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{text-align:right;flex:1}.quick-stats-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px;padding-top:16px;border-top:1px solid #e1e5e9}.quick-stats-row[_ngcontent-%COMP%] .quick-stat[_ngcontent-%COMP%]{text-align:center;padding:12px;background:#f8f9fa;border-radius:6px}.quick-stats-row[_ngcontent-%COMP%] .stat-value[_ngcontent-%COMP%]{font-size:16px;margin-bottom:4px}.quick-stats-row[_ngcontent-%COMP%] .stat-label[_ngcontent-%COMP%]{font-size:11px;color:#6c757d}@media (max-width: 480px){.compact-package-view[_ngcontent-%COMP%]{padding:12px}.compact-header[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:8px}.header-right[_ngcontent-%COMP%]{align-self:flex-end}.card-header[_ngcontent-%COMP%]{padding:10px 12px}.card-content[_ngcontent-%COMP%]{padding:12px}.quick-stats-row[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:8px}}.no-package-card[_ngcontent-%COMP%]{text-align:center;padding:40px;border:1px dashed #ccc;border-radius:12px;background:#f9fafb}.no-package-card[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{font-size:40px;margin-bottom:10px}.no-package-card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:10px 0 5px;color:#333}.no-package-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#7
177;margin-bottom:20px}.detail-item[_ngcontent-%COMP%]{margin-bottom:12px}.btn-success[_ngcontent-%COMP%]{background-color:#28a745;border-color:#28a745}.btn-danger[_ngcontent-%COMP%]{background-color:#dc3545;border-color:#dc3545}.btn-warning[_ngcontent-%COMP%]{background-color:#ffc107;border-color:#ffc107;color:#212529}.btn-info[_ngcontent-%COMP%]{background-color:#17a2b8;border-color:#17a2b8}.btn-secondary[_ngcontent-%COMP%]{background-color:#6c757d;border-color:#6c757d}.status-btn[_ngcontent-%COMP%]{border:none;border-radius:4px;padding:4px 12px;font-size:12px;font-weight:500;color:#fff;cursor:default}.status-btn.success[_ngcontent-%COMP%]{background-color:#10b981;box-shadow:0 1px 3px #10b9814d}.status-btn.failed[_ngcontent-%COMP%]{background-color:#ef4444;box-shadow:0 1px 3px #ef44444d}.status-btn.pending[_ngcontent-%COMP%]{background-color:#f59e0b;box-shadow:0 1px 3px #f59e0b4d}.status-btn.processing[_ngcontent-%COMP%]{background-color:#3b82f6;box-shadow:0 1px 3px #3b82f64d}.status-btn.unknown[_ngcontent-%COMP%]{background-color:#6b7280;box-shadow:0 1px 3px #6b72804d}.status-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:4px}.subscription-root[_ngcontent-%COMP%]{padding:2rem 0}@keyframes _ngcontent-%COMP%_modalSlideUp{0%{opacity:0;transform:translateY(30px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.onepay-modal-backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1050}.onepay-modal[_ngcontent-%COMP%]{background:#fff;width:420px;border-radius:28px;padding:32px 28px;text-align:center;box-shadow:0 20px 60px #00000040}.modal-title[_ngcontent-%COMP%]{font-size:24px;font-weight:700;color:#0f172a;margin-bottom:24px}.logo-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:20px}.logo-ring[_ngcontent-%COMP%]{width:100px;height:100px;border-radius:50%;background:#e9fff2;display:flex;align-items:center;justify-content:center}.logo-ring[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:80px;height:auto}.modal-subtitle[_ngcontent-%COMP%]{font-size:15px;color:#64748b;margin-bottom:28px}.benefits-list[_ngcontent-%COMP%]{list-style:none;padding:0;margin-bottom:32px;text-align:left}.benefits-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:15px;color:#475569;margin-bottom:14px}.check-icon[_ngcontent-%COMP%]{width:22px;height:22px;background:#0f766e;color:#fff;border-radius:50%;font-size:12px;display:inline-flex;align-items:center;justify-content:center;margin-right:12px}.btn-save-card[_ngcontent-%COMP%]{width:100%;height:52px;border-radius:26px;background:#0f4d3a;color:#fff;font-size:16px;font-weight:600;border:none;margin-bottom:16px}.btn-save-card[_ngcontent-%COMP%]:disabled{opacity:.7}.btn-view-packages[_ngcontent-%COMP%]{background:transparent;border:none;color:#0f4d3a;font-size:15px;font-weight:600}.subscription-card[_ngcontent-%COMP%]{background:#fff;border-radius:20px;border:1px solid #e5e7eb;overflow:hidden;height:100%;transition:all .25s ease;cursor:pointer}.subscription-card.active[_ngcontent-%COMP%]{background:#0f4d3a;color:#fff;transform:translateY(-6px)}.btn-get-started[_ngcontent-%COMP%]{width:100%;border-radius:999px;
1height:44px;border:1px solid #cbd5e1;background:#fff;font-weight:600}.card-bottom[_ngcontent-%COMP%]{padding:24px}.features-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:12px;padding-left:26px;position:relative}.warning[_ngcontent-%COMP%]{display:block;margin-top:12px;color:#f59e0b}.subscription-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px)}.currency[_ngcontent-%COMP%]{font-size:14px;vertical-align:top}.amount[_ngcontent-%COMP%]{font-size:20px;font-weight:700;margin:0 4px}.period[_ngcontent-%COMP%]{font-size:14px;color:#94a3b8}.subscription-card.active[_ngcontent-%COMP%] .period[_ngcontent-%COMP%], .subscription-card.active[_ngcontent-%COMP%] .fee[_ngcontent-%COMP%]{color:#d1fae5}.btn-get-started[_ngcontent-%COMP%]{width:100%;height:42px;border-radius:999px;border:1px solid #cbd5e1;background:#fff;font-weight:600}.divider[_ngcontent-%COMP%]{height:1px;background:#e5e7eb}.card-bottom[_ngcontent-%COMP%]{padding:20px 24px 24px}.features-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;padding-left:26px;margin-bottom:10px}.subscription-card.active[_ngcontent-%COMP%] .features-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{color:#a7f3d0}.limit[_ngcontent-%COMP%]{font-size:13px;color:#64748b;margin-top:10px}.subscription-card.active[_ngcontent-%COMP%] .limit[_ngcontent-%COMP%]{color:#d1fae5}.subscription-card[_ngcontent-%COMP%]{background:#fff;border-radius:18px;border:1px solid #e6e9ef;height:100%;cursor:pointer;transition:all .25s ease;box-shadow:0 1.87px 14.01px #19213d1a}.subscription-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 10px 30px #0000000f}.subscription-card.active[_ngcontent-%COMP%]{background:#0f4d3a;color:#fff;border-color:#0f4d3a}.card-top[_ngcontent-%COMP%]{padding:28px;text-align:left}.plan-name[_ngcontent-%COMP%]{font-weight:500;margin-bottom:25px!important;font-size:22px}.price[_ngcontent-%COMP%]{margin-bottom:12px}.currency[_ngcontent-%COMP%]{font-size:14px}.amount[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0 4px}.period[_ngcontent-%COMP%]{font-size:14px;color:#8b94a7}.subscription-card.active[_ngcontent-%COMP%] .period[_ngcontent-%COMP%]{color:#c7f5e3}.fee[_ngcontent-%COMP%]{font-size:14px;color:#6b7280;margin-bottom:25px!important;font-weight:400}.fee_change_package[_ngcontent-%COMP%]{font-size:14px;color:#6b7280;margin-bottom:20px!important;margin-top:20px!important;font-weight:400}.subscription-card.active[_ngcontent-%COMP%] .fee[_ngcontent-%COMP%], .subscription-card.active[_ngcontent-%COMP%] .fee_change_package[_ngcontent-%COMP%]{color:#c7f5e3}.btn-get-started[_ngcontent-%COMP%]{width:100%;height:44px;border-radius:999px;background:#fff;border:1px solid #d7dbea;font-weight:600}.active-btn[_ngcontent-%COMP%]{background:#fff;color:#0f4d3a}.divider[_ngcontent-%COMP%]{height:1px;background:#e6e9ef}.subscription-card.active[_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{background:#ffffff40}.card-bottom[_ngcontent-%COMP%]{padding:24px 28px 28px}.features-title[_ngcontent-%COMP%]{font-weight:500;margin-bottom:16px!important;font-size:16px}.features-list[_ngcontent-%COMP%]{list-style:none;padding:0}.features-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding-left:26px;position:relative;margin-bottom:12px;color:#6f6c8f}.features-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:"\\2714";position:absolute;left:0;color:#0f766e}.subscription-card.active[_ngcontent-%COMP%] .features-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{color:#9ff3cf}.warning[_ngcontent-%COMP%]{display:block;margin-top:12px;color:#fbbf24}.package-selection-root[_ngcontent-%COMP%]{min-height:100vh}.package-selection-root[_ngcontent-%COMP%] .page-heading_package[_ngcontent-%COMP%]{font-size:24px;font-weight:700;color:#212529;line-height:35px}.package-selection-root[_ngcontent-%COMP%] .lead[_ngcontent-%COMP%]{font-size:12px;color:#6c757d;font-weight:500}.package-selection-root[_ngcontent-%COMP%] .card-status-indicator[_ngcontent-%COMP%]{margin-bottom:2rem}.package-selection-root[_ngcontent-%COMP%] .card-status-indicator[_ngcontent-%COMP%] .badge[_ngcontent-%COMP%]{font-size:1rem;font-weight:500;padding:.5rem 1.5rem}.package-selection-root[_ngcontent-%COMP%] .card-status-indicator[_ngcontent-%COMP%] .badge[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.1rem}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%]{border:2px solid #e9ecef;border-radius:12px;overflow:hidden;transition:all .3s ease;background:#fff;position:relative;margin-bottom:2rem}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%]:hover{border-color:#007bff;transform:translateY(-5px);box-shadow:0 10px 25px #0000001a}.package-selection-root[_ngcontent-%COMP%] .package-card.selected[_ngcontent-%COMP%]{border-color:#28a745;box-shadow:0 10px 25px #28a74533}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%] .popular-badge[_ngcontent-%COMP%]{position:absolute;top:-10px;right:20px;z-index:10}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%] .popular-badge[_ngcontent-%COMP%] .badge[_ngcontent-%COMP%]{font-size:.8rem;font-weight:600;letter-spacing:.5px;border-radius:20px}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%] .popular-badge[_ngcontent-%COMP%] .badge[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:.9rem}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{background:linear-gradient(135deg,#f8f9fa,#e9ecef);border-bottom:1px solid #dee2e6;padding:1.5rem}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] .package-name[_ng
1content-%COMP%]{font-size:1.5rem;font-weight:700;color:#212529;margin-bottom:.5rem}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] .package-price[_ngcontent-%COMP%]{margin-bottom:.5rem}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] .package-price[_ngcontent-%COMP%] .amount[_ngcontent-%COMP%]{font-size:2rem;font-weight:700;color:#007bff}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] .package-price[_ngcontent-%COMP%] .period[_ngcontent-%COMP%]{font-size:1rem;color:#6c757d;margin-left:4px}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] .processing-fee[_ngcontent-%COMP%]{font-size:.9rem;color:#6c757d}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%]{padding:1.5rem}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .features-title[_ngcontent-%COMP%]{font-size:1.1rem;font-weight:600;color:#495057;margin-bottom:1rem}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .features-list[_ngcontent-%COMP%]{list-style:none;padding-left:0;margin-bottom:1.5rem}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .features-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:#6c757d;font-size:.95rem;position:relative;padding:.4rem 0 .4rem 1.5rem;line-height:1.5}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .features-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{position:absolute;left:0;color:#28a745;font-weight:700}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .package-limits[_ngcontent-%COMP%] .limit-item[_ngcontent-%COMP%]{display:flex;align-items:center;padding-top:1rem;border-top:1px solid #e9ecef}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .package-limits[_ngcontent-%COMP%] .limit-item[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.2rem;color:#007bff}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .package-limits[_ngcontent-%COMP%] .limit-item[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#495057;font-size:.95rem}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%] .card-footer[_ngcontent-%COMP%]{background:transparent;border-top:1px solid #e9ecef;padding:1.5rem}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%] .card-footer[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{font-weight:600;font-size:1rem;border-radius:8px;transition:all .3s ease}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%] .card-footer[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%] .card-footer[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%] .card-footer[_ngcontent-%COMP%] .btn.btn-success[_ngcontent-%COMP%]{background:#28a745;border-color:#28a745}.package_grid[_ngcontent-%COMP%]{padding:5px!important}.card-add-modal-container[_ngcontent-%COMP%]{position:fixed;inset:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;padding:2rem}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%]{background:#fff;border-radius:16px;padding:2.5rem;max-width:500px;width:100%;animation:_ngcontent-%COMP%_modalSlideUp .3s ease;box-shadow:0 25px 50px #00000040}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal
1-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{font-size:1.8rem;font-weight:700;color:#212529;margin:0}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%] .modal-close[_ngcontent-%COMP%]{background:none;border:none;color:#6c757d;font-size:1.5rem;cursor:pointer;padding:.5rem;transition:color .2s ease}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%] .modal-close[_ngcontent-%COMP%]:hover{color:#212529}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-plan-section[_ngcontent-%COMP%]{text-align:center;margin-bottom:2rem;padding:1.5rem;background:linear-gradient(135deg,#f8f9fa,#e9ecef);border-radius:12px}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-plan-section[_ngcontent-%COMP%] .plan-title[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:600;color:#212529;margin-bottom:1rem}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-plan-section[_ngcontent-%COMP%] .plan-price[_ngcontent-%COMP%]{margin-bottom:1rem}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-plan-section[_ngcontent-%COMP%] .plan-price[_ngcontent-%COMP%] .currency[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:600;color:#6c757d;vertical-align:top;margin-right:4px}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-plan-section[_ngcontent-%COMP%] .plan-price[_ngcontent-%COMP%] .amount[_ngcontent-%COMP%]{font-size:2.5rem;font-weight:700;color:#212529;line-height:1}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-plan-section[_ngcontent-%COMP%] .plan-price[_ngcontent-%COMP%] .period[_ngcontent-%COMP%]{font-size:1.1rem;color:#6c757d;vertical-align:bottom;margin-left:4px}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-plan-section[_ngcontent-%COMP%] .plan-description[_ngcontent-%COMP%]{font-size:1.1rem;color:#495057;margin:0}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-plan-section[_ngcontent-%COMP%] .plan-description[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.2rem}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-benefits-section[_ngcontent-%COMP%]{margin-bottom:2rem}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-benefits-section[_ngcontent-%COMP%] .benefits-title[_ngcontent-%COMP%]{font-size:1.3rem;font-weight:600;color:#212529;margin-bottom:1rem;text-align:center}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-benefits-section[_ngcontent-%COMP%] .benefits-list[_ngcontent-%COMP%] .benefit-item[_ngcontent-%COMP%]{display:flex;align-items:flex-start;margin-bottom:1rem;padding:.75rem;background:#f8f9fa;border-radius:8px}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-benefits-section[_ngcontent-%COMP%] .benefits-list[_ngcontent-%COMP%] .benefit-item[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.2rem;margin-top:2px;flex-shrink:0}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-benefits-section[_ngcontent-%COMP%] .benefits-list[_ngcontent-%COMP%] .benefit-item[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#495057;font-size:1rem;line-height:1.5}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-benefits-section[_ngcontent-%COMP%] .benefits-list[_ngcontent-%COMP%] .benefit-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal
1-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;margin-bottom:1.5rem}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-actions[_ngcontent-%COMP%] .btn-save-card[_ngcontent-%COMP%]{background:linear-gradient(135deg,#007bff,#0056b3);border:none;color:#fff;font-weight:600;font-size:1.1rem;padding:1rem;border-radius:10px;transition:all .3s ease}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-actions[_ngcontent-%COMP%] .btn-save-card[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #007bff66}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-actions[_ngcontent-%COMP%] .btn-save-card[_ngcontent-%COMP%]:active:not(:disabled){transform:translateY(0)}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-actions[_ngcontent-%COMP%] .btn-view-packages[_ngcontent-%COMP%]{border:2px solid #6c757d;color:#6c757d;font-weight:600;font-size:1.1rem;padding:1rem;border-radius:10px;transition:all .3s ease}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-actions[_ngcontent-%COMP%] .btn-view-packages[_ngcontent-%COMP%]:hover:not(:disabled){background:#6c757d;color:#fff}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-security-note[_ngcontent-%COMP%]{text-align:center;padding-top:1rem;border-top:1px solid #e9ecef}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-security-note[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.2rem;vertical-align:middle}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-security-note[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#6c757d;font-size:.9rem;vertical-align:middle}@media (max-width: 768px){.package-selection-root[_ngcontent-%COMP%]{padding:2rem 1rem}.package-selection-root[_ngcontent-%COMP%] .page-heading_package[_ngcontent-%COMP%]{font-size:2rem}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] .package-name[_ngcontent-%COMP%]{font-size:1.3rem}.package-selection-root[_ngcontent-%COMP%] .package-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] .package-price[_ngcontent-%COMP%] .amount[_ngcontent-%COMP%]{font-size:1.5rem}.card-add-modal-container[_ngcontent-%COMP%]{padding:1rem}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%]{padding:1.5rem}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{font-size:1.5rem}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-plan-section[_ngcontent-%COMP%] .plan-price[_ngcontent-%COMP%] .amount[_ngcontent-%COMP%]{font-size:2rem}.card-add-modal-container[_ngcontent-%COMP%] .card-add-modal[_ngcontent-%COMP%] .modal-benefits-section[_ngcontent-%COMP%] .benefits-list[_ngcontent-%COMP%] .benefit-item[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:.95rem}}.package_grid_p[_ngcontent-%COMP%]{font-size:14px;color:#6f6c8f;font-weight:400;margin-bottom:15px!important}.subscription-card.active[_ngcontent-%COMP%] .plan-name[_ngcontent-%COMP%], .subscription-card.active[_ngcontent-%COMP%] .features-title[_ngcontent-%COMP%], .subscription-card.active[_ngcontent-%COMP%] .features-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .subscription-card.active[_ngcontent-%COMP%] .package_grid_p[_ngcontent-%COMP%]{color:#eefbf5}.cancel-confirm-modal[_ngcontent-%COMP%]{max-width:500px;margin:0 auto}.cancel-confirm-modal[_ngcontent-%COMP%] .warning-icon[_ngcontent-%COMP%]{color:#ffc107}.cancel-confirm-modal[_ngcontent-%COMP%] .current-package-info[_ngcontent-%COMP%]{border-left:4px solid #dc3545;background-color:#f8f9fa!important}.cancel-confirm-modal[_ngcontent-%COMP%] .confirmation-check[_ngcontent-%COMP%] .form-check[_ngcontent-%COMP%]{text-align:left;font-size:.9rem}.cancel-confirm-modal[_ngcontent-%COMP%] .confirmation-check[_ngcontent-%COMP%] .form-check[_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%]{margin-top:.25rem}.cancel-confirm-modal[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]{min-width:150px}.btn_update[disabled][_ngcontent-%COMP%]{opacity:.6;cursor:not-allowed}.view-card-modal[_ngcontent-%COMP%]{position:relative;max-width:450px}.modal-close-btn[_ngcontent-%COMP%]{position:absolute;top:20px;right:20px;background:none;border:none;font-size:20px;cursor:pointer;color:#999;transition:color .3s}.modal-close-btn[_ngcontent-%COMP%]:hover{color:#333}
1.card-details-section[_ngcontent-%COMP%]{margin:4px 0}.card-preview[_ngcontent-%COMP%]{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:16px;padding:20px;color:#fff;margin-bottom:4px;box-shadow:0 8px 20px #00000026}.card-icon-large[_ngcontent-%COMP%]{text-align:right;margin-bottom:5px}.card-icon-large[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:22px;opacity:.9}.card-number-display[_ngcontent-%COMP%]{font-size:18px;font-weight:600;letter-spacing:1px;margin-bottom:15px;font-family:monospace;word-break:break-all}.card-expiry-display[_ngcontent-%COMP%]{font-size:14px;opacity:.9;margin-bottom:10px}.card-type-display[_ngcontent-%COMP%]{text-align:right}.card-badge[_ngcontent-%COMP%]{background:#fff3;padding:4px 12px;border-radius:20px;font-size:12px;font-weight:500}.card-info-list[_ngcontent-%COMP%]{background:#f8f9fa;border-radius:12px;padding:15px;margin-bottom:20px}.info-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #e9ecef}.info-item[_ngcontent-%COMP%]:last-child{border-bottom:none}.info-label[_ngcontent-%COMP%]{font-size:14px;color:#6c757d;font-weight:500}.info-value[_ngcontent-%COMP%]{font-size:14px;color:#2c3e50;font-weight:600}.status-active[_ngcontent-%COMP%]{color:#28a745}.security-note[_ngcontent-%COMP%]{background:#e8f4fd;border-radius:10px;padding:12px;text-align:center;margin-bottom:20px}.security-note[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#0f4d3a;margin-right:8px}.security-note[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;color:#495057}.no-card-section[_ngcontent-%COMP%]{text-align:center;padding:5px 20px;margin:6px 0;background:#f8f9fa;border-radius:16px}.no-card-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:25px;color:#dee2e6}.no-card-text[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:#495057;margin-bottom:8px}.no-card-subtext[_ngcontent-%COMP%]{font-size:9px;color:#6c757d}.btn-update-payment[_ngcontent-%COMP%]{width:100%;height:38px;border-radius:24px;background:linear-gradient(135deg,#008d49,#024626);color:#fff;font-size:12px;font-weight:600;border:none;margin-bottom:12px;transition:all .3s ease;display:flex;align-items:center;justify-content:center;gap:8px}.btn-update-payment[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #008d4966}.btn-update-payment[_ngcontent-%COMP%]:disabled{opacity:.7;cursor:not-allowed}.btn-close-modal[_ngcontent-%COMP%]{width:100%;height:38px;border-radius:22px;background:transparent;border:1px solid #dee2e6;color:#6c757d;font-size:13px;font-weight:500;margin-bottom:12px;transition:all .3s ease}.btn-close-modal[_ngcontent-%COMP%]:hover:not(:disabled){background:#f8f9fa;border-color:#adb5bd}.btn-back-dashboard[_ngcontent-%COMP%]{width:100%;background:transparent;border:none;color:#0000008c;font-size:12px;padding:8px;cursor:pointer;transition:color .3s}.btn-back-dashboard[_ngcontent-%COMP%]:hover{color:#0f4d3a}@media (max-width: 768px){.view-card-modal[_ngcontent-%COMP%]{width:95%;padding:20px}.card-number-display[_ngcontent-%COMP%]{font-size:14px}.info-item[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:5px}}.btn-update-card-header[_ngcontent-%COMP%]{background:linear-gradient(135deg,#008d49,#024626);color:#fff;border:none;padding:10px 20px;border-radius:8px;font-weight:600;font-size:14px;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;gap:8px;box-shadow:0 2px 4px #008d4933}.btn-update-card-header[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #008d4966;background:linear-gradient(135deg,#00a85a,#008d49)}.btn-update-card-header[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:16px}.btn-update-card-header[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.btn-update-card-footer[_ngcontent-%COMP%]{background:#008d49;color:#fff;border:none;padding:12px 30px;border-radius:8px;font-weight:600;font-size:16px;cursor:pointer;transition:all .3s ease;display:inline-flex;align-items:center;gap:10px;box-shadow:0 2px 4px #0000001a}.btn-update-card-footer[_ngcontent-%COMP%]:hover:not(:disabled){background:#006635;transform:translateY(-2px);box-shadow:0 4px 12px #008d4966}.btn-update-card-footer[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:18px}.btn-update-card-footer[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}@media (max-width: 768px){.btn-update-card-header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:none}.btn-update-card-header[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin:0}.btn-update-card-header[_ngcontent-%COMP%]{padding:10px 15px}}']})}return Ye})();function bd(Ye,Jn){1&Ye&&(u.j41(0,"li"),u.EFF(1,"Current password is required."),u.k0s())}
1function ro(Ye,Jn){if(1&Ye&&(u.j41(0,"ul",24),u.DNE(1,bd,2,0,"li",25),u.k0s()),2&Ye){const ee=u.XpG();u.R7$(),u.Y8G("ngIf",null==ee.current_password||null==ee.current_password.errors?null:ee.current_password.errors.required)}}function $d(Ye,Jn){1&Ye&&(u.j41(0,"li"),u.EFF(1,"New password is required."),u.k0s())}function Lc(Ye,Jn){if(1&Ye&&(u.j41(0,"ul",24),u.DNE(1,$d,2,0,"li",25),u.k0s()),2&Ye){const ee=u.XpG();u.R7$(),u.Y8G("ngIf",null==ee.new_password||null==ee.new_password.errors?null:ee.new_password.errors.required)}}function td(Ye,Jn){1&Ye&&(u.j41(0,"li"),u.EFF(1,"You must confirm the new password."),u.k0s())}function Sa(Ye,Jn){1&Ye&&(u.j41(0,"li"),u.EFF(1,"Passwords do not match."),u.k0s())}function Xl(Ye,Jn){if(1&Ye&&(u.j41(0,"ul",24),u.DNE(1,td,2,0,"li",25)(2,Sa,2,0,"li",25),u.k0s()),2&Ye){const ee=u.XpG();u.R7$(),u.Y8G("ngIf",null==ee.confirm_password||null==ee.confirm_password.errors?null:ee.confirm_password.errors.required),u.R7$(),u.Y8G("ngIf",ee.confirm_password.value&&ee.new_password.value!==ee.confirm_password.value)}}let $a=(()=>{class Ye{constructor(ee,bt,Be){this.fb=ee,this.userService=bt,this.toastr=Be,this.is_requesting=!1,this.form=null,this.is_field_show={current_password:!1,new_password:!1,confirm_password:!1},this.form=this.fb.group({current_password:["",xi.k0.required],new_password:["",xi.k0.required],confirm_password:["",xi.k0.required]})}get current_password(){return this.form.get("current_password")}get new_password(){return this.form.get("new_password")}get confirm_password(){return this.form.get("confirm_password")}ngOnInit(){}isFieldInvalid(ee){let bt=!1;const Be=this.form.get(ee);return(Be?.dirty||Be?.touched)&&("confirm_password"===ee?(Be&&Be?.errors||this.confirm_password.value&&this.new_password.value!==Be.value)&&(bt=!0):Be&&Be?.errors&&(bt=!0)),bt}toggleShowPassword(ee){this.is_field_show[ee]=!this.is_field_show[ee]}resetForm(){this.form.reset(),this.is_field_show={current_password:!1,new_password:!1,confirm_password:!1}}changePassword(){this.is_requesting=!0,this.userService.changePassword({current_password:this.current_password.value,new_password:this.new_password.value,confirm_password:this.confirm_password.value}).then(bt=>{this.is_requesting=!1,100===bt?.status?(this.toastr.showToast("success","Success!","Password changed successfully."),this.resetForm()):this.toastr.showToast("danger","Error!",bt?.message||"Changing password failed.")},bt=>{this.is_requesting=!1,console.log("Internal Server Error",bt),this.toastr.showToast("danger","Error!","Internal Server Error.")})}static#e=this.\u0275fac=function(bt){return new(bt||Ye)(u.rXU(xi.ok),u.rXU(tn.DL),u.rXU(e.V4))};static#t=this.\u0275cmp=u.VBU({type:Ye,selectors:[["ngx-password-change"]],decls:48,vars:18,consts:[[1,"body-style","change-password-root"],[1,"container"],[1,"row","mb-4"],[1,"col","d-flex","justify-content-start","align-items-center"],[1,"page-heading"],[2,"height","33rem"],[1,"col","col-sm-10","col-md-8","col-lg-6","col-xl-6","col-xxl-5","my-5","mx-auto"],[1,"d-flex","flex-column","justify-content-start","align-items-start",3,"ngSubmit","formGroup"],[1,"col","d-flex","flex-column","justify-content-start","align-items-start","mb-4"],["for","change-pwd-form-c-pwd",1,"col","mb-2","px-0"],[1,"form-required-sign"],[1,"col","d-flex","flex-column","justify-content-start","align-items-stretch","px-0"],[1,"col","px-0"],["id","change-pwd-form-c-pwd","nbInput","","fullWidth","","placeholder","Enter current password","formControlName","current_password","name","current_password",3,"type","status"],["nbSuffix","","nbButton","","ghost","","type","button",3,"click"],["pack","eva",3,"icon"],["class","col error-wrapper",4,"ngIf"],["for","change-pwd-form-new-pwd",1,"col","mb-2","px-0"],["id","change-pwd-form-new-pwd","nbInput","","fullWidth","","placeholder","Enter new password","formControlName","new_password","name","new_password",3,"type","status"],["for","change-pwd-form-confirm-pwd",1,"col","mb-2","px-0"],["id","change-pwd-form-confirm-pwd","nbInput","","fullWidth","","placeholder","Confirm new password","formControlName","confirm_password","name","confirm_password",3,"type","status"],[1,"col","col-md-9","col-lg-7","d-flex","justify-content-end","align-items-center","mt-3","ml-auto"],["nbButton","","status","basic","type","button",1,"col","mr-1","primary-green-btn-outline",3,"click"],["nbButton","","status","primary","type","submit","nbSpinnerStatus","success",1,"col","primary-green-btn",3,"disabled","nbSpinner"],[1,"col","error-wrapper"],[4,"ngIf"]],template:function(bt,Be){1&bt&&(u.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h2",4),u.EFF(5,"Change Password"),u.k0s()()(),u.j41(6,"nb-card",5)(7,"nb-card-body")(8,"div",6)(9,"form",7),u.bIt("ngSubmit",function(){return Be.changePassword()}),u.j41(10,"div",8)(11,"label",9),u.EFF(12," Current Password "),u.j41(13,"span",10),u.EFF(14,"*"),u.k0s()(),u.j41(15,"div",11)(16,"nb-form-field",12),u.nrm(17,"input",13),u.j41(18,"button",14),u.bIt("click",function(){return Be.toggleShowPassword("current_password")}),u.nrm(19,"nb-icon",15),u.k0s()(),u.DNE(20,ro,2,1,"ul",16),u.k0s()(),u.j41(21,"div",8)(22,"label",17),u.EFF(23," New Password "),u.j41(24,"span",10),u.EFF(25,"*"),u.k0s()(),u.j41(26,"div",11)(27,"nb-form-field",12),u.nrm(28,"input",18),u.j41(29,"button",14),u.bIt("click",function(){return Be.toggleShowPassword("new_password")}),u.nrm(30,"nb-icon",15),u.k0s()(),u.DNE(31,Lc,2,1,"ul",16),u.k0s()(),u.j41(32,"div",8)(33,"label",19),u.EFF(34," Confirm Password "),u.j41(35,"span",10),u.EFF(36,"*"),u.k0s()(),u.j41(37,"div",11)(38,"nb-form-field",12),u.nrm(39,"input",20),u.j41(40,"button",14),u.bIt("click",function(){return Be.toggleShowPassword("confirm_password")}),u.nrm(41,"nb-icon",15),u.k0s()(),u.DNE(42,Xl,3,2,"ul",16),u.k0s()(),u.j41(43,"div",21)(44,"button",22),u.bIt("click",function(){return Be.resetForm()}
1),u.EFF(45," Reset "),u.k0s(),u.j41(46,"button",23),u.EFF(47," Update "),u.k0s()()()()()()()()),2&bt&&(u.R7$(9),u.Y8G("formGroup",Be.form),u.R7$(8),u.Y8G("type",Be.is_field_show.current_password?"text":"password")("status",Be.isFieldInvalid("current_password")?"danger":"basic"),u.R7$(2),u.Y8G("icon",Be.is_field_show.current_password?"eye-off-outline":"eye-outline"),u.BMQ("aria-label",Be.is_field_show.current_password?"hide password":"show password"),u.R7$(),u.Y8G("ngIf",Be.isFieldInvalid("current_password")),u.R7$(8),u.Y8G("type",Be.is_field_show.new_password?"text":"password")("status",Be.isFieldInvalid("new_password")?"danger":"basic"),u.R7$(2),u.Y8G("icon",Be.is_field_show.new_password?"eye-off-outline":"eye-outline"),u.BMQ("aria-label",Be.is_field_show.new_password?"hide password":"show password"),u.R7$(),u.Y8G("ngIf",Be.isFieldInvalid("new_password")),u.R7$(8),u.Y8G("type",Be.is_field_show.confirm_password?"text":"password")("status",Be.isFieldInvalid("confirm_password")?"danger":"basic"),u.R7$(2),u.Y8G("icon",Be.is_field_show.confirm_password?"eye-off-outline":"eye-outline"),u.BMQ("aria-label",Be.is_field_show.confirm_password?"hide password":"show password"),u.R7$(),u.Y8G("ngIf",Be.isFieldInvalid("confirm_password")),u.R7$(4),u.Y8G("disabled",Be.form.invalid||Be.new_password.value!==Be.confirm_password.value||Be.is_requesting)("nbSpinner",Be.is_requesting))},dependencies:[qe.bT,xi.qT,xi.me,xi.BC,xi.cb,xi.j4,xi.JD,E.SrT,E.KH5,E.YP2,E.i6h,E.tHu,E.zwc,E.u_9,E.zb0],styles:[".change-password-root[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{width:100%}.change-password-root[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:13.2px;font-weight:500;color:#3c3737}"]})}return Ye})();var qd=bn(69205),Dl=bn(57912);const Vo=[{path:"",children:[{path:"profile",component:gr,canActivate:[qd.w],data:{pri:Dl.l_}},{path:"subscription",component:Vr,canActivate:[qd.w],data:{pri:Dl.l_}},{path:"billing-subscription",component:(()=>{class Ye{static#e=this.\u0275fac=function(bt){return new(bt||Ye)};static#t=this.\u0275cmp=u.VBU({type:Ye,selectors:[["ngx-billing-subscription-new"]],decls:67,vars:0,consts:[[1,"body-style","ipg-transaction-root"],[1,"container"],[1,"row","mb-4"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"page-heading"],["nbButton","","status","success","size","medium",1,"primary-green-btn"],[2,"text-transform","capitalize!important","margin-left","4px"],[1,"col"],[1,"row"],[1,"col-4"],[1,"menu_itam","addones_menu"],[2,"width","100%"],[1,"col-12","d-flex","justify-content-between","align-items-center"],[1,"lable_1"],[1,"col-6","d-flex","justify-content-start","align-items-center"],[1,"page-heading2"],[1,"col-6","d-flex","justify-content-end","align-items-center"],[1,"menu_itam2",2,"margin-left","15px"],["src","../../../../assets/images/setting.png","alt","Description",1,"button_img"],[1,"button_name"],[1,"menu_itam2"],["src","../../../../assets/images/download.png","alt","Description",1,"button_img"],[1,"col","d-flex","flex-column","px-0","list-like-table"],[1,"table-responsive"],[1,"table","table-sm","align-top"]],template:function(bt,Be){1&bt&&(u.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h2",4),u.EFF(5,"Billing and Subscription"),u.k0s(),u.j41(6,"button",5)(7,"span",6),u.EFF(8,"Pause Subscription"),u.k0s()()()(),u.j41(9,"div",2)(10,"div",7)(11,"nb-card")(12,"nb-card-body")(13,"div",8)(14,"div",9)(15,"div",10)(16,"div",11)(17,"div",8)(18,"div",12)(19,"h2",13),u.EFF(20,"Current Plan"),u.k0s(),u.j41(21,"button",5),u.EFF(22," Upgrade Plan "),u.k0s()()()()()()(),u.j41(23,"div",8)(24,"div",14)(25,"h2",15),u.EFF(26," Billing History"),u.k0s()(),u.j41(27,"div",16)(28,"div",17),u.nrm(29,"img",18),u.j41(30,"span",19),u.EFF(31,"Edit Columns"),u.k0s()(),u.j41(32,"div",20),u.nrm(33,"img",21),u.j41(34,"span",19),u.EFF(35,"Export"),u.k0s()()()(),u.j41(36,"div",22)(37,"div",23)(38,"table",24)(39,"thead")(40,"tr")(41,"th"),u.EFF(42,"Description"),u.k0s(),u.j41(43,"th"),u.EFF(44,"Date "),u.k0s(),u.j41(45,"th"),u.EFF(46,"Amount"),u.k0s(),u.j41(47,"th"),u.EFF(48,"Status"),u.k0s(),u.j41(49,"th"),u.EFF(50,"Payment Method"),u.k0s(),u.j41(51,"th"),u.EFF(52,"Action"),u.k0s()()(),u.j41(53,"tbody")(54,"tr")(
155,"td"),u.EFF(56,"Premium Plan"),u.k0s(),u.j41(57,"td"),u.EFF(58,"07/07/2025"),u.k0s(),u.j41(59,"td"),u.EFF(60,"LKR 530.00"),u.k0s(),u.j41(61,"td"),u.EFF(62," Paid"),u.k0s(),u.j41(63,"td"),u.EFF(64,"Visa ****123"),u.k0s(),u.j41(65,"td"),u.EFF(66,"Download Recipt"),u.k0s()()()()()()()()()()()())},dependencies:[E.SrT,E.KH5,E.YP2],styles:[".primary-green-btn[_ngcontent-%COMP%]{background:#052e16!important;text-transform:capitalize!important;font-size:12px}.menu_itam2[_ngcontent-%COMP%]{width:auto;height:36px;padding:10px 15px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;float:right;background:#fff;border:1px solid #D0D5DD;color:#98a2b3}.button_name[_ngcontent-%COMP%]{font-size:12px;line-height:20px;font-weight:400}.button_img[_ngcontent-%COMP%]{width:20px;height:auto;margin-right:6px}.page-heading2[_ngcontent-%COMP%]{font-size:24px;font-weight:500}.lable_1[_ngcontent-%COMP%]{font-size:24px;font-weight:500;line-height:100%}.menu_itam[_ngcontent-%COMP%]{width:100%;height:auto;padding:16px;display:flex;align-items:center;justify-content:start;border:1px solid #98A2B3;border-radius:9px}"]})}return Ye})(),canActivate:[qd.w],data:{pri:Dl.l_}},{path:"change-password",component:$a,canActivate:[qd.w],data:{pri:Dl.l_}}]}];let Xo=(()=>{class Ye{static#e=this.\u0275fac=function(bt){return new(bt||Ye)};static#t=this.\u0275mod=u.$C({type:Ye});static#n=this.\u0275inj=u.G2t({imports:[Bi.iI.forChild(Vo),Bi.iI]})}return Ye})();var as=bn(14972);let os=(()=>{class Ye{static#e=this.\u0275fac=function(bt){return new(bt||Ye)};static#t=this.\u0275mod=u.$C({type:Ye});static#n=this.\u0275inj=u.G2t({imports:[Ie.O,xi.YN,xi.X1,ie.Ui,Xo,jn.dV,E.lVF,as.sN,E.P5N,E.pty,E.clu,E.gYs,E.AfG,E.NeG,E.VcP,E.iEK,sn.ed,E.jVr]})}return Ye})()},89063:(ys,Ha,bn)=>{"use strict";bn.r(Ha),bn.d(Ha,{MiscellaneousModule:()=>Tn});var E=bn(88928),Ie=bn(76984),xi=bn(95633),ie=bn(93953);const tn=[{path:"",component:(()=>{class qe{static#e=this.\u0275fac=function(wt){return new(wt||qe)};static#t=this.\u0275cmp=ie.VBU({type:qe,selectors:[["ngx-miscellaneous"]],decls:1,vars:0,template:function(wt,Wn){1&wt&&ie.nrm(0,"router-outlet")},dependencies:[xi.n3],encapsulation:2})}return qe})(),children:[{path:"404",component:bn(30960).X}]}];let e=(()=>{class qe{static#e=this.\u0275fac=function(wt){return new(wt||qe)};static#t=this.\u0275mod=ie.$C({type:qe});static#n=this.\u0275inj=ie.G2t({imports:[xi.iI.forChild(tn),xi.iI]})}return qe})(),Tn=(()=>{class qe{static#e=this.\u0275fac=function(wt){return new(wt||qe)};static#t=this.\u0275mod=ie.$C({type:qe});static#n=this.\u0275inj=ie.G2t({imports:[Ie.O,E.lVF,E.P5N,e]})}return qe})()},776:(ys,Ha,bn)=>{"use strict";bn.r(Ha),bn.d(Ha,{PagesModule:()=>PI});var E=bn(88928),Ie=bn(76984),xi=bn(62796),ie=bn(89417),Bi=bn(85013),u=bn(63273),tn=bn(14972),e=bn(93953);let Tn=(()=>{class n{static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({imports:[ie.YN,Ie.O,E.lVF,E.Mif,E.P5N,E.AfG,E._A2,E.iyp,E.VcP,E.PD_,E.clu,E.P5N,E.gYs,u.dV,tn.sN]})}return n})();var qe=bn(95633);parseInt(localStorage.getItem("sub_user"),10);const Pn=[{title:"Transactions",group:!0},{title:"Home",icon:"home-outline",link:"/pages/dashboard",home:!0},{title:"Payments",icon:"shopping-bag-outline",children:[{title:"Payment Links",link:"/pages/payment-links"},{title:"Invoice",link:"/pages/manage-invoice"},{title:"Payment Page",children:[{title:"Create Page",link:"/pages/payment-page/payment-page-create"},{title:"Create Items",link:"/pages/payment-page/payment-page-items"},{title:"Report",link:"/pages/paymentpage-reports"}]}]},{title:"Payouts",icon:"credit-card-outline",link:"/pages/payouts"},{title:"Refund Request",icon:"link-2-outline",link:"/pages/transaction-requests"},{title:"Reportings",group:!0},{title:"Reports",icon:"clock-outline",children:[{title:"Transaction History Reports",link:"/pages/transaction-history/ipg-transaction"},{title:"Settlement Reports",link:"/pages/transaction-history/settlement-report"}]},{title:"Installment plan",icon:"list-outline",link:"/pages/instalment-plans",home:!0},{title:"Discounts",icon:"percent-outline",link:"/pages/discounts",home:!0},{title:"Settings and privacy",group:!0}
1,{title:"Account Settings",icon:"people-outline",children:[{title:"Profile Settings",link:"/pages/account-settings/profile"},{title:"User Managemet",link:"/pages/user-management"},{title:"Billing and Subscription",link:"/pages/account-settings/subscription"},{title:"Change Password",link:"/pages/account-settings/change-password"},{title:"Subscription & Emails",link:"/pages/subscription-email"}]},{title:"Developer Configurations",icon:"map-outline",children:[{title:"IPG Apps",link:"/pages/developer-configurations/ipg-apps"}]}];var wt=bn(46369);let Wn=(()=>{class n{constructor(t,r,i,s,p){this.elRef=t,this.renderer=r,this.menuService=i,this.sidebarService=s,this.router=p;const g=0!==parseInt(localStorage.getItem("sub_user"),10);this.menu=Pn.map(S=>({...S,hidden:"Refund Request"===S.title||"User Management"===S.title?g:S.hidden}))}ngOnInit(){}toggleMenu(){}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(E.BgA),e.rXU(E.OF4),e.rXU(qe.Ix))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-pages"]],decls:3,vars:1,consts:[[3,"items"]],template:function(r,i){1&r&&(e.j41(0,"ngx-one-column-layout"),e.nrm(1,"nb-menu",0)(2,"router-outlet"),e.k0s()),2&r&&(e.R7$(),e.Y8G("items",i.menu))},dependencies:[wt.i,qe.n3,E.pKh],styles:['\n\n\n\n@font-face{font-family:
1FontAwesome;src:url(fontawesome-webfont.2b13baa7dd4f54c9.eot?v=4.7.0);src:url(fontawesome-webfont.2b13baa7dd4f54c9.eot?#iefix&v=4.7.0) format("embedded-opentype"),url(fontawesome-webfont.e9955780856cf8aa.woff2?v=4.7.0) format("woff2"),url(fontawesome-webfont.cf011583fb81df9f.woff?v=4.7.0) format("woff"),url(fontawesome-webfont.8a7cb27d142e3e19.ttf?v=4.7.0) format("truetype"),url(fontawesome-webfont.da909aa098b0ee2d.svg?v=4.7.0#fontawesomeregular) format("svg");font-weight:400;font-style:normal}.fa[_ngcontent-%COMP%]{display:inline-block;font: 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg[_ngcontent-%COMP%]{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x[_ngcontent-%COMP%]{font-size:2em}.fa-3x[_ngcontent-%COMP%]{font-size:3em}.fa-4x[_ngcontent-%COMP%]{font-size:4em}.fa-5x[_ngcontent-%COMP%]{font-size:5em}.fa-fw[_ngcontent-%COMP%]{width:1.28571429em;text-align:center}.fa-ul[_ngcontent-%COMP%]{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative}.fa-li[_ngcontent-%COMP%]{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg[_ngcontent-%COMP%]{left:-1.85714286em}.fa-border[_ngcontent-%COMP%]{padding:.2em .25em .15em;border:solid .08em #eeeeee;border-radius:.1em}.fa-pull-left[_ngcontent-%COMP%]{float:left}.fa-pull-right[_ngcontent-%COMP%]{float:right}.fa.fa-pull-left[_ngcontent-%COMP%]{margin-right:.3em}.fa.fa-pull-right[_ngcontent-%COMP%]{margin-left:.3em}.pull-right[_ngcontent-%COMP%]{float:right}.pull-left[_ngcontent-%COMP%]{float:left}.fa.pull-left[_ngcontent-%COMP%]{margin-right:.3em}.fa.pull-right[_ngcontent-%COMP%]{margin-left:.3em}.fa-spin[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fa-spin 2s infinite linear}.fa-pulse[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fa-spin 1s infinite steps(8)}@keyframes _ngcontent-%COMP%_fa-spin{0%{transform:rotate(0)}to{transform:rotate(359deg)}}.fa-rotate-90[_ngcontent-%COMP%]{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";transform:rotate(90deg)}.fa-rotate-180[_ngcontent-%COMP%]{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";transform:rotate(180deg)}.fa-rotate-270[_ngcontent-%COMP%]{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";transform:rotate(270deg)}.fa-flip-horizontal[_ngcontent-%COMP%]{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";transform:scaleX(-1)}.fa-flip-vertical[_ngcontent-%COMP%]{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";transform:scaleY(-1)}[_ngcontent-%COMP%]:root .fa-rotate-90[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root .fa-rotate-180[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root .fa-rotate-270[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root .fa-flip-horizontal[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root .fa-flip-vertical[_ngcontent-%COMP%]{filter:none}.fa-stack[_ngcontent-%COMP%]{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x[_ngcontent-%COMP%], .fa-stack-2x[_ngcontent-%COMP%]{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x[_ngcontent-%COMP%]{line-height:inherit}.fa-stack-2x[_ngcontent-%COMP%]{font-size:2em}.fa-inverse[_ngcontent-%COMP%]{color:#fff}.fa-glass[_ngcontent-%COMP%]:before{content:"\\f000"}.fa-music[_ngcontent-%COMP%]:before{content:"\\f001"}.fa-search[_ngcontent-%COMP%]:before{content:"\\f002"}.fa-envelope-o[_ngcontent-%COMP%]:before{content:"\\f003"}.fa-heart[_ngcontent-%COMP%]:before{content:"\\f004"}.fa-star[_ngcontent-%COMP%]:before{content:"\\f005"}.fa-star-o[_ngcontent-%COMP%]:before{content:"\\f006"}.fa-user[_ngcontent-%COMP%]:before{content:"\\f007"}.fa-film[_ngcontent-%COMP%]:before{content:"\\f008"}.fa-th-large[_ngcontent-%COMP%]:before{content:"\\f009"}.fa-th[_ngcontent-%COMP%]:before{content:"\\f00a"}.fa-th-list[_ngcontent-%COMP%]:before{content:"\\f00b"}.fa-check[_ngcontent-%COMP%]:before{content:"\\f00c"}.fa-remove[_ngcontent-%COMP%]:before, .fa-close[_ngcontent-%COMP%]:before, .fa-times[_ngcontent-%COMP%]:before{content:"\\f00d"}.fa-search-plus[_ngcontent-%COMP%]:before{content:"\\f00e"}.fa-search-minus[_ngcontent-%COMP%]:before{content:"\\f010"}.fa-power-off[_ngcontent-%COMP%]:before{content:"\\f011"}.fa-signal[_ngcontent-%COMP%]:before{content:"\\f012"}
1.fa-gear[_ngcontent-%COMP%]:before, .fa-cog[_ngcontent-%COMP%]:before{content:"\\f013"}.fa-trash-o[_ngcontent-%COMP%]:before{content:"\\f014"}.fa-home[_ngcontent-%COMP%]:before{content:"\\f015"}.fa-file-o[_ngcontent-%COMP%]:before{content:"\\f016"}.fa-clock-o[_ngcontent-%COMP%]:before{content:"\\f017"}.fa-road[_ngcontent-%COMP%]:before{content:"\\f018"}.fa-download[_ngcontent-%COMP%]:before{content:"\\f019"}.fa-arrow-circle-o-down[_ngcontent-%COMP%]:before{content:"\\f01a"}.fa-arrow-circle-o-up[_ngcontent-%COMP%]:before{content:"\\f01b"}.fa-inbox[_ngcontent-%COMP%]:before{content:"\\f01c"}.fa-play-circle-o[_ngcontent-%COMP%]:before{content:"\\f01d"}.fa-rotate-right[_ngcontent-%COMP%]:before, .fa-repeat[_ngcontent-%COMP%]:before{content:"\\f01e"}.fa-refresh[_ngcontent-%COMP%]:before{content:"\\f021"}.fa-list-alt[_ngcontent-%COMP%]:before{content:"\\f022"}.fa-lock[_ngcontent-%COMP%]:before{content:"\\f023"}.fa-flag[_ngcontent-%COMP%]:before{content:"\\f024"}.fa-headphones[_ngcontent-%COMP%]:before{content:"\\f025"}.fa-volume-off[_ngcontent-%COMP%]:before{content:"\\f026"}.fa-volume-down[_ngcontent-%COMP%]:before{content:"\\f027"}.fa-volume-up[_ngcontent-%COMP%]:before{content:"\\f028"}.fa-qrcode[_ngcontent-%COMP%]:before{content:"\\f029"}.fa-barcode[_ngcontent-%COMP%]:before{content:"\\f02a"}.fa-tag[_ngcontent-%COMP%]:before{content:"\\f02b"}.fa-tags[_ngcontent-%COMP%]:before{content:"\\f02c"}.fa-book[_ngcontent-%COMP%]:before{content:"\\f02d"}.fa-bookmark[_ngcontent-%COMP%]:before{content:"\\f02e"}.fa-print[_ngcontent-%COMP%]:before{content:"\\f02f"}.fa-camera[_ngcontent-%COMP%]:before{content:"\\f030"}.fa-font[_ngcontent-%COMP%]:before{content:"\\f031"}.fa-bold[_ngcontent-%COMP%]:before{content:"\\f032"}.fa-italic[_ngcontent-%COMP%]:before{content:"\\f033"}.fa-text-height[_ngcontent-%COMP%]:before{content:"\\f034"}.fa-text-width[_ngcontent-%COMP%]:before{content:"\\f035"}.fa-align-left[_ngcontent-%COMP%]:before{content:"\\f036"}.fa-align-center[_ngcontent-%COMP%]:before{content:"\\f037"}.fa-align-right[_ngcontent-%COMP%]:before{content:"\\f038"}.fa-align-justify[_ngcontent-%COMP%]:before{content:"\\f039"}.fa-list[_ngcontent-%COMP%]:before{content:"\\f03a"}
1.fa-dedent[_ngcontent-%COMP%]:before, .fa-outdent[_ngcontent-%COMP%]:before{content:"\\f03b"}.fa-indent[_ngcontent-%COMP%]:before{content:"\\f03c"}.fa-video-camera[_ngcontent-%COMP%]:before{content:"\\f03d"}.fa-photo[_ngcontent-%COMP%]:before, .fa-image[_ngcontent-%COMP%]:before, .fa-picture-o[_ngcontent-%COMP%]:before{content:"\\f03e"}.fa-pencil[_ngcontent-%COMP%]:before{content:"\\f040"}.fa-map-marker[_ngcontent-%COMP%]:before{content:"\\f041"}.fa-adjust[_ngcontent-%COMP%]:before{content:"\\f042"}.fa-tint[_ngcontent-%COMP%]:before{content:"\\f043"}.fa-edit[_ngcontent-%COMP%]:before, .fa-pencil-square-o[_ngcontent-%COMP%]:before{content:"\\f044"}.fa-share-square-o[_ngcontent-%COMP%]:before{content:"\\f045"}.fa-check-square-o[_ngcontent-%COMP%]:before{content:"\\f046"}.fa-arrows[_ngcontent-%COMP%]:before{content:"\\f047"}.fa-step-backward[_ngcontent-%COMP%]:before{content:"\\f048"}.fa-fast-backward[_ngcontent-%COMP%]:before{content:"\\f049"}.fa-backward[_ngcontent-%COMP%]:before{content:"\\f04a"}.fa-play[_ngcontent-%COMP%]:before{content:"\\f04b"}.fa-pause[_ngcontent-%COMP%]:before{content:"\\f04c"}.fa-stop[_ngcontent-%COMP%]:before{content:"\\f04d"}.fa-forward[_ngcontent-%COMP%]:before{content:"\\f04e"}.fa-fast-forward[_ngcontent-%COMP%]:before{content:"\\f050"}.fa-step-forward[_ngcontent-%COMP%]:before{content:"\\f051"}.fa-eject[_ngcontent-%COMP%]:before{content:"\\f052"}.fa-chevron-left[_ngcontent-%COMP%]:before{content:"\\f053"}.fa-chevron-right[_ngcontent-%COMP%]:before{content:"\\f054"}.fa-plus-circle[_ngcontent-%COMP%]:before{content:"\\f055"}.fa-minus-circle[_ngcontent-%COMP%]:before{content:"\\f056"}.fa-times-circle[_ngcontent-%COMP%]:before{content:"\\f057"}.fa-check-circle[_ngcontent-%COMP%]:before{content:"\\f058"}.fa-question-circle[_ngcontent-%COMP%]:before{content:"\\f059"}.fa-info-circle[_ngcontent-%COMP%]:before{content:"\\f05a"}.fa-crosshairs[_ngcontent-%COMP%]:before{content:"\\f05b"}.fa-times-circle-o[_ngcontent-%COMP%]:before{content:"\\f05c"}.fa-check-circle-o[_ngcontent-%COMP%]:before{content:"\\f05d"}.fa-ban[_ngcontent-%COMP%]:before{content:"\\f05e"}.fa-arrow-left[_ngcontent-%COMP%]:before{content:"\\f060"}.fa-arrow-right[_ngcontent-%COMP%]:before{content:"\\f061"}.fa-arrow-up[_ngcontent-%COMP%]:before{content:"\\f062"}.fa-arrow-down[_ngcontent-%COMP%]:before{content:"\\f063"}.fa-mail-forward[_ngcontent-%COMP%]:before, .fa-share[_ngcontent-%COMP%]:before{content:"\\f064"}.fa-expand[_ngcontent-%COMP%]:before{content:"\\f065"}.fa-compress[_ngcontent-%COMP%]:before{content:"\\f066"}.fa-plus[_ngcontent-%COMP%]:before{content:"\\f067"}.fa-minus[_ngcontent-%COMP%]:before{content:"\\f068"}.fa-asterisk[_ngcontent-%COMP%]:before{content:"\\f069"}.fa-exclamation-circle[_ngcontent-%COMP%]:before{content:"\\f06a"}.fa-gift[_ngcontent-%COMP%]:before{content:"\\f06b"}.fa-leaf[_ngcontent-%COMP%]:before{content:"\\f06c"}.fa-fire[_ngcontent-%COMP%]:before{content:"\\f06d"}.fa-eye[_ngcontent-%COMP%]:before{content:"\\f06e"}.fa-eye-slash[_ngcontent-%COMP%]:before{content:"\\f070"}.fa-warning[_ngcontent-%COMP%]:before, .fa-exclamation-triangle[_ngcontent-%COMP%]:before{content:"\\f071"}.fa-plane[_ngcontent-%COMP%]:before{content:"\\f072"}.fa-calendar[_ngcontent-%COMP%]:before{content:"\\f073"}.fa-random[_ngcontent-%COMP%]:before{content:"\\f074"}.fa-comment[_ngcontent-%COMP%]:before{content:"\\f075"}.fa-magnet[_ngcontent-%COMP%]:before{content:"\\f076"}.fa-chevron-up[_ngcontent-%COMP%]:before{content:"\\f077"}.fa-chevron-down[_ngcontent-%COMP%]:before{content:"\\f078"}.fa-retweet[_ngcontent-%COMP%]:before{content:"\\f079"}.fa-shopping-cart[_ngcontent-%COMP%]:before{content:"\\f07a"}.fa-folder[_ngcontent-%COMP%]:before{content:"\\f07b"}.fa-folder-open[_ngcontent-%COMP%]:before{content:"\\f07c"}.fa-arrows-v[_ngcontent-%COMP%]:before{content:"\\f07d"}.fa-arrows-h[_ngcontent-%COMP%]:before{content:"\\f07e"}.fa-bar-chart-o[_ngcontent-%COMP%]:before, .fa-bar-chart[_ngcontent-%COMP%]:before{content:"\\f080"}.fa-twitter-square[_ngcontent-%COMP%]:before{content:"\\f081"}.fa-facebook-square[_ngcontent-%COMP%]:before{content:"\\f082"}.fa-camera-retro[_ngcontent-%COMP%]:before{content:"\\f083"}.fa-key[_ngcontent-%COMP%]:before{content:"\\f084"}.fa-gears[_ngcontent-%COMP%]:before, .fa-cogs[_ngcontent-%COMP%]:before{content:"\\f085"}.fa-comments[_ngcontent-%COMP%]:before{content:"\\f086"}.fa-thumbs-o-up[_ngcontent-%COMP%]:before{content:"\\f087"}.fa-thumbs-o-down[_ngcontent-%COMP%]:before{content:"\\f088"}.fa-star-half[_ngcontent-%COMP%]:before{content:"\\f089"}.fa-heart-o[_ngcontent-%COMP%]:before{content:"\\f08a"}.fa-sign-out[_ngcontent-%COMP%]:before{content:"\\f08b"}.fa-linkedin-square[_ngcontent-%COMP%]:before{content:"\\f08c"}.fa-thumb-tack[_ngcontent-%COMP%]:before{content:"\\f08d"}.fa-external-link[_ngcontent-%COMP%]:before{content:"\\f08e"}.fa-sign-in[_ngcontent-%COMP%]:before{content:"\\f090"}.fa-trophy[_ngcontent-%COMP%]:before{content:"\\f091"}.fa-github-square[_ngcontent-%COMP%]:before{content:"\\f092"}.fa-upload[_ngcontent-%COMP%]:before{content:"\\f093"}.fa-lemon-o[_ngcontent-%COMP%]:before{content:"\\f094"}.fa-phone[_ngcontent-%COMP%]:before{content:"\\f095"}.fa-square-o[_ngcontent-%COMP%]:before{content:"\\f096"}.fa-bookmark-o[_ngcontent-%COMP%]:before{content:"\\f097"}.fa-phone-square[_ngcontent-%COMP%]:before{content:"\\f098"}.fa-twitter[_ngcontent-%COMP%]:before{content:"\\f099"}.fa-facebook-f[_ngcontent-%COMP%]:before, .fa-facebook[_ngcontent-%COMP%]:before{content:"\\f09a"}.fa-github[_ngcontent-%COMP%]:before{content:"\\f09b"}.fa-unlock[_ngcontent-%COMP%]:before{content:"\\f09c"}.fa-credit-card[_ngcontent-%COMP%]:before{content:"\\f09d"}.fa-feed[_ngcontent-%COMP%]:before, .fa-rss[_ngcontent-%COMP%]:before{content:"\\f09e"}.fa-hdd-o[_ngcontent-%COMP%]:before{content:"\\f0a0"}.fa-bullhorn[_ngcontent-%COMP%]:before{content:"\\f0a1"}.fa-bell[_ngcontent-%COMP%]:before{content:"\\f0f3"}.fa-certificate[_ngcontent-%COMP%]:before{content:"\\f0a3"}.fa-hand-o-right[_ngcontent-%COMP%]:before{content:"\\f0a4"}.fa-hand-o-left[_ngcontent-%COMP%]:before{content:"\\f0a5"}.fa-hand-o-up[_ngcontent-%COMP%]:before{content:"\\f0a6"}.fa-hand-o-down[_ngcontent-%COMP%]:before{content:"\\f0a7"}.fa-arrow-circle-left[_ngcontent-%COMP%]:before{content:"\\f0a8"}.fa-arrow-circle-right[_ngcontent-%COMP%]:before{content:"\\f0a9"}.fa-arrow-circle-up[_ngcontent-%COMP%]:before{content:"\\f0aa"}.fa-arrow-circle-down[_ngcontent-%COMP%]:before{content:"\\f0ab"}.fa-globe[_ngcontent-%COMP%]:before{content:"\\f0ac"}.fa-wrench[_ngcontent-%COMP%]:before{content:"\\f0ad"}.fa-tasks[_ngcontent-%COMP%]:before{content:"\\f0ae"}.fa-filter[_ngcontent-%COMP%]:before{content:"\\f0b0"}.fa-briefcase[_ngcontent-%COMP%]:before{content:"\\f0b1"}.fa-arrows-alt[_ngcontent-%COMP%]:before{content:"\\f0b2"}.fa-group[_ngcontent-%COMP%]:before, .fa-users[_ngcontent-%COMP%]:before{content:"\\f0c0"}.fa-chain[_ngcontent-%COMP%]:before, .fa-link[_ngcontent-%COMP%]:before{content:"\\f0c1"}.fa-cloud[_ngcontent-%COMP%]:before{content:"\\f0c2"}.fa-flask[_ngcontent-%COMP%]:before{content:"\\f0c3"}.fa-cut[_ngcontent-%COMP%]:before, .fa-scissors[_ngcontent-%COMP%]:before{content:"\\f0c4"}.fa-copy[_ngcontent-%COMP%]:before, .fa-files-o[_ngcontent-%COMP%]:before{content:"\\f0c5"}.fa-paperclip[_ngcontent-%COMP%]:before{content:"\\f0c6"}.fa-save[_ngcontent-%COMP%]:before, .fa-floppy-o[_ngcontent-%COMP%]:before{content:"\\f0c7"}.fa-square[_ngcontent-%COMP%]:before{content:"\\f0c8"}.fa-navicon[_ngcontent-%COMP%]:before, .fa-reorder[_ngcontent-%COMP%]:before, .fa-bars[_ngcontent-%COMP%]:before{content:"\\f0c9"}
1.fa-list-ul[_ngcontent-%COMP%]:before{content:"\\f0ca"}.fa-list-ol[_ngcontent-%COMP%]:before{content:"\\f0cb"}.fa-strikethrough[_ngcontent-%COMP%]:before{content:"\\f0cc"}.fa-underline[_ngcontent-%COMP%]:before{content:"\\f0cd"}.fa-table[_ngcontent-%COMP%]:before{content:"\\f0ce"}.fa-magic[_ngcontent-%COMP%]:before{content:"\\f0d0"}.fa-truck[_ngcontent-%COMP%]:before{content:"\\f0d1"}.fa-pinterest[_ngcontent-%COMP%]:before{content:"\\f0d2"}.fa-pinterest-square[_ngcontent-%COMP%]:before{content:"\\f0d3"}.fa-google-plus-square[_ngcontent-%COMP%]:before{content:"\\f0d4"}.fa-google-plus[_ngcontent-%COMP%]:before{content:"\\f0d5"}.fa-money[_ngcontent-%COMP%]:before{content:"\\f0d6"}.fa-caret-down[_ngcontent-%COMP%]:before{content:"\\f0d7"}.fa-caret-up[_ngcontent-%COMP%]:before{content:"\\f0d8"}.fa-caret-left[_ngcontent-%COMP%]:before{content:"\\f0d9"}.fa-caret-right[_ngcontent-%COMP%]:before{content:"\\f0da"}.fa-columns[_ngcontent-%COMP%]:before{content:"\\f0db"}.fa-unsorted[_ngcontent-%COMP%]:before, .fa-sort[_ngcontent-%COMP%]:before{content:"\\f0dc"}.fa-sort-down[_ngcontent-%COMP%]:before, .fa-sort-desc[_ngcontent-%COMP%]:before{content:"\\f0dd"}.fa-sort-up[_ngcontent-%COMP%]:before, .fa-sort-asc[_ngcontent-%COMP%]:before{content:"\\f0de"}.fa-envelope[_ngcontent-%COMP%]:before{content:"\\f0e0"}.fa-linkedin[_ngcontent-%COMP%]:before{content:"\\f0e1"}.fa-rotate-left[_ngcontent-%COMP%]:before, .fa-undo[_ngcontent-%COMP%]:before{content:"\\f0e2"}.fa-legal[_ngcontent-%COMP%]:before, .fa-gavel[_ngcontent-%COMP%]:before{content:"\\f0e3"}.fa-dashboard[_ngcontent-%COMP%]:before, .fa-tachometer[_ngcontent-%COMP%]:before{content:"\\f0e4"}.fa-comment-o[_ngcontent-%COMP%]:before{content:"\\f0e5"}.fa-comments-o[_ngcontent-%COMP%]:before{content:"\\f0e6"}.fa-flash[_ngcontent-%COMP%]:before, .fa-bolt[_ngcontent-%COMP%]:before{content:"\\f0e7"}.fa-sitemap[_ngcontent-%COMP%]:before{content:"\\f0e8"}.fa-umbrella[_ngcontent-%COMP%]:before{content:"\\f0e9"}.fa-paste[_ngcontent-%COMP%]:before, .fa-clipboard[_ngcontent-%COMP%]:before{content:"\\f0ea"}.fa-lightbulb-o[_ngcontent-%COMP%]:before{content:"\\f0eb"}.fa-exchange[_ngcontent-%COMP%]:before{content:"\\f0ec"}.fa-cloud-download[_ngcontent-%COMP%]:before{content:"\\f0ed"}.fa-cloud-upload[_ngcontent-%COMP%]:before{content:"\\f0ee"}.fa-user-md[_ngcontent-%COMP%]:before{content:"\\f0f0"}.fa-stethoscope[_ngcontent-%COMP%]:before{content:"\\f0f1"}.fa-suitcase[_ngcontent-%COMP%]:before{content:"\\f0f2"}.fa-bell-o[_ngcontent-%COMP%]:before{content:"\\f0a2"}.fa-coffee[_ngcontent-%COMP%]:before{content:"\\f0f4"}.fa-cutlery[_ngcontent-%COMP%]:before{content:"\\f0f5"}.fa-file-text-o[_ngcontent-%COMP%]:before{content:"\\f0f6"}.fa-building-o[_ngcontent-%COMP%]:before{content:"\\f0f7"}.fa-hospital-o[_ngcontent-%COMP%]:before{content:"\\f0f8"}.fa-ambulance[_ngcontent-%COMP%]:before{content:"\\f0f9"}.fa-medkit[_ngcontent-%COMP%]:before{content:"\\f0fa"}.fa-fighter-jet[_ngcontent-%COMP%]:before{content:"\\f0fb"}.fa-beer[_ngcontent-%COMP%]:before{content:"\\f0fc"}.fa-h-square[_ngcontent-%COMP%]:before{content:"\\f0fd"}.fa-plus-square[_ngcontent-%COMP%]:before{content:"\\f0fe"}.fa-angle-double-left[_ngcontent-%COMP%]:before{content:"\\f100"}.fa-angle-double-right[_ngcontent-%COMP%]:before{content:"\\f101"}.fa-angle-double-up[_ngcontent-%COMP%]:before{content:"\\f102"}.fa-angle-double-down[_ngcontent-%COMP%]:before{content:"\\f103"}.fa-angle-left[_ngcontent-%COMP%]:before{content:"\\f104"}.fa-angle-right[_ngcontent-%COMP%]:before{content:"\\f105"}.fa-angle-up[_ngcontent-%COMP%]:before{content:"\\f106"}.fa-angle-down[_ngcontent-%COMP%]:before{content:"\\f107"}.fa-desktop[_ngcontent-%COMP%]:before{content:"\\f108"}.fa-laptop[_ngcontent-%COMP%]:before{content:"\\f109"}.fa-tablet[_ngcontent-%COMP%]:before{content:"\\f10a"}.fa-mobile-phone[_ngcontent-%COMP%]:before, .fa-mobile[_ngcontent-%COMP%]:before{content:"\\f10b"}.fa-circle-o[_ngcontent-%COMP%]:before{content:"\\f10c"}.fa-quote-left[_ngcontent-%COMP%]:before{content:"\\f10d"}.fa-quote-right[_ngcontent-%COMP%]:before{content:"\\f10e"}.fa-spinner[_ngcontent-%COMP%]:before{content:"\\f110"}
1.fa-circle[_ngcontent-%COMP%]:before{content:"\\f111"}.fa-mail-reply[_ngcontent-%COMP%]:before, .fa-reply[_ngcontent-%COMP%]:before{content:"\\f112"}.fa-github-alt[_ngcontent-%COMP%]:before{content:"\\f113"}.fa-folder-o[_ngcontent-%COMP%]:before{content:"\\f114"}.fa-folder-open-o[_ngcontent-%COMP%]:before{content:"\\f115"}.fa-smile-o[_ngcontent-%COMP%]:before{content:"\\f118"}.fa-frown-o[_ngcontent-%COMP%]:before{content:"\\f119"}.fa-meh-o[_ngcontent-%COMP%]:before{content:"\\f11a"}.fa-gamepad[_ngcontent-%COMP%]:before{content:"\\f11b"}.fa-keyboard-o[_ngcontent-%COMP%]:before{content:"\\f11c"}.fa-flag-o[_ngcontent-%COMP%]:before{content:"\\f11d"}.fa-flag-checkered[_ngcontent-%COMP%]:before{content:"\\f11e"}.fa-terminal[_ngcontent-%COMP%]:before{content:"\\f120"}.fa-code[_ngcontent-%COMP%]:before{content:"\\f121"}.fa-mail-reply-all[_ngcontent-%COMP%]:before, .fa-reply-all[_ngcontent-%COMP%]:before{content:"\\f122"}.fa-star-half-empty[_ngcontent-%COMP%]:before, .fa-star-half-full[_ngcontent-%COMP%]:before, .fa-star-half-o[_ngcontent-%COMP%]:before{content:"\\f123"}.fa-location-arrow[_ngcontent-%COMP%]:before{content:"\\f124"}.fa-crop[_ngcontent-%COMP%]:before{content:"\\f125"}.fa-code-fork[_ngcontent-%COMP%]:before{content:"\\f126"}.fa-unlink[_ngcontent-%COMP%]:before, .fa-chain-broken[_ngcontent-%COMP%]:before{content:"\\f127"}.fa-question[_ngcontent-%COMP%]:before{content:"\\f128"}.fa-info[_ngcontent-%COMP%]:before{content:"\\f129"}.fa-exclamation[_ngcontent-%COMP%]:before{content:"\\f12a"}.fa-superscript[_ngcontent-%COMP%]:before{content:"\\f12b"}.fa-subscript[_ngcontent-%COMP%]:before{content:"\\f12c"}.fa-eraser[_ngcontent-%COMP%]:before{content:"\\f12d"}.fa-puzzle-piece[_ngcontent-%COMP%]:before{content:"\\f12e"}.fa-microphone[_ngcontent-%COMP%]:before{content:"\\f130"}.fa-microphone-slash[_ngcontent-%COMP%]:before{content:"\\f131"}.fa-shield[_ngcontent-%COMP%]:before{content:"\\f132"}.fa-calendar-o[_ngcontent-%COMP%]:before{content:"\\f133"}.fa-fire-extinguisher[_ngcontent-%COMP%]:before{content:"\\f134"}.fa-rocket[_ngcontent-%COMP%]:before{content:"\\f135"}.fa-maxcdn[_ngcontent-%COMP%]:before{content:"\\f136"}.fa-chevron-circle-left[_ngcontent-%COMP%]:before{content:"\\f137"}.fa-chevron-circle-right[_ngcontent-%COMP%]:before{content:"\\f138"}.fa-chevron-circle-up[_ngcontent-%COMP%]:before{content:"\\f139"}.fa-chevron-circle-down[_ngcontent-%COMP%]:before{content:"\\f13a"}.fa-html5[_ngcontent-%COMP%]:before{content:"\\f13b"}.fa-css3[_ngcontent-%COMP%]:before{content:"\\f13c"}.fa-anchor[_ngcontent-%COMP%]:before{content:"\\f13d"}.fa-unlock-alt[_ngcontent-%COMP%]:before{content:"\\f13e"}.fa-bullseye[_ngcontent-%COMP%]:before{content:"\\f140"}.fa-ellipsis-h[_ngcontent-%COMP%]:before{content:"\\f141"}.fa-ellipsis-v[_ngcontent-%COMP%]:before{content:"\\f142"}.fa-rss-square[_ngcontent-%COMP%]:before{content:"\\f143"}.fa-play-circle[_ngcontent-%COMP%]:before{content:"\\f144"}.fa-ticket[_ngcontent-%COMP%]:before{content:"\\f145"}.fa-minus-square[_ngcontent-%COMP%]:before{content:"\\f146"}.fa-minus-square-o[_ngcontent-%COMP%]:before{content:"\\f147"}.fa-level-up[_ngcontent-%COMP%]:before{content:"\\f148"}.fa-level-down[_ngcontent-%COMP%]:before{content:"\\f149"}.fa-check-square[_ngcontent-%COMP%]:before{content:"\\f14a"}.fa-pencil-square[_ngcontent-%COMP%]:before{content:"\\f14b"}.fa-external-link-square[_ngcontent-%COMP%]:before{content:"\\f14c"}.fa-share-square[_ngcontent-%COMP%]:before{content:"\\f14d"}.fa-compass[_ngcontent-%COMP%]:before{content:"\\f14e"}.fa-toggle-down[_ngcontent-%COMP%]:before, .fa-caret-square-o-down[_ngcontent-%COMP%]:before{content:"\\f150"}.fa-toggle-up[_ngcontent-%COMP%]:before, .fa-caret-square-o-up[_ngcontent-%COMP%]:before{content:"\\f151"}.fa-toggle-right[_ngcontent-%COMP%]:before, .fa-caret-square-o-right[_ngcontent-%COMP%]:before{content:"\\f152"}.fa-euro[_ngcontent-%COMP%]:before, .fa-eur[_ngcontent-%COMP%]:before{content:"\\f153"}.fa-gbp[_ngcontent-%COMP%]:before{content:"\\f154"}.fa-dollar[_ngcontent-%COMP%]:before, .fa-usd[_ngcontent-%COMP%]:before{content:"\\f155"}.fa-rupee[_ngcontent-%COMP%]:before, .fa-inr[_ngcontent-%COMP%]:before{content:"\\f156"}.fa-cny[_ngcontent-%COMP%]:before, .fa-rmb[_ngcontent-%COMP%]:before, .fa-yen[_ngcontent-%COMP%]:before, .fa-jpy[_ngcontent-%COMP%]:before{content:"\\f157"}.fa-ruble[_ngcontent-%COMP%]:before, .fa-rouble[_ngcontent-%COMP%]:before, .fa-rub[_ngcontent-%COMP%]:before{content:"\\f158"}.fa-won[_ngcontent-%COMP%]:before, .fa-krw[_ngcontent-%COMP%]:before{content:"\\f159"}.fa-bitcoin[_ngcontent-%COMP%]:before, .fa-btc[_ngcontent-%COMP%]:before{content:"\\f15a"}.fa-file[_ngcontent-%COMP%]:before{content:"\\f15b"}.fa-file-text[_ngcontent-%COMP%]:before{content:"\\f15c"}.fa-sort-alpha-asc[_ngcontent-%COMP%]:before{content:"\\f15d"}.fa-sort-alpha-desc[_ngcontent-%COMP%]:before{content:"\\f15e"}.fa-sort-amount-asc[_ngcontent-%COMP%]:before{content:"\\f160"}.fa-sort-amount-desc[_ngcontent-%COMP%]:before{content:"\\f161"}.fa-sort-numeric-asc[_ngcontent-%COMP%]:before{content:"\\f162"}.fa-sort-numeric-desc[_ngcontent-%COMP%]:before{content:"\\f163"}.fa-thumbs-up[_ngcontent-%COMP%]:before{content:"\\f164"}.fa-thumbs-down[_ngcontent-%COMP%]:before{content:"\\f165"}.fa-youtube-square[_ngcontent-%COMP%]:before{content:"\\f166"}
1.fa-youtube[_ngcontent-%COMP%]:before{content:"\\f167"}.fa-xing[_ngcontent-%COMP%]:before{content:"\\f168"}.fa-xing-square[_ngcontent-%COMP%]:before{content:"\\f169"}.fa-youtube-play[_ngcontent-%COMP%]:before{content:"\\f16a"}.fa-dropbox[_ngcontent-%COMP%]:before{content:"\\f16b"}.fa-stack-overflow[_ngcontent-%COMP%]:before{content:"\\f16c"}.fa-instagram[_ngcontent-%COMP%]:before{content:"\\f16d"}.fa-flickr[_ngcontent-%COMP%]:before{content:"\\f16e"}.fa-adn[_ngcontent-%COMP%]:before{content:"\\f170"}.fa-bitbucket[_ngcontent-%COMP%]:before{content:"\\f171"}.fa-bitbucket-square[_ngcontent-%COMP%]:before{content:"\\f172"}.fa-tumblr[_ngcontent-%COMP%]:before{content:"\\f173"}.fa-tumblr-square[_ngcontent-%COMP%]:before{content:"\\f174"}.fa-long-arrow-down[_ngcontent-%COMP%]:before{content:"\\f175"}.fa-long-arrow-up[_ngcontent-%COMP%]:before{content:"\\f176"}.fa-long-arrow-left[_ngcontent-%COMP%]:before{content:"\\f177"}.fa-long-arrow-right[_ngcontent-%COMP%]:before{content:"\\f178"}.fa-apple[_ngcontent-%COMP%]:before{content:"\\f179"}.fa-windows[_ngcontent-%COMP%]:before{content:"\\f17a"}.fa-android[_ngcontent-%COMP%]:before{content:"\\f17b"}.fa-linux[_ngcontent-%COMP%]:before{content:"\\f17c"}.fa-dribbble[_ngcontent-%COMP%]:before{content:"\\f17d"}.fa-skype[_ngcontent-%COMP%]:before{content:"\\f17e"}.fa-foursquare[_ngcontent-%COMP%]:before{content:"\\f180"}.fa-trello[_ngcontent-%COMP%]:before{content:"\\f181"}.fa-female[_ngcontent-%COMP%]:before{content:"\\f182"}.fa-male[_ngcontent-%COMP%]:before{content:"\\f183"}.fa-gittip[_ngcontent-%COMP%]:before, .fa-gratipay[_ngcontent-%COMP%]:before{content:"\\f184"}.fa-sun-o[_ngcontent-%COMP%]:before{content:"\\f185"}.fa-moon-o[_ngcontent-%COMP%]:before{content:"\\f186"}.fa-archive[_ngcontent-%COMP%]:before{content:"\\f187"}.fa-bug[_ngcontent-%COMP%]:before{content:"\\f188"}.fa-vk[_ngcontent-%COMP%]:before{content:"\\f189"}.fa-weibo[_ngcontent-%COMP%]:before{content:"\\f18a"}.fa-renren[_ngcontent-%COMP%]:before{content:"\\f18b"}.fa-pagelines[_ngcontent-%COMP%]:before{content:"\\f18c"}.fa-stack-exchange[_ngcontent-%COMP%]:before{content:"\\f18d"}.fa-arrow-circle-o-right[_ngcontent-%COMP%]:before{content:"\\f18e"}.fa-arrow-circle-o-left[_ngcontent-%COMP%]:before{content:"\\f190"}.fa-toggle-left[_ngcontent-%COMP%]:before, .fa-caret-square-o-left[_ngcontent-%COMP%]:before{content:"\\f191"}.fa-dot-circle-o[_ngcontent-%COMP%]:before{content:"\\f192"}.fa-wheelchair[_ngcontent-%COMP%]:before{content:"\\f193"}.fa-vimeo-square[_ngcontent-%COMP%]:before{content:"\\f194"}.fa-turkish-lira[_ngcontent-%COMP%]:before, .fa-try[_ngcontent-%COMP%]:before{content:"\\f195"}.fa-plus-square-o[_ngcontent-%COMP%]:before{content:"\\f196"}.fa-space-shuttle[_ngcontent-%COMP%]:before{content:"\\f197"}.fa-slack[_ngcontent-%COMP%]:before{content:"\\f198"}.fa-envelope-square[_ngcontent-%COMP%]:before{content:"\\f199"}.fa-wordpress[_ngcontent-%COMP%]:before{content:"\\f19a"}.fa-openid[_ngcontent-%COMP%]:before{content:"\\f19b"}.fa-institution[_ngcontent-%COMP%]:before, .fa-bank[_ngcontent-%COMP%]:before, .fa-university[_ngcontent-%COMP%]:before{content:"\\f19c"}.fa-mortar-board[_ngcontent-%COMP%]:before, .fa-graduation-cap[_ngcontent-%COMP%]:before{content:"\\f19d"}.fa-yahoo[_ngcontent-%COMP%]:before{content:"\\f19e"}.fa-google[_ngcontent-%COMP%]:before{content:"\\f1a0"}.fa-reddit[_ngcontent-%COMP%]:before{content:"\\f1a1"}.fa-reddit-square[_ngcontent-%COMP%]:before{content:"\\f1a2"}.fa-stumbleupon-circle[_ngcontent-%COMP%]:before{content:"\\f1a3"}.fa-stumbleupon[_ngcontent-%COMP%]:before{content:"\\f1a4"}.fa-delicious[_ngcontent-%COMP%]:before{content:"\\f1a5"}.fa-digg[_ngcontent-%COMP%]:before{content:"\\f1a6"}.fa-pied-piper-pp[_ngcontent-%COMP%]:before{content:"\\f1a7"}.fa-pied-piper-alt[_ngcontent-%COMP%]:before{content:"\\f1a8"}.fa-drupal[_ngcontent-%COMP%]:before{content:"\\f1a9"}.fa-joomla[_ngcontent-%COMP%]:before{content:"\\f1aa"}.fa-language[_ngcontent-%COMP%]:before{content:"\\f1ab"}.fa-fax[_ngcontent-%COMP%]:before{content:"\\f1ac"}.fa-building[_ngcontent-%COMP%]:before{content:"\\f1ad"}.fa-child[_ngcontent-%COMP%]:before{content:"\\f1ae"}.fa-paw[_ngcontent-%COMP%]:before{content:"\\f1b0"}.fa-spoon[_ngcontent-%COMP%]:before{content:"\\f1b1"}.fa-cube[_ngcontent-%COMP%]:before{content:"\\f1b2"}.fa-cubes[_ngcontent-%COMP%]:before{content:"\\f1b3"}.fa-behance[_ngcontent-%COMP%]:before{content:"\\f1b4"}.fa-behance-square[_ngcontent-%COMP%]:before{content:"\\f1b5"}.fa-steam[_ngcontent-%COMP%]:before{content:"\\f1b6"}.fa-steam-square[_ngcontent-%COMP%]:before{content:"\\f1b7"}.fa-recycle[_ngcontent-%COMP%]:before{content:"\\f1b8"}.fa-automobile[_ngcontent-%COMP%]:before, .fa-car[_ngcontent-%COMP%]:before{content:"\\f1b9"}
1.fa-cab[_ngcontent-%COMP%]:before, .fa-taxi[_ngcontent-%COMP%]:before{content:"\\f1ba"}.fa-tree[_ngcontent-%COMP%]:before{content:"\\f1bb"}.fa-spotify[_ngcontent-%COMP%]:before{content:"\\f1bc"}.fa-deviantart[_ngcontent-%COMP%]:before{content:"\\f1bd"}.fa-soundcloud[_ngcontent-%COMP%]:before{content:"\\f1be"}.fa-database[_ngcontent-%COMP%]:before{content:"\\f1c0"}.fa-file-pdf-o[_ngcontent-%COMP%]:before{content:"\\f1c1"}.fa-file-word-o[_ngcontent-%COMP%]:before{content:"\\f1c2"}.fa-file-excel-o[_ngcontent-%COMP%]:before{content:"\\f1c3"}.fa-file-powerpoint-o[_ngcontent-%COMP%]:before{content:"\\f1c4"}.fa-file-photo-o[_ngcontent-%COMP%]:before, .fa-file-picture-o[_ngcontent-%COMP%]:before, .fa-file-image-o[_ngcontent-%COMP%]:before{content:"\\f1c5"}.fa-file-zip-o[_ngcontent-%COMP%]:before, .fa-file-archive-o[_ngcontent-%COMP%]:before{content:"\\f1c6"}.fa-file-sound-o[_ngcontent-%COMP%]:before, .fa-file-audio-o[_ngcontent-%COMP%]:before{content:"\\f1c7"}.fa-file-movie-o[_ngcontent-%COMP%]:before, .fa-file-video-o[_ngcontent-%COMP%]:before{content:"\\f1c8"}.fa-file-code-o[_ngcontent-%COMP%]:before{content:"\\f1c9"}.fa-vine[_ngcontent-%COMP%]:before{content:"\\f1ca"}.fa-codepen[_ngcontent-%COMP%]:before{content:"\\f1cb"}.fa-jsfiddle[_ngcontent-%COMP%]:before{content:"\\f1cc"}.fa-life-bouy[_ngcontent-%COMP%]:before, .fa-life-buoy[_ngcontent-%COMP%]:before, .fa-life-saver[_ngcontent-%COMP%]:before, .fa-support[_ngcontent-%COMP%]:before, .fa-life-ring[_ngcontent-%COMP%]:before{content:"\\f1cd"}.fa-circle-o-notch[_ngcontent-%COMP%]:before{content:"\\f1ce"}.fa-ra[_ngcontent-%COMP%]:before, .fa-resistance[_ngcontent-%COMP%]:before, .fa-rebel[_ngcontent-%COMP%]:before{content:"\\f1d0"}.fa-ge[_ngcontent-%COMP%]:before, .fa-empire[_ngcontent-%COMP%]:before{content:"\\f1d1"}.fa-git-square[_ngcontent-%COMP%]:before{content:"\\f1d2"}.fa-git[_ngcontent-%COMP%]:before{content:"\\f1d3"}.fa-y-combinator-square[_ngcontent-%COMP%]:before, .fa-yc-square[_ngcontent-%COMP%]:before, .fa-hacker-news[_ngcontent-%COMP%]:before{content:"\\f1d4"}.fa-tencent-weibo[_ngcontent-%COMP%]:before{content:"\\f1d5"}.fa-qq[_ngcontent-%COMP%]:before{content:"\\f1d6"}.fa-wechat[_ngcontent-%COMP%]:before, .fa-weixin[_ngcontent-%COMP%]:before{content:"\\f1d7"}.fa-send[_ngcontent-%COMP%]:before, .fa-paper-plane[_ngcontent-%COMP%]:before{content:"\\f1d8"}.fa-send-o[_ngcontent-%COMP%]:before, .fa-paper-plane-o[_ngcontent-%COMP%]:before{content:"\\f1d9"}.fa-history[_ngcontent-%COMP%]:before{content:"\\f1da"}.fa-circle-thin[_ngcontent-%COMP%]:before{content:"\\f1db"}.fa-header[_ngcontent-%COMP%]:before{content:"\\f1dc"}.fa-paragraph[_ngcontent-%COMP%]:before{content:"\\f1dd"}.fa-sliders[_ngcontent-%COMP%]:before{content:"\\f1de"}.fa-share-alt[_ngcontent-%COMP%]:before{content:"\\f1e0"}.fa-share-alt-square[_ngcontent-%COMP%]:before{content:"\\f1e1"}.fa-bomb[_ngcontent-%COMP%]:before{content:"\\f1e2"}.fa-soccer-ball-o[_ngcontent-%COMP%]:before, .fa-futbol-o[_ngcontent-%COMP%]:before{content:"\\f1e3"}.fa-tty[_ngcontent-%COMP%]:before{content:"\\f1e4"}.fa-binoculars[_ngcontent-%COMP%]:before{content:"\\f1e5"}.fa-plug[_ngcontent-%COMP%]:before{content:"\\f1e6"}.fa-slideshare[_ngcontent-%COMP%]:before{content:"\\f1e7"}.fa-twitch[_ngcontent-%COMP%]:before{content:"\\f1e8"}.fa-yelp[_ngcontent-%COMP%]:before{content:"\\f1e9"}.fa-newspaper-o[_ngcontent-%COMP%]:before{content:"\\f1ea"}.fa-wifi[_ngcontent-%COMP%]:before{content:"\\f1eb"}.fa-calculator[_ngcontent-%COMP%]:before{content:"\\f1ec"}.fa-paypal[_ngcontent-%COMP%]:before{content:"\\f1ed"}.fa-google-wallet[_ngcontent-%COMP%]:before{content:"\\f1ee"}.fa-cc-visa[_ngcontent-%COMP%]:before{content:"\\f1f0"}.fa-cc-mastercard[_ngcontent-%COMP%]:before{content:"\\f1f1"}.fa-cc-discover[_ngcontent-%COMP%]:before{content:"\\f1f2"}.fa-cc-amex[_ngcontent-%COMP%]:before{content:"\\f1f3"}.fa-cc-paypal[_ngcontent-%COMP%]:before{content:"\\f1f4"}.fa-cc-stripe[_ngcontent-%COMP%]:before{content:"\\f1f5"}.fa-bell-slash[_ngcontent-%COMP%]:before{content:"\\f1f6"}.fa-bell-slash-o[_ngcontent-%COMP%]:before{content:"\\f1f7"}.fa-trash[_ngcontent-%COMP%]:before{content:"\\f1f8"}.fa-copyright[_ngcontent-%COMP%]:before{content:"\\f1f9"}.fa-at[_ngcontent-%COMP%]:before{content:"\\f1fa"}.fa-eyedropper[_ngcontent-%COMP%]:before{content:"\\f1fb"}.fa-paint-brush[_ngcontent-%COMP%]:before{content:"\\f1fc"}.fa-birthday-cake[_ngcontent-%COMP%]:before{content:"\\f1fd"}.fa-area-chart[_ngcontent-%COMP%]:before{content:"\\f1fe"}.fa-pie-chart[_ngcontent-%COMP%]:before{content:"\\f200"}.fa-line-chart[_ngcontent-%COMP%]:before{content:"\\f201"}.fa-lastfm[_ngcontent-%COMP%]:before{content:"\\f202"}.fa-lastfm-square[_ngcontent-%COMP%]:before{content:"\\f203"}.fa-toggle-off[_ngcontent-%COMP%]:before{content:"\\f204"}.fa-toggle-on[_ngcontent-%COMP%]:before{content:"\\f205"}.fa-bicycle[_ngcontent-%COMP%]:before{content:"\\f206"}.fa-bus[_ngcontent-%COMP%]:before{content:"\\f207"}.fa-ioxhost[_ngcontent-%COMP%]:before{content:"\\f208"}.fa-angellist[_ngcontent-%COMP%]:before{content:"\\f209"}.fa-cc[_ngcontent-%COMP%]:before{content:"\\f20a"}.fa-shekel[_ngcontent-%COMP%]:before, .fa-sheqel[_ngcontent-%COMP%]:before, .fa-ils[_ngcontent-%COMP%]:before{content:"\\f20b"}.fa-meanpath[_ngcontent-%COMP%]:before{content:"\\f20c"}.fa-buysellads[_ngcontent-%COMP%]:before{content:"\\f20d"}.fa-connectdevelop[_ngcontent-%COMP%]:before{content:"\\f20e"}.fa-dashcube[_ngcontent-%COMP%]:before{content:"\\f210"}.fa-forumbee[_ngcontent-%COMP%]:before{content:"\\f211"}.fa-leanpub[_ngcontent-%COMP%]:before{content:"\\f212"}.fa-sellsy[_ngcontent-%COMP%]:before{content:"\\f213"}.fa-shirtsinbulk[_ngcontent-%COMP%]:before{content:"\\f214"}.fa-simplybuilt[_ngcontent-%COMP%]:before{content:"\\f215"}.fa-skyatlas[_ngcontent-%COMP%]:before{content:"\\f216"}.fa-cart-plus[_ngcontent-%COMP%]:before{content:"\\f217"}.fa-cart-arrow-down[_ngcontent-%COMP%]:before{content:"\\f218"}.fa-diamond[_ngcontent-%COMP%]:before{content:"\\f219"}.fa-ship[_ngcontent-%COMP%]:before{content:"\\f21a"}.fa-user-secret[_ngcontent-%COMP%]:before{content:"\\f21b"}.fa-motorcycle[_ngcontent-%COMP%]:before{content:"\\f21c"}
1.fa-street-view[_ngcontent-%COMP%]:before{content:"\\f21d"}.fa-heartbeat[_ngcontent-%COMP%]:before{content:"\\f21e"}.fa-venus[_ngcontent-%COMP%]:before{content:"\\f221"}.fa-mars[_ngcontent-%COMP%]:before{content:"\\f222"}.fa-mercury[_ngcontent-%COMP%]:before{content:"\\f223"}.fa-intersex[_ngcontent-%COMP%]:before, .fa-transgender[_ngcontent-%COMP%]:before{content:"\\f224"}.fa-transgender-alt[_ngcontent-%COMP%]:before{content:"\\f225"}.fa-venus-double[_ngcontent-%COMP%]:before{content:"\\f226"}.fa-mars-double[_ngcontent-%COMP%]:before{content:"\\f227"}.fa-venus-mars[_ngcontent-%COMP%]:before{content:"\\f228"}.fa-mars-stroke[_ngcontent-%COMP%]:before{content:"\\f229"}.fa-mars-stroke-v[_ngcontent-%COMP%]:before{content:"\\f22a"}.fa-mars-stroke-h[_ngcontent-%COMP%]:before{content:"\\f22b"}.fa-neuter[_ngcontent-%COMP%]:before{content:"\\f22c"}.fa-genderless[_ngcontent-%COMP%]:before{content:"\\f22d"}.fa-facebook-official[_ngcontent-%COMP%]:before{content:"\\f230"}.fa-pinterest-p[_ngcontent-%COMP%]:before{content:"\\f231"}.fa-whatsapp[_ngcontent-%COMP%]:before{content:"\\f232"}.fa-server[_ngcontent-%COMP%]:before{content:"\\f233"}.fa-user-plus[_ngcontent-%COMP%]:before{content:"\\f234"}.fa-user-times[_ngcontent-%COMP%]:before{content:"\\f235"}.fa-hotel[_ngcontent-%COMP%]:before, .fa-bed[_ngcontent-%COMP%]:before{content:"\\f236"}.fa-viacoin[_ngcontent-%COMP%]:before{content:"\\f237"}.fa-train[_ngcontent-%COMP%]:before{content:"\\f238"}.fa-subway[_ngcontent-%COMP%]:before{content:"\\f239"}
1.fa-medium[_ngcontent-%COMP%]:before{content:"\\f23a"}.fa-yc[_ngcontent-%COMP%]:before, .fa-y-combinator[_ngcontent-%COMP%]:before{content:"\\f23b"}.fa-optin-monster[_ngcontent-%COMP%]:before{content:"\\f23c"}.fa-opencart[_ngcontent-%COMP%]:before{content:"\\f23d"}.fa-expeditedssl[_ngcontent-%COMP%]:before{content:"\\f23e"}.fa-battery-4[_ngcontent-%COMP%]:before, .fa-battery[_ngcontent-%COMP%]:before, .fa-battery-full[_ngcontent-%COMP%]:before{content:"\\f240"}.fa-battery-3[_ngcontent-%COMP%]:before, .fa-battery-three-quarters[_ngcontent-%COMP%]:before{content:"\\f241"}.fa-battery-2[_ngcontent-%COMP%]:before, .fa-battery-half[_ngcontent-%COMP%]:before{content:"\\f242"}.fa-battery-1[_ngcontent-%COMP%]:before, .fa-battery-quarter[_ngcontent-%COMP%]:before{content:"\\f243"}.fa-battery-0[_ngcontent-%COMP%]:before, .fa-battery-empty[_ngcontent-%COMP%]:before{content:"\\f244"}.fa-mouse-pointer[_ngcontent-%COMP%]:before{content:"\\f245"}.fa-i-cursor[_ngcontent-%COMP%]:before{content:"\\f246"}.fa-object-group[_ngcontent-%COMP%]:before{content:"\\f247"}.fa-object-ungroup[_ngcontent-%COMP%]:before{content:"\\f248"}.fa-sticky-note[_ngcontent-%COMP%]:before{content:"\\f249"}.fa-sticky-note-o[_ngcontent-%COMP%]:before{content:"\\f24a"}.fa-cc-jcb[_ngcontent-%COMP%]:before{content:"\\f24b"}.fa-cc-diners-club[_ngcontent-%COMP%]:before{content:"\\f24c"}.fa-clone[_ngcontent-%COMP%]:before{content:"\\f24d"}.fa-balance-scale[_ngcontent-%COMP%]:before{content:"\\f24e"}.fa-hourglass-o[_ngcontent-%COMP%]:before{content:"\\f250"}.fa-hourglass-1[_ngcontent-%COMP%]:before, .fa-hourglass-start[_ngcontent-%COMP%]:before{content:"\\f251"}.fa-hourglass-2[_ngcontent-%COMP%]:before, .fa-hourglass-half[_ngcontent-%COMP%]:before{content:"\\f252"}.fa-hourglass-3[_ngcontent-%COMP%]:before, .fa-hourglass-end[_ngcontent-%COMP%]:before{content:"\\f253"}.fa-hourglass[_ngcontent-%COMP%]:before{content:"\\f254"}.fa-hand-grab-o[_ngcontent-%COMP%]:before, .fa-hand-rock-o[_ngcontent-%COMP%]:before{content:"\\f255"}.fa-hand-stop-o[_ngcontent-%COMP%]:before, .fa-hand-paper-o[_ngcontent-%COMP%]:before{content:"\\f256"}.fa-hand-scissors-o[_ngcontent-%COMP%]:before{content:"\\f257"}.fa-hand-lizard-o[_ngcontent-%COMP%]:before{content:"\\f258"}.fa-hand-spock-o[_ngcontent-%COMP%]:before{content:"\\f259"}.fa-hand-pointer-o[_ngcontent-%COMP%]:before{content:"\\f25a"}.fa-hand-peace-o[_ngcontent-%COMP%]:before{content:"\\f25b"}.fa-trademark[_ngcontent-%COMP%]:before{content:"\\f25c"}.fa-registered[_ngcontent-%COMP%]:before{content:"\\f25d"}.fa-creative-commons[_ngcontent-%COMP%]:before{content:"\\f25e"}.fa-gg[_ngcontent-%COMP%]:before{content:"\\f260"}.fa-gg-circle[_ngcontent-%COMP%]:before{content:"\\f261"}.fa-tripadvisor[_ngcontent-%COMP%]:before{content:"\\f262"}.fa-odnoklassniki[_ngcontent-%COMP%]:before{content:"\\f263"}.fa-odnoklassniki-square[_ngcontent-%COMP%]:before{content:"\\f264"}.fa-get-pocket[_ngcontent-%COMP%]:before{content:"\\f265"}.fa-wikipedia-w[_ngcontent-%COMP%]:before{content:"\\f266"}.fa-safari[_ngcontent-%COMP%]:before{content:"\\f267"}.fa-chrome[_ngcontent-%COMP%]:before{content:"\\f268"}.fa-firefox[_ngcontent-%COMP%]:before{content:"\\f269"}.fa-opera[_ngcontent-%COMP%]:before{content:"\\f26a"}.fa-internet-explorer[_ngcontent-%COMP%]:before{content:"\\f26b"}.fa-tv[_ngcontent-%COMP%]:before, .fa-television[_ngcontent-%COMP%]:before{content:"\\f26c"}.fa-contao[_ngcontent-%COMP%]:before{content:"\\f26d"}.fa-500px[_ngcontent-%COMP%]:before{content:"\\f26e"}.fa-amazon[_ngcontent-%COMP%]:before{content:"\\f270"}.fa-calendar-plus-o[_ngcontent-%COMP%]:before{content:"\\f271"}.fa-calendar-minus-o[_ngcontent-%COMP%]:before{content:"\\f272"}.fa-calendar-times-o[_ngcontent-%COMP%]:before{content:"\\f273"}.fa-calendar-check-o[_ngcontent-%COMP%]:before{content:"\\f274"}.fa-industry[_ngcontent-%COMP%]:before{content:"\\f275"}.fa-map-pin[_ngcontent-%COMP%]:before{content:"\\f276"}.fa-map-signs[_ngcontent-%COMP%]:before{content:"\\f277"}.fa-map-o[_ngcontent-%COMP%]:before{content:"\\f278"}.fa-map[_ngcontent-%COMP%]:before{content:"\\f279"}.fa-commenting[_ngcontent-%COMP%]:before{content:"\\f27a"}.fa-commenting-o[_ngcontent-%COMP%]:before{content:"\\f27b"}.fa-houzz[_ngcontent-%COMP%]:before{content:"\\f27c"}.fa-vimeo[_ngcontent-%COMP%]:before{content:"\\f27d"}.fa-black-tie[_ngcontent-%COMP%]:before{content:"\\f27e"}.fa-fonticons[_ngcontent-%COMP%]:before{content:"\\f280"}.fa-reddit-alien[_ngcontent-%COMP%]:before{content:"\\f281"}.fa-edge[_ngcontent-%COMP%]:before{content:"\\f282"}.fa-credit-card-alt[_ngcontent-%COMP%]:before{content:"\\f283"}.fa-codiepie[_ngcontent-%COMP%]:before{content:"\\f284"}.fa-modx[_ngcontent-%COMP%]:before{content:"\\f285"}.fa-fort-awesome[_ngcontent-%COMP%]:before{content:"\\f286"}.fa-usb[_ngcontent-%COMP%]:before{content:"\\f287"}.fa-product-hunt[_ngcontent-%COMP%]:before{content:"\\f288"}.fa-mixcloud[_ngcontent-%COMP%]:before{content:"\\f289"}.fa-scribd[_ngcontent-%COMP%]:before{content:"\\f28a"}
1.fa-pause-circle[_ngcontent-%COMP%]:before{content:"\\f28b"}.fa-pause-circle-o[_ngcontent-%COMP%]:before{content:"\\f28c"}.fa-stop-circle[_ngcontent-%COMP%]:before{content:"\\f28d"}.fa-stop-circle-o[_ngcontent-%COMP%]:before{content:"\\f28e"}.fa-shopping-bag[_ngcontent-%COMP%]:before{content:"\\f290"}.fa-shopping-basket[_ngcontent-%COMP%]:before{content:"\\f291"}.fa-hashtag[_ngcontent-%COMP%]:before{content:"\\f292"}.fa-bluetooth[_ngcontent-%COMP%]:before{content:"\\f293"}.fa-bluetooth-b[_ngcontent-%COMP%]:before{content:"\\f294"}.fa-percent[_ngcontent-%COMP%]:before{content:"\\f295"}.fa-gitlab[_ngcontent-%COMP%]:before{content:"\\f296"}.fa-wpbeginner[_ngcontent-%COMP%]:before{content:"\\f297"}.fa-wpforms[_ngcontent-%COMP%]:before{content:"\\f298"}.fa-envira[_ngcontent-%COMP%]:before{content:"\\f299"}.fa-universal-access[_ngcontent-%COMP%]:before{content:"\\f29a"}.fa-wheelchair-alt[_ngcontent-%COMP%]:before{content:"\\f29b"}.fa-question-circle-o[_ngcontent-%COMP%]:before{content:"\\f29c"}.fa-blind[_ngcontent-%COMP%]:before{content:"\\f29d"}.fa-audio-description[_ngcontent-%COMP%]:before{content:"\\f29e"}.fa-volume-control-phone[_ngcontent-%COMP%]:before{content:"\\f2a0"}.fa-braille[_ngcontent-%COMP%]:before{content:"\\f2a1"}.fa-assistive-listening-systems[_ngcontent-%COMP%]:before{content:"\\f2a2"}.fa-asl-interpreting[_ngcontent-%COMP%]:before, .fa-american-sign-language-interpreting[_ngcontent-%COMP%]:before{content:"\\f2a3"}.fa-deafness[_ngcontent-%COMP%]:before, .fa-hard-of-hearing[_ngcontent-%COMP%]:before, .fa-deaf[_ngcontent-%COMP%]:before{content:"\\f2a4"}.fa-glide[_ngcontent-%COMP%]:before{content:"\\f2a5"}.fa-glide-g[_ngcontent-%COMP%]:before{content:"\\f2a6"}.fa-signing[_ngcontent-%COMP%]:before, .fa-sign-language[_ngcontent-%COMP%]:before{content:"\\f2a7"}.fa-low-vision[_ngcontent-%COMP%]:before{content:"\\f2a8"}.fa-viadeo[_ngcontent-%COMP%]:before{content:"\\f2a9"}.fa-viadeo-square[_ngcontent-%COMP%]:before{content:"\\f2aa"}.fa-snapchat[_ngcontent-%COMP%]:before{content:"\\f2ab"}.fa-snapchat-ghost[_ngcontent-%COMP%]:before{content:"\\f2ac"}.fa-snapchat-square[_ngcontent-%COMP%]:before{content:"\\f2ad"}.fa-pied-piper[_ngcontent-%COMP%]:before{content:"\\f2ae"}.fa-first-order[_ngcontent-%COMP%]:before{content:"\\f2b0"}.fa-yoast[_ngcontent-%COMP%]:before{content:"\\f2b1"}.fa-themeisle[_ngcontent-%COMP%]:before{content:"\\f2b2"}.fa-google-plus-circle[_ngcontent-%COMP%]:before, .fa-google-plus-official[_ngcontent-%COMP%]:before{content:"\\f2b3"}.fa-fa[_ngcontent-%COMP%]:before, .fa-font-awesome[_ngcontent-%COMP%]:before{content:"\\f2b4"}.fa-handshake-o[_ngcontent-%COMP%]:before{content:"\\f2b5"}.fa-envelope-open[_ngcontent-%COMP%]:before{content:"\\f2b6"}.fa-envelope-open-o[_ngcontent-%COMP%]:before{content:"\\f2b7"}.fa-linode[_ngcontent-%COMP%]:before{content:"\\f2b8"}.fa-address-book[_ngcontent-%COMP%]:before{content:"\\f2b9"}.fa-address-book-o[_ngcontent-%COMP%]:before{content:"\\f2ba"}.fa-vcard[_ngcontent-%COMP%]:before, .fa-address-card[_ngcontent-%COMP%]:before{content:"\\f2bb"}.fa-vcard-o[_ngcontent-%COMP%]:before, .fa-address-card-o[_ngcontent-%COMP%]:before{content:"\\f2bc"}.fa-user-circle[_ngcontent-%COMP%]:before{content:"\\f2bd"}.fa-user-circle-o[_ngcontent-%COMP%]:before{content:"\\f2be"}.fa-user-o[_ngcontent-%COMP%]:before{content:"\\f2c0"}.fa-id-badge[_ngcontent-%COMP%]:before{content:"\\f2c1"}.fa-drivers-license[_ngcontent-%COMP%]:before, .fa-id-card[_ngcontent-%COMP%]:before{content:"\\f2c2"}.fa-drivers-license-o[_ngcontent-%COMP%]:before, .fa-id-card-o[_ngcontent-%COMP%]:before{content:"\\f2c3"}.fa-quora[_ngcontent-%COMP%]:before{content:"\\f2c4"}.fa-free-code-camp[_ngcontent-%COMP%]:before{content:"\\f2c5"}.fa-telegram[_ngcontent-%COMP%]:before{content:"\\f2c6"}.fa-thermometer-4[_ngcontent-%COMP%]:before, .fa-thermometer[_ngcontent-%COMP%]:before, .fa-thermometer-full[_ngcontent-%COMP%]:before{content:"\\f2c7"}.fa-thermometer-3[_ngcontent-%COMP%]:before, .fa-thermometer-three-quarters[_ngcontent-%COMP%]:before{content:"\\f2c8"}.fa-thermometer-2[_ngcontent-%COMP%]:before, .fa-thermometer-half[_ngcontent-%COMP%]:before{content:"\\f2c9"}.fa-thermometer-1[_ngcontent-%COMP%]:before, .fa-thermometer-quarter[_ngcontent-%COMP%]:before{content:"\\f2ca"}.fa-thermometer-0[_ngcontent-%COMP%]:before, .fa-thermometer-empty[_ngcontent-%COMP%]:before{content:"\\f2cb"}.fa-shower[_ngcontent-%COMP%]:before{content:"\\f2cc"}.fa-bathtub[_ngcontent-%COMP%]:before, .fa-s15[_ngcontent-%COMP%]:before, .fa-bath[_ngcontent-%COMP%]:before{content:"\\f2cd"}.fa-podcast[_ngcontent-%COMP%]:before{content:"\\f2ce"}.fa-window-maximize[_ngcontent-%COMP%]:before{content:"\\f2d0"}.fa-window-minimize[_ngcontent-%COMP%]:before{content:"\\f2d1"}.fa-window-restore[_ngcontent-%COMP%]:before{content:"\\f2d2"}.fa-times-rectangle[_ngcontent-%COMP%]:before, .fa-window-close[_ngcontent-%COMP%]:before{content:"\\f2d3"}.fa-times-rectangle-o[_ngcontent-%COMP%]:before, .fa-window-close-o[_ngcontent-%COMP%]:before{content:"\\f2d4"}.fa-bandcamp[_ngcontent-%COMP%]:before{content:"\\f2d5"}.fa-grav[_ngcontent-%COMP%]:before{content:"\\f2d6"}.fa-etsy[_ngcontent-%COMP%]:before{content:"\\f2d7"}.fa-imdb[_ngcontent-%COMP%]:before{content:"\\f2d8"}.fa-ravelry[_ngcontent-%COMP%]:before{content:"\\f2d9"}.fa-eercast[_ngcontent-%COMP%]:before{content:"\\f2da"}.fa-microchip[_ngcontent-%COMP%]:before{content:"\\f2db"}.fa-snowflake-o[_ngcontent-%COMP%]:before{content:"\\f2dc"}.fa-superpowers[_ngcontent-%COMP%]:before{content:"\\f2dd"}.fa-wpexplorer[_ngcontent-%COMP%]:before{content:"\\f2de"}.fa-meetup[_ngcontent-%COMP%]:before{content:"\\f2e0"}.sr-only[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable[_ngcontent-%COMP%]:active, .sr-only-focusable[_ngcontent-%COMP%]:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}\n\n\n\n\n[_nghost-%COMP%] router-outlet+*{display:block;animation:_ngcontent-%COMP%_fade 1s}@keyframes _ngcontent-%COMP%_fade{0%{opacity:0}
1to{opacity:1}}']})}return n})();var Pt=bn(10467),Mt=bn(2037),Dt=bn(73989),Fe=bn(60177),$t=bn(43606),dn=bn.n($t);const un=["chartCanvas"];function qt(n,a){if(1&n&&(e.j41(0,"span",21),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI("(",t.total_count," transactions)")}}function yn(n,a){if(1&n&&(e.j41(0,"div",18),e.EFF(1," Total: "),e.j41(2,"span",19),e.EFF(3),e.nI1(4,"number"),e.k0s(),e.DNE(5,qt,2,1,"span",20),e.k0s()),2&n){const t=e.XpG();e.R7$(3),e.Lme("",t.currency_type||"LKR"," ",e.i5U(4,3,t.total_amount,"1.2-2"),""),e.R7$(2),e.Y8G("ngIf",t.total_count)}}function K(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",22),e.bIt("click",function(){const i=e.eBV(t).$implicit,s=e.XpG();return e.Njj(s.changePeriod(i.value))}),e.EFF(1),e.k0s()}if(2&n){const t=a.$implicit,r=e.XpG();e.AVh("active",r.selected_period===t.value),e.R7$(),e.SpI(" ",t.label," ")}}function ei(n,a){1&n&&(e.j41(0,"div",23)(1,"h6"),e.EFF(2,"No transactions available!"),e.k0s()())}let kn=(()=>{class n{constructor(t,r){this.dashboardService=t,this.toastr=r,this.currency_type="LKR",this.is_loading=!1,this.no_transactions=!1,this.selected_period="30_days",this.chart_type="bar",this.total_amount=0,this.total_count=0,this.raw_series=[],this.chartInstance=null,this.periods=[{label:"7 Days",value:"7_days"},{label:"30 Days",value:"30_days"},{label:"90 Days",value:"90_days"}]}ngOnInit(){this.fetchNetPayments()}ngOnChanges(t){t.currency_type&&!t.currency_type.firstChange&&this.fetchNetPayments()}ngOnDestroy(){this.chartInstance&&this.chartInstance.destroy()}changePeriod(t){this.selected_period!==t&&(this.selected_period=t,this.fetchNetPayments())}setChartType(t){this.chart_type!==t&&(this.chart_type=t,this.raw_series&&this.raw_series.length>0&&setTimeout(()=>this.renderChart(this.raw_series),0))}fetchNetPayments(){this.is_loading=!0,this.no_transactions=!1,this.dashboardService.getNetPayments(this.selected_period,this.currency_type||"LKR").then(r=>{this.is_loading=!1,console.log("Net payments response:",r);let i=r;if("string"==typeof r)try{i=JSON.parse(r)}catch(s){console.error("Failed to parse net payments response:",s)}if(i&&(!0===i.status||100===i.status||200===i.status)&&i.data){const s=i.data;this.total_amount=s.total_amount||0,this.total_count=s.total_count||0,this.raw_series=s.series||[],this.raw_series.length>0?setTimeout(()=>this.renderChart(this.raw_series),0):(this.no_transactions=!0,this.chartInstance&&(this.chartInstance.destroy(),this.chartInstance=null))}else this.no_transactions=!0,this.chartInstance&&(this.chartInstance.destroy(),this.chartInstance=null),178!==i?.status&&this.toastr.showToast("danger","Error!",i?.message||"Failed to fetch transaction volumes.")}).catch(r=>{this.is_loading=!1,this.no_transactions=!0,this.chartInstance&&(this.chartInstance.destroy(),this.chartInstance=null),console.error("Error fetching net payments:",r)})}renderChart(t){if(!this.chartCanvas||!this.chartCanvas.nativeElement)return void setTimeout(()=>this.renderChart(t),50);this.chartInstance&&(this.chartInstance.destroy(),this.chartInstance=null);const r=t.map(g=>g.label||g.date),i=t.map(g=>parseFloat(g.amount)||0),s=this.chartCanvas.nativeElement.getContext("2d");if(!s)return;let p={};p="bar"===this.chart_type?{label:"Net Payments",data:i,backgroundColor:"#27ae60",borderColor:"#27ae60",borderWidth:1,hoverBackgroundColor:"#219653",hoverBorderColor:"#219653",barPercentage:.6,categoryPercentage:.7}:{label:"Net Payments",data:i,borderColor:"#27ae60",backgroundColor:"rgba(39, 174, 96, 0.12)",fill:!0,borderWidth:2.5,lineTension:.4,cubicInterpolationMode:"monotone",pointRadius:t.map((S,R)=>
1R===t.length-1?5:0),pointBackgroundColor:"#27ae60",pointBorderColor:"#ffffff",pointBorderWidth:2,pointHoverRadius:6,pointHoverBackgroundColor:"#27ae60",pointHoverBorderColor:"#ffffff",pointHoverBorderWidth:2},this.chartInstance=new(dn())(s,{type:this.chart_type,data:{labels:r,datasets:[p]},options:{responsive:!0,maintainAspectRatio:!1,legend:{display:!1},hover:{mode:"index",intersect:!1},tooltips:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(10, 37, 64, 0.9)",titleFontColor:"#ffffff",bodyFontColor:"#ffffff",borderColor:"rgba(255, 255, 255, 0.1)",borderWidth:1,padding:10,cornerRadius:6,callbacks:{title:g=>{if(!g||!g.length)return"";const S=g[0].index;return t[S]?.label||t[S]?.date||""},label:g=>{const R=t[g.index],ne=(parseFloat(g.value)||0).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2});return` Amount: ${this.currency_type||"LKR"} ${ne} (${R&&R.count||0} txns)`}}},scales:{xAxes:[{display:!0,gridLines:{display:!1,drawBorder:!1},ticks:{fontColor:"#a0aec0",fontSize:11,maxRotation:0,autoSkip:!0,maxTicksLimit:10}}],yAxes:[{display:!0,gridLines:{display:!0,drawBorder:!1,color:"#edf2f7"},ticks:{fontColor:"#a0aec0",fontSize:11,beginAtZero:!0,callback:g=>g>=1e6?(g/1e6).toFixed(1)+"M":g>=1e3?(g/1e3).toFixed(0)+"k":g}}]}}})}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(Mt.I8),e.rXU(Dt.V4))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-transaction-volumes"]],viewQuery:function(r,i){if(1&r&&e.GBs(un,5),2&r){let s;e.mGM(s=e.lsd())&&(i.chartCanvas=s.first)}},inputs:{currency_type:"currency_type"},features:[e.OA$],decls:22,vars:10,consts:[["chartCanvas",""],["nbSpinnerStatus","primary","nbSpinnerSize","large",1,"chart-container",2,"min-height","20.8rem",3,"nbSpinner"],[1,"row","d-flex","justify-content-between","align-items-center","mb-3"],[1,"col","mb-2","mb-sm-0"],[1,"sub-heading","mb-1"],["class","text-muted","style","font-size: 13px; font-weight: 500;",4,"ngIf"],[1,"d-flex","align-items-center","flex-wrap",2,"gap","10px"],[1,"chart-type-toggle","d-flex","align-items-center"],["type","button","title","Bar Chart",1,"chart-type-btn",3,"click"],[1,"fas","fa-chart-bar"],["type","button","title","Line Chart",1,"chart-type-btn",3,"click"],[1,"fas","fa-chart-line"],[1,"period-filter-buttons","d-flex","align-items-center"],["type","button","class","period-btn",3,"active","click",4,"ngFor","ngForOf"],[1,"mt-3","mb-2",2,"height","14.6rem","position","relative"],[2,"height","100%","width","100%"],[2,"width","100%","height","100%"],["class","w-100 h-100 d-flex justify-content-center align-items-center text-center dashboard-no-data-div",4,"ngIf"],[1,"text-muted",2,"font-size","13px","font-weight","500"],[2,"color","#27ae60","font-weight","700"],["class","ml-2 text-muted","style","font-size: 12px;",4,"ngIf"],[1,"ml-2","text-muted",2,"font-size","12px"],["type","button",1,"period-btn",3,"click"],[1,"w-100","h-100","d-flex","justify-content-center","align-items-center","text-center","dashboard-no-data-div"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"nb-card",1)(1,"nb-card-body")(2,"div",2)(3,"div",3)(4,"h4",4),e.EFF(5,"Transaction volumes"),e.k0s(),e.DNE(6,yn,6,6,"div",5),e.k0s(),e.j41(7,"div",6)(8,"div",7)(9,"button",8),e.bIt("click",function(){return e.eBV(s),e.Njj(i.setChartType("bar"))}),e.nrm(10,"i",9),e.EFF(11," Bar "),e.k0s(),e.j41(12,"button",10),e.bIt("click",function(){return e.eBV(s),e.Njj(i.setChartType("line"))}),e.nrm(13,"i",11),e.EFF(14," Line "),e.k0s()(),e.j41(15,"div",12),e.DNE(16,K,2,3,"button",13),e.k0s()()(),e.j41(17,"div",14)(18,"div",15),e.nrm(19,"canvas",16,0),e.k0s(),e.DNE(21,ei,3,0,"div",17),e.k0s()()()}2&r&&(e.Y8G("nbSpinner",i.is_loading),e.R7$(6),e.Y8G("ngIf",!i.no_transactions&&i.total_amount>0),e.R7$(3),e.AVh("active","bar"===i.chart_type),e.R7$(3),e.AVh("active","line"===i.chart_type),e.R7$(4),e.Y8G("ngForOf",i.periods),e.R7$(2),e.xc7("display",i.no_transactions?"none":"block"),e.R7$(3),e.Y8G("ngIf",i.no_transactions))},dependencies:[Fe.Sq,Fe.bT,E.SrT,E.KH5,E.zwc,Fe.QX],styles:[".sub-heading-div[_ngcontent-%COMP%]{padding:0 6%;text-align:center}
1.amount[_ngcontent-%COMP%]{color:#000;font-size:26px;font-weight:500;line-height:24px;letter-spacing:0px;display:inline;margin-top:2px;word-break:break-word}.dashboard-no-data-div[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{color:#0000008c!important;font-weight:600!important;word-wrap:break-word}.chart-type-toggle[_ngcontent-%COMP%]{background-color:#f1f5f9;border-radius:20px;padding:2px;border:1px solid #e2e8f0}.chart-type-toggle[_ngcontent-%COMP%] .chart-type-btn[_ngcontent-%COMP%]{border:none;background:transparent;color:#64748b;border-radius:18px;padding:3px 10px;font-size:11px;font-weight:500;cursor:pointer;transition:all .2s ease-in-out;outline:none}.chart-type-toggle[_ngcontent-%COMP%] .chart-type-btn[_ngcontent-%COMP%]:hover{color:#1e293b}.chart-type-toggle[_ngcontent-%COMP%] .chart-type-btn.active[_ngcontent-%COMP%]{background-color:#fff;color:#27ae60;font-weight:600;box-shadow:0 1px 3px #0000001a}.period-filter-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.period-filter-buttons[_ngcontent-%COMP%] .period-btn[_ngcontent-%COMP%]{border:1px solid #e2e8f0;background-color:#f8fafc;color:#475569;border-radius:20px;padding:4px 12px;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s ease-in-out;outline:none}.period-filter-buttons[_ngcontent-%COMP%] .period-btn[_ngcontent-%COMP%]:hover{background-color:#edf2f7;color:#1a202c}.period-filter-buttons[_ngcontent-%COMP%] .period-btn.active[_ngcontent-%COMP%]{background-color:#27ae60;color:#fff;border-color:#27ae60;font-weight:600;box-shadow:0 2px 6px #27ae6040}.simple_text[_ngcontent-%COMP%]{color:#1a202c;font-weight:500;font-size:13px}.chart[_ngcontent-%COMP%] canvas[_ngcontent-%COMP%]{height:10rem!important}.month-picker[_ngcontent-%COMP%]{position:relative;border:1px solid #ece9f1;box-sizing:border-box;border-radius:4px;height:30px;padding:0 10px}.month-picker[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:500;font-size:14px;color:#11263c;margin-right:5px}.month-picker[_ngcontent-%COMP%] .month-picker-form[_ngcontent-%COMP%]{display:none;position:absolute;top:35px;right:0;width:15rem;padding:5px 8px;background-color:#fff;box-shadow:0 .2rem .5rem #00000014;border-radius:.25rem}.month-picker[_ngcontent-%COMP%] .show[_ngcontent-%COMP%]{display:block}.currency[_ngcontent-%COMP%]{color:#58595a;font-size:16px;font-weight:500}table[_ngcontent-%COMP%]{border-collapse:separate;border-spacing:0 12px;margin-top:-10px}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-family:Inter,sans-serif;color:#4a4a4a;font-size:12px;font-weight:400;padding:10px;border-style:none;min-width:86px}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{border-top-left-radius:10px;border-bottom-left-radius:10px}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:10px;border-top-right-radius:10px}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:48px;background:#fff;box-shadow:0 .2rem .5rem #00000014;-webkit-box-shadow:0px .2rem .5rem 0 rgba(0,0,0,.08);-moz-box-shadow:0px .2rem .5rem 0 rgba(0,0,0,.08);border:none;border-radius:5px}.card-heading[_ngcontent-%COMP%]{color:#1a202c;font-size:16px;font-weight:500;line-height:24px}"]})}return n})();function Fn(n,a){if(1&n&&(e.j41(0,"span",15),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI(" (As of ",t.as_of_date,") ")}}function Si(n,a){if(1&n&&(e.j41(0,"span",15),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI(" (Settled on ",t.last_payout_approved_on,") ")}}let gr=(()=>{class n{constructor(t,r){this.dashboardService=t,this.toastr=r,this.currency_type="LKR",this.is_loading=!1,this.todays_sales=0,this.today_payout_amount=0,this.last_payout_amount=0,this.last_payout_approved_on="",this.pending_payout_amount=0,this.recent_transaction_amount=0,this.as_of_date=""}ngOnInit(){this.getData()}ngOnChanges(t){t.currency_type&&!t.currency_type.firstChange&&this.getData()}getData(){var t=this;return(0,Pt.A)(function*(){t.is_loading=!0;const r=t.currency_type||"LKR";try{const i=yield Promise.all([t.dashboardService.getLastPayout(r).catch(S=>S),t.dashboardService.getPendingPayout(r).catch(S=>S),t.dashboardService.getPaymentsAuthorized("this_month",r).catch(S=>S)]);t.is_loading=!1;let s=i[0];if("string"==typeof s)try{s=JSON.parse(s)}catch{}if(s&&(!0===s.status||100===s.status||200===s.status)&&s.data){const S=s.data;t.last_payout_amount=parseFloat(S.payout_amount??0),t.last_payout_approved_on=S.date||""}let p=i[1];if("string"==typeof p)try{p=JSON.parse(p)}catch{}
1if(p&&(!0===p.status||100===p.status||200===p.status)&&p.data){const S=p.data;t.as_of_date=S.as_of_date||"",t.pending_payout_amount=parseFloat(S.total_outstanding??0),t.today_payout_amount=S.apps&&Array.isArray(S.apps)?S.apps.reduce((R,L)=>R+(parseFloat(L.processing_amount)||0),0):0}let g=i[2];if("string"==typeof g)try{g=JSON.parse(g)}catch{}if(g&&(!0===g.status||100===g.status||200===g.status)&&g.data){const S=g.data;S.today&&void 0!==S.today.gross_amount?t.todays_sales=parseFloat(S.today.gross_amount)||0:void 0!==S.gross_amount&&(t.todays_sales=parseFloat(S.gross_amount)||0)}}catch(i){t.is_loading=!1,console.error("Error fetching amounts data:",i)}})()}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(Mt.I8),e.rXU(Dt.V4))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-amounts"]],inputs:{currency_type:"currency_type"},features:[e.OA$],decls:51,vars:23,consts:[["nbSpinnerStatus","primary","nbSpinnerSize","large",2,"min-height","20.8rem","min-width","200px","margin","0 auto 1.875rem auto",3,"nbSpinner"],[1,"d-flex","flex-column","justify-content-around",2,"overflow-y","hidden !important","padding","1.2rem 0.8rem"],[1,"row"],[1,"col","col-6","d-flex","flex-column","justify-content-center","align-items-center","text-center",2,"padding","8px 4px"],[1,"sub-heading-div","mb-1"],[1,"sub-heading","font-weight-bold",2,"color","#00BA61","font-size","10.5px","margin","0","white-space","nowrap"],[1,"d-flex","justify-content-center","align-items-baseline","flex-wrap","my-1"],[1,"currency","mr-1",2,"font-size","10px","font-weight","600","color","#718096"],[1,"amount",2,"font-size","14px","font-weight","700","color","#00BA61","white-space","nowrap"],[2,"min-height","13px"],[1,"col","col-6","border-left","d-flex","flex-column","justify-content-center","align-items-center","text-center",2,"padding","8px 4px"],["class","text-muted","style","font-size: 9.5px; font-weight: 500; color: #a0aec0; white-space: nowrap;",4,"ngIf"],[2,"height","1px","width","100%","background-color","#edf2f7","margin","4px 0"],[1,"sub-heading","font-weight-bold",2,"color","#27ae60","font-size","10.5px","margin","0","white-space","nowrap"],[1,"amount",2,"font-size","14px","font-weight","700","color","#27ae60","white-space","nowrap"],[1,"text-muted",2,"font-size","9.5px","font-weight","500","color","#a0aec0","white-space","nowrap"]],template:function(r,i){1&r&&(e.j41(0,"nb-card",0)(1,"nb-card-body",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"label",5),e.EFF(6,"Today Sale"),e.k0s()(),e.j41(7,"div",6)(8,"span",7),e.EFF(9),e.k0s(),e.j41(10,"span",8),e.EFF(11),e.nI1(12,"number"),e.k0s()(),e.nrm(13,"div",9),e.k0s(),e.j41(14,"div",10)(15,"div",4)(16,"label",5),e.EFF(17,"Pending Payout"),e.k0s()(),e.j41(18,"div",6)(19,"span",7),e.EFF(20),e.k0s(),e.j41(21,"span",8),e.EFF(22),e.nI1(23,"number"),e.k0s()(),e.j41(24,"div",9),e.DNE(25,Fn,2,1,"span",11),e.k0s()()(),e.nrm(26,"div",12),e.j41(27,"div",2)(28,"div",3)(29,"div",4)(30,"label",5),e.EFF(31,"Last Payout"),e.k0s()(),e.j41(32,"div",6)(33,"span",7),e.EFF(34),e.k0s(),e.j41(35,"span",8),e.EFF(36),e.nI1(37,"number"),e.k0s()(),e.j41(38,"div",9),e.DNE(39,Si,2,1,"span",11),e.k0s()(),e.j41(40,"div",10)(41,"div",4)(42,"label",13),e.EFF(43,"Today Payout"),e.k0s()(),e.j41(44,"div",6)(45,"span",7),e.EFF(46),e.k0s(),e.j41(47,"span",14),e.EFF(48),e.nI1(49,"number"),e.k0s()(),e.nrm(50,"div",9),e.k0s()()()()),2&r&&(e.Y8G("nbSpinner",i.is_loading),e.R7$(9),e.JRh(i.currency_type),e.R7$(2),e.SpI(" ",e.i5U(12,11,i.todays_sales||0,"1.2-2")," "),e.R7$(9),e.JRh(i.currency_type),e.R7$(2),e.SpI(" ",e.i5U(23,14,i.pending_payout_amount||0,"1.2-2")," "),e.R7$(3),e.Y8G("ngIf",i.as_of_date),e.R7$(9),e.JRh(i.currency_type),e.R7$(2),e.SpI(" ",e.i5U(37,17,i.last_payout_amount||0,"1.2-2")," "),e.R7$(3),e.Y8G("ngIf",i.last_payout_approved_on),e.R7$(7),e.JRh(i.currency_type),e.R7$(2),e.SpI(" ",e.i5U(49,20,i.today_payout_amount||0,"1.2-2")," "))},dependencies:[Fe.bT,E.SrT,E.KH5,E.zwc,Fe.QX],styles:[".sub-heading-div[_ngcontent-%COMP%]{padding:0 6%;text-align:center}.amount[_ngcontent-%COMP%]{color:#000;font-size:26px;font-weight:500;line-height:24px;letter-spacing:0px;display:inline;margin-top:2px;word-break:break-word}.dashboard-no-data-div[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{color:#0000008c!important;font-weight:600!important;word-wrap:break-word}.chart-type-toggle[_ngcontent-%COMP%]{background-color:#f1f5f9;border-radius:20px;padding:2px;border:1px solid #e2e8f0}
1.chart-type-toggle[_ngcontent-%COMP%] .chart-type-btn[_ngcontent-%COMP%]{border:none;background:transparent;color:#64748b;border-radius:18px;padding:3px 10px;font-size:11px;font-weight:500;cursor:pointer;transition:all .2s ease-in-out;outline:none}.chart-type-toggle[_ngcontent-%COMP%] .chart-type-btn[_ngcontent-%COMP%]:hover{color:#1e293b}.chart-type-toggle[_ngcontent-%COMP%] .chart-type-btn.active[_ngcontent-%COMP%]{background-color:#fff;color:#27ae60;font-weight:600;box-shadow:0 1px 3px #0000001a}.period-filter-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.period-filter-buttons[_ngcontent-%COMP%] .period-btn[_ngcontent-%COMP%]{border:1px solid #e2e8f0;background-color:#f8fafc;color:#475569;border-radius:20px;padding:4px 12px;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s ease-in-out;outline:none}.period-filter-buttons[_ngcontent-%COMP%] .period-btn[_ngcontent-%COMP%]:hover{background-color:#edf2f7;color:#1a202c}.period-filter-buttons[_ngcontent-%COMP%] .period-btn.active[_ngcontent-%COMP%]{background-color:#27ae60;color:#fff;border-color:#27ae60;font-weight:600;box-shadow:0 2px 6px #27ae6040}.simple_text[_ngcontent-%COMP%]{color:#1a202c;font-weight:500;font-size:13px}.chart[_ngcontent-%COMP%] canvas[_ngcontent-%COMP%]{height:10rem!important}.month-picker[_ngcontent-%COMP%]{position:relative;border:1px solid #ece9f1;box-sizing:border-box;border-radius:4px;height:30px;padding:0 10px}.month-picker[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:500;font-size:14px;color:#11263c;margin-right:5px}.month-picker[_ngcontent-%COMP%] .month-picker-form[_ngcontent-%COMP%]{display:none;position:absolute;top:35px;right:0;width:15rem;padding:5px 8px;background-color:#fff;box-shadow:0 .2rem .5rem #00000014;border-radius:.25rem}.month-picker[_ngcontent-%COMP%] .show[_ngcontent-%COMP%]{display:block}.currency[_ngcontent-%COMP%]{color:#58595a;font-size:16px;font-weight:500}table[_ngcontent-%COMP%]{border-collapse:separate;border-spacing:0 12px;margin-top:-10px}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-family:Inter,sans-serif;color:#4a4a4a;font-size:12px;font-weight:400;padding:10px;border-style:none;min-width:86px}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{border-top-left-radius:10px;border-bottom-left-radius:10px}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:10px;border-top-right-radius:10px}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:48px;background:#fff;box-shadow:0 .2rem .5rem #00000014;-webkit-box-shadow:0px .2rem .5rem 0 rgba(0,0,0,.08);-moz-box-shadow:0px .2rem .5rem 0 rgba(0,0,0,.08);border:none;border-radius:5px}.card-heading[_ngcontent-%COMP%]{color:#1a202c;font-size:16px;font-weight:500;line-height:24px}"]})}return n})();function ji(n,a){1&n&&(e.j41(0,"td",10),e.EFF(1,"Failed"),e.k0s())}function jn(n,a){1&n&&(e.j41(0,"td",11),e.EFF(1,"Completed"),e.k0s())}function sn(n,a){if(1&n&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.EFF(4),e.k0s(),e.j41(5,"td"),e.EFF(6),e.k0s(),e.DNE(7,ji,2,0,"td",8)(8,jn,2,0,"td",9),e.k0s()),2&n){const t=a.$implicit;e.R7$(2),e.SpI("",t.onepay_transaction_id?t.onepay_transaction_id:"Not Available"," "),e.R7$(2),e.SpI("",t.net_amount?t.currency+" "+t.net_amount:"Not Available"," "),e.R7$(2),e.JRh(t.date?t.date:"Not Available"),e.R7$(),e.Y8G("ngIf",!t.status),e.R7$(),e.Y8G("ngIf",t.status)}}function ui(n,a){if(1&n&&(e.j41(0,"table",6)(1,"tbody"),e.DNE(2,sn,9,5,"tr",7),e.nI1(3,"slice"),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.Y8G("ngForOf",e.brH(3,1,t.recent_transactions_currency,0,5))}}function Mn(n,a){1&n&&(e.j41(0,"div",12)(1,"h6"),e.EFF(2,"No transactions available!"),e.k0s()())}let Zi=(()=>{class n{constructor(t,r,i){this.router=t,this.dashboardService=r,this.toastr=i,this.is_loading=!1,this.all_recent_transactions=[],this.recent_transactions_currency=[]}ngOnInit(){this.getRecentTransactions()}ngOnChanges(t){t.currency_type&&t.currency_type.previousValue&&t.currency_type.previousValue!==t.currency_type.currentValue&&(this.recent_transactions_currency=this.all_recent_transactions.filter(r=>r.currency===this.currency_type)[0].transaction_data)}getRecentTransactions(){var t=this;return(0,Pt.A)(function*(){t.is_loading=!0,t.dashboardService.getRecentTransactions().then(r=>{if(t.is_loading=!1,r&&100===r?.status){const i=r?.data;t.all_recent_transactions=i;const s=i.filter(p=>p?.currency===t.currency_type)[0];t.recent_transactions_currency=s?.transaction_data}
1else 178!==r?.status&&t.toastr.showToast("danger","Error!",r?.message||"Getting recent transactions failed.")},r=>{t.is_loading=!1,console.log("Internal Server Error",r),t.toastr.showToast("danger","Error!","Internal Server Error.")})})()}navigateToRecentTr(){this.router.navigate(["/pages/transaction-history/ipg-transaction"])}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(qe.Ix),e.rXU(Mt.I8),e.rXU(Dt.V4))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-recent-transactions"]],inputs:{currency_type:"currency_type"},features:[e.OA$],decls:10,vars:3,consts:[["no_transactions_div",""],["nbSpinnerStatus","primary","nbSpinnerSize","large",2,"height","25.8rem",3,"nbSpinner"],[1,"d-flex","align-items-center","justify-content-between","mb-4"],[1,"sub-heading"],[2,"color","#495A72","text-decoration","underline","font-weight","500","font-size","12px","line-height","26px","cursor","pointer",3,"click"],["class","table table-responsive-sm mb-0","style","overflow-x: auto;",4,"ngIf","ngIfElse"],[1,"table","table-responsive-sm","mb-0",2,"overflow-x","auto"],[4,"ngFor","ngForOf"],["style","color: #c74730;",4,"ngIf"],["style","color: #008D49;",4,"ngIf"],[2,"color","#c74730"],[2,"color","#008D49"],[1,"w-100","h-75","d-flex","justify-content-center","align-items-center","text-center","dashboard-no-data-div"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"nb-card",1)(1,"nb-card-body")(2,"div",2)(3,"h4",3),e.EFF(4,"Recent Transactions"),e.k0s(),e.j41(5,"a",4),e.bIt("click",function(){return e.eBV(s),e.Njj(i.navigateToRecentTr())}),e.EFF(6,"View All Transactions"),e.k0s()(),e.DNE(7,ui,4,5,"table",5)(8,Mn,3,0,"ng-template",null,0,e.C5r),e.k0s()()}if(2&r){const s=e.sdS(9);e.Y8G("nbSpinner",i.is_loading),e.R7$(7),e.Y8G("ngIf",i.recent_transactions_currency&&i.recent_transactions_currency.length>0)("ngIfElse",s)}},dependencies:[Fe.Sq,Fe.bT,E.SrT,E.KH5,E.zwc,Fe.P9],styles:[".sub-heading-div[_ngcontent-%COMP%]{padding:0 6%;text-align:center}.amount[_ngcontent-%COMP%]{color:#000;font-size:26px;font-weight:500;line-height:24px;letter-spacing:0px;display:inline;margin-top:2px;word-break:break-word}.dashboard-no-data-div[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{color:#0000008c!important;font-weight:600!important;word-wrap:break-word}.chart-type-toggle[_ngcontent-%COMP%]{background-color:#f1f5f9;border-radius:20px;padding:2px;border:1px solid #e2e8f0}.chart-type-toggle[_ngcontent-%COMP%] .chart-type-btn[_ngcontent-%COMP%]{border:none;background:transparent;color:#64748b;border-radius:18px;padding:3px 10px;font-size:11px;font-weight:500;cursor:pointer;transition:all .2s ease-in-out;outline:none}.chart-type-toggle[_ngcontent-%COMP%] .chart-type-btn[_ngcontent-%COMP%]:hover{color:#1e293b}.chart-type-toggle[_ngcontent-%COMP%] .chart-type-btn.active[_ngcontent-%COMP%]{background-color:#fff;color:#27ae60;font-weight:600;box-shadow:0 1px 3px #0000001a}.period-filter-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.period-filter-buttons[_ngcontent-%COMP%] .period-btn[_ngcontent-%COMP%]{border:1px solid #e2e8f0;background-color:#f8fafc;color:#475569;border-radius:20px;padding:4px 12px;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s ease-in-out;outline:none}.period-filter-buttons[_ngcontent-%COMP%] .period-btn[_ngcontent-%COMP%]:hover{background-color:#edf2f7;color:#1a202c}.period-filter-buttons[_ngcontent-%COMP%] .period-btn.active[_ngcontent-%COMP%]{background-color:#27ae60;color:#fff;border-color:#27ae60;font-weight:600;box-shadow:0 2px 6px #27ae6040}.simple_text[_ngcontent-%COMP%]{color:#1a202c;font-weight:500;font-size:13px}.chart[_ngcontent-%COMP%] canvas[_ngcontent-%COMP%]{height:10rem!important}.month-picker[_ngcontent-%COMP%]{position:relative;border:1px solid #ece9f1;box-sizing:border-box;border-radius:4px;height:30px;padding:0 10px}.month-picker[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:500;font-size:14px;color:#11263c;margin-right:5px}.month-picker[_ngcontent-%COMP%] .month-picker-form[_ngcontent-%COMP%]{display:none;position:absolute;top:35px;right:0;width:15rem;padding:5px 8px;background-color:#fff;box-shadow:0 .2rem .5rem #00000014;border-radius:.25rem}.month-picker[_ngcontent-%COMP%] .show[_ngcontent-%COMP%]{display:block}.currency[_ngcontent-%COMP%]{color:#58595a;font-size:16px;font-weight:500}table[_ngcontent-%COMP%]{border-collapse:separate;border-spacing:0 12px;margin-top:-10px}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-family:Inter,sans-serif;color:#4a4a4a;font-size:12px;font-weight:400;padding:10px;border-style:none;min-width:86px}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{border-top-left-radius:10px;border-bottom-left-radius:10px}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:10px;border-top-right-radius:10px}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:48px;background:#fff;box-shadow:0 .2rem .5rem #00000014;-webkit-box-shadow:0px .2rem .5rem 0 rgba(0,0,0,.08);-moz-box-shadow:0px .2rem .5rem 0 rgba(0,0,0,.08);border:none;border-radius:5px}
1.card-heading[_ngcontent-%COMP%]{color:#1a202c;font-size:16px;font-weight:500;line-height:24px}"]})}return n})();function Mi(n,a){if(1&n&&(e.j41(0,"span",9),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI("(",t.total_count," txns for this month)")}}function Xi(n,a){if(1&n&&(e.j41(0,"div",6),e.EFF(1," Total: "),e.j41(2,"span",7),e.EFF(3),e.nI1(4,"number"),e.k0s(),e.DNE(5,Mi,2,1,"span",8),e.k0s()),2&n){const t=e.XpG();e.R7$(3),e.Lme("",t.currency_type||"LKR"," ",e.i5U(4,3,t.total_amount,"1.2-2"),""),e.R7$(2),e.Y8G("ngIf",t.total_count)}}function hr(n,a){if(1&n&&(e.j41(0,"div",26),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.JRh(t.description)}}function Lr(n,a){if(1&n&&(e.j41(0,"tr",18)(1,"td",19)(2,"div",20),e.EFF(3),e.k0s(),e.DNE(4,hr,2,1,"div",21),e.k0s(),e.j41(5,"td",22),e.EFF(6),e.nI1(7,"number"),e.k0s(),e.j41(8,"td",23),e.EFF(9),e.k0s(),e.j41(10,"td",24)(11,"span",25),e.EFF(12),e.nI1(13,"number"),e.k0s()()()),2&n){const t=a.$implicit;e.R7$(3),e.JRh(t.name||t.key),e.R7$(),e.Y8G("ngIf",t.description),e.R7$(2),e.SpI(" ",e.i5U(7,5,t.amount,"1.2-2")," "),e.R7$(3),e.SpI(" ",t.count," "),e.R7$(3),e.SpI(" ",e.i5U(13,8,t.percent,"1.1-1"),"% ")}}function Nr(n,a){if(1&n&&(e.j41(0,"div",10)(1,"table",11)(2,"thead")(3,"tr",12)(4,"th",13),e.EFF(5,"Name"),e.k0s(),e.j41(6,"th",14),e.EFF(7),e.k0s(),e.j41(8,"th",15),e.EFF(9,"Count"),e.k0s(),e.j41(10,"th",16),e.EFF(11,"Percent"),e.k0s()()(),e.j41(12,"tbody"),e.DNE(13,Lr,14,11,"tr",17),e.k0s()()()),2&n){const t=e.XpG();e.R7$(7),e.SpI("Amount (",t.currency_type||"LKR",")"),e.R7$(6),e.Y8G("ngForOf",t.channels)}}function Gi(n,a){1&n&&(e.j41(0,"div",27)(1,"h6"),e.EFF(2,"No transaction sources available!"),e.k0s()())}let Mo=(()=>{class n{constructor(t,r){this.dashboardService=t,this.toastr=r,this.currency_type="LKR",this.is_loading=!1,this.no_transactions=!1,this.selected_period="this_month",this.total_amount=0,this.total_count=0,this.channels=[]}ngOnInit(){this.fetchPaymentChannels()}ngOnChanges(t){t.currency_type&&!t.currency_type.firstChange&&this.fetchPaymentChannels()}fetchPaymentChannels(){this.is_loading=!0,this.no_transactions=!1,this.dashboardService.getPaymentChannels(this.selected_period,this.currency_type||"LKR").then(r=>{this.is_loading=!1,console.log("Payment channels response:",r);let i=r;if("string"==typeof r)try{i=JSON.parse(r)}catch(s){console.error("Failed to parse payment channels response:",s)}if(i&&(!0===i.status||100===i.status||200===i.status)&&i.data){const s=i.data;this.total_amount=s.total_amount||0,this.total_count=s.total_count||0,this.channels=s.channels||[],this.no_transactions=!(this.channels.length>0)}else this.no_transactions=!0,this.channels=[],178!==i?.status&&this.toastr.showToast("danger","Error!",i?.message||"Failed to fetch payment channels.")}).catch(r=>{this.is_loading=!1,this.no_transactions=!0,this.channels=[],console.error("Error fetching payment channels:",r)})}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(Mt.I8),e.rXU(Dt.V4))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-transaction-sources"]],inputs:{currency_type:"currency_type",transaction_volume:"transaction_volume"},features:[e.OA$],decls:10,vars:4,consts:[["no_data_div",""],["nbSpinnerStatus","primary","nbSpinnerSize","large",2,"min-height","25.8rem",3,"nbSpinner"],[1,"d-flex","justify-content-between","align-items-center","mb-3"],[1,"sub-heading","mb-1"],["class","text-muted","style","font-size: 12px; font-weight: 500;",4,"ngIf"],["class","table-responsive","style","max-height: 20rem; overflow-y: auto;",4,"ngIf","ngIfElse"],[1,"text-muted",2,"font-size","12px","font-weight","500"],[2,"color","#27ae60","font-weight","700"],["class","ml-1 text-muted",4,"ngIf"],[1,"ml-1","text-muted"],[1,"table-responsive",2,"max-height","20rem","overflow-y","auto"],[1,"table","table-hover","table-sm","align-middle","mb-0"],[1,"text-muted",2,"font-size","11px","text-transform","uppercase","letter-spacing","0.5px","border-bottom","2px solid #edf2f7"],[2,"padding-left","8px"],[1,"text-right"],[1,"text-center"],[1,"text-right",2,"padding-right","8px"],["style","font-size: 12px; border-bottom: 1px solid #f7fafc;",4,"ngFor","ngForOf"],[2,"font-size","12px","border-bottom","1px solid #f7fafc"],[2,"padding-left","8px","vertical-align","middle"],[1,"font-weight-bold",2,"color","#2d3748"],["class","text-muted","style","font-size: 10px; line-height: 1.2;",4,"ngIf"],[1,"text-right","font-weight-bold",2,"color","#27ae60","vertical-align","middle"],[1,"text-center","font-weight-500",2,"color","#4a5568","vertical-align","middle"],[1,"text-right",2,"padding-right","8px","vertical-align","middle"],[1,"badge",2,"background-color","#e6f4ea","color","#1e824c","font-size","11px","font-weight","600","padding","4px 8px","border-radius","12px"],[1,"text-muted",2,"font-size","10px","line-height","1.2"],[1,"w-100","h-100","d-flex","justify-content-center","align-items-center","text-center","dashboard-no-data-div",2,"min-height","14rem"]],template:function(r,i){if(1&r&&(e.j41(0,"nb-card",1)(1,"nb-card-body")(2,"div",2)(3,"div")(4,"h4",3),e.EFF(5,"Transaction Sources"),e.k0s(),e.DNE(6,
1Xi,6,6,"div",4),e.k0s()(),e.DNE(7,Nr,14,2,"div",5)(8,Gi,3,0,"ng-template",null,0,e.C5r),e.k0s()()),2&r){const s=e.sdS(9);e.Y8G("nbSpinner",i.is_loading),e.R7$(6),e.Y8G("ngIf",!i.no_transactions&&i.total_amount>0),e.R7$(),e.Y8G("ngIf",!i.no_transactions&&i.channels&&i.channels.length>0)("ngIfElse",s)}},dependencies:[Fe.Sq,Fe.bT,E.SrT,E.KH5,E.zwc,Fe.QX],styles:[".sub-heading-div[_ngcontent-%COMP%]{padding:0 6%;text-align:center}.amount[_ngcontent-%COMP%]{color:#000;font-size:26px;font-weight:500;line-height:24px;letter-spacing:0px;display:inline;margin-top:2px;word-break:break-word}.dashboard-no-data-div[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{color:#0000008c!important;font-weight:600!important;word-wrap:break-word}.chart-type-toggle[_ngcontent-%COMP%]{background-color:#f1f5f9;border-radius:20px;padding:2px;border:1px solid #e2e8f0}.chart-type-toggle[_ngcontent-%COMP%] .chart-type-btn[_ngcontent-%COMP%]{border:none;background:transparent;color:#64748b;border-radius:18px;padding:3px 10px;font-size:11px;font-weight:500;cursor:pointer;transition:all .2s ease-in-out;outline:none}.chart-type-toggle[_ngcontent-%COMP%] .chart-type-btn[_ngcontent-%COMP%]:hover{color:#1e293b}.chart-type-toggle[_ngcontent-%COMP%] .chart-type-btn.active[_ngcontent-%COMP%]{background-color:#fff;color:#27ae60;font-weight:600;box-shadow:0 1px 3px #0000001a}.period-filter-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.period-filter-buttons[_ngcontent-%COMP%] .period-btn[_ngcontent-%COMP%]{border:1px solid #e2e8f0;background-color:#f8fafc;color:#475569;border-radius:20px;padding:4px 12px;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s ease-in-out;outline:none}.period-filter-buttons[_ngcontent-%COMP%] .period-btn[_ngcontent-%COMP%]:hover{background-color:#edf2f7;color:#1a202c}.period-filter-buttons[_ngcontent-%COMP%] .period-btn.active[_ngcontent-%COMP%]{background-color:#27ae60;color:#fff;border-color:#27ae60;font-weight:600;box-shadow:0 2px 6px #27ae6040}.simple_text[_ngcontent-%COMP%]{color:#1a202c;font-weight:500;font-size:13px}.chart[_ngcontent-%COMP%] canvas[_ngcontent-%COMP%]{height:10rem!important}.month-picker[_ngcontent-%COMP%]{position:relative;border:1px solid #ece9f1;box-sizing:border-box;border-radius:4px;height:30px;padding:0 10px}.month-picker[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:500;font-size:14px;color:#11263c;margin-right:5px}.month-picker[_ngcontent-%COMP%] .month-picker-form[_ngcontent-%COMP%]{display:none;position:absolute;top:35px;right:0;width:15rem;padding:5px 8px;background-color:#fff;box-shadow:0 .2rem .5rem #00000014;border-radius:.25rem}.month-picker[_ngcontent-%COMP%] .show[_ngcontent-%COMP%]{display:block}.currency[_ngcontent-%COMP%]{color:#58595a;font-size:16px;font-weight:500}table[_ngcontent-%COMP%]{border-collapse:separate;border-spacing:0 12px;margin-top:-10px}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-family:Inter,sans-serif;color:#4a4a4a;font-size:12px;font-weight:400;padding:10px;border-style:none;min-width:86px}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{border-top-left-radius:10px;border-bottom-left-radius:10px}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:10px;border-top-right-radius:10px}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:48px;background:#fff;box-shadow:0 .2rem .5rem #00000014;-webkit-box-shadow:0px .2rem .5rem 0 rgba(0,0,0,.08);-moz-box-shadow:0px .2rem .5rem 0 rgba(0,0,0,.08);border:none;border-radius:5px}.card-heading[_ngcontent-%COMP%]{color:#1a202c;font-size:16px;font-weight:500;line-height:24px}"]})}return n})();function Bo(n,a){if(1&n&&(e.j41(0,"nb-option",12),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.Y8G("value",t),e.R7$(),e.JRh(t)}}let Bs=(()=>{class n{constructor(t,r,i){this.dashboardService=t,this.toastr=r,this.paymentLinkService=i,this.selected_currency="LKR",this.currencies=[],this.currecy_codes=[],this.transaction_volumes=[],this.transaction_volume=0}ngOnInit(){this.getData()}getData(){var t=this;return(0,Pt.A)(function*(){let r=null;try{r=yield Promise.all([t.paymentLinkService.getALLCurrencies(),t.dashboardService.getTransactionVolumes()]);const i=r[0],s=r[1];if(i&&(200===i?.status||100===i?.status||!0===i?.success)&&i?.data){let p=[];p=i.data.currencies&&Array.isArray(i.data.currencies)?i.data.currencies:Array.isArray(i.data)?i.data:[i.data],t.currencies=p.map(g=>"string"==typeof g?{code:g,name:g}:{code:g.code||g.currency_code||g.currency||"",name:g.name||g.currency_name||g.description||""}).filter(g=>g.code),t.currecy_codes=t.currencies.map(g=>g?.code)}
1else t.toastr.showToast("danger","Error!",i?.message||"Getting currency types failed.");if(s&&100===s?.status){const p=s?.data;t.transaction_volumes=p,t.transaction_volume=p.filter(g=>g?.currency===t.selected_currency)[0].transaction_volume}else s&&178===s?.status||178!==s?.status&&t.toastr.showToast("danger","Error!",r?.message||"Getting transaction volumes failed.")}catch(i){console.log("Internal Server Error",i),t.toastr.showToast("danger","Error!","Internal Server Error.")}})()}onCurrencyTypeChange(t){!t||t===this.selected_currency||(this.selected_currency=t,this.transaction_volume=this.transaction_volumes.filter(r=>r?.currency===this.selected_currency)[0].transaction_volume)}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(Mt.I8),e.rXU(Dt.V4),e.rXU(Mt.of))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-dashboard"]],decls:18,vars:7,consts:[[1,"body-style"],[1,"container"],[1,"row","mb-4"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"page-heading"],[3,"selectedChange","selected"],[3,"value",4,"ngFor","ngForOf"],[1,"row"],[1,"col-sm-12","col-md-12","col-lg-8"],[3,"currency_type"],[1,"col-sm-12","col-md-12","col-lg-4"],[3,"currency_type","transaction_volume"],[3,"value"]],template:function(r,i){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h2",4),e.EFF(5,"Overview"),e.k0s(),e.j41(6,"nb-select",5),e.bIt("selectedChange",function(p){return i.onCurrencyTypeChange(p)}),e.DNE(7,Bo,2,2,"nb-option",6),e.k0s()()(),e.j41(8,"div",7)(9,"div",8),e.nrm(10,"ngx-transaction-volumes",9),e.k0s(),e.j41(11,"div",10),e.nrm(12,"ngx-amounts",9),e.k0s()(),e.j41(13,"div",7)(14,"div",8),e.nrm(15,"ngx-recent-transactions",9),e.k0s(),e.j41(16,"div",10),e.nrm(17,"ngx-transaction-sources",11),e.k0s()()()()),2&r&&(e.R7$(6),e.Y8G("selected",i.selected_currency),e.R7$(),e.Y8G("ngForOf",i.currecy_codes),e.R7$(3),e.Y8G("currency_type",i.selected_currency),e.R7$(2),e.Y8G("currency_type",i.selected_currency),e.R7$(3),e.Y8G("currency_type",i.selected_currency),e.R7$(2),e.Y8G("currency_type",i.selected_currency)("transaction_volume",i.transaction_volume))},dependencies:[Fe.Sq,E.S81,E.ZJ2,kn,gr,Zi,Mo],styles:[".sub-heading-div[_ngcontent-%COMP%]{padding:0 6%;text-align:center}.amount[_ngcontent-%COMP%]{color:#000;font-size:26px;font-weight:500;line-height:24px;letter-spacing:0px;display:inline;margin-top:2px;word-break:break-word}.dashboard-no-data-div[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{color:#0000008c!important;font-weight:600!important;word-wrap:break-word}.chart-type-toggle[_ngcontent-%COMP%]{background-color:#f1f5f9;border-radius:20px;padding:2px;border:1px solid #e2e8f0}.chart-type-toggle[_ngcontent-%COMP%] .chart-type-btn[_ngcontent-%COMP%]{border:none;background:transparent;color:#64748b;border-radius:18px;padding:3px 10px;font-size:11px;font-weight:500;cursor:pointer;transition:all .2s ease-in-out;outline:none}.chart-type-toggle[_ngcontent-%COMP%] .chart-type-btn[_ngcontent-%COMP%]:hover{color:#1e293b}.chart-type-toggle[_ngcontent-%COMP%] .chart-type-btn.active[_ngcontent-%COMP%]{background-color:#fff;color:#27ae60;font-weight:600;box-shadow:0 1px 3px #0000001a}.period-filter-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.period-filter-buttons[_ngcontent-%COMP%] .period-btn[_ngcontent-%COMP%]{border:1px solid #e2e8f0;background-color:#f8fafc;color:#475569;border-radius:20px;padding:4px 12px;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s ease-in-out;outline:none}.period-filter-buttons[_ngcontent-%COMP%] .period-btn[_ngcontent-%COMP%]:hover{background-color:#edf2f7;color:#1a202c}.period-filter-buttons[_ngcontent-%COMP%] .period-btn.active[_ngcontent-%COMP%]{background-color:#27ae60;color:#fff;border-color:#27ae60;font-weight:600;box-shadow:0 2px 6px #27ae6040}.simple_text[_ngcontent-%COMP%]{color:#1a202c;font-weight:500;font-size:13px}.chart[_ngcontent-%COMP%] canvas[_ngcontent-%COMP%]{height:10rem!important}.month-picker[_ngcontent-%COMP%]{position:relative;border:1px solid #ece9f1;box-sizing:border-box;border-radius:4px;height:30px;padding:0 10px}.month-picker[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:500;font-size:14px;color:#11263c;margin-right:5px}.month-picker[_ngcontent-%COMP%] .month-picker-form[_ngcontent-%COMP%]{display:none;position:absolute;top:35px;right:0;width:15rem;padding:5px 8px;background-color:#fff;box-shadow:0 .2rem .5rem #00000014;border-radius:.25rem}.month-picker[_ngcontent-%COMP%] .show[_ngcontent-%COMP%]{display:block}.currency[_ngcontent-%COMP%]{color:#58595a;font-size:16px;font-weight:500}table[_ngcontent-%COMP%]{border-collapse:separate;border-spacing:0 12px;margin-top:-10px}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-family:Inter,sans-serif;color:#4a4a4a;font-size:12px;font-weight:400;padding:10px;border-style:none;min-width:86px}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{border-top-left-radius:10px;border-bottom-left-radius:10px}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:10px;border-top-right-radius:10px}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{height:48px;background:#fff;box-shadow:0 .2rem .5rem #00000014;-webkit-box-shadow:0px .2rem .5rem 0 rgba(0,0,0,.08);-moz-box-shadow:0px .2rem .5rem 0 rgba(0,0,0,.08);border:none;border-radius:5px}
1.card-heading[_ngcontent-%COMP%]{color:#1a202c;font-size:16px;font-weight:500;line-height:24px}"]})}return n})();function Ts(n,a){1&n&&(e.j41(0,"li"),e.EFF(1,"Name is required."),e.k0s())}function Hc(n,a){if(1&n&&(e.j41(0,"ul",17),e.DNE(1,Ts,2,0,"li",18),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",null==t.name||null==t.name.errors?null:t.name.errors.required)}}function Jo(n,a){1&n&&(e.j41(0,"li"),e.EFF(1,"Phone is required."),e.k0s())}function rl(n,a){1&n&&(e.j41(0,"li"),e.EFF(1,"Invalid phone number."),e.k0s())}function Wl(n,a){if(1&n&&(e.j41(0,"ul",17),e.DNE(1,Jo,2,0,"li",18)(2,rl,2,0,"li",18),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",null==t.phone||null==t.phone.errors?null:t.phone.errors.required),e.R7$(),e.Y8G("ngIf",null==t.phone||null==t.phone.errors?null:t.phone.errors.pattern)}}function Zo(n,a){1&n&&(e.j41(0,"li"),e.EFF(1,"Email is required."),e.k0s())}function xc(n,a){1&n&&(e.j41(0,"li"),e.EFF(1,"Invalid email address."),e.k0s())}function al(n,a){if(1&n&&(e.j41(0,"ul",17),e.DNE(1,Zo,2,0,"li",18)(2,xc,2,0,"li",18),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",null==t.email||null==t.email.errors?null:t.email.errors.required),e.R7$(),e.Y8G("ngIf",null==t.email||null==t.email.errors?null:t.email.errors.pattern)}}let fs=(()=>{class n{constructor(t,r,i){this.fb=t,this.developerService=r,this.toastr=i,this.onGetApps=new e.bkB,this.is_loading=!1,this.is_updating=!1,this.form=null,this.form=this.fb.group({name:["",[ie.k0.required]],email:["",[ie.k0.required,ie.k0.pattern(/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/)]],phone:["",[ie.k0.required,ie.k0.pattern(/^(0|\+94)[0-9]{9}$/)]]})}get name(){return this.form.get("name")}get email(){return this.form.get("email")}get phone(){return this.form.get("phone")}ngOnInit(){this.getDeveloperDetails()}getDeveloperDetails(){this.is_loading=!0,this.developerService.getDeveloperDetails().then(t=>{this.is_loading=!1,100===t?.status?this.form.setValue({name:t?.data.developer_name,email:t?.data.developer_email,phone:t?.data.developer_phone_no}):this.toastr.showToast("danger","Error!",t?.message||"Getting developer details failed.")},t=>{this.is_loading=!1,console.log("Internal Server Error",t),this.toastr.showToast("danger","Error!","Internal Server Error.")})}isFieldInvalid(t){let r=!1;const i=this.form.get(t);return i&&i?.invalid&&(i?.dirty||i?.touched)&&i?.errors&&(r=!0),r}updateHandler(){if(!this.form.dirty)return;const t={developer_name:this.name.value,developer_email:this.email.value,developer_phone_no:this.phone.value};this.is_updating=!0,this.developerService.updateDeveloperDetails(t).then(r=>{this.is_updating=!1,100===r?.status?(this.toastr.showToast("success","Success!","Developer details updated successfully."),this.getDeveloperDetails(),this.onGetApps.emit()):this.toastr.showToast("danger","Error!",r?.message||"Updating developer details failed.")},r=>{this.is_updating=!1,console.log("Internal Server Error",r),this.toastr.showToast("danger","Error!","Internal Server Error.")})}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(ie.ok),e.rXU(Mt.fR),e.rXU(Dt.V4))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-update-developer-details"]],outputs:{onGetApps:"onGetApps"},decls:32,vars:10,consts:[["nbSpinnerStatus","primary","nbSpinnerSize","large",1,"chart-container",3,"nbSpinner"],[1,"update-form",3,"ngSubmit","formGroup"],[1,"row","align-items-start","py-3"],[1,"col-12","col-lg-6","d-flex","flex-column","flex-md-row","justify-content-start","align-items-start","mb-4"],["for","update-developer-details-form-name",1,"col-12","col-md-5","col-xxl-4","px-0","px-md-3","mt-md-2","mb-2","mb-md-0"],[1,"form-required-sign"],[1,"col-12","col-md-7","d-flex","flex-column","justify-content-start","align-items-stretch","px-0"],["id","update-developer-details-form-name","type","text","nbInput","","fullWidth","","placeholder","Name","formControlName","name","name","name",1,"col",3,"status"],["class","col error-wrapper",4,"ngIf"],["for","update-developer-details-form-phone",1,"col-12","col-md-5","col-xxl-4","px-0","px-md-3","mt-md-2","mb-2","mb-md-0"],["id","update-developer-details-form-phone","type","text","nbInput","","fullWidth","","placeholder","Phone","formControlName","phone","name","phone",1,"col",3,"status"],[1,"col-12","col-lg-6","d-flex","flex-column","flex-md-row","justify-content-start","align-items-start","mb-4","mb-lg-0"],["for","update-developer-details-form-email",1,"col-12","col-md-5","col-xxl-4","px-0","px-md-3","mt-md-2","mb-2","mb-md-0"],["id","update-developer-details-form-email","type","email","nbInput","","fullWidth","","placeholder","Email","formControlName","email","name","email",1,"col",3,"status"],[1,"col-12","col-lg-6","d-flex","justify-content-start","align-items-center"],[1,"col-8","col-xxl-7"],["nbButton","","status","primary","type","submit","nbSpinnerStatus","primary",1,"col-4","mt-md-2","primary-black-btn",3,"disabled","nbSpinner"],[1,"col","error-wrapper"],[4,"ngIf"]],template:function(r,i){1&r&&(e.j41(0,"nb-card",0)(1,"nb-card-body")(2,"form",1),e.bIt("ngSubmit",function(){return i.updateHandler()}),e.j41(3,"div",2)(4,"div",3)(5,"label",4),e.EFF(6," Developer Name "),e.j41(7,"span",5),e.EFF(8,"*"),e.k0s()(),e.j41(9,"div",6),e.nrm(10,"input",7),e.DNE(11,Hc,2,1,"ul",8),e.k0s()(),e.j41(12,"div",3)(13,"label",9),e.EFF(14," Developer Phone "),e.j41(15,"span",5),e.EFF(16,"*"),e.k0s()(),e.j41(17,"div",6),e.nrm(18,"input",10),e.DNE(19,Wl,3,2,"ul",8),e.k0s()(),e.j41(20,"div",11)(21,"label",12),e.
1EFF(22," Developer Email "),e.j41(23,"span",5),e.EFF(24,"*"),e.k0s()(),e.j41(25,"div",6),e.nrm(26,"input",13),e.DNE(27,al,3,2,"ul",8),e.k0s()(),e.j41(28,"div",14),e.nrm(29,"div",15),e.j41(30,"button",16),e.EFF(31," Update "),e.k0s()()()()()()),2&r&&(e.Y8G("nbSpinner",i.is_loading),e.R7$(2),e.Y8G("formGroup",i.form),e.R7$(8),e.Y8G("status",i.isFieldInvalid("name")?"danger":"basic"),e.R7$(),e.Y8G("ngIf",i.isFieldInvalid("name")),e.R7$(7),e.Y8G("status",i.isFieldInvalid("phone")?"danger":"basic"),e.R7$(),e.Y8G("ngIf",i.isFieldInvalid("phone")),e.R7$(7),e.Y8G("status",i.isFieldInvalid("email")?"danger":"basic"),e.R7$(),e.Y8G("ngIf",i.isFieldInvalid("email")),e.R7$(3),e.Y8G("disabled",i.form.invalid||i.is_updating)("nbSpinner",i.is_updating))},dependencies:[ie.qT,ie.me,ie.BC,ie.cb,ie.j4,ie.JD,Fe.bT,E.SrT,E.KH5,E.YP2,E.zwc,E.i6h],styles:[".update-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:500;font-size:14px;color:#3c3737}"]})}return n})();var Pl=bn(80461);let aa=(()=>{class n{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-onepay-agreement"]],decls:512,vars:0,consts:[[1,"container"],[1,"row"],[1,"col-12"],[1,"p-body"],[1,"hard"]],template:function(r,i){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3)(4,"b"),e.EFF(5,"Onepay Payment Gateway Terms & Conditions"),e.k0s()(),e.j41(6,"p",3),e.EFF(7," Below are the terms and conditions you must agree to use our products and services. "),e.k0s(),e.nrm(8,"br"),e.j41(9,"p",3),e.
1EFF(10," By and between "),e.k0s(),e.nrm(11,"br"),e.j41(12,"p",3)(13,"span",4),e.EFF(14,' This User Agreement ("Agreement") is a contract between you and Spemai (Private) Limited(\u201cCalled as Onepay\u201d) that applies to your use of the Onepay third-party payment processing service and any related products and services ("Service") available through Onepay ("Site" and "Application")'),e.k0s()(),e.nrm(15,"br"),e.j41(16,"p",3),e.EFF(17," If you do not agree to be bound by the terms and conditions of this Agreement, you may not use this Site or any of the Services. "),e.k0s(),e.j41(18,"p",3),e.EFF(19," Onepay reserves the right to amend this Agreement at any time by posting a revised version on this website. Except if otherwise stated, all amendments shall be effective thirty (30) days after publication on this Site. Notice of upcoming changes will be posted on our website and on notification pages posted in your Onepay account. "),e.k0s(),e.nrm(20,"br"),e.j41(21,"p",3),e.EFF(22,' In this Agreement, "you" or "your" means any person or entity ("Users") using the Service. Unless otherwise stated, "Spemai (Private) Limited", Onepay", "we" or "our" will refer collectively to Spemai (Private) Limited, its officers, directors, agents, subsidiaries, joint ventures, employees and suppliers. '),e.k0s(),e.nrm(23,"br"),e.j41(24,"p",3)(25,"span",4),e.EFF(26,"WHEREAS"),e.k0s(),e.EFF(27," the Company is the Technology platform provider of \u201cJust Pay\u201d which is the payment technology that utilizes Lanka Pay\u2019s CEFTS. "),e.k0s(),e.nrm(28,"br"),e.j41(29,"p",3)(30,"b"),e.EFF(31,"1. ELIGIBILITY"),e.k0s()(),e.j41(32,"p",3),e.EFF(33,' Both Merchants and Customers of products and services ("Products") can use the Service. Unless otherwise stated, all provisions in this Agreement apply to both Merchants and Customers. '),e.k0s(),e.nrm(34,"br"),e.j41(35,"p",3),e.EFF(36,' You agree that any information you give to us ("User Information") will stay in our records until termination of this Agreement, for whatever reason, in which case such information will be removed from our systems and/or returned to you and/or destroyed. '),e.k0s(),e.nrm(37,"br"),e.j41(38,"p",3),e.EFF(39," 1.1 Warranties "),e.k0s(),e.nrm(40,"br"),e.j41(41,"p",3),e.EFF(42," >You represent and warrant that all of the following are true of you from your entry into this Agreement until the termination of your Account: "),e.k0s(),e.nrm(43,"br"),e.j41(44,"p",3),e.EFF(45," >If you are an entity other than an individual, you have the legal capacity to enter into this Agreement and perform the obligations represented within it. "),e.k0s(),e.nrm(46,"br"),e.j41(47,"p",3),e.EFF(48," >If you are an individual, then you are at least 18 years of age and do not require the consent, approbation or approval of any other person or entity to conclude a contractual obligation of the type represented in this Agreement. "),e.k0s(),e.nrm(49,"br"),e.j41(50,"p",3),e.EFF(51," >Your execution of and performance under this Agreement in no way violates any legal obligation of the Merchant, including any agreement between or among Merchant(s) and any third party(ies). "),e.k0s(),e.nrm(52,"br"),e.j41(53,"p",3),e.
1EFF(54," >If you are a Merchant, you sell through your website only Products and/or services that are available for delivery in the normal course of your business. "),e.k0s(),e.nrm(55,"br"),e.j41(56,"p",3),e.EFF(57," >You offer Products and/or services for sale only if you have the legal right to market and sell such Products and/or services in all applicable jurisdictions. "),e.k0s(),e.nrm(58,"br"),e.j41(59,"p",3),e.EFF(60," >You maintain the value and reputation of Onepay to the best of your ability. "),e.k0s(),e.nrm(61,"br"),e.j41(62,"p",3),e.EFF(63," >You conduct your business affairs according to the terms and intent of this Agreement and in compliance with all applicable laws and regulations. "),e.k0s(),e.nrm(64,"br"),e.j41(65,"p",3),e.EFF(66," >You do not use our Services for any activities considered fraudulent or illegal under any laws or regulations in any applicable jurisdiction. "),e.k0s(),e.nrm(67,"br"),e.j41(68,"p",3),e.EFF(69," >You do not permit or authorize any other person or entity to use our Services without our written consent. "),e.k0s(),e.nrm(70,"br"),e.j41(71,"p",3),e.EFF(72," >If you are a Merchant, you have had ample opportunity to obtain legal advice regarding the legal effects of this Agreement. You can deliver your full legal name, street address, telephone number and email address by postal mail or email to your Customer(s) and grant Onepay access to records of this correspondence. "),e.k0s(),e.nrm(73,"br"),e.j41(74,"p",3),e.EFF(75," >You will refrain from using abusive and vulgar language with Onepay employees, whether through email, blog comments or phone support. Abusive conduct will not be tolerated and will result in account termination. "),e.k0s(),e.nrm(76,"br"),e.j41(77,"p",3)(78,"span",4),e.EFF(79,"2. LIABILITY"),e.k0s()(),e.nrm(80,"br"),e.j41(81,"p",3),e.EFF(82,"2.1 Our Liability"),e.k0s(),e.nrm(83,"br"),e.j41(84,"p",3),e.
1EFF(85,' If you have a dispute with one or more Users, you release Onepay from any and all claims, demands and actual/consequential damages related to your transaction(s) with said User(s) unless this results from wrongful or negligent acts attributable to us. We provide our services "as is" without any warranty or condition. '),e.k0s(),e.j41(86,"p",3),e.EFF(87," Onepay makes reasonable efforts to ensure that requests for electronic debits and credits involving bank accounts, credit cards and cheque issuances are processed promptly. We make no representations or warranties regarding the amount of time consumed to complete transactions because our Service is largely dependent upon many factors outside of our control. "),e.k0s(),e.nrm(88,"br"),e.j41(89,"p",3),e.EFF(90," Under no circumstances we will be liable for any lost profits, special, incidental or consequential damages arising out of or in connection to the Site, our Service or this Agreement. Under no circumstances shall our liability to you exceed the amount of the revenue earned from transactions carried out by you in the three months prior to the event leading to liability. "),e.k0s(),e.nrm(91,"br"),e.j41(92,"p",3),e.EFF(93," You agree to indemnify and hold Onepay harmless from any claim or demand, including attorneys' fees, made or incurred by any third party due to or arising out of your breach of this Agreement, by the documents it incorporates or by your violation of any law or third-party rights related to your use of the Service. "),e.k0s(),e.nrm(94,"br"),e.j41(95,"p",3),e.EFF(96," You agree to indemnify and hold Onepay harmless from any claim or demand, including attorneys' fees, made or incurred by any third party due to or arising out of your breach of this Agreement, by the documents it incorporates or by your violation of any law or third-party rights related to your use of the Service. "),e.k0s(),e.nrm(97,"br"),e.j41(98,"p",3),e.EFF(99," You agree that if either you or OnePay begin litigation or arbitration, the prevailing party is entitled to recover reasonable attorneys' fees and any other costs incurred in addition to any other relief to which the prevailing party may be entitled. "),e.k0s(),e.nrm(100,"br"),e.j41(101,"p",3),e.EFF(102," You agree to indemnify and hold Onepay harmless for unauthorized transactions done through Onepay. It is very important to contact us immediately if you believe your account has been compromised or if someone has transferred money through your account without your permission. Notifying us as soon as possible will limit your liability. "),e.k0s(),e.nrm(103,"br"),e.j41(104,"p",3),e.EFF(105,"2.2 Your Liability "),e.k0s(),e.nrm(106,"br"),e.j41(107,"p",3),e.EFF(108," If you do not report unauthorized transactions in your Onepay account, you will be liable for any resulting damages. We will do what we can to recover the funds, but if we are unable to recover them, you will assume responsibility for the losses. "),e.k0s(),e.nrm(109,"br"),e.j41(110,"p",3),e.EFF(111," Your Onepay account is protected by a password. As long as you keep the password confidential, no one will be able to access the information in your Onepay account. If a member shares their password with others or allows others to discover and use their password with the account, the account holder is giving access to the information in the account and assumes all responsibility for transactions in this account.\n"),e.k0s(),e.nrm(112,"br"),e.j41(113,"p",3),e.EFF(114," Please note that all activities performed on your account while logged in will be assumed to be performed by the account holder. The account holder also understands that delegating authority to operate his account also amounts to ownership of any and all activities performed on his account. This includes but not limited to; Integrations and configurations, Business registration and verification, Transactions, Account settings and Use of Onepay\u2019s business solutions.\n"),e.k0s(),e.nrm(115,"br"),e.j41(116,"p",3),e.EFF(117," Note that any User must be logged in to perform business verification.\n"),e.k0s(),e.nrm(118,"br"),e.j41(119,"p",3),e.
1EFF(120," You are responsible for performing your due diligence on any Merchants with whom you plan on doing business. If you neglect to perform due diligence on a Merchant and do not receive an item you paid for or receive an item that does not appear as the Merchant described it, you will be liable for any resulting damages. However, if you report a transaction dispute, we will do our best to mediate a resolution that will benefit all parties involved.\n"),e.k0s(),e.nrm(121,"br"),e.j41(122,"p",3),e.EFF(123," Under no circumstances will you be liable for any lost profits, special, incidental or consequential damages arising out of or in connection to this Agreement. Under no circumstances shall your liability to us exceed the amount of the revenue earned from transactions carried out by you in the three months prior to the event leading to liability.\n"),e.k0s(),e.nrm(124,"br"),e.j41(125,"p",3),e.EFF(126," You agree to indemnify and hold OnePay harmless from any claim or demand, including attorneys' fees, made or incurred by any third party due to or arising out of your breach of this Agreement.\n"),e.k0s(),e.nrm(127,"br"),e.j41(128,"p",3),e.EFF(129," You agree that if either you or OnePay begin litigation or arbitration, the prevailing party is entitled to recover reasonable attorneys' fees and any other costs incurred in addition to any other relief to which the prevailing party may be entitled.\n"),e.k0s(),e.nrm(130,"br"),e.j41(131,"p",3)(132,"span",4),e.EFF(133,"3. RELATIONSHIP"),e.k0s()(),e.nrm(134,"br"),e.j41(135,"p",3),e.EFF(136," Onepay provides third-party payment processing services and carries out related technical actions on your behalf. At all times, we do not have any access to your funds and they are directly charged from your customers and settled to your bank account by the issuing and acquiring banks through the payment networks such as Visa and Master card. You acknowledge that Onepay is not a bank and that the Service is a third-party payment processing service rather than a banking service.\n"),e.k0s(),e.nrm(137,"br"),e.j41(138,"p",3),e.EFF(139," By receiving payments through our Service, you appoint Onepay to technically charge your customers and process your funds to your bank account. If we send you a payment notification when you receive funds through Onepay that means the fund has been charged from your customer and will be settled to your bank account as per the payout cycle.\n"),e.k0s(),e.nrm(140,"br"),e.j41(141,"p",3),e.EFF(142," By making payments through our Service, you appoint Onepay to technically charge you and process your funds to the bank account of your Merchant. If we send you a payment notification when you make a payment through Onepay that means the fund has been charged from you and will be settled to your Merchant's bank account.\n"),e.k0s(),e.nrm(143,"br"),e.j41(144,"p",3),e.EFF(145," Onepay is a third-party payment processor that hosts, creates, maintains and provides our Service to you online. We do not have any control over the Products that are paid for with our Service. We cannot ensure that a Customer or a Merchant will complete their transaction as we are not a party to any transaction between Users. Instead, each User agrees to use the Services of their own accord. Furthermore, Onepay reserves the right to correct any processing errors that may occur.\n"),e.k0s(),e.nrm(146,"br"),e.j41(147,"p",3)(148,"span",4),e.EFF(149,"4. ACCOUNT INFORMATION"),e.k0s()(),e.nrm(150,"br"),e.j41(151,"p",3),e.EFF(152," 4.1 Verification\n"),e.k0s(),e.nrm(153,"br"),e.j41(154,"p",3),e.EFF(155," Onepay requires all the Merchants to become verified for the security of our network. Merchants need to be verified before consuming our services to comply with Anti-Money Laundering and Anti-Terrorist Financing Leg
1islation. You agree to complete account verification procedures by applying for Onepay services through our website. Only the Merchants verified through a screening process handled by our partner bank can use our payment services.\n"),e.k0s(),e.nrm(156,"br"),e.j41(157,"p",3),e.EFF(158," 4.2 Receiving Funds\n"),e.k0s(),e.nrm(159,"br"),e.j41(160,"p",3),e.EFF(161," When you receive funds to your bank account through Onepay service, applicable transaction fees will be deducted for that transaction.\n"),e.k0s(),e.nrm(162,"br"),e.j41(163,"p",3),e.EFF(164," 4.3 Sending Funds\n"),e.k0s(),e.nrm(165,"br"),e.j41(166,"p",3),e.EFF(167," Onepay provides a secure medium through which to make payments online. The Merchant assumes all liability for the Product being sold, and understands that the Products are purchased at your own risk. If you encounter any problems with the Merchant's Products, you should directly contact the Merchant and get them resolving with mutual agreement outlined in section 5.0.\n"),e.k0s(),e.nrm(168,"br"),e.j41(169,"p",3),e.
1EFF(170," 4.3.1 Refusing Transactions\n"),e.k0s(),e.nrm(171,"br"),e.j41(172,"p",3),e.EFF(173," If you make an online payment to a Onepay Merchant, they automatically accept the payment. This means a Merchant must have to refund the payment made to them back to you in case if you claim for a refund and the merchant agrees to refund. You agree that we will not be held responsible for damages resulting from a User's refund of a transaction.\n"),e.k0s(),e.nrm(174,"br"),e.j41(175,"p",3),e.EFF(176," 4.4 Settlements\n"),e.k0s(),e.nrm(177,"br"),e.j41(178,"p",3),e.EFF(179," Your funds will be automatically transferred to your bank account as per the Payout Cycle. In compliance with the government regulations, all the payments will be settled to the Merchant within 3 days from the payment authorized date.\n"),e.k0s(),e.nrm(180,"br"),e.j41(181,"p",3),e.EFF(182," 4.5 Commissions\n"),e.k0s(),e.nrm(183,"br"),e.j41(184,"p",3),e.EFF(185," Onepay does not hold any of your funds in Onepay's bank accounts. Instead the payments are directly charged from customer accounts and settled to Merchants bank accounts as per the payout cycle. Onepay receives only the commissions or Payment processing fee to Onepay's bank accounts at the time of settlements.\n"),e.k0s(),e.nrm(186,"br"),e.j41(187,"p",3),e.EFF(188," 4.6 Credit Card Use\n"),e.k0s(),e.nrm(189,"br"),e.j41(190,"p",3),e.EFF(191," You can use your credit card to make a payment through a Onepay Merchant's website. If you receive a refund and initially paid for the item with your credit card, your refund will be reversed back to your credit card.\n"),e.k0s(),e.nrm(192,"br"),e.j41(193,"p",3),e.EFF(194,"\n4.7 Account Security\n"),e.k0s(),e.nrm(195,"br"),e.j41(196,"p",3),e.EFF(197,"\nOnepay implements various security measures to protect your account. With the use of your password and/or Transaction PIN, unauthorized transactions will be drastically reduced if not completely eliminated.\n"),e.k0s(),e.nrm(198,"br"),e.j41(199,"p",3)(200,"span",4),e.EFF(201,"5. RESOLUTIONS"),e.k0s()(),e.nrm(202,"br"),e.j41(203,"p",3),e.
1EFF(204,"\n5.1 Transaction Disputes\n"),e.k0s(),e.nrm(205,"br"),e.j41(206,"p",3),e.EFF(207,"\nDisputes between a Merchant and a Customer must be resolved mutually by both parties. Onepay will not intervene in resolving such disputes other than providing the contact information of each party to the other upon a request.\n"),e.k0s(),e.nrm(208,"br"),e.j41(209,"p",3),e.EFF(210,"\nIf a Merchant or a Customer is willing to take legal actions against the other in such a dispute, Onepay will provide a Payment Confirmation letter as a legal document confirming the information about the payer and the payee of a particular payment, upon request.\n"),e.k0s(),e.nrm(211,"br"),e.j41(212,"p",3),e.EFF(213,"\n5.2 Customer Protection Policy\n"),e.k0s(),e.nrm(214,"br"),e.j41(215,"p",3),e.EFF(216,"\nWe do our best to provide protection for both the merchant and the customer alike. Some of our dispute resolution and refund processes are summarized below.\n"),e.k0s(),e.nrm(217,"br"),e.j41(218,"p",3),e.EFF(219,"\n5.2.1 Dispute Resolution\n"),e.k0s(),e.nrm(220,"br"),e.j41(221,"p",3),e.EFF(222,"\nWhen a customer is not satisfied with a purchase from a merchant, the customer has to directly communicate to his/her merchant and get the case resolved by mutual agreement.\n"),e.k0s(),e.nrm(223,"br"),e.j41(224,"p",3),e.
1EFF(225,"\n5.2.2 Refunds\n"),e.k0s(),e.nrm(226,"br"),e.j41(227,"p",3),e.EFF(228,"\nIf the resolution results in a refund for the customer, merchant can issue a refund for card payments through Onepay system/Email. The refund amount will be then recovered from the merchant's bank account and refunded back to the customer's card. If your bank account balance becomes negative in such recovery, you agree to pay the negative balance in your bank account or should avail funds in order to make the refund. The already deducted charges from Onepay will also be refunded back to the customer.\n"),e.k0s(),e.nrm(229,"br"),e.j41(230,"p",3),e.EFF(231,"\nIf the payment has been made via non-card payment method, the merchant has to process the refund manually to customer since Onepay provides technical refund facility only to card payments.\n"),e.k0s(),e.nrm(232,"br"),e.j41(233,"p",3),e.EFF(234,"\nWe encourage the merchant and the customer to communicate and reach a mutually agreeable resolution. This will reduce the possibility of refunds.\n"),e.k0s(),e.nrm(235,"br"),e.j41(236,"p",3),e.EFF(237,"\n5.3 Merchant Protection Policy\n"),e.k0s(),e.nrm(238,"br"),e.j41(239,"p",3),e.EFF(240,"\nThe Merchants are protected from unjust claim from any Customer. If any issue is resolved
1in favour of the Merchant, the Merchant will have no harm or loss.\n"),e.k0s(),e.nrm(241,"br"),e.j41(242,"p",3),e.EFF(243,"\n5.4 Chargebacks\n"),e.k0s(),e.nrm(244,"br"),e.j41(245,"p",3),e.EFF(246,"\nA chargeback occurs when the debit/credit card owner contacts their debit/credit card issuer to dispute certain charges made through their credit card or bank account, depending on payment method. Any account that receives fraudulent funds or funds that have been disputed by the debit/credit card owner will be reversed. If you receive funds in your account from the debit/credit card owner's credit/debit card or bank account and the credit/debit card transaction is reversed, you agree to hold Onepay harmless and agree to reimburse Onepay immediately by any means necessary. If Chargebacks exceeds 1% of transactions per month consecutively, then Onepay can invoke its right to terminate this contract. Chargebacks returns and reversals may lead to immediate account termination.\n"),e.k0s(),e.nrm(247,"br"),e.j41(248,"p",3),e.EFF(249,"\n5.5 Funds Recovery\n"),e.k0s(),e.nrm(250,"br"),e.j41(251,"p",3),e.EFF(252,"\nIf a customer disputes a payment made to you through Onepay by chargeback, Onepay will retrieve the funds in question. Furthermore, you authorize Onepay to retrieve any disputed funds to recover the lost funds. If your bank account balance becomes negative in such recovery, you agree to pay the negative balance in your bank account or avail sufficient balance in the account.\n"),e.k0s(),e.nrm(253,"br"),e.j41(254,"p",3)(255,"span",4),e.EFF(256,"6.0 ACCEPTABLE USE POLICY AND ACTIVITIES NOT ALLOWES"),e.k0s()(),e.nrm(257,"br"),e.j41(258,"p",3),e.EFF(259,"\n6.1 Acceptable Use\n"),e.k0s(),e.nrm(260,"br"),e.j41(261,"p",3),e.EFF(262,'\nUse of the Services is subject to this acceptable use policy ("AUP"). If not defined here, capitalized terms have the meaning stated in the applicable contract ("Agreement") between Customer, Merchant or other authorized User ("You") and One You agree not to use or allow third parties or Your End Users to use the Service for the following reasons:\n'),e.k0s(),e.nrm(263,"br"),e.j41(264,"p",3),e.EFF(265,"\n\u2022 To generate or facilitate unsolicited bulk commercial email.\n"),e.k0s(),e.nrm(266,"br"),e.j41(267,"p",3),e.EFF(268,"\n\u2022 To violate or encourage the violation of the legal rights of others.\n"),e.k0s(),e.nrm(269,"br"),e.j41(270,"p",3),e.EFF(271,"\n\u2022 For any unlawful, invasive, infringing, defamatory or fraudulent purpose.\n"),e.k0s(),e.nrm(272,"br"),e.j41(273,"p",3),e.EFF(274,"\n\u2022 To intentionally distribute viruses, worms, Trojan horses, corrupted files, hoaxes or other Products of a destructive or deceptive nature.\n"),e.k0s(),e.nrm(275,"br"),e.j41(276,"p",3),e.EFF(277,"\n\u2022 To interfere with the use of the Services or the equipment used to provide the Services, by Customers, Merchants or other authorized Users.\n"),e.k0s(),e.nrm(278,"br"),e.j41(279,"p",3),e.
1EFF(280,"\n\u2022 To alter, disable, interfere with or circumvent any aspect of the Services.\n"),e.k0s(),e.nrm(281,"br"),e.j41(282,"p",3),e.EFF(283,"\n\u2022 To test or reverse-engineer the Services to find limitations, vulnerabilities or evade filtering capabilities.\n"),e.k0s(),e.nrm(284,"br"),e.j41(285,"p",3),e.EFF(286,"\n\u2022 To use the Services, a component of the Services or contents of password protected pages in a manner not authorized by Onepay.\n"),e.k0s(),e.nrm(287,"br"),e.j41(288,"p",3),e.EFF(289,'\n\u2022 Your failure to comply with the AUP may result in suspension and/or termination of the Services pursuant to the Agreement.No User or other third party is authorized to use bots, spiders or other automated information-gathering devices or programming routines to "mine" information displayed, register User accounts, perform transactions and any other activities Onepay considers inappropriate. '),e.k0s(),e.nrm(290,"br"),e.j41(291,"p",3),e.EFF(292,"\n6.2. Activities Not Allowed\n"),e.k0s(),e.nrm(293,"br"),e.j41(294,"p",3),e.EFF(295,"\n\u2022 The sale, solicitation, offering, exchange or service of the following:\n"),e.k0s(),e.nrm(296,"br"),e.j41(297,"p",3),e.EFF(298,"\n\u2022 Tobacco products and related paraphernalia.\n"),e.k0s(),e.nrm(299,"br"),e.j41(300,"p",3),e.EFF(301,"\n\u2022 Prescribed pharmaceutical and controlled substances.\n"),e.k0s(),e.nrm(302,"br"),e.j41(303,"p",3),e.
1EFF(304,"\n\u2022 Imitation and replica clothing and accessories.\n"),e.k0s(),e.nrm(305,"br"),e.j41(306,"p",3),e.EFF(307,"\n\u2022 Drugs and related paraphernalia (including but not limited to research chemicals and illicit herbal incense)\n"),e.k0s(),e.nrm(308,"br"),e.j41(309,"p",3),e.EFF(310,"\n\u2022 Pre-adult content, such as pictures, videos, etc..., of individuals under the age of 18.\n"),e.k0s(),e.nrm(311,"br"),e.j41(312,"p",3),e.EFF(313,"\n\u2022 Illegal downloads or any other goods and services infringing intellectual property rights of a third party, including streaming video/audio.\n"),e.k0s(),e.nrm(314,"br"),e.j41(315,"p",3),e.EFF(316,"\n\u2022 Any goods not owned by the merchant (including but not limited to Drop shipping)\n"),e.k0s(),e.nrm(317,"br"),e.j41(318,"p",3),e.EFF(319,"\n\u2022 Credit card protection, credit repair services, applications for financial services or loans and/or collection services.\n"),e.k0s(),e.nrm(320,"br"),e.j41(321,"p",3),e.EFF(322,"\n\u2022 Payment processors or any aggregation type services.\n"),e.k0s(),e.nrm(323,"br"),e.j41(324,"p",3),e.
1EFF(325,"\n\u2022 Sites that promote hatred, racism, sexism, religious persecution and/or any other prejudicial views.\n"),e.k0s(),e.nrm(326,"br"),e.j41(327,"p",3),e.EFF(328,"\n\u2022 Services using credit card transactions as deposits or credits, including pre-loaded debit/credit/cash/virtual cards.\n"),e.k0s(),e.nrm(329,"br"),e.j41(330,"p",3),e.EFF(331,"\n\u2022 Hazardous materials, combustibles and/or corrosives.\n"),e.k0s(),e.nrm(332,"br"),e.j41(333,"p",3),e.EFF(334,"\n\u2022 Precious gems and jewellery\n"),e.k0s(),e.nrm(335,"br"),e.j41(336,"p",3),e.EFF(337,"\n\u2022 Astrological services\n"),e.k0s(),e.nrm(338,"br"),e.j41(339,"p",3),e.EFF(340,"\n\u2022 Weapons\n"),e.k0s(),e.nrm(341,"br"),e.j41(342,"p",3),e.EFF(343,"\nThe following activities are also not allowed through or in relation to Onepay:\n"),e.k0s(),e.nrm(344,"br"),e.j41(345,"p",3),e.EFF(346,"\n\u2022 Money laundering.\n"),e.k0s(),e.nrm(347,"br"),e.j41(348,"p",3),e.EFF(349,"\n\u2022 Infringing on any third party's copyright, patent, trademark, trade secret or other property rights or rights of publicity or privacy.\n"),e.k0s(),e.nrm(350,"br"),e.j41(351,"p",3),e.EFF(352,"\n\u2022 Violation of any law, statute, ordinance, contract or regulation, including but not limited to those governing financial services, consumer protection, unfair competition, anti-discrimination or false advertising.\n"),e.k0s(),e.nrm(353,"br"),e.j41(354,"p",3),e.EFF(355,"\n\u2022 Submission of altered verification documents.\n"),e.k0s(),e.nrm(356,"br"),e.j41(357,"p",3),e.EFF(358,"\n\u2022 Being misleading, false or inaccurate in respect to Onepay or any other User.\n"),e.k0s(),e.nrm(359,"br"),e.j41(360,"p",3),e.EFF(361,"\n\u2022 Any activity similar to or consisting of giving yourself a cash advance from your credit card or bank account, factoring or helping others to do so.\n"),e.k0s(),e.nrm(362,"br"),e.j41(363,"p",3),e.
1EFF(364,"\n\u2022 Any defamatory, trade libelous, unlawfully threatening or harassing statements or information.\n"),e.k0s(),e.nrm(365,"br"),e.j41(366,"p",3),e.EFF(367,"\n\u2022 Spamming.\n"),e.k0s(),e.nrm(368,"br"),e.j41(369,"p",3),e.EFF(370,"\n\u2022 Using Onepay as a virtual terminal.\n"),e.k0s(),e.nrm(371,"br"),e.j41(372,"p",3),e.EFF(373,"\n\u2022 Using currency exchangers or aggregation, unless approved by Onepay.\n"),e.k0s(),e.nrm(374,"br"),e.j41(375,"p",3),e.EFF(376,"\n\u2022 Transmitting personal information of other Onepay members to third parties.\n"),e.k0s(),e.nrm(377,"br"),e.j41(378,"p",3),e.EFF(379,"\n\u2022 Using the Onepay brand to market or advertise your product(s)/service(s) in any capacity.\n"),e.k0s(),e.nrm(380,"br"),e.j41(381,"p",3),e.EFF(382,"\n\u2022 Threatening legal action against Onepay and/or Onepay employees.\n"),e.k0s(),e.nrm(383,"br"),e.j41(384,"p",3),e.EFF(385,"\nFurthermore, anything that directly causes us to lose or become liable for, in whole or in part, the services of our sponsoring banks, Internet Service Providers or other suppliers is not allowed. If you use or attempt to use the Service for purposes other than sending and receiving payments and managing your account, including but not limited to tampering, hacking, modifying or otherwise corrupting the security or functionality of the Service, your account will be terminated and you will be subject to damages and other penalties, including criminal prosecution if necessary.\n"),e.k0s(),e.nrm(386,"br"),e.j41(387,"p",3)(388,"span",4),e.EFF(389,"7. CLOSING ACCOUNTS AND LIMITING ACCOUNT ACCESS"),e.k0s()(),e.nrm(390,"br"),e.j41(391,"p",3),e.EFF(392,"\nThis Agreement's term will begin as soon as you accept these terms and will continue as long as you use the Site or the Services and are a Onepay member.\n"),e.k0s(),e.nrm(393,"br"),e.j41(394,"p",3),e.EFF(395,"\n7.1 Activities Resulting In Account Limitation and Termination Onepay reserves the right to limit Account access and the right to terminate this Agreement without prior notice for any of the following:\n"),e.k0s(),e.nrm(396,"br"),e.j41(397,"p",3),e.EFF(398,"\na) Reporting unauthorized or unusual credit card or bank account use to your issuing bank or other issuing authority, including but not limited to Chargebacks.\n"),e.k0s(),e.nrm(399,"br"),e.j41(400,"p",3),e.EFF(401,"\nb) Abusing the reversal process by a Customer through their bank.\n"),e.k0s(),e.nrm(402,"br"),e.j41(403,"p",3),e.
1EFF(404,"\nc) Consistently failing to follow the Resolutions process before filing a complaint with their issuing bank or other issuing authority.\n"),e.k0s(),e.nrm(405,"br"),e.j41(406,"p",3),e.EFF(407,"\nd) Initiating a reversal by a Customer through their issuing bank or other issuing authority without first following the Resolutions process.e) Initiating transactions such as cash advances or assisting cash advances.\n"),e.k0s(),e.nrm(408,"br"),e.j41(409,"p",3),e.EFF(410,"\nf) Sending unsolicited email.\n"),e.k0s(),e.nrm(411,"br"),e.j41(412,"p",3),e.EFF(413,"\ng) Using the Onepay account to facilitate fraudulent activity.\n"),e.k0s(),e.nrm(414,"br"),e.j41(415,"p",3),e.EFF(416,"\nh) Violating this User Agreement in any way.\n"),e.k0s(),e.nrm(417,"br"),e.j41(418,"p",3),e.EFF(419,"\ni) Returning an incoming Electronic Funds Transfer due to insufficient funds in the bank account or an incorrect bank routing/institution and/or account number.\n"),e.k0s(),e.nrm(420,"br"),e.j41(421,"p",3),e.EFF(422,"\nj) Using an anonym zing proxy.\n"),e.k0s(),e.nrm(423,"br"),e.j41(424,"p",3),e.
1EFF(425,"\nk) Receiving excessive complaints from Customers about your account, business or service.\n"),e.k0s(),e.nrm(426,"br"),e.j41(427,"p",3),e.EFF(428,"\nl) Submitting altered verification documents.\n"),e.k0s(),e.nrm(429,"br"),e.j41(430,"p",3),e.EFF(431,"\n7.2 Actions Resulting From Engagement In Restricted Or Prohibited Activities\n"),e.k0s(),e.nrm(432,"br"),e.j41(433,"p",3),e.EFF(434,"\nIf we have reason to believe or suspect that you have engaged or plan on engaging in any restricted or prohibited activities, we may take various actions to protect Onepay, other users or you from reversals, Chargebacks, claims, fees, fines, penalties and any other activity that may render Onepay liable.\n"),e.k0s(),e.nrm(435,"br"),e.j41(436,"p",3),e.EFF(437,"\nThe actions we may take include but are not limited to the following:\n"),e.k0s(),e.nrm(438,"br"),e.j41(439,"p",3),e.EFF(440,"\nWe may close, suspend or limit your access to your Onepay account (such as limiting access to any of your payment methods and/or your ability to send money, make withdrawals or remove financial Information).\n"),e.k0s(),e.nrm(441,"br"),e.j41(442,"p",3),e.EFF(443,"\nWe may contact customers who have purchased goods or services from you, contact your bank or credit card issuer and/or warn other users, law enforcement or impacted third parties of your actions save that in such instance you will be notified first and given reasonable opportunity to provide us with additional detail that you deem relevant to our decision.\n"),e.k0s(),e.nrm(444,"br"),e.j41(445,"p",3),e.EFF(446,"\nWe may update inaccurate information you provided us.\n"),e.k0s(),e.nrm(447,"br"),e.j41(448,"p",3),e.EFF(449,"\nWe may refuse to provide the Onepay services to you in the future.\n"),e.k0s(),e.nrm(450,"br"),e.j41(451,"p",3),e.EFF(452,"\nWe may at any point ask for information regarding your business, reason for you sending or receiving the payment; and We may take legal action against you.\n"),e.k0s(),e.nrm(453,"br"),e.j41(454,"p",3),e.EFF(455,"\nOnepay will use reasonable efforts to investigate accounts that are subject to account access limitations and to reach a final decision on said limitations. By following this User Agreement, you can help protect your account from becoming limited.\n"),e.k0s(),e.nrm(456,"br"),e.j41(457,"p",3)(458,"span",4),e.EFF(459,"8. TERMINATION:"),e.k0s()(),e.nrm(460,"br"),e.j41(461,"p",3),e.EFF(462,"\n8.1 Without prejudice to any other provision for termination in this Agreement, each party shall have the right to terminate this Agreement forthwith, by giving thirty (30) days prior notice in writing to the other party upon the occurrence of any of the following events:\n"),e.k0s(),e.nrm(463,"br"),e.j41(464,"p",3),e.EFF(465,"\na) If the other party commits a breach of any of the terms and conditions of this Agreement;\n"),e.k0s(),e.nrm(466,"br"),e.j41(467,"p",3),e.EFF(468,"\nb) if the other party engages in any fraud or other illegal or unethical activities where Onepay in its reasonable judgment believes that any of the activities of the Merchant could adversely affect the reputation of Onepay\n"),e.k0s(),e.nrm(469,"br"),e.j41(470,"p",3)(471,"span",4),e.EFF(472,"9. ADDITIONAL TERMS"),e.k0s()(),e.nrm(473,"br"),e.j41(474,"p",3),e.EFF(475,"\nThis Agreement is governed by and interpreted under the laws of the Democratic Socialist Republic of Sri Lanka as such laws are applied to agreements entered into and to be performed entirely within the Democratic Socialist Republic of Sri Lanka.\n"),e.k0s(),e.nrm(476,"br"),e.j41(477,"p",3),e.EFF(478,"\nThe parties hereto agree that this agreement is drafted and executed in the English language. In the event that any indemnification applies in this Agreement then The indemnified party shall notify the indemnifying party of any such loss or claim and expense as soon as it first arises to give the indemnifying party opportunity to mitigate its own potential exposure which will include giving the indemnifying party sole right to conduct and/or settle (on terms approved by the indemnified party, such approval not to be unreasonably with
1held or delayed) all negotiations and/or the claim, all costs incurred or recovered in such negotiations or claim being for the indemnifying party\u2019s account and the indemnified party shall take all reasonable steps to prevent further loss or to mitigate loss or damage already occurred, but the indemnified party shall not, without the consent of the indemnifying party, take any steps to compromise or settle the claim.\n"),e.k0s(),e.nrm(479,"br"),e.j41(480,"p",3),e.EFF(481,"\nEULA\n"),e.k0s(),e.nrm(482,"br"),e.j41(483,"p",3),e.EFF(484,"\nThe Merchant hereby agrees that all details provided on his Onepay account are up-to-date and shall be regularly updated as soon as it is clear that those details are no longer valid.\n"),e.k0s(),e.nrm(485,"br"),e.j41(486,"p",3),e.EFF(487,"\nIt shall be the merchant\u2019s responsibility to ensure that only authorized transactions are performed by his/her customers/clients on the channels provided.\n"),e.k0s(),e.nrm(488,"br"),e.j41(489,"p",3),e.EFF(490,"\nIn the incident of chargebacks resulting from fraudulent or unauthorized card usage, the Merchant hereby agree to take responsibility, and grants Onepay the authority to effect such chargeback on his or her bank account as due.\n"),e.k0s(),e.nrm(491,"br"),e.j41(492,"p",3),e.
1EFF(493,"\nWhere the funds are no longer available in the Merchant\u2019s Onepay account, the Merchant shall fund the account or ensure availability of such funds within 48 hours of notification via details provided on the Merchant\u2019s account. This shall include email, SMS or other official communication.\n"),e.k0s(),e.nrm(494,"br"),e.j41(495,"p",3),e.EFF(496,"\nAll chargebacks incurred by Onepay on behalf of the Merchant shall be transferred to the merchant in the incidences of card fraud, unauthorized card transactions and other unethical card usage.\n"),e.k0s(),e.nrm(497,"br"),e.j41(498,"p",3),e.EFF(499,"\nThe merchant agrees to exempt Onepay of all losses or gains that may arise from exchange rate conversions on chargebacks.\n"),e.k0s(),e.nrm(500,"br"),e.j41(501,"p",3),e.EFF(502,"\nWhere it is found that the merchant promotes, encourages, incites or stimulates the inappropriate use of the services provided by Onepay, The Company reserves the right to suspend, block, ban or limit the services rendered to such account.\n"),e.k0s(),e.nrm(503,"br"),e.j41(504,"p",3),e.EFF(505,"\nA merchant shall provide as at when requested, details of customers who use Onepay via his/her platform, website or app. While Onepay shall ensure that adequate security measures are provided in processing transactions on behalf of the customer, this shall not constitute an exemption for the merchant from ensuring that adequate security measures and protocols are provided in ensuring the integrity of transactions performed through his/her platform.\n"),e.k0s(),e.nrm(506,"br"),e.j41(507,"p",3),e.EFF(508,"\nThe merchant understands that Onepay\u2019s services are provided in goodwill and agrees to ensure fair usage of the services provided by Onepay and will not engage in unethical/unfair usage of the said services. This shall include but not limited to spamming, fraudulent activities, scamming, and other practices which may put the image or reputation of Onepay or its partners into disrepute.\n"),e.k0s(),e.nrm(509,"br"),e.j41(510,"p",3),e.EFF(511,"\nLast Updated: 20-07-2021\n"),e.k0s()()()())},styles:["body[_ngcontent-%COMP%]{margin:25px;font-size:12px}h1[_ngcontent-%COMP%]{text-align:center;text-transform:capitalize;margin:25px}.title[_ngcontent-%COMP%]{font-size:20px}.p-body[_ngcontent-%COMP%]{font-size:15px;text-align:justify;font-style:italic}.hard[_ngcontent-%COMP%]{font-weight:600}.list-li[_ngcontent-%COMP%]{font-weight:900;font-size:40px}.next-btn[_ngcontent-%COMP%]{text-align:center}.next-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#00f;color:#fff;border-radius:.6rem;text-align:center;padding:10px;margin:10px;border:none}"]})}return n})();var ps=bn(90570);function Gs(n,a){1&n&&e.nrm(0,"nb-badge",27)}function Bd(n,a){1&n&&e.nrm(0,"nb-badge",28)}function Ia(n,a){1&n&&e.nrm(0,"nb-badge",29)}function Kc(n,a){1&n&&e.nrm(0,"nb-badge",30)}function Vs(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",17),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.updateAppHandler())}),e.EFF(1," Update "),e.k0s()}}function fr(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",17),e.bIt("click",function(){e.eBV(t);const i=e.XpG(),s=e.sdS(51);return e.Njj(i.openModalHandler(s))}),e.EFF(1," Re-Activate App "),e.k0s()}}function bo(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",17),e.bIt("click",function(){e.eBV(t);const i=e.XpG(),s=e.sdS(49);return e.Njj(i.openModalHandler(s))}),e.EFF(1," Deactivate App "),e.k0s()}}function Cs(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",17),e.bIt("click",function(){e.eBV(t);const i=e.XpG(),s=e.sdS(49);return e.Njj(i.openModalHandler(s))}),e.EFF(1," Deactivate Permanently "),e.k0s()}}function yo(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",17),e.bIt("click",function(){e.eBV(t);const i=e.XpG(),s=e.sdS(53);return e.Njj(i.openModalHandler(s))}),e.EFF(1," Request to go Live "),e.k0s()}}function Go(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",31),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.navigateConfig(i.app.app_id))}),e.EFF(1," App Configurations "),e.k0s()}}function Ml(n,a){if(1&n&&e.nrm(0,"ngx-copy-text",50),2&n){const t=e.XpG(2);e.Y8G("text",t.app.app_id)}}function kr(n,a){if(1&n&&e.nrm(0,"ngx-copy-text",50),2&n){const t=e.XpG(2);e.Y8G("text",t.app.app_token)}}function $l(n,a){if(1&n&&e.nrm(0,"ngx-copy-text",50),2&n){const t=e.XpG(2);e.Y8G("text",t.app.hash_salt)}}function ol(n,a){if(1&n&&e.nrm(0,"ngx-copy-text",50),2&n){const t=e.XpG(2);e.Y8G("text",t.app.callback_url)}}function gl(n,a){if(1&n&&e.nrm(0,"ngx-copy-text",50),2&n){const t=e.XpG(2);e.Y8G("text",t.app.callback_token)}}function ql(n,a){1&n&&(e.j41(0,"div",37)(1,"div",38),e.EFF(2,"Status"),e.k0s(),e.j41(3,"div",39),e.EFF(4,":"),e.k0s(),e.j41(5,"div",54)(6,"div",55),e.nrm(7,"nb-badge",56),e.k0s()()())}function Mu(n,a){if(1&n&&(e.qex(0),e.j41(1,"div",43),e.nrm(2,"hr",44),e.k0s(),e.j41(3,"div",45)(4,"h6",46),e.EFF(5,"Authorization"),e.k0s()(),e.DNE(6,ql,8,0,"div",51),e.j41(7,"div",37)(8,"div",38),e.EFF(9,"VPN CIDR"),e.k0s(),e.j41(10,"div",39),e.EFF(11,":"),e.k0s(),e.j41(12,"div",52),e.nrm(13,"textarea",53),e.k0s()(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(6),e.Y8G("ngIf",t.app.is_approved)}}function cu(n,a){if(1&n){const t=e.RV6();e.j41(0,"nb-card",32)(1,"nb-card-header")(2,"div",33)(3,"h4",34),e.EFF(4,"App Details"),e.k0s(),e.j41(5,"button",35),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(null==i.modal_ref?null:i.modal_ref.close())}),e.j41(6,"a"),e.nrm(7,"i",36),e.k0s()()()(),e.j41(8,"nb-card-body")(9,"div",37)(10,"div",38),e.EFF(11,"App Name"),e.k0s(),e.j41(12,"div",39),e.EFF(13,":"),e.k0s(),e.j41(14,"div",40),e.EFF(15),e.k0s()(),e.j41(16,"div",37)(17,"div",38),e.EFF(18,"App ID"),e.k0s(),e.j41(19,"div",39),e.EFF(20,":"),e.k0s(),e.j41(21,"div",40),e.EFF(22),e.DNE(23,Ml,1,1,"ngx-copy-text",41),e.k0s()(),e.j41(24,"div",37)(25,"div",38),e.EFF(26,"App Token"),e.k0s(),e.j41(27,"div",39),e.EFF(28,":"),e.k0s(),e.j41(29,"div",40),e.EFF(30),e.nI1(31,"truncateText"),e.DNE(32,kr,1,1,"ngx-copy-text",41),e.j41(33,"button",42),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.refreshAppToken())}),e.EFF(34," Change "),e.k0s()()(),e.j41(35,"div",37)(36,"div",38),e.EFF(37,"Hash Salt"),e.k0s(),e.j41(38,"div",39),e.EFF(39,":"),e.k0s(),e.j41(40,"div",40),e.EFF(41),e.DNE(42,$l,1,1,"ngx-copy-text",41),e.k0s()(),e.j41(43,"div",37)(44,"div",38),e.EFF(45,"Description"),e.k0s(),e.j41(46,"div",39),e.EFF(47,":"),e.k0s(),e.j41(48,"div",40),e.EFF(49),e.k0s()(),e.j41(50,"div",37)(51,"div",38),e.EFF(52,"Services"),e.k0s(),e.j41(53,"div",39),e.EFF(54,":"),e.k0s(),e.j41(55,"div",40),e.EFF(56),e.k0s()(),e.j41(57,"div",43),e.nrm(58,"hr",44),e.k0s(),e.j41(59,"div",45)(60,"h6",46),e.EFF(61,"Status Callback"),e.k0s()(),e.j41(62,"div",37)(63,"div",38),e.EFF(64,"Callback URL"),e.k0s(),e.j41(65,"div",39),e.EFF(66,":"),e.k0s(),e.j41(67,"div",40),e.EFF(68),e.DNE(69,ol,1,1,"ngx-copy-text",41),e.k0s()(),e.j41(70,"div",37)(71,"div",38),e.EFF(72,"Callback Token"),e.k0s(),e.j41(73,"div",39),e.EFF(74,":"),e.k0s(),e.j41(75,"div",40),e.EFF(76),e.DNE(77,gl,1,1,"ngx-copy-text",41),e.k0s()(),e.DNE(78,Mu,14,1,"ng-container",47),e.k0s(),e.j41(79,"nb-card-footer")(80,"div",48)(81,"button",49),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(null==i.modal_ref?null:i.modal_ref.close())}),e.EFF(82,"Close"),e.k0s()()()()}if(2&n){const t=e.XpG();e.R7$(15),e.JRh(t.app.app_name||"Not Available"),e.R7$(7),e.SpI(" ",t.app.app_id||"Not Available"," "),e.R7$(),e.Y8G("ngIf",t.app.app_id),e.R7$(7),e.SpI(" ",e.i5U(31,16,t.app.app_token,50)," "),e.R7$(2),e.Y8G("ngIf",t.app.app_token),e.R7$(),e.Y8G("disabled",t.is_loading)("nbSpinner",t.is_loading),e.R7$(8),e.SpI(" ",t.app.hash_salt||"Not Available"," "),e.R7$(),e.Y8G("ngIf",t.app.hash_salt),e.R7$(7),e.JRh(t.app.app_description||"Not Available"),e.R7$(7),e.JRh(t.getServiceString(t.app.assign_providers)),e.R7$(12),e.SpI(" ",t.app.callback_url||"Not Available"," "),e.R7$(),e.Y8G("ngIf",t.app.callback_url),e.R7$(7),e.SpI(" ",t.app.callback_token||"Not Available"," "),e.R7$(),e.Y8G("ngIf",t.app.callback_token),e.R7$(),e.Y8G("ngIf",t.app.is_approved)}}function af(n,a){1&n&&(e.j41(0,"li"),e.EFF(1,"Field is required."),e.k0s())}function _d(n,a){if(1&n&&(e.j41(0,"ul",76),e.DNE(1,af,2,0,"li",47),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",null==t.is_permanent||null==t.is_permanent.errors?null:t.is_permanent.errors.required)}}function Gd(n,a){if(1&n&&(e.j41(0,"div",70)(1,"label",71),e.EFF(2," Deativation Type "),e.j41(3,"span",64),e.EFF(4,"*"),e.k0s()(),e.j41(5,"div",65)(6,"nb-radio-group",72)(7,"nb-radio",73),e.EFF(8,"Temporary Deactivate"),e.k0s(),e.j41(9,"nb-radio",74),e.EFF(10,"Permanently Deactivate"),e.k0s()(),e.DNE(11,_d,2,1,"ul",75),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(11),e.Y8G("ngIf",t.isFieldInvalid("is_permanent"))}}function to(n,a){1&n&&(e.j41(0,"li"),e.EFF(1,"Reason is required."),e.k0s())}function Vd(n,a){if(1&n&&(e.j41(0,"ul",77),e.DNE(1,to,2,0,"li",47),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",null==t.reason||null==t.reason.errors?null:t.reason.errors.required)}}function we(n,a){if(1&n){const t=e.RV6();e.j41(0,"form",57),e.bIt("ngSubmit",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.deactivateApp())}),e.j41(1,"nb-card",58)(2,"nb-card-header")(3,"div",33)(4,"h4",34),e.EFF(5),e.k0s(),e.j41(6,"button",59),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(null==i.modal_ref?null:i.modal_ref.close())}),e.j41(7,"a"),e.nrm(8,"i",36),e.k0s()()()(),e.j41(9,"nb-card-body")(10,"div",60)(11,"span",38),e.EFF(12,"App Name"),e.k0s(),e.j41(13,"span",39),e.EFF(14,":"),e.k0s(),e.j41(15,"span",40),e.EFF(16),e.k0s()(),e.j41(17,"div",60)(18,"span",38),e.EFF(19,"App ID"),e.k0s(),e.j41(20,"span",39),e.EFF(21,":"),e.k0s(),e.j41(22,"span",40),e.EFF(23),e.k0s()(),e.DNE(24,Gd,12,1,"div",61),e.j41(25,"div",62)(26,"label",63),e.EFF(27," Reason "),e.j41(28,"span",64),e.EFF(29,"*"),e.k0s()(),e.j41(30,"div",65)(31,"textarea",66),e.EFF(32," "),e.k0s(),e.DNE(33,Vd,2,1,"ul",67),e.k0s()()(),e.j41(34,"nb-card-footer")(35,"div",48)(36,"button",68),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(null==i.modal_ref?null:i.modal_ref.close())}),e.EFF(37,"Close"),e.k0s(),e.j41(38,"button",69),e.EFF(39," Deactivate "),e.k0s()()()()()}if(2&n){const t=e.XpG();e.Y8G("formGroup",t.deactivate_app_form),e.R7$(5),e.JRh(t.app.is_active?"Deactivate App":"Permanently Deactivate App"),e.R7$(11),e.JRh(t.app.app_name||"Not Available"),e.R7$(7),e.JRh(t.app.app_id||"Not Available"),e.R7$(),e.Y8G("ngIf",t.app.is_active),e.R7$(7),e.Y8G("status",t.isFieldInvalid("reason")?"danger":"basic"),e.R7$(2),e.Y8G("ngIf",t.isFieldInvalid("reason")),e.R7$(5),e.Y8G("nbSpinner",t.is_loading)("disabled",t.deactivate_app_form.invali
1d||t.is_loading)}}function jc(n,a){if(1&n&&(e.j41(0,"strong"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.JRh(t.app.app_name)}}function zs(n,a){if(1&n){const t=e.RV6();e.j41(0,"nb-card",78)(1,"nb-card-header")(2,"div",33)(3,"h4",34),e.EFF(4,"Re-activate App"),e.k0s(),e.j41(5,"button",35),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(null==i.modal_ref?null:i.modal_ref.close())}),e.j41(6,"a"),e.nrm(7,"i",36),e.k0s()()()(),e.j41(8,"nb-card-body")(9,"div",43)(10,"p"),e.EFF(11,"Are you sure you want to re-activate "),e.DNE(12,jc,2,1,"strong",47),e.EFF(13,"?"),e.k0s(),e.j41(14,"p"),e.EFF(15,"Do not delete?"),e.k0s()()(),e.j41(16,"nb-card-footer")(17,"div",48)(18,"button",79),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(null==i.modal_ref?null:i.modal_ref.close())}),e.EFF(19,"Close"),e.k0s(),e.j41(20,"button",80),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.reactivateApp())}),e.EFF(21," Re-activate "),e.k0s()()()()}if(2&n){const t=e.XpG();e.R7$(12),e.Y8G("ngIf",t.app.app_name),e.R7$(8),e.Y8G("nbSpinner",t.is_loading)("disabled",t.is_loading)}}function Ss(n,a){1&n&&(e.j41(0,"li"),e.EFF(1,"Field is required."),e.k0s())}function zd(n,a){if(1&n&&(e.j41(0,"ul",77),e.DNE(1,Ss,2,0,"li",47),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",null==t.ips||null==t.ips.errors?null:t.ips.errors.required)}}function Ou(n,a){1&n&&(e.j41(0,"li"),e.EFF(1,"Please agree to the terms and conditions."),e.k0s())}function Du(n,a){if(1&n&&(e.j41(0,"ul",77),e.DNE(1,Ou,2,0,"li",47),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",(null==t.check||null==t.check.errors?null:t.check.errors.required)||!t.check.value)}}function Ud(n,a){if(1&n){const t=e.RV6();e.j41(0,"form",57),e.bIt("ngSubmit",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.requestGoLive())}),e.j41(1,"nb-card",81)(2,"nb-card-header")(3,"div",33)(4,"h4",34),e.EFF(5,"Request to Go Live"),e.k0s(),e.j41(6,"button",59),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(null==i.modal_ref?null:i.modal_ref.close())}),e.j41(7,"a"),e.nrm(8,"i",36),e.k0s()()()(),e.j41(9,"nb-card-body")(10,"div",60)(11,"span",38),e.EFF(12,"App Name"),e.k0s(),e.j41(13,"span",39),e.EFF(14,":"),e.k0s(),e.j41(15,"span",40),e.EFF(16),e.k0s()(),e.j41(17,"div",60)(18,"span",38),e.EFF(19,"App ID"),e.k0s(),e.j41(20,"span",39),e.EFF(21,":"),e.k0s(),e.j41(22,"span",40),e.EFF(23),e.k0s()(),e.j41(24,"div",62)(25,"label",63),e.EFF(26," Request permission for CIDR "),e.j41(27,"span",64),e.EFF(28,"*"),e.k0s()(),e.j41(29,"div",65)(30,"textarea",82),e.EFF(31," "),e.k0s(),e.DNE(32,zd,2,1,"ul",67),e.k0s()(),e.j41(33,"div",83)(34,"span",84),e.EFF(35,"Note"),e.k0s(),e.j41(36,"p"),e.EFF(37,"After you request to go live you cannot make any modification without onepay administrator permission."),e.k0s()(),e.j41(38,"div",85)(39,"nb-checkbox",86),e.EFF(40," Agreed with onepay payment gateway "),e.j41(41,"a",87),e.bIt("click",function(i){e.eBV(t);const s=e.XpG(),p=e.sdS(55);return e.Njj(s.openAgreementHandler(i,p))}),e.EFF(42," terms and conditions "),e.k0s()(),e.DNE(43,Du,2,1,"ul",67),e.k0s()(),e.j41(44,"nb-card-footer")(45,"div",48)(46,"button",68),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(null==i.modal_ref?null:i.modal_ref.close())}),e.EFF(47,"Close"),e.k0s(),e.j41(48,"button",88),e.EFF(49," Request to go live "),e.k0s()()()()()}if(2&n){const t=e.XpG();e.Y8G("formGroup",t.request_live_form),e.R7$(16),e.JRh(t.app.app_name||"Not Available"),e.R7$(7),e.JRh(t.app.app_id||"Not Available"),e.R7$(7),e.Y8G("status",t.isFieldInvalid("ips")?"danger":"basic"),e.R7$(2),e.Y8G("ngIf",t.isFieldInvalid("ips")),e.R7$(11),e.Y8G("ngIf",t.isFieldInvalid("check")),e.R7$(5),e.Y8G("nbSpinner",t.is_loading)("disabled",t.request_live_form.invalid||!t.check.value||t.is_loading)}}function Es(n,a){if(1&n){const t=e.RV6();e.j41(0,"nb-card",89)(1,"nb-card-header")(2,"div",33)(3,"h4",34),e.EFF(4,"Merchant Agreement"),e.k0s(),e.j41(5,"button",35),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(null==i.agreement_modal_ref?null:i.agreement_modal_ref.close())}),e.j41(6,"a"),e.nrm(7,"i",36),e.k0s()()()(),e.j41(8,"nb-card-body"),e.nrm(9,"ngx-onepay-agreement"),e.k0s(),e.j41(10,"nb-card-footer")(11,"div",48)(12,"button",90),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.agreeTerms())}),e.EFF(13,"Agree"),e.k0s()()()()}}let Ol=(()=>{class n{constructor(t,r,i,s,p,g,S){this.dialogService=t,this.fb=r,this.developerService=i,this.toastr=s,this.updateDeveloperDetailsComponent=p,this.router=g,this.packageService=S,this.onGetApps=new e.bkB,this.onUpdateApp=new e.bkB,this.is_loading=!1,this.modal_ref=null,this.agreement_modal_ref=null,this.deactivate_app_form=null,this.request_live_form=null,this.deactivate_app_form=this.fb.group({is_permanent:["0",[ie.k0.required]],reason:["",ie.k0.required]}),this.request_live_form=this.fb.group({ips:["",ie.k0.required],check:[!1,[ie.k0.required]]})}ngOnInit(){}get is_permanent(){return this.deactivate_app_form.get("is_permanent")}get reason(){return this.deactivate_app_form.get("reason")}get ips(){return this.request_live_form.get("ips")}get check(){return this.request_live_form.get("check")}getServiceString(t){let r="";if(t)for(let i=0;i<t.length;i++)r+=t[i]?.ipg_provider_name,i<t.length-1&&(r+=" / ");return r}refreshAppToken(){this.is_loading=!0,this.developerService.refreshAppToken({app_id:this.app.id}).then(r=>{this.is_loading=!1,100===r?.status?(this.app.app_token=r?.data?.token,this.toastr.showToast("success","Success!","App token was refreshed.")):this.toastr.showToast("danger","Error
1!",r?.message||"Refreshing app token failed.")},r=>{this.is_loading=!1,console.log("Internal Server Error",r),this.toastr.showToast("danger","Error!","Internal Server Error.")})}deactivateApp(){this.is_loading=!0;let t={is_permanent:this.app.is_active?parseInt(this.is_permanent.value):1,app_id:this.app.id,reason:this.reason.value};this.developerService.deactivateApp(t).then(r=>{this.is_loading=!1,100===r?.status?(parseInt(this.is_permanent.value)?this.toastr.showToast("success","Success!","App deactivated permanently."):this.toastr.showToast("success","Success!","App deactivated temporary."),this.deactivate_app_form.reset(),this.modal_ref.close(),setTimeout(()=>{this.updateDeveloperDetailsComponent.getDeveloperDetails(),this.onGetApps.emit()},500)):this.toastr.showToast("danger","Error!",r?.message||"Deactivating app failed.")},r=>{this.is_loading=!1,console.log("Internal Server Error",r),this.toastr.showToast("danger","Error!","Internal Server Error.")})}reactivateApp(){this.is_loading=!0,this.developerService.reactivateApp({app_id:this.app.id}).then(r=>{this.is_loading=!1,100===r?.status?(this.toastr.showToast("success","Success!","App reactivated successfully"),this.modal_ref.close(),setTimeout(()=>{this.onGetApps.emit()},500)):this.toastr.showToast("danger","Error!",r?.message||"App reactivation failed.")},r=>{this.is_loading=!1,console.log("Internal Server Error",r),this.toastr.showToast("danger","Error!","Internal Server Error.")})}requestGoLive(){this.is_loading=!0;let t=this.request_live_form.value.ips.split(/\r?\n/),r=[];t.forEach(s=>{s&&r.push(s)}),this.developerService.requestGoLive({ips:r,app_id:this.app.id}).then(s=>{this.is_loading=!1,100===s?.status?(this.toastr.showToast("success","Success!","App submitted for approval sucessfully."),this.request_live_form.reset(),this.modal_ref.close(),setTimeout(()=>{this.updateDeveloperDetailsComponent.getDeveloperDetails(),this.onGetApps.emit()},500)):this.toastr.showToast("danger","Error!",s?.message||"App submission for approval failed.")},s=>{this.is_loading=!1,console.log("Internal Server Error",s),this.toastr.showToast("danger","Error!","Internal Server Error.")})}agreeTerms(){this.check.setValue(!0),this.agreement_modal_ref.close()}isFieldInvalid(t){let r=!1,i=null;switch(t){case"is_permanent":case"reason":i=this.deactivate_app_form.get(t);break;case"ips":case"check":i=this.request_live_form.get(t);break;default:return}return i&&(i?.dirty||i?.touched)&&(r="check"===t?!this.check.value:i?.invalid&&i?.errors&&!0),r}openModalHandler(t){this.modal_ref=this.dialogService.open(t,{closeOnBackdropClick:!1})}updateAppHandler(){this.onUpdateApp.emit(this.app)}openAgreementHandler(t,r){t.preventDefault(),t.stopPropagation(),this.agreement_modal_ref=this.dialogService.open(r,{closeOnBackdropClick:!1})}navigateConfig(t){this.router.navigate(["/pages/developer-configurations/checkout-settings/"+t])}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(E.S0W),e.rXU(ie.ok),e.rXU(Mt.fR),e.rXU(Dt.V4),e.rXU(fs),e.rXU(qe.Ix),e.rXU(Mt.Y0))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-ipg-app"]],inputs:{app:"app",package_details:"package_details"},outputs:{onGetApps:"onGetApps",onUpdateApp:"onUpdateApp"},decls:56,vars:26,consts:[["viewAppModal",""],["deactivateAppModal",""],["reActivateAppModal",""],["goLiveAppModal",""],["merchantAgreementAppModal",""],[1,"py-3","px-1","mb-4","ipg-app-root"],[1,"d-flex","align-items-center","mb-3","header"],[1,"col-7"],[1,"col-3","d-flex","justify-content-end","align-items-center"],["status","success","position","center","text","Live",4,"ngIf"],["status","danger","position","center","text","Temp. Disabled",4,"ngIf"],["status","warning","position","center","text","Pending Approval",4,"ngIf"],["status","basic","position","center","text","On Development",4,"ngIf"],[1,"col-1"],[1,"btn-group"],["type","button","data-toggle","dropdown","aria-expanded","false",1,"btn","btn-sm","btn-light",2,"border-radius","50%","padding-left","12px"],[1,"dropdown-menu","dropdown-menu-right"],["type","button",1,"dropdown-item","dropdown-item",3,"click"],["class","dropdown-item dropdown-item","type","button",3,"click",4,"ngIf"],["class","dropdown-item","type","button",3,"click",4,"ngIf"],[1,"col","mb-4","description"],[1,"col","d-flex","flex-column"],[1,"d-flex","justify-content-start","align-items-center","mb-1"],[1,"col-3","pl-0","details-1"],[1,"col-1","details-1"],[1,"col-8","details-2"],[1,"d-flex","justify-content-start","align-items-start"],["status","success","position","center","text","Live"],["status","danger","position","center","text","Temp. Disabled"],["status","warning","position","center","text","Pending Approval"],["status","basic","position","center","text","On Development"],["type","button",1,"dropdown-item",3,"click"],[1,"popup-modal-root","ipg-app-view-modal"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"sub-heading"],[1,"btn","p-0",2,"color","rgba(0, 0, 0, 0.5)",3,"click"],["size","2px",1,"fas","fa-times"],[1,"row","mb-2"],[1,"col-3","details-left"],[1,"col-1","details-left"],[1,"col-8","details-right"],[3,"text",4,"ngIf"],["nbButton","","status","danger","size","tiny","nbSpinnerStatus","danger","nbSpinnerSize","tiny",3,"click","disabled","nbSpinner"],[1,"col"],[1,"my-4"],[1,"col","mb-3"],[1,"sub-heading-2"],[4,"ngIf"],[1,"col","d-flex","justify-content-end","align-items-center"],["nbButton","","status","basic",3,"click"],[3,"text"],["class","row mb-2",4,"ngIf"],[1,"col-4"],["nbInput","","fullWidth","","rows","3","placeholder","*\n192.168.8.1\n172.16.
117.30/20","readonly","",1,"col"],[1,"col-3","d-flex","justify-content-start","align-items-center"],[1,"col",2,"position","relative"],["status","success","position","center","text","Approved",2,"position","absolute","left","0"],[3,"ngSubmit","formGroup"],[1,"popup-modal-root","ipg-app-deactivate-modal"],["type","button",1,"btn","p-0",2,"color","rgba(0, 0, 0, 0.5)",3,"click"],[1,"d-flex","justify-content-start","align-items-start","mb-2"],["class","col d-flex flex-column justify-content-start align-items-start mt-3",4,"ngIf"],[1,"col","d-flex","flex-column","justify-content-start","align-items-start","my-3"],["for","deactivate-ipg-app-form-reason",1,"col","px-0","mb-2"],[1,"form-required-sign"],[1,"col","d-flex","flex-column","justify-content-start","align-items-stretch","px-0"],["id","deactivate-ipg-app-form-reason","nbInput","","fullWidth","","rows","3","placeholder","Enter your reason","formControlName","reason","name","reason",3,"status"],["class","col error-wrapper",4,"ngIf"],["nbButton","","status","basic","size","small","type","button",1,"mr-1",3,"click"],["nbButton","","status","danger","size","small","nbSpinnerStatus","danger","type","submit",3,"nbSpinner","disabled"],[1,"col","d-flex","flex-column","justify-content-start","align-items-start","mt-3"],["for","deactivate-ipg-app-form-is-permanent",1,"col","px-0","mb-2"],["formControlName","is_permanent","name","is_permanent","status","primary",1,"d-flex","justify-content-around","align-items-center"],["value","0"],["value","1"],["class","error-wrapper",4,"ngIf"],[1,"error-wrapper"],[1,"col","error-wrapper"],[1,"popup-modal-root","ipg-app-re-activate-modal"],["nbButton","","status","basic","size","small",1,"mr-1",3,"click"],["nbButton","","status","primary","size","small","nbSpinnerStatus","success","type","submit",1,"primary-green-btn",2,"text-transform","none !important",3,"click","nbSpinner","disabled"],[1,"popup-modal-root","ipg-app-go-live-modal"],["id","deactivate-ipg-app-form-reason","nbInput","","fullWidth","","rows","3","placeholder","*\n192.168.8.1\n172.16.17.30/20","formControlName","ips","name","ips",3,"status"],[1,"col","d-flex","flex-column","mb-3","note"],[1,"mb-2"],[1,"col","d-flex","flex-column","justify-content-start","align-items-stretch"],["formControlName","check","name","check","status","primary"],[2,"cursor","pointer","color","blue",3,"click"],["nbButton","","status","primary","size","small","nbSpinnerStatus","success","type","submit",1,"primary-green-btn",3,"nbSpinner","disabled"],[1,"popup-modal-root","ipg-app-m-agreement-modal"],["nbButton","","status","primary","size","small",3,"click"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",5)(1,"div",6)(2,"h5",7),e.EFF(3),e.nI1(4,"truncateText"),e.k0s(),e.j41(5,"div",8),e.DNE(6,Gs,1,0,"nb-badge",9)(7,Bd,1,0,"nb-badge",10)(8,Ia,1,0,"nb-badge",11)(9,Kc,1,0,"nb-badge",12),e.k0s(),e.j41(10,"div",13)(11,"div",14)(12,"button",15),e.EFF(13," \u2807 "),e.k0s(),e.j41(14,"div",16)(15,"button",17),e.bIt("click",function(){e.eBV(s);const g=e.sdS(47);return e.Njj(i.openModalHandler(g))}),e.EFF(16," View "),e.k0s(),e.DNE(17,Vs,2,0,"button",18)(18,fr,2,0,"button",18)(19,bo,2,0,"button",18)(20,Cs,2,0,"button",18)(21,yo,2,0,"button",18)(22,Go,2,0,"button",19),e.k0s()()()(),e.j41(23,"div",20)(24,"h6"),e.EFF(25,"Description"),e.k0s(),e.j41(26,"p"),e.EFF(27),e.nI1(28,"truncateText"),e.k0s()(),e.j41(29,"div",21)(30,"div",22)(31,"span",23),e.EFF(32,"APP ID"),e.k0s(),e.j41(33,"span",24),e.EFF(34,":"),e.k0s(),e.j41(35,"span",25),e.EFF(36),e.nI1(37,"truncateText"),e.k0s()(),e.j41(38,"div",26)(39,"span",23),e.EFF(40,"Services"),e.k0s(),e.j41(41,"span",24),e.EFF(42,":"),e.k0s(),e.j41(43,"span",25),e.EFF(44),e.nI1(45,"truncateText"),e.k0s()()()(),e.DNE(46,cu,83,19,"ng-template",null,0,e.C5r)(48,we,40,9,"ng-template",null,1,e.C5r)(50,zs,22,3,"ng-template",null,2,e.C5r)(52,Ud,50,8,"ng-template",null,3,e.C5r)(54,Es,14,0,"ng-template",null,4,e.C5r)}2&r&&(e.R7$(3),e.JRh(e.i5U(4,14,i.app.app_name,15)),e.R7$(3),e.Y8G("ngIf",i.app.is_approved&&i.app.is_active),e.R7$(),e.Y8G("ngIf",!i.app.is_active),e.R7$(),e.Y8G("ngIf",!i.app.is_approved&&i.app.is_submit_approve&&i.app.is_active),e.R7$(),e.Y8G("ngIf",!i.app.is_submit_approve&&i.app.is_active),e.R7$(8),e.Y8G("ngIf",!i.app.is_approved&&!i.app.is_submit_approve),e.R7$(),e.Y8G("ngIf",!i.app.is_active),e.R7$(),e.Y8G("ngIf",i.app.is_active),e.R7$(),e.Y8G("ngIf",!i.app.is_active),e.R7$(),e.Y8G("ngIf",i.app.is_active&&!i.app.is_submit_approve),e.R7$(),e.Y8G("ngIf","Standard"!==i.package_details.package_name&&i.app.is_active),e.R7$(5),e.JRh(e.i5U(28,17,i.app.app_description,120)),e.R7$(9),e.JRh(e.i5U(37,20,i.app.app_id,25)),e.R7$(8),e.JRh(e.i5U(45,23,i.getServiceString(i.app.assign_providers),100)))},dependencies:[ie.qT,ie.me,ie.BC,ie.cb,ie.j4,ie.JD,Fe.bT,E.SrT,E.KH5,E.VDm,E.zJv,E.YP2,E.XIt,E.yZH,E.zwc,E.i6h,E.XyX,E.DMy,Pl.a,aa,ps._],styles:[".ipg-app-root[_ngcontent-%COMP%]{min-height:16rem;font-family:Inter,sans-serif;font-style:normal;background:#fff;border:1px solid #A0AEC0;box-sizing:border-box;border-radius:7px}.ipg-app-root[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-family:inherit!important;font-weight:500;font-size:16px;color:#0075ff!important;text-overflow:ellipsis;overflow:hidden}.ipg-app-root[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-family:inherit!important;font-weight:500;font-size:9px;color:#fff;margin-left:auto}.ipg-app-root[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]{font-family:inherit!important;font-size:13px;font-weight:500;color:#0009;padding:.45rem 1rem}.ipg-app-root[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]:active{color:#fff;background-color:nb-theme(color-primary-default);outline:none}.ipg-app-root[_ngcontent-%COMP%] .description[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:inherit!important;font-weight:500;font-size:14px}.ipg-app-root[_ngcontent-%COMP%] .description[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-family:inherit!important;font-style:normal;font-weight:400;font-size:12px;color:#5e5e5e;word-wrap:break-word}.ipg-app-root[_ngcontent-%COMP%] span.details-1[_ngcontent-%COMP%]{font-family:inherit!important;font-weight:500;font-size:13px;color:#454545;word-wrap:break-word}.ipg-app-root[_ngcontent-%COMP%] span.details-2[_ngcontent-%COMP%]{font-family:inherit!important;font-weight:400;font-size:12px;color:#5e5e5e;word-wrap:break-word}.ipg-app-view-modal[_ngcontent-%COMP%]{width:45rem}@media (max-width: 1000px){.ipg-app-view-modal[_ngcontent-%COMP%]{width:100%}}.ipg-app-deactivate-modal[_ngcontent-%COMP%]{width:32rem}.ipg-app-re-activate-modal[_ngcontent-%COMP%]{width:25rem}.ipg-app-re-activate-modal[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-weight:400;font-size:13px;color:#000c}.ipg-app-re-activate-modal[_ngcontent-%COMP%] p[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:600;font-size:13px;color:#000}.ipg-app-go-live-modal[_ngcontent-%COMP%]{width:33rem}.ipg-app-go-live-modal[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:500;font-size:13px;color:#000}.ipg-app-go-live-modal[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-weight:400;font-size:13px;color:#fd0000}.ipg-app-m-agreement-modal[_ngcontent-%COMP%]{width:50rem}@media (max-width: 1000px){.ipg-app-deactivate-modal[_ngcontent-%COMP%]{width:100%}}"]})}return n})();function du(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",17)(1,"ngx-ipg-app",18),e.bIt("onGetApps",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.getData(!0))})("onUpdateApp",function(i){e.eBV(t);
1const s=e.XpG(2),p=e.sdS(21);return e.Njj(s.updateAppHandler(i,p))}),e.k0s()()}if(2&n){const t=a.$implicit,r=e.XpG(2);e.R7$(),e.Y8G("app",t)("package_details",r.package_details)}}function Yd(n,a){if(1&n&&(e.j41(0,"div",15),e.DNE(1,du,2,2,"div",16),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.ipg_apps)}}function bc(n,a){1&n&&(e.j41(0,"div",19)(1,"h6"),e.EFF(2,"No apps are available!"),e.k0s()())}function Jc(n,a){1&n&&(e.j41(0,"li"),e.EFF(1,"App name is required."),e.k0s())}function Ef(n,a){1&n&&(e.j41(0,"li"),e.EFF(1,"App name is in invalid format."),e.k0s())}function uu(n,a){if(1&n&&(e.j41(0,"ul",45),e.DNE(1,Jc,2,0,"li",46)(2,Ef,2,0,"li",46),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",null==t.app_name||null==t.app_name.errors?null:t.app_name.errors.required),e.R7$(),e.Y8G("ngIf",null==t.app_name||null==t.app_name.errors?null:t.app_name.errors.pattern)}}function fu(n,a){1&n&&(e.j41(0,"li"),e.EFF(1,"Description is required."),e.k0s())}function Qo(n,a){if(1&n&&(e.j41(0,"ul",45),e.DNE(1,fu,2,0,"li",46),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",null==t.description||null==t.description.errors?null:t.description.errors.required)}}function sl(n,a){if(1&n){const t=e.RV6();e.j41(0,"nb-checkbox",49),e.bIt("change",function(i){const s=e.eBV(t).$implicit,p=e.XpG(3);return e.Njj(p.onProviderChange(i.target.checked,s.id))}),e.EFF(1),e.k0s()}if(2&n){const t=a.$implicit;e.Y8G("checked",t.state),e.R7$(),e.SpI(" ",t.provider_name," ")}}function Pf(n,a){if(1&n&&(e.qex(0),e.j41(1,"div",47),e.DNE(2,sl,2,2,"nb-checkbox",48),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.ipg_providers)}}function Wd(n,a){1&n&&(e.j41(0,"span",50),e.EFF(1,"There are no available service providers at this moment."),e.k0s())}function of(n,a){1&n&&(e.j41(0,"li"),e.EFF(1,"Invalid callback url."),e.k0s())}function vd(n,a){if(1&n&&(e.j41(0,"ul",45),e.DNE(1,of,2,0,"li",46),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",null==t.callback_url||null==t.callback_url.errors?null:t.callback_url.errors.pattern)}}function Zc(n,a){1&n&&(e.j41(0,"li"),e.EFF(1,"Callback token is in invalid format. "),e.k0s())}function xd(n,a){if(1&n&&(e.j41(0,"ul",45),e.DNE(1,Zc,2,0,"li",46),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",null==t.callback_token||null==t.callback_token.errors?null:t.callback_token.errors.pattern)}}function Qc(n,a){if(1&n){const t=e.RV6();e.j41(0,"form",20),e.bIt("ngSubmit",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.addUpdateApp())}),e.j41(1,"nb-card",21)(2,"nb-card-header")(3,"div",6)(4,"h4",13),e.EFF(5),e.k0s(),e.j41(6,"button",22),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.cancel())}),e.j41(7,"a"),e.nrm(8,"i",23),e.k0s()()()(),e.j41(9,"nb-card-body")(10,"div",24)(11,"label",25),e.EFF(12," App Name "),e.j41(13,"span",26),e.EFF(14,"*"),e.k0s()(),e.j41(15,"div",27),e.nrm(16,"input",28),e.DNE(17,uu,3,2,"ul",29),e.k0s()(),e.j41(18,"div",24)(19,"label",30),e.EFF(20," Description "),e.j41(21,"span",26),e.EFF(22,"*"),e.k0s()(),e.j41(23,"div",27)(24,"textarea",31),e.EFF(25," "),e.k0s(),e.DNE(26,Qo,2,1,"ul",29),e.k0s()(),e.j41(27,"div",24)(28,"label",30),e.EFF(29," Attached Services "),e.j41(30,"span",26),e.EFF(31,"*"),e.k0s()(),e.j41(32,"div",32),e.DNE(33,Pf,3,1,"ng-container",33)(34,Wd,2,0,"ng-template",null,2,e.C5r),e.k0s()(),e.j41(36,"div",34)(37,"h6",35),e.EFF(38,"Status Callback Configuration"),e.k0s(),e.j41(39,"div",36)(40,"label",37),e.EFF(41," Callback URL "),e.k0s(),e.j41(42,"div",38),e.nrm(43,"input",39),e.DNE(44,vd,2,1,"ul",29),e.k0s()(),e.j41(45,"div",24)(46,"label",40),e.EFF(47," Callback Token "),e.k0s(),e.j41(48,"div",38),e.nrm(49,"input",41),e.DNE(50,xd,2,1,"ul",29),e.k0s()()()(),e.j41(51,"nb-card-footer")(52,"div",42)(53,"button",43),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.cancel())}),e.EFF(54,"Cancel"),e.k0s(),e.j41(55,"button",44),e.EFF(56),e.k0s()()()()()}if(2&n){const t=e.sdS(35),r=e.XpG();e.Y8G("formGroup",r.add_update_form),e.R7$(5),e.JRh(r.is_update?"Update App":"App New App"),e.R7$(11),e.Y8G("status",r.isFieldInvalid("app_name")?"danger":"basic"),e.R7$(),e.Y8G("ngIf",r.isFieldInvalid("app_name")),e.R7$(7),e.Y8G("status",r.isFieldInvalid("description")?"danger":"basic"),e.R7$(2),e.Y8G("ngIf",r.isFieldInvalid("description")),e.R7$(7),e.Y8G("ngIf",r.ipg_providers&&r.ipg_providers.length>0)("ngIfElse",t),e.R7$(10),e.Y8G("status",r.isFieldInvalid("callback_url")?"danger":"basic"),e.R7$(),e.Y8G("ngIf",r.isFieldInvalid("callback_url")),e.R7$(5),e.Y8G("status",r.isFieldInvalid("callback_token")?"danger":"basic"),e.R7$(),e.Y8G("ngIf",r.isFieldInvalid("callback_token")),e.R7$(5),e.Y8G("nbSpinner",r.is_requesting)("disabled",!(r.add_update_form.valid&&r.is_valid_providers())||r.is_requesting),e.R7$(),e.SpI(" ",r.is_update?"Update":"Add"," ")}}let Iu=(()=>{class n{constructor(t,r,i,s,p,g){this.dialogService=t,this.fb=r,this.developerService=i,this.toastr=s,this.packageService=p,this.encriptionService=g,this.xu_data=localStorage.getItem("xu"),this.is_loading=!1,this.is_requesting=!1,this.is_update=!1,this.ipg_apps=[],this.ipg_providers=[],this.modal_ref=null,this.add_update_form=null,this.add_update_form=this.fb.group({id:[""],app_name:["",[ie.k0.required,ie.k0.pattern("[a-zA-Z0-9 ;
1:@'.,?!*/%#&_+-=]+$")]],description:["",ie.k0.required],callback_url:["",ie.k0.pattern("https?://(www.)?([^S]+).([^S]+)(.[^S]+)*(/[^S]+)*")],callback_token:["",[ie.k0.pattern("[a-zA-Z0-9 ;:'@.,?!%*_/#&+-=]+$")]]})}get id(){return this.add_update_form.get("id")}get app_name(){return this.add_update_form.get("app_name")}get description(){return this.add_update_form.get("description")}get callback_url(){return this.add_update_form.get("callback_url")}get callback_token(){return this.add_update_form.get("callback_token")}ngOnInit(){this.getData({isInOnInit:!0}),this.getCurrentPackageDetails()}getData({onlyIpgApps:t=!1,isInOnInit:r=!1}){var i=this;return(0,Pt.A)(function*(){r&&(i.is_loading=!0);let s=null;try{s=t?yield i.developerService.getIPGApps():yield Promise.all([i.developerService.getIPGApps(),i.developerService.getIpgProviders()]),i.is_loading=!1;const p=Array.isArray(s)?s[0]:s,g=s[1];if(p&&100===p?.status){const S=p?.data;i.ipg_apps=S}else i.toastr.showToast("danger","Error!",s?.message||"Getting ipg apps failed.");t||(g&&100===g?.status?i.ipg_providers=g?.data.map(S=>({...S,state:!1})):i.toastr.showToast("danger","Error!",s?.message||"Getting ipg providers failed."))}catch(p){i.is_loading=!1,console.log("Internal Server Error",p),i.toastr.showToast("danger","Error!","Internal Server Error.")}})()}getCurrentPackageDetails(){this.is_loading=!0;const t=this.encriptionService.response_decript(this.xu_data)?.user_id;this.packageService.getCurentPackageDetails(t).then(r=>{this.is_loading=!1,console.log("getCurrentPackageDetails",r),r&&100===r?.status?this.package_details=r?.data:this.toastr.showToast("danger","Error!",r?.message||"Getting package details failed.")},r=>{this.is_loading=!1,console.log("Internal Server Error",r),this.toastr.showToast("danger","Error!","Internal Server Error.")})}addUpdateApp(){var t=this;return(0,Pt.A)(function*(){t.is_requesting=!0;let r=[];for(let p=0;p<t.ipg_providers.length;p++)t.is_update?r.push(t.ipg_providers[p].state?{id:t.ipg_providers[p].id,is_delete:!1}:{id:t.ipg_providers[p].id,is_delete:!0}):t.ipg_providers[p].state&&r.push(t.ipg_providers[p].id);let i={app_id:t.id.value,app_name:t.app_name.value,description:t.description.value,services:r,callback_url:t.callback_url.value,callback_token:t.callback_token.value},s=null;try{s=t.is_update?yield t.developerService.updateApp(i):yield t.developerService.addApp(i),t.is_requesting=!1,100===s?.status?(t.toastr.showToast("success","Success!",t.is_update?"App updated successfully.":"App added successfully."),t.cancel(),setTimeout(()=>{t.getData({onlyIpgApps:!0})},500)):t.toastr.showToast("danger","Error!","decryption error"===s?.message?"Please provide valid characters.":s?.message||(t.is_update?"Updating app failed.":"Adding new app failed."))}catch(p){t.is_requesting=!1,console.log("Internal Server Error",p),t.toastr.showToast("danger","Error!","Internal Server Error.")}})()}isFieldInvalid(t){let r=!1;const i=this.add_update_form.get(t);return i?.invalid&&(i?.dirty||i?.touched)&&i?.errors&&(r=!0),r}cancel(){this.add_update_form.reset(),this.is_update=!1,this.modal_ref.close(),this.ipg_providers=this.ipg_providers.map(t=>({...t,state:!1}))}is_valid_providers(){return!!this.ipg_providers.filter(r=>r.state).length}onProviderChange(t,r){const i=this.ipg_providers.findIndex(s=>s.id===r);this.ipg_providers[i].state=t}addNewAppHandler(t){this.modal_ref=this.dialogService.open(t,{closeOnBackdropClick:!1})}updateAppHandler(t,r){this.is_update=!0;const i=t?.assign_providers.map(s=>s.ipg_provider_id);this.ipg_providers=[...this.ipg_providers].map(s=>({...s,state:i?.includes(s.id)})),this.add_update_form.setValue({id:t?.id,app_name:t?.app_name,description:t?.app_description,callback_url:t?.callback_url,callback_token:t?.callback_token}),this.modal_ref=this.dialogService.open(r,{closeOnBackdropClick:!1})}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(E.S0W),e.rXU(ie.ok),e.rXU(Mt.fR),e.rXU(Dt.V4),e.rXU(Mt.Y0),e.rXU(Mt.Vv))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-ipg-apps"]],decls:22,vars:3,consts:[["noAppsDiv",""],["addUpdateAppModal",""],["noIpgProviders",""],[1,"body-style"],[1,"container"],[1,"row","mb-4"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"page-heading"],["nbButton","","status","success","size","medium",1,"primary-green-btn",3,"click"],[1,"row"],[1,"col"],[3,"onGetApps"],["nbSpinnerStatus","primary","nbSpinnerSize","large",2,"min-height","20rem",3,"nbSpinner"],[1,"sub-heading"],["class","mt-4 row align-items-start",4,"ngIf","ngIfElse"],[1,"mt-4","row","align-items-start"],["class","col-12 col-lg-6 col-xxl-4",4,"ngFor","ngForOf"],[1,"col-12","col-lg-6","col-xxl-4"],[3,"onGetApps","onUpdateApp","app","package_details"],[1,"w-100","d-flex","justify-content-center","align-items-center","text-center","dashboard-no-data-div","no-apps-div"],[3,"ngSubmit","formGroup"],[1,"popup-modal-root","ipg-app-add-update-modal"],["type","button",1,"btn","p-0",2,"color","rgba(0, 0, 0, 0.5)",3,"click"],["size","2px",1,"fas","fa-times"],[1,"d-flex","align-items-start","mb-3"],["for","ipg-app-add-update-form-name",1,"col-3","mt-2"],[1,"form-required-sign"],[1,"col","d-flex","flex-column","justify-content-start","align-items-stretch"],["id","ipg-app-add-update-form-name","type","text","nbInput","","fullWidth","","placeholder","New app name","formControlName","app_name","name","app_name",3,"status"],["class","error-wrapper",4,"ngIf"],["for","ipg-app-add-update-form-description",1,"col-3","mt-2"],["id","ipg-app-add-update-form-description","rows","3","type","text","nbInput","","fullWidth","","placeholder","Description","formControlName","description","name","description",3,"status"],[1,"col","d-flex","justify-content-start","align-items-stretch"],[4,"ngIf","ngIfElse"],[1,"col","mt-4"],[1,"sub-heading-2"],[1,"d-flex","align-items-start","mt-4","mb-3"],["for","ipg-app-add-update-form-url",1,"col-3","px-0","mt-2"],[1,"col","d-flex","flex-column","justify-content-start","align-items-stretch","px-0"],["id","ipg-app-add-update-form-url","type","text","nbInput","","fullWidth","","placeholder","Callback URL","formControlName","callback_url","name","callback_url",3,"status"],["for","ipg-app-add-update-form-token",1,"col-3","px-0","mt-2"],["id","ipg-app-add-update-form-token","type","text","nbInput","","fullWidth","","placeholder","Callback token","formControlName","callback_token","name","callback_token",3,"status"],[1,"col","d-flex","justify-content-end","align-items-center"],["nbButton","","status","basic","type","button",1,"mr-1",3,"click"],["nbButton","","status","primary","nbSpinnerStatus","success","type","submit",1,"primary-green-btn",3,"nbSpinner","disabled"],[1,"error-wrapper"],[4,"ngIf"],[1,"col","px-0","flex-wrap"],["status","primary","class","mr-4",3,"checked","change",4,"ngFor","ngForOf"],["status","primary",1,"mr-4",3,"change","checked"],[1,"mt-2","no-ipg-proviers"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6)(4,"h2",7),e.EFF(5,"IPG Apps"),e.k0s(),e.j41(6,"button",8),e.bIt("click",function(){e.eBV(s);
1const g=e.sdS(21);return e.Njj(i.addNewAppHandler(g))}),e.EFF(7," Add New App "),e.k0s()()(),e.j41(8,"div",9)(9,"div",10)(10,"ngx-update-developer-details",11),e.bIt("onGetApps",function(){return e.eBV(s),e.Njj(i.getData({onlyIpgApps:!0}))}),e.k0s()()(),e.j41(11,"div",9)(12,"div",10)(13,"nb-card",12)(14,"nb-card-body")(15,"h4",13),e.EFF(16,"Created Apps"),e.k0s(),e.DNE(17,Yd,2,1,"div",14)(18,bc,3,0,"ng-template",null,0,e.C5r),e.k0s()()()()()(),e.DNE(20,Qc,57,15,"ng-template",null,1,e.C5r)}if(2&r){const s=e.sdS(19);e.R7$(13),e.Y8G("nbSpinner",i.is_loading),e.R7$(4),e.Y8G("ngIf",i.ipg_apps&&i.ipg_apps.length>0)("ngIfElse",s)}},dependencies:[ie.qT,ie.me,ie.BC,ie.cb,ie.j4,ie.JD,Fe.Sq,Fe.bT,E.SrT,E.KH5,E.VDm,E.zJv,E.YP2,E.zwc,E.i6h,E.DMy,fs,Ol],styles:[".no-apps-div[_ngcontent-%COMP%]{height:14rem}.no-apps-div[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{color:#0000008c!important;font-weight:600!important;word-wrap:break-word}.ipg-app-add-update-modal[_ngcontent-%COMP%]{width:45rem}.ipg-app-add-update-modal[_ngcontent-%COMP%] .no-ipg-proviers[_ngcontent-%COMP%]{font-weight:500;font-size:12px;color:#000c}@media (max-width: 1000px){.ipg-app-add-update-modal[_ngcontent-%COMP%]{width:100%}.ipg-app-add-update-modal[_ngcontent-%COMP%] .no-ipg-proviers[_ngcontent-%COMP%]{font-weight:500;font-size:12px;color:#000c}}"]})}return n})();var yc=bn(30960),sc=bn(45312);const ed=(n,a)=>({clicked:n,clicked2:a}),ju=(n,a,t)=>({itemsPerPage:n,currentPage:a,totalItems:t}),ll=n=>({"form-control-danger":n});function Ru(n,a){if(1&n&&e.nrm(0,"ngx-copy-text",37),2&n){const t=e.XpG().$implicit;e.Y8G("text",t.transaction_link)}}function Rc(n,a){if(1&n&&(e.j41(0,"span",38),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.Y8G("ngClass",t.badgeInfo.customClass),e.R7$(),e.SpI(" ",t.badgeInfo.text," ")}}function Vr(n,a){1&n&&(e.j41(0,"span",45),e.EFF(1," Deleted "),e.k0s())}function bd(n,a){1&n&&(e.j41(0,"span",46),e.EFF(1," Expired "),e.k0s())}function ro(n,a){1&n&&(e.j41(0,"span",47),e.EFF(1," Partially Paid "),e.k0s())}function $d(n,a){1&n&&(e.j41(0,"span",48),e.EFF(1," Pending "),e.k0s())}function Lc(n,a){1&n&&(e.j41(0,"span",49),e.EFF(1," Success "),e.k0s())}function td(n,a){1&n&&(e.j41(0,"span",49),e.EFF(1," Success "),e.k0s())}function Sa(n,a){1&n&&(e.j41(0,"span",48),e.EFF(1," Pending "),e.k0s())}function Xl(n,a){if(1&n&&(e.j41(0,"span"),e.DNE(1,td,2,0,"span",43)(2,Sa,2,0,"span",42),e.k0s()),2&n){const t=e.XpG(2).$implicit;e.R7$(),e.Y8G("ngIf",!0===t.is_complete),e.R7$(),e.Y8G("ngIf",!1===t.is_complete)}}function $a(n,a){1&n&&(e.j41(0,"span",50),e.EFF(1," Not Available "),e.k0s())}function qd(n,a){if(1&n&&(e.qex(0),e.DNE(1,Vr,2,0,"span",39)(2,bd,2,0,"span",40)(3,ro,2,0,"span",41)(4,$d,2,0,"span",42)(5,Lc,2,0,"span",43)(6,Xl,3,2,"span",23)(7,$a,2,0,"span",44),e.bVm()),2&n){const t=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",!0===t.is_delete),e.R7$(),e.Y8G("ngIf",!0!==t.is_delete&&!0===t.is_expired),e.R7$(),e.Y8G("ngIf",!0!==t.is_delete&&!0!==t.is_expired&&"Partially Paid"===t.status),e.R7$(),e.Y8G("ngIf",!0!==t.is_delete&&!0!==t.is_expired&&"Pending"===t.status),e.R7$(),e.Y8G("ngIf",!0!==t.is_delete&&!0!==t.is_expired&&"Success"===t.status),e.R7$(),e.Y8G("ngIf",!0!==t.is_delete&&!0!==t.is_expired&&"Partially Paid"!==t.status&&"Pending"!==t.status&&"Success"!==t.status),e.R7$(),e.Y8G("ngIf",void 0===t.is_delete&&void 0===t.is_expired&&void 0===t.is_complete&&!t.status)}}function Dl(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",51)(1,"button",52),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,s=e.XpG(2),p=e.sdS(70);return e.Njj(s.openModal(p,i,"view"))}),e.j41(2,"span"),e.nrm(3,"nb-icon",53),e.k0s(),e.j41(4,"span",54),e.EFF(5," View Link "),e.k0s()(),e.j41(6,"button",55),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,s=e.XpG(2),p=e.sdS(74);return e.Njj(s.openModal(p,i,"update"))}),e.j41(7,"span"),e.nrm(8,"nb-icon",56),e.k0s(),e.j41(9,"span",54),e.EFF(10," Update Link "),e.k0s()(),e.j41(11,"button",52),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,s=e.XpG(2),p=e.sdS(78);return e.Njj(s.openModal(p,i,"view"))}),e.j41(12,"span"),e.nrm(13,"nb-icon",57),e.k0s(),e.j41(14,"span",54),e.
1EFF(15," Payment Summary "),e.k0s()(),e.j41(16,"button",55),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,s=e.XpG(2),p=e.sdS(76);return e.Njj(s.openModal(p,i,"delete"))}),e.j41(17,"span"),e.nrm(18,"nb-icon",58),e.k0s(),e.j41(19,"span",54),e.EFF(20," Delete Link "),e.k0s()()()}if(2&n){const t=e.XpG().$implicit;e.R7$(6),e.AVh("disabled",!0===t.is_delete),e.Y8G("disabled",!0===t.is_delete),e.R7$(10),e.AVh("disabled",!0===t.is_delete),e.Y8G("disabled",!0===t.is_delete)}}function Ps(n,a){1&n&&(e.j41(0,"div",51)(1,"div",59)(2,"span"),e.EFF(3,"Actions unavailable for deleted links"),e.k0s()()())}function Vo(n,a){if(1&n&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td")(4,"p")(5,"strong"),e.EFF(6,"Name: "),e.k0s(),e.EFF(7),e.k0s(),e.j41(8,"p")(9,"strong"),e.EFF(10,"Email: "),e.k0s(),e.EFF(11),e.k0s(),e.j41(12,"p")(13,"strong"),e.EFF(14,"Phone number: "),e.k0s(),e.EFF(15),e.k0s()(),e.j41(16,"td"),e.EFF(17),e.nI1(18,"number"),e.k0s(),e.j41(19,"td")(20,"div",28)(21,"a",29),e.EFF(22),e.nI1(23,"truncateText"),e.k0s(),e.DNE(24,Ru,1,1,"ngx-copy-text",30),e.k0s()(),e.j41(25,"td",31)(26,"div",32),e.DNE(27,Rc,2,2,"span",33)(28,qd,8,7,"ng-container",23),e.k0s()(),e.j41(29,"td"),e.EFF(30),e.k0s(),e.j41(31,"td")(32,"div",34),e.nrm(33,"img",35),e.DNE(34,Dl,21,6,"div",36)(35,Ps,4,0,"div",36),e.k0s()()()),2&n){const t=a.$implicit,r=e.XpG(2);e.R7$(2),e.JRh((null==t?null:t.reference_no)||"Not Available"),e.R7$(5),e.SpI(" ",t.customer_first_name||t.customer_last_name?(null==t?null:t.customer_first_name)+" "+(null==t?null:t.customer_last_name):"Not Available"," "),e.R7$(4),e.JRh((null==t?null:t.customer_email)||"Not Available"),e.R7$(4),e.JRh(t.customer_mobile_no||"Not Available"),e.R7$(2),e.Lme("",t.currency||"LKR"," ",t.formatted_amount||e.i5U(18,16,t.amount,"1.2-2")||"0.00",""),e.R7$(4),e.AVh("disabled-link",!0===t.is_delete),e.Y8G("href",null==t?null:t.transaction_link,e.B4B),e.R7$(),e.SpI(" ",e.i5U(23,19,null==t?null:t.transaction_link,25)," "),e.R7$(2),e.Y8G("ngIf",t.transaction_link&&!0!==t.is_delete),e.R7$(3),e.Y8G("ngIf",t.badgeInfo),e.R7$(),e.Y8G("ngIf",!t.badgeInfo),e.R7$(2),e.JRh(r.convertToDateTime(t.expire_datetime)||"Not Available"),e.R7$(4),e.Y8G("ngIf",!0!==t.is_delete),e.R7$(),e.Y8G("ngIf",!0===t.is_delete)}}function Xo(n,a){if(1&n&&(e.j41(0,"tbody"),e.DNE(1,Vo,36,22,"tr",27),e.nI1(2,"paginate"),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",e.i5U(2,1,t.payment_links,e.sMw(4,ju,t.page_size,t.page,t.payment_links_count)))}}function as(n,a){1&n&&(e.j41(0,"div",60)(1,"div",61)(2,"span",62),e.EFF(3,"Loading..."),e.k0s()()())}function os(n,a){1&n&&(e.j41(0,"div",63)(1,"h6"),e.EFF(2,"No data available!"),e.k0s()())}function Ye(n,a){if(1&n){const t=e.RV6();e.j41(0,"pagination-controls",64),e.bIt("pageChange",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.pageChanged(i))})("pageBoundsCorrection",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.pageChanged(i))}),e.k0s()}}function Jn(n,a){1&n&&e.nrm(0,"nb-badge",82)}function ee(n,a){1&n&&e.nrm(0,"nb-badge",83)}function bt(n,a){if(1&n&&e.nrm(0,"ngx-copy-text",37),2&n){const t=e.XpG(2);e.Y8G("text",t.active_payment_link.reference_no)}}function Be(n,a){if(1&n&&e.nrm(0,"ngx-copy-text",37),2&n){const t=e.XpG(2);e.Y8G("text",t.active_payment_link.transaction_link)}}function J(n,a){if(1&n&&(e.j41(0,"span",38),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.Y8G("ngClass",t.active_payment_link.badgeInfo.customClass),e.R7$(),e.SpI(" ",t.active_payment_link.badgeInfo.text," ")}}function me(n,a){1&n&&(e.j41(0,"span",45),e.EFF(1," Deleted "),e.k0s())}function se(n,a){1&n&&(e.j41(0,"span",46),e.EFF(1," Expired "),e.k0s())}function Ue(n,a){1&n&&(e.j41(0,"span",47),e.EFF(1," Partially Paid "),e.k0s())}function nn(n,a){1&n&&(e.j41(0,"span",48),e.EFF(1," Pending "),e.k0s())}function fn(n,a){1&n&&(e.j41(0,"span",49),e.EFF(1," Success "),e.k0s())}function Ci(n,a){1&n&&(e.j41(0,"span",49),e.EFF(1," Success "),e.k0s())}function Di(n,a){1&n&&(e.j41(0,"span",48),e.EFF(1," Pending "),e.k0s())}function or(n,a){if(1&n&&(e.j41(0,"span"),e.DNE(1,Ci,2,0,"span",43)(2,Di,2,0,"span",42),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",!0===(null==t.active_payment_link?null:t.active_payment_link.is_complete)),e.R7$(),e.Y8G("ngIf",!1===(null==t.active_payment_link?null:t.active_payment_link.is_complete))}}function oa(n,a){if(1&n&&(e.qex(0),e.DNE(1,me,2,0,"span",39)(2,se,2,0,"span",40)(3,Ue,2,0,"span",41)(4,nn,2,0,"span",42)(5,fn,2,0,"span",43)(6,or,3,2,"span",23),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",!0===(null==t.active_payment_link?null:t.active_payment_link.is_delete)),e.R7$(),e.Y8G("ngIf",!0!==(null==t.active_payment_link?null:t.active_payment_link.is_delete)&&!0===(null==t.active_payment_link?null:t.active_payment_link.is_expired)),e.R7$(),e.Y8G("ngIf",!0!==(null==t.active_payment_link?null:t.active_payment_link.is_delete)&&!0!==(null==t.active_payment_link?null:t.active_payment_link.is_expired)&&"Partially Paid"===(null==t.active_payment_link?null:t.active_payment_link.status)),e.R7$(),e.Y8G("ngIf",!0!==(null==t.active_payment_link?null:t.active_payment_link.is_delete)&&!0!==(null==t.active_payment_link?null:t.active_payment_link.is_expired)&&"Pending"===(null==t.active_payment_link?null:t.active_payment_link.status)),e.R7$(),e.Y8G("ngIf",!0!==(null==t.active_payment_link?null:t.active_payment_link.is_delete)&&!0!==(null==t.active_payment_link?null:t.active_payment_link.is_expired)&&"Success"===(null==t.active_payment_link?null:t.active_payment_link.status)),e.R7$(),e.Y8G("ngIf",!0!==(null==t.active_payment_link?null:t.active_payment_link.is_delete)&&!0!==(null==t.active_payment_link?null:t.active_payment_link.is_expired)&&!(null!=t.active_payment_link&&t.active_payment_link.status))}}function Hr(n,a){if(1&n){const t=e.RV6();e.j41(0,"nb-card",65)(1,"nb-card-header")(2,"div",8)(3,"h4",13),e.EFF(4,"Payment Link Details"),e.k0s(),e.j41(5,"button",66),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(null==i.modal_ref?null:i.modal_ref.close())}),e.j41(6,"a"),e.nrm(7,"i",67),e.k0s()()()(),e.j41(8,"nb-card-body")(9,"div",68)(10,"h6",69),e.EFF(11,"Payment Details"),e.k0s()(),e.j41(12,"div",70)(13,"span",71),e.EFF(14,"Amount"),e.k0s(),e.j41(15,"span",72),e.EFF(16,":"),e.k0s(),e.j41(17,"span",73),e.EFF(18),e.k0s()(),e.j41(19,"div",70)(20,"span",71),e.EFF(21,"Payment Type"),e.k0s(),e.j41(22,"span",72),e.EFF(23,":"),e.k0s(),e.j41(24,"div",74)(25,"div",75),e.DNE(26,Jn,1,0,"nb-badge",76)(27,ee,1,0,"nb-badge",77),e.k0s()()(),e.j41(28,"div",70)(29,"span",71),e.EFF(30,"Reference Number"),e.k0s(),e.j41(31,"span",72),e.EFF(32,":"),e.k0s(),e.j41(33,"span",73),e.EFF(34),e.DNE(35,bt,1,1,"ngx-copy-text",3
10),e.k0s()(),e.j41(36,"div",70)(37,"span",71),e.EFF(38,"Transaction Link"),e.k0s(),e.j41(39,"span",72),e.EFF(40,":"),e.k0s(),e.j41(41,"span",73)(42,"a",78),e.EFF(43),e.nI1(44,"truncateText"),e.k0s(),e.DNE(45,Be,1,1,"ngx-copy-text",30),e.k0s()(),e.j41(46,"div",70)(47,"span",71),e.EFF(48,"Link Status"),e.k0s(),e.j41(49,"span",72),e.EFF(50,":"),e.k0s(),e.j41(51,"div",74)(52,"div",75),e.DNE(53,J,2,2,"span",33)(54,oa,7,6,"ng-container",23),e.k0s()()(),e.j41(55,"div",70)(56,"span",71),e.EFF(57,"Payment Link Description"),e.k0s(),e.j41(58,"span",72),e.EFF(59,":"),e.k0s(),e.j41(60,"span",73),e.EFF(61),e.nI1(62,"truncateText"),e.k0s()(),e.j41(63,"div",11),e.nrm(64,"hr",79),e.k0s(),e.j41(65,"div",68)(66,"h6",69),e.EFF(67,"Customer Details"),e.k0s()(),e.j41(68,"div",70)(69,"span",71),e.EFF(70,"Customer Name"),e.k0s(),e.j41(71,"span",72),e.EFF(72,":"),e.k0s(),e.j41(73,"span",73),e.EFF(74),e.k0s()(),e.j41(75,"div",70)(76,"span",71),e.EFF(77,"Customer Contact"),e.k0s(),e.j41(78,"span",72),e.EFF(79,":"),e.k0s(),e.j41(80,"span",73),e.EFF(81),e.k0s()(),e.j41(82,"div",70)(83,"span",71),e.EFF(84,"Customer Email"),e.k0s(),e.j41(85,"span",72),e.EFF(86,":"),e.k0s(),e.j41(87,"span",73),e.EFF(88),e.k0s()(),e.j41(89,"div",70)(90,"span",71),e.EFF(91,"Created Date & Time"),e.k0s(),e.j41(92,"span",72),e.EFF(93,":"),e.k0s(),e.j41(94,"span",73),e.EFF(95),e.nI1(96,"date"),e.k0s()(),e.j41(97,"div",70)(98,"span",71),e.EFF(99,"Expire Date"),e.k0s(),e.j41(100,"span",72),e.EFF(101,":"),e.k0s(),e.j41(102,"span",73),e.EFF(103),e.k0s()(),e.j41(104,"div",11),e.nrm(105,"hr",79),e.k0s(),e.j41(106,"div",68)(107,"h6",69),e.EFF(108,"App Details"),e.k0s()(),e.j41(109,"div",70)(110,"span",71),e.EFF(111,"App ID"),e.k0s(),e.j41(112,"span",72),e.EFF(113,":"),e.k0s(),e.j41(114,"span",73),e.EFF(115),e.k0s()()(),e.j41(116,"nb-card-footer")(117,"div",80)(118,"button",81),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(null==i.modal_ref?null:i.modal_ref.close())}),e.EFF(119,"Close"),e.k0s()()()()}if(2&n){let t;const r=e.XpG();e.R7$(18),e.Lme("",(null==r.active_payment_link?null:r.active_payment_link.currency)||"LKR"," ",(null==r.active_payment_link?null:r.active_payment_link.formatted_amount)||(null!=r.active_payment_link&&r.active_payment_link.amount?r.formatNumberWithCommas(r.active_payment_link.amount):"0.00"),""),e.R7$(8),e.Y8G("ngIf",null==r.active_payment_link?null:r.active_payment_link.is_partial_payments),e.R7$(),e.Y8G("ngIf",!(null!=r.active_payment_link&&r.active_payment_link.is_partial_payments)),e.R7$(7),e.SpI(" ",(null==r.active_payment_link?null:r.active_payment_link.reference_no)||"Not Available"," "),e.R7$(),e.Y8G("ngIf",(null==r.active_payment_link?null:r.active_payment_link.reference_no)&&!0!==(null==r.active_payment_link?null:r.active_payment_link.is_delete)),e.R7$(7),e.AVh("disabled-link",!0===(null==r.active_payment_link?null:r.active_payment_link.is_delete)),e.Y8G("href",null==r.active_payment_link?null:r.active_payment_link.transaction_link,e.B4B),e.R7$(),e.SpI(" ",e.i5U(44,20,(null==r.active_payment_link?null:r.active_payment_link.transaction_link)||"Not Available",50)," "),e.R7$(2),e.Y8G("ngIf",(null==r.active_payment_link?null:r.active_payment_link.transaction_link)&&!0!==(null==r.active_payment_link?null:r.active_payment_link.is_delete)),e.R7$(8),e.Y8G("ngIf",null==r.active_payment_link?null:r.active_payment_link.badgeInfo),e.R7$(),e.Y8G("ngIf",!(null!=r.active_payment_link&&r.active_payment_link.badgeInfo)),e.R7$(7),e.SpI(" ",e.i5U(62,23,(null==r.active_payment_link?null:r.active_payment_link.pl_description)||"Not Available",150)," "),e.R7$(13),e.SpI(" ",null!=r.active_payment_link&&r.active_payment_link.customer_first_name&&null!=r.active_payment_link&&r.active_payment_link.customer_last_name?r.active_payment_link.customer_first_name+" "+r.active_payment_link.customer_last_name:"Not Available"," "),e.R7$(7),e.SpI(" ",(null==r.active_payment_link?null:r.active_payment_link.customer_mobile_no)||"Not Available"," "),e.R7$(7),e.SpI(" ",(null==r.active_payment_link?null:r.active_payment_link.customer_email)||"Not Available"," "),e.R7$(7),e.SpI(" ",null!==(t=e.i5U(96,26,null==r.active_payment_link?null:r.active_payment_link.created_at,"yyyy-MM-dd"))&&void 0!==t?t:"Not Available"," "),e.R7$(8),e.SpI(" ",(null==r.active_payment_link?null:r.active_payment_link.expire_datetime)||"Not Available"," "),e.R7$(12),e.SpI(" ",(null==r.active_payment_link?null:r.active_payment_link.app_id)||"Not Available"," ")}}function Ea(n,a){if(1&n&&(e.j41(0,"option",146),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.Y8G("value",t.code),e.R7$(),e.SpI(" ",t.code," ")}}function xr(n,a){1&n&&(e.j41(0,"small",147),e.EFF(1," Currency is required! "),e.k0s())}function Fa(n,a){1&n&&(e.j41(0,"small",148),e.EFF(1," Amount is required! "),e.k0s())}function hs(n,a){if(1&n&&(e.j41(0,"small",148),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI(" Minimum amount is ","LKR"===t.generate_p_link_form.get("currency").value?"LKR 100.00":t.generate_p_link_form.get("currency").value+" 1.00"," ")}}function Ka(n,a){if(1&n&&(e.j41(0,"div",149),e.nrm(1,"i",150),e.EFF(2),e.k0s()),2&n){const t=e.XpG(3);
1e.R7$(2),e.SpI(" Partial payments are available when amount > ","LKR"===t.currency.value?"LKR 100,000":t.currency.value+" 100"," ")}}function nd(n,a){1&n&&(e.j41(0,"small",148),e.EFF(1," Minimum payable amount is required! "),e.k0s())}function Wr(n,a){if(1&n&&(e.j41(0,"small",148),e.EFF(1),e.nI1(2,"number"),e.nI1(3,"number"),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.E5c(" Amount must be between ",e.i5U(2,3,t.calculateMinimumPayableAmount(),"1.2-2")," and ",e.i5U(3,6,t.calculateMaximumPayableAmount(),"1.2-2")," ",t.currency.value," ")}}function Hl(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",93)(1,"div",151)(2,"label",97),e.EFF(3," Minimum Payable Amount "),e.j41(4,"span",98),e.EFF(5,"*"),e.k0s()(),e.j41(6,"div",152)(7,"input",153),e.bIt("input",function(i){e.eBV(t);const s=e.XpG(3);return e.Njj(s.onMinPayableInput(i))})("blur",function(i){e.eBV(t);const s=e.XpG(3);return e.Njj(s.onMinPayableBlur(i))})("focus",function(i){e.eBV(t);const s=e.XpG(3);return e.Njj(s.onMinPayableFocus(i))}),e.k0s(),e.j41(8,"span",154),e.EFF(9),e.k0s()(),e.j41(10,"span",155),e.EFF(11),e.nI1(12,"number"),e.nI1(13,"number"),e.k0s(),e.j41(14,"div",156),e.DNE(15,nd,2,0,"small",106)(16,Wr,4,9,"small",106),e.k0s()()()}if(2&n){const t=e.XpG(3);e.R7$(7),e.Y8G("value",t.minimum_payable_amount.value?t.formattedMinPayable||t.formatNumberWithCommas(t.minimum_payable_amount.value):""),e.R7$(2),e.JRh(t.currency.value),e.R7$(2),e.SjE(" Minimum payable amount must be between ",t.getMinimumPayablePercentage(),"% to 100% of the total amount. (Range: ",e.i5U(12,9,t.calculateMinimumPayableAmount(),"1.2-2")," ",t.currency.value," to ",e.i5U(13,12,t.calculateMaximumPayableAmount(),"1.2-2")," ",t.currency.value,") "),e.R7$(4),e.Y8G("ngIf",t.generate_p_link_form.get("minimum_payable_amount").invalid&&(t.generate_p_link_form.get("minimum_payable_amount").dirty||t.generate_p_link_form.get("minimum_payable_amount").touched)),e.R7$(),e.Y8G("ngIf",t.minimum_payable_amount.value&&!t.checkMinimumPayableAmount())}}function Ms(n,a){1&n&&(e.j41(0,"small",147),e.EFF(1," Description is required! "),e.k0s())}function sf(n,a){if(1&n&&(e.j41(0,"nb-option",146),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.Y8G("value",(null==t?null:t.app_id)||(null==t?null:t.id)),e.R7$(),e.SpI(" ",(null==t?null:t.app_name)||(null==t?null:t.name)||"Gateway App"," ")}}function Ba(n,a){1&n&&(e.j41(0,"li"),e.EFF(1,"Gateway application is required."),e.k0s())}function lo(n,a){if(1&n&&(e.j41(0,"ul",157),e.DNE(1,Ba,2,0,"li",23),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",null==t.app_id||null==t.app_id.errors?null:t.app_id.errors.required)}}function Hf(n,a){1&n&&(e.j41(0,"span"),e.EFF(1," Reference number is required. "),e.k0s())}function lf(n,a){1&n&&(e.j41(0,"span"),e.EFF(1," Minimum length is 10 characters. "),e.k0s())}function Oo(n,a){1&n&&(e.j41(0,"span"),e.EFF(1," Maximum length is 20 characters. "),e.k0s())}function zo(n,a){1&n&&(e.j41(0,"span"),e.EFF(1," Only letters and numbers are allowed. "),e.k0s())}function Uo(n,a){if(1&n&&(e.j41(0,"small",147),e.DNE(1,Hf,2,0,"span",23)(2,lf,2,0,"span",23)(3,Oo,2,0,"span",23)(4,zo,2,0,"span",23),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",null==t.reference_id||null==t.reference_id.errors?null:t.reference_id.errors.required),e.R7$(),e.Y8G("ngIf",null==t.reference_id||null==t.reference_id.errors?null:t.reference_id.errors.minlength),e.R7$(),e.Y8G("ngIf",null==t.reference_id||null==t.reference_id.errors?null:t.reference_id.errors.maxlength),e.R7$(),e.Y8G("ngIf",null==t.reference_id||null==t.reference_id.errors?null:t.reference_id.errors.pattern)}}function cf(n,a){1&n&&(e.j41(0,"small",147),e.EFF(1," Expiry date is required! "),e.k0s())}function Kf(n,a){1&n&&(e.j41(0,"small",147),e.EFF(1," First name is required! "),e.k0s())}function Jf(n,a){1&n&&(e.j41(0,"small",147),e.EFF(1," Last name is required! "),e.k0s())}function es(n,a){1&n&&(e.j41(0,"small",147),e.EFF(1," Email is required! "),e.k0s())}function id(n,a){1&n&&(e.j41(0,"small",147),e.EFF(1," Please enter a valid email address "),e.k0s())}function Xd(n,a){1&n&&(e.j41(0,"span"),e.EFF(1,"Contact number is required!"),e.k0s())}function Hd(n,a){1&n&&(e.j41(0,"span"),e.EFF(1,"Contact number must contain only digits (8-15 digits, optional + prefix)"),e.k0s())}function Lu(n,a){1&n&&(e.j41(0,"span"),e.EFF(1,"Contact number cannot exceed 15 digits"),e.k0s())}function Ho(n,a){if(1&n&&(e.j41(0,"small",147),e.DNE(1,Xd,2,0,"span",23)(2,Hd,2,0,"span",23)(3,Lu,2,0,"span",23),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",null==t.customer_contact_no||null==t.customer_contact_no.errors?null:t.customer_contact_no.errors.required),e.R7$(),e.Y8G("ngIf",null==t.customer_contact_no||null==t.customer_contact_no.errors?null:t.customer_contact_no.errors.pattern),e.R7$(),e.Y8G("ngIf",null==t.customer_contact_no||null==t.customer_contact_no.errors?null:t.customer_contact_no.errors.maxlength)}}function Mf(n,a){if(1&n&&(e.j41(0,"div",144)(1,"div",141)(2,"span",142),e.EFF(3,"Minimum payable"),e.k0s(),e.j41(4,"span",143),e.EFF(5),e.k0s()()()),2&n){const t=e.XpG(3);e.R7$(5),e.Lme(" ",t.currency.value," ",t.minimum_payable_amount.value?t.formattedMinPayable||t.formatNumberWithCommas(t.minimum_payable_amount.value):"0.00"," ")}}function w(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",93)(2,"div",94)(3,"h6",95),e.EFF(4,"Link Info"),e.k0s(),e.j41(5,"div",93)(6,"div",96)(7,"label",97),e.EFF(8,"Currency "),e.j41(9,"span",98),e.EFF(10,"*"),e.k0s()(),e.j41(11,"select",99)(12,"option",100),e.EFF(13,"Select Currency"),e.k0s(),e.DNE(14,Ea,2,2,"option",101),e.k0s(),e.j41(15,"div",102),e.DNE(16,xr,2,0,"small",103),e.k0s()(),e.j41(17,"div",104)(18,"label",97),e.EFF(19,"Amount "),e.j41(20,"span",98),e.EFF(21,"*"),e.k0s()(),e.j41(22,"input",105),e.bIt("input",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onAmountInput(i))})("blur",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onAmountBlur(i))})("focus",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onAmountFocus(i))}),e.k0s(),e.j41(23,"div",102),e.DNE(24,Fa,2,0,"small",106)(25,hs,2,1,"small",106),e.k0s()()(),e.j41(26,"div",93)(27,"div",107)(28,"div",108)(29,"input",109),e.bIt("click",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onPartialPaymentClick(i))}
1),e.k0s(),e.j41(30,"label",110),e.EFF(31," Enable Partial Payments "),e.k0s()(),e.DNE(32,Ka,3,1,"div",111),e.k0s()(),e.DNE(33,Hl,17,15,"div",112),e.j41(34,"div",113)(35,"div",114)(36,"label",97),e.EFF(37," Payment For "),e.j41(38,"span",98),e.EFF(39,"*"),e.k0s()(),e.nrm(40,"textarea",115),e.j41(41,"div",116),e.DNE(42,Ms,2,0,"small",103),e.k0s()()(),e.j41(43,"h6",95),e.EFF(44,"Gateway Details"),e.k0s(),e.j41(45,"div",113)(46,"div",117)(47,"label",97),e.EFF(48," Gateway Application "),e.j41(49,"span",98),e.EFF(50,"*"),e.k0s()(),e.j41(51,"div",118)(52,"nb-select",119),e.DNE(53,sf,2,2,"nb-option",101),e.k0s(),e.DNE(54,lo,2,1,"ul",120),e.k0s()(),e.j41(55,"div",121)(56,"label",97),e.EFF(57," Reference Number "),e.j41(58,"span",98),e.EFF(59,"*"),e.k0s()(),e.nrm(60,"input",122),e.j41(61,"div",116),e.DNE(62,Uo,5,4,"small",103),e.k0s()(),e.j41(63,"div",121)(64,"label",97),e.EFF(65," Expiry Date "),e.j41(66,"span",98),e.EFF(67,"*"),e.k0s()(),e.nrm(68,"input",123),e.j41(69,"div",116),e.DNE(70,cf,2,0,"small",103),e.k0s()()(),e.j41(71,"h6",95),e.EFF(72,"Customer Details"),e.k0s(),e.j41(73,"div",93)(74,"div",124)(75,"label",97),e.EFF(76," First Name "),e.j41(77,"span",98),e.EFF(78,"*"),e.k0s()(),e.nrm(79,"input",125),e.j41(80,"div",102),e.DNE(81,Kf,2,0,"small",103),e.k0s()(),e.j41(82,"div",124)(83,"label",97),e.EFF(84," Last Name "),e.j41(85,"span",98),e.EFF(86,"*"),e.k0s()(),e.nrm(87,"input",126),e.j41(88,"div",102),e.DNE(89,Jf,2,0,"small",103),e.k0s()()(),e.j41(90,"div",113)(91,"div",124)(92,"label",97),e.EFF(93," Email "),e.j41(94,"span",98),e.EFF(95,"*"),e.k0s()(),e.nrm(96,"input",127),e.j41(97,"div",102),e.DNE(98,es,2,0,"small",103)(99,id,2,0,"small",103),e.k0s()(),e.j41(100,"div",124)(101,"label",97),e.EFF(102," Contact Number "),e.j41(103,"span",98),e.EFF(104,"*"),e.k0s()(),e.nrm(105,"input",128),e.j41(106,"div",102),e.DNE(107,Ho,4,3,"small",103),e.k0s()()()(),e.j41(108,"div",117)(109,"div",129)(110,"div",130)(111,"div",7)(112,"div",131)(113,"div",86)(114,"h4",132),e.EFF(115,"Summary"),e.k0s(),e.j41(116,"div",133),e.EFF(117),e.k0s()()()()(),e.j41(118,"div",134)(119,"div",131)(120,"div",135)(121,"div",93)(122,"div",136)(123,"div",137),e.EFF(124),e.k0s()(),e.j41(125,"div",136)(126,"div",138),e.EFF(127),e.k0s()()()()()(),e.j41(128,"div",139)(129,"div",131)(130,"div",140)(131,"div",141)(132,"span",142),e.EFF(133,"Payment for"),e.k0s(),e.j41(134,"span",143),e.EFF(135),e.k0s()()(),e.j41(136,"div",144)(137,"div",141)(138,"span",142),e.EFF(139,"Expiry date"),e.k0s(),e.j41(140,"span",143),e.EFF(141),e.nI1(142,"date"),e.k0s()()(),e.j41(143,"div",144)(144,"div",141)(145,"span",142),e.EFF(146,"First name"),e.k0s(),e.j41(147,"span",143),e.EFF(148),e.k0s()()(),e.j41(149,"div",144)(150,"div",141)(151,"span",142),e.EFF(152,"Last name"),e.k0s(),e.j41(153,"span",143),e.EFF(154),e.k0s()()(),e.j41(155,"div",144)(156,"div",141)(157,"span",142),e.EFF(158,"Email"),e.k0s(),e.j41(159,"span",143),e.EFF(160),e.k0s()()(),e.j41(161,"div",144)(162,"div",141)(163,"span",142),e.EFF(164,"Contact number"),e.k0s(),e.j41(165,"span",143),e.EFF(166),e.k0s()()(),e.DNE(167,Mf,6,2,"div",145),e.k0s()()()()()()}if(2&n){let t,r,i,s,p,g,S,R;const L=e.XpG(2);e.R7$(11),e.Y8G("ngClass",e.eq3(48,ll,(L.generate_p_link_form.get("currency").dirty||L.generate_p_link_form.get("currency").touched)&&L.generate_p_link_form.get("currency").errors)),e.R7$(3),e.Y8G("ngForOf",L.currency_data),e.R7$(2),e.Y8G("ngIf",L.generate_p_link_form.get("currency").invalid&&(L.generate_p_link_form.get("currency").dirty||L.generate_p_link_form.get("currency").touched)),e.R7$(6),e.Y8G("formControl",L.amount)("value",L.amount.value?L.formattedAmount||L.formatNumberWithCommas(L.amount.value):"")("ngClass",e.eq3(50,ll,(L.generate_p_link_form.get("amount").dirty||L.generate_p_link_form.get("amount").touched)&&L.generate_p_link_form.get("amount").errors)),e.R7$(2),e.Y8G("ngIf",L.generate_p_link_form.get("amount").invalid&&(L.generate_p_link_form.get("amount").dirty||L.generate_p_link_form.get("amount").touched)),e.R7$(),e.Y8G("ngIf",!L.checkMinAmount()),e.R7$(3),e.AVh("disabled",!L.shouldEnablePartialPaymentCheckbox()),e.R7$(),e.Y8G("disabled",!L.shouldEnableParti
1alPaymentCheckbox()),e.R7$(),e.AVh("text-muted",!L.shouldEnablePartialPaymentCheckbox()),e.R7$(2),e.Y8G("ngIf",!L.shouldEnablePartialPaymentCheckbox()),e.R7$(),e.Y8G("ngIf",L.generate_p_link_form.get("is_partial_payments").value),e.R7$(7),e.Y8G("ngClass",e.eq3(52,ll,(L.generate_p_link_form.get("pl_description").dirty||L.generate_p_link_form.get("pl_description").touched)&&L.generate_p_link_form.get("pl_description").errors)),e.R7$(2),e.Y8G("ngIf",L.generate_p_link_form.get("pl_description").invalid&&(L.generate_p_link_form.get("pl_description").dirty||L.generate_p_link_form.get("pl_description").touched)),e.R7$(10),e.Y8G("status",L.isFieldInvalid("app_id")?"danger":"basic"),e.R7$(),e.Y8G("ngForOf",L.ipg_apps),e.R7$(),e.Y8G("ngIf",L.isFieldInvalid("app_id")),e.R7$(6),e.Y8G("ngClass",e.eq3(54,ll,(L.generate_p_link_form.get("reference_id").dirty||L.generate_p_link_form.get("reference_id").touched)&&L.generate_p_link_form.get("reference_id").errors)),e.R7$(2),e.Y8G("ngIf",L.generate_p_link_form.get("reference_id").invalid&&(L.generate_p_link_form.get("reference_id").dirty||L.generate_p_link_form.get("reference_id").touched)),e.R7$(6),e.Y8G("min",L.current_date)("ngClass",e.eq3(56,ll,(L.generate_p_link_form.get("expire_datetime").dirty||L.generate_p_link_form.get("expire_datetime").touched)&&L.generate_p_link_form.get("expire_datetime").errors)),e.R7$(2),e.Y8G("ngIf",L.generate_p_link_form.get("expire_datetime").invalid&&(L.generate_p_link_form.get("expire_datetime").dirty||L.generate_p_link_form.get("expire_datetime").touched)),e.R7$(9),e.Y8G("ngClass",e.eq3(58,ll,(L.generate_p_link_form.get("customer_first_name").dirty||L.generate_p_link_form.get("customer_first_name").touched)&&L.generate_p_link_form.get("customer_first_name").errors)),e.R7$(2),e.Y8G("ngIf",L.generate_p_link_form.get("customer_first_name").invalid&&(L.generate_p_link_form.get("customer_first_name").dirty||L.generate_p_link_form.get("customer_first_name").touched)),e.R7$(6),e.Y8G("ngClass",e.eq3(60,ll,(L.generate_p_link_form.get("customer_last_name").dirty||L.generate_p_link_form.get("customer_last_name").touched)&&L.generate_p_link_form.get("customer_last_name").errors)),e.R7$(2),e.Y8G("ngIf",L.generate_p_link_form.get("customer_last_name").invalid&&(L.generate_p_link_form.get("customer_last_name").dirty||L.generate_p_link_form.get("customer_last_name").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(62,ll,(L.generate_p_link_form.get("customer_email").dirty||L.generate_p_link_form.get("customer_email").touched)&&L.generate_p_link_form.get("customer_email").errors)),e.R7$(2),e.Y8G("ngIf",(null==L.customer_email||null==L.customer_email.errors?null:L.customer_email.errors.required)&&(L.generate_p_link_form.get("customer_email").dirty||L.generate_p_link_form.get("customer_email").touched)),e.R7$(),e.Y8G("ngIf",(null==L.customer_email||null==L.customer_email.errors?null:L.customer_email.errors.pattern)&&!(null!=L.customer_email&&null!=L.customer_email.errors&&L.customer_email.errors.required)&&(L.generate_p_link_form.get("customer_email").dirty||L.generate_p_link_form.get("customer_email").touched)),e.R7$(6),e.Y8G("ngClass",e.eq3(64,ll,(L.generate_p_link_form.get("customer_contact_no").dirty||L.generate_p_link_form.get("customer_contact_no").touched)&&L.generate_p_link_form.get("customer_contact_no").errors)),e.R7$(2),e.Y8G("ngIf",L.generate_p_link_form.get("customer_contact_no").invalid&&(L.generate_p_link_form.get("customer_contact_no").dirty||L.generate_p_link_form.get("customer_contact_no").touched)),e.R7$(10),e.SpI(" Ref: ",(null==(t=L.generate_p_link_form.get("reference_id"))?null:t.value)||"123456799"," "),e.R7$(7),e.Lme(" ",(null==(r=L.generate_p_link_form.get("currency"))?null:r.value)||"LKR"," ",L.amount.value?L.formattedAmount||L.formatNumberWithCommas(L.amount.value):"0.00"," "),e.R7$(3),e.SpI(" ",L.getSelectedCurrencyName()," "),e.R7$(8),e.SpI(" ",(null==(i=L.generate_p_link_form.get("pl_description"))?null:i.value)||"Basic Item"," "),e.R7$(6),e.SpI(" ",e.i5U(142,45,null==(s=L.generate_p_link_form.get("expire_datetime"))?null:s.value,"yyyy-MM-dd")||"12-05-2025"," "),e.R7$(7),e.SpI(" ",(null==(p=L.generate_p_link_form.get("customer_first_name"))?null:p.value)||"Tony"," "),e.R7$(6),e.SpI(" ",(null==(g=L.generate_p_link_form.get("customer_last_name"))?null:g.value)||"Stark"," "),e.R7$(6),e.SpI(" ",(null==(S=L.generate_p_link_form.get("customer_email"))?null:S.value)||"[email protected]"," "),e.R7$(6),e.SpI(" ",(null==(R=L.generate_p_link_form.get("customer_contact_no"))?null:R.value)||"+94 71 123 4567"," "),e.R7$(),e.Y8G("ngIf",L.is_partial_payments.value)}}function I(n,a){1&n&&(e.j41(0,"div")(1,"div",93)(2,"div",136),e.EFF(3,"coming soon"),e.k0s()()())}function H(n,a){1&n&&(e.j41(0,"div")(1,"div",93)(2,"div",136),e.EFF(3,"coming soon"),e.k0s()()())}function Q(n,a){1&n&&(e.j41(0,"div")(1,"div",93)(2,"div",136),e.EFF(3,"coming soon"),e.k0s()()())}function _e(n,a){if(1&n){const t=e.RV6();e.j41(0,"form",84),e.bIt("ngSubmit",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.generatePLink())}),e.j41(1,"nb-card",85)(2,"nb-card-header")(3,"div",86)(4,"h4",87),e.EFF(5,"Create Payment Link"),e.k0s(),e.j41(6,"button",88),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.closeModal())}),e.j41(7,"a"),e.nrm(8,"i",67),e.k0s()()()(),e.j41(9,"nb-card-body",89)(10,"div",90),e.DNE(11,w,168,66,"div",23)(12,I,4,0,"div",23)(13,H,4,0,"div",23)(14,Q,4,0,"div",23),e.k0s()(),e.j41(15,"nb-card-footer")(16,"div",80)(17,"button",91),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.closeModal())}),e.EFF(18,"Cancel"),e.k0s(),e.j41(19,"button",92),e.EFF(20," Create Link "),e.k0s()()()()()}if(2&n){const t=e.XpG();e.Y8G("formGroup",t.generate_p_link_form),e.R7$(11),e.Y8G("ngIf","payment_link"===t.filter_status.value),e.R7$(),e.Y8G("ngIf","quick_link"===t.filter_status.value),e.R7$(),e.Y8G("ngIf","partial_payment_link"===t.filter_status.value),e.R7$(),e.Y8G("ngIf","pre_auth_link"===t.filter_status.value),e.R7$(5),e.Y8G("nbSpinner",t.is_requesting)("disabled",!t.generate_p_link_form.valid||!t.checkAmount()||t.is_requesting)}}function he(n,a){1&n&&(e.j41(0,"small",147),e.EFF(1," Description is required "),e.k0s())}function Ee(n,a){if(1&n){const t=e.RV6();e.j41(0,"form",84),e.bIt("ngSubmit",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.updatePaymentLink())}),e.j41(1,"nb-card",158)(2,"nb-card-header")(3,"div",8)(4,"h4",13),e.EFF(5,"Update Payment Link"),e.k0s(),e.j41(6,"button",88),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.closeModal(i.crud_types.update))}),e.j41(7,"a"),e.nrm(8,"i",67),e.k0s()()()(),e.j41(9,"nb-card-body")(10,"div",159)(11,"div",160)(12,"label",161),e.EFF(13,"Description "),e.j41(14,"span",147),e.EFF(15,"*"),e.k0s()(),e.j41(16,"textarea",162),e.EFF(17," "),e.k0s(),e.DNE(18,he,2,0,"small",103),e.k0s()()(),e.j41(19,"nb-card-footer")(20,"div",86)(21,"button",163),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.closeModal(i.crud_types.update))}),e.EFF(22,"Cancel"),e.k0s(),e.j41(23,"button",164),e.EFF(24," Update "),e.k0s()()()()()}if(2&n){const t=e.XpG();e.Y8G("formGroup",t.update_link_form),e.R7$(16),e.Y8G("status",t.update_link_form.get("description").invalid&&(t.update_link_form.get("description").dirty||t.update_link_form.get("description").touched)?"danger":"basic"),e.R7$(2),e.Y8G("ngIf",t.update_link_form.get("description").invalid&&(t.update_link_form.get("description").dirty||t.update_link_form.get("description").touched)),e.R7$(5),e.Y8G("nbSpinner",t.is_requesting)("disabled",!t.update_link_form.valid||t.is_requesting)}}function _t(n,a){if(1&n){const t=e.RV6();e.j41(0,"nb-card",165)(1,"nb-card-body",166)(2,"div",167),e.nrm(3,"img",168),e.k0s(),e.j41(4,"div",169),e.EFF(5," Delete Payment Link "),e.k0s(),e.j41(6,"div",170),e.EFF(7," Are you sure you want to delete this payment link? This action cannot be undone. "),e.k0s()(),e.j41(8,"nb-card-footer",171)(9,"div",172)(10,"button",173),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.closeModal(i.crud_types.delete))}),e.EFF(11," Cancel "),e.k0s(),e.j41(12,"button",174),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.deletePaymentLink())}),e.EFF(13," Delete "),e.k0s()()()()}if(2&n){const t=e.XpG();e.R7$(12),e.Y8G("nbSpinner",t.is_requesting)("disabled",t.is_requesting)}}
1function st(n,a){1&n&&(e.j41(0,"div",177)(1,"div",61)(2,"span",62),e.EFF(3,"Loading..."),e.k0s()()())}function Xt(n,a){if(1&n&&(e.j41(0,"div")(1,"div",68)(2,"h6",69),e.EFF(3,"Payment Summary Details"),e.k0s()(),e.j41(4,"div",70)(5,"span",178),e.EFF(6,"Link ID"),e.k0s(),e.j41(7,"span",72),e.EFF(8,":"),e.k0s(),e.j41(9,"span",179),e.EFF(10),e.k0s()(),e.j41(11,"div",70)(12,"span",178),e.EFF(13,"Total Amount"),e.k0s(),e.j41(14,"span",72),e.EFF(15,":"),e.k0s(),e.j41(16,"span",179),e.EFF(17),e.nI1(18,"number"),e.k0s()(),e.j41(19,"div",70)(20,"span",178),e.EFF(21,"Total Paid"),e.k0s(),e.j41(22,"span",72),e.EFF(23,":"),e.k0s(),e.j41(24,"span",179),e.EFF(25),e.nI1(26,"number"),e.k0s()(),e.j41(27,"div",70)(28,"span",178),e.EFF(29,"Remaining Amount"),e.k0s(),e.j41(30,"span",72),e.EFF(31,":"),e.k0s(),e.j41(32,"span",179),e.EFF(33),e.nI1(34,"number"),e.k0s()(),e.j41(35,"div",70)(36,"span",178),e.EFF(37,"Payment Status"),e.k0s(),e.j41(38,"span",72),e.EFF(39,":"),e.k0s(),e.j41(40,"span",179),e.EFF(41),e.k0s()(),e.j41(42,"div",70)(43,"span",178),e.EFF(44,"Partial Payments"),e.k0s(),e.j41(45,"span",72),e.EFF(46,":"),e.k0s(),e.j41(47,"span",179),e.EFF(48),e.k0s()(),e.j41(49,"div",70)(50,"span",178),e.EFF(51,"Total Transactions"),e.k0s(),e.j41(52,"span",72),e.EFF(53,":"),e.k0s(),e.j41(54,"span",179),e.EFF(55),e.k0s()()()),2&n){const t=e.XpG(2);e.R7$(10),e.JRh(t.payment_summary.link_id||"Not Available"),e.R7$(7),e.Lme(" ",(null==t.active_payment_link?null:t.active_payment_link.currency)||"LKR"," ",t.payment_summary.formatted_total_amount||e.i5U(18,10,t.payment_summary.total_amount,"1.2-2")||"0.00"," "),e.R7$(8),e.Lme(" ",(null==t.active_payment_link?null:t.active_payment_link.currency)||"LKR"," ",t.payment_summary.formatted_total_paid||e.i5U(26,13,t.payment_summary.total_paid,"1.2-2")||"0.00"," "),e.R7$(8),e.Lme(" ",(null==t.active_payment_link?null:t.active_payment_link.currency)||"LKR"," ",t.payment_summary.formatted_remaining_amount||e.i5U(34,16,t.payment_summary.remaining_amount,"1.2-2")||"0.00"," "),e.R7$(8),e.SpI(" ",t.getPaymentStatusText(t.payment_summary)," "),e.R7$(7),e.SpI(" ",t.payment_summary.allow_partial_payment?"Allowed":"Not Allowed"," "),e.R7$(7),e.JRh(t.payment_summary.transaction_count||0)}}function wn(n,a){if(1&n){const t=e.RV6();e.j41(0,"nb-card",175)(1,"nb-card-header")(2,"div",8)(3,"h4",13),e.EFF(4,"Payment Summary"),e.k0s(),e.j41(5,"button",66),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.closeModal("summary"))}),e.j41(6,"a"),e.nrm(7,"i",67),e.k0s()()()(),e.j41(8,"nb-card-body"),e.DNE(9,st,4,0,"div",176)(10,Xt,56,19,"div",23),e.k0s(),e.j41(11,"nb-card-footer")(12,"div",80)(13,"button",81),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.closeModal("summary"))}),e.EFF(14,"Close"),e.k0s()()()()}if(2&n){const t=e.XpG();e.R7$(9),e.Y8G("ngIf",t.is_loading_summary),e.R7$(),e.Y8G("ngIf",!t.is_loading_summary&&t.payment_summary)}}let $n=(()=>{class n{constructor(t,r,i,s,p){this.fb=t,this.dialogService=r,this.developerService=i,this.paymentLinkService=s,this.toastr=p,this.crud_types={view:"view",add:"add",disable:"disable",update:"update",delete:"delete",summary:"summary"},this.filter_form=null,this.generate_p_link_form=null,this.update_link_form=null,this.delete_link_form=null,this.is_loading=!1,this.is_loading_summary=!1,this.is_requesting=!1,this.page=1,this.page_size=10,this.payment_links=[],this.payment_links_count=0,this.ipg_apps=[],this.modal_ref=null,this.active_payment_link=null,this.current_date=null,this.today=null,this.formattedAmount="",this.formattedMinPayable="",this.payment_summary=null,this.link_stats=null,this.is_loading_stats=!1,this.filter_status=new ie.MJ("payment_link"),this.currency_data=[],this.LKR_MIN_AMOUNT=100,this.USD_MIN_AMOUNT=1,this.PARTIAL_PAYMENT_THRESHOLD_LKR=1e5,this.PARTIAL_PAYMENT_THRESHOLD_USD=100,this.MINI
1MUM_PAYABLE_PERCENTAGE=100/3,this.MAX_CONTACT_LENGTH=15,this.lastCursorPosition=0,this.today=new Date;let g="";g=this.today.getFullYear().toString()+"-"+("0"+(this.today.getMonth()+1)).slice(-2)+"-"+("0"+this.today.getDate()).slice(-2),this.current_date=g,this.filter_form=this.fb.group({reference_number:[""],status:["all"]}),this.generate_p_link_form=this.fb.group({app_id:["",ie.k0.required],customer_first_name:["",ie.k0.required],customer_last_name:["",ie.k0.required],customer_contact_no:["",[ie.k0.required,ie.k0.pattern(/^\+?[0-9\s]+$/),ie.k0.maxLength(20)]],customer_email:["",[ie.k0.required,ie.k0.pattern(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/)]],pl_description:["",ie.k0.required],reference_id:["",[ie.k0.required,ie.k0.pattern(/^[A-Za-z0-9]+$/),ie.k0.minLength(10),ie.k0.maxLength(20)]],expire_datetime:["",ie.k0.required],currency:["LKR",ie.k0.required],amount:["",[ie.k0.required,ie.k0.min(1)]],is_partial_payments:[!1],minimum_payable_amount:[null]}),this.update_link_form=this.fb.group({description:["",ie.k0.required]}),this.delete_link_form=this.fb.group({})}get reference_number(){return this.filter_form.get("reference_number")}get status(){return this.filter_form.get("status")}get app_id(){return this.generate_p_link_form.get("app_id")}get customer_first_name(){return this.generate_p_link_form.get("customer_first_name")}get customer_last_name(){return this.generate_p_link_form.get("customer_last_name")}get customer_contact_no(){return this.generate_p_link_form.get("customer_contact_no")}get customer_email(){return this.generate_p_link_form.get("customer_email")}get pl_description(){return this.generate_p_link_form.get("pl_description")}get reference_id(){return this.generate_p_link_form.get("reference_id")}get expire_datetime(){return this.generate_p_link_form.get("expire_datetime")}get amount(){return this.generate_p_link_form.get("amount")}get currency(){return this.generate_p_link_form.get("currency")}get is_partial_payments(){return this.generate_p_link_form.get("is_partial_payments")}get minimum_payable_amount(){return this.generate_p_link_form.get("minimum_payable_amount")}ngOnInit(){this.setDefaultExpiryDate(),this.logServiceMethods(),this.getData({isInOnInit:!0}),this.setupFormListeners(),this.loadLinkStatics()}setDefaultExpiryDate(){const t=new Date;t.setMonth(t.getMonth()+1);const r=t.getFullYear(),i=String(t.getMonth()+1).padStart(2,"0"),s=String(t.getDate()).padStart(2,"0");this.generate_p_link_form.patchValue({expire_datetime:`${r}-${i}-${s}`})}logServiceMethods(){console.log("=== Service Debug Information ==="),console.log("DeveloperConfigurationsService:",this.developerService),console.log("PaymentLinkService:",this.paymentLinkService);const t=Object.getPrototypeOf(this.developerService),r=Object.getOwnPropertyNames(t).filter(p=>"constructor"!==p&&"function"==typeof this.developerService[p]);console.log("Developer Service Methods:",r);const i=Object.getPrototypeOf(this.paymentLinkService),s=Object.getOwnPropertyNames(i).filter(p=>"constructor"!==p&&"function"==typeof this.paymentLinkService[p]);console.log("PaymentLink Service Methods:",s)}setupFormListeners(){this.reference_number.valueChanges.subscribe(t=>{t?(this.status.disable(),this.status.value&&this.status.setValue("")):this.status.enable()}),this.amount.valueChanges.subscribe(t=>{this.updatePartialPaymentCheckboxState(),this.formattedAmount=t&&!isNaN(t)?this.formatNumberWithCommas(t):""}),this.currency.valueChanges.subscribe(()=>{this.updatePartialPaymentCheckboxState()}),this.is_partial_payments.valueChanges.subscribe(t=>{this.toggleMinimumPayableAmount(t)}),this.minimum_payable_amount.valueChanges.subscribe(t=>{this.formattedMinPayable=t&&!isNaN(t)?this.formatNumberWithCommas(t):""}),this.app_id.valueChanges.subscribe(t=>{t?this.loadCurrenciesForGateway(t):(this.currency_data=[],this.currency.setValue(""))})}formatNumberWithCommas(t){if(null==t||""===t)return"";const r="string"==typeof t?parseFloat(t.replace(/,/g,"")):t;return isNaN(r)?"":r.toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g,",")}parseFormattedNumber(t){if(!t)return 0;const r=t.replace(/,/g,""),i=parseFloat(r);return isNaN(i)?0:i}onAmountInput(t){const r=t.target,i=r.selectionStart;let s=r.value;const p=this.parseFormattedNumber(s);if(this.amount.setValue(p,{emitEvent:!1}),p>0){const g=this.formatNumberWithCommas(p);if(r.value!==g){r.value=g;const R=i+((g.match(/,/g)||[]).length-(s.match(/,/g)||[]).length);setTimeout(()=>{r.setSelectionRange(R,R)},0)}}else r.value="";this.formattedAmount=r.value}onMinPayableInput(t){const r=t.target,i=r.selectionStart;let s=r.value,p=s.replace(/,/g,"").replace(/[^\d.]/g,"");const g=p.split(".");g.length>2&&(p=g[0]+"."+g.slice(1).join("")),2===g.length&&g[1].length>2&&(p=g[0]+"."+g[1].substring(0,2));const S=p?parseFloat(p):null;if(this.minimum_payable_amount.setValue(S,{emitEvent:!1}
1),S&&!isNaN(S)&&S>0){const R=this.formatNumberWithCommas(S);r.value=R,this.formattedMinPayable=R;const L=s.substring(0,i),ne=L.replace(/,/g,""),re=parseFloat(ne)||0,fe=this.formatNumberWithCommas(re),xe=(L.match(/,/g)||[]).length,Je=i+((fe.match(/,/g)||[]).length-xe);setTimeout(()=>{r.setSelectionRange(Je,Je)},0)}else r.value="",this.formattedMinPayable=""}onMinPayableBlur(t){const r=t.target,i=this.minimum_payable_amount.value;if(i&&!isNaN(i)&&i>0){const s=this.calculateMinimumPayableAmount(),p=this.calculateMaximumPayableAmount();let g=i,S=!1;i<s-.01?(g=s,S=!0,this.toastr.showToast("info","Minimum Amount Adjusted",`Minimum payable amount adjusted to ${this.formatNumberWithCommas(g)} ${this.currency.value} (minimum allowed)`)):i>p+.01&&(g=p,S=!0,this.toastr.showToast("info","Maximum Amount Adjusted",`Minimum payable amount adjusted to ${this.formatNumberWithCommas(g)} ${this.currency.value} (maximum allowed)`)),S&&this.minimum_payable_amount.setValue(g,{emitEvent:!1});const R=this.formatNumberWithCommas(g);r.value=R,this.formattedMinPayable=R}else r.value="",this.formattedMinPayable=""}onMinPayableFocus(t){const r=t.target,i=this.minimum_payable_amount.value;i&&!isNaN(i)&&i>0&&(r.value=i.toString(),setTimeout(()=>{r.select()},0))}onAmountBlur(t){const r=t.target,i=this.amount.value;i&&!isNaN(i)&&i>0?(r.value=this.formatNumberWithCommas(i),this.formattedAmount=r.value):(r.value="",this.formattedAmount="")}onAmountFocus(t){const r=t.target,i=this.amount.value;i&&!isNaN(i)&&i>0&&(r.value=i.toString(),setTimeout(()=>{r.select()},0))}filterByStatus(t){this.filter_form.patchValue({status:t}),this.page=1,this.getData({paymentLinksOnly:!0})}checkMinAmount(){const t=parseFloat(this.amount.value);return!t&&0!==t||("LKR"===this.currency.value?t>=this.LKR_MIN_AMOUNT:t>=this.USD_MIN_AMOUNT)}shouldEnablePartialPaymentCheckbox(){const t=parseFloat(this.amount.value);return!(!t||0===t)&&("LKR"===this.currency.value?t>=this.PARTIAL_PAYMENT_THRESHOLD_LKR:t>=this.PARTIAL_PAYMENT_THRESHOLD_USD)}getSelectedCurrencyName(){const t=this.currency.value,r=this.currency_data.find(i=>i.code===t);return r?r.name:"LKR"===t?"Sri Lanka Rupees":"USD"===t?"US Dollars":t}formatDecimal(t,r=2){if(null==t)return"0.00";const i="string"==typeof t?parseFloat(t):t;return isNaN(i)?"0.00":i.toFixed(r)}updatePartialPaymentCheckboxState(){this.shouldEnablePartialPaymentCheckbox()||(this.is_partial_payments.setValue(!1),this.toggleMinimumPayableAmount(!1))}toggleMinimumPayableAmount(t){const r=this.minimum_payable_amount;if(t){this.updateMinimumPayableAmountValidators();const i=this.calculateMinimumPayableAmount();r.setValue(i),this.formattedMinPayable=this.formatNumberWithCommas(i),setTimeout(()=>{const s=document.querySelector(".div_input.pr-4");s&&(s.value=this.formattedMinPayable)},0)}else r.clearValidators(),r.setValue(null),this.formattedMinPayable="";r.updateValueAndValidity()}updateMinimumPayableAmountValidators(){const t=this.minimum_payable_amount,r=this.amount.value||0;if(r>0){const i=this.calculateMinimumPayableAmount();t.setValidators([ie.k0.required,ie.k0.min(i),ie.k0.max(r)]),(!t.value||t.value<i)&&(t.setValue(i),this.formattedMinPayable=this.formatNumberWithCommas(i))}else t.setValidators([ie.k0.required]);t.updateValueAndValidity()}calculateMaximumPayableAmount(){return this.amount.value||0}calculateMinimumPayableAmount(){const t=parseFloat(this.amount.value)||0;return Math.ceil(t/3*100)/100}getMinimumPayablePercentage(){return(100/3).toFixed(2)}checkMinimumPayableAmount(){const t=this.minimum_payable_amount.value;return!t&&0!==t||t>=this.calculateMinimumPayableAmount()&&t<=(this.amount.value||0)}onPartialPaymentClick(t){if(!this.shouldEnablePartialPaymentCheckbox()){t.preventDefault();const i=this.currency.value;this.toastr.showToast("info","Partial Payments",`Partial payments become available when the amount exceeds ${("LKR"===this.currency.value?this.PARTIAL_PAYMENT_THRESHOLD_LKR:this.PARTIAL_PAYMENT_THRESHOLD_USD).toLocaleString()} ${i}.`)}}getData({paymentLinksOnly:t=!1,isInOnInit:r=!1}){var i=this;return(0,Pt.A)(function*(){r&&(i.is_loading=!0);try{if(t){const s=yield i.paymentLinkService.getPaymentLinks(i.page,i.page_size,i.status.value||"all",i.reference_number.value);i.processPaymentLinks(s)}else{const[s,p]=yield Promise.all([i.paymentLinkService.getPaymentLinks(i.page,i.page_size,i.status.value||"all",i.reference_number.value),i.loadGatewayApplications()]);i.processPaymentLinks(s)}}catch(s){i.is_loading=!1,console.error("Error fetching data:",s),i.toastr.showToast("danger","Error
1!","Failed to load data. Please try again.")}})()}getLinkStatusBadge(t){if(!0===t.is_delete||t.status&&"deleted"===t.status.toLowerCase())return{text:"Deleted",status:"danger",customClass:"status-deleted"};if(!0===t.is_complete||t.status&&("success"===t.status.toLowerCase()||"completed"===t.status.toLowerCase()))return{text:"Success",status:"success",customClass:"status-completed"};const i=t.expiration_date||t.expire_datetime||t.expiry_date;let s=!1;if(i){const g=new Date(i);!isNaN(g.getTime())&&g.getTime()<Date.now()&&(s=!0)}if(!0===t.is_expired||t.status&&"expired"===t.status.toLowerCase()||s)return{text:"Expired",status:"danger",customClass:"status-expired"};if(t.status)switch(t.status.toLowerCase()){case"pending":return{text:"Pending",status:"warning",customClass:"status-pending"};case"partially paid":case"partial":return{text:"Partially Paid",status:"warning",customClass:"status-partial"};default:return!1===t.is_complete?{text:"Pending",status:"warning",customClass:"status-pending"}:{text:t.status,status:"basic",customClass:"status-default"}}return!1===t.is_complete?{text:"Pending",status:"warning",customClass:"status-pending"}:{text:t.status||"Not Available",status:"basic",customClass:"status-default"}}processPaymentLinks(t){if(this.is_loading=!1,console.log("Payment Links Response:",t),t&&!0===t.success){const r=t.data?.links||[],i=t.data?.pagination||{};this.payment_links=r,this.payment_links_count=i.total_count||r.length,this.payment_links=this.payment_links.map(s=>{const p=s.expiration_date||s.expire_datetime||s.expiry_date,g=s.is_complete||!1,R=!0===(s.is_delete||!1)||s.status&&"deleted"===s.status.toLowerCase(),L=!0===g||s.status&&("success"===s.status.toLowerCase()||"completed"===s.status.toLowerCase());let ne=!1;if(p){const be=new Date(p);!isNaN(be.getTime())&&be.getTime()<Date.now()&&(ne=!0)}const re=!L&&!R&&(!0===s.is_expired||s.status&&"expired"===s.status.toLowerCase()||ne);let fe=s.status||(g?"Success":"Pending");R?fe="Deleted":L?fe="Success":re?fe="Expired":"pending"===fe.toLowerCase()&&(fe="Pending");const xe=s.link_url||s.payment_url||s.transaction_link||s.url||`https://link.onepay.lk/${s.link_id||s.id}`,ce={...s,reference_no:s.reference_number||s.reference_no||s.link_id||s.id,customer_mobile_no:s.customer_mobile_number||s.customer_mobile_no||s.customer_contact_no,transaction_link:xe,link_url:xe,expire_datetime:p,status:fe,is_disable:!1===s.is_active||!0===s.is_disabled?"yes":"no",is_expired:re,is_complete:L,is_delete:R,pl_description:s.description||s.pl_description||s.note,customer_first_name:s.customer_first_name,customer_last_name:s.customer_last_name,customer_email:s.customer_email,amount:s.amount,currency:s.currency||"LKR",formatted_amount:s.amount?this.formatNumberWithCommas(s.amount):"0.00"};return{...ce,badgeInfo:this.getLinkStatusBadge(ce)}}),console.log("Mapped Payment Links:",this.payment_links)}else this.toastr.showToast("danger","Error!",t?.message||"Failed to load payment links."),this.payment_links=[],this.payment_links_count=0}isActionDisabled(t){return!0===t.is_delete}isCopyDisabled(t){return!0===t.is_delete}loadCurrenciesForGateway(t){var r=this;return(0,Pt.A)(function*(){try{const i=yield r.paymentLinkService.getAppCurrencies(t);if(console.log("App Currencies Response:",i),i&&(200===i.status||!0===i.success)&&i.data){let s=[];s=i.data.currencies&&Array.isArray(i.data.currencies)?i.data.currencies:Array.isArray(i.data)?i.data:[i.data],r.currency_data=s.map(g=>"string"==typeof g?{code:g,name:g}:{code:g.code||g.currency_code||g.currency||"",name:g.name||g.currency_name||g.description||""}).filter(g=>g.code);const p=r.currency.value;r.currency_data.length>0?r.currency_data.some(S=>S.code===p)?r.currency.setValue(p):r.currency.setValue(r.currency_data[0].code):r.currency.setValue("")}else r.toastr.showToast("danger","Error!",i?.message||"Failed to load currencies for the selected gateway."),r.currency_data=[],r.currency.setValue("")}catch(i){console.error("Error loading currencies for gateway:",i),r.toastr.showToast("danger","Error!","Failed to load currencies for the selected gateway."),r.currency_data=[],r.currency.setValue("")}})()}loadGatewayApplications(){var t=this;return(0,Pt.A)(function*(){try{console.log("Loading gateway applications...");const r=yield t.developerService.getIPGApps();console.log("Gateway Apps Response:",r),t.processGatewayAppsResponse(r)}catch(r){console.error("Error loading gateway applications:",r),t.loadGatewayAppsAlternative()}})()}processGatewayAppsResponse(t){console.log("Processing gateway apps response:",t);let r=[];if(t&&!0===t.success&&t.data)r=Array.isArray(t.data)?t.data:[t.data];else if(t&&100===t.status&&t.data)r=Array.isArray(t.data)?t.data:[t.data];else if(Array.isArray(t))r=t;else if(t&&"object"==typeof t){const i=Object.keys(t).find(s=>Array.isArray(t[s]));r=i?t[i]:[t]}console.log("Extracted Gateway Apps Data:",r),Array.isArray(r)&&r.length>0?(this.ipg_apps=r.filter(i=>{if(!i||!i.id)return!1;const s=!1!==i.is_active&&null!=i.is_active,p=!0===i.is_approved||"approved"===i.status||"approved"===i.approval_status||!0===i.approved||"active"===i.approval_status,g=!i.is_submit_approve||!1===i.is_submit_approve||!1===i.pending_approval||!1===i.pending||"pending"!==i.status,S=!(i.is_approved||i.status||i.approval_status||i.approved),R=s&&(p||g||S);return R&&console.log(`Including app: ${i.app_name||i.name||i.id}`,{id:i.id,name:i.app_name||i.name,isActive:s,isApproved:p,isNotPendingApproval:g,hasNoApprovalFlags:S}),R}),console.log("Filtered Gateway Apps:",this.ipg_apps),0===this.ipg_apps.length?(console.warn("No gateway apps passed the filter criteria"),this.showNoGatewayAppsWarning()):this.selectDefaultGatewayApp()):(console.warn("No gateway apps data found or invalid format"),this.loadGatewayAppsAlternative())}loadGatewayAppsAlternative(){var t=this;return(0,Pt.A)(function*(){try{console.log("Trying alternative gateway apps loading...");try{const i=yield t.developerService.getIPGApps();
1return console.log("Alternative gateway apps response (retry):",i),void t.processGatewayAppsResponse(i)}catch(i){console.log("Retry failed:",i)}const r=localStorage.getItem("gateway_apps")||sessionStorage.getItem("gateway_apps")||localStorage.getItem("ipg_apps")||sessionStorage.getItem("ipg_apps")||localStorage.getItem("applications")||sessionStorage.getItem("applications");if(r)try{const i=JSON.parse(r);if(Array.isArray(i))return t.ipg_apps=i.filter(s=>s&&!1!==s.is_active),console.log("Loaded gateway apps from cache:",t.ipg_apps),void(0===t.ipg_apps.length?t.showNoGatewayAppsWarning():t.selectDefaultGatewayApp())}catch(i){console.error("Error parsing cached apps:",i)}t.tryManualApiFetch()}catch(r){console.error("Error in alternative gateway apps loading:",r),t.showNoGatewayAppsWarning()}})()}tryManualApiFetch(){var t=this;return(0,Pt.A)(function*(){try{console.log("Trying manual API fetch...");const r=[{id:"demo-app-1",app_name:"Demo Gateway App 1",name:"Demo Gateway App 1",is_active:!0,is_approved:!0,is_submit_approve:!1,status:"approved",approval_status:"approved"},{id:"demo-app-2",app_name:"Demo Gateway App 2",name:"Demo Gateway App 2",is_active:!0,is_approved:!0,is_submit_approve:!1,status:"approved",approval_status:"approved"}];0!==t.ipg_apps.length||sc.c.production?0===t.ipg_apps.length&&t.showNoGatewayAppsWarning():(t.ipg_apps=r,console.log("Using demo gateway apps for development:",t.ipg_apps),t.toastr.showToast("info","Development Mode","Using demo gateway applications. In production, real gateway apps will be loaded."),t.selectDefaultGatewayApp())}catch(r){console.error("Error in manual API fetch:",r),t.showNoGatewayAppsWarning()}})()}selectDefaultGatewayApp(){this.ipg_apps&&this.ipg_apps.length>0&&!this.app_id.value&&this.app_id.setValue(this.ipg_apps[0]?.app_id||this.ipg_apps[0]?.id)}showNoGatewayAppsWarning(){this.toastr.showToast("warning","No Gateway Applications","No gateway applications available. Please create a gateway application first to generate payment links.")}getPaymentSummary(t){var r=this;return(0,Pt.A)(function*(){r.is_loading_summary=!0;try{const i=yield r.paymentLinkService.getPaymentSummary(t);!0===i?.success||100===i?.status?(r.payment_summary=i.data,r.payment_summary&&(r.payment_summary.formatted_total_amount=r.formatNumberWithCommas(r.payment_summary.total_amount||0),r.payment_summary.formatted_total_paid=r.formatNumberWithCommas(r.payment_summary.total_paid||0),r.payment_summary.formatted_remaining_amount=r.formatNumberWithCommas(r.payment_summary.remaining_amount||0))):r.toastr.showToast("danger","Error!",i?.message||"Failed to get payment summary.")}catch(i){console.error("Error fetching payment summary:",i),r.toastr.showToast("danger","Error!","Failed to get payment summary.")}finally{r.is_loading_summary=!1}})()}generatePLink(){if(this.generate_p_link_form.invalid)return this.markAllFormControlsAsTouched(),void this.toastr.showToast("danger","Error!","Please fill all required fields correctly.");if(0===this.ipg_apps.length)return void this.toastr.showToast("danger","Error!","No gateway applications available. Please create one first.");if(!this.checkMinAmount())return void this.toastr.showToast("danger","Error!",`Amount must be at least ${"LKR"===this.currency.value?this.LKR_MIN_AMOUNT:this.USD_MIN_AMOUNT} ${this.currency.value}`);if(this.is_partial_payments.value&&!this.checkMinimumPayableAmount()){const r=this.calculateMinimumPayableAmount(),i=this.amount.value;return void this.toastr.showToast("danger","Error!",`Minimum payable amount must be between ${r.toFixed(2)} to ${i.toFixed(2)} ${this.currency.value} (${this.getMinimumPayablePercentage()}% to 100% of total amount)`)}this.is_requesting=!0;const t={app_id:this.app_id.value,customer_first_name:this.customer_first_name.value?.trim(),customer_last_name:this.customer_last_name.value?.trim(),customer_email:this.customer_email.value,customer_mobile_number:this.customer_contact_no.value,description:this.pl_description.value,reference_number:this.reference_id.value,expiration_date:this.formatExpirationDate(this.expire_datetime.value),amount:parseFloat(this.amount.value)||0,currency:this.currency.value,allow_partial_payment:this.is_partial_payments.value,minimum_payment_amount:this.is_partial_payments.value?parseFloat(this.minimum_payable_amount.value)||0:null};console.log("Payment Link Request Body:",t),this.paymentLinkService.createPaymentLink(t).then(r=>{!0===r?.success?(this.toastr.showToast("success","Success!","Payment link created successfully."),this.resetForm(),this.setDefaultExpiryDate(),this.modal_ref.close(),setTimeout(()=>{this.page=1,this.getData({paymentLinksOnly:!0}),this.loadLinkStatics()}
1,500)):this.toastr.showToast("danger","Error!",r?.message||"Creating payment link failed.")},r=>{console.error("Internal Server Error",r);let i="Internal Server Error.";r&&r.error&&("object"==typeof r.error?i=r.error.message||r.error.error||r.error.detail||i:"string"==typeof r.error&&(i=r.error)),this.toastr.showToast("danger","Error!",i)}).finally(()=>{this.is_requesting=!1})}updatePaymentLink(){if(this.update_link_form.invalid)return this.update_link_form.markAllAsTouched(),void this.toastr.showToast("danger","Error!","Please enter a description.");this.is_requesting=!0;const t=this.active_payment_link.link_id||this.active_payment_link.reference_no||this.active_payment_link.id,r={description:this.update_link_form.get("description").value};this.paymentLinkService.updatePaymentLink(t,r).then(i=>{!0===i?.success?(this.toastr.showToast("success","Success!","Payment link updated successfully."),this.modal_ref.close(),setTimeout(()=>{this.getData({paymentLinksOnly:!0})},500)):this.toastr.showToast("danger","Error!",i?.message||"Updating payment link failed.")},i=>{console.error("Internal Server Error",i);let s="Internal Server Error.";i&&i.error&&("object"==typeof i.error?s=i.error.message||i.error.error||i.error.detail||s:"string"==typeof i.error&&(s=i.error)),this.toastr.showToast("danger","Error!",s)}).finally(()=>{this.is_requesting=!1})}deletePaymentLink(){this.is_requesting=!0,this.paymentLinkService.deletePaymentLink(this.active_payment_link.link_id||this.active_payment_link.reference_no||this.active_payment_link.id).then(r=>{!0===r?.success?(console.log(r,"resss"),this.toastr.showToast("success","Success!","Payment link deleted successfully."),this.modal_ref.close(),setTimeout(()=>{this.page=1,this.getData({paymentLinksOnly:!0}),this.loadLinkStatics()},500)):this.toastr.showToast("danger","Error!",r?.message||"Deleting payment link failed.")},r=>{console.error("Internal Server Error",r);let i="Internal Server Error.";r&&r.error&&("object"==typeof r.error?i=r.error.message||r.error.error||r.error.detail||i:"string"==typeof r.error&&(i=r.error)),this.toastr.showToast("danger","Error!",i)}).finally(()=>{this.is_requesting=!1})}markAllFormControlsAsTouched(){Object.keys(this.generate_p_link_form.controls).forEach(t=>{const r=this.generate_p_link_form.get(t);r.markAsTouched(),r.updateValueAndValidity()})}resetForm(){this.generate_p_link_form.reset({currency:"LKR",is_partial_payments:!1,minimum_payable_amount:null}),this.formattedAmount="",this.formattedMinPayable=""}formatExpirationDate(t){if(!t)return"";try{const r=new Date(t);if(isNaN(r.getTime()))return"";const i=r.getFullYear();return`${i}-${String(r.getMonth()+1).padStart(2,"0")}-${String(r.getDate()).padStart(2,"0")}`}catch(r){return console.error("Error formatting date:",r),""}}convertToDateTime(t){if(!t)return"Not Available";try{const r=new Date(t);if(isNaN(r))return"Invalid date format";const i=r.getFullYear();return`${i}-${String(r.getMonth()+1).padStart(2,"0")}-${String(r.getDate()).padStart(2,"0")}`}catch{return"Invalid date format"}}pageChanged(t){this.page=t,this.getData({paymentLinksOnly:!0})}isFieldInvalid(t){const r=this.generate_p_link_form.get(t);let i=!1;return r&&(r?.dirty||r?.touched)&&(i=r?.invalid&&r?.errors&&!0,"expire_datetime"===t&&(i=!this.checkExpireDateTime()),"amount"===t&&(i=!this.checkMinAmount())),i}checkExpireDateTime(){return!!this.expire_datetime.value}checkAmount(){let t=this.LKR_MIN_AMOUNT;return"LKR"!==this.currency.value&&(t=this.USD_MIN_AMOUNT),this.amount.value>=t&&!0}openModal(t,r=null,i=this.crud_types.view){if(this.active_payment_link=r,i===this.crud_types.update&&r&&this.update_link_form.patchValue({description:r.description||r.pl_description}),i===this.crud_types.view&&r){const s=r.link_id||r.reference_no||r.id;s&&this.getPaymentSummary(s)}i===this.crud_types.add&&0===this.ipg_apps.length&&this.loadGatewayApplications(),i===this.crud_types.add&&(this.formattedAmount="",this.formattedMinPayable="",this.selectDefaultGatewayApp()),this.modal_ref=this.dialogService.open(t,{closeOnBackdropClick:!1,hasScroll:!0})}closeModal(t=this.crud_types.add){t===this.crud_types.add&&(this.resetForm(),this.setDefaultExpiryDate()),t===this.crud_types.update&&this.update_link_form.reset(),t===this.crud_types.delete&&this.delete_link_form.reset(),this.modal_ref.close()}clearFilterForm(){this.filter_form.reset({status:"all"}),this.page=1,this.getData({paymentLinksOnly:!0})}OnItemClick(t){this.filter_status.setValue(t),console.log("Tab clicked:",t)}reloadGatewayApplications(){console.log("Force reloading gateway applications..."),this.ipg_apps=[],this.loadGatewayApplications()}loadLinkStatics(){var t=this;return(0,Pt.A)(function*(){t.is_loading_stats=!0;try{const r=yield t.paymentLinkService.getPaymentLinkStatics();console.log("Link statistics response:",r),r.success&&r.data?t.link_stats=r.data:(console.warn("Link statistics response was not successful:",r),t.setDefaultLinkStats())}catch(r){console.error("Error loading link statistics:",r),t.setDefaultLinkStats()}finally{t.is_loading_stats=!1}})()}setDefaultLinkStats(){this.link_stats={all:0,active:0,partial:0,expired:0,paid:0}}getPaymentStatusText(t){if(!t)return"Unknown";const r=t.paid_amount||t.total_paid||0,i=t.total_amount||t.amount||0;return r>=i?"Fully Paid":r>0&&r<i?"Partially Paid":(t.pending_amount||t.remaining_amount||0)>0?"Pending":t.status?{active:"Active",expired:"Expired",paid:"Paid",partial:"Partially Paid",fully_paid:"Fully Paid"}[t.status.toLowerCase()]||t.status:"Pending"}getPaymentPercentage(t){if(!t)return 0;const i=t.total_amount||t.amount||0;return i<=0?0:Math.round(Math.min((t.paid_amount||t.total_paid||0)/i*100,100))}getPaymentStatus(t){return t?t.is_fully_paid?"Fully Paid":t.total_paid>0&&t.total_paid<t.total_amount?"Partially Paid":0===t.total_paid&&t.remaining_amount>0?"Pending":"Unknown":"Unknown"}getPaymentStatusBadge(t){return t?t.is_fully_paid?"success":t.total_paid>
10&&t.total_paid<t.total_amount?"warning":0===t.total_paid&&t.remaining_amount>0?"danger":"basic":"basic"}calculatePaymentPercentage(t){return!t||!t.total_amount||t.total_amount<=0?0:Math.min(Math.round(t.total_paid/t.total_amount*100),100)}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(ie.ok),e.rXU(E.S0W),e.rXU(Mt.fR),e.rXU(Mt.of),e.rXU(Dt.V4))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-payment-links"]],decls:79,vars:29,consts:[["viewPaymentLinkModal",""],["generatePLinkModal",""],["updatePLinkModal",""],["deletePLinkModal",""],["paymentSummaryModal",""],[1,"body-style","payment-links-root"],[1,"container"],[1,"row","mb-4"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"page-heading"],["nbButton","","status","success","size","medium",1,"primary-green-btn",3,"click"],[1,"col"],[1,"mb-4",2,"padding","0 10px"],[1,"sub-heading"],[1,"row","mb-3",2,"margin-left","4px","margin-right","4px"],[1,"col-edit","ipg-dashbord-left","dashbord-tab",3,"click"],[1,"menu_itam_dashbord",3,"ngClass"],[1,"mt-3","count-number"],[1,"count-user-name","mt-3"],[1,"col","d-flex","flex-column","px-0","list-like-table"],[1,"table-responsive"],[1,"table","table-sm","align-top"],[2,"width","10%"],[4,"ngIf"],["class","d-flex justify-content-center align-items-center","style","height: 20rem;",4,"ngIf"],["class","d-flex justify-content-center align-items-center table-no-data-div","style","height: 20rem;",4,"ngIf"],["responsive","true","class","mx-auto mt-3 mt-lg-1",3,"pageChange","pageBoundsCorrection",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"d-flex","align-items-center"],["target","_blank",2,"color","#0053F5","text-decoration","underline","cursor","pointer",3,"href"],[3,"text",4,"ngIf"],[2,"padding-left","0"],[1,"d-flex","align-items-center","status-badge-container"],["class","status-badge",3,"ngClass",4,"ngIf"],[1,"btn-group"],["data-toggle","dropdown","aria-expanded","false","src","../../../../assets/images/more.png",1,"more_i"],["class","dropdown-menu dropdown-menu-right",4,"ngIf"],[3,"text"],[1,"status-badge",3,"ngClass"],["class","status-badge status-deleted",4,"ngIf"],["class","status-badge status-expired",4,"ngIf"],["class","status-badge status-partial",4,"ngIf"],["class","status-badge status-pending",4,"ngIf"],["class","status-badge status-completed",4,"ngIf"],["class","status-badge status-default",4,"ngIf"],[1,"status-badge","status-deleted"],[1,"status-badge","status-expired"],[1,"status-badge","status-partial"],[1,"status-badge","status-pending"],[1,"status-badge","status-completed"],[1,"status-badge","status-default"],[1,"dropdown-menu","dropdown-menu-right"],["type","button",1,"dropdown-item",3,"click"],["icon","eye-outline"],[2,"font-size","14px","font-weight","500","color","#344054","margin-left","10px"],["type","button",1,"dropdown-item",3,"click","disabled"],["icon","edit-outline"],["icon","pie-chart-outline"],["icon","trash-outline"],[1,"dropdown-item","disabled","text-muted"],[1,"d-flex","justify-content-center","align-items-center",2,"height","20rem"],["role","status",1,"spinner-border","text-primary"],[1,"visually-hidden"],[1,"d-flex","justify-content-center","align-items-center","table-no-data-div",2,"height","20rem"],["responsive","true",1,"mx-auto","mt-3","mt-lg-1",3,"pageChange","pageBoundsCorrection"],[1,"popup-modal-root","payment-link-view-modal"],[1,"btn","p-0",2,"color","rgba(0, 0, 0, 0.5)",3,"click"],["size","2px",1,"fas","fa-times"],[1,"col","mb-3"],[1,"sub-heading-2"],[1,"d-flex","justify-content-start","align-items-start","mb-2"],[1,"col-3","details-left"],[1,"col-1","details-left"],[1,"col-8","details-right"],[1,"col-3","d-flex","justify-content-start","align-items-center"],[1,"col",2,"position","relative"],["text","Partial Payment","status","warning",4,"ngIf"],["text","Full Payment","status","info",4,"ngIf"],["target","_blank",3,"href"],[1,"my-4"],[1,"col","d-flex","justify-content-end","align-items-center"],["nbButton","","status","basic",3,"click"],["text","Partial Payment","status","warning"],["text","Full Payment","status","info"],[3,"ngSubmit","formGroup"],[1,"popup-modal-root","payment-link-gen-modal",2,"max-width","1200px","width","90vw","padding","5px 10px 0 10px"],[1,"d-flex","justify-content-between","align-items-center"],[1,"sub-heading-new"],["type","button",1,"btn","p-0",2,"color","rgba(0, 0, 0, 0.5)",3,"click"],[1,"nb_cardBody"],[1,"invoice_body"],["type","button",1,"mr-1","btn_common","btC_unique",3,"click"],["nbButton","","status","primary","nbSpinnerStatus","success","type","submit",1,"btn_common","btS_unique",3,"nbSpinner","disabled"],[1,"row"],[1,"col-8","col-in1"],[1,"div_heading","mb-3"],[1,"col-3","d-flex","flex-column","justify-content-start","mb-1"],[1,"col","px-0","mb-1"],[1,"form-required-sign"],["fullWidth","","placeholder","Select currency","formControlName","currency","name","currency",1,"col","selecter_invoice",3,"ngClass"],["disabled","","value",""],[3,"value",4,"ngFor","ngForOf"],[2,"min-height","1.25rem"],["class","text-danger",4,"ngIf"],[1,"col-9","d-flex","flex-column","justify-content-start","mb-1"],["type","text","nbInput","","fullWidth","","placeholder","Enter amount",1,"div_input",3,"input","blur","focus","formControl","value","ngClass"],["class","text-danger test-danger2 d-block",4,"ngIf"],[1,"col-12","d-flex","flex-column","justify-content-start","mb-1","mt-1"],[1,"custom-checkbox"],["type","checkbox","id","is_partial_payments","formControlName","is_partial_payments",3,"click","disabled"],["for","is_partial_payments",1,"lable_checkbox"],["class","text-muted small mt-1",4,"ngIf"],["class","row",4,"ngIf"],[1,"row","mb-1"],[1,"col-12","d-flex","flex-column","justify-content-start"],["nbInput","","fullWidth","","placeholder","Enter reason for payment","formControlName","pl_description","name","pl_description","rows","3",1,"div_input",3,"ngClass"],[2,"min-height","20px"],[1,"col-4"],[1,"col","px-0","d-flex","flex-column","justify-content-start","align-items-stretch"],["placeholder","Select Gateway","formControlName","app_id","name","app_id",3,"status"],["class","error-wrapper",4,"ngIf"],[1,"col-4","d-flex","flex-column","justify-content-start"],["type","text","nbInput","","fullWidth","","placeholder","Enter reference number","formControlName","reference_id","name","reference_id",1,"div_input",3,"ngClass"],["nbInput","","fullWidth","","type","date","formControlName","expire_datetime","name","expire_datetime",1,"div_input",3,"min","ngClass"],[1,"col-6","d-flex","flex-column","justify-content-start"],["type","text","nbInput","","fullWidth","","placeholder","Enter first name","formControlName","customer_first_name","name","customer_first_name",1,"div_input",3,"ngClass"],["type","text","nbInput","","fullWidth","","placeholder","Enter last name","formControlName","customer_last_name","name","customer_last_name",1,"div_input",3,"ngClass"],["type","email","nbInput","","fullWidth","","placeholder","Enter email","formControlName","customer_email","name","customer_email",1,"div_input",3,"ngClass"],["type","text","nbInput","","fullWidth","","placeholder","Enter contact number (max 15 digits)","formControlName","customer_contact_no","name","customer_contact_no",1,"div_input",3,"ngClass"],[1,"payment_border"],[1,"summary-header"],[1,"col-12"],[1,"banner_header","mb-0"],[1,"summary-ref"],[1,"row","mb-2"],[1,"menu_itam2"],[1,"col-12","d-flex","justify-content-center"],[1,"payment-amount"],[1,"currency-label"],[1,"row","mb-3"],[1,"detail-item","mb-3","mt-2"],[1,"d-flex","justify-content-between"],[1,"detail-label"],[1,"detail-value"],[1,"detail-item","mb-3"],["class","detail-item mb-3",4,"ngIf"],[3,"value"],[1,"text-danger"],[1,"text-danger","test-danger2","d-block"],[1,"text-muted","small","mt-1"],[1,"fas","fa-info-circle","mr-1"],[1,"col-12","d-flex","flex-column","justify-content-start","mb-1"],[1,"position-relative"],["type","text","nbInput","","fullWidth","","placeholder","Enter minimum amount",1,"div_input","pr-4",3,"input","blur","focus","value"],[1,"percent-symbol"],[1,"helper-text"],[2,"min-height","1.25rem","margin-top","10px"],[1,"error-wrapper"],[1,"popup-modal-root","payment-link-update-modal",2,"width","50vw"],[1,"col","pt-3","pb-4"],[1,"form-group"],["for","update-description"],["id","update-description","nbInput","","fullWidth","","formControlName","description","name","description","rows","4","placeholder","Enter payment link description",3,"status"],["nbButton","","status","basic","size","small","type","button",1,"mr-2",3,"click"],["nbButton","","status","primary","size","small","nbSpinnerStatus","success","type","submit",3,"nbSpinner","disabled"],[2,"width","400px"],[1,"dialog-border",2,"font-family","'Poppins'"],[1,"row","justify-content-center","mb-3"],["src","../../../../assets/images/delete_icon_pop.png",1,"pe-2","delete_img"],[1,"d-flex","justify-content-center","topic-app","mb-3"],[1,"d-flex","justify-content-center","delete_p"],[2,"border-top","none"],[1,"d-flex","justify-content-between","align-items-center","buttons-container-app","w-100"],[1,"button-cansel-app",3,"click"],["type","button","nbSpinnerStatus","success",1,"delete-button-app",3,"click","nbSpinner","disabled"],[1,"popup-modal-root","payment-summary-modal",2,"width","600px"],["class","d-flex justify-content-center align-items-center py-5",4,"ngIf"],[1,"d-flex","justify-content-center","align-items-center","py-5"],[1,"col-5","details-left"],[1,"col-6","details-right"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",5)(1,"div",6)(2,"div",7)(3,"div",8)(4,"h2",9),e.EFF(5,"Payment Links"),e.k0s(),e.j41(6,"button",10),e.bIt("click",function(){e.eBV(s);const g=e.sdS(72);return e.Njj(i.openModal(g,null,i.crud_types.add))}),e.EFF(7," Create Payment Link "),e.k0s()()(),e.j41(8,"div",7)(9,"div",11)(10,"nb-card")(11,"nb-card-body")(12,"div",12)(13,"h2",13),e.EFF(14,"Payment Link Details"),e.k0s()(),e.j41(15,"div",14)(16,"div",15),e.bIt("click",function(){return e.eBV(s),e.Njj(i.filterByStatus("all"))}),e.j41(17,"div",16)(18,"p",17),e.EFF(19),e.k0s(),e.j41(20,"p",18),e.EFF(21,"All Payment Links"),e.k0s()()(),e.j41(22,"div",15),e.bIt("click",function(){return e.eBV(s),e.Njj(i.filterByStatus("active"))}),e.j41(23,"div",16)(24,"p",17),e.EFF(25),e.k0s(),e.j41(26,"p",18),e.EFF(27,"Active Links"),e.k0s()()(),e.j41(28,"div",15),e.bIt("click",function(){return e.eBV(s),e.Njj(i.filterByStatus("partial"))}),e.j41(29,"div",16)(30,"p",17),e.EFF(31),e.k0s(),e.j41(32,"p",18),e.EFF(33,"Partial Links"),e.k0s()()(),e.j41(34,"div",15),e.bIt("click",function(){return e.eBV(s),e.Njj(i.filterByStatus("expired"))}),e.j41(35,"div",16)(36,"p",17),e.EFF(37),e.k0s(),e.j41(38,"p",18),e.EFF(39,"Expired Links"),e.k0s()()(),e.j41(40,"div",15),e.bIt("click",function(){return e.eBV(s),e.Njj(i.filterByStatus("paid"))}),e.j41(41,"div",16)(42,"p",17),e.EFF(43),e.k0s(),e.j41(44,"p",18),e.EFF(45,"Paid Links"),e.k0s()()()(),e.j41(46,"div",19)(47,"div",20)(48,"table",21)(49,"thead")(50,"tr")(51,"th"),e.EFF(52,"Link Reference"),e.k0s(),e.j41(53,"th"),e.EFF(54,"Customer"),e.k0s(),e.j41(55,"th"),e.EFF(56,"Amount"),e.k0s(),e.j41(57,"th"),e.EFF(58,"Payment Link"),e.k0s(),e.j41(59,"th",22),e.EFF(60,"Status"),e.k0s(),e.j41(61,"th"),e.EFF(62,"Expire On"),e.k0s(),e.j41(63,"th"),e.EFF(64,"Actions"),e.k0s()()(),e.DNE(65,Xo,3,8,"tbody",23),e.k0s()(),e.DNE(66,as,4,0,"div",24)(67,os,3,0,"div",25)(68,Ye,1,0,"pagination-controls",26),e.k0s()()()()()()(),e.DNE(69,Hr,120,29,"ng-template",null,0,e.C5r)(71,_e,21,7,"ng-template",null,1,e.C5r)(73,Ee,25,5,"ng-template",null,2,e.C5r)(75,_t,14,2,"ng-template",null,3,e.C5r)(77,wn,15,2,"ng-template",null,4,e.C5r)}2&r&&(e.R7$(17),e.Y8G("ngClass",e.l_i(14,ed,"all"===i.filter_form.get("status").value||""===i.filter_form.get("status").value,i.filter_form.get("status").value&&"all"!==i.filter_form.get("status").value&&""!==i.filter_form.get("status").value)),e.R7$(2),e.JRh((null==i.link_stats?null:i.link_stats.all)||0),e.R7$(4),e.Y8G("ngClass",e.l_i(17,ed,"active"===i.filter_form.get("status").value,i.filter_form.get("status").value&&"active"!==i.filter_form.get("status").value)),e.R7$(2),e.JRh((null==i.link_stats?null:i.link_stats.active)||0),e.R7$(4),e.Y8G("ngClass",e.l_i(20,ed,"partial"===i.filter_form.get("status").value,i.filter_form.get("status").value&&"partial"!==i.filter_form.get("status").value)),e.R7$(2),e.JRh((null==i.link_stats?null:i.link_stats.partial)||0),e.R7$(4),e.Y8G("ngClass",e.l_i(23,ed,"expired"===i.filter_form.get("status").value,i.filter_form.get("status").value&&"expired"!==i.filter_form.get("status").value)),e.R7$(2),e.JRh((null==i.link_stats?null:i.link_stats.expired)||0),e.R7$(4),e.Y8G("ngClass",e.l_i(26,ed,"paid"===i.filter_form.get("status").value||"fully_paid"===i.filter_form.get("status").value,i.filter_form.get("status").value&&"paid"!==i.filter_form.get("status").value&&"fully_paid"!==i.filter_form.get("status").value)),e.R7$(2),e.JRh((null==i.link_stats?null:i.link_stats.paid)||0),e.R7$(22),e.Y8G("ngIf",!i.is_loading&&i.payment_links_count>0),e.R7$(),e.Y8G("ngIf",i.is_loading),e.R7$(),e.Y8G("ngIf",!i.is_loading&&0===i.payment_links_count),e.R7$(),e.Y8G("ngIf",i.payment_links_count>0))},dependencies:[Fe.YU,Fe.Sq,Fe.bT,xi.ej,ie.qT,ie.xH,ie.y7,ie.me,ie.Zm,ie.wz,ie.BC,ie.cb,ie.l_,ie.j4,ie.JD,Pl.a,E.SrT,E.KH5,E.VDm,E.zJv,E.tHu,E.YP2,E.S81,E.ZJ2,E.i6h,E.XyX,E.zwc,Fe.QX,Fe.vh,xi.kf,ps._],styles:['.payment-link-view-modal[_ngcontent-%COMP%]{width:45rem;height:85vh}.payment-link-view-modal[_ngcontent-%COMP%] nb-badge[_ngcontent-%COMP%]{position:absolute;
1left:0;top:50%;transform:translateY(0);width:-moz-fit-content;width:fit-content}.payment-link-gen-modal[_ngcontent-%COMP%]{width:45rem}.payment-link-disable-modal[_ngcontent-%COMP%]{width:25rem}.payment-link-gen-modal[_ngcontent-%COMP%] .section-heading[_ngcontent-%COMP%]{font-size:16px;font-weight:600;color:#333;margin-bottom:16px}.payment-link-gen-modal[_ngcontent-%COMP%] .payment-link-type-btn[_ngcontent-%COMP%]{padding:8px 16px;border:1px solid #ddd;border-radius:4px;background:#fff;color:#666;font-size:14px;cursor:pointer;transition:all .3s}.payment-link-gen-modal[_ngcontent-%COMP%] .payment-link-type-btn.active[_ngcontent-%COMP%]{background:#1890ff;color:#fff;border-color:#1890ff}.payment-link-gen-modal[_ngcontent-%COMP%] .payment-link-type-btn[_ngcontent-%COMP%]:hover:not(.active){background:#f5f5f5}.payment-link-gen-modal[_ngcontent-%COMP%] .summary-preview[_ngcontent-%COMP%]{background:#f8f9fa;border-radius:8px;padding:20px;height:100%;border:1px solid #e9ecef}.payment-link-gen-modal[_ngcontent-%COMP%] .summary-preview[_ngcontent-%COMP%] .summary-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;padding-bottom:12px;border-bottom:1px solid #dee2e6}.payment-link-gen-modal[_ngcontent-%COMP%] .summary-preview[_ngcontent-%COMP%] .summary-header[_ngcontent-%COMP%] .summary-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;color:#333;margin:0}.payment-link-gen-modal[_ngcontent-%COMP%] .summary-preview[_ngcontent-%COMP%] .summary-header[_ngcontent-%COMP%] .summary-ref[_ngcontent-%COMP%]{font-size:14px;color:#666;background:#e9ecef;padding:4px 8px;border-radius:4px}.payment-link-gen-modal[_ngcontent-%COMP%] .summary-preview[_ngcontent-%COMP%] .summary-amount-section[_ngcontent-%COMP%]{text-align:center;margin-bottom:24px;padding:20px;background:#fff;border-radius:6px;box-shadow:0 2px 4px #0000001a}.payment-link-gen-modal[_ngcontent-%COMP%] .summary-preview[_ngcontent-%COMP%] .summary-amount-section[_ngcontent-%COMP%] .amount-display[_ngcontent-%COMP%]{font-size:32px;font-weight:700;color:#1890ff;margin-bottom:4px}.payment-link-gen-modal[_ngcontent-%COMP%] .summary-preview[_ngcontent-%COMP%] .summary-amount-section[_ngcontent-%COMP%] .currency-label[_ngcontent-%COMP%]{font-size:14px;color:#666}.payment-link-gen-modal[_ngcontent-%COMP%] .summary-preview[_ngcontent-%COMP%] .summary-details[_ngcontent-%COMP%] .detail-section[_ngcontent-%COMP%]{margin-top:20px;padding-top:20px;border-top:1px solid #dee2e6}.payment-link-gen-modal[_ngcontent-%COMP%] .summary-preview[_ngcontent-%COMP%] .summary-details[_ngcontent-%COMP%] .detail-section[_ngcontent-%COMP%] .detail-section-title[_ngcontent-%COMP%]{font-size:16px;font-weight:600;color:#333;margin-bottom:16px}.payment-link-gen-modal[_ngcontent-%COMP%] .summary-preview[_ngcontent-%COMP%] .summary-details[_ngcontent-%COMP%] .detail-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}.payment-link-gen-modal[_ngcontent-%COMP%] .summary-preview[_ngcontent-%COMP%] .summary-details[_ngcontent-%COMP%] .detail-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}.payment-link-gen-modal[_ngcontent-%COMP%] .summary-preview[_ngcontent-%COMP%] .summary-details[_ngcontent-%COMP%] .detail-item[_ngcontent-%COMP%] .detail-label[_ngcontent-%COMP%]{font-size:14px;color:#666;flex:0 0 120px}.payment-link-gen-modal[_ngcontent-%COMP%] .summary-preview[_ngcontent-%COMP%] .summary-details[_ngcontent-%COMP%] .detail-item[_ngcontent-%COMP%] .detail-value[_ngcontent-%COMP%]{font-size:14px;color:#333;font-weight:500;text-align:right;flex:1;word-break:break-word}.payment-link-gen-modal[_ngcontent-%COMP%] .form-label[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#333;margin-bottom:6px;display:block}.payment-link-gen-modal[_ngcontent-%COMP%] .error-wrapper[_ngcontent-%COMP%]{margin:4px 0 0;padding:0;list-style:none}.payment-link-gen-modal[_ngcontent-%COMP%] .error-wrapper[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:#ff4d4f;font-size:12px;margin-top:2px}.payment-link-gen-modal[_ngcontent-%COMP%] .amount-input-wrapper[_ngcontent-%COMP%]{position:relative}@media (max-width: 992px){.payment-link-gen-modal[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{flex-direction:column}.payment-link-gen-modal[_ngcontent-%COMP%] .col-md-6[_ngcontent-%COMP%]{width:100%}.payment-link-gen-modal[_ngcontent-%COMP%] .summary-preview[_ngcontent-%COMP%]{margin-top:20px;height:auto}}.sub-heading-new[_ngcontent-%COMP%]{font-size:22px!important;font-weight:600!important;color:#000!important}.menu_itam[_ngcontent-%COMP%]{height:40px;padding:10px;border-radius:6px;background:#fff;border:1px solid #667185;color:#667185;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;transition:all .2s ease-in-out;margin-right:8px}.menu_itam[_ngcontent-%COMP%]:last-child{margin-right:0}.menu_itam[_ngcontent-%COMP%]:hover{background:#eef2f8;border-color:#4b5563;color:#1f2937}
1.menu_itam.clicked[_ngcontent-%COMP%]{background:#004d14!important;border:1px solid #004D14!important;color:#fff!important}.div_heading[_ngcontent-%COMP%]{font-size:20px;font-weight:600;color:#000;margin-bottom:10px!important}.apply[_ngcontent-%COMP%]{font-size:14px;color:#10b981;font-weight:400;cursor:pointer}.selecter_invoice[_ngcontent-%COMP%]{background-color:#f7f9fc;border-color:#e4e9f2;color:#222b45;line-height:1.5rem;padding:.4375rem 1rem;font-size:15px!important;font-weight:400!important;border-radius:.25rem}input[_ngcontent-%COMP%]{padding-top:5px!important;padding-bottom:5px!important}.banner_header[_ngcontent-%COMP%]{font-size:18px;font-weight:500}.summary-ref[_ngcontent-%COMP%]{font-size:12px;color:#667085;font-weight:500}.menu_itam2[_ngcontent-%COMP%]{width:100%;height:auto;padding:40px 10px;border-radius:10px;background:#defff6;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;transition:all .2s ease-in-out;border:1px solid #004D14}.payment-amount[_ngcontent-%COMP%]{font-size:30px;font-weight:600;color:#004d14;margin-bottom:4px}.currency-label[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#838383}.detail-label[_ngcontent-%COMP%]{font-size:14px;color:#101928;font-weight:500}.detail-value[_ngcontent-%COMP%]{color:#838383;font-size:14px;font-weight:500;text-align:right}.btn_common[_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;text-align:center;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;vertical-align:middle;padding:10px 18px;font-weight:600;border-radius:4px;transition:all .2s ease-in-out;font-size:12px}.btS_unique[_ngcontent-%COMP%]{border:none;color:#fff;background-color:#00253d}.btC_unique[_ngcontent-%COMP%]{border:1px solid #667185;color:#667185;background-color:transparent}.btC_unique[_ngcontent-%COMP%]:hover{background-color:#667185;color:#fff;cursor:pointer}.col-in1[_ngcontent-%COMP%]{padding-right:60px}.helper-text[_ngcontent-%COMP%]{font-size:8px;color:#667185;line-height:12px;position:absolute;top:60px}.custom-checkbox[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:14px;color:#1d2939}.custom-checkbox[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;width:14px;height:14px;border:2px solid #000;border-radius:4px;background-color:#fff;position:relative;cursor:pointer;padding-left:12px;padding-top:12px;margin-top:-13px}.custom-checkbox[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked{background-color:#000;border-color:#000}.custom-checkbox[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:after{content:"";position:absolute;top:2px;left:5px;width:4px;height:8px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg);display:none}.custom-checkbox[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked:after{display:block}.lable_checkbox[_ngcontent-%COMP%]{font-size:11px;color:#101928;margin-top:-11px}.position-relative[_ngcontent-%COMP%]{position:relative}.percent-symbol[_ngcontent-%COMP%]{position:absolute;right:4px;top:50%;transform:translateY(-50%);color:#6c757d;font-size:14px;pointer-events:none}.table-update-btn-1[_ngcontent-%COMP%]{color:#007bff;background:transparent;border:none}.table-update-btn-1[_ngcontent-%COMP%]:hover{background:#007bff1a}.table-summary-btn-1[_ngcontent-%COMP%]{color:#17a2b8;background:transparent;border:none}.table-summary-btn-1[_ngcontent-%COMP%]:hover{background:#17a2b81a}.table-delete-btn-1[_ngcontent-%COMP%]{color:#dc3545;background:transparent;border:none}.table-delete-btn-1[_ngcontent-%COMP%]:hover{background:#dc35451a}.summary-header-card[_ngcontent-%COMP%]{box-shadow:0 2px 4px #0000001a}.summary-header-card[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{font-size:12px;color:#6c757d;text-transform:uppercase;letter-spacing:.5px}.summary-header-card[_ngcontent-%COMP%] .card-value[_ngcontent-%COMP%]{font-size:20px;font-weight:600;color:#343a40}.summary-details[_ngcontent-%COMP%] .detail-item[_ngcontent-%COMP%]{padding:8px 0;border-bottom:1px solid #e9ecef}.summary-details[_ngcontent-%COMP%] .detail-item[_ngcontent-%COMP%]:last-child{border-bottom:none}.delete_img[_ngcontent-%COMP%]{width:60px;height:60px}.topic-app[_ngcontent-%COMP%]{font-size:18px;font-weight:600;color:#333}.delete_p[_ngcontent-%COMP%]{font-size:14px;color:#666;text-align:center;line-height:1.5}.buttons-container-app[_ngcontent-%COMP%]{gap:12px}.button-cansel-app[_ngcontent-%COMP%]{background:#f8f9fa;border:1px solid #dee2e6;color:#495057;padding:8px 24px;border-radius:4px;font-size:14px;cursor:pointer}.button-cansel-app[_ngcontent-%COMP%]:hover{background:#e9ecef}.delete-button-app[_ngcontent-%COMP%]{background:#dc3545;border:1px solid #dc3545;color:#fff;padding:8px 24px;border-radius:4px;font-size:14px;cursor:pointer}.delete-button-app[_ngcontent-%COMP%]:hover{background:#c82333;border-color:#bd2130}.delete-button-app[_ngcontent-%COMP%]:disabled{background:#e9ecef;border-color:#dee2e6;color:#6c757d;cursor:not-allowed}.menu_itam_dashbord[_ngcontent-%COMP%]{width:100%;height:124px;padding:32px 1px;border-radius:8px;border:1px solid #E4E4E4;background:#f4f4f4;background:#d5d8dc;border:2px solid #D5D8DC;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.clicked_dash[_ngcontent-%COMP%]{background:#d5d8dc;border:2px solid #D5D8DC}.clicked2_dash[_ngcontent-%COMP%]{background:#f4f4f4}.col-edit[_ngcontent-%COMP%]{width:20%}.dashbord-tab[_ngcontent-%COMP%]{padding-right:6px!important;padding-left:6px!important;cursor:pointer}.status-badge[_ngcontent-%COMP%]{display:inline-block;padding:4px 12px;border-radius:20px;font-size:12px;font-weight:600;text-align:center;min-width:80px}.status-badge.status-active[_ngcontent-%COMP%]{background-color:#e8f5e9;color:#2e7d32;border:1px solid #c8e6c9}.status-badge.status-partial[_ngcontent-%COMP%]{background-color:#fff3e0;color:#ef6c00;border:1px solid #ffe0b2}.status-badge.status-paid[_ngcontent-%COMP%]{background-color:#e3f2fd;color:#1565c0;border:1px solid #bbdefb}.status-badge.status-fully-paid[_ngcontent-%COMP%]{background-color:#e0f2f1;color:#00695c;border:1px solid #b2dfdb}.status-badge.status-expired[_ngcontent-%COMP%]{background-color:#ffebee;color:#c62828;border:1px solid #ffcdd2}.status-badge.status-disabled[_ngcontent-%COMP%]{background-color:#f5f5f5;color:#616161;border:1px solid #e0e0e0}.status-badge.status-pending[_ngcontent-%COMP%]{background-color:#f3e5f5;color:#7b1fa2}td[_ngcontent-%COMP%] .status-badge[_ngcontent-%COMP%]{display:block;width:-moz-fit-content;width:fit-content}.payment-summary-modal[_ngcontent-%COMP%] .summary-item[_ngcontent-%COMP%]{padding:10px 0;border-bottom:1px solid #eee}.payment-summary-modal[_ngcontent-%COMP%] .summary-label[_ngcontent-%COMP%]{font-weight:600;color:#666;display:block;margin-bottom:4px;font-size:14px}.payment-summary-modal[_ngcontent-%COMP%] .summary-value[_ngcontent-%COMP%]{font-size:16px;color:#333;font-weight:500}.payment-summary-modal[_ngcontent-%COMP%] .progress-container[_ngcontent-%COMP%]{background:#f8f9fa;padding:20px;border-radius:8px;border:1px solid #dee2e6}.payment-summary-modal[_ngcontent-%COMP%] .summary-card[_ngcontent-%COMP%]{border:1px solid #dee2e6;border-radius:8px;overflow:hidden}.payment-summary-modal[_ngcontent-%COMP%] .summary-card-header[_ngcontent-%COMP%]{background:#f8f9fa;padding:15px 20px;border-bottom:1px solid #dee2e6;font-weight:600}.payment-summary-modal[_ngcontent-%COMP%] .summary-card-body[_ngcontent-%COMP%]{padding:20px}.payment-summary-modal[_ngcontent-%COMP%] .transaction-summary-item[_ngcontent-%COMP%]{text-align:center;padding:10px}.payment-summary-modal[_ngcontent-%COMP%] .transaction-label[_ngcontent-%COMP%]{font-size:14px;color:#666;margin-bottom:5px}.payment-summary-modal[_ngcontent-%COMP%] .transaction-value[_ngcontent-%COMP%]{font-size:24px;font-weight:600;color:#333}.payment-summary-modal[_ngcontent-%COMP%] .details-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:15px}.payment-summary-modal[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:10px;background:#f8f9fa;border-radius:6px}.payment-summary-modal[_ngcontent-%COMP%] .detail-label[_ngcontent-%COMP%]{font-weight:600;color:#666}.payment-summary-modal[_ngcontent-%COMP%] .detail-value[_ngcontent-%COMP%]{color:#333;font-weight:500}.payment-summary-modal[_ngcontent-%COMP%] nb-badge[status=success][_ngcontent-%COMP%]{background-color:#28a745}.payment-summary-modal[_ngcontent-%COMP%] nb-badge[status=warning][_ngcontent-%COMP%]{background-color:#ffc107;color:#212529}.payment-summary-modal[_ngcontent-%COMP%] nb-badge[status=danger][_ngcontent-%COMP%]{background-color:#dc3545}.payment-summary-modal[_ngcontent-%COMP%] nb-badge[status=info][_ngcontent-%COMP%]{background-color:#17a2b8}.payment-summary-modal[_ngcontent-%COMP%] .progress-bar.bg-success[_ngcontent-%COMP%]{background-color:#28a745!important}.payment-summary-modal[_ngcontent-%COMP%] .progress-bar.bg-warning[_ngcontent-%COMP%]{background-color:#ffc107!important}.payment-summary-modal[_ngcontent-%COMP%] .progress-bar.bg-danger[_ngcontent-%COMP%]{background-color:#dc3545!important}.payment-summary-modal[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{border-radius:8px;border:1px solid;margin:0}.payment-summary-modal[_ngcontent-%COMP%] .alert-info[_ngcontent-%COMP%]{background-color:#d1ecf1;border-color:#bee5eb;color:#0c5460}.payment-summary-modal[_ngcontent-%COMP%] .alert-danger[_ngcontent-%COMP%]{background-color:#f8d7da;border-color:#f5c6cb;color:#721c24}.more_i[_ngcontent-%COMP%]{width:24px;height:24px;opacity:.7;transition:opacity .2s}.more_i[_ngcontent-%COMP%]:hover{opacity:1}.drop_icon[_ngcontent-%COMP%]{width:16px;height:16px}.dropdown-menu[_ngcontent-%COMP%]{border:1px solid #e0e0e0;box-shadow:0 4px 12px #0000001a;border-radius:8px;padding:8px 0;min-width:180px}.dropdown-item[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 16px;border:none;background:transparent;width:100%;text-align:left;cursor:pointer;transition:background-color .2s}.dropdown-item[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.dropdown-item[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.btn-group[_ngcontent-%COMP%]{position:relative}.more_i[_ngcontent-%COMP%]{width:auto;height:15px;cursor:pointer}.btn.dropdown-toggle[_ngcontent-%COMP%]{display:none}.more_i[_ngcontent-%COMP%]{position:relative;top:3px}.drop_icon[_ngcontent-%COMP%]{width:13px;height:13px}.dashbord-tab[_ngcontent-%COMP%] .menu_itam_dashbord[_ngcontent-%COMP%]{border:2px solid #E0E0E0;border-radius:8px;padding:15px 10px;transition:all .3s ease;background:#fff}.dashbord-tab[_ngcontent-%COMP%] .menu_itam_dashbord.clicked[_ngcontent-%COMP%]{border-color:#036b26;background-color:#effff4}.dashbord-tab[_ngcontent-%COMP%] .menu_itam_dashbord.clicked[_ngcontent-%COMP%] .count-number[_ngcontent-%COMP%]{color:#036b26;font-weight:600}.dashbord-tab[_ngcontent-%COMP%] .menu_itam_dashbord.clicked[_ngcontent-%COMP%] .count-user-name[_ng
1content-%COMP%]{color:#036b26;font-weight:500}.dashbord-tab[_ngcontent-%COMP%] .menu_itam_dashbord.clicked2[_ngcontent-%COMP%]{border-color:#e0e0e0;background-color:#fff}.dashbord-tab[_ngcontent-%COMP%] .menu_itam_dashbord.clicked2[_ngcontent-%COMP%] .count-number[_ngcontent-%COMP%]{color:#333}.dashbord-tab[_ngcontent-%COMP%] .menu_itam_dashbord.clicked2[_ngcontent-%COMP%] .count-user-name[_ngcontent-%COMP%]{color:#666}.dashbord-tab[_ngcontent-%COMP%] .count-number[_ngcontent-%COMP%]{font-size:24px;font-weight:600;margin-bottom:5px;transition:color .3s ease}.dashbord-tab[_ngcontent-%COMP%] .count-user-name[_ngcontent-%COMP%]{font-size:14px;color:#666;margin-bottom:0;transition:color .3s ease}@media (max-width: 768px){.dashbord-tab[_ngcontent-%COMP%]{margin-bottom:10px}.dashbord-tab[_ngcontent-%COMP%] .menu_itam_dashbord[_ngcontent-%COMP%]{padding:12px 8px}.dashbord-tab[_ngcontent-%COMP%] .count-number[_ngcontent-%COMP%]{font-size:20px}.dashbord-tab[_ngcontent-%COMP%] .count-user-name[_ngcontent-%COMP%]{font-size:12px}}.status-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;min-height:32px}.status-container[_ngcontent-%COMP%] nb-badge[_ngcontent-%COMP%]{position:static!important;display:inline-block!important;margin:0}.status-container[_ngcontent-%COMP%] nb-badge[_ngcontent-%COMP%] span{position:static!important;display:inline-block;transform:none!important;margin:0}.status-text[_ngcontent-%COMP%]{display:inline-block;padding:4px 12px;background-color:#edf1f7;border-radius:20px;font-size:12px;font-weight:600;color:#222b45}[_nghost-%COMP%] nb-badge{position:static!important;display:inline-flex!important;align-items:center;justify-content:center}[_nghost-%COMP%] nb-badge.status-danger, [_nghost-%COMP%] nb-badge.status-warning, [_nghost-%COMP%] nb-badge.status-success{position:static!important;transform:none!important;width:auto;height:auto;padding:.25rem .75rem;border-radius:4px;font-weight:600}.status-badge-container[_ngcontent-%COMP%]{display:flex;align-items:center}.status-badge[_ngcontent-%COMP%]{display:inline-block;padding:4px 12px;border-radius:20px;font-size:12px;font-weight:500;text-align:center;white-space:nowrap}.status-badge.status-deleted[_ngcontent-%COMP%]{background:#ff3b3033;color:#ff3b30}.status-badge.status-expired[_ngcontent-%COMP%]{background:#af52de33;color:#af52de}.status-badge.status-pending[_ngcontent-%COMP%], .status-badge.status-partial[_ngcontent-%COMP%]{background:#ff950033;
1color:#ff9500}.status-badge.status-completed[_ngcontent-%COMP%]{background:#d0ffcc;color:#036b26}.status-badge.status-default[_ngcontent-%COMP%]{background:#edf1f7;color:#222b45}']})}return n})();var Zt=bn(97586),Un=bn(80701),jr=bn(2578),gi={version:"0.18.5"},mr=1200,Co=1252,ms=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],lc={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},_l=function(n){-1!=ms.indexOf(n)&&(Co=lc[0]=n)},ko=function(n){mr=n,_l(n)};var ia,Il=function(a){return String.fromCharCode(a)},Jl=function(a){return String.fromCharCode(a)},Ma=null,ks="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Do(n){for(var a="",t=0,r=0,i=0,s=0,p=0,g=0,S=0,R=0;R<n.length;)s=(t=n.charCodeAt(R++))>>2,p=(3&t)<<4|(r=n.charCodeAt(R++))>>4,g=(15&r)<<2|(i=n.charCodeAt(R++))>>6,S=63&i,isNaN(r)?g=S=64:isNaN(i)&&(S=64),a+=ks.charAt(s)+ks.charAt(p)+ks.charAt(g)+ks.charAt(S);return a}function Ko(n){var a="",s=0,p=0,g=0,S=0;n=n.replace(/[^\w\+\/\=]/g,"");for(var R=0;R<n.length;)s=ks.indexOf(n.charAt(R++)),p=ks.indexOf(n.charAt(R++)),a+=String.fromCharCode(s<<2|p>>4),64!==(g=ks.indexOf(n.charAt(R++)))&&(a+=String.fromCharCode((15&p)<<4|g>>2)),64!==(S=ks.indexOf(n.charAt(R++)))&&(a+=String.fromCharCode((3&g)<<6|S));return a}var Br=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),cc=function(){if(typeof Buffer<"u"){var n=!Buffer.from;if(!n)try{Buffer.from("foo","utf8")}catch{n=!0}return n?function(a,t){return t?new Buffer(a,t):new Buffer(a)}:Buffer.from.bind(Buffer)}return function(){}}();function ya(n){return Br?Buffer.alloc?Buffer.alloc(n):new Buffer(n):typeof Uint8Array<"u"?new Uint8Array(n):new Array(n)}function Bu(n){return Br?Buffer.allocUnsafe?Buffer.allocUnsafe(n):new Buffer(n):typeof Uint8Array<"u"?new Uint8Array(n):new Array(n)}var ss=function(a){return Br?cc(a,"binary"):a.split("").map(function(t){return 255&t.charCodeAt(0)})};function Kd(n){if(typeof ArrayBuffer>"u")return ss(n);for(var a=new ArrayBuffer(n.length),t=new Uint8Array(a),r=0;r!=n.length;++r)t[r]=255&n.charCodeAt(r);return a}function yd(n){if(Array.isArray(n))return n.map(function(r){return String.fromCharCode(r)}).join("");for(var a=[],t=0;t<n.length;++t)a[t]=String.fromCharCode(n[t]);return a.join("")}var da=Br?function(n){return Buffer.concat(n.map(function(a){return Buffer.isBuffer(a)?a:cc(a)}))}:function(n){if(typeof Uint8Array<"u"){var a=0,t=0;for(a=0;a<n.length;++a)t+=n[a].length;var r=new Uint8Array(t),i=0;for(a=0,t=0;a<n.length;t+=i,++a)if(i=n[a].length,n[a]instanceof Uint8Array)r.set(n[a],t);else{if("string"==typeof n[a])throw"wtf";r.set(new Uint8Array(n[a]),t)}return r}return[].concat.apply([],n.map(function(s){return Array.isArray(s)?s:[].slice.call(s)}))},Oa=/\u0000/g,vl=/[\u0001-\u0006]/g;function Ys(n){for(var a="",t=n.length-1;t>=0;)a+=n.charAt(t--);return a}function xl(n,a){var t=""+n;return t.length>=a?t:ha("0",a-t.length)+t}function jl(n,a){var t=""+n;return t.length>=a?t:ha(" ",a-t.length)+t}function Gu(n,a){var t=""+n;return t.length>=a?t:t+ha(" ",a-t.length)}var ws=Math.pow(2,32);function ea(n,a){return n>ws||n<-ws?function Cp(n,a){var t=""+Math.round(n);return t.length>=a?t:ha("0",a-t.length)+t}(n,a):function bl(n,a){var t=""+n;return t.length>=a?t:ha("0",a-t.length)+t}(Math.round(n),a)}function Jd(n,a){return n.length>=7+(a=a||0)&&103==(32|n.charCodeAt(a))&&101==(32|n.charCodeAt(a+1))&&110==(32|n.charCodeAt(a+2))&&101==(32|n.charCodeAt(a+3))&&114==(32|n.charCodeAt(a+4))&&97==(32|n.charCodeAt(a+5))&&108==(32|n.charCodeAt(a+6))}var dc=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],ad=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]],ct={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "'},rn={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:4
vendor: 5,614 bytes, line 1
16,81:47,82:0},Ne={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function lt(n,a,t){for(var r=n<0?-1:1,i=n*r,s=0,p=1,g=0,S=1,R=0,L=0,ne=Math.floor(i);R<a&&(g=(ne=Math.floor(i))*p+s,L=ne*R+S,!(i-ne<5e-8));)i=1/(i-ne),s=p,p=g,S=R,R=L;if(L>a&&(R>a?(L=S,g=s):(L=R,g=p)),!t)return[0,r*g,L];var re=Math.floor(r*g/L);return[re,r*g-re*L,L]}function yt(n,a,t){if(n>2958465||n<0)return null;var r=0|n,i=Math.floor(86400*(n-r)),s=0,p=[],g={D:r,T:i,u:86400*(n-r)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(g.u)<1e-6&&(g.u=0),a&&a.date1904&&(r+=1462),g.u>.9999&&(g.u=0,86400==++i&&(g.T=i=0,++r,++g.D)),60===r)p=t?[1317,10,29]:[1900,2,29],s=3;else if(0===r)p=t?[1317,8,29]:[1900,1,0],s=6;else{r>60&&--r;var S=new Date(1900,0,1);S.setDate(S.getDate()+r-1),p=[S.getFullYear(),S.getMonth()+1,S.getDate()],s=S.getDay(),r<60&&(s=(s+6)%7),t&&(s=function W(n,a){a[0]-=581;var t=n.getDay();return n<60&&(t=(t+6)%7),t}(S,p))}return g.y=p[0],g.m=p[1],g.d=p[2],g.S=i%60,i=Math.floor(i/60),g.M=i%60,i=Math.floor(i/60),g.H=i,g.q=s,g}var En=new Date(1899,11,31,0,0,0),bi=En.getTime(),yi=new Date(1900,2,1,0,0,0);function A(n,a){var t=n.getTime();return a?t-=1262304e5:n>=yi&&(t+=864e5),(t-(bi+6e4*(n.getTimezoneOffset()-En.getTimezoneOffset())))/864e5}function y(n){return-1==n.indexOf(".")?n:n.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function U(n,a){switch(typeof n){case"string":return n;case"boolean":return n?"TRUE":"FALSE";case"number":return(0|n)===n?n.toString(10):function D(n){var t,a=Math.floor(Math.log(Math.abs(n))*Math.LOG10E);return t=a>=-4&&a<=-1?n.toPrecision(10+a):Math.abs(a)<=9?function P(n){var a=n<0?12:11,t=y(n.toFixed(12));return t.length<=a||(t=n.toPrecision(10)).length<=a?t:n.toExponential(5)}(n):10===a?n.toFixed(10).substr(0,12):function N(n){var a=y(n.toFixed(11));return a.length>(n<0?12:11)||"0"===a||"-0"===a?n.toPrecision(6):a}(n),y(function k(n){return-1==n.indexOf("E")?n:n.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(t.toUpperCase()))}(n);case"undefined":return"";case"object":if(null==n)return"";if(n instanceof Date)return Te(14,A(n,a&&a.date1904),a)}throw new Error("unsupported value in General format: "+n)}function X(n,a,t,r){var S,i="",s=0,p=0,g=t.y,R=0;switch(n){case 98:g=t.y+543;case 121:switch(a.length){case 1:case 2:S=g%100,R=2;break;default:S=g%1e4,R=4}break;case 109:switch(a.length){case 1:case 2:S=t.m,R=a.length;break;case 3:return ad[t.m-1][1];case 5:return ad[t.m-1][0];default:return ad[t.m-1][2]}break;case 100:switch(a.length){case 1:case 2:S=t.d,R=a.length;break;case 3:return dc[t.q][0];default:return dc[t.q][1]}break;case 104:switch(a.length){case 1:case 2:S=1+(t.H+11)%12,R=a.length;break;default:throw"bad hour format: "+a}break;case 72:switch(a.length){case 1:case 2:S=t.H,R=a.length;break;default:throw"bad hour format: "+a}break;case 77:switch(a.length){case 1:case 2:S=t.M,R=a.length;break;default:throw"bad minute format: "+a}break;case 115:if("s"!=a&&"ss"!=a&&".0"!=a&&".00"!=a&&".000"!=a)throw"bad second format: "+a;return 0!==t.u||"s"!=a&&"ss"!=a?(p=r>=2?3===r?1e3:100:1===r?10:1,(s=Math.round(p*(t.S+t.u)))>=60*p&&(s=0),"s"===a?0===s?"0":""+s/p:(i=xl(s,2+r),"ss"===a?i.substr(0,2):"."+i.substr(2,a.length-1))):xl(t.S,a.length);case 90:switch(a){case"[h]":case"[hh]":S=24*t.D+t.H;break;case"[m]":case"[mm]":S=60*(24*t.D+t.H)+t.M;break;case"[s]":case"[ss]":S=60*(60*(24*t.D+t.H)+t.M)+Math.round(t.S+t.u);break;default:throw"bad abstime format: "+a}R=3===a.length?1:2;break;case 101:S=g,R=1}return R>0?xl(S,R):""}function de(n){if(n.length<=3)return n;for(var t=n.length%3,r=n.substr(0,t);t!=n.length;t+=3)r+=(r.length>0?",":"")+n.substr(t,3);return r}var ve=/%/g;function oe(n,a){var t,r=n.indexOf("E")-n.indexOf(".")-1;if(n.match(/^#+0.0E\+0$/)){if(0==a)return"0.0E+0";if(a<0)return"-"+oe(n,-a);var i=n.indexOf(".");-1===i&&(i=n.indexOf("E"));var s=Math.floor(Math.log(a)*Math.LOG10E)%i;if(s<0&&(s+=i),-1===(t=(a/Math.pow(10,s)).toPrecision(r+1+(i+s)%i)).indexOf("e")){var p=Math.floor(Math.log(a)*Math.LOG10E);for(-1===t.indexOf(".")?t=t.charAt(0)+"."+t.substr(1)+"E+"+(p-t.length+s):t+="E+"+(p-s);"0."===t.substr(0,2);)t=(t=t.charAt(0)+t.substr(2,i)+"."+t.substr(2+i)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(g,S,R,L){return S+R+L.substr(0,(i+s)%i)+"."+L.substr(s)+"E"})}else t=a.toExponential(r);return n.match(/E\+00$/)&&t.match(/e[+-]\d$/)&&(t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1)),n.match(/E\-/)&&t.match(/e\+/)&&(t=t.replace(/e\+/,"e")),t.replace("e","E")}var at=/# (\?+)( ?)\/( ?)(\d+)/,Ve=/^#*0*\.([0#]+)/,ot=/\).*[0#]/,Rt=/\(###\) ###\\?-####/;function Jt(n){for(var t,a="",r=0;r!=n.length;++r)switch(t=n.charCodeAt(r)){case 35:break;case 63:a+=" ";break;case 48:a+="0";break;default:a+=String.fromCharCode(t)}return a}function An(n,a){var t=Math.pow(10,a);return""+Math.round(n*t)/t}function hi(n,a){var t=n-Math.floor(n),r=Math.pow(10,a);return a<(""+Math.round(t*r)).length?0:Math.round(t*r)}function qn(n,a,t){if(40===n.charCodeAt(0)&&!a.match(ot)){var r=a.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?qn("n",r,t):"("+qn("n",r,-t)+")"}
vendor: 4,380 bytes, line 1
1if(44===a.charCodeAt(a.length-1))return function Le(n,a,t){for(var r=a.length-1;44===a.charCodeAt(r-1);)--r;return kt(n,a.substr(0,r),t/Math.pow(10,3*(a.length-r)))}(n,a,t);if(-1!==a.indexOf("%"))return function Ae(n,a,t){var r=a.replace(ve,""),i=a.length-r.length;return kt(n,r,t*Math.pow(10,2*i))+ha("%",i)}(n,a,t);if(-1!==a.indexOf("E"))return oe(a,t);if(36===a.charCodeAt(0))return"$"+qn(n,a.substr(" "==a.charAt(1)?2:1),t);var i,s,p,g,S=Math.abs(t),R=t<0?"-":"";if(a.match(/^00+$/))return R+ea(S,a.length);if(a.match(/^[#?]+$/))return"0"===(i=ea(t,0))&&(i=""),i.length>a.length?i:Jt(a.substr(0,a.length-i.length))+i;if(s=a.match(at))return function We(n,a,t){var r=parseInt(n[4],10),i=Math.round(a*r),s=Math.floor(i/r),p=i-s*r,g=r;return t+(0===s?"":""+s)+" "+(0===p?ha(" ",n[1].length+1+n[4].length):jl(p,n[1].length)+n[2]+"/"+n[3]+xl(g,n[4].length))}(s,S,R);if(a.match(/^#+0+$/))return R+ea(S,a.length-a.indexOf("0"));if(s=a.match(Ve))return i=An(t,s[1].length).replace(/^([^\.]+)$/,"$1."+Jt(s[1])).replace(/\.$/,"."+Jt(s[1])).replace(/\.(\d*)$/,function(xe,ce){return"."+ce+ha("0",Jt(s[1]).length-ce.length)}),-1!==a.indexOf("0.")?i:i.replace(/^0\./,".");if(a=a.replace(/^#+([0.])/,"$1"),s=a.match(/^(0*)\.(#*)$/))return R+An(S,s[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=a.match(/^#{1,3},##0(\.?)$/))return R+de(ea(S,0));if(s=a.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+qn(n,a,-t):de(""+(Math.floor(t)+function mn(n,a){return a<(""+Math.round((n-Math.floor(n))*Math.pow(10,a))).length?1:0}(t,s[1].length)))+"."+xl(hi(t,s[1].length),s[1].length);if(s=a.match(/^#,#*,#0/))return qn(n,a.replace(/^#,#*,/,""),t);if(s=a.match(/^([0#]+)(\\?-([0#]+))+$/))return i=Ys(qn(n,a.replace(/[\\-]/g,""),t)),p=0,Ys(Ys(a.replace(/\\/g,"")).replace(/[0#]/g,function(xe){return p<i.length?i.charAt(p++):"0"===xe?"0":""}));if(a.match(Rt))return"("+(i=qn(n,"##########",t)).substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var L="";if(s=a.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return p=Math.min(s[4].length,7),g=lt(S,Math.pow(10,p)-1,!1),i=""+R," "==(L=kt("n",s[1],g[1])).charAt(L.length-1)&&(L=L.substr(0,L.length-1)+"0"),i+=L+s[2]+"/"+s[3],(L=Gu(g[2],p)).length<s[4].length&&(L=Jt(s[4].substr(s[4].length-L.length))+L),i+=L;if(s=a.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return p=Math.min(Math.max(s[1].length,s[4].length),7),R+((g=lt(S,Math.pow(10,p)-1,!0))[0]||(g[1]?"":"0"))+" "+(g[1]?jl(g[1],p)+s[2]+"/"+s[3]+Gu(g[2],p):ha(" ",2*p+1+s[2].length+s[3].length));if(s=a.match(/^[#0?]+$/))return i=ea(t,0),a.length<=i.length?i:Jt(a.substr(0,a.length-i.length))+i;if(s=a.match(/^([#0?]+)\.([#0]+)$/)){i=""+t.toFixed(Math.min(s[2].length,10)).replace(/([^0])0+$/,"$1"),p=i.indexOf(".");var ne=a.indexOf(".")-p,re=a.length-i.length-ne;return Jt(a.substr(0,ne)+i+a.substr(a.length-re))}if(s=a.match(/^00,000\.([#0]*0)$/))return p=hi(t,s[1].length),t<0?"-"+qn(n,a,-t):de(function At(n){return n<2147483647&&n>-2147483648?""+(n>=0?0|n:n-1|0):""+Math.floor(n)}(t)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(xe){return"00,"+(xe.length<3?xl(0,3-xe.length):"")+xe})+"."+xl(p,s[1].length);switch(a){case"###,##0.00":return qn(n,"#,##0.00",t);case"###,###":case"##,###":case"#,###":var fe=de(ea(S,0));return"0"!==fe?R+fe:"";case"###,###.00":return qn(n,"###,##0.00",t).replace(/^0\./,".");case"#,###.00":return qn(n,"#,##0.00",t).replace(/^0\./,".")}throw new Error("unsupported format |"+a+"|")}function $e(n,a){var t,r=n.indexOf("E")-n.indexOf(".")-1;if(n.match(/^#+0.0E\+0$/)){if(0==a)return"0.0E+0";if(a<0)return"-"+$e(n,-a);var i=n.indexOf(".");-1===i&&(i=n.indexOf("E"));var s=Math.floor(Math.log(a)*Math.LOG10E)%i;if(s<0&&(s+=i),!(t=(a/Math.pow(10,s)).toPrecision(r+1+(i+s)%i)).match(/[Ee]/)){var p=Math.floor(Math.log(a)*Math.LOG10E);-1===t.indexOf(".")?t=t.charAt(0)+"."+t.substr(1)+"E+"+(p-t.length+s):t+="E+"+(p-s),t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(g,S,R,L){return S+R+L.substr(0,(i+s)%i)+"."+L.substr(s)+"E"})}else t=a.toExponential(r);return n.match(/E\+00$/)&&t.match(/e[+-]\d$/)&&(t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1)),n.match(/E\-/)&&t.match(/e\+/)&&(t=t.replace(/e\+/,"e")),t.replace("e","E")}function jt(n,a,t){if(40===n.charCodeAt(0)&&!a.match(ot)){var r=a.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?jt("n",r,t):"("+jt("n",r,-t)+")"}
vendor: 10,336 bytes, line 1
1if(44===a.charCodeAt(a.length-1))return function ii(n,a,t){for(var r=a.length-1;44===a.charCodeAt(r-1);)--r;return kt(n,a.substr(0,r),t/Math.pow(10,3*(a.length-r)))}(n,a,t);if(-1!==a.indexOf("%"))return function He(n,a,t){var r=a.replace(ve,""),i=a.length-r.length;return kt(n,r,t*Math.pow(10,2*i))+ha("%",i)}(n,a,t);if(-1!==a.indexOf("E"))return $e(a,t);if(36===a.charCodeAt(0))return"$"+jt(n,a.substr(" "==a.charAt(1)?2:1),t);var i,s,p,g,S=Math.abs(t),R=t<0?"-":"";if(a.match(/^00+$/))return R+xl(S,a.length);if(a.match(/^[#?]+$/))return i=""+t,0===t&&(i=""),i.length>a.length?i:Jt(a.substr(0,a.length-i.length))+i;if(s=a.match(at))return function ht(n,a,t){return t+(0===a?"":""+a)+ha(" ",n[1].length+2+n[4].length)}(s,S,R);if(a.match(/^#+0+$/))return R+xl(S,a.length-a.indexOf("0"));if(s=a.match(Ve))return i=(i=(""+t).replace(/^([^\.]+)$/,"$1."+Jt(s[1])).replace(/\.$/,"."+Jt(s[1]))).replace(/\.(\d*)$/,function(xe,ce){return"."+ce+ha("0",Jt(s[1]).length-ce.length)}),-1!==a.indexOf("0.")?i:i.replace(/^0\./,".");if(a=a.replace(/^#+([0.])/,"$1"),s=a.match(/^(0*)\.(#*)$/))return R+(""+S).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=a.match(/^#{1,3},##0(\.?)$/))return R+de(""+S);if(s=a.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+jt(n,a,-t):de(""+t)+"."+ha("0",s[1].length);if(s=a.match(/^#,#*,#0/))return jt(n,a.replace(/^#,#*,/,""),t);if(s=a.match(/^([0#]+)(\\?-([0#]+))+$/))return i=Ys(jt(n,a.replace(/[\\-]/g,""),t)),p=0,Ys(Ys(a.replace(/\\/g,"")).replace(/[0#]/g,function(xe){return p<i.length?i.charAt(p++):"0"===xe?"0":""}));if(a.match(Rt))return"("+(i=jt(n,"##########",t)).substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var L="";if(s=a.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return p=Math.min(s[4].length,7),g=lt(S,Math.pow(10,p)-1,!1),i=""+R," "==(L=kt("n",s[1],g[1])).charAt(L.length-1)&&(L=L.substr(0,L.length-1)+"0"),i+=L+s[2]+"/"+s[3],(L=Gu(g[2],p)).length<s[4].length&&(L=Jt(s[4].substr(s[4].length-L.length))+L),i+=L;if(s=a.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return p=Math.min(Math.max(s[1].length,s[4].length),7),R+((g=lt(S,Math.pow(10,p)-1,!0))[0]||(g[1]?"":"0"))+" "+(g[1]?jl(g[1],p)+s[2]+"/"+s[3]+Gu(g[2],p):ha(" ",2*p+1+s[2].length+s[3].length));if(s=a.match(/^[#0?]+$/))return a.length<=(i=""+t).length?i:Jt(a.substr(0,a.length-i.length))+i;if(s=a.match(/^([#0]+)\.([#0]+)$/)){i=""+t.toFixed(Math.min(s[2].length,10)).replace(/([^0])0+$/,"$1"),p=i.indexOf(".");var ne=a.indexOf(".")-p,re=a.length-i.length-ne;return Jt(a.substr(0,ne)+i+a.substr(a.length-re))}if(s=a.match(/^00,000\.([#0]*0)$/))return t<0?"-"+jt(n,a,-t):de(""+t).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(xe){return"00,"+(xe.length<3?xl(0,3-xe.length):"")+xe})+"."+xl(0,s[1].length);switch(a){case"###,###":case"##,###":case"#,###":var fe=de(""+S);return"0"!==fe?R+fe:"";default:if(a.match(/\.[0#?]*$/))return jt(n,a.slice(0,a.lastIndexOf(".")),t)+Jt(a.slice(a.lastIndexOf(".")))}throw new Error("unsupported format |"+a+"|")}function kt(n,a,t){return(0|t)===t?jt(n,a,t):qn(n,a,t)}var Dn=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function Xn(n){for(var a=0,t="",r="";a<n.length;)switch(t=n.charAt(a)){case"G":Jd(n,a)&&(a+=6),a++;break;case'"':for(;34!==n.charCodeAt(++a)&&a<n.length;);++a;break;case"\\":case"_":a+=2;break;case"@":++a;break;case"B":case"b":if("1"===n.charAt(a+1)||"2"===n.charAt(a+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"\u4e0a":if("A/P"===n.substr(a,3).toUpperCase()||"AM/PM"===n.substr(a,5).toUpperCase()||"\u4e0a\u5348/\u4e0b\u5348"===n.substr(a,5).toUpperCase())return!0;++a;break;case"[":for(r=t;"]"!==n.charAt(a++)&&a<n.length;)r+=n.charAt(a);if(r.match(Dn))return!0;break;case".":case"0":case"#":for(;a<n.length&&("0#?.,E+-%".indexOf(t=n.charAt(++a))>-1||"\\"==t&&"-"==n.charAt(a+1)&&"0#".indexOf(n.charAt(a+2))>-1););break;case"?":for(;n.charAt(++a)===t;);break;case"*":++a,(" "==n.charAt(a)||"*"==n.charAt(a))&&++a;break;case"(":case")":++a;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;a<n.length&&"0123456789".indexOf(n.charAt(++a))>-1;);break;default:++a}return!1}var oi=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function ai(n,a){if(null==a)return!1;var t=parseFloat(a[2]);switch(a[1]){case"=":if(n==t)return!0;break;case">":if(n>t)return!0;break;case"<":if(n<t)return!0;break;case"<>":if(n!=t)return!0;break;case">=":if(n>=t)return!0;break;case"<=":if(n<=t)return!0}return!1}function Te(n,a,t){null==t&&(t={});var r="";switch(typeof n){case"string":r="m/d/yy"==n&&t.dateNF?t.dateNF:n;break;case"number":null==(r=14==n&&t.dateNF?t.dateNF:(null!=t.table?t.table:ct)[n])&&(r=t.table&&t.table[rn[n]]||ct[rn[n]]),null==r&&(r=Ne[n]||"General")}if(Jd(r,0))return U(a,t);a instanceof Date&&(a=A(a,t.date1904));var i=function Qi(n,a){var t=function On(n){for(var a=[],t=!1,r=0,i=0;r<n.length;++r)switch(n.charCodeAt(r)){case 34:t=!t;break;case 95:case 42:case 92:++r;break;case 59:a[a.length]=n.substr(i,r-i),i=r+1}if(a[a.length]=n.substr(i),!0===t)throw new Error("Format |"+n+"| unterminated string ");return a}(n),r=t.length,i=t[r-1].indexOf("@");if(r<4&&i>-1&&--r,t.length>4)throw new Error("cannot find right format for |"+t.join("|")+"|");if("number"!=typeof a)return[4,4===t.length||i>-1?t[t.length-1]:"@"];switch(t.length){case 1:t=i>-1?["General","General","General",t[0]]:[t[0],t[0],t[0],"@"];break;case 2:t=i>-1?[t[0],t[0],t[0],t[1]]:[t[0],t[1],t[0],"@"];break;case 3:t=i>-1?[t[0],t[1],t[0],t[2]]:[t[0],t[1],t[2],"@"]}var s=a>0?t[0]:a<0?t[1]:t[2];if(-1===t[0].indexOf("[")&&-1===t[1].indexOf("["))return[r,s];if(null!=t[0].match(/\[[=<>]/)||null!=t[1].match(/\[[=<>]/)){var p=t[0].match(oi),g=t[1].match(oi);return ai(a,p)?[r,t[0]]:ai(a,g)?[r,t[1]]:[r,t[null!=p&&null!=g?2:1]]}return[r,s]}(r,a);if(Jd(i[1]))return U(a,t);if(!0===a)a="TRUE";else if(!1===a)a="FALSE";else if(""===a||null==a)return"";return function xn(n,a,t,r){for(var R,L,ne,i=[],s="",p=0,g="",S="t",re="H";p<n.length;)switch(g=n.charAt(p)){case"G":if(!Jd(n,p))throw new Error("unrecognized character "+g+" in "+n);i[i.length]={t:"G",v:"General"},p+=7;break;case'"':for(s="";34!==(ne=n.charCodeAt(++p))&&p<n.length;)s+=String.fromCharCode(ne);i[i.length]={t:"t",v:s},++p;break;case"\\":var fe=n.charAt(++p);i[i.length]={t:"("===fe||")"===fe?fe:"t",v:fe},++p;break;case"_":i[i.length]={t:"t",v:" "},p+=2;break;case"@":i[i.length]={t:"T",v:a},++p;break;case"B":case"b":if("1"===n.charAt(p+1)||"2"===n.charAt(p+1)){if(null==R&&null==(R=yt(a,t,"2"===n.charAt(p+1))))return"";i[i.length]={t:"X",v:n.substr(p,2)},S=g,p+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":g=g.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(a<0||null==R&&null==(R=yt(a,t)))return"";for(s=g;++p<n.length&&n.charAt(p).toLowerCase()===g;)s+=g;"m"===g&&"h"===S.toLowerCase()&&(g="M"),"h"===g&&(g=re),i[i.length]={t:g,v:s},S=g;break;case"A":case"a":case"\u4e0a":var ce={t:g,v:g};if(null==R&&(R=yt(a,t)),"A/P"===n.substr(p,3).toUpperCase()?(null!=R&&(ce.v=R.H>=12?"P":"A"),ce.t="T",re="h",p+=3):"AM/PM"===n.substr(p,5).toUpperCase()?(null!=R&&(ce.v=R.H>=12?"PM":"AM"),ce.t="T",p+=5,re="h"):"\u4e0a\u5348/\u4e0b\u5348"===n.substr(p,5).toUpperCase()?(null!=R&&(ce.v=R.H>=12?"\u4e0b\u5348":"\u4e0a\u5348"),ce.t="T",p+=5,re="h"):(ce.t="t",++p),null==R&&"T"===ce.t)return"";i[i.length]=ce,S=g;break;case"[":for(s=g;"]"!==n.charAt(p++)&&p<n.length;)s+=n.charAt(p);if("]"!==s.slice(-1))throw'unterminated "[" block: |'+s+"|";if(s.match(Dn)){if(null==R&&null==(R=yt(a,t)))return"";i[i.length]={t:"Z",v:s.toLowerCase()},S=s.charAt(1)}else s.indexOf("$")>-1&&(s=(s.match(/\$([^-\[\]]*)/)||[])[1]||"$",Xn(n)||(i[i.length]={t:"t",v:s}));break;case".":if(null!=R){for(s=g;++p<n.length&&"0"===(g=n.charAt(p));)s+=g;i[i.length]={t:"s",v:s};break}case"0":case"#":for(s=g;++p<n.length&&"0#?.,E+-%".indexOf(g=n.charAt(p))>-1;)s+=g;i[i.length]={t:"n",v:s};break;case"?":for(s=g;n.charAt(++p)===g;)s+=g;i[i.length]={t:g,v:s},S=g;break;case"*":++p,(" "==n.charAt(p)||"*"==n.charAt(p))&&++p;break;case"(":case")":i[i.length]={t:1===r?"t":g,v:g},++p;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(s=g;p<n.length&&"0123456789".indexOf(n.charAt(++p))>-1;)s+=n.charAt(p);i[i.length]={t:"D",v:s};break;case" ":i[i.length]={t:g,v:g},++p;break;case"$":i[i.length]={t:"t",v:"$"},++p;break;default:if(-1===",$-+/():!^&'~{}<>=\u20acacfijklopqrtuvwxzP".indexOf(g))throw new Error("unrecognized character "+g+" in "+n);i[i.length]={t:"t",v:g},++p}var tt,be=0,Je=0;for(p=i.length-1,S="t";p>=0;--p)switch(i[p].t){case"h":case"H":i[p].t=re,S="h",be<1&&(be=1);break;case"s":(tt=i[p].v.match(/\.0+$/))&&(Je=Math.max(Je,tt[0].length-1)),be<3&&(be=3);case"d":case"y":case"M":case"e":S=i[p].t;break;case"m":"s"===S&&(i[p].t="M",be<2&&(be=2));break;case"X":break;case"Z":be<1&&i[p].v.match(/[Hh]/)&&(be=1),be<2&&i[p].v.match(/[Mm]/)&&(be=2),be<3&&i[p].v.match(/[Ss]/)&&(be=3)}switch(be){case 0:break;case 1:R.u>=.5&&(R.u=0,++R.S),R.S>=60&&(R.S=0,++R.M),R.M>=60&&(R.M=0,++R.H);break;case 2:R.u>=.5&&(R.u=0,++R.S),R.S>=60&&(R.S=0,++R.M)}var en,Ze="";for(p=0;p<i.length;++p)switch(i[p].t){case"t":case"T":case" ":case"D":break;case"X":i[p].v="",i[p].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":i[p].v=X(i[p].t.charCodeAt(0),i[p].v,R,Je),i[p].t="t";break;case"n":case"?":for(en=p+1;null!=i[en]&&("?"===(g=i[en].t)||"D"===g||(" "===g||"t"===g)&&null!=i[en+1]&&("?"===i[en+1].t||"t"===i[en+1].t&&"/"===i[en+1].v)||"("===i[p].t&&(" "===g||"n"===g||")"===g)||"t"===g&&("/"===i[en].v||" "===i[en].v&&null!=i[en+1]&&"?"==i[en+1].t));)i[p].v+=i[en].v,i[en]={v:"",t:";"},++en;Ze+=i[p].v,p=en-1;break;case"G":i[p].t="t",i[p].v=U(a,t)}var Kn,Tt,vn="";if(Ze.length>0){40==Ze.charCodeAt(0)?(Kn=a<0&&45===Ze.charCodeAt(0)?-a:a,Tt=kt("n",Ze,Kn)):(Tt=kt("n",Ze,Kn=a<0&&r>1?-a:a),Kn<0&&i[0]&&"t"==i[0].t&&(Tt=Tt.substr(1),i[0].v="-"+i[0].v)),en=Tt.length-1;var hn=i.length;for(p=0;p<i.length;++p)if(null!=i[p]&&"t"!=i[p].t&&i[p].v.indexOf(".")>-1){hn=p;break}var on=i.length;if(hn===i.length&&-1===Tt.indexOf("E")){for(p=i.length-1;p>=0;--p)null==i[p]||-1==="n?".indexOf(i[p].t)||(en>=i[p].v.length-1?i[p].v=Tt.substr(1+(en-=i[p].v.length),i[p].v.length):en<0?i[p].v="":(i[p].v=Tt.substr(0,en+1),en=-1),i[p].t="t",on=p);en>
1=0&&on<i.length&&(i[on].v=Tt.substr(0,en+1)+i[on].v)}else if(hn!==i.length&&-1===Tt.indexOf("E")){for(en=Tt.indexOf(".")-1,p=hn;p>=0;--p)if(null!=i[p]&&-1!=="n?".indexOf(i[p].t)){for(L=i[p].v.indexOf(".")>-1&&p===hn?i[p].v.indexOf(".")-1:i[p].v.length-1,vn=i[p].v.substr(L+1);L>=0;--L)en>=0&&("0"===i[p].v.charAt(L)||"#"===i[p].v.charAt(L))&&(vn=Tt.charAt(en--)+vn);i[p].v=vn,i[p].t="t",on=p}for(en>=0&&on<i.length&&(i[on].v=Tt.substr(0,en+1)+i[on].v),en=Tt.indexOf(".")+1,p=hn;p<i.length;++p)if(null!=i[p]&&(-1!=="n?(".indexOf(i[p].t)||p===hn)){for(L=i[p].v.indexOf(".")>-1&&p===hn?i[p].v.indexOf(".")+1:0,vn=i[p].v.substr(0,L);L<i[p].v.length;++L)en<Tt.length&&(vn+=Tt.charAt(en++));i[p].v=vn,i[p].t="t",on=p}}}for(p=0;p<i.length;++p)null!=i[p]&&"n?".indexOf(i[p].t)>-1&&(i[p].v=kt(i[p].t,i[p].v,Kn=r>1&&a<0&&p>0&&"-"===i[p-1].v?-a:a),i[p].t="t");var ti="";for(p=0;p!==i.length;++p)null!=i[p]&&(ti+=i[p].v);return ti}(i[1],a,t,i[0])}function Qe(n,a){if("number"!=typeof a){a=+a||-1;for(var t=0;t<392;++t)if(null!=ct[t]){if(ct[t]==n){a=t;break}}else a<0&&(a=t);a<0&&(a=391)}return ct[a]=n,a}function dt(n){for(var a=0;392!=a;++a)void 0!==n[a]&&Qe(n[a],a)}function Nt(){ct=function nt(n){return n||(n={}),n[0]="General",n[1]="0",n[2]="0.00",n[3]="#,##0",n[4]="#,##0.00",n[9]="0%",n[10]="0.00%",n[11]="0.00E+00",n[12]="# ?/?",n[13]="# ??/??",n[14]="m/d/yy",n[15]="d-mmm-yy",n[16]="d-mmm",n[17]="mmm-yy",n[18]="h:mm AM/PM",n[19]="h:mm:ss AM/PM",n[20]="h:mm",n[21]="h:mm:ss",n[22]="m/d/yy h:mm",n[37]="#,##0 ;(#,##0)",n[38]="#,##0 ;[Red](#,##0)",n[39]="#,##0.00;(#,##0.00)",n[40]="#,##0.00;[Red](#,##0.00)",n[45]="mm:ss",n[46]="[h]:mm:ss",n[47]="mmss.0",n[48]="##0.0E+0",n[49]="@",n[56]='"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "',n}()}var In=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,Oi=function(){var n={version:"1.2.0"},t=function a(){for(var Tt=0,hn=new Array(256),on=0;256!=on;++on)hn[on]=Tt=1&(Tt=1&(Tt=1&(Tt=1&(Tt=1&(Tt=1&(Tt=1&(Tt=1&(Tt=on)?-306674912^Tt>>>1:Tt>>>1)?-306674912^Tt>>>1:Tt>>>1)?-306674912^Tt>>>1:Tt>>>1)?-306674912^Tt>>>1:Tt>>>1)?-306674912^Tt>>>1:Tt>>>1)?-306674912^Tt>>>1:Tt>>>1)?-306674912^Tt>>>1:Tt>>>1)?-306674912^Tt>>>1:Tt>>>1;return typeof Int32Array<"u"?new Int32Array(hn):hn}(),i=function r(Tt){var hn=0,on=0,ti=0,ni=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(ti=0;256!=ti;++ti)ni[ti]=Tt[ti];for(ti=0;256!=ti;++ti)for(on=Tt[ti],hn=256+ti;hn<4096;hn+=256)on=ni[hn]=on>>>8^Tt[255&on];var cn=[];for(ti=1;16!=ti;++ti)cn[ti-1]=typeof Int32Array<"u"?ni.subarray(256*ti,256*ti+256):ni.slice(256*ti,256*ti+256);return cn}(t),s=i[0],p=i[1],g=i[2],S=i[3],R=i[4],L=i[5],ne=i[6],re=i[7],fe=i[8],xe=i[9],ce=i[10],be=i[11],Je=i[12],tt=i[13],Ze=i[14];return n.table=t,n.bstr=function en(Tt,hn){for(var on=~hn,ti=0,ni=Tt.length;ti<ni;)on=on>>>8^t[255&(on^Tt.charCodeAt(ti++))];return~on},n.buf=function vn(Tt,hn){for(var on=~hn,ti=Tt.length-15,ni=0;ni<ti;)on=Ze[Tt[ni++]^255&on]^tt[Tt[ni++]^on>>8&255]^Je[Tt[ni++]^on>>16&255]^be[Tt[ni++]^on>>>24]^ce[Tt[ni++]]^xe[Tt[ni++]]^fe[Tt[ni++]]^re[Tt[ni++]]^ne[Tt[ni++]]^L[Tt[ni++]]^R[Tt[ni++]]^S[Tt[ni++]]^g[Tt[ni++]]^p[Tt[ni++]]^s[Tt[ni++]]^t[Tt[ni++]];for(ti+=15;ni<ti;)on=on>>>8^t[255&(on^Tt[ni++])];return~on},n.str=function Kn(Tt,hn){for(var on=~hn,ti=0,ni=Tt.length,cn=0,Yi=0;ti<ni;)(cn=Tt.charCodeAt(ti++))<128?on=on>>>8^t[255&(on^cn)]:cn<2048?on=(on=on>>>8^t[255&(on^(192|cn>>6&31))])>>>8^t[255&(on^(128|63&cn))]:cn>=55296&&cn<57344?(cn=64+(1023&cn),Yi=1023&Tt.charCodeAt(ti++),on=(on=(on=(on=on>>>8^t[255&(on^(240|cn>>8&7))])>>>8^t[255&(on^(128|cn>>2&63))])>>>8^t[255&(on^(128|Yi>>6&15|(3&cn)<<4))])>>>8^t[255&(on^(128|63&Yi))]):on=(on=(on=on>>>8^t[255&(on^(224|cn>>12&15))])>>>8^t[255&(on^(128|cn>>6&63))])>>>8^t[255&(on^(128|63&cn))];return~on},n}(),Zn=function(){var S,a={};function r(De){if("/"==De.charAt(De.length-1))return-1===De.slice(0,-1).indexOf("/")?De:r(De.slice(0,-1));var ut=De.lastIndexOf("/");return-1===ut?De:De.slice(0,ut+1)}function i(De){if("/"==De.charAt(De.length-1))return i(De.slice(0,-1));var ut=De.lastIndexOf("/");return-1===ut?De:De.slice(ut+1)}function s(De,ut){"string"==typeof ut&&(ut=new Date(ut));var Ke=ut.getHours();Ke=(Ke=Ke<<6|ut.getMinutes())<<5|ut.getSeconds()>>>1,De.write_shift(2,Ke);var it=ut.getFullYear()-1980;it=(it=it<<4|ut.getMonth()+1)<<5|ut.getDate(),De.write_shift(2,it)}function g(De){go(De,0);for(var ut={},Ke=0;De.l<=De.length-4;){var it=De.read_shift(2),pt=De.read_shift(2),mt=De.l+pt,Nn={};21589===it&&(1&(Ke=De.read_shift(1))&&(Nn.mtime=De.read_shift(4)),pt>
15&&(2&Ke&&(Nn.atime=De.read_shift(4)),4&Ke&&(Nn.ctime=De.read_shift(4))),Nn.mtime&&(Nn.mt=new Date(1e3*Nn.mtime))),De.l=mt,ut[it]=Nn}return ut}function R(){return S||(S={})}function L(De,ut){if(80==De[0]&&75==De[1])return Y4(De,ut);if(109==(32|De[0])&&105==(32|De[1]))return function GI(De,ut){if("mime-version:"!=pr(De.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var Ke=ut&&ut.root||"",it=(Br&&Buffer.isBuffer(De)?De.toString("binary"):pr(De)).split("\r\n"),pt=0,mt="";for(pt=0;pt<it.length;++pt)if(/^Content-Location:/i.test(mt=it[pt])&&(mt=mt.slice(mt.indexOf("file")),Ke||(Ke=mt.slice(0,mt.lastIndexOf("/")+1)),mt.slice(0,Ke.length)!=Ke))for(;Ke.length>0&&(Ke=(Ke=Ke.slice(0,Ke.length-1)).slice(0,Ke.lastIndexOf("/")+1),mt.slice(0,Ke.length)!=Ke););var Nn=(it[1]||"").match(/boundary="(.*?)"/);if(!Nn)throw new Error("MAD cannot find boundary");var si="--"+(Nn[1]||""),Yn={FileIndex:[],FullPaths:[]};Tt(Yn);var Ni,dr=0;for(pt=0;pt<it.length;++pt){var Yr=it[pt];Yr!==si&&Yr!==si+"--"||(dr++&&BI(Yn,it.slice(Ni,pt),Ke),Ni=pt)}return Yn}(De,ut);if(De.length<512)throw new Error("CFB file size "+De.length+" < 512");var Ke,pt,mt,Nn,si,zn,it=512,Gn=[],Yn=De.slice(0,512);go(Yn,0);var Ni=function ne(De){if(80==De[De.l]&&75==De[De.l+1])return[0,0];De.chk(Tr,"Header Signature: "),De.l+=16;var ut=De.read_shift(2,"u");return[De.read_shift(2,"u"),ut]}(Yn);switch(Ke=Ni[0]){case 3:it=512;break;case 4:it=4096;break;case 0:if(0==Ni[1])return Y4(De,ut);default:throw new Error("Major Version: Expected 3 or 4 saw "+Ke)}512!==it&&go(Yn=De.slice(0,it),28);var dr=De.slice(0,it);!function re(De,ut){var Ke;switch(De.l+=2,Ke=De.read_shift(2)){case 9:if(3!=ut)throw new Error("Sector Shift: Expected 9 saw "+Ke);break;case 12:if(4!=ut)throw new Error("Sector Shift: Expected 12 saw "+Ke);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+Ke)}De.chk("0600","Mini Sector Shift: "),De.chk("000000000000","Reserved: ")}(Yn,Ke);var Yr=Yn.read_shift(4,"i");if(3===Ke&&0!==Yr)throw new Error("# Directory Sectors: Expected 0 saw "+Yr);Yn.l+=4,Nn=Yn.read_shift(4,"i"),Yn.l+=4,Yn.chk("00100000","Mini Stream Cutoff Size: "),si=Yn.read_shift(4,"i"),pt=Yn.read_shift(4,"i"),zn=Yn.read_shift(4,"i"),mt=Yn.read_shift(4,"i");for(var ur=-1,vr=0;vr<109&&!((ur=Yn.read_shift(4,"i"))<0);++vr)Gn[vr]=ur;var eo=function fe(De,ut){for(var Ke=Math.ceil(De.length/ut)-1,it=[],pt=1;pt<Ke;++pt)it[pt-1]=De.slice(pt*ut,(pt+1)*ut);return it[Ke-1]=De.slice(Ke*ut),it}(De,it);be(zn,mt,eo,it,Gn);var oc=function tt(De,ut,Ke,it){var pt=De.length,mt=[],Nn=[],si=[],zn=[],Gn=it-1,Yn=0,Ni=0,dr=0,Yr=0;for(Yn=0;Yn<pt;++Yn)if(si=[],(dr=Yn+ut)>=pt&&(dr-=pt),!Nn[dr]){zn=[];var ur=[];for(Ni=dr;Ni>=0;){ur[Ni]=!0,Nn[Ni]=!0,si[si.length]=Ni,zn.push(De[Ni]);var vr=Ke[Math.floor(4*Ni/it)];if(it<4+(Yr=4*Ni&Gn))throw new Error("FAT boundary crossed: "+Ni+" 4 "+it);if(!De[vr]||ur[Ni=iu(De[vr],Yr)])break}mt[dr]={nodes:si,data:ns([zn])}}return mt}(eo,Nn,Gn,it);oc[Nn].name="!Directory",pt>0&&si!==Yi&&(oc[si].name="!MiniFAT"),oc[Gn[0]].name="!FAT",oc.fat_addrs=Gn,oc.ssz=it;var Nd=[],zp=[],A1=[];(function Ze(De,ut,Ke,it,pt,mt,Nn,si){for(var Yr,zn=0,Gn=it.length?2:0,Yn=ut[De].data,Ni=0,dr=0;Ni<Yn.length;Ni+=128){var ur=Yn.slice(Ni,Ni+128);go(ur,64),dr=ur.read_shift(2),Yr=Nc(ur,0,dr-Gn),it.push(Yr);var vr={name:Yr,type:ur.read_shift(1),color:ur.read_shift(1),L:ur.read_shift(4,"i"),R:ur.read_shift(4,"i"),C:ur.read_shift(4,"i"),clsid:ur.read_shift(16),state:ur.read_shift(4,"i"),start:0,size:0};0!==ur.read_shift(2)+ur.read_shift(2)+ur.read_shift(2)+ur.read_shift(2)&&(vr.ct=en(ur,ur.l-8)),0!==ur.read_shift(2)+ur.read_shift(2)+ur.read_shift(2)+ur.read_shift(2)&&(vr.mt=en(ur,ur.l-8)),vr.start=ur.read_shift(4,"i"),vr.size=ur.read_shift(4,"i"),vr.size<0&&vr.start<0&&(vr.size=vr.type=0,vr.start=Yi,vr.name=""),5===vr.type?(zn=vr.start,pt>0&&zn!==Yi&&(ut[zn].name="!StreamData")):vr.size>=4096?(vr.storage="fat",void 0===ut[vr.start]&&(ut[vr.start]=Je(Ke,vr.start,ut.fat_addrs,ut.ssz)),ut[vr.start].name=vr.name,vr.content=ut[vr.start].data.slice(0,vr.size)):(vr.storage="minifat",vr.size<0?vr.size=0:zn!==Yi&&vr.start!==Yi&&ut[z
vendor: 4,538 bytes, line 1
1n]&&(vr.content=ce(vr,ut[zn].data,(ut[si]||{}).data))),vr.content&&go(vr.content,0),mt[Yr]=vr,Nn.push(vr)}})(Nn,oc,eo,Nd,pt,{},zp,si),function xe(De,ut,Ke){for(var it=0,pt=0,mt=0,Nn=0,si=0,zn=Ke.length,Gn=[],Yn=[];it<zn;++it)Gn[it]=Yn[it]=it,ut[it]=Ke[it];for(;si<Yn.length;++si)pt=De[it=Yn[si]].L,mt=De[it].R,Nn=De[it].C,Gn[it]===it&&(-1!==pt&&Gn[pt]!==pt&&(Gn[it]=Gn[pt]),-1!==mt&&Gn[mt]!==mt&&(Gn[it]=Gn[mt])),-1!==Nn&&(Gn[Nn]=it),-1!==pt&&it!=Gn[it]&&(Gn[pt]=Gn[it],Yn.lastIndexOf(pt)<si&&Yn.push(pt)),-1!==mt&&it!=Gn[it]&&(Gn[mt]=Gn[it],Yn.lastIndexOf(mt)<si&&Yn.push(mt));for(it=1;it<zn;++it)Gn[it]===it&&(-1!==mt&&Gn[mt]!==mt?Gn[it]=Gn[mt]:-1!==pt&&Gn[pt]!==pt&&(Gn[it]=Gn[pt]));for(it=1;it<zn;++it)if(0!==De[it].type){if((si=it)!=Gn[si])do{ut[it]=ut[si=Gn[si]]+"/"+ut[it]}while(0!==si&&-1!==Gn[si]&&si!=Gn[si]);Gn[it]=-1}for(ut[0]+="/",it=1;it<zn;++it)2!==De[it].type&&(ut[it]+="/")}(zp,A1,Nd),Nd.shift();var T1={FileIndex:zp,FullPaths:A1};return ut&&ut.raw&&(T1.raw={header:dr,sectors:eo}),T1}function ce(De,ut,Ke){for(var pt=De.size,mt=[],Nn=De.start;Ke&&pt>0&&Nn>=0;)mt.push(ut.slice(Nn*cn,Nn*cn+cn)),pt-=cn,Nn=iu(Ke,4*Nn);return 0===mt.length?Rn(0):da(mt).slice(0,De.size)}function be(De,ut,Ke,it,pt){var mt=Yi;if(De===Yi){if(0!==ut)throw new Error("DIFAT chain shorter than expected")}else if(-1!==De){var Nn=Ke[De],si=(it>>>2)-1;if(!Nn)return;for(var zn=0;zn<si&&(mt=iu(Nn,4*zn))!==Yi;++zn)pt.push(mt);be(iu(Nn,it-4),ut-1,Ke,it,pt)}}function Je(De,ut,Ke,it,pt){var mt=[],Nn=[];pt||(pt=[]);var si=it-1,zn=0,Gn=0;for(zn=ut;zn>=0;){pt[zn]=!0,mt[mt.length]=zn,Nn.push(De[zn]);var Yn=Ke[Math.floor(4*zn/it)];if(it<4+(Gn=4*zn&si))throw new Error("FAT boundary crossed: "+zn+" 4 "+it);if(!De[Yn])break;zn=iu(De[Yn],Gn)}return{nodes:mt,data:ns([Nn])}}function en(De,ut){return new Date(1e3*(Hs(De,ut+4)/1e7*Math.pow(2,32)+Hs(De,ut)/1e7-11644473600))}function Tt(De,ut){var Ke=ut||{},it=Ke.root||"Root Entry";if(De.FullPaths||(De.FullPaths=[]),De.FileIndex||(De.FileIndex=[]),De.FullPaths.length!==De.FileIndex.length)throw new Error("inconsistent CFB structure");0===De.FullPaths.length&&(De.FullPaths[0]=it+"/",De.FileIndex[0]={name:it,type:5}),Ke.CLSID&&(De.FileIndex[0].clsid=Ke.CLSID),function hn(De){var ut="\x01Sh33tJ5";if(!Zn.find(De,"/"+ut)){var Ke=Rn(4);Ke[0]=55,Ke[1]=Ke[3]=50,Ke[2]=54,De.FileIndex.push({name:ut,type:2,content:Ke,size:4,L:69,R:69,C:69}),De.FullPaths.push(De.FullPaths[0]+ut),on(De)}}(De)}function on(De,ut){Tt(De);for(var Ke=!1,it=!1,pt=De.FullPaths.length-1;pt>=0;--pt){var mt=De.FileIndex[pt];switch(mt.type){case 0:it?Ke=!0:(De.FileIndex.pop(),De.FullPaths.pop());break;case 1:case 2:case 5:it=!0,isNaN(mt.R*mt.L*mt.C)&&(Ke=!0),mt.R>-1&&mt.L>-1&&mt.R==mt.L&&(Ke=!0);break;default:Ke=!0}}if(Ke||ut){var Nn=new Date(1987,1,19),si=0,zn=Object.create?Object.create(null):{},Gn=[];for(pt=0;pt<De.FullPaths.length;++pt)zn[De.FullPaths[pt]]=!0,0!==De.FileIndex[pt].type&&Gn.push([De.FullPaths[pt],De.FileIndex[pt]]);for(pt=0;pt<Gn.length;++pt){var Yn=r(Gn[pt][0]);(it=zn[Yn])||(Gn.push([Yn,{name:i(Yn).replace("/",""),type:1,clsid:fa,ct:Nn,mt:Nn,content:null}]),zn[Yn]=!0)}for(Gn.sort(function(Yr,ur){return function t(De,ut){for(var Ke=De.split("/"),it=ut.split("/"),pt=0,mt=0,Nn=Math.min(Ke.length,it.length);pt<Nn;++pt){if(mt=Ke[pt].length-it[pt].length)return mt;if(Ke[pt]!=it[pt])return Ke[pt]<it[pt]?-1:1}return Ke.length-it.length}(Yr[0],ur[0])}),De.FullPaths=[],De.FileIndex=[],pt=0;pt<Gn.length;++pt)De.FullPaths[pt]=Gn[pt][0],De.FileIndex[pt]=Gn[pt][1];for(pt=0;pt<Gn.length;++pt){var Ni=De.FileIndex[pt],dr=De.FullPaths[pt];if(Ni.name=i(dr).replace("/",""),Ni.L=Ni.R=Ni.C=-(Ni.color=1),Ni.size=Ni.content?Ni.content.length:0,Ni.start=0,Ni.clsid=Ni.clsid||fa,0===pt)Ni.C=Gn.length>1?1:-1,Ni.size=0,Ni.type=5;else if("/"==dr.slice(-1)){for(si=pt+1;si<Gn.length&&r(De.FullPaths[si])!=dr;++si);for(Ni.C=si>=Gn.length?-1:si,si=pt+1;si<Gn.length&&r(De.FullPaths[si])!=r(dr);++si);Ni.R=si>=Gn.length?-1:si,Ni.type=1}else r(De.FullPaths[pt+1]||"")==r(dr)&&(Ni.R=pt+1),Ni.type=2}}}function ti(De,ut){var Ke=ut||{};if("mad"==Ke.fileType)return function VI(De,ut){for(var Ke=ut||{},it=Ke.boundary||"SheetJS",pt=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(it="------="+it).slice(2)+'"',"","",""],mt=De.FullPaths[0],Nn=mt,si=De.FileIndex[0],zn=1;zn<De.FullPaths.length;++zn)if(Nn=De.FullPaths[zn].slice(mt.length),(si=De.FileIndex[zn]).size&&si.content&&"\x01Sh33tJ5"!=Nn){Nn=Nn.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(eo){return"_x"+eo.charCodeAt(0).toString(16)+"_"}
1).replace(/[\u0080-\uFFFF]/g,function(eo){return"_u"+eo.charCodeAt(0).toString(16)+"_"});for(var Gn=si.content,Yn=Br&&Buffer.isBuffer(Gn)?Gn.toString("binary"):pr(Gn),Ni=0,dr=Math.min(1024,Yn.length),Yr=0,ur=0;ur<=dr;++ur)(Yr=Yn.charCodeAt(ur))>=32&&Yr<128&&++Ni;var vr=Ni>=4*dr/5;pt.push(it),pt.push("Content-Location: "+(Ke.root||"file:///C:/SheetJS/")+Nn),pt.push("Content-Transfer-Encoding: "+(vr?"quoted-printable":"base64")),pt.push("Content-Type: "+jI(si,Nn)),pt.push(""),pt.push(vr?LI(Yn):RI(Yn))}return pt.push(it+"--\r\n"),pt.join("\r\n")}(De,Ke);if("zip"===(on(De),Ke.fileType))return function II(De,ut){var Ke=ut||{},it=[],pt=[],mt=Rn(1),Nn=Ke.compression?8:0,si=0,Gn=0,Yn=0,Ni=0,dr=0,Yr=De.FullPaths[0],ur=Yr,vr=De.FileIndex[0],eo=[],oc=0;for(Gn=1;Gn<De.FullPaths.length;++Gn)if(ur=De.FullPaths[Gn].slice(Yr.length),(vr=De.FileIndex[Gn]).size&&vr.content&&"\x01Sh33tJ5"!=ur){var yp=Ni,Nd=Rn(ur.length);for(Yn=0;Yn<ur.length;++Yn)Nd.write_shift(1,127&ur.charCodeAt(Yn));Nd=Nd.slice(0,Nd.l),eo[dr]=Oi.buf(vr.content,0);var zp=vr.content;8==Nn&&(zp=Wt(zp)),(mt=Rn(30)).write_shift(4,67324752),mt.write_shift(2,20),mt.write_shift(2,si),mt.write_shift(2,Nn),vr.mt?s(mt,vr.mt):mt.write_shift(4,0),mt.write_shift(-4,8&si?0:eo[dr]),mt.write_shift(4,8&si?0:zp.length),mt.write_shift(4,8&si?0:vr.content.length),mt.write_shift(2,Nd.length),mt.write_shift(2,0),Ni+=mt.length,it.push(mt),Ni+=Nd.length,it.push(Nd),Ni+=zp.length,it.push(zp),8&si&&((mt=Rn(12)).write_shift(-4,eo[dr]),mt.write_shift(4,zp.length),mt.write_shift(4,vr.content.length),Ni+=mt.l,it.push(mt)),(mt=Rn(46)).write_shift(4,33639248),mt.write_shift(2,0),mt.write_shift(2,20),mt.write_shift(2,si),mt.write_shift(2,Nn),mt.write_shift(4,0),mt.write_shift(-4,eo[dr]),mt.write_shift(4,zp.length),mt.write_shift(4,vr.content.length),mt.write_shift(2,Nd.length),mt.write_shift(2,0),mt.write_shift(2,0),mt.write_shift(2,0),mt.write_shift(2,0),mt.write_shift(4,0),mt.write_shift(4,yp),oc+=mt.l,pt.push(mt),oc+=Nd.length,pt.push(Nd),++dr}return(mt=Rn(22)).write_shift(4,101010256),mt.write_shift(2,0),mt.write_shift(2,0),mt.write_shift(2,dr),mt.write_shift(2,dr),mt.write_shift(4,oc),mt.write_shift(4,Ni),mt.write_shift(2,0),da([da(it),da(pt),mt])}(De,Ke);var it=function(Yr){for(var ur=0,vr=0,eo=0;eo<Yr.FileIndex.length;++eo){var oc=Yr.FileIndex[eo];if(oc.content){var yp=oc.content.length;yp>0&&(yp<4096?ur+=yp+63>>6:vr+=yp+511>>9)}}for(var Nd=Yr.FullPaths.length+3>>2,A1=ur+127>>7,T1=(ur+7>>3)+vr+Nd+A1,Dg=T1+127>>7,kx=Dg<=109?0:Math.ceil((Dg-109)/127);T1+Dg+kx+127>>7>Dg;)kx=++Dg<=109?0:Math.ceil((Dg-109)/127);var Mm=[1,kx,Dg,A1,Nd,vr,ur,0];return Yr.FileIndex[0].size=ur<<6,Mm[7]=(Yr.FileIndex[0].start=Mm[0]+Mm[1]+Mm[2]+Mm[3]+Mm[4]+Mm[5])+(Mm[6]+7>>3),Mm}(De),pt=Rn(it[7]<<9),mt=0,Nn=0;for(mt=0;mt<8;++mt)pt.write_shift(1,ar[mt]);for(mt=0;mt<8;++mt)pt.write_shift(2,0);for(pt.write_shift(2,62),pt.write_shift(2,3),pt.write_shift(2,65534),pt.write_shift(2,9),pt.write_shift(2,6),mt=0;mt<3;++mt)pt.write_shift(2,0);for(pt.write_shift(4,0),pt.write_shift(4,it[2]),pt.write_shift(4,it[0]+it[1]+it[2]+it[3]-1),pt.write_shift(4,0),pt.write_shift(4,4096),pt.write_shift(4,it[3]?it[0]+it[1]+it[2]-1:Yi),pt.write_shift(4,it[3]),pt.write_shift(-4,it[1]?it[0]-1:Yi),pt.write_shift(4,it[1]),mt=0;mt<109;++mt)pt.write_shift(-4,mt<it[2]?it[1]+mt:-1);if(it[1])for(Nn=0;Nn<it[1];++Nn){for(;mt<236+127*Nn;++mt)pt.write_shift(-4,mt<it[2]?it[1]+mt:-1);pt.write_shift(-4,Nn===it[1]-1?Yi:Nn+1)}var si=function(Yr){for(Nn+=Yr;mt<Nn-1;++mt)pt.write_shift(-4,mt+1);Yr&&(++mt,pt.write_shift(-4,Yi))};for(Nn=mt=0,Nn+=it[1];mt<Nn;++mt)pt.write_shift(-4,Ir.DIFSECT);for(Nn+=it[2];mt<Nn;++mt)pt.write_shift(-4,Ir.FATSECT);si(it[3]),si(it[4]);for(var zn=0,Gn=0,Yn=De.FileIndex[0];zn<De.FileIndex.length;++zn)(Yn=De.FileIndex[zn]).content&&!((Gn=Yn.content.length)<4096)&&(Yn.start=Nn,si(Gn+511>>9));for(si(it[6]+7>>3);511&pt.l;)pt.write_shift(-4,Ir.ENDOFCHAIN);for(Nn=mt=0,zn=0;zn<De.FileIndex.length;++zn)(Yn=De.FileIndex[zn]).content&&(Gn=Yn.content.length)&&!(Gn>=4096)&&(Yn.start=Nn,si(Gn+63>>6));for(;511&pt.l;)pt.write_shift(-4,Ir.ENDOFCHAIN);for(mt=0;mt<it[4]<<2;++mt){var Ni=De.FullPaths[mt];if(Ni&&0!==Ni.length){Yn=De.FileIndex[mt],0===mt&&(Yn.start=Yn.size?Yn.start-1:Yi);var dr=0===mt&&Ke.root||Yn.name;if(Gn=2*(dr.length+1),pt.write_shift(64,dr,"utf16le"),pt.write_shift(2,Gn),pt.write_shift(1,Yn.type),pt.write_shift(1,Yn.color),pt.write_shift(-4,Yn.L),pt.write_shift(-4,Yn.R),pt.write_shift(-4,Yn.C),Yn.clsid)pt.write_shift(16,Yn.clsid,"hex");else for(zn=0;zn<4;++zn)pt.write_shift(4,0);pt.write_shift(4,Yn.state||0),pt.write_shift(4,0),pt.write_shift(4,0),pt.write_shift(4,0),pt.write_shift(4,0),pt.write_shift(4,Yn.start),pt.write_shift(4,Yn.size),pt.write_shift(4,0)}else{for(zn=0;zn<17;++zn)pt.write_shift(4,0);for(zn=0;zn<3;++zn)pt.write_shift(4,-1);for(zn=0;zn<12;++zn)pt.write_shift(4,0)}}
1for(mt=1;mt<De.FileIndex.length;++mt)if((Yn=De.FileIndex[mt]).size>=4096)if(pt.l=Yn.start+1<<9,Br&&Buffer.isBuffer(Yn.content))Yn.content.copy(pt,pt.l,0,Yn.size),pt.l+=Yn.size+511&-512;else{for(zn=0;zn<Yn.size;++zn)pt.write_shift(1,Yn.content[zn]);for(;511&zn;++zn)pt.write_shift(1,0)}for(mt=1;mt<De.FileIndex.length;++mt)if((Yn=De.FileIndex[mt]).size>0&&Yn.size<4096)if(Br&&Buffer.isBuffer(Yn.content))Yn.content.copy(pt,pt.l,0,Yn.size),pt.l+=Yn.size+63&-64;else{for(zn=0;zn<Yn.size;++zn)pt.write_shift(1,Yn.content[zn]);for(;63&zn;++zn)pt.write_shift(1,0)}if(Br)pt.l=pt.length;else for(;pt.l<pt.length;)pt.write_shift(1,0);return pt}a.version="1.2.1";var Ai,cn=64,Yi=-2,Tr="d0cf11e0a1b11ae1",ar=[208,207,17,224,161,177,26,225],fa="00000000000000000000000000000000",Ir={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:Yi,FREESECT:-1,HEADER_SIGNATURE:Tr,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:fa,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function pr(De){for(var ut=new Array(De.length),Ke=0;Ke<De.length;++Ke)ut[Ke]=String.fromCharCode(De[Ke]);return ut.join("")}function Wt(De){return Ai?Ai.deflateRawSync(De):Po(De)}for(var De,ut,Gt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],pi=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],Cr=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],nr=typeof Uint8Array<"u",Ti=nr?new Uint8Array(256):[],mo=0;mo<256;++mo)Ti[mo]=(void 0,255&((ut=139536&((De=mo)<<1|De<<11)|558144&(De<<5|De<<15))>>16|ut>>8|ut));function Ft(De,ut){var Ke=Ti[255&De];return ut<=8?Ke>>>8-ut:(Ke=Ke<<8|Ti[De>>8&255],ut<=16?Ke>>>16-ut:(Ke=Ke<<8|Ti[De>>16&255])>>>24-ut)}function nl(De,ut){var Ke=7&ut,it=ut>>>3;return(De[it]|(Ke<=6?0:De[it+1]<<8))>>>Ke&3}function Lo(De,ut){var Ke=7&ut,it=ut>>>3;return(De[it]|(Ke<=5?0:De[it+1]<<8))>>>Ke&7}function No(De,ut){var Ke=7&ut,it=ut>>>3;return(De[it]|(Ke<=3?0:De[it+1]<<8))>>>Ke&31}function Fr(De,ut){var Ke=7&ut,it=ut>>>3;return(De[it]|(Ke<=1?0:De[it+1]<<8))>>>Ke&127}function md(De,ut,Ke){var it=7&ut,pt=ut>>>3,Nn=De[pt]>>>it;return Ke<8-it||(Nn|=De[pt+1]<<8-it,Ke<16-it)||(Nn|=De[pt+2]<<16-it,Ke<24-it)||(Nn|=De[pt+3]<<24-it),Nn&(1<<Ke)-1}function oh(De,ut,Ke){var it=7&ut,pt=ut>>>3;return it<=5?De[pt]|=(7&Ke)<<it:(De[pt]|=Ke<<it&255,De[pt+1]=(7&Ke)>>8-it),ut+3}function Xh(De,ut,Ke){return De[ut>>>3]|=Ke=(1&Ke)<<(7&ut),ut+1}function Em(De,ut,Ke){var pt=ut>>>3;return De[pt]|=255&(Ke<<=7&ut),De[pt+1]=Ke>>>=8,ut+8}function w1(De,ut,Ke){var pt=ut>>>3;return De[pt]|=255&(Ke<<=7&ut),De[pt+1]=255&(Ke>>>=8),De[pt+2]=Ke>>>8,ut+16}function ng(De,ut){var Ke=De.length,it=2*Ke>ut?2*Ke:ut+5,pt=0;if(Ke>=ut)return De;if(Br){var mt=Bu(it);if(De.copy)De.copy(mt);else for(;pt<De.length;++pt)mt[pt]=De[pt];return mt}if(nr){var Nn=new Uint8Array(it);if(Nn.set)Nn.set(De);else for(;pt<Ke;++pt)Nn[pt]=De[pt];return Nn}return De.length=it,De}function Vp(De){for(var ut=new Array(De),Ke=0;Ke<De;++Ke)ut[Ke]=0;return ut}function Pm(De,ut,Ke){var it=1,pt=0,mt=0,Nn=0,si=0,zn=De.length,Gn=nr?new Uint16Array(32):Vp(32);for(mt=0;mt<32;++mt)Gn[mt]=0;for(mt=zn;mt<Ke;++mt)De[mt]=0;zn=De.length;var Yn=nr?new Uint16Array(zn):Vp(zn);for(mt=0;mt<zn;++mt)Gn[pt=De[mt]]++,it<pt&&(it=pt),Yn[mt]=0;for(Gn[0]=0,mt=1;mt<=it;++mt)Gn[mt+16]=si=si+Gn[mt-1]<<1;for(mt=0;mt<zn;++mt)0!=(si=De[mt])&&(Yn[mt]=Gn[si+16]++);var Ni=0;for(mt=0;mt<zn;++mt)if(0!=(Ni=De[mt]))for(si=Ft(Yn[mt],it)>>it-Ni,Nn=(1<<it+4-Ni)-1;Nn>=0;--Nn)ut[si|Nn<<Ni]=15&Ni|mt<<4;return it}var ig=nr?new Uint16Array(512):Vp(512),F1=nr?new Uint16Array(32):Vp(32);if(!nr){for(var Xf=0;Xf<512;++Xf)ig[Xf]=0;for(Xf=0;Xf<32;++Xf)F1[Xf]=0}!function(){for(var De=[],ut=0;ut<32;ut++)De.push(5);Pm(De,F1,32);var Ke=[];for(ut=0;ut<=143;ut++)Ke.push(8);for(;ut<=255;ut++)Ke.push(9);for(;ut<=279;ut++)Ke.push(7);for(;ut<=287;ut++)Ke.push(8);Pm(Ke,ig,288)}();var Hh=function(){for(var ut=nr?new Uint8Array(32768):[],Ke=0,it=0;Ke<Cr.length-1;++Ke)for(;it<Cr[Ke+1];++it)ut[it]=Ke;for(;it<32768;++it)ut[it]=29;var pt=nr?new Uint8Array(259):[];for(Ke=0,it=0;Ke<pi.length-1;++Ke)for(;it<pi[Ke+1];++it)pt[it]=Ke;return function(zn,Gn){return zn.length<8?function mt(si,zn){for(var Gn=0;Gn<si.length;){var Yn=Math.min(65535,si.length-Gn);for(zn.write_shift(1,+(Gn+Yn==si.length)),zn.write_shift(2,Yn),zn.write_shift(2,65535&~Yn);Yn-- >0;)zn[zn.l++]=si[Gn++]}return zn.l}(zn,Gn):function Nn(si,zn){for(var Gn=0,Yn=0,Ni=nr?new Uint16Array(32768):[];Yn<si.length;){var dr=Math.min(65535,si.length-Yn);if(dr<10){for(7&(Gn=oh(zn,Gn,+(Yn+dr==si.length)))&&(Gn+=8-(7&Gn)),zn.l=Gn/8|0,zn.write_shift(2,dr),zn.write_shift(2,65535&~dr);dr-- >0;)zn[zn.l++]=si[Yn++];Gn=8*zn.l}else{Gn=oh(zn,Gn,+(Yn+dr==si.length)+2);for(var Yr=0;dr-- >0;){var ur=si[Yn],vr=-1,eo=0;if((vr=Ni[Yr=32767&(Yr<<5^ur)])&&((vr|=-32768&Yn)>Yn&&(vr-=32768),vr<Yn))for(;si[vr+eo]==si[Yn+eo]&&eo<250;)++eo;if(eo>2){(ur=pt[eo])<=22?Gn=Em(zn,Gn,Ti[ur+1]>>1)-1:(Em(zn,Gn,3),Em(zn,Gn+=5,Ti[ur-23]>>5),Gn+=3);
1var oc=ur<8?0:ur-4>>2;oc>0&&(w1(zn,Gn,eo-pi[ur]),Gn+=oc),Gn=Em(zn,Gn,Ti[ur=ut[Yn-vr]]>>3),Gn-=3;var yp=ur<4?0:ur-2>>1;yp>0&&(w1(zn,Gn,Yn-vr-Cr[ur]),Gn+=yp);for(var Nd=0;Nd<eo;++Nd)Ni[Yr]=32767&Yn,Yr=32767&(Yr<<5^si[Yn]),++Yn;dr-=eo-1}else ur<=143?ur+=48:Gn=Xh(zn,Gn,1),Gn=Em(zn,Gn,Ti[ur]),Ni[Yr]=32767&Yn,++Yn}Gn=Em(zn,Gn,0)-1}}return zn.l=(Gn+7)/8|0,zn.l}(zn,Gn)}}();function Po(De){var ut=Rn(50+Math.floor(1.1*De.length)),Ke=Hh(De,ut);return ut.slice(0,Ke)}var gd=nr?new Uint16Array(32768):Vp(32768),sh=nr?new Uint16Array(32768):Vp(32768),lu=nr?new Uint16Array(128):Vp(128),Og=1,V4=1;function MI(De,ut){var Ke=No(De,ut)+257,it=No(De,ut+=5)+1,pt=function il(De,ut){var Ke=7&ut,it=ut>>>3;return(De[it]|(Ke<=4?0:De[it+1]<<8))>>>Ke&15}(De,ut+=5)+4;ut+=4;for(var mt=0,Nn=nr?new Uint8Array(19):Vp(19),si=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],zn=1,Gn=nr?new Uint8Array(8):Vp(8),Yn=nr?new Uint8Array(8):Vp(8),Ni=Nn.length,dr=0;dr<pt;++dr)Nn[Gt[dr]]=mt=Lo(De,ut),zn<mt&&(zn=mt),Gn[mt]++,ut+=3;var Yr=0;for(Gn[0]=0,dr=1;dr<=zn;++dr)Yn[dr]=Yr=Yr+Gn[dr-1]<<1;for(dr=0;dr<Ni;++dr)0!=(Yr=Nn[dr])&&(si[dr]=Yn[Yr]++);var ur=0;for(dr=0;dr<Ni;++dr)if(0!=(ur=Nn[dr])){Yr=Ti[si[dr]]>>8-ur;for(var vr=(1<<7-ur)-1;vr>=0;--vr)lu[Yr|vr<<ur]=7&ur|dr<<3}var eo=[];for(zn=1;eo.length<Ke+it;)switch(Yr=lu[Fr(De,ut)],ut+=7&Yr,Yr>>>=3){case 16:for(mt=3+nl(De,ut),ut+=2,Yr=eo[eo.length-1];mt-- >0;)eo.push(Yr);break;case 17:for(mt=3+Lo(De,ut),ut+=3;mt-- >0;)eo.push(0);break;case 18:for(mt=11+Fr(De,ut),ut+=7;mt-- >0;)eo.push(0);break;default:eo.push(Yr),zn<Yr&&(zn=Yr)}var oc=eo.slice(0,Ke),yp=eo.slice(Ke);for(dr=Ke;dr<286;++dr)oc[dr]=0;for(dr=it;dr<30;++dr)yp[dr]=0;return Og=Pm(oc,gd,286),V4=Pm(yp,sh,30),ut}function z4(De,ut){var it=function OI(De,ut){if(3==De[0]&&!(3&De[1]))return[ya(ut),2];for(var Ke=0,it=0,pt=Bu(ut||1<<18),mt=0,Nn=pt.length>>>0,si=0,zn=0;!(1&it);)if(it=Lo(De,Ke),Ke+=3,it>>>1)for(it>>1==1?(si=9,zn=5):(Ke=MI(De,Ke),si=Og,zn=V4);;){!ut&&Nn<mt+32767&&(Nn=(pt=ng(pt,mt+32767)).length);var Yn=md(De,Ke,si),Ni=it>>>1==1?ig[Yn]:gd[Yn];if(Ke+=15&Ni,(Ni>>>=4)>>>8&255){if(256==Ni)break;var dr=(Ni-=257)<8?0:Ni-4>>2;dr>5&&(dr=0);var Yr=mt+pi[Ni];dr>0&&(Yr+=md(De,Ke,dr),Ke+=dr),Yn=md(De,Ke,zn),Ke+=15&(Ni=it>>>1==1?F1[Yn]:sh[Yn]);var ur=(Ni>>>=4)<4?0:Ni-2>>1,vr=Cr[Ni];for(ur>0&&(vr+=md(De,Ke,ur),Ke+=ur),!ut&&Nn<Yr&&(Nn=(pt=ng(pt,Yr+100)).length);mt<Yr;)pt[mt]=pt[mt-vr],++mt}else pt[mt++]=Ni}else{7&Ke&&(Ke+=8-(7&Ke));var Gn=De[Ke>>>3]|De[1+(Ke>>>3)]<<8;if(Ke+=32,Gn>0)for(!ut&&Nn<mt+Gn&&(Nn=(pt=ng(pt,mt+Gn)).length);Gn-- >0;)pt[mt++]=De[Ke>>>3],Ke+=8}return ut?[pt,Ke+7>>>3]:[pt.slice(0,mt),Ke+7>>>3]}(De.slice(De.l||0),ut);return De.l+=it[1],it[0]}function U4(De,ut){if(!De)throw new Error(ut);typeof console<"u"&&console.error(ut)}function Y4(De,ut){var Ke=De;go(Ke,0);var mt={FileIndex:[],FullPaths:[]};Tt(mt,{root:ut.root});for(var Nn=Ke.length-4;(80!=Ke[Nn]||75!=Ke[Nn+1]||5!=Ke[Nn+2]||6!=Ke[Nn+3])&&Nn>=0;)--Nn;Ke.l=Nn+4,Ke.l+=4;var si=Ke.read_shift(2);Ke.l+=6;var zn=Ke.read_shift(4);for(Ke.l=zn,Nn=0;Nn<si;++Nn){Ke.l+=20;var Gn=Ke.read_shift(4),Yn=Ke.read_shift(4),Ni=Ke.read_shift(2),dr=Ke.read_shift(2),Yr=Ke.read_shift(2);Ke.l+=8;var ur=Ke.read_shift(4),vr=g(Ke.slice(Ke.l+Ni,Ke.l+Ni+dr));Ke.l+=Ni+dr+Yr;var eo=Ke.l;Ke.l=ur+4,DI(Ke,Gn,Yn,mt,vr),Ke.l=eo}return mt}function DI(De,ut,Ke,it,pt){De.l+=2;var mt=De.read_shift(2),Nn=De.read_shift(2),si=function p(De){var ut=65535&De.read_shift(2),Ke=65535&De.read_shift(2),it=new Date,pt=31&Ke,mt=15&(Ke>>>=5);Ke>>>=4,it.setMilliseconds(0),it.setFullYear(Ke+1980),it.setMonth(mt-1),it.setDate(pt);var Nn=31&ut,si=63&(ut>>>=5);return it.setHours(ut>>>=6),it.setMinutes(si),it.setSeconds(Nn<<1),it}(De);if(8257&mt)throw new Error("Unsupported ZIP encryption");De.read_shift(4);for(var Gn=De.read_shift(4),Yn=De.read_shift(4),Ni=De.read_shift(2),dr=De.read_shift(2),Yr="",ur=0;ur<Ni;++ur)Yr+=String.fromCharCode(De[De.l++]);if(dr){var vr=g(De.slice(De.l,De.l+dr));(vr[21589]||{}).mt&&(si=vr[21589].mt),((pt||{})[21589]||{}).mt&&(si=pt[21589].mt)}De.l+=dr;var eo=De.slice(De.l,De.l+Gn);switch(Nn){case 8:eo=function Vn(De,ut){if(!Ai)return z4(De,ut);var it=new(0,Ai.InflateRaw),pt=it._processChunk(De.slice(De.l),it._finishFlushFlag);return De.l+=it.bytesRead,pt}(De,Yn);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+Nn)}var oc=!1;8&mt&&(134695760==De.read_shift(4)&&(De.read_shift(4),oc=!0),Gn=De.read_shift(4),Yn=De.read_shift(4)),Gn!=ut&&U4(oc,"Bad compressed size: "+ut+" != "+Gn),Yn!=Ke&&U4(oc,"Bad uncompressed size: "+Ke+" != "+Yn),Cx(it,Yr,eo,{unsafe:!0,mt:si})}var uv={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function jI(De,ut){if(De.ctype)return De.ctype;var Ke=De.name||"",it=Ke.match(/\.([^\.]+)$/);return it&&uv[it[1]]||ut&&(it=(Ke=ut).match(/[\.\\]([^\.\\])+$/))&&uv[it[1]]?uv[it[1]]:"application/octet-stream"}function RI(De){for(var ut=Do(De),Ke=[],it=0;
1it<ut.length;it+=76)Ke.push(ut.slice(it,it+76));return Ke.join("\r\n")+"\r\n"}function LI(De){var ut=De.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(Gn){var Yn=Gn.charCodeAt(0).toString(16).toUpperCase();return"="+(1==Yn.length?"0"+Yn:Yn)});"\n"==(ut=ut.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)&&(ut="=0D"+ut.slice(1));for(var Ke=[],it=(ut=ut.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,"\n=0A").replace(/([^\r\n])\n/gm,"$1=0A")).split("\r\n"),pt=0;pt<it.length;++pt){var mt=it[pt];if(0!=mt.length)for(var Nn=0;Nn<mt.length;){var si=76,zn=mt.slice(Nn,Nn+si);"="==zn.charAt(si-1)?si--:"="==zn.charAt(si-2)?si-=2:"="==zn.charAt(si-3)&&(si-=3),zn=mt.slice(Nn,Nn+si),(Nn+=si)<mt.length&&(zn+="="),Ke.push(zn)}else Ke.push("")}return Ke.join("\r\n")}function BI(De,ut,Ke){for(var Nn,it="",pt="",mt="",si=0;si<10;++si){var zn=ut[si];if(!zn||zn.match(/^\s*$/))break;var Gn=zn.match(/^(.*?):\s*([^\s].*)$/);if(Gn)switch(Gn[1].toLowerCase()){case"content-location":it=Gn[2].trim();break;case"content-type":mt=Gn[2].trim();break;case"content-transfer-encoding":pt=Gn[2].trim()}}switch(++si,pt.toLowerCase()){case"base64":Nn=ss(Ko(ut.slice(si).join("")));break;case"quoted-printable":Nn=function NI(De){for(var ut=[],Ke=0;Ke<De.length;++Ke){for(var it=De[Ke];Ke<=De.length&&"="==it.charAt(it.length-1);)it=it.slice(0,it.length-1)+De[++Ke];ut.push(it)}for(var pt=0;pt<ut.length;++pt)ut[pt]=ut[pt].replace(/[=][0-9A-Fa-f]{2}/g,function(mt){return String.fromCharCode(parseInt(mt.slice(1),16))});return ss(ut.join("\r\n"))}(ut.slice(si));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+pt)}var Yn=Cx(De,it.slice(Ke.length),Nn,{unsafe:!0});mt&&(Yn.ctype=mt)}function Cx(De,ut,Ke,it){var pt=it&&it.unsafe;pt||Tt(De);var mt=!pt&&Zn.find(De,ut);if(!mt){var Nn=De.FullPaths[0];ut.slice(0,Nn.length)==Nn?Nn=ut:("/"!=Nn.slice(-1)&&(Nn+="/"),Nn=(Nn+ut).replace("//","/")),mt={name:i(ut),type:2},De.FileIndex.push(mt),De.FullPaths.push(Nn),pt||Zn.utils.cfb_gc(De)}return mt.content=Ke,mt.size=Ke?Ke.length:0,it&&(it.CLSID&&(mt.clsid=it.CLSID),it.mt&&(mt.mt=it.mt),it.ct&&(mt.ct=it.ct)),mt}return a.find=function ni(De,ut){var Ke=De.FullPaths.map(function(zn){return zn.toUpperCase()}),it=Ke.map(function(zn){var Gn=zn.split("/");return Gn[Gn.length-("/"==zn.slice(-1)?2:1)]}),pt=!1;47===ut.charCodeAt(0)?(pt=!0,ut=Ke[0].slice(0,-1)+ut):pt=-1!==ut.indexOf("/");var mt=ut.toUpperCase(),Nn=!0===pt?Ke.indexOf(mt):it.indexOf(mt);if(-1!==Nn)return De.FileIndex[Nn];var si=!mt.match(vl);for(mt=mt.replace(Oa,""),si&&(mt=mt.replace(vl,"!")),Nn=0;Nn<Ke.length;++Nn)if((si?Ke[Nn].replace(vl,"!"):Ke[Nn]).replace(Oa,"")==mt||(si?it[Nn].replace(vl,"!"):it[Nn]).replace(Oa,"")==mt)return De.FileIndex[Nn];return null},a.read=function Kn(De,ut){var Ke=ut&&ut.type;switch(Ke||Br&&Buffer.isBuffer(De)&&(Ke="buffer"),Ke||"base64"){case"file":return function vn(De,ut){return R(),L(S.readFileSync(De),ut)}(De,ut);case"base64":return L(ss(Ko(De)),ut);case"binary":return L(ss(De),ut)}return L(De,ut)},a.parse=L,a.write=function sa(De,ut){var Ke=ti(De,ut);switch(ut&&ut.type||"buffer"){case"file":return R(),S.writeFileSync(ut.filename,Ke),Ke;case"binary":return"string"==typeof Ke?Ke:pr(Ke);case"base64":return Do("string"==typeof Ke?Ke:pr(Ke));case"buffer":if(Br)return Buffer.isBuffer(Ke)?Ke:cc(Ke);case"array":return"string"==typeof Ke?ss(Ke):Ke}return Ke},a.writeFile=function ao(De,ut,Ke){R();var it=ti(De,Ke);S.writeFileSync(ut,it)},a.utils={cfb_new:function zI(De){var ut={};return Tt(ut,De),ut},cfb_add:Cx,cfb_del:function UI(De,ut){Tt(De);var Ke=Zn.find(De,ut);if(Ke)for(var it=0;
1it<De.FileIndex.length;++it)if(De.FileIndex[it]==Ke)return De.FileIndex.splice(it,1),De.FullPaths.splice(it,1),!0;return!1},cfb_mov:function YI(De,ut,Ke){Tt(De);var it=Zn.find(De,ut);if(it)for(var pt=0;pt<De.FileIndex.length;++pt)if(De.FileIndex[pt]==it)return De.FileIndex[pt].name=i(Ke),De.FullPaths[pt]=Ke,!0;return!1},cfb_gc:function WI(De){on(De,!0)},ReadShift:gu,CheckField:If,prep_blob:go,bconcat:da,use_zlib:function Et(De){try{var Ke=new(0,De.InflateRaw);if(Ke._processChunk(new Uint8Array([3,0]),Ke._finishFlushFlag),!Ke.bytesRead)throw new Error("zlib does not expose bytesRead");Ai=De}catch(it){console.error("cannot use native zlib: "+(it.message||it))}},_deflateRaw:Po,_inflateRaw:z4,consts:Ir},a}();let Hi;function Qn(n){return"string"==typeof n?Kd(n):Array.isArray(n)?function Zf(n){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(n)}(n):n}function vt(n,a,t){if(typeof Hi<"u"&&Hi.writeFileSync)return t?Hi.writeFileSync(n,a,t):Hi.writeFileSync(n,a);if(typeof Deno<"u"){if(t&&"string"==typeof a)switch(t){case"utf8":
1a=new TextEncoder(t).encode(a);break;case"binary":a=Kd(a);break;default:throw new Error("Unsupported encoding "+t)}return Deno.writeFileSync(n,a)}var r="utf8"==t?V(a):a;if(typeof IE_SaveFile<"u")return IE_SaveFile(r,n);if(typeof Blob<"u"){var i=new Blob([Qn(r)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(i,n);if(typeof saveAs<"u")return saveAs(i,n);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var s=URL.createObjectURL(i);if("object"==typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(s)},6e4),chrome.downloads.download({url:s,filename:n,saveAs:!0});var p=document.createElement("a");if(null!=p.download)return p.download=n,p.href=s,document.body.appendChild(p),p.click(),document.body.removeChild(p),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(s)},6e4),s}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var g=File(n);return g.open("w"),g.encoding="binary",Array.isArray(a)&&(a=yd(a)),g.write(a),g.close(),a}catch(S){if(!S.message||!S.message.match(/onstruct/))throw S}throw new Error("cannot save file "+n)}function Wi(n){for(var a=Object.keys(n),t=[],r=0;r<a.length;++r)Object.prototype.hasOwnProperty.call(n,a[r])&&t.push(a[r]);return t}function Pi(n,a){for(var t=[],r=Wi(n),i=0;i!==r.length;++i)null==t[n[r[i]][a]]&&(t[n[r[i]][a]]=r[i]);return t}function zi(n){for(var a=[],t=Wi(n),r=0;r!==t.length;++r)a[n[t[r]]]=t[r];return a}function er(n){for(var a=[],t=Wi(n),r=0;r!==t.length;++r)a[n[t[r]]]=parseInt(t[r],10);return a}var sr=new Date(1899,11,30,0,0,0);function Sr(n,a){var t=n.getTime();return a&&(t-=1263168e5),(t-(sr.getTime()+6e4*(n.getTimezoneOffset()-sr.getTimezoneOffset())))/864e5}var Se=new Date,Ca=sr.getTime()+6e4*(Se.getTimezoneOffset()-sr.getTimezoneOffset()),Ua=Se.getTimezoneOffset();function Da(n){var a=new Date;return a.setTime(24*n*60*60*1e3+Ca),a.getTimezoneOffset()!==Ua&&a.setTime(a.getTime()+6e4*(a.getTimezoneOffset()-Ua)),a}var Aa=new Date("2017-02-19T19:06:09.000Z"),lr=isNaN(Aa.getFullYear())?new Date("2/19/17"):Aa,Ds=2017==lr.getFullYear();function Mr(n,a){var t=new Date(n);if(Ds)return a>0?t.setTime(t.getTime()+60*t.getTimezoneOffset()*1e3):a<0&&t.setTime(t.getTime()-60*t.getTimezoneOffset()*1e3),t;if(n instanceof Date)return n;if(1917==lr.getFullYear()&&!isNaN(t.getFullYear())){var r=t.getFullYear();return n.indexOf(""+r)>-1||t.setFullYear(t.getFullYear()+100),t}var i=n.match(/\d+/g)||["2017","2","19","0","0","0"],s=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return n.indexOf("Z")>-1&&(s=new Date(s.getTime()-60*s.getTimezoneOffset()*1e3)),s}function Zl(n,a){if(Br&&Buffer.isBuffer(n)){if(a){if(255==n[0]&&254==n[1])return V(n.slice(2).toString("utf16le"));if(254==n[1]&&255==n[2])return V(function Kl(n){for(var a=[],t=0;t<n.length>>1;++t)a[t]=String.fromCharCode(n.charCodeAt(2*t+1)+(n.charCodeAt(2*t)<<8));return a.join("")}(n.slice(2).toString("binary")))}return n.toString("binary")}if(typeof TextDecoder<"u")try{if(a){if(255==n[0]&&254==n[1])return V(new TextDecoder("utf-16le").decode(n.slice(2)));if(254==n[0]&&255==n[1])return V(new TextDecoder("utf-16be").decode(n.slice(2)))}var t={"\u20ac":"\x80","\u201a":"\x82",\u0192:"\x83","\u201e":"\x84","\u2026":"\x85","\u2020":"\x86","\u2021":"\x87",\u02c6:"\x88","\u2030":"\x89",\u0160:"\x8a","\u2039":"\x8b",\u0152:"\x8c",\u017d:"\x8e","\u2018":"\x91","\u2019":"\x92","\u201c":"\x93","\u201d":"\x94","\u2022":"\x95","\u2013":"\x96","\u2014":"\x97","\u02dc":"\x98","\u2122":"\x99",\u0161:"\x9a","\u203a":"\x9b",\u0153:"\x9c",\u017e:"\x9e",\u0178:"\x9f"};return Array.isArray(n)&&(n=new Uint8Array(n)),new TextDecoder("latin1").decode(n).replace(/[\u20ac\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\u017d\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\u017e\u0178]/g,function(s){return t[s]||s})}catch{}for(var r=[],i=0;i!=n.length;++i)r.push(String.fromCharCode(n[i]));return r.join("")}function Kr(n){if(typeof JSON<"u"&&!Array.isArray(n))return JSON.parse(JSON.stringify(n));if("object"!=typeof n||null==n)return n;if(n instanceof Date)return new Date(n.getTime());var a={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(a[t]=Kr
1(n[t]));return a}function ha(n,a){for(var t="";t.length<a;)t+=n;return t}function Ws(n){var a=Number(n);if(!isNaN(a))return isFinite(a)?a:NaN;if(!/\d/.test(n))return a;var t=1,r=n.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return t*=100,""});return isNaN(a=Number(r))&&(r=r.replace(/[(](.*)[)]/,function(i,s){return t=-t,s}),isNaN(a=Number(r)))?a:a/t}var Fo=["january","february","march","april","may","june","july","august","september","october","november","december"];function $s(n){var a=new Date(n),t=new Date(NaN),r=a.getYear(),i=a.getMonth(),s=a.getDate();if(isNaN(s))return t;var p=n.toLowerCase();if(p.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if((p=p.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length>3&&-1==Fo.indexOf(p))return t}else if(p.match(/[a-z]/))return t;return r<0||r>8099?t:(i>0||s>1)&&101!=r?a:n.match(/[^-0-9:,\/\\]/)?t:a}function Ii(n,a,t){if(n.FullPaths){var r;if("string"==typeof t)return r=Br?cc(t):function df(n){for(var a=[],t=0,r=n.length+250,i=ya(n.length+255),s=0;s<n.length;++s){var p=n.charCodeAt(s);if(p<128)i[t++]=p;else if(p<2048)i[t++]=192|p>>6&31,i[t++]=128|63&p;else if(p>=55296&&p<57344){p=64+(1023&p);var g=1023&n.charCodeAt(++s);i[t++]=240|p>>8&7,i[t++]=128|p>>2&63,i[t++]=128|g>>6&15|(3&p)<<4,i[t++]=128|63&g}else i[t++]=224|p>>12&15,i[t++]=128|p>>6&63,i[t++]=128|63&p;t>r&&(a.push(i.slice(0,t)),t=0,i=ya(65535),r=65530)}return a.push(i.slice(0,t)),da(a)}(t),Zn.utils.cfb_add(n,a,r);Zn.utils.cfb_add(n,a,t)}else n.file(a,t)}function yl(){return Zn.utils.cfb_new()}var Gr='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n',Ql=zi({""":'"',"'":"'",">":">","<":"<","&":"&"}),eu=/[&<>'"]/g,kc=/[\u0000-\u0008\u000b-\u001f]/g;function Ja(n){return(n+"").replace(eu,function(t){return Ql[t]}).replace(kc,function(t){return"_x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+"_"})}function Vu(n){return Ja(n).replace(/ /g,"_x0020_")}var Rl=/[\u0000-\u001f]/g;function wd(n){return(n+"").replace(eu,function(t){return Ql[t]}).replace(/\n/g,"<br/>").replace(Rl,function(t){return"&#x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+";"})}function v(n){for(var a="",t=0,r=0,i=0,s=0,p=0,g=0;t<n.length;)(r=n.charCodeAt(t++))<128?a+=String.fromCharCode(r):(i=n.charCodeAt(t++),r>191&&r<224?(p=(31&r)<<6,p|=63&i,a+=String.fromCharCode(p)):(s=n.charCodeAt(t++),r<240?a+=String.fromCharCode((15&r)<<12|(63&i)<<6|63&s):(g=((7&r)<<18|(63&i)<<12|(63&s)<<6|63&(p=n.charCodeAt(t++)))-65536,a+=String.fromCharCode(55296+(g>>>10&1023)),a+=String.fromCharCode(56320+(1023&g)))));return a}function T(n){var t,r,g,a=ya(2*n.length),i=1,s=0,p=0;for(r=0;r<n.length;r+=i)i=1,(g=n.charCodeAt(r))<128?t=g:g<224?(t=64*(31&g)+(63&n.charCodeAt(r+1)),i=2):g<240?(t=4096*(15&g)+64*(63&n.charCodeAt(r+1))+(63&n.charCodeAt(r+2)),i=3):(i=4,t=262144*(7&g)+4096*(63&n.charCodeAt(r+1))+64*(63&n.charCodeAt(r+2))+(63&n.charCodeAt(r+3)),p=55296+((t-=65536)>>>10&1023),t=56320+(1023&t)),0!==p&&(a[s++]=255&p,a[s++]=p>>>8,p=0),a[s++]=t%256,a[s++]=t>>>8;return a.slice(0,s).toString("ucs2")}function O(n){return cc(n,"binary").toString("utf8")}var B="foo bar baz\xe2\x98\x83\xf0\x9f\x8d\xa3",q=Br&&(O(B)==v(B)&&O||T(B)==v(B)&&T)||v,V=Br?function(n){return cc(n,"utf8").toString("binary")}:function(n){for(var a=[],t=0,r=0,i=0;t<n.length;)switch(r=n.charCodeAt(t++),!0){case r<128:a.push(String.fromCharCode(r));break;case r<2048:a.push(String.fromCharCode(192+(r>>6))),a.push(String.fromCharCode(128+(63&r)));break;case r>=55296&&r<57344:r-=55296,i=n.charCodeAt(t++)-56320+(r<<10),a.push(String.fromCharCode(240+(i>>18&7))),a.push(String.fromCharCode(144+(i>>12&63))),a.push(String.fromCharCode(128+(i>>6&63))),a.push(String.fromCharCode(128+(63&i)));break;default:a.push(String.fromCharCode(224+(r>>12))),a.push(String.fromCharCode(128+(r>>6&63))),a.push(String.fromCharCode(128+(63&r)))}return a.join("")},St=/(^\s|\s$|\n)/;function zt(n,a){return"<"+n+(a.match(St)?' xml:space="preserve"':"")+">"+a+"</"+n+">"}function Hn(n){return Wi(n).map(function(a){return" "+a+'="'+n[a]+'"'}).join("")}function _n(n,a,t){return"<"+n+(null!=t?Hn(t):"")+(null!=a?(a.match(St)?' xml:space="preserve"':"")+">"+a+"</"+n:"/")+">"}function Ui(n,a){try{return n.toISOString().replace(/\.\d*/,"")}catch(t){if(a)throw t}return""}
1var Or={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Ga=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],ka={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"},Fs=function(n){for(var a=[],r=0;r<n[0].length;++r)if(n[0][r])for(var i=0,s=n[0][r].length;i<s;i+=10240)a.push.apply(a,n[0][r].slice(i,i+10240));return a},ns=Br?function(n){return n[0].length>0&&Buffer.isBuffer(n[0][0])?Buffer.concat(n[0].map(function(a){return Buffer.isBuffer(a)?a:cc(a)})):Fs(n)}:Fs,wl=function(n,a,t){for(var r=[],i=a;i<t;i+=2)r.push(String.fromCharCode(Fd(n,i)));return r.join("").replace(Oa,"")},Nc=Br?function(n,a,t){return Buffer.isBuffer(n)?n.toString("utf16le",a,t).replace(Oa,""):wl(n,a,t)}:wl,zu=function(n,a,t){for(var r=[],i=a;i<a+t;++i)r.push(("0"+n[i].toString(16)).slice(-2));return r.join("")},Xs=Br?function(n,a,t){return Buffer.isBuffer(n)?n.toString("hex",a,a+t):zu(n,a,t)}:zu,tu=function(n,a,t){for(var r=[],i=a;i<t;i++)r.push(String.fromCharCode(pf(n,i)));return r.join("")},Ll=Br?function(a,t,r){return Buffer.isBuffer(a)?a.toString("utf8",t,r):tu(a,t,r)}:tu,Zr=function(n,a){var t=Hs(n,a);return t>0?Ll(n,a+4,a+4+t-1):""},nu=Zr,kp=function(n,a){var t=Hs(n,a);return t>0?Ll(n,a+4,a+4+t-1):""},ld=kp,wp=function(n,a){var t=2*Hs(n,a);return t>0?Ll(n,a+4,a+4+t-1):""},uf=wp,ff=function(a,t){var r=Hs(a,t);return r>0?Nc(a,t+4,t+4+r):""},_s=ff,Qf=function(n,a){var t=Hs(n,a);return t>0?Ll(n,a+4,a+4+t):""},Fp=Qf,Of=function(n,a){return function gs(n,a){for(var t=1-2*(n[a+7]>>>7),r=((127&n[a+7])<<4)+(n[a+6]>>>4&15),i=15&n[a+6],s=5;s>=0;--s)i=256*i+n[a+s];return 2047==r?0==i?t*(1/0):NaN:(0==r?r=-1022:(r-=1023,i+=Math.pow(2,52)),t*Math.pow(2,r-52)*i)}(n,a)},ep=Of,mu=function(a){return Array.isArray(a)||typeof Uint8Array<"u"&&a instanceof Uint8Array};Br&&(nu=function(a,t){if(!Buffer.isBuffer(a))return Zr(a,t);var r=a.readUInt32LE(t);return r>0?a.toString("utf8",t+4,t+4+r-1):""},ld=function(a,t){if(!Buffer.isBuffer(a))return kp(a,t);var r=a.readUInt32LE(t);return r>0?a.toString("utf8",t+4,t+4+r-1):""},uf=function(a,t){if(!Buffer.isBuffer(a))return wp(a,t);var r=2*a.readUInt32LE(t);return a.toString("utf16le",t+4,t+4+r-1)},_s=function(a,t){if(!Buffer.isBuffer(a))return ff(a,t);var r=a.readUInt32LE(t);return a.toString("utf16le",t+4,t+4+r)},Fp=function(a,t){if(!Buffer.isBuffer(a))return Qf(a,t);var r=a.readUInt32LE(t);return a.toString("utf8",t+4,t+4+r)},ep=function(a,t){return Buffer.isBuffer(a)?a.readDoubleLE(t):Of(a,t)},mu=function(a){return Buffer.isBuffer(a)||Array.isArray(a)||typeof Uint8Array<"u"&&a instanceof Uint8Array}),typeof ia<"u"&&function tp(){Nc=function(n,a,t){return ia.utils.decode(1200,n.slice(a,t)).replace(Oa,"")},Ll=function(n,a,t){return ia.utils.decode(65001,n.slice(a,t))},nu=function(n,a){var t=Hs(n,a);return t>0?ia.utils.decode(Co,n.slice(a+4,a+4+t-1)):""},ld=function(n,a){var t=Hs(n,a);return t>0?ia.utils.decode(mr,n.slice(a+4,a+4+t-1)):""},uf=function(n,a){var t=2*Hs(n,a);return t>0?ia.utils.decode(1200,n.slice(a+4,a+4+t-1)):""},_s=function(n,a){var t=Hs(n,a);return t>0?ia.utils.decode(1200,n.slice(a+4,a+4+t)):""},Fp=function(n,a){var t=Hs(n,a);return t>0?ia.utils.decode(65001,n.slice(a+4,a+4+t)):""}}();var pf=function(n,a){return n[a]},Fd=function(n,a){return 256*n[a+1]+n[a]},Df=function(n,a){var t=256*n[a+1]+n[a];return t<32768?t:-1*(65535-t+1)},Hs=function(n,a){return n[a+3]*(1<<24)+(n[a+2]<<16)+(n[a+1]<<8)+n[a]},iu=function(n,a){return n[a+3]<<24|n[a+2]<<16|n[a+1]<<8|n[a]},Kh=function(n,a){return n[a]<<24|n[a+1]<<16|n[a+2]<<8|n[a+3]};function gu(n,a){var r,i,p,g,S,R,t="",s=[];switch(a){case"dbcs":if(R=this.l,Br&&Buffer.isBuffer(this))t=this.slice(this.l,this.l+2*n).toString("utf16le");else for(S=0;S<n;++S)t+=String.fromCharCode(Fd(this,R)),R+=2;n*=2;break;case"utf8":t=Ll(this,this.l,this.l+n);break;case"utf16le":t=Nc(this,this.l,this.l+(n*=2));break;case"wstr":if(!(typeof ia<"u"))return gu.call(this,n,"dbcs");t=ia.utils.decode(mr,this.slice(this.l,this.l+2*n)),n*=2;break;case"lpstr-ansi":t=nu(this,this.l),n=4+Hs(this,this.l);break;case"lpstr-cp":t=ld(this,this.l),n=4+Hs(this,this.l);break;case"lpwstr":t=uf(this,this.l),n=4+2*Hs(this,this.l);break;case"lpp4":n=4+Hs(this,this.l),t=_s(this,this.l),2&n&&(n+=2);break;case"8lpp4":n=4+Hs(this,this.l),t=Fp(this,this.l),3&n&&(n+=4-(3&n));break;case"cstr":for(n=0,t="";0!==(p=pf(this,this.l+n++));)s.push(Il(p));t=s.join("");break;case"_wstr":for(n=0,t="";0!==(p=Fd(this,this.l+n));)s.push(Il(p)),n+=2;n+=2,t=s.join("");break;case"dbcs-cont":for(t="",R=this.l,S=0;S<n;
1++S){if(this.lens&&-1!==this.lens.indexOf(R))return p=pf(this,R),this.l=R+1,g=gu.call(this,n-S,p?"dbcs-cont":"sbcs-cont"),s.join("")+g;s.push(Il(Fd(this,R))),R+=2}t=s.join(""),n*=2;break;case"cpstr":if(typeof ia<"u"){t=ia.utils.decode(mr,this.slice(this.l,this.l+n));break}case"sbcs-cont":for(t="",R=this.l,S=0;S!=n;++S){if(this.lens&&-1!==this.lens.indexOf(R))return p=pf(this,R),this.l=R+1,g=gu.call(this,n-S,p?"dbcs-cont":"sbcs-cont"),s.join("")+g;s.push(Il(pf(this,R))),R+=1}t=s.join("");break;default:switch(n){case 1:return r=pf(this,this.l),this.l++,r;case 2:return r=("i"===a?Df:Fd)(this,this.l),this.l+=2,r;case 4:case-4:return"i"!==a&&128&this[this.l+3]?(i=Hs(this,this.l),this.l+=4,i):(r=(n>0?iu:Kh)(this,this.l),this.l+=4,r);case 8:case-8:if("f"===a)return i=8==n?ep(this,this.l):ep([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;n=8;case 16:t=Xs(this,this.l,n)}}return this.l+=n,t}var Va=function(n,a,t){n[t]=255&a,n[t+1]=a>>>8&255,n[t+2]=a>>>16&255,n[t+3]=a>>>24&255},np=function(n,a,t){n[t]=255&a,n[t+1]=a>>8&255,n[t+2]=a>>16&255,n[t+3]=a>>24&255},Ap=function(n,a,t){n[t]=255&a,n[t+1]=a>>>8&255};function ip(n,a,t){var r=0,i=0;if("dbcs"===t){for(i=0;i!=a.length;++i)Ap(this,a.charCodeAt(i),this.l+2*i);r=2*a.length}else if("sbcs"===t){if(typeof ia<"u"&&874==Co)for(i=0;i!=a.length;++i){var s=ia.utils.encode(Co,a.charAt(i));this[this.l+i]=s[0]}else for(a=a.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=a.length;++i)this[this.l+i]=255&a.charCodeAt(i);r=a.length}else{if("hex"===t){for(;i<n;++i)this[this.l++]=parseInt(a.slice(2*i,2*i+2),16)||0;return this}if("utf16le"===t){var p=Math.min(this.l+n,this.length);for(i=0;i<Math.min(a.length,n);++i){var g=a.charCodeAt(i);this[this.l++]=255&g,this[this.l++]=g>>8}for(;this.l<p;)this[this.l++]=0;return this}switch(n){case 1:r=1,this[this.l]=255&a;break;case 2:r=2,this[this.l]=255&a,this[this.l+1]=255&(a>>>=8);break;case 3:r=3,this[this.l]=255&a,this[this.l+1]=255&(a>>>=8),this[this.l+2]=255&(a>>>=8);break;case 4:r=4,Va(this,a,this.l);break;case 8:if(r=8,"f"===t){!function Rs(n,a,t){var r=(a<0||1/a==-1/0?1:0)<<7,i=0,s=0,p=r?-a:a;isFinite(p)?0==p?i=s=0:(i=Math.floor(Math.log(p)/Math.LN2),s=p*Math.pow(2,52-i),i<=-1023&&(!isFinite(s)||s<Math.pow(2,52))?i=-1022:(s-=Math.pow(2,52),i+=1023)):(i=2047,s=isNaN(a)?26985:0);for(var g=0;g<=5;++g,s/=256)n[t+g]=255&s;n[t+6]=(15&i)<<4|15&s,n[t+7]=i>>4|r}(this,a,this.l);break}case 16:break;case-4:r=4,np(this,a,this.l)}}return this.l+=r,this}function If(n,a){var t=Xs(this,this.l,n.length>>1);if(t!==n)throw new Error(a+"Expected "+n+" saw "+t);this.l+=n.length>>1}function go(n,a){n.l=a,n.read_shift=gu,n.chk=If,n.write_shift=ip}function ul(n,a){n.l+=a}function Rn(n){var a=ya(n);return go(a,0),a}function Ks(){var n=[],a=Br?256:2048,t=function(R){var L=Rn(R);return go(L,0),L},r=t(a),i=function(){r&&(r.length>r.l&&((r=r.slice(0,r.l)).l=r.length),r.length>0&&n.push(r),r=null)},s=function(R){return r&&R<r.length-r.l?r:(i(),r=t(Math.max(R+1,a)))};return{next:s,push:function(R){i(),null==(r=R).l&&(r.l=r.length),s(a)},end:function(){return i(),da(n)},_bufs:n}}function mi(n,a,t,r){var s,i=+a;if(!isNaN(i)){r||(r=g1[i].p||(t||[]).length||0),s=1+(i>=128?1:0)+1,r>=128&&++s,r>=16384&&++s,r>=2097152&&++s;var p=n.next(s);i<=127?p.write_shift(1,i):(p.write_shift(1,128+(127&i)),p.write_shift(1,i>>7));for(var g=0;4!=g;++g){if(!(r>=128)){p.write_shift(1,r);break}p.write_shift(1,128+(127&r)),r>>=7}r>0&&mu(t)&&n.push(t)}}function hf(n,a,t){var r=Kr(n);if(a.s?(r.cRel&&(r.c+=a.s.c),r.rRel&&(r.r+=a.s.r)):(r.cRel&&(r.c+=a.c),r.rRel&&(r.r+=a.r)),!t||t.biff<12){for(;r.c>=256;)r.c-=256;for(;r.r>=65536;)r.r-=65536}return r}function Tp(n,a,t){var r=Kr(n);return r.s=hf(r.s,a.s,t),r.e=hf(r.e,a.s,t),r}function ec(n,a){if(n.cRel&&n.c<0)for(n=Kr(n);n.c<0;)n.c+=a>8?16384:256;if(n.rRel&&n.r<0)for(n=Kr(n);n.r<0;)n.r+=a>8?1048576:a>5?65536:16384;var t=ge(n);return!n.cRel&&null!=n.cRel&&(t=function ap(n){return n.replace(/^([A-Z])/,"$$$1")}(t)),!n.rRel&&null!=n.rRel&&(t=function Up(n){return n.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(t)),t}function Ad(n,a){return 0!=n.s.r||n.s.rRel||n.e.r!=(a.biff>=12?1048575:a.biff>=8?65536:16384)||n.e.rRel?0!=n.s.c||n.s.cRel||n.e.c!=(a.biff>=12?16383:255)||n.e.cRel?ec(n.s,a.biff)+":"+ec(n.e,a.biff):(n.s.rRel?"":"$")+vs(n.s.r)+":"+(n.e.rRel?"":"$")+vs(n.e.r):(n.s.cRel?"":"$")+Za(n.s.c)+":"+(n.e.cRel?"":"$")+Za(n.e.c)}function rp(n){return parseInt(function Jh(n){return n.replace(/\$(\d+)$/,"$1")}(n),10)-1}function vs(n){return""+(n+1)}function jf(n){for(var a=function mf(n){return n.replace(/^\$([A-Z])/,"$1")}(n),t=0,r=0;r!==a.length;
1++r)t=26*t+a.charCodeAt(r)-64;return t-1}function Za(n){if(n<0)throw new Error("invalid column "+n);var a="";for(++n;n;n=Math.floor((n-1)/26))a=String.fromCharCode((n-1)%26+65)+a;return a}function z(n){for(var a=0,t=0,r=0;r<n.length;++r){var i=n.charCodeAt(r);i>=48&&i<=57?a=10*a+(i-48):i>=65&&i<=90&&(t=26*t+(i-64))}return{c:t-1,r:a-1}}function ge(n){for(var a=n.c+1,t="";a;a=(a-1)/26|0)t=String.fromCharCode((a-1)%26+65)+t;return t+(n.r+1)}function rt(n){var a=n.indexOf(":");return-1==a?{s:z(n),e:z(n)}:{s:z(n.slice(0,a)),e:z(n.slice(a+1))}}function gt(n,a){return typeof a>"u"||"number"==typeof a?gt(n.s,n.e):("string"!=typeof n&&(n=ge(n)),"string"!=typeof a&&(a=ge(a)),n==a?n:n+":"+a)}function Ut(n){var a={s:{c:0,r:0},e:{c:0,r:0}},t=0,r=0,i=0,s=n.length;for(t=0;r<s&&!((i=n.charCodeAt(r)-64)<1||i>26);++r)t=26*t+i;for(a.s.c=--t,t=0;r<s&&!((i=n.charCodeAt(r)-48)<0||i>9);++r)t=10*t+i;if(a.s.r=--t,r===s||10!=i)return a.e.c=a.s.c,a.e.r=a.s.r,a;for(++r,t=0;r!=s&&!((i=n.charCodeAt(r)-64)<1||i>26);++r)t=26*t+i;for(a.e.c=--t,t=0;r!=s&&!((i=n.charCodeAt(r)-48)<0||i>9);++r)t=10*t+i;return a.e.r=--t,a}function ki(n,a,t){return null==n||null==n.t||"z"==n.t?"":void 0!==n.w?n.w:("d"==n.t&&!n.z&&t&&t.dateNF&&(n.z=t.dateNF),"e"==n.t?Ku[n.v]||n.v:function ri(n,a){var t="d"==n.t&&a instanceof Date;if(null!=n.z)try{return n.w=Te(n.z,t?Sr(a):a)}catch{}try{return n.w=Te((n.XF||{}).numFmtId||(t?14:0),t?Sr(a):a)}catch{return""+a}}(n,null==a?n.v:a))}function cr(n,a){var t=a&&a.sheet?a.sheet:"Sheet1",r={};return r[t]=n,{SheetNames:[t],Sheets:r}}function Jr(n,a,t){var r=t||{},i=n?Array.isArray(n):r.dense;null!=Ma&&null==i&&(i=Ma);var s=n||(i?[]:{}),p=0,g=0;if(s&&null!=r.origin){if("number"==typeof r.origin)p=r.origin;else{var S="string"==typeof r.origin?z(r.origin):r.origin;p=S.r,g=S.c}s["!ref"]||(s["!ref"]="A1:A1")}var R={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(s["!ref"]){var L=Ut(s["!ref"]);R.s.c=L.s.c,R.s.r=L.s.r,R.e.c=Math.max(R.e.c,L.e.c),R.e.r=Math.max(R.e.r,L.e.r),-1==p&&(R.e.r=p=L.e.r+1)}for(var ne=0;ne!=a.length;++ne)if(a[ne]){if(!Array.isArray(a[ne]))throw new Error("aoa_to_sheet expects an array of arrays");for(var re=0;re!=a[ne].length;++re)if(!(typeof a[ne][re]>"u")){var fe={v:a[ne][re]},xe=p+ne,ce=g+re;if(R.s.r>xe&&(R.s.r=xe),R.s.c>ce&&(R.s.c=ce),R.e.r<xe&&(R.e.r=xe),R.e.c<ce&&(R.e.c=ce),!a[ne][re]||"object"!=typeof a[ne][re]||Array.isArray(a[ne][re])||a[ne][re]instanceof Date)if(Array.isArray(fe.v)&&(fe.f=a[ne][re][1],fe.v=fe.v[0]),null===fe.v)if(fe.f)fe.t="n";else if(r.nullError)fe.t="e",fe.v=0;else{if(!r.sheetStubs)continue;fe.t="z"}else"number"==typeof fe.v?fe.t="n":"boolean"==typeof fe.v?fe.t="b":fe.v instanceof Date?(fe.z=r.dateNF||ct[14],r.cellDates?(fe.t="d",fe.w=Te(fe.z,Sr(fe.v))):(fe.t="n",fe.v=Sr(fe.v),fe.w=Te(fe.z,fe.v))):fe.t="s";else fe=a[ne][re];if(i)s[xe]||(s[xe]=[]),s[xe][ce]&&s[xe][ce].z&&(fe.z=s[xe][ce].z),s[xe][ce]=fe;else{var be=ge({c:ce,r:xe});s[be]&&s[be].z&&(fe.z=s[be].z),s[be]=fe}}}return R.s.c<1e7&&(s["!ref"]=gt(R)),s}function ua(n,a){return Jr(null,n,a)}function ga(n,a){return a||(a=Rn(4)),a.write_shift(4,n),a}function Qa(n){var a=n.read_shift(4);return 0===a?"":n.read_shift(a,"dbcs")}function ta(n,a){var t=!1;return null==a&&(t=!0,a=Rn(4+2*n.length)),a.write_shift(4,n.length),n.length>0&&a.write_shift(0,n,"dbcs"),t?a.slice(0,a.l):a}function is(n){return{ich:n.read_shift(2),ifnt:n.read_shift(2)}}function nc(n,a){var t=n.l,r=n.read_shift(1),i=Qa(n),s=[],p={t:i,h:i};if(1&r){for(var g=n.read_shift(4),S=0;S!=g;++S)s.push(is(n));p.r=s}else p.r=[{ich:0,ifnt:0}];return n.l=t+a,p}var wc=nc;function cd(n){var a=n.read_shift(4),t=n.read_shift(2);return t+=n.read_shift(1)<<16,n.l++,{c:a,iStyleRef:t}}function gf(n,a){return null==a&&(a=Rn(8)),a.write_shift(-4,n.c),a.write_shift(3,n.iStyleRef||n.s),a.write_shift(1,0),a}function vu(n){var a=n.read_shift(2);return a+=n.read_shift(1)<<16,n.l++,{c:-1,iStyleRef:a}}function Fc(n,a){return null==a&&(a=Rn(4)),a.write_shift(3,n.iStyleRef||n.s),a.write_shift(1,0),a}var Wu=Qa,op=ta;function Ac(n){var a=n.read_shift(4);return 0===a||4294967295===a?"":n.read_shift(a,"dbcs")}function Tc(n,a){var t=!1;return null==a&&(t=!0,a=Rn(127)),a.write_shift(4,n.length>0?n.length:4294967295),n.length>0&&a.write_shift(0,n,"dbcs"),t?a.slice(0,a.l):a}var $u=Qa,sp=Ac,dd=Tc;function _f(n){var a=n.slice(n.l,n.l+4),t=1&a[0],r=2&a[0];n.l+=4;var i=0===r?ep([0,0,0,0,252&a[0],a[1],a[2],a[3]],0):iu(a,0)>>2;return t?i/100:i}function Sc(n,a){null==a&&(a=Rn(4));var t=0,r=0,i=100*n;if(n==(0|n)&&n>=-(1<<29)&&n<1<<29?r=1:i==(0|i)&&i>=-(1<<29)&&i<1<<29&&(r=1,t=1),!r)throw new Error("unsupported RkNumber "+n);a.write_shift(-4,((t?i:n)<<2)+(t+2))}function Zh(n){var a={s:{},e:{}};return a.s.r=n.read_shift(4),a.e.r=n.read_shift(4),a.s.c=n.read_shift(4),a.e.c=n.read_shift(4),a}var Td=Zh,Nl=function xu(n,a){return a||(a=Rn(16)),a.write_shift(4,n.s.r),a.write_shift(4,n.e.r),a.write_shift(4,n.s.c),a.write_shift(4,n.e.c),a};function fl(n){if(n.length-n.l<8)throw"XLS Xnum Buffer underflow";return n.read_shift(8,"f")}function Rf(n,a){return(a||Rn(8)).write_shift(8,n,"f")}function ic(n,a){if(a||(a=Rn(8)),!n||n.auto)return a.write_shift(4,0),a.write_shift(4,0),a;null!=n.index?(a.write_shift(1,2),a.write_shift(1,n.index)):null!=n.theme?(a.write_shift(1,6),a.write_shift(1,n.theme)):(a.write_shift(1,5),a.write_shift(1,0));var t=n.tint||0;if(t>0?t*=32767:t<0&&(t*=32768),a.write_shift(2,t),n.rgb&&null==n.theme){var r=n.rgb||"FFFFFF";"number"==typeof r&&(r=("000000"+r.toString(16)).slice(-6)),a.write_shift(1,parseInt(r.slice(0,2),16)),a.write_shift(1,parseInt(r.slice(2,4),16)),a.write_shift(1,parseInt(r.slice(4,6),16)),a.write_shift(1,255)}else a.write_shift(2,0),a.write_shift(1,0),a.write_shift(1,0);return a}var ls={1:{n:"CodePage",t:2},2:{n:"Category",t:80},3:{n:"PresentationFormat",t:80},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:80},15:{n:"Company",t:80},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:80},27:{n:"ContentStatus",t:80},28:{n:"Language",t:80},29:{n:"Version",t:80},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},pl={1:{n:"CodePage",t:2},2:{n:"Title",t:80},3:{n:"Subject",t:80},4:{n:"Author",t:80},5:{n:"Keywords",t:80},6:{n:"Comments",t:80},7:{n:"Template",t:80},8:{n:"LastAuthor",t:80},9:{n:"RevNumber",t:80}
1,10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"Application",t:80},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}};function fp(n){return n.map(function(a){return[a>>16&255,a>>8&255,255&a]})}var Hu=Kr(fp([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),Ku={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Gl={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Ju={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"}
vendor: 1,546 bytes, line 1
1,comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function pp(n,a){var i,t=function qi(n){for(var a=[],t=Wi(n),r=0;r!==t.length;++r)null==a[n[t[r]]]&&(a[n[t[r]]]=[]),a[n[t[r]]].push(t[r]);return a}(Gl),r=[];r[r.length]=Gr,r[r.length]=_n("Types",null,{xmlns:Or.CT,"xmlns:xsd":Or.xsd,"xmlns:xsi":Or.xsi}),r=r.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["t
1if","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(S){return _n("Default",null,{Extension:S[0],ContentType:S[1]})}));var s=function(S){n[S]&&n[S].length>0&&(r[r.length]=_n("Override",null,{PartName:("/"==(i=n[S][0])[0]?"":"/")+i,ContentType:Ju[S][a.bookType]||Ju[S].xlsx}))},p=function(S){(n[S]||[]).forEach(function(R){r[r.length]=_n("Override",null,{PartName:("/"==R[0]?"":"/")+R,ContentType:Ju[S][a.bookType]||Ju[S].xlsx})})},g=function(S){(n[S]||[]).forEach(function(R){r[r.length]=_n("Override",null,{PartName:("/"==R[0]?"":"/")+R,ContentType:t[S][0]})})};return s("workbooks"),p("sheets"),p("charts"),g("themes"),["strs","styles"].forEach(s),["coreprops","extprops","custprops"].forEach(g),g("vba"),g("comments"),g("threadedcomments"),g("drawings"),p("metadata"),g("people"),r.length>2&&(r[r.length]="</Types>",r[1]=r[1].replace("/>",">")),r.join("")}var Pa
vendor: 2,399 bytes, line 1
1={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",
1VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Zs(n){var a=n.lastIndexOf("/");return n.slice(0,a+1)+"_rels/"+n.slice(a+1)+".rels"}function Pd(n){var a=[Gr,_n("Relationships",null,{xmlns:Or.RELS})];return Wi(n["!id"]).forEach(function(t){a[a.length]=_n("Relationship",null,n["!id"][t])}),a.length>2&&(a[a.length]="</Relationships>",a[1]=a[1].replace("/>",">")),a.join("")}function _o(n,a,t,r,i,s){if(i||(i={}),n["!id"]||(n["!id"]={}),n["!idx"]||(n["!idx"]=1),a<0)for(a=n["!idx"];n["!id"]["rId"+a];++a);if(n["!idx"]=a+1,i.Id="rId"+a,i.Type=r,i.Target=t,s?i.TargetMode=s:[Pa.HLINK,Pa.XPATH,Pa.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),n["!id"][i.Id])throw new Error("Cannot rewrite rId "+a);return n["!id"][i.Id]=i,n[("/"+i.Target).replace("//","/")]=i,a}function ch(n,a,t){return[' <rdf:Description rdf:about="'+n+'">\n',' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(t||"odf")+"#"+a+'"/>\n'," </rdf:Description>\n"].join("")}function co(n,a){return[' <rdf:Description rdf:about="'+n+'">\n',' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+a+'"/>\n'," </rdf:Description>\n"].join("")}function yf(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+gi.version+"</meta:generator></office:meta></office:document-meta>"}var Ec=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function kh(n,a,t,r,i){null!=i[n]||null==a||""===a||(i[n]=a,a=Ja(a),r[r.length]=t?_n(n,a,t):zt(n,a))}function wh(n,a){var t=a||{},r=[Gr,_n("cp:coreProperties",null,{"xmlns:cp":Or.CORE_PROPS,"xmlns:dc":Or.dc,"xmlns:dcterms":Or.dcterms,"xmlns:dcmitype":Or.dcmitype,"xmlns:xsi":Or.xsi})],i={};if(!n&&!t.Props)return r.join("");n&&(null!=n.CreatedDate&&kh("dcterms:created","string"==typeof n.CreatedDate?n.CreatedDate:Ui(n.CreatedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},r,i),null!=n.ModifiedDate&&kh("dcterms:modified","string"==typeof n.ModifiedDate?n.ModifiedDate:Ui(n.ModifiedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},r,i));for(var s=0;s!=Ec.length;++s){var p=Ec[s],g=t.Props&&null!=t.Props[p[1]]?t.Props[p[1]]:n?n[p[1]]:null;!0===g?g="1":!1===g?g="0":"number"==typeof g&&(g=String(g)),null!=g&&kh(p[0],g,null,r,i)}return r.length>2&&(r[r.length]="</cp:coreProperties>",r[1]=r[1].replace("/>",">")),r.join("")}var Cf=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],Fh=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function Om(n){var a=[],t=_n;return n||(n={}),n.Application="SheetJS",a[a.length]=Gr,a[a.length]=_n("Properties",null,{xmlns:Or.EXT_PROPS,"xmlns:vt":Or.vt}),Cf.forEach(function(r){if(void 0!==n[r[1]]){var i;switch(r[2]){case"string":i=Ja(String(n[r[1]]));break;case"bool":i=n[r[1]]?"true":"false"}void 0!==i&&(a[a.length]=t(r[0],i))}}),a[a.length]=t("HeadingPairs",t("vt:vector",t("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+t("vt:variant",t("vt:i4",String(n.Worksheets))),{size:2,baseType:"variant"})),a[a.length]=t("TitlesOfParts",t("vt:vector",n.SheetNames.map(function(r){return"<vt:lpstr>"+Ja(r)+"</vt:lpstr>"}).join(""),{size:n.Worksheets,baseType:"lpstr"})),a.length>2&&(a[a.length]="</Properties>",a[1]=a[1].replace("/>",">")),a.join("")}function Wp(n){var a=[Gr,_n("Properties",null,{xmlns:Or.CUST_PROPS,"xmlns:vt":Or.vt})];if(!n)return a.join("");var t=1;
1return Wi(n).forEach(function(i){++t,a[a.length]=_n("property",function ma(n,a){switch(typeof n){case"string":var t=_n("vt:lpwstr",Ja(n));return a&&(t=t.replace(/"/g,"_x0022_")),t;case"number":return _n((0|n)==n?"vt:i4":"vt:r8",Ja(String(n)));case"boolean":return _n("vt:bool",n?"true":"false")}if(n instanceof Date)return _n("vt:filetime",Ui(n));throw new Error("Unable to serialize "+n)}(n[i],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t,name:Ja(i)})}),a.length>2&&(a[a.length]="</Properties>",a[1]=a[1].replace("/>",">")),a.join("")}var Sh={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function Rm(n,a){var t=Rn(4),r=Rn(4);switch(t.write_shift(4,80==n?31:n),n){case 3:r.write_shift(-4,a);break;case 5:(r=Rn(8)).write_shift(8,a,"f");break;case 11:r.write_shift(4,a?1:0);break;case 64:r=function og(n){var t=("string"==typeof n?new Date(Date.parse(n)):n).getTime()/1e3+11644473600,r=t%Math.pow(2,32),i=(t-r)/Math.pow(2,32);i*=1e7;var s=(r*=1e7)/Math.pow(2,32)|0;s>0&&(r%=Math.pow(2,32),i+=s);var p=Rn(8);return p.write_shift(4,r),p.write_shift(4,i),p}(a);break;case 31:case 80:for((r=Rn(4+2*(a.length+1)+(a.length%2?0:2))).write_shift(4,a.length+1),r.write_shift(0,a,"dbcs");r.l!=r.length;)r.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+n+" "+a)}return da([t,r])}var Gc=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function uh(n){switch(typeof n){case"boolean":return 11;case"number":return(0|n)==n?3:5;case"string":return 31;case"object":if(n instanceof Date)return 64}return-1}function Ph(n,a,t){var r=Rn(8),i=[],s=[],p=8,g=0,S=Rn(8),R=Rn(8);if(S.write_shift(4,2),S.write_shift(4,1200),R.write_shift(4,1),s.push(S),i.push(R),p+=8+S.length,!a){(R=Rn(8)).write_shift(4,0),i.unshift(R);var L=[Rn(4)];for(L[0].write_shift(4,n.length),g=0;g<n.length;++g){var ne=n[g][0];for((S=Rn(8+2*(ne.length+1)+(ne.length%2?0:2))).write_shift(4,g+2),S.write_shift(4,ne.length+1),S.write_shift(0,ne,"dbcs");S.l!=S.length;)S.write_shift(1,0);L.push(S)}S=da(L),s.unshift(S),p+=8+S.length}for(g=0;g<n.length;++g)if((!a||a[n[g][0]])&&!(Gc.indexOf(n[g][0])>-1||Fh.indexOf(n[g][0])>-1)&&null!=n[g][1]){var re=n[g][1],fe=0;if(a){var xe=t[fe=+a[n[g][0]]];if("version"==xe.p&&"string"==typeof re){var ce=re.split(".");re=(+ce[0]<<16)+(+ce[1]||0)}S=Rm(xe.t,re)}else{var be=uh(re);-1==be&&(be=31,re=String(re)),S=Rm(be,re)}s.push(S),(R=Rn(8)).write_shift(4,a?fe:2+g),i.push(R),p+=8+S.length}var Je=8*(s.length+1);for(g=0;g<s.length;++g)i[g].write_shift(4,Je),Je+=s[g].length;return r.write_shift(4,p),r.write_shift(4,s.length),da([r].concat(i).concat(s))}function lm(n,a,t,r,i,s){var p=Rn(i?68:48),g=[p];p.write_shift(2,65534),p.write_shift(2,0),p.write_shift(4,842412599),p.write_shift(16,Zn.utils.consts.HEADER_CLSID,"hex"),p.write_shift(4,i?2:1),p.write_shift(16,a,"hex"),p.write_shift(4,i?68:48);var S=Ph(n,t,r);if(g.push(S),i){var R=Ph(i,null,null);p.write_shift(16,s,"hex"),p.write_shift(4,68+S.length),g.push(R)}return da(g)}function Pc(n,a){return a||(a=Rn(2)),a.write_shift(2,+!!n),a}function Tl(n){return n.read_shift(2,"u")}function wu(n,a){return a||(a=Rn(2)),a.write_shift(2,n),a}function Nm(n,a,t){return t||(t=Rn(2)),t.write_shift(1,"e"==a?+n:+!!n),t.write_shift(1,"e"==a?1:0),t}function fh(n,a,t){var r=n.read_shift(t&&t.biff>=12?2:1),i="sbcs-cont",s=mr;t&&t.biff>=8&&(mr=1200),t&&8!=t.biff?12==t.biff&&(i="wstr"):n.read_shift(1)&&(i="dbcs-cont"),t.biff>=2&&t.biff<=5&&(i="cpstr");var g=r?n.read_shift(r,i):"";return mr=s,g}function F(n){var a=n.t||"",r=Rn(3);r.write_shift(2,a.length),r.write_shift(1,1);var i=Rn(2*a.length);return i.write_shift(2*a.length,a,"utf16le"),da([r,i])}function ye(n,a,t){return t||(t=Rn(3+2*n.length)),t.write_shift(2,n.length),t.write_shift(1,1),t.write_shift(31,n,"utf16le"),t}function Yt(n,a){a||(a=Rn(6+2*n.length)),a.write_shift(4,1+n.length);for(var t=0;t<n.length;
1++t)a.write_shift(2,n.charCodeAt(t));return a.write_shift(2,0),a}function pn(n){var a=Rn(512),t=0,r=n.Target;"file://"==r.slice(0,7)&&(r=r.slice(7));var i=r.indexOf("#"),s=i>-1?31:23;switch(r.charAt(0)){case"#":s=28;break;case".":s&=-3}a.write_shift(4,2),a.write_shift(4,s);var p=[8,6815827,6619237,4849780,83];for(t=0;t<p.length;++t)a.write_shift(4,p[t]);if(28==s)Yt(r=r.slice(1),a);else if(2&s){for(p="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),t=0;t<p.length;++t)a.write_shift(1,parseInt(p[t],16));var g=i>-1?r.slice(0,i):r;for(a.write_shift(4,2*(g.length+1)),t=0;t<g.length;++t)a.write_shift(2,g.charCodeAt(t));a.write_shift(2,0),8&s&&Yt(i>-1?r.slice(i+1):"",a)}else{for(p="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),t=0;t<p.length;++t)a.write_shift(1,parseInt(p[t],16));for(var S=0;"../"==r.slice(3*S,3*S+3)||"..\\"==r.slice(3*S,3*S+3);)++S;for(a.write_shift(2,S),a.write_shift(4,r.length-3*S+1),t=0;t<r.length-3*S;++t)a.write_shift(1,255&r.charCodeAt(t+3*S));for(a.write_shift(1,0),a.write_shift(2,65535),a.write_shift(2,57005),t=0;t<6;++t)a.write_shift(4,0)}return a.slice(0,a.l)}function Bt(n,a,t,r){return r||(r=Rn(6)),r.write_shift(2,n),r.write_shift(2,a),r.write_shift(2,t||0),r}function wi(n,a,t){var r=t.biff>8?4:2;return[n.read_shift(r),n.read_shift(r,"i"),n.read_shift(r,"i")]}function Ji(n){var a=n.read_shift(2),t=n.read_shift(2);return{s:{c:n.read_shift(2),r:a},e:{c:n.read_shift(2),r:t}}}function na(n,a){return a||(a=Rn(8)),a.write_shift(2,n.s.r),a.write_shift(2,n.e.r),a.write_shift(2,n.s.c),a.write_shift(2,n.e.c),a}function Vc(n,a,t){var r=1536,i=16;switch(t.bookType){case"biff8":case"xla":break;case"biff5":r=1280,i=8;break;case"biff4":r=4,i=6;break;case"biff3":r=3,i=6;break;case"biff2":r=2,i=4;break;default:throw new Error("unsupported BIFF version")}var s=Rn(i);return s.write_shift(2,r),s.write_shift(2,a),i>4&&s.write_shift(2,29282),i>6&&s.write_shift(2,1997),i>8&&(s.write_shift(2,49161),s.write_shift(2,1),s.write_shift(2,1798),s.write_shift(2,0)),s}function uc(n,a){var t=!a||a.biff>=8?2:1,r=Rn(8+t*n.name.length);r.write_shift(4,n.pos),r.write_shift(1,n.hs||0),r.write_shift(1,n.dt),r.write_shift(1,n.name.length),a.biff>=8&&r.write_shift(1,1),r.write_shift(t*n.name.length,n.name,a.biff<8?"sbcs":"utf16le");var i=r.slice(0,r.l);return i.l=r.l,i}function um(n,a,t,r){var i=t&&5==t.biff;r||(r=Rn(i?3+a.length:5+2*a.length)),r.write_shift(2,n),r.write_shift(i?1:2,a.length),i||r.write_shift(1,1),r.write_shift((i?1:2)*a.length,a,i?"sbcs":"utf16le");var s=r.length>r.l?r.slice(0,r.l):r;return null==s.l&&(s.l=s.length),s}function hh(n,a,t,r){var i=t&&5==t.biff;r||(r=Rn(i?16:20)),r.write_shift(2,0),n.style?(r.write_shift(2,n.numFmtId||0),r.write_shift(2,65524)):(r.write_shift(2,n.numFmtId||0),r.write_shift(2,a<<4));var s=0;return n.numFmtId>0&&i&&(s|=1024),r.write_shift(4,s),r.write_shift(4,0),i||r.write_shift(4,0),r.write_shift(2,0),r}function Id(n){var a=Rn(24),t=z(n[0]);a.write_shift(2,t.r),a.write_shift(2,t.r),a.write_shift(2,t.c),a.write_shift(2,t.c);for(var r="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<16;++i)a.write_shift(1,parseInt(r[i],16));return da([a,pn(n[1])])}function xs(n){var a=n[1].Tooltip,t=Rn(10+2*(a.length+1));t.write_shift(2,2048);var r=z(n[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var i=0;i<a.length;++i)t.write_shift(2,a.charCodeAt(i));return t.write_shift(2,0),t}var _m=function(){var n={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},a=zi({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(g,S){var R=S||{};R.dateNF||(R.dateNF="yyyymmdd");var L=ua(function t(g,S){var R=[],L=ya(1);switch(S.type){case"base64":L=ss(Ko(g));break;case"binary":L=ss(g);break;case"buffer":case"array":L=g}go(L,0);var ne=L.read_shift(1),re=!!(136&ne),fe=!1,xe=!1;switch(ne){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:fe=!0,re=!0;break;case 140:xe=!0;break;default:throw new Error("DBF Unsupported Version: "+ne.toString(16))}var ce=0,be=521;2==ne&&(ce=L.read_shift(2)),L.l+=3,2!=ne&&(ce=L.read_shift(4)),ce>1048576&&(ce=1e6),2!=ne&&(be=L.read_shift(2));var Je=L.read_shift(2),tt=S.codepage||1252;2!=ne&&(L.l+=16,L.read_shift(1),0!==L[L.l]&&(tt=n[L[L.l]]),L.l+=1,L.l+=2),xe&&(L.l+=36);for(var Ze=[],en={},vn=Math.min(L.length,2==ne?521:be-10-(fe?264:0)),Kn=xe?32:11;L.l<vn&&13!=L[L.l];)switch(en={},en.name=ia.utils.decode(tt,L.slice(L.l,L.l+Kn)).replace(/[\u0000\r\n].*$/g,""),L.l+=Kn,en.type=String.fromCharCode(L.read_shift(1)),2!=ne&&!xe&&(en.offset=L.read_shift(4)),en.len=L.read_shift(1),2==ne&&(en.offset=L.read_shift(2)),en.dec=L.read_shift(1),en.name.length&&Ze.push(en),2!=ne&&(L.l+=xe?13:14),en.type){case"B":(!fe||8!=en.len)&&S.WTF&&console.log("Skipping "+en.name+":"+en.type);break;case"G":case"P":S.WTF&&console.log("Skipping "+en.name+":"+en.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+en.type)}if(13!==L[L.l]&&(L.l=be-1),13!==L.read_shift(1))throw new Error("DBF Terminator not found "+L.l+" "+L[L.l]);L.l=be;var Tt=0,hn=0;for(R[0]=[],hn=0;hn!=Ze.length;++hn)R[0][hn]=Ze[hn].name;for(;ce-- >0;)if(42!==L[L.l])for(++L.l,R[++Tt]=[],hn=0,hn=0;hn!=Ze.length;++hn){var on=L.slice(L.l,L.l+Ze[hn].len);L.l+=Ze[hn].len,go(on,0);var ti=ia.utils.decode(tt,on);switch(Ze[hn].type){case"C":ti.trim().length&&(R[Tt][hn]=ti.replace(/\s+$/,""));break;case"D":R[Tt][hn]=8===ti.length?new Date(+ti.slice(0,4),+ti.slice(4,6)-1,+ti.slice(6,8)):ti;break;case"F":R[Tt][hn]=parseFloat(ti.trim());break;case"+":case"I":R[Tt][hn]=xe?2147483648^on.read_shift(-4,"i"):on.read_shift(4,"i");break;case"L":switch(ti.trim().toUpperCase()){case"Y":case"T":R[Tt][hn]=!0;break;case"N":case"F":R[Tt][hn]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+ti+"|")}break;case"M":if(!re)throw new Error("DBF Unexpected MEMO for type "+ne.toString(16));R[Tt][hn]="##MEMO##"+(xe?parseInt(ti.trim(),10):on.read_shift(4));break;case"N":(ti=ti.replace(/\u0000/g,"").trim())&&"."!=ti&&(R[Tt][hn]=+ti||0);break;case"@":R[Tt][hn]=new Date(on.read_shift(-8,"f")-621356832e5);break;case"T":R[Tt][hn]=new Date(864e5*(on.read_shift(4)-2440588)+on.read_shift(4));break;case"Y":R[Tt][hn]=on.read_shift(4,"i")/1e4+on.read_shift(4,"i")/1e4*Math.pow(2,32);break;
vendor: 4,821 bytes, line 1
1case"O":R[Tt][hn]=-on.read_shift(-8,"f");break;case"B":if(fe&&8==Ze[hn].len){R[Tt][hn]=on.read_shift(8,"f");break}case"G":case"P":on.l+=Ze[hn].len;break;case"0":if("_NullFlags"===Ze[hn].name)break;default:throw new Error("DBF Unsupported data type "+Ze[hn].type)}}else L.l+=Je;if(2!=ne&&L.l<L.length&&26!=L[L.l++])throw new Error("DBF EOF Marker missing "+(L.l-1)+" of "+L.length+" "+L[L.l-1].toString(16));return S&&S.sheetRows&&(R=R.slice(0,S.sheetRows)),S.DBF=Ze,R}(g,R),R);return L["!cols"]=R.DBF.map(function(ne){return{wch:ne.len,DBF:ne}}),delete R.DBF,L}var s={B:8,C:250,L:1,D:8,"?":0,"":0};return{to_workbook:function i(g,S){try{return cr(r(g,S),S)}catch(R){if(S&&S.WTF)throw R}return{SheetNames:[],Sheets:{}}},to_sheet:r,from_sheet:function p(g,S){var R=S||{};if(+R.codepage>=0&&ko(+R.codepage),"string"==R.type)throw new Error("Cannot write DBF to JS string");var L=Ks(),ne=Q_(g,{header:1,raw:!0,cellDates:!0}),re=ne[0],fe=ne.slice(1),xe=g["!cols"]||[],ce=0,be=0,Je=0,tt=1;for(ce=0;ce<re.length;++ce)if(((xe[ce]||{}).DBF||{}).name)re[ce]=xe[ce].DBF.name,++Je;else if(null!=re[ce]){if(++Je,"number"==typeof re[ce]&&(re[ce]=re[ce].toString(10)),"string"!=typeof re[ce])throw new Error("DBF Invalid column name "+re[ce]+" |"+typeof re[ce]+"|");if(re.indexOf(re[ce])!==ce)for(be=0;be<1024;++be)if(-1==re.indexOf(re[ce]+"_"+be)){re[ce]+="_"+be;break}}var Ze=Ut(g["!ref"]),en=[],vn=[],Kn=[];for(ce=0;ce<=Ze.e.c-Ze.s.c;++ce){var Tt="",hn="",on=0,ti=[];for(be=0;be<fe.length;++be)null!=fe[be][ce]&&ti.push(fe[be][ce]);if(0!=ti.length&&null!=re[ce]){for(be=0;be<ti.length;++be){switch(typeof ti[be]){case"number":hn="B";break;case"string":default:hn="C";break;case"boolean":hn="L";break;case"object":hn=ti[be]instanceof Date?"D":"C"}on=Math.max(on,String(ti[be]).length),Tt=Tt&&Tt!=hn?"C":hn}on>250&&(on=250),"C"==(hn=((xe[ce]||{}).DBF||{}).type)&&xe[ce].DBF.len>on&&(on=xe[ce].DBF.len),"B"==Tt&&"N"==hn&&(Tt="N",Kn[ce]=xe[ce].DBF.dec,on=xe[ce].DBF.len),vn[ce]="C"==Tt||"N"==hn?on:s[Tt]||0,tt+=vn[ce],en[ce]=Tt}else en[ce]="?"}var ni=L.next(32);for(ni.write_shift(4,318902576),ni.write_shift(4,fe.length),ni.write_shift(2,296+32*Je),ni.write_shift(2,tt),ce=0;ce<4;++ce)ni.write_shift(4,0);for(ni.write_shift(4,(+a[Co]||3)<<8),ce=0,be=0;ce<re.length;++ce)if(null!=re[ce]){var cn=L.next(32),Yi=(re[ce].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);cn.write_shift(1,Yi,"sbcs"),cn.write_shift(1,"?"==en[ce]?"C":en[ce],"sbcs"),cn.write_shift(4,be),cn.write_shift(1,vn[ce]||s[en[ce]]||0),cn.write_shift(1,Kn[ce]||0),cn.write_shift(1,2),cn.write_shift(4,0),cn.write_shift(1,0),cn.write_shift(4,0),cn.write_shift(4,0),be+=vn[ce]||s[en[ce]]||0}var Tr=L.next(264);for(Tr.write_shift(4,13),ce=0;ce<65;++ce)Tr.write_shift(4,0);for(ce=0;ce<fe.length;++ce){var ar=L.next(tt);for(ar.write_shift(1,0),be=0;be<re.length;++be)if(null!=re[be])switch(en[be]){case"L":ar.write_shift(1,null==fe[ce][be]?63:fe[ce][be]?84:70);break;case"B":ar.write_shift(8,fe[ce][be]||0,"f");break;case"N":var fa="0";for("number"==typeof fe[ce][be]&&(fa=fe[ce][be].toFixed(Kn[be]||0)),Je=0;Je<vn[be]-fa.length;++Je)ar.write_shift(1,32);ar.write_shift(1,fa,"sbcs");break;case"D":fe[ce][be]?(ar.write_shift(4,("0000"+fe[ce][be].getFullYear()).slice(-4),"sbcs"),ar.write_shift(2,("00"+(fe[ce][be].getMonth()+1)).slice(-2),"sbcs"),ar.write_shift(2,("00"+fe[ce][be].getDate()).slice(-2),"sbcs")):ar.write_shift(8,"00000000","sbcs");break;case"C":var Ir=String(null!=fe[ce][be]?fe[ce][be]:"").slice(0,vn[be]);for(ar.write_shift(1,Ir,"sbcs"),Je=0;Je<vn[be]-Ir.length;++Je)ar.write_shift(1,32)}}return L.next(1).write_shift(1,26),L.end()}}}(),Rg=function(){var n={AA:"\xc0",BA:"\xc1",CA:"\xc2",DA:195,HA:"\xc4",JA:197,AE:"\xc8",BE:"\xc9",CE:"\xca",HE:"\xcb",AI:"\xcc",BI:"\xcd",CI:"\xce",HI:"\xcf",AO:"\xd2",BO:"\xd3",CO:"\xd4",DO:213,HO:"\xd6",AU:"\xd9",BU:"\xda",CU:"\xdb",HU:"\xdc",Aa:"\xe0",Ba:"\xe1",Ca:"\xe2",Da:227,Ha:"\xe4",Ja:229,Ae:"\xe8",Be:"\xe9",Ce:"\xea",He:"\xeb",Ai:"\xec",Bi:"\xed",Ci:"\xee",Hi:"\xef",Ao:"\xf2",Bo:"\xf3",Co:"\xf4",Do:245,Ho:"\xf6",Au:"\xf9",Bu:"\xfa",Cu:"\xfb",Hu:"\xfc",KC:"\xc7",Kc:"\xe7",q:"\xe6",z:"\u0153",a:"\xc6",j:"\u0152",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},a=new RegExp("\x1bN("+Wi(n).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),t=function(re,fe){var xe=n[fe];return"number"==typeof xe?Jl(xe):xe},r=function(re,fe,xe){var ce=fe.charCodeAt(0)-32<<4|xe.charCodeAt(0)-48;return 59==ce?re:Jl(ce)};function s(re,fe){var ni,xe=re.split(/[\n\r]+/),ce=-1,be=-1,Je=0,tt=0,Ze=[],en=[],vn=null,Kn={},Tt=[],hn=[],on=[],ti=0;for(+fe.codepage>=0&&ko(+fe.codepage);Je!==xe.length;++Je){ti=0;
1var ar,cn=xe[Je].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,r).replace(a,t),Yi=cn.replace(/;;/g,"\0").split(";").map(function(Gt){return Gt.replace(/\u0000/g,";")});if(cn.length>0)switch(Yi[0]){case"ID":case"E":case"B":case"O":case"W":break;case"P":"P"==Yi[1].charAt(0)&&en.push(cn.slice(3).replace(/;;/g,";"));break;case"C":var fa=!1,Ir=!1,ao=!1,pr=!1,sa=-1,Ai=-1;for(tt=1;tt<Yi.length;++tt)switch(Yi[tt].charAt(0)){case"A":case"G":break;case"X":be=parseInt(Yi[tt].slice(1))-1,Ir=!0;break;case"Y":for(ce=parseInt(Yi[tt].slice(1))-1,Ir||(be=0),ni=Ze.length;ni<=ce;++ni)Ze[ni]=[];break;case"K":'"'===(ar=Yi[tt].slice(1)).charAt(0)?ar=ar.slice(1,ar.length-1):"TRUE"===ar?ar=!0:"FALSE"===ar?ar=!1:isNaN(Ws(ar))?isNaN($s(ar).getDate())||(ar=Mr(ar)):(ar=Ws(ar),null!==vn&&Xn(vn)&&(ar=Da(ar))),typeof ia<"u"&&"string"==typeof ar&&"string"!=(fe||{}).type&&(fe||{}).codepage&&(ar=ia.utils.decode(fe.codepage,ar)),fa=!0;break;case"E":pr=!0;var Et=su(Yi[tt].slice(1),{r:ce,c:be});Ze[ce][be]=[Ze[ce][be],Et];break;case"S":ao=!0,Ze[ce][be]=[Ze[ce][be],"S5S"];break;case"R":sa=parseInt(Yi[tt].slice(1))-1;break;case"C":Ai=parseInt(Yi[tt].slice(1))-1;break;default:if(fe&&fe.WTF)throw new Error("SYLK bad record "+cn)}if(fa&&(Ze[ce][be]&&2==Ze[ce][be].length?Ze[ce][be][0]=ar:Ze[ce][be]=ar,vn=null),ao){if(pr)throw new Error("SYLK shared formula cannot have own formula");var Vn=sa>-1&&Ze[sa][Ai];if(!Vn||!Vn[1])throw new Error("SYLK shared formula cannot find base");Ze[ce][be][1]=w_(Vn[1],{r:ce-sa,c:be-Ai})}break;case"F":var Wt=0;for(tt=1;tt<Yi.length;++tt)switch(Yi[tt].charAt(0)){case"X":be=parseInt(Yi[tt].slice(1))-1,++Wt;break;case"Y":for(ce=parseInt(Yi[tt].slice(1))-1,ni=Ze.length;ni<=ce;++ni)Ze[ni]=[];break;case"M":ti=parseInt(Yi[tt].slice(1))/20;break;case"F":case"G":case"S":case"D":case"N":break;case"P":vn=en[parseInt(Yi[tt].slice(1))];break;case"W":for(on=Yi[tt].slice(1).split(" "),ni=parseInt(on[0],10);ni<=parseInt(on[1],10);++ni)ti=parseInt(on[2],10),hn[ni-1]=0===ti?{hidden:!0}:{wch:ti},Qp(hn[ni-1]);break;case"C":hn[be=parseInt(Yi[tt].slice(1))-1]||(hn[be]={});break;case"R":Tt[ce=parseInt(Yi[tt].slice(1))-1]||(Tt[ce]={}),ti>0?(Tt[ce].hpt=ti,Tt[ce].hpx=ym(ti)):0===ti&&(Tt[ce].hidden=!0);break;default:if(fe&&fe.WTF)throw new Error("SYLK bad record "+cn)}Wt<1&&(vn=null);break;default:if(fe&&fe.WTF)throw new Error("SYLK bad record "+cn)}}return Tt.length>0&&(Kn["!rows"]=Tt),hn.length>0&&(Kn["!cols"]=hn),fe&&fe.sheetRows&&(Ze=Ze.slice(0,fe.sheetRows)),[Ze,Kn]}function p(re,fe){var xe=function i(re,fe){switch(fe.type){case"base64":return s(Ko(re),fe);case"binary":return s(re,fe);case"buffer":return s(Br&&Buffer.isBuffer(re)?re.toString("binary"):yd(re),fe);case"array":return s(Zl(re),fe)}throw new Error("Unrecognized type "+fe.type)}(re,fe),be=xe[1],Je=ua(xe[0],fe);return Wi(be).forEach(function(tt){Je[tt]=be[tt]}),Je}function S(re,fe,xe,ce){var be="C;Y"+(xe+1)+";X"+(ce+1)+";K";switch(re.t){case"n":be+=re.v||0,re.f&&!re.F&&(be+=";E"+kg(re.f,{r:xe,c:ce}));break;case"b":be+=re.v?"TRUE":"FALSE";break;case"e":be+=re.w||re.v;break;case"d":be+='"'+(re.w||re.v)+'"';break;case"s":be+='"'+re.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return be}return n["|"]=254,{to_workbook:function g(re,fe){return cr(p(re,fe),fe)},to_sheet:p,from_sheet:function ne(re,fe){var Je,xe=["ID;PWXL;N;E"],ce=[],be=Ut(re["!ref"]),tt=Array.isArray(re),Ze="\r\n";xe.push("P;PGeneral"),xe.push("F;P0;DG0G8;M255"),re["!cols"]&&function R(re,fe){fe.forEach(function(xe,ce){var be="F;W"+(ce+1)+" "+(ce+1)+" ";xe.hidden?be+="0":("number"==typeof xe.width&&!xe.wpx&&(xe.wpx=xm(xe.width)),"number"==typeof xe.wpx&&!xe.wch&&(xe.wch=bm(xe.wpx)),"number"==typeof xe.wch&&(be+=Math.round(xe.wch)))," "!=be.charAt(be.length-1)&&re.push(be)})}(xe,re["!cols"]),re["!rows"]&&function L(re,fe){fe.forEach(function(xe,ce){var be="F;";xe.hidden?be+="M0;":xe.hpt?be+="M"+20*xe.hpt+";":xe.hpx&&(be+="M"+20*Uh(xe.hpx)+";"),be.length>2&&re.push(be+"R"+(ce+1))})}(xe,re["!rows"]),xe.push("B;Y"+(be.e.r-be.s.r+1)+";X"+(be.e.c-be.s.c+1)+";D"+[be.s.c,be.s.r,be.e.c,be.e.r].join(" "));for(var en=be.s.r;en<=be.e.r;++en)for(var vn=be.s.c;vn<=be.e.c;++vn){var Kn=ge({r:en,c:vn});(Je=tt?(re[en]||[])[vn]:re[Kn])&&(null!=Je.v||Je.f&&!Je.F)&&ce.push(S(Je,0,en,vn))}return xe.join(Ze)+Ze+ce.join(Ze)+Ze+"E"+Ze}}}(),pg=function(){function a(s,p){for(var g=s.split("\n"),S=-1,R=-1,L=0,ne=[];L!==g.length;++L)if("BOT"!==g[L].trim()){if(!(S<0)){for(var re=g[L].trim().split(","),fe=re[0],xe=re[1],ce=g[++L]||"";1&(ce.match(/["]/g)||[]).length&&L<g.length-1;)ce+="\n"+g[++L];switch(ce=ce.trim(),+fe){case-1:if("BOT"===ce){ne[++S]=[],R=0;continue}if("EOD"!==ce)throw new Error("Unrecognized DIF special command "+ce);break;case 0:ne[S][R]="TRUE"===ce||"FALSE"!==ce&&(isNaN(Ws(xe))?isNaN($s(xe).getDate())?xe:Mr(xe):Ws(xe)),++R;break;case 1:(ce=(ce=ce.slice(1,ce.length-1)).replace(/""/g,'"'))&&ce.match(/^=".*"$/)&&(ce=ce.slice(2,-1)),ne[S][R++]=""!==ce?ce:null}if("EOD"===ce)break}}else ne[++S]=[],R=0;return p&&p.sheetRows&&(ne=ne.slice(0,p.sheetRows)),ne}function t(s,p){return ua(function n(s,p){switch(p.type){case"base64":return a(Ko(s),p);case"binary":return a(s,p);case"buffer":return a(Br&&Buffer.isBuffer(s)?s.toString("binary"):yd(s),p);case"array":return a(Zl(s),p)}throw new Error("Unrecognized type "+p.type)}(s,p),p)}return{to_workbook:function r(s,p){return cr(t(s,p),p)},to_sheet:t,from_sheet:function(){var s=function(S,R,L,ne,re){S.push(R),S.push(L+","+ne),S.push('"'+re.replace(/"/g,'""')+'"')},p=function(S,R,L,ne){S.push(R+","+L),S.push(1==R?'"'+ne.replace(/"/g,'""')+'"':ne)};return function(S){var ne,R=[],L=Ut(S["!ref"]),re=Array.isArray(S);s(R,"TABLE",0,1,"sheetjs"),s(R,"VECTORS",0,L.e.r-L.s.r+1,""),s(R,"TUPLES",0,L.e.c-L.s.c+1,""),s(R,"DATA",0,0,"");for(var fe=L.s.r;fe<=L.e.r;++fe){p(R,-1,0,"BOT");for(var xe=L.s.c;xe<=L.e.c;++xe){var ce=ge({r:fe,c:xe});if(ne=re?(S[fe]||[])[xe]:S[ce])switch(ne.t){case"n":var be=ne.w;!be&&null!=ne.v&&(be=ne.v),null==be?p(R,1,0,ne.f&&!ne.F?"="+ne.f:""):p(R,0,be,"V");break;case"b":p(R,0,ne.v?1:0,ne.v?"TRUE":"FALSE");break;case"s":p(R,1,0,isNaN(ne.v)?ne.v:'="'+ne.v+'"');break;case"d":ne.w||(ne.w=Te(ne.z||ct[14],Sr(Mr(ne.v)))),p(R,0,ne.w,"V");break;default:p(R,1,0,"")}else p(R,1,0,"")}}return p(R,-1,0,"EOD"),R.join("\r\n")}}()}}(),vm=function(){function n(ne){return ne.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n
1/g,"\n")}function a(ne){return ne.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(ne,re){return ua(function t(ne,re){for(var fe=ne.split("\n"),xe=-1,ce=-1,be=0,Je=[];be!==fe.length;++be){var tt=fe[be].trim().split(":");if("cell"===tt[0]){var Ze=z(tt[1]);if(Je.length<=Ze.r)for(xe=Je.length;xe<=Ze.r;++xe)Je[xe]||(Je[xe]=[]);switch(xe=Ze.r,ce=Ze.c,tt[2]){case"t":Je[xe][ce]=n(tt[3]);break;case"v":Je[xe][ce]=+tt[3];break;case"vtf":var en=tt[tt.length-1];case"vtc":Je[xe][ce]="nl"===tt[3]?!!+tt[4]:+tt[4],"vtf"==tt[2]&&(Je[xe][ce]=[Je[xe][ce],en])}}}return re&&re.sheetRows&&(Je=Je.slice(0,re.sheetRows)),Je}(ne,re),re)}var s=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n"),p=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n",g=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n"),S="--SocialCalcSpreadsheetControlSave--";function R(ne){if(!ne||!ne["!ref"])return"";for(var xe,re=[],fe=[],ce="",be=rt(ne["!ref"]),Je=Array.isArray(ne),tt=be.s.r;tt<=be.e.r;++tt)for(var Ze=be.s.c;Ze<=be.e.c;++Ze)if(ce=ge({r:tt,c:Ze}),(xe=Je?(ne[tt]||[])[Ze]:ne[ce])&&null!=xe.v&&"z"!==xe.t){switch(fe=["cell",ce,"t"],xe.t){case"s":case"str":fe.push(a(xe.v));break;case"n":xe.f?(fe[2]="vtf",fe[3]="n",fe[4]=xe.v,fe[5]=a(xe.f)):(fe[2]="v",fe[3]=xe.v);break;case"b":fe[2]="vt"+(xe.f?"f":"c"),fe[3]="nl",fe[4]=xe.v?"1":"0",fe[5]=a(xe.f||(xe.v?"TRUE":"FALSE"));break;case"d":var en=Sr(Mr(xe.v));fe[2]="vtc",fe[3]="nd",fe[4]=""+en,fe[5]=xe.w||Te(xe.z||ct[14],en);break;case"e":continue}re.push(fe.join(":"))}return re.push("sheet:c:"+(be.e.c-be.s.c+1)+":r:"+(be.e.r-be.s.r+1)+":tvf:1"),re.push("valueformat:1:text-wiki"),re.join("\n")}return{to_workbook:function i(ne,re){return cr(r(ne,re),re)},to_sheet:r,from_sheet:function L(ne){return[s,p,g,p,R(ne),S].join("\n")}}}(),Wc=function(){function n(L,ne,re,fe,xe){xe.raw?ne[re][fe]=L:""===L||(ne[re][fe]="TRUE"===L||"FALSE"!==L&&(isNaN(Ws(L))?isNaN($s(L).getDate())?L:Mr(L):Ws(L)))}var t={44:",",9:"\t",59:";",124:"|"},r={44:3,9:2,59:1,124:0};function i(L){for(var ne={},re=!1,fe=0,xe=0;fe<L.length;++fe)34==(xe=L.charCodeAt(fe))?re=!re:!re&&xe in t&&(ne[xe]=(ne[xe]||0)+1);for(fe in xe=[],ne)Object.prototype.hasOwnProperty.call(ne,fe)&&xe.push([ne[fe],fe]);if(!xe.length)for(fe in ne=r)Object.prototype.hasOwnProperty.call(ne,fe)&&xe.push([ne[fe],fe]);return xe.sort(function(ce,be){return ce[0]-be[0]||r[ce[1]]-r[be[1]]}),t[xe.pop()[1]]||44}function p(L,ne){return!ne||!ne.PRN||ne.FS||"sep="==L.slice(0,4)||L.indexOf("\t")>=0||L.indexOf(",")>=0||L.indexOf(";")>=0?function s(L,ne){var re=ne||{},fe="";null!=Ma&&null==re.dense&&(re.dense=Ma);var xe=re.dense?[]:{},ce={s:{c:0,r:0},e:{c:0,r:0}};"sep="==L.slice(0,4)?13==L.charCodeAt(5)&&10==L.charCodeAt(6)?(fe=L.charAt(4),L=L.slice(7)):13==L.charCodeAt(5)||10==L.charCodeAt(5)?(fe=L.charAt(4),L=L.slice(6)):fe=i(L.slice(0,1024)):fe=re&&re.FS?re.FS:i(L.slice(0,1024));var be=0,Je=0,tt=0,Ze=0,en=0,vn=fe.charCodeAt(0),Kn=!1,Tt=0,hn=L.charCodeAt(0);L=L.replace(/\r\n/gm,"\n");var on=null!=re.dateNF?function Ln(n){var a="number"==typeof n?ct[n]:n;return a=a.replace(In,"(\\d+)"),new RegExp("^"+a+"$")}(re.dateNF):null;function ti(){var ni=L.slice(Ze,en),cn={};if('"'==ni.charAt(0)&&'"'==ni.charAt(ni.length-1)&&(ni=ni.slice(1,-1).replace(/""/g,'"')),0===ni.length)cn.t="z";else if(re.raw)cn.t="s",cn.v=ni;else if(0===ni.trim().length)cn.t="s",cn.v=ni;else if(61==ni.charCodeAt(0))34==ni.charCodeAt(1)&&34==ni.charCodeAt(ni.length-1)?(cn.t="s",cn.v=ni.slice(2,-1).replace(/""/g,'"')):function hv(n){return 1!=n.length}(ni)?(cn.t="n",cn.f=ni.slice(1)):(cn.t="s",cn.v=ni);else if("TRUE"==ni)cn.t="b",cn.v=!0;else if("FALSE"==ni)cn.t="b",cn.v=!1;else if(isNaN(tt=Ws(ni)))if(!isNaN($s(ni).getDate())||on&&ni.match(on)){cn.z=re.dateNF||ct[14];var Yi=0;on&&ni.match(on)&&(ni=function Ri(n,a,t){var r=-1,i=-1,s=-1,p=-1,g=-1,S=-1;(a.match(In)||[]).forEach(function(ne,re){var fe=parseInt(t[re+1],10);switch(ne.toLowerCase().charAt(0)){case"y":r=fe;break;case"d":s=fe;break;case"h":p=fe;break;case"s":S=fe;break;case"m":p>=0?g=fe:i=fe}}),S>=0&&-1==g&&i>=0&&(g=i,i=-1);var R=(""+(r>=0?r:(new Date).getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(s>=1?s:1)).slice(-2);7==R.length&&(R="0"+R),8==R.length&&(R="20"+R);var L=("00"+(p>=0?p:0)).slice(-2)+":"+("00"+(g>=0?g:0)).slice(-2)+":"+("00"+(S>=0?S:0)).slice(-2);return-1==p&&-1==g&&-1==S?R:-1==r&&-1==i&&-1==s?L:R+"T"+L}(0,re.dateNF,ni.match(on)||[]),Yi=1),re.cellDates?(cn.t="d",cn.v=Mr(ni,Yi)):(cn.t="n",cn.v=Sr(Mr(ni,Yi))),!1!==re.cellText&&(cn.w=Te(cn.z,cn.v instanceof Date?Sr(cn.v):cn.v)),re.cellNF||delete cn.z}else cn.t="s",cn.v=ni;else cn.t="n",!1!==re.cellText&&(cn.w=ni),cn.v=tt;if("z"==cn.t||(re.dense?(xe[be]||(xe[be]=[]),xe[be][Je]=cn):xe[ge({c:Je,r:be})]=cn),hn=L.charCodeAt(Ze=en+1),ce.e.c<Je&&(ce.e.c=Je),ce.e.r<be&&(ce.e.r=be),Tt==vn)++Je;else if(Je=0,++be,re.sheetRows&&re.sheetRows<=be)return!0}e:for(;en<L.length;++en)switch(Tt=L.charCodeAt(en)){case 34:34===hn&&(Kn=!Kn);break;case vn:case 10:case 13:if(!Kn&&ti())break e}return en-Ze>0&&ti(),xe["!ref"]=gt(ce),xe}(L,ne):ua(function a(L,ne){var re=ne||{},fe=[];if(!L||0===L.length)return fe;for(var xe=L.split(/[\r\n]/),ce=xe.length-1;ce>=0&&0===xe[ce].length;)--ce;for(var be=10,Je=0,tt=0;tt<=ce;++tt)-1==(Je=xe[tt].indexOf(" "))?Je=xe[tt].length:Je++,be=Math.max(be,Je);for(tt=0;tt<=ce;++tt){fe[tt]=[];var Ze=0;for(n(xe[tt].slice(0,be).trim(),fe,tt,Ze,re),Ze=1;Ze<=(xe[tt].length-be)/10+1;++Ze)n(xe[tt].slice(be+10*(Ze-1),be+10*Ze).trim(),fe,tt,Ze,re)}return re.sheetRows&&(fe=fe.slice(0,re.sheetRows)),fe}(L,ne),ne)}function g(L,ne){var re="",fe="string"==ne.type?[0,0,0,0]:function T2(n,a){var t="";switch((a||{}).type||"base64"){case"buffer":case"array":return[n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]];case"base64":t=Ko(n.slice(0,12));break;case"binary":t=n;break;default:throw new Error("Unrecognized type "+(a&&a.type||"undefined"))}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3),t.charCodeAt(4),t.charCodeAt(5),t.charCodeAt(6),t.charCodeAt(7)]}(L,ne);switch(ne.type){case"base64":re=Ko(L);break;case"binary":case"string":re=L;break;case"buffer":re=65001==ne.codepage?L.toString("utf8"):ne.codepage&&typeof ia<"u"?ia.utils.decode(ne.codepage,L):Br&&Buffer.isBuffer(L)?L.toString("binary"):yd(L);break;case"array":re=Zl(L);break;default:throw new Error("Unrecognized type "+ne.type)}return 239==fe[0]&&187==fe[1]&&191==fe[2]?re=q(re.slice(3)):"string"!=ne.type&&"buffer"!=ne.type&&65001==ne.codepage?re=q(re):"binary"==ne.type&&typeof ia<"u"&&ne.codepage&&(re=ia.utils.decode(ne.codepage,ia.utils.encode(28591,re))),"socialcalc:version:"==re.slice(0,19)?vm.to_sheet("string"==ne.type?re:q(re),ne):p(re,ne)}return{to_workbook:function S(L,ne){return cr(g(L,ne),ne)},to_sheet:g,from_sheet:function R(L){for(var fe,ne=[],re=Ut(L["!ref"]),xe=Array.isArray(L),ce=re.s.r;ce<=re.e.r;++ce){for(var be=[],Je=re.s.c;Je<=re.e.c;++Je){var tt=ge({r:ce,c:Je});
1if((fe=xe?(L[ce]||[])[Je]:L[tt])&&null!=fe.v){for(var Ze=(fe.w||(ki(fe),fe.w)||"").slice(0,10);Ze.length<10;)Ze+=" ";be.push(Ze+(0===Je?" ":""))}else be.push(" ")}ne.push(be.join(""))}return ne.join("\n")}}}(),xh=function(){function n(Et,Vn,Wt){if(Et){go(Et,Et.l||0);for(var Gt=Wt.Enum||sa;Et.l<Et.length;){var pi=Et.read_shift(2),Cr=Gt[pi]||Gt[65535],tr=Et.read_shift(2),nr=Et.l+tr,Ti=Cr.f&&Cr.f(Et,tr,Wt);if(Et.l=nr,Vn(Ti,Cr,pi))return}}}function t(Et,Vn){if(!Et)return Et;var Wt=Vn||{};null!=Ma&&null==Wt.dense&&(Wt.dense=Ma);var Gt=Wt.dense?[]:{},pi="Sheet1",Cr="",tr=0,nr={},Ti=[],mo=[],Ft={s:{r:0,c:0},e:{r:0,c:0}},nl=Wt.sheetRows||0;if(0==Et[2]&&(8==Et[3]||9==Et[3])&&Et.length>=16&&5==Et[14]&&108===Et[15])throw new Error("Unsupported Works 3 for Mac file");if(2==Et[2])Wt.Enum=sa,n(Et,function(Fr,md,oh){switch(oh){case 0:Wt.vers=Fr,Fr>=4096&&(Wt.qpro=!0);break;case 6:Ft=Fr;break;case 204:Fr&&(Cr=Fr);break;case 222:Cr=Fr;break;case 15:case 51:Wt.qpro||(Fr[1].v=Fr[1].v.slice(1));case 13:case 14:case 16:14==oh&&!(112&~Fr[2])&&(15&Fr[2])>1&&(15&Fr[2])<15&&(Fr[1].z=Wt.dateNF||ct[14],Wt.cellDates&&(Fr[1].t="d",Fr[1].v=Da(Fr[1].v))),Wt.qpro&&Fr[3]>tr&&(Gt["!ref"]=gt(Ft),nr[pi]=Gt,Ti.push(pi),Gt=Wt.dense?[]:{},Ft={s:{r:0,c:0},e:{r:0,c:0}},tr=Fr[3],pi=Cr||"Sheet"+(tr+1),Cr="");var Xh=Wt.dense?(Gt[Fr[0].r]||[])[Fr[0].c]:Gt[ge(Fr[0])];if(Xh){Xh.t=Fr[1].t,Xh.v=Fr[1].v,null!=Fr[1].z&&(Xh.z=Fr[1].z),null!=Fr[1].f&&(Xh.f=Fr[1].f);break}Wt.dense?(Gt[Fr[0].r]||(Gt[Fr[0].r]=[]),Gt[Fr[0].r][Fr[0].c]=Fr[1]):Gt[ge(Fr[0])]=Fr[1]}},Wt);else{if(26!=Et[2]&&14!=Et[2])throw new Error("Unrecognized LOTUS BOF "+Et[2]);Wt.Enum=Ai,14==Et[2]&&(Wt.qpro=!0,Et.l=0),n(Et,function(Fr,md,oh){switch(oh){case 204:pi=Fr;break;case 22:Fr[1].v=Fr[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(Fr[3]>tr&&(Gt["!ref"]=gt(Ft),nr[pi]=Gt,Ti.push(pi),Gt=Wt.dense?[]:{},Ft={s:{r:0,c:0},e:{r:0,c:0}},pi="Sheet"+((tr=Fr[3])+1)),nl>0&&Fr[0].r>=nl)break;Wt.dense?(Gt[Fr[0].r]||(Gt[Fr[0].r]=[]),Gt[Fr[0].r][Fr[0].c]=Fr[1]):Gt[ge(Fr[0])]=Fr[1],Ft.e.c<Fr[0].c&&(Ft.e.c=Fr[0].c),Ft.e.r<Fr[0].r&&(Ft.e.r=Fr[0].r);break;case 27:Fr[14e3]&&(mo[Fr[14e3][0]]=Fr[14e3][1]);break;case 1537:mo[Fr[0]]=Fr[1],Fr[0]==tr&&(pi=Fr[1])}},Wt)}if(Gt["!ref"]=gt(Ft),nr[Cr||pi]=Gt,Ti.push(Cr||pi),!mo.length)return{SheetNames:Ti,Sheets:nr};for(var Lo={},il=[],No=0;No<mo.length;++No)nr[Ti[No]]?(il.push(mo[No]||Ti[No]),Lo[mo[No]]=nr[mo[No]]||nr[Ti[No]]):(il.push(mo[No]),Lo[mo[No]]={"!ref":"A1"});return{SheetNames:il,Sheets:Lo}}function R(Et,Vn,Wt){var Gt=[{c:0,r:0},{t:"n",v:0},0,0];return Wt.qpro&&20768!=Wt.vers?(Gt[0].c=Et.read_shift(1),Gt[3]=Et.read_shift(1),Gt[0].r=Et.read_shift(2),Et.l+=2):(Gt[2]=Et.read_shift(1),Gt[0].c=Et.read_shift(2),Gt[0].r=Et.read_shift(2)),Gt}function L(Et,Vn,Wt){var Gt=Et.l+Vn,pi=R(Et,0,Wt);if(pi[1].t="s",20768==Wt.vers){Et.l++;var Cr=Et.read_shift(1);return pi[1].v=Et.read_shift(Cr,"utf8"),pi}return Wt.qpro&&Et.l++,pi[1].v=Et.read_shift(Gt-Et.l,"cstr"),pi}function ne(Et,Vn,Wt){var Gt=Rn(7+Wt.length);Gt.write_shift(1,255),Gt.write_shift(2,Vn),Gt.write_shift(2,Et),Gt.write_shift(1,39);for(var pi=0;pi<Gt.length;++pi){var Cr=Wt.charCodeAt(pi);Gt.write_shift(1,Cr>=128?95:Cr)}return Gt.write_shift(1,0),Gt}function fe(Et,Vn,Wt){var Gt=Rn(7);return Gt.write_shift(1,255),Gt.write_shift(2,Vn),Gt.write_shift(2,Et),Gt.write_shift(2,Wt,"i"),Gt}function ce(Et,Vn,Wt){var Gt=Rn(13);return Gt.write_shift(1,255),Gt.write_shift(2,Vn),Gt.write_shift(2,Et),Gt.write_shift(8,Wt,"f"),Gt}function Je(Et,Vn,Wt){var Gt=32768&Vn;return Vn=(Gt?Et:0)+((Vn&=-32769)>=8192?Vn-16384:Vn),(Gt?"":"$")+(Wt?Za(Vn):vs(Vn))}var tt={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},Ze=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function vn(Et){var Vn=[{c:0,r:0},{t:"n",v:0},0];return Vn[0].r=Et.read_shift(2),Vn[3]=Et[Et.l++],Vn[0].c=Et[Et.l++],Vn}function Tt(Et,Vn,Wt,Gt){var pi=Rn(6+Gt.length);pi.write_shift(2,Et),pi.write_shift(1,Wt),pi.write_shift(1,Vn),pi.write_shift(1,39);for(var Cr=0;Cr<Gt.length;++Cr){var tr=Gt.charCodeAt(Cr);pi.write_shift(1,tr>=128?95:tr)}return pi.write_shift(1,0),pi}function on(Et,Vn){var Wt=vn(Et),Gt=Et.read_shift(4),pi=Et.read_shift(4),Cr=Et.read_shift(2);if(65535==Cr)return 0===Gt&&3221225472===pi?(Wt[1].t="e",Wt[1].v=15):0===Gt&&3489660928===pi?(Wt[1].t="e",Wt[1].v=42):Wt[1].v=0,Wt;var tr=32768&Cr;return Cr=(32767&Cr)-16446,Wt[1].v=(1-2*tr)*(pi*Math.pow(2,Cr+32)+Gt*Math.pow(2,Cr)),Wt}function ti(Et,Vn,Wt,Gt){var pi=Rn(14);if(pi.write_shift(2,Et),pi.write_shift(1,Wt),pi.write_shift(1,Vn),0==Gt)return pi.write_shift(4,0),pi.write_shift(4,0),pi.write_shift(2,65535),pi;var Cr=0,tr=0,Ti=0;return Gt<0&&(Cr=1,Gt=-Gt),tr=0|Math.log2(Gt),2147483648&(Ti=(Gt/=Math.pow(2,tr-31))>>>0)||(++tr,Ti=(Gt/=2)>>>0),Gt-=Ti,Ti|=2147483648,Ti>>>=0,Gt*=Math.pow(2,32),pi.write_shift(4,Gt>>>0),pi.write_shift(4,Ti),pi.write_shift(2,tr+=16383+(Cr?32768:0)),pi}function Yi(Et,Vn){var Wt=vn(Et),Gt=Et.read_shift(8,"f");return Wt[1].v=Gt,Wt}function ar(Et,Vn){return 0==Et[Et.l+Vn-1]?Et.read_shift(Vn,"cstr"):""}function pr(Et,Vn){var Wt=Rn(5+Et.length);Wt.write_shift(2,14e3),Wt.write_shift(2,Vn);for(var Gt=0;Gt<Et.length;++Gt){var pi=Et.charCodeAt(Gt);Wt[Wt.l++]=pi>127?95:pi}return Wt[Wt.l++]=0,Wt}var sa={0:{n:"BOF",f:Tl},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function g(Et,Vn,Wt){var Gt={s:{c:0,r:0},e:{c:0,r:0}};return 8==Vn&&Wt.qpro?(Gt.s.c=Et.read_shift(1),Et.l++,Gt.s.r=Et.read_shift(2),Gt.e.c=Et.read_shift(1),Et.l++,Gt.e.r=Et.read_shift(2),Gt):(Gt.s.c=Et.read_shift(2),Gt.s.r=Et.read_shift(2),12==Vn&&Wt.qpro&&(Et.l+=2),Gt.e.c=Et.read_shift(2),Gt.e.r=Et.read_shift(2),12==Vn&&Wt.qpro&&(Et.l+=2),65535==Gt.s.c&&(Gt.s.c=Gt.e.c=Gt.s.r=Gt.e.r=0),Gt)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function re(Et,Vn,Wt){var Gt=R(Et,0,Wt);return Gt[1].v=Et.read_shift(2,"i"),Gt}},14:{n:"NUMBER",f:function xe(Et,Vn,Wt){var Gt=R(Et,0,Wt);return Gt[1].v=Et.read_shift(8,"f"),Gt}},15:{n:"LABEL",f:L},16:{n:"FORMULA",f:function be(Et,Vn,Wt){var Gt=Et.l+Vn,pi=R(Et,0,Wt);if(pi[1].v=Et.read_shift(8,"f"),Wt.qpro)Et.l=Gt;else{var Cr=Et.read_shift(2);(function en(Et,Vn){go(Et,0);for(var Wt=[],Gt=0,pi="",Cr="",tr="",nr="";Et.l<Et.length;){var Ti=Et[Et.l++];switch(Ti){case 0:Wt.push(Et.read_shift(8,"f"));break;case 1:Cr=Je(Vn[0].c,Et.read_shift(2),!0),pi=Je(Vn[0].r,Et.read_shift(2),!1),Wt.push(Cr+pi);break;case 2:var mo=Je(Vn[0].c,Et.read_shift(2),!0),Ft=Je(Vn[0].r,Et.read_shift(2),!1);Cr=Je(Vn[0].c,Et.read_shift(2),!0),pi=Je(Vn[0].r,Et.read_shift(2),!1),Wt.push(mo+Ft+":"+Cr+pi);break;case 3:if(Et.l<Et.length)return void console.error("WK1 premature formula end");break;
vendor: 3,569 bytes, line 1
1case 4:Wt.push("("+Wt.pop()+")");break;case 5:Wt.push(Et.read_shift(2));break;case 6:for(var nl="";Ti=Et[Et.l++];)nl+=String.fromCharCode(Ti);Wt.push('"'+nl.replace(/"/g,'""')+'"');break;case 8:Wt.push("-"+Wt.pop());break;case 23:Wt.push("+"+Wt.pop());break;case 22:Wt.push("NOT("+Wt.pop()+")");break;case 20:case 21:nr=Wt.pop(),tr=Wt.pop(),Wt.push(["AND","OR"][Ti-20]+"("+tr+","+nr+")");break;default:if(Ti<32&&Ze[Ti])nr=Wt.pop(),tr=Wt.pop(),Wt.push(tr+Ze[Ti]+nr);else{if(!tt[Ti])return Ti<=7?console.error("WK1 invalid opcode "+Ti.toString(16)):Ti<=24?console.error("WK1 unsupported op "+Ti.toString(16)):Ti<=30?console.error("WK1 invalid opcode "+Ti.toString(16)):Ti<=115?console.error("WK1 unsupported function opcode "+Ti.toString(16)):console.error("WK1 unrecognized opcode "+Ti.toString(16));if(69==(Gt=tt[Ti][1])&&(Gt=Et[Et.l++]),Gt>Wt.length)return void console.error("WK1 bad formula parse 0x"+Ti.toString(16)+":|"+Wt.join("|")+"|");var Lo=Wt.slice(-Gt);Wt.length-=Gt,Wt.push(tt[Ti][0]+"("+Lo.join(",")+")")}}}1==Wt.length?Vn[1].f=""+Wt[0]:console.error("WK1 bad formula parse |"+Wt.join("|")+"|")})(Et.slice(Et.l,Et.l+Cr),pi),Et.l+=Cr}return pi}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:L},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:ar},222:{n:"SHEETNAMELP",f:function fa(Et,Vn){var Wt=Et[Et.l++];Wt>Vn-1&&(Wt=Vn-1);for(var Gt="";Gt.length<Wt;)Gt+=String.fromCharCode(Et[Et.l++]);return Gt}},65535:{n:""}},Ai={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:function Kn(Et,Vn){var Wt=vn(Et);return Wt[1].t="s",Wt[1].v=Et.read_shift(Vn-4,"cstr"),Wt}},23:{n:"NUMBER17",f:on},24:{n:"NUMBER18",f:function hn(Et,Vn){var Wt=vn(Et);Wt[1].v=Et.read_shift(2);var Gt=Wt[1].v>>1;if(1&Wt[1].v)switch(7&Gt){case 0:Gt=5e3*(Gt>>3);break;case 1:Gt=500*(Gt>>3);break;case 2:Gt=(Gt>>3)/20;break;case 3:Gt=(Gt>>3)/200;break;case 4:Gt=(Gt>>3)/2e3;break;case 5:Gt=(Gt>>3)/2e4;break;case 6:Gt=(Gt>>3)/16;break;case 7:Gt=(Gt>>3)/64}return Wt[1].v=Gt,Wt}},25:{n:"FORMULA19",f:function ni(Et,Vn){var Wt=on(Et);return Et.l+=Vn-14,Wt}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function ao(Et,Vn){for(var Wt={},Gt=Et.l+Vn;Et.l<Gt;){var pi=Et.read_shift(2);if(14e3==pi){for(Wt[pi]=[0,""],Wt[pi][0]=Et.read_shift(2);Et[Et.l];)Wt[pi][1]+=String.fromCharCode(Et[Et.l]),Et.l++;Et.l++}}return Wt}},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:function cn(Et,Vn){var Wt=vn(Et),Gt=Et.read_shift(4);return Wt[1].v=Gt>>6,Wt}},38:{n:"??"}
1,39:{n:"NUMBER27",f:Yi},40:{n:"FORMULA28",f:function Tr(Et,Vn){var Wt=Yi(Et);return Et.l+=Vn-10,Wt}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:ar},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function Ir(Et,Vn,Wt){if(Wt.qpro&&!(Vn<21)){var Gt=Et.read_shift(1);return Et.l+=17,Et.l+=1,Et.l+=2,[Gt,Et.read_shift(Vn-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function r(Et,Vn){var Wt=Vn||{};if(+Wt.codepage>=0&&ko(+Wt.codepage),"string"==Wt.type)throw new Error("Cannot write WK1 to JS string");var Gt=Ks(),pi=Ut(Et["!ref"]),Cr=Array.isArray(Et),tr=[];rr(Gt,0,function s(Et){var Vn=Rn(2);return Vn.write_shift(2,Et),Vn}(1030)),rr(Gt,6,function S(Et){var Vn=Rn(8);return Vn.write_shift(2,Et.s.c),Vn.write_shift(2,Et.s.r),Vn.write_shift(2,Et.e.c),Vn.write_shift(2,Et.e.r),Vn}(pi));for(var nr=Math.min(pi.e.r,8191),Ti=pi.s.r;Ti<=nr;++Ti)for(var mo=vs(Ti),Ft=pi.s.c;Ft<=pi.e.c;++Ft){Ti===pi.s.r&&(tr[Ft]=Za(Ft));var Lo=Cr?(Et[Ti]||[])[Ft]:Et[tr[Ft]+mo];Lo&&"z"!=Lo.t&&("n"==Lo.t?(0|Lo.v)==Lo.v&&Lo.v>=-32768&&Lo.v<=32767?rr(Gt,13,fe(Ti,Ft,Lo.v)):rr(Gt,14,ce(Ti,Ft,Lo.v)):rr(Gt,15,ne(Ti,Ft,ki(Lo).slice(0,239))))}return rr(Gt,1),Gt.end()},book_to_wk3:function i(Et,Vn){var Wt=Vn||{};if(+Wt.codepage>=0&&ko(+Wt.codepage),"string"==Wt.type)throw new Error("Cannot write WK3 to JS string");var Gt=Ks();rr(Gt,0,function p(Et){var Vn=Rn(26);Vn.write_shift(2,4096),Vn.write_shift(2,4),Vn.write_shift(4,0);for(var Wt=0,Gt=0,pi=0,Cr=0;Cr<Et.SheetNames.length;++Cr){var nr=Et.Sheets[Et.SheetNames[Cr]];if(nr&&nr["!ref"]){++pi;var Ti=rt(nr["!ref"]);Wt<Ti.e.r&&(Wt=Ti.e.r),Gt<Ti.e.c&&(Gt=Ti.e.c)}}return Wt>8191&&(Wt=8191),Vn.write_shift(2,Wt),Vn.write_shift(1,pi),Vn.write_shift(1,Gt),Vn.write_shift(2,0),Vn.write_shift(2,0),Vn.write_shift(1,1),Vn.write_shift(1,2),Vn.write_shift(4,0),Vn.write_shift(4,0),Vn}(Et));for(var pi=0,Cr=0;pi<Et.SheetNames.length;++pi)(Et.Sheets[Et.SheetNames[pi]]||{})["!ref"]&&rr(Gt,27,pr(Et.SheetNames[pi],Cr++));var tr=0;for(pi=0;pi<Et.SheetNames.length;++pi){var nr=Et.Sheets[Et.SheetNames[pi]];if(nr&&nr["!ref"]){for(var Ti=Ut(nr["!ref"]),mo=Array.isArray(nr),Ft=[],nl=Math.min(Ti.e.r,8191),Lo=Ti.s.r;Lo<=nl;++Lo)for(var il=vs(Lo),No=Ti.s.c;No<=Ti.e.c;++No){Lo===Ti.s.r&&(Ft[No]=Za(No));var md=mo?(nr[Lo]||[])[No]:nr[Ft[No]+il];md&&"z"!=md.t&&("n"==md.t?rr(Gt,23,ti(Lo,No,tr,md.v)):rr(Gt,22,Tt(Lo,No,tr,ki(md).slice(0,239))))}++tr}}return rr(Gt,1),Gt.end()},to_workbook:function a(Et,Vn){switch(Vn.type){case"base64":return t(ss(Ko(Et)),Vn);case"binary":return t(ss(Et),Vn);case"buffer":case"array":return t(Et,Vn)}throw"Unsupported type "+Vn.type}}}(),rs=/^\s|\s$|[\t\n\r]/;function Bg(n,a){if(!a.bookSST)return"";var t=[Gr];t[t.length]=_n("sst",null,{xmlns:Ga[0],count:n.Count,uniqueCount:n.Unique});for(var r=0;r!=n.length;++r)if(null!=n[r]){var i=n[r],s="<si>";i.r?s+=i.r:(s+="<t",i.t||(i.t=""),i.t.match(rs)&&(s+=' xml:space="preserve"'),s+=">"+Ja(i.t)+"</t>"),t[t.length]=s+="</si>"}return t.length>2&&(t[t.length]="</sst>",t[1]=t[1].replace("/>",">")),t.join("")}var O0=function Bc(n,a){var t=!1;return null==a&&(t=!0,a=Rn(15+4*n.t.length)),a.write_shift(1,0),ta(n.t,a),t?a.slice(0,a.l):a};function P1(n){var a=Ks();mi(a,159,function M0(n,a){return a||(a=Rn(8)),a.write_shift(4,n.Count),a.write_shift(4,n.Unique),a}(n));for(var t=0;t<n.length;++t)mi(a,19,O0(n[t]));return mi(a,160),a.end()}function pc(n){var t,s,a=0,r=function Vg(n){if(typeof ia<"u")return ia.utils.encode(Co,n);for(var a=[],t=n.split(""),r=0;r<t.length;++r)a[r]=t[r].charCodeAt(0);return a}(n),i=r.length+1;for((t=ya(i))[0]=r.length,s=1;s!=i;++s)t[s]=r[s-1];for(s=i-1;s>=0;--s)a=((16384&a?1:0)|a<<1&32767)^t[s];return 52811^a}var G0=function(){function n(i,s){switch(s.type){case"base64":return a(Ko(i),s);case"binary":return a(i,s);case"buffer":return a(Br&&Buffer.isBuffer(i)?i.toString("binary"):yd(i),s);case"array":return a(Zl(i),s)}throw new Error("Unrecognized type "+s.type)}function a(i,s){var g=(s||{}).dense?[]:{},S=i.match(/\\trowd.*?\\row\b/g);
1if(!S.length)throw new Error("RTF missing table");var R={s:{c:0,r:0},e:{c:0,r:S.length-1}};return S.forEach(function(L,ne){Array.isArray(g)&&(g[ne]=[]);for(var xe,re=/\\\w+\b/g,fe=0,ce=-1;xe=re.exec(L);){if("\\cell"===xe[0]){var be=L.slice(fe,re.lastIndex-xe[0].length);if(" "==be[0]&&(be=be.slice(1)),++ce,be.length){var Je={v:be,t:"s"};Array.isArray(g)?g[ne][ce]=Je:g[ge({r:ne,c:ce})]=Je}}fe=re.lastIndex}ce>R.e.c&&(R.e.c=ce)}),g["!ref"]=gt(R),g}return{to_workbook:function t(i,s){return cr(n(i,s),s)},to_sheet:n,from_sheet:function r(i){for(var g,s=["{\\rtf1\\ansi"],p=Ut(i["!ref"]),S=Array.isArray(i),R=p.s.r;R<=p.e.r;++R){s.push("\\trowd\\trautofit1");for(var L=p.s.c;L<=p.e.c;++L)s.push("\\cellx"+(L+1));for(s.push("\\pard\\intbl"),L=p.s.c;L<=p.e.c;++L){var ne=ge({r:R,c:L});(g=S?(i[R]||[])[L]:i[ne])&&(null!=g.v||g.f&&!g.F)&&(s.push(" "+(g.w||(ki(g),g.w))),s.push("\\cell"))}s.push("\\pard\\intbl\\row")}return s.join("")+"}"}}}();function zh(n){for(var a=0,t=1;3!=a;++a)t=256*t+(n[a]>255?255:n[a]<0?0:n[a]);return t.toString(16).toUpperCase().slice(1)}var Rd=6;function xm(n){return Math.floor((n+Math.round(128/Rd)/256)*Rd)}function bm(n){return Math.floor((n-5)/Rd*100+.5)/100}function Lp(n){return Math.round((n*Rd+5)/Rd*256)/256}function Qp(n){n.width?(n.wpx=xm(n.width),n.wch=bm(n.wpx),n.MDW=Rd):n.wpx?(n.wch=bm(n.wpx),n.width=Lp(n.wch),n.MDW=Rd):"number"==typeof n.wch&&(n.width=Lp(n.wch),n.wpx=xm(n.width),n.MDW=Rd),n.customWidth&&delete n.customWidth}var Wg=96;function Uh(n){return 96*n/Wg}function ym(n){return n*Wg/96}function $g(n,a){var r,t=[Gr,_n("styleSheet",null,{xmlns:Ga[0],"xmlns:vt":Or.vt})];return n.SSF&&null!=(r=function $0(n){var a=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(var r=t[0];r<=t[1];++r)null!=n[r]&&(a[a.length]=_n("numFmt",null,{numFmtId:r,formatCode:Ja(n[r])}))}),1===a.length?"":(a[a.length]="</numFmts>",a[0]=_n("numFmts",null,{count:a.length-2}).replace("/>",">"),a.join(""))}(n.SSF))&&(t[t.length]=r),t[t.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',t[t.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',t[t.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',t[t.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(r=function q0(n){var a=[];return a[a.length]=_n("cellXfs",null),n.forEach(function(t){a[a.length]=_n("xf",null,t)}),a[a.length]="</cellXfs>",2===a.length?"":(a[0]=_n("cellXfs",null,{count:a.length-2}).replace("/>",">"),a.join(""))}(a.cellXfs))&&(t[t.length]=r),t[t.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',t[t.length]='<dxfs count="0"/>',t[t.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',t.length>2&&(t[t.length]="</styleSheet>",t[1]=t[1].replace("/>",">")),t.join("")}function Cm(n,a,t){t||(t=Rn(6+4*a.length)),t.write_shift(2,n),ta(a,t);var r=t.length>t.l?t.slice(0,t.l):t;return null==t.l&&(t.l=t.length),r}var xg,H1=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],K1=ul;function qg(n,a){a||(a=Rn(84)),xg||(xg=zi(H1));var t=xg[n.patternType];null==t&&(t=40),a.write_shift(4,t);var r=0;if(40!=t)for(ic({auto:1},a),ic({auto:1},a);r<12;++r)a.write_shift(4,0);else{for(;r<4;++r)a.write_shift(4,0);for(;r<12;++r)a.write_shift(4,0)}return a.length>a.l?a.slice(0,a.l):a}function X0(n,a,t){return t||(t=Rn(16)),t.write_shift(2,a||0),t.write_shift(2,n.numFmtId||0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(1,0),t}function Zm(n,a){return a||(a=Rn(10)),a.write_shift(1,0),a.write_shift(1,0),a.write_shift(4,0),a.write_shift(4,0),a}var Z1=ul;function n_(n,a){var t=Ks();return mi(t,278),function J0(n,a){if(a){var t=0;
1[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var i=r[0];i<=r[1];++i)null!=a[i]&&++t}),0!=t&&(mi(n,615,ga(t)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var i=r[0];i<=r[1];++i)null!=a[i]&&mi(n,44,Cm(i,a[i]))}),mi(n,616))}}(t,n.SSF),function Q1(n){mi(n,611,ga(1)),mi(n,43,function X1(n,a){a||(a=Rn(153)),a.write_shift(2,20*n.sz),function qu(n,a){a||(a=Rn(2)),a.write_shift(1,(n.italic?2:0)|(n.strike?8:0)|(n.outline?16:0)|(n.shadow?32:0)|(n.condense?64:0)|(n.extend?128:0)),a.write_shift(1,0)}(n,a),a.write_shift(2,n.bold?700:400);var t=0;"superscript"==n.vertAlign?t=1:"subscript"==n.vertAlign&&(t=2),a.write_shift(2,t),a.write_shift(1,n.underline||0),a.write_shift(1,n.family||0),a.write_shift(1,n.charset||0),a.write_shift(1,0),ic(n.color,a);var r=0;return"major"==n.scheme&&(r=1),"minor"==n.scheme&&(r=2),a.write_shift(1,r),ta(n.name,a),a.length>a.l?a.slice(0,a.l):a}({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),mi(n,612)}(t),function e_(n){mi(n,603,ga(2)),mi(n,45,qg({patternType:"none"})),mi(n,45,qg({patternType:"gray125"})),mi(n,604)}(t),function Kg(n){mi(n,613,ga(1)),mi(n,46,function H0(n,a){return a||(a=Rn(51)),a.write_shift(1,0),Zm(0,a),Zm(0,a),Zm(0,a),Zm(0,a),Zm(0,a),a.length>a.l?a.slice(0,a.l):a}()),mi(n,614)}(t),function Z0(n){mi(n,626,ga(1)),mi(n,47,X0({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),mi(n,627)}(t),function t_(n,a){mi(n,617,ga(a.length)),a.forEach(function(t){mi(n,47,X0(t,0))}),mi(n,618)}(t,a.cellXfs),function Q0(n){mi(n,619,ga(1)),mi(n,48,function Xg(n,a){return a||(a=Rn(52)),a.write_shift(4,n.xfId),a.write_shift(2,1),a.write_shift(1,+n.builtinId),a.write_shift(1,0),Tc(n.name||"",a),a.length>a.l?a.slice(0,a.l):a}({xfId:0,builtinId:0,name:"Normal"})),mi(n,620)}(t),function ef(n){mi(n,505,ga(0)),mi(n,506)}(t),function Jg(n){mi(n,508,function Hg(n,a,t){var r=Rn(2052);return r.write_shift(4,n),Tc(a,r),Tc(t,r),r.length>r.l?r.slice(0,r.l):r}(0,"TableStyleMedium9","PivotStyleMedium4")),mi(n,509)}(t),mi(t,279),t.end()}function yg(n,a){if(a&&a.themeXLSX)return a.themeXLSX;if(n&&"string"==typeof n.raw)return n.raw;var t=[Gr];return t[t.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',t[t.length]="<a:themeElements>",t[t.length]='<a:clrScheme name="Office">',t[t.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',t[t.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',t[t.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',t[t.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',t[t.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',t[t.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',t[t.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',t[t.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',t[t.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',t[t.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',t[t.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',t[t.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',t[t.length]="</a:clrScheme>",t[t.length]='<a:fontScheme name="Office">',t[t.length]="<a:majorFont>",t[t.length]='<a:latin typeface="Cambria"/>',t[t.length]='<a:ea typeface=""/>',t[t.length]='<a:cs typeface=""/>',t[t.length]='<a:font script="Jpan" typeface="\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"/>',t[t.length]='<a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/>',t[t.length]='<a:font script="Hans" typeface="\u5b8b\u4f53"/>',t[t.length]='<a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/>',t[t.length]='<a:font script="Arab" typeface="Times New Roman"/>',t[t.length]='<a:font script="Hebr" typeface="Times New Roman"/>',t[t.length]='<a:font script="Thai" typeface="Tahoma"/>',t[t.length]='<a:font script="Ethi" typeface="Nyala"/>',t[t.length]='<a:font script="Beng" typeface="Vrinda"/>',t[t.length]='<a:font script="Gujr" typeface="Shruti"/>',t[t.length]='<a:font script="Khmr" typeface="MoolBoran"/>',t[t.length]='<a:font script="Knda" typeface="Tunga"/>',t[t.length]='<a:font script="Guru" typeface="Raavi"/>
1',t[t.length]='<a:font script="Cans" typeface="Euphemia"/>',t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>',t[t.length]='<a:font script="Deva" typeface="Mangal"/>',t[t.length]='<a:font script="Telu" typeface="Gautami"/>',t[t.length]='<a:font script="Taml" typeface="Latha"/>',t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',t[t.length]='<a:font script="Orya" typeface="Kalinga"/>',t[t.length]='<a:font script="Mlym" typeface="Kartika"/>',t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>',t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',t[t.length]='<a:font script="Viet" typeface="Times New Roman"/>',t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>',t[t.length]="</a:majorFont>",t[t.length]="<a:minorFont>",t[t.length]='<a:latin typeface="Calibri"/>',t[t.length]='<a:ea typeface=""/>',t[t.length]='<a:cs typeface=""/>',t[t.length]='<a:font script="Jpan" typeface="\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"/>',t[t.length]='<a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/>',t[t.length]='<a:font script="Hans" typeface="\u5b8b\u4f53"/>',t[t.length]='<a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/>',t[t.length]='<a:font script="Arab" typeface="Arial"/>',t[t.length]='<a:font script="Hebr" typeface="Arial"/>',t[t.length]='<a:font script="Thai" typeface="Tahoma"/>',t[t.length]='<a:font script="Ethi" typeface="Nyala"/>',t[t.length]='<a:font script="Beng" typeface="Vrinda"/>',t[t.length]='<a:font script="Gujr" typeface="Shruti"/>',t[t.length]='<a:font script="Khmr" typeface="DaunPenh"/>',t[t.length]='<a:font script="Knda" typeface="Tunga"/>',t[t.length]='<a:font script="Guru" typeface="Raavi"/>',t[t.length]='<a:font script="Cans" typeface="Euphemia"/>',t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>',t[t.length]='<a:font script="Deva" typeface="Mangal"/>',t[t.length]='<a:font script="Telu" typeface="Gautami"/>',t[t.length]='<a:font script="Taml" typeface="Latha"/>',t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',t[t.length]='<a:font script="Orya" typeface="Kalinga"/>',t[t.length]='<a:font script="Mlym" typeface="Kartika"/>',t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>',t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',t[t.length]='<a:font script="Viet" typeface="Arial"/>',t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>',t[t.length]="</a:minorFont>",t[t.length]="</a:fontScheme>",t[t.length]='<a:fmtScheme name="Office">',t[t.length]="<a:fillStyleLst>",t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:lin ang="16200000" scaled="1"/>',t[t.length]="</a:gradFill>",t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>
1",t[t.length]='<a:lin ang="16200000" scaled="0"/>',t[t.length]="</a:gradFill>",t[t.length]="</a:fillStyleLst>",t[t.length]="<a:lnStyleLst>",t[t.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]="</a:lnStyleLst>",t[t.length]="<a:effectStyleLst>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]="</a:effectStyle>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]="</a:effectStyle>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',t[t.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',t[t.length]="</a:effectStyle>",t[t.length]="</a:effectStyleLst>",t[t.length]="<a:bgFillStyleLst>",t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',t[t.length]="</a:gradFill>",t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',t[t.length]="</a:gradFill>",t[t.length]="</a:bgFillStyleLst>",t[t.length]="</a:fmtScheme>",t[t.length]="</a:themeElements>",t[t.length]="<a:objectDefaults>",t[t.length]="<a:spDef>",t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',t[t.length]="</a:spDef>",t[t.length]="<a:lnDef>",t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',t[t.length]="</a:lnDef>",t[t.length]="</a:objectDefaults>",t[t.length]="<a:extraClrSchemeLst/>",t[t.length]="</a:theme>",t.join("")}function a1(){var n=Ks();return mi(n,332),mi(n,334,ga(1)),mi(n,335,function n1(n){var a=Rn(12+2*n.name.length);return a.write_shift(4,n.flags),a.write_shift(4,n.version),ta(n.name,a),a.slice(0,a.l)}({name:"XLDAPR",version:12e4,flags:3496657072})),mi(n,336),mi(n,339,function g_(n,a){var t=Rn(8+2*a.length);return t.write_shift(4,n),ta(a,t),t.slice(0,t.l)}(1,"XLDAPR")),mi(n,52),mi(n,35,ga(514)),mi(n,4096,ga(0)),mi(n,4097,wu(1)),mi(n,36),mi(n,53),mi(n,340),mi(n,337,function r1(n,a){var t=Rn(8);return t.write_shift(4,n),t.write_shift(4,a?1:0),t}(1,!0)),mi(n,51,function i1(n){var a=Rn(4+8*n.length);a.write_shift(4,n.length);for(var t=0;t<n.length;++t)a.write_shift(4,n[t][0]),a.write_shift(4,n[t][1]);return a}
vendor: 2,916 bytes, line 1
1([[1,0]])),mi(n,338),mi(n,333),n.end()}function t0(){var n=[Gr];return n.push('<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">\n <metadataTypes count="1">\n <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>\n </metadataTypes>\n <futureMetadata name="XLDAPR" count="1">\n <bk>\n <extLst>\n <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">\n <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>\n </ext>\n </extLst>\n </bk>\n </futureMetadata>\n <cellMetadata count="1">\n <bk>\n <rc t="1" v="0"/>\n </bk>\n </cellMetadata>\n</metadata>'),n.join("")}var m=1024;function b(n,a){for(var t=[21600,21600],r=["m0,0l0",t[1],t[0],t[1],t[0],"0xe"].join(","),i=[_n("xml",null,{"xmlns:v":ka.v,"xmlns:o":ka.o,"xmlns:x":ka.x,"xmlns:mv":ka.mv}).replace(/\/>/,">"),_n("o:shapelayout",_n("o:idmap",null,{"v:ext":"edit",data:n}),{"v:ext":"edit"}),_n("v:shapetype",[_n("v:stroke",null,{joinstyle:"miter"}),_n("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:t.join(","),path:r})];m<1e3*n;)m+=1e3;return a.forEach(function(s){var p=z(s[0]),g={color2:"#BEFF82",type:"gradient"};"gradient"==g.type&&(g.angle="-180");var S="gradient"==g.type?_n("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,R=_n("v:fill",S,g);++m,i=i.concat(["<v:shape"+Hn({id:"_x0000_s"+m,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(s[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",R,_n("v:shadow",null,{on:"t",obscured:"t"}),_n("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",zt("x:Anchor",[p.c+1,0,p.r+1,0,p.c+3,20,p.r+5,20].join(",")),zt("x:AutoFill","False"),zt("x:Row",String(p.r)),zt("x:Column",String(p.c)),s[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),i.push("</xml>"),i.join("")}function Ce(n){var a=[Gr,_n("comments",null,{xmlns:Ga[0]})],t=[];return a.push("<authors>"),n.forEach(function(r){r[1].forEach(function(i){var s=Ja(i.a);-1==t.indexOf(s)&&(t.push(s),a.push("<author>"+s+"</author>")),i.T&&i.ID&&-1==t.indexOf("tc="+i.ID)&&(t.push("tc="+i.ID),a.push("<author>tc="+i.ID+"</author>"))})}),0==t.length&&(t.push("SheetJ5"),a.push("<author>SheetJ5</author>")),a.push("</authors>"),a.push("<commentList>"),n.forEach(function(r){var i=0,s=[];if(r[1][0]&&r[1][0].T&&r[1][0].ID?i=t.indexOf("tc="+r[1][0].ID):r[1].forEac
1h(function(S){S.a&&(i=t.indexOf(Ja(S.a))),s.push(S.t||"")}),a.push('<comment ref="'+r[0]+'" authorId="'+i+'"><text>'),s.length<=1)a.push(zt("t",Ja(s[0]||"")));else{for(var p="Comment:\n "+s[0]+"\n",g=1;g<s.length;++g)p+="Reply:\n "+s[g]+"\n";a.push(zt("t",Ja(p)))}a.push("</text></comment>")}),a.push("</commentList>"),a.length>2&&(a[a.length]="</comments>",a[1]=a[1].replace("/>",">")),a.join("")}function Ct(n,a,t){var r=[Gr,_n("ThreadedComments",null,{xmlns:Or.TCMNT}).replace(/[\/]>/,">")];return n.forEach(function(i){var s="";(i[1]||[]).forEach(function(p,g){if(p.T){p.a&&-1==a.indexOf(p.a)&&a.push(p.a);var S={ref:i[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+t.tcid++).slice(-12)+"}"};0==g?s=S.id:S.parentId=s,p.ID=S.id,p.a&&(S.personId="{54EE7950-7262-4200-6969-"+("000000000000"+a.indexOf(p.a)).slice(-12)+"}"),r.push(_n("threadedComment",zt("text",p.t||""),S))}else delete p.ID})}),r.push("</ThreadedComments>"),r.join("")}var Fi=Qa;function va(n){var a=Ks(),t=[];return mi(a,628),mi(a,630),n.forEach(function(r){r[1].forEach(function(i){t.indexOf(i.a)>-1||(t.push(i.a.slice(0,54)),mi(a,632,function _r(n){return ta(n.slice(0,54))}(i.a)))})}),mi(a,631),mi(a,633),n.forEach(function(r){r[1].forEach(function(i){i.iauthor=t.indexOf(i.a);var s={s:z(r[0]),e:z(r[0])};mi(a,635,function vi(n,a){return null==a&&(a=Rn(36)),a.write_shift(4,n[1].iauthor),Nl(n[0],a),a.write_shift(4,0),a.write_shift(4,0),a.write_shift(4,0),a.write_shift(4,0),a}([s,i])),i.t&&i.t.length>0&&mi(a,637,function Yu(n,a){var t=!1;return null==a&&(t=!0,a=Rn(23+4*n.t.length)),a.write_shift(1,1),ta(n.t,a),a.write_shift(4,1),function tc(n,a){a||(a=Rn(4)),a.write_shift(2,n.ich||0),a.write_shift(2,n.ifnt||0)}({ich:0,ifnt:0},a),t?a.slice(0,a.l):a}(i)),mi(a,636),delete i.iauthor})}),mi(a,634),mi(a,629),a.end()}var xo=["xlsb","xlsm","xlam","biff8","xla"],su=function(){var n=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,a={r:0,c:0};function t(r,i,s,p){var g=!1,S=!1;0==s.length?S=!0:"["==s.charAt(0)&&(S=!0,s=s.slice(1,-1)),0==p.length?g=!0:"["==p.charAt(0)&&(g=!0,p=p.slice(1,-1));var R=s.length>0?0|parseInt(s,10):0,L=p.length>0?0|parseInt(p,10):0;return g?L+=a.c:--L,S?R+=a.r:--R,i+(g?"":"$")+Za(L)+(S?"":"$")+vs(R)}return function(i,s){return a=s,i.replace(n,t)}}(),xp=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,kg=function(){return function(a,t){return a.replace(xp,function(r,i,s,p,g,S){var R=jf(p)-(s?0:t.c),L=rp(S)-(g?0:t.r);return i+"R"+(0==L?"":g?L+1:"["+L+"]")+"C"+(0==R?"":s?R+1:"["+R+"]")})}}();function w_(n,a){return n.replace(xp,function(t,r,i,s,p,g){return r+("$"==i?i+s:Za(jf(s)+a.c))+("$"==p?p+g:vs(rp(g)+a.r))})}function fd(n){n.l+=1}function km(n,a){var t=n.read_shift(1==a?1:2);return[16383&t,t>>14&1,t>>15&1]}function mv(n,a,t){var r=2;if(t){if(t.biff>=2&&t.biff<=5)return F_(n);12==t.biff&&(r=4)}var i=n.read_shift(r),s=n.read_shift(r),p=km(n,2),g=km(n,2);return{s:{r:i,c:p[0],cRel:p[1],rRel:p[2]},e:{r:s,c:g[0],cRel:g[1],rRel:g[2]}}}function F_(n){var a=km(n,2),t=km(n,2),r=n.read_shift(1),i=n.read_shift(1);return{s:{r:a[0],c:r,cRel:a[1],rRel:a[2]},e:{r:t[0],c:i,cRel:t[1],rRel:t[2]}}}function gv(n,a,t){if(t&&t.biff>=2&&t.biff<=5)return function Fx(n){var a=km(n,2),t=n.read_shift(1);return{r:a[0],c:t,cRel:a[1],rRel:a[2]}}(n);var r=n.read_shift(t&&12==t.biff?4:2),i=km(n,2);return{r,c:i[0],cRel:i[1],rRel:i[2]}}function Ax(n){var a=n.read_shift(2),t=n.read_shift(2);return{r:a,c:255&t,fQuoted:!!(16384&t),cRel:t>>15,rRel:t>>15}}function A_(n){var a=1&n[n.l+1];return n.l+=4,[a,1]}function T_(n){return[n.read_shift(1),n.read_shift(1)]}function wv(n,a){var t=[n.read_shift(1)];if(12==a)switch(t[0]){case 2:t[0]=4;break;case 4:t[0]=16;break;case 0:t[0]=1;break;case 1:t[0]=2}switch(t[0]){case 4:t[1]=function Al(n,a){return 1===n.read_shift(a)}(n,1)?"TRUE":"FALSE",12!=a&&(n.l+=7);break;case 37:case 16:t[1]=Ku[n[n.l]],n.l+=12==a?4:8;break;case 0:n.l+=8;break;case 1:t[1]=fl(n);break;case 2:t[1]=function ae(n,a,t){if(t.biff>5)return function Y(n,a,t){var r=n.read_shift(t&&2==t.biff?1:2);return 0===r?(n.l++,""):function M(n,a,t){if(t){if(t.biff>=2&&t.biff<=5)return n.read_shift(a,"cpstr");if(t.biff>=12)return n.read_shift(a,"dbcs-cont")}var i=n.read_shift(1);return n.read_shift(a,0===i?"sbcs-cont":"dbcs-cont")}(n,r,t)}(n,0,t);var r=n.read_shift(1);return 0===r?(n.l++,""):n.read_shift(r,t.biff<=4||!n.lens?"cpstr":"sbcs-cont")}(n,0,{biff:a>0&&a<8?2:a});break;default:throw new Error("Bad SerAr: "+t[0])}return t}function Fv(n,a,t){for(var r=n.read_shift(12==t.biff?4:2),i=[],s=0;s!=r;++s)i.push((12==t.biff?Td:Ji)(n,8));return i}function Av(n,a,t){var r=0,i=0;12==t.biff?(r=n.read_shift(4),i=n.read_shift(4)):(i=1+n.read_shift(1),r=1+n.read_shift(2)),t.biff>=2&&t.biff<8&&(--r,0==--i&&(i=256));for(var s=0,p=[];s!=r&&(p[s]=[]);++s)for(var g=0;g!=i;++g)p[s][g]=wv(n,t.biff);return p}function n0(n,a,t){return n.l+=2,[Ax(n)]}function S_(n){return n.l+=6,[]}function jv(n){return n.l+=2,[Tl(n),1&n.read_shift(2)]}var ib=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],Nv={1:{n:"PtgExp",f:function Yx(n,a,t){return n.l++,t&&12==t.biff?[n.read_shift(4,"i"),0]:[n.read_shift(2),n.read_shift(t&&2==t.biff?1:2)]}},2:{n:"PtgTbl",f:ul},3:{n:"PtgAdd",f:fd},4:{n:"PtgSub",f:fd},5:{n:"PtgMul",f:fd},6:{n:"PtgDiv",f:fd},7:{n:"PtgPower",f:fd},8:{n:"PtgConcat",f:fd},9:{n:"PtgLt",f:fd},10:{n:"PtgLe",f:fd},11:{n:"PtgEq",f:fd},12:{n:"PtgGe",f:fd},13:{n:"PtgGt",f:fd},14:{n:"PtgNe",f:fd},15:{n:"PtgIsect",f:fd},16:{n:"PtgUnion",f:fd},17:{n:"PtgRange",f:fd},18:{n:"PtgUplus",f:fd},19:{n:"PtgUminus",f:fd}
1,20:{n:"PtgPercent",f:fd},21:{n:"PtgParen",f:fd},22:{n:"PtgMissArg",f:fd},23:{n:"PtgStr",f:function qx(n,a,t){return n.l++,fh(n,0,t)}},26:{n:"PtgSheet",f:function ob(n,a,t){return n.l+=5,n.l+=2,n.l+=2==t.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function sb(n,a,t){return n.l+=2==t.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function Wx(n){return n.l++,Ku[n.read_shift(1)]}},29:{n:"PtgBool",f:function $x(n){return n.l++,0!==n.read_shift(1)}},30:{n:"PtgInt",f:function Cv(n){return n.l++,n.read_shift(2)}},31:{n:"PtgNum",f:function kv(n){return n.l++,fl(n)}},32:{n:"PtgArray",f:function Ix(n,a,t){var r=(96&n[n.l++])>>5;return n.l+=2==t.biff?6:12==t.biff?14:7,[r]}},33:{n:"PtgFunc",f:function bv(n,a,t){var r=(96&n[n.l])>>5;n.l+=1;var i=n.read_shift(t&&t.biff<=3?1:2);return[Fg[i],l1[i],r]}},34:{n:"PtgFuncVar",f:function zx(n,a,t){var r=n[n.l++],i=n.read_shift(1),s=t&&t.biff<=3?[88==r?-1:0,n.read_shift(1)]:function yv(n){return[n[n.l+1]>>7,32767&n.read_shift(2)]}(n);return[i,(0===s[0]?l1:Ta)[s[1]]]}},35:{n:"PtgName",f:function Tv(n,a,t){var r=n.read_shift(1)>>>5&3,s=n.read_shift(!t||t.biff>=8?4:2);switch(t.biff){case 2:n.l+=5;break;case 3:case 4:n.l+=8;break;case 5:n.l+=12}return[r,0,s]}},36:{n:"PtgRef",f:function Bx(n,a,t){var r=(96&n[n.l])>>5;return n.l+=1,[r,gv(n,0,t)]}},37:{n:"PtgArea",f:function Ex(n,a,t){return[(96&n[n.l++])>>5,mv(n,0,t)]}},38:{n:"PtgMemArea",f:function Xx(n,a,t){var r=n.read_shift(1)>>>5&3;return n.l+=t&&2==t.biff?3:4,[r,n.read_shift(t&&2==t.biff?1:2)]}},39:{n:"PtgMemErr",f:ul},40:{n:"PtgMemNoMem",f:ul},41:{n:"PtgMemFunc",f:function Hx(n,a,t){return[n.read_shift(1)>>>5&3,n.read_shift(t&&2==t.biff?1:2)]}},42:{n:"PtgRefErr",f:function Pv(n,a,t){var r=n.read_shift(1)>>>5&3;return n.l+=4,t.biff<8&&n.l--,12==t.biff&&(n.l+=2),[r]}},43:{n:"PtgAreaErr",f:function Mx(n,a,t){var r=(96&n[n.l++])>>5;return n.l+=t&&t.biff>8?12:t.biff<8?6:8,[r]}},44:{n:"PtgRefN",f:function Gx(n,a,t){var r=(96&n[n.l])>>5;n.l+=1;var i=function Tx(n,a,t){var r=t&&t.biff?t.biff:8;if(r>=2&&r<=5)return function Sx(n){var a=n.read_shift(2),t=n.read_shift(1),r=(32768&a)>>15,i=(16384&a)>>14;return a&=16383,1==r&&a>=8192&&(a-=16384),1==i&&t>=128&&(t-=256),{r:a,c:t,cRel:i,rRel:r}}(n);var i=n.read_shift(r>=12?4:2),s=n.read_shift(2),p=(16384&s)>>14,g=(32768&s)>>15;if(s&=16383,1==g)for(;i>524287;)i-=1048576;if(1==p)for(;s>8191;)s-=16384;return{r:i,c:s,cRel:p,rRel:g}}(n,0,t);return[r,i]}},45:{n:"PtgAreaN",f:function Dx(n,a,t){var r=(96&n[n.l++])>>5,i=function wx(n,a,t){if(t.biff<8)return F_(n);var r=n.read_shift(12==t.biff?4:2),i=n.read_shift(12==t.biff?4:2),s=km(n,2),p=km(n,2);return{s:{r,c:s[0],cRel:s[1],rRel:s[2]},e:{r:i,c:p[0],cRel:p[1],rRel:p[2]}}}(n,0,t);return[r,i]}},46:{n:"PtgMemAreaN",f:function lb(n){return[n.read_shift(1)>>>5&3,n.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function cb(n){return[n.read_shift(1)>>>5&3,n.read_shift(2)]}},57:{n:"PtgNameX",f:function Sv(n,a,t){return 5==t.biff?function Ev(n){var a=n.read_shift(1)>>>5&3,t=n.read_shift(2,"i");n.l+=8;var r=n.read_shift(2);return n.l+=12,[a,t,r]}(n):[n.read_shift(1)>>>5&3,n.read_shift(2),n.read_shift(4)]}},58:{n:"PtgRef3d",f:function Vx(n,a,t){var r=(96&n[n.l])>>5;n.l+=1;var i=n.read_shift(2);return t&&5==t.biff&&(n.l+=12),[r,i,gv(n,0,t)]}},59:{n:"PtgArea3d",f:function Px(n,a,t){var r=(96&n[n.l++])>>5,i=n.read_shift(2,"i");if(t&&5===t.biff)n.l+=12;return[r,i,mv(n,0,t)]}},60:{n:"PtgRefErr3d",f:function Mv(n,a,t){var r=(96&n[n.l++])>>5,i=n.read_shift(2),s=4;if(t)switch(t.biff){case 5:s=15;break;case 12:s=6}return n.l+=s,[r,i]}},61:{n:"PtgAreaErr3d",f:function Ox(n,a,t){var r=(96&n[n.l++])>>5,i=n.read_shift(2),s=8;if(t)switch(t.biff){case 5:n.l+=12,s=6;break;case 12:s=12}return n.l+=s,[r,i]}},255:{}},ub={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},fb={1:{n:"PtgElfLel",f:jv},2:{n:"PtgElfRw",f:n0},3:{n:"PtgElfCol",f:n0},6:{n:"PtgElfRwV",f:n0},7:{n:"PtgElfColV",f:n0},10:{n:"PtgElfRadical",f:n0},11:{n:"PtgElfRadicalS",f:S_},13:{n:"PtgElfColS",f:S_},15:{n:"PtgElfColSV",f:S_},16:{n:"PtgElfRadicalLel",f:jv},25:{n:"PtgList",f:function rb(n){n.l+=2;var a=n.read_shift(2),t=n.read_shift(2),r=n.read_shift(4),i=n.read_shift(2),s=n.read_shift(2);return{ixti:a,coltype:3&t,rt:ib[t>>2&31],idx:r,c:i,C:s}}},29:{n:"PtgSxName",f:function ab(n){return n.l+=2,[n.read_shift(4)]}},255:{}},pb={0:{n:"PtgAttrNoop",f:function db(n){return n.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function Lx(n,a,t){var r=255&n[n.l+1]?1:0;return n.l+=t&&2==t.biff?3:4,[r]}},2:{n:"PtgAttrIf",f:function Rx(n,a,t){var r=255&n[n.l+1]?1:0;return n.l+=2,[r,n.read_shift(t&&2==t.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function jx(n,a,t){n.l+=2;for(var r=n.read_shift(t&&2==t.biff?1:2),i=[],s=0;s<=r;++s)i.push(n.read_shift(t&&2==t.biff?1:2));return i}},8:{n:"PtgAttrGoto",f:function _v(n,a,t){var r=255&n[n.l+1]?1:0;return n.l+=2,[r,n.read_shift(t&&2==t.biff?1:2)]}},16:{n:"PtgAttrSum",f:function Ux(n,a,t){n.l+=t&&2==t.biff?3:4}},32:{n:"PtgAttrBaxcel",f:A_},33:{n:"PtgAttrBaxcel",f:A_},64:{n:"PtgAttrSpace",f:function Nx(n){return n.read_shift(2),T_(n)}},65:{n:"PtgAttrSpaceSemi",f:function xv(n){return n.read_shift(2),T_(n)}},128:{n:"PtgAttrIfError",f:function vv(n){var a=255&n[n.l+1]?1:0;return n.l+=2,[a,n.read_shift(2)]}},255:{}};function r0(n,a,t,r){if(r.biff<8)return ul(n,a);for(var i=n.l+a,s=[],p=0;p!==t.length;++p)switch(t[p][0]){case"PtgArray":t[p][1]=Av(n,0,r),s.push(t[p][1]);break;case"PtgMemArea":t[p][2]=Fv(n,0,r),s.push(t[p][2]);break;case"PtgExp":r&&12==r.biff&&(t[p][1][1]=n.read_shift(4),s.push(t[p][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+t[p][0]}return 0!=(a=i-n.l)&&s.push(ul(n,a)),s}function hb(n){for(var a=[],t=0;t<n.length;++t){for(var r=n[t],i=[],s=0;s<r.length;++s){var p=r[s];
1i.push(p?2===p[0]?'"'+p[1].replace(/"/g,'""')+'"':p[1]:"")}a.push(i.join(","))}return a.join(";")}var mb={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function E_(n,a,t){if(!n)return"SH33TJSERR0";if(t.biff>8&&(!n.XTI||!n.XTI[a]))return n.SheetNames[a];if(!n.XTI)return"SH33TJSERR6";var r=n.XTI[a];if(t.biff<8)return a>1e4&&(a-=65536),a<0&&(a=-a),0==a?"":n.XTI[a-1];if(!r)return"SH33TJSERR1";var i="";if(t.biff>8)switch(n[r[0]][0]){case 357:return i=-1==r[1]?"#REF":n.SheetNames[r[1]],r[1]==r[2]?i:i+":"+n.SheetNames[r[2]];case 358:return null!=t.SID?n.SheetNames[t.SID]:"SH33TJSSAME"+n[r[0]][0];default:return"SH33TJSSRC"+n[r[0]][0]}switch(n[r[0]][0][0]){case 1025:return i=-1==r[1]?"#REF":n.SheetNames[r[1]]||"SH33TJSERR3",r[1]==r[2]?i:i+":"+n.SheetNames[r[2]];case 14849:return n[r[0]].slice(1).map(function(s){return s.Name}).join(";;");default:return n[r[0]][0][3]?(i=-1==r[1]?"#REF":n[r[0]][0][3][r[1]]||"SH33TJSERR4",r[1]==r[2]?i:i+":"+n[r[0]][0][3][r[2]]):"SH33TJSERR2"}}function Bv(n,a,t){var r=E_(n,a,t);return"#REF"==r?r:function gb(n,a){if(!(n||a&&a.biff<=5&&a.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(n)?"'"+n+"'":n}(r,t)}function Eu(n,a,t,r,i){var S,R,L,fe,s=i&&i.biff||8,p={s:{c:0,r:0},e:{c:0,r:0}},g=[],ne=0,re=0,xe="";if(!n[0]||!n[0][0])return"";for(var ce=-1,be="",Je=0,tt=n[0].length;Je<tt;++Je){var Ze=n[0][Je];switch(Ze[0]){case"PtgUminus":g.push("-"+g.pop());break;case"PtgUplus":g.push("+"+g.pop());break;case"PtgPercent":g.push(g.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(S=g.pop(),R=g.pop(),ce>=0){switch(n[0][ce][1][0]){case 0:be=ha(" ",n[0][ce][1][1]);break;case 1:be=ha("\r",n[0][ce][1][1]);break;default:if(be="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+n[0][ce][1][0])}R+=be,ce=-1}g.push(R+mb[Ze[0]]+S);break;case"PtgIsect":S=g.pop(),R=g.pop(),g.push(R+" "+S);break;case"PtgUnion":S=g.pop(),R=g.pop(),g.push(R+","+S);break;case"PtgRange":S=g.pop(),R=g.pop(),g.push(R+":"+S);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":L=hf(Ze[1][1],p,i),g.push(ec(L,s));break;case"PtgRefN":L=t?hf(Ze[1][1],t,i):Ze[1][1],g.push(ec(L,s));break;case"PtgRef3d":ne=Ze[1][1],L=hf(Ze[1][2],p,i),xe=Bv(r,ne,i),g.push(xe+"!"+ec(L,s));break;case"PtgFunc":case"PtgFuncVar":var vn=Ze[1][0],Kn=Ze[1][1];vn||(vn=0);var Tt=0==(vn&=127)?[]:g.slice(-vn);g.length-=vn,"User"===Kn&&(Kn=Tt.shift()),g.push(Kn+"("+Tt.join(",")+")");break;case"PtgBool":g.push(Ze[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":g.push(Ze[1]);break;case"PtgNum":g.push(String(Ze[1]));break;case"PtgStr":g.push('"'+Ze[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":fe=Tp(Ze[1][1],t?{s:t}:p,i),g.push(Ad(fe,i));break;case"PtgArea":fe=Tp(Ze[1][1],p,i),g.push(Ad(fe,i));break;case"PtgArea3d":fe=Ze[1][2],xe=Bv(r,ne=Ze[1][1],i),g.push(xe+"!"+Ad(fe,i));break;case"PtgAttrSum":g.push("SUM("+g.pop()+")");break;case"PtgName":var hn=(r.names||[])[(re=Ze[1][2])-1]||(r[0]||[])[re],on=hn?hn.Name:"SH33TJSNAME"+String(re);on&&"_xlfn."==on.slice(0,6)&&!i.xlfn&&(on=on.slice(6)),g.push(on);break;case"PtgNameX":var ni,ti=Ze[1][1];if(re=Ze[1][2],!(i.biff<=5)){var cn="";if(14849==((r[ti]||[])[0]||[])[0]||(1025==((r[ti]||[])[0]||[])[0]?r[ti][re]&&r[ti][re].itab>0&&(cn=r.SheetNames[r[ti][re].itab-1]+"!"):cn=r.SheetNames[re-1]+"!"),r[ti]&&r[ti][re])cn+=r[ti][re].Name;else if(r[0]&&r[0][re])cn+=r[0][re].Name;else{var Yi=(E_(r,ti,i)||"").split(";;");Yi[re-1]?cn=Yi[re-1]:cn+="SH33TJSERRX"}g.push(cn);break}ti<0&&(ti=-ti),r[ti]&&(ni=r[ti][re]),ni||(ni={Name:"SH33TJSERRY"}),g.push(ni.Name);break;case"PtgParen":var Tr="(",ar=")";if(ce>=0){switch(be="",n[0][ce][1][0]){case 2:Tr=ha(" ",n[0][ce][1][1])+Tr;break;case 3:Tr=ha("\r",n[0][ce][1][1])+Tr;break;case 4:ar=ha(" ",n[0][ce][1][1])+ar;break;case 5:ar=ha("\r",n[0][ce][1][1])+ar;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+n[0][ce][1][0])}ce=-1}g.push(Tr+g.pop()+ar);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":g.push("#REF!");break;case"PtgExp":var fa={c:t.c,r:t.r};if(r.sharedf[ge(L={c:Ze[1][1],r:Ze[1][0]})]){var Ir=r.sharedf[ge(L)];g.push(Eu(Ir,0,fa,r,i))}else{var ao=!1;for(S=0;S!=r.arrayf.length;++S)if(!(L.c<(R=r.arrayf[S])[0].s.c||L.c>R[0].e.c||L.r<R[0].s.r||L.r>R[0].e.r)){g.push(Eu(R[1],0,fa,r,i)),ao=!0;break}ao||g.push(Ze[1])}break;case"PtgArray":g.push("{"+hb(Ze[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":ce=Je;break;case"PtgMissArg":g.push("");break;case"PtgList":g.push("Table"+Ze[1].idx+"[#"+Ze[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(Ze))}if(3!=i.biff&&ce>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(n[0][Je][0])){var sa=!0;switch((Ze=n[0][ce])[1][0]){case 4:sa=!1;case 0:be=ha(" ",Ze[1][1]);break;case 5:sa=!1;case 1:be=ha("\r",Ze[1][1]);break;default:if(be="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+Ze[1][0])}g.push((sa?be:"")+g.pop()+(sa?"":be)),ce=-1}}if(g.length>1&&i.WTF)throw new Error("bad formula stack");return g[0]}function o0(n,a,t){var r=n.read_shift(4),i=function a0(n,a,t){for(var i,s,r=n.l+a,p=[];r!=n.l;)a=r-n.l,i=Nv[s=n[n.l]]||Nv[ub[s]],(24===s||25===s)&&(i=(24===s?fb:pb)[n[n.l+1]]),i&&i.f?p.push([i.n,i.f(n,a,t)]):ul(n,a);return p}(n,r,t),s=n.read_shift(4);return[i,s>0?r0(n,s,i,t):null]}var O_=o0,Qm=o0,wm=o0,wg=o0,Ta
vendor: 7,369 bytes, line 1
1={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"}
1,l1={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284
vendor: 5,342 bytes, line 1
1:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Fg={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function D_(n){return("of:="+n.replace(xp,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")}function I_(n){return n.replace(/\./,"!")}var d0=typeof Map<"u";function u0(n,a,t){var r=0,i=n.length;if(t){if(d0?t.has(a):Object.prototype.hasOwnProperty.call(t,a))for(var s=d0?t.get(a):t[a];r<s.length;++r)if(n[s[r]].t===a)return n.Count++,s[r]}else for(;r<i;++r)if(n[r].t===a)return n.Count++,r;return n[i]={t:a},n.Count++,n.Unique++,t&&(d0?(t.has(a)||t.set(a,[]),t.get(a).push(i)):(Object.prototype.hasOwnProperty.call(t,a)||(t[a]=[]),t[a].push(i))),i}function f0(n,a){var t={min:n+1,max:n+1},r=-1;return a.MDW&&(Rd=a.MDW),null!=a.width?t.customWidth=1:null!=a.wpx?r=bm(a.wpx):null!=a.wch&&(r=a.wch),r>-1?(t.width=Lp(r),t.customWidth=1):null!=a.width&&(t.width=a.width),a.hidden&&(t.hidden=!0),null!=a.level&&(t.outlineLevel=t.level=a.level),t}function eg(n,a){if(n){var t=[.7,.7,.75,.75,.3,.3];
1"xlml"==a&&(t=[1,1,1,1,.5,.5]),null==n.left&&(n.left=t[0]),null==n.right&&(n.right=t[1]),null==n.top&&(n.top=t[2]),null==n.bottom&&(n.bottom=t[3]),null==n.header&&(n.header=t[4]),null==n.footer&&(n.footer=t[5])}}function bh(n,a,t){var r=t.revssf[null!=a.z?a.z:"General"],i=60,s=n.length;if(null==r&&t.ssf)for(;i<392;++i)if(null==t.ssf[i]){Qe(a.z,i),t.ssf[i]=a.z,t.revssf[a.z]=r=i;break}for(i=0;i!=s;++i)if(n[i].numFmtId===r)return i;return n[s]={numFmtId:r,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},s}function vb(n,a,t){if(n&&n["!ref"]){var r=Ut(n["!ref"]);if(r.e.c<r.s.c||r.e.r<r.s.r)throw new Error("Bad range ("+t+"): "+n["!ref"])}}var p0=["objects","scenarios","selectLockedCells","selectUnlockedCells"],zv=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function p1(n,a,t,r){if(n.c&&t["!comments"].push([a,n.c]),void 0===n.v&&"string"!=typeof n.f||"z"===n.t&&!n.f)return"";var i="",s=n.t,p=n.v;if("z"!==n.t)switch(n.t){case"b":i=n.v?"1":"0";break;case"n":i=""+n.v;break;case"e":i=Ku[n.v];break;case"d":r&&r.cellDates?i=Mr(n.v,-1).toISOString():((n=Kr(n)).t="n",i=""+(n.v=Sr(Mr(n.v)))),typeof n.z>"u"&&(n.z=ct[14]);break;default:i=n.v}var g=zt("v",Ja(i)),S={r:a},R=bh(r.cellXfs,n,r);switch(0!==R&&(S.s=R),n.t){case"n":case"z":break;case"d":S.t="d";break;case"b":S.t="b";break;case"e":S.t="e";break;default:if(null==n.v){delete n.t;break}if(n.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(r&&r.bookSST){g=zt("v",""+u0(r.Strings,n.v,r.revStrings)),S.t="s";break}S.t="str"}if(n.t!=s&&(n.t=s,n.v=p),"string"==typeof n.f&&n.f){var L=n.F&&n.F.slice(0,a.length)==a?{t:"array",ref:n.F}:null;g=_n("f",Ja(n.f),L)+(null!=n.v?g:"")}return n.l&&t["!links"].push([a,n.l]),n.D&&(S.cm=1),_n("c",g,S)}function qv(n,a,t,r){var p,i=[Gr,_n("worksheet",null,{xmlns:Ga[0],"xmlns:r":Or.r})],g="",S=t.Sheets[t.SheetNames[n]];null==S&&(S={});var R=S["!ref"]||"A1",L=Ut(R);if(L.e.c>16383||L.e.r>1048575){if(a.WTF)throw new Error("Range "+R+" exceeds format limit A1:XFD1048576");L.e.c=Math.min(L.e.c,16383),L.e.r=Math.min(L.e.c,1048575),R=gt(L)}r||(r={}),S["!comments"]=[];var ne=[];(function N_(n,a,t,r,i){var s=!1,p={},g=null;if("xlsx"!==r.bookType&&a.vbaraw){var S=a.SheetNames[t];try{a.Workbook&&(S=a.Workbook.Sheets[t].CodeName||S)}catch{}s=!0,p.codeName=V(Ja(S))}if(n&&n["!outline"]){var R={summaryBelow:1,summaryRight:1};n["!outline"].above&&(R.summaryBelow=0),n["!outline"].left&&(R.summaryRight=0),g=(g||"")+_n("outlinePr",null,R)}!s&&!g||(i[i.length]=_n("sheetPr",g,p))})(S,t,n,a,i),i[i.length]=_n("dimension",null,{ref:R}),i[i.length]=function U_(n,a,t,r){var i={workbookViewId:"0"};return(((r||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=r.Workbook.Views[0].RTL?"1":"0"),_n("sheetViews",_n("sheetView",null,i),{})}(0,0,0,t),a.sheetFormat&&(i[i.length]=_n("sheetFormatPr",null,{defaultRowHeight:a.sheetFormat.defaultRowHeight||"16",baseColWidth:a.sheetFormat.baseColWidth||"10",outlineLevelRow:a.sheetFormat.outlineLevelRow||"7"})),null!=S["!cols"]&&S["!cols"].length>0&&(i[i.length]=function V_(n,a){for(var r,t=["<cols>"],i=0;i!=a.length;++i)(r=a[i])&&(t[t.length]=_n("col",null,f0(i,r)));return t[t.length]="</cols>",t.join("")}(0,S["!cols"])),i[p=i.length]="<sheetData/>",S["!links"]=[],null!=S["!ref"]&&(g=function Fb(n,a,t,r){var S,be,i=[],s=[],p=Ut(n["!ref"]),g="",R="",L=[],ne=0,re=0,fe=n["!rows"],xe=Array.isArray(n),ce={r:R},Je=-1;for(re=p.s.c;re<=p.e.c;++re)L[re]=Za(re);for(ne=p.s.r;ne<=p.e.r;++ne){for(s=[],R=vs(ne),re=p.s.c;re<=p.e.c;++re){S=L[re]+R;var tt=xe?(n[ne]||[])[re]:n[S];void 0!==tt&&null!=(g=p1(tt,S,n,a))&&s.push(g)}(s.length>0||fe&&fe[ne])&&(ce={r:R},fe&&fe[ne]&&((be=fe[ne]).hidden&&(ce.hidden=1),Je=-1,be.hpx?Je=Uh(be.hpx):be.hpt&&(Je=be.hpt),Je>-1&&(ce.ht=Je,ce.customHeight=1),be.level&&(ce.outlineLevel=be.level)),i[i.length]=_n("row",s.join(""),ce))}if(fe)for(;ne<fe.length;++ne)fe&&fe[ne]&&(ce={r:ne+1},(be=fe[ne]).hidden&&(ce.hidden=1),Je=-1,be.hpx?Je=Uh(be.hpx):be.hpt&&(Je=be.hpt),Je>-1&&(ce.ht=Je,ce.customHeight=1),be.level&&(ce.outlineLevel=be.level),i[i.length]=_n("row","",ce));return i.join("")}(S,a),g.length>0&&(i[i.length]=g)),i.length>p+1&&(i[i.length]="</sheetData>",i[p]=i[p].replace("/>",">")),S["!protect"]&&(i[i.length]=function B_(n){var a={sheet:1};return p0.forEach(function(t){null!=n[t]&&n[t]&&(a[t]="1")}),zv.forEach(function(t){null!=n[t]&&!n[t]&&(a[t]="0")}),n.password&&(a.password=pc(n.password).toString(16).toUpperCase()),_n("sheetProtection",null,a)}(S["!protect"])),null!=S["!autofilter"]&&(i[i.length]=function $v(n,a,t,r){var i="string"==typeof n.ref?n.ref:gt(n.ref);t.Workbook||(t.Workbook={Sheets:[]}),t.Workbook.Names||(t.Workbook.Names=[]);var s=t.Workbook.Names,p=rt(i);p.s.r==p.e.r&&(p.e.r=rt(a["!ref"]).e.r,i=gt(p));for(var g=0;g<s.length;++g){var S=s[g];if("_xlnm._FilterDatabase"==S.Name&&S.Sheet==r){S.Ref="'"+t.SheetNames[r]+"'!"+i;break}}return g==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+t.SheetNames[r]+"'!"+i}),_n("autoFilter",null,{ref:i})}(S["!autofilter"],S,t,n)),null!=S["!merges"]&&S["!merges"].length>0&&(i[i.length]=function Tg(n){if(0===n.length)return"";for(var a='<mergeCells count="'+n.length+'">',t=0;t!=n.length;++t)a+='<mergeCell ref="'+gt(n[t])+'"/>';return a+"</mergeCells>"}(S["!merges"]));var fe,re=-1,xe=-1;return S["!links"].length>0&&(i[i.length]="<hyperlinks>",S["!links"].forEach(function(ce){ce[1].Target&&(fe={ref:ce[0]},"#"!=ce[1].Target.charAt(0)&&(xe=_o(r,-1,Ja(ce[1].Target).replace(/#.*$/,""),Pa.HLINK),fe["r:id"]="rId"+xe),(re=ce[1].Target.indexOf("#"))>-1&&(fe.location=Ja(ce[1].Target.slice(re+1))),ce[1].Tooltip&&(fe.tooltip=Ja(ce[1].Tooltip)),i[i.length]=_n("hyperlink",null,fe))}),i[i.length]="</hyperlinks>"),delete S["!links"],null!=S["!margins"]&&(i[i.length]=function G_(n){return eg(n),_n("pageMargins",null,n)}(S["!margins"])),(!a||a.ignoreEC||null==a.ignoreEC)&&(i[i.length]=zt("ignoredErrors",_n("ignoredError",null,{numberStoredAsText:1,sqref:R}))),ne.length>0&&(xe=_o(r,-1,"../drawings/drawing"+(n+1)+".xml",Pa.DRAW),i[i.length]=_n("drawing",null,{"r:id":"rId"+xe}),S["!drawing"]=ne),S["!comments"].length>0&&(xe=_o(r,-1,"../drawings/vmlDrawing"+(n+1)+".vml",Pa.VML),i[i.length]=_n("legacyDrawing",null,{"r:id":"rId"+xe}),S["!legacy"]=xe),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function Xv(n,a,t,r){var i=function $f(n,a,t){var r=Rn(145),i=(t["!rows"]||[])[n]||{};r.write_shift(4,n),r.write_shift(4,0);var s=320;i.hpx?s=20*Uh(i.hpx):i.hpt&&(s=20*i.hpt),r.write_shift(2,s),r.write_shift(1,0);var p=0;i.level&&(p|=i.level),i.hidden&&(p|=16),(i.hpx||i.hpt)&&(p|=32),r.write_shift(1,p),r.write_shift(1,0);var g=0,S=r.l;r.l+=4;for(var R={r:n,c:0},L=0;L<16;++L)if(!(a.s.c>L+1<<10||a.e.c<L<<10)){for(var ne=-1,re=-1,fe=L<<10;fe<L+1<<10;++fe)R.c=fe,(Array.isArray(t)?(t[R.r]||[])[R.c]:t[ge(R)])&&(ne<0&&(ne=fe),re=fe);ne<0||(++g,r.write_shift(4,ne),r.write_shift(4,re))}var ce=r.l;return r.l=S,r.write_shift(4,g),r.l=ce,r.length>r.l?r.slice(0,r.l):r}(r,t,a);(i.length>17||(a["!rows"]||[])[r])&&mi(n,0,i)}var Y_=Td,Hv=Nl;var ty=Td,ny=Nl,o2=["left","right","top","bottom","header","footer"];function uy(n,a,t,r,i,s,p){if(void 0===a.v)return!1;var g="";switch(a.t){case"b":g=a.v?"1":"0";break;case"d":(a=Kr(a)).z=a.z||ct[14],a.v=Sr(Mr(a.v)),a.t="n";break;case"n":case"e":g=""+a.v;break;default:g=a.v}var S={r:t,c:r};switch(S.s=bh(i.cellXfs,a,i),a.l&&s["!links"].push([ge(S),a.l]),a.c&&s["!comments"].push([ge(S),a.c]),a.t){case"s":case"str":return i.bookSST?(g=u0(i.Strings,a.v,i.revStrings),S.t="s",S.v=g,p?mi(n,18,function Vb(n,a,t){return null==t&&(t=Rn(8)),Fc(a,t),t.write_shift(4,a.v),t}(0,S)):mi(n,7,function Bb(n,a,t){return null==t&&(t=Rn(12)),gf(a,t),t.write_shift(4,a.v),t}(0,S))):(S.t="str",p?mi(n,17,function Jb(n,a,t){return null==t&&(t=Rn(8+4*n.v.length)),Fc(a,t),ta(n.v,t),t.length>t.l?t.slice(0,t.l):t}(a,S)):mi(n,6,function Kb(n,a,t){return null==t&&(t=Rn(12+4*n.v.length)),gf(a,t),ta(n.v,t),t.length>t.l?t.slice(0,t.l):t}(a,S))),!0;case"n":return a.v==(0|a.v)&&a.v>-1e3&&a.v<1e3?p?mi(n,13,function qb(n,a,t){return null==t&&(t=Rn(8)),Fc(a,t),Sc(n.v,t),t}(a,S)):mi(n,2,function $b(n,a,t){return null==t&&(t=Rn(12)),gf(a,t),Sc(n.v,t),t}(a,S)):p?mi(n,16,function Yb(n,a,t){return null==t&&(t=Rn(12)),Fc(a,t),Rf(n.v,t),t}(a,S)):mi(n,5,function Ub(n,a,t){return null==t&&(t=Rn(16)),gf(a,t),Rf(n.v,t),t}(a,S)),!0;case"b":return S.t="b",p?mi(n,15,function Jv(n,a,t){return null==t&&(t=Rn(5)),Fc(a,t),t.write_shift(1,n.v?1:0),t}(a,S)):mi(n,4,function Ib(n,a,t){return null==t&&(t=Rn(9)),gf(a,t),t.write_shift(1,n.v?1:0),t}(a,S)),!0;
1case"e":return S.t="e",p?mi(n,14,function Lb(n,a,t){return null==t&&(t=Rn(8)),Fc(a,t),t.write_shift(1,n.v),t.write_shift(2,0),t.write_shift(1,0),t}(a,S)):mi(n,3,function Zv(n,a,t){return null==t&&(t=Rn(9)),gf(a,t),t.write_shift(1,n.v),t}(a,S)),!0}return p?mi(n,12,function Ob(n,a,t){return null==t&&(t=Rn(4)),Fc(a,t)}(0,S)):mi(n,1,function Pb(n,a,t){return null==t&&(t=Rn(8)),gf(a,t)}(0,S)),!0}function by(n,a,t,r){var i=Ks(),s=t.SheetNames[n],p=t.Sheets[s]||{},g=s;try{t&&t.Workbook&&(g=t.Workbook.Sheets[n].CodeName||g)}catch{}var S=Ut(p["!ref"]||"A1");if(S.e.c>16383||S.e.r>1048575){if(a.WTF)throw new Error("Range "+(p["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");S.e.c=Math.min(S.e.c,16383),S.e.r=Math.min(S.e.c,1048575)}return p["!links"]=[],p["!comments"]=[],mi(i,129),(t.vbaraw||p["!outline"])&&mi(i,147,function Sb(n,a,t){null==t&&(t=Rn(84+4*n.length));var r=192;a&&(a.above&&(r&=-65),a.left&&(r&=-129)),t.write_shift(1,r);for(var i=1;i<3;++i)t.write_shift(1,0);return ic({auto:1},t),t.write_shift(-4,-1),t.write_shift(-4,-1),op(n,t),t.slice(0,t.l)}(g,p["!outline"])),mi(i,148,Hv(S)),function _y(n,a,t){mi(n,133),mi(n,137,function l2(n,a,t){null==t&&(t=Rn(30));var r=924;return(((a||{}).Views||[])[0]||{}).RTL&&(r|=32),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,100),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(4,0),t}(0,t)),mi(n,138),mi(n,134)}(i,0,t.Workbook),function f2(n,a){!a||!a["!cols"]||(mi(n,390),a["!cols"].forEach(function(t,r){t&&mi(n,60,function a2(n,a,t){null==t&&(t=Rn(18));var r=f0(n,a);t.write_shift(-4,n),t.write_shift(-4,n),t.write_shift(4,256*(r.width||10)),t.write_shift(4,0);var i=0;return a.hidden&&(i|=1),"number"==typeof r.width&&(i|=2),a.level&&(i|=a.level<<8),t.write_shift(2,i),t}(r,t))}),mi(n,391))}(i,p),function fy(n,a,t,r){var i=Ut(a["!ref"]||"A1"),p="",g=[];mi(n,145);var S=Array.isArray(a),R=i.e.r;a["!rows"]&&(R=Math.max(i.e.r,a["!rows"].length-1));for(var L=i.s.r;L<=R;++L){p=vs(L),Xv(n,a,i,L);var ne=!1;if(L<=i.e.r)for(var re=i.s.c;re<=i.e.c;++re){L===i.s.r&&(g[re]=Za(re));var fe=S?(a[L]||[])[re]:a[g[re]+p];ne=!!fe&&uy(n,fe,L,re,r,a,ne)}}mi(n,146)}(i,p,0,a),function xy(n,a){a["!protect"]&&mi(n,535,function c2(n,a){return null==a&&(a=Rn(66)),a.write_shift(2,n.password?pc(n.password):0),a.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(t){a.write_shift(4,t[1]?null==n[t[0]]||n[t[0]]?0:1:null!=n[t[0]]&&n[t[0]]?0:1)}),a}(a["!protect"]))}(i,p),function gy(n,a,t,r){if(a["!autofilter"]){var i=a["!autofilter"],s="string"==typeof i.ref?i.ref:gt(i.ref);t.Workbook||(t.Workbook={Sheets:[]}),t.Workbook.Names||(t.Workbook.Names=[]);var p=t.Workbook.Names,g=rt(s);g.s.r==g.e.r&&(g.e.r=rt(a["!ref"]).e.r,s=gt(g));for(var S=0;S<p.length;++S){var R=p[S];if("_xlnm._FilterDatabase"==R.Name&&R.Sheet==r){R.Ref="'"+t.SheetNames[r]+"'!"+s;break}}S==p.length&&p.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:"'"+t.SheetNames[r]+"'!"+s}),mi(n,161,Nl(Ut(s))),mi(n,162)}}(i,p,t,n),function h1(n,a){!a||!a["!merges"]||(mi(n,177,function iy(n,a){return null==a&&(a=Rn(4)),a.write_shift(4,n),a}(a["!merges"].length)),a["!merges"].forEach(function(t){mi(n,176,ny(t))}),mi(n,178))}(i,p),function hy(n,a,t){a["!links"].forEach(function(r){if(r[1].Target){var i=_o(t,-1,r[1].Target.replace(/#.*$/,""),Pa.HLINK);mi(n,494,function ry(n,a){var t=Rn(50+4*(n[1].Target.length+(n[1].Tooltip||"").length));Nl({s:z(n[0]),e:z(n[0])},t),dd("rId"+a,t);var r=n[1].Target.indexOf("#");return ta((-1==r?"":n[1].Target.slice(r+1))||"",t),ta(n[1].Tooltip||"",t),ta("",t),t.slice(0,t.l)}(r,i))}}),delete a["!links"]}(i,p,r),p["!margins"]&&mi(i,476,function ly(n,a){return null==a&&(a=Rn(48)),eg(n),o2.forEach(function(t){Rf(n[t],a)}),a}(p["!margins"])),(!a||a.ignoreEC||null==a.ignoreEC)&&function py(n,a){!a||!a["!ref"]||(mi(n,648),mi(n,649,function cy(n){var a=Rn(24);return a.write_shift(4,4),a.write_shift(4,1),Nl(n,a),a}
1(Ut(a["!ref"]))),mi(n,650))}(i,p),function my(n,a,t,r){if(a["!comments"].length>0){var i=_o(r,-1,"../drawings/vmlDrawing"+(t+1)+".vml",Pa.VML);mi(n,551,dd("rId"+i)),a["!legacy"]=i}}(i,p,n,r),mi(i,130),i.end()}var q_=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],Ty="][*?/\\".split("");function l(n,a){if(n.length>31){if(a)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var t=!0;return Ty.forEach(function(r){if(-1!=n.indexOf(r)){if(!a)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");t=!1}}),t}function C(n){var a=[Gr];a[a.length]=_n("workbook",null,{xmlns:Ga[0],"xmlns:r":Or.r});var t=n.Workbook&&(n.Workbook.Names||[]).length>0,r={codeName:"ThisWorkbook"};n.Workbook&&n.Workbook.WBProps&&(q_.forEach(function(g){null!=n.Workbook.WBProps[g[0]]&&n.Workbook.WBProps[g[0]]!=g[1]&&(r[g[0]]=n.Workbook.WBProps[g[0]])}),n.Workbook.WBProps.CodeName&&(r.codeName=n.Workbook.WBProps.CodeName,delete r.CodeName)),a[a.length]=_n("workbookPr",null,r);var i=n.Workbook&&n.Workbook.Sheets||[],s=0;if(i&&i[0]&&i[0].Hidden){for(a[a.length]="<bookViews>",s=0;s!=n.SheetNames.length&&i[s]&&i[s].Hidden;++s);s==n.SheetNames.length&&(s=0),a[a.length]='<workbookView firstSheet="'+s+'" activeTab="'+s+'"/>',a[a.length]="</bookViews>"}for(a[a.length]="<sheets>",s=0;s!=n.SheetNames.length;++s){var p={name:Ja(n.SheetNames[s].slice(0,31))};if(p.sheetId=""+(s+1),p["r:id"]="rId"+(s+1),i[s])switch(i[s].Hidden){case 1:p.state="hidden";break;case 2:p.state="veryHidden"}a[a.length]=_n("sheet",null,p)}return a[a.length]="</sheets>",t&&(a[a.length]="<definedNames>",n.Workbook&&n.Workbook.Names&&n.Workbook.Names.forEach(function(g){var S={name:g.Name};g.Comment&&(S.comment=g.Comment),null!=g.Sheet&&(S.localSheetId=""+g.Sheet),g.Hidden&&(S.hidden="1"),g.Ref&&(a[a.length]=_n("definedName",Ja(g.Ref),S))}),a[a.length]="</definedNames>"),a.length>2&&(a[a.length]="</workbook>",a[1]=a[1].replace("/>",">")),a.join("")}function le(n,a){return a||(a=Rn(127)),a.write_shift(4,n.Hidden),a.write_shift(4,n.iTabID),dd(n.strRelID,a),ta(n.name.slice(0,31),a),a.length>a.l?a.slice(0,a.l):a}function Ei(n,a){var t=Ks();return mi(t,131),mi(t,128,function li(n,a){a||(a=Rn(127));for(var t=0;4!=t;++t)a.write_shift(4,0);return ta("SheetJS",a),ta(gi.version,a),ta(gi.version,a),ta("7262",a),a.length>a.l?a.slice(0,a.l):a}()),mi(t,153,function ke(n,a){a||(a=Rn(72));var t=0;return n&&n.filterPrivacy&&(t|=8),a.write_shift(4,t),a.write_shift(4,0),op(n&&n.CodeName||"ThisWorkbook",a),a.slice(0,a.l)}(n.Workbook&&n.Workbook.WBProps||null)),function Sn(n,a){if(a.Workbook&&a.Workbook.Sheets){for(var t=a.Workbook.Sheets,r=0,i=-1,s=-1;r<t.length;++r)!t[r]||!t[r].Hidden&&-1==i?i=r:1==t[r].Hidden&&-1==s&&(s=r);s>i||(mi(n,135),mi(n,158,function Ki(n,a){return a||(a=Rn(29)),a.write_shift(-4,0),a.write_shift(-4,460),a.write_shift(4,28800),a.write_shift(4,17600),a.write_shift(4,500),a.write_shift(4,n),a.write_shift(4,n),a.write_shift(1,120),a.length>a.l?a.slice(0,a.l):a}(i)),mi(n,136))}}(t,n),function ln(n,a){mi(n,143);for(var t=0;t!=a.SheetNames.length;++t)mi(n,156,le({Hidden:a.Workbook&&a.Workbook.Sheets&&a.Workbook.Sheets[t]&&a.Workbook.Sheets[t].Hidden||0,iTabID:t+1,strRelID:"rId"+(t+1),name:a.SheetNames[t]}));mi(n,144)}(t,n),mi(t,132),t.end()}function Ic(n,a,t,r,i){return(".bin"===a.slice(-4)?by:qv)(n,t,r,i)}function qo(n,a,t){return(".bin"===a.slice(-4)?va:Ce)(n,t)}function wa(n){return _n("NamedRange",null,{"ss:Name":n.Name,"ss:RefersTo":"="+kg(n.Ref,{r:0,c:0})})}function X4(n,a,t,r,i,s,p){if(!n||null==n.v&&null==n.f)return"";var g={};if(n.f&&(g["ss:Formula"]="="+Ja(kg(n.f,p))),n.F&&n.F.slice(0,a.length)==a){var S=z(n.F.slice(a.length+1));g["ss:ArrayRange"]="RC:R"+(S.r==p.r?"":"["+(S.r-p.r)+"]")+"C"+(S.c==p.c?"":"["+(S.c-p.c)+"]")}if(n.l&&n.l.Target&&(g["ss:HRef"]=Ja(n.l.Target),n.l.Tooltip&&(g["x:HRefScreenTip"]=Ja(n.l.Tooltip))),t["!merges"])for(var R=t["!merges"],L=0;L!=R.length;++L)R[L].s.c!=p.c||R[L].s.r!=p.r||(R[L].e.c>R[L].s.c&&(g["ss:MergeAcross"]=R[L].e.c-R[L].s.c),R[L].e.r>R[L].s.r&&(g["ss:MergeDown"]=R[L].e.r-R[L].s.r));var ne="",re="";switch(n.t){case"z":if(!r.sheetStubs)return"";break;case"n":ne="Number",re=String(n.v);break;case"b":ne="Boolean",re=n.v?"1":"0";break;case"e":ne="Error",re=Ku[n.v];break;case"d":ne="DateTime",re=new Date(n.v).toISOString(),null==n.z&&(n.z=n.z||ct[14]);break;case"s":ne="String",re=function hu(n){return(n+"").replace(eu,function(t){return Ql[t]}).replace(Rl,function(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"})}(n.v||"")}var fe=bh(r.cellXfs,n,r);g["ss:StyleID"]="s"+(21+fe),g["ss:Index"]=p.c+1;var ce="z"==n.t?"":'<Data ss:Type="'+ne+'">'+(null!=n.v?re:"")+"</Data>";return(n.c||[]).length>0&&(ce+=function q4(n){return n.map(function(a){var t=function f(n){return n.replace(/(\r\n|[\r\n])/g," ")}(a.t||""),r=_n("ss:Data",t,{xmlns:"http://www.w3.org/TR/REC-html40"});return _n("Comment",r,{"ss:Author":a.a})}).join("")}(n.c)),_n("Cell",ce,g)}function H4(n,a){var t='<Row ss:Index="'+(n+1)+'"';return a&&(a.hpt&&!a.hpx&&(a.hpx=ym(a.hpt)),a.hpx&&(t+=' ss:AutoFitHeight="0" ss:Height="'+a.hpx+'"'),a.hidden&&(t+=' ss:Hidden="1"')),t+">"}function J4(n,a,t){var r=[],s=t.Sheets[t.SheetNames[n]],p=s?function Sg(n,a,t,r){if(!n||!((r||{}).Workbook||{}).Names)return"";for(var i=r.Workbook.Names,s=[],p=0;p<i.length;++p){var g=i[p];g.Sheet==t&&(g.Name.match(/^_xlfn\./)||s.push(wa(g)))}return s.join("")}(s,0,n,t):"";return p.length>0&&r.push("<Names>"+p+"</Names>"),p=s?function K4(n,a,t,r){if(!n["!ref"])return"";var i=Ut(n["!ref"]),s=n["!merges"]||[],p=0,g=[];n["!cols"]&&n["!cols"].forEach(function(be,Je){Qp(be);var tt=!!be.width,Ze=f0(Je,be),en={"ss:Index":Je+1};tt&&(en["ss:Width"]=xm(Ze.width)),be.hidden&&(en["ss:Hidden"]="1"),g.push(_n("Column",null,en))});for(var S=Array.isArray(n),R=i.s.r;R<=i.e.r;
1++R){for(var L=[H4(R,(n["!rows"]||[])[R])],ne=i.s.c;ne<=i.e.c;++ne){var re=!1;for(p=0;p!=s.length;++p)if(!(s[p].s.c>ne||s[p].s.r>R||s[p].e.c<ne||s[p].e.r<R)){(s[p].s.c!=ne||s[p].s.r!=R)&&(re=!0);break}if(!re){var fe={r:R,c:ne},xe=ge(fe);L.push(X4(S?(n[R]||[])[ne]:n[xe],xe,n,a,0,0,fe))}}L.push("</Row>"),L.length>2&&g.push(L.join(""))}return g.join("")}(s,a):"",p.length>0&&r.push("<Table>"+p+"</Table>"),r.push(function Wh(n,a,t,r){if(!n)return"";var i=[];if(n["!margins"]&&(i.push("<PageSetup>"),n["!margins"].header&&i.push(_n("Header",null,{"x:Margin":n["!margins"].header})),n["!margins"].footer&&i.push(_n("Footer",null,{"x:Margin":n["!margins"].footer})),i.push(_n("PageMargins",null,{"x:Bottom":n["!margins"].bottom||"0.75","x:Left":n["!margins"].left||"0.7","x:Right":n["!margins"].right||"0.7","x:Top":n["!margins"].top||"0.75"})),i.push("</PageSetup>")),r&&r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[t])if(r.Workbook.Sheets[t].Hidden)i.push(_n("Visible",1==r.Workbook.Sheets[t].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var s=0;s<t&&(!r.Workbook.Sheets[s]||r.Workbook.Sheets[s].Hidden);++s);s==t&&i.push("<Selected/>")}return((((r||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push("<DisplayRightToLeft/>"),n["!protect"]&&(i.push(zt("ProtectContents","True")),n["!protect"].objects&&i.push(zt("ProtectObjects","True")),n["!protect"].scenarios&&i.push(zt("ProtectScenarios","True")),null==n["!protect"].selectLockedCells||n["!protect"].selectLockedCells?null!=n["!protect"].selectUnlockedCells&&!n["!protect"].selectUnlockedCells&&i.push(zt("EnableSelection","UnlockedCells")):i.push(zt("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(p){n["!protect"][p[0]]&&i.push("<"+p[1]+"/>")})),0==i.length?"":_n("WorksheetOptions",i.join(""),{xmlns:ka.x})}(s,0,n,t)),r.join("")}function Z4(n,a){a||(a={}),n.SSF||(n.SSF=Kr(ct)),n.SSF&&(Nt(),dt(n.SSF),a.revssf=er(n.SSF),a.revssf[n.SSF[65535]]=0,a.ssf=n.SSF,a.cellXfs=[],bh(a.cellXfs,{},{revssf:{General:0}}));var t=[];t.push(function As(n,a){var t=[];return n.Props&&t.push(function rg(n,a){var t=[];return Wi(Sh).map(function(r){for(var i=0;i<Ec.length;++i)if(Ec[i][1]==r)return Ec[i];for(i=0;i<Cf.length;++i)if(Cf[i][1]==r)return Cf[i];throw r}).forEach(function(r){if(null!=n[r[1]]){var i=a&&a.Props&&null!=a.Props[r[1]]?a.Props[r[1]]:n[r[1]];"date"===r[2]&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"Z")),"number"==typeof i?i=String(i):!0===i||!1===i?i=i?"1":"0":i instanceof Date&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"")),t.push(zt(Sh[r[1]]||r[1],i))}}),_n("DocumentProperties",t.join(""),{xmlns:ka.o})}(n.Props,a)),n.Custprops&&t.push(function ag(n,a){var t=["Worksheets","SheetNames"],r="CustomDocumentProperties",i=[];return n&&Wi(n).forEach(function(s){if(Object.prototype.hasOwnProperty.call(n,s)){for(var p=0;p<Ec.length;++p)if(s==Ec[p][1])return;for(p=0;p<Cf.length;++p)if(s==Cf[p][1])return;for(p=0;p<t.length;++p)if(s==t[p])return;var g=n[s],S="string";"number"==typeof g?(S="float",g=String(g)):!0===g||!1===g?(S="boolean",g=g?"1":"0"):g=String(g),i.push(_n(Vu(s),g,{"dt:dt":S}))}}),a&&Wi(a).forEach(function(s){if(Object.prototype.hasOwnProperty.call(a,s)&&(!n||!Object.prototype.hasOwnProperty.call(n,s))){var p=a[s],g="string";"number"==typeof p?(g="float",p=String(p)):!0===p||!1===p?(g="boolean",p=p?"1":"0"):p instanceof Date?(g="dateTime.tz",p=p.toISOString()):p=String(p),i.push(_n(Vu(s),p,{"dt:dt":g}))}}),"<"+r+' xmlns="'+ka.o+'">'+i.join("")+"</"+r+">"}(n.Props,n.Custprops)),t.join("")}
1(n,a)),t.push(""),t.push(""),t.push("");for(var r=0;r<n.SheetNames.length;++r)t.push(_n("Worksheet",J4(r,a,n),{"ss:Name":Ja(n.SheetNames[r])}));return t[2]=function rf(n,a){var t=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return a.cellXfs.forEach(function(r,i){var s=[];s.push(_n("NumberFormat",null,{"ss:Format":Ja(ct[r.numFmtId])}));var p={"ss:ID":"s"+(21+i)};t.push(_n("Style",s.join(""),p))}),_n("Styles",t.join(""))}(0,a),t[3]=function mc(n){if(!((n||{}).Workbook||{}).Names)return"";for(var a=n.Workbook.Names,t=[],r=0;r<a.length;++r){var i=a[r];null==i.Sheet&&(i.Name.match(/^_xlfn\./)||t.push(wa(i)))}return _n("Names",t.join(""))}(n),Gr+_n("Workbook",t.join(""),{xmlns:ka.ss,"xmlns:o":ka.o,"xmlns:x":ka.x,"xmlns:ss":ka.ss,"xmlns:dt":ka.dt,"xmlns:html":ka.html})}var m1={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};var g1={0:{f:function Ab(n,a){var t={},r=n.l+a;t.r=n.read_shift(4),n.l+=4;var i=n.read_shift(2);n.l+=1;var s=n.read_shift(1);return n.l=r,7&s&&(t.level=7&s),16&s&&(t.hidden=!0),32&s&&(t.hpt=i/20),t}},1:{f:function Eb(n){return[cd(n)]}},2:{f:function Wb(n){return[cd(n),_f(n),"n"]}},3:{f:function Rb(n){return[cd(n),n.read_shift(1),"e"]}},4:{f:function Db(n){return[cd(n),n.read_shift(1),"b"]}},5:{f:function zb(n){return[cd(n),fl(n),"n"]}},6:{f:function Hb(n){return[cd(n),Qa(n),"str"]}},7:{f:function Nb(n){return[cd(n),n.read_shift(4),"s"]}},8:{f:function n2(n,a,t){var r=n.l+a,i=cd(n);i.r=t["!row"];var p=[i,Qa(n),"str"];if(t.cellFormula){n.l+=2;var g=Qm(n,r-n.l,t);p[3]=Eu(g,0,i,t.supbooks,t)}else n.l=r;return p}},9:{f:function ey(n,a,t){var r=n.l+a,i=cd(n);i.r=t["!row"];var p=[i,fl(n),"n"];if(t.cellFormula){n.l+=2;var g=Qm(n,r-n.l,t);p[3]=Eu(g,0,i,t.supbooks,t)}else n.l=r;return p}},10:{f:function Zb(n,a,t){var r=n.l+a,i=cd(n);i.r=t["!row"];var p=[i,n.read_shift(1),"b"];if(t.cellFormula){n.l+=2;var g=Qm(n,r-n.l,t);p[3]=Eu(g,0,i,t.supbooks,t)}else n.l=r;return p}},11:{f:function Qb(n,a,t){var r=n.l+a,i=cd(n);i.r=t["!row"];var p=[i,n.read_shift(1),"e"];if(t.cellFormula){n.l+=2;var g=Qm(n,r-n.l,t);p[3]=Eu(g,0,i,t.supbooks,t)}else n.l=r;return p}},12:{f:function Mb(n){return[vu(n)]}},13:{f:function W_(n){return[vu(n),_f(n),"n"]}},14:{f:function Qv(n){return[vu(n),n.read_shift(1),"e"]}},15:{f:function jb(n){return[vu(n),n.read_shift(1),"b"]}},16:{f:function e2(n){return[vu(n),fl(n),"n"]}},17:{f:function t2(n){return[vu(n),Qa(n),"str"]}},18:{f:function Gb(n){return[vu(n),n.read_shift(4),"s"]}},19:{f:nc},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function It(n,a,t){var r=n.l+a;n.l+=4,n.l+=1;var i=n.read_shift(4),s=$u(n),p=wm(n,0,t),g=Ac(n);n.l=r;var S={Name:s,Ptg:p};return i<268435455&&(S.Sheet=i),g&&(S.Comment=g),S}},40:{},42:{},43:{f:function q1(n,a,t){var r={};r.sz=n.read_shift(2)/20;var i=function ru(n){var a=n.read_shift(1);return n.l++,{fBold:1&a,fItalic:2&a,fUnderline:4&a,fStrikeout:8&a,fOutline:16&a,fShadow:32&a,fCondense:64&a,fExtend:128&a}}(n);switch(i.fItalic&&(r.italic=1),i.fCondense&&(r.condense=1),i.fExtend&&(r.extend=1),i.fShadow&&(r.shadow=1),i.fOutline&&(r.outline=1),i.fStrikeout&&(r.strike=1),700===n.read_shift(2)&&(r.bold=1),n.read_shift(2)){case 1:r.vertAlign="superscript";break;case 2:r.vertAlign="subscript"}var p=n.read_shift(1);0!=p&&(r.underline=p);var g=n.read_shift(1);g>0&&(r.family=g);var S=n.read_shift(1);switch(S>0&&(r.charset=S),n.l++,r.color=function Lf(n){var a={},r=n.read_shift(1)>>>1,i=n.read_shift(1),s=n.read_shift(2,"i"),p=n.read_shift(1),g=n.read_shift(1),S=n.read_shift(1);switch(n.l++,r){case 0:a.auto=1;break;case 1:a.index=i;var R=Hu[i];R&&(a.rgb=zh(R));break;case 2:a.rgb=zh([p,g,S]);break;case 3:a.theme=i}return 0!=s&&(a.tint=s>0?s/32767:s/32768),a}(n),n.read_shift(1)){case 1:r.scheme="major";break;case 2:r.scheme="minor"}return r.name=Qa(n),r}},44:{f:function $1(n,a){return[n.read_shift(2),Qa(n)]}},45:{f:K1},46:{f:Z1},47:{f:function J1(n,a){var t=n.l+a,r=n.read_shift(2),i=n.read_shift(2);return n.l=t,{ixfe:r,numFmtId:i}}},48:{},49:{f:function Xa(n){return n.read_shift(4,"i")}},50:{},51:{f:function m_(n){for(var a=[],t=n.read_shift(4);t-- >0;)a.push([n.read_shift(4),n.read_shift(4)]);return a}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:function Ff(n,a,t){if(!t.cellStyles)return ul(n,a);var r=t&&t.biff>=12?4:2,i=n.read_shift(r),s=n.read_shift(r),p=n.read_shift(r),g=n.read_shift(r),S=n.read_shift(2);2==r&&(n.l+=2);var R={s:i,e:s,w:p,ixfe:g,flags:S};return(t.biff>=5||!t.biff)&&(R.level=S>>8&7),R}},62:{f:function Xb(n){return[cd(n),nc(n),"is"]}}
1,63:{f:function y_(n){var a={};a.i=n.read_shift(4);var t={};t.r=n.read_shift(4),t.c=n.read_shift(4),a.r=ge(t);var r=n.read_shift(1);return 2&r&&(a.l="1"),8&r&&(a.a="1"),a}},64:{f:function d2(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:ul,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function s2(n){var a=n.read_shift(2);return n.l+=28,{RTL:32&a}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function Kv(n,a){var t={},r=n[n.l];return++n.l,t.above=!(64&r),t.left=!(128&r),n.l+=18,t.name=Wu(n,a-19),t}},148:{f:Y_,p:16},151:{f:function ay(){}},152:{},153:{f:function Oe(n,a){var t={},r=n.read_shift(4);t.defaultThemeVersion=n.read_shift(4);var i=a>8?Qa(n):"";return i.length>0&&(t.CodeName=i),t.autoCompressPictures=!!(65536&r),t.backupFile=!!(64&r),t.checkCompatibility=!!(4096&r),t.date1904=!!(1&r),t.filterPrivacy=!!(8&r),t.hidePivotFieldList=!!(1024&r),t.promptedSolutions=!!(16&r),t.publishItems=!!(2048&r),t.refreshAllConnections=!!(262144&r),t.saveExternalLinkValues=!!(128&r),t.showBorderUnselectedTables=!!(4&r),t.showInkAnnotation=!!(32&r),t.showObjects=["all","placeholders","none"][r>>13&3],t.showPivotChartFilter=!!(32768&r),t.updateLinks=["userSet","never","always"][r>>8&3],t}},154:{},155:{},156:{f:function G(n,a){var t={};return t.Hidden=n.read_shift(4),t.iTabID=n.read_shift(4),t.strRelID=sp(n,a-8),t.name=Qa(n),t}},157:{},158:{},159:{T:1,f:function Gg(n){return[n.read_shift(4),n.read_shift(4)]}},160:{T:-1},161:{T:1,f:Td},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:ty},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function h_(n,a){return{flags:n.read_shift(4),version:n.read_shift(4),name:Qa(n)}}},336:{T:-1},337:{f:function __(n){return n.l+=4,0!=n.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:sp},357:{},358:{},359:{},360:{T:1},361:{},362:{f:function vh(n,a,t){if(t.biff<8)return function Ym(n,a,t){3==n[n.l+1]&&n[n.l]++;var r=fh(n,0,t);return 3==r.charCodeAt(0)?r.slice(1):r}(n,0,t);for(var r=[],i=n.l+a,s=n.read_shift(t.biff>8?4:2);0!=s--;)r.push(wi(n,0,t));if(n.l!=i)throw new Error("Bad ExternSheet: "+n.l+" != "+i);return r}},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function oy(n,a,t){var r=n.l+a,i=Zh(n),s=n.read_shift(1),p=[i];if(p[2]=s,t.cellFormula){var g=O_(n,r-n.l,t);p[1]=g}else n.l=r;return p}},427:{f:function $_(n,a,t){var r=n.l+a,s=[Td(n,16)];if(t.cellFormula){var p=wg(n,r-n.l,t);s[1]=p,n.l=r}else n.l=r;return s}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function sy(n){var a={};return o2.forEach(function(t){a[t]=fl(n)}),a}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function Tb(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function r2(n,a){var t=n.l+a,r=Td(n,16),i=Ac(n),s=Qa(n),p=Qa(n),g=Qa(n);n.l=t;var S={rfx:r,relId:i,loc:s,display:g};return p&&(S.Tooltip=p),S}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:sp},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:Fi},633:{T:1},634:{T:-1},635:{T:1,f:function _i(n){var a={};a.iauthor=n.read_shift(4);var t=Td(n,16);return a.rfx=t.s,a.ref=ge(t.s),n.l+=16,a}},636:{T:-1},637:{f:wc},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function h2(n,a){return n.l+=10,{name:Qa(n)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function dy(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function rr(n,a,t,r){var i=a;if(!isNaN(i)){var s=r||(t||[]).length||0,p=n.next(4);p.write_shift(2,i),p.write_shift(2,s),s>0&&mu(t)&&n.push(t)}}
1function _1(n,a,t){return n||(n=Rn(7)),n.write_shift(2,a),n.write_shift(2,t),n.write_shift(2,0),n.write_shift(1,0),n}function cC(n,a,t,r){if(null!=a.v)switch(a.t){case"d":case"n":var i="d"==a.t?Sr(Mr(a.v)):a.v;return void(i==(0|i)&&i>=0&&i<65536?rr(n,2,function F0(n,a,t){var r=Rn(9);return _1(r,n,a),r.write_shift(2,t),r}(t,r,i)):rr(n,3,function k0(n,a,t){var r=Rn(15);return _1(r,n,a),r.write_shift(8,t,"f"),r}(t,r,i)));case"b":case"e":return void rr(n,5,function sC(n,a,t,r){var i=Rn(9);return _1(i,n,a),Nm(t,r||"b",i),i}(t,r,a.v,a.t));case"s":case"str":return void rr(n,4,function lC(n,a,t){var r=Rn(8+2*t.length);return _1(r,n,a),r.write_shift(1,t.length),r.write_shift(t.length,t,"sbcs"),r.l<r.length?r.slice(0,r.l):r}(t,r,(a.v||"").slice(0,255)))}rr(n,1,_1(null,t,r))}function vC(n,a,t,r,i){var s=16+bh(i.cellXfs,a,i);if(null!=a.v||a.bf)if(a.bf)rr(n,6,function Vv(n,a,t,r,i){var s=Bt(a,t,i),p=function Wf(n){if(null==n){var a=Rn(8);return a.write_shift(1,3),a.write_shift(1,0),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(2,65535),a}return Rf("number"==typeof n?n:0)}(n.v),g=Rn(6);g.write_shift(2,33),g.write_shift(4,0);for(var R=Rn(n.bf.length),L=0;L<n.bf.length;++L)R[L]=n.bf[L];return da([s,p,g,R])}(a,t,r,0,s));else switch(a.t){case"d":case"n":rr(n,515,function Kp(n,a,t,r){var i=Rn(14);return Bt(n,a,r,i),Rf(t,i),i}(t,r,"d"==a.t?Sr(Mr(a.v)):a.v,s));break;case"b":case"e":rr(n,517,function gh(n,a,t,r,i,s){var p=Rn(8);return Bt(n,a,r,p),Nm(t,s,p),p}(t,r,a.v,s,0,a.t));break;case"s":case"str":i.bookSST?rr(n,253,function Dh(n,a,t,r){var i=Rn(10);return Bt(n,a,r,i),i.write_shift(4,t),i}(t,r,u0(i.Strings,a.v,i.revStrings),s)):rr(n,516,function Mp(n,a,t,r,i){var s=!i||8==i.biff,p=Rn(+s+8+(1+s)*t.length);return Bt(n,a,r,p),p.write_shift(2,t.length),s&&p.write_shift(1,1),p.write_shift((1+s)*t.length,t,s?"utf16le":"sbcs"),p}(t,r,(a.v||"").slice(0,255),s,i));break;default:rr(n,513,Bt(t,r,s))}else rr(n,513,Bt(t,r,s))}function xC(n,a,t){var L,r=Ks(),i=t.SheetNames[n],s=t.Sheets[i]||{},p=(t||{}).Workbook||{},g=(p.Sheets||[])[n]||{},S=Array.isArray(s),R=8==a.biff,ne="",re=[],fe=Ut(s["!ref"]||"A1"),xe=R?65536:16384;if(fe.e.c>255||fe.e.r>=xe){if(a.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:IV16384");fe.e.c=Math.min(fe.e.c,255),fe.e.r=Math.min(fe.e.c,xe-1)}rr(r,2057,Vc(0,16,a)),rr(r,13,wu(1)),rr(r,12,wu(100)),rr(r,15,Pc(!0)),rr(r,17,Pc(!1)),rr(r,16,Rf(.001)),rr(r,95,Pc(!0)),rr(r,42,Pc(!1)),rr(r,43,Pc(!1)),rr(r,130,wu(1)),rr(r,128,function mh(n){var a=Rn(8);return a.write_shift(4,0),a.write_shift(2,n[0]?n[0]+1:0),a.write_shift(2,n[1]?n[1]+1:0),a}([0,0])),rr(r,131,Pc(!1)),rr(r,132,Pc(!1)),R&&function _C(n,a){if(a){var t=0;a.forEach(function(r,i){++t<=256&&r&&rr(n,125,function $m(n,a){var t=Rn(12);t.write_shift(2,a),t.write_shift(2,a),t.write_shift(2,256*n.width),t.write_shift(2,0);var r=0;return n.hidden&&(r|=1),t.write_shift(1,r),t.write_shift(1,r=n.level||0),t.write_shift(2,0),t}(f0(i,r),i))})}}(r,s["!cols"]),rr(r,512,function mp(n,a){var t=8!=a.biff&&a.biff?2:4,r=Rn(2*t+6);return r.write_shift(t,n.s.r),r.write_shift(t,n.e.r+1),r.write_shift(2,n.s.c),r.write_shift(2,n.e.c+1),r.write_shift(2,0),r}(fe,a)),R&&(s["!links"]=[]);for(var ce=fe.s.r;ce<=fe.e.r;++ce){ne=vs(ce);for(var be=fe.s.c;be<=fe.e.c;++be){ce===fe.s.r&&(re[be]=Za(be)),L=re[be]+ne;var Je=S?(s[ce]||[])[be]:s[L];Je&&(vC(r,Je,ce,be,a),R&&Je.l&&s["!links"].push([L,Je.l]))}}var tt=g.CodeName||g.name||i;return R&&rr(r,574,function dm(n){var a=Rn(18),t=1718;return n&&n.RTL&&(t|=64),a.write_shift(2,t),a.write_shift(4,0),a.write_shift(4,64),a.write_shift(4,0),a.write_shift(4,0),a}((p.Views||[])[0])),R&&(s["!merges"]||[]).length&&rr(r,229,function Dc(n){var a=Rn(2+8*n.length);a.write_shift(2,n.length);for(var t=0;t<n.length;++t)na(n[t],a);return a}(s["!merges"])),R&&function gC(n,a){for(var t=0;t<a["!links"].length;++t){var r=a["!links"][t];rr(n,440,Id(r)),r[1].Tooltip&&rr(n,2048,xs(r))}delete a["!links"]}(r,s),rr(r,442,ye(tt)),R&&function hC(n,a){var t=Rn(19);t.write_shift(4,2151),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(2,3),t.write_shift(1,1),t.write_shift(4,0),rr(n,2151,t),(t=Rn(39)).write_shift(4,2152),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(2,3),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(2,1),t.write_shift(4,4),t.write_shift(2,0),na(Ut(a["!ref"]||"A1"),t),t.write_shift(4,4),rr(n,2152,t)}(r,s),rr(r,10),r.end()}function bC(n,a,t){var r=Ks(),i=(n||{}).Workbook||{},s=i.Sheets||[],p=i.WBProps||{},g=8==t.biff,S=5==t.biff;rr(r,2057,Vc(0,5,t)),"xla"==t.bookType&&rr(r,135),rr(r,225,g?wu(1200):null),rr(r,193,function Lm(n,a){a||(a=Rn(n));for(var t=0;t<n;++t)a.write_shift(1,0);return a}(2)),S&&rr(r,191),S&&rr(r,192),rr(r,226),rr(r,92,function $o(n,a){var t=!a||8==a.biff,r=Rn(t?112:54);for(r.write_shift(8==a.biff?2:1,7),t&&r.write_shift(1,0),r.write_shift(4,859007059),r.write_shift(4,5458548|(t?0:536870912));r.l<r.length;)r.write_shift(1,t?0:32);return r}(0,t)),rr(r,66,wu(g?1200:1252)),g&&rr(r,353,wu(0)),g&&rr(r,448),rr(r,317,function j
1d(n){for(var a=Rn(2*n),t=0;t<n;++t)a.write_shift(2,t+1);return a}(n.SheetNames.length)),g&&n.vbaraw&&rr(r,211),g&&n.vbaraw&&rr(r,442,ye(p.CodeName||"ThisWorkbook")),rr(r,156,wu(17)),rr(r,25,Pc(!1)),rr(r,18,Pc(!1)),rr(r,19,wu(0)),g&&rr(r,431,Pc(!1)),g&&rr(r,444,wu(0)),rr(r,61,function Dd(){var n=Rn(18);return n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,29280),n.write_shift(2,17600),n.write_shift(2,56),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,1),n.write_shift(2,500),n}()),rr(r,64,Pc(!1)),rr(r,141,wu(0)),rr(r,34,Pc("true"==function v2(n){return n.Workbook&&n.Workbook.WBProps&&function _(n){switch(n){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}(n.Workbook.WBProps.date1904)?"true":"false"}(n))),rr(r,14,Pc(!0)),g&&rr(r,439,Pc(!1)),rr(r,218,wu(0)),function fC(n,a,t){rr(n,49,function Oh(n,a){var t=n.name||"Arial",r=a&&5==a.biff,s=Rn(r?15+t.length:16+2*t.length);return s.write_shift(2,20*(n.sz||12)),s.write_shift(4,0),s.write_shift(2,400),s.write_shift(4,0),s.write_shift(2,0),s.write_shift(1,t.length),r||s.write_shift(1,1),s.write_shift((r?1:2)*t.length,t,r?"sbcs":"utf16le"),s}({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},t))}(r,0,t),function pC(n,a,t){a&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var i=r[0];i<=r[1];++i)null!=a[i]&&rr(n,1054,um(i,a[i],t))})}(r,n.SSF,t),function mC(n,a){for(var t=0;t<16;++t)rr(n,224,hh({numFmtId:0,style:!0},0,a));a.cellXfs.forEach(function(r){rr(n,224,hh(r,0,a))})}(r,t),g&&rr(r,352,Pc(!1));var L=r.end(),ne=Ks();g&&rr(ne,140,function Yc(n){return n||(n=Rn(4)),n.write_shift(2,1),n.write_shift(2,1),n}()),g&&t.Strings&&function oC(n,a,t,r){var i=r||(t||[]).length||0;if(i<=8224)return rr(n,a,t,i);var s=a;if(!isNaN(s)){for(var p=t.parts||[],g=0,S=0,R=0;R+(p[g]||8224)<=8224;)R+=p[g]||8224,g++;var L=n.next(4);for(L.write_shift(2,s),L.write_shift(2,R),n.push(t.slice(S,S+R)),S+=R;S<i;){for((L=n.next(4)).write_shift(2,60),R=0;R+(p[g]||8224)<=8224;)R+=p[g]||8224,g++;
1L.write_shift(2,R),n.push(t.slice(S,S+R)),S+=R}}}(ne,252,function ud(n,a){var t=Rn(8);t.write_shift(4,n.Count),t.write_shift(4,n.Unique);for(var r=[],i=0;i<n.length;++i)r[i]=F(n[i]);var s=da([t].concat(r));return s.parts=[t.length].concat(r.map(function(p){return p.length})),s}(t.Strings)),rr(ne,10);var re=ne.end(),fe=Ks(),xe=0,ce=0;for(ce=0;ce<n.SheetNames.length;++ce)xe+=(g?12:11)+(g?2:1)*n.SheetNames[ce].length;var be=L.length+xe+re.length;for(ce=0;ce<n.SheetNames.length;++ce)rr(fe,133,uc({pos:be,hs:(s[ce]||{}).Hidden||0,dt:0,name:n.SheetNames[ce]},t)),be+=a[ce].length;var tt=fe.end();if(xe!=tt.length)throw new Error("BS8 "+xe+" != "+tt.length);var Ze=[];return L.length&&Ze.push(L),tt.length&&Ze.push(tt),re.length&&Ze.push(re),da(Ze)}function Ey(n,a){for(var t=0;t<=n.SheetNames.length;++t){var r=n.Sheets[n.SheetNames[t]];r&&r["!ref"]&&rt(r["!ref"]).e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+n.SheetNames[t]+"' extends beyond column IV (255). Data may be lost.")}var s=a||{};switch(s.biff||2){case 8:case 5:return function yC(n,a){var t=a||{},r=[];n&&!n.SSF&&(n.SSF=Kr(ct)),n&&n.SSF&&(Nt(),dt(n.SSF),t.revssf=er(n.SSF),t.revssf[n.SSF[65535]]=0,t.ssf=n.SSF),t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,A2(t),t.cellXfs=[],bh(t.cellXfs,{},{revssf:{General:0}}),n.Props||(n.Props={});for(var i=0;i<n.SheetNames.length;++i)r[r.length]=xC(i,t,n);return r.unshift(bC(n,r,t)),da(r)}(n,a);case 4:case 3:case 2:return function uC(n,a){var t=a||{};null!=Ma&&null==t.dense&&(t.dense=Ma);for(var r=Ks(),i=0,s=0;s<n.SheetNames.length;++s)n.SheetNames[s]==t.sheet&&(i=s);if(0==i&&t.sheet&&n.SheetNames[0]!=t.sheet)throw new Error("Sheet not found: "+t.sheet);return rr(r,4==t.biff?1033:3==t.biff?521:9,Vc(0,16,t)),function dC(n,a,t,r){var p,i=Array.isArray(a),s=Ut(a["!ref"]||"A1"),g="",S=[];if(s.e.c>255||s.e.r>16383){if(r.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:IV16384");s.e.c=Math.min(s.e.c,255),s.e.r=Math.min(s.e.c,16383),p=gt(s)}for(var R=s.s.r;R<=s.e.r;++R){g=vs(R);for(var L=s.s.c;L<=s.e.c;++L){R===s.s.r&&(S[L]=Za(L)),p=S[L]+g;var ne=i?(a[R]||[])[L]:a[p];ne&&cC(n,ne,R,L)}}}(r,n.Sheets[n.SheetNames[i]],0,t),rr(r,10),r.end()}(n,a)}throw new Error("invalid type "+s.bookType+" for BIFF")}function My(n,a,t,r){for(var i=n["!merges"]||[],s=[],p=a.s.c;p<=a.e.c;++p){for(var g=0,S=0,R=0;R<i.length;++R)if(!(i[R].s.r>t||i[R].s.c>p||i[R].e.r<t||i[R].e.c<p)){if(i[R].s.r<t||i[R].s.c<p){g=-1;break}g=i[R].e.r-i[R].s.r+1,S=i[R].e.c-i[R].s.c+1;break}if(!(g<0)){var L=ge({r:t,c:p}),ne=r.dense?(n[t]||[])[p]:n[L],re=ne&&null!=ne.v&&(ne.h||wd(ne.w||(ki(ne),ne.w)||""))||"",fe={};g>1&&(fe.rowspan=g),S>1&&(fe.colspan=S),r.editable?re='<span contenteditable="true">'+re+"</span>":ne&&(fe["data-t"]=ne&&ne.t||"z",null!=ne.v&&(fe["data-v"]=ne.v),null!=ne.z&&(fe["data-z"]=ne.z),ne.l&&"#"!=(ne.l.Target||"#").charAt(0)&&(re='<a href="'+ne.l.Target+'">'+re+"</a>")),fe.id=(r.id||"sjs")+"-"+L,s.push(_n("td",re,fe))}}return"<tr>"+s.join("")+"</tr>"}var Oy='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',Dy="</body></html>";function jy(n,a){var t=a||{},i=null!=t.footer?t.footer:Dy,s=[null!=t.header?t.header:Oy],p=rt(n["!ref"]);t.dense=Array.isArray(n),s.push(function Iy(n,a,t){return[].join("")+"<table"+(t&&t.id?' id="'+t.id+'"':"")+">"}(0,0,t));for(var g=p.s.r;g<=p.e.r;++g)s.push(My(n,p,g,t));return s.push("</table>"+i),s.join("")}var AC=function(){var n=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),a="<office:document-styles "+Hn({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+n+"</office:document-styles>";return function(){return Gr+a}}(),Uy=function(){var n=function(s){return Ja(s).replace(/ +/g,function(p){return'<text:s text:c="'+p.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},a=" <table:table-cell />\n",r=function(s,p,g){var S=[];S.push(' <table:table table:name="'+Ja(p.SheetNames[g])+'" table:style-name="ta1">\n');var R=0,L=0,ne=rt(s["!ref"]||"A1"),re=s["!merges"]||[],fe=0,xe=Array.isArray(s);if(s["!cols"])for(L=0;L<=ne.e.c;++L)S.push(" <table:table-column"+(s["!cols"][L]?' table:style-name="co'+s["!cols"][L].ods+'"':"")+"></table:table-column>\n");var be=s["!rows"]||[];for(R=0;R<ne.s.r;++R)S.push(" <table:table-row"+(be[R]?' table:style-name="ro'+be[R].ods+'"':"")+"></table:table-row>\n");for(;R<=ne.e.r;++R){for(S.push(" <table:table-row"+(be[R]?' table:style-name="ro'+be[R].ods+'"':"")+">\n"),L=0;L<ne.s.c;++L)S.push(a);for(;L<=ne.e.c;++L){var Je=!1,tt={},Ze="";for(fe=0;fe!=re.length;++fe)if(!(re[fe].s.c>L||re[fe].s.r>R||re[fe].e.c<L||re[fe].e.r<R)){(re[fe].s.c!=L||re[fe].s.r!=R)&&(Je=!0),tt["table:number-columns-spanned"]=re[fe].e.c-re[fe].s.c+1,tt["table:number-rows-spanned"]=re[fe].e.r-re[fe].s.r+1;break}if(Je)S.push(" <table:covered-table-cell/>\n");else{var en=ge({r:R,c:L}),vn=xe?(s[R]||[])[L]:s[en];if(vn&&vn.f&&(tt["table:formula"]=Ja(D_(vn.f)),vn.F&&vn.F.slice(0,en.length)==en)){var Kn=rt(vn.F);tt["table:number-matrix-columns-spanned"]=Kn.e.c-Kn.s.c+1,tt["table:number-matrix-rows-spanned"]=Kn.e.r-Kn.s.r+1}if(vn){switch(vn.t){case"b":Ze=vn.v?"TRUE":"FALSE",tt["office:value-type"]="boolean",tt["office:boolean-value"]=vn.v?"true":"false";break;case"n":Ze=vn.w||String(vn.v||0),tt["office:value-type"]="float",tt["office:value"]=vn.v||0;break;case"s":case"str":Ze=null==vn.v?"":vn.v,tt["office:value-type"]="string";break;case"d":Ze=vn.w||Mr(vn.v).toISOString(),tt["office:value-type"]="date",tt["office:date-value"]=Mr(vn.v).toISOString(),tt["table:style-name"]="ce1";break;default:S.push(a);continue}var Tt=n(Ze);if(vn.l&&vn.l.Target){var hn=vn.l.Target;"#"!=(hn="#"==hn.charAt(0)?"#"+I_(hn.slice(1)):hn).charAt(0)&&!hn.match(/^\w+:/)&&(hn="../"+hn),Tt=_n("text:a",Tt,{"xlink:href":hn.replace(/&/g,"&")})}S.push(" "+_n("table:table-cell",_n("text:p",Tt,{}),tt)+"\n")}else S.push(a)}}S.push(" </table:table-row>\n")}return S.push(" </table:table>\n"),S.join("")};return function(p,g){var S=[Gr],R=Hn({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office
1:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),L=Hn({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==g.bookType?(S.push("<office:document"+R+L+">\n"),S.push(yf().replace(/office:document-meta/g,"office:meta"))):S.push("<office:document-content"+R+">\n"),function(s,p){s.push(" <office:automatic-styles>\n"),s.push(' <number:date-style style:name="N37" number:automatic-order="true">\n'),s.push(' <number:month number:style="long"/>\n'),s.push(" <number:text>/</number:text>\n"),s.push(' <number:day number:style="long"/>\n'),s.push(" <number:text>/</number:text>\n"),s.push(" <number:year/>\n"),s.push(" </number:date-style>\n");var g=0;p.SheetNames.map(function(R){return p.Sheets[R]}).forEach(function(R){if(R&&R["!cols"])for(var L=0;L<R["!cols"].length;++L)if(R["!cols"][L]){var ne=R["!cols"][L];if(null==ne.width&&null==ne.wpx&&null==ne.wch)continue;Qp(ne),ne.ods=g;var re=R["!cols"][L].wpx+"px";s.push(' <style:style style:name="co'+g+'" style:family="table-column">\n'),s.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+re+'"/>\n'),s.push(" </style:style>\n"),++g}});var S=0;p.SheetNames.map(function(R){return p.Sheets[R]}).forEach(function(R){if(R&&R["!rows"])for(var L=0;L<R["!rows"].length;++L)if(R["!rows"][L]){R["!rows"][L].ods=S;var ne=R["!rows"][L].hpx+"px";s.push(' <style:style style:name="ro'+S+'" style:family="table-row">\n'),s.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+ne+'"/>\n'),s.push(" </style:style>\n"),++S}}),s.push(' <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">\n'),s.push(' <style:table-properties table:display="true" style:writing-mode="lr-tb"/>\n'),s.push(" </style:style>\n"),s.push(' <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>\n'),s.push(" </office:automatic-styles>\n")}(S,p),S.push(" <office:body>\n"),S.push(" <office:spreadsheet>\n");for(var ne=0;ne!=p.SheetNames.length;++ne)S.push(r(p.Sheets[p.SheetNames[ne]],p,ne));return S.push(" </office:spreadsheet>\n"),S.push(" </office:body>\n"),S.push("fods"==g.bookType?"</office:document>":"</office:document-content>"),S.join("")}}();function Yy(n,a){if("fods"==a.bookType)return Uy(n,a);var t=yl(),r="",i=[],s=[];return Ii(t,r="mimetype","application/vnd.oasis.opendocument.spreadsheet"),Ii(t,r="content.xml",Uy(n,a)),i.push([r,"text/xml"]),s.push([r,"ContentFile"]),Ii(t,r="styles.xml",AC(n,a)),i.push([r,"text/xml"]),s.push([r,"StylesFile"]),Ii(t,r="meta.xml",Gr+yf()),i.push([r,"text/xml"]),s.push([r,"MetadataFile"]),Ii(t,r="manifest.rdf",function tm(n){var a=[Gr];a.push('<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n');for(var t=0;t!=n.length;++t)a.push(ch(n[t][0],n[t][1])),a.push(co("",n[t][0]));return a.push(ch("","Document","pkg")),a.push("</rdf:RDF>"),a.join("")}(s)),i.push([r,"application/rdf+xml"]),Ii(t,r="META-INF/manifest.xml",function yh(n){var a=[Gr];a.push('<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">\n'),a.push(' <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>\n');for(var t=0;t<n.length;++t)a.push(' <manifest:file-entry manifest:full-path="'+n[t][0]+'" manifest:media-type="'+n[t][1]+'"/>\n');return a.push("</manifest:manifest>"),a.join("")}(i)),t}function Eg(n){return new DataView(n.buffer,n.byteOffset,n.byteLength)}function TC(n){return typeof TextEncoder<"u"?(new TextEncoder).encode(n):ss(V(n))}function tg(n){var a=n.reduce(function(i,s){return i+s.length},0),t=new Uint8Array(a),r=0;
1return n.forEach(function(i){t.set(i,r),r+=i.length}),t}function v1(n,a){var t=a?a[0]:0,r=127&n[t];e:if(n[t++]>=128&&(r|=(127&n[t])<<7,n[t++]<128||(r|=(127&n[t])<<14,n[t++]<128)||(r|=(127&n[t])<<21,n[t++]<128)||(r+=(127&n[t])*Math.pow(2,28),++t,n[t++]<128)||(r+=(127&n[t])*Math.pow(2,35),++t,n[t++]<128)||(r+=(127&n[t])*Math.pow(2,42),++t,n[t++]<128)))break e;return a&&(a[0]=t),r}function Ns(n){var a=new Uint8Array(7);a[0]=127&n;var t=1;e:if(n>127){if(a[t-1]|=128,a[t]=n>>7&127,++t,n<=16383||(a[t-1]|=128,a[t]=n>>14&127,++t,n<=2097151)||(a[t-1]|=128,a[t]=n>>21&127,++t,n<=268435455)||(a[t-1]|=128,a[t]=n/256>>>21&127,++t,n<=34359738367)||(a[t-1]|=128,a[t]=n/65536>>>21&127,++t,n<=4398046511103))break e;a[t-1]|=128,a[t]=n/16777216>>>21&127,++t}return a.slice(0,t)}function Xc(n){var a=0,t=127&n[a];e:if(n[a++]>=128){if(t|=(127&n[a])<<7,n[a++]<128||(t|=(127&n[a])<<14,n[a++]<128)||(t|=(127&n[a])<<21,n[a++]<128))break e;t|=(127&n[a])<<28}return t}function bs(n){for(var a=[],t=[0];t[0]<n.length;){var g,r=t[0],i=v1(n,t),s=7&i,p=0;if(0==(i=Math.floor(i/8)))break;switch(s){case 0:for(var S=t[0];n[t[0]++]>=128;);g=n.slice(S,t[0]);break;case 5:g=n.slice(t[0],t[0]+(p=4)),t[0]+=p;break;case 1:g=n.slice(t[0],t[0]+(p=8)),t[0]+=p;break;case 2:p=v1(n,t),g=n.slice(t[0],t[0]+p),t[0]+=p;break;default:throw new Error("PB Type ".concat(s," for Field ").concat(i," at offset ").concat(r))}var R={data:g,type:s};null==a[i]?a[i]=[R]:a[i].push(R)}return a}function Pu(n){var a=[];return n.forEach(function(t,r){t.forEach(function(i){i.data&&(a.push(Ns(8*r+i.type)),2==i.type&&a.push(Ns(i.data.length)),a.push(i.data))})}),tg(a)}function nh(n){for(var a,t=[],r=[0];r[0]<n.length;){var i=v1(n,r),s=bs(n.slice(r[0],r[0]+i));r[0]+=i;var p={id:Xc(s[1][0].data),messages:[]};s[2].forEach(function(g){var S=bs(g.data),R=Xc(S[3][0].data);p.messages.push({meta:S,data:n.slice(r[0],r[0]+R)}),r[0]+=R}),null!=(a=s[3])&&a[0]&&(p.merge=Xc(s[3][0].data)>>>0>0),t.push(p)}return t}function m0(n){var a=[];return n.forEach(function(t){var r=[];r[1]=[{data:Ns(t.id),type:0}],r[2]=[],null!=t.merge&&(r[3]=[{data:Ns(+!!t.merge),type:0}]);var i=[];t.messages.forEach(function(p){i.push(p.data),p.meta[3]=[{type:0,data:Ns(p.data.length)}],r[2].push({data:Pu(p.meta),type:2})});var s=Pu(r);a.push(Ns(s.length)),a.push(s),i.forEach(function(p){return a.push(p)})}),tg(a)}function MC(n,a){if(0!=n)throw new Error("Unexpected Snappy chunk type ".concat(n));for(var t=[0],r=v1(a,t),i=[];t[0]<a.length;){var s=3&a[t[0]];if(0!=s){var S=0,R=0;if(1==s?(R=4+(a[t[0]]>>2&7),S=(224&a[t[0]++])<<3,S|=a[t[0]++]):(R=1+(a[t[0]++]>>2),2==s?(S=a[t[0]]|a[t[0]+1]<<8,t[0]+=2):(S=(a[t[0]]|a[t[0]+1]<<8|a[t[0]+2]<<16|a[t[0]+3]<<24)>>>0,t[0]+=4)),i=[tg(i)],0==S)throw new Error("Invalid offset 0");if(S>i[0].length)throw new Error("Invalid offset beyond length");if(R>=S)for(i.push(i[0].slice(-S)),R-=S;R>=i[i.length-1].length;)i.push(i[i.length-1]),R-=i[i.length-1].length;i.push(i[0].slice(-S,-S+R))}else{var p=a[t[0]++]>>2;if(p<60)++p;else{var g=p-59;p=a[t[0]],g>1&&(p|=a[t[0]+1]<<8),g>2&&(p|=a[t[0]+2]<<16),g>3&&(p|=a[t[0]+3]<<24),p>>>=0,p++,t[0]+=g}i.push(a.slice(t[0],t[0]+p)),t[0]+=p}}var L=tg(i);if(L.length!=r)throw new Error("Unexpected length: ".concat(L.length," != ").concat(r));return L}function ih(n){for(var a=[],t=0;t<n.length;){var r=n[t++],i=n[t]|n[t+1]<<8|n[t+2]<<16;a.push(MC(r,n.slice(t+=3,t+i))),t+=i}if(t!==n.length)throw new Error("data is not a valid framed stream!");return tg(a)}function g0(n){for(var a=[],t=0;t<n.length;){var r=Math.min(n.length-t,268435455),i=new Uint8Array(4);a.push(i);var s=Ns(r),p=s.length;a.push(s),r<=60?(p++,a.push(new Uint8Array([r-1<<2]))):r<=256?(p+=2,a.push(new Uint8Array([240,r-1&255]))):r<=65536?(p+=3,a.push(new Uint8Array([244,r-1&255,r-1>>8&255]))):r<=16777216?(p+=4,a.push(new Uint8Array([248,r-1&255,r-1>>8&255,r-1>>16&255]))):r<=4294967296&&(p+=5,a.push(new Uint8Array([252,r-1&255,r-1>>8&255,r-1>>16&255,r-1>>>24&255]))),a.push(n.slice(t,t+r)),p+=r,i[0]=0,i[1]=255&p,i[2]=p>>8&255,i[3]=p>>16&255,t+=r}return tg(a)}function C2(n,a){var t=new Uint8Array(32),r=Eg(t),i=12,s=0;switch(t[0]=5,n.t){case"n":t[1]=2,function PC(n,a,t){var r=Math.floor(0==t?0:Math.LOG10E*Math.log(Math.abs(t)))+6176-20,i=t/Math.pow(10,r-6176);n[a+15]|=r>>7,n[a+14]|=(127&r)<<1;for(var s=0;i>=1;
1++s,i/=256)n[a+s]=255&i;n[a+15]|=t>=0?0:128}(t,i,n.v),s|=1,i+=16;break;case"b":t[1]=6,r.setFloat64(i,n.v?1:0,!0),s|=2,i+=8;break;case"s":if(-1==a.indexOf(n.v))throw new Error("Value ".concat(n.v," missing from SST!"));t[1]=3,r.setUint32(i,a.indexOf(n.v),!0),s|=8,i+=4;break;default:throw"unsupported cell type "+n.t}return r.setUint32(8,s,!0),t.slice(0,i)}function k2(n,a){var t=new Uint8Array(32),r=Eg(t),i=12,s=0;switch(t[0]=3,n.t){case"n":t[2]=2,r.setFloat64(i,n.v,!0),s|=32,i+=8;break;case"b":t[2]=6,r.setFloat64(i,n.v?1:0,!0),s|=32,i+=8;break;case"s":if(-1==a.indexOf(n.v))throw new Error("Value ".concat(n.v," missing from SST!"));t[2]=3,r.setUint32(i,a.indexOf(n.v),!0),s|=16,i+=4;break;default:throw"unsupported cell type "+n.t}return r.setUint32(4,s,!0),t.slice(0,i)}function Tf(n){return v1(bs(n)[1][0].data)}function VC(n,a,t){var r,i,s,p;if(null==(r=n[6])||!r[0]||null==(i=n[7])||!i[0])throw"Mutation only works on post-BNC storages!";if((null==(p=null==(s=n[8])?void 0:s[0])?void 0:p.data)&&Xc(n[8][0].data)>0)throw"Math only works with normal offsets";for(var S=0,R=Eg(n[7][0].data),L=0,ne=[],re=Eg(n[4][0].data),fe=0,xe=[],ce=0;ce<a.length;++ce)if(null!=a[ce]){var be,Je;switch(R.setUint16(2*ce,L,!0),re.setUint16(2*ce,fe,!0),typeof a[ce]){case"string":be=C2({t:"s",v:a[ce]},t),Je=k2({t:"s",v:a[ce]},t);break;case"number":be=C2({t:"n",v:a[ce]},t),Je=k2({t:"n",v:a[ce]},t);break;case"boolean":be=C2({t:"b",v:a[ce]},t),Je=k2({t:"b",v:a[ce]},t);break;default:throw new Error("Unsupported value "+a[ce])}ne.push(be),L+=be.length,xe.push(Je),fe+=Je.length,++S}else R.setUint16(2*ce,65535,!0),re.setUint16(2*ce,65535);for(n[2][0].data=Ns(S);ce<n[7][0].data.length/2;++ce)R.setUint16(2*ce,65535,!0),re.setUint16(2*ce,65535,!0);return n[6][0].data=tg(ne),n[3][0].data=tg(xe),S}function A2(n){!function qy(n){return function(t){for(var r=0;r!=n.length;++r){var i=n[r];void 0===t[i[0]]&&(t[i[0]]=i[1]),"n"===i[2]&&(t[i[0]]=Number(t[i[0]]))}}}([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(n)}function XC(n,a){return"ods"==a.bookType?Yy(n,a):"numbers"==a.bookType?function zC(n,a){if(!a||!a.numbers)throw new Error("Mu
1st pass a `numbers` option -- check the README");var t=n.Sheets[n.SheetNames[0]];n.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var r=rt(t["!ref"]);r.s.r=r.s.c=0;var i=!1;r.e.c>9&&(i=!0,r.e.c=9),r.e.r>49&&(i=!0,r.e.r=49),i&&console.error("The Numbers writer is currently limited to ".concat(gt(r)));var s=Q_(t,{range:r,header:1}),p=["~Sh33tJ5~"];s.forEach(function(Wt){return Wt.forEach(function(Gt){"string"==typeof Gt&&p.push(Gt)})});var g={},S=[],R=Zn.read(a.numbers,{type:"base64"});R.FileIndex.map(function(Wt,Gt){return[Wt,R.FullPaths[Gt]]}).forEach(function(Wt){var Gt=Wt[0],pi=Wt[1];2==Gt.type&&Gt.name.match(/\.iwa/)&&nh(ih(Gt.content)).forEach(function(Ti){S.push(Ti.id),g[Ti.id]={deps:[],location:pi,type:Xc(Ti.messages[0].meta[1][0].data)}})}),S.sort(function(Wt,Gt){return Wt-Gt});var L=S.filter(function(Wt){return Wt>1}).map(function(Wt){return[Wt,Ns(Wt)]});R.FileIndex.map(function(Wt,Gt){return[Wt,R.FullPaths[Gt]]}).forEach(function(Wt){var Gt=Wt[0];Gt.name.match(/\.iwa/)&&nh(ih(Gt.content)).forEach(function(tr){tr.messages.forEach(function(nr){L.forEach(function(Ti){tr.messages.some(function(mo){return 11006!=Xc(mo.meta[1][0].data)&&function SC(n,a){e:for(var t=0;t<=n.length-a.length;++t){for(var r=0;r<a.length;++r)if(n[t+r]!=a[r])continue e;return!0}return!1}(mo.data,Ti[1])})&&g[Ti[0]].deps.push(tr.id)})})})});for(var xe,re=Zn.find(R,g[1].location),fe=nh(ih(re.content)),ce=0;ce<fe.length;++ce){var be=fe[ce];1==be.id&&(xe=be)}var Je=Tf(bs(xe.messages[0].data)[1][0].data);for(fe=nh(ih((re=Zn.find(R,g[Je].location)).content)),ce=0;ce<fe.length;++ce)(be=fe[ce]).id==Je&&(xe=be);for(Je=Tf(bs(xe.messages[0].data)[2][0].data),fe=nh(ih((re=Zn.find(R,g[Je].location)).content)),ce=0;ce<fe.length;++ce)(be=fe[ce]).id==Je&&(xe=be);for(Je=Tf(bs(xe.messages[0].data)[2][0].data),fe=nh(ih((re=Zn.find(R,g[Je].location)).content)),ce=0;ce<fe.length;++ce)(be=fe[ce]).id==Je&&(xe=be);var tt=bs(xe.messages[0].data);tt[6][0].data=Ns(r.e.r+1),tt[7][0].data=Ns(r.e.c+1);for(var Ze=Tf(tt[46][0].data),en=Zn.find(R,g[Ze].location),vn=nh(ih(en.content)),Kn=0;Kn<vn.length&&vn[Kn].id!=Ze;++Kn);if(vn[Kn].id!=Ze)throw"Bad ColumnRowUIDMapArchive";var Tt=bs(vn[Kn].messages[0].data);Tt[1]=[],Tt[2]=[],Tt[3]=[];for(var hn=0;hn<=r.e.c;++hn){var on=[];on[1]=on[2]=[{type:0,data:Ns(hn+420690)}],Tt[1].push({type:2,data:Pu(on)}),Tt[2].push({type:0,data:Ns(hn)}),Tt[3].push({type:0,data:Ns(hn)})}Tt[4]=[],Tt[5]=[],Tt[6]=[];for(var ti=0;ti<=r.e.r;++ti)(on=[])[1]=on[2]=[{type:0,data:Ns(ti+726270)}],Tt[4].push({type:2,data:Pu(on)}),Tt[5].push({type:0,data:Ns(ti)}),Tt[6].push({type:0,data:Ns(ti)});vn[Kn].messages[0].data=Pu(Tt),en.content=g0(m0(vn)),en.size=en.content.length,delete tt[46];var ni=bs(tt[4][0].data);ni[7][0].data=Ns(r.e.r+1);var Yi=Tf(bs(ni[1][0].data)[2][0].data);if((vn=nh(ih((en=Zn.find(R,g[Yi].location)).content)))[0].id!=Yi)throw"Bad HeaderStorageBucket";var Tr=bs(vn[0].messages[0].data);for(ti=0;ti<s.length;++ti){var ar=bs(Tr[2][0].data);ar[1][0].data=Ns(ti),ar[4][0].data=Ns(s[ti].length),Tr[2][ti]={type:Tr[2][0].type,data:Pu(ar)}}vn[0].messages[0].data=Pu(Tr),en.content=g0(m0(vn)),en.size=en.content.length;var fa=Tf(ni[2][0].data);if((vn=nh(ih((en=Zn.find(R,g[fa].location)).content)))[0].id!=fa)throw"Bad HeaderStorageBucket";for(Tr=bs(vn[0].messages[0].data),hn=0;hn<=r.e.c;++hn)(ar=bs(Tr[2][0].data))[1][0].data=Ns(hn),ar[4][0].data=Ns(r.e.r+1),Tr[2][hn]={type:Tr[2][0].type,data:Pu(ar)};vn[0].messages[0].data=Pu(Tr),en.content=g0(m0(vn)),en.size=en.content.length;var Ir=Tf(ni[4][0].data);!function(){for(var pi,Wt=Zn.find(R,g[Ir].location),Gt=nh(ih(Wt.content)),Cr=0;Cr<Gt.length;++Cr){var tr=Gt[Cr];tr.id==Ir&&(pi=tr)}var nr=bs(pi.messages[0].data);nr[3]=[];var Ti=[];p.forEach(function(nl,Lo){Ti[1]=[{type:0,data:Ns(Lo)}],Ti[2]=[{type:0,data:Ns(1)}],Ti[3]=[{type:2,data:TC(nl)}],nr[3].push({type:2,data:Pu(Ti)})}),pi.messages[0].data=Pu(nr);var Ft=g0(m0(Gt));Wt.content=Ft,Wt.size=Wt.content.length}();var ao=bs(ni[3][0].data),pr=ao[1][0];delete ao[2];var sa=bs(pr.data),Ai=Tf(sa[2][0].data);!function(){for(var pi,Wt=Zn.find(R,g[Ai].location),Gt=nh(ih(Wt.content)),Cr=0;Cr<Gt.length;++Cr){var tr=Gt[Cr];tr.id==Ai&&(pi=tr)}var nr=bs(pi.messages[0].data);delete nr[6],delete ao[7];var Ti=new Uint8Array(nr[5][0].data);nr[5]=[];for(var mo=0,Ft=0;Ft<=r.e.r;++Ft){var nl=bs(Ti);mo+=VC(nl,s[Ft],p),nl[1][0].data=Ns(Ft),nr[5].push({data:Pu(nl),type:2})}nr[1]=[{type:0,data:Ns(r.e.c+1)}],nr[2]=[{type:0,data:Ns(r.e.r+1)}],nr[3]=[{type:0,data:Ns(mo)}],nr[4]=[{type:0,data:Ns(r.e.r+1)}],pi.messages[0].data=Pu(nr);var il=g0(m0(Gt));Wt.content=il,Wt.size=Wt.content.length}(),pr.data=Pu(sa),ni[3][0].data=Pu(ao),tt[4][0].data=Pu(ni),xe.messages[0].data=Pu(tt);var Vn=g0(m0(fe));
1return re.content=Vn,re.size=re.content.length,R}(n,a):"xlsb"==a.bookType?function HC(n,a){m=1024,n&&!n.SSF&&(n.SSF=Kr(ct)),n&&n.SSF&&(Nt(),dt(n.SSF),a.revssf=er(n.SSF),a.revssf[n.SSF[65535]]=0,a.ssf=n.SSF),a.rels={},a.wbrels={},a.Strings=[],a.Strings.Count=0,a.Strings.Unique=0,d0?a.revStrings=new Map:(a.revStrings={},a.revStrings.foo=[],delete a.revStrings.foo);var t="xlsb"==a.bookType?"bin":"xml",r=xo.indexOf(a.bookType)>-1,i={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};A2(a=a||{});var s=yl(),p="",g=0;if(a.cellXfs=[],bh(a.cellXfs,{},{revssf:{General:0}}),n.Props||(n.Props={}),Ii(s,p="docProps/core.xml",wh(n.Props,a)),i.coreprops.push(p),_o(a.rels,2,p,Pa.CORE_PROPS),p="docProps/app.xml",!n.Props||!n.Props.SheetNames)if(n.Workbook&&n.Workbook.Sheets){for(var S=[],R=0;R<n.SheetNames.length;++R)2!=(n.Workbook.Sheets[R]||{}).Hidden&&S.push(n.SheetNames[R]);n.Props.SheetNames=S}else n.Props.SheetNames=n.SheetNames;for(n.Props.Worksheets=n.Props.SheetNames.length,Ii(s,p,Om(n.Props)),i.extprops.push(p),_o(a.rels,3,p,Pa.EXT_PROPS),n.Custprops!==n.Props&&Wi(n.Custprops||{}).length>0&&(Ii(s,p="docProps/custom.xml",Wp(n.Custprops)),i.custprops.push(p),_o(a.rels,4,p,Pa.CUST_PROPS)),g=1;g<=n.SheetNames.length;++g){var L={"!id":{}},ne=n.Sheets[n.SheetNames[g-1]];if(Ii(s,p="xl/worksheets/sheet"+g+"."+t,Ic(g-1,p,a,n,L)),i.sheets.push(p),_o(a.wbrels,-1,"worksheets/sheet"+g+"."+t,Pa.WS[0]),ne){var fe=ne["!comments"],xe=!1,ce="";fe&&fe.length>0&&(Ii(s,ce="xl/comments"+g+"."+t,qo(fe,ce,a)),i.comments.push(ce),_o(L,-1,"../comments"+g+"."+t,Pa.CMNT),xe=!0),ne["!legacy"]&&xe&&Ii(s,"xl/drawings/vmlDrawing"+g+".vml",b(g,ne["!comments"])),delete ne["!comments"],delete ne["!legacy"]}L["!id"].rId1&&Ii(s,Zs(p),Pd(L))}return null!=a.Strings&&a.Strings.length>0&&(Ii(s,p="xl/sharedStrings."+t,function hc(n,a,t){return(".bin"===a.slice(-4)?P1:Bg)(n,t)}(a.Strings,p,a)),i.strs.push(p),_o(a.wbrels,-1,"sharedStrings."+t,Pa.SST)),Ii(s,p="xl/workbook."+t,function ra(n,a,t){return(".bin"===a.slice(-4)?Ei:C)(n,t)}(n,p,a)),i.workbooks.push(p),_o(a.rels,1,p,Pa.WB),Ii(s,p="xl/theme/theme1.xml",yg(n.Themes,a)),i.themes.push(p),_o(a.wbrels,-1,"theme/theme1.xml",Pa.THEME),Ii(s,p="xl/styles."+t,function us(n,a,t){return(".bin"===a.slice(-4)?n_:$g)(n,t)}(n,p,a)),i.styles.push(p),_o(a.wbrels,-1,"styles."+t,Pa.STY),n.vbaraw&&r&&(Ii(s,p="xl/vbaProject.bin",n.vbaraw),i.vba.push(p),_o(a.wbrels,-1,"vbaProject.bin",Pa.VBA)),Ii(s,p="xl/metadata."+t,function Ul(n){return(".bin"===n.slice(-4)?a1:t0)()}(p)),i.metadata.push(p),_o(a.wbrels,-1,"metadata."+t,Pa.XLMETA),Ii(s,"[Content_Types].xml",pp(i,a)),Ii(s,"_rels/.rels",Pd(a.rels)),Ii(s,"xl/_rels/workbook."+t+".rels",Pd(a.wbrels)),delete a.revssf,delete a.ssf,s}(n,a):function Xy(n,a){m=1024,n&&!n.SSF&&(n.SSF=Kr(ct)),n&&n.SSF&&(Nt(),dt(n.SSF),a.revssf=er(n.SSF),a.revssf[n.SSF[65535]]=0,a.ssf=n.SSF),a.rels={},a.wbrels={},a.Strings=[],a.Strings.Count=0,a.Strings.Unique=0,d0?a.revStrings=new Map:(a.revStrings={},a.revStrings.foo=[],delete a.revStrings.foo);var t="xml",r=xo.indexOf(a.bookType)>-1,i={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};A2(a=a||{});var s=yl(),p="",g=0;if(a.cellXfs=[],bh(a.cellXfs,{},{revssf:{General:0}}),n.Props||(n.Props={}),Ii(s,p="docProps/core.xml",wh(n.Props,a)),i.coreprops.push(p),_o(a.rels,2,p,Pa.CORE_PROPS),p="docProps/app.xml",!n.Props||!n.Props.SheetNames)if(n.Workbook&&n.Workbook.Sheets){for(var S=[],R=0;R<n.SheetNames.length;++R)2!=(n.Workbook.Sheets[R]||{}).Hidden&&S.push(n.SheetNames[R]);n.Props.SheetNames=S}else n.Props.SheetNames=n.SheetNames;n.Props.Worksheets=n.Props.SheetNames.length,Ii(s,p,Om(n.Props)),i.extprops.push(p),_o(a.rels,3,p,Pa.EXT_PROPS),n.Custprops!==n.Props&&Wi(n.Custprops||{}).length>0&&(Ii(s,p="docProps/custom.xml",Wp(n.Custprops)),i.custprops.push(p),_o(a.rels,4,p,Pa.CUST_PROPS));
1var L=["SheetJ5"];for(a.tcid=0,g=1;g<=n.SheetNames.length;++g){var ne={"!id":{}},re=n.Sheets[n.SheetNames[g-1]];if(Ii(s,p="xl/worksheets/sheet"+g+"."+t,qv(g-1,a,n,ne)),i.sheets.push(p),_o(a.wbrels,-1,"worksheets/sheet"+g+"."+t,Pa.WS[0]),re){var xe=re["!comments"],ce=!1,be="";if(xe&&xe.length>0){var Je=!1;xe.forEach(function(tt){tt[1].forEach(function(Ze){1==Ze.T&&(Je=!0)})}),Je&&(Ii(s,be="xl/threadedComments/threadedComment"+g+"."+t,Ct(xe,L,a)),i.threadedcomments.push(be),_o(ne,-1,"../threadedComments/threadedComment"+g+"."+t,Pa.TCMNT)),Ii(s,be="xl/comments"+g+"."+t,Ce(xe)),i.comments.push(be),_o(ne,-1,"../comments"+g+"."+t,Pa.CMNT),ce=!0}re["!legacy"]&&ce&&Ii(s,"xl/drawings/vmlDrawing"+g+".vml",b(g,re["!comments"])),delete re["!comments"],delete re["!legacy"]}ne["!id"].rId1&&Ii(s,Zs(p),Pd(ne))}return null!=a.Strings&&a.Strings.length>0&&(Ii(s,p="xl/sharedStrings."+t,Bg(a.Strings,a)),i.strs.push(p),_o(a.wbrels,-1,"sharedStrings."+t,Pa.SST)),Ii(s,p="xl/workbook."+t,C(n)),i.workbooks.push(p),_o(a.rels,1,p,Pa.WB),Ii(s,p="xl/theme/theme1.xml",yg(n.Themes,a)),i.themes.push(p),_o(a.wbrels,-1,"theme/theme1.xml",Pa.THEME),Ii(s,p="xl/styles."+t,$g(n,a)),i.styles.push(p),_o(a.wbrels,-1,"styles."+t,Pa.STY),n.vbaraw&&r&&(Ii(s,p="xl/vbaProject.bin",n.vbaraw),i.vba.push(p),_o(a.wbrels,-1,"vbaProject.bin",Pa.VBA)),Ii(s,p="xl/metadata."+t,t0()),i.metadata.push(p),_o(a.wbrels,-1,"metadata."+t,Pa.XLMETA),L.length>1&&(Ii(s,p="xl/persons/person.xml",function an(n){var a=[Gr,_n("personList",null,{xmlns:Or.TCMNT,"xmlns:x":Ga[0]}).replace(/[\/]>/,">")];return n.forEach(function(t,r){a.push(_n("person",null,{displayName:t,id:"{54EE7950-7262-4200-6969-"+("000000000000"+r).slice(-12)+"}",userId:t,providerId:"None"}))}),a.push("</personList>"),a.join("")}(L)),i.people.push(p),_o(a.wbrels,-1,"persons/person.xml",Pa.PEOPLE)),Ii(s,"[Content_Types].xml",pp(i,a)),Ii(s,"_rels/.rels",Pd(a.rels)),Ii(s,"xl/_rels/workbook.xml.rels",Pd(a.wbrels)),delete a.revssf,delete a.ssf,s}(n,a)}function Ky(n,a){switch(a.type){case"base64":case"binary":break;case"buffer":case"array":a.type="";break;case"file":return vt(a.file,Zn.write(n,{type:Br?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+a.bookType+"' files");default:throw new Error("Unrecognized type "+a.type)}return Zn.write(n,a)}function qh(n,a,t){t||(t="");var r=t+n;switch(a.type){case"base64":return Do(V(r));case"binary":return V(r);case"string":return n;case"file":return vt(a.file,r,"utf8");case"buffer":return Br?cc(r,"utf8"):typeof TextEncoder<"u"?(new TextEncoder).encode(r):qh(r,{type:"binary"}).split("").map(function(i){return i.charCodeAt(0)})}throw new Error("Unrecognized type "+a.type)}function J_(n,a){switch(a.type){case"string":case"base64":case"binary":for(var t="",r=0;r<n.length;++r)t+=String.fromCharCode(n[r]);return"base64"==a.type?Do(t):"string"==a.type?q(t):t;case"file":return vt(a.file,n);case"buffer":return n;default:throw new Error("Unrecognized type "+a.type)}}function Z_(n,a){(function ba(){ko(1200),function Qr(){_l(1252)}()})(),function o(n){if(!n||!n.SheetNames||!n.Sheets)throw new Error("Invalid Workbook");if(!n.SheetNames.length)throw new Error("Workbook is empty");!function h(n,a,t){n.forEach(function(r,i){l(r);for(var s=0;s<i;++s)if(r==n[s])throw new Error("Duplicate Sheet Name: "+r);if(t){var p=a&&a[i]&&a[i].CodeName||r;if(95==p.charCodeAt(0)&&p.length>22)throw new Error("Bad Code Name: Worksheet"+p)}})}(n.SheetNames,n.Workbook&&n.Workbook.Sheets||[],!!n.vbaraw);for(var t=0;t<n.SheetNames.length;++t)vb(n.Sheets[n.SheetNames[t]],0,t)}(n);var t=Kr(a||{});if(t.cellStyles&&(t.cellNF=!0,t.sheetStubs=!0),"array"==t.type){t.type="binary";var r=Z_(n,t);return t.type="array",Kd(r)}var i=0;if(t.sheet&&(i="number"==typeof t.sheet?t.sheet:n.SheetNames.indexOf(t.sheet),!n.SheetNames[i]))throw new Error("Sheet not found: "+t.sheet+" : "+typeof t.sheet);switch(t.bookType||"xlsb"){case"xml":case"xlml":return qh(Z4(n,t),t);case"slk":case"sylk":return qh(Rg.from_sheet(n.Sheets[n.SheetNames[i]],t),t);case"htm":case"html":return qh(jy(n.Sheets[n.SheetNames[i]],t),t);case"txt":return function rk(n,a){switch(a.type){case"base64":return Do(n);case"binary":case"string":return n;case"file":return vt(a.file,n,"binary");case"buffer":return Br?cc(n,"binary"):n.split("").map(function(t){return t.charCodeAt(0)})}throw new Error("Unrecognized type "+a.type)}(n4(n.Sheets[n.SheetNames[i]],t),t);case"csv":return qh(M2(n.Sheets[n.SheetNames[i]],t),t,"\ufeff");case"dif":return qh(pg.from_sheet(n.Sheets[n.SheetNames[i]],t),t);case"dbf":return J_(_m.from_sheet(n.Sheets[n.SheetNames[i]],t),t);case"prn":return qh(Wc.from_sheet(n.Sheets[n.SheetNames[i]],t),t);case"rtf":return qh(G0.from_sheet(n.Sheets[n.SheetNames[i]],t),t);case"eth":return qh(vm.from_sheet(n.Sheets[n.SheetNames[i]],t),t);case"fods":return qh(Yy(n,t),t);case"wk1":return J_(xh.sheet_to_wk1(n.Sheets[n.SheetNames[i]],t),t);case"wk3":return J_(xh.book_to_wk3(n,t),t);case"biff2":t.biff||(t.biff=2);case"biff3":t.biff||(t.biff=3);case"biff4":return t.biff||(t.biff=4),J_(Ey(n,t),t);case"biff5":t.biff||(t.biff=5);case"biff8":case"xla":case"xls":return t.biff||(t.biff=8),function ik(n,a){var t=a||{};return Ky(function aC(n,a){var t=a||{},r=Zn.utils.cfb_new({root:"R"}),i="/Workbook";switch(t.bookType||"xls"){case"xls":t.bookType="biff8";case"xla":t.bookType||(t.bookType="xla");case"biff8":i="/Workbook",t.biff=8;break;case"biff5":i="/Book",t.biff=5;break;default:throw new Error("invalid type "+t.bookType+" for XLS CFB")}return Zn.utils.cfb_add(r,i,Ey(n,t)),8==t.biff&&(n.Props||n.Custprops)&&function rC(n,a){var p,t=[],r=[],i=[],s=0,g=Pi(ls,"n"),S=Pi(pl,"n");if(n.Props)for(p=Wi(n.Props),s=0;s<p.length;++s)(Object.prototype.hasOwnProperty.call(g,p[s])?t:Object.prototype.hasOwnProperty.call(S,p[s])?r:i).push([p[s],n.Props[p[s]]]);if(n.Custprops)for(p=Wi(n.Custprops),s=0;s<p.length;++s)Object.prototype.hasOwnProperty.call(n.Props||{},p[s])||(Object.prototype.hasOwnProperty.call(g,p[s])?t:Object.prototype.hasOwnProperty.call(S,p[s])?r:i).push([p[s],n.Custprops[p[s]]]);var R=[];for(s=0;s<i.length;++s)Gc.indexOf(i[s][0])>-1||Fh.indexOf(i[s][0])>-1||null!=i[s][1]&&R.push(i[s]);r.length&&Zn.utils.cfb_add(a,"/\x05SummaryInformation",lm(r,m1.SI,S,pl)),(t.length||R.length)&&Zn.utils.cfb_add(a,"/\x05DocumentSummaryInformation",lm(t,m1.DSI,g,ls,R.length?R:null,m1.UDI))}(n,r),8==t.biff&&n.vbaraw&&function fo(n,a){a.FullPaths.forEach(function(t,r){if(0!=r){var i=t.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==i.slice(-1)&&Zn.utils.cfb_add(n,i,a.FileIndex[r].content)}})}(r,Zn.read(n.vbaraw,{type:"string"==typeof n.vbaraw?"binary":"buffer"})),r}(n,t),t)}(n,t);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return function tk(n,a){var t=Kr(a||{});return function Jy(n,a){var t={},r=Br?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(a.compression&&(t.compression="DEFLATE"),a.password)t.type=r;else switch(a.type){case"base64":t.type="base64";break;case"binary":t.type="string";break;case"string":throw new Error("'string' output type invalid for '"+a.bookType+"' files");case"buffer":case"file":t.type=r;break;default:throw new Error("Unrecognized type "+a.type)}var i=n.FullPaths?Zn.write(n,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[t.type]||t.type,compression:!!a.compression}):n.generate(t);if(typeof Deno<"u"&&"string"==typeof i){if("binary"==a.type||"base64"==a.type)return i;i=new Uint8Array(Kd(i))}return a.password&&typeof encrypt_agile<"u"?Ky(encrypt_agile(i,a.password),a):"file"===a.type?vt(a.file,i):"string"==a.type?q(i):i}(XC(n,t),t)}(n,t);default:throw new Error("Unrecognized bookType |"+t.bookType+"|")}}function Qy(n,a,t,r,i,s,p,g){var S=vs(t),R=g.defval,L=g.raw||!Object.prototype.hasOwnProperty.call(g,"raw"),ne=!0,re=1===i?[]:{};if(1!==i)if(Object.defineProperty)try{Object.defineProperty(re,"__rowNum__",{value:t,enumerable:!1})}catch{re.__rowNum__=t}else re.__rowNum__=t;
1if(!p||n[t])for(var fe=a.s.c;fe<=a.e.c;++fe){var xe=p?n[t][fe]:n[r[fe]+S];if(void 0!==xe&&void 0!==xe.t){var ce=xe.v;switch(xe.t){case"z":if(null==ce)break;continue;case"e":ce=0==ce?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+xe.t)}if(null!=s[fe]){if(null==ce)if("e"==xe.t&&null===ce)re[s[fe]]=null;else if(void 0!==R)re[s[fe]]=R;else{if(!L||null!==ce)continue;re[s[fe]]=null}else re[s[fe]]=L&&("n"!==xe.t||"n"===xe.t&&!1!==g.rawNumbers)?ce:ki(xe,ce,g);null!=ce&&(ne=!1)}}else{if(void 0===R)continue;null!=s[fe]&&(re[s[fe]]=R)}}return{row:re,isempty:ne}}function Q_(n,a){if(null==n||null==n["!ref"])return[];var t={t:"n",v:0},r=0,i=1,s=[],p=0,g="",S={s:{r:0,c:0},e:{r:0,c:0}},R=a||{},L=null!=R.range?R.range:n["!ref"];switch(1===R.header?r=1:"A"===R.header?r=2:Array.isArray(R.header)?r=3:null==R.header&&(r=0),typeof L){case"string":S=Ut(L);break;case"number":(S=Ut(n["!ref"])).s.r=L;break;default:S=L}r>0&&(i=0);var ne=vs(S.s.r),re=[],fe=[],xe=0,ce=0,be=Array.isArray(n),Je=S.s.r,tt=0,Ze={};be&&!n[Je]&&(n[Je]=[]);var en=R.skipHidden&&n["!cols"]||[],vn=R.skipHidden&&n["!rows"]||[];for(tt=S.s.c;tt<=S.e.c;++tt)if(!(en[tt]||{}).hidden)switch(re[tt]=Za(tt),t=be?n[Je][tt]:n[re[tt]+ne],r){case 1:s[tt]=tt-S.s.c;break;case 2:s[tt]=re[tt];break;case 3:s[tt]=R.header[tt-S.s.c];break;default:if(null==t&&(t={w:"__EMPTY",t:"s"}),g=p=ki(t,null,R),ce=Ze[p]||0){do{g=p+"_"+ce++}while(Ze[g]);Ze[p]=ce,Ze[g]=1}else Ze[p]=1;s[tt]=g}for(Je=S.s.r+i;Je<=S.e.r;++Je)if(!(vn[Je]||{}).hidden){var Kn=Qy(n,S,Je,re,r,s,be,R);(!1===Kn.isempty||(1===r?!1!==R.blankrows:R.blankrows))&&(fe[xe++]=Kn.row)}return fe.length=xe,fe}var e4=/"/g;function t4(n,a,t,r,i,s,p,g){for(var S=!0,R=[],L="",ne=vs(t),re=a.s.c;re<=a.e.c;++re)if(r[re]){var fe=g.dense?(n[t]||[])[re]:n[r[re]+ne];if(null==fe)L="";else if(null!=fe.v){S=!1,L=""+(g.rawNumbers&&"n"==fe.t?fe.v:ki(fe,null,g));for(var xe=0,ce=0;xe!==L.length;++xe)if((ce=L.charCodeAt(xe))===i||ce===s||34===ce||g.forceQuotes){L='"'+L.replace(e4,'""')+'"';break}"ID"==L&&(L='"ID"')}else null==fe.f||fe.F?L="":(S=!1,(L="="+fe.f).indexOf(",")>=0&&(L='"'+L.replace(e4,'""')+'"'));R.push(L)}return!1===g.blankrows&&S?null:R.join(p)}function M2(n,a){var t=[],r=a??{};if(null==n||null==n["!ref"])return"";var i=Ut(n["!ref"]),s=void 0!==r.FS?r.FS:",",p=s.charCodeAt(0),g=void 0!==r.RS?r.RS:"\n",S=g.charCodeAt(0),R=new RegExp(("|"==s?"\\|":s)+"+$"),L="",ne=[];r.dense=Array.isArray(n);for(var re=r.skipHidden&&n["!cols"]||[],fe=r.skipHidden&&n["!rows"]||[],xe=i.s.c;xe<=i.e.c;++xe)(re[xe]||{}).hidden||(ne[xe]=Za(xe));for(var ce=0,be=i.s.r;be<=i.e.r;++be)(fe[be]||{}).hidden||null!=(L=t4(n,i,be,ne,p,S,s,r))&&(r.strip&&(L=L.replace(R,"")),(L||!1!==r.blankrows)&&t.push((ce++?g:"")+L));return delete r.dense,t.join("")}function n4(n,a){a||(a={}),a.FS="\t",a.RS="\n";var t=M2(n,a);return typeof ia>"u"||"string"==a.type?t:"\xff\xfe"+ia.utils.encode(1200,t,"str")}function i4(n,a,t){var r=t||{},i=+!r.skipHeader,s=n||{},p=0,g=0;if(s&&null!=r.origin)if("number"==typeof r.origin)p=r.origin;else{var S="string"==typeof r.origin?z(r.origin):r.origin;p=S.r,g=S.c}var R,L={s:{c:0,r:0},e:{c:g,r:p+a.length-1+i}};if(s["!ref"]){var ne=Ut(s["!ref"]);L.e.c=Math.max(L.e.c,ne.e.c),L.e.r=Math.max(L.e.r,ne.e.r),-1==p&&(L.e.r=(p=ne.e.r+1)+a.length-1+i)}else-1==p&&(p=0,L.e.r=a.length-1+i);var re=r.header||[],fe=0;a.forEach(function(ce,be){Wi(ce).forEach(function(Je){-1==(fe=re.indexOf(Je))&&(re[fe=re.length]=Je);var tt=ce[Je],Ze="z",en="",vn=ge({c:g+fe,r:p+be+i});R=x1(s,vn),!tt||"object"!=typeof tt||tt instanceof Date?("number"==typeof tt?Ze="n":"boolean"==typeof tt?Ze="b":"string"==typeof tt?Ze="s":tt instanceof Date?(Ze="d",r.cellDates||(Ze="n",tt=Sr(tt)),en=r.dateNF||ct[14]):null===tt&&r.nullError&&(Ze="e",tt=0),R?(R.t=Ze,R.v=tt,delete R.w,delete R.R,en&&(R.z=en)):s[vn]=R={t:Ze,v:tt},en&&(R.z=en)):s[vn]=tt})}),L.e.c=Math.max(L.e.c,g+re.length-1);var xe=vs(p);if(i)for(fe=0;fe<re.length;++fe)s[Za(fe+g)+xe]={t:"s",v:re[fe]};return s["!ref"]=gt(L),s}function x1(n,a,t){if("string"==typeof a){if(Array.isArray(n)){var r=z(a);return n[r.r]||(n[r.r]=[]),n[r.r][r.c]||(n[r.r][r.c]={t:"z"})}
1return n[a]||(n[a]={t:"z"})}return x1(n,ge("number"!=typeof a?a:{r:a,c:t||0}))}var pk_json_to_sheet=function ok(n,a){return i4(null,n,a)},vk=bn(51653),b1=bn(89107);let a4=(()=>{class n{constructor(t){this.toastr=t}exportAsExcelFile(t,r,i){let s=this.removeUnwantedColumns(r,t);if(s=this.changeHeaders(s,r),!s.length)return void this.toastr.showToast("danger","error","Oh Snap! - Table Headers missed match for export the excel file");const S=Z_({Sheets:{data:pk_json_to_sheet(s)},SheetNames:["data"]},{bookType:"xlsx",type:"array"});this.saveAsExcelFile(S,i)}saveAsExcelFile(t,r){const i=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"});jr.saveAs(i,r+"_exported.xlsx")}changeHeaders(t,r){let i=vk.extend(!0,[],t);try{for(let s=0;s<r.length;s++)i.forEach(function(p){p[r[s].head]=p[r[s].key],delete p[r[s].key]});return console.log(i),i}catch{return[]}}createPdf(t,r,i,L){bn(34941);const p=new b1.default("l","mm","a1");var g=new Image;g.src="../../../../assets/onepay_logo.png",p.setFontSize(18),p.setFontSize(11);let S=this.formtPdfData(t,r);var R=i;p.autoTable({head:S.heads,body:S.data,theme:"striped",didDrawCell:ne=>{},didParseCell:function(ne){"head"===ne.section&&(ne.cell.styles.textColor="#FFFFFF",ne.cell.styles.fillColor="#7bc8a1"),"Failed"==ne.row.raw[9]&&(ne.cell.styles.fillColor="#ffcccb"),console.log(ne)},didDrawPage:function(ne){g&&p.addImage(g,"png",ne.settings.margin.left,7,45,20),p.text(" * Report :"+R,400,15),p.text(" * Description :"+L,400,25)},margin:{top:32}}),p.save("onepay_report.pdf")}formtPdfData(t,r){let i=[],s=[];return r.forEach(p=>{i.push(p.head)}),t.forEach(p=>{let g=[];r.forEach(S=>{g.push(p[S.key])}),s.push(g)}),console.log({heads:i,data:s}),{heads:[i],data:s}}removeUnwantedColumns(t,r){let i=[];return r.forEach(s=>{let p={};t.forEach(function(g){s.hasOwnProperty(g.key)&&(p[g.key]=s[g.key])}),i.push(p)}),i}static#e=this.\u0275fac=function(r){return new(r||n)(e.KVO(Dt.V4))};static#t=this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac})}return n})();const yk=n=>({itemsPerPage:10,currentPage:n});function Ck(n,a){if(1&n&&(e.j41(0,"th"),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.R7$(),e.JRh(t.head)}}function kk(n,a){if(1&n&&(e.j41(0,"td"),e.EFF(1),e.k0s()),2&n){const t=a.$implicit,r=e.XpG().$implicit,i=e.XpG();e.R7$(),e.JRh(i.renderCells(r,t))}}function wk(n,a){if(1&n&&(e.j41(0,"tr",18),e.DNE(1,kk,2,1,"td",11),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.headCellRender())}}function Fk(n,a){1&n&&(e.j41(0,"div",19)(1,"div",20)(2,"span",21),e.EFF(3,"Loading..."),e.k0s()()())}function Ak(n,a){1&n&&(e.j41(0,"div",22)(1,"h6"),e.EFF(2,"No data available!"),e.k0s()())}function Tk(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",27)(1,"label",28)(2,"input",29),e.bIt("change",function(i){const s=e.eBV(t).$implicit,p=e.XpG(2);return e.Njj(p.changeSelectionStatus(s,i))}),e.k0s(),e.EFF(3),e.k0s()()}if(2&n){const t=a.$implicit,r=e.XpG(2);e.R7$(2),e.Y8G("checked",r.getSelectionCheckStatus(t))("disabled",t.fixed),e.R7$(),e.SpI(" \xa0\xa0 ",t.head,"")}}function Sk(n,a){if(1&n){const t=e.RV6();e.j41(0,"nb-card",23)(1,"nb-card-header",24)(2,"p")(3,"b"),e.EFF(4,"Please select rows to view in table"),e.k0s()()(),e.j41(5,"nb-card-body")(6,"div",1),e.DNE(7,Tk,4,3,"div",25),e.k0s()(),e.j41(8,"nb-card-footer")(9,"button",26),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.cancel())}),e.EFF(10,"Close"),e.k0s()()()}if(2&n){const t=e.XpG();e.R7$(7),e.Y8G("ngForOf",t.allHeaders)}}let Pg=(()=>{class n{constructor(t,r,i){this.toastr=t,this.FileExportService=r,this.dialogService=i,this.isLoading=!1,this.title="Exported Document by Onepay",this.description="Exported Document by Onepay",this.allHeaders=[],this.p=1,this.pageSize=10,this.total=0}ngOnInit(){this.headers.length&&(this.allHeaders=this.headers)}headCellRender(){return this.headers.length?this.allHeaders.filter(r=>r.fixed||r.selected):[]}getSelectionCheckStatus(t){return t.fixed||t.selected}changeSelectionStatus(t,r){console.log(t.key,"cheack table"),r.target.checked?(t.selected=!0,this.allHeaders[this.allHeaders.findIndex(i=>i.key===t.key)]=t):(t.selected=!1,this.allHeaders[this.allHeaders.findIndex(i=>i.key===t.key)]=t)}openColumnSelection(t){this.viewModel=this.dialogService.open(t,{closeOnBackdropClick:!1})}cancel(){this.viewModel.close()}renderCells(t,r){return t[r.key]?t[r.key]:"N/A"}exportToExcel(){this.data.length?this.FileExportService.exportAsExcelFile(this.data,this.allHeaders.filter(t=>t.fixed||t.selected),"onepay_report"):this.toastr.showToast("danger","error","Oh Snap! - There are not available data to export")}exportPDF(){this.data.length?this.FileExportService.createPdf(this.data,this.allHeaders,this.title,this.description):this.toastr.showToast("danger","error","Oh Snap! - There are not available data to export")}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(Dt.V4),e.rXU(a4),e.rXU(E.S0W))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-op-data-table2"]],inputs:{data:"data",headers:"headers",isLoading:"isLoading",title:"title",description:"description"},decls:24,vars:9,consts:[["selectionModel",""],[1,"row"],[1,"col-md-12","align-right"],["role","group","aria-label","Basic example",1,"btn-group","export-btns"],["type","button","nbPopover","excel","nbPopoverTrigger","hint",1,"btn","btn-secondary","radius-none",3,"click"],["aria-hidden","true",1,"fa","fa-table"],["type","button","nbPopover","column selection","nbPopoverTrigger","hint",1,"btn","btn-secondary","radius-none",3,"click"],[1,"fa","fa-align-justify","fa-sm"],[1,"list-like-table",2,"overflow-x","auto"],[1,"mb-2","table","table-responsive-sm","table-hover","table-outline"],[1,"header"],[4,"ngFor","ngForOf"],["height","50",4,"ngFor","ngForOf"],["class","d-flex justify-content-center align-items-center","style","height: 20rem;",4,"ngIf"],["class","d-flex justify-content-center align-items-center table-no-data-div","style","height: 20rem;",4,"ngIf"],[1,"col-md-12","align-right-page"],[3,"pageChange"],[2,"border-color","rgb(23, 100, 243)"],["height","50"],[1,"d-flex","justify-content-center","align-items-center",2,"height","20rem"],["role","status",1,"spinner-border","text-primary"],[1,"visually-hidden"],[1,"d-flex","justify-content-center","align-items-center","table-no-data-div",2,"height","20rem"],[2,"width","50vw","max-height","95vh"],[1,"header_text"],["class","col-md-4",4,"ngFor","ngForOf"],["nbButton","",1,"btn","btn-default",3,"click"],[1,"col-md-4"],[1,"checkbox-inline"],["type","checkbox",3,"change","checked","disabled"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"button",4),e.bIt("click",function(){return e.eBV(s),e.Njj(i.exportToExcel())}),e.nrm(4,"i",5),e.k0s(),e.j41(5,"button",6),e.bIt("click",function(){e.eBV(s);const g=e.sdS(23);return e.Njj(i.openColumnSelection(g))}),e.nrm(6,"i",7),e.k0s()()()(),e.j41(7,"div",8)(8,"table",9)(9,"thead")(10,"tr",10),e.DNE(11,Ck,2,1,"th",11),e.k0s()(),e.j41(12,"tbody"),e.DNE(13,wk,2,1,"tr",12),e.nI1(14,"paginate"),e.k0s()()(),e.DNE(15,Fk,4,0,"div",13)(16,Ak,3,0,"div",14),e.j41(17,"div",1)(18,"div",15),e.nrm(19,"br")(20,"br"),e.j41(21,"pagination-controls",16),e.bIt("pageChange",function(g){return e.eBV(s),e.Njj(i.p=g)}),e.k0s()()(),e.DNE(22,Sk,11,1,"ng-template",17,0,e.C5r)}2&r&&(e.R7$(11),e.Y8G("ngForOf",i.headCellRender()),e.R7$(2),e.Y8G("ngForOf",e.i5U(14,4,i.data,e.eq3(7,yk,i.p))),e.R7$(2),e.Y8G("ngIf",i.isLoading),e.R7$(),e.Y8G("ngIf",!i.isLoading&&0===i.data.length))},dependencies:[Fe.Sq,Fe.bT,xi.ej,E.SrT,E.KH5,E.VDm,E.zJv,E.vs7,xi.kf],styles:[".align-right[_ngcontent-%COMP%]{text-align:right}.align-right-page[_ngcontent-%COMP%]{text-align:center}.loader-area[_ngcontent-%COMP%]{text-align:center!important}.radius-none[_ngcontent-%COMP%]{border-radius:0}.export-btns[_ngcontent-%COMP%]{margin-right:1px;margin-bottom:.5px}.ngx-pagination[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{background:#c8ced3!important}.card-header[_ngcontent-%COMP%]{background-color:#fff!important;border-bottom:none!important;font-weight:800!important}.headerStyle[_ngcontent-%COMP%]{font-family:Poppins;font-style:normal;font-weight:500;font-size:20px;line-height:26px;color:#000;border-bottom:none!important}input[_ngcontent-%COMP%]{background:#fff!important;border:.8px solid #DFDFDF!important;box-sizing:border-box;font-family:Poppins!important;color:#a7a7a7!important;font-weight:400!important}"]})}return n})();var hd=bn(99012);function Ek(n,a){if(1&n&&(e.j41(0,"option",29),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.Y8G("value",t.provider_key),e.R7$(),e.SpI(" ",t.provider_name,"")}}let Pk=(()=>{class n{constructor(t,r,i,s,p,g){this.toastr=t,this.reportService=r,this.dialogService=i,this.fb=s,this.router=p,this.route=g,this.is_loading_1=!1,this.type="",this.status="",this.title="Ipg Transaction Report",this.description="",this.isLoading=!1,this.is_assigned_batch=!1,this.is_approve=!1,this.batch_name="",this.batch_description="",this.items=[],this.headers=[{head:"Ipg Transaction Id",key:"ipg_transaction_id",selected:!1,fixed:!1},{head:"Onepay Transaction ID",key:"onepay_transaction_id",selected:!0,fixed:!0},{head:"MID",key:"mid",selected:!1,fixed:!1},{head:"Currency",key:"currency",selected:!0,fixed:!0}
1,{head:"Transaction Amount",key:"request_amount",selected:!0,fixed:!0},{head:"Charge",key:"charge",selected:!1,fixed:!1},{head:"Discount",key:"discount",selected:!1,fixed:!1},{head:"Net Amount",key:"net_amount",selected:!1,fixed:!1},{head:"Request Type",key:"request_type",selected:!1,fixed:!1},{head:"Request From",key:"request_from",selected:!1,fixed:!1},{head:"Date and Time",key:"response_time",selected:!0,fixed:!0},{head:"Transaction Status",key:"transaction_status",selected:!0,fixed:!0},{head:"Transaction",key:"transaction",selected:!1,fixed:!1},{head:"Status",key:"status",selected:!0,fixed:!0},{head:"Approve",key:"is_approved",selected:!1,fixed:!1},{head:"Assigned Batch",key:"is_assigned_batch",selected:!1,fixed:!1}]}ngOnInit(){this.getIpgServiceData()}search_data(){if(this.items=[],!(this.start_date&&this.end_date&&this.type&&this.status))return void this.toastr.showToast("danger","error","Oh Snap! - Please enter search parameters");this.description="Report for "+this.start_date+" to "+this.end_date,this.isLoading=!0;let t={start_date:Zt(this.start_date).format("YYYY-MM-DD H:mm:ss"),end_date:Zt(this.end_date).format("YYYY-MM-DD H:mm:ss"),transaction_type:this.type,is_assigned_batch:!1,is_approve:!1,status:"true"==this.status?1:0};console.log(t,"request"),this.reportService.getIpgReport(t).then(r=>{console.log(r,"re34343434s"),this.isLoading=!1,100==r.status&&r.data.length?(this.items=r.data,console.log(this.items,"ipg test33333333")):this.items=[]},r=>{this.toastr.showToast("danger","error","Internal Server Error")})}clear_data(){this.start_date="",this.end_date="",this.type="",this.status=""}getIpgServiceData(){this.isLoading=!0,this.reportService.getIpgProvider().then(t=>{console.log(t,"rrrrr eeee"),this.isLoading=!1,100==t.status?(this.ipg_provider=t.data.data,console.log(this.ipg_provider,"service ipg")):(this.userMessage=t.message,this.toastr.showToast("danger","error",this.userMessage))},t=>{this.isLoading=!1,console.log(t),this.toastr.showToast("danger","error","Internal Server Error")})}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(Dt.V4),e.rXU(Un.G),e.rXU(E.S0W),e.rXU(ie.ok),e.rXU(qe.Ix),e.rXU(qe.nX))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-merchant-ipg-report"]],decls:50,vars:14,consts:[["start_date_cal",""],["end_date_cal",""],[1,"row","mb-4"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"page-heading"],[1,"row"],[1,"col-12"],["size","small",2,"height","auto","padding-top","12px"],[1,"headerStyle"],[1,"container"],[1,"mb-4","card","card-bottom"],[1,"card-body"],[1,"table-wrapper"],[1,"table-title"],[1,"col-lg-3","col-md-3","col-sm-12"],[1,"input-group"],["type","text","placeholder","Start Date",1,"form-control",3,"ngModelChange","ngModel","owlDateTime","owlDateTimeTrigger"],["type","text","placeholder","End Date",1,"form-control",3,"ngModelChange","ngModel","owlDateTime","owlDateTimeTrigger"],["placeholder","Select","id","sel1",1,"form-control","drop-style",3,"ngModelChange","ngModel"],["selected","","disabled","","value",""],[3,"value",4,"ngFor","ngForOf"],["id","sel1",1,"form-control","drop-style",3,"ngModelChange","ngModel"],["value","true"],["value","flase"],[1,"row",2,"margin-top","10px","float","right"],[1,"col-lg-12","col-md-12","col-sm-12"],["nbButton","","shape","rectangle","size","medium","type","submit",1,"mr-1","filter-form-btn","primary-black-btn",3,"click"],["nbButton","","shape","rectangle","size","medium","type","button",1,"filter-form-btn","filter-form-clear-btn",3,"click"],[3,"data","headers","isLoading","title","description"],[3,"value"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"h2",4),e.EFF(3," IPG Transaction Report"),e.k0s()()(),e.j41(4,"div",5)(5,"div",6)(6,"nb-card",7)(7,"nb-card-header",8)(8,"div"),e.EFF(9," IPG Transaction Report "),e.k0s()(),e.j41(10,"div",9)(11,"div",10)(12,"div",11)(13,"div",12)(14,"div",13)(15,"div",5)(16,"div",14)(17,"div",15)(18,"input",16),e.mxI("ngModelChange",function(g){return e.eBV(s),e.DH7(i.start_date,g)||(i.start_date=g),e.Njj(g)}),e.k0s(),e.nrm(19,"owl-date-time",null,0),e.k0s()(),e.j41(21,"div",14)(22,"div",15)(23,"input",17),e.mxI("ngModelChange",function(g){return e.eBV(s),e.DH7(i.end_date,g)||(i.end_date=g),e.Njj(g)}),e.k0s(),e.nrm(24,"owl-date-time",null,1),e.k0s()(),e.j41(26,"div",14)(27,"div",15)(28,"select",18),e.mxI("ngModelChange",function(g){return e.eBV(s),e.DH7(i.type,g)||(i.type=g),e.Njj(g)}),e.j41(29,"option",19),e.EFF(30,"Transaction Type"),e.k0s(),e.DNE(31,Ek,2,2,"option",20),e.k0s()()(),e.j41(32,"div",14)(33,"div",15)(34,"select",21),e.mxI("ngModelChange",function(g){return e.eBV(s),e.DH7(i.status,g)||(i.status=g),e.Njj(g)}),e.j41(35,"option",19),e.EFF(36,"Transaction Status"),e.k0s(),e.j41(37,"option",22),e.EFF(38,"Success"),e.k0s(),e.j41(39,"option",23),e.EFF(40,"Failed"),e.k0s()()()()(),e.j41(41,"div",24)(42,"div",25)(43,"button",26),e.bIt("click",function(){return e.eBV(s),e.Njj(i.search_data())}),e.EFF(44," Filter "),e.k0s(),e.j41(45,"button",27),e.bIt("click",function(){return e.eBV(s),e.Njj(i.clear_data())}),e.EFF(46," Clear "),e.k0s()()()()()()(),e.j41(47,"div",5)(48,"div",6),e.nrm(49,"ngx-op-data-table2",28),e.k0s()()()()()()}if(2&r){const s=e.sdS(20),p=e.sdS(25);e.R7$(18),e.R50("ngModel",i.start_date),e.Y8G("owlDateTime",s)("owlDateTimeTrigger",s),e.R7$(5),e.R50("ngModel",i.end_date),e.Y8G("owlDateTime",p)("owlDateTimeTrigger",p),e.R7$(5),e.R50("ngModel",i.type),e.R7$(3),e.Y8G("ngForOf",i.ipg_provider),e.R7$(3),e.R50("ngModel",i.status),e.R7$(15),e.Y8G("data",i.items)("headers",i.headers)("isLoading",i.isLoading)("title",i.title)("description",i.description)}},dependencies:[Fe.Sq,ie.xH,ie.y7,ie.me,ie.wz,ie.BC,ie.vS,E.SrT,E.zJv,E.YP2,Pg,hd.H$,hd.BK,hd.P_],styles:[".label-name[_ng
1content-%COMP%]{font-size:14px;line-height:15px;margin-top:12px;font-family:Poppins!important;color:#a7a7a7!important}[_ngcontent-%COMP%]::placeholder{font-family:poppins!important;font-size:14px!important;color:#a7a7a7!important}.button-common[_ngcontent-%COMP%]{background:#b3b3b3;border-radius:6px;border:none;float:right;color:#fff;font-size:.75rem;padding:8px 30px;margin-top:16px}.card-header[_ngcontent-%COMP%]{background-color:#fff!important;border-bottom:none!important;font-weight:800!important}input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{background:#fff!important;font-family:Poppins!important;color:#a7a7a7!important;font-weight:400!important}.drop-style[_ngcontent-%COMP%]{font-family:Poppins!important;color:#a7a7a7!important;font-size:14px}.button-common-clear[_ngcontent-%COMP%]{border:none;float:right;color:#818181;font-size:.75rem;padding:8px 30px;margin-top:16px;background-color:#fff}.button-common-clear[_ngcontent-%COMP%]:focus{outline:none}"]})}return n})(),Mk=(()=>{class n{constructor(t,r,i,s,p,g){this.toastr=t,this.reportService=r,this.dialogService=i,this.fb=s,this.router=p,this.route=g,this.status="",this.payment_link_id="",this.title="Ipg Transaction Report",this.description="",this.isLoading=!1,this.batch_name="",this.batch_description="",this.items=[],this.headers=[{head:"Payment Link ID",key:"payment_link_id",selected:!0,fixed:!0},{head:"Ipg Transaction Id",key:"ipg_transaction_id",selected:!1,fixed:!1},{head:"Onepay Transaction ID",key:"onepay_transaction_id",selected:!0,fixed:!0},{head:"Currency",key:"currency",selected:!0,fixed:!0},{head:"Amount",key:"amount",selected:!1,fixed:!1},{head:"Date and Time",key:"generated_datetime",selected:!0,fixed:!0},{head:"Status",key:"ipg_status",selected:!0,fixed:!0},{head:"Payment Link Status",key:"status",selected:!1,fixed:!1},{head:"Customer Email",key:"customer_email",selected:!1,fixed:!1},{head:"Customer First Name",key:"customer_first_name",selected:!1,fixed:!1},{head:"Customer Last Name",key:"customer_last_name",selected:!1,fixed:!1},{head:"Customer Mobile No",key:"customer_mobile_no",selected:!1,fixed:!1},{head:"Completed Date Time",key:"completed_time",selected:!1,fixed:!1},{head:"Transaction Amount",key:"request_amount",selected:!0,fixed:!0},{head:"Charge",key:"charge",selected:!1,fixed:!1},{head:"Discount",key:"discount",selected:!1,fixed:!1},{head:"Net Amount",key:"net_amount",selected:!1,fixed:!1},{head:"Request Type",key:"request_type",selected:!1,fixed:!1},{head:"Request From",key:"request_from",selected:!1,fixed:!1},{head:"Transaction Status",key:"transaction_status",selected:!0,fixed:!0},{head:"Ipg Transaction Status",key:"ipg_status",selected:!0,fixed:!0}]}ngOnInit(){}search_data(){if(this.items=[],!this.start_date||!this.end_date||!this.status)return void this.toastr.showToast("danger","error","Oh Snap! - Please enter search parameters");this.description="Report for "+this.start_date+" to "+this.end_date,this.isLoading=!0;let t={start_date:Zt(this.start_date).format("YYYY-MM-DD H:mm:ss"),end_date:Zt(this.end_date).format("YYYY-MM-DD H:mm:ss"),status:"true"==this.status?1:0};this.payment_link_id&&(console.log(this.payment_link_id,"email"),t.payment_link_id=this.payment_link_id),console.log(t,"request"),this.reportService.getPaymentLinkReport(t).then(r=>{console.log(r,"re34343434s"),this.isLoading=!1,100==r.status&&r.data.length?(this.items=r.data,console.log(this.items,"ipg test33333333")):this.items=[]},r=>{this.toastr.showToast("danger","error","Internal Server Error")})}clear_data(){this.status="",this.start_date="",this.end_date="",this.payment_link_id=""}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(Dt.V4),e.rXU(Un.G),e.rXU(E.S0W),e.rXU(ie.ok),e.rXU(qe.Ix),e.rXU(qe.nX))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-merchant-payment-link-report"]],decls:47,vars:13,consts:[["start_date_cal",""],["end_date_cal",""],[1,"row","mb-4"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"page-heading"],[1,"row"],[1,"col-12"],["size","small",2,"height","auto","padding-top","12px"],[1,"headerStyle"],[1,"container"],[1,"mb-4","card","card-bottom"],[1,"card-body"],[1,"table-wrapper"],[1,"table-title"],[1,"col-lg-3","col-md-3","col-sm-12"],[1,"input-group"],["type","text","placeholder","Start Date",1,"form-control",3,"ngModelChange","ngModel","owlDateTime","owlDateTimeTrigger"],["type","text","placeholder","End Date",1,"form-control",3,"ngModelChange","ngModel","owlDateTime","owlDateTimeTrigger"],["id","sel1",1,"form-control","drop-style",3,"ngModelChange","ngModel"],["selected","","disabled","","value",""],["value","true"],["value","flase"],["type","text","fullWidth","","placeholder","Payment Link ID",1,"form-control",3,"ngModelChange","ngModel"],[1,"row",2,"float","right","margin-top","10px"],[1,"col-lg-12","col-md-12","col-sm-12"],["nbButton","","shape","rectangle","size","medium","type","submit",1,"mr-1","filter-form-btn","primary-black-btn",3,"click"],["nbButton","","shape","rectangle","size","medium","type","button",1,"filter-form-btn","filter-form-clear-btn",3,"click"],[3,"data","headers","isLoading","title","description"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"h2",4),e.EFF(3," Payment Link Transaction Report"),e.k0s()()(),e.j41(4,"div",5)(5,"div",6)(6,"nb-card",7)(7,"nb-card-header",8)(8,"div"),e.EFF(9," Payment Link Transaction Report "),e.k0s()(),e.j41(10,"div",9)(11,"div",10)(12,"div",11)(13,"div",12)(14,"div",13)(15,"div",5)(16,"div",14)(17,"div",15)(18,"input",16),e.mxI("ngModelChange",function(g){return e.eBV(s),e.DH7(i.start_date,g)||(i.start_date=g),e.Njj(g)}),e.k0s(),e.nrm(19,"owl-date-time",null,0),e.k0s()(),e.j41(21,"div",14)(22,"div",15)(23,"input",17),e.mxI("ngModelChange",function(g){return e.eBV(s),e.DH7(i.end_date,g)||(i.end_date=g),e.Njj(g)}),e.k0s(),e.nrm(24,"owl-date-time",null,1),e.k0s()(),e.j41(26,"div",14)(27,"div",15)(28,"select",18),e.mxI("ngModelChange",function(g){return e.eBV(s),e.DH7(i.status,g)||(i.status=g),e.Njj(g)}),e.j41(29,"option",19),e.EFF(30,"Transaction Status"),e.k0s(),e.j41(31,"option",20),e.EFF(32,"Success"),e.k0s(),e.j41(33,"option",21),e.EFF(34,"Failed"),e.k0s()()()(),e.j41(35,"div",14)(36,"div",15)(37,"input",22),e.mxI("ngModelChange",function(g){return e.eBV(s),e.DH7(i.payment_link_id,g)||(i.payment_link_id=g),e.Njj(g)}),e.k0s()()()(),e.j41(38,"div",23)(39,"div",24)(40,"button",25),e.bIt("click",function(){return e.eBV(s),e.Njj(i.search_data())}),e.EFF(41," Filter "),e.k0s(),e.j41(42,"button",26),e.bIt("click",function(){return e.eBV(s),e.Njj(i.clear_data())}),e.EFF(43," Clear "),e.k0s()()()()()()(),e.j41(44,"div",5)(45,"div",6),e.nrm(46,"ngx-op-data-table2",27),e.k0s()()()()()()}if(2&r){const s=e.sdS(20),p=e.sdS(25);e.R7$(18),e.R50("ngModel",i.start_date),e.Y8G("owlDateTime",s)("owlDateTimeTrigger",s),e.R7$(5),e.R50("ngModel",i.end_date),e.Y8G("owlDateTime",p)("owlDateTimeTrigger",p),e.R7$(5),e.R50("ngModel",i.status),e.R7$(9),e.R50("ngModel",i.payment_link_id),e.R7$(9),e.Y8G("data",i.items)("headers",i.headers)("isLoading",i.isLoading)("title",i.title)("description",i.description)}},dependencies:[ie.xH,ie.y7,ie.me,ie.wz,ie.BC,ie.vS,E.SrT,E.zJv,E.YP2,Pg,hd.H$,hd.BK,hd.P_],styles:[".label-name[_ng
1content-%COMP%]{font-size:14px;line-height:15px;margin-top:12px;font-family:Poppins!important;color:#a7a7a7!important}[_ngcontent-%COMP%]::placeholder{font-family:poppins!important;font-size:14px!important;color:#a7a7a7!important}.button-common[_ngcontent-%COMP%]{background:#b3b3b3;border-radius:6px;border:none;float:right;color:#fff;font-size:.75rem;padding:8px 30px;margin-top:16px}.card-header[_ngcontent-%COMP%]{background-color:#fff!important;border-bottom:none!important;font-weight:800!important}input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{background:#fff!important;font-family:Poppins!important;color:#a7a7a7!important;font-weight:400!important}.drop-style[_ngcontent-%COMP%]{font-family:Poppins!important;color:#a7a7a7!important;font-size:14px}.button-common-clear[_ngcontent-%COMP%]{border:none;float:right;color:#818181;font-size:.75rem;padding:8px 30px;margin-top:16px;background-color:#fff}.button-common-clear[_ngcontent-%COMP%]:focus{outline:none}"]})}return n})(),Ok=(()=>{class n{constructor(t,r,i,s,p,g){this.toastr=t,this.reportService=r,this.dialogService=i,this.fb=s,this.router=p,this.route=g,this.status="",this.payment_page_id="",this.title="Ipg Transaction Report",this.description="",this.isLoading=!1,this.batch_name="",this.batch_description="",this.items=[],this.headers=[{head:"Payment Page ID",key:"payment_page_id",selected:!0,fixed:!0},{head:"Ipg Transaction Id",key:"ipg_transaction_id",selected:!1,fixed:!1},{head:"Onepay Transaction ID",key:"onepay_transaction_id",selected:!0,fixed:!0},{head:"Payment Page Name",key:"page_name",selected:!0,fixed:!0},{head:"Currency",key:"currency",selected:!0,fixed:!0},{head:"Amount",key:"amount",selected:!1,fixed:!1},{head:"Created On",key:"created_on",selected:!0,fixed:!0},{head:"Status",key:"ipg_status",selected:!0,fixed:!0},{head:"Payment Page Status",key:"status",selected:!1,fixed:!1},{head:"Paid On",key:"paid_on",selected:!1,fixed:!1},{head:"Transaction Amount",key:"request_amount",selected:!0,fixed:!0},{head:"Charge",key:"charge",selected:!1,fixed:!1},{head:"Discount",key:"discount",selected:!1,fixed:!1},{head:"Net Amount",key:"net_amount",selected:!1,fixed:!1},{head:"Request Type",key:"request_type",selected:!1,fixed:!1},{head:"Request From",key:"request_from",selected:!1,fixed:!1},{head:"Transaction Status",key:"transaction_status",selected:!0,fixed:!0},{head:"Transaction",key:"transaction",selected:!1,fixed:!1},{head:"Additional Data",key:"additional_data",selected:!1,fixed:!1},{head:"Customer First Name",key:"customer_first_name",selected:!1,fixed:!1},{head:"Customer Last Name",key:"customer_last_name",selected:!1,fixed:!1},{head:"Customer Mobile Number",key:"customer_mobile_no",selected:!1,fixed:!1},{head:"Customer Email",key:"customer_email",selected:!1,fixed:!1}]}ngOnInit(){}search_data(){if(this.items=[],!this.start_date||!this.end_date||!this.status)return void this.toastr.showToast("danger","error","Oh Snap! - Please enter search parameters");this.description="Report for "+this.start_date+" to "+this.end_date,this.isLoading=!0;let t={start_date:Zt(this.start_date).format("YYYY-MM-DD H:mm:ss"),end_date:Zt(this.end_date).format("YYYY-MM-DD H:mm:ss"),status:"true"==this.status?1:0};this.payment_page_id&&(console.log(this.payment_page_id,"payment_page_id"),t.payment_page_id=this.payment_page_id),console.log(t,"request"),this.reportService.getPaymentPageReport(t).then(r=>{console.log(r,"re34343434s"),this.isLoading=!1,100==r.status&&r.data.length?(this.items=r.data,console.log(this.items,"ipg test33333333")):this.items=[]},r=>{this.toastr.showToast("danger","error","Internal Server Error")})}clear_data(){this.status="",this.start_date="",this.end_date="",this.payment_page_id=""}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(Dt.V4),e.rXU(Un.G),e.rXU(E.S0W),e.rXU(ie.ok),e.rXU(qe.Ix),e.rXU(qe.nX))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-merchant-payment-page-report"]],decls:47,vars:13,consts:[["start_date_cal",""],["end_date_cal",""],[1,"row","mb-4"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"page-heading"],[1,"row"],[1,"col-12"],["size","small",2,"height","auto","padding-top","12px"],[1,"headerStyle"],[1,"container"],[1,"mb-4","card","card-bottom"],[1,"card-body"],[1,"table-wrapper"],[1,"table-title"],[1,"col-lg-3","col-md-3","col-sm-12"],[1,"input-group"],["type","text","placeholder","Start Date",1,"form-control",3,"ngModelChange","ngModel","owlDateTime","owlDateTimeTrigger"],["type","text","placeholder","End Date",1,"form-control",3,"ngModelChange","ngModel","owlDateTime","owlDateTimeTrigger"],["id","sel1",1,"form-control","drop-style",3,"ngModelChange","ngModel"],["selected","","disabled","","value",""],["value","true"],["value","flase"],["type","text","fullWidth","","placeholder","Payment Page ID",1,"form-control",3,"ngModelChange","ngModel"],[1,"row",2,"float","right","margin-top","10px"],[1,"col-lg-12","col-md-12","col-sm-12"],["nbButton","","shape","rectangle","size","medium","type","submit",1,"mr-1","filter-form-btn","primary-black-btn",3,"click"],["nbButton","","shape","rectangle","size","medium","type","button",1,"filter-form-btn","filter-form-clear-btn",3,"click"],[3,"data","headers","isLoading","title","description"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"h2",4),e.EFF(3," Payment Page Transaction Report"),e.k0s()()(),e.j41(4,"div",5)(5,"div",6)(6,"nb-card",7)(7,"nb-card-header",8)(8,"div"),e.EFF(9," Payment Page Transaction Report "),e.k0s()(),e.j41(10,"div",9)(11,"div",10)(12,"div",11)(13,"div",12)(14,"div",13)(15,"div",5)(16,"div",14)(17,"div",15)(18,"input",16),e.mxI("ngModelChange",function(g){return e.eBV(s),e.DH7(i.start_date,g)||(i.start_date=g),e.Njj(g)}),e.k0s(),e.nrm(19,"owl-date-time",null,0),e.k0s()(),e.j41(21,"div",14)(22,"div",15)(23,"input",17),e.mxI("ngModelChange",function(g){return e.eBV(s),e.DH7(i.end_date,g)||(i.end_date=g),e.Njj(g)}),e.k0s(),e.nrm(24,"owl-date-time",null,1),e.k0s()(),e.j41(26,"div",14)(27,"div",15)(28,"select",18),e.mxI("ngModelChange",function(g){return e.eBV(s),e.DH7(i.status,g)||(i.status=g),e.Njj(g)}),e.j41(29,"option",19),e.EFF(30,"Transaction Status"),e.k0s(),e.j41(31,"option",20),e.EFF(32,"Success"),e.k0s(),e.j41(33,"option",21),e.EFF(34,"Failed"),e.k0s()()()(),e.j41(35,"div",14)(36,"div",15)(37,"input",22),e.mxI("ngModelChange",function(g){return e.eBV(s),e.DH7(i.payment_page_id,g)||(i.payment_page_id=g),e.Njj(g)}),e.k0s()()()(),e.j41(38,"div",23)(39,"div",24)(40,"button",25),e.bIt("click",function(){return e.eBV(s),e.Njj(i.search_data())}),e.EFF(41," Filter "),e.k0s(),e.j41(42,"button",26),e.bIt("click",function(){return e.eBV(s),e.Njj(i.clear_data())}),e.EFF(43," Clear "),e.k0s()()()()()()(),e.j41(44,"div",5)(45,"div",6),e.nrm(46,"ngx-op-data-table2",27),e.k0s()()()()()()}if(2&r){const s=e.sdS(20),p=e.sdS(25);e.R7$(18),e.R50("ngModel",i.start_date),e.Y8G("owlDateTime",s)("owlDateTimeTrigger",s),e.R7$(5),e.R50("ngModel",i.end_date),e.Y8G("owlDateTime",p)("owlDateTimeTrigger",p),e.R7$(5),e.R50("ngModel",i.status),e.R7$(9),e.R50("ngModel",i.payment_page_id),e.R7$(9),e.Y8G("data",i.items)("headers",i.headers)("isLoading",i.isLoading)("title",i.title)("description",i.description)}},dependencies:[ie.xH,ie.y7,ie.me,ie.wz,ie.BC,ie.vS,E.SrT,E.zJv,E.YP2,Pg,hd.H$,hd.BK,hd.P_],styles:[".label-name[_ng
1content-%COMP%]{font-size:14px;line-height:15px;margin-top:12px;font-family:Poppins!important;color:#a7a7a7!important}[_ngcontent-%COMP%]::placeholder{font-family:poppins!important;font-size:14px!important;color:#a7a7a7!important}.button-common[_ngcontent-%COMP%]{background:#b3b3b3;border-radius:6px;border:none;float:right;color:#fff;font-size:.75rem;padding:8px 30px;margin-top:16px}.card-header[_ngcontent-%COMP%]{background-color:#fff!important;border-bottom:none!important;font-weight:800!important}input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{background:#fff!important;font-family:Poppins!important;color:#a7a7a7!important;font-weight:400!important}.drop-style[_ngcontent-%COMP%]{font-family:Poppins!important;color:#a7a7a7!important;font-size:14px}.button-common-clear[_ngcontent-%COMP%]{border:none;float:right;color:#818181;font-size:.75rem;padding:8px 30px;margin-top:16px;background-color:#fff}.button-common-clear[_ngcontent-%COMP%]:focus{outline:none}"]})}return n})();var o4=bn(49143),s4=bn(3805);const Dk=()=>({title:"Customers",isActive:!0}),Ik=n=>[n],_0=(n,a)=>({clicked:n,clicked2:a}),jk=(n,a,t)=>({itemsPerPage:n,currentPage:a,totalItems:t});function Rk(n,a){if(1&n){const t=e.RV6();e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.EFF(4),e.k0s(),e.j41(5,"td"),e.EFF(6),e.k0s(),e.j41(7,"td"),e.EFF(8),e.nI1(9,"date"),e.k0s(),e.j41(10,"td"),e.EFF(11),e.k0s(),e.j41(12,"td"),e.EFF(13),e.nI1(14,"date"),e.k0s(),e.j41(15,"td"),e.EFF(16),e.nI1(17,"date"),e.k0s(),e.j41(18,"td"),e.EFF(19),e.k0s(),e.j41(20,"td")(21,"button",34),e.bIt("click",function(){const i=e.eBV(t).$implicit,s=e.XpG(2);return e.Njj(s.navigateToView(i.customer_id))}),e.nrm(22,"img",35),e.EFF(23," View "),e.k0s()()()}if(2&n){const t=a.$implicit;e.R7$(2),e.JRh((null==t?null:t.customer_name)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.email)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.phone)||"Not Available"),e.R7$(2),e.JRh(e.i5U(9,8,null==t?null:t.created_at,"yyyy-MM-dd")),e.R7$(3),e.SpI("LKR ",(null==t?null:t.total_request_amount)||"Not Available",""),e.R7$(2),e.SpI(" ",null!=t&&t.last_payment_date?e.i5U(14,11,t.last_payment_date,"yyyy-MM-dd"):"Not Available"," "),e.R7$(3),e.SpI(" ",null!=t&&t.first_payment_date?e.i5U(17,14,t.first_payment_date,"yyyy-MM-dd"):"Not Available"," "),e.R7$(3),e.JRh((null==t?null:t.transaction_count)||"Not Available")}}function Lk(n,a){if(1&n&&(e.j41(0,"tbody"),e.DNE(1,Rk,24,17,"tr",33),e.nI1(2,"paginate"),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",e.i5U(2,1,t.all_customers,e.sMw(4,jk,t.page_size,t.page,t.transactions_count)))}}
1function Nk(n,a){1&n&&(e.j41(0,"div",36)(1,"div",37)(2,"span",38),e.EFF(3,"Loading..."),e.k0s()()())}function Bk(n,a){1&n&&(e.j41(0,"div",39)(1,"h6"),e.EFF(2,"No data available!"),e.k0s()())}function Gk(n,a){if(1&n){const t=e.RV6();e.j41(0,"pagination-controls",40),e.bIt("pageChange",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.pageChanged(i))})("pageBoundsCorrection",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.pageChanged(i))}),e.k0s()}}let Vk=(()=>{class n{constructor(t,r,i,s,p,g){this.fb=t,this.router=r,this.dialogService=i,this.transactionService=s,this.toastr=p,this.route=g,this.page=1,this.page_size=10,this.transactions_count=0,this.is_loading_1=!1,this.filter_form=null,this.transactions=[],this.all_customers=[],this.is_loading_2=Array(this.page_size).fill(!1),this.filter_status=new ie.MJ(""),this.customer_status="",this.currency="",this.searchQuery="",this.searchControl=new ie.MJ("")}ngOnInit(){this.route.queryParams.subscribe(t=>{console.log(t,"parrrmm"),(t.page_size||t.page||t.type)&&(this.page=t.page||1,this.page_size=t.page_size||10,this.filter_status.setValue(t.type||null),this.currency=t.currency||"",this.searchQuery=t.search_text||"",this.searchControl.setValue(this.searchQuery),this.customer_status=t.type||"")}),this.getCustomers(),this.searchControl.valueChanges.pipe((0,o4.B)(500)).subscribe(t=>{this.searchQuery=t,this.getCustomers()})}onSearchChange(){this.getCustomers()}getCustomers(){this.is_loading_1=!0,this.transactionService.getAllCustomers(this.page,this.page_size,this.customer_status,this.currency,this.searchQuery).then(t=>{console.log("getCustomers",t),this.is_loading_1=!1,200===t?.status?(this.all_customers=t?.data,this.transactions_count=t?.count):this.toastr.showToast("danger","Error!",t?.message||"Getting customer data failed.")}).catch(t=>{this.is_loading_1=!1,console.log("Internal Server Error",t),this.toastr.showToast("danger","Error!","Internal Server Error.")})}pageChanged(t){this.page=t,this.getCustomers()}clearFilterForm(){this.filter_form.reset(),this.page=1,this.getCustomers()}OnItemClick(t){""===t&&this.filter_status.setValue(""),"TOP"===t&&this.filter_status.setValue("TOP"),"FIRST"===t&&this.filter_status.setValue("FIRST"),"REPEAT"===t&&this.filter_status.setValue("REPEAT"),"RECENT"===t&&this.filter_status.setValue("RECENT"),"H-REFUND"===t&&this.filter_status.setValue("H-REFUND"),"7"===t&&this.filter_status.setValue("7"),"8"===t&&this.filter_status.setValue("8"),this.customer_status=t,this.page=1,this.getCustomers()}OnClickCurrency(){(""===this.currency||"LKR"===this.currency||"USD"===this.currency)&&this.getCustomers()}navigateToView(t){const r={page:this.page,page_size:this.page_size};this.customer_status&&(r.type=this.customer_status),this.currency&&(r.currency=this.currency),this.searchQuery&&(r.search_text=this.searchQuery),console.log(r,"55"),this.router.navigate(["/pages/view-customer",t],{queryParams:r})}resetURLParams(){this.page=1,this.searchQuery="",this.filter_status.setValue(null),this.currency="",this.filter_status.reset(),this.customer_status="",this.router.navigate(["/pages/customers"],{queryParams:{}}),this.getCustomers()}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(ie.ok),e.rXU(qe.Ix),e.rXU(E.S0W),e.rXU(Mt.kK),e.rXU(Dt.V4),e.rXU(qe.nX))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-customers"]],decls:100,vars:34,consts:[[1,"body-style","ipg-transaction-root"],[1,"container"],[3,"routes"],[1,"row","mb-4"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"page-heading"],[1,"col"],[1,"row"],[1,"col-6","d-flex","justify-content-start","align-items-center"],[1,"input-container"],["type","text","placeholder","Search by customer name",3,"ngModelChange","input","ngModel"],[1,"search-icon"],["src","../../../assets/images/search.png","alt","Search Icon",1,"search-img"],[1,"col-6","d-flex","justify-content-end","align-items-center"],["placeholder","Select Reason",1,"selecter_","width_1",3,"ngModelChange","change","ngModel"],["value",""],["value","LKR"],["value","USD"],[1,"row","mt-3"],[1,"col-2","ipg-dashbord-right"],[1,"menu_itam",3,"click","ngClass"],[1,"button_name"],[1,"col-2"],[1,"col-12"],[1,"menu_refresh",3,"click"],[1,"col","d-flex","flex-column","px-0","list-like-table"],[1,"table-responsive"],[1,"table","table-sm","align-top"],[2,"color","transparent"],[4,"ngIf"],["class","d-flex justify-content-center align-items-center","style","height: 20rem;",4,"ngIf"],["class","d-flex justify-content-center align-items-center table-no-data-div","style","height: 20rem;",4,"ngIf"],["responsive","true","class","mx-auto mt-4",3,"pageChange","pageBoundsCorrection",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"table-view-btn-3",3,"click"],["src","../../../../assets/images/eye.png","alt","View",1,"button_img"],[1,"d-flex","justify-content-center","align-items-center",2,"height","20rem"],["role","status",1,"spinner-border","text-primary"],[1,"visually-hidden"],[1,"d-flex","justify-content-center","align-items-center","table-no-data-div",2,"height","20rem"],["responsive","true",1,"mx-auto","mt-4",3,"pageChange","pageBoundsCorrection"]],template:function(r,i){1&r&&(e.j41(0,"div",0)(1,"div",1),e.nrm(2,"ngx-breadcrumb",2),e.j41(3,"div",3)(4,"div",4)(5,"h2",5),e.EFF(6,"Customers"),e.k0s()()(),e.j41(7,"div",3)(8,"div",6)(9,"nb-card")(10,"nb-card-body")(11,"div",7)(12,"div",8)(13,"div",9)(14,"input",10),e.mxI("ngModelChange",function(p){return e.DH7(i.searchQuery,p)||(i.searchQuery=p),p}),e.bIt("input",function(){return i.onSearchChange()}),e.k0s(),e.j41(15,"span",11),e.nrm(16,"img",12),e.k0s()()(),e.j41(17,"div",13)(18,"select",14),e.mxI("ngModelChange",function(p){return e.DH7(i.currency,p)||(i.currency=p),p}),e.bIt("change",function(){return i.OnClickCurrency()}),e.j41(19,"option",15),e.EFF(20,"ALL"),e.k0s(),e.j41(21,"option",16),e.EFF(22,"LKR"),e.k0s(),e.j41(23,"option",17),e.EFF(24,"USD"),e.k0s()()()(),e.j41(25,"div",18)(26,"div",19)(27,"div",20),e.bIt("click",function(){return i.OnItemClick("")}),e.j41(28,"span",21),e.EFF(29,"ALL"),e.k0s()()(),e.j41(30,"div",19)(31,"div",20),e.bIt("click",function(){return i.OnItemClick("TOP")}),e.j41(32,"span",21),e.EFF(33,"Top customers"),e.k0s()()(),e.j41(34,"div",19)(35,"div",20),e.bIt("click",function(){return i.OnItemClick("FIRST")}),e.j41(36,"span",21),e.EFF(37,"First time customers "),e.k0s()()(),e.j41(38,"div",19)(39,"div",20),e.bIt("click",function(){return i.OnItemClick("REPEAT")}),e.j41(40,"span",21),e.EFF(41,"Repeat customers"),e.k0s()()(),e.j41(42,"div",19)(43,"div",20),e.bIt("click",function(){return i.OnItemClick("RECENT")}),e.j41(44,"span",21),e.EFF(45,"Recent customers"),e.k0s()()(),e.j41(46,"div",22)(47,"div",20),e.bIt("click",function(){return i.OnItemClick("H-REFUND")}),e.j41(48,"span",21),e.EFF(49,"High refund"),e.k0s()()()(),e.j41(50,"div",18)(51,"div",23)(52,"div",24),e.bIt("click",function(){return i.resetURLParams()}),e.j41(53,"span",21),e.EFF(54,"Refresh"),e.k0s()()()(),e.j41(55,"div",25)(56,"div",26)(57,"table",27)(58,"thead")(59,"tr")(60,"th"),e.EFF(61,"Name"),e.k0s(),e.j41(62,"th"),e.EFF(63,"Email"),e.k0s(),e.j41(64,"th"),e.EFF(65,"Contact Number"),e.k0s(),e.j41(66,"th"),e.EFF(67,"Created"),e.j41(68,"span",28),e.EFF(69,"_"),e.k0s(),e.EFF(70,"date"),e.j41(71,"span",28),e.EFF(72,"_"),e.k0s()(),e.j41(73,"th"),e.EFF(74,"Total"),e.j41(75,"span",28),e.EFF(76,"_"),e.k0s(),e.EFF(77,"spending"),e.k0s(),e.j41(78,"th"),e.EFF(79,"\u2060Last"),e.j41(80,"span",28),e.EFF(81,"_"),e.k0s(),e.EFF(82,"payment"),e.j41(83,"span",28),e.EFF(84,"_"),e.k0s()(),e.j41(85,"th"),e.EFF(86,"\u2060\u2060First"),e.j41(87,"span",28),e.EFF(88,"_"),e.k0s(),e.EFF(89,"Payment"),e.j41(90,"span",28),e.EFF(91,"_"),e.k0s()(),e.j41(92,"th"),e.EFF(93,"Payment Count"),e.k0s(),e.j41(94,"th"),e.EFF(95,"\u2060Action"),e.k0s()()(),e.DNE(96,Lk,3,8,"tbody",29),e.k0s(),e.DNE(97,Nk,4,0,"div",30)(98,Bk,3,0,"div",31),e.k0s(),e.DNE(99,Gk,1,0,"pagination-controls",32),e.k0s()()()()()()()),2&r&&(e.R7$(2),e.Y8G("routes",e.eq3(14,Ik,e.lJ4(13,Dk))),e.R7$(12),e.R50("ngModel",i.searchQuery),e.R7$(4),e.R50("ngModel",i.currency),e.R7$(9),e.Y8G("ngClass",e.l_i(16,_0,""===i.filter_status.value,""!==i.filter_status.value)),e.R7$(4),e.Y8G("ngClass",e.l_i(19,_0,"TOP"===i.filter_status.value,"TOP"!==i.filter_status.value)),e.R7$(4),e.Y8G("ngClass",e.l_i(22,_0,"FIRST"===i.filter_status.value,"FIRST"!==i.filter_status.value)),e.R7$(4),e.Y8G("ngClass",e.l_i(25,_0,"REPEAT"===i.filter_status.value,"REPEAT"!==i.filter_status.value)),e.R7$(4),e.Y8G("ngClass",e.l_i(28,_0,"RECENT"===i.filter_status.value,"RECENT"!==i.filter_status.value)),e.R7$(4),e.Y8G("ngClass",e.l_i(31,_0,"H-REFUND"===i.filter_status.value,"H-REFUND"!==i.filter_status.value)),e.R7$(49),e.Y8G("ngIf",!i.is_loading_1&&i.transactions_count>0),e.R7$(),e.Y8G("ngIf",i.is_loading_1),e.R7$(),e.Y8G("ngIf",!i.is_loading_1&&0===i.transactions_count),e.R7$(),e.Y8G("ngIf",i.transactions_count>0))},dependencies:[Fe.YU,Fe.Sq,Fe.bT,xi.ej,ie.xH,ie.y7,ie.me,ie.wz,ie.BC,ie.vS,s4.D,E.SrT,E.KH5,Fe.vh,xi.kf],styles:["th[_ngcontent-%COMP%]{text-transform:uppercase}.input-container[_ngcontent-%COMP%]{position:relative;display:inline-block;width:100%;max-width:400px}.input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;padding:8px 10px 8px 32px;font-size:16px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box}.input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{position:absolute;
1left:10px;top:50%;transform:translateY(-50%);font-size:16px;color:#888;pointer-events:none}.search-img[_ngcontent-%COMP%]{width:14px;height:auto}.selecter_[_ngcontent-%COMP%]{background-color:#fff;border-color:#d0d5dd;color:#98a2b3;line-height:1.5rem;padding:.2375rem 1rem;font-size:14px!important;font-weight:400!important;border-radius:.25rem;height:36px}.menu_itam[_ngcontent-%COMP%]{width:100%;height:48px;padding:10px 1px;border-radius:6px;background:#f4f4f4;cursor:pointer;display:flex;align-items:center;justify-content:center}.menu_itam2[_ngcontent-%COMP%]{width:auto;height:48px;padding:10px 15px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;float:right}.clicked[_ngcontent-%COMP%]{background:#effff4;border:1px solid #036B26;color:#036b26}.clicked2[_ngcontent-%COMP%]{background:#fff;border:1px solid #D0D5DD;color:#98a2b3}.ipg-dashbord-right[_ngcontent-%COMP%]{padding-right:0!important}.button_name[_ngcontent-%COMP%]{font-size:12px;line-height:20px;font-weight:400}.button_img[_ngcontent-%COMP%]{width:20px;height:auto;margin-right:6px}.table-view-btn-3[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 12px;border:none;color:#04334d;cursor:pointer;border-radius:4px;box-shadow:0 4px 6px #0000001a;background-color:#fff}.button_img[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block}.table-view-btn-3[_ngcontent-%COMP%]:hover{box-shadow:0 6px 10px #00000026}.menu_refresh[_ngcontent-%COMP%]{width:auto;height:48px;padding:10px 15px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;float:right;background:#000;color:#fff;margin-left:15px}"]})}return n})();function zk(n,a){1&n&&(e.j41(0,"span",35),e.EFF(1,"Cancelled"),e.k0s())}function Uk(n,a){if(1&n&&(e.j41(0,"tr")(1,"td")(2,"span",33),e.EFF(3),e.k0s(),e.DNE(4,zk,2,0,"span",34),e.k0s(),e.j41(5,"td"),e.EFF(6),e.k0s(),e.j41(7,"td"),e.EFF(8),e.nI1(9,"date"),e.k0s()()),2&n){const t=a.$implicit;e.R7$(3),e.JRh((null==t?null:t.name)||"Not Available"),e.R7$(),e.Y8G("ngIf","Cancelled"===(null==t?null:t.status)),e.R7$(2),e.Lme("Every ",(null==t?null:t.interval_count)||"Not Available"," ",(null==t?null:t.interval)||"Not Available",""),e.R7$(2),e.SpI(" ",null!=t&&t.next_action_at?e.i5U(9,5,t.next_action_at,"yyyy-MM-dd HH:mm"):"Not Available"," ")}}function Yk(n,a){1&n&&(e.j41(0,"tr",36)(1,"td",37)(2,"div",38)(3,"span",39),e.EFF(4,"Loading..."),e.k0s()()()())}function Wk(n,a){1&n&&(e.j41(0,"tr",36)(1,"td",40),e.EFF(2,"No subscriptions available"),e.k0s()())}function $k(n,a){if(1&n&&(e.j41(0,"tr",19)(1,"td")(2,"span",33),e.EFF(3),e.k0s(),e.j41(4,"span",41),e.EFF(5,"Success"),e.k0s()(),e.j41(6,"td"),e.EFF(7),e.k0s(),e.j41(8,"td"),e.EFF(9),e.nI1(10,"date"),e.k0s(),e.j41(11,"td"),e.EFF(12),e.k0s()()),2&n){const t=a.$implicit;e.R7$(3),e.Lme("",(null==t?null:t.currency)||"Not Available"," ",(null==t?null:t.request_amount)||"Not Available",""),e.R7$(4),e.JRh((null==t?null:t.transaction_id)||"Not Available"),e.R7$(2),e.JRh(null!=t&&t.created_at?e.i5U(10,5,t.created_at,"MMM d, y, h:mm a"):"Not Available"),e.R7$(3),e.JRh((null==t?null:t.card_type)||"Not Available")}}function qk(n,a){1&n&&(e.j41(0,"tr")(1,"td",42)(2,"div",38)(3,"span",39),e.EFF(4,"Loading..."),e.k0s()()()())}function Xk(n,a){1&n&&(e.j41(0,"tr")(1,"td",40),e.EFF(2,"No transactions available"),e.k0s()())}function Hk(n,a){if(1&n&&(e.j41(0,"div",28)(1,"div",29)(2,"div",43)(3,"div"),e.nrm(4,"span",44),e.j41(5,"span",45),e.EFF(6),e.k0s(),e.j41(7,"span",44),e.EFF(8),e.k0s(),e.j41(9,"span",46),e.EFF(10,"Success"),e.k0s()(),e.j41(11,"div")(12,"span",47),e.EFF(13,"Expires "),e.k0s(),e.j41(14,"span"),e.EFF(15),e.k0s(),e.j41(16,"span",48),e.nrm(17,"i",49),e.k0s()()()()()),2&n){const t=a.$implicit,r=e.XpG();e.R7$(6),e.JRh((null==t?null:t.card_type)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.card_mask)||"Not Available"),e.R7$(7),e.JRh(r.getFormattedExpiryDate(null==t?null:t.card_expire))}}function Kk(n,a){1&n&&(e.j41(0,"div",2)(1,"div",50)(2,"div",38)(3,"span",39),e.EFF(4,"Loading..."),e.k0s()()()())}function Jk(n,a){1&n&&(e.j41(0,"div",2)(1,"div",50)(2,"span",51),e.EFF(3," Data not available"),e.k0s()()())}function Zk(n,a){if(1&n&&(e.j41(0,"p",32),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&n){const t=a.$implicit,r=e.XpG();e.R7$(),e.Lme(" ",t.symbol," ",e.i5U(2,2,null==r.customer_data||null==r.customer_data.usage?null:r.customer_data.usage[t.code],"1.2-2")," ")}}let Qk=(()=>{class n{constructor(t,r,i,s,p,g){this.fb=t,this.dialogService=r,this.transactionService=i,this.toastr=s,this.router=p,this.route=g,this.page=1,this.page_size=10,this.transactions_count=0,this.is_loading_1=!1,this.filter_form=null,this.transactions=[],this.customer=null,this.customer_data={},this.state1=!0,this.is_loading_2=Array(this.page_size).fill(!1),this.is_loading=!1}
1ngOnInit(){console.log(this.route.snapshot.params.id,"ffffff"),this.route.queryParamMap.subscribe(t=>{this.queryParams={},t.keys.forEach(r=>{this.queryParams[r]=t.get(r)}),console.log("Query parameters:",this.queryParams)}),this.getCustomerData()}getCustomerData(){this.is_loading_1=!0,this.transactionService.getAllViewCustomers(this.route.snapshot.params.id).then(t=>{this.is_loading_1=!1,200===t?.status?(this.customer_data=t?.data,this.customer_data_usage=t?.data.usage,console.log(this.customer_data.usage,"ressss"),console.log("customer deals",this.customer_data)):this.toastr.showToast("danger","Error!",t?.message||"Gettings customer details failed.")},t=>{this.is_loading_1=!1,console.log("Internal Server Error",t),this.toastr.showToast("danger","Error!","Internal Server Error.")})}pageChanged(t){this.page=t,this.getCustomerData()}openViewDetails(t,r){this.page_data=r,console.log(r,"rr"),this.view_details_model=this.dialogService.open(t,{closeOnBackdropClick:!1})}navigateToDeals(t){this.router.navigate(["/pages/view-deal",t],{queryParams:{first_name:this.customer?.first_name,last_name:this.customer?.last_name,email:this.customer?.email,phone_no:this.customer?.phone_no}})}goBack(){this.router.navigate(["/pages/customers"],{queryParams:this.queryParams})}getCurrencies(t){if(!t)return[];const r={USD:"US$",LKR:"LKR",EUR:"\u20ac",GBP:"\xa3",INR:"\u20b9"};return Object.keys(t).map(i=>({code:i,symbol:r[i]||i}))}getFormattedExpiryDate(t){if(!t)return"Not Available";const[r,i]=t.split("/").map(Number);return r&&i?`${["January","February","March","April","May","June","July","August","September","October","November","December"][r-1]} ${i<100?2e3+i:i}`:"Invalid Date"}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(ie.ok),e.rXU(E.S0W),e.rXU(Mt.kK),e.rXU(Dt.V4),e.rXU(qe.Ix),e.rXU(qe.nX))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-view-customer"]],decls:97,vars:30,consts:[[1,"body-style","ipg-transaction-root"],[1,"container"],[1,"row"],[1,"col"],[1,"row","align-items-center"],[1,"col-12","align-items-center"],[1,"d-flex","align-items-center"],[1,"head_left","mt-3",2,"cursor","pointer","margin-right","10px",3,"click"],[1,"back-arrow"],["src","../../../../../../assets/images/right_a.png",1,"right_a"],[1,"transaction_id"],[1,"transaction_id_des",2,"margin-left","22px"],[1,"copy_icon",3,"text"],[1,"hr_"],[1,"col-9"],[1,"hedline","mt-1"],[1,"hr_2"],[1,"table","table-responsive-sm","table-hover","table-outline","mb-0"],[1,"thead-light"],[2,"font-family","'Poppins'"],[4,"ngFor","ngForOf"],["style","height: 5rem;",4,"ngIf"],[1,"hedline","mt-3"],["style","font-family: 'Poppins';",4,"ngFor","ngForOf"],[4,"ngIf"],["class","row mt-2",4,"ngFor","ngForOf"],["class","row",4,"ngIf"],[1,"col-3"],[1,"row","mt-2"],[1,"col-12"],[1,"lable_"],["class","lable_data",4,"ngFor","ngForOf"],[1,"lable_data"],[2,"color","#1E1E1E"],["class","_bage cancel",4,"ngIf"],[1,"_bage","cancel"],[2,"height","5rem"],["colspan","3",2,"text-align","center"],["role","status",1,"spinner-border","text-primary"],[1,"visually-hidden"],["colspan","3",2,"text-align","center","color","#888"],[1,"_bage","success"],["colspan","4",2,"text-align","center"],[1,"card_details","d-flex","justify-content-between","align-items-center"],[2,"margin-right","5px"],[2,"margin-right","10px"],[1,"_bage","default"],[2,"margin-right","4px"],[2,"margin-left","10px","color","#71717A"],["aria-hidden","true",1,"fa","fa-trash"],[1,"col-12","d-flex","justify-content-center","align-items-center"],[2,"text-align","center","color","#888","font-size","12px"]],template:function(r,i){if(1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"nb-card")(5,"nb-card-body")(6,"div",4)(7,"div",5)(8,"div",6)(9,"div",7),e.bIt("click",function(){return i.goBack()}),e.j41(10,"span",8),e.nrm(11,"img",9),e.k0s()(),e.j41(12,"span",10),e.EFF(13),e.k0s()(),e.j41(14,"div",6)(15,"p",11)(16,"span"),e.EFF(17),e.k0s(),e.j41(18,"span"),e.nrm(19,"ngx-copy-text",12),e.k0s()()()()(),e.nrm(20,"hr",13)(21,"div",2),e.j41(22,"div",2)(23,"div",14)(24,"h3",15),e.EFF(25,"Subscription Payment"),e.k0s(),e.nrm(26,"hr",16),e.j41(27,"table",17)(28,"thead",18)(29,"tr",19)(30,"th"),e.EFF(31,"Product"),e.k0s(),e.j41(32,"th"),e.EFF(33,"Frequency"),e.k0s(),e.j41(34,"th"),e.EFF(35,"Next Invoice"),e.k0s()()(),e.j41(36,"tbody"),e.DNE(37,Uk,10,8,"tr",20)(38,Yk,5,0,"tr",21)(39,Wk,3,0,"tr",21),e.k0s()(),e.j41(40,"h3",22),e.EFF(41,"Payment Details"),e.k0s(),e.nrm(42,"hr",16),e.j41(43,"table",17)(44,"thead",18)(45,"tr",19)(46,"th"),e.EFF(47,"Paid Amount"),e.k0s(),e.j41(48,"th"),e.EFF(49,"Transaction ID"),e.k0s(),e.j41(50,"th"),e.EFF(51,"Date/ Time"),e.k0s(),e.j41(52,"th"),e.EFF(53,"Payment Method"),e.k0s()()(),e.j41(54,"tbody"),e.DNE(
155,$k,13,8,"tr",23)(56,qk,5,0,"tr",24)(57,Xk,3,0,"tr",24),e.k0s()(),e.j41(58,"h3",22),e.EFF(59,"Tokenization card"),e.k0s(),e.nrm(60,"hr",16),e.j41(61,"div"),e.DNE(62,Hk,18,3,"div",25)(63,Kk,5,0,"div",26)(64,Jk,4,0,"div",26),e.k0s()(),e.j41(65,"div",27)(66,"h3",15),e.EFF(67,"Insights"),e.k0s(),e.nrm(68,"hr",16),e.j41(69,"div",28)(70,"div",29)(71,"p",30),e.EFF(72,"Total Spent Amount"),e.k0s(),e.DNE(73,Zk,3,5,"p",31),e.k0s()(),e.j41(74,"div",28),e.nrm(75,"div",29),e.k0s(),e.j41(76,"h3",15),e.EFF(77,"Details"),e.k0s(),e.nrm(78,"hr",16),e.j41(79,"div",28)(80,"div",29)(81,"p",30),e.EFF(82,"Customer Name"),e.k0s(),e.j41(83,"p",32),e.EFF(84),e.k0s()()(),e.j41(85,"div",28)(86,"div",29)(87,"p",30),e.EFF(88,"Customer Email"),e.k0s(),e.j41(89,"p",32),e.EFF(90),e.k0s()()(),e.j41(91,"div",28)(92,"div",29)(93,"p",30),e.EFF(94,"Customer Number"),e.k0s(),e.j41(95,"p",32),e.EFF(96),e.k0s()()()()()()()()()()()),2&r){let s,p,g,S;e.R7$(13),e.JRh(null!==(s=null==i.customer_data?null:i.customer_data.customer_name)&&void 0!==s?s:"Not Available"),e.R7$(4),e.SpI(" ",null!==(p=null==i.customer_data?null:i.customer_data.email)&&void 0!==p?p:"Not Available",""),e.R7$(2),e.FS9("text",null!==(g=null==i.customer_data?null:i.customer_data.email)&&void 0!==g?g:"Not Available"),e.R7$(11),e.xc7("width",35,"%"),e.R7$(2),e.xc7("width",25,"%"),e.R7$(2),e.xc7("width",40,"%"),e.R7$(3),e.Y8G("ngForOf",null==i.customer_data?null:i.customer_data.subscriptions),e.R7$(),e.Y8G("ngIf",i.is_loading_1),e.R7$(),e.Y8G("ngIf",!(i.is_loading_1||null!=i.customer_data&&i.customer_data.subscriptions&&0!==(null==i.customer_data?null:i.customer_data.subscriptions.length))),e.R7$(7),e.xc7("width",25,"%"),e.R7$(2),e.xc7("width",25,"%"),e.R7$(2),e.xc7("width",20,"%"),e.R7$(2),e.xc7("width",30,"%"),e.R7$(3),e.Y8G("ngForOf",i.customer_data.transactions),e.R7$(),e.Y8G("ngIf",i.is_loading_1),e.R7$(),e.Y8G("ngIf",!(i.is_loading_1||null!=i.customer_data&&i.customer_data.transactions&&0!==(null==i.customer_data?null:i.customer_data.transactions.length))),e.R7$(5),e.Y8G("ngForOf",i.customer_data.cards),e.R7$(),e.Y8G("ngIf",i.is_loading_1),e.R7$(),e.Y8G("ngIf",!(i.is_loading_1||null!=i.customer_data&&i.customer_data.cards&&0!==(null==i.customer_data?null:i.customer_data.cards.length))),e.R7$(9),e.Y8G("ngForOf",i.getCurrencies(i.customer_data.usage)),e.R7$(11),e.JRh(null!==(S=null==i.customer_data?null:i.customer_data.customer_name)&&void 0!==S?S:"Not Available"),e.R7$(6),e.JRh(i.customer_data&&i.customer_data.email||"Not Available"),e.R7$(6),e.JRh(i.customer_data&&i.customer_data.phone||"Not Available")}},dependencies:[Fe.Sq,Fe.bT,Pl.a,E.SrT,E.KH5,Fe.QX,Fe.vh],styles:[".right_a[_ngcontent-%COMP%]{height:18px;width:auto}.back-arrow[_ngcontent-%COMP%]{cursor:pointer}.transaction_id[_ngcontent-%COMP%]{font-size:22px;font-weight:500;line-height:32px}.hr_[_ngcontent-%COMP%]{border:1px solid #BCBCBC;margin-top:5px!important;margin-bottom:5px!important}.hr_2[_ngcontent-%COMP%]{border:1px solid #BCBCBC;margin-top:0!important;margin-bottom:0!important}.transaction_id_des[_ngcontent-%COMP%]{font-size:14px;font-weight:500;line-height:19px;color:#667185}.transaction_id2[_ngcontent-%COMP%]{font-size:28px;font-weight:700;color:#000}.hedline[_ngcontent-%COMP%]{font-size:18px;font-weight:500;color:#1e1e1e;margin-top:-20px}.sub_head[_ngcontent-%COMP%]{font-size:13px;color:#838383;font-weight:500}.sub_head_data[_ngcontent-%COMP%]{font-size:13px;color:#1e1e1e;font-weight:500}.line_space[_ngcontent-%COMP%]{margin-bottom:10px}.table[_ngcontent-%COMP%] .thead-light[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#1e1e1e!important;background-color:transparent!important;border-color:#dee2e6!important;border-bottom:1px solid rgba(188,188,188,.5019607843)!important;font-size:12px!important;font-weight:400!important;border-top:0!important;padding-top:5px!important;padding-bottom:5px!important;padding-left:0!important}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:12px;font-weight:400;border-bottom:1px solid rgba(188,188,188,.5019607843)!important;padding-top:5px!important;padding-bottom:5px!important;padding-left:0!important;color:#838383!important}.lable_[_ngcontent-%COMP%]{color:#1e1e1e;font-size:12px;font-weight:600}.lable_data[_ngcontent-%COMP%]{color:#838383;font-size:12px;font-weight:400}._bage[_ngcontent-%COMP%]{padding:2px 4px;border-radius:2px;margin-left:5px;font-size:8px}.success[_ngcontent-%COMP%]{border:.4px solid #34C759;background-color:#ebfff0;color:#34c759}.cancel[_ngcontent-%COMP%]{border:.4px solid #838383;background-color:#eee;color:#838383}.default[_ngcontent-%COMP%]{border:.4px solid #30B0C7;background-color:#ebfeff;color:#30b0c7}.card_details[_ngcontent-%COMP%]{width:100%;height:30px;background-color:#bcbcbc33;border:none;padding:5px;font-size:12px}.cus_img[_ngcontent-%COMP%]{height:15px;width:auto}"]})}return n})();const e3=()=>({title:"Customers",link:"/pages/customers"}),t3=()=>({title:"Customers Details",goBack:!0}),n3=()=>({title:"Customer Deal",isActive:!0}),i3=(n,a,t)=>[n,a,t],I2=(n,a,t)=>({itemsPerPage:n,currentPage:a,totalItems:t}),r3=n=>({"form-control-danger":n});function a3(n,a){if(1&n&&(e.j41(0,"span",16),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Lme("",null==t.customer?null:t.customer.first_name," ",null==t.customer?null:t.customer.last_name,"")}}function o3(n,a){1&n&&(e.j41(0,"span",16),e.EFF(1,"Not Available"),e.k0s())}function s3(n,a){1&n&&e.nrm(0,"nb-badge",40)}function l3(n,a){1&n&&e.nrm(0,"nb-badge",41)}function c3(n,a){if(1&n&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td",37),e.DNE(4,s3,1,0,"nb-badge",38)(5,l3,1,0,"nb-badge",39),e.k0s(),e.j41(6,"td"),e.EFF(7),e.k0s(),e.j41(8,"td"),e.EFF(9),e.k0s(),e.j41(10,"td"),e.EFF(11),e.k0s(),e.j41(12,"td"),e.EFF(13),e.k0s(),e.j41(14,"td"),e.EFF(15),e.k0s(),e.j41(16,"td"),e.EFF(17),e.k0s(),e.j41(18,"td"),e.EFF(19),e.k0s()()),2&n){const t=a.$implicit;e.R7$(2),e.JRh((null==t?null:t.ipg_transaction_id)||"Not Available"),e.R7$(2),e.Y8G("ngIf",null==t?null:t.active_status),e.R7$(),e.Y8G("ngIf",!(null!=t&&t.active_status)),e.R7$(2),e.JRh((null==t?null:t.card_number)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.card_funding_method)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.card_scheme)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.card_expire)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.ipg_transaction_long_id)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.token_provider)||"Not Available"),e.R7$(2),e.JRh(1==t.is_hold?"Yes":"NO")}}function d3(n,a){if(1&n&&(e.j41(0,"tbody"),e.DNE(1,c3,20,10,"tr",36),e.nI1(2,"paginate"),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngForOf",e.i5U(2,1,t.deal_data,e.sMw(4,I2,t.page_size,t.page,t.deal_count)))}}function u3(n,a){1&n&&(e.j41(0,"div",42)(1,"div",43)(2,"span",44),e.EFF(3,"Loading..."),e.k0s()()())}function f3(n,a){1&n&&(e.j41(0,"div",45)(1,"h6"),e.EFF(2,"No data available!"),e.k0s()())}function p3(n,a){if(1&n){const t=e.RV6();e.j41(0,"pagination-controls",46),e.bIt("pageChange",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.pageChanged(i))})("pageBoundsCorrection",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.pageChanged(i))}),e.k0s()}}function h3(n,a){if(1&n&&(e.j41(0,"div",28)(1,"div",29)(2,"div",30)(3,"table",31)(4,"thead")(5,"tr")(6,"th"),e.EFF(7,"ipg transaction id"),e.k0s(),e.j41(8,"th"),e.EFF(9,"Status"),e.k0s(),e.j41(10,"th"),e.EFF(11,"card number"),e.k0s(),e.j41(12,"th"),e.EFF(13,"card funding method"),e.k0s(),e.j41(14,"th"),e.EFF(15,"card scheme"),e.k0s(),e.j41(16,"th"),e.EFF(17,"card expire"),e.k0s(),e.j41(18,"th"),e.EFF(19,"ipg transaction long id"),e.k0s(),e.j41(20,"th"),e.EFF(21,"token provider"),e.k0s(),e.j41(22,"th"),e.EFF(23,"Hold Status"),e.k0s()()(),e.DNE(24,d3,3,8,"tbody",32),e.k0s(),e.DNE(25,u3,4,0,"div",33)(26,f3,3,0,"div",34),e.k0s(),e.DNE(27,p3,1,0,"pagination-controls",35),e.k0s()()),2&n){const t=e.XpG();e.R7$(24),e.Y8G("ngIf",!t.is_loading_1&&t.deal_count>0),e.R7$(),e.Y8G("ngIf",t.is_loading_1),e.R7$(),e.Y8G("ngIf",!t.is_loading_1&&0===t.deal_count),e.R7$(),e.Y8G("ngIf",t.deal_count>0)}}function m3(n,a){1&n&&e.nrm(0,"nb-badge",54)}function g3(n,a){1&n&&e.nrm(0,"nb-badge",55)}function _3(n,a){if(1&n&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.EFF(4),e.k0s(),e.j41(5,"td"),e.EFF(6),e.k0s(),e.j41(7,"td",37),e.DNE(8,m3,1,0,"nb-badge",52)(9,g3,1,0,"nb-badge",53),e.k0s(),e.j41(10,"td"),e.EFF(11),e.k0s(),e.j41(12,"td"),e.EFF(13),e.k0s(),e.j41(14,"td"),e.EFF(15),e.k0s()()),2&n){const t=a.$implicit;e.R7$(2),e.JRh((null==t?null:t.id)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.transaction_card_nummber)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.transaction_card_scheme)||"Not Available"),e.R7$(2),e.Y8G("ngIf",null==t?null:t.is_hold),e.R7$(),e.Y8G("ngIf",!(null!=t&&t.is_hold)),e.R7$(2),e.SpI("",(null==t?null:t.deal_transaction_description)||"Not Available"," "),e.R7$(2),e.SpI("",(null==t?null:t.request_execution_datetime)||"Not Available"," "),e.R7$(2),e.JRh((null==t?null:t.request_deal_amount)||"Not Available")}}function v3(n,a){if(1&n&&(e.j41(0,"tbody"),e.DNE(1,_3,16,8,"tr",36),e.nI1(2,"paginate"),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("ngForOf",e.i5U(2,1,t.non_transaction_data,e.sMw(4,I2,t.page_size2,t.page2,t.transactions_count)))}}function x3(n,a){1&n&&(e.j41(0,"div",42)(1,"div",43)(2,"span",44),e.EFF(3,"Loading..."),e.k0s()()())}function b3(n,a){1&n&&(e.j41(0,"div",45)(1,"h6"),e.EFF(2,"No data available!"),e.k0s()())}function y3(n,a){if(1&n){const t=e.RV6();e.j41(0,"pagination-controls",46),e.bIt("pageChange",function(i){e.eBV(t);const s=e.XpG(3);return e.Njj(s.pageNonTransactionPage(i))})("pageBoundsCorrection",function(i){e.eBV(t);const s=e.XpG(3);return e.Njj(s.pageNonTransactionPage(i))}),e.k0s()}}function C3(n,a){if(1&n&&(e.j41(0,"div",51)(1,"div",29)(2,"div",30)(3,"table",31)(4,"thead")(5,"tr")(6,"th"),e.EFF(7,"ID"),e.k0s(),e.j41(8,"th"),e.EFF(9,"Requested Card Number"),e.k0s(),e.j41(10,"th"),e.EFF(11,"Requested Card Scheme"),e.k0s(),e.j41(12,"th"),e.EFF(13,"Job Status"),e.k0s(),e.j41(14,"th"),e.EFF(15,"Description"),e.k0s(),e.j41(16,"th"),e.EFF(17,"Requeted Execution"),e.k0s(),e.j41(18,"th"),e.EFF(19,"Amount(LKR)"),e.k0s()()(),e.DNE(20,v3,3,8,"tbody",32),e.k0s(),e.DNE(21,x3,4,0,"div",33)(22,b3,3,0,"div",34),e.k0s(),e.DNE(23,y3,1,0,"pagination-controls",35),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(20),e.Y8G("ngIf",!t.is_loading_1&&t.transactions_count>0),e.R7$(),e.Y8G("ngIf",t.is_loading_1),e.R7$(),e.Y8G("ngIf",!t.is_loading_1&&0===t.transactions_count),e.R7$(),e.Y8G("ngIf",t.transactions_count>0)}}function k3(n,a){1&n&&e.nrm(0,"nb-badge",58)}function w3(n,a){1&n&&e.nrm(0,"nb-badge",59)}function F3(n,a){if(1&n&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.EFF(4),e.k0s(),e.j41(5,"td"),e.EFF(6),e.k0s(),e.j41(7,"td"),e.EFF(8),e.k0s(),e.j41(9,"td",37),e.DNE(10,k3,1,0,"nb-badge",56)(11,w3,1,0,"nb-badge",57),e.k0s(),e.j41(12,"td"),e.EFF(13),e.k0s(),e.j41(14,"td"),e.EFF(15),e.k0s(),e.j41(16,"td"),e.EFF(17),e.k0s()()),2&n){const t=a.$implicit;e.R7$(2),e.JRh((null==t?null:t.id)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.transaction_card_nummber)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.transaction_card_scheme)||"Not Available"),e.R7$(2),e.SpI("",(null==t?null:t.deal_transaction_description)||"Not Available"," "),e.R7$(2),e.Y8G("ngIf",null==t?null:t.transaction_status),e.R7$(),e.Y8G("ngIf",!(null!=t&&t.transaction_status)),e.R7$(2),e.JRh((null==t?null:t.executed_datetime)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.request_deal_amount)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.ipg_onepay_transaction_id)||"Not Available")}}function A3(n,a){if(1&n&&(e.j41(0,"tbody"),e.DNE(1,F3,18,9,"tr",36),e.nI1(2,"paginate"),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("ngForOf",e.i5U(2,1,t.transaction_data,e.sMw(4,I2,t.page_size3,t.page3,t.ex_transactions_count)))}}function T3(n,a){1&n&&(e.j41(0,"div",42)(1,"div",43)(2,"span",44),e.EFF(3,"Loading..."),e.k0s()()())}function S3(n,a){1&n&&(e.j41(0,"div",45)(1,"h6"),e.EFF(2,"No data available!"),e.k0s()())}function E3(n,a){if(1&n){const t=e.RV6();e.j41(0,"pagination-controls",46),e.bIt("pageChange",function(i){e.eBV(t);const s=e.XpG(3);return e.Njj(s.pageTransactionPage(i))})("pageBoundsCorrection",function(i){e.eBV(t);const s=e.XpG(3);return e.Njj(s.pageTransactionPage(i))}),e.k0s()}}function P3(n,a){if(1&n&&(e.j41(0,"div",51)(1,"div",29)(2,"div",30)(3,"table",31)(4,"thead")(5,"tr")(6,"th"),e.EFF(7,"ID"),e.k0s(),e.j41(8,"th"),e.EFF(9,"Requested Card Number"),e.k0s(),e.j41(10,"th"),e.EFF(11,"Requested Card Scheme"),e.k0s(),e.j41(12,"th"),e.EFF(13,"Description"),e.k0s(),e.j41(14,"th"),e.EFF(15,"Transaction Status"),e.k0s(),e.j41(16,"th"),e.EFF(17,"Execution Date time"),e.k0s(),e.j41(18,"th"),e.EFF(19,"Amount(LKR) "),e.k0s(),e.j41(20,"th"),e.EFF(21,"Related Transaction ID "),e.k0s()()(),e.DNE(22,A3,3,8,"tbody",32),e.k0s(),e.DNE(23,T3,4,0,"div",33)(24,S3,3,0,"div",34),e.k0s(),e.DNE(25,E3,1,0,"pagination-controls",35),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(22),e.Y8G("ngIf",!t.is_loading_1&&t.ex_transactions_count>0),e.R7$(),e.Y8G("ngIf",t.is_loading_1),e.R7$(),e.Y8G("ngIf",!t.is_loading_1&&0===t.ex_transactions_count),e.R7$(),e.Y8G("ngIf",t.ex_transactions_count>0)}}function M3(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",47)(1,"div",19)(2,"div",20)(3,"button",48),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.trn1_show())}),e.EFF(4,"Non Executed Transactions"),e.k0s(),e.j41(5,"button",49),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.trn2_show())}),e.EFF(6,"Executed Transactions"),e.k0s()()(),e.j41(7,"div",19),e.DNE(8,C3,24,4,"div",50)(9,P3,26,4,"div",50),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(3),e.HbH(t.tra_sec1?"tab-2":"tab"),e.R7$(2),e.HbH(t.tra_sec2?"tab-2":"tab"),e.R7$(3),e.Y8G("ngIf",t.tra_sec1),e.R7$(),e.Y8G("ngIf",t.tra_sec2)}}function O3(n,a){if(1&n){const t=e.RV6();e.j41(0,"form",60),e.bIt("ngSubmit",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.deleteTokenData())}
1),e.j41(1,"nb-card",61)(2,"nb-card-header",62),e.EFF(3,"Delete Token"),e.k0s(),e.j41(4,"nb-card-body",63)(5,"div",64)(6,"p")(7,"strong",62),e.EFF(8,"Are you sure you want to delete "),e.nrm(9,"span",65),e.EFF(10," token?"),e.k0s()(),e.j41(11,"p"),e.EFF(12,"All information associated to this token will be permanently deleted. "),e.j41(13,"span",66),e.EFF(14,"This operation can not be undone."),e.k0s()()()(),e.j41(15,"nb-card-footer")(16,"button",67),e.EFF(17,"Delete"),e.k0s(),e.j41(18,"button",68),e.bIt("click",function(){const i=e.eBV(t).dialogRef;return e.Njj(i.close())}),e.EFF(19,"Close"),e.k0s()()()()}if(2&n){const t=e.XpG();e.Y8G("formGroup",t.deleteTokenForm),e.R7$(16),e.Y8G("nbSpinner",t.is_loading)("disabled",t.is_loading)}}function D3(n,a){1&n&&(e.j41(0,"small",76),e.EFF(1," Reason is required!"),e.k0s())}function I3(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,D3,2,0,"small",75),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.requestForm.get("reason").errors.required)}}function j3(n,a){if(1&n){const t=e.RV6();e.j41(0,"form",69),e.bIt("ngSubmit",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.requestData())}),e.j41(1,"nb-card",61)(2,"nb-card-header",62),e.EFF(3,"Request"),e.k0s(),e.j41(4,"nb-card-body",63)(5,"div",70)(6,"div",71)(7,"label",72),e.EFF(8,"Reason"),e.k0s(),e.nrm(9,"input",73),e.DNE(10,I3,2,1,"div",32),e.k0s()()(),e.j41(11,"nb-card-footer")(12,"button",74),e.EFF(13,"Add"),e.k0s(),e.j41(14,"button",68),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.close2())}),e.EFF(15,"Close"),e.k0s()()()()}if(2&n){const t=e.XpG();e.Y8G("formGroup",t.requestForm),e.R7$(9),e.Y8G("ngClass",e.eq3(5,r3,(t.requestForm.get("reason").dirty||t.requestForm.get("reason").touched)&&t.requestForm.get("reason").errors)),e.R7$(),e.Y8G("ngIf",t.requestForm.get("reason").invalid&&(t.requestForm.get("reason").dirty||t.requestForm.get("reason").touched)),e.R7$(2),e.Y8G("nbSpinner",t.is_loading)("disabled",!t.requestForm.valid)}}let R3=(()=>{class n{constructor(t,r,i,s,p,g){this.toastr=t,this.transactionService=r,this.dialogService=i,this.fb=s,this.router=p,this.route=g,this.state1=!0,this.state2=!1,this.tra_sec1=!0,this.tra_sec2=!1,this.is_loading_1=!1,this.phone_number="",this.name="",this.page=1,this.page_size=10,this.page2=1,this.page_size2=10,this.page3=1,this.page_size3=10,this.deal_count=0,this.transactions_count=0,this.ex_transactions_count=0,this.is_loading=!1,this.search_by="",this.search_text="",this.deal_data=[],this.non_transaction_data=[],this.transaction_data=[],this.customer=null,this.requestForm=this.fb.group({id:[""],reason:["",ie.k0.required]}),this.deleteTokenForm=this.fb.group({id:["",ie.k0.required]})}ngOnInit(){this.customer={first_name:this.route.snapshot.queryParamMap.get("first_name"),last_name:this.route.snapshot.queryParamMap.get("last_name"),email:this.route.snapshot.queryParamMap.get("email"),phone_no:this.route.snapshot.queryParamMap.get("phone_no")},this.getPaymentPageData(this.page,this.page_size),this.getNonTransactionPageData(this.page2,this.page_size2),this.getTransactionPageData(this.page3,this.page_size3)}pageChanged(t){this.page=t,this.getPaymentPageData(this.page,this.page_size)}getPaymentPageData(t,r){this.is_loading_1=!0,this.transactionService.getAllViewDeal(t,r,this.route.snapshot.params.id).then(i=>{console.log(i,"ttrrf ytgg thff"),this.is_loading_1=!1,100==i.status?(this.deal_data=i?.data.tokens,this.deal_count=i?.data?.count,console.log(this.deal_count,"deal count")):this.toastr.showToast("danger","Error!",i?.message||"Gettings ipg data failed.")},i=>{this.is_loading_1=!1,console.log("Internal Server Error",i),this.toastr.showToast("danger","Error!","Internal Server Error.")})}pageNonTransactionPage(t){this.page2=t,this.getNonTransactionPageData(this.page2,this.page_size2)}getNonTransactionPageData(t,r){this.is_loading_1=!0,this.transactionService.getNonTranasaction(t,r,this.route.snapshot.params.id).then(i=>{console.log(i,"non ex"),this.is_loading_1=!1,100==i.status?(this.non_transaction_data=i?.data.transactions,this.transactions_count=i?.data?.count,console.log(this.transactions_count,"no excute c
1ount")):this.toastr.showToast("danger","Error!",i?.message||"Gettings data failed.")},i=>{this.is_loading_1=!1,console.log("Internal Server Error",i),this.toastr.showToast("danger","Error!","Internal Server Error.")})}pageTransactionPage(t){this.page3=t,this.getNonTransactionPageData(this.page3,this.page_size3)}getTransactionPageData(t,r){this.is_loading_1=!0,this.transactionService.getTranasaction(t,r,this.route.snapshot.params.id).then(i=>{console.log(i,"execute tr"),this.is_loading=!1,100==i.status?(this.transaction_data=i?.data.transactions,this.ex_transactions_count=i?.data?.count,console.log(this.ex_transactions_count,"executed count")):this.toastr.showToast("danger","Error!",i?.message||"Gettings data failed.")},i=>{this.is_loading_1=!1,console.log("Internal Server Error",i),this.toastr.showToast("danger","Error!","Internal Server Error.")})}sec1_show(){this.state1=!0,this.state2=!1}sec2_show(){this.state2=!0,this.state1=!1}trn1_show(){this.tra_sec1=!0,this.tra_sec2=!1}trn2_show(){this.tra_sec2=!0,this.tra_sec1=!1}openDeleteToken(t){this.deleteTokenForm.setValue({id:this.route.snapshot.params.id}),this.delete_token_model=this.dialogService.open(t,{closeOnBackdropClick:!1})}deleteTokenData(){this.is_loading=!0,this.transactionService.deleteToken(this.deleteTokenForm.value.id).then(t=>{console.log(t,"eee"),this.is_loading=!1,100==t.status?(this.toastr.showToast("success","Cheers!","Token Deleted Successfully!"),this.delete_token_model.close()):(this.userMessage=t.message,this.toastr.showToast("danger","Oh Snap!",t.message))},t=>{this.is_loading=!1,this.toastr.showToast("danger","Oh Snap!","Internal Server Error!")})}openRequest(t){this.request_model=this.dialogService.open(t,{closeOnBackdropClick:!1})}close2(){this.requestForm.reset(),this.request_model.close()}requestData(){this.is_loading=!0;let t={...this.requestForm.value,id:this.route.snapshot.params.id};this.transactionService.postrequestchange(t).then(r=>{this.is_loading=!1,console.log(r,"rrrrr"),100==r.status?(this.requestForm.reset(),this.request_model.close(),this.toastr.showToast("success","Cheers!","Request Send Successfully!")):(console.log("error"),this.userMessage=r.message,this.toastr.showToast("danger","Oh Snap!",r.message))},r=>{this.is_loading=!1,console.log(r),this.toastr.showToast("danger","Oh Snap!","Internal Server Error!")})}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(Dt.V4),e.rXU(Mt.kK),e.rXU(E.S0W),e.rXU(ie.ok),e.rXU(qe.Ix),e.rXU(qe.nX))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-view-deal"]],decls:52,vars:18,consts:[["dialogDeleteToken",""],["dialogRequest",""],[1,"body-style","ipg-transaction-root"],[1,"container"],[3,"routes"],[1,"row","mb-4"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"page-heading"],[1,"col"],[1,"mb-4"],[1,"sub-heading"],[1,"row",2,"margin-bottom","20px"],[1,"d-flex","flex-wrap"],[1,"d-flex","align-items-center","mr-5"],[1,"lable-head","mr-1"],["class","lable-data",4,"ngIf"],[1,"lable-data"],[1,"d-flex","align-items-center"],[1,"row"],[1,"col-sm-12"],[1,"tab-botton"],["autofocus","state1",3,"click"],["aria-hidden","true",1,"fa","fa-book",2,"margin-right","4px"],["autofocus","state2",3,"click"],[1,"request",2,"float","right",3,"click"],[1,"delete_btn",2,"float","right",3,"click"],["class","row","style","margin-top: 20px;overflow-x: scroll",4,"ngIf"],["style","overflow-x: scroll","class","row",4,"ngIf"],[1,"row",2,"margin-top","20px","overflow-x","scroll"],[1,"col","d-flex","flex-column","px-0","list-like-table"],[1,"table-responsive"],[1,"table","table-sm","align-top"],[4,"ngIf"],["class","d-flex justify-content-center align-items-center","style","height: 20rem;",4,"ngIf"],["class","d-flex justify-content-center align-items-center table-no-data-div","style","height: 20rem;",4,"ngIf"],["responsive","true","class","mx-auto mt-4",3,"pageChange","pageBoundsCorrection",4,"ngIf"],[4,"ngFor","ngForOf"],[2,"position","relative"],["text","Active","status","success","position","center",4,"ngIf"],["text","Deactive","status","danger","position","center",4,"ngIf"],["text","Active","status","success","position","center"],["text","Deactive","status","danger","position","center"],[1,"d-flex","justify-content-center","align-items-center",2,"height","20rem"],["role","status",1,"spinner-border","text-primary"],[1,"visually-hidden"],[1,"d-flex","justify-content-center","align-items-center","table-no-data-div",2,"height","20rem"],["responsive","true",1,"mx-auto","mt-4",3,"pageChange","pageBoundsCorrection"],[1,"row",2,"overflow-x","scroll"],["autofocus","tra_sec1",3,"click"],["autofocus","tra_sec2",3,"click"],["class","row","style","margin-top: 20px;width: 100%;",4,"ngIf"],[1,"row",2,"margin-top","20px","width","100%"],["text","Hold","status","danger","position","center",4,"ngIf"],["text","Ongoing","status","success","position","center",4,"ngIf"],["text","Hold","status","danger","position","center"],["text","Ongoing","status","success","position","center"],["text","Completed","status","success","position","center",4,"ngIf"],["text","Incomplete","status","danger","position","center",4,"ngIf"],["text","Completed","status","success","position","center"],["text","Incomplete","status","danger","position","center"],[1,"step-container",3,"ngSubmit","formGroup"],[2,"width","40vw"],[2,"font-family","'Poppins'"],[1,"dialog-border",2,"font-family","'Poppins'"],[1,"modal-body"],[1,"text-primary"],[1,"text-danger",2,"font-family","'Poppins'"],["type","submit","status","danger","size","small","nbSpinnerStatus","danger","nbSpinnerSize","tiny","nbButton","",1,"col-md-2",2,"float","right",3,"nbSpinner","disabled"],["type","button","status","info","size","small","nbButton","",1,"col-md-2",2,"float","right","background-color","white","border-color","white","color","rgb(112, 108, 108)",3,"click"],[1,"step-container",2,"font-family","'Poppins'",3,"ngSubmit","formGroup"],[1,"col-md-12","col-lg-12","col-xxxl-12"],[1,"input-group"],[1,"label-form-control","label-name"],["formControlName","reason","type","text","nbInput","","fullWidth","","shape","rectangle","placeholder","Reason",1,"form-control","input-bottom",3,"ngClass"],["type","submit","status","primary","size","small","nbButton","","nbSpinnerStatus","primary","nbSpinnerSize","tiny",1,"col-md-2",2,"float","right",3,"nbSpinner","disabled"],["class","text-danger",4,"ngIf"],[1,"text-danger"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",2)(1,"div",3),e.nrm(2,"ngx-breadcrumb",4),e.j41(3,"div",5)(4,"div",6)(5,"h2",7),e.EFF(6,"View Deal"),e.k0s()()(),e.j41(7,"div",5)(8,"div",8)(9,"nb-card")(10,"nb-card-body")(11,"div",9)(12,"h2",10),e.EFF(13," View Details"),e.k0s()(),e.j41(14,"div",11)(15,"div",8)(16,"div",12)(17,"div",13)(18,"span",14),e.EFF(19,"Customer Name :"),e.k0s(),e.DNE(20,a3,2,2,"span",15)(21,o3,2,0,"span",15),e.k0s(),e.j41(22,"div",13)(23,"span",14),e.EFF(24,"Email :"),e.k0s(),e.j41(25,"span",16),e.EFF(26),e.k0s()(),e.j41(27,"div",17)(28,"span",14),e.EFF(29,"Phone No :"),e.k0s(),e.j41(30,"span",16),e.EFF(31),e.k0s()()()()(),e.nrm(32,"hr"),e.j41(33,"div",18)(34,"div",19)(35,"div",20)(36,"button",21),e.bIt("click",function(){return e.eBV(s),e.Njj(i.sec1_show())}),e.nrm(37,"i",22),e.EFF(38,"Deals"),e.k0s(),e.j41(39,"button",23),e.bIt("click",function(){return e.eBV(s),e.Njj(i.sec2_show())}),e.nrm(40,"i",22),e.EFF(41,"Sessions"),e.k0s(),e.j41(42,"button",24),e.bIt("click",function(){e.eBV(s);const g=e.sdS(51);return e.Njj(i.openRequest(g))}),e.EFF(43," Update Card Details"),e.k0s(),e.j41(44,"button",25),e.bIt("click",function(){e.eBV(s);const g=e.sdS(49);return e.Njj(i.openDeleteToken(g))}),e.EFF(45," Deactivate tokens"),e.k0s()()()(),e.DNE(46,h3,28,4,"div",26)(47,M3,10,6,"div",27),e.k0s()()()()()(),e.DNE(48,O3,20,3,"ng-template",null,0,e.C5r)(50,j3,16,7,"ng-template",null,1,e.C5r)}2&r&&(e.R7$(2),e.Y8G("routes",e.sMw(14,i3,e.lJ4(11,e3),e.lJ4(12,t3),e.lJ4(13,n3))),e.R7$(18),e.Y8G("ngIf",i.customer),e.R7$(),e.Y8G("ngIf",!i.customer),e.R7$(5),e.JRh((null==i.customer?null:i.customer.email)||"Not Available"),e.R7$(5),e.JRh((null==i.customer?null:i.customer.phone_no)||"Not Available"),e.R7$(5),e.HbH(i.state1?"tab-botton-body2":"tab-botton-body"),e.R7$(3),e.HbH(i.state2?"tab-botton-body2":"tab-botton-body"),e.R7$(7),e.Y8G("ngIf",i.state1),e.R7$(),e.Y8G("ngIf",i.state2))},dependencies:[Fe.YU,Fe.Sq,Fe.bT,xi.ej,ie.qT,ie.me,ie.BC,ie.cb,ie.j4,ie.JD,s4.D,E.SrT,E.KH5,E.VDm,E.zJv,E.YP2,E.i6h,E.XyX,E.zwc,xi.kf],styles:[".tab-botton-body[_ngcontent-%COMP%]{width:100px;height:28px;font-weight:400;font-size:12px;background:none;border:none;border-radius:6px;color:#828282;margin:3px;background-color:#e5e5e5}.tab-botton-body2[_ngcontent-%COMP%]{width:100px;height:28px;font-weight:400;font-size:12px;background:#3b8968;border:none!important;color:#fff;outline:none;border-radius:6px;margin:3px}.tab-botton-body[_ngcontent-%COMP%]:hover{background:#3b8968;border:none;color:#fff}.tab-botton-body[_ngcontent-%COMP%]:focus{background:#3b8968;border:none!important;color:#fff;outline:none}.tab-botton[_ngcontent-%COMP%]{text-align:left;margin-bottom:10px}
1.tab[_ngcontent-%COMP%]{width:200px;height:28px;font-weight:400;font-size:12px;background:none;border:none;color:#828282;margin:3px}.tab-2[_ngcontent-%COMP%]{width:200px;height:28px;font-weight:400;font-size:12px;border-bottom:2px solid #3B8968!important;color:#3b8968;outline:none;border:none;margin:3px}.tab[_ngcontent-%COMP%]:hover{border:none}.tab[_ngcontent-%COMP%]:focus{border:none!important;outline:none}.request[_ngcontent-%COMP%]{width:auto;height:28px;font-weight:400;font-size:12px;background:#3b8968;border:none!important;color:#fff;outline:none;border-radius:6px;margin:3px}.delete_btn[_ngcontent-%COMP%]{width:auto;height:28px;font-weight:400;font-size:12px;background:#ec7f9b;border:none!important;color:#fff;outline:none;border-radius:6px;margin:3px}.lable-head[_ngcontent-%COMP%]{font-size:12px;color:#718096;font-family:Poppins;text-transform:capitalize;font-weight:400}.lable-data[_ngcontent-%COMP%]{font-size:12px;font-family:Poppins;font-weight:500}.table-head[_ngcontent-%COMP%]{text-transform:uppercase}.list-data[_ngcontent-%COMP%]{margin-bottom:8px}"]})}return n})();function N3(n,a){if(1&n&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.EFF(4),e.k0s(),e.j41(5,"td"),e.EFF(6),e.k0s(),e.j41(7,"td"),e.EFF(8),e.k0s(),e.j41(9,"td"),e.EFF(10),e.k0s()()),2&n){const t=a.$implicit;e.R7$(2),e.JRh((null==t?null:t.payment_method)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.merchant_name)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.budget_name)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.category)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.amount)||"Not Available")}}function B3(n,a){if(1&n&&(e.j41(0,"tbody"),e.DNE(1,N3,11,5,"tr",43),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.expenses_history)}}function G3(n,a){if(1&n&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.EFF(4),e.k0s(),e.j41(5,"td"),e.EFF(6),e.k0s(),e.j41(7,"td"),e.EFF(8),e.k0s(),e.j41(9,"td"),e.EFF(10),e.k0s()()),2&n){const t=a.$implicit;e.R7$(2),e.JRh((null==t?null:t.payment_method)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.merchant_name)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.budget_name)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.category)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.amount)||"Not Available")}}function V3(n,a){if(1&n&&(e.j41(0,"tbody"),e.DNE(1,G3,11,5,"tr",43),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.expenses_history)}}function z3(n,a){if(1&n&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.EFF(4),e.k0s(),e.j41(5,"td"),e.EFF(6),e.k0s(),e.j41(7,"td"),e.EFF(8),e.k0s(),e.j41(9,"td"),e.EFF(10),e.k0s()()),2&n){const t=a.$implicit;e.R7$(2),e.JRh((null==t?null:t.payment_method)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.merchant_name)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.budget_name)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.category)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.amount)||"Not Available")}}function U3(n,a){if(1&n&&(e.j41(0,"tbody"),e.DNE(1,z3,11,5,"tr",43),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.expenses_history)}}function Y3(n,a){if(1&n&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.EFF(4),e.k0s(),e.j41(5,"td"),e.EFF(6),e.k0s(),e.j41(7,"td"),e.EFF(8),e.k0s(),e.j41(9,"td"),e.EFF(10),e.k0s()()),2&n){const t=a.$implicit;e.R7$(2),e.JRh((null==t?null:t.payment_method)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.merchant_name)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.budget_name)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.category)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.amount)||"Not Available")}}function W3(n,a){if(1&n&&(e.j41(0,"tbody"),e.DNE(1,Y3,11,5,"tr",43),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.expenses_history)}}function $3(n,a){1&n&&(e.j41(0,"div",44)(1,"div",45)(2,"span",46),e.EFF(3,"Loading..."),e.k0s()()())}function q3(n,a){1&n&&(e.j41(0,"div",47)(1,"h6"),e.EFF(2,"No data available!"),e.k0s()())}let X3=(()=>{class n{constructor(){this.is_loading=!1,this.is_loading_2=!1,this.expenses_history=[{payment_method:"Card",merchant_name:"Nishantha",budget_name:"Foods for party",category:"Foods",amount:"120.00 LKR"},{payment_method:"Card",merchant_name:"Nishantha",budget_name:"Foods for party",category:"Foods",amount:"120.00 LKR"}],this.expenses_history_count=0}ngOnInit(){this.expenses_history_count=10}downloadPdf(){const r=document.getElementById("budget-wise-report-div");console.log(r.clientWidth),(new b1.jsPDF).html(r,{callback:function(s){s.save("test.pdf")},x:0,y:0,width:210,windowWidth:1e3})}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-budget-pdf"]],inputs:{modal_ref:"modal_ref"},decls:109,vars:10,consts:[[1,"popup-modal-root","budget-report-modal"],[2,"background","white"],[1,"col","d-flex","justify-content-between","align-items-center",2,"background","white"],[1,"sub-heading"],[1,"btn","p-0",2,"color","rgba(0, 0, 0, 0.5)",3,"click"],["size","2px",1,"fas","fa-times"],[2,"background-color","white"],[1,"col",2,"height","100%"],[1,"report-wrapper"],["id","budget-wise-report-div",1,"report"],[2,"width","100%","height","21p
1x","display","flex","align-items","center","margin-bottom","3rem"],[2,"height","21px","width","50%","background-color","#006a50"],[2,"height","21px","width","27%","background-color","#3b8968"],[2,"height","21px","width","23%","background-color","#77c79f"],[1,"px-5"],[1,"d-flex","justify-content-between",2,"margin-bottom","2rem"],[1,"d-flex","align-items-end"],[1,"amount-top"],[1,"currency-top"],[1,"budget-amount"],[2,"margin-bottom","4rem"],[1,"heading-small"],[1,"content-1"],[1,"d-flex","align-items-top",2,"margin-bottom","5rem"],[1,"separator"],[2,"margin-bottom","3.5rem"],[2,"margin-bottom","2rem"],[1,"row",2,"margin-top","2rem"],[1,"col-6","mb-5"],[1,"heading-small","pb-2"],[1,"content-2",2,"padding-bottom","5px"],[1,"expenses-budget-progress"],["status","primary","size","tiny",3,"value"],[1,"col","d-flex","flex-column","px-0","list-like-table-2"],[1,"table-responsive"],[1,"table","table-sm","align-top"],[4,"ngIf"],["class","d-flex justify-content-center align-items-center","style","height: 20rem;",4,"ngIf"],["class","d-flex justify-content-center align-items-center table-no-data-div","style","height: 20rem;",4,"ngIf"],[2,"width","100%","height","21px","display","flex","align-items","center","margin-top","3rem"],[1,"col","d-flex","justify-content-end","align-items-center"],["nbButton","","status","primary","nbSpinnerStatus","primary",1,"mr-2",3,"click","nbSpinner"],["nbButton","","status","basic",3,"click"],[4,"ngFor","ngForOf"],[1,"d-flex","justify-content-center","align-items-center",2,"height","20rem"],["role","status",1,"spinner-border","text-primary"],[1,"visually-hidden"],[1,"d-flex","justify-content-center","align-items-center","table-no-data-div",2,"height","20rem"]],template:function(r,i){1&r&&(e.j41(0,"nb-card",0)(1,"nb-card-header",1)(2,"div",2)(3,"h4",3),e.EFF(4,"Budget Wise Report"),e.k0s(),e.j41(5,"button",4),e.bIt("click",function(){return null==i.modal_ref?null:i.modal_ref.close()}),e.j41(6,"a"),e.nrm(7,"i",5),e.k0s()()()(),e.j41(8,"nb-card-body",6)(9,"div"),e.EFF(10,"fgffgfg"),e.k0s(),e.j41(11,"div",7)(12,"div",8)(13,"div",9)(14,"div",10),e.nrm(15,"div",11)(16,"div",12)(17,"div",13),e.k0s(),e.j41(18,"div",14)(19,"div",15)(20,"h1"),e.EFF(21,"Budget Wise Report"),e.k0s(),e.j41(22,"div")(23,"div",16)(24,"span",17),e.EFF(25,"12500.00"),e.k0s(),e.j41(26,"span",18),e.EFF(27,"LKR"),e.k0s()(),e.j41(28,"span",19),e.EFF(29,"Budget amount"),e.k0s(),e.nrm(30,"div"),e.k0s()(),e.j41(31,"div",20)(32,"p",21),e.EFF(33,"Project Name"),e.k0s(),e.j41(34,"p",22),e.EFF(35,"Foods for after party "),e.j41(36,"span"),e.EFF(37,"| 0079986AA"),e.k0s()()(),e.j41(38,"div",23)(39,"div")(40,"p",21),e.EFF(41,"Budget Type"),e.k0s(),e.j41(42,"p",22),e.EFF(43,"Food and beverages"),e.k0s()(),e.nrm(44,"div",24),e.j41(45,"div")(46,"p",21),e.EFF(47,"Expire date"),e.k0s(),e.j41(48,"p",22),e.EFF(49,"11 Jan 2023"),e.k0s()()(),e.j41(50,"div",25)(51,"h3",26),e.EFF(52,"Budget Analysis"),e.k0s(),e.j41(53,"div",27)(54,"div",28)(55,"p",29),e.EFF(56,"Total Balance"),e.k0s(),e.j41(57,"div")(58,"p",30),e.EFF(59,"$12500.00 "),e.j41(60,"span"),e.EFF(61,"From $20000"),e.k0s()(),e.j41(62,"div",31),e.nrm(63,"nb-progress-bar",32),e.k0s()()(),e.j41(64,"div",28)(65,"p",29),e.EFF(66,"Total Spend"),e.k0s(),e.j41(67,"div")(68,"p",30),e.EFF(69,"$1299.00 "),e.j41(70,"span"),e.EFF(71,"From $2000"),e.k0s()(),e.j41(72,"div",31),e.nrm(73,"nb-progress-bar",32),e.k0s()()(),e.j41(74,"div",28)(75,"p",29),e.EFF(76,"Most Spend On"),e.k0s(),e.j41(77,"div")(78,"p",30),e.EFF(79,"$100.00 "),e.j41(80,"span"),e.EFF(81,"For food and beverages"),e.k0s()(),e.j41(82,"div",31),e.nrm(83,"nb-progress-bar",32),e.k0s()()()()(),e.j41(84,"div")(85,"h3",26),e.EFF(86,"Expenses history"),e.k0s(),e.j41(87,"div",33)(88,"div",34)(89,"table",35),e.DNE(90,B3,2,1,"tbody",36),e.k0s(),e.j41(91,"table",35),e.DNE(92,V3,2,1,"tbody",36),e.k0s(),e.j41(93,"table",35),e.DNE(94,U3,2,1,"tbody",36),e.k0s(),e.j41(95,"table",35),e.DNE(96,W3,2,1,"tbody",36),e.k0s()(),e.DNE(97,$3,4,0,"div",37)(98,q3,3,0,"div",38),e.k0s()()(),e.j41(99,"div",39),e.nrm(100,"div",11)(101,"div",12)(102,"div",13),e.k0s()()()()(),e.j41(103,"nb-card-footer")(104,"div",40)(105,"button",41),e.bIt("click",function(){return i.downloadPdf()}),e.EFF(106,"Download"),e.k0s(),e.j41(107,"button",42),e.bIt("click",function(){return null==i.modal_ref?null:i.modal_ref.close()}),e.EFF(108,"Close"),e.k0s()()()()),2&r&&(e.R7$(63),e.Y8G("value",75),e.R7$(10),e.Y8G("value",40),e.R7$(10),e.Y8G("value",30),e.R7$(7),e.Y8G("ngIf",!i.is_loading&&i.expenses_history_count>0),e.R7$(2),e.Y8G("ngIf",!i.is_loading&&i.expenses_history_count>0),e.R7$(2),e.Y8G("ngIf",!i.is_loading&&i.expenses_history_count>0),e.R7$(2),e.Y8G("ngIf",!i.is_loading&&i.expenses_history_count>0),e.R7$(),e.Y8G("ngIf",i.is_loading),e.R7$(),e.Y8G("ngIf",!i.is_loading&&0===i.expenses_history_count),e.R7$(7),e.Y8G("nbSpinner",i.is_loading_2))},dependencies:[Fe.Sq,Fe.bT,E.SrT,E.KH5,E.VDm,E.zJv,E.YP2,E.zwc,E.c0m],styles:[".budget-report-modal[_ngcontent-%COMP%]{width:95vw;max-height:92vh;background-color:#fff}.budget-report-modal[_ngcontent-%COMP%] nb-card-body[_ngcontent-%COMP%]{padding:3rem 0}.budget-report-modal[_ngcontent-%COMP%] .report-wrapper[_ngcontent-%COMP%]{overflow:auto;height:100%}.budget-report-modal[_ngcontent-%COMP%] .report[_ngcontent-%COMP%]{min-width:1280px;height:100%;background-color:#fff}.budget-report-modal[_ngcontent-%COMP%] .report[_ngcontent-%COMP%] .border[_ngcontent-%COMP%]{width:100%;height:21px;
1display:flex;align-items:center}.budget-report-modal[_ngcontent-%COMP%] .report[_ngcontent-%COMP%] .border-1[_ngcontent-%COMP%]{height:21px;width:50%;background-color:#006a50}.budget-report-modal[_ngcontent-%COMP%] .report[_ngcontent-%COMP%] .border-2[_ngcontent-%COMP%]{height:21px;width:27%;background-color:#3b8968}.budget-report-modal[_ngcontent-%COMP%] .report[_ngcontent-%COMP%] .border-3[_ngcontent-%COMP%]{height:21px;width:23%;background-color:#77c79f}.budget-report-modal[_ngcontent-%COMP%] .report[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-weight:600;font-size:40px;line-height:60px;color:#1a202c;margin:0}.budget-report-modal[_ngcontent-%COMP%] .report[_ngcontent-%COMP%] .amount-top[_ngcontent-%COMP%]{font-weight:500;font-size:40px;line-height:60px;color:#000;margin-right:5px}.budget-report-modal[_ngcontent-%COMP%] .report[_ngcontent-%COMP%] .currency-top[_ngcontent-%COMP%]{font-weight:400;font-size:20px;line-height:50px;color:#6b6b6b}.budget-report-modal[_ngcontent-%COMP%] .report[_ngcontent-%COMP%] .budget-amount[_ngcontent-%COMP%]{font-weight:400;font-size:16px;line-height:24px;color:#6b6b6b}.budget-report-modal[_ngcontent-%COMP%] .report[_ngcontent-%COMP%] .heading-small[_ngcontent-%COMP%]{font-weight:500;font-size:16px;line-height:24px;color:#6b6b6b}.budget-report-modal[_ngcontent-%COMP%] .report[_ngcontent-%COMP%] .content-1[_ngcontent-%COMP%]{font-weight:600;font-size:24px;line-height:36px;color:#545b6a}.budget-report-modal[_ngcontent-%COMP%] .report[_ngcontent-%COMP%] .content-1[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400}.budget-report-modal[_ngcontent-%COMP%] .report[_ngcontent-%COMP%] .separator[_ng
1content-%COMP%]{width:2px;background-color:#b1b1b1;margin:0 6rem}.budget-report-modal[_ngcontent-%COMP%] .report[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-weight:600;font-size:24px;line-height:36px;color:#1a202c;margin-bottom:3rem!important}.budget-report-modal[_ngcontent-%COMP%] .report[_ngcontent-%COMP%] .content-2[_ngcontent-%COMP%]{font-weight:500;font-size:29px;line-height:44px;color:#1a202c}.budget-report-modal[_ngcontent-%COMP%] .report[_ngcontent-%COMP%] .content-2[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400;font-size:16px;line-height:24px;color:#6b6b6b}"]})}return n})();const H3=(n,a,t)=>({itemsPerPage:n,currentPage:a,totalItems:t}),K3=()=>[400,300];function J3(n,a){if(1&n&&e.nrm(0,"img",64),2&n){const t=e.XpG();e.Y8G("src",t.image_base_url+(null==t.currency?null:t.currency.currency_logo),e.B4B)}}function Z3(n,a){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"button",15),e.bIt("click",function(){const i=e.eBV(t).$implicit,s=e.XpG();return e.Njj(s.onCurrencySelector(i))}),e.EFF(2),e.k0s(),e.bVm()}if(2&n){const t=a.$implicit;e.R7$(2),e.SpI(" ",null==t?null:t.currency_name," ")}}function Q3(n,a){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"button",15),e.bIt("click",function(){const i=e.eBV(t).$implicit,s=e.XpG();return e.Njj(s.onBudgetSelector(i))}),e.EFF(2),e.k0s(),e.bVm()}if(2&n){const t=a.$implicit;e.R7$(2),e.SpI(" ",null==t?null:t.budget_name," ")}}function e5(n,a){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"button",15),e.bIt("click",function(){const i=e.eBV(t).$implicit,s=e.XpG();return e.Njj(s.onCategorySelector(i))}),e.EFF(2),e.k0s(),e.bVm()}if(2&n){const t=a.$implicit;e.R7$(2),e.SpI(" ",null==t?null:t.category_name," ")}}function t5(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",65),e.EFF(1),e.j41(2,"nb-icon",66),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.closeLabel("currency"))}),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(),e.SpI(" ",null==t.currency?null:t.currency.currency_name," ")}}function n5(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",67),e.EFF(1),e.j41(2,"nb-icon",66),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.closeLabel("budget"))}),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(),e.SpI(" ",null==t.budget?null:t.budget.budget_name," ")}}function i5(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",68),e.EFF(1),e.j41(2,"nb-icon",66),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.closeLabel("category"))}),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(),e.SpI(" ",null==t.category?null:t.category.category_name," ")}}function r5(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",69),e.EFF(1),e.j41(2,"nb-icon",66),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.closeLabel("date_range"))}),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(),e.SpI(" ",t.date_range," ")}}function a5(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",70),e.EFF(1),e.j41(2,"nb-icon",66),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.closeLabel("start_date"))}),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(),e.SpI(" From ",t.start_date_str," ")}}function o5(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",71),e.EFF(1),e.j41(2,"nb-icon",66),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.closeLabel("end_date"))}),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(),e.SpI(" To ",t.end_date_str," ")}}function s5(n,a){if(1&n){const t=e.RV6();e.j41(0,"tr",73),e.bIt("click",function(){const i=e.eBV(t).$implicit,s=e.XpG(2);return e.Njj(s.navigateToInvoice(i))}),e.j41(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.EFF(4),e.k0s(),e.j41(5,"td"),e.EFF(6),e.k0s(),e.j41(7,"td"),e.EFF(8),e.k0s(),e.j41(9,"td"),e.EFF(10),e.nI1(11,"number"),e.k0s(),e.j41(12,"td")(13,"button",74),e.bIt("click",function(i){const s=e.eBV(t).$implicit,p=e.XpG(2),g=e.sdS(150);return e.Njj(p.downloadBWReport(i,s,g))}),e.nrm(14,"img",75),e.k0s()()()}if(2&n){const t=a.$implicit,r=e.XpG(2);e.R7$(2),e.JRh(r.getPaymentMethod(null==t?null:t.payment_type_id)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.merchant_name)||"Not Available"),e.R7$(2),e.JRh(r.getBudgetName(null==t?null:t.budget_id)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.category_name)||"Not Available"),e.R7$(2),e.Lme("",e.i5U(11,6,null==t?null:t.amount,"1.2-2")," ",null==t?null:t.currency_name,"")}}function l5(n,a){if(1&n&&(e.j41(0,"tbody"),e.DNE(1,s5,15,9,"tr",72),e.nI1(2,"paginate"),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",e.i5U(2,1,t.expenses,e.sMw(4,H3,t.limit,t.page,t.expenses_count)))}}function c5(n,a){1&n&&(e.j41(0,"div",76)(1,"div",77)(2,"span",78),e.EFF(3,"Loading..."),e.k0s()()())}function d5(n,a){1&n&&(e.j41(0,"div",79),e.nrm(1,"img",80),e.j41(2,"span",81),e.EFF(3,"No expenses records"),e.k0s()())}function u5(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",82)(1,"pagination-controls",83),e.bIt("pageChange",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.pageChanged(i))})("pageBoundsCorrection",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.pageChanged(i))}),e.k0s()()}}function f5(n,a){if(1&n&&(e.qex(0),e.nrm(1,"ngx-charts-pie-chart",84),e.bVm()),2&n){const t=e.XpG();e.R7$(),e.Y8G("view",e.lJ4(7,K3))("results",t.chart_data)("legend",!0)("labels",!0)("doughnut",!0)("legendPosition","bottom")("legendTitle","")}}function p5(n,a){1&n&&(e.qex(0),e.j41(1,"div",85),e.nrm(2,"img",80),e.j41(3,"span",81),e.EFF(4,"No chart data"),e.k0s()(),e.bVm())}function h5(n,a){if(1&n&&e.nrm(0,"ngx-budget-pdf",86),2&n){const t=e.XpG();e.Y8G("modal_ref",t.modal_ref)}}let m5=(()=>{class n{constructor(t,r,i,s,p,g){this.locale=t,this.theme=r,this.ets=i,this.toastr=s,this.router=p,this.dialogService=g,this.image_base_url="https://onepayserviceimages.s3.amazonaws.com/",this.is_loading_1=!1,this.is_loading_2=!0,this.page=1,this.limit=10,this.expenses=[],this.expenses_count=0,this.chart_data=[],this.total_budget=0,this.total_spending=0,this.total_balance=0,this.most_apent_on="",this.modal_ref=null,this.currencies=[],this.budgets=[],this.categories=[],this.payment_types=[],this.currency=null,this.budget=null,this.category=null,this.date_range="",this.start_date="",this.start_date_str="",this.end_date="",this.end_date_str="",this.series=[{name:"Servers",value:20},{name:"Dinks",value:70},{name:"Food",value:10}]}ngOnInit(){this.getData()}getData(){Promise.all([this.ets.getCategories(),this.ets.getCurrencies(),this.ets.getBudget(),this.ets.getPaymentTypes()]).then(t=>{this.setCategories(t[0]),this.setCurrencies(t[1]),this.setBudget(t[2]),this.setPaymentTypes(t[3]),this.getExpenses(!0),this.getExpensesChart(!0)}).catch(t=>{console.error(t)})}setCategories(t){console.log("categories",t),t&&100===t?.status?this.categories=t?.data:console.error(t?.message||"Internal Server Error")}setCurrencies(t){console.log("currencies",t),t&&100===t?.status?this.currencies=t?.data:console.error(t?.message||"Internal Server Error")}setBudget(t){console.log("budgets",t),t&&100===t?.status?this.budgets=t?.data:console.error(t?.message||"Internal Server Error")}setPaymentTypes(t){console.log("paymentTypes",t),t&&100===t?.status?this.payment_types=t?.data:console.error(t?.message||"Internal Server Error")}getExpenses(t=!1){t&&(this.is_loading_1=!0),this.ets.getExpenses({limit:this.limit,page:this.page,currency_id:this.currency?.currency_id,expenses_category_id:this.category?.category_id,date_range:this.date_range,start_date:this.start_date_str,end_date:this.end_date_str,budget_id:this.budget?.budget_id}).then(r=>{console.log("getExpenses",r),this.is_loading_1=!1,r&&(100===r?.status?(this.expenses=r?.data,this.expenses_count=r?.limit):this.toastr.showToast("danger","Failed!","Getting expenses failed."))},r=>{this.is_loading_1=!1,console.log("Internal Server Error",r)})}getExpensesChart(t=!1){t&&(this.is_loading_2=!0),this.ets.getExpensesChart(this.date_range||"MONTH").then(i=>{if(console.log("getExpensesChart",i),this.is_loading_2=!1,i)if(100===i?.status){this.expenses_chart=i,this.total_budget=i?.summary?.total_amount,this.total_spending=i?.summary?.total_spending,this.total_balance=i?.summary?.balance,this.most_apent_on=i?.most_spending_category?.category_name;const s=i?.data;let p=[];if(s&&Array.isArray(s)&&s.length>0)for(let g=0;g<s.length;g++)p.push({name:s[g]?.category_name,value:s[g]?.precentage});this.chart_data=p}else this.toastr.showToast("danger","Failed!","Getting expenses chart data failed.")},i=>{this.is_loading_2=!1,console.log("Internal Server Error",i)})}filter(){this.getExpenses(),this.getExpensesChart()}pageChanged(t){this.page=t,this.getExpenses(!1)}getPaymentMethod(t){return this.payment_types.find(r=>r.payment_type_id===parseInt(t))?.payment_type_name}getBudgetName(t){return this.budgets.find(r=>r.id===parseInt(t))?.budget_name}onCurrencySelector(t=null){this.currency=t||null}onBudgetSelector(t=null){this.budget=t||null}onCategorySelector(t=null){this.category=t||null}onDateRangeSelector(t){this.date_range=t}onFromDateSelector(t){this.start_date=t,this.start_date_str=(0,Fe.Yq)(t,"YYYY-MM-dd",this.locale)}onToDateSelector(t){this.end_date=t,this.end_date_str=(0,Fe.Yq)(t,"YYYY-MM-dd",this.locale)}navigateToInvoice(t){console.log(t),this.router.navigate(["pages/expenses-tracker/",t.id])}downloadBWReport(t,r,i){t.stopPropagation(),this.modal_ref=this.dialogService.open(i,{closeOnBackdropClick:!1}),console.log(r)}closeLabel(t){switch(t){case"currency":this.currency=null;break;case"budget":this.budget=null;break;case"category":this.category=null;break;case"date_range":this.date_range="";break;case"start_date":this.start_date="",this.start_date_str="";break;case"end_date":this.end_date="",this.end_date_str="";break;default:return}this.getExpenses(),this.getExpensesChart()}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(e.xe9),e.rXU(E.NS1),e.rXU(Mt.NZ),e.rXU(Dt.V4),e.rXU(qe.Ix),e.rXU(E.S0W))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-expenses-tracker-category"]],decls:151,vars:36,consts:[["expensesStartDatePicker",""],["expensesEndDatePicker",""],["budgetWiseReportModal",""],[1,"row",2,"background-color","white"],[1,"col-12"],["size","small",2,"height","auto","padding-top","12px","border","none"],[1,"row",2,"margin-bottom","20px"],[1,"col-3"],[1,"page-heading",2,"font-size","24px"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"btn-group"],["type","button","data-toggle","dropdown","aria-expanded","fal
1se",1,"filter-item-btn","arrow"],[1,"image"],[3,"src",4,"ngIf"],[1,"dropdown-menu","dropdown-menu-right"],["type","submit",1,"dropdown-item",3,"click"],[4,"ngFor","ngForOf"],[1,"search-text"],["icon","arrow-ios-downward-outline"],[1,"d-flex","align-items-center"],["for","expenses_start_date",1,"d-flex","align-items-center",2,"cursor","pointer"],[1,"search-text-calander","mr-4"],["icon","calendar-outline"],["id","expenses_start_date","nbInput","","placeholder","Pick Date",3,"ngModelChange","nbDatepicker","ngModel"],["for","expenses_end_date",1,"d-flex","align-items-center",2,"cursor","pointer"],["id","expenses_end_date","nbInput","","placeholder","Pick Date",3,"ngModelChange","nbDatepicker","ngModel"],["nbButton","","shape","rectangle","size","medium","type","button",1,"mr-1","filter-form-btn","primary-black-btn",3,"click"],[1,"container",2,"padding","0"],[1,"row"],[1,"col","col-lg-7"],[1,"d-flex","justify-content-between","align-items-center",2,"margin-top","20px","padding-bottom","20px"],[2,"font-size","16px","font-weight","600"],[2,"color","#006A50"],[1,"d-flex","align-items-center",2,"font-size","14px","font-weight","600","color","red"],["icon","cloud-download-outline",1,"mr-2"],[1,"col","d-flex","align-items-center","flex-wrap"],["class","label-btn label-btn-currency","status","basic","size","tiny",4,"ngIf"],["class","label-btn label-btn-b","status","basic","size","tiny",4,"ngIf"],["class","label-btn label-btn-category","status","basic","size","tiny",4,"ngIf"],["class","label-btn label-btn-drange","status","basic","size","tiny",4,"ngIf"],["class","label-btn label-btn-sdate","status","basic","size","tiny",4,"ngIf"],["class","label-btn label-btn-edate","status","basic","size","tiny",4,"ngIf"],[1,"col","d-flex","flex-column","px-0","list-like-table"],[1,"table-responsive"],[1,"table","table-sm","align-top"],[4,"ngIf"],["class","d-flex justify-content-center align-items-center","style","height: 20rem;",4,"ngIf"],["class","d-flex flex-column justify-content-center align-items-center","style","height: 20rem;",4,"ngIf"],["class","d-flex justify-content-end mt-3 mt-lg-1",4,"ngIf"],[1,"col","col-lg-5",2,"border-left","1px solid #DADADA"],[1,"col","col-6","d-flex","flex-column","justify-content-around",2,"padding","35px 10px"],[1,"d-flex","justify-content-center","align-items-center","flex-wrap","mb-3"],[1,"currency","mr-1"],[1,"amount"],[1,"row","d-flex","justify-content-center","sub-heading-div"],[1,"sub-heading"],[1,"col","col-6","border-left","d-flex","flex-column","justify-content-around","align-items-center",2,"padding","35px"],[1,"sub-heading",2,"color","#00BA61"],[2,"height","0.5px","width","100%","background-color","#dee2e6","margin-top","20px","margin-bottom","20px"],[2,"color","#003CD8"],[1,"row","mb-3"],[2,"color","#757575"],[2,"color","#FDCE63","font-size","22px","font-weight","400"],["id","expenses-pie-chart",1,"col-md-12","d-flex"],[3,"src"],["status","basic","size","tiny",1,"label-btn","label-btn-currency"],["icon","close-outline",1,"ml-2",3,"click"],["status","basic","size","tiny",1,"label-btn","label-btn-b"],["status","basic","size","tiny",1,"label-btn","label-btn-category"],["status","basic","size","tiny",1,"label-btn","label-btn-drange"],["status","basic","size","tiny",1,"label-btn","label-btn-sdate"],["status","basic","size","tiny",1,"label-btn","label-btn-edate"],["style","cursor: pointer;",3,"click",4,"ngFor","ngForOf"],[2,"cursor","pointer",3,"click"],[1,"single-pdf-download-btn",3,"click"],["src","assets/images/download_pdf.png","alt",""],[1,"d-flex","justify-content-center","align-items-center",2,"height","20rem"],["role","status",1,"spinner-border","text-primary"],[1,"visually-hidden"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"height","20rem"],["src","assets/svgs/no-expenses.svg","alt","no expenses"],[2,"font-weight","400","font-size","14px","color","#94A3CA","margin-top","10px"],[1,"d-flex","justify-content-end","mt-3","mt-lg-1"],["responsive","true",3,"pageChange","pageBoundsCorrection"],[2,"margin","0 auto",3,"view","results","legend","labels","doughnut","legendPosition","legendTitle"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"height","18rem","width","100%"],[3,"modal_ref"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",3)(1,"div",4)(2,"nb-card",5)(3,"div",6)(4,"div",7)(5,"h2",8),e.EFF(6,"Expenses tracker"),e.k0s()(),e.j41(7,"div",9)(8,"div",10)(9,"button",11)(10,"div",12),e.DNE(11,J3,1,1,"img",13),e.k0s()(),e.j41(12,"div",14)(13,"button",15),e.bIt("click",function(){return e.eBV(s),e.Njj(i.onCurrencySelector())}),e.EFF(14," All "),e.k0s(),e.DNE(15,Z3,3,1,"ng-container",16),e.k0s()(),e.j41(16,"div",10)(17,"button",11)(18,"span",17),e.EFF(19,"Budget"),e.k0s(),e.nrm(20,"nb-icon",18),e.k0s(),e.j41(21,"div",14)(22,"button",15),e.bIt("click",function(){return e.eBV(s),e.Njj(i.onBudgetSelector())}),e.EFF(23," All "),e.k0s(),e.DNE(24,Q3,3,1,"ng-container",16),e.k0s()(),e.j41(25,"div",10)(26,"button",11)(27,"span",17),e.EFF(28,"Category"),e.k0s(),e.nrm(29,"nb-icon",18),e.k0s(),e.j41(30,"div",14)(31,"button",15),e.bIt("click",function(){return e.eBV(s),e.Njj(i.onCategorySelector())}),e.EFF(32," All "),e.k0s(),e.DNE(33,e5,3,1,"ng-container",16),e.k0s()(),e.j41(34,"div",10)(35,"button",11)(36,"span",17),e.EFF(37,"Date Range"),e.k0s(),e.nrm(38,"nb-icon",18),e.k0s(),e.j41(39,"div",14)(40,"button",15),e.bIt("click",function(){return e.eBV(s),e.Njj(i.onDateRangeSelector("YEAR"))}),e.EFF(41," Yearly "),e.k0s(),e.j41(42,"button",15),e.bIt("click",function(){return e.eBV(s),e.Njj(i.onDateRangeSelector("MONTH"))}),e.EFF(43," Monthly "),e.k0s(),e.j41(44,"button",15),e.bIt("click",function(){return e.eBV(s),e.Njj(i.onDateRangeSelector("TODAY"))}),e.EFF(45," Today "),e.k0s()()(),e.j41(46,"div",19)(47,"label",20)(48,"span",21),e.EFF(49),e.k0s(),e.nrm(50,"nb-icon",22)(
151,"nb-datepicker",null,0),e.k0s(),e.j41(53,"input",23),e.bIt("ngModelChange",function(g){return e.eBV(s),e.Njj(i.onFromDateSelector(g))}),e.k0s()(),e.j41(54,"div",19)(55,"label",24)(56,"span",21),e.EFF(57),e.k0s(),e.nrm(58,"nb-icon",22)(59,"nb-datepicker",null,1),e.k0s(),e.j41(61,"input",25),e.bIt("ngModelChange",function(g){return e.eBV(s),e.Njj(i.onToDateSelector(g))}),e.k0s()(),e.j41(62,"button",26),e.bIt("click",function(){return e.eBV(s),e.Njj(i.filter())}),e.EFF(63," Filter "),e.k0s()()(),e.j41(64,"div",27)(65,"div",28)(66,"div",29)(67,"div",30)(68,"h6",31)(69,"span",32),e.EFF(70),e.k0s(),e.EFF(71," Total Expenses "),e.k0s(),e.j41(72,"span",33),e.nrm(73,"nb-icon",34),e.EFF(74," Total Expenses "),e.k0s()(),e.j41(75,"div",28)(76,"div",35),e.DNE(77,t5,3,1,"button",36)(78,n5,3,1,"button",37)(79,i5,3,1,"button",38)(80,r5,3,1,"button",39)(81,a5,3,1,"button",40)(82,o5,3,1,"button",41),e.k0s()(),e.j41(83,"div",42)(84,"div",43)(85,"table",44)(86,"thead")(87,"tr")(88,"th"),e.EFF(89,"Payment Method"),e.k0s(),e.j41(90,"th"),e.EFF(91,"Merchant Name"),e.k0s(),e.j41(92,"th"),e.EFF(93,"Budget Name"),e.k0s(),e.j41(94,"th"),e.EFF(95,"Category"),e.k0s(),e.j41(96,"th"),e.EFF(97,"Amount"),e.k0s(),e.nrm(98,"th"),e.k0s()(),e.DNE(99,l5,3,8,"tbody",45),e.k0s()(),e.DNE(100,c5,4,0,"div",46)(101,d5,4,0,"div",47)(102,u5,2,0,"div",48),e.k0s()(),e.j41(103,"div",49)(104,"div",28)(105,"div",50)(106,"div",51)(107,"label",52),e.EFF(108," Rs "),e.k0s(),e.j41(109,"label",53),e.EFF(110),e.nI1(111,"number"),e.k0s()(),e.j41(112,"div",54)(113,"label",55),e.EFF(114,"Total Budget"),e.k0s()()(),e.j41(115,"div",56)(116,"div",51)(117,"label",52),e.EFF(118," Rs "),e.k0s(),e.j41(119,"label",53),e.EFF(120),e.nI1(121,"number"),e.k0s()(),e.j41(122,"div",54)(123,"label",57),e.EFF(124,"Total Spendings"),e.k0s()()()(),e.nrm(125,"div",58),e.j41(126,"div",28)(127,"div",50)(128,"div",51)(129,"label",52),e.EFF(130," Rs "),e.k0s(),e.j41(131,"label",53),e.EFF(132),e.nI1(133,"number"),e.k0s()(),e.j41(134,"div",54)(135,"label",59),e.EFF(136,"Total Balance"),e.k0s()()(),e.j41(137,"div",56)(138,"div",60)(139,"label",61),e.EFF(140,"Most Spent on"),e.k0s()(),e.j41(141,"div",54)(142,"label",62),e.EFF(143),e.k0s()()()(),e.nrm(144,"div",58),e.j41(145,"div",28)(146,"div",63),e.DNE(147,f5,2,8,"ng-container",45)(148,p5,5,0,"ng-container",45),e.k0s()()()()()()()(),e.DNE(149,h5,1,1,"ng-template",null,2,e.C5r)}if(2&r){const s=e.sdS(52),p=e.sdS(60);e.R7$(11),e.Y8G("ngIf",null==i.currency?null:i.currency.currency_logo),e.R7$(4),e.Y8G("ngForOf",i.currencies),e.R7$(9),e.Y8G("ngForOf",i.budgets),e.R7$(9),e.Y8G("ngForOf",i.categories),e.R7$(16),e.JRh(i.start_date_str||"From"),e.R7$(4),e.Y8G("nbDatepicker",s)("ngModel",i.start_date),e.R7$(4),e.JRh(i.end_date_str||"To"),e.R7$(4),e.Y8G("nbDatepicker",p)("ngModel",i.end_date),e.R7$(9),e.JRh(i.expenses_count),e.R7$(7),e.Y8G("ngIf",i.currency),e.R7$(),e.Y8G("ngIf",i.budget),e.R7$(),e.Y8G("ngIf",i.category),e.R7$(),e.Y8G("ngIf",i.date_range),e.R7$(),e.Y8G("ngIf",i.start_date_str),e.R7$(),e.Y8G("ngIf",i.end_date_str),e.R7$(17),e.Y8G("ngIf",!i.is_loading_1&&i.expenses_count>0),e.R7$(),e.Y8G("ngIf",i.is_loading_1),e.R7$(),e.Y8G("ngIf",!i.is_loading_1&&0===i.expenses_count),e.R7$(),e.Y8G("ngIf",i.expenses_count>0&&!i.is_loading_1),e.R7$(8),e.JRh(e.i5U(111,27,i.total_budget,"4.2-2")),e.R7$(10),e.JRh(e.i5U(121,30,i.total_spending,"4.2-2")),e.R7$(12),e.JRh(e.i5U(133,33,i.total_balance,"4.2-2")),e.R7$(11),e.JRh(i.most_apent_on||"-"),e.R7$(4),e.Y8G("ngIf",i.chart_data&&i.chart_data.length>0),e.R7$(),e.Y8G("ngIf",!i.chart_data||0===i.chart_data.length)}},dependencies:[Fe.Sq,Fe.bT,u.km,xi.ej,ie.me,ie.BC,ie.vS,E.SrT,E.tHu,E.YP2,E.i6h,E.OA9,E.k2z,X3,Fe.QX,xi.kf],styles:[".currency[_ngcontent-%COMP%]{color:#58595a;font-size:16px;font-weight:500}.amount[_ngcontent-%COMP%]{font-size:30px;word-wrap:break-word;text-align:center;line-height:30px}.image[_ngcontent-%COMP%]{width:25px;height:25px;border-radius:50%;background-image:url(blank-profile-picture.24a59391abeee9e3.png);overflow:hidden;border:1px solid #eee;position:relative}.image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:150%}.search-icon[_ngcontent-%COMP%]{height:20px;width:auto}.search-icon-calander[_ngcontent-%COMP%]{height:10px;width:auto}.filter-item-btn[_ngcontent-%COMP%]{outline:none;border:none;background:none;display:flex;align-items:center}.arrow[_ngcontent-%COMP%]{margin-left:4px}.search-text[_ngcontent-%COMP%]{font-size:12px;font-weight:500;margin-right:5px}.search-text-calander[_ngcontent-%COMP%]{color:#a5a5a5;font-size:12px;font-weight:500}ngx-charts-advanced-pie-chart[_ngcontent-%COMP%] .advanced-pie-legend-wrapper{display:none}.dropdown-menu[_ngcontent-%COMP%]{border:none;border-radius:.25rem;box-shadow:0 2px 15px #0000000d;min-width:8rem!important;padding:6px 0}.dropdown-item[_ngcontent-%COMP%]{font-family:Poppins,sans-serif!important;font-size:13px;font-weight:500;color:#000000a6;padding:.5rem 1rem}.dropdown-item[_ngcontent-%COMP%]:active{color:#fff;background-color:nb-theme(color-primary-default);outline:none}.label-btn[_ngcontent-%COMP%]{font-family:Inter,sans-serif!important;border:none!important;color:#fff!important;font-size:12px!important;font-weight:400!important;padding:6px 12px;margin-top:5px;margin-left:10px;border-radius:35px!important;display:flex;align-items:center}.label-btn-currency[_ngcontent-%COMP%]{background:gray!important}.label-btn-ptype[_ngcontent-%COMP%], .label-btn-b[_ngcontent-%COMP%]{background:#000!important}.label-btn-category[_ngcontent-%COMP%]{background:#f963bd!important}.label-btn-drange[_ngcontent-%COMP%]{background:#febd38!important}.label-btn-sdate[_ngcontent-%COMP%]{background:#4fbaf0!important}.label-btn-edate[_ngcontent-%COMP%]{background:#68ee76!important}#expenses_start_date[_ngcontent-%COMP%], #expenses_end_date[_ngcontent-%COMP%]{visibility:hidden;width:0}.single-pdf-download-btn[_ngcontent-%COMP%]{outline:none;border:none;background:transparent}.single-pdf-download-btn[_ngcontent-%COMP%]:focus{outline:none}"]})}return n})();const _5=(()=>{let n=0;return()=>(n+=1,`u${`0000${(Math.random()*36**4|0).toString(36)}`.slice(-4)}${n}`)})();function Tm(n){const a=[];for(let t=0,r=n.length;t<r;t++)a.push(n[t]);return a}function tv(n,a){const r=(n.ownerDocument.defaultView||window).getComputedStyle(n).getPropertyValue(a);return r?parseFloat(r.replace("px","")):0}function l4(n,a={}){const t=a.width||function v5(n){const a=tv(n,"border-left-width"),t=tv(n,"border-right-width");return n.clientWidth+a+t}(n),r=a.height||function x5(n){const a=tv(n,"border-top-width"),t=tv(n,"border-bottom-width");return n.clientHeight+a+t}(n);return{width:t,height:r}}const Gp=16384;function nv(n){return new Promise((a,t)=>{const r=new Image;r.decode=()=>a(r),r.onload=()=>a(r),r.onerror=t,r.crossOrigin="anonymous",r.decoding="async",r.src=n})}function j2(){return(j2=(0,Pt.A)(function*(n){return Promise.resolve().then(()=>(new XMLSerializer).serializeToString(n)).then(encodeURIComponent).then(a=>`data:image/svg+xml;charset=utf-8,${a}`)})).apply(this,arguments)}function R2(){return R2=(0,Pt.A)(function*(n,a,t){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),s=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${a}`),i.setAttribute("height",`${t}`),i.setAttribute("viewBox",`0 0 ${a} ${t}`),s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("externalResourcesRequired","true"),i.appendChild(s),s.appendChild(n),function C5(n){return j2.apply(this,arguments)}(i)}),R2.apply(this,arguments)}const bp=(n,a)=>
1{if(n instanceof a)return!0;const t=Object.getPrototypeOf(n);return null!==t&&(t.constructor.name===a.name||bp(t,a))};function c4(n,a,t){const r=window.getComputedStyle(n,t),i=r.getPropertyValue("content");if(""===i||"none"===i)return;const s=_5();try{a.className=`${a.className} ${s}`}catch{return}const p=document.createElement("style");p.appendChild(function A5(n,a,t){const r=`.${n}:${a}`,i=t.cssText?function w5(n){const a=n.getPropertyValue("content");return`${n.cssText} content: '${a.replace(/'|"/g,"")}';`}(t):function F5(n){return Tm(n).map(a=>`${a}: ${n.getPropertyValue(a)}${n.getPropertyPriority(a)?" !important":""};`).join(" ")}(t);return document.createTextNode(`${r}{${i}}`)}(s,t,r)),a.appendChild(p)}const d4="application/font-woff",u4="image/jpeg",S5={woff:d4,woff2:d4,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:u4,jpeg:u4,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function L2(n){const a=function E5(n){const a=/\.([^./]*?)$/g.exec(n);return a?a[1]:""}(n).toLowerCase();return S5[a]||""}function N2(n){return-1!==n.search(/^(data:)/)}function f4(n,a){return`data:${a};base64,${n}`}function p4(n,a,t){return B2.apply(this,arguments)}function B2(){return(B2=(0,Pt.A)(function*(n,a,t){const r=yield fetch(n,a);if(404===r.status)throw new Error(`Resource "${r.url}" not found`);const i=yield r.blob();return new Promise((s,p)=>{const g=new FileReader;g.onerror=p,g.onloadend=()=>{try{s(t({res:r,result:g.result}))}catch(S){p(S)}},g.readAsDataURL(i)})})).apply(this,arguments)}const G2={};function V2(n,a,t){return z2.apply(this,arguments)}function z2(){return(z2=(0,Pt.A)(function*(n,a,t){const r=function M5(n,a,t){let r=n.replace(/\?.*/,"");return t&&(r=n),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),a?`[${a}]${r}`:r}(n,a,t.includeQueryParams);if(null!=G2[r])return G2[r];let i;t.cacheBust&&(n+=(/\?/.test(n)?"&":"?")+(new Date).getTime());try{const s=yield p4(n,t.fetchRequestInit,({res:p,result:g})=>(a||(a=p.headers.get("Content-Type")||""),function P5(n){return n.split(/,/)[1]}(g)));i=f4(s,a)}catch(s){i=t.imagePlaceholder||"";let p=`Failed to fetch resource: ${n}`;s&&(p="string"==typeof s?s:s.message),p&&console.warn(p)}return G2[r]=i,i})).apply(this,arguments)}function U2(){return(U2=(0,Pt.A)(function*(n){const a=n.toDataURL();return"data:,"===a?n.cloneNode(!1):nv(a)})).apply(this,arguments)}function Y2(){return(Y2=(0,Pt.A)(function*(n,a){if(n.currentSrc){const s=document.createElement("canvas"),p=s.getContext("2d");return s.width=n.clientWidth,s.height=n.clientHeight,p?.drawImage(n,0,0,s.width,s.height),nv(s.toDataURL())}const t=n.poster,r=L2(t);return nv(yield V2(t,r,a))})).apply(this,arguments)}function W2(){return(W2=(0,Pt.A)(function*(n){var a;try{if(null!==(a=n?.contentDocument)&&void 0!==a&&a.body)return yield iv(n.contentDocument.body,{},!0)}catch{}return n.cloneNode(!1)})).apply(this,arguments)}function $2(){return $2=(0,Pt.A)(function*(n,a){return bp(n,HTMLCanvasElement)?function O5(n){return U2.apply(this,arguments)}(n):bp(n,HTMLVideoElement)?function D5(n,a){return Y2.apply(this,arguments)}(n,a):bp(n,HTMLIFrameElement)?function I5(n){return W2.apply(this,arguments)}(n):n.cloneNode(!1)}),$2.apply(this,arguments)}const R5=n=>null!=n.tagName&&"SLOT"===n.tagName.toUpperCase();function q2(){return(q2=(0,Pt.A)(function*(n,a,t){var r,i;let s=[];return s=R5(n)&&n.assignedNodes?Tm(n.assignedNodes()):bp(n,HTMLIFrameElement)&&null!==(r=n.contentDocument)&&void 0!==r&&r.body?Tm(n.contentDocument.body.childNodes):Tm((null!==(i=n.shadowRoot)&&void 0!==i?i:n).childNodes),0===s.length||bp(n,HTMLVideoElement)||(yield s.reduce((p,g)=>p.then(()=>iv(g,t)).then(S=>{S&&a.appendChild(S)}),Promise.resolve())),a})).apply(this,arguments)}function X2(){return(X2=(0,Pt.A)(function*(n,a){const t=n.querySelectorAll?n.querySelectorAll("use"):[];if(0===t.length)return n;const r={};for(let s=0;s<t.length;s++){const g=t[s].getAttribute("xlink:href");if(g){const S=n.querySelector(g),R=document.querySelector(g);!S&&R&&!r[g]&&(r[g]=yield iv(R,a,!0))}}const i=Object.values(r);if(i.length){const s="http://www.w3.org/1999/xhtml",p=document.createElementNS(s,"svg");p.setAttribute("xmlns",s),p.style.position="absolute",p.style.width="0",p.style.height="0",p.style.overflow="hidden",p.style.display="none";const g=document.createElementNS(s,"defs");p.appendChild(g);for(let S=0;S<i.length;S++)g.appendChild(i[S]);n.appendChild(p)}return n})).apply(this,arguments)}function iv(n,a,t){return H2.apply(this,arguments)}function H2(){return H2=(0,Pt.A)(function*(n,a,t){return t||!a.filter||a.filter(n)?Promise.resolve(n).then(r=>function j5(n,a){return $2.apply(this,arguments)}(r,a)).then(r=>function L5(n,a,t){return q2.apply(this,arguments)}(n,r,a)).then(r=>function V5(n,a){return bp(a,Element)&&(function N5(n,a){const t=a.style;if(!t)return;const r=window.getComputedStyle(n);r.cssText?(t.cssText=r.cssText,t.transformOrigin=r.transformOrigin):Tm(r).forEach(i=>
1{let s=r.getPropertyValue(i);"font-size"===i&&s.endsWith("px")&&(s=Math.floor(parseFloat(s.substring(0,s.length-2)))-.1+"px"),bp(n,HTMLIFrameElement)&&"display"===i&&"inline"===s&&(s="block"),"d"===i&&a.getAttribute("d")&&(s=`path(${a.getAttribute("d")})`),t.setProperty(i,s,r.getPropertyPriority(i))})}(n,a),function T5(n,a){c4(n,a,":before"),c4(n,a,":after")}(n,a),function B5(n,a){bp(n,HTMLTextAreaElement)&&(a.innerHTML=n.value),bp(n,HTMLInputElement)&&a.setAttribute("value",n.value)}(n,a),function G5(n,a){if(bp(n,HTMLSelectElement)){const r=Array.from(a.children).find(i=>n.value===i.getAttribute("value"));r&&r.setAttribute("selected","")}}(n,a)),a}(n,r)).then(r=>function z5(n,a){return X2.apply(this,arguments)}(r,a)):null}),H2.apply(this,arguments)}const h4=/url\((['"]?)([^'"]+?)\1\)/g,U5=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Y5=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function K2(){return(K2=(0,Pt.A)(function*(n,a,t,r,i){try{const s=t?function g5(n,a){if(n.match(/^[a-z]+:\/\//i))return n;if(n.match(/^\/\//))return window.location.protocol+n;if(n.match(/^[a-z]+:/i))return n;const t=document.implementation.createHTMLDocument(),r=t.createElement("base"),i=t.createElement("a");return t.head.appendChild(r),t.body.appendChild(i),a&&(r.href=a),i.href=n,i.href}(a,t):a,p=L2(a);let g;return g=i?f4(yield i(s),p):yield V2(s,p,r),n.replace(function W5(n){const a=n.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${a})(['"]?\\))`,"g")}(a),`$1${g}$3`)}catch{}return n})).apply(this,arguments)}function m4(n){return-1!==n.search(h4)}function g4(n,a,t){return J2.apply(this,arguments)}function J2(){return J2=(0,Pt.A)(function*(n,a,t){if(!m4(n))return n;const r=function X5(n,{preferredFontFormat:a}){return a?n.replace(Y5,t=>{for(;;){const[r,,i]=U5.exec(t)||[];if(!i)return"";if(i===a)return`src: ${r};`}}):n}(n,t);return function $5(n){const a=[];return n.replace(h4,(t,r,i)=>(a.push(i),t)),a.filter(t=>!N2(t))}(r).reduce((s,p)=>s.then(g=>function q5(n,a,t,r,i){return K2.apply(this,arguments)}(g,p,a,t)),Promise.resolve(r))}),J2.apply(this,arguments)}function rv(n,a,t){return Z2.apply(this,arguments)}function Z2(){return(Z2=(0,Pt.A)(function*(n,a,t){var r;const i=null===(r=a.style)||void 0===r?void 0:r.getPropertyValue(n);if(i){const s=yield g4(i,null,t);return a.style.setProperty(n,s,a.style.getPropertyPriority(n)),!0}return!1})).apply(this,arguments)}function Q2(){return(Q2=(0,Pt.A)(function*(n,a){(yield rv("background",n,a))||(yield rv("background-image",n,a)),(yield rv("mask",n,a))||(yield rv("mask-image",n,a))})).apply(this,arguments)}function ex(){return(ex=(0,Pt.A)(function*(n,a){const t=bp(n,HTMLImageElement);if((!t||N2(n.src))&&(!bp(n,SVGImageElement)||N2(n.href.baseVal)))return;const r=t?n.src:n.href.baseVal,i=yield V2(r,L2(r),a);yield new Promise((s,p)=>{n.onload=s,n.onerror=p;const g=n;g.decode&&(g.decode=s),"lazy"===g.loading&&(g.loading="eager"),t?(n.srcset="",n.src=i):n.href.baseVal=i})})).apply(this,arguments)}function tx(){return(tx=(0,Pt.A)(function*(n,a){const r=Tm(n.childNodes).map(i=>_4(i,a));yield Promise.all(r).then(()=>n)})).apply(this,arguments)}function _4(n,a){return nx.apply(this,arguments)}function nx(){return nx=(0,Pt.A)(function*(n,a){bp(n,Element)&&(yield function H5(n,a){return Q2.apply(this,arguments)}(n,a),yield function K5(n,a){return ex.apply(this,arguments)}(n,a),yield function J5(n,a){return tx.apply(this,arguments)}(n,a))}),nx.apply(this,arguments)}const v4={};function x4(n){return ix.apply(this,arguments)}function ix(){return(ix=(0,Pt.A)(function*(n){let a=v4[n];return null!=a||(a={url:n,cssText:yield(yield fetch(n)).text()},v4[n]=a),a})).apply(this,arguments)}function b4(n,a){return rx.apply(this,arguments)}function rx(){return rx=(0,Pt.A)(function*(n,a){let t=n.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,s=(t.match(/url\([^)]+\)/g)||[]).map(function(){var p=(0,Pt.A)(function*(g){let S=g.replace(r,"$1");return S.startsWith("https://")||(S=new URL(S,n.url).href),p4(S,a.fetchRequestInit,({result:R})=>(t=t.replace(g,`url(${R})`),[g,R]))});return function(g){return p.apply(this,arguments)}}());return Promise.all(s).then(()=>t)}),rx.apply(this,arguments)}function y4(n){if(null==n)return[];const a=[];let r=n.replace(/(\/\*[\s\S]*?\*\/)/gi,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)}
1)","gi");for(;;){const S=i.exec(r);if(null===S)break;a.push(S[0])}r=r.replace(i,"");const s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,g=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let S=s.exec(r);if(null===S){if(S=g.exec(r),null===S)break;s.lastIndex=g.lastIndex}else g.lastIndex=s.lastIndex;a.push(S[0])}return a}function ax(){return(ax=(0,Pt.A)(function*(n,a){const t=[],r=[];return n.forEach(i=>{if("cssRules"in i)try{Tm(i.cssRules||[]).forEach((s,p)=>{if(s.type===CSSRule.IMPORT_RULE){let g=p+1;const R=x4(s.href).then(L=>b4(L,a)).then(L=>y4(L).forEach(ne=>{try{i.insertRule(ne,ne.startsWith("@import")?g+=1:i.cssRules.length)}catch(re){console.error("Error inserting rule from remote css",{rule:ne,error:re})}})).catch(L=>{console.error("Error loading remote css",L.toString())});r.push(R)}})}catch(s){const p=n.find(g=>null==g.href)||document.styleSheets[0];null!=i.href&&r.push(x4(i.href).then(g=>b4(g,a)).then(g=>y4(g).forEach(S=>{p.insertRule(S,i.cssRules.length)})).catch(g=>{console.error("Error loading remote stylesheet",g)})),console.error("Error inlining remote css file",s)}}),Promise.all(r).then(()=>(n.forEach(i=>{if("cssRules"in i)try{Tm(i.cssRules||[]).forEach(s=>{t.push(s)})}catch(s){console.error(`Error while reading CSS rules from ${i.href}`,s)}}),t))})).apply(this,arguments)}function ox(){return ox=(0,Pt.A)(function*(n,a){if(null==n.ownerDocument)throw new Error("Provided element is not within a Document");const t=Tm(n.ownerDocument.styleSheets),r=yield function Q5(n,a){return ax.apply(this,arguments)}(t,a);return function ew(n){return n.filter(a=>a.type===CSSRule.FONT_FACE_RULE).filter(a=>m4(a.style.getPropertyValue("src")))}(r)}),ox.apply(this,arguments)}function sx(){return sx=(0,Pt.A)(function*(n,a){const t=yield function tw(n,a){return ox.apply(this,arguments)}(n,a);return(yield Promise.all(t.map(i=>g4(i.cssText,i.parentStyleSheet?i.parentStyleSheet.href:null,a)))).join("\n")}),sx.apply(this,arguments)}function lx(){return lx=(0,Pt.A)(function*(n,a){const t=null!=a.fontEmbedCSS?a.fontEmbedCSS:a.skipFonts?null:yield function nw(n,a){return sx.apply(this,arguments)}(n,a);if(t){const r=document.createElement("style"),i=document.createTextNode(t);r.appendChild(i),n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r)}}),lx.apply(this,arguments)}function cx(){return cx=(0,Pt.A)(function*(n,a={}){const{width:t,height:r}=l4(n,a),i=yield iv(n,a,!0);return yield function iw(n,a){return lx.apply(this,arguments)}(i,a),yield _4(i,a),function Z5(n,a){const{style:t}=n;a.backgroundColor&&(t.backgroundColor=a.backgroundColor),a.width&&(t.width=`${a.width}px`),a.height&&(t.height=`${a.height}px`);const r=a.style;null!=r&&Object.keys(r).forEach(i=>{t[i]=r[i]})}(i,a),yield function k5(n,a,t){return R2.apply(this,arguments)}(i,t,r)}),cx.apply(this,arguments)}function dx(){return dx=(0,Pt.A)(function*(n,a={}){const{width:t,height:r}=l4(n,a),i=yield function rw(n){return cx.apply(this,arguments)}(n,a),s=yield nv(i),p=document.createElement("canvas"),g=p.getContext("2d"),S=a.pixelRatio||function b5(){let n,a;try{a=process}catch{}const t=a&&a.env?a.env.devicePixelRatio:null;return t&&(n=parseInt(t,10),Number.isNaN(n)&&(n=1)),n||window.devicePixelRatio||1}(),R=a.canvasWidth||t,L=a.canvasHeight||r;return p.width=R*S,p.height=L*S,a.skipAutoScale||function y5(n){(n.width>Gp||n.height>Gp)&&(n.width>Gp&&n.height>Gp?n.width>n.height?(n.height*=Gp/n.width,n.width=Gp):(n.width*=Gp/n.height,n.height=Gp):n.width>Gp?(n.height*=Gp/n.width,n.width=Gp):(n.width*=Gp/n.height,n.height=Gp))}(p),p.style.width=`${R}`,p.style.height=`${L}`,a.backgroundColor&&(g.fillStyle=a.backgroundColor,g.fillRect(0,0,p.width,p.height)),g.drawImage(s,0,0,p.width,p.height),p}),dx.apply(this,arguments)}function px(){return(px=(0,Pt.A)(function*(n,a={}){return(yield function av(n){return dx.apply(this,arguments)}(n,a)).toDataURL("image/jpeg",a.quality||1)})).apply(this,arguments)}function ow(n,a){if(1&n&&(e.j41(0,"td",53)(1,"p",54),e.EFF(2),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.SpI(" ",t.merchant.address," ")}}function sw(n,a){if(1&n&&(e.j41(0,"td",55)(1,"span"),e.qSk(),e.j41(2,"svg",56),e.nrm(3,"path",57),e.k0s()(),e.joV(),e.j41(4,"span",58),e.EFF(5),e.k0s()()),2&n){const t=e.XpG();e.R7$(5),e.SpI(" ",t.merchant.phone_number," ")}}function lw(n,a){if(1&n&&(e.j41(0,"td",11)(1,"span"),e.qSk(),e.j41(2,"svg",59),e.nrm(3,"path",60),e.k0s()(),e.joV(),e.j41(4,"span",61),e.EFF(5),e.k0s()()),2&n){const t=e.XpG();e.R7$(5),e.SpI(" ",t.merchant.email," ")}}function cw(n,a){1&n&&(e.j41(0,"p",62),e.EFF(1," - "),e.k0s())}function dw(n,a){if(1&n&&(e.j41(0,"table",63)(1,"tr")(2,"td",5)(3,"table",64)(4,"tr")(
15,"td",65)(6,"table",66)(7,"tr")(8,"td",67)(9,"table",68)(10,"tr")(11,"td",69),e.nrm(12,"img",70),e.k0s()()()()()()()()()()()()),2&n){const t=e.XpG();e.R7$(12),e.Y8G("src",t.image_base_url+t.data.expense_image,e.B4B)}}let uw=(()=>{class n{constructor(){this.data=null,this.merchant=null,this.payment_type=null,this.image_base_url=sc.c.aws}ngOnInit(){}ngOnChanges(t){t?.data?.previousValue!=t?.data?.currentValue&&(this.data=t.data.currentValue),t?.payment_type?.previousValue!=t?.payment_type?.currentValue&&(this.payment_type=t.payment_type.currentValue),t?.merchant?.previousValue!=t?.merchant?.currentValue&&(this.merchant=t.merchant.currentValue)}getTotal(){return this.data?(parseFloat(this.data.amount)-parseFloat(this.data.amount_debited)).toFixed(2):"-"}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-invoice-pdf"]],inputs:{data:"data",merchant:"merchant",payment_type:"payment_type"},features:[e.OA$],decls:139,vars:18,consts:[[1,"invoice-pdf-root"],[1,"es-wrapper-color",2,"background-color","#fff"],["id","expenses-invoice-div","width","100%","cellspacing","0","cellpadding","0",1,"es-wrapper",2,"mso-table-lspace","0pt","mso-table-rspace","0pt","border-collapse","collapse","border-spacing","0px","padding","0","margin","0","width","100%","height","100%","background-repeat","repeat","background-position","center top","background-color","#fff","min-width","1000px"],["valign","top",2,"padding","0","margin","0"],["cellspacing","0","cellpadding","0","align","center",1,"es-header",2,"mso-table-lspace","0pt","mso-table-rspace","0pt","border-collapse","collapse","border-spacing","0px","table-layout","fixed !important","width","100%","background-color","transparent","background-repeat","repeat","background-position","center top"],["align","center",2,"padding","0","margin","0"],["cellspacing","0","cellpadding","0","bgcolor","#ffffff","align","center",1,"es-header-body",2,"mso-table-lspace","0pt","mso-table-rspace","0pt","border-collapse","collapse","border-spacing","0px","background-color","#FFFFFF","width","100%"],["align","left",2,"padding","40px 40px 0 40px","margin","0"],["cellspacing","0","cellpadding","0","align","left",1,"es-left",2,"mso-table-lspace","0pt","mso-table-rspace","0pt","border-collapse","collapse","border-spacing","0px","float","left"],["valign","top","align","left",1,"es-m-p0r","es-m-p20b",2,"padding","0","margin","0","width","400px"],["width","100%","cellspacing","0","cellpadding","0","role","presentation",2,"mso-table-lspace","0pt","mso-table-rspace","0pt","border-collapse","collapse","border-spacing","0px"],[2,"padding","0","margin","0"],["src","assets/svgs/logo_invoice.svg","alt","Onepay Logo","draggable","false"],["style","padding-bottom:22px;Margin:0",4,"ngIf"],["style","padding:0;Margin:0;padding-bottom:15px",4,"ngIf"],["style","padding:0;Margin:0",4,"ngIf"],["cellspacing","0","cellpadding","0","align","right",2,"mso-table-lspace","0pt","mso-table-rspace","0pt","border-collapse","collapse","border-spacing","0px"],["align","left",2,"padding","0","margin","0","width","300px"],[2,"width","100%","height","80px"],[2,"margin","0","-webkit-text-size-adjust","none","-ms-text-size-adjust","none","mso-line-height-rule","exactly","font-family","'open sans', 'helvetica neue', helvetica, arial, sans-serif","line-height","30px","color","#2d2d2d","font-size","20px","font-weight","600"],["style","Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-family:'open sans', 'helvetica neue', helvetica, arial, sans-serif;line-height:24px;color:#7D7D7D;font-size:16px;font-weight:500;margin-top:5px",4,"ngIf"],["cellspacing","0","cellpadding","0","align","left","role","presentation",2,"mso-table-lspace","0pt","mso-table-rspace","0pt","border-collapse","collapse","border-spacing","0px","margin-top","38px"],["valign","top","align","left",2,"padding","0","margin","0","width","150px","padding-bottom","20px"],[2,"color","#2d2d2d","font-size","16px","font-weight","400","word-wrap","break-word"],["valign","top","align","center",2,"padding","0","margin","0","width","30px","padding-bottom","20px"],[2,"color","#FF0000","font-size","15px","font-weight","600","word-wrap","break-word","background","#FFDADA","border-radius","4px","padding","5px 10px"],["cellspacing","0","cellpadding","0","align","center",1,"es-content",2,"mso-table-lspace","0pt","mso-table-rspace","0pt","border-collapse","collapse","border-spacing","0p
1x","table-layout","fixed !important","width","100%"],["cellspacing","0","cellpadding","0","bgcolor","#ffffff","align","center",1,"es-content-body",2,"mso-table-lspace","0pt","mso-table-rspace","0pt","border-collapse","collapse","border-spacing","0px","background-color","#FFFFFF","width","100%"],["align","left",2,"padding","40px 20px 40px 20px","margin","0"],["cellpadding","0","cellspacing","0","align","left",2,"mso-table-lspace","0pt","mso-table-rspace","0pt","border-collapse","collapse","border-spacing","0px","margin-top","30px"],["align","left",2,"padding","0","margin","0","width","100%"],["width","100%",2,"mso-table-lspace","0pt","mso-table-rspace","0pt","border-collapse","separate","border-spacing","20px 0px"],["align","left","valign","top",2,"background","#f3f3f3","border-radius","4px","color","#525252","font-size","14px","font-weight","500","padding","20px 25px"],["align","left","valign","top",2,"background","#f3f3f3","border-radius","4px","color","#525252","font-size","14px","font-weight","600","padding","20px 25px"],["align","left","valign","top",2,"background","#f3f3f3","border-radius","4px","width","350px","color","#525252","font-size","14px","font-weight","600","padding","20px 25px"],["align","right","valign","top",2,"background","#f3f3f3","border-radius","4px","color","#525252","font-size","14px","font-weight","600","padding","20px 25px","text-align","right"],[2,"height","20px"],["align","left","valign","top",2,"padding","20px 25px","margin","0","background","#f3f3f3","border-radius","4px 4px 0 0","color","#000000","font-size","14px","font-weight","400"],["align","left","valign","top",2,"padding","20px 25px","margin","0","width","350px","background","#f3f3f3","border-radius","4px 4px 0 0","color","#000000","font-size","14px","font-weight","400"],["align","right","valign","top",2,"padding","20px 25px","margin","0","background","#f3f3f3","border-radius","4px 4px 0 0","color","#000000","font-size","14px","font-weight","400","text-align","right"],["align","left","valign","top",2,"padding","20px 25px","margin","0","background","#f3f3f3"],["align","left","valign","top",2,"padding","20px 25px","margin","0","width","350px","background","#f3f3f3","color","#6A6A6A","font-size","14px","font-weight","400"],["align","left","valign","top",2,"padding","20px 25px","margin","0","background","#f3f3f3","color","#000000","font-size","14px","font-weight","400"],["align","right","valign","top",2,"padding","20px 25px","margin","0","background","#f3f3f3","color","#000000","font-size","14px","font-weight","400","text-align","right"],[2,"height","150px"],["align","left","valign","top",2,"padding","0","margin","0","background","#f3f3f3","border-radius","0 0 4px 4px"],["align","left","valign","top",2,"padding","0","margin","0","width","350px","background","#f3f3f3","border-radius","0 0 4px 4px"],["align","left","valign","top",2,"padding","20px","margin","0"],["align","left","valign","top",2,"padding","20px","margin","0","width","350px"],["align","left","valign","top",2,"padding","20px 25px","margin","0","background","#f3f3f3","border-radius","4px","color","#000000","font-size","14px","font-weight","600"],["align","right","valign","top",2,"padding","20px 25px","margin","0","background","#f3f3f3","border-radius","4px","color","#000000","font-size","16px","font-weight","600","text-align","right"],[1,"es-hidden",2,"padding","0","margin","0","width","20px"],["class","es-footer","cellspacing","0","cellpadding","0","align","center","style","mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;table-layout:fixed !important;width:100%;background-color:transparent;background-repeat:repeat;background-position:center top",4,"ngIf"],[2,"padding-bottom","22px","margin","0"],[2,"margin","0","-webkit-text-size-adjust","none","-ms-text-size-adjust","none","mso-line-height-rule","exactly","font-family","'open sans', 'helvetica neue', helvetica, arial, sans-serif","line-height","24px","color","#2d2d2d","font-size","16px","width","172px","font-weight","400px","word-wrap","break-word","margin","40px 0 0 0"],[2,"padding","0","margin","0","padding-bottom","15px"],["draggable","false","width","14","height","14","viewbox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg",2,"margin-top","-4px"],["d","M5.0245 6.0115C5.72825 7.24786 6.75214 8.27175 7.9885 8.9755L8.6515 8.047C8.75812 7.8977 8.91576 7.79266 9.0946 7.75175C9.27344 7.71084 9.46108 7.7369 9.622 7.825C10.6827 8.40469 11.8542 8.75333 13.0592 8.848C13.2473 8.8629 13.4229 8.94815 13.5509 9.08674C13.6789 9.22533 13.75 9.40708 13.75 9.59575V12.9423C13.75 13.1279 13.6812 13.3071 13.5568 13.4449C13.4324 13.5828 13.2612 13.6696 13.0765 13.6885C12.679 13.7297 12.2785 13.75 11.875 13.75C5.455 13.75 0.25 8.545 0.25 2.125C0.25 1.7215 0.27025 1.321 0.3115 0.9235C0.330441 0.738773 0.417238 0.567641 0.555092 0.443225C0.692946 0.31881 0.872055 0.24996 1.05775 0.25H4.40425C4.59292 0.249976 4.77467 0.321064 4.91326 0.449088C5.05185 0.577112 5.13709 0.752668 5.152 0.94075C5.24667 2.14584 5.59531 3.31726 6.175 4.378C6.2631 4.53892 6.28916 4.72656 6.24825 4.9054C6.20734 5.08424 6.1023 5.24188 5.953 5.3485L5.0245 6.0115ZM3.133 5.51875L4.558 4.501C4.15359 3.62807 3.87651 2.70163 3.73525 1.75H1.7575C1.753 1.8745 1.75075 1.99975 1.75075 2.125C1.75 7.717 6.283 12.25 11.875 12.25C12.0002 12.25 12.1255 12.2478 12.25 12.2425V10.2648C11.2984 10.1235 10.3719 9.84641 9.499 9.442L8.48125 10.867C8.0715 10.7078 7.6735 10.5198 7.29025 10.3045L7.24675 10.2797C5.77568 9.44254 4.55746 8.22432 3.72025 6.75325L3.6955 6.70975C3.48018
16.3265 3.29221 5.9285 3.133 5.51875Z","fill","#2D2D2D"],[2,"color","#2d2d2d","width","150px","font-size","16px","font-weight","400px","word-wrap","break-word","margin-left","10px"],["draggable","false","width","16","height","16","viewbox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg",2,"margin-top","-4px"],["d","M0.68225 5.14049L7.6175 0.982493C7.73406 0.912554 7.86744 0.87561 8.00338 0.87561C8.13931 0.87561 8.27269 0.912554 8.38925 0.982493L15.3177 5.14124C15.3733 5.17455 15.4194 5.2217 15.4513 5.27809C15.4832 5.33448 15.5 5.39819 15.5 5.46299V15C15.5 15.1989 15.421 15.3897 15.2803 15.5303C15.1397 15.671 14.9489 15.75 14.75 15.75H1.25C1.05109 15.75 0.860322 15.671 0.71967 15.5303C0.579018 15.3897 0.5 15.1989 0.5 15V5.46224C0.499986 5.39744 0.516768 5.33373 0.548709 5.27734C0.58065 5.22095 0.626659 5.1738 0.68225 5.14049ZM2 6.09974V14.25H14V6.09899L8.003 2.49899L2 6.09899V6.09974ZM8.045 10.2735L12.017 6.92624L12.983 8.07374L8.0555 12.2265L3.023 8.07899L3.977 6.92099L8.045 10.2735Z","fill","#2D2D2D"],[2,"color","#2d2d2d","width","150px","font-size","16px","font-weight","400px","word-wrap","break-word","word-break","break-all","margin-left","10px"],[2,"margin","0","-webkit-text-size-adjust","none","-ms-text-size-adjust","none","mso-line-height-rule","exactly","font-family","'open sans', 'helvetica neue', helvetica, arial, sans-serif","line-height","24px","color","#7D7D7D","font-size","16px","font-weight","500","margin-top","5px"],["cellspacing","0","cellpadding","0","align","center",1,"es-footer",2,"mso-table-lspace","0pt","mso-table-rspace","0pt","border-collapse","collapse","border-spacing","0px","table-layout","fixed !important","width","100%","background-color","transparent","background-repeat","repeat","background-position","center top"],["cellspacing","0","cellpadding","0","bgcolor","#ffffff","align","center",1,"es-footer-body",2,"mso-table-lspace","0pt","mso-table-rspace","0pt","border-collapse","collapse","border-spacing","0px","background-color","#FFFFFF","width","100%"],["align","left",2,"padding","40px","margin","0"],["cellpadding","0","cellspacing","0","width","100%",2,"mso-table-lspace","0pt","mso-table-rspace","0pt","border-collapse","collapse","border-spacing","0px","margin-top","10px"],["align","center","valign","top",2,"padding","0","margin","0","width","100%"],["cellpadding","0","cellspacing","0","width","100%","role","presentation",2,"mso-table-lspace","0pt","mso-table-rspace","0pt","border-collapse","collapse","border-spacing","0px"],["align","center",2,"padding","0","margin","0","font-size","0px"],["draggable","false","alt","",1,"adapt-img",2,"display","block","border","0","outline","none","text-decoration","none","-ms-interpolation-mode","bicubic","max-width","100%","height","auto","object-fit","contain",3,"src"]],template:function(r,i){1&r&&(e.j41(0,"div",0)(1,"nb-card")(2,"nb-card-body")(3,"div",1)(4,"table",2)(5,"tr")(6,"td",3)(7,"table",4)(8,"tr")(9,"td",5)(10,"table",6)(11,"tr")(12,"td",7)(13,"table",8)(14,"tr")(15,"td",9)(16,"table",10)(17,"tr")(18,"td",11),e.nrm(19,"img",12),e.k0s()(),e.j41(20,"tr"),e.DNE(21,ow,3,1,"td",13),e.k0s(),e.j41(22,"tr"),e.DNE(23,sw,6,1,"td",14),e.k0s(),e.j41(24,"tr"),e.DNE(25,lw,6,1,"td",15),e.k0s()()()()(),e.j41(26,"table",16)(27,"tr")(28,"td",17)(29,"table",10)(30,"tr")(31,"td",11)(32,"div",18)(33,"p",19),e.EFF(34," Payment Voucher"),e.k0s(),e.DNE(35,cw,2,0,"p",20),e.k0s()()(),e.j41(36,"tr")(37,"td",11)(38,"table",21)(39,"tr")(40,"td",22)(41,"span",23),e.EFF(42,"Date"),e.k0s()(),e.j41(43,"td",24)(44,"span",23),e.EFF(45,":"),e.k0s()(),e.j41(46,"td",22)(47,"span",23),e.EFF(48),e.nI1(49,"date"),e.k0s()()(),e.j41(50,"tr")(51,"td",22)(52,"span",23),e.EFF(53,"No"),e.k0s()(),e.j41(54,"td",24)(55,"span",23),e.EFF(56,":"),e.k0s()(),e.j41(57,"td",22)(58,"span",23),e.EFF(59,"-"),e.k0s()()(),e.j41(60,"tr")(61,"td",22)(62,"span",23),e.EFF(63,"Payment Option"),e.k0s()(),e.j41(64,"td",24)(65,"span",23),e.EFF(66,":"),e.k0s()(),e.j41(67,"td",22)(68,"span",23),e.EFF(69),e.k0s()()(),e.j41(70,"tr")(71,"td",22)(72,"span",23),e.EFF(73,"Category"),e.k0s()(),e.j41(74,"td",24)(75,"span",23),e.EFF(76,":"),e.k0s()(),e.j41(77,"td",22)(78,"span",25),e.EFF(79),e.k0s()()()()()()()()()()()()()()()(),e.j41(80,"table",26)(81,"tr")(82,"td",5)(83,"table",27)(84,"tr")(85,"td",28)(86,"table",29)(87,"tr")(88,"td",30)(89,"table",31)(90,"thead")(91,"tr"),e.nrm(92,"th",32),e.j41(93,"th",33),e.EFF(94," Payment Option"),e.k0s(),e.j41(95,"th",34),e.EFF(96," Description"),e.k0s(),e.j41(97,"th",33),e.EFF(98," Currency"),e.k0s(),e.j41(99,"th",35),e.EFF(100," Amount"),e.k0s()()(),e.nrm(101,"tr",36),e.j41(102,"tr")(103,"td",37),e.EFF(104," 1"),e.k0s(),e.j41(105,"td",37),e.EFF(106),e.k0s(),e.j41(107,"td",38),e.EFF(108," Amount"),e.k0s(),e.j41(109,"td",37),e.EFF(110),e.k0s(),e.j41(111,"td",39),e.EFF(112),e.k0s()(),e.j41(113,"tr"),e.nrm(114,"td",40)(115,"td",40),e.j41(116,"td",41),e.EFF(117," Debited Amount"),e.k0s(),e.j41(118,"td",42),e.EFF(119),e.k0s(),e.j41(120,"td",43),e.EFF(121),e.k0s()(),e.j41(122,"tr",44),e.nrm(123,"td",45)(124,"td",45)(125,"td",46)(126,"td",45)(127,"td",45),e.k0s(),e.nrm(128,"tr",36),e.j41(129,"tr"),e.nrm(130,"td",47)(131,"td",47)(132,"td",48),e.j41(133,"td",49),e.EFF(134),e.k0s(),e.j41(135,"td",50),e.EFF(136),e.k0s()()()(),e.nrm(137,"td",51),e.k0s()()()()()()()(),e.DNE(138,dw,13,1,"table",52),e.k0s()()()()()()()),2&r&&(e.R7$(21),e.Y8G("ngIf",i.merchant&&i.merchant.address),e.R7$(2),e.Y8G("ngIf",i.merchant&&i.merchant.phone_number),e.R7$(2),e.Y8G("ngIf",i.merchant&&i.merchant.email),e.R7$(10),e.Y8G("ngIf",!1),e.R7$(13),e.SpI(" ",e.i5U(49,15,null==i.data?null:i.data.expense_datetime,"yyyy MMM dd")," "),e.R7$(21),e.SpI(" ",(null==i.payment_type?null:i.payment_type.payment_type_name)||"-"," "),e.R7$(10),e.SpI(" ",(null==i.data?null:i.data.category_name)||"-"," "),e.R7$(27),e.SpI(" ",(null==i.payment_type?null:i.payment_type.payment_type_name)||"-"," "),e.R7$(4),e.SpI(" ",(null==i.data?null:i.data.currency_name)||"-"," "),e.R7$(2),e.SpI(" ",(null==i.data?null:i.data.amount)||"0.00"," "),e.R7$(7),e.SpI(" ",(null==i.data?null:i.data.currency_name)||"-"," "),e.R7$(2),e.SpI(" ",(null==i.data?null:i.data.amount_debited)||"0.00"," "),e.R7$(13),e.SpI(" Total (",null==i.data?null:i.data.currency_name,")"),e.R7$(2),e.SpI(" ",i.getTotal()," "),e.R7$(2),e.Y8G("ngIf",i.data&&i.data.expense_image))},dependencies:[Fe.bT,E.SrT,E.KH5,Fe.vh],styles:[".invoice-pdf-root[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}#outlook[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:0}.es-button[_ngcontent-%COMP%]{mso-style-priority:100!important;text-decoration:none!important}a[x-apple-data-detectors][_ngcontent-%COMP%]{color:inherit!important;text-decoration:none!important;font-size:inherit!important;font-family:inherit!important;font-weight:inherit!important;line-height:inherit!important}.es-desk-hidden[_ngcontent-%COMP%]{display:none;float:left;overflow:hidden;width:0;max-height:0;line-height:0;mso-hide:all}[data-ogsb][_ngcontent-%COMP%] .es-button[_ngcontent-%COMP%]{border-width:0!important;padding:10px 20px!important}@media only screen and (max-width: 600px){p[_ngcontent-%COMP%], ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%], ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{line-height:150%!important}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h1[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h2[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h3[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{line-height:120%}h1[_ngcontent-%COMP%]{font-size:30px!important;text-align:left}
1h2[_ngcontent-%COMP%]{font-size:24px!important;text-align:left}h3[_ngcontent-%COMP%]{font-size:20px!important;text-align:left}.es-header-body[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .es-content-body[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .es-footer-body[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:30px!important;text-align:left}.es-header-body[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .es-content-body[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .es-footer-body[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:24px!important;text-align:left}.es-header-body[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .es-content-body[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .es-footer-body[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:20px!important;text-align:left}.es-menu[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .es-header-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .es-header-body[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .es-header-body[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .es-header-body[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .es-content-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .es-content-body[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .es-content-body[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .es-content-body[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .es-footer-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .es-footer-body[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .es-footer-body[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .es-footer-body[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:14px!important}.es-infoblock[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .es-infoblock[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .es-infoblock[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .es-infoblock[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:12px!important}*[class=gmail-fix][_ngcontent-%COMP%]{display:none!important}.es-m-txt-c[_ngcontent-%COMP%], .es-m-txt-c[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .es-m-txt-c[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .es-m-txt-c[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:center!important}.es-m-txt-r[_ngcontent-%COMP%], .es-m-txt-r[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .es-m-txt-r[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .es-m-txt-r[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:right!important}.es-m-txt-l[_ngcontent-%COMP%], .es-m-txt-l[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .es-m-txt-l[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .es-m-txt-l[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:left!important}.es-m-txt-r[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .es-m-txt-c[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .es-m-txt-l[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:inline!important}.es-button-border[_ngcontent-%COMP%]{display:inline-block!important}a.es-button[_ngcontent-%COMP%], button.es-button[_ngcontent-%COMP%]{font-size:18px!important;display:inline-block!important}.es-adaptive[_ngcontent-%COMP%] table[_ngcontent-%COMP%], .es-left[_ngcontent-%COMP%], .es-right[_ngcontent-%COMP%]{width:100%!important}.es-content[_ngcontent-%COMP%] table[_ngcontent-%COMP%], .es-header[_ngcontent-%COMP%] table[_ngcontent-%COMP%], .es-footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%], .es-content[_ngcontent-%COMP%], .es-footer[_ngcontent-%COMP%], .es-header[_ngcontent-%COMP%]{width:100%!important;max-width:600px!important}.es-adapt-td[_ngcontent-%COMP%]{display:block!important;width:100%!important}.adapt-img[_ngcontent-%COMP%]{width:100%!important;height:auto!important}.es-m-p0[_ngcontent-%COMP%]{padding:0!important}.es-m-p0r[_ngcontent-%COMP%]{padding-right:0!important}.es-m-p0l[_ngcontent-%COMP%]{padding-left:0!important}.es-m-p0t[_ngcontent-%COMP%]{padding-top:0!important}.es-m-p0b[_ngcontent-%COMP%]{padding-bottom:0!important}.es-m-p20b[_ngcontent-%COMP%]{padding-bottom:20px!important}.es-mobile-hidden[_ngcontent-%COMP%], .es-hidden[_ngcontent-%COMP%]{display:none!important}tr.es-desk-hidden[_ngcontent-%COMP%], td.es-desk-hidden[_ngcontent-%COMP%], table.es-desk-hidden[_ngcontent-%COMP%]{width:auto!important;overflow:visible!important;float:none!important;max-height:inherit!important;line-height:inherit!important}tr.es-desk-hidden[_ngcontent-%COMP%]{display:table-row!important}table.es-desk-hidden[_ngcontent-%COMP%]{display:table!important}td.es-desk-menu-hidden[_ngcontent-%COMP%]{display:table-cell!important}.es-menu[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{width:1%!important}table.es-table-not-adapt[_ngcontent-%COMP%], .esd-block-html[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:auto!important}table.es-social[_ngcontent-%COMP%], table.es-social[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{display:inline-block!important}.es-desk-hidden[_ngcontent-%COMP%]{display:table-row!important;width:auto!important;overflow:visible!important;max-height:inherit!important}}"]})}return n})();function fw(n,a){if(1&n&&(e.qex(0),e.j41(1,"h2",32),e.EFF(2),e.nI1(3,"truncateText"),e.k0s(),e.j41(4,"h2",33),e.EFF(5,"|"),e.k0s(),e.j41(6,"h2",34),e.EFF(7,"0079986AA"),e.k0s(),e.bVm()),2&n){const t=e.XpG();e.R7$(2),e.JRh(e.i5U(3,1,t.expense.description,"25"))}}function pw(n,a){1&n&&(e.j41(0,"h2",35),e.EFF(1,"Expenses Invoice"),e.k0s())}function hw(n,a){if(1&n&&(e.j41(0,"span",36),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(t.expense.description)}}function mw(n,a){if(1&n&&(e.j41(0,"span",37),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(t.expense.category_name)}}function gw(n,a){if(1&n&&(e.j41(0,"div",38),e.nrm(1,"nb-icon",39),e.j41(2,"span"),e.EFF(3),e.nI1(4,"date"),e.k0s()()),2&n){const t=e.XpG();e.R7$(3),e.JRh(e.i5U(4,1,t.expense.expense_datetime,"yyyy MMM dd hh.mm a"))}}function _w(n,a){if(1&n&&(e.j41(0,"div",40),e.nrm(1,"nb-icon",41),e.j41(2,"span"),e.EFF(3),e.k0s()()),2&n){const t=e.XpG();e.R7$(3),e.JRh(t.merchant_details.address)}}function vw(n,a){if(1&n&&(e.j41(0,"div",38),e.nrm(1,"nb-icon",42),e.j41(2,"span"),e.EFF(3),e.k0s()()),2&n){const t=e.XpG();e.R7$(3),e.JRh(t.merchant_details.registered_business_name)}}let xw=(()=>{class n{constructor(t,r,i,s,p){this.router=t,this.route=r,this.ets=i,this.toastr=s,this.es=p,this.description="Foods for after party",this.is_loading=!1,this.is_loading_2=!1,this.currencies=[],this.payment_types=[]}ngOnInit(){this.merchant_details=this.es.response_decript(localStorage.getItem("xu")),this.getPaymentTypes(),this.getExpense()}getPaymentTypes(){this.ets.getPaymentTypes().then(t=>{100===t?.status&&(this.payment_types=t?.data)},t=>{console.log("Internal Server Error",t)})}getExpense(){this.is_loading=!0,this.ets.getExpenses({id:this.route.
1snapshot.params?.id}).then(t=>{this.is_loading=!1,t&&100===t?.status?(this.expense=t?.data[0],this.getPaymentType()):this.toastr.showToast("danger","Failed!","Getting expense details failed.")},t=>{this.is_loading=!1,console.log("Internal Server Error",t)})}getPaymentType(){!this.expense||!this.payment_types||(this.payment_type=this.payment_types.filter(t=>t?.payment_type_id===this.expense?.payment_type_id)[0])}navigateBack(){this.router.navigateByUrl("/pages/expenses-tracker")}downloadPDF(){this.is_loading_2=!0;let t=this;(function aw(n){return px.apply(this,arguments)})(document.getElementById("expenses-invoice-div")).then(function(i){t.is_loading_2=!1;let s=new Image;s.onload=function(){let p=s.width,g=s.height;p*=.5,g*=.5;let S=new b1.jsPDF({orientation:"p",unit:"px",format:[.5*s.width,.85*s.height]});S.addImage(i,"PNG",0,10,p,g),S.save("expenses_invoice.pdf")},s.src=i}).catch(i=>{console.error(i),t.is_loading_2=!1})}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(qe.Ix),e.rXU(qe.nX),e.rXU(Mt.NZ),e.rXU(Dt.V4),e.rXU(Mt.Vv))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-expenses-tracker-invoice"]],decls:43,vars:16,consts:[["noDescription",""],[1,"invoice-root"],[1,"container"],[1,"row","mb-5"],[1,"col-12","col-md-8","d-flex","justify-content-start","align-items-center"],[1,"header-link","d-flex","align-items-center",3,"click"],["icon","arrow-ios-back-outline",1,"mr-2"],[4,"ngIf","ngIfElse"],[1,"col-12","col-md-4","d-flex","justify-content-start","justify-content-md-end","align-items-center","mt-4","ml-4","mt-md-0","ml-md-0"],["nbButton","","nbSpinnerStatus","danger",1,"pdf-download-btn","d-flex","align-items-center",2,"border","none",3,"click","nbSpinner","disabled"],["icon","cloud-download-outline",1,"mr-1"],[1,"row","mb-4","d-flex","flex-column"],[1,"col"],[1,"p-5"],[1,"d-flex","flex-column","flex-lg-row"],[1,"col","col-lg-6","mb-4","mb-lg-0"],[1,"amount","d-flex","align-items-end","mb-4"],[1,"mr-2"],[1,"debited","d-flex","flex-column","mb-4"],[1,"mb-2"],[1,"debited-amount","d-flex","align-items-end"],[1,"mr-1"],[1,"d-flex","flex-column","align-items-start"],["class","des mb-2",4,"ngIf"],["class","category",4,"ngIf"],[1,"col","col-lg-6"],[1,"info"],["class","d-flex align-items-center mb-3",4,"ngIf"],["class","d-flex align-items-start mb-3",4,"ngIf"],[1,"col","mb-5"],["id","expeses-invoice-wrapper",1,"invoice"],[3,"data","merchant","payment_type"],[1,"page-heading","mr-2"],[1,"page-heading","mr-2",2,"font-weight","400 !important"],[1,"page-heading",2,"font-size","23px !important","font-weight","400 !important"],[1,"page-heading"],[1,"des","mb-2"],[1,"category"],[1,"d-flex","align-items-center","mb-3"],["icon","calendar-outline",1,"mr-1"],[1,"d-flex","align-items-start","mb-3"],["icon","pin-outline",1,"mr-1"],["icon","person-outline",1,"mr-1"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"a",5),e.bIt("click",function(){return e.eBV(s),e.Njj(i.navigateBack())}),e.nrm(5,"nb-icon",6),e.k0s(),e.DNE(6,fw,8,4,"ng-container",7)(7,pw,2,0,"ng-template",null,0,e.C5r),e.k0s(),e.j41(9,"div",8)(10,"button",9),e.bIt("click",function(){return e.eBV(s),e.Njj(i.downloadPDF())}),e.nrm(11,"nb-icon",10),e.EFF(12," Download as PDF "),e.k0s()()(),e.j41(13,"div",11)(14,"div",12)(15,"nb-card")(16,"nb-card-body",13)(17,"div",14)(18,"div",15)(19,"div",16)(20,"span",17),e.EFF(21),e.k0s(),e.j41(22,"span"),e.EFF(23),e.k0s()(),e.j41(24,"div",18)(25,"span",19),e.EFF(26,"Debited Amount"),e.k0s(),e.j41(27,"div",20)(28,"span",21),e.EFF(29),e.k0s(),e.j41(30,"span"),e.EFF(31),e.k0s()()(),e.j41(32,"div",22),e.DNE(33,hw,2,1,"span",23)(34,mw,2,1,"span",24),e.k0s()(),e.j41(35,"div",25)(36,"div",26),e.DNE(37,gw,5,4,"div",27)(38,_w,4,1,"div",28)(39,vw,4,1,"div",27),e.k0s()()()()()(),e.j41(40,"div",29)(41,"div",30),e.nrm(42,"ngx-invoice-pdf",31),e.k0s()()()()()}if(2&r){const s=e.sdS(8);e.R7$(6),e.Y8G("ngIf",i.expense&&i.expense.description)("ngIfElse",s),e.R7$(4),e.Y8G("nbSpinner",i.is_loading_2)("disabled",i.is_loading_2),e.R7$(11),e.JRh((null==i.expense?null:i.expense.amount)||"0.00"),e.R7$(2),e.JRh(null==i.expense?null:i.expense.currency_name),e.R7$(6),e.JRh((null==i.expense?null:i.expense.amount_debited)||"0.00"),e.R7$(2),e.JRh(null==i.expense?null:i.expense.currency_name),e.R7$(2),e.Y8G("ngIf",i.expense&&i.expense.description),e.R7$(),e.Y8G("ngIf",i.expense&&i.expense.category_name),e.R7$(3),e.Y8G("ngIf",i.expense&&i.expense.expense_datetime),e.R7$(),e.Y8G("ngIf",i.merchant_details&&i.merchant_details.address),e.R7$(),e.Y8G("ngIf",i.merchant_details&&i.merchant_details.registered_business_name),e.R7$(3),e.Y8G("data",i.expense)("merchant",i.merchant_details)("payment_type",i.payment_type)}},dependencies:[Fe.bT,E.SrT,E.KH5,E.tHu,E.YP2,E.zwc,uw,Fe.vh,ps._],styles:[".invoice-root[_ngcontent-%COMP%] .header-link[_ngcontent-%COMP%]{cursor:pointer}.invoice-root[_ngcontent-%COMP%] .header-link[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{line-height:36px}.invoice-root[_ngcontent-%COMP%] .pdf-download-btn[_ngcontent-%COMP%]{font-size:16px;font-weight:500;color:red;cursor:pointer}.invoice-root[_ngcontent-%COMP%] .pdf-download-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{fill:red}
1.invoice-root[_ngcontent-%COMP%] .amount[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{font-size:36px;font-weight:500;color:#000}.invoice-root[_ngcontent-%COMP%] .amount[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){font-size:16px;font-weight:400;color:#6b6b6b;margin-bottom:-4px}.invoice-root[_ngcontent-%COMP%] .debited[_ngcontent-%COMP%] [_ngcontent-%COMP%]:first-child{font-size:12px;font-weight:400;color:#6a6a6a}.invoice-root[_ngcontent-%COMP%] .debited[_ngcontent-%COMP%] .debited-amount[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{font-size:19px;font-weight:400;color:#000}.invoice-root[_ngcontent-%COMP%] .debited[_ngcontent-%COMP%] .debited-amount[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){font-size:12px;font-weight:400;color:#6b6b6b;margin-bottom:-1px}.invoice-root[_ngcontent-%COMP%] .des[_ngcontent-%COMP%]{font-size:16px;font-weight:400;color:#000}.invoice-root[_ngcontent-%COMP%] .category[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:#fff;padding:6px 12px;background:#ff5f2d;border-radius:38px}.invoice-root[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:16px;font-weight:400;color:#6e6e6e}.invoice-root[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{font-size:14px}.invoice-root[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{color:#6e6e6e}.invoice-root[_ngcontent-%COMP%] .receipt[_ngcontent-%COMP%]{font-size:16px;font-weight:400;color:#0029ff;cursor:pointer}.invoice-root[_ngcontent-%COMP%] .invoice[_ngcontent-%COMP%]{position:relative;width:100%;overflow-y:auto}"]})}return n})(),bw=(()=>{class n{constructor(){this.state1=!0,this.state2=!1}ngOnInit(){}sec1_show(){this.state1=!0,this.state2=!1}sec2_show(){this.state1=!1,this.state2=!0}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-analytics-dashboard"]],decls:78,vars:4,consts:[[1,"analaytics-dashboad"],[1,"container",2,"padding","0"],[1,"row","mb-4"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"page-heading"],[1,"col-6"],[1,"mb-4"],[1,"row"],[1,"col-7"],[1,"sub-heading"],[1,"col-5"],[1,"tab-botton"],["autofocus","state2",2,"border-radius","0px 6px 6px 0px",3,"click"],["autofocus","state1",2,"border-radius","6px 0px 0px 6px",3,"click"],[1,"row","mt-3"],[1,"col","col-6","d-flex","flex-column","justify-content-around","border-right"],[1,"d-flex","align-items-end","flex-wrap"],[1,"sub-heading-3"],[1,"col-12"],[1,"sub-heading-value","mr-3"],[1,"difference-icon","mt-2"],["icon","arrow-up-outline",2,"color","#03AD00"],[1,"difference"],[1,"col","col-6","d-flex","flex-column","justify-content-around"]],template:function(r,i){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h2",4),e.EFF(5,"Analytics Dashboard"),e.k0s()()(),e.j41(6,"div",2)(7,"div",5)(8,"nb-card")(9,"nb-card-body")(10,"div",6)(11,"div",7)(12,"div",8)(13,"h2",9),e.EFF(14,"Total Transaction volume"),e.k0s()(),e.j41(15,"div",10)(16,"div",11)(17,"button",12),e.bIt("click",function(){return i.sec2_show()}),e.EFF(18,"USD"),e.k0s(),e.j41(19,"button",13),e.bIt("click",function(){return i.sec1_show()}),e.EFF(20,"LKR"),e.k0s()()()(),e.j41(21,"div",14)(22,"div",15)(23,"div",16)(24,"label",17),e.EFF(25,"Total Transaction"),e.k0s()(),e.j41(26,"div",7)(27,"div",18)(28,"label",19),e.EFF(29," 10000.00 "),e.k0s(),e.j41(30,"label",20),e.nrm(31,"nb-icon",21),e.k0s(),e.j41(32,"label",22),e.EFF(33,"3.05%"),e.k0s()()()(),e.j41(34,"div",23)(35,"div",16)(36,"label",17),e.EFF(37,"Daily Transaction"),e.k0s()(),e.j41(38,"div",7)(39,"div",18)(40,"label",19),e.EFF(41," 10000.00 "),e.k0s(),e.j41(42,"label",20),e.nrm(43,"nb-icon",21),e.k0s(),e.j41(44,"label",22),e.EFF(45,"3.05%"),e.k0s()()()()(),e.nrm(46,"hr"),e.j41(47,"div",7)(48,"div",15)(49,"div",16)(50,"label",17),e.EFF(51,"Total Transaction"),e.k0s()(),e.j41(52,"div",7)(53,"div",18)(54,"label",19),e.EFF(55," 10000.00 "),e.k0s(),e.j41(56,"label",20),e.nrm(57,"nb-icon",21),e.k0s(),e.j41(58,"label",22),e.EFF(59,"3.05%"),e.k0s()()()(),e.j41(60,"div",23)(61,"div",16)(62,"label",17),e.EFF(63,"Daily Transaction"),e.k0s()(),e.j41(64,"div",7)(65,"div",18)(66,"label",19),e.EFF(67," 10000.00 "),e.k0s(),e.j41(68,"label",20),e.nrm(69,"nb-icon",21),e.k0s(),e.j41(70,"label",22),e.EFF(71,"3.05%"),e.k0s()()()()()()()()(),e.j41(72,"div",5)(73,"nb-card")(74,"
1nb-card-body")(75,"div",6)(76,"h2",9),e.EFF(77,"Number of transactions"),e.k0s()()()()()()()()),2&r&&(e.R7$(17),e.HbH(i.state2?"tab-botton-body2":"tab-botton-body"),e.R7$(2),e.HbH(i.state1?"tab-botton-body2":"tab-botton-body"))},dependencies:[E.SrT,E.KH5,E.tHu],styles:[".tab-botton-body[_ngcontent-%COMP%]{width:53px;height:30px;font-weight:400;font-size:12px;background:#f0f0f0;border:none;color:#000;float:right}.tab-botton-body2[_ngcontent-%COMP%]{width:53px;height:30px;font-weight:400;font-size:12px;background:#000;border:none!important;color:#fff;outline:none;float:right}.tab-botton[_ngcontent-%COMP%]{text-align:center;width:100%}.tab-botton-body[_ngcontent-%COMP%]:hover{background:#000;border:none;color:#fff}.tab-botton-body[_ngcontent-%COMP%]:focus{background:#000;border:none!important;color:#fff;outline:none}.sub-heading-value[_ngcontent-%COMP%]{font-weight:600;font-size:24px}.difference[_ngcontent-%COMP%]{font-size:12px;font-weight:400}"]})}return n})();var C4=bn(82406);const yw=(n,a,t)=>({itemsPerPage:n,currentPage:a,totalItems:t});function Cw(n,a){if(1&n&&(e.j41(0,"td"),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.total_payout?t.total_payout:"Not Available"," USD")}}function kw(n,a){if(1&n&&(e.j41(0,"td"),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.total_payout_lkr?t.total_payout_lkr:"Not Available"," LKR")}}function ww(n,a){if(1&n){const t=e.RV6();e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.DNE(3,Cw,2,1,"td",23)(4,kw,2,1,"td",23),e.j41(5,"td"),e.EFF(6),e.k0s(),e.j41(7,"td"),e.EFF(8),e.k0s(),e.j41(9,"td"),e.EFF(10),e.k0s(),e.j41(11,"td")(12,"div",31)(13,"button",32),e.bIt("click",function(){const i=e.eBV(t).$implicit,s=e.XpG(3);return e.Njj(s.getBranchTraData(i.batch_id,i.app_id,i.mid?i.mid:""))}),e.nrm(14,"nb-icon",33),e.EFF(15," View "),e.k0s()()()()}if(2&n){const t=a.$implicit;e.R7$(2),e.SpI(" ",t.batch_id?t.batch_id:"Not Available",""),e.R7$(),e.Y8G("ngIf","00440"==t.mid),e.R7$(),e.Y8G("ngIf","00440"!==t.mid||""==t.mid),e.R7$(2),e.SpI(" ",t.bank_ref_no?t.bank_ref_no:"Not Available",""),e.R7$(2),e.SpI(" ",t.batch_type?t.batch_type:"Not Available",""),e.R7$(2),e.SpI(" ",t.app_ref_data?t.app_ref_data:"Not Available","")}}function Fw(n,a){if(1&n&&(e.qex(0),e.j41(1,"tr",29)(2,"td",30),e.EFF(3),e.nI1(4,"date"),e.k0s()(),e.DNE(5,ww,16,6,"tr",28),e.nI1(6,"paginate"),e.bVm()),2&n){const t=a.$implicit,r=e.XpG(2);e.R7$(3),e.JRh(e.i5U(4,2,t,"dd MMM yyyy")),e.R7$(2),e.Y8G("ngForOf",e.i5U(6,5,r.payouts_data[t],e.sMw(8,yw,r.page_size,r.page,r.payouts_count)))}}function Aw(n,a){if(1&n&&(e.j41(0,"tbody"),e.DNE(1,Fw,7,12,"ng-container",28),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.payoutDates)}}function Tw(n,a){1&n&&(e.j41(0,"div",34)(1,"div",35)(2,"span",36),e.EFF(3,"Loading..."),e.k0s()()())}function Sw(n,a){1&n&&(e.j41(0,"div",37)(1,"h6"),e.EFF(2,"No data available!"),e.k0s()())}function Ew(n,a){1&n&&(e.j41(0,"div",37)(1,"h6"),e.EFF(2,"Please select all failed and retrieve data"),e.k0s()())}function Pw(n,a){if(1&n){const t=e.RV6();e.j41(0,"pagination-controls",38),e.bIt("pageChange",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.pageChanged(i))})("pageBoundsCorrection",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.pageChanged(i))}),e.k0s()}}function Mw(n,a){if(1&n&&(e.j41(0,"tr")(1,"td",60),e.EFF(2),e.nI1(3,"date"),e.k0s(),e.j41(4,"td",60),e.EFF(5),e.k0s(),e.j41(6,"td",60),e.EFF(7),e.k0s(),e.j41(8,"td",60),e.EFF(9),e.k0s(),e.j41(10,"td",60),e.EFF(11),e.k0s(),e.j41(12,"td",60),e.EFF(13),e.k0s(),e.j41(14,"td",60),e.EFF(15),e.k0s()()),2&n){const t=a.$implicit;e.R7$(2),e.JRh(e.i5U(3,7,t.datetime,"dd/MM/yyyy hh:mm a")),e.R7$(3),e.JRh(t.onepay_transaction_id?t.onepay_transaction_id:"Not Available"),e.R7$(2),e.JRh(t.batch_type?t.batch_type:"Not Available"),e.R7$(2),e.JRh(t.request_amount?t.request_amount:"Not Available"),e.R7$(2),e.JRh(t.commission_rate?t.commission_rate:"Not Available"),e.R7$(2),e.JRh(t.commission_amount?t.commission_amount:"Not Available"),e.R7$(2),e.JRh(t.net_amount?t.net_amount:"Not Available")}}
1function Ow(n,a){1&n&&(e.j41(0,"tr")(1,"td",61)(2,"span",62),e.EFF(3,"Data Not Available"),e.k0s()()())}function Dw(n,a){if(1&n&&(e.j41(0,"tbody"),e.DNE(1,Mw,16,10,"tr",28)(2,Ow,4,0,"tr",23),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngForOf",t.view_payout),e.R7$(),e.Y8G("ngIf",t.view_payout.length<1)}}function Iw(n,a){if(1&n&&(e.j41(0,"div",58)(1,"div",59)(2,"p",47),e.EFF(3,"Total Payout (LKR)"),e.k0s(),e.j41(4,"p",63),e.EFF(5),e.k0s()(),e.j41(6,"div",59)(7,"p",47),e.EFF(8,"Exchange rate"),e.k0s(),e.j41(9,"p",64),e.EFF(10),e.k0s()(),e.j41(11,"div",59)(12,"p",47),e.EFF(13,"Net Payout (LKR)"),e.k0s(),e.j41(14,"p",65),e.EFF(15),e.k0s()(),e.j41(16,"div",59)(17,"p",47),e.EFF(18,"Total commission fee (LKR)"),e.k0s(),e.j41(19,"p",66),e.EFF(20),e.k0s()()()),2&n){const t=e.XpG(2);e.R7$(5),e.JRh(t.view_merchant.total_net_lkr||"Not Available"),e.R7$(5),e.JRh(t.view_merchant.exchange_rate||"Not Available"),e.R7$(5),e.JRh(t.view_merchant.total_payout_lkr||"Not Available"),e.R7$(5),e.JRh(t.view_merchant.total_commission_lkr||"Not Available")}}function jw(n,a){if(1&n&&(e.j41(0,"div",58)(1,"div",59)(2,"p",47),e.EFF(3,"Total Payout (USD)"),e.k0s(),e.j41(4,"p",63),e.EFF(5),e.k0s()(),e.j41(6,"div",59)(7,"p",47),e.EFF(8),e.k0s(),e.j41(9,"p",66),e.EFF(10),e.k0s()(),e.j41(11,"div",59)(12,"p",47),e.EFF(13,"Net Payout
1(USD)"),e.k0s(),e.j41(14,"p",65),e.EFF(15),e.k0s()()()),2&n){const t=e.XpG(2);e.R7$(5),e.JRh(t.view_merchant.net_total||"Not Available"),e.R7$(3),e.SpI("Total commission fee (",t.view_merchant.currency||"Not Available",")"),e.R7$(2),e.JRh(t.view_merchant.commission_total||"Not Available"),e.R7$(5),e.JRh(t.view_merchant.total_payout||"Not Available")}}function Rw(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",39)(1,"div",40)(2,"div",41)(3,"button",42),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.closeView())}),e.nrm(4,"nb-icon",43),e.k0s(),e.j41(5,"div",44)(6,"h4"),e.EFF(7,"Payout Details"),e.k0s()(),e.j41(8,"div",45)(9,"div",46)(10,"p",47),e.EFF(11,"Settlement Report For"),e.k0s(),e.j41(12,"p",48),e.EFF(13),e.nI1(14,"date"),e.nI1(15,"date"),e.k0s()(),e.j41(16,"div",46)(17,"p",47),e.EFF(18,"Customer Name"),e.k0s(),e.j41(19,"p",48),e.EFF(20),e.k0s()(),e.j41(21,"div",46)(22,"p",47),e.EFF(23,"Batch Number"),e.k0s(),e.j41(24,"p",48),e.EFF(25),e.k0s()()(),e.j41(26,"div",45),e.nrm(27,"hr",49),e.k0s(),e.j41(28,"div",50)(29,"div",51)(30,"table",52)(31,"thead",53)(32,"tr")(33,"th",54),e.EFF(34,"Date & Time"),e.k0s(),e.j41(35,"th",54),e.EFF(36,"Transaction ID"),e.k0s(),e.j41(37,"th",54),e.EFF(38,"Method"),e.k0s(),e.j41(39,"th",54),e.EFF(40),e.k0s(),e.j41(41,"th",54),e.EFF(42,"Rate (%)"),e.k0s(),e.j41(43,"th",54),e.EFF(44),e.k0s(),e.j41(45,"th",54),e.EFF(46),e.k0s()()(),e.DNE(47,Dw,3,2,"tbody",23),e.k0s()()(),e.j41(48,"div",45),e.nrm(49,"hr",55),e.k0s(),e.DNE(50,Iw,21,4,"div",56)(51,jw,16,4,"div",56),e.j41(52,"div",45),e.nrm(53,"hr",57),e.k0s(),e.j41(54,"div",58)(55,"div",59)(56,"p",47),e.EFF(57,"Account"),e.k0s(),e.j41(58,"p",48),e.EFF(59),e.k0s()(),e.j41(60,"div",59)(61,"p",47),e.EFF(62,"Bank"),e.k0s(),e.j41(63,"p",48),e.EFF(64),e.k0s()(),e.j41(65,"div",59)(66,"p",47),e.EFF(67,"Bank Reference"),e.k0s(),e.j41(68,"p",48),e.EFF(69),e.k0s()()()()()()}if(2&n){const t=e.XpG();e.R7$(13),e.Lme("",e.i5U(14,13,null==t.view_merchant?null:t.view_merchant.start_date,"dd/MM/yyyy hh:mm a")," To ",e.i5U(15,16,null==t.view_merchant?null:t.view_merchant.end_date,"dd/MM/yyyy hh:mm a"),""),e.R7$(7),e.JRh(t.view_merchant.business_name||"Not Available"),e.R7$(5),e.JRh(t.b_id||"Not Available"),e.R7$(15),e.SpI("Gross Payment (",t.view_merchant.currency,")"),e.R7$(4),e.SpI("Fees (",t.view_merchant.currency,")"),e.R7$(2),e.SpI("Net Payment (",t.view_merchant.currency,")"),e.R7$(),e.Y8G("ngIf",!t.is_loading_1&&t.view_payout.length>0),e.R7$(3),e.Y8G("ngIf","00440"!==t.mid_new),e.R7$(),e.Y8G("ngIf","00440"==t.mid_new),e.R7$(8),e.JRh((null==t.view_merchant.account_data?null:t.view_merchant.account_data.account_no)||"Not Available"),e.R7$(5),e.JRh((null==t.view_merchant.account_data?null:t.view_merchant.account_data.bank)||"Not Available"),e.R7$(5),e.JRh((null==t.view_merchant?null:t.view_merchant.bank_ref_no)||"Not Available")}}let Lw=(()=>{class n{constructor(t,r,i,s){this.fb=t,this.transactionService=r,this.toastr=i,this.reportService=s,this.is_loading=!1,this.data_verify=!1,this.filter_form=null,this.page=1,this.page_size=10,this.is_loading_1=!1,this.payouts=[],this.transaction_data=[],this.merchant_data=[],this.payouts_data={},this.payouts_count=0,this.is_view=!1,this.view_payout=null,this.view_merchant=null;const g=new Date;g.setMonth(g.getMonth()-1),this.filter_form=this.fb.group({from_date:[""],to_date:[""]})}get from_date(){return this.filter_form.get("from_date")}get to_date(){return this.filter_form.get("to_date")}ngOnInit(){this.getPayouts(),this.getIpgServiceData(),Object.keys(this.payouts_data);for(const[r,i]of Object.entries(this.payouts_data))console.log(r,i)}get payoutDates(){return this.payouts_data?Object.keys(this.payouts_data):[]}getPayouts(){this.data_verify=!0,this.is_loading_1=!0,this.transactionService.getPayoutHistoyr(this.page,this.page_size,this.from_date.value?Zt(this.from_date.value).format("YYYY-MM-DD HH:mm:ss"):"",this.to_date.value?Zt(this.to_date.value).format("YYYY-MM-DD HH:mm:ss"):"").then(t=>{console.log("get payout history",t),this.is_loading_1=!1,100===t?.status?(this.payouts_count=t?.count,this.payouts_data=t?.data.reduce((r,i)=>{const s=i.approved_on.split(" ")[0];return r[s]?r[s].push(i):r[s]=[i],r},{}),console.log(this.payouts_data,"groupedDatagroupedData")):this.toastr.showToast("danger","Error
1!",t?.message||"Getting customers data failed.")},t=>{this.is_loading_1=!1,console.log("Internal Server Error",t),this.toastr.showToast("danger","Error!","Internal Server Error.")})}pageChanged(t){this.page=t,this.getPayouts()}openView(t,r,i){this.mid_new=i,this.b_id=r,this.view_payout=t.tran_data,this.view_merchant=t.data[0],console.log(this.view_payout,"table data"),this.is_view=!0,setTimeout(()=>{document.getElementById("payouts-view").querySelector(".offcanvas-modal").classList.add("show")},100)}closeView(){document.getElementById("payouts-view").querySelector(".offcanvas-modal").classList.remove("show"),setTimeout(()=>{this.is_view=!1},300)}clearFilterForm(){!this.to_date.value&&!this.from_date.value||(this.filter_form.reset(),this.page=1,this.payouts=[],this.getPayouts())}getIpgServiceData(){console.log("5555yy"),this.is_loading_1=!0,this.reportService.getIpgProvider().then(t=>{console.log(t,"rrrrr eeee"),this.is_loading_1=!1,100==t.status?this.ipg_provider=t.data.data:this.toastr.showToast("danger","Error!",t?.message||"Gettings customers data failed.")},t=>{this.is_loading_1=!1,console.log(t),this.toastr.showToast("danger","error","Internal Server Error")})}getBranchTraData(t,r,i){console.log("5555yy"),this.is_loading_1=!0,this.transactionService.getBatchTransactionData(t,r).then(s=>{console.log(s,"rrrrr eeee"),this.is_loading_1=!1,100==s.status?(this.transaction_data=s,this.merchant_data=s.data.tran_data,console.log(this.transaction_data,"this.transaction_data"),this.openView(this.transaction_data,t,i)):this.toastr.showToast("danger","Error!",s?.message||"Gettings transaction data failed.")},s=>{this.is_loading_1=!1,console.log(s),this.toastr.showToast("danger","error","Internal Server Error")})}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(ie.ok),e.rXU(C4.k),e.rXU(Dt.V4),e.rXU(Un.G))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-payouts"]],decls:55,vars:11,consts:[["from_date_cal",""],["to_date_cal",""],[1,"body-style","payouts-root"],[1,"container"],[1,"row","mb-4"],[1,"col","d-flex","align-items-center"],[1,"page-heading"],[1,"col"],[1,"mb-4",2,"padding","0 10px"],[1,"sub-heading"],[1,"mb-4","filter-form",3,"ngSubmit","formGroup"],[1,"row",2,"padding","0 10px"],[1,"col-12","col-md-6","col-lg-4","col-xxl-3","d-flex","flex-column","justify-content-start","align-items-center","mb-3","mb-lg-0"],["for","payouts-filter-form-from-date",1,"col","px-0","mb-1"],["type","text","id","payouts-filter-form-from-date","formControlName","from_date","name","from_date","placeholder","Start Date",1,"form-control",3,"owlDateTime","owlDateTimeTrigger"],["for","payouts-filter-form-to-date",1,"col","px-0","mb-1"],["type","text","id","payouts-filter-form-to-date","formControlName","to_date","name","to_date","placeholder","End Date",1,"form-control",3,"owlDateTime","owlDateTimeTrigger"],[1,"col-12","col-xxl-2","d-flex","justify-content-end","justify-content-xxl-start","align-items-end","mt-3","mt-xxl-0"],["nbButton","","shape","rectangle","size","medium","type","submit",1,"mr-1","filter-form-btn","primary-black-btn"],["nbButton","","shape","rectangle","size","medium","type","button",1,"button-common-clear",3,"click"],[1,"col","d-flex","flex-column","px-0","list-like-table"],[1,"table-responsive"],[1,"table","table-sm","align-top"],[4,"ngIf"],["class","d-flex justify-content-center align-items-center","style","height: 20rem;",4,"ngIf"],["class","d-flex justify-content-center align-items-center table-no-data-div","style","height: 20rem;",4,"ngIf"],["responsive","true","class","mx-auto mt-3 mt-lg-1",3,"pageChange","pageBoundsCorrection",4,"ngIf"],["id","payouts-view","class","offcanvas-modal-wrapper",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"date_tr"],[1,"date_td"],[1,"d-flex","flex-column","justify-content-between","align-items-start"],["nbButton","","status","basic","size","tiny",1,"table-view-btn-1",2,"margin-bottom","4px",3,"click"],["icon","eye-outline"],[1,"d-flex","justify-content-center","align-items-center",2,"height","20rem"],["role","status",1,"spinner-border","text-primary"],[1,"visually-hidden"],[1,"d-flex","justify-content-center","align-items-center","table-no-data-div",2,"height","20rem"],["responsive","true",1,"mx-auto","mt-3","mt-lg-1",3,"pageChange","pageBoundsCorrection"],["id","payouts-view",1,"offcanvas-modal-wrapper"],[1,"offcanvas-modal","p-4",2,"overflow-y","scroll"],[1,"offcanvas-content"],[1,"close-btn",3,"click"],["icon","close-circle-outline"],[1,"mb-4","px-2"],[1,"px-2"],[1,"detail","mb-3"],[1,"detail__1"],[1,"detail__2"],[1,"mt-4","px-2"],[1,"row",2,"margin-top","20px"],[1,"col-12"],[1,"table","table-responsive-sm","table-hover","table-outline","mb-0"],[1,"thead-light"],[1,"tran_view"],[1,"mt-0","mb-4","px-2"],["class","d-flex flex-wrap px-2",4,"ngIf"],[1,"mt-2","mb-4","px-2"],[1,"d-flex","flex-wrap","px-2"],[1,"detail","col-6","px-0","mb-3"],[1,"tran_data"],["colspan","10",2,"text-align","center"],[2,"display","block","padding-bottom","7px"],[1,"detail__2",2,"color","#00B628"],[1,"detail__2",2,"color","#BD00FF"],[1,"detail__2",2,"color","#0038FF"],[1,"detail__2",2,"color","#FF8A00"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"h2",6),e.EFF(5,"Payouts"),e.k0s()()(),e.j41(6,"div",4)(7,"div",7)(8,"nb-card")(9,"nb-card-body")(10,"div",8)(11,"h2",9),e.EFF(12,"Payout Details"),e.k0s()(),e.j41(13,"form",10),e.bIt("ngSubmit",function(){return e.eBV(s),e.Njj(i.pageChanged(1))}),e.j41(14,"div",11)(15,"div",12)(16,"label",13),e.EFF(17,"From"),e.k0s(),e.nrm(18,"input",14)(19,"owl-date-time",null,0),e.k0s(),e.j41(21,"div",12)(22,"label",15),e.EFF(23,"To"),e.k0s(),e.nrm(24,"input",16)(25,"owl-date-time",null,1),e.k0s(),e.j41(27,"div",17)(28,"button",18),e.EFF(29," Filter "),e.k0s(),e.j41(30,"button",19),e.bIt("click",function(){return e.eBV(s),e.Njj(i.clearFilterForm())}),e.EFF(31," Clear "),e.k0s()()()(),e.j41(32,"div",20)(33,"div",21)(34,"table",22)(35,"thead")(36,"tr")(37,"th"),e.EFF(38,"Batch ID"),e.k0s(),e.j41(39,"th"),e.EFF(40,"Net Payout"),e.k0s(),e.j41(41,"th"),e.EFF(42,"Bank reference"),e.k0s(),e.j41(43,"th"),e.EFF(44,"Payment Method"),e.k0s(),e.j41(45,"th"),e.EFF(46,"App Reference"),e.k0s(),e.j41(47,"th"),e.EFF(48,"Action"),e.k0s()()(),e.DNE(49,Aw,2,1,"tbody",23),e.k0s()(),e.DNE(50,Tw,4,0,"div",24)(51,Sw,3,0,"div",25)(52,Ew,3,0,"div",25)(53,Pw,1,0,"pagination-controls",26),e.k0s()()()()()(),e.DNE(54,Rw,70,19,"div",27),e.k0s()}if(2&r){const s=e.sdS(20),p=e.sdS(26);e.R7$(13),e.Y8G("formGroup",i.filter_form),e.R7$(5),e.Y8G("owlDateTime",s)("owlDateTimeTrigger",s),e.R7$(6),e.Y8G("owlDateTime",p)("owlDateTimeTrigger",p),e.R7$(25),e.Y8G("ngIf",!i.is_loading_1&&i.payouts_count>0),e.R7$(),e.Y8G("ngIf",i.is_loading_1),e.R7$(),e.Y8G("ngIf",!i.is_loading_1&&0===i.payouts_count&&i.data_verify),e.R7$(),e.Y8G("ngIf",!i.data_verify),e.R7$(),e.Y8G("ngIf",i.payouts_count>0),e.R7$(),e.Y8G("ngIf",i.is_view)}},dependencies:[Fe.Sq,Fe.bT,xi.ej,ie.qT,ie.me,ie.BC,ie.cb,ie.j4,ie.JD,E.SrT,E.KH5,E.tHu,E.YP2,hd.H$,hd.BK,hd.P_,Fe.vh,xi.kf],styles:[".offcanvas-modal-wrapper[_ngcontent-%COMP%]{position:absolute;inset:0;background:#00000080;z-index:2000}.offcanvas-modal-wrapper[_ngcontent-%COMP%] .offcanvas-modal[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;right:0;max-width:860px;opacity:.75;background-color:#fff;box-shadow:0 0 10px 4px #0000001a;transition:all .3s ease}.offcanvas-modal-wrapper[_ngcontent-%COMP%] .offcanvas-modal[_ngcontent-%COMP%] .offcanvas-content[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]{position:absolute;top:1.5rem;right:1.5rem;outline:none;border:none;background:transparent}.offcanvas-modal-wrapper[_ngcontent-%COMP%] .offcanvas-modal[_ngcontent-%COMP%] .offcanvas-content[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover, .offcanvas-modal-wrapper[_ngcontent-%COMP%] .offcanvas-modal[_ngcontent-%COMP%] .offcanvas-content[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%] [_ngcontent-%COMP%]:focus{outline:none}.offcanvas-modal-wrapper[_ngcontent-%COMP%] .offcanvas-modal[_ngcontent-%COMP%] .offcanvas-content[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{transform:scale(1.3);fill:#000000e6}.offcanvas-modal-wrapper[_ngcontent-%COMP%] .offcanvas-modal[_ngcontent-%COMP%] .offcanvas-content[_ngcontent-%COMP%] h4[_ng
1content-%COMP%]{font-weight:500;font-size:18px;line-height:27px;color:#1a202c}.offcanvas-modal-wrapper[_ngcontent-%COMP%] .offcanvas-modal[_ngcontent-%COMP%] .offcanvas-content[_ngcontent-%COMP%] .detail__1[_ngcontent-%COMP%]{font-weight:500;font-size:14px;color:#000}.offcanvas-modal-wrapper[_ngcontent-%COMP%] .offcanvas-modal[_ngcontent-%COMP%] .offcanvas-content[_ngcontent-%COMP%] .detail__2[_ngcontent-%COMP%]{font-weight:500;font-size:14px;line-height:25px;color:#7c7c7c}.offcanvas-modal-wrapper[_ngcontent-%COMP%] .offcanvas-modal[_ngcontent-%COMP%] .offcanvas-content[_ngcontent-%COMP%] .detail-2[_ngcontent-%COMP%]{min-width:100px}.offcanvas-modal-wrapper[_ngcontent-%COMP%] .offcanvas-modal[_ngcontent-%COMP%] .offcanvas-content[_ngcontent-%COMP%] .detail-2__1[_ngcontent-%COMP%]{font-weight:500;font-size:12px;color:#000;margin-bottom:10px!important}.offcanvas-modal-wrapper[_ngcontent-%COMP%] .offcanvas-modal[_ngcontent-%COMP%] .offcanvas-content[_ngcontent-%COMP%] .detail-2__2[_ngcontent-%COMP%]{font-weight:500;font-size:12px;line-height:25px;color:#7c7c7c}.offcanvas-modal-wrapper[_ngcontent-%COMP%] .offcanvas-modal[_ngcontent-%COMP%] .offcanvas-content[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border:1px solid #DBDBDB}.offcanvas-modal.show[_ngcontent-%COMP%]{opacity:100!important}.button-common-clear[_ngcontent-%COMP%]{border:none;float:right;color:#818181;font-size:.75rem;padding:8px 30px;margin-top:16px;background-color:#fff}.button-common-clear[_ngcontent-%COMP%]:focus{outline:none}.date_tr[_ngcontent-%COMP%]{background:#fff;border:none;box-shadow:none;-webkit-box-shadow:none;-moz-box-shadow:none}.date_td[_ngcontent-%COMP%]{font-size:14px!important;font-weight:500!important;color:#000!important;border:none;padding:9px 0!important;vertical-align:middle!important}.list-like-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#6d6d6d;border:none;padding:15px;vertical-align:middle}.tran_view[_ngcontent-%COMP%]{background-color:transparent!important;border:none;font-size:12px;font-weight:500}.tran_data[_ngcontent-%COMP%]{font-size:12px;color:#7c7c7c;font-weight:500}"]})}return n})(),Nw=(()=>{class n{constructor(t,r,i,s,p,g){this.toastr=t,this.reportService=r,this.dialogService=i,this.fb=s,this.router=p,this.route=g,this.event_id="",this.title="Event Transaction Report",this.description="",this.isLoading=!1,this.batch_name="",this.batch_description="",this.items=[],this.headers=[{head:"Row ID",key:"id",selected:!0,fixed:!0},{head:"Customer Email",key:"customer_email",selected:!0,fixed:!0},{head:"Customer First Name",key:"customer_first_name",selected:!0,fixed:!0},{head:"Customer Last Name",key:"customer_last_name",selected:!1,fixed:!1},{head:"Status",key:"status",selected:!0,fixed:!0},{head:"Ticket Name",key:"ticket_name",selected:!0,fixed:!0},{head:"Purchased Quantity",key:"count",selected:!0,fixed:!0},{head:"Total Amount",key:"total_amount",selected:!0,fixed:!0},{head:"Checked in Description",key:"checked_in_description",selected:!1,fixed:!1},{head:"Checkedin Time",key:"checkedin_time",selected:!1,fixed:!1},{head:"Customer Phone No",key:"customer_phone_no",selected:!1,fixed:!1},{head:"Transaction Date & Time",key:"datetime",selected:!1,fixed:!1},{head:"Event ID",key:"event_id",selected:!1,fixed:!1},{head:"Gender",key:"gender",selected:!1,fixed:!1},{head:"Check in Status",key:"is_checked_in",selected:!1,fixed:!1},{head:"Onepay Transaction ID",key:"onepay_transaction_id",selected:!1,fixed:!1},{head:"Ticket Amount",key:"ticket_amount",selected:!1,fixed:!1},{head:"Verification ID",key:"verification_id",selected:!1,fixed:!1},{head:"Verification Method",key:"verification_method",selected:!1,fixed:!1}]}ngOnInit(){}search_data(){this.items=[],this.event_id?(this.description="Report for event id = "+this.event_id,this.isLoading=!0,console.log(this.event_id,"event"),this.reportService.getMerchantEventReport(this.event_id).then(t=>{console.log(t,"event report"),this.isLoading=!1,100==t.status&&t.data.length?(this.items=t.data,console.log(this.items,"ipg test33333333")):this.items=[]},t=>{this.toastr.showToast("danger","error","Internal Server Error")})):this.toastr.showToast("danger","error","Oh Snap! - Please enter search parameters")}clear_data(){this.event_id=""}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(Dt.V4),e.rXU(Un.G),e.rXU(E.S0W),e.rXU(ie.ok),e.rXU(qe.Ix),e.rXU(qe.nX))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-event-report"]],decls:28,vars:6,consts:[[1,"row","mb-4"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"page-heading"],[1,"row"],[1,"col-12"],["size","small",2,"height","auto","padding-top","12px"],[1,"headerStyle"],[1,"container"],[1,"mb-4","card","card-bottom"],[1,"card-body"],[1,"table-wrapper"],[1,"table-title"],[1,"col-lg-3","col-md-3","col-sm-12"],[1,"input-group"],["type","text","fullWidth","","placeholder","Event ID",1,"form-control",3,"ngModelChange","ngModel"],[1,"row",2,"margin-top","10px","float","right"],[1,"col-lg-12","col-md-12","col-sm-12"],["nbButton","","shape","rectangle","size","medium","type","submit",1,"mr-1","filter-form-btn","primary-black-btn",3,"click"],["nbButton","","shape","rectangle","size","medium","type","button",1,"filter-form-btn","filter-form-clear-btn",3,"click"],[3,"data","headers","isLoading","title","description"]],template:function(r,i){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"h2",2),e.EFF(3," Event Transaction Report"),e.k0s()()(),e.j41(4,"div",3)(5,"div",4)(6,"nb-card",5)(7,"nb-card-header",6)(8,"div"),e.EFF(9," Event Transaction Report "),e.k0s()(),e.j41(10,"div",7)(11,"div",8)(12,"div",9)(13,"div",10)(14,"div",11)(15,"div",3)(16,"div",12)(17,"div",13)(18,"input",14),e.mxI("ngModelChange",function(p){return e.DH7(i.event_id,p)||(i.event_id=p),p}),e.k0s()()()(),e.j41(19,"div",15)(20,"div",16)(21,"button",17),e.bIt("click",function(){return i.search_data()}),e.EFF(22," Filter "),e.k0s(),e.j41(23,"button",18),e.bIt("click",function(){return i.clear_data()}),e.EFF(24," Clear "),e.k0s()()()()()()(),e.j41(25,"div",3)(26,"div",4),e.nrm(27,"ngx-op-data-table2",19),e.k0s()()()()()()),2&r&&(e.R7$(18),e.R50("ngModel",i.event_id),e.R7$(9),e.Y8G("data",i.items)("headers",i.headers)("isLoading",i.isLoading)("title",i.title)("description",i.description))},dependencies:[ie.me,ie.BC,ie.vS,E.SrT,E.zJv,E.YP2,Pg],styles:[".label-name[_ng
1content-%COMP%]{font-size:14px;line-height:15px;margin-top:12px;font-family:Poppins!important;color:#a7a7a7!important}[_ngcontent-%COMP%]::placeholder{font-family:poppins!important;font-size:14px!important;color:#a7a7a7!important}.button-common[_ngcontent-%COMP%]{background:#b3b3b3;border-radius:6px;border:none;float:right;color:#fff;font-size:.75rem;padding:8px 30px;margin-top:16px}.card-header[_ngcontent-%COMP%]{background-color:#fff!important;border-bottom:none!important;font-weight:800!important}input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{background:#fff!important;font-family:Poppins!important;color:#a7a7a7!important;font-weight:400!important}.drop-style[_ngcontent-%COMP%]{font-family:Poppins!important;color:#a7a7a7!important;font-size:14px}.button-common-clear[_ngcontent-%COMP%]{border:none;float:right;color:#818181;font-size:.75rem;padding:8px 30px;margin-top:16px;background-color:#fff}.button-common-clear[_ngcontent-%COMP%]:focus{outline:none}"]})}return n})(),Bw=(()=>{class n{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-apps-integration"]],decls:94,vars:0,consts:[[1,"body-style"],[1,"container"],[1,"row","mb-4"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"page-heading"],[1,"row"],[1,"col"],["nbSpinnerStatus","primary","nbSpinnerSize","large",2,"min-height","20rem"],[1,"sub-heading2"],[1,"mt-4","row"],[1,"col-12","col-lg-6","col-xxl-6"],[1,"py-3","px-3","mb-4","ipg-app-root"],[1,"row","align-items-center"],[1,"col-6","d-flex","align-items-center"],["src","../../../assets/images/approve_img.png","alt","Icon",1,"image_icon"],[1,"col-6","d-flex","justify-content-end","align-items-center"],["text","https://apps.shopify.com/onepay-payment-gateway?locale=ja"],[1,"btn-group"],["type","button","data-toggle","dropdown","aria-expanded","false",1,"btn","btn-sm","btn-light",2,"border-radius","50%","padding-left","12px"],[1,"dropdown-menu","dropdown-menu-right"],["type","button",1,"dropdown-item"],["href","https://apps.shopify.com/onepay-payment-gateway?locale=ja","target","_blank",2,"color","#0053F5","text-decoration","underline","cursor","pointer"],[1,"row","header","mt-2"],[1,"col-12"],["text","https://wordpress.org/plugins/onepay-payment-gateway-for-woocommerce/"],["href","https://wordpress.org/plugins/onepay-payment-gateway-for-woocommerce/","target","_blank",2,"color","#0053F5","text-decoration","underline","cursor","pointer"],["text","https://www.opencart.com/index.php?route=marketplace/extension/info&member_token=54ce0334336cf13da7e0dabf3ff72632&extension_id=43995"],["href","https://www.opencart.com/index.php?route=marketplace/extension/info&member_token=54ce0334336cf13da7e0dabf3ff72632&extension_id=43995","target","_blank",2,"color","#0053F5","text-decoration","underline","cursor","pointer"],["text","https://github.com/onepay-srilanka"],["href","https://github.com/onepay-srilanka","target","_blank",2,"color","#0053F5","text-decoration","underline","cursor","pointer"]],template:function(r,i){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h2",4),e.EFF(5,"App & Integration"),e.k0s()()(),e.j41(6,"div",5)(7,"div",6)(8,"nb-card",7)(9,"nb-card-body")(10,"h4",8),e.EFF(11,"Apps for you"),e.k0s(),e.j41(12,"div",9)(13,"div",10)(14,"div",11)(15,"div",12)(16,"div",13),e.nrm(17,"img",14),e.k0s(),e.j41(18,"div",15),e.nrm(19,"ngx-copy-text",16),e.j41(20,"div",17)(21,"button",18),e.EFF(22," \u2807 "),e.k0s(),e.j41(23,"div",19)(24,"button",20)(25,"a",21),e.EFF(26," Redirect "),e.k0s()()()()()(),e.j41(27,"div",22)(28,"div",23)(29,"h5"),e.EFF(30,"Shopify"),e.k0s(),e.j41(31,"p"),e.EFF(32,"Onepay gateway offers merchants a highly efficient payment processing solution, featuring the lowest possible transaction fees. This platform ensures consistent and regular payouts, thereby streamlining the financial interactions between customers and merchants. Its design prioritizes ease of use and reliability, making it an ideal choice for businesses seeking an effective and economical payment processing service."),e.k0s()()()()(),e.j41(33,"div",10)(34,"div",11)(35,"div",12)(36,"div",13),e.nrm(37,"img",14),e.k0s(),e.j41(38,"div",15),e.nrm(39,"ngx-copy-text",24),e.j41(40,"div",17)(41,"button",18),e.EFF(42," \u2807 "),e.k0s(),e.j41(43,"div",19)(44,"button",20)(45,"a",25),e.EFF(46," Redirect "),e.k0s()()()()()(),e.j41(47,"div",22)(48,"div",23)(49,"h5"),e.
1EFF(50,"Wordpress"),e.k0s(),e.j41(51,"p"),e.EFF(52,"This Payment Gateway For WooCommerce extends the functionality of WooCommerce to accept payments from Visa, MasterCard, AMEX, & Lanka QR using onepay payment Gateway. onepay Payment Gateway for WooCommerce makes your website ready to use inorder to accept Visa, MasterCard, AMEX & Lanka QR on your e-commerce store in a safe way. onepay is most widely used payment gateway to process payments online and accepts Visa, MasterCard, Discover and other variants of cards."),e.k0s()()()()()(),e.j41(53,"div",9)(54,"div",10)(55,"div",11)(56,"div",12)(57,"div",13),e.nrm(58,"img",14),e.k0s(),e.j41(59,"div",15),e.nrm(60,"ngx-copy-text",26),e.j41(61,"div",17)(62,"button",18),e.EFF(63," \u2807 "),e.k0s(),e.j41(64,"div",19)(65,"button",20)(66,"a",27),e.EFF(67," Redirect "),e.k0s()()()()()(),e.j41(68,"div",22)(69,"div",23)(70,"h5"),e.EFF(71,"Opencart"),e.k0s(),e.j41(72,"p"),e.EFF(73,"Amazon hosted solution for your business. Does not require you to purchase and configure hosting. It contains several plans and everyone can choose a plan for themselves, given the size of their business. 7 days of free use are provided so that you can enjoy all the benefits of OpenCart Cloud."),e.k0s()()()()(),e.j41(74,"div",10)(75,"div",11)(76,"div",12)(77,"div",13),e.nrm(78,"img",14),e.k0s(),e.j41(79,"div",15),e.nrm(80,"ngx-copy-text",28),e.j41(81,"div",17)(82,"button",18),e.EFF(83," \u2807 "),e.k0s(),e.j41(84,"div",19)(85,"button",20)(86,"a",29),e.EFF(87," Redirect "),e.k0s()()()()()(),e.j41(88,"div",22)(89,"div",23)(90,"h5"),e.EFF(91,"Github"),e.k0s(),e.j41(92,"p"),e.EFF(93,"This Payment Gateway For WooCommerce extends the functionality of WooCommerce to accept payments from Visa, MasterCard, AMEX, & Lanka QR using onepay payment Gateway. onepay Payment Gateway for WooCommerce makes your website ready to use inorder to accept Visa, MasterCard, AMEX & Lanka QR on your e-commerce store in a safe way. "),e.k0s()()()()()()()()()()()())},dependencies:[Pl.a,E.SrT,E.KH5],styles:[".ipg-app-root[_ngcontent-%COMP%]{min-height:16rem;font-family:Inter,sans-serif;font-style:normal;background:#fff;border:1px solid #A0AEC0;box-sizing:border-box;border-radius:7px}.ipg-app-root[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-family:inherit!important;font-weight:500;font-size:16px;color:#0075ff!important;text-overflow:ellipsis;overflow:hidden}.ipg-app-root[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-family:inherit!important;font-style:normal;font-weight:400;font-size:12px;color:#718096;word-wrap:break-word}.ipg-app-root[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]{font-family:inherit!important;font-size:13px;font-weight:500;color:#0009;padding:.45rem 1rem}.ipg-app-root[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]:active{color:#fff;background-color:nb-theme(color-primary-default);outline:none}.image_icon[_ngcontent-%COMP%]{width:46px;height:auto}.sub-heading2[_ngcontent-%COMP%]{font-size:16px;color:#718096;font-weight:500}"]})}return n})(),Gw=(()=>{class n{constructor(t,r,i,s,p,g){this.toastr=t,this.reportService=r,this.dialogService=i,this.fb=s,this.router=p,this.route=g,this.title="Transaction History Report",this.description="",this.isLoading=!1,this.batch_name="",this.batch_description="",this.items=[],this.headers=[{head:"ID",key:"id",selected:!0,fixed:!0},{head:"Onepay Transaction ID",key:"onepay_transaction_id",selected:!0,fixed:!0},{head:"Currency",key:"currency",selected:!0,fixed:!0},{head:"Transaction Status",key:"transaction_status",selected:!0,fixed:!0},{head:"Transaction Amount",key:"request_amount",selected:!0,fixed:!0},{head:"Request Date & Time",key:"request_datetime",selected:!1,fixed:!0},{head:"Transaction Type",key:"transaction_type",selected:!1,fixed:!0},{head:"Customer Email",key:"customer_email",selected:!1,fixed:!1},{head:"Customer Phone Number",key:"customer_phone_number",selected:!1,fixed:!1},{head:"Customer First Name",key:"customer_first_name",selected:!1,fixed:!1},{head:"Customer Last Name",key:"customer_last_name",selected:!1,fixed:!1}
1,{head:"Paid Date & Time",key:"paid_on",selected:!1,fixed:!1}]}ngOnInit(){}search_data(){if(this.items=[],!this.start_date||!this.end_date)return void this.toastr.showToast("danger","error","Oh Snap! - Please enter search parameters");this.description="Report for "+this.start_date+" to "+this.end_date,this.isLoading=!0;let t="";this.start_date&&(t=t+"start_date="+Zt(this.start_date).format("YYYY-MM-DD H:mm:ss")),this.end_date&&(t=t+"&end_date="+Zt(this.end_date).format("YYYY-MM-DD H:mm:ss")),this.reportService.getTransactionHistoryReport(t).then(r=>{console.log(r,"re34343434s"),this.isLoading=!1,100==r.status&&r.data.length?(this.items=r.data,console.log(this.items,"transction history report")):this.items=[]},r=>{this.toastr.showToast("danger","error","Internal Server Error")})}clear_data(){this.start_date="",this.end_date=""}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(Dt.V4),e.rXU(Un.G),e.rXU(E.S0W),e.rXU(ie.ok),e.rXU(qe.Ix),e.rXU(qe.nX))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-transaction-history-report"]],decls:35,vars:11,consts:[["start_date_cal",""],["end_date_cal",""],[1,"row","mb-4"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"page-heading"],[1,"row"],[1,"col-12"],["size","small",2,"height","auto","padding-top","12px"],[1,"headerStyle"],[1,"container"],[1,"mb-4","card","card-bottom"],[1,"card-body"],[1,"table-wrapper"],[1,"table-title"],[1,"col-lg-3","col-md-3","col-sm-12"],[1,"input-group"],["type","text","placeholder","Start Date",1,"form-control",3,"ngModelChange","ngModel","owlDateTime","owlDateTimeTrigger"],["type","text","placeholder","End Date",1,"form-control",3,"ngModelChange","ngModel","owlDateTime","owlDateTimeTrigger"],[1,"row",2,"float","right","margin-top","10px"],[1,"col-lg-12","col-md-12","col-sm-12"],["nbButton","","shape","rectangle","size","medium","type","submit",1,"mr-1","filter-form-btn","primary-black-btn",3,"click"],["nbButton","","shape","rectangle","size","medium","type","button",1,"filter-form-btn","filter-form-clear-btn",3,"click"],[3,"data","headers","isLoading","title","description"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"h2",4),e.EFF(3,"Transaction History Report"),e.k0s()()(),e.j41(4,"div",5)(5,"div",6)(6,"nb-card",7)(7,"nb-card-header",8)(8,"div"),e.EFF(9," Transaction History Report "),e.k0s()(),e.j41(10,"div",9)(11,"div",10)(12,"div",11)(13,"div",12)(14,"div",13)(15,"div",5)(16,"div",14)(17,"div",15)(18,"input",16),e.mxI("ngModelChange",function(g){return e.eBV(s),e.DH7(i.start_date,g)||(i.start_date=g),e.Njj(g)}),e.k0s(),e.nrm(19,"owl-date-time",null,0),e.k0s()(),e.j41(21,"div",14)(22,"div",15)(23,"input",17),e.mxI("ngModelChange",function(g){return e.eBV(s),e.DH7(i.end_date,g)||(i.end_date=g),e.Njj(g)}),e.k0s(),e.nrm(24,"owl-date-time",null,1),e.k0s()()(),e.j41(26,"div",18)(27,"div",19)(28,"button",20),e.bIt("click",function(){return e.eBV(s),e.Njj(i.search_data())}),e.EFF(29," Filter "),e.k0s(),e.j41(30,"button",21),e.bIt("click",function(){return e.eBV(s),e.Njj(i.clear_data())}),e.EFF(31," Clear "),e.k0s()()()()()()(),e.j41(32,"div",5)(33,"div",6),e.nrm(34,"ngx-op-data-table2",22),e.k0s()()()()()()}if(2&r){const s=e.sdS(20),p=e.sdS(25);e.R7$(18),e.R50("ngModel",i.start_date),e.Y8G("owlDateTime",s)("owlDateTimeTrigger",s),e.R7$(5),e.R50("ngModel",i.end_date),e.Y8G("owlDateTime",p)("owlDateTimeTrigger",p),e.R7$(11),e.Y8G("data",i.items)("headers",i.headers)("isLoading",i.isLoading)("title",i.title)("description",i.description)}},dependencies:[ie.me,ie.BC,ie.vS,E.SrT,E.zJv,E.YP2,Pg,hd.H$,hd.BK,hd.P_]})}return n})();function Vw(n,a){if(1&n&&(e.j41(0,"option",26),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.Y8G("value",t.provider_key),e.R7$(),e.SpI(" ",t.provider_name,"")}}let zw=(()=>{class n{constructor(t,r,i,s,p,g){this.toastr=t,this.reportService=r,this.dialogService=i,this.fb=s,this.router=p,this.route=g,this.is_loading_1=!1,this.type="",this.status="",this.title="Payout Transaction Report",this.description="",this.isLoading=!1,this.is_assigned_batch=!1,this.is_approve=!1,this.batch_name="",this.batch_description="",this.items=[],this.headers=[{head:"Ipg Transaction Id",key:"ipg_transaction_id",selected:!1,fixed:!1},{head:"Onepay Transaction ID",key:"onepay_transaction_id",selected:!0,fixed:!0},{head:"MID",key:"mid",selected:!1,fixed:!1},{head:"Currency",key:"currency",selected:!0,fixed:!0},{head:"Total Payout",key:"total_payout",selected:!0,fixed:!0},{head:"Net Payout",key:"net_payout",selected:!0,fixed:!0}
1,{head:"Transaction Amount",key:"request_amount",selected:!0,fixed:!0},{head:"Charge",key:"charge",selected:!1,fixed:!1},{head:"Discount",key:"discount",selected:!1,fixed:!1},{head:"Net Amount",key:"net_amount",selected:!1,fixed:!1},{head:"Commission Rate",key:"commission_rate",selected:!1,fixed:!1},{head:"Commission Amount",key:"commission_amount",selected:!1,fixed:!1},{head:"Request Type",key:"request_type",selected:!1,fixed:!1},{head:"Request From",key:"request_from",selected:!1,fixed:!1},{head:"Date and Time",key:"response_time",selected:!0,fixed:!0},{head:"Transaction Status",key:"transaction_status",selected:!0,fixed:!0},{head:"Transaction",key:"transaction",selected:!1,fixed:!1},{head:"Status",key:"status",selected:!0,fixed:!0},{head:"Approve",key:"is_approved",selected:!1,fixed:!1},{head:"Assigned Batch",key:"is_assigned_batch",selected:!1,fixed:!1},{head:"Merchant Phone Number",key:"merchant_phone_no",selected:!1,fixed:!1},{head:"Mechant Email",key:"merchant_email",selected:!1,fixed:!1},{head:"Customer Name",key:"customer_name",selected:!1,fixed:!1}]}ngOnInit(){this.getIpgServiceData()}search_data(){if(this.items=[],!this.start_date||!this.end_date||!this.type)return void this.toastr.showToast("danger","error","Oh Snap! - Please enter search parameters");this.description="Report for "+this.start_date+" to "+this.end_date,this.isLoading=!0;let t={start_date:Zt(this.start_date).format("YYYY-MM-DD H:mm:ss"),end_date:Zt(this.end_date).format("YYYY-MM-DD H:mm:ss"),transaction_type:this.type};console.log(t,"request"),this.reportService.getPayoutReport(t).then(r=>{console.log(r,"re34343434s"),this.isLoading=!1,100==r.status&&r.data.length?(this.items=r.data,console.log(this.items,"ipg settlement")):this.items=[]},r=>{this.toastr.showToast("danger","error","Internal Server Error")})}clear_data(){this.start_date="",this.end_date="",this.type=""}getIpgServiceData(){this.isLoading=!0,this.reportService.getIpgProvider().then(t=>{console.log(t,"rrrrr eeee"),this.isLoading=!1,100==t.status?(this.ipg_provider=t.data.data,console.log(this.ipg_provider,"service ipg")):(this.userMessage=t.message,this.toastr.showToast("danger","error",this.userMessage))},t=>{this.isLoading=!1,console.log(t),this.toastr.showToast("danger","error","Internal Server Error")})}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(Dt.V4),e.rXU(Un.G),e.rXU(E.S0W),e.rXU(ie.ok),e.rXU(qe.Ix),e.rXU(qe.nX))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-payout-report"]],decls:41,vars:13,consts:[["start_date_cal",""],["end_date_cal",""],[1,"row","mb-4"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"page-heading"],[1,"row"],[1,"col-12"],["size","small",2,"height","auto","padding-top","12px"],[1,"headerStyle"],[1,"container"],[1,"mb-4","card","card-bottom"],[1,"card-body"],[1,"table-wrapper"],[1,"table-title"],[1,"col-lg-3","col-md-3","col-sm-12"],[1,"input-group"],["type","text","placeholder","Start Date",1,"form-control",3,"ngModelChange","ngModel","owlDateTime","owlDateTimeTrigger"],["type","text","placeholder","End Date",1,"form-control",3,"ngModelChange","ngModel","owlDateTime","owlDateTimeTrigger"],["placeholder","Select","id","sel1",1,"form-control","drop-style",3,"ngModelChange","ngModel"],["selected","","disabled","","value",""],[3,"value",4,"ngFor","ngForOf"],[1,"row",2,"margin-top","10px","float","right"],[1,"col-lg-12","col-md-12","col-sm-12"],["nbButton","","shape","rectangle","size","medium","type","submit",1,"mr-1","filter-form-btn","primary-black-btn",3,"click"],["nbButton","","shape","rectangle","size","medium","type","button",1,"filter-form-btn","filter-form-clear-btn",3,"click"],[3,"data","headers","isLoading","title","description"],[3,"value"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"h2",4),e.EFF(3," Payout Report"),e.k0s()()(),e.j41(4,"div",5)(5,"div",6)(6,"nb-card",7)(7,"nb-card-header",8)(8,"div"),e.EFF(9," Payout Report "),e.k0s()(),e.j41(10,"div",9)(11,"div",10)(12,"div",11)(13,"div",12)(14,"div",13)(15,"div",5)(16,"div",14)(17,"div",15)(18,"input",16),e.mxI("ngModelChange",function(g){return e.eBV(s),e.DH7(i.start_date,g)||(i.start_date=g),e.Njj(g)}),e.k0s(),e.nrm(19,"owl-date-time",null,0),e.k0s()(),e.j41(21,"div",14)(22,"div",15)(23,"input",17),e.mxI("ngModelChange",function(g){return e.eBV(s),e.DH7(i.end_date,g)||(i.end_date=g),e.Njj(g)}),e.k0s(),e.nrm(24,"owl-date-time",null,1),e.k0s()(),e.j41(26,"div",14)(27,"div",15)(28,"select",18),e.mxI("ngModelChange",function(g){return e.eBV(s),e.DH7(i.type,g)||(i.type=g),e.Njj(g)}),e.j41(29,"option",19),e.EFF(30,"Transaction Type"),e.k0s(),e.DNE(31,Vw,2,2,"option",20),e.k0s()()()(),e.j41(32,"div",21)(33,"div",22)(34,"button",23),e.bIt("click",function(){return e.eBV(s),e.Njj(i.search_data())}),e.EFF(35," Filter "),e.k0s(),e.j41(36,"button",24),e.bIt("click",function(){return e.eBV(s),e.Njj(i.clear_data())}),e.EFF(37," Clear "),e.k0s()()()()()()(),e.j41(38,"div",5)(39,"div",6),e.nrm(40,"ngx-op-data-table2",25),e.k0s()()()()()()}if(2&r){const s=e.sdS(20),p=e.sdS(25);e.R7$(18),e.R50("ngModel",i.start_date),e.Y8G("owlDateTime",s)("owlDateTimeTrigger",s),e.R7$(5),e.R50("ngModel",i.end_date),e.Y8G("owlDateTime",p)("owlDateTimeTrigger",p),e.R7$(5),e.R50("ngModel",i.type),e.R7$(3),e.Y8G("ngForOf",i.ipg_provider),e.R7$(9),e.Y8G("data",i.items)("headers",i.headers)("isLoading",i.isLoading)("title",i.title)("description",i.description)}},dependencies:[Fe.Sq,ie.xH,ie.y7,ie.me,ie.wz,ie.BC,ie.vS,E.SrT,E.zJv,E.YP2,Pg,hd.H$,hd.BK,hd.P_],styles:[".label-name[_ng
1content-%COMP%]{font-size:14px;line-height:15px;margin-top:12px;font-family:Poppins!important;color:#a7a7a7!important}[_ngcontent-%COMP%]::placeholder{font-family:poppins!important;font-size:14px!important;color:#a7a7a7!important}.button-common[_ngcontent-%COMP%]{background:#b3b3b3;border-radius:6px;border:none;float:right;color:#fff;font-size:.75rem;padding:8px 30px;margin-top:16px}.card-header[_ngcontent-%COMP%]{background-color:#fff!important;border-bottom:none!important;font-weight:800!important}input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{background:#fff!important;font-family:Poppins!important;color:#a7a7a7!important;font-weight:400!important}.drop-style[_ngcontent-%COMP%]{font-family:Poppins!important;color:#a7a7a7!important;font-size:14px}.button-common-clear[_ngcontent-%COMP%]{border:none;float:right;color:#818181;font-size:.75rem;padding:8px 30px;margin-top:16px;background-color:#fff}.button-common-clear[_ngcontent-%COMP%]:focus{outline:none}"]})}return n})(),Uw=(()=>{class n{constructor(t,r,i,s,p,g){this.toastr=t,this.reportService=r,this.dialogService=i,this.fb=s,this.router=p,this.route=g,this.is_loading_1=!1,this.batch_id="",this.title="Payout Transaction Report",this.description="",this.isLoading=!1,this.is_assigned_batch=!1,this.is_approve=!1,this.batch_name="",this.batch_description="",this.items=[],this.items2=[],this.headers=[{head:"Payment Method",key:"batch_type",selected:!0,fixed:!0},{head:"Bank Reference NO",key:"bank_ref_no",selected:!0,fixed:!0},{head:"Currency",key:"currency",selected:!0,fixed:!0},{head:"Net Payout",key:"net_payout_lkr",selected:!0,fixed:!0},{head:"Total Payout",key:"total_payout",selected:!1,fixed:!1},{head:"Transaction Amount",key:"request_amount",selected:!0,fixed:!0},{head:"Request Amount",key:"request_amount",selected:!1,fixed:!1},{head:"Commission Amount",key:"commission_total",selected:!1,fixed:!1},{head:"Exchange Rate",key:"exchange_rate",selected:!1,fixed:!1},{head:"Net Total",key:"net_total",selected:!1,fixed:!1},{head:"Settlement Fee",key:"settlement_fee_lkr",selected:!1,fixed:!1},{head:"Total Charge",key:"total_charge",selected:!1,fixed:!1},{head:"Mechant Email",key:"merchant_email",selected:!1,fixed:!1}],this.headers2=[{head:"Payment Method333",key:"batch_type",selected:!0,fixed:!0},{head:"App Name",key:"app_name",selected:!0,fixed:!0},{head:"Batch Type",key:"batch_type",selected:!0,fixed:!0},{head:"Currency",key:"currency",selected:!0,fixed:!0},{head:"Merchant Email",key:"merchant_email",selected:!0,fixed:!0},{head:"onepay_transaction_id",key:"onepay_transaction_id",selected:!0,fixed:!0},{head:"Commission Amount",key:"commission_amount",selected:!1,fixed:!1},{head:"Commission Rate",key:"commission_rate",selected:!1,fixed:!1},{head:"Date & Time",key:"datetime",selected:!1,fixed:!1},{head:"Net Total",key:"net_total",selected:!1,fixed:!1},{head:"Request Amount",key:"request_amount",selected:!1,fixed:!1},{head:"Settlement Fee",key:"settlement_fee",selected:!1,fixed:!1},{head:"Total Charge",key:"total_charge",selected:!1,fixed:!1},{head:"Total Discount",key:"total_discount",selected:!1,fixed:!1}]}ngOnInit(){}search_data(){this.items=[],this.items2=[],this.batch_id?(this.isLoading=!0,this.reportService.getPayoutReportTran(this.batch_id).then(t=>{console.log(t,"re34343434s"),this.isLoading=!1,100==t.status&&t.data.length?(this.items=t.data,this.items2=t.tran_data,console.log(this.items,"ipg settlement")):(this.items=[],this.items2=[])},t=>{this.toastr.showToast("danger","error","Internal Server Error")})):this.toastr.showToast("danger","error","Oh Snap! - Please enter search parameters")}clear_data(){this.batch_id=""}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(Dt.V4),e.rXU(Un.G),e.rXU(E.S0W),e.rXU(ie.ok),e.rXU(qe.Ix),e.rXU(qe.nX))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-payout-tran-list"]],decls:32,vars:11,consts:[[1,"row","mb-4"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"page-heading"],[1,"row"],[1,"col-12"],["size","small",2,"height","auto","padding-top","12px"],[1,"headerStyle"],[1,"container"],[1,"mb-4","card","card-bottom"],[1,"card-body"],[1,"table-wrapper"],[1,"table-title"],[1,"col-lg-3","col-md-3","col-sm-12"],[1,"input-group"],["type","text","fullWidth","","placeholder","Batch ID",1,"form-control",3,"ngModelChange","ngModel"],[1,"row",2,"margin-top","10px","float","right"],[1,"col-lg-12","col-md-12","col-sm-12"],["nbButton","","shape","rectangle","size","medium","type","submit",1,"mr-1","filter-form-btn","primary-black-btn",3,"click"],["nbButton","","shape","rectangle","size","medium","type","button",1,"filter-form-btn","filter-form-clear-btn",3,"click"],[3,"data","headers","isLoading","title","description"]],template:function(r,i){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"h2",2),e.EFF(3," Payout Report"),e.k0s()()(),e.j41(4,"div",3)(5,"div",4)(6,"nb-card",5)(7,"nb-card-header",6)(8,"div"),e.EFF(9," Payout Report "),e.k0s()(),e.j41(10,"div",7)(11,"div",8)(12,"div",9)(13,"div",10)(14,"div",11)(15,"div",3)(16,"div",12)(17,"div",13)(18,"input",14),e.mxI("ngModelChange",function(p){return e.DH7(i.batch_id,p)||(i.batch_id=p),p}),e.k0s()()()(),e.j41(19,"div",15)(20,"div",16)(21,"button",17),e.bIt("click",function(){return i.search_data()}),e.EFF(22," Filter "),e.k0s(),e.j41(23,"button",18),e.bIt("click",function(){return i.clear_data()}),e.EFF(24," Clear "),e.k0s()()()()()()(),e.j41(25,"div",3)(26,"div",4),e.nrm(27,"ngx-op-data-table2",19),e.k0s()(),e.j41(28,"div",3)(29,"div",4)(30,"ngx-op-data-table2",19),e.nrm(31,"tr"),e.k0s()()()()()()()),2&r&&(e.R7$(18),e.R50("ngModel",i.batch_id),e.R7$(9),e.Y8G("data",i.items)("headers",i.headers)("isLoading",i.isLoading)("title",i.title)("description",i.description),e.R7$(3),e.Y8G("data",i.items2)("headers",i.headers2)("isLoading",i.isLoading)("title",i.title)("description",i.description))},dependencies:[ie.me,ie.BC,ie.vS,E.SrT,E.zJv,E.YP2,Pg],styles:[".label-name[_ng
1content-%COMP%]{font-size:14px;line-height:15px;margin-top:12px;font-family:Poppins!important;color:#a7a7a7!important}[_ngcontent-%COMP%]::placeholder{font-family:poppins!important;font-size:14px!important;color:#a7a7a7!important}.button-common[_ngcontent-%COMP%]{background:#b3b3b3;border-radius:6px;border:none;float:right;color:#fff;font-size:.75rem;padding:8px 30px;margin-top:16px}.card-header[_ngcontent-%COMP%]{background-color:#fff!important;border-bottom:none!important;font-weight:800!important}input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{background:#fff!important;font-family:Poppins!important;color:#a7a7a7!important;font-weight:400!important}.drop-style[_ngcontent-%COMP%]{font-family:Poppins!important;color:#a7a7a7!important;font-size:14px}.button-common-clear[_ngcontent-%COMP%]{border:none;float:right;color:#818181;font-size:.75rem;padding:8px 30px;margin-top:16px;background-color:#fff}.button-common-clear[_ngcontent-%COMP%]:focus{outline:none}"]})}return n})();var gx=bn(69546);let ov=(()=>{class n{constructor(t){this.commonService=t}getInvoiceData(t,r,i,s,p){let g="page="+t+"&limit="+r;return i&&(g+="&due_date="+i),s&&(g+="&invoice_date="+s),p&&(g+="&status="+p),this.commonService.getDataInvoice("invoice/?"+g)}getMerchantData(){return this.commonService.getDataInvoice("invoice/merchant-data/")}getAllTemplate(){return this.commonService.getDataInvoice("invoice/template/")}saveInvoice(t){return this.commonService.postDataInvoice("invoice/",t)}deleteInvoice(t){return this.commonService.deleteData("invoice/?invoice_id="+t)}SearchInvoice(t,r,i){return this.commonService.getDataInvoice(t?"invoice/search/?query="+t+"&page=1&limit="+i:"invoice/?page="+r+"&limit="+i)}getUpdateInvoice(t){return this.commonService.getDataInvoice("invoice/?invoice_id="+t)}updateInvoice(t){return this.commonService.putDataInvoice("invoice/",t)}static#e=this.\u0275fac=function(r){return new(r||n)(e.KVO(gx.h))};static#t=this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var _x=bn(79530);const Yw=["dialogFilter"],Ww=()=>["/pages/create-invoice"],$w=()=>({backdrop:"static"}),qw=(n,a,t)=>({itemsPerPage:n,currentPage:a,totalItems:t}),Xw=n=>["/pages/update-invoice",n],Hw=n=>["/pages/view-invoice",n];function Kw(n,a){1&n&&(e.j41(0,"p",69),e.EFF(1,"Success"),e.k0s())}function Jw(n,a){1&n&&(e.j41(0,"p",70),e.EFF(1,"Pending"),e.k0s())}function Zw(n,a){if(1&n){const t=e.RV6();e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.EFF(4),e.k0s(),e.j41(5,"td"),e.EFF(6),e.k0s(),e.j41(7,"td"),e.EFF(8),e.k0s(),e.j41(9,"td"),e.EFF(10),e.k0s(),e.j41(11,"td"),e.EFF(12),e.k0s(),e.j41(13,"td"),e.EFF(14),e.k0s(),e.j41(15,"td"),e.DNE(16,Kw,2,0,"p",56)(17,Jw,2,0,"p",57),e.k0s(),e.j41(18,"td",58)(19,"div",59),e.nrm(20,"img",60),e.j41(21,"div",61)(22,"button",62)(23,"span"),e.nrm(24,"img",63),e.k0s(),e.j41(25,"span",64),e.EFF(26,"Edit invoice "),e.k0s()(),e.j41(27,"button",65),e.bIt("click",function(){const i=e.eBV(t).$implicit,s=e.XpG(2),p=e.sdS(103);return e.Njj(s.openDelelete(p,i.id))}),e.j41(28,"span"),e.nrm(29,"img",66),e.k0s(),e.j41(30,"span",64),e.EFF(31,"Delete invoice"),e.k0s()(),e.j41(32,"button",67)(33,"span"),e.nrm(34,"nb-icon",68),e.k0s(),e.j41(35,"span",64),e.EFF(36,"View invoice"),e.k0s()()()()()()}if(2&n){const t=a.$implicit,r=e.XpG(2);e.R7$(2),e.JRh((null==t?null:t.invoice_number)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.to_email)||"Not Available"),e.R7$(2),e.SpI("",null!=t&&t.invoice_date?r.formatDate(t.invoice_date):"Not Available"," "),e.R7$(2),e.SpI("",null!=t&&t.due_date?r.formatDate(t.due_date):"Not Available"," "),e.R7$(2),e.JRh(t.payment_method_name?t.payment_method_name:"Not Available"),e.R7$(2),e.JRh((null==t?null:t.to_phone)||"Not Available"),e.R7$(2),e.Lme("",(null==t?null:t.net_amount)||"Not Available"," ",(null==t?null:t.currency)||"Not Available",""),e.R7$(2),e.Y8G("ngIf","success"==(null==t?null:t.status)),e.R7$(),e.Y8G("ngIf","pending"==(null==t?null:t.status)),e.R7$(5),e.Y8G("disabled",t.transaction_status)("routerLink",e.eq3(14,Xw,t.id)),e.R7$(5),e.Y8G("disabled",t.transaction_status),e.R7$(5),e.Y8G("routerLink",e.eq3(16,Hw,t.id))}}function Qw(n,a){if(1&n&&(e.j41(0,"tbody"),e.DNE(1,Zw,37,18,"tr",55),e.nI1(2,"paginate"),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",e.i5U(2,1,t.allInvoice,e.sMw(4,qw,t.page_size,t.page,t.count)))}}function eF(n,a){1&n&&(e.j41(0,"div",71)(1,"div",72)(2,"span",73),e.EFF(3,"Loading..."),e.k0s()()())}function tF(n,a){1&n&&(e.j41(0,"div",74)(1,"h6"),e.EFF(2,"No data available!"),e.k0s()())}function nF(n,a){if(1&n){const t=e.RV6();e.j41(0,"pagination-controls",75),e.bIt("pageChange",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.pageChanged(i))})("pageBoundsCorrection",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.pageChanged(i))}),e.k0s()}}function iF(n,a){if(1&n){const t=e.RV6();e.j41(0,"form",76),e.bIt("ngSubmit",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.deleteInvoiceData())}),e.j41(1,"nb-card",77)(2,"nb-card-header",78),e.EFF(3,"Delete invoice"),e.k0s(),e.j41(4,"nb-card-body",79)(5,"div",80)(6,"p")(7,"strong",78),e.EFF(8,"Are you sure you want to delete "),e.nrm(9,"span",81),e.EFF(10," invoice?"),e.k0s()(),e.j41(11,"p"),e.EFF(12,"All information associated to this invoice will be permanently deleted. "),e.j41(13,"span",82),e.EFF(14,"This operation can not be undone."),e.k0s()()()(),e.j41(15,"nb-card-footer")(16,"button",83),e.EFF(17,"Delete"),e.k0s(),e.j41(18,"button",84),e.bIt("click",function(){const i=e.eBV(t).dialogRef;return e.Njj(i.close())}),e.EFF(19,"Close"),e.k0s()()()()}if(2&n){const t=e.XpG();e.Y8G("formGroup",t.deleteInvoiceForm),e.R7$(16),e.Y8G("nbSpinner",t.is_loading)("disabled",t.is_loading)}}let rF=(()=>{class n{constructor(t,r,i,s,p){this.fb=t,this.dialogService=r,this.toastr=i,this.router=s,this.invoiceService=p,this.page=1,this.page_size=10,this.count=0,this.is_loading_1=!1,this.filter_form=null,this.allInvoice=[],this.filter_form=this.fb.group({due_date:[""],invoice_date:[""],status:[""]}),this.deleteInvoiceForm=this.fb.group({invoice_id:[""]}),this.serchanForm=this.fb.group({query:[""]})}get due_date(){return this.filter_form.get("due_date")}get invoice_date(){return this.filter_form.get("invoice_date")}get status(){return this.filter_form.get("status")}ngOnInit(){this.getInvoiceAll()}getInvoiceAll(){this.is_loading_1=!0,this.invoiceService.getInvoiceData(this.page,this.page_size,this.due_date.value?Zt(this.due_date.value).format("YYYY-MM-DD "):"",this.invoice_date.value?Zt(this.invoice_date.value).format("YYYY-MM-DD"):"",this.status.value).then(t=>{console.log("123fssdfsdf",t),this.is_loading_1=!1,100===t?.status?(this.allInvoice=t?.data,console.log(t?.data,"invoice dattt"),this.count=t?.count,this.dialogFilter.hide()):this.toastr.showToast("danger","Error
1!",t?.message||"Gettings data failed.")},t=>{this.is_loading_1=!1,console.log("Internal Server Error",t),this.toastr.showToast("danger","Error!","Internal Server Error.")})}pageChanged(t){this.page=t,this.getInvoiceAll()}openFilter(){this.dialogFilter.show()}closeCreation(){this.filter_form.reset(),this.dialogFilter.hide(),this.getInvoiceAll()}close(){this.dialogFilter.hide()}formatDate(t){const r=new Date(t),i=r.getFullYear(),p=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][r.getMonth()];return`${String(r.getDate()).padStart(2,"0")} ${p} ${i}`}openDelelete(t,r){this.deleteInvoiceForm.setValue({invoice_id:r}),this.delete_model=this.dialogService.open(t,{closeOnBackdropClick:!1})}deleteInvoiceData(){this.is_loading_1=!0,this.invoiceService.deleteInvoice(this.deleteInvoiceForm.value.invoice_id).then(t=>{this.is_loading_1=!1,100===t?.status?(this.getInvoiceAll(),this.toastr.showToast("success","Cheers!","Invoice deleted successfully!"),this.delete_model.close()):this.toastr.showToast("danger","Error!",t?.message||"Gettings ipg transaction history failed.")},t=>{this.is_loading_1=!1,this.toastr.showToast("danger","Oh Snap!","Internal Server Error!")})}searchInvoiceData(){console.log("tttttttt"),this.is_loading_1=!0,this.invoiceService.SearchInvoice(this.serchanForm.get("query").value,this.page,this.page_size).then(t=>{100==t.status?(this.is_loading_1=!1,console.log(t,"44444"),t.data?(this.allInvoice=t?.data,this.count=t?.count):this.toastr.showToast("danger","Error!","Internal Server Error.")):(this.is_loading_1=!1,this.toastr.showToast("danger","Error!","Internal Server Error."))})}updateInvoiceForm(t){const r={id:t};console.log(t,"22223id"),this.router.navigate(["/pages/update-invoice"],{state:{data:r}})}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(ie.ok),e.rXU(E.S0W),e.rXU(Dt.V4),e.rXU(qe.Ix),e.rXU(ov))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-manage-invoice"]],viewQuery:function(r,i){if(1&r&&e.GBs(Yw,5),2&r){let s;e.mGM(s=e.lsd())&&(i.dialogFilter=s.first)}},decls:104,vars:12,consts:[["dialogFilter","bs-modal"],["startDateEl",""],["endDateEl",""],["dialogDeleteInvoice",""],[1,"body-style","ipg-transaction-root"],[1,"container"],[2,"text-decoration","none","color","#718096","font-size","13px","font-weight","500"],[1,"row","mb-4"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"page-heading"],["nbButton","","status","success","size","medium",1,"primary-green-btn",3,"routerLink"],[2,"text-transform","capitalize!important","margin-left","4px"],[2,"text-transform","lowercase!important","margin-left","4px"],[1,"col"],[3,"formGroup"],[1,"mb-1","mt-4"],[1,"row"],[1,"col-6"],[1,"overridee"],[1,"icon-main"],["onClick","{handleDropdownToggle}",1,"input-group-append","icon-sub-sign"],["aria-hidden","true",1,"fa","fa-search"],["type","text","placeholder","Search invoices by id, email","name","query","formControlName","query",1,"form-control","drop-style",2,"padding-left","35px",3,"keyup"],[1,"filter_icon",3,"click"],["src","../../../../../../assets/images/filter.png",1,"filter_icon_figma"],["className","right-head-font"],[1,"col","d-flex","flex-column","px-0","list-like-table"],[1,"table-responsive"],[1,"table","table-sm","align-top"],[4,"ngIf"],["class","d-flex justify-content-center align-items-center","style","height: 20rem;",4,"ngIf"],["class","d-flex justify-content-center align-items-center table-no-data-div","style","height: 20rem;",4,"ngIf"],["responsive","true","class","mx-auto mt-4",3,"pageChange","pageBoundsCorrection",4,"ngIf"],["bsModal","","tabindex","-1","role","dialog","aria-labelledby","myModalLabel","aria-hidden","true",1,"modal2","fade",3,"config"],["role","document",1,"modal-md","ipg-filter"],[1,"modal-content","ipg-filter-content"],[1,"modal-header-ipg"],[1,"sub-heading"],[1,"btn","p-0",2,"color","rgba(0, 0, 0, 0.5)",3,"click"],["size","2px",1,"fas","fa-times"],[1,"mb-5","filter-form",3,"ngSubmit","formGroup"],[1,"modal-body","modal-body-filter",2,"padding-inline","30px"],[1,"col-12","d-flex","flex-column","justify-content-start","align-items-center","mb-3"],[1,"col","px-0","mb-1"],["fullWidth","","placeholder","Select Status","formControlName","status","name","status",1,"col","select_filter"],["disabled","","selected","","value",""],["value","SUCCESS"],["value","PENDING"],["value","FAILED"],["for","transaction-filter-form-start-time",1,"col","px-0","mb-1"],["
1id","due_date","formControlName","due_date","placeholder","Select Date and Time","type","date","name","due_date",1,"form-control",3,"min"],["id","invoice_date","formControlName","invoice_date","placeholder","Select Date and Time","type","date","name","invoice_date",1,"form-control",3,"min"],[1,"modal-footer-ipg"],["shape","rectangle","size","medium","type","button",1,"filter-form-btn","filter-form-clear-btn",3,"click"],["shape","rectangle","size","medium","type","submit",1,"mr-1","filter-form-btn","primary-black-btn"],[4,"ngFor","ngForOf"],["style","color: #00d690;",4,"ngIf"],["style","color: #3366ff;",4,"ngIf"],[1,"d-flex","justify-content-around"],[1,"btn-group"],["data-toggle","dropdown","aria-expanded","false","src","../../../../assets/images/more.png",1,"more_i"],[1,"dropdown-menu","dropdown-menu-right"],["type","button",1,"dropdown-item",3,"disabled","routerLink"],["src","../../../../assets/images/pencil2.png",1,"drop_icon"],[2,"font-size","14px","font-weight","500","color","#344054","margin-left","10px"],["type","button",1,"dropdown-item",3,"click","disabled"],["src","../../../../assets/images/delete_i.png",1,"drop_icon"],["type","button",1,"dropdown-item",3,"routerLink"],["icon","eye-outline"],[2,"color","#00d690"],[2,"color","#3366ff"],[1,"d-flex","justify-content-center","align-items-center",2,"height","20rem"],["role","status",1,"spinner-border","text-primary"],[1,"visually-hidden"],[1,"d-flex","justify-content-center","align-items-center","table-no-data-div",2,"height","20rem"],["responsive","true",1,"mx-auto","mt-4",3,"pageChange","pageBoundsCorrection"],[1,"step-container",3,"ngSubmit","formGroup"],[2,"width","30vw"],[2,"font-family","'Poppins'"],[1,"dialog-border",2,"font-family","'Poppins'"],[1,"modal-body"],[1,"text-primary"],[1,"text-danger",2,"font-family","'Poppins'"],["type","submit","status","danger","size","small","nbSpinnerStatus","danger","nbSpinnerSize","tiny","nbButton","",1,"col-md-2",2,"float","right",3,"nbSpinner","disabled"],["type","button","status","info","size","small","nbButton","",1,"col-md-2",2,"float","right","background-color","white","border-color","white","color","rgb(112, 108, 108)",3,"click"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",4)(1,"div",5)(2,"p",6),e.EFF(3,"Invoice"),e.k0s(),e.j41(4,"div",7)(5,"div",8)(6,"h2",9),e.EFF(7,"Manage invoices"),e.k0s(),e.j41(8,"button",10)(9,"span",11),e.EFF(10,"Create"),e.k0s(),e.j41(11,"span",12),e.EFF(12," an invoice"),e.k0s()()()(),e.j41(13,"div",7)(14,"div",13)(15,"nb-card")(16,"nb-card-body")(17,"form",14)(18,"div",15)(19,"div",16)(20,"div",17)(21,"div",18)(22,"span",19)(23,"span",20),e.nrm(24,"i",21),e.k0s()(),e.j41(25,"input",22),e.bIt("keyup",function(){return e.eBV(s),e.Njj(i.searchInvoiceData())}),e.k0s()()(),e.j41(26,"div",17)(27,"div",23),e.bIt("click",function(){return e.eBV(s),e.Njj(i.openFilter())}),e.j41(28,"span"),e.nrm(29,"img",24),e.k0s(),e.j41(30,"span",25),e.EFF(31,"Filter"),e.k0s()()()()()(),e.j41(32,"div",26)(33,"div",27)(34,"table",28)(35,"thead")(36,"tr")(37,"th"),e.EFF(38,"INVOICE ID"),e.k0s(),e.j41(39,"th"),e.EFF(40,"EMAIL"),e.k0s(),e.j41(41,"th"),e.EFF(42,"DATE"),e.k0s(),e.j41(43,"th"),e.EFF(44,"DUE DATE"),e.k0s(),e.j41(45,"th"),e.EFF(46,"METHOD"),e.k0s(),e.j41(47,"th"),e.EFF(48,"CUSTOMER CONTACT NUMBER"),e.k0s(),e.j41(49,"th"),e.EFF(50,"AMOUNT"),e.k0s(),e.j41(51,"th"),e.EFF(52,"STATUS"),e.k0s(),e.j41(53,"th"),e.EFF(54,"ACTION"),e.k0s()()(),e.DNE(55,Qw,3,8,"tbody",29),e.k0s(),e.DNE(56,eF,4,0,"div",30)(57,tF,3,0,"div",31),e.k0s(),e.DNE(58,nF,1,0,"pagination-controls",32),e.k0s()()()()()()(),e.j41(59,"div",33,0)(61,"div",34)(62,"div",35)(63,"div",36)(64,"div",8)(65,"h4",37),e.EFF(66,"Filter invoices"),e.k0s(),e.j41(67,"button",38),e.bIt("click",function(){return e.eBV(s),e.Njj(i.close())}),e.j41(68,"a"),e.nrm(69,"i",39),e.k0s()()()(),e.j41(70,"form",40),e.bIt("ngSubmit",function(){return e.eBV(s),e.Njj(i.pageChanged(1))}),e.j41(71,"div",41)(72,"div",16)(73,"div",42)(74,"label",43),e.EFF(75,"Status"),e.k0s(),e.j41(76,"select",44)(77,"option",45),e.EFF(78,"Select"),e.k0s(),e.j41(79,"option",46),e.EFF(80,"Success"),e.k0s(),e.j41(81,"option",47),e.EFF(82,"Pending"),e.k0s(),e.j41(83,"option",48),e.EFF(84,"Failed"),e.k0s()()(),e.j41(85,"div",42)(86,"label",49),e.EFF(87,"Due Date"),e.k0s(),e.nrm(88,"input",50)(89,"owl-date-time",null,1),e.k0s(),e.j41(91,"div",42)(92,"label",49),e.EFF(93,"Invoice Date"),e.k0s(),e.nrm(94,"input",51)(95,"owl-date-time",null,2),e.k0s()()(),e.j41(97,"div",52)(98,"button",53),e.bIt("click",function(){return e.eBV(s),e.Njj(i.closeCreation())}
1),e.EFF(99," Clear "),e.k0s(),e.j41(100,"button",54),e.EFF(101," Filter "),e.k0s()()()()()(),e.DNE(102,iF,20,3,"ng-template",null,3,e.C5r)}2&r&&(e.R7$(8),e.Y8G("routerLink",e.lJ4(10,Ww)),e.R7$(9),e.Y8G("formGroup",i.serchanForm),e.R7$(38),e.Y8G("ngIf",!i.is_loading_1&&i.count>0),e.R7$(),e.Y8G("ngIf",i.is_loading_1),e.R7$(),e.Y8G("ngIf",!i.is_loading_1&&0===i.count),e.R7$(),e.Y8G("ngIf",i.count>0),e.R7$(),e.Y8G("config",e.lJ4(11,$w)),e.R7$(11),e.Y8G("formGroup",i.filter_form),e.R7$(18),e.Y8G("min",i.currentDate),e.R7$(6),e.Y8G("min",i.currentDate))},dependencies:[Fe.Sq,Fe.bT,xi.ej,ie.qT,ie.xH,ie.y7,ie.me,ie.wz,ie.BC,ie.cb,ie.j4,ie.JD,qe.Wk,E.SrT,E.KH5,E.VDm,E.zJv,E.tHu,E.YP2,E.zwc,hd.P_,_x.hZ,xi.kf],styles:[".ipg-transaction-root[_ngcontent-%COMP%] nb-badge[_ngcontent-%COMP%]{position:absolute;top:39%;left:15px;width:-moz-fit-content;width:fit-content}.transaction-view-modal[_ngcontent-%COMP%]{width:40rem;height:85vh}.transaction-view-modal[_ngcontent-%COMP%] nb-badge[_ngcontent-%COMP%]{position:absolute;left:15px;top:50%;transform:translateY(0);width:-moz-fit-content;width:fit-content}.menu_itam[_ngcontent-%COMP%]{width:100%;height:124px;padding:32px 1px;border-radius:8px;border:1px solid #E4E4E4;background:#f4f4f4}.count-user[_ngcontent-%COMP%]{font-weight:700;font-size:32px;color:#1a202c;text-align:center}.count-user_O[_ngcontent-%COMP%]{font-weight:700;font-size:32px;color:#c6c6c6;text-align:center}.count-user-name[_ngcontent-%COMP%]{font-weight:500;font-size:16px;color:#4d4d4d;text-align:center}.dashbord-tab[_ngcontent-%COMP%]{padding-right:6px!important;padding-left:6px!important}.ipg-filter[_ngcontent-%COMP%]{width:500px;float:right!important}.ipg-filter-content[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:none;height:100%;border-radius:0;outline:0}.modal-header-ipg[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;padding:1rem;border-top-left-radius:.3rem;border-top-right-radius:.3rem}.modal-footer-ipg[_ngcontent-%COMP%]{position:fixed;bottom:0;text-align:right;font-size:14px;color:#8b8b8b;font-weight:400;margin-top:14px;background:#fff;width:500px;margin-bottom:12px;padding-right:26px}.modal-body-filter[_ngcontent-%COMP%]{height:100vh}.modal2[_ngcontent-%COMP%]{position:fixed;top:0;left:0;z-index:1050;display:none;width:100%;overflow:hidden;outline:0}.select_filter[_ngcontent-%COMP%]{background-color:#f7f9fc;border-color:#e4e9f2;color:#222b45;line-height:1.5rem;padding:.4375rem 1rem;font-size:15px!important;font-weight:400!important;border-radius:.25rem}.select_filte[_ngcontent-%COMP%]:hover{border:none!important}.filter-form-clear-btn[_ngcontent-%COMP%]{width:80px!important;height:40px!important;border-radius:8px!important;border:1px solid #D0D5DD!important;font-weight:600!important;font-size:14px!important;color:#344054!important;margin-right:8px}.primary-black-btn[_ngcontent-%COMP%]{width:76px!important;height:40px!important;border-radius:8px!important;border:1px solid #D0D5DD!important;font-weight:600!important;font-size:14px!important;color:#fff!important}.filter-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#344054;font-size:14px;font-weight:500}.filter_icon[_ngcontent-%COMP%]{float:right!important;cursor:pointer;margin-top:17px}.filter_icon_figma[_ngcontent-%COMP%]{height:11px;width:auto;margin-right:6px}.tool_icon[_ngcontent-%COMP%]{position:absolute;top:4px;right:14px;cursor:pointer}.primary-green-btn[_ngcontent-%COMP%]{background:#000!important;text-transform:capitalize!important}.search[_ngcontent-%COMP%]{margin-left:12px;margin-top:11px}.more_i[_ngcontent-%COMP%]{width:auto;height:15px;cursor:pointer}.btn.dropdown-toggle[_ngcontent-%COMP%]{display:none}.more_i[_ngcontent-%COMP%]{position:relative;top:3px}.drop_icon[_ngcontent-%COMP%]{width:13px;height:13px}.overridee[_ngcontent-%COMP%]{align-items:baseline!important}.icon-main[_ngcontent-%COMP%]{position:absolute;z-index:1;margin-top:10px;margin-left:13px}.icon-sub-sign[_ngcontent-%COMP%]{display:inline;color:#667085;font-weight:100}.sign-input[_ngcontent-%COMP%]{padding-left:52px!important;width:100%}"]})}return n})();var y1=bn(63993),k4=bn(16714);const aF=["imageInput"],oo=n=>({"form-control-danger":n});function oF(n,a){if(1&n&&(e.j41(0,"option",36),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.Y8G("value",t.id),e.R7$(),e.JRh(t.name)}}function sF(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Template is required!"),e.k0s())}function lF(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,sF,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.templateform.get("invoice_template_id").errors.required)}}function cF(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",6)(1,"div",24)(2,"form",23)(3,"div",25)(4,"div",26)(5,"label",27),e.EFF(6,"Select template "),e.j41(7,"span",28),e.EFF(8,"*"),e.k0s()(),e.j41(9,"select",29)(10,"option",30),e.EFF(11,"Select template"),e.k0s(),e.DNE(12,oF,2,2,"option",31),e.k0s(),e.DNE(13,lF,2,1,"div",32),e.k0s()(),e.j41(14,"div",33)(15,"a",7)(16,"button",34),e.EFF(17," Cancel "),e.k0s()(),e.j41(18,"button",35),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.stepperChange("invoice"))}),e.EFF(19," Next "),e.k0s()()()()()}if(2&n){const t=e.XpG();e.R7$(2),e.Y8G("formGroup",t.templateform),e.R7$(7),e.Y8G("ngClass",e.eq3(5,oo,(t.templateform.get("invoice_template_id").dirty||t.templateform.get("invoice_template_id").touched)&&t.templateform.get("invoice_template_id").errors)),e.R7$(3),e.Y8G("ngForOf",t.templates),e.R7$(),e.Y8G("ngIf",t.templateform.get("invoice_template_id").invalid&&(t.templateform.get("invoice_template_id").dirty||t.templateform.get("invoice_template_id").touched)),e.R7$(5),e.Y8G("disabled",!t.templateform.valid)}}function dF(n,a){1&n&&e.nrm(0,"img",115)}function uF(n,a){if(1&n&&e.nrm(0,"img",116),2&n){const t=e.XpG(2);e.FS9("src",t.image,e.B4B)}}function fF(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Email is required!"),e.k0s())}function pF(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,fF,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.invoiceform.get("from_email").errors.required)}}function hF(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Contact number is required!"),e.k0s())}function mF(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,hF,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.invoiceform.get("from_phone").errors.required)}}function gF(n,a){if(1&n){const t=e.RV6();e.j41(0,"span",117),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2),s=e.sdS(32);return e.Njj(i.openUpdateFromAddress(s,i.formData))}),e.EFF(1,"Edit "),e.j41(2,"span"),e.nrm(3,"img",118),e.k0s()()}}function _F(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI("",t.formData.from_address_line_2?t.formData.from_address_line_2:""," ,")}}function vF(n,a){if(1&n&&(e.j41(0,"span",120),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI("",t.formData.from_city?t.formData.from_city:""," ,")}}function xF(n,a){if(1&n&&(e.j41(0,"span",120),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI("",t.formData.from_province?t.formData.from_province:""," .")}}function bF(n,a){if(1&n&&(e.j41(0,"span",120),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.JRh(t.formData.from_postal_code?t.formData.from_postal_code:"")}}function yF(n,a){if(1&n&&(e.j41(0,"div",119)(1,"span",120),e.EFF(2),e.k0s(),e.j41(3,"span",120),e.EFF(4),e.DNE(
15,_F,2,1,"span",32),e.k0s(),e.DNE(6,vF,2,1,"span",121)(7,xF,2,1,"span",121)(8,bF,2,1,"span",121),e.k0s()),2&n){const t=e.XpG(2);e.R7$(2),e.SpI("",t.formData.from_name?t.formData.from_name:""," ,"),e.R7$(2),e.SpI("",t.formData.from_address_line_1?t.formData.from_address_line_1:""," ,"),e.R7$(),e.Y8G("ngIf",t.formData.from_address_line_2),e.R7$(),e.Y8G("ngIf",t.formData.from_city),e.R7$(),e.Y8G("ngIf",t.formData.from_province),e.R7$(),e.Y8G("ngIf",t.formData.from_postal_code)}}function CF(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Email is required!"),e.k0s())}function kF(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,CF,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.invoiceform.get("to_email").errors.required)}}function wF(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Contact number is required!"),e.k0s())}function FF(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,wF,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.invoiceform.get("to_phone").errors.required)}}function AF(n,a){if(1&n){const t=e.RV6();e.j41(0,"span",117),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2),s=e.sdS(36);return e.Njj(i.openUpdateToAddress(s,i.addressToData))}),e.EFF(1,"Edit "),e.j41(2,"span"),e.nrm(3,"img",118),e.k0s()()}}function TF(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI("",t.addressToData.to_address_line_2?t.addressToData.to_address_line_2:""," ,")}}function SF(n,a){if(1&n&&(e.j41(0,"span",120),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI("",t.addressToData.to_city?t.addressToData.to_city:""," ,")}}function EF(n,a){if(1&n&&(e.j41(0,"span",120),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI("",t.addressToData.to_province?t.addressToData.to_province:""," .")}}function PF(n,a){if(1&n&&(e.j41(0,"span",120),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.JRh(t.addressToData.to_postal_code?t.addressToData.to_postal_code:"")}}function MF(n,a){if(1&n&&(e.j41(0,"div",119)(1,"span",120),e.EFF(2),e.k0s(),e.j41(3,"span",120),e.EFF(4),e.DNE(5,TF,2,1,"span",32),e.k0s(),e.DNE(6,SF,2,1,"span",121)(7,EF,2,1,"span",121)(8,PF,2,1,"span",121),e.k0s()),2&n){const t=e.XpG(2);e.R7$(2),e.SpI("",t.addressToData.to_name?t.addressToData.to_name:""," ,"),e.R7$(2),e.SpI("",t.addressToData.to_address_line_1?t.addressToData.to_address_line_1:""," ,"),e.R7$(),e.Y8G("ngIf",t.addressToData.from_address_line_2),e.R7$(),e.Y8G("ngIf",t.addressToData.to_city),e.R7$(),e.Y8G("ngIf",t.addressToData.to_province),e.R7$(),e.Y8G("ngIf",t.addressToData.to_postal_code)}}function OF(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Invoice date is required!"),e.k0s())}function DF(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Due date must be after the invoice date!"),e.k0s())}function IF(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,OF,2,0,"small",37)(2,DF,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.invoiceform.get("invoice_date").errors.required),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("invoice_date").errors.invalidDueDate)}}function jF(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Due date is required!"),e.k0s())}function RF(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,jF,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.invoiceform.get("due_date").errors.required)}}function LF(n,a){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"tr")(2,"td",122),e.EFF(3),e.k0s(),e.j41(4,"td",123),e.EFF(5),e.k0s(),e.j41(6,"td",123),e.EFF(7),e.k0s(),e.j41(8,"td",124)(9,"span")(10,"img",125),e.bIt("click",function(){const i=e.eBV(t).index,s=e.XpG(2);return e.Njj(s.editItem(i))}),e.k0s()(),e.j41(11,"span")(12,"img",126),e.bIt("click",function(){const i=e.eBV(t).index,s=e.XpG(2);return e.Njj(s.deleteItem(i))}),e.k0s()()()(),e.j41(13,"tr",127)(14,"td",128),e.EFF(15),e.k0s()(),e.j41(16,"tr")(17,"td",129),e.nrm(18,"div",130),e.k0s()(),e.bVm()}if(2&n){const t=a.$implicit;e.R7$(3),e.JRh(t.item_name),e.R7$(2),e.JRh(t.quantity),e.R7$(2),e.JRh(t.amount),e.R7$(8),e.JRh(t.item_description)}}function NF(n,a){1&n&&(e.j41(0,"tr")(1,"td",131),e.EFF(2," Items not assigned with this organization"),e.k0s()())}function BF(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Name date is required!"),e.k0s())}function GF(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,BF,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.itemForm.get("item_name").errors.required)}}function VF(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Quantity is required!"),e.k0s())}function zF(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,VF,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.itemForm.get("quantity").errors.required)}}function UF(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Amount is required!"),e.k0s())}function YF(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,UF,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.itemForm.get("amount").errors.required)}}function WF(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Discription is required!"),e.k0s())}function $F(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,WF,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.itemForm.get("item_description").errors.required)}}function qF(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Note is required!"),e.k0s())}function XF(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,qF,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.invoiceform.get("note").errors.required)}}function HF(n,a){if(1&n&&(e.j41(0,"option",36),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.Y8G("value",t.code),e.R7$(),e.JRh(t.code)}}function KF(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Currency is required!"),e.k0s())}function JF(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,KF,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.invoiceform.get("currency").errors.required)}}function ZF(n,a){if(1&n&&(e.j41(0,"option",36),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.Y8G("value",t.id),e.R7$(),e.JRh(t.app_name)}}function QF(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Payment method is required!"),e.k0s())}function eA(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,QF,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.invoiceform.get("payment_method").errors.required)}}function tA(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Discount rate is required!"),e.k0s())}function nA(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,tA,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.invoiceform.get("discount_rate").errors.required)}}function iA(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Vat number is required!"),e.k0s())}function rA(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,iA,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.invoiceform.get("vat_number").errors.required)}}function aA(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Vat rate is required!"),e.k0s())}function oA(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,aA,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.invoiceform.get("vat_rate").errors.required)}}function sA(n,a){1&n&&e.nrm(0,"span",132)}function lA(n,a){1&n&&(e.j41(0,"span",133),e.EFF(1,"Loading..."),e.k0s())}function cA(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",6)(1,"div",39)(2,"div",25)(3,"div",40)(4,"div",41)(5,"div",42)(6,"div")(7,"span",43),e.EFF(8,"#"),e.k0s(),e.j41(9,"span",44),e.nrm(10,"input",45),e.k0s(),e.j41(11,"div",46),e.EFF(12,"Invoice no "),e.j41(13,"span",28),e.EFF(14,"*"),e.k0s()()()(),e.j41(15,"div",47),e.nrm(16,"hr",48),e.k0s(),e.j41(17,"div",49)(18,"div")(19,"input",50,4),e.bIt("change",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onFileChange(i))}),e.k0s(),e.j41(21,"div",51),e.bIt("click",function(){e.eBV(t);const i=e.sdS(20);return e.Njj(i.click())}),e.DNE(22,dF,1,0,"img",52)(23,uF,1,1,"img",53),e.k0s(),e.j41(24,"span")(25,"div",25)(26,"div",54)(27,"span",46),e.EFF(28,"Merchant logo "),e.j41(29,"span",28),e.EFF(30,"*"),e.k0s()()()()()()(),e.j41(31,"div",55),e.nrm(32,"hr",48),e.k0s()(),e.nrm(33,"div",56),e.j41(34,"div",57)(35,"div",58)(36,"h4",59),e.EFF(37,"Billing from "),e.k0s(),e.j41(38,"div",60)(39,"div",61)(40,"label",62),e.
1EFF(41,"Email "),e.j41(42,"span",28),e.EFF(43,"*"),e.k0s()(),e.nrm(44,"input",63),e.DNE(45,pF,2,1,"div",32),e.k0s(),e.j41(46,"div",61)(47,"label",64),e.EFF(48,"Contact number "),e.j41(49,"span",28),e.EFF(50,"*"),e.k0s()(),e.nrm(51,"input",65),e.DNE(52,mF,2,1,"div",32),e.k0s(),e.j41(53,"div",66)(54,"div",67)(55,"span")(56,"img",68),e.bIt("click",function(){e.eBV(t);const i=e.XpG(),s=e.sdS(30);return e.Njj(!(i.formData&&0==i.formData.length)&&i.openModal(s))}),e.k0s()(),e.j41(57,"span",69),e.EFF(58,"Add your address(from) "),e.j41(59,"span",28),e.EFF(60,"*"),e.k0s()(),e.DNE(61,gF,4,0,"span",70)(62,yF,9,6,"div",71),e.k0s()()()(),e.j41(63,"div",58)(64,"h4",59),e.EFF(65,"Bill to"),e.k0s(),e.j41(66,"div",60)(67,"div",61)(68,"label",72),e.EFF(69,"Email "),e.j41(70,"span",28),e.EFF(71,"*"),e.k0s()(),e.nrm(72,"input",73),e.DNE(73,kF,2,1,"div",32),e.k0s(),e.j41(74,"div",61)(75,"label",74),e.EFF(76,"Contact number "),e.j41(77,"span",28),e.EFF(78,"*"),e.k0s()(),e.nrm(79,"input",75),e.DNE(80,FF,2,1,"div",32),e.k0s(),e.j41(81,"div",66)(82,"div",67)(83,"span")(84,"img",68),e.bIt("click",function(){e.eBV(t);const i=e.XpG(),s=e.sdS(34);return e.Njj(i.openToModal(s))}),e.k0s()(),e.j41(85,"span",69),e.EFF(86,"Add your address(to) "),e.j41(87,"span",28),e.EFF(88,"*"),e.k0s()(),e.DNE(89,AF,4,0,"span",70)(90,MF,9,6,"div",71),e.k0s()()()()(),e.nrm(91,"div",76),e.j41(92,"div",60)(93,"div",77)(94,"label",78),e.EFF(95,"Invoice Date "),e.j41(96,"span",28),e.EFF(97,"*"),e.k0s()(),e.j41(98,"input",79),e.bIt("change",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.onInvoiceDateChange())}),e.k0s(),e.DNE(99,IF,3,2,"div",32),e.k0s(),e.j41(100,"div",77)(101,"label",27),e.EFF(102,"Due Date "),e.j41(103,"span",28),e.EFF(104,"*"),e.k0s()(),e.nrm(105,"input",80),e.DNE(106,RF,2,1,"div",32),e.k0s()(),e.nrm(107,"div",81),e.j41(108,"h4",59),e.EFF(109,"Item Details"),e.k0s(),e.j41(110,"div",82)(111,"table",83)(112,"thead",84)(113,"tr")(114,"th",85),e.EFF(115,"Item Name"),e.k0s(),e.j41(116,"th"),e.EFF(117,"Quantity"),e.k0s(),e.j41(118,"th"),e.EFF(119,"Amount"),e.k0s(),e.nrm(120,"th"),e.k0s()(),e.j41(121,"tbody",86),e.DNE(122,LF,19,4,"ng-container",87)(123,NF,3,0,"tr",32),e.k0s()(),e.j41(124,"form",23)(125,"div",25)(126,"div",88)(127,"div",25)(128,"div",89)(129,"div",90),e.nrm(130,"input",91),e.DNE(131,GF,2,1,"div",32),e.k0s()(),e.j41(132,"div",89)(133,"div",90),e.nrm(134,"input",92),e.DNE(135,zF,2,1,"div",32),e.k0s()(),e.j41(136,"div",89)(137,"div",90),e.nrm(138,"input",93),e.DNE(139,YF,2,1,"div",32),e.k0s()()(),e.j41(140,"div",25)(141,"div",94)(142,"div",90),e.nrm(143,"input",95),e.DNE(144,$F,2,1,"div",32),e.k0s()()()(),e.j41(145,"div",96)(146,"span",97)(147,"img",98),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.onSubmit2())}),e.k0s()()()()()(),e.nrm(148,"div",99),e.j41(149,"div",25)(150,"div",61)(151,"label",100),e.EFF(152,"Note "),e.j41(153,"span",28),e.EFF(154,"*"),e.k0s()(),e.nrm(155,"textarea",101),e.DNE(156,XF,2,1,"div",32),e.k0s()()(),e.j41(157,"div",102)(158,"div",25)(159,"div",61)(160,"label",27),e.EFF(161,"Select Currency "),e.j41(162,"span",28),e.EFF(163,"*"),e.k0s()(),e.j41(164,"select",103)(165,"option",104),e.EFF(166,"Select currency"),e.k0s(),e.DNE(167,HF,2,2,"option",31),e.k0s(),e.DNE(168,JF,2,1,"div",32),e.k0s(),e.j41(169,"div",61)(170,"label",27),e.EFF(171,"Select payment method "),e.j41(172,"span",28),e.EFF(173,"*"),e.k0s()(),e.j41(174,"select",105)(175,"option",30),e.EFF(176,"Select gateway"),e.k0s(),e.DNE(177,ZF,2,2,"option",31),e.k0s(),e.DNE(178,eA,2,1,"div",32),e.k0s(),e.j41(179,"div",61)(180,"label",106),e.EFF(181,"Discount rate (%)"),e.k0s(),e.nrm(182,"input",107),e.DNE(183,nA,2,1,"div",32),e.k0s(),e.j41(184,"div",61)(185,"label",108),e.EFF(186,"Vat number"),e.k0s(),e.nrm(187,"input",109),e.DNE(188,rA,2,1,"div",32),e.k0s(),e.j41(189,"div",61)(190,"label",110),e.EFF(191,"Vat rate(%)"),e.k0s(),e.nrm(192,"input",111),e.DNE(193,oA,2,1,"div",32),e.k0s()(),e.j41(194,"div",33)(195,"a",7)(196,"button",34),e.EFF(197," Cancel "),e.k0s()(),e.j41(198,"button",112),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.submit_application())}),e.DNE(199,sA,1,0,"span",113)(200,lA,2,0,"span",114),e.EFF(201," Complete "),e.k0s()()()()()()}if(2&n){const t=e.XpG();e.R7$(22),e.Y8G("ngIf",!t.image),e.R7$(),e.Y8G("ngIf",t.image),e.R7$(21),e.Y8G("ngClass",e.eq3(47,oo,(t.invoiceform.get("from_email").dirty||t.invoiceform.get("from_email").touched)&&t.invoiceform.get("from_email").errors)),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("from_email").invalid&&(t.invoiceform.get("from_email").dirty||t.invoiceform.get("from_email").touched)),e.R7$(6),e.Y8G("ngClass",e.eq3(49,oo,(t.invoiceform.get("from_phone").dirty||t.invoiceform.get("from_phone").touched)&&t.invoiceform.get("from_phone").errors)),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("from_phone").invalid&&(t.invoiceform.get("from_phone").dirty||t.invoiceform.get("from_phone").touched)),e.R7$(9),e.Y8G("ngIf",t.formData&&0!==(null==t.formData?null:t.formData.length)),e.R7$(),e.Y8G("ngIf",t.formData),e.R7$(10),e.Y8G("ngClass",e.eq3(51,oo,(t.invoiceform.get("to_email").dirty||t.invoiceform.get("to_email").touched)&&t.invoiceform.get("to_email").errors)),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("to_email").invalid&&(t.invoiceform.get("to_email").dirty||t.invoiceform.get("to_email").touched)),e.R7$(6),e.Y8G("ngClass",e.eq3(53,oo,(t.invoiceform.get("to_phone").dirty||t.invoiceform.get("to_phone").touched)&&t.invoiceform.get("to_phone").errors)),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("to_phone").invalid&&(t.invoiceform.get("to_phone").dirty||t.invoiceform.get("to_phone").touched)),e.R7$(9),e.Y8G("ngIf",t.addressToData&&0!==(null==t.addressToData?null:t.addressToData.length)),e.R7$(),e.Y8G("ngIf",t.addressToData),e.R7$(8),e.Y8G("ngClass",e.eq3(55,oo,t.invoiceform.get("invoice_date").invalid&&t.invoiceform.get("invoice_date").touched)),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("invoice_date").invalid&&(t.invoiceform.get("invoice_date").dirty||t.invoiceform.get("invoice_date").touched)),e.R7$(6),e.Y8G("min",t.invoiceform.get("due_date").errors&&t.invoiceform.get("due_date").errors.invalidDueDate?null:t.invoiceform.get("invoice_date").value)("ngClass",e.eq3(57,oo,t.invoiceform.get("due_date").invalid&&t.invoiceform.get("due_date").touched)),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("due_date").invalid&&(t.invoiceform.get("due_date").dirty||t.invoiceform.get("due_date").touched)),e.R7$(16),e.Y8G("ngForOf",t.itemsData),e.R7$(),e.Y8G("ngIf",t.itemsData.length<1),e.R7$(),e.Y8G("formGroup",t.itemForm),e.R7$(6),e.Y8G("ngClass",e.eq3(59,oo,(t.itemForm.get("item_name").dirty||t.itemForm.get("item_name").touched)&&t.itemForm.get("item_name").errors)),e.R7$(),e.Y8G("ngIf",t.itemForm.get("item_name").invalid&&(t.itemForm.get("item_name").dirty||t.itemForm.get("item_name").touched)),e.R7$(3),e.Y8G("ngClass",e.eq3(61,oo,(t.itemForm.get("quantity").dirty||t.itemForm.get("quantity").touched)&&t.itemForm.get("quantity").errors)),e.R7$(),e.Y8G("ngIf",t.itemForm.get("quantity").invalid&&(t.itemForm.get("quantity").dirty||t.itemForm.get("quantity").touched)),e.R7$(3),e.Y8G("ngClass",e.eq3(63,oo,(t.itemForm.get("amount").dirty||t.itemForm.get("amount").touched)&&t.itemForm.get("amount").errors)),e.R7$(),e.Y8G("ngIf",t.itemForm.get("amount").invalid&&(t.itemForm.get("amount").dirty||t.itemForm.get("amount").touched)),e.R7$(4),e.Y8G("ngClass",e.eq3(65,oo,(t.itemForm.get("item_description").dirty||t.itemForm.get("item_description").touched)&&t.itemForm.get("item_description").errors)),e.R7$(),e.Y8G("ngIf",t.itemForm.get("item_description").invalid&&(t.itemForm.get("item_description").dirty||t.itemForm.get("item_description").touched)),e.R7$(11),e.Y8G("ngClass",e.eq3(67,oo,(t.invoiceform.get("note").dirty||t.invoiceform.get("note").touched)&&t.invoiceform.get("note").errors)),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("note").invalid&&(t.invoiceform.get("note").dirty||t.invoiceform.get("note").touched)),e.R7$(8),e.Y8G("ngClass",e.eq3(69,oo,(t.invoiceform.get("currency").dirty||t.invoiceform.get("currency").touched)&&t.invoiceform.get("currency").errors)),e.R7$(3),e.Y8G("ngForOf",t.currency_data),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("currency").invalid&&(t.invoiceform.get("currency").dirty||t.invoiceform.get("currency").touched)),e.R7$(6),e.Y8G("ngClass",e.eq3(71,oo,(t.invoiceform.get("payment_method").dirty||t.invoiceform.get("payment_method").touched)&&t.invoiceform.get("payment_method").errors)),e.R7$(3),e.Y8G("ngForOf",t.applist),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("payment_method").invalid&&(t.invoiceform.get("payment_method").dirty||t.invoiceform.get("payment_method").touched)),e.R7$(4),e.Y8G("ngClass",e.eq3(73,oo,(t.invoiceform.get("discount_rate").dirty||t.invoiceform.get("discount_rate").touched)&&t.invoiceform.get("discount_rate").errors)),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("discount_rate").invalid&&(t.invoiceform.get("discount_rate").dirty||t.invoiceform.get("discount_rate").touched)),e.R7$(4),e.Y8G("ngClass",e.eq3(75,oo,(t.invoiceform.get("vat_number").dirty||t.invoiceform.get("vat_number").touched)&&t.invoiceform.get("vat_number").errors)),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("vat_number").invalid&&(t.invoiceform.get("vat_number").dirty||t.invoiceform.get("vat_number").touched)),e.R7$(4),e.Y8G("ngClass",e.eq3(77,oo,(t.invoiceform.get("vat_rate").dirty||t.invoiceform.get("vat_rate").touched)&&t.invoiceform.get("vat_rate").errors)),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("vat_rate").invalid&&(t.invoiceform.get("vat_rate").dirty||t.invoiceform.get("vat_rate").touched)),e.R7$(5),e.Y8G("disabled",!(t.templateform.valid&&t.formData&&t.addressToData&&0!==t.itemsData.length&&t.imageBase64&&t.invoiceform.get("currency").valid&&t.invoiceform.get("payment_method").valid&&t.invoiceform.get("note").valid&&t.invoiceform.get("invoice_date").valid&&t.invoiceform.get("to_email").valid&&t.invoiceform.get("to_phone").valid&&t.invoiceform.get("invoice_number").valid)),e.R7$(),e.Y8G("ngIf",t.is_loading),e.R7$(),e.Y8G("ngIf",t.is_loading)}}function dA(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Name is required!"),e.k0s())}function uA(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,dA,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.fromAddressform.get("from_name").errors.required)}}function fA(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Address is required!"),e.k0s())}function pA(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,fA,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.fromAddressform.get("from_address_line_1").errors.required)}}function hA(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Address is required!"),e.k0s())}function mA(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,hA,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.fromAddressform.get("from_address_line_2").errors.required)}}function gA(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," City is required!"),e.k0s())}function _A(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,gA,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.fromAddressform.get("from_city").errors.required)}}function vA(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Province is required!"),e.k0s())}function xA(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,vA,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.fromAddressform.get("from_province").errors.required)}}function bA(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Postal code is required!"),e.k0s())}function yA(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,bA,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.fromAddressform.get("from_postal_code").errors.required)}}function CA(n,a){if(1&n){const t=e.RV6();e.j41(0,"form",23)(1,"nb-card",134)(2,"nb-card-header")(3,"div",135)(4,"h4",136),e.EFF(5," Write your address "),e.k0s(),e.j41(6,"button",137),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.cancel())}),e.j41(7,"a"),e.nrm(8,"i",138),e.k0s()()()(),e.j41(9,"nb-card-body")(10,"div",25)(11,"div",139)(12,"div",140)(13,"label",141),e.EFF(14,"Name "),e.j41(15,"span",28),e.EFF(16,"*"),e.k0s()(),e.nrm(17,"input",142),e.DNE(18,uA,2,1,"div",32),e.k0s()(),e.j41(19,"div",139)(20,"div",140)(21,"label",141),e.EFF(22,"Address line 1 "),e.j41(23,"span",28),e.EFF(24,"*"),e.k0s()(),e.nrm(25,"input",143),e.DNE(26,pA,2,1,"div",32),e.k0s()(),e.j41(27,"div",139)(28,"div",140)(29,"label",141),e.EFF(30,"Address line 2 "),e.j41(31,"span",28),e.EFF(32,"*"),e.k0s()(),e.nrm(33,"input",144),e.DNE(34,mA,2,1,"div",32),e.k0s()()(),e.j41(35,"div",13)(36,"div",89)(37,"div",140)(38,"label",141),e.EFF(39,"City "),e.j41(40,"span",28),e.EFF(41,"*"),e.k0s()(),e.nrm(42,"input",145),e.DNE(43,_A,2,1,"div",32),e.k0s()(),e.j41(44,"div",89)(45,"div",140)(46,"label",141),e.EFF(47,"Province "),e.j41(48,"span",28),e.EFF(49,"*"),e.k0s()(),e.nrm(50,"input",146),e.DNE(51,xA,2,1,"div",32),e.k0s()(),e.j41(52,"div",89)(53,"div",140)(54,"label",141),e.EFF(55,"Postal Code "),e.j41(56,"span",28),e.EFF(57,"*"),e.k0s()(),e.nrm(58,"
1input",147),e.DNE(59,yA,2,1,"div",32),e.k0s()()()(),e.j41(60,"nb-card-footer")(61,"div",148)(62,"button",149),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.cancel())}),e.EFF(63,"Cancel"),e.k0s(),e.j41(64,"button",150),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.addFromAddress())}),e.EFF(65,"Save "),e.k0s()()()()()}if(2&n){const t=e.XpG();e.Y8G("formGroup",t.fromAddressform),e.R7$(17),e.Y8G("ngClass",e.eq3(15,oo,(t.fromAddressform.get("from_name").dirty||t.fromAddressform.get("from_name").touched)&&t.fromAddressform.get("from_name").errors)),e.R7$(),e.Y8G("ngIf",t.fromAddressform.get("from_name").invalid&&(t.fromAddressform.get("from_name").dirty||t.fromAddressform.get("from_name").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(17,oo,(t.fromAddressform.get("from_address_line_1").dirty||t.fromAddressform.get("from_address_line_1").touched)&&t.fromAddressform.get("from_address_line_1").errors)),e.R7$(),e.Y8G("ngIf",t.fromAddressform.get("from_address_line_1").invalid&&(t.fromAddressform.get("from_address_line_1").dirty||t.fromAddressform.get("from_address_line_1").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(19,oo,(t.fromAddressform.get("from_address_line_2").dirty||t.fromAddressform.get("from_address_line_2").touched)&&t.fromAddressform.get("from_address_line_2").errors)),e.R7$(),e.Y8G("ngIf",t.fromAddressform.get("from_address_line_2").invalid&&(t.fromAddressform.get("from_address_line_2").dirty||t.fromAddressform.get("from_address_line_2").touched)),e.R7$(8),e.Y8G("ngClass",e.eq3(21,oo,(t.fromAddressform.get("from_city").dirty||t.fromAddressform.get("from_city").touched)&&t.fromAddressform.get("from_city").errors)),e.R7$(),e.Y8G("ngIf",t.fromAddressform.get("from_city").invalid&&(t.fromAddressform.get("from_city").dirty||t.fromAddressform.get("from_city").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(23,oo,(t.fromAddressform.get("from_province").dirty||t.fromAddressform.get("from_province").touched)&&t.fromAddressform.get("from_province").errors)),e.R7$(),e.Y8G("ngIf",t.fromAddressform.get("from_province").invalid&&(t.fromAddressform.get("from_province").dirty||t.fromAddressform.get("from_province").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(25,oo,(t.fromAddressform.get("from_postal_code").dirty||t.fromAddressform.get("from_postal_code").touched)&&t.fromAddressform.get("from_postal_code").errors)),e.R7$(),e.Y8G("ngIf",t.fromAddressform.get("from_postal_code").invalid&&(t.fromAddressform.get("from_postal_code").dirty||t.fromAddressform.get("from_postal_code").touched)),e.R7$(5),e.Y8G("nbSpinner",t.is_requesting)("disabled",!t.fromAddressform.valid)}}function kA(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Name is required!"),e.k0s())}function wA(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,kA,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.fromUpdateAddressform.get("from_name").errors.required)}}function FA(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Address is required!"),e.k0s())}function AA(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,FA,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.fromUpdateAddressform.get("from_address_line_1").errors.required)}}function TA(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Address is required!"),e.k0s())}function SA(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,TA,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.fromUpdateAddressform.get("from_address_line_2").errors.required)}}function EA(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," City is required!"),e.k0s())}function PA(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,EA,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.fromUpdateAddressform.get("from_city").errors.required)}}function MA(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Province is required!"),e.k0s())}function OA(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,MA,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.fromUpdateAddressform.get("from_province").errors.required)}}function DA(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Postal code is required!"),e.k0s())}function IA(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,DA,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.fromUpdateAddressform.get("from_postal_code").errors.required)}}function jA(n,a){if(1&n){const t=e.RV6();e.j41(0,"form",23)(1,"nb-card",134)(2,"nb-card-header")(3,"div",135)(4,"h4",136),e.EFF(5," Update your address "),e.k0s(),e.j41(6,"button",137),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.cancelUpdate())}),e.j41(7,"a"),e.nrm(8,"i",138),e.k0s()()()(),e.j41(9,"nb-card-body")(10,"div",25)(11,"div",139)(12,"div",140)(13,"label",141),e.EFF(14,"Name "),e.j41(15,"span",28),e.EFF(16,"*"),e.k0s()(),e.nrm(17,"input",151),e.DNE(18,wA,2,1,"div",32),e.k0s()(),e.j41(19,"div",139)(20,"div",140)(21,"label",141),e.EFF(22,"Address line 1 "),e.j41(23,"span",28),e.EFF(24,"*"),e.k0s()(),e.nrm(25,"input",152),e.DNE(26,AA,2,1,"div",32),e.k0s()(),e.j41(27,"div",139)(28,"div",140)(29,"label",141),e.EFF(30,"Address line 2 "),e.j41(31,"span",28),e.EFF(32,"*"),e.k0s()(),e.nrm(33,"input",153),e.DNE(34,SA,2,1,"div",32),e.k0s()()(),e.j41(35,"div",13)(36,"div",89)(37,"div",140)(38,"label",141),e.EFF(39,"City "),e.j41(40,"span",28),e.EFF(41,"*"),e.k0s()(),e.nrm(42,"input",154),e.DNE(43,PA,2,1,"div",32),e.k0s()(),e.j41(44,"div",89)(45,"div",140)(46,"label",141),e.EFF(47,"Province "),e.j41(48,"span",28),e.EFF(49,"*"),e.k0s()(),e.nrm(50,"input",155),e.DNE(51,OA,2,1,"div",32),e.k0s()(),e.j41(52,"div",89)(53,"div",140)(54,"label",141),e.EFF(55,"Postal Code "),e.j41(56,"span",28),e.EFF(57,"*"),e.k0s()(),e.nrm(58,"
1input",156),e.DNE(59,IA,2,1,"div",32),e.k0s()()()(),e.j41(60,"nb-card-footer")(61,"div",148)(62,"button",149),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.cancelUpdate())}),e.EFF(63,"Cancel"),e.k0s(),e.j41(64,"button",150),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.updateFromAddress())}),e.EFF(65,"Update "),e.k0s()()()()()}if(2&n){const t=e.XpG();e.Y8G("formGroup",t.fromUpdateAddressform),e.R7$(17),e.Y8G("ngClass",e.eq3(15,oo,(t.fromUpdateAddressform.get("from_name").dirty||t.fromUpdateAddressform.get("from_name").touched)&&t.fromUpdateAddressform.get("from_name").errors)),e.R7$(),e.Y8G("ngIf",t.fromUpdateAddressform.get("from_name").invalid&&(t.fromUpdateAddressform.get("from_name").dirty||t.fromUpdateAddressform.get("from_name").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(17,oo,(t.fromUpdateAddressform.get("from_address_line_1").dirty||t.fromUpdateAddressform.get("from_address_line_1").touched)&&t.fromUpdateAddressform.get("from_address_line_1").errors)),e.R7$(),e.Y8G("ngIf",t.fromUpdateAddressform.get("from_address_line_1").invalid&&(t.fromUpdateAddressform.get("from_address_line_1").dirty||t.fromUpdateAddressform.get("from_address_line_1").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(19,oo,(t.fromUpdateAddressform.get("from_address_line_2").dirty||t.fromUpdateAddressform.get("from_address_line_2").touched)&&t.fromUpdateAddressform.get("from_address_line_2").errors)),e.R7$(),e.Y8G("ngIf",t.fromUpdateAddressform.get("from_address_line_2").invalid&&(t.fromUpdateAddressform.get("from_address_line_2").dirty||t.fromUpdateAddressform.get("from_address_line_2").touched)),e.R7$(8),e.Y8G("ngClass",e.eq3(21,oo,(t.fromUpdateAddressform.get("from_city").dirty||t.fromUpdateAddressform.get("from_city").touched)&&t.fromUpdateAddressform.get("from_city").errors)),e.R7$(),e.Y8G("ngIf",t.fromUpdateAddressform.get("from_city").invalid&&(t.fromUpdateAddressform.get("from_city").dirty||t.fromUpdateAddressform.get("from_city").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(23,oo,(t.fromUpdateAddressform.get("from_province").dirty||t.fromUpdateAddressform.get("from_province").touched)&&t.fromUpdateAddressform.get("from_province").errors)),e.R7$(),e.Y8G("ngIf",t.fromUpdateAddressform.get("from_province").invalid&&(t.fromUpdateAddressform.get("from_province").dirty||t.fromUpdateAddressform.get("from_province").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(25,oo,(t.fromUpdateAddressform.get("from_postal_code").dirty||t.fromUpdateAddressform.get("from_postal_code").touched)&&t.fromUpdateAddressform.get("from_postal_code").errors)),e.R7$(),e.Y8G("ngIf",t.fromUpdateAddressform.get("from_postal_code").invalid&&(t.fromUpdateAddressform.get("from_postal_code").dirty||t.fromUpdateAddressform.get("from_postal_code").touched)),e.R7$(5),e.Y8G("nbSpinner",t.is_requesting)("disabled",!t.fromUpdateAddressform.valid)}}function RA(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Name is required!"),e.k0s())}function LA(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,RA,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.toAddressform.get("to_name").errors.required)}}function NA(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Adrress is required!"),e.k0s())}function BA(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,NA,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.toAddressform.get("to_address_line_1").errors.required)}}function GA(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Address is required!"),e.k0s())}function VA(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,GA,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.toAddressform.get("to_address_line_2").errors.required)}}function zA(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," City is required!"),e.k0s())}function UA(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,zA,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.toAddressform.get("to_city").errors.required)}}function YA(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Province is required!"),e.k0s())}function WA(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,YA,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.toAddressform.get("to_province").errors.required)}}function $A(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Postal code is required!"),e.k0s())}function qA(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,$A,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.toAddressform.get("to_postal_code").errors.required)}}function XA(n,a){if(1&n){const t=e.RV6();e.j41(0,"form",23)(1,"nb-card",134)(2,"nb-card-header")(3,"div",135)(4,"h4",136),e.EFF(5," Write your address "),e.k0s(),e.j41(6,"button",137),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.cancelTo())}),e.j41(7,"a"),e.nrm(8,"i",138),e.k0s()()()(),e.j41(9,"nb-card-body")(10,"div",25)(11,"div",139)(12,"div",140)(13,"label",141),e.EFF(14,"Name "),e.j41(15,"span",28),e.EFF(16,"*"),e.k0s()(),e.nrm(17,"input",157),e.DNE(18,LA,2,1,"div",32),e.k0s()(),e.j41(19,"div",139)(20,"div",140)(21,"label",141),e.EFF(22,"Address line 1 "),e.j41(23,"span",28),e.EFF(24,"*"),e.k0s()(),e.nrm(25,"input",158),e.DNE(26,BA,2,1,"div",32),e.k0s()(),e.j41(27,"div",139)(28,"div",140)(29,"label",141),e.EFF(30,"Address line 2 "),e.j41(31,"span",28),e.EFF(32,"*"),e.k0s()(),e.nrm(33,"input",159),e.DNE(34,VA,2,1,"div",32),e.k0s()()(),e.j41(35,"div",13)(36,"div",89)(37,"div",140)(38,"label",141),e.EFF(39,"City "),e.j41(40,"span",28),e.EFF(41,"*"),e.k0s()(),e.nrm(42,"input",160),e.DNE(43,UA,2,1,"div",32),e.k0s()(),e.j41(44,"div",89)(45,"div",140)(46,"label",141),e.EFF(47,"Province "),e.j41(48,"span",28),e.EFF(49,"*"),e.k0s()(),e.nrm(50,"input",161),e.DNE(51,WA,2,1,"div",32),e.k0s()(),e.j41(52,"div",89)(53,"div",140)(54,"label",141),e.EFF(55,"Postal Code "),e.j41(56,"span",28),e.EFF(57,"*"),e.k0s()(),e.nrm(58,"
1input",162),e.DNE(59,qA,2,1,"div",32),e.k0s()()()(),e.j41(60,"nb-card-footer")(61,"div",148)(62,"button",149),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.cancelTo())}),e.EFF(63,"Cancel"),e.k0s(),e.j41(64,"button",150),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.addToAddress())}),e.EFF(65,"Save "),e.k0s()()()()()}if(2&n){const t=e.XpG();e.Y8G("formGroup",t.toAddressform),e.R7$(17),e.Y8G("ngClass",e.eq3(15,oo,(t.toAddressform.get("to_name").dirty||t.toAddressform.get("to_name").touched)&&t.toAddressform.get("to_name").errors)),e.R7$(),e.Y8G("ngIf",t.toAddressform.get("to_name").invalid&&(t.toAddressform.get("to_name").dirty||t.toAddressform.get("to_name").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(17,oo,(t.toAddressform.get("to_address_line_1").dirty||t.toAddressform.get("to_address_line_1").touched)&&t.toAddressform.get("to_address_line_1").errors)),e.R7$(),e.Y8G("ngIf",t.toAddressform.get("to_address_line_1").invalid&&(t.toAddressform.get("to_address_line_1").dirty||t.toAddressform.get("to_address_line_1").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(19,oo,(t.toAddressform.get("to_address_line_2").dirty||t.toAddressform.get("to_address_line_2").touched)&&t.toAddressform.get("to_address_line_2").errors)),e.R7$(),e.Y8G("ngIf",t.toAddressform.get("to_address_line_2").invalid&&(t.toAddressform.get("to_address_line_2").dirty||t.toAddressform.get("to_address_line_2").touched)),e.R7$(8),e.Y8G("ngClass",e.eq3(21,oo,(t.toAddressform.get("to_city").dirty||t.toAddressform.get("to_city").touched)&&t.toAddressform.get("to_city").errors)),e.R7$(),e.Y8G("ngIf",t.toAddressform.get("to_city").invalid&&(t.toAddressform.get("to_city").dirty||t.toAddressform.get("to_city").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(23,oo,(t.toAddressform.get("to_province").dirty||t.toAddressform.get("to_province").touched)&&t.toAddressform.get("to_province").errors)),e.R7$(),e.Y8G("ngIf",t.toAddressform.get("to_province").invalid&&(t.toAddressform.get("to_province").dirty||t.toAddressform.get("to_province").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(25,oo,(t.toAddressform.get("to_postal_code").dirty||t.toAddressform.get("to_postal_code").touched)&&t.toAddressform.get("to_postal_code").errors)),e.R7$(),e.Y8G("ngIf",t.toAddressform.get("to_postal_code").invalid&&(t.toAddressform.get("to_postal_code").dirty||t.toAddressform.get("to_postal_code").touched)),e.R7$(5),e.Y8G("nbSpinner",t.is_requesting)("disabled",!t.toAddressform.valid)}}function HA(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Name is required!"),e.k0s())}function KA(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,HA,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.toUpdateAddressform.get("to_name").errors.required)}}function JA(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," address is required!"),e.k0s())}function ZA(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,JA,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.toUpdateAddressform.get("to_address_line_1").errors.required)}}function QA(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Address is required!"),e.k0s())}function eT(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,QA,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.toUpdateAddressform.get("to_address_line_2").errors.required)}}function tT(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," City is required!"),e.k0s())}function nT(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,tT,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.toUpdateAddressform.get("to_city").errors.required)}}function iT(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Province is required!"),e.k0s())}function rT(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,iT,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.toUpdateAddressform.get("to_province").errors.required)}}function aT(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Postal code is required!"),e.k0s())}function oT(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,aT,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.toUpdateAddressform.get("to_postal_code").errors.required)}}function sT(n,a){if(1&n){const t=e.RV6();e.j41(0,"form",23)(1,"nb-card",134)(2,"nb-card-header")(3,"div",135)(4,"h4",136),e.EFF(5," Write your address "),e.k0s(),e.j41(6,"button",137),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.cancelToUpdate())}),e.j41(7,"a"),e.nrm(8,"i",138),e.k0s()()()(),e.j41(9,"nb-card-body")(10,"div",25)(11,"div",139)(12,"div",140)(13,"label",141),e.EFF(14,"Name "),e.j41(15,"span",28),e.EFF(16,"*"),e.k0s()(),e.nrm(17,"input",157),e.DNE(18,KA,2,1,"div",32),e.k0s()(),e.j41(19,"div",139)(20,"div",140)(21,"label",141),e.EFF(22,"Address line 1 "),e.j41(23,"span",28),e.EFF(24,"*"),e.k0s()(),e.nrm(25,"input",158),e.DNE(26,ZA,2,1,"div",32),e.k0s()(),e.j41(27,"div",139)(28,"div",140)(29,"label",141),e.EFF(30,"Address line 2 "),e.j41(31,"span",28),e.EFF(32,"*"),e.k0s()(),e.nrm(33,"input",159),e.DNE(34,eT,2,1,"div",32),e.k0s()()(),e.j41(35,"div",13)(36,"div",89)(37,"div",140)(38,"label",141),e.EFF(39,"City "),e.j41(40,"span",28),e.EFF(41,"*"),e.k0s()(),e.nrm(42,"input",160),e.DNE(43,nT,2,1,"div",32),e.k0s()(),e.j41(44,"div",89)(45,"div",140)(46,"label",141),e.EFF(47,"Province "),e.j41(48,"span",28),e.EFF(49,"*"),e.k0s()(),e.nrm(50,"input",161),e.DNE(51,rT,2,1,"div",32),e.k0s()(),e.j41(52,"div",89)(53,"div",140)(54,"label",141),e.EFF(55,"Postal Code "),e.j41(56,"span",28),e.EFF(57,"*"),e.k0s()(),e.nrm(58,"
1input",162),e.DNE(59,oT,2,1,"div",32),e.k0s()()()(),e.j41(60,"nb-card-footer")(61,"div",148)(62,"button",149),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.cancelToUpdate())}),e.EFF(63,"Cancel"),e.k0s(),e.j41(64,"button",150),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.toUpdateToAddress())}),e.EFF(65,"Update "),e.k0s()()()()()}if(2&n){const t=e.XpG();e.Y8G("formGroup",t.toUpdateAddressform),e.R7$(17),e.Y8G("ngClass",e.eq3(15,oo,(t.toUpdateAddressform.get("to_name").dirty||t.toUpdateAddressform.get("to_name").touched)&&t.toUpdateAddressform.get("to_name").errors)),e.R7$(),e.Y8G("ngIf",t.toUpdateAddressform.get("to_name").invalid&&(t.toUpdateAddressform.get("to_name").dirty||t.toUpdateAddressform.get("to_name").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(17,oo,(t.toUpdateAddressform.get("to_address_line_1").dirty||t.toUpdateAddressform.get("to_address_line_1").touched)&&t.toUpdateAddressform.get("to_address_line_1").errors)),e.R7$(),e.Y8G("ngIf",t.toUpdateAddressform.get("to_address_line_1").invalid&&(t.toUpdateAddressform.get("to_address_line_1").dirty||t.toUpdateAddressform.get("to_address_line_1").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(19,oo,(t.toUpdateAddressform.get("to_address_line_2").dirty||t.toUpdateAddressform.get("to_address_line_2").touched)&&t.toUpdateAddressform.get("to_address_line_2").errors)),e.R7$(),e.Y8G("ngIf",t.toUpdateAddressform.get("to_address_line_2").invalid&&(t.toUpdateAddressform.get("to_address_line_2").dirty||t.toUpdateAddressform.get("to_address_line_2").touched)),e.R7$(8),e.Y8G("ngClass",e.eq3(21,oo,(t.toUpdateAddressform.get("to_city").dirty||t.toUpdateAddressform.get("to_city").touched)&&t.toUpdateAddressform.get("to_city").errors)),e.R7$(),e.Y8G("ngIf",t.toUpdateAddressform.get("to_city").invalid&&(t.toUpdateAddressform.get("to_city").dirty||t.toUpdateAddressform.get("to_city").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(23,oo,(t.toUpdateAddressform.get("to_province").dirty||t.toUpdateAddressform.get("to_province").touched)&&t.toUpdateAddressform.get("to_province").errors)),e.R7$(),e.Y8G("ngIf",t.toUpdateAddressform.get("to_province").invalid&&(t.toUpdateAddressform.get("to_province").dirty||t.toUpdateAddressform.get("to_province").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(25,oo,(t.toUpdateAddressform.get("to_postal_code").dirty||t.toUpdateAddressform.get("to_postal_code").touched)&&t.toUpdateAddressform.get("to_postal_code").errors)),e.R7$(),e.Y8G("ngIf",t.toUpdateAddressform.get("to_postal_code").invalid&&(t.toUpdateAddressform.get("to_postal_code").dirty||t.toUpdateAddressform.get("to_postal_code").touched)),e.R7$(5),e.Y8G("nbSpinner",t.is_requesting)("disabled",!t.toUpdateAddressform.valid)}}let lT=(()=>{class n{constructor(t,r,i,s,p,g,S,R,L){this.fb=t,this.dialogService=r,this.toastr=i,this.cd=s,this.router=p,this.invoiceService=g,this.paymentPageService=S,this.paymentLinkService=R,this.es=L,this.steper_hide=!1,this.template=!0,this.invoice=!1,this.itemsData=[],this.is_loading_1=!1,this.applist=[],this.is_loading=!1,this.currency_data=[],this.invoiceDateSelected=!1,this.currentDate=(new Date).toISOString().split("T")[0],this.templateform=this.fb.group({invoice_template_id:["",[ie.k0.required]]}),this.invoiceform=this.fb.group({invoice_number:["",[ie.k0.required]],from_email:["",[ie.k0.required]],from_phone:["",[ie.k0.required]],to_email:["",[ie.k0.required]],to_phone:["",[ie.k0.required]],invoice_date:["",[ie.k0.required]],due_date:["",[ie.k0.required]],currency:["",[ie.k0.required]],payment_method:["",[ie.k0.required]],discount_rate:[""],vat_number:[""],vat_rate:[""],logo:[""],note:["",[ie.k0.required]]}),this.itemForm=this.fb.group({item_name:["",[ie.k0.required]],quantity:["",[ie.k0.required]],amount:["",[ie.k0.required]],item_description:["",[ie.k0.required]]}),this.fromAddressform=this.fb.group({from_name:["",[ie.k0.required]],from_address_line_1:["",[ie.k0.required]],from_address_line_2:["",[ie.k0.required]],from_city:["",[ie.k0.required]],from_province:["",[ie.k0.required]],from_postal_code:["",[ie.k0.required]]}),this.fromUpdateAddressform=this.fb.group({from_name:["",[ie.k0.required]],from_address_line_1:["",[ie.k0.required]],from_address_line_2:["",[ie.k0.required]],from_city:["",[ie.k0.required]],from_province:["",[ie.k0.required]],from_postal_code:["",[ie.k0.required]]}),this.toAddressform=this.fb.group({to_name:["",[ie.k0.required]],to_address_line_1:["",[ie.k0.required]],to_address_line_2:[""],to_city:["",[ie.k0.required]],to_province:["",[ie.k0.required]],to_postal_code:["",[ie.k0.required]]}),this.toUpdateAddressform=this.fb.group({to_name:["",[ie.k0.required]],to_address_line_1:["",[ie.k0.required]],to_address_line_2:[""],to_city:["",[ie.k0.required]],to_province:["",[ie.k0.required]],to_postal_code:["",[ie.k0.required]]})}ngOnInit(){this.merchant_details=this.es.response_decript(localStorage.getItem("xu")),this.getMerchantDataAll(),this.getTemplate(),this.getApps(),this.invoiceform.setValue({from_email:this.merchant_details.email?this.merchant_details.email:"",invoice_number:"",from_phone:this.merchant_details.phone_number?this.merchant_details.phone_number:"",to_email:"",to_phone:"",invoice_date:"",due_date:"",currency:"",payment_method:"",discount_rate:"0",vat_number:"",vat_rate:"0",logo:[""],note:""}),this.invoiceform.get("payment_method").valueChanges.subscribe(t=>
1{if(t){const r=this.applist.find(i=>i.id==t||i.app_id===t);r?this.loadCurrenciesForGateway(r.app_id||r.id):isNaN(Number(t))&&this.loadCurrenciesForGateway(t)}else this.currency_data=[],this.invoiceform.get("currency").setValue("")})}stepperChange(t){console.log("data",t),"template"==t?(this.template=!0,this.invoice=!1):"invoice"==t&&(this.template=!1,this.invoice=!0)}submit_application(){if(this.is_loading=!0,console.log(this.templateform.value,"rrrff"),this.templateform.valid){let S={...{...this.templateform.value,...this.invoiceform.value,...this.formData,...this.addressToData,items:this.itemsData}};S.logo=this.imageBase64,S.update_image="1",this.invoiceService.saveInvoice(S).then(R=>{if(this.is_loading_1=!1,console.log(R,"5ggdfghfgh"),100==R.status){this.is_loading=!1,this.toastr.showToast("success","Success","Invoice created successfully"),console.log(S,"combinedFormDatacombinedFormData"),console.log("ggg");const L={request:S,invoice_link:R.data.invoice_link};console.log(L,"ttttc"),this.router.navigate(["pages/create-pfd"],{state:{data:L}})}else this.is_loading=!1,this.toastr.showToast("danger","Error!",R?.message||"Invoice creation failed.")},R=>{this.is_loading=!1,this.toastr.showToast("danger","Error","Internal server error")})}else this.is_loading=!1,console.log("Form is invalid")}onSubmit2(){console.log(this.itemForm.value,"444rr"),this.itemForm.valid?(this.itemsData.push(this.itemForm.value),this.itemForm.reset()):console.log("Form is invalid")}editItem(t){this.itemForm.patchValue(this.itemsData[t]),this.itemsData.splice(t,1)}deleteItem(t){this.itemsData.splice(t,1)}onFileChange(t){console.log("5555555555555555555555");let r=new FileReader;if(t.target.files&&t.target.files.length){const[i]=t.target.files;r.readAsDataURL(i),r.onload=()=>{this.imageBase64=r.result,this.image=r.result,this.cd.markForCheck()}}}updateValues(t){}resetImage(){this.image="",this.imageBase64="",console.log(this.fileUploader.nativeElement,"rest"),this.fileUploader.nativeElement.value=""}getMerchantDataAll(){this.is_loading_1=!0,this.invoiceService.getMerchantData().then(t=>{console.log("123",t.data),this.is_loading_1=!1,100===t?.status?(this.merchant_data=t?.data,this.fromAddressform.setValue({from_name:t.data.from_name?t.data.from_name:"",from_address_line_1:t.data.from_address_line_1?t.data.from_address_line_1:"",from_address_line_2:t.data.from_address_line_2?t.data.from_address_line_2:"",from_city:t.data.from_city?t.data.from_city:"",from_province:t.data.from_province?t.data.from_province:"",from_postal_code:t.data.from_postal_code?t.data.from_postal_code:""}),this.formData=this.fromAddressform.value):this.toastr.showToast("danger","Error!",t?.message||"Gettings merchant data failed.")},t=>{this.is_loading_1=!1,console.log("Internal Server Error",t),this.toastr.showToast("danger","Error!","Internal Server Error.")})}openModal(t){this.modal_ref=this.dialogService.open(t,{closeOnBackdropClick:!1})}cancel(){this.modal_ref.close()}addFromAddress(){this.fromAddressform.valid&&(this.formData=this.fromAddressform.value,console.log("Form data:",this.formData),this.modal_ref.close())}openUpdateFromAddress(t,r){setTimeout(()=>{this.fromUpdateAddressform.setValue({from_name:r.from_name?r.from_name:"",from_address_line_1:r.from_address_line_1?r.from_address_line_1:"",from_address_line_2:r.from_address_line_2?r.from_address_line_2:"",from_city:r.from_city?r.from_city:"",from_province:r.from_province?r.from_province:"",from_postal_code:r.from_postal_code?r.from_postal_code:""})},0),this.updateFromAddress_model=this.dialogService.open(t,{closeOnBackdropClick:!1})}cancelUpdate(){this.fromUpdateAddressform.reset(),this.updateFromAddress_model.close()}updateFromAddress(){this.fromUpdateAddressform.valid&&(this.formData=this.fromUpdateAddressform.value,console.log("Form data:",this.formData),this.updateFromAddress_model.close())}openToModal(t){this.modal_to=this.dialogService.open(t,{closeOnBackdropClick:!1})}cancelTo(){this.toAddressform.reset(),this.modal_to.close()}addToAddress(){this.toAddressform.valid&&(this.addressToData=this.toAddressform.value,console.log("addressToData:",this.addressToData),this.modal_to.close())}openUpdateToAddress(t,r){setTimeout(()=>
1{this.toUpdateAddressform.setValue({to_name:r.to_name?r.to_name:"",to_address_line_1:r.to_address_line_1?r.to_address_line_1:"",to_address_line_2:r.to_address_line_2?r.to_address_line_2:"",to_city:r.to_city?r.to_city:"",to_province:r.to_province?r.to_province:"",to_postal_code:r.to_postal_code?r.to_postal_code:""})},0),this.updateToAddress_model=this.dialogService.open(t,{closeOnBackdropClick:!1})}cancelToUpdate(){this.toUpdateAddressform.reset(),this.updateToAddress_model.close()}toUpdateToAddress(){this.toUpdateAddressform.valid&&(this.addressToData=this.toUpdateAddressform.value,console.log("addressToData:",this.addressToData),this.updateToAddress_model.close())}getTemplate(){this.is_loading_1=!0,this.invoiceService.getAllTemplate().then(t=>{this.is_loading_1=!1,100===t?.status?this.templates=t?.data:this.toastr.showToast("danger","Error!",t?.message||"Gettings merchant data failed.")},t=>{this.is_loading_1=!1,console.log("Internal Server Error",t),this.toastr.showToast("danger","Error!","Internal Server Error.")})}getApps(){this.is_loading_1=!0,this.paymentPageService.getApps().then(t=>{if(this.is_loading_1=!1,t&&100==t.status){if(this.applist=t.data.filter(r=>(r.is_approved||!r.is_approved&&!r.is_submit_approve)&&r.is_active),console.log(this.applist,"rrrrccc"),this.applist.length>0){const r=this.invoiceform.get("payment_method").value;if(r){const i=this.applist.find(p=>p.id==r||p.app_id===r);this.loadCurrenciesForGateway(i?i.app_id||i.id:r)}else this.invoiceform.get("payment_method").setValue(this.applist[0]?.id||this.applist[0]?.app_id)}}else this.toastr.showToast("danger","Error!",t?.message||"Gettings merchant data failed.")},t=>{this.is_loading_1=!1,this.toastr.showToast("danger","Error","Internal server error")})}onInvoiceDateChange(){this.invoiceDateSelected=!0;const r=new Date(this.invoiceform.get("invoice_date").value).getTime();this.invoiceform.get("due_date").setValidators([ie.k0.min(r)]),this.invoiceform.get("due_date").updateValueAndValidity()}loadCurrenciesForGateway(t){var r=this;return(0,Pt.A)(function*(){try{const i=yield r.paymentLinkService.getAppCurrencies(t);if(console.log("App Currencies Response:",i),i&&(200===i.status||!0===i.success)&&i.data){let s=[];s=i.data.currencies&&Array.isArray(i.data.currencies)?i.data.currencies:Array.isArray(i.data)?i.data:[i.data],r.currency_data=s.map(g=>"string"==typeof g?{code:g,name:g}:{code:g.code||g.currency_code||g.currency||"",name:g.name||g.currency_name||g.description||""}).filter(g=>g.code);const p=r.invoiceform.get("currency").value;r.currency_data.length>0?r.currency_data.some(S=>S.code===p)?r.invoiceform.get("currency").setValue(p):r.invoiceform.get("currency").setValue(r.currency_data[0].code):r.invoiceform.get("currency").setValue("")}else r.toastr.showToast("danger","Error!",i?.message||"Failed to load currencies for the selected gateway."),r.currency_data=[],r.invoiceform.get("currency").setValue("")}catch(i){console.error("Error loading currencies for gateway:",i),r.toastr.showToast("danger","Error!","Failed to load currencies for the selected gateway."),r.currency_data=[],r.invoiceform.get("currency").setValue("")}})()}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(ie.ok),e.rXU(E.S0W),e.rXU(Dt.V4),e.rXU(e.gRc),e.rXU(qe.Ix),e.rXU(ov),e.rXU(y1.f),e.rXU(k4.o),e.rXU(Mt.Vv))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-create-invoice"]],viewQuery:function(r,i){if(1&r&&e.GBs(aF,5),2&r){let s;e.mGM(s=e.lsd())&&(i.fileUploader=s.first)}},decls:37,vars:5,consts:[["fromAddressModel",""],["fromUpdateAddressModel",""],["toAddressModel",""],["toUpdateAddressModel",""],["imageInput",""],[1,"body-style","payment-links-root"],[1,"container"],["href","/pages/manage-invoice",2,"text-decoration","none","color","#718096","font-size","13px","font-weight","500"],[2,"margin-right","4px"],["aria-hidden","true",1,"fa","fa-arrow-left"],[1,"row","mb-4"],[1,"col","d-flex","justify-content-start","align-items-center"],[1,"page-heading"],[1,"row","mb-3"],[1,"col"],[1,"nb_cardBody"],[1,"steper"],[1,"stepper-container","one",3,"click"],[1,"stepper-circle"],[1,"tep_name"],[1,"stepper-container","two",3,"click"],[3,"ngClass"],["class","container",4,"ngIf"],[3,"formGroup"],[1,"template_body"],[1,"row"],[1,"col-12","d-flex","flex-column","justify-content-start","mb-3"],[1,"col","px-0","mb-1"],[1,"form-required-sign"],["fullWidth","","placeholder","Select Status","formControlName","invoice_template_id","name","invoice_template_id",1,"col","selecter_invoice",3,"ngClass"],["selected","","disabled","","value",""],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"footer_invoice","mt-3"],["shape","rectangle","size","medium","type","button",1,"invoice_clean_btn"],["shape","rectangle","size","medium",1,"invoice_next_btn",3,"click","disabled"],[3,"value"],["class","text-danger",4,"ngIf"],[1,"text-danger"],[1,"invoice_body"],[1,"col-8","col-in1"],[1,"row","mt-5"],[1,"col-3","d-flex","align-items-center","invoice_number_input"],[1,"invoice_hash"],[1,"d-inline-block",2,"width","70%"],["nbInput","","id","invoice_number","type","text","fullWidth","","placeholder","0000","name","invoice_number","maxlength","4","formControlName","invoice_number",1,"col","invoice_text",2,"border","none","background-color","transparent","padding","0","font-size","32px!important"],[1,"lable_name"],[1,"col-2","d-flex","align-items-center","justify-content-center"],[1,"line_1"],[1,"col-4","d-flex","align-items-center","justify-content-center"],["name","image","type","file","accept","image/*",1,"image-upload",2,"display","none",3,"change"],[1,"logo-circle",3,"click"],["class","upload_i","src","../../../../assets/images/upload_icon.png",4,"ngIf"],["class","upload_i2",3,"src",4,"ngIf"],[1,"col","mt-2",2,"position","absolute","margin-left","-10px"],[1,"col-3","d-flex","align-items-center","justify-content-center"],[1,"_line",2,"margin-top","64px"],[1,"row","mt-4"],[1,"col-6"],[1,"bill_from_title"],[1,"row","mt-3"],[1,"col-12","d-flex","flex-column","justify-content-start","mb-4"],["for","from_email",1,"col","px-0","mb-1"],["
1id","from_email","type","email","nbInput","","fullWidth","","placeholder","Write your email","formControlName","from_email","name","from_email",1,"col",3,"ngClass"],["for","from_phone",1,"col","px-0","mb-1"],["id","from_phone","type","email","nbInput","","fullWidth","","placeholder","Write your contact number","formControlName","from_phone","name","from_phone",1,"col",3,"ngClass"],[1,"col-12","mb-3"],[1,"mt-2"],["src","../../../../assets/images/plus.png",1,"plus_img",3,"click"],[1,"address_line"],["style","float: right;","class","address_edit",3,"click",4,"ngIf"],["class","in_fromAdd mt-3",4,"ngIf"],["for","to_email",1,"col","px-0","mb-1"],["id","to_email","type","email","nbInput","","fullWidth","","placeholder","Write your email","formControlName","to_email","name","to_email",1,"col",3,"ngClass"],["for","to_phone",1,"col","px-0","mb-1"],["id","to_phone","type","text","nbInput","","fullWidth","","placeholder","Write your contact number","formControlName","to_phone","name","to_phone",1,"col",3,"ngClass"],[1,"_line","mt-3","mb-4"],[1,"col-6","d-flex","flex-column","justify-content-start","mb-4"],["for","invoice_date",1,"col","px-0","mb-1"],["nbInput","","fullWidth","","id","invoice_date","placeholder","Select Date and Time","type","date","name","invoice_date","formControlName","invoice_date",1,"form-control",3,"change","ngClass"],["nbInput","","fullWidth","","id","due_date","placeholder","Select Date and Time","type","date","name","due_date","formControlName","due_date",1,"form-control",3,"min","ngClass"],[1,"_line","mt-2","mb-2"],[1,""],[1,"table","mt-3"],[1,"item_t"],[2,"float","left"],[1,"item_invoice_t"],[4,"ngFor","ngForOf"],[1,"col-11"],[1,"col-md-4"],[1,"form-group"],["placeholder","Item name","formControlName","item_name","type","text","id","item_name",1,"form-control",3,"ngClass"],["formControlName","quantity","type","number","id","quantity",1,"form-control",3,"ngClass"],["formControlName","amount","type","number","id","amount",1,"form-control",3,"ngClass"],[1,"col-md-12"],["placeholder","Item description","formControlName","item_description","type","text","id","item_description",1,"form-control",3,"ngClass"],[1,"col-1","d-flex","align-items-center","justify-content-center"],[2,"margin-top","-14px"],["src","../../../../assets/images/table_p.png",1,"pencil_plus",3,"click"],[1,"_line","mt-3","mb-3"],["for","note",1,"col","px-0","mb-1"],["rows","2","nbInput","","fullWidth","","placeholder","Write a note","formControlName","note",1,"text-area",3,"ngClass"],[1,"col-4"],["fullWidth","","placeholder","Select Status","formControlName","currency","name","currency",1,"col","selecter_invoice",3,"ngClass"],["disabled","","value",""],["fullWidth","","placeholder","Select Payment Method","formControlName","payment_method","name","payment_method",1,"col","selecter_invoice",3,"ngClass"],["for","discount_rate",1,"col","px-0","mb-1"],["id","discount_rate","type","number","nbInput","","fullWidth","","placeholder","6%","formControlName","discount_rate","name","discount_rate",1,"col",3,"ngClass"],["for","vat_number",1,"col","px-0","mb-1"],["id","vat_number","type","text","nbInput","","fullWidth","","placeholder","65535334","formControlName","vat_number","name","vat_number",1,"col",3,"ngClass"],["for","vat_rate",1,"col","px-0","mb-1"],["id","vat_rate","type","number","nbInput","","fullWidth","","placeholder","0%","formControlName","vat_rate","name","vat_rate",1,"col",3,"ngClass"],["shape","rectangle","size","medium","type","submit",1,"invoice_next_btn",3,"click","disabled"],["class","spinner-border loading-spinner spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],["class","sr-only",4,"ngIf"],["src","../../../../assets/images/upload_icon.png",1,"upload_i"],[1,"upload_i2",3,"src"],[1,"address_edit",2,"float","right",3,"click"],["src","../../../../assets/images/pancil.png",1,"pencil"],[1,"in_fromAdd","mt-3"],[1,"in_ad_line"],["class","in_ad_line",4,"ngIf"],[1,"other_td",2,"float","left"],[1,"other_td"],[2,"float","right"],["src","../../../../assets/images/pencil2.png",1,"pencil_table",3,"click"],["src","../../../../assets/images/delete_i.png",1,"delete_table",3,"click"],[1,"des_invoice"],["colspan","4",1,"other_des",2,"font-weight","500","color","#6A707A"],["colspan","4",1,"other_des"],[1,"div_line_in_table"],["colspan","4",2,"width","100vw","font-size","12px"],["role","status","aria-hidden","true",1,"spinner-border","loading-spinner","spinner-border-sm"],[1,"sr-only"],[1,"popup-modal-root","profile-pic-modal"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"sub-heading"],["type","button",1,"btn","p-0",2,"color","rgba(0, 0, 0, 0.5)",3,"click"],["size","2px",1,"fas","fa-times"],[1,"col-md-12","mb-3"],[1,"input-group"],[1,"label-form-control","label-name"],["formControlName","from_name","type","text","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","from_address_line_1","type","text","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","from_address_line_2","type","text","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","from_city","type","text","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","from_province","type","text","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","from_postal_code","type","text","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],[1,"col","d-flex","justify-content-end","align-items-center"],["nbButton","","status","basic","type","button",1,"mr-1",3,"click"],["nbButton","","status","primary","nbSpinnerStatus","success",1,"primary-green-btn",3,"click","nbSpinner","disabled"],["formControlName","from_name","type","text","placeholder","00300","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","from_address_line_1","type","text","placeholder","00300","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","from_address_line_2","type","text","placeholder","00300","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","from_city","type","text","placeholder","00300","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","from_province","type","text","placeholder","00300","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","from_postal_code","type","text","placeholder","00300","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","to_name","type","text","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","to_address_line_1","type","text","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","to_address_line_2","type","text","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","to_city","type","text","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","to_province","type","text","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","to_postal_code","type","text","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",5)(1,"div",6)(2,"p")(3,"a",7)(4,"span",8),e.nrm(5,"i",9),e.k0s(),e.EFF(6," Back"),e.k0s()(),e.j41(7,"div",10)(8,"div",11)(9,"h2",12),e.
1EFF(10,"Create invoice"),e.k0s()()(),e.j41(11,"div",13)(12,"div",14)(13,"nb-card")(14,"nb-card-body",15)(15,"div",16)(16,"div",17),e.bIt("click",function(){return e.eBV(s),e.Njj(i.stepperChange("template"))}),e.j41(17,"div",18),e.EFF(18,"1"),e.k0s(),e.j41(19,"span",19),e.EFF(20,"Select template"),e.k0s()(),e.j41(21,"div",20),e.bIt("click",function(){return e.eBV(s),e.Njj(i.stepperChange("invoice"))}),e.j41(22,"div",21),e.EFF(23,"2"),e.k0s(),e.j41(24,"span",21),e.EFF(25,"Fill invoice details"),e.k0s()()(),e.DNE(26,cF,20,7,"div",22),e.j41(27,"form",23),e.DNE(28,cA,202,79,"div",22),e.k0s()()()()()()(),e.DNE(29,CA,66,27,"ng-template",null,0,e.C5r)(31,jA,66,27,"ng-template",null,1,e.C5r)(33,XA,66,27,"ng-template",null,2,e.C5r)(35,sT,66,27,"ng-template",null,3,e.C5r)}2&r&&(e.R7$(22),e.Y8G("ngClass",i.invoice?"stepper-circle":"stepper-circle-de"),e.R7$(2),e.Y8G("ngClass",i.invoice?"tep_name":"tep_name-de"),e.R7$(2),e.Y8G("ngIf",i.template),e.R7$(),e.Y8G("formGroup",i.invoiceform),e.R7$(),e.Y8G("ngIf",i.invoice))},dependencies:[Fe.YU,Fe.Sq,Fe.bT,ie.qT,ie.xH,ie.y7,ie.me,ie.Q0,ie.wz,ie.BC,ie.cb,ie.tU,ie.j4,ie.JD,E.SrT,E.KH5,E.VDm,E.zJv,E.YP2,E.i6h,E.zwc],styles:[".profile-details-root[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:400;font-size:13px;color:#1a202c}.profile-details-root[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{color:#8e8e8e!important}.profile-details-root[_ngcontent-%COMP%] .profile-picture[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:8rem;height:auto;border-radius:10px}.profile-details-root[_ngcontent-%COMP%] .commission-rate-for[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{word-wrap:break-word}.profile-details-root[_ngcontent-%COMP%] .commission-rate-for[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#000000e6;margin-right:8px}label[_ngcontent-%COMP%]{font-size:14px;color:#344054;font-weight:500}.profile-pic-modal[_ngcontent-%COMP%]{width:40vw;height:auto}.steper[_ngcontent-%COMP%]{display:flex;flex-direction:row}.stepper-container[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:20px}.stepper-circle[_ngcontent-%COMP%]{width:24px;height:24px;border-radius:50%;background-color:#00831d;color:#fff;font-size:16px;font-weight:500;display:flex;justify-content:center;align-items:center}.stepper-circle-de[_ngcontent-%COMP%]{width:24px;height:24px;border-radius:50%;background-color:#ddd;color:#333;font-size:16px;font-weight:500;display:flex;justify-content:center;align-items:center}.tep_name[_ngcontent-%COMP%]{color:#00831d;font-size:16px;font-weight:500;margin-left:8px}.tep_name-de[_ngcontent-%COMP%]{color:#7e7e7e;font-size:16px;font-weight:500;margin-left:8px}.stepper-container.two[_ngcontent-%COMP%]{margin-right:0}.steper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.active[_ngcontent-%COMP%]{color:red}.footer_invoice[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;border-bottom-right-radius:.3rem;border-bottom-left-radius:.3rem}.invoice_next_btn[_ngcontent-%COMP%]{width:auto;height:40px;border-radius:8px;border:none;color:#fff;background-color:#00130c;padding:10px 16px;font-size:14px;font-weight:600}.invoice_clean_btn[_ngcontent-%COMP%]{border:1px solid #D0D5DD;width:80px;height:40px;border-radius:8px;color:#344054;padding:10px 16px;font-size:14px;font-weight:600;margin-right:8px}.template_body[_ngcontent-%COMP%]{padding:40px 225px}.selecter_invoice[_ngcontent-%COMP%]{background-color:#f7f9fc;border-color:#e4e9f2;color:#222b45;line-height:1.5rem;padding:.4375rem 1rem;font-size:15px!important;font-weight:400!important;border-radius:.25rem}.nb_cardBody[_ngcontent-%COMP%]{padding:50px 10px 10px}.invoice_body[_ngcontent-%COMP%]{padding:40px 10px}.col-in1[_ngcontent-%COMP%]{border-right:1px solid #E7E7E7}.line_1[_ngcontent-%COMP%]{border:1px solid #E1E1E1;width:100%}._line[_ngcontent-%COMP%]{width:100%;border:1px solid #E1E1E1}.logo-circle[_ngcontent-%COMP%]{width:96px;height:96px;border-radius:50%;background-color:#e1e1e1;color:#fff;font-size:16px;font-weight:500;display:flex;justify-content:center;align-items:center;overflow:hidden;cursor:pointer}.invoice_number_input[_ngcontent-%COMP%]{margin-top:26px}.invoice_text[_ngcontent-%COMP%]{border:none;background-color:transparent;padding:0;font-size:32px;color:#e1e1e1}.invoice_hash[_ngcontent-%COMP%]{color:#000;font-size:32px}input#invoice_number[_ngcontent-%COMP%]::placeholder{font-size:32px!important}.upload_i[_ngcontent-%COMP%]{width:24px}
1.upload_i2[_ngcontent-%COMP%]{top:0;left:0;width:100%;height:100%;object-fit:cover}.lable_name[_ngcontent-%COMP%]{font-size:16px;font-weight:500;color:#797979}.bill_from_title[_ngcontent-%COMP%]{font-size:16px;font-weight:500}.plus_img[_ngcontent-%COMP%]{width:16px;height:16px;cursor:pointer}.address_line[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#344054;margin-left:10px}.address_edit[_ngcontent-%COMP%]{color:red;font-size:14px;cursor:pointer}.table[_ngcontent-%COMP%] .thead-light[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#495057;background-color:transparent;border:none!important}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-bottom:hidden;border-top:hidden;font-size:14px;color:#1c1c1c;font-weight:500}.table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-top:none;font-size:14px;color:#4b4b4b}.item_invoice_t[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-top:5px!important;padding-bottom:0!important}.in_ad_line[_ngcontent-%COMP%]{display:block;font-size:14px;font-weight:500;color:#344054;line-height:21px}.pencil[_ngcontent-%COMP%]{width:12px;height:12px;color:red}.pencil_table[_ngcontent-%COMP%]{width:12px;height:12px;color:#000!important;margin-right:5px}.delete_table[_ngcontent-%COMP%]{width:12px;height:12px;color:red}.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.data_table_lable[_ngcontent-%COMP%]{margin-top:10px}.div_line_in_table[_ngcontent-%COMP%]{width:100%;border-bottom:1px solid #DADADA;margin-top:5px;margin-bottom:5px}.pencil_plus[_ngcontent-%COMP%]{width:32px;height:32px;cursor:pointer}
1.label-name[_ngcontent-%COMP%]{margin-bottom:6px!important;color:#344054;font-size:14px;font-weight:500}.required_feeld[_ngcontent-%COMP%]{color:red;margin-left:5px}.text-danger[_ngcontent-%COMP%]{float:left!important}.item_invoice_t[_ngcontent-%COMP%] .other_td[_ngcontent-%COMP%]{font-weight:600;font-size:16px;color:#344054}.des_invoice[_ngcontent-%COMP%]{font-size:14px!important;color:#6a707a!important;font-weight:600!important}"]})}return n})();var w4=bn(21626);const cT=["imageInput"];function dT(n,a){if(1&n&&e.nrm(0,"img",64),2&n){const t=e.XpG();e.Y8G("src",t.receivedData.logo,e.B4B)}}function uT(n,a){if(1&n&&e.nrm(0,"img",65),2&n){const t=e.XpG();e.Y8G("src",t.receivedData.logo,e.B4B)}}function fT(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI("",t.receivedData.from_address_line_2?t.receivedData.from_address_line_2:"",",")}}function pT(n,a){if(1&n&&(e.j41(0,"span",26),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI("",t.receivedData.from_city?t.receivedData.from_city:"",",")}}function hT(n,a){if(1&n&&(e.j41(0,"span",26),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI("",t.receivedData.from_province?t.receivedData.from_province:"",".")}}function mT(n,a){if(1&n&&(e.j41(0,"span",26),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(t.receivedData.from_postal_code?t.receivedData.from_postal_code:"")}}function gT(n,a){if(1&n&&(e.j41(0,"span",66),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(t.receivedData.from_phone?t.receivedData.from_phone:"")}}function _T(n,a){if(1&n&&(e.j41(0,"span",26),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(t.receivedData.from_email?t.receivedData.from_email.trim():"")}}function vT(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI("",t.receivedData.to_address_line_2?t.receivedData.to_address_line_2:"",",")}}function xT(n,a){if(1&n&&(e.j41(0,"span",26),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI("",t.receivedData.to_city?t.receivedData.to_city:"",",")}}function bT(n,a){if(1&n&&(e.j41(0,"span",26),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI("",t.receivedData.to_province?t.receivedData.to_province:"",".")}}function yT(n,a){if(1&n&&(e.j41(0,"span",26),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(t.receivedData.to_postal_code?t.receivedData.to_postal_code:"")}}function CT(n,a){if(1&n&&(e.j41(0,"span",66),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(t.receivedData.to_phone?t.receivedData.to_phone:"")}}function kT(n,a){if(1&n&&(e.j41(0,"span",26),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(t.receivedData.to_email?t.receivedData.to_email:"")}}function wT(n,a){if(1&n&&(e.qex(0),e.j41(1,"tr")(2,"td",67),e.EFF(3),e.k0s(),e.j41(4,"td",67)(5,"span",43),e.EFF(6),e.k0s(),e.EFF(7),e.nI1(8,"number"),e.k0s(),e.j41(9,"td",67),e.EFF(10),e.k0s(),e.j41(11,"td",68)(12,"span",43),e.EFF(13),e.k0s(),e.EFF(14),e.nI1(15,"number"),e.k0s()(),e.j41(16,"tr",69)(17,"td",70),e.EFF(18),e.k0s()(),e.j41(19,"tr")(20,"td",70),e.nrm(21,"div",30),e.k0s()(),e.bVm()),2&n){const t=e.XpG().$implicit,r=e.XpG();e.R7$(3),e.SpI("",t.item_name?t.item_name:"N/A"," "),e.R7$(3),e.SpI("",r.receivedData.currency?r.receivedData.currency:""," "),e.R7$(),e.SpI(" ",t.amount?t.amount:e.i5U(8,7,"N/A","1.2-2"),""),e.R7$(3),e.SpI("",t.quantity?t.quantity:"N/A"," "),e.R7$(3),e.SpI("",r.receivedData.currency?r.receivedData.currency:""," "),e.R7$(),e.SpI(" ",e.i5U(15,10,t.amount*t.quantity,"1.2-2"),""),e.R7$(4),e.SpI(" ",t.item_description?t.item_description:"N/A"," ")}}function FT(n,a){if(1&n&&(e.qex(0),e.DNE(1,wT,22,13,"ng-container",27),e.bVm()),2&n){const t=a.$implicit;e.R7$(),e.Y8G("ngIf",!t.is_delete)}}function AT(n,a){1&n&&(e.j41(0,"tr")(1,"td",71),e.EFF(2," Items not assigned with this organization"),e.k0s()())}function TT(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"span"),e.nrm(2,"img",72),e.k0s(),e.j41(3,"span",73),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.copyText())})("mouseout",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.resetTooltip())}),e.EFF(4,"copy invoice link"),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(3),e.Y8G("title",t.tooltipText)}}let ST=(()=>{class n{constructor(t){this.http=t,this.receivedData={},this.image_base_path=sc.c.aws,this.tooltipText="Click to copy",this.textToCopy="Text to copy"}ngOnInit(){this.receivedData=history.state.data?.request||{},this.invoice_link=history.state.data?.invoice_link||{},console.log(this.invoice_link,"invoice_link"),"0"==this.receivedData.update_image&&console.log("ree"),this.imageUrl=this.image_base_path+this.receivedData.logo,this.get
1Subtotal(),this.getVatTax(),this.getDiscount(),this.getTotal()}downloadPdf(){const r=document.getElementById("budget-wise-report-div");console.log(r.clientWidth),(new b1.jsPDF).html(r,{callback:function(s){s.save("invoice.pdf")},x:0,y:0,width:210,windowWidth:1e3})}getSubtotal(){let t=0;for(let r of this.receivedData.items)t+=r.quantity*r.amount;return parseFloat(t.toFixed(2))}getVatTax(){let t=0;if(this.receivedData&&this.receivedData.vat_rate&&this.receivedData.items){const r=this.getSubtotal()-this.getDiscount();0!==r&&(t=r*(this.receivedData.vat_rate/100))}return parseFloat(t.toFixed(2))}getDiscount(){let t=0;if(this.receivedData&&this.receivedData.discount_rate&&this.receivedData.items){const r=this.getSubtotal();0!==r&&(t=r*(this.receivedData.discount_rate/100))}return parseFloat(t.toFixed(2))}getTotal(){let t=0;return t=this.getSubtotal()-this.getDiscount()+this.getVatTax(),parseFloat(t.toFixed(2))}formatDate(t){const r=new Date(t),i=r.getFullYear(),p=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][r.getMonth()];return`${String(r.getDate()).padStart(2,"0")} ${p} ${i}`}copyInvoiceLink(t){this.copyToClipboard(t)}copyToClipboard(t){if(navigator.clipboard)navigator.clipboard.writeText(t).then(()=>{console.log("Text copied to clipboard")}).catch(r=>{console.error("Failed to copy text to clipboard",r)});else{const r=document.createElement("textarea");r.value=t,r.style.position="fixed",document.body.appendChild(r),r.focus(),r.select();try{document.execCommand("copy"),console.log("Text copied to clipboard")}catch(i){console.error("Failed to copy text to clipboard",i)}finally{document.body.removeChild(r)}}}copyText(){const t=document.createElement("textarea");t.value=this.invoice_link,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),this.tooltipText="Copied!"}resetTooltip(){setTimeout(()=>{this.tooltipText="Click to copy"},2e3)}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(w4.Qq))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-pdf-in-invoice"]],viewQuery:function(r,i){if(1&r&&e.GBs(cT,5),2&r){let s;e.mGM(s=e.lsd())&&(i.fileUploader=s.first)}},inputs:{modal_ref:"modal_ref"},decls:141,vars:46,consts:[[1,"body-style","invoice-root"],[1,"container"],["href","/pages/manage-invoice",2,"text-decoration","none","color","#718096","font-size","13px","font-weight","500"],[2,"margin-right","4px"],["aria-hidden","true",1,"fa","fa-arrow-left"],[1,"row","mb-4"],[1,"col","d-flex","justify-content-start","align-items-center"],[1,"page-heading"],[1,"row","mb-3"],[1,"col-12"],[1,"invoice_body"],[1,"row"],[1,"col-9","col-in1"],["id","budget-wise-report-div",1,"invoice_class"],[1,"col-6"],[1,"in_head"],[1,"mt-2"],[1,"in_number"],[1,"in_b"],[1,"in_date"],[1,"in_circle"],["class","in_logo",3,"src",4,"ngIf"],["crossorigin","*","class","in_logo",3,"src",4,"ngIf"],[1,"row","mt-4"],[1,"in_subHead"],[1,"in_fromAdd","mt-2"],[1,"in_ad_line"],[4,"ngIf"],["class","in_ad_line",4,"ngIf"],["class","in_ad_line mt-2",4,"ngIf"],[1,"div_line_in"],[1,"item_in_data"],[1,"item_details_table"],[1,"table","mt-4"],[1,"item_t"],[2,"float","right"],[1,"item_invoice_t"],[4,"ngFor","ngForOf"],[1,"col-7"],[1,"col-5"],[1,"invoice_cal"],[1,"in_sub_tatal",2,"color","#FE6B00"],[1,"in_sub_tatal_data",2,"color","#FE6B00"],[2,"margin-right","6px"],[1,"invoice_cal","mt-3"],[1,"in_sub_tatal",2,"color","#344054"],[1,"in_sub_tatal_data",2,"color","#344054"],[1,"row","mt-5"],[1,"col-7","d-flex","justify-content-end","align-items-center"],[1,"in_sub_tatal_end",2,"color","#344054"],[1,"col-5","d-flex","justify-content-start","align-items-center"],[1,"total_invoice_b"],[1,"centered-content"],[2,"margin-left","5px"],[1,"col"],[1,"note"],[1,"note_data"],[1,"col-12","text-center"],[1,"thank_you"],[1,"col-3","download_btnInvoice"],[1,"download_in_btn_class"],[3,"click"],["src","../../../../assets/images/down_in.png",1,"dowload_ICOn"],[1,"dowload_ICOn_text"],[1,"in_logo",3,"src"],["crossorigin","*",1,"in_logo",3,"src"],[1,"in_ad_line","mt-2"],[1,"other_td"],[1,"other_td",2,"float","right"],[1,"des_invoice"],["colspan","4",1,"other_des"],["colspan","4",2,"width","100vw","font-size","12px"],["src","../../../../assets/images/link.png",1,"link_ICOn"],[1,"link_ICOn_text",3,"click","mouseout","title"]],template:function(r,i){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"p")(3,"a",2)(4,"span",3),e.nrm(5,"i",4),e.k0s(),e.EFF(6,"Back"),e.k0s()(),e.j41(7,"div",5)(8,"div",6)(9,"h2",7),e.EFF(10,"Create an invoice"),e.k0s()()(),e.j41(11,"div",8)(12,"div",9)(13,"nb-card")(14,"div",10)(15,"div",11)(16,"div",12)(17,"div",13)(18,"div",11)(19,"div",14)(20,"h4",15),e.EFF(21,"INVOICE"),e.k0s(),e.j41(22,"div",16)(23,"span",17),e.EFF(24),e.k0s(),e.j41(25,"span",18),e.EFF(26,"|"),e.k0s(),e.j41(27,"span",19),e.EFF(28),e.k0s()()(),e.j41(29,"div",14)(30,"div",20),e.DNE(31,dT,1,1,"img",21)(32,uT,1,1,"img",22),e.k0s()()(),e.j41(33,"div",23)(34,"div",14)(35,"h4",24),e.EFF(36,"From"),e.k0s(),e.j41(37,"div",25)(38,"span",26),e.EFF(39),e.k0s(),e.j41(40,"span",26),e.EFF(41),e.DNE(42,fT,2,1,"span",27),e.k0s(),e.DNE(43,pT,2,1,"span",28)(44,hT,2,1,"span",28)(45,mT,2,1,"span",28)(46,gT,2,1,"span",29)(47,_T,2,1,"span",28),e.k0s()(),e.j41(48,"div",14)(49,"h4",24),e.EFF(50,"To"),e.k0s(),e.j41(51,"div",25)(52,"span",26),e.EFF(53),e.k0s(),e.j41(54,"span",26),e.EFF(55),e.DNE(56,vT,2,1,"span",27),e.k0s(),e.DNE(57,xT,2,1,"span",28)(58,bT,2,1,"span",28)(59,yT,2,1,"span",28)(60,CT,2,1,"span",29)(61,kT,2,1,"span",28),e.k0s()()(),e.nrm(62,"div",30),e.j41(63,"div",31)(64,"h4",32),e.EFF(65,"Item details"),e.k0s(),e.j41(66,"table",33)(67,"thead",34)(68,"tr")(69,"th"),e.EFF(70,"Item description"),e.k0s(),e.j41(71,"th"),e.EFF(72,"Unit price"),e.k0s(),e.j41(73,"th"),e.EFF(74,"Qty"),e.k0s(),e.j41(75,"th",35),e.EFF(76,"Total"),e.k0s()()(),e.j41(77,"tbody",36),e.DNE(78,FT,2,1,"ng-container",37)(79,AT,3,0,"tr",27),e.k0s()()(),e.j41(80,"div")(81,"div",11),e.nrm(82,"div",38),e.j41(83,"div",39)(84,"div",40)(85,"span",41),e.EFF(86,"Sub total"),e.k0s(),e.j41(87,"span",42)(88,"span",43),e.EFF(89),e.k0s(),e.EFF(90),e.nI1(91,"number"),e.k0s()(),e.j41(92,"div",44)(93,"span",45),e.EFF(94),e.k0s(),e.j41(95,"span",46)(96,"span",43),e.EFF(97),e.k0s(),e.EFF(98),e.nI1(99,"number"),e.k0s()(),e.j41(100,"div",44)(101,"span",45),e.EFF(102),e.k0s(),e.j41(103,"span",46)(104,"span",43),e.EFF(105),e.k0s(),e.EFF(106),e.nI1(107,"number"),e.k0s()()()(),e.j41(108,"div",47)(109,"div",48)(110,"span",49),e.EFF(111,"Total"),e.k0s()(),e.j41(112,"div",50)(113,"div",51)(114,"div",52)(115,"span",43),e.EFF(116),e.k0s(),e.j41(117,"span",53),e.EFF(118),e.nI1(119,"number"),e.k0s()()()()(),e.j41(120,"div",23)(121,"div",54)(122,"p",55),e.EFF(123,"Note"),e.k0s(),e.j41(124,"p",56),e.EFF(125),e.k0s()()(),e.j41(126,"div",47)(127,"div",57)(128,"p",58),e.EFF(129,"Thank you for Business!"),e.k0s()()()()()(),e.j41(130,"div",59)(131,"div",60)(132,"div",61),e.bIt("click",function(){return i.downloadPdf()}),e.j41(133,"span"),e.nrm(134,"img",62),e.k0s(),e.j41(135,"span",63),e.EFF(136,"Download as pdf"),e.k0s()(),e.nrm(137,"div",30),e.j41(138,"div"),e.DNE(139,TT,5,1,"div",27),e.k0s(),e.nrm(140,"div",30),e.k0s()()()()()()()()()),2&r&&(e.R7$(24),e.SpI("#",i.receivedData.invoice_number?i.receivedData.invoice_number:"N/A",""),e.R7$(4),e.JRh(i.receivedData.invoice_date?i.formatDate(i.receivedData.invoice_date):"N/A"),e.R7$(3),e.Y8G("ngIf","1"===i.receivedData.update_image),e.R7$(),e.Y8G("ngIf","0"===i.receivedData.update_image),e.R7$(7),e.SpI("",i.receivedData.from_name?i.receivedData.from_name:"",","),e.R7$(2),e.SpI("",i.receivedData.from_address_line_1?i.receivedData.from_address_line_1:"",","),e.R7$(),e.Y8G("ngIf",i.receivedData.from_address_line_2),e.R7$(),e.Y8G("ngIf",i.receivedData.from_city),e.R7$(),e.Y8G("ngIf",i.receivedData.from_province),e.R7$(),e.Y8G("ngIf",i.receivedData.from_postal_code),e.R7$(),e.Y8G("ngIf",i.receivedData.from_phone),e.R7$(),e.Y8G("ngIf",i.receivedData.from_email),e.R7$(6),e.SpI("",i.receivedData.to_name?i.receivedData.to_name:"",","),e.R7$(2),e.SpI("",i.receivedData.to_address_line_1?i.receivedData.to_address_line_1:"",","),e.R7$(),e.Y8G("ngIf",i.receivedData.from_address_line_2),e.R7$(),e.Y8G("ngIf",i.receivedData.to_city),e.R7$(),e.Y8G("ngIf",i.receivedData.to_province),e.R7$(),e.Y8G("ngIf",i.receivedData.to_postal_code),e.R7$(),e.Y8G("ngIf",i.receivedData.to_phone),e.R7$(),e.Y8G("ngIf",i.receivedData.to_email),e.R7$(17),e.Y8G("ngForOf",i.receivedData.items),e.R7$(),e.Y8G("ngIf",!(null!=i.receivedData&&i.receivedData.items)||i.receivedData.items.length<1),e.R7$(10),e.SpI("",i.receivedData.currency?i.receivedData.currency:""," "),e.R7$(),e.SpI(" ",e.i5U(91,34,i.getSubtotal(),"1.2-2")," "),e.R7$(4),e.SpI("Vat Tax ",i.receivedData.vat_rate?i.receivedData.vat_rate:"0","% "),e.R7$(3),e.SpI("",i.receivedData.currency?i.receivedData.currency:""," "),e.R7$(),e.SpI(" ",e.i5U(99,37,i.getVatTax(),"1.2-2"),""),e.R7$(4),e.SpI("Discount ",i.receivedData.discount_rate?i.receivedData.discount_rate:"0","% "),e.R7$(3),e.SpI("",i.receivedData.currency?i.receivedData.currency:""," "),e.R7$(),e.SpI(" ",e.i5U(107,40,i.getDiscount(),"1.2-2"),""),e.R7$(10),e.SpI("",i.receivedData.currency?i.receivedData.currency:""," "),e.R7$(2),e.SpI(" ",e.i5U(119,43,i.getTotal(),"1.2-2"),""),e.R7$(7),e.JRh(i.receivedData.note?i.receivedData.note:"N/A"),e.R7$(14),e.Y8G("ngIf",i.invoice_link))}
1,dependencies:[Fe.Sq,Fe.bT,E.SrT,Fe.QX],styles:['.col-in1[_ngcontent-%COMP%]{border-right:1px solid #E7E7E7;padding-right:0}.invoice_class[_ngcontent-%COMP%]{padding:3em}.download_in_btn_class[_ngcontent-%COMP%]{padding:20px}.download_btnInvoice[_ngcontent-%COMP%]{padding-left:0}.in_head[_ngcontent-%COMP%]{font-size:40px;color:#fe6b00;font-weight:600}.in_circle[_ngcontent-%COMP%]{width:80px;height:80px;border-radius:50%;background-color:#e1e1e1;color:#fff;font-size:16px;font-weight:500;display:flex;justify-content:center;align-items:center;overflow:hidden;float:right}.in_logo[_ngcontent-%COMP%]{top:0;left:0;width:100%;height:100%;object-fit:cover}.in_number[_ngcontent-%COMP%]{font-size:20px;font-weight:500;color:#000}.in_b[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.in_date[_ngcontent-%COMP%]{font-size:16px;font-weight:500;color:#000}.in_subHead[_ngcontent-%COMP%]{font-size:20px;font-weight:600}.in_ad_line[_ngcontent-%COMP%]{display:block;font-size:14px;font-weight:500;color:#344054}.div_line_in[_ngcontent-%COMP%]{width:100%;border-bottom:1px solid #DADADA;margin-top:20px;margin-bottom:20px}.item_details_table[_ngcontent-%COMP%]{font-size:20px;font-weight:600;color:#000}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-bottom:hidden;border-top:hidden;color:#1c1c1c;font-weight:500;font-size:16px;font-weight:600}.table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-top:none}.item_invoice_t[_ngcontent-%COMP%] .other_td[_ngcontent-%COMP%]{padding-top:5px;padding-bottom:0}.item_invoice_t[_ngcontent-%COMP%] .other_des[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.other_des[_ngcontent-%COMP%]{font-size:14px;color:#6a707a;font-weight:500}.in_sub_tatal_data[_ngcontent-%COMP%]{float:right;font-size:16px;font-weight:600}.in_sub_tatal[_ngcontent-%COMP%]{font-size:16px;font-weight:600}.in_sub_tatal_end[_ngcontent-%COMP%]{font-size:24px;font-weight:600}.in_sub_tatal_data_end[_ngcontent-%COMP%]{font-size:36px;font-weight:700}.total_invoice_b[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;height:60px;background-color:#fff5ee}.centered-content[_ngcontent-%COMP%]{text-align:center;font-size:24px;font-weight:700;color:#fe6b00}.dowload_ICOn[_ngcontent-%COMP%], .link_ICOn[_ngcontent-%COMP%]{width:18px;height:18px;margin-right:10px;cursor:pointer}.link_ICOn_text[_ngcontent-%COMP%]{color:#7000ff;font-size:16px;font-weight:500;cursor:pointer}.dowload_ICOn_text[_ngcontent-%COMP%]{color:#000;font-size:16px;font-weight:500;cursor:pointer}.note[_ngcontent-%COMP%]{color:#344054;font-size:16px;font-weight:600}.note_data[_ngcontent-%COMP%]{font-size:14px;color:#6a707a;font-weight:500}.thank_you[_ngcontent-%COMP%]{color:#fe6b00;font-weight:600;font-size:24px}.tooltip[_ngcontent-%COMP%]{position:relative;display:inline-block}.tooltip[_ngcontent-%COMP%] .tooltiptext[_ngcontent-%COMP%]{visibility:hidden;width:140px;background-color:#555;color:#fff;text-align:center;border-radius:6px;padding:5px;position:absolute;z-index:1;bottom:150%;left:50%;margin-left:-75px;opacity:0;transition:opacity .3s}.tooltip[_ngcontent-%COMP%] .tooltiptext[_ngcontent-%COMP%]:after{content:"";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#555 transparent transparent transparent}.tooltip[_ngcontent-%COMP%]:hover .tooltiptext[_ngcontent-%COMP%]{visibility:visible;opacity:1}']})}return n})();const ET=["imageInput"],so=n=>({"form-control-danger":n}),F4=n=>({disabled:n});function PT(n,a){if(1&n&&(e.j41(0,"option",36),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.Y8G("value",t.id),e.R7$(),e.JRh(t.name)}}function MT(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Template is required!"),e.k0s())}function OT(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,MT,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.templateform.get("invoice_template_id").errors.required)}}function DT(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",6)(1,"div",24)(2,"form",23)(3,"div",25)(4,"div",26)(5,"label",27),e.EFF(6,"Select teplate"),e.j41(7,"span",28),e.EFF(8,"*"),e.k0s()(),e.j41(9,"select",29)(10,"option",30),e.EFF(11,"Select template"),e.k0s(),e.DNE(12,PT,2,2,"option",31),e.k0s(),e.DNE(13,OT,2,1,"div",32),e.k0s()(),e.j41(14,"div",33)(15,"button",34),e.EFF(16," Cancel "),e.k0s(),e.j41(17,"button",35),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.stepperChange("invoice"))}),e.EFF(18," Next "),e.k0s()()()()()}if(2&n){const t=e.XpG();e.R7$(2),e.Y8G("formGroup",t.templateform),e.R7$(7),e.Y8G("ngClass",e.eq3(5,so,(t.templateform.get("invoice_template_id").dirty||t.templateform.get("invoice_template_id").touched)&&t.templateform.get("invoice_template_id").errors)),e.R7$(3),e.Y8G("ngForOf",t.templates),e.R7$(),e.Y8G("ngIf",t.templateform.get("invoice_template_id").invalid&&(t.templateform.get("invoice_template_id").dirty||t.templateform.get("invoice_template_id").touched)),e.R7$(4),e.Y8G("disabled",!t.templateform.valid)}}function IT(n,a){1&n&&e.nrm(0,"img",115)}function jT(n,a){if(1&n&&e.nrm(0,"img",116),2&n){const t=e.XpG(2);e.FS9("src",t.image,e.B4B)}}function RT(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Email is required!"),e.k0s())}function LT(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,RT,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.invoiceform.get("from_email").errors.required)}}function NT(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Contact number is required!"),e.k0s())}function BT(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,NT,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.invoiceform.get("from_phone").errors.required)}}function GT(n,a){if(1&n){const t=e.RV6();e.j41(0,"span",117),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2),s=e.sdS(32);return e.Njj(i.openUpdateFromAddress(s,i.formData))}),e.EFF(1,"Edit "),e.j41(2,"span"),e.nrm(3,"img",118),e.k0s()()}}function VT(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI("",t.formData.from_address_line_2?t.formData.from_address_line_2:""," ,")}}function zT(n,a){if(1&n&&(e.j41(0,"span",120),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI("",t.formData.from_city?t.formData.from_city:""," ,")}}function UT(n,a){if(1&n&&(e.j41(0,"span",120),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI("",t.formData.from_province?t.formData.from_province:""," .")}}function YT(n,a){if(1&n&&(e.j41(0,"span",120),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.JRh(t.formData.from_postal_code?t.formData.from_postal_code:"")}}function WT(n,a){if(1&n&&(e.j41(0,"div",119)(1,"span",120),e.EFF(2),e.k0s(),e.j41(3,"span",120),e.EFF(4),e.DNE(
15,VT,2,1,"span",32),e.k0s(),e.DNE(6,zT,2,1,"span",121)(7,UT,2,1,"span",121)(8,YT,2,1,"span",121),e.k0s()),2&n){const t=e.XpG(2);e.R7$(2),e.SpI("",t.formData.from_name?t.formData.from_name:""," ,"),e.R7$(2),e.SpI("",t.formData.from_address_line_1?t.formData.from_address_line_1:""," ,"),e.R7$(),e.Y8G("ngIf",t.formData.from_address_line_2),e.R7$(),e.Y8G("ngIf",t.formData.from_city),e.R7$(),e.Y8G("ngIf",t.formData.from_province),e.R7$(),e.Y8G("ngIf",t.formData.from_postal_code)}}function $T(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Email is required!"),e.k0s())}function qT(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,$T,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.invoiceform.get("to_email").errors.required)}}function XT(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Contact number is required!"),e.k0s())}function HT(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,XT,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.invoiceform.get("to_phone").errors.required)}}function KT(n,a){if(1&n){const t=e.RV6();e.j41(0,"span",117),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2),s=e.sdS(36);return e.Njj(i.openUpdateToAddress(s,i.addressToData))}),e.EFF(1,"Edit "),e.j41(2,"span"),e.nrm(3,"img",118),e.k0s()()}}function JT(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI("",t.addressToData.to_address_line_2?t.addressToData.to_address_line_2:""," ,")}}function ZT(n,a){if(1&n&&(e.j41(0,"span",120),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI("",t.addressToData.to_city?t.addressToData.to_city:""," ,")}}function QT(n,a){if(1&n&&(e.j41(0,"span",120),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI("",t.addressToData.to_province?t.addressToData.to_province:""," .")}}function eS(n,a){if(1&n&&(e.j41(0,"span",120),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.JRh(t.addressToData.to_postal_code?t.addressToData.to_postal_code:"")}}function tS(n,a){if(1&n&&(e.j41(0,"div",119)(1,"span",120),e.EFF(2),e.k0s(),e.j41(3,"span",120),e.EFF(4),e.DNE(5,JT,2,1,"span",32),e.k0s(),e.DNE(6,ZT,2,1,"span",121)(7,QT,2,1,"span",121)(8,eS,2,1,"span",121),e.k0s()),2&n){const t=e.XpG(2);e.R7$(2),e.SpI("",t.addressToData.to_name?t.addressToData.to_name:""," ,"),e.R7$(2),e.SpI("",t.addressToData.to_address_line_1?t.addressToData.to_address_line_1:""," ,"),e.R7$(),e.Y8G("ngIf",t.addressToData.from_address_line_2),e.R7$(),e.Y8G("ngIf",t.addressToData.to_city),e.R7$(),e.Y8G("ngIf",t.addressToData.to_province),e.R7$(),e.Y8G("ngIf",t.addressToData.to_postal_code)}}function nS(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Invoice date is required!"),e.k0s())}function iS(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Due date must be after the invoice date!"),e.k0s())}function rS(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,nS,2,0,"small",37)(2,iS,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.invoiceform.get("invoice_date").errors.required),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("invoice_date").errors.invalidDueDate)}}function aS(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Due date is required!"),e.k0s())}function oS(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,aS,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.invoiceform.get("due_date").errors.required)}}function sS(n,a){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"tr")(2,"td",122),e.EFF(3),e.k0s(),e.j41(4,"td",123),e.EFF(5),e.k0s(),e.j41(6,"td",123),e.EFF(7),e.k0s(),e.j41(8,"td",124)(9,"span")(10,"img",125),e.bIt("click",function(){e.eBV(t);const i=e.XpG().index,s=e.XpG(2);return e.Njj(s.editItem(i))}),e.k0s()(),e.j41(11,"span")(12,"img",126),e.bIt("click",function(){e.eBV(t);const i=e.XpG().index,s=e.XpG(2);return e.Njj(s.deleteItem(i))}),e.k0s()()()(),e.j41(13,"tr",127)(14,"td",128),e.EFF(15),e.k0s()(),e.j41(16,"tr")(17,"td",129),e.nrm(18,"div",130),e.k0s()(),e.bVm()}if(2&n){const t=e.XpG().$implicit;e.R7$(3),e.JRh(t.item_name),e.R7$(2),e.JRh(t.quantity),e.R7$(2),e.JRh(t.amount),e.R7$(8),e.JRh(t.item_description)}}function lS(n,a){if(1&n&&(e.qex(0),e.DNE(1,sS,19,4,"ng-container",32),e.bVm()),2&n){const t=a.$implicit;e.R7$(),e.Y8G("ngIf",!t.is_delete)}}function cS(n,a){1&n&&(e.j41(0,"tr")(1,"td",131),e.EFF(2," Items not assigned with this organization"),e.k0s()())}function dS(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Name date is required!"),e.k0s())}function uS(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,dS,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.itemForm.get("item_name").errors.required)}}function fS(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Quantity is required!"),e.k0s())}function pS(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,fS,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.itemForm.get("quantity").errors.required)}}function hS(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Amount is required!"),e.k0s())}function mS(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,hS,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.itemForm.get("amount").errors.required)}}function gS(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Discription is required!"),e.k0s())}function _S(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,gS,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.itemForm.get("item_description").errors.required)}}function vS(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Note is required!"),e.k0s())}function xS(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,vS,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.invoiceform.get("note").errors.required)}}function bS(n,a){if(1&n&&(e.j41(0,"option",36),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.Y8G("value",t.code),e.R7$(),e.JRh(t.code)}}function yS(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Currency is required!"),e.k0s())}function CS(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,yS,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.invoiceform.get("currency").errors.required)}}function kS(n,a){if(1&n&&(e.j41(0,"option",36),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.Y8G("value",t.id),e.R7$(),e.JRh(t.app_name)}}function wS(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Payment method is required!"),e.k0s())}function FS(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,wS,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.invoiceform.get("payment_method").errors.required)}}function AS(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Discount rate is required!"),e.k0s())}function TS(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,AS,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.invoiceform.get("discount_rate").errors.required)}}function SS(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Vat number is required!"),e.k0s())}function ES(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,SS,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.invoiceform.get("vat_number").errors.required)}}function PS(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Vat rate is required!"),e.k0s())}function MS(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,PS,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.invoiceform.get("vat_rate").errors.required)}}function OS(n,a){1&n&&e.nrm(0,"span",132)}function DS(n,a){1&n&&(e.j41(0,"span",133),e.EFF(1,"Loading..."),e.k0s())}function IS(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",6)(1,"div",39)(2,"div",25)(3,"div",40)(4,"div",41)(5,"div",42)(6,"div")(7,"span",43),e.EFF(8,"#"),e.k0s(),e.j41(9,"span",44),e.nrm(10,"input",45),e.k0s(),e.j41(11,"div",46),e.EFF(12,"Invoice no"),e.j41(13,"span",28),e.EFF(14,"*"),e.k0s()()()(),e.j41(15,"div",47),e.nrm(16,"hr",48),e.k0s(),e.j41(17,"div",49)(18,"div")(19,"input",50,4),e.bIt("change",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onFileChange(i))}),e.k0s(),e.j41(21,"div",51),e.bIt("click",function(){e.eBV(t);const i=e.sdS(20);return e.Njj(i.click())}),e.DNE(22,IT,1,0,"img",52)(23,jT,1,1,"img",53),e.k0s(),e.j41(24,"span")(25,"div",25)(26,"div",54)(27,"span",46),e.EFF(28,"Logo"),e.j41(29,"span",28),e.EFF(30,"*"),e.k0s()()()()()()(),e.j41(31,"div",55),e.nrm(32,"hr",48),e.k0s()(),e.nrm(33,"div",56),e.j41(34,"div",57)(35,"div",58)(36,"h4",59),e.EFF(37,"Bill from"),e.k0s(),e.j41(38,"div",60)(39,"div",61)(40,"label",62),e.
1EFF(41,"Email"),e.j41(42,"span",28),e.EFF(43,"*"),e.k0s()(),e.nrm(44,"input",63),e.DNE(45,LT,2,1,"div",32),e.k0s(),e.j41(46,"div",61)(47,"label",64),e.EFF(48,"Contact number"),e.j41(49,"span",28),e.EFF(50,"*"),e.k0s()(),e.nrm(51,"input",65),e.DNE(52,BT,2,1,"div",32),e.k0s(),e.j41(53,"div",66)(54,"div",67)(55,"span")(56,"img",68),e.bIt("click",function(){e.eBV(t);const i=e.XpG(),s=e.sdS(30);return e.Njj(i.openModal(s))}),e.k0s()(),e.j41(57,"span",69),e.EFF(58,"Add your address (from)"),e.j41(59,"span",28),e.EFF(60,"*"),e.k0s()(),e.DNE(61,GT,4,0,"span",70)(62,WT,9,6,"div",71),e.k0s()()()(),e.j41(63,"div",58)(64,"h4",59),e.EFF(65,"Bill to"),e.k0s(),e.j41(66,"div",60)(67,"div",61)(68,"label",72),e.EFF(69,"Email"),e.j41(70,"span",28),e.EFF(71,"*"),e.k0s()(),e.nrm(72,"input",73),e.DNE(73,qT,2,1,"div",32),e.k0s(),e.j41(74,"div",61)(75,"label",74),e.EFF(76,"Contact number "),e.j41(77,"span",28),e.EFF(78,"*"),e.k0s()(),e.nrm(79,"input",75),e.DNE(80,HT,2,1,"div",32),e.k0s(),e.j41(81,"div",66)(82,"div",67)(83,"span")(84,"img",68),e.bIt("click",function(){e.eBV(t);const i=e.XpG(),s=e.sdS(34);return e.Njj(i.openToModal(s))}),e.k0s()(),e.j41(85,"span",69),e.EFF(86,"Add your address (to) "),e.j41(87,"span",28),e.EFF(88,"*"),e.k0s()(),e.DNE(89,KT,4,0,"span",70)(90,tS,9,6,"div",71),e.k0s()()()()(),e.nrm(91,"div",76),e.j41(92,"div",60)(93,"div",77)(94,"label",78),e.EFF(95,"Invoice Date "),e.j41(96,"span",28),e.EFF(97,"*"),e.k0s()(),e.j41(98,"input",79),e.bIt("change",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.onInvoiceDateChange())}),e.k0s(),e.DNE(99,rS,3,2,"div",32),e.k0s(),e.j41(100,"div",77)(101,"label",27),e.EFF(102,"Due Date "),e.j41(103,"span",28),e.EFF(104,"*"),e.k0s()(),e.nrm(105,"input",80),e.DNE(106,oS,2,1,"div",32),e.k0s()(),e.nrm(107,"div",81),e.j41(108,"h4",59),e.EFF(109,"Item Details"),e.k0s(),e.j41(110,"div",82)(111,"table",83)(112,"thead",84)(113,"tr")(114,"th",85),e.EFF(115,"Item Name"),e.k0s(),e.j41(116,"th"),e.EFF(117,"Quantity"),e.k0s(),e.j41(118,"th"),e.EFF(119,"Amount"),e.k0s(),e.nrm(120,"th"),e.k0s()(),e.j41(121,"tbody",86),e.DNE(122,lS,2,1,"ng-container",87)(123,cS,3,0,"tr",32),e.k0s()(),e.j41(124,"form",23)(125,"div",25)(126,"div",88)(127,"div",25)(128,"div",89)(129,"div",90),e.nrm(130,"input",91),e.DNE(131,uS,2,1,"div",32),e.k0s()(),e.j41(132,"div",89)(133,"div",90),e.nrm(134,"input",92),e.DNE(135,pS,2,1,"div",32),e.k0s()(),e.j41(136,"div",89)(137,"div",90),e.nrm(138,"input",93),e.DNE(139,mS,2,1,"div",32),e.k0s()()(),e.j41(140,"div",25)(141,"div",94)(142,"div",90),e.nrm(143,"input",95),e.DNE(144,_S,2,1,"div",32),e.k0s()()()(),e.j41(145,"div",96)(146,"span",97)(147,"img",98),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.onSubmit2())}),e.k0s()()()()()(),e.nrm(148,"div",99),e.j41(149,"div",25)(150,"div",61)(151,"label",100),e.EFF(152,"Note "),e.j41(153,"span",28),e.EFF(154,"*"),e.k0s()(),e.nrm(155,"textarea",101),e.DNE(156,xS,2,1,"div",32),e.k0s()()(),e.j41(157,"div",102)(158,"div",25)(159,"div",61)(160,"label",27),e.EFF(161,"Select Currency "),e.j41(162,"span",28),e.EFF(163,"*"),e.k0s()(),e.j41(164,"select",103)(165,"option",104),e.EFF(166,"Select currency"),e.k0s(),e.DNE(167,bS,2,2,"option",31),e.k0s(),e.DNE(168,CS,2,1,"div",32),e.k0s(),e.j41(169,"div",61)(170,"label",27),e.EFF(171,"Select payment method "),e.j41(172,"span",28),e.EFF(173,"*"),e.k0s()(),e.j41(174,"select",105)(175,"option",30),e.EFF(176,"Select gateway"),e.k0s(),e.DNE(177,kS,2,2,"option",31),e.k0s(),e.DNE(178,FS,2,1,"div",32),e.k0s(),e.j41(179,"div",61)(180,"label",106),e.EFF(181,"Discount rate"),e.k0s(),e.nrm(182,"input",107),e.DNE(183,TS,2,1,"div",32),e.k0s(),e.j41(184,"div",61)(185,"label",108),e.EFF(186,"Vat number"),e.k0s(),e.nrm(187,"input",109),e.DNE(188,ES,2,1,"div",32),e.k0s(),e.j41(189,"div",61)(190,"label",110),e.EFF(191,"Vat rate(%)"),e.k0s(),e.nrm(192,"input",111),e.DNE(193,MS,2,1,"div",32),e.k0s()(),e.j41(194,"div",33)(195,"button",34),e.EFF(196," Cancel "),e.k0s(),e.j41(197,"button",112),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.submit_application())}),e.DNE(198,OS,1,0,"span",113)(199,DS,2,0,"span",114),e.EFF(200," Complete "),e.k0s()()()()()()}if(2&n){const t=e.XpG();e.R7$(22),e.Y8G("ngIf",!t.image),e.R7$(),e.Y8G("ngIf",t.image),e.R7$(21),e.Y8G("ngClass",e.eq3(49,so,(t.invoiceform.get("from_email").dirty||t.invoiceform.get("from_email").touched)&&t.invoiceform.get("from_email").errors)),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("from_email").invalid&&(t.invoiceform.get("from_email").dirty||t.invoiceform.get("from_email").touched)),e.R7$(6),e.Y8G("ngClass",e.eq3(51,so,(t.invoiceform.get("from_phone").dirty||t.invoiceform.get("from_phone").touched)&&t.invoiceform.get("from_phone").errors)),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("from_phone").invalid&&(t.invoiceform.get("from_phone").dirty||t.invoiceform.get("from_phone").touched)),e.R7$(4),e.Y8G("ngClass",e.eq3(53,F4,!(t.formData&&0==t.formData.length))),e.R7$(5),e.Y8G("ngIf",t.formData&&0!==(null==t.formData?null:t.formData.length)),e.R7$(),e.Y8G("ngIf",t.formData),e.R7$(10),e.Y8G("ngClass",e.eq3(55,so,(t.invoiceform.get("to_email").dirty||t.invoiceform.get("to_email").touched)&&t.invoiceform.get("to_email").errors)),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("to_email").invalid&&(t.invoiceform.get("to_email").dirty||t.invoiceform.get("to_email").touched)),e.R7$(6),e.Y8G("ngClass",e.eq3(57,so,(t.invoiceform.get("to_phone").dirty||t.invoiceform.get("to_phone").touched)&&t.invoiceform.get("to_phone").errors)),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("to_phone").invalid&&(t.invoiceform.get("to_phone").dirty||t.invoiceform.get("to_phone").touched)),e.R7$(4),e.Y8G("ngClass",e.eq3(59,F4,t.addressToData&&0!==t.addressToData.length)),e.R7$(5),e.Y8G("ngIf",t.addressToData&&0!==(null==t.addressToData?null:t.addressToData.length)),e.R7$(),e.Y8G("ngIf",t.addressToData),e.R7$(8),e.Y8G("ngClass",e.eq3(61,so,t.invoiceform.get("invoice_date").invalid&&t.invoiceform.get("invoice_date").touched)),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("invoice_date").invalid&&(t.invoiceform.get("invoice_date").dirty||t.invoiceform.get("invoice_date").touched)),e.R7$(6),e.Y8G("min",t.invoiceform.get("due_date").errors&&t.invoiceform.get("due_date").errors.invalidDueDate?null:t.invoiceform.get("invoice_date").value)("ngClass",e.eq3(63,so,t.invoiceform.get("due_date").invalid&&t.invoiceform.get("due_date").touched)),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("due_date").invalid&&(t.invoiceform.get("due_date").dirty||t.invoiceform.get("due_date").touched)),e.R7$(16),e.Y8G("ngForOf",t.itemsData),e.R7$(),e.Y8G("ngIf",t.itemsData.length<1),e.R7$(),e.Y8G("formGroup",t.itemForm),e.R7$(6),e.Y8G("ngClass",e.eq3(65,so,(t.itemForm.get("item_name").dirty||t.itemForm.get("item_name").touched)&&t.itemForm.get("item_name").errors)),e.R7$(),e.Y8G("ngIf",t.itemForm.get("item_name").invalid&&(t.itemForm.get("item_name").dirty||t.itemForm.get("item_name").touched)),e.R7$(3),e.Y8G("ngClass",e.eq3(67,so,(t.itemForm.get("quantity").dirty||t.itemForm.get("quantity").touched)&&t.itemForm.get("quantity").errors)),e.R7$(),e.Y8G("ngIf",t.itemForm.get("quantity").invalid&&(t.itemForm.get("quantity").dirty||t.itemForm.get("quantity").touched)),e.R7$(3),e.Y8G("ngClass",e.eq3(69,so,(t.itemForm.get("amount").dirty||t.itemForm.get("amount").touched)&&t.itemForm.get("amount").errors)),e.R7$(),e.Y8G("ngIf",t.itemForm.get("amount").invalid&&(t.itemForm.get("amount").dirty||t.itemForm.get("amount").touched)),e.R7$(4),e.Y8G("ngClass",e.eq3(71,so,(t.itemForm.get("item_description").dirty||t.itemForm.get("item_description").touched)&&t.itemForm.get("item_description").errors)),e.R7$(),e.Y8G("ngIf",t.itemForm.get("item_description").invalid&&(t.itemForm.get("item_description").dirty||t.itemForm.get("item_description").touched)),e.R7$(11),e.Y8G("ngClass",e.eq3(73,so,(t.invoiceform.get("note").dirty||t.invoiceform.get("note").touched)&&t.invoiceform.get("note").errors)),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("note").invalid&&(t.invoiceform.get("note").dirty||t.invoiceform.get("note").touched)),e.R7$(8),e.Y8G("ngClass",e.eq3(75,so,(t.invoiceform.get("currency").dirty||t.invoiceform.get("currency").touched)&&t.invoiceform.get("currency").errors)),e.R7$(3),e.Y8G("ngForOf",t.currency_data),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("currency").invalid&&(t.invoiceform.get("currency").dirty||t.invoiceform.get("currency").touched)),e.R7$(6),e.Y8G("ngClass",e.eq3(77,so,(t.invoiceform.get("payment_method").dirty||t.invoiceform.get("payment_method").touched)&&t.invoiceform.get("payment_method").errors)),e.R7$(3),e.Y8G("ngForOf",t.applist),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("payment_method").invalid&&(t.invoiceform.get("payment_method").dirty||t.invoiceform.get("payment_method").touched)),e.R7$(4),e.Y8G("ngClass",e.eq3(79,so,(t.invoiceform.get("discount_rate").dirty||t.invoiceform.get("discount_rate").touched)&&t.invoiceform.get("discount_rate").errors)),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("discount_rate").invalid&&(t.invoiceform.get("discount_rate").dirty||t.invoiceform.get("discount_rate").touched)),e.R7$(4),e.Y8G("ngClass",e.eq3(81,so,(t.invoiceform.get("vat_number").dirty||t.invoiceform.get("vat_number").touched)&&t.invoiceform.get("vat_number").errors)),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("vat_number").invalid&&(t.invoiceform.get("vat_number").dirty||t.invoiceform.get("vat_number").touched)),e.R7$(4),e.Y8G("ngClass",e.eq3(83,so,(t.invoiceform.get("vat_rate").dirty||t.invoiceform.get("vat_rate").touched)&&t.invoiceform.get("vat_rate").errors)),e.R7$(),e.Y8G("ngIf",t.invoiceform.get("vat_rate").invalid&&(t.invoiceform.get("vat_rate").dirty||t.invoiceform.get("vat_rate").touched)),e.R7$(4),e.Y8G("disabled",!(t.templateform.valid&&t.formData&&t.addressToData&&0!==t.itemsData.length&&t.invoiceform.get("currency").valid&&t.invoiceform.get("payment_method").valid&&t.invoiceform.get("note").valid&&t.invoiceform.get("invoice_date").valid&&t.invoiceform.get("to_email").valid&&t.invoiceform.get("to_phone").valid&&t.invoiceform.get("invoice_number").valid)),e.R7$(),e.Y8G("ngIf",t.is_loading),e.R7$(),e.Y8G("ngIf",t.is_loading)}}function jS(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Name is required!"),e.k0s())}function RS(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,jS,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.fromAddressform.get("from_name").errors.required)}}function LS(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Address is required!"),e.k0s())}function NS(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,LS,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.fromAddressform.get("from_address_line_1").errors.required)}}function BS(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Address is required!"),e.k0s())}function GS(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,BS,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.fromAddressform.get("from_address_line_2").errors.required)}}function VS(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," City is required!"),e.k0s())}function zS(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,VS,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.fromAddressform.get("from_city").errors.required)}}function US(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Province is required!"),e.k0s())}function YS(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,US,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.fromAddressform.get("from_province").errors.required)}}function WS(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Postal code is required!"),e.k0s())}function $S(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,WS,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.fromAddressform.get("from_postal_code").errors.required)}}function qS(n,a){if(1&n){const t=e.RV6();e.j41(0,"form",23)(1,"nb-card",134)(2,"nb-card-header")(3,"div",135)(4,"h4",136),e.EFF(5," Write your address "),e.k0s(),e.j41(6,"button",137),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.cancel())}),e.j41(7,"a"),e.nrm(8,"i",138),e.k0s()()()(),e.j41(9,"nb-card-body")(10,"div",25)(11,"div",139)(12,"div",140)(13,"label",141),e.EFF(14,"Name"),e.j41(15,"span",28),e.EFF(16,"*"),e.k0s()(),e.nrm(17,"input",142),e.DNE(18,RS,2,1,"div",32),e.k0s()(),e.j41(19,"div",139)(20,"div",140)(21,"label",141),e.EFF(22,"Address line 1"),e.j41(23,"span",28),e.EFF(24,"*"),e.k0s()(),e.nrm(25,"input",143),e.DNE(26,NS,2,1,"div",32),e.k0s()(),e.j41(27,"div",139)(28,"div",140)(29,"label",141),e.EFF(30,"Address line 2 "),e.j41(31,"span",28),e.EFF(32,"*"),e.k0s()(),e.nrm(33,"input",144),e.DNE(34,GS,2,1,"div",32),e.k0s()()(),e.j41(35,"div",13)(36,"div",89)(37,"div",140)(38,"label",141),e.EFF(39,"City"),e.j41(40,"span",28),e.EFF(41,"*"),e.k0s()(),e.nrm(42,"input",145),e.DNE(43,zS,2,1,"div",32),e.k0s()(),e.j41(44,"div",89)(45,"div",140)(46,"label",141),e.EFF(47,"Province"),e.j41(48,"span",28),e.EFF(49,"*"),e.k0s()(),e.nrm(50,"input",146),e.DNE(51,YS,2,1,"div",32),e.k0s()(),e.j41(52,"div",89)(53,"div",140)(54,"label",141),e.EFF(55,"Postal Code"),e.j41(56,"span",28),e.EFF(57,"*"),e.k0s()(),e.nrm(58,"
1input",147),e.DNE(59,$S,2,1,"div",32),e.k0s()()()(),e.j41(60,"nb-card-footer")(61,"div",148)(62,"button",149),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.cancel())}),e.EFF(63,"Cancel"),e.k0s(),e.j41(64,"button",150),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.addFromAddress())}),e.EFF(65,"Save "),e.k0s()()()()()}if(2&n){const t=e.XpG();e.Y8G("formGroup",t.fromAddressform),e.R7$(17),e.Y8G("ngClass",e.eq3(15,so,(t.fromAddressform.get("from_name").dirty||t.fromAddressform.get("from_name").touched)&&t.fromAddressform.get("from_name").errors)),e.R7$(),e.Y8G("ngIf",t.fromAddressform.get("from_name").invalid&&(t.fromAddressform.get("from_name").dirty||t.fromAddressform.get("from_name").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(17,so,(t.fromAddressform.get("from_address_line_1").dirty||t.fromAddressform.get("from_address_line_1").touched)&&t.fromAddressform.get("from_address_line_1").errors)),e.R7$(),e.Y8G("ngIf",t.fromAddressform.get("from_address_line_1").invalid&&(t.fromAddressform.get("from_address_line_1").dirty||t.fromAddressform.get("from_address_line_1").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(19,so,(t.fromAddressform.get("from_address_line_2").dirty||t.fromAddressform.get("from_address_line_2").touched)&&t.fromAddressform.get("from_address_line_2").errors)),e.R7$(),e.Y8G("ngIf",t.fromAddressform.get("from_address_line_2").invalid&&(t.fromAddressform.get("from_address_line_2").dirty||t.fromAddressform.get("from_address_line_2").touched)),e.R7$(8),e.Y8G("ngClass",e.eq3(21,so,(t.fromAddressform.get("from_city").dirty||t.fromAddressform.get("from_city").touched)&&t.fromAddressform.get("from_city").errors)),e.R7$(),e.Y8G("ngIf",t.fromAddressform.get("from_city").invalid&&(t.fromAddressform.get("from_city").dirty||t.fromAddressform.get("from_city").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(23,so,(t.fromAddressform.get("from_province").dirty||t.fromAddressform.get("from_province").touched)&&t.fromAddressform.get("from_province").errors)),e.R7$(),e.Y8G("ngIf",t.fromAddressform.get("from_province").invalid&&(t.fromAddressform.get("from_province").dirty||t.fromAddressform.get("from_province").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(25,so,(t.fromAddressform.get("from_postal_code").dirty||t.fromAddressform.get("from_postal_code").touched)&&t.fromAddressform.get("from_postal_code").errors)),e.R7$(),e.Y8G("ngIf",t.fromAddressform.get("from_postal_code").invalid&&(t.fromAddressform.get("from_postal_code").dirty||t.fromAddressform.get("from_postal_code").touched)),e.R7$(5),e.Y8G("nbSpinner",t.is_requesting)("disabled",!t.fromAddressform.valid)}}function XS(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Name is required!"),e.k0s())}function HS(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,XS,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.fromUpdateAddressform.get("from_name").errors.required)}}function KS(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Address is required!"),e.k0s())}function JS(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,KS,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.fromUpdateAddressform.get("from_address_line_1").errors.required)}}function ZS(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Address is required!"),e.k0s())}function QS(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,ZS,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.fromUpdateAddressform.get("from_address_line_2").errors.required)}}function e8(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," City is required!"),e.k0s())}function t8(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,e8,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.fromUpdateAddressform.get("from_city").errors.required)}}function n8(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Province is required!"),e.k0s())}function i8(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,n8,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.fromUpdateAddressform.get("from_province").errors.required)}}function r8(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Postal code is required!"),e.k0s())}function a8(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,r8,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.fromUpdateAddressform.get("from_postal_code").errors.required)}}function o8(n,a){if(1&n){const t=e.RV6();e.j41(0,"form",23)(1,"nb-card",134)(2,"nb-card-header")(3,"div",135)(4,"h4",136),e.EFF(5," Update your address "),e.k0s(),e.j41(6,"button",137),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.cancelUpdate())}),e.j41(7,"a"),e.nrm(8,"i",138),e.k0s()()()(),e.j41(9,"nb-card-body")(10,"div",25)(11,"div",139)(12,"div",140)(13,"label",141),e.EFF(14,"Name"),e.j41(15,"span",28),e.EFF(16,"*"),e.k0s()(),e.nrm(17,"input",151),e.DNE(18,HS,2,1,"div",32),e.k0s()(),e.j41(19,"div",139)(20,"div",140)(21,"label",141),e.EFF(22,"Address line 1"),e.j41(23,"span",28),e.EFF(24,"*"),e.k0s()(),e.nrm(25,"input",152),e.DNE(26,JS,2,1,"div",32),e.k0s()(),e.j41(27,"div",139)(28,"div",140)(29,"label",141),e.EFF(30,"Address line 2 "),e.j41(31,"span",28),e.EFF(32,"*"),e.k0s()(),e.nrm(33,"input",153),e.DNE(34,QS,2,1,"div",32),e.k0s()()(),e.j41(35,"div",13)(36,"div",89)(37,"div",140)(38,"label",141),e.EFF(39,"City"),e.j41(40,"span",28),e.EFF(41,"*"),e.k0s()(),e.nrm(42,"input",154),e.DNE(43,t8,2,1,"div",32),e.k0s()(),e.j41(44,"div",89)(45,"div",140)(46,"label",141),e.EFF(47,"Province"),e.j41(48,"span",28),e.EFF(49,"*"),e.k0s()(),e.nrm(50,"input",155),e.DNE(51,i8,2,1,"div",32),e.k0s()(),e.j41(52,"div",89)(53,"div",140)(54,"label",141),e.EFF(55,"Postal Code"),e.j41(56,"span",28),e.EFF(57,"*"),e.k0s()(),e.nrm(58,"
1input",156),e.DNE(59,a8,2,1,"div",32),e.k0s()()()(),e.j41(60,"nb-card-footer")(61,"div",148)(62,"button",149),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.cancelUpdate())}),e.EFF(63,"Cancel"),e.k0s(),e.j41(64,"button",150),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.updateFromAddress())}),e.EFF(65,"Update "),e.k0s()()()()()}if(2&n){const t=e.XpG();e.Y8G("formGroup",t.fromUpdateAddressform),e.R7$(17),e.Y8G("ngClass",e.eq3(15,so,(t.fromUpdateAddressform.get("from_name").dirty||t.fromUpdateAddressform.get("from_name").touched)&&t.fromUpdateAddressform.get("from_name").errors)),e.R7$(),e.Y8G("ngIf",t.fromUpdateAddressform.get("from_name").invalid&&(t.fromUpdateAddressform.get("from_name").dirty||t.fromUpdateAddressform.get("from_name").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(17,so,(t.fromUpdateAddressform.get("from_address_line_1").dirty||t.fromUpdateAddressform.get("from_address_line_1").touched)&&t.fromUpdateAddressform.get("from_address_line_1").errors)),e.R7$(),e.Y8G("ngIf",t.fromUpdateAddressform.get("from_address_line_1").invalid&&(t.fromUpdateAddressform.get("from_address_line_1").dirty||t.fromUpdateAddressform.get("from_address_line_1").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(19,so,(t.fromUpdateAddressform.get("from_address_line_2").dirty||t.fromUpdateAddressform.get("from_address_line_2").touched)&&t.fromUpdateAddressform.get("from_address_line_2").errors)),e.R7$(),e.Y8G("ngIf",t.fromUpdateAddressform.get("from_address_line_2").invalid&&(t.fromUpdateAddressform.get("from_address_line_2").dirty||t.fromUpdateAddressform.get("from_address_line_2").touched)),e.R7$(8),e.Y8G("ngClass",e.eq3(21,so,(t.fromUpdateAddressform.get("from_city").dirty||t.fromUpdateAddressform.get("from_city").touched)&&t.fromUpdateAddressform.get("from_city").errors)),e.R7$(),e.Y8G("ngIf",t.fromUpdateAddressform.get("from_city").invalid&&(t.fromUpdateAddressform.get("from_city").dirty||t.fromUpdateAddressform.get("from_city").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(23,so,(t.fromUpdateAddressform.get("from_province").dirty||t.fromUpdateAddressform.get("from_province").touched)&&t.fromUpdateAddressform.get("from_province").errors)),e.R7$(),e.Y8G("ngIf",t.fromUpdateAddressform.get("from_province").invalid&&(t.fromUpdateAddressform.get("from_province").dirty||t.fromUpdateAddressform.get("from_province").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(25,so,(t.fromUpdateAddressform.get("from_postal_code").dirty||t.fromUpdateAddressform.get("from_postal_code").touched)&&t.fromUpdateAddressform.get("from_postal_code").errors)),e.R7$(),e.Y8G("ngIf",t.fromUpdateAddressform.get("from_postal_code").invalid&&(t.fromUpdateAddressform.get("from_postal_code").dirty||t.fromUpdateAddressform.get("from_postal_code").touched)),e.R7$(5),e.Y8G("nbSpinner",t.is_requesting)("disabled",!t.fromUpdateAddressform.valid)}}function s8(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Name is required!"),e.k0s())}function l8(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,s8,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.toAddressform.get("to_name").errors.required)}}function c8(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Adrress is required!"),e.k0s())}function d8(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,c8,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.toAddressform.get("to_address_line_1").errors.required)}}function u8(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Address is required!"),e.k0s())}function f8(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,u8,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.toAddressform.get("to_address_line_2").errors.required)}}function p8(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," City is required!"),e.k0s())}function h8(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,p8,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.toAddressform.get("to_city").errors.required)}}function m8(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Province is required!"),e.k0s())}function g8(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,m8,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.toAddressform.get("to_province").errors.required)}}function _8(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Postal code is required!"),e.k0s())}function v8(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,_8,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.toAddressform.get("to_postal_code").errors.required)}}function x8(n,a){if(1&n){const t=e.RV6();e.j41(0,"form",23)(1,"nb-card",134)(2,"nb-card-header")(3,"div",135)(4,"h4",136),e.EFF(5," Write your address "),e.k0s(),e.j41(6,"button",137),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.cancelTo())}),e.j41(7,"a"),e.nrm(8,"i",138),e.k0s()()()(),e.j41(9,"nb-card-body")(10,"div",25)(11,"div",139)(12,"div",140)(13,"label",141),e.EFF(14,"Name"),e.j41(15,"span",28),e.EFF(16,"*"),e.k0s()(),e.nrm(17,"input",157),e.DNE(18,l8,2,1,"div",32),e.k0s()(),e.j41(19,"div",139)(20,"div",140)(21,"label",141),e.EFF(22,"Address line 1"),e.j41(23,"span",28),e.EFF(24,"*"),e.k0s()(),e.nrm(25,"input",158),e.DNE(26,d8,2,1,"div",32),e.k0s()(),e.j41(27,"div",139)(28,"div",140)(29,"label",141),e.EFF(30,"Address line 2 "),e.j41(31,"span",28),e.EFF(32,"*"),e.k0s()(),e.nrm(33,"input",159),e.DNE(34,f8,2,1,"div",32),e.k0s()()(),e.j41(35,"div",13)(36,"div",89)(37,"div",140)(38,"label",141),e.EFF(39,"City"),e.j41(40,"span",28),e.EFF(41,"*"),e.k0s()(),e.nrm(42,"input",160),e.DNE(43,h8,2,1,"div",32),e.k0s()(),e.j41(44,"div",89)(45,"div",140)(46,"label",141),e.EFF(47,"Province"),e.j41(48,"span",28),e.EFF(49,"*"),e.k0s()(),e.nrm(50,"input",161),e.DNE(51,g8,2,1,"div",32),e.k0s()(),e.j41(52,"div",89)(53,"div",140)(54,"label",141),e.EFF(55,"Postal Code"),e.j41(56,"span",28),e.EFF(57,"*"),e.k0s()(),e.nrm(58,"
1input",162),e.DNE(59,v8,2,1,"div",32),e.k0s()()()(),e.j41(60,"nb-card-footer")(61,"div",148)(62,"button",149),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.cancelTo())}),e.EFF(63,"Cancel"),e.k0s(),e.j41(64,"button",150),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.addToAddress())}),e.EFF(65,"Save "),e.k0s()()()()()}if(2&n){const t=e.XpG();e.Y8G("formGroup",t.toAddressform),e.R7$(17),e.Y8G("ngClass",e.eq3(15,so,(t.toAddressform.get("to_name").dirty||t.toAddressform.get("to_name").touched)&&t.toAddressform.get("to_name").errors)),e.R7$(),e.Y8G("ngIf",t.toAddressform.get("to_name").invalid&&(t.toAddressform.get("to_name").dirty||t.toAddressform.get("to_name").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(17,so,(t.toAddressform.get("to_address_line_1").dirty||t.toAddressform.get("to_address_line_1").touched)&&t.toAddressform.get("to_address_line_1").errors)),e.R7$(),e.Y8G("ngIf",t.toAddressform.get("to_address_line_1").invalid&&(t.toAddressform.get("to_address_line_1").dirty||t.toAddressform.get("to_address_line_1").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(19,so,(t.toAddressform.get("to_address_line_2").dirty||t.toAddressform.get("to_address_line_2").touched)&&t.toAddressform.get("to_address_line_2").errors)),e.R7$(),e.Y8G("ngIf",t.toAddressform.get("to_address_line_2").invalid&&(t.toAddressform.get("to_address_line_2").dirty||t.toAddressform.get("to_address_line_2").touched)),e.R7$(8),e.Y8G("ngClass",e.eq3(21,so,(t.toAddressform.get("to_city").dirty||t.toAddressform.get("to_city").touched)&&t.toAddressform.get("to_city").errors)),e.R7$(),e.Y8G("ngIf",t.toAddressform.get("to_city").invalid&&(t.toAddressform.get("to_city").dirty||t.toAddressform.get("to_city").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(23,so,(t.toAddressform.get("to_province").dirty||t.toAddressform.get("to_province").touched)&&t.toAddressform.get("to_province").errors)),e.R7$(),e.Y8G("ngIf",t.toAddressform.get("to_province").invalid&&(t.toAddressform.get("to_province").dirty||t.toAddressform.get("to_province").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(25,so,(t.toAddressform.get("to_postal_code").dirty||t.toAddressform.get("to_postal_code").touched)&&t.toAddressform.get("to_postal_code").errors)),e.R7$(),e.Y8G("ngIf",t.toAddressform.get("to_postal_code").invalid&&(t.toAddressform.get("to_postal_code").dirty||t.toAddressform.get("to_postal_code").touched)),e.R7$(5),e.Y8G("nbSpinner",t.is_requesting)("disabled",!t.toAddressform.valid)}}function b8(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Name is required!"),e.k0s())}function y8(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,b8,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.toUpdateAddressform.get("to_name").errors.required)}}function C8(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," address is required!"),e.k0s())}function k8(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,C8,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.toUpdateAddressform.get("to_address_line_1").errors.required)}}function w8(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Address is required!"),e.k0s())}function F8(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,w8,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.toUpdateAddressform.get("to_address_line_2").errors.required)}}function A8(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," City is required!"),e.k0s())}function T8(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,A8,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.toUpdateAddressform.get("to_city").errors.required)}}function S8(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Province is required!"),e.k0s())}function E8(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,S8,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.toUpdateAddressform.get("to_province").errors.required)}}function P8(n,a){1&n&&(e.j41(0,"small",38),e.EFF(1," Postal code is required!"),e.k0s())}function M8(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,P8,2,0,"small",37),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.toUpdateAddressform.get("to_postal_code").errors.required)}}function O8(n,a){if(1&n){const t=e.RV6();e.j41(0,"form",23)(1,"nb-card",134)(2,"nb-card-header")(3,"div",135)(4,"h4",136),e.EFF(5," Write your address "),e.k0s(),e.j41(6,"button",137),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.cancelToUpdate())}),e.j41(7,"a"),e.nrm(8,"i",138),e.k0s()()()(),e.j41(9,"nb-card-body")(10,"div",25)(11,"div",139)(12,"div",140)(13,"label",141),e.EFF(14,"Name"),e.j41(15,"span",28),e.EFF(16,"*"),e.k0s()(),e.nrm(17,"input",157),e.DNE(18,y8,2,1,"div",32),e.k0s()(),e.j41(19,"div",139)(20,"div",140)(21,"label",141),e.EFF(22,"Address line 1"),e.j41(23,"span",28),e.EFF(24,"*"),e.k0s()(),e.nrm(25,"input",158),e.DNE(26,k8,2,1,"div",32),e.k0s()(),e.j41(27,"div",139)(28,"div",140)(29,"label",141),e.EFF(30,"Address line 2 "),e.j41(31,"span",28),e.EFF(32,"*"),e.k0s()(),e.nrm(33,"input",159),e.DNE(34,F8,2,1,"div",32),e.k0s()()(),e.j41(35,"div",13)(36,"div",89)(37,"div",140)(38,"label",141),e.EFF(39,"City"),e.j41(40,"span",28),e.EFF(41,"*"),e.k0s()(),e.nrm(42,"input",160),e.DNE(43,T8,2,1,"div",32),e.k0s()(),e.j41(44,"div",89)(45,"div",140)(46,"label",141),e.EFF(47,"Province"),e.j41(48,"span",28),e.EFF(49,"*"),e.k0s()(),e.nrm(50,"input",161),e.DNE(51,E8,2,1,"div",32),e.k0s()(),e.j41(52,"div",89)(53,"div",140)(54,"label",141),e.EFF(55,"Postal Code"),e.j41(56,"span",28),e.EFF(57,"*"),e.k0s()(),e.nrm(58,"
1input",162),e.DNE(59,M8,2,1,"div",32),e.k0s()()()(),e.j41(60,"nb-card-footer")(61,"div",148)(62,"button",149),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.cancelToUpdate())}),e.EFF(63,"Cancel"),e.k0s(),e.j41(64,"button",150),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.toUpdateToAddress())}),e.EFF(65,"Update "),e.k0s()()()()()}if(2&n){const t=e.XpG();e.Y8G("formGroup",t.toUpdateAddressform),e.R7$(17),e.Y8G("ngClass",e.eq3(15,so,(t.toUpdateAddressform.get("to_name").dirty||t.toUpdateAddressform.get("to_name").touched)&&t.toUpdateAddressform.get("to_name").errors)),e.R7$(),e.Y8G("ngIf",t.toUpdateAddressform.get("to_name").invalid&&(t.toUpdateAddressform.get("to_name").dirty||t.toUpdateAddressform.get("to_name").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(17,so,(t.toUpdateAddressform.get("to_address_line_1").dirty||t.toUpdateAddressform.get("to_address_line_1").touched)&&t.toUpdateAddressform.get("to_address_line_1").errors)),e.R7$(),e.Y8G("ngIf",t.toUpdateAddressform.get("to_address_line_1").invalid&&(t.toUpdateAddressform.get("to_address_line_1").dirty||t.toUpdateAddressform.get("to_address_line_1").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(19,so,(t.toUpdateAddressform.get("to_address_line_2").dirty||t.toUpdateAddressform.get("to_address_line_2").touched)&&t.toUpdateAddressform.get("to_address_line_2").errors)),e.R7$(),e.Y8G("ngIf",t.toUpdateAddressform.get("to_address_line_2").invalid&&(t.toUpdateAddressform.get("to_address_line_2").dirty||t.toUpdateAddressform.get("to_address_line_2").touched)),e.R7$(8),e.Y8G("ngClass",e.eq3(21,so,(t.toUpdateAddressform.get("to_city").dirty||t.toUpdateAddressform.get("to_city").touched)&&t.toUpdateAddressform.get("to_city").errors)),e.R7$(),e.Y8G("ngIf",t.toUpdateAddressform.get("to_city").invalid&&(t.toUpdateAddressform.get("to_city").dirty||t.toUpdateAddressform.get("to_city").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(23,so,(t.toUpdateAddressform.get("to_province").dirty||t.toUpdateAddressform.get("to_province").touched)&&t.toUpdateAddressform.get("to_province").errors)),e.R7$(),e.Y8G("ngIf",t.toUpdateAddressform.get("to_province").invalid&&(t.toUpdateAddressform.get("to_province").dirty||t.toUpdateAddressform.get("to_province").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(25,so,(t.toUpdateAddressform.get("to_postal_code").dirty||t.toUpdateAddressform.get("to_postal_code").touched)&&t.toUpdateAddressform.get("to_postal_code").errors)),e.R7$(),e.Y8G("ngIf",t.toUpdateAddressform.get("to_postal_code").invalid&&(t.toUpdateAddressform.get("to_postal_code").dirty||t.toUpdateAddressform.get("to_postal_code").touched)),e.R7$(5),e.Y8G("nbSpinner",t.is_requesting)("disabled",!t.toUpdateAddressform.valid)}}let D8=(()=>{class n{constructor(t,r,i,s,p,g,S,R,L,ne){this.fb=t,this.dialogService=r,this.toastr=i,this.cd=s,this.router=p,this.route=g,this.invoiceService=S,this.paymentPageService=R,this.paymentLinkService=L,this.http=ne,this.receivedData={},this.steper_hide=!1,this.template=!0,this.invoice=!1,this.itemsData=[],this.is_loading_1=!1,this.applist=[],this.allInvoice=[],this.image_base_path=sc.c.aws,this.is_loading=!1,this.currency_data=[],this.invoiceDateSelected=!1,this.templateform=this.fb.group({invoice_template_id:["",[ie.k0.required]]}),this.invoiceform=this.fb.group({invoice_number:["",[ie.k0.required]],from_email:["",[ie.k0.required]],from_phone:["",[ie.k0.required]],to_email:["",[ie.k0.required]],to_phone:["",[ie.k0.required]],invoice_date:["",[ie.k0.required]],due_date:[this.currentDate,[ie.k0.required]],currency:["",[ie.k0.required]],payment_method:["",[ie.k0.required]],discount_rate:[""],vat_number:[""],vat_rate:[""],logo:[""],note:["",[ie.k0.required]]}),this.itemForm=this.fb.group({item_name:["",[ie.k0.required]],quantity:["",[ie.k0.required]],amount:["",[ie.k0.required]],item_description:["",[ie.k0.required]],is_delete:[""]}),this.fromAddressform=this.fb.group({from_name:["",[ie.k0.required]],from_address_line_1:["",[ie.k0.required]],from_address_line_2:[""],from_city:["",[ie.k0.required]],from_province:["",[ie.k0.required]],from_postal_code:["",[ie.k0.required]]}),this.fromUpdateAddressform=this.fb.group({from_name:["",[ie.k0.required]],from_address_line_1:["",[ie.k0.required]],from_address_line_2:[""],from_city:["",[ie.k0.required]],from_province:["",[ie.k0.required]],from_postal_code:["",[ie.k0.required]]}),this.toAddressform=this.fb.group({to_name:["",[ie.k0.required]],to_address_line_1:["",[ie.k0.required]],to_address_line_2:[""],to_city:["",[ie.k0.required]],to_province:["",[ie.k0.required]],to_postal_code:["",[ie.k0.required]]}),this.toUpdateAddressform=this.fb.group({to_name:["",[ie.k0.required]],to_address_line_1:["",[ie.k0.required]],to_address_line_2:[""],to_city:["",[ie.k0.required]],to_province:["",[ie.k0.required]],to_postal_code:["",[ie.k0.required]]})}ngOnInit(){this.receivedData=history.state.data?.id||{}
1,this.getUpdateInvoiceData(this.route.snapshot.params.id),this.getMerchantDataAll(),this.getTemplate(),this.getApps(),this.invoiceform.get("payment_method").valueChanges.subscribe(t=>{if(t){const r=this.applist.find(i=>i.id==t||i.app_id===t);r?this.loadCurrenciesForGateway(r.app_id||r.id):isNaN(Number(t))&&this.loadCurrenciesForGateway(t)}else this.currency_data=[],this.invoiceform.get("currency").setValue("")})}getUpdateInvoiceData(t){this.is_loading_1=!0,this.invoiceService.getUpdateInvoice(t).then(r=>{if(100==r.status)if(this.is_loading_1=!1,r.data){this.allInvoice=r?.data,console.log(r.data,"3333333333333333333"),this.templateform.setValue({invoice_template_id:r.data.invoice_template?r.data.invoice_template:""}),this.invoiceform.setValue({invoice_number:r.data.invoice_number?r.data.invoice_number:"",from_email:r.data.from_email?r.data.from_email:"",from_phone:r.data.from_phone?r.data.from_phone:"",to_email:r.data.to_email?r.data.to_email:"",to_phone:r.data.to_phone?r.data.to_phone:"",invoice_date:r.data.invoice_date?r.data.invoice_date:"",due_date:r.data.due_date?r.data.due_date:"",currency:r.data.currency?r.data.currency:"",payment_method:r.data.payment_method?r.data.payment_method:"",discount_rate:r.data.discount_rate?r.data.discount_rate:"0",vat_number:r.data.vat_number?r.data.vat_number:"",vat_rate:r.data.vat_rate?r.data.vat_rate:"0",logo:r.data.logo?r.data.logo:"",note:r.data.note?r.data.note:""}),this.imageUrl=this.image_base_path+r.data.logo,this.loadImage();const i=r.data.items.map(s=>({...s,item_description:s.description}));this.itemsData.push(...i),this.toAddressform.setValue({to_name:r.data.to_name?r.data.to_name:"",to_address_line_1:r.data.to_address_line_1?r.data.to_address_line_1:"",to_address_line_2:r.data.to_address_line_2?r.data.to_address_line_2:"",to_city:r.data.to_city?r.data.to_city:"",to_province:r.data.to_province?r.data.to_province:"",to_postal_code:r.data.to_postal_code?r.data.to_postal_code:""}),this.addressToData=this.toAddressform.value,this.image=r.data.logo?this.image_base_path+r.data.logo:"",console.log(this.image," this.image this.image this.image")}else this.toastr.showToast("danger","Error!","Internal Server Error.");else this.is_loading_1=!1,this.toastr.showToast("danger","Error!","Internal Server Error.")})}stepperChange(t){console.log("data",t),"template"==t?(this.template=!0,this.invoice=!1):"invoice"==t&&(this.template=!1,this.invoice=!0)}submit_application(){if(this.is_loading=!0,console.log(this.templateform.value,"rrrff"),this.templateform.valid){let S={...{...this.templateform.value,...this.invoiceform.value,...this.formData,...this.addressToData,items:this.itemsData}};this.imageBase64&&(S.logo=this.imageBase64,S.update_image="1"),this.imageBase64||(S.logo=this.imageSrc,S.update_image="0"),console.log(this.imageSrc,"this.imageSrcthis.imageSrc"),S.invoice_id=this.route.snapshot.params.id,console.log(S,"5ggrequestrequestfghfgh"),this.invoiceService.updateInvoice(S).then(R=>{console.log(R,"update invoice"),this.is_loading_1=!1,100==R.status?(this.is_loading=!1,this.toastr.showToast("success","Success","Invoice updated successfully"),this.router.navigate(["pages/create-pfd"],{state:{data:{request:S,invoice_link:R.data.invoice_link}}})):(this.is_loading=!1,this.toastr.showToast("danger","Error!",R?.message||"Invoice creation failed."))},R=>{this.is_loading=!1,this.toastr.showToast("danger","Error","Internal server error")})}else this.is_loading=!1,console.log("Form is invalid")}onSubmit2(){console.log(this.itemForm.value,"444rr"),this.itemForm.valid?(this.itemsData.push(this.itemForm.value),this.itemForm.reset()):console.log("Form is invalid")}editItem(t){this.itemForm.patchValue(this.itemsData[t]),this.itemsData.splice(t,1)}deleteItem(t){this.itemsData[t].is_delete=!0,console.log(this.itemsData,"this.itemsDatathis.itemsData")}onFileChange(t){console.log("5555555555555555555555");let r=new FileReader;if(t.target.files&&t.target.files.length){const[i]=t.target.files;r.readAsDataURL(i),r.onload=()=>{this.imageBase64=r.result,this.image=r.result,this.cd.markForCheck()}}}updateValues(t){}resetImage(){this.image="",this.imageBase64="",console.log(this.fileUploader.nativeElement,"rest"),this.fileUploader.nativeElement.value=""}getMerchantDataAll(){this.is_loading_1=!0,this.invoiceService.getMerchantData().then(t=>{console.log("123",t.data),this.is_loading_1=!1,100===t?.status?(this.merchant_data=t?.data,this.fromAddressform.setValue({from_name:t.data.from_name?t.data.from_name:"",from_address_line_1:t.data.from_address_line_1?t.data.from_address_line_1:"",from_address_line_2:t.data.from_address_line_2?t.data.from_address_line_2:"",from_city:t.data.from_city?t.data.from_city:"",from_province:t.data.from_province?t.data.from_province:"",from_postal_code:t.data.from_postal_code?t.data.from_postal_code:""}),this.formData=this.fromAddressform.value):this.toastr.showToast("danger","Error
1!",t?.message||"Gettings merchant data failed.")},t=>{this.is_loading_1=!1,console.log("Internal Server Error",t),this.toastr.showToast("danger","Error!","Internal Server Error.")})}openModal(t){this.modal_ref=this.dialogService.open(t,{closeOnBackdropClick:!1})}cancel(){this.modal_ref.close()}addFromAddress(){this.fromAddressform.valid&&(this.formData=this.fromAddressform.value,console.log("Form data:",this.formData),this.modal_ref.close())}openUpdateFromAddress(t,r){setTimeout(()=>{this.fromUpdateAddressform.setValue({from_name:r.from_name?r.from_name:"",from_address_line_1:r.from_address_line_1?r.from_address_line_1:"",from_address_line_2:r.from_address_line_2?r.from_address_line_2:"",from_city:r.from_city?r.from_city:"",from_province:r.from_province?r.from_province:"",from_postal_code:r.from_postal_code?r.from_postal_code:""})},0),this.updateFromAddress_model=this.dialogService.open(t,{closeOnBackdropClick:!1})}cancelUpdate(){this.fromUpdateAddressform.reset(),this.updateFromAddress_model.close()}updateFromAddress(){this.fromUpdateAddressform.valid&&(this.formData=this.fromUpdateAddressform.value,console.log("Form data:",this.formData),this.updateFromAddress_model.close())}openToModal(t){this.modal_to=this.dialogService.open(t,{closeOnBackdropClick:!1})}cancelTo(){this.toAddressform.reset(),this.modal_to.close()}addToAddress(){this.toAddressform.valid&&(this.addressToData=this.toAddressform.value,console.log("addressToData:",this.addressToData),this.modal_to.close())}openUpdateToAddress(t,r){setTimeout(()=>{this.toUpdateAddressform.setValue({to_name:r.to_name?r.to_name:"",to_address_line_1:r.to_address_line_1?r.to_address_line_1:"",to_address_line_2:r.to_address_line_2?r.to_address_line_2:"",to_city:r.to_city?r.to_city:"",to_province:r.to_province?r.to_province:"",to_postal_code:r.to_postal_code?r.to_postal_code:""})},0),this.updateToAddress_model=this.dialogService.open(t,{closeOnBackdropClick:!1})}cancelToUpdate(){this.toUpdateAddressform.reset(),this.updateToAddress_model.close()}toUpdateToAddress(){this.toUpdateAddressform.valid&&(this.addressToData=this.toUpdateAddressform.value,console.log("addressToData:",this.addressToData),this.updateToAddress_model.close())}getTemplate(){this.is_loading_1=!0,this.invoiceService.getAllTemplate().then(t=>{this.is_loading_1=!1,100===t?.status?this.templates=t?.data:this.toastr.showToast("danger","Error!",t?.message||"Gettings merchant data failed.")},t=>{this.is_loading_1=!1,console.log("Internal Server Error",t),this.toastr.showToast("danger","Error!","Internal Server Error.")})}getApps(){this.is_loading_1=!0,this.paymentPageService.getApps().then(t=>{if(this.is_loading_1=!1,t&&100==t.status){if(this.applist=t.data.filter(r=>(r.is_approved||!r.is_approved&&!r.is_submit_approve)&&r.is_active),console.log(this.applist,"rrrrccc"),this.applist.length>0){const r=this.invoiceform.get("payment_method").value;if(r){const i=this.applist.find(p=>p.id==r||p.app_id===r);this.loadCurrenciesForGateway(i?i.app_id||i.id:r)}else this.invoiceform.get("payment_method").setValue(this.applist[0]?.id||this.applist[0]?.app_id)}}else this.toastr.showToast("danger","Error!",t?.message||"Gettings merchant data failed.")},t=>{this.is_loading_1=!1,this.toastr.showToast("danger","Error","Internal server error")})}loadImage(){let t=this;const r=this.imageUrl.split(".").pop().toLowerCase();console.log("File extension:",r);let i=this.imageUrl.match(/\.([^.]+)$/);i?i[1].toLowerCase():console.error("Unable to determine file type");const s=new XMLHttpRequest;s.open("GET",this.imageUrl),s.responseType="arraybuffer",s.onload=function(){if(200===s.status){const p=new Blob([s.response],{type:"image/"+i[1].toLowerCase()}),g=new FileReader;g.onloadend=function(){t.imageSrc=g.result,console.log("Base64 image2:",t.imageSrc)},g.readAsDataURL(p)}else console.error("Request failed with status:",s.status)},s.onerror=function(){console.error("Error fetching image")},s.send()}onInvoiceDateChange(){this.invoiceDateSelected=!0;const r=new Date(this.invoiceform.get("invoice_date").value).getTime();this.invoiceform.get("due_date").setValidators([ie.k0.required,ie.k0.min(r)]),this.invoiceform.get("due_date").updateV
1alueAndValidity()}loadCurrenciesForGateway(t){var r=this;return(0,Pt.A)(function*(){try{const i=yield r.paymentLinkService.getAppCurrencies(t);if(console.log("App Currencies Response:",i),i&&(200===i.status||!0===i.success)&&i.data){let s=[];s=i.data.currencies&&Array.isArray(i.data.currencies)?i.data.currencies:Array.isArray(i.data)?i.data:[i.data],r.currency_data=s.map(g=>"string"==typeof g?{code:g,name:g}:{code:g.code||g.currency_code||g.currency||"",name:g.name||g.currency_name||g.description||""}).filter(g=>g.code);const p=r.invoiceform.get("currency").value;r.currency_data.length>0?r.currency_data.some(S=>S.code===p)?r.invoiceform.get("currency").setValue(p):r.invoiceform.get("currency").setValue(r.currency_data[0].code):r.invoiceform.get("currency").setValue("")}else r.toastr.showToast("danger","Error!",i?.message||"Failed to load currencies for the selected gateway."),r.currency_data=[],r.invoiceform.get("currency").setValue("")}catch(i){console.error("Error loading currencies for gateway:",i),r.toastr.showToast("danger","Error!","Failed to load currencies for the selected gateway."),r.currency_data=[],r.invoiceform.get("currency").setValue("")}})()}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(ie.ok),e.rXU(E.S0W),e.rXU(Dt.V4),e.rXU(e.gRc),e.rXU(qe.Ix),e.rXU(qe.nX),e.rXU(ov),e.rXU(y1.f),e.rXU(k4.o),e.rXU(w4.Qq))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-update-invoice"]],viewQuery:function(r,i){if(1&r&&e.GBs(ET,5),2&r){let s;e.mGM(s=e.lsd())&&(i.fileUploader=s.first)}},decls:37,vars:5,consts:[["fromAddressModel",""],["fromUpdateAddressModel",""],["toAddressModel",""],["toUpdateAddressModel",""],["imageInput",""],[1,"body-style","payment-links-root"],[1,"container"],["href","/pages/manage-invoice",2,"text-decoration","none","color","#718096","font-size","13px","font-weight","500"],[2,"margin-right","4px"],["aria-hidden","true",1,"fa","fa-arrow-left"],[1,"row","mb-4"],[1,"col","d-flex","justify-content-start","align-items-center"],[1,"page-heading"],[1,"row","mb-3"],[1,"col"],[1,"nb_cardBody"],[1,"steper"],[1,"stepper-container","one",3,"click"],[1,"stepper-circle"],[1,"tep_name"],[1,"stepper-container","two",3,"click"],[3,"ngClass"],["class","container",4,"ngIf"],[3,"formGroup"],[1,"template_body"],[1,"row"],[1,"col-12","d-flex","flex-column","justify-content-start","mb-3"],[1,"col","px-0","mb-1"],[1,"form-required-sign"],["fullWidth","","placeholder","Select Status","formControlName","invoice_template_id","name","invoice_template_id",1,"col","selecter_invoice",3,"ngClass"],["selected","","disabled","","value",""],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"footer_invoice","mt-3"],["shape","rectangle","size","medium","type","button",1,"invoice_clean_btn"],["shape","rectangle","size","medium",1,"invoice_next_btn",3,"click","disabled"],[3,"value"],["class","text-danger",4,"ngIf"],[1,"text-danger"],[1,"invoice_body"],[1,"col-8","col-in1"],[1,"row","mt-5"],[1,"col-3","d-flex","align-items-center","invoice_number_input"],[1,"invoice_hash"],[1,"d-inline-block",2,"width","70%"],["nbInput","","id","invoice_number","type","text","fullWidth","","placeholder","0000","name","invoice_number","maxlength","4","formControlName","invoice_number",1,"col","invoice_text",2,"border","none","background-color","transparent","padding","0","font-size","32px!important"],[1,"lable_name"],[1,"col-2","d-flex","align-items-center","justify-content-center"],[1,"line_1"],[1,"col-4","d-flex","align-items-center","justify-content-center"],["name","image","type","file","accept","image/*",1,"image-upload",2,"display","none",3,"change"],[1,"logo-circle",3,"click"],["class","upload_i","src","../../../../assets/images/upload_icon.png",4,"ngIf"],["class","upload_i2",3,"src",4,"ngIf"],[1,"col","mt-2",2,"position","absolute","margin-left","30px"],[1,"col-3","d-flex","align-items-center","justify-content-center"],[1,"_line",2,"margin-top","64px"],[1,"row","mt-4"],[1,"col-6"],[1,"bill_from_title"],[1,"row","mt-3"],[1,"col-12","d-flex","flex-column","justify-content-start","mb-4"],["for","from_email",1,"col","px-0","mb-1"],["id","from_email","type","email","nbInput","","fullWidth","","placeholder","Write your email","formControlName","from_email","name","from_email",1,"col",3,"ngClass"],["for","from_phone",1,"col","px-0","mb-1"],["
1id","from_phone","type","email","nbInput","","fullWidth","","placeholder","Write your contact number","formControlName","from_phone","name","from_phone",1,"col",3,"ngClass"],[1,"col-12","mb-3"],[1,"mt-2"],["src","../../../../assets/images/plus.png",1,"plus_img",3,"click","ngClass"],[1,"address_line"],["style","float: right;","class","address_edit",3,"click",4,"ngIf"],["class","in_fromAdd mt-3",4,"ngIf"],["for","to_email",1,"col","px-0","mb-1"],["id","to_email","type","email","nbInput","","fullWidth","","placeholder","Write your email","formControlName","to_email","name","to_email",1,"col",3,"ngClass"],["for","to_phone",1,"col","px-0","mb-1"],["id","to_phone","type","text","nbInput","","fullWidth","","placeholder","Write your contact number","formControlName","to_phone","name","to_phone",1,"col",3,"ngClass"],[1,"_line","mt-3","mb-4"],[1,"col-6","d-flex","flex-column","justify-content-start","mb-4"],["for","invoice_date",1,"col","px-0","mb-1"],["nbInput","","fullWidth","","id","invoice_date","placeholder","Select Date and Time","type","date","name","invoice_date","formControlName","invoice_date",1,"form-control",3,"change","ngClass"],["nbInput","","fullWidth","","id","due_date","placeholder","Select Date and Time","type","date","name","due_date","formControlName","due_date",1,"form-control",3,"min","ngClass"],[1,"_line","mt-2","mb-2"],[1,""],[1,"table","mt-3"],[1,"item_t"],[2,"float","left"],[1,"item_invoice_t"],[4,"ngFor","ngForOf"],[1,"col-11"],[1,"col-md-4"],[1,"form-group"],["placeholder","Item name","formControlName","item_name","type","text","id","item_name",1,"form-control",3,"ngClass"],["formControlName","quantity","type","number","id","quantity",1,"form-control",3,"ngClass"],["formControlName","amount","type","number","id","amount",1,"form-control",3,"ngClass"],[1,"col-md-12"],["placeholder","Item description","formControlName","item_description","type","text","id","item_description",1,"form-control",3,"ngClass"],[1,"col-1","d-flex","align-items-center","justify-content-center"],[2,"margin-top","-14px"],["src","../../../../assets/images/table_p.png",1,"pencil_plus",3,"click"],[1,"_line","mt-3","mb-3"],["for","note",1,"col","px-0","mb-1"],["rows","2","nbInput","","fullWidth","","placeholder","Write a note","formControlName","note",1,"text-area",3,"ngClass"],[1,"col-4"],["fullWidth","","placeholder","Select Status","formControlName","currency","name","currency",1,"col","selecter_invoice",3,"ngClass"],["disabled","","value",""],["fullWidth","","placeholder","Select Payment Method","formControlName","payment_method","name","payment_method",1,"col","selecter_invoice",3,"ngClass"],["for","discount_rate",1,"col","px-0","mb-1"],["id","discount_rate","type","number","nbInput","","fullWidth","","placeholder","6%","formControlName","discount_rate","name","discount_rate",1,"col",3,"ngClass"],["for","vat_number",1,"col","px-0","mb-1"],["id","vat_number","type","number","nbInput","","fullWidth","","placeholder","65535334","formControlName","vat_number","name","vat_number",1,"col",3,"ngClass"],["for","vat_rate",1,"col","px-0","mb-1"],["id","vat_rate","type","number","nbInput","","fullWidth","","placeholder","0%","formControlName","vat_rate","name","vat_rate",1,"col",3,"ngClass"],["shape","rectangle","size","medium","type","submit",1,"invoice_next_btn",3,"click","disabled"],["class","spinner-border loading-spinner spinner-border-sm","role","status","aria-hidden","true",4,"ngIf"],["class","sr-only",4,"ngIf"],["src","../../../../assets/images/upload_icon.png",1,"upload_i"],[1,"upload_i2",3,"src"],[1,"address_edit",2,"float","right",3,"click"],["src","../../../../assets/images/pancil.png",1,"pencil"],[1,"in_fromAdd","mt-3"],[1,"in_ad_line"],["class","in_ad_line",4,"ngIf"],[1,"other_td",2,"float","left"],[1,"other_td"],[2,"float","right"],["src","../../../../assets/images/pencil2.png",1,"pencil_table",3,"click"],["src","../../../../assets/images/delete_i.png",1,"delete_table",3,"click"],[1,"des_invoice"],["colspan","4",1,"other_des",2,"font-weight","500","color","#6A707A"],["colspan","4",1,"other_des"],[1,"div_line_in_table"],["colspan","4",2,"width","100vw","font-size","12px"],["role","status","aria-hidden","true",1,"spinner-border","loading-spinner","spinner-border-sm"],[1,"sr-only"],[1,"popup-modal-root","profile-pic-modal"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"sub-heading"],["type","button",1,"btn","p-0",2,"color","rgba(0, 0, 0, 0.5)",3,"click"],["size","2px",1,"fas","fa-times"],[1,"col-md-12","mb-3"],[1,"input-group"],[1,"label-form-control","label-name"],["formControlName","from_name","type","text","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","from_address_line_1","type","text","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","from_address_line_2","type","text","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","from_city","type","text","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","from_province","type","text","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","from_postal_code","type","text","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],[1,"col","d-flex","justify-content-end","align-items-center"],["nbButton","","status","basic","type","button",1,"mr-1",3,"click"],["nbButton","","status","primary","nbSpinnerStatus","success",1,"primary-green-btn",3,"click","nbSpinner","disabled"],["formControlName","from_name","type","text","placeholder","00300","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","from_address_line_1","type","text","placeholder","00300","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","from_address_line_2","type","text","placeholder","00300","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","from_city","type","text","placeholder","00300","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","from_province","type","text","placeholder","00300","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","from_postal_code","type","text","placeholder","00300","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","to_name","type","text","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","to_address_line_1","type","text","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","to_address_line_2","type","text","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","to_city","type","text","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","to_province","type","text","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"],["formControlName","to_postal_code","type","text","nbInput","","fullWidth","","shape","rectangle",1,"form-control","form-control-text",3,"ngClass"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",5)(1,"div",6)(2,"p")(3,"a",7)(4,"span",8),e.nrm(5,"i",9),e.k0s(),e.EFF(6,"Back"),e.k0s()(),e.j41(7,"div",10)(8,"div",11)(9,"h2",12),e.
1EFF(10,"Update invoice"),e.k0s()()(),e.j41(11,"div",13)(12,"div",14)(13,"nb-card")(14,"nb-card-body",15)(15,"div",16)(16,"div",17),e.bIt("click",function(){return e.eBV(s),e.Njj(i.stepperChange("template"))}),e.j41(17,"div",18),e.EFF(18,"1"),e.k0s(),e.j41(19,"span",19),e.EFF(20,"Select template"),e.k0s()(),e.j41(21,"div",20),e.bIt("click",function(){return e.eBV(s),e.Njj(i.stepperChange("invoice"))}),e.j41(22,"div",21),e.EFF(23,"2"),e.k0s(),e.j41(24,"span",21),e.EFF(25,"Fill invoice details"),e.k0s()()(),e.DNE(26,DT,19,7,"div",22),e.j41(27,"form",23),e.DNE(28,IS,201,85,"div",22),e.k0s()()()()()()(),e.DNE(29,qS,66,27,"ng-template",null,0,e.C5r)(31,o8,66,27,"ng-template",null,1,e.C5r)(33,x8,66,27,"ng-template",null,2,e.C5r)(35,O8,66,27,"ng-template",null,3,e.C5r)}2&r&&(e.R7$(22),e.Y8G("ngClass",i.invoice?"stepper-circle":"stepper-circle-de"),e.R7$(2),e.Y8G("ngClass",i.invoice?"tep_name":"tep_name-de"),e.R7$(2),e.Y8G("ngIf",i.template),e.R7$(),e.Y8G("formGroup",i.invoiceform),e.R7$(),e.Y8G("ngIf",i.invoice))},dependencies:[Fe.YU,Fe.Sq,Fe.bT,ie.qT,ie.xH,ie.y7,ie.me,ie.Q0,ie.wz,ie.BC,ie.cb,ie.tU,ie.j4,ie.JD,E.SrT,E.KH5,E.VDm,E.zJv,E.YP2,E.i6h,E.zwc],styles:[".profile-details-root[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:400;font-size:13px;color:#1a202c}.profile-details-root[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{color:#8e8e8e!important}.profile-details-root[_ngcontent-%COMP%] .profile-picture[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:8rem;height:auto;border-radius:10px}.profile-details-root[_ngcontent-%COMP%] .commission-rate-for[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{word-wrap:break-word}.profile-details-root[_ngcontent-%COMP%] .commission-rate-for[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#000000e6;margin-right:8px}label[_ngcontent-%COMP%]{font-size:14px;color:#344054;font-weight:500}.profile-pic-modal[_ngcontent-%COMP%]{width:40vw;height:auto}.steper[_ngcontent-%COMP%]{display:flex;flex-direction:row}.stepper-container[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:20px}.stepper-circle[_ngcontent-%COMP%]{width:24px;height:24px;border-radius:50%;background-color:#00831d;color:#fff;font-size:16px;font-weight:500;display:flex;justify-content:center;align-items:center}.stepper-circle-de[_ngcontent-%COMP%]{width:24px;height:24px;border-radius:50%;background-color:#ddd;color:#333;font-size:16px;font-weight:500;display:flex;justify-content:center;align-items:center}.tep_name[_ngcontent-%COMP%]{color:#00831d;font-size:16px;font-weight:500;margin-left:8px}.tep_name-de[_ngcontent-%COMP%]{color:#7e7e7e;font-size:16px;font-weight:500;margin-left:8px}.stepper-container.two[_ngcontent-%COMP%]{margin-right:0}.steper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.active[_ngcontent-%COMP%]{color:red}.footer_invoice[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;border-bottom-right-radius:.3rem;border-bottom-left-radius:.3rem}.invoice_next_btn[_ngcontent-%COMP%]{width:auto;height:40px;border-radius:8px;border:none;color:#fff;background-color:#00130c;padding:10px 16px;font-size:14px;font-weight:600}.invoice_clean_btn[_ngcontent-%COMP%]{border:1px solid #D0D5DD;width:80px;height:40px;border-radius:8px;color:#344054;padding:10px 16px;font-size:14px;font-weight:600;margin-right:8px}.template_body[_ngcontent-%COMP%]{padding:40px 225px}.selecter_invoice[_ngcontent-%COMP%]{background-color:#f7f9fc;border-color:#e4e9f2;color:#222b45;line-height:1.5rem;padding:.4375rem 1rem;font-size:15px!important;font-weight:400!important;border-radius:.25rem}.nb_cardBody[_ngcontent-%COMP%]{padding:50px 10px 10px}.invoice_body[_ngcontent-%COMP%]{padding:40px 10px}.col-in1[_ngcontent-%COMP%]{border-right:1px solid #E7E7E7}.line_1[_ngcontent-%COMP%]{border:1px solid #E1E1E1;width:100%}._line[_ngcontent-%COMP%]{width:103%;border:1px solid #E1E1E1}.logo-circle[_ngcontent-%COMP%]{width:96px;height:96px;border-radius:50%;background-color:#e1e1e1;color:#fff;font-size:16px;font-weight:500;display:flex;justify-content:center;align-items:center;overflow:hidden;cursor:pointer}.invoice_number_input[_ngcontent-%COMP%]{margin-top:26px}.invoice_text[_ngcontent-%COMP%]{border:none;background-color:transparent;padding:0;font-size:32px;color:#e1e1e1}.invoice_hash[_ngcontent-%COMP%]{color:#000;font-size:32px}input#invoice_number[_ngcontent-%COMP%]::placeholder{font-size:32px!important}.upload_i[_ngcontent-%COMP%]{width:24px}
1.upload_i2[_ngcontent-%COMP%]{top:0;left:0;width:100%;height:100%;object-fit:cover}.lable_name[_ngcontent-%COMP%]{font-size:16px;font-weight:500;color:#797979}.bill_from_title[_ngcontent-%COMP%]{font-size:16px;font-weight:500}.plus_img[_ngcontent-%COMP%]{width:16px;height:16px;cursor:pointer}.address_line[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#344054;margin-left:10px}.address_edit[_ngcontent-%COMP%]{color:red;font-size:14px;cursor:pointer}.table[_ngcontent-%COMP%] .thead-light[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#495057;background-color:transparent;border:none!important}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-bottom:hidden;border-top:hidden;font-size:14px;color:#1c1c1c;font-weight:500}.table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-top:none;font-size:14px;color:#4b4b4b}.item_invoice_t[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-top:5px!important;padding-bottom:0!important}.in_ad_line[_ngcontent-%COMP%]{display:block;font-size:14px;font-weight:500;color:#344054;line-height:21px}.pencil[_ngcontent-%COMP%]{width:12px;height:12px;color:red}.pencil_table[_ngcontent-%COMP%]{width:12px;height:12px;color:#000!important;margin-right:5px}.delete_table[_ngcontent-%COMP%]{width:12px;height:12px;color:red}.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.data_table_lable[_ngcontent-%COMP%]{margin-top:10px}.div_line_in_table[_ngcontent-%COMP%]{width:100%;border-bottom:1px solid #DADADA;margin-top:5px;margin-bottom:5px}.pencil_plus[_ngcontent-%COMP%]{width:32px;height:32px;cursor:pointer}
1.label-name[_ngcontent-%COMP%]{margin-bottom:6px!important;color:#344054;font-size:14px;font-weight:500}.required_feeld[_ngcontent-%COMP%]{color:red;margin-left:5px}.text-danger[_ngcontent-%COMP%]{float:left!important}"]})}return n})();function I8(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI("",t.receivedData.from_address_line_2?t.receivedData.from_address_line_2:""," ,")}}function j8(n,a){if(1&n&&(e.j41(0,"span",25),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI("",t.receivedData.from_city?t.receivedData.from_city:""," ,")}}function R8(n,a){if(1&n&&(e.j41(0,"span",25),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI("",t.receivedData.from_province?t.receivedData.from_province:""," .")}}function L8(n,a){if(1&n&&(e.j41(0,"span",25),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(t.receivedData.from_postal_code?t.receivedData.from_postal_code:"")}}function N8(n,a){if(1&n&&(e.j41(0,"span",64),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(t.receivedData.from_phone?t.receivedData.from_phone:"")}}function B8(n,a){if(1&n&&(e.j41(0,"span",25),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(t.receivedData.from_email?t.receivedData.from_email:"")}}function G8(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI("",t.receivedData.to_address_line_2?t.receivedData.to_address_line_2:""," ,")}}function V8(n,a){if(1&n&&(e.j41(0,"span",25),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI("",t.receivedData.to_city?t.receivedData.to_city:""," ,")}}function z8(n,a){if(1&n&&(e.j41(0,"span",25),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI("",t.receivedData.to_province?t.receivedData.to_province:""," .")}}function U8(n,a){if(1&n&&(e.j41(0,"span",25),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(t.receivedData.to_postal_code?t.receivedData.to_postal_code:"")}}function Y8(n,a){if(1&n&&(e.j41(0,"span",64),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(t.receivedData.to_phone?t.receivedData.to_phone:"")}}function W8(n,a){if(1&n&&(e.j41(0,"span",25),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(t.receivedData.to_email?t.receivedData.to_email:"")}}function $8(n,a){if(1&n&&(e.qex(0),e.j41(1,"tr")(2,"td",65),e.EFF(3),e.k0s(),e.j41(4,"td",65)(5,"span",44),e.EFF(6),e.k0s(),e.EFF(7),e.nI1(8,"number"),e.k0s(),e.j41(9,"td",65),e.EFF(10),e.k0s(),e.j41(11,"td",66)(12,"span",44),e.EFF(13),e.k0s(),e.EFF(14),e.nI1(15,"number"),e.k0s()(),e.j41(16,"tr",67)(17,"td",68),e.EFF(18),e.k0s()(),e.j41(19,"tr")(20,"td",68),e.nrm(21,"div",29),e.k0s()(),e.bVm()),2&n){const t=e.XpG().$implicit,r=e.XpG();e.R7$(3),e.JRh(t.item_name?t.item_name:"N/A"),e.R7$(3),e.SpI("",r.receivedData.currency?r.receivedData.currency:""," "),e.R7$(),e.SpI(" ",t.amount?t.amount:e.i5U(8,7,"N/A","1.2-2"),""),e.R7$(3),e.JRh(t.quantity?t.quantity:"N/A"),e.R7$(3),e.SpI("",r.receivedData.currency?r.receivedData.currency:""," "),e.R7$(),e.SpI(" ",e.i5U(15,10,t.amount*t.quantity,"1.2-2"),""),e.R7$(4),e.JRh(t.description?t.description:"N/A")}}function q8(n,a){if(1&n&&(e.qex(0),e.DNE(1,$8,22,13,"ng-container",26),e.bVm()),2&n){const t=a.$implicit;e.R7$(),e.Y8G("ngIf",!t.is_delete)}}function X8(n,a){1&n&&(e.j41(0,"tr")(1,"td",69),e.EFF(2," Items not assigned with this organization"),e.k0s()())}function H8(n,a){1&n&&(e.j41(0,"div",70),e.nrm(1,"img",71),e.k0s())}function K8(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"span"),e.nrm(2,"img",72),e.k0s(),e.j41(3,"span",73),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.copyText())})("mouseout",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.resetTooltip())}),e.EFF(4,"copy invoice link"),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(3),e.Y8G("title",t.tooltipText)}}let J8=(()=>{class n{constructor(t,r,i,s,p){this.toastr=t,this.cd=r,this.router=i,this.route=s,this.invoiceService=p,this.is_loading_1=!1,this.receivedData={},this.image_base_path=sc.c.aws,this.tooltipText="Click to copy",this.textToCopy="Text to copy"}ngOnInit(){this.getUpdateInvoiceData()}getUpdateInvoiceData(){this.is_loading_1=!0,this.invoiceService.getUpdateInvoice(this.route.
1snapshot.params.id).then(t=>{100==t.status?(this.is_loading_1=!1,t.data?(this.receivedData=t?.data,this.invoice_link=t.data.link,console.log(this.invoice_link,"invoice_linkinvoice_link"),this.imageUrl=this.image_base_path+t.data.logo,console.log(this.imageUrl,"image parth"),this.loadImage(),console.log(t.data,"3333333333333333333")):this.toastr.showToast("danger","Error!","Internal Server Error.")):(this.is_loading_1=!1,this.toastr.showToast("danger","Error!","Internal Server Error."))})}formatDate(t){const r=new Date(t),i=r.getFullYear(),p=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][r.getMonth()];return`${String(r.getDate()).padStart(2,"0")} ${p} ${i}`}downloadPdfWithImage(){var t=this;return(0,Pt.A)(function*(){yield t.loadImage(),setTimeout(()=>{t.downloadPdf()},2e5)})()}loadImage(){let t=this;const r=this.imageUrl.split(".").pop().toLowerCase();console.log("File extension:",r);let i=this.imageUrl.match(/\.([^.]+)$/);i?i[1].toLowerCase():console.error("Unable to determine file type");const s=new XMLHttpRequest;s.open("GET",this.imageUrl),s.responseType="arraybuffer",s.onload=function(){if(200===s.status){const p=new Blob([s.response],{type:"image/"+i[1].toLowerCase()}),g=new FileReader;g.onloadend=function(){console.log("Base64 image2:",t.imageSrc),t.resizeImage(g.result,100,100,.5).then(re=>{t.imageSrc=re,console.log(re)}).catch(re=>{console.error("Error resizing image:",re)})},g.readAsDataURL(p)}else console.error("Request failed with status:",s.status)},s.onerror=function(){console.error("Error fetching image")},s.send()}downloadPdf(){return(0,Pt.A)(function*(){const t=document.getElementById("budget-wise-report-div");document.getElementById("image_invoice"),t instanceof HTMLElement?(console.log(t.clientWidth),(new b1.jsPDF).html(t,{callback:function(s){s.save("invoice.pdf")},x:0,y:0,width:210,windowWidth:1e3})):console.error("Element with ID 'budget-wise-report-div' not found.")})()}resizeImage(t,r,i,s){return new Promise((p,g)=>{let S=new Image;S.src=t,S.onload=function(){let R=document.createElement("canvas");const L=R.getContext("2d");let ne=S.width,re=S.height;ne>re?ne>r&&(re*=r/ne,ne=r):re>i&&(ne*=i/re,re=i),R.width=ne,R.height=re,L.drawImage(S,0,0,ne,re);let fe=R.toDataURL("image/png",s);p(fe)},S.onerror=function(R){g(R)}})}copyText(){const t=document.createElement("textarea");t.value=this.invoice_link,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),this.tooltipText="Copied!"}resetTooltip(){setTimeout(()=>{this.tooltipText="Click to copy"},2e3)}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(Dt.V4),e.rXU(e.gRc),e.rXU(qe.Ix),e.rXU(qe.nX),e.rXU(ov))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-view-invoice"]],decls:141,vars:46,consts:[[1,"body-style","invoice-root"],[1,"container"],["href","/pages/manage-invoice",2,"text-decoration","none","color","#718096","font-size","13px","font-weight","500"],[2,"margin-right","4px"],["aria-hidden","true",1,"fa","fa-arrow-left"],[1,"row","mb-4"],[1,"col","d-flex","justify-content-start","align-items-center"],[1,"page-heading"],[1,"row","mb-3"],[1,"col-12"],[1,"invoice_body"],[1,"row"],[1,"col-9","col-in1"],["id","budget-wise-report-div",1,"invoice_class"],[1,"col-6"],[1,"in_head"],[1,"mt-2"],[1,"in_number"],[1,"in_b"],[1,"in_date"],[1,"in_circle"],["crossorigin","*",1,"in_logo",3,"src"],[1,"row","mt-4"],[1,"in_subHead"],[1,"in_fromAdd","mt-2"],[1,"in_ad_line"],[4,"ngIf"],["class","in_ad_line",4,"ngIf"],["class","in_ad_line mt-2",4,"ngIf"],[1,"div_line_in"],[1,"item_in_data"],[1,"item_details_table"],[1,"table","mt-4"],[1,"item_t"],[2,"float","right"],[1,"item_invoice_t"],[4,"ngFor","ngForOf"],[1,"row","mt-5"],[1,"col-7",2,"position","relative"],["class","mt-3","style","position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);",4,"ngIf"],[1,"col-5"],[1,"invoice_cal"],[1,"in_sub_tatal",2,"color","#FE6B00"],[1,"in_sub_tatal_data",2,"color","#FE6B00"],[2,"margin-right","6px"],[1,"invoice_cal","mt-3"],[1,"in_sub_tatal",2,"color","#344054"],[1,"in_sub_tatal_data",2,"color","#344054"],[1,"col-7","d-flex","justify-content-end","align-items-center"],[1,"in_sub_tatal_end",2,"color","#344054"],[1,"col-5","d-flex","justify-content-start","align-items-center"],[1,"total_invoice_b"],[1,"centered-content"],[2,"margin-left","5px"],[1,"col"],[1,"note"],[1,"note_data"],[1,"col-12","text-center"],[1,"thank_you"],[1,"col-3","download_btnInvoice"],[1,"download_in_btn_class"],[3,"click"],["src","../../../../assets/images/down_in.png",1,"dowload_ICOn"],[1,"dowload_ICOn_text"],[1,"in_ad_line","mt-2"],[1,"other_td"],[1,"other_td",2,"float","right"],[1,"des_invoice"],["colspan","4",1,"other_des"],["colspan","4",2,"width","100vw","font-size","12px"],[1,"mt-3",2,"position","absolute","top","50%","left","50%","transform","translate(-50%, -50%)"],["src","../../../../assets/images/paid.png",1,"in_logo"],["src","../../../../assets/images/link.png",1,"link_ICOn"],[1,"link_ICOn_text",3,"click","mouseout","title"]],template:function(r,i){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"p")(3,"a",2)(4,"span",3),e.nrm(5,"i",4),e.k0s(),e.EFF(6,"Back"),e.k0s()(),e.j41(7,"div",5)(8,"div",6)(9,"h2",7),e.EFF(10,"View invoice details"),e.k0s()()(),e.j41(11,"div",8)(12,"div",9)(13,"nb-card")(14,"div",10)(15,"div",11)(16,"div",12)(17,"div",13)(18,"div",11)(19,"div",14)(20,"h4",15),e.EFF(21,"INVOICE"),e.k0s(),e.j41(22,"div",16)(23,"span",17),e.EFF(24),e.k0s(),e.j41(25,"span",18),e.EFF(26,"|"),e.k0s(),e.j41(27,"span",19),e.EFF(28),e.k0s()()(),e.j41(29,"div",14)(30,"div",20),e.nrm(31,"img",21),e.k0s()()(),e.j41(32,"div",22)(33,"div",14)(34,"h4",23),e.
1EFF(35,"From"),e.k0s(),e.j41(36,"div",24)(37,"span",25),e.EFF(38),e.k0s(),e.j41(39,"span",25),e.EFF(40),e.DNE(41,I8,2,1,"span",26),e.k0s(),e.DNE(42,j8,2,1,"span",27)(43,R8,2,1,"span",27)(44,L8,2,1,"span",27)(45,N8,2,1,"span",28)(46,B8,2,1,"span",27),e.k0s()(),e.j41(47,"div",14)(48,"h4",23),e.EFF(49,"To"),e.k0s(),e.j41(50,"div",24)(51,"span",25),e.EFF(52),e.k0s(),e.j41(53,"span",25),e.EFF(54),e.DNE(55,G8,2,1,"span",26),e.k0s(),e.DNE(56,V8,2,1,"span",27)(57,z8,2,1,"span",27)(58,U8,2,1,"span",27)(59,Y8,2,1,"span",28)(60,W8,2,1,"span",27),e.k0s()()(),e.nrm(61,"div",29),e.j41(62,"div",30)(63,"h4",31),e.EFF(64,"Item details"),e.k0s(),e.j41(65,"table",32)(66,"thead",33)(67,"tr")(68,"th"),e.EFF(69,"Item description"),e.k0s(),e.j41(70,"th"),e.EFF(71,"Unit price"),e.k0s(),e.j41(72,"th"),e.EFF(73,"Qty"),e.k0s(),e.j41(74,"th",34),e.EFF(75,"Total"),e.k0s()()(),e.j41(76,"tbody",35),e.DNE(77,q8,2,1,"ng-container",36)(78,X8,3,0,"tr",26),e.k0s()()(),e.j41(79,"div")(80,"div",37)(81,"div",38),e.DNE(82,H8,2,0,"div",39),e.k0s(),e.j41(83,"div",40)(84,"div",41)(85,"span",42),e.EFF(86,"Sub total"),e.k0s(),e.j41(87,"span",43)(88,"span",44),e.EFF(89),e.k0s(),e.EFF(90),e.nI1(91,"number"),e.k0s()(),e.j41(92,"div",45)(93,"span",46),e.EFF(94),e.k0s(),e.j41(95,"span",47)(96,"span",44),e.EFF(97),e.k0s(),e.EFF(98),e.nI1(99,"number"),e.k0s()(),e.j41(100,"div",45)(101,"span",46),e.EFF(102),e.k0s(),e.j41(103,"span",47)(104,"span",44),e.EFF(105),e.k0s(),e.EFF(106),e.nI1(107,"number"),e.k0s()()()(),e.j41(108,"div",37)(109,"div",48)(110,"span",49),e.EFF(111,"Total"),e.k0s()(),e.j41(112,"div",50)(113,"div",51)(114,"div",52)(115,"span",44),e.EFF(116),e.k0s(),e.j41(117,"span",53),e.EFF(118),e.nI1(119,"number"),e.k0s()()()()(),e.j41(120,"div",22)(121,"div",54)(122,"p",55),e.EFF(123,"Note"),e.k0s(),e.j41(124,"p",56),e.EFF(125),e.k0s()()(),e.j41(126,"div",37)(127,"div",57)(128,"p",58),e.EFF(129,"Thank you for Business!"),e.k0s()()()()()(),e.j41(130,"div",59)(131,"div",60)(132,"div",61),e.bIt("click",function(){return i.downloadPdf()}),e.j41(133,"span"),e.nrm(134,"img",62),e.k0s(),e.j41(135,"span",63),e.EFF(136,"Download as pdf"),e.k0s()(),e.nrm(137,"div",29),e.j41(138,"div"),e.DNE(139,K8,5,1,"div",26),e.k0s(),e.nrm(140,"div",29),e.k0s()()()()()()()()()),2&r&&(e.R7$(24),e.SpI("#",i.receivedData.invoice_number?i.receivedData.invoice_number:"N/A",""),e.R7$(4),e.JRh(i.receivedData.invoice_date?i.formatDate(i.receivedData.invoice_date):"N/A"),e.R7$(3),e.Y8G("src",i.imageSrc,e.B4B),e.R7$(7),e.SpI("",i.receivedData.from_name?i.receivedData.from_name:""," ,"),e.R7$(2),e.SpI("",i.receivedData.from_address_line_1?i.receivedData.from_address_line_1:""," ,"),e.R7$(),e.Y8G("ngIf",i.receivedData.from_address_line_2),e.R7$(),e.Y8G("ngIf",i.receivedData.from_city),e.R7$(),e.Y8G("ngIf",i.receivedData.from_province),e.R7$(),e.Y8G("ngIf",i.receivedData.from_postal_code),e.R7$(),e.Y8G("ngIf",i.receivedData.from_phone),e.R7$(),e.Y8G("ngIf",i.receivedData.from_email),e.R7$(6),e.SpI("",i.receivedData.to_name?i.receivedData.to_name:""," ,"),e.R7$(2),e.SpI("",i.receivedData.to_address_line_1?i.receivedData.to_address_line_1:""," ,"),e.R7$(),e.Y8G("ngIf",i.receivedData.from_address_line_2),e.R7$(),e.Y8G("ngIf",i.receivedData.to_city),e.R7$(),e.Y8G("ngIf",i.receivedData.to_province),e.R7$(),e.Y8G("ngIf",i.receivedData.to_postal_code),e.R7$(),e.Y8G("ngIf",i.receivedData.to_phone),e.R7$(),e.Y8G("ngIf",i.receivedData.to_email),e.R7$(17),e.Y8G("ngForOf",i.receivedData.items),e.R7$(),e.Y8G("ngIf",!(null!=i.receivedData&&i.receivedData.items)||i.receivedData.items.length<1),e.R7$(4),e.Y8G("ngIf",1==i.receivedData.transaction_status),e.R7$(7),e.SpI("",i.receivedData.currency?i.receivedData.currency:""," "),e.R7$(),e.SpI(" ",i.receivedData.gross_amount?e.i5U(91,34,i.receivedData.gross_amount,"1.2-2"):""," "),e.R7$(4),e.SpI("Vat Tax ",i.receivedData.vat_rate?i.receivedData.vat_rate:"0","% "),e.R7$(3),e.SpI("",i.receivedData.currency?i.receivedData.currency:""," "),e.R7$(),e.SpI(" ",i.receivedData.vat_amount?e.i5U(99,37,i.receivedData.vat_amount,"1.2-2"):"",""),e.R7$(4),e.SpI("Discount ",i.receivedData.discount_rate?i.receivedData.discount_rate:"0","% "),e.R7$(3),e.SpI("",i.receivedData.currency?i.receivedData.currency:""," "),e.R7$(),e.SpI(" ",i.receivedData.discount_amount?e.i5U(107,40,i.receivedData.discount_amount,"1.2-2"):"",""),e.R7$(10),e.SpI("",i.receivedData.currency?i.receivedData.currency:""," "),e.R7$(2),e.SpI(" ",i.receivedData.net_amount?e.i5U(119,43,i.receivedData.net_amount,"1.2-2"):"",""),e.R7$(7),e.JRh(i.receivedData.note?i.receivedData.note:""),e.R7$(14),e.Y8G("ngIf",i.invoice_link))},dependencies:[Fe.Sq,Fe.bT,E.SrT,Fe.QX],styles:[".col-in1[_ngcontent-%COMP%]{border-right:1px solid #E7E7E7;padding-right:0}.invoice_class[_ngcontent-%COMP%]{padding:3em}.download_in_btn_class[_ngcontent-%COMP%]{padding:20px}.download_btnInvoice[_ngcontent-%COMP%]{padding-left:0}.in_head[_ngcontent-%COMP%]{font-size:40px;color:#fe6b00;font-weight:600}
1.in_circle[_ngcontent-%COMP%]{width:66px;height:66px;border-radius:50%;background-color:#e1e1e1;color:#fff;font-size:16px;font-weight:500;display:flex;justify-content:center;align-items:center;overflow:hidden;float:right}.in_logo[_ngcontent-%COMP%]{top:0;left:0;width:100%;height:100%;object-fit:cover}.in_number[_ngcontent-%COMP%]{font-size:20px;font-weight:500;color:#000}.in_b[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.in_date[_ngcontent-%COMP%]{font-size:16px;font-weight:500;color:#000}.in_subHead[_ngcontent-%COMP%]{font-size:20px;font-weight:600}.in_ad_line[_ngcontent-%COMP%]{display:block;font-size:14px;font-weight:500;color:#344054;line-height:21px}.div_line_in[_ngcontent-%COMP%]{width:100%;border-bottom:1px solid #DADADA;margin-top:20px;margin-bottom:20px}.item_details_table[_ngcontent-%COMP%]{font-size:20px;font-weight:600;color:#000}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-bottom:hidden;border-top:hidden;color:#1c1c1c;font-weight:500;font-size:16px;font-weight:600}.table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-top:none}.item_invoice_t[_ngcontent-%COMP%] .other_td[_ngcontent-%COMP%]{padding-top:5px;padding-bottom:0}.item_invoice_t[_ngcontent-%COMP%] .other_des[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.other_des[_ngcontent-%COMP%]{font-size:14px;color:#6a707a;font-weight:500}.in_sub_tatal_data[_ngcontent-%COMP%]{float:right;font-size:16px;font-weight:600}.in_sub_tatal[_ngcontent-%COMP%]{font-size:16px;font-weight:600}.in_sub_tatal_end[_ngcontent-%COMP%]{font-size:24px;font-weight:600}.in_sub_tatal_data_end[_ngcontent-%COMP%]{font-size:36px;font-weight:700}.total_invoice_b[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;height:60px;background-color:#fff5ee}.centered-content[_ngcontent-%COMP%]{text-align:center;font-size:24px;font-weight:700;color:#fe6b00}.dowload_ICOn[_ngcontent-%COMP%], .link_ICOn[_ngcontent-%COMP%]{width:18px;height:18px;margin-right:10px;cursor:pointer}.link_ICOn_text[_ngcontent-%COMP%]{color:#7000ff;font-size:16px;font-weight:500;cursor:pointer}.dowload_ICOn_text[_ngcontent-%COMP%]{color:#000;font-size:16px;font-weight:500;cursor:pointer}.note[_ngcontent-%COMP%]{color:#344054;font-size:16px;font-weight:600}.note_data[_ngcontent-%COMP%]{font-size:14px;color:#6a707a;font-weight:500}.thank_you[_ngcontent-%COMP%]{color:#fe6b00;font-weight:600;font-size:24px}.in_logo[_ngcontent-%COMP%]{width:200px;height:auto}.item_invoice_t[_ngcontent-%COMP%] .other_td[_ngcontent-%COMP%]{font-weight:600;font-size:16px;color:#344054}.des_invoice[_ngcontent-%COMP%]{font-size:14px!important;color:#6a707a!important;font-weight:600!important}"]})}return n})();var A4=bn(20012);const Z8=["dialogActive"],Q8=["dialogActiveUpdate"],e7=["dialogInviteUpdate"],vx=()=>({backdrop:"static"}),sv=n=>({"form-control-danger":n}),T4=(n,a,t)=>({itemsPerPage:n,currentPage:a,totalItems:t});function t7(n,a){if(1&n){const t=e.RV6();e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.EFF(4),e.k0s(),e.j41(5,"td")(6,"div")(7,"span",52),e.EFF(8),e.k0s()()(),e.j41(9,"td")(10,"span")(11,"img",53),e.bIt("click",function(){const i=e.eBV(t).$implicit,s=e.XpG(3),p=e.sdS(96);return e.Njj(s.openDeleteActive(p,i.email))}),e.k0s()(),e.j41(12,"span",54)(13,"img",55),e.bIt("click",function(){const i=e.eBV(t).$implicit,s=e.XpG(3);return e.Njj(s.openActiveUpdate(i))}),e.k0s()()()()}if(2&n){const t=a.$implicit,r=e.XpG(3);e.R7$(2),e.JRh(t.email?t.email:"N/A"),e.R7$(2),e.SpI("",null!=t&&t.create_on?r.formatDate(t.create_on):"Not Available"," "),e.R7$(4),e.JRh(t.invitation_status?t.invitation_status:"N/A")}}function n7(n,a){if(1&n&&(e.j41(0,"tbody"),e.DNE(1,t7,14,3,"tr",39),e.nI1(2,"paginate"),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngForOf",e.i5U(2,1,t.activeUser,e.sMw(4,T4,t.page_size,t.page,t.count)))}}function i7(n,a){1&n&&(e.j41(0,"div",56)(1,"div",57)(2,"span",58),e.EFF(3,"Loading..."),e.k0s()()())}function r7(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",56)(1,"div",59)(2,"h6",60),e.EFF(3,"No users invited to the Onepay portal yet"),e.k0s(),e.j41(4,"p",61),e.EFF(5,"Let\u2019s invite users"),e.k0s(),e.j41(6,"div",62)(7,"button",12),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.openActive())}),e.EFF(8,"Invite to users"),e.k0s()()()()}}function a7(n,a){if(1&n){const t=e.RV6();e.j41(0,"pagination-controls",63),e.bIt("pageChange",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.pageChanged(i))})("pageBoundsCorrection",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.pageChanged(i))}),e.k0s()}}function o7(n,a){if(1&n&&(e.j41(0,"div")(1,"div",47)(2,"div",48)(3,"table",49)(4,"thead")(5,"tr")(6,"th"),e.EFF(7,"EMAIL"),e.k0s(),e.j41(8,"th"),e.EFF(9,"DATE"),e.k0s(),e.j41(10,"th"),e.EFF(11,"STATUS"),e.k0s(),e.nrm(12,"th"),e.k0s()(),e.DNE(13,n7,3,8,"tbody",21),e.k0s(),e.DNE(14,i7,4,0,"div",50)(15,r7,9,0,"div",50),e.k0s(),e.DNE(16,a7,1,0,"pagination-controls",51),e.k0s()()),2&n){const t=e.XpG();e.R7$(13),e.Y8G("ngIf",!t.is_loading_1&&t.count>0),e.R7$(),e.Y8G("ngIf",t.is_loading_1),e.R7$(),e.Y8G("ngIf",!t.is_loading_1&&0===t.count),e.R7$(),e.Y8G("ngIf",t.count>0)}}function s7(n,a){if(1&n){const t=e.RV6();e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.EFF(4),e.k0s(),e.j41(5,"td")(6,"div")(7,"span",64),e.EFF(8),e.k0s()()(),e.j41(9,"td",65)(10,"div",66),e.nrm(11,"img",67),e.j41(12,"div",68)(13,"button",69),e.bIt("click",function(){const i=e.eBV(t).$implicit,s=e.XpG(3);return e.Njj(s.openInviteUpdate(i))}),e.j41(14,"span"),e.nrm(15,"img",70),e.k0s(),e.j41(16,"span",71),e.EFF(17,"Edit invitation "),e.k0s()(),e.j41(18,"button",69),e.bIt("click",function(){const i=e.eBV(t).$implicit,s=e.XpG(3),p=e.sdS(98);return e.Njj(s.openDeleteInvite(p,i.email))}),e.j41(19,"span"),e.nrm(20,"img",72),e.k0s(),e.j41(21,"span",71),e.EFF(22,"Delete invitation"),e.k0s()()()()()()}if(2&n){const t=a.$implicit,r=e.XpG(3);e.R7$(2),e.JRh(t.email?t.email:"N/A"),e.R7$(2),e.SpI("",null!=t&&t.create_on?r.formatDate(t.create_on):"Not Available"," "),e.R7$(4),e.JRh(t.invitation_status?t.invitation_status:"N/A")}}function l7(n,a){if(1&n&&(e.j41(0,"tbody"),e.DNE(1,s7,23,3,"tr",39),e.nI1(2,"paginate"),e.nrm(3,"tr"),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngForOf",e.i5U(2,1,t.inviteUser,e.sMw(4,T4,t.page_size,t.pageInvite,t.countInvite)))}}function c7(n,a){1&n&&(e.j41(0,"div",56)(1,"div",57)(2,"span",58),e.EFF(3,"Loading..."),e.k0s()()())}function d7(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",56)(1,"div",59)(2,"h6",60),e.EFF(3,"No users invited to the Onepay portal yet"),e.k0s(),e.j41(4,"p",61),e.EFF(5,"Let\u2019s invite users"),e.k0s(),e.j41(6,"div",62)(7,"button",12),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.openActive())}),e.EFF(8,"Invite to users"),e.k0s()()()()}}function u7(n,a){if(1&n){const t=e.RV6();e.j41(0,"pagination-controls",63),e.bIt("pageChange",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.pageChangedInvite(i))})("pageBoundsCorrection",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.pageChangedInvite(i))}),e.k0s()}}function f7(n,a){if(1&n&&(e.j41(0,"div")(1,"div",47)(2,"div",48)(3,"table",49)(4,"thead")(5,"tr")(6,"th"),e.EFF(7,"EMAIL"),e.k0s(),e.j41(8,"th"),e.EFF(9,"DATE"),e.k0s(),e.j41(10,"th"),e.EFF(11,"STATUS"),e.k0s(),e.nrm(12,"th"),e.k0s()(),e.DNE(13,l7,4,8,"tbody",21),e.k0s(),e.DNE(14,c7,4,0,"div",50)(15,d7,9,0,"div",50),e.k0s(),e.DNE(16,u7,1,0,"pagination-controls",51),e.k0s()()),2&n){const t=e.XpG();e.R7$(13),e.Y8G("ngIf",!t.is_loading_1&&t.countInvite>0),e.R7$(),e.Y8G("ngIf",t.is_loading_1),e.R7$(),e.Y8G("ngIf",!t.is_loading_1&&0===t.countInvite),e.R7$(),e.Y8G("ngIf",t.countInvite>0)}}
1function p7(n,a){1&n&&(e.j41(0,"small",74),e.EFF(1," Email is required!"),e.k0s())}function h7(n,a){1&n&&(e.j41(0,"small",74),e.EFF(1," Invalid email.Try again!"),e.k0s())}function m7(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,p7,2,0,"small",73)(2,h7,2,0,"small",73),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.invite_form.get("email").errors.required),e.R7$(),e.Y8G("ngIf",t.invite_form.get("email").errors.pattern)}}function g7(n,a){1&n&&(e.j41(0,"small",74),e.EFF(1," Phone number is required! "),e.k0s())}function _7(n,a){1&n&&(e.j41(0,"small",74),e.EFF(1," Your phone must be at least 6 characters long. "),e.k0s())}function v7(n,a){1&n&&(e.j41(0,"small",74),e.EFF(1," Invalid mobile number. Try again! "),e.k0s())}function x7(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,g7,2,0,"small",73)(2,_7,2,0,"small",73)(3,v7,2,0,"small",73),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.invite_form.get("phone_number").errors.required),e.R7$(),e.Y8G("ngIf",t.invite_form.get("phone_number").errors.minlength&&!t.invite_form.get("phone_number").errors.pattern),e.R7$(),e.Y8G("ngIf",t.invite_form.get("phone_number").errors.pattern&&!t.invite_form.get("phone_number").errors.minlength)}}function b7(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"label",75)(2,"input",76),e.bIt("change",function(i){const s=e.eBV(t).$implicit,p=e.XpG();return e.Njj(p.onProviderChange(i.target.checked,s.id))}),e.k0s(),e.j41(3,"span",77),e.EFF(4),e.k0s()()()}if(2&n){const t=a.$implicit,r=e.XpG();e.R7$(2),e.Y8G("checked",r.isChecked(t.id)),e.R7$(),e.xc7("color",r.isChecked(t.id)?"#000000":"#5B5B5B"),e.R7$(),e.JRh(t.privilege_name)}}function y7(n,a){1&n&&(e.j41(0,"small",74),e.EFF(1," Email is required!"),e.k0s())}function C7(n,a){1&n&&(e.j41(0,"small",74),e.EFF(1," Invalid email.Try again!"),e.k0s())}function k7(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,y7,2,0,"small",73)(2,C7,2,0,"small",73),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.active_formUpdate.get("email").errors.required),e.R7$(),e.Y8G("ngIf",t.active_formUpdate.get("email").errors.pattern)}}function w7(n,a){if(1&n&&(e.j41(0,"div")(1,"div",75)(2,"label"),e.nrm(3,"input",79),e.j41(4,"span",80),e.EFF(5),e.k0s()()()()),2&n){const t=a.$implicit,r=a.index,i=e.XpG(2);e.R7$(3),e.Y8G("formControl",t),e.R7$(),e.AVh("checked",t.value),e.R7$(),e.JRh(i.all_privileges[r].privilege_name)}}function F7(n,a){if(1&n&&(e.j41(0,"div",78),e.DNE(1,w7,6,4,"div",39),e.k0s()),2&n){const t=a.ngIf;e.R7$(),e.Y8G("ngForOf",t.controls)}}function A7(n,a){if(1&n){const t=e.RV6();e.j41(0,"form",81),e.bIt("ngSubmit",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.deleteActiveUser())}),e.j41(1,"nb-card",82)(2,"nb-card-body",83)(3,"div",84),e.nrm(4,"img",85),e.k0s(),e.j41(5,"div",86),e.EFF(6," Delete user "),e.k0s(),e.j41(7,"div",87),e.EFF(8," Are you sure you want to delete this user ? This action cannot be undone. "),e.k0s()(),e.j41(9,"nb-card-footer",88)(10,"div",89)(11,"button",90),e.bIt("click",function(){const i=e.eBV(t).dialogRef;return e.Njj(i.close())}),e.EFF(12," Cancel "),e.k0s(),e.j41(13,"button",91),e.EFF(14," Delete "),e.k0s()()()()()}if(2&n){const t=e.XpG();e.Y8G("formGroup",t.deleteActiveForm)}}function T7(n,a){if(1&n){const t=e.RV6();e.j41(0,"form",81),e.bIt("ngSubmit",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.deleteInviteData())}),e.j41(1,"nb-card",82)(2,"nb-card-body",83)(3,"div",84),e.nrm(4,"img",85),e.k0s(),e.j41(5,"div",86),e.EFF(6," Delete invitation "),e.k0s(),e.j41(7,"div",87),e.EFF(8," Are you sure you want to delete this user ? This action cannot be undone. "),e.k0s()(),e.j41(9,"nb-card-footer",88)(10,"div",89)(11,"button",90),e.bIt("click",function(){const i=e.eBV(t).dialogRef;return e.Njj(i.close())}),e.EFF(12," Cancel "),e.k0s(),e.j41(13,"button",91),e.EFF(14," Delete "),e.k0s()()()()()}if(2&n){const t=e.XpG();e.Y8G("formGroup",t.deleteInviteForm)}}function S7(n,a){1&n&&(e.j41(0,"small",74),e.EFF(1," Email is required!"),e.k0s())}function E7(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,S7,2,0,"small",73),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.invite_form_update.get("email").errors.required)}}function P7(n,a){if(1&n&&(e.j41(0,"div")(1,"div",75)(2,"label"),e.nrm(3,"input",79),e.j41(4,"span",80),e.EFF(5),e.k0s()()()()),2&n){const t=a.$implicit,r=a.index,i=e.XpG(2);e.R7$(3),e.Y8G("formControl",t),e.R7$(),e.AVh("checked",t.value),e.R7$(),e.JRh(i.all_privileges[r].privilege_name)}}function M7(n,a){if(1&n&&(e.j41(0,"div",78),e.DNE(1,P7,6,4,"div",39),e.k0s()),2&n){const t=a.ngIf;e.R7$(),e.Y8G("ngForOf",t.controls)}}let O7=(()=>{class n{constructor(t,r,i,s){this.UserMService=t,this.toastr=r,this.fb=i,this.dialogService=s,this.page=1,this.page_size=10,this.count=0,this.pageInvite=1,this.countInvite=0,this.is_loading_1=!1,this.activeUser=[],this.inviteUser=[],this.activeU=!0,this.InvitedU=!1,this.invite_form=null,this.all_privileges=[],this.selectedPrivileges=[],this.activeUser_data=[],this.invite_form=this.fb.group({email:["",[ie.k0.required,ie.k0.pattern("^[a-zA-Z0-9.!#$%&\u2019*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)*$")]],phone_number:["",ie.k0.compose([ie.k0.required,ie.k0.minLength(6),ie.k0.pattern("^(\\d*.)?\\d+$")])],privileges:this.fb.array([])}),this.deleteInviteForm=this.fb.group({email_set:[""]}),this.deleteActiveForm=this.fb.group({email_set:[""]}),this.active_formUpdate=this.fb.group({email:["",[ie.k0.required,ie.k0.pattern("^[a-zA-Z0-9.!#$%&\u2019*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)*$")]],privileges:this.fb.array([])}),this.invite_form_update=this.fb.group({email:[""],phone_number:[""],privileges:this.fb.array([])})}ngOnInit(){this.getActiveUser(),this.getAllPrivileges(),this.getInviteUser()}getActiveUser(){this.is_loading_1=!0,this.UserMService.getActiveUserData(this.page,this.page_size).then(t=>{console.log("123",t),this.is_loading_1=!1,200===t?.status_code?(this.activeUser=t?.data,this.count=t?.total):this.toastr.showToast("danger","Error
1!",t?.description||"Gettings data failed.")},t=>{this.is_loading_1=!1,console.log("Internal Server Error",t),this.toastr.showToast("danger","Error!","Internal Server Error.")})}pageChanged(t){this.page=t,this.getActiveUser()}getInviteUser(){this.is_loading_1=!0,this.UserMService.getInviteUserData(this.pageInvite,this.page_size).then(t=>{console.log("123invite",t),this.is_loading_1=!1,200===t?.status_code?(this.inviteUser=t?.data,this.countInvite=t?.total):this.toastr.showToast("danger","Error!",t?.description||"Gettings data failed.")},t=>{this.is_loading_1=!1,console.log("Internal Server Error",t),this.toastr.showToast("danger","Error!","Internal Server Error.")})}pageChangedInvite(t){this.pageInvite=t,this.getInviteUser()}formatDate(t){const r=new Date(t),i=r.getFullYear(),p=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][r.getMonth()];return`${String(r.getDate()).padStart(2,"0")} ${p} ${i}`}getAllPrivileges(){this.is_loading_1=!0,this.UserMService.getAllPrivileges().then(t=>{console.log("getAllPrivilegesData",t),this.is_loading_1=!1,200===t?.status_code?this.all_privileges=t?.data:this.toastr.showToast("danger","Error!",t?.description||"Gettings data failed.")},t=>{this.is_loading_1=!1,console.log("Internal Server Error",t),this.toastr.showToast("danger","Error!","Internal Server Error.")})}stepperChange(t){console.log("data",t),"activeUser"==t?(this.activeU=!0,this.InvitedU=!1):"invitedUser"==t&&(this.activeU=!1,this.InvitedU=!0)}openActive(){this.dialogActive.show()}closeCreationActive(){this.dialogActive.hide()}closeActive(){this.dialogActive.hide(),this.invite_form.reset(),this.selectedPrivileges=[]}isChecked(t){return this.selectedPrivileges.includes(t)}onProviderChange(t,r){const i=this.selectedPrivileges.indexOf(r);t&&-1===i?this.selectedPrivileges.push(r):!t&&-1!==i&&this.selectedPrivileges.splice(i,1),console.log("Selected Privileges:",this.selectedPrivileges)}submit_application(){if(this.is_loading_1=!0,this.invite_form.valid){let r={...this.invite_form.value,privileges:this.selectedPrivileges};console.log(r,"request"),this.UserMService.inviteUser(r).then(i=>{this.is_loading_1=!1,console.log(i,"5ggdfghfg123h"),200===i?.status_code?(this.is_loading_1=!1,this.toastr.showToast("success","Success","Invite creation successfully"),this.stepperChange("invitedUser"),this.getInviteUser(),this.closeActive()):(console.log("rrrr"),this.is_loading_1=!1,this.toastr.showToast("danger","Error!",i.description||"Gettings data failed."),this.closeActive(),this.stepperChange("invitedUser"))},i=>{this.is_loading_1=!1,this.toastr.showToast("danger","Error","Internal server error"),this.closeActive()})}else this.is_loading_1=!1,console.log("Form is invalid")}openDeleteActive(t,r){this.deleteActiveForm.setValue({email_set:r}),this.active_delete_model=this.dialogService.open(t,{closeOnBackdropClick:!1})}deleteActiveUser(){this.is_loading_1=!0,this.UserMService.deleteActive(this.deleteActiveForm.value.email_set).then(t=>{this.is_loading_1=!1,200===t?.status_code?(this.stepperChange("activeUser"),this.getActiveUser(),this.toastr.showToast("success","Cheers!","User deleted successfully!"),this.active_delete_model.close()):this.toastr.showToast("danger","Error!",t?.description||"Gettings data failed.")},t=>{this.is_loading_1=!1,this.toastr.showToast("danger","Oh Snap!","Internal Server Error!")})}openActiveUpdate(t){this.dialogActiveUpdate.show();const r=t.assigned_privileges.map(s=>s.id),i=this.all_privileges.map(s=>{const p=r.includes(s.id);return new ie.MJ(p)});this.active_formUpdate.setControl("privileges",new ie.Yp(i)),this.active_formUpdate.patchValue({email:t.email})}submit_activeUpdate(){if(this.is_loading_1=!0,this.active_formUpdate.valid){const t=this.active_formUpdate.get("privileges").value,r=this.all_privileges.filter((s,p)=>t[p]).map(s=>s.id),i={email:this.active_formUpdate.get("email").value,privileges:r};console.log(i,"request"),this.UserMService.activeeUserUpdate(i).then(s=>{this.is_loading_1=!1,console.log(s,"5ggdfghfgh"),200===s?.status_code?(this.toastr.showToast("success","Success","Invite created successfully"),this.stepperChange("activeUser"),this.getActiveUser(),this.closeActiveU()):(this.toastr.showToast("danger","Error
1!",s.description||"At least one privilege is required."),this.closeActiveU())}).catch(s=>{this.is_loading_1=!1,this.toastr.showToast("danger","Error","Internal server error")})}else this.is_loading_1=!1,console.log("Form is invalid")}closeActiveUpdate(){this.dialogActiveUpdate.hide()}closeActiveU(){this.dialogActiveUpdate.hide()}openDeleteInvite(t,r){console.log(r,"eeeeeeeeee"),this.deleteInviteForm.setValue({email_set:r}),this.invite_delete_model=this.dialogService.open(t,{closeOnBackdropClick:!1})}deleteInviteData(){this.is_loading_1=!0,this.UserMService.deleteInvite(this.deleteInviteForm.value.email_set).then(t=>{this.is_loading_1=!1,200===t?.status_code?(this.stepperChange("invitedUser"),this.getInviteUser(),this.toastr.showToast("success","Cheers!","Invite cancel successfully!"),this.invite_delete_model.close()):this.toastr.showToast("danger","Error!",t?.description||"Gettings invite data failed.")},t=>{this.is_loading_1=!1,this.toastr.showToast("danger","Oh Snap!","Internal Server Error!")})}openInviteUpdate(t){this.dialogInviteUpdate.show();const r=t.assigned_privileges.map(s=>s.id),i=this.all_privileges.map(s=>{const p=r.includes(s.id);return new ie.MJ(p)});this.invite_form_update.setControl("privileges",new ie.Yp(i)),this.invite_form_update.patchValue({email:t.email,phone_number:t.phone})}submit_applicationInviteUpdate(){if(this.is_loading_1=!0,this.invite_form_update.valid){const t=this.invite_form_update.get("privileges").value,r=this.all_privileges.filter((s,p)=>t[p]).map(s=>s.id),i={email:this.invite_form_update.get("email").value,phone_number:this.invite_form_update.get("phone_number").value,privileges:r};console.log(i,"request"),this.UserMService.inviteUserUpdate(i).then(s=>{this.is_loading_1=!1,console.log(s,"5ggdfghfgh"),200===s?.status_code?(this.toastr.showToast("success","Success","Invite created successfully"),this.stepperChange("invitedUser"),this.getInviteUser(),this.closeInviteU()):(this.toastr.showToast("danger","Error!",s.description||"At least one privilege is required."),this.closeInviteU(),this.stepperChange("invitedUser"))}).catch(s=>{this.is_loading_1=!1,this.toastr.showToast("danger","Error","Internal server error")})}else this.is_loading_1=!1,console.log("Form is invalid")}closeInviteUpdate(){this.dialogInviteUpdate.hide()}closeInviteU(){this.dialogInviteUpdate.hide()}checkvalidityInvite(){return!(this.invite_form.valid&&this.selectedPrivileges.length)}checkvalidityActiveUpdate(){return!this.active_formUpdate.valid}checkvalidityInviteUpdate(){return!this.invite_form_update.valid}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(A4.G),e.rXU(Dt.V4),e.rXU(ie.ok),e.rXU(E.S0W))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-user-management"]],viewQuery:function(r,i){if(1&r&&(e.GBs(Z8,5),e.GBs(Q8,5),e.GBs(e7,5)),2&r){let s;e.mGM(s=e.lsd())&&(i.dialogActive=s.first),e.mGM(s=e.lsd())&&(i.dialogActiveUpdate=s.first),e.mGM(s=e.lsd())&&(i.dialogInviteUpdate=s.first)}},decls:129,vars:41,consts:[["dialogActive","bs-modal"],["dialogActiveUpdate","bs-modal"],["dialogDeleteActive",""],["dialogDeleteInvite",""],["dialogInviteUpdate","bs-modal"],[1,"body-style","ipg-transaction-root"],[1,"container"],[2,"text-decoration","none","color","#718096","font-size","13px","font-weight","500"],[1,"row","mb-4"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"page-heading"],[1,"d-flex","justify-content-center"],[1,"invite_btn",3,"click"],[1,"col"],[1,"steper"],[1,"stepper-container","one",3,"click","ngClass"],[1,"tep_name",3,"ngClass"],[1,"stepper-circle",3,"ngClass"],[1,"stepper-container","two",3,"click","ngClass"],[3,"ngClass"],[1,"stepper_border"],[4,"ngIf"],["bsModal","","tabindex","-1","role","dialog","aria-labelledby","myModalLabel","aria-hidden","true",1,"modal2","fade",3,"config"],["role","document",1,"modal-md","invited_dialog"],[1,"modal-content","invited-content"],[1,"modal-header-ipg"],[1,"sub-heading"],[1,"btn","p-0",2,"color","rgba(0, 0, 0, 0.5)",3,"click"],["size","2px",1,"fas","fa-times"],[1,"mb-5","filter-form",3,"ngSubmit","formGroup"],[1,"modal-body","modal-body-filter",2,"padding-inline","30px"],[1,"row"],[1,"col-12","d-flex","flex-column","justify-content-start","mb-3"],["for","email",1,"col","px-0","mb-1","label_class"],["
1id","email","type","text","nbInput","","fullWidth","","placeholder","Write user email ","formControlName","email","name","email",1,"col",3,"ngClass"],["for","phone_number",1,"col","px-0","mb-1","label_class"],["id","phone_number","type","text","nbInput","","fullWidth","","placeholder","Write user contact number","formControlName","phone_number","name","phone_number",1,"col",3,"ngClass"],["for","privileges",1,"col","px-0","mb-3","label_class"],[1,"checkbox_div"],[4,"ngFor","ngForOf"],[1,"modal-footer"],["shape","rectangle","size","medium","type","button",1,"filter-form-btn","filter-form-clear-btn",3,"click"],["shape","rectangle","size","medium","type","submit",1,"mr-1","filter-form-btn","primary-black-btn",3,"disabled"],["disabled","","id","email","type","text","nbInput","","fullWidth","","placeholder","Write user email ","formControlName","email","name","email",1,"col",3,"ngClass"],[1,"checkbox_div_update"],["formArrayName","privileges",4,"ngIf"],[1,"col-12","d-flex","flex-column","justify-content-start","align-items-center","mb-3"],[1,"col","d-flex","flex-column","px-0","list-like-table"],[1,"table-responsive"],[1,"table","table-sm","align-top"],["class","d-flex justify-content-center align-items-center","style","height: 30rem;",4,"ngIf"],["responsive","true","class","mx-auto mt-4",3,"pageChange","pageBoundsCorrection",4,"ngIf"],[1,"active_label"],["src","../../../../assets/images/delete_i.png",1,"drop_icon",3,"click"],[2,"margin-left","10px"],["src","../../../../assets/images/pencil2.png",1,"drop_icon",3,"click"],[1,"d-flex","justify-content-center","align-items-center",2,"height","30rem"],["role","status",1,"spinner-border","text-primary"],[1,"visually-hidden"],[1,"text-center"],[1,"noData_text"],[1,"let_text"],[1,"d-flex","justify-content-center","mt-3"],["responsive","true",1,"mx-auto","mt-4",3,"pageChange","pageBoundsCorrection"],[1,"pending_label"],[1,"d-flex","justify-content-around"],[1,"btn-group"],["data-toggle","dropdown","aria-expanded","false","src","../../../../assets/images/more.png",1,"more_i"],[1,"dropdown-menu","dropdown-menu-right"],["type","button",1,"dropdown-item",3,"click"],["src","../../../../assets/images/pencil2.png",1,"drop_icon"],[2,"font-size","14px","font-weight","500","color","#344054","margin-left","10px"],["src","../../../../assets/images/delete_i2.png",1,"drop_icon"],["class","text-danger",4,"ngIf"],[1,"text-danger"],[1,"checkbox_label"],["type","checkbox",3,"change","checked"],[2,"margin-left","6px"],["formArrayName","privileges"],["type","checkbox",3,"formControl"],[2,"font-size","16px","margin-left","6px"],[1,"step-container",3,"ngSubmit","formGroup"],[2,"width","400px"],[1,"dialog-border",2,"font-family","'Poppins'"],[1,"row","justify-content-center","mb-3"],["src","../../../../assets/images/delete_icon_pop.png",1,"pe-2","delete_img"],[1,"d-flex","justify-content-center","topic-app","mb-3"],[1,"d-flex","justify-content-center","delete_p"],[2,"border-top","none"],[1,"d-flex","justify-content-center","buttons-container-app"],[1,"button-cansel-app",3,"click"],["type","submit",1,"delete-button-app"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",5)(1,"div",6)(2,"p",7),e.EFF(3,"Manage users"),e.k0s(),e.j41(4,"div",8)(5,"div",9)(6,"h2",10),e.EFF(7,"User management"),e.k0s(),e.j41(8,"div",11)(9,"button",12),e.bIt("click",function(){return e.eBV(s),e.Njj(i.openActive())}),e.EFF(10,"Invite to users"),e.k0s()()()(),e.j41(11,"div",8)(12,"div",13)(13,"nb-card")(14,"nb-card-body")(15,"div",14)(16,"div",15),e.bIt("click",function(){return e.eBV(s),e.Njj(i.stepperChange("activeUser"))}),e.j41(17,"span",16),e.EFF(18,"Active users"),e.k0s(),e.j41(19,"div",17),e.EFF(20),e.k0s()(),e.j41(21,"div",18),e.bIt("click",function(){return e.eBV(s),e.Njj(i.stepperChange("invitedUser"))}),e.j41(22,"span",19),e.EFF(23,"Invited users"),e.k0s(),e.j41(24,"div",17),e.EFF(25),e.k0s()()(),e.nrm(26,"div",20),e.DNE(27,o7,17,4,"div",21)(28,f7,17,4,"div",21),e.k0s()()()()()(),e.j41(29,"div",22,0)(31,"div",23)(32,"div",24)(33,"div",25)(34,"div",9)(35,"h4",26),e.EFF(36,"Invite to user"),e.k0s(),e.j41(37,"button",27),e.bIt("click",function(){return e.eBV(s),e.Njj(i.closeActive())}),e.j41(38,"a"),e.nrm(39,"i",28),e.k0s()()()(),e.j41(40,"form",29),e.bIt("ngSubmit",function(){return e.eBV(s),e.Njj(i.submit_application())}),e.j41(41,"div",30)(42,"div",31)(43,"div",32)(44,"label",33),e.EFF(45,"Write your user email"),e.k0s(),e.nrm(46,"input",34),e.DNE(47,m7,3,2,"div",21),e.k0s()(),e.j41(48,"div",31)(49,"div",32)(50,"label",35),e.EFF(51,"Write your contact number"),e.k0s(),e.nrm(52,"input",36),e.DNE(53,x7,4,3,"div",21),e.k0s()(),e.j41(54,"div",31)(55,"div",32)(56,"label",37),e.EFF(57,"Select privileges"),e.k0s(),e.j41(58,"div",38),e.DNE(
159,b7,5,4,"div",39),e.k0s()()()(),e.j41(60,"div",40)(61,"button",41),e.bIt("click",function(){return e.eBV(s),e.Njj(i.closeCreationActive())}),e.EFF(62," Cancel "),e.k0s(),e.j41(63,"button",42),e.EFF(64," Invite "),e.k0s()()()()()(),e.j41(65,"div",22,1)(67,"div",23)(68,"div",24)(69,"div",25)(70,"div",9)(71,"h4",26),e.EFF(72,"Edit user details"),e.k0s(),e.j41(73,"button",27),e.bIt("click",function(){return e.eBV(s),e.Njj(i.closeActiveU())}),e.j41(74,"a"),e.nrm(75,"i",28),e.k0s()()()(),e.j41(76,"form",29),e.bIt("ngSubmit",function(){return e.eBV(s),e.Njj(i.submit_activeUpdate())}),e.j41(77,"div",30)(78,"div",31)(79,"div",32)(80,"label",33),e.EFF(81,"Write your user email"),e.k0s(),e.nrm(82,"input",43),e.DNE(83,k7,3,2,"div",21),e.k0s()(),e.j41(84,"div",31)(85,"div",32)(86,"label",37),e.EFF(87,"Select privileges"),e.k0s(),e.j41(88,"div",44),e.DNE(89,F7,2,1,"div",45),e.k0s()()()(),e.j41(90,"div",40)(91,"button",41),e.bIt("click",function(){return e.eBV(s),e.Njj(i.closeActiveUpdate())}),e.EFF(92," Cancel "),e.k0s(),e.j41(93,"button",42),e.EFF(94," Save "),e.k0s()()()()()(),e.DNE(95,A7,15,1,"ng-template",null,2,e.C5r)(97,T7,15,1,"ng-template",null,3,e.C5r),e.j41(99,"div",22,4)(101,"div",23)(102,"div",24)(103,"div",25)(104,"div",9)(105,"h4",26),e.EFF(106,"Edit user invitation"),e.k0s(),e.j41(107,"button",27),e.bIt("click",function(){return e.eBV(s),e.Njj(i.closeInviteU())}),e.j41(108,"a"),e.nrm(109,"i",28),e.k0s()()()(),e.j41(110,"form",29),e.bIt("ngSubmit",function(){return e.eBV(s),e.Njj(i.submit_applicationInviteUpdate())}),e.j41(111,"div",30)(112,"div",31)(113,"div",46)(114,"label",33),e.EFF(115,"Write your user email"),e.k0s(),e.nrm(116,"input",43),e.DNE(117,E7,2,1,"div",21),e.k0s()(),e.j41(118,"div",31)(119,"div",32)(120,"label",37),e.EFF(121,"Select privileges"),e.k0s(),e.j41(122,"div",44),e.DNE(123,M7,2,1,"div",45),e.k0s()()()(),e.j41(124,"div",40)(125,"button",41),e.bIt("click",function(){return e.eBV(s),e.Njj(i.closeInviteUpdate())}),e.EFF(126," Cancel "),e.k0s(),e.j41(127,"button",42),e.EFF(128," Reinvite "),e.k0s()()()()()()}2&r&&(e.R7$(16),e.Y8G("ngClass",i.activeU?"stepper-container_active":"stepper-container"),e.R7$(),e.Y8G("ngClass",i.activeU?"tep_name":"tep_name-de"),e.R7$(2),e.Y8G("ngClass",i.activeU?"c-active":"c-active-de"),e.R7$(),e.JRh(i.count?i.count:"0"),e.R7$(),e.Y8G("ngClass",i.InvitedU?"stepper-container_active":"stepper-container"),e.R7$(),e.Y8G("ngClass",i.InvitedU?"tep_name":"tep_name-de"),e.R7$(2),e.Y8G("ngClass",i.InvitedU?"c-invited":"c-invited-de"),e.R7$(),e.JRh(i.countInvite?i.countInvite:"0"),e.R7$(2),e.Y8G("ngIf",i.activeU),e.R7$(),e.Y8G("ngIf",i.InvitedU),e.R7$(),e.Y8G("config",e.lJ4(30,vx)),e.R7$(11),e.Y8G("formGroup",i.invite_form),e.R7$(6),e.Y8G("ngClass",e.eq3(31,sv,(i.invite_form.get("email").dirty||i.invite_form.get("email").touched)&&i.invite_form.get("email").errors)),e.R7$(),e.Y8G("ngIf",i.invite_form.get("email").invalid&&(i.invite_form.get("email").dirty||i.invite_form.get("email").touched)),e.R7$(5),e.Y8G("ngClass",e.eq3(33,sv,(i.invite_form.get("phone_number").dirty||i.invite_form.get("phone_number").touched)&&i.invite_form.get("phone_number").errors)),e.R7$(),e.Y8G("ngIf",i.invite_form.get("phone_number").invalid&&(i.invite_form.get("phone_number").dirty||i.invite_form.get("phone_number").touched)),e.R7$(6),e.Y8G("ngForOf",i.all_privileges),e.R7$(4),e.Y8G("disabled",i.checkvalidityInvite()),e.R7$(2),e.Y8G("config",e.lJ4(35,vx)),e.R7$(11),e.Y8G("formGroup",i.active_formUpdate),e.R7$(6),e.Y8G("ngClass",e.eq3(36,sv,(i.active_formUpdate.get("email").dirty||i.active_formUpdate.get("email").touched)&&i.active_formUpdate.get("email").errors)),e.R7$(),e.Y8G("ngIf",i.active_formUpdate.get("email").invalid&&(i.active_formUpdate.get("email").dirty||i.active_formUpdate.get("email").touched)),e.R7$(6),e.Y8G("ngIf",i.active_formUpdate.get("privileges")),e.R7$(4),e.Y8G("disabled",i.checkvalidityActiveUpdate()),e.R7$(6),e.Y8G("config",e.lJ4(38,vx)),e.R7$(11),e.Y8G("formGroup",i.invite_form_update),e.R7$(6),e.Y8G("ngClass",e.eq3(39,sv,(i.invite_form_update.get("email").dirty||i.invite_form_update.get("email").touched)&&i.invite_form_update.get("email").errors)),e.R7$(),e.Y8G("ngIf",i.invite_form_update.get("email").invalid&&(i.invite_form_update.get("email").dirty||i.invite_form_update.get("email").touched)),e.R7$(6),e.Y8G("ngIf",i.invite_form_update.get("privileges")),e.R7$(4),e.Y8G("disabled",i.checkvalidityInviteUpdate()))},dependencies:[Fe.YU,Fe.Sq,Fe.bT,xi.ej,ie.qT,ie.me,ie.Zm,ie.BC,ie.cb,ie.l_,ie.j4,ie.JD,ie.v8,E.SrT,E.KH5,E.VDm,E.i6h,_x.hZ,xi.kf],styles:[".ipg-transaction-root[_ngcontent-%COMP%] nb-badge[_ngcontent-%COMP%]{position:absolute;top:39%;left:15px;width:-moz-fit-content;width:fit-content}.transaction-view-modal[_ngcontent-%COMP%]{width:40rem;height:85vh}.transaction-view-modal[_ngcontent-%COMP%] nb-badge[_ngcontent-%COMP%]{position:absolute;
1left:15px;top:50%;transform:translateY(0);width:-moz-fit-content;width:fit-content}.invited_dialog[_ngcontent-%COMP%]{width:415px;float:right!important}.invited-content[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:none;height:100%;border-radius:0;outline:0}.modal-header-ipg[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;padding:1rem;border-top-left-radius:.3rem;border-top-right-radius:.3rem}.modal-footer[_ngcontent-%COMP%]{position:fixed;bottom:0;text-align:right;font-size:14px;color:#8b8b8b;font-weight:400;margin-top:14px;background:#fff;width:415px;margin-bottom:12px;padding-right:26px;border-top:none}.modal-body-filter[_ngcontent-%COMP%]{height:100vh}.modal2[_ngcontent-%COMP%]{position:fixed;top:0;left:0;z-index:1050;display:none;width:100%;overflow:hidden;outline:0}.filter-form-clear-btn[_ngcontent-%COMP%]{width:80px!important;height:40px!important;border-radius:8px!important;border:1px solid #D0D5DD!important;font-weight:600!important;font-size:14px!important;color:#344054!important;margin-right:8px}.primary-black-btn[_ngcontent-%COMP%]{width:76px!important;height:40px!important;border-radius:8px!important;border:1px solid #D0D5DD!important;font-weight:600!important;font-size:14px!important;color:#fff!important}.filter_icon[_ngcontent-%COMP%]{float:right!important;cursor:pointer;margin-top:17px}.filter_icon_figma[_ngcontent-%COMP%]{height:11px;width:auto;margin-right:6px}.tool_icon[_ngcontent-%COMP%]{position:absolute;top:4px;right:14px;cursor:pointer}.primary-green-btn[_ngcontent-%COMP%]{background:#000!important;text-transform:capitalize!important}.search[_ngcontent-%COMP%]{margin-left:12px;margin-top:11px}.more_i[_ngcontent-%COMP%]{width:auto;height:15px;cursor:pointer}.btn.dropdown-toggle[_ngcontent-%COMP%]{display:none}.more_i[_ngcontent-%COMP%]{position:relative;top:3px}.drop_icon[_ngcontent-%COMP%]{width:13px;height:13px;cursor:pointer}.overridee[_ngcontent-%COMP%]{align-items:baseline!important}.icon-main[_ngcontent-%COMP%]{position:absolute;z-index:1;margin-top:10px;margin-left:13px}.icon-sub-sign[_ngcontent-%COMP%]{display:inline;color:#667085;font-weight:100}.sign-input[_ngcontent-%COMP%]{padding-left:52px!important;width:100%}.steper[_ngcontent-%COMP%]{display:flex;flex-direction:row}.stepper-container[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:20px;padding-bottom:15px;cursor:pointer}.stepper-container_active[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:20px;padding-bottom:15px;border-bottom:5px solid #378765}.stepper-circle[_ngcontent-%COMP%]{width:25px;height:25px;border-radius:50%;color:#fff;font-size:12px;font-weight:500;display:flex;justify-content:center;align-items:center}.c-active[_ngcontent-%COMP%]{background-color:#000}.c-active-de[_ngcontent-%COMP%]{background-color:#a4a4a4}.c-invited[_ngcontent-%COMP%]{background-color:red}.c-invited-de[_ngcontent-%COMP%]{background-color:#ff8574}.tep_name[_ngcontent-%COMP%]{color:#000;font-size:14px;font-weight:500;margin-right:8px}.tep_name-de[_ngcontent-%COMP%]{color:#a4a4a4;font-size:14px;font-weight:500;margin-right:8px}.steper[_ngcontent-%COMP%]{display:flex;align-items:center}.active[_ngcontent-%COMP%]{color:red}.stepper_border[_ngcontent-%COMP%]{border:3px solid #F1F1F1;margin-top:-4px}.noData_text[_ngcontent-%COMP%]{font-size:18px;color:#000;font-weight:700}.let_text[_ngcontent-%COMP%]{font-size:14px;color:#949494;font-weight:500}.invite_btn[_ngcontent-%COMP%]{padding:8px 16px;height:40px;border:none;display:flex;flex-direction:row;justify-content:center;align-items:center;color:#fff;background:#00130c;border-radius:8px;flex:none;order:1;flex-grow:0;font-size:14px;font-weight:500}.label_class[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#344054;line-height:20px}.checkbox_label[_ngcontent-%COMP%]{font-size:16px;font-weight:400;color:#5b5b5b;line-height:24px}.checkbox_div[_ngcontent-%COMP%]{overflow-y:scroll;height:35vh}.checkbox_div_update[_ngcontent-%COMP%]{overflow-y:scroll;height:48vh}.active_label[_ngcontent-%COMP%]{padding:4px 10px;border-radius:4px;background:#e0ffe1;color:#009834;text-align:center}.pending_label[_ngcontent-%COMP%]{padding:4px 10px;border-radius:4px;
1background:#f5ffe0;color:#985b00;text-align:center}.feature-icon-update[_ngcontent-%COMP%]{width:48px!important;height:auto}.button-cansel-app[_ngcontent-%COMP%]{padding:10px 18px;margin-right:10px;width:170px;height:44px;font-size:14px;font-weight:700;color:#344054;background-color:#fff;border:1px solid #D0D5DD;border-radius:8px;cursor:pointer}.delete-button-app[_ngcontent-%COMP%]:hover{background-color:#d92d20!important}.delete-button-app[_ngcontent-%COMP%]{padding:10px 18px;margin-right:10px;width:170px;height:44px;font-size:16px;font-weight:600;color:#fff;background-color:#d92d20;border:none;border-radius:8px}.delete_img[_ngcontent-%COMP%]{width:48px;height:auto}.topic-app[_ngcontent-%COMP%]{font-size:18px;font-weight:600}.delete_p[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:20px;color:#667085}.checked[_ngcontent-%COMP%]{color:#000}.text-danger-container[_ngcontent-%COMP%]{text-align:left!important}"]})}return n})();const S4=(n,a,t)=>({itemsPerPage:n,currentPage:a,totalItems:t});function D7(n,a){if(1&n){const t=e.RV6();e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.EFF(4),e.k0s(),e.j41(5,"td"),e.EFF(6),e.k0s(),e.j41(7,"td"),e.EFF(8),e.k0s(),e.j41(9,"td"),e.EFF(10),e.k0s(),e.j41(11,"td"),e.EFF(12),e.k0s(),e.j41(13,"td",25)(14,"div",26)(15,"button",27),e.bIt("click",function(){const i=e.eBV(t).$implicit,s=e.XpG(3),p=e.sdS(29);return e.Njj(s.openDecline(p,i.onepay_transaction_id))}),e.EFF(16," Decline "),e.k0s(),e.j41(17,"button",28),e.bIt("click",function(){const i=e.eBV(t).$implicit,s=e.XpG(3),p=e.sdS(27);return e.Njj(s.openApprove(p,i.onepay_transaction_id,i.refund_amount,i))}),e.EFF(18," Approve "),e.k0s()()()()}if(2&n){const t=a.$implicit,r=e.XpG(3);e.R7$(2),e.JRh((null==t?null:t.onepay_transaction_id)||"Not Available"),e.R7$(2),e.Lme("",t.request_amount||"00.00"," ",(null==t?null:t.currency)||"LKR"," "),e.R7$(2),e.Lme("",t.refund_amount||"00.00"," ",(null==t?null:t.currency)||"LKR"," "),e.R7$(2),e.JRh((null==t?null:t.customer_email)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.request_by)||"Not Available"),e.R7$(2),e.JRh(null!=t&&t.request_datetime?r.formatDate(t.request_datetime):"Not Available")}}function I7(n,a){if(1&n&&(e.j41(0,"tbody"),e.DNE(1,D7,19,8,"tr",24),e.nI1(2,"paginate"),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngForOf",e.i5U(2,1,t.all_transaction_request,e.sMw(4,S4,t.page_size,t.page,t.count)))}}function j7(n,a){1&n&&(e.j41(0,"div",29)(1,"div",30)(2,"span",31),e.EFF(3,"Loading..."),e.k0s()()())}function R7(n,a){1&n&&(e.j41(0,"div",32)(1,"h6"),e.EFF(2,"No data available!"),e.k0s()())}function L7(n,a){if(1&n){const t=e.RV6();e.j41(0,"pagination-controls",33),e.bIt("pageChange",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.pageChanged(i))})("pageBoundsCorrection",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.pageChanged(i))}),e.k0s()}}function N7(n,a){if(1&n&&(e.j41(0,"div")(1,"div",17)(2,"div",18)(3,"table",19)(4,"thead")(5,"tr")(6,"th"),e.EFF(7,"TRANSACTION ID"),e.k0s(),e.j41(8,"th"),e.EFF(9,"TRANSACTION AMOUNT"),e.k0s(),e.j41(10,"th"),e.EFF(11,"REFUND AMOUNT"),e.k0s(),e.j41(12,"th"),e.EFF(13,"EMAIL"),e.k0s(),e.j41(14,"th"),e.EFF(15,"REQUESTED BY"),e.k0s(),e.j41(16,"th"),e.EFF(17,"DATE TIME"),e.k0s(),e.j41(18,"th",20),e.EFF(19,"ACTION"),e.k0s()()(),e.DNE(20,I7,3,8,"tbody",16),e.k0s(),e.DNE(21,j7,4,0,"div",21)(22,R7,3,0,"div",22),e.k0s(),e.DNE(23,L7,1,0,"pagination-controls",23),e.k0s()()),2&n){const t=e.XpG();e.R7$(20),e.Y8G("ngIf",!t.is_loading_1&&t.count>0),e.R7$(),e.Y8G("ngIf",t.is_loading_1),e.R7$(),e.Y8G("ngIf",!t.is_loading_1&&0===t.count),e.R7$(),e.Y8G("ngIf",t.count>0)}}function B7(n,a){1&n&&(e.j41(0,"div",36),e.EFF(1,"Approved"),e.k0s())}function G7(n,a){1&n&&(e.j41(0,"div",37),e.EFF(1,"Declined"),e.k0s())}function V7(n,a){if(1&n&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.EFF(4),e.k0s(),e.j41(5,"td"),e.EFF(6),e.k0s(),e.j41(7,"td"),e.EFF(8),e.k0s(),e.j41(9,"td"),e.EFF(10),e.k0s(),e.j41(11,"td"),e.EFF(12),e.k0s(),e.j41(13,"td"),e.DNE(14,B7,2,0,"div",34)(15,G7,2,0,"div",35),e.k0s()()),2&n){const t=a.$implicit,r=e.XpG(3);e.R7$(2),e.JRh((null==t?null:t.onepay_transaction_id)||"Not Available"),e.R7$(2),e.Lme("",t.request_amount||"00.00"," ",(null==t?null:t.currency)||"LKR"," "),e.R7$(2),e.Lme("",t.refund_amount||"00.00"," ",(null==t?null:t.currency)||"LKR"," "),e.R7$(2),e.JRh((null==t?null:t.customer_email)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.request_by)||"Not Available"),e.R7$(2),e.JRh(null!=t&&t.request_datetime?r.formatDate(t.request_datetime):"Not Available"),e.R7$(2),e.Y8G("ngIf",null==t?null:t.is_refund_request_approved),e.R7$(),e.Y8G("ngIf",!(null!=t&&t.is_refund_request_approved))}}function z7(n,a){if(1&n&&(e.j41(0,"tbody"),e.DNE(1,V7,16,10,"tr",24),e.nI1(2,"paginate"),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngForOf",e.i5U(2,1,t.all_request_summary,e.sMw(4,S4,t.page_size,t.pageSummary,t.countSummary)))}}function U7(n,a){1&n&&(e.j41(0,"div",29)(1,"div",30)(2,"span",31),e.EFF(3,"Loading..."),e.k0s()()())}function Y7(n,a){1&n&&(e.j41(0,"div",32)(1,"h6"),e.EFF(2,"No data available!"),e.k0s()())}function W7(n,a){if(1&n){const t=e.RV6();e.j41(0,"pagination-controls",33),e.bIt("pageChange",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.pageChangedSummary(i))})("pageBoundsCorrection",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.pageChangedSummary(i))}),e.k0s()}}function $7(n,a){if(1&n&&(e.j41(0,"div")(1,"div",17)(2,"div",18)(3,"table",19)(4,"thead")(5,"tr")(6,"th"),e.EFF(7,"TRANSACTION ID"),e.k0s(),e.j41(8,"th"),e.EFF(9,"TRANSACTION AMOUNT"),e.k0s(),e.j41(10,"th"),e.EFF(11,"REFUND AMOUNT"),e.k0s(),e.j41(12,"th"),e.EFF(13,"EMAIL"),e.k0s(),e.j41(14,"th"),e.EFF(15,"REQUESTED BY"),e.k0s(),e.j41(16,"th"),e.EFF(17,"DATE TIME"),e.k0s(),e.j41(18,"th"),e.EFF(19,"STATUS"),e.k0s()()(),e.DNE(20,z7,3,8,"tbody",16),e.k0s(),e.DNE(21,U7,4,0,"div",21)(22,Y7,3,0,"div",22),e.k0s(),e.DNE(23,W7,1,0,"pagination-controls",23),e.k0s()()),2&n){const t=e.XpG();e.R7$(20),e.Y8G("ngIf",!t.is_loading_1&&t.countSummary>0),e.R7$(),e.Y8G("ngIf",t.is_loading_1),e.R7$(),e.Y8G("ngIf",!t.is_loading_1&&0===t.countSummary),e.R7$(),e.Y8G("ngIf",t.countSummary>0)}}function q7(n,a){1&n&&(e.j41(0,"ul",65)(1,"li"),e.EFF(2,"Amount is required."),e.k0s()())}function X7(n,a){1&n&&(e.j41(0,"ul",65)(1,"li"),e.EFF(2,"Refund amount invalid."),e.k0s()())}function H7(n,a){if(1&n&&(e.j41(0,"div",58)(1,"div",59)(2,"label",60),e.EFF(3," Amount "),e.j41(4,"span",61),e.EFF(5,"*"),e.k0s()(),e.j41(6,"div",62),e.nrm(7,"input",63),e.DNE(8,q7,3,0,"ul",64)(9,X7,3,0,"ul",64),e.k0s()()()),2&n){const t=e.XpG(2);e.R7$(7),e.Y8G("status",t.isFieldInvalid("amount1")?"danger":"basic"),e.R7$(),e.Y8G("ngIf",t.isFieldInvalid("amount1")),e.R7$(),e.Y8G("ngIf",t.checkValidAmount())}}function K7(n,a){if(1&n){const t=e.RV6();e.j41(0,"form",38),e.bIt("ngSubmit",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.approveTransaction())}),e.j41(1,"nb-card",39)(2,"nb-card-header")(3,"div",6)(4,"button",40),e.bIt("click",function(){const i=e.eBV(t).dialogRef;return e.Njj(i.close())}),e.j41(5,"a"),e.nrm(6,"i",41),e.k0s()()(),e.j41(7,"div",42),e.nrm(8,"img",43),e.k0s(),e.j41(9,"div",44),e.EFF(10," Accept refund request "),e.k0s(),e.j41(11,"div",45),e.EFF(12," Are you sure you want to accept refund request ? This action cannot be undone. "),e.k0s()(),e.j41(13,"nb-card-body")(14,"div",46)(15,"div",47)(16,"div",48)(17,"div",49)(18,"label",50)(19,"input",51),e.bIt("ngModelChange",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.choose1(i))}),e.k0s(),e.EFF(20," \xa0Partial payment"),e.k0s()(),e.j41(21,"div",52),e.DNE(22,H7,10,3,"div",53),e.k0s()()()()(),e.j41(23,"nb-card-footer",54)(24,"div",55)(25,"button",56),e.bIt("click",function(){const i=e.eBV(t).dialogRef;return e.Njj(i.close())}),e.EFF(26," Cancel "),e.k0s(),e.j41(27,"button",57),e.EFF(28," Accept "),e.k0s()()()()()}if(2&n){const t=e.XpG();e.Y8G("formGroup",t.refundform1),e.R7$(22),e.Y8G("ngIf",!1===t.item1),e.R7$(5),e.Y8G("disabled",!t.checkAmount()||t.is_loading_1||t.checkValidAmount())("nbSpinner",t.is_loading_1)}}function J7(n,a){if(1&n){const t=e.RV6();e.j41(0,"nb-card",66)(1,"nb-card-body",67)(2,"div",42),e.nrm(3,"img",68),e.k0s(),e.j41(4,"div",44),e.EFF(5," Decline refund request "),e.k0s(),e.j41(6,"div",69),e.EFF(7," Are you sure you want to decline refund request ? This action cannot be undone. "),e.k0s()(),e.j41(8,"nb-card-footer",54)(9,"div",55)(10,"button",56),e.bIt("click",function(){const i=e.eBV(t).dialogRef;return e.Njj(i.close())}),e.EFF(11," Cancel "),e.k0s(),e.j41(12,"button",70),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.declineTransaction())}),e.EFF(13," Decline "),e.k0s()()()()}if(2&n){const t=e.XpG();e.R7$(12),e.Y8G("disabled",!t.checkAmount()||t.is_loading_1)("nbSpinner",t.is_loading_1)}}let Z7=(()=>{class n{constructor(t,r,i,s,p){this.UserMService=t,this.toastr=r,this.fb2=i,this.dialogService=s,this.transactionService=p,this.page=1,this.page_size=10,this.count=0,this.pageSummary=1,this.countSummary=0,this.is_loading_1=!1,this.newRequest=!0,this.approved=!1,this.item1=!0,this.refundform1=null,this.refundform1=this.fb2.group({is_partially1:[0],transaction_id:[""],amount1:[""]})}get amount(){return this.refundform1.get("amount1")}ngOnInit(){console.log("Is sub user :",localStorage.getItem("xu")),this.getTransactionRequests(),this.getTransactionSummary()}choose1(t){console.log(t),this.item1=1!=t}isFieldInvalid(t){const r=this.refundform1.get(t);let i=!1;
1return r&&(r?.dirty||r?.touched)&&(i=r?.invalid&&r?.errors&&!0,"amount"===t&&(i=!this.checkAmount())),i}checkAmount(){return!(this.refundform1.get("is_partially1").value&&!this.refundform1.get("amount1").value)}checkValidAmount(){return this.refundform1.get("amount1").value>this.tran_amount}stepperChange(t){console.log("data",t),"newRequest"==t?(this.newRequest=!0,this.approved=!1,this.getTransactionRequests()):"approvedRequest"==t&&(this.newRequest=!1,this.approved=!0,this.getTransactionSummary())}formatDate(t){let r=t.split(" ")[0];return r=r.split("-").reverse().join("/"),r}getTransactionRequests(){this.is_loading_1=!0,this.transactionService.getTransactionRequestData(this.page,this.page_size).then(t=>{console.log(t,"Transaction request data"),this.is_loading_1=!1,100===t?.status?(this.all_transaction_request=t?.data,this.count=t?.count):this.toastr.showToast("danger","Error!",t?.message||"Gettings transaction requets details failed.")},t=>{this.is_loading_1=!1,console.log("Internal Server Error",t),this.toastr.showToast("danger","Error!","Internal Server Error.22")})}pageChanged(t){this.page=t,this.getTransactionRequests()}getTransactionSummary(){this.is_loading_1=!0,this.transactionService.getTransactionSummaryData(this.pageSummary,this.page_size).then(t=>{console.log(t,"Transaction request data"),this.is_loading_1=!1,100===t?.status?(this.all_request_summary=t?.data,this.countSummary=t?.count):this.toastr.showToast("danger","Error!",t?.message||"Gettings transaction requets details failed.")},t=>{this.is_loading_1=!1,console.log("Internal Server Error",t),this.toastr.showToast("danger","Error!","Internal Server Error.22")})}pageChangedSummary(t){this.pageSummary=t,this.getTransactionSummary()}openApprove(t,r,i,s){this.onepay_approve_id=r,this.refund_amount=i,this.tran_amount=s.request_amount,this.approve_model=this.dialogService.open(t,{closeOnBackdropClick:!1})}approveTransaction(){this.is_loading_1=!0;let t={transaction_id:this.onepay_approve_id,is_partially:1,amount:this.refund_amount};1==this.refundform1.get("is_partially1").value&&(t.is_partially=1,t.amount=this.refundform1.get("amount1").value),this.transactionService.acceptRefundRequest(t).then(r=>{console.log(t,"Payload"),console.log(r,"Transaction proceed"),this.is_loading_1=!1,100===r?.status?(this.stepperChange("SUCCESS"),this.toastr.showToast("success","Cheers!","Transaction approve successfully!"),this.approve_model.close(),this.getTransactionRequests(),this.getTransactionSummary(),this.refundform1.reset()):(this.refundform1.reset(),this.toastr.showToast("danger","Error!",r?.message||"Gettings invite data failed."),this.approve_model.close())},r=>{this.is_loading_1=!1,console.log("Internal Server Error",r),this.toastr.showToast("danger","Error!","Internal Server Error.22")})}openDecline(t,r){console.log(r,"rrr"),this.onepay_decline_id=r,this.decline_model=this.dialogService.open(t,{closeOnBackdropClick:!1})}declineTransaction(){this.is_loading_1=!0;let t={transaction_id:this.onepay_decline_id,is_partially:0,amount:0};this.transactionService.declineRefundRequest(t).then(r=>{console.log(t,"Payload"),console.log(r,"Transaction proceed"),this.is_loading_1=!1,100===r?.status?(this.stepperChange("SUCCESS"),this.toastr.showToast("success","Cheers!","Transaction decline successfully!"),this.decline_model.close(),this.getTransactionRequests(),this.getTransactionSummary()):(this.toastr.showToast("danger","Error!",r?.message||"Gettings invite data failed."),this.decline_model.close())},r=>{this.is_loading_1=!1,console.log("Internal Server Error",r),this.toastr.showToast("danger","Error!","Internal Server Error.22")})}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(A4.G),e.rXU(Dt.V4),e.rXU(ie.ok),e.rXU(E.S0W),e.rXU(C4.k))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-transaction-requests"]],decls:30,vars:10,consts:[["dialogApprove",""],["dialogDecline",""],[1,"body-style","ipg-transaction-root"],[1,"container"],[2,"text-decoration","none","color","#718096","font-size","13px","font-weight","500"],[1,"row","mb-4"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"page-heading"],[1,"col"],[1,"steper"],[1,"stepper-container","one",3,"click","ngClass"],[1,"tep_name",3,"ngClass"],[1,"stepper-circle",3,"ngClass"],[1,"stepper-container","two",3,"click","ngClass"],[3,"ngClass"],[1,"stepper_border"],[4,"ngIf"],[1,"col","d-flex","flex-column","px-0","list-like-table"],[1,"table-responsive"],[1,"table","table-sm","align-top"],[2,"text-align","end","padding-right","20px"],["class","d-flex justify-content-center align-items-center","style","height: 30rem;",4,"ngIf"],["class","d-flex justify-content-center align-items-center table-no-data-div","style","height: 20rem;",4,"ngIf"],["responsive","true","class","mx-auto mt-4",3,"pageChange","pageBoundsCorrection",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"d-flex","justify-content-end","align-items-start",2,"text-align","end","padding-right","20px"],[1,"d-flex","justify-content-start","align-items-start"],[1,"table-decline-btn",2,"margin-bottom","4px","margin-right","10px",3,"click"],["nbButton","","status","basic","size","tiny",1,"table-approve-btn",3,"click"],[1,"d-flex","justify-content-center","align-items-center",2,"height","30rem"],["role","status",1,"spinner-border","text-primary"],[1,"visually-hidden"],[1,"d-flex","justify-content-center","align-items-center","table-no-data-div",2,"height","20rem"],["responsive","true",1,"mx-auto","mt-4",3,"pageChange","pageBoundsCorrection"],["class","approved-status",4,"ngIf"],["class","declined-status",4,"ngIf"],[1,"approved-status"],[1,"declined-status"],[3,"ngSubmit","formGroup"],[2,"width","500px"],["type","button",1,"btn","p-0",2,"color","rgba(0, 0, 0, 0.5)",3,"click"],["size","2px",1,"fas","fa-times"],[1,"row","justify-content-center","mb-3"],["src","../../../assets/images/approve_img.png",1,"pe-2","delete_img"],[1,"d-flex","justify-content-center","topic-app","mb-3"],[1,"d-flex","justify-content-center","delete_p",2,"text-align","center"],[1,"col","mt-4"],[1,"d-flex","justify-content-start","align-items-start","mb-3"],[1,"row"],[1,"col-12","mb-3"],[1,"pt-2","checkbox-inline",2,"color","#A7A7A7 !important","font-family","'Poppins' !important"],["type","checkbox","value","0","formControlName","is_partially1","name","is_partially1",3,"ngModelChange"],[1,"col-12"],["class","px-0",4,"ngIf"],[2,"border-top","none"],[1,"d-flex","justify-content-center","buttons-container-app"],[1,"button-cansel-app",3,"click"],["type","submit","nbSpinnerStatus","success","nbSpinnerSize","tiny",1,"approve-button-app",3,"disabled","nbSpinner"],[1,"px-0"],[1,"d-flex","flex-column","justify-content-start","align-items-start"],["for","amount1",1,"col","mb-1"],[1,"form-required-sign"],[1,"col","d-flex","flex-column","justify-content-start","align-items-stretch"],["id","generate-p-link-form-amount","type","number","nbInput","","fullWidth","","placeholder","0.00","formControlName","amount1","name","amount1",3,"status"],["class","error-wrapper",4,"ngIf"],[1,"error-wrapper"],[2,"width","400px"],[1,"dialog-border",2,"font-family","'Poppins'"],["src","../../../assets/images/delete_icon_pop.png",1,"pe-2","delete_img"],[1,"d-flex","justify-content-center","delete_p"],["nbSpinnerStatus","success","nbSpinnerSize","tiny",1,"delete-button-app",3,"click","disabled","nbSpinner"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"p",4),e.EFF(3,"Requests"),e.k0s(),e.j41(4,"div",5)(5,"div",6)(6,"h2",7),e.EFF(7,"Transaction requests"),e.k0s()()(),e.j41(8,"div",5)(9,"div",8)(10,"nb-card")(11,"nb-card-body")(12,"div",9)(13,"div",10),e.bIt("click",function(){return e.eBV(s),e.Njj(i.stepperChange("newRequest"))}),e.j41(14,"span",11),e.EFF(15,"New Request"),e.k0s(),e.j41(16,"div",12),e.
1EFF(17),e.k0s()(),e.j41(18,"div",13),e.bIt("click",function(){return e.eBV(s),e.Njj(i.stepperChange("approvedRequest"))}),e.j41(19,"span",14),e.EFF(20,"Request Summary"),e.k0s(),e.j41(21,"div",12),e.EFF(22),e.k0s()()(),e.nrm(23,"div",15),e.DNE(24,N7,24,4,"div",16)(25,$7,24,4,"div",16),e.k0s()()()()()(),e.DNE(26,K7,29,4,"ng-template",null,0,e.C5r)(28,J7,14,2,"ng-template",null,1,e.C5r)}2&r&&(e.R7$(13),e.Y8G("ngClass",i.newRequest?"stepper-container_active":"stepper-container"),e.R7$(),e.Y8G("ngClass",i.newRequest?"tep_name":"tep_name-de"),e.R7$(2),e.Y8G("ngClass",i.newRequest?"c-active":"c-active-de"),e.R7$(),e.SpI(" ",i.count||0,""),e.R7$(),e.Y8G("ngClass",i.approved?"stepper-container_active":"stepper-container"),e.R7$(),e.Y8G("ngClass",i.approved?"tep_name":"tep_name-de"),e.R7$(2),e.Y8G("ngClass",i.approved?"c-invited":"c-invited-de"),e.R7$(),e.SpI(" ",i.countSummary||0,""),e.R7$(2),e.Y8G("ngIf",i.newRequest),e.R7$(),e.Y8G("ngIf",i.approved))},dependencies:[Fe.YU,Fe.Sq,Fe.bT,xi.ej,ie.qT,ie.me,ie.Q0,ie.Zm,ie.BC,ie.cb,ie.j4,ie.JD,E.SrT,E.KH5,E.VDm,E.zJv,E.YP2,E.i6h,E.zwc,xi.kf],styles:[".ipg-transaction-root[_ngcontent-%COMP%] nb-badge[_ngcontent-%COMP%]{position:absolute;top:39%;left:15px;width:-moz-fit-content;width:fit-content}.transaction-view-modal[_ngcontent-%COMP%]{width:40rem;height:85vh}.transaction-view-modal[_ngcontent-%COMP%] nb-badge[_ngcontent-%COMP%]{position:absolute;left:15px;top:50%;transform:translateY(0);width:-moz-fit-content;width:fit-content}.invited_dialog[_ngcontent-%COMP%]{width:415px;float:right!important}.invited-content[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:none;height:100%;border-radius:0;outline:0}.modal-header-ipg[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;padding:1rem;border-top-left-radius:.3rem;border-top-right-radius:.3rem}.modal-footer[_ngcontent-%COMP%]{position:fixed;bottom:0;text-align:right;font-size:14px;color:#8b8b8b;font-weight:400;margin-top:14px;background:#fff;width:415px;margin-bottom:12px;padding-right:26px;border-top:none}.modal-body-filter[_ngcontent-%COMP%]{height:100vh}.modal2[_ngcontent-%COMP%]{position:fixed;top:0;left:0;z-index:1050;display:none;width:100%;overflow:hidden;outline:0}.filter-form-clear-btn[_ngcontent-%COMP%]{width:80px!important;height:40px!important;border-radius:8px!important;border:1px solid #d0d5dd!important;font-weight:600!important;font-size:14px!important;color:#344054!important;margin-right:8px}.primary-black-btn[_ngcontent-%COMP%]{width:76px!important;height:40px!important;border-radius:8px!important;border:1px solid #d0d5dd!important;font-weight:600!important;font-size:14px!important;color:#fff!important}.filter_icon[_ngcontent-%COMP%]{float:right!important;cursor:pointer;margin-top:17px}.filter_icon_figma[_ngcontent-%COMP%]{height:11px;width:auto;margin-right:6px}.tool_icon[_ngcontent-%COMP%]{position:absolute;top:4px;right:14px;cursor:pointer}.primary-green-btn[_ngcontent-%COMP%]{background:#000!important;text-transform:capitalize!important}.search[_ngcontent-%COMP%]{margin-left:12px;margin-top:11px}.more_i[_ngcontent-%COMP%]{width:auto;height:15px;cursor:pointer}.btn.dropdown-toggle[_ngcontent-%COMP%]{display:none}.more_i[_ngcontent-%COMP%]{position:relative;top:3px}.drop_icon[_ngcontent-%COMP%]{width:13px;height:13px}.overridee[_ngcontent-%COMP%]{align-items:baseline!important}.icon-main[_ngcontent-%COMP%]{position:absolute;z-index:1;margin-top:10px;margin-left:13px}.icon-sub-sign[_ngcontent-%COMP%]{display:inline;color:#667085;font-weight:100}.sign-input[_ngcontent-%COMP%]{padding-left:52px!important;width:100%}.steper[_ngcontent-%COMP%]{display:flex;flex-direction:row}.stepper-container[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:20px;padding-bottom:15px;cursor:pointer}.stepper-container_active[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:20px;padding-bottom:15px;border-bottom:5px solid #378765}.stepper-circle[_ngcontent-%COMP%]{width:25px;height:25px;border-radius:50%;color:#fff;font-size:12px;font-weight:500;display:flex;justify-content:center;align-items:center}.c-active[_ngcontent-%COMP%]{background-color:#000}.c-active-de[_ngcontent-%COMP%]{background-color:#a4a4a4}.c-invited[_ngcontent-%COMP%]{background-color:red}.c-invited-de[_ngcontent-%COMP%]{background-color:#ff8574}.tep_name[_ngcontent-%COMP%]{color:#000;font-size:14px;font-weight:500;margin-right:8px}.tep_name-de[_ngcontent-%COMP%]{color:#a4a4a4;font-size:14px;font-weight:500;margin-right:8px}.steper[_ngcontent-%COMP%]{display:flex;align-items:center}.active[_ngcontent-%COMP%]{color:red}.stepper_border[_ngcontent-%COMP%]{border:3px solid #f1f1f1;margin-top:-4px}.noData_text[_ngcontent-%COMP%]{font-size:18px;color:#000;font-weight:700}.let_text[_ngcontent-%COMP%]{font-size:14px;color:#949494;font-weight:500}.invite_btn[_ngcontent-%COMP%]{padding:8px 16px;height:40px;border:none;display:flex;flex-direction:row;justify-content:center;align-items:center;color:#fff;background:#00130c;border-radius:8px;flex:none;order:1;flex-grow:0;font-size:14px;font-weight:500}.label_class[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#344054;line-height:20px}.checkbox_label[_ngcontent-%COMP%]{font-size:16px;font-weight:400;color:#5b5b5b;line-height:24px}.checkbox_div[_ngcontent-%COMP%]{overflow-y:scroll;height:35vh}.active_label[_ngcontent-%COMP%]{padding:3px;height:26px;width:70px;border-radius:8px;background:#e0ffe1;color:#009834;text-align:center}.feature-icon-update[_ngcontent-%COMP%]{width:48px!important;height:auto}.button-cansel-app[_ngcontent-%COMP%]{padding:10px 18px;margin-right:10px;width:170px;height:44px;font-size:14px;font-weight:700;color:#344054;background-color:#fff;border:1px solid #d0d5dd;border-radius:8px;
1cursor:pointer}.delete-button-app[_ngcontent-%COMP%]:hover{background-color:#d92d20!important}.delete-button-app[_ngcontent-%COMP%]{padding:10px 18px;margin-right:10px;width:170px;height:44px;font-size:16px;font-weight:600;color:#fff;background-color:#d92d20;border:none;border-radius:8px}.approve-button-app[_ngcontent-%COMP%]{padding:10px 18px;margin-right:10px;width:170px;height:44px;font-size:16px;font-weight:600;color:#fff;background-color:#00130c;border:none;border-radius:8px}.delete_img[_ngcontent-%COMP%]{width:48px;height:auto}.topic-app[_ngcontent-%COMP%]{font-size:18px;font-weight:600}.delete_p[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:20px;color:#667085}.table-approve-btn[_ngcontent-%COMP%]{background:#04b600!important;border-radius:5px!important;color:#fff!important;font-size:11px!important;font-weight:500!important;width:74px;height:27px}.table-decline-btn[_ngcontent-%COMP%]{background:#fff!important;border-radius:5px!important;border:none;color:red!important;font-size:11px!important;font-weight:400!important;width:74px;height:27px}.approved-status[_ngcontent-%COMP%]{color:#04b600!important;font-size:11px!important;font-weight:500!important}.declined-status[_ngcontent-%COMP%]{color:red!important;font-size:11px!important;font-weight:400!important}"]})}return n})();var gc=bn(69205);let E4=(()=>{class n{constructor(t){this.commonService=t}installmentList(t){return this.commonService.getInstallment(`app/merchant/installment/${t}/`)}putDataInstallment(t,r){return this.commonService.putDataInstallment(`app/merchant/installment/${r}/`,t)}getAlltokentList(t,r){return this.commonService.getInstallment("cards/?page="+t+"&limit="+r)}static#e=this.\u0275fac=function(r){return new(r||n)(e.KVO(gx.h))};static#t=this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Q7(n,a){if(1&n&&(e.j41(0,"option",20),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.Y8G("value",t.id),e.R7$(),e.JRh(t.app_name)}}function eE(n,a){if(1&n&&(e.j41(0,"p",35),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.R7$(),e.SpI(" ",null==t.installment?null:t.installment.period," Month Plan ")}}function tE(n,a){if(1&n&&(e.j41(0,"p",35),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.R7$(),e.SpI(" ",null==t.installment?null:t.installment.fee_percentage,"% ")}}function nE(n,a){if(1&n&&(e.j41(0,"p",36)(1,"span",37)(2,"strong"),e.EFF(3,"Min:"),e.k0s(),e.EFF(4),e.k0s(),e.j41(5,"span",37)(6,"strong"),e.EFF(7,"Max:"),e.k0s(),e.EFF(8),e.k0s()()),2&n){const t=a.$implicit;e.R7$(4),e.SpI(" ",null==t.installment?null:t.installment.min_amount,""),e.R7$(4),e.SpI(" ",null==t.installment?null:t.installment.max_amount,"")}}function iE(n,a){if(1&n){const t=e.RV6();e.j41(0,"p",35)(1,"label",38)(2,"input",39),e.bIt("change",function(){const i=e.eBV(t).$implicit,s=e.XpG(2);return e.Njj(s.toggle(i))}),e.k0s(),e.nrm(3,"span",40),e.k0s()()}if(2&n){const t=a.$implicit;e.R7$(2),e.Y8G("checked",t.is_active)}}function rE(n,a){if(1&n){const t=e.RV6();e.j41(0,"p",35)(1,"label",38)(2,"input",39),e.bIt("change",function(){const i=e.eBV(t).$implicit,s=e.XpG(2);return e.Njj(s.toggleFee(i))}),e.k0s(),e.nrm(3,"span",40),e.k0s()()}if(2&n){const t=a.$implicit;e.R7$(2),e.Y8G("checked",t.is_customer_pays_fee)}}function aE(n,a){if(1&n){const t=e.RV6();e.j41(0,"tr")(1,"td",21)(2,"p",22)(3,"strong"),e.EFF(4),e.k0s()(),e.j41(5,"a",23)(6,"p",24),e.EFF(7,"more details"),e.k0s()()(),e.j41(8,"td"),e.DNE(9,eE,2,1,"p",25),e.k0s(),e.j41(10,"td"),e.DNE(11,tE,2,1,"p",25),e.k0s(),e.j41(12,"td",26),e.DNE(13,nE,9,2,"p",27),e.k0s(),e.j41(14,"td",21),e.DNE(15,iE,4,1,"p",25),e.k0s(),e.j41(16,"td",21),e.DNE(17,rE,4,1,"p",25),e.k0s(),e.j41(18,"td",28)(19,"div",29),e.nrm(20,"img",30),e.j41(21,"div",31)(22,"button",32),e.bIt("click",function(){const i=e.eBV(t).$implicit,s=e.XpG(),p=e.sdS(42);return e.Njj(s.openView(p,i))}),e.j41(23,"span"),e.nrm(24,"nb-icon",33),e.k0s(),e.j41(25,"span",34),e.EFF(26,"View "),e.k0s()()()()()()}if(2&n){const t=a.$implicit;e.R7$(4),e.JRh((null==t?null:t.bank_name)||"Not Available"),e.R7$(5),e.Y8G("ngForOf",t.installments),e.R7$(2),e.Y8G("ngForOf",t.installments),e.R7$(2),e.Y8G("ngForOf",t.installments),e.R7$(2),e.Y8G("ngForOf",t.installments),e.R7$(2),e.Y8G("ngForOf",t.installments)}}function oE(n,a){1&n&&(e.j41(0,"div",41)(1,"div",42)(2,"span",43),e.EFF(3,"Loading..."),e.k0s()()())}function sE(n,a){1&n&&(e.j41(0,"div",44)(1,"h6"),e.EFF(2,"No data available!"),e.k0s()())}function lE(n,a){if(1&n&&(e.j41(0,"div",55)(1,"h6"),e.EFF(2),e.k0s(),e.j41(3,"div",48)(4,"div",49)(5,"span",50),e.EFF(6,"Fee %"),e.k0s()(),e.j41(7,"div",51)(8,"span",52),e.EFF(9),e.k0s()()(),e.j41(10,"div",48)(11,"div",49)(12,"span",50),e.EFF(13,"Period"),e.k0s()(),e.j41(14,"div",51)(15,"span",52),e.EFF(16),e.k0s()()(),e.j41(17,"div",48)(18,"div",49)(19,"span",50),e.EFF(20,"Min Amount"),e.k0s()(),e.j41(21,"div",51)(22,"span",52),e.EFF(23),e.k0s()()(),e.j41(24,"div",48)(25,"div",49)(26,"span",50),e.EFF(27,"Max Amount"),e.k0s()(),e.j41(28,"div",51)(29,"span",52),e.EFF(30),e.k0s()()(),e.j41(31,"div",48)(32,"div",49)(33,"span",50),e.EFF(34,"Customer Pays Fee"),e.k0s()(),e.j41(35,"div",51)(36,"span",52),e.EFF(37),e.k0s()()(),e.j41(38,"div",48)(39,"div",49)(40,"span",50),e.EFF(41,"Status"),e.k0s()(),e.j41(42,"div",51)(43,"span",56),e.EFF(44),e.k0s()()()()),2&n){const t=a.$implicit,r=a.index;e.R7$(2),e.SpI("Installment ",r+1,""),e.R7$(7),e.JRh((null==t.installment?null:t.installment.fee_percentage)||"
1Not Available"),e.R7$(7),e.SpI("",(null==t.installment?null:t.installment.period)||"Not Available"," months"),e.R7$(7),e.SpI("LKR ",(null==t.installment?null:t.installment.min_amount)||"Not Available",""),e.R7$(7),e.SpI("LKR ",(null==t.installment?null:t.installment.max_amount)||"Not Available",""),e.R7$(7),e.JRh(t.is_customer_pays_fee?"Yes":"No"),e.R7$(6),e.Y8G("ngClass",t.is_active?"badge-success":"badge-secondary"),e.R7$(),e.SpI(" ",t.is_active?"Active":"Inactive"," ")}}function cE(n,a){if(1&n){const t=e.RV6();e.j41(0,"nb-card",45)(1,"nb-card-header",46),e.EFF(2,"View Installments"),e.k0s(),e.j41(3,"nb-card-body",47)(4,"div",48)(5,"div",49)(6,"span",50),e.EFF(7,"Bank Name"),e.k0s()(),e.j41(8,"div",51)(9,"span",52),e.EFF(10),e.k0s()()(),e.j41(11,"div",48)(12,"div",49)(13,"span",50),e.EFF(14,"Bank ID"),e.k0s()(),e.j41(15,"div",51)(16,"span",52),e.EFF(17),e.k0s()()(),e.nrm(18,"hr"),e.DNE(19,lE,45,8,"div",53),e.k0s(),e.j41(20,"nb-card-footer")(21,"button",54),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.viewClose())}),e.EFF(22," Close "),e.k0s()()()}if(2&n){const t=e.XpG();e.R7$(10),e.JRh((null==t.bank_view?null:t.bank_view.bank_name)||"Not Available"),e.R7$(7),e.JRh((null==t.bank_view?null:t.bank_view.bank_id)||"Not Available"),e.R7$(2),e.Y8G("ngForOf",null==t.bank_view?null:t.bank_view.installments)}}let dE=(()=>{class n{constructor(t,r,i,s,p,g,S){this.fb=t,this.router=r,this.dialogService=i,this.installmentService=s,this.toastr=p,this.route=g,this.paymentPageService=S,this.dfcc1=!1,this.dfcc2=!1,this.dfcc3=!1,this.com1=!1,this.com2=!1,this.com3=!1,this.hnb1=!1,this.hnb2=!1,this.hnb3=!1,this.is_loading_1=!1,this.all_installment=[],this.applist=[]}ngOnInit(){this.getApps()}getApps(){this.is_loading_1=!0,this.paymentPageService.getApps().then(t=>{this.is_loading_1=!1,t&&100==t.status?(this.applist=t.data.filter(r=>(r.is_approved||!r.is_approved&&!r.is_submit_approve)&&r.is_active),console.log(this.applist,"rrrrccc"),this.app_id=this.applist[0].id,this.getInstallmentPlan(this.app_id)):this.toastr.showToast("danger","Error!",t?.message||"Gettings merchant data failed.")},t=>{this.is_loading_1=!1,this.toastr.showToast("danger","Error","Internal server error")})}onSelectReason(t){this.app_new=t,t&&this.getInstallmentPlan(t)}getInstallmentPlan(t){this.is_loading_1=!0,this.installmentService.installmentList(t).then(r=>{console.log("getCustomers",r),this.is_loading_1=!1,200===r?.status?this.all_installment=r?.data:this.toastr.showToast("danger","Error!",r?.message||"Getting customer data failed.")}).catch(r=>{this.is_loading_1=!1,console.log("Internal Server Error",r),this.toastr.showToast("danger","Error!","Internal Server Error.")})}toggle(t){console.log(t,"itemmm"),t.is_active=!t.is_active,this.updateData({is_active:t.is_active,is_customer_pays_fee:t.is_customer_pays_fee},t.id)}updateData(t,r){console.log(t,"Sending data to update..."),this.is_loading_1=!0,this.installmentService.putDataInstallment(t,r).then(i=>{console.log(i,"console.log"),this.is_loading_1=!1,200===i?.status?this.toastr.showToast("success","Cheers!",i?.message||"Updated successfully!"):(console.error("Server responded with error:",i?.message),this.toastr.showToast("danger","Oh Snap!",i?.message||"Update failed."))}).catch(i=>{this.is_loading_1=!1,console.error("Request failed:",i),this.toastr.showToast("danger","Oh Snap!","Internal Server Error!")})}toggleFee(t){t.is_customer_pays_fee=!t.is_customer_pays_fee,this.updateDataFee({is_active:t.is_active,is_customer_pays_fee:t.is_customer_pays_fee},t.id)}updateDataFee(t,r){console.log(t,"datadata"),this.is_loading_1=!0,this.installmentService.putDataInstallment(t,r).then(i=>{this.is_loading_1=!1,200===i?.status?this.toastr.showToast("success","Cheers!","Updated successfully!"):(console.error("Error:",i?.message),this.toastr.showToast("danger","Oh Snap!",i?.message||"Update failed."))}).catch(i=>{this.is_loading_1=!1,console.error("Internal Server Error:",i),this.toastr.showToast("danger","Oh Snap!","Internal Server Error!")})}openView(t,r){console.log(r,"data"),this.bank_view=r,this.view_model=this.dialogService.open(t,{closeOnBackdropClick:!1})}viewClose(){this.view_model.close()}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(ie.ok),e.rXU(qe.Ix),e.rXU(E.S0W),e.rXU(E4),e.rXU(Dt.V4),e.rXU(qe.nX),e.rXU(y1.f))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-instalment-plans"]],decls:43,vars:5,consts:[["dialogView",""],[1,"body-style","payment-links-root"],[1,"container"],[1,"row","mb-4"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"page-heading"],[1,"col"],[1,"row"],[1,"col-6","d-flex","justify-content-start","align-items-center"],[1,"mb-4",2,"padding","0 10px"],[1,"sub-heading"],[1,"col-6","d-flex","justify-content-end","align-items-center"],[1,"selecter_","width_1",3,"ngModelChange","change","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"col","d-flex","flex-column","px-0","list-like-table"],[1,"table-responsive"],[1,"table","table-sm","align-top"],[4,"ngFor","ngForOf"],["class","d-flex justify-content-center align-items-center","style","height: 20rem;",4,"ngIf"],["class","d-flex justify-content-center align-items-center table-no-data-div","style","height: 20rem;",4,"ngIf"],[3,"value"],[2,"vertical-align","middle"],[1,"bank_name"],["href","https://www.onepay.lk/offers.html","target","_blank"],[1,"more"],["class","istalment_plan",4,"ngFor","ngForOf"],[2,"vertical-align","middle","padding","0"],["class","limit max_min",4,"ngFor","ngForOf"],[1,"d-flex","justify-content-around"],[1,"btn-group"],["data-toggle","dropdown","aria-expanded","fal
1se","src","../../../../assets/images/more.png",1,"more_i"],[1,"dropdown-menu","dropdown-menu-right"],["type","button",1,"dropdown-item",3,"click"],["icon","eye-outline"],[2,"font-size","14px","font-weight","500","color","#344054","margin-left","10px"],[1,"istalment_plan"],[1,"limit","max_min"],[1,"amount_"],[1,"switch"],["type","checkbox",3,"change","checked"],[1,"slider","round"],[1,"d-flex","justify-content-center","align-items-center",2,"height","20rem"],["role","status",1,"spinner-border","text-primary"],[1,"visually-hidden"],[1,"d-flex","justify-content-center","align-items-center","table-no-data-div",2,"height","20rem"],[2,"width","60vw"],[2,"font-family","'Poppins'"],[1,"dialog-border",2,"font-family","'Poppins'","max-height","65vh","overflow-y","auto"],[1,"row","list-data"],[1,"col-5"],[1,"lable-head"],[1,"col-7"],[1,"lable-data"],["class","installment-section mb-3 p-2","style","border: 1px solid #ccc; border-radius: 8px;",4,"ngFor","ngForOf"],["nbButton","","status","info","size","small",1,"col-md-2",2,"float","right","background-color","white","border-color","white","color","rgb(112, 108, 108)",3,"click"],[1,"installment-section","mb-3","p-2",2,"border","1px solid #ccc","border-radius","8px"],[1,"badge",3,"ngClass"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h2",5),e.EFF(5,"Installment plans"),e.k0s()()(),e.j41(6,"div",3)(7,"div",6)(8,"nb-card")(9,"nb-card-body")(10,"div",7)(11,"div",8)(12,"div",9)(13,"h2",10),e.EFF(14,"Available installment plans"),e.k0s()()(),e.j41(15,"div",11)(16,"select",12),e.mxI("ngModelChange",function(g){return e.eBV(s),e.DH7(i.app_id,g)||(i.app_id=g),e.Njj(g)}),e.bIt("change",function(g){return e.eBV(s),e.Njj(i.onSelectReason(g.target.value))}),e.DNE(17,Q7,2,2,"option",13),e.k0s()()(),e.j41(18,"div",14)(19,"div",15)(20,"table",16)(21,"thead")(22,"tr")(23,"th"),e.EFF(24,"BANK"),e.k0s(),e.j41(25,"th"),e.EFF(26,"INSTALLMENT PLAN"),e.k0s(),e.j41(27,"th"),e.EFF(28,"FEE TO CUSTOMER"),e.k0s(),e.j41(29,"th"),e.EFF(30,"LIMITS"),e.k0s(),e.j41(31,"th"),e.EFF(32,"STATUS"),e.k0s(),e.j41(33,"th"),e.EFF(34,"CUSTOMER PAYS FEE"),e.k0s(),e.j41(35,"th"),e.EFF(36,"Action"),e.k0s()()(),e.j41(37,"tbody"),e.DNE(38,aE,27,6,"tr",17),e.k0s()(),e.DNE(39,oE,4,0,"div",18)(40,sE,3,0,"div",19),e.k0s()()()()()()()(),e.DNE(41,cE,23,3,"ng-template",null,0,e.C5r)}2&r&&(e.R7$(16),e.R50("ngModel",i.app_id),e.R7$(),e.Y8G("ngForOf",i.applist),e.R7$(21),e.Y8G("ngForOf",i.all_installment),e.R7$(),e.Y8G("ngIf",i.is_loading_1),e.R7$(),e.Y8G("ngIf",!i.is_loading_1&&i.all_installment.length<1))},dependencies:[Fe.YU,Fe.Sq,Fe.bT,ie.xH,ie.y7,ie.wz,ie.BC,ie.vS,E.SrT,E.KH5,E.VDm,E.zJv,E.tHu,E.YP2],styles:['.istalment_plan[_ngcontent-%COMP%]{margin-bottom:21px!important}.clicked[_ngcontent-%COMP%]{background:#d5d8dc;border:2px solid #D5D8DC}.clicked2[_ngcontent-%COMP%]{background:#f4f4f4}.slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0;background-color:#ccc;transition:.4s}.slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:10px;width:10px;left:4px;bottom:4px;background-color:#fff;transition:.4s}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]{background-color:#2196f3}input[_ngcontent-%COMP%]:focus + .slider[_ngcontent-%COMP%]{box-shadow:0 0 1px #2196f3}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{transform:translate(16px)}.slider.round[_ngcontent-%COMP%]{border-radius:34px}.slider.round[_ngcontent-%COMP%]:before{border-radius:50%}.switch[_ngcontent-%COMP%]{position:relative;display:inline-block;width:35px;height:18px}.switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{opacity:0;width:0;height:0}.toggle-switch2[_ngcontent-%COMP%]{display:inline-block;position:relative;width:12px;height:12px;border-bottom:0;margin-bottom:-1px;margin-right:10px}.slider2[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0;background-color:#ccc;transition:.4s;border-radius:8px}.slider2[_ngcontent-%COMP%]:before{position:absolute;content:"";height:8px;width:8px;left:2px;bottom:2px;background-color:#fff;transition:.4s;border-radius:8px}.toggle_text[_ngcontent-%COMP%]{color:#000;font-size:14px;font-weight:400;margin-right:5px}.more[_ngcontent-%COMP%]{font-size:12px;font-weight:400;color:#2196f3}.selecter_[_ngcontent-%COMP%]{background-color:#fff;border-color:#d0d5dd;color:#98a2b3;line-height:1.5rem;padding:.2375rem 1rem;font-size:14px!important;font-weight:400!important;border-radius:.25rem;height:36px;margin-right:15px;float:right}.amount_[_ngcontent-%COMP%]{display:block;margin-bottom:-6px}.max_min[_ngcontent-%COMP%]{margin-bottom:16px!important;font-size:12px}.more_i[_ngcontent-%COMP%]{width:auto;height:15px;cursor:pointer}']})}return n})();
1var C1=bn(345),P4=bn(54725);function uE(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"ngbd-datepicker-range-popup",57),e.bIt("dateRangeSelected",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onDateRangeSelected(i))}),e.k0s()()}}function fE(n,a){if(1&n&&(e.j41(0,"div"),e.nrm(1,"pre",58),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("innerHTML",t.formatJson(t.jsonData),e.npT)}}let pE=(()=>{class n{constructor(t){this.sanitizer=t,this.selectedFromDate=null,this.selectedToDate=null,this.isCustomRangeSelected=!1,this.jsonData={id:1,age:23,name:"John Doe",email:"[email protected]",address:{street:"123 Main St/",city:"Anytown",state:"CA",zip:"12345"},phone:"555-1234",isActive:!0,roles:["admin","user"],status:"Success"}}formatJson(t){const r=JSON.stringify(t,null,2);let i=1;const s=r.split("\n").map(p=>{const g=p.replace(/"(\w+)":|("[^"]*")|(\b\d+\b)|(\btrue\b|\bfalse\b|\bnull\b)/g,(S,R,L,ne,re)=>R?`<span style="color: #838383;" class="key">"${R}"</span>:`:L?'"Success"'===L?`<span style="color: green;" class="value-success">${L}</span>`:`<span style="color: #007AFF;" class="value-string">${L}</span>`:ne?`<span style="color: red;" class="value-number">${ne}</span>`:re?`<span style="color: purple;" class="value-boolean">${re}</span>`:S);return`<span class="line-number" style="color: gray;">${i++}:</span> ${g}`}).join("\n");return this.sanitizer.bypassSecurityTrustHtml(s)}onSelectReason(t){const r=t.target.value;"customRange"===r?this.isCustomRangeSelected=!0:(this.isCustomRangeSelected=!1,this.handlePredefinedRanges(r))}handlePredefinedRanges(t){}onDateRangeSelected(t){this.selectedFromDate=t.fromDate,this.selectedToDate=t.toDate,console.log("Selected From Date:",this.selectedFromDate),console.log("Selected To Date:",this.selectedToDate)}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(C1.up))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-developer-logs"]],decls:319,vars:2,consts:[[1,"body-style"],[1,"container"],[1,"row","mb-4"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"page-heading2"],[1,"row"],[1,"col"],["nbSpinnerStatus","primary","nbSpinnerSize","large",2,"min-height","20rem"],[1,"col-6","d-flex","justify-content-start","align-items-center"],[1,"sub-heading2"],[1,"col-6","d-flex","justify-content-end","align-items-center"],["placeholder","Select Reason",1,"selecter_","width_1"],["disabled","","value",""],["value",""],[1,"hr_"],[1,"col-8","d-flex","justify-content-start","align-items-center"],[1,"col-6","padding_right"],[1,"input-container"],["fullWidth","","type","text","placeholder","Search by transaction ID"],[1,"search-icon"],["src","../../../assets/images/search.png","alt","Search Icon",1,"search-img"],[1,"col-2","padding_right"],["fullWidth","","placeholder","Select Status",1,"col","selecter_"],["selected","","value",""],["fullWidth","","placeholder","Select Reason",1,"col","selecter_",3,"change"],["value","last7Days"],["value","lastMonth"],["value","last6Months"],["value","lastYear"],["value","customRange"],[4,"ngIf"],["fullWidth","","placeholder","Select Reason",1,"col","selecter_"],[1,"col-4","d-flex","justify-content-end","align-items-center"],["type","button",1,"mr-1","clear"],[1,"mt-4","row"],[1,"col-7"],[1,"col-12","mb-3"],[1,"date_"],[1,"row","mb-2"],[1,"col-9","d-flex","justify-content-start","align-items-center"],[1,"status_grid_400","mr-3"],[1,"status_400","status_"],[1,"method_","mr-3"],[1,"method_"],[1,"col-3","d-flex","justify-content-end","align-items-center"],[1,"status_grid_pending","mr-3"],[1,"status_pending","status_"],[1,"status_grid_200","mr-3"],[1,"status_200","status_"],[1,"col-5"],[1,"right_head"],[1,"col-5","d-flex","justify-content-start","align-items-center"],[1,"right_sub"],[1,"col-7","d-flex","justify-content-end","align-items-center"],[1,"right_grid"],[1,"right_data"],[1,"col-12","mt-4","mb-3"],[3,"dateRangeSelected"],[3,"innerHTML"]],template:function(r,i){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h2",4),e.EFF(5,"Developers"),e.k0s()()(),e.j41(6,"div",5)(7,"div",6)(8,"nb-card",7)(9,"nb-card-body")(10,"div",5)(11,"div",8)(12,"h4",9),e.EFF(13,"Logs"),e.k0s()(),e.j41(14,"div",10)(15,"select",11)(16,"option",12),e.EFF(17,"Select Reason"),e.k0s(),e.j41(18,"option",13),e.EFF(19,"App 1"),e.k0s(),e.j41(20,"option",13),e.EFF(21,"App 2"),e.k0s()()()(),e.nrm(22,"hr",14),e.j41(23,"div",5)(24,"div",15)(25,"div",5)(26,"div",16)(27,"div",17),e.nrm(28,"input",18),e.j41(29,"span",19),e.nrm(30,"img",20),e.k0s()()(),e.j41(31,"div",21)(32,"select",22)(33,"option",23),e.EFF(34,"ALL"),e.k0s(),e.j41(35,"option",13),e.EFF(36,"
1Success"),e.k0s(),e.j41(37,"option",13),e.EFF(38,"Failed"),e.k0s()()(),e.j41(39,"div",21)(40,"select",24),e.bIt("change",function(p){return i.onSelectReason(p)}),e.j41(41,"option",25),e.EFF(42,"Last 7 Days"),e.k0s(),e.j41(43,"option",26),e.EFF(44,"Last Month"),e.k0s(),e.j41(45,"option",27),e.EFF(46,"Last 6 Months"),e.k0s(),e.j41(47,"option",28),e.EFF(48,"Last Year"),e.k0s(),e.j41(49,"option",29),e.EFF(50," Custom Range "),e.k0s(),e.nrm(51,"input"),e.k0s(),e.DNE(52,uE,2,0,"div",30),e.k0s(),e.j41(53,"div",21)(54,"select",31)(55,"option",12),e.EFF(56,"Select Reason"),e.k0s(),e.j41(57,"option",13),e.EFF(58,"ALL"),e.k0s(),e.j41(59,"option",13),e.EFF(60,"GET"),e.k0s(),e.j41(61,"option",13),e.EFF(62,"POST"),e.k0s(),e.j41(63,"option",13),e.EFF(64,"DELETE"),e.k0s()()()()(),e.j41(65,"div",32)(66,"button",33),e.EFF(67,"Clear all filters"),e.k0s()()(),e.nrm(68,"hr",14),e.j41(69,"div",34)(70,"div",35)(71,"div",5)(72,"div",36)(73,"p",37),e.EFF(74,"NOV.20,2024"),e.k0s()()(),e.j41(75,"div",38)(76,"div",39)(77,"span",40)(78,"p",41),e.EFF(79,"402 ERR"),e.k0s()(),e.j41(80,"p",42),e.EFF(81,"POST"),e.k0s(),e.j41(82,"p",43),e.EFF(83,"/v1/subscription"),e.k0s()(),e.j41(84,"div",44)(85,"p",43),e.EFF(86,"11:05:27 a.m"),e.k0s()()(),e.j41(87,"div",38)(88,"div",39)(89,"span",45)(90,"p",46),e.EFF(91,"PENDING"),e.k0s()(),e.j41(92,"p",42),e.EFF(93,"POST"),e.k0s(),e.j41(94,"p",43),e.EFF(95,"/v1/subscription"),e.k0s()(),e.j41(96,"div",44)(97,"p",43),e.EFF(98,"11:05:27 a.m"),e.k0s()()(),e.j41(99,"div",38)(100,"div",39)(101,"span",40)(102,"p",41),e.EFF(103,"400 ERR"),e.k0s()(),e.j41(104,"p",42),e.EFF(105,"POST"),e.k0s(),e.j41(106,"p",43),e.EFF(107,"/v1/subscription"),e.k0s()(),e.j41(108,"div",44)(109,"p",43),e.EFF(110,"11:05:27 a.m"),e.k0s()()(),e.j41(111,"div",38)(112,"div",39)(113,"span",47)(114,"p",48),e.EFF(115,"200 OK"),e.k0s()(),e.j41(116,"p",42),e.EFF(117,"POST"),e.k0s(),e.j41(118,"p",43),e.EFF(119,"/v1/subscription"),e.k0s()(),e.j41(120,"div",44)(121,"p",43),e.EFF(122,"11:05:27 a.m"),e.k0s()()(),e.j41(123,"div",38)(124,"div",39)(125,"span",40)(126,"p",41),e.EFF(127,"400 ERR"),e.k0s()(),e.j41(128,"p",42),e.EFF(129,"POST"),e.k0s(),e.j41(130,"p",43),e.EFF(131,"/v1/subscription"),e.k0s()(),e.j41(132,"div",44)(133,"p",43),e.EFF(134,"11:05:27 a.m"),e.k0s()()(),e.nrm(135,"hr",14),e.j41(136,"div",5)(137,"div",36)(138,"p",37),e.EFF(139,"NOV.20,2024"),e.k0s()()(),e.j41(140,"div",38)(141,"div",39)(142,"span",40)(143,"p",41),e.EFF(144,"402 ERR"),e.k0s()(),e.j41(145,"p",42),e.EFF(146,"POST"),e.k0s(),e.j41(147,"p",43),e.EFF(148,"/v1/subscription"),e.k0s()(),e.j41(149,"div",44)(150,"p",43),e.EFF(151,"11:05:27 a.m"),e.k0s()()(),e.j41(152,"div",38)(153,"div",39)(154,"span",45)(155,"p",46),e.EFF(156,"PENDING"),e.k0s()(),e.j41(157,"p",42),e.EFF(158,"POST"),e.k0s(),e.j41(159,"p",43),e.EFF(160,"/v1/subscription"),e.k0s()(),e.j41(161,"div",44)(162,"p",43),e.EFF(163,"11:05:27 a.m"),e.k0s()()(),e.j41(164,"div",38)(165,"div",39)(166,"span",40)(167,"p",41),e.EFF(168,"400 ERR"),e.k0s()(),e.j41(169,"p",42),e.EFF(170,"POST"),e.k0s(),e.j41(171,"p",43),e.EFF(172,"/v1/subscription"),e.k0s()(),e.j41(173,"div",44)(174,"p",43),e.EFF(175,"11:05:27 a.m"),e.k0s()()(),e.j41(176,"div",38)(177,"div",39)(178,"span",47)(179,"p",48),e.EFF(180,"200 OK"),e.k0s()(),e.j41(181,"p",42),e.EFF(182,"POST"),e.k0s(),e.j41(183,"p",43),e.EFF(184,"/v1/subscription"),e.k0s()(),e.j41(185,"div",44)(186,"p",43),e.EFF(187,"11:05:27 a.m"),e.k0s()()(),e.j41(188,"div",38)(189,"div",39)(190,"span",40)(191,"p",41),e.EFF(192,"400 ERR"),e.k0s()(),e.j41(193,"p",42),e.EFF(194,"POST"),e.k0s(),e.j41(195,"p",43),e.EFF(196,"/v1/subscription"),e.k0s()(),e.j41(197,"div",44)(198,"p",43),e.EFF(199,"11:05:27 a.m"),e.k0s()()(),e.nrm(200,"hr",14),e.j41(201,"div",5)(202,"div",36)(203,"p",37),e.EFF(204,"NOV.20,2024"),e.k0s()()(),e.j41(205,"div",38)(206,"div",39)(207,"span",40)(208,"p",41),e.EFF(209,"402 ERR"),e.k0s()(),e.j41(210,"p",42),e.EFF(211,"POST"),e.k0s(),e.j41(212,"p",43),e.EFF(213,"/v1/subscription"),e.k0s()(),e.j41(214,"div",44)(215,"p",43),e.EFF(216,"11:05:27 a.m"),e.k0s()()(),e.j41(217,"div",38)(218,"div",39)(219,"span",45)(220,"p",46),e.EFF(221,"PENDING"),e.k0s()(),e.j41(222,"p",42),e.EFF(223,"POST"),e.k0s(),e.j41(224,"p",43),e.EFF(225,"/v1/subscription"),e.k0s()(),e.j41(226,"div",44)(227,"p",43),e.EFF(228,"11:05:27 a.m"),e.k0s()()(),e.j41(229,"div",38)(230,"div",39)(231,"span",40)(232,"p",41),e.EFF(233,"400 ERR"),e.k0s()(),e.j41(234,"p",42),e.EFF(235,"POST"),e.k0s(),e.j41(236,"p",43),e.EFF(237,"/v1/subscription"),e.k0s()(),e.j41(238,"div",44)(239,"p",43),e.EFF(240,"11:05:27 a.m"),e.k0s()()(),e.j41(241,"div",38)(242,"div",39)(243,"span",47)(244,"p",48),e.EFF(245,"200 OK"),e.k0s()(),e.j41(246,"p",42),e.EFF(247,"POST"),e.k0s(),e.j41(248,"p",43),e.EFF(249,"/v1/subscription"),e.k0s()(),e.j41(250,"div",44)(251,"p",43),e.EFF(252,"11:05:27 a.m"),e.k0s()()(),e.j41(253,"div",38)(254,"div",39)(255,"span",40)(256,"p",41),e.EFF(257,"400 E
1RR"),e.k0s()(),e.j41(258,"p",42),e.EFF(259,"POST"),e.k0s(),e.j41(260,"p",43),e.EFF(261,"/v1/subscription"),e.k0s()(),e.j41(262,"div",44)(263,"p",43),e.EFF(264,"11:05:27 a.m"),e.k0s()()(),e.nrm(265,"hr",14),e.k0s(),e.j41(266,"div",49)(267,"div",36)(268,"p",50),e.EFF(269,"/v1/subscriptions"),e.k0s()(),e.nrm(270,"hr",14),e.j41(271,"div",38)(272,"div",51)(273,"p",52),e.EFF(274,"Status"),e.k0s()(),e.j41(275,"div",53)(276,"span",54)(277,"p",55),e.EFF(278,"200 OK"),e.k0s()()()(),e.j41(279,"div",38)(280,"div",51)(281,"p",52),e.EFF(282,"Tran ID / Payment link"),e.k0s()(),e.j41(283,"div",53)(284,"p",55),e.EFF(285,"021444548484"),e.k0s()()(),e.j41(286,"div",38)(287,"div",51)(288,"p",52),e.EFF(289,"Date and Time"),e.k0s()(),e.j41(290,"div",53)(291,"p",55),e.EFF(292,"20 Nov 2024, 11:05:27 a.m"),e.k0s()()(),e.j41(293,"div",38)(294,"div",51)(295,"p",52),e.EFF(296,"IP Address"),e.k0s()(),e.j41(297,"div",53)(298,"p",55),e.EFF(299,":0370:7334"),e.k0s()()(),e.j41(300,"div",38)(301,"div",51)(302,"p",52),e.EFF(303,"Source"),e.k0s()(),e.j41(304,"div",53)(305,"p",55),e.EFF(306,"sdv"),e.k0s()()(),e.j41(307,"div",38)(308,"div",51)(309,"p",52),e.EFF(310,"Origin"),e.k0s()(),e.j41(311,"div",53)(312,"p",55),e.EFF(313,"sdfdsf"),e.k0s()()(),e.j41(314,"div",56)(315,"p",50),e.EFF(316,"Response Body"),e.k0s()(),e.nrm(317,"hr",14),e.DNE(318,fE,2,1,"div",30),e.k0s()()()()()()()()),2&r&&(e.R7$(52),e.Y8G("ngIf",i.isCustomRangeSelected),e.R7$(266),e.Y8G("ngIf",i.jsonData))},dependencies:[Fe.bT,ie.xH,ie.y7,E.SrT,E.KH5,P4.j],styles:[".page-heading2[_ngcontent-%COMP%]{font-size:40px;font-weight:500;color:#1e1e1e}.page-heading2[_ngcontent-%COMP%]{font-size:24px;font-weight:500;color:#1e1e1e}.selecter_[_ngcontent-%COMP%]{background-color:#f7f9fc;border-color:#d0d5dd;color:#98a2b3;line-height:1.5rem;padding:.2375rem 1rem;font-size:14px!important;font-weight:400!important;border-radius:.25rem;height:36px}.width_1[_ngcontent-%COMP%]{width:166px}.hr_[_ngcontent-%COMP%]{border:1px solid #BCBCBC}.padding_right[_ngcontent-%COMP%]{padding-right:0!important}.clear[_ngcontent-%COMP%]{padding:9px 20px!important;border:1px solid #D0D5DD;background-color:#fff;border-radius:4px;color:#98a2b3;font-size:14px;font-weight:400;margin-right:15px;width:auto}.status_[_ngcontent-%COMP%]{font-size:12px;font-weight:500;line-height:17px}.status_grid_200[_ngcontent-%COMP%]{background-color:#d0ffcc;border-radius:2px;padding:2px 3px;width:60px;text-align:center}.status_200[_ngcontent-%COMP%]{color:#036b26}.status_grid_400[_ngcontent-%COMP%]{background-color:#fbeae9;border-radius:2px;padding:2px 3px;width:60px;text-align:center}.status_400[_ngcontent-%COMP%]{color:#9e0a05}.status_grid_pending[_ngcontent-%COMP%]{background-color:#fef6e7;border-radius:2px;padding:2px 3px;width:60px;text-align:center}.status_pending[_ngcontent-%COMP%]{color:#9e0a05}.method_[_ngcontent-%COMP%]{font-weight:500;color:#090909;font-size:16px}.date_[_ngcontent-%COMP%]{font-size:16px;font-weight:400;color:#1e1e1e}.right_head[_ngcontent-%COMP%]{font-size:24px;font-weight:500}.right_sub[_ngcontent-%COMP%]{font-size:16px;font-weight:500;color:#838383}.right_data[_ngcontent-%COMP%]{font-size:16px;color:#1e1e1e;font-weight:500}.right_grid[_ngcontent-%COMP%]{background-color:#d0ffcc;border-radius:2px;padding:2px 10px;text-align:center}pre[_ngcontent-%COMP%]{font-family:Source Code Pro,monospace;white-space:pre-wrap;word-wrap:break-word}.input-container[_ngcontent-%COMP%]{position:relative;display:inline-block;width:100%;max-width:400px}.input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;padding:8px 10px 8px 32px;font-size:16px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box}.input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{position:absolute;left:10px;top:50%;transform:translateY(-50%);font-size:16px;color:#888;pointer-events:none}.search-img[_ngcontent-%COMP%]{width:14px;height:auto}.custom-range[_ngcontent-%COMP%]{margin-top:10px}.custom-range[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;margin-bottom:5px;font-weight:700}.custom-range[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return n})();var hE=bn(81089),mE=bn(7246);const xx=(n,a)=>({clicked:n,clicked2:a}),gE=(n,a,t)=>({itemsPerPage:n,currentPage:a,totalItems:t}),_E=n=>["/pages/discounts-view",n],v0=n=>({"form-control-danger":n});function vE(n,a){if(1&n&&(e.j41(0,"option",32),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.Y8G("value",t.id),e.R7$(),e.JRh(t.app_name)}}function xE(n,a){1&n&&(e.j41(0,"div",33)(1,"small",34),e.EFF(2,"Loa
1ding apps..."),e.k0s()())}function bE(n,a){if(1&n){const t=e.RV6();e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.EFF(4),e.k0s(),e.j41(5,"td"),e.EFF(6),e.k0s(),e.j41(7,"td"),e.EFF(8),e.nI1(9,"date"),e.k0s(),e.j41(10,"td"),e.EFF(11),e.nI1(12,"date"),e.k0s(),e.j41(13,"td"),e.EFF(14),e.nI1(15,"date"),e.k0s(),e.j41(16,"td"),e.EFF(17),e.k0s(),e.j41(18,"td")(19,"p",36)(20,"label",37)(21,"input",38),e.bIt("click",function(i){const s=e.eBV(t).$implicit,p=e.XpG(2);return e.Njj(p.toggle(i.target.checked,s))}),e.k0s(),e.nrm(22,"span",39),e.k0s()()(),e.j41(23,"td",40)(24,"div",41),e.nrm(25,"img",42),e.j41(26,"div",43)(27,"button",44)(28,"span"),e.nrm(29,"nb-icon",45),e.k0s(),e.j41(30,"span",46),e.EFF(31,"View "),e.k0s()(),e.j41(32,"button",47),e.bIt("click",function(){const i=e.eBV(t).$implicit,s=e.XpG(2),p=e.sdS(69);return e.Njj(s.openDelete(p,i.id))}),e.j41(33,"span"),e.nrm(34,"img",48),e.k0s(),e.j41(35,"span",49),e.EFF(36,"Delete "),e.k0s()()()()()()}if(2&n){const t=a.$implicit;e.R7$(2),e.Lme("",t.payment_method," / ",t.card_type,""),e.R7$(2),e.JRh(t.bank_official_name),e.R7$(2),e.JRh(t.app_name),e.R7$(2),e.JRh(e.i5U(9,10,t.start_date,"dd MMM yyyy")),e.R7$(3),e.JRh(e.i5U(12,13,t.end_date,"dd MMM yyyy")),e.R7$(3),e.JRh(e.i5U(15,16,t.created_at,"dd MMM yyyy")),e.R7$(3),e.SpI("",t.discount_percentage,"%"),e.R7$(4),e.Y8G("checked",t.is_active),e.R7$(6),e.Y8G("routerLink",e.eq3(19,_E,t.id))}}function yE(n,a){1&n&&(e.j41(0,"tr")(1,"td",50),e.EFF(2,"No discounts found"),e.k0s()())}function CE(n,a){if(1&n&&(e.j41(0,"tbody"),e.DNE(1,bE,37,21,"tr",35),e.nI1(2,"paginate"),e.DNE(3,yE,3,0,"tr",29),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",e.i5U(2,2,t.discounts,e.sMw(5,gE,t.page_size,t.page,t.totalRecords))),e.R7$(2),e.Y8G("ngIf",0===t.discounts.length)}}function kE(n,a){1&n&&(e.j41(0,"div",51)(1,"div",52)(2,"span",53),e.EFF(3,"Loading..."),e.k0s()()())}function wE(n,a){if(1&n){const t=e.RV6();e.j41(0,"pagination-controls",54),e.bIt("pageChange",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.pageChanged(i))})("pageBoundsCorrection",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.pageChanged(i))}),e.k0s()}}function FE(n,a){1&n&&(e.j41(0,"small",98),e.EFF(1," Discount name is required!"),e.k0s())}function AE(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,FE,2,0,"small",97),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.createForm.get("discount_name").errors.required)}}function TE(n,a){if(1&n&&(e.j41(0,"option",32),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.Y8G("value",t.id),e.R7$(),e.SpI(" ",t.name||t.name," ")}}function SE(n,a){1&n&&(e.j41(0,"div",33)(1,"small",34),e.EFF(2,"Loading banks..."),e.k0s()())}function EE(n,a){if(1&n&&(e.j41(0,"option",32),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.Y8G("value",t.id),e.R7$(),e.SpI(" ",t.app_name," ")}}function PE(n,a){1&n&&(e.j41(0,"div",33)(1,"small",34),e.EFF(2,"Loading apps..."),e.k0s()())}function ME(n,a){1&n&&(e.j41(0,"small",98),e.EFF(1," Discount is required!"),e.k0s())}function OE(n,a){1&n&&(e.j41(0,"small",98),e.EFF(1," Discount must be greater than 0!"),e.k0s())}function DE(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,ME,2,0,"small",97)(2,OE,2,0,"small",97),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.createForm.get("discount").errors.required),e.R7$(),e.Y8G("ngIf",t.createForm.get("discount").errors.min)}}function IE(n,a){1&n&&(e.j41(0,"div",99),e.EFF(1," The end date must not be earlier than the start date. "),e.k0s())}function jE(n,a){1&n&&(e.j41(0,"small",98),e.EFF(1," Minimum bill value is required!"),e.k0s())}function RE(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,jE,2,0,"small",97),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.createForm.get("minimum_bill_value").errors.required)}}function LE(n,a){1&n&&(e.j41(0,"small",98),e.EFF(1," Maximum bill value is required!"),e.k0s())}function NE(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,LE,2,0,"small",97),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.createForm.get("maximum_bill_value").errors.required)}}function BE(n,a){1&n&&(e.j41(0,"div")(1,"small",98),e.EFF(2,"The maximum bill value must be greater than the minimum value."),e.k0s()())}function GE(n,a){1&n&&(e.j41(0,"small",98),e.EFF(1," Maximum discount applicable is required!"),e.k0s())}function VE(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,GE,2,0,"small",97),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.createForm.get("maximum_discount_applicable").errors.required)}}function zE(n,a){if(1&n&&(e.j41(0,"div")(1,"div",11)(2,"div",63)(3,"label",64),e.EFF(4,"Discount Name "),e.j41(5,"span",65),e.EFF(6,"*"),e.k0s()(),e.nrm(7,"input",66),e.DNE(8,AE,2,1,"div",29),e.k0s(),e.j41(9,"div",67)(10,"label",68),e.EFF(11,"Bank Name"),e.j41(12,"span",65),e.EFF(13,"*"),e.k0s()(),e.j41(14,"select",69)(15,"option",70),e.EFF(16,"Select bank name"),e.k0s(),e.DNE(17,TE,2,2,"option",20),e.k0s(),e.DNE(18,SE,3,0,"div",21),e.k0s()(),e.j41(19,"div",11)(20,"div",71)(21,"label",68),e.EFF(22,"Payment Method"),e.j41(23,"span",65),e.EFF(24,"*"),e.k0s()(),e.j41(25,"select",72)(26,"option",70),e.EFF(27,"Select payment method"),e.k0s(),e.j41(28,"option",73),e.EFF(29,"Visa"),e.k0s(),e.j41(30,"option",74),e.EFF(31,"Mastercard"),e.k0s(),e.j41(32,"option",75),e.EFF(33,"Amex"),e.k0s()()(),e.j41(34,"div",71)(35,"label",68),e.EFF(36,"Card Type"),e.j41(37,"span",65),e.EFF(38,"*"),e.k0s()(),e.j41(39,"select",76)(40,"option",70),e.EFF(41,"Select card type"),e.k0s(),e.j41(42,"o
1ption",77),e.EFF(43,"Debit Card"),e.k0s(),e.j41(44,"option",78),e.EFF(45,"Credit Card"),e.k0s()()(),e.j41(46,"div",71)(47,"label",68),e.EFF(48,"App Name"),e.j41(49,"span",65),e.EFF(50,"*"),e.k0s()(),e.j41(51,"select",79)(52,"option",70),e.EFF(53,"Select app name"),e.k0s(),e.DNE(54,EE,2,2,"option",20),e.k0s(),e.DNE(55,PE,3,0,"div",21),e.k0s()(),e.j41(56,"div",11)(57,"div",80)(58,"label",81),e.EFF(59,"Discount"),e.j41(60,"span",65),e.EFF(61,"*"),e.k0s()(),e.j41(62,"div",82),e.nrm(63,"input",83),e.j41(64,"div",84)(65,"span",85),e.EFF(66,"%"),e.k0s()()(),e.DNE(67,DE,3,2,"div",29),e.k0s(),e.j41(68,"div",71)(69,"label",86),e.EFF(70,"Start Date"),e.j41(71,"span",65),e.EFF(72,"*"),e.k0s()(),e.nrm(73,"input",87),e.k0s(),e.j41(74,"div",71)(75,"label",88),e.EFF(76,"End Date"),e.j41(77,"span",65),e.EFF(78,"*"),e.k0s()(),e.nrm(79,"input",89),e.DNE(80,IE,2,0,"div",90),e.k0s()(),e.j41(81,"div",11)(82,"div",80)(83,"label",91),e.EFF(84,"Minimum Bill Value"),e.j41(85,"span",65),e.EFF(86,"*"),e.k0s()(),e.nrm(87,"input",92),e.DNE(88,RE,2,1,"div",29),e.k0s(),e.j41(89,"div",80)(90,"label",93),e.EFF(91,"Maximum Bill Value"),e.j41(92,"span",65),e.EFF(93,"*"),e.k0s()(),e.nrm(94,"input",94),e.DNE(95,NE,2,1,"div",29)(96,BE,3,0,"div",29),e.k0s(),e.j41(97,"div",80)(98,"label",95),e.EFF(99,"Maximum Discount Applicable"),e.j41(100,"span",65),e.EFF(101,"*"),e.k0s()(),e.nrm(102,"input",96),e.DNE(103,VE,2,1,"div",29),e.k0s()()()),2&n){let t;const r=e.XpG(2);e.R7$(7),e.Y8G("ngClass",e.eq3(18,v0,(r.createForm.get("discount_name").dirty||r.createForm.get("discount_name").touched)&&r.createForm.get("discount_name").errors)),e.R7$(),e.Y8G("ngIf",r.createForm.get("discount_name").invalid&&(r.createForm.get("discount_name").dirty||r.createForm.get("discount_name").touched)),e.R7$(9),e.Y8G("ngForOf",r.banks),e.R7$(),e.Y8G("ngIf",r.isLoadingBanks),e.R7$(36),e.Y8G("ngForOf",r.apps),e.R7$(),e.Y8G("ngIf",r.isLoadingApps),e.R7$(8),e.Y8G("ngClass",e.eq3(20,v0,(r.createForm.get("discount").dirty||r.createForm.get("discount").touched)&&r.createForm.get("discount").errors)),e.R7$(4),e.Y8G("ngIf",r.createForm.get("discount").invalid&&(r.createForm.get("discount").dirty||r.createForm.get("discount").touched)),e.R7$(6),e.Y8G("min",r.currentDate),e.R7$(6),e.Y8G("min",r.currentDate),e.R7$(),e.Y8G("ngIf",null==(t=r.createForm.get("end_date"))||null==t.errors?null:t.errors.endBeforeStart),e.R7$(7),e.Y8G("ngClass",e.eq3(22,v0,(r.createForm.get("minimum_bill_value").dirty||r.createForm.get("minimum_bill_value").touched)&&r.createForm.get("minimum_bill_value").errors)),e.R7$(),e.Y8G("ngIf",r.createForm.get("minimum_bill_value").invalid&&(r.createForm.get("minimum_bill_value").dirty||r.createForm.get("minimum_bill_value").touched)),e.R7$(6),e.Y8G("ngClass",e.eq3(24,v0,(r.createForm.get("maximum_bill_value").dirty||r.createForm.get("maximum_bill_value").touched)&&r.createForm.get("maximum_bill_value").errors)),e.R7$(),e.Y8G("ngIf",r.createForm.get("maximum_bill_value").invalid&&(r.createForm.get("maximum_bill_value").dirty||r.createForm.get("maximum_bill_value").touched)),e.R7$(),e.Y8G("ngIf",(null==r.createForm.errors?null:r.createForm.errors.minGreaterThanMax)&&r.createForm.touched),e.R7$(6),e.Y8G("ngClass",e.eq3(26,v0,(r.createForm.get("maximum_discount_applicable").dirty||r.createForm.get("maximum_discount_applicable").touched)&&r.createForm.get("maximum_discount_applicable").errors)),e.R7$(),e.Y8G("ngIf",r.createForm.get("maximum_discount_applicable").invalid&&(r.createForm.get("maximum_discount_applicable").dirty||r.createForm.get("maximum_discount_applicable").touched))}}function UE(n,a){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"div",11)(2,"div",102)(3,"div",11)(4,"div",103)(5,"div",104),e.nrm(6,"input",109),e.k0s()()()(),e.j41(7,"div",106)(8,"div",107)(9,"img",110),e.bIt("click",function(){const i=e.eBV(t).index,s=e.XpG(3);return e.Njj(s.deleteItem(i))}),e.k0s()()()(),e.bVm()}if(2&n){const t=a.$implicit;e.R7$(6),e.Y8G("value",(null==t?null:t.item_name)||"Not Available")}}function YE(n,a){1&n&&(e.j41(0,"small",98),e.EFF(1," Bin number is required!"),e.k0s())}function WE(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,YE,2,0,"small",97),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.itemForm.get("item_name").errors.required)}}function $E(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",100),e.DNE(2,UE,10,1,"ng-container",35),e.j41(3,"form",101)(4,"div",11)(5,"div",102)(6,"div",11)(7,"div",103)(8,"div",104),e.nrm(9,"input",105),e.DNE(10,WE,2,1,"div",29),e.k0s()()()(),e.j41(11,"div",106)(12,"div",107)(13,"img",108),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.onSubmit2())}),e.k0s()()()()()()()}if(2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.itemsData),e.R7$(),e.Y8G("formGroup",t.itemForm),e.R7$(6),e.Y8G("ngClass",e.eq3(4,v0,(t.itemForm.get("item_name").dirty||t.itemForm.get("item_name").touched)&&t.itemForm.get("item_name").errors)),e.R7$(),e.Y8G("ngIf",t.itemForm.get("item_name").invalid&&(t.itemForm.get("item_name").dirty||t.itemForm.get("item_name").touched))}}function qE(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",111),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.openBin())}),e.EFF(1,"Next"),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("nbSpinner",t.is_loading_1)("disabled",t.is_loading_1)}}function XE(n,a){if(1&n&&(e.j41(0,"button",112),e.EFF(1,"Create"),e.k0s()),2&n){const t=e.XpG(2);e.Y8G("nbSpinner",t.isCreatingDiscount)("disabled",t.isCreatingDiscount)}}function HE(n,a){if(1&n){const t=e.RV6();e.j41(0,"form",55),e.bIt("ngSubmit",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.createData())}),e.j41(1,"nb-card",56)(2,"nb-card-header",57),e.EFF(3,"Create discount"),e.k0s(),e.j41(4,"nb-card-body",58)(5,"div",59),e.DNE(6,zE,104,28,"div",29)(7,$E,14,6,"div",29),e.k0s()(),e.j41(8,"nb-card-footer"),e.DNE(9,qE,2,2,"button",60)(10,XE,2,2,"button",61),e.j41(11,"button",62),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.close())}),e.EFF(12,"Close"),e.k0s()()()()}if(2&n){const t=e.XpG();e.Y8G("formGroup",t.createForm),e.R7$(6),e.Y8G("ngIf",!t.dev_bin),e.R7$(),e.Y8G("ngIf",t.dev_bin),e.R7$(2),e.Y8G("ngIf",!t.dev_bin),e.R7$(),e.Y8G("ngIf",t.dev_bin)}}function KE(n,a){if(1&n){const t=e.RV6();e.j41(0,"nb-card",113)(1,"nb-card-body",58)(2,"div",114),e.nrm(3,"img",115),e.k0s(),e.j41(4,"div",116),e.EFF(5," Are you sure you want to delete this discount? This action cannot be undone. "),e.k0s()(),e.j41(6,"nb-card-footer",117)(7,"div",118)(8,"button",119),e.bIt("click",function(){const i=e.eBV(t).dialogRef;return e.Njj(i.close())}),e.EFF(9," Cancel "),e.k0s(),e.j41(10,"button",120),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.deleteDiscount())}),e.EFF(11," Delete "),e.k0s()()()()}}let JE=(()=>{class n{constructor(t,r,i,s,p,g){this.fb=t,this.router=r,this.dialogService=i,this.toastr=s,this.route=p,this.discountService=g,this.is_loading_1=!1,this.page=1,this.page_size=10,this.totalRecords=0,this.filter_status=new ie.MJ(""),this.dev_bin=!1,this.itemsData=[],this.banks=[],this.apps=[],this.discounts=[],this.isLoadingBanks=!1,this.isLoadingApps=!1,this.isLoadingDiscounts=!1,this.isCreatingDiscount=!1,this.searchText="",this.searchSubject=ne
1w mE.B,this.currentFilter="",this.selectedAppId="",this.createForm=this.fb.group({discount_name:["",[ie.k0.required]],bank_name:["",[ie.k0.required]],payment_method:["",[ie.k0.required]],card_type:["",[ie.k0.required]],app_name:["",[ie.k0.required]],discount:["",[ie.k0.required,ie.k0.min(.01)]],start_date:["",[ie.k0.required]],end_date:["",[ie.k0.required]],minimum_bill_value:["",[ie.k0.required]],maximum_bill_value:["",[ie.k0.required]],maximum_discount_applicable:["",[ie.k0.required]]},{validators:[this.billValueValidator(),this.dateRangeValidator]}),this.itemForm=this.fb.group({item_name:["",[ie.k0.required]]})}ngOnInit(){this.loadBanks(),this.loadApps(),this.loadDiscounts(),this.searchSubject.pipe((0,o4.B)(300),(0,hE.F)()).subscribe(t=>{this.searchText=t,this.page=1,this.loadDiscounts()})}loadBanks(){this.isLoadingBanks=!0,this.discountService.getBanks().then(t=>{t&&t.data&&(this.banks=t.data),this.isLoadingBanks=!1}).catch(t=>{console.error("Error loading banks:",t),this.toastr.showToast("danger","Error","Failed to load banks"),this.isLoadingBanks=!1})}loadApps(){this.isLoadingApps=!0,this.discountService.getApps().then(t=>{t&&t.data&&(this.apps=t.data),this.isLoadingApps=!1}).catch(t=>{console.error("Error loading apps:",t),this.toastr.showToast("danger","Error","Failed to load apps"),this.isLoadingApps=!1})}loadDiscounts(){let t,r;this.isLoadingDiscounts=!0,"LIVE"===this.currentFilter?t=!0:"EXPIRED"===this.currentFilter&&(r=!0),this.discountService.getDiscounts(this.page,this.page_size,this.searchText,t,r).then(i=>{if(i&&i.data){let s=i.data;this.totalRecords=i.count,this.selectedAppId&&""!==this.selectedAppId?(s=s.filter(p=>p.app_id?.toString()===this.selectedAppId),this.totalRecords=s.length):this.totalRecords=i.count,this.discounts=s,console.log(this.totalRecords,"final totalRecords")}this.isLoadingDiscounts=!1}).catch(i=>{console.error("Error loading discounts:",i),this.toastr.showToast("danger","Error","Failed to load discounts"),this.isLoadingDiscounts=!1})}pageChanged(t){this.page=t,this.loadDiscounts()}onSearch(){this.searchSubject.next(this.searchText)}onSearchInput(t){this.searchSubject.next(t.target.value)}clearSearch(){this.searchText="",this.searchSubject.next("")}OnItemClick(t){this.filter_status.setValue(t),this.currentFilter=t,this.page=1,this.loadDiscounts()}onAppFilterChange(t){this.selectedAppId=t.target.value,this.page=1,this.loadDiscounts()}toggle(t,r){const i=t;this.discountService.updateDiscount(r.id,{is_active:i}).then(g=>{if(g&&200===g.status)r.is_active=i,this.toastr.showToast("success","Success",`Discount ${i?"activated":"deactivated"} successfully`);else{r.is_active=!i;let S="Failed to update discount status";g&&g.non_field_errors&&g.non_field_errors.length>0?S=g.non_field_errors[0]:g&&g.message&&(S=g.message),this.toastr.showToast("danger","Error",S)}}).catch(g=>{console.error("Error updating discount status:",g),r.is_active=!i;let S="Failed to update discount status";g&&g.non_field_errors&&g.non_field_errors.length>0?S=g.non_field_errors[0]:g&&g.message?S=g.message:g&&g.error&&g.error.non_field_errors&&g.error.non_field_errors.length>0&&(S=g.error.non_field_errors[0]),this.toastr.showToast("danger","Error",S)})}openCreate(t){this.create_model=this.dialogService.open(t,{closeOnBackdropClick:!1})}createData(){if(this.createForm.valid){this.isCreatingDiscount=!0;const t=this.createForm.value,r={discount_name:t.discount_name,bank_id:t.bank_name,payment_method:t.payment_method,card_type:t.card_type,app_id:parseInt(t.app_name),discount_percentage:parseFloat(t.discount),start_date:t.start_date+"T00:00:00Z",end_date:t.end_date+"T23:59:59Z",min_bill_value:parseFloat(t.minimum_bill_value),max_bill_value:parseFloat(t.maximum_bill_value),max_discount_applicable:parseFloat(t.maximum_discount_applicable),bins:this.itemsData.map(i=>i.item_name)};console.log("Sending discount data:",r),this.discountService.createDiscount(r).then(i=>{if(this.isCreatingDiscount=!1,i&&200===i.status)this.toastr.showToast("success","Success","Discount created successfully"),this.createForm.reset(),this.itemsData=[],this.create_model.close(),this.dev_bin=!1,this.loadDiscounts();else{let s="Failed to create discount";i&&i.non_field_errors&&i.non_field_errors.length>0?s=i.non_field_errors[0]:i&&i.message&&(s=i.message),this.toastr.showToast("danger","Error",s)}}).catch(i=>{this.isCreatingDiscount=!1,console.error("Error creating discount:",i);let s="Failed to create discount";i&&i.error&&i.error.discount_name&&i.error.discount_name.length>0?(this.createForm.get("discount_name")?.setErrors({apiError:i.error.discount_name[0]}
1),s=i.error.discount_name[0]):i&&i.error&&i.error.non_field_errors&&i.error.non_field_errors.length>0?s=i.error.non_field_errors[0]:i&&i.non_field_errors&&i.non_field_errors.length>0?s=i.non_field_errors[0]:i&&i.error&&i.error.message?s=i.error.message:i&&i.message&&(s=i.message),this.toastr.showToast("danger","Error",s)})}else this.toastr.showToast("warning","Warning","Please fill all required fields"),Object.keys(this.createForm.controls).forEach(t=>{this.createForm.get(t)?.markAsTouched()})}close(){this.create_model.close(),this.dev_bin=!1,this.createForm.reset(),this.itemForm.reset()}openBin(){this.dev_bin=!0}onSubmit2(){console.log(this.itemForm.value,"444rr"),this.itemForm.valid?(this.itemsData.push(this.itemForm.value),this.itemForm.reset()):console.log("Form is invalid")}editItem(t){this.itemForm.patchValue(this.itemsData[t]),this.itemsData.splice(t,1)}deleteItem(t){this.itemsData.splice(t,1)}billValueValidator(){return t=>{const r=t.get("minimum_bill_value")?.value,i=t.get("maximum_bill_value")?.value;return null!=r&&null!=i&&r>i?{minGreaterThanMax:!0}:null}}openDelete(t,r){this.delete_id=r,this.delete_model=this.dialogService.open(t,{closeOnBackdropClick:!1})}deleteDiscount(){this.is_loading_1=!0,this.discountService.deleteDiscount(this.delete_id).then(t=>{this.is_loading_1=!1,200===t?.status||201===t?.status?(this.toastr.showToast("success","Success","Discount deleted successfully!"),this.delete_model.close(),this.loadDiscounts()):this.toastr.showToast("danger","Error!",t?.message||"Delete discount failed.")}).catch(t=>{this.is_loading_1=!1,console.error("Update Template Status Error:",t),this.toastr.showToast("danger","Error!","Failed to update template status.")})}dateRangeValidator(t){const r=new Date(t.get("start_date")?.value),i=new Date(t.get("end_date")?.value);return r&&i&&i<r?t.get("end_date")?.setErrors({endBeforeStart:!0}):t.get("end_date")?.setErrors(null),null}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(ie.ok),e.rXU(qe.Ix),e.rXU(E.S0W),e.rXU(Dt.V4),e.rXU(qe.nX),e.rXU(Mt.f3))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-discounts"]],decls:70,vars:19,consts:[["dialogCreate",""],["dialogDelete",""],[1,"body-style","ipg-transaction-root"],[1,"container"],[2,"text-decoration","none","color","#718096","font-size","13px","font-weight","500"],[1,"row","mb-4"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"page-heading"],["nbButton","","status","success","size","medium",1,"primary-green-btn",3,"click"],[2,"text-transform","capitalize!important","margin-left","4px"],[1,"col"],[1,"row"],[1,"col-6","d-flex","justify-content-start","align-items-center"],[1,"input-container"],["type","text","placeholder","Search by app name, bank, and payment option",3,"ngModelChange","keyup.enter","input","ngModel"],[1,"search-icon",3,"click"],["src","../../../assets/images/search.png","alt","Search Icon",1,"search-img"],[1,"col-6","d-flex","justify-content-end","align-items-center"],["placeholder","Select App",1,"selecter_","width_1",3,"change","value"],["value",""],[3,"value",4,"ngFor","ngForOf"],["class","text-center mt-1",4,"ngIf"],[1,"row","mt-3"],[1,"col-2","ipg-dashbord-right"],[1,"menu_itam",3,"click","ngClass"],[1,"button_name"],[1,"col","d-flex","flex-column","px-0","list-like-table"],[1,"table-responsive"],[1,"table","table-sm","align-top"],[4,"ngIf"],["class","d-flex justify-content-center align-items-center","style","height: 20rem;",4,"ngIf"],["responsive","true","class","mx-auto mt-4",3,"pageChange","pageBoundsCorrection",4,"ngIf"],[3,"value"],[1,"text-center","mt-1"],[1,"text-muted"],[4,"ngFor","ngForOf"],[1,"istalment_plan"],[1,"switch"],["type","checkbox",3,"click","checked"],[1,"slider","round"],[1,"d-flex","justify-content-around"],[1,"btn-group"],["data-toggle","dropdown","aria-expanded","false","src","../../../../assets/images/more.png",1,"more_i"],[1,"dropdown-menu","dropdown-menu-right"],["type","button",1,"dropdown-item",3,"routerLink"],["icon","eye-outline"],[2,"font-size","14px","font-weight","500","color","#344054","margin-left","10px"],["type","button",1,"dropdown-item",3,"click"],["src","../../../../assets/images/delete_i.png",1,"drop_icon"],[2,"font-size","14px","font-weight","500","color","red","margin-left","10px"],["colspan","9",1,"text-center"],[1,"d-flex","justify-content-center","align-items-center",2,"height","20rem"],["role","status",1,"spinner-border","text-primary"],[1,"visually-hidden"],["responsive","true",1,"mx-auto","mt-4",3,"pageChange","pageBoundsCorrection"],[1,"step-container",3,"ngSubmit","formGroup"],[2,"width","70vw"],[2,"font-family","'Poppins'","text-align","center"],[1,"dialog-border",2,"font-family","'Poppins'"],[1,"modal-body",2,"max-height","65vh"],["class","col-md-2 create-green-btn","status","success","size","small","nbSpinnerStatus","danger","nbSpinnerSize","tiny","style","float: right;","nbButton","",3,"nbSpinner","disabled","click",4,"ngIf"],["type","submit","class","col-md-2 create-green-btn","status","success","size","small","nbSpinnerStatus","success","nbSpinnerSize","tiny","style","float: right;","nbButton","",3,"nbSpinner","disabled",4,"ngIf"],["type","button","status","info","size","small","nbButton","",1,"col-md-2",2,"float","right","background-color","white","border","1p
1x solid #667185","margin-right","10px","color","#667185","font-weight","600",3,"click"],[1,"col-6","d-flex","flex-column","justify-content-start","mb-3"],["for","discount_name",1,"col","px-0","mb-1"],[1,"form-required-sign"],["fullWidth","","id","discount_name","type","text","placeholder","Enter discount name","formControlName","discount_name","name","discount_name",1,"form-control","text_css",2,"height","36px","border-radius","6px",3,"ngClass"],[1,"col-6","d-flex","flex-column","justify-content-start","align-items-center","mb-3"],[1,"col","px-0","mb-1"],["fullWidth","","fullWidth","","placeholder","Select bank name","formControlName","bank_name","name","bank_name",1,"col","select_filter","form-control",2,"height","36px","border-radius","6px"],["disabled","","selected","","value",""],[1,"col-4","d-flex","flex-column","justify-content-start","align-items-center","mb-3"],["fullWidth","","placeholder","Select payment method","formControlName","payment_method","name","payment_method",1,"col","select_filter",2,"height","36px","border-radius","6px"],["value","VISA"],["value","MASTERCARD"],["value","AMEX"],["fullWidth","","placeholder","Select card type","formControlName","card_type","name","card_type",1,"col","select_filter",2,"height","36px","border-radius","6px"],["value","DEBIT"],["value","CREDIT"],["fullWidth","","placeholder","Select app name","formControlName","app_name","name","app_name",1,"col","select_filter",2,"height","36px","border-radius","6px"],[1,"col-4","d-flex","flex-column","justify-content-start","mb-3"],["for","discount",1,"col","px-0","mb-1"],[1,"input-group"],["id","discount","type","number","min","0.01","max","100","placeholder","Enter discount rate","formControlName","discount","name","discount",1,"form-control",2,"height","36px","border-radius","6px 0 0px 6px",3,"ngClass"],[1,"input-group-append",2,"height","36px","border-radius","0px 6px 6px 0ppx"],[1,"input-group-text",2,"background-color","#f8f9fa","border-left","0"],["for","start_date",1,"col","px-0","mb-1"],["id","start_date","formControlName","start_date","placeholder","Select start date","type","date","name","start_date",1,"form-control",2,"height","36px","border-radius","6px",3,"min"],["for","end_date",1,"col","px-0","mb-1"],["id","end_date","formControlName","end_date","placeholder","Select end date","type","date","name","end_date",1,"form-control",2,"height","36px","border-radius","6px",3,"min"],["style","font-size: 80%;line-height: 12px;","class","text-danger",4,"ngIf"],["for","minimum_bill_value",1,"col","px-0","mb-1"],["id","minimum_bill_value","type","number","placeholder","Enter minimum bill value","formControlName","minimum_bill_value","name","minimum_bill_value",1,"col","form-control",2,"height","36px","border-radius","6px",3,"ngClass"],["for","maximum_bill_value",1,"col","px-0","mb-1"],["id","maximum_bill_value","type","number","placeholder","Enter maximum bill value","formControlName","maximum_bill_value","name","maximum_bill_value",1,"col","form-control",2,"height","36px","border-radius","6px",3,"ngClass"],["for","maximum_discount_applicable",1,"col","px-0","mb-1"],["id","maximum_discount_applicable","type","number","placeholder","Enter maximum discount","formControlName","maximum_discount_applicable","name","maximum_discount_applicable",1,"col","form-control",2,"height","36px","border-radius","6px",3,"ngClass"],["class","text-danger",4,"ngIf"],[1,"text-danger"],[1,"text-danger",2,"font-size","80%","line-height","12px"],[1,""],[3,"formGroup"],[1,"colNew-1"],[1,"col-md-12"],[1,"form-group"],["placeholder","Add bin number","formControlName","item_name","type","text","id","item_name",1,"form-control",2,"height","36px","border-radius","6px",3,"ngClass"],[1,"colNew-2","d-flex","align-items-center","justify-content-center"],[1,"icon_border","d-flex","align-items-center","justify-content-center",2,"margin-top","-17px"],["src","../../../assets/images/plus1.png",1,"plus_table",3,"click"],["type","text",1,"form-control",3,"value"],["src","../../../assets/images/icon.png",1,"delete_table",3,"click"],["status","success","size","small","nbSpinnerStatus","danger","nbSpinnerSize","tiny","nbButton","",1,"col-md-2","create-green-btn",2,"float","right",3,"click","nbSpinner","disabled"],["type","submit","status","success","size","small","nbSpinnerStatus","success","nbSpinnerSize","tiny","nbButton","",1,"col-md-2","create-green-btn",2,"float","right",3,"nbSpinner","disabled"],[2,"width","400px"],[1,"row","justify-content-center","mb-3"],["src","../../../../assets/images/delete_icon_pop.png",1,"pe-2","delete_img"],[1,"d-flex","justify-content-center","delete_p"],[2,"border-top","none"],[1,"d-flex","justify-content-center","buttons-container-app"],[1,"button-cansel-app",3,"click"],["type","button",1,"delete-button-app",3,"click"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"p",4),e.EFF(3,"Create discounts and share among your customers"),e.k0s(),e.j41(4,"div",5)(5,"div",6)(6,"h2",7),e.EFF(7,"Discounts"),e.k0s(),e.j41(8,"button",8),e.bIt("click",function(){e.eBV(s);const g=e.sdS(67);return e.Njj(i.openCreate(g))}),e.j41(9,"span",9),e.EFF(10,"Create discount"),e.k0s()()()(),e.j41(11,"div",5)(12,"div",10)(13,"nb-card")(14,"nb-card-body")(15,"div",11)(16,"div",12)(17,"div",13)(18,"input",14),e.mxI("ngModelChange",function(g){return e.eBV(s),e.DH7(i.searchText,g)||(i.searchText=g),e.Njj(g)}),e.bIt("keyup.enter",function(){return e.eBV(s),e.Njj(i.onSearch())})("input",function(g){return e.eBV(s),e.Njj(i.onSearchInput(g))}),e.k0s(),e.j41(19,"span",15),e.bIt("click",function(){return e.eBV(s),e.Njj(i.onSearch())}),e.nrm(20,"img",16),e.k0s()()(),e.j41(21,"div",17)(22,"select",18),e.bIt("change",function(g){return e.eBV(s),e.Njj(i.onAppFilterChange(g))}),e.j41(23,"option",19),e.EFF(24,"ALL APPS"),e.k0s(),e.DNE(25,vE,2,2,"option",20),e.k0s(),e.DNE(26,xE,3,0,"div",21),e.k0s()(),e.j41(27,"div",22)(28,"div",23)(29,"div",24),e.bIt("click",function(){return e.eBV(s),e.Njj(i.OnItemClick(""))}),e.j41(30,"span",25),e.EFF(31,"ALL"),e.k0s()()(),e.j41(32,"div",23)(33,"div",24),e.bIt("click",function(){return e.eBV(s),e.Njj(i.OnItemClick("LIVE"))}),e.j41(34,"span",25),e.EFF(35,"Live Discounts"),e.k0s()()(),e.j41(36,"div",23)(37,"div",24),e.bIt("click",function(){return e.eBV(s),e.Njj(i.OnItemClick("EXPIRED"))}),e.j41(38,"span",25),e.EFF(39,"Expired Discount"),e.k0s()()()(),e.j41(40,"div",26)(41,"div",27)(42,"table",28)(43,"thead")(44,"tr")(45,"th"),e.EFF(46,"Payment option"),e.k0s(),e.j41(47,"th"),e.EFF(48,"Bank"),e.k0s(),e.j41(49,"th"),e.EFF(50,"App Name"),e.k0s(),e.j41(51,"th"),e.EFF(52,"Start date"),e.k0s(),e.j41(53,"th"),e.EFF(54,"End date"),e.k0s(),e.j41(55,"th"),e.EFF(56,"Created date"),e.k0s(),e.j41(57,"th"),e.EFF(58,"Discount"),e.k0s(),e.j41(59,"th"),e.EFF(60,"STATUS"),e.k0s(),e.j41(61,"th"),e.EFF(62,"ACTION"),e.k0s()()(),e.DNE(63,CE,4,9,"tbody",29),e.k0s(),e.DNE(64,kE,4,0,"div",30),e.k0s(),e.DNE(65,wE,1,0,"pagination-controls",31),e.k0s()()()()()()(),e.DNE(66,HE,13,5,"ng-template",null,0,e.C5r)(68,KE,12,0,"ng-template",null,1,e.C5r)}2&r&&(e.R7$(18),e.R50("ngModel",i.searchText),e.R7$(4),e.Y8G("value",i.selectedAppId),e.R7$(3),e.Y8G("ngForOf",i.apps),e.R7$(),e.Y8G("ngIf",i.isLoadingApps),e.R7$(3),e.Y8G("ngClass",e.l_i(10,xx,""===i.filter_status.value,""!==i.filter_status.value)),e.R7$(4),e.Y8G("ngClass",e.l_i(13,xx,"LIVE"===i.filter_status.value,"LIVE"!==i.filter_status.value)),e.R7$(4),e.Y8G("ngClass",e.l_i(16,xx,"EXPIRED"===i.filter_status.value,"EXPIRED"!==i.filter_status.value)),e.R7$(26),e.Y8G("ngIf",!i.isLoadingDiscounts),e.R7$(),e.Y8G("ngIf",i.isLoadingDiscounts),e.R7$(),e.Y8G("ngIf",i.totalRecords>0))},dependencies:[Fe.YU,Fe.Sq,Fe.bT,xi.ej,ie.qT,ie.xH,ie.y7,ie.me,ie.Q0,ie.wz,ie.BC,ie.cb,ie.VZ,ie.zX,ie.vS,ie.j4,ie.JD,qe.Wk,E.SrT,E.KH5,E.VDm,E.zJv,E.tHu,E.YP2,E.zwc,Fe.vh,xi.kf],styles:['.ipg-transaction-root[_ngcontent-%COMP%] nb-badge[_ngcontent-%COMP%]{position:absolute;top:39%;left:15px;width:-moz-fit-content;width:fit-content}.transaction-view-modal[_ngcontent-%COMP%]{width:40rem;height:85vh}.transaction-view-modal[_ngcontent-%COMP%] nb-badge[_ngcontent-%COMP%]{position:absolute;
1left:15px;top:50%;transform:translateY(0);width:-moz-fit-content;width:fit-content}.menu_itam[_ngcontent-%COMP%]{width:100%;height:124px;padding:32px 1px;border-radius:8px;border:1px solid #E4E4E4;background:#f4f4f4}.count-user[_ngcontent-%COMP%]{font-weight:700;font-size:32px;color:#1a202c;text-align:center}.count-user_O[_ngcontent-%COMP%]{font-weight:700;font-size:32px;color:#c6c6c6;text-align:center}.count-user-name[_ngcontent-%COMP%]{font-weight:500;font-size:16px;color:#4d4d4d;text-align:center}.dashbord-tab[_ngcontent-%COMP%]{padding-right:6px!important;padding-left:6px!important}.ipg-filter[_ngcontent-%COMP%]{width:500px;float:right!important}.ipg-filter-content[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:none;height:100%;border-radius:0;outline:0}.modal-header-ipg[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;padding:1rem;border-top-left-radius:.3rem;border-top-right-radius:.3rem}.modal-footer-ipg[_ngcontent-%COMP%]{position:fixed;bottom:0;text-align:right;font-size:14px;color:#8b8b8b;font-weight:400;margin-top:14px;background:#fff;width:500px;margin-bottom:12px;padding-right:26px}.modal-body-filter[_ngcontent-%COMP%]{height:100vh}.modal2[_ngcontent-%COMP%]{position:fixed;top:0;left:0;z-index:1050;display:none;width:100%;overflow:hidden;outline:0}.select_filte[_ngcontent-%COMP%]:hover{border:none!important}.filter-form-clear-btn[_ngcontent-%COMP%]{width:80px!important;height:40px!important;border-radius:8px!important;border:1px solid #D0D5DD!important;font-weight:600!important;font-size:14px!important;color:#344054!important;margin-right:8px}.primary-black-btn[_ngcontent-%COMP%]{width:76px!important;height:40px!important;border-radius:8px!important;border:1px solid #D0D5DD!important;font-weight:600!important;font-size:14px!important;color:#fff!important}.filter-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#344054;font-size:14px;font-weight:500}.filter_icon[_ngcontent-%COMP%]{float:right!important;cursor:pointer;margin-top:17px}.filter_icon_figma[_ngcontent-%COMP%]{height:11px;width:auto;margin-right:6px}.tool_icon[_ngcontent-%COMP%]{position:absolute;top:4px;right:14px;cursor:pointer}.primary-green-btn[_ngcontent-%COMP%]{background:#000!important;text-transform:capitalize!important}.search[_ngcontent-%COMP%]{margin-left:12px;margin-top:11px}.more_i[_ngcontent-%COMP%]{width:auto;height:15px;cursor:pointer}.btn.dropdown-toggle[_ngcontent-%COMP%]{display:none}.more_i[_ngcontent-%COMP%]{position:relative;top:3px}.drop_icon[_ngcontent-%COMP%]{width:13px;height:13px}.overridee[_ngcontent-%COMP%]{align-items:baseline!important}.icon-main[_ngcontent-%COMP%]{position:absolute;z-index:1;margin-top:10px;margin-left:13px}.icon-sub-sign[_ngcontent-%COMP%]{display:inline;color:#667085;font-weight:100}.sign-input[_ngcontent-%COMP%]{padding-left:52px!important;width:100%}th[_ngcontent-%COMP%]{text-transform:uppercase}.input-container[_ngcontent-%COMP%]{position:relative;display:inline-block;width:100%;max-width:400px}.input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;padding:8px 10px 8px 32px;font-size:16px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box}.input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{position:absolute;left:10px;top:50%;transform:translateY(-50%);font-size:16px;color:#888;pointer-events:none}.search-img[_ngcontent-%COMP%]{width:14px;height:auto}.selecter_[_ngcontent-%COMP%]{background-color:#fff;border-color:#d0d5dd;color:#98a2b3;line-height:1.5rem;padding:.2375rem 1rem;font-size:14px!important;font-weight:400!important;border-radius:.25rem;height:36px;margin-right:15px;float:right}.menu_itam[_ngcontent-%COMP%]{width:100%;height:48px;padding:10px 1px;border-radius:6px;background:#f4f4f4;cursor:pointer;display:flex;align-items:center;justify-content:center}.menu_itam2[_ngcontent-%COMP%]{width:auto;height:36px;padding:10px 15px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;float:right;background:#fff;border:1px solid #D0D5DD;color:#98a2b3}.clicked[_ngcontent-%COMP%]{background:#effff4;border:1px solid #036B26;color:#036b26}.clicked2[_ngcontent-%COMP%]{background:#fff;border:1px solid #D0D5DD;color:#98a2b3}.ipg-dashbord-right[_ngcontent-%COMP%]{padding-right:0!important}.button_name[_ngcontent-%COMP%]{font-size:12px;line-height:20px;font-weight:400}.button_img[_ngcontent-%COMP%]{width:20px;height:auto;margin-right:6px}.table-view-btn-3[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 12px;border:none;color:#04334d;cursor:pointer;border-radius:4px;box-shadow:0 4px 6px #0000001a;background-color:#fff}.button_img[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block}.table-view-btn-3[_ngcontent-%COMP%]:hover{box-shadow:0 6px 10px #00000026}.menu_refresh[_ngcontent-%COMP%]{width:auto;height:48px;padding:10px 15px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;float:right;background:#000;color:#fff;margin-left:15px}.istalment_plan[_ngcontent-%COMP%]{margin-bottom:15px!important}.slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0;background-color:#ccc;transition:.4s}.slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:10px;width:10px;left:4px;bottom:4px;background-color:#fff;transition:.4s}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]{background-color:#2196f3}input[_ngcontent-%COMP%]:focus + .slider[_ngcontent-%COMP%]{box-shadow:0 0 1px #2196f3}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{transform:translate(16px)}.slider.round[_ngcontent-%COMP%]{border-radius:34px}.slider.round[_ngcontent-%COMP%]:before{border-radius:50%}.switch[_ngcontent-%COMP%]{position:relative;display:inline-block;width:35px;height:18px}.switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{opacity:0;width:0;height:0}
1.create-green-btn[_ngcontent-%COMP%]{background:#004d14!important;color:#fff!important}.table[_ngcontent-%COMP%] .thead-light[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#495057;background-color:transparent;border:none!important}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-bottom:hidden;border-top:hidden;font-size:14px;color:#1c1c1c;font-weight:500}.table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-top:none;font-size:14px;color:#4b4b4b}.item_invoice_t[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-top:5px!important;padding-bottom:0!important}.in_ad_line[_ngcontent-%COMP%]{display:block;font-size:14px;font-weight:500;color:#344054;line-height:21px}.pencil[_ngcontent-%COMP%]{width:12px;height:12px;color:red}.pencil_table[_ngcontent-%COMP%]{width:12px;height:12px;color:#000!important;margin-right:5px}.delete_table[_ngcontent-%COMP%]{width:auto;height:32px;cursor:pointer}.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.data_table_lable[_ngcontent-%COMP%]{margin-top:10px}.div_line_in_table[_ngcontent-%COMP%]{width:100%;border-bottom:1px solid #DADADA;margin-top:5px;margin-bottom:5px}.pencil_plus[_ngcontent-%COMP%]{width:32px;height:32px;cursor:pointer}
1.label-name[_ngcontent-%COMP%]{margin-bottom:6px!important;color:#344054;font-size:14px;font-weight:500}.required_feeld[_ngcontent-%COMP%]{color:red;margin-left:5px}.text-danger[_ngcontent-%COMP%]{float:left!important}.item_invoice_t[_ngcontent-%COMP%] .other_td[_ngcontent-%COMP%]{font-weight:600;font-size:16px;color:#344054}.des_invoice[_ngcontent-%COMP%]{font-size:14px!important;color:#6a707a!important;font-weight:600!important}.icon_border[_ngcontent-%COMP%]{width:36px;height:36px;border:1px solid #ccc;border-radius:6px;display:flex;align-items:center;justify-content:center}.delete_table[_ngcontent-%COMP%]{width:14px;height:20px;cursor:pointer}.plus_table[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.colNew-1[_ngcontent-%COMP%]{width:90%}.colNew-2[_ngcontent-%COMP%]{width:10%}.select_filter[_ngcontent-%COMP%]{background-color:transparent;border-color:#e4e9f2;color:#495057;line-height:1.5rem;padding:.4375rem 1rem;font-size:15px!important;font-weight:400!important;border-radius:.25rem}.feature-icon-update[_ngcontent-%COMP%]{width:48px!important;height:auto}.button-cansel-app[_ngcontent-%COMP%]{padding:10px 18px;margin-right:10px;width:170px;height:44px;font-size:14px;font-weight:700;color:#344054;background-color:#fff;border:1px solid #D0D5DD;border-radius:8px;cursor:pointer}.delete-button-app[_ngcontent-%COMP%]:hover{background-color:#d92d20!important}.delete-button-app[_ngcontent-%COMP%]{padding:10px 18px;margin-right:10px;width:170px;height:44px;font-size:16px;font-weight:600;color:#fff;background-color:#d92d20;border:none;border-radius:8px}.delete_img[_ngcontent-%COMP%]{width:48px;height:auto}.topic-app[_ngcontent-%COMP%]{font-size:18px;font-weight:600}.delete_p[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:20px;color:#667085}.text-css[_ngcontent-%COMP%]{font-size:14px;color:#667185;font-weight:400}']})}return n})();const x0=n=>({"form-control-danger":n});function ZE(n,a){if(1&n&&(e.j41(0,"span",15),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.LHq(" ",t.discount.discount_percentage,"% ",t.discount.bank_name," Discount - ",t.discount.payment_method,"/",t.discount.card_type," ")}}function QE(n,a){1&n&&(e.j41(0,"span",15),e.EFF(1," Discount Details "),e.k0s())}function e6(n,a){1&n&&(e.j41(0,"div",4)(1,"div",16)(2,"div",17)(3,"span",18),e.EFF(4,"Loading..."),e.k0s()()()())}function t6(n,a){if(1&n&&(e.j41(0,"div",24)(1,"div",32)(2,"p",27),e.EFF(3),e.k0s()()()),2&n){const t=a.$implicit;e.R7$(3),e.JRh(t)}}function n6(n,a){1&n&&(e.j41(0,"div",24)(1,"div",32)(2,"p",33),e.EFF(3,"No bin numbers assigned"),e.k0s()()())}function i6(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",4)(1,"div",19)(2,"div",8)(3,"h3",20),e.EFF(4,"Discount Details"),e.k0s(),e.j41(5,"span",21),e.bIt("click",function(){e.eBV(t);const i=e.XpG(),s=e.sdS(18);return e.Njj(i.openEditDetailsDialog(s))}),e.nrm(6,"img",22),e.k0s()(),e.nrm(7,"hr",23),e.j41(8,"div",24)(9,"div",25)(10,"p",26),e.EFF(11,"Discount Name"),e.k0s(),e.j41(12,"p",27),e.EFF(13),e.k0s()(),e.j41(14,"div",25)(15,"p",26),e.EFF(16,"App Name"),e.k0s(),e.j41(17,"p",27),e.EFF(18),e.k0s()()(),e.j41(19,"div",24)(20,"div",25)(21,"p",26),e.EFF(22,"Payment Method"),e.k0s(),e.j41(23,"p",27),e.EFF(24),e.k0s()(),e.j41(25,"div",25)(26,"p",26),e.EFF(27,"Card Type"),e.k0s(),e.j41(28,"p",27),e.EFF(29),e.k0s()()(),e.j41(30,"div",24)(31,"div",25)(32,"p",26),e.EFF(33,"Bank"),e.k0s(),e.j41(34,"p",27),e.EFF(35),e.k0s()(),e.j41(36,"div",25)(37,"p",26),e.EFF(38,"Discount"),e.k0s(),e.j41(39,"p",27),e.EFF(40),e.k0s()()(),e.j41(41,"div",24)(42,"div",25)(43,"p",26),e.EFF(44,"Start Date"),e.k0s(),e.j41(45,"p",27),e.EFF(46),e.nI1(47,"date"),e.k0s()(),e.j41(48,"div",25)(49,"p",26),e.EFF(50,"End Date"),e.k0s(),e.j41(51,"p",27),e.EFF(52),e.nI1(53,"date"),e.k0s()()(),e.j41(54,"div",24)(55,"div",25)(56,"p",26),e.EFF(57,"Min Bill Value"),e.k0s(),e.j41(58,"p",27),e.EFF(59),e.nI1(60,"number"),e.k0s()(),e.j41(61,"div",25)(62,"p",26),e.EFF(63,"Max Bill Value"),e.k0s(),e.j41(64,"p",27),e.EFF(65),e.nI1(66,"number"),e.k0s()()(),e.j41(67,"div",24)(68,"div",25)(69,"p",26),e.EFF(70,"Max Discount Applicable"),e.k0s(),e.j41(71,"p",27),e.EFF(72),e.nI1(73,"number"),e.k0s()(),e.j41(74,"div",25)(75,"p",26),e.EFF(76,"Status"),e.k0s(),e.j41(77,"p",27)(78,"span",28),e.EFF(79),e.nI1(80,"titlecase"),e.k0s()()()(),e.j41(81,"div",24)(82,"div",25)(83,"p",26),e.EFF(84,"Created Date"),e.k0s(),e.j41(85,"p",27),e.EFF(86),e.nI1(87,"date"),e.k0s()(),e.j41(88,"div",25)(89,"p",26),e.EFF(90,"Created By"),e.k0s(),e.j41(91,"p",27),e.EFF(92),e.k0s()()()(),e.j41(93,"div",29)(94,"div",8)(95,"h3",20),e.EFF(96,"Bin Numbers"),e.k0s(),e.j41(97,"span",21),e.bIt("click",function(){e.eBV(t);const i=e.XpG(),s=e.sdS(20);return e.Njj(i.openEditBinsDialog(s))}),e.nrm(98,"img",22),e.k0s()(),e.nrm(99,"hr",23),e.DNE(100,t6,4,1,"div",30)(101,n6,4,0,"div",31),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(13),e.JRh(t.discount.discount_name),e.R7$(5),e.JRh(t.discount.app_name),e.R7$(6),e.JRh(t.discount.payment_method),e.R7$(5),e.JRh(t.discount.card_type),e.R7$(6),e.JRh(t.discount.bank_official_name),e.R7$(5),e.SpI("",t.discount.discount_percentage,"%"),e.R7$(6),e.JRh(e.i5U(47,17,t.discount.start_date,"dd MMM yyyy")),e.R7$(6),e.JRh(e.i5U(53,20,t.discount.end_date,"dd MMM yyyy")),e.R7$(7),e.SpI("LKR ",e.i5U(60,23,t.discount.min_bill_value,"1.2-2"),""),e.R7$(6),e.SpI("LKR ",e.i5U(66,26,t.discount.max_bill_value,"1.2-2"),""),e.R7$(7),e.SpI("LKR ",e.i5U(73,29,t.discount.max_discount_applicable,"1.2-2"),""),e.R7$(6),e.Y8G("ngClass",t.getStatusClass(t.discount.status)),e.R7$(),e.SpI(" ",e.bMT(80,32,t.discount.status)," "),e.R7$(7),e.JRh(e.i5U(87,34,t.discount.created_at,"dd MMM yyyy HH:mm")),e.R7$(6),e.JRh(null==t.discount.created_by?null:t.discount.created_by.email),e.R7$(8),e.Y8G("ngForOf",t.discount.bins),e.R7$(),e.Y8G("ngIf",!t.discount.bins||0===t.discount.bins.length)}}
1function r6(n,a){1&n&&(e.j41(0,"small",74),e.EFF(1," Discount name is required!"),e.k0s())}function a6(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,r6,2,0,"small",73),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.editDetailsForm.get("discount_name").errors.required)}}function o6(n,a){if(1&n&&(e.j41(0,"option",75),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.Y8G("value",t.id),e.R7$(),e.SpI(" ",t.display_name||t.name," ")}}function s6(n,a){1&n&&(e.j41(0,"div",76)(1,"small",77),e.EFF(2,"Loading banks..."),e.k0s()())}function l6(n,a){if(1&n&&(e.j41(0,"option",75),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.Y8G("value",t.id),e.R7$(),e.SpI(" ",t.app_name," ")}}function c6(n,a){1&n&&(e.j41(0,"div",76)(1,"small",77),e.EFF(2,"Loading apps..."),e.k0s()())}function d6(n,a){1&n&&(e.j41(0,"small",74),e.EFF(1," Discount is required!"),e.k0s())}function u6(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,d6,2,0,"small",73),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.editDetailsForm.get("discount").errors.required)}}function f6(n,a){1&n&&(e.j41(0,"small",74),e.EFF(1," Minimum bill value is required!"),e.k0s())}function p6(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,f6,2,0,"small",73),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.editDetailsForm.get("minimum_bill_value").errors.required)}}function h6(n,a){1&n&&(e.j41(0,"small",74),e.EFF(1," Maximum bill value is required!"),e.k0s())}function m6(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,h6,2,0,"small",73),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.editDetailsForm.get("maximum_bill_value").errors.required)}}function g6(n,a){1&n&&(e.j41(0,"small",74),e.EFF(1," Maximum discount applicable is required!"),e.k0s())}function _6(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,g6,2,0,"small",73),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.editDetailsForm.get("maximum_discount_applicable").errors.required)}}function v6(n,a){if(1&n){const t=e.RV6();e.j41(0,"form",34),e.bIt("ngSubmit",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.updateDiscountDetails())}),e.j41(1,"nb-card",35)(2,"nb-card-header",36),e.EFF(3,"Edit Discount Details"),e.k0s(),e.j41(4,"nb-card-body",37)(5,"div",38)(6,"div",4)(7,"div",39)(8,"label",40),e.EFF(9,"Discount Name"),e.k0s(),e.nrm(10,"input",41),e.DNE(11,a6,2,1,"div",42),e.k0s(),e.j41(12,"div",43)(13,"label",44),e.EFF(14,"Bank Name"),e.k0s(),e.j41(15,"select",45)(16,"option",46),e.EFF(17,"Select bank name"),e.k0s(),e.DNE(18,o6,2,2,"option",47),e.k0s(),e.DNE(19,s6,3,0,"div",48),e.k0s()(),e.j41(20,"div",4)(21,"div",43)(22,"label",44),e.EFF(23,"Payment Method"),e.k0s(),e.j41(24,"select",49)(25,"option",46),e.EFF(26,"Select payment method"),e.k0s(),e.j41(27,"option",50),e.EFF(28,"Visa"),e.k0s(),e.j41(29,"option",51),e.EFF(30,"Mastercard"),e.k0s()()(),e.j41(31,"div",43)(32,"label",44),e.EFF(33,"Card Type"),e.k0s(),e.j41(34,"select",52)(35,"option",46),e.EFF(36,"Select card type"),e.k0s(),e.j41(37,"option",53),e.EFF(38,"Debit Card"),e.k0s(),e.j41(39,"option",54),e.EFF(40,"Credit Card"),e.k0s()()()(),e.j41(41,"div",4)(42,"div",43)(43,"label",44),e.EFF(44,"App Name"),e.k0s(),e.j41(45,"select",55)(46,"option",46),e.EFF(47,"Select app name"),e.k0s(),e.DNE(48,l6,2,2,"option",47),e.k0s(),e.DNE(49,c6,3,0,"div",48),e.k0s(),e.j41(50,"div",39)(51,"label",56),e.EFF(52,"Discount"),e.k0s(),e.j41(53,"div",57),e.nrm(54,"input",58),e.j41(55,"div",59)(56,"span",60),e.EFF(57,"%"),e.k0s()()(),e.DNE(58,u6,2,1,"div",42),e.k0s()(),e.j41(59,"div",4)(60,"div",43)(61,"label",61),e.EFF(62,"Start Date"),e.k0s(),e.nrm(63,"input",62),e.k0s(),e.j41(64,"div",43)(65,"label",63),e.EFF(66,"End date"),e.k0s(),e.nrm(67,"input",64),e.k0s()(),e.j41(68,"div",4)(69,"div",39)(70,"label",65),e.EFF(71,"Minimum Bill Value"),e.k0s(),e.nrm(72,"input",66),e.DNE(73,p6,2,1,"div",42),e.k0s(),e.j41(74,"div",39)(75,"label",67),e.EFF(76,"Maximum Bill Value"),e.k0s(),e.nrm(77,"input",68),e.DNE(78,m6,2,1,"div",42),e.k0s()(),e.j41(79,"div",4)(80,"div",39)(81,"label",69),e.EFF(82,"Maximum Discount Applicable"),e.k0s(),e.nrm(83,"input",70),e.DNE(84,_6,2,1,"div",42),e.k0s()()()(),e.j41(85,"nb-card-footer")(86,"button",71),e.EFF(87),e.k0s(),e.j41(88,"button",72),e.bIt("click",function(){const i=e.eBV(t).dialogRef;return e.Njj(i.close())}),e.EFF(89,"Close"),e.k0s()()()()}if(2&n){const t=e.XpG();e.Y8G("formGroup",t.editDetailsForm),e.R7$(10),e.Y8G("ngClass",e.eq3(19,x0,(t.editDetailsForm.get("discount_name").dirty||t.editDetailsForm.get("discount_name").touched)&&t.editDetailsForm.get("discount_name").errors)),e.R7$(),e.Y8G("ngIf",t.editDetailsForm.get("discount_name").invalid&&(t.editDetailsForm.get("discount_name").dirty||t.editDetailsForm.get("discount_name").touched)),e.R7$(7),e.Y8G("ngForOf",t.banks),e.R7$(),e.Y8G("ngIf",t.isLoadingBanks),e.R7$(29),e.Y8G("ngForOf",t.apps),e.R7$(),e.Y8G("ngIf",t.isLoadingApps),e.R7$(5),e.Y8G("ngClass",e.eq3(21,x0,(t.editDetailsForm.get("discount").dirty||t.editDetailsForm.get("discount").touched)&&t.editDetailsForm.get("discount").errors)),e.R7$(4),e.Y8G("ngIf",t.editDetailsForm.get("discount").invalid&&(t.editDetailsForm.get("discount").dirty||t.editDetailsForm.get("discount").touched)),e.R7$(5),e.Y8G("min",t.currentDate),e.R7$(4),e.Y8G("min",t.currentDate),e.R7$(5),e.Y8G("ngClass",e.eq3(23,x0,(t.editDetailsForm.get("minimum_bill_value").dirty||t.editDetailsForm.get("minimum_bill_value").touched)&&t.editDetailsForm.get("minimum_bill_value").errors)),e.R7$(),e.Y8G("ngIf",t.editDetailsForm.get("minimum_bill_value").invalid&&(t.editDetailsForm.get("minimum_bill_value").dirty||t.editDetailsForm.get("minimum_bill_value").touched)),e.R7$(4),e.Y8G("ngClass",e.eq3(25,x0,(t.editDetailsForm.get("maximum_bill_value").dirty||t.editDetailsForm.get("maximum_bill_value").touched)&&t.editDetailsForm.get("maximum_bill_value").errors)),e.R7$(),e.Y8G("ngIf",t.editDetailsForm.get("maximum_bill_value").invalid&&(t.editDetailsForm.get("maximum_bill_value").dirty||t.editDetailsForm.get("maximum_bill_value").touched)),e.R7$(5),e.Y8G("ngClass",e.eq3(27,x0,(t.editDetailsForm.get("maximum_discount_applicable").dirty||t.editDetailsForm.get("maximum_discount_applicable").touched)&&t.editDetailsForm.get("maximum_discount_applicable").errors)),e.R7$(),e.Y8G("ngIf",t.editDetailsForm.get("maximum_discount_applicable").invalid&&(t.editDetailsForm.get("maximum_discount_applicable").dirty||t.editDetailsForm.get("maximum_discount_applicable").touched)),e.R7$(2),e.Y8G("disabled",!t.editDetailsForm.valid||t.isUpdatingDetails),e.R7$(),e.SpI(" ",t.isUpdatingDetails?"Updating...":"Update Details","")}}function x6(n,a){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"div",4)(2,"div",84)(3,"div",4)(4,"div",85)(5,"div",86),e.nrm(6,"input",92),e.k0s()()()(),e.j41(7,"div",88)(8,"div",89)(9,"img",93),e.bIt("click",function(){const i=e.eBV(t).index,s=e.XpG(2);return e.Njj(s.removeItem(i))}),e.k0s()()()(),e.bVm()}if(2&n){const t=a.$implicit;e.R7$(6),e.Y8G("value",(null==t?null:t.item_name)||"Not Available")}}
1function b6(n,a){1&n&&(e.j41(0,"small",74),e.EFF(1," Bin number is required! "),e.k0s())}function y6(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,b6,2,0,"small",73),e.k0s()),2&n){let t;const r=e.XpG(2);e.R7$(),e.Y8G("ngIf",null==(t=r.editBinsForm.get("item_name"))||null==t.errors?null:t.errors.required)}}function C6(n,a){if(1&n){const t=e.RV6();e.j41(0,"nb-card",78)(1,"nb-card-header",36),e.EFF(2,"Edit Bin Numbers"),e.k0s(),e.j41(3,"nb-card-body",37)(4,"div",79)(5,"div",80)(6,"div",81),e.DNE(7,x6,10,1,"ng-container",82),e.j41(8,"form",83)(9,"div",4)(10,"div",84)(11,"div",4)(12,"div",85)(13,"div",86),e.nrm(14,"input",87),e.DNE(15,y6,2,1,"div",42),e.k0s()()()(),e.j41(16,"div",88)(17,"div",89)(18,"img",90),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.addItem())}),e.k0s()()()()()()()()(),e.j41(19,"nb-card-footer")(20,"button",91),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.updateBins())}),e.EFF(21),e.k0s(),e.j41(22,"button",72),e.bIt("click",function(){const i=e.eBV(t).dialogRef;return e.Njj(i.close())}),e.EFF(23,"Close"),e.k0s()()()}if(2&n){let t,r;const i=e.XpG();e.R7$(7),e.Y8G("ngForOf",i.itemsData),e.R7$(),e.Y8G("formGroup",i.editBinsForm),e.R7$(6),e.Y8G("ngClass",e.eq3(6,x0,((null==(t=i.editBinsForm.get("item_name"))?null:t.dirty)||(null==(t=i.editBinsForm.get("item_name"))?null:t.touched))&&(null==(t=i.editBinsForm.get("item_name"))?null:t.errors))),e.R7$(),e.Y8G("ngIf",(null==(r=i.editBinsForm.get("item_name"))?null:r.invalid)&&((null==(r=i.editBinsForm.get("item_name"))?null:r.dirty)||(null==(r=i.editBinsForm.get("item_name"))?null:r.touched))),e.R7$(5),e.Y8G("disabled",i.isUpdatingBins),e.R7$(),e.SpI(" ",i.isUpdatingBins?"Updating...":"Update Bins","")}}let k6=(()=>{class n{constructor(t,r,i,s,p,g,S){this.fb=t,this.dialogService=r,this.transactionService=i,this.discountService=s,this.toastr=p,this.router=g,this.route=S,this.discount=null,this.isLoading=!1,this.banks=[],this.apps=[],this.isLoadingBanks=!1,this.isLoadingApps=!1,this.itemsData=[],this.isUpdatingDetails=!1,this.isUpdatingBins=!1,this.initializeForms(),this.setCurrentDate()}ngOnInit(){this.route.params.subscribe(t=>{this.discountId=parseInt(t.id),this.discountId&&!isNaN(this.discountId)?(this.loadDiscountDetails(),this.loadBanks(),this.loadApps()):(this.toastr.showToast("danger","Error","Invalid discount ID"),this.goBack())})}initializeForms(){this.editDetailsForm=this.fb.group({discount_name:["",ie.k0.required],bank_name:["",ie.k0.required],payment_method:["",ie.k0.required],card_type:["",ie.k0.required],app_name:["",ie.k0.required],discount:["",ie.k0.required],start_date:["",ie.k0.required],end_date:["",ie.k0.required],minimum_bill_value:["",ie.k0.required],maximum_bill_value:["",ie.k0.required],maximum_discount_applicable:["",ie.k0.required]}),this.editBinsForm=this.fb.group({item_name:[""]})}setCurrentDate(){this.currentDate=(new Date).toISOString().split("T")[0]}loadDiscountDetails(){this.isLoading=!0,this.discountService.getDiscountById(this.discountId).then(t=>{t&&t.data?(this.discount=t.data,this.populateEditForms()):(this.toastr.showToast("danger","Error","Discount not found"),this.goBack()),this.isLoading=!1}).catch(t=>{console.error("Error loading discount details:",t),this.toastr.showToast("danger","Error","Failed to load discount details"),this.isLoading=!1,this.goBack()})}loadBanks(){this.isLoadingBanks=!0,this.discountService.getBanks().then(t=>{t&&t.data&&(this.banks=t.data),this.isLoadingBanks=!1}).catch(t=>{console.error("Error loading banks:",t),this.isLoadingBanks=!1})}loadApps(){this.isLoadingApps=!0,this.discountService.getApps().then(t=>{t&&t.data&&(this.apps=t.data),this.isLoadingApps=!1}).catch(t=>{console.error("Error loading apps:",t),this.isLoadingApps=!1})}populateEditForms(){this.discount&&(this.editDetailsForm.patchValue({discount_name:this.discount.discount_name,bank_name:this.discount.bank_db_id||"",payment_method:this.discount.payment_method,card_type:this.discount.card_type,app_name:this.discount.app_id||"",discount:this.discount.discount_percentage,start_date:this.discount.start_date?this.discount.start_date.split("T")[0]:"",end_date:this.discount.end_date?this.discount.end_date.split("T")[0]:"",minimum_bill_value:this.discount.min_bill_value,maximum_bill_value:this.discount.max_bill_value,maximum_discount_applicable:this.discount.max_discount_applicable}),this.itemsData=this.discount.bins?this.discount.bins.map(t=>({item_name:t})):[])}getStatusClass(t){switch(t?.toLowerCase()){case"live":return"badge-success";case"expired":return"badge-danger";case"upcoming":return"badge-warning";default:return"badge-secondary"}}openEditDetailsDialog(t){this.editDetails_model=this.dialogService.open(t,{closeOnBackdropClick:!1})}openEditBinsDialog(t){this.editBin_model=this.dialogService.open(t,{closeOnBackdropClick:!1})}
1updateDiscountDetails(){if(this.editDetailsForm.valid){this.isUpdatingDetails=!0;const t=this.editDetailsForm.value,r={discount_name:t.discount_name,bank_id:parseInt(t.bank_name),payment_method:t.payment_method,card_type:t.card_type,app_id:parseInt(t.app_name),discount_percentage:parseFloat(t.discount),start_date:t.start_date+"T00:00:00Z",end_date:t.end_date+"T23:59:59Z",min_bill_value:parseFloat(t.minimum_bill_value),max_bill_value:parseFloat(t.maximum_bill_value),max_discount_applicable:parseFloat(t.maximum_discount_applicable)};this.discountService.updateDiscount(this.discountId,r).then(i=>{if(i&&200===i.status)this.toastr.showToast("success","Success","Discount details updated successfully"),this.loadDiscountDetails(),this.editDetails_model.close();else{let s="Failed to update discount details";i&&i.non_field_errors&&i.non_field_errors.length>0?s=i.non_field_errors[0]:i&&i.message&&(s=i.message),this.toastr.showToast("danger","Error",s)}this.isUpdatingDetails=!1}).catch(i=>{console.error("Error updating discount details:",i);let s="Failed to update discount details";i&&i.error&&i.error.non_field_errors&&i.error.non_field_errors.length>0?s=i.error.non_field_errors[0]:i&&i.non_field_errors&&i.non_field_errors.length>0?s=i.non_field_errors[0]:i&&i.error&&i.error.message?s=i.error.message:i&&i.message&&(s=i.message),this.toastr.showToast("danger","Error",s),this.isUpdatingDetails=!1})}else this.toastr.showToast("warning","Warning","Please fill all required fields")}updateBins(){this.isUpdatingBins=!0;const t={bins:this.itemsData.map(r=>r.item_name)};this.discountService.updateDiscount(this.discountId,t).then(r=>{if(r&&200===r.status)this.toastr.showToast("success","Success","Bin numbers updated successfully"),this.loadDiscountDetails(),this.editBin_model.close();else{let i="Failed to update bin numbers";r&&r.non_field_errors&&r.non_field_errors.length>0?i=r.non_field_errors[0]:r&&r.message&&(i=r.message),this.toastr.showToast("danger","Error",i)}this.isUpdatingBins=!1}).catch(r=>{console.error("Error updating bin numbers:",r);let i="Failed to update bin numbers";r&&r.error&&r.error.non_field_errors&&r.error.non_field_errors.length>0?i=r.error.non_field_errors[0]:r&&r.non_field_errors&&r.non_field_errors.length>0?i=r.non_field_errors[0]:r&&r.error&&r.error.message?i=r.error.message:r&&r.message&&(i=r.message),this.toastr.showToast("danger","Error",i),this.isUpdatingBins=!1})}addItem(){const t=this.editBinsForm.get("item_name")?.value;t&&t.trim()&&(this.itemsData.some(i=>i.item_name===t.trim())?this.toastr.showToast("warning","Warning","Bin number already exists"):(this.itemsData.push({item_name:t.trim()}),this.editBinsForm.get("item_name")?.setValue("")))}removeItem(t){this.itemsData.splice(t,1)}goBack(){this.router.navigate(["/pages/discounts"])}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(ie.ok),e.rXU(E.S0W),e.rXU(Mt.kK),e.rXU(Mt.f3),e.rXU(Dt.V4),e.rXU(qe.Ix),e.rXU(qe.nX))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-discounts-view"]],decls:21,vars:4,consts:[["dialogEditDetails",""],["dialogEditBins",""],[1,"body-style","ipg-transaction-root"],[1,"container"],[1,"row"],[1,"col"],[1,"row","align-items-center"],[1,"col-12","align-items-center"],[1,"d-flex","align-items-center"],[1,"head_left",2,"cursor","pointer","margin-right","10px",3,"click"],[1,"back-arrow"],["src","../../../assets/images/right_a.png",1,"right_a"],["class","transaction_id",4,"ngIf"],[1,"hr_"],["class","row",4,"ngIf"],[1,"transaction_id"],[1,"col-12","d-flex","justify-content-center","align-items-center",2,"height","20rem"],["role","status",1,"spinner-border","text-primary"],[1,"visually-hidden"],[1,"col-9"],[1,"hedline","mt-1"],[2,"cursor","pointer",3,"click"],["src","../../../assets/images/pencil2.png",1,"ml-2","pencil_table"],[1,"hr_2"],[1,"row","mt-2"],[1,"col-6"],[1,"lable_"],[1,"lable_data"],[1,"badge",3,"ngClass"],[1,"col-3"],["class","row mt-2",4,"ngFor","ngForOf"],["class","row mt-2",4,"ngIf"],[1,"col-12"],[1,"lable_data","text-muted"],[1,"step-container",3,"ngSubmit","formGroup"],[2,"width","65vw"],[2,"font-family","'Poppins'"],[1,"dialog-border",2,"font-family","'Poppins'"],[1,"modal-body",2,"max-height","65vh"],[1,"col-6","d-flex","flex-column","justify-content-start","mb-3"],["for","edit_discount_name",1,"col","px-0","mb-1"],["
1id","edit_discount_name","type","text","placeholder","Enter discount name","formControlName","discount_name","name","discount_name",1,"col","form-control",3,"ngClass"],[4,"ngIf"],[1,"col-6","d-flex","flex-column","justify-content-start","align-items-center","mb-3"],[1,"col","px-0","mb-1"],["fullWidth","","placeholder","Select bank name","formControlName","bank_name","name","bank_name",1,"col","select_filter"],["disabled","","value",""],[3,"value",4,"ngFor","ngForOf"],["class","text-center mt-1",4,"ngIf"],["fullWidth","","placeholder","Select payment method","formControlName","payment_method","name","payment_method",1,"col","select_filter"],["value","VISA"],["value","MASTERCARD"],["fullWidth","","placeholder","Select card type","formControlName","card_type","name","card_type",1,"col","select_filter"],["value","DEBIT"],["value","CREDIT"],["fullWidth","","placeholder","Select app name","formControlName","app_name","name","app_name",1,"col","select_filter"],["for","edit_discount",1,"col","px-0","mb-1"],[1,"input-group"],["id","edit_discount","type","number","min","0","max","100","placeholder","Enter discount rate","formControlName","discount","name","discount",1,"form-control",3,"ngClass"],[1,"input-group-append"],[1,"input-group-text",2,"background-color","#f8f9fa","border-left","0"],["for","edit_start_date",1,"col","px-0","mb-1"],["id","edit_start_date","formControlName","start_date","placeholder","Select start date","type","date","name","start_date",1,"form-control",3,"min"],["for","edit_end_date",1,"col","px-0","mb-1"],["id","edit_end_date","formControlName","end_date","placeholder","Select end date","type","date","name","end_date",1,"form-control",3,"min"],["for","edit_minimum_bill_value",1,"col","px-0","mb-1"],["id","edit_minimum_bill_value","type","number","placeholder","Enter minimum bill value","formControlName","minimum_bill_value","name","minimum_bill_value",1,"col","form-control",3,"ngClass"],["for","edit_maximum_bill_value",1,"col","px-0","mb-1"],["id","edit_maximum_bill_value","type","number","placeholder","Enter maximum bill value","formControlName","maximum_bill_value","name","maximum_bill_value",1,"col","form-control",3,"ngClass"],["for","edit_maximum_discount_applicable",1,"col","px-0","mb-1"],["id","edit_maximum_discount_applicable","type","number","placeholder","Enter maximum discount applicable","formControlName","maximum_discount_applicable","name","maximum_discount_applicable",1,"col","form-control",3,"ngClass"],["type","submit","status","success","size","small","nbSpinnerStatus","success","nbSpinnerSize","tiny","nbButton","",1,"col-md-2","create-green-btn",2,"float","right",3,"disabled"],["type","button","status","info","size","small","nbButton","",1,"col-md-2",2,"float","right","background-color","white","border","1px solid #667185","margin-right","10px","color","#667185","font-weight","600",3,"click"],["class","text-danger",4,"ngIf"],[1,"text-danger"],[3,"value"],[1,"text-center","mt-1"],[1,"text-muted"],[2,"width","55vw"],[1,"modal-body"],[1,"modal-body",2,"max-height","60vh"],[1,""],[4,"ngFor","ngForOf"],[3,"formGroup"],[1,"colNew-1"],[1,"col-md-12"],[1,"form-group"],["placeholder","Enter bin number","formControlName","item_name","type","text","id","edit_item_name",1,"form-control",3,"ngClass"],[1,"colNew-2","d-flex","align-items-center","justify-content-center"],[1,"icon_border","d-flex","align-items-center","justify-content-center",2,"margin-top","-17px"],["src","../../../assets/images/plus1.png",1,"plus_table",3,"click"],["status","success","size","small","nbSpinnerStatus","success","nbSpinnerSize","tiny","nbButton","",1,"col-md-2","create-green-btn",2,"float","right",3,"click","disabled"],["type","text","disabled","",1,"form-control",3,"value"],["src","../../../assets/images/icon.png",1,"delete_table",3,"click"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"nb-card")(5,"nb-card-body")(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9),e.bIt("click",function(){return e.eBV(s),e.Njj(i.goBack())}),e.j41(10,"span",10),e.nrm(11,"img",11),e.k0s()(),e.DNE(12,ZE,2,4,"span",12)(13,QE,2,0,"span",12),e.k0s()()(),e.nrm(14,"hr",13),e.DNE(15,e6,5,0,"div",14)(16,i6,102,37,"div",14),e.k0s()()()()()(),e.DNE(17,v6,90,29,"ng-template",null,0,e.C5r)(19,C6,24,8,"ng-template",null,1,e.C5r)}2&r&&(e.R7$(12),e.Y8G("ngIf",i.discount),e.R7$(),e.Y8G("ngIf",!i.discount&&!i.isLoading),e.R7$(2),e.Y8G("ngIf",i.isLoading),e.R7$(),e.Y8G("ngIf",!i.isLoading&&i.discount))},dependencies:[Fe.YU,Fe.Sq,Fe.bT,ie.qT,ie.xH,ie.y7,ie.me,ie.Q0,ie.wz,ie.BC,ie.cb,ie.VZ,ie.zX,ie.j4,ie.JD,E.SrT,E.KH5,E.VDm,E.zJv,E.YP2,Fe.QX,Fe.PV,Fe.vh],styles:[".right_a[_ngcontent-%COMP%]{height:18px;width:auto}.back-arrow[_ngcontent-%COMP%]{cursor:pointer}.transaction_id[_ngcontent-%COMP%]{font-size:22px;font-weight:500;line-height:32px}.hr_[_ngcontent-%COMP%]{border:1px solid #BCBCBC;margin-top:5px!important;margin-bottom:5px!important}.hr_2[_ngcontent-%COMP%]{border:1px solid #BCBCBC;margin-top:0!important;margin-bottom:0!important}.transaction_id_des[_ngcontent-%COMP%]{font-size:14px;font-weight:500;line-height:19px;color:#667185}.transaction_id2[_ngcontent-%COMP%]{font-size:28px;font-weight:700;color:#000}.hedline[_ngcontent-%COMP%]{font-size:18px;font-weight:500;color:#1e1e1e;margin-top:-20px}.sub_head[_ngcontent-%COMP%]{font-size:13px;color:#838383;font-weight:500}.sub_head_data[_ngcontent-%COMP%]{font-size:13px;color:#1e1e1e;font-weight:500}.line_space[_ngcontent-%COMP%]{margin-bottom:10px}.table[_ngcontent-%COMP%] .thead-light[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#1e1e1e!important;background-color:transparent!important;border-color:#dee2e6!important;border-bottom:1px solid rgba(188,188,188,.5019607843)!important;font-size:12px!important;font-weight:400!important;border-top:0!important;padding-top:5px!important;padding-bottom:5px!important;padding-left:0!important}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:12px;font-weight:400;border-bottom:1px solid rgba(188,188,188,.5019607843)!important;padding-top:5px!important;padding-bottom:5px!important;padding-left:0!important;color:#838383!important}.lable_[_ngcontent-%COMP%]{color:#1e1e1e;font-size:12px;font-weight:600}.lable_data[_ngcontent-%COMP%]{color:#838383;font-size:12px;font-weight:400}._bage[_ngcontent-%COMP%]{padding:2px 4px;border-radius:2px;margin-left:5px;font-size:8px}.success[_ngcontent-%COMP%]{border:.4px solid #34C759;background-color:#ebfff0;color:#34c759}.cancel[_ngcontent-%COMP%]{border:.4px solid #838383;background-color:#eee;color:#838383}.default[_ngcontent-%COMP%]{border:.4px solid #30B0C7;background-color:#ebfeff;color:#30b0c7}.card_details[_ngcontent-%COMP%]{width:100%;height:30px;background-color:#bcbcbc33;border:none;padding:5px;font-size:12px}.cus_img[_ngcontent-%COMP%]{height:15px;width:auto}.badge[_ngcontent-%COMP%]{padding:4px 8px;border-radius:4px;font-size:11px;font-weight:500;text-transform:uppercase}.badge-success[_ngcontent-%COMP%]{background-color:#d4edda;color:#155724;border:1px solid #c3e6cb}.badge-danger[_ngcontent-%COMP%]{background-color:#f8d7da;color:#721c24;border:1px solid #f5c6cb}.badge-warning[_ngcontent-%COMP%]{background-color:#fff3cd;color:#856404;border:1px solid #ffeaa7}.badge-secondary[_ngcontent-%COMP%]{background-color:#e2e3e5;color:#6c757d;border:1px solid #d6d8db}.pencil_table[_ngcontent-%COMP%]{width:12px;height:12px;color:#000!important;margin-right:5px;cursor:pointer}.select_filter[_ngcontent-%COMP%]{background-color:#f7f9fc;border-color:#e4e9f2;color:#222b45;line-height:1.5rem;padding:.4375rem 1rem;font-size:15px!important;font-weight:400!important;border-radius:.25rem}
1.create-green-btn[_ngcontent-%COMP%]{background:#004d14!important;color:#fff!important}.pencil[_ngcontent-%COMP%]{width:12px;height:12px;color:red}.pencil_table[_ngcontent-%COMP%]{width:12px;height:12px;color:#000!important;margin-right:5px}.delete_table[_ngcontent-%COMP%]{width:auto;height:32px;cursor:pointer}.icon_border[_ngcontent-%COMP%]{width:36px;height:36px;border:1px solid #ccc;border-radius:6px;display:flex;align-items:center;justify-content:center}.delete_table[_ngcontent-%COMP%]{width:14px;height:20px;cursor:pointer}.plus_table[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.colNew-1[_ngcontent-%COMP%]{width:90%}.colNew-2[_ngcontent-%COMP%]{width:10%}"]})}return n})(),b0=(()=>{class n{constructor(t){this.commonService=t}saveTemplate(t){return this.commonService.postSubscriptionLink("subscription-link/template/",t)}getAllSubLink(){return this.commonService.getSubscriptionLink("subscription-link/template/")}SearchsubLink(t){return this.commonService.getSubscriptionLink(t?"subscription-link/template/?search="+t:"subscription-link/template/")}updateTemplateStatus(t,r){return this.commonService.putSubscriptionLink(`subscription-link/template/${t}/`,{status:r})}getAllCustomerData(t){return this.commonService.getSubscriptionLink("subscription-link/customer/?template_id="+t)}getCustomerDataById(t){return this.commonService.getSubscriptionLink(`subscription-link/customer/${t}/`)}getAllDataDashbord(){return this.commonService.getSubscriptionLink("subscription-link/statistics/")}
1static#e=this.\u0275fac=function(r){return new(r||n)(e.KVO(gx.h))};static#t=this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),bx=(()=>{class n{refreshLinks(){console.log("refreshLinks() called in DashboardSubscriptionLinksComponent")}constructor(t,r){this.subscriptionLinkService=t,this.toastr=r,this.is_loading_1=!1,this.allSubLinkData=[]}ngOnInit(){this.getUpdateInvoiceData()}getUpdateInvoiceData(){this.is_loading_1=!0,this.subscriptionLinkService.getAllDataDashbord().then(t=>{200==t.status?(this.is_loading_1=!1,t.data?(this.allSubLinkData=t?.data,console.log(t.data,"333333allSubLinkData3333333333333")):this.toastr.showToast("danger","Error!","Internal Server Error.")):(this.is_loading_1=!1,this.toastr.showToast("danger","Error!","Internal Server Error."))})}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(b0),e.rXU(Dt.V4))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-dashboard-subscription-links"]],decls:131,vars:0,consts:[[1,"container-fluid","mt-3"],[1,"d-flex","justify-content-between","flex-wrap"],[1,"ipg-dashbord-right",2,"flex","0 0 19%"],[1,"dashboard-card"],[1,"d-flex","justify-content-between","align-items-center"],[1,"card-title"],[1,"card-value"],[1,"card-change","text-success"],[1,"power_image"],["src","../../../../assets/subscription/icon.png","alt","Icon",1,"power_icon"],[1,"than"],[1,"card-icon","mrr1"],["src","../../../../assets/subscription/mrr1.png","alt","Icon",1,"icon_dashbord"],[1,"card-icon","upcoming"],["src","../../../../assets/subscription/upcoming.png","alt","Icon",1,"icon_dashbord"],[1,"card-icon","churn"],["src","../../../../assets/subscription/churn.png","alt","Icon",1,"icon_dashbord"],[1,"card-icon","outstanding"],["src","../../../../assets/subscription/outstanding.png","alt","Icon",1,"icon_dashbord"],[1,"card-change","text-fail"],[1,"card-icon","failed"],["src","../../../../assets/subscription/failed.png","alt","Icon",1,"icon_dashbord"],[1,"d-flex","justify-content-between","flex-wrap","mt-3"],[1,"ipg-dashbord-right",2,"flex","0 0 32.5%"],[1,"card-icon","all"],["src","../../../../assets/subscription/all.png","alt","Icon",1,"icon_dashbord"],[1,"card-icon","active"],["src","../../../../assets/subscription/active.png","alt","Icon",1,"icon_dashbord"],[1,"card-icon","new"],["src","../../../../assets/subscription/new.png","alt","Icon",1,"icon_dashbord"]],template:function(r,i){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div")(6,"div",5),e.EFF(7,"Monthly Recurring Revenue (MRR)"),e.k0s(),e.j41(8,"div",6),e.EFF(9,"92,000 LKR"),e.k0s(),e.j41(10,"div",7)(11,"span",8),e.nrm(12,"img",9),e.EFF(13," 5% "),e.k0s(),e.j41(14,"span",10),e.EFF(15,"than yesterday"),e.k0s()()(),e.j41(16,"div",11),e.nrm(17,"img",12),e.k0s()()()(),e.j41(18,"div",2)(19,"div",3)(20,"div",4)(21,"div")(22,"div",5),e.EFF(23,"Upcoming Renewals"),e.k0s(),e.j41(24,"div",6),e.EFF(25,"40"),e.k0s(),e.j41(26,"div",7)(27,"span",8),e.nrm(28,"img",9),e.EFF(29," 5% "),e.k0s(),e.j41(30,"span",10),e.EFF(31,"than yesterday"),e.k0s()()(),e.j41(32,"div",13),e.nrm(33,"img",14),e.k0s()()()(),e.j41(34,"div",2)(35,"div",3)(36,"div",4)(37,"div")(38,"div",5),e.EFF(39,"Churn Rate"),e.k0s(),e.j41(40,"div",6),e.EFF(41,"20"),e.k0s(),e.j41(42,"div",7)(43,"span",8),e.nrm(44,"img",9),e.EFF(45," 5% "),e.k0s(),e.j41(46,"span",10),e.EFF(47,"than yesterday"),e.k0s()()(),e.j41(48,"div",15),e.nrm(49,"img",16),e.k0s()()()(),e.j41(50,"div",2)(51,"div",3)(52,"div",4)(53,"div")(54,"div",5),e.EFF(55,"Outstanding Payments"),e.k0s(),e.j41(56,"div",6),e.EFF(57,"8"),e.k0s(),e.j41(58,"div",7)(59,"span",8),e.nrm(60,"img",9),e.EFF(61," 5% "),e.k0s(),e.j41(62,"span",10),e.EFF(63,"than yesterday"),e.k0s()()(),e.j41(64,"div",17),e.nrm(65,"img",18),e.k0s()()()(),e.j41(66,"div",2)(67,"div",3)(68,"div",4)(69,"div")(70,"div",5),e.EFF(71,"Failed Payments"),e.k0s(),e.j41(72,"div",6),e.EFF(73,"8"),e.k0s(),e.j41(74,"div",19)(75,"span",8),e.nrm(76,"img",9),e.EFF(77," 5% "),e.k0s(),e.j41(78,"span",10),e.EFF(79,"than yesterday"),e.k0s()()(),e.j41(80,"div",20),e.nrm(81,"img",21),e.k0s()()()()(),e.j41(82,"div",22)(83,"div",23)(84,"div",3)(85,"div",4)(86,"div")(87,"div",5),e.EFF(88,"All Subscribers"),e.k0s(),e.j41(89,"div",6),e.EFF(90,"250"),e.k0s(),e.j41(91,"div",7)(92,"span",8),e.nrm(93,"img",9),e.EFF(94," 5% "),e.k0s(),e.j41(95,"span",10),e.EFF(96,"than yesterday"),e.k0s()()(),e.j41(97,"div",24),e.nrm(98,"img",25),e.k0s()()()(),e.j41(99,"div",23)(100,"div",3)(101,"div",4)(102,"div")(103,"div",5),e.EFF(104,"Active Subscribers"),e.k0s(),e.j41(105,"div",6),e.EFF(106,"230"),e.k0s(),e.j41(107,"div",7)(108,"span",8),e.nrm(109,"img",9),e.EFF(110," 5% "),e.k0s(),e.j41(111,"span",10),e.EFF(112,"than yesterday"),e.k0s()()(),e.j41(113,"div",26),e.nrm(114,"img",27),e.k0s()()()(),e.j41(115,"div",23)(116,"div",3)(117,"div",4)(118,"div")(119,"div",5),e.EFF(120,"New Signups"),e.k0s(),e.j41(121,"div",6),e.EFF(122,"230"),e.k0s(),e.j41(123,"div",7)(124,"span",8),e.nrm(125,"img",9),e.EFF(126," 5% "),e.k0s(),e.j41(127,"span",10),e.EFF(128,"than yesterday"),e.k0s()()(),e.j41(129,"div",28),e.nrm(130,"img",29),e.k0s()()()()()())},styles:[".ipg-dashbord-right[_ngcontent-%COMP%]{padding-right:0!important}.menu_itam[_ngcontent-%COMP%]{width:100%;height:48px;padding:10px 1px;border-radius:6px;background:#f4f4f4;cursor:pointer;display:flex;align-items:center;justify-content:center}.container-fluid[_ngcontent-%COMP%]{width:100%;padding-right:0;padding-left:0;margin-right:auto;margin-left:auto}.dashboard-card[_ngcontent-%COMP%]{background:#fff;border:1px solid #e0e0e0;border-radius:12px;padding:20px;box-shadow:0 2px 4px #0000000d;width:100%;min-height:131px}.card-title[_ngcontent-%COMP%]{font-size:10px;color:#475367;line-height:12px}.than[_ngcontent-%COMP%]{line-height:12px}.card-change[_ngcontent-%COMP%]{font-size:10px;margin-top:10px;display:flex;align-items:center;gap:5px;color:#10b981}.card-change[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{background:#dcfce7;padding:4px;border-radius:5px}.card-value[_ngcontent-%COMP%]{font-size:14px;font-weight:700;color:#344054;margin-top:5px;
1display:flex;align-items:center;gap:10px}.card-icon[_ngcontent-%COMP%]{color:#059669;border-radius:50%;width:25px;height:25px;display:flex;align-items:center;justify-content:center;font-size:10px;flex-shrink:0}.icon_dashbord[_ngcontent-%COMP%]{width:12px;height:12px}.card-change[_ngcontent-%COMP%] .power_image[_ngcontent-%COMP%]{background:#e7f6ec;padding:0 2px;border-radius:5px}.power_image[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px}.power_icon[_ngcontent-%COMP%]{width:auto;height:12px;object-fit:contain}.text_sucess[_ngcontent-%COMP%]{color:#04802e}.mrr1[_ngcontent-%COMP%]{background-color:#d1fae5}.upcoming[_ngcontent-%COMP%]{background-color:#2196f333}.churn[_ngcontent-%COMP%]{background-color:#ff980033}.failed[_ngcontent-%COMP%]{background-color:#f4433633}.outstanding[_ngcontent-%COMP%]{background-color:#ffc10733}.new[_ngcontent-%COMP%], .active[_ngcontent-%COMP%], .all[_ngcontent-%COMP%]{background-color:#d8ffe2}.text-fail[_ngcontent-%COMP%]{color:#f44336}"]})}return n})();const w6=["childRef"],F6=()=>["/pages/subscriptionlink-create"],A6=n=>({"disabled-text2":n}),T6=n=>["/pages/subscription-view",n],lv=n=>({"disabled-text":n}),S6=n=>({"form-control-danger":n}),M4=(n,a,t)=>({"background-color":n,"font-family":a,border:t}),E6=n=>({"background-color":n});function P6(n,a){if(1&n&&(e.qex(0),e.EFF(1),e.bVm()),2&n){const t=e.XpG().$implicit;e.R7$(),e.Lme(" ",t.currency," ",t.amount," ")}}function M6(n,a){1&n&&e.EFF(0,"Not Available")}function O6(n,a){1&n&&(e.j41(0,"span",42),e.EFF(1,"Active"),e.k0s())}function D6(n,a){1&n&&(e.j41(0,"span",43),e.EFF(1,"Paused"),e.k0s())}function I6(n,a){1&n&&(e.j41(0,"span",44),e.EFF(1,"Cancelled"),e.k0s())}function j6(n,a){1&n&&(e.j41(0,"span",45),e.EFF(1,"Inactive"),e.k0s())}function R6(n,a){1&n&&(e.j41(0,"span",46),e.EFF(1,"Trialing"),e.k0s())}function L6(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",47)(1,"button",48)(2,"span"),e.nrm(3,"nb-icon",49),e.k0s(),e.j41(4,"span",50),e.EFF(5,"View "),e.k0s()(),e.j41(6,"button",51)(7,"span"),e.nrm(8,"img",52),e.k0s(),e.j41(9,"span",50)(10,"span",53),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,s=e.XpG(2);return e.Njj(s.copyText(null==i?null:i.url))})("mouseout",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.resetTooltip())}),e.EFF(11," Copy invoice link "),e.k0s()()(),e.j41(12,"button",54),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,s=e.XpG(2),p=e.sdS(49);return e.Njj(s.openGenerateCode(p,i.url))}),e.j41(13,"span"),e.nrm(14,"img",55),e.k0s(),e.j41(15,"span",50),e.EFF(16,"Dev Config "),e.k0s()(),e.j41(17,"button",56),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,s=e.XpG(2),p=e.sdS(55);return e.Njj(s.openPause(p,i.template_id))}),e.j41(18,"span"),e.nrm(19,"img",57),e.k0s(),e.j41(20,"span",50),e.EFF(21,"Pause "),e.k0s()(),e.j41(22,"button",56),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,s=e.XpG(2),p=e.sdS(53);return e.Njj(s.openInactive(p,i.template_id))}),e.j41(23,"span"),e.nrm(24,"img",58),e.k0s(),e.j41(25,"span",50),e.EFF(26,"Inactive "),e.k0s()(),e.j41(27,"button",56),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,s=e.XpG(2),p=e.sdS(57);return e.Njj(s.openActive(p,i.template_id))}),e.j41(28,"span"),e.nrm(29,"img",58),e.k0s(),e.j41(30,"span",50),e.EFF(31,"Active "),e.k0s()(),e.j41(32,"button",56),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,s=e.XpG(2),p=e.sdS(51);return e.Njj(s.openDelete(p,i.template_id))}),e.j41(33,"span"),e.nrm(34,"img",59),e.k0s(),e.j41(35,"span",50),e.EFF(36,"Cancel "),e.k0s()()()}if(2&n){const t=e.XpG().$implicit,r=e.XpG(2);e.R7$(),e.Y8G("routerLink",e.eq3(10,T6,t.template_id)),e.R7$(9),e.Y8G("title",r.tooltipText),e.R7$(7),e.Y8G("ngClass",e.eq3(12,lv,"cancelled"===(null==t?null:t.status)||"paused"===(null==t?null:t.status)))("disabled","cancelled"===(null==t?null:t.status)),e.R7$(5),e.Y8G("ngClass",e.eq3(14,lv,"cancelled"===(null==t?null:t.status)||"inactive"===(null==t?null:t.status)))("disabled","cancelled"===(null==t?null:t.status)||"inactive"===(null==t?null:t.status)),e.R7$(5),e.Y8G("ngClass",e.eq3(16,lv,"cancelled"===(null==t?null:t.status)||"active"===(null==t?null:t.status)))("disabled","cancelled"===(null==t?null:t.status)||"active"===(null==t?null:t.status)),e.R7$(5),e.Y8G("ngClass",e.eq3(18,lv,"cancelled"===(null==t?null:t.status)))("disabled","cancelled"===(null==t?null:t.status))}}function N6(n,a){if(1&n&&(e.j41(0,"tr")(1,"td",31),e.EFF(2),e.k0s(),e.j41(3,"td"),e.EFF(4),e.k0s(),e.j41(5,"td"),e.DNE(6,P6,2,2,"ng-container",32)(7,M6,1,0,"ng-template",null,6,e.C5r),e.k0s(),e.j41(9,"td"),e.EFF(10),e.k0s(),e.j41(11,"td"),e.EFF(12),e.k0s(),e.j41(13,"td"),e.EFF(14),e.k0s(),e.j41(15,"td"),e.DNE(16,O6,2,0,"span",33)(17,D6,2,0,"span",34)(18,I6,2,0,"span",35)(19,j6,2,0,"span",36)(20,R6,2,0,"span",37),e.k0s(),e.j41(21,"td",38)(22,"div",39),e.nrm(23,"img",40),e.DNE(24,L6,37,20,"div",41),e.k0s()()()),2&n){const t=a.$implicit,r=e.sdS(8);e.R7$(2),e.JRh(null==t?null:t.plan_name),e.R7$(2),e.JRh((null==t?null:t.plan_type)||"Not Available"),e.R7$(2),e.Y8G("ngIf",(null==t?null:t.currency)&&(null==t?null:t.amount))("ngIfElse",r),e.R7$(4),e.JRh((null==t?null:t.interval)||"Not Available"),e.R7$(2),e.JRh((null==t?null:t.end_of_term)||"Not Available"),e.R7$(2),e.JRh(null!=(null==t?null:t.subscribes_count)?t.subscribes_count:"Not Available"),e.R7$(2),e.Y8G("ngIf","active"===(null==t?null:t.status)),e.R7$(),e.Y8G("ngIf","paused"===(null==t?null:t.status)),e.R7$(),e.Y8G("ngIf","cancelled"===(null==t?null:t.status)),e.R7$(),e.Y8G("ngIf","inactive"===(null==t?null:t.status)),e.R7$(),e.Y8G("ngIf","trialing"===(null==t?null:t.status)),e.R7$(2),e.Y8G("ngClass",e.eq3(14,A6,"cancelled"===(null==t?null:t.status))),e.R7$(2),e.Y8G("ngIf","cancelled"!==(null==t?null:t.status))}}function B6(n,a){if(1&n&&(e.j41(0,"tbody"),e.DNE(1,N6,25,16,"tr",30),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.allSubLinkData)}}
1function G6(n,a){1&n&&(e.j41(0,"div",60)(1,"div",61)(2,"span",62),e.EFF(3,"Loading..."),e.k0s()()())}function V6(n,a){1&n&&(e.j41(0,"div",63)(1,"h6"),e.EFF(2,"No data available!"),e.k0s()())}function z6(n,a){1&n&&(e.j41(0,"small",108),e.EFF(1," Button text "),e.k0s())}function U6(n,a){1&n&&(e.j41(0,"span",114),e.EFF(1,"Copied!"),e.k0s())}function Y6(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",109)(1,"div",110)(2,"img",111),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.copy(i.htmlCode,"html"))}),e.k0s(),e.DNE(3,U6,2,0,"span",112),e.k0s(),e.nrm(4,"pre",113),e.k0s()}if(2&n){const t=e.XpG(3);e.R7$(3),e.Y8G("ngIf",t.showCopiedHtml),e.R7$(),e.Y8G("innerHTML",t.formatForHtml(t.generatedPayButtonHtml),e.npT)}}function W6(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",75)(2,"form",76),e.bIt("ngSubmit",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.onSubmitPayButton())}),e.j41(3,"div",77)(4,"div",78)(5,"div",79)(6,"div",17)(7,"div",80)(8,"label",81),e.EFF(9,"Button text change"),e.k0s(),e.nrm(10,"input",82),e.j41(11,"div"),e.DNE(12,z6,2,0,"small",83),e.k0s()()(),e.nrm(13,"hr"),e.j41(14,"div",17)(15,"div",84)(16,"label",85),e.EFF(17,"Button text change"),e.k0s()(),e.j41(18,"div",86)(19,"label",87),e.EFF(20,"Button Color"),e.k0s(),e.j41(21,"div",88),e.nrm(22,"input",89),e.j41(23,"span",90),e.EFF(24),e.k0s()()(),e.j41(25,"div",86)(26,"label",87),e.EFF(27,"Font"),e.k0s(),e.j41(28,"select",91)(29,"option",92),e.EFF(30,"Arial"),e.k0s(),e.j41(31,"option",93),e.EFF(32,"SF Pro"),e.k0s(),e.j41(33,"option",94),e.EFF(34,"Roboto"),e.k0s(),e.j41(35,"option",95),e.EFF(36,"Poppins"),e.k0s()()(),e.j41(37,"div",86)(38,"label",87),e.EFF(39,"Border"),e.k0s(),e.j41(40,"select",96)(41,"option",97),e.EFF(42,"None"),e.k0s(),e.j41(43,"option",98),e.EFF(44,"Default"),e.k0s(),e.j41(45,"option",99),e.EFF(46,"Dashed"),e.k0s()()()()()(),e.j41(47,"div",100)(48,"div",79)(49,"label",101),e.EFF(50,"Preview"),e.k0s(),e.j41(51,"button",102),e.EFF(52),e.k0s()()()(),e.j41(53,"div",17)(54,"div",84)(55,"div",103)(56,"button",104),e.EFF(57,"Generate Code"),e.k0s()()()()(),e.j41(58,"p",105),e.EFF(59,"Copy code to your site"),e.k0s(),e.j41(60,"div",106)(61,"div",84)(62,"div",79),e.DNE(63,Y6,5,2,"div",107),e.k0s()()()()()}if(2&n){let t;const r=e.XpG(2);e.R7$(2),e.Y8G("formGroup",r.customizerForm),e.R7$(8),e.Y8G("ngClass",e.eq3(7,S6,(r.customizerForm.get("buttonText").dirty||r.customizerForm.get("buttonText").touched)&&r.customizerForm.get("buttonText").errors)),e.R7$(2),e.Y8G("ngIf",r.customizerForm.get("buttonText").invalid&&(r.customizerForm.get("buttonText").dirty||r.customizerForm.get("buttonText").touched)),e.R7$(12),e.SpI(" ",null==(t=r.customizerForm.get("buttonColor"))?null:t.value," "),e.R7$(27),e.Y8G("ngStyle",e.sMw(9,M4,r.customizerForm.value.buttonColor,r.customizerForm.value.buttonFont,r.customizerForm.value.buttonBorder)),e.R7$(),e.SpI(" ",r.customizerForm.value.buttonText," "),e.R7$(11),e.Y8G("ngIf",r.generatedPayButtonHtml)}}function $6(n,a){1&n&&(e.j41(0,"div",138),e.EFF(1," Button text is required. "),e.k0s())}function q6(n,a){1&n&&(e.j41(0,"div")(1,"label",139),e.EFF(2,"Supported payment methods"),e.k0s(),e.j41(3,"div",140),e.nrm(4,"img",141)(5,"img",142)(6,"img",143),e.k0s()())}function X6(n,a){1&n&&(e.j41(0,"span",114),e.EFF(1,"Copied!"),e.k0s())}function H6(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",109)(1,"div",110)(2,"img",111),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.copy(i.htmlCode,"html"))}),e.k0s(),e.DNE(3,X6,2,0,"span",112),e.k0s(),e.nrm(4,"pre",113),e.k0s()}if(2&n){const t=e.XpG(3);e.R7$(3),e.Y8G("ngIf",t.showCopiedHtml),e.R7$(),e.Y8G("innerHTML",t.formatForHtml(t.htmlCode),e.npT)}}function K6(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",75)(2,"form",76),e.bIt("ngSubmit",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.onSubmit())}),e.j41(3,"div",77)(4,"div",115)(5,"div",116)(6,"label",117),e.EFF(7,"Button text change"),e.k0s(),e.nrm(8,"input",118),e.DNE(9,$6,2,0,"div",119),e.nrm(10,"hr"),e.j41(11,"div",120)(12,"label",101),e.EFF(13,"Show payment methods"),e.k0s(),e.j41(14,"label",121),e.nrm(15,"input",122)(16,"span",123),e.k0s()(),e.j41(17,"label",124),e.EFF(18,"Button style change"),e.k0s(),e.j41(19,"div",17)(20,"div",125)(21,"label",87),e.EFF(22,"Button Color"),e.k0s(),e.j41(23,"div",126),e.nrm(24,"input",127),e.j41(25,"span",128),e.EFF(26),e.k0s()()(),e.j41(27,"div",125)(28,"label",87),e.EFF(29,"Backgroun
1d Color"),e.k0s(),e.j41(30,"div",126),e.nrm(31,"input",129),e.j41(32,"span",128),e.EFF(33),e.k0s()()(),e.j41(34,"div",125)(35,"label",87),e.EFF(36,"Font"),e.k0s(),e.j41(37,"select",91)(38,"option",92),e.EFF(39,"Arial"),e.k0s(),e.j41(40,"option",93),e.EFF(41,"SF Pro"),e.k0s(),e.j41(42,"option",94),e.EFF(43,"Roboto"),e.k0s(),e.j41(44,"option",95),e.EFF(45,"Poppins"),e.k0s()()(),e.j41(46,"div",125)(47,"label",87),e.EFF(48,"Border"),e.k0s(),e.j41(49,"select",96)(50,"option",97),e.EFF(51,"None"),e.k0s(),e.j41(52,"option",98),e.EFF(53,"Default"),e.k0s(),e.j41(54,"option",99),e.EFF(55,"Dashed"),e.k0s()()()()()(),e.j41(56,"div",130)(57,"label",101),e.EFF(58,"Preview"),e.k0s(),e.j41(59,"div",131)(60,"h5",132),e.EFF(61,"Gym Membership"),e.k0s(),e.j41(62,"h3",133)(63,"span",134),e.EFF(64,"LKR 150"),e.k0s(),e.j41(65,"span",135),e.EFF(66,"/month"),e.k0s()(),e.j41(67,"button",136),e.EFF(68),e.k0s(),e.DNE(69,q6,7,0,"div",27),e.k0s()()(),e.j41(70,"div",137)(71,"button",104),e.EFF(72,"Generate Code"),e.k0s()()(),e.j41(73,"p",105),e.EFF(74,"Copy code to your site"),e.k0s(),e.j41(75,"div",106)(76,"div",84)(77,"div",79),e.DNE(78,H6,5,2,"div",107),e.k0s()()()()()}if(2&n){let t,r,i;const s=e.XpG(2);e.R7$(2),e.Y8G("formGroup",s.customizerPaymentForm),e.R7$(7),e.Y8G("ngIf",(null==(t=s.customizerPaymentForm.get("buttonText"))?null:t.invalid)&&((null==(t=s.customizerPaymentForm.get("buttonText"))?null:t.dirty)||(null==(t=s.customizerPaymentForm.get("buttonText"))?null:t.touched))
1),e.R7$(17),e.SpI(" ",null==(r=s.customizerPaymentForm.get("buttonColor"))?null:r.value," "),e.R7$(7),e.SpI(" ",null==(i=s.customizerPaymentForm.get("backgroundColor"))?null:i.value," "),e.R7$(26),e.Y8G("ngStyle",e.eq3(9,E6,null==s.customizerPaymentForm.value?null:s.customizerPaymentForm.value.backgroundColor)),e.R7$(8),e.Y8G("ngStyle",e.sMw(11,M4,null==s.customizerPaymentForm.value?null:s.customizerPaymentForm.value.buttonColor,null==s.customizerPaymentForm.value?null:s.customizerPaymentForm.value.buttonFont,null==s.customizerPaymentForm.value?null:s.customizerPaymentForm.value.buttonBorder)),e.R7$(),e.SpI(" ",null==s.customizerPaymentForm.value?null:s.customizerPaymentForm.value.buttonText," "),e.R7$(),e.Y8G("ngIf",null==s.customizerPaymentForm.value?null:s.customizerPaymentForm.value.showPaymentMethods),e.R7$(9),e.Y8G("ngIf",s.htmlCode)}}function J6(n,a){if(1&n){const t=e.RV6();e.j41(0,"nb-card",64)(1,"nb-card-header",65)(2,"div",66)(3,"h2",67),e.EFF(4,"Awesome!"),e.k0s(),e.j41(5,"p",68),e.EFF(6,"Copy code to your site!"),e.k0s()(),e.j41(7,"div",69)(8,"div",70),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.stepperChange("paybutton"))}),e.j41(9,"span",71),e.EFF(10,"Pay Button"),e.k0s()(),e.j41(11,"div",72),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.stepperChange("paymentCard"))}),e.j41(12,"span",71),e.EFF(13,"Payment Card"),e.k0s()()()(),e.j41(14,"nb-card-body",73),e.DNE(15,W6,64,13,"div",27)(16,K6,79,15,"div",27),e.k0s(),e.j41(17,"nb-card-footer")(18,"button",74),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.genarateCodeClose())}),e.EFF(19,"Close"),e.k0s()()()}if(2&n){const t=e.XpG();e.R7$(8),e.Y8G("ngClass","paybutton"===t.selectedTab?"stepper-container_active":"stepper-container"),e.R7$(),e.Y8G("ngClass","paybutton"===t.selectedTab?"tep_name":"tep_name-de"),e.R7$(2),e.Y8G("ngClass","paymentCard"===t.selectedTab?"stepper-container_active":"stepper-container"),e.R7$(),e.Y8G("ngClass","paymentCard"===t.selectedTab?"tep_name":"tep_name-de"),e.R7$(3),e.Y8G("ngIf","paybutton"===t.selectedTab),e.R7$(),e.Y8G("ngIf","paymentCard"===t.selectedTab)}}function Z6(n,a){if(1&n){const t=e.RV6();e.j41(0,"nb-card",144)(1,"nb-card-body",145)(2,"div",146),e.nrm(3,"img",147),e.k0s(),e.j41(4,"div",148),e.EFF(5," Cancel Plan "),e.k0s(),e.j41(6,"div",149),e.EFF(7," Are you sure you want to change the status of this plan? This action cannot be undone. "),e.k0s()(),e.j41(8,"nb-card-footer",150)(9,"div",151)(10,"button",152),e.bIt("click",function(){const i=e.eBV(t).dialogRef;return e.Njj(i.close())}),e.EFF(11," Cancel "),e.k0s(),e.j41(12,"button",153),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.cancelTemplate())}),e.EFF(13," Cancel "),e.k0s()()()()}}function Q6(n,a){if(1&n){const t=e.RV6();e.j41(0,"nb-card",144)(1,"nb-card-body",145)(2,"div",146),e.nrm(3,"img",147),e.k0s(),e.j41(4,"div",148),e.EFF(5," Inactive plan "),e.k0s(),e.j41(6,"div",149),e.EFF(7," Are you sure you want to inactive this plan ? This action cannot be undone. "),e.k0s()(),e.j41(8,"nb-card-footer",150)(9,"div",151)(10,"button",152),e.bIt("click",function(){const i=e.eBV(t).dialogRef;return e.Njj(i.close())}),e.EFF(11," Cancel "),e.k0s(),e.j41(12,"button",153),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.inactivateTemplate())}),e.EFF(13," Inactive "),e.k0s()()()()}}function eP(n,a){if(1&n){const t=e.RV6();e.j41(0,"nb-card",144)(1,"nb-card-body",145)(2,"div",146),e.nrm(3,"img",147),e.k0s(),e.j41(4,"div",148),e.EFF(5," Pause plan "),e.k0s(),e.j41(6,"div",149),e.EFF(7," Are you sure you want to pause this plan ? This action cannot be undone. "),e.k0s()(),e.j41(8,"nb-card-footer",150)(9,"div",151)(10,"button",152),e.bIt("click",function(){const i=e.eBV(t).dialogRef;return e.Njj(i.close())}),e.EFF(11," Cancel "),e.k0s(),e.j41(12,"button",153),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.pauseTemplate())}),e.EFF(13," Pause "),e.k0s()()()()}}function tP(n,a){if(1&n){const t=e.RV6();e.j41(0,"nb-card",144)(1,"nb-card-body",145)(2,"div",146),e.nrm(3,"img",147),e.k0s(),e.j41(4,"div",148),e.EFF(5," Active plan "),e.k0s(),e.j41(6,"div",149),e.EFF(7," Are you sure you want to active this plan ? This action cannot be undone. "),e.k0s()(),e.j41(8,"nb-card-footer",150)(9,"div",151)(10,"button",152),e.bIt("click",function(){const i=e.eBV(t).dialogRef;return e.Njj(i.close())}),e.EFF(11," Cancel "),e.k0s(),e.j41(12,"button",153),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.activateTemplate())}),e.EFF(13," Active "),e.k0s()()()()}}let nP=(()=>{class n{constructor(t,r,i,s,p){this.dialogService=t,this.fb=r,this.sanitizer=i,this.toastr=s,this.subscriptionLinkService=p,this.is_loading_1=!1,this.selectedTab="paybutton",this.allSubLinkData=[],this.buttonText="Pay Now",this.buttonColor="#016FD0",this.buttonFont="SF Pro",this.buttonBorder="none",this.jsonCode=null,this.htmlCode=null,this.copyMsgJson="Copy JSON",this.copyMsgHtml="Copy HTML",this.generatedPayButtonHtml=null,this.copyButtonLabel="Copy",this.jsonData={id:1,age:23,name:"John Doe",email:"[email protected]",address:{street:"123 Main St/",city:"Anytown",state:"CA",zip:"12345"},phone:"555-1234",isActive:!0,roles:["admin","user"],status:"Success"},this.tooltipText="Click to copy",this.showCopiedHtml=!1,this.showCopiedJson=!1,this.customizerForm=this.fb.group({buttonText:["Pay Now",[ie.k0.required,ie.k0.maxLength(40)]],buttonColor:["#016FD0"],buttonFont:["SF Pro"],buttonBorder:["1px solid #ccc"]}),this.customizerPaymentForm=this.fb.group({buttonText:["Pay Now",[ie.k0.required,ie.k0.maxLength(40)]],buttonColor:["#016FD0"],backgroundColor:["#BDE0FF"],buttonFont:["SF Pro"],buttonBorder:["1px solid #ccc"],showPaymentMethods:[!0]}),this.serchanForm=this.fb.group({search:[""]})}ngOnInit(){this.getUpdateInvoiceData()}callChildMethod(){this.childComponent.refreshLinks()}formatDate(t){const r=new Date(t),i=r.getFullYear(),p=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][r.getMonth()];return`${String(r.getDate()).padStart(2,"0")} ${p} ${i}`}openGenerateCode(t,r){console.log(r,"data_url"),this.onSubmitPayButton(r),this.onSubmit(r),this.view_model=this.dialogService.open(t,{closeOnBackdropClick:!1})}genarateCodeClose(){this.view_model.close()}stepperChange(t){this.selectedTab=t}formatJson(t){const r=JSON.stringify(t,null,2);let i=1;const s=r.split("\n").map(p=>{const g=p.replace(/"(\w+)":|("[^"]*")|(\b\d+\b)|(\btrue\b|\bfalse\b|\bnull\b)/g,(S,R,L,ne,re)=>R?`<span style="color: #838383;" class="key">"${R}"</span>:`:L?'"Success"'===L?`<span style="color: green;" class="value-success">${L}</span>`:`<span style="color: #007AFF;" class="value-string">${L}</span>`:ne?`<span style="color: red;" class="value-number">${ne}</span>`:re?`<span style="color: purple;" class="value-boolean">${re}</span>`:S);return`<span class="line-number" style="color: gray;">${i++}:</span> ${g}`}).join("\n");return this.sanitizer.bypassSecurityTrustHtml(s)}openDelete(t,r){this.delete_id=r,this.view_model=this.dialogService.open(t,{closeOnBackdropClick:!1})}openInactive(t,r){this.inactive_id=r,this.view_model=this.dialogService.open(t,{closeOnBackdropClick:!1})}openActive(t,r){this.active_id=r,this.view_model=this.dialogService.open(t,{closeOnBackdropClick:!1})}openPause(t,r){this.pause_id=r,this.view_model=this.dialogService.open(t,{closeOnBackdropClick:!1})}getUpdateInvoiceData(){this.is_loading_1=!0,this.subscriptionLinkService.getAllSubLink().then(t=>{200==t.status?(this.is_loading_1=!1,t.data?(this.allSubLinkData=t?.data,console.log(this.allSubLinkData,"allSubLinkData"),this.sub_link=t.data.map(r=>r.url),console.log(t.data,"3333333333333333333")):this.toastr.showToast("danger","Error
1!","Internal Server Error.")):(this.is_loading_1=!1,this.toastr.showToast("danger","Error!","Internal Server Error."))})}searchSubLinkData(){console.log("tttttttt"),this.is_loading_1=!0,this.subscriptionLinkService.SearchsubLink(this.serchanForm.get("search").value).then(t=>{200==t.status?(this.is_loading_1=!1,console.log(t,"44444"),t.data?this.allSubLinkData=t?.data:this.toastr.showToast("danger","Error!","Internal Server Error.")):(this.is_loading_1=!1,this.toastr.showToast("danger","Error!","Internal Server Error."))})}updateTemplateStatus(t,r){this.is_loading_1=!0,this.subscriptionLinkService.updateTemplateStatus(t,r).then(i=>{this.is_loading_1=!1,200===i?.status||201===i?.status?(this.toastr.showToast("success","Success",`Template status updated to ${r} successfully!`),this.view_model.close(),this.getUpdateInvoiceData()):this.toastr.showToast("danger","Error!",i?.message||"Updating template status failed.")}).catch(i=>{this.is_loading_1=!1,console.error("Update Template Status Error:",i),this.toastr.showToast("danger","Error!","Failed to update template status.")})}activateTemplate(){this.updateTemplateStatus(this.active_id,"active")}pauseTemplate(){this.updateTemplateStatus(this.pause_id,"paused")}cancelTemplate(){this.updateTemplateStatus(this.delete_id,"cancelled")}inactivateTemplate(){this.updateTemplateStatus(this.inactive_id,"inactive")}copyText(t){if(!t)return void(this.tooltipText="No link available");const r=document.createElement("textarea");r.value=t,document.body.appendChild(r),r.select(),document.execCommand("copy"),document.body.removeChild(r),this.tooltipText="Copied!",this.resetTooltip()}resetTooltip(){setTimeout(()=>{this.tooltipText="Click to copy"},2e3)}onSubmit(t){if(this.customizerPaymentForm.invalid)return void this.customizerPaymentForm.markAllAsTouched();const r=this.customizerPaymentForm.value;this.jsonCode=JSON.stringify(r,null,2);const i=this.escapeText(r.buttonText);this.htmlCode=`\n<div style="\n background-color: ${r.backgroundColor};\n padding: 16px;\n border-radius: 8px;\n text-align: center;\n font-family: ${r.buttonFont};\n max-width: 360px;\n">\n <h5 style="margin: 6px 0; color: #6c757d;">Gym Membership</h5>\n <h3 style="margin: 0 0 10px 0;">\n <span style="font-weight: 600;">LKR 150</span>\n <span style="font-size: 14px; opacity:.8;">/month</span>\n </h3>\n\n <a href="${t||"#"}" target="_blank" style="text-decoration:none;">\n <button style="\n background-color: ${r.buttonColor};\n font-family: ${r.buttonFont};\n border: ${r.buttonBorder};\n color: #fff;\n padding: 10px 18px;\n border-radius: 6px;\n cursor: pointer;\n ">\n ${i}\n </button>\n </a>\n\n ${r.showPaymentMethods?'\n <div style="margin-top: 10px;">\n <div style="color:#6c757d; font-size: 12px; margin-bottom: 4px;">\n Supported payment methods\n </div>\n <div style="display:flex; justify-content:center; gap:6px;">\n <img alt="Visa" style="height:20px" src="assets/subscription/New folder/Visa.png" />\n <img alt="Mastercard" style="height:20px" src="assets/subscription/New folder/Mastercard.png" />\n <img alt="Amex" style="height:20px" src="assets/subscription/New folder/Amex.png" />\n </div>\n </div>':""}\n</div>`.trim()}formatForHtml(t){return t?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"):""}escapeText(t){return(t||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}copy(t,r){if(!t)return;const i=document.createElement("textarea");i.value=t,document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i),"json"===r?(this.showCopiedJson=!0,setTimeout(()=>this.showCopiedJson=!1,1500)):(this.showCopiedHtml=!0,setTimeout(()=>this.showCopiedHtml=!1,1500))}
1onSubmitPayButton(t){if(this.customizerForm.invalid)return void this.customizerForm.markAllAsTouched();const{buttonText:r,buttonColor:i,buttonFont:s,buttonBorder:p}=this.customizerForm.value;this.generatedPayButtonHtml=`\n<a href="${t||"#"}" target="_blank" style="text-decoration:none;">\n <button style="\n background-color: ${i};\n font-family: ${s};\n border: ${p};\n padding: 10px 20px;\n border-radius: 6px;\n color: #fff;\n font-size: 16px;\n cursor: pointer;\n ">\n ${r}\n </button>\n</a>`}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(E.S0W),e.rXU(ie.ok),e.rXU(C1.up),e.rXU(Dt.V4),e.rXU(b0))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-all-subscription-links"]],viewQuery:function(r,i){if(1&r&&e.GBs(w6,5),2&r){let s;e.mGM(s=e.lsd())&&(i.childComponent=s.first)}},decls:58,vars:6,consts:[["childRef",""],["dialogGenerateCode",""],["dialogDelete",""],["dialogInactive",""],["dialogPause",""],["dialogActive",""],["notAvailable",""],[1,"body-style","ipg-transaction-root"],[1,"container"],[2,"text-decoration","none","color","#718096","font-size","13px","font-weight","500"],[1,"row","mb-4"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"page-heading"],["nbButton","","status","success","size","medium",1,"primary-green-btn",3,"routerLink"],[2,"text-transform","capitalize!important","margin-left","4px"],[1,"col"],[3,"formGroup"],[1,"row"],[1,"col-6","d-flex","justify-content-start","align-items-center"],[1,"input-container"],["name","search","formControlName","search","type","text","placeholder","Search plan",3,"keyup"],[1,"search-icon"],["src","../../../../assets/images/search.png","alt","Search Icon",1,"search-img"],[1,"col","d-flex","flex-column","px-0","list-like-table","mt-3"],[1,"table-responsive"],[1,"table","table-sm","align-top"],[2,"text-transform","uppercase"],[4,"ngIf"],["class","d-flex justify-content-center align-items-center","style","height: 20rem;",4,"ngIf"],["class","d-flex justify-content-center align-items-center table-no-data-div","style","height: 20rem;",4,"ngIf"],[4,"ngFor","ngForOf"],[2,"color","black"],[4,"ngIf","ngIfElse"],["class","badge-status active",4,"ngIf"],["class","badge-status paused",4,"ngIf"],["class","badge-status cancelled",4,"ngIf"],["class","badge-status inactive",4,"ngIf"],["class","badge-status trialing",4,"ngIf"],[1,"d-flex","justify-content-around"],[1,"btn-group",3,"ngClass"],["data-toggle","dropdown","aria-expanded","false","src","../../../../assets/images/more.png",1,"more_i"],["class","dropdown-menu dropdown-menu-right",4,"ngIf"],[1,"badge-status","active"],[1,"badge-status","paused"],[1,"badge-status","cancelled"],[1,"badge-status","inactive"],[1,"badge-status","trialing"],[1,"dropdown-menu","dropdown-menu-right"],["type","button",1,"dropdown-item",3,"routerLink"],["icon","eye-outline"],[2,"font-size","14px","font-weight","500","color","#04334D","margin-left","10px"],["type","button",1,"dropdown-item"],["src","../../../../assets/subscription/link.png",1,"drop_icon"],[1,"link_ICOn_text",3,"click","mouseout","title"],["type","button",1,"dropdown-item",3,"click"],["src","../../../../assets/subscription/config.png",1,"drop_icon"],["type","button",1,"dropdown-item",3,"click","ngClass","disabled"],["src","../../../../assets/subscription/pause.png",1,"drop_icon"],["src","../../../../assets/subscription/que.png",1,"drop_icon"],["src","../../../../assets/subscription/delete.png",1,"drop_icon"],[1,"d-flex","justify-content-center","align-items-center",2,"height","20rem"],["role","status",1,"spinner-border","text-primary"],[1,"visually-hidden"],[1,"d-flex","justify-content-center","align-items-center","table-no-data-div",2,"height","20rem"],[2,"width","60vw"],[2,"font-family","'Poppins'"],[1,"col","d-flex","flex-column","justify-content-center","align-items-center"],[1,"link_popup_heading"],[1,"link_popup_subhead"],[1,"steper"],[1,"stepper-container","one",3,"click","ngClass"],[3,"ngClass"],[1,"stepper-container","two",3,"click","ngClass"],[1,"dialog-border",2,"font-family","'Poppins'","max-height","50vh","overflow-y","auto"],[1,"btn_common","btC_unique","mr-2",2,"float","right",3,"click"],[1,"tab-content","mt-3"],[3,"ngSubmit","formGroup"],[1,"row","mt-3"],[1,"col-8"],[1,"menu_itam_paybutton"],[1,"col-12","d-flex","flex-column","justify-content-start","mb-1"],[1,"col","px-0","mb-1","code_label"],["type","text","nbInput","","fullWidth","","placeholder","Pay N
1ow","formControlName","buttonText","name","buttonText",1,"div_input",3,"ngClass"],["class","text-danger",4,"ngIf"],[1,"col-12"],[1,"col","px-0","mb-2","code_label"],[1,"col-4","d-flex","flex-column","justify-content-start","mb-1"],[1,"col","px-0","mb-1","code_label_sub"],[1,"d-flex","align-items-center","justify-content-between","color_grid"],["formControlName","buttonColor","type","color",1,"form-control","input-bottom",2,"padding","0","background-color","#f0f0f0","width","50px","height","36px","border","1px solid #ccc","border-radius","4px"],[1,"ms-2","text-muted",2,"font-size","14px"],["formControlName","buttonFont",1,"form-control","subs_drop"],["value","Arial"],["value","SF Pro"],["value","Roboto"],["value","Poppins"],["formControlName","buttonBorder",1,"form-control","subs_drop"],["value","none"],["value","1px solid #ccc"],["value","2px dashed #999"],[1,"col-4"],[1,"code_label"],["type","button",1,"preview-btn",3,"ngStyle"],[1,"generate-code-wrapper"],["type","submit",1,"generate-code-btn"],[1,"copy_you","mt-3"],[1,"row","mt-2"],["class","code-block",4,"ngIf"],[1,"text-danger"],[1,"code-block"],[1,"code-block-header","d-flex","justify-content-end","align-items-center"],["src","../../../../assets/subscription/copy_icon.png",1,"copy_i",3,"click"],["class","copied-text ml-2",4,"ngIf"],[3,"innerHTML"],[1,"copied-text","ml-2"],[1,"col-md-8"],[1,"menu_itam_paybutton","p-3"],[1,"code_label","mb-1"],["placeholder","Pay Now","formControlName","buttonText",1,"form-control","mb-3"],["class","invalid",4,"ngIf"],[1,"d-flex","justify-content-between","align-items-center","mb-3"],[1,"switch"],["formControlName","showPaymentMethods","type","checkbox"],[1,"slider","round"],[1,"code_label","mb-2"],[1,"col-6","d-flex","flex-column","justify-content-start","mb-2"],[1,"d-flex","align-items-center","color_grid"],["type","color","formControlName","buttonColor",1,"form-control","input-bottom","color-input"],[1,"ms-2","text-muted","color-code"],["type","color","formControlName","backgroundColor",1,"form-control","input-bottom","color-input"],[1,"col-md-4"],[1,"menu_itam_paycard","p-3","text-center",3,"ngStyle"],[1,"my-2","text-muted"],[1,"price-line"],[1,"preview_test1"],[1,"preview_test2"],[1,"preview-btn","mb-1",3,"ngStyle"],[1,"text-center","mt-4"],[1,"invalid"],[1,"text-muted2"],[1,"d-flex","justify-content-center","gap-2","mt-1"],["src","../../../../assets/subscription/New folder/Visa.png","alt","Visa",1,"payment_method_img"],["src","../../../../assets/subscription/New folder/Mastercard.png","alt","Mastercard",1,"payment_method_img"],["src","../../../../assets/subscription/New folder/Amex.png","alt","Amex",1,"payment_method_img"],[2,"width","400px"],[1,"dialog-border",2,"font-family","'Poppins'"],[1,"row","justify-content-center","mb-3"],["src","../../../../assets/images/delete_icon_pop.png",1,"pe-2","delete_img"],[1,"d-flex","justify-content-center","topic-app","mb-3"],[1,"d-flex","justify-content-center","delete_p"],[2,"border-top","none"],[1,"d-flex","justify-content-center","buttons-container-app"],[1,"button-cansel-app",3,"click"],["type","button",1,"delete-button-app",3,"click"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",7)(1,"div",8)(2,"p",9),e.EFF(3,"Create subscription links"),e.k0s(),e.j41(4,"div",10)(5,"div",11)(6,"h2",12),e.EFF(7,"Subscription Links"),e.k0s(),e.j41(8,"button",13)(9,"span",14),e.EFF(10,"Create Subscription Link"),e.k0s()()()(),e.j41(11,"div",10)(12,"div",15)(13,"nb-card")(14,"nb-card-body")(15,"form",16)(16,"div",17)(17,"div",18)(18,"div",19)(19,"input",20),e.bIt("keyup",function(){return e.eBV(s),e.Njj(i.searchSubLinkData())}),e.k0s(),e.j41(20,"span",21),e.nrm(21,"img",22),e.k0s()()()()(),e.nrm(22,"ngx-dashboard-subscription-links",null,0),e.j41(24,"div",23)(25,"div",24)(26,"table",25)(27,"thead")(28,"tr",26)(29,"th"),e.EFF(30,"Plan Name"),e.k0s(),e.j41(31,"th"),e.EFF(32,"Plan Type"),e.k0s(),e.j41(33,"th"),e.EFF(34,"Currency & Amount"),e.k0s(),e.j41(35,"th"),e.EFF(36,"Billing Cycle"),e.k0s(),e.j41(37,"th"),e.EFF(38,"Subscribes Count"),e.k0s(),e.j41(39,"th"),e.EFF(40,"End of Term"),e.k0s(),e.j41(41,"th"),e.EFF(42,"Status"),e.k0s(),e.j41(43,"th"),e.EFF(44,"ACTION"),e.k0s()()(),e.DNE(45,B6,2,1,"tbody",27),e.k0s(),e.DNE(46,G6,4,0,"div",28)(47,V6,3,0,"div",29),e.k0s()()()()()()()(),e.DNE(48,J6,20,6,"ng-template",null,1,e.C5r)(50,Z6,14,0,"ng-template",null,2,e.C5r)(52,Q6,14,0,"ng-template",null,3,e.C5r)(54,eP,14,0,"ng-template",null,4,e.C5r)(56,tP,14,0,"ng-template",null,5,e.C5r)}2&r&&(e.R7$(8),e.Y8G("routerLink",e.lJ4(5,F6)),e.R7$(7),e.Y8G("formGroup",i.serchanForm),e.R7$(30),e.Y8G("ngIf",!i.is_loading_1),e.R7$(),e.Y8G("ngIf",i.is_loading_1),e.R7$(),e.Y8G("ngIf",!i.is_loading_1&&i.allSubLinkData.length<1))},dependencies:[Fe.YU,Fe.Sq,Fe.bT,Fe.B3,ie.qT,ie.xH,ie.y7,ie.me,ie.Zm,ie.wz,ie.BC,ie.cb,ie.j4,ie.JD,qe.Wk,E.SrT,E.KH5,E.VDm,E.zJv,E.tHu,E.YP2,E.i6h,bx],styles:['input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]{background-color:#2196f3}input[_ngcontent-%COMP%]:focus + .slider[_ngcontent-%COMP%]{box-shadow:0 0 1px #2196f3}.badge-status.inactive[_ngcontent-%COMP%]{background-color:#ef4444}.steper[_ngcontent-%COMP%]{display:flex;flex-direction:row}.stepper-container[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:20px;padding-bottom:5px;cursor:pointer}.stepper-container_active[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:20px;padding-bottom:5px;border-bottom:2px solid #064E3B}.tep_name[_ngcontent-%COMP%]{color:#064e3b;font-size:14px;font-weight:600;margin-right:8px}.tep_name-de[_ngcontent-%COMP%]{color:#838383;font-size:14px;font-weight:400;margin-right:8px}.steper[_ngcontent-%COMP%]{display:flex;align-items:center}.bage[_ngcontent-%COMP%]{padding:2px 15px;font-size:14px;font-weight:600;border-radius:4px}.success_pop[_ngcontent-%COMP%]{border:1px solid #036B26;color:#036b26;background-color:#effff4}.bad_pop[_ngcontent-%COMP%]{border:1px solid #FF3B30;color:#ff3b30;background-color:#ff3b3033}.popup_heading[_ngcontent-%COMP%]{font-size:24px;color:#1e1e1e;font-weight:600}.menu_itam[_ngcontent-%COMP%]{width:100%;height:auto;padding:16px;border-radius:6px;display:flex;align-items:center;justify-content:start;font-size:14px;transition:all .2s ease-in-out;border:1px solid var(--Gray, #BCBCBC)}.overview_menu[_ngcontent-%COMP%]{background:#e8fff380}.menu_sub1[_ngcontent-%COMP%]{font-weight:400;color:#838383;font-size:12px}.menu_sub2[_ngcontent-%COMP%]{font-weight:600;color:#064e3b;font-size:32px}.menu_div[_ngcontent-%COMP%]{width:100%;height:auto;border:1px solid #BCBCBC;border-radius:4px;padding:8px;background-color:#fff}.company-logo[_ngcontent-%COMP%]{width:auto;height:45px;object-fit:contain;border-radius:50%}.card-logo[_ngcontent-%COMP%]{width:auto;height:38px;object-fit:contain}.banner_header[_ngcontent-%COMP%]{font-size:14px;font-weight:500;line-height:145%}.banner_desc[_ngcontent-%COMP%]{font-size:10px;font-weight:500;line-height:145%;color:#838383}.pop_sub_head[_ngcontent-%COMP%], .sub_head_data[_ngcontent-%COMP%]{font-size:10px;color:#838383;font-weight:400}.hr_[_ngcontent-%COMP%]{border:1px solid #BCBCBC;margin-top:5px;margin-bottom:10px}.pop_sub_head_net[_ngcontent-%COMP%]{font-size:16px;font-weight:500}.sub_head_data_net[_ngcontent-%COMP%]{font-size:24px;font-weight:600}.btn_common[_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;text-align:center;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;vertical-align:middle;padding:10px 18px;font-weight:600;border-radius:4px;transition:all .2s ease-in-out;font-size:12px}.btC_unique[_ngcontent-%COMP%]{border:1px solid #667185;color:#667185;background-color:transparent}.userDetails_menu[_ngcontent-%COMP%]{background-color:#e8fff380}.lable_[_ngcontent-%COMP%]{color:#064e3b;font-size:14px;line-height:145%;font-weight:600}.lable_data[_ngcontent-%COMP%]{color:#838383;font-size:14px;line-height:145%;font-weight:400}.table-head[_ngcontent-%COMP%]{font-size:14px;color:#064e3b;font-weight:600;margin-bottom:10px}.table-data[_ngcontent-%COMP%]{font-size:14px;color:#838383;font-weight:400;margin-bottom:10px}.badge-status[_ngcontent-%COMP%]{display:inline-block;padding:0 12px;font-size:12px;font-weight:500;border-radius:10px;text-transform:uppercase}.badge-status.inactive[_ngcontent-%COMP%]{background-color:#eb001b33;color:#ff3b30}.badge-status.pending[_ngcontent-%COMP%]{background-color:#facc15;color:#000}.table_data_grid[_ngcontent-%COMP%]{max-height:50vh;overflow-y:scroll;overflow-x:hidden}.addones_menu[_ngcontent-%COMP%]{background-color:#fff}.menu_subAddones[_ngcontent-%COMP%]{font-weight:400;color:#838383;font-size:12px;line-height:15px}.pop_sub_head_addones[_ngcontent-%COMP%]{font-size:16px;font-weight:500}.sub_head_data_addone[_ngcontent-%COMP%]{font-size:24px;font-weight:600}.subscriptions_details[_ngcontent-%COMP%]{font-size:14px;color:#667185;font-weight:600}.menu_itamDecline[_ngcontent-%COMP%]{width:100%;padding:10px;border-radius:4px;border:.5px solid #FF3B30;background:#feeeee}.btn_common_billingHistory[_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;text-align:center;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;vertical-align:middle;padding:5px 18px;font-weight:500;border-radius:4px;transition:all .2s ease-in-out;font-size:10px;border:1px solid #BCBCBC;color:#838383;width:100%}.lable_History[_ngcontent-%COMP%]{color:#1e1e1e;font-weight:500;font-size:12px}.badge-status[_ngcontent-%COMP%]{padding:4px 10px;border-radius:12px;font-size:12px;font-weight:500}.badge-status2.active[_ngcontent-%COMP%]{background:#d4edda;color:#155724}.badge-status2.pending[_ngcontent-%COMP%]{background:#fff3cd;color:#856404}.badge-status2.failed[_ngcontent-%COMP%]{background:#f8d7da;color:#721c24}.badge-status2.inactive[_ngcontent-%COMP%]{background:#e2e3e5;color:#6c757d}.badge-status2.trial[_ngcontent-%COMP%]{background:#cce5ff;color:#004085}.badge-status2[_ngcontent-%COMP%]{display:inline-block;padding:4px 12px;font-size:12px;font-weight:500;border-radius:10px;line-height:120%}.ipg-transaction-root[_ngcontent-%COMP%] nb-badge[_ngcontent-%COMP%]{position:absolute;top:39%;left:15px;width:-moz-fit-content;width:fit-content}.transaction-view-modal[_ngcontent-%COMP%]{width:40rem;height:85vh}.transaction-view-modal[_ngcontent-%COMP%] nb-badge[_ngcontent-%COMP%]{position:absolute;
1left:15px;top:50%;transform:translateY(0);width:-moz-fit-content;width:fit-content}.menu_itam[_ngcontent-%COMP%]{width:100%;height:124px;padding:32px 1px;border-radius:8px;border:1px solid #E4E4E4;background:#f4f4f4}.count-user[_ngcontent-%COMP%]{font-weight:700;font-size:32px;color:#1a202c;text-align:center}.count-user_O[_ngcontent-%COMP%]{font-weight:700;font-size:32px;color:#c6c6c6;text-align:center}.count-user-name[_ngcontent-%COMP%]{font-weight:500;font-size:16px;color:#4d4d4d;text-align:center}.dashbord-tab[_ngcontent-%COMP%]{padding-right:6px!important;padding-left:6px!important}.ipg-filter[_ngcontent-%COMP%]{width:500px;float:right!important}.ipg-filter-content[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:none;height:100%;border-radius:0;outline:0}.primary-green-btn[_ngcontent-%COMP%]{background:#000!important;text-transform:capitalize!important}.search[_ngcontent-%COMP%]{margin-left:12px;margin-top:11px}.more_i[_ngcontent-%COMP%]{width:auto;height:15px;cursor:pointer}.btn.dropdown-toggle[_ngcontent-%COMP%]{display:none}.more_i[_ngcontent-%COMP%]{position:relative;top:3px}.drop_icon[_ngcontent-%COMP%]{width:13px;height:13px}.overridee[_ngcontent-%COMP%]{align-items:baseline!important}.icon-main[_ngcontent-%COMP%]{position:absolute;z-index:1;margin-top:10px;margin-left:13px}.icon-sub-sign[_ngcontent-%COMP%]{display:inline;color:#667085;font-weight:100}.sign-input[_ngcontent-%COMP%]{padding-left:52px!important;width:100%}th[_ngcontent-%COMP%]{text-transform:uppercase}.input-container[_ngcontent-%COMP%]{position:relative;display:inline-block;width:100%;max-width:400px}.input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;padding:8px 10px 8px 32px;font-size:16px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box}.input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{position:absolute;left:10px;top:50%;transform:translateY(-50%);font-size:16px;color:#888;pointer-events:none}.search-img[_ngcontent-%COMP%]{width:14px;height:auto}.selecter_[_ngcontent-%COMP%]{background-color:#fff;border-color:#d0d5dd;color:#98a2b3;line-height:1.5rem;padding:.2375rem 1rem;font-size:14px!important;font-weight:400!important;border-radius:.25rem;height:36px;float:right;width:110px}.menu_itam[_ngcontent-%COMP%]{width:100%;height:48px;padding:10px 1px;border-radius:6px;background:#f4f4f4;cursor:pointer;display:flex;align-items:center;justify-content:center}.menu_itam2[_ngcontent-%COMP%]{width:auto;height:36px;padding:10px 15px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;float:right;background:#fff;border:1px solid #D0D5DD;color:#98a2b3}.clicked[_ngcontent-%COMP%]{background:#effff4;border:1px solid #036B26;color:#036b26}.clicked2[_ngcontent-%COMP%]{background:#fff;border:1px solid #D0D5DD;color:#98a2b3}.ipg-dashbord-right[_ngcontent-%COMP%]{padding-right:0!important}.button_name[_ngcontent-%COMP%]{font-size:12px;line-height:20px;font-weight:400}.button_img[_ngcontent-%COMP%]{width:20px;height:auto;margin-right:6px}.table-view-btn-3[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 12px;border:none;color:#04334d;cursor:pointer;border-radius:4px;box-shadow:0 4px 6px #0000001a;background-color:#fff}.button_img[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block}.table-view-btn-3[_ngcontent-%COMP%]:hover{box-shadow:0 6px 10px #00000026}.menu_refresh[_ngcontent-%COMP%]{width:auto;height:48px;padding:10px 15px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;float:right;background:#000;color:#fff;margin-left:15px}.istalment_plan[_ngcontent-%COMP%]{margin-bottom:15px!important}.slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0;background-color:#ccc;transition:.4s}.slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:10px;width:10px;left:4px;bottom:4px;background-color:#fff;transition:.4s}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]{background-color:#064e3b}input[_ngcontent-%COMP%]:focus + .slider[_ngcontent-%COMP%]{box-shadow:0 0 1px #064e3b}.slider.round[_ngcontent-%COMP%]{border-radius:34px}.slider.round[_ngcontent-%COMP%]:before{border-radius:50%}.switch[_ngcontent-%COMP%]{position:relative;display:inline-block;width:35px;height:18px}.switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{opacity:0;width:0;height:0}
1.create-green-btn[_ngcontent-%COMP%]{background:#004d14!important;color:#fff!important}.table[_ngcontent-%COMP%] .thead-light[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#495057;background-color:transparent;border:none!important}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-bottom:hidden;border-top:hidden;font-size:14px;color:#1c1c1c;font-weight:500}.table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-top:none;font-size:14px;color:#4b4b4b}.item_invoice_t[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-top:5px!important;padding-bottom:0!important}.in_ad_line[_ngcontent-%COMP%]{display:block;font-size:14px;font-weight:500;color:#344054;line-height:21px}.pencil[_ngcontent-%COMP%]{width:12px;height:12px;color:red}.pencil_table[_ngcontent-%COMP%]{width:12px;height:12px;color:#000!important;margin-right:5px}.delete_table[_ngcontent-%COMP%]{width:auto;height:32px;cursor:pointer}.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.data_table_lable[_ngcontent-%COMP%]{margin-top:10px}.div_line_in_table[_ngcontent-%COMP%]{width:100%;border-bottom:1px solid #DADADA;margin-top:5px;margin-bottom:5px}.pencil_plus[_ngcontent-%COMP%]{width:32px;height:32px;cursor:pointer}
1.label-name[_ngcontent-%COMP%]{margin-bottom:6px!important;color:#344054;font-size:14px;font-weight:500}.required_feeld[_ngcontent-%COMP%]{color:red;margin-left:5px}.text-danger[_ngcontent-%COMP%]{float:left!important}.item_invoice_t[_ngcontent-%COMP%] .other_td[_ngcontent-%COMP%]{font-weight:600;font-size:16px;color:#344054}.des_invoice[_ngcontent-%COMP%]{font-size:14px!important;color:#6a707a!important;font-weight:600!important}.icon_border[_ngcontent-%COMP%]{width:36px;height:36px;border:1px solid #ccc;border-radius:6px;display:flex;align-items:center;justify-content:center}.delete_table[_ngcontent-%COMP%]{width:14px;height:20px;cursor:pointer}.plus_table[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.colNew-1[_ngcontent-%COMP%]{width:90%}.colNew-2[_ngcontent-%COMP%]{width:10%}.badge-status[_ngcontent-%COMP%]{display:inline-block;padding:2px 12px;font-size:12px;font-weight:500;border-radius:10px;text-transform:uppercase}.badge-status.active[_ngcontent-%COMP%]{background-color:#d0ffcc;color:#036b26}.badge-status.paused[_ngcontent-%COMP%]{background-color:#ffeacc;color:#b36b00}.badge-status.cancelled[_ngcontent-%COMP%]{background-color:#ffd6d6;color:#a80000}.badge-status.inactive[_ngcontent-%COMP%]{background-color:#e0e0e0;color:#555}.badge-status.trialing[_ngcontent-%COMP%]{background-color:#cce5ff;color:#004085;border-color:#004085}.customizer-container[_ngcontent-%COMP%]{display:flex;gap:2rem;padding:2rem;flex-wrap:wrap;justify-content:center}.customizer-card[_ngcontent-%COMP%], .preview-card[_ngcontent-%COMP%]{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 0 10px #0000001a;width:100%}.preview-btn[_ngcontent-%COMP%]{padding:10px 20px;color:#fff;font-size:16px;border-radius:6px;cursor:pointer;margin-top:10px;width:100%}.generate-code-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:1.5rem}.generate-code-btn[_ngcontent-%COMP%]{background-color:#005a1c;color:#fff;padding:12px 30px;border:none;font-weight:600;border-radius:6px;font-size:16px;cursor:pointer;width:100%}.section[_ngcontent-%COMP%]{margin-bottom:1.5rem}label[_ngcontent-%COMP%]{font-weight:500;margin-bottom:.5rem;display:block}input.form-control[_ngcontent-%COMP%], select.form-control[_ngcontent-%COMP%]{width:100%;padding:6px 10px;border-radius:6px;border:1px solid #ccc}.link_popup_heading[_ngcontent-%COMP%]{font-size:36px;color:#004d14;line-height:145%;font-weight:600}.link_popup_subhead[_ngcontent-%COMP%]{font-size:16px;color:#667185;line-height:145%;font-weight:400}.menu_itam_paybutton[_ngcontent-%COMP%]{width:100%;height:auto;padding:10px;border-radius:8px;border:1px solid #D0D5DD;background:#fff}.selecter_invoice[_ngcontent-%COMP%]{background-color:#f7f9fc;border-color:#e4e9f2;color:#222b45;line-height:1.5rem;padding:.4375rem 1rem;font-size:15px!important;font-weight:400!important;border-radius:.25rem}.code_label[_ngcontent-%COMP%]{font-size:16px;font-weight:400;color:#667185;line-height:145%}.code_label_sub[_ngcontent-%COMP%]{font-size:14px;font-weight:500}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]{background-color:#0a5f40}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{transform:translate(16px)}.menu_itam_paycard[_ngcontent-%COMP%]{width:100%;height:auto;padding:10px;border-radius:8px;border:1px solid #D0D5DD;background:#fff;box-shadow:0 2px 4px #00000040}.text-muted[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:145%;color:#667185;margin-bottom:-7px!important}.text-muted2[_ngcontent-%COMP%]{font-size:10px;font-weight:400;line-height:145%;color:#667185}.preview_test1[_ngcontent-%COMP%]{font-size:22px;font-weight:700;line-height:145%}.preview_test2[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:145%}.payment_method_img[_ngcontent-%COMP%]{height:29px}.feature-icon-update[_ngcontent-%COMP%]{width:48px!important;height:auto}.button-cansel-app[_ngcontent-%COMP%]{padding:10px 18px;margin-right:10px;width:170px;height:44px;font-size:14px;font-weight:700;color:#344054;background-color:#fff;border:1px solid #D0D5DD;border-radius:8px;cursor:pointer}.delete-button-app[_ngcontent-%COMP%]:hover{background-color:#d92d20!important}.delete-button-app[_ngcontent-%COMP%]{padding:10px 18px;margin-right:10px;width:170px;height:44px;font-size:16px;font-weight:600;color:#fff;background-color:#d92d20;border:none;border-radius:8px}.delete_img[_ngcontent-%COMP%]{width:48px;height:auto}.topic-app[_ngcontent-%COMP%]{font-size:18px;font-weight:600}.delete_p[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:20px;color:#667085}.checked[_ngcontent-%COMP%]{color:#000}.text-danger-container[_ngcontent-%COMP%]{text-align:left!important}.copy_i[_ngcontent-%COMP%]{width:12px;height:auto;cursor:pointer}.disabled-text[_ngcontent-%COMP%], .disabled-text2[_ngcontent-%COMP%]{color:#a0a0a0!important;opacity:.6;cursor:not-allowed;pointer-events:none}.dropdown-item[_ngcontent-%COMP%]:disabled{pointer-events:none}.dropdown-item[_ngcontent-%COMP%]:focus, .dropdown-item[_ngcontent-%COMP%]:active{background-color:transparent!important;color:inherit!important;outline:none!important;box-shadow:none!important}.copy_you[_ngcontent-%COMP%]{font-size:16px;font-weight:400;color:#667185}.copied-text[_ngcontent-%COMP%]{color:green;font-size:13px;font-weight:500}']})}return n})();function iP(n,a){1&n&&(e.j41(0,"span"),e.EFF(1," - "),e.k0s())}function rP(n,a){if(1&n&&(e.qex(0),e.EFF(1),e.DNE(2,iP,2,0,"span",27),e.EFF(3),e.bVm()),2&n){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.card_number.card_type||""," "),e.R7$(),e.Y8G("ngIf",t.card_number.card_type&&t.card_number.card_number),e.R7$(),e.SpI(" ",t.card_number.card_number||""," ")}}function aP(n,a){1&n&&e.EFF(0,"Not Available")}function oP(n,a){if(1&n){const t=e.RV6();e.j41(0,"tr")(1,"td",31),e.EFF(2),e.k0s(),e.j41(3,"td"),e.EFF(4),e.k0s(),e.j41(5,"td"),e.EFF(6),e.k0s(),e.j41(7,"td"),e.EFF(8),e.k0s(),e.j41(9,"td"),e.EFF(10),e.k0s(),e.j41(11,"td"),e.EFF(12),e.nI1(13,"date"),e.k0s(),e.j41(14,"td")(15,"span",32),e.EFF(16),e.k0s()(),e.j41(17,"td"),e.DNE(18,rP,4,3,"ng-container",33)(19,aP,1,0,"ng-template",null,2,e.C5r),e.k0s(),e.j41(21,"td",34)(22,"div",35),e.nrm(23,"img",36),e.j41(24,"div",37)(25,"button",38),e.bIt("click",function(){const i=e.eBV(t).$implicit,s=e.XpG(2),p=e.sdS(58);return e.Njj(s.openView(p,i))}),e.j41(26,"span"),e.nrm(27,"nb-icon",39),e.k0s(),e.j41(28,"span",40),e.EFF(29,"View "),e.k0s()()()()()()}if(2&n){const t=a.$implicit,r=e.sdS(20),i=e.XpG(2);e.R7$(2),e.JRh((null==t.customer?null:t.customer.customer_name)||"Not Available"),e.R7$(2),e.JRh((null==t.customer?null:t.customer.email)||"Not Available"),e.R7$(2),e.Lme("",(null==t.subscription_template?null:t.subscription_template.currency)||"Not Available"," ",(null==t.subscription_template?null:t.subscription_template.amount)||"Not Available",""),e.R7$(2),e.JRh((null==t.subscription_template?null:t.subscription_template.plan_name)||"Not Available"),e.R7$(2),e.JRh((null==t.subscription_template?null:t.subscription_template.interval)||"Not Available"),e.R7$(2),e.SpI(" ",null!=t&&t.next_action_at?e.i5U(13,11,t.next_action_at,"yyyy-MM-dd HH:mm"):"Not Available"," "),e.R7$(3),e.Y8G("ngClass",i.getStatusClass2(t.status)),e.R7$(),e.SpI(" ",i.getStatusLabel(t.status)," "),e.R7$(2),e.Y8G("ngIf",t.card_number)("ngIfElse",r)}}function sP(n,a){if(1&n&&(e.j41(0,"tbody"),e.DNE(1,oP,30,14,"tr",30),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.allCustomer)}}function lP(n,a){1&n&&(e.j41(0,"div",41)(1,"div",42)(2,"span",43),e.EFF(3,"Loading..."),e.k0s()()())}function cP(n,a){1&n&&(e.j41(0,"div",44)(1,"h6"),e.EFF(2,"No data available!"),e.k0s()())}function dP(n,a){1&n&&(e.j41(0,"span",58),e.EFF(1,"Success"),e.k0s())}function uP(n,a){1&n&&(e.j41(0,"span",59),e.EFF(1,"Failed"),e.k0s())}function fP(n,a){1&n&&e.nrm(0,"img",89)}function pP(n,a){1&n&&e.nrm(0,"img",90)}function hP(n,a){1&n&&e.nrm(0,"img",91)}function mP(n,a){if(1&n&&(e.j41(0,"div")(1,"div",60)(2,"div",12)(3,"div",61)(4,"div",62)(5,"div",63)(6,"div",64),e.EFF(7),e.k0s(),e.j41(8,"div",65),e.EFF(9),e.k0s(),e.j41(10,"div",66)(11,"div",12)(12,"div",67)(13,"div",68)(14,"div",69),e.nrm(15,"img",70),e.j41(16,"div",71)(17,"h4",72),e.EFF(18),e.k0s(),e.j41(19,"p",73),e.EFF(20),e.k0s()()()()()()()()()(),e.j41(21,"div",61)(22,"div",74)(23,"div",63)(24,"div",75),e.EFF(25,"Next billing date"),e.k0s(),e.j41(26,"div",76),e.EFF(27),e.k0s(),e.j41(28,"div",66)(29,"div",12)(30,"div",47)(31,"div")(32,"h4",72),e.EFF(33),e.k0s(),e.j41(34,"p",73),e.EFF(35),e.k0s()(),e.j41(36,"div"),e.DNE(37,fP,1,0,"img",77)(38,pP,1,0,"img",78)(39,hP,1,0,"img",79),e.k0s()()()()()()()(),e.j41(40,"div",80),e.nrm(41,"div",81),e.j41(42,"div",82)(43,"div",83)(44,"div",13)(45,"p",84),e.EFF(46),e.k0s()(),e.j41(47,"div",18)(48,"p",85),e.EFF(49),e.k0s()()(),e.j41(50,"div",83)(51,"div",13)(52,"p",84),e.EFF(53),e.k0s()(),e.j41(54,"div",18)(55,"p",85),e.EFF(56),e.nI1(57,"number"),e.k0s()()(),e.nrm(58,"hr",86),e.j41(59,"div",83)(60,"div",13)(61,"p",87),e.EFF(62,"Next payment"),e.k0s()(),e.j41(63,"div",18)(64,"p",88),e.EFF(65),e.nI1(66,"number"),e.k0s()()()()()()()),2&n){const t=e.XpG(2);e.R7$(7),e.JRh((null==t.view_data.overview?null:t.view_data.overview.recurring_type)||"Not Available"),e.R7$(2),e.Lme("",(null==t.view_data.overview?null:t.view_data.overview.currency)||"Not Available"," ",(null==t.view_data.overview?null:t.view_data.overview.amount)||"Not Available",""),e.R7$(9),e.JRh((null==t.view_data.customer?null:t.view_data.customer.customer_name)||"Not Available"),e.R7$(2),e.JRh((null==t.view_data.customer?null:t.view_data.customer.email)||"Not Available"),e.R7$(7),e.SpI("",null!=t.view_data&&t.view_data.next_action_at?t.formatDate(t.view_data.next_action_at):"Not Available"," "),e.R7$(6),e.JRh((null==t.view_data.customer_card?null:t.view_data.customer_card.card_number)||"Not Available"),e.R7$(2),e.SpI("Expiery ",(null==t.view_data.customer_card?null:t.view_data.customer_card.expire_date)||"Not Available",""),e.R7$(2),e.Y8G("ngIf","MASTERCARD"===(null==t.view_data.customer_card?null:t.view_data.customer_card.card_type)),e.R7$(),e.Y8G("ngIf","Visa"===(null==t.view_data.customer_card?null:t.view_data.customer_card.card_type)),e.R7$(),e.Y8G("ngIf","AMEX"===(null==t.view_data.customer_card?null:t.view_data.customer_card.card_type)),e.R7$(7),e.SpI(" ",(null==t.other_data.subscription_template?null:t.other_data.subscription_template.plan_name)||"Not Available"," "),e.R7$(3),e.Lme(" ",(null==t.view_data.overview?null:t.view_data.overview.currency)||"Not Available"," ",(null==t.view_data.overview?null:t.view_data.overview.amount)||"Not Available"," "),e.R7$(4),e.SpI(" Tax (",(null==t.view_data.overview?null:t.view_data.overview.surcharge)||0,"%) "),e.R7$(3),e.Lme(" ",null==t.view_data.overview?null:t.view_data.overview.currency," ",e.i5U(57,19,(null==t.view_data.overview?null:t.view_data.overview.amount)*((null==t.view_data.overview?null:t.view_data.overview.surcharge)||0)/100,"1.2-2")," "),e.R7$(9),e.Lme(" ",null==t.view_data.overview?null:t.view_data.overview.currency," ",e.i5U(66,22,(null==t.view_data.overview?null:t.view_data.overview.amount)+(null==t.view_data.overview?null:t.view_data.overview.amount)*((null==t.view_data.overview?null:t.view_data.overview.surcharge)||0)/100,"1.2-2")," ")}}function gP(n,a){if(1&n&&(e.j41(0,"div",61)(1,"div",96)(2,"div",67)(3,"p",97),e.EFF(4),e.k0s(),e.j41(5,"p",98),e.EFF(6),e.k0s()()()()),2&n){const t=a.$implicit;e.R7$(4),e.JRh(t.key),e.R7$(2),e.JRh(t.value||"Not Available")}}function _P(n,a){if(1&n&&(e.j41(0,"div")(1,"div",60)(2,"div",12)(3,"div",61)(4,"div",92)(5,"div",63)(6,"div",93),e.EFF(7),e.k0s(),e.j41(8,"div",75),e.EFF(9),e.k0s()()()(),e.j41(10,"div",61)(11,"div",92)(12,"div",63)(13,"div",94),e.EFF(14),e.k0s(),e.nrm(15,"div",75),e.k0s()()()(),e.j41(16,"div",80),e.DNE(17,gP,7,2,"div",95),e.k0s(),e.j41(18,"div",12)(19,"div",61)(20,"div",96)(21,"div",67)(22,"p",97),e.EFF(23,"Payment Note"),e.k0s(),e.j41(24,"p",98),e.EFF(25),e.k0s()()()()()()()),2&n){const t=e.XpG(2);e.R7$(7),e.JRh((null==t.view_data.customer?null:t.view_data.customer.customer_name)||"Not Available"),e.R7$(2),e.JRh((null==t.view_data.customer?null:t.view_data.customer.email)||"Not Available"),e.R7$(5),e.JRh(t.formatPhone(null==t.view_data.customer?null:t.view_data.customer.phone)||"Not Available"),e.R7$(3),e.Y8G("ngForOf",t.getUserDetails(t.view_data.user_details)),e.R7$(8),e.JRh((null==t.view_data?null:t.view_data.note)||"Not Available")}}function vP(n,a){1&n&&(e.j41(0,"span",108),e.EFF(1,"Success"),e.k0s())}function xP(n,a){1&n&&(e.j41(0,"span",109),e.EFF(1,"Declined"),e.k0s())}function bP(n,a){if(1&n&&(e.j41(0,"div",105)(1,"div",101),e.EFF(2),e.nI1(3,"number"),e.k0s(),e.j41(4,"div",101),e.DNE(5,vP,2,0,"span",106)(6,xP,2,0,"span",107),e.k0s(),e.j41(7,"div",101),e.EFF(8),e.nI1(9,"date"),e.k0s()()),2&n){const t=a.$implicit,r=e.XpG(3);e.R7$(2),e.Lme(" ",(null==r.view_data.overview?null:r.view_data.overview.currency)||"LKR"," ",e.i5U(3,5,t.amount,"1.2-2")," "),e.R7$(3),e.Y8G("ngIf","MPGS_SUCCESS"===t.status),e.R7$(),e.Y8G("ngIf","MPGS_FAILED"===t.status),e.R7$(2),e.SpI(" ",e.i5U(9,8,t.request_time,"MMM d, y, h:mm a")," ")}}function yP(n,a){if(1&n&&(e.j41(0,"div")(1,"div",60)(2,"div",99)(3,"div",100)(4,"div",101),e.EFF(5,"Amount"),e.k0s(),e.j41(6,"div",101),e.EFF(7,"Status"),e.k0s(),e.j41(8,"div",102),e.EFF(9,"Billing date"),e.k0s()(),e.j41(10,"div",103),e.DNE(11,bP,10,11,"div",104),e.k0s()()()()),2&n){const t=e.XpG(2);e.R7$(11),e.Y8G("ngForOf",t.view_data.transactions)}}function CP(n,a){if(1&n&&(e.j41(0,"div")(1,"div",60)(2,"div",110)(3,"div",47)(4,"h2",97),e.EFF(5,"Subscription ID"),e.k0s(),e.j41(6,"div",111),e.EFF(7),e.j41(8,"span"),e.nrm(9,"ngx-copy-text",112),e.k0s()()()()()()),2&n){const t=e.XpG(2);e.R7$(7),e.SpI("",(null==t.view_data.subscription_template?null:t.view_data.subscription_template.template_id)||"Not Available"," "),e.R7$(2),e.FS9("text",(null==t.view_data.subscription_template?null:t.view_data.subscription_template.template_id)||"Not Available")}}function kP(n,a){if(1&n){const t=e.RV6();e.j41(0,"nb-card",45)(1,"nb-card-header",46)(2,"div",12)(3,"div",47)(4,"h2",48),e.
1EFF(5),e.k0s(),e.j41(6,"div",49),e.DNE(7,dP,2,0,"span",50)(8,uP,2,0,"span",51),e.k0s()()(),e.j41(9,"div",52)(10,"div",53),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.stepperChange("overview"))}),e.j41(11,"span",54),e.EFF(12,"Overview"),e.k0s()(),e.j41(13,"div",55),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.stepperChange("userDetails"))}),e.j41(14,"span",54),e.EFF(15,"User Details"),e.k0s()(),e.j41(16,"div",55),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.stepperChange("billingHistory"))}),e.j41(17,"span",54),e.EFF(18,"Billing History"),e.k0s()(),e.j41(19,"div",55),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.stepperChange("subscriptionsDetails"))}),e.j41(20,"span",54),e.EFF(21,"Subscription Details"),e.k0s()()()(),e.j41(22,"nb-card-body",56),e.DNE(23,mP,67,25,"div",27)(24,_P,26,5,"div",27)(25,yP,12,1,"div",27)(26,CP,10,2,"div",27),e.k0s(),e.j41(27,"nb-card-footer")(28,"button",57),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.viewClose())}),e.EFF(29,"Close"),e.k0s()()()}if(2&n){const t=e.XpG();e.R7$(5),e.Lme("",(null==t.other_data.subscription_template?null:t.other_data.subscription_template.plan_name)||"Not Available"," - ",(null==t.other_data.customer?null:t.other_data.customer.customer_name)||"Not Available",""),e.R7$(2),e.Y8G("ngIf",t.view_data.is_active),e.R7$(),e.Y8G("ngIf",!t.view_data.is_active),e.R7$(2),e.Y8G("ngClass","overview"===t.selectedTab?"stepper-container_active":"stepper-container"),e.R7$(),e.Y8G("ngClass","overview"===t.selectedTab?"tep_name":"tep_name-de"),e.R7$(2),e.Y8G("ngClass","userDetails"===t.selectedTab?"stepper-container_active":"stepper-container"),e.R7$(),e.Y8G("ngClass","userDetails"===t.selectedTab?"tep_name":"tep_name-de"),e.R7$(2),e.Y8G("ngClass","billingHistory"===t.selectedTab?"stepper-container_active":"stepper-container"),e.R7$(),e.Y8G("ngClass","billingHistory"===t.selectedTab?"tep_name":"tep_name-de"),e.R7$(2),e.Y8G("ngClass","subscriptionsDetails"===t.selectedTab?"stepper-container_active":"stepper-container"),e.R7$(),e.Y8G("ngClass","subscriptionsDetails"===t.selectedTab?"tep_name":"tep_name-de"),e.R7$(3),e.Y8G("ngIf","overview"===t.selectedTab),e.R7$(),e.Y8G("ngIf","userDetails"===t.selectedTab),e.R7$(),e.Y8G("ngIf","billingHistory"===t.selectedTab),e.R7$(),e.Y8G("ngIf","subscriptionsDetails"===t.selectedTab)}}let wP=(()=>{class n{constructor(t,r,i,s,p){this.dialogService=t,this.toastr=r,this.subscriptionLinkService=i,this.router=s,this.route=p,this.is_loading_1=!1,this.activeU=!0,this.InvitedU=!0,this.selectedTab="overview",this.allCustomer=[],this.view_data=[],this.statusMap={pending_for_card:{label:"Pending For Card",class:"pending"},trialing:{label:"Trialing",class:"trial"},payment_failed:{label:"Payment Failed",class:"failed"},active:{label:"Active",class:"active"},inactive:{label:"Inactive",class:"inactive"}}}ngOnInit(){this.getAllCustomer()}openView(t,r){this.getCustomerById(r.id),this.other_data=r,this.view_model=this.dialogService.open(t,{closeOnBackdropClick:!1})}viewClose(){this.view_model.close()}stepperChange(t){this.selectedTab=t}getAllCustomer(){this.is_loading_1=!0,this.subscriptionLinkService.getAllCustomerData(this.route.snapshot.params.id).then(t=>{200==t.status?(this.is_loading_1=!1,t.data?(this.allCustomer=t?.data,console.log(this.allCustomer,"all customer"),console.log(t.data,"3333333333333333333")):this.toastr.showToast("danger","Error!","Internal Server Error.")):(this.is_loading_1=!1,this.toastr.showToast("danger","Error!","Internal Server Error."))})}getCustomerById(t){this.is_loading_1=!0,this.subscriptionLinkService.getCustomerDataById(t).then(r=>{200==r.status?(this.is_loading_1=!1,r.data?(this.view_data=r?.data,console.log(this.allCustomer,"get coustomer by id"),console.log(r.data,"3333333333333333333")):this.toastr.showToast("danger","Error!","Internal Server Error.")):(this.is_loading_1=!1,this.toastr.showToast("danger","Error!","Internal Server Error."))})}formatDate(t){const r=new Date(t);return r.getFullYear(),`${["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][r.getMonth()]} ${String(r.getDate()).padStart(2,"0")}`}formatPhone(t){if(!t)return"Not Available";let r=t.startsWith("+94")?t.replace("+94",""):t.startsWith("94")?t.substring(2):t.startsWith("0")?t.substring(1):t;return`+94 ${r.substring(0,3)} ${r.substring(3,6)} ${r.substring(6)}`}getUserDetails(t){return t?Object.keys(t).map(r=>({key:r,value:t[r]})):[]}getStatusClass(t){switch(t){case"SUCCESS":return"MPGS_FAILED";case"PENDING":return"MPGS_SUCCESS";case"FAILED":case"MPGS_FAILED":return"failed";default:return"unknown"}}getStatusLabel(t){return this.statusMap[t]?.label||"Unknown"}getStatusClass2(t){return this.statusMap[t]?.class||"unknown"}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(E.S0W),e.rXU(Dt.V4),e.rXU(b0),e.rXU(qe.Ix),e.rXU(qe.nX))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-view-subscription-links"]],decls:59,vars:3,consts:[["childRef",""],["dialogView",""],["noCard",""],[1,"body-style","
1ipg-transaction-root"],[1,"container"],["href","/pages/subscription-link",2,"text-decoration","none","color","#718096","font-size","13px","font-weight","500"],[2,"margin-right","4px"],["aria-hidden","true",1,"fa","fa-arrow-left"],[1,"row","mb-4"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"page-heading"],[1,"col"],[1,"row"],[1,"col-6","d-flex","justify-content-start","align-items-center"],[1,"input-container"],["type","text","placeholder","Search transaction"],[1,"search-icon"],["src","../../../../assets/images/search.png","alt","Search Icon",1,"search-img"],[1,"col-6","d-flex","justify-content-end","align-items-center"],["placeholder","Select Reason",1,"selecter_","width_1"],["value",""],["value","LKR"],["value","USD"],[1,"col","d-flex","flex-column","px-0","list-like-table"],[1,"table-responsive"],[1,"table","table-sm","align-top"],[2,"text-transform","uppercase"],[4,"ngIf"],["class","d-flex justify-content-center align-items-center","style","height: 20rem;",4,"ngIf"],["class","d-flex justify-content-center align-items-center table-no-data-div","style","height: 20rem;",4,"ngIf"],[4,"ngFor","ngForOf"],[2,"color","black"],[1,"badge-status2",3,"ngClass"],[4,"ngIf","ngIfElse"],[1,"d-flex","justify-content-around"],[1,"btn-group"],["data-toggle","dropdown","aria-expanded","false","src","../../../../assets/images/more.png",1,"more_i"],[1,"dropdown-menu","dropdown-menu-right"],["type","button",1,"dropdown-item",3,"click"],["icon","eye-outline"],[2,"font-size","14px","font-weight","500","color","#04334D","margin-left","10px"],[1,"d-flex","justify-content-center","align-items-center",2,"height","20rem"],["role","status",1,"spinner-border","text-primary"],[1,"visually-hidden"],[1,"d-flex","justify-content-center","align-items-center","table-no-data-div",2,"height","20rem"],[2,"width","60vw"],[2,"font-family","'Poppins'"],[1,"col-12","d-flex","justify-content-between","align-items-center"],[1,"popup_heading"],[1,""],["class","bage success_pop",4,"ngIf"],["class","bage bad_pop",4,"ngIf"],[1,"steper"],[1,"stepper-container","one",3,"click","ngClass"],[3,"ngClass"],[1,"stepper-container","two",3,"click","ngClass"],[1,"dialog-border",2,"font-family","'Poppins'","max-height","65vh","overflow-y","auto"],[1,"btn_common","btC_unique","mr-2",2,"float","right",3,"click"],[1,"bage","success_pop"],[1,"bage","bad_pop"],[1,"tab-content","mt-3"],[1,"col-6"],[1,"menu_itam","overview_menu"],[2,"width","100%"],[1,"menu_sub1",2,"text-transform","capitalize"],[1,"menu_sub2","mt-2","mb-3"],[1,"menu_div"],[1,"col-12"],[1,"d-flex","align-items-center"],[1,"d-flex"],["src","../../../../assets/subscription/logo.png","alt","Company Logo",1,"company-logo","mr-3"],[2,"margin-right","10px"],[1,"banner_header"],[1,"banner_desc","mb-0"],[1,"menu_itam",2,"background-color","white"],[1,"menu_sub1"],[1,"menu_sub2","mt-2","mb-3",2,"color","black"],["class","card-logo","src","../../../../assets/svgs/master-card.svg","loading","lazy","alt","master",4,"ngIf"],["class","card-logo","src","../../../../assets/svgs/visa.svg","loading","lazy","alt","visa",4,"ngIf"],["class","card-logo","src","../../../../assets/svgs/amex.svg","loading","lazy","alt","amex",4,"ngIf"],[1,"row","mt-3"],[1,"col-5"],[1,"col-7"],[1,"row","line_space"],[1,"pop_sub_head"],[1,"sub_head_data"],[1,"hr_"],[1,"pop_sub_head_net"],[1,"sub_head_data_net",2,"color","black"],["src","../../../../assets/svgs/master-card.svg","loading","lazy","alt","master",1,"card-logo"],["src","../../../../assets/svgs/visa.svg","loading","lazy","alt","visa",1,"card-logo"],["src","../../../../assets/svgs/amex.svg","loading","lazy","alt","amex",1,"card-logo"],[1,"menu_itam","userDetails_menu"],[1,"menu_sub2","mb-2",2,"line-height","85%"],[1,"menu_sub2","mb-2"],["class","col-6",4,"ngFor","ngForOf"],[1,"row","mt-2"],[1,"lable_"],[1,"lable_data"],[1,"new_table"],[1,"row","table-head"],[1,"col-3"],[1,"col-3",2,"padding-left","5px"],[1,"table_data_grid"],["class","row table-data",4,"ngFor","ngForOf"],[1,"row","table-data"],["class","badge-status active",4,"ngIf"],["class","badge-status inactive",4,"ngIf"],[1,"badge-status","active"],[1,"badge-status","inactive"],[1,"row","mt-3","mb-3"],[1,"subscriptions_details"],[1,"copy_icon",3,"text"]],template:function(r,i){1&r&&(e.j41(0,"div",3)(1,"div",4)(2,"p")(3,"a",5)(4,"span",6),e.nrm(5,"i",7),e.k0s(),e.EFF(6,"Back"),e.k0s()(),e.j41(7,"div",8)(8,"div",9)(9,"h2",10),e.EFF(10,"Subscription Links"),e.k0s()()(),e.j41(11,"div",8)(12,"div",11)(13,"nb-card")(14,"nb-card-body")(15,"div",12)(16,"div",13)(17,"div",14),e.nrm(18,"input",15),e.j41(19,"span",16),e.nrm(20,"img",17),e.k0s()()(),e.j41(21,"div",18)(22,"select",19)(23,"option",20),e.EFF(24,"Today"),e.k0s(),e.j41(25,"option",21),e.EFF(26,"App 1"),e.k0s(),e.j41(27,"option",22),e.EFF(28,"App 2"),e.k0s()()()(),e.nrm(29,"ngx-dashboard-subscription-links",null,0),e.j41(31,"div",23)(32,"div",24)(33,"table",25)(34,"thead")(35,"tr",26)(36,"th"),e.EFF(37,"Customer"),e.k0s(),e.j41(38,"th"),e.EFF(39,"Email"),e.k0s(),e.j41(40,"th"),e.EFF(41,"Currency & Amount"),e.k0s(),e.j41(42,"th"),e.EFF(43,"Plan Type/ Plan Name"),e.k0s(),e.j41(44,"th"),e.EFF(45,"Billing Cycle"),e.k0s(),e.j41(46,"th"),e.EFF(47,"Next Action at"),e.k0s(),e.j41(48,"th"),e.EFF(49,"Status"),e.k0s(),e.j41(50,"th"),e.EFF(51,"Payment Method"),e.k0s(),e.j41(52,"th"),e.EFF(53,"Action"),e.k0s()()(),e.DNE(54,sP,2,1,"tbody",27),e.k0s(),e.DNE(55,lP,4,0,"div",28)(56,cP,3,0,"div",29),e.k0s()()()()()()()(),e.DNE(57,kP,30,16,"ng-template",null,1,e.C5r)),2&r&&(e.R7$(54),e.Y8G("ngIf",!i.is_loading_1),e.R7$(),e.Y8G("ngIf",i.is_loading_1),e.R7$(),e.Y8G("ngIf",!i.is_loading_1&&i.allCustomer.length<1))},dependencies:[Fe.YU,Fe.Sq,Fe.bT,ie.xH,ie.y7,Pl.a,E.SrT,E.KH5,E.VDm,E.zJv,E.tHu,bx,Fe.QX,Fe.vh],styles:['.ipg-transaction-root[_ngcontent-%COMP%] nb-badge[_ngcontent-%COMP%]{position:absolute;top:39%;left:15px;width:-moz-fit-content;width:fit-content}.transaction-view-modal[_ngcontent-%COMP%]{width:40rem;height:85vh}.transaction-view-modal[_ngcontent-%COMP%] nb-badge[_ngcontent-%COMP%]{position:absolute;
1left:15px;top:50%;transform:translateY(0);width:-moz-fit-content;width:fit-content}.menu_itam[_ngcontent-%COMP%]{width:100%;height:124px;padding:32px 1px;border-radius:8px;border:1px solid #E4E4E4;background:#f4f4f4}.count-user[_ngcontent-%COMP%]{font-weight:700;font-size:32px;color:#1a202c;text-align:center}.count-user_O[_ngcontent-%COMP%]{font-weight:700;font-size:32px;color:#c6c6c6;text-align:center}.count-user-name[_ngcontent-%COMP%]{font-weight:500;font-size:16px;color:#4d4d4d;text-align:center}.dashbord-tab[_ngcontent-%COMP%]{padding-right:6px!important;padding-left:6px!important}.ipg-filter[_ngcontent-%COMP%]{width:500px;float:right!important}.ipg-filter-content[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:none;height:100%;border-radius:0;outline:0}.primary-green-btn[_ngcontent-%COMP%]{background:#000!important;text-transform:capitalize!important}.search[_ngcontent-%COMP%]{margin-left:12px;margin-top:11px}.more_i[_ngcontent-%COMP%]{width:auto;height:15px;cursor:pointer}.btn.dropdown-toggle[_ngcontent-%COMP%]{display:none}.more_i[_ngcontent-%COMP%]{position:relative;top:3px}.drop_icon[_ngcontent-%COMP%]{width:13px;height:13px}.overridee[_ngcontent-%COMP%]{align-items:baseline!important}.icon-main[_ngcontent-%COMP%]{position:absolute;z-index:1;margin-top:10px;margin-left:13px}.icon-sub-sign[_ngcontent-%COMP%]{display:inline;color:#667085;font-weight:100}.sign-input[_ngcontent-%COMP%]{padding-left:52px!important;width:100%}th[_ngcontent-%COMP%]{text-transform:uppercase}.input-container[_ngcontent-%COMP%]{position:relative;display:inline-block;width:100%;max-width:400px}.input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;padding:8px 10px 8px 32px;font-size:16px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box}.input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{position:absolute;left:10px;top:50%;transform:translateY(-50%);font-size:16px;color:#888;pointer-events:none}.search-img[_ngcontent-%COMP%]{width:14px;height:auto}.selecter_[_ngcontent-%COMP%]{background-color:#fff;border-color:#d0d5dd;color:#98a2b3;line-height:1.5rem;padding:.2375rem 1rem;font-size:14px!important;font-weight:400!important;border-radius:.25rem;height:36px;float:right;width:110px}.menu_itam[_ngcontent-%COMP%]{width:100%;height:48px;padding:10px 1px;border-radius:6px;background:#f4f4f4;cursor:pointer;display:flex;align-items:center;justify-content:center}.menu_itam2[_ngcontent-%COMP%]{width:auto;height:36px;padding:10px 15px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;float:right;background:#fff;border:1px solid #D0D5DD;color:#98a2b3}.clicked[_ngcontent-%COMP%]{background:#effff4;border:1px solid #036B26;color:#036b26}.clicked2[_ngcontent-%COMP%]{background:#fff;border:1px solid #D0D5DD;color:#98a2b3}.ipg-dashbord-right[_ngcontent-%COMP%]{padding-right:0!important}.button_name[_ngcontent-%COMP%]{font-size:12px;line-height:20px;font-weight:400}.button_img[_ngcontent-%COMP%]{width:20px;height:auto;margin-right:6px}.table-view-btn-3[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 12px;border:none;color:#04334d;cursor:pointer;border-radius:4px;box-shadow:0 4px 6px #0000001a;background-color:#fff}.button_img[_ngcontent-%COMP%]{width:16px;height:16px;display:inline-block}.table-view-btn-3[_ngcontent-%COMP%]:hover{box-shadow:0 6px 10px #00000026}.menu_refresh[_ngcontent-%COMP%]{width:auto;height:48px;padding:10px 15px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;float:right;background:#000;color:#fff;margin-left:15px}.istalment_plan[_ngcontent-%COMP%]{margin-bottom:15px!important}.slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0;background-color:#ccc;transition:.4s}.slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:10px;width:10px;left:4px;bottom:4px;background-color:#fff;transition:.4s}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]{background-color:#2196f3}input[_ngcontent-%COMP%]:focus + .slider[_ngcontent-%COMP%]{box-shadow:0 0 1px #2196f3}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{transform:translate(16px)}.slider.round[_ngcontent-%COMP%]{border-radius:34px}.slider.round[_ngcontent-%COMP%]:before{border-radius:50%}.switch[_ngcontent-%COMP%]{position:relative;display:inline-block;width:35px;height:18px}.switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{opacity:0;width:0;height:0}
1.create-green-btn[_ngcontent-%COMP%]{background:#004d14!important;color:#fff!important}.table[_ngcontent-%COMP%] .thead-light[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#495057;background-color:transparent;border:none!important}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-bottom:hidden;border-top:hidden;font-size:14px;color:#1c1c1c;font-weight:500}.table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-top:none;font-size:14px;color:#4b4b4b}.item_invoice_t[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-top:5px!important;padding-bottom:0!important}.in_ad_line[_ngcontent-%COMP%]{display:block;font-size:14px;font-weight:500;color:#344054;line-height:21px}.pencil[_ngcontent-%COMP%]{width:12px;height:12px;color:red}.pencil_table[_ngcontent-%COMP%]{width:12px;height:12px;color:#000!important;margin-right:5px}.delete_table[_ngcontent-%COMP%]{width:auto;height:32px;cursor:pointer}.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.data_table_lable[_ngcontent-%COMP%]{margin-top:10px}.div_line_in_table[_ngcontent-%COMP%]{width:100%;border-bottom:1px solid #DADADA;margin-top:5px;margin-bottom:5px}.pencil_plus[_ngcontent-%COMP%]{width:32px;height:32px;cursor:pointer}
1.label-name[_ngcontent-%COMP%]{margin-bottom:6px!important;color:#344054;font-size:14px;font-weight:500}.required_feeld[_ngcontent-%COMP%]{color:red;margin-left:5px}.text-danger[_ngcontent-%COMP%]{float:left!important}.item_invoice_t[_ngcontent-%COMP%] .other_td[_ngcontent-%COMP%]{font-weight:600;font-size:16px;color:#344054}.des_invoice[_ngcontent-%COMP%]{font-size:14px!important;color:#6a707a!important;font-weight:600!important}.icon_border[_ngcontent-%COMP%]{width:36px;height:36px;border:1px solid #ccc;border-radius:6px;display:flex;align-items:center;justify-content:center}.delete_table[_ngcontent-%COMP%]{width:14px;height:20px;cursor:pointer}.plus_table[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.colNew-1[_ngcontent-%COMP%]{width:90%}.colNew-2[_ngcontent-%COMP%]{width:10%}.badge-status[_ngcontent-%COMP%]{display:inline-block;padding:2px 12px;font-size:12px;font-weight:500;border-radius:10px;text-transform:uppercase}.badge-status.inactive[_ngcontent-%COMP%]{background-color:#ef4444}.steper[_ngcontent-%COMP%]{display:flex;flex-direction:row}.stepper-container[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:20px;padding-bottom:5px;cursor:pointer}.stepper-container_active[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:20px;padding-bottom:5px;border-bottom:2px solid #064E3B}.tep_name[_ngcontent-%COMP%]{color:#064e3b;font-size:14px;font-weight:600;margin-right:8px}.tep_name-de[_ngcontent-%COMP%]{color:#838383;font-size:14px;font-weight:400;margin-right:8px}.steper[_ngcontent-%COMP%]{display:flex;align-items:center}.bage[_ngcontent-%COMP%]{padding:2px 15px;font-size:14px;font-weight:600;border-radius:4px}.success_pop[_ngcontent-%COMP%]{border:1px solid #036B26;color:#036b26;background-color:#effff4}.bad_pop[_ngcontent-%COMP%]{border:1px solid #FF3B30;color:#ff3b30;background-color:#ff3b3033}.popup_heading[_ngcontent-%COMP%]{font-size:24px;color:#1e1e1e;font-weight:600}.menu_itam[_ngcontent-%COMP%]{width:100%;height:auto;padding:16px;border-radius:6px;display:flex;align-items:center;justify-content:start;font-size:14px;transition:all .2s ease-in-out;border:1px solid var(--Gray, #BCBCBC)}.overview_menu[_ngcontent-%COMP%]{background:#e8fff380}.menu_sub1[_ngcontent-%COMP%]{font-weight:400;color:#838383;font-size:12px}.menu_sub2[_ngcontent-%COMP%]{font-weight:600;color:#064e3b;font-size:32px}.menu_div[_ngcontent-%COMP%]{width:100%;height:auto;border:1px solid #BCBCBC;border-radius:4px;padding:8px;background-color:#fff}.company-logo[_ngcontent-%COMP%]{width:auto;height:45px;object-fit:contain;border-radius:50%}.card-logo[_ngcontent-%COMP%]{width:auto;height:38px;object-fit:contain}.banner_header[_ngcontent-%COMP%]{font-size:14px;font-weight:500;line-height:145%}.banner_desc[_ngcontent-%COMP%]{font-size:10px;font-weight:500;line-height:145%;color:#838383}.pop_sub_head[_ngcontent-%COMP%], .sub_head_data[_ngcontent-%COMP%]{font-size:10px;color:#838383;font-weight:400}.hr_[_ngcontent-%COMP%]{border:1px solid #BCBCBC;margin-top:5px;margin-bottom:10px}.pop_sub_head_net[_ngcontent-%COMP%]{font-size:16px;font-weight:500}.sub_head_data_net[_ngcontent-%COMP%]{font-size:24px;font-weight:600}.btn_common[_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;text-align:center;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;vertical-align:middle;padding:10px 18px;font-weight:600;border-radius:4px;transition:all .2s ease-in-out;font-size:12px}.btC_unique[_ngcontent-%COMP%]{border:1px solid #667185;color:#667185;background-color:transparent}.userDetails_menu[_ngcontent-%COMP%]{background-color:#e8fff380}.lable_[_ngcontent-%COMP%]{color:#064e3b;font-size:14px;line-height:145%;font-weight:600}.lable_data[_ngcontent-%COMP%]{color:#838383;font-size:14px;line-height:145%;font-weight:400}.table-head[_ngcontent-%COMP%]{font-size:14px;color:#064e3b;font-weight:600;margin-bottom:10px}.table-data[_ngcontent-%COMP%]{font-size:14px;color:#838383;font-weight:400;margin-bottom:10px}.badge-status[_ngcontent-%COMP%]{display:inline-block;padding:0 12px;font-size:12px;font-weight:500;border-radius:10px;text-transform:uppercase}.badge-status.active[_ngcontent-%COMP%]{background-color:#d0ffcc;color:#036b26}.badge-status.inactive[_ngcontent-%COMP%]{background-color:#eb001b33;color:#ff3b30}.badge-status.pending[_ngcontent-%COMP%]{background-color:#facc15;color:#000}.table_data_grid[_ngcontent-%COMP%]{max-height:50vh;overflow-y:scroll;overflow-x:hidden}.addones_menu[_ngcontent-%COMP%]{background-color:#fff}.menu_subAddones[_ngcontent-%COMP%]{font-weight:400;color:#838383;font-size:12px;line-height:15px}.pop_sub_head_addones[_ngcontent-%COMP%]{font-size:16px;font-weight:500}.sub_head_data_addone[_ngcontent-%COMP%]{font-size:24px;font-weight:600}.subscriptions_details[_ngcontent-%COMP%]{font-size:14px;color:#667185;font-weight:600}.menu_itamDecline[_ngcontent-%COMP%]{width:100%;padding:10px;border-radius:4px;border:.5px solid #FF3B30;background:#feeeee}.btn_common_billingHistory[_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;text-align:center;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;vertical-align:middle;padding:5px 18px;font-weight:500;border-radius:4px;transition:all .2s ease-in-out;font-size:10px;border:1px solid #BCBCBC;color:#838383;width:100%}.lable_History[_ngcontent-%COMP%]{color:#1e1e1e;font-weight:500;font-size:12px}.badge-status[_ngcontent-%COMP%]{padding:4px 10px;border-radius:12px;font-size:12px;font-weight:500}.badge-status2.active[_ngcontent-%COMP%]{background:#d4edda;color:#155724}.badge-status2.pending[_ngcontent-%COMP%]{background:#fff3cd;color:#856404}.badge-status2.failed[_ngcontent-%COMP%]{background:#f8d7da;color:#721c24}.badge-status2.inactive[_ngcontent-%COMP%]{background:#e2e3e5;color:#6c757d}.badge-status2.trial[_ngcontent-%COMP%]{background:#cce5ff;color:#004085}.badge-status2[_ngcontent-%COMP%]{display:inline-block;padding:4px 12px;font-size:12px;font-weight:500;border-radius:10px;line-height:120%}.dropdown-item[_ngcontent-%COMP%]:focus, .dropdown-item[_ngcontent-%COMP%]:active{background-color:transparent!important;color:inherit!important;outline:none!important;box-shadow:none!important}']})}return n})();var O4=bn(22091);const yx=(n,a)=>({clicked:n,clicked2:a}),FP=n=>({"background-color":n}),AP=n=>({color:n}),TP=(n,a)=>({"background-color":n,color:a}),_c=n=>({"form-control-danger":n}),SP=(n,a)=>({color:n,"background-color":a}),y0=(n,a)=>
1({clicked_billing:n,clicked2_billing:a});function EP(n,a){1&n&&(e.j41(0,"small",103),e.EFF(1," Plan type is required! "),e.k0s())}function PP(n,a){1&n&&(e.j41(0,"small",103),e.EFF(1," Plan name is required! "),e.k0s())}function MP(n,a){1&n&&(e.j41(0,"small",103),e.EFF(1," Description is required! "),e.k0s())}function OP(n,a){1&n&&(e.j41(0,"small",103),e.EFF(1," Trial duration must be at least 1 day. "),e.k0s())}function DP(n,a){1&n&&(e.j41(0,"small",103),e.EFF(1," Trial duration cannot exceed 28 days. "),e.k0s())}function IP(n,a){if(1&n&&(e.j41(0,"div")(1,"div",15)(2,"div",69)(3,"label",58),e.EFF(4,"Trial duration "),e.j41(5,"span",39),e.EFF(6,"*"),e.k0s()(),e.nrm(7,"input",104),e.j41(8,"div",62),e.DNE(9,OP,2,0,"small",41)(10,DP,2,0,"small",41),e.k0s()()()()),2&n){const t=e.XpG(2);e.R7$(7),e.Y8G("ngClass",e.eq3(3,_c,(t.createform.get("trial_duration").dirty||t.createform.get("trial_duration").touched)&&t.createform.get("trial_duration").errors)),e.R7$(2),e.Y8G("ngIf",t.createform.get("trial_duration").hasError("min")&&(t.createform.get("trial_duration").dirty||t.createform.get("trial_duration").touched)),e.R7$(),e.Y8G("ngIf",t.createform.get("trial_duration").hasError("max")&&(t.createform.get("trial_duration").dirty||t.createform.get("trial_duration").touched))}}function jP(n,a){1&n&&(e.j41(0,"small",103),e.EFF(1," Currency is required! "),e.k0s())}function RP(n,a){1&n&&(e.j41(0,"small",105),e.EFF(1," Amount is required! "),e.k0s())}function LP(n,a){1&n&&(e.j41(0,"small",103),e.EFF(1," Surcharge is required! "),e.k0s())}function NP(n,a){1&n&&(e.j41(0,"small",105),e.EFF(1," Setup fee is required! "),e.k0s())}function BP(n,a){if(1&n&&(e.j41(0,"div",15)(1,"div",69)(2,"label",58),e.EFF(3," Set-up fee "),e.j41(4,"span",39),e.EFF(5,"*"),e.k0s()(),e.j41(6,"div",80),e.nrm(7,"input",106),e.j41(8,"span",82),e.EFF(9),e.k0s()(),e.j41(10,"span",79),e.EFF(11,"Enter a one-time setup fee to be charged at the start."),e.k0s(),e.j41(12,"div",62),e.DNE(13,NP,2,0,"small",78),e.k0s()()()),2&n){const t=e.XpG(2);e.R7$(7),e.Y8G("ngClass",e.eq3(3,_c,(t.createform.get("setup_fee").dirty||t.createform.get("setup_fee").touched)&&t.createform.get("setup_fee").errors)),e.R7$(2),e.JRh(t.createform.value.currency),e.R7$(4),e.Y8G("ngIf",t.createform.get("setup_fee").invalid&&(t.createform.get("setup_fee").dirty||t.createform.get("setup_fee").touched))}}function GP(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",107)(1,"div",96)(2,"div",97),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.createform.get("setup_fee_trigger").setValue("pick_day"))}),e.j41(3,"p",19),e.EFF(4,"First billing day"),e.k0s(),e.j41(5,"p",98),e.EFF(6,"Charge with the first payment"),e.k0s()()(),e.j41(7,"div",99)(8,"div",97),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.createform.get("setup_fee_trigger").setValue("sign_up"))}),e.j41(9,"p",19),e.EFF(10,"On Sign-up"),e.k0s(),e.j41(11,"p",98),e.EFF(12,"Charge when subscription started"),e.k0s()()()()}if(2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngClass",e.l_i(2,y0,"pick_day"===t.createform.get("setup_fee_trigger").value,"pick_day"!==t.createform.get("setup_fee_trigger").value)),e.R7$(6),e.Y8G("ngClass",e.l_i(5,y0,"sign_up"===t.createform.get("setup_fee_trigger").value,"sign_up"!==t.createform.get("setup_fee_trigger").value))}}function VP(n,a){1&n&&(e.j41(0,"small",105),e.EFF(1," Interval fee is required! "),e.k0s())}function zP(n,a){1&n&&(e.j41(0,"small",103),e.EFF(1," Date is required! "),e.k0s())}function UP(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,zP,2,0,"small",41),e.k0s()),2&n){let t;const r=e.XpG(3);e.R7$(),e.Y8G("ngIf",null==(t=r.createform.get("billing_day").errors)?null:t.required)}}function YP(n,a){if(1&n&&(e.j41(0,"div",68)(1,"div",108),e.nrm(2,"input",109),e.DNE(3,
1UP,2,1,"div",20),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("min",t.currentDate),e.R7$(),e.Y8G("ngIf",t.createform.get("billing_day").invalid&&(t.createform.get("billing_day").dirty||t.createform.get("billing_day").touched))}}function WP(n,a){1&n&&(e.j41(0,"small",103),e.EFF(1," Date is required! "),e.k0s())}function $P(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,WP,2,0,"small",41),e.k0s()),2&n){let t;const r=e.XpG(3);e.R7$(),e.Y8G("ngIf",null==(t=r.createform.get("end_date").errors)?null:t.required)}}function qP(n,a){if(1&n&&(e.j41(0,"div",68)(1,"div",108),e.nrm(2,"input",110),e.DNE(3,$P,2,1,"div",20),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("min",t.currentDate),e.R7$(),e.Y8G("ngIf",t.createform.get("end_date").invalid&&(t.createform.get("end_date").dirty||t.createform.get("end_date").touched))}}function XP(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",53)(2,"div",54)(3,"h2",55),e.EFF(4,"Basic Info"),e.k0s()()(),e.j41(5,"form",56)(6,"div",15)(7,"div",57)(8,"label",58),e.EFF(9," Select Plan Type "),e.j41(10,"span",39),e.EFF(11,"*"),e.k0s()(),e.j41(12,"select",59)(13,"option",60),e.EFF(14,"Select plan type"),e.k0s(),e.j41(15,"option",61),e.EFF(16,"Membership Programs"),e.k0s()(),e.j41(17,"div",62),e.DNE(18,EP,2,0,"small",41),e.k0s()(),e.j41(19,"div",63)(20,"label",58),e.EFF(21,"Plan Name "),e.j41(22,"span",39),e.EFF(23,"*"),e.k0s()(),e.nrm(24,"input",64),e.j41(25,"div",62),e.DNE(26,PP,2,0,"small",41),e.k0s()()(),e.j41(27,"div",15)(28,"div",65)(29,"label",66),e.EFF(30," Description "),e.j41(31,"span",39),e.EFF(32,"*"),e.k0s()(),e.nrm(33,"textarea",67),e.j41(34,"div",62),e.DNE(35,MP,2,0,"small",41),e.k0s()()(),e.j41(36,"div",68)(37,"div",69)(38,"div",70),e.nrm(39,"input",71),e.j41(40,"label",72),e.EFF(41,"This plan has trial period"),e.k0s()()()(),e.DNE(42,IP,11,5,"div",20),e.j41(43,"div",15)(44,"div",24)(45,"h2",55),e.EFF(46,"Pricing"),e.k0s()()(),e.j41(47,"div",15)(48,"div",73)(49,"label",58),e.EFF(50,"Currency "),e.j41(51,"span",39),e.EFF(52,"*"),e.k0s()(),e.j41(53,"select",74)(54,"option",60),e.EFF(55,"Select Currency"),e.k0s(),e.j41(56,"option",75),e.EFF(57,"LKR"),e.k0s(),e.j41(58,"option",76),e.EFF(59,"USD"),e.k0s()(),e.j41(60,"div",62),e.DNE(61,jP,2,0,"small",41),e.k0s()(),e.j41(62,"div",73)(63,"label",58),e.EFF(64,"Amount "),e.j41(65,"span",39),e.EFF(66,"*"),e.k0s()(),e.nrm(67,"input",77),e.j41(68,"div",62),e.DNE(69,RP,2,0,"small",78),e.k0s(),e.j41(70,"span",79),e.EFF(71,"Enter the amount to be charged each billing cycle."),e.k0s()(),e.j41(72,"div",73)(73,"label",58),e.EFF(74,"Surcharge"),e.k0s(),e.j41(75,"div",80),e.nrm(76,"input",81),e.j41(77,"span",82),e.EFF(78,"%"),e.k0s()(),e.j41(79,"span",79),e.EFF(80,"Optional additional percentage added to the base amount."),e.k0s(),e.j41(81,"div",62),e.DNE(82,LP,2,0,"small",41),e.k0s()()(),e.j41(83,"div",15)(84,"div",83)(85,"div",70),e.nrm(86,"input",84),e.j41(87,"label",85),e.EFF(88," This plan has a set-up fee "),e.k0s()()()(),e.DNE(89,BP,14,5,"div",86)(90,GP,13,8,"div",87),e.j41(91,"div",11)(92,"div",24)(93,"h2",55),e.EFF(94,"Billing Schedule"),e.k0s()()(),e.j41(95,"div",15)(96,"div",69)(97,"label",58),e.EFF(98,"Interval Between Payments"),e.j41(99,"span",39),e.EFF(100,"*"),e.k0s()(),e.j41(101,"div",80)(102,"select",88)(103,"option",60),e.EFF(104,"Select interval"),e.k0s(),e.j41(105,"option",89),e.EFF(106,"Daily"),e.k0s(),e.j41(107,"option",90),e.EFF(108,"Weekly"),e.k0s(),e.j41(109,"option",91),e.EFF(110,"Monthly"),e.k0s(),e.j41(111,"option",92),e.EFF(112,"Yearly"),e.k0s()()(),e.j41(113,"span",79),e.EFF(114,"Select how often the customer should be billed (e.g., monthly, yearly)"),e.k0s(),e.j41(115,"div",62),e.DNE(116,VP,2,0,"small",78),e.k0s()()(),e.j41(117,"div",93)(118,"div",24)(119,"label",94),e.EFF(120,"Billing Day"),e.j41(121,"span",39),e.EFF(122,"*"),e.k0s()()()(),e.j41(123,"div",15)(124,"div",24)(125,"span",95),e.EFF(126,"Choose when you customers will be billed"),e.k0s()()(),e.j41(127,"div",15)(128,"div",96)(129,"div",97),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.createform.get("billing_trigger").setValue("sign_up"))}),e.j41(130,"p",19),e.EFF(131,"On Sign-up"),e.k0s(),e.j41(132,"p",98),e.EFF(133,"Billed on day of activation"),e.k0s()()(),e.j41(134,"div",99)(135,"div",100),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.createform.get("billing_trigger").setValue("pick_day"))}),e.j41(136,"div",101),e.EFF(137,"Coming Soon"),e.k0s(),e.j41(138,"p",19),e.EFF(139,"Pick a Day"),e.k0s(),e.j41(140,"p",98),e.EFF(141,"Billed on specific day"),e.k0s()()()(),e.DNE(142,YP,4,2,"div",102),e.j41(143,"div",93)(144,"div",24)(145,"label",94),e.EFF(146,"End of Term "),e.j41(147,"span",39),e.EFF(148,"*"),e.k0s()()()(),e.j41(149,"div",15)(150,"div",24)(151,"span",95),e.EFF(152,"Choose when your customers billing ends"),e.k0s()()(),e.j41(153,"div",15)(154,"div",96)(155,"div",97),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.createform.get("end_policy").setValue("until_cancel"))}),e.j41(156,"p",19),e.EFF(157,"Until cancel"),e.k0s(),e.j41(158,"p",98),e.EFF(159,"The plan continuous until cancelled "),e.k0s()()(),e.j41(160,"div",99)(161,"div",97),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.createform.get("end_policy").setValue("expire"))}),e.j41(162,"p",19),e.EFF(163,"Expire"),e.k0s(),e.j41(164,"p",98),e.EFF(165,"Plan ends on selected day"),e.k0s()()()(),e.DNE(166,qP,4,2,"div",102),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(5),e.Y8G("formGroup",t.createform),e.R7$(7),e.Y8G("ngClass",e.eq3(24,_c,(t.createform.get("plan_type").dirty||t.createform.get("plan_type").touched)&&t.createform.get("plan_type").errors)),e.R7$(6),e.Y8G("ngIf",t.createform.get("plan_type").invalid&&(t.createform.get("plan_type").dirty||t.createform.get("plan_type").touched)),e.R7$(6),e.Y8G("ngClass",e.eq3(26,_c,(t.createform.get("plan_name").dirty||t.createform.get("plan_name").touched)&&t.createform.get("plan_name").errors)),e.R7$(2),e.Y8G("ngIf",t.createform.get("plan_name").invalid&&(t.createform.get("plan_name").dirty||t.createform.get("plan_name").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(28,_c,(t.createform.get("description").dirty||t.createform.get("description").touched)&&t.createform.get("description").errors)),e.R7$(2),e.Y8G("ngIf",t.createform.get("description").invalid&&(t.createform.get("description").dirty||t.createform.get("description").touched)),e.R7$(7),e.Y8G("ngIf",t.createform.get("has_trial").value),e.R7$(11),e.Y8G("ngClass",e.eq3(30,_c,(t.createform.get("currency").dirty||t.createform.get("currency").touched)&&t.createform.get("currency").errors)),e.R7$(8),e.Y8G("ngIf",t.createform.get("currency").invalid&&(t.createform.get("currency").dirty||t.createform.get("currency").touched)),e.R7$(6),e.Y8G("ngClass",e.eq3(32,_c,(t.createform.get("amount").dirty||t.createform.get("amount").touched)&&t.createform.get("amount").errors)),e.R7$(2),e.Y8G("ngIf",t.createform.get("amount").invalid&&(t.createform.get("amount").dirty||t.createform.get("amount").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(34,_c,(t.createform.get("surcharge").dirty||t.createform.get("surcharge").touched)&&t.createform.get("surcharge").errors)),e.R7$(6),e.Y8G("ngIf",t.createform.get("surcharge").invalid&&(t.createform.get("surcharge").dirty||t.createform.get("surcharge").touched)),e.R7$(7),e.Y8G("ngIf",t.createform.get("has_setup_fee").value),e.R7$(),e.Y8G("ngIf",t.createform.get("has_setup_fee").value),e.R7$(12),e.Y8G("ngClass",e.eq3(36,_c,(t.createform.get("interval").dirty||t.createform.get("interval").touched)&&t.createform.get("interval").errors)),e.R7$(14),e.Y8G("ngIf",t.createform.get("interval").invalid&&(t.createform.get("interval").dirty||t.createform.get("interval").touched)),e.R7$(13),e.Y8G("ngClass",e.l_i(38,y0,"sign_up"===t.createform.get("billing_trigger").value,"sign_up"!==t.createform.get("billing_trigger").value)),e.R7$(6),e.Y8G("ngClass",e.l_i(41,y0,"pick_day"===t.createform.get("billing_trigger").value,"pick_day"!==t.createform.get("billing_trigger").value)),e.R7$(7),e.Y8G("ngIf","pick_day"===t.createform.get("billing_trigger").value),e.R7$(13),e.Y8G("ngClass",e.l_i(44,y0,"until_cancel"===t.createform.get("end_policy").value,"until_cancel"!==t.createform.get("end_policy").value)),e.R7$(6),e.Y8G("ngClass",e.l_i(47,y0,"expire"===t.createform.get("end_policy").value,"expire"!==t.createform.get("end_policy").value)),e.R7$(5),e.Y8G("ngIf","expire"===t.createform.get("end_policy").value)}}function HP(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",160)(1,"input",161),e.mxI("ngModelChange",function(i){const s=e.eBV(t).index,p=e.XpG(3).$implicit;return e.DH7(p.options[s],i)||(p.options[s]=i),e.Njj(i)}),e.k0s(),e.j41(2,"button",162),e.bIt("click",function(){const i=e.eBV(t).index,s=e.XpG(3).$implicit;return e.Njj(s.options.splice(i,1))}),e.EFF(3,"\u2212"),e.k0s()()}if(2&n){const t=a.index,r=e.XpG(3).$implicit;e.R7$(),e.R50("ngModel",r.options[t])}}function KP(n,a){if(1&n){const t=e.RV6();e.j41(0,"div"),e.DNE(1,HP,4,1,"div",158),e.j41(2,"button",159),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2).$implicit,s=e.XpG(2);return e.Njj(s.addEmptyOption(i))}),e.EFF(3," + Update/Add Option "),e.k0s()()}if(2&n){const t=e.XpG(2).$implicit;e.R7$(),e.Y8G("ngForOf",t.options)}}function JP(n,a){if(1&n&&(e.j41(0,"option"),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.R7$(),e.SpI("",t," ")}}function ZP(n,a){if(1&n&&(e.j41(0,"div")(1,"select",163),e.DNE(2,JP,2,1,"option",164),e.k0s()()),2&n){const t=e.XpG(2).$implicit;e.R7$(2),e.Y8G("ngForOf",t.options)}}function QP(n,a){if(1&n&&(e.j41(0,"div",157)(1,"label",145),e.EFF(2,"Options "),e.j41(3,"span",39),e.EFF(4,"*"),e.k0s()(),e.DNE(5,KP,4,1,"div",20)(6,ZP,3,1,"div",20),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(5),e.Y8G("ngIf",t.editing),e.R7$(),e.Y8G("ngIf",!t.editing)}}function eM(n,a){if(1&n){const t=e.RV6();e.j41(0,"span")(1,"img",165),e.bIt("click",function(){e.eBV(t);const i=e.XpG().index,s=e.XpG(2);return e.Njj(s.editItem(i))}),e.k0s(),e.j41(2,"img",166),e.bIt("click",function(){e.eBV(t);const i=e.XpG().index,s=e.XpG(2);return e.Njj(s.deleteItem(i))}),e.k0s()()}}function tM(n,a){if(1&n){const t=e.RV6();e.j41(0,"span")(1,"button",167),e.bIt("click",function(){e.eBV(t);const i=e.XpG().index,s=e.XpG(2);return e.Njj(s.saveItem(i))}),e.EFF(2,"\u2714 Save"),e.k0s()()}}function nM(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",144)(1,"div",15)(2,"div",113)(3,"label",145),e.EFF(4,"Input Type "),e.j41(5,"span",39),e.EFF(6,"*"),e.k0s()(),e.j41(7,"select",146),e.mxI("ngModelChange",function(i){const s=e.eBV(t).$implicit;return e.DH7(s.input_type,i)||(s.input_type=i),e.Njj(i)}),e.j41(8,"option",116),e.EFF(9,"Text"),e.k0s(),e.j41(10,"option",117),e.EFF(11,"Select"),e.k0s()()(),e.j41(12,"div",147)(13,"div",148)(14,"div",149)(15,"label",94),e.EFF(16,"Label Name "),e.j41(17,"span",39),e.EFF(18,"*"),e.k0s()(),e.j41(19,"div",120)(20,"input",150),e.mxI("ngModelChange",function(i){const s=e.eBV(t).$implicit;return e.DH7(s.required_field,i)||(s.required_field=i),e.Njj(i)}),e.k0s(),e.j41(21,"label",151),e.EFF(22," Required field "),e.k0s()()(),e.j41(23,"input",152),e.mxI("ngModelChange",function(i){const s=e.eBV(t).$implicit;return e.DH7(s.label_name,i)||(s.label_name=i),e.Njj(i)}),e.k0s()(),e.j41(24,"div",153)(25,"label",145),e.EFF(26,"Placeholder "),e.j41(27,"span",39),e.EFF(28,"*"),e.k0s()(),e.j41(29,"input",154),e.mxI("ngModelChange",function(i){const s=e.eBV(t).$implicit;return e.DH7(s.placeholder,i)||(s.placeholder=i),e.Njj(i)}),e.k0s()(),e.DNE(30,QP,7,2,"div",155),e.k0s(),e.j41(31,"div",156),e.DNE(32,eM,3,0,"span",20)(33,tM,3,0,"span",20),e.k0s()()()}if(2&n){const t=a.$implicit,r=a.index;
1e.R7$(7),e.Mz_("name","input_type_",r,""),e.Y8G("disabled",!t.editing),e.R50("ngModel",t.input_type),e.R7$(13),e.Mz_("id","required_field_",r,""),e.Y8G("disabled",!t.editing&&!t.required_field),e.R50("ngModel",t.required_field),e.R7$(),e.AVh("label-disabled",!t.editing&&!t.required_field),e.Mz_("for","required_field_",r,""),e.R7$(2),e.Mz_("name","label_name_",r,""),e.Y8G("disabled",!t.editing),e.R50("ngModel",t.label_name),e.R7$(6),e.Mz_("name","placeholder_",r,""),e.Y8G("disabled",!t.editing),e.R50("ngModel",t.placeholder),e.R7$(),e.Y8G("ngIf","select"===t.input_type),e.R7$(2),e.Y8G("ngIf",!t.editing),e.R7$(),e.Y8G("ngIf",t.editing)}}function iM(n,a){1&n&&(e.j41(0,"small",103),e.EFF(1," Input type is required! "),e.k0s())}function rM(n,a){1&n&&(e.j41(0,"small",103),e.EFF(1," Label name is required! "),e.k0s())}function aM(n,a){1&n&&(e.j41(0,"small",103),e.EFF(1," Placeholder is required! "),e.k0s())}function oM(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",169),e.nrm(1,"input",170),e.j41(2,"button",162),e.bIt("click",function(){const i=e.eBV(t).index,s=e.XpG(3);return e.Njj(s.options.splice(i,1))}),e.EFF(3,"\u2212"),e.k0s()()}if(2&n){const t=a.$implicit;e.R7$(),e.Y8G("value",t)}}function sM(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",124)(1,"label",94),e.EFF(2,"Options "),e.j41(3,"span",39),e.EFF(4,"*"),e.k0s()(),e.DNE(5,oM,4,1,"div",168),e.j41(6,"button",159),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2),s=e.sdS(124);return e.Njj(i.openAddOption(s))}),e.EFF(7," + Add Option "),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(5),e.Y8G("ngForOf",t.options)}}function lM(n,a){1&n&&(e.j41(0,"small",103),e.EFF(1," Input type is required! "),e.k0s())}function cM(n,a){1&n&&(e.j41(0,"small",103),e.EFF(1," Notice label is required! "),e.k0s())}function dM(n,a){1&n&&(e.j41(0,"small",103),e.EFF(1," Notice is required! "),e.k0s())}function uM(n,a){1&n&&(e.j41(0,"small",103),e.EFF(1," Terms & conditions is required! "),e.k0s())}function fM(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",111)(2,"div",8)(3,"div",54)(4,"h2",55),e.EFF(5,"Custom Fields"),e.k0s()()(),e.DNE(6,nM,34,23,"div",112),e.j41(7,"form",56)(8,"div",15)(9,"div",113)(10,"label",114),e.EFF(11," Input Type "),e.j41(12,"span",39),e.EFF(13,"*"),e.k0s()(),e.j41(14,"select",115)(15,"option",60),e.EFF(16,"Select plan type"),e.k0s(),e.j41(17,"option",116),e.EFF(18,"Text"),e.k0s(),e.j41(19,"option",117),e.EFF(20,"Select"),e.k0s()(),e.j41(21,"div"),e.DNE(22,iM,2,0,"small",41),e.k0s()(),e.j41(23,"div",118)(24,"div",15)(25,"div",24)(26,"div",119)(27,"label",94),e.EFF(28,"Label Name "),e.j41(29,"span",39),e.EFF(30,"*"),e.k0s()(),e.j41(31,"div",120),e.nrm(32,"input",121),e.j41(33,"label",122),e.EFF(34,"Required field"),e.k0s()()(),e.nrm(35,"input",123),e.j41(36,"div"),e.DNE(37,rM,2,0,"small",41),e.k0s()(),e.j41(38,"div",124)(39,"label",94),e.EFF(40,"Placeholder "),e.j41(41,"span",39),e.EFF(42,"*"),e.k0s()(),e.nrm(43,"input",125),e.j41(44,"div"),e.DNE(45,aM,2,0,"small",41),e.k0s()(),e.DNE(46,sM,8,1,"div",126),e.k0s()()(),e.j41(47,"div",127)(48,"div",30)(49,"button",128),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.onSubmit2())}),e.EFF(50," Add Field "),e.k0s()()()(),e.j41(51,"form",56)(52,"div",129)(53,"div",54)(54,"h2",55),e.EFF(55,"Notice"),e.k0s(),e.j41(56,"p",130)(57,"span",131),e.EFF(58,"Disabled"),e.k0s(),e.j41(59,"label",132)(60,"input",133),e.bIt("change",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.advancedForm.get("show_notice").setValue(i.target.checked))}),e.k0s(),e.nrm(61,"span",134),e.k0s(),e.j41(62,"span",135),e.EFF(63,"Enable"),e.k0s()()()(),e.j41(64,"div",15)(65,"div",113)(66,"label",114),e.EFF(67," Notice Type "),e.j41(68,"span",39),e.EFF(69,"*"),e.k0s()(),e.j41(70,"select",136)(71,"option",60),e.EFF(72,"Select notice type"),e.k0s(),e.j41(73,"option",137),e.EFF(74,"Info"),e.k0s(),e.j41(75,"option",138),e.EFF(76,"Warning"),e.k0s()(),e.j41(77,"div"),e.DNE(78,lM,2,0,"small",41),e.k0s()(),e.j41(79,"div",139)(80,"label",94),e.EFF(81,"Notice Label "),e.j41(82,"span",39),e.EFF(83,"*"),e.k0s()(),e.nrm(84,"input",140),e.j41(85,"div"),e.DNE(86,cM,2,0,"small",41),e.k0s()()(),e.j41(87,"div",15)(88,"div",65)(89,"label",66),e.EFF(90," Notice"),e.j41(91,"span",39),e.EFF(92,"*"),e.k0s()(),e.nrm(93,"textarea",141),e.j41(94,"div",62),e.DNE(95,dM,2,0,"small",41),e.k0s()()(),e.j41(96,"div",129)(97,"div",54)(98,"h2",55),e.EFF(99,"Terms and Conditions"),e.k0s(),e.j41(100,"p",130)(101,"span",131),e.EFF(102,"Disabled"),e.k0s(),e.j41(103,"label",132)(104,"input",142),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG();return e.DH7(s.show_terms_and_conditions,i)||(s.show_terms_and_conditions=i),e.Njj(i)}),e.bIt("change",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.toggleNotice(i.show_terms_and_conditions))}),e.k0s(),e.nrm(105,"span",134),e.k0s(),e.j41(106,"span",135),e.EFF(107,"Enable"),e.k0s()()()(),e.j41(108,"div",15)(109,"div",65)(110,"label",66),e.EFF(111," Terms and condition content "),e.k0s(),e.nrm(112,"textarea",143),e.j41(113,"div",62),e.DNE(114,uM,2,0,"small",41),e.k0s()()()()()()}if(2&n){let t;const r=e.XpG();e.R7$(6),e.Y8G("ngForOf",r.itemsData),e.R7$(),e.Y8G("formGroup",r.itemForm),e.R7$(7),e.Y8G("ngClass",e.eq3(25,_c,(r.itemForm.get("input_type").dirty||r.itemForm.get("input_type").touched)&&r.itemForm.get("input_type").errors)),e.R7$(8),e.Y8G("ngIf",r.itemForm.get("input_type").invalid&&(r.itemForm.get("input_type").dirty||r.itemForm.get("input_type").touched)),e.R7$(13),e.Y8G("ngClass",e.eq3(27,_c,(r.itemForm.get("label_name").dirty||r.itemForm.get("label_name").touched)&&r.itemForm.get("label_name").errors)),e.R7$(2),e.Y8G("ngIf",r.itemForm.get("label_name").invalid&&(r.itemForm.get("label_name").dirty||r.itemForm.get("label_name").touched)),e.R7$(6),e.Y8G("ngClass",e.eq3(29,_c,(r.itemForm.get("placeholder").dirty||r.itemForm.get("placeholder").touched)&&r.itemForm.get("placeholder").errors)),e.R7$(2),e.Y8G("ngIf",r.itemForm.get("placeholder").invalid&&(r.itemForm.get("placeholder").dirty||r.itemForm.get("placeholder").touched)),e.R7$(),e.Y8G("ngIf","select"===(null==(t=r.itemForm.get("input_type"))?null:t.value)),e.R7$(3),e.Y8G("disabled",!r.itemForm.valid||r.isSelectInvalid()),e.R7$(2),e.Y8G("formGroup",r.advancedForm),e.R7$(6),e.Y8G("ngClass",r.advancedForm.get("show_notice").value?"text-muted":"text-danger fw-bold"),e.R7$(3),e.Y8G("checked",r.advancedForm.get("show_notice").value),e.R7$(2),e.Y8G("ngClass",r.advancedForm.get("show_notice").value?"text-success fw-bold":"text-muted"),e.R7$(8),e.Y8G("ngClass",e.eq3(31,_c,(r.advancedForm.get("notice_type").dirty||r.advancedForm.get("notice_type").touched)&&r.advancedForm.get("notice_type").errors)),e.R7$(8),e.Y8G("ngIf",r.advancedForm.get("notice_type").invalid&&(r.advancedForm.get("notice_type").dirty||r.advancedForm.get("notice_type").touched)),e.R7$(6),e.Y8G("ngClass",e.eq3(33,_c,(r.advancedForm.get("notice_label").dirty||r.advancedForm.get("notice_label").touched)&&r.advancedForm.get("notice_label").errors)),e.R7$(2),e.Y8G("ngIf",r.advancedForm.get("notice_label").invalid&&(r.advancedForm.get("notice_label").dirty||r.advancedForm.get("notice_label").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(35,_c,(r.advancedForm.get("notice_message").dirty||r.advancedForm.get("notice_message").touched)&&r.advancedForm.get("notice_message").errors)),e.R7$(2),e.Y8G("ngIf",r.advancedForm.get("notice_message").invalid&&(r.advancedForm.get("notice_message").dirty||r.advancedForm.get("notice_message").touched)),e.R7$(6),e.Y8G("ngClass",r.show_terms_and_conditions?"text-muted":"text-danger fw-bold"),e.R7$(3),e.R50("ngModel",r.show_terms_and_conditions),e.R7$(2),e.Y8G("ngClass",r.show_terms_and_conditions?"text-success fw-bold":"text-muted"),e.R7$(6),e.Y8G("ngClass",e.eq3(37,_c,(r.advancedForm.get("terms_content").dirty||r.advancedForm.get("terms_content").touched)&&r.advancedForm.get("terms_content").errors)),e.R7$(2),e.Y8G("ngIf",r.advancedForm.get("terms_content").invalid&&(r.advancedForm.get("terms_content").dirty||r.advancedForm.get("terms_content").touched))}}function pM(n,a){if(1&n&&(e.j41(0,"option",189),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.Y8G("value",t.id),e.R7$(),e.SpI(" ",t.app_name,"")}}function hM(n,a){1&n&&(e.j41(0,"small",103),e.EFF(1," App is required! "),e.k0s())}function mM(n,a){1&n&&(e.j41(0,"small",103),e.EFF(1," Brand name is required! "),e.k0s())}function gM(n,a){1&n&&(e.j41(0,"small",103),e.EFF(1," Descriptions is required! "),e.k0s())}function _M(n,a){1&n&&(e.qex(0),e.nrm(1,"img",190),e.bVm())}function vM(n,a){if(1&n&&(e.qex(0),e.nrm(1,"img",191),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("src",t.logoPreview,e.B4B)}}function xM(n,a){1&n&&(e.j41(0,"div",192)(1,"div",193)(2,"span",194),e.EFF(3,"Loading..."),e.k0s()()())}function bM(n,a){1&n&&(e.j41(0,"small",103),e.EFF(1," Logo is required! "),e.k0s())}function yM(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",171)(2,"form",56)(3,"div",8)(4,"div",54)(5,"h2",55),e.EFF(6,"Payment window settings"),e.k0s()()(),e.j41(7,"div",15)(8,"div",69)(9,"label",58),e.EFF(10," Gateway configurations "),e.j41(11,"span",39),e.EFF(12,"*"),e.k0s()(),e.j41(13,"select",172)(14,"option",60),e.EFF(15,"Select gateway configurations "),e.k0s(),e.DNE(16,pM,2,2,"option",173),e.k0s(),e.j41(17,"div",62),e.DNE(18,hM,2,0,"small",41),e.k0s()()(),e.j41(19,"div",15)(20,"div",69)(21,"label",58),e.EFF(22,"Company/ Brand Name"),e.j41(23,"span",39),e.EFF(24,"*"),e.k0s()(),e.nrm(25,"input",174),e.j41(26,"div",62),e.DNE(27,mM,2,0,"small",41),e.k0s()()(),e.j41(28,"div",15)(29,"div",69)(30,"label",58),e.EFF(31,"Description"),e.j41(32,"span",39),e.EFF(33,"*"),e.k0s()(),e.nrm(34,"input",175),e.j41(35,"div",62),e.DNE(36,gM,2,0,"small",41),e.k0s()()(),e.j41(37,"div",15)(38,"div",69)(39,"label",58),e.EFF(40,"Company/ Brand Logo"),e.j41(41,"span",39),e.EFF(42,"*"),e.k0s()(),e.j41(43,"div",176)(44,"input",177,2),e.bIt("change",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onLogoFileChange(i))}),e.k0s(),e.j41(46,"div",178),e.bIt("click",function(){e.eBV(t);const i=e.sdS(45);return e.Njj(i.click())}),e.DNE(47,_M,2,0,"ng-container",20)(48,vM,2,1,"ng-container",20)(49,xM,4,0,"div",179),e.k0s()(),e.j41(50,"div",62),e.DNE(
151,bM,2,0,"small",41),e.k0s()()(),e.j41(52,"form",56)(53,"div",15)(54,"div",73)(55,"label",58),e.EFF(56,"Background Colour"),e.k0s(),e.j41(57,"div",180)(58,"input",181),e.bIt("change",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onColorChange(i,1))}),e.k0s()()(),e.j41(59,"div",73)(60,"label",58),e.EFF(61,"Banner Colour"),e.k0s(),e.j41(62,"div",180)(63,"input",182),e.bIt("change",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onColorChange(i,2))}),e.k0s()()(),e.j41(64,"div",73)(65,"label",58),e.EFF(66,"Banner Text Colour"),e.k0s(),e.j41(67,"div",180)(68,"input",183),e.bIt("change",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onColorChange(i,3))}),e.k0s()()()(),e.j41(69,"div",15)(70,"div",73)(71,"label",58),e.EFF(72,"Note Colour"),e.k0s(),e.j41(73,"div",180)(74,"input",184),e.bIt("change",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onColorChange(i,4))}),e.k0s()()(),e.j41(75,"div",73)(76,"label",58),e.EFF(77,"Note Text Color"),e.k0s(),e.j41(78,"div",180)(79,"input",185),e.bIt("change",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onColorChange(i,5))}),e.k0s()()(),e.j41(80,"div",73)(81,"label",58),e.EFF(82,"Button Colour"),e.k0s(),e.j41(83,"div",180)(84,"input",186),e.bIt("change",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onColorChange(i,6))}),e.k0s()()()(),e.j41(85,"div",15)(86,"div",113)(87,"label",58),e.EFF(88,"Button Text Colour"),e.k0s(),e.j41(89,"div",180)(90,"input",187),e.bIt("change",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onColorChange(i,7))}),e.k0s()()()()(),e.j41(91,"div",15)(92,"div",65)(93,"label",66),e.EFF(94," Note (Optional) "),e.k0s(),e.nrm(95,"textarea",188),e.k0s()()()()()}if(2&n){const t=e.XpG();e.R7$(2),e.Y8G("formGroup",t.configurationForm),e.R7$(11),e.Y8G("ngClass",e.eq3(16,_c,(t.configurationForm.get("gateway_configurations").dirty||t.configurationForm.get("gateway_configurations").touched)&&t.configurationForm.get("gateway_configurations").errors)),e.R7$(3),e.Y8G("ngForOf",t.applist),e.R7$(2),e.Y8G("ngIf",t.configurationForm.get("gateway_configurations").invalid&&(t.configurationForm.get("gateway_configurations").dirty||t.configurationForm.get("gateway_configurations").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(18,_c,(t.configurationForm.get("brand_name").dirty||t.configurationForm.get("brand_name").touched)&&t.configurationForm.get("brand_name").errors)),e.R7$(2),e.Y8G("ngIf",t.configurationForm.get("brand_name").invalid&&(t.configurationForm.get("brand_name").dirty||t.configurationForm.get("brand_name").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(20,_c,(t.configurationForm.get("descriptions").dirty||t.configurationForm.get("descriptions").touched)&&t.configurationForm.get("descriptions").errors)),e.R7$(2),e.Y8G("ngIf",t.configurationForm.get("descriptions").invalid&&(t.configurationForm.get("descriptions").dirty||t.configurationForm.get("descriptions").touched)),e.R7$(8),e.AVh("form-control-danger",t.configurationForm.get("brand_logo").invalid&&(t.configurationForm.get("brand_logo").dirty||t.configurationForm.get("brand_logo").touched)),e.R7$(3),e.Y8G("ngIf",!t.logoPreview),e.R7$(),e.Y8G("ngIf",t.logoPreview),e.R7$(),e.Y8G("ngIf",t.logoUploading),e.R7$(2),e.Y8G("ngIf",t.configurationForm.get("brand_logo").invalid&&(t.configurationForm.get("brand_logo").dirty||t.configurationForm.get("brand_logo").touched)),e.R7$(),e.Y8G("formGroup",t.colorform),e.R7$(43),e.Y8G("ngClass",e.eq3(22,_c,(t.configurationForm.get("note").dirty||t.configurationForm.get("note").touched)&&t.configurationForm.get("note").errors))}}function CM(n,a){1&n&&(e.j41(0,"div"),e.nrm(1,"img",195),e.k0s())}function kM(n,a){if(1&n&&(e.j41(0,"div"),e.nrm(1,"img",196),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("src",t.logoPreview,e.B4B)}}function wM(n,a){1&n&&(e.j41(0,"span",197),e.nrm(1,"i",198),e.k0s())}function FM(n,a){1&n&&(e.j41(0,"span"),e.nrm(1,"i",199),e.k0s())}function AM(n,a){1&n&&(e.j41(0,"small",103),e.EFF(1," Name is required! "),e.k0s())}function TM(n,a){1&n&&(e.j41(0,"small",103),e.EFF(1," Name is required! "),e.k0s())}function SM(n,a){1&n&&(e.j41(0,"small",103),e.EFF(1," Email is required! "),e.k0s())}function EM(n,a){1&n&&(e.j41(0,"small",103),e.EFF(1," Phone number is required! "),e.k0s())}function PM(n,a){if(1&n){const t=e.RV6();e.j41(0,"nb-card",200)(1,"nb-card-header",201)(2,"div",54)(3,"h2",202),e.EFF(4,"Apply Template"),e.k0s()()(),e.j41(5,"nb-card-body",203)(6,"div",204)(7,"div",24)(8,"div",205)(9,"div",206)(10,"div",207)(11,"div",25)(12,"div",25),e.nrm(13,"img",208),e.j41(14,"div",209)(15,"h4",210),e.EFF(16,"Shehani M."),e.k0s(),e.j41(17,"div",211)(18,"div",212)(19,"p",213),e.EFF(20,"Membership Plan"),e.k0s(),e.j41(21,"span",214),e.EFF(22,"Currency : LKR"),e.k0s(),e.j41(23,"span",214),e.EFF(24,"Interval : Monthly"),e.k0s(),e.j41(25,"span",214),e.EFF(26,"Brand Name : ABC"),e.k0s()()()()()()(),e.j41(27,"div",215)(28,"button",216),e.EFF(29,"Apply"),e.k0s()()()()()(),e.j41(30,"div",204)(31,"div",24)(32,"div",205)(33,"div",206)(34,"div",207)(35,"div",25)(36,"div",25),e.nrm(37,"img",208),e.j41(38,"div",209)(39,"h4",210),e.EFF(40,"Shehani M."),e.k0s(),e.j41(41,"div",211)(42,"div",212)(43,"p",213),e.EFF(44,"Membership Plan"),e.k0s(),e.j41(45,"span",214),e.EFF(46,"Currency : LKR"),e.k0s(),e.j41(47,"span",214),e.EFF(48,"Interval : Monthly"),e.k0s(),e.j41(49,"span",214),e.EFF(50,"Brand Name : ABC"),e.k0s()()()()()()(),e.j41(51,"div",215)(52,"button",216),e.EFF(53,"Apply"),e.k0s()()()()()(),e.j41(54,"div",15)(55,"div",24)(56,"div",205)(57,"div",206)(58,"div",207)(59,"div",25)(60,"div",25),e.nrm(61,"img",208),e.j41(62,"div",209)(63,"h4",210),e.EFF(64,"Shehani M."),e.k0s(),e.j41(65,"div",211)(66,"div",212)(67,"p",213),e.EFF(68,"Membership Plan"),e.k0s(),e.j41(69,"span",214),e.EFF(70,"Currency : LKR"),e.k0s(),e.j41(71,"span",214),e.EFF(72,"Interval : Monthly"),e.k0s(),e.j41(73,"span",214),e.EFF(74,"Brand Name : ABC"),e.k0s()()()()()()(),e.j41(75,"div",215)(76,"button",216),e.EFF(77,"Apply"),e.k0s()()()()()()(),e.j41(78,"nb-card-footer")(79,"button",217),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.templateClose())}),e.EFF(80,"Close"),e.k0s()()()}}function MM(n,a){if(1&n){const t=e.RV6();e.j41(0,"li",227),e.EFF(1),e.j41(2,"button",228),e.bIt("click",function(){const i=e.eBV(t).index,s=e.XpG(2);return e.Njj(s.removeTempOption(i))}),e.EFF(3,"\xd7"),e.k0s()()}if(2&n){const t=a.$implicit;e.R7$(),e.SpI(" ",t," ")}}function OM(n,a){if(1&n){const t=e.RV6();e.j41(0,"nb-card")(1,"nb-card-header"),e.EFF(2,"Add Options"),e.k0s(),e.j41(3,"nb-card-body",218)(4,"div",219)(5,"input",220),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG();return e.DH7(s.newOption,i)||(s.newOption=i),e.Njj(i)}),e.k0s(),e.j41(6,"button",221),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.addTempOption())}),e.EFF(7,"+"),e.k0s()(),e.j41(8,"ul",222),e.DNE(9,MM,4,1,"li",223),e.k0s()(),e.j41(10,"nb-card-footer",224)(11,"button",225),e.bIt("click",function(){const i=e.eBV(t).dialogRef;return e.Njj(i.close())}),e.EFF(12,"Cancel"),e.k0s(),e.j41(13,"button",226),e.bIt("click",function(){const i=e.eBV(t).dialogRef,s=e.XpG();return e.Njj(s.saveOptions(i))}),e.EFF(14,"Submit"),e.k0s()()()}if(2&n){const t=e.XpG();e.R7$(5),e.R50("ngModel",t.newOption),e.R7$(4),e.Y8G("ngForOf",t.tempOptions)}}let DM=(()=>{class n{constructor(t,r,i,s,p,g,S,R){this.fb=t,this.router=r,this.dialogService=i,this.transactionService=s,this.toastr=p,this.subscriptionLinkService=g,this.checkoutSettingsService=S,this.paymentPageService=R,this.is_loading_1=!1,this.filter_status=new ie.MJ("general"),this.biling_value=new ie.MJ("FIRST"),this.itemsData=[],this.ticketCatform=this.fb.group({}),this.logoPreview=null,this.logoFile=null,this.logoUploading=!1,this.options=[],this.newOption="",this.tempOptions=[],this.applist=[],this.control
1Labels={input_type:"Input Type",placeholder:"Placeholder",label_name:"Label Name",required_field:"Required Field",plan_type:"Plan Type",plan_name:"Plan Name",description:"Description",has_trial:"Has Trial",trial_duration:"Trial Duration",currency:"Currency",amount:"Amount",surcharge:"Surcharge",has_setup_fee:"Has Setup Fee",setup_fee:"Setup Fee",setup_fee_trigger:"Setup Fee Trigger",interval:"Interval",billing_trigger:"Billing Trigger",end_policy:"End Policy",billing_day:"Billing Day",end_date:"End Date",show_notice:"Show Notice",notice_type:"Notice Type",notice_label:"Notice Label",notice_message:"Notice Message",show_terms_and_conditions:"Show Terms and Conditions",terms_content:"Terms & Conditions",gateway_configurations:"Gateway Configurations",brand_name:"Brand Name",descriptions:"Descriptions",brand_logo:"Brand Logo",note:"Note",background_color:"Background Color",banner_color:"Banner Color",banner_text_color:"Banner Text Color",note_color:"Note Background Color",note_text_color:"Note Text Color",button_color:"Button Color",button_text_color:"Button Text Color",firstName:"First Name",lastName:"Last Name",email:"Email",phone:"Phone",note_payment:"Note (Payment)"},this.itemForm=this.fb.group({input_type:["",[ie.k0.required]],placeholder:["",[ie.k0.required]],label_name:["",[ie.k0.required]],required_field:[!1]}),this.createform=this.fb.group({plan_type:["",[ie.k0.required]],plan_name:["",[ie.k0.required]],description:["",[ie.k0.required]],has_trial:[!1],trial_duration:[null,[ie.k0.min(1),ie.k0.max(28)]],currency:["LKR",[ie.k0.required]],amount:["",[ie.k0.required]],surcharge:[""],has_setup_fee:[!1],setup_fee:[""],setup_fee_trigger:["pick_day"],interval:["",[ie.k0.required]],billing_trigger:["sign_up"],end_policy:["until_cancel"],billing_day:[""],end_date:[""]}),this.advancedForm=this.fb.group({show_notice:[!1],notice_type:["",[ie.k0.required]],notice_label:["",[ie.k0.required]],notice_message:["",[ie.k0.required]],show_terms_and_conditions:[!1],terms_content:[""]}),this.configurationForm=this.fb.group({gateway_configurations:["",[ie.k0.required]],brand_name:["",[ie.k0.required]],descriptions:["",[ie.k0.required]],brand_logo:["",[ie.k0.required]],note:[""]}),this.colorform=this.fb.group({background_color:["#00253D",[ie.k0.required]],banner_color:["#002b49",[ie.k0.required]],banner_text_color:["#FFFFFF",[ie.k0.required]],note_color:["#FEFAE8",[ie.k0.required]],note_text_color:["#B94B20",[ie.k0.required]],button_color:["#00253D",[ie.k0.required]],button_text_color:["#FFFFFF",[ie.k0.required]]}),this.paymentForm=this.fb.group({firstName:[""],lastName:[""],email:[""],phone:[""],note:[""]})}ngOnInit(){this.getApps(),this.createform.get("billing_trigger").valueChanges.subscribe(t=>{const r=this.createform.get("billing_day");"pick_day"===t?r.setValidators([ie.k0.required]):(r.clearValidators(),r.setValue(null)),r.updateValueAndValidity()}),this.createform.get("end_policy").valueChanges.subscribe(t=>{const r=this.createform.get("end_date");"expire"===t?r.setValidators([ie.k0.required]):(r.clearValidators(),r.setValue(null)),r.updateValueAndValidity()}),this.createform.get("has_setup_fee").valueChanges.subscribe(t=>{const r=this.createform.get("setup_fee");t?r.setValidators([ie.k0.required,ie.k0.min(0)]):(r.clearValidators(),r.setValue(null)),r.updateValueAndValidity()}),this.createform.get("has_trial").valueChanges.subscribe(t=>{const r=this.createform.get("trial_duration");t?r.setValidators([ie.k0.required,ie.k0.min(1)]):(r.clearValidators(),r.setValue(null)),r.updateValueAndValidity()})}getApps(){this.is_loading_1=!0,this.paymentPageService.getApps().then(t=>{this.is_loading_1=!1,t&&100==t.status?(this.applist=t.data.filter(r=>(r.is_approved||!r.is_approved&&!r.is_submit_approve)&&r.is_active),console.log(this.applist,"rrrrccc")):this.toastr.showToast("danger","Error!",t?.message||"Gettings merchant data failed.")},t=>{this.is_loading_1=!1,this.toastr.showToast("danger","Error","Internal server error")})}OnItemClick(t){"general"===t&&this.filter_status.setValue("general"),"advance"===t&&this.filter_status.setValue("advance"),"configuration"===t&&this.filter_status.setValue("configuration")}OnClickBilling(t){"ON"===t&&this.biling_value.setValue("ON"),"FIRST"===t&&this.biling_value.setValue("FIRST")}onSubmit2(){const t=this.itemForm.value;if("select"===t.input_type){const r=this.options.map(i=>i.trim()).filter(i=>i);if(0===r.length)return void alert("Please add at least one valid option.");this.itemsData.push({...t,options:r,editing:!1})}else this.itemsData.push({...t,options:[],editing:!1});this.itemForm.reset(),this.options=[]}editItem(t){this.itemsData[t].editing=!0}saveItem(t){const r=this.itemsData[t];"select"!==r.input_type||(r.options=r.options.map(i=>i.trim()).filter(i=>""!==i),0!==r.options.length)?r.editing=!1:alert("Select input must have at least one non-empty option.")}deleteItem(t){this.itemsData.splice(t,1)}toggleNotice(t){console.log("Toggle value:",t)}onColorChange(t,r){}onSubmit(){}openApplyTemplate(t){this.template_model=this.dialogService.open(t,{closeOnBackdropClick:!1})}templateClose(){this.template_model.close()}
1checkInvalidControls(t,r){Object.keys(t.controls).forEach(i=>{const s=t.get(i);s&&s.invalid&&(s.markAsTouched({onlySelf:!0}),this.toastr.showToast("danger","Validation Error",`${this.controlLabels[i]||i} is required or invalid`))})}saveTemplate(){if(console.log(this.configurationForm.value.background_color,"background_color"),!(this.createform.valid&&this.configurationForm.valid&&this.advancedForm.valid||this.createform.valid&&this.configurationForm.valid&&this.advancedForm.valid))return this.checkInvalidControls(this.createform,"createform"),this.checkInvalidControls(this.configurationForm,"configurationForm"),void this.checkInvalidControls(this.advancedForm,"advancedForm");const t={plan_type:this.createform.value.plan_type,plan_name:this.createform.value.plan_name,description:this.createform.value.description,has_trial:this.createform.value.has_trial,currency:this.createform.value.currency,amount:this.createform.value.amount,surcharge:this.createform.value.surcharge?this.createform.value.surcharge:0,has_setup_fee:this.createform.value.has_setup_fee,interval:this.createform.value.interval,billing_trigger:this.createform.value.billing_trigger,end_policy:this.createform.value.end_policy,custom_fields:this.itemsData.map(r=>{const i={input_type:r.input_type,label_name:r.label_name,placeholder:r.placeholder,required:!!r.required_field};return"select"===r.input_type&&r.options?.length&&(i.options=r.options),i}),show_notice:this.advancedForm.value.show_notice,notice_type:this.advancedForm.value.notice_type,notice_label:this.advancedForm.value.notice_label,notice_message:this.advancedForm.value.notice_message,show_terms_and_conditions:this.advancedForm.value.show_terms_and_conditions,terms_content:this.advancedForm.value.terms_content,company_brand_name:this.configurationForm.value.brand_name,company_description:this.configurationForm.value.descriptions,company_logo:this.configurationForm.value.brand_logo||null,app:this.configurationForm.value.gateway_configurations,background_color:this.colorform.value.background_color||"#FFFFFF",banner_color:this.colorform.value.banner_color||"#002B3D",banner_text_color:this.colorform.value.banner_text_color||"#FFFFFF",note_color:this.colorform.value.note_color||"#FFFBE5",note_text_color:this.colorform.value.note_text_color||"#BD6C46",button_color:this.colorform.value.button_color||"#002B3D",button_text_color:this.colorform.value.button_text_color||"#FFFFFF"};"pick_day"===this.createform.value.billing_trigger&&(t.billing_trigger="pick_day",t.billing_day=this.createform.value.billing_day),"expire"===this.createform.value.end_policy&&(t.end_policy="expire",t.end_date=this.createform.value.end_date),this.createform.value.has_setup_fee&&(t.has_setup_fee=!0,t.setup_fee=this.createform.value.setup_fee,t.setup_fee_trigger=this.createform.value.setup_fee_trigger),this.createform.value.has_trial&&(t.has_trial=!0,t.trial_duration=this.createform.value.trial_duration),console.log(t,"Template body"),this.is_loading_1=!0,this.subscriptionLinkService.saveTemplate(t).then(r=>{this.is_loading_1=!1,this.createform.pristine&&this.createform.untouched&&this.advancedForm.pristine&&this.advancedForm.untouched&&this.configurationForm.pristine&&this.configurationForm.untouched&&(r={...r,status:201}),201===r?.status?(console.log(r,"res11"),this.toastr.showToast("success","Success","Template saved successfully!"),this.router.navigate(["/pages/subscription-link"])):this.toastr.showToast("danger","Error!",r?.message||"Saving template failed.")}).catch(r=>{this.is_loading_1=!1,console.error("Internal Server Error:",r),this.toastr.showToast("danger","Error!","Internal Server Error.")})}onLogoFileChange(t){var r=this;return(0,Pt.A)(function*(){r.logoUploading=!0;const i=t.target.files&&t.target.files[0];if(i){r.logoFile=i;const s=new FileReader;s.onload=(0,Pt.A)(function*(){const g={image:s.result,bucket_name:"onepay_ipg",image_name:r.getRandomEightDigitNumber?r.getRandomEightDigitNumber():Date.now().toString(),is_update:!1};try{const S=yield r.checkoutSettingsService.uploadImage(g).toPromise();S&&S.url?(r.logoPreview=S.url,r.configurationForm.get("brand_logo")?.setValue(S.url)):r.toastr.showToast("danger","Upload Failed",S?.message||"Image upload failed")}catch{r.toastr.showToast("danger","Upload Error","Image upload failed")}r.logoUploading=!1}),s.readAsDataURL(i)}})()}getRandomEightDigitNumber(){return Math.floor(1e7+9e7*Math.random()).toString()}openAddOption(t){this.tempOptions=[...this.options],this.dialogService.open(t)}addTempOption(){this.newOption.trim()&&(this.tempOptions.push(this.newOption.trim()),this.newOption="")}removeTempOption(t){this.tempOptions.splice(t,1)}saveOptions(t){this.options=[...this.tempOptions],t.close()}isSelectInvalid(){return"select"===this.itemForm.get("input_type")?.value&&0===this.options.map(i=>i.trim()).filter(i=>i).length}addEmptyOption(t){t.options.some(i=>""===i.trim())?alert("Please fill the existing empty option before adding another."):t.options.push("")}onDateInput(t){let r=t.target.value;const i=/^(\d{2})\/(\d{2})\/(\d{4})$/;if(i.test(r)){const[s,p,g,S]=r.match(i);this.createform.get("billing_day")?.setValue(`${S}-${g}-${p}`)}}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(ie.ok),e.rXU(qe.Ix),e.rXU(E.S0W),e.rXU(Mt.kK),e.rXU(Dt.V4),e.rXU(b0),e.rXU(O4.H),e.rXU(y1.f))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-create-subscription-links"]],decls:125,vars:55,consts:[["dialogApplyTemplate",""],["dialogAddOption",""],["logoInput",""],[1,"body-style","payment-links-root"],[1,"container"],["href","/pages/subscription-link",2,"text-decoration","none","color","#718096","font-size","13px","font-weight","500"],[2,"margin-right","4px"],["aria-hidden","true",1,"fa","fa-arrow-left"],[1,"row","mb-4"],[1,"col","d-flex","justify-content-start","align-items-center"],[1,"page-heading"],[1,"row","mb-3"],[1,"col"],[1,"nb_cardBody"],[1,"invoice_body"],[1,"row"],[1,"col-6","col-in1"],[1,"col-4","ipg-dashbord-right"],[1,"menu_itam",3,"click","ngClass"],[1,"button_name"],[4,"ngIf"],[1,"col-6"],[1,"payment_border"],[1,"payment-header",3,"ngStyle"],[1,"col-12"],[1,"d-flex","align-items-center"],[1,"d-flex"],[2,"margin-right","25px"],[1,"banner_header",3,"ngStyle"],[1,"banner_desc","mb-0"],[1,"col-12","d-flex","justify-content-end"],[1,"payment-amount"],[2,"font-size","8px"],[1,"form_grid"],[3,"ngSubmit","formGroup"],[1,"alert-note",3,"ngStyle"],["class","mb-2",4,"ngIf"],[2,"margin-top","3px"],[1,"col-md-6","mb-3"],[1,"form-required-sign"],["nbInput","","fullWidth","","formControlName","firstName","placeholder","Enter first name",1,"form-control",3,"ngClass"],["class","text-danger",4,"ngIf"],[1,"system_d"],["nbInput","","fullWidth","","formControlName","lastName","placeholder","Enter last name",1,"form-control",3,"ngClass"],["nbInput","","fullWidth","","formControlName","email","placeholder","Enter email",1,"form-control",3,"ngClass"],["nbInput","","fullWidth","","formControlName","phone","placeholder","Enter phone no",1,"form-control",3,"ngClass"],[1,"col-md-12","mb-3"],["nbInput","","fullWidth","","formControlName","note","rows","4","placeholder","Enter payment note",1,"form-control"],[1,"d-flex","justify-content-end","mt-3"],["type","button",1,"btn_common","btC_unique","mr-2"],["type","submit",1,"btn_common","btS_unique",3,"ngStyle"],["type","button","routerLink","/pages/subscription-link",1,"btn_common","btC_unique","mr-2"],["type","button",1,"btn_common","btS_unique_link",3,"click"],[1,"row","mb-4","mt-3"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"div_heading"],[3,"formGroup"],[1,"col-5","d-flex","flex-column","justify-content-start","mb-1"],[1,"col","px-0","mb-1"],["fullWidth","","placeholder","Select plan type","formControlName","plan_type","name","plan_type",1,"col","selecter_invoice",3,"ngClass"],["disabled","","value",""],["value","membership"],[2,"min-height","1.25rem"],[1,"col-7","d-flex","flex-column","justify-content-start","mb-1"],["type","text","nbInput","","fullWidth","","placeholder","Write plan
1name","formControlName","plan_name","name","plan_name",1,"div_input",3,"ngClass"],[1,"col-12","d-flex","flex-column","justify-content-start"],[1,"form-label","mb-1","fw-semibold"],["nbInput","","fullWidth","","placeholder","Enter description","formControlName","description","rows","3",1,"form-control","custom-input",3,"ngClass"],[1,"row","mt-2"],[1,"col-12","d-flex","flex-column","justify-content-start","mb-1"],[1,"custom-checkbox"],["type","checkbox","id","hasTrial","formControlName","has_trial"],["for","hasTrial",1,"lable_checkbox"],[1,"col-4","d-flex","flex-column","justify-content-start","mb-1"],["fullWidth","","placeholder","Select currency","formControlName","currency","name","currency",1,"col","selecter_invoice",3,"ngClass"],["selected","","value","LKR"],["value","USD"],["type","number","nbInput","","fullWidth","","placeholder","Enter amount","formControlName","amount","name","amount",1,"div_input",3,"ngClass"],["class","text-danger test-danger2",4,"ngIf"],[1,"helper-text"],[1,"position-relative"],["type","number","nbInput","","fullWidth","","placeholder","0","formControlName","surcharge","name","surcharge",1,"div_input","pr-4",3,"ngClass"],[1,"percent-symbol"],[1,"col-12","d-flex","flex-column","justify-content-start","mb-3","mt-4"],["type","checkbox","id","has_setup_fee","formControlName","has_setup_fee"],["for","has_setup_fee",1,"lable_checkbox"],["class","row",4,"ngIf"],["class","row mt-3 mb-3",4,"ngIf"],["fullWidth","","placeholder","Select days","formControlName","interval","name","interval",1,"col","selecter_invoice",3,"ngClass"],["value","daily"],["value","weekly"],["value","monthly"],["value","yearly"],[1,"row","mt-3"],[1,"col","px-0"],[1,"sub_con"],[1,"col-6","ipg-dashbord-right"],[1,"menu_itamBiling",3,"click","ngClass"],[1,"button_sub_name"],[1,"col-6","ipg-dashbord-left"],[1,"menu_itamBiling","disabled_billing",3,"click","ngClass"],[1,"coming-soon-overlay"],["class","row mt-2",4,"ngIf"],[1,"text-danger"],["type","number","nbInput","","fullWidth","","placeholder","Enter trial duration","formControlName","trial_duration","name","trial_duration","min","1","max","28",1,"div_input",3,"ngClass"],[1,"text-danger","test-danger2"],["type","number","nbInput","","fullWidth","","placeholder","Enter setup fee","formControlName","setup_fee","name","setup_fee",1,"div_input","pr-4",3,"ngClass"],[1,"row","mt-3","mb-3"],[1,"col-lg-12","col-md-12","col-sm-12",2,"padding-right","5px"],["nbInput","","fullWidth","","id","date","formControlName","billing_day","placeholder","","type","date","name","date",3,"min"],["nbInput","","fullWidth","","id","date","formControlName","end_date","placeholder","","type","date","name","date",3,"min"],[1,"mt-3"],["class","mb-1",4,"ngFor","ngForOf"],[1,"col-4"],[1,"col","px-0","item_table"],["fullWidth","","placeholder","Select plan type","formControlName","input_type","name","input_type",1,"col","selecter_invoice",3,"ngClass"],["value","text"],["value","select"],[1,"col-8"],[1,"col","d-flex","justify-content-between",2,"padding-left","0","padding-right","0"],[1,"custom-checkbox",2,"margin-top","11px"],["type","checkbox","id","required_field","formControlName","required_field"],["for","required_field",1,"lable_checkbox"],["type","text","nbInput","","fullWidth","","placeholder","Enter label name","formControlName","label_name","name","label_name",1,"div_input",3,"ngClass"],[1,"col-12","mt-1"],["type","text","nbInput","","fullWidth","","placeholder","Enter placeholder","formControlName","placeholder","name","placeholder",1,"div_input",3,"ngClass"],["class","col-12 mt-1",4,"ngIf"],[1,"row","mt-4"],[1,"btn_",3,"click","disabled"],[1,"row","mb-4","mt-4"],[1,"istalment_plan"],[2,"font-size","10px","margin-right","5px",3,"ngClass"],[1,"switch"],["formControlName","show_notice","type","checkbox",3,"change","checked"],[1,"slider","round"],[2,"font-size","10px","margin-left","5px",3,"ngClass"],["fullWidth","","placeholder","Select notice type","formControlName","notice_type","name","notice_type",1,"col","selecter_invoice",3,"ngClass"],["value","info"],["value","warning"],[1,"col-8","mt-1"],["type","text","nbInput","","fullWidth","","placeholder","Enter notice label","formControlName","notice_label","name","notice_label33",1,"div_input",3,"ngClass"],["nbInput","","fullWidth","","placeholder","Enter your notice","formControlName","notice_message","rows","4",1,"form-control","custom-input",3,"ngClass"],["formControlName","show_terms_and_conditions","type","checkbox",3,"ngModelChange","change","ngModel"],["nbInput","","fullWidth","","placeholder","By proceeding, you agree to the Terms & Conditions.","formControlName","terms_content","rows","4",1,"form-control","custom-input",3,"ngClass"],[1,"mb-1"],[1,"form-label"],[1,"form-control",3,"ngModelChange","disabled","ngModel","name"],[1,"col-7"],[1,"col-12","px-0"],[1,"d-flex","justify-content-between"],["type","checkbox",1,"form-check-input",3,"ngModelChange","disabled","ngModel","id"],[1,"lable_checkbox",3,"for"],["type","text","nbInput","","fullWidth","","placeholder","Enter label name",3,"ngModelChange","disabled","ngModel","name"],[1,"col-12","px-0","mt-1"],["type","text","nbInput","","fullWidth","","placeholder","Enter placeholder",1,"form-control",3,"ngModelChange","disabled","ngModel","name"],["class","col-12 px-0 mt-2",4,"ngIf"],[1,"col-1",2,"padding-left","0!important"],[1,"col-12","px-0","mt-2"],["class","d-flex mb-1",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-sm","btn-outline-primary",3,"click"],[1,"d-flex","mb-1"],["type","text","placeholder","Enter option",1,"form-control",3,"ngModelChange","ngModel"],["type","button",1,"btn","btn-sm","btn-danger","ms-2",3,"click"],["disabled","",1,"form-control"],[4,"ngFor","ngForOf"],["src","../../../../assets/images/pencil2.png",1,"pencil_table",3,"click"],["src","../../../../assets/images/delete_i.png",1,"delete_table",3,"click"],[1,"save_btn",3,"click"],["class","d-flex mb-2",4,"ngFor","ngForOf"],[1,"d-flex","mb-2"],["disabled","",1,"form-control",3,"value"],[1,"mt-4"],["fullWidth","","placeholder","Select app","formControlName","gateway_configurations","name","gateway_configurations",1,"col","selecter_invoice",3,"ngClass"],[3,"value",4,"ngFor","ngForOf"],["type","text","nbInput","","fullWidth","","placeholder","Enter company/ brand name","formControlName","brand_name","name","brand_name",1,"div_input",3,"ngClass"],["type","text","nbInput","","fullWidth","","placeholder","Enter description","formControlName","descriptions","name","descriptions",1,"div_input",3,"ngClass"],[1,"image_menu_dev",2,"position","relative"],["type","file","accept","image/*",2,"display","none",3,"change"],[2,"width","100%","height","100%","display","flex","align-items","center","justify-content","center","cursor","pointer","position","relative",3,"click"],["class","d-flex align-items-center justify-content-center","style","position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.7); border-radius: 6px; z-index: 2;",4,"ngIf"],[1,"color_grid"],["formControlName","background_color","type","color","nbInput","","shape","rectangle","placeholder","Enter color",1,"form-control","input-bottom",2,"padding","0","background-color","#f0f0f0",3,"change"],["formControlName","banner_color","type","color","nbInput","","shape","rectangle","placeholder","Enter color",1,"form-control","input-bottom",2,"padding","0","background-color","#f0f0f0",3,"change"],["formControlName","banner_text_color","type","color","nbInput","","shape","rectangle","placeholder","Enter color",1,"form-control","input-bottom",2,"padding","0","background-color","#f0f0f0",3,"change"],["formControlName","note_color","type","color","nbInput","","shape","rectangle","placeholder","Enter color",1,"form-control","input-bottom",2,"padding","0","background-color","#f0f0f0",3,"change"],["formControlName","note_text_color","type","color","nbInput","","shape","rectangle","placeholder","Enter color",1,"form-control","input-bottom",2,"padding","0","background-color","#f0f0f0",3,"change"],["formControlName","button_color","type","color","nbInput","","shape","rectangle","placeholder","Enter color",1,"form-control","input-bottom",2,"padding","0","background-color","#f0f0f0",3,"change"],["formControlName","button_text_color","type","color","nbInput","","shape","rectangle","placeholder","Enter color",1,"form-control","input-bottom",2,"padding","0","background-color","#f0f0f0",3,"change"],["nbInput","","fullWidth","","placeholder","Enter note","formControlName","note","rows","4",1,"form-control","custom-input",3,"ngClass"],[3,"value"],["src","../../../../assets/subscription/image-icon.png","alt","Company Logo",1,"image_icon"],["alt","Logo Preview",2,"max-width","120px","max-height","80px","border","1p
1x solid #eee",3,"src"],[1,"d-flex","align-items-center","justify-content-center",2,"position","absolute","top","0","left","0","width","100%","height","100%","background","rgba(255,255,255,0.7)","border-radius","6px","z-index","2"],["role","status",1,"spinner-border","text-primary",2,"width","24px","height","24px"],[1,"visually-hidden"],["src","../../../../assets/subscription/logo.png","alt","Company Logo",1,"company-logo","mr-3"],["alt","Logo Preview",1,"company-logo","mr-3",3,"src"],[1,"mb-2"],[1,"fas","fa-info-circle"],[1,"fas","fa-exclamation-triangle"],[2,"width","70vw"],[2,"font-family","'Poppins'"],[1,"link_popup_heading_temp"],[1,"dialog-border",2,"font-family","'Poppins'","max-height","50vh","overflow-y","auto"],[1,"row","mb-2"],[1,"menu_div"],[1,"row","d-flex","justify-content-between","align-items-center"],[1,"col-md-10","col-sm-9"],["src","../../../../assets/subscription/logo.png","alt","Company Logo",1,"company-logo_temp","mr-3"],[2,"margin-right","10px"],[1,"banner_header_temp"],[1,"plan-details"],[1,"d-flex","align-items-center","flex-wrap","gap-3"],[1,"plan-subtitle","mb-0"],[1,"plan-info-item"],[1,"col-md-2","col-sm-3","d-flex","justify-content-end"],[1,"apply-button"],[1,"btn_common","btC_unique","mr-2",2,"float","right",3,"click"],[2,"font-family","'Poppins'","max-height","50vh","overflow-y","auto","width","40vw"],[1,"d-flex","mb-3"],["nbInput","","fullWidth","","placeholder","Enter option",3,"ngModelChange","ngModel"],[1,"ms-2","plus_button",3,"click"],[1,"list-group"],["style","padding: 7px 10px;","class","d-flex justify-content-between align-items-center list-group-item",4,"ngFor","ngForOf"],[1,"d-flex","justify-content-end"],["type","button",1,"btn_common","btC_unique","mr-2",3,"click"],["type","submit",1,"btn_common","btS_popup",3,"click"],[1,"d-flex","justify-content-between","align-items-center","list-group-item",2,"padding","7px 10px"],["nbButton","","status","danger","size","tiny",3,"click"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",3)(1,"div",4)(2,"p")(3,"a",5)(4,"span",6),e.nrm(5,"i",7),e.k0s(),e.EFF(6," Back"),e.k0s()(),e.j41(7,"div",8)(8,"div",9)(9,"h2",10),e.EFF(10,"Create Subscription Link"),e.k0s()()(),e.j41(11,"div",11)(12,"div",12)(13,"nb-card")(14,"nb-card-body",13)(15,"div",14)(16,"div",15)(17,"div",16)(18,"div",15)(19,"div",17)(20,"div",18),e.bIt("click",function(){return e.eBV(s),e.Njj(i.OnItemClick("general"))}),e.j41(21,"span",19),e.EFF(22,"General"),e.k0s()()(),e.j41(23,"div",17)(24,"div",18),e.bIt("click",function(){return e.eBV(s),e.Njj(i.OnItemClick("advance"))}),e.j41(25,"span",19),e.EFF(26,"Advanced"),e.k0s()()(),e.j41(27,"div",17)(28,"div",18),e.bIt("click",function(){return e.eBV(s),e.Njj(i.OnItemClick("configuration"))}),e.j41(29,"span",19),e.EFF(30,"Configuration"),e.k0s()()()(),e.DNE(31,XP,167,50,"div",20)(32,fM,115,39,"div",20)(33,yM,96,24,"div",20),e.k0s(),e.j41(34,"div",21)(35,"div",22)(36,"div",23)(37,"div",15)(38,"div",24)(39,"div",25)(40,"div",26),e.DNE(41,CM,2,0,"div",20)(42,kM,2,1,"div",20),e.j41(43,"div",27)(44,"h4",28),e.EFF(45),e.k0s(),e.j41(46,"p",29),e.EFF(47),e.k0s()()()()()(),e.j41(48,"div",15)(49,"div",30)(50,"div",31),e.EFF(51),e.j41(52,"span",32),e.EFF(53,".00"),e.k0s()()()()(),e.j41(54,"div",33)(55,"form",34),e.bIt("ngSubmit",function(){return e.eBV(s),e.Njj(i.onSubmit())}),e.j41(56,"div",35)(57,"strong"),e.DNE(58,wM,2,0,"span",36)(59,FM,2,0,"span",20),e.EFF(60," Note"),e.k0s(),e.nrm(61,"br"),e.j41(62,"div",37),e.EFF(63),e.k0s()(),e.j41(64,"div",15)(65,"div",38)(66,"label"),e.EFF(67,"First Name "),e.j41(68,"span",39),e.EFF(69,"*"),e.k0s()(),e.nrm(70,"input",40),e.j41(71,"div"),e.DNE(72,AM,2,0,"small",41),e.k0s(),e.j41(73,"small",42),e.EFF(74,"System default"),e.k0s()(),e.j41(75,"div",38)(76,"label"),e.EFF(77,"Last Name "),e.j41(78,"span",39),e.EFF(79,"*"),e.k0s()(),e.nrm(80,"input",43),e.j41(81,"div"),e.DNE(82,TM,2,0,"small",41),e.k0s(),e.j41(83,"small",42),e.EFF(84,"System default"),e.k0s()(),e.j41(85,"div",38)(86,"label"),e.EFF(87,"Email "),e.j41(88,"span",39),e.EFF(89,"*"),e.k0s()(),e.nrm(90,"input",44),e.j41(91,"div"),e.DNE(92,SM,2,0,"small",41),e.k0s(),e.j41(93,"small",42),e.EFF(94,"System default"),e.k0s()(),e.j41(95,"div",38)(96,"label"),e.EFF(97,"Phone No. "),e.j41(98,"span",39),e.EFF(99,"*"),e.k0s()(),e.nrm(100,"input",45),e.j41(101,"div"),e.DNE(102,EM,2,0,"small",41),e.k0s(),e.j41(103,"small",42),e.EFF(104,"System default"),e.k0s()(),e.j41(105,"div",46)(106,"label"),e.EFF(107,"Payment Note"),e.k0s(),e.nrm(108,"textarea",47),e.j41(109,"small",42),e.EFF(110,"System default"),e.k0s()()(),e.j41(111,"div",48)(112,"button",49),e.EFF(113,"Cancel"),e.k0s(),e.j41(114,"button",50),e.EFF(115,"Pay"),e.k0s()()()()(),e.j41(116,"div",48)(117,"button",51),e.EFF(118,"Cancel"),e.k0s(),e.j41(119,"button",52),e.bIt("click",function(){return e.eBV(s),e.Njj(i.saveTemplate())}),e.EFF(120,"Create Link"),e.k0s()()()()()()()()()()(),e.DNE(121,PM,81,0,"ng-template",null,0,e.C5r)(123,OM,15,2,"ng-template",null,1,e.C5r)}2&r&&(e.R7$(20),e.Y8G("ngClass",e.l_i(28,yx,"general"===i.filter_status.value,"general"!==i.filter_status.value)),e.R7$(4),e.Y8G("ngClass",e.l_i(31,yx,"advance"===i.filter_status.value,"advance"!==i.filter_status.value)),e.R7$(4),e.Y8G("ngClass",e.l_i(34,yx,"configuration"===i.filter_status.value,"configuration"!==i.filter_status.value)),e.R7$(3),e.Y8G("ngIf","general"===i.filter_status.value),e.R7$(),e.Y8G("ngIf","advance"===i.filter_status.value),e.R7$(),e.Y8G("ngIf","configuration"===i.filter_status.value),e.R7$(3),e.Y8G("ngStyle",e.eq3(37,FP,i.colorform.value.banner_color)),e.R7$(5),e.Y8G("ngIf",!i.logoPreview),e.R7$(),e.Y8G("ngIf",i.logoPreview),e.R7$(2),e.Y8G("ngStyle",e.eq3(39,AP,i.colorform.value.banner_text_color)),e.R7$(),e.SpI(" ",i.configurationForm.value.brand_name||"Company/ Brand Name"," "),e.R7$(2),e.SpI("",i.configurationForm.value.descriptions||"Lorem Ipsum is simply dummy text of the printing and typesetting industry."," "),e.R7$(4),e.Lme("",i.createform.value.currency||"LKR"," ",i.createform.value.amount||"00",""),e.R7$(4),e.Y8G("formGroup",i.paymentForm),e.R7$(),e.Y8G("ngStyle",e.l_i(41,TP,i.colorform.value.note_color,i.colorform.value.note_text_color)),e.R7$(2),e.Y8G("ngIf","info"==i.advancedForm.value.notice_type),e.R7$(),e.Y8G("ngIf","warning"==i.advancedForm.value.notice_type),e.R7$(4),e.SpI(" ",i.advancedForm.value.notice_message||"Enter your notice",""),e.R7$(7),e.Y8G("ngClass",e.eq3(44,_c,(i.paymentForm.get("firstName").dirty||i.paymentForm.get("firstName").touched)&&i.paymentForm.get("firstName").errors)),e.R7$(2),e.Y8G("ngIf",i.paymentForm.get("firstName").invalid&&(i.paymentForm.get("firstName").dirty||i.paymentForm.get("firstName").touched)),e.R7$(8),e.Y8G("ngClass",e.eq3(46,_c,(i.paymentForm.get("lastName").dirty||i.paymentForm.get("lastName").touched)&&i.paymentForm.get("lastName").errors)),e.R7$(2),e.Y8G("ngIf",i.paymentForm.get("lastName").invalid&&(i.paymentForm.get("lastName").dirty||i.paymentForm.get("lastName").touched)),e.R7$(8),e.Y8G("ngClass",e.eq3(48,_c,(i.paymentForm.get("email").dirty||i.paymentForm.get("email").touched)&&i.paymentForm.get("email").errors)),e.R7$(2),e.Y8G("ngIf",i.paymentForm.get("email").invalid&&(i.paymentForm.get("email").dirty||i.paymentForm.get("email").touched)),e.R7$(8),e.Y8G("ngClass",e.eq3(50,_c,(i.paymentForm.get("phone").dirty||i.paymentForm.get("phone").touched)&&i.paymentForm.get("phone").errors)),e.R7$(2),e.Y8G("ngIf",i.paymentForm.get("phone").invalid&&(i.paymentForm.get("phone").dirty||i.paymentForm.get("phone").touched)),e.R7$(12),e.Y8G("ngStyle",e.l_i(52,SP,i.colorform.value.button_text_color,i.colorform.value.button_color)))},dependencies:[Fe.YU,Fe.Sq,Fe.bT,Fe.B3,ie.qT,ie.xH,ie.y7,ie.me,ie.Q0,ie.Zm,ie.wz,ie.BC,ie.cb,ie.VZ,ie.zX,ie.vS,ie.j4,ie.JD,qe.Wk,E.SrT,E.KH5,E.VDm,E.zJv,E.YP2,E.i6h],styles:['.col
1-in1[_ngcontent-%COMP%]{border-right:1px solid #E7E7E7}small[_ngcontent-%COMP%]{font-size:66%}.menu_itam[_ngcontent-%COMP%]{width:100%;height:43px;padding:10px 1px;border-radius:6px;background:#667185;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;transition:all .2s ease-in-out}.clicked[_ngcontent-%COMP%]{background:#004d14;border:1px solid #004D14;color:#fff}.clicked2[_ngcontent-%COMP%]{background:#fff;border:1px solid #667185;color:#667185}.clicked2[_ngcontent-%COMP%]:hover{background:#eef2f8;border-color:#4b5563;color:#1f2937}.div_heading[_ngcontent-%COMP%]{font-size:24px;font-weight:600;color:#000}.apply[_ngcontent-%COMP%]{font-size:14px;color:#10b981;font-weight:400;cursor:pointer}label[_ngcontent-%COMP%]{font-size:14px;color:#344054;font-weight:500}.selecter_invoice[_ngcontent-%COMP%]{background-color:#f7f9fc;border-color:#e4e9f2;color:#222b45;line-height:1.5rem;padding:.4375rem 1rem;font-size:15px!important;font-weight:400!important;border-radius:.25rem}.custom-checkbox[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:14px;color:#1d2939}.custom-checkbox[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;width:14px;height:14px;border:2px solid #000;border-radius:4px;background-color:#fff;position:relative;cursor:pointer;padding-left:12px;padding-top:12px;margin-top:-13px}.custom-checkbox[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked{background-color:#000;border-color:#000}.custom-checkbox[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:after{content:"";position:absolute;top:2px;left:5px;width:4px;height:8px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg);display:none}.custom-checkbox[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked:after{display:block}.lable_checkbox[_ngcontent-%COMP%]{font-size:11px;color:#101928;margin-top:-11px}.position-relative[_ngcontent-%COMP%]{position:relative}.percent-symbol[_ngcontent-%COMP%]{position:absolute;right:4px;top:50%;transform:translateY(-50%);color:#6c757d;font-size:14px;pointer-events:none}.helper-text[_ngcontent-%COMP%]{font-size:8px;color:#667185;line-height:12px;position:absolute;top:62px}.test-danger2[_ngcontent-%COMP%]{position:absolute;top:82px}.menu_itamBiling[_ngcontent-%COMP%]{width:100%;height:50px;padding:10px 1px;border-radius:6px;font-size:10px;background:#f4f4f4;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.button_name[_ngcontent-%COMP%]{margin:0;font-weight:400;font-size:12px}.button_sub_name[_ngcontent-%COMP%]{margin:0;font-size:10px;color:#667185}.clicked_billing[_ngcontent-%COMP%]{background:#effff4;border:1px solid #036B26;color:#036b26}.clicked2_billing[_ngcontent-%COMP%]{background:#fff;border:1px solid #D0D5DD;color:#98a2b3}.ipg-dashbord-right[_ngcontent-%COMP%]{padding-right:4px!important}.ipg-dashbord-left[_ngcontent-%COMP%]{padding-left:4px!important}.menu_itamBiling[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;text-align:center}.sub_con[_ngcontent-%COMP%]{font-size:8px;color:#667185;font-weight:400}.pencil_plus[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.pencil[_ngcontent-%COMP%]{width:12px;height:12px;color:red}.pencil_table[_ngcontent-%COMP%]{width:12px;height:12px;color:#000!important;margin-right:5px;cursor:pointer}.delete_table[_ngcontent-%COMP%]{width:12px;height:12px;color:red;cursor:pointer}.btn_[_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;text-align:center;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;vertical-align:middle;padding:4px 10px;border:1px solid #667185;color:#667185;font-weight:600;background-color:#fff;border-radius:4px;transition:all .2s ease-in-out;font-size:12px}.btn_[_ngcontent-%COMP%]:hover{background-color:#667185;color:#fff;cursor:pointer}.slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0;background-color:#ccc;transition:.4s}.slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:10px;width:10px;left:4px;bottom:4px;background-color:#fff;transition:.4s}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]{background-color:#064e3b}input[_ngcontent-%COMP%]:focus + .slider[_ngcontent-%COMP%]{box-shadow:0 0 1px #064e3b}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{transform:translate(16px)}.slider.round[_ngcontent-%COMP%]{border-radius:34px}.slider.round[_ngcontent-%COMP%]:before{border-radius:50%}.switch[_ngcontent-%COMP%]{position:relative;display:inline-block;width:35px;height:18px}.switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{opacity:0;width:0;height:0}.text-success[_ngcontent-%COMP%]{color:#28a745!important;font-size:8px;font-weight:400}.text-danger[_ngcontent-%COMP%]{color:#dc3545!important;font-size:10px;font-weight:400}.image_menu_dev[_ngcontent-%COMP%]{width:96px;height:96px;padding:10px 1px;border-radius:6px;border:1px solid #D0D5DD;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease-in-out;overflow:hidden}.image_icon[_ngcontent-%COMP%]{width:36px;height:auto}.color_grid[_ngcontent-%COMP%]{width:40px;height:40px}.company-logo[_ngcontent-%COMP%]{width:80px;height:80px;object-fit:contain;border-radius:50%}.payment-header[_ngcontent-%COMP%]{padding:1.5rem;border-radius:8px 8px 0 0;color:#fff}
1.payment-amount[_ngcontent-%COMP%]{font-size:21px;font-weight:700;margin-top:-19px}.alert-note[_ngcontent-%COMP%]{padding:.5rem;margin:.5rem 0;border-radius:6px;font-size:10px;line-height:14px;border:1px solid #B94B20}.form-control[_ngcontent-%COMP%]{border-radius:6px}.btn_[_ngcontent-%COMP%]{padding:6px 18px;border-radius:6px}.banner_header[_ngcontent-%COMP%]{font-size:18px;font-weight:600;line-height:20px}.banner_desc[_ngcontent-%COMP%]{font-size:10px;color:#fff;font-weight:400;line-height:15px}.system_d[_ngcontent-%COMP%]{font-size:10px;color:#667185}.form_grid[_ngcontent-%COMP%]{padding:18px}.payment_border[_ngcontent-%COMP%]{border:1px solid #BDBDBD;border-radius:8px}.btn_common[_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;text-align:center;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;vertical-align:middle;padding:10px 18px;font-weight:600;border-radius:4px;transition:all .2s ease-in-out;font-size:12px}.btS_unique[_ngcontent-%COMP%]{border:none}.btS_unique_link[_ngcontent-%COMP%]{border:none;color:#fff;background-color:#004d14}.btC_unique[_ngcontent-%COMP%]{border:1px solid #667185;color:#667185;background-color:transparent}.btC_unique[_ngcontent-%COMP%]:hover, .btS_unique[_ngcontent-%COMP%]:hover{background-color:#667185;color:#fff;cursor:pointer}.btS_link[_ngcontent-%COMP%]{border:none;color:#fff;background-color:#004d14}.btS_link[_ngcontent-%COMP%]:hover{background-color:#667185;color:#fff;cursor:pointer}.menu_div[_ngcontent-%COMP%]{width:100%;border:1px solid #BCBCBC;border-radius:6px;padding:12px 16px;background-color:#fff;box-shadow:0 1px 2px #0000000d}.plan-details[_ngcontent-%COMP%]{display:flex;flex-direction:column}.plan-title[_ngcontent-%COMP%]{font-size:14px;font-weight:600;margin-bottom:2px}.plan-subtitle[_ngcontent-%COMP%]{font-size:12px;color:#999;margin-bottom:6px}.plan-info[_ngcontent-%COMP%]{display:flex;gap:16px;font-size:12px;color:#666}.apply-button[_ngcontent-%COMP%]{background-color:#002e1a;color:#fff;padding:6px 16px;border:none;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;transition:background-color .3s}.apply-button[_ngcontent-%COMP%]:hover{background-color:#014a2a}.plan-subtitle[_ngcontent-%COMP%]{font-size:12px;color:#999;margin-right:16px}.plan-info-item[_ngcontent-%COMP%]{font-size:12px;color:#666;margin-right:16px}.company-logo_temp[_ngcontent-%COMP%]{width:42px;height:42px;object-fit:contain;border-radius:50%}.banner_header_temp[_ngcontent-%COMP%]{font-size:14px;font-weight:500;line-height:145%}.link_popup_heading_temp[_ngcontent-%COMP%]{font-size:24px;font-weight:500;line-height:145%}.save_btn[_ngcontent-%COMP%]{width:100%;height:38px;padding:14px;border-radius:6px;background:#10b981;cursor:pointer;display:flex;align-items:center;justify-content:center;margin-top:20px;font-size:8px;transition:all .2s ease-in-out;border:none;color:#fff}.plus_button[_ngcontent-%COMP%]{border:1px solid #D0D5DD;background:transparent;border-radius:6px;padding:7px 11px;font-size:20px;margin-left:5px}.btS_popup[_ngcontent-%COMP%]{background-color:#004d14;color:#fff;border:none}.payment-with-background[_ngcontent-%COMP%]{background-image:url(circle\\ 1.86daa258f730cc01.png);background-repeat:no-repeat;background-position:bottom center;border-radius:16px;padding:24px}.form-check-input[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.6;background-color:#e9ecef;border-color:#adb5bd}.form-check-input[_ngcontent-%COMP%]:disabled + label[_ngcontent-%COMP%]{color:#6c757d;cursor:not-allowed;opacity:.7}input[type=number][_ngcontent-%COMP%]::-webkit-inner-spin-button, input[type=number][_ngcontent-%COMP%]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.menu_itamBiling[_ngcontent-%COMP%]{position:relative;padding:15px;border:1px solid #ccc;border-radius:8px;text-align:center}.disabled_billing[_ngcontent-%COMP%]{pointer-events:none}.coming-soon-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background:#ffffffb3;display:flex;align-items:center;justify-content:center;font-size:14px;color:#333;border-radius:8px}']}
1)}return n})(),IM=(()=>{class n{static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-subscriptio-and-email"]],decls:301,vars:0,consts:[[1,"body-style","ipg-transaction-root"],[1,"container"],[1,"row","mb-4"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"page-heading"],[1,"col"],[1,"sub_headline"],[2,"text-decoration","none","color","#667185","font-size","14px","font-weight","400"],[1,"grid_1"],[1,"grid_heading_1"],[1,"switch_grid","mb-1"],[1,"switch"],["type","checkbox"],[1,"slider","round"],[1,"switch_name"],[1,"row"],[1,"col-12"],[1,"d-flex","justify-content-end","mt-4"],["type","button",1,"btn_common","btC_unique","mr-2"],["type","submit",1,"btn_common","btS_unique"],[1,"grid_2"],[1,"col-3"],[1,"radio_btn_headline"],[1,"col-9"],[1,"custom-radio-group"],[1,"custom-radio-inline",2,"padding-left","2px"],[1,"radio-label-inline"],[1,"custom-select"],["selected",""],[1,"grid_3"],[1,"custom-radio-inline"],["type","radio","name","option"],[1,"radio-circle"],["type","radio","name","option","checked",""],[1,"row","mt-2"],[1,"grid_4"],[1,"custom-radio-group","mt-3"],[1,"row","mt-3"]],template:function(r,i){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h2",4),e.EFF(5,"Subscription and emails"),e.k0s()()(),e.j41(6,"div",2)(7,"div",5)(8,"nb-card")(9,"nb-card-body")(10,"h5",6),e.EFF(11,"Email notifications and customer management"),e.k0s(),e.j41(12,"p",7),e.EFF(13,"Configure subscriber notifications and how they manage their accounts."),e.k0s(),e.nrm(14,"hr"),e.j41(15,"div",8)(16,"h5",9),e.EFF(17,"Subscriber emails"),e.k0s(),e.j41(18,"div",10)(19,"label",11),e.nrm(20,"input",12)(21,"span",13),e.k0s(),e.j41(22,"span",14),e.EFF(23,"Send a reminder email 7 days before a free trial ends. "),e.k0s()(),e.j41(24,"div",10)(25,"label",11),e.nrm(26,"input",12)(27,"span",13),e.k0s(),e.j41(28,"span",14),e.EFF(29,"Send emails about upcoming renewals. "),e.k0s()(),e.j41(30,"div",10)(31,"label",11),e.nrm(32,"input",12)(33,"span",13),e.k0s(),e.j41(34,"span",14),e.EFF(35,"Send emails about expiring cards."),e.k0s()(),e.j41(36,"div",10)(37,"label",11),e.nrm(38,"input",12)(39,"span",13),e.k0s(),e.j41(40,"span",14),e.EFF(41,"Send emails when card payments fail. "),e.k0s()(),e.j41(42,"div",15)(43,"div",16)(44,"div",17)(45,"button",18),e.EFF(46,"Cancel"),e.k0s(),e.j41(47,"button",19),e.EFF(48,"Save"),e.k0s()()()()(),e.nrm(49,"hr"),e.j41(50,"div",20)(51,"h5",9),e.EFF(52,"Prevent failed payments"),e.k0s(),e.j41(53,"div",15)(54,"div",21)(55,"span",22),e.EFF(56,"Upcoming renewal events"),e.k0s()(),e.j41(57,"div",23)(58,"div",24)(59,"label",25)(60,"span",26),e.EFF(61," Create an event for upcoming invoice Create an event for upcoming invoice "),e.j41(62,"select",27)(63,"option"),e.EFF(64,"1 time"),e.k0s(),e.j41(65,"option"),e.EFF(66,"2 times"),e.k0s(),e.j41(67,"option",28),e.EFF(68,"4 times"),e.k0s()(),e.EFF(69," before a subscription renews "),e.k0s()()()()(),e.j41(70,"div",15)(71,"div",16)(72,"div",17)(73,"button",18),e.EFF(74,"Cancel"),e.k0s(),e.j41(75,"button",19),e.EFF(76,"Save"),e.k0s()()()()(),e.nrm(77,"hr"),e.j41(78,"div",29)(79,"h5",9),e.EFF(80,"Manage disputed payments"),e.k0s(),e.j41(81,"div",15)(82,"div",21)(83,"span",22),e.EFF(84,"Retry Schedule"),e.k0s()(),e.j41(85,"div",23)(86,"div",24)(87,"label",30),e.nrm(88,"input",31)(89,"span",32),e.j41(90,"span",26),e.EFF(91," Create an event for upcoming invoice "),e.k0s()(),e.j41(92,"label",30),e.nrm(93,"input",33)(94,"span",32),e.j41(95,"span",26),e.EFF(96," Retry up to "),e.j41(97,"select",27)(98,"option"),e.EFF(99,"1 time"),e.k0s(),e.j41(100,"option"),e.EFF(101,"2 times"),e.k0s(),e.j41(102,"option",28),e.EFF(103,"4 times"),e.k0s()(),e.EFF(104," within "),e.j41(105,"select",27)(106,"option"),e.EFF(107,"1 week"),e.k0s(),e.j41(108,"option"),e.EFF(109,"3 weeks"),e.k0s(),e.j41(110,"option"),e.EFF(111,"1 month"),e.k0s()()()(),e.j41(112,"label",30),e.nrm(113,"input",31)(114,"span",32),e.j41(115,"span",26),e.EFF(116," Use a custom retry policy for subscription payments "),e.k0s()()()()(),e.j41(117,"div",34)(118,"div",21)(119,"span",22),e.EFF(120,"Invoice status"),e.k0s()(),e.j41(121,"div",23)(122,"div",24)(123,"label",25)(124,"span",26),e.EFF(125," If all retries for a payment fail : "),e.j41(126,"select",27)(127,"option"),e.EFF(128,"1 time"),e.k0s(),e.j41(129,"option"),e.EFF(130,"2 times"),e.k0s(),e.j41(131,"option",28),e.EFF(132,"leave the invoice overdue"),e.k0s()()()()()()(),e.j41(133,"div",15)(134,"div",16)(135,"div",17)(136,"button",18),e.EFF(137,"Cancel"),e.k0s(),e.j41(138,"button",19),e.EFF(139,"Save"),e.k0s()()()()(),e.nrm(140,"hr"),e.j41(141,"div",35)(142,"h5",9),e.EFF(143,"Manage disputed payments"),e.k0s(),e.j41(144,"div",15)(145,"div",21)(146,"span",22),e.EFF(147,"Subscription status"),e.k0s()(),e.j41(148,"div",23)(149,"div",24)(150,"label",25)(1
151,"span",26),e.EFF(152," If a recurring payment is incomplete for : "),e.j41(153,"select",27)(154,"option"),e.EFF(155,"1 time"),e.k0s(),e.j41(156,"option"),e.EFF(157,"2 times"),e.k0s(),e.j41(158,"option",28),e.EFF(159,"4 times"),e.k0s()(),e.EFF(160," then "),e.j41(161,"select",27)(162,"option"),e.EFF(163,"1 time"),e.k0s(),e.j41(164,"option"),e.EFF(165,"2 times"),e.k0s(),e.j41(166,"option",28),e.EFF(167,"cancel the subscription at the end of the period"),e.k0s()()()()(),e.j41(168,"div",36)(169,"label",25)(170,"span",26),e.EFF(171," If a dispute is opened : "),e.j41(172,"select",27)(173,"option"),e.EFF(174,"1 time"),e.k0s(),e.j41(175,"option"),e.EFF(176,"2 times"),e.k0s(),e.j41(177,"option",28),e.EFF(178,"4 times"),e.k0s()(),e.EFF(179," then "),e.j41(180,"select",27)(181,"option"),e.EFF(182,"1 time"),e.k0s(),e.j41(183,"option"),e.EFF(184,"2 times"),e.k0s(),e.j41(185,"option",28),e.EFF(186,"leave the invoice as-is"),e.k0s()()()()()()(),e.j41(187,"div",37)(188,"div",21)(189,"span",22),e.EFF(190,"Subscription status"),e.k0s()(),e.j41(191,"div",23)(192,"div",24)(193,"label",25)(194,"span",26),e.EFF(195," If a payment is incomplete for : "),e.j41(196,"select",27)(197,"option"),e.EFF(198,"1 time"),e.k0s(),e.j41(199,"option"),e.EFF(200,"2 times"),e.k0s(),e.j41(201,"option",28),e.EFF(202,"4 times"),e.k0s()(),e.EFF(203," then "),e.j41(204,"select",27)(205,"option"),e.EFF(206,"1 time"),e.k0s(),e.j41(207,"option"),e.EFF(208,"2 times"),e.k0s(),e.j41(209,"option",28),e.EFF(210,"leave the invoice as-is"),e.k0s()()()()()()(),e.j41(211,"div",15)(212,"div",16)(213,"div",17)(214,"button",18),e.EFF(215,"Cancel"),e.k0s(),e.j41(216,"button",19),e.EFF(217,"Save"),e.k0s()()()()(),e.nrm(218,"hr"),e.j41(219,"div",35)(220,"h5",9),e.EFF(221,"Manage invoices sent to customers"),e.k0s(),e.j41(222,"div",15)(223,"div",21)(224,"span",22),e.EFF(225,"Customer Emails"),e.k0s()(),e.j41(226,"div",23)(227,"div",24)(228,"label",25)(229,"span",26)(230,"label",11),e.nrm(231,"input",12)(232,"span",13),e.k0s(),e.EFF(233," Send reminders if a recurring invoices hasn\u2019t been paid "),e.j41(234,"select",27)(235,"option"),e.EFF(236,"1 time"),e.k0s(),e.j41(237,"option"),e.EFF(238,"2 times"),e.k0s(),e.j41(239,"option",28),e.EFF(240,"7 days after it was due"),e.k0s()()()()(),e.j41(241,"div",24)(242,"label",25)(243,"span",26)(244,"label",11),e.nrm(245,"input",12)(246,"span",13),e.k0s(),e.EFF(247," Send finished invoices and credit notes to customers "),e.k0s()()()()(),e.j41(248,"div",37)(249,"div",21)(250,"span",22),e.EFF(251,"Subscription status"),e.k0s()(),e.j41(252,"div",23)(253,"div",24)(254,"label",25)(255,"span",26),e.EFF(256," If a payment is incomplete for : "),e.j41(257,"select",27)(258,"option"),e.EFF(259,"1 time"),e.k0s(),e.j41(260,"option"),e.EFF(261,"2 times"),e.k0s(),e.j41(262,"option",28),e.EFF(263,"4 times"),e.k0s()(),e.j41(264,"select",27)(265,"option"),e.EFF(266,"1 time"),e.k0s(),e.j41(267,"option"),e.EFF(268,"2 times"),e.k0s(),e.j41(269,"option",28),e.EFF(270,"leave the invoice as-is"),e.k0s()()()()()()(),e.j41(271,"div",37)(272,"div",21)(273,"span",22),e.EFF(274,"Invoice status"),e.k0s()(),e.j41(275,"div",23)(276,"div",24)(277,"label",25)(278,"span",26),e.EFF(279," If an invoice is overdue by "),e.j41(280,"select",27)(281,"option"),e.EFF(282,"1 time"),e.k0s(),e.j41(283,"option"),e.EFF(284,"2 times"),e.k0s(),e.j41(285,"option",28),e.EFF(286,"4 times"),e.k0s()(),e.j41(287,"select",27)(288,"option"),e.EFF(289,"1 time"),e.k0s(),e.j41(290,"option"),e.EFF(291,"2 times"),e.k0s(),e.j41(292,"option",28),e.EFF(293,"leave the invoice overdue"),e.k0s()()()()()()(),e.j41(294,"div",15)(295,"div",16)(296,"div",17)(297,"button",18),e.EFF(298,"Cancel"),e.k0s(),e.j41(299,"button",19),e.EFF(300,"Save"),e.k0s()()()()()()()()()()())},dependencies:[ie.xH,ie.y7,E.SrT,E.KH5],styles:["@charset \"UTF-8\";.sub_headline[_ngcontent-%COMP%]{font-weight:500;font-size:24px;line-height:145%}.slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0;background-color:#ccc;transition:.4s}.slider[_ngcontent-%COMP%]:before{position:absolute;content:\"\";height:10px;width:10px;left:4px;bottom:4px;background-color:#fff;transition:.4s}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]{background-color:#064e3b}input[_ngcontent-%COMP%]:focus + .slider[_ngcontent-%COMP%]{box-shadow:0 0 1px #064e3b}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{transform:translate(16px)}.slider.round[_ngcontent-%COMP%]{border-radius:34px}.slider.round[_ngcontent-%COMP%]:before{border-radius:50%}.switch[_ngcontent-%COMP%]{position:relative;display:inline-block;width:35px;height:18px}.switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{opacity:0;width:0;height:0}.swith_name[_ngcontent-%COMP%]{margin-left:20px}.grid_heading_1[_ngcontent-%COMP%]{font-size:20px;font-weight:500;line-height:100%;margin-bottom:15px!important}.switch_name[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#9d9d9d;margin-left:10px}.btn_common[_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;text-align:center;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;vertical-align:middle;padding:10px 18px;font-weight:600;border-radius:4px;transition:all .2s ease-in-out;font-size:12px}.btS_unique[_ngcontent-%COMP%]{border:none;color:#fff;background-color:#004d14}.btC_unique[_ngcontent-%COMP%]{border:1px solid #667185;color:#667185;background-color:transparent}.radio_btn_headline[_ngcontent-%COMP%]{font-size:14px;font-weight:500;line-height:24px}.custom-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.custom-radio-inline[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;padding-left:24px;font-size:14px;cursor:pointer;white-space:nowrap;color:#9d9d9d}.custom-radio-inline[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer}
1.radio-circle[_ngcontent-%COMP%]{position:absolute;left:0;top:50%;transform:translateY(-50%);height:16px;width:16px;background-color:#fff;border:2px solid #059669;border-radius:50%;display:flex;align-items:center;justify-content:center}.radio-circle[_ngcontent-%COMP%]:after{content:\"\";width:8px;height:8px;background-color:#059669;border-radius:50%;display:none}.custom-radio-inline[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + .radio-circle[_ngcontent-%COMP%]:after{display:block}.custom-radio-inline[_ngcontent-%COMP%]{display:flex;align-items:flex-start;position:relative;padding-left:24px;font-size:14px;cursor:pointer;flex-wrap:wrap;color:#9d9d9d;width:100%}.radio-label-inline[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:14px;flex-wrap:wrap;width:100%;line-height:1.5}.custom-select[_ngcontent-%COMP%]{padding:4px 20px;font-size:13px;border:1px solid #ccc;border-radius:6px;-webkit-appearance:none;appearance:none;background-color:#fff;background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20,50 70,100 120,50' stroke='%23666' stroke-width='15' fill='none'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:right 8px center;background-size:12px;width:auto}"]})}return n})();function jM(n,a){1&n&&(e.j41(0,"tbody")(1,"tr")(2,"td"),e.EFF(3,"Visa/ Master"),e.k0s(),e.j41(4,"td"),e.EFF(5,"Bank of ceylon"),e.k0s(),e.j41(6,"td"),e.EFF(7,"12 Jan 2024"),e.k0s(),e.j41(8,"td"),e.EFF(9,"12 Jan 2024"),e.k0s(),e.j41(10,"td"),e.EFF(11,"12 Jan 2024"),e.k0s(),e.j41(12,"td"),e.EFF(13,"12%"),e.k0s(),e.j41(14,"td",27)(15,"div",28),e.nrm(16,"img",29),e.j41(17,"div",30)(18,"button",31)(19,"span"),e.nrm(20,"nb-icon",32),e.k0s(),e.j41(21,"span",33),e.EFF(22,"View "),e.k0s()(),e.j41(23,"button",31)(24,"span"),e.nrm(25,"img",34),e.k0s(),e.j41(26,"span",35),e.EFF(27,"Delete "),e.k0s()()()()()()())}
1function RM(n,a){1&n&&(e.j41(0,"div",36)(1,"div",37)(2,"span",38),e.EFF(3,"Loading..."),e.k0s()()())}let LM=(()=>{class n{constructor(t,r,i){this.subscriptionLinkService=t,this.toastr=r,this.installmentService=i,this.is_loading_1=!1,this.allTokentlist=[],this.page=1,this.page_size=10,this.count=0}ngOnInit(){this.getAllTokentData()}getAllTokentData(){this.is_loading_1=!0,this.installmentService.getAlltokentList(this.page,this.page_size).then(t=>{200==t.status?(this.is_loading_1=!1,t.data?(this.allTokentlist=t?.data,console.log(t.data,"tokent list")):this.toastr.showToast("danger","Error!","Internal Server Error.")):(this.is_loading_1=!1,this.toastr.showToast("danger","Error!","Internal Server Error."))})}pageChanged(t){this.page=t,this.getAllTokentData()}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(b0),e.rXU(Dt.V4),e.rXU(E4))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-token-management"]],decls:62,vars:2,consts:[[1,"body-style","ipg-transaction-root"],[1,"container"],[1,"row","mb-4"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"page-heading"],[1,"col"],[1,"row"],[1,"col-5","d-flex","justify-content-start","align-items-center"],[1,"input-container"],["type","text","placeholder","Search by customer name"],[1,"search-icon"],["src","../../../assets/images/search.png","alt","Search Icon",1,"search-img"],[1,"col-7","d-flex","justify-content-end","align-items-center"],["placeholder","Select Reason",1,"selecter_","width_1"],["value",""],["value","LKR"],["value","USD"],[1,"menu_itam2"],["src","../../../../assets/images/download.png","alt","Description",1,"button_img"],[1,"button_name"],[1,"menu_itam2",2,"margin-left","15px"],["src","../../../../assets/images/setting.png","alt","Description",1,"button_img"],[1,"col","d-flex","flex-column","px-0","list-like-table"],[1,"table-responsive"],[1,"table","table-sm","align-top"],[4,"ngIf"],["class","d-flex justify-content-center align-items-center","style","height: 20rem;",4,"ngIf"],[1,"d-flex","justify-content-around"],[1,"btn-group"],["data-toggle","dropdown","aria-expanded","false","src","../../../../assets/images/more.png",1,"more_i"],[1,"dropdown-menu","dropdown-menu-right"],["type","button",1,"dropdown-item"],["icon","eye-outline"],[2,"font-size","14px","font-weight","500","color","#344054","margin-left","10px"],["src","../../../../assets/images/delete_i.png",1,"drop_icon"],[2,"font-size","14px","font-weight","500","color","red","margin-left","10px"],[1,"d-flex","justify-content-center","align-items-center",2,"height","20rem"],["role","status",1,"spinner-border","text-primary"],[1,"visually-hidden"]],template:function(r,i){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h2",4),e.EFF(5,"Token Management "),e.k0s()()(),e.j41(6,"div",2)(7,"div",5)(8,"nb-card")(9,"nb-card-body")(10,"div",6)(11,"div",7)(12,"div",8),e.nrm(13,"input",9),e.j41(14,"span",10),e.nrm(15,"img",11),e.k0s()()(),e.j41(16,"div",12)(17,"select",13)(18,"option",14),e.EFF(19,"ALL"),e.k0s(),e.j41(20,"option",15),e.EFF(21,"LKR"),e.k0s(),e.j41(22,"option",16),e.EFF(23,"USD"),e.k0s()(),e.j41(24,"select",13)(25,"option",14),e.EFF(26,"ALL"),e.k0s(),e.j41(27,"option",15),e.EFF(28,"LKR"),e.k0s(),e.j41(29,"option",16),e.EFF(30,"USD"),e.k0s()(),e.j41(31,"div",17),e.nrm(32,"img",18),e.j41(33,"span",19),e.EFF(34,"Export"),e.k0s()(),e.j41(35,"div",20),e.nrm(36,"img",21),e.j41(37,"span",19),e.EFF(38,"Edit Columns"),e.k0s()()()(),e.j41(39,"div",22)(40,"div",23)(41,"table",24)(42,"thead")(43,"tr")(44,"th"),e.EFF(45,"Payment option"),e.k0s(),e.j41(46,"th"),e.EFF(47,"Bank"),e.k0s(),e.j41(48,"th"),e.EFF(49,"Start date"),e.k0s(),e.j41(50,"th"),e.EFF(51,"End date"),e.k0s(),e.j41(52,"th"),e.EFF(53,"Created date"),e.k0s(),e.j41(54,"th"),e.EFF(55,"Discount"),e.k0s(),e.j41(56,"th"),e.EFF(57,"STATUS"),e.k0s(),e.j41(58,"th"),e.EFF(59,"ACTION"),e.k0s()()(),e.DNE(60,jM,28,0,"tbody",25),e.k0s(),e.DNE(61,RM,4,0,"div",26),e.k0s()()()()()()()()),2&r&&(e.R7$(60),e.Y8G("ngIf",!i.is_loading_1),e.R7$(),e.Y8G("ngIf",i.is_loading_1))},dependencies:[Fe.bT,ie.xH,ie.y7,E.SrT,E.KH5,E.tHu],styles:[".ipg-transaction-root[_ngcontent-%COMP%] nb-badge[_ngcontent-%COMP%]{position:absolute;top:39%;left:15px;width:-moz-fit-content;width:fit-content}.transaction-view-modal[_ngcontent-%COMP%]{width:40rem;height:85vh}.transaction-view-modal[_ngcontent-%COMP%] nb-badge[_ngcontent-%COMP%]{position:absolute;
1left:15px;top:50%;transform:translateY(0);width:-moz-fit-content;width:fit-content}.menu_itam[_ngcontent-%COMP%]{width:100%;height:124px;padding:32px 1px;border-radius:8px;border:1px solid #E4E4E4;background:#f4f4f4}.count-user[_ngcontent-%COMP%]{font-weight:700;font-size:32px;color:#1a202c;text-align:center}.count-user_O[_ngcontent-%COMP%]{font-weight:700;font-size:32px;color:#c6c6c6;text-align:center}.count-user-name[_ngcontent-%COMP%]{font-weight:500;font-size:16px;color:#4d4d4d;text-align:center}.dashbord-tab[_ngcontent-%COMP%]{padding-right:6px!important;padding-left:6px!important}.ipg-filter[_ngcontent-%COMP%]{width:500px;float:right!important}.ipg-filter-content[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:none;height:100%;border-radius:0;outline:0}.modal-header-ipg[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;padding:1rem;border-top-left-radius:.3rem;border-top-right-radius:.3rem}.modal-footer-ipg[_ngcontent-%COMP%]{position:fixed;bottom:0;text-align:right;font-size:14px;color:#8b8b8b;font-weight:400;margin-top:14px;background:#fff;width:500px;margin-bottom:12px;padding-right:26px}.modal-body-filter[_ngcontent-%COMP%]{height:100vh}.modal2[_ngcontent-%COMP%]{position:fixed;top:0;left:0;z-index:1050;display:none;width:100%;overflow:hidden;outline:0}.select_filter[_ngcontent-%COMP%]{background-color:#f7f9fc;border-color:#e4e9f2;color:#222b45;line-height:1.5rem;padding:.4375rem 1rem;font-size:15px!important;font-weight:400!important;border-radius:.25rem}.select_filte[_ngcontent-%COMP%]:hover{border:none!important}.filter-form-clear-btn[_ngcontent-%COMP%]{width:80px!important;height:40px!important;border-radius:8px!important;border:1px solid #D0D5DD!important;font-weight:600!important;font-size:14px!important;color:#344054!important;margin-right:8px}.primary-black-btn[_ngcontent-%COMP%]{width:76px!important;height:40px!important;border-radius:8px!important;border:1px solid #D0D5DD!important;font-weight:600!important;font-size:14px!important;color:#fff!important}.filter-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#344054;font-size:14px;font-weight:500}.filter_icon[_ngcontent-%COMP%]{float:right!important;cursor:pointer;margin-top:17px}.filter_icon_figma[_ngcontent-%COMP%]{height:11px;width:auto;margin-right:6px}.tool_icon[_ngcontent-%COMP%]{position:absolute;top:4px;right:14px;cursor:pointer}.primary-green-btn[_ngcontent-%COMP%]{background:#000!important;text-transform:capitalize!important}.search[_ngcontent-%COMP%]{margin-left:12px;margin-top:11px}.more_i[_ngcontent-%COMP%]{width:auto;height:15px;cursor:pointer}.btn.dropdown-toggle[_ngcontent-%COMP%]{display:none}.more_i[_ngcontent-%COMP%]{position:relative;top:3px}.drop_icon[_ngcontent-%COMP%]{width:13px;height:13px}.overridee[_ngcontent-%COMP%]{align-items:baseline!important}.icon-main[_ngcontent-%COMP%]{position:absolute;z-index:1;margin-top:10px;margin-left:13px}.icon-sub-sign[_ngcontent-%COMP%]{display:inline;color:#667085;font-weight:100}.sign-input[_ngcontent-%COMP%]{padding-left:52px!important;width:100%}th[_ngcontent-%COMP%]{text-transform:uppercase}.input-container[_ngcontent-%COMP%]{position:relative;display:inline-block;width:100%;max-width:400px}.input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;padding:8px 10px 8px 32px;font-size:16px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box}.input-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{position:absolute;left:10px;top:50%;transform:translateY(-50%);font-size:16px;color:#888;pointer-events:none}.search-img[_ngcontent-%COMP%]{width:14px;height:auto}.selecter_[_ngcontent-%COMP%]{background-color:#fff;border-color:#d0d5dd;color:#98a2b3;line-height:1.5rem;padding:.2375rem 1rem;font-size:14px!important;font-weight:400!important;border-radius:.25rem;height:36px;margin-right:15px;float:right}.menu_itam[_ngcontent-%COMP%]{width:100%;height:48px;padding:10px 1px;border-radius:6px;background:#f4f4f4;cursor:pointer;display:flex;align-items:center;justify-content:center}.menu_itam2[_ngcontent-%COMP%]{width:auto;height:36px;padding:10px 15px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;float:right;background:#fff;border:1px solid #D0D5DD;color:#98a2b3}.clicked[_ngcontent-%COMP%]{background:#effff4;border:1px solid #036B26;color:#036b26}.clicked2[_ngcontent-%COMP%]{background:#fff;border:1px solid #D0D5DD;color:#98a2b3}.ipg-dashbord-right[_ngcontent-%COMP%]{padding-right:0!important}.button_name[_ngcontent-%COMP%]{font-size:12px;line-height:20px;font-weight:400}.button_img[_ngcontent-%COMP%]{width:20px;height:auto;margin-right:6px}.menu_refresh[_ngcontent-%COMP%]{width:auto;height:48px;padding:10px 15px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;float:right;background:#000;color:#fff;margin-left:15px}.istalment_plan[_ngcontent-%COMP%]{margin-bottom:15px!important}
1.create-green-btn[_ngcontent-%COMP%]{background:#004d14!important;color:#fff!important}.table[_ngcontent-%COMP%] .thead-light[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#495057;background-color:transparent;border:none!important}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-bottom:hidden;border-top:hidden;font-size:14px;color:#1c1c1c;font-weight:500}.table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-top:none;font-size:14px;color:#4b4b4b}.item_invoice_t[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-top:5px!important;padding-bottom:0!important}.in_ad_line[_ngcontent-%COMP%]{display:block;font-size:14px;font-weight:500;color:#344054;line-height:21px}.pencil[_ngcontent-%COMP%]{width:12px;height:12px;color:red}.pencil_table[_ngcontent-%COMP%]{width:12px;height:12px;color:#000!important;margin-right:5px}.delete_table[_ngcontent-%COMP%]{width:auto;height:32px;cursor:pointer}.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.data_table_lable[_ngcontent-%COMP%]{margin-top:10px}.div_line_in_table[_ngcontent-%COMP%]{width:100%;border-bottom:1px solid #DADADA;margin-top:5px;margin-bottom:5px}.pencil_plus[_ngcontent-%COMP%]{width:32px;height:32px;cursor:pointer}
1.label-name[_ngcontent-%COMP%]{margin-bottom:6px!important;color:#344054;font-size:14px;font-weight:500}.required_feeld[_ngcontent-%COMP%]{color:red;margin-left:5px}.text-danger[_ngcontent-%COMP%]{float:left!important}.item_invoice_t[_ngcontent-%COMP%] .other_td[_ngcontent-%COMP%]{font-weight:600;font-size:16px;color:#344054}.des_invoice[_ngcontent-%COMP%]{font-size:14px!important;color:#6a707a!important;font-weight:600!important}.icon_border[_ngcontent-%COMP%]{width:36px;height:36px;border:1px solid #ccc;border-radius:6px;display:flex;align-items:center;justify-content:center}.delete_table[_ngcontent-%COMP%]{width:14px;height:20px;cursor:pointer}.plus_table[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.colNew-1[_ngcontent-%COMP%]{width:90%}.colNew-2[_ngcontent-%COMP%]{width:10%}"]})}return n})();const D4=(n,a)=>({clicked:n,clicked2:a}),NM=n=>({"background-color":n}),Sf=n=>({"form-control-danger":n});function BM(n,a){1&n&&(e.j41(0,"small",111),e.EFF(1," First name is required! "),e.k0s())}function GM(n,a){1&n&&(e.j41(0,"small",111),e.EFF(1," Last name is required! "),e.k0s())}function VM(n,a){1&n&&(e.j41(0,"small",111),e.EFF(1," Email is required! "),e.k0s())}function zM(n,a){1&n&&(e.j41(0,"small",111),e.EFF(1," Phone number is required! "),e.k0s())}function UM(n,a){1&n&&(e.j41(0,"small",111),e.EFF(1," Currency is required! "),e.k0s())}function YM(n,a){1&n&&(e.j41(0,"small",112),e.EFF(1," Amount is required! "),e.k0s())}function WM(n,a){1&n&&(e.j41(0,"small",111),e.EFF(1," Reference number is required! "),e.k0s())}function $M(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",127)(1,"input",128),e.mxI("ngModelChange",function(i){const s=e.eBV(t).index,p=e.XpG(3).$implicit;return e.DH7(p.options[s],i)||(p.options[s]=i),e.Njj(i)}),e.k0s(),e.j41(2,"button",129),e.bIt("click",function(){const i=e.eBV(t).index,s=e.XpG(3).$implicit;return e.Njj(s.options.splice(i,1))}),e.EFF(3,"\u2212"),e.k0s()()}if(2&n){const t=a.index,r=e.XpG(3).$implicit;e.R7$(),e.R50("ngModel",r.options[t])}}function qM(n,a){if(1&n){const t=e.RV6();e.j41(0,"div"),e.DNE(1,$M,4,1,"div",125),e.j41(2,"button",126),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2).$implicit,s=e.XpG(2);return e.Njj(s.addEmptyOption(i))}),e.EFF(3," + Update/Add Option "),e.k0s()()}if(2&n){const t=e.XpG(2).$implicit;e.R7$(),e.Y8G("ngForOf",t.options)}}function XM(n,a){if(1&n&&(e.j41(0,"option"),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.R7$(),e.SpI("",t," ")}}function HM(n,a){if(1&n&&(e.j41(0,"div")(1,"select",130),e.DNE(2,XM,2,1,"option",131),e.k0s()()),2&n){const t=e.XpG(2).$implicit;e.R7$(2),e.Y8G("ngForOf",t.options)}}function KM(n,a){if(1&n&&(e.j41(0,"div",124)(1,"label",114),e.EFF(2,"Options"),e.k0s(),e.DNE(3,qM,4,1,"div",22)(4,HM,3,1,"div",22),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(3),e.Y8G("ngIf",t.editing),e.R7$(),e.Y8G("ngIf",!t.editing)}}function JM(n,a){if(1&n){const t=e.RV6();e.j41(0,"span")(1,"img",132),e.bIt("click",function(){e.eBV(t);const i=e.XpG().index,s=e.XpG(2);return e.Njj(s.editItem(i))}),e.k0s(),e.j41(2,"img",133),e.bIt("click",function(){e.eBV(t);const i=e.XpG().index,s=e.XpG(2);return e.Njj(s.deleteItem(i))}),e.k0s()()}}function ZM(n,a){if(1&n){const t=e.RV6();e.j41(0,"span")(1,"button",134),e.bIt("click",function(){e.eBV(t);const i=e.XpG().index,s=e.XpG(2);return e.Njj(s.saveItem(i))}),e.EFF(2,"\u2714 Save"),e.k0s()()}}function QM(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",113)(1,"div",17)(2,"div",96)(3,"label",114),e.EFF(4,"Input Type"),e.k0s(),e.j41(5,"select",115),e.mxI("ngModelChange",function(i){const s=e.eBV(t).$implicit;return e.DH7(s.input_type,i)||(s.input_type=i),e.Njj(i)}),e.j41(6,"option",99),e.EFF(7,"Text"),e.k0s(),e.j41(8,"option",100),e.EFF(9,"Select"),e.k0s()()(),e.j41(10,"div",116)(11,"div",117)(12,"div",118)(13,"label",103),e.EFF(14,"Label Name"),e.k0s(),e.j41(15,"div",104)(16,"input",119),e.mxI("ngModelChange",function(i){const s=e.eBV(t).$implicit;return e.DH7(s.required_field,i)||(s.required_field=i),e.Njj(i)}),e.k0s(),e.j41(17,"label",120),e.EFF(18,"Required field"),e.k0s()()(),e.j41(19,"input",121),e.mxI("ngModelChange",function(i){const s=e.eBV(t).$implicit;return e.DH7(s.label_name,i)||(s.label_name=i),e.Njj(i)}),e.k0s()(),e.DNE(20,KM,5,2,"div",122),e.k0s(),e.j41(21,"div",123),e.DNE(22,JM,3,0,"span",22)(23,ZM,3,0,"span",22),e.k0s()()()}if(2&n){const t=a.$implicit,r=a.index;
1e.R7$(5),e.Mz_("name","input_type_",r,""),e.Y8G("disabled",!t.editing),e.R50("ngModel",t.input_type),e.R7$(11),e.Mz_("id","required_field_",r,""),e.Y8G("disabled",!t.editing),e.R50("ngModel",t.required_field),e.R7$(),e.Mz_("for","required_field_",r,""),e.R7$(2),e.Mz_("name","label_name_",r,""),e.Y8G("disabled",!t.editing),e.R50("ngModel",t.label_name),e.R7$(),e.Y8G("ngIf","select"===t.input_type),e.R7$(2),e.Y8G("ngIf",!t.editing),e.R7$(),e.Y8G("ngIf",t.editing)}}function eO(n,a){1&n&&(e.j41(0,"small",111),e.EFF(1," Input type is required! "),e.k0s())}function tO(n,a){1&n&&(e.j41(0,"small",111),e.EFF(1," Label name is required! "),e.k0s())}function nO(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",137),e.nrm(1,"input",138),e.j41(2,"button",129),e.bIt("click",function(){const i=e.eBV(t).index,s=e.XpG(3);return e.Njj(s.options.splice(i,1))}),e.EFF(3,"\u2212"),e.k0s()()}if(2&n){const t=a.$implicit;e.R7$(),e.Y8G("value",t)}}function iO(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",135)(1,"label",103),e.EFF(2,"Options"),e.k0s(),e.DNE(3,nO,4,1,"div",136),e.j41(4,"button",126),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2),s=e.sdS(139);return e.Njj(i.openAddOption(s))}),e.EFF(5," + Add Option "),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(3),e.Y8G("ngForOf",t.options)}}function rO(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",76)(2,"form",77)(3,"div",17)(4,"div",78)(5,"label",79),e.EFF(6,"First Name "),e.j41(7,"span",64),e.EFF(8,"*"),e.k0s()(),e.nrm(9,"input",80),e.j41(10,"div",81),e.DNE(11,BM,2,0,"small",66),e.k0s()(),e.j41(12,"div",78)(13,"label",79),e.EFF(14,"Last Name "),e.j41(15,"span",64),e.EFF(16,"*"),e.k0s()(),e.nrm(17,"input",82),e.j41(18,"div",81),e.DNE(19,GM,2,0,"small",66),e.k0s()()(),e.j41(20,"div",17)(21,"div",83)(22,"label",79),e.EFF(23,"Email Address "),e.j41(24,"span",64),e.EFF(25,"*"),e.k0s()(),e.nrm(26,"input",84),e.j41(27,"div",81),e.DNE(28,VM,2,0,"small",66),e.k0s()()(),e.j41(29,"div",17)(30,"div",83)(31,"label",79),e.EFF(32,"Phone Number"),e.j41(33,"span",64),e.EFF(34,"*"),e.k0s()(),e.nrm(35,"input",85),e.j41(36,"div",81),e.DNE(37,zM,2,0,"small",66),e.k0s()()(),e.j41(38,"div",17)(39,"div",86)(40,"label",79),e.EFF(41,"Amount "),e.j41(42,"span",64),e.EFF(43,"*"),e.k0s()(),e.j41(44,"select",87)(45,"option",88),e.EFF(46,"Select Currency"),e.k0s(),e.j41(47,"option",89),e.EFF(48,"LKR"),e.k0s(),e.j41(49,"option",90),e.EFF(50,"USD"),e.k0s()(),e.j41(51,"div",81),e.DNE(52,UM,2,0,"small",66),e.k0s()(),e.j41(53,"div",91),e.nrm(54,"label",79)(55,"input",92),e.j41(56,"div",81),e.DNE(57,YM,2,0,"small",93),e.k0s()()(),e.j41(58,"div",17)(59,"div",83)(60,"label",79),e.EFF(61,"Email Address "),e.j41(62,"span",64),e.EFF(63,"*"),e.k0s()(),e.nrm(64,"input",94),e.j41(65,"div",81),e.DNE(66,WM,2,0,"small",66),e.k0s()()()(),e.nrm(67,"hr"),e.DNE(68,QM,24,17,"div",95),e.j41(69,"form",77)(70,"div",17)(71,"div",96)(72,"label",97),e.EFF(73," Input Type "),e.k0s(),e.j41(74,"select",98)(75,"option",88),e.EFF(76,"Select plan type"),e.k0s(),e.j41(77,"option",99),e.EFF(78,"Text"),e.k0s(),e.j41(79,"option",100),e.EFF(80,"Select"),e.k0s()(),e.j41(81,"div"),e.DNE(82,eO,2,0,"small",66),e.k0s()(),e.j41(83,"div",101)(84,"div",17)(85,"div",51)(86,"div",102)(87,"label",103),e.EFF(88,"Label Name"),e.k0s(),e.j41(89,"div",104),e.nrm(90,"input",105),e.j41(91,"label",106),e.EFF(92,"Required field"),e.k0s()()(),e.nrm(93,"input",107),e.j41(94,"div"),e.DNE(95,tO,2,0,"small",66),e.k0s()(),e.DNE(96,iO,6,1,"div",108),e.k0s()()(),e.j41(97,"div",109)(98,"div",58)(99,"button",110),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.onSubmit2())}),e.EFF(100," Add Field "),e.k0s()()()()()()}if(2&n){let t;const r=e.XpG();e.R7$(2),e.Y8G("formGroup",r.basicDataForm),e.R7$(7),e.Y8G("ngClass",e.eq3(23,Sf,(r.basicDataForm.get("first_name").dirty||r.basicDataForm.get("first_name").touched)&&r.basicDataForm.get("first_name").errors)),e.R7$(2),e.Y8G("ngIf",r.basicDataForm.get("first_name").invalid&&(r.basicDataForm.get("first_name").dirty||r.basicDataForm.get("first_name").touched)),e.R7$(6),e.Y8G("ngClass",e.eq3(25,Sf,(r.basicDataForm.get("last_name").dirty||r.basicDataForm.get("last_name").touched)&&r.basicDataForm.get("last_name").errors)),e.R7$(2),e.Y8G("ngIf",r.basicDataForm.get("last_name").invalid&&(r.basicDataForm.get("last_name").dirty||r.basicDataForm.get("last_name").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(27,Sf,(r.basicDataForm.get("email").dirty||r.basicDataForm.get("email").touched)&&r.basicDataForm.get("email").errors)),e.R7$(2),e.Y8G("ngIf",r.basicDataForm.get("email").invalid&&(r.basicDataForm.get("email").dirty||r.basicDataForm.get("email").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(29,Sf,(r.basicDataForm.get("phone_number").dirty||r.basicDataForm.get("phone_number").touched)&&r.basicDataForm.get("phone_number").errors)),e.R7$(2),e.Y8G("ngIf",r.basicDataForm.get("phone_number").invalid&&(r.basicDataForm.get("phone_number").dirty||r.basicDataForm.get("phone_number").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(31,Sf,(r.basicDataForm.get("currency").dirty||r.basicDataForm.get("currency").touched)&&r.basicDataForm.get("currency").errors)),e.R7$(8),e.Y8G("ngIf",r.basicDataForm.get("currency").invalid&&(r.basicDataForm.get("currency").dirty||r.basicDataForm.get("currency").touched)),e.R7$(3),e.Y8G("ngClass",e.eq3(33,Sf,(r.basicDataForm.get("amount").dirty||r.basicDataForm.get("amount").touched)&&r.basicDataForm.get("amount").errors)),e.R7$(2),e.Y8G("ngIf",r.basicDataForm.get("amount").invalid&&(r.basicDataForm.get("amount").dirty||r.basicDataForm.get("amount").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(35,Sf,(r.basicDataForm.get("reference_number").dirty||r.basicDataForm.get("reference_number").touched)&&r.basicDataForm.get("reference_number").errors)),e.R7$(2),e.Y8G("ngIf",r.basicDataForm.get("reference_number").invalid&&(r.basicDataForm.get("reference_number").dirty||r.basicDataForm.get("reference_number").touched)),e.R7$(2),e.Y8G("ngForOf",r.itemsData),e.R7$(),e.Y8G("formGroup",r.itemForm),e.R7$(5),e.Y8G("ngClass",e.eq3(37,Sf,(r.itemForm.get("input_type").dirty||r.itemForm.get("input_type").touched)&&r.itemForm.get("input_type").errors)),e.R7$(8),e.Y8G("ngIf",r.itemForm.get("input_type").invalid&&(r.itemForm.get("input_type").dirty||r.itemForm.get("input_type").touched)),e.R7$(11),e.Y8G("ngClass",e.eq3(39,Sf,(r.itemForm.get("label_name").dirty||r.itemForm.get("label_name").touched)&&r.itemForm.get("label_name").errors)),e.R7$(2),e.Y8G("ngIf",r.itemForm.get("label_name").invalid&&(r.itemForm.get("label_name").dirty||r.itemForm.get("label_name").touched)),e.R7$(),e.Y8G("ngIf","select"===(null==(t=r.itemForm.get("input_type"))?null:t.value)),e.R7$(3),e.Y8G("disabled",!r.itemForm.valid||r.isSelectInvalid())}}function aO(n,a){if(1&n&&(e.j41(0,"option",156),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.Y8G("value",t.id),e.R7$(),e.SpI(" ",t.app_name,"")}}function oO(n,a){1&n&&(e.j41(0,"small",111),e.EFF(1," App is required! "),e.k0s())}function sO(n,a){1&n&&(e.j41(0,"small",111),e.EFF(1," Brand name is required! "),e.k0s())}function lO(n,a){1&n&&(e.j41(0,"small",111),e.EFF(1," Descriptions is required! "),e.k0s())}function cO(n,a){1&n&&(e.qex(0),e.nrm(1,"img",157),e.bVm())}function dO(n,a){if(1&n&&(e.qex(0),e.nrm(1,"img",158),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("src",t.logoPreview,e.B4B)}}function uO(n,a){1&n&&(e.j41(0,"div",159)(1,"div",160)(2,"span",161),e.EFF(3,"Loading..."),e.k0s()()())}function fO(n,a){1&n&&(e.j41(0,"small",111),e.EFF(1," Logo is required! "),e.k0s())}function pO(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",76)(2,"form",77)(3,"div",9)(4,"div",139)(5,"h2",140),e.EFF(6,"Payment window settings"),e.k0s()()(),e.j41(7,"div",17)(8,"div",83)(9,"label",79),e.EFF(10," Gateway configurations "),e.j41(11,"span",64),e.EFF(12,"*"),e.k0s()(),e.j41(13,"select",141)(14,"option",88),e.EFF(15,"Select gateway configurations "),e.k0s(),e.DNE(16,aO,2,2,"option",142),e.k0s(),e.j41(17,"div",81),e.DNE(18,oO,2,0,"small",66),e.k0s()()(),e.j41(19,"div",17)(20,"div",83)(21,"label",79),e.EFF(22,"Company/ Brand Name"),e.j41(23,"span",64),e.EFF(24,"*"),e.k0s()(),e.nrm(25,"input",143),e.j41(26,"div",81),e.DNE(27,sO,2,0,"small",66),e.k0s()()(),e.j41(28,"div",17)(29,"div",83)(30,"label",79),e.EFF(31,"Description"),e.j41(32,"span",64),e.EFF(33,"*"),e.k0s()(),e.nrm(34,"input",144),e.j41(35,"div",81),e.DNE(36,lO,2,0,"small",66),e.k0s()()(),e.j41(37,"div",17)(38,"div",83)(39,"label",79),e.EFF(40,"Company/ Brand Logo"),e.j41(41,"span",64),e.EFF(42,"*"),e.k0s()(),e.j41(43,"div",145)(44,"input",146,3),e.bIt("change",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onLogoFileChange(i))}),e.k0s(),e.j41(46,"div",147),e.bIt("click",function(){e.eBV(t);const i=e.sdS(45);return e.Njj(i.click())}),e.DNE(47,cO,2,0,"ng-container",22)(48,dO,2,1,"ng-container",22)(49,uO,4,0,"div",148),e.k0s()(),e.j41(50,"div",81),e.DNE(51,fO,2,0,"small",66),e.k0s()()(),e.j41(52,"form",77)(53,"div",17)(54,"div",78)(55,"label",79),e.EFF(56,"Backgroun
1d Colour"),e.k0s(),e.j41(57,"div",149)(58,"input",150),e.bIt("change",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onColorChange(i,1))}),e.k0s()()(),e.j41(59,"div",78)(60,"label",79),e.EFF(61,"Button Colour"),e.k0s(),e.j41(62,"div",149)(63,"input",151),e.bIt("change",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onColorChange(i,2))}),e.k0s()()()(),e.j41(64,"div",17)(65,"div",78)(66,"label",79),e.EFF(67,"Note Colour"),e.k0s(),e.j41(68,"div",149)(69,"input",152),e.bIt("change",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onColorChange(i,4))}),e.k0s()()(),e.j41(70,"div",78)(71,"label",79),e.EFF(72,"Graphics Colour"),e.k0s(),e.j41(73,"div",149)(74,"input",153),e.bIt("change",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onColorChange(i,5))}),e.k0s()()()()(),e.j41(75,"div",17)(76,"div",83)(77,"label",154),e.EFF(78," Note (Optional) "),e.k0s(),e.nrm(79,"textarea",155),e.k0s()()()()()}if(2&n){const t=e.XpG();e.R7$(2),e.Y8G("formGroup",t.configurationForm),e.R7$(11),e.Y8G("ngClass",e.eq3(16,Sf,(t.configurationForm.get("gateway_configurations").dirty||t.configurationForm.get("gateway_configurations").touched)&&t.configurationForm.get("gateway_configurations").errors)),e.R7$(3),e.Y8G("ngForOf",t.applist),e.R7$(2),e.Y8G("ngIf",t.configurationForm.get("gateway_configurations").invalid&&(t.configurationForm.get("gateway_configurations").dirty||t.configurationForm.get("gateway_configurations").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(18,Sf,(t.configurationForm.get("brand_name").dirty||t.configurationForm.get("brand_name").touched)&&t.configurationForm.get("brand_name").errors)),e.R7$(2),e.Y8G("ngIf",t.configurationForm.get("brand_name").invalid&&(t.configurationForm.get("brand_name").dirty||t.configurationForm.get("brand_name").touched)),e.R7$(7),e.Y8G("ngClass",e.eq3(20,Sf,(t.configurationForm.get("descriptions").dirty||t.configurationForm.get("descriptions").touched)&&t.configurationForm.get("descriptions").errors)),e.R7$(2),e.Y8G("ngIf",t.configurationForm.get("descriptions").invalid&&(t.configurationForm.get("descriptions").dirty||t.configurationForm.get("descriptions").touched)),e.R7$(8),e.AVh("form-control-danger",t.configurationForm.get("brand_logo").invalid&&(t.configurationForm.get("brand_logo").dirty||t.configurationForm.get("brand_logo").touched)),e.R7$(3),e.Y8G("ngIf",!t.logoPreview),e.R7$(),e.Y8G("ngIf",t.logoPreview),e.R7$(),e.Y8G("ngIf",t.logoUploading),e.R7$(2),e.Y8G("ngIf",t.configurationForm.get("brand_logo").invalid&&(t.configurationForm.get("brand_logo").dirty||t.configurationForm.get("brand_logo").touched)),e.R7$(),e.Y8G("formGroup",t.colorform),e.R7$(27),e.Y8G("ngClass",e.eq3(22,Sf,(t.configurationForm.get("note").dirty||t.configurationForm.get("note").touched)&&t.configurationForm.get("note").errors))}}function hO(n,a){1&n&&(e.j41(0,"div"),e.nrm(1,"img",162),e.k0s())}function mO(n,a){if(1&n&&(e.j41(0,"div"),e.nrm(1,"img",163),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("src",t.logoPreview,e.B4B)}}function gO(n,a){1&n&&(e.j41(0,"small",111),e.EFF(1," Name is required! "),e.k0s())}function _O(n,a){1&n&&(e.j41(0,"small",111),e.EFF(1," Name is required! "),e.k0s())}function vO(n,a){1&n&&(e.j41(0,"small",111),e.EFF(1," Batch is required! "),e.k0s())}function xO(n,a){if(1&n){const t=e.RV6();e.j41(0,"nb-card",164)(1,"nb-card-header",165)(2,"div",139)(3,"h2",166),e.EFF(4,"Apply Template"),e.k0s()()(),e.j41(5,"nb-card-body",167)(6,"div",168)(7,"div",51)(8,"div",169)(9,"div",170)(10,"div",171)(11,"div",52)(12,"div",52),e.nrm(13,"img",172),e.j41(14,"div",173)(15,"h4",174),e.EFF(16,"Shehani M."),e.k0s(),e.j41(17,"div",175)(18,"div",176)(19,"p",177),e.EFF(20,"Membership Plan"),e.k0s(),e.j41(21,"span",178),e.EFF(22,"Currency : LKR"),e.k0s(),e.j41(23,"span",178),e.EFF(24,"Interval : Monthly"),e.k0s(),e.j41(25,"span",178),e.EFF(26,"Brand Name : ABC"),e.k0s()()()()()()(),e.j41(27,"div",179)(28,"button",180),e.EFF(29,"Apply"),e.k0s()()()()()(),e.j41(30,"div",168)(31,"div",51)(32,"div",169)(33,"div",170)(34,"div",171)(35,"div",52)(36,"div",52),e.nrm(37,"img",172),e.j41(38,"div",173)(39,"h4",174),e.EFF(40,"Shehani M."),e.k0s(),e.j41(41,"div",175)(42,"div",176)(43,"p",177),e.EFF(44,"Membership Plan"),e.k0s(),e.j41(45,"span",178),e.EFF(46,"Currency : LKR"),e.k0s(),e.j41(47,"span",178),e.EFF(48,"Interval : Monthly"),e.k0s(),e.j41(49,"span",178),e.EFF(50,"Brand Name : ABC"),e.k0s()()()()()()(),e.j41(51,"div",179)(52,"button",180),e.EFF(53,"Apply"),e.k0s()()()()()(),e.j41(54,"div",17)(55,"div",51)(56,"div",169)(57,"div",170)(58,"div",171)(59,"div",52)(60,"div",52),e.nrm(61,"img",172),e.j41(62,"div",173)(63,"h4",174),e.EFF(64,"Shehani M."),e.k0s(),e.j41(65,"div",175)(66,"div",176)(67,"p",177),e.EFF(68,"Membership Plan"),e.k0s(),e.j41(69,"span",178),e.EFF(70,"Currency : LKR"),e.k0s(),e.j41(71,"span",178),e.EFF(72,"Interval : Monthly"),e.k0s(),e.j41(73,"span",178),e.EFF(74,"Brand Name : ABC"),e.k0s()()()()()()(),e.j41(75,"div",179)(76,"button",180),e.EFF(77,"Apply"),e.k0s()()()()()()(),e.j41(78,"nb-card-footer")(79,"button",181),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.templateClose())}),e.EFF(80,"Close"),e.k0s()()()}}function bO(n,a){if(1&n){const t=e.RV6();e.j41(0,"li",190),e.EFF(1),e.j41(2,"button",191),e.bIt("click",function(){const i=e.eBV(t).index,s=e.XpG(2);return e.Njj(s.removeTempOption(i))}),e.EFF(3,"\xd7"),e.k0s()()}if(2&n){const t=a.$implicit;e.R7$(),e.SpI(" ",t," ")}}function yO(n,a){if(1&n){const t=e.RV6();e.j41(0,"nb-card")(1,"nb-card-header"),e.EFF(2,"Add Options"),e.k0s(),e.j41(3,"nb-card-body",182)(4,"div",183)(5,"input",184),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG();return e.DH7(s.newOption,i)||(s.newOption=i),e.Njj(i)}),e.k0s(),e.j41(6,"button",185),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.addTempOption())}),e.EFF(7,"+"),e.k0s()(),e.j41(8,"ul",186),e.DNE(9,bO,4,1,"li",187),e.k0s()(),e.j41(10,"nb-card-footer",188)(11,"button",75),e.bIt("click",function(){const i=e.eBV(t).dialogRef;return e.Njj(i.close())}),e.EFF(12,"Cancel"),e.k0s(),e.j41(13,"button",189),e.bIt("click",function(){const i=e.eBV(t).dialogRef,s=e.XpG();return e.Njj(s.saveOptions(i))}),e.EFF(14,"Submit"),e.k0s()()()}if(2&n){const t=e.XpG();e.R7$(5),e.R50("ngModel",t.newOption),e.R7$(4),e.Y8G("ngForOf",t.tempOptions)}}function CO(n,a){if(1&n){const t=e.RV6();e.j41(0,"nb-card",192)(1,"nb-card-header",165)(2,"div",193)(3,"h2",194),e.EFF(4,"Awesome!"),e.k0s(),e.j41(5,"p",195),e.EFF(6,"Payment link generated successfully!"),e.k0s()()(),e.j41(7,"nb-card-body",167)(8,"div",17)(9,"div",23)(10,"div",196)(11,"label",197),e.EFF(12,"Preview"),e.k0s(),e.j41(13,"button",198),e.EFF(14," Hhhfhfhf "),e.k0s()()()()(),e.j41(15,"nb-card-footer")(16,"button",181),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.genarateCodeClose())}),e.EFF(17,"Close"),e.k0s()()()}}let kO=(()=>{class n{constructor(t,r,i,s,p,g,S,R){this.fb=t,this.router=r,this.dialogService=i,this.transactionService=s,this.toastr=p,this.subscriptionLinkService=g,this.checkoutSettingsService=S,this.paymentPageService=R,this.is_loading_1=!1,this.filter_status=new ie.MJ("link"),this.biling_value=new ie.MJ("FIRST"),this.itemsData=[],this.ticketCatform=this.fb.group({}),this.logoPreview=null,this.logoFile=null,this.logoUploading=!1,this.options=[],this.newOption="",this.tempOptions=[],this.applist=[],this.itemForm=this.fb.group({input_type:["",[ie.k0.required]],label_name:["",[ie.k0.required]],required_field:[!1]}),this.basicDataForm=this.fb.group({first_name:["",[ie.k0.required]],last_name:["",[ie.k0.required]],email:["",[ie.k0.required]],phone_number:["",[ie.k0.required]],currency:["",[ie.k0.required]],amount:["",[ie.k0.required]],reference_number:["",[ie.k0.required]]}),this.configurationForm=this.fb.group({gateway_configurations:["",[ie.k0.required]],brand_name:["",[ie.k0.required]],descriptions:["",[ie.k0.required]],brand_logo:["",[ie.k0.required]],note:[""]}),this.colorform=this.fb.group({background_color:["darkgreen",[ie.k0.required]],button_color:["",[ie.k0.required]],note_color:["",[ie.k0.required]],graphics_color:["",[ie.k0.required]]}),this.paymentForm=this.fb.group({student_id:["",ie.k0.required],full_name:["",ie.k0.required],batch:["",[ie.k0.required,ie.k0.email]],payment_note:[""]})}OnItemClick(t){"link"===t&&this.filter_status.setValue("link"),"configuration"===t&&this.filter_status.setValue("configuration")}onSubmit2(){const t=this.itemForm.value;if("select"===t.input_type){const r=this.options.map(i=>i.trim()).filter(i=>i);if(0===r.length)return void alert("Please add at least one valid option.");this.itemsData.push({...t,options:r,editing:!1})}else this.itemsData.push({...t,options:[],editing:!1});this.itemForm.reset(),this.options=[]}editItem(t){this.itemsData[t].editing=!0}saveItem(t){const r=this.itemsData[t];"select"!==r.input_type||(r.options=r.options.map(i=>i.trim()).filter(i=>""!==i),0!==r.options.length)?r.editing=!1:alert("Select input must have at least one non-empty option.")}deleteItem(t){this.itemsData.splice(t,1)}onLogoFileChange(t){var r=this;return(0,Pt.A)(function*(){r.logoUploading=!0;const i=t.target.files&&t.target.files[0];if(i){r.logoFile=i;const s=new FileReader;s.onload=(0,Pt.A)(function*(){const g={image:s.result,bucket_name:"onepay_ipg",image_name:r.getRandomEightDigitNumber?r.getRandomEightDigitNumber():Date.now().toString(),is_update:!1};try{const S=yield r.checkoutSettingsService.uploadImage(g).toProm
1ise();S&&S.url?(r.logoPreview=S.url,r.configurationForm.get("brand_logo")?.setValue(S.url)):r.toastr.showToast("danger","Upload Failed",S?.message||"Image upload failed")}catch{r.toastr.showToast("danger","Upload Error","Image upload failed")}r.logoUploading=!1}),s.readAsDataURL(i)}})()}getRandomEightDigitNumber(){return Math.floor(1e7+9e7*Math.random()).toString()}openAddOption(t){this.tempOptions=[...this.options],this.dialogService.open(t)}addTempOption(){console.log("fff"),this.newOption.trim()&&(this.tempOptions.push(this.newOption.trim()),this.newOption="")}removeTempOption(t){this.tempOptions.splice(t,1)}saveOptions(t){this.options=[...this.tempOptions],t.close()}isSelectInvalid(){return"select"===this.itemForm.get("input_type")?.value&&0===this.options.map(i=>i.trim()).filter(i=>i).length}addEmptyOption(t){t.options.some(i=>""===i.trim())?alert("Please fill the existing empty option before adding another."):t.options.push("")}onSubmit(){}saveTemplate(){}getButtonStyle(){return{"background-color":this.configurationForm?.get("button_color")?.value||"#00253D"}}openGenerateCode(t){this.view_model=this.dialogService.open(t,{closeOnBackdropClick:!1})}genarateCodeClose(){this.view_model.close()}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(ie.ok),e.rXU(qe.Ix),e.rXU(E.S0W),e.rXU(Mt.kK),e.rXU(Dt.V4),e.rXU(b0),e.rXU(O4.H),e.rXU(y1.f))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-payment-link-new"]],decls:142,vars:32,consts:[["dialogApplyTemplate",""],["dialogAddOption",""],["dialogGenerateCode",""],["logoInput",""],[1,"body-style","payment-links-root"],[1,"container"],["href","/pages/subscription-link",2,"text-decoration","none","color","#718096","font-size","13px","font-weight","500"],[2,"margin-right","4px"],["aria-hidden","true",1,"fa","fa-arrow-left"],[1,"row","mb-4"],[1,"col","d-flex","justify-content-start","align-items-center"],[1,"page-heading"],[3,"click"],[1,"row","mb-3"],[1,"col"],[1,"nb_cardBody"],[1,"invoice_body"],[1,"row"],[1,"col-6","col-in1"],[1,"col-4","ipg-dashbord-right"],[1,"menu_itam",3,"click","ngClass"],[1,"button_name"],[4,"ngIf"],[1,"col-6"],[1,"payment_border"],[1,"img1"],["src","../../../assets/subscription/payment_form/Rectangle-Copy-17-5.png","alt","Background",1,"payment-with-background"],[1,"img2"],["src","../../../assets/subscription/payment_form/Rectangle-Copy-17-6.png","alt","Background",1,"payment-with-background"],[1,"img3"],[1,"img4"],["src","../../../assets/subscription/payment_form/Rectangle-Copy-17 (Stroke).png","alt","Background",1,"payment-with-background"],[1,"img5"],["src","../../../assets/subscription/payment_form/Rectangle-Copy-17-7.png","alt","Background",1,"payment-with-background"],[1,"img6"],[1,"img7"],["src","../../../assets/subscription/payment_form/Rectangle-Copy-17.png","alt","Background",1,"payment-with-background"],[1,"img8"],[1,"img9"],["src","../../../assets/subscription/payment_form/Rectangle-Copy-17 (Stroke)-1.png","alt","Background",1,"payment-with-background"],[1,"img10"],[1,"img11"],[1,"img12"],[1,"img14"],[1,"img15"],["src","../../../assets/subscription/payment_form/Rectangle-Copy-17 (Stroke)-3.png","alt","Background",1,"payment-with-background"],[1,"img16"],[1,"img17"],[1,"img18"],[1,"img19"],[1,"payment-header",3,"ngStyle"],[1,"col-12"],[1,"d-flex","align-items-center"],[1,"d-flex"],[2,"margin-right","25px"],[1,"banner_header"],[1,"banner_desc","mb-0"],[1,"form_grid"],[1,"col-12","d-flex","justify-content-end"],[1,"payment-amount"],[2,"font-size","8px"],[3,"ngSubmit","formGroup"],[1,"alert-note"],[1,"col-md-12","mb-3"],[1,"form-required-sign"],["nbInput","","fullWidth","","formControlName","student_id","placeholder","Enter student id",1,"form-control",3,"ngClass"],["class","text-danger",4,"ngIf"],["nbInput","","fullWidth","","formControlName","full_name","placeholder","Enter full name",1,"form-control",3,"ngClass"],["nbInput","","fullWidth","","formControlName","batch","placeholder","Select your batch",1,"form-control",3,"ngClass"],[1,"col-md-12"],[2,"margin-bottom","7px","margin-top","5px"],["nbInput","","fullWidth","","formControlName","payment_note","rows","4","placeholder","Enter payment note",1,"form-control"],[1,"d-flex","justify-content-end","mt-3"],["type","button",1,"btn_common","btC_unique","mr-2"],["type","submit",1,"btn_common","btS_unique"],["type","button",1,"btn_common","btC_unique","mr-2",3,"click"],[1,"mt-4"],[3,"formGroup"],[1,"col-6","d-flex","flex-column","justify-content-start"],[1,"col","px-0","mb-1"],["type","text","nbInput","","fullWidth","","placeholder","Enter first name","formControlName","first_name","name","first_name",1,"div_input",3,"ngClass"],[2,"min-height","1.25rem"],["type","text","nbInput","","fullWidth","","placeholder","Enter last name","formControlName","last_name","name","last_name",1,"div_input",3,"ngClass"],[1,"col-12","d-flex","flex-column","justify-content-start"],["type","text","nbInput","","fullWidth","","placeholder","Enter email address","formControlName","email","name","email",1,"div_input",3,"ngClass"],["type","text","nbInput","","fullWidth","","placeholder","Enter phone number","formControlName","phone_number","name","phone_number",1,"div_input",3,"ngClass"],[1,"col-5","d-flex","flex-column","justify-content-start"],["fullWidth","","placeholder","Select currency","formControlName","currency","name","currency",1,"col","selecter_invoice",3,"ngClass"],["disabled","","value",""],["value","LKR"],["value","USD"],[1,"col-7","d-flex","flex-column","justify-content-start"],["type","number","nbInput","","fullWidth","","placeholder","Enter amount","formControlName","amount","name","amount",1,"div_input",3,"ngClass"],["class","text-danger test-danger2",4,"ngIf"],["type","text","nbInput","","fullWidth","","placeholder","Enter reference number","formControlName","reference_number","name","reference_number",1,"div_input",3,"ngClass"],["class","mb-1",4,"ngFor","ngForOf"],[1,"col-4"],[1,"col","px-0","item_table"],["fullWidth","","placeholder","Select plan type","formControlName","input_type","name","input_type",1,"col","selecter_invoice",3,"ngClass"],["value","text"],["value","select"],[1,"col-8"],[1,"col","d-flex","justify-content-between",2,"padding-left","0","padding-right","0"],[1,"col","px-0"],[1,"custom-checkbox",2,"margin-top","11px"],["type","checkbox","id","required_field","formControlName","required_field"],["for","required_field",1,"lable_checkbox"],["type","text","nbInput","","fullWidth","","placeholder","Enter label name","formControlName","label_name","name","label_name",1,"div_input",3,"ngClass"],["class","col-12 mt-1",4,"ngIf"],[1,"row","mt-4"],[1,"btn_",3,"click","disabled"],[1,"text-danger"],[1,"text-danger","test-danger2"],[1,"mb-1"],[1,"form-label"],[1,"form-control",3,"ngModelChange","disabled","ngModel","name"],[1,"col-7"],[1,"col-12","px-0"],[1,"d-flex","justify-content-between"],["type","checkbox",1,"form-check-input",3,"ngModelChange","disabled","ngModel","id"],[1,"lable_checkbox",3,"for"],["type","text","nbInput","","fullWidth","","placeholder","Enter label name",3,"ngModelChange","disabled","ngModel","name"],["class","col-12 px-0 mt-2",4,"ngIf"],[1,"col-1",2,"padding-left","0!important"],[1,"col-12","px-0","mt-2"],["class","d-flex mb-1",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-sm","btn-outline-primary",3,"click"],[1,"d-flex","mb-1"],["type","text","placeholder","Enter option",1,"form-control",3,"ngModelChange","ngModel"],["type","button",1,"btn","btn-sm","btn-danger","ms-2",3,"click"],["disabled","",1,"form-control"],[4,"ngFor","ngForOf"],["src","../../../../assets/images/pencil2.png",1,"pencil_table",3,"click"],["src","../../../../assets/images/delete_i.png",1,"delete_table",3,"click"],[1,"save_btn",3,"click"],[1,"col-12","mt-1"],["class","d-flex mb-2",4,"ngFor","ngForOf"],[1,"d-flex","mb-2"],["disabled","",1,"form-control",3,"value"],[1,"col","d-flex","justify-content-between","align-items-center"],[1,"div_heading"],["fullWidth","","placeholder","Select app","formControlName","gateway_configurations","name","gateway_configurations",1,"col","selecter_invoice",3,"ngClass"],[3,"value",4,"ngFor","ngForOf"],["type","text","nbInput","","fullWidth","","placeholder","Enter company/ brand name","formControlName","brand_name","name","brand_name",1,"div_input",3,"ngClass"],["type","text","nbInput","","fullWidth","","placeholder","Enter description","formControlName","descriptions","name","descriptions",1,"div_input",3,"ngClass"],[1,"image_menu_dev",2,"position","relative"],["type","file","accept","image/*",2,"display","none",3,"change"],[2,"width","100%","height","100%","display","flex","align-items","center","justify-content","center","cursor","pointer","position","relative",3,"click"],["class","d-flex align-items-center justify-content-center","style","position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.7); border-radius: 6px; z-index: 2;",4,"ngIf"],[1,"color_grid"],["formControlName","background_color","type","color","nbInput","","shape","rectangle","placeholder","Enter color",1,"form-control","input-bottom",2,"padding","0","background-color","#f0f0f0",3,"change"],["formControlName","button_color","type","color","nbInput","","shape","rectangle","placeholder","Enter color",1,"form-control","input-bottom",2,"padding","0","background-color","#f0f0f0",3,"change"],["formControlName","note_color","type","color","nbInput","","shape","rectangle","placeholder","Enter color",1,"form-control","input-bottom",2,"padding","0","background-color","#f0f0f0",3,"change"],["formControlName","graphics_color","type","color","nbInput","","shape","rectangle","placeholder","Enter color",1,"form-control","input-bottom",2,"padding","0","background-color","#f0f0f0",3,"change"],[1,"form-label","mb-1","fw-semibold"],["nbInput","","fullWidth","","placeholder","Enter note","formControlName","note","rows","4",1,"form-control","custom-input",3,"ngClass"],[3,"value"],["src","../../../../assets/subscription/image-icon.png","alt","Company Logo",1,"image_icon"],["alt","Logo Preview",2,"max-width","120px","max-height","80px","border","1p
1x solid #eee",3,"src"],[1,"d-flex","align-items-center","justify-content-center",2,"position","absolute","top","0","left","0","width","100%","height","100%","background","rgba(255,255,255,0.7)","border-radius","6px","z-index","2"],["role","status",1,"spinner-border","text-primary",2,"width","24px","height","24px"],[1,"visually-hidden"],["src","../../../../assets/subscription/logo.png","alt","Company Logo",1,"company-logo","mr-3"],["alt","Logo Preview",1,"company-logo","mr-3",3,"src"],[2,"width","70vw"],[2,"font-family","'Poppins'"],[1,"link_popup_heading_temp"],[1,"dialog-border",2,"font-family","'Poppins'","max-height","50vh","overflow-y","auto"],[1,"row","mb-2"],[1,"menu_div"],[1,"row","d-flex","justify-content-between","align-items-center"],[1,"col-md-10","col-sm-9"],["src","../../../../assets/subscription/logo.png","alt","Company Logo",1,"company-logo_temp","mr-3"],[2,"margin-right","10px"],[1,"banner_header_temp"],[1,"plan-details"],[1,"d-flex","align-items-center","flex-wrap","gap-3"],[1,"plan-subtitle","mb-0"],[1,"plan-info-item"],[1,"col-md-2","col-sm-3","d-flex","justify-content-end"],[1,"apply-button"],[1,"btn_common","btC_unique","mr-2",2,"float","right",3,"click"],[2,"font-family","'Poppins'","max-height","50vh","overflow-y","auto","width","40vw"],[1,"d-flex","mb-3"],["nbInput","","fullWidth","","placeholder","Enter option",3,"ngModelChange","ngModel"],[1,"ms-2","plus_button",3,"click"],[1,"list-group"],["style","padding: 7px 10px;","class","d-flex justify-content-between align-items-center list-group-item",4,"ngFor","ngForOf"],[1,"d-flex","justify-content-end"],["type","submit",1,"btn_common","btS_popup",3,"click"],[1,"d-flex","justify-content-between","align-items-center","list-group-item",2,"padding","7px 10px"],["nbButton","","status","danger","size","tiny",3,"click"],[2,"width","60vw"],[1,"col","d-flex","flex-column","justify-content-center","align-items-center"],[1,"link_popup_heading"],[1,"link_popup_subhead"],[1,"menu_itam_paybutton"],[1,"code_label"],["type","button",1,"preview-btn"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",4)(1,"div",5)(2,"p")(3,"a",6)(4,"span",7),e.nrm(5,"i",8),e.k0s(),e.EFF(6," Back"),e.k0s()(),e.j41(7,"div",9)(8,"div",10)(9,"h2",11),e.EFF(10,"Create Subscription Link"),e.k0s(),e.j41(11,"button",12),e.bIt("click",function(){e.eBV(s);const g=e.sdS(141);return e.Njj(i.openGenerateCode(g))}),e.k0s()()(),e.j41(12,"div",13)(13,"div",14)(14,"nb-card")(15,"nb-card-body",15)(16,"div",16)(17,"div",17)(18,"div",18)(19,"div",17)(20,"div",19)(21,"div",20),e.bIt("click",function(){return e.eBV(s),e.Njj(i.OnItemClick("link"))}),e.j41(22,"span",21),e.EFF(23,"Payment Link"),e.k0s()()(),e.j41(24,"div",19)(25,"div",20),e.bIt("click",function(){return e.eBV(s),e.Njj(i.OnItemClick("configuration"))}),e.j41(26,"span",21),e.EFF(27,"Configuration"),e.k0s()()()(),e.DNE(28,rO,101,41,"div",22)(29,pO,80,24,"div",22),e.k0s(),e.j41(30,"div",23)(31,"div",24)(32,"div",25),e.nrm(33,"img",26),e.k0s(),e.j41(34,"div",27),e.nrm(35,"img",28),e.k0s(),e.j41(36,"div",29),e.nrm(37,"img",28),e.k0s(),e.j41(38,"div",30),e.nrm(39,"img",31),e.k0s(),e.j41(40,"div",32),e.nrm(41,"img",33),e.k0s(),e.j41(42,"div",34),e.nrm(43,"img",28),e.k0s(),e.j41(44,"div",35),e.nrm(45,"img",36),e.k0s(),e.j41(46,"div",37),e.nrm(47,"img",26),e.k0s(),e.j41(48,"div",38),e.nrm(49,"img",39),e.k0s(),e.j41(50,"div",40),e.nrm(51,"img",28),e.k0s(),e.j41(52,"div",41),e.nrm(53,"img",31),e.k0s(),e.j41(54,"div",42),e.nrm(55,"img",26),e.k0s(),e.j41(56,"div",43),e.nrm(57,"img",36),e.k0s(),e.j41(58,"div",44),e.nrm(59,"img",45),e.k0s(),e.j41(60,"div",46),e.nrm(61,"img",33),e.k0s(),e.j41(62,"div",47),e.nrm(63,"img",39),e.k0s(),e.j41(64,"div",48),e.nrm(65,"img",33),e.k0s(),e.j41(66,"div",49),e.nrm(67,"img",28),e.k0s(),e.j41(68,"div",50)(69,"div",17)(70,"div",51)(71,"div",52)(72,"div",53),e.DNE(73,hO,2,0,"div",22)(74,mO,2,1,"div",22),e.j41(75,"div",54)(76,"h4",55),e.EFF(77),e.k0s(),e.j41(78,"p",56),e.EFF(79),e.k0s()()()()()()(),e.j41(80,"div",57)(81,"div",17)(82,"div",58)(83,"div",59),e.EFF(84),e.j41(85,"span",60),e.EFF(86,".00"),e.k0s()()()(),e.j41(87,"form",61),e.bIt("ngSubmit",function(){return e.eBV(s),e.Njj(i.onSubmit())}
1),e.j41(88,"div",62)(89,"strong"),e.EFF(90,"Note"),e.k0s(),e.nrm(91,"br"),e.EFF(92," Please ensure your university fee payment is completed before the due date to avoid any penalties. Double-check the payment details before proceeding. "),e.k0s(),e.j41(93,"div",17)(94,"div",63)(95,"label"),e.EFF(96,"Student ID"),e.j41(97,"span",64),e.EFF(98,"*"),e.k0s()(),e.nrm(99,"input",65),e.j41(100,"div"),e.DNE(101,gO,2,0,"small",66),e.k0s()(),e.j41(102,"div",63)(103,"label"),e.EFF(104,"Full Name "),e.j41(105,"span",64),e.EFF(106,"*"),e.k0s()(),e.nrm(107,"input",67),e.j41(108,"div"),e.DNE(109,_O,2,0,"small",66),e.k0s()(),e.j41(110,"div",63)(111,"label"),e.EFF(112,"Batch "),e.j41(113,"span",64),e.EFF(114,"*"),e.k0s()(),e.nrm(115,"input",68),e.j41(116,"div"),e.DNE(117,vO,2,0,"small",66),e.k0s()(),e.j41(118,"div",69),e.nrm(119,"hr",70),e.k0s(),e.j41(120,"div",63)(121,"label"),e.EFF(122,"Payment Note"),e.k0s(),e.nrm(123,"textarea",71),e.k0s()(),e.j41(124,"div",72)(125,"button",73),e.EFF(126,"Cancel"),e.k0s(),e.j41(127,"button",74),e.EFF(128,"Pay"),e.k0s()()()()(),e.j41(129,"div",72)(130,"button",75),e.bIt("click",function(){return e.eBV(s),e.Njj(i.saveTemplate())}),e.EFF(131,"Save as Template"),e.k0s(),e.j41(132,"button",73),e.EFF(133,"Cancel"),e.k0s(),e.j41(134,"button",74),e.EFF(135,"Create Link"),e.k0s()()()()()()()()()()(),e.DNE(136,xO,81,0,"ng-template",null,0,e.C5r)(138,yO,15,2,"ng-template",null,1,e.C5r)(140,CO,18,0,"ng-template",null,2,e.C5r)}2&r&&(e.R7$(21),e.Y8G("ngClass",e.l_i(18,D4,"link"===i.filter_status.value,"link"!==i.filter_status.value)),e.R7$(4),e.Y8G("ngClass",e.l_i(21,D4,"configuration"===i.filter_status.value,"configuration"!==i.filter_status.value)),e.R7$(3),e.Y8G("ngIf","link"===i.filter_status.value),e.R7$(),e.Y8G("ngIf","configuration"===i.filter_status.value),e.R7$(39),e.Y8G("ngStyle",e.eq3(24,NM,(null==i.colorform||null==i.colorform.value?null:i.colorform.value.background_color)||"darkgreen")),e.R7$(5),e.Y8G("ngIf",!i.logoPreview),e.R7$(),e.Y8G("ngIf",i.logoPreview),e.R7$(3),e.SpI(" ",i.configurationForm.value.brand_name||"Company/ Brand Name"," "),e.R7$(2),e.SpI("",i.configurationForm.value.descriptions||"Lorem Ipsum is simply dummy text of the printing and typesetting industry."," "),e.R7$(5),e.Lme(" ",i.basicDataForm.value.currency||"LKR"," ",i.basicDataForm.value.amount||"0",""),e.R7$(3),e.Y8G("formGroup",i.paymentForm),e.R7$(12),e.Y8G("ngClass",e.eq3(26,Sf,(i.paymentForm.get("student_id").dirty||i.paymentForm.get("student_id").touched)&&i.paymentForm.get("student_id").errors)),e.R7$(2),e.Y8G("ngIf",i.paymentForm.get("student_id").invalid&&(i.paymentForm.get("student_id").dirty||i.paymentForm.get("student_id").touched)),e.R7$(6),e.Y8G("ngClass",e.eq3(28,Sf,(i.paymentForm.get("full_name").dirty||i.paymentForm.get("full_name").touched)&&i.paymentForm.get("full_name").errors)),e.R7$(2),e.Y8G("ngIf",i.paymentForm.get("full_name").invalid&&(i.paymentForm.get("full_name").dirty||i.paymentForm.get("full_name").touched)),e.R7$(6),e.Y8G("ngClass",e.eq3(30,Sf,(i.paymentForm.get("batch").dirty||i.paymentForm.get("batch").touched)&&i.paymentForm.get("batch").errors)),e.R7$(2),e.Y8G("ngIf",i.paymentForm.get("batch").invalid&&(i.paymentForm.get("batch").dirty||i.paymentForm.get("batch").touched)))},dependencies:[Fe.YU,Fe.Sq,Fe.bT,Fe.B3,ie.qT,ie.xH,ie.y7,ie.me,ie.Q0,ie.Zm,ie.wz,ie.BC,ie.cb,ie.vS,ie.j4,ie.JD,E.SrT,E.KH5,E.VDm,E.zJv,E.YP2,E.i6h],styles:['.col-in1[_ngcontent-%COMP%]{border-right:1px solid #E7E7E7}.div_input[_ngcontent-%COMP%]{padding:5px 16px!important}small[_ngcontent-%COMP%]{font-size:66%}.menu_itam[_ngcontent-%COMP%]{width:100%;height:43px;padding:10px 1px;border-radius:6px;background:#667185;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;transition:all .2s ease-in-out}.clicked[_ngcontent-%COMP%]{background:#004d14;border:1px solid #004D14;color:#fff}.clicked2[_ngcontent-%COMP%]{background:#fff;border:1px solid #667185;color:#667185}.clicked2[_ngcontent-%COMP%]:hover{background:#eef2f8;border-color:#4b5563;color:#1f2937}.div_heading[_ngcontent-%COMP%]{font-size:24px;font-weight:600;color:#000}.apply[_ngcontent-%COMP%]{font-size:14px;color:#10b981;font-weight:400;cursor:pointer}label[_ngcontent-%COMP%]{font-size:14px;color:#344054;font-weight:500}.selecter_invoice[_ngcontent-%COMP%]{background-color:#f7f9fc;border-color:#e4e9f2;color:#222b45;line-height:1.5rem;padding:.4375rem 1rem;font-size:15px!important;font-weight:400!important;border-radius:.25rem}.custom-checkbox[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:14px;color:#1d2939}.custom-checkbox[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;width:14px;
1height:14px;border:2px solid #000;border-radius:4px;background-color:#fff;position:relative;cursor:pointer;padding-left:12px;padding-top:12px;margin-top:-13px}.custom-checkbox[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked{background-color:#000;border-color:#000}.custom-checkbox[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:after{content:"";position:absolute;top:2px;left:5px;width:4px;height:8px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg);display:none}.custom-checkbox[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked:after{display:block}.lable_checkbox[_ngcontent-%COMP%]{font-size:11px;color:#101928;margin-top:-11px}.position-relative[_ngcontent-%COMP%]{position:relative}.percent-symbol[_ngcontent-%COMP%]{position:absolute;right:4px;top:50%;transform:translateY(-50%);color:#6c757d;font-size:14px;pointer-events:none}.helper-text[_ngcontent-%COMP%]{font-size:8px;color:#667185;line-height:12px;position:absolute;top:62px}.test-danger2[_ngcontent-%COMP%]{position:absolute;top:82px}.menu_itamBiling[_ngcontent-%COMP%]{width:100%;height:50px;padding:10px 1px;border-radius:6px;font-size:10px;background:#f4f4f4;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.button_name[_ngcontent-%COMP%]{margin:0;font-weight:400;font-size:12px}.button_sub_name[_ngcontent-%COMP%]{margin:0;font-size:10px;color:#667185}.clicked_billing[_ngcontent-%COMP%]{background:#effff4;border:1px solid #036B26;color:#036b26}.clicked2_billing[_ngcontent-%COMP%]{background:#fff;border:1px solid #D0D5DD;color:#98a2b3}.ipg-dashbord-right[_ngcontent-%COMP%]{padding-right:4px!important}.ipg-dashbord-left[_ngcontent-%COMP%]{padding-left:4px!important}.menu_itamBiling[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;text-align:center}.sub_con[_ngcontent-%COMP%]{font-size:8px;color:#667185;font-weight:400}.pencil_plus[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.pencil[_ngcontent-%COMP%]{width:12px;height:12px;color:red}.pencil_table[_ngcontent-%COMP%]{width:12px;height:12px;color:#000!important;margin-right:5px;cursor:pointer}.delete_table[_ngcontent-%COMP%]{width:12px;height:12px;color:red;cursor:pointer}.btn_[_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;text-align:center;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;vertical-align:middle;padding:4px 10px;border:1px solid #667185;color:#667185;font-weight:600;background-color:#fff;border-radius:4px;transition:all .2s ease-in-out;font-size:12px}.btn_[_ngcontent-%COMP%]:hover{background-color:#667185;color:#fff;cursor:pointer}.slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0;background-color:#ccc;transition:.4s}.slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:10px;width:10px;left:4px;bottom:4px;background-color:#fff;transition:.4s}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]{background-color:#064e3b}input[_ngcontent-%COMP%]:focus + .slider[_ngcontent-%COMP%]{box-shadow:0 0 1px #064e3b}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{transform:translate(16px)}.slider.round[_ngcontent-%COMP%]{border-radius:34px}.slider.round[_ngcontent-%COMP%]:before{border-radius:50%}.switch[_ngcontent-%COMP%]{position:relative;display:inline-block;width:35px;height:18px}.switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{opacity:0;width:0;height:0}.text-success[_ngcontent-%COMP%]{color:#28a745!important;font-size:8px;font-weight:400}.text-danger[_ngcontent-%COMP%]{color:#dc3545!important;font-size:10px;font-weight:400}.image_menu_dev[_ngcontent-%COMP%]{width:96px;height:96px;padding:10px 1px;border-radius:6px;border:1px solid #D0D5DD;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease-in-out;overflow:hidden}.image_icon[_ngcontent-%COMP%]{width:36px;height:auto}.color_grid[_ngcontent-%COMP%]{width:40px;height:40px}.payment-header[_ngcontent-%COMP%]{padding:1rem;color:#fff;align-items:center;border-radius:8px 8px 0 0;background-image:url(Rectangle\\ 5.0daad5c34fd65f2d.png);background-size:cover;background-position:center;background-repeat:no-repeat}.company-logo[_ngcontent-%COMP%]{width:80px;height:80px;object-fit:contain;border-radius:50%}
1.payment-amount[_ngcontent-%COMP%]{font-size:26px;font-weight:700;color:#004d14}.alert-note[_ngcontent-%COMP%]{background-color:#fefae8;color:#b94b20;padding:.5rem;margin:.5rem 0;border-radius:6px;font-size:12px;line-height:14px;border:1px solid #B94B20}.form-control[_ngcontent-%COMP%]{border-radius:6px}.btn_[_ngcontent-%COMP%]{padding:6px 18px;border-radius:6px}.banner_header[_ngcontent-%COMP%]{font-size:18px;color:#fff;font-weight:600;line-height:20px}.banner_desc[_ngcontent-%COMP%]{font-size:10px;color:#fff;font-weight:400;line-height:15px}.system_d[_ngcontent-%COMP%]{font-size:10px;color:#667185}.form_grid[_ngcontent-%COMP%]{padding:18px 18px 29px}.payment_border[_ngcontent-%COMP%]{border:1px solid #BDBDBD;border-radius:8px}.btn_common[_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;text-align:center;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;vertical-align:middle;padding:10px 18px;font-weight:600;border-radius:4px;transition:all .2s ease-in-out;font-size:12px}.btS_unique[_ngcontent-%COMP%]{border:none;color:#fff;background-color:#00253d}.btC_unique[_ngcontent-%COMP%]{border:1px solid #667185;color:#667185;background-color:transparent}.btC_unique[_ngcontent-%COMP%]:hover, .btS_unique[_ngcontent-%COMP%]:hover{background-color:#667185;color:#fff;cursor:pointer}.btS_link[_ngcontent-%COMP%]{border:none;color:#fff;background-color:#004d14}.btS_link[_ngcontent-%COMP%]:hover{background-color:#667185;color:#fff;cursor:pointer}.menu_div[_ngcontent-%COMP%]{width:100%;border:1px solid #BCBCBC;border-radius:6px;padding:12px 16px;background-color:#fff;box-shadow:0 1px 2px #0000000d}.plan-details[_ngcontent-%COMP%]{display:flex;flex-direction:column}.plan-title[_ngcontent-%COMP%]{font-size:14px;font-weight:600;margin-bottom:2px}.plan-subtitle[_ngcontent-%COMP%]{font-size:12px;color:#999;margin-bottom:6px}.plan-info[_ngcontent-%COMP%]{display:flex;gap:16px;font-size:12px;color:#666}.apply-button[_ngcontent-%COMP%]{background-color:#002e1a;color:#fff;padding:6px 16px;border:none;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;transition:background-color .3s}.apply-button[_ngcontent-%COMP%]:hover{background-color:#014a2a}.plan-subtitle[_ngcontent-%COMP%]{font-size:12px;color:#999;margin-right:16px}.plan-info-item[_ngcontent-%COMP%]{font-size:12px;color:#666;margin-right:16px}.company-logo_temp[_ngcontent-%COMP%]{width:42px;height:42px;object-fit:contain;border-radius:50%}.banner_header_temp[_ngcontent-%COMP%]{font-size:14px;font-weight:500;line-height:145%}.link_popup_heading_temp[_ngcontent-%COMP%]{font-size:24px;font-weight:500;line-height:145%}.save_btn[_ngcontent-%COMP%]{width:100%;height:38px;padding:14px;border-radius:6px;background:#10b981;cursor:pointer;display:flex;align-items:center;justify-content:center;margin-top:20px;font-size:8px;transition:all .2s ease-in-out;border:none;color:#fff}.plus_button[_ngcontent-%COMP%]{border:1px solid #D0D5DD;background:transparent;border-radius:6px;padding:7px 11px;font-size:20px;margin-left:5px}.btS_popup[_ngcontent-%COMP%]{background-color:#004d14;color:#fff;border:none}.payment-with-background[_ngcontent-%COMP%]{background-repeat:no-repeat;width:66px;height:auto}.img1[_ngcontent-%COMP%]{position:absolute;top:365px;left:142px}.img2[_ngcontent-%COMP%]{position:absolute;top:365px;left:288px}.img3[_ngcontent-%COMP%]{position:absolute;top:365px;right:161px}.img4[_ngcontent-%COMP%]{position:absolute;top:365px;right:15px}.img5[_ngcontent-%COMP%]{position:absolute;top:433px;left:142px}.img6[_ngcontent-%COMP%]{position:absolute;top:433px;left:288px}.img7[_ngcontent-%COMP%]{position:absolute;top:433px;right:161px}.img8[_ngcontent-%COMP%]{position:absolute;top:433px;right:15px}.img9[_ngcontent-%COMP%]{position:absolute;top:560px;left:90px}.img10[_ngcontent-%COMP%]{position:absolute;top:560px;left:165px}.img11[_ngcontent-%COMP%]{position:absolute;top:560px;left:236px}.img12[_ngcontent-%COMP%]{position:absolute;top:560px;left:290px}.img14[_ngcontent-%COMP%]{position:absolute;top:560px;right:15px}.img15[_ngcontent-%COMP%]{position:absolute;top:640px;right:15px}.img16[_ngcontent-%COMP%]{position:absolute;top:640px;left:290px}.img17[_ngcontent-%COMP%]{position:absolute;top:640px;left:216px}.img18[_ngcontent-%COMP%]{position:absolute;top:640px;left:73px}.img19[_ngcontent-%COMP%]{position:absolute;top:640px;left:150px}.menu_itam_paybutton[_ngcontent-%COMP%]{width:100%;height:auto;padding:10px;border-radius:8px;border:1px solid #D0D5DD;background:#fff}.link_popup_heading[_ngcontent-%COMP%]{font-size:36px;color:#004d14;line-height:145%;font-weight:600}.link_popup_subhead[_ngcontent-%COMP%]{font-size:16px;color:#667185;line-height:145%;font-weight:400}.preview-btn[_ngcontent-%COMP%]{padding:10px 20px;color:#fff;font-size:16px;border-radius:6px;cursor:pointer;margin-top:10px;width:100%}']})}return n})();var vc=bn(57912),Ld=bn(67376),wO=bn(99796),FO=bn(10235),I4=bn(91977),cv=bn(79441);
1const AO=["wrapper"],TO=["sourceImage"];function SO(n,a){if(1&n){const t=e.RV6();e.j41(0,"img",5,1),e.bIt("load",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.imageLoadedInView())})("mousedown",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.startMove(i,s.moveTypes.Drag))})("touchstart",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.startMove(i,s.moveTypes.Drag))})("error",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.loadImageError(i))}),e.k0s()}if(2&n){const t=e.XpG();e.xc7("visibility",t.imageVisible?"visible":"hidden")("transform",t.safeTransformStyle),e.AVh("ngx-ic-draggable",!t.disabled&&t.allowMoveImage),e.Y8G("src",t.safeImgDataUrl,e.B4B),e.BMQ("alt",t.imageAltText)}}function EO(n,a){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"span",9),e.bIt("mousedown",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.startMove(i,s.moveTypes.Resize,"topleft"))})("touchstart",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.startMove(i,s.moveTypes.Resize,"topleft"))}),e.nrm(2,"span",10),e.k0s(),e.j41(3,"span",11),e.nrm(4,"span",10),e.k0s(),e.j41(5,"span",12),e.bIt("mousedown",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.startMove(i,s.moveTypes.Resize,"topright"))})("touchstart",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.startMove(i,s.moveTypes.Resize,"topright"))}),e.nrm(6,"span",10),e.k0s(),e.j41(7,"span",13),e.nrm(8,"span",10),e.k0s(),e.j41(9,"span",14),e.bIt("mousedown",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.startMove(i,s.moveTypes.Resize,"bottomright"))})("touchstart",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.startMove(i,s.moveTypes.Resize,"bottomright"))}),e.nrm(10,"span",10),e.k0s(),e.j41(11,"span",15),e.nrm(12,"span",10),e.k0s(),e.j41(13,"span",16),e.bIt("mousedown",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.startMove(i,s.moveTypes.Resize,"bottomleft"))})("touchstart",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.startMove(i,s.moveTypes.Resize,"bottomleft"))}),e.nrm(14,"span",10),e.k0s(),e.j41(15,"span",17),e.nrm(16,"span",10),e.k0s(),e.j41(17,"span",18),e.bIt("mousedown",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.startMove(i,s.moveTypes.Resize,"top"))})("touchstart",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.startMove(i,s.moveTypes.Resize,"top"))}),e.k0s(),e.j41(18,"span",19),e.bIt("mousedown",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.startMove(i,s.moveTypes.Resize,"right"))})("touchstart",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.startMove(i,s.moveTypes.Resize,"right"))}),e.k0s(),e.j41(19,"span",20),e.bIt("mousedown",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.startMove(i,s.moveTypes.Resize,"bottom"))})("touchstart",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.startMove(i,s.moveTypes.Resize,"bottom"))}),e.k0s(),e.j41(20,"span",21),e.bIt("mousedown",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.startMove(i,s.moveTypes.Resize,"left"))})("touchstart",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.startMove(i,s.moveTypes.Resize,"left"))}),e.k0s(),e.bVm()}}function PO(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",6),e.bIt("keydown",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.keyboardAccess(i))}),e.j41(1,"div",7),e.bIt("mousedown",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.startMove(i,s.moveTypes.Move))})("touchstart",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.startMove(i,s.moveTypes.Move))}),e.k0s(),e.DNE(2,EO,21,0,"ng-container",8),e.k0s()}if(2&n){const t=e.XpG();e.xc7("top",t.cropper.y1,"px")("left",t.cropper.x1,"px")("width",t.cropper.x2-t.cropper.x1,"px")("height",t.cropper.y2-t.cropper.y1,"px")("margin-left","center"===t.alignImage?t.marginLeft:null)("visibility",t.imageVisible?"visible":"hidden"),e.AVh("ngx-ic-round",t.roundCropper),e.BMQ("aria-label",t.cropperFrameAriaLabel),e.R7$(2),e.Y8G("ngIf",!t.hideResizeSquares)}}class MO{constructor(){this.format="png",this.output="blob",this.maintainAspectRatio=!0,this.transform={},this.aspectRatio=1,this.resetCropOnAspectRatioChange=!0,this.resizeToWidth=0,this.resizeToHeight=0,this.cropperMinWidth=0,this.cropperMinHeight=0,this.cropperMaxHeight=0,this.cropperMaxWidth=0,this.cropperStaticWidth=0,this.cropperStaticHeight=0,this.canvasRotation=0,this.initialStepSize=3,this.roundCropper=!1,this.onlyScaleDown=!1,this.imageQuality=92,this.autoCrop=!0,this.backgroundColor=null,this.containWithinAspectRatio=!1,this.hideResizeSquares=!1,this.alignImage="center",this.cropperFrameAriaLabel="Crop photo",this.cropperScaledMinWidth=20,this.cropperScaledMinHeight=20,this.cropperScaledMaxWidth=20,this.cropperScaledMaxHeight=20,this.stepSize=this.initialStepSize}setOptions(a){Object.keys(a).filter(t=>
1t in this).forEach(t=>this[t]=a[t]),this.validateOptions()}setOptionsFromChanges(a){Object.keys(a).filter(t=>t in this).forEach(t=>this[t]=a[t].currentValue),this.validateOptions()}validateOptions(){if(this.maintainAspectRatio&&!this.aspectRatio)throw new Error("`aspectRatio` should > 0 when `maintainAspectRatio` is enabled")}}var ah=function(n){return n.Drag="drag",n.Move="move",n.Resize="resize",n.Pinch="pinch",n}(ah||{});function j4(n,a){return n/100*a}let RO=(()=>{class n{crop(t,r,i,s,p){const g=this.getImagePosition(t,r,i,p),S=g.x2-g.x1,R=g.y2-g.y1,L=document.createElement("canvas");L.width=S,L.height=R;const ne=L.getContext("2d");if(!ne)return null;null!=i.backgroundColor&&(ne.fillStyle=i.backgroundColor,ne.fillRect(0,0,S,R));const re=(i.transform.scale||1)*(i.transform.flipH?-1:1),fe=(i.transform.scale||1)*(i.transform.flipV?-1:1),{translateH:xe,translateV:ce}=this.getCanvasTranslate(t,i,p),be=t.transformed;ne.setTransform(re,0,0,fe,be.size.width/2+xe,be.size.height/2+ce),ne.translate(-g.x1/re,-g.y1/fe),ne.rotate((i.transform.rotate||0)*Math.PI/180),ne.drawImage(be.image,-be.size.width/2,-be.size.height/2);const Je={width:S,height:R,imagePosition:g,cropperPosition:{...r}};i.containWithinAspectRatio&&(Je.offsetImagePosition=this.getOffsetImagePosition(t,r,i,p));const tt=this.getResizeRatio(S,R,i);return 1!==tt&&(Je.width=Math.round(S*tt),Je.height=i.maintainAspectRatio?Math.round(Je.width/i.aspectRatio):Math.round(R*tt),function jO(n,a,t){const r=n.width,i=n.height,s=r/(a=Math.round(a)),p=i/(t=Math.round(t)),g=Math.ceil(s/2),S=Math.ceil(p/2),R=n.getContext("2d");if(R){const L=R.getImageData(0,0,r,i),ne=R.createImageData(a,t),re=L.data,fe=ne.data;for(let xe=0;xe<t;xe++)for(let ce=0;ce<a;ce++){const be=4*(ce+xe*a),Je=xe*p;let tt=0,Ze=0,en=0,vn=0,Kn=0,Tt=0,hn=0;const on=Math.floor(ce*s),ti=Math.floor(xe*p);let ni=Math.ceil((ce+1)*s),cn=Math.ceil((xe+1)*p);ni=Math.min(ni,r),cn=Math.min(cn,i);for(let Yi=ti;Yi<cn;Yi++){const Tr=Math.abs(Je-Yi)/S,ar=ce*s,fa=Tr*Tr;for(let Ir=on;Ir<ni;Ir++){const ao=Math.abs(ar-Ir)/g,pr=Math.sqrt(fa+ao*ao);if(pr>=1)continue;tt=2*pr*pr*pr-3*pr*pr+1;const sa=4*(Ir+Yi*r);hn+=tt*re[sa+3],en+=tt,re[sa+3]<255&&(tt=tt*re[sa+3]/250),vn+=tt*re[sa],Kn+=tt*re[sa+1],Tt+=tt*re[sa+2],Ze+=tt}}fe[be]=vn/Ze,fe[be+1]=Kn/Ze,fe[be+2]=Tt/Ze,fe[be+3]=hn/en}n.width=a,n.height=t,R.putImageData(ne,0,0)}}(L,Je.width,Je.height)),"blob"===s?this.cropToBlob(Je,L,i):(Je.base64=L.toDataURL("image/"+i.format,this.getQuality(i)),Je)}cropToBlob(t,r,i){var s=this;return(0,Pt.A)(function*(){return t.blob=yield new Promise(p=>r.toBlob(p,"image/"+i.format,s.getQuality(i))),t.blob&&(t.objectUrl=URL.createObjectURL(t.blob)),t})()}getCanvasTranslate(t,r,i){if("px"===r.transform.translateUnit){const s=this.getRatio(t,i);return{translateH:(r.transform.translateH||0)*s,translateV:(r.transform.translateV||0)*s}}return{translateH:r.transform.translateH?j4(r.transform.translateH,t.transformed.size.width):0,translateV:r.transform.translateV?j4(r.transform.translateV,t.transformed.size.height):0}}getRatio(t,r){return t.transformed.size.width/r.width}getImagePosition(t,r,i,s){const p=this.getRatio(t,s),g={x1:Math.round(r.x1*p),y1:Math.round(r.y1*p),x2:Math.round(r.x2*p),y2:Math.round(r.y2*p)};return i.containWithinAspectRatio||(g.x1=Math.max(g.x1,0),g.y1=Math.max(g.y1,0),g.x2=Math.min(g.x2,t.transformed.size.width),g.y2=Math.min(g.y2,t.transformed.size.height)),g}getOffsetImagePosition(t,r,i,s){const p=i.canvasRotation+t.exifTransform.rotate,g=this.getRatio(t,s);let S,R;p%2?(S=(t.transformed.size.width-t.original.size.height)/2,R=(t.transformed.size.height-t.original.size.width)/2):(S=(t.transformed.size.width-t.original.size.width)/2,R=(t.transformed.size.height-t.original.size.height)/2);const L={x1:Math.round(r.x1*g)-S,y1:Math.round(r.y1*g)-R,x2:Math.round(r.x2*g)-S,y2:Math.round(r.y2*g)-R};return i.containWithinAspectRatio||(L.x1=Math.max(L.x1,0),L.y1=Math.max(L.y1,0),L.x2=Math.min(L.x2,t.transformed.size.width),L.y2=Math.min(L.y2,t.transformed.size.height)),L}getResizeRatio(t,r,i){const s=i.resizeToWidth/t,p=i.resizeToHeight/r,g=new Array;i.resizeToWidth>0&&g.push(s),i.resizeToHeight>0&&g.push(p);const S=0===g.length?1:Math.min(...g);return S>1&&!i.onlyScaleDown?S:Math.min(S,1)}getQuality(t){return Math.min(1,Math.max(0,t.imageQuality/100))}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),LO=(()=>{class n{resetCropperPosition(t,r,i,s){if(t?.nativeElement)if(i.cropperStaticHeight&&i.cropperStaticWidth)r.x1=0,r.x2=s.width>i.cropperStaticWidth?i.cropperStaticWidth:s.width,r.y1=0,r.y2=s.height>i.cropperStaticHeight?i.cropperStaticHeight:s.height;else{const p=Math.min(i.cropperScaledMaxWidth,s.width),g=Math.min(i.cropperScaledMaxHeight,s.height);if(i.maintainAspectRatio)if(s.width/i.aspectRatio<s.height){r.x1=0,r.x2=p;const S=p/i.aspectRatio;r.y1=(s.height-S)/2,r.y2=r.y1+S}else{r.y1=0,r.y2=g;const S=g*i.aspectRatio;r.x1=(s.width-S)/2,r.x2=r.x1+S}else r.x1=0,r.x2=p,r.y1=0,r.y2=g}}move(t,r,i){const s=this.getClientX(t)-r.clientX,p=this.getClientY(t)-r.clientY;i.x1=r.x1+s,i.y1=r.y1+p,i.x2=r.x2+s,i.y2=r.y2+p}resize(t,r,i,s,p){const g=this.getClientX(t)-r.clientX,S=this.getClientY(t)-r.clientY;switch(r.position){case"left":i.x1=Math.min(Math.max(r.x1+g,i.x2-p.cropperScaledMaxWidth),i.x2-p.cropperScaledMinWidth);break;case"topleft":i.x1=Math.min(Math.max(r.x1+g,i.x2-p.cropperScaledMaxWidth),i.x2-p.cropperScaledMinWidth),i.y1=Math.min(Math.max(r.y1+S,i.y2-p.cropperScaledMaxHeight),i.y2-p.cropperScaledMinHeight);break;case"top":i.y1=Math.min(Math.max(r.y1+S,i.y2-p.cropperScaledMaxHeight),i.y2-p.cropperScaledMinHeight);break;case"topright":i.x2=Math.max(Math.min(r.x2+g,i.x1+p.cropperScaledMaxWidth),i.x1+p.cropperScaledMinWidth),i.y1=Math.min(Math.max(r.y1+S,i.y2-p.cropperScaledMaxHeight),i.y2-p.cropperScaledMinHeight);break;case"right":i.x2=Math.max(Math.min(r.x2+g,i.x1+p.cropperScaledMaxWidth),i.x1+p.cropperScaledMinWidth);break;case"bottomright":i.x2=Math.max(Math.min(r.x2+g,i.x1+p.cropperScaledMaxWidth),i.x1+p.cropperScaledMinWidth),i.y2=Math.max(Math.min(r.y2+S,i.y1+p.cropperScaledMaxHeight),i.y1+p.cropperScaledMinHeight);break;case"bottom":i.y2=Math.max(Math.min(r.y2+S,i.y1+p.cropperScaledMaxHeight),i.y1+p.cropperScaledMinHeight);break;case"bottomleft":i.x1=Math.min(Math.max(r.x1+g,i.x2-p.cropperScaledMaxWidth),i.x2-p.cropperScaledMinWidth),i.y2=Math.max(Math.min(r.y2+S,i.y1+p.cropperScaledMaxHeight),i.y1+p.cropperScaledMinHeight);break;case"center":const R=t.scale,L=Math.min(Math.max(p.cropperScaledMinWidth,Math.abs(r.x2-r.x1)*R),p.cropperScaledMaxWidth),ne=Math.min(Math.max(p.cropperScaledMinHeight,Math.abs(r.y2-r.y1)*R),p.cropperScaledMaxHeight);i.x1=r.clientX-L/2,i.x2=r.clientX+L/2,i.y1=r.clientY-ne/2,i.y2=r.clientY+ne/2,i.x1<0?(i.x2-=i.x1,i.x1=0):i.x2>s.width&&(i.x1-=i.x2-s.width,i.x2=s.width),i.y1<0?(i.y2-=i.y1,i.y1=0):i.y2>s.height&&(i.y1-=i.y2-s.height,i.y2=s.height)}p.maintainAspectRatio&&this.checkAspectRatio(r.position,i,s,p)}checkAspectRatio(t,r,i,s){let p=0,g=0;switch(t){case"top":r.x2=r.x1+(r.y2-r.y1)*s.aspectRatio,p=Math.max(r.x2-i.width,0),g=Math.max(0-r.y1,0),(p>0||g>0)&&(r.x2-=g*s.aspectRatio>p?g*s.aspectRatio:p,r.y1+=g*s.aspectRatio>p?g:p/s.aspectRatio);break;case"bottom":r.x2=r.x1+(r.y2-r.y1)*s.aspectRatio,p=Math.max(r.x2-i.width,0),g=Math.max(r.y2-i.height,0),(p>0||g>0)&&(r.x2-=g*s.aspectRatio>p?g*s.aspectRatio:p,r.y2-=g*s.aspectRatio>p?g:p/s.aspectRatio);break;case"topleft":r.y1=r.y2-(r.x2-r.x1)/s.aspectRatio,p=Math.max(0-r.x1,0),g=Math.max(0-r.y1,0),(p>0||g>0)&&(r.x1+=g*s.aspectRatio>p?g*s.aspectRatio:p,r.y1+=g*s.aspectRatio>p?g:p/s.aspectRatio);break;case"topright":r.y1=r.y2-(r.x2-r.x1)/s.aspectRatio,p=Math.max(r.x2-i.width,0),g=Math.max(0-r.y1,0),(p>0||g>0)&&(r.x2-=g*s.aspectRatio>p?g*s.aspectRatio:p,r.y1+=g*s.aspectRatio>p?g:p/s.aspectRatio);break;case"right":case"bottomright":r.y2=r.y1+(r.x2-r.x1)/s.aspectRatio,p=Math.max(r.x2-i.width,0),g=Math.max(r.y2-i.height,0),(p>0||g>0)&&(r.x2-=g*s.aspectRatio>p?g*s.aspectRatio:p,r.y2-=g*s.aspectRatio>p?g:p/s.aspectRatio);break;case"left":case"bottomleft":r.y2=r.y1+(r.x2-r.x1)/s.aspectRatio,p=Math.max(0-r.x1,0),g=Math.max(r.y2-i.height,0),(p>0||g>0)&&(r.x1+=g*s.aspectRatio>p?g*s.aspectRatio:p,r.y2-=g*s.aspectRatio>p?g:p/s.aspectRatio);break;case"center":r.x2=r.x1+(r.y2-r.y1)*s.aspectRatio,r.y2=r.y1+(r.x2-r.x1)/s.aspectRatio;const S=Math.max(0-r.x1,0),R=Math.max(r.x2-i.width,0),L=Math.max(r.y2-i.height,0),ne=Math.max(0-r.y1,0);(S>0||R>0||L>0||ne>0)&&(r.x1+=L*s.aspectRatio>S?L*s.aspectRatio:S,r.x2-=ne*s.aspectRatio>R?ne*s.aspectRatio:R,r.y1+=ne*s.aspectRatio>R?ne:R/s.aspectRatio,r.y2-=L*s.aspectRatio>S?L:S/s.aspectRatio)}}getClientX(t){return"touches"in t&&t.touches[0]?t.touches[0].clientX:"clientX"in t?t.clientX:0}getClientY(t){return"touches"in t&&t.touches[0]?t.touches[0].clientY:"
1clientX"in t?t.clientY:0}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();let zO=(()=>{class n{constructor(){this.autoRotateSupported=function BO(){return new Promise(n=>{const a=new Image;a.onload=()=>{n(1===a.width&&2===a.height)},a.src="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q=="})}()}loadImageFile(t,r){var i=this;return(0,Pt.A)(function*(){const s=yield t.arrayBuffer();return yield i.checkImageTypeAndLoadImageFromArrayBuffer(s,t.type,r)})()}checkImageTypeAndLoadImageFromArrayBuffer(t,r,i){return this.isValidImageType(r)?this.loadImageFromArrayBuffer(t,i,r):Promise.reject(new Error("Invalid image type"))}isValidImageType(t){return/image\/(png|jpg|jpeg|bmp|gif|tiff|svg|webp|x-icon|vnd.microsoft.icon)/.test(t)}loadImageFromURL(t,r){var i=this;return(0,Pt.A)(function*(){const p=yield(yield fetch(t)).blob(),g=yield p.arrayBuffer();return yield i.loadImageFromArrayBuffer(g,r,p.type)})()}loadBase64Image(t,r){const i=this.base64ToArrayBuffer(t);return this.loadImageFromArrayBuffer(i,r)}base64ToArrayBuffer(t){t=t.replace(/^data:([^;]+);base64,/gim,"");const r=atob(t),i=r.length,s=new Uint8Array(i);for(let p=0;p<i;p++)s[p]=r.charCodeAt(p);return s.buffer}loadImageFromArrayBuffer(t,r,i){var s=this;return(0,Pt.A)(function*(){const p=yield new Promise(function(){var g=(0,Pt.A)(function*(S,R){try{const L=new Blob([t],i?{type:i}:void 0),ne=URL.createObjectURL(L),re=new Image,xe="image/svg+xml"===i?yield s.getSvgImageSize(L):void 0;re.onload=()=>S({originalImage:re,originalImageSize:xe,originalObjectUrl:ne,originalArrayBuffer:t}),re.onerror=R,re.src=ne}catch(L){R(L)}});return function(S,R){return g.apply(this,arguments)}}());return yield s.transformImageFromArrayBuffer(p,r,null!=p.originalImageSize)})()}getSvgImageSize(t){return(0,Pt.A)(function*(){const s=(new DOMParser).parseFromString(yield t.text(),"image/svg+xml").querySelector("svg");if(!s)throw Error("Failed to parse SVG image");const p=s.getAttribute("width"),g=s.getAttribute("height");if(p&&g)return null;const S=s.getAttribute("viewBox")||s.getAttribute("viewbox");if(S){const R=S.split(" ");return{width:+R[2],height:+R[3]}}throw Error("Failed to load SVG image. SVG must have width + height or viewBox definition.")})()}transformImageFromArrayBuffer(t,r,i=!1){var s=this;return(0,Pt.A)(function*(){const g=function GO(n){switch("object"==typeof n&&(n=function VO(n){const a=new DataView(n);if(65496!==a.getUint16(0,!1))return-2;const t=a.byteLength;let r=2;for(;r<t;){if(a.getUint16(r+2,!1)<=8)return-1;const i=a.getUint16(r,!1);if(r+=2,65505==i){if(1165519206!==a.getUint32(r+=2,!1))return-1;const s=18761==a.getUint16(r+=6,!1);r+=a.getUint32(r+4,s);const p=a.getUint16(r,s);r+=2;for(let g=0;g<p;g++)if(274==a.getUint16(r+12*g,s))return a.getUint16(r+12*g+8,s)}else{if(65280&~i)break;r+=a.getUint16(r,!1)}}return-1}(n)),n){case 2:return{rotate:0,flip:!0};case 3:return{rotate:2,flip:!1};case 4:return{rotate:2,flip:!0};case 5:return{rotate:1,flip:!0};case 6:return{rotate:1,flip:!1};case 7:return{rotate:3,flip:!0};case 8:return{rotate:3,flip:!1};default:return{rotate:0,flip:!1}}}((yield s.autoRotateSupported)?-1:t.originalArrayBuffer);return t.originalImage&&t.originalImage.complete?s.transformLoadedImage({original:{objectUrl:t.originalObjectUrl,image:t.originalImage,size:t.originalImageSize??{width:t.originalImage.naturalWidth,height:t.originalImage.naturalHeight}},exifTransform:g},r,i):Promise.reject(new Error("No image loaded"))})()}transformLoadedImage(t,r,i=!1){var s=this;return(0,Pt.A)(function*(){const p=r.canvasRotation+t.exifTransform.rotate,g=t.original.size;if(!i&&0===p&&!t.exifTransform.flip&&!r.containWithinAspectRatio)return{original:{objectUrl:t.original.objectUrl,image:t.original.image,size:{...g}},transformed:{objectUrl:t.original.objectUrl,image:t.original.image,size:{...g}},exifTransform:t.exifTransform};const S=s.getTransformedSize(g,t.exifTransform,r),R=document.createElement("canvas");R.width=S.width,R.height=S.height;const L=R.getContext("2d");L?.setTransform(t.exifTransform.flip?-1:1,0,0,1,R.width/2,R.height/2),L?.rotate(Math.PI*(p/2)),L?.drawImage(t.original.image,-g.width/2,-g.height/2);const ne=yield new Promise(xe=>R.toBlob(xe,r.format));if(!ne)throw new Error("Failed to get Blob for transformed image.");const re=URL.createObjectURL(ne),fe=yield s.loadImageFromObjectUrl(re);return{original:{objectUrl:t.original.objectUrl,image:t.original.image,size:{...g}},transformed:{objectUrl:re,image:fe,size:{width:fe.width,height:fe.height}},exifTransform:t.exifTransform}})()}loadImageFromObjectUrl(t){return new Promise((r,i)=>{const s=new Image;s.onload=()=>r(s),s.onerror=i,s.src=t})}
1getTransformedSize(t,r,i){const s=i.canvasRotation+r.rotate;if(i.containWithinAspectRatio){if(s%2){const g=t.height/i.aspectRatio;return{width:Math.max(t.height,t.width*i.aspectRatio),height:Math.max(t.width,g)}}{const g=t.width/i.aspectRatio;return{width:Math.max(t.width,t.height*i.aspectRatio),height:Math.max(t.height,g)}}}return s%2?{height:t.width,width:t.height}:{width:t.width,height:t.height}}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),R4=(()=>{class n{constructor(t,r,i,s,p,g,S){this.cropService=t,this.cropperPositionService=r,this.loadImageService=i,this.sanitizer=s,this.cd=p,this.zone=g,this.hammerLoader=S,this.settings=new MO,this.setImageMaxSizeRetries=0,this.resizedWhileHidden=!1,this.marginLeft="0px",this.maxSize={width:0,height:0},this.moveTypes=ah,this.imageVisible=!1,this.cropperFrameAriaLabel=this.settings.cropperFrameAriaLabel,this.output=this.settings.output,this.format=this.settings.format,this.transform={},this.maintainAspectRatio=this.settings.maintainAspectRatio,this.aspectRatio=this.settings.aspectRatio,this.resetCropOnAspectRatioChange=this.settings.resetCropOnAspectRatioChange,this.resizeToWidth=this.settings.resizeToWidth,this.resizeToHeight=this.settings.resizeToHeight,this.cropperMinWidth=this.settings.cropperMinWidth,this.cropperMinHeight=this.settings.cropperMinHeight,this.cropperMaxHeight=this.settings.cropperMaxHeight,this.cropperMaxWidth=this.settings.cropperMaxWidth,this.cropperStaticWidth=this.settings.cropperStaticWidth,this.cropperStaticHeight=this.settings.cropperStaticHeight,this.canvasRotation=this.settings.canvasRotation,this.initialStepSize=this.settings.initialStepSize,this.roundCropper=this.settings.roundCropper,this.onlyScaleDown=this.settings.onlyScaleDown,this.imageQuality=this.settings.imageQuality,this.autoCrop=this.settings.autoCrop,this.backgroundColor=this.settings.backgroundColor,this.containWithinAspectRatio=this.settings.containWithinAspectRatio,this.hideResizeSquares=this.settings.hideResizeSquares,this.allowMoveImage=!1,this.cropper={x1:-100,y1:-100,x2:1e4,y2:1e4},this.alignImage=this.settings.alignImage,this.disabled=!1,this.hidden=!1,this.imageCropped=new e.bkB,this.startCropImage=new e.bkB,this.imageLoaded=new e.bkB,this.cropperReady=new e.bkB,this.loadImageFailed=new e.bkB,this.transformChange=new e.bkB,this.reset()}ngOnChanges(t){this.onChangesUpdateSettings(t),this.onChangesInputImage(t),this.loadedImage?.original.image.complete&&(t.containWithinAspectRatio||t.canvasRotation)&&this.loadImageService.transformLoadedImage(this.loadedImage,this.settings).then(r=>this.setLoadedImage(r)).catch(r=>this.loadImageError(r)),(t.cropper||t.maintainAspectRatio||t.aspectRatio)&&(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),!this.maintainAspectRatio||!this.resetCropOnAspectRatioChange&&this.aspectRatioIsCorrect()||!t.maintainAspectRatio&&!t.aspectRatio?t.cropper&&(this.checkCropperPosition(!1),this.doAutoCrop()):this.resetCropperPosition()),t.transform&&(this.transform=this.transform||{},this.setCssTransform(),this.doAutoCrop()),t.hidden&&this.resizedWhileHidden&&!this.hidden&&setTimeout(()=>{this.onResize(),this.resizedWhileHidden=!1})}onChangesUpdateSettings(t){this.settings.setOptionsFromChanges(t),this.settings.cropperStaticHeight&&this.settings.cropperStaticWidth&&(this.hideResizeSquares=!0,this.settings.setOptions({hideResizeSquares:!0,cropperMinWidth:this.settings.cropperStaticWidth,cropperMinHeight:this.settings.cropperStaticHeight,cropperMaxHeight:this.settings.cropperStaticHeight,cropperMaxWidth:this.settings.cropperStaticWidth,maintainAspectRatio:!1}))}onChangesInputImage(t){(t.imageChangedEvent||t.imageURL||t.imageBase64||t.imageFile)&&this.reset(),t.imageChangedEvent&&this.isValidImageChangedEvent()&&this.loadImageFile(this.imageChangedEvent.target.files[0]),t.imageURL&&this.imageURL&&this.loadImageFromURL(this.imageURL),t.imageBase64&&this.imageBase64&&this.loadBase64Image(this.imageBase64),t.imageFile&&this.imageFile&&this.loadImageFile(this.imageFile)}isValidImageChangedEvent(){const t=this.imageChangedEvent?.target?.files;return t instanceof FileList&&t.length>0}setCssTransform(){const t=this.transform?.translateUnit||"%";this.safeTransformStyle=this.sanitizer.bypassSecurityTrustStyle(`translate(${this.transform.translateH||0}${t}, ${this.transform.translateV||0}${t}) scaleX(`+(this.transform.scale||1)*(this.transform.flipH?-1:1)+") scaleY("+(this.transform.scale||1)*(this.transform.flipV?-1:1)+") rotate("+(this.transform.rotate||0)+"deg)")}ngOnInit(){this.settings.stepSize=this.initialStepSize,this.activatePinchGesture()}reset(){this.imageVisible=!1,this.loadedImage=void 0,this.safeImgDataUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=",this.moveStart={active:!1,type:null,position:null,x1:0,y1:0,x2:0,y2:0,clientX:0,clientY:0},this.maxSize={width:0,height:0},this.cropper.x1=-100,this.cropper.y1=-100,this.cropper.x2=1e4,this.cropper.y2=1e4}loadImageFile(t){this.loadImageService.loadImageFile(t,this.settings).then(r=>this.setLoadedImage(r)).catch(r=>this.loadImageError(r))}loadBase64Image(t){this.loadImageService.loadBase64Image(t,this.settings).then(r=>this.setLoadedImage(r)).catch(r=>this.loadImageError(r))}loadImageFromURL(t){this.loadImageService.loadImageFromURL(t,this.settings).then(r=>this.setLoadedImage(r)).catch(r=>this.loadImageError(r))}setLoadedImage(t){this.loadedImage=t,this.safeImgDataUrl=this.sanitizer.bypassSecurityTrustResourceUrl(t.transformed.objectUrl),this.cd.markForCheck()}loadImageError(t){console.error(t),this.loadImageFailed.emit()}imageLoadedInView(){null!=this.loadedImage&&(this.imageLoaded.emit(this.loadedImage),this.setImageMaxSizeRetries=0,setTimeout(()=>this.checkImageMaxSizeRecursively()))}checkImageMaxSizeRecursively(){this.setImageMaxSizeRetries>40?this.loadImageFailed.emit():this.sourceImageLoaded()?(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),this.resetCropperPosition(),this.cropperReady.emit({...this.maxSize}),this.cd.markForCheck()):(this.setImageMaxSizeRetries++,setTimeout(()=>this.checkImageMaxSizeRecursively(),50))}sourceImageLoaded(){return this.sourceImage?.nativeElement?.offsetWidth>0}onResize(){if(this.loadedImage)if(this.hidden)this.resizedWhileHidden=!0;else{const t={...this.maxSize};this.setMaxSize(),this.resizeCropperPosition(t),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize()}}activatePinchGesture(){var t=this;
1return(0,Pt.A)(function*(){yield t.hammerLoader?.();const r=window?.Hammer||null;if(r){const i=new r(t.wrapper.nativeElement);i.get("pinch").set({enable:!0}),i.on("pinchmove",t.onPinch.bind(t)),i.on("pinchend",t.pinchStop.bind(t)),i.on("pinchstart",t.startPinch.bind(t))}else(0,e.naY)()&&console.warn("[NgxImageCropper] Could not find HammerJS - Pinch Gesture won't work")})()}resizeCropperPosition(t){(t.width!==this.maxSize.width||t.height!==this.maxSize.height)&&(this.cropper.x1=this.cropper.x1*this.maxSize.width/t.width,this.cropper.x2=this.cropper.x2*this.maxSize.width/t.width,this.cropper.y1=this.cropper.y1*this.maxSize.height/t.height,this.cropper.y2=this.cropper.y2*this.maxSize.height/t.height)}resetCropperPosition(){this.cropperPositionService.resetCropperPosition(this.sourceImage,this.cropper,this.settings,this.maxSize),this.doAutoCrop(),this.imageVisible=!0}keyboardAccess(t){this.changeKeyboardStepSize(t),this.keyboardMoveCropper(t)}changeKeyboardStepSize(t){const r=+t.key;r>=1&&r<=9&&(this.settings.stepSize=r)}keyboardMoveCropper(t){if(!["ArrowUp","ArrowDown","ArrowRight","ArrowLeft"].includes(t.key))return;const i=t.shiftKey?ah.Resize:ah.Move,s=t.altKey?function DO(n){switch(n){case"ArrowUp":return"bottom";case"ArrowRight":return"left";case"ArrowDown":return"top";default:return"right"}}(t.key):function OO(n){switch(n){case"ArrowUp":return"top";case"ArrowRight":return"right";case"ArrowDown":return"bottom";default:return"left"}}(t.key),p=function IO(n,a){switch(n){case"ArrowUp":return{clientX:0,clientY:-1*a};case"ArrowRight":return{clientX:a,clientY:0};case"ArrowDown":return{clientX:0,clientY:a};default:return{clientX:-1*a,clientY:0}}}(t.key,this.settings.stepSize);t.preventDefault(),t.stopPropagation(),this.startMove({clientX:0,clientY:0},i,s),this.handleMouseMove(p),this.handleMouseUp()}startMove(t,r,i=null){this.disabled||this.moveStart?.active&&this.moveStart?.type===ah.Pinch||r===ah.Drag&&!this.allowMoveImage||("preventDefault"in t&&t.preventDefault(),this.moveStart={active:!0,type:r,position:i,transform:{...this.transform},clientX:this.cropperPositionService.getClientX(t),clientY:this.cropperPositionService.getClientY(t),...this.cropper},this.initMouseMove())}initMouseMove(){(0,I4.h)((0,cv.R)(document,"mousemove"),(0,cv.R)(document,"touchmove")).pipe((0,wO.Q)((0,I4.h)((0,cv.R)(document,"mouseup"),(0,cv.R)(document,"touchend")).pipe((0,FO.$)()))).subscribe({next:t=>this.zone.run(()=>{this.handleMouseMove(t),this.cd.markForCheck()}),complete:()=>this.zone.run(()=>{this.handleMouseUp(),this.cd.markForCheck()})})}startPinch(t){this.safeImgDataUrl&&(t.preventDefault&&t.preventDefault(),this.moveStart={active:!0,type:ah.Pinch,position:"center",clientX:this.cropper.x1+(this.cropper.x2-this.cropper.x1)/2,clientY:this.cropper.y1+(this.cropper.y2-this.cropper.y1)/2,...this.cropper})}handleMouseMove(t){if(this.moveStart.active)if("stopPropagation"in t&&t.stopPropagation(),"preventDefault"in t&&t.preventDefault(),this.moveStart.type===ah.Move)this.cropperPositionService.move(t,this.moveStart,this.cropper),this.checkCropperPosition(!0);else if(this.moveStart.type===ah.Resize)!this.cropperStaticWidth&&!this.cropperStaticHeight&&this.cropperPositionService.resize(t,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1);else if(this.moveStart.type===ah.Drag){const r=this.cropperPositionService.getClientX(t)-this.moveStart.clientX,i=this.cropperPositionService.getClientY(t)-this.moveStart.clientY;this.transform={...this.transform,translateH:(this.moveStart.transform?.translateH||0)+r,translateV:(this.moveStart.transform?.translateV||0)+i},this.setCssTransform()}}onPinch(t){this.moveStart.active&&(t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),this.moveStart.type===ah.Pinch&&(this.cropperPositionService.resize(t,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1)),this.cd.markForCheck())}setMaxSize(){if(this.sourceImage){const t=getComputedStyle(this.sourceImage.nativeElement);this.maxSize.width=parseFloat(t.width),this.maxSize.height=parseFloat(t.height),this.marginLeft=this.sanitizer.bypassSecurityTrustStyle("calc(50% - "+this.maxSize.width/2+"px)")}}setCropperScaledMinSize(){this.loadedImage?.transformed?.image?(this.setCropperScaledMinWidth(),this.setCropperScaledMinHeight()):(this.settings.cropperScaledMinWidth=20,this.settings.cropperScaledMinHeight=20)}setCropperScaledMinWidth(){this.settings.cropperScaledMinWidth=this.cropperMinWidth>0?Math.max(20,this.cropperMinWidth/this.loadedImage.transformed.image.width*this.maxSize.width):20}setCropperScaledMinHeight(){this.settings.cropperScaledMinHeight=this.maintainAspectRatio?Math.max(20,this.settings.cropperScaledMinWidth/this.aspectRatio):this.cropperMinHeight>0?Math.max(20,this.cropperMinHeight/this.loadedImage.transformed.image.height*this.maxSize.height):20}setCropperScaledMaxSize(){if(this.loadedImage?.transformed?.image){const t=this.loadedImage.transformed.size.width/this.maxSize.width;this.settings.cropperScaledMaxWidth=this.cropperMaxWidth>20?this.cropperMaxWidth/t:this.maxSize.width,this.settings.cropperScaledMaxHeight=this.cropperMaxHeight>20?this.cropperMaxHeight/t:this.maxSize.height,this.maintainAspectRatio&&(this.settings.cropperScaledMaxWidth>this.settings.cropperScaledMaxHeight*this.aspectRatio?this.settings.cropperScaledMaxWidth=this.settings.cropperScaledMaxHeight*this.aspectRatio:this.settings.cropperScaledMaxWidth<this.settings.cropperScaledMaxHeight*this.aspectRatio&&(this.settings.cropperScaledMaxHeight=this.settings.cropperScaledMaxWidth/this.aspectRatio))}else this.settings.cropperScaledMaxWidth=this.maxSize.width,this.settings.cropperScaledMaxHeight=this.maxSize.height}checkCropperPosition(t=!1){this.cropper.x1<0&&(this.cropper.x2-=t?this.cropper.x1:0,this.cropper.x1=0),this.cropper.y1<0&&(this.cropper.y2-=t?this.cropper.y1:0,this.cropper.y1=0),this.cropper.x2>this.maxSize.width&&(this.cropper.x1-=t?this.cropper.x2-this.maxSize.width:0,this.cropper.x2=this.maxSize.width),this.cropper.y2>this.maxSize.height&&(this.cropper.y1-=t?this.cropper.y2-this.maxSize.height:0,this.cropper.y2=this.maxSize.height)}handleMouseUp(){this.moveStart.active&&(this.moveStart.active=!1,this.moveStart?.type===ah.Drag?this.transformChange.emit(this.transform):this.doAutoCrop())}pinchStop(){this.moveStart.active&&(this.moveStart.active=!1,this.doAutoCrop())}doAutoCrop(){this.autoCrop&&this.crop()}crop(t=this.settings.output){if(null!=this.loadedImage?.transformed?.image){if(this.startCropImage.emit(),"blob"===t)return this.cropToBlob();if("base64"===t)return this.cropToBase64()}return null}cropToBlob(){var t=this;return new Promise((r,i)=>this.zone.run((0,Pt.A)(function*(){const s=yield t.cropService.crop(t.loadedImage,t.cropper,t.settings,"blob",t.maxSize);s?(t.imageCropped.emit(s),r(s)):i("Crop image failed")})))}cropToBase64(){const t=this.cropService.crop(this.loadedImage,this.cropper,this.settings,"base64",this.maxSize);return t?(this.imageCropped.emit(t),t):null}aspectRatioIsCorrect(){return(this.cropper.x2-this.cropper.x1)/(this.cropper.y2-this.cropper.y1)===this.aspectRatio}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(RO),e.rXU(LO),e.rXU(zO),e.rXU(C1.up),e.rXU(e.gRc),e.rXU(e.SKi),e.rXU(C1.Bn,8))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["image-cropper"]],viewQuery:function(r,i){if(1&r&&(e.GBs(AO,7),e.GBs(TO,5)),2&r){let s;e.mGM(s=e.lsd())&&(i.wrapper=s.first),e.mGM(s=e.lsd())&&(i.sourceImage=s.first)}},hostVars:6,hostBindings:function(r,i){1&r&&e.bIt("resize",function(){return i.onResize()},!1,e.tSv),2&r&&(e.xc7("text-align",i.alignImage),e.AVh("disabled",i.disabled)("ngx-ix-hidden",i.hidden))},inputs:{imageChangedEvent:"imageChangedEvent",imageURL:"imageURL",imageBase64:"imageBase64",imageFile:"imageFile",imageAltText:"imageAltText",cropperFrameAriaLabel:"cropperFrameAriaLabel",output:"output",format:"format",transform:"transform",maintainAspectRatio:"maintainAspectRatio",as
1pectRatio:"aspectRatio",resetCropOnAspectRatioChange:"resetCropOnAspectRatioChange",resizeToWidth:"resizeToWidth",resizeToHeight:"resizeToHeight",cropperMinWidth:"cropperMinWidth",cropperMinHeight:"cropperMinHeight",cropperMaxHeight:"cropperMaxHeight",cropperMaxWidth:"cropperMaxWidth",cropperStaticWidth:"cropperStaticWidth",cropperStaticHeight:"cropperStaticHeight",canvasRotation:"canvasRotation",initialStepSize:"initialStepSize",roundCropper:"roundCropper",onlyScaleDown:"onlyScaleDown",imageQuality:"imageQuality",autoCrop:"autoCrop",backgroundColor:"backgroundColor",containWithinAspectRatio:"containWithinAspectRatio",hideResizeSquares:"hideResizeSquares",allowMoveImage:"allowMoveImage",cropper:"cropper",alignImage:"alignImage",disabled:"disabled",hidden:"hidden"},outputs:{imageCropped:"imageCropped",startCropImage:"startCropImage",imageLoaded:"imageLoaded",cropperReady:"cropperReady",loadImageFailed:"loadImageFailed",transformChange:"transformChange"},standalone:!0,features:[e.OA$,e.aNF],decls:5,vars:10,consts:[["wrapper",""],["sourceImage",""],["class","ngx-ic-source-image","role","presentation",3,"src","visibility","transform","ngx-ic-draggable","load","mousedown","touchstart","error",4,"ngIf"],[1,"ngx-ic-overlay"],["class","ngx-ic-cropper","tabindex","0",3,"ngx-ic-round","top","left","width","height","margin-left","visibility","keydown",4,"ngIf"],["role","presentation",1,"ngx-ic-source-image",3,"load","mousedown","touchstart","error","src"],["tabindex","0",1,"ngx-ic-cropper",3,"keydown"],["role","presentation",1,"ngx-ic-move",3,"mousedown","touchstart"],[4,"ngIf"],["role","presentation",1,"ngx-ic-resize","ngx-ic-topleft",3,"mousedown","touchstart"],[1,"ngx-ic-square"],[1,"ngx-ic-resize","ngx-ic-top"],["role","presentation",1,"ngx-ic-resize","ngx-ic-topright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-right"],["role","presentation",1,"ngx-ic-resize","ngx-ic-bottomright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-bottom"],["role","presentation",1,"ngx-ic-resize","ngx-ic-bottomleft",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-left"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-top",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-right",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-bottom",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-left",3,"mousedown","touchstart"]],template:function(r,i){1&r&&(e.j41(0,"div",null,0),e.DNE(2,SO,2,8,"img",2),e.nrm(3,"div",3),e.DNE(4,PO,3,16,"div",4),e.k0s()),2&r&&(e.xc7("background",i.imageVisible&&i.backgroundColor),e.R7$(2),e.Y8G("ngIf",i.safeImgDataUrl),e.R7$(),e.xc7("width",i.maxSize.width,"px")("height",i.maxSize.height,"px")("margin-left","center"===i.alignImage?i.marginLeft:null),e.R7$(),e.Y8G("ngIf",i.imageVisible))},dependencies:[Fe.bT],styles:['[_nghost-%COMP%]{display:flex;position:relative;width:100%;max-width:100%;max-height:100%;overflow:hidden;padding:5px;text-align:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{width:100%;position:relative}[_nghost-%COMP%] > div[_ngcontent-%COMP%] img.ngx-ic-source-image[_ngcontent-%COMP%]{max-width:100%;max-height:100%;transform-origin:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%] img.ngx-ic-source-image.ngx-ic-draggable[_ngcontent-%COMP%]{user-drag:none;-webkit-user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;cursor:grab}[_nghost-%COMP%] .ngx-ic-overlay[_ngcontent-%COMP%]{position:absolute;pointer-events:none;touch-action:none;outline:var(--cropper-overlay-color, white) solid 100vw;top:0;left:0}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]{position:absolute;display:flex;color:#53535c;background:transparent;outline:rgba(255,255,255,.3) solid 100vw;outline:var(--cropper-outline-color, rgba(255, 255, 255, .3)) solid 100vw;touch-action:none}@media (orientation: portrait){[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]{outline-width:100vh}}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]:after{position:absolute;content:"";inset:0;pointer-events:none;border:dashed 1px;opacity:.75;color:inherit;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{width:100%;cursor:move;border:1px solid rgba(255,255,255,.5)}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]:focus .ngx-ic-move[_ngcontent-%COMP%]{border-color:#1e90ff;border-width:2px}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%]{position:absolute;display:inline-block;line-height:6px;padding:8px;opacity:.85;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%] .ngx-ic-square[_ngcontent-%COMP%]{display:inline-block;background:#53535c;width:6px;height:6px;border:1px solid rgba(255,255,255,.5);box-sizing:content-box}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-topleft[_ngcontent-%COMP%]{top:-12px;left:-12px;cursor:nwse-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-top[_ngcontent-%COMP%]{top:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-topright[_ngcontent-%COMP%]{top:-12px;right:-12px;cursor:nesw-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-right[_ngcontent-%COMP%]{top:calc(50% - 12px);right:-12px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottomright[_ngcontent-%COMP%]{bottom:-12px;right:-12px;cursor:nwse-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottomleft[_ngcontent-%COMP%]{bottom:-12px;left:-12px;cursor:nesw-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-left[_ngcontent-%COMP%]{top:calc(50% - 12px);left:-12px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar[_ngcontent-%COMP%]{position:absolute;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-top[_ngcontent-%COMP%]{top:-11px;left:11px;width:calc(100% - 22px);height:22px;
1cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-right[_ngcontent-%COMP%]{top:11px;right:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-left[_ngcontent-%COMP%]{top:11px;left:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]{outline-color:transparent}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{border-radius:100%;box-shadow:0 0 0 100vw #ffffff4d;box-shadow:0 0 0 100vw var(--cropper-outline-color, rgba(255, 255, 255, .3))}@media (orientation: portrait){[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{box-shadow:0 0 0 100vh #ffffff4d;box-shadow:0 0 0 100vh var(--cropper-outline-color, rgba(255, 255, 255, .3))}}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{border-radius:100%}.disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{display:none}.ngx-ix-hidden[_nghost-%COMP%]{display:none}'],changeDetection:0})}return n})();const UO=["dialogPopup"],YO=["hueSlider"],WO=["alphaSlider"];function $O(n,a){if(1&n&&e.nrm(0,"div"),2&n){const t=e.XpG();e.ZvI("arrow arrow-",t.cpUsePosition,""),e.xc7("left",t.cpArrowPosition)("top",t.arrowTop,"px")}}function qO(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",28),e.bIt("newValue",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onColorChange(i))})("dragStart",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.onDragStart("saturation-lightness"))})("dragEnd",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.onDragEnd("saturation-lightness"))}),e.nrm(1,"div",16),e.k0s()}if(2&n){const t=e.XpG();e.xc7("background-color",t.hueSliderColor),e.Y8G("rgX",1)("rgY",1),e.R7$(),e.xc7("top",null==t.slider?null:t.slider.v,"px")("left",null==t.slider?null:t.slider.s,"px")}}function XO(n,a){1&n&&(e.qSk(),e.j41(0,"svg",29),e.nrm(1,"path",30)(2,"path",31),e.k0s())}function HO(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",32),e.bIt("click",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onAddPresetColor(i,s.selectedColor))}),e.EFF(1),e.k0s()}if(2&n){const t=e.XpG();e.HbH(t.cpAddColorButtonClass),e.Y8G("disabled",t.cpPresetColors&&t.cpPresetColors.length>=t.cpMaxPresetColorsLength),e.R7$(),e.SpI(" ",t.cpAddColorButtonText," ")}}function KO(n,a){1&n&&e.nrm(0,"div",33)}function JO(n,a){if(1&n){const t=e.RV6();e.j41(0,"input",39),e.bIt("keyup.enter",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onAcceptColor(i))})("newValue",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onAlphaInput(i))}),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("rg",1)("value",null==t.cmykText?null:t.cmykText.a)}}function ZO(n,a){1&n&&(e.j41(0,"div"),e.EFF(1,"A"),e.k0s())}function QO(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",34)(1,"div",35)(2,"input",36),e.bIt("keyup.enter",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onAcceptColor(i))})("newValue",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onCyanInput(i))}),e.k0s(),e.j41(3,"input",36),e.bIt("keyup.enter",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onAcceptColor(i))})("newValue",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onMagentaInput(i))}),e.k0s(),e.j41(4,"input",36),e.bIt("keyup.enter",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onAcceptColor(i))})("newValue",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onYellowInput(i))}),e.k0s(),e.j41(5,"input",36),e.bIt("keyup.enter",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onAcceptColor(i))})("newValue",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onBlackInput(i))}),e.k0s(),e.DNE(6,JO,1,2,"input",37),e.k0s(),e.j41(7,"div",35)(8,"div"),e.EFF(9,"C"),e.k0s(),e.j41(10,"div"),e.EFF(11,"M"),e.k0s(),e.j41(12,"div"),e.EFF(13,"Y"),e.k0s(),e.j41(14,"div"),e.EFF(15,"K"),e.k0s(),e.DNE(16,ZO,2,0,"div",38),e.k0s()()}if(2&n){const t=e.XpG();e.xc7("display",3!==t.format?"none":"block"),e.R7$(2),e.Y8G("rg",100)("value",null==t.cmykText?null:t.cmykText.c),e.R7$(),e.Y8G("rg",100)("value",null==t.cmykText?null:t.cmykText.m),e.R7$(),e.Y8G("rg",100)("value",null==t.cmykText?null:t.cmykText.y),e.R7$(),e.Y8G("rg",100)("value",null==t.cmykText?null:t.cmykText.k),e.R7$(),e.Y8G("ngIf","disabled"!==t.cpAlphaChannel),e.R7$(10),e.Y8G("ngIf","disabled"!==t.cpAlphaChannel)}}function eD(n,a){if(1&n){const t=e.RV6();e.j41(0,"input",39),e.bIt("keyup.enter",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onAcceptColor(i))})("newValue",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onAlphaInput(i))}),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("rg",1)("value",null==t.hslaText?null:t.hslaText.a)}}function tD(n,a){1&n&&(e.j41(0,"div"),e.EFF(1,"A"),e.k0s())}function nD(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",40)(1,"div",35)(2,"input",41),e.bIt("keyup.enter",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onAcceptColor(i))})("newValue",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onHueInput(i))}),e.k0s(),e.j41(3,"input",36),e.bIt("keyup.enter",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onAcceptColor(i))})("newValue",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onSaturationInput(i))}),e.k0s(),e.j41(4,"input",36),e.bIt("keyup.enter",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onAcceptColor(i))})("newValue",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onLightnessInput(i))}),e.k0s(),e.DNE(5,eD,1,2,"input",37),e.k0s(),e.j41(6,"div",35)(7,"div"),e.EFF(8,"H"),e.k0s(),e.j41(9,"div"),e.EFF(10,"S"),e.k0s(),e.j41(11,"div"),e.EFF(12,"L"),e.k0s(),e.DNE(13,tD,2,0,"div",38),e.k0s()()}if(2&n){const t=e.XpG();e.xc7("display",2!==t.format?"none":"block"),e.R7$(2),e.Y8G("rg",360)("value",null==t.hslaText?null:t.hslaText.h),e.R7$(),e.Y8G("rg",100)("value",null==t.hslaText?null:t.hslaText.s),e.R7$(),e.Y8G("rg",100)("value",null==t.hslaText?null:t.hslaText.l),e.R7$(),e.Y8G("ngIf","disabled"!==t.cpAlphaChannel),e.R7$(8),e.Y8G("ngIf","disabled"!==t.cpAlphaChannel)}}function iD(n,a){if(1&n){const t=e.RV6();e.j41(0,"input",39),e.bIt("keyup.enter",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onAcceptColor(i))})("newValue",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onAlphaInput(i))}),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("rg",1)("value",null==t.rgbaText?null:t.rgbaText.a)}}function rD(n,a){1&n&&(e.j41(0,"div"),e.EFF(1,"A"),e.k0s())}function aD(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",42)(1,"div",35)(2,"input",43),e.bIt("keyup.enter",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onAcceptColor(i))})("newValue",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onRedInput(i))}),e.k0s(),e.j41(3,"input",43),e.bIt("keyup.enter",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onAcceptColor(i))})("newValue",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onGreenInput(i))}),e.k0s(),e.j41(4,"input",43),e.bIt("keyup.enter",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onAcceptColor(i))})("newValue",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onBlueInput(i))}),e.k0s(),e.DNE(5,iD,1,2,"input",37),e.k0s(),e.j41(6,"div",35)(7,"div"),e.EFF(8,"R"),e.k0s(),e.j41(9,"div"),e.EFF(10,"G"),e.k0s(),e.j41(11,"div"),e.EFF(12,"B"),e.k0s(),e.DNE(13,rD,2,0,"div",38),e.k0s()()}if(2&n){const t=e.XpG();e.xc7("display",1!==t.format?"none":"block"),e.R7$(2),e.Y8G("rg",255)("value",null==t.rgbaText?null:t.rgbaText.r),e.R7$(),e.Y8G("rg",255)("value",null==t.rgbaText?null:t.rgbaText.g),e.R7$(),e.Y8G("rg",255)("value",null==t.rgbaText?null:t.rgbaText.b),e.R7$(),e.Y8G("ngIf","disabled"!==t.cpAlphaChannel),e.R7$(8),e.Y8G("ngIf","disabled"!==t.cpAlphaChannel)}}function oD(n,a){if(1&n){const t=e.RV6();e.j41(0,"input",39),e.bIt("keyup.enter",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onAcceptColor(i))})("newValue",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onAlphaInput(i))}),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("rg",1)("value",t.hexAlpha)}}function sD(n,a){1&n&&(e.j41(0,"div"),e.EFF(1,"A"),e.k0s())}function lD(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",44)(1,"div",35)(2,"input",45),e.bIt("blur",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.onHexInput(null))})("keyup.enter",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onAcceptColor(i))})("newValue",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onHexInput(i))}),e.k0s(),e.DNE(3,oD,1,2,"input",37),e.k0s(),e.j41(4,"div",35)(5,"div"),e.EFF(6,"Hex"),e.k0s(),e.DNE(7,sD,2,0,"div",38),e.k0s()()}if(2&n){const t=e.XpG();e.xc7("display",0!==t.format?"none":"block"),e.AVh("hex-alpha","forced"===t.cpAlphaChannel),e.R7$(2),e.Y8G("value",t.hexText),e.R7$(),e.Y8G("ngIf","forced"===t.cpAlphaChannel),e.R7$(4),e.Y8G("ngIf","forced"===t.cpAlphaChannel)}}function cD(n,a){if(1&n){const t=e.RV6();e.j41(0,"input",39),e.bIt("keyup.enter",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onAcceptColor(i))})("newValue",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onAlphaInput(i))}),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("rg",1)("value",null==t.hslaText?null:t.hslaText.a)}}function dD(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",46)(1,"div",35)(2,"input",36),e.bIt("keyup.enter",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onAcceptColor(i))})("newValue",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onValueInput(i))}),e.k0s(),e.DNE(3,cD,1,2,"input",37),e.k0s(),e.j41(4,"div",35)(5,"div"),e.EFF(6,"V"),e.k0s(),e.j41(7,"div"),e.EFF(8,"A"),e.k0s()()()}if(2&n){const t=e.XpG();e.R7$(2),e.Y8G("rg",100)("value",null==t.hslaText?null:t.hslaText.l),e.R7$(),e.Y8G("ngIf","disabled"!==t.cpAlphaChannel)}}function uD(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",47)(1,"span",48),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.onFormatToggle(-1))}),e.k0s(),e.j41(2,"span",48),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.onFormatToggle(1))}),e.k0s()()}}function fD(n,a){if(1&n){const t=e.RV6();e.j41(0,"span",55),e.bIt("click",function(i){e.eBV(t);const s=e.XpG().$implicit,p=e.XpG(3);return e.Njj(p.onRemovePresetColor(i,s))}),e.k0s()}if(2&n){const t=e.XpG(4);e.HbH(t.cpRemoveColorButtonClass)}}function pD(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",53),e.bIt("click",function(){const i=e.eBV(t).$implicit,s=e.XpG(3);return e.Njj(s.setColorFromString(i))}),e.DNE(1,fD,1,3,"span",54),e.k0s()}if(2&n){const t=a.$implicit,r=e.XpG(3);e.xc7("background-color",t),e.R7$(),e.Y8G("ngIf",r.cpAddColorButton)}}function hD(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,pD,2,3,"div",52),e.k0s()),2&n){const t=e.XpG(2);e.HbH(t.cpPresetColorsClass),e.R7$(),e.Y8G("ngForOf",t.cpPresetColors)}}function mD(n,a){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.HbH(t.cpPresetEmptyMessageClass),e.R7$(),e.JRh(t.cpPresetEmptyMessage)}}function gD(n,a){if(1&n&&(e.j41(0,"div",49),e.nrm(1,"hr"),e.j41(2,"div",50),e.EFF(3),e.k0s(),e.DNE(4,hD,2,4,"div",51)(5,mD,2,4,"div",51),e.k0s()),2&n){const t=e.XpG();e.R7$(3),e.JRh(t.cpPresetLabel),e.R7$(),e.Y8G("ngIf",null==t.cpPresetColors?null:t.cpPresetColors.length),e.R7$(),e.Y8G("ngIf",!(null!=t.cpPresetColors&&t.cpPresetColors.length)&&t.cpAddColorButton)}}function _D(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",58),e.bIt("click",function(i){e.eBV(t);const s=e.XpG(2);
1return e.Njj(s.onCancelColor(i))}),e.EFF(1),e.k0s()}if(2&n){const t=e.XpG(2);e.HbH(t.cpCancelButtonClass),e.R7$(),e.JRh(t.cpCancelButtonText)}}function vD(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",58),e.bIt("click",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onAcceptColor(i))}),e.EFF(1),e.k0s()}if(2&n){const t=e.XpG(2);e.HbH(t.cpOKButtonClass),e.R7$(),e.JRh(t.cpOKButtonText)}}function xD(n,a){if(1&n&&(e.j41(0,"div",56),e.DNE(1,_D,2,4,"button",57)(2,vD,2,4,"button",57),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.cpCancelButton),e.R7$(),e.Y8G("ngIf",t.cpOKButton)}}function bD(n,a){1&n&&e.eu8(0)}function yD(n,a){if(1&n&&(e.j41(0,"div",59),e.DNE(1,bD,1,0,"ng-container",60),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngTemplateOutlet",t.cpExtraTemplate)}}var qf=function(n){return n[n.HEX=0]="HEX",n[n.RGBA=1]="RGBA",n[n.HSLA=2]="HSLA",n[n.CMYK=3]="CMYK",n}(qf||{});class Sm{r;g;b;a;constructor(a,t,r,i){this.r=a,this.g=t,this.b=r,this.a=i}}class dv{h;s;v;a;constructor(a,t,r,i){this.h=a,this.s=t,this.v=r,this.a=i}}class Mg{h;s;l;a;constructor(a,t,r,i){this.h=a,this.s=t,this.l=r,this.a=i}}class k1{c;m;y;k;a;constructor(a,t,r,i,s=1){this.c=a,this.m=t,this.y=r,this.k=i,this.a=s}}let wD=(()=>{class n{rg;text;newValue=new e.bkB;inputChange(t){const r=t.target.value;if(void 0===this.rg)this.newValue.emit(r);else{const i=parseFloat(r);this.newValue.emit({v:i,rg:this.rg})}}static \u0275fac=function(r){return new(r||n)};static \u0275dir=e.FsC({type:n,selectors:[["","text",""]],hostBindings:function(r,i){1&r&&e.bIt("input",function(p){return i.inputChange(p)})},inputs:{rg:"rg",text:"text"},outputs:{newValue:"newValue"}})}return n})(),FD=(()=>{class n{elRef;listenerMove;listenerStop;rgX;rgY;slider;dragEnd=new e.bkB;dragStart=new e.bkB;newValue=new e.bkB;mouseDown(t){this.start(t)}touchStart(t){this.start(t)}constructor(t){this.elRef=t,this.listenerMove=r=>this.move(r),this.listenerStop=()=>this.stop()}move(t){t.preventDefault(),this.setCursor(t)}start(t){this.setCursor(t),t.stopPropagation(),document.addEventListener("mouseup",this.listenerStop),document.addEventListener("touchend",this.listenerStop),document.addEventListener("mousemove",this.listenerMove),document.addEventListener("touchmove",this.listenerMove),this.dragStart.emit()}stop(){document.removeEventListener("mouseup",this.listenerStop),document.removeEventListener("touchend",this.listenerStop),document.removeEventListener("mousemove",this.listenerMove),document.removeEventListener("touchmove",this.listenerMove),this.dragEnd.emit()}getX(t){const r=this.elRef.nativeElement.getBoundingClientRect();return(void 0!==t.pageX?t.pageX:t.touches[0].pageX)-r.left-window.pageXOffset}getY(t){const r=this.elRef.nativeElement.getBoundingClientRect();return(void 0!==t.pageY?t.pageY:t.touches[0].pageY)-r.top-window.pageYOffset}setCursor(t){const r=this.elRef.nativeElement.offsetWidth,i=this.elRef.nativeElement.offsetHeight,s=Math.max(0,Math.min(this.getX(t),r)),p=Math.max(0,Math.min(this.getY(t),i));void 0!==this.rgX&&void 0!==this.rgY?this.newValue.emit({s:s/r,v:1-p/i,rgX:this.rgX,rgY:this.rgY}):void 0===this.rgX&&void 0!==this.rgY?this.newValue.emit({v:p/i,rgY:this.rgY}):void 0!==this.rgX&&void 0===this.rgY&&this.newValue.emit({v:s/r,rgX:this.rgX})}static \u0275fac=function(r){return new(r||n)(e.rXU(e.aKT))};static \u0275dir=e.FsC({type:n,selectors:[["","slider",""]],hostBindings:function(r,i){1&r&&e.bIt("mousedown",function(p){return i.mouseDown(p)})("touchstart",function(p){return i.touchStart(p)})},inputs:{rgX:"rgX",rgY:"rgY",slider:"slider"},outputs:{dragEnd:"dragEnd",dragStart:"dragStart",newValue:"newValue"}})}return n})();class L4{h;s;v;a;constructor(a,t,r,i){this.h=a,this.s=t,this.v=r,this.a=i}}class N4{h;s;v;a;constructor(a,t,r,i){this.h=a,this.s=t,this.v=r,this.a=i}}let B4=(()=>{class n{active=null;setActive(t){this.active&&this.active!==t&&"inline"!==this.active.cpDialogDisplay&&this.active.closeDialog(),this.active=t}hsva2hsla(t){const r=t.h,i=t.s,s=t.v,p=t.a;if(0===s)return new Mg(r,0,0,p);if(0===i&&1===s)return new Mg(r,1,1,p);{const g=s*(2-i)/2;return new Mg(r,s*i/(1-Math.abs(2*g-1)),g,p)}}hsla2hsva(t){const r=Math.min(t.h,1),i=Math.min(t.s,1),s=Math.min(t.l,1),p=Math.min(t.a,1);if(0===s)return new dv(r,0,0,p);{const g=s+i*(1-Math.abs(2*s-1))/2;return new dv(r,2*(g-s)/g,g,p)}}hsvaToRgba(t){let r,i,s;const p=t.h,g=t.s,S=t.v,R=t.a,L=Math.floor(6*p),ne=6*p-L,re=S*(1-g),fe=S*(1-ne*g),xe=S*(1-(1-ne)*g);switch(L%6){case 0:r=S,i=xe,s=re;break;case 1:r=fe,i=S,s=re;break;case 2:r=re,i=S,s=xe;break;case 3:r=re,i=fe,s=S;break;case 4:r=xe,i=re,s=S;break;case 5:r=S,i=re,s=fe;break;default:r=0,i=0,s=0}return new Sm(r,i,s,R)}cmykToRgb(t){return new Sm((1-t.c)*(1-t.k),(1-t.m)*(1-t.k),(1-t.y)*(1-t.k),t.a)}rgbaToCmyk(t){const r=1-Math.max(t.r,t.g,t.b);return 1===r?new k1(0,0,0,1,t.a):new k1((1-t.r-r)/(1-r),(1-t.g-r)/(1-r),(1-t.b-r)/(1-r),r,t.a)}rgbaToHsva(t){let r,i;const s=Math.min(t.r,1),p=Math.min(t.g,1),g=Math.min(t.b,1),S=Math.min(t.a,1),R=Math.max(s,p,g),L=Math.min(s,p,g),ne=R,re=R-L;if(i=0===R?0:re/R,R===L)r=0;else{switch(R){case s:r=(p-g)/re+(p<g?6:0);break;case p:r=(g-s)/re+2;break;case g:r=(s-p)/re+4;break;default:r=0}r/=6}return new dv(r,i,ne,S)}rgbaToHex(t,r){let i="#"+(16777216|t.r<<16|t.g<<8|t.b).toString(16).substr(1);return r&&(i+=(256|Math.round(255*t.a)).toString(16).substr(1)),i}normalizeCMYK(t){return new k1(t.c/100,t.m/100,t.y/100,t.k/100,t.a)}denormalizeCMYK(t){return new k1(Math.floor(100*t.c),Math.floor(100*t.m),Math.floor(100*t.y),Math.floor(100*t.k),t.a)}denormalizeRGBA(t){return new Sm(Math.round(255*t.r),Math.round(255*t.g),Math.round(255*t.b),t.a)}stringToHsva(t="",r=!1){let i=null;t=(t||"").toLowerCase();const s=[{re:/(rgb)a?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*%?,\s*(\d{1,3})\s*%?(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(p){return new Sm(parseInt(p[2],10)/255,parseInt(p[3],10)/255,parseInt(p[4],10)/255,isNaN(parseFloat(p[5]))?1:parseFloat(p[5]))}},{re:/(hsl)a?\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(p){return new Mg(parseInt(p[2],10)/360,parseInt(p[3],10)/100,parseInt(p[4],10)/100,isNaN(parseFloat(p[5]))?1:parseFloat(p[5]))}}];s.push(r?{re:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})?$/,parse:function(p){return new Sm(parseInt(p[1],16)/255,parseInt(p[2],16)/255,parseInt(p[3],16)/255,parseInt(p[4]||"FF",16)/255)}}:{re:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})$/,parse:function(p){return new Sm(parseInt(p[1],16)/255,parseInt(p[2],16)/255,parseInt(p[3],16)/255,1)}}),s.push({re:/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])$/,parse:function(p){return new Sm(parseInt(p[1]+p[1],16)/255,parseInt(p[2]+p[2],16)/255,parseInt(p[3]+p[3],16)/255,1)}});for(const p in s)if(s.hasOwnProperty(p)){const g=s[p],S=g.re.exec(t),R=S&&g.parse(S);if(R)return R instanceof Sm?i=this.rgbaToHsva(R):R instanceof Mg&&(i=this.hsla2hsva(R)),i}return i}outputFormat(t,r,i){switch("auto"===r&&(r=t.a<1?"rgba":"hex"),r){case"hsla":const s=this.hsva2hsla(t),p=new Mg(Math.round(360*s.h),Math.round(100*s.s),Math.round(100*s.l),Math.round(100*s.a)/100);return t.a<1||"always"===i?"hsla("+p.h+","+p.s+"%,"+p.l+"%,"+p.a+")":"hsl("+p.h+","+p.s+"%,"+p.l+"%)";case"rgba":const g=this.denormalizeRGBA(this.hsvaToRgba(t));return t.a<1||"always"===i?"rgba("+g.r+","+g.g+","+g.b+","+Math.round(100*g.a)/100+")":"rgb("+g.r+","+g.g+","+g.b+")";default:const S="always"===i||"forced"===i;return this.rgbaToHex(this.denormalizeRGBA(this.hsvaToRgba(t)),S)}}static \u0275fac=function(r){return new(r||n)};static \u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const G4=typeof window<"u"&&"ontouchstart"in window;let AD=(()=>{class n{ngZone;elRef;cdRef;document;platformId;service;isIE10=!1;cmyk;hsva;width;height;cmykColor;outputColor;initialColor;fallbackColor;listenerResize;listenerMouseDown;directiveInstance;sliderH;sliderDimMax;directiveElementRef;dialogArrowSize=10;dialogArrowOffset=15;dialogInputFields=[qf.HEX,qf.RGBA,qf.HSLA,qf.CMYK];useRootViewContainer=!1;show;hidden;top;left;position;format;slider;hexText;hexAlpha;cmykText;hslaText;rgbaText;arrowTop;selectedColor;hueSliderColor;alphaSliderColor;cpWidth;cpHeight;cpColorMode;cpCmykEnabled;cpAlphaChannel;cpOutputFormat;cpDisableInput;cpDialogDisplay;cpIgnoredElements;cpSaveClickOutside;cpCloseClickOutside;cpPosition;cpUsePosition;cpPositionOffset;cpOKButton;cpOKButtonText;cpOKButtonClass;cpCancelButton;cpCancelButtonText;cpCancelButtonClass;cpEyeDropper;
1eyeDropperSupported;cpPresetLabel;cpPresetColors;cpPresetColorsClass;cpMaxPresetColorsLength;cpPresetEmptyMessage;cpPresetEmptyMessageClass;cpAddColorButton;cpAddColorButtonText;cpAddColorButtonClass;cpRemoveColorButtonClass;cpArrowPosition;cpTriggerElement;cpExtraTemplate;dialogElement;hueSlider;alphaSlider;handleEsc(t){this.show&&"popup"===this.cpDialogDisplay&&this.onCancelColor(t)}handleEnter(t){this.show&&"popup"===this.cpDialogDisplay&&this.onAcceptColor(t)}constructor(t,r,i,s,p,g){this.ngZone=t,this.elRef=r,this.cdRef=i,this.document=s,this.platformId=p,this.service=g,this.eyeDropperSupported=(0,Fe.UE)(this.platformId)&&"EyeDropper"in this.document.defaultView}ngOnInit(){this.slider=new L4(0,0,0,0),this.sliderDimMax=new N4(this.hueSlider.nativeElement.offsetWidth||140,this.cpWidth,130,this.alphaSlider.nativeElement.offsetWidth||140),this.format=this.cpCmykEnabled?qf.CMYK:"rgba"===this.cpOutputFormat?qf.RGBA:"hsla"===this.cpOutputFormat?qf.HSLA:qf.HEX,this.listenerMouseDown=i=>{this.onMouseDown(i)},this.listenerResize=()=>{this.onResize()},this.openDialog(this.initialColor,!1)}ngOnDestroy(){this.closeDialog()}ngAfterViewInit(){230===this.cpWidth&&"inline"!==this.cpDialogDisplay||(this.sliderDimMax=new N4(this.hueSlider.nativeElement.offsetWidth||140,this.cpWidth,130,this.alphaSlider.nativeElement.offsetWidth||140),this.updateColorPicker(!1),this.cdRef.detectChanges())}openDialog(t,r=!0){this.service.setActive(this),this.width||(this.cpWidth=this.directiveElementRef.nativeElement.offsetWidth),this.height||(this.height=320),this.setInitialColor(t),this.setColorFromString(t,r),this.openColorPicker()}closeDialog(){this.closeColorPicker()}setupDialog(t,r,i,s,p,g,S,R,L,ne,re,fe,xe,ce,be,Je,tt,Ze,en,vn,Kn,Tt,hn,on,ti,ni,cn,Yi,Tr,ar,fa,Ir,ao,pr,sa,Ai,Et,Vn){this.setInitialColor(i),this.setColorMode(R),this.isIE10=10===function kD(){let n="";typeof navigator<"u"&&(n=navigator.userAgent.toLowerCase());const a=n.indexOf("msie ");return a>0&&parseInt(n.substring(a+5,n.indexOf(".",a)),10)}(),this.directiveInstance=t,this.directiveElementRef=r,this.cpDisableInput=fe,this.cpCmykEnabled=L,this.cpAlphaChannel=ne,this.cpOutputFormat=re,this.cpDialogDisplay=g,this.cpIgnoredElements=xe,this.cpSaveClickOutside=ce,this.cpCloseClickOutside=be,this.useRootViewContainer=Je,this.width=this.cpWidth=parseInt(s,10),this.height=this.cpHeight=parseInt(p,10),this.cpPosition=tt,this.cpPositionOffset=parseInt(Ze,10),this.cpOKButton=ni,this.cpOKButtonText=Yi,this.cpOKButtonClass=cn,this.cpCancelButton=Tr,this.cpCancelButtonText=fa,this.cpCancelButtonClass=ar,this.cpEyeDropper=Ai,this.fallbackColor=S||"#fff",this.setPresetConfig(vn,Kn),this.cpPresetColorsClass=Tt,this.cpMaxPresetColorsLength=hn,this.cpPresetEmptyMessage=on,this.cpPresetEmptyMessageClass=ti,this.cpAddColorButton=Ir,this.cpAddColorButtonText=pr,this.cpAddColorButtonClass=ao,this.cpRemoveColorButtonClass=sa,this.cpTriggerElement=Et,this.cpExtraTemplate=Vn,en||(this.dialogArrowOffset=0),"inline"===g&&(this.dialogArrowSize=0,this.dialogArrowOffset=0),"hex"===re&&"always"!==ne&&"forced"!==ne&&(this.cpAlphaChannel="disabled")}setColorMode(t){switch(t.toString().toUpperCase()){case"1":case"C":case"COLOR":default:this.cpColorMode=1;break;case"2":case"G":case"GRAYSCALE":this.cpColorMode=2;break;case"3":case"P":case"PRESETS":this.cpColorMode=3}}setInitialColor(t){this.initialColor=t}setPresetConfig(t,r){this.cpPresetLabel=t,this.cpPresetColors=r}setColorFromString(t,r=!0,i=!0){let s;"always"===this.cpAlphaChannel||"forced"===this.cpAlphaChannel?(s=this.service.stringToHsva(t,!0),!s&&!this.hsva&&(s=this.service.stringToHsva(t,!1))):s=this.service.stringToHsva(t,!1),!s&&!this.hsva&&(s=this.service.stringToHsva(this.fallbackColor,!1)),s&&(this.hsva=s,this.sliderH=this.hsva.h,"hex"===this.cpOutputFormat&&"disabled"===this.cpAlphaChannel&&(this.hsva.a=1),this.updateColorPicker(r,i))}onResize(){"fixed"===this.position?this.setDialogPosition():"inline"!==this.cpDialogDisplay&&this.closeColorPicker()}onDragEnd(t){this.directiveInstance.sliderDragEnd({slider:t,color:this.outputColor})}onDragStart(t){this.directiveInstance.sliderDragStart({slider:t,color:this.outputColor})}onMouseDown(t){this.show&&!this.isIE10&&"popup"===this.cpDialogDisplay&&t.target!==this.directiveElementRef.nativeElement&&!this.isDescendant(this.elRef.nativeElement,t.target)&&!this.isDescendant(this.directiveElementRef.nativeElement,t.target)&&0===this.cpIgnoredElements.filter(r=>r===t.target).length&&this.ngZone.run(()=>{this.cpSaveClickOutside?this.directiveInstance.colorSelected(this.outputColor):(this.hsva=null,this.setColorFromString(this.initialColor,!1),this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor),this.directiveInstance.colorCanceled()),this.cpCloseClickOutside&&this.closeColorPicker()})}onAcceptColor(t){t.stopPropagation(),this.outputColor&&this.directiveInstance.colorSelected(this.outputColor),"popup"===this.cpDialogDisplay&&this.closeColorPicker()}
1onCancelColor(t){this.hsva=null,t.stopPropagation(),this.directiveInstance.colorCanceled(),this.setColorFromString(this.initialColor,!0),"popup"===this.cpDialogDisplay&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor,!0),this.closeColorPicker())}onEyeDropper(){this.eyeDropperSupported&&(new window.EyeDropper).open().then(r=>{this.setColorFromString(r.sRGBHex,!0)})}onFormatToggle(t){const r=this.dialogInputFields.length-(this.cpCmykEnabled?0:1),i=((this.dialogInputFields.indexOf(this.format)+t)%r+r)%r;this.format=this.dialogInputFields[i]}onColorChange(t){this.hsva.s=t.s/t.rgX,this.hsva.v=t.v/t.rgY,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"lightness",value:this.hsva.v,color:this.outputColor}),this.directiveInstance.sliderChanged({slider:"saturation",value:this.hsva.s,color:this.outputColor})}onHueChange(t){this.hsva.h=t.v/t.rgX,this.sliderH=this.hsva.h,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"hue",value:this.hsva.h,color:this.outputColor})}onValueChange(t){this.hsva.v=t.v/t.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"value",value:this.hsva.v,color:this.outputColor})}onAlphaChange(t){this.hsva.a=t.v/t.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"alpha",value:this.hsva.a,color:this.outputColor})}onHexInput(t){if(null===t)this.updateColorPicker();else{t&&"#"!==t[0]&&(t="#"+t);let r=/^#([a-f0-9]{3}|[a-f0-9]{6})$/gi;"always"===this.cpAlphaChannel&&(r=/^#([a-f0-9]{3}|[a-f0-9]{6}|[a-f0-9]{8})$/gi);const i=r.test(t);i&&(t.length<5&&(t="#"+t.substring(1).split("").map(s=>s+s).join("")),"forced"===this.cpAlphaChannel&&(t+=Math.round(255*this.hsva.a).toString(16)),this.setColorFromString(t,!0,!1)),this.directiveInstance.inputChanged({input:"hex",valid:i,value:t,color:this.outputColor})}}onRedInput(t){const r=this.service.hsvaToRgba(this.hsva),i=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;i&&(r.r=t.v/t.rg,this.hsva=this.service.rgbaToHsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"red",valid:i,value:r.r,color:this.outputColor})}onBlueInput(t){const r=this.service.hsvaToRgba(this.hsva),i=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;i&&(r.b=t.v/t.rg,this.hsva=this.service.rgbaToHsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"blue",valid:i,value:r.b,color:this.outputColor})}onGreenInput(t){const r=this.service.hsvaToRgba(this.hsva),i=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;i&&(r.g=t.v/t.rg,this.hsva=this.service.rgbaToHsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"green",valid:i,value:r.g,color:this.outputColor})}onHueInput(t){const r=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;r&&(this.hsva.h=t.v/t.rg,this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"hue",valid:r,value:this.hsva.h,color:this.outputColor})}onValueInput(t){const r=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;r&&(this.hsva.v=t.v/t.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"value",valid:r,value:this.hsva.v,color:this.outputColor})}onAlphaInput(t){const r=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;r&&(this.hsva.a=t.v/t.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"alpha",valid:r,value:this.hsva.a,color:this.outputColor})}onLightnessInput(t){const r=this.service.hsva2hsla(this.hsva),i=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;i&&(r.l=t.v/t.rg,this.hsva=this.service.hsla2hsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"lightness",valid:i,value:r.l,color:this.outputColor})}onSaturationInput(t){const r=this.service.hsva2hsla(this.hsva),i=!isNaN(t.v)&&t.v>=0&&t.v<=t.rg;i&&(r.s=t.v/t.rg,this.hsva=this.service.hsla2hsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"saturation",valid:i,value:r.s,color:this.outputColor})}onCyanInput(t){!isNaN(t.v)&&t.v>=0&&t.v<=t.rg&&(this.cmyk.c=t.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"cyan",valid:!0,value:this.cmyk.c,color:this.outputColor})}onMagentaInput(t){!isNaN(t.v)&&t.v>=0&&t.v<=t.rg&&(this.cmyk.m=t.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"magenta",valid:!0,value:this.cmyk.m,color:this.outputColor})}onYellowInput(t){!isNaN(t.v)&&t.v>=0&&t.v<=t.rg&&(this.cmyk.y=t.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"yellow",valid:!0,value:this.cmyk.y,color:this.outputColor})}onBlackInput(t){!isNaN(t.v)&&t.v>=0&&t.v<=t.rg&&(this.cmyk.k=t.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"black",valid:!0,value:this.cmyk.k,color:this.outputColor})}onAddPresetColor(t,r){t.stopPropagation(),this.cpPresetColors.filter(i=>i===r).length||(this.cpPresetColors=this.cpPresetColors.concat(r),this.directiveInstance.presetColorsChanged(this.cpPresetColors))}onRemovePresetColor(t,r){t.stopPropagation(),this.cpPresetColors=this.cpPresetColors.filter(i=>i!==r),this.directiveInstance.presetColorsChanged(this.cpPresetColors)}openColorPicker(){this.show||(this.show=!0,this.hidden=!0,setTimeout(()=>{this.hidden=!1,this.setDialogPosition(),this.cdRef.detectChanges()},0),this.directiveInstance.stateChanged(!0),this.isIE10||this.ngZone.runOutsideAngular(()=>{G4?document.addEventListener("touchstart",this.listenerMouseDown):document.addEventListener("mousedown",this.listenerMouseDown)}),window.addEventListener("resize",this.listenerResize))}closeColorPicker(){this.show&&(this.show=!1,this.directiveInstance.stateChanged(!1),this.isIE10||(G4?document.removeEventListener("touchstart",this.listenerMouseDown):document.removeEventListener("mousedown",this.listenerMouseDown)),window.removeEventListener("resize",this.listenerResize),this.cdRef.destroyed||this.cdRef.detectChanges())}updateColorPicker(t=!0,r=!0,i=!1){if(this.sliderDimMax){let s,p,g;2===this.cpColorMode&&(this.hsva.s=0);const S=this.outputColor;if(p=this.service.hsva2hsla(this.hsva),this.cpCmykEnabled?(i?(g=this.service.cmykToRgb(this.service.n
1ormalizeCMYK(this.cmyk)),this.hsva=this.service.rgbaToHsva(g)):(g=this.service.hsvaToRgba(this.hsva),this.cmyk=this.service.denormalizeCMYK(this.service.rgbaToCmyk(g))),g=this.service.denormalizeRGBA(g),this.sliderH=this.hsva.h):g=this.service.denormalizeRGBA(this.service.hsvaToRgba(this.hsva)),s=this.service.denormalizeRGBA(this.service.hsvaToRgba(new dv(this.sliderH||this.hsva.h,1,1,1))),r&&(this.hslaText=new Mg(Math.round(360*p.h),Math.round(100*p.s),Math.round(100*p.l),Math.round(100*p.a)/100),this.rgbaText=new Sm(g.r,g.g,g.b,Math.round(100*g.a)/100),this.cpCmykEnabled&&(this.cmykText=new k1(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k,Math.round(100*this.cmyk.a)/100)),this.hexText=this.service.rgbaToHex(g,"always"===this.cpAlphaChannel),this.hexAlpha=this.rgbaText.a),"auto"===this.cpOutputFormat&&this.format!==qf.RGBA&&this.format!==qf.CMYK&&this.format!==qf.HSLA&&this.hsva.a<1&&(this.format=this.hsva.a<1?qf.RGBA:qf.HEX),this.hueSliderColor="rgb("+s.r+","+s.g+","+s.b+")",this.alphaSliderColor="rgb("+g.r+","+g.g+","+g.b+")",this.outputColor=this.service.outputFormat(this.hsva,this.cpOutputFormat,this.cpAlphaChannel),this.selectedColor=this.service.outputFormat(this.hsva,"rgba",null),this.format!==qf.CMYK)this.cmykColor="";else if("always"===this.cpAlphaChannel||"enabled"===this.cpAlphaChannel||"forced"===this.cpAlphaChannel){const R=Math.round(100*this.cmyk.a)/100;this.cmykColor=`cmyka(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k},${R})`}else this.cmykColor=`cmyk(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k})`;this.slider=new L4((this.sliderH||this.hsva.h)*this.sliderDimMax.h-8,this.hsva.s*this.sliderDimMax.s-8,(1-this.hsva.v)*this.sliderDimMax.v-8,this.hsva.a*this.sliderDimMax.a-8),t&&S!==this.outputColor&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.outputColor))}}setDialogPosition(){if("inline"===this.cpDialogDisplay)this.position="relative";else{let i,t="static",r="",s=null,p=null,g=this.directiveElementRef.nativeElement.parentNode;const S=this.dialogElement.nativeElement.offsetHeight;for(;null!==g&&"HTML"!==g.tagName;){if(i=window.getComputedStyle(g),t=i.getPropertyValue("position"),r=i.getPropertyValue("transform"),"static"!==t&&null===s&&(s=g),r&&"none"!==r&&null===p&&(p=g),"fixed"===t){s=p;break}g=g.parentNode}const R=this.createDialogBox(this.directiveElementRef.nativeElement,"fixed"!==t);if(this.useRootViewContainer||"fixed"===t&&(!s||s instanceof HTMLUnknownElement))this.top=R.top,this.left=R.left;else{null===s&&(s=g);const Je=this.createDialogBox(s,"fixed"!==t);this.top=R.top-Je.top,this.left=R.left-Je.left}"fixed"===t&&(this.position="fixed");let L=this.cpPosition;const ne=this.dialogElement.nativeElement.getBoundingClientRect();switch("auto"===this.cpPosition&&(L=function CD(n,a){let t="right",r="bottom";const{height:i,width:s}=n,{top:p,left:g}=a,S=p+a.height,R=g+a.width,L=p-i<0,ne=S+i>(window.innerHeight||document.documentElement.clientHeight),re=g-s<0,fe=R+s>(window.innerWidth||document.documentElement.clientWidth);return ne&&(r="top"),L&&(r="bottom"),re&&(t="right"),fe&&(t="left"),L&&ne&&re&&fe?["left","right","top","bottom"].reduce((be,Je)=>n[be]>n[Je]?be:Je):re&&fe?L?"bottom":ne||p>S?"top":"bottom":L&&ne?re?"right":fe||g>R?"left":"right":`${r}-${t}`}(ne,this.cpTriggerElement.nativeElement.getBoundingClientRect())),this.arrowTop="top"===L?S-1:void 0,this.cpArrowPosition=void 0,L){case"top":this.top-=S+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*R.width-this.dialogArrowOffset;break;case"bottom":this.top+=R.height+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*R.width-this.dialogArrowOffset;break;case"top-left":case"left-top":this.top-=S-R.height+R.height*this.cpPositionOffset/100,this.left-=this.cpWidth+this.dialogArrowSize-2-this.dialogArrowOffset;break;case"top-right":case"right-top":this.top-=S-R.height+R.height*this.cpPositionOffset/100,this.left+=R.width+this.dialogArrowSize-2-this.dialogArrowOffset;break;case"left":case"bottom-left":case"left-bottom":this.top+=R.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left-=this.cpWidth+this.dialogArrowSize-2;break;default:this.top+=R.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left+=R.width+this.dialogArrowSize-2}const re=window.innerHeight,fe=window.innerWidth,xe=this.elRef.nativeElement.getBoundingClientRect();this.top+ne.height>
1re&&(this.top=re-ne.height,this.cpArrowPosition=xe.x/2-20),this.left+ne.width>fe&&(this.left=fe-ne.width,this.cpArrowPosition=xe.x/2-20),this.cpUsePosition=L}}isDescendant(t,r){let i=r.parentNode;for(;null!==i;){if(i===t)return!0;i=i.parentNode}return!1}createDialogBox(t,r){const{top:i,left:s}=t.getBoundingClientRect();return{top:i+(r?window.pageYOffset:0),left:s+(r?window.pageXOffset:0),width:t.offsetWidth,height:t.offsetHeight}}static \u0275fac=function(r){return new(r||n)(e.rXU(e.SKi),e.rXU(e.aKT),e.rXU(e.gRc),e.rXU(Fe.qQ),e.rXU(e.Agw),e.rXU(B4))};static \u0275cmp=e.VBU({type:n,selectors:[["color-picker"]],viewQuery:function(r,i){if(1&r&&(e.GBs(UO,7),e.GBs(YO,7),e.GBs(WO,7)),2&r){let s;e.mGM(s=e.lsd())&&(i.dialogElement=s.first),e.mGM(s=e.lsd())&&(i.hueSlider=s.first),e.mGM(s=e.lsd())&&(i.alphaSlider=s.first)}},hostBindings:function(r,i){1&r&&e.bIt("keyup.esc",function(p){return i.handleEsc(p)},!1,e.EBC)("keyup.enter",function(p){return i.handleEnter(p)},!1,e.EBC)},decls:30,vars:51,consts:[["dialogPopup",""],["hueSlider",""],["valueSlider",""],["alphaSlider",""],[1,"color-picker",3,"click"],[3,"left","class","top",4,"ngIf"],["class","saturation-lightness",3,"slider","rgX","rgY","background-color","newValue","dragStart","dragEnd",4,"ngIf"],[1,"hue-alpha","box"],[1,"left"],[1,"selected-color-background"],[1,"selected-color",3,"click"],["class","eyedropper-icon","xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",4,"ngIf"],["type","button",3,"class","disabled","click",4,"ngIf"],[1,"right"],["style","height: 16px;",4,"ngIf"],[1,"hue",3,"newValue","dragStart","dragEnd","slider","rgX"],[1,"cursor"],[1,"value",3,"newValue","dragStart","dragEnd","slider","rgX"],[1,"alpha",3,"newValue","dragStart","dragEnd","slider","rgX"],["class","cmyk-text",3,"display",4,"ngIf"],["class","hsla-text",3,"display",4,"ngIf"],["class","rgba-text",3,"display",4,"ngIf"],["class","hex-text",3,"hex-alpha","display",4,"ngIf"],["class","value-text",4,"ngIf"],["class","type-policy",4,"ngIf"],["class","preset-area",4,"ngIf"],["class","button-area",4,"ngIf"],["class","extra-template",4,"ngIf"],[1,"saturation-lightness",3,"newValue","dragStart","dragEnd","slider","rgX","rgY"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",1,"eyedropper-icon"],["d","M0 0h24v24H0V0z","fill","none"],["d","M17.66 5.41l.92.92-2.69 2.69-.92-.92 2.69-2.69M17.67 3c-.26 0-.51.1-.71.29l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42l-2.34-2.34c-.2-.19-.45-.29-.7-.29zM6.92 19L5 17.08l8.06-8.06 1.92 1.92L6.92 19z"],["type","button",3,"click","disabled"],[2,"height","16px"],[1,"cmyk-text"],[1,"box"],["type","number","pattern","[0-9]*","min","0","max","100",3,"keyup.enter","newValue","text","rg","value"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"text","rg","value","keyup.enter","newValue",4,"ngIf"],[4,"ngIf"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"keyup.enter","newValue","text","rg","value"],[1,"hsla-text"],["type","number","pattern","[0-9]*","min","0","max","360",3,"keyup.enter","newValue","text","rg","value"],[1,"rgba-text"],["type","number","pattern","[0-9]*","min","0","max","255",3,"keyup.enter","newValue","text","rg","value"],[1,"hex-text"],[3,"blur","keyup.enter","newValue","text","value"],[1,"value-text"],[1,"type-policy"],[1,"type-policy-arrow",3,"click"],[1,"preset-area"],[1,"preset-label"],[3,"class",4,"ngIf"],["class","preset-color",3,"backgroundColor","click",4,"ngFor","ngForOf"],[1,"preset-color",3,"click"],[3,"class","click",4,"ngIf"],[3,"click"],[1,"button-area"],["type","button",3,"class","click",4,"ngIf"],["type","button",3,"click"],[1,"extra-template"],[4,"ngTemplateOutlet"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",4,0),e.bIt("click",function(g){return e.eBV(s),e.Njj(g.stopPropagation())}),e.DNE(2,$O,1,7,"div",5)(3,qO,2,8,"div",6),e.j41(4,"div",7)(5,"div",8),e.nrm(6,"div",9),e.j41(7,"div",10),e.bIt("click",function(){return e.eBV(s),e.Njj(i.eyeDropperSupp
1orted&&i.cpEyeDropper&&i.onEyeDropper())}),e.DNE(8,XO,3,0,"svg",11),e.k0s(),e.DNE(9,HO,2,5,"button",12),e.k0s(),e.j41(10,"div",13),e.DNE(11,KO,1,0,"div",14),e.j41(12,"div",15,1),e.bIt("newValue",function(g){return e.eBV(s),e.Njj(i.onHueChange(g))})("dragStart",function(){return e.eBV(s),e.Njj(i.onDragStart("hue"))})("dragEnd",function(){return e.eBV(s),e.Njj(i.onDragEnd("hue"))}),e.nrm(14,"div",16),e.k0s(),e.j41(15,"div",17,2),e.bIt("newValue",function(g){return e.eBV(s),e.Njj(i.onValueChange(g))})("dragStart",function(){return e.eBV(s),e.Njj(i.onDragStart("value"))})("dragEnd",function(){return e.eBV(s),e.Njj(i.onDragEnd("value"))}),e.nrm(17,"div",16),e.k0s(),e.j41(18,"div",18,3),e.bIt("newValue",function(g){return e.eBV(s),e.Njj(i.onAlphaChange(g))})("dragStart",function(){return e.eBV(s),e.Njj(i.onDragStart("alpha"))})("dragEnd",function(){return e.eBV(s),e.Njj(i.onDragEnd("alpha"))}),e.nrm(20,"div",16),e.k0s()()(),e.DNE(21,QO,17,12,"div",19)(22,nD,14,10,"div",20)(23,aD,14,10,"div",21)(24,lD,8,7,"div",22)(25,dD,9,3,"div",23)(26,uD,3,0,"div",24)(27,gD,6,3,"div",25)(28,xD,3,2,"div",26)(29,yD,2,1,"div",27),e.k0s()}2&r&&(e.xc7("display",i.show?"block":"none")("visibility",i.hidden?"hidden":"visible")("top",i.top,"px")("left",i.left,"px")("position",i.position)("height",i.cpHeight,"px")("width",i.cpWidth,"px"),e.AVh("open",i.show),e.R7$(2),e.Y8G("ngIf","popup"===i.cpDialogDisplay),e.R7$(),e.Y8G("ngIf",1===(i.cpColorMode||1)),e.R7$(4),e.xc7("background-color",i.selectedColor)("cursor",i.eyeDropperSupported&&i.cpEyeDropper?"pointer":null),e.R7$(),e.Y8G("ngIf",i.eyeDropperSupported&&i.cpEyeDropper),e.R7$(),e.Y8G("ngIf",i.cpAddColorButton),e.R7$(2),e.Y8G("ngIf","disabled"===i.cpAlphaChannel),e.R7$(),e.xc7("display",1===(i.cpColorMode||1)?"block":"none"),e.Y8G("rgX",1),e.R7$(2),e.xc7("left",null==i.slider?null:i.slider.h,"px"),e.R7$(),e.xc7("display",2===(i.cpColorMode||1)?"block":"none"),e.Y8G("rgX",1),e.R7$(2),e.xc7("right",null==i.slider?null:i.slider.v,"px"),e.R7$(),e.xc7("display","disabled"===i.cpAlphaChannel?"none":"block")("background-color",i.alphaSliderColor),e.Y8G("rgX",1),e.R7$(2),e.xc7("left",null==i.slider?null:i.slider.a,"px"),e.R7$(),e.Y8G("ngIf",!i.cpDisableInput&&1===(i.cpColorMode||1)),e.R7$(),e.Y8G("ngIf",!i.cpDisableInput&&1===(i.cpColorMode||1)),e.R7$(),e.Y8G("ngIf",!i.cpDisableInput&&1===(i.cpColorMode||1)),e.R7$(),e.Y8G("ngIf",!i.cpDisableInput&&1===(i.cpColorMode||1)),e.R7$(),e.Y8G("ngIf",!i.cpDisableInput&&2===(i.cpColorMode||1)),e.R7$(),e.Y8G("ngIf",!i.cpDisableInput&&1===(i.cpColorMode||1)),e.R7$(),e.Y8G("ngIf",(null==i.cpPresetColors?null:i.cpPresetColors.length)||i.cpAddColorButton),e.R7$(),e.Y8G("ngIf",i.cpOKButton||i.cpCancelButton),e.R7$(),e.Y8G("ngIf",i.cpExtraTemplate))},dependencies:[Fe.Sq,Fe.bT,Fe.T3,wD,FD],styles:['.color-picker{position:absolute;z-index:1000;width:230px;height:auto;border:#777 solid 1px;cursor:default;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fff}.color-picker *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:0;font-size:11px}.color-picker input{width:0;height:26px;min-width:0;font-size:13px;text-align:center;color:#000}.color-picker input:invalid,.color-picker input:-moz-ui-invalid,.color-picker input:-moz-submit-invalid{box-shadow:none}.color-picker input::-webkit-inner-spin-button,.color-picker input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.color-picker .arrow{position:absolute;z-index:999999;width:0;height:0;border-style:solid}.color-picker .arrow.arrow-top{left:8px;border-width:10px 5px;border-color:#777 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .arrow.arrow-bottom{top:-20px;left:8px;border-width:10px 5px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #777 rgba(0,0,0,0)}.color-picker .arrow.arrow-top-left,.color-picker .arrow.arrow-left-top{right:-21px;bottom:8px;border-width:5px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #777}.color-picker .arrow.arrow-top-right,.color-picker .arrow.arrow-right-top{bottom:8px;left:-20px;border-width:5px 10px;border-color:rgba(0,0,0,0) #777 rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .arrow.arrow-left,.color-picker .arrow.arrow-left-bottom,.color-picker .arrow.arrow-bottom-left{top:8px;right:-21px;border-width:5px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #777}.color-picker .arrow.arrow-right,.color-picker .arrow.arrow-right-bottom,.color-picker .arrow.arrow-bottom-right{top:8px;left:-20px;border-width:5px 10px;border-color:rgba(0,0,0,0) #777 rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .cursor{position:relative;width:16px;height:16px;border:#222 solid 2px;border-radius:50%;cursor:default}.color-picker .box{display:flex;padding:4px 8px}.color-picker .left{position:relative;padding:16px 8px}.color-picker .right{-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;padding:12px 8px}.color-picker .button-area{padding:0 16px 16px;text-align:right}.color-picker .button-area button{margin-left:8px}.color-picker .preset-area{padding:4px 15px}.color-picker .preset-area .preset-label{overflow:hidden;width:100%;padding:4px;font-size:11px;white-space:nowrap;text-align:left;text-overflow:ellipsis;color:#555}.color-picker .preset-area .preset-color{position:relative;display:inline-block;width:18px;height:18px;margin:4px 6px 8px;border:#a9a9a9 solid 1px;border-radius:25%;cursor:pointer}.color-picker .preset-area .preset-empty-message{min-height:18px;margin-top:4px;margin-bottom:8px;font-style:italic;text-align:center}.color-picker .hex-text{width:100%;padding:4px 8px;font-size:11px}.color-picker .hex-text .box{padding:0 24px 8px 8px}.color-picker .hex-text .box div{float:left;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;text-align:center;color:#555;clear:left}.color-picker .hex-text .box input{-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;padding:1px;border:#a9a9a9 solid 1px}.color-picker .hex-alpha .box div:first-child,.color-picker .hex-alpha .box input:first-child{flex-grow:3;margin-right:8px}.color-picker .cmyk-text,.color-picker .hsla-text,.color-picker .rgba-text,.color-picker .value-text{width:100%;padding:4px 8px;font-size:11px}.color-picker .cmyk-text .box,.color-picker .hsla-text .box,.color-picker .rgba-text .box{padding:0 24px 8px 8px}.color-picker .value-text .box{padding:0 8px 8px}.color-picker .cmyk-text .box div,.color-picker .hsla-text .box div,.color-picker .rgba-text .box div,.color-picker .value-text .box div{-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;margin-right:8px;text-align:center;color:#555}.color-picker .cmyk-text .box div:last-child,.color-picker .hsla-text .box div:last-child,.color-picker .rgba-text .box div:last-child,.color-picker .value-text .box div:last-child{margin-right:0}.color-picker .cmyk-text .box input,.color-picker .hsla-text .box input,.color-picker .rgba-text .box input,.color-picker .value-text .box input{float:left;-webkit-flex:1;-ms-flex:1;flex:1;padding:1px;margin:0 8px 0 0;border:#a9a9a9 solid 1px}.color-picker .cmyk-text .box input:last-child,.color-picker .hsla-text .box input:last-child,.color-picker .rgba-text .box input:last-child,.color-picker .value-text .box input:last-child{margin-right:0}.color-picker .hue-alpha{align-items:center;margin-bottom:3px}.color-picker .hue{direction:ltr;width:100%;height:16px;margin-bottom:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAA
1CXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC)}.color-picker .value{direction:rtl;width:100%;height:16px;margin-bottom:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAACTklEQVR42u3SYUcrABhA4U2SkmRJMmWSJklKJiWZZpKUJJskKUmaTFImKZOUzMySpGRmliRNJilJSpKSJEtmSpIpmWmSdO736/6D+x7OP3gUCoWCv1cqlSQlJZGcnExKSgqpqamkpaWRnp5ORkYGmZmZqFQqsrKyyM7OJicnh9zcXNRqNXl5eeTn56PRaCgoKKCwsJCioiK0Wi3FxcWUlJRQWlpKWVkZ5eXlVFRUUFlZiU6no6qqiurqampqaqitraWurg69Xk99fT0GgwGj0UhDQwONjY00NTXR3NxMS0sLra2ttLW10d7ejslkwmw209HRQWdnJ11dXXR3d9PT00Nvby99fX309/czMDDA4OAgFouFoaEhrFYrw8PDjIyMMDo6ytjYGDabjfHxcSYmJpicnGRqagq73c709DQzMzPMzs4yNzfH/Pw8DocDp9OJy+XC7XazsLDA4uIiS0tLLC8vs7KywurqKmtra3g8HrxeLz6fD7/fz/r6OhsbG2xubrK1tcX29jaBQICdnR2CwSC7u7vs7e2xv7/PwcEBh4eHHB0dcXx8zMnJCaenp5ydnXF+fs7FxQWXl5dcXV1xfX3Nzc0Nt7e33N3dEQqFuL+/5+HhgXA4TCQS4fHxkaenJ56fn3l5eeH19ZVoNMrb2xvv7+98fHwQi8WIx+N8fn6SSCT4+vri+/ubn58ffn9/+VcKgSWwBJbAElgCS2AJLIElsASWwBJYAktgCSyBJbAElsASWAJLYAksgSWwBJbAElgCS2AJLIElsP4/WH8AmJ5Z6jHS4h8AAAAASUVORK5CYII=)}.color-picker .alpha{direction:ltr;width:100%;height:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwYQlZMa3gAAAWVJREFUaN7tmEGO6jAQRCsOArHgBpyAJYGjcGocxAm4A2IHpmoWE0eBH+ezmFlNvU06shJ3W6VEelWMUQAIIF9f6qZpimsA1LYtS2uF51/u27YVAFZVRUkEoGHdPV/sIcbIEIIkUdI/9Xa7neyv61+SWFUVAVCSct00TWn2fv6u3+Ecfd3tXzy/0+nEUu+SPjo/kqzrmiQpScN6v98XewfA8/lMkiLJ2WxGSUopcT6fM6U0NX9/frfbjev1WtfrlZfLhYfDQQHG/AIOlnGwjINlHCxjHCzjYJm/TJWdCwquJXseFFzGwDNNeiKMOJTO8xQdDQaeB29+K9efeLaBo9J7vdvtJj1RjFFjfiv7qv95tjx/7leSQgh93e1ffMeIp6O+YQjho/N791t1XVOSSI7N//K+4/GoxWLBx+PB5/Op5XLJ+/3OlJJWqxU3m83ovv5iGf8KjYNlHCxjHCzjYBkHy5gf5gusvQU7U37jTAAAAABJRU5ErkJggg==)}.color-picker .type-policy{position:absolute;top:218px;right:12px;width:16px;height:24px;background-size:8px 16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:center}.color-picker .type-policy .type-policy-arrow{display:block;width:100%;height:50%}.color-picker .selected-color{position:absolute;top:16px;left:8px;width:40px;height:40px;border:1px solid #a9a9a9;border-radius:50%}.color-picker .selected-color-background{width:40px;height:40px;border-radius:50%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC)}.color-picker .saturation-lightness{direction:ltr;width:100%;height:130px;border:none;cursor:pointer;touch-action:manipulation;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACCCAYAAABSD7T3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwksPWR6lgAAIABJREFUeNrtnVuT47gRrAHN+P//Or/61Y5wONZ7mZ1u3XAeLMjJZGZVgdKsfc5xR3S0RIIUW+CHzCpc2McYo7XGv3ex7UiZd57rjyzzv+v+33X/R/+3r/f7vR386Y+TvKNcf/wdhTLPcv9qU2wZd74uth0t1821jkIZLPcsI/6nWa4XvutquU0Z85mnx80S/ZzgpnLnOtHNt7/ofx1TKXcSNzN/7qbMQ3ju7rNQmMYYd/4s2j9aa+P+gGaMcZrb1M/tdrvf7/d2v99P9/t93O/3cbvdxu12G9frdVwul3E+n8c///nP+2+//Xb66aefxl//+tfx5z//2YK5Al2rgvf4UsbpdGrB52bAvArXpuzjmiqAVSGz5eDmGYXzhbAZmCrnmzddpUU+8Y1dAOYeXCtDUwVwV7YCGH6uAmyMcZ9l5vkUaBPGMUZ7/J5w/792/fvv9Xq93263dr/fTxPECeME8nK5jM/Pz/
1HTTz/dv337dvrll1/GP/7xj/G3v/1t/OUvfwkVswongjdOp9PzH3U3D3zmWGnZVXn4jCqs7wC2BKP4/8tAzkZsoWx6XrqeHZymvp4ABCBJhTQwKfDT8gzrZCIqi5AhiACjBfEB2rP8/X63MM7f6/V6v9/v7Xa7bYC83W7jcrlsVHIq5ffv30+//fbb+OWXX8ZPP/00/v73v4+ff/75JSvbeu+bL2WMMaFbAlpBNM85QX+ct6qoSqkPAwuQlBVKqGNFSUOAA3Bmu7gC5hNOd15nSwvAOUW7C4giUCV8Sgn5L9hNFIqTsp0GxI0ysioyjAjkY/tGJVEpz+fz+OWXX+7fv38//f777+Pbt2/j119/HT///PP49ddfx8fHRwrmTjV779EXu2px2xhjwtdJZQcAWQIPLPISsMJaSwiD8gzIKrwSyATE5j5nAbR5c1dBUwBlsEWW0h6LqiYsqFPAQxCyRZ3wOSARxmlXMX5k64pQfvv27f75+dk+Pj5OHx8f4/v37+Pbt2/jt99+G9++fRsfHx/jcrmUFLO31gYDWblxRIs/TqfT7ousxJsAxXA2Gc7TA9XdgfdoHbFsj76X2+1WArgI1ageGwA3qupqoHsmcbI6Fu93quggFa9d7LeDtgKfAFHBJ+NEByIkcJ5KervdTmhhGcgJJSZ5vn//fj+fz+18Pp8+Pz/H5+fnmGD+/vvv4/v37+Pj42N8fn6O2+1Ws7JjjP6wraMI5E4RZ8x2vV5TSwkquotV7/d7Tz6HFWsD/qNcdw0CQ3q/321c686TwDVIdbuy73zNldhSHb8I2klZznm+InBS4U6n0302aBFsLhHDAKJVJVglfI9jhvu53W53sLANYNxAiDA6MCeUHx8f9+v12i6XS7tcLqcZW57P5yeY8/fz83Ocz+fnsSmYUyknWEG85WBst9stzSLyMdfr9Qi08iY15UZ0LlDGLhR3o5zK2j7OPUTD0E+nU3tk7Xb/16NFbhloAMuY1zjLUOO3BKeIDe+Z8s3/J4gFo4TM5jPmuRg28foUKKVSwo16TgA5npywcWLHgYl/Pz8/73/605/ab7/91m63W7tcLie0sZj4mao5gTyfz88E0f1+j8EcYzwTPEG2cqjyfHNF0M8fuqEiaOVnRzZZQNh5fwQyHg/HDGfJo89Q1zb/quu5XC6773I2XKfTqd/v9+d3wuqWva/YTdUdEV3fhIv/Viyps6YE3x3r43K5bJQS66zaxVGFsvd+//j4aF+/fm3fv39vt9utff36tf3+++/tdrudvn37ZuNLBaaCMgUzC+rZRiFowxUuJI8YMqcCp9Opq5vagaYU6lGJA1XQqejchw6Cj0Gw5nYBrGw01A2O206n04BGouNNyTfp/FwElhUey6nXrIKw7QQWddxuN2ldL5fL839gSPF8ahu/JvBO48CPSuqMf8Vp9/P53L58+dLu93s7n8/tfr8/39/v9/b5+TkhPJ3P56mQ436/j+/fv+/iSgbzer0+AZx/5+88bv6OMda6S5z6kd21fYC9dxv7cIJJ2d9AOS30fPMzyHiTM8B4DF6XUlYHp4KQW3W+1t77MNB1vGHxWq7Xa7vf78+y5/N5A+H1et29xuP5dbYtyaRu4AksbPq6936fjRzXRxBbPr/b+b18+fKljTHaBBBfn8/n0/1+H1++fBnn8zm0sB8fH5u4cr5GuBhMVk0EEn9RsctgVhM+ixlJtMA23R8B6yysAstBOgFXIKKCMIgToMqNEu2fYMH7ztc732dQKkCj1ytAZtY0Kx8pIr8GGJ+AT3V+2Hirhl++fBmXy2Wz73w+b17P8p+fn8/tUwGVleVkTyUb68DkfayWY4zxNRihU4EpLJPZVrK+u7J4/mgfKqeLW9X2REWlItL1diynbDDb3+jXgYjQqn0rrxWc+NkILP7F7xIbMvx7vV53x40xnlbWJF12ZSag/N0pW6t+ZzmOMzHjajKwDfond78zYTdfq18up97zr2q8v3IioBprRtBl0EZ9og5WBRGOdOHjIjXF7UotFbgOWnXzIJyzYvjG5IYgsmMOxHkz8OsMSrVNWeq5T8DaOcbEv1Od
15rbs9aO7YvMet63EkF++fMExq+MRl4/L5bLZN/+ez+fnZ6KazuMqXSQVO5spJXflHAIzes/xJseckRJiDMog9d6VfRrqXMr6KpVV27jRwJacGovOAM1zMdQMnwK1AubK63kdCChvI1C7g0z9nf/D+Xze2Vj8H7Gx4P9duQlsYCrqyN8XqG3Hm/10Oj3jw/n+crlstuM+jPmmxT2dTuPz83Pzt2pn1XsEHX/bnPaVqVmh0xwOt0o6XLLAHePUU203wHfcrspCwmV3TryB5s0Mseeg97x/BwzCjBlbB+pRAPla0BVQuT6V6QHdBlj3d0KG147b+DqxQeUymDO43W4dQar+TIjwmAd0z8/h65vf0/yLv3Pb5XLpru/ydDo9s7ET0I+Pj6dKK9VUEIeKWQWPAOrJ8LKd4vE+t91Y3e7UFlWatg2VwJnb+HPmtvm/sfK59/OaWF3x/eP1UPHvA5DDYDpYXfb0drv1V2DkBkxtw/tEWVVlXWdC9pFYs5/jfh9dS/16vW7s6lTG+TfqsxSJHxkXXq/Xdr1eu4LsfD6P3vsT3N77DkL+zPm5jSdKL4zR3AxQd6rHkLkYlSowsrq7znzu6wSwdsMJOXmA5fBcjxtgMGBYHlr5zokhtsMCTgXLQOW4XC6dEyEMprL8mAQzXRgduix2yZzorxkYsDn3hB1VeMLGsXsVtgl2pW8S3svk0vw7R4hNaHvv4cACl5HFzwIH0Kc6zu4XjDPR/jpAVxWzO1Xk2DDb3vTcxeGU1iWZHkmIDWziWKvirCJ4Dravs6IJ/GG6cTqWdXDy+fArQDVVkLqkVjAoZIITdmmIqXwqa95N3+MGYoZQdRVNO53Y1xRkhO16vY7eu507Ca9lJnbGpxOemQhSw/AQsmmp5zU9BiU8G6wvX76M6/U6Pj4+do0Bz4CpgiknTUeDqwlKBmg3u4OVjrZ1A+rAcgaejWq6eJCvCYFDONSwOgHX4EQRw8lxbzDOdEK6gZ3Hk1b+8g2o1JFtKXyv/fEdTXuWjWXdAZiBp6ADeDrCFiim7B6ZFneeI7Gvm/PMkUDX67W7xI8b0D7/v8dA9qfN5oaCf74WZjH0mf1cmfY1Y0JUFmVrTWu8uzkNcLtEj7u5FXBTkfC6GOA5q8YMxO8KVvF6sAVGdcrUbsKODcQKkLMOMdmlxum642YrPm26AlhZW1YB1R+rrGswE8TaYAWeUMxdf+WjwSvZ2Ef3ytOyfn5+PpVPAaqOn43MtNBqvmjjxbjM4lZjZY4gqNMI5ktaW/sYKNwS+9lFQzGihmMCKPa7+Z0V6Eb0GRmobtpX8JljWu5FMLN5ja6hG9kwQgZqf5+1NH5UxzkFReCdWhJ8XdlGUkxO7HRlYRm4mVO43W7ter12TPJEw/rmEN3L5SKHIWZg9mz+pUoKOYq5bJTJdX2gme1UcxMZQFaEQIlHct32M+Y1BzGkGuzfiyAN9z+ugplZ1symCrDCYYkGxDTpI9RzBy0rHyeDUC1nWaeUaD9n4xkNyYMBDZtzZ3B++fJlY21XFDOcARJlabOyiS3uCpLI9jrZjCDkaVvcCCjwognKShWdzXZWlZMvVTgD8LpqlCLrqgbcB+qYwrgKYpT0ccCqbKyCValkEabn/FynogCrPKfqf51xJ7sGB2ZXcZmxoSOztjx300DZi7a0/2AIR0UlBag9SuDw6KcAzlaB7vHZvWpjK90dyrq6bKyDUZQbR0B05biLQkHIcSUmgIK+SwuqgHCnoio2RQU1yj+BnBy9pphVKLGyC7ZzFK1pxWK+E8IhVCWLN/uLtnUU4ayoYLoaANz8FdtaSvY4pV0BEW2ls61czqllBKpTyKgMAhrZ1cdc1RROtPmvWNkdcKZ7ZKxaWjiPLJMpp7OZKxA+rqG/oJLjxf0pnJlqLoDZo3gyU0mKGys2taKecj/d1C+rJSplBqlTyAqgR+D8KjKlmRL2gtUcAdCtsL+ijCNT1oqqqkH2OHEbG5sDFnUg5Aa+yLou2VU1ptj1S2ZQqv1ORZN9IWzRfgaRBxKoBE8UWyqlJFtrIc0AxNjSjed99CTY/XDfSzCz5M0IZoVEsWnPFNTsl8ooVC1TzbGgqFZNDSgVwKK+1sGDMKqxZCWGVMDysiEr1jVSQJUYwj5iHOlThdHt44SQg9CN+nl8D90NMIgAdgr46JqRiR9I8vRdFvbr17m/yxUMKjNLMiVUADwu2CWGhhi+F55TWM9M9cogzms1dnM4uOF/LAEYWdcqnM7yFmyq3IfwmOROd7Y1iFWtOjoY8To41mTV5IysgFFuRzsbWFGbNIIJCDv1dOo4lZG7jWBwRFtVTKuWyeCByJKOan8oZ3ep9XddNl0tDuaywLz9cXPYeDAA0SpkBO9sbVcTOVWldPv4uyzEkzxHtjvonHoSkFEWNoo1d8DhcQputd2ppNon4BzoAiJ1hBFQg0dVtdbGHHDQWushmNEQukLM2QO1G2Y8bgTXqFhcBJj7EjPgcPts8US8qPpPB/dXznOh5Z438tzH5ec6QgrOKrRRfKmysBmUDB+PhYabMlVPER+GCSITTzr7am2tArH3bgcEzPJm+cr5jJ4NnHNFDVrFXcI5Le9k5Jnw+bedbV+FfRzZIHaOOaOsLY0/7UGs58DjrGwKMIMFIGzOEW1/jGsdAtCN6hEAI4hBe9YXeRROBSVPAVPAqvIM5bx5hVKWAMP6zBRy3iescridVdFBinBxXDnG2GRY2XbCvp1lhvGtO9Bxu5h908XQu42lnSArMFdizMim8uwRCxPGnnOS8lwpnbOiDqTAjsrRN/PcoAScCbaACqVM40ylnjjTBs+bwWlAG23/UKbdkiwKWIQPGzWaczpoSlxPEj822cNWkpS7FyzsDrqpfgpG3jahw2vgbaSQAxuLWZYt7JzyNe8JoZpNAcvDFOdw0wqYT9AK1rZz/DdbSlLPp0ryIxgQJlK9AZlEq7IOXpohg9PIhrCng88JsOxiV4ZWAYfg4sikx/8ky2Z9l862uqwrfscIH8+ugTmVGyiddeVYUgEMn4GZzg14EwIsh9sx2cKKiWXReuOE5gzGOQgdlRKVVdlevqb279Xq0Qnsts2VDaBO0coezsruWtHApu6sKG4IBhN0aGU2kLrMKGRTN3HmbCDwKV14zvkMEDG4QfZVspVlaNU2mhc5TEZ3N1h/zqTheuLpW05ZWTGVjb3dbnNmxKZBnN8JqidaVLKAOyARNLS+MB54Z2+VaqoMLKroVBlngefnTPAcoHNWCSvlfA8CI0HEmBNBnBlXyMrzU7A7WVm94PPqQ2gmqKx+WDGsnvilmcSOBJqOK1nYyAIzuAyesq3UdSK3KfWcYKD95HmfYOU3qser2CtYEUA+FpfqdNvgPBZUBhDrGONRVlQsh8rLcaUCykHG0OOUwTlLBrsh5soEMGezi1E4HRVt1icp5wZEFXdibCkG8Y8vX75sbO4E0iom9z+hjSiOfy3DhpXItpVhE+UGQdvoWjtChmrGHf4YAzKgBNnGtuJxFCeGdhUAfQLLK8kBYAP6gvFJZajMG3Xkycy8KuC0q4Eyymwtwdxdv2M0mIBtK0LKnf640j00Auq4gUkdWGlhs22qJc6dZCsL19oxnlTJG4SYVRIGpD8TPFBuM6OElbS1pldid4mGAyN6ZIupbC5bXJN9fdpbThSxLUaI8IG1XIYBxW3Tjs6KQosKcxfxcQmdnwRGM10GnFcCy2XYunLMyAkdgk4mePiczsLygthcBut6goOqS7YVFXADLjaosB6s6ofcZWAZSIRYqSUkizYwttYab3vUOQ9w2HRxIIg8WwRVeE68xi4UtL3zRphxplzwuZrcqYCq1I3jPI5dnJIygEohMbPqVJSzrwzxBJTs5zN+ReUSgxikPQVF3JVBeNQxbHENrEMNvEdFZVV9lH9+ORGEsNZQpyTNc4C3AG7XF4ngzq+DrO2zbuaaOXgdaFcdkEotoSFBVX2qJ0C8OWZeG4KGlpghA0XfTOPCqV2qqwQ26QWfF2PMLhI2w1lVAa2aPsYd0za25MQRwgcZN6uQDCi+ZxiD4XEM2kZxOT41FnZnaRlcpZouzlRqqdbQVWopQoSB58RV50lBNrHi/AwXS5LrwDVlpY3Fc3ByiYGc52Trist6kOXdwInAQtJpp5QchyaquYOV7Su+fxVMaV3dc0RE2S6mUY0gLt2pMcYqrKIQ9w2l1gpQUMtQYcmmbt5DTNxdhnUCjQqtbK9SUSzvrC0mmhhE1e2FS2+oxypy/ZASutkmtjx3vcBC24PX65nbqkBCRhfjS9kIYPnee8cMagVOhI/3T1fAmdtAWZsCswTJCkQVNa0qWKSKPOpHAUhD9DrbVcyoYkwqhvh17vYAayXLQyKGYdxlUDFp494rBXRjYgO17DDYetNIUj/ezp6S0lnlpEwsWmJMkOwsKXeZKEAjIHn0EQJISaRBcO6UMINz7p/bEjjnw4ft+xmDvksxX4G2rIris7qaeKwAFMP2Oi7n4criuZwtpSUwpfLxSnORSrIqusc5ZFaXysqRWjiZ2DyAWEIL35tVSoQElFACjOeGGSE7AHEQgdo/LSvCOgGBvkxsmDbvlS3Fp5vhaB2TAGqRKrKKMrhLVpaGzEVjZ0OQxDhaCTA+QyRR1d15aQzrJntL3RibsipjG6jlgL4yqbS0sNYg1e84vhbBVrElK64CUcWYXDfKxhpIuxiVJZUxsbMy/uRBKTNRQ4kQ3LdRYLS0rJjRPlTPqY6gdJsEDc+aQXAn+HgsNUCbRuF0Oj0zwnA7bWDkbhO5Ens00qeQhS1laBMl5M/cAaxsLF8rKyql+Tf7ELLEGu/ixiimdCvo0TjfpjKwaggen4eh5v7LokLKbLuyvHhcZG8dhGrEDx7Hg93ZppJF7qBqO3iVveXEDQNInzeoe8Yq6ePaZBZ2JviM3W2UAGotekRCAGq4EkF1X3DOnR11yRsBL1tRa0PVcZiNFXZ2c34FskvomInQQ6lzpJoZbJxk43NwKJFBquJSsrByHydxKOnTxQASBmS3j+JMnsHSla3Ec6K9VWoJVn9zfjwOM7hqYAAqJQwE2a3nA48J2QGegRkpZNivSY+ys3EkKd4oJIwsvIHl3cWgLt5k4NH6OmtLWdpurOkwEMupYc7eMtDRhOcI2ui5JhVIzXzLyto/GAPuZoyo8wkoduVgJglCt7OhGbgID4Mq4si+63zUS1FuFFXFlqyaj2emHlLMcBqYu0FMuR28BbB7lOxRMSiCQXFhCKuwkhZ+pYDiGSgbsKKV8MiSRsuHSIWM9rklRiIlZZuqXjsQK8ooYJMgq3JKWVkhHbhsVxFUzthOWPkYijcbx54IKsSdT+uLr3crGKyoYgFiGR9iBk4kfloUX+JIlQRQqabmpgnhqtpQpb6RVQ1WH5DnrS4hEoGZqaerQ2dhFbz8XePxShmDbo70eISjoorO2vK8SJXI4SUmEU4zWKDzUDtWTYw7xXlbSTEj4FRg7zKnKoGRALv0Gs9Tgc1BpCywGZRQAtqVz2xrBcAMzEpfZwFSa2G5W0QBFjSMapWAEFa3HcGN7CxDzECyIkJ97qwrqWNTWVo876PPsjPkj2wvgroM5lLZKMETKVql/CvnWVFiFa/SzJUQwkoZsr67Y6vlSRV3/2tmNTOY3vnaxYwMuoPKqdzR1w7IqHymlPxaAThfU7Ko2ZXYj4AYJHL+kNdKwRQYESTRa5fsUZ/rVC1TMTyWVyYoqNtuza
1HsMyv2tvoarxdfqwYgU1axFo/cnql1FGsqK+uAROV8BX4GU8WcZTATi2q7Qcyi0O0V+GhWBMNRUkn8H1SsWVE5By3Gi0ECqUeJoBfAtDa4amkdXG37AGP5Ggeb84p7UazpoKRzdFzeQ8HkoHGxprKy/Hpm5t12p47J6xTYDEz7uINEXSuxYXvFskYAc+ySxH9sf5ftKzU6IbwVBcUGg5e5FMCEXSErZR0wGayV19woM9guPjTqJdVTqR4uE4nJnLldWVkECCZLd2VLF+xtamex7IpiriSDUpvrpn9lrwGMCHyppMH+ps6LILsuFGUj1XEOXiqbqSHPUKnClpWV68kqtURVNDY4TNaocykoYeTU5ngGEQa/S1DnnE4AeXMcKjHPAmFVjCBENaeyLVNHfr3px8xUstJ94hIpfH4HKE/eDaArK6lSyVVFbdt1gxTIVk3pppVlFXi4pEhVBTObquohU85MLXn1iahvUkHJjSCMc01tLFveVVBx0DodM6jftCu7DOtIzYxrc0qp1JGP2ayYFz2Gb6HvMrO8cnGtV6Gjm3uImSfD2GpWK6uowbZGMxFKQCo1pOMtcMXFpRst+hXGoAomF3sSTBGgTglbBKWwsQ3tZqaYSp0Z1CimRDWFcCJUPYJ00BI5FkKYNoifuQxmN88SWVXWLMaUqqqgC0BmQJR6sk3u9NCf6jYLXxAfqsYEgVLAhRY2AtgtflZNFmFyhxdrLkAdWlk4D88M2ixHyepIdhMHrG/iR1ZGtq0MGpbDbRPYOXeSY1M6Ny4ZstvGSktK+XbFPATj2D371saPEsAMXhXrsZ0km/XStkhhMyBfsa6uXFZe2VCe+YMr1+GKgwrQyNYq1VRrB+EizAow6NsdNKcyVEkYeM73ys6q4kAHp6BiFklTkIrVC5oYV7uzwOGCz4UJ0Stq2lWMJy4wtb+RetL6tZFicnJmBw5UjCvXXMZVJX2MQkbf+XN5EWd78Vz8/JEsMZTBiKNzsm1inLRUQ74H4NidaqI68j5sAFgxcRveC7ieLJXfQYxjZZ2CsiWFewZXJmBIlZ1tdtrX4hSuateKso/RZOtOKW2nmq1oTzeK6dRWAWu2NRVb4hq0SXm1GvtugHrbr5IXqmSktg5CuDE2MSlPwsY5kNE2Wp3AqiZbWVLAxiBF+2iBZbuNj6MB6rsMLC7FyasaYDyo7KkoPyEtw3pEMXfPvxAJi2jAQQgjrz0rLIZSWZlIoNhwd5xK4AR9mYNjWAaLrnuImJeBVN9zBORObVvbr+mTTfFSEJLSRnHo7hEJoIi8MFqjxmvgmF5URZz4zLFgZZ8Ctu2X7ggVccKm9gVxIsOHqxXgNMKnFWZYnf1dBnOhayXq17QwFlWW09eNKyVJFmXqaONGA5aCegMbJ3UUkGY1ic3nKWgjq8qfVYGQG1gRt6rs62a6HiqqUOqdesK5NmX4nGofJoiE1d0dF9lVVkvT1/kEEaaCoYOwFpcVcoLM+
17669PxC9rWqktH0sWUYld0VCpuBZ/stVRcGgy9WX2+U1Qthi9SzAqSxzZsy+OiFzBYnySGV6Gku44rD8BCOZBV3BvD5+AKRHNwMEsB6EzHnJpkTAeiUlEGkcECeB6GDZTp5YEJTlvdrknxYjTllMkfNtXwDjM7uVjK5JXUUn43rrqpK2jytaxHW0M5G8DC8rtHMYs7KSgduVQMGTYFqFvVS6rkD3sDJ46afdYFwoq11AOKCBLhvwoUgc8IGANycR6knZrdJPdsuxnyjfd3FovTlRMdEdtOl5CMV5EHsXQBis7TOwvIDZaGj2Vnpbh7cpK63VwYEMLwqbjzyl699sawFFkF1yqjUU31HfC6sW1ZFVFuXVXVgz9keEaw0ys1lWfm+azQAQSWA+hKYVfsZjPncAcUB9oIayy/UZXRNckDGji77GsWbvBo6tPrWPqOyVkBUq+INeqpzNdYs/u0ifh5qmpqIW+33JVSUcwY70KL4U9lYdU6ljtSls7lmfi9g3YzeQfVkaGFaV3ODCnaD2N8wsEDFklE3RzM3ZghdYkWHsszq70FIecnKkVkt8ezMzRq9bkGuKojRLBVSod3Y1yPqKgYW7JRQTPVyy5xIYLjOgxgT52RKJUY1dOrIiRd4futQx/A5AcSmEjz0vFWrkLzvbWAu9HOWbGgxFk1VNTpnBKk6TgwisI/HcxYXP1uAWO72ULFlBTq+aSu2VTUs6hrxM2CF+hEor1VIA9ZmFUaab1lSSgZsVs4sxzHlVLoJHr9H4DhONTkI1XC0/wiY2NoWAG5RlnHFnq6oLccpQddMuJ/O17JVA5OHLi0BqCztq7Y1++ucCd98qLI8MIHBV/cKjxQTme3hFBS3MyCqnDsuym2o80HjvFFTtrURmNaGJsmVahImjTsUXKtQZTAVs7Mvv8/+fzUrZAXcLJ6M4koe6XP0b6SmWWNDzyUpQ8bl+LtWx4tuqZ36cRYV3yuVxPNwvIiqiQCSmu7srgTzR6nkyhpCarXwFy1vGd5iP2cY06lFr5Njhhg1Y6+NB28ftbK83s8rf7kLJbKwDFPbLg25a0AdZJEiqr5phixKMDlRUtcssq1hriLqGoH+zeNgVm9OemjsETV8JdF0NHnkIFxWY1OB4Yrp7rtWJ7NgAAAPXklEQVQ3oNs5nplyVf8u2FoLu1JrHveaZWQjqAkshtFa2gzsSG3Zpkbvg3HafF9slPPlldjFlK80Gysm8Mr4MPhneNWENPGjAIpmilTPATdTRTXlCBYHYAQuPwA36xIpWtGN4q3Y2MhiGsUpuSSnlEJRD8PorC7CFYVw+F51qThgabxsTxWzCGY0ZSsb3lfqAy0OPNjNy8xiQQKsHYFQ2HBZVvVbBuq3m1oWKajqaonsM6uZUr6CjXWNZ0l5E3h3jURma6kP3MJIiy1Lm+kahQq41N2iZja5sjtlLYNZHZrH6qUGm4vMbDp6Rw2CFmvuyFkrBcCyMtFqBaECmsHoK9BZ2LA/lJcRqSaDqnaWbrZdGaz3DLgIvBln4woGztbyJGqslwxkhhHrTjTYFXCtOoKS8uLdofVdAbOylGU6nlYpXWZts4nXBq6WxJitMNokHUJnbnJplQm+aGpY2a5GMV2QD1hRubBPFKdumf5OHkLHz0F9luE5kjBjRa0nFE5CUGqHw32MmjZ6xkgINVnSnZ1VZStK2qKlRaLlQgK7uTq7JFXJwM+3SOEKyhZNI+tJ0I5qMYy9k2qJD7dVWdqKXa0CKNR0Ccjg+B2IYu2fcBZJZkMFgM11r0X92wilghFGgzVnexlqB7xL9mS29SiYUVY2nXOZjNBRsyDsQPRWW5hrZ4XcdC4HVWRbjgJr4sFofK5SzjQ7rhI1UebdPdEbj6sqIvTZQZ5va08rABsAW0UxeWytAk7A2KJ9ZpxzCioB24XFtYAeXYxr6anSqhLgppEqWbGwLunTgrV+IjWlL29ljaAl4EQMGsErp4apeZiquwRXLXAqOCeru32mmydc6oWTSWpFAGdzeTB8RTHVMEtlM90CbbQCYhPjq3egYr1FGdYIQjiuDGZ5zZ/AzobKGOyLxti6c4Rwtv2anyWlLICnlLhxJRXt6A5ebDBWFNONbxWZ2d02mnu4S9YECpeppV1zSWRBWxHYzVIv1CXSouwqqX3jBBBDZdYQbpTQW4ZQlS8r5kH4suSRmg2++3JN10x1PaAmEkmtYlEdeGpJEM6kOuCqCR22oSujj5IV2HdT0zj5prLKTjXFAPjdQlyq7xIBxAQP5yMczG4VxAKw0n6ilZ2QBce2pLulkuxxqnoIzFfgqyqjil9S1VNwBrFmeyeops8yOjZUybZdfS8CuaTIJumzs5tODaNtLpFDQ/PcJGweLhmeL1nB0KqiUDScsiUVD89Di3HtrKtSULw3RLiygZD+7sF8JTObgYsrGvDNUFRGl1iy0Ll1YkUc2aJYMog920I8qW6YDCg1Mqk0JHJFKXkbgbRreI+qpYNOZHrVcDUba7pjsphSJNtK6upgRNAVoOS0mugBeN4bIZgHhuPZ/s1ENaX6KsVr+YNrh1Nb7ipR0PE5zbNRegCbrHRUw6Yf07dLBJl1f8KB9as2V1nNqAsl62LBBhehwalerkHmB1JFIEZKSEusdl5JQj1nJlHXSCF342gJ9CYGrXelknJIXqVP8sD+qtplCR3XH2qfKq0ygMp+KnVkKxNlZ8m2YkIlVMiCnXUwl7qznBKSvQz3m3Pt6oQbXO5b5FixCh/fHxUQW/AEcK6zCNqKQnL9sywqmKuwvqSYzT/aPVNNpVyhvRW21aqciCsjdWvBwILUvh5VyCzbWoC1pJjJ680CWsl+udKB6T5RwG1mlohnlpbg47iz5U9ha0FGtmRLFYBtO99y97Ap0z+ZDTAog6kSLZsMHg/IFkkgp6CpvU2U0cYVSdnmkjwBdOmXbxTWNWzuIbipMioVxEckZEoahSOiy2M3K0jcC1LhVDwaqG0ZvkcWqCnrG4GIxykrqlbWdw6LQyBaZR8HmLRIhQWsHswD42ZXVLNkf9l+FlW0HVQ2lwFsC/Z1FdzlQR0KaPfo+Fdfu+/dwVRICu1CGR7AEIiAhc+AZUF0kOBaPxmUqg4i64vQnU4nFDYJ9Nz+1fVXveH9qmr+kPILx8oKcRV/BFbxbE0JMT0kSD4w6L/lNY8ocsqagVdU3A3MjxhxcGuqzsPH4irpaow1q6OyrVjvp9Npc59E91LldboYVzJWdimWfAW2SNEKcDaX2FmBLLA/uKxlmhh613Is1URQApbKfttwxL02q6Onx5pQxSbPojAg+v5hAnN6LHVRDXIsvKtRjiS0qJUyZTAXVbAK82ElFJWaQdVoqUC1Unt7BVaTQudM6SuqexjQJN4+0icaxv/utbKv83ETbT8H8gjcOKxOJmbUa6OOVXht3dFY6rHv9XoNzFLceEA1o8+pKm0LAHPHZ2rYKjFq0hfZFixsqHJgD3eD5n+U0kb1mFjXkn2lvMSSOsNE/CdIAKF0Sytq6urOHUN5gwg4GZosgbmggM5ucra2qrS2Ig1cbiBBcxYzgzUDNLCvL8GbZXNp6ORy3LmS+Kk83zRIAK6A1ioKa2I9NapIuiUFdfC9766PFZUtqUr6KbWk+zZU1a/ZrIXEztrjTOfz7hwKziCeXIaraHtbZIMz+2pGgazCmw4qWAFvEdhodYp0Xq0pV7G1YWYWbO4qhGq42+Z8BYtrLWvluNPpZAeaFFS1vubPgbgxsqcpnAaszBovKaFoDQ8BGtjfUOl4NAG2nmQV04feJgumvX2fsrQEWZghL0JnVdYkn3DOZIeRN86RqPWCmsvGVqEMRnwxQAxwS8EMYo3IzmY2+BCcLp4MKiuyuhImamlbZFcNoNl7tp+RHd18ZjQIRKyXdFRhN98/hyKqwXWNo7O1wiaXoHN108REZZWEq6grnIfjzeg8jdRf1XEL4kkXa5bBjKxoKaljBjeHlVxQ4GaycpW4lDOAKtnTxHAtOfzOtZwHAM7sqVXkV6yu6kap1nHkXKqWF/4XHqjenNKqBjpR3l1ch3Ejg1+EsgdQhsdG0B4FM9sWAVWpuAyiwTPleZxt9VyZVS2qXfReWqTAilpr9ApoWTj
1xymit7NwV4JTriZyOA9B0k7HFfULourmKYHVnRQvqGL5HMHdqFcR2qWpmcK6eTwx2dipWrviDilr+fKWq3OWRWdHKwA4eu8wjchbeRzFilqjjZN3ufCpfkJ0/scVpnYk6L0PI77lxdWCZ87WiWm7B/AGquQSnujGKsB8CJmiJq8q1pKIVWyqOiTK66r18BN8r74/AE71fdC3yPS2MxdOpnE1tlVxD9JmVOoggN+r4PjAXVFPa3Eg5jVJGFVUGNolH20GVrUB7BOySWq6WqYQdWR92pcFMYMwckbSgCKCqD67DiiWu1g8MQC9ByfcFqW1L+jL714qNCuznoSxt0da2gtWN1G8F0BK0NN0nuimelUF9dIdAfjO44UT3CjQLoUeLHJFTO3gmpRuIIOvwBQCbqNeo3qtZ9iF6xVK13GRlo4zqimq+CGdTiR1uRY8oqgE02hZBa79kZXPMquxRHKla2saZWN4mRqZUj0vLCKhkjKnqOQHNuSZVJoKvAqS1wpEquvWDC1B2ypwrCPsRMEPVTODMLJMDv6qeKXwi2JYV5Sq4qKyvgGsHCLiuj2jR59V8gMqSJ2FJZRXEHVRHj3sFPrct6OpqlW1GpatQdt0GvwfM6n63InsGVFhJGaBqgqqIV6IsXllZgySPq4R3bnt3wi5cv+cN2yqQLW1T95KYVsWWtKk4cB9W53WQQflQYR6Wl4HaJZjvVE0D5yvq+RKgZCs5qdBEP5sD94cAvQLlSgNaSMAtHx88BuNQ41zdFsX30zKbcs0MLD/ihkpQzl0wiTqKLTfbKmCmyYICnK0IbaieC4CG9iSyLQ7cIMGQwau6TKoq60Apl3WN40LZpca1CKKK9VQyyIEn8w0F8F6CL2h8o3ixGwC7s7EWzCOqmcApYxYD4jsAzVS0sl2t98pA7vrKophCVSonbYpgH6mvSn24pTBV4sdtV3BtMq5k82y+IADvUJ0uAlkCVTxIaPm+UNu/qkV4F1TzHXCGrXIAqItBKypqK99VtAOVs64O4ObX7pHLVCpYHcRmwvLR7TvYAKBBN58LGVzDuFz+hQbWgncQyCZAk+VbsPSouf93261iZgmfCpwRbAvqmSqriU2PwhjaoOyYqtIegVXViTsmyta6bGySpY3gyRrpIyAeaWDDxtpsXwKyalMDKNP7YBXMqEskUsi2uC8FNAPxAKTVfT1o6VzM0E0jF+1rWcUuHvdyg7vgoFplX8HpvHpMCOMRUPHzZkInsqlFKNX/EIO52E0SxSzOwob2VmRLW5D1XIU0rbgM1AzWgyC7fe8G7xUAK/taEBat7luqtyP7EmsaJQOj5F+mrnZfCuYCfBUAWwShyd6pMY/vAHG1UqOYpbI/gy5T0CMKm+UO3gFuC85dgfDVeguPDfITrIBLsLrcgdh3CFgFZjaKJ4Iv3F8ANEqvuxR1tVKOgLoCa1jxboBAkj6v7j/icFbA7f4rfRnQDLRViG13i0vqBQrYVqBbADZT0ZpiHoSzvQpopKIFS3sE1HfBWlHXd0H7LnArqvougMtljHBgZnh3Eoz/BKjLML4Z2Aq0+hEJr9jaVUBbvNzCIUiroC7AWmmFw4o5AK3MtB5VypZMSFgs05JyGVwlwBqsEGAAa2ZU1CjUexXGsE4rKriilBvFzOKKo3AuAroE6QFQU3u8YpNXwS5k+1TZt5UrwouN4KiUEw+k3ZWDp1RXHNRqXb21Ts39945yZSg3VnZFNQ9CF3XeZyr5DgBXKiwCMa2MxeTDYXgP1Fsf9QNKZc0k81RJk3r6EQ3rCmBVyLL75EjZ1pIVDHoFtiOAHoB0BdTVylqBsKKKS+AeBXJVLY+CXASuGvO/Auq7GuEjDfGKg1oKa1z/dmmi9I9SUGNhl0AtfulHAawoYrnSkmNXAVuGEhrEVXvUF+A5Ct2PqNOjDetyna4CmeUolmeXLN4Aq7C5Sj10Q7yjgl+t6CNxSRHmI5X+CpwreYB3Qfdqna4q21KdBuc4GoZsn49ZOOiVinwHqK9WzjvgeweEh2AU5+vtxZ9Cd9Wqkh49V18E5oj6vVyn0RStAyGIO5edXRKd5B0VGVXq2yr3xYp+5Ut+C4QJ4P1N339pQMjRejj4vb/Dcr6rQc3O/0rjmtZpeYCBiCHfCemRbNhbK/pNUPc3wfKy5f2D7OlL3/uPhve/oU4T0F8f+VNM2vyoiv0jK+KHQfdHq+0bncz4oz73/+Y6LbKw1o/5B7eOf1Rl/0du9B9tn/9bvrf/j+v0h6ttn2tp/r/4819y4/zv5391uvzzfwDifz6phT1MPgAAAABJRU5ErkJggg==)}.color-picker .cp-add-color-button-class{position:absolute;display:inline;padding:0;margin:3px -3px;border:0;cursor:pointer;background:transparent}.color-picker .cp-add-color-button-class:hover{text-decoration:underline}.color-picker .cp-add-color-button-class:disabled{cursor:not-allowed;color:#999}.color-picker .cp-add-color-button-class:disabled:hover{text-decoration:none}.color-picker .cp-remove-color-button-class{position:absolute;top:-5px;right:-5px;display:block;width:10px;height:10px;border-radius:50%;cursor:pointer;text-align:center;background:#fff;box-shadow:1px 1px 5px #333}.color-picker .cp-remove-color-button-class:before{content:"x";position:relative;bottom:3.5px;display:inline-block;font-size:10px}.color-picker .eyedropper-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);fill:#fff;mix-blend-mode:exclusion}\n'],encapsulation:2})}return n})(),SD=(()=>{class n{injector;cfr;appRef;vcRef;elRef;_service;dialog;dialogCreated=!1;ignoreChanges=!1;cmpRef;viewAttachedToAppRef=!1;colorPicker;cpWidth="230px";cpHeight="auto";cpToggle=!1;cpDisabled=!1;cpIgnoredElements=[];cpFallbackColor="";cpColorMode="color";cpCmykEnabled=!1;cpOutputFormat="auto";cpAlphaChannel="enabled";cpDisableInput=!1;cpDialogDisplay="popup";cpSaveClickOutside=!0;cpCloseClickOutside=!0;cpUseRootViewContainer=!1;cpPosition="auto";cpPositionOffset="0%";cpPositionRelativeToArrow=!1;cpOKButton=!1;cpOKButtonText="OK";cpOKButtonClass="cp-ok-button-class";cpCancelButton=!1;cpCancelButtonText="Cancel";cpCancelButtonClass="cp-cancel-button-class";cpEyeDropper=!1;cpPresetLabel="Preset colors";cpPresetColors;cpPresetColorsClass="cp-preset-colors-class";cpMaxPresetColorsLength=6;cpPresetEmptyMessage="No colors added";cpPresetEmptyMessageClass="preset-empty-message";cpAddColorButton=!1;cpAddColorButtonText="Add color";
1cpAddColorButtonClass="cp-add-color-button-class";cpRemoveColorButtonClass="cp-remove-color-button-class";cpArrowPosition=0;cpExtraTemplate;cpInputChange=new e.bkB(!0);cpToggleChange=new e.bkB(!0);cpSliderChange=new e.bkB(!0);cpSliderDragEnd=new e.bkB(!0);cpSliderDragStart=new e.bkB(!0);colorPickerOpen=new e.bkB(!0);colorPickerClose=new e.bkB(!0);colorPickerCancel=new e.bkB(!0);colorPickerSelect=new e.bkB(!0);colorPickerChange=new e.bkB(!1);cpCmykColorChange=new e.bkB(!0);cpPresetColorsChange=new e.bkB(!0);handleClick(){this.inputFocus()}handleFocus(){this.inputFocus()}handleInput(t){this.inputChange(t)}constructor(t,r,i,s,p,g){this.injector=t,this.cfr=r,this.appRef=i,this.vcRef=s,this.elRef=p,this._service=g}ngOnDestroy(){null!=this.cmpRef&&(this.viewAttachedToAppRef&&this.appRef.detachView(this.cmpRef.hostView),this.cmpRef.destroy(),this.cmpRef=null,this.dialog=null)}ngOnChanges(t){t.cpToggle&&!this.cpDisabled&&(t.cpToggle.currentValue?this.openDialog():t.cpToggle.currentValue||this.closeDialog()),t.colorPicker&&(this.dialog&&!this.ignoreChanges&&("inline"===this.cpDialogDisplay&&this.dialog.setInitialColor(t.colorPicker.currentValue),this.dialog.setColorFromString(t.colorPicker.currentValue,!1),this.cpUseRootViewContainer&&"inline"!==this.cpDialogDisplay&&this.cmpRef.changeDetectorRef.detectChanges()),this.ignoreChanges=!1),(t.cpPresetLabel||t.cpPresetColors)&&this.dialog&&this.dialog.setPresetConfig(this.cpPresetLabel,this.cpPresetColors)}openDialog(){if(this.dialogCreated)this.dialog&&(this.cmpRef.instance.cpAlphaChannel=this.cpAlphaChannel,this.dialog.openDialog(this.colorPicker));else{let t=this.vcRef;if(this.dialogCreated=!0,this.viewAttachedToAppRef=!1,this.cpUseRootViewContainer&&"inline"!==this.cpDialogDisplay){const s=this.injector.get(this.appRef.componentTypes[0],e.zZn.NULL);s!==e.zZn.NULL?t=s.vcRef||s.viewContainerRef||this.vcRef:this.viewAttachedToAppRef=!0}const r=this.cfr.resolveComponentFactory(AD);if(this.viewAttachedToAppRef)this.cmpRef=r.create(this.injector),this.appRef.attachView(this.cmpRef.hostView),document.body.appendChild(this.cmpRef.hostView.rootNodes[0]);else{const i=e.zZn.create({providers:[],parent:t.injector});this.cmpRef=t.createComponent(r,0,i,[])}this.cmpRef.instance.setupDialog(this,this.elRef,this.colorPicker,this.cpWidth,this.cpHeight,this.cpDialogDisplay,this.cpFallbackColor,this.cpColorMode,this.cpCmykEnabled,this.cpAlphaChannel,this.cpOutputFormat,this.cpDisableInput,this.cpIgnoredElements,this.cpSaveClickOutside,this.cpCloseClickOutside,this.cpUseRootViewContainer,this.cpPosition,this.cpPositionOffset,this.cpPositionRelativeToArrow,this.cpPresetLabel,this.cpPresetColors,this.cpPresetColorsClass,this.cpMaxPresetColorsLength,this.cpPresetEmptyMessage,this.cpPresetEmptyMessageClass,this.cpOKButton,this.cpOKButtonClass,this.cpOKButtonText,this.cpCancelButton,this.cpCancelButtonClass,this.cpCancelButtonText,this.cpAddColorButton,this.cpAddColorButtonClass,this.cpAddColorButtonText,this.cpRemoveColorButtonClass,this.cpEyeDropper,this.elRef,this.cpExtraTemplate),this.dialog=this.cmpRef.instance,this.vcRef!==t&&this.cmpRef.changeDetectorRef.detectChanges()}}closeDialog(){this.dialog&&"popup"===this.cpDialogDisplay&&this.dialog.closeDialog()}cmykChanged(t){this.cpCmykColorChange.emit(t)}stateChanged(t){this.cpToggleChange.emit(t),t?this.colorPickerOpen.emit(this.colorPicker):this.colorPickerClose.emit(this.colorPicker)}colorChanged(t,r=!0){this.ignoreChanges=r,this.colorPickerChange.emit(t)}colorSelected(t){this.colorPickerSelect.emit(t)}colorCanceled(){this.colorPickerCancel.emit()}inputFocus(){const t=this.elRef.nativeElement,r=this.cpIgnoredElements.filter(i=>i===t);!this.cpDisabled&&!r.length&&(typeof document<"u"&&t===document.activeElement?this.openDialog():this.dialog&&this.dialog.show?this.closeDialog():this.openDialog())}inputChange(t){this.dialog?this.dialog.setColorFromString(t.target.value,!0):(this.colorPicker=t.target.value,this.colorPickerChange.emit(this.colorPicker))}inputChanged(t){this.cpInputChange.emit(t)}sliderChanged(t){this.cpSliderChange.emit(t)}sliderDragEnd(t){this.cpSliderDragEnd.emit(t)}sliderDragStart(t){this.cpSliderDragStart.emit(t)}presetColorsChanged(t){this.cpPresetColorsChange.emit(t)}static \u0275fac=function(r){return new(r||n)(e.rXU(e.zZn),e.rXU(e.OM3),e.rXU(e.o8S),e.rXU(e.c1b),e.rXU(e.aKT),e.rXU(B4))};static \u0275dir=e.FsC({type:n,selectors:[["","colorPicker",""]],hostBindings:function(r,i){1&r&&e.bIt("click",function(){return i.handleClick()})("focus",function(){return i.handleFocus()})("input",function(p){return i.handleInput(p)})},inputs:{colorPicker:"colorPicker",cpWidth:"cpWidth",cpHeight:"cpHeight",cpToggle:"cpToggle",cpDisabled:"cpDisabled",cpIgnoredElements:"cpIgnoredElements",cpFallbackColor:"cpFallbackColor",cpColorMode:"cpColorMode",cpCmykEnabled:"cpCmykEnabled",cpOutputFormat:"cpOutputFormat",cpAlphaChannel:"cpAlphaChannel",cpDisableInput:"cpDisableInput",cpDialogDisplay:"cpDialogDisplay",cpSaveClickOutside:"cpSaveClickOutside",cpCloseClickOutside:"cpCloseClickOutside",cpUseRootViewContainer:"cpUseRootViewContainer",cpPosition:"cpPosition",cpPositionOffset:"cpPositionOffset",cpPositionRelativeToArrow:"cpPositionRelativeToArrow",cpOKButton:"cpOKButton",cpOKButtonText:"cpOKButtonText",cpOKButtonClass:"cpOKButtonClass",cpCancelButton:"cpCancelButton",cpCancelButtonText:"cpCancelButtonText",cpCancelButtonClass:"cpCancelButtonClass",cpEyeDropper:"cpEyeDropper",cpPresetLabel:"cpPresetLabel",cpPresetColors:"cpPresetColors",cpPresetColorsClass:"cpPresetColorsClass",cpMaxPresetColorsLength:"cpMaxPresetColorsLength",cpPresetEmptyMessage:"cpPresetEmptyMessage",cpPresetEmptyMessageClass:"cpPresetEmptyMessageClass",cpAddColorButton:"cpAddColorButton",cpAddColorButtonText:"cpAddColorButtonText",cpAddColorButtonClass:"cpAddColorButtonClass",cpRemoveColorButtonClass:"cpRemoveColorButtonClass",cpArrowPosition:"cpArrowPosition",cpExtraTemplate:"cpExtraTemplate"},outputs:{cpInputChange:"cpInputChange",cpToggleChange:"cpToggleChange",cpSliderChange:"cpSliderChange",cpSliderDragEnd:"cpSliderDragEnd",cpSliderDragStart:"cpSliderDragStart",colorPickerOpen:"colorPickerOpen",colorPickerClose:"colorPickerClose",colorPickerCancel:"colorPickerCancel",colorPickerSelect:"colorPickerSelect",colorPickerChange:"colorPickerChange",cpCmykColorChange:"cpCmykColorChange",cpPresetColorsChange:"cpPresetColorsChange"},exportAs:["ngxColorPicker"],features:[e.OA$]})}return n})(),ED=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275mod=e.$C({type:n});static \u0275inj=e.G2t({imports:[Fe.MD]})}return n})();const PD=["tagInput"],MD=["tagInput2"],OD=["tagInput3"],DD=["payoutTagInput"],ID=["payoutTagInput2"],jD=["payoutTagInput3"],RD=["refundTagInput"],LD=["refundTagInput2"],ND=["refundTagInput3"],BD=["disputeTagInput"],GD=["disputeTagInput2"],VD=["disputeTagInput3"];function zD(n,a){1&n&&(e.j41(0,"span"),e.EFF(1,"Please wait"),e.k0s())}function UD(n,a){1&n&&(e.j41(0,"span"),e.EFF(1,"Save Changes"),e.k0s())}function YD(n,a){1&n&&e.nrm(0,"div",93)}function WD(n,a){1&n&&(e.j41(0,"div",94),e.nrm(1,"i",95),e.EFF(2," Customers will not receive any payment notifications or correspondances if disabled"),e.k0s())}function $D(n,a){if(1&n){const t=e.RV6();e.j41(0,"span",98),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,s=e.XpG();return e.Njj(s.removeTag(s.tags,i))}),e.EFF(1,"\xd7"),e.k0s()}}
1function qD(n,a){if(1&n&&(e.j41(0,"span",96),e.EFF(1),e.DNE(2,$D,2,0,"span",97),e.k0s()),2&n){const t=a.$implicit;e.R7$(),e.SpI(" ",t," "),e.R7$(),e.Y8G("ngIf",""!==t)}}function XD(n,a){if(1&n){const t=e.RV6();e.j41(0,"span",98),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,s=e.XpG();return e.Njj(s.removeTag(s.tags2,i))}),e.EFF(1,"\xd7"),e.k0s()}}function HD(n,a){if(1&n&&(e.j41(0,"span",96),e.EFF(1),e.DNE(2,XD,2,0,"span",97),e.k0s()),2&n){const t=a.$implicit;e.R7$(),e.SpI(" ",t," "),e.R7$(),e.Y8G("ngIf",""!==t)}}function KD(n,a){if(1&n){const t=e.RV6();e.j41(0,"span",98),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,s=e.XpG();return e.Njj(s.removeTag(s.tags3,i))}),e.EFF(1,"\xd7"),e.k0s()}}function JD(n,a){if(1&n&&(e.j41(0,"span",96),e.EFF(1),e.DNE(2,KD,2,0,"span",97),e.k0s()),2&n){const t=a.$implicit;e.R7$(),e.SpI(" ",t," "),e.R7$(),e.Y8G("ngIf",""!==t)}}function ZD(n,a){if(1&n){const t=e.RV6();e.j41(0,"span",98),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,s=e.XpG();return e.Njj(s.removePayoutTag(i))}),e.EFF(1,"\xd7"),e.k0s()}}function QD(n,a){if(1&n&&(e.j41(0,"span",96),e.EFF(1),e.DNE(2,ZD,2,0,"span",97),e.k0s()),2&n){const t=a.$implicit;e.R7$(),e.SpI(" ",t," "),e.R7$(),e.Y8G("ngIf",""!==t)}}function eI(n,a){if(1&n){const t=e.RV6();e.j41(0,"span",98),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,s=e.XpG();return e.Njj(s.removePayoutTag2(i))}),e.EFF(1,"\xd7"),e.k0s()}}function tI(n,a){if(1&n&&(e.j41(0,"span",96),e.EFF(1),e.DNE(2,eI,2,0,"span",97),e.k0s()),2&n){const t=a.$implicit;e.R7$(),e.SpI(" ",t," "),e.R7$(),e.Y8G("ngIf",""!==t)}}function nI(n,a){if(1&n){const t=e.RV6();e.j41(0,"span",98),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,s=e.XpG();return e.Njj(s.removePayoutTag3(i))}),e.EFF(1,"\xd7"),e.k0s()}}function iI(n,a){if(1&n&&(e.j41(0,"span",96),e.EFF(1),e.DNE(2,nI,2,0,"span",97),e.k0s()),2&n){const t=a.$implicit;e.R7$(),e.SpI(" ",t," "),e.R7$(),e.Y8G("ngIf",""!==t)}}function rI(n,a){if(1&n){const t=e.RV6();e.j41(0,"span",98),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,s=e.XpG();return e.Njj(s.removeRefundTag(i))}),e.EFF(1,"\xd7"),e.k0s()}}function aI(n,a){if(1&n&&(e.j41(0,"span",96),e.EFF(1),e.DNE(2,rI,2,0,"span",97),e.k0s()),2&n){const t=a.$implicit;e.R7$(),e.SpI(" ",t," "),e.R7$(),e.Y8G("ngIf",""!==t)}}function oI(n,a){if(1&n){const t=e.RV6();e.j41(0,"span",98),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,s=e.XpG();return e.Njj(s.removeRefundTag2(i))}),e.EFF(1,"\xd7"),e.k0s()}}function sI(n,a){if(1&n&&(e.j41(0,"span",96),e.EFF(1),e.DNE(2,oI,2,0,"span",97),e.k0s()),2&n){const t=a.$implicit;e.R7$(),e.SpI(" ",t," "),e.R7$(),e.Y8G("ngIf",""!==t)}}function lI(n,a){if(1&n){const t=e.RV6();e.j41(0,"span",98),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,s=e.XpG();return e.Njj(s.removeRefundTag3(i))}),e.EFF(1,"\xd7"),e.k0s()}}function cI(n,a){if(1&n&&(e.j41(0,"span",96),e.EFF(1),e.DNE(2,lI,2,0,"span",97),e.k0s()),2&n){const t=a.$implicit;e.R7$(),e.SpI(" ",t," "),e.R7$(),e.Y8G("ngIf",""!==t)}}function dI(n,a){if(1&n){const t=e.RV6();e.j41(0,"span",98),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,s=e.XpG();return e.Njj(s.removeDisputeTag(i))}),e.EFF(1,"\xd7"),e.k0s()}}function uI(n,a){if(1&n&&(e.j41(0,"span",96),e.EFF(1),e.DNE(2,dI,2,0,"span",97),e.k0s()),2&n){const t=a.$implicit;e.R7$(),e.SpI(" ",t," "),e.R7$(),e.Y8G("ngIf",t&&""!==t.trim())}}function fI(n,a){if(1&n){const t=e.RV6();e.j41(0,"span",96),e.EFF(1),e.j41(2,"span",98),e.bIt("click",function(){const i=e.eBV(t).$implicit,s=e.XpG();return e.Njj(s.removeDisputeTag2(i))}),e.EFF(3,"\xd7"),e.k0s()()}if(2&n){const t=a.$implicit;e.R7$(),e.SpI(" ",t," ")}}function pI(n,a){if(1&n){const t=e.RV6();e.j41(0,"span",96),e.EFF(1),e.j41(2,"span",98),e.bIt("click",function(){const i=e.eBV(t).$implicit,s=e.XpG(2);return e.Njj(s.removeDisputeTag3(i))}),e.EFF(3,"\xd7"),e.k0s()()}if(2&n){const t=a.$implicit;e.R7$(),e.SpI(" ",t," ")}}function hI(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,pI,4,1,"span",63),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.disputeTags3)}}function mI(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",99),e.bIt("click",function(){const i=e.eBV(t).$implicit,s=e.XpG();return e.Njj(s.changeBgColor(i))}),e.k0s()()}if(2&n){const t=a.$implicit;e.R7$(),e.xc7("background-color",t)}}function gI(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",99),e.bIt("click",function(){const i=e.eBV(t).$implicit,s=e.XpG();return e.Njj(s.changeFontColor(i))}),e.k0s()()}if(2&n){const t=a.$implicit;e.R7$(),e.xc7("background-color",t)}}function _I(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",99),e.bIt("click",function(){const i=e.eBV(t).$implicit,s=e.XpG();return e.Njj(s.changeActionColor(i))}),e.k0s()()}if(2&n){const t=a.$implicit;e.R7$(),e.xc7("background-color",t)}}function vI(n,a){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"div",109)(2,"div",110),e.EFF(3,"Select Payment Method"),e.k0s(),e.j41(4,"div"),e.nrm(5,"img",111),e.k0s()(),e.j41(6,"div",112),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.changeView(!0))}),e.j41(7,"div",113),e.EFF(8,"Card"),e.k0s(),e.j41(9,"div")(10,"div",114)(11,"span",115),e.nrm(12,"img",116),e.k0s(),e.j41(13,"span",115),e.nrm(14,"img",117),e.k0s(),e.j41(15,"span",115),e.nrm(16,"img",118),e.k0s(),e.j41(17,"div")(18,"div",119)(19,"span",120)(20,"span",121),e.nrm(21,"img",122),e.k0s()(),e.j41(22,"span",123)(23,"span",121),e.nrm(24,"img",124),e.k0s()()()()()()(),e.j41(25,"div",125)(26,"div",113),e.EFF(27,"Sampath Vishwa"),e.k0s(),e.j41(28,"div"),e.nrm(29,"img",126),e.k0s()(),e.j41(30,"div",125)(31,"div",113),e.EFF(32,"FriMi"),e.k0s(),e.j41(33,"div"),e.nrm(34,"img",127),e.k0s()(),e.bVm()}}function xI(n,a){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"div",128)(2,"div",18)(3,"div",129),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.changeView(!1))}),e.nrm(4,"i",20),e.k0s(),e.j41(5,"div",130),e.EFF(6," Master Card "),e.k0s()(),e.j41(7,"div"),e.nrm(8,"img",111),e.k0s()(),e.j41(9,"div",131)(10,"div",132),e.EFF(11,"Name on Card"),e.k0s(),e.j41(12,"div"),e.nrm(13,"input",133),e.k0s()(),e.j41(14,"div",134)(15,"div",132),e.EFF(16,"Card Number"),e.k0s(),e.j41(17,"div",135),e.nrm(18,"input",136)(19,"div",137),e.k0s()(),e.j41(20,"div",138)(21,"div",139)(22,"div")(23,"div",132),e.EFF(24,"CVV"),e.k0s(),e.j41(25,"div"),e.nrm(26,"input",140),e.k0s()()(),e.j41(27,"div",139)(28,"div")(29,"div",132),e.EFF(30,"Expiry"),e.k0s(),e.j41(31,"div"),e.nrm(32,"input",141),e.k0s()()()(),e.j41(33,"div",142)(34,"div",143),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.changeView2(!0))}),e.EFF(35),e.nrm(36,"i",144),e.k0s()(),e.bVm()}if(2&n){const t=e.XpG(2);e.R7$(34),e.xc7("background-color",t.bgActionColor),e.R7$(),e.SpI("",t.buttonTxt," ")}}function bI(n,a){if(1&n&&(e.qex(0),e.j41(1,"div",100)(2,"div",101)(3,"div",102),e.nrm(4,"img",103),e.k0s(),e.j41(5,"div",102)(6,"div",104)(7,"div",105),e.EFF(8,"Total Price"),e.k0s(),e.j41(9,"div",106),e.EFF(10,"LKR : 1200.00"),e.k0s()()()(),e.j41(11,"div",107)(12,"div",102)(13,"div",104)(14,"div",105),e.EFF(15,"Merchant Name"),e.k0s(),e.j41(16,"div",106),e.EFF(17),e.k0s()()(),e.j41(18,"div",102)(19,"div",104)(20,"div",105),e.EFF(21,"Brand Name"),e.k0s(),e.j41(22,"div",106),e.EFF(23),e.k0s()()()()(),e.j41(24,"div",108),e.DNE(25,vI,35,0,"ng-container",24)(26,xI,37,3,"ng-container",24),e.k0s(),e.bVm()),2&n){const t=e.XpG();e.R7$(),e.xc7("background-color",t.bgColor),e.R7$(3),e.Y8G("src",t.isCropped?t.croppedImageBase64:"https://storage.googleapis.com/onepay_ipg/"+t.croppedImage,e.B4B),e.R7$(3),e.xc7("color",t.bgFontColor),e.R7$(2),e.xc7("color",t.bgFontColor),e.R7$(5),e.xc7("color",t.bgFontColor),e.R7$(2),e.xc7("color",t.bgFontColor),e.R7$(),e.JRh(t.brand_name),e.R7$(3),e.xc7("color",t.bgFontColor),e.R7$(2),e.xc7("color",t.bgFontColor),e.R7$(),e.JRh(t.app_name),e.R7$(2),e.Y8G("ngIf",!t.isPayment),e.R7$(),e.Y8G("ngIf",t.isPayment)}}function yI(n,a){if(1&n&&(e.qex(0),e.j41(1,"div",145)(2,"div")(3,"div",146),e.nrm(4,"img",147),e.k0s(),e.j41(5,"div",148),e.EFF(6," Payment c
1ompleted successfully..! "),e.k0s(),e.j41(7,"div",149),e.EFF(8," 1200.00 LKR "),e.k0s(),e.j41(9,"div",150),e.EFF(10),e.k0s()()(),e.bVm()),2&n){const t=e.XpG();e.R7$(10),e.SpI(" ",t.thankYouMessage," ")}}function CI(n,a){if(1&n){const t=e.RV6();e.j41(0,"nb-card",151)(1,"nb-card-body")(2,"div")(3,"input",152),e.bIt("change",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.fileChangeEvent(i))}),e.k0s(),e.j41(4,"button",153),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.zoomOut())}),e.EFF(5,"Zoom -"),e.k0s(),e.j41(6,"button",154),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.zoomIn())}),e.EFF(7,"Zoom +"),e.k0s(),e.j41(8,"div",155)(9,"image-cropper",156),e.mxI("transformChange",function(i){e.eBV(t);const s=e.XpG();return e.DH7(s.transform,i)||(s.transform=i),e.Njj(i)}),e.bIt("imageCropped",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.imageCropped(i))})("imageLoaded",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.imageLoaded(i))})("cropperReady",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.cropperReady())})("loadImageFailed",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.loadImageFailed())}),e.k0s()(),e.j41(10,"div",157),e.EFF(11,"Preview"),e.k0s(),e.nrm(12,"img",158),e.k0s(),e.j41(13,"div",159)(14,"button",160),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(null==i.modal_ref?null:i.modal_ref.close())}),e.EFF(15,"Done"),e.k0s()()()()}if(2&n){const t=e.XpG();e.R7$(9),e.Y8G("imageChangedEvent",t.imageChangedEvent)("maintainAspectRatio",!0)("cropperMinWidth",128)("onlyScaleDown",!0),e.R50("transform",t.transform),e.Y8G("aspectRatio",2),e.R7$(3),e.Y8G("src",t.isCropped?t.croppedImageBase64:"https://storage.googleapis.com/onepay_ipg/"+t.croppedImage,e.B4B)}}const wI=[{path:"",component:Wn,children:[{path:"dashboard",component:Bs},{path:"miscellaneous",loadChildren:()=>Promise.resolve().then(bn.bind(bn,89063)).then(n=>n.MiscellaneousModule)},{path:"transaction-history",loadChildren:()=>bn.e(727).then(bn.bind(bn,95727)).then(n=>n.TransactionHistoryModule)},{path:"transaction-requests",component:Z7},{path:"payment-page",loadChildren:()=>bn.e(331).then(bn.bind(bn,54331)).then(n=>n.PaymentPageModule)},{path:"developer-configurations/ipg-apps",component:Iu,canActivate:[gc.w],data:{pri:vc.h8}},{path:"developer-configurations/checkout-settings/:id",component:(()=>{class n{constructor(t,r,i,s,p,g,S){this.checkoutService=t,this.toastr=r,this.route=i,this.dialogService=s,this.sanitizer=p,this.fb=g,this.router=S,this.tags=[],this.tags2=[],this.tags3=[],this.payoutTags=[],this.payoutTags2=[],this.payoutTags3=[],this.refundTags=[],this.refundTags2=[],this.refundTags3=[],this.disputeTags=[],this.disputeTags2=[],this.disputeTags3=[],this.scale=1,this.transform={translateUnit:"px"},this.imageChangedEvent=null,this.croppedImage="",this.isCropped=!1,this.isLoading=!1,this.croppedImageBase64="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABywAAAHMCAYAAACHjF+0AAAACXBIWXMAAC4jAAAuIwF4pT92AAAgAElEQVR4nOzde3RlZ3nn+fcUKpdNuSzZBpcdzFQVpiFcJQK0mkuQ7DSQ6Ul3iUn39AwBldxJuEOJ7gYbrIxVaXU6SQdKhhDoEChJvTr/zFqDaq1hDR1CLOGrmkxblVnp9JAEJO4QG5fK5brKtWfto/dI+/Lud99v7/v9gFzSOft29rnv336et+M4jgAAAAAAAAAAAACAOuxirwMAAAAAAAAAAACoC4ElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoDYElAAAAAAAAAAAAgNoQWAIAAAAAAAAAAACoTR+7HqjGi+78R6PO1pqGhBADovuHvMTZ/i34h+einWkDvwjHUc/r+P8Tmt8JrcdJOK87aXDmrflvOvS8lw3c+tw9V/o6/5WHllgVQpzu/ra1u9b+7EOzazVvEwAAAAAAAAAAjdJRhg4Acnnxr/7SQUc4o0KIUeEI998D28tzHEXmmCy49D1fA/P6n8oxwaV23pzBpeOIq/deI2554f+wedWz95wTu591nbN7l7hy
15Ure3doOyV9ST8kwc00IZ60Xbv7Zh+5bsmNHAQAAAAAAAACwhcASKNCLf+2XJoQQ7s/ITmYYDAnln4nCR8W83mpL7bzhJNIJXpYmuNRsk6OsCt264NrrrxO3/uwhsXdg38Wnnz63S+zu7N5se3iZ+WUz8YzrMsB0f9wAc/XPPnTf6axrBQAAAAAAAACgyQgsgZx+9l3/2G3vOukIMSmE6FdVI0YGl47jj7B0bWJD8yYNLlWVmuFt7P2ifElwPLdAV22pCS5dNz7/ZnHLoVvFdc8d2Dx75inxTEf0Xbx8SbHChig/mEzjlCfAXPqzD91Ha1kAAAAAAAAAgBEILIEcfvZd/8QNKae3gkpfLKlswVpIcFlWm1gRE1wWML5lb7K+q3Z3g8ubb7u1W4H51Okzz2yKK886f+FCPa1jmxVMJl2TW4W56IaX93/ovsXKNgQAAAAAAAAAgIIRWAIZvOTdh4eEEHOOcAajKgqdwN/eCx1VaClyjG+Zpk1skeNbhjfWfxsThJ5uYHnLbW54+Xynb3df5+mnzopLz2yKUsLLTC93tYaSSW3Iyks3uFy8n/axAAAAAAAAAIAWIbAEUnrJew67VZXH9eGj488F07SJVVZNJhtLso7xLR3FtGnaxHrnf87z94tbXnCreM7zbxbPPPOMc/7c+c75SxfFxYsXRWLtrJYs2kk3UKfyEgAAAAAAAADQBgSWQAovee/YnBDiSPKqyRzBZY42sb7gMryQ4sa3TNMmNnFw6Yirr312N7i8+bbni6v3XiMuX7rsnL94oXPu3Dmx+cwzituVhlHBZBy38nJOOGLu/qP3rda/OQAAAAAAAAAAhBFYAgm89H1jA92Wm44YFDHhnC6YUwaXwcAzsFjbxrcM3sbn3HqzeP5LDomB/Td2/75w/kK3XezT586Fl6NaYQUa8yqq35DlbtXl0fvmKtseAAAAAAAAAAASILAEYrz0fW8bkOMDDoZDRnX4KJTBpROeLMX4llnDx1RtYpXBZfo2sf5f04W6IrBLe79cvffZ3eDSrbrs290nrjxzRVy4eEGcOXNmp+qyRC0JJZNY71ZdCjF7/1HGugQAAAAAAAAA1I/AEojxsve/bckRYqS48LGk8S2D1ZbBefOMb5mm2tIzvyp4zNYmdueXvt27u2NcHhp8UbddrOvihYvi3PlzMVWXyRgUTMbZ8ASXa6WvDQAAAAAAAACACASWgMbLPvA/u+P/Hdmawglli6HgMk2b2DzBZeHjW0ZURobCUvXty90mVhNcKveP/Mettrzltlu328Vubm6Kc+fPi7Nnz4orV64IHYuCySQrmxdCTN9/9FMElwAAAAAAAACAyhFYAhFe9sFfnhCOc2L7Wk9gpqscTB1cphnfUjFvOHNMFlwWNr5lYNpCx7cMzhuxbjewdCsue8Gl2y7Wrbh86uzZStrFxqr8ZTbzCu+TwSWtYgEAAAAAAAAAlSGwBBRe/sFfPiiEWBVC9IdDNJE72Isa39J/UcJqy8Tho6pSUxgxvqU3uLz5tlvFLbc9f3t6t02sG1xevnxZlK4Z1ZJ5bWy1if3UdGU3BQAAAAAAAABgNQJLQOHlH/rlJeEZtzIUzu1cGCoY9AZ7O7laRDAXMa+ymtC3aFX4mKJNbGjeFMFl4eNbRlRbJg4uw/PvufbZ4qWvH9yuuHRdvHhRbDz1VPff3MwIJuNWtS6EmLx/8lOL1W0AAAAAAAAAAMBGBJZAwMuP/tMx4YgvbV2avKowNriMCNfaMr5lqmrSwPyFton1zK/cP57J3eDy0Cv/nq/iMnFwWflLY23BZJxlIcTE/ZOMbwkAAAAAAAAAKAeBJRDwiqP/1A1mDoRaj+pCNM/EoWAv+E+a4DIUzCWt1AwEl4oWqrrgsvjxLVXzJg8uE1VbRq47Jri8UEDFZWIVv94Wu7pj90/SJhYAAAAAAAAAUDwCS8DjFZP/bEI44oQvzlOEfTvXqYPL2GpLoQ7XCm8Tmzh8VFVqiuxtYoOXpQkudfs7SXCpmX9g/w3i0OCLfa1i3TEuz5w5IzY3nxHFaWy1ZF6nHCEmliY/tVrpWgEAAAAAAAAARiOwBDxeMfnPutWV3Uu8VZMiEISFqgojWqGKYKDU8vEtFdWjTsR+2bkuYt9krLYUqYJLVegpxPX7bxAvecOrxNV7r9m+/MyZp8RTZ8+KK1euiOTMDCYTrOrYEtWWAAAAAAAAAICCEFgC0is//L+MCiHu17Z7Ff7QLVtwGayqzNYKVV+pGb6sN2/i4DJTpWZ4Xn34WN/4lu6vz//ZQ+LQ4ItE31W7u5e5YWUvuFSusArtyUBPCaotAQAAAAAAAAAF2MVOBLZNuL90Op3uz7bur53uT/e/Hc8V7h+d7b/C88l5Q/OJjv+fnf8EJpHb4lns1jo73sXvLNy3aM9lnnk7nY7wbYpnpp1V+W/b9n4JbN/2mjpx+0Vx++Qv/nl3bp//poX3TW+bfLdPCP+8itvoXcz3/vu3xcNf
1+pr47l99q3vZrl27xMBAv7jllpvFnj1XlZceOpqfCleXc4mDQjhLo7MfnChsQwEAAAAAAAAAVqLCEpBe+S//+WkhnP74ysKIasvgP7nGt6ygTazmtvk3IaZNrGI/lDG+pW5/i1RtYsPzu/9cfe014qWvH/KNb3nx4kXx5OnT4vLlyyKT1neM1SzVf9W8EGJy6cOfPl3KZgAAAAAAAAAAjEZgCQghBv/VPx9yHPHY1l+KMKz0NrH+eWODy9DTtqLxLUOBoCZIDYaeobA0vI3btzBPm9jEwaW6Tax6fMszYuPMGRHJ1GAy3cq2WsR++NO0iAUAAAAAAAAApEJLWGDL2E4nUk/7UClRm9jeZao2sZ1gO9PgfMLXsnRnsoRtYkVUm9hOYNHhtqrKNrGdnQ3RtYndukixzN4cEW1id25aVJvYTnybWMW+6e1Z333l35Dw/gks5vSPfyoe/j+/Jv76G38pNi9tVVZed9114ub9+8Xuvt1F91aNVFIbV/VPMSsbFEIsjR7/4FiuzQQAAAAAAAAAWIfAEhDd8GpIbP/qCS5V4zgqwkf1+JaBPC00vmXEfCLZ+I/R41sGNy0ceIZDwp3g0reNgfEtd25bGeNbhkPPQse3DM6ruI3B8S3/y5e/Lk7/+InuZbt37xY337xfDAwMdMe6LIImQsxBs8TiVxbUL4T40ujxD04WulQAAAAAAAAAgNEILIEtB4PpWFxAJzxXe9Ivf7VlMAgLJnDe4DJYoRgI9lTho+hFnhHz7lwUqLb0Bpe+eYWi2tJ/23y1it55OxmCS99uUAWPnn3j5Q0fA9sohHcxUaFuIPSMuL8unj0v/uufPCL++s93qi337btW7N+/X+zZs0ckVU5OmLJastru38dHj39wrtI1AgAAAAAAAABaizEsASHE0Ef+1/BTwTvuoX9wyPrHt4wYw7H541tG7NMGjG+p3D+eafdc+2zx0tcPioH9N25f9tRTZ7vjW165ciU4eUE0S2zHS/ey22556cOfPt2AbQEAAAAAAAAANBSBJaw39JH/bUAI8eTWfggEYoHnhz5kUwdsIpShJQkuI+YL/pMmuEwQzIUDxp15w5ljsuBSu18iQlnl7QtMmyu4DIXMTniyiHXf+pJD4tArXyT6rtrd/fvS5cvip0/8tPtvdq0PJtW2tv2UEGJ06V8SWgIAAAAAAAAA1GgJC3TEUOS4iYo2sW0Z3zLY6jXcJjbcYjaqTazQ3Lbw+JaqFrNZ28Sq2+BmHt/Ss01Zx7f83l99W3zjyw9sj215lRzbsr//OhGv0W1cs9Nv+6AQYmn0kx8caMmtAQAAAAAAAABUjMASCAVainETteNbKsIw/6J8Y0CmGt/Suy3BYK8TnCwcPkaNb+nL6wof31Ixb5rxLYP7enufRs/roxvf0reYtONb7sx/4ew58difPCK+/Rff3J61/7rrxP6bnit27eqkDybbItP2dycaFMJZG/3kB4ZadGsBAAAAAAAAABUhsIT1ogO6jqya9OyhQBjmq+ILhI+xVZPBeb3hnKKasaMMLgOrVgR7vuDSu0He4LITnteztYHwsaMILnemUwaXvtUGQ9mdX8L72v+n6vYp7yfPwjraeT3BZXBez/yq/eNaO/VN8Y0vf11cePp89+89e/aIn7nlFnH1nj22BpPKmeRv/Y4QSyOElgAAAAAAAACAAAJLQMRVFka0H/X8Ggout69TBJfeKDBQ+RgKLr3zbQeXEW1iO/pwTllR2AsuQ8FccNH+oK53w0PBpWcmX3CZpn2uqk2sb7+ow8PI+ymuTawnZPbvm0Do6d+A7QvP/vSM+Mb/9XXx+Hd/1J12165d4qabbhL9/f2i0TK3oY0NJnWLc3cKoSUAAAAAAAAAwIfAEggEgzvBZbACsIzxLYOLSVGp2Qlvn2+zI4K9ZONbqgPPcJi7E1yGb1sd41uq5g0El8GAObBvsoxvuXn5svh/l/5c/M2f/+X2bO6YljfeeEM3wKxV5ja06hkLGG6zF1oypiUAAAAAAAAAoKvjOG3qUwiU41V3/4osEfM/H7b+lJf5rnKCk/rm3fk1PG/oOedZh+Ob1vHPF9w+z3T++fzz7kwWnteJuG2+VQcX7vi21j+v44QW5Z3O8V8RmFezPcF9GtyFim3cvoW6+yni9nnmDidxuvkdIQb23yhecftrRd/uvu5Fly5dFo8//rjY3NwUpcr0Uh49UynvDP6FnhJCjC7/q98/XcaqAAAAAAAAAADtQYUl4CtUVFRNRraJrWB8S1Wb2KrGt9RUanq21r9fihrfMlQ9Gt0mduemhW9f7P2knVekH9+yI8TpnzzRbRF79skz3Wmuumq3uPnm/d1/c6unjWs6ybdxsFtp+QkqLQEAAAAAAADAdgSWgOgGTsu+DCwQDFo5vqWnTaw/mAsu2t9WtTdv3PiWqtu2vV/StIn17Rf//o+9n4oe31L+deHpc+Kxrz4ifvS33+tO47aFvfnmm8XevXtFIs1r45p0VWl1Q8s8mwEAAAAAAAAAaD8CS2DL2nZlYWgsx97v5Y1vKfyL8lcVKqomt+fLPb6lZ5Je+BhaZxnjW+rH7uxVW2Yf31Jdibq9b7wClbG+cDWwb2LHt/TMv3lpU/zVI6ti7S++uT25O6blvn37duYvtFoyOpjMpZSF+gyOfOIDc4UuEQAAAAAAAADQKgSWgOjmS0vBYDAqfOyFaeGAThGIKYJL7zq84WPiNrGB8FEZXEa2iQ1WTarDx8g2sR3vZvjnja5CFdFtYoXYWWbgtnn3tTokDuzeYBAsPPeTZ/FC1SbWc+eE93cwv0wXXH77L74p/uqRU9uTXn/9gLjxhhva2sa1IKEVHRn5xPuny1obAAAAAAAAAKDZCCyBrRBqSf4SruTr7SBV1aQyoMswvuX2ZAnaxPYuU7WJVVQVBrNF7/buXBcRXIZaoaYZ39If9KUa3zIUCKrGt/SHniJiXuXtS3I/afZNb88qx7cM3XWdbmvYb3z562Lz8mb3ur3X7u1WW25pXRvXnCuLXOG9I594/0RZWwMAAAAAAAAAaK6O45R2tBpolVff885V4YhBxxuoOJ5fnEDU4vini5wvMKkIPOecwDr81yVZphO4PjDf9nWKbQms0wlM678utAPCk4X2iXpZyW9beBtT7Wvl7Us6r/+C0P723bTwfeebV/7n2uuvE68YfY24eu813cvPnzsvHn/iCXHlyhVRqEpf1gtd2YZwxOjyv/7MapELBQAAAAAAAAA0GxWWwI45bQvSYPGeok2sbnxL4Z0vsk1slvEtw1Weqca3DFRq7kwbrigMVpLGjW+Zrk2s/7b5ahV9lZoFjG+pmdcncnxLzwK91ZYx1ZpnT58R3/jyA+Lsk2e6l1/z7GvE/v03iV27MrwU19/GNd/K1IvrF0Isjvze+weK3HIAAAAAAAAAQLMRWAI7Frd/07UgzTi+ZbI2sSI0r9HjW6ZpExtcb57xLSNbvSYd31I1r6ZNrGf+zcuXxWN/+uh2aHnVVVfpQ8tmt3HNvshoBxz35AEAAAAAAAAAgDUILAHp//m3/3FNdDrz3v0RW8m3M2G+8S1DiwkHdKWOb+ldqHezI8K5dONbBhcdDBgjgstAQNzxrEMVXKruI//uVe0Xxe3bvp9E+H5KGlwG7yvPhrj/feZSRGjZ2WVStWTsIjWzHH7T771/MvsGAQAAAAAAAADahMAS8Oh028KqqyaVwWVHE1z6KgsDAV0wEFMFnorwUQTDMF9AF8wIA5WaQkRXagYrPAOVmqqqSdELHzuB26ZqExvY3qg2sSLytgUqWxXz5msTK0LbqJ43IrgM7mjPNoX3zdYFbmi5Ggwtb87YHjZS7dWSeWY7/qbfe/9Q9o0FAAAAAAAAALRFx3FKK+EBWuk1U+Nua9jD28+M4HPEcf/vbP/u/cU3aWC+rT+D8239EXoaei5wAuvwzht6/nrW4Yjw9vn+8c7rmc4/3/YNDkwWnje8T3bm9W+GE7xavV8cJ7Qo73SO/4rAvJ7tUewH3z4N7kLFNm7fQtXLpRPc36p55fYo7ue+q3aLoX/4D8S111/Xvejs2afFE48/oVhRlBJewzMsspR3EsdZF0IMff0jf3C6jMUDAAAAAAAAAJqBCksgqCMmQxWCXpoWpLFVk2naxIbGtwzPW9j4lp7p1ONbBlZd5PiWO1vr3y8FjG/p2y+eX6LaxO7ctPDtU95PnoV1tPOKyPEtNy9v+iotr712r7jxOTeKsMa3cc2xLY76R4gDQojpvIsHAAAAAAAAADQbFZaAwmt+48i0EM693Wt8FYKaaksRqOQLFtQFqhLVlYVJKzWDG9a7LklVYXhebaVmuMwxUKkp/JGVt+IyonI0faVmoOJSUTnqq7gsar8Eb5923pjK2OBtDMzbt7svUGl5NmWlZYSML/GFvzPke6+5/esf+YOl4jYGAAAAAAAAANAkBJZAhNf8xpFVIcRgbEtUEQgutS1RU8xXaHCpCdJ84aM6uAxmkup9olpmkn0SmEDXJjbjbdtZbsLgMrivg5flCS59i/Hfd932sL8wvB1auoGlG1wmkuGlvJRX/3LeU2gNCwAAAAAAAAAGoyUsEKUjJkRHbHjbhvraxAZajobbxApf+1L9fOE2sb0WszvThlvMetfhb2uqbhMrRIo2sWJnOnWb2I5/1R3PRqnaxAbm1baJjWyfK6LbxAqRqE1sx3uDA/vafz8Fd6G6TWzofvLfOYH9HdEmVv69eemyWP3aynZ7WLc17LXXXutfthPxo5FhlnjRbVzLQGtYAAAAAAAAADAYFZaAxmv+9yNjQogvaVuQlt4mduuPzFV8uspAxfb5poiYNzRf8B9F1eT2nBG3I1GlZmCxvjaxinkd7xWxlZo7v6RqExuYX3s/aefd2aar914jXvOPfr7bJvbKlSvixz/8sbh06ZKIU/irefPeH2gNCwAAAAAAAAAGosIS0Pjz35xf7AhxZ7CizlNgGFk12VFV43krC4PzaisLO6HVBKv4OoqqSdGrSAxVf8rKQE2l5k5VoQjNG5rPM+9O0WNgYYqKwp2NT1ip6VlWb97QNgbuo8DO9e8XTcVk1Lz+2+ddr+Z+6nT884Z29M42ub9fePq8WP3TR8Xm5U2xa9cusf+W/d1/ewqvmKy2WjKbrRs526yNAgAAAAAAAAAUgcASiPGN35yf64jOnf6cyROKbV+UILjcuSIcXPqvTtG6NCK4VAR0wr8oXyvV4O3yh2ih/qg7rVBVwaUmfBS9yDM4r6rtbiDU07aJVYaywV0UmFcXLkcFl77d0FHcPs++8fIGl8H9Lbz/bN2Ws6fPiP/+yKnuZb3Q0qJgMiqNHXzT775vstbtAwAAAAAAAAAUjpawQEKvvXdiQjjiRKJ2r4rnVeIWpIF5HUWL1N4fhbSJ3b6uyDax/nlTt4kN7c/wvJHtc3O0ifW18w3uv+A+DbWYVd++vG1in/fig+KFP/eS7u9nzjwlfvrET4VWG17TM26ivG82hBAHH/joZ08XvFUAAAAAAAAAgJpQYQkk9I1jc3OiI97W6XQ2fEWFvV90bWKTtCDdmTBcNamsLOzIykLfSkR4Mf7Kx+1tiWil2glWAIbaoaqrCv3zCd/2+tuohqsmQ21ie1WooUrNTmDR4erNXptY/33kqYjdXlW4CrVXcam6j/y7V1XBqrh9uvsp2CZWsW9c3///1sSPv/397u/XXbdPXHvttVtXtL9aUjOb+n9SvxBiuvRtBwAAAAAAAABUhgpLIKXX3jtxUAixKBwx6KnHU1YlRlZcOr45oys1g/Pq5ktUqenfvp3rkiwzZaVmRLWlfzLFMsM7IME+US8rz21Lta9TVKKG542pjJW/vvp/fKO4dmCfuHLlivjRD34kLl26JBojw9uIk2Umv0MPfPSza83ZCQAAAAAAAACArKiwBFL6xrG5tW8cmxsSHXFMdKstO4FCPP94jMqKS+34liJccRmYT1XFFxo3UVGp6VlIqOLSu47gGJDBKsXt1acZ3zJQqbkzbXAoR/X4luF90gksWlWFKsLVloHb1vFe4avULGB8S828PpHjW+4s8NTXVsTm5c3ueJbPuek5onJR1ZIxuWNMtWQeVFkCAAAAAAAAgCGosARykNWWbnByRD3+oVCMxxh+zjG+ZXAjPHOGdlfzxrdMVU0amD/N+JYDN90gBu8Y7v5+ZuNM/HiWWWR8SygohEy6sp7bH7jrs0vVrRgAAAAAAAAAUAYCS6AAnuByTDhOf7irpyIUK7RNrH8d3itLaROr2D7fFKF5I4K94D9pgkvHd6uVYak6QA4El7r7KO1+SRNcaueNDi4PvvzviQMvf2H38h/98EfiwvkLIpMML/2VhpIi0TYuP3DXZ0cr2RYAAAAAAAAAQGkILIECvfbeiYGt0FKMCeEcVoZiobyqyOBSHVqGVpMruHTU8wXWm2V8S2XVpDZ8bMH4lsF9rdjGyHkDF/R+Hbzj73erLTc3N8UPvveD7riWSu2qlsyKKksAAAAAAAAAaDkCS6Ak3fDSEUNCOKOOEG4VmPv34Nba4oNL69vERsybrO1u8AZogss0bWJD8yYNLlVBcHgbt2+h6mXZU1F69bOvEa/+xTeIvt19W61hH8/WGrZlwWTUAucfuOtzE0UvHQAAAAAAAABQHQJL+HzkgT866HadlJcddIT7+/Zj5LRwxKrYigpOf2Lk11fZe4Dfbe94q/v8OegJLbfCatENr4eEI/p7MzhCHa72ftEFzDc+b7942Rtf1f39Rz+Ibg3bwDauZSzw0AN3fW6t6DUDAAAAAAAAAKpBYGmxjz7whSGxVfk36gjHDVkGw7mJKkjxXbcuhFh1g0xHiKVPjr6L1oyAxgt+5S1umDkqtoJM9+dAKLhM2Cb2xcOvEPsPPk9sXt4U3//e96NbwxatlLeNDAvdmWX+gbupsgQAAAAAAACAtiKwtMhdD35hwNkeX7EblHQrvdQtLaMDS9Xlgaaky8IRi0KIxU/e/m6qngCNF7z9ze6JA27YNuYIcSDN+LA9FwQAACAASURBVJZ9fX3i5976enH13mvE6SdPiyd/+mSxu7p5waTuqusfvPtzp7NtEwAAAAAAAACgTgSWFrjrwS+44eREN6x0Q8rQcISKMQvVF0ReFwgsvRcsO0LMHb/93XO23w9AnBe8/c1j3eeqIw4nbRM78NzrxStv//vd6srvf/f7YnNzM/1+rqeNa6rZEizx2IN3f24624oBAAAAAAAAAHUisDTYXQ9+cUIIZ7Lb6lUxVJ6IqK50oi9IG1Z6f90QwpkVjpg9fsd7qIICNF7w9je748dOC0ccSRJcvuwNrxI3Pu8mcfaps+LvfvJ36gU3pVpSM1vOTVx/8O7PHUwwHQAAAAAAAACgYQgsDXTXQ190277OumPjhSJGX/aRpRVs+IL4y4U3yNxwRHfbZmcJLgEtGVzOCsc5vD2dok2s2xL2597yetG3u69bZXnp4qWCd2xpbVyL9rYH7/7cYnmLBwAAAAAAAACUgcDSIHc99EV3LDw3DBwJllPWW13pqK7eEEJMzt7xHlrFAjFe8PY3jzqOmBPCObA9ZaDa8sDLXigOvOw2ceH8BfHD7/8wwy6tpY1rcbbey04++LH/MFblagEAAAAAAAAA+RFYGuKuh77ojt12b/fWZAwrRUQoqVha1urK8OXuGJeOmLjvF967Zsc9BWT3gre/edpx3Oe5uk3sa/+nN4mrn32N+PEPfyzOPX0uYj2NauOaYTti13jowY/9B15PAAAAAAAAAKBFdnFntdvdD31x6O6HvrjqDyt3xB7aTxBWRl0Qc3XoQtXVjiNGhBCrR7/22cmW3xVA6b71x1+d7nTE7aLTWReis7W6Tm+tHfHN//KX3d+u679OPuNUPxpRsziZlpadG0pG/cSjwhIAAAAAAAAAWobAssXufuiLE0KIJUeIQf+t0KeWjiJm0IWP2VvBRk0fmqpfCHH86Nc+O3f0a58dCE0KYNu3/virSx0hhjodsSw6ntCyI8TG3/1UbPzdk+KaZ18jrr7mmuidpkkfGxFM5jPBowUAAAAAAAAA2oWWsC1190NfdMd+PCL8HSF9v4Qv7/2ZbHxK3XX5WsGK7XH3wpxTQojR+37hfafNubeAcrzg7W92x6w96nj6Pu8d2Cd+7h++Tpw/d178KGIsywa2cS0abWEBAAAAAAAAoEWosGyZux86cVC2gPWHlduqrq6MTz+Sh5Vdg44j1j70p38wpF8qgG/98VfdVsp3dgstt/4jnj79lPjx+g+2qyxb0sa1wO3o/tAWFgAAAAAAAABahMCyRe5++IR7EN4NKwdDW63KKXVhZYLUMX4S3ZiWyj6wMbZncFvELhFaAvG+9cdfneuGltuZZUd85799qzvfwA0ldFhuQigpYtva0hYWAAAAAAAAAFqEwLIl7n74xLRwxJeEcPp7W5wgYoyVL5SMWmWoYazvOl224bmO0BJIqBdaCjmc5cVz57erLK/ac1W23diOYDLqqsE3/Na7Dla/sQAAAAAAAACALAgsG+5jD58YuPvhE0vCEfd6t9QJ/eFE/SknqbK6MqrAUhd2KIPMbmj5wa9+htASiNENLTtboaXru7LKsr+/P3rGprRxFdHpY1Qo6ehm2rqWtrAAAAAAAAAA0BIElg32sYdPDDlbLWBHtrZSESLoh6zUTq8an1K3tLTVlcprU87jON2K0rkPfvUzJfS2BMzyrf/khpadY26Z5YVz58VP1n8g9vXvE7vcXrFNrpbUBJP6GbVGeXgDAAAAAAAAQDv0cT8108cePjEphDje3bjYUFI
1/gRM/R2yQqRufMn91ZWx24o7ZuUgAAcT71n/6k+kX/MpbhkRHHP7+33xH3HTgZ8Tea/eKp848Vd3e07V9zjpjeoeLXBjQNFMrC273gaiTeU7PDI+vcqcB9ZpaWXCfo1GdQniewhoxzwUxMzy+xKMBKFfM83B1Znj8NHcBbDO1shB3nHFtZnh8jQcGAFSn49RRZYNIbgtYIcSsEOLI9j2javmq+CV8ee9PJ3R5VHVlaC2JLxe+pDL52JVyS1TFo+ELj336ze+fVi0FwI7b3vGWAccR7oGfwVe86dViz95rxA+++/3i91DE20eFoWTcIm9/6J4/5AAYWsHzZbn3rzeQHJJt0vPYEFtdG1ynPb+vyuCE5wqQgufAr/tz0HMQeCTHflx3D4zJ39fkT+/5ygEzNMbUysJB+bjv/XiDkAF5wmke3vestcAPwQoQEHhPGgh8nsz6GXJZ/uv93LjECTdoKs8Jnb1/gyF9ns9oQd7PbEI+N4T38xvPEwDIhsCyQdwWsG77094XPEdowsqo6xKMXRkVSoqIIDN5daUTWV0Z/TBTX6d5XN7+6Te/n4OqQIzb3vEW9/Xkseuec714xc+/Wnxv/Xvi0sWL6XdbM6olsy7u2EP3/CEnOaBRZDDpDTiKCCOL0jtAvCb/XeXAMLBFHgQblT/u7wdq2jXLnufoEgfDUCYZTA4Fwvm8YWRRlgPvVTwXYA353Bz1/NTxnnTK+37EZ0ZUIeKEsYM1fi6Ls+55nqzx/QoA4hFYNsTHHj4xISsruwctVdWVRYSVyqW1o7qyd7n7Zj/0+2/5AG/uQIzb3vGWbmvp17z1jeL8hQvip48/ET1Du4PJKMsP3fOHtJJGbTwBR+9LdVMO8qa17jkYRUACa0ytLIwJIXo/TTmxQGVZPj8XeX4iK89BYG8w3+THvcqy572Kk1xhFPm5ckK+JzU5nFnyPA/pDIBc5Mme3u9TTX3sp7XuOemG9ywA8CCwbICPPTw3K4Rz1LslhVZXJggro65LVl3pREwviq6u7F137Pff8gGqpoAEbnvHW1d/5oXPH7z1RQevfHf9u7ta0Ma10AU+dM/nO0WvCYgiz3Yf8xzsbduB3qQ2AgejCEhgjBaFlFF6B4vnOPiFOPLx3nvPautJNVF671WLMsznhFe0TktCSp11+Rx0Py8uNncz0QTyxJlRg9+X4ix7ni98vwJgLQLLGn3skbmDwnHfjBzfm7A/fKyvurKIVrAiooJSF2Rqqiu9fx76/bd8gLP1gBi3vfOtQ319fY8N/9KI+N7a98RFbVvYRldLZl3o7Q/d83kO2KI0noO9bT2QVIR1T3UXB6NqMrWyMCEPaprCbZc1WcVtkScb9PafSc/jdTncxBxVLhD+NpLue9Zhy3bKScLL6kytLJjy+Xuy6uBAhjbu+9GkYe9JG57nIJ8X0SVD+d6JYrYFlDpWhv1TKwtzssWvDSb4fF6cqZWF2cCYtaaZtulk1L4GbIOVPvbI3KgMK31nboeCwKBQMBkjYXVlwqUpxNRlaVrBqqdPvA3Thh2UA0rxt//xP6/e9s63zv/kOz88snffXhlYGhlMRs0y5BkAHyiEARVYRXMPph1xf6ZWFjgYVR/3y/2IrTc+C3mQbFI+fk3kPjfvdX+mVhbmqbq0k6f6f8Lyg8GH5c8Jng+VMOX9aKCqFcnn6rTB70n9is+Ls1SS2YfvUom4n+HcTnxHp1YW1j3PF9MDLvd9+UQDtqMKE/I1HznJE32OGrwfN2T7aGtQYVmDjz0yN909eKAojSyrujJqHErlWmqqrkzQCja4hkOfocoSiHXbO986MPDcG773ote87JrvrH1nV+Y9VlEb1zyzKa46+fDU58eyrQjY4WnJNcEX68R6B6M4KFyBqZWFaRlOmWJ5Zni8lHGI5XhI05YGvMu2naFrI3ngphdSciJDtHX5WkDVZcGmVhZMOdB0e9mvl5a/J7lOuUEMz0OzyU4gNlb3F21ZfreaM+tmbZGfX9Ys+b69PjM8bks1aank64vJQff8zPC4VUVbBJYV+vgjc+4L75zjvkFHhZUiIpRU/BK+vPdn8rEro4LM+MuFL8hMPnZldJCZIbCc/8xbPkCVJZDAC9/5i9OveesbfuOHP/zRrs3Ll/UzNDyYTLm09YenPs+HQGTiOeA7SYui3Nblwag5DkaVg8AynqxemSPA6ZqXwSUn/xnEUzVM1Uo6G/I9apb3qGIQWMYjqAzheWgY+Rif4D2pFL22/8Y9Xwz8TqPzNroS5Te1srBo+MkQr7KtGwGBZUU+/sic++Vx0XHL+iOSRkdowsqo62qrrowa61Jox6cssLqyd+Whz7z1gxxoAWK8cPwXBw698kU/6bv6qt1nzpxpehvXrEtTenjq852CFgVLeFpy8eW6HLTiKwGBZTR58sG04a2CstiQB7poR9Vy8sxyTq7Jj8CkIASW0eSJBbMElVqcVNNSBo8L3lTGvW/Jx9C3G7ApVTg5MzxOR7Ac5Pe8J1t7A+KdmhkeN3lsTqXsrQGR2McfmXPfqB/zv1nrWsEqpsgYVmouSDBJRAVo5AVxdEGmmjZQ37puMu1WADb6m4WvnH7yh49/Zc/Vey7nSwIdzU+G2bItLdW6Xv9vfr2UloIwj3sW8NTKwpL8gnSEsLI07r69393XcgwboDTyMbZGWKnUL8e3XJUH0NEi7gEa90SFqZWFNdkGi7Ayv3554sea3LeVjV8I88nn7Kw8NkRYqed+Vvz21MrCHM/DdpDfo+bk96h7CSsr433fMuL4qDxRYb4Bm1KFw7zG5Wb68QQj2z/HIbAskdsC9uOPzM31+iirQsaw+MP0aRYR1Qo26oJkoWREBai8pNBQMmrtO/PQEhZI6PTjP/3Q7t27E06dMUaMmC1jzJljE30X0hIWWp6g8n4OIFXK3ddfcg+2y+ogoDDywLDbHuhLnHwQyw26HpNVumi4XlApg3gOCpfDewCY9yfkJh9HnDyT3hFOIGg297Htnvgkv0cdsX1/1Mh93zouv1eZcMK2TSENnzPyIbA0EIFlSWQL2KXeG7YuFkxbXalYhL+6MkohrWCjpldO5d/CcoLM/vf/509TnQEk8DfzX1l76smNs3uu3uOZOEOMqEkfCw8ltZuYOAYlsIQSQWVjuAfbTxBcoijyQM2a4WOZlOFeWfnMQeEGUgSVBPHl65fvT0tUISMLt7Wh/Kx5gudsZr0TCFb5nNgcMqikwr95DshONott/jwnW3GfasCmVIHOgRnJx7jJ3/fmbR2igMCyBB9/dH5MhpX+N21F8BhT3xiXU2qnD4WSGemCzNDqYyoyw9Pnqq7sXUZgCSR0+dLl/2N3X1++YLLKakltMJkYB5jg4x50JKhspAOeA8O0ckYmMtC5nwPDmY3IahbeOxtEtnkjqKzPSK8KmUAfScnn7SqfNQvj/ZzICak1CQSVVPg312H5ea7Nx0tnG7ANVTjAd9/MqK40FIFlwT7+6PyscBxf66lkIaO+zar+zwS1jjmqKyM3OeYS37WqLFYTVqqu06yBwBJI6Dv/7W/v2rNnz3nf1E0IJstZWw8HltAlq1PmGDuo8UY8ZwZzQAqJeFrA3ssey839HrNEJUv93AON8sDwcYLKRuhVeRHoI5Ln/YjnbTlG5PiWtDGvEEFlK/XL4TdaORbszPC4+719vQGbUgU+c2djch6wLiuNrURgWZB7Hp0f+Pij86uRYxLEVldGzaOf3hdW6lLKxJPEVIAWWF2ZSbi60v1P//u+8mm+NAIJ/PXc/3368qXLTyZp41pOMFnK2uK2g2AK3uoUxlZpj8O9A1JUtEBHPj6WaAFbqF4rTA6g1MDTRvJLHBhunAOM+YooMsxe5f2oEm4bc04gKJkcQmOVoLLVjsgT0dr4XLGlwmyM77vpWNAO1pYKYyUCywLc8+h8b5ycwYhALVrO6kqVfKFk1Dr026jr7FpydWUP5fNAYs53WtDGtZDtKHGtaAnZ/nWVs9xbrVfRwns9QuTBlzXGTyoNoWXFZBBGG8nmY8xX+MjXyiVCnUoNyiCGMeAKJk+cWZRt9vmM1X6950rbKtJsCW366R6Ymun7a7EB21AbAsuc7nl03v1gdL/jvriowkrdX7osUhVkhqavsroyqsBSn8amHKJSP6alPgzmICaQ0IXzFxf7+nYnn6GeNq6ptkO/FY543W/+KmfeWkge9H2ML9lGOCDbxM5ycBg9Mqxc4mSE0hFaVsBzgg3jVLYHY76iS37mPMFztxbuPj8uhxLgM2IBPCfOUClsll6L2NZ8ppsZHj8thJhvwKZUgRMv0jE5sDw5Mzy+1oDtqA2BZUZuC9h7Hp3vjUsQLfa4var8MHaKyAkc9QWRS0tbXam8tshQMmrt2jC4ewlfEoGE7r/rM7/zzDOXwxO3OpjUlnsKxrG0S+CgL8xylGpLCMLKOhBalogTbFqtX7aI5flhKTk+Op8563eYMWbz4cQZa5yQr1ttYUuV5SCvX8lY0A7WllbIkQgsM7jn0XnfuATxgZq2MlAxRfwETvwcsUFmaKtics46qiu1i/BfSdsVIAXnilgO53qxoV+xIlal34qM21fSTUDzyJZQHPQ123a1pe07wlbyS+oiB9MqN8uBlGJ5xqok7Gi/E4xraR950J/x0ZvjgGx7yQkEKXHijHWOtCW0nBked4+/LzdgU6pAlWUyJldXrs8Mj1vdDlYQWKZ3z6PzvnEJ4gO15EGm6qL0BZpZjsrHbKNmkepQMnqGtNWVqpVExZrv+8qnOIACJOas1lotqQkm9TNmWxdto83nBhjyoK++8wFMctQ9C9w94M+9ag8ZVjJGWD365YFguhYUQI4jxViVZrm3ZVUryIGwsrH6OYEgOTrTWK01oaVFVZaMY5mMyfvJ+rBSEFgm534xv+fR+TnluAT6sRXDAhPUX12ZLAcIbUXKIFMXVuasruxdxMETILnVQveVJl+sLJiEtWTFDwd97TRIi1jrzHH2f636+SKdn6wQ/xJVwkZq0wFgZERY2QqcQBCDzjRoy3uWrDhbb8CmlK2fCnE9C9rBWt9FShBYJuOeue84zlLwA2n88fHYekrF5E7Un3KSUBKpXUP8JNmrK9XSpwbaqsvYMNj3BxWWQHLZBnBOWS3p6GYimEQB5Af6x6i2slq/bBFLCx3DyWoJk7+gtsUIlSvZeLoBHG3j9iMxQkuDEVa2Sve5SGcAP/letEhnGkhHWhKS2RLkEFjqmVxduTwzPJ7tWK1hCCxjuK16HMdtnRhxxlHh1ZXpqSooFStNenXowrKrK/Vr110WCnf5EAokF/0mqMkXC6+WzDEbICtUTli/I9BznAPE5pJVtLQra457Gc8yHbm/lugGYA1CSwPJz56Ele1yhHbmOzydaTgBDF4nZKv6JnPfUzcsuNdGGPJEy+TAks+NEoGlhq5Vz1ZAFlOdGJpesYyICdJXV4Ylqq6MyTkT1Gz6tzBlyJCmujJ29QASe/g3/mhNFxQWHkxmLLLMRrkivqAaRJ4VPEeFChSOyHEtec4bRN6ftCFtHr5UJ+QJK2m7ZxdCS4PICiQ+e7bTIKHl9mOYccARZa7JJ6PNDI+ftuj7AJ2DFAxvB7sxMzzOZ0aJwFLB26onbWWg6uB7TH2jPsiMWUfu6sq4FaiujanIDE+fobpSGwb7L4mtagUQ+VyLzhAzJoyVVkumSlypAjGE/JAaatMOePQOSnFmqjnmGOuvkQZpDRvP07qcx7CdCC0NIKv86erRblaHlp7ONLwXIUq/DC2b/Byx5XOnyVWEeZi8Xzg514PAMkAe3NK26klbXam6KLZyUVddGbWMmCAztI2FVldGBZm66VOugYJLoAQZE8bmBpORV6H9PGElFSqI4z5GVmlZ2X7yIDFty5prkpMD
1osmwkpADbRkfDApU+Rtl0Lb7ks40SGmwyWNFyvH9TjZgU8p2oAUteutg8j6xZYzWRAgsPTy93LsHQrMFakUHmXEbkC7IjN8qZVK5c23J1ZWqlaQNdwEkfrLFX92EYFKzHZVvImpDOz1k0C/PpCe0bDcqk5qt36Kz3VMhrERAG8YHg9oiVWlGGbGl6pnONMjoSMPfr2wJdjjRycPwdrCnZobHVxuwHY1BYCl53sjjP4iqAjXd0fHABGVXV6ouSJBzxm5j6uEmNTOUU11JRAFk0ohqSU36SChpPcJK5EBo2WIy8GGcpeY7QpWlH2ElIjR6fDAozem6b6G1jG/V7Okex/cnZNHY1rAzw+Pu43q9AZtStsN8vvahutIiBJYRYWXqQE0xhSrIdDQTqKd3AtPrt6icIFNHH2SqaKsuY8NgqiuBwtQSTGa+Kv9moJVSnVAEqBFattMIgU+rUAkrEVZCow3jg8GPk2bMZXqr5iHCSuTQ3/DPdoxlaR/Gr7QIgeWWWe8beb5ATTlT3u0T4dwyeZBZdnWlcmkpZ9jajzHbrQ13VXWoAMqXvler5qrstAsksWwrwkoUiNASKNcIzy/CSiQySMAPNMYJOVa2cWaGx90D4HfyUEMOhxv8/HAf3xsN2I6yTZp985IxvB3s/Mzw+OkGbEejWB9YTq0sTCbp5x4fqJVcXZmAKpgMbVVMzpmurrT8IDPZLiCIAMqVIX2sMpR0Yq9EC3nCSs4MRlF6oSWVLUA5rD6oQliJFA7L4xAA6rdoatvFmeHxOUJL5NTIE2xkwGNDG80Dpp5UkZLJ1ZWcxKZgdWApP5T4ysizBWrJg0zVRWkKNNNWVyajn0e9S6Lnqb66kkgCKEa29LGeaklCSQsQVqIMhJZAeawdy1JWlxJWIo1pqpKBRug3uR0foSVyOtDgE2xsCXpMbl2dlKmB5bockxUBtldYziZpM5csUFPNpJteP4GqulKXTaqCzHKrK9VBpi6sTD0uaHzWS1AB5JKwWrLWNq4FrY2XilaZWlmYI6xEiQYZJwIojXVVYzJ04mAD0mr6+GCATQanVhaMrdYitERO00082XNmeHzNbafZgE0p2xGbT7Y1vB2sDVXCmVgbWMqSat8DPlugVl11ZdQc8ZPEbKNmI9JWV2YSOy5oXLgLINtzr8ZqSSf2ymLXh9ZI2qodyGlEBuMAimXVWeDyIMocYy0jIzckmWbnAY1wdGplwdi2gzK0PNaATUH79Df4hDRbvs+Z3BI1jsm3nZOoI9hcYZm8FWxsoBac3j9B2dWVqgsS5Jyx25hil8jLCqyuVC1DcYku1wQQ/5xqbbVklZWgqIw8SHCcPY6KHJFjzgEoTr9lz6tFOgIgp3tpDQs0xpzJlUwzw+PTllSkoXiTDa2ydDtcnGrAppTN5nGvTQ0sT8oqYShYGVjKLwQjcdPFH+CODzLDgZoTM70TmF6/RWUHmarrUg/zmSsMppwSaJQmBJOEkkaS455R8YaqneBAMVA4KwJL2T4w9jslkAAtwYBmML5V88zw+AShJTJocpWlDe+hgzZ+ZzW8HSzHvjRsrbD0vcgWWl0pEk2QahGO+oLIpeWvroxqBRtNuw+j1h47Lqgu3KW6EihVZCJYQg1j4cEkcWbbyA+ii7TUQ00WbR4XBCjBiDwJxViyI8BRHjwoyAgV/0BjHDa5NawgtER2jQwsZbvj9QZsStlsrLI09bV4fWZ4nHawGn2N3bKSyANSsQ/4+EAtX3WlYhHKVrDqDfP+6r8gtFUxOWeCmk3/FpYcZKpWH7uN5BBANtrnTsFPLN15IeXcALTLNC31UKMD8gxHm8cGAYo2ZuoZ73QEQElmp1YWFmeGx0+zg4Haua1hD5r8fHRDy6mVBffXI/VvTeHc8Mpttei2C3Xvw1W5gjVdC8aplYVR+etB+eP+PcRJtdu6bf9lQNg07jbd28DtKpKN31VNvc2ElTGsCyzlG872m03qsRUVwWNcnWDqfE0XSmakCzJDq4+pyAxPX251ZYI/Y7cRgPYZWZymBJO8HLQGVSpoCPds+smZ4XHa8gHFmDC4RdccBy9Rgl67vWl2LlC7fvkeZnTls0Gh5bIMJ92f1axBsxwPMUS24hyVP6a2p0xqsqEnbc1aEFg2OTAunOHtYDnmEMPGlrDJ0vnYQC04vX+q9AFcguA0R3Vl5CbHXOK7VpXFasLKbGFwym0klAByaEMb1wQvZHR/bS35IZQqFTTFNONZAoUZNLEt7NTKwjTjVoacEkKcFEIcE0J8WAhxe8zP2+S098mDzNhxr+ntlIEWOeKpuDNWS9vDbshtftvM8HhnZnh8dGZ4fNoNHMuoip0ZHndD0NmZ4XH3ePL1Qog75XufjRo5lqK8321oc2xT+3hTqyuXdZXe2GJrhWVX8dWVUfNoF+EPK3UpZeJJYipAC6yujF5O8pWE9wnVlUBjRDy1Km/jylPcVFSpoEn65WOS0BIoxqhJJ6XIA3Smn72fxElPFYuyGiUBXyssT/XKGIFwt8KS8SyBZpi14XNhiyot3fefuTrHfpPB2JxsGzwqKw5tq7qcaOh4irOGtjj2GpHtqm0IvEwNLDlhPwGrKizl2YruOEU5A7Xg9P4J0lYuRi4yxQUJcs7YbUyxS+RlGVrBpphKFWSmyDUBJKUpbsxewFhgtWSuJzdll00lW8Ha3lIHzTMoK6gA5GfagQabDzAsy4qS690KE1lpkjWsDPFUr4zK6pUPyzHIbHSEKkugMdzPhVacQNDgSssNWZF/SL7/NGbsN1nROSa7CtjUMaCRzwn3s4Ql90MTw+JCGdwOdsOWlr552dY
1SVvvBfysgi6lODE2vWEbEBPVXV0YVWOrT2JS5ZLFhcLI15l0AYCdPjpctJ8yYMJYaSvp/3Jec3g+ag1awaLhJDhYDhTCmlZ47xq174LoBm1K1eXmQ2G23N1dGq70gdx0yvDxo4UHgHk6cAZpjWn53MV7DQssN2T7crSabbHJFmQwuR2XLcxtOtumXJx83kQ1jA9pwEgXVlZazLbDsfmlOWxmYuu+r4qI0i3DUF0QuLW11pfLaIkPJqLXHjgtKdSVQpfzBZDmzZdkObzBJSNkKs7SCRYP182UCKES/CePCyhMYbAuQjslqyok6DxJ7DgLfaVnFJVWWQHMcsKGiqUeGlidr3oz7ZFA5XcWJMkWR1Z9Dloyl2MhASd4Hpn9eaHJgXBQCS8vZFlhGKry6UnWJrroyahkxQWZoq2JyzjqqK7WLiM96Y8tYySSAohRYLUkwiQhyrA/T1XQUJwAAIABJREFUx5ZA+41Y8EUQqIIJVZY2nWRzUlZUNuogsWyfNSQPYtuCKkugOSZtqbKU3NDyVA3rXZbvQZNtCiq9ZJeACXmizUZztqxwTf6eRJVlixncDvaUbFuMBKyrsMwWqCUPMlUXpS/QTFi5lHirlEnlzrUpKzJTV6gqVpI+3FUuNMlEACIVEEzmol5oVChJMGkMDsChLWYtOzgFlKHVgaU8ycaG8ZbdaoTb5fhgjWy7Jw8CT8o2sSYfBO45wnsQ0Bj9llVZnpbv31WFlu5r+ttk+/HGtn5NQ55oM2pwtV+//IzURHMWfE44bHAnBlNPGrYhSC8MFZY9acdWDExQeXVlhpxTtcYUw03Ky9IFmeVWV5JRAoWrrFoyOpgsBS8WjTC1suCeCThi+35Aa1jVAgwoSdtbwtpwcMGtWhxy2682YFtiye0cqqn6p2q8BwHNYVWVZYWhZa/962LJ66mcrKYy+f2qqW1h3ceucY8nBVOrLE0MLDcseUwWxqrAMnWgppgiWbWkE/WnnCSmb2vcJQVWV6qlP7KvrbqMDYOprgRqYWIb11IqQVEgqiuLtSFbJ3l/bKg6qZJtLcDgt87zK7cDbX0OyZNsBhuwKWVxH893trH1nqzAqbL6py4ElkjiVOC9yoYwvw79Blf+KJUcWvaqKlvb/jWJGqpVq9TkLho2HHcwLrA0uB3sosmvc2XoM+8mZVB4dWWGTQguKVUoGbUR+grQIqsr9WvXXaYLd53gn7HLB1C2iFMIqn5CRq6PV4ammlpZmJYVa0jOPejknpnrfrjtVr6krYDxtOpxz+49KP8dsmg8trz65RdeDhqbaUM+t1Z7z7WkzzHZhsn7nBrlNS7SUO81rGVMPtjlPvZH2zyWjnvgR77HLRkcLLst9yZka0HYad3zHtX7TLiWpm2m5/0q+L7Fe1Z607LdpDVKeq11v+OM2XIA3+D3q0E3YGri/ei+Rk6tLCwb3t3JPSlwtC0dMhIy9aQQPselZHVguRWQxVQnhqZXLCNigvTVlRHbGHdBTM6Zrq5UH2Qq50idfKZbfngefZAJIC9d6+cKd27antJoLHmmHIFPvJPyi+xSUQeRPV9gfF9kplYWegFL74cAM9rRqZWFWVPG1EH3DPe5vM8z+XhY8z635PNqQn7Z5kDwjtG2BZayutLU+/CUDCtbf6DYktByggNdVjnV+ywo36dyP08971c+8vN573Mg71vJuAHBmIntS3UKfq29T45HbBW5D8fkiQcmfe8abXCrS/cEg/sbsB1lmmjpSYFRTAws1w0LlSthW2C5mujsCkXSGNsYNm31XyhkzFFdGbcC1bUxFZnh6TNUV2rDYP8lsdWVidZJgAGkQzCJykwSiEVyQ8q5qg98yKBmtTc+m/wC3fvhvgqbNnicEFvMu4/3MivK5LInZSvhCfm44QDwVkVP25haXWlMWNljQWg54lbIcdKM0Xon0ixWeT97xnlblO9bB+XnwEneu7QmbRyLrKDX2jttrhiXVX9jhoVojQ0s3ZBoamVh3fDXsyNTKwtGtFU2uB2sDePhF86qMSxl+4yuZIFaQGwoGTcWY7rxKVVBpm58yvzVlelDitTjgiYquNSXsVJdCRQjamzJesaXLHbwycpuE2JRXankfnE6JoS4fmZ4vBFnabvbMDM8PiGDhTvlNmLHEXkgD+3jnhRwyH18V9n+0j0gNzM8flA+123XqueOwdWVxoWVPfI2TRg8ziyfo8zknkhz+8zw+NDM8HjtnRzc9cvtcF+zb5fbh7ARWz8T5hiP0X1tfhXtrbe735j02XCoAdugw1iW7UE7WGyzLbDsHqSID9Sqq66MmiNRK1jdXym7tBZZXalaiaqCUrf6iFHyIv+kuhJoiKjccftFoPxgknCycSao2Nu2Ls8sdislphs63sdpT9BCcOnHAeN22ZAHgsfqPAjsPtfdg3QGBylJtG38IBMPbrmPvwmTxwuTJySYWglv6kE8W817TqRpZJs4d7vkiWyHCC6VrP1MmCG0XG/7mMlFk58NTfmO1fTPeIsWfAYnsGyuk7aM1Vs02wLLnYMVsYFaQGCCsqsrVRckyDljtzH1cJOaGVJXV6qWEXdJgiCTsBKoQc3VksmCyWLWj9wIeba+JB2TQWVrzrALBJc2hy09E7JiGM3nVlUebMqBYHmQbihDRYIx2vLcMbi6csyGg8WyY4GJ4coBOUYu2m3ZE1S2osWvrLqckCfeLDdgk5rC6mECUoSW7vVDhJVKxnxHbvL7k3ysml7hNtj2zwgGt4OlujIjqwLLf/sPjqw6sQfc4oPMcKGgEzN9TN/WuEsKCTJ19EGmirbqsuLqSgAlakAwmWDOQrcDxTH4wG8ay/KLemsrdmTIelCGQDbrJ4BvhWOyqrJRZ7PKg9NZ2qiZoi0HUkx8jh9rahVXSSYNPcmGcZTby308vm1meHy0rWORuoGTu/2cxLatX45FaC35OWtM83gwtg15EeQJNqacBND0z3g2jCHY9s+vJr6erjdh6J+2sq3CUnQHiE5bXSkSTRAvlFsmDzLLrq5ULi3lDFv7MWa7teGufnzK2OpK8gkgG22nVu2V2VZXSLVkwu0gv6ybzeGO++X9w20+OOUlW8W6XyTeZvmBKg4YN9udTT45IMHBPZM1fryvqZUF92D8YAM2pUin2nzCTBbyeWbi5w/awrZTr+LfiIOWnpPYqLbkOek9GSv4uYawMhlTgrRGB5bycWp6a+uxlncCMvH1lOrKHOwLLB3H90FRF68VXl2ZZPOCawkNR+kErw4tIEHNpn8LSw4yVauP3cYUQWbkZQD0aqiWzB5MljMbyiPbkph24Dep3lgtxp3NKQ+42dza8oDtZ9Q32J1taLnsObhnm8YHloaekGDliUPytcC0MZhpC9s+jaz4z0uexOa+j93X7luSW9sDgkLIdq/e0JKwMiH5vcqE96o2vDeZHh71tzX0ox0sVGyssAyf2aZIGuPqBFN3KE1VXZmFMqncWUVMRWZ4+nKrKxP8qVlR71fSCCCfuqolRf5qSYLJNrC1utL4sVo8gYutLWKpsmye+1o2Pqz7+vDhBmxKlRodWMqDJUcasClFmresFWyQiZWlvP+0w0bTK/6LMDM8PilbxNqq39ITkEI8oaUbvk0QVqZiQvV14wNL+XnI9BNu2/oZwcSTgZdN6LJVJ+sCy9963cTp3gG2NCGjevq4AC5BrWNMkJmqujLJNgavVWWxmrRBdZ12DUVXVyZcB4Bi1dbGlVCyleSBXxur0Kw5o9jTItb09joqh6dWFtpQLWaLZXnQtFVkBbZNLfWa/pwxMQiyqhVskKFVloQjzbchPwtaUVkhb6fNwwXQdUOS45weNPmkzZKY8FrR35LvRqaPZTnS0u+otINFiI0VlsL3wKm4ujJqjvhJYraxwOrKTGLHBc1SXRk9UaIwGEAqJrdxTd3KGnmNybOObWJl+6OZ4fEJS0NLDlA1w0bL7wubqqWa3jbPtPtinjO7u0w7ODnICTON1gsrrQpsZFtLW8N0Pg8iF/l6YcLJNY1/b5InWJh+ckWrTuI0tB3shi0nLZXJysDyt143sei4bwi649eBxK3s6krVBQlyztht1B2jL726UrUMxSUpcs3wHGQQQGYmtnF1X6dUP6icbV/erR6rRYaWtrWHtbXlcdNMtvl5JwMlW8YAa+yYxoaOuWx1daWHCa32gqiybK4xW6vL5O22sT2sW1nGcxJ5mdC+vS1jLJteZdm2E/CoroSSrRWWYudLXFxloKpQ0ImZXheoVRpkRvTn1geZyjlSJJ9pqysjFho/T2g3E0oA+TW/jWtUKEkw2QwGD5oeZd3msNJjwoJxQbwOyJAD9Vk25OxVgqX6mVZdeZLqyi1yP5jWeplwpJnutHzM2F71ko2hJVWWyMuEEx2a3kmjx/TA0j2Jok2vSQSWULI2sPx3r5uY0395KbYVbChQK726UszP3vHeVAfS0h7s3womY7ZbG+7mrK4EkFPz27gSSraSTV/aN+TZ9LaHlULug1HLxjDiAFW9jAj65HPHirbKDa5CMe25bGJVYR6m7Q8Cy+a5j/ZvW+R+sG2oAJ6TyMuEwLIVzwNLPne34kQ8Q090P8U4vsWwucLSPRzua+cVW12puiRnK1hVkBm
1KAGNyzsBlG0I4d87e8d6IF6iCqyvVq0hwkb6MVRdkBi+juhIoGG1ckY9NIc4kH0h3yC+ANt3/BJb1WTasksX0s70bS44HeMCgm8S4OWGmVb0dYBzLRnHfj2gT7yGHCrCp68agPPAOZGLIZ9o2PQdM/9x9uCWfE0z8Ls13uoJYHVj+u9ff6R5kPCbi6xtzVVcmnCOWLsiUumNozd7x3ogvqdHbUHZ1ZYI/YydKFAYDSM7kNq4V3S4o2dIO9iQHhcPkF+5jTduukgxy0Lg2RrVRlSc+2HRwt0lMO1hidUtKFUNPLKKiqxk2DGwpXZQJy7pu8JyE7VozFrj8XGBau/igNrw3mfYZfIMuJ8WxvMKyG1pObx8gCJRYNq26UsVz9cmtsPI92i9kqmxAFxiortNuUu7qynrCYADFqD2UdLyv5SSWVWvZeAl5cIBKY2Z4fNqi8IUDVNVbN3ScMBtOgGji84V2sHYw7cAkYyg3wzTjxarJQMCmMZr5PIi8Wv/dqWWVxqZ/7m70sQpD28EuMlRQcawPLMXWYewx7dlfqkBNF1YmCNTiJ9FVL4aCzA/P3vGesdk73qN5YqQ/WK8NGVTVlbo+rolCyZzVleQRQGUaEUzGX4nq2fJlfYIPo7FsaY9GW9jqmdpqh6CpHiOG3R4qLNVMC5UILOvntoKl9ZuG3D+2nMDGcxJ5mfDdsjXPA9kpab0Bm1KWAw0/mdzE79B03yoQgaUQ4rdff+eacNyDrM52aFlE89F8oWTUKn0VoO72vmr2jvck+qCctrpSv/ZkU6mCzBS5ZngOUkqgUgSTSMmGwNI9QEWwEENWwM03eiOLwRn11TPy+SerdEw+cNI4BnYF2KDaK5Jp+8W0oL2N6LSRjC0nsPGcBNrH9JNOCCyrY2oHoNr0WXq7Q377DXeu3v3QF92DTkuOEP3b16vaxNZaXbldYOm2tYmpqvRsYcrj+vmqK7PQB5nBy1TtdAFkfPaVFUAqV5b5ymyr47WhMrKtR2vGrsjBlgMvRZiWX0b6y19VbfqnVhaGDB0jrYlOGR7IuGHs0QZsR1madua9aRUxvA5FM64rAu89tZrn5IBk3AO4UysL7glsR9qwvXnwnGw3+V1W9bnAvSxJq9Ok0+nmb7vRlnV6mJPfV039rnpkamVhsmmdoQxtB0vHhYIRWHr89hv+xXZo2X3ByjG2Ynyglqu68tjsHe9JOB5A9FZnqq5UhZURl6StrlSvM9FEADIoNaisMJgklGwMGyrN5jkQkZx7MG9qZcH98H5vW7Y5o1GCgsqY3mpnyfDAsmljG5n2vsXrUDQT980Q93ltbBqbsQjTNgSWPCebZWpl4aAQ4qDcqN77vTeUtOVkW0Rwg7yplYVFw1+fJhoYptEOFrEILAPc0PKurdDSfdE6ED8WY7oKSlWQqRufMrCsDeGIieN3vCdVK6wiqivTZg+xS0gbZOr2IYD6tCKY5PWiIjaM3cIBqvRsCSw5q7IaprfaoZVQtUxr4cfYynY5aPsOqAnVlSnJE9hsqLJkHMsKeQLJIU8Q2fvX5O4uTda0E9OSMP2EikkCy9LNN62K1QQElgq/44aWD35xSIaW3S+yaaorIy5IPU/gr1PCEWPH73hPIR+OM1VWpaiuTPBn7ETZwmAApYh8gjWljSuvAA1geoXlMgeo0pNnrpp+kIoDVNXYML3CWT5f1rdOmkSZplYWTHzP4j3KLoyhXA9OXstmlsASWbitdj3BZO93KiObqXXPAXlCxbLB49AeaFK7akPbwaYqKkMyBJYRfueN/8JNx0fvevALk9s9rYuurkyecx47fnvSFrCBxamqHzVpQPXVlVEFlTnHBQWQnsnVkrxIVMHUD/k9VNBlZ/pBKveL4ABnVpbOljZrawSWlTDxwPLk1MrCRAO2o4naWPURx8Tb1HQnOXktG/dg+dTKwinDgyYCy5xkOOn9Mf37JZrBPd5+v8H3xaRsDdsEplVXrs8MjxNYloDAMsbvvPFXZz/64BcWheMvE88dqCWrrnTP8pg4fvu7K/lQrK26VFVX6vq4Jhr/M90goWn3IYAY+rFyC1FpMMlLQG1kSx6T8UE0B4sOUtHOs1y27N8lgw/QNel2mfi+RcWJXbi/q8cYVfm4J7CdaPMNiNHPCWzpyG4HvR/CyfZr5Yk0M8PjS4Z3OBlr0GuTaYElnwtKQmCZwO++8VfdwHDiow98YTrU3zpmfEq/xNWVJ90Pc8dvf3fhB2bStoLdCiaTt4JVBZkpcs3wHFRXAiUq7tlTaRtXnvRNZPoZxYSV+bkf5o+3/UZoEFiWz6YKS5SPShi0nnvCGBV/ldng5LXcFg0PLAWfB/UIKI3X5hNppg1+feqXQWGt4Zqh7WAJLEtCYJnC7/78VnD5kQf+aFqWU08kOQNDlbmFIkBHrMsPcLOfrKii0rcFadOGRJPr0kl9kBm8LG0YDKAcBJOIYPqBXz6I5rdoQWCJctlyUJ7woRocKIUJDvKaURnCypzkOM0nDTxg7UWrZg/ZhWdMBpQm3+9ov0VZBd5v6H052YBjGqZVV9ImvkQElhn8+5//tTV59sX0R77+R+4BqlGn+wbsDG0HmPGB2oY886r788nb3136WePVV1emzxuKGBcUQD5tH18y9QkYKILJLWHXmzJIfZu5H+YNbwtrelvk2ln0PKSVXMnkGd6ACXjvqQ6BZTEWDQ+uhmx/rMhxKCdkSEnrarSCPKHCDfSOGnqPDTagK4NpgSWfC0pEYJnTv3/Tr63KFlWzvSX96+XPj/Z+d7ofWLoHz1d7F3xi9F2NahGhOrivPdyvuDJ2CTmqKxNsEYAM2j6+JMFko5h8wIy2TsVZNPjABRWW5dow+cZ5yTFfm7NBZuL5ClMQWFaHz4PFMH0/WnlCjKyknJSBhKnjACKBlo/jOmtwYCnkc3SyjhUb2A7WbRNPF64SEViW4PdGft37IawRH8gyHdhXVVemGJBSvcboiXJXV5JdAAWiWhKpmHzwlwNUxXH35b2m3JgAU9sHNQVVzigSIQ+ANJZbfAC+USzouGHNCTEygBiTAQiVlOhp7Tiu8vVpXghxpAGbU4aJugJLA6srCStLtsvoW4cu3QH/1NWVqmXEXZIgyHS0wWO6IBNAGk7ET4yMs0VxX4tUP2gNk8MaAsuCzAyPG70vZQssAM1HYAlTjHJPVoLPgsVif7aYW005tbIwK8fPPUFYCcOYHET1T60sTNS0btMCy9kE0yAHAkuLacOAiqsro6dOHmQSbQBpJXgStjmYLGiboWd4SLPBQOqFWzbs9ngxLl55bDu4afLzpAkILAGkQZV/sUzen8a+v8ig0g1zvi3bZtJdBMaRJ9ieMvierTw4NLAd7CmOEZWPwNJwaYOArWAyLgh0AtP7r0uRa4bnSFjYFbtQAMlVFEpWFkwSUFbN5JCGA1TF4yAVgLrxXIUpOFGmGnweLJbJ+9O48RtlULkkg0pTW2UCXiZXzx2WY85WiepKpEZgaanUwYFi8nStYPVBZvAyqiuBCrS5WjJxMEmCWQGTD5bRsqp4Jp+NSAgCAKgSrRgrQCVFsWaGxwmAWyBQUTli+/6APWaGx93H/YbBN7jqtrAmBZbu42KxAdthvD7bdwB2pK2uTPCnmi+HTDc+pSrIJIYAylXpWJKZV8UrQY1MbgnLAaricZAKWXDyAIrEeLMAkqJFdzlOEbg3k2zfOCmEuNf2fQGrzRr8HHADy+kqVmRgO9jFmeHx0w3YDuNRYWkhVfigPdRfdHVlonWkCzKj5gGQTDvauGYrs3RvQpWZK4xCYFk8k/cpIQjQDoy7BSApDkyWw9j9OrWyMNqAzchkamVhTJ5cSFiJrEz5PmRy288D8rleBdrBIhMCS+xQVVemGJBSnQdET5S2ulJ1ARkEkF072rgmb+naCyaDP66B/TfuL+Q2wTYElgUzvK0aY4mhKFSUAkAz0BmiHOzXBnGroKZWFtw2h18ycRxOVMqI70Oyim6+AZtSFgLL9NZpaV4dAkvLpK6uVFAFmSlyzfAcVFcC7ZYtX8xVLRkVTEa5Zt/eq3iUlcbYqjLGLCqNyWOCAABQmamVBar70UZUrjaErLRaM6xtI1AEk6vpjsh2raUxsB0s1ZUVIrC0iLaKKm11ZSKJksvAr8mDTDJLoGI1tHFNE0pGeVZfn3jWVX27ebiUhqoypMWZiUiLxwwKQbgDA/E5rFxUvMNIsqpyVlZV0iodCJDVdCaPYzxR8vJNawc714BtsAaBpeW2gsm4NquO/7ciqysTUAWToS0mrASK0aA2rpkoFrbv+n3iiuNQ0YW01tljQDPItkxAEQh3AKB+BME1mlpZOCjvg6PW7gQgGZNDqsmSl29SYDnP99FqEVhaIvUYdYrJYxu1pggyg5elra4EUICGt3HNtFC
1FfTcOXDx/4fwTPGSQEu1gAQAAABhDdhpwK8cGuVcBvZnh8TmDT2Q+UFbnEQPbwS42YBusQmBpsbTVlQn+jJ1IVV2pyyZVQSbVlUDZ6m/jWuRCd++5ajPnVgBAEiPsJQAAADTR1MqC2wLyMVrAAqmYPHZhWVWWJlVXrs8MjxNYVozA0gKq6krt4f7c1ZUJu0emW0P6MS0BJHgiNrONazFp59b4lX27+/pyLwgAAAAAgBaSYeUJ7jsgNbfK0tQhhsZkNWThyy1hmXVh7MoaEFgaTtsKVlVdmWJAyrKrK1UX0CkWqEbdbVzz6i362uuvExcvXd7DwwYAAAAAYBvCSiA7OXahqRV2/UWHiwa2gyWwrAGBpYWSxQOO/7cU41Oqh6tMNz4l1ZVANZraxrWYVTli3w3XiUubl0pZNwAAAAAATUVYCRRi2uDdWHRbWJOqK0/ODI+vNWA7rENgaavY6sos9EFm8DLV+JSRE1NdCRSuqW1c06wubrzN624c2Lx0kcASQCXW2c0AAABoAsJKoBgytFo2dHcOTq0sDBW4PJMCS8aurAmBpWW2ju/HVSdmr65UUbWC1axSGWSGtliXcwIoTgNCSX0wGc0dv/JZu3d3rly5wgMCQBU4+xIAAAC1kwHELPcEUBiTqywniliIYe1gN2aGx2kHWxMCS4toD+0rroxt1Jo2yNSFkhnRGBYoSIPauKYNJqMM3HSDuHjhwrN4iCCjEXYcAAAAULiD7NLyyNBgSY5PB6AAM8PjSwZ31CkksDSsupKwskYElrZJUV2Z4M/YiVTVlbrWrmmrKwHk0NA2rtlWFv7Zd0O/uHjxYoG3CEBBBtiRAGqyyo4HkEKRbfKww+TAsgnvM4uElUApTK2y7JctpPMyKbCkQr1GBJaWKLe6MqqgMvn4lMkm0YWtBJlAHYpu4xorcpHhCwduutG5QGBZBQ7+Iq1B9hiAOswMj59mxwNIgZOskErd7zNTKwvTdIoBSuOeDLBh6O7NFVga1g52WY5bipoQWNpEVV2p6+OaIJRMOFH01alCyajlk1QCZauqjat2cSlC0Gfv2yue1feszqWLl3hslM/Yg79TKwujDdgMAAAA1IPAshxUrpZAjlt5r3E3DGgIeUKCqa1CR6ZWFvJUv9MOFoUhsLTA1jH+5K1gVUFmilwzPEfp1ZUUWAJFaUQwmXFd3u3tv+lGce7sOR4XQMMYHgIvNWAbAABAcQjWykEQXI5FE28U0DAmtwrNU2VpSmC5wWtp/QgsbZYoZ9Clk/ogM3iZanxK3bqorgTKVef4kvpqyeTBZNQwnAP7bxSXLlNdWRGT2+tRYVk8DlABqNsp7gEACZk81mKdTG1ZulzXimUr2AN1rR+whWwVOm/ozc0UWBrWDnaRISTqR2BpuPzVleljCke7hvAFqiAztMUxOSexJZBFs9q4hhaZIJhU2XPN1d2WsOfPn+dRUQ2Tx7DkIFXxqFQAUDcOQgBIigCoYPLANgok2zjSChaojqktQw9MrSxkqZQ0qR2syRW0rdFn+w6wluKgf2zMmKO6MnqidPPogkwAFdA+59I/IZMEkGntu+G67hwXzl/gEYG8CNeKZ/I+pSUs0A4ElgASc9vZzwyP8x5fHJM/C67VtF4OsBcnWCWreu6vlvBZwr0PB8u+cSiG+54wtbJwytD7bCJDS1RTAstTM8PjJp+Q3xoElqZTVVemGJBSnSVET5S7ujJDzklmCZSgBcFk1HYM3HSjePqps2WsEGomf6DjS2PxaLMLoG6rBrWtAlC+IU5KKpTJnwUrDyzl+PC8pyV3St5Pq57gcbXuFpBTKwucTNU+bsh8wsDbddithE/6nDCsHayplbOtQ2CJrnTVlVEFlcnHp0w2CdWVQKkKDiVFKcGkZoGKq561u687fuUTjz9R9IYggvtBdmplwdjdw1n1xZHtqvpNuT0KnI0JAIB5RqlgKxSBZbGma1hnW6zLkw3cz+hLVE6hSDPD43NTKwuzhn6/nUjxvmdSO1gCy4YgsLRI2dWV0VMnDzKTVVc6+qsBpNDOYDLK9Tfd2L3m3NPnit5A6JnaDkXIgyoElsUwurqSwfmB1lhirC8AKdAdolgjJt2YgEoDS1ldafL+TGtDvscvyoCyrha9sMesoZ8pJy0MLOf5Pt8cBJaW0NU3qoLMFLlmeI78Q1WGKihjrk6+YgCJnzNVtnGNuyopt7ry8qXLYnNzs+gNh57JH+zGOHO5MCYf8DvVgG0AkAwHIwCk0T+1sjBEdVZ+MmAzWdUB2YTh+zOpeTeknBkeTzvuHpCXqYHlgSSdpmgHi7LsYs9aRBEGpGsFqw8yg5flrq5UIpQEiuYGk6qf7JzoH81VWfW2fVffVjvY8+fP8xipnskViIPygzjyM6nNd/8kAAAgAElEQVRdTBBncAMtQegAIAOqLIth8mdBUWVFnxxq4UhV62sgt93rnW6TpZnh8QnCStRBVuTNG7rzk5wQYcpr+jrDADULFZYWKGJ8St1ETvwaYoNM3fiUVFcC5chfQVlutaRvcQnG27x+/w3dfwksa2F6WDPGGXf5TK0sjDF+JYAGMbGV+X2yDR7swvtPNdKM54VoJgeWyxWvz+jwV8Pdz7MElGiQWUNPHhhzT9yOaZNqyusQx3oahsDSFrmrKxPkDwkGoEzUClb3ly4fIbMEStKsYDLKc269WVx55grjV9bD9MBygg+xuZl+UIUDxkC7rBkYWA5wdjhQGrfjxkHGxMvObavrthls6/YnUPVjY7Li9dXNraicnhke5zsZGsXt3DG1srBs4Hiy/boTt2kHizLREtZwqvEpRfI/Y+dJW12puiBBzhkeczNwHWElkFc9bVyDP/La1Cvbc83VYt8N/eLcOcLKOlhwgHREtl1CBvLLjOmBJQcwgXYx8SQDWlYC5bItICqa6fuvynawpoe/QceEEEOElWgwUx+butdtU77fn+RkpOYhsLSUKshMkWuG5yi9uvL/b+/OguO48zvB/0mCIkWKBKiLuklJrasvUj3uxoy9EWLPHrZnbYvt224PRLX3ZR/Uojzr8XgGbkJeePfBjmioZ/ZlZ22R8G3PbJMb+yyRG/sCx0Y0GRsTE7Nju4lunZREEbwPkLWRhX+BBSArqwqoIyvz81FXE1WVVZWVdef3//v9dX2FzlsWBvYolKwsvgF17gZHHrin+u+lS5c8T/rnVMHvn51Uq1f0drDmxIPBU8SBNrsMroGuamU+L1KUZPBaLz9XyjJAJfl9+fzk6NhEk7aU0FcxTJ8t4KOwJw6QSKMdLF0jsCy6rBSyJS0ll8v+bD3IVF0JfZTTasnsG0s/PLD7Ye1g+6/ogc2BuLOF9k0UfJv1es4iYO2K+plV1jnNoBeGx2emhZarc6Dog9d6/LlShvf6I0kwa1AgA6So8xyv+NwrUDvYOfPh5pPAsjSWhX6drK5sQVqQuSK6bJJztlCzCXRRHoLJNNvuGQl33LlZO9j+K/qPyWFVlu2LO/aK3rLKnHEwYGKlRhFHwmsLC91V9EFY3VL079CzPa4ALNpcecu9Njk6dkBVJQMmqdSbK+CDljZQR3UlXSWwLJmmoV8bQeby05pXV65GalJ5+yZkltBRvWzjGrKuso0L3fvIzuqp2sH2XRlCm4OqLNtWhh17Rn7DYCri59aLPqegq3apsmyPwWudNT4zXfSBKS9Pjo4VtVKNAosBexGr9dK6CxQlsPRek1MCy1LILplMzwYaL5RWXZnV2nXN1ZWtzYgJtKnv1ZJtBpP1F6qt7/qhobDjgXu0g82B2K6niCMK66mybENJdlAFFZYwsIr62tUWFrpLlWWL4gCKMuwQ7uXgtSIHlq/FuQBhUBX182ExsCxQO9gTk6Njp3OwHqQQWJZIe9WVLWYJTS7RfJGsOS1VV0J35aFaMvuC2W1oQ9jxwL1hw9CQdrD5UZYqy905WI9ciz9kyrBD75R2VTCwivqZZWANdFdSZSm0bM3BEsxdGXr8ebK3h7fVS8dKXlmpO0IBxADsRAHv2gt1+0C0g6XrBJaF19/qyrQTWsg5l5yYdovCSuijjlZLVpq0oc328NMLxVtzc0Uv7BsYZQgsh7UOacmE6kogz+JOpSLOY7lnfGa6qDu0IS8MYGsivg8dyvVKdsZc7DTTK0V8f58z2CbsycE60BlFHdBSe40WIbCcK2j73sIQWJbE4vRzi7Lnp0xvy5rVt7X3QWZ75wFt6WIb13ZDyUa23zMcNt25OczfmA/Xr133+OZDWb70JXOEabnXQJxb59Vcrlzn+aEDg62or+Gy7/iFbhtWndFUWbZPrwevFXFA4JTWjBTF5OjY8YIOiNtfoHawR3VJyjeBJW0FmctPS5ufsuHCHamu1AoWOqoPbVzbl35bOx9/pHpNqivzI/7QPFWSu3vYyPqV4o+Ysuygmos/SIHBVdTX8Es+o6DrkhZ5BgekiC1zy1Ix1rPPkQJXz5e6e00c7EmxFLHKcleP5+vtJh2zck5gWQJNqytb0G4r2
1LQgM2t+yrTrauEWl94nQSa0p09tXNu/vZUnJZWVyfyViYsXLnrg86UsAc6w6rpUh0vSCjZ4/GHwTY6OHY1toYrIHHstEu6yBt/WgnmpGL6UoRVsTS+/DxZxnsMjKp0KOy9pmRX1+2URfuef6nEbb1ZBYFlwTUO/NVRXNl6omayqy9Sk8va5bbeJBVp7Tfa3WnLxtd9ixefDTy/sV0rCylu3bnmM86VM7bGSecK0A4tilUERWsS0SmAJxVDU17IqyxbEzgBHx2emT9perNLx+DwqvfgaKtP3o9ketzItYrClW4nAsnBiCG8/QT55XAaAwLIMWpifMmuhzldXNs8Y26uu1CYWVqcfweTq29DWFlu/cWixuvLChQse+5yJo9WKOGdDI8kO4QP5XLXeidvg22W5v7EdrMASiqHIr2U7ZZqbiq0rk8NJc1SzCsNCy9vhf9weZdHrz48iPsd8nw5BS9hi0nY0n3w3HgACy1LJTi7TCypbn5+ytUVUV0Je5DGYzCyyjH88+PgjYcPGoXD9+vVw9cpVz6d8KtsPzzfLHFrGVmhl+0Fm5woURMHbwr4ggGssdgZ4qW6BJGj5btI9oezhE23bU+bvBvH1crxE81bW2PG9NrNlbwcbf0eVZTqNUonV10fKvh1yRgvqASGwLLo1Vle2sHSboWSj669knJ09P6XqSuiFtbdxrZd5kSZnPvDEI9W/5s4Vdd9iIZRxNGEpQ8v4I/t4yUbTB4ElFE6RX9NTwreV4jx7jToDvBQr5rTpox0vlHGqgBKHlbN9mAetaJV4vWynm1el79RTcAY15IvHY0AILEsje37K/ldXNiqwzEo9soNMoF2rmF+yiWbVku2eed+jD1SrK5N5Ky9fuuwRzqk4mvBUCe96qULLWLVTxrByVjtYKJwiD7TZpS3ZUjGIbPY+vieGlgd7vX4MtJfifKilGCRQ4rAyGLzWESqdBJaFNjk6dryk+0XyaDY+HgwAgWUpZKWT2UHm8tMq6Sc0vIJ2qytTz9UKFrqkd21cV1FKmerhZx+vnnx+7nw1tCTXyrpzNAktJ3KwHl0Vg9nvljCsDEZmQvGUYP5l8y1HbXYGSJb59vjM9FFVqrShFnbvLvJGq3stlTGsDL4PdkSvK1RzJX4ul/G3VNkYNJYP3rMHiMCyJNqN9yopl8gKH9OCzBXRZZOcs73qSq1gYc162MZ1VeWZyyTVlZvu3Fw98cL5Cx7//CvynGDNHCrqzs3kPsV2Z2/mYHX6xY8dKKaiDzaZKnuL0/i5fHgVO4hfTHasl3370ZY98TlTtBaeVXVdNsoaVvajHSzFU/hBrlQHxR0u8X6RPPEbfoAILAuvc9WVjRdq7zJZQeaKS6quhJ5bXfaYWWe5Osuu5uFnFqorL164GObn5z0xci5OZl7mL4XJzs3TRdpRVTeS/qUcrE6/HIktj4HiKfpAmySkK22lYAdaVyatdb9Xhi4KdEzymnt7fGa6MPPIxoFrUyXuslGjHSxrEj9LdtmKpaHKsr+O+Q0/WASWJZAeFzQOMtdcXbmKnDPtFrMqKNPOU3EJ7Vld9tjdULLRVT7w5KNh05aF6spPz37qkR4cZf9iXttRdXiQd1TV7Zz6XolH0tcYmQkFVZKBNrtiq8pShZaxNWenqsGSLgql24asyatFqLaMVZUn4/0pu7L/xumUQlYgNxM/k8yPXC7eM/rLb/gBI7AsuKwKyvSCyiZ9W5ud0sHqynRSSeiYHrRxXbTKq0vekzZs3BAeeWZhCphqdeUN1ZWDIo5iO1L27RArEpNqy4lB28EZ51Y5bedU1QkT9UPhlWGH0p4yhZaxO8DJDg+4eaFoXRToul1xENvRQZvbMnmeJyF9rKpUEbbwfVClTmeUdeDHalqTM8DioDj7RfojaeGtKn7ACCxLqaXkctmfrQeZrVVXVjLOVl0JvdH9Nq6tXF0l47/kfw888WjYsHGouqzqyoGkddqC5EfpoUEILmNF5YHxmenTca5KP6gXeC5DwZVooE0pQssYKB7v0ufYYrvPLlw3xZVMGfD92H0j13OixqAy2cn7dgzpWaBSp3NK17llfGb6oNdTafm+0B/CygEksCyLdqsrW5AWTGZVUDZfvtGa1a1h5ipKLaFnOhhMxjNTD0kb2AeffLS6yPlzc6orB1Dc+Xui7NuhTn1wmaudVcm6xB2vtaDSKPrbTqmuhNIoy+CEWmg5UNVerYo7hd/uwaCbV8dnpk8WdTvSNS/FOVFPxkFiuRg8UDdo7WR8/byYg9XKk7nJ0TGBZQeVqVI93tdv52BV6IPJ0bGT9ov0haB4AA2VfQOUwrK+sFltYpef1m51ZWuyL5MeSja+TKWSfT6wSqt8WWUOfmjzOh959vFqdeWtW7dUVw62ibjTg9uG486ql8ZnpmfjyL/jvW5XEn84748HAWVjqiuhJJKBNuMz00fie3TR7anNrRd3pA28GPxM9fjxq23HA9qO0aY9cZDYm+Mz08fqvg/2rOVoDNtr3wcFlNns+O68A7ESvtDiIFWfDxxWYdtTWngPKIFlqTQus0wLGLKyybQgs7vVldq+Qtd0Opjs0Gt1+707wn2PPVj9O6muTELLENZ15srpqaQyLe6EsRMk3a44R2RSpRHiyMvjcc6t053aiRx3SO2Nh31+LLXshB3QUDoTJQksQxxAk1R6vTY5OjbQO+PjDuHDfWozmGzH78aw+2Ccrwra8WLtu3IczFb7LniyU10eYqC/d9n3QQPWWtfv6srjBfz+vj95Xhb5PTN+NnWrPTkDJKnQTqaH8b7bMyriB5TAsuhaaAWbvUB7QWbaCVlB5opLqq6E3mnhpdPJasmW1L0JPPLsQmet+fn5MHduzhNj8B0UWLbshfqdETHEnI2tWs/FnVetSH4cj8RD6eaI6SDVlVAyJauyrPn2+Mx0UmF1YBBHo8cdgIdysCrJc2ZvrLYsRNUqfbGr1okj3P4uOFf3HfBk/E7YTC2gDAaqrdkRlTpdMRx/Jxby+7awkhRTWgP3hBbeA0xgWRqdq65MO6G1TrGVjLOz56dMO0/FJXROT4PJFl68SWVlUmGZSFrBLlRXMshKuvO3k3bVjcQU/PbOCXNXQmlNxBaJZdrJ+EJsbTo1OTo2EDuP+1xV2UhtftCJQa9aJVeG60JH4WPv5eE9sahViAeTuf2LFgjHQUCHhZUsczi+n3hedJcOSQNsfdk3QJmkT1fZ3vyU3Qkys2QHmaorYfUqdf9VX0qNDquVvHjTDk0MbRwKu7/4dHWhq1euhovnL3iUi+NgHB0Og+KgRwrKKe44LWPYlOxAOzQ+M50MNDqQg/VJlbQ5T3ZwJ+1sc9pFYDhWrR6NbTiBwZWXedCKWrU9XLRwIVb9f1coxXKx/bEwrfsMGBtgAstSWFY7lZ5cLvuz9SCz29WVqdcmp4S1qw8o12KVwWQjDz/3RNiwcaEBQFJdSXHEL+e+ODIo3tDOD0pvKrbkLqOkqv/NvAWXdUHl9weka8OLsWp1bwvLAvmUl4rzIs+Nuye+tw+0+Bl1MictyskvU4501ym/4webwLLEMltApkgLMrPmp0wLMluo2VxynupKyIlGoeQagsm0gs4tw9vCg08+Wj3/woUL4cqVK54BBRNbzJV15y+DY84PSSAOtCl7pXUtuDyXtIrtR/CWVCgmoen4zPTxAQoq6yXb8Hux4gYYLLmZHqAEO+BfSkLLQaxKj59TE/EzKo9V/+RIrNg+4THpGoPkB5w5LAuv09WVq5GaVN6+iSYVmenLCyuhKzpcvtzumIMn/8Fnq/8mc1Z+8tEnHuPiSio13i77RiDXDsagAii5ydGxpKXnCXPGVdvavZocxmemZ2M7s2Qn/vFuvF/GYHRfPBRl7uak1W5yf/b7jIGBkbeBBqcKHoglA1L2JvM/DsqclrELwUQcnAKtmrBPpGu03B1wAssyWZJDtjc/5ZqrK1ubEXPpuSlnZ2Up2sRCmzr4oll9MfTtMx997omwdfiu6t9JK9gktKSYklHK4zPTRwawQoJySEbSD3xLKqCjDsS5w8xFtWBXLbwMCztrT8XtczqGmKHViqQYTCbVNLV/98W/i7qtk+D7dNwZn4uqLaChIzl8nZ4sQQXfnthKeyp258klQSVrEfeJzHr+dNwRg8IGn8Cy4NKDw9bnp2xtkaw5LTtbXZl1/vzNm481uSCwRqsLJpsHo9vv2xEeee6J6t9Xr1wNc+fmPFTFl7TY22/nLzkzF4MJgEVJlUds9fZtWyXVnrod6NV5u8ZnpvO1hvmSfPd5e3xmOpkruewthyHP8hiWHS/JoM/hWJVeDQXzMpgwmaMy/lY4IGiiA5L3mDdtyI4y8LgAzGFZFk3ygrWFko2uv5Jxdvb8lKuprrwVKg81XgJoVdrckrXD6s7MNjQ0FD7zDz5XXSapqjxz5ozHqgTiqDfBEHkzMSjtp4DemhwdmzLfEB2WtNc9GXeAA/nyRk6/ExZ9HsvlavMoJwOHDvZjfsu6eZSPxjkqDwkr6ZCjccAsnTGre0UxCCxLprfVlY0KLLMCjOwgM/Xa4kkb79h4V9YlgZWvpobx4urPbPzSbXDYveeZsGnL5upin3z8SZi/Me+RKolkXrCkZUfZtwO5cSIGEgCNHLBjiQ6rtT7cb8NCbszltLoy+f2UBJazOViVXtsVuxwkweXhbr9nJu3KY0CahB+fxiq4osynTE7EQdwqAjvHb/mC0BK2DJpMKJk2P2XDhVdRXZl6bptT51UWq7caLhHCug33tnetwFrauHbiYvfteijct+vB6t+XLl0KF85f8JiUz8E4X5VRqvTTXGxRDNBQbA17UPsuOixpffjdOL/3QXMvQd/l/XVYlrawaYbjfX9pfGZ6Lm6L5HBytZVVcS7l3XH+5KLPo0z+TNXmBGfNjtqExSCwLJFKWnVixglpQWbW/JTdr65MuUTd8jdv3tzc3qWh5JoOBMh68a3mIksvtHVkW3h8z9PVv5NWsB99+FE3Hw9tIXIq2RkQR8h+r+zbgr46YAcx0IpkHq3xmel9Jd5ZTPckz6mkqudArKICeu9EXuZLzHDUZ1DVcKx6rFY+xrmTk+rTpJXvuQbtc5MwcqTub8EkfRUHwx3xml6zY6Z2KQ4tYYuuSXVlgxNakFV1mZpU3j63zYrMlqorF+bBE1hCiz773/303rW0cc2+WPp/9ddZnbfyRz4XNmxcGDfz4fsfVkNLyinulHvNw0+fvBHbEwO0KqmyPGVr0QVJi9jjsZIX6L3cv/bi91btydMlXXteiCHmoZTDi/H8F4SV5Ii2sGtnGxaIwLL4qr3tO19d2dqUdctPyaqgTDuv+fK3F9h056bt2WsE1Lk9Wf0qQsnQYjDZ6Dp3730mbB3eVv3707OfhitXrnhsSi7OHWg+S3otGUVvpzDQlliRbT5LuiXZif7t8Zlpg2mgt14foOpm7w9QELGdsYFwqzdrAHKxCCyL73RlZRIZMk5oYZHVV1ema3aBlHVMDTcr67586MDIynOAlJfV3rVUS1Zqr/VVhJ0PPvVYuH/XQ9W/r165Wg0sIVKxQi/NmrcSWK24U/uADUgX2fkGvXNqcnRsYoC2t2oiKJYpj+eq+b5UMALLklpbKNkokKhknN3Z6sq0W5m/Mb9+17NP2GkArdldv9RaqiXbMXzfjvD4nmeql0hawH7w/ge9erjMTTcAYsXKPhUr9EDyHNtv3kpgLeJobi3N6YYjAzCPHhTJQO1LihVZszlYFaAD4me+/SCrI+wtGIFlwfW2urJRgWX2/JPZwWRr1ZXxjDtu3rj5haxrAxZfeXu7GUym2TqyLTz7o3sXz3nv3fd6OW/loLT2KT2hJT1yYIBafgE5pqU5XZBUehmIC73z2oB+LxykilCgOcFb+5IpXk4P2kqTTWBZfMer97DJ/JRLra26MvXcNi+zfH7KZpdNjq1bty7csfmOf5S5IkDtRfNCt4LJJZIXc6UShoY2hGd/dE/YsHGoeu5HZz4K169d92CQSps9uuxlc1wAnRTDpWM2Kh1wKg7cAnrjWBx4MnBiRZYqSygOgWX7dKMoIIFlyWSFj2lBZtb8lGuvrmyl7Wva8umB6rpKCOs3rN+ddjngtue+8VOd3QkSQ8nUQwhhaONQ+Ny+L4dNW+6sHr9w4UK4cP5Crx8RI64GTAyUXi77dqDjXtNiD+iSA+ZhZo20K4femi3AIElVllAQ8fNf147WzfltX0wCy+I73f1WsKlJ5e1zO15dmX51lVu3wuatWzZ/+dABoSVkW11gmRFKZnnmx56vtoNNXL1yNXz04Uc9f3jeemVKYDmA4pdPoSWdcmRQR9AD+VfX0lxoyWokYeU+bc2gpwZ+gIAqSygcv1dbp2tSQQksi2/xB08n5qdcqZJxdvb8lGnnNV++8TrenL8Rtty1dV3ypbPxtQBNXyOrCCYbTX/5mS9/Pgzft6O6TNIC9oP3P+jH9jcX4gATWtIhR8wHBnSb0JJVqoWV5laG3nm5QK+5gzlYB6AD4vvSCduyJcLdghJYFl1leRvETldXrmbuu2YXSFnHptNZVkLl1sJCdw1v++/bXSMoi+e+8VNJBfKeZm1cs15uaYe0M5/68ufD/bsfqp41Pz8f3nvnvXDr1q1+bGk7fwac0JI1ElYCPSO0pE3CSui9I0VqIxin0hBwQHFoc9rcKd+diktgWXD/60+9Vg0s0+anXCrf1ZVpt5LWOfba5Su3Nm/d8rS2sNBApbK/lTau7QSTt8+8feSpr9wOK5OQ8oP3PuhXWJkwD1ABCC1ZJWEl0HNCS1okrITeO1HQ74a+7w6uI74vUE+r55aoriwwgWU5NPzgSwsms+anbL586lJLzsvOStqsrlx2mZs3b67fvmM4+LIGDS22i2mUO1ZWfeaCp77yhSVhZVJZmbSD7SM7gQpCaEmbXhZWAv0itKQJYSX03qmiTiEU5799PQerQntm4z4ag6xZTiDX2Jz5K4tNYFkCleoHX+vVla1p0jaySUVm+vJN+
174uPVZZucT6devCtrsFlpDm2Zf/232VEHa1Vi3Z9MxUOQwrg8CyWGJo+TVzk9LEy0Vq9QUMpiS0nBwd2xurJ6BGWAm9dyq+7gobDE2Ojk1oDTtwDhT5OcmaHLbPo6GjXjfFJrAsh+OL93JFbrn0hO5WV7bfCjYtyMw6Nn/tRti0eVPYMDS068uHDhRy5BysWiUcbLOUsrGUxXMaViZOt7AMAyTO07LPF3hSJM+JrworgTyJ1d5veFCIocluYeXAOuH750CaK1EwdMBzdGC8Pjk6drwg94UOi+9XqgjT+a1fcALLUqis+DHUvMiySUjY5vyUzas426zyXBZk1v66dfNm9d8d998T6ltfQtk9e+Cf7A6h8mJboWRoLcsc2jgU9v74jy6GlUlI+c4P3slLWBneemXKDqECijv6dmu1R53ayHk//IHcmRwdO6iteemdKHqFVwkcL2pL0QIrVUVzbA2r41j+nYgVsZDFc2SlWb/3i09gWQ4L1UVthZKNsoyVIWH9ec2rJZuftnT5Juu4zK35m+HmjfkQ57F84cuHDuxrchEoi8ZfdFZdZFkJGzYOhc//46+ErSPbqqclIeV777wb5m/M52WzCrMKrG5+MK32OKa9HpB3sfr7edUvpfTG5OiYsLIA4o5Sgw8GQynbL8duNOazzK9ZAx9oRRyAoM3zUub2LAGBZQn825/6jSVfztZWXbmaKS+zg8zU6LPpdJaNg9P56zdq81gGo1GgVl0ZXlpNKBliMJn239aR7eFHfvqFxbDy6pUr1bAyaQebI8KLgovzgx2w46jUknZK++0EBgZBXYcAO6DKYS7Oq6z7T4HEwQcGzOXbbJkHs8XqPc/R/Ek+E/xuoR32ay+lHWwJCCzLorL8B3FvqytTr63p8inrWMlYIi5w88bCPJZbtm0NscpSOwzKrRIOt1It2ei/tJBz5+6Hwxf+8Veq7WATF85fqM5ZmbOwMggsy6OuamW27NuiRGrzVfoRBwyUONhmnwqYwqu1KrdzrYDigDmBUD4lr729Ze+8EZ+jOg7ly/6yPy9pT6zqt49jwTFhfzkILMuj2t95IbOoSy5WTEdZWX52yDi70VJLzutodWWj26s7aT7OmxfbwiYmvjxxYKTZtUIRPfvSP0lajbxw+6WS/t/i66iFCswnvvRceGr0C4th5ScffRw++vBMXree3vYlEn/87bXzqBSSFrC7zV8BDLI44OKrdkQV0hGtykvhoEAod8wVu9Q+z9HceNlvF1bJAN0FBoCVhMCyPNr+oZQVZK5YtklFZvryTfu+Lj2WVV1Zd8qtmzer8+fd+9DO2hm7vLlTRs+89JMjlVCZqo8oq1bZGnbojo3VqsqHnt5VPZ5UU374/gdh7lxup2Gae+uVKTuJSqauRezXzBFWSMlj+poWsEBRxJ2XyWCbNzyohZB8Tn0t+S7ic6r46uZTFwjlwxFzxS7lOZobL6u2Zw2O2rcRZuP8vJSAwLI8jrdbXZmmverK9CAzq4IyLchs0rw2Nci8deNGtSXspjs3105+9csTL+/LXFkomkqYCpWwq91gMs3w/XdX56tM/k1cv3Y9vPODH4ZLFy/leaMJK0ssfpndHSvxKIYTsb2XifaBQomDbQ6qthx4tep/O9RKRCCUG6/FQYssU/ccNXdyfwgrWZP4Gi77c6js979UBJYl8W9/+jfOLfkC3WTSym5WV7Z2ftri2XNo1rtx7Ub12I777q4/+fCXJ17WGpZSeGbsJ5NWsC+1fV9TKi8f+/xnVsxX+e4771YrmXNOu5WSizuA99sBPPBq1SrJiPnTZd8YQHGpthxYtc8p1Y9t7jwAACAASURBVP8lFb9zmpagP5LX3/MGtGWrmzvZc7R3avPtC1rohLK/x3kdlYjAslQqS3beN8ksV5yYFhI2r5ZsftrS5ZvWUzZavdtHKyHcuHq1eryuLWyIrWG9wVF4z4z95O6mz/XMtrALR7bu2Bae/8kfqwaWIbaA/eD9D8KZD89U/x4ARrdTlewAnhwdS14Xr2ulMnDeUK0ClEldteXzqmEGgs8pFsUKPwMOeudEfP3prNOi+Bx9bSBWdrDNxrlUDaKmI+LA3bIOODhh4HK5CCzLZeGDsq3qykYFltnzT2YFk6nX1nQ6y9arK6un3KqE61euLm8Lm3jxKxMvm8+Swnpm7CdHYlA3XL2PLQSTyw/J/z/2hafC8z/xY2HryLbqkleuXAk/nM19C9h65q9khcnRsYlYuWJkcf4lO6AeT3baq1YByijZAR+rYb6mS0AunYhVXT6nWCIOOHjZILmuqs1pbr7KVYjVqF/1HO2a2jQW9kfQaWUtwlF8VDICyxL53376ny2O+my3ujL13Ha7uqZUUGbdXtrilYwFli9/4+q16r87H3to+Q0d+srEy+Y2oJgq4XCohD23g8lGiWUl9dQtO7aHL/3kf7GkqvLjjz4O7/3wvUFoAVvPKHdSJSPz4shilSv5dCK2TtL+FSDOyRy7BLxm53IuzNa1KbczmlSxBaR5LbvjVKxcK3t7xDWJlX+7/R7quNcF6XRLfN2W7XNlTlvl8hFYlk0lHMuan7L71ZUpl0hrHdvs9rKCzHhKLbDccf89aTf75lcmXt7b3ppCvj3zT3/icAiVF5eXUmYWWUZDd2wMT3zpufCllKrKuU8Hct+Y1itkqqtc+aof6rlQH1R6/QIsE3fOa2/eP0lQ+XISHmv/Sivid01z0nZOrapS5VqH1M1raUDM2p2KVfc6utFtZRusIawsIYFl+dTtBMyKBVOTytvntlmR2W51ZdpJTYPTZUeTyrDrV6+FTZs3hR33pYaWx4WWFEUSVlZCeKlZMLlCJYSdjz8cvvwz+8LDz+yunpu8ds58cGYQqyrr2ZFES+L8lrXg8pit1nOCSoAWxZ3LEzG4fE2r2J6oDyrtNKNtsUXsV1Vbrsmx2GJTVWUXxO261yDOVXtdkE6vxO8iZRpg4LtXCQ2VfQOUTWVhJ/63F+92kzQjLSTMqqBMrZZsunyT4LTJSmUFmTeuXA13bN4UHnjsofDpR2eXLzgcQ8t9fzPxpi8WDKynq5WV4aXM9U95KQ3vvDs8+aXPhq07ti2ellRTnv3kbDW0HGAn3nplSgsW2hLDsuPjM9PJTuCJpq8p1iqZR/SwkBKgfbHVXLKDeWp8Zjppc54EIntsyo46ET+n7ChjzeL3nb3jM9MH4/fMYVu1JUnIe9D3xe6LUzHsG5+Z3h8/X3YV/T53wLH4/DSNBb2WvEYPlWCrnzIQoJxUWJbMH/7MPzu98KVv9dWV6ZpdICVWbFpwuWx+yqzra3D0emwLu23HcNh056a0W0p+KHzPnJYMqhVhZcP+r7ePJEHlF/+r0fDF/3J0MaxM2r/Ofn+2Ol/lgIeVQXUla1E3x+UO1SsdNxtbGT6ebGM7nwDWLgnUYtvJr8bBIKzNkbrKf2ElHaW1c8tqlc17fV/sLfMmt6TWIWa/sJI+KUu1uar6klJhWU6Hq1WWTdq6dru6Mu1W0havrDhSaXR0YR3rj928Fa5dvhI2bbkzPPzEY+Hv/8N/brQiyZyWI38z8aY3QwbC07/2EyOxxfOy0fSNX3TDO+8Ju77wVBi+/+7F05Kg8tNPzoYrl6+EENYV5cEXWLJmy6pXkpaxB1RdrtqxWKXitQnQJXWdAg7Gz6wDqi5bNht/Ix+285lui98xJ8ZnpqdidfRBFZeLktfihMEC/ZeE6+Mz04fj8/OAisuq5DfNlBCdfks+R8Znpo8UfP/EnH175SWwLKXK0VC53RZ2RbyRWmCZXQ6ZHUyurbpy1eJVXL+0EFgm81huGPp+uDXfcE6+b3/l9eqclgf/5tCb2kmSW0//2k/srb6OW/zR0DyoLJRjb70yZUcTHbVsJ/D+eHjRVs50Kga+R+OOOQB6YNmAm71xR/N+O5tXqO0I056cvlgWXO4veWtnQWUO1Z6j8Xla1vbjc3FAy5QBLeTMVMEDS/sRSkxgWUJ/+DP/w+lfP/YHx1bubM0OCdNDxsaXSZufMuuyaYuvpbqy5sa16+HmjRthw8aN1bks3/v7H2SsU/XNfu9XXn/5wN8cMq8l+fP0r/34wSXz0KaJL4SdTzwSHn52d9i6Y/viQgUOKmuMwKJr4hfmagXG+Mz0iPByhRPxNXjUD3qA/ovz/lQruISXi47VfVbZEUbfLft+WbbXqTnNB0QMk2vP0dogziJXBh+LnxNCdHIp+Y43PjOd/P5+oaCPkNdeiQksyyv5kfbi2qsrW2n7mrZ8kzk0m6xCe3NaVsKVi5fCXTtGqoHlhz94L9xsXGUZ4oix733l9Zdf/5tDb05kLQi98vSv/fju+IF9+8tIyktl89Y7w0PPPh52PvlIGNq48BZ/6+atcOnipXD2k7Nhfv5GkR8zLSPomZTwcl/84b6vRDuCZ2Nr6uN2/ObC4fhY4LGEFZaFl7vrPrOKPuhmtu5zyvdEcq3BIIN9Batq04VjgMXnaPK8DLHqskiDN/s5oCV53Y/0+Da7waDV3jpc0MBy1kCWcltXaTdtojC+cewPzt0eEXU7qWx97sqFExvPXZn+3GoYWFaWHFtbdWXKdY08cH/YMLQh/OD/+341tEy1Ygq/dckP3AN/c+iPvFHSN09//ccn0uY2qT3Nh+7YGO55ZGd44MlHlrR9vX7tWjg/dyFcmDsfbt26tXBi5jSVLcxhuS71z9avaxXTZK5LO5Z+PUfeemXqQPu3AJ0VdwTvqzsUJcCs7fQ9qYoSoDjiXM21w94Br5qZqxtMczzuXKfHxmemi7qj6fXJ0bGeD2qu
1+25ZG2gwaK/RY3UDB3x/LKDxmen9Azh40+BLBt74zPS5AlY7v5bMo5uD9aBPBJYl9o1jf3B4oQXq7aSy9bCy8XmVZWHhyvMa1FOmhZIpf7R+elgSZG7Zvi3cuf2ucP3qtXDq//5/0u/SysCy9seJGFz6ck3PPP31H0/Ct4lKgy/89zy6M9z7yM5wz6MPLKmmPH/+fLgwd6EaWK5Q7MDy+bdembJTityJFZh763YE7x2AH/KzcYRsLaA8aQcTQDnEyq76Q55H75+qfU4JKPNDYNldda/R2nfLvFVgnqgbNGDwd8ksG7yZp+dn7fOi9tz024aBFj8LvlfAR3GHAQTlJrAssW8c+4PkS8T3V1td2eip06i6slGQWQkZYWWj89qsrkysW7c+7HjwvrBu/frw3t//MLybNpdl48Cy5si6EKZmDv2RH8J0zVMxqLwdaCw8i2uVlPc++kAY3nnPipavFy9erP5bk5rpFTewPPXWK1N727926J9Y0VILM3fXHXoVZs7FH+3n4r/Jj/bTdiwBsFzcAb07fmbVWqGHHoaZJ5Z9Xp0UTuaXwLL34o7r3XUDDUZ6UDF9Kr4uj3tdkiX+7ql/jnbzN09t4GX954XfNxTO+Mx0LEQqlGOTo2P7PVvLTWBZct849vvHqz8y+1ld2ZVWsOnnbRleqLK8OX+zWmW5Yi7L5oFl7ZQTYV04PPOtPzIJMB3x1NeTOSorB+J8EItf3Ed23lMNJ5NKyq07ti/e1LWrV8OVK1erlZTX0iopyxdYvvzWK1NejxRK/GFfsy/jvo3EQ9Yo4fof6SeNWASgk+oCzVA3AKeRvXFHcppzdeedE34MJoFlvrTx+twdX4Np3xNP133X9F2Sjlj23NzbYB7H2mlpz7n6z4zTqiYpi9jF6XQB28F+zZzjCCxL7hvHfn9/qITvpoWVocH8lP2qrlxtK9j685Lqyswqy9YDy9ofc7VJuWe+9UfeUGnLU1//b3bHeR6Swwubt94Ztu4YDiM77w537dheDSprrl65Gm5cvx6uXL5SraRcnJMyIwEsUWA599YrU0WYoB4AAAaewBIAumd8ZjopdnizYJt4dnJ0LGvAGyUx5IEutz968TePfuPo78+mtWJoFFY20iisbHTZtMWzqivTbr6lX0F1C926dTNcuXipOp/lzsceCh+//2G4diW9Oq1Fw7H8/qXR3/1GqJ+rIYR1J2e+9YdGHbIoBpR7N925+ce37tj+X+984pEnN2/dshBQ3j1c2bBxqBrD3bh2PVy7ei2c/fhsuHL5crWCMmn7usQqgr8CMxk3AAAAAGVwoID3Udc0qgSWJHnexNJRGdkxYHYr2EbnpYSVWbfXNJjMTjqz7sGVC5fCnXdtDRuGNoSHnngsfP8//OeMpdv2QjwcSi44+ru/frt3/rrF9hXV+cIy6+JaDKPWNf6jhQvVn5RxuaZXuaz+reUgrWFrz+Y3u66lFWuyTmu5z+nbbPP6oZ8PC8/5Bzdv2fxk8kScv37j7s13bblz46aNdz3/Ez8Wtt0zsvnqxcvX5+dvhnUb1oXLFy+HmxvWhQ/e/2BdUjWZBJW0ZU5gCQAAAEDRxVbKvZpDvJcEllQJLAlv7v/Nwy8f/f2J+irLdqsrWzs/bfEGrWDTTmmpurLxQrUYs3LrVrg8d6HaevPeB+8PH793Jlz4dK69dW/drngo4gcJy1yt3J4T9drli4t/X5q7HUJ+cOZM8s8d9YGtYsk1OfrWK1MqmQEAAAAouoMFvH/HzEFLzXpbgiiOYmg8P2XoSnVl2oUyjzacnzLr+itLk8tqleWt+ZvVo489/XizNQLyyxwyAAAAAJRBEdvBHs3BOpATAktqpkKoZJQZZgeZqbFi0+ksV19d2dI6pCeXiy7Gqsot27ZW57MEBs6Rt16ZMgILAAAAgEIbn5lOwsrhgt3HucnRMe1gWSSwpOrN/b+ZtFScyA4lV0qroFwqpboye/rJlUFm1vyU7VZX1rl25Wq4cW2hVefDTzwWNt25KfvOAnmjuhIAAACAMihidaWwkiUElix6c/8/nwohzK7cIs2qK1Mu0W7f15ST2qu6zA4yl58WZ7MMFz75tPrXhqEN4bGnn2i20kB+vK66EgAAAICiG5+Z3h1CeKGAd3MqB+tAjggsWW5ZxVLj5LHj1ZVpp7TUGbbxQmnVlfWn3Jy/GS7PXaj+PXLf3WHHffek3gKQK3O+0AAAAABQEgcLeDdPTY6OKUZgCYElSxz+2j9PyrBP1Z+WVi2ZVUGZFmRmHUtZoENBZtYCt0+4dO58mL9+o/r34599KmzarDUs5NzUW69MnfMgAQAAAFACRWwHqxiBFQSWpIkjNprFgCmxYtOCy2XzU2ZdX5erK+tPqG8Nm4SWQG7NvvXNKXNXAgAAAFB44zPTSVg5XLD7mXRPO5qD9SBnBJascPhr//x4COFIWEV1ZVwi41ijxSuNjjadnzJ9usoVE1ZmXuLG9RvhUmwNu23HcNj56EPN1hrojyKOKAMAAACANEVsB3t0cnRM9zRWEFjSQOVgpVId6dDo/JWnrKm6cjWyg8zlp1XST1h06dzcYmvYx55+PGzZtrUjawl0zLG3vjl13OYEAAAAoOjGZ6b3hhD2FPBuagdLKoElqQ5/7beSEQ4r2i6mzU+5bImVx7IqItdYXZm+Bu3FofVB5vlPzobKrVvVv5/64nNhw9BQW9cFdM1cQUeUAQAAAECaIu4Lm50cHTuZg/UghwSWNHTkZ38rGelwqpUtlNo6NuNYygJtzmnZ2erKmqTC8tK589Vjd2zeFJ747GfSFwR6beKtb75x2lYHAAAAoOjGZ6ZHQggvFfBuqq6kIYElzSzOF9dudWXaSe2Fko1urfFCadWVWVNYpgWZl85fDNcuX6keHbnv7vDwE4+mrgXQMyfe+uYbvswAAAAAUBZF7TR2OAfrQE4JLMl05Gd/KynPfj1rfsq0ILO71ZWNCiqzKijbCzLnPv50cT7Lhx5/NOy47+6UWwR6YK5+4AQAAAAAlEARA8sjk6Nj53KwHuSUwJKmjvzsb00stIZNCf2aFlwum59y5QKtHm3pMk2WbnpC7Vgyj+Xcx58szmf5+GefClu2bc2+MaAbtIIFAAAAoDTGZ6aTwfvDBby/R3OwDuSYwJJW7Y+VTilSQr/s6SdXBpltzE/Z7erK2glJheWFswsDPjYMbQhPffHZsGFoKOXWgS458bZWsAAAAACUy0QB7+3s5OiYwJJMAktaMv1zv3V6eRl6ZnXlwhJr37htBJnLT0ubnzJr/dKu7sqFS+HSufPVv+/YvCk8+w8+J7SE3piLAyUAAAAAoBTGZ6aT/WG7CnhfzV1JUwJLWjb9c/8ieVM5snT5LldXtiDtElnZZFqQmRVdXvh0Lly5eKn695a7tobHnt7d5hoCq7D/7W++oac9AAAAAGVSxLkrg8CSVggsaVfyhnmqkpJMNq1XbNraNTvpbKe6svFCzaQHmRc+OVdtEZu458H7w+Of/cwqrhto0etvf/ON4zYWAAAAAGUR5658oYB399jk6NjpHKwHOSewpC3TP/cvkoqnAw3ns1xTKNkoYmy8UOerK9PdunUrnH3/TJi/fr16fjW0fE5oCV2QzFtZxD79AAAAAJBqfGZ6pKBzVybMXUlLBJa0bfrn/sXJECoH6i/X3erKRgWVrc9P2doi2UHmrZs3w9yZs6Fy61b1eBJa7nz0wZQ1A1Zp1ryVAAAAAJTQwYLOXTk3OTqmHSwtEViyKn/887+djIp4fcll0+anXLlAq0dbukz60q0HmalXl3Eb169fD5+8d2YxtHz0qcfDvQ/en71SQCvmzFsJAAAAQNmMz0zvDSEcKujdFlbSMoElq/bHP//bSYn6kZTpLFPmm6w0Otp0fsr2qyvTlm/vhJXL377FG8tCy93PfUZoCWt34O1vvnHSdgQAAACgLGIr2CK3TJ3KwTowIASWrFVSqn5q4TqaJ4ftVV1mB5nLT+t2dWW9Wmh5qy60TKotgVV5+e1vvqGXPQAAAABlc7igrWATpyZHx07nYD0YEAJL1uSPf/63z4VK2Hc7tMyurly5QIsZ4ZIcsr35KdOCzKzoMqu6st5CaPnhYmiZzGf5+HOfaeXeALcdefubb2gNAQAAAECpjM9MJ/vEXizwfVZdSVsElqzZn/zCb58LobI/zkF3W9Ngso3qyjTN+7y21wp2RZC5EFY2vPlKJdy4tjS0vOfB+8MzX/p82DA01GztgYWw8oDtAAAAAECZxLDypQLf5bmCt7qlCwSWdMSf/MK/TEq791WWh5arqq5svFC71ZVpJ7TY9TVz+UpdkFkLLZOKy8S2ke3hmS99TmgJ2YSVAAAAAJROCcLKxNHJ0bFzOVgPBojAko75k1/4lyeT0LI6eqKF6sqs+SnTp6tsf
1X7K1hZZfXXlctXQ8t0Pq/8mtty1NXzxR79U/RdY4VSc/xYAAAAAWjY+Mz0yqFsrWffxmenjJQgrg3awrIbAko760/rQcq2TVTa6TJP5KbOuIHUVMtarWXVlvaQt7JkfvhcuX7hYPXXD0IZqpaXQEpZIwsp9b3/zDSOsAAAAAGjXgfGZ6dPjM9MT4zPTuwdl643PTCdTqiVdCl/Iwep026nJ0bGTxb6LdIPAko5bCC0r+2pzWlbC8uRvjdWVLUjLLbOiy7TqyrZbx8Yg89MPPw4Xzi5kMUlo+dmvfDHc++B9bV4bFJKwEgAAAIC1SCosd4UQDoUQvj8+M300hoG5ND4zvS9WVX43hDBckkdedSWrYpI9uuJPf/Ffnfz6X/1eMqfl8aVvxFnpZHaQufy0dqsrU7WZSjaqrlzu/NlzYX5+Puy4/97qObuf+0zYsHEofPjD99u7QSgOYSUAAAAAa7Vv2eVfTA7jM9NJ8czRsLA/uu/zJ8YQ9WBJKirr1R4HaJvAkq5JQstf/avf2xcqS0PL9MivcZCZVuvYZDrKJvNTdq+6st6luYth/vp8uOeh+8P69evDo5/ZHbaNbA/f/49/F27Oz7d5CzDQjrz96hsHPIQAAAAArFGjNrDDcW7I5PDm+Mz0qboA82QvAswYUiaB6oESVVMud7jfYTGDS2BJV/1ZElr+5e8lb9KHQ6jsWXJb7U5x2UIFZfNFsoLMhbCy4c23WF1Z79qVK+Gjd94P9z60M2wYGgoj994dvviPhsP3/+PfhrmPz7Z9fTCAhJUAAAAAdMquFq9nTzwkrWOTMHE2CS7rDudWG2TGuTOTw966f8tWSdmIdrCs2rrVhDDQrl/9y98bCaFyvLLwIbGgsvSPyorTl1VXVpafveKE1qsrV140npBeXZn1Okk7r7LsziQVliP33RO2bL9rcZkz77wf3vv+OynVluuq/2vFurqLLPujsZRF1mVdrulVLl1gXYvrvni5BstnXs26llasyTqt5T432Gatr9KS+9/WxVbcVuNLt3u3233+ZC9dPff1t199Y6L5lQIAAEUxPjNd1B1Nr0+Ojvl9A9BHyXyQIYS3u7QGJ5qcPxLq922Tug0nR8eWt+yFlqmwpCf+7Jf+1blf+cvJWGkZXmylujItrMy6RFvVlQ3CynZlB/63z7t161Y4++FH4fLFS+HuB+6rBpj3P/JgteLy7/7f/1Q9HQrm5bdffeOwBxUAAACADmnUDrYTVEiunepK1mS9zUev/PkvjZ/7818aT/p4v3H7JpdVNKYnl8v+bD3ITI0TMzLGdqsrU68jY/ErFy+H9//+B+FKDCjv2LwpPPflL4b7H32wrduAHEsm1v6qsBIAAACADutmYMnazE6Ojh21DVkLgSU99+e/NH4wqb6KwUaq9Masy6ymFWzqscatYDNvvsXqyrqbqEqqLT9+78PqIfk78ehndoenn/9cdZ5LGGDJZOZ73371O8c9iAAAAAB0mHaj+aV4gTUTWNIXf/7L44dDqOyrhDC7ePvtVleuxoogM7skcnXVla0FmUmV5Qez74Tr165Xj28b2R6+8I++FO554L613UfojyPJl8a3X/3OadsfAAAAgC5QYZlPc9rB0gkCS/rmz3/5d04m1VghhGNLg8n25qdst7oyTSeqK7OyzbQgMzk2f2M+fHD6nTD3yafV0zYMbQi7n3syPL33s9V2sTAgXnv71e8cePvV75zzgAEAAADQJbts2Fw6Ojk6Zr8gayawpK/+4pd/59xf/PLvJPNavhaWh5VN5qdsbZGsILOz1ZUNVqCFxSth7uOz1eDy6uUr1ZOr1Zb/8Pnw0O5HtIklz5IWsM+//ep3jKACAAAAoGvGZ6a1g82vibJvADpDYEku/MWv/E4SeDwfA5Al2golG0WGWdWPaae1GWSuprpyuevXroUPf/he+PTMx4tzWz64+5Hw2R/5gjax5NEbsQXsSY8OAAAAAF02YgPn0onJ0TFTRNERSrfIjb/4lYUWsb/05787FSrh1aXrtcbqytSz05rPZsuuumwvyAzLgszaX+c/nQsX5y6EkXt3hG07RqqtYXc/+2TY+ciD4Yd/ezpcOHe+zbWGjkp60h84/up3jtqsAAAAAPTIXhs6l1RX0jEqLMmdv/yVbx0MIXw1hDCbNj/lUmurrkxdvM1WsGkVlE3XsZKxRCWEWzdvhrMffhze/bvZcPniperJd961pTq3pfkt6aNjyeTmwkoAAAAAekxgmT+zk6Njx8u+EegcFZbk0l/+6reSN7rdv/hnv5uM0DhUXccVuWXW/JS9rq5MWz7ltOy1WnHSjRs3wpl33g+b77wzjNx3d9i85c7F+S0/+eCj8M7fzoab8/NtrReswmy1qvLgd3wBAQAAAKAfdtvquaO6ko5SYUmu/dWvfit503s86YXdcD2zqi5XBJnZfVq7XV2ZdlLTZreVEK5evhI+mH03fDD7Trh+9Vr15GRey8//w+er81xCF72ejGATVgIAAADQR3ts/FxJqisPl30j0FkqLMm9v/rVQ8mkvft+8U9f3x9CmKqEsKulVrAZ0pbPCivTzsvKNtOCzHarK9OCzCS4fPf7Pwh3DW8PO+67Owxt3FgNLJPwcvY//V24cO5C45WC9iTtXw8eP/gdk2YDAAAA0DfjM9PaweaPsJKOE1gyMP7q64eSefOO/sKfvp5UXSbzXA53srpyddoLMpdPYNlKdWXa0Ytz58PFc+fDXSMLwWUyp+VTez5bPe2TDz+utouFVToVg0oVlQAAAADkgXaw+TKXFBaVfSPQeVrCMnD++uuHJuKHVNKqci41H8yqfkw7rYPVlWm3knqbK45UGh2tHlm5fKgGlO/+/Wz49KNPwvyNG9UAc9czT4TPj+4N9z/yQNgwtKHZikJNMk/ly8cPfkf7VwAAAADyRIVlvkxNjo6dK/tGoPNUWDKQ/vrrE8kb4sQv/MnEVKy2PBhCZbj+vqRVV7bdOrZ5ueTym2iyeAcqPJcllzdvVqqBZXLYNry9GlreuXVLeOTJXdVDUnH5/unbc1/CMklQOXH84L/WxgEAAACAPBJY5ofqSrpGYMlA++tfWwguf74+uKyE4XbuU3YombZ8aBI8plRXZnV6bbe6MsOFc+erhw0bh8LIPTvClm13Ve7Zee+6e3beW63GfH/23XBh7nw7d5fiElQCAAAAMAi0hM0P1ZV0jcCSQvh3i8HloSS4PFBZCC93Ld63jldXpi0fmrSCTbm+7CkrmyadaW1iE0l72I8/OBPCB2fWbRsZXqy8fGpke7XSMgkuz31yNtycv9n8jlE0J2JQqe0rAAAAAINgj0cpF2YnR8cmyr4R6B6BJYXy737t9XOxJH3q5/740P4kvAyVyouN7mPnqyvTLpR5tOkC6bfWeKHl0eyFT+fC+U/nwsY7Nobhu3eErdvvurXrmSfWPzK/K5x594PwyYcfhRtXr7d3nxg0SauGpJJy6vjBf33aowcAAADAIBifmVZdmR8Hy74B6C6BJYX17//p60dDCEd/bvpbuytJcLlwWKy6zAor087LyjZ76tGV0QAAB+tJREFUX12ZHmSuqCOtO3rjelJ1+WFyWL9127awbWRbeHDXw9XD2Q8/rs51mbSNpVCOJa+B469p+woAAADAQBJY5sOJydGxo2XfCHSXwJLC+/djv5tUlCWl6hM/O/2tvXEkSFJ9mTrXZXbVZXtBZur8lFnXt8bqyhaWrp5w6fyF6mHojo9C0jJ2+47hyt07712XtIud++TTanh55eLl7Csmr07FasokqFRNCQAAAMAg2+fR67u5WAwEXSWwpFT+97HfPVl7c/3akd/ZF4PL/Uvmu0zRvHNsSj1l9vSTK4PMFuenTDmadon0pHLZsaTq8uyZj8PZMx+tu3PrlrB1211h246Rm/c9/MCGJeHlJeFlzi2GlCeElAAAAAAUhwrL/puaHB2zz5GuE1hSWt996X88HkJIDge/duR3ksrLfZVKJQkvX0jfJm1WVza4TAvXmnE0O8hset2pyy+cmFRUXl6oqtyQzHd555Y7w9bt2248tee5oZvz8+s+evfDcO6TT0MSZNJ3s/G5ezyGlOc8JAAAAAAUkMCyv5JWsBNl3gD0jsASFsLLpPIyOUwlx/cfHt8X2w3sq1TC3hAqqe1jF6ytujLlKlqIOZculFZduWKtliy/8rrqT0sqL29cvx7On5vbmJyxecud4c67tsw/+bmnK5VKZWMy56XwsqfqA8rjJ37j3xjRBAAAAEAZNCguoQe0gqWnBJaQ4uiByVo4VPXim/8qGcmzNx6SIHN3pZK0kU0JKxscS1lgbdWVHbEi2Vxx+8nZVy5fSQ5DZ898EtavWxe2br8rPPz4o5fWr19/x4Vz5zee++Sc8LJzTsXw/HR8Dp488Rv/RgUlAAAAAKUyPjOturK/DmgFSy8JLKEFx17+vdMxQDpav/TP/NG/rE36fPvfhQrK3bV5MdsLJRvlh40XWnN1ZSvrWOfWrVvh/LnzyWFrcuodm+4I9zxw7+X169fP37h2ffvcWeFlEyfi2ediMFn797TKSQAAAABYJLDsnzcmR8eO5nXlKCaBJazB//GN/6lWhXk861p+6g9/e2+ohJH609JCwqz5KdODxmYLNakAbaG6culpKy9w/dr16qESz9u+Y/irH79/5u2May6bk//XP/tfVEgCAAAAQ
1Hv22V59kcxbebCE95s+E1hCD/yfv/4/nyzRds4MbwEAAAAAWqDCsveS6ar2l+1Okw/rPQ4AAAAAAEDOCCx7ay6pap0cHdMtjr4QWAIAAAAAAHmz1yPSM8JK+k5gCQAAAAAA5Mb4zPRICGHYI9ITtbCyTNOakUMCSwAAAAAAIE9UV/aGsJLcEFgCAAAAAAB5IrDsvlPJPKHCSvJCYAkAAAAAAOTJbo9GVx0zZyV5M+QRAQAAAAAAckSFZfe8Njk6NlXUO8fgElgCAAAAAAB5IrDsvKQF7AEtYMkrgSUAAAAAAJAL4zPTIyGEYY9GR70+OTo2UaD7QwEJLAEAAAAAgLxQXdk5J2JV5emi3CGKS2AJAAAAAADkhcBy7ZKgcmJydOz4oN8RykNgCQAAAAAA5MW5EMKctrCrIqhkYAksAQAAAACAXJgcHTscQjg8PjO9P4SQHPaFEHZ5dBpKwt2jIYSpydGxkzldR2hKYAkAAABAp5wo6JY09xdAj02Ojh2NQVwYn5neG4PLJMB8wWNRdSxun6OTo2PncrA+sCbrKpWKLQgAAAAAAAyE8ZnpfTHA3FeyALMWUh6fHB0zmIZCEVgCAAAAAAADq64Cc2887CnAo5m0ek1avB6PAaV5KSk0gSUAAAAAAFAoMcRMDrtjmDmS4yDzVGw/fjIeTpuPkrIRWAIAAAAAAKUwPjM9EoPM2r8hhpq749+dDDbr53Y+XTcnchJGJvNOnjT/JCwQWAIAAAAAADQxPjNdH2wGbVqhcwSWAAAAAAAAQN+st+kBAAAAAACAfhFYAgAAAAAAAH0jsAQAAAAAAAD6RmAJAAAAAAAA9I3AEgAAAAAAAOgbgSUAAAAAAADQNwJLAAAAAAAAoG8ElgAAAAAAAEDfCCwBAAAAAACAvhFYAgAAAAAAAH0jsAQAAAAAAAD6RmAJAAAAAAAA9I3AEgAAAAAAAOgbgSUAAAAAAADQNwJLAAAAAAAAoG8ElgAAAAAAAEDfCCwBAAAAAACAvhFYAgAAAAAAAH0jsAQAAAAAAAD6RmAJAAAAAAAA9I3AEgAAAAAAAOgbgSUAAAAAAADQNwJLAAAAAAAAoG8ElgAAAAAAAEDfCCwBAAAAAACAvhFYAgAAAAAAAH0jsAQAAAAAAAD6RmAJAAAAAAAA9I3AEgAAAAAAAOgbgSUAAAAAAADQNwJLAAAAAAAAoG8ElgAAAAAAAEDfCCwBAAAAAACAvhFYAgAAAAAAAH0jsAQAAAAAAAD6RmAJAAAAAAAA9I3AEgAAAAAAAOgbgSUAAAAAAADQNwJLAAAAAAAAoG8ElgAAAAAAAEDfCCwBAAAAAACAvhFYAgAAAAAAAH0jsAQAAAAAAAD6RmAJAAAAAAAA9I3AEgAAAAAAAOgbgSUAAAAAAADQNwJLAAAAAAAAoG8ElgAAAAAAAEDfCCwBAAAAAACAvhFYAgAAAAAAAH0jsAQAAAAAAAD6RmAJAAAAAAAA9I3AEgAAAAAAAOgbgSUAAAAAAADQNwJLAAAAAAAAoG8ElgAAAAAAAEDfCCwBAAAAAACAvhFYAgAAAAAAAP0RQvj/AQqIqE8bK6z1AAAAAElFTkSuQmCC",this.modal_ref=null,this.themeColors=["#FFA9A9","#090909","#69CCC0","#2db10d","#b377ff","#FFFFFF"],this.bgColor="#051B13",this.bgFontColor="#FFFFFF",this.bgActionColor="#7BC8A1",this.isPayment=!1,this.isThankyou=!1,this.buttonTxt="Pay",this.merchant_email=localStorage.getItem("email"),this.brand_name="",this.isDisabled=!0,this.redirectionUrl="",this.thankYouMessage="Thank you for your purchase! Your payment has been successfully processed. You will receive a confirmation email shortly.",this.app_id="",this.app_name="ABC stores"}ngOnInit(){this.app_id=this.route.snapshot.params.id,this.tranEmailform=this.fb.group({tag:[void 0],tag2:[void 0],tag3:[void 0]}),this.payoutEmailform=this.fb.group({tag:[void 0],tag2:[void 0],tag3:[void 0]}),this.refundEmailform=this.fb.group({tag:[void 0],tag2:[void 0],tag3:[void 0]}),this.disputeEmailform=this.fb.group({tag:[void 0],tag2:[void 0],tag3:[void 0]}),this.getCheckoutSettings()}getCheckoutSettings(){this.checkoutService.getConfigurations(this.app_id).then(t=>{console.log(t),200===t?.status_code?(this.redirectionUrl=t.data.redirection_url?t.data.redirection_url:"https://www.onepay.lk/",this.croppedImage=t.data.brand_logo?t.data.brand_logo:"brand_logo_7Q1M1187AEB78CB94D5A5_1725578327593-22963d32-d697-4510-92b2-5989ca8d7970.png",this.bgColor=t.data.banner_bg_color?t.data.banner_bg_color:"#051B13",this.bgFontColor=t.data.banner_font_color,this.bgActionColor=t.data.action_button_bt_color,this.thankYouMessage=t.data.greeting_message?t.data.greeting_message:"Thank you for your purchase! Your payment has been successfully processed. You will receive a confirmation email shortly",this.buttonTxt=t.data.action_bt_text,this.brand_name=t.data.brand_name,this.app_name=t.data.app_name,this.isDisabled=t.data.is_email_notification_enabled,t.data.emails.transaction_related.to.length>0?this.tags.push(...t.data.emails.transaction_related.to.map(r=>r.email)):this.tags.push(this.merchant_email),t.data.emails.transaction_related.cc.length>0&&this.tags2.push(...t.data.emails.transaction_related.cc.map(r=>r.email)),t.data.emails.transaction_related.bcc.length>0&&this.tags3.push(...t.data.emails.transaction_related.bcc.map(r=>r.email)),t.data.emails.payout_related.to.length>0?this.payoutTags.push(...t.data.emails.payout_related.to.map(r=>r.email)):this.payoutTags.push(this.merchant_email),t.data.emails.payout_related.cc.length>0&&this.payoutTags2.push(...t.data.emails.payout_related.cc.map(r=>r.email)),t.data.emails.payout_related.bcc.length>0&&this.payoutTags3.push(...t.data.emails.payout_related.bcc.map(r=>r.email)),t.data.emails.refund_related.to.length>0?this.refundTags.push(...t.data.emails.refund_related.to.map(r=>r.email)):this.refundTags.push(this.merchant_email),t.data.emails.refund_related.cc.length>0&&this.refundTags2.push(...t.data.emails.refund_related.cc.map(r=>r.email)),t.data.emails.refund_related.bcc.length>0&&this.refundTags3.push(...t.data.emails.refund_related.bcc.map(r=>r.email)),t.data.emails.dispute_related.to.length>0?this.disputeTags.push(...t.data.emails.dispute_related.to.map(r=>r.email)):this.disputeTags.push(this.merchant_email),t.data.emails.dispute_related.cc.length>0&&this.disputeTags2.push(...t.data.emails.dispute_related.cc.map(r=>r.email)),t.data.emails.dispute_related.bcc.length>0&&this.disputeTags3.push(...t.data.emails.dispute_related.bcc.map(r=>r.email)),console.log("this is hell",this.disputeTags3)):this.toastr.showToast("danger","Error
1!",t?.message||"Getting IPG transaction history failed.")},t=>{console.log("Internal Server Error",t),this.toastr.showToast("danger","Error!","Internal Server Error.")})}changeBgColor(t){console.log(t),this.bgColor=t}changeFontColor(t){console.log(t),this.bgFontColor=t}changeActionColor(t){console.log(t),this.bgActionColor=t}navigate(){this.router.navigate(["pages/developer-configurations/ipg-apps"])}updateHandler(){var t=this;return(0,Pt.A)(function*(){t.isLoading=!0;let r="";if(""!=t.croppedImageBase64&&t.isCropped){const be={image:t.croppedImageBase64,bucket_name:"onepay_ipg",image_name:`brand_logo_${t.app_id}_${Date.now()}`,is_update:!1};try{const Je=yield t.checkoutService.uploadImage(be).toPromise();if(console.log(Je),!Je)return void t.toastr.showToast("danger","Error!","Failed to upload image.");r=Je.file_name}catch(Je){return console.error("Image upload error:",Je),void t.toastr.showToast("danger","Error!","Failed to upload image.")}}const i=t.app_id,s=t.redirectionUrl,p=t.bgColor,g=t.bgFontColor,S=t.buttonTxt,R=t.bgActionColor,L=t.thankYouMessage,ne=t.brand_name,re=t.isDisabled,fe=[],xe=(be,Je,tt)=>{be&&be.length>0&&be.forEach(Ze=>{fe.push({email:Ze,type:Je,sending_type:tt})})};xe(t.tags,1,1),xe(t.tags2,1,2),xe(t.tags3,1,3),xe(t.payoutTags,2,1),xe(t.payoutTags2,2,2),xe(t.payoutTags3,2,3),xe(t.refundTags,3,1),xe(t.refundTags2,3,2),xe(t.refundTags3,3,3),xe(t.disputeTags,4,1),xe(t.disputeTags2,4,2),xe(t.disputeTags3,4,3);const ce={app_id:i,brand_logo:r,brand_name:ne,redirection_url:s,banner_bg_color:p,banner_font_color:g,action_bt_text:S,action_button_bt_color:R,greeting_message:L,emails:fe,is_email_notification_enabled:re};t.isCropped||delete ce.brand_logo,console.log(ce),t.checkoutService.saveConfigurations(ce).then(be=>{200===be?.status_code?(t.isLoading=!1,t.toastr.showToast("success","Cheers!","Successfully saved configurations"),t.router.navigate(["/pages/developer-configurations/ipg-apps"])):(console.log("hiiiiiiiii",be),t.isLoading=!1,t.toastr.showToast("danger","Error!","Error saving configurations."))},be=>{t.isLoading=!1,console.log("Internal Server Error",be),t.toastr.showToast("danger","Error!","Internal Server Error.")})})()}openModalHandler(t){this.modal_ref=this.dialogService.open(t,{closeOnBackdropClick:!1})}fileChangeEvent(t){this.imageChangedEvent=t}imageCropped(t){this.croppedImageBase64=t.base64,this.isCropped=!0,console.log(t)}imageLoaded(t){}cropperReady(){}loadImageFailed(){}zoomOut(){this.scale-=.1,this.transform={...this.transform,scale:this.scale}}zoomIn(){this.scale+=.1,this.transform={...this.transform,scale:this.scale}}changeView(t){this.isPayment=t,this.isThankyou=!1}changeView2(t){this.isThankyou=t,this.isPayment=!1}changeView3(){this.isThankyou=!1,this.isPayment=!1}focusTagInput(t){t.nativeElement.focus()}onKeyUp(t,r,i){const s=this.tranEmailform.controls[r].value;
1"Backspace"!==t.code||s?("Comma"===t.code||"Space"===t.code||"Enter"===t.code)&&(this.addTag(s,i),this.tranEmailform.controls[r].setValue("")):this.removeTag(i)}addTag(t,r){(","===t[t.length-1]||" "===t[t.length-1])&&(t=t.slice(0,-1)),t.length>0&&!(0,Ld.find)(r,t)&&r.push(t)}removeTag(t,r){r?(0,Ld.pull)(t,r):t.splice(-1)}focusPayoutTagInput(){this.payoutTagInputRef.nativeElement.focus()}onPayoutKeyUp(t){const r=this.payoutEmailform.controls.tag.value;"Backspace"!==t.code||r?("Comma"===t.code||"Space"===t.code||"Enter"===t.code)&&(this.addPayoutTag(r),this.payoutEmailform.controls.tag.setValue("")):this.removePayoutTag()}addPayoutTag(t){(","===t[t.length-1]||" "===t[t.length-1])&&(t=t.slice(0,-1)),t.length>0&&!(0,Ld.find)(this.payoutTags,t)&&this.payoutTags.push(t)}removePayoutTag(t){t?(0,Ld.pull)(this.payoutTags,t):this.payoutTags.splice(-1)}focusPayoutTagInput2(){this.payoutTagInputRef2.nativeElement.focus()}onPayoutKeyUp2(t){const r=this.payoutEmailform.controls.tag2.value;"Backspace"!==t.code||r?("Comma"===t.code||"Space"===t.code||"Enter"===t.code)&&(this.addPayoutTag2(r),this.payoutEmailform.controls.tag2.setValue("")):this.removePayoutTag2()}addPayoutTag2(t){(","===t[t.length-1]||" "===t[t.length-1])&&(t=t.slice(0,-1)),t.length>0&&!(0,Ld.find)(this.payoutTags2,t)&&this.payoutTags2.push(t)}removePayoutTag2(t){t?(0,Ld.pull)(this.payoutTags2,t):this.payoutTags2.splice(-1)}focusPayoutTagInput3(){this.payoutTagInputRef3.nativeElement.focus()}onPayoutKeyUp3(t){const r=this.payoutEmailform.controls.tag3.value;
1"Backspace"!==t.code||r?("Comma"===t.code||"Space"===t.code||"Enter"===t.code)&&(this.addPayoutTag3(r),this.payoutEmailform.controls.tag3.setValue("")):this.removePayoutTag3()}addPayoutTag3(t){(","===t[t.length-1]||" "===t[t.length-1])&&(t=t.slice(0,-1)),t.length>0&&!(0,Ld.find)(this.payoutTags3,t)&&this.payoutTags3.push(t)}removePayoutTag3(t){t?(0,Ld.pull)(this.payoutTags3,t):this.payoutTags3.splice(-1)}focusRefundTagInput(){this.refundTagInputRef.nativeElement.focus()}onRefundKeyUp(t){const r=this.refundEmailform.controls.tag.value;"Backspace"!==t.code||r?("Comma"===t.code||"Space"===t.code||"Enter"===t.code)&&(this.addRefundTag(r),this.refundEmailform.controls.tag.setValue("")):this.removeRefundTag()}addRefundTag(t){(","===t[t.length-1]||" "===t[t.length-1])&&(t=t.slice(0,-1)),t.length>0&&!(0,Ld.find)(this.refundTags,t)&&this.refundTags.push(t)}removeRefundTag(t){t?(0,Ld.pull)(this.refundTags,t):this.refundTags.splice(-1)}focusRefundTagInput2(){this.refundTagInputRef2.nativeElement.focus()}onRefundKeyUp2(t){const r=this.refundEmailform.controls.tag2.value;
1"Backspace"!==t.code||r?("Comma"===t.code||"Space"===t.code||"Enter"===t.code)&&(this.addRefundTag2(r),this.refundEmailform.controls.tag2.setValue("")):this.removeRefundTag2()}addRefundTag2(t){(","===t[t.length-1]||" "===t[t.length-1])&&(t=t.slice(0,-1)),t.length>0&&!(0,Ld.find)(this.refundTags2,t)&&this.refundTags2.push(t)}removeRefundTag2(t){t?(0,Ld.pull)(this.refundTags2,t):this.refundTags2.splice(-1)}focusRefundTagInput3(){this.refundTagInputRef3.nativeElement.focus()}onRefundKeyUp3(t){const r=this.refundEmailform.controls.tag3.value;"Backspace"!==t.code||r?("Comma"===t.code||"Space"===t.code||"Enter"===t.code)&&(this.addRefundTag3(r),this.refundEmailform.controls.tag3.setValue("")):this.removeRefundTag3()}addRefundTag3(t){(","===t[t.length-1]||" "===t[t.length-1])&&(t=t.slice(0,-1)),t.length>0&&!(0,Ld.find)(this.refundTags3,t)&&this.refundTags3.push(t)}removeRefundTag3(t){t?(0,Ld.pull)(this.refundTags3,t):this.refundTags3.splice(-1)}focusDisputeTagInput(){this.disputeTagInputRef.nativeElement.focus()}onDisputeKeyUp(t){const r=this.disputeEmailform.controls.tag.value;
1"Backspace"!==t.code||r?("Comma"===t.code||"Space"===t.code||"Enter"===t.code)&&(this.addDisputeTag(r),this.disputeEmailform.controls.tag.setValue("")):this.removeDisputeTag()}addDisputeTag(t){(","===t[t.length-1]||" "===t[t.length-1])&&(t=t.slice(0,-1)),t.length>0&&!(0,Ld.find)(this.disputeTags,t)&&this.disputeTags.push(t)}removeDisputeTag(t){t?(0,Ld.pull)(this.disputeTags,t):this.disputeTags.splice(-1)}focusDisputeTagInput2(){this.disputeTagInputRef2.nativeElement.focus()}onDisputeKeyUp2(t){const r=this.disputeEmailform.controls.tag2.value;"Backspace"!==t.code||r?("Comma"===t.code||"Space"===t.code||"Enter"===t.code)&&(this.addDisputeTag2(r),this.disputeEmailform.controls.tag2.setValue("")):this.removeDisputeTag2()}addDisputeTag2(t){(","===t[t.length-1]||" "===t[t.length-1])&&(t=t.slice(0,-1)),t.length>0&&!(0,Ld.find)(this.disputeTags2,t)&&this.disputeTags2.push(t)}removeDisputeTag2(t){t?(0,Ld.pull)(this.disputeTags2,t):this.disputeTags2.splice(-1)}focusDisputeTagInput3(){this.disputeTagInputRef3.nativeElement.focus()}
1onDisputeKeyUp3(t){const r=this.disputeEmailform.controls.tag3.value;"Backspace"!==t.code||r?("Comma"===t.code||"Space"===t.code||"Enter"===t.code)&&(this.addDisputeTag3(r),this.disputeEmailform.controls.tag3.setValue("")):this.removeDisputeTag3()}addDisputeTag3(t){(","===t[t.length-1]||" "===t[t.length-1])&&(t=t.slice(0,-1)),t.length>0&&!(0,Ld.find)(this.disputeTags3,t)&&this.disputeTags3.push(t)}removeDisputeTag3(t){t?(0,Ld.pull)(this.disputeTags3,t):this.disputeTags3.splice(-1)}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(Mt.H2),e.rXU(Dt.V4),e.rXU(qe.nX),e.rXU(E.S0W),e.rXU(C1.up),e.rXU(ie.ok),e.rXU(qe.Ix))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-checkout-settings"]],viewQuery:function(r,i){if(1&r&&(e.GBs(PD,5),e.GBs(MD,5),e.GBs(OD,5),e.GBs(DD,5),e.GBs(ID,5),e.GBs(jD,5),e.GBs(RD,5),e.GBs(LD,5),e.GBs(ND,5),e.GBs(BD,5),e.GBs(GD,5),e.GBs(VD,5)),2&r){let s;e.mGM(s=e.lsd())&&(i.tagInputRef=s.first),e.mGM(s=e.lsd())&&(i.tagInputRef2=s.first),e.mGM(s=e.lsd())&&(i.tagInputRef3=s.first),e.mGM(s=e.lsd())&&(i.payoutTagInputRef=s.first),e.mGM(s=e.lsd())&&(i.payoutTagInputRef2=s.first),e.mGM(s=e.lsd())&&(i.payoutTagInputRef3=s.first),e.mGM(s=e.lsd())&&(i.refundTagInputRef=s.first),e.mGM(s=e.lsd())&&(i.refundTagInputRef2=s.first),e.mGM(s=e.lsd())&&(i.refundTagInputRef3=s.first),e.mGM(s=e.lsd())&&(i.disputeTagInputRef=s.first),e.mGM(s=e.lsd())&&(i.disputeTagInputRef2=s.first),e.mGM(s=e.lsd())&&(i.disputeTagInputRef3=s.first)}},decls:260,vars:40,consts:[["tagInput",""],["tagInput2",""],["tagInput3",""],["payoutTagInput",""],["payoutTagInput2",""],["payoutTagInput3",""],["refundTagInput",""],["refundTagInput2",""],["refundTagInput3",""],["disputeTagInput",""],["disputeTagInput2",""],["disputeTagInput3",""],["colorPickerInput",""],["colorPickerInput2",""],["colorPickerInput3",""],["viewAppModal",""],[1,"p-3","bg-white"],[1,"d-flex","justify-content-between"],[1,"d-flex"],[1,"d-flex","align-items-center","mr-3",2,"cursor","pointer",3,"click"],[1,"fas","fa-arrow-left"],[1,"config-head1"],[1,"config-head2"],[1,"config-save","d-flex",3,"click","disabled"],[4,"ngIf"],["class","loader",4,"ngIf"],[1,"row","mt-2","config-border","m-3"],[1,"col-lg-7","col-md-7","col-12"],[1,"pt-3"],[1,"config-head3"],["id","nav-tab","role","tablist",1,"nav","nav-tabs"],["id","nav-home-tab","data-bs-toggle","tab","data-bs-target","#nav-home","type","button","role","tab","aria-controls","nav-home","aria-selected","true",1,"nav-link","active",3,"click"],["id","nav-profile-tab","data-bs-toggle","tab","data-bs-target","#nav-profile","type","button","role","tab","aria-controls","nav-profile","aria-selected","false",1,"nav-link",3,"click"],["id","nav-contact-tab","data-bs-toggle","tab","data-bs-target","#nav-contact","type","button","role","tab","aria-controls","nav-contact","aria-selected","false",1,"nav-link",3,"click"],["id","nav-tabContent",1,"tab-content"],["id","nav-home","role","tabpanel","aria-labelledby","nav-home-tab",1,"tab-pane","fade","show","active","p-2"],[1,"config-input-container"],["disabled","",1,"config-input",3,"ngModelChange","ngModel"],[1,"config-input-container","pt-3"],["placeholder","http://",1,"config-input",3,"ngModelChange","ngModel"],[1,"redirection-note","pt-2"],[1,"point-txt"],[1,"coming-soon-txt"],[1,"custom-control","custom-switch","pt-1"],["type","checkbox","id","customSwitch1","disabled","",1,"custom-control-input"],["for","customSwitch1",1,"custom-control-label"],["type","checkbox","id","customSwitch2","disabled","",1,"custom-control-input"],["for","customSwitch2",1,"custom-control-label"],["style","font-size: 9px;color: orange;","class","pl-3 pt-1 d-flex align-items-center",4,"ngIf"],["type","checkbox","id","customSwitch3",1,"custom-control-input",3,"ngModelChange","ngModel"],["for","customSwitch3",1,"custom-control-label"],["id","accordion",1,"pt-3",2,"width","400px"],[1,"card"],["id","headingOne",1,"card-header",2,"background-color","white"],[1,"mb-0"],["data-toggle","collapse","data-target","#collapseOne","aria-expanded","true","aria-controls","collapseOne",1,"btn","d-flex","justify-content-between","w-100"],[1,"d-flex","align-items-center"],["aria-hidden","true",1,"fa","fa-angle-down"],["id","collapseOne","aria-labelledby","headingOne","data-parent","#accordion",1,"collapse"],[1,"card-body"],[3,"formGroup"],[1,"email-sender"],[1,"editor-tag",3,"click"],["class","tag-item",4,"ngFor","ngForOf"],["placeholder","","type","text","formControlName","tag",1,"input-tag",3,"keyup"],["placeholder","","type","text","formControlName","tag2",1,"input-tag",3,"keyup"],["placeholder","","type","text","formControlName","tag3",1,"input-tag",3,"keyup"],["id","headingTwo",1,"card-header",2,"background-color","white"],["data-toggle","collapse","data-target","#collapseTwo","aria-expanded","fal
1se","aria-controls","collapseTwo",1,"btn","collapsed","d-flex","justify-content-between","w-100"],["id","collapseTwo","aria-labelledby","headingTwo","data-parent","#accordion",1,"collapse"],["id","headingThree",1,"card-header",2,"background-color","white"],["data-toggle","collapse","data-target","#collapseThree","aria-expanded","false","aria-controls","collapseThree",1,"btn","collapsed","d-flex","justify-content-between","w-100"],["id","collapseThree","aria-labelledby","headingThree","data-parent","#accordion",1,"collapse"],["data-toggle","collapse","data-target","#collapseFour","aria-expanded","false","aria-controls","collapseFour",1,"btn","collapsed","d-flex","justify-content-between","w-100"],["id","collapseFour","aria-labelledby","headingFour","data-parent","#accordion",1,"collapse"],["id","nav-profile","role","tabpanel","aria-labelledby","nav-profile-tab",1,"tab-pane","fade"],[1,"theme-lbl"],["hidden","",1,"color-circle","d-flex","align-items-center","justify-content-center","picker-color",3,"colorPickerChange","colorPicker"],[1,"color-circle","d-flex","align-items-center","justify-content-center",2,"background-color","rgba(217, 217, 217, 1)",3,"click"],[1,"fas","fa-pencil-alt"],[4,"ngFor","ngForOf"],[1,"pt-4"],[1,"config-input-container","pt-4"],[1,"config-input",3,"ngModelChange","ngModel"],["value","Pay"],["value","Book"],[1,"upload-txt",3,"click"],["src","../../../../../assets//images/upload-red.png",1,"mr-2"],["id","nav-contact","role","tabpanel","aria-labelledby","nav-contact-tab",1,"tab-pane","fade"],[1,"config-input-ta",3,"ngModelChange","ngModel"],[1,"col-lg-5","col-md-5","col-12","p-3"],[1,"gateway-container"],[1,"footer-ipg"],[1,"loader"],[1,"pl-3","pt-1","d-flex","align-items-center",2,"font-size","9px","color","orange"],["aria-hidden","true",1,"pr-2","fa","fa-exclamation-triangle",2,"font-size","9px","color","orange"],[1,"tag-item"],["class","remove-tag",3,"click",4,"ngIf"],[1,"remove-tag",3,"click"],[1,"color-circle",3,"click"],[1,"gateway-top-container"],[1,"row","m-3","details-division","pb-2"],[1,"col-6","d-flex","align-items-center"],[1,"img-pg",3,"src"],[1,"d-flex","flex-column"],[1,"gateway-attribute"],[1,"gateway-value"],[1,"row","m-3"],[1,"gateway-center-container"],[1,"d-flex","justify-content-between","p-3"],[1,"pg-container-title"],["src","../../../../../assets/images/pg_secure.png"],[1,"d-flex","justify-content-between","p-3","pg-option-border-active",3,"click"],[1,"pg-option-title"],[1,"d-flex","align-items-center",2,"display","flex","align-items","center"],[1,"d-flex","align-items-center","pr-1",2,"display","flex","align-items","center"],["src","../../../../../assets/svgs/visa.svg","loading","lazy","alt","visa"],["src","../../../../../assets/svgs/master-card.svg","loading","lazy","alt","master"],["src","../../../../../assets/svgs/amex.svg","loading","lazy","alt","amex"],[1,"CardFormFieldGroupIconOverflow"],["role","presentation",1,"CardFormFieldGroupIconOverflow-Item","CardFormFieldGroupIconOverflow-Item--1",2,"top","-6px"],["role","presentation",1,"FormFieldInput-IconsIcon"],["src","../../../../../assets/svgs/diners1.svg","alt","UnionPay","loading","lazy",1,"BrandIcon"],["role","presentation",1,"CardFormFieldGroupIconOverflow-Item","CardFormFieldGroupIconOverflow-Item--2",2,"top","-6px"],["src","../../../../../assets/svgs/discover1.svg","alt","JCB","loading","lazy",1,"BrandIcon"],[1,"d-flex","justify-content-between","p-3","pg-option-border"],["src","../../../../../assets/images/vishwa.png"],["src","../../../../../assets/images/pg-frimi.png"],[1,"d-flex","justify-content-between","pt-2","pl-3","pr-3"],[1,"pr-2","d-flex","align-items-center",3,"click"],[1,"option-header"],[1,"pt-3","pl-3","pr-3"],[1,"card-lbl"],["disabled","","placeholder","Name on your card",1,"txt-field"],[1,"pt-2","pl-3","pr-3"],[1,"d-flex","justify-content-between","txt-field"],["value","1234 45673 4638 6373","disabled","",1,"number-field","w-75"],["id","input--cc",1,"creditcard-icon--mastercard"],[1,"row","pl-3","pr-3","pt-2"],[1,"col-6"],["disabled","","placeholder","CVV",1,"txt-field"],["disabled","","placeholder","MM/YY",1,"txt-field"],[1,"pl-3","pr-3","pt-2"],[1,"pay-btn","d-flex","justify-content-center","align-items-center",3,"click"],[1,"fas","fa-arrow-right","pl-2"],[1,"gateway-container2","p-5","d-flex","align-items-center"],[1,"d-flex","justify-content-center"],["src","../../../../../assets/images/thankyou.png"],[1,"success-txt"],[1,"success-amt"],[1,"success-desc"],[1,"popup-modal-root","ipg-app-view-modal"],["type","file",3,"change"],[1,"btn","btn-secondary","mr-3",3,"click"],[1,"btn","btn-secondary",3,"click"],[1,"cropper-wrapper"],["format","png","output","base64",3,"transformChange","imageCropped","imageLoaded","cropperReady","loadImageFailed","imageChangedEvent","maintainAspectRatio","cropperMinWidth","onlyScaleDown","transform","as
1pectRatio"],[1,"preview-header"],["width","300px",3,"src"],[1,"pt-4","d-flex","justify-content-end"],[1,"btn","btn-success",3,"click"]],template:function(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",16)(1,"div",17)(2,"div",18)(3,"div",19),e.bIt("click",function(){return e.eBV(s),e.Njj(i.navigate())}),e.nrm(4,"i",20),e.k0s(),e.j41(5,"div")(6,"div",21),e.EFF(7,"App Configurations"),e.k0s(),e.j41(8,"div",22),e.EFF(9,"IPG checkout page configurations"),e.k0s()()(),e.j41(10,"div")(11,"button",23),e.bIt("click",function(){return e.eBV(s),e.Njj(i.updateHandler())}),e.DNE(12,zD,2,0,"span",24)(13,UD,2,0,"span",24)(14,YD,1,0,"div",25),e.k0s()()(),e.j41(15,"div",26)(16,"div",27)(17,"div",28)(18,"div",29)(19,"div"),e.EFF(20,"Checkout page custermization"),e.k0s()(),e.j41(21,"div",28)(22,"nav")(23,"div",30)(24,"button",31),e.bIt("click",function(){return e.eBV(s),e.Njj(i.changeView3())}),e.EFF(25,"General Settings"),e.k0s(),e.j41(26,"button",32),e.bIt("click",function(){return e.eBV(s),e.Njj(i.changeView(!0))}),e.EFF(27,"Theme Settings"),e.k0s(),e.j41(28,"button",33),e.bIt("click",function(){return e.eBV(s),e.Njj(i.changeView2(!0))}),e.EFF(29,"Greeting Settings"),e.k0s()()(),e.j41(30,"div",34)(31,"div",35)(32,"div",36)(33,"label"),e.EFF(34,"Brand Name"),e.k0s(),e.j41(35,"input",37),e.mxI("ngModelChange",function(g){return e.eBV(s),e.DH7(i.app_name,g)||(i.app_name=g),e.Njj(g)}),e.k0s()(),e.j41(36,"div",38)(37,"label"),e.EFF(38,"Redirection URL"),e.k0s(),e.j41(39,"input",39),e.mxI("ngModelChange",function(g){return e.eBV(s),e.DH7(i.redirectionUrl,g)||(i.redirectionUrl=g),e.Njj(g)}),e.k0s()(),e.j41(40,"div",40),e.EFF(41,"Note: URL redirection is available only for OnePay payments such as 'Payment Link,' 'Payment Page,' 'SMS Pay,' and 'Invoice."),e.k0s(),e.j41(42,"div",28)(43,"div",18)(44,"div",41),e.EFF(45,"Point Redeem"),e.k0s(),e.j41(46,"div",42),e.EFF(47,"Coming Soon"),e.k0s()(),e.j41(48,"div",43),e.nrm(49,"input",44),e.j41(50,"label",45),e.EFF(51,"Disable"),e.k0s()()(),e.j41(52,"div",28)(53,"div",18)(54,"div",41),e.EFF(55,"Coupon Redeem"),e.k0s(),e.j41(56,"div",42),e.EFF(57,"Coming Soon"),e.k0s()(),e.j41(58,"div",43),e.nrm(59,"input",46),e.j41(60,"label",47),e.EFF(61,"Disable"),e.k0s()()(),e.j41(62,"div",28)(63,"div",18)(64,"div",41),e.EFF(65,"Customer Payment Notification"),e.k0s()(),e.DNE(66,WD,3,0,"div",48),e.j41(67,"div",43)(68,"input",49),e.mxI("ngModelChange",function(g){return e.eBV(s),e.DH7(i.isDisabled,g)||(i.isDisabled=g),e.Njj(g)}),e.k0s(),e.j41(69,"label",50),e.EFF(70,"Disable"),e.k0s()()(),e.j41(71,"div",28)(72,"div",18)(73,"div",41),e.EFF(74,"Customer Email Notification"),e.k0s()()(),e.j41(75,"div",51)(76,"div",52)(77,"div",53)(78,"h5",54)(79,"button",55)(80,"div"),e.EFF(81,"Transaction Related"),e.k0s(),e.j41(82,"div",56),e.nrm(83,"i",57),e.k0s()()()(),e.j41(84,"div",58)(85,"div",59)(86,"div",60)(87,"div",18)(88,"div",61),e.EFF(89,"To :"),e.k0s(),e.j41(90,"div",62),e.bIt("click",function(){e.eBV(s);const g=e.sdS(93);return e.Njj(i.focusTagInput(g))}),e.DNE(91,qD,3,2,"span",63),e.j41(92,"input",64,0),e.bIt("keyup",function(g){return e.eBV(s),e.Njj(i.onKeyUp(g,"tag",i.tags))}),e.k0s()()(),e.j41(94,"div",18)(95,"div",61),e.EFF(96,"CC :"),e.k0s(),e.j41(97,"div",62),e.bIt("click",function(){e.eBV(s);const g=e.sdS(100);return e.Njj(i.focusTagInput(g))}),e.DNE(98,HD,3,2,"span",63),e.j41(99,"input",65,1),e.bIt("keyup",function(g){return e.eBV(s),e.Njj(i.onKeyUp(g,"tag2",i.tags2))}),e.k0s()()(),e.j41(101,"div",18)(102,"div",61),e.EFF(103,"BCC :"),e.k0s(),e.j41(104,"div",62),e.bIt("click",function(){e.eBV(s);const g=e.sdS(107);return e.Njj(i.focusTagInput(g))}),e.DNE(105,JD,3,2,"span",63),e.j41(106,"input",66,2),e.bIt("keyup",function(g){return e.eBV(s),e.Njj(i.onKeyUp(g,"tag3",i.tags3))}),e.k0s()()()()()()(),e.j41(108,"div",52)(109,"div",67)(110,"h5",54)(111,"button",68)(112,"div"),e.EFF(113,"Payout Related"),e.k0s(),e.j41(114,"div",56),e.nrm(115,"i",57),e.k0s()()()(),e.j41(116,"div",69)(117,"div",59)(118,"div",60)(119,"div",18)(120,"div",61),e.EFF(121,"To :"),e.k0s(),e.j41(122,"div",62),e.bIt("click",function(){return e.eBV(s),e.Njj(i.focusPayoutTagInput())}),e.DNE(123,QD,3,2,"span",63),e.j41(124,"input",64,3),e.bIt("keyup",function(g){return e.eBV(s),e.Njj(i.onPayoutKeyUp(g))}),e.k0s()()(),e.j41(126,"div",18)(127,"div",61),e.EFF(128,"cc :"),e.k0s(),e.j41(129,"div",62),e.bIt("click",function(){return e.eBV(s),e.Njj(i.focusPayoutTagInput2())}),e.DNE(130,tI,3,2,"span",63),e.j41(131,"input",65,4),e.bIt("keyup",function(g){return e.eBV(s),e.Njj(i.onPayoutKeyUp2(g))}),e.k0s()()(),e.j41(133,"div",18)(134,"div",61),e.EFF(135,"bcc :"),e.k0s(),e.j41(136,"div",62),e.bIt("click",function(){return e.eBV(s),e.Njj(i.focusPayoutTagInput3())}),e.DNE(137,iI,3,2,"span",63),e.j41(138,"input",66,5),e.bIt("keyup",function(g){return e.eBV(s),e.Njj(i.onPayoutKeyUp3(g))}),e.k0s()()()()()()(),e.j41(140,"div",52)(141,"div",70)(142,"h5",54)(143,"button",71)(144,"div"),e.EFF(145," Refund Related"),e.k0s(),e.j41(146,"div",56),e.nrm(147,"i",57),e.k0s()()()(),e.j41(148,"div",72)(149,"div",59)(150,"div",60)(151,"div",18)(152,"div",61),e.EFF(153,"To :"),e.k0s(),e.j41(154,"div",62),e.bIt("click",function(){return e.eBV(s),e.Njj(i.focusRefundTagInput())}),e.DNE(155,aI,3,2,"span",63),e.j41(156,"input",64,6),e.bIt("keyup",function(g){return e.eBV(s),e.Njj(i.onRefundKeyUp(g))}),e.k0s()()(),e.j41(158,"div",18)(159,"div",61),e.EFF(160,"cc :"),e.k0s(),e.j41(161,"div",62),e.bIt("click",function(){return e.eBV(s),e.Njj(i.focusRefundTagInput2())}),e.DNE(162,sI,3,2,"span",63),e.j41(163,"input",65,7),e.bIt("keyup",function(g){return e.eBV(s),e.Njj(i.onRefundKeyUp2(g))}),e.k0s()()(),e.j41(165,"div",18)(166,"div",61),e.EFF(167,"bcc :"),e.k0s(),e.j41(168,"div",62),e.bIt("click",function(){return e.eBV(s),e.Njj(i.focusRefundTagInput3())}),e.DNE(169,cI,3,2,"span",63),e.j41(170,"input",66,8),e.bIt("keyup",function(g){return e.eBV(s),e.Njj(i.onRefundKeyUp3(g))}),e.k0s()()()()()()(),e.j41(172,"div",52)(173,"div",70)(174,"h5",54)(175,"button",73)(176,"div"),e.EFF(177," Dispute Related"),e.k0s(),e.j41(178,"div",56),e.nrm(179,"i",57),e.k0s()()()(),e.j41(180,"div",74)(181,"div",59)(182,"div",60)(183,"div",18)(184,"div",61),e.EFF(185,"To :"),e.k0s(),e.j41(186,"div",62),e.bIt("click",function(){return e.eBV(s),e.Njj(i.focusDisputeTagInput())}),e.DNE(187,uI,3,2,"span",63),e.j41(188,"input",64,9),e.bIt("keyup",function(g){return e.eBV(s),e.Njj(i.onDisputeKe
1yUp(g))}),e.k0s()()(),e.j41(190,"div",18)(191,"div",61),e.EFF(192,"cc :"),e.k0s(),e.j41(193,"div",62),e.bIt("click",function(){return e.eBV(s),e.Njj(i.focusDisputeTagInput2())}),e.DNE(194,fI,4,1,"span",63),e.j41(195,"input",65,10),e.bIt("keyup",function(g){return e.eBV(s),e.Njj(i.onDisputeKeyUp2(g))}),e.k0s()()(),e.j41(197,"div",18)(198,"div",61),e.EFF(199,"bcc :"),e.k0s(),e.j41(200,"div",62),e.bIt("click",function(){return e.eBV(s),e.Njj(i.focusDisputeTagInput3())}),e.DNE(201,hI,2,1,"div",24),e.j41(202,"input",66,11),e.bIt("keyup",function(g){return e.eBV(s),e.Njj(i.onDisputeKeyUp3(g))}),e.k0s()()()()()()()()(),e.j41(204,"div",75)(205,"div",28)(206,"div",76),e.EFF(207,"Background Color Change"),e.k0s(),e.j41(208,"div",18)(209,"input",77,12),e.mxI("colorPickerChange",function(g){return e.eBV(s),e.DH7(i.bgColor,g)||(i.bgColor=g),e.Njj(g)}),e.k0s(),e.j41(211,"div",78),e.bIt("click",function(){e.eBV(s);const g=e.sdS(210);return e.Njj(g.click())}),e.nrm(212,"i",79),e.k0s(),e.DNE(213,mI,2,2,"div",80),e.k0s()(),e.j41(214,"div",81)(215,"div",76),e.EFF(216,"Banner Font Color Change"),e.k0s(),e.j41(217,"div",18)(218,"input",77,13),e.mxI("colorPickerChange",function(g){return e.eBV(s),e.DH7(i.bgFontColor,g)||(i.bgFontColor=g),e.Njj(g)}),e.k0s(),e.j41(220,"div",78),e.bIt("click",function(){e.eBV(s);const g=e.sdS(219);return e.Njj(g.click())}),e.nrm(221,"i",79),e.k0s(),e.DNE(222,gI,2,2,"div",80),e.k0s()(),e.j41(223,"div",82)(224,"label"),e.EFF(225,"Button Text"),e.k0s(),e.j41(226,"select",83),e.mxI("ngModelChange",function(g){return e.eBV(s),e.DH7(i.buttonTxt,g)||(i.buttonTxt=g),e.Njj(g)}),e.j41(227,"option",84),e.EFF(228,"Pay"),e.k0s(),e.j41(229,"option",85),e.EFF(230,"Book"),e.k0s()()(),e.j41(231,"div",81)(232,"div",76),e.EFF(233,"Action Button Color Change"),e.k0s(),e.j41(234,"div",18)(235,"input",77,14),e.mxI("colorPickerChange",function(g){return e.eBV(s),e.DH7(i.bgActionColor,g)||(i.bgActionColor=g),e.Njj(g)}),e.k0s(),e.j41(237,"div",78),e.bIt("click",function(){e.eBV(s);const g=e.sdS(236);return e.Njj(g.click())}),e.nrm(238,"i",79),e.k0s(),e.DNE(239,_I,2,2,"div",80),e.k0s()(),e.j41(240,"div",81)(241,"div",76),e.EFF(242,"Brand Logo"),e.k0s(),e.j41(243,"div",86),e.bIt("click",function(){e.eBV(s);const g=e.sdS(259);return e.Njj(i.openModalHandler(g))}),e.nrm(244,"img",87),e.EFF(245,"Upload Your Brand Logo"),e.k0s()()(),e.j41(246,"div",88)(247,"div",28)(248,"div",36)(249,"label"),e.EFF(250,"Thank You Message"),e.k0s(),e.j41(251,"textarea",89),e.mxI("ngModelChange",function(g){return e.eBV(s),e.DH7(i.thankYouMessage,g)||(i.thankYouMessage=g),e.Njj(g)}),e.k0s()()()()()()()(),e.j41(252,"div",90)(253,"div",91),e.DNE(254,bI,27,19,"ng-container",24)(255,yI,11,1,"ng-container",24),e.j41(256,"div",92),e.EFF(257,"\xa9 2024 Copyright by OnePay. All rights reserved."),e.k0s()()()(),e.DNE(258,CI,16,7,"ng-template",null,15,e.C5r),e.k0s()}2&r&&(e.R7$(11),e.Y8G("disabled",i.isLoading),e.R7$(),e.Y8G("ngIf",i.isLoading),e.R7$(),e.Y8G("ngIf",!i.isLoading),e.R7$(),e.Y8G("ngIf",i.isLoading),e.R7$(21),e.R50("ngModel",i.app_name),e.R7$(4),e.R50("ngModel",i.redirectionUrl),e.R7$(27),e.Y8G("ngIf",!i.isDisabled),e.R7$(2),e.R50("ngModel",i.isDisabled),e.R7$(18),e.Y8G("formGroup",i.tranEmailform),e.R7$(5),e.Y8G("ngForOf",i.tags),e.R7$(7),e.Y8G("ngForOf",i.tags2),e.R7$(7),e.Y8G("ngForOf",i.tags3),e.R7$(13),e.Y8G("formGroup",i.payoutEmailform),e.R7$(5),e.Y8G("ngForOf",i.payoutTags),e.R7$(7),e.Y8G("ngForOf",i.payoutTags2),e.R7$(7),e.Y8G("ngForOf",i.payoutTags3),e.R7$(13),e.Y8G("formGroup",i.refundEmailform),e.R7$(5),e.Y8G("ngForOf",i.refundTags),e.R7$(7),e.Y8G("ngForOf",i.refundTags2),e.R7$(7),e.Y8G("ngForOf",i.refundTags3),e.R7$(13),e.Y8G("formGroup",i.disputeEmailform),e.R7$(5),e.Y8G("ngForOf",i.disputeTags),e.R7$(7),e.Y8G("ngForOf",i.disputeTags2),e.R7$(7),e.Y8G("ngIf",i.disputeTags3.length>0),e.R7$(8),e.xc7("background",i.bgColor),e.R50("colorPicker",i.bgColor),e.R7$(4),e.Y8G("ngForOf",i.themeColors),e.R7$(5),e.xc7("background",i.bgFontColor),e.R50("colorPicker",i.bgFontColor),e.R7$(4),e.Y8G("ngForOf",i.themeColors),e.R7$(4),e.R50("ngModel",i.buttonTxt),e.R7$(9),e.xc7("background",i.bgActionColor),e.R50("colorPicker",i.bgActionColor),e.R7$(4),e.Y8G("ngForOf",i.theme
1Colors),e.R7$(12),e.R50("ngModel",i.thankYouMessage),e.R7$(3),e.Y8G("ngIf",!i.isThankyou),e.R7$(),e.Y8G("ngIf",i.isThankyou))},dependencies:[ie.xH,ie.y7,ie.me,ie.Zm,ie.wz,ie.BC,ie.cb,ie.vS,ie.j4,ie.JD,Fe.Sq,Fe.bT,E.SrT,E.KH5,R4,SD],styles:['@charset "UTF-8";.config-head1[_ngcontent-%COMP%]{font-family:Inter;font-size:16px;font-weight:500;line-height:24px;text-align:left;color:#000}.picker-color[_ngcontent-%COMP%]{opacity:0!important}.config-head2[_ngcontent-%COMP%]{font-family:Inter;font-size:14px;font-weight:400;line-height:24px;text-align:left;color:#474747}.config-head3[_ngcontent-%COMP%]{font-family:Inter;font-size:14px;font-weight:500;line-height:24px;text-align:left;color:#000}.config-save[_ngcontent-%COMP%]{height:37px;padding:10px 12px;gap:8px;border-radius:8px;background:#00130c;font-family:Inter;font-size:14px;font-weight:500;line-height:16.94px;text-align:left;color:#fff}.config-save[_ngcontent-%COMP%]:disabled{opacity:.6}.config-border[_ngcontent-%COMP%]{border-top:1px solid rgb(219,219,219)}.config-input[_ngcontent-%COMP%]{width:400px;height:44px;gap:0px;border-radius:7px;border:1px solid rgb(212,212,216);font-family:Poppins;font-size:12px;font-weight:400;line-height:16px;letter-spacing:-.3000000119px;text-align:left;padding-left:10px}.config-input[_ngcontent-%COMP%]:focus{outline:none}.config-input-ta[_ngcontent-%COMP%]{width:400px;height:150px;gap:0px;border-radius:7px;border:1px solid rgb(212,212,216);font-family:Poppins;font-size:12px;font-weight:400;line-height:16px;letter-spacing:-.3000000119px;text-align:left;padding:10px}.config-input-ta[_ngcontent-%COMP%]:focus{outline:none}.config-input-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.config-input-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-family:Inter;font-size:14px;font-weight:400;line-height:24px;text-align:left;color:#000}.gateway-container[_ngcontent-%COMP%]{width:310px;height:500px;gap:0px;background-color:#eef3f5;position:relative;display:flex;justify-content:center;border-radius:10px;flex-direction:column;align-items:center;justify-content:space-between}.gateway-container2[_ngcontent-%COMP%]{height:500px;position:relative;width:310px;background-color:#fff;border-radius:5px}.gateway-top-container[_ngcontent-%COMP%]{width:310px;height:200px;background-color:"#051B13";border-radius:10px}.gateway-center-container[_ngcontent-%COMP%]{width:280px;height:320px;border-radius:9px;background-color:#fff;position:absolute;top:150px}.gateway-attribute[_ngcontent-%COMP%]{font-family:Inter;font-size:10px;font-weight:400;line-height:20.1px;text-align:left}.gateway-value[_ngcontent-%COMP%]{font-family:Inter;font-size:14px;font-weight:500;line-height:16.94px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100px}.details-division[_ngcontent-%COMP%]{border-bottom:.7px solid rgb(237,242,247)}.coupon-txt[_ngcontent-%COMP%]{color:#fed33c;font-family:Inter;font-size:11px;font-weight:500;line-height:16.94px;text-align:left}.footer-ipg[_ngcontent-%COMP%]{font-family:Inter;font-size:10px;font-weight:400;line-height:10px;letter-spacing:-.005em;text-align:center;color:#a0aec0;padding-bottom:10px}.pg-container-title[_ngcontent-%COMP%]{font-family:Inter;font-size:14px;font-weight:500;line-height:16.94px;text-align:left;color:#1a202c}.pg-option-title[_ngcontent-%COMP%]{font-family:Inter;font-size:14px;font-weight:400;line-height:16.94px;text-align:left;color:#718096}.pg-option-border-active[_ngcontent-%COMP%]{border-right:4px solid rgb(123,200,161);background-color:#e3f8ee;border-bottom:1px solid rgb(226,232,240)}.pg-option-border[_ngcontent-%COMP%]{border-bottom:1px solid rgb(226,232,240)}.redirection-note[_ngcontent-%COMP%]{font-family:Inter;font-size:12px;font-weight:400;line-height:20px;text-align:left;color:#838383}.point-txt[_ngcontent-%COMP%]{font-family:Inter;font-size:15px;font-weight:400;line-height:24px;text-align:left;color:#000}.coming-soon-txt[_ngcontent-%COMP%]{background-color:red;width:80px;height:20px;padding:6px 7px;gap:10px;border-radius:10px;font-family:Inter;font-size:10px;font-weight:400;line-height:24px;text-align:left;color:#fff;align-items:center;display:flex;margin-left:10px}.custom-control-label[_ngcontent-%COMP%]{font-family:Inter;font-size:14px;font-weight:400;line-height:24px;text-align:left;color:#9d9d9d}.theme-lbl[_ngcontent-%COMP%]{font-family:Inter;font-size:14px;font-weight:400;line-height:24px;text-align:left;color:#000}
1.color-circle[_ngcontent-%COMP%]{width:30px;height:30px;border-radius:50%;margin-right:10px;margin-top:10px;cursor:pointer;border:1px solid grey}.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%], .nav-tabs[_ngcontent-%COMP%] .nav-item.show[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{border:none;border-bottom:1px solid green!important;color:green}.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{background:none}.option-header[_ngcontent-%COMP%]{font-family:Inter;font-size:14px;font-weight:500;line-height:25.94px;text-align:left;color:#2d3748}.card-lbl[_ngcontent-%COMP%]{font-family:Inter;font-size:12px;font-weight:400;line-height:22.24px;text-align:left;color:#2d3748}.txt-field[_ngcontent-%COMP%]{border:1px solid rgb(160,174,192)!important;background-color:#f7fafc!important;border-radius:4px!important;height:37px;font-family:Inter;font-size:14px;font-weight:400;line-height:16.94px;width:100%;text-align:left;color:#1a202c;padding-left:10px}.txt-field[_ngcontent-%COMP%]:focus{outline:none!important}.txt-field[_ngcontent-%COMP%]::placeholder{font-family:Inter;font-size:12px;font-weight:400;line-height:14.52px;text-align:left;color:#a0aec0}.number-field[_ngcontent-%COMP%]{background:transparent;border:none}.number-field[_ngcontent-%COMP%]:focus{background:transparent;border:none;outline:none}#input--cc[_ngcontent-%COMP%]{position:relative;padding-top:6px}#input--cc[_ngcontent-%COMP%]:before{content:"";position:absolute;right:0;top:50%;width:30px;height:40px;background-image:url(data:image/svg+xml;utf8,%3Csvg%20class%3D%22nc-icon%20glyph%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20xmlns%3Axlink%3D%22http%3A//www.w3.org/1999/xlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2248px%22%20height%3D%2248px%22%20viewBox%3D%220%200%2048%2048%22%3E%3Cg%3E%20%3Cpath%20data-color%3D%22color-2%22%20fill%3D%22%238c8c8c%22%20d%3D%22M47%2C16V9c0-1.105-0.895-2-2-2H3C1.895%2C7%2C1%2C7.895%2C1%2C9v7H47z%22%3E%3C/path%3E%20%3Cpath%20fill%3D%22%238c8c8c%22%20d%3D%22M1%2C22v17c0%2C1.105%2C0.895%2C2%2C2%2C2h42c1.105%2C0%2C2-0.895%2C2-2V22H1z%20M18%2C33H8c-0.552%2C0-1-0.448-1-1s0.448-1%2C1-1h10%20c0.552%2C0%2C1%2C0.448%2C1%2C1S18.552%2C33%2C18%2C33z%20M40%2C33h-5c-0.552%2C0-1-0.448-1-1s0.448-1%2C1-1h5c0.552%2C0%2C1%2C0.448%2C1%2C1S40.552%2C33%2C40%2C33z%22%3E%3C/path%3E%20%3C/g%3E%3C/svg%3E);background-position:center;background-repeat:no-repeat;background-size:36px;transform:translateY(-50%)}#input--cc.creditcard-icon--mastercard[_ngcontent-%COMP%]:before{background-image:url(data:image/svg+xml;utf8,%3Csvg%20class%3D%22nc-icon%20colored%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20xmlns%3Axlink%3D%22http%3A//www.w3.org/1999/xlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2248px%22%20height%3D%2248px%22%20viewBox%3D%220%200%2048%2048%22%3E%3Cg%3E%3Cpath%20fill%3D%22%23003564%22%20d%3D%22M44%2C7H4c-1.657%2C0-3%2C1.343-3%2C3v28c0%2C1.657%2C1.343%2C3%2C3%2C3h40c1.657%2C0%2C3-1.343%2C3-3V10C47%2C8.343%2C45.657%2C7%2C44%2C7z%22%3E%3C/path%3E%20%3Ccircle%20fill%3D%22%23F01524%22%20cx%3D%2219%22%20cy%3D%2224%22%20r%3D%228%22%3E%3C/circle%3E%20%3Cpath%20fill%3D%22%23376BD1%22%20d%3D%22M24%2C30.24c0.093-0.075%2C0.177-0.161%2C0.267-0.24h-0.535C23.823%2C30.079%2C23.907%2C30.165%2C24%2C30.24z%22%3E%3C/path%3E%20%3Cpath%20fill%3D%22%23FEB415%22%20d%3D%22M29%2C16c-2.525%2C0-4.773%2C1.173-6.24%2C3h2.48c0.251%2C0.313%2C0.47%2C0.651%2C0.673%2C1h-3.827h-0.008%20c-0.186%2C0.321-0.352%2C0.653-0.492%2C1h0.009h4.809c0.132%2C0.324%2C0.246%2C0.656%2C0.335%2C1h-5.477c-0.084%2C0.326-0.151%2C0.659-0.193%2C1h5.865%20C26.975%2C23.328%2C27%2C23.661%2C27%2C24h-6c0%2C0.339%2C0.028%2C0.672%2C0.069%2C1h5.865c-0.043%2C0.341-0.111%2C0.674-0.195%2C1h-5.477%20c0.088%2C0.342%2C0.194%2C0.677%2C0.325%2C1h0.009h4.809c-0.141%2C0.346-0.305%2C0.68-0.491%2C1h-3.827h-0.008c0.203%2C0.351%2C0.429%2C0.686%2C0.681%2C1h2.48%20c-0.292%2C0.363-0.623%2C0.693-0.973%2C1h-0.535h-0.012c1.409%2C1.241%2C3.254%2C2%2C5.279%2C2c4.418%2C0%2C8-3.582%2C8-8S33.418%2C16%2C29%2C16z%22%3E%3C/path%3E%3C/g%3E%3C/svg%3E)}.pay-btn[_ngcontent-%COMP%]{box-shadow:0 4px 9px #0000001a;border-radius:5px;height:40px;border:none;width:100%;margin-left:0;margin-right:0;margin-top:10px;font-family:Poppins;font-size:15px;font-weight:500;line-height:22.5px}
1.img-pg[_ngcontent-%COMP%]{width:100%;max-height:48px}.cropper-wrapper[_ngcontent-%COMP%]{width:300px}.preview-header[_ngcontent-%COMP%]{font-size:20px;font-weight:500;font-family:poppins}.upload-txt[_ngcontent-%COMP%]{font-family:Inter;font-size:14px;font-weight:400;line-height:24px;text-align:left;color:#f30000;cursor:pointer}.editor-tag[_ngcontent-%COMP%]{cursor:text;font-size:16px;padding:10px 0 10px 10px;border-radius:5px;background:#fff;border:none}.editor-tag[_ngcontent-%COMP%] .tag-item[_ngcontent-%COMP%]{line-height:20px;border-radius:8px;height:30px;font-size:14px;font-family:Poppins;display:inline-block;background:#ebf1ef;padding-left:5px;padding-top:5px;color:#144936}.editor-tag[_ngcontent-%COMP%] .tag-item[_ngcontent-%COMP%] .remove-tag[_ngcontent-%COMP%]{padding-right:5px;cursor:pointer}.editor-tag[_ngcontent-%COMP%] .tag-item[_ngcontent-%COMP%]:not(:first-child){margin-left:5px}.editor-tag[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin:0;padding-left:5px;border:none;outline:none;border-radius:5px}.email-sender[_ngcontent-%COMP%]{font-family:Poppins;font-size:12px;font-weight:400;line-height:18px;text-align:left;display:flex;align-items:center;color:#18181b;text-wrap:nowrap}.success-txt[_ngcontent-%COMP%]{font-family:Inter;font-size:18px;font-weight:600;line-height:24px;text-align:center;color:#101828;padding-top:20px}.success-amt[_ngcontent-%COMP%]{color:#ae3ad6;font-family:Inter;font-size:20px;font-weight:700;line-height:24.2px;text-align:center;padding-top:20px}.success-desc[_ngcontent-%COMP%]{font-family:Inter;font-size:14px;font-weight:400;line-height:20px;text-align:center;color:#667085;padding-top:20px}.arrow-icon[_ngcontent-%COMP%]:before{content:"\\2304";float:right;transition:transform .3s ease}button[aria-expanded=true][_ngcontent-%COMP%] .arrow-icon[_ngcontent-%COMP%]:before{content:"\\2303"}.loader[_ngcontent-%COMP%]{border:4px solid rgba(255,255,255,.1);border-left-color:#fff;border-radius:50%;width:1rem;height:1rem;animation:_ngcontent-%COMP%_spin 1s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}.CardFormFieldGroupIconOverflow[_ngcontent-%COMP%]{display:flex;align-items:center;height:16px;position:relative;width:28px}.CardFormFieldGroupIconOverflow-Item[_ngcontent-%COMP%]{position:absolute;top:0;left:0;transition:opacity 5.8s ease,transform 5.8s ease}.CardFormFieldGroupIconOverflow-Item--1[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fadeInOut 5.8s linear infinite;animation-delay:0s}.CardFormFieldGroupIconOverflow-Item--2[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fadeInOut 5.8s linear infinite;animation-delay:2.8s}.fade-enter[_ngcontent-%COMP%]{opacity:0;transition:opacity 5s ease-in}.fade-enter-active[_ngcontent-%COMP%]{opacity:1}@keyframes _ngcontent-%COMP%_fadeInOut{0%,to{opacity:0;transform:scale(.9)}50%{opacity:1;transform:scale(1)}}@keyframes _ngcontent-%COMP%_slideIn{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}.slide-in[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_slideIn .5s ease-in-out}']})}return n})(),canActivate:[gc.w],data:{pri:vc.h8}},{path:"developer-logs",component:pE,canActivate:[gc.w],data:{pri:vc.h8}}
1,{path:"payment-links",component:$n,canActivate:[gc.w],data:{pri:vc.GX}},{path:"payment-links-new",component:kO,canActivate:[gc.w],data:{pri:vc.GX}},{path:"subscription-link",component:nP,canActivate:[gc.w],data:{pri:vc.GX}},{path:"subscription-dashboard",component:bx,canActivate:[gc.w],data:{pri:vc.GX}},{path:"subscription-view/:id",component:wP,canActivate:[gc.w],data:{pri:vc.GX}},{path:"subscriptionlink-create",component:DM,canActivate:[gc.w],data:{pri:vc.GX}},{path:"token-management",component:LM,canActivate:[gc.w],data:{pri:vc.GX}},{path:"ipg-reports",component:Pk,canActivate:[gc.w],data:{pri:vc.Sk}},{path:"paymentlink-reports",component:Mk,canActivate:[gc.w],data:{pri:vc.Sk}},{path:"paymentpage-reports",component:Ok,canActivate:[gc.w],data:{pri:vc.Sk}},{path:"expenses-tracker",component:m5},{path:"expenses-tracker/:id",component:xw},{path:"event-reports",component:Nw,canActivate:[gc.w],data:{pri:vc.Sk}},{path:"transaction-history-report",component:Gw,canActivate:[gc.w],data:{pri:vc.Sk}},{path:"payout-report",component:zw,canActivate:[gc.w],data:{pri:vc.Sk}},{path:"payout-tran-report",component:Uw,canActivate:[gc.w],data:{pri:vc.Sk}},{path:"customers",component:Vk,canActivate:[gc.w],data:{pri:vc.cm}},{path:"payouts",component:Lw,canActivate:[gc.w],data:{pri:vc.Nd}},{path:"instalment-plans",component:dE,canActivate:[gc.w],data:{pri:vc.l_}},{path:"view-customer/:id",component:Qk},{path:"view-deal/:id",component:R3},{path:"view-invoice/:id",component:J8},{path:"user-management",component:O7},{path:"app-integration",component:Bw},{path:"account-settings",loadChildren:()=>Promise.resolve().then(bn.bind(bn,37572)).then(n=>n.AccountSettingsModule),canActivate:[gc.w],data:{pri:vc.l_}},{path:"merchant-account",loadChildren:()=>bn.e(429).then(bn.bind(bn,27429)).then(n=>
1n.UserAccountModule),canActivate:[gc.w],data:{pri:vc.l_}},{path:"analytics-dashboard",component:bw},{path:"manage-invoice",component:rF,canActivate:[gc.w],data:{pri:vc.i0}},{path:"create-pfd",component:ST},{path:"create-invoice",component:lT},{path:"update-invoice/:id",component:D8},{path:"discounts",component:JE},{path:"discounts-view/:id",component:k6},{path:"subscription-email",component:IM,canActivate:[gc.w],data:{pri:vc.l_}},{path:"**",component:yc.X,pathMatch:"full"}]}];let FI=(()=>{class n{static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({imports:[qe.iI.forChild(wI),qe.iI]})}return n})();var AI=bn(89063);let TI=(()=>{class n{static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({providers:[fs],imports:[ie.YN,ie.X1,Ie.O,E.lVF,E.Mif,E.P5N,E._A2,E.iyp,E.VcP,E.PD_,E.clu,E.P5N,E.gYs,E.pty,E.iEK,E.Ad8,Bi.Ui,R4,ED]})}return n})();var SI=bn(37572),EI=bn(94578);let PI=(()=>{class n{static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({providers:[a4],imports:[u.dV,xi.ed,ie.YN,ie.X1,Ie.O,AI.MiscellaneousModule,Bi.Ui,Tn,TI,FI,SI.AccountSettingsModule,E.anj,E.lVF,E._A2,E.NeG,E.clu,E.P5N,E.VcP,E.pty,E.iEK,E.gYs,E.Ad8,tn.sN,u.dV,EI.h,hd.Yz,hd.Zb,E.TgK,E.XYW,_x.Q_,E.AfG,E.QyE,E.jVr,P4.j]})}return n})()},57912:(ys,Ha,bn)=>{"use strict";bn.d(Ha,{GX:()=>E,Nd:()=>tn,Sk:()=>Bi,cm:()=>u,e0:()=>qe,h8:()=>Tn,i0:()=>Ot,l_:()=>e,p2:()=>Ie,u0:()=>ie});const E="PRL_0001",Ie="PRL_0002",ie="PRL_0004",Bi="PRL_0005",u="PRL_0006",tn="PRL_0007",e="PRL_0008",Tn="PRL_0009",qe="PRL_0010",Ot="PRL_0011"},43606:function(ys,Ha,bn){ys.exports=function(E){"use strict";E=E&&E.hasOwnProperty("default")?E.default:E;var ie={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],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],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],ol
vendor: 2,780 bytes, line 1
1ive:[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],rebeccapurple:[102,51,153],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]},Bi=function Ie(c,f){return c(f={exports:{}},f.exports),f.exports}(function(c){var f={};for(var _ in ie)ie.hasOwnProperty(_)&&(f[ie[_]]=_);var v=c.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var T in v)if(v.hasOwnProperty(T)){if(!("channels"in v[T]))throw new Error("missing channels property: "+T);if(!("labels"in v[T]))throw new Error("missing channel labels property: "+T);if(v[T].labels.length!==v[T].channels)throw new Error("channel and label counts mismatch: "+T);var O=v[T].channels,B=v[T].labels;delete v[T].channels,delete v[T].labels,Object.defineProperty(v[T],"channels",{value:O}),Object.defineProperty(v[T],"labels",{value:B})}function q(V,Z){return Math.pow(V[0]-Z[0],2)+Math.pow(V[1]-Z[1],2)+Math.pow(V[2]-Z[2],2)}v.rgb.hsl=function(V){var St,Hn,Z=V[0]/255,ue=V[1]/255,pe=V[2]/255,je=Math.min(Z,ue,pe),ft=Math.max(Z,ue,pe),xt=ft-je;return ft===je?St=0:Z===ft?St=(ue-pe)/xt:ue===ft?St=2+(pe-Z)/xt:pe===ft&&(St=4+(Z-ue)/xt),(St=Math.min(60*St,360))<0&&(St+=360),Hn=(je+ft)/2,[St,100*(ft===je?0:Hn<=.5?xt/(ft+je):xt/(2-ft-je)),100*Hn]},v.rgb.hsv=function(V){var Z,ue,pe,je,ft,xt=V[0]/255,St=V[1]/255,zt=V[2]/255,Hn=Math.max(xt,St,zt),_n=Hn-Math.min(xt,St,zt),Ui=function(ma){return(Hn-ma)/6/_n+.5};return 0===_n?je=ft=0:(ft=_n/Hn,Z=Ui(xt),ue=Ui(St),pe=Ui(zt),xt===Hn?je=pe-ue:St===Hn?je=1/3+Z-pe:zt===
vendor: 11,146 bytes, line 1
1Hn&&(je=2/3+ue-Z),je<0?je+=1:je>1&&(je-=1)),[360*je,100*ft,100*Hn]},v.rgb.hwb=function(V){var Z=V[0],ue=V[1],pe=V[2];return[v.rgb.hsl(V)[0],1/255*Math.min(Z,Math.min(ue,pe))*100,100*(pe=1-1/255*Math.max(Z,Math.max(ue,pe)))]},v.rgb.cmyk=function(V){var St,Z=V[0]/255,ue=V[1]/255,pe=V[2]/255;return[100*((1-Z-(St=Math.min(1-Z,1-ue,1-pe)))/(1-St)||0),100*((1-ue-St)/(1-St)||0),100*((1-pe-St)/(1-St)||0),100*St]},v.rgb.keyword=function(V){var Z=f[V];if(Z)return Z;var pe,ue=1/0;for(var je in ie)if(ie.hasOwnProperty(je)){var xt=q(V,ie[je]);xt<ue&&(ue=xt,pe=je)}return pe},v.keyword.rgb=function(V){return ie[V]},v.rgb.xyz=function(V){var Z=V[0]/255,ue=V[1]/255,pe=V[2]/255;return[100*(.4124*(Z=Z>.04045?Math.pow((Z+.055)/1.055,2.4):Z/12.92)+.3576*(ue=ue>.04045?Math.pow((ue+.055)/1.055,2.4):ue/12.92)+.1805*(pe=pe>.04045?Math.pow((pe+.055)/1.055,2.4):pe/12.92)),100*(.2126*Z+.7152*ue+.0722*pe),100*(.0193*Z+.1192*ue+.9505*pe)]},v.rgb.lab=function(V){var Z=v.rgb.xyz(V),ue=Z[0],pe=Z[1],je=Z[2];return pe/=100,je/=108.883,ue=(ue/=95.047)>.008856?Math.pow(ue,1/3):7.787*ue+16/116,[116*(pe=pe>.008856?Math.pow(pe,1/3):7.787*pe+16/116)-16,500*(ue-pe),200*(pe-(je=je>.008856?Math.pow(je,1/3):7.787*je+16/116))]},v.hsl.rgb=function(V){var je,ft,xt,St,zt,Z=V[0]/360,ue=V[1]/100,pe=V[2]/100;if(0===ue)return[zt=255*pe,zt,zt];je=2*pe-(ft=pe<.5?pe*(1+ue):pe+ue-pe*ue),St=[0,0,0];for(var Hn=0;Hn<3;Hn++)(xt=Z+1/3*-(Hn-1))<0&&xt++,xt>1&&xt--,St[Hn]=255*(zt=6*xt<1?je+6*(ft-je)*xt:2*xt<1?ft:3*xt<2?je+(ft-je)*(2/3-xt)*6:je);return St},v.hsl.hsv=function(V){var Z=V[0],ue=V[1]/100,pe=V[2]/100,je=ue,ft=Math.max(pe,.01);return ue*=(pe*=2)<=1?pe:2-pe,je*=ft<=1?ft:2-ft,[Z,100*(0===pe?2*je/(ft+je):2*ue/(pe+ue)),(pe+ue)/2*100]},v.hsv.rgb=function(V){var Z=V[0]/60,ue=V[1]/100,pe=V[2]/100,je=Math.floor(Z)%6,ft=Z-Math.floor(Z),xt=255*pe*(1-ue),St=255*pe*(1-ue*ft),zt=255*pe*(1-ue*(1-ft));switch(pe*=255,je){case 0:return[pe,zt,xt];case 1:return[St,pe,xt];case 2:return[xt,pe,zt];case 3:return[xt,St,pe];case 4:return[zt,xt,pe];case 5:return[pe,xt,St]}},v.hsv.hsl=function(V){var ft,xt,St,Z=V[0],ue=V[1]/100,pe=V[2]/100,je=Math.max(pe,.01);return St=(2-ue)*pe,xt=ue*je,[Z,100*(xt=(xt/=(ft=(2-ue)*je)<=1?ft:2-ft)||0),100*(St/=2)]},v.hwb.rgb=function(V){var ft,xt,St,zt,Hn,_n,Ui,Z=V[0]/360,ue=V[1]/100,pe=V[2]/100,je=ue+pe;switch(je>1&&(ue/=je,pe/=je),St=6*Z-(ft=Math.floor(6*Z)),1&ft&&(St=1-St),zt=ue+St*((xt=1-pe)-ue),ft){default:case 6:case 0:Hn=xt,_n=zt,Ui=ue;break;case 1:Hn=zt,_n=xt,Ui=ue;break;case 2:Hn=ue,_n=xt,Ui=zt;break;case 3:Hn=ue,_n=zt,Ui=xt;break;case 4:Hn=zt,_n=ue,Ui=xt;break;case 5:Hn=xt,_n=ue,Ui=zt}return[255*Hn,255*_n,255*Ui]},v.cmyk.rgb=function(V){var ue=V[1]/100,pe=V[2]/100,je=V[3]/100;return[255*(1-Math.min(1,V[0]/100*(1-je)+je)),255*(1-Math.min(1,ue*(1-je)+je)),255*(1-Math.min(1,pe*(1-je)+je))]},v.xyz.rgb=function(V){var je,ft,xt,Z=V[0]/100,ue=V[1]/100,pe=V[2]/100;return ft=-.9689*Z+1.8758*ue+.0415*pe,xt=.0557*Z+-.204*ue+1.057*pe,je=(je=3.2406*Z+-1.5372*ue+-.4986*pe)>.0031308?1.055*Math.pow(je,1/2.4)-.055:12.92*je,ft=ft>.0031308?1.055*Math.pow(ft,1/2.4)-.055:12.92*ft,xt=xt>.0031308?1.055*Math.pow(xt,1/2.4)-.055:12.92*xt,[255*(je=Math.min(Math.max(0,je),1)),255*(ft=Math.min(Math.max(0,ft),1)),255*(xt=Math.min(Math.max(0,xt),1))]},v.xyz.lab=function(V){var Z=V[0],ue=V[1],pe=V[2];return ue/=100,pe/=108.883,Z=(Z/=95.047)>.008856?Math.pow(Z,1/3):7.787*Z+16/116,[116*(ue=ue>.008856?Math.pow(ue,1/3):7.787*ue+16/116)-16,500*(Z-ue),200*(ue-(pe=pe>.008856?Math.pow(pe,1/3):7.787*pe+16/116))]},v.lab.xyz=function(V){var je,ft,xt;je=V[1]/500+(ft=(V[0]+16)/116),xt=ft-V[2]/200;var St=Math.pow(ft,3),zt=Math.pow(je,3),Hn=Math.pow(xt,3);return ft=St>.008856?St:(ft-16/116)/7.787,je=zt>.008856?zt:(je-16/116)/7.787,xt=Hn>.008856?Hn:(xt-16/116)/7.787,[je*=95.047,ft*=100,xt*=108.883]},v.lab.lch=function(V){var ft,Z=V[0],ue=V[1],pe=V[2];return(ft=360*Math.atan2(pe,ue)/2/Math.PI)<0&&(ft+=360),[Z,Math.sqrt(ue*ue+pe*pe),ft]},v.lch.lab=function(V){var xt,ue=V[1];return xt=V[2]/360*2*Math.PI,[V[0],ue*Math.cos(xt),ue*Math.sin(xt)]},v.rgb.ansi16=function(V){var Z=V[0],ue=V[1],pe=V[2],je=1 in arguments?arguments[1]:v.rgb.hsv(V)[2];if(0===(je=Math.round(je/50)))return 30;var ft=30+(Math.round(pe/255)<<2|Math.round(ue/255)<<1|Math.round(Z/255));return 2===je&&(ft+=60),ft},v.hsv.ansi16=function(V){return v.rgb.ansi16(v.hsv.rgb(V),V[2])},v.rgb.ansi256=function(V){var Z=V[0],ue=V[1],pe=V[2];return Z===ue&&ue===pe?Z<8?16:Z>248?231:Math.round((Z-8)/247*24)+232:16+36*Math.round(Z/255*5)+6*Math.round(ue/255*5)+Math.round(pe/255*5)},v.ansi16.rgb=function(V){var Z=V%10;if(0===Z||7===Z)return V>50&&(Z+=3.5),[Z=Z/10.5*255,Z,Z];var ue=.5*(1+~~(V>50));return[(1&Z)*ue*255,(Z>>1&1)*ue*255,(Z>>2&1)*ue*255]},v.ansi256.rgb=function(V){if(V>=232){var Z=10*(V-232)+8;return[Z,Z,Z]}var ue;return V-=16,[Math.floor(V/36)/5*255,Math.floor((ue=V%36)/6)/5*255,ue%6/5*255]},v.rgb.hex=function(V){var ue=(((255&Math.round(V[0]))<<16)+((255&Math.round(V[1]))<<8)+(255&Math.round(V[2]))).toString(16).toUpperCase();return"000000".substring(ue.length)+ue},v.hex.rgb=function(V){var Z=V.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!Z)return[0,0,0];var ue=Z[0];3===Z[0].length&&(ue=ue.split("").map(function(St){return St+St}).join(""));var pe=parseInt(ue,16);return[pe>>16&255,pe>>8&255,255&pe]},v.rgb.hcg=function(V){var zt,Z=V[0]/255,ue=V[1]/255,pe=V[2]/255,je=Math.max(Math.max(Z,ue),pe),ft=Math.min(Math.min(Z,ue),pe),xt=je-ft;return zt=xt<=0?0:je===Z?(ue-pe)/xt%6:je===ue?2+(pe-Z)/xt:4+(Z-ue)/xt+4,zt/=6,[360*(zt%=1),100*xt,100*(xt<1?ft/(1-xt):0)]},v.hsl.hcg=function(V){var pe,Z=V[1]/100,ue=V[2]/100,je=0;return(pe=ue<.5?2*Z*ue:2*Z*(1-ue))<1&&(je=(ue-.5*pe)/(1-pe)),[V[0],100*pe,100*je]},v.hsv.hcg=function(V){var ue=V[2]/100,pe=V[1]/100*ue,je=0;return pe<1&&(je=(ue-pe)/(1-pe)),[V[0],100*pe,100*je]},v.hcg.rgb=function(V){var ue=V[1]/100,pe=V[2]/100;if(0===ue)return[255*pe,255*pe,255*pe];var zt,je=[0,0,0],ft=V[0]/360%1*6,xt=ft%1,St=1-xt;switch(Math.floor(ft)){case 0:je[0]=1,je[1]=xt,je[2]=0;break;case 1:je[0]=St,je[1]=1,je[2]=0;break;case 2:je[0]=0,je[1]=1,je[2]=xt;break;case 3:je[0]=0,je[1]=St,je[2]=1;break;case 4:je[0]=xt,je[1]=0,je[2]=1;break;default:je[0]=1,je[1]=0,je[2]=St}return[255*(ue*je[0]+(zt=(1-ue)*pe)),255*(ue*je[1]+zt),255*(ue*je[2]+zt)]},v.hcg.hsv=function(V){var Z=V[1]/100,pe=Z+V[2]/100*(1-Z),je=0;return pe>0&&(je=Z/pe),[V[0],100*je,100*pe]},v.hcg.hsl=function(V){var Z=V[1]/100,pe=V[2]/100*(1-Z)+.5*Z,je=0;return pe>0&&pe<.5?je=Z/(2*pe):pe>=.5&&pe<1&&(je=Z/(2*(1-pe))),[V[0],100*je,100*pe]},v.hcg.hwb=function(V){var Z=V[1]/100,pe=Z+V[2]/100*(1-Z);return[V[0],100*(pe-Z),100*(1-pe)]},v.hwb.hcg=function(V){var pe=1-V[2]/100,je=pe-V[1]/100,ft=0;return je<1&&(ft=(pe-je)/(1-je)),[V[0],100*je,100*ft]},v.apple.rgb=function(V){return[V[0]/65535*255,V[1]/65535*255,V[2]/65535*255]},v.rgb.apple=function(V){return[V[0]/255*65535,V[1]/255*65535,V[2]/255*65535]},v.gray.rgb=function(V){return[V[0]/100*255,V[0]/100*255,V[0]/100*255]},v.gray.hsl=v.gray.hsv=function(V){return[0,0,V[0]]},v.gray.hwb=function(V){return[0,100,V[0]]},v.gray.cmyk=function(V){return[0,0,0,V[0]]},v.gray.lab=function(V){return[V[0],0,0]},v.gray.hex=function(V){var Z=255&Math.round(V[0]/100*255),pe=((Z<<16)+(Z<<8)+Z).toString(16).toUpperCase();return"000000".substring(pe.length)+pe},v.rgb.gray=function(V){return[(V[0]+V[1]+V[2])/3/255*100]}});function qt(c){var f=function un(){for(var c={},f=Object.keys(Bi),_=f.length,v=0;v<_;v++)c[f[v]]={distance:-1,parent:null};return c}(),_=[c];for(f[c].distance=0;_.length;)for(var v=_.pop(),T=Object.keys(Bi[v]),O=T.length,B=0;B<O;B++){var q=T[B],V=f[q];-1===V.distance&&(V.distance=f[v].distance+1,V.parent=v,_.unshift(q))}return f}function yn(c,f){return function(_){return f(c(_))}}function K(c,f){for(var _=[f[c].parent,c],v=Bi[f[c].parent][c],T=f[c].parent;f[T].parent;)_.unshift(f[T].parent),v=yn(Bi[f[T].parent][T],v),T=f[T].parent;return v.conversion=_,v}var kn={};Object.keys(Bi).forEach(function(c){kn[c]={},Object.defineProperty(kn[c],"channels",{value:Bi[c].channels}),Object.defineProperty(kn[c],"labels",{value:Bi[c].labels});var f=function(c){for(var f=qt(c),_={},v=Object.keys(f),T=v.length,O=0;O<T;O++){var B=v[O];null!==f[B].parent&&(_[B]=K(B,f))}return _}(c);Object.keys(f).forEach(function(v){var T=f[v];kn[c][v]=function gr(c){var f=function(_){if(null==_)return _;arguments.length>1&&(_=Array.prototype.slice.call(arguments));var v=c(_);if("object"==typeof v)for(var T=v.length,O=0;O<T;O++)v[O]=Math.round(v[O]);return v};return"conversion"in c&&(f.conversion=c.conversion),f}(T),kn[c][v].raw=function Si(c){var f=function(_){return null==_?_:(arguments.length>1&&(_=Array.prototype.slice.call(arguments)),c(_))};return"conversion"in c&&(f.conversion=c.conversion),f}(T)})});var ji=kn,jn={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],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],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],ol
vendor: 16,645 bytes, line 1
1ive:[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],rebeccapurple:[102,51,153],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]},sn={getRgba:ui,getHsla:Mn,getRgb:function Mi(c){var f=ui(c);return f&&f.slice(0,3)},getHsl:function Xi(c){var f=Mn(c);return f&&f.slice(0,3)},getHwb:Zi,getAlpha:function hr(c){var f=ui(c);return f||(f=Mn(c))||(f=Zi(c))?f[3]:void 0},hexString:function Lr(c,_){return _=void 0!==_&&3===c.length?_:c[3],"#"+Wl(c[0])+Wl(c[1])+Wl(c[2])+(_>=0&&_<1?Wl(Math.round(255*_)):"")},rgbString:function Nr(c,f){return f<1||c[3]&&c[3]<1?Gi(c,f):"rgb("+c[0]+", "+c[1]+", "+c[2]+")"},rgbaString:Gi,percentString:function Mo(c,f){return f<1||c[3]&&c[3]<1?Bo(c,f):"rgb("+Math.round(c[0]/255*100)+"%, "+Math.round(c[1]/255*100)+"%, "+Math.round(c[2]/255*100)+"%)"},percentaString:Bo,hslString:function Bs(c,f){return f<1||c[3]&&c[3]<1?Ts(c,f):"hsl("+c[0]+", "+c[1]+"%, "+c[2]+"%)"},hslaString:Ts,hwbString:function Hc(c,f){return void 0===f&&(f=void 0!==c[3]?c[3]:1),"hwb("+c[0]+", "+c[1]+"%, "+c[2]+"%"+(void 0!==f&&1!==f?", "+f:"")+")"},keyword:function Jo(c){return Zo[c.slice(0,3)]}};function ui(c){if(c){var B=[0,0,0],q=1,V=c.match(/^#([a-fA-F0-9]{3,4})$/i),Z="";if(V){Z=(V=V[1])[3];for(var ue=0;ue<B.length;ue++)B[ue]=parseInt(V[ue]+V[ue],16);Z&&(q=Math.round(parseInt(Z+Z,16)/255*100)/100)}else if(V=c.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){for(Z=V[2],V=V[1],ue=0;ue<B.length;ue++)B[ue]=parseInt(V.slice(2*ue,2*ue+2),16);Z&&(q=Math.round(parseInt(Z,16)/255*100)/100)}else if(V=c.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(ue=0;ue<B.length;ue++)B[ue]=parseInt(V[ue+1]);q=parseFloat(V[4])}else if(V=c.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(ue=0;ue<B.length;ue++)B[ue]=Math.round(2.55*parseFloat(V[ue+1]));q=parseFloat(V[4])}else if(V=c.match(/(\w+)/)){if("transparent"==V[1])return[0,0,0,0];if(!(B=jn[V[1]]))return}for(ue=0;ue<B.length;ue++)B[ue]=rl(B[ue],0,255);return q=q||0==q?rl(q,0,1):1,B[3]=q,B}}function Mn(c){if(c){var _=c.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(_){var v=parseFloat(_[4]);return[rl(parseInt(_[1]),0,360),rl(parseFloat(_[2]),0,100),rl(parseFloat(_[3]),0,100),rl(isNaN(v)?1:v,0,1)]}}}function Zi(c){if(c){var _=c.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(_){var v=parseFloat(_[4]);return[rl(parseInt(_[1]),0,360),rl(parseFloat(_[2]),0,100),rl(parseFloat(_[3]),0,100),rl(isNaN(v)?1:v,0,1)]}}}function Gi(c,f){return void 0===f&&(f=void 0!==c[3]?c[3]:1),"rgba("+c[0]+", "+c[1]+", "+c[2]+", "+f+")"}function Bo(c,f){return"rgba("+Math.round(c[0]/255*100)+"%, "+Math.round(c[1]/255*100)+"%, "+Math.round(c[2]/255*100)+"%, "+(f||c[3]||1)+")"}function Ts(c,f){return void 0===f&&(f=void 0!==c[3]?c[3]:1),"hsla("+c[0]+", "+c[1]+"%, "+c[2]+"%, "+f+")"}function rl(c,f,_){return Math.min(Math.max(f,c),_)}function Wl(c){var f=c.toString(16).toUpperCase();return f.length<2?"0"+f:f}var Zo={};for(var xc in jn)Zo[jn[xc]]=xc;var al=function(c){return c instanceof al?c:this instanceof al?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof c?(f=sn.getRgba(c))?this.setValues("rgb",f):(f=sn.getHsla(c))?this.setValues("hsl",f):(f=sn.getHwb(c))&&this.setValues("hwb",f):"object"==typeof c&&(void 0!==(f=c).r||void 0!==f.red?this.setValues("rgb",f):void 0!==f.l||void 0!==f.lightness?this.setValues("hsl",f):void 0!==f.v||void 0!==f.value?this.setValues("hsv",f):void 0!==f.w||void 0!==f.whiteness?this.setValues("hwb",f):(void 0!==f.c||void 0!==f.cyan)&&this.setValues("cmyk",f)))):new al(c);var f};al.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var c=this.values;return 1!==c.alpha?c.hwb.concat([c.alpha]):c.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var c=this.values;return c.rgb.concat([c.alpha])},hslaArray:function(){var c=this.values;return c.hsl.concat([c.alpha])},alpha:function(c){return void 0===c?this.values.alpha:(this.setValues("alpha",c),this)},red:function(c){return this.setChannel("rgb",0,c)},green:function(c){return this.setChannel("rgb",1,c)},blue:function(c){return this.setChannel("rgb",2,c)},hue:function(c){return c&&(c=(c%=360)<0?360+c:c),this.setChannel("hsl",0,c)},saturation:function(c){return this.setChannel("hsl",1,c)},lightness:function(c){return this.setChannel("hsl",2,c)},saturationv:function(c){return this.setChannel("hsv",1,c)},whiteness:function(c){return this.setChannel("hwb",1,c)},blackness:function(c){return this.setChannel("hwb",2,c)},value:function(c){return this.setChannel("hsv",2,c)},cyan:function(c){return this.setChannel("cmyk",0,c)},magenta:function(c){return this.setChannel("cmyk",1,c)},yellow:function(c){return this.setChannel("cmyk",2,c)},black:function(c){return this.setChannel("cmyk",3,c)},hexString:function(){return sn.hexString(this.values.rgb)},rgbString:function(){return sn.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return sn.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return sn.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return sn.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return sn.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return sn.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return sn.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var c=this.values.rgb;return c[0]<<16|c[1]<<8|c[2]},luminosity:function(){for(var c=this.values.rgb,f=[],_=0;_<c.length;_++){var v=c[_]/255;f[_]=v<=.03928?v/12.92:Math.pow((v+.055)/1.055,2.4)}return.2126*f[0]+.7152*f[1]+.0722*f[2]},contrast:function(c){var f=this.luminosity(),_=c.luminosity();return f>_?(f+.05)/(_+.05):(_+.05)/(f+.05)},level:function(c){var f=this.contrast(c);return f>=7.1?"AAA":f>=4.5?"AA":""},dark:function(){var c=this.values.rgb;return(299*c[0]+587*c[1]+114*c[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var c=[],f=0;f<3;f++)c[f]=255-this.values.rgb[f];return this.setValues("rgb",c),this},lighten:function(c){var f=this.values.hsl;return f[2]+=f[2]*c,this.setValues("hsl",f),this},darken:function(c){var f=this.values.hsl;return f[2]-=f[2]*c,this.setValues("hsl",f),this},saturate:function(c){var f=this.values.hsl;return f[1]+=f[1]*c,this.setValues("hsl",f),this},desaturate:function(c){var f=this.values.hsl;return f[1]-=f[1]*c,this.setValues("hsl",f),this},whiten:function(c){var f=this.values.hwb;return f[1]+=f[1]*c,this.setValues("hwb",f),this},blacken:function(c){var f=this.values.hwb;return f[2]+=f[2]*c,this.setValues("hwb",f),this},greyscale:function(){var c=this.values.rgb,f=.3*c[0]+.59*c[1]+.11*c[2];return this.setValues("rgb",[f,f,f]),this},clearer:function(c){var f=this.values.alpha;return this.setValues("alpha",f-f*c),this},opaquer:function(c){var f=this.values.alpha;return this.setValues("alpha",f+f*c),this},rotate:function(c){var f=this.values.hsl,_=(f[0]+c)%360;return f[0]=_<0?360+_:_,this.setValues("hsl",f),this},mix:function(c,f){var _=this,v=c,T=void 0===f?.5:f,O=2*T-1,B=_.alpha()-v.alpha(),q=((O*B==-1?O:(O+B)/(1+O*B))+1)/2,V=1-q;return this.rgb(q*_.red()+V*v.red(),q*_.green()+V*v.green(),q*_.blue()+V*v.blue()).alpha(_.alpha()*T+v.alpha()*(1-T))},toJSON:function(){return this.rgb()},clone:function(){var v,T,c=new al,f=this.values,_=c.values;for(var O in f)f.hasOwnProperty(O)&&("[object Array]"===(T={}.toString.call(v=f[O]))?_[O]=v.slice(0):"[object Number]"===T?_[O]=v:console.error("unexpected color value:",v));return c}},al.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},al.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},al.prototype.getValues=function(c){for(var f=this.values,_={},v=0;v<c.length;v++)_[c.charAt(v)]=f[c][v];return 1!==f.alpha&&(_.a=f.alpha),_},al.prototype.setValues=function(c,f){var B,V,_=this.values,v=this.spaces,T=this.maxes,O=1;if(this.valid=!0,"alpha"===c)O=f;else if(f.length)_[c]=f.slice(0,c.length),O=f[c.length];else if(void 0!==f[c.charAt(0)]){for(B=0;B<c.length;B++)_[c][B]=f[c.charAt(B)];O=f.a}else if(void 0!==f[v[c][0]]){var q=v[c];for(B=0;B<c.length;B++)_[c][B]=f[q[B]];O=f.alpha}if(_.alpha=Math.max(0,Math.min(1,void 0===O?_.alpha:O)),"alpha"===c)return!1;for(B=0;B<c.length;B++)V=Math.max(0,Math.min(T[c][B],_[c][B])),_[c][B]=Math.round(V);for(var Z in v)Z!==c&&(_[Z]=ji[c][Z](_[c]));return!0},al.prototype.setSpace=function(c,f){var _=f[0];return void 0===_?this.getValues(c):("number"==typeof _&&(_=Array.prototype.slice.call(f)),this.setValues(c,_),this)},al.prototype.setChannel=function(c,f,_){var v=this.values[c];return void 0===_?v[f]:(_===v[f]||(v[f]=_,this.setValues(c,v)),this)},typeof window<"u"&&(window.Color=al);var fs=al;function Pl(c){return-1===["__proto__","prototype","constructor"].indexOf(c)}var aa={noop:function(){},uid:function(){var c=0;return function(){return c++}}(),isNullOrUndef:function(c){return null===c||typeof c>"u"},isArray:function(c){if(Array.isArray&&Array.isArray(c))return!0;var f=Object.prototype.toString.call(c);return"[object"===f.substr(0,7)&&"Array]"===f.substr(-6)},isObject:function(c){return null!==c&&"[object Object]"===Object.prototype.toString.call(c)},isFinite:function(c){return("number"==typeof c||c instanceof Number)&&isFinite(c)},valueOrDefault:function(c,f){return typeof c>"u"?f:c},valueAtIndexOrDefault:function(c,f,_){return aa.valueOrDefault(aa.isArray(c)?c[f]:c,_)},callback:function(c,f,_){if(c&&"function"==typeof c.call)return c.apply(_,f)},each:function(c,f,_,v){var T,O,B;if(aa.isArray(c))if(O=c.length,v)for(T=O-1;T>=0;T--)f.call(_,c[T],T);else for(T=0;T<O;T++)f.call(_,c[T],T);else if(aa.isObject(c))for(O=(B=Object.keys(c)).length,T=0;T<O;T++)f.call(_,c[B[T]],B[T])},arrayEquals:function(c,f){var _,v,T,O;if(!c||!f||c.length!==f.length)return!1;for(_=0,v=c.length;_<v;++_)if(O=f[_],(T=c[_])instanceof Array&&O instanceof Array){if(!aa.arrayEquals(T,O))return!1}else if(T!==O)return!1;return!0},clone:function(c){if(aa.isArray(c))return c.map(aa.clone);if(aa.isObject(c)){for(var f=Object.create(c),_=Object.keys(c),v=_.length,T=0;T<v;++T)f[_[T]]=aa.clone(c[_[T]]);return f}return c},_merger:function(c,f,_,v){if(Pl(c)){var T=f[c],O=_[c];aa.isObject(T)&&aa.isObject(O)?aa.merge(T,O,v):f[c]=aa.clone(O)}},_mergerIf:function(c,f,_){if(Pl(c)){var v=f[c],T=_[c];aa.isObject(v)&&aa.isObject(T)?aa.mergeIf(v,T):f.hasOwnProperty(c)||(f[c]=aa.clone(T))}},merge:function(c,f,_){var O,B,q,V,Z,v=aa.isArray(f)?f:[f],T=v.length;if(!aa.isObject(c))return c;for(O=(_=_||{}).merger||aa._merger,B=0;B<T;++B)if(aa.isObject(f=v[B]))for(Z=0,V=(q=Object.keys(f)).length;Z<V;++Z)O(q[Z],c,f,_);return c},mergeIf:function(c,f){return aa.merge(c,f,{merger:aa._mergerIf})},extend:Object.assign||function(c){return aa.merge(c,[].slice.call(arguments,1),{merger:function(f,_,v){_[f]=v[f]}})},inherits:function(c){var f=this,_=c&&c.hasOwnProperty("constructor")?c.constructor:function(){return f.apply(this,arguments)},v=function(){this.constructor=_};return v.prototype=f.prototype,_.prototype=new v,_.extend=aa.inherits,c&&aa.extend(_.prototype,c),_.__super__=f.prototype,_},_deprecated:function(c,f,_,v){void 0!==f&&console.warn(c+': "'+_+'" is deprecated. Please use "'+v+'" instead')}},ps=aa;aa.callCallback=aa.callback,aa.indexOf=function(c,f,_){return Array.prototype.indexOf.call(c,f,_)},aa.getValueOrDefault=aa.valueOrDefault,aa.getValueAtIndexOrDefault=aa.valueAtIndexOrDefault;var Gs={linear:function(c){return c},easeInQuad:function(c){return c*c},easeOutQuad:function(c){return-c*(c-2)},easeInOutQuad:function(c){return(c/=.5)<1?.5*c*c:-.5*(--c*(c-2)-1)},easeInCubic:function(c){return c*c*c},easeOutCubic:function(c){return(c-=1)*c*c+1},easeInOutCubic:function(c){return(c/=.5)<1?.5*c*c*c:.5*((c-=2)*c*c+2)},easeInQuart:function(c){return c*c*c*c},easeOutQuart:function(c){return-((c-=1)*c*c*c-1)},easeInOutQuart:function(c){return(c/=.5)<1?.5*c*c*c*c:-.5*((c-=2)*c*c*c-2)},easeInQuint:function(c){return c*c*c*c*c},easeOutQuint:function(c){return(c-=1)*c*c*c*c+1},easeInOutQuint:function(c){return(c/=.5)<1?.5*c*c*c*c*c:.5*((c-=2)*c*c*c*c+2)},easeInSine:function(c){return 1-Math.cos(c*(Math.PI/2))},easeOutSine:function(c){return Math.sin(c*(Math.PI/2))},easeInOutSine:function(c){return-.5*(Math.cos(Math.PI*c)-1)},easeInExpo:function(c){return 0===c?0:Math.pow(2,10*(c-1))},easeOutExpo:function(c){return 1===c?1:1-Math.pow(2,-10*c)},easeInOutExpo:function(c){return 0===c?0:1===c?1:(c/=.5)<1?.5*Math.pow(2,10*(c-1)):.5*(2-Math.pow(2,-10*--c))},easeInCirc:function(c){return c>=1?c:-(Math.sqrt(1-c*c)-1)},easeOutCirc:function(c){return Math.sqrt(1-(c-=1)*c)},easeInOutCirc:function(c){return(c/=.5)<1?-.5*(Math.sqrt(1-c*c)-1):.5*(Math.sqrt(1-(c-=2)*c)+1)},easeInElastic:function(c){var f=1.70158,_=0,v=1;return 0===c?0:1===c?1:(_||(_=.3),v<1?(v=1,f=_/4):f=_/(2*Math.PI)*Math.asin(1/v),-v*Math.pow(2,10*(c-=1))*Math.sin((c-f)*(2*Math.PI)/_))},easeOutElastic:function(c){var f=1.70158,_=0,v=1;return 0===c?0:1===c?1:(_||(_=.3),v<1?(v=1,f=_/4):f=_/(2*Math.PI)*Math.asin(1/v),v*Math.pow(2,-10*c)*Math.sin((c-f)*(2*Math.PI)/_)+1)},easeInOutElastic:function(c){var f=1.70158,_=0,v=1;return 0===c?0:2==(c/=.5)?1:(_||(_=.45),v<1?(v=1,f=_/4):f=_/(2*Math.PI)*Math.asin(1/v),c<1?v*Math.pow(2,10*(c-=1))*Math.sin((c-f)*(2*Math.PI)/_)*-.5:v*Math.pow(2,-10*(c-=1))*Math.sin((c-f)*(2*Math.PI)/_)*.5+1)},easeInBack:function(c){var f=1.70158;return c*c*((f+1)*c-f)},easeOutBack:function(c){var f=1.70158;return(c-=1)*c*((f+1)*c+f)+1},easeInOutBack:function(c){var f=1.70158;return(c/=.5)<1?c*c*((1+(f*=1.525))*c-f)*.5:.5*((c-=2)*c*((1+(f*=1.525))*c+f)+2)},easeInBounce:function(c){return 1-Gs.easeOutBounce(1-c)},easeOutBounce:function(c){return c<1/2.75?7.5625*c*c:c<2/2.75?7.5625*(c-=1.5/2.75)*c+.75:c<2.5/2.75?7.5625*(c-=2.25/2.75)*c+.9375:7.5625*(c-=2.625/2.75)*c+.984375},easeInOutBounce:function(c){return c<.5?.5*Gs.easeInBounce(2*c):.5*Gs.easeOutBounce(2*c-1)+.5}},Bd={effects:Gs};ps.easingEffects=Gs;var Ia=Math.PI,Kc=Ia/180,Vs=2*Ia,fr=Ia/2,bo=Ia/4,Cs=2*Ia/3,yo={clear:function(c){c.ctx.clearRect(0,0,c.width,c.height)},roundedRect:function(c,f,_,v,T,O){if(O){var B=Math.min(O,T/2,v/2),q=f+B,V=_+B,Z=f+v-B,ue=_+T-B;c.moveTo(f,V),q<Z&&V<ue?(c.arc(q,V,B,-Ia,-fr),c.arc(Z,V,B,-fr,0),c.arc(Z,ue,B,0,fr),c.arc(q,ue,B,fr,Ia)):q<Z?(c.moveTo(q,_),c.arc(Z,V,B,-fr,fr),c.arc(q,V,B,fr,Ia+fr)):V<ue?(c.arc(q,V,B,-Ia,0),c.arc(q,ue,B,0,Ia)):c.arc(q,V,B,-Ia,Ia),c.closePath(),c.moveTo(f,_)}else c.rect(f,_,v,T)},drawPoint:function(c,f,_,v,T,O){var B,q,V,Z,ue,pe=(O||0)*Kc;if(f&&"object"==typeof f&&("[object HTMLImageElement]"===(B=f.toString())||"[object HTMLCanvasElement]"===B))return c.save(),c.translate(v,T),c.rotate(pe),c.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),void c.restore();if(!(isNaN(_)||_<=0)){switch(c.beginPath(),f){default:c.arc(v,T,_,0,Vs),c.closePath();break;case"triangle":c.moveTo(v+Math.sin(pe)*_,T-Math.cos(pe)*_),pe+=Cs,c.lineTo(v+Math.sin(pe)*_,T-Math.cos(pe)*_),pe+=Cs,c.lineTo(v+Math.sin(pe)*_,T-Math.cos(pe)*_),c.closePath();break;
vendor: 6,029 bytes, line 1
1case"rectRounded":Z=_-(ue=.516*_),q=Math.cos(pe+bo)*Z,V=Math.sin(pe+bo)*Z,c.arc(v-q,T-V,ue,pe-Ia,pe-fr),c.arc(v+V,T-q,ue,pe-fr,pe),c.arc(v+q,T+V,ue,pe,pe+fr),c.arc(v-V,T+q,ue,pe+fr,pe+Ia),c.closePath();break;case"rect":if(!O){Z=Math.SQRT1_2*_,c.rect(v-Z,T-Z,2*Z,2*Z);break}pe+=bo;case"rectRot":q=Math.cos(pe)*_,V=Math.sin(pe)*_,c.moveTo(v-q,T-V),c.lineTo(v+V,T-q),c.lineTo(v+q,T+V),c.lineTo(v-V,T+q),c.closePath();break;case"crossRot":pe+=bo;case"cross":q=Math.cos(pe)*_,V=Math.sin(pe)*_,c.moveTo(v-q,T-V),c.lineTo(v+q,T+V),c.moveTo(v+V,T-q),c.lineTo(v-V,T+q);break;case"star":q=Math.cos(pe)*_,V=Math.sin(pe)*_,c.moveTo(v-q,T-V),c.lineTo(v+q,T+V),c.moveTo(v+V,T-q),c.lineTo(v-V,T+q),pe+=bo,q=Math.cos(pe)*_,V=Math.sin(pe)*_,c.moveTo(v-q,T-V),c.lineTo(v+q,T+V),c.moveTo(v+V,T-q),c.lineTo(v-V,T+q);break;case"line":q=Math.cos(pe)*_,V=Math.sin(pe)*_,c.moveTo(v-q,T-V),c.lineTo(v+q,T+V);break;case"dash":c.moveTo(v,T),c.lineTo(v+Math.cos(pe)*_,T+Math.sin(pe)*_)}c.fill(),c.stroke()}},_isPointInArea:function(c,f){var _=1e-6;return c.x>f.left-_&&c.x<f.right+_&&c.y>f.top-_&&c.y<f.bottom+_},clipArea:function(c,f){c.save(),c.beginPath(),c.rect(f.left,f.top,f.right-f.left,f.bottom-f.top),c.clip()},unclipArea:function(c){c.restore()},lineTo:function(c,f,_,v){var T=_.steppedLine;if(T){if("middle"===T){var O=(f.x+_.x)/2;c.lineTo(O,v?_.y:f.y),c.lineTo(O,v?f.y:_.y)}else"after"===T&&!v||"after"!==T&&v?c.lineTo(f.x,_.y):c.lineTo(_.x,f.y);c.lineTo(_.x,_.y)}else _.tension?c.bezierCurveTo(v?f.controlPointPreviousX:f.controlPointNextX,v?f.controlPointPreviousY:f.controlPointNextY,v?_.controlPointNextX:_.controlPointPreviousX,v?_.controlPointNextY:_.controlPointPreviousY,_.x,_.y):c.lineTo(_.x,_.y)}},Go=yo;ps.clear=yo.clear,ps.drawRoundedRectangle=function(c){c.beginPath(),yo.roundedRect.apply(yo,arguments)};var Ml={_set:function(c,f){return ps.merge(this[c]||(this[c]={}),f)}};Ml._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var kr=Ml,$l=ps.valueOrDefault;var gl={toLineHeight:function(c,f){var _=(""+c).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!_||"normal"===_[1])return 1.2*f;switch(c=+_[2],_[3]){case"px":return c;case"%":c/=100}return f*c},toPadding:function(c){var f,_,v,T;return ps.isObject(c)?(f=+c.top||0,_=+c.right||0,v=+c.bottom||0,T=+c.left||0):f=_=v=T=+c||0,{top:f,right:_,bottom:v,left:T,height:f+v,width:T+_}},_parseFont:function(c){var f=kr.global,_=$l(c.fontSize,f.defaultFontSize),v={family:$l(c.fontFamily,f.defaultFontFamily),lineHeight:ps.options.toLineHeight($l(c.lineHeight,f.defaultLineHeight),_),size:_,style:$l(c.fontStyle,f.defaultFontStyle),weight:null,string:""};return v.string=function ol(c){return!c||ps.isNullOrUndef(c.size)||ps.isNullOrUndef(c.family)?null:(c.style?c.style+" ":"")+(c.weight?c.weight+" ":"")+c.size+"px "+c.family}(v),v},resolve:function(c,f,_,v){var O,B,q,T=!0;for(O=0,B=c.length;O<B;++O)if(void 0!==(q=c[O])&&(void 0!==f&&"function"==typeof q&&(q=q(f),T=!1),void 0!==_&&ps.isArray(q)&&(q=q[_],T=!1),void 0!==q))return v&&!T&&(v.cacheable=!1),q}},ql={_factorize:function(c){var v,f=[],_=Math.sqrt(c);for(v=1;v<_;v++)c%v==0&&(f.push(v),f.push(c/v));return _===(0|_)&&f.push(_),f.sort(function(T,O){return T-O}).pop(),f},log10:Math.log10||function(c){var f=Math.log(c)*Math.LOG10E,_=Math.round(f);return c===Math.pow(10,_)?_:f}},Mu=ql;ps.log10=ql.log10;var we=ps,zs=Go,Ss=gl,zd=Mu,Ou={getRtlAdapter:function(c,f,_){return c?function(c,f){return{x:function(_){return c+c+f-_},setWidth:function(_){f=_},textAlign:function(_){return"center"===_?_:"right"===_?"left":"right"},xPlus:function(_,v){return _-v},leftForLtr:function(_,v){return _-v}}}(f,_):{x:function(c){return c},setWidth:function(c){},textAlign:function(c){return c},xPlus:function(c,f){return c+f},leftForLtr:function(c,f){return c}}},overrideTextDirection:function(c,f){var _,v;("ltr"===f||"rtl"===f)&&(v=[(_=c.canvas.style).getPropertyValue("direction"),_.getPropertyPriority("direction")],_.setProperty("direction",f,"important"),c.prevTextDirection=v)},restoreTextDirection:function(c){var f=c.prevTextDirection;void 0!==f&&(delete c.prevTextDirection,c.canvas.style.setProperty("direction",f[0],f[1]))}};we.easing=Bd,we.canvas=zs,we.options=Ss,we.math=zd,we.rtl=Ou;var Ud=function(c){we.extend(this,c),this.initialize.apply(this,arguments)};we.extend(Ud.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var c=this;return c._view||(c._view=we.extend({},c._model)),c._start={},c},transition:function(c){var f=this,_=f._model,v=f._start,T=f._view;return _&&1!==c?(T||(T=f._view={}),v||(v=f._start={}),function Du(c,f,_,v){var O,B,q,V,Z,ue,pe,je,ft,T=Object.keys(_);for(O=0,B=T.length;O<B;++O)if(ue=_[q=T[O]],f.hasOwnProperty(q)||(f[q]=ue),(V=f[q])!==ue&&"_"!==q[0]){if(c.hasOwnProperty(q)||(c[q]=V),(pe=typeof ue)==typeof(Z=c[q]))if("string"===pe){if((je=fs(Z)).valid&&(ft=fs(ue)).valid){f[q]=ft.mix(je,v).rgbString();continue}}else if(we.isFinite(Z)&&we.isFinite(ue)){f[q]=Z+(ue-Z)*v;continue}f[q]=ue}}(v,T,_,c),f):(f._view=we.extend({},_),f._start=null,f)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return we.isNumber(this._model.x)&&we.isNumber(this._model.y)}}),Ud.extend=we.inherits;var Es=Ud,Ol=Es.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),du=Ol;Object.defineProperty(Ol.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(Ol.prototype,"chartInstance",{get:function(){return this.chart},set:function(c){this.chart=c}}),kr._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:we.noop,onComplete:we.noop}});var Yd={animations:[],request:null,addAnimation:function(c,f,_,v){var O,B,T=this.animations;for(f.chart=c,f.startTime=Date.now(),f.duration=_,v||(c.animating=!0),O=0,B=T.length;O<B;++O)if(T[O].chart===c)return void(T[O]=f);
vendor: 9,680 bytes, line 1
1T.push(f),1===T.length&&this.requestAnimationFrame()},cancelAnimation:function(c){var f=we.findIndex(this.animations,function(_){return _.chart===c});-1!==f&&(this.animations.splice(f,1),c.animating=!1)},requestAnimationFrame:function(){var c=this;null===c.request&&(c.request=we.requestAnimFrame.call(window,function(){c.request=null,c.startDigest()}))},startDigest:function(){var c=this;c.advance(),c.animations.length>0&&c.requestAnimationFrame()},advance:function(){for(var f,_,v,T,c=this.animations,O=0;O<c.length;)_=(f=c[O]).chart,v=f.numSteps,T=Math.floor((Date.now()-f.startTime)/f.duration*v)+1,f.currentStep=Math.min(T,v),we.callback(f.render,[_,f],_),we.callback(f.onAnimationProgress,[f],_),f.currentStep>=v?(we.callback(f.onAnimationComplete,[f],_),_.animating=!1,c.splice(O,1)):++O}},bc=we.options.resolve,Jc=["push","pop","shift","splice","unshift"];function uu(c,f){var _=c._chartjs;if(_){var v=_.listeners,T=v.indexOf(f);-1!==T&&v.splice(T,1),!(v.length>0)&&(Jc.forEach(function(O){delete c[O]}),delete c._chartjs)}}var fu=function(c,f){this.initialize(c,f)};we.extend(fu.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(c,f){var _=this;_.chart=c,_.index=f,_.linkScales(),_.addElements(),_._type=_.getMeta().type},updateIndex:function(c){this.index=c},linkScales:function(){var c=this,f=c.getMeta(),_=c.chart,v=_.scales,T=c.getDataset(),O=_.options.scales;(null===f.xAxisID||!(f.xAxisID in v)||T.xAxisID)&&(f.xAxisID=T.xAxisID||O.xAxes[0].id),(null===f.yAxisID||!(f.yAxisID in v)||T.yAxisID)&&(f.yAxisID=T.yAxisID||O.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(c){return this.chart.scales[c]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&uu(this._data,this)},createMetaDataset:function(){var c=this,f=c.datasetElementType;return f&&new f({_chart:c.chart,_datasetIndex:c.index})},createMetaData:function(c){var f=this,_=f.dataElementType;return _&&new _({_chart:f.chart,_datasetIndex:f.index,_index:c})},addElements:function(){var T,O,c=this,f=c.getMeta(),_=c.getDataset().data||[],v=f.data;for(T=0,O=_.length;T<O;++T)v[T]=v[T]||c.createMetaData(T);f.dataset=f.dataset||c.createMetaDataset()},addElementAndReset:function(c){var f=this.createMetaData(c);this.getMeta().data.splice(c,0,f),this.updateElement(f,c,!0)},buildOrUpdateElements:function(){var c=this,f=c.getDataset(),_=f.data||(f.data=[]);c._data!==_&&(c._data&&uu(c._data,c),_&&Object.isExtensible(_)&&function Ef(c,f){c._chartjs?c._chartjs.listeners.push(f):(Object.defineProperty(c,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[f]}}),Jc.forEach(function(_){var v="onData"+_.charAt(0).toUpperCase()+_.slice(1),T=c[_];Object.defineProperty(c,_,{configurable:!0,enumerable:!1,value:function(){var O=Array.prototype.slice.call(arguments),B=T.apply(this,O);return we.each(c._chartjs.listeners,function(q){"function"==typeof q[v]&&q[v].apply(q,O)}),B}})}))}(_,c),c._data=_),c.resyncElements()},_configure:function(){var c=this;c._config=we.merge(Object.create(null),[c.chart.options.datasets[c._type],c.getDataset()],{merger:function(f,_,v){"_meta"!==f&&"data"!==f&&we._merger(f,_,v)}})},_update:function(c){var f=this;f._configure(),f._cachedDataOpts=null,f.update(c)},update:we.noop,transition:function(c){for(var f=this.getMeta(),_=f.data||[],v=_.length,T=0;T<v;++T)_[T].transition(c);f.dataset&&f.dataset.transition(c)},draw:function(){var c=this.getMeta(),f=c.data||[],_=f.length,v=0;for(c.dataset&&c.dataset.draw();v<_;++v)f[v].draw()},getStyle:function(c){var T,f=this,_=f.getMeta(),v=_.dataset;return f._configure(),(!1===(T=v&&void 0===c?f._resolveDatasetElementOptions(v||{}):f._resolveDataElementOptions(_.data[c=c||0]||{},c)).fill||null===T.fill)&&(T.backgroundColor=T.borderColor),T},_resolveDatasetElementOptions:function(c,f){var Z,ue,pe,je,_=this,v=_.chart,T=_._config,O=c.custom||{},B=v.options.elements[_.datasetElementType.prototype._type]||{},q=_._datasetElementOptions,V={},ft={chart:v,dataset:_.getDataset(),datasetIndex:_.index,hover:f};for(Z=0,ue=q.length;Z<ue;++Z)pe=q[Z],je=f?"hover"+pe.charAt(0).toUpperCase()+pe.slice(1):pe,V[pe]=bc([O[je],T[je],B[je]],ft);return V},_resolveDataElementOptions:function(c,f){var _=this,v=c&&c.custom,T=_._cachedDataOpts;if(T&&!v)return T;var je,ft,xt,St,O=_.chart,B=_._config,q=O.options.elements[_.dataElementType.prototype._type]||{},V=_._dataElementOptions,Z={},ue={chart:O,dataIndex:f,dataset:_.getDataset(),datasetIndex:_.index},pe={cacheable:!v};if(v=v||{},we.isArray(V))for(ft=0,xt=V.length;ft<xt;++ft)Z[St=V[ft]]=bc([v[St],B[St],q[St]],ue,f,pe);else for(ft=0,xt=(je=Object.keys(V)).length;ft<xt;++ft)Z[St=je[ft]]=bc([v[St],B[V[St]],B[St],q[St]],ue,f,pe);return pe.cacheable&&(_._cachedDataOpts=Object.freeze(Z)),Z},removeHoverStyle:function(c){we.merge(c._model,c.$previousStyle||{}),delete c.$previousStyle},setHoverStyle:function(c){var f=this.chart.data.datasets[c._datasetIndex],_=c._index,v=c.custom||{},T=c._model,O=we.getHoverColor;c.$previousStyle={backgroundColor:T.backgroundColor,borderColor:T.borderColor,borderWidth:T.borderWidth},T.backgroundColor=bc([v.hoverBackgroundColor,f.hoverBackgroundColor,O(T.backgroundColor)],void 0,_),T.borderColor=bc([v.hoverBorderColor,f.hoverBorderColor,O(T.borderColor)],void 0,_),T.borderWidth=bc([v.hoverBorderWidth,f.hoverBorderWidth,T.borderWidth],void 0,_)},_removeDatasetHoverStyle:function(){var c=this.getMeta().dataset;c&&this.removeHoverStyle(c)},_setDatasetHoverStyle:function(){var _,v,T,O,B,q,c=this.getMeta().dataset,f={};if(c){for(q=c._model,B=this._resolveDatasetElementOptions(c,!0),_=0,v=(O=Object.keys(B)).length;_<v;++_)f[T=O[_]]=q[T],q[T]=B[T];c.$previousStyle=f}},resyncElements:function(){var c=this,f=c.getMeta(),_=c.getDataset().data,v=f.data.length,T=_.length;T<v?f.data.splice(T,v-T):T>v&&c.insertElements(v,T-v)},insertElements:function(c,f){for(var _=0;_<f;++_)this.addElementAndReset(c+_)},onDataPush:function(){var c=arguments.length;this.insertElements(this.getDataset().data.length-c,c)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(c,f){this.getMeta().data.splice(c,f),this.insertElements(c,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),fu.extend=we.inherits;var Qo=fu,sl=2*Math.PI;function Pf(c,f){var _=f.startAngle,v=f.endAngle,T=f.pixelMargin,O=T/f.outerRadius,B=f.x,q=f.y;c.beginPath(),c.arc(B,q,f.outerRadius,_-O,v+O),f.innerRadius>T?c.arc(B,q,f.innerRadius-T,v+(O=T/f.innerRadius),_-O,!0):c.arc(B,q,T,v+Math.PI/2,_-Math.PI/2),c.closePath(),c.clip()}function of(c,f,_){var v="inner"===f.borderAlign;v?(c.lineWidth=2*f.borderWidth,c.lineJoin="round"):(c.lineWidth=f.borderWidth,c.lineJoin="bevel"),_.fullCircles&&function Wd(c,f,_,v){var O,T=_.endAngle;for(v&&(_.endAngle=_.startAngle+sl,Pf(c,_),_.endAngle=T,_.endAngle===_.startAngle&&_.fullCircles&&(_.endAngle+=sl,_.fullCircles--)),c.beginPath(),c.arc(_.x,_.y,_.innerRadius,_.startAngle+sl,_.startAngle,!0),O=0;O<_.fullCircles;++O)c.stroke();for(c.beginPath(),c.arc(_.x,_.y,f.outerRadius,_.startAngle,_.startAngle+sl),O=0;O<_.fullCircles;++O)c.stroke()}(c,f,_,v),v&&Pf(c,_),c.beginPath(),c.arc(_.x,_.y,f.outerRadius,_.startAngle,_.endAngle),c.arc(_.x,_.y,_.innerRadius,_.endAngle,_.startAngle,!0),c.closePath(),c.stroke()}kr._set("global",{elements:{arc:{backgroundColor:kr.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var vd=Es.extend({_type:"arc",inLabelRange:function(c){var f=this._view;return!!f&&Math.pow(c-f.x,2)<Math.pow(f.radius+f.hoverRadius,2)},inRange:function(c,f){var _=this._view;if(_){for(var v=we.getAngleFromPoint(_,{x:c,y:f}),T=v.angle,O=v.distance,B=_.startAngle,q=_.endAngle;q<B;)q+=sl;for(;T>q;)T-=sl;for(;T<B;)T+=sl;return T>=B&&T<=q&&O>=_.innerRadius&&O<=_.outerRadius}return!1},getCenterPoint:function(){var c=this._view,f=(c.startAngle+c.endAngle)/2,_=(c.innerRadius+c.outerRadius)/2;return{x:c.x+Math.cos(f)*_,y:c.y+Math.sin(f)*_}},getArea:function(){var c=this._view;return Math.PI*((c.endAngle-c.startAngle)/(2*Math.PI))*(Math.pow(c.outerRadius,2)-Math.pow(c.innerRadius,2))},tooltipPosition:function(){var c=this._view,f=c.startAngle+(c.endAngle-c.startAngle)/2,_=(c.outerRadius-c.innerRadius)/2+c.innerRadius;return{x:c.x+Math.cos(f)*_,y:c.y+Math.sin(f)*_}},draw:function(){var T,c=this._chart.ctx,f=this._view,_="inner"===f.borderAlign?.33:0,v={x:f.x,y:f.y,innerRadius:f.innerRadius,outerRadius:Math.max(f.outerRadius-_,0),pixelMargin:_,startAngle:f.startAngle,endAngle:f.endAngle,fullCircles:Math.floor(f.circumference/sl)};if(c.save(),c.fillStyle=f.backgroundColor,c.strokeStyle=f.borderColor,v.fullCircles){for(v.endAngle=v.startAngle+sl,c.beginPath(),c.arc(v.x,v.y,v.outerRadius,v.startAngle,v.endAngle),c.arc(v.x,v.y,v.innerRadius,v.endAngle,v.startAngle,!0),c.closePath(),T=0;T<v.fullCircles;++T)c.fill();v.endAngle=v.startAngle+f.circumference%sl}c.beginPath(),c.arc(v.x,v.y,v.outerRadius,v.startAngle,v.endAngle),c.arc(v.x,v.y,v.innerRadius,v.endAngle,v.startAngle,!0),c.closePath(),c.fill(),f.borderWidth&&of(c,f,v),c.restore(
vendor: 10,290 bytes, line 1
1)}}),Zc=we.valueOrDefault,xd=kr.global.defaultColor;kr._set("global",{elements:{line:{tension:.4,backgroundColor:xd,borderWidth:3,borderColor:xd,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var Qc=Es.extend({_type:"line",draw:function(){var Z,ue,pe,c=this,f=c._view,_=c._chart.ctx,v=f.spanGaps,T=c._children.slice(),O=kr.global,B=O.elements.line,q=-1,V=c._loop;if(T.length){if(c._loop){for(Z=0;Z<T.length;++Z)if(ue=we.previousItem(T,Z),!T[Z]._view.skip&&ue._view.skip){T=T.slice(Z).concat(T.slice(0,Z)),V=v;break}V&&T.push(T[0])}for(_.save(),_.lineCap=f.borderCapStyle||B.borderCapStyle,_.setLineDash&&_.setLineDash(f.borderDash||B.borderDash),_.lineDashOffset=Zc(f.borderDashOffset,B.borderDashOffset),_.lineJoin=f.borderJoinStyle||B.borderJoinStyle,_.lineWidth=Zc(f.borderWidth,B.borderWidth),_.strokeStyle=f.borderColor||O.defaultColor,_.beginPath(),(pe=T[0]._view).skip||(_.moveTo(pe.x,pe.y),q=0),Z=1;Z<T.length;++Z)pe=T[Z]._view,ue=-1===q?we.previousItem(T,Z):T[q],pe.skip||(q!==Z-1&&!v||-1===q?_.moveTo(pe.x,pe.y):we.canvas.lineTo(_,ue._view,pe),q=Z);V&&_.closePath(),_.stroke(),_.restore()}}}),Iu=we.valueOrDefault,yc=kr.global.defaultColor;function sc(c){var f=this._view;return!!f&&Math.abs(c-f.x)<f.radius+f.hitRadius}kr._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:yc,borderColor:yc,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var ju=Es.extend({_type:"point",inRange:function(c,f){var _=this._view;return!!_&&Math.pow(c-_.x,2)+Math.pow(f-_.y,2)<Math.pow(_.hitRadius+_.radius,2)},inLabelRange:sc,inXRange:sc,inYRange:function ed(c){var f=this._view;return!!f&&Math.abs(c-f.y)<f.radius+f.hitRadius},getCenterPoint:function(){var c=this._view;return{x:c.x,y:c.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var c=this._view;return{x:c.x,y:c.y,padding:c.radius+c.borderWidth}},draw:function(c){var f=this._view,_=this._chart.ctx,v=f.pointStyle,T=f.rotation,O=f.radius,B=f.x,q=f.y,V=kr.global,Z=V.defaultColor;f.skip||(void 0===c||we.canvas._isPointInArea(f,c))&&(_.strokeStyle=f.borderColor||Z,_.lineWidth=Iu(f.borderWidth,V.elements.point.borderWidth),_.fillStyle=f.backgroundColor||Z,we.canvas.drawPoint(_,v,O,B,q,T))}}),ll=kr.global.defaultColor;function Ru(c){return c&&void 0!==c.width}function Rc(c){var f,_,v,T,O;return Ru(c)?(f=c.x-(O=c.width/2),_=c.x+O,v=Math.min(c.y,c.base),T=Math.max(c.y,c.base)):(O=c.height/2,f=Math.min(c.x,c.base),_=Math.max(c.x,c.base),v=c.y-O,T=c.y+O),{left:f,top:v,right:_,bottom:T}}function Vr(c,f,_){return c===f?_:c===_?f:c}function ro(c,f,_){var O,B,q,V,v=c.borderWidth,T=function bd(c){var f=c.borderSkipped,_={};return f&&(c.horizontal?c.base>c.x&&(f=Vr(f,"left","right")):c.base<c.y&&(f=Vr(f,"bottom","top")),_[f]=!0),_}(c);return we.isObject(v)?(O=+v.top||0,B=+v.right||0,q=+v.bottom||0,V=+v.left||0):O=B=q=V=+v||0,{t:T.top||O<0?0:O>_?_:O,r:T.right||B<0?0:B>f?f:B,b:T.bottom||q<0?0:q>_?_:q,l:T.left||V<0?0:V>f?f:V}}function Lc(c,f,_){var v=null===f,T=null===_,O=!(!c||v&&T)&&Rc(c);return O&&(v||f>=O.left&&f<=O.right)&&(T||_>=O.top&&_<=O.bottom)}kr._set("global",{elements:{rectangle:{backgroundColor:ll,borderColor:ll,borderSkipped:"bottom",borderWidth:0}}});var td=Es.extend({_type:"rectangle",draw:function(){var c=this._chart.ctx,f=this._view,_=function $d(c){var f=Rc(c),_=f.right-f.left,v=f.bottom-f.top,T=ro(c,_/2,v/2);return{outer:{x:f.left,y:f.top,w:_,h:v},inner:{x:f.left+T.l,y:f.top+T.t,w:_-T.l-T.r,h:v-T.t-T.b}}}(f),v=_.outer,T=_.inner;c.fillStyle=f.backgroundColor,c.fillRect(v.x,v.y,v.w,v.h),(v.w!==T.w||v.h!==T.h)&&(c.save(),c.beginPath(),c.rect(v.x,v.y,v.w,v.h),c.clip(),c.fillStyle=f.borderColor,c.rect(T.x,T.y,T.w,T.h),c.fill("evenodd"),c.restore())},height:function(){var c=this._view;return c.base-c.y},inRange:function(c,f){return Lc(this._view,c,f)},inLabelRange:function(c,f){var _=this._view;return Ru(_)?Lc(_,c,null):Lc(_,null,f)},inXRange:function(c){return Lc(this._view,c,null)},inYRange:function(c){return Lc(this._view,null,c)},getCenterPoint:function(){var f,_,c=this._view;return Ru(c)?(f=c.x,_=(c.y+c.base)/2):(f=(c.x+c.base)/2,_=c.y),{x:f,y:_}},getArea:function(){var c=this._view;return Ru(c)?c.width*Math.abs(c.y-c.base):c.height*Math.abs(c.x-c.base)},tooltipPosition:function(){var c=this._view;return{x:c.x,y:c.y}}}),Sa={},$a=Qc,qd=ju,Dl=td;Sa.Arc=vd,Sa.Line=$a,Sa.Point=qd,Sa.Rectangle=Dl;var Ps=we._deprecated,Vo=we.valueOrDefault;function as(c,f,_){var q,V,v=_.barThickness,T=f.stackCount,O=f.pixels[c],B=we.isNullOrUndef(v)?function Xo(c,f){var v,T,O,B,_=c._length;for(O=1,B=f.length;O<B;++O)_=Math.min(_,Math.abs(f[O]-f[O-1]));for(O=0,B=c.getTicks().length;O<B;++O)T=c.getPixelForTick(O),_=O>0?Math.min(_,Math.abs(T-v)):_,v=T;return _}(f.scale,f.pixels):-1;return we.isNullOrUndef(v)?(q=B*_.categoryPercentage,V=_.barPercentage):(q=v*T,V=1),{chunk:q/T,ratio:V,start:O-q/2}}kr._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),kr._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var Ye=Qo.extend({dataElementType:Sa.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var f,_,c=this;Qo.prototype.initialize.apply(c,arguments),(f=c.getMeta()).stack=c.getDataset().stack,f.bar=!0,_=c._getIndexScale().options,Ps("bar chart",_.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),Ps("bar chart",_.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),Ps("bar chart",_.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),Ps("bar chart",c._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),Ps("bar chart",_.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(c){var v,T,f=this,_=f.getMeta().data;for(f._ruler=f.getRuler(),v=0,T=_.length;v<T;++v)f.updateElement(_[v],v,c)},updateElement:function(c,f,_){var v=this,T=v.getMeta(),O=v.getDataset(),B=v._resolveDataElementOptions(c,f);c._xScale=v.getScaleForId(T.xAxisID),c._yScale=v.getScaleForId(T.yAxisID),c._datasetIndex=v.index,c._index=f,c._model={backgroundColor:B.backgroundColor,borderColor:B.borderColor,borderSkipped:B.borderSkipped,borderWidth:B.borderWidth,datasetLabel:O.label,label:v.chart.data.labels[f]},we.isArray(O.data[f])&&(c._model.borderSkipped=null),v._updateElementGeometry(c,f,_,B),c.pivot()},_updateElementGeometry:function(c,f,_,v){var T=this,O=c._model,B=T._getValueScale(),q=B.getBasePixel(),V=B.isHorizontal(),Z=T._ruler||T.getRuler(),ue=T.calculateBarValuePixels(T.index,f,v),pe=T.calculateBarIndexPixels(T.index,f,Z,v);O.horizontal=V,O.base=_?q:ue.base,O.x=V?_?q:ue.head:pe.center,O.y=V?pe.center:_?q:ue.head,O.height=V?pe.size:void 0,O.width=V?void 0:pe.size},_getStacks:function(c){var q,V,_=this._getIndexScale(),v=_._getMatchingVisibleMetas(this._type),T=_.options.stacked,O=v.length,B=[];for(q=0;q<O&&(V=v[q],(!1===T||-1===B.indexOf(V.stack)||void 0===T&&void 0===V.stack)&&B.push(V.stack),V.index!==c);++q);return B},getStackCount:function(){return this._getStacks().length},getStackIndex:function(c,f){var _=this._getStacks(c),v=void 0!==f?_.indexOf(f):-1;return-1===v?_.length-1:v},getRuler:function(){var v,T,c=this,f=c._getIndexScale(),_=[];for(v=0,T=c.getMeta().data.length;v<T;++v)_.push(f.getPixelForValue(null,v,c.index));return{pixels:_,start:f._startPixel,end:f._endPixel,stackCount:c.getStackCount(),scale:f}},calculateBarValuePixels:function(c,f,_){var zt,Hn,_n,Ui,ma,la,La,v=this,T=v.chart,O=v._getValueScale(),B=O.isHorizontal(),q=T.data.datasets,V=O._getMatchingVisibleMetas(v._type),Z=O._parseValue(q[c].data[f]),ue=_.minBarLength,pe=O.options.stacked,je=v.getMeta().stack,ft=void 0===Z.start?0:Z.max>=0&&Z.min>=0?Z.min:Z.max,xt=void 0===Z.start?Z.end:Z.max>=0&&Z.min>=0?Z.max-Z.min:Z.min-Z.max,St=V.length;if(pe||void 0===pe&&void 0!==je)for(zt=0;zt<St&&(Hn=V[zt]).index!==c;++zt)Hn.stack===je&&(_n=void 0===(La=O._parseValue(q[Hn.index].data[f])).start?La.end:La.min>=0&&La.max>=0?La.max:La.min,(Z.min<0&&_n<0||Z.max>=0&&_n>0)&&(ft+=_n));return Ui=O.getPixelForValue(ft),la=(ma=O.getPixelForValue(ft+xt))-Ui,void 0!==ue&&Math.abs(la)<ue&&(la=ue,ma=xt>=0&&!B||xt<0&&B?Ui-ue:Ui+ue),{size:la,base:Ui,head:ma,center:ma+la/2}},calculateBarIndexPixels:function(c,f,_,v){var O="flex"===v.barThickness?function os(c,f,_){var V,v=f.pixels,T=v[c],O=c>0?v[c-1]:null,B=c<v.length-1?v[c+1]:null,q=_.categoryPercentage;return null===O&&(O=T-(null===B?f.end-f.start:B-T)),null===B&&(B=T+T-O),V=T-(T-Math.min(O,B))/2*q,{chunk:Math.abs(B-O)/2*q/f.stackCount,ratio:_.barPercentage,start:V}}(f,_,v):as(f,_,v),B=this.getStackIndex(c,this.getMeta().stack),q=O.start+O.chunk*B+O.chunk/2,V=Math.min(Vo(v.maxBarThickness,1/0),O.chunk*O.ratio);return{base:q-V/2,head:q+V/2,center:q,size:V}},draw:function(){var c=this,f=c.chart,_=c._getValueScale(),v=c.getMeta().data,T=c.getDataset(),O=v.length,B=0;for(we.canvas.clipArea(f.ctx,f.chartArea);B<O;++B){var q=_._parseValue(T.data[B]);!isNaN(q.min)&&!isNaN(q.max)&&v[B].draw()}we.canvas.unclipArea(f.ctx)},_resolveDataElementOptions:function(){var c=this,f=we.extend({},Qo.prototype._resolveDataElementOptions.apply(c,arguments)),_=c._getIndexScale().options,v=c._getValueScale().options;return f.barPercentage=Vo(_.barPercentage,f.barPercentage),f.barThickness=Vo(_.barThickness,f.barThickness),f.categoryPercentage=Vo(_.categoryPercentage,f.categoryPercentage),f.maxBarThickness=Vo(_.maxBarThickness,f.maxBarThickness),f.minBarLength=Vo(v.minBarLength,f.minBarLength),f}}),Jn=we.valueOrDefault,ee=we.options.resolve;kr._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(c,f){return(f.datasets[c.datasetIndex].label||"")+": ("+c.xLabel+", "+c.yLabel+", "+f.datasets[c.datasetIndex].data[c.index].r+")"}}}});var bt=Qo.extend({dataElementType:Sa.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroun
1dColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(c){var f=this,_=f.getMeta();we.each(_.data,function(T,O){f.updateElement(T,O,c)})},updateElement:function(c,f,_){var v=this,T=v.getMeta(),O=c.custom||{},B=v.getScaleForId(T.xAxisID),q=v.getScaleForId(T.yAxisID),V=v._resolveDataElementOptions(c,f),Z=v.getDataset().data[f],ue=v.index,pe=_?B.getPixelForDecimal(.5):B.getPixelForValue("object"==typeof Z?Z:NaN,f,ue),je=_?q.getBasePixel():q.getPixelForValue(Z,f,ue);c._xScale=B,c._yScale=q,c._options=V,c._datasetIndex=ue,c._index=f,c._model={backgroundColor:V.backgroundColor,borderColor:V.borderColor,borderWidth:V.borderWidth,hitRadius:V.hitRadius,pointStyle:V.pointStyle,rotation:V.rotation,radius:_?0:V.radius,skip:O.skip||isNaN(pe)||isNaN(je),x:pe,y:je},c.pivot()},setHoverStyle:function(c){var f=c._model,_=c._options,v=we.getHoverColor;c.$previousStyle={backgroundColor:f.backgroundColor,borderColor:f.borderColor,borderWidth:f.borderWidth,radius:f.radius},f.backgroundColor=Jn(_.hoverBackgroundColor,v(_.backgroundColor)),f.borderColor=Jn(_.hoverBorderColor,v(_.borderColor)),f.borderWidth=Jn(_.hoverBorderWidth,_.borderWidth),f.radius=_.radius+_.hoverRadius},_resolveDataElementOptions:function(c,f){var _=this,v=_.chart,T=_.getDataset(),O=c.custom||{},B=T.data[f]||{},q=Qo.prototype._resolveDataElementOptions.apply(_,arguments),V={chart:v,dataIndex:f,dataset:T,datasetIndex:_.index};return _._cachedDataOpts===q&&(q=we.extend({},q)),q.radius=ee([O.radius,B.r,_._config.radius,v.options.elements.point.radius],V,f),q}}),Be=we.valueOrDefault,J=Math.PI,me=2*J,se=J/2;kr._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(c){var O,B,q,f=document.createElement("ul"),_=c.data,v=_.datasets,T=_.labels;if(f.setAttribute("class",c.id+"-legend"),v.length)for(O=0,B=v[0].data.length;O<B;++O)(q=f.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=v[0].backgroundColor[O],T[O]&&q.appendChild(document.createTextNode(T[O]));return f.outerHTML},legend:{labels:{generateLabels:function(c){var f=c.data;return f.labels.length&&f.datasets.length?f.labels.map(function(_,v){var T=c.getDatasetMeta(0),O=T.controller.getStyle(v);return{text:_,fillStyle:O.backgroundColor,strokeStyle:O.borderColor,lineWidth:O.borderWidth,hidden:isNaN(f.datasets[0].data[v])||T.data[v].hidden,index:v}}):[]}},onClick:function(c,f){var T,O,B,_=f.index,v=this.chart;for(T=0,O=(v.data.datasets||[]).length;T<O;++T)(B=v.getDatasetMeta(T)).data[_]&&(B.data[_].hidden=!B.data[_].hidden);v.update()}},cutoutPercentage:50,rotation:-se,circumference:me,tooltips:{callbacks:{title:function(){return""},label:function(c,f){var _=f.labels[c.index],v=": "+f.datasets[c.datasetIndex].data[c.index];return we.isArray(_)?(_=_.slice())[0]+=v:_+=v,_}}}});var Ue=Qo.extend({dataElementType:Sa.Arc,linkScales:we.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(c){for(var f=0,_=0;_<c;++_)this.chart.isDatasetVisible(_)&&++f;return f},update:function(c){var zt,Hn,f=this,_=f.chart,v=_.chartArea,T=_.options,O=1,B=1,q=0,V=0,Z=f.getMeta(),ue=Z.data,pe=T.cutoutPercentage/100||0,je=T.circumference,ft=f._getRingWeight(f.index);if(je<me){var _n=T.rotation%me,Ui=(_n+=_n>=J?-me:_n<-J?me:0)+je,ma=Math.cos(_n),la=Math.sin(_n),La=Math.cos(Ui),Or=Math.sin(Ui),Ga=_n<=0&&Ui>=0||Ui>=me,ka=_n<=se&&Ui>=se||Ui>=me+se,Rs=_n<=-se&&Ui>=-se||Ui>=J+se,Fs=_n===-J||Ui>=J?-1:Math.min(ma,ma*pe,La,La*pe),ns=Rs?-1:Math.min(la,la*pe,Or,Or*pe),wl=Ga?1:Math.max(ma,ma*pe,La,La*pe),Nc=ka?1:Math.max(la,la*pe,Or,Or*pe);O=(wl-Fs)/2,B=(Nc-ns)/2,q=-(wl+Fs)/2,V=-(Nc+ns)/2}for(zt=0,Hn=ue.length;zt<Hn;++zt)ue[zt]._options=f._resolveDataElementOptions(ue[zt],zt);for(_.borderWidth=f.getMaxBorderWidth(),_.outerRadius=Math.max(Math.min((v.right-v.left-_.borderWidth)/O,(v.bottom-v.top-_.borderWidth)/B)/2,0),_.innerRadius=Math.max(_.outerRadius*pe,0),_.radiusLength=(_.outerRadius-_.innerRadius)/(f._getVisibleDatasetWeightTotal()||1),_.offsetX=q*_.outerRadius,_.offsetY=V*_.outerRadius,Z.total=f.calculateTotal(),f.outerRadius=_.outerRadius-_.radiusLength*f._getRingWeightOffset(f.index),f.innerRadius=Math.max(f.outerRadius-_.radiusLength*ft,0),zt=0,Hn=ue.length;zt<Hn;++zt)f.updateElement(ue[zt],zt,c)},updateElement:function(c,f,_){var v=this,T=v.chart,O=T.chartArea,B=T.options,q=B.animation,V=(O.left+O.right)/2,Z=(O.top+O.bottom)/2,ue=B.rotation,pe=B.rotation,je=v.getDataset(),ft=_&&q.animateRotate||c.hidden?0:v.calculateCircumference(je.data[f])*(B.circumference/me),zt=c._options||{};we.extend(c,{_datasetIndex:v.index,_index:f,_model:{backgroundColor:zt.backgroundColor,borderColor:zt.borderColor,borderWidth:zt.borderWidth,borderAlign:zt.borderAlign,x:V+T.offsetX,y:Z+T.offsetY,startAngle:ue,endAngle:pe,circumference:ft,outerRadius:_&&q.animateScale?0:v.outerRadius,innerRadius:_&&q.animateScale?0:v.innerRadius,label:we.valueAtIndexOrDefault(je.label,f,T.data.labels[f])}});var Hn=c._model;(!_||!q.animateRotate)&&(Hn.startAngle=0===f?B.rotation:v.getMeta().data[f-1]._model.endAngle,Hn.endAngle=Hn.startAngle+Hn.circumference),c.pivot()},calculateTotal:function(){var v,c=this.getDataset(),f=this.getMeta(),_=0;return we.each(f.data,function(T,O){v=c.data[O],!isNaN(v)&&!T.hidden&&(_+=Math.abs(v))}),_},calculateCircumference:function(c){var f=this.getMeta().total;return f>0&&!isNaN(c)?me*(Math.abs(c)/f):0},getMaxBorderWidth:function(c){var T,O,B,q,V,Z,ue,pe,_=0,v=this.chart;if(!c)for(T=0,O=v.data.datasets.length;T<O;++T)if(v.isDatasetVisible(T)){c=(B=v.getDatasetMeta(T)).data,T!==this.index&&(V=B.controller);break}if(!c)return 0;for(T=0,O=c.length;T<O;++T)q=c[T],V?(V._configure(),Z=V._resolveDataElementOptions(q,T)):Z=q._options,"inner"!==Z.borderAlign&&(_=(pe=Z.hoverBorderWidth)>(_=(ue=Z.borderWidth)>_?ue:_)?pe:_);return _},setHoverStyle:function(c){var f=c._model,_=c._options,v=we.getHoverColor;c.$previousStyle={backgroundColor:f.backgroundColor,borderColor:f.borderColor,borderWidth:f.borderWidth}
vendor: 1,634 bytes, line 1
1,f.backgroundColor=Be(_.hoverBackgroundColor,v(_.backgroundColor)),f.borderColor=Be(_.hoverBorderColor,v(_.borderColor)),f.borderWidth=Be(_.hoverBorderWidth,_.borderWidth)},_getRingWeightOffset:function(c){for(var f=0,_=0;_<c;++_)this.chart.isDatasetVisible(_)&&(f+=this._getRingWeight(_));return f},_getRingWeight:function(c){return Math.max(Be(this.chart.data.datasets[c].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});kr._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),kr._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var nn=Ye.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),fn=we.valueOrDefault,Ci=we.options.resolve,Di=we.canvas._isPointInArea;function or(c,f){var _=c&&c.options.ticks||{},v=_.reverse,T=void 0===_.min?f:0,O=void 0===_.max?f:0;return{start:v?O:T,end:v?T:O}}kr._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var Ea=Qo.extend({datasetElementType:Sa.Line,dataElementType:Sa.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroun
1dColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(c){var V,Z,f=this,_=f.getMeta(),v=_.dataset,T=_.data||[],B=f._config,q=f._showLine=fn(B.showLine,f.chart.options.showLines);for(f._xScale=f.getScaleForId(_.xAxisID),f._yScale=f.getScaleForId(_.yAxisID),q&&(void 0!==B.tension&&void 0===B.lineTension&&(B.lineTension=B.tension),v._scale=f._yScale,v._datasetIndex=f.index,v._children=T,v._model=f._resolveDatasetElementOptions(v),v.pivot()),V=0,Z=T.length;V<Z;++V)f.updateElement(T[V],V,c);for(q&&0!==v._model.tension&&f.updateBezierControlPoints(),V=0,Z=T.length;V<Z;++V)T[V].pivot()},updateElement:function(c,f,_){var je,ft,v=this,T=v.getMeta(),O=c.custom||{},B=v.getDataset(),q=v.index,V=B.data[f],Z=v._xScale,ue=v._yScale,pe=T.dataset._model,xt=v._resolveDataElementOptions(c,f);je=Z.getPixelForValue("object"==typeof V?V:NaN,f,q),ft=_?ue.getBasePixel():v.calculatePointY(V,f,q),c._xScale=Z,c._yScale=ue,c._options=xt,c._datasetIndex=q,c._index=f,c._model={x:je,y:ft,skip:O.skip||isNaN(je)||isNaN(ft),radius:xt.radius,pointStyle:xt.pointStyle,rotation:xt.rotation,backgroundColor:xt.backgroundColor,borderColor:xt.borderColor,borderWidth:xt.borderWidth,tension:fn(O.tension,pe?pe.tension:0),steppedLine:!!pe&&pe.steppedLine,hitRadius:xt.hitRadius}},_resolveDatasetElementOptions:function(c){var f=this,_=f._config,v=c.custom||{},T=f.chart.options,O=T.elements.line,B=Qo.prototype._resolveDatasetElementOptions.apply(f,arguments);return B.spanGaps=fn(_.spanGaps,T.spanGaps),B.tension=fn(_.lineTension,O.tension),B.steppedLine=Ci([v.steppedLine,_.steppedLine,O.stepped]),B.clip=function Hr(c){var f,_,v,T;return we.isObject(c)?(f=c.top,_=c.right,v=c.bottom,T=c.left):f=_=v=T=c,{top:f,right:_,bottom:v,left:T}}(fn(_.clip,function oa(c,f,_){var v=_/2,T=or(c,v),O=or(f,v);return{top:O.end,right:T.end,bottom:O.start,left:T.start}}(f._xScale,f._yScale,B.borderWidth))),B},calculatePointY:function(c,f,_){var V,ue,pe,je,ft,xt,T=this.chart,O=this._yScale,B=0,q=0;if(O.options.stacked){for(je=+O.getRightValue(c),xt=(ft=T._getSortedVisibleDatasetMetas()).length,V=0;V<xt&&(ue=ft[V]).index!==_;++V)"line"===ue.type&&ue.yAxisID===O.id&&((pe=+O.getRightValue(T.data.datasets[ue.index].data[f]))<0?q+=pe||0:B+=pe||0);return O.getPixelForValue(je<0?q+je:B+je)}return O.getPixelForValue(c)},updateBezierControlPoints:function(){var B,q,V,Z,f=this.chart,_=this.getMeta(),v=_.dataset._model,T=f.chartArea,O=_.data||[];function ue(pe,je,ft){return Math.max(Math.min(pe,ft),je)}if(v.spanGaps&&(O=O.filter(function(pe){return!pe._model.skip})),"monotone"===v.cubicInterpolationMode)we.splineCurveMonotone(O);else for(B=0,q=O.length;B<q;++B)V=O[B]._model,Z=we.splineCurve(we.previousItem(O,B)._model,V,we.nextItem(O,B)._model,v.tension),V.controlPointPreviousX=Z.previous.x,V.controlPointPreviousY=Z.previous.y,V.controlPointNextX=Z.next.x,V.controlPointNextY=Z.next.y;if(f.options.elements.line.capBezierPoints)for(B=0,q=O.length;B<q;++B)Di(V=O[B]._model,T)&&(B>0&&Di(O[B-1]._model,T)&&(V.controlPointPreviousX=ue(V.controlPointPreviousX,T.left,T.right),V.controlPointPreviousY=ue(V.controlPointPreviousY,T.top,T.bottom)),B<O.length-1&&Di(O[B+1]._model,T)&&(V.controlPointNextX=ue(V.controlPointNextX,T.left,T.right),V.controlPointNextY=ue(V.controlPointNextY,T.top,T.bottom)))},draw:function(){var V,c=this,f=c.chart,_=c.getMeta(),v=_.data||[],T=f.chartArea,O=f.canvas,B=0,q=v.length;for(c._showLine&&(we.canvas.clipArea(f.ctx,{left:!1===(V=_.dataset._model.clip).left?0:T.left-V.left,right:!1===V.right?O.width:T.right+V.right,top:!1===V.top?0:T.top-V.top,bottom:!1===V.bottom?O.height:T.bottom+V.bottom}),_.dataset.draw(),we.canvas.unclipArea(f.ctx));B<q;++B)v[B].draw(T)},setHoverStyle:function(c){var f=c._model,_=c._options,v=we.getHoverColor;c.$previousStyle={backgroundColor:f.backgroundColor,borderColor:f.borderColor,borderWidth:f.borderWidth,radius:f.radius}
vendor: 4,501 bytes, line 1
1,f.backgroundColor=fn(_.hoverBackgroundColor,v(_.backgroundColor)),f.borderColor=fn(_.hoverBorderColor,v(_.borderColor)),f.borderWidth=fn(_.hoverBorderWidth,_.borderWidth),f.radius=fn(_.hoverRadius,_.radius)}}),xr=we.options.resolve;kr._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(c){var O,B,q,f=document.createElement("ul"),_=c.data,v=_.datasets,T=_.labels;if(f.setAttribute("class",c.id+"-legend"),v.length)for(O=0,B=v[0].data.length;O<B;++O)(q=f.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=v[0].backgroundColor[O],T[O]&&q.appendChild(document.createTextNode(T[O]));return f.outerHTML},legend:{labels:{generateLabels:function(c){var f=c.data;return f.labels.length&&f.datasets.length?f.labels.map(function(_,v){var T=c.getDatasetMeta(0),O=T.controller.getStyle(v);return{text:_,fillStyle:O.backgroundColor,strokeStyle:O.borderColor,lineWidth:O.borderWidth,hidden:isNaN(f.datasets[0].data[v])||T.data[v].hidden,index:v}}):[]}},onClick:function(c,f){var T,O,B,_=f.index,v=this.chart;for(T=0,O=(v.data.datasets||[]).length;T<O;++T)(B=v.getDatasetMeta(T)).data[_].hidden=!B.data[_].hidden;v.update()}},tooltips:{callbacks:{title:function(){return""},label:function(c,f){return f.labels[c.index]+": "+c.yLabel}}}});var Fa=Qo.extend({dataElementType:Sa.Arc,linkScales:we.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(c){var V,Z,ue,f=this,_=f.getDataset(),v=f.getMeta(),T=f.chart.options.startAngle||0,O=f._starts=[],B=f._angles=[],q=v.data;for(f._updateRadius(),v.count=f.countVisibleElements(),V=0,Z=_.data.length;V<Z;V++)O[V]=T,ue=f._computeAngle(V),B[V]=ue,T+=ue;for(V=0,Z=q.length;V<Z;++V)q[V]._options=f._resolveDataElementOptions(q[V],V),f.updateElement(q[V],V,c)},_updateRadius:function(){var c=this,f=c.chart,_=f.chartArea,v=f.options,T=Math.min(_.right-_.left,_.bottom-_.top);f.outerRadius=Math.max(T/2,0),f.innerRadius=Math.max(v.cutoutPercentage?f.outerRadius/100*v.cutoutPercentage:1,0),f.radiusLength=(f.outerRadius-f.innerRadius)/f.getVisibleDatasetCount(),c.outerRadius=f.outerRadius-f.radiusLength*c.index,c.innerRadius=c.outerRadius-f.radiusLength},updateElement:function(c,f,_){var v=this,T=v.chart,O=v.getDataset(),B=T.options,q=B.animation,V=T.scale,Z=T.data.labels,ue=V.xCenter,pe=V.yCenter,je=B.startAngle,ft=c.hidden?0:V.getDistanceFromCenterForValue(O.data[f]),xt=v._starts[f],St=xt+(c.hidden?0:v._angles[f]),zt=q.animateScale?0:V.getDistanceFromCenterForValue(O.data[f]),Hn=c._options||{};we.extend(c,{_datasetIndex:v.index,_index:f,_scale:V,_model:{backgroundColor:Hn.backgroundColor,borderColor:Hn.borderColor,borderWidth:Hn.borderWidth,borderAlign:Hn.borderAlign,x:ue,y:pe,innerRadius:0,outerRadius:_?zt:ft,startAngle:_&&q.animateRotate?je:xt,endAngle:_&&q.animateRotate?je:St,label:we.valueAtIndexOrDefault(Z,f,Z[f])}}),c.pivot()},countVisibleElements:function(){var c=this.getDataset(),f=this.getMeta(),_=0;return we.each(f.data,function(v,T){!isNaN(c.data[T])&&!v.hidden&&_++}),_},setHoverStyle:function(c){var f=c._model,_=c._options,v=we.getHoverColor,T=we.valueOrDefault;c.$previousStyle={backgroundColor:f.backgroundColor,borderColor:f.borderColor,borderWidth:f.borderWidth},f.backgroundColor=T(_.hoverBackgroundColor,v(_.backgroundColor)),f.borderColor=T(_.hoverBorderColor,v(_.borderColor)),f.borderWidth=T(_.hoverBorderWidth,_.borderWidth)},_computeAngle:function(c){var f=this,_=this.getMeta().count,v=f.getDataset(),T=f.getMeta();return isNaN(v.data[c])||T.data[c].hidden?0:xr([f.chart.options.elements.arc.angle,2*Math.PI/_],{chart:f.chart,dataIndex:c,dataset:v,datasetIndex:f.index},c)}});kr._set("pie",we.clone(kr.doughnut)),kr._set("pie",{cutoutPercentage:0});var hs=Ue,Ka=we.valueOrDefault;kr._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var nd=Qo.extend({datasetElementType:Sa.Line,dataElementType:Sa.Point,linkScales:we.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroun
1dColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(c){var q,V,f=this,_=f.getMeta(),v=_.dataset,T=_.data||[],O=f.chart.scale,B=f._config;for(void 0!==B.tension&&void 0===B.lineTension&&(B.lineTension=B.tension),v._scale=O,v._datasetIndex=f.index,v._children=T,v._loop=!0,v._model=f._resolveDatasetElementOptions(v),v.pivot(),q=0,V=T.length;q<V;++q)f.updateElement(T[q],q,c);for(f.updateBezierControlPoints(),q=0,V=T.length;q<V;++q)T[q].pivot()},updateElement:function(c,f,_){var v=this,T=c.custom||{},O=v.getDataset(),B=v.chart.scale,q=B.getPointPositionForValue(f,O.data[f]),V=v._resolveDataElementOptions(c,f),Z=v.getMeta().dataset._model,ue=_?B.xCenter:q.x,pe=_?B.yCenter:q.y;c._scale=B,c._options=V,c._datasetIndex=v.index,c._index=f,c._model={x:ue,y:pe,skip:T.skip||isNaN(ue)||isNaN(pe),radius:V.radius,pointStyle:V.pointStyle,rotation:V.rotation,backgroundColor:V.backgroundColor,borderColor:V.borderColor,borderWidth:V.borderWidth,tension:Ka(T.tension,Z?Z.tension:0),hitRadius:V.hitRadius}},_resolveDatasetElementOptions:function(){var c=this,f=c._config,_=c.chart.options,v=Qo.prototype._resolveDatasetElementOptions.apply(c,arguments);return v.spanGaps=Ka(f.spanGaps,_.spanGaps),v.tension=Ka(f.lineTension,_.elements.line.tension),v},updateBezierControlPoints:function(){var T,O,B,q,f=this.getMeta(),_=this.chart.chartArea,v=f.data||[];function V(Z,ue,pe){return Math.max(Math.min(Z,pe),ue)}for(f.dataset._model.spanGaps&&(v=v.filter(function(Z){return!Z._model.skip})),T=0,O=v.length;T<O;++T)B=v[T]._model,q=we.splineCurve(we.previousItem(v,T,!0)._model,B,we.nextItem(v,T,!0)._model,B.tension),B.controlPointPreviousX=V(q.previous.x,_.left,_.right),B.controlPointPreviousY=V(q.previous.y,_.top,_.bottom),B.controlPointNextX=V(q.next.x,_.left,_.right),B.controlPointNextY=V(q.next.y,_.top,_.bottom)},setHoverStyle:function(c){var f=c._model,_=c._options,v=we.getHoverColor;c.$previousStyle={backgroundColor:f.backgroundColor,borderColor:f.borderColor,borderWidth:f.borderWidth,radius:f.radius},f.backgroundColor=Ka(_.hoverBackgroundColor,v(_.backgroundColor)),f.borderColor=Ka(_.hoverBorderColor,v(_.borderColor)),f.borderWidth=Ka(_.hoverBorderWidth,_.borderWidth),f.radius=Ka(_.hoverRadius,_.radius)}});kr._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(c){return"("+c.xLabel+", "+c.yLabel+")"}}}}),kr._set("global",{datasets:{scatter:{showLine:!1}}});var Hl={bar:Ye,bubble:bt,doughnut:Ue,horizontalBar:nn,line:Ea,polarArea:Fa,pie:hs,radar:nd,scatter:Ea};function Ms(c,f){return c.native?{x:c.x,y:c.y}:we.getRelativePosition(c,f)}function sf(c,f){var v,T,O,B,q,V,_=c._getSortedVisibleDatasetMetas();for(T=0,B=_.length;T<B;++T)for(O=0,q=(v=_[T].data).length;O<q;++O)(V=v[O])._view.skip||f(V)}function Ba(c,f){var _=[];return sf(c,function(v){v.inRange(f.x,f.y)&&_.push(v)}),_}function lo(c,f,_,v){var T=Number.POSITIVE_INFINITY,O=[];return sf(c,function(B){if(!_||B.inRange(f.x,f.y)){var q=B.getCenterPoint(),V=v(f,q);V<T?(O=[B],T=V):V===T&&O.push(B)}}),O}function Hf(c){var f=-1!==c.indexOf("x"),_=-1!==c.indexOf("y");return function(v,T){var O=f?Math.abs(v.x-T.x):0,B=_?Math.abs(v.y-T.y):0;return Math.sqrt(Math.pow(O,2)+Math.pow(B,2))}}function lf(c,f,_){var v=Ms(f,c);_.axis=_.axis||"x";var T=Hf(_.axis),O=_.intersect?Ba(c,v):lo(c,v,!1,T),B=[];return O.length?(c._getSortedVisibleDatasetMetas().forEach(function(q){var V=q.data[O[0]._index];V&&!V._view.skip&&B.push(V)}),B):[]}var Oo={modes:{single:function(c,f){var _=Ms(f,c),v=[];return sf(c,function(T){if(T.inRange(_.x,_.y))return v.push(T),v}),v.slice(0,1)},label:lf,index:lf,dataset:function(c,f,_){var v=Ms(f,c);_.axis=_.axis||"xy";var T=Hf(_.axis),O=_.intersect?Ba(c,v):lo(c,v,!1,T);return O.length>0&&(O=c.getDatasetMeta(O[0]._datasetIndex).data),O},"x-axis":function(c,f){return lf(c,f,{intersect:!1})},point:function(c,f){return Ba(c,Ms(f,c))},nearest:function(c,f,_){var v=Ms(f,c);_.axis=_.axis||"xy";var T=Hf(_.axis);return lo(c,v,_.intersect,T)},x:function(c,f,_){var v=Ms(f,c),T=[],O=!1;return sf(c,function(B){B.inXRange(v.x)&&T.push(B),B.inRange(v.x,v.y)&&(O=!0)}
vendor: 4,847 bytes, line 1
1),_.intersect&&!O&&(T=[]),T},y:function(c,f,_){var v=Ms(f,c),T=[],O=!1;return sf(c,function(B){B.inYRange(v.y)&&T.push(B),B.inRange(v.x,v.y)&&(O=!0)}),_.intersect&&!O&&(T=[]),T}}},zo=we.extend;function Uo(c,f){return we.where(c,function(_){return _.pos===f})}function cf(c,f){return c.sort(function(_,v){var T=f?v:_,O=f?_:v;return T.weight===O.weight?T.index-O.index:T.weight-O.weight})}function id(c,f,_,v){return Math.max(c[_],f[_])+Math.max(c[v],f[v])}function Xd(c,f,_){var O,B,v=_.box,T=c.maxPadding;if(_.size&&(c[_.pos]-=_.size),_.size=_.horizontal?v.height:v.width,c[_.pos]+=_.size,v.getPadding){var q=v.getPadding();T.top=Math.max(T.top,q.top),T.left=Math.max(T.left,q.left),T.bottom=Math.max(T.bottom,q.bottom),T.right=Math.max(T.right,q.right)}if(O=f.outerWidth-id(T,c,"left","right"),B=f.outerHeight-id(T,c,"top","bottom"),O!==c.w||B!==c.h){c.w=O,c.h=B;var V=_.horizontal?[O,c.w]:[B,c.h];return!(V[0]===V[1]||isNaN(V[0])&&isNaN(V[1]))}}function Lu(c,f){var _=f.maxPadding;return function v(T){var O={left:0,top:0,right:0,bottom:0};return T.forEach(function(B){O[B]=Math.max(f[B],_[B])}),O}(c?["left","right"]:["top","bottom"])}function Ho(c,f,_){var T,O,B,q,V,Z,v=[];for(T=0,O=c.length;T<O;++T)(q=(B=c[T]).box).update(B.width||f.w,B.height||f.h,Lu(B.horizontal,f)),Xd(f,_,B)&&(Z=!0,v.length&&(V=!0)),q.fullWidth||v.push(B);return V&&Ho(v,f,_)||Z}function Mf(c,f,_){var B,q,V,Z,v=_.padding,T=f.x,O=f.y;for(B=0,q=c.length;B<q;++B)Z=(V=c[B]).box,V.horizontal?(Z.left=Z.fullWidth?v.left:f.left,Z.right=Z.fullWidth?_.outerWidth-v.right:f.left+f.w,Z.top=O,Z.bottom=O+Z.height,Z.width=Z.right-Z.left,O=Z.bottom):(Z.left=T,Z.right=T+Z.width,Z.top=f.top,Z.bottom=f.top+f.h,Z.height=Z.bottom-Z.top,T=Z.right);f.x=T,f.y=O}kr._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var w={defaults:{},addBox:function(c,f){c.boxes||(c.boxes=[]),f.fullWidth=f.fullWidth||!1,f.position=f.position||"top",f.weight=f.weight||0,f._layers=f._layers||function(){return[{z:0,draw:function(){f.draw.apply(f,arguments)}}]},c.boxes.push(f)},removeBox:function(c,f){var _=c.boxes?c.boxes.indexOf(f):-1;-1!==_&&c.boxes.splice(_,1)},configure:function(c,f,_){for(var B,v=["fullWidth","position","weight"],T=v.length,O=0;O<T;++O)_.hasOwnProperty(B=v[O])&&(f[B]=_[B])},update:function(c,f,_){if(c){var T=we.options.toPadding((c.options.layout||{}).padding),O=f-T.width,B=_-T.height,q=function es(c){var f=function Kf(c){var _,v,T,f=[];for(_=0,v=(c||[]).length;_<v;++_)f.push({index:_,box:T=c[_],pos:T.position,horizontal:T.isHorizontal(),weight:T.weight});return f}(c),_=cf(Uo(f,"left"),!0),v=cf(Uo(f,"right")),T=cf(Uo(f,"top"),!0),O=cf(Uo(f,"bottom"));return{leftAndTop:_.concat(T),rightAndBottom:v.concat(O),chartArea:Uo(f,"chartArea"),vertical:_.concat(v),horizontal:T.concat(O)}}(c.boxes),V=q.vertical,Z=q.horizontal,ue=Object.freeze({outerWidth:f,outerHeight:_,padding:T,availableWidth:O,vBoxMaxWidth:O/2/V.length,hBoxMaxHeight:B/2}),pe=zo({maxPadding:zo({},T),w:O,h:B,x:T.left,y:T.top},T);(function Jf(c,f){var _,v,T;for(_=0,v=c.length;_<v;++_)(T=c[_]).width=T.horizontal?T.box.fullWidth&&f.availableWidth:f.vBoxMaxWidth,T.height=T.horizontal&&f.hBoxMaxHeight})(V.concat(Z),ue),Ho(V,pe,ue),Ho(Z,pe,ue)&&Ho(V,pe,ue),function Hd(c){var f=c.maxPadding;function _(v){var T=Math.max(f[v]-c[v],0);return c[v]+=T,T}c.y+=_("top"),c.x+=_("left"),_("right"),_("bottom")}(pe),Mf(q.leftAndTop,pe,ue),pe.x+=pe.w,pe.y+=pe.h,Mf(q.rightAndBottom,pe,ue),c.chartArea={left:pe.left,top:pe.top,right:pe.left+pe.w,bottom:pe.top+pe.h},we.each(q.chartArea,function(je){var ft=je.box;zo(ft,c.chartArea),ft.update(pe.w,pe.h)})}}},_e=function xi(c){return c&&c.default||c}(Object.freeze({__proto__:null,default:"/*\r\n * DOM element rendering detection\r\n * https://davidwalsh.name/detect-node-insertion\r\n */\r\n@keyframes chartjs-render-animation {\r\n\tfrom { opacity: 0.99; }\r\n\tto { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n\tanimation: chartjs-render-animation 0.001s;\r\n}\r\n\r\n/*\r\n * DOM element resizing detection\r\n * https://github.com/marcj/css-element-queries\r\n */\r\n.chartjs-size-monitor,\r\n.chartjs-size-monitor-expand,\r\n.chartjs-size-monitor-shrink {\r\n\tposition: absolute;\r\n\tdirection: ltr;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\tvisibility: hidden;\r\n\tz-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n"})),he="$chartjs",Ee="chartjs-",_t=Ee+"size-monitor",st=Ee+"render-monitor",Xt=Ee+"render-animation",wn=["animationstart","webkitAnimationStart"],$n={touchstart:"mousedown",touchmove:"mou
1semove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function Zt(c,f){var _=we.getStyle(c,f),v=_&&_.match(/^(\d+)(\.\d+)?px$/);return v?Number(v[1]):void 0}var gi=!!function(){var c=!1;try{var f=Object.defineProperty({},"passive",{get:function(){c=!0}});window.addEventListener("e",null,f)}catch{}return c}()&&{passive:!0};function mr(c,f,_){c.addEventListener(f,_,gi)}function Co(c,f,_){c.removeEventListener(f,_,gi)}function ms(c,f,_,v,T){return{type:c,chart:f,native:T||null,x:void 0!==_?_:null,y:void 0!==v?v:null}}function Qr(c){var f=document.createElement("div");return f.className=c||"",f}function Nu(c,f,_){var v=c[he]||(c[he]={}),T=v.resizer=function ko(c){var f=1e6,_=Qr(_t),v=Qr(_t+"-expand"),T=Qr(_t+"-shrink");v.appendChild(Qr()),T.appendChild(Qr()),_.appendChild(v),_.appendChild(T),_._reset=function(){v.scrollLeft=f,v.scrollTop=f,T.scrollLeft=f,T.scrollTop=f};var O=function(){_._reset(),c()};return mr(v,"scroll",O.bind(v,"expand")),mr(T,"scroll",O.bind(T,"shrink")),_}(function _l(c,f){var _=!1,v=[];return function(){v=Array.prototype.slice.call(arguments),f=f||this,_||(_=!0,we.requestAnimFrame.call(window,function(){_=!1,c.apply(f,v)}))}}(function(){if(v.resizer){var O=_.options.maintainAspectRatio&&c.parentNode,B=O?O.clientWidth:0;f(ms("resize",_)),O&&O.clientWidth<B&&_.canvas&&f(ms("resize",_))}}));!function ba(c,f){var _=c[he]||(c[he]={}),v=_.renderProxy=function(T){T.animationName===Xt&&f()};we.each(wn,function(T){mr(c,T,v)}),_.reflow=!!c.offsetParent,c.classList.add(st)}(c,function(){if(v.resizer){var O=c.parentNode;O&&O!==T.parentNode&&O.insertBefore(T,O.firstChild),T._reset()}})}function Kl(c){var f=c[he]||{},_=f.resizer;delete f.resizer,function wo(c){var f=c[he]||{},_=f.renderProxy;_&&(we.each(wn,function(v){Co(c,v,_)}),delete f.renderProxy),c.classList.remove(st)}(c),_&&_.parentNode&&_.parentNode.removeChild(_)}var Il={disableCSSInjection:!1,_enabled:typeof window<"u"&&typeof document<"u",_ensureLoaded:function(c){if(!this.disableCSSInjection){var f=c.getRootNode?c.getRootNode():document;!function Us(c,f){var _=c[he]||(c[he]={});if(!_.containsStyles){_.containsStyles=!0,f="/* Chart.js */\n"+f;var v=document.createElement("style");v.setAttribute("type","text/css"),v.appendChild(document.createTextNode(f)),c.appendChild(v)}}(f.host?f:document.head,_e)}},acquireContext:function(c,f){"string"==typeof c?c=document.getElementById(c):c.length&&(c=c[0]),c&&c.canvas&&(c=c.canvas);var _=c&&c.getContext&&c.getContext("2d");return _&&_.canvas===c?(this._ensureLoaded(c),function Un(c,f){var _=c.style,v=c.getAttribute("height"),T=c.getAttribute("width");if(c[he]={initial:{height:v,width:T,style:{display:_.display,height:_.height,width:_.width}}},_.display=_.display||"block",null===T||""===T){var O=Zt(c,"width");void 0!==O&&(c.width=O)}if(null===v||""===v)if(""===c.style.height)c.height=c.width/(f.options.aspectRatio||2);else{var B=Zt(c,"height");void 0!==O&&(c.height=B)}return c}(c,f),_):null},releaseContext:function(c){var f=c.canvas;if(f[he]){var _=f[he].initial;["height","width"].forEach(function(v){var T=_[v];we.isNullOrUndef(T)?f.removeAttribute(v):f.setAttribute(v,T)}),we.each(_.style||{},function(v,T){f.style[T]=v}),f.width=f.width,delete f[he]}},addEventListener:function(c,f,_){var v=c.canvas;if("resize"!==f){var T=_[he]||(_[he]={});mr(v,f,(T.proxies||(T.proxies={}))[c.id+"_"+f]=function(q){_(function lc(c,f){var _=$n[c.type]||c.type,v=we.getRelativePosition(c,f);return ms(_,f,v.x,v.y,c)}(q,c))})}else Nu(v,_,c)},removeEventListener:function(c,f,_){var v=c.canvas;if("resize"!==f){var B=((_[he]||{}).proxies||{})[c.id+"_"+f];B&&Co(v,f,B)}else Kl(v)}};we.addEvent=mr,we.removeEvent=Co;var ia=we.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},Il._enabled?Il:{acquireContext:function(c){return c&&c.canvas&&(c=c.canvas),c&&c.getContext("2d")||null}});kr._set("global",{plugins:{}});var qa={_plugins:[],_cacheId:0,register:function(c){var f=this._plugins;
vendor: 11,024 bytes, line 1
1[].concat(c).forEach(function(_){-1===f.indexOf(_)&&f.push(_)}),this._cacheId++},unregister:function(c){var f=this._plugins;[].concat(c).forEach(function(_){var v=f.indexOf(_);-1!==v&&f.splice(v,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(c,f,_){var O,B,q,V,Z,v=this.descriptors(c),T=v.length;for(O=0;O<T;++O)if("function"==typeof(Z=(q=(B=v[O]).plugin)[f])&&((V=[c].concat(_||[])).push(B.options),!1===Z.apply(q,V)))return!1;return!0},descriptors:function(c){var f=c.$plugins||(c.$plugins={});if(f.id===this._cacheId)return f.descriptors;var _=[],v=[],T=c&&c.config||{},O=T.options&&T.options.plugins||{};return this._plugins.concat(T.plugins||[]).forEach(function(B){if(-1===_.indexOf(B)){var V=B.id,Z=O[V];!1!==Z&&(!0===Z&&(Z=we.clone(kr.global.plugins[V])),_.push(B),v.push({plugin:B,options:Z||{}}))}}),f.descriptors=v,f.id=this._cacheId,v},_invalidate:function(c){delete c.$plugins}},Ma={constructors:{},defaults:{},registerScaleType:function(c,f,_){this.constructors[c]=f,this.defaults[c]=we.clone(_)},getScaleConstructor:function(c){return this.constructors.hasOwnProperty(c)?this.constructors[c]:void 0},getScaleDefaults:function(c){return this.defaults.hasOwnProperty(c)?we.merge(Object.create(null),[kr.scale,this.defaults[c]]):{}},updateScaleDefaults:function(c,f){var _=this;_.defaults.hasOwnProperty(c)&&(_.defaults[c]=we.extend(_.defaults[c],f))},addScalesToLayout:function(c){we.each(c.scales,function(f){f.fullWidth=f.options.fullWidth,f.position=f.options.position,f.weight=f.options.weight,w.addBox(c,f)})}},Os=we.valueOrDefault,ks=we.rtl.getRtlAdapter;kr._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:we.noop,title:function(c,f){var _="",v=f.labels,T=v?v.length:0;if(c.length>0){var O=c[0];O.label?_=O.label:O.xLabel?_=O.xLabel:T>0&&O.index<T&&(_=v[O.index])}return _},afterTitle:we.noop,beforeBody:we.noop,beforeLabel:we.noop,label:function(c,f){var _=f.datasets[c.datasetIndex].label||"";return _&&(_+=": "),we.isNullOrUndef(c.value)?_+=c.yLabel:_+=c.value,_},labelColor:function(c,f){var T=f.getDatasetMeta(c.datasetIndex).data[c.index]._view;return{borderColor:T.borderColor,backgroundColor:T.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:we.noop,afterBody:we.noop,beforeFooter:we.noop,footer:we.noop,afterFooter:we.noop}}});var Do={average:function(c){if(!c.length)return!1;var f,_,v=0,T=0,O=0;for(f=0,_=c.length;f<_;++f){var B=c[f];if(B&&B.hasValue()){var q=B.tooltipPosition();v+=q.x,T+=q.y,++O}}return{x:v/O,y:T/O}},nearest:function(c,f){var O,B,q,_=f.x,v=f.y,T=Number.POSITIVE_INFINITY;for(O=0,B=c.length;O<B;++O){var V=c[O];if(V&&V.hasValue()){var Z=V.getCenterPoint(),ue=we.distanceBetweenPoints(f,Z);ue<T&&(T=ue,q=V)}}if(q){var pe=q.tooltipPosition();_=pe.x,v=pe.y}return{x:_,y:v}}};function Ko(c,f){return f&&(we.isArray(f)?Array.prototype.push.apply(c,f):c.push(f)),c}function Br(c){return("string"==typeof c||c instanceof String)&&c.indexOf("\n")>-1?c.split("\n"):c}function cc(c){var f=c._xScale,_=c._yScale||c._scale,v=c._index,T=c._datasetIndex,O=c._chart.getDatasetMeta(T).controller,B=O._getIndexScale(),q=O._getValueScale();return{xLabel:f?f.getLabelForIndex(v,T):"",yLabel:_?_.getLabelForIndex(v,T):"",label:B?""+B.getLabelForIndex(v,T):"",value:q?""+q.getLabelForIndex(v,T):"",index:v,datasetIndex:T,x:c._model.x,y:c._model.y}}function ya(c){var f=kr.global;return{xPadding:c.xPadding,yPadding:c.yPadding,xAlign:c.xAlign,yAlign:c.yAlign,rtl:c.rtl,textDirection:c.textDirection,bodyFontColor:c.bodyFontColor,_bodyFontFamily:Os(c.bodyFontFamily,f.defaultFontFamily),_bodyFontStyle:Os(c.bodyFontStyle,f.defaultFontStyle),_bodyAlign:c.bodyAlign,bodyFontSize:Os(c.bodyFontSize,f.defaultFontSize),bodySpacing:c.bodySpacing,titleFontColor:c.titleFontColor,_titleFontFamily:Os(c.titleFontFamily,f.defaultFontFamily),_titleFontStyle:Os(c.titleFontStyle,f.defaultFontStyle),titleFontSize:Os(c.titleFontSize,f.defaultFontSize),_titleAlign:c.titleAlign,titleSpacing:c.titleSpacing,titleMarginBottom:c.titleMarginBottom,footerFontColor:c.footerFontColor,_footerFontFamily:Os(c.footerFontFamily,f.defaultFontFamily),_footerFontStyle:Os(c.footerFontStyle,f.defaultFontStyle),footerFontSize:Os(c.footerFontSize,f.defaultFontSize),_footerAlign:c.footerAlign,footerSpacing:c.footerSpacing,footerMarginTop:c.footerMarginTop,caretSize:c.caretSize,cornerRadius:c.cornerRadius,backgroundColor:c.backgroundColor,opacity:0,legendColorBackground:c.multiKeyBackground,displayColors:c.displayColors,borderColor:c.borderColor,borderWidth:c.borderWidth}}function yd(c,f){return"center"===f?c.x+c.width/2:"right"===f?c.x+c.width-c.xPadding:c.x+c.xPadding}function Zf(c){return Ko([],Br(c))}var rd=Es.extend({initialize:function(){this._model=ya(this._options),this._lastActive=[]},getTitle:function(){var c=this,_=c._options.callbacks,v=_.beforeTitle.apply(c,arguments),T=_.title.apply(c,arguments),O=_.afterTitle.apply(c,arguments),B=[];return B=Ko(B,Br(v)),B=Ko(B,Br(T)),Ko(B,Br(O))},getBeforeBody:function(){return Zf(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(c,f){var _=this,v=_._options.callbacks,T=[];return we.each(c,function(O){var B={before:[],lines:[],after:[]};Ko(B.before,Br(v.beforeLabel.call(_,O,f))),Ko(B.lines,v.label.call(_,O,f)),Ko(B.after,Br(v.afterLabel.call(_,O,f))),T.push(B)}),T},getAfterBody:function(){return Zf(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var c=this,f=c._options.callbacks,_=f.beforeFooter.apply(c,arguments),v=f.footer.apply(c,arguments),T=f.afterFooter.apply(c,arguments),O=[];return O=Ko(O,Br(_)),O=Ko(O,Br(v)),Ko(O,Br(T))},update:function(c){var pe,je,f=this,_=f._options,v=f._model,T=f._model=ya(_),O=f._active,B=f._data,q={xAlign:v.xAlign,yAlign:v.yAlign},V={x:v.x,y:v.y},Z={width:v.width,height:v.height},ue={x:v.caretX,y:v.caretY};if(O.length){T.opacity=1;var ft=[],xt=[];ue=Do[_.position].call(f,O,f._eventPosition);var St=[];for(pe=0,je=O.length;pe<je;++pe)St.push(cc(O[pe]));_.filter&&(St=St.filter(function(zt){return _.filter(zt,B)})),_.itemSort&&(St=St.sort(function(zt,Hn){return _.itemSort(zt,Hn,B)})),we.each(St,function(zt){ft.push(_.callbacks.labelColor.call(f,zt,f._chart)),xt.push(_.callbacks.labelTextColor.call(f,zt,f._chart))}),T.title=f.getTitle(St,B),T.beforeBody=f.getBeforeBody(St,B),T.body=f.getBody(St,B),T.afterBody=f.getAfterBody(St,B),T.footer=f.getFooter(St,B),T.x=ue.x,T.y=ue.y,T.caretPadding=_.caretPadding,T.labelColors=ft,T.labelTextColors=xt,T.dataPoints=St,V=function Kd(c,f,_,v){var T=c.x,O=c.y,q=c.caretPadding,Z=_.xAlign,ue=_.yAlign,pe=c.caretSize+q,je=c.cornerRadius+q;return"right"===Z?T-=f.width:"center"===Z&&((T-=f.width/2)+f.width>v.width&&(T=v.width-f.width),T<0&&(T=0)),"top"===ue?O+=pe:O-="bottom"===ue?f.height+pe:f.height/2,"center"===ue?"left"===Z?T+=pe:"right"===Z&&(T-=pe):"left"===Z?T-=je:"right"===Z&&(T+=je),{x:T,y:O}}(T,Z=function Bu(c,f){var _=c._chart.ctx,v=2*f.yPadding,T=0,O=f.body,B=O.reduce(function(xt,St){return xt+St.before.length+St.lines.length+St.after.length},0),q=f.title.length,V=f.footer.length,Z=f.titleFontSize,ue=f.bodyFontSize,pe=f.footerFontSize;v+=q*Z,v+=q?(q-1)*f.titleSpacing:0,v+=q?f.titleMarginBottom:0,v+=(B+=f.beforeBody.length+f.afterBody.length)*ue,v+=B?(B-1)*f.bodySpacing:0,v+=V?f.footerMarginTop:0,v+=V*pe,v+=V?(V-1)*f.footerSpacing:0;var je=0,ft=function(xt){T=Math.max(T,_.measureText(xt).width+je)};return _.font=we.fontString(Z,f._titleFontStyle,f._titleFontFamily),we.each(f.title,ft),_.font=we.fontString(ue,f._bodyFontStyle,f._bodyFontFamily),we.each(f.beforeBody.concat(f.afterBody),ft),je=f.displayColors?ue+2:0,we.each(O,function(xt){we.each(xt.before,ft),we.each(xt.lines,ft),we.each(xt.after,ft)}),je=0,_.font=we.fontString(pe,f._footerFontStyle,f._footerFontFamily),we.each(f.footer,ft),{width:T+=2*f.xPadding,height:v}}(this,T),q=function ss(c,f){var _=c._model,v=c._chart,T=c._chart.chartArea,O="center",B="center";_.y<f.height?B="top":_.y>v.height-f.height&&(B="bottom");var q,V,Z,ue,pe,je=(T.left+T.right)/2,ft=(T.top+T.bottom)/2;"center"===B?(q=function(St){return St<=je},V=function(St){return St>je}):(q=function(St){return St<=f.width/2},V=function(St){return St>=v.width-f.width/2}),Z=function(St){return St+f.width+_.caretSize+_.caretPadding>v.width},ue=function(St){return St-f.width-_.caretSize-_.caretPadding<0},pe=function(St){return St<=ft?"top":"bottom"},q(_.x)?(O="left",Z(_.x)&&(O="center",B=pe(_.y))):V(_.x)&&(O="right",ue(_.x)&&(O="center",B=pe(_.y)));var xt=c._options;return{xAlign:xt.xAlign?xt.xAlign:O,yAlign:xt.yAlign?xt.yAlign:B}}(this,Z),f._chart)}else T.opacity=0;return T.xAlign=q.xAlign,T.yAlign=q.yAlign,T.x=V.x,T.y=V.y,T.width=Z.width,T.height=Z.height,T.caretX=ue.x,T.caretY=ue.y,f._model=T,c&&_.custom&&_.custom.call(f,T),f},drawCaret:function(c,f){var _=this._chart.ctx,T=this.getCaretPosition(c,f,this._view);_.lineTo(T.x1,T.y1),_.lineTo(T.x2,T.y2),_.lineTo(T.x3,T.y3)},getCaretPosition:function(c,f,_){var v,T,O,B,q,V,Z=_.caretSize,ue=_.cornerRadius,pe=_.xAlign,je=_.yAlign,ft=c.x,xt=c.y,St=f.width,zt=f.height;if("center"===je)q=xt+zt/2,"left"===pe?(T=(v=ft)-Z,O=v,B=q+Z,V=q-Z):(T=(v=ft+St)+Z,O=v,B=q-Z,V=q+Z);else if("left"===pe?(v=(T=ft+ue+Z)-Z,O=T+Z):"right"===pe?(v=(T=ft+St-ue-Z)-Z,O=T+Z):(v=(T=_.caretX)-Z,O=T+Z),"top"===je)q=(B=xt)-Z,V=B;else{q=(B=xt+zt)+Z,V=B;var Hn=O;O=v,v=Hn}return{x1:v,x2:T,x3:O,y1:B,y2:q,y3:V}},drawTitle:function(c,f,_){var O,B,q,v=f.title,T=v.length;if(T){var V=ks(f.rtl,f.x,f.width);for(c.x=yd(f,f._titleAlign),_.textAlign=V.textAlign(f._titleAlign),_.textBaseline="middle",O=f.titleFontSize,B=f.titleSpacing,_.fillStyle=f.titleFontColor,_.font=we.fontString(O,f._titleFontStyle,f._titleFontFamily),q=0;q<T;++q)_.fillText(v[q],V.x(c.x),c.y+O/2),c.y+=O+B,q+1===T&&(c.y+=f.titleMarginBottom-B)}},drawBody:function(c,f,_){var je,ft,xt,St,zt,Hn,_n,Ui,v=f.bodyFontSize,T=f.bodySpacing,O=f._bodyAlign,B=f.body,q=f.displayColors,V=0,Z=q?yd(f,"left"):0,ue=ks(f.rtl,f.x,f.width),pe=function(La){_.fillText(La,ue.x(c.x+V),c.y+v/2),c.y+=v+T},ma=ue.textAlign(O);for(_.textAlign=O,_.textBaseline="middle",_.font=we.fontString(v,f._bodyFontStyle,f._bodyFontFamily),c.x=yd(f,ma),_.fillStyle=f.bodyFontColor,we.each(f.beforeBody,pe),V=q&&"right"!==ma?"center"===O?v/2+1:v+2:0,zt=0,_n=B.length;zt<_n;++zt){for(je=B[zt],xt=f.labelColors[zt],_.fillStyle=ft=f.labelTextColors[zt],we.each(je.before,pe),Hn=0,Ui=(St=je.lines).length;Hn<Ui;++Hn){if(q){var la=ue.x(Z);
vendor: 4,083 bytes, line 1
1_.fillStyle=f.legendColorBackground,_.fillRect(ue.leftForLtr(la,v),c.y,v,v),_.lineWidth=1,_.strokeStyle=xt.borderColor,_.strokeRect(ue.leftForLtr(la,v),c.y,v,v),_.fillStyle=xt.backgroundColor,_.fillRect(ue.leftForLtr(ue.xPlus(la,1),v-2),c.y+1,v-2,v-2),_.fillStyle=ft}pe(St[Hn])}we.each(je.after,pe)}V=0,we.each(f.afterBody,pe),c.y-=T},drawFooter:function(c,f,_){var O,B,v=f.footer,T=v.length;if(T){var q=ks(f.rtl,f.x,f.width);for(c.x=yd(f,f._footerAlign),c.y+=f.footerMarginTop,_.textAlign=q.textAlign(f._footerAlign),_.textBaseline="middle",O=f.footerFontSize,_.fillStyle=f.footerFontColor,_.font=we.fontString(O,f._footerFontStyle,f._footerFontFamily),B=0;B<T;++B)_.fillText(v[B],q.x(c.x),c.y+O/2),c.y+=O+f.footerSpacing}},drawBackground:function(c,f,_,v){_.fillStyle=f.backgroundColor,_.strokeStyle=f.borderColor,_.lineWidth=f.borderWidth;var T=f.xAlign,O=f.yAlign,B=c.x,q=c.y,V=v.width,Z=v.height,ue=f.cornerRadius;_.beginPath(),_.moveTo(B+ue,q),"top"===O&&this.drawCaret(c,v),_.lineTo(B+V-ue,q),_.quadraticCurveTo(B+V,q,B+V,q+ue),"center"===O&&"right"===T&&this.drawCaret(c,v),_.lineTo(B+V,q+Z-ue),_.quadraticCurveTo(B+V,q+Z,B+V-ue,q+Z),"bottom"===O&&this.drawCaret(c,v),_.lineTo(B+ue,q+Z),_.quadraticCurveTo(B,q+Z,B,q+Z-ue),"center"===O&&"left"===T&&this.drawCaret(c,v),_.lineTo(B,q+ue),_.quadraticCurveTo(B,q,B+ue,q),_.closePath(),_.fill(),f.borderWidth>0&&_.stroke()},draw:function(){var c=this._chart.ctx,f=this._view;if(0!==f.opacity){var _={width:f.width,height:f.height},v={x:f.x,y:f.y},T=Math.abs(f.opacity<.001)?0:f.opacity;this._options.enabled&&(f.title.length||f.beforeBody.length||f.body.length||f.afterBody.length||f.footer.length)&&(c.save(),c.globalAlpha=T,this.drawBackground(v,f,c,_),v.y+=f.yPadding,we.rtl.overrideTextDirection(c,f.textDirection),this.drawTitle(v,f,c),this.drawBody(v,f,c),this.drawFooter(v,f,c),we.rtl.restoreTextDirection(c,f.textDirection),c.restore())}},handleEvent:function(c){var v,f=this,_=f._options;return f._lastActive=f._lastActive||[],"mouseout"===c.type?f._active=[]:(f._active=f._chart.getElementsAtEventForMode(c,_.mode,_),_.reverse&&f._active.reverse()),(v=!we.arrayEquals(f._active,f._lastActive))&&(f._lastActive=f._active,(_.enabled||_.custom)&&(f._eventPosition={x:c.x,y:c.y},f.update(!0),f.pivot())),v}}),df=rd;df.positioners=Do;var Oa=we.valueOrDefault;function vl(){return we.merge(Object.create(null),[].slice.call(arguments),{merger:function(c,f,_,v){if("xAxes"===c||"yAxes"===c){var O,B,q,T=_[c].length;for(f[c]||(f[c]=[]),O=0;O<T;++O)B=Oa((q=_[c][O]).type,"xAxes"===c?"category":"linear"),O>=f[c].length&&f[c].push({}),we.merge(f[c][O],!f[c][O].type||q.type&&q.type!==f[c][O].type?[Ma.getScaleDefaults(B),q]:q)}else we._merger(c,f,_,v)}})}function Ys(){return we.merge(Object.create(null),[].slice.call(arguments),{merger:function(c,f,_,v){var T=f[c]||Object.create(null),O=_[c];"scales"===c?f[c]=vl(T,O):"scale"===c?f[c]=we.merge(T,[Ma.getScaleDefaults(O.type),O]):we._merger(c,f,_,v)}})}function Gu(c,f,_){var v,T=function(O){return O.id===v};do{v=f+_++}while(we.findIndex(c,T)>=0);return v}function Cp(c){return"top"===c||"bottom"===c}function bl(c,f){return function(_,v){return _[c]===v[c]?_[f]-v[f]:_[c]-v[c]}}kr._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var ws=function(c,f){return this.construct(c,f),this};we.extend(ws.prototype,{construct:function(c,f){var _=this;f=function xl(c){var f=(c=c||Object.create(null)).data=c.data||{};return f.datasets=f.datasets||[],f.labels=f.labels||[],c.options=Ys(kr.global,kr[c.type],c.options||{}),c}(f);var v=ia.acquireContext(c,f),T=v&&v.canvas,O=T&&T.height,B=T&&T.width;_.id=we.uid(),_.ctx=v,_.canvas=T,_.config=f,_.width=B,_.height=O,_.aspectRatio=O?B/O:null,_.options=f.options,_._bufferedRender=!1,_._layers=[],_.chart=_,_.controller=_,ws.instances[_.id]=_,Object.defineProperty(_,"data",{get:function(){return _.config.data},set:function(q){_.config.data=q}}
vendor: 4,517 bytes, line 1
1),v&&T?(_.initialize(),_.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var c=this;return qa.notify(c,"beforeInit"),we.retinaScale(c,c.options.devicePixelRatio),c.bindEvents(),c.options.responsive&&c.resize(!0),c.initToolTip(),qa.notify(c,"afterInit"),c},clear:function(){return we.canvas.clear(this),this},stop:function(){return Yd.cancelAnimation(this),this},resize:function(c){var f=this,_=f.options,v=f.canvas,T=_.maintainAspectRatio&&f.aspectRatio||null,O=Math.max(0,Math.floor(we.getMaximumWidth(v))),B=Math.max(0,Math.floor(T?O/T:we.getMaximumHeight(v)));if((f.width!==O||f.height!==B)&&(v.width=f.width=O,v.height=f.height=B,v.style.width=O+"px",v.style.height=B+"px",we.retinaScale(f,_.devicePixelRatio),!c)){var q={width:O,height:B};qa.notify(f,"resize",[q]),_.onResize&&_.onResize(f,q),f.stop(),f.update({duration:_.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var c=this.options,f=c.scales||{},_=c.scale;we.each(f.xAxes,function(v,T){v.id||(v.id=Gu(f.xAxes,"x-axis-",T))}),we.each(f.yAxes,function(v,T){v.id||(v.id=Gu(f.yAxes,"y-axis-",T))}),_&&(_.id=_.id||"scale")},buildOrUpdateScales:function(){var c=this,f=c.options,_=c.scales||{},v=[],T=Object.keys(_).reduce(function(O,B){return O[B]=!1,O},{});f.scales&&(v=v.concat((f.scales.xAxes||[]).map(function(O){return{options:O,dtype:"category",dposition:"bottom"}}),(f.scales.yAxes||[]).map(function(O){return{options:O,dtype:"linear",dposition:"left"}}))),f.scale&&v.push({options:f.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),we.each(v,function(O){var B=O.options,q=B.id,V=Oa(B.type,O.dtype);Cp(B.position)!==Cp(O.dposition)&&(B.position=O.dposition),T[q]=!0;var Z=null;if(q in _&&_[q].type===V)(Z=_[q]).options=B,Z.ctx=c.ctx,Z.chart=c;else{var ue=Ma.getScaleConstructor(V);if(!ue)return;Z=new ue({id:q,type:V,options:B,ctx:c.ctx,chart:c}),_[Z.id]=Z}Z.mergeTicksOptions(),O.isDefault&&(c.scale=Z)}),we.each(T,function(O,B){O||delete _[B]}),c.scales=_,Ma.addScalesToLayout(this)},buildOrUpdateControllers:function(){var v,T,c=this,f=[],_=c.data.datasets;for(v=0,T=_.length;v<T;v++){var O=_[v],B=c.getDatasetMeta(v),q=O.type||c.config.type;if(B.type&&B.type!==q&&(c.destroyDatasetMeta(v),B=c.getDatasetMeta(v)),B.type=q,B.order=O.order||0,B.index=v,B.controller)B.controller.updateIndex(v),B.controller.linkScales();else{var V=Hl[B.type];if(void 0===V)throw new Error('"'+B.type+'" is not a chart type.');B.controller=new V(c,v),f.push(B.controller)}}return f},resetElements:function(){var c=this;we.each(c.data.datasets,function(f,_){c.getDatasetMeta(_).controller.reset()},c)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(c){var _,v,f=this;if((!c||"object"!=typeof c)&&(c={duration:c,lazy:arguments[1]}),function jl(c){var f=c.options;we.each(c.scales,function(_){w.removeBox(c,_)}),f=Ys(kr.global,kr[c.config.type],f),c.options=c.config.options=f,c.ensureScalesHaveIDs(),c.buildOrUpdateScales(),c.tooltip._options=f.tooltips,c.tooltip.initialize()}(f),qa._invalidate(f),!1!==qa.notify(f,"beforeUpdate")){f.tooltip._data=f.data;var T=f.buildOrUpdateControllers();for(_=0,v=f.data.datasets.length;_<v;_++)f.getDatasetMeta(_).controller.buildOrUpdateElements();f.updateLayout(),f.options.animation&&f.options.animation.duration&&we.each(T,function(O){O.reset()}),f.updateDatasets(),f.tooltip.initialize(),f.lastActive=[],qa.notify(f,"afterUpdate"),f._layers.sort(bl("z","_idx")),f._bufferedRender?f._bufferedRequest={duration:c.duration,easing:c.easing,lazy:c.lazy}:f.render(c)}},updateLayout:function(){var c=this;!1!==qa.notify(c,"beforeLayout")&&(w.update(this,this.width,this.height),c._layers=[],we.each(c.boxes,function(f){f._configure&&f._configure(),c._layers.push.apply(c._layers,f._layers())},c),c._layers.forEach(function(f,_){f._idx=_}),qa.notify(c,"afterScaleUpdate"),qa.notify(c,"afterLayout"))},updateDatasets:function(){var c=this;if(!1!==qa.notify(c,"beforeDatasetsUpdate")){for(var f=0,_=c.data.datasets.length;f<_;++f)c.updateDataset(f);qa.notify(c,"afterDatasetsUpdate")}},updateDataset:function(c){var f=this,_=f.getDatasetMeta(c),v={meta:_,index:c};!1!==qa.notify(f,"beforeDatasetUpdate",[v])&&(_.controller._update(),qa.notify(f,"afterDatasetUpdate",[v]))},render:function(c){var f=this;(!c||"object"!=typeof c)&&(c={duration:c,lazy:arguments[1]});var _=f.options.animation,v=Oa(c.duration,_&&_.duration),T=c.lazy;if(!1!==qa.notify(f,"beforeRender")){var O=function(q){qa.notify(f,"afterRe
1nder"),we.callback(_&&_.onComplete,[q],f)};if(_&&v){var B=new du({numSteps:v/16.66,easing:c.easing||_.easing,render:function(q,V){var ue=V.currentStep,pe=ue/V.numSteps;q.draw((0,we.easing.effects[V.easing])(pe),pe,ue)},onAnimationProgress:_.onProgress,onAnimationComplete:O});Yd.addAnimation(f,B,v,T)}else f.draw(),O(new du({numSteps:0,chart:f}));return f}},draw:function(c){var _,v,f=this;if(f.clear(),we.isNullOrUndef(c)&&(c=1),f.transition(c),!(f.width<=0||f.height<=0)&&!1!==qa.notify(f,"beforeDraw",[c])){for(v=f._layers,_=0;_<v.length&&v[_].z<=0;++_)v[_].draw(f.chartArea);for(f.drawDatasets(c);_<v.length;++_)v[_].draw(f.chartArea);f._drawTooltip(c),qa.notify(f,"afterDraw",[c])}},transition:function(c){for(var f=this,_=0,v=(f.data.datasets||[]).length;_<v;++_)f.isDatasetVisible(_)&&f.getDatasetMeta(_).controller.transition(c);f.tooltip.transition(c)},_getSortedDatasetMetas:function(c){var T,O,f=this,v=[];for(T=0,O=(f.data.datasets||[]).length;T<O;++T)(!c||f.isDatasetVisible(T))&&v.push(f.getDatasetMeta(T));return v.sort(bl("order","index")),v},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(c){var _,v,f=this;if(!1!==qa.notify(f,"beforeDatasetsDraw",[c])){for(v=(_=f._getSortedVisibleDatasetMetas()).length-1;v>=0;--v)f.drawDataset(_[v],c);qa.notify(f,"afterDatasetsDraw",[c])}},drawDataset:function(c,f){var v={meta:c,index:c.index,easingValue:f};!1!==qa.notify(this,"beforeDatasetDraw",[v])&&(c.controller.draw(f),qa.notify(this,"afterDatasetDraw",[v]))},_drawTooltip:function(c){var f=this,_=f.tooltip,v={tooltip:_,easingValue:c};!1!==qa.notify(f,"beforeTooltipDraw",[v])&&(_.draw(),qa.notify(f,"afterTooltipDraw",[v]))},getElementAtEvent:function(c){return Oo.modes.single(this,c)},getElementsAtEvent:function(c){return Oo.modes.label(this,c,{intersect:!0})},getElementsAtXAxis:function(c){return Oo.modes["x-axis"](this,c,{intersect:!0})},getElementsAtEventForMode:function(c,f,_){var v=Oo.modes[f];return"function"==typeof v?v(this,c,_):[]},getDatasetAtEvent:function(c){return Oo.modes.dataset(this,c,{intersect:!0})},getDatasetMeta:function(c){var f=this,_=f.data.datasets[c];_._meta||(_._meta={});var v=_._meta[f.id];return v||(v=_._meta[f.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:_.order||0,index:c}),v},getVisibleDatasetCount:function(){for(var c=0,f=0,_=this.data.datasets.length;f<_;++f)this.isDatasetVisible(f)&&c++;return c},isDatasetVisible:function(c){var f=this.getDatasetMeta(c);return"boolean"==typeof f.hidden?!f.hidden:!this.data.datasets[c].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(c){var f=this.id,_=this.data.datasets[c],v=_._meta&&_._meta[f];v&&(v.controller.destroy(),delete _._meta[f])},destroy:function(){var _,v,c=this,f=c.canvas;for(c.stop(),_=0,v=c.data.datasets.length;_<v;++_)c.destroyDatasetMeta(_);f&&(c.unbindEvents(),we.canvas.clear(c),ia.releaseContext(c.ctx),c.canvas=null,c.ctx=null),qa.notify(c,"destroy"),delete ws.instances[c.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var c=this;c.tooltip=new df({_chart:c,_chartInstance:c,_data:c.data,_options:c.options.tooltips},c)},bindEvents:function(){var c=this,f=c._listeners={},_=function(){c.eventHandler.apply(c,arguments)};we.each(c.options.events,function(v){ia.addEventListener(c,v,_),f[v]=_}),c.options.responsive&&(_=function(){c.resize()},ia.addEventListener(c,"resize",_),f.resize=_)},unbindEvents:function(){var c=this,f=c._listeners;f&&(delete c._listeners,we.each(f,function(_,v){ia.removeEventListener(c,v,_)}))},updateHoverStyle:function(c,f,_){var T,O,B,v=_?"set":"remove";for(O=0,B=c.length;O<B;++O)(T=c[O])&&this.getDatasetMeta(T._datasetIndex).controller[v+"HoverStyle"](T);"dataset"===f&&this.getDatasetMeta(c[0]._datasetIndex).controller["_"+v+"DatasetHoverStyle"]()},eventHandler:function(c){var f=this,_=f.tooltip;if(!1!==qa.notify(f,"beforeEvent",[c])){f._bufferedRender=!0,f._bufferedRequest=null;var v=f.handleEvent(c);_&&(v=_._start?_.handleEvent(c):v|_.handleEvent(c)),qa.notify(f,"afterEvent",[c]);var T=f._bufferedRequest;return T?f.render(T):v&&!f.animating&&(f.stop(),f.render({duration:f.options.hover.animationDuration,lazy:!0})),f._bufferedRender=!1,f._bufferedRequest=null,f}},handleEvent:function(c){var T,f=this,_=f.options||{},v=_.hover;return f.lastActive=f.lastActive||[],f.active="mouseout"===c.type?[]:f.getElementsAtEventForMode(c,v.mode,v),we.callback(_.onHover||_.hover.onHover,[c.native,f.active],f),("mouseup"===c.type||"click"===c.type)&&_.onClick&&_.onClick.call(f,c.native,f.active),f.lastActive.length&&f.updateHoverStyle(f.lastActive,v.mode,!1),f.active.length&&v.mode&&f.updateHoverStyle(f.active,v.mode,!0),T=!we.arrayEquals(f.active,f.lastActive),f.lastActive=f.active,T}}),ws.instances={};var ea=ws;ws.Controller=ws,ws.types={},we.configMerge=Ys,we.scaleMerge=vl;function dc(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function ad(c){this.options=c||{}}we.extend(ad.prototype,{formats:dc,parse:dc,format:dc,add:dc,diff:dc,startOf:dc,endOf:dc,_create:function(c){return c}}),ad.override=function(c){we.extend(ad.prototype,c)};var ct={_date:ad},rn={formatters:{values:function(c){return we.isArray(c)?c:""+c},linear:function(c,f,_){var v=_.length>3?_[2]-_[1]:_[1]-_[0];Math.abs(v)>1&&c!==Math.floor(c)&&(v=c-Math.floor(c));var T=we.log10(Math.abs(v)),O="";if(0!==c)if(Math.max(Math.abs(_[0]),Math.abs(_[_.length-1]))<1e-4){var q=we.log10(Math.abs(c)),V=Math.floor(q)-Math.floor(T);V=Math.max(Math.min(V,20),0),O=c.toExponential(V)}else{var Z=-1*Math.floor(T);Z=Math.max(Math.min(Z,20),0),O=c.toFixed(Z)}else O="0";return O},logarithmic:function(c,f,_){var v=c/Math.pow(10,Math.floor(we.log10(c)));return 0===c?"0":1===v||2===v||5===v||0===f||f===_.length-1?c.toExponential():""}}},Ne=we.isArray,lt=we.isNullOrUndef,yt=we.valueOrDefault,En=we.valueAtIndexOrDefault;function yi(c,f,_){var Z,v=c.getTicks().length,T=Math.min(f,v-1),O=c.getPixelForTick(T),B=c._startPixel,q=c._endPixel,V=1e-6;if(!(_&&(Z=1===v?Math.max(O-B,q-O):0===f?(c.getPixelForTick(1)-O)/2:(O-c.getPixelForTick(T-1))/2,O+=T<f?Z:-Z,O<B-V||O>
vendor: 9,753 bytes, line 1
1q+V)))return O}function y(c,f,_,v){var ue,pe,je,ft,xt,St,zt,Hn,_n,Ui,ma,la,La,T=_.length,O=[],B=[],q=[],V=0,Z=0;for(ue=0;ue<T;++ue){if(ft=_[ue].label,c.font=St=(xt=_[ue].major?f.major:f.minor).string,zt=v[St]=v[St]||{data:{},gc:[]},Hn=xt.lineHeight,_n=Ui=0,lt(ft)||Ne(ft)){if(Ne(ft))for(pe=0,je=ft.length;pe<je;++pe)!lt(ma=ft[pe])&&!Ne(ma)&&(_n=we.measureText(c,zt.data,zt.gc,_n,ma),Ui+=Hn)}else _n=we.measureText(c,zt.data,zt.gc,_n,ft),Ui=Hn;O.push(_n),B.push(Ui),q.push(Hn/2),V=Math.max(_n,V),Z=Math.max(Ui,Z)}function Or(Ga){return{width:O[Ga]||0,height:B[Ga]||0,offset:q[Ga]||0}}return function A(c,f){we.each(c,function(_){var O,v=_.gc,T=v.length/2;if(T>f){for(O=0;O<T;++O)delete _.data[v[O]];v.splice(0,T)}})}(v,T),la=O.indexOf(V),La=B.indexOf(Z),{first:Or(0),last:Or(T-1),widest:Or(la),highest:Or(La)}}function k(c){return c.drawTicks?c.tickMarkLength:0}function P(c){var f,_;return c.display?(f=we.options._parseFont(c),_=we.options.toPadding(c.padding),f.lineHeight+_.height):0}function N(c,f){return we.extend(we.options._parseFont({fontFamily:yt(f.fontFamily,c.fontFamily),fontSize:yt(f.fontSize,c.fontSize),fontStyle:yt(f.fontStyle,c.fontStyle),lineHeight:yt(f.lineHeight,c.lineHeight)}),{color:we.options.resolve([f.fontColor,c.fontColor,kr.global.defaultFontColor])})}function D(c){var f=N(c,c.minor);return{minor:f,major:c.major.enabled?N(c,c.major):f}}function U(c){var _,v,T,f=[];for(v=0,T=c.length;v<T;++v)typeof(_=c[v])._index<"u"&&f.push(_);return f}function Ae(c,f,_,v){var q,V,Z,ue,T=yt(_,0),O=Math.min(yt(v,c.length),c.length),B=0;for(f=Math.ceil(f),v&&(f=(q=v-_)/Math.floor(q/f)),ue=T;ue<0;)B++,ue=Math.round(T+B*f);for(V=Math.max(T,0);V<O;V++)Z=c[V],V===ue?(Z._index=V,B++,ue=Math.round(T+B*f)):delete Z.label}kr._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:rn.formatters.values,minor:{},major:{}}});var Le=Es.extend({zeroLineIndex:0,getPadding:function(){var c=this;return{left:c.paddingLeft||0,top:c.paddingTop||0,right:c.paddingRight||0,bottom:c.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var c=this.chart.data;return this.options.labels||(this.isHorizontal()?c.xLabels:c.yLabels)||c.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){we.callback(this.options.beforeUpdate,[this])},update:function(c,f,_){var B,q,V,Z,ue,v=this,T=v.options.ticks,O=T.sampleSize;if(v.beforeUpdate(),v.maxWidth=c,v.maxHeight=f,v.margins=we.extend({left:0,right:0,top:0,bottom:0},_),v._ticks=null,v.ticks=null,v._labelSizes=null,v._maxLabelLines=0,v.longestLabelWidth=0,v.longestTextCache=v.longestTextCache||{},v._gridLineItems=null,v._labelItems=null,v.beforeSetDimensions(),v.setDimensions(),v.afterSetDimensions(),v.beforeDataLimits(),v.determineDataLimits(),v.afterDataLimits(),v.beforeBuildTicks(),Z=v.buildTicks()||[],(!(Z=v.afterBuildTicks(Z)||Z)||!Z.length)&&v.ticks)for(Z=[],B=0,q=v.ticks.length;B<q;++B)Z.push({value:v.ticks[B],major:!1});return v._ticks=Z,V=v._convertTicksToLabels((ue=O<Z.length)?function bi(c,f){for(var _=[],v=c.length/f,T=0,O=c.length;T<O;T+=v)_.push(c[Math.floor(T)]);return _}(Z,O):Z),v._configure(),v.beforeCalculateTickRotation(),v.calculateTickRotation(),v.afterCalculateTickRotation(),v.beforeFit(),v.fit(),v.afterFit(),v._ticksToDraw=T.display&&(T.autoSkip||"auto"===T.source)?v._autoSkip(Z):Z,ue&&(V=v._convertTicksToLabels(v._ticksToDraw)),v.ticks=V,v.afterUpdate(),v.minSize},_configure:function(){var _,v,c=this,f=c.options.ticks.reverse;c.isHorizontal()?(_=c.left,v=c.right):(_=c.top,v=c.bottom,f=!f),c._startPixel=_,c._endPixel=v,c._reversePixels=f,c._length=v-_},afterUpdate:function(){we.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){we.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var c=this;c.isHorizontal()?(c.width=c.maxWidth,c.left=0,c.right=c.width):(c.height=c.maxHeight,c.top=0,c.bottom=c.height),c.paddingLeft=0,c.paddingTop=0,c.paddingRight=0,c.paddingBottom=0},afterSetDimensions:function(){we.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){we.callback(this.options.beforeDataLimits,[this])},determineDataLimits:we.noop,afterDataLimits:function(){we.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){we.callback(this.options.beforeBuildTicks,[this])},buildTicks:we.noop,afterBuildTicks:function(c){var f=this;return Ne(c)&&c.length?we.callback(f.options.afterBuildTicks,[f,c]):(f.ticks=we.callback(f.options.afterBuildTicks,[f,f.ticks])||f.ticks,c)},beforeTickToLabelConversion:function(){we.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var c=this,f=c.options.ticks;c.ticks=c.ticks.map(f.userCallback||f.callback,this)},afterTickToLabelConversion:function(){we.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){we.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var q,V,Z,ue,pe,je,ft,c=this,f=c.options,_=f.ticks,v=c.getTicks().length,T=_.minRotation||0,O=_.maxRotation,B=T;!c._isVisible()||!_.display||T>=O||v<=1||!c.isHorizontal()?c.labelRotation=T:(V=(q=c._getLabelSizes()).widest.width,Z=q.highest.height-q.highest.offset,ue=Math.min(c.maxWidth,c.chart.width-V),V+6>(pe=f.offset?c.maxWidth/v:ue/(v-1))&&(pe=ue/(v-(f.offset?.5:1)),je=c.maxHeight-k(f.gridLines)-_.padding-P(f.scaleLabel),ft=Math.sqrt(V*V+Z*Z),B=we.toDegrees(Math.min(Math.asin(Math.min((q.highest.height+6)/pe,1)),Math.asin(Math.min(je/ft,1))-Math.asin(Z/ft))),B=Math.max(T,Math.min(O,B))),c.labelRotation=B)},afterCalculateTickRotation:function(){we.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){we.callback(this.options.beforeFit,[this])},fit:function(){var c=this,f=c.minSize={width:0,height:0},_=c.chart,v=c.options,T=v.ticks,O=v.scaleLabel,B=v.gridLines,q=c._isVisible(),V="bottom"===v.position,Z=c.isHorizontal();if(Z?f.width=c.maxWidth:q&&(f.width=k(B)+P(O)),Z?q&&(f.height=k(B)+P(O)):f.height=c.maxHeight,T.display&&q){var ue=D(T),pe=c._getLabelSizes(),je=pe.first,ft=pe.last,xt=pe.widest,St=pe.highest,zt=.4*ue.minor.lineHeight,Hn=T.padding;if(Z){var _n=0!==c.labelRotation,Ui=we.toRadians(c.labelRotation),ma=Math.cos(Ui),la=Math.sin(Ui);f.height=Math.min(c.maxHeight,f.height+(la*xt.width+ma*(St.height-(_n?St.offset:0))+(_n?0:zt))+Hn);var ka,gs,Or=c.getPixelForTick(0)-c.left,Ga=c.right-c.getPixelForTick(c.getTicks().length-1);_n?(ka=V?ma*je.width+la*je.offset:la*(je.height-je.offset),gs=V?la*(ft.height-ft.offset):ma*ft.width+la*ft.offset):(ka=je.width/2,gs=ft.width/2),c.paddingLeft=Math.max((ka-Or)*c.width/(c.width-Or),0)+3,c.paddingRight=Math.max((gs-Ga)*c.width/(c.width-Ga),0)+3}else f.width=Math.min(c.maxWidth,f.width+(T.mirror?0:xt.width+Hn+zt)),c.paddingTop=je.height/2,c.paddingBottom=ft.height/2}c.handleMargins(),Z?(c.width=c._length=_.width-c.margins.left-c.margins.right,c.height=f.height):(c.width=f.width,c.height=c._length=_.height-c.margins.top-c.margins.bottom)},handleMargins:function(){var c=this;c.margins&&(c.margins.left=Math.max(c.paddingLeft,c.margins.left),c.margins.top=Math.max(c.paddingTop,c.margins.top),c.margins.right=Math.max(c.paddingRight,c.margins.right),c.margins.bottom=Math.max(c.paddingBottom,c.margins.bottom))},afterFit:function(){we.callback(this.options.afterFit,[this])},isHorizontal:function(){var c=this.options.position;return"top"===c||"bottom"===c},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(c){if(lt(c))return NaN;if(("number"==typeof c||c instanceof Number)&&!isFinite(c))return NaN;if(c)if(this.isHorizontal()){if(void 0!==c.x)return this.getRightValue(c.x)}else if(void 0!==c.y)return this.getRightValue(c.y);return c},_convertTicksToLabels:function(c){var _,v,T,f=this;for(f.ticks=c.map(function(O){return O.value}),f.beforeTickToLabelConversion(),_=f.convertTicksToLabels(c)||f.ticks,f.afterTickToLabelConversion(),v=0,T=c.length;v<T;++v)c[v].label=_[v];return _},_getLabelSizes:function(){var c=this,f=c._labelSizes;return f||(c._labelSizes=f=y(c.ctx,D(c.options.ticks),c.getTicks(),c.longestTextCache),c.longestLabelWidth=f.widest.width),f},_parseValue:function(c){var f,_,v,T;return Ne(c)?(f=+this.getRightValue(c[0]),_=+this.getRightValue(c[1]),v=Math.min(f,_),T=Math.max(f,_)):(f=void 0,_=c=+this.getRightValue(c),v=c,T=c),{min:v,max:T,start:f,end:_}},_getScaleLabel:function(c){var f=this._parseValue(c);return void 0!==f.start?"["+f.start+", "+f.end+"]":+this.getRightValue(c)},getLabelForIndex:we.noop,getPixelForValue:we.noop,getValueForPixel:we.noop,getPixelForTick:function(c){var f=this,_=f.options.offset,v=f._ticks.length,T=1/Math.max(v-(_?0:1),1);return c<0||c>v-1?null:f.getPixelForDecimal(c*T+(_?T/2:0))},getPixelForDecimal:function(c){var f=this;return f._reversePixels&&(c=1-c),f._startPixel+c*f._length},getDecimalForPixel:function(c){var f=(c-this._startPixel)/this._length;return this._reversePixels?1-f:f},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var c=this,f=c.min,_=c.max;return c.beginAtZero?0:f<0&&_<0?_:f>0&&_>0?f:0},_autoSkip:function(c){var Z,ue,pe,je,f=this,_=f.options.ticks,v=f._length,T=_.maxTicksLimit||v/f._tickSize()+1,O=_.major.enabled?function de(c){var _,v,f=[];for(_=0,v=c.length;_<v;
vendor: 2,810 bytes, line 1
1_++)c[_].major&&f.push(_);return f}(c):[],B=O.length,q=O[0],V=O[B-1];if(B>T)return function ve(c,f,_){var O,B,v=0,T=f[0];for(_=Math.ceil(_),O=0;O<c.length;O++)B=c[O],O===T?(B._index=O,T=f[++v*_]):delete B.label}(c,O,B/T),U(c);if(pe=function X(c,f,_,v){var B,q,V,Z,T=function W(c){var _,v,f=c.length;if(f<2)return!1;for(v=c[0],_=1;_<f;++_)if(c[_]-c[_-1]!==v)return!1;return v}(c),O=(f.length-1)/v;if(!T)return Math.max(O,1);for(V=0,Z=(B=we.math._factorize(T)).length-1;V<Z;V++)if((q=B[V])>O)return q;return Math.max(O,1)}(O,c,0,T),B>0){for(Z=0,ue=B-1;Z<ue;Z++)Ae(c,pe,O[Z],O[Z+1]);return Ae(c,pe,we.isNullOrUndef(je=B>1?(V-q)/(B-1):null)?0:q-je,q),Ae(c,pe,V,we.isNullOrUndef(je)?c.length:V+je),U(c)}return Ae(c,pe),U(c)},_tickSize:function(){var c=this,f=c.options.ticks,_=we.toRadians(c.labelRotation),v=Math.abs(Math.cos(_)),T=Math.abs(Math.sin(_)),O=c._getLabelSizes(),B=f.autoSkipPadding||0,q=O?O.widest.width+B:0,V=O?O.highest.height+B:0;return c.isHorizontal()?V*v>q*T?q/v:V/T:V*T<q*v?V/v:q/T},_isVisible:function(){var v,T,O,c=this,f=c.chart,_=c.options.display;if("auto"!==_)return!!_;for(v=0,T=f.data.datasets.length;v<T;++v)if(f.isDatasetVisible(v)&&((O=f.getDatasetMeta(v)).xAxisID===c.id||O.yAxisID===c.id))return!0;return!1},_computeGridLineItems:function(c){var zt,Hn,_n,Ui,ma,la,La,Or,Ga,ka,gs,Rs,Fs,ns,wl,Nc,zu,f=this,_=f.chart,v=f.options,T=v.gridLines,O=v.position,B=T.offsetGridLines,q=f.isHorizontal(),V=f._ticksToDraw,Z=V.length+(B?1:0),ue=k(T),pe=[],je=T.drawBorder?En(T.lineWidth,0,0):0,ft=je/2,xt=we._alignPixel,St=function(Xs){return xt(_,Xs,je)};for("top"===O?(zt=St(f.bottom),La=f.bottom-ue,Ga=zt-ft,gs=St(c.top)+ft,Fs=c.bottom):"bottom"===O?(zt=St(f.top),gs=c.top,Fs=St(c.bottom)-ft,La=zt+ft,Ga=f.top+ue):"left"===O?(zt=St(f.right),la=f.right-ue,Or=zt-ft,ka=St(c.left)+ft,Rs=c.right):(zt=St(f.left),ka=c.left,Rs=St(c.right)-ft,la=zt+ft,Or=f.left+ue),Hn=0;Hn<Z;++Hn)!(lt((_n=V[Hn]||{}).label)&&Hn<V.length)&&(Hn===f.zeroLineIndex&&v.offset===B?(ns=T.zeroLineWidth,wl=T.zeroLineColor,Nc=T.zeroLineBorderDash||[],zu=T.zeroLineBorderDashOffset||0):(ns=En(T.lineWidth,Hn,1),wl=En(T.color,Hn,"rgba(0,0,0,0.1)"),Nc=T.borderDash||[],zu=T.borderDashOffset||0),void 0!==(Ui=yi(f,_n._index||Hn,B))&&(ma=xt(_,Ui,ns),q?la=Or=ka=Rs=ma:La=Ga=gs=Fs=ma,pe.push({tx1:la,ty1:La,tx2:Or,ty2:Ga,x1:ka,y1:gs,x2:Rs,y2:Fs,width:ns,color:wl,borderDash:Nc,borderDashOffset:zu})));return pe.ticksLength=Z,pe.borderValue=zt,pe},_computeLabelItems:function(){var je,ft,xt,St,zt,Hn,_n,Ui,ma,la,La,Or,c=this,f=c.options,_=f.ticks,v=f.position,T=_.mirror,O=c.isHorizontal(),B=c._ticksToDraw,q=D(_),V=_.padding,Z=k(f.gridLines),ue=-we.toRadians(c.labelRotation),pe=[];for("top"===v?(Hn=c.bottom-Z-V,_n=ue?"left":"center"):"bottom"===v?(Hn=c.top+Z+V,_n=ue?"right":"center"):"left"===v?(zt=c.right-(T?0:Z)-V,_n=T?"left"
vendor: 16,869 bytes, line 1
1:"right"):(zt=c.left+(T?0:Z)+V,_n=T?"right":"left"),je=0,ft=B.length;je<ft;++je)!lt(St=(xt=B[je]).label)&&(Ui=c.getPixelForTick(xt._index||je)+_.labelOffset,la=(ma=xt.major?q.major:q.minor).lineHeight,La=Ne(St)?St.length:1,O?(zt=Ui,Or="top"===v?((ue?1:.5)-La)*la:(ue?0:.5)*la):(Hn=Ui,Or=(1-La)*la/2),pe.push({x:zt,y:Hn,rotation:ue,label:St,font:ma,textOffset:Or,textAlign:_n}));return pe},_drawGrid:function(c){var f=this,_=f.options.gridLines;if(_.display){var V,Z,ue,pe,je,v=f.ctx,T=f.chart,O=we._alignPixel,B=_.drawBorder?En(_.lineWidth,0,0):0,q=f._gridLineItems||(f._gridLineItems=f._computeGridLineItems(c));for(ue=0,pe=q.length;ue<pe;++ue)Z=(je=q[ue]).color,(V=je.width)&&Z&&(v.save(),v.lineWidth=V,v.strokeStyle=Z,v.setLineDash&&(v.setLineDash(je.borderDash),v.lineDashOffset=je.borderDashOffset),v.beginPath(),_.drawTicks&&(v.moveTo(je.tx1,je.ty1),v.lineTo(je.tx2,je.ty2)),_.drawOnChartArea&&(v.moveTo(je.x1,je.y1),v.lineTo(je.x2,je.y2)),v.stroke(),v.restore());if(B){var zt,Hn,_n,Ui,ft=B,xt=En(_.lineWidth,q.ticksLength-1,1),St=q.borderValue;f.isHorizontal()?(zt=O(T,f.left,ft)-ft/2,Hn=O(T,f.right,xt)+xt/2,_n=Ui=St):(_n=O(T,f.top,ft)-ft/2,Ui=O(T,f.bottom,xt)+xt/2,zt=Hn=St),v.lineWidth=B,v.strokeStyle=En(_.color,0),v.beginPath(),v.moveTo(zt,_n),v.lineTo(Hn,Ui),v.stroke()}}},_drawLabels:function(){var c=this;if(c.options.ticks.display){var T,O,B,q,V,Z,ue,pe,_=c.ctx,v=c._labelItems||(c._labelItems=c._computeLabelItems());for(T=0,B=v.length;T<B;++T){if(Z=(V=v[T]).font,_.save(),_.translate(V.x,V.y),_.rotate(V.rotation),_.font=Z.string,_.fillStyle=Z.color,_.textBaseline="middle",_.textAlign=V.textAlign,pe=V.textOffset,Ne(ue=V.label))for(O=0,q=ue.length;O<q;++O)_.fillText(""+ue[O],0,pe),pe+=Z.lineHeight;else _.fillText(ue,0,pe);_.restore()}}},_drawTitle:function(){var c=this,f=c.ctx,_=c.options,v=_.scaleLabel;if(v.display){var ue,pe,T=yt(v.fontColor,kr.global.defaultFontColor),O=we.options._parseFont(v),B=we.options.toPadding(v.padding),q=O.lineHeight/2,V=_.position,Z=0;if(c.isHorizontal())ue=c.left+c.width/2,pe="bottom"===V?c.bottom-q-B.bottom:c.top+q+B.top;else{var je="left"===V;ue=je?c.left+q+B.top:c.right-q-B.top,pe=c.top+c.height/2,Z=je?-.5*Math.PI:.5*Math.PI}f.save(),f.translate(ue,pe),f.rotate(Z),f.textAlign="center",f.textBaseline="middle",f.fillStyle=T,f.font=O.string,f.fillText(v.labelString,0,0),f.restore()}},draw:function(c){var f=this;f._isVisible()&&(f._drawGrid(c),f._drawTitle(),f._drawLabels())},_layers:function(){var c=this,f=c.options,_=f.ticks&&f.ticks.z||0,v=f.gridLines&&f.gridLines.z||0;return c._isVisible()&&_!==v&&c.draw===c._draw?[{z:v,draw:function(){c._drawGrid.apply(c,arguments),c._drawTitle.apply(c,arguments)}},{z:_,draw:function(){c._drawLabels.apply(c,arguments)}}]:[{z:_,draw:function(){c.draw.apply(c,arguments)}}]},_getMatchingVisibleMetas:function(c){var f=this,_=f.isHorizontal();return f.chart._getSortedVisibleDatasetMetas().filter(function(v){return(!c||v.type===c)&&(_?v.xAxisID===f.id:v.yAxisID===f.id)})}});Le.prototype._draw=Le.prototype.draw;var oe=Le,at=we.isNullOrUndef,ht=oe.extend({determineDataLimits:function(){var q,c=this,f=c._getLabels(),_=c.options.ticks,v=_.min,T=_.max,O=0,B=f.length-1;void 0!==v&&(q=f.indexOf(v))>=0&&(O=q),void 0!==T&&(q=f.indexOf(T))>=0&&(B=q),c.minIndex=O,c.maxIndex=B,c.min=f[O],c.max=f[B]},buildTicks:function(){var c=this,f=c._getLabels(),_=c.minIndex,v=c.maxIndex;c.ticks=0===_&&v===f.length-1?f:f.slice(_,v+1)},getLabelForIndex:function(c,f){var _=this,v=_.chart;return v.getDatasetMeta(f).controller._getValueScaleId()===_.id?_.getRightValue(v.data.datasets[f].data[c]):_._getLabels()[c]},_configure:function(){var c=this,f=c.options.offset,_=c.ticks;oe.prototype._configure.call(c),c.isHorizontal()||(c._reversePixels=!c._reversePixels),_&&(c._startValue=c.minIndex-(f?.5:0),c._valueRange=Math.max(_.length-(f?0:1),1))},getPixelForValue:function(c,f,_){var T,O,B,v=this;return!at(f)&&!at(_)&&(c=v.chart.data.datasets[_].data[f]),at(c)||(T=v.isHorizontal()?c.x:c.y),(void 0!==T||void 0!==c&&isNaN(f))&&(O=v._getLabels(),c=we.valueOrDefault(T,c),f=-1!==(B=O.indexOf(c))?B:f,isNaN(f)&&(f=c)),v.getPixelForDecimal((f-v._startValue)/v._valueRange)},getPixelForTick:function(c){var f=this.ticks;return c<0||c>f.length-1?null:this.getPixelForValue(f[c],c+this.minIndex)},getValueForPixel:function(c){var f=this,_=Math.round(f._startValue+f.getDecimalForPixel(c)*f._valueRange);return Math.min(Math.max(_,0),f.ticks.length-1)},getBasePixel:function(){return this.bottom}});ht._defaults={position:"bottom"};var Rt=we.isNullOrUndef;var An=oe.extend({getRightValue:function(c){return"string"==typeof c?+c:oe.prototype.getRightValue.call(this,c)},handleTickRangeOptions:function(){var c=this,_=c.options.ticks;if(_.beginAtZero){var v=we.sign(c.min),T=we.sign(c.max);v<0&&T<0?c.max=0:v>0&&T>0&&(c.min=0)}var O=void 0!==_.min||void 0!==_.suggestedMin,B=void 0!==_.max||void 0!==_.suggestedMax;void 0!==_.min?c.min=_.min:void 0!==_.suggestedMin&&(c.min=null===c.min?_.suggestedMin:Math.min(c.min,_.suggestedMin)),void 0!==_.max?c.max=_.max:void 0!==_.suggestedMax&&(c.max=null===c.max?_.suggestedMax:Math.max(c.max,_.suggestedMax)),O!==B&&c.min>=c.max&&(O?c.max=c.min+1:c.min=c.max-1),c.min===c.max&&(c.max++,_.beginAtZero||c.min--)},getTickLimit:function(){var T,c=this,f=c.options.ticks,_=f.stepSize,v=f.maxTicksLimit;return _?T=Math.ceil(c.max/_)-Math.floor(c.min/_)+1:(T=c._computeTickLimit(),v=v||11),v&&(T=Math.min(v,T)),T},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:we.noop,buildTicks:function(){var c=this,_=c.options.ticks,v=c.getTickLimit(),T={maxTicks:v=Math.max(2,v),min:_.min,max:_.max,precision:_.precision,stepSize:we.valueOrDefault(_.fixedStepSize,_.stepSize)},O=c.ticks=function Jt(c,f){var ft,xt,St,zt,_=[],T=c.stepSize,O=T||1,B=c.maxTicks-1,q=c.min,V=c.max,Z=c.precision,ue=f.min,pe=f.max,je=we.niceNum((pe-ue)/B/O)*O;if(je<1e-14&&Rt(q)&&Rt(V))return[ue,pe];(zt=Math.ceil(pe/je)-Math.floor(ue/je))>B&&(je=we.niceNum(zt*je/B/O)*O),T||Rt(Z)?ft=Math.pow(10,we._decimalPlaces(je)):(ft=Math.pow(10,Z),je=Math.ceil(je*ft)/ft),xt=Math.floor(ue/je)*je,St=Math.ceil(pe/je)*je,T&&(!Rt(q)&&we.almostWhole(q/je,je/1e3)&&(xt=q),!Rt(V)&&we.almostWhole(V/je,je/1e3)&&(St=V)),zt=we.almostEquals(zt=(St-xt)/je,Math.round(zt),je/1e3)?Math.round(zt):Math.ceil(zt),xt=Math.round(xt*ft)/ft,St=Math.round(St*ft)/ft,_.push(Rt(q)?xt:q);for(var Hn=1;Hn<zt;++Hn)_.push(Math.round((xt+Hn*je)*ft)/ft);return _.push(Rt(V)?St:V),_}(T,c);c.handleDirectionalChanges(),c.max=we.max(O),c.min=we.min(O),_.reverse?(O.reverse(),c.start=c.max,c.end=c.min):(c.start=c.min,c.end=c.max)},convertTicksToLabels:function(){var c=this;c.ticksAsNumbers=c.ticks.slice(),c.zeroLineIndex=c.ticks.indexOf(0),oe.prototype.convertTicksToLabels.call(c)},_configure:function(){var T,c=this,f=c.getTicks(),_=c.min,v=c.max;oe.prototype._configure.call(c),c.options.offset&&f.length&&(_-=T=(v-_)/Math.max(f.length-1,1)/2,v+=T),c._startValue=_,c._endValue=v,c._valueRange=v-_}}),hi={position:"left",ticks:{callback:rn.formatters.linear}};function ii(c,f,_,v){var ue,pe,T=c.options,B=function qn(c,f,_){var v=[_.type,void 0===f&&void 0===_.stack?_.index:"",_.stack].join(".");return void 0===c[v]&&(c[v]={pos:[],neg:[]}),c[v]}(f,T.stacked,_),q=B.pos,V=B.neg,Z=v.length;for(ue=0;ue<Z;++ue)pe=c._parseValue(v[ue]),!(isNaN(pe.min)||isNaN(pe.max)||_.data[ue].hidden)&&(q[ue]=q[ue]||0,V[ue]=V[ue]||0,T.relativePoints?q[ue]=100:pe.min<0||pe.max<0?V[ue]+=pe.min:q[ue]+=pe.max)}function He(c,f,_){var T,O,v=_.length;for(T=0;T<v;++T)O=c._parseValue(_[T]),!(isNaN(O.min)||isNaN(O.max)||f.data[T].hidden)&&(c.min=Math.min(c.min,O.min),c.max=Math.max(c.max,O.max))}var $e=An.extend({determineDataLimits:function(){var V,Z,ue,pe,c=this,f=c.options,v=c.chart.data.datasets,T=c._getMatchingVisibleMetas(),O=f.stacked,B={},q=T.length;if(c.min=Number.POSITIVE_INFINITY,c.max=Number.NEGATIVE_INFINITY,void 0===O)for(V=0;!O&&V<q;++V)O=void 0!==(Z=T[V]).stack;for(V=0;V<q;++V)ue=v[(Z=T[V]).index].data,O?ii(c,B,Z,ue):He(c,Z,ue);we.each(B,function(je){pe=je.pos.concat(je.neg),c.min=Math.min(c.min,we.min(pe)),c.max=Math.max(c.max,we.max(pe))}),c.min=we.isFinite(c.min)&&!isNaN(c.min)?c.min:0,c.max=we.isFinite(c.max)&&!isNaN(c.max)?c.max:1,c.handleTickRangeOptions()},_computeTickLimit:function(){var f,c=this;return c.isHorizontal()?Math.ceil(c.width/40):(f=we.options._parseFont(c.options.ticks),Math.ceil(c.height/f.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(c,f){return this._getScaleLabel(this.chart.data.datasets[f].data[c])},getPixelForValue:function(c){var f=this;return f.getPixelForDecimal((+f.getRightValue(c)-f._startValue)/f._valueRange)},getValueForPixel:function(c){return this._startValue+this.getDecimalForPixel(c)*this._valueRange},getPixelForTick:function(c){var f=this.ticksAsNumbers;return c<0||c>f.length-1?null:this.getPixelForValue(f[c])}});$e._defaults=hi;var kt=we.valueOrDefault,On=we.math.log10;var Xn={position:"left",ticks:{callback:rn.formatters.logarithmic}};function xn(c,f){return we.isFinite(c)&&c>=0?c:f}var oi=oe.extend({determineDataLimits:function(){var B,q,V,Z,ue,pe,c=this,f=c.options,_=c.chart,v=_.data.datasets,T=c.isHorizontal();function O(zt){return T?zt.xAxisID===c.id:zt.yAxisID===c.id}c.min=Number.POSITIVE_INFINITY,c.max=Number.NEGATIVE_INFINITY,c.minNotZero=Number.POSITIVE_INFINITY;var je=f.stacked;if(void 0===je)for(B=0;B<v.length;B++)if(q=_.getDatasetMeta(B),_.isDatasetVisible(B)&&O(q)&&void 0!==q.stack){je=!0;break}if(f.stacked||je){var ft={};for(B=0;B<v.length;B++){var xt=[(q=_.getDatasetMeta(B)).type,void 0===f.stacked&&void 0===q.stack?B:"",q.stack].join(".");if(_.isDatasetVisible(B)&&O(q))for(void 0===ft[xt]&&(ft[xt]=[]),ue=0,pe=(Z=v[B].data).length;ue<pe;ue++){var St=ft[xt];V=c._parseValue(Z[ue]),!(isNaN(V.min)||isNaN(V.max)||q.data[ue].hidden||V.min<0||V.max<0)&&(St[ue]=St[ue]||0,St[ue]+=V.max)}}we.each(ft,function(zt){if(zt.length>0){var Hn=we.min(zt),_n=we.max(zt);c.min=Math.min(c.min,Hn),c.max=Math.max(c.max,_n)}})}else for(B=0;B<v.length;B++)if(q=_.getDatasetMeta(B),_.isDatasetVisible(B)&&O(q))for(ue=0,pe=(Z=v[B].data).length;ue<pe;ue++)V=c._parseValue(Z[ue]),!(isNaN(V.min)||isNaN(V.max)||q.data[ue].hidden||V.min<0||V.max<0)&&(c.min=Math.min(V.min,c.min),c.max=Math.max(V.max,c.max),0!==V.min&&(c.minNotZero=Math.min(V.min,c.minNotZero)));c.min=we.isFinite(c.min)?c.min:null,c.max=we.isFinite(c.max)?c.max:null,c.minNotZero=we.isFinite(c.minNotZero)?c.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var c=this,f=c.options.ticks;c.min=xn(f.min,c.min),c.max=xn(f.max,c.max),c.min===c.max&&(0!==c.min&&null!==c.min?(c.min=Math.pow(10,Math.floor(On(c.min))-1),c.max=Math.pow(10,Math.floor(On(c.max))+1)):(c.min=1,c.max=10)),null===c.min&&(c.min=Math.pow(10,Math.floor(On(c.max))-1)),null===c.max&&(c.max=0!==c.min?Math.pow(10,Math.floor(On(c.min))+1):10),null===c.minNotZero&&(c.minNotZero=c.min>0?c.min:c.max<1?Math.pow(10,Math.floor(On(c.max))):1)},buildTicks:function(){var c=this,f=c.options.ticks,_=!c.isHorizontal(),v={min:xn(f.min),max:xn(f.max)},T=c.ticks=function Dn(c,f){var B,q,_=[],v=kt(c.min,Math.pow(10,Math.floor(On(f.min)))),T=Math.floor(On(f.max)),O=Math.ceil(f.max/Math.pow(10,T));0===v?(B=Math.floor(On(f.minNotZero)),q=Math.floor(f.minNotZero/Math.pow(10,B)),_.push(v),v=q*Math.pow(10,B)):(B=Math.floor(On(v)),q=Math.floor(v/Math.pow(10,B)));var V=B<0?Math.pow(10,Math.abs(B)):1;do{_.push(v),10==++q&&(q=1,V=++B>=0?1:V),v=Math.round(q*Math.pow(10,B)*V)/V}while(B<T||B===T&&q<O);var Z=kt(c.max,v);return _.push(Z),_}(v,c);c.max=we.max(T),c.min=we.min(T),f.reverse?(_=!_,c.start=c.max,c.end=c.min):(c.start=c.min,c.end=c.max),_&&T.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),oe.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(c,f){return this._getScaleLabel(this.chart.data.datasets[f].data[c])},getPixelForTick:function(c){var f=this.tickValues;return c<0||c>f.length-1?null:this.getPixelForValue(f[c])},_getFirstTickValue:function(c){var f=Math.floor(On(c));return Math.floor(c/Math.pow(10,f))*Math.pow(10,f)},_configure:function(){var c=this,f=c.min,_=0;oe.prototype._configure.call(c),0===f&&(f=c._getFirstTickValue(c.minNotZero),_=kt(c.options.ticks.fontSize,kr.global.defaultFontSize)/c._length),c._startValue=On(f),c._valueOffset=_,c._valueRange=(On(c.max)-On(f))/(1-_)},getPixelForValue:function(c){var f=this,_=0;return(c=+f.getRightValue(c))>f.min&&c>0&&(_=(On(c)-f._startValue)/f._valueRange+f._valueOffset),f.getPixelForDecimal(_)},getValueForPixel:function(c){var f=this,_=f.getDecimalForPixel(c);return 0===_&&0===f.min?0:Math.pow(10,f._startValue+(_-f._valueOffset)*f._valueRange)}});oi._defaults=Xn;var Qi=we.valueOrDefault,Te=we.valueAtIndexOrDefault,Qe=we.options.resolve,dt={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:rn.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(c){return c}}};function Nt(c){var f=c.ticks;return f.display&&c.display?Qi(f.fontSize,kr.global.defaultFontSize)+2*f.backdropPaddingY:0}function Qt(c,f,_){return we.isArray(_)?{w:we.longestText(c,c.font,_),h:_.length*f}:{w:c.measureText(_).width,h:f}}function Cn(c,f,_,v,T){return c===v||c===T?{start:f-_/2,end:f+_/2}:c<v||c>T?{start:f-_,end:f}:{start:f,end:f+_}}function Ln(c){return 0===c||180===c?"center":c<180?"left":"right"}function Ri(c,f,_,v){var O,B,T=_.y+v/2;if(we.isArray(f))for(O=0,B=f.length;O<B;++O)c.fillText(f[O],_.x,T),T+=v;else c.fillText(f,_.x,T)}function Oi(c,f,_){90===c||270===c?_.y-=f.h/2:(c>270||c<90)&&(_.y-=f.h)}function $r(c){return we.isNumber(c)?c:0}var Qn=An.extend({setDimensions:function(){var c=this;c.width=c.maxWidth,c.height=c.maxHeight,c.paddingTop=Nt(c.options)/2,c.xCenter=Math.floor(c.width/2),c.yCenter=Math.floor((c.height-c.paddingTop)/2),c.drawingArea=Math.min(c.height-c.paddingTop,c.width)/2},determineDataLimits:function(){var c=this,f=c.chart,_=Number.POSITIVE_INFINITY,v=Number.NEGATIVE_INFINITY;we.each(f.data.datasets,function(T,O){if(f.isDatasetVisible(O)){var B=f.getDatasetMeta(O);we.each(T.data,function(q,V){var Z=+c.getRightValue(q);isNaN(Z)||B.data[V].hidden||(_=Math.min(Z,_),v=Math.max(Z,v))})}}),c.min=_===Number.POSITIVE_INFINITY?0:_,c.max=v===Number.NEGATIVE_INFINITY?0:v,c.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Nt(this.options))},convertTicksToLabels:function(){var c=this;An.prototype.convertTicksToLabels.call(c),c.pointLabels=c.chart.data.labels.map(function(){var f=we.callback(c.options.pointLabels.callback,arguments,c);return f||0===f?f:""})},getLabelForIndex:function(c,f){return+this.getRightValue(this.chart.data.datasets[f].data[c])},fit:function(){var c=this,f=c.options;f.display&&f.pointLabels.display?function In(c){var T,O,B,f=we.options._parseFont(c.options.pointLabels),_={l:0,r:c.width,t:0,b:c.height-c.paddingTop},v={};c.ctx.font=f.string,c._pointLabelSizes=[];var q=c.chart.data.labels.length;for(T=0;T<q;T++){B=c.getPointPosition(T,c.drawingArea+5),O=Qt(c.ctx,f.lineHeight,c.pointLabels[T]),c._pointLabelSizes[T]=O;var V=c.getIndexAngle(T),Z=we.toDegrees(V)%360,ue=Cn(Z,B.x,O.w,0,180),pe=Cn(Z,B.y,O.h,90,270);ue.start<_.l&&(_.l=ue.start,v.l=V),ue.end>_.r&&(_.r=ue.end,v.r=V),pe.start<_.t&&(_.t=pe.start,v.t=V),pe.end>_.b&&(_.b=pe.end,v.b=V)}c.setReductions(c.drawingArea,_,v)}(c):c.setCenterPoint(0,0,0,0)},setReductions:function(c,f,_){var v=this,T=f.l/Math.sin(_.l),O=Math.max(f.r-v.width,0)/Math.sin(_.r),B=-f.t/Math.cos(_.t),q=-Math.max(f.b-(v.height-v.paddingTop),0)/Math.cos(_.b);T=$r(T),O=$r(O),B=$r(B),q=$r(q),v.drawingArea=Math.min(Math.floor(c-(T+O)/2),Math.floor(c-(B+q)/2)),v.setCenterPoint(T,O,B,q)},setCenterPoint:function(c,f,_,v){var T=this,q=_+T.drawingArea,V=T.height-T.paddingTop-v-T.drawingArea;T.xCenter=Math.floor((c+T.drawingArea+(T.width-f-T.drawingArea))/2+T.left),T.yCenter=Math.floor((q+V)/2+T.top+T.paddingTop)},getIndexAngle:function(c){var f=this.chart,O=(c*(360/f.data.labels.length)+((f.options||{}).startAngle||0))%360;return(O<0?O+360:O)*Math.PI*2/360},getDistanceFromCenterForValue:function(c){var f=this;if(we.isNullOrUndef(c))return NaN;var _=f.drawingArea/(f.max-f.min);return f.options.ticks.reverse?(f.max-c)*_:(c-f.min)*_},getPointPosition:function(c,f){var _=this,v=_.getIndexAngle(c)-Math.PI/2;return{x:Math.cos(v)*f+_.xCenter,y:Math.sin(v)*f+_.yCenter}},getPointPositionForValue:function(c,f){return this.getPointPosition(c,this.getDistanceFromCenterForValue(f))},getBasePosition:function(c){var f=this,_=f.min,v=f.max;return f.getPointPositionForValue(c||0,f.beginAtZero?0:_<0&&v<0?v:_>0&&v>0?_:0)}
1,_drawGrid:function(){var q,V,Z,c=this,f=c.ctx,_=c.options,v=_.gridLines,T=_.angleLines,O=Qi(T.lineWidth,v.lineWidth),B=Qi(T.color,v.color);if(_.pointLabels.display&&function Zn(c){var f=c.ctx,_=c.options,v=_.pointLabels,T=Nt(_),O=c.getDistanceFromCenterForValue(_.ticks.reverse?c.min:c.max),B=we.options._parseFont(v);f.save(),f.font=B.string,f.textBaseline="middle";for(var q=c.chart.data.labels.length-1;q>=0;q--){var Z=c.getPointPosition(q,O+(0===q?T/2:0)+5),ue=Te(v.fontColor,q,kr.global.defaultFontColor);f.fillStyle=ue;var pe=c.getIndexAngle(q),je=we.toDegrees(pe);f.textAlign=Ln(je),Oi(je,c._pointLabelSizes[q],Z),Ri(f,c.pointLabels[q],Z,B.lineHeight)}f.restore()}(c),v.display&&we.each(c.ticks,function(ue,pe){0!==pe&&(V=c.getDistanceFromCenterForValue(c.ticksAsNumbers[pe]),function Hi(c,f,_,v){var Z,T=c.ctx,O=f.circular,B=c.chart.data.labels.length,q=Te(f.color,v-1),V=Te(f.lineWidth,v-1);if((O||B)&&q&&V){if(T.save(),T.strokeStyle=q,T.lineWidth=V,T.setLineDash&&(T.setLineDash(f.borderDash||[]),T.lineDashOffset=f.borderDashOffset||0),T.beginPath(),O)T.arc(c.xCenter,c.yCenter,_,0,2*Math.PI);else{Z=c.getPointPosition(0,_),T.moveTo(Z.x,Z.y);for(var ue=1;ue<B;ue++)Z=c.getPointPosition(ue,_),T.lineTo(Z.x,Z.y)}T.closePath(),T.stroke(),T.restore()}}(c,v,V,pe))}),T.display&&O&&B){for(f.save(),f.lineWidth=O,f.strokeStyle=B,f.setLineDash&&(f.setLineDash(Qe([T.borderDash,v.borderDash,[]])),f.lineDashOffset=Qe([T.borderDashOffset,v.borderDashOffset,0])),q=c.chart.data.labels.length-1;q>=0;q--)V=c.getDistanceFromCenterForValue(_.ticks.reverse?c.min:c.max),Z=c.getPointPosition(q,V),f.beginPath(),f.moveTo(c.xCenter,c.yCenter),f.lineTo(Z.x,Z.y),f.stroke();f.restore()}},_drawLabels:function(){var c=this,f=c.ctx,v=c.options.ticks;if(v.display){var q,V,T=c.getIndexAngle(0),O=we.options._parseFont(v),B=Qi(v.fontColor,kr.global.defaultFontColor);f.save(),f.font=O.string,f.translate(c.xCenter,c.yCenter),f.rotate(T),f.textAlign="center",f.textBaseline="middle",we.each(c.ticks,function(Z,ue){0===ue&&!v.reverse||(q=c.getDistanceFromCenterForValue(c.ticksAsNumbers[ue]),v.showLabelBackdrop&&(V=f.measureText(Z).width,f.fillStyle=v.backdropColor,f.fillRect(-V/2-v.backdropPaddingX,-q-O.size/2-v.backdropPaddingY,V+2*v.backdropPaddingX,O.size+2*v.backdropPaddingY)),f.fillStyle=B,f.fillText(Z,0,-q))}),f.restore()}},_drawTitle:we.noop});Qn._defaults=dt;var pa=we._deprecated,Wi=we.options.resolve,Pi=we.valueOrDefault,zi=Number.MIN_SAFE_INTEGER||-9007199254740991,er=Number.MAX_SAFE_INTEGER||9007199254740991,qi={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},sr=Object.keys(qi);function Sr(c,f){return c-f}function Ca(c){return we.valueOrDefault(c.time.min,c.ticks.min)}function Ua(c){return we.valueOrDefault(c.time.max,c.ticks.max)}function Aa(c,f,_,v){var T=function $i(c,f,_){for(var O,B,q,v=0,T=c.length-1;v>=0&&v<=T;){if(q=c[O=v+T>>1],!(B=c[O-1]||null))return{lo:null,hi:q};if(q[f]<_)v=O+1;else{if(!(B[f]>_))return{lo:B,hi:q};T=O-1}}return{lo:q,hi:null}}(c,f,_),O=T.lo?T.hi?T.lo:c[c.length-2]:c[0],B=T.lo?T.hi?T.hi:c[c.length-1]:c[1],q=B[f]-O[f];return O[v]+(B[v]-O[v])*(q?(_-O[f])/q:0)}function lr(c,f){var _=c._adapter,v=c.options.time,T=v.parser,O=T||v.format,B=f;return"function"==typeof T&&(B=T(B)),we.isFinite(B)||(B="string"==typeof O?_.parse(B,O):_.parse(B)),null!==B?+B:(!T&&"function"==typeof O&&(B=O(f),we.isFinite(B)||(B=_.parse(B))),B)}function Ds(c,f){if(we.isNullOrUndef(f))return null;var _=c.options.time,v=lr(c,c.getRightValue(f));return null===v||_.round&&(v=+c._adapter.startOf(v,_.round)),v}function Mr(c,f,_,v){var O,B,T=sr.length;for(O=sr.indexOf(c);O<T-1;++O)if((B=qi[sr[O]]).common&&Math.ceil((_-f)/((B.steps?B.steps:er)*B.size))<=v)return sr[O];return sr[T-1]}function $s(c,f,_){var B,q,v=[],T={},O=f.length;for(B=0;B<O;++B)T[q=f[B]]=B,v.push({value:q,major:!1});return 0!==O&&_?function Fo(c,f,_,v){var q,V,T=c._adapter,O=+T.startOf(f[0].value,v),B=f[f.length-1].value;for(q=O;q<=B;q=+T.add(q,1,v))(V=_[q])>=0&&(f[V].major=!0);return f}(c,v,T,_):v}var od=oe.extend({initialize:function(){this.mergeTicksOptions(),oe.prototype.initialize.call(this)},update:function(){var c=this,f=c.options,_=f.time||(f.time={}),v=c._adapter=new ct._date(f.adapters.date);
vendor: 14,067 bytes, line 1
1return pa("time scale",_.format,"time.format","time.parser"),pa("time scale",_.min,"time.min","ticks.min"),pa("time scale",_.max,"time.max","ticks.max"),we.mergeIf(_.displayFormats,v.formats()),oe.prototype.update.apply(c,arguments)},getRightValue:function(c){return c&&void 0!==c.t&&(c=c.t),oe.prototype.getRightValue.call(this,c)},determineDataLimits:function(){var ue,pe,je,ft,xt,St,zt,c=this,f=c.chart,_=c._adapter,v=c.options,T=v.time.unit||"day",O=er,B=zi,q=[],V=[],Z=[],Hn=c._getLabels();for(ue=0,je=Hn.length;ue<je;++ue)Z.push(Ds(c,Hn[ue]));for(ue=0,je=(f.data.datasets||[]).length;ue<je;++ue)if(f.isDatasetVisible(ue))if(we.isObject((xt=f.data.datasets[ue].data)[0]))for(V[ue]=[],pe=0,ft=xt.length;pe<ft;++pe)St=Ds(c,xt[pe]),q.push(St),V[ue][pe]=St;else V[ue]=Z.slice(0),zt||(q=q.concat(Z),zt=!0);else V[ue]=[];Z.length&&(O=Math.min(O,Z[0]),B=Math.max(B,Z[Z.length-1])),q.length&&(q=je>1?function Se(c){var v,T,O,f={},_=[];for(v=0,T=c.length;v<T;++v)f[O=c[v]]||(f[O]=!0,_.push(O));return _}(q).sort(Sr):q.sort(Sr),O=Math.min(O,q[0]),B=Math.max(B,q[q.length-1])),O=Ds(c,Ca(v))||O,B=Ds(c,Ua(v))||B,O=O===er?+_.startOf(Date.now(),T):O,B=B===zi?+_.endOf(Date.now(),T)+1:B,c.min=Math.min(O,B),c.max=Math.max(O+1,B),c._table=[],c._timestamps={data:q,datasets:V,labels:Z}},buildTicks:function(){var pe,je,ft,c=this,f=c.min,_=c.max,v=c.options,T=v.ticks,O=v.time,B=c._timestamps,q=[],V=c.getLabelCapacity(f),Z=T.source,ue=v.distribution;for(B="data"===Z||"auto"===Z&&"series"===ue?B.data:"labels"===Z?B.labels:function ha(c,f,_,v){var je,T=c._adapter,O=c.options,B=O.time,q=B.unit||Mr(B.minUnit,f,_,v),V=Wi([B.stepSize,B.unitStepSize,1]),Z="week"===q&&B.isoWeekday,ue=f,pe=[];if(Z&&(ue=+T.startOf(ue,"isoWeek",Z)),ue=+T.startOf(ue,Z?"day":q),T.diff(_,f,q)>1e5*V)throw f+" and "+_+" are too far apart with stepSize of "+V+" "+q;for(je=ue;je<_;je=+T.add(je,V,q))pe.push(je);return(je===_||"ticks"===O.bounds)&&pe.push(je),pe}(c,f,_,V),"ticks"===v.bounds&&B.length&&(f=B[0],_=B[B.length-1]),f=Ds(c,Ca(v))||f,_=Ds(c,Ua(v))||_,pe=0,je=B.length;pe<je;++pe)(ft=B[pe])>=f&&ft<=_&&q.push(ft);return c.min=f,c.max=_,c._unit=O.unit||(T.autoSkip?Mr(O.minUnit,c.min,c.max,V):function Zl(c,f,_,v,T){var O,B;for(O=sr.length-1;O>=sr.indexOf(_);O--)if(qi[B=sr[O]].common&&c._adapter.diff(T,v,B)>=f-1)return B;return sr[_?sr.indexOf(_):0]}(c,q.length,O.minUnit,c.min,c.max)),c._majorUnit=T.major.enabled&&"year"!==c._unit?function Kr(c){for(var f=sr.indexOf(c)+1,_=sr.length;f<_;++f)if(qi[sr[f]].common)return sr[f]}(c._unit):void 0,c._table=function Da(c,f,_,v){if("linear"===v||!c.length)return[{time:f,pos:0},{time:_,pos:1}];var B,q,V,Z,ue,T=[],O=[f];for(B=0,q=c.length;B<q;++B)(Z=c[B])>f&&Z<_&&O.push(Z);for(O.push(_),B=0,q=O.length;B<q;++B)ue=O[B+1],Z=O[B],(void 0===(V=O[B-1])||void 0===ue||Math.round((ue+V)/2)!==Z)&&T.push({time:Z,pos:B/(q-1)});return T}(c._timestamps.data,f,_,ue),c._offsets=function Ws(c,f,_,v,T){var q,V,O=0,B=0;return T.offset&&f.length&&(q=Aa(c,"time",f[0],"pos"),O=1===f.length?1-q:(Aa(c,"time",f[1],"pos")-q)/2,V=Aa(c,"time",f[f.length-1],"pos"),B=1===f.length?V:(V-Aa(c,"time",f[f.length-2],"pos"))/2),{start:O,end:B,factor:1/(O+1+B)}}(c._table,q,0,0,v),T.reverse&&q.reverse(),$s(c,q,c._majorUnit)},getLabelForIndex:function(c,f){var _=this,v=_._adapter,T=_.chart.data,O=_.options.time,B=T.labels&&c<T.labels.length?T.labels[c]:"",q=T.datasets[f].data[c];return we.isObject(q)&&(B=_.getRightValue(q)),O.tooltipFormat?v.format(lr(_,B),O.tooltipFormat):"string"==typeof B?B:v.format(lr(_,B),O.displayFormats.datetime)},tickFormatFunction:function(c,f,_,v){var T=this,B=T.options,q=B.time.displayFormats,Z=T._majorUnit,ue=q[Z],pe=_[f],je=B.ticks,ft=Z&&ue&&pe&&pe.major,xt=T._adapter.format(c,v||(ft?ue:q[T._unit])),St=ft?je.major:je.minor,zt=Wi([St.callback,St.userCallback,je.callback,je.userCallback]);return zt?zt(xt,f,_):xt},convertTicksToLabels:function(c){var _,v,f=[];for(_=0,v=c.length;_<v;++_)f.push(this.tickFormatFunction(c[_].value,_,c));return f},getPixelForOffset:function(c){var f=this,_=f._offsets,v=Aa(f._table,"time",c,"pos");return f.getPixelForDecimal((_.start+v)*_.factor)},getPixelForValue:function(c,f,_){var v=this,T=null;if(void 0!==f&&void 0!==_&&(T=v._timestamps.datasets[_][f]),null===T&&(T=Ds(v,c)),null!==T)return v.getPixelForOffset(T)},getPixelForTick:function(c){var f=this.getTicks();return c>=0&&c<f.length?this.getPixelForOffset(f[c].value):null},getValueForPixel:function(c){var f=this,_=f._offsets,v=f.getDecimalForPixel(c)/_.factor-_.end,T=Aa(f._table,"pos",v,"time");return f._adapter._create(T)},_getLabelSize:function(c){var f=this,_=f.options.ticks,v=f.ctx.measureText(c).width,T=we.toRadians(f.isHorizontal()?_.maxRotation:_.minRotation),O=Math.cos(T),B=Math.sin(T),q=Pi(_.fontSize,kr.global.defaultFontSize);return{w:v*O+q*B,h:v*B+q*O}},getLabelWidth:function(c){return this._getLabelSize(c).w},getLabelCapacity:function(c){var f=this,_=f.options.time,v=_.displayFormats,T=v[_.unit]||v.millisecond,O=f.tickFormatFunction(c,0,$s(f,[c],f._majorUnit),T),B=f._getLabelSize(O),q=Math.floor(f.isHorizontal()?f.width/B.w:f.height/B.h);return f.options.offset&&q--,q>0?q:1}});od._defaults={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};var js={category:ht,linear:$e,logarithmic:oi,radialLinear:Qn,time:od},qr={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};ct._date.override("function"==typeof E?{_id:"moment",formats:function(){return qr},parse:function(c,f){return"string"==typeof c&&"string"==typeof f?c=E(c,f):c instanceof E||(c=E(c)),c.isValid()?c.valueOf():null},format:function(c,f){return E(c).format(f)},add:function(c,f,_){return E(c).add(f,_).valueOf()},diff:function(c,f,_){return E(c).diff(E(f),_)},startOf:function(c,f,_){return c=E(c),"isoWeek"===f?c.isoWeekday(_).valueOf():c.startOf(f).valueOf()},endOf:function(c,f){return E(c).endOf(f).valueOf()},_create:function(c){return E(c)}}:{}),kr._set("global",{plugins:{filler:{propagate:!0}}});var ja={dataset:function(c){var f=c.fill,_=c.chart,v=_.getDatasetMeta(f),O=v&&_.isDatasetVisible(f)&&v.dataset._children||[],B=O.length||0;return B?function(q,V){return V<B&&O[V]._view||null}:null},boundary:function(c){var f=c.boundary,_=f?f.x:null,v=f?f.y:null;return we.isArray(f)?function(T,O){return f[O]}:function(T){return{x:null===_?T.x:_,y:null===v?T.y:v}}}};function ts(c,f,_){var O,v=c._model||{},T=v.fill;if(void 0===T&&(T=!!v.backgroundColor),!1===T||null===T)return!1;if(!0===T)return"origin";if(O=parseFloat(T,10),isFinite(O)&&Math.floor(O)===O)return("-"===T[0]||"+"===T[0])&&(O=f+O),!(O===f||O<0||O>=_)&&O;switch(T){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return T;default:return!1}}function Qd(c){return(c.el._scale||{}).getPointPositionForValue?function Zd(c){var B,q,V,Z,ue,f=c.el._scale,_=f.options,v=f.chart.data.labels.length,T=c.fill,O=[];if(!v)return null;for(q=_.ticks.reverse?f.min:f.max,V=f.getPointPositionForValue(0,B=_.ticks.reverse?f.max:f.min),Z=0;Z<v;++Z)ue="start"===T||"end"===T?f.getPointPositionForValue(Z,"start"===T?B:q):f.getBasePosition(Z),_.gridLines.circular&&(ue.cx=V.x,ue.cy=V.y,ue.angle=f.getIndexAngle(Z)-Math.PI/2),O.push(ue);return O}(c):function Io(c){var O,f=c.el._model||{},_=c.el._scale||{},v=c.fill,T=null;if(isFinite(v))return null;if("start"===v?T=void 0===f.scaleBottom?_.bottom:f.scaleBottom:"end"===v?T=void 0===f.scaleTop?_.top:f.scaleTop:void 0!==f.scaleZero?T=f.scaleZero:_.getBasePixel&&(T=_.getBasePixel()),null!=T){if(void 0!==T.x&&void 0!==T.y)return T;if(we.isFinite(T))return{x:(O=_.isHorizontal())?T:null,y:O?null:T}}return null}(c)}function Ii(c,f,_){var B,T=c[f].fill,O=[f];if(!_)return T;for(;!1!==T&&-1===O.indexOf(T);){if(!isFinite(T))return T;if(!(B=c[T]))return!1;if(B.visible)return T;O.push(T),T=B.fill}return!1}function yl(c){var f=c.fill,_="dataset";return!1===f?null:(isFinite(f)||(_="boundary"),ja[_](c))}function Cd(c){return c&&!c.skip}function Cl(c,f,_,v,T){var O,B,q,V;if(v&&T){for(c.moveTo(f[0].x,f[0].y),O=1;O<v;++O)we.canvas.lineTo(c,f[O-1],f[O]);if(void 0!==_[0].angle){for(B=_[0].cx,q=_[0].cy,V=Math.sqrt(Math.pow(_[0].x-B,2)+Math.pow(_[0].y-q,2)),O=T-1;O>0;--O)c.arc(B,q,V,_[O].angle,_[O-1].angle,!0);return}for(c.lineTo(_[T-1].x,_[T-1].y),O=T-1;O>0;--O)we.canvas.lineTo(c,_[O],_[O-1],!0)}}function Gr(c,f,_,v,T,O){var je,ft,xt,St,zt,Hn,_n,Ui,B=f.length,q=v.spanGaps,V=[],Z=[],ue=0,pe=0;for(c.beginPath(),je=0,ft=B;je<ft;++je)zt=_(St=f[xt=je%B]._view,xt,v),Hn=Cd(St),_n=Cd(zt),O&&void 0===Ui&&Hn&&(ft=B+(Ui=je+1)),Hn&&_n?(ue=V.push(St),pe=Z.push(zt)):ue&&pe&&(q?(Hn&&V.push(St),_n&&Z.push(zt)):(Cl(c,V,Z,ue,pe),ue=pe=0,V=[],Z=[]));Cl(c,V,Z,ue,pe),c.closePath(),c.fillStyle=T,c.fill()}var cl={id:"filler",afterDatasetsUpdate:function(c,f){var O,B,q,V,_=(c.data.datasets||[]).length,v=f.propagate,T=[];for(B=0;B<_;++B)V=null,(q=(O=c.getDatasetMeta(B)).dataset)&&q._model&&q instanceof Sa.Line&&(V={visible:c.isDatasetVisible(B),fill:ts(q,B,_),chart:c,el:q}),O.$filler=V,T.push(V);for(B=0;B<_;++B)(V=T[B])&&(V.fill=Ii(T,B,v),V.boundary=Qd(V),V.mapper=yl(V))},beforeDatasetsDraw:function(c){var v,T,O,B,q,V,Z,f=c._getSortedVisibleDatasetMetas(),_=c.ctx;for(T=f.length-1;T>=0;--T)(v=f[T].$filler)&&v.visible&&(q=(O=v.el)._children||[],Z=(B=O._view).backgroundColor||kr.global.defaultColor,(V=v.mapper)&&Z&&q.length&&(we.canvas.clipArea(_,c.chartArea),Gr(_,q,V,B,Z,O._loop),we.canvas.unclipArea(_)))}},Cc=we.rtl.getRtlAdapter,qs=we.noop,Ao=we.valueOrDefault;function kd(c,f){return c.usePointStyle&&c.boxWidth>f?f:c.boxWidth}kr._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(c,f){var _=f.datasetIndex,v=this.chart,T=v.getDatasetMeta(_);T.hidden=null===T.hidden?!v.data.datasets[_].hidden:null,v.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(c){var f=c.data.datasets,_=c.options.legend||{},v=_.labels&&_.labels.usePointStyle;return c._getSortedDatasetMetas().map(function(T){var O=T.controller.getStyle(v?0:void 0);return{text:f[T.index].label,fillStyle:O.backgroundColor,hidden:!c.isDatasetVisible(T.index),lineCap:O.borderCapStyle,lineDash:O.borderDash,lineDashOffset:O.borderDashOffset,lineJoin:O.borderJoinStyle,lineWidth:O.borderWidth,strokeStyle:O.borderColor,pointStyle:O.pointStyle,rotation:O.rotation,datasetIndex:T.index}},this)}}},legendCallback:function(c){var v,T,O,f=document.createElement("ul"),_=c.data.datasets;for(f.setAttribute("class",c.id+"-legend"),v=0,T=_.length;v<T;v++)(O=f.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=_[v].backgroundColor,_[v].label&&O.appendChild(document.createTextNode(_[v].label));return f.outerHTML}});var sd=Es.extend({initialize:function(c){var f=this;we.extend(f,c),f.legendHitBoxes=[],f._hoveredItem=null,f.doughnutMode=!1},beforeUpdate:qs,update:function(c,f,_){var v=this;return v.beforeUpdate(),v.maxWidth=c,v.maxHeight=f,v.margins=_,v.beforeSetDimensions(),v.setDimensions(),v.afterSetDimensions(),v.beforeBuildLabels(),v.buildLabels(),v.afterBuildLabels(),v.beforeFit(),v.fit(),v.afterFit(),v.afterUpdate(),v.minSize},afterUpdate:qs,beforeSetDimensions:qs,setDimensions:function(){var c=this;c.isHorizontal()?(c.width=c.maxWidth,c.left=0,c.right=c.width):(c.height=c.maxHeight,c.top=0,c.bottom=c.height),c.paddingLeft=0,c.paddingTop=0,c.paddingRight=0,c.paddingBottom=0,c.minSize={width:0,height:0}},afterSetDimensions:qs,beforeBuildLabels:qs,buildLabels:function(){var c=this,f=c.options.labels||{},_=we.callback(f.generateLabels,[c.chart],c)||[];f.filter&&(_=_.filter(function(v){return f.filter(v,c.chart.data)})),c.options.reverse&&_.reverse(),c.legendItems=_},afterBuildLabels:qs,beforeFit:qs,fit:function(){var c=this,f=c.options,_=f.labels,v=f.display,T=c.ctx,O=we.options._parseFont(_),B=O.size,q=c.legendHitBoxes=[],V=c.minSize,Z=c.isHorizontal();if(Z?(V.width=c.maxWidth,V.height=v?10:0):(V.width=v?10:0,V.height=c.maxHeight),v){if(T.font=O.string,Z){var ue=c.lineWidths=[0],pe=0;T.textAlign="left",T.textBaseline="middle",we.each(c.legendItems,function(_n,Ui){var la=kd(_,B)+B/2+T.measureText(_n.text).width;(0===Ui||ue[ue.length-1]+la+2*_.padding>V.width)&&(pe+=B+_.padding,ue[ue.length-(Ui>0?0:1)]=0),q[Ui]={left:0,top:0,width:la,height:B},ue[ue.length-1]+=la+_.padding}),V.height+=pe}else{var je=_.padding,ft=c.columnWidths=[],xt=c.columnHeights=[],St=_.padding,zt=0,Hn=0;we.each(c.legendItems,function(_n,Ui){var la=kd(_,B)+B/2+T.measureText(_n.text).width;Ui>0&&Hn+B+2*je>V.height&&(St+=zt+_.padding,ft.push(zt),xt.push(Hn),zt=0,Hn=0),zt=Math.max(zt,la),Hn+=B+je,q[Ui]={left:0,top:0,width:la,height:B}}),St+=zt,ft.push(zt),xt.push(Hn),V.width+=St}c.width=V.width,c.height=V.height}else c.width=V.width=c.height=V.height=0},afterFit:qs,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var c=this,f=c.options,_=f.labels,v=kr.global,T=v.defaultColor,O=v.elements.line,B=c.height,q=c.columnHeights,V=c.width,Z=c.lineWidths;if(f.display){var St,ue=Cc(f.rtl,c.left,c.minSize.width),pe=c.ctx,je=Ao(_.fontColor,v.defaultFontColor),ft=we.options._parseFont(_),xt=ft.size;pe.textAlign=ue.textAlign("left"),pe.textBaseline="middle",pe.lineWidth=.5,pe.strokeStyle=je,pe.fillStyle=je,pe.font=ft.string;var zt=kd(_,xt),Hn=c.legendHitBoxes,ma=function(Or,Ga){switch(f.align){case"start":return _.padding;case"end":return Or-Ga;default:return(Or-Ga+_.padding)/2}},la=c.isHorizontal();St=la?{x:c.left+ma(V,Z[0]),y:c.top+_.padding,line:0}:{x:c.left+_.padding,y:c.top+ma(B,q[0]),line:0},we.rtl.overrideTextDirection(c.ctx,f.textDirection);var La=xt+_.padding;we.each(c.legendItems,function(Or,Ga){var ka=pe.measureText(Or.text).width,gs=zt+xt/2+ka,Rs=St.x,Fs=St.y;ue.setWidth(c.minSize.width),la?Ga>
10&&Rs+gs+_.padding>c.left+c.minSize.width&&(Fs=St.y+=La,St.line++,Rs=St.x=c.left+ma(V,Z[St.line])):Ga>0&&Fs+La>c.top+c.minSize.height&&(Rs=St.x=Rs+c.columnWidths[St.line]+_.padding,St.line++,Fs=St.y=c.top+ma(B,q[St.line]));var ns=ue.x(Rs);(function(Or,Ga,ka){if(!(isNaN(zt)||zt<=0)){pe.save();var gs=Ao(ka.lineWidth,O.borderWidth);if(pe.fillStyle=Ao(ka.fillStyle,T),pe.lineCap=Ao(ka.lineCap,O.borderCapStyle),pe.lineDashOffset=Ao(ka.lineDashOffset,O.borderDashOffset),pe.lineJoin=Ao(ka.lineJoin,O.borderJoinStyle),pe.lineWidth=gs,pe.strokeStyle=Ao(ka.strokeStyle,T),pe.setLineDash&&pe.setLineDash(Ao(ka.lineDash,O.borderDash)),_&&_.usePointStyle){var Rs=zt*Math.SQRT2/2,Fs=ue.xPlus(Or,zt/2);we.canvas.drawPoint(pe,ka.pointStyle,Rs,Fs,Ga+xt/2,ka.rotation)}else pe.fillRect(ue.leftForLtr(Or,zt),Ga,zt,xt),0!==gs&&pe.strokeRect(ue.leftForLtr(Or,zt),Ga,zt,xt);pe.restore()}})(ns,Fs,Or),Hn[Ga].left=ue.leftForLtr(ns,Hn[Ga].width),Hn[Ga].top=Fs,function(Or,Ga,ka,gs){var Rs=xt/2,Fs=ue.xPlus(Or,zt+Rs),ns=Ga+Rs;pe.fillText(ka.text,Fs,ns),ka.hidden&&(pe.beginPath(),pe.lineWidth=2,pe.moveTo(Fs,ns),pe.lineTo(ue.xPlus(Fs,gs
vendor: 6,204 bytes, line 1
1),ns),pe.stroke())}(ns,Fs,Or,ka),la?St.x+=gs+_.padding:St.y+=La}),we.rtl.restoreTextDirection(c.ctx,f.textDirection)}},_getLegendItemAt:function(c,f){var v,T,O,_=this;if(c>=_.left&&c<=_.right&&f>=_.top&&f<=_.bottom)for(O=_.legendHitBoxes,v=0;v<O.length;++v)if(c>=(T=O[v]).left&&c<=T.left+T.width&&f>=T.top&&f<=T.top+T.height)return _.legendItems[v];return null},handleEvent:function(c){var T,f=this,_=f.options,v="mouseup"===c.type?"click":c.type;if("mousemove"===v){if(!_.onHover&&!_.onLeave)return}else{if("click"!==v)return;if(!_.onClick)return}T=f._getLegendItemAt(c.x,c.y),"click"===v?T&&_.onClick&&_.onClick.call(f,c.native,T):(_.onLeave&&T!==f._hoveredItem&&(f._hoveredItem&&_.onLeave.call(f,c.native,f._hoveredItem),f._hoveredItem=T),_.onHover&&T&&_.onHover.call(f,c.native,T))}});function Xr(c,f){var _=new sd({ctx:c.ctx,options:f,chart:c});w.configure(c,_,f),w.addBox(c,_),c.legend=_}var kl={id:"legend",_element:sd,beforeInit:function(c){var f=c.options.legend;f&&Xr(c,f)},beforeUpdate:function(c){var f=c.options.legend,_=c.legend;f?(we.mergeIf(f,kr.global.legend),_?(w.configure(c,_,f),_.options=f):Xr(c,f)):_&&(w.removeBox(c,_),delete c.legend)},afterEvent:function(c,f){var _=c.legend;_&&_.handleEvent(f)}},dl=we.noop;kr._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Ql=Es.extend({initialize:function(c){we.extend(this,c),this.legendHitBoxes=[]},beforeUpdate:dl,update:function(c,f,_){var v=this;return v.beforeUpdate(),v.maxWidth=c,v.maxHeight=f,v.margins=_,v.beforeSetDimensions(),v.setDimensions(),v.afterSetDimensions(),v.beforeBuildLabels(),v.buildLabels(),v.afterBuildLabels(),v.beforeFit(),v.fit(),v.afterFit(),v.afterUpdate(),v.minSize},afterUpdate:dl,beforeSetDimensions:dl,setDimensions:function(){var c=this;c.isHorizontal()?(c.width=c.maxWidth,c.left=0,c.right=c.width):(c.height=c.maxHeight,c.top=0,c.bottom=c.height),c.paddingLeft=0,c.paddingTop=0,c.paddingRight=0,c.paddingBottom=0,c.minSize={width:0,height:0}},afterSetDimensions:dl,beforeBuildLabels:dl,buildLabels:dl,afterBuildLabels:dl,beforeFit:dl,fit:function(){var O,c=this,f=c.options,_=c.minSize={},v=c.isHorizontal();f.display?(O=(we.isArray(f.text)?f.text.length:1)*we.options._parseFont(f).lineHeight+2*f.padding,c.width=_.width=v?c.maxWidth:O,c.height=_.height=v?O:c.maxHeight):c.width=_.width=c.height=_.height=0},afterFit:dl,isHorizontal:function(){var c=this.options.position;return"top"===c||"bottom"===c},draw:function(){var c=this,f=c.ctx,_=c.options;if(_.display){var pe,je,ft,v=we.options._parseFont(_),T=v.lineHeight,O=T/2+_.padding,B=0,q=c.top,V=c.left,Z=c.bottom,ue=c.right;f.fillStyle=we.valueOrDefault(_.fontColor,kr.global.defaultFontColor),f.font=v.string,c.isHorizontal()?(je=V+(ue-V)/2,ft=q+O,pe=ue-V):(je="left"===_.position?V+O:ue-O,ft=q+(Z-q)/2,pe=Z-q,B=Math.PI*("left"===_.position?-.5:.5)),f.save(),f.translate(je,ft),f.rotate(B),f.textAlign="center",f.textBaseline="middle";var xt=_.text;if(we.isArray(xt))for(var St=0,zt=0;zt<xt.length;++zt)f.fillText(xt[zt],0,St,pe),St+=T;else f.fillText(xt,0,0,pe);f.restore()}}});function Ra(c,f){var _=new Ql({ctx:c.ctx,options:f,chart:c});w.configure(c,_,f),w.addBox(c,_),c.titleBlock=_}var kc={},Ja=cl,Vu=kl,Rl={id:"title",_element:Ql,beforeInit:function(c){var f=c.options.title;f&&Ra(c,f)},beforeUpdate:function(c){var f=c.options.title,_=c.titleBlock;f?(we.mergeIf(f,kr.global.title),_?(w.configure(c,_,f),_.options=f):Ra(c,f)):_&&(w.removeBox(c,_),delete c.titleBlock)}};for(var wd in kc.filler=Ja,kc.legend=Vu,kc.title=Rl,ea.helpers=we,function(){function c(v,T,O){var B;return"string"==typeof v?(B=parseInt(v,10),-1!==v.indexOf("%")&&(B=B/100*T.parentNode[O])):B=v,B}function f(v){return null!=v&&"none"!==v}function _(v,T,O){var B=document.defaultView,q=we._getParentNode(v),V=B.getComputedStyle(v)[T],Z=B.getComputedStyle(q)[T],ue=f(V),pe=f(Z),je=Number.POSITIVE_INFINITY;return ue||pe?Math.min(ue?c(V,v,O):je,pe?c(Z,q,O):je):"none"}we.where=function(v,T){if(we.isArray(v)&&Array.prototype.filter)return v.filter(T);var O=[];return we.each(v,function(B){T(B)&&O.push(B)}),O},we.findIndex=Array.prototype.findIndex?function(v,T,O){return v.findIndex(T,O)}:function(v,T,O){O=void 0===O?v:O;for(var B=0,q=v.length;B<q;++B)if(T.call(O,v[B],B,v))return B;return-1},we.findNextWhere=function(v,T,O){we.isNullOrUndef(O)&&(O=-1);for(var B=O+1;B<v.length;B++){var q=v[B];if(T(q))return q}},we.findPreviousWhere=function(v,T,O){we.isNullOrUndef(O)&&(O=v.length);for(var B=O-1;B>=0;B--){var q=v[B];if(T(q))return q}},we.isNumber=function(v){return!isNaN(parseFloat(v))&&isFinite(v)},we.almostEquals=function(v,T,O){return Math.abs(v-T)<O},we.almostWhole=function(v,T){var O=Math.round(v);return O-T<=v&&O+T>=v},we.max=function(v){return v.reduce(function(T,O){return isNaN(O)?T:Math.max(T,O)},Number.NEGATIVE_INFINITY)},we.min=function(v){return v.reduce(function(T,O){return isNaN(O)?T:Math.min(T,O)},Number.POSITIVE_INFINITY)},we.sign=Math.sign?function(v){return Math.sign(v)}:function(v){return 0==(v=+v)||isNaN(v)?v:v>0?1:-1},we.toRadians=function(v){return v*(Math.PI/180)},we.toDegrees=function(v){return v*(180/Math.PI)},we._decimalPlaces=function(v){if(we.isFinite(v)){for(var T=1,O=0;Math.round(v*T)/T!==v;)T*=10,O++;return O}},we.getAngleFromPoint=function(v,T){var O=T.x-v.x,B=T.y-v.y,q=Math.sqrt(O*O+B*B),V=Math.atan2(B,O);return V<-.5*Math.PI&&(V+=2*Math.PI),{angle:V,distance:q}},we.distanceBetweenPoints=function(v,T){return Math.sqrt(Math.pow(T.x-v.x,2)+Math.pow(T.y-v.y,2))},we.aliasPixel=function(v){return v%2==0?0:.5},we._alignPixel=function(v,T,O){var B=v.currentDevicePixelRatio,q=O/2;return Math.round((T-q)*B)/B+q},we.splineCurve=function(v,T,O,B){var q=v.skip?T:v,V=T,Z=O.skip?T:O,ue=Math.sqrt(Math.pow(V.x-q.x,2)+Math.pow(V.y-q.y,2)),pe=Math.sqrt(Math.pow(Z.x-V.x,2)+Math.pow(Z.y-V.y,2)),je=ue/(ue+pe),ft=pe/(ue+pe),xt=B*(je=isNaN(je)?0:je),St=B*(ft=isNaN(ft)?0:ft);return{previous:{x:V.x-xt*(Z.x-q.x),y:V.y-xt*(Z.y-q.y)},next:{x:V.x+St*(Z.x-q.x),y:V.y+St*(Z.y-q.y)}}},we.EPSILON=Number.EPSILON||1e-14,we.splineCurveMonotone=function(v){var B,q,V,Z,pe,je,ft,xt,St,T=(v||[]).map(function(zt){return{model:zt._model,deltaK:0,mK:0}}),O=T.length;for(B=0;B<O;
1++B)if(!(V=T[B]).model.skip){if(q=B>0?T[B-1]:null,(Z=B<O-1?T[B+1]:null)&&!Z.model.skip){var ue=Z.model.x-V.model.x;V.deltaK=0!==ue?(Z.model.y-V.model.y)/ue:0}V.mK=!q||q.model.skip?V.deltaK:!Z||Z.model.skip?q.deltaK:this.sign(q.deltaK)!==this.sign(V.deltaK)?0:(q.deltaK+V.deltaK)/2}for(B=0;B<O-1;++B)if(Z=T[B+1],!(V=T[B]).model.skip&&!Z.model.skip){if(we.almostEquals(V.deltaK,0,this.EPSILON)){V.mK=Z.mK=0;continue}pe=V.mK/V.deltaK,je=Z.mK/V.deltaK,!((xt=Math.pow(pe,2)+Math.pow(je,2))<=9)&&(ft=3/Math.sqrt(xt),V.mK=pe*ft*V.deltaK,Z.mK=je*ft*V.deltaK)}for(B=0;B<O;++B)!(V=T[B]).model.skip&&(Z=B<O-1?T[B+1]:null,(q=B>0?T[B-1]:null)&&!q.model.skip&&(V.model.controlPointPreviousX=V.model.x-(St=(V.model.x-q.model.x)/3),V.model.controlPointPreviousY=V.model.y-St*V.mK),Z&&!Z.model.skip&&(V.model.controlPointNextX=V.model.x+(St=(Z.model.x-V.model.x)/3),V.model.controlPointNextY=V.model.y+St*V.mK))},we.nextItem=function(v,T,O){return O?T>=v.length-1?v[0]:v[T+1]:T>=v.length-1?v[v.length-1]:v[T+1]},we.previousItem=function(v,T,O){return O?T<=0?v[v.length-1]:v[T-1]:T<=0?v[0]:v[T-1]},we.niceNum=function(v,T){var O=Math.floor(we.log10(v)),B=v/Math.pow(10,O);return(T?B<1.5?1:B<3?2:B<7?5:10:B<=1?1:B<=2?2:B<=5?5:10)*Math.pow(10,O)},we.requestAnimFrame=typeof window>"u"?function(v){v()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(v){return window.setTimeout(v,1e3/60)},we.getRelativePosition=function(v,T){var O,B,q=v.originalEvent||v,V=v.target||v.srcElement,Z=V.getBoundingClientRect(),ue=q.touches;ue&&ue.length>0?(O=ue[0].clientX,B=ue[0].clientY):(O=q.clientX,B=q.clientY);var pe=parseFloat(we.getStyle(V,"padding-left")),je=parseFloat(we.getStyle(V,"padding-top")),ft=parseFloat(we.getStyle(V,"padding-right")),xt=parseFloat(we.getStyle(V,"padding-bottom")),zt=Z.bottom-Z.top-je-xt;return{x:O=Math.round((O-Z.left-pe)/(Z.right-Z.left-pe-ft)*V.width/T.currentDevicePixelRatio),y:B=Math.round((B-Z.top-je)/zt*V.height/T.currentDevicePixelRatio)}},we.getConstraintWidth=function(v){return _(v,"max-width","clientWidth")},we.getConstraintHeight=function(v){return _(v,"max-height","clientHeight")},we._calculatePadding=function(v,T,O){return(T=we.getStyle(v,T)).indexOf("%")>-1?O*parseInt(T,10)/100:parseInt(T,10)},we._getParentNode=function(v){var T=v.parentNode;return T&&"[object ShadowRoot]"===T.toString()&&(T=T.host),T},we.getMaximumWidth=function(v){var T=we._getParentNode(v);if(!T)return v.clientWidth;var O=T.clientWidth,V=O-we._calculatePadding(T,"padding-left",O)-we._calculatePadding(T,"padding-right",O),Z=we.getConstraintWidth(v);return isNaN(Z)?V:Math.min(V,Z)},we.getMaximumHeight=function(v){var T=we._getParentNode(v);if(!T)return v.clientHeight;var O=T.clientHeight,V=O-we._calculatePadding(T,"padding-top",O)-we._calculatePadding(T,"padding-bottom",O),Z=we.getConstraintHeight(v);return isNaN(Z)?V:Math.min(V,Z)},we.getStyle=function(v,T){return v.currentStyle?v.currentStyle[T]:document.defaultView.getComputedStyle(v,null).getPropertyValue(T)},we.retinaScale=function(v,T){var O=v.currentDevicePixelRatio=T||typeof window<"u"&&window.devicePixelRatio||1;if(1!==O){var B=v.canvas,q=v.height,V=v.width;B.height=q*O,B.width=V*O,v.ctx.scale(O,O),!B.style.height&&!B.style.width&&(B.style.height=q+"px",B.style.width=V+"px")}},we.fontString=function(v,T,O){return T+" "+v+"px "+O},we.longestText=function(v,T,O,B){var q=(B=B||{}).data=B.data||{},V=B.garbageCollect=B.garbageCollect||[];B.font!==T&&(q=B.data={},V=B.garbageCollect=[],B.font=T),v.font=T;var pe,je,ft,xt,St,Z=0,ue=O.length;for(pe=0;pe<ue;pe++)if(null!=(xt=O[pe])&&!0!==we.isArray(xt))Z=we.measureText(v,q,V,Z,xt);else if(we.isArray(xt))for(je=0,ft=xt.length;je<ft;je++)null!=(St=xt[je])&&!we.isArray(St)&&(Z=we.measureText(v,q,V,Z,St));var zt=V.length/2;if(zt>O.length){for(pe=0;pe<zt;pe++)delete q[V[pe]];V.splice(0,zt)}return Z},we.measureText=function(v,T,O,B,q){var V=T[q];return V||(V=T[q]=v.measureText(q).width,O.push(q)),V>B&&(B=V),B},we.numberOfLabelLines=function(v){var T=1;return we.each(v,function(O){we.isArray(O)&&O.length>T&&(T=O.length)}),T},we.color=fs?function(v){return v instanceof CanvasGradient&&(v=kr.global.defaultColor),fs(v)}:function(v){return console.error("Color.js not found!"),v},we.getHoverColor=function(v){return v instanceof CanvasPattern||v instanceof CanvasGradient?v:we.color(v).saturate(.5).darken(.1).rgbString()}}(),ea._adapters=ct,ea.Animation=du,ea.animationService=Yd,ea.controllers=Hl,ea.DatasetController=Qo,ea.defaults=kr,ea.Element=Es,ea.elements=Sa,ea.Interaction=Oo,ea.layouts=w,ea.platform=ia,ea.plugins=qa,ea.Scale=oe,ea.scaleService=Ma,ea.Ticks=rn,ea.Tooltip=df,ea.helpers.each(js,function(c,f){ea.scaleService.registerScaleType(f,c,c._defaults)}),kc)kc.hasOwnProperty(wd)&&ea.plugins.register(kc[wd]);ea.platform.initialize();var hu=ea;return typeof window<"u"&&(window.Chart=ea),ea.Chart=ea,ea.Legend=kc.legend._element,ea.Title=kc.title._element,ea.pluginService=ea.plugins,ea.PluginBase=ea.Element.extend({}),ea.canvasHelpers=ea.helpers.canvas,ea.layoutService=ea.layouts,ea.LinearScaleBase=An,ea.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(c){ea[c]=function(f,_){return new ea(f,ea.helpers.merge(_||{},{type:c.charAt(0).toLowerCase()+c.slice(1)}))}}),hu}(function(){try{return bn(97586)}catch{}}())},2578:function(ys,Ha){var bn,Ie;void 0!==(Ie="function"==typeof(bn=function(){"use strict";function ie(qe,Ot,Pn){var wt=new XMLHttpRequest;wt.open("GET",qe),wt.responseType="blob",wt.onload=function(){Tn(wt.response,Ot,Pn)},wt.onerror=function(){console.error("could not download file")},wt.send()}function Bi(qe){var Ot=new XMLHttpRequest;Ot.open("HEAD",qe,!1);try{Ot.send()}catch{}return 200<=Ot.status&&299>=Ot.status}function u(qe){try{qe.dispatchEvent(new MouseEvent("click"))}catch{var Ot=document.createEvent("MouseEvents");
1Ot.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),qe.dispatchEvent(Ot)}}var tn="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,e=tn.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),Tn=tn.saveAs||("object"!=typeof window||window!==tn?function(){}:"download"in HTMLAnchorElement.prototype&&!e?function(qe,Ot,Pn){var wt=tn.URL||tn.webkitURL,Wn=document.createElement("a");Wn.download=Ot=Ot||qe.name||"download",Wn.rel="noopener","string"==typeof qe?(Wn.href=qe,Wn.origin===location.origin?u(Wn):Bi(Wn.href)?ie(qe,Ot,Pn):u(Wn,Wn.target="_blank")):(Wn.href=wt.createObjectURL(qe),setTimeout(function(){wt.revokeObjectURL(Wn.href)},4e4),setTimeout(function(){u(Wn)},0))}:"msSaveOrOpenBlob"in navigator?function(qe,Ot,Pn){if(Ot=Ot||qe.name||"download","string"!=typeof qe)navigator.msSaveOrOpenBlob(function xi(qe,Ot){return typeof Ot>"u"?Ot={autoBom:!1}:"object"!=typeof Ot&&(console.warn("Deprecated: Expected third argument to be a object"),Ot={autoBom:!Ot}),Ot.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(qe.type)?new Blob(["\ufeff",qe],{type:qe.type}):qe}(qe,Pn),Ot);else if(Bi(qe))ie(qe,Ot,Pn);else{var wt=document.createElement("a");wt.href=qe,wt.target="_blank",setTimeout(function(){u(wt)})}}:function(qe,Ot,Pn,wt){if((wt=wt||open("","_blank"))&&(wt.document.title=wt.document.body.innerText="downloading..."),"string"==typeof qe)return ie(qe,Ot,Pn);var Wn="application/octet-stream"===qe.type,Pt=/constructor/i.test(tn.HTMLElement)||tn.safari,Mt=/CriOS\/[\d]+/.test(navigator.userAgent);if((Mt||Wn&&Pt||e)&&typeof FileReader<"u"){var Dt=new FileReader;Dt.onloadend=function(){var dn=Dt.result;dn=Mt?dn:dn.replace(/^data:[^;]*;/,"data:attachment/file;"),wt?wt.location.href=dn:location=dn,wt=null},Dt.readAsDataURL(qe)}else{var Fe=tn.URL||tn.webkitURL,$t=Fe.createObjectURL(qe);wt?wt.location=$t:location.href=$t,wt=null,setTimeout(function(){Fe.revokeObjectURL($t)},4e4)}});tn.saveAs=Tn.saveAs=Tn,ys.exports=Tn})?bn.apply(Ha,[]):bn)&&(ys.exports=Ie)},51653:function(ys,Ha){var E;!function(Ie,xi){"use strict";"object"==typeof ys.exports?ys.exports=Ie.document?xi(Ie,!0):function(ie){if(!ie.document)throw new Error("jQuery requires a window with a document");return xi(ie)}:xi(Ie)}(typeof window<"u"?window:this,function(Ie,xi){"use strict";var ie=[],Bi=Object.getPrototypeOf,u=ie.slice,tn=ie.flat?function(w){return ie.flat.call(w)}:function(w){return ie.concat.apply([],w)},e=ie.push,Tn=ie.indexOf,qe={},Ot=qe.toString,Pn=qe.hasOwnProperty,wt=Pn.toString,Wn=wt.call(Object),Pt={},Mt=function(I){return"function"==typeof I&&"number"!=typeof I.nodeType&&"function"!=typeof I.item},Dt=function(I){return null!=I&&I===I.window},Fe=Ie.document,$t={type:!0,src:!0,nonce:!0,noModule:!0};function dn(w,I,H){var Q,_e,he=(H=H||Fe).createElement("script");if(he.text=w,I)for(Q in $t)(_e=I[Q]||I.getAttribute&&I.getAttribute(Q))&&he.setAttribute(Q,_e);H.head.appendChild(he).parentNode.removeChild(he)}function un(w){return null==w?w+"":"object"==typeof w||"function"==typeof w?qe[Ot.call(w)]||"object":typeof w}var yn=/HTML$/i,K=function(w,I){return new K.fn.init(w,I)};function ei(w){var I=!!w&&"length"in w&&w.length,H=un(w);return!Mt(w)&&!Dt(w)&&("array"===H||0===I||"number"==typeof I&&I>0&&I-1 in w)}function kn(w,I){return w.nodeName&&w.nodeName.toLowerCase()===I.toLowerCase()}K.fn=K.prototype={jquery:"3.7.1",constructor:K,length:0,toArray:function(){return u.call(this)},get:function(w){return null==w?u.call(this):w<0?this[w+this.length]:this[w]},pushStack:function(w){var I=K.merge(this.constructor(),w);return I.prevObject=this,I},each:function(w){return K.each(this,w)},map:function(w){return this.pushStack(K.map(this,function(I,H){return w.call(I,H,I)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(K.grep(this,function(w,I){return(I+1)%2}))},odd:function(){return this.pushStack(K.grep(this,function(w,I){return I%2}))},eq:function(w){var I=this.length,H=+w+(w<0?I:0);return this.pushStack(H>=0&&H<I?[this[H]]:[])},end:function(){return this.prevObject||this.constructor()},push:e,sort:ie.sort,splice:ie.splice},K.extend=K.fn.extend=function(){var w,I,H,Q,_e,he,Ee=arguments[0]||{},_t=1,st=arguments.length,Xt=!1;for("boolean"==typeof Ee&&(Xt=Ee,Ee=arguments[_t]||{},_t++),"object"!=typeof Ee&&!Mt(Ee)&&(Ee={}),_t===st&&(Ee=this,_t--);_t<st;_t++)if(null!=(w=arguments[_t]))for(I in w)Q=w[I],"__proto__"!==I&&Ee!==Q&&(Xt&&Q&&(K.isPlainObject(Q)||(_e=Array.isArray(Q)))?(H=Ee[I],he=_e&&!Array.isArray(H)?[]:_e||K.isPlainObject(H)?H:{},_e=!1,Ee[I]=K.extend(Xt,he,Q)):void 0!==Q&&(Ee[I]=Q));return Ee},K.extend({expando:"jQuery"+("3.7.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(w){throw new Error(w)},noop:function(){},isPlainObject:function(w){var I,H;return!(!w||"[object Object]"!==Ot.call(w)||(I=Bi(w))&&("function"!=typeof(H=Pn.call(I,"constructor")&&I.constructor)||wt.call(H)!==Wn))},isEmptyObject:function(w){var I;for(I in w)return!1;return!0},globalEval:function(w,I,H){dn(w,{nonce:I&&I.nonce},H)},each:function(w,I){var H,Q=0;if(ei(w))for(H=w.length;Q<H&&!1!==I.call(w[Q],Q,w[Q]);Q++);else for(Q in w)if(!1===I.call(w[Q],Q,w[Q]))break;return w},text:function(w){var I,H="",Q=0,_e=w.nodeType;if(!_e)for(;I=w[Q++];)H+=K.text(I);return 1===_e||11===_e?w.textContent:9===_e?w.documentElement.textContent:3===_e||4===_e?w.nodeValue:H},makeArray:function(w,I){var H=I||[];
vendor: 5,126 bytes, line 1
1return null!=w&&(ei(Object(w))?K.merge(H,"string"==typeof w?[w]:w):e.call(H,w)),H},inArray:function(w,I,H){return null==I?-1:Tn.call(I,w,H)},isXMLDoc:function(w){var H=w&&(w.ownerDocument||w).documentElement;return!yn.test(w&&w.namespaceURI||H&&H.nodeName||"HTML")},merge:function(w,I){for(var H=+I.length,Q=0,_e=w.length;Q<H;Q++)w[_e++]=I[Q];return w.length=_e,w},grep:function(w,I,H){for(var _e=[],he=0,Ee=w.length,_t=!H;he<Ee;he++)!I(w[he],he)!==_t&&_e.push(w[he]);return _e},map:function(w,I,H){var Q,_e,he=0,Ee=[];if(ei(w))for(Q=w.length;he<Q;he++)null!=(_e=I(w[he],he,H))&&Ee.push(_e);else for(he in w)null!=(_e=I(w[he],he,H))&&Ee.push(_e);return tn(Ee)},guid:1,support:Pt}),"function"==typeof Symbol&&(K.fn[Symbol.iterator]=ie[Symbol.iterator]),K.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(w,I){qe["[object "+I+"]"]=I.toLowerCase()});var Fn=ie.pop,Si=ie.sort,gr=ie.splice,ji="[\\x20\\t\\r\\n\\f]",jn=new RegExp("^"+ji+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ji+"+$","g");K.contains=function(w,I){var H=I&&I.parentNode;return w===H||!(!H||1!==H.nodeType||!(w.contains?w.contains(H):w.compareDocumentPosition&&16&w.compareDocumentPosition(H)))};var sn=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function ui(w,I){return I?"\0"===w?"\ufffd":w.slice(0,-1)+"\\"+w.charCodeAt(w.length-1).toString(16)+" ":"\\"+w}K.escapeSelector=function(w){return(w+"").replace(sn,ui)};var Mn=Fe,Zi=e;!function(){var w,I,H,Q,_e,Ee,_t,st,Xt,wn,he=Zi,$n=K.expando,Zt=0,Un=0,jr=Bu(),gi=Bu(),mr=Bu(),Co=Bu(),ms=function(nt,ct){return nt===ct&&(_e=!0),0},lc="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",_l="(?:\\\\[\\da-fA-F]{1,6}"+ji+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Qr="\\["+ji+"*("+_l+")(?:"+ji+"*([*^$|!~]?=)"+ji+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+_l+"))|)"+ji+"*\\]",ko=":("+_l+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Qr+")*)|.*)\\)|)",ba=new RegExp(ji+"+","g"),wo=new RegExp("^"+ji+"*,"+ji+"*"),Nu=new RegExp("^"+ji+"*([>+~]|"+ji+")"+ji+"*"),Kl=new RegExp(ji+"|>"),Us=new RegExp(ko),Il=new RegExp("^"+_l+"$"),Jl={ID:new RegExp("^#("+_l+")"),CLASS:new RegExp("^\\.("+_l+")"),TAG:new RegExp("^("+_l+"|[*])"),ATTR:new RegExp("^"+Qr),PSEUDO:new RegExp("^"+ko),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ji+"*(even|odd|(([+-]|)(\\d*)n|)"+ji+"*(?:([+-]|)"+ji+"*(\\d+)|))"+ji+"*\\)|)","i"),bool:new RegExp("^(?:"+lc+")$","i"),needsContext:new RegExp("^"+ji+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ji+"*((?:-\\d)?\\d*)"+ji+"*\\)|)(?=[^-]|$)","i")},ia=/^(?:input|select|textarea|button)$/i,qa=/^h\d$/i,Ma=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Os=/[+~]/,ks=new RegExp("\\\\[\\da-fA-F]{1,6}"+ji+"?|\\\\([^\\r\\n\\f])","g"),Do=function(nt,ct){var rn="0x"+nt.slice(1)-65536;return ct||(rn<0?String.fromCharCode(rn+65536):String.fromCharCode(rn>>10|55296,1023&rn|56320))},Ko=function(){Oa()},Br=jl(function(nt){return!0===nt.disabled&&kn(nt,"fieldset")},{dir:"parentNode",next:"legend"});try{he.apply(ie=u.call(Mn.childNodes),Mn.childNodes)}catch{he={apply:function(ct,rn){Zi.apply(ct,u.call(rn))},call:function(ct){Zi.apply(ct,u.call(arguments,1))}}}function ya(nt,ct,rn,Ne){var lt,yt,En,bi,yi,A,y,k=ct&&ct.ownerDocument,P=ct?ct.nodeType:9;if(rn=rn||[],"string"!=typeof nt||!nt||1!==P&&9!==P&&11!==P)return rn;if(!Ne&&(Oa(ct),ct=ct||Ee,st)){if(11!==P&&(yi=Ma.exec(nt)))if(lt=yi[1]){if(9===P){if(!(En=ct.getElementById(lt)))return rn;if(En.id===lt)return he.call(rn,En),rn}else if(k&&(En=k.getElementById(lt))&&ya.contains(ct,En)&&En.id===lt)return he.call(rn,En),rn}else{if(yi[2])return he.apply(rn,ct.getElementsByTagName(nt)),rn;if((lt=yi[3])&&ct.getElementsByClassName)return he.apply(rn,ct.getElementsByClassName(lt)),rn}if(!(Co[nt+" "]||Xt&&Xt.test(nt))){if(y=nt,k=ct,1===P&&(Kl.test(nt)||Nu.test(nt))){for(((k=Os.test(nt)&&df(ct.parentNode)||ct)!=ct||!Pt.scope)&&((bi=ct.getAttribute("id"))?bi=K.escapeSelector(bi):ct.setAttribute("id",bi=$n)),yt=(A=Ys(nt)).length;yt--;)A[yt]=(bi?"#"+bi:":scope")+" "+xl(A[yt]);y=A.join(",")}try{return he.apply(rn,k.querySelectorAll(y)),rn}catch{Co(nt,!0)}finally{bi===$n&&ct.removeAttribute("id")}}}return ad(nt.replace(jn,"$1"),ct,rn,Ne)}function Bu(){var nt=[];return function ct(rn,Ne){return nt.push(rn+" ")>I.cacheLength&&delete ct[nt.shift()],ct[rn+" "]=Ne}}function ss(nt){return nt[$n]=!0,nt}function Kd(nt){var ct=Ee.createElement("fieldset");try{return!!nt(ct)}catch{return!1}finally{ct.parentNode&&ct.parentNode.removeChild(ct),ct=null}}function yd(nt){return function(ct){return kn(ct,"input")&&ct.type===nt}}function Zf(nt){return function(ct){return(kn(ct,"input")||kn(ct,"button"))&&ct.type===nt}}function rd(nt){return function(ct){return"form"in ct?ct.parentNode&&!1===ct.disabled?"label"in ct?"label"in ct.parentNode?ct.parentNode.disabled===nt:ct.disabled===nt:ct.isDisabled===nt||ct.isDisabled!==!nt&&Br(ct)===nt:ct.disabled===nt:"label"in ct&&ct.disabled===nt}}function da(nt){return ss(function(ct){return ct=+ct,ss(function(rn,Ne){for(var lt,
vendor: 6,487 bytes, line 1
1yt=nt([],rn.length,ct),En=yt.length;En--;)rn[lt=yt[En]]&&(rn[lt]=!(Ne[lt]=rn[lt]))})})}function df(nt){return nt&&typeof nt.getElementsByTagName<"u"&&nt}function Oa(nt){var ct,rn=nt?nt.ownerDocument||nt:Mn;return rn==Ee||9!==rn.nodeType||!rn.documentElement||(_t=(Ee=rn).documentElement,st=!K.isXMLDoc(Ee),wn=_t.matches||_t.webkitMatchesSelector||_t.msMatchesSelector,_t.msMatchesSelector&&Mn!=Ee&&(ct=Ee.defaultView)&&ct.top!==ct&&ct.addEventListener("unload",Ko),Pt.getById=Kd(function(Ne){return _t.appendChild(Ne).id=K.expando,!Ee.getElementsByName||!Ee.getElementsByName(K.expando).length}),Pt.disconnectedMatch=Kd(function(Ne){return wn.call(Ne,"*")}),Pt.scope=Kd(function(){return Ee.querySelectorAll(":scope")}),Pt.cssHas=Kd(function(){try{return Ee.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),Pt.getById?(I.filter.ID=function(Ne){var lt=Ne.replace(ks,Do);return function(yt){return yt.getAttribute("id")===lt}},I.find.ID=function(Ne,lt){if(typeof lt.getElementById<"u"&&st){var yt=lt.getElementById(Ne);return yt?[yt]:[]}}):(I.filter.ID=function(Ne){var lt=Ne.replace(ks,Do);return function(yt){var En=typeof yt.getAttributeNode<"u"&&yt.getAttributeNode("id");return En&&En.value===lt}},I.find.ID=function(Ne,lt){if(typeof lt.getElementById<"u"&&st){var yt,En,bi,yi=lt.getElementById(Ne);if(yi){if((yt=yi.getAttributeNode("id"))&&yt.value===Ne)return[yi];for(bi=lt.getElementsByName(Ne),En=0;yi=bi[En++];)if((yt=yi.getAttributeNode("id"))&&yt.value===Ne)return[yi]}return[]}}),I.find.TAG=function(Ne,lt){return typeof lt.getElementsByTagName<"u"?lt.getElementsByTagName(Ne):lt.querySelectorAll(Ne)},I.find.CLASS=function(Ne,lt){if(typeof lt.getElementsByClassName<"u"&&st)return lt.getElementsByClassName(Ne)},Xt=[],Kd(function(Ne){var lt;_t.appendChild(Ne).innerHTML="<a id='"+$n+"' href='' disabled='disabled'></a><select id='"+$n+"-\r\\' disabled='disabled'><option selected=''></option></select>",Ne.querySelectorAll("[selected]").length||Xt.push("\\["+ji+"*(?:value|"+lc+")"),Ne.querySelectorAll("[id~="+$n+"-]").length||Xt.push("~="),Ne.querySelectorAll("a#"+$n+"+*").length||Xt.push(".#.+[+~]"),Ne.querySelectorAll(":checked").length||Xt.push(":checked"),(lt=Ee.createElement("input")).setAttribute("type","hidden"),Ne.appendChild(lt).setAttribute("name","D"),_t.appendChild(Ne).disabled=!0,2!==Ne.querySelectorAll(":disabled").length&&Xt.push(":enabled",":disabled"),(lt=Ee.createElement("input")).setAttribute("name",""),Ne.appendChild(lt),Ne.querySelectorAll("[name='']").length||Xt.push("\\["+ji+"*name"+ji+"*="+ji+"*(?:''|\"\")")}),Pt.cssHas||Xt.push(":has"),Xt=Xt.length&&new RegExp(Xt.join("|")),ms=function(Ne,lt){if(Ne===lt)return _e=!0,0;var yt=!Ne.compareDocumentPosition-!lt.compareDocumentPosition;return yt||(1&(yt=(Ne.ownerDocument||Ne)==(lt.ownerDocument||lt)?Ne.compareDocumentPosition(lt):1)||!Pt.sortDetached&<.compareDocumentPosition(Ne)===yt?Ne===Ee||Ne.ownerDocument==Mn&&ya.contains(Mn,Ne)?-1:lt===Ee||lt.ownerDocument==Mn&&ya.contains(Mn,lt)?1:Q?Tn.call(Q,Ne)-Tn.call(Q,lt):0:4&yt?-1:1)}),Ee}for(w in ya.matches=function(nt,ct){return ya(nt,null,null,ct)},ya.matchesSelector=function(nt,ct){if(Oa(nt),st&&!Co[ct+" "]&&(!Xt||!Xt.test(ct)))try{var rn=wn.call(nt,ct);if(rn||Pt.disconnectedMatch||nt.document&&11!==nt.document.nodeType)return rn}catch{Co(ct,!0)}return ya(ct,Ee,null,[nt]).length>0},ya.contains=function(nt,ct){return(nt.ownerDocument||nt)!=Ee&&Oa(nt),K.contains(nt,ct)},ya.attr=function(nt,ct){(nt.ownerDocument||nt)!=Ee&&Oa(nt);var rn=I.attrHandle[ct.toLowerCase()],Ne=rn&&Pn.call(I.attrHandle,ct.toLowerCase())?rn(nt,ct,!st):void 0;return void 0!==Ne?Ne:nt.getAttribute(ct)},ya.error=function(nt){throw new Error("Syntax error, unrecognized expression: "+nt)},K.uniqueSort=function(nt){var ct,rn=[],Ne=0,lt=0;if(_e=!Pt.sortStable,Q=!Pt.sortStable&&u.call(nt,0),Si.call(nt,ms),_e){for(;ct=nt[lt++];)ct===nt[lt]&&(Ne=rn.push(lt));for(;Ne--;)gr.call(nt,rn[Ne],1)}return Q=null,nt},K.fn.uniqueSort=function(){return this.pushStack(K.uniqueSort(u.apply(this)))},(I=K.expr={cacheLength:50,createPseudo:ss,match:Jl,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(nt){return nt[1]=nt[1].replace(ks,Do),nt[3]=(nt[3]||nt[4]||nt[5]||"").replace(ks,Do),"~="===nt[2]&&(nt[3]=" "+nt[3]+" "),nt.slice(0,4)},CHILD:function(nt){return nt[1]=nt[1].toLowerCase(),"nth"===nt[1].slice(0,3)?(nt[3]||ya.error(nt[0]),nt[4]=+(nt[4]?nt[5]+(nt[6]||1):2*("even"===nt[3]||"odd"===nt[3])),nt[5]=+(nt[7]+nt[8]||"odd"===nt[3])):nt[3]&&ya.error(nt[0]),nt},PSEUDO:function(nt){var ct,rn=!nt[6]&&nt[2];return Jl.CHILD.test(nt[0])?null:(nt[3]?nt[2]=nt[4]||nt[5]||"":rn&&Us.test(rn)&&(ct=Ys(rn,!0))&&(ct=rn.indexOf(")",rn.length-ct)-rn.length)&&(nt[0]=nt[0].slice(0,ct),nt[2]=rn.slice(0,ct)),nt.slice(0,3))}},filter:{TAG:function(nt){var ct=nt.replace(ks,Do).toLowerCase();return"*"===nt?function(){return!0}:function(rn){return kn(rn,ct)}},CLASS:function(nt){var ct=jr[nt+" "];return ct||(ct=new RegExp("(^|"+ji+")"+nt+"("+ji+"|$)"))&&jr(nt,function(rn){return ct.test("string"==typeof rn.className&&rn.className||typeof rn.getAttribute<"u"&&rn.getAttribute("class")||"")})},ATTR:function(nt,ct,rn){return function(Ne){var lt=ya.attr(Ne,nt);return null==lt?"!="===ct:!ct||(lt+="","="===ct?lt===rn:"!="===ct?lt!==rn:"^="===ct?rn&&0===lt.indexOf(rn):"*="===ct?rn&<.indexOf(rn)>-1:"$="===ct?rn&<.slice(-rn.length)===rn:"~="===ct?(" "+lt.replace(ba," ")+" ").indexOf(rn)>-1:"|="===ct&&(lt===rn||lt.slice(0,rn.length+1)===rn+"-"))}},CHILD:function(nt,ct,rn,Ne,lt){var yt="nth"!==nt.slice(0,3),En="last"!==nt.slice(-4),bi="of-type"===ct;return 1===Ne&&0===lt?function(yi){return!!yi.parentNode}:function(yi,A,y){var k,P,N,D,U,W=yt!==En?"nextSibling":"previousSibling",X=yi.parentNode,de=bi&&yi.nodeName.toLowerCase(),ve=!y&&!bi,Ae=!1;if(X){if(yt){for(;W;){for(N=yi;N=N[W];)if(bi?kn(N,de):1===N.nodeType)return!1;U=W="only"===nt&&!U&&"nextSibling"}return!0}if(U=[En?X.firstChild:X.lastChild],En&&ve){for(Ae=(D=(k=(P=X[$n]||(X[$n]={}))[nt]||[])[0]===Zt&&k[1])&&k[2],N=D&&X.childNodes[D];N=++D&&N&&N[W]||(Ae=D=0)||U.pop();)if(1===N.nodeType&&++Ae&&N===yi){P[nt]=[Zt,D,Ae];break}}else if(ve&&(Ae=D=(k=(P=yi[$n]||(yi[$n]={}))[nt]||[])[0]===Zt&&k[1]),!1===Ae)for(;(N=++D&&N&&N[W]||(Ae=D=0)||U.pop())&&(!(bi?kn(N,de):1===N.nodeType)||!++Ae||(ve&&((P=N[$n]||(N[$n]={}))[nt]=[Zt,Ae]),N!==yi)););return(Ae-=lt)===Ne||Ae%Ne==0&&Ae/Ne>=0}}}
vendor: 5,045 bytes, line 1
1,PSEUDO:function(nt,ct){var rn,Ne=I.pseudos[nt]||I.setFilters[nt.toLowerCase()]||ya.error("unsupported pseudo: "+nt);return Ne[$n]?Ne(ct):Ne.length>1?(rn=[nt,nt,"",ct],I.setFilters.hasOwnProperty(nt.toLowerCase())?ss(function(lt,yt){for(var En,bi=Ne(lt,ct),yi=bi.length;yi--;)lt[En=Tn.call(lt,bi[yi])]=!(yt[En]=bi[yi])}):function(lt){return Ne(lt,0,rn)}):Ne}},pseudos:{not:ss(function(nt){var ct=[],rn=[],Ne=dc(nt.replace(jn,"$1"));return Ne[$n]?ss(function(lt,yt,En,bi){for(var yi,A=Ne(lt,null,bi,[]),y=lt.length;y--;)(yi=A[y])&&(lt[y]=!(yt[y]=yi))}):function(lt,yt,En){return ct[0]=lt,Ne(ct,null,En,rn),ct[0]=null,!rn.pop()}}),has:ss(function(nt){return function(ct){return ya(nt,ct).length>0}}),contains:ss(function(nt){return nt=nt.replace(ks,Do),function(ct){return(ct.textContent||K.text(ct)).indexOf(nt)>-1}}),lang:ss(function(nt){return Il.test(nt||"")||ya.error("unsupported lang: "+nt),nt=nt.replace(ks,Do).toLowerCase(),function(ct){var rn;do{if(rn=st?ct.lang:ct.getAttribute("xml:lang")||ct.getAttribute("lang"))return(rn=rn.toLowerCase())===nt||0===rn.indexOf(nt+"-")}while((ct=ct.parentNode)&&1===ct.nodeType);return!1}}),target:function(nt){var ct=Ie.location&&Ie.location.hash;return ct&&ct.slice(1)===nt.id},root:function(nt){return nt===_t},focus:function(nt){return nt===function cc(){try{return Ee.activeElement}catch{}}()&&Ee.hasFocus()&&!!(nt.type||nt.href||~nt.tabIndex)},enabled:rd(!1),disabled:rd(!0),checked:function(nt){return kn(nt,"input")&&!!nt.checked||kn(nt,"option")&&!!nt.selected},selected:function(nt){return!0===nt.selected},empty:function(nt){for(nt=nt.firstChild;nt;nt=nt.nextSibling)if(nt.nodeType<6)return!1;return!0},parent:function(nt){return!I.pseudos.empty(nt)},header:function(nt){return qa.test(nt.nodeName)},input:function(nt){return ia.test(nt.nodeName)},button:function(nt){return kn(nt,"input")&&"button"===nt.type||kn(nt,"button")},text:function(nt){var ct;return kn(nt,"input")&&"text"===nt.type&&(null==(ct=nt.getAttribute("type"))||"text"===ct.toLowerCase())},first:da(function(){return[0]}),last:da(function(nt,ct){return[ct-1]}),eq:da(function(nt,ct,rn){return[rn<0?rn+ct:rn]}),even:da(function(nt,ct){for(var rn=0;rn<ct;rn+=2)nt.push(rn);return nt}),odd:da(function(nt,ct){for(var rn=1;rn<ct;rn+=2)nt.push(rn);return nt}),lt:da(function(nt,ct,rn){var Ne;for(Ne=rn<0?rn+ct:rn>ct?ct:rn;--Ne>=0;)nt.push(Ne);return nt}),gt:da(function(nt,ct,rn){for(var Ne=rn<0?rn+ct:rn;++Ne<ct;)nt.push(Ne);return nt})}}).pseudos.nth=I.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})I.pseudos[w]=yd(w);for(w in{submit:!0,reset:!0})I.pseudos[w]=Zf(w);function vl(){}function Ys(nt,ct){var rn,Ne,lt,yt,En,bi,yi,A=gi[nt+" "];if(A)return ct?0:A.slice(0);for(En=nt,bi=[],yi=I.preFilter;En;){for(yt in(!rn||(Ne=wo.exec(En)))&&(Ne&&(En=En.slice(Ne[0].length)||En),bi.push(lt=[])),rn=!1,(Ne=Nu.exec(En))&&(rn=Ne.shift(),lt.push({value:rn,type:Ne[0].replace(jn," ")}),En=En.slice(rn.length)),I.filter)(Ne=Jl[yt].exec(En))&&(!yi[yt]||(Ne=yi[yt](Ne)))&&(rn=Ne.shift(),lt.push({value:rn,type:yt,matches:Ne}),En=En.slice(rn.length));if(!rn)break}return ct?En.length:En?ya.error(nt):gi(nt,bi).slice(0)}function xl(nt){for(var ct=0,rn=nt.length,Ne="";ct<rn;ct++)Ne+=nt[ct].value;return Ne}function jl(nt,ct,rn){var Ne=ct.dir,lt=ct.next,yt=lt||Ne,En=rn&&"parentNode"===yt,bi=Un++;return ct.first?function(yi,A,y){for(;yi=yi[Ne];)if(1===yi.nodeType||En)return nt(yi,A,y);return!1}:function(yi,A,y){var k,P,N=[Zt,bi];if(y){for(;yi=yi[Ne];)if((1===yi.nodeType||En)&&nt(yi,A,y))return!0}else for(;yi=yi[Ne];)if(1===yi.nodeType||En)if(P=yi[$n]||(yi[$n]={}),lt&&kn(yi,lt))yi=yi[Ne]||yi;else{if((k=P[yt])&&k[0]===Zt&&k[1]===bi)return N[2]=k[2];if(P[yt]=N,N[2]=nt(yi,A,y))return!0}return!1}}function Gu(nt){return nt.length>1?function(ct,rn,Ne){for(var lt=nt.length;lt--;)if(!nt[lt](ct,rn,Ne))return!1;return!0}:nt[0]}function bl(nt,ct,rn,Ne,lt){for(var yt,En=[],bi=0,yi=nt.length,A=null!=ct;bi<yi;bi++)(yt=nt[bi])&&(!rn||rn(yt,Ne,lt))&&(En.push(yt),A&&ct.push(bi));return En}function ws(nt,ct,rn,Ne,lt,yt){return Ne&&!Ne[$n]&&(Ne=ws(Ne)),lt&&!lt[$n]&&(lt=ws(lt,yt)),ss(function(En,bi,yi,A){var y,k,P,N,D=[],U=[],W=bi.length,X=En||function Cp(nt,ct,rn){for(var Ne=0,lt=ct.length;Ne<lt;Ne++)ya(nt,ct[Ne],rn);return rn}(ct||"*",yi.nodeType?[yi]:yi,[]),de=!nt||!En&&ct?X:bl(X,D,nt,yi,A);if(rn?rn(de,N=lt||(En?nt:W||Ne)?[]:bi,yi,A):N=de,Ne)for(y=bl(N,U),Ne(y,[],yi,A),k=y.length;k--;)(P=y[k])&&(N[U[k]]=!(de[U[k]]=P));if(En){if(lt||nt){if(lt){for(y=[],k=N.length;k--;)(P=N[k])&&y.push(de[k]=P);lt(null,N=[],y,A)}for(k=N.length;k--;)(P=N[k])&&(y=lt?Tn.call(En,P):D[k])>-1&&(En[y]=!(bi[y]=P))}}else N=bl(N===bi?N.splice(W,N.length):N),lt?lt(null,bi,N,A):he.apply(bi,N)})}function ea(nt){for(var ct,rn,Ne,lt=nt.length,yt=I.relative[nt[0].type],En=yt||I.relative[" "],bi=yt?1:0,yi=jl(function(k){return k===ct},En,!0),A=jl(function(k){return Tn.call(ct,k)>-1},En,!0),y=[function(k,P,N){var D=!yt&&(N||P!=H)||((ct=P).nodeType?yi(k,P,N):A(k,P,N));return ct=null,D}];bi<lt;bi++)if(rn=I.relative[nt[bi].type])y=[jl(Gu(y),rn)];
vendor: 8,541 bytes, line 1
1else{if((rn=I.filter[nt[bi].type].apply(null,nt[bi].matches))[$n]){for(Ne=++bi;Ne<lt&&!I.relative[nt[Ne].type];Ne++);return ws(bi>1&&Gu(y),bi>1&&xl(nt.slice(0,bi-1).concat({value:" "===nt[bi-2].type?"*":""})).replace(jn,"$1"),rn,bi<Ne&&ea(nt.slice(bi,Ne)),Ne<lt&&ea(nt=nt.slice(Ne)),Ne<lt&&xl(nt))}y.push(rn)}return Gu(y)}function dc(nt,ct){var rn,Ne=[],lt=[],yt=mr[nt+" "];if(!yt){for(ct||(ct=Ys(nt)),rn=ct.length;rn--;)(yt=ea(ct[rn]))[$n]?Ne.push(yt):lt.push(yt);yt=mr(nt,function Jd(nt,ct){var rn=ct.length>0,Ne=nt.length>0,lt=function(yt,En,bi,yi,A){var y,k,P,N=0,D="0",U=yt&&[],W=[],X=H,de=yt||Ne&&I.find.TAG("*",A),ve=Zt+=null==X?1:Math.random()||.1,Ae=de.length;for(A&&(H=En==Ee||En||A);D!==Ae&&null!=(y=de[D]);D++){if(Ne&&y){for(k=0,!En&&y.ownerDocument!=Ee&&(Oa(y),bi=!st);P=nt[k++];)if(P(y,En||Ee,bi)){he.call(yi,y);break}A&&(Zt=ve)}rn&&((y=!P&&y)&&N--,yt&&U.push(y))}if(N+=D,rn&&D!==N){for(k=0;P=ct[k++];)P(U,W,En,bi);if(yt){if(N>0)for(;D--;)U[D]||W[D]||(W[D]=Fn.call(yi));W=bl(W)}he.apply(yi,W),A&&!yt&&W.length>0&&N+ct.length>1&&K.uniqueSort(yi)}return A&&(Zt=ve,H=X),U};return rn?ss(lt):lt}(lt,Ne)),yt.selector=nt}return yt}function ad(nt,ct,rn,Ne){var lt,yt,En,bi,yi,A="function"==typeof nt&&nt,y=!Ne&&Ys(nt=A.selector||nt);if(rn=rn||[],1===y.length){if((yt=y[0]=y[0].slice(0)).length>2&&"ID"===(En=yt[0]).type&&9===ct.nodeType&&st&&I.relative[yt[1].type]){if(!(ct=(I.find.ID(En.matches[0].replace(ks,Do),ct)||[])[0]))return rn;A&&(ct=ct.parentNode),nt=nt.slice(yt.shift().value.length)}for(lt=Jl.needsContext.test(nt)?0:yt.length;lt--&&!I.relative[bi=(En=yt[lt]).type];)if((yi=I.find[bi])&&(Ne=yi(En.matches[0].replace(ks,Do),Os.test(yt[0].type)&&df(ct.parentNode)||ct))){if(yt.splice(lt,1),!(nt=Ne.length&&xl(yt)))return he.apply(rn,Ne),rn;break}}return(A||dc(nt,y))(Ne,ct,!st,rn,!ct||Os.test(nt)&&df(ct.parentNode)||ct),rn}vl.prototype=I.filters=I.pseudos,I.setFilters=new vl,Pt.sortStable=$n.split("").sort(ms).join("")===$n,Oa(),Pt.sortDetached=Kd(function(nt){return 1&nt.compareDocumentPosition(Ee.createElement("fieldset"))}),K.find=ya,K.expr[":"]=K.expr.pseudos,K.unique=K.uniqueSort,ya.compile=dc,ya.select=ad,ya.setDocument=Oa,ya.tokenize=Ys,ya.escape=K.escapeSelector,ya.getText=K.text,ya.isXML=K.isXMLDoc,ya.selectors=K.expr,ya.support=K.support,ya.uniqueSort=K.uniqueSort}();var Mi=function(w,I,H){for(var Q=[],_e=void 0!==H;(w=w[I])&&9!==w.nodeType;)if(1===w.nodeType){if(_e&&K(w).is(H))break;Q.push(w)}return Q},Xi=function(w,I){for(var H=[];w;w=w.nextSibling)1===w.nodeType&&w!==I&&H.push(w);return H},hr=K.expr.match.needsContext,Lr=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Nr(w,I,H){return Mt(I)?K.grep(w,function(Q,_e){return!!I.call(Q,_e,Q)!==H}):I.nodeType?K.grep(w,function(Q){return Q===I!==H}):"string"!=typeof I?K.grep(w,function(Q){return Tn.call(I,Q)>-1!==H}):K.filter(I,w,H)}K.filter=function(w,I,H){var Q=I[0];return H&&(w=":not("+w+")"),1===I.length&&1===Q.nodeType?K.find.matchesSelector(Q,w)?[Q]:[]:K.find.matches(w,K.grep(I,function(_e){return 1===_e.nodeType}))},K.fn.extend({find:function(w){var I,H,Q=this.length,_e=this;if("string"!=typeof w)return this.pushStack(K(w).filter(function(){for(I=0;I<Q;I++)if(K.contains(_e[I],this))return!0}));for(H=this.pushStack([]),I=0;I<Q;I++)K.find(w,_e[I],H);return Q>1?K.uniqueSort(H):H},filter:function(w){return this.pushStack(Nr(this,w||[],!1))},not:function(w){return this.pushStack(Nr(this,w||[],!0))},is:function(w){return!!Nr(this,"string"==typeof w&&hr.test(w)?K(w):w||[],!1).length}});var Gi,Mo=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Bo=K.fn.init=function(w,I,H){var Q,_e;if(!w)return this;if(H=H||Gi,"string"==typeof w){if(!(Q="<"===w[0]&&">"===w[w.length-1]&&w.length>=3?[null,w,null]:Mo.exec(w))||!Q[1]&&I)return!I||I.jquery?(I||H).find(w):this.constructor(I).find(w);if(Q[1]){if(K.merge(this,K.parseHTML(Q[1],(I=I instanceof K?I[0]:I)&&I.nodeType?I.ownerDocument||I:Fe,!0)),Lr.test(Q[1])&&K.isPlainObject(I))for(Q in I)Mt(this[Q])?this[Q](I[Q]):this.attr(Q,I[Q]);return this}return(_e=Fe.getElementById(Q[2]))&&(this[0]=_e,this.length=1),this}return w.nodeType?(this[0]=w,this.length=1,this):Mt(w)?void 0!==H.ready?H.ready(w):w(K):K.makeArray(w,this)};Bo.prototype=K.fn,Gi=K(Fe);var Bs=/^(?:parents|prev(?:Until|All))/,Ts={children:!0,contents:!0,next:!0,prev:!0};function Hc(w,I){for(;(w=w[I])&&1!==w.nodeType;);return w}K.fn.extend({has:function(w){var I=K(w,this),H=I.length;return this.filter(function(){for(var Q=0;Q<H;Q++)if(K.contains(this,I[Q]))return!0})},closest:function(w,I){var H,Q=0,_e=this.length,he=[],Ee="string"!=typeof w&&K(w);if(!hr.test(w))for(;Q<_e;Q++)for(H=this[Q];H&&H!==I;H=H.parentNode)if(H.nodeType<11&&(Ee?Ee.index(H)>-1:1===H.nodeType&&K.find.matchesSelector(H,w))){he.push(H);break}return this.pushStack(he.length>1?K.uniqueSort(he):he)},index:function(w){return w?"string"==typeof w?Tn.call(K(w),this[0]):Tn.call(this,w.jquery?w[0]:w):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(w,I){return this.pushStack(K.uniqueSort(K.merge(this.get(),K(w,I))))},addBack:function(w){return this.add(null==w?this.prevObject:this.prevObject.filter(w))}}),K.each({parent:function(w){var I=w.parentNode;return I&&11!==I.nodeType?I:null},parents:function(w){return Mi(w,"parentNode")},parentsUntil:function(w,I,H){return Mi(w,"parentNode",H)},next:function(w){return Hc(w,"nextSibling")},prev:function(w){return Hc(w,"previousSibling")},nextAll:function(w){return Mi(w,"nextSibling")},prevAll:function(w){return Mi(w,"previousSibling")},nextUntil:function(w,I,H){return Mi(w,"nextSibling",H)},prevUntil:function(w,I,H){return Mi(w,"previousSibling",H)},siblings:function(w){return Xi((w.parentNode||{}).firstChild,w)},children:function(w){return Xi(w.firstChild)},contents:function(w){return null!=w.contentDocument&&Bi(w.contentDocument)?w.contentDocument:(kn(w,"template")&&(w=w.content||w),K.merge([],w.childNodes))}},function(w,I){K.fn[w]=function(H,Q){var _e=K.map(this,I,H);return"Until"!==w.slice(-5)&&(Q=H),Q&&"string"==typeof Q&&(_e=K.filter(Q,_e)),this.length>1&&(Ts[w]||K.uniqueSort(_e),Bs.test(w)&&_e.reverse()),this.pushStack(_e)}});var Jo=/[^\x20\t\r\n\f]+/g;function Wl(w){return w}function Zo(w){throw w}function xc(w,I,H,Q){var _e;try{w&&Mt(_e=w.promise)?_e.call(w).done(I).fail(H):w&&Mt(_e=w.then)?_e.call(w,I,H):I.apply(void 0,[w].slice(Q))}catch(he){H.apply(void 0,[he])}}K.Callbacks=function(w){w="string"==typeof w?function rl(w){var I={};return K.each(w.match(Jo)||[],function(H,Q){I[Q]=!0}),I}(w):K.extend({},w);var I,H,Q,_e,he=[],Ee=[],_t=-1,st=function(){for(_e=_e||w.once,Q=I=!0;Ee.length;_t=-1)for(H=Ee.shift();++_t<he.length;)!1===he[_t].apply(H[0],H[1])&&w.stopOnFalse&&(_t=he.length,H=!1);w.memory||(H=!1),I=!1,_e&&(he=H?[]:"")},Xt={add:function(){return he&&(H&&!I&&(_t=he.length-1,Ee.push(H)),function wn($n){K.each($n,function(Zt,Un){Mt(Un)?(!w.unique||!Xt.has(Un))&&he.push(Un):Un&&Un.length&&"string"!==un(Un)&&wn(Un)})}(arguments),H&&!I&&st()),this},remove:function(){return K.each(arguments,function(wn,$n){for(var Zt;(Zt=K.inArray($n,he,Zt))>-1;)he.splice(Zt,1),Zt<=_t&&_t--}),this},has:function(wn){return wn?K.inArray(wn,he)>-1:he.length>0},empty:function(){return he&&(he=[]),this},disable:function(){return _e=Ee=[],he=H="",this},disabled:function(){return!he},lock:function(){return _e=Ee=[],!H&&!I&&(he=H=""),this},locked:function(){return!!_e},fireWith:function(wn,$n){return _e||($n=[wn,($n=$n||[]).slice?$n.slice():$n],Ee.push($n),I||st()),this},fire:function(){return Xt.fireWith(this,arguments),this},fired:function(){return!!Q}};return Xt},K.extend({Deferred:function(w){var I=[["notify","progress",K.Callbacks("memory"),K.Callbacks("memory"),2],["resolve","done",K.Callbacks("once memory"),K.Callbacks("once memory"),0,"resolved"],["reject","fail",K.Callbacks("once memory"),K.Callbacks("once memory"),1,"rejected"]],H="pending",Q={state:function(){return H},always:function(){return _e.done(arguments).fail(arguments),this},catch:function(he){return Q.then(null,he)},pipe:function(){var he=arguments;return K.Deferred(function(Ee){K.each(I,function(_t,st){var Xt=Mt(he[st[4]])&&he[st[4]];_e[st[1]](function(){var wn=Xt&&Xt.apply(this,arguments);wn&&Mt(wn.promise)?wn.promise().progress(Ee.notify).done(Ee.resolve).fail(Ee.reject):Ee[st[0]+"With"](this,Xt?[wn]:arguments)})}),he=null}).promise()},then:function(he,Ee,_t){var st=0;function Xt(wn,$n,Zt,Un){return function(){var jr=this,gi=arguments,mr=function(){var ms,lc;if(!(wn<st)){if((ms=Zt.apply(jr,gi))===$n.promise())throw new TypeError("Thenable self
1-resolution");Mt(lc=ms&&("object"==typeof ms||"function"==typeof ms)&&ms.then)?Un?lc.call(ms,Xt(st,$n,Wl,Un),Xt(st,$n,Zo,Un)):(st++,lc.call(ms,Xt(st,$n,Wl,Un),Xt(st,$n,Zo,Un),Xt(st,$n,Wl,$n.notifyWith))):(Zt!==Wl&&(jr=void 0,gi=[ms]),(Un||$n.resolveWith)(jr,gi))}},Co=Un?mr:function(){try{mr()}catch(ms){K.Deferred.exceptionHook&&K.Deferred.exceptionHook(ms,Co.error),wn+1>=st&&(Zt!==Zo&&(jr=void 0,gi=[ms]),$n.rejectWith(jr,gi))}};wn?Co():(K.Deferred.getErrorHook?Co.error=K.Deferred.getErrorHook():K.Deferred.getStackHook&&(Co.error=K.Deferred.getStackHook()),Ie.setTimeout(Co))}}return K.Deferred(function(wn){I[0][3].add(Xt(0,wn,Mt(_t)?_t:Wl,wn.notifyWith)),I[1][3].add(Xt(0,wn,Mt(he)?he:Wl)),I[2][3].add(Xt(0,wn,Mt(Ee)?Ee:Zo))}).promise()},promise:function(he){return null!=he?K.extend(he,Q):Q}},_e={};return K.each(I,function(he,Ee){var _t=Ee[2],st=Ee[5];Q[Ee[1]]=_t.add,st&&_t.add(function(){H=st},I[3-he][2].disable,I[3-he][3].disable,I[0][2].lock,I[0][3].lock),_t.add(Ee[3].fire),_e[Ee[0]]=function(){return _e[Ee[0]+"With"](this===_e?void 0:this,arguments),this},_e[Ee[0]+"With"]=_t.fireWith}),Q.promise(_e),w&&w.call(_e,_e),_e},when:function(w){var I=arguments.length,H=I,Q=Array(H),_e=u.call(arguments),he=K.Deferred(),Ee=function(_t){return function(st){Q[_t]=this,_e[_t]=arguments.length>1?u.call(arguments):st,--I||he.resolveWith(Q,_e)}};if(I<=1&&(xc(w,he.done(Ee(H)).resolve,he.reject,!I),"pending"===he.state()||Mt(_e[H]&&_e[H].then)))return he.then();for(;H--;)xc(_e[H],Ee(H),he.reject);return he.promise()}});var al=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;K.Deferred.exceptionHook=function(w,I){Ie.console&&Ie.console.warn&&w&&al.test(w.name)&&Ie.console.warn("jQuery.Deferred exception: "+w.message,w.stack,I)},K.readyException=function(w){Ie.setTimeout(function(){throw w})};var fs=K.Deferred();function Pl(){Fe.removeEventListener("DOMContentLoaded",Pl),Ie.removeEventListener("load",Pl),K.ready()}K.fn.ready=function(w){return fs.then(w).catch(function(I){K.readyException(I)}),this},K.extend({isReady:!1,readyWait:1,ready:function(w){(!0===w?--K.readyWait:K.isReady)||(K.isReady=!0,!(!0!==w&&--K.readyWait>0)&&fs.resolveWith(Fe,[K]))}}),K.ready.then=fs.then,"complete"===Fe.readyState||"loading"!==Fe.readyState&&!Fe.documentElement.doScroll?Ie.setTimeout(K.ready):(Fe.addEventListener("DOMContentLoaded",Pl),Ie.addEventListener("load",Pl));var aa=function(w,I,H,Q,_e,he,Ee){var _t=0,st=w.length,Xt=null==H;if("object"===un(H))for(_t in _e=!0,H)aa(w,I,_t,H[_t],!0,he,Ee);else if(void 0!==Q&&(_e=!0,Mt(Q)||(Ee=!0),Xt&&(Ee?(I.call(w,Q),I=null):(Xt=I,I=function(wn,$n,Zt){return Xt.call(K(wn),Zt)})),I))for(;_t<st;_t++)I(w[_t],H,Ee?Q:Q.call(w[_t],_t,I(w[_t],H)));return _e?w:Xt?I.call(w):st?I(w[0],H):he},ps=/^-ms-/,Gs=/-([a-z])/g;function Bd(w,I){return I.toUpperCase()}function Ia(w){return w.replace(ps,"ms-").replace(Gs,Bd)}var Kc=function(w){return 1===w.nodeType||9===w.nodeType||!+w.nodeType};function Vs(){this.expando=K.expando+Vs.uid++}Vs.uid=1,Vs.prototype={cache:function(w){var I=w[this.expando];return I||(I={},Kc(w)&&(w.nodeType?w[this.expando]=I:Object.defineProperty(w,this.expando,{value:I,configurable:!0}))),I},set:function(w,I,H){var Q,_e=this.cache(w);if("string"==typeof I)_e[Ia(I)]=H;else for(Q in I)_e[Ia(Q)]=I[Q];return _e},get:function(w,I){return void 0===I?this.cache(w):w[this.expando]&&w[this.expando][Ia(I)]},access:function(w,I,H){return void 0===I||I&&"string"==typeof I&&void 0===H?this.get(w,I):(this.set(w,I,H),void 0!==H?H:I)},remove:function(w,I){var H,Q=w[this.expando];if(void 0!==Q){if(void 0!==I)for((H=(I=Array.isArray(I)?I.map(Ia):(I=Ia(I))in Q?[I]:I.match(Jo)||[]).length);H--;)delete Q[I[H]];(void 0===I||K.isEmptyObject(Q))&&(w.nodeType?w[this.expando]=void 0:delete w[this.expando])}},hasData:function(w){var I=w[this.expando];return void 0!==I&&!K.isEmptyObject(I)}};var fr=new Vs,bo=new Vs,Cs=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,yo=/[A-Z]/g;function Ml(w,I,H){var Q;if(void 0===H&&1===w.nodeType)if(Q="data-"+I.replace(yo,"-$&").toLowerCase(),"string"==typeof(H=w.getAttribute(Q))){try{H=function Go(w){return"true"===w||"false"!==w&&("null"===w?null:w===+w+""?+w:Cs.test(w)?JSON.parse(w):w)}(H)}catch{}bo.set(w,I,H)}else H=void 0;return H}K.extend({hasData:function(w){return bo.hasData(w)||fr.hasData(w)},data:function(w,I,H){return bo.access(w,I,H)},removeData:function(w,I){bo.remove(w,I)},_data:function(w,I,H){return fr.access(w,I,H)},_removeData:function(w,I){fr.remove(w,I)}}),K.fn.extend({data:function(w,I){var H,Q,_e,he=this[0],Ee=he&&he.attributes;if(void 0===w){if(this.length&&(_e=bo.get(he),1===he.nodeType&&!fr.get(he,"hasDataAttrs"))){for(H=Ee.length;H--;)Ee[H]&&0===(Q=Ee[H].name).indexOf("data-")&&(Q=Ia(Q.slice(5)),Ml(he,Q,_e[Q]));fr.set(he,"hasDataAttrs",!0)}return _e}return"object"==typeof w?this.each(function(){bo.set(this,w)}):aa(this,function(_t){var st;if(he&&void 0===_t)return void 0!==(st=bo.get(he,w))||void 0!==(st=Ml(he,w))?st:void 0;this.each(function(){bo.set(this,w,_t)})},null,I,arguments.length>1,null,!0)},removeData:function(w){return this.each(function(){bo.remove(this,w)})}}),K.extend({queue:function(w,I,H){var Q;if(w)return Q=fr.get(w,I=(I||"fx")+"queue"),H&&(!Q||Array.isArray(H)?Q=fr.access(w,I,K.makeArray(H)):Q.push(H)),Q||[]},dequeue:function(w,I){var H=K.queue(w,I=I||"fx"),Q=H.length,_e=H.shift(),he=K._queueHooks(w,I);"inprogress"===_e&&(_e=H.shift(),Q--),_e&&("fx"===I&&H.unshift("inprogress"),delete he.stop,_e.call(w,function(){K.dequeue(w,I)},he)),!Q&&he&&he.empty.fire()},_queueHooks:function(w,I){var H=I+"queueHooks";return fr.get(w,H)||fr.access(w,H,{empty:K.Callbacks("once memory").add(function(){fr.remove(w,[I+"queue",H])})})}}),K.fn.extend({queue:function(w,I){var H=2;return"string"!=typeof w&&(I=w,w="fx",H--),arguments.length<H?K.queue(this[0],w):void 0===I?this:this.each(function(){var Q=K.queue(this,w,I);K._queueHooks(this,w),"fx"===w&&"inprogress"!==Q[0]&&K.dequeue(this,w)})},dequeue:function(w){return this.each(function(){K.dequeue(this,w)})},clearQueue:function(w){return this.queue(w||"fx",[])},promise:function(w,I){var H,Q=1,_e=K.Deferred(),he=this,Ee=this.length,_t=function(){--Q||_e.resolveWith(he,[he])};for("string"!=typeof w&&(I=w,w=void 0),w=w||"fx";Ee--;)(H=fr.get(he[Ee],w+"queueHooks"))&&H.empty&&(Q++,H.empty.add(_t));return _t(),_e.promise(I)}});var kr=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,$l=new RegExp("^(?:([+-])=|)("+kr+")([a-z%]*)$","i"),ol=["Top","Right","Bottom","Left"],gl=Fe.documentElement,ql=function(w){return K.contains(w.ownerDocument,w)},Mu={composed:!0};gl.getRootNode&&(ql=function(w){return K.contains(w.ownerDocument,w)||w.getRootNode(Mu)===w.ownerDocument});var cu=function(w,I){return"none"===(w=I||w).style.display||""===w.style.display&&ql(w)&&"none"===K.css(w,"dis
vendor: 6,459 bytes, line 1
1play")};function af(w,I,H,Q){var _e,he,Ee=20,_t=Q?function(){return Q.cur()}:function(){return K.css(w,I,"")},st=_t(),Xt=H&&H[3]||(K.cssNumber[I]?"":"px"),wn=w.nodeType&&(K.cssNumber[I]||"px"!==Xt&&+st)&&$l.exec(K.css(w,I));if(wn&&wn[3]!==Xt){for(Xt=Xt||wn[3],wn=+(st/=2)||1;Ee--;)K.style(w,I,wn+Xt),(1-he)*(1-(he=_t()/st||.5))<=0&&(Ee=0),wn/=he;K.style(w,I,(wn*=2)+Xt),H=H||[]}return H&&(wn=+wn||+st||0,_e=H[1]?wn+(H[1]+1)*H[2]:+H[2],Q&&(Q.unit=Xt,Q.start=wn,Q.end=_e)),_e}var _d={};function Gd(w){var I,H=w.ownerDocument,Q=w.nodeName,_e=_d[Q];return _e||(I=H.body.appendChild(H.createElement(Q)),_e=K.css(I,"display"),I.parentNode.removeChild(I),"none"===_e&&(_e="block"),_d[Q]=_e,_e)}function to(w,I){for(var H,Q,_e=[],he=0,Ee=w.length;he<Ee;he++)(Q=w[he]).style&&(H=Q.style.display,I?("none"===H&&(_e[he]=fr.get(Q,"display")||null,_e[he]||(Q.style.display="")),""===Q.style.display&&cu(Q)&&(_e[he]=Gd(Q))):"none"!==H&&(_e[he]="none",fr.set(Q,"display",H)));for(he=0;he<Ee;he++)null!=_e[he]&&(w[he].style.display=_e[he]);return w}K.fn.extend({show:function(){return to(this,!0)},hide:function(){return to(this)},toggle:function(w){return"boolean"==typeof w?w?this.show():this.hide():this.each(function(){cu(this)?K(this).show():K(this).hide()})}});var I,H,Vd=/^(?:checkbox|radio)$/i,we=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,jc=/^$|^module$|\/(?:java|ecma)script/i;I=Fe.createDocumentFragment().appendChild(Fe.createElement("div")),(H=Fe.createElement("input")).setAttribute("type","radio"),H.setAttribute("checked","checked"),H.setAttribute("name","t"),I.appendChild(H),Pt.checkClone=I.cloneNode(!0).cloneNode(!0).lastChild.checked,I.innerHTML="<textarea>x</textarea>",Pt.noCloneChecked=!!I.cloneNode(!0).lastChild.defaultValue,I.innerHTML="<option></option>",Pt.option=!!I.lastChild;var zs={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ss(w,I){var H;return H=typeof w.getElementsByTagName<"u"?w.getElementsByTagName(I||"*"):typeof w.querySelectorAll<"u"?w.querySelectorAll(I||"*"):[],void 0===I||I&&kn(w,I)?K.merge([w],H):H}function zd(w,I){for(var H=0,Q=w.length;H<Q;H++)fr.set(w[H],"globalEval",!I||fr.get(I[H],"globalEval"))}zs.tbody=zs.tfoot=zs.colgroup=zs.caption=zs.thead,zs.th=zs.td,Pt.option||(zs.optgroup=zs.option=[1,"<select multiple='multiple'>","</select>"]);var Ou=/<|&#?\w+;/;function Du(w,I,H,Q,_e){for(var he,Ee,_t,st,Xt,wn,$n=I.createDocumentFragment(),Zt=[],Un=0,jr=w.length;Un<jr;Un++)if((he=w[Un])||0===he)if("object"===un(he))K.merge(Zt,he.nodeType?[he]:he);else if(Ou.test(he)){for(Ee=Ee||$n.appendChild(I.createElement("div")),_t=(we.exec(he)||["",""])[1].toLowerCase(),Ee.innerHTML=(st=zs[_t]||zs._default)[1]+K.htmlPrefilter(he)+st[2],wn=st[0];wn--;)Ee=Ee.lastChild;K.merge(Zt,Ee.childNodes),(Ee=$n.firstChild).textContent=""}else Zt.push(I.createTextNode(he));for($n.textContent="",Un=0;he=Zt[Un++];)if(Q&&K.inArray(he,Q)>-1)_e&&_e.push(he);else if(Xt=ql(he),Ee=Ss($n.appendChild(he),"script"),Xt&&zd(Ee),H)for(wn=0;he=Ee[wn++];)jc.test(he.type||"")&&H.push(he);return $n}var Ud=/^([^.]*)(?:\.(.+)|)/;function Es(){return!0}function Ol(){return!1}function du(w,I,H,Q,_e,he){var Ee,_t;if("object"==typeof I){for(_t in"string"!=typeof H&&(Q=Q||H,H=void 0),I)du(w,_t,H,Q,I[_t],he);return w}if(null==Q&&null==_e?(_e=H,Q=H=void 0):null==_e&&("string"==typeof H?(_e=Q,Q=void 0):(_e=Q,Q=H,H=void 0)),!1===_e)_e=Ol;else if(!_e)return w;return 1===he&&(Ee=_e,_e=function(st){return K().off(st),Ee.apply(this,arguments)},_e.guid=Ee.guid||(Ee.guid=K.guid++)),w.each(function(){K.event.add(this,I,_e,Q,H)})}function Yd(w,I,H){H?(fr.set(w,I,!1),K.event.add(w,I,{namespace:!1,handler:function(Q){var _e,he=fr.get(this,I);if(1&Q.isTrigger&&this[I]){if(he)(K.event.special[I]||{}).delegateType&&Q.stopPropagation();else if(he=u.call(arguments),fr.set(this,I,he),this[I](),_e=fr.get(this,I),fr.set(this,I,!1),he!==_e)return Q.stopImmediatePropagation(),Q.preventDefault(),_e}else he&&(fr.set(this,I,K.event.trigger(he[0],he.slice(1),this)),Q.stopPropagation(),Q.isImmediatePropagationStopped=Es)}})):void 0===fr.get(w,I)&&K.event.add(w,I,Es)}K.event={global:{},add:function(w,I,H,Q,_e){var he,Ee,_t,st,Xt,wn,$n,Zt,Un,jr,gi,mr=fr.get(w);if(Kc(w))for(H.handler&&(H=(he=H).handler,_e=he.selector),_e&&K.find.matchesSelector(gl,_e),H.guid||(H.guid=K.guid++),(st=mr.events)||(st=mr.events=Object.create(null)),(Ee=mr.handle)||(Ee=mr.handle=function(Co){return typeof K<"u"&&K.event.triggered!==Co.type?K.event.dispatch.apply(w,arguments):void 0}),Xt=(I=(I||"").match(Jo)||[""]).length;Xt--;)Un=gi=(_t=Ud.exec(I[Xt])||[])[1],jr=(_t[2]||"").split(".").sort(),Un&&($n=K.event.special[Un]||{},$n=K.event.special[Un=(_e?$n.delegateType:$n.bindType)||Un]||{},wn=K.extend({type:Un,origType:gi,data:Q,handler:H,guid:H.guid,selector:_e,needsContext:_e&&K.expr.match.needsContext.test(_e),namespace:jr.join(".")},he),(Zt=st[Un])||((Zt=st[Un]=[]).delegateCount=0,(!$n.setup||!1===$n.setup.call(w,Q,jr,Ee))&&w.addEventListener&&w.addEventListener(Un,Ee)),$n.add&&($n.add.call(w,wn),wn.handler.guid||(wn.handler.guid=H.guid)),_e?Zt.splice(Zt.delegateCount++,0,wn):Zt.push(wn),K.event.global[Un]=!0)},remove:function(w,I,H,Q,_e){var he,Ee,_t,st,Xt,wn,$n,Zt,Un,jr,gi,mr=fr.hasData(w)&&fr.get(w);if(mr&&(st=mr.events)){for(Xt=(I=(I||"").match(Jo)||[""]).length;Xt--;)if(Un=gi=(_t=Ud.exec(I[Xt])||[])[1],jr=(_t[2]||"").split(".").sort(),Un){for($n=K.event.special[Un]||{},Zt=st[Un=(Q?$n.delegateType:$n.bindType)||Un]||[],_t=_t[2]&&new RegExp("(^|\\.)"+jr.join("\\.(?:.*\\.|)")+"(\\.|$)"),Ee=he=Zt.length;he--;)wn=Zt[he],(_e||gi===wn.origType)&&(!H||H.guid===wn.guid)&&(!_t||_t.test(wn.namespace))&&(!Q||Q===wn.selector||"**"===Q&&wn.selector)&&(Zt.splice(he,1),wn.selector&&Zt.delegateCount--,$n.remove&&$n.remove.call(w,wn));Ee&&!Zt.length&&((!$n.teardown||!1===$n.teardown.call(w,jr,mr.handle))&&K.removeEvent(w,Un,mr.handle),delete st[Un])}else for(Un in st)K.event.remove(w,Un+I[Xt],H,Q,!0);K.isEmptyObject(st)&&fr.remove(w,"handle events")}},dispatch:function(w){var I,H,Q,_e,he,Ee,_t=new Array(arguments.length),st=K.event.fix(w),Xt=(fr.get(this,"events")||Object.create(null))[st.type]||[],wn=K.event.special[st.type]||{};for(_t[0]=st,I=1;I<arguments.length;I++)_t[I]=arguments[I];if(st.delegateTarget=this,!wn.preDispatch||!1!==wn.preDispatch.call(this,st)){for(Ee=K.event.handlers.call(this,st,Xt),I=0;
vendor: 4,434 bytes, line 1
1(_e=Ee[I++])&&!st.isPropagationStopped();)for(st.currentTarget=_e.elem,H=0;(he=_e.handlers[H++])&&!st.isImmediatePropagationStopped();)(!st.rnamespace||!1===he.namespace||st.rnamespace.test(he.namespace))&&(st.handleObj=he,st.data=he.data,void 0!==(Q=((K.event.special[he.origType]||{}).handle||he.handler).apply(_e.elem,_t))&&!1===(st.result=Q)&&(st.preventDefault(),st.stopPropagation()));return wn.postDispatch&&wn.postDispatch.call(this,st),st.result}},handlers:function(w,I){var H,Q,_e,he,Ee,_t=[],st=I.delegateCount,Xt=w.target;if(st&&Xt.nodeType&&!("click"===w.type&&w.button>=1))for(;Xt!==this;Xt=Xt.parentNode||this)if(1===Xt.nodeType&&("click"!==w.type||!0!==Xt.disabled)){for(he=[],Ee={},H=0;H<st;H++)void 0===Ee[_e=(Q=I[H]).selector+" "]&&(Ee[_e]=Q.needsContext?K(_e,this).index(Xt)>-1:K.find(_e,this,null,[Xt]).length),Ee[_e]&&he.push(Q);he.length&&_t.push({elem:Xt,handlers:he})}return Xt=this,st<I.length&&_t.push({elem:Xt,handlers:I.slice(st)}),_t},addProp:function(w,I){Object.defineProperty(K.Event.prototype,w,{enumerable:!0,configurable:!0,get:Mt(I)?function(){if(this.originalEvent)return I(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[w]},set:function(H){Object.defineProperty(this,w,{enumerable:!0,configurable:!0,writable:!0,value:H})}})},fix:function(w){return w[K.expando]?w:new K.Event(w)},special:{load:{noBubble:!0},click:{setup:function(w){var I=this||w;return Vd.test(I.type)&&I.click&&kn(I,"input")&&Yd(I,"click",!0),!1},trigger:function(w){var I=this||w;return Vd.test(I.type)&&I.click&&kn(I,"input")&&Yd(I,"click"),!0},_default:function(w){var I=w.target;return Vd.test(I.type)&&I.click&&kn(I,"input")&&fr.get(I,"click")||kn(I,"a")}},beforeunload:{postDispatch:function(w){void 0!==w.result&&w.originalEvent&&(w.originalEvent.returnValue=w.result)}}}},K.removeEvent=function(w,I,H){w.removeEventListener&&w.removeEventListener(I,H)},K.Event=function(w,I){if(!(this instanceof K.Event))return new K.Event(w,I);w&&w.type?(this.originalEvent=w,this.type=w.type,this.isDefaultPrevented=w.defaultPrevented||void 0===w.defaultPrevented&&!1===w.returnValue?Es:Ol,this.target=w.target&&3===w.target.nodeType?w.target.parentNode:w.target,this.currentTarget=w.currentTarget,this.relatedTarget=w.relatedTarget):this.type=w,I&&K.extend(this,I),this.timeStamp=w&&w.timeStamp||Date.now(),this[K.expando]=!0},K.Event.prototype={constructor:K.Event,isDefaultPrevented:Ol,isPropagationStopped:Ol,isImmediatePropagationStopped:Ol,isSimulated:!1,preventDefault:function(){var w=this.originalEvent;this.isDefaultPrevented=Es,w&&!this.isSimulated&&w.preventDefault()},stopPropagation:function(){var w=this.originalEvent;this.isPropagationStopped=Es,w&&!this.isSimulated&&w.stopPropagation()},stopImmediatePropagation:function(){var w=this.originalEvent;this.isImmediatePropagationStopped=Es,w&&!this.isSimulated&&w.stopImmediatePropagation(),this.stopPropagation()}},K.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},K.event.addProp),K.each({focus:"focusin",blur:"focusout"},function(w,I){function H(Q){if(Fe.documentMode){var _e=fr.get(this,"handle"),he=K.event.fix(Q);he.type="focusin"===Q.type?"focus":"blur",he.isSimulated=!0,_e(Q),he.target===he.currentTarget&&_e(he)}else K.event.simulate(I,Q.target,K.event.fix(Q))}K.event.special[w]={setup:function(){var Q;if(Yd(this,w,!0),!Fe.documentMode)return!1;(Q=fr.get(this,I))||this.addEventListener(I,H),fr.set(this,I,(Q||0)+1)},trigger:function(){return Yd(this,w),!0},teardown:function(){var Q;if(!Fe.documentMode)return!1;(Q=fr.get(this,I)-1)?fr.set(this,I,Q):(this.removeEventListener(I,H),fr.remove(this,I))},_default:function(Q){return fr.get(Q.target,w)},delegateType:I},K.event.special[I]={setup:function(){var Q=this.ownerDocument||this.document||this,_e=Fe.documentMode?this:Q,he=fr.get(_e,I);he||(Fe.documentMode?this.addEventListener(I,H):Q.addEventListener(w,H,!0)),fr.set(_e,I,(he||0)+1)},teardown:function(){var Q=this.ownerDocument||this.document||this,_e=Fe.documentMode?this:Q,he=fr.get(_e,I)-1;he?fr.set(_e,I,he):(Fe.documentMode?this.removeEventListener(I,H):Q.removeEventListener(w,H,!0),fr.remove(_e,I))}}}
vendor: 4,549 bytes, line 1
1),K.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(w,I){K.event.special[w]={delegateType:I,bindType:I,handle:function(H){var Q,he=H.relatedTarget,Ee=H.handleObj;return(!he||he!==this&&!K.contains(this,he))&&(H.type=Ee.origType,Q=Ee.handler.apply(this,arguments),H.type=I),Q}}}),K.fn.extend({on:function(w,I,H,Q){return du(this,w,I,H,Q)},one:function(w,I,H,Q){return du(this,w,I,H,Q,1)},off:function(w,I,H){var Q,_e;if(w&&w.preventDefault&&w.handleObj)return Q=w.handleObj,K(w.delegateTarget).off(Q.namespace?Q.origType+"."+Q.namespace:Q.origType,Q.selector,Q.handler),this;if("object"==typeof w){for(_e in w)this.off(_e,I,w[_e]);return this}return(!1===I||"function"==typeof I)&&(H=I,I=void 0),!1===H&&(H=Ol),this.each(function(){K.event.remove(this,w,H,I)})}});var bc=/<script|<style|<link/i,Jc=/checked\s*(?:[^=]|=\s*.checked.)/i,Ef=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function uu(w,I){return kn(w,"table")&&kn(11!==I.nodeType?I:I.firstChild,"tr")&&K(w).children("tbody")[0]||w}function fu(w){return w.type=(null!==w.getAttribute("type"))+"/"+w.type,w}function Qo(w){return"true/"===(w.type||"").slice(0,5)?w.type=w.type.slice(5):w.removeAttribute("type"),w}function sl(w,I){var H,Q,_e,Ee,_t,st;if(1===I.nodeType){if(fr.hasData(w)&&(st=fr.get(w).events))for(_e in fr.remove(I,"handle events"),st)for(H=0,Q=st[_e].length;H<Q;H++)K.event.add(I,_e,st[_e][H]);bo.hasData(w)&&(Ee=bo.access(w),_t=K.extend({},Ee),bo.set(I,_t))}}function Pf(w,I){var H=I.nodeName.toLowerCase();"input"===H&&Vd.test(w.type)?I.checked=w.checked:("input"===H||"textarea"===H)&&(I.defaultValue=w.defaultValue)}function Wd(w,I,H,Q){I=tn(I);var _e,he,Ee,_t,st,Xt,wn=0,$n=w.length,Zt=$n-1,Un=I[0],jr=Mt(Un);if(jr||$n>1&&"string"==typeof Un&&!Pt.checkClone&&Jc.test(Un))return w.each(function(gi){var mr=w.eq(gi);jr&&(I[0]=Un.call(this,gi,mr.html())),Wd(mr,I,H,Q)});if($n&&(he=(_e=Du(I,w[0].ownerDocument,!1,w,Q)).firstChild,1===_e.childNodes.length&&(_e=he),he||Q)){for(_t=(Ee=K.map(Ss(_e,"script"),fu)).length;wn<$n;wn++)st=_e,wn!==Zt&&(st=K.clone(st,!0,!0),_t&&K.merge(Ee,Ss(st,"script"))),H.call(w[wn],st,wn);if(_t)for(Xt=Ee[Ee.length-1].ownerDocument,K.map(Ee,Qo),wn=0;wn<_t;wn++)jc.test((st=Ee[wn]).type||"")&&!fr.access(st,"globalEval")&&K.contains(Xt,st)&&(st.src&&"module"!==(st.type||"").toLowerCase()?K._evalUrl&&!st.noModule&&K._evalUrl(st.src,{nonce:st.nonce||st.getAttribute("nonce")},Xt):dn(st.textContent.replace(Ef,""),st,Xt))}return w}function of(w,I,H){for(var Q,_e=I?K.filter(I,w):w,he=0;null!=(Q=_e[he]);he++)!H&&1===Q.nodeType&&K.cleanData(Ss(Q)),Q.parentNode&&(H&&ql(Q)&&zd(Ss(Q,"script")),Q.parentNode.removeChild(Q));return w}K.extend({htmlPrefilter:function(w){return w},clone:function(w,I,H){var Q,_e,he,Ee,_t=w.cloneNode(!0),st=ql(w);if(!(Pt.noCloneChecked||1!==w.nodeType&&11!==w.nodeType||K.isXMLDoc(w)))for(Ee=Ss(_t),Q=0,_e=(he=Ss(w)).length;Q<_e;Q++)Pf(he[Q],Ee[Q]);if(I)if(H)for(he=he||Ss(w),Ee=Ee||Ss(_t),Q=0,_e=he.length;Q<_e;Q++)sl(he[Q],Ee[Q]);else sl(w,_t);return(Ee=Ss(_t,"script")).length>0&&zd(Ee,!st&&Ss(w,"script")),_t},cleanData:function(w){for(var I,H,Q,_e=K.event.special,he=0;void 0!==(H=w[he]);he++)if(Kc(H)){if(I=H[fr.expando]){if(I.events)for(Q in I.events)_e[Q]?K.event.remove(H,Q):K.removeEvent(H,Q,I.handle);H[fr.expando]=void 0}H[bo.expando]&&(H[bo.expando]=void 0)}}}),K.fn.extend({detach:function(w){return of(this,w,!0)},remove:function(w){return of(this,w)},text:function(w){return aa(this,function(I){return void 0===I?K.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=I)})},null,w,arguments.length)},append:function(){return Wd(this,arguments,function(w){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||uu(this,w).appendChild(w)})},prepend:function(){return Wd(this,arguments,function(w){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var I=uu(this,w);I.insertBefore(w,I.firstChild)}})},before:function(){return Wd(this,arguments,function(w){this.parentNode&&this.parentNode.insertBefore(w,this)})},after:function(){return Wd(this,arguments,function(w){this.parentNode&&this.parentNode.insertBefore(w,this.nextSibling)})},empty:function(){for(var w,I=0;null!=(w=this[I]);I++)1===w.nodeType&&(K.cleanData(Ss(w,!1)),w.textContent="");return this},clone:function(w,I){return w=w??!1,I=I??w,this.map(function(){return K.clone(this,w,I)})},html:function(w){return aa(this,function(I){var H=this[0]||{},Q=0,_e=this.length;if(void 0===I&&1===H.nodeType)return H.innerHTML;
vendor: 4,447 bytes, line 1
1if("string"==typeof I&&!bc.test(I)&&!zs[(we.exec(I)||["",""])[1].toLowerCase()]){I=K.htmlPrefilter(I);try{for(;Q<_e;Q++)1===(H=this[Q]||{}).nodeType&&(K.cleanData(Ss(H,!1)),H.innerHTML=I);H=0}catch{}}H&&this.empty().append(I)},null,w,arguments.length)},replaceWith:function(){var w=[];return Wd(this,arguments,function(I){var H=this.parentNode;K.inArray(this,w)<0&&(K.cleanData(Ss(this)),H&&H.replaceChild(I,this))},w)}}),K.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(w,I){K.fn[w]=function(H){for(var Q,_e=[],he=K(H),Ee=he.length-1,_t=0;_t<=Ee;_t++)Q=_t===Ee?this:this.clone(!0),K(he[_t])[I](Q),e.apply(_e,Q.get());return this.pushStack(_e)}});var vd=new RegExp("^("+kr+")(?!px)[a-z%]+$","i"),Zc=/^--/,xd=function(w){var I=w.ownerDocument.defaultView;return(!I||!I.opener)&&(I=Ie),I.getComputedStyle(w)},Qc=function(w,I,H){var Q,_e,he={};for(_e in I)he[_e]=w.style[_e],w.style[_e]=I[_e];for(_e in Q=H.call(w),I)w.style[_e]=he[_e];return Q},Iu=new RegExp(ol.join("|"),"i");function yc(w,I,H){var Q,_e,he,Ee,_t=Zc.test(I),st=w.style;return(H=H||xd(w))&&(Ee=H.getPropertyValue(I)||H[I],_t&&Ee&&(Ee=Ee.replace(jn,"$1")||void 0),""===Ee&&!ql(w)&&(Ee=K.style(w,I)),!Pt.pixelBoxStyles()&&vd.test(Ee)&&Iu.test(I)&&(Q=st.width,_e=st.minWidth,he=st.maxWidth,st.minWidth=st.maxWidth=st.width=Ee,Ee=H.width,st.width=Q,st.minWidth=_e,st.maxWidth=he)),void 0!==Ee?Ee+"":Ee}function sc(w,I){return{get:function(){if(!w())return(this.get=I).apply(this,arguments);delete this.get}}}!function(){function w(){if(Xt){st.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Xt.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",gl.appendChild(st).appendChild(Xt);var wn=Ie.getComputedStyle(Xt);H="1%"!==wn.top,_t=12===I(wn.marginLeft),Xt.style.right="60%",he=36===I(wn.right),Q=36===I(wn.width),Xt.style.position="absolute",_e=12===I(Xt.offsetWidth/3),gl.removeChild(st),Xt=null}}function I(wn){return Math.round(parseFloat(wn))}var H,Q,_e,he,Ee,_t,st=Fe.createElement("div"),Xt=Fe.createElement("div");Xt.style&&(Xt.style.backgroundClip="content-box",Xt.cloneNode(!0).style.backgroundClip="",Pt.clearCloneStyle="content-box"===Xt.style.backgroundClip,K.extend(Pt,{boxSizingReliable:function(){return w(),Q},pixelBoxStyles:function(){return w(),he},pixelPosition:function(){return w(),H},reliableMarginLeft:function(){return w(),_t},scrollboxSize:function(){return w(),_e},reliableTrDimensions:function(){var wn,$n,Zt,Un;return null==Ee&&(wn=Fe.createElement("table"),$n=Fe.createElement("tr"),Zt=Fe.createElement("div"),wn.style.cssText="position:absolute;left:-11111px;border-collapse:separate",$n.style.cssText="box-sizing:content-box;border:1px solid",$n.style.height="1px",Zt.style.height="9px",Zt.style.display="block",gl.appendChild(wn).appendChild($n).appendChild(Zt),Un=Ie.getComputedStyle($n),Ee=parseInt(Un.height,10)+parseInt(Un.borderTopWidth,10)+parseInt(Un.borderBottomWidth,10)===$n.offsetHeight,gl.removeChild(wn)),Ee}}))}();var ed=["Webkit","Moz","ms"],ju=Fe.createElement("div").style,ll={};function Rc(w){return K.cssProps[w]||ll[w]||(w in ju?w:ll[w]=function Ru(w){for(var I=w[0].toUpperCase()+w.slice(1),H=ed.length;H--;)if((w=ed[H]+I)in ju)return w}(w)||w)}var Vr=/^(none|table(?!-c[ea]).+)/,bd={position:"absolute",visibility:"hidden",display:"block"},ro={letterSpacing:"0",fontWeight:"400"};function $d(w,I,H){var Q=$l.exec(I);return Q?Math.max(0,Q[2]-(H||0))+(Q[3]||"px"):I}function Lc(w,I,H,Q,_e,he){var Ee="width"===I?1:0,_t=0,st=0,Xt=0;if(H===(Q?"border":"content"))return 0;for(;Ee<4;Ee+=2)"margin"===H&&(Xt+=K.css(w,H+ol[Ee],!0,_e)),Q?("content"===H&&(st-=K.css(w,"padding"+ol[Ee],!0,_e)),"margin"!==H&&(st-=K.css(w,"border"+ol[Ee]+"Width",!0,_e))):(st+=K.css(w,"padding"+ol[Ee],!0,_e),"padding"!==H?st+=K.css(w,"border"+ol[Ee]+"Width",!0,_e):_t+=K.css(w,"border"+ol[Ee]+"Width",!0,_e));return!Q&&he>=0&&(st+=Math.max(0,Math.ceil(w["offset"+I[0].toUpperCase()+I.slice(1)]-he-st-_t-.5))||0),st+Xt}function td(w,I,H){var Q=xd(w),he=(!Pt.boxSizingReliable()||H)&&"border-box"===K.css(w,"boxSizing",!1,Q),Ee=he,_t=yc(w,I,Q),st="offset"+I[0].toUpperCase()+I.slice(1);if(vd.test(_t)){if(!H)return _t;_t="auto"}return(!Pt.boxSizingReliable()&&he||!Pt.reliableTrDimensions()&&kn(w,"tr")||"auto"===_t||!parseFloat(_t)&&"inline"===K.css(w,"dis
1play",!1,Q))&&w.getClientRects().length&&(he="border-box"===K.css(w,"boxSizing",!1,Q),(Ee=st in w)&&(_t=w[st])),(_t=parseFloat(_t)||0)+Lc(w,I,H||(he?"border":"content"),Ee,Q,_t)+"px"}function Sa(w,I,H,Q,_e){return new Sa.prototype.init(w,I,H,Q,_e)}K.extend({cssHooks:{opacity:{get:function(w,I){if(I){var H=yc(w,"opacity");return""===H?"1":H}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(w,I,H,Q){if(w&&3!==w.nodeType&&8!==w.nodeType&&w.style){var _e,he,Ee,_t=Ia(I),st=Zc.test(I),Xt=w.style;if(st||(I=Rc(_t)),Ee=K.cssHooks[I]||K.cssHooks[_t],void 0===H)return Ee&&"get"in Ee&&void 0!==(_e=Ee.get(w,!1,Q))?_e:Xt[I];if("string"==(he=typeof H)&&(_e=$l.exec(H))&&_e[1]&&(H=af(w,I,_e),he="number"),null==H||H!=H)return;"number"===he&&!st&&(H+=_e&&_e[3]||(K.cssNumber[_t]?"":"px")),!Pt.clearCloneStyle&&""===H&&0===I.indexOf("background")&&(Xt[I]="inherit"),(!Ee||!("set"in Ee)||void 0!==(H=Ee.set(w,H,Q)))&&(st?Xt.setProperty(I,H):Xt[I]=H)}},css:function(w,I,H,Q){var _e,he,Ee,_t=Ia(I);return Zc.test(I)||(I=Rc(_t)),(Ee=K.cssHooks[I]||K.cssHooks[_t])&&"get"in Ee&&(_e=Ee.get(w,!0,H)),void 0===_e&&(_e=yc(w,I,Q)),"normal"===_e&&I in ro&&(_e=ro[I]),""===H||H?(he=parseFloat(_e),!0===H||isFinite(he)?he||0:_e):_e}}),K.each(["height","width"],function(w,I){K.cssHooks[I]={get:function(H,Q,_e){if(Q)return!Vr.test(K.css(H,"display"))||H.getClientRects().length&&H.getBoundingClientRect().width?td(H,I,_e):Qc(H,bd,function(){return td(H,I,_e)})},set:function(H,Q,_e){var he,Ee=xd(H),_t=!Pt.scrollboxSize()&&"absolute"===Ee.position,Xt=(_t||_e)&&"border-box"===K.css(H,"boxSizing",!1,Ee),wn=_e?Lc(H,I,_e,Xt,Ee):0;return Xt&&_t&&(wn-=Math.ceil(H["offset"+I[0].toUpperCase()+I.slice(1)]-parseFloat(Ee[I])-Lc(H,I,"border",!1,Ee)-.5)),wn&&(he=$l.exec(Q))&&"px"!==(he[3]||"px")&&(H.style[I]=Q,Q=K.css(H,I)),$d(0,Q,wn)}}}),K.cssHooks.marginLeft=sc(Pt.reliableMarginLeft,function(w,I){if(I)return(parseFloat(yc(w,"marginLeft"))||w.getBoundingClientRect().left-Qc(w,{marginLeft:0},function(){return w.getBoundingClientRect().left}))+"px"}),K.each({margin:"",padding:"",border:"Width"},function(w,I){K.cssHooks[w+I]={expand:function(H){for(var Q=0,_e={},he="string"==typeof H?H.split(" "):[H];Q<4;Q++)_e[w+ol[Q]+I]=he[Q]||he[Q-2]||he[0];return _e}},"margin"!==w&&(K.cssHooks[w+I].set=$d)}),K.fn.extend({css:function(w,I){return aa(this,function(H,Q,_e){var he,Ee,_t={},st=0;if(Array.isArray(Q)){for(he=xd(H),Ee=Q.length;st<Ee;st++)_t[Q[st]]=K.css(H,Q[st],!1,he);return _t}return void 0!==_e?K.style(H,Q,_e):K.css(H,Q)},w,I,arguments.length>1)}}),K.Tween=Sa,Sa.prototype={constructor:Sa,init:function(w,I,H,Q,_e,he){this.elem=w,this.prop=H,this.easing=_e||K.easing._default,this.options=I,this.start=this.now=this.cur(),this.end=Q,this.unit=he||(K.cssNumber[H]?"":"px")},cur:function(){var w=Sa.propHooks[this.prop];return w&&w.get?w.get(this):Sa.propHooks._default.get(this)},run:function(w){var I,H=Sa.propHooks[this.prop];return this.pos=I=this.options.duration?K.easing[this.easing](w,this.options.duration*w,0,1,this.options.duration):w,this.now=(this.end-this.start)*I+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),H&&H.set?H.set(this):Sa.propHooks._default.set(this),this}},Sa.prototype.init.prototype=Sa.prototype,Sa.propHooks={_default:{get:function(w){var I;return 1!==w.elem.nodeType||null!=w.elem[w.prop]&&null==w.elem.style[w.prop]?w.elem[w.prop]:(I=K.css(w.elem,w.prop,""))&&"auto"!==I?I:0},set:function(w){K.fx.step[w.prop]?K.fx.step[w.prop](w):1!==w.elem.nodeType||!K.cssHooks[w.prop]&&null==w.elem.style[Rc(w.prop)]?w.elem[w.prop]=w.now:K.style(w.elem,w.prop,w.now+w.unit)}}},Sa.propHooks.scrollTop=Sa.propHooks.scrollLeft={set:function(w){w.elem.nodeType&&w.elem.parentNode&&(w.elem[w.prop]=w.now)}},K.easing={linear:function(w){return w},swing:function(w){return.5-Math.cos(w*Math.PI)/2},_default:"swing"},K.fx=Sa.prototype.init,K.fx.step={};var Xl,$a,qd=/^(?:toggle|show|hide)$/,Dl=/queueHooks$/;function Ps(){$a&&(!1===Fe.hidden&&Ie.requestAnimationFrame?Ie.requestAnimationFrame(Ps):Ie.setTimeout(Ps,K.fx.interval),K.fx.tick())}function Vo(){return Ie.setTimeout(function(){Xl=void 0}),Xl=Date.now()}function Xo(w,I){var H,Q=0,_e={height:w};for(I=I?1:0;Q<4;Q+=2-I)_e["margin"+(H=ol[Q])]=_e["padding"+H]=w;return I&&(_e.opacity=_e.width=w),_e}function as(w,I,H){for(var Q,_e=(Jn.tweeners[I]||[]).concat(Jn.tweeners["*"]),he=0,Ee=_e.length;he<Ee;he++)if(Q=_e[he].call(H,I,w))return Q}function Jn(w,I,H){var Q,_e,he=0,Ee=Jn.prefilters.length,_t=K.Deferred().always(function(){delete st.elem}),st=function(){if(_e)return!1;for(var $n=Xl||Vo(),Zt=Math.max(0,Xt.startTime+Xt.duration-$n),jr=1-(Zt/Xt.duration||0),gi=0,mr=Xt.tweens.length;gi<mr;gi++)Xt.tweens[gi].run(jr);return _t.notifyWith(w,[Xt,jr,Zt]),jr<1&&mr?Zt:(mr||_t.notifyWith(w,[Xt,1,0]),_t.resolveWith(w,[Xt]),!1)},Xt=_t.promise({elem:w,props:K.extend({},I),opts:K.extend(!0,{specialEasing:{},easing:K.easing._default},H),originalProperties:I,originalOptions:H,startTime:Xl||Vo(),duration:H.duration,tweens:[],createTween:function($n,Zt){var Un=K.Tween(w,Xt.opts,$n,Zt,Xt.opts.specialEasing[$n]||Xt.opts.easing);return Xt.tweens.push(Un),Un},stop:function($n){var Zt=0,Un=$n?Xt.tweens.length:0;if(_e)return this;for(_e=!0;Zt<Un;Zt++)Xt.tweens[Zt].run(1);return $n?(_t.notifyWith(w,[Xt,1,0]),_t.resolveWith(w,[Xt,$n])):_t.rejectWith(w,[Xt,$n]),this}}),wn=Xt.props;for(function Ye(w,I){var H,Q,_e,he,Ee;for(H in w)if(_e=I[Q=Ia(H)],he=w[H],Array.isArray(he)&&(_e=he[1],he=w[H]=he[0]),H!==Q&&(w[Q]=he,delete w[H]),(Ee=K.cssHooks[Q])&&"expand"in Ee)for(H in he=Ee.expand(he),delete w[Q],he)H in w||(w[H]=he[H],I[H]=_e);else I[Q]=_e}(wn,Xt.opts.specialEasing);he<Ee;he++)if(Q=Jn.prefilters[he].call(Xt,w,wn,Xt.opts))return Mt(Q.stop)&&(K._queueHooks(Xt.elem,Xt.opts.queue).stop=Q.stop.bind(Q)),Q;return K.map(wn,as,Xt),Mt(Xt.opts.start)&&Xt.opts.start.call(w,Xt),Xt.progress(Xt.opts.progress).done(Xt.opts.done,Xt.opts.complete).fail(Xt.opts.fail).always(Xt.opts.always),K.fx.timer(K.extend(st,{elem:w,anim:Xt,queue:Xt.opts.queue})),Xt}K.Animation=K.extend(Jn,{tweeners:{"*":[function(w,I){var H=this.createTween(w,I);return af(H.elem,w,$l.exec(I),H),H}]},tweener:function(w,I){Mt(w)?(I=w,w=["*"]):w=w.match(Jo);for(var H,Q=0,_e=w.length;Q<_e;Q++)(Jn.tweeners[H=w[Q]]=Jn.tweeners[H]||[]).unshift(I)},prefilters:[function os(w,I,H){var Q,_e,he,Ee,_t,st,Xt,wn,$n="width"in I||"height"in I,Zt=this,Un={},jr=w.style,gi=w.nodeType&&cu(w),mr=fr.get(w,"fxshow");for(Q in H.queue||(null==(Ee=K._queueHooks(w,"fx")).unqueued&&(Ee.unqueued=0,_t=Ee.empty.fire,Ee.empty.fire=function(){Ee.unqueued||_t()}),Ee.unqueued++,Zt.always(function(){Zt.always(function(){Ee.unqueued--,K.queue(w,"fx").length||Ee.empty.fire()})})),I)if(qd.test(_e=I[Q])){if(delete I[Q],he=he||"toggle"===_e,_e===(gi?"hide":"show")){if("show"!==_e||!mr||void 0===mr[Q])continue;gi=!0}Un[Q]=mr&&mr[Q]||K.style(w,Q)}
vendor: 6,589 bytes, line 1
1if((st=!K.isEmptyObject(I))||!K.isEmptyObject(Un))for(Q in $n&&1===w.nodeType&&(H.overflow=[jr.overflow,jr.overflowX,jr.overflowY],null==(Xt=mr&&mr.display)&&(Xt=fr.get(w,"display")),"none"===(wn=K.css(w,"display"))&&(Xt?wn=Xt:(to([w],!0),Xt=w.style.display||Xt,wn=K.css(w,"display"),to([w]))),("inline"===wn||"inline-block"===wn&&null!=Xt)&&"none"===K.css(w,"float")&&(st||(Zt.done(function(){jr.display=Xt}),null==Xt&&(Xt="none"===(wn=jr.display)?"":wn)),jr.display="inline-block")),H.overflow&&(jr.overflow="hidden",Zt.always(function(){jr.overflow=H.overflow[0],jr.overflowX=H.overflow[1],jr.overflowY=H.overflow[2]})),st=!1,Un)st||(mr?"hidden"in mr&&(gi=mr.hidden):mr=fr.access(w,"fxshow",{display:Xt}),he&&(mr.hidden=!gi),gi&&to([w],!0),Zt.done(function(){for(Q in gi||to([w]),fr.remove(w,"fxshow"),Un)K.style(w,Q,Un[Q])})),st=as(gi?mr[Q]:0,Q,Zt),Q in mr||(mr[Q]=st.start,gi&&(st.end=st.start,st.start=0))}],prefilter:function(w,I){I?Jn.prefilters.unshift(w):Jn.prefilters.push(w)}}),K.speed=function(w,I,H){var Q=w&&"object"==typeof w?K.extend({},w):{complete:H||!H&&I||Mt(w)&&w,duration:w,easing:H&&I||I&&!Mt(I)&&I};return K.fx.off?Q.duration=0:"number"!=typeof Q.duration&&(Q.duration=Q.duration in K.fx.speeds?K.fx.speeds[Q.duration]:K.fx.speeds._default),(null==Q.queue||!0===Q.queue)&&(Q.queue="fx"),Q.old=Q.complete,Q.complete=function(){Mt(Q.old)&&Q.old.call(this),Q.queue&&K.dequeue(this,Q.queue)},Q},K.fn.extend({fadeTo:function(w,I,H,Q){return this.filter(cu).css("opacity",0).show().end().animate({opacity:I},w,H,Q)},animate:function(w,I,H,Q){var _e=K.isEmptyObject(w),he=K.speed(I,H,Q),Ee=function(){var _t=Jn(this,K.extend({},w),he);(_e||fr.get(this,"finish"))&&_t.stop(!0)};return Ee.finish=Ee,_e||!1===he.queue?this.each(Ee):this.queue(he.queue,Ee)},stop:function(w,I,H){var Q=function(_e){var he=_e.stop;delete _e.stop,he(H)};return"string"!=typeof w&&(H=I,I=w,w=void 0),I&&this.queue(w||"fx",[]),this.each(function(){var _e=!0,he=null!=w&&w+"queueHooks",Ee=K.timers,_t=fr.get(this);if(he)_t[he]&&_t[he].stop&&Q(_t[he]);else for(he in _t)_t[he]&&_t[he].stop&&Dl.test(he)&&Q(_t[he]);for(he=Ee.length;he--;)Ee[he].elem===this&&(null==w||Ee[he].queue===w)&&(Ee[he].anim.stop(H),_e=!1,Ee.splice(he,1));(_e||!H)&&K.dequeue(this,w)})},finish:function(w){return!1!==w&&(w=w||"fx"),this.each(function(){var I,H=fr.get(this),Q=H[w+"queue"],_e=H[w+"queueHooks"],he=K.timers,Ee=Q?Q.length:0;for(H.finish=!0,K.queue(this,w,[]),_e&&_e.stop&&_e.stop.call(this,!0),I=he.length;I--;)he[I].elem===this&&he[I].queue===w&&(he[I].anim.stop(!0),he.splice(I,1));for(I=0;I<Ee;I++)Q[I]&&Q[I].finish&&Q[I].finish.call(this);delete H.finish})}}),K.each(["toggle","show","hide"],function(w,I){var H=K.fn[I];K.fn[I]=function(Q,_e,he){return null==Q||"boolean"==typeof Q?H.apply(this,arguments):this.animate(Xo(I,!0),Q,_e,he)}}),K.each({slideDown:Xo("show"),slideUp:Xo("hide"),slideToggle:Xo("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(w,I){K.fn[w]=function(H,Q,_e){return this.animate(I,H,Q,_e)}}),K.timers=[],K.fx.tick=function(){var w,I=0,H=K.timers;for(Xl=Date.now();I<H.length;I++)!(w=H[I])()&&H[I]===w&&H.splice(I--,1);H.length||K.fx.stop(),Xl=void 0},K.fx.timer=function(w){K.timers.push(w),K.fx.start()},K.fx.interval=13,K.fx.start=function(){$a||($a=!0,Ps())},K.fx.stop=function(){$a=null},K.fx.speeds={slow:600,fast:200,_default:400},K.fn.delay=function(w,I){return w=K.fx&&K.fx.speeds[w]||w,this.queue(I=I||"fx",function(H,Q){var _e=Ie.setTimeout(H,w);Q.stop=function(){Ie.clearTimeout(_e)}})},function(){var w=Fe.createElement("input"),H=Fe.createElement("select").appendChild(Fe.createElement("option"));w.type="checkbox",Pt.checkOn=""!==w.value,Pt.optSelected=H.selected,(w=Fe.createElement("input")).value="t",w.type="radio",Pt.radioValue="t"===w.value}();var ee,bt=K.expr.attrHandle;K.fn.extend({attr:function(w,I){return aa(this,K.attr,w,I,arguments.length>1)},removeAttr:function(w){return this.each(function(){K.removeAttr(this,w)})}}),K.extend({attr:function(w,I,H){var Q,_e,he=w.nodeType;if(3!==he&&8!==he&&2!==he)return typeof w.getAttribute>"u"?K.prop(w,I,H):((1!==he||!K.isXMLDoc(w))&&(_e=K.attrHooks[I.toLowerCase()]||(K.expr.match.bool.test(I)?ee:void 0)),void 0!==H?null===H?void K.removeAttr(w,I):_e&&"set"in _e&&void 0!==(Q=_e.set(w,H,I))?Q:(w.setAttribute(I,H+""),H):_e&&"get"in _e&&null!==(Q=_e.get(w,I))?Q:(Q=K.find.attr(w,I))??void 0)},attrHooks:{type:{set:function(w,I){if(!Pt.radioValue&&"radio"===I&&kn(w,"input")){var H=w.value;return w.setAttribute("type",I),H&&(w.value=H),I}}}},removeAttr:function(w,I){var H,Q=0,_e=I&&I.match(Jo);if(_e&&1===w.nodeType)for(;H=_e[Q++];)w.removeAttribute(H)}}),ee={set:function(w,I,H){return!1===I?K.removeAttr(w,H):w.setAttribute(H,H),H}},K.each(K.expr.match.bool.source.match(/\w+/g),function(w,I){var H=bt[I]||K.find.attr;bt[I]=function(Q,_e,he){var Ee,_t,st=_e.toLowerCase();return he||(_t=bt[st],bt[st]=Ee,Ee=null!=H(Q,_e,he)?st:null,bt[st]=_t),Ee}});var Be=/^(?:input|select|textarea|button)$/i,J=/^(?:a|area)$/i;function me(w){return(w.match(Jo)||[]).join(" ")}function se(w){return w.getAttribute&&w.getAttribute("class")||""}function Ue(w){return Array.isArray(w)?w:"string"==typeof w&&w.match(Jo)||[]}K.fn.extend({prop:function(w,I){return aa(this,K.prop,w,I,arguments.length>1)},removeProp:function(w){return this.each(function(){delete this[K.propFix[w]||w]})}}),K.extend({prop:function(w,I,H){var Q,_e,he=w.nodeType;if(3!==he&&8!==he&&2!==he)return(1!==he||!K.isXMLDoc(w))&&(_e=K.propHooks[I=K.propFix[I]||I]),void 0!==H?_e&&"set"in _e&&void 0!==(Q=_e.set(w,H,I))?Q:w[I]=H:_e&&"get"in _e&&null!==(Q=_e.get(w,I))?Q:w[I]},propHooks:{tabIndex:{get:function(w){var I=K.find.attr(w,"tabindex");return I?parseInt(I,10):Be.test(w.nodeName)||J.test(w.nodeName)&&w.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),Pt.optSelected||(K.propHooks.selected={get:function(w){return null},set:function(w){}}),K.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){K.propFix[this.toLowerCase()]=this}),K.fn.extend({addClass:function(w){var I,H,Q,_e,he,Ee;return Mt(w)?this.each(function(_t){K(this).addClass(w.call(this,_t,se(this)))}):(I=Ue(w)).length?this.each(function(){if(Q=se(this),H=1===this.nodeType&&" "+me(Q)+" "){for(he=0;he<I.length;he++)H.indexOf(" "+(_e=I[he])+" ")<0&&(H+=_e+" ");Ee=me(H),Q!==Ee&&this.setAttribute("class",Ee)}}):this},removeClass:function(w){var I,H,Q,_e,he,Ee;return Mt(w)?this.each(function(_t){K(this).removeClass(w.call(this,_t,se(this)))}
vendor: 5,403 bytes, line 1
1):arguments.length?(I=Ue(w)).length?this.each(function(){if(Q=se(this),H=1===this.nodeType&&" "+me(Q)+" "){for(he=0;he<I.length;he++)for(_e=I[he];H.indexOf(" "+_e+" ")>-1;)H=H.replace(" "+_e+" "," ");Ee=me(H),Q!==Ee&&this.setAttribute("class",Ee)}}):this:this.attr("class","")},toggleClass:function(w,I){var H,Q,_e,he,Ee=typeof w,_t="string"===Ee||Array.isArray(w);return Mt(w)?this.each(function(st){K(this).toggleClass(w.call(this,st,se(this),I),I)}):"boolean"==typeof I&&_t?I?this.addClass(w):this.removeClass(w):(H=Ue(w),this.each(function(){if(_t)for(he=K(this),_e=0;_e<H.length;_e++)he.hasClass(Q=H[_e])?he.removeClass(Q):he.addClass(Q);else(void 0===w||"boolean"===Ee)&&((Q=se(this))&&fr.set(this,"__className__",Q),this.setAttribute&&this.setAttribute("class",Q||!1===w?"":fr.get(this,"__className__")||""))}))},hasClass:function(w){var I,H,Q=0;for(I=" "+w+" ";H=this[Q++];)if(1===H.nodeType&&(" "+me(se(H))+" ").indexOf(I)>-1)return!0;return!1}});var nn=/\r/g;K.fn.extend({val:function(w){var I,H,Q,_e=this[0];return arguments.length?(Q=Mt(w),this.each(function(he){var Ee;1===this.nodeType&&(null==(Ee=Q?w.call(this,he,K(this).val()):w)?Ee="":"number"==typeof Ee?Ee+="":Array.isArray(Ee)&&(Ee=K.map(Ee,function(_t){return null==_t?"":_t+""})),(!(I=K.valHooks[this.type]||K.valHooks[this.nodeName.toLowerCase()])||!("set"in I)||void 0===I.set(this,Ee,"value"))&&(this.value=Ee))})):_e?(I=K.valHooks[_e.type]||K.valHooks[_e.nodeName.toLowerCase()])&&"get"in I&&void 0!==(H=I.get(_e,"value"))?H:"string"==typeof(H=_e.value)?H.replace(nn,""):H??"":void 0}}),K.extend({valHooks:{option:{get:function(w){return K.find.attr(w,"value")??me(K.text(w))}},select:{get:function(w){var I,H,Q,_e=w.options,he=w.selectedIndex,Ee="select-one"===w.type,_t=Ee?null:[],st=Ee?he+1:_e.length;for(Q=he<0?st:Ee?he:0;Q<st;Q++)if(((H=_e[Q]).selected||Q===he)&&!H.disabled&&(!H.parentNode.disabled||!kn(H.parentNode,"optgroup"))){if(I=K(H).val(),Ee)return I;_t.push(I)}return _t},set:function(w,I){for(var H,Q,_e=w.options,he=K.makeArray(I),Ee=_e.length;Ee--;)((Q=_e[Ee]).selected=K.inArray(K.valHooks.option.get(Q),he)>-1)&&(H=!0);return H||(w.selectedIndex=-1),he}}}}),K.each(["radio","checkbox"],function(){K.valHooks[this]={set:function(w,I){if(Array.isArray(I))return w.checked=K.inArray(K(w).val(),I)>-1}},Pt.checkOn||(K.valHooks[this].get=function(w){return null===w.getAttribute("value")?"on":w.value})});var fn=Ie.location,Ci={guid:Date.now()},Di=/\?/;K.parseXML=function(w){var I,H;if(!w||"string"!=typeof w)return null;try{I=(new Ie.DOMParser).parseFromString(w,"text/xml")}catch{}return H=I&&I.getElementsByTagName("parsererror")[0],(!I||H)&&K.error("Invalid XML: "+(H?K.map(H.childNodes,function(Q){return Q.textContent}).join("\n"):w)),I};var or=/^(?:focusinfocus|focusoutblur)$/,oa=function(w){w.stopPropagation()};K.extend(K.event,{trigger:function(w,I,H,Q){var _e,he,Ee,_t,st,Xt,wn,$n,Zt=[H||Fe],Un=Pn.call(w,"type")?w.type:w,jr=Pn.call(w,"namespace")?w.namespace.split("."):[];if(he=$n=Ee=H=H||Fe,3!==H.nodeType&&8!==H.nodeType&&!or.test(Un+K.event.triggered)&&(Un.indexOf(".")>-1&&(jr=Un.split("."),Un=jr.shift(),jr.sort()),st=Un.indexOf(":")<0&&"on"+Un,(w=w[K.expando]?w:new K.Event(Un,"object"==typeof w&&w)).isTrigger=Q?2:3,w.namespace=jr.join("."),w.rnamespace=w.namespace?new RegExp("(^|\\.)"+jr.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,w.result=void 0,w.target||(w.target=H),I=null==I?[w]:K.makeArray(I,[w]),wn=K.event.special[Un]||{},Q||!wn.trigger||!1!==wn.trigger.apply(H,I))){if(!Q&&!wn.noBubble&&!Dt(H)){for(or.test((_t=wn.delegateType||Un)+Un)||(he=he.parentNode);he;he=he.parentNode)Zt.push(he),Ee=he;Ee===(H.ownerDocument||Fe)&&Zt.push(Ee.defaultView||Ee.parentWindow||Ie)}for(_e=0;(he=Zt[_e++])&&!w.isPropagationStopped();)$n=he,w.type=_e>1?_t:wn.bindType||Un,(Xt=(fr.get(he,"events")||Object.create(null))[w.type]&&fr.get(he,"handle"))&&Xt.apply(he,I),(Xt=st&&he[st])&&Xt.apply&&Kc(he)&&(w.result=Xt.apply(he,I),!1===w.result&&w.preventDefault());return w.type=Un,!Q&&!w.isDefaultPrevented()&&(!wn._default||!1===wn._default.apply(Zt.pop(),I))&&Kc(H)&&st&&Mt(H[Un])&&!Dt(H)&&((Ee=H[st])&&(H[st]=null),K.event.triggered=Un,w.isPropagationStopped()&&$n.addEventListener(Un,oa),H[Un](),w.isPropagationStopped()&&$n.removeEventListener(Un,oa),K.event.triggered=void 0,Ee&&(H[st]=Ee)),w.result}},simulate:function(w,I,H){var Q=K.extend(new K.Event,H,{type:w,isSimulated:!0});K.event.trigger(Q,null,I)}}),K.fn.extend({trigger:function(w,I){return this.each(function(){K.event.trigger(w,I,this)})},triggerHandler:function(w,I){var H=this[0];if(H)return K.event.trigger(w,I,H,!0)}});var Hr=/\[\]$/,Ea=/\r?\n/g,xr=/^(?:submit|button|image|reset|file)$/i,Fa=/^(?:input|select|textarea|keygen)/i;function hs(w,I,H,Q){var _e;if(Array.isArray(I))K.each(I,function(he,Ee){H||Hr.test(w)?Q(w,Ee):hs(w+"["+("object"==typeof Ee&&null!=Ee?he:"")+"]",Ee,H,Q)});else if(H||"object"!==un(I))Q(w,I);else for(_e in I)hs(w+"["+_e+"]",I[_e],H,Q)}K.param=function(w,I){var H,Q=[],_e=function(he,Ee){var _t=Mt(Ee)?Ee():Ee;Q[Q.length]=encodeURIComponent(he)+"="+encodeURIComponent(_t??"")};if(null==w)return"";if(Array.isArray(w)||w.jquery&&!K.isPlainObject(w))K.each(w,function(){_e(this.name,this.value)});else for(H in w)hs(H,w[H],I,_e);return Q.join("&")},K.fn.extend({serialize:function(){return K.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var w=K.prop(this,"elements");
vendor: 17,789 bytes, line 1
1return w?K.makeArray(w):this}).filter(function(){var w=this.type;return this.name&&!K(this).is(":disabled")&&Fa.test(this.nodeName)&&!xr.test(w)&&(this.checked||!Vd.test(w))}).map(function(w,I){var H=K(this).val();return null==H?null:Array.isArray(H)?K.map(H,function(Q){return{name:I.name,value:Q.replace(Ea,"\r\n")}}):{name:I.name,value:H.replace(Ea,"\r\n")}}).get()}});var Ka=/%20/g,nd=/#.*$/,Wr=/([?&])_=[^&]*/,Hl=/^(.*?):[ \t]*([^\r\n]*)$/gm,sf=/^(?:GET|HEAD)$/,Ba=/^\/\//,lo={},Hf={},lf="*/".concat("*"),Oo=Fe.createElement("a");function zo(w){return function(I,H){"string"!=typeof I&&(H=I,I="*");var Q,_e=0,he=I.toLowerCase().match(Jo)||[];if(Mt(H))for(;Q=he[_e++];)"+"===Q[0]?(Q=Q.slice(1)||"*",(w[Q]=w[Q]||[]).unshift(H)):(w[Q]=w[Q]||[]).push(H)}}function Uo(w,I,H,Q){var _e={},he=w===Hf;function Ee(_t){var st;return _e[_t]=!0,K.each(w[_t]||[],function(Xt,wn){var $n=wn(I,H,Q);return"string"!=typeof $n||he||_e[$n]?he?!(st=$n):void 0:(I.dataTypes.unshift($n),Ee($n),!1)}),st}return Ee(I.dataTypes[0])||!_e["*"]&&Ee("*")}function cf(w,I){var H,Q,_e=K.ajaxSettings.flatOptions||{};for(H in I)void 0!==I[H]&&((_e[H]?w:Q||(Q={}))[H]=I[H]);return Q&&K.extend(!0,w,Q),w}Oo.href=fn.href,K.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:fn.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(fn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":lf,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":K.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(w,I){return I?cf(cf(w,K.ajaxSettings),I):cf(K.ajaxSettings,w)},ajaxPrefilter:zo(lo),ajaxTransport:zo(Hf),ajax:function(w,I){"object"==typeof w&&(I=w,w=void 0);var H,Q,_e,he,Ee,_t,st,Xt,wn,$n,Zt=K.ajaxSetup({},I=I||{}),Un=Zt.context||Zt,jr=Zt.context&&(Un.nodeType||Un.jquery)?K(Un):K.event,gi=K.Deferred(),mr=K.Callbacks("once memory"),Co=Zt.statusCode||{},ms={},lc={},_l="canceled",Qr={readyState:0,getResponseHeader:function(ba){var wo;if(st){if(!he)for(he={};wo=Hl.exec(_e);)he[wo[1].toLowerCase()+" "]=(he[wo[1].toLowerCase()+" "]||[]).concat(wo[2]);wo=he[ba.toLowerCase()+" "]}return null==wo?null:wo.join(", ")},getAllResponseHeaders:function(){return st?_e:null},setRequestHeader:function(ba,wo){return null==st&&(ba=lc[ba.toLowerCase()]=lc[ba.toLowerCase()]||ba,ms[ba]=wo),this},overrideMimeType:function(ba){return null==st&&(Zt.mimeType=ba),this},statusCode:function(ba){var wo;if(ba)if(st)Qr.always(ba[Qr.status]);else for(wo in ba)Co[wo]=[Co[wo],ba[wo]];return this},abort:function(ba){var wo=ba||_l;return H&&H.abort(wo),ko(0,wo),this}};if(gi.promise(Qr),Zt.url=((w||Zt.url||fn.href)+"").replace(Ba,fn.protocol+"//"),Zt.type=I.method||I.type||Zt.method||Zt.type,Zt.dataTypes=(Zt.dataType||"*").toLowerCase().match(Jo)||[""],null==Zt.crossDomain){_t=Fe.createElement("a");try{_t.href=Zt.url,_t.href=_t.href,Zt.crossDomain=Oo.protocol+"//"+Oo.host!=_t.protocol+"//"+_t.host}catch{Zt.crossDomain=!0}}if(Zt.data&&Zt.processData&&"string"!=typeof Zt.data&&(Zt.data=K.param(Zt.data,Zt.traditional)),Uo(lo,Zt,I,Qr),st)return Qr;for(wn in(Xt=K.event&&Zt.global)&&0==K.active++&&K.event.trigger("ajaxStart"),Zt.type=Zt.type.toUpperCase(),Zt.hasContent=!sf.test(Zt.type),Q=Zt.url.replace(nd,""),Zt.hasContent?Zt.data&&Zt.processData&&0===(Zt.contentType||"").indexOf("application/x-www-form-urlencoded")&&(Zt.data=Zt.data.replace(Ka,"+")):($n=Zt.url.slice(Q.length),Zt.data&&(Zt.processData||"string"==typeof Zt.data)&&(Q+=(Di.test(Q)?"&":"?")+Zt.data,delete Zt.data),!1===Zt.cache&&(Q=Q.replace(Wr,"$1"),$n=(Di.test(Q)?"&":"?")+"_="+Ci.guid+++$n),Zt.url=Q+$n),Zt.ifModified&&(K.lastModified[Q]&&Qr.setRequestHeader("If-Modified-Since",K.lastModified[Q]),K.etag[Q]&&Qr.setRequestHeader("If-None-Match",K.etag[Q])),(Zt.data&&Zt.hasContent&&!1!==Zt.contentType||I.contentType)&&Qr.setRequestHeader("Content-Type",Zt.contentType),Qr.setRequestHeader("Accept",Zt.dataTypes[0]&&Zt.accepts[Zt.dataTypes[0]]?Zt.accepts[Zt.dataTypes[0]]+("*"!==Zt.dataTypes[0]?", "+lf+"; q=0.01":""):Zt.accepts["*"]),Zt.headers)Qr.setRequestHeader(wn,Zt.headers[wn]);if(Zt.beforeSend&&(!1===Zt.beforeSend.call(Un,Qr,Zt)||st))return Qr.abort();if(_l="abort",mr.add(Zt.complete),Qr.done(Zt.success),Qr.fail(Zt.error),H=Uo(Hf,Zt,I,Qr)){if(Qr.readyState=1,Xt&&jr.trigger("ajaxSend",[Qr,Zt]),st)return Qr;Zt.async&&Zt.timeout>0&&(Ee=Ie.setTimeout(function(){Qr.abort("timeout")},Zt.timeout));try{st=!1,H.send(ms,ko)}catch(ba){if(st)throw ba;ko(-1,ba)}}else ko(-1,"No Transport");function ko(ba,wo,Nu,Kl){var Us,Il,Jl,ia,qa,Ma=wo;st||(st=!0,Ee&&Ie.clearTimeout(Ee),H=void 0,_e=Kl||"",Qr.readyState=ba>0?4:0,Us=ba>=200&&ba<300||304===ba,Nu&&(ia=function Kf(w,I,H){for(var Q,_e,he,Ee,_t=w.contents,st=w.dataTypes;"*"===st[0];)st.shift(),void 0===Q&&(Q=w.mimeType||I.getResponseHeader("Content-Type"));if(Q)for(_e in _t)if(_t[_e]&&_t[_e].test(Q)){st.unshift(_e);break}if(st[0]in H)he=st[0];else{for(_e in H){if(!st[0]||w.converters[_e+" "+st[0]]){he=_e;break}Ee||(Ee=_e)}he=he||Ee}if(he)return he!==st[0]&&st.unshift(he),H[he]}(Zt,Qr,Nu)),!Us&&K.inArray("script",Zt.dataTypes)>-1&&K.inArray("json",Zt.dataTypes)<0&&(Zt.converters["text script"]=function(){}),ia=function Jf(w,I,H,Q){var _e,he,Ee,_t,st,Xt={},wn=w.dataTypes.slice();if(wn[1])for(Ee in w.converters)Xt[Ee.toLowerCase()]=w.converters[Ee];for(he=wn.shift();he;)if(w.responseFields[he]&&(H[w.responseFields[he]]=I),!st&&Q&&w.dataFilter&&(I=w.dataFilter(I,w.dataType)),st=he,he=wn.shift())if("*"===he)he=st;else if("*"!==st&&st!==he){if(!(Ee=Xt[st+" "+he]||Xt["* "+he]))for(_e in Xt)if((_t=_e.split(" "))[1]===he&&(Ee=Xt[st+" "+_t[0]]||Xt["* "+_t[0]])){!0===Ee?Ee=Xt[_e]:!0!==Xt[_e]&&(he=_t[0],wn.unshift(_t[1]));break}if(!0!==Ee)if(Ee&&w.throws)I=Ee(I);else try{I=Ee(I)}catch($n){return{state:"parsererror",error:Ee?$n:"No conversion from "+st+" to "+he}}}return{state:"success",data:I}}(Zt,ia,Qr,Us),Us?(Zt.ifModified&&((qa=Qr.getResponseHeader("Last-Modified"))&&(K.lastModified[Q]=qa),(qa=Qr.getResponseHeader("etag"))&&(K.etag[Q]=qa)),204===ba||"HEAD"===Zt.type?Ma="nocontent":304===ba?Ma="notmodified":(Ma=ia.state,Il=ia.data,Us=!(Jl=ia.error))):(Jl=Ma,(ba||!Ma)&&(Ma="error",ba<0&&(ba=0))),Qr.status=ba,Qr.statusText=(wo||Ma)+"",Us?gi.resolveWith(Un,[Il,Ma,Qr]):gi.rejectWith(Un,[Qr,Ma,Jl]),Qr.statusCode(Co),Co=void 0,Xt&&jr.trigger(Us?"ajaxSuccess":"ajaxError",[Qr,Zt,Us?Il:Jl]),mr.fireWith(Un,[Qr,Ma]),Xt&&(jr.trigger("ajaxComplete",[Qr,Zt]),--K.active||K.event.trigger("ajaxStop")))}return Qr},getJSON:function(w,I,H){return K.get(w,I,H,"json")},getScript:function(w,I){return K.get(w,void 0,I,"script")}}),K.each(["get","post"],function(w,I){K[I]=function(H,Q,_e,he){return Mt(Q)&&(he=he||_e,_e=Q,Q=void 0),K.ajax(K.extend({url:H,type:I,dataType:he,data:Q,success:_e},K.isPlainObject(H)&&H))}}),K.ajaxPrefilter(function(w){var I;for(I in w.headers)"content-type"===I.toLowerCase()&&(w.contentType=w.headers[I]||"")}),K._evalUrl=function(w,I,H){return K.ajax({url:w,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(Q){K.globalEval(Q,I,H)}})},K.fn.extend({wrapAll:function(w){var I;return this[0]&&(Mt(w)&&(w=w.call(this[0])),I=K(w,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&I.insertBefore(this[0]),I.map(function(){for(var H=this;H.firstElementChild;)H=H.firstElementChild;return H}).append(this)),this},wrapInner:function(w){return Mt(w)?this.each(function(I){K(this).wrapInner(w.call(this,I))}):this.each(function(){var I=K(this),H=I.contents();H.length?H.wrapAll(w):I.append(w)})},wrap:function(w){var I=Mt(w);return this.each(function(H){K(this).wrapAll(I?w.call(this,H):w)})},unwrap:function(w){return this.parent(w).not("body").each(function(){K(this).replaceWith(this.childNodes)}),this}}),K.expr.pseudos.hidden=function(w){return!K.expr.pseudos.visible(w)},K.expr.pseudos.visible=function(w){return!!(w.offsetWidth||w.offsetHeight||w.getClientRects().length)},K.ajaxSettings.xhr=function(){try{return new Ie.XMLHttpRequest}catch{}};var es={0:200,1223:204},id=K.ajaxSettings.xhr();Pt.cors=!!id&&"withCredentials"in id,Pt.ajax=id=!!id,K.ajaxTransport(function(w){var I,H;if(Pt.cors||id&&!w.crossDomain)return{send:function(Q,_e){var he,Ee=w.xhr();if(Ee.open(w.type,w.url,w.async,w.username,w.password),w.xhrFields)for(he in w.xhrFields)Ee[he]=w.xhrFields[he];for(he in w.mimeType&&Ee.overrideMimeType&&Ee.overrideMimeType(w.mimeType),!w.crossDomain&&!Q["X-Requested-With"]&&(Q["X-Requested-With"]="XMLHttpRequest"),Q)Ee.setRequestHeader(he,Q[he]);I=function(_t){return function(){I&&(I=H=Ee.onload=Ee.onerror=Ee.onabort=Ee.ontimeout=Ee.onreadystatechange=null,"abort"===_t?Ee.abort():"error"===_t?"number"!=typeof Ee.status?_e(0,"error"):_e(Ee.status,Ee.statusText):_e(es[Ee.status]||Ee.status,Ee.statusText,"text"!==(Ee.responseType||"text")||"string"!=typeof Ee.responseText?{binary:Ee.response}:{text:Ee.responseText},Ee.getAllResponseHeaders()))}},Ee.onload=I(),H=Ee.onerror=Ee.ontimeout=I("error"),void 0!==Ee.onabort?Ee.onabort=H:Ee.onreadystatechange=function(){4===Ee.readyState&&Ie.setTimeout(function(){I&&H()})},I=I("abort");try{Ee.send(w.hasContent&&w.data||null)}catch(_t){if(I)throw _t}},abort:function(){I&&I()}}}),K.ajaxPrefilter(function(w){w.crossDomain&&(w.contents.script=!1)}),K.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(w){return K.globalEval(w),w}}}),K.ajaxPrefilter("script",function(w){void 0===w.cache&&(w.cache=!1),w.crossDomain&&(w.type="GET")}),K.ajaxTransport("script",function(w){var I,H;if(w.crossDomain||w.scriptAttrs)return{send:function(Q,_e){I=K("<script>").attr(w.scriptAttrs||{}).prop({charset:w.scriptCharset,src:w.url}).on("load error",H=function(he){I.remove(),H=null,he&&_e("error"===he.type?404:200,he.type)}),Fe.head.appendChild(I[0])},abort:function(){H&&H()}}});var w,Xd=[],Hd=/(=)\?(?=&|$)|\?\?/;K.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var w=Xd.pop()||K.expando+"_"+Ci.guid++;return this[w]=!0,w}}),K.ajaxPrefilter("json jsonp",function(w,I,H){var Q,_e,he,Ee=!1!==w.jsonp&&(Hd.test(w.url)?"url":"string"==typeof w.data&&0===(w.contentType||"").indexOf("application/x-www-form-urlencoded")&&Hd.test(w.data)&&"data");if(Ee||"jsonp"===w.dataTypes[0])return Q=w.jsonpCallback=Mt(w.jsonpCallback)?w.jsonpCallback():w.jsonpCallback,Ee?w[Ee]=w[Ee].replace(Hd,"$1"+Q):!1!==w.jsonp&&(w.url+=(Di.test(w.url)?"&":"?")+w.jsonp+"="+Q),w.converters["script json"]=function(){return he||K.error(Q+" was not called"),he[0]},w.dataTypes[0]="json",_e=Ie[Q],Ie[Q]=function(){he=arguments},H.always(function(){void 0===_e?K(Ie).removeProp(Q):Ie[Q]=_e,w[Q]&&(w.jsonpCallback=I.jsonpCallback,Xd.push(Q)),he&&Mt(_e)&&_e(he[0]),he=_e=void 0}),"script"}),Pt.createHTMLDocument=((w=Fe.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===w.childNodes.length),K.parseHTML=function(w,I,H){return"string"!=typeof w?[]:("boolean"==typeof I&&(H=I,I=!1),I||(Pt.createHTMLDocument?((Q=(I=Fe.implementation.createHTMLDocument("")).createElement("base")).href=Fe.location.href,I.head.appendChild(Q)):I=Fe),he=!H&&[],(_e=Lr.exec(w))?[I.createElement(_e[1])]:(_e=Du([w],I,he),he&&he.length&&K(he).remove(),K.merge([],_e.childNodes)));var Q,_e,he},K.fn.load=function(w,I,H){var Q,_e,he,Ee=this,_t=w.indexOf(" ");return _t>-1&&(Q=me(w.slice(_t)),w=w.slice(0,_t)),Mt(I)?(H=I,I=void 0):I&&"object"==typeof I&&(_e="POST"),Ee.length>0&&K.ajax({url:w,type:_e||"GET",dataType:"html",data:I}).done(function(st){he=arguments,Ee.html(Q?K("<div>").append(K.parseHTML(st)).find(Q):st)}).always(H&&function(st,Xt){Ee.each(function(){H.apply(this,he||[st.responseText,Xt,st])})}),this},K.expr.pseudos.animated=function(w){return K.grep(K.timers,function(I){return w===I.elem}).length},K.offset={setOffset:function(w,I,H){var Q,_e,he,Ee,_t,st,wn=K.css(w,"position"),$n=K(w),Zt={};"static"===wn&&(w.style.position="relative"),_t=$n.offset(),he=K.css(w,"top"),st=K.css(w,"left"),("absolute"===wn||"fixed"===wn)&&(he+st).indexOf("auto")>-1?(Ee=(Q=$n.position()).top,_e=Q.left):(Ee=parseFloat(he)||0,_e=parseFloat(st)||0),Mt(I)&&(I=I.call(w,H,K.extend({},_t))),null!=I.top&&(Zt.top=I.top-_t.top+Ee),null!=I.left&&(Zt.left=I.left-_t.left+_e),"using"in I?I.using.call(w,Zt):$n.css(Zt)}},K.fn.extend({offset:function(w){if(arguments.length)return void 0===w?this:this.each(function(_e){K.offset.setOffset(this,w,_e)});var I,H,Q=this[0];return Q?Q.getClientRects().length?{top:(I=Q.getBoundingClientRect()).top+(H=Q.ownerDocument.defaultView).pageYOffset,left:I.left+H.pageXOffset}:{top:0,left:0}:void 0},position:function(){if(this[0]){var w,I,H,Q=this[0],_e={top:0,left:0};if("fixed"===K.css(Q,"position"))I=Q.getBoundingClientRect();else{for(I=this.offset(),H=Q.ownerDocument,w=Q.offsetParent||H.documentElement;w&&(w===H.body||w===H.documentElement)&&"static"===K.css(w,"position");)w=w.parentNode;w&&w!==Q&&1===w.nodeType&&((_e=K(w).offset()).top+=K.css(w,"borderTopWidth",!0),_e.left+=K.css(w,"borderLeftWidth",!0))}return{top:I.top-_e.top-K.css(Q,"marginTop",!0),left:I.left-_e.left-K.css(Q,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var w=this.offsetParent;w&&"static"===K.css(w,"position");)w=w.offsetParent;return w||gl})}}),K.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(w,I){var H="pageYOffset"===I;K.fn[w]=function(Q){return aa(this,function(_e,he,Ee){var _t;if(Dt(_e)?_t=_e:9===_e.nodeType&&(_t=_e.defaultView),void 0===Ee)return _t?_t[I]:_e[he];_t?_t.scrollTo(H?_t.pageXOffset:Ee,H?Ee:_t.pageYOffset):_e[he]=Ee},w,Q,arguments.length)}}),K.each(["top","left"],function(w,I){K.cssHooks[I]=sc(Pt.pixelPosition,function(H,Q){if(Q)return Q=yc(H,I),vd.test(Q)?K(H).position()[I]+"px":Q})}),K.each({Height:"height",Width:"width"},function(w,I){K.each({padding:"inner"+w,content:I,"":"outer"+w},function(H,Q){K.fn[Q]=function(_e,he){var Ee=arguments.length&&(H||"boolean"!=typeof _e),_t=H||(!0===_e||!0===he?"margin":"border");return aa(this,function(st,Xt,wn){var $n;return Dt(st)?0===Q.indexOf("outer")?st["inner"+w]:st.document.documentElement["client"+w]:9===st.nodeType?($n=st.documentElement,Math.max(st.body["scroll"+w],$n["scroll"+w],st.body["offset"+w],$n["offset"+w],$n["client"+w])):void 0===wn?K.css(st,Xt,_t):K.style(st,Xt,wn,_t)},I,Ee?_e:void 0,Ee)}})}),K.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(w,I){K.fn[I]=function(H){return this.on(I,H)}}),K.fn.extend({bind:function(w,I,H){return this.on(w,null,I,H)},unbind:function(w,I){return this.off(w,null,I)},delegate:function(w,I,H,Q){return this.on(I,w,H,Q)},undelegate:function(w,I,H){return 1===arguments.length?this.off(w,"**"):this.off(I,w||"**",H)},hover:function(w,I){return this.on("mouseenter",w).on("mouseleave",I||w)}}),K.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(w,I){K.fn[I]=function(H,Q){return arguments.length>0?this.on(I,null,H,Q):this.trigger(I)}});var Lu=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;K.proxy=function(w,I){var H,Q,_e;if("string"==typeof I&&(H=w[I],I=w,w=H),Mt(w))return Q=u.call(arguments,2),_e=function(){return w.apply(I||this,Q.concat(u.call(arguments)))},_e.guid=w.guid=w.guid||K.guid++,_e},K.holdReady=function(w){w?K.readyWait++:K.ready(!0)},K.isArray=Array.isArray,K.parseJSON=JSON.parse,K.nodeName=kn,K.isFunction=Mt,K.isWindow=Dt,K.camelCase=Ia,K.type=un,K.now=Date.now,K.isNumeric=function(w){var I=K.type(w);return("number"===I||"string"===I)&&!isNaN(w-parseFloat(w))},K.trim=function(w){return null==w?"":(w+"").replace(Lu,"$1")},void 0!==(E=function(){return K}.apply(Ha,[]))&&(ys.exports=E);var Ho=Ie.jQuery,Mf=Ie.$;return K.noConflict=function(w){return Ie.$===K&&(Ie.$=Mf),w&&Ie.jQuery===K&&(Ie.jQuery=Ho),K},typeof xi>"u"&&(Ie.jQuery=Ie.$=K),K})},34941:function(ys,Ha,bn){var E;typeof globalThis<"u"?globalThis:typeof this<"u"||(typeof window<"u"?window:typeof self<"u"?self:global),ys.exports=(E=function(){try{return bn(89107)}catch{}}(),function(){"use strict";var Ie={172:function(u,tn){var e=this&&this.__extends||function(){var Ot=function(Pn,wt){return(Ot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Wn,Pt){Wn.__proto__=Pt}||function(Wn,Pt){for(var Mt in Pt)Object.prototype.hasOwnProperty.call(Pt,Mt)&&(Wn[Mt]=Pt[Mt])})(Pn,wt)};return function(Pn,wt){if("function"!=typeof wt&&null!==wt)throw new TypeError("Class extends value "+String(wt)+" is not a constructor or null");function Wn(){this.constructor=Pn}Ot(Pn,wt),Pn.prototype=null===wt?Object.create(wt):(Wn.prototype=wt.prototype,new Wn)}}();Object.defineProperty(tn,"__esModule",{value:!0}),tn.CellHookData=tn.HookData=void 0;var Tn=function(){return function Ot(Pn,wt,Wn){this.table=wt,this.pageNumber=wt.pageNumber,this.pageCount=this.pageNumber,this.settings=wt.settings,this.cursor=Wn,this.doc=Pn.getDocument()}}();tn.HookData=Tn;var qe=function(Ot){function Pn(wt,Wn,Pt,Mt,Dt,Fe){var $t=Ot.call(this,wt,Wn,Fe)||this;return $t.cell=Pt,$t.row=Mt,$t.column=Dt,$t.section=Mt.section,$t}return e(Pn,Ot),Pn}(Tn);tn.CellHookData=qe},340:function(u,tn,e){Object.defineProperty(tn,"__esModule",{value:!0});var Tn=e(4),qe=e(136),Ot=e(744),Pn=e(776),wt=e(664),Wn=e(972);tn.default=function Pt(Mt){Mt.API.autoTable=function(){for(var Dt=[],Fe
vendor: 53,181 bytes, line 1
1=0;Fe<arguments.length;Fe++)Dt[Fe]=arguments[Fe];var $t;1===Dt.length?$t=Dt[0]:(console.error("Use of deprecated autoTable initiation"),($t=Dt[2]||{}).columns=Dt[0],$t.body=Dt[1]);var dn=(0,Pn.parseInput)(this,$t),un=(0,Wn.createTable)(this,dn);return(0,wt.drawTable)(this,un),this},Mt.API.lastAutoTable=!1,Mt.API.previousAutoTable=!1,Mt.API.autoTable.previous=!1,Mt.API.autoTableText=function(Dt,Fe,$t,dn){(0,qe.default)(Dt,Fe,$t,dn,this)},Mt.API.autoTableSetDefaults=function(Dt){return Ot.DocHandler.setDefaults(Dt,this),this},Mt.autoTableSetDefaults=function(Dt,Fe){Ot.DocHandler.setDefaults(Dt,Fe)},Mt.API.autoTableHtmlToJson=function(Dt,Fe){var $t;if(void 0===Fe&&(Fe=!1),typeof window>"u")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var dn=new Ot.DocHandler(this),un=(0,Tn.parseHtml)(dn,Dt,window,Fe,!1),yn=un.body;return{columns:(null===($t=un.head[0])||void 0===$t?void 0:$t.map(function(ei){return ei.content}))||[],rows:yn,data:yn}},Mt.API.autoTableEndPosY=function(){console.error("Use of deprecated function: autoTableEndPosY. Use doc.lastAutoTable.finalY instead.");var Dt=this.lastAutoTable;return Dt&&Dt.finalY?Dt.finalY:0},Mt.API.autoTableAddPageContent=function(Dt){return console.error("Use of deprecated function: autoTableAddPageContent. Use jsPDF.autoTableSetDefaults({didDrawPage: () => {}}) instead."),Mt.API.autoTable.globalDefaults||(Mt.API.autoTable.globalDefaults={}),Mt.API.autoTable.globalDefaults.addPageContent=Dt,this},Mt.API.autoTableAddPage=function(){return console.error("Use of deprecated function: autoTableAddPage. Use doc.addPage()"),this.addPage(),this}}},136:function(u,tn){Object.defineProperty(tn,"__esModule",{value:!0}),tn.default=function e(Tn,qe,Ot,Pn,wt){Pn=Pn||{};var Pt=wt.internal.scaleFactor,Mt=wt.internal.getFontSize()/Pt,Fe=Mt*(wt.getLineHeightFactor?wt.getLineHeightFactor():1.15),dn="",un=1;if(("middle"===Pn.valign||"bottom"===Pn.valign||"center"===Pn.halign||"right"===Pn.halign)&&(un=(dn="string"==typeof Tn?Tn.split(/\r\n|\r|\n/g):Tn).length||1),Ot+=Mt*(2-1.15),"middle"===Pn.valign?Ot-=un/2*Fe:"bottom"===Pn.valign&&(Ot-=un*Fe),"center"===Pn.halign||"right"===Pn.halign){var qt=Mt;if("center"===Pn.halign&&(qt*=.5),dn&&un>=1){for(var yn=0;yn<dn.length;yn++)wt.text(dn[yn],qe-wt.getStringUnitWidth(dn[yn])*qt,Ot),Ot+=Fe;return wt}qe-=wt.getStringUnitWidth(Tn)*qt}return"justify"===Pn.halign?wt.text(Tn,qe,Ot,{maxWidth:Pn.maxWidth||100,align:"justify"}):wt.text(Tn,qe,Ot),wt}},420:function(u,tn){function qe(wt,Wn){var Pt=wt>0,Mt=Wn||0===Wn;return Pt&&Mt?"DF":Pt?"S":Mt?"F":null}function Ot(wt,Wn){var Pt,Mt,Dt,Fe;if(wt=wt||Wn,Array.isArray(wt)){if(wt.length>=4)return{top:wt[0],right:wt[1],bottom:wt[2],left:wt[3]};if(3===wt.length)return{top:wt[0],right:wt[1],bottom:wt[2],left:wt[1]};if(2===wt.length)return{top:wt[0],right:wt[1],bottom:wt[0],left:wt[1]};wt=1===wt.length?wt[0]:Wn}return"object"==typeof wt?("number"==typeof wt.vertical&&(wt.top=wt.vertical,wt.bottom=wt.vertical),"number"==typeof wt.horizontal&&(wt.right=wt.horizontal,wt.left=wt.horizontal),{left:null!==(Pt=wt.left)&&void 0!==Pt?Pt:Wn,top:null!==(Mt=wt.top)&&void 0!==Mt?Mt:Wn,right:null!==(Dt=wt.right)&&void 0!==Dt?Dt:Wn,bottom:null!==(Fe=wt.bottom)&&void 0!==Fe?Fe:Wn}):("number"!=typeof wt&&(wt=Wn),{top:wt,right:wt,bottom:wt,left:wt})}Object.defineProperty(tn,"__esModule",{value:!0}),tn.getPageAvailableWidth=tn.parseSpacing=tn.getFillStyle=tn.addTableBorder=tn.getStringWidth=void 0,tn.getStringWidth=function e(wt,Wn,Pt){return Pt.applyStyles(Wn,!0),(Array.isArray(wt)?wt:[wt]).map(function(Fe){return Pt.getTextWidth(Fe)}).reduce(function(Fe,$t){return Math.max(Fe,$t)},0)},tn.addTableBorder=function Tn(wt,Wn,Pt,Mt){var Dt=Wn.settings.tableLineWidth;wt.applyStyles({lineWidth:Dt,lineColor:Wn.settings.tableLineColor});var $t=qe(Dt,!1);$t&&wt.rect(Pt.x,Pt.y,Wn.getWidth(wt.pageSize().width),Mt.y-Pt.y,$t)},tn.getFillStyle=qe,tn.parseSpacing=Ot,tn.getPageAvailableWidth=function Pn(wt,Wn){var Pt=Ot(Wn.settings.margin,0);return wt.pageSize().width-(Pt.left+Pt.right)}},796:function(u,tn){var e=this&&this.__extends||function(){var Pn=function(wt,Wn){return(Pn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Pt,Mt){Pt.__proto__=Mt}||function(Pt,Mt){for(var Dt in Mt)Object.prototype.hasOwnProperty.call(Mt,Dt)&&(Pt[Dt]=Mt[Dt])})(wt,Wn)};return function(wt,Wn){if("function"!=typeof Wn&&null!==Wn)throw new TypeError("Class extends value "+String(Wn)+" is not a constructor or null");function Pt(){this.constructor=wt}Pn(wt,Wn),wt.prototype=null===Wn?Object.create(Wn):(Pt.prototype=Wn.prototype,new Pt)}}();Object.defineProperty(tn,"__esModule",{value:!0}),tn.getTheme=tn.defaultStyles=tn.HtmlRowInput=void 0;var Tn=function(Pn){function wt(Wn){var Pt=Pn.call(this)||this;return Pt._element=Wn,Pt}return e(wt,Pn),wt}(Array);tn.HtmlRowInput=Tn,tn.defaultStyles=function qe(Pn){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/Pn,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}},tn.getTheme=function Ot(Pn){return{striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}}[Pn]}},903:function(u,tn,e){Object.defineProperty(tn,"__esModule",{value:!0}),tn.parseCss=void 0;var Tn=e(420);function Pn(Pt,Mt){var Dt=wt(Pt,Mt);if(!Dt)return null;var Fe=Dt.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!Fe||!Array.isArray(Fe))return null;var $t=[parseInt(Fe[1]),parseInt(Fe[2]),parseInt(Fe[3])];return 0===parseInt(Fe[4])||isNaN($t[0])||isNaN($t[1])||isNaN($t[2])?null:$t}function wt(Pt,Mt){var Dt=Mt(Pt);return"rgba(0, 0, 0, 0)"===Dt||"transparent"===Dt||"initial"===Dt||"inherit"===Dt?null==Pt.parentElement?null:wt(Pt.parentElement,Mt):Dt}tn.parseCss=function qe(Pt,Mt,Dt,Fe,$t){var dn={},un=1.3333333333333333,qt=Pn(Mt,function(Mn){return $t.getComputedStyle(Mn).backgroundColor});null!=qt&&(dn.fillColor=qt);var yn=Pn(Mt,function(Mn){return $t.getComputedStyle(Mn).color});null!=yn&&(dn.textColor=yn);var K=function Wn(Pt,Mt){var Dt=[Pt.paddingTop,Pt.paddingRight,Pt.paddingBottom,Pt.paddingLeft],Fe=96/(72/Mt),$t=(parseInt(Pt.lineHeight)-parseInt(Pt.fontSize))/Mt/2,dn=Dt.map(function(qt){return parseInt(qt||"0")/Fe}),un=(0,Tn.parseSpacing)(dn,0);return $t>un.top&&(un.top=$t),$t>un.bottom&&(un.bottom=$t),un}(Fe,Dt);K&&(dn.cellPadding=K);var ei="borderTopColor",kn=un*Dt,Fn=Fe.borderTopWidth;if(Fe.borderBottomWidth===Fn&&Fe.borderRightWidth===Fn&&Fe.borderLeftWidth===Fn){var Si=(parseFloat(Fn)||0)/kn;Si&&(dn.lineWidth=Si)}else dn.lineWidth={top:(parseFloat(Fe.borderTopWidth)||0)/kn,right:(parseFloat(Fe.borderRightWidth)||0)/kn,bottom:(parseFloat(Fe.borderBottomWidth)||0)/kn,left:(parseFloat(Fe.borderLeftWidth)||0)/kn},dn.lineWidth.top||(dn.lineWidth.right?ei="borderRightColor":dn.lineWidth.bottom?ei="borderBottomColor":dn.lineWidth.left&&(ei="borderLeftColor"));console.log(dn.lineWidth);var gr=Pn(Mt,function(Mn){return $t.getComputedStyle(Mn)[ei]});null!=gr&&(dn.lineColor=gr);var ji=["left","right","center","justify"];-1!==ji.indexOf(Fe.textAlign)&&(dn.halign=Fe.textAlign),-1!==(ji=["middle","bottom","top"]).indexOf(Fe.verticalAlign)&&(dn.valign=Fe.verticalAlign);var jn=parseInt(Fe.fontSize||"");isNaN(jn)||(dn.fontSize=jn/un);var sn=function Ot(Pt){var Mt="";return("bold"===Pt.fontWeight||"bolder"===Pt.fontWeight||parseInt(Pt.fontWeight)>=700)&&(Mt="bold"),("italic"===Pt.fontStyle||"oblique"===Pt.fontStyle)&&(Mt+="italic"),Mt}(Fe);sn&&(dn.fontStyle=sn);var ui=(Fe.fontFamily||"").toLowerCase();return-1!==Pt.indexOf(ui)&&(dn.font=ui),dn}},744:function(u,tn){Object.defineProperty(tn,"__esModule",{value:!0}),tn.DocHandler=void 0;var e={},Tn=function(){function qe(Ot){this.jsPDFDocument=Ot,this.userStyles={textColor:Ot.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:Ot.internal.getFontSize(),fontStyle:Ot.internal.getFont().fontStyle,font:Ot.internal.getFont().fontName,lineWidth:Ot.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:Ot.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return qe.setDefaults=function(Ot,Pn){void 0===Pn&&(Pn=null),Pn?Pn.__autoTableDocumentDefaults=Ot:e=Ot},qe.unifyColor=function(Ot){return Array.isArray(Ot)?Ot:"number"==typeof Ot?[Ot,Ot,Ot]:"string"==typeof Ot?[Ot]:null},qe.prototype.applyStyles=function(Ot,Pn){var wt,Wn,Pt;void 0===Pn&&(Pn=!1),Ot.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(Ot.fontStyle);var Mt=this.jsPDFDocument.internal.getFont(),Dt=Mt.fontStyle,Fe=Mt.fontName;if(Ot.font&&(Fe=Ot.font),Ot.fontStyle){Dt=Ot.fontStyle;var $t=this.getFontList()[Fe];$t&&-1===$t.indexOf(Dt)&&(this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle($t[0]),Dt=$t[0])}if(this.jsPDFDocument.setFont(Fe,Dt),Ot.fontSize&&this.jsPDFDocument.setFontSize(Ot.fontSize),!Pn){var dn=qe.unifyColor(Ot.fillColor);dn&&(wt=this.jsPDFDocument).setFillColor.apply(wt,dn),(dn=qe.unifyColor(Ot.textColor))&&(Wn=this.jsPDFDocument).setTextColor.apply(Wn,dn),(dn=qe.unifyColor(Ot.lineColor))&&(Pt=this.jsPDFDocument).setDrawColor.apply(Pt,dn),"number"==typeof Ot.lineWidth&&this.jsPDFDocument.setLineWidth(Ot.lineWidth)}},qe.prototype.splitTextToSize=function(Ot,Pn,wt){return this.jsPDFDocument.splitTextToSize(Ot,Pn,wt)},qe.prototype.rect=function(Ot,Pn,wt,Wn,Pt){return this.jsPDFDocument.rect(Ot,Pn,wt,Wn,Pt)},qe.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},qe.prototype.getTextWidth=function(Ot){return this.jsPDFDocument.getTextWidth(Ot)},qe.prototype.getDocument=function(){return this.jsPDFDocument},qe.prototype.setPage=function(Ot){this.jsPDFDocument.setPage(Ot)},qe.prototype.addPage=function(){return this.jsPDFDocument.addPage()},qe.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},qe.prototype.getGlobalOptions=function(){return e||{}},qe.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},qe.prototype.pageSize=function(){var Ot=this.jsPDFDocument.internal.pageSize;return null==Ot.width&&(Ot={width:Ot.getWidth(),height:Ot.getHeight()}),Ot},qe.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},qe.prototype.getLineHeightFactor=function(){var Ot=this.jsPDFDocument;return Ot.getLineHeightFactor?Ot.getLineHeightFactor():1.15},qe.prototype.getLineHeight=function(Ot){return Ot/this.scaleFactor()*this.getLineHeightFactor()},qe.prototype.pageNumber=function(){var Ot=this.jsPDFDocument.internal.getCurrentPageInfo();return Ot?Ot.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},qe}();tn.DocHandler=Tn},4:function(u,tn,e){Object.defineProperty(tn,"__esModule",{value:!0}),tn.parseHtml=void 0;var Tn=e(903),qe=e(796);function Pn(Wn,Pt,Mt,Dt,Fe,$t){for(var dn=new qe.HtmlRowInput(Dt),un=0;un<Dt.cells.length;un++){var qt=Dt.cells[un],yn=Mt.getComputedStyle(qt);if(Fe||"none"!==yn.display){var K=void 0;$t&&(K=(0,Tn.parseCss)(Wn,qt,Pt,yn,Mt)),dn.push({rowSpan:qt.rowSpan,colSpan:qt.colSpan,styles:K,_element:qt,content:wt(qt)})}}var ei=Mt.getComputedStyle(Dt);if(dn.length>0&&(Fe||"none"!==ei.display))return dn}function wt(Wn){var Pt=Wn.cloneNode(!0);return Pt.innerHTML=Pt.innerHTML.replace(/\n/g,"").replace(/ +/g," "),Pt.innerHTML=Pt.innerHTML.split(/<br.*?>/).map(function(Mt){return Mt.trim()}).join("\n"),Pt.innerText||Pt.textContent||""}tn.parseHtml=function Ot(Wn,Pt,Mt,Dt,Fe){var $t,dn,un;void 0===Dt&&(Dt=!1),void 0===Fe&&(Fe=!1),un="string"==typeof Pt?Mt.document.querySelector(Pt):Pt;var qt=Object.keys(Wn.getFontList()),yn=Wn.scaleFactor(),K=[],ei=[],kn=[];if(!un)return console.error("Html table could not be found with input: ",Pt),{head:K,body:ei,foot:kn};for(var Fn=0;Fn<un.rows.length;Fn++){var Si=un.rows[Fn],gr=null===(dn=null===($t=Si?.parentElement)||void 0===$t?void 0:$t.tagName)||void 0===dn?void 0:dn.toLowerCase(),ji=Pn(qt,yn,Mt,Si,Dt,Fe);ji&&("thead"===gr?K.push(ji):"tfoot"===gr?kn.push(ji):ei.push(ji))}return{head:K,body:ei,foot:kn}}},776:function(u,tn,e){Object.defineProperty(tn,"__esModule",{value:!0}),tn.parseInput=void 0;var Tn=e(4),qe=e(356),Ot=e(420),Pn=e(744),wt=e(792);function dn(un,qt,yn){var K=un[0]||qt[0]||yn[0]||[],ei=[];return Object.keys(K).filter(function(kn){return"_element"!==kn}).forEach(function(kn){var Si,Fn=1;"object"==typeof(Si=Array.isArray(K)?K[parseInt(kn)]:K[kn])&&!Array.isArray(Si)&&(Fn=Si?.colSpan||1);for(var gr=0;gr<Fn;gr++){var ji;ji=Array.isArray(K)?ei.length:kn+(gr>0?"_".concat(gr):""),ei.push({dataKey:ji})}}),ei}tn.parseInput=function Wn(un,qt){var yn=new Pn.DocHandler(un),K=yn.getDocumentOptions(),ei=yn.getGlobalOptions();(0,wt.default)(yn,ei,K,qt);var Fn,kn=(0,qe.assign)({},ei,K,qt);typeof window<"u"&&(Fn=window);var Si=function Pt(un,qt,yn){for(var K={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},ei=function(gr){if("columnStyles"===gr)K.columnStyles=(0,qe.assign)({},un[gr],qt[gr],yn[gr]);else{var Mn=[un,qt,yn].map(function(Zi){return Zi[gr]||{}});K[gr]=(0,qe.assign)({},Mn[0],Mn[1],Mn[2])}},kn=0,Fn=Object.keys(K);kn<Fn.length;kn++)ei(Fn[kn]);return K}(ei,K,qt),gr=function Mt(un,qt,yn){for(var ei={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},kn=0,Fn=[un,qt,yn];kn<Fn.length;kn++){var Si=Fn[kn];Si.didParseCell&&ei.didParseCell.push(Si.didParseCell),Si.willDrawCell&&ei.willDrawCell.push(Si.willDrawCell),Si.didDrawCell&&ei.didDrawCell.push(Si.didDrawCell),Si.willDrawPage&&ei.willDrawPage.push(Si.willDrawPage),Si.didDrawPage&&ei.didDrawPage.push(Si.didDrawPage)}return ei}(ei,K,qt),ji=function Dt(un,qt){var yn,K,ei,kn,Fn,Si,gr,ji,jn,sn,ui,Mn,Xi,hr,Zi=(0,Ot.parseSpacing)(qt.margin,40/un.scaleFactor()),Mi=null!==(yn=function Fe(un,qt){var yn=un.getLastAutoTable(),K=un.scaleFactor(),ei=un.pageNumber(),kn=!1;return yn&&yn.startPageNumber&&(kn=yn.startPageNumber+yn.pageNumber-1===ei),"number"==typeof qt?qt:null!=qt&&!1!==qt||!kn||null==yn?.finalY?null:yn.finalY+20/K}(un,qt.startY))&&void 0!==yn?yn:Zi.top;Xi=!0===qt.showFoot?"everyPage":!1===qt.showFoot?"never":null!==(K=qt.showFoot)&&void 0!==K?K:"everyPage",hr=!0===qt.showHead?"everyPage":!1===qt.showHead?"never":null!==(ei=qt.showHead)&&void 0!==ei?ei:"everyPage";var Lr=null!==(kn=qt.useCss)&&void 0!==kn&&kn,Mo=null!==(Fn=qt.horizontalPageBreakRepeat)&&void 0!==Fn?Fn:null;return{includeHiddenHtml:null!==(Si=qt.includeHiddenHtml)&&void 0!==Si&&Si,useCss:Lr,theme:qt.theme||(Lr?"plain":"striped"),startY:Mi,margin:Zi,pageBreak:null!==(gr=qt.pageBreak)&&void 0!==gr?gr:"auto",rowPageBreak:null!==(ji=qt.rowPageBreak)&&void 0!==ji?ji:"auto",tableWidth:null!==(jn=qt.tableWidth)&&void 0!==jn?jn:"auto",showHead:hr,showFoot:Xi,tableLineWidth:null!==(sn=qt.tableLineWidth)&&void 0!==sn?sn:0,tableLineColor:null!==(ui=qt.tableLineColor)&&void 0!==ui?ui:200,horizontalPageBreak:!!qt.horizontalPageBreak,horizontalPageBreakRepeat:Mo,horizontalPageBreakBehaviour:null!==(Mn=qt.horizontalPageBreakBehaviour)&&void 0!==Mn?Mn:"afterAllRows"}}(yn,kn),jn=function $t(un,qt,yn){var K=qt.head||[],ei=qt.body||[],kn=qt.foot||[];if(qt.html)if(yn){var Si=(0,Tn.parseHtml)(un,qt.html,yn,qt.includeHiddenHtml,qt.useCss)||{};K=Si.head||K,ei=Si.body||K,kn=Si.foot||K}else console.error("Cannot parse html in non browser environment");return{columns:qt.columns||dn(K,ei,kn),head:K,body:ei,foot:kn}}(yn,kn,Fn);return{id:qt.tableId,content:jn,hooks:gr,styles:Si,settings:ji}}},792:function(u,tn){function Tn(qe){qe.rowHeight?(console.error("Use of deprecated style rowHeight. It is renamed to minCellHeight."),qe.minCellHeight||(qe.minCellHeight=qe.rowHeight)):qe.columnWidth&&(console.error("Use of deprecated style columnWidth. It is renamed to cellWidth."),qe.cellWidth||(qe.cellWidth=qe.columnWidth))}Object.defineProperty(tn,"__esModule",{value:!0}),tn.default=function e(qe,Ot,Pn,wt){for(var Wn=function(Fe){Fe&&"object"!=typeof Fe&&console.error("The options parameter should be of type object, is: "+typeof Fe),typeof Fe.extendWidth<"u"&&(Fe.tableWidth=Fe.extendWidth?"auto":"wrap",console.error("Use of deprecated option: extendWidth, use tableWidth instead.")),typeof Fe.margins<"u"&&(typeof Fe.margin>"u"&&(Fe.margin=Fe.margins),console.error("Use of deprecated option: margins, use margin instead.")),Fe.startY&&"number"!=typeof Fe.startY&&(console.error("Invalid value for startY option",Fe.startY),delete Fe.startY),!Fe.didDrawPage&&(Fe.afterPageContent||Fe.beforePageContent||Fe.afterPageAdd)&&(console.error("The afterPageContent, beforePageContent and afterPageAdd hooks are deprecated. Use didDrawPage instead"),Fe.didDrawPage=function(kn){qe.applyStyles(qe.userStyles),Fe.beforePageContent&&Fe.beforePageContent(kn),qe.applyStyles(qe.userStyles),Fe.afterPageContent&&Fe.afterPageContent(kn),qe.applyStyles(qe.userStyles),Fe.afterPageAdd&&kn.pageNumber>1&&kn.afterPageAdd(kn),qe.applyStyles(qe.userStyles)}),["createdHeaderCell","drawHeaderRow","drawRow","drawHeaderCell"].forEach(function(kn){Fe[kn]&&console.error('The "'.concat(kn,'" hook has changed in version 3.0, check the changelog for how to migrate.'))}),[["showFoot","showFooter"],["showHead","showHeader"],["didDrawPage","addPageContent"],["didParseCell","createdCell"],["headStyles","headerStyles"]].forEach(function(kn){var Fn=kn[0],Si=kn[1];Fe[Si]&&(console.error("Use of deprecated option ".concat(Si,". Use ").concat(Fn," instead")),Fe[Fn]=Fe[Si])}),[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach(function(kn){var Fn="string"==typeof kn?kn:kn[0],Si="string"==typeof kn?kn:kn[1];typeof Fe[Fn]<"u"&&(typeof Fe.styles[Si]>"u"&&(Fe.styles[Si]=Fe[Fn]),console.error("Use of deprecated option: "+Fn+", use the style "+Si+" instead."))});for(var $t=0,dn=["styles","bodyStyles","headStyles","footStyles"];$t<dn.length;$t++)Tn(Fe[dn[$t]]||{});for(var qt=Fe.columnStyles||{},yn=0,K=Object.keys(qt);yn<K.length;yn++)Tn(qt[K[yn]]||{})},Pt=0,Mt=[Ot,Pn,wt];Pt<Mt.length;Pt++)Wn(Mt[Pt])}},260:function(u,tn,e){Object.defineProperty(tn,"__esModule",{value:!0}),tn.Column=tn.Cell=tn.Row=tn.Table=void 0;var Tn=e(796),qe=e(172),Ot=e(420),Pn=function(){function Mt(Dt,Fe){this.pageNumber=1,this.pageCount=1,this.id=Dt.id,this.settings=Dt.settings,this.styles=Dt.styles,this.hooks=Dt.hooks,this.columns=Fe.columns,this.head=Fe.head,this.body=Fe.body,this.foot=Fe.foot}return Mt.prototype.getHeadHeight=function(Dt){return this.head.reduce(function(Fe,$t){return Fe+$t.getMaxCellHeight(Dt)},0)},Mt.prototype.getFootHeight=function(Dt){return this.foot.reduce(function(Fe,$t){return Fe+$t.getMaxCellHeight(Dt)},0)},Mt.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},Mt.prototype.callCellHooks=function(Dt,Fe,$t,dn,un,qt){for(var yn=0,K=Fe;yn<K.length;yn++){var Fn=!1===(0,K[yn])(new qe.CellHookData(Dt,this,$t,dn,un,qt));if($t.text=Array.isArray($t.text)?$t.text:[$t.text],Fn)return!1}return!0},Mt.prototype.callEndPageHooks=function(Dt,Fe){Dt.applyStyles(Dt.userStyles);for(var $t=0,dn=this.hooks.didDrawPage;$t<dn.length;$t++)(0,dn[$t])(new qe.HookData(Dt,this,Fe))},Mt.prototype.callWillDrawPageHooks=function(Dt,Fe){for(var $t=0,dn=this.hooks.willDrawPage;$t<dn.length;$t++)(0,dn[$t])(new qe.HookData(Dt,this,Fe))},Mt.prototype.getWidth=function(Dt){if("number"==typeof this.settings.tableWidth)return this.settings.tableWidth;if("wrap"===this.settings.tableWidth)return this.columns.reduce(function(dn,un){return dn+un.wrappedWidth},0);var $t=this.settings.margin;return Dt-$t.left-$t.right},Mt}();tn.Table=Pn;var wt=function(){function Mt(Dt,Fe,$t,dn,un){void 0===un&&(un=!1),this.height=0,this.raw=Dt,Dt instanceof Tn.HtmlRowInput&&(this.raw=Dt._element,this.element=Dt._element),this.index=Fe,this.section=$t,this.cells=dn,this.spansMultiplePages=un}return Mt.prototype.getMaxCellHeight=function(Dt){var Fe=this;return Dt.reduce(function($t,dn){var un;return Math.max($t,(null===(un=Fe.cells[dn.index])||void 0===un?void 0:un.height)||0)},0)},Mt.prototype.hasRowSpan=function(Dt){var Fe=this;return Dt.filter(function($t){var dn=Fe.cells[$t.index];return!!dn&&dn.rowSpan>1}).length>0},Mt.prototype.canEntireRowFit=function(Dt,Fe){return this.getMaxCellHeight(Fe)<=Dt},Mt.prototype.getMinimumRowHeight=function(Dt,Fe){var $t=this;return Dt.reduce(function(dn,un){var qt=$t.cells[un.index];if(!qt)return 0;var yn=Fe.getLineHeight(qt.styles.fontSize),ei=qt.padding("vertical")+yn;return ei>dn?ei:dn},0)},Mt}();tn.Row=wt;var Wn=function(){function Mt(Dt,Fe,$t){var dn,un;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=Fe,this.section=$t,this.raw=Dt;var qt=Dt;null==Dt||"object"!=typeof Dt||Array.isArray(Dt)?(this.rowSpan=1,this.colSpan=1):(this.rowSpan=Dt.rowSpan||1,this.colSpan=Dt.colSpan||1,qt=null!==(un=null!==(dn=Dt.content)&&void 0!==dn?dn:Dt.title)&&void 0!==un?un:Dt,Dt._element&&(this.raw=Dt._element)),this.text=(null!=qt?""+qt:"").split(/\r\n|\r|\n/g)}return Mt.prototype.getTextPos=function(){var Dt,$t;if("top"===this.styles.valign)Dt=this.y+this.padding("top");else if("bottom"===this.styles.valign)Dt=this.y+this.height-this.padding("bottom");else{var Fe=this.height-this.padding("vertical");Dt=this.y+Fe/2+this.padding("top")}if("right"===this.styles.halign)$t=this.x+this.width-this.padding("right");else if("center"===this.styles.halign){var dn=this.width-this.padding("horizontal");$t=this.x+dn/2+this.padding("left")}else $t=this.x+this.padding("left");return{x:$t,y:Dt}},Mt.prototype.getContentHeight=function(Dt,Fe){void 0===Fe&&(Fe=1.15);var un=(Array.isArray(this.text)?this.text.length:1)*(this.styles.fontSize/Dt*Fe)+this.padding("vertical");return Math.max(un,this.styles.minCellHeight)},Mt.prototype.padding=function(Dt){var Fe=(0,Ot.parseSpacing)(this.styles.cellPadding,0);return"vertical"===Dt?Fe.top+Fe.bottom:"horizontal"===Dt?Fe.left+Fe.right:Fe[Dt]},Mt}();tn.Cell=Wn;var Pt=function(){function Mt(Dt,Fe,$t){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=Dt,this.raw=Fe,this.index=$t}return Mt.prototype.getMaxCustomCellWidth=function(Dt){for(var Fe=0,$t=0,dn=Dt.allRows();$t<dn.length;$t++){var qt=dn[$t].cells[this.index];qt&&"number"==typeof qt.styles.cellWidth&&(Fe=Math.max(Fe,qt.styles.cellWidth))}return Fe},Mt}();tn.Column=Pt},356:function(u,tn){Object.defineProperty(tn,"__esModule",{value:!0}),tn.assign=void 0,tn.assign=function e(Tn,qe,Ot,Pn,wt){if(null==Tn)throw new TypeError("Cannot convert undefined or null to object");for(var Wn=Object(Tn),Pt=1;Pt<arguments.length;Pt++){var Mt=arguments[Pt];if(null!=Mt)for(var Dt in Mt)Object.prototype.hasOwnProperty.call(Mt,Dt)&&(Wn[Dt]=Mt[Dt])}return Wn}},972:function(u,tn,e){Object.defineProperty(tn,"__esModule",{value:!0}),tn.createTable=void 0;var Tn=e(744),qe=e(260),Ot=e(324),Pn=e(796),wt=e(356);function Mt(un,qt,yn,K,ei,kn){var Fn={};return qt.map(function(gr,ji){for(var jn=0,sn={},ui=0,Mn=0,Zi=0,Mi=yn;Zi<Mi.length;Zi++){var Xi=Mi[Zi];if(null==Fn[Xi.index]||0===Fn[Xi.index].left)if(0===Mn){var hr,Lr={};"object"==typeof(hr=Array.isArray(gr)?gr[Xi.index-ui-jn]:gr[Xi.dataKey])&&!Array.isArray(hr)&&(Lr=hr?.styles||{});var Nr=dn(un,Xi,ji,ei,K,kn,Lr),Gi=new qe.Cell(hr,Nr,un);sn[Xi.dataKey]=Gi,sn[Xi.index]=Gi,Fn[Xi.index]={left:Gi.rowSpan-1,times:Mn=Gi.colSpan-1}}else Mn--,ui++;else Fn[Xi.index].left--,Mn=Fn[Xi.index].times,jn++}return new qe.Row(gr,ji,un,sn)})}function Dt(un,qt){var yn={};return un.forEach(function(K){if(null!=K.raw){var ei=function Fe(un,qt){if("head"===un){if("object"==typeof qt)return qt.header||qt.title||null;if("string"==typeof qt||"number"==typeof qt)return qt}else if("foot"===un&&"object"==typeof qt)return qt.footer;return null}(qt,K.raw);null!=ei&&(yn[K.dataKey]=ei)}}),Object.keys(yn).length>0?yn:null}function dn(un,qt,yn,K,ei,kn,Fn){var gr,Si=(0,Pn.getTheme)(K);"head"===un?gr=ei.headStyles:"body"===un?gr=ei.bodyStyles:"foot"===un&&(gr=ei.footStyles);var ji=(0,wt.assign)({},Si.table,Si[un],ei.styles,gr),sn="body"===un&&(ei.columnStyles[qt.dataKey]||ei.columnStyles[qt.index])||{},ui="body"===un&&yn%2==0?(0,wt.assign)({},Si.alternateRow,ei.alternateRowStyles):{},Mn=(0,Pn.defaultStyles)(kn),Zi=(0,wt.assign)({},Mn,ji,ui,sn);return(0,wt.assign)(Zi,Fn)}tn.createTable=function Wn(un,qt){var yn=new Tn.DocHandler(un),K=function Pt(un,qt){var ei,yn=un.content,K=function $t(un){return un.map(function(qt,yn){var K,ei,kn;return kn="object"==typeof qt&&null!==(ei=null!==(K=qt.dataKey)&&void 0!==K?K:qt.key)&&void 0!==ei?ei:yn,new qe.Column(kn,qt,yn)})}(yn.columns);0===yn.head.length&&(ei=Dt(K,"head"))&&yn.head.push(ei),0===yn.foot.length&&(ei=Dt(K,"foot"))&&yn.foot.push(ei);var kn=un.settings.theme,Fn=un.styles;return{columns:K,head:Mt("head",yn.head,K,Fn,kn,qt),body:Mt("body",yn.body,K,Fn,kn,qt),foot:Mt("foot",yn.foot,K,Fn,kn,qt)}}(qt,yn.scaleFactor()),ei=new qe.Table(qt,K);return(0,Ot.calculateWidths)(yn,ei),yn.applyStyles(yn.userStyles),ei}},664:function(u,tn,e){Object.defineProperty(tn,"__esModule",{value:!0}),tn.addPage=tn.drawTable=void 0;var Tn=e(420),qe=e(260),Ot=e(744),Pn=e(356),wt=e(136),Wn=e(224);function Dt(jn,sn,ui,Mn){var Zi=sn.settings;jn.applyStyles(jn.userStyles),("firstPage"===Zi.showHead||"everyPage"===Zi.showHead)&&sn.head.forEach(function(Mi){return ei(jn,sn,Mi,ui,Mn)})}function $t(jn,sn,ui,Mn,Zi,Mi){jn.applyStyles(jn.userStyles),Mi=Mi??sn.body.length;var Xi=Math.min(ui+Mi,sn.body.length),hr=-1;return sn.body.slice(ui,Xi).forEach(function(Lr,Nr){var Mo=Si(jn,sn,ui+Nr===sn.body.length-1,Mn);Lr.canEntireRowFit(Mo,Zi)&&(ei(jn,sn,Lr,Mn,Zi),hr=ui+Nr)}),hr}function dn(jn,sn,ui,Mn){var Zi=sn.settings;jn.applyStyles(jn.userStyles),("lastPage"===Zi.showFoot||"everyPage"===Zi.showFoot)&&sn.foot.forEach(function(Mi){return ei(jn,sn,Mi,ui,Mn)})}function un(jn,sn,ui){var Mn=ui.getLineHeight(jn.styles.fontSize),Zi=jn.padding("vertical"),Mi=Math.floor((sn-Zi)/Mn);return Math.max(0,Mi)}function K(jn,sn,ui,Mn,Zi,Mi,Xi){var hr=Si(jn,sn,Mn,Mi);if(ui.canEntireRowFit(hr,Xi))ei(jn,sn,ui,Mi,Xi);else if(function yn(jn,sn,ui,Mn){var Zi=jn.pageSize().height,Mi=Mn.settings.margin,hr=Zi-(Mi.top+Mi.bottom);"body"===sn.section&&(hr-=Mn.getHeadHeight(Mn.columns)+Mn.getFootHeight(Mn.columns));var Lr=sn.getMinimumRowHeight(Mn.columns,jn),Nr=Lr<ui;if(Lr>hr)return console.error("Will not be able to print row ".concat(sn.index," correctly since it's minimum height is larger than page height")),!0;if(!Nr)return!1;var Gi=sn.hasRowSpan(Mn.columns);return sn.getMaxCellHeight(Mn.columns)>hr?(Gi&&console.error("The content of row ".concat(sn.index," will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.")),!0):!(Gi||"avoid"===Mn.settings.rowPageBreak)}(jn,ui,hr,sn)){var Lr=function qt(jn,sn,ui,Mn){var Zi={};jn.spansMultiplePages=!0,jn.height=0;for(var Mi=0,Xi=0,hr=ui.columns;Xi<hr.length;Xi++)if(Nr=jn.cells[(Lr=hr[Xi]).index]){Array.isArray(Nr.text)||(Nr.text=[Nr.text]);var Gi=new qe.Cell(Nr.raw,Nr.styles,Nr.section);(Gi=(0,Pn.assign)(Gi,Nr)).text=[];var Mo=un(Nr,sn,Mn);Nr.text.length>Mo&&(Gi.text=Nr.text.splice(Mo,Nr.text.length));var Bo=Mn.scaleFactor(),Bs=Mn.getLineHeightFactor();Nr.contentHeight=Nr.getContentHeight(Bo,Bs),Nr.contentHeight>=sn&&(Nr.contentHeight=sn,Gi.styles.minCellHeight-=sn),Nr.contentHeight>jn.height&&(jn.height=Nr.contentHeight),Gi.contentHeight=Gi.getContentHeight(Bo,Bs),Gi.contentHeight>Mi&&(Mi=Gi.contentHeight),Zi[Lr.index]=Gi}var Ts=new qe.Row(jn.raw,-1,jn.section,Zi,!0);Ts.height=Mi;for(var Hc=0,Jo=ui.columns;Hc<Jo.length;Hc++){var Lr,Nr;(Gi=Ts.cells[(Lr=Jo[Hc]).index])&&(Gi.height=Ts.height),(Nr=jn.cells[Lr.index])&&(Nr.height=jn.height)}return Ts}(ui,hr,sn,jn);ei(jn,sn,ui,Mi,Xi),gr(jn,sn,Zi,Mi,Xi),K(jn,sn,Lr,Mn,Zi,Mi,Xi)}else gr(jn,sn,Zi,Mi,Xi),K(jn,sn,ui,Mn,Zi,Mi,Xi)}function ei(jn,sn,ui,Mn,Zi){Mn.x=sn.settings.margin.left;for(var Mi=0,Xi=Zi;Mi<Xi.length;Mi++){var hr=Xi[Mi],Lr=ui.cells[hr.index];if(Lr)if(jn.applyStyles(Lr.styles),Lr.x=Mn.x,Lr.y=Mn.y,!1!==sn.callCellHooks(jn,sn.hooks.willDrawCell,Lr,ui,hr,Mn)){kn(jn,Lr,Mn);var Gi=Lr.getTextPos();(0,wt.default)(Lr.text,Gi.x,Gi.y,{halign:Lr.styles.halign,valign:Lr.styles.valign,maxWidth:Math.ceil(Lr.width-Lr.padding("left")-Lr.padding("right"))},jn.getDocument()),sn.callCellHooks(jn,sn.hooks.didDrawCell,Lr,ui,hr,Mn),Mn.x+=hr.width}else Mn.x+=hr.width;else Mn.x+=hr.width}Mn.y+=ui.height}function kn(jn,sn,ui){var Mn=sn.styles;if(jn.getDocument().setFillColor(jn.getDocument().getFillColor()),"number"==typeof Mn.lineWidth){var Zi=(0,Tn.getFillStyle)(Mn.lineWidth,Mn.fillColor);Zi&&jn.rect(sn.x,ui.y,sn.width,sn.height,Zi)}else"object"==typeof Mn.lineWidth&&(Mn.fillColor&&jn.rect(sn.x,ui.y,sn.width,sn.height,"F"),function Fn(jn,sn,ui,Mn){var Zi,Mi,Xi,hr;function Lr(Nr,Gi,Mo,Bo,Bs){jn.getDocument().setLineWidth(Nr),jn.getDocument().line(Gi,Mo,Bo,Bs,"S")}Mn.top&&(Zi=ui.x,Xi=ui.x+sn.width,Mn.right&&(Xi+=.5*Mn.right),Mn.left&&(Zi-=.5*Mn.left),Lr(Mn.top,Zi,Mi=ui.y,Xi,hr=ui.y)),Mn.bottom&&(Zi=ui.x,Xi=ui.x+sn.width,Mn.right&&(Xi+=.5*Mn.right),Mn.left&&(Zi-=.5*Mn.left),Lr(Mn.bottom,Zi,Mi=ui.y+sn.height,Xi,hr=ui.y+sn.height)),Mn.left&&(Mi=ui.y,hr=ui.y+sn.height,Mn.top&&(Mi-=.5*Mn.top),Mn.bottom&&(hr+=.5*Mn.bottom),Lr(Mn.left,Zi=ui.x,Mi,Xi=ui.x,hr)),Mn.right&&(Mi=ui.y,hr=ui.y+sn.height,Mn.top&&(Mi-=.5*Mn.top),Mn.bottom&&(hr+=.5*Mn.bottom),Lr(Mn.right,Zi=ui.x+sn.width,Mi,Xi=ui.x+sn.width,hr))}(jn,sn,ui,Mn.lineWidth))}function Si(jn,sn,ui,Mn){var Zi=sn.settings.margin.bottom,Mi=sn.settings.showFoot;return("everyPage"===Mi||"lastPage"===Mi&&ui)&&(Zi+=sn.getFootHeight(sn.columns)),jn.pageSize().height-Mn.y-Zi}function gr(jn,sn,ui,Mn,Zi,Mi){void 0===Zi&&(Zi=[]),void 0===Mi&&(Mi=!1),jn.applyStyles(jn.userStyles),"everyPage"===sn.settings.showFoot&&!Mi&&sn.foot.forEach(function(hr){return ei(jn,sn,hr,Mn,Zi)}),sn.callEndPageHooks(jn,Mn);var Xi=sn.settings.margin;(0,Tn.addTableBorder)(jn,sn,ui,Mn),ji(jn),sn.pageNumber++,sn.pageCount++,Mn.x=Xi.left,Mn.y=Xi.top,ui.y=Xi.top,sn.callWillDrawPageHooks(jn,Mn),"everyPage"===sn.settings.showHead&&(sn.head.forEach(function(hr){return ei(jn,sn,hr,Mn,Zi)}),jn.applyStyles(jn.userStyles))}function ji(jn){var sn=jn.pageNumber();return jn.setPage(sn+1),jn.pageNumber()===sn&&(jn.addPage(),!0)}tn.drawTable=function Pt(jn,sn){var ui=sn.settings,Mn=ui.startY,Zi=ui.margin,Mi={x:Zi.left,y:Mn},Xi=sn.getHeadHeight(sn.columns)+sn.getFootHeight(sn.columns),hr=Mn+Zi.bottom+Xi;"avoid"===ui.pageBreak&&(hr+=sn.body.reduce(function(Bo,Bs){return Bo+Bs.height},0));var Gi=new Ot.DocHandler(jn);("always"===ui.pageBreak||null!=ui.startY&&hr>Gi.pageSize().height)&&(ji(Gi),Mi.y=Zi.top),sn.callWillDrawPageHooks(Gi,Mi);var Mo=(0,Pn.assign)({},Mi);sn.startPageNumber=Gi.pageNumber(),ui.horizontalPageBreak?function Mt(jn,sn,ui,Mn){var Zi=(0,Wn.calculateAllColumnsCanFitInPage)(jn,sn);if("afterAllRows"===sn.settings.horizontalPageBreakBehaviour)Zi.forEach(function(Nr,Gi){jn.applyStyles(jn.userStyles),Gi>0?gr(jn,sn,ui,Mn,Nr.columns,!0):Dt(jn,sn,Mn,Nr.columns),function Fe(jn,sn,ui,Mn,Zi){jn.applyStyles(jn.userStyles),sn.body.forEach(function(Mi,Xi){K(jn,sn,Mi,Xi===sn.body.length-1,ui,Mn,Zi)})}(jn,sn,ui,Mn,Nr.columns),dn(jn,sn,Mn,Nr.columns)});else for(var Xi=-1,hr=Zi[0],Lr=function(){var Nr=Xi;if(hr){jn.applyStyles(jn.userStyles);var Gi=hr.columns;Xi>=0?gr(jn,sn,ui,Mn,Gi,!0):Dt(jn,sn,Mn,Gi),Nr=$t(jn,sn,Xi+1,Mn,Gi),dn(jn,sn,Mn,Gi)}var Mo=Nr-Xi;Zi.slice(1).forEach(function(Bo){jn.applyStyles(jn.userStyles),gr(jn,sn,ui,Mn,Bo.columns,!0),$t(jn,sn,Xi+1,Mn,Bo.columns,Mo),dn(jn,sn,Mn,Bo.columns)}),Xi=Nr};Xi<sn.body.length-1;)Lr()}(Gi,sn,Mo,Mi):(Gi.applyStyles(Gi.userStyles),("firstPage"===ui.showHead||"everyPage"===ui.showHead)&&sn.head.forEach(function(Bo){return ei(Gi,sn,Bo,Mi,sn.columns)}),Gi.applyStyles(Gi.userStyles),sn.body.forEach(function(Bo,Bs){K(Gi,sn,Bo,Bs===sn.body.length-1,Mo,Mi,sn.columns)}),Gi.applyStyles(Gi.userStyles),("lastPage"===ui.showFoot||"everyPage"===ui.showFoot)&&sn.foot.forEach(function(Bo){return ei(Gi,sn,Bo,Mi,sn.columns)})),(0,Tn.addTableBorder)(Gi,sn,Mo,Mi),sn.callEndPageHooks(Gi,Mi),sn.finalY=Mi.y,jn.lastAutoTable=sn,jn.previousAutoTable=sn,jn.autoTable&&(jn.autoTable.previous=sn),Gi.applyStyles(Gi.userStyles)},tn.addPage=gr},224:function(u,tn,e){Object.defineProperty(tn,"__esModule",{value:!0}),tn.calculateAllColumnsCanFitInPage=void 0;var Tn=e(420);function qe(Pn,wt,Wn){var Pt;void 0===Wn&&(Wn={});var Mt=(0,Tn.getPageAvailableWidth)(Pn,wt),Dt=new Map,Fe=[],$t=[],dn=[];Array.isArray(wt.settings.horizontalPageBreakRepeat)?dn=wt.settings.horizontalPageBreakRepeat:("string"==typeof wt.settings.horizontalPageBreakRepeat||"number"==typeof wt.settings.horizontalPageBreakRepeat)&&(dn=[wt.settings.horizontalPageBreakRepeat]),dn.forEach(function(K){var ei=wt.columns.find(function(kn){return kn.dataKey===K||kn.index===K});ei&&!Dt.has(ei.index)&&(Dt.set(ei.index,!0),Fe.push(ei.index),$t.push(wt.columns[ei.index]),Mt-=ei.wrappedWidth)});for(var un=!0,qt=null!==(Pt=Wn?.start)&&void 0!==Pt?Pt:0;qt<wt.columns.length;)if(Dt.has(qt))qt++;else{var yn=wt.columns[qt].wrappedWidth;if(!(un||Mt>=yn))break;un=!1,Fe.push(qt),$t.push(wt.columns[qt]),Mt-=yn,qt++}return{colIndexes:Fe,columns:$t,lastIndex:qt-1}}tn.calculateAllColumnsCanFitInPage=function Ot(Pn,wt){for(var Wn=[],Pt=0;Pt<wt.columns.length;Pt++){var Mt=qe(Pn,wt,{start:Pt});Mt.columns.length&&(Wn.push(Mt),Pt=Mt.lastIndex)}return Wn}},324:function(u,tn,e){Object.defineProperty(tn,"__esModule",{value:!0}),tn.ellipsize=tn.resizeColumns=tn.calculateWidths=void 0;var Tn=e(420);function Pn(Fe,$t,dn){for(var un=$t,qt=Fe.reduce(function(jn,sn){return jn+sn.wrappedWidth},0),yn=0;yn<Fe.length;yn++){var K=Fe[yn],Fn=K.width+un*(K.wrappedWidth/qt),Si=dn(K),gr=Fn<Si?Si:Fn;$t-=gr-K.width,K.width=gr}if($t=Math.round(1e10*$t)/1e10){var ji=Fe.filter(function(jn){return!($t<0)||jn.width>dn(jn)});ji.length&&($t=Pn(ji,$t,dn))}return $t}function Mt(Fe,$t,dn,un,qt){return Fe.map(function(yn){return function Dt(Fe,$t,dn,un,qt){var yn=1e4*un.scaleFactor();if(($t=Math.ceil($t*yn)/yn)>=(0,Tn.getStringWidth)(Fe,dn,un))return Fe;for(;$t<(0,Tn.getStringWidth)(Fe+qt,dn,un)&&!(Fe.length<=1);)Fe=Fe.substring(0,Fe.length-1);return Fe.trim()+qt}(yn,$t,dn,un,qt)})}tn.calculateWidths=function qe(Fe,$t){!function Ot(Fe,$t){var dn=Fe.scaleFactor(),un=$t.settings.horizontalPageBreak,qt=(0,Tn.getPageAvailableWidth)(Fe,$t);$t.allRows().forEach(function(yn){for(var K=0,ei=$t.columns;K<ei.length;K++){var kn=ei[K],Fn=yn.cells[kn.index];if(Fn){$t.callCellHooks(Fe,$t.hooks.didParseCell,Fn,yn,kn,null);var gr=Fn.padding("horizontal");Fn.contentWidth=(0,Tn.getStringWidth)(Fn.text,Fn.styles,Fe)+gr;var ji=(0,Tn.getStringWidth)(Fn.text.join(" ").split(/\s+/),Fn.styles,Fe);Fn.minReadableWidth=ji+Fn.padding("horizontal"),"number"==typeof Fn.styles.cellWidth?(Fn.minWidth=Fn.styles.cellWidth,Fn.wrappedWidth=Fn.styles.cellWidth):"wrap"===Fn.styles.cellWidth||!0===un?Fn.contentWidth>qt?(Fn.minWidth=qt,Fn.wrappedWidth=qt):(Fn.minWidth=Fn.contentWidth,Fn.wrappedWidth=Fn.contentWidth):(Fn.minWidth=Fn.styles.minCellWidth||10/dn,Fn.wrappedWidth=Fn.contentWidth,Fn.minWidth>Fn.wrappedWidth&&(Fn.wrappedWidth=Fn.minWidth))}}}),$t.allRows().forEach(function(yn){for(var K=0,ei=$t.columns;K<ei.length;K++){var kn=ei[K],Fn=yn.cells[kn.index];if(Fn&&1===Fn.colSpan)kn.wrappedWidth=Math.max(kn.wrappedWidth,Fn.wrappedWidth),kn.minWidth=Math.max(kn.minWidth,Fn.minWidth),kn.minReadableWidth=Math.max(kn.minReadableWidth,Fn.minReadableWidth);else{var Si=$t.styles.columnStyles[kn.dataKey]||$t.styles.columnStyles[kn.index]||{},gr=Si.cellWidth||Si.minCellWidth;gr&&"number"==typeof gr&&(kn.minWidth=gr,kn.wrappedWidth=gr)}Fn&&(Fn.colSpan>1&&!kn.minWidth&&(kn.minWidth=Fn.minWidth),Fn.colSpan>1&&!kn.wrappedWidth&&(kn.wrappedWidth=Fn.minWidth))}})}(Fe,$t);var dn=[],un=0;$t.columns.forEach(function(yn){var K=yn.getMaxCustomCellWidth($t);K?yn.width=K:(yn.width=yn.wrappedWidth,dn.push(yn)),un+=yn.width});var qt=$t.getWidth(Fe.pageSize().width)-un;qt&&(qt=Pn(dn,qt,function(yn){return Math.max(yn.minReadableWidth,yn.minWidth)})),qt&&(qt=Pn(dn,qt,function(yn){return yn.minWidth})),qt=Math.abs(qt),!$t.settings.horizontalPageBreak&&qt>.1/Fe.scaleFactor()&&(qt=qt<1?qt:Math.round(qt),console.warn("Of the table content, ".concat(qt," units width could not fit page"))),function Wn(Fe){for(var $t=Fe.allRows(),dn=0;dn<$t.length;dn++)for(var un=$t[dn],qt=null,yn=0,K=0,ei=0;ei<Fe.columns.length;ei++){var kn=Fe.columns[ei];if((K-=1)>1&&Fe.columns[ei+1])yn+=kn.width,delete un.cells[kn.index];else if(qt){var Fn=qt;delete un.cells[kn.index],qt=null,Fn.width=kn.width+yn}else{if(!(Fn=un.cells[kn.index]))continue;if(K=Fn.colSpan,yn=0,Fn.colSpan>1){qt=Fn,yn+=kn.width;continue}Fn.width=kn.width+yn}}}($t),function Pt(Fe,$t){for(var dn={count:0,height:0},un=0,qt=Fe.allRows();un<qt.length;un++){for(var yn=qt[un],K=0,ei=Fe.columns;K<ei.length;K++){var Fn=yn.cells[ei[K].index];if(Fn){$t.applyStyles(Fn.styles,!0);var Si=Fn.width-Fn.padding("horizontal");if("linebreak"===Fn.styles.overflow)Fn.text=$t.splitTextToSize(Fn.text,Si+1/$t.scaleFactor(),{fontSize:Fn.styles.fontSize});else if("ellipsize"===Fn.styles.overflow)Fn.text=Mt(Fn.text,Si,Fn.styles,$t,"...");else if("hidden"===Fn.styles.overflow)Fn.text=Mt(Fn.text,Si,Fn.styles,$t,"");else if("function"==typeof Fn.styles.overflow){var gr=Fn.styles.overflow(Fn.text,Si);Fn.text="string"==typeof gr?[gr]:gr}Fn.contentHeight=Fn.getContentHeight($t.scaleFactor(),$t.getLineHeightFactor());var ji=Fn.contentHeight/Fn.rowSpan;Fn.rowSpan>1&&dn.count*dn.height<ji*Fn.rowSpan?dn={height:ji,count:Fn.rowSpan}:dn&&dn.count>0&&dn.height>ji&&(ji=dn.height),ji>yn.height&&(yn.height=ji)}}dn.count--}}($t,Fe),function wt(Fe){for(var $t={},dn=1,un=Fe.allRows(),qt=0;qt<un.length;qt++)for(var yn=un[qt],K=0,ei=Fe.columns;K<ei.length;K++){var kn=ei[K],Fn=$t[kn.index];if(dn>1)dn--,delete yn.cells[kn.index];else if(Fn)Fn.cell.height+=yn.height,dn=Fn.cell.colSpan,delete yn.cells[kn.index],Fn.left--,Fn.left<=1&&delete $t[kn.index];else{var Si=yn.cells[kn.index];if(!Si)continue;if(Si.height=yn.height,Si.rowSpan>1){var gr=un.length-qt;$t[kn.index]={cell:Si,left:Si.rowSpan>gr?gr:Si.rowSpan,row:yn}}}}}($t)},tn.resizeColumns=Pn,tn.ellipsize=Mt},964:function(u){if(typeof E>"u"){var tn=new Error("Cannot find module 'undefined'");throw tn.code="MODULE_NOT_FOUND",tn}u.exports=E}},xi={};function ie(u){var tn=xi[u];if(void 0!==tn)return tn.exports;var e=xi[u]={exports:{}};return Ie[u].call(e.exports,e,e.exports,ie),e.exports}var Bi={};return function(){var u=Bi;Object.defineProperty(u,"__esModule",{value:!0}),u.Cell=u.Column=u.Row=u.Table=u.CellHookData=u.__drawTable=u.__createTable=u.applyPlugin=void 0;var tn=ie(340),e=ie(776),Tn=ie(664),qe=ie(972),Ot=ie(260);Object.defineProperty(u,"Table",{enumerable:!0,get:function(){return Ot.Table}});var Pn=ie(172);Object.defineProperty(u,"CellHookData",{enumerable:!0,get:function(){return Pn.CellHookData}});var wt=ie(260);function Wn($t){(0,tn.default)($t)}Object.defineProperty(u,"Cell",{enumerable:!0,get:function(){return wt.Cell}}),Object.defineProperty(u,"Column",{enumerable:!0,get:function(){return wt.Column}}),Object.defineProperty(u,"Row",{enumerable:!0,get:function(){return wt.Row}}),u.applyPlugin=Wn,u.__createTable=function Mt($t,dn){var un=(0,e.parseInput)($t,dn);return(0,qe.createTable)($t,un)},u.__drawTable=function Dt($t,dn){(0,Tn.drawTable)($t,dn)};try{var Fe=ie(964);Fe.jsPDF&&(Fe=Fe.jsPDF),Wn(Fe)}catch{}u.default=function Pt($t,dn){var un=(0,e.parseInput)($t,dn),qt=(0,qe.createTable)($t,un);(0,Tn.drawTable)($t,qt)}}(),Bi}())},89107:(ys,Ha,bn)=>{"use strict";bn.r(Ha),bn.d(Ha,{AcroForm:()=>Co,AcroFormAppearance:()=>gi,AcroFormButton:()=>st,AcroFormCheckBox:()=>Zt,AcroFormChoiceField:()=>_e,AcroFormComboBox:()=>Ee,AcroFormEditBox:()=>_t,AcroFormListBox:()=>he,AcroFormPasswordField:()=>jr,AcroFormPushButton:()=>Xt,AcroFormRadioButton:()=>wn,AcroFormTextField:()=>Un,GState:()=>or,ShadingPattern:()=>Hr,TilingPattern:()=>Ea,default:()=>yi,jsPDF:()=>xr});var E=bn(82284),ie=Uint8Array,Bi=Uint16Array,u=Uint32Array,tn=new ie([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),e=new ie([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Tn=new ie([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),qe=function(A,y){for(var k=new Bi(31),P=0;P<31;++P)k[P]=y+=1<<A[P-1];var N=new u(k[30]);for(P=1;P<30;++P)for(var D=k[P];D<k[P+1];++D)N[D]=D-k[P]<<5|P;return[k,N]},Ot=qe(tn,2),Pn=Ot[0],wt=Ot[1];Pn[28]=258,wt[258]=28;for(var Wn=qe(e,0),Pt=Wn[0],Mt=Wn[1],Dt=new Bi(32768),Fe=0;Fe<32768;++Fe){var $t=(43690&Fe)>>>1|(21845&Fe)<<1;Dt[Fe]=((65280&($t=(61680&($t=(52428&$t)>>>2|(13107&$t)<<2))>>>4|(3855&$t)<<4))>>>8|(255&$t)<<8)>>>1}var dn=function(A,y,k){for(var P=A.length,N=0,D=new Bi(y);N<P;++N)++D[A[N]-1];var W,U=new Bi(y);for(N=0;N<y;++N)U[N]=U[N-1]+D[N-1]<<1;if(k){W=new Bi(1<<y);var X=15-y;for(N=0;N<P;++N)if(A[N])for(var de=N<<4|A[N],ve=y-A[N],Ae=U[A[N]-1]++<<ve,Le=Ae|(1<<ve)-1;Ae<=Le;++Ae)W[Dt[Ae]>>>X]=de}else for(W=new Bi(P),N=0;N<P;++N)W[N]=Dt[U[A[N]-1]++]>>>15-A[N];return W},un=new ie(288);for(Fe=0;Fe<144;++Fe)un[Fe]=8;for(Fe=144;Fe<256;++Fe)un[Fe]=9;for(Fe=256;Fe<280;++Fe)un[Fe]=7;for(Fe=280;Fe<288;++Fe)un[Fe]=8;var qt=new ie(32);for(Fe=0;Fe<32;++Fe)qt[Fe]=5;var yn=dn(un,9,0),K=dn(un,9,1),ei=dn(qt,5,0),kn=dn(qt,5,1),Fn=function(A){for(var y=A[0],k=1;k<A.length;++k)A[k]>y&&(y=A[k]);return y},Si=function(A,y,k){var P=y/8|0;return(A[P]|A[P+1]<<8)>>>(7&y)&k},gr=function(A,y){var k=y/8|0;return(A[k]|A[k+1]<<8|A[k+2]<<16)>>>(7&y)},ji=function(A){return(A/8|0)+(7&A&&1)},jn=function(A,y,k){(null==y||y<0)&&(y=0),(null==k||k>A.length)&&(k=A.length);var P=new(A instanceof Bi?Bi:A instanceof u?u:ie)(k-y);return P.set(A.subarray(y,k)),P},ui=function(A,y,k){var P=y/8|0;A[P]|=k<<=7&y,A[P+1]|=k>>>8},Mn=function(A,y,k){var P=y/8|0;A[P]|=k<<=7&y,A[P+1]|=k>>>8,A[P+2]|=k>>>16},Zi=function(A,y){for(var k=[],P=0;P<A.length;++P)A[P]&&k.push({s:P,f:A[P]});var N=k.length,D=k.slice();if(!N)return[new ie(0),0];if(1==N){var U=new ie(k[0].s+1);return U[k[0].s]=1,[U,1]}k.sort(function(An,hi){return An.f-hi.f}),k.push({s:-1,f:25001});var W=k[0],X=k[1],de=0,ve=1,Ae=2;for(k[0]={s:-1,f:W.f+X.f,l:W,r:X};ve!=N-1;)W=k[k[de].f<k[Ae].f?de++:Ae++],X=k[de!=ve&&k[de].f<k[Ae].f?de++:Ae++],k[ve++]={s:-1,f:W.f+X.f,l:W,r:X};var Le=D[0].s;for(P=1;P<N;++P)D[P].s>Le&&(Le=D[P].s);var oe=new Bi(Le+1),at=Mi(k[ve-1],oe,0);if(at>y){P=0;var We=0,ht=at-y,Ve=1<<ht;for(D.sort(function(hi,mn){return oe[mn.s]-oe[hi.s]||hi.f-mn.f});P<N;++P){var ot=D[P].s;if(!(oe[ot]>y))break;We+=Ve-(1<<at-oe[ot]),oe[ot]=y}for(We>>>=ht;We>0;){var Rt=D[P].s;oe[Rt]<y?We-=1<<y-oe[Rt]++-1:++P}for(;P>=0&&We;--P){var Jt=D[P].s;oe[Jt]==y&&(--oe[Jt],++We)}at=y}return[new ie(oe),at]},Mi=function(A,y,k){return-1==A.s?Math.max(Mi(A.l,y,k+1),Mi(A.r,y,k+1)):y[A.s]=k},Xi=function(A){for(var y=A.length;y&&!A[--y];);for(var k=new Bi(++y),P=0,N=A[0],D=1,U=function(X){k[P++]=X},W=1;W<=y;++W)if(A[W]==N&&W!=y)++D;else{if(!N&&D>2){for(;D>138;D-=138)U(32754);D>2&&(U(D>10?D-11<<5|28690:D-3<<5|12305),D=0)}else if(D>3){for(U(N),--D;D>6;D-=6)U(8304);D>2&&(U(D-3<<5|8208),D=0)}for(;D--;)U(N);D=1,N=A[W]}return[k.subarray(0,P),y]},hr=function(A,y){for(var k=0,P=0;P<y.length;++P)k+=A[P]*y[P];return k},Lr=function(A,y,k){var P=k.length,N=ji(y+2);A[N]=255&P,A[N+1]=P>>>8,A[N+2]=255^A[N],A[N+3]=255^A[N+1];for(var D=0;D<P;++D)A[N+D+4]=k[D];return 8*(N+4+P)},Nr=function(A,y,k,P,N,D,U,W,X,de,ve){ui(y,ve++,k),++N[256];for(var Ae=Zi(N,15),Le=Ae[0],oe=Ae[1],at=Zi(D,15),We=at[0],ht=at[1],Ve=Xi(Le),ot=Ve[0],Rt=Ve[1],Jt=Xi(We),An=Jt[0],hi=Jt[1],mn=new Bi(19),At=0;At<ot.length;++At)mn[31&ot[At]]++;for(At=0;At<An.length;++At)mn[31&An[At]]++;for(var qn=Zi(mn,7),ii=qn[0],He=qn[1],$e=19;$e>4&&!ii[Tn[$e-1]];--$e);var Dn,Xn,xn,oi,jt=de+5<<3,kt=hr(N,un)+hr(D,qt)+U,On=hr(N,Le)+hr(D,We)+U+14+3*$e+hr(mn,ii)+(2*mn[16]+3*mn[17]+7*mn[18]);if(jt<=kt&&jt<=On)return Lr(y,ve,A.subarray(X,X+de));if(ui(y,ve,1+(On<kt)),ve+=2,On<kt){Dn=dn(Le,oe,0),Xn=Le,xn=dn(We,ht,0),oi=We;var ai=dn(ii,He,0);for(ui(y,ve,Rt-257),ui(y,ve+5,hi-1),ui(y,ve+10,$e-4),ve+=14,At=0;At<$e;++At)ui(y,ve+3*At,ii[Tn[At]]);ve+=3*$e;for(var Qi=[ot,An],Te=0;Te<2;++Te){var Qe=Qi[Te];for(At=0;At<Qe.length;++At)ui(y,ve,ai[dt=31&Qe[At]]),ve+=ii[dt],dt>15&&(ui(y,ve,Qe[At]>>>5&127),ve+=Qe[At]>>>12)}}else Dn=yn,Xn=un,xn=ei,oi=qt;for(At=0;At<W;++At)if(P[At]>255){var dt;Mn(y,ve,Dn[257+(dt=P[At]>>>18&31)]),ve+=Xn[dt+257],dt>7&&(ui(y,ve,P[At]>>>23&31),ve+=tn[dt]);var Nt=31&P[At];Mn(y,ve,xn[Nt]),ve+=oi[Nt],Nt>3&&(Mn(y,ve,P[At]>>>5&8191),ve+=e[Nt])}else Mn(y,ve,Dn[P[At]]),ve+=Xn[P[At]];return Mn(y,ve,Dn[256]),ve+Xn[256]},Gi=new u([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Mo=new ie(0),Jo=function(A,y,k,P,N){return function(A,y,k,P,N,D){var U=A.length,W=new ie(P+U+5*(1+Math.floor(U/7e3))+N),X=W.subarray(P,W.length-N),de=0;if(!y||U<8)for(var ve=0;ve<=U;ve+=65535){var Ae=ve+65535;Ae<U?de=Lr(X,de,A.subarray(ve,Ae)):(X[ve]=D,de=Lr(X,de,A.subarray(ve,U)))}else{for(var Le=Gi[y-1],oe=Le>>>13,at=8191&Le,We=(1<<k)-1,ht=new Bi(32768),Ve=new Bi(We+1),ot=Math.ceil(k/3),Rt=2*ot,Jt=function($r){return(A[$r]^A[$r+1]<<ot^A[$r+2]<<Rt)&We},An=new u(25e3),hi=new Bi(288),mn=new Bi(32),At=0,qn=0,ii=(ve=0,0),He=0,$e=0;ve<U;++ve){var jt=Jt(ve),kt=32767&ve,On=Ve[jt];if(ht[kt]=On,Ve[jt]=kt,He<=ve){var Dn=U-ve;if((At>7e3||ii>24576)&&Dn>423){de=Nr(A,X,0,An,hi,mn,qn,ii,$e,ve-$e,de),ii=At=qn=0,$e=ve;for(var Xn=0;Xn<286;++Xn)hi[Xn]=0;for(Xn=0;Xn<30;++Xn)mn[Xn]=0}var xn=2,oi=0,ai=at,Qi=kt-On&32767;if(Dn>2&&jt==Jt(ve-Qi))for(var Te=Math.min(oe,Dn)-1,Qe=Math.min(32767,ve),dt=Math.min(258,Dn);Qi<=Qe&&--ai&&kt!=On;){if(A[ve+xn]==A[ve+xn-Qi]){for(var Nt=0;Nt<dt&&A[ve+Nt]==A[ve+Nt-Qi];++Nt);if(Nt>xn){if(xn=Nt,oi=Qi,Nt>Te)break;var Qt=Math.min(Qi,Nt-2),Cn=0;for(Xn=0;Xn<Qt;++Xn){var In=ve-Qi+Xn+32768&32767,Ri=In-ht[In]+32768&32767;Ri>Cn&&(Cn=Ri,On=In)}}}Qi+=(kt=On)-(On=ht[kt])+32768&32767}if(oi){An[ii++]=268435456|wt[xn]<<18|Mt[oi];var Oi=31&wt[xn],Zn=31&Mt[oi];qn+=tn[Oi]+e[Zn],++hi[257+Oi],++mn[Zn],He=ve+xn,++At}else An[ii++]=A[ve],++hi[A[ve]]}}de=Nr(A,X,D,An,hi,mn,qn,ii,$e,ve-$e,de),D||(de=Lr(X,de,Mo))}return jn(W,0,P+ji(de)+N)}(A,null==y.level?6:y.level,null==y.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(A.length)))):12+y.mem,k,P,!N)};function Jc(A,y){void 0===y&&(y={});var k=function(){var A=1,y=0;return{p:function(k){for(var P=A,N=y,D=k.length,U=0;U!=D;){for(var W=Math.min(U+5552,D);U<W;++U)N+=P+=k[U];P%=65521,N%=65521}A=P,y=N},d:function(){return(A>>>8<<16|(255&y)<<8|y>>>8)+2*((255&A)<<23)}}}();k.p(A);var P=Jo(A,y,2,4);return function(A,y){var k=y.level,P=0==k?0:k<6?1:9==k?3:2;A[0]=120,A[1]=P<<6|(P?32-2*P:1)}(P,y),function(A,y,k){for(;k;++y)A[y]=k,k>>>=8}(P,P.length-4,k.d()),P}function Qo(A,y){return function(A,y,k){var P=A.length,N=!y||k,D=!k||k.i;k||(k={}),y||(y=new ie(3*P));var U=function(Qt){var Cn=y.length;if(Qt>Cn){var In=new ie(Math.max(2*Cn,Qt));In.set(y),y=In}},W=k.f||0,X=k.p||0,de=k.b||0,ve=k.l,Ae=k.d,Le=k.m,oe=k.n,at=8*P;do{if(!ve){k.f=W=Si(A,X,1);var We=Si(A,X+1,3);if(X+=3,!We){var Ve=A[(ht=ji(X)+4)-4]|A[ht-3]<<8,ot=ht+Ve;if(ot>P){if(D)throw"unexpected EOF";break}N&&U(de+Ve),y.set(A.subarray(ht,ot),de),k.b=de+=Ve,k.p=X=8*ot;continue}if(1==We)ve=K,Ae=kn,Le=9,oe=5;else{if(2!=We)throw"invalid block type";var Rt=Si(A,X,31)+257,Jt=Si(A,X+10,15)+4,An=Rt+Si(A,X+5,31)+1;X+=14;for(var hi=new ie(An),mn=new ie(19),At=0;At<Jt;++At)mn[Tn[At]]=Si(A,X+3*At,7);X+=3*Jt;var qn=Fn(mn),ii=(1<<qn)-1;if(!D&&X+An*(qn+7)>at)break;var He=dn(mn,qn,1);for(At=0;At<An;){var ht,$e=He[Si(A,X,ii)];if(X+=15&$e,(ht=$e>>>4)<16)hi[At++]=ht;else{var jt=0,kt=0;for(16==ht?(kt=3+Si(A,X,3),X+=2,jt=hi[At-1]):17==ht?(kt=3+Si(A,X,7),X+=3):18==ht&&(kt=11+Si(A,X,127),X+=7);kt--;)hi[At++]=jt}}var On=hi.subarray(0,Rt),Dn=hi.subarray(Rt);Le=Fn(On),oe=Fn(Dn),ve=dn(On,Le,1),Ae=dn(Dn,oe,1)}if(X>at)throw"unexpected EOF"}N&&U(de+131072);for(var Xn=(1<<Le)-1,xn=(1<<oe)-1,oi=Le+oe+18;D||X+oi<at;){var ai=(jt=ve[gr(A,X)&Xn])>>>4;if((X+=15&jt)>at)throw"unexpected EOF";if(!jt)throw"invalid length/literal";if(ai<256)y[de++]=ai;else{if(256==ai){ve=null;break}var Qi=ai-254;ai>264&&(Qi=Si(A,X,(1<<(Te=tn[At=ai-257]))-1)+Pn[At],X+=Te);var Qe=Ae[gr(A,X)&xn],dt=Qe>>>4;if(!Qe)throw"invalid distance";if(X+=15&Qe,Dn=Pt[dt],dt>3){var Te=e[dt];Dn+=gr(A,X)&(1<<Te)-1,X+=Te}if(X>at)throw"unexpected EOF";N&&U(de+131072);for(var Nt=de+Qi;de<Nt;de+=4)y[de]=y[de-Dn],y[de+1]=y[de+1-Dn],y[de+2]=y[de+2-Dn],y[de+3]=y[de+3-Dn];de=Nt}}k.l=ve,k.p=X,k.b=de,ve&&(W=1,k.m=Le,k.d=Ae,k.n=oe)}while(!W);return de==y.length?y:jn(y,0,de)}((function(A){if(8!=(15&A[0])||A[0]>>>4>7||(A[0]<<8|A[1])%31)throw"invalid zlib data";if(32&A[1])throw"invalid zlib data: preset dictionaries not supported"}(A),A.subarray(2,-4)),y)}var Vr=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function bd(){Vr.console&&"function"==typeof Vr.console.log&&Vr.console.log.apply(Vr.console,arguments)}var ro={log:bd,warn:function(A){Vr.console&&("function"==typeof Vr.console.warn?Vr.console.warn.apply(Vr.console,arguments):bd.call(null,arguments))},error:function(A){Vr.console&&("function"==typeof Vr.console.error?Vr.console.error.apply(Vr.console,arguments):bd(A))}};function $d(A,y,k){var P=new XMLHttpRequest;P.open("GET",A),P.responseType="blob",P.onload=function(){$a(P.response,y,k)},P.onerror=function(){ro.error("could not download file")},P.send()}function Lc(A){var y=new XMLHttpRequest;y.open("HEAD",A,!1);try{y.send()}catch{}return y.status>=200&&y.status<=299}function td(A){try{A.dispatchEvent(new MouseEvent("click"))}catch{var y=document.createEvent("MouseEvents");y.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),A.dispatchEvent(y)}}var Sa,Xl,$a=Vr.saveAs||("object"!==(typeof window>"u"?"undefined":(0,E.A)(window))||window!==Vr?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(A,y,k){var P=Vr.URL||Vr.webkitURL,N=document.createElement("a");N.download=y=y||A.name||"download",N.rel="noopener","string"==typeof A?(N.href=A,N.origin!==location.origin?Lc(N.href)?$d(A,y,k):td(N,N.target="_blank"):td(N)):(N.href=P.createObjectURL(A),setTimeout(function(){P.revokeObjectURL(N.href)},4e4),setTimeout(function(){td(N)},0))}:"msSaveOrOpenBlob"in navigator?function(A,y,k){if(y=y||A.name||"download","string"==typeof A)if(Lc(A))$d(A,y,k);else{var P=document.createElement("a");P.href=A,P.target="_blank",setTimeout(function(){td(P)})}else navigator.msSaveOrOpenBlob((N=A,void 0===(D=k)?D={autoBom:!1}:"object"!==(0,E.A)(D)&&(ro.warn("Deprecated: Expected third argument to be a object"),D={autoBom:!D}),D.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(N.type)?new Blob(["\ufeff",N],{type:N.type}):N),y);var N,D}:function(A,y,k,P){if((P=P||open("","_blank"))&&(P.document.title=P.document.body.innerText="downloading..."),"string"==typeof A)return $d(A,y,k);var N="application/octet-stream"===A.type,D=/constructor/i.test(Vr.HTMLElement)||Vr.safari,U=/CriOS\/[\d]+/.test(navigator.userAgent);if((U||N&&D)&&"object"===(typeof FileReader>"u"?"undefined":(0,E.A)(FileReader))){var W=new FileReader;W.onloadend=function(){var ve=W.result;ve=U?ve:ve.replace(/^data:[^;]*;/,"data:attachment/file;"),P?P.location.href=ve:location=ve,P=null},W.readAsDataURL(A)}else{var X=Vr.URL||Vr.webkitURL,de=X.createObjectURL(A);P?P.location=de:location.href=de,P=null,setTimeout(function(){X.revokeObjectURL(de)},4e4)}});function qd(A){var y;A=A||"",this.ok=!1,"#"==A.charAt(0)&&(A=A.substr(1,6)),A={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee9
10",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[A=(A=A.replace(/ /g,"")).toLowerCase()]||A;
vendor: 10,571 bytes, line 1
1for(var k=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(W){return[parseInt(W[1]),parseInt(W[2]),parseInt(W[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(W){return[parseInt(W[1],16),parseInt(W[2],16),parseInt(W[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(W){return[parseInt(W[1]+W[1],16),parseInt(W[2]+W[2],16),parseInt(W[3]+W[3],16)]}}],P=0;P<k.length;P++){var D=k[P].process,U=k[P].re.exec(A);U&&(y=D(U),this.r=y[0],this.g=y[1],this.b=y[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var W=this.r.toString(16),X=this.g.toString(16),de=this.b.toString(16);return 1==W.length&&(W="0"+W),1==X.length&&(X="0"+X),1==de.length&&(de="0"+de),"#"+W+X+de}}function Dl(A,y){var k=A[0],P=A[1],N=A[2],D=A[3];k=Vo(k,P,N,D,y[0],7,-680876936),D=Vo(D,k,P,N,y[1],12,-389564586),N=Vo(N,D,k,P,y[2],17,606105819),P=Vo(P,N,D,k,y[3],22,-1044525330),k=Vo(k,P,N,D,y[4],7,-176418897),D=Vo(D,k,P,N,y[5],12,1200080426),N=Vo(N,D,k,P,y[6],17,-1473231341),P=Vo(P,N,D,k,y[7],22,-45705983),k=Vo(k,P,N,D,y[8],7,1770035416),D=Vo(D,k,P,N,y[9],12,-1958414417),N=Vo(N,D,k,P,y[10],17,-42063),P=Vo(P,N,D,k,y[11],22,-1990404162),k=Vo(k,P,N,D,y[12],7,1804603682),D=Vo(D,k,P,N,y[13],12,-40341101),N=Vo(N,D,k,P,y[14],17,-1502002290),k=Xo(k,P=Vo(P,N,D,k,y[15],22,1236535329),N,D,y[1],5,-165796510),D=Xo(D,k,P,N,y[6],9,-1069501632),N=Xo(N,D,k,P,y[11],14,643717713),P=Xo(P,N,D,k,y[0],20,-373897302),k=Xo(k,P,N,D,y[5],5,-701558691),D=Xo(D,k,P,N,y[10],9,38016083),N=Xo(N,D,k,P,y[15],14,-660478335),P=Xo(P,N,D,k,y[4],20,-405537848),k=Xo(k,P,N,D,y[9],5,568446438),D=Xo(D,k,P,N,y[14],9,-1019803690),N=Xo(N,D,k,P,y[3],14,-187363961),P=Xo(P,N,D,k,y[8],20,1163531501),k=Xo(k,P,N,D,y[13],5,-1444681467),D=Xo(D,k,P,N,y[2],9,-51403784),N=Xo(N,D,k,P,y[7],14,1735328473),k=as(k,P=Xo(P,N,D,k,y[12],20,-1926607734),N,D,y[5],4,-378558),D=as(D,k,P,N,y[8],11,-2022574463),N=as(N,D,k,P,y[11],16,1839030562),P=as(P,N,D,k,y[14],23,-35309556),k=as(k,P,N,D,y[1],4,-1530992060),D=as(D,k,P,N,y[4],11,1272893353),N=as(N,D,k,P,y[7],16,-155497632),P=as(P,N,D,k,y[10],23,-1094730640),k=as(k,P,N,D,y[13],4,681279174),D=as(D,k,P,N,y[0],11,-358537222),N=as(N,D,k,P,y[3],16,-722521979),P=as(P,N,D,k,y[6],23,76029189),k=as(k,P,N,D,y[9],4,-640364487),D=as(D,k,P,N,y[12],11,-421815835),N=as(N,D,k,P,y[15],16,530742520),k=os(k,P=as(P,N,D,k,y[2],23,-995338651),N,D,y[0],6,-198630844),D=os(D,k,P,N,y[7],10,1126891415),N=os(N,D,k,P,y[14],15,-1416354905),P=os(P,N,D,k,y[5],21,-57434055),k=os(k,P,N,D,y[12],6,1700485571),D=os(D,k,P,N,y[3],10,-1894986606),N=os(N,D,k,P,y[10],15,-1051523),P=os(P,N,D,k,y[1],21,-2054922799),k=os(k,P,N,D,y[8],6,1873313359),D=os(D,k,P,N,y[15],10,-30611744),N=os(N,D,k,P,y[6],15,-1560198380),P=os(P,N,D,k,y[13],21,1309151649),k=os(k,P,N,D,y[4],6,-145523070),D=os(D,k,P,N,y[11],10,-1120210379),N=os(N,D,k,P,y[2],15,718787259),P=os(P,N,D,k,y[9],21,-343485551),A[0]=se(k,A[0]),A[1]=se(P,A[1]),A[2]=se(N,A[2]),A[3]=se(D,A[3])}function Ps(A,y,k,P,N,D){return y=se(se(y,A),se(P,D)),se(y<<N|y>>>32-N,k)}function Vo(A,y,k,P,N,D,U){return Ps(y&k|~y&P,A,y,N,D,U)}function Xo(A,y,k,P,N,D,U){return Ps(y&P|k&~P,A,y,N,D,U)}function as(A,y,k,P,N,D,U){return Ps(y^k^P,A,y,N,D,U)}function os(A,y,k,P,N,D,U){return Ps(k^(y|~P),A,y,N,D,U)}function Ye(A){var y,k=A.length,P=[1732584193,-271733879,-1732584194,271733878];for(y=64;y<=A.length;y+=64)Dl(P,Jn(A.substring(y-64,y)));A=A.substring(y-64);var N=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(y=0;y<A.length;y++)N[y>>2]|=A.charCodeAt(y)<<(y%4<<3);if(N[y>>2]|=128<<(y%4<<3),y>55)for(Dl(P,N),y=0;y<16;y++)N[y]=0;return N[14]=8*k,Dl(P,N),P}function Jn(A){var y,k=[];for(y=0;y<64;y+=4)k[y>>2]=A.charCodeAt(y)+(A.charCodeAt(y+1)<<8)+(A.charCodeAt(y+2)<<16)+(A.charCodeAt(y+3)<<24);return k}Sa=Vr.atob.bind(Vr),Xl=Vr.btoa.bind(Vr);var ee="0123456789abcdef".split("");function bt(A){for(var y="",k=0;k<4;k++)y+=ee[A>>8*k+4&15]+ee[A>>8*k&15];return y}function Be(A){return String.fromCharCode(255&A,(65280&A)>>8,(16711680&A)>>16,(4278190080&A)>>24)}function J(A){return Ye(A).map(Be).join("")}var me="5d41402abc4b2a76b9719d911017c592"!=function(A){for(var y=0;y<A.length;y++)A[y]=bt(A[y]);return A.join("")}(Ye("hello"));function se(A,y){if(me){var k=(65535&A)+(65535&y);return(A>>16)+(y>>16)+(k>>16)<<16|65535&k}return A+y&4294967295}function Ue(A,y){var k,P,N;if(A!==k){for(var U=(N=A,new Array(1+(256/A.length|0)+1).join(N)),W=[],X=0;X<256;X++)W[X]=X;var de=0;for(X=0;X<256;X++){var ve=W[X];de=(de+ve+U.charCodeAt(X))%256,W[X]=W[de],W[de]=ve}k=A,P=W}else W=P;var Ae=y.length,Le=0,oe=0,at="";for(X=0;X<Ae;X++)oe=(oe+(ve=W[Le=(Le+1)%256]))%256,W[Le]=W[oe],W[oe]=ve,U=W[(W[Le]+W[oe])%256],at+=String.fromCharCode(y.charCodeAt(X)^U);return at}var nn={print:4,modify:8,copy:16,"annot-forms":32};function fn(A,y,k,P){this.v=1,this.r=2;var N=192;A.forEach(function(W){if(void 0!==nn.perm)throw new Error("Invalid permission: "+W);N+=nn[W]}),this.padding="(\xbfN^Nu\x8aAd\0NV\xff\xfa\x01\b..\0\xb6\xd0h>\x80/\f\xa9\xfedSiz";var D=(y+this.padding).substr(0,32),U=(k+this.padding).substr(0,32);this.O=this.processOwnerPassword(D,U),this.P=-(1+(255^N)),this.encryptionKey=J(D+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(P)).substr(0,5),this.U=Ue(this.encryptionKey,this.padding)}function Ci(A){if(/[^\u0000-\u00ff]/.test(A))throw new Error("Invalid PDF Name Object: "+A+", Only accept ASCII characters.");for(var y="",k=A.length,P=0;P<k;P++){var N=A.charCodeAt(P);y+=N<33||35===N||37===N||40===N||41===N||47===N||60===N||62===N||91===N||93===N||123===N||125===N||N>126?"#"+("0"+N.toString(16)).slice(-2):A[P]}return y}function Di(A){if("object"!==(0,E.A)(A))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var y={};this.subscribe=function(k,P,N){if(N=N||!1,"string"!=typeof k||"function"!=typeof P||"boolean"!=typeof N)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");y.hasOwnProperty(k)||(y[k]={});var D=Math.random().toString(35);return y[k][D]=[P,!!N],D},this.unsubscribe=function(k){for(var P in y)if(y[P][k])return delete y[P][k],0===Object.keys(y[P]).length&&delete y[P],!0;return!1},this.publish=function(k){if(y.hasOwnProperty(k)){var P=Array.prototype.slice.call(arguments,1),N=[];for(var D in y[k]){var U=y[k][D];try{U[0].apply(A,P)}catch(W){Vr.console&&ro.error("jsPDF PubSub Error",W.message,W)}U[1]&&N.push(D)}N.length&&N.forEach(this.unsubscribe)}},this.getTopics=function(){return y}}function or(A){if(!(this instanceof or))return new or(A);var y="opacity,stroke-opacity".split(",");for(var k in A)A.hasOwnProperty(k)&&y.indexOf(k)>=0&&(this[k]=A[k]);this.id="",this.objectNumber=-1}function oa(A,y){this.gState=A,this.matrix=y,this.id="",this.objectNumber=-1}function Hr(A,y,k,P,N){if(!(this instanceof Hr))return new Hr(A,y,k,P,N);this.type="axial"===A?2:3,this.coords=y,this.colors=k,oa.call(this,P,N)}function Ea(A,y,k,P,N){if(!(this instanceof Ea))return new Ea(A,y,k,P,N);this.boundingBox=A,this.xStep=y,this.yStep=k,this.stream="",this.cloneIndex=0,oa.call(this,P,N)}function xr(A){var y,k="string"==typeof arguments[0]?arguments[0]:"p",P=arguments[1],N=arguments[2],D=arguments[3],U=[],W=1,X=16,de="S",ve=null;"object"===(0,E.A)(A=A||{})&&(k=A.orientation,P=A.unit||P,N=A.format||N,D=A.compress||A.compressPdf||D,null!==(ve=A.encryption||null)&&(ve.userPassword=ve.userPassword||"",ve.ownerPassword=ve.ownerPassword||"",ve.userPermissions=ve.userPermissions||[]),W="number"==typeof A.userUnit?Math.abs(A.userUnit):1,void 0!==A.precision&&(y=A.precision),void 0!==A.floatPrecision&&(X=A.floatPrecision),de=A.defaultPathOperation||"S"),U=A.filters||(!0===D?["FlateEncode"]:U),P=P||"mm",k=(""+(k||"P")).toLowerCase();var Ae=A.putOnlyUsedFonts||!1,Le={},oe={internal:{},__private__:{}};oe.__private__.PubSub=Di;var at="1.3",We=oe.__private__.getPdfVersion=function(){return at};oe.__private__.setPdfVersion=function(z){at=z};var ht={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],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};oe.__private__.getPageFormats=function(){return ht};var Ve=oe.__private__.getPageFormat=function(z){return ht[z]};N=N||"a4";var Rt="compat";function Jt(){this.saveGraphicsState(),vt(new Ii(lr,0,0,-lr,0,mf()*lr).toString()+" cm"),this.setFontSize(this.getFontSize()/lr),de="n",Rt="advanced"}function An(){this.restoreGraphicsState(),de="S",Rt="compat"}var hi=oe.__private__.combineFontStyleAndFontWeight=function(z,ge){if("bold"==z&&"normal"==ge||"bold"==z&&400==ge||"normal"==z&&"italic"==ge||"bold"==z&&"italic"==ge)throw new Error("Invalid Combination of fontweight and fontstyle");return ge&&(z=400==ge||"normal"===ge?"italic"===z?"italic":"normal":700!=ge&&"bold"!==ge||"normal"!==z?(700==ge?"bold":ge)+""+z:"bold"),z};oe.advancedAPI=function(z){var ge="compat"===Rt;return ge&&Jt.call(this),"function"!=typeof z||(z(this),ge&&An.call(this)),this},oe.compatAPI=function(z){var ge="advanced"===Rt;return ge&&An.call(this),"function"!=typeof z||(z(this),ge&&Jt.call(this)),this},oe.isAdvancedAPI=function(){return"advanced"===Rt};var mn,At=function(z){if("advanced"!==Rt)throw new Error(z+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},qn=oe.roundToPrecision=oe.__private__.roundToPrecision=function(z,ge){var rt=y||ge;if(isNaN(z)||isNaN(rt))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return z.toFixed(rt).replace(/0+$/,"")};mn=oe.hpf=oe.__private__.hpf="number"==typeof X?function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.hpf");return qn(z,X)}:"smart"===X?function(z){if(isNaN(z))throw new Error("Invalid argument passed to
1jsPDF.hpf");return qn(z,z>-1&&z<1?16:5)}:function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.hpf");return qn(z,16)};var ii=oe.f2=oe.__private__.f2=function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.f2");return qn(z,2)},He=oe.__private__.f3=function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.f3");return qn(z,3)},$e=oe.scale=oe.__private__.scale=function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.scale");return"compat"===Rt?z*lr:"advanced"===Rt?z:void 0},kt=function(z){return $e(function(z){return"compat"===Rt?mf()-z:"advanced"===Rt?z:void 0}(z))};oe.__private__.setPrecision=oe.setPrecision=function(z){"number"==typeof parseInt(z,10)&&(y=parseInt(z,10))};var On,Dn="00000000000000000000000000000000",Xn=oe.__private__.getFileId=function(){return Dn},xn=oe.__private__.setFileId=function(z){return Dn=void 0!==z&&/^[a-fA-F0-9]{32}$/.test(z)?z.toUpperCase():Dn.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==ve&&(Xs=new fn(ve.userPermissions,ve.userPassword,ve.ownerPassword,Dn)),Dn};oe.setFileId=function(z){return xn(z),this},oe.getFileId=function(){return Xn()};var oi=oe.__private__.convertDateToPDFDate=function(z){var ge=z.getTimezoneOffset(),rt=ge<0?"+":"-",gt=Math.floor(Math.abs(ge/60)),Ut=Math.abs(ge%60),ri=[rt,dt(gt),"'",dt(Ut),"'"].join("");return["D:",z.getFullYear(),dt(z.getMonth()+1),dt(z.getDate()),dt(z.getHours()),dt(z.getMinutes()),dt(z.getSeconds()),ri].join("")},ai=oe.__private__.convertPDFDateToDate=function(z){var ge=parseInt(z.substr(2,4),10),rt=parseInt(z.substr(6,2),10)-1,gt=parseInt(z.substr(8,2),10),Ut=parseInt(z.substr(10,2),10),ri=parseInt(z.substr(12,2),10),ki=parseInt(z.substr(14,2),10);return new Date(ge,rt,gt,Ut,ri,ki,0)},Qi=oe.__private__.setCreationDate=function(z){var ge;if(void 0===z&&(z=new Date),z instanceof Date)ge=oi(z);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(z))throw new Error("Invalid argument passed to jsPDF.setCreationDate");ge=z}return On=ge},Te=oe.__private__.getCreationDate=function(z){var ge=On;return"jsDate"===z&&(ge=ai(On)),ge};oe.setCreationDate=function(z){return Qi(z),this},oe.getCreationDate=function(z){return Te(z)};var Qe,dt=oe.__private__.padd2=function(z){return("0"+parseInt(z)).slice(-2)},Nt=oe.__private__.padd2Hex=function(z){return("00"+(z=z.toString())).substr(z.length)},Qt=0,Cn=[],In=[],Ln=0,Ri=[],Oi=[],Zn=!1,Hi=In;oe.__private__.setCustomOutputDestination=function(z){Zn=!0,Hi=z};var Qn=function(z){Zn||(Hi=z)};oe.__private__.resetCustomOutputDestination=function(){Zn=!1,Hi=In};var vt=oe.__private__.out=function(z){return z=z.toString(),Ln+=z.length+1,Hi.push(z),Hi},pa=oe.__private__.write=function(z){return vt(1===arguments.length?z.toString():Array.prototype.join.call(arguments," "))},Wi=oe.__private__.getArrayBuffer=function(z){for(var ge=z.length,rt=new ArrayBuffer(ge),gt=new
vendor: 8,392 bytes, line 1
1Uint8Array(rt);ge--;)gt[ge]=z.charCodeAt(ge);return rt},Pi=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];oe.__private__.getStandardFonts=function(){return Pi};var zi=A.fontSize||16;oe.__private__.setFontSize=oe.setFontSize=function(z){return zi="advanced"===Rt?z/lr:z,this};var er,qi=oe.__private__.getFontSize=oe.getFontSize=function(){return"compat"===Rt?zi:zi*lr},sr=A.R2L||!1;oe.__private__.setR2L=oe.setR2L=function(z){return sr=z,this},oe.__private__.getR2L=oe.getR2L=function(){return sr};var Sr,Se=oe.__private__.setZoomMode=function(z){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(z))er=z;else if(isNaN(z)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(z))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+z+'" is not recognized.');er=z}else er=parseInt(z,10)};oe.__private__.getZoomMode=function(){return er};var Ca,Ua=oe.__private__.setPageMode=function(z){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(z))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+z+'" is not recognized.');Sr=z};oe.__private__.getPageMode=function(){return Sr};var Da=oe.__private__.setLayoutMode=function(z){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(z))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+z+'" is not recognized.');Ca=z};oe.__private__.getLayoutMode=function(){return Ca},oe.__private__.setDisplayMode=oe.setDisplayMode=function(z,ge,rt){return Se(z),Da(ge),Ua(rt),this};var $i={title:"",subject:"",author:"",keywords:"",creator:""};oe.__private__.getDocumentProperty=function(z){if(-1===Object.keys($i).indexOf(z))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return $i[z]},oe.__private__.getDocumentProperties=function(){return $i},oe.__private__.setDocumentProperties=oe.setProperties=oe.setDocumentProperties=function(z){for(var ge in $i)$i.hasOwnProperty(ge)&&z[ge]&&($i[ge]=z[ge]);return this},oe.__private__.setDocumentProperty=function(z,ge){if(-1===Object.keys($i).indexOf(z))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return $i[z]=ge};var Aa,lr,Ds,Mr,Zl,Kr={},ha={},Ws=[],Fo={},$s={},Is={},od={},pu=null,js=0,qr=[],ja=new Di(oe),ts=A.hotfixes||[],Io={},Zd={},Qd=[],Ii=function z(ge,rt,gt,Ut,ri,ki){if(!(this instanceof z))return new z(ge,rt,gt,Ut,ri,ki);isNaN(ge)&&(ge=1),isNaN(rt)&&(rt=0),isNaN(gt)&&(gt=0),isNaN(Ut)&&(Ut=1),isNaN(ri)&&(ri=0),isNaN(ki)&&(ki=0),this._matrix=[ge,rt,gt,Ut,ri,ki]};Object.defineProperty(Ii.prototype,"sx",{get:function(){return this._matrix[0]},set:function(z){this._matrix[0]=z}}),Object.defineProperty(Ii.prototype,"shy",{get:function(){return this._matrix[1]},set:function(z){this._matrix[1]=z}}),Object.defineProperty(Ii.prototype,"shx",{get:function(){return this._matrix[2]},set:function(z){this._matrix[2]=z}}),Object.defineProperty(Ii.prototype,"sy",{get:function(){return this._matrix[3]},set:function(z){this._matrix[3]=z}}),Object.defineProperty(Ii.prototype,"tx",{get:function(){return this._matrix[4]},set:function(z){this._matrix[4]=z}}),Object.defineProperty(Ii.prototype,"ty",{get:function(){return this._matrix[5]},set:function(z){this._matrix[5]=z}}),Object.defineProperty(Ii.prototype,"a",{get:function(){return this._matrix[0]},set:function(z){this._matrix[0]=z}}),Object.defineProperty(Ii.prototype,"b",{get:function(){return this._matrix[1]},set:function(z){this._matrix[1]=z}}),Object.defineProperty(Ii.prototype,"c",{get:function(){return this._matrix[2]},set:function(z){this._matrix[2]=z}}),Object.defineProperty(Ii.prototype,"d",{get:function(){return this._matrix[3]},set:function(z){this._matrix[3]=z}}),Object.defineProperty(Ii.prototype,"e",{get:function(){return this._matrix[4]},set:function(z){this._matrix[4]=z}}),Object.defineProperty(Ii.prototype,"f",{get:function(){return this._matrix[5]},set:function(z){this._matrix[5]=z}}),Object.defineProperty(Ii.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ii.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ii.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ii.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Ii.prototype.join=function(z){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(mn).join(z)},Ii.prototype.multiply=function(z){return new Ii(z.sx*this.sx+z.shy*this.shx,z.sx*this.shy+z.shy*this.sy,z.shx*this.sx+z.sy*this.shx,z.shx*this.shy+z.sy*this.sy,z.tx*this.sx+z.ty*this.shx+this.tx,z.tx*this.shy+z.ty*this.sy+this.ty)},Ii.prototype.decompose=function(){var z=this.sx,ge=this.shy,rt=this.shx,gt=this.sy,Ut=this.tx,ri=this.ty,ki=Math.sqrt(z*z+ge*ge),cr=(z/=ki)*rt+(ge/=ki)*gt;rt-=z*cr,gt-=ge*cr;var Jr=Math.sqrt(rt*rt+gt*gt);return cr/=Jr,z*(gt/=Jr)<ge*(rt/=Jr)&&(z=-z,ge=-ge,cr=-cr,ki=-ki),{scale:new Ii(ki,0,0,Jr,0,0),translate:new Ii(1,0,0,1,Ut,ri),rotate:new Ii(z,ge,-ge,z,0,0),skew:new Ii(1,0,cr,1,0,0)}},Ii.prototype.toString=function(z){return this.join(" ")},Ii.prototype.inversed=function(){var z=this.sx,ge=this.shy,rt=this.shx,gt=this.sy,Ut=this.tx,ri=this.ty,ki=1/(z*gt-ge*rt),cr=gt*ki,Jr=-ge*ki,ua=-rt*ki,Xa=z*ki;return new Ii(cr,Jr,ua,Xa,-cr*Ut-ua*ri,-Jr*Ut-Xa*ri)},Ii.prototype.applyToPoint=function(z){return new Ad(z.x*this.sx+z.y*this.shx+this.tx,z.x*this.shy+z.y*this.sy+this.ty)},Ii.prototype.applyToRectangle=function(z){var ge=this.applyToPoint(z),rt=this.applyToPoint(new Ad(z.x+z.w,z.y+z.h));return new rp(ge.x,ge.y,rt.x-ge.x,rt.y-ge.y)},Ii.prototype.clone=function(){return new Ii(this.sx,this.shy,this.shx,this.sy,this.tx,this.ty)},oe.Matrix=Ii;var yl=oe.matrixMult=function(z,ge){return ge.multiply(z)},Cd=new Ii(1,0,0,1,0,0);oe.unitMatrix=oe.identityMatrix=Cd;var Cl=function(z,ge){if(!$s[z]){var rt=(ge instanceof Hr?"Sh":"P")+(Object.keys(Fo).length+1).toString(10);ge.id=rt,$s[z]=rt,Fo[rt]=ge,ja.publish("addPattern",ge)}};oe.ShadingPattern=Hr,oe.TilingPattern=Ea,oe.addShadingPattern=function(z,ge){return At("addShadingPattern()"),Cl(z,ge),this},oe.beginTilingPattern=function(z){At("beginTilingPattern()"),Up(z.boundingBox[0],z.boundingBox[1],z.boundingBox[2]-z.boundingBox[0],z.boundingBox[3]-z.boundingBox[1],z.matrix)},oe.endTilingPattern=function(z,ge){At("endTilingPattern()"),ge.stream=Oi[Qe].join("\n"),Cl(z,ge),ja.publish("endTilingPattern",ge),Qd.pop().restore()};var z,Gr=oe.__private__.newObject=function(){var z=cl();return Cc(z,!0),z},cl=oe.__private__.newObjectDeferred=function(){return Qt++,Cn[Qt]=function(){return Ln},Qt},Cc=function(z,ge){return ge="boolean"==typeof ge&&ge,Cn[z]=Ln,ge&&vt(z+" 0 obj"),z},qs=oe.__private__.newAdditionalObject=function(){var z={objId:cl(),content:""};return Ri.push(z),z},Ao=cl(),kd=cl(),sd=oe.__private__.decodeColorString=function(z){var ge=z.split(" ");if(2!==ge.length||"g"!==ge[1]&&"G"!==ge[1])5===ge.length&&("k"===ge[4]||"K"===ge[4])&&(ge=[(1-ge[0])*(1-ge[3]),(1-ge[1])*(1-ge[3]),(1-ge[2])*(1-ge[3]),"r"]);else{var rt=parseFloat(ge[0]);ge=[rt,rt,rt,"r"]}for(var gt="#",Ut=0;Ut<3;Ut++)gt+=("0"+Math.floor(255*parseFloat(ge[Ut])).toString(16)).slice(-2);return gt},Xr=oe.__private__.encodeColorString=function(z){var ge;"string"==typeof z&&(z={ch1:z});var rt=z.ch1,gt=z.ch2,Ut=z.ch3,ri=z.ch4,ki="draw"===z.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof rt&&"#"!==rt.charAt(0)){var cr=new qd(rt);if(cr.ok)rt=cr.toHex();else if(!/^\d*\.?\d*$/.test(rt))throw new Error('Invalid color "'+rt+'" passed to
1jsPDF.encodeColorString.')}if("string"==typeof rt&&/^#[0-9A-Fa-f]{3}$/.test(rt)&&(rt="#"+rt[1]+rt[1]+rt[2]+rt[2]+rt[3]+rt[3]),"string"==typeof rt&&/^#[0-9A-Fa-f]{6}$/.test(rt)){var Jr=parseInt(rt.substr(1),16);rt=Jr>>16&255,gt=Jr>>8&255,Ut=255&Jr}if(void 0===gt||void 0===ri&&rt===gt&>===Ut)ge="string"==typeof rt?rt+" "+ki[0]:2===z.precision?ii(rt/255)+" "+ki[0]:He(rt/255)+" "+ki[0];else if(void 0===ri||"object"===(0,E.A)(ri)){if(ri&&!isNaN(ri.a)&&0===ri.a)return["1.","1.","1.",ki[1]].join(" ");ge="string"==typeof rt?[rt,gt,Ut,ki[1]].join(" "):2===z.precision?[ii(rt/255),ii(gt/255),ii(Ut/255),ki[1]].join(" "):[He(rt/255),He(gt/255),He(Ut/255),ki[1]].join(" ")}else ge="string"==typeof rt?[rt,gt,Ut,ri,ki[2]].join(" "):2===z.precision?[ii(rt),ii(gt),ii(Ut),ii(ri),ki[2]].join(" "):[He(rt),He(gt),He(Ut),He(ri),ki[2]].join(" ");return ge},kl=oe.__private__.getFilters=function(){return U},dl=oe.__private__.putStream=function(z){var ge=(z=z||{}).data||"",rt=z.filters||kl(),gt=z.alreadyAppliedFilters||[],Ut=z.addLength1||!1,ri=ge.length,ki=z.objectId,cr=function(tc){return tc};if(null!==ve&&void 0===ki)throw new Error("ObjectId must be passed to putStream for file encryption");null!==ve&&(cr=Xs.encryptor(ki,0));var Jr={};!0===rt&&(rt=["FlateEncode"]);var ua=z.additionalKeyValues||[],Xa=(Jr=void 0!==xr.API.processDataByFilters?xr.API.processDataByFilters(ge,rt):{data:ge,reverseChain:[]}).reverseChain+(Array.isArray(gt)?gt.join(" "):gt.toString());if(0!==Jr.data.length&&(ua.push({key:"Length",value:Jr.data.length}),!0===Ut&&ua.push({key:"Length1",value:ri})),0!=Xa.length)if(Xa.split("/").length-1==1)ua.push({key:"Filter",value:Xa});else{ua.push({key:"Filter",value:"["+Xa+"]"});for(var ga=0;ga<ua.length;ga+=1)if("DecodeParms"===ua[ga].key){for(var Qa=[],ta=0;ta<Jr.reverseChain.split("/").length-1;ta+=1)Qa.push("null");Qa.push(ua[ga].value),ua[ga].value="["+Qa.join(" ")+"]"}}vt("<<");for(var is=0;is<ua.length;is++)vt("/"+ua[is].key+" "+ua[is].value);vt(">>"),0!==Jr.data.length&&(vt("stream"),vt(cr(Jr.data)),vt("endstream"))},Ql=oe.__private__.putPage=function(z){var ge=z.number,rt=z.data,gt=z.objId,Ut=z.contentsObjId;Cc(gt,!0),vt("<</Type /Page"),vt("/Parent "+z.rootDictionaryObjId+" 0 R"),vt("/Resources "+z.resourceDictionaryObjId+" 0 R"),vt("/MediaBox ["+parseFloat(mn(z.mediaBox.bottomLeftX))+" "+parseFloat(mn(z.mediaBox.bottomLeftY))+" "+mn(z.mediaBox.topRightX)+" "+mn(z.mediaBox.topRightY)+"]"),null!==z.cropBox&&vt("/CropBox ["+mn(z.cropBox.bottomLeftX)+" "+mn(z.cropBox.bottomLeftY)+" "+mn(z.cropBox.topRightX)+" "+mn(z.cropBox.topRightY)+"]"),null!==z.bleedBox&&vt("/BleedBox ["+mn(z.bleedBox.bottomLeftX)+" "+mn(z.bleedBox.bottomLeftY)+" "+mn(z.bleedBox.topRightX)+" "+mn(z.bleedBox.topRightY)+"]"),null!==z.trimBox&&vt("/TrimBox ["+mn(z.trimBox.bottomLeftX)+" "+mn(z.trimBox.bottomLeftY)+" "+mn(z.trimBox.topRightX)+" "+mn(z.trimBox.topRightY)+"]"),null!==z.artBox&&vt("/ArtBox ["+mn(z.artBox.bottomLeftX)+" "+mn(z.artBox.bottomLeftY)+" "+mn(z.artBox.topRightX)+" "+mn(z.artBox.topRightY)+"]"),"number"==typeof z.userUnit&&1!==z.userUnit&&vt("/UserUnit "+z.userUnit),ja.publish("putPage",{objId:gt,pageContext:qr[ge],pageNumber:ge,page:rt}),vt("/Contents "+Ut+" 0 R"),vt(">>"),vt("endobj");var ri=rt.join("\n");return"advanced"===Rt&&(ri+="\nQ"),Cc(Ut,!0),dl({data:ri,filters:kl(),objectId:Ut}),vt("endobj"),gt},Ra=oe.__private__.putPages=function(){var z,ge,rt=[];for(z=1;z<=js;z++)qr[z].objId=cl(),qr[z].contentsObjId=cl();for(z=1;z<=js;z++)rt.push(Ql({number:z,data:Oi[z],objId:qr[z].objId,contentsObjId:qr[z].contentsObjId,mediaBox:qr[z].mediaBox,cropBox:qr[z].cropBox,bleedBox:qr[z].bleedBox,trimBox:qr[z].trimBox,artBox:qr[z].artBox,userUnit:qr[z].userUnit,rootDictionaryObjId:Ao,resourceDictionaryObjId:kd}));Cc(Ao,!0),vt("<</Type /Pages");var gt="/Kids [";for(ge=0;ge<js;ge++)gt+=rt[ge]+" 0 R ";vt(gt+"]"),vt("/Count "+js),vt(">>"),vt("endobj"),ja.publish("postPutPages")},eu=function(z){ja.publish("putFont",{font:z,out:vt,newObject:Gr,putStream:dl}),!0!==z.isAlreadyPutted&&(z.objectNumber=Gr(),vt("<<"),vt("/Type /Font"),vt("/BaseFont /"+Ci(z.postScriptName)),vt("/Subtype /Type1"),"string"==typeof z.encoding&&vt("/Encoding /"+z.encoding),vt("/FirstChar 32"),vt("/LastChar 255"),vt(">>
1"),vt("endobj"))},Ja=function(z){z.objectNumber=Gr();var ge=[];ge.push({key:"Type",value:"/XObject"}),ge.push({key:"Subtype",value:"/Form"}),ge.push({key:"BBox",value:"["+[mn(z.x),mn(z.y),mn(z.x+z.width),mn(z.y+z.height)].join(" ")+"]"}),ge.push({key:"Matrix",value:"["+z.matrix.toString()+"]"});var rt=z.pages[1].join("\n");dl({data:rt,additionalKeyValues:ge,objectId:z.objectNumber}),vt("endobj")},wd=function(z,ge){ge||(ge=21);var rt=Gr(),gt=function(z,ge){var rt,gt=[],Ut=1/(ge-1);for(rt=0;rt<1;rt+=Ut)gt.push(rt);gt.push(1),0!=z[0].offset&&z.unshift({offset:0,color:z[0].color}),1!=z[z.length-1].offset&&z.push({offset:1,color:z[z.length-1].color});for(var cr="",Jr=0,ua=0;ua<gt.length;ua++){for(rt=gt[ua];rt>z[Jr+1].offset;)Jr++;var Xa=z[Jr].offset,ga=(rt-Xa)/(z[Jr+1].offset-Xa),Qa=z[Jr].color,ta=z[Jr+1].color;cr+=Nt(Math.round((1-ga)*Qa[0]+ga*ta[0]).toString(16))+Nt(Math.round((1-ga)*Qa[1]+ga*ta[1]).toString(16))+Nt(Math.round((1-ga)*Qa[2]+ga*ta[2]).toString(16))}return cr.trim()}(z.colors,ge),Ut=[];Ut.push({key:"FunctionType",value:"0"}),Ut.push({key:"Domain",value:"[0.0 1.0]"}),Ut.push({key:"Size",value:"["+ge+"]"}),Ut.push({key:"BitsPerSample",value:"8"}),Ut.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ut.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),dl({data:gt,additionalKeyValues:Ut,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:rt}),vt("endobj"),z.objectNumber=Gr(),vt("<< /ShadingType "+z.type),vt("/ColorSpace /DeviceRGB");var ri="/Coords ["+mn(parseFloat(z.coords[0]))+" "+mn(parseFloat(z.coords[1]))+" ";ri+=2===z.type?mn(parseFloat(z.coords[2]))+" "+mn(parseFloat(z.coords[3])):mn(parseFloat(z.coords[2]))+" "+mn(parseFloat(z.coords[3]))+" "+mn(parseFloat(z.coords[4]))+" "+mn(parseFloat(z.coords[5])),vt(ri+="]"),z.matrix&&vt("/Matrix ["+z.matrix.toString()+"]"),vt("/Function "+rt+" 0 R"),vt("/Extend [true true]"),vt(">>"),vt("endobj")},hu=function(z,ge){var rt=cl(),gt=Gr();ge.push({resourcesOid:rt,objectOid:gt}),z.objectNumber=gt;var Ut=[];Ut.push({key:"Type",value:"/Pattern"}),Ut.push({key:"PatternType",value:"1"}),Ut.push({key:"PaintType",value:"1"}),Ut.push({key:"TilingType",value:"1"}
vendor: 2,473 bytes, line 1
1),Ut.push({key:"BBox",value:"["+z.boundingBox.map(mn).join(" ")+"]"}),Ut.push({key:"XStep",value:mn(z.xStep)}),Ut.push({key:"YStep",value:mn(z.yStep)}),Ut.push({key:"Resources",value:rt+" 0 R"}),z.matrix&&Ut.push({key:"Matrix",value:"["+z.matrix.toString()+"]"}),dl({data:z.stream,additionalKeyValues:Ut,objectId:z.objectNumber}),vt("endobj")},f=function(z){for(var ge in z.objectNumber=Gr(),vt("<<"),z)switch(ge){case"opacity":vt("/ca "+ii(z[ge]));break;case"stroke-opacity":vt("/CA "+ii(z[ge]))}vt(">>"),vt("endobj")},Z=function(z){Cc(z.resourcesOid,!0),vt("<<"),vt("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var z in vt("/Font <<"),Kr)Kr.hasOwnProperty(z)&&(!1===Ae||!0===Ae&&Le.hasOwnProperty(z))&&vt("/"+z+" "+Kr[z].objectNumber+" 0 R");vt(">>")}(),function(){if(Object.keys(Fo).length>0){for(var z in vt("/Shading <<"),Fo)Fo.hasOwnProperty(z)&&Fo[z]instanceof Hr&&Fo[z].objectNumber>=0&&vt("/"+z+" "+Fo[z].objectNumber+" 0 R");ja.publish("putShadingPatternDict"),vt(">>")}}(),function(z){if(Object.keys(Fo).length>0){for(var ge in vt("/Pattern <<"),Fo)Fo.hasOwnProperty(ge)&&Fo[ge]instanceof oe.TilingPattern&&Fo[ge].objectNumber>=0&&Fo[ge].objectNumber<z&&vt("/"+ge+" "+Fo[ge].objectNumber+" 0 R");ja.publish("putTilingPatternDict"),vt(">>")}}(z.objectOid),function(){if(Object.keys(Is).length>0){var z;for(z in vt("/ExtGState <<"),Is)Is.hasOwnProperty(z)&&Is[z].objectNumber>=0&&vt("/"+z+" "+Is[z].objectNumber+" 0 R");ja.publish("putGStateDict"),vt(">>")}}(),function(){for(var z in vt("/XObject <<"),Io)Io.hasOwnProperty(z)&&Io[z].objectNumber>=0&&vt("/"+z+" "+Io[z].objectNumber+" 0 R");ja.publish("putXobjectDict"),vt(">>")}(),vt(">>"),vt("endobj")},je=function(z){ha[z.fontName]=ha[z.fontName]||{},ha[z.fontName][z.fontStyle]=z.id},ft=function(z,ge,rt,gt,Ut){var ri={id:"F"+(Object.keys(Kr).length+1).toString(10),postScriptName:z,fontName:ge,fontStyle:rt,encoding:gt,isStandardFont:Ut||!1,metadata:{}};return ja.publish("addFont",{font:ri,instance:this}),Kr[ri.id]=ri,je(ri),ri.id},Hn=oe.__private__.pdfEscape=oe.pdfEscape=function(z,ge){return function(z,ge){var rt,gt,Ut,ri,ki,cr,Jr,ua,Xa;if(Ut=(ge=ge||{}).sourceEncoding||"Unicode",ki=ge.outputEncoding,(ge.autoencode||ki)&&Kr[Aa].metadata&&Kr[Aa].metadata[Ut]&&Kr[Aa].metadata[Ut].encoding&&(ri=Kr[Aa].metadata[Ut].encoding,!ki&&Kr[Aa].encoding&&(ki=Kr[Aa].encoding),!ki&&ri.codePages&&(ki=ri.codePages[0]),"string"==typeof ki&&(ki=ri[ki]),ki)){for(Jr=!1,cr=[],rt=0,gt=z.length;rt<gt;
vendor: 8,652 bytes, line 1
1rt++)(ua=ki[z.charCodeAt(rt)])?cr.push(String.fromCharCode(ua)):cr.push(z[rt]),cr[rt].charCodeAt(0)>>8&&(Jr=!0);z=cr.join("")}for(rt=z.length;void 0===Jr&&0!==rt;)z.charCodeAt(rt-1)>>8&&(Jr=!0),rt--;if(!Jr)return z;for(cr=ge.noBOM?[]:[254,255],rt=0,gt=z.length;rt<gt;rt++){if((Xa=(ua=z.charCodeAt(rt))>>8)>>8)throw new Error("Character at position "+rt+" of string '"+z+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");cr.push(Xa),cr.push(ua-(Xa<<8))}return String.fromCharCode.apply(void 0,cr)}(z,ge).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},_n=oe.__private__.beginPage=function(z){Oi[++js]=[],qr[js]={objId:0,contentsObjId:0,userUnit:Number(W),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(z[0]),topRightY:Number(z[1])}},la(js),Qn(Oi[Qe])},Ui=function(z,ge){var rt,gt,Ut;switch(k=ge||k,"string"==typeof z&&(rt=Ve(z.toLowerCase()),Array.isArray(rt)&&(gt=rt[0],Ut=rt[1])),Array.isArray(z)&&(gt=z[0]*lr,Ut=z[1]*lr),isNaN(gt)&&(gt=N[0],Ut=N[1]),(gt>14400||Ut>14400)&&(ro.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),gt=Math.min(14400,gt),Ut=Math.min(14400,Ut)),N=[gt,Ut],k.substr(0,1)){case"l":Ut>gt&&(N=[Ut,gt]);break;case"p":gt>Ut&&(N=[Ut,gt])}_n(N),iu(Df),vt(go),0!==hf&&vt(hf+" J"),0!==Tp&&vt(Tp+" j"),ja.publish("addPage",{pageNumber:js})},ma=function(z){z>0&&z<=js&&(Oi.splice(z,1),qr.splice(z,1),js--,Qe>js&&(Qe=js),this.setPage(Qe))},la=function(z){z>0&&z<=js&&(Qe=z)},La=oe.__private__.getNumberOfPages=oe.getNumberOfPages=function(){return Oi.length-1},Or=function(z,ge,rt){var gt,Ut=void 0;return rt=rt||{},ge=void 0!==ge?ge:Kr[Aa].fontStyle,gt=(z=void 0!==z?z:Kr[Aa].fontName).toLowerCase(),void 0!==ha[gt]&&void 0!==ha[gt][ge]?Ut=ha[gt][ge]:void 0!==ha[z]&&void 0!==ha[z][ge]?Ut=ha[z][ge]:!1===rt.disableWarning&&ro.warn("Unable to look up font label for font '"+z+"', '"+ge+"'. Refer to getFontList() for available fonts."),Ut||rt.noFallback||null==(Ut=ha.times[ge])&&(Ut=ha.times.normal),Ut},Ga=oe.__private__.putInfo=function(){var z=Gr(),ge=function(gt){return gt};for(var rt in null!==ve&&(ge=Xs.encryptor(z,0)),vt("<<"),vt("/Producer ("+Hn(ge("jsPDF "+xr.version))+")"),$i)$i.hasOwnProperty(rt)&&$i[rt]&&vt("/"+rt.substr(0,1).toUpperCase()+rt.substr(1)+" ("+Hn(ge($i[rt]))+")");vt("/CreationDate ("+Hn(ge(On))+")"),vt(">>"),vt("endobj")},ka=oe.__private__.putCatalog=function(z){var ge=(z=z||{}).rootDictionaryObjId||Ao;switch(Gr(),vt("<<"),vt("/Type /Catalog"),vt("/Pages "+ge+" 0 R"),er||(er="fullwidth"),er){case"fullwidth":vt("/OpenAction [3 0 R /FitH null]");break;case"fullheight":vt("/OpenAction [3 0 R /FitV null]");break;case"fullpage":vt("/OpenAction [3 0 R /Fit]");break;case"original":vt("/OpenAction [3 0 R /XYZ null null 1]");break;default:var rt=""+er;"%"===rt.substr(rt.length-1)&&(er=parseInt(er)/100),"number"==typeof er&&vt("/OpenAction [3 0 R /XYZ null null "+ii(er)+"]")}switch(Ca||(Ca="continuous"),Ca){case"continuous":vt("/PageLayout /OneColumn");break;case"single":vt("/PageLayout /SinglePage");break;case"two":case"twoleft":vt("/PageLayout /TwoColumnLeft");break;case"tworight":vt("/PageLayout /TwoColumnRight")}Sr&&vt("/PageMode /"+Sr),ja.publish("putCatalog"),vt(">>"),vt("endobj")},gs=oe.__private__.putTrailer=function(){vt("trailer"),vt("<<"),vt("/Size "+(Qt+1)),vt("/Root "+Qt+" 0 R"),vt("/Info "+(Qt-1)+" 0 R"),null!==ve&&vt("/Encrypt "+Xs.oid+" 0 R"),vt("/ID [ <"+Dn+"> <"+Dn+"> ]"),vt(">>")},Rs=oe.__private__.putHeader=function(){vt("%PDF-"+at),vt("%\xba\xdf\xac\xe0")},Fs=oe.__private__.putXRef=function(){var z="0000000000";vt("xref"),vt("0 "+(Qt+1)),vt("0000000000 65535 f ");for(var ge=1;ge<=Qt;ge++)vt("function"==typeof Cn[ge]?(z+Cn[ge]()).slice(-10)+" 00000 n ":void 0!==Cn[ge]?(z+Cn[ge]).slice(-10)+" 00000 n ":"0000000000 00000 n ")},ns=oe.__private__.buildDocument=function(){Qt=0,Ln=0,In=[],Cn=[],Ri=[],Ao=cl(),kd=cl(),Qn(In),ja.publish("buildDocument"),Rs(),Ra(),function(){ja.publish("putAdditionalObjects");for(var z=0;z<Ri.length;z++){var ge=Ri[z];Cc(ge.objId,!0),vt(ge.content),vt("endobj")}ja.publish("postPutAdditionalObjects")}(),function(){var z=[];(function(){for(var z in Kr)Kr.hasOwnProperty(z)&&(!1===Ae||!0===Ae&&Le.hasOwnProperty(z))&&eu(Kr[z])})(),function(){var z;for(z in Is)Is.hasOwnProperty(z)&&f(Is[z])}(),function(){for(var z in Io)Io.hasOwnProperty(z)&&Ja(Io[z])}(),function(z){var ge;for(ge in Fo)Fo.hasOwnProperty(ge)&&(Fo[ge]instanceof Hr?wd(Fo[ge]):Fo[ge]instanceof Ea&&hu(Fo[ge],z))}(z),ja.publish("putResources"),z.forEach(Z),Z({resourcesOid:kd,objectOid:Number.MAX_SAFE_INTEGER}),ja.publish("postPutResources")}(),null!==ve&&(Xs.oid=Gr(),vt("<<"),vt("/Filter /Standard"),vt("/V "+Xs.v),vt("/R "+Xs.r),vt("/U <"+Xs.toHexString(Xs.U)+">"),vt("/O <"+Xs.toHexString(Xs.O)+">"),vt("/P "+Xs.P),vt(">>"),vt("endobj")),Ga(),ka();var z=Ln;return Fs(),gs(),vt("startxref"),vt(""+z),vt("%%EOF"),Qn(Oi[Qe]),In.join("\n")},wl=oe.__private__.getBlob=function(z){return new Blob([Wi(z)],{type:"application/pdf"})},Nc=oe.output=oe.__private__.output=((z=function(z,ge){switch("string"==typeof(ge=ge||{})?ge={filename:ge}:ge.filename=ge.filename||"generated.pdf",z){case void 0:return ns();case"save":oe.save(ge.filename);break;case"arraybuffer":return Wi(ns());case"blob":return wl(ns());case"bloburi":case"bloburl":if(void 0!==Vr.URL&&"function"==typeof Vr.URL.createObjectURL)return Vr.URL&&Vr.URL.createObjectURL(wl(ns()))||void 0;ro.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var rt="",gt=ns();try{rt=Xl(gt)}catch{rt=Xl(unescape(encodeURIComponent(gt)))}return"data:application/pdf;filename="+ge.filename+";base64,"+rt;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(Vr)){var Ut="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ri=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';ge.pdfObjectUrl&&(Ut=ge.pdfObjectUrl,ri="");var ki='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Ut+'"'+ri+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(ge)+");<\/script></body></html>",cr=Vr.open();return null!==cr&&cr.document.write(ki),cr}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(Vr)){var Jr='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(ge.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+ge.filename+'" width="500px" height="400px" /></body></html>',ua=Vr.open();if(null!==ua){ua.document.write(Jr);var Xa=this;ua.document.documentElement.querySelector("#pdfViewer").onload=function(){ua.document.title=ge.filename,ua.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Xa.output("bloburl"))}}return ua}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(Vr))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var ga='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",ge)+'"></iframe></body></html>',Qa=Vr.open();if(null!==Qa&&(Qa.document.write(ga),Qa.document.title=ge.filename),Qa||typeof safari>"u")return Qa;break;case"datauri":case"dataurl":return Vr.document.location.href=this.output("datauristring",ge);default:return null}}).foo=function(){try{return z.apply(this,arguments)}catch(gt){var ge=gt.stack||"";~ge.indexOf(" at ")&&(ge=ge.split(" at ")[1]);var rt="Error in function "+ge.split("\n")[0].split("<")[0]+": "+gt.message;if(!Vr.console)throw new Error(rt);Vr.console.error(rt,gt),Vr.alert&&alert(rt)}},z.foo.bar=z,z.foo),zu=function(z){return!0===Array.isArray(ts)&&ts.indexOf(z)>-1};switch(P){case"pt":lr=1;break;case"mm":lr=72/25.4;break;case"cm":lr=72/2.54;break;case"in":lr=72;break;case"px":lr=1==zu("px_scaling")?.75:96/72;break;case"pc":case"em":lr=12;break;case"ex":lr=6;break;default:if("number"!=typeof P)throw new Error("Invalid unit: "+P);lr=P}var Xs=null;Qi(),xn();var Ll=oe.__private__.getPageInfo=oe.getPageInfo=function(z){if(isNaN(z)||z%1!=0)throw new Error("Invalid argument passed to
1jsPDF.getPageInfo");return{objId:qr[z].objId,pageNumber:z,pageContext:qr[z]}},Zr=oe.__private__.getPageInfoByObjId=function(z){if(isNaN(z)||z%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var ge in qr)if(qr[ge].objId===z)break;return Ll(ge)},nu=oe.__private__.getCurrentPageInfo=oe.getCurrentPageInfo=function(){return{objId:qr[Qe].objId,pageNumber:Qe,pageContext:qr[Qe]}};oe.addPage=function(){return Ui.apply(this,arguments),this},oe.setPage=function(){return la.apply(this,arguments),Qn.call(this,Oi[Qe]),this},oe.insertPage=function(z){return this.addPage(),this.movePage(Qe,z),this},oe.movePage=function(z,ge){var rt,gt;if(z>ge){rt=Oi[z],gt=qr[z];for(var Ut=z;Ut>ge;Ut--)Oi[Ut]=Oi[Ut-1],qr[Ut]=qr[Ut-1];Oi[ge]=rt,qr[ge]=gt,this.setPage(ge)}else if(z<ge){rt=Oi[z],gt=qr[z];for(var ri=z;ri<ge;ri++)Oi[ri]=Oi[ri+1],qr[ri]=qr[ri+1];Oi[ge]=rt,qr[ge]=gt,this.setPage(ge)}return this},oe.deletePage=function(){return ma.apply(this,arguments),this},oe.__private__.text=oe.text=function(z,ge,rt,gt,Ut){var ri,ki,cr,Jr,ua,Xa,ga,Qa,ta,is=(gt=gt||{}).scope||this;if("number"==typeof z&&"number"==typeof ge&&("string"==typeof rt||Array.isArray(rt))){var tc=rt;rt=ge,ge=z,z=tc}if(arguments[3]instanceof Ii?(At("The transform parameter of text() with a Matrix value"),ta=Ut):(cr=arguments[4],Jr=arguments[5],"object"===(0,E.A)(ga=arguments[3])&&null!==ga||("string"==typeof cr&&(Jr=cr,cr=null),"string"==typeof ga&&(Jr=ga,ga=null),"number"==typeof ga&&(cr=ga,ga=null),gt={flags:ga,angle:cr,align:Jr})),isNaN(ge)||isNaN(rt)||null==z)throw new Error("Invalid arguments passed to jsPDF.text");if(0===z.length)return is;var Bc,nc="",wc="number"==typeof gt.lineHeightFactor?gt.lineHeightFactor:Fd,Yu=is.internal.scaleFactor;function cd(Ya){return Ya=Ya.split("\t").join(Array(gt.TabLen||9).join(" ")),Hn(Ya,ga)}function gf(Ya){for(var ls,pl=Ya.concat(),Bl=[],up=pl.length;up--;)"string"==typeof(ls=pl.shift())?Bl.push(ls):Array.isArray(Ya)&&(1===ls.length||void 0===ls[1]&&void 0===ls[2])?Bl.push(ls[0]):Bl.push([ls[0],ls[1],ls[2]]);return Bl}function vu(Ya,ls){var pl;if("string"==typeof Ya)pl=ls(Ya)[0];else if(Array.isArray(Ya)){for(var Bl,up,fp=Ya.concat(),lh=[],Hu=fp.length;Hu--;)"string"==typeof(Bl=fp.shift())?lh.push(ls(Bl)[0]):Array.isArray(Bl)&&"string"==typeof Bl[0]&&(up=ls(Bl[0],Bl[1],Bl[2]),lh.push([up[0],up[1],up[2]]));pl=lh}return pl}var Fc=!1,Wu=!0;if("string"==typeof z)Fc=!0;else if(Array.isArray(z)){var op=z.concat();ki=[];for(var Ac,Tc=op.length;Tc--;)("string"!=typeof(Ac=op.shift())||Array.isArray(Ac)&&"string"!=typeof Ac[0])&&(Wu=!1);Fc=Wu}if(!1===Fc)throw new Error('Type of text must be string or Array. "'+z+'" is not recognized.');"string"==typeof z&&(z=z.match(/[\r?\n]/)?z.split(/\r\n|\r|\n/g):[z]);var $u=zi/is.internal.scaleFactor,sp=$u*(wc-1);switch(gt.baseline){case"bottom":rt-=sp;break;case"top":rt+=$u-sp;break;case"hanging":rt+=$u-2*sp;break;case"middle":rt+=$u/2-sp}if((Xa=gt.maxWidth||0)>0&&("string"==typeof z?z=is.splitTextToSize(z,Xa):"[object Array]"===Object.prototype.toString.call(z)&&(z=z.reduce(function(Ya,ls){return Ya.concat(is.splitTextToSize(ls,Xa))},[]))),ja.publish("preProcessText",ri={text:z,x:ge,y:rt,options:gt,mutex:{pdfEscape:Hn,activeFontKey:Aa,fonts:Kr,activeFontSize:zi}}),z=ri.text,cr=(gt=ri.options).angle,ta instanceof Ii||!cr||"number"!=typeof cr)cr&&cr instanceof Ii&&(ta=cr);else{cr*=Math.PI/180,0===gt.rotationDirection&&(cr=-cr),"advanced"===Rt&&(cr=-cr);var dd=Math.cos(cr),_f=Math.sin(cr);ta=new Ii(dd,_f,-_f,dd,0,0)}"advanced"!==Rt||ta||(ta=Cd),void 0!==(ua=gt.charSpace||Ks)&&(nc+=mn($e(ua))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(Qa=gt.horizontalScale)&&(nc+=mn(100*Qa)+" Tz\n");var Sc=-1,Zh=void 0!==gt.renderingMode?gt.renderingMode:gt.stroke,xu=is.internal.getCurrentPageInfo().pageContext;switch(Zh){case 0:case!1:case"fill":Sc=0;break;case 1:case!0:case"stroke":Sc=1;break;case 2:case"fillThenStroke":Sc=2;break;case 3:case"invisible":Sc=3;break;case 4:case"fillAndAddForClipping":Sc=4;break;case 5:case"strokeAndAddPathForClipping":Sc=5;break;
vendor: 4,862 bytes, line 1
1case 6:case"fillThenStrokeAndAddToPathForClipping":Sc=6;break;case 7:case"addToPathForClipping":Sc=7}-1!==Sc?nc+=Sc+" Tr\n":-1!==(void 0!==xu.usedRenderingMode?xu.usedRenderingMode:-1)&&(nc+="0 Tr\n"),-1!==Sc&&(xu.usedRenderingMode=Sc),Jr=gt.align||"left";var Nl,fl=zi*wc,Rf=is.internal.pageSize.getWidth(),Lf=Kr[Aa];ua=gt.charSpace||Ks,Xa=gt.maxWidth||0,ga=Object.assign({autoencode:!0,noBOM:!0},gt.flags);var ic=[];if("[object Array]"===Object.prototype.toString.call(z)){var ru;ki=gf(z),"left"!==Jr&&(Nl=ki.map(function(Ya){return is.getStringUnitWidth(Ya,{font:Lf,charSpace:ua,fontSize:zi,doKerning:!1})*zi/Yu}));var qu,lp=0;if("right"===Jr){ge-=Nl[0],z=[],Tc=ki.length;for(var vf=0;vf<Tc;vf++)0===vf?(qu=np(ge),ru=Ap(rt)):(qu=$e(lp-Nl[vf]),ru=-fl),z.push([ki[vf],qu,ru]),lp=Nl[vf]}else if("center"===Jr){ge-=Nl[0]/2,z=[],Tc=ki.length;for(var cp=0;cp<Tc;cp++)0===cp?(qu=np(ge),ru=Ap(rt)):(qu=$e((lp-Nl[cp])/2),ru=-fl),z.push([ki[cp],qu,ru]),lp=Nl[cp]}else if("left"===Jr){z=[],Tc=ki.length;for(var Sp=0;Sp<Tc;Sp++)z.push(ki[Sp])}else{if("justify"!==Jr)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');z=[],Tc=ki.length,Xa=0!==Xa?Xa:Rf;for(var jo=0;jo<Tc;jo++)ru=0===jo?Ap(rt):-fl,qu=0===jo?np(ge):0,ic.push(jo<Tc-1?mn($e((Xa-Nl[jo])/(ki[jo].split(" ").length-1))):0),z.push([ki[jo],qu,ru])}}!0===("boolean"==typeof gt.R2L?gt.R2L:sr)&&(z=vu(z,function(Ya,ls,pl){return[Ya.split("").reverse().join(""),ls,pl]})),ja.publish("postProcessText",ri={text:z,x:ge,y:rt,options:gt,mutex:{pdfEscape:Hn,activeFontKey:Aa,fonts:Kr,activeFontSize:zi}}),z=ri.text,Bc=ri.mutex.isHex||!1;var Nf=Kr[Aa].encoding;"WinAnsiEncoding"!==Nf&&"StandardEncoding"!==Nf||(z=vu(z,function(Ya,ls,pl){return[cd(Ya),ls,pl]})),ki=gf(z),z=[];for(var Sd,bu,Js,dp=Array.isArray(ki[0])?1:0,Ed="",bf=function(Ya,ls,pl){var Bl="";return pl instanceof Ii?(pl="number"==typeof gt.angle?yl(pl,new Ii(1,0,0,1,Ya,ls)):yl(new Ii(1,0,0,1,Ya,ls),pl),"advanced"===Rt&&(pl=yl(new Ii(1,0,0,-1,0,0),pl)),Bl=pl.join(" ")+" Tm\n"):Bl=mn(Ya)+" "+mn(ls)+" Td\n",Bl},Ro=0;Ro<ki.length;Ro++){switch(Ed="",dp){case 1:Js=(Bc?"<":"(")+ki[Ro][0]+(Bc?">":")"),Sd=parseFloat(ki[Ro][1]),bu=parseFloat(ki[Ro][2]);break;case 0:Js=(Bc?"<":"(")+ki[Ro]+(Bc?">":")"),Sd=np(ge),bu=Ap(rt)}void 0!==ic&&void 0!==ic[Ro]&&(Ed=ic[Ro]+" Tw\n"),0===Ro?z.push(Ed+bf(Sd,bu,ta)+Js):0===dp?z.push(Ed+Js):1===dp&&z.push(Ed+bf(Sd,bu,ta)+Js)}z=z.join(0===dp?" Tj\nT* ":" Tj\n"),z+=" Tj\n";var Xu="BT\n/";return Xu+=Aa+" "+zi+" Tf\n",Xu+=mn(zi*wc)+" TL\n",Xu+=Rn+"\n",Xu+=nc,Xu+=z,vt(Xu+="ET"),Le[Aa]=!0,is};var kp=oe.__private__.clip=oe.clip=function(z){return vt("evenodd"===z?"W*":"W"),this};oe.clipEvenOdd=function(){return kp("evenodd")},oe.__private__.discardPath=oe.discardPath=function(){return vt("n"),this};var ld=oe.__private__.isValidStyle=function(z){var ge=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(z)&&(ge=!0),ge};oe.__private__.setDefaultPathOperation=oe.setDefaultPathOperation=function(z){return ld(z)&&(de=z),this};var wp=oe.__private__.getStyle=oe.getStyle=function(z){var ge=de;switch(z){case"D":case"S":ge="S";break;case"F":ge="f";break;case"FD":case"DF":ge="B";break;case"f":case"f*":case"B":case"B*":ge=z}return ge},uf=oe.close=function(){return vt("h"),this};oe.stroke=function(){return vt("S"),this},oe.fill=function(z){return ff("f",z),this},oe.fillEvenOdd=function(z){return ff("f*",z),this},oe.fillStroke=function(z){return ff("B",z),this},oe.fillStrokeEvenOdd=function(z){return ff("B*",z),this};var ff=function(z,ge){"object"===(0,E.A)(ge)?Fp(ge,z):vt(z)},_s=function(z){null===z||"advanced"===Rt&&void 0===z||(z=wp(z),vt(z))};function Qf(z,ge,rt,gt,Ut){var ri=new Ea(ge||this.boundingBox,rt||this.xStep,gt||this.yStep,this.gState,Ut||this.matrix);ri.stream=this.stream;var ki=z+"$$"+this.cloneIndex+++"$$";return Cl(ki,ri),ri}var Fp=function(z,ge){var rt=$s[z.key],gt=Fo[rt];if(gt instanceof Hr)vt("q"),vt(Of(ge)),gt.gState&&oe.setGState(gt.gState),vt(z.matrix.toString()+" cm"),vt("/"+rt+" sh"),vt("Q");else if(gt instanceof Ea){var Ut=new Ii(1,0,0,-1,0,mf());z.matrix&&(Ut=Ut.multiply(z.matrix||Cd),rt=Qf.call(gt,z.key,z.boundingBox,z.xStep,z.yStep,Ut).id),vt("q"),vt("/Pattern cs"),vt("/"+rt+" scn"),gt.gState&&oe.setGState(gt.gState),vt(ge),vt("Q")}},Of=function(z){switch(z){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},ep=oe.moveTo=function(z,ge){return vt(mn($e(z))+" "+mn(kt(ge))+" m"),this},mu=oe.lineTo=function(z,ge){return vt(mn($e(z))+" "+mn(kt(ge))+" l"),this},tp=oe.curveTo=function(z,ge,rt,gt,Ut,ri){return vt([mn($e(z)),mn(kt(ge)),mn($e(rt)),mn(kt(gt)),mn($e(Ut)),mn(kt(ri)),"c"].join(" ")),this};oe.__private__.line=oe.line=function(z,ge,rt,gt,Ut){if(isNaN(z)||isNaN(ge)||isNaN(rt)||isNaN(gt)||!ld(Ut))throw new Error("Invalid arguments passed to
1jsPDF.line");return"compat"===Rt?this.lines([[rt-z,gt-ge]],z,ge,[1,1],Ut||"S"):this.lines([[rt-z,gt-ge]],z,ge,[1,1]).stroke()},oe.__private__.lines=oe.lines=function(z,ge,rt,gt,Ut,ri){var ki,cr,Jr,ua,Xa,tc,nc,Bc;if("number"==typeof z&&(Bc=rt,rt=ge,ge=z,z=Bc),gt=gt||[1,1],ri=ri||!1,isNaN(ge)||isNaN(rt)||!Array.isArray(z)||!Array.isArray(gt)||!ld(Ut)||"boolean"!=typeof ri)throw new Error("Invalid arguments passed to jsPDF.lines");for(ep(ge,rt),ki=gt[0],cr=gt[1],ua=z.length,tc=ge,nc=rt,Jr=0;Jr<ua;Jr++)2===(Xa=z[Jr]).length?mu(tc=Xa[0]*ki+tc,nc=Xa[1]*cr+nc):tp(Xa[0]*ki+tc,Xa[1]*cr+nc,Xa[2]*ki+tc,Xa[3]*cr+nc,tc=Xa[4]*ki+tc,nc=Xa[5]*cr+nc);return ri&&uf(),_s(Ut),this},oe.path=function(z){for(var ge=0;ge<z.length;ge++){var rt=z[ge],gt=rt.c;switch(rt.op){case"m":ep(gt[0],gt[1]);break;case"l":mu(gt[0],gt[1]);break;case"c":tp.apply(this,gt);break;case"h":uf()}}return this},oe.__private__.rect=oe.rect=function(z,ge,rt,gt,Ut){if(isNaN(z)||isNaN(ge)||isNaN(rt)||isNaN(gt)||!ld(Ut))throw new Error("Invalid arguments passed to jsPDF.rect");return"compat"===Rt&&(gt=-gt),vt([mn($e(z)),mn(kt(ge)),mn($e(rt)),mn($e(gt)),"re"].join(" ")),_s(Ut),this},oe.__private__.triangle=oe.triangle=function(z,ge,rt,gt,Ut,ri,ki){if(isNaN(z)||isNaN(ge)||isNaN(rt)||isNaN(gt)||isNaN(Ut)||isNaN(ri)||!ld(ki))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[rt-z,gt-ge],[Ut-rt,ri-gt],[z-Ut,ge-ri]],z,ge,[1,1],ki,!0),this},oe.__private__.roundedRect=oe.roundedRect=function(z,ge,rt,gt,Ut,ri,ki){if(isNaN(z)||isNaN(ge)||isNaN(rt)||isNaN(gt)||isNaN(Ut)||isNaN(ri)||!ld(ki))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var cr=4/3*(Math.SQRT2-1);return Ut=Math.min(Ut,.5*rt),ri=Math.min(ri,.5*gt),this.lines([[rt-2*Ut,0],[Ut*cr,0,Ut,ri-ri*cr,Ut,ri],[0,gt-2*ri],[0,ri*cr,-Ut*cr,ri,-Ut,ri],[2*Ut-rt,0],[-Ut*cr,0,-Ut,-ri*cr,-Ut,-ri],[0,2*ri-gt],[0,-ri*cr,Ut*cr,-ri,Ut,-ri]],z+Ut,ge,[1,1],ki,!0),this},oe.__private__.ellipse=oe.ellipse=function(z,ge,rt,gt,Ut){if(isNaN(z)||isNaN(ge)||isNaN(rt)||isNaN(gt)||!ld(Ut))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ri=4/3*(Math.SQRT2-1)*rt,ki=4/3*(Math.SQRT2-1)*gt;return ep(z+rt,ge),tp(z+rt,ge-ki,z+ri,ge-gt,z,ge-gt),tp(z-ri,ge-gt,z-rt,ge-ki,z-rt,ge),tp(z-rt,ge+ki,z-ri,ge+gt,z,ge+gt),tp(z+ri,ge+gt,z+rt,ge+ki,z+rt,ge),_s(Ut),this},oe.__private__.circle=oe.circle=function(z,ge,rt,gt){if(isNaN(z)||isNaN(ge)||isNaN(rt)||!ld(gt))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(z,ge,rt,rt,gt)},oe.setFont=function(z,ge,rt){return rt&&(ge=hi(ge,rt)),Aa=Or(z,ge,{disableWarning:!1}),this};var pf=oe.__private__.getFont=oe.getFont=function(){return Kr[Or.apply(oe,arguments)]};oe.__private__.getFontList=oe.getFontList=function(){var z,ge,rt={};for(z in ha)if(ha.hasOwnProperty(z))for(ge in rt[z]=[],ha[z])ha[z].hasOwnProperty(ge)&&rt[z].push(ge);return rt},oe.addFont=function(z,ge,rt,gt,Ut){var ri=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==ri.indexOf(arguments[3])?Ut=arguments[3]:arguments[3]&&-1==ri.indexOf(arguments[3])&&(rt=hi(rt,gt)),ft.call(this,z,ge,rt,Ut=Ut||"Identity-H")};var Fd,Df=A.lineWidth||.200025,Hs=oe.__private__.getLineWidth=oe.getLineWidth=function(){return Df},iu=oe.__private__.setLineWidth=oe.setLineWidth=function(z){return Df=z,vt(mn($e(z))+" w"),this};oe.__private__.setLineDash=xr.API.setLineDash=xr.API.setLineDashPattern=function(z,ge){if(z=z||[],ge=ge||0,isNaN(ge)||!Array.isArray(z))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return z=z.map(function(rt){return mn($e(rt))}).join(" "),ge=mn($e(ge)),vt("["+z+"] "+ge+" d"),this};var Kh=oe.__private__.getLineHeight=oe.getLineHeight=function(){return zi*Fd};oe.__private__.getLineHeight=oe.getLineHeight=function(){return zi*Fd};var gu=oe.__private__.setLineHeightFactor=oe.setLineHeightFactor=function(z){return"number"==typeof(z=z||1.15)&&(Fd=z),this},Va=oe.__private__.getLineHeightFactor=oe.getLineHeightFactor=function(){return Fd};gu(A.lineHeight);var np=oe.__private__.getHorizontalCoordinate=function(z){return $e(z)},Ap=oe.__private__.getVerticalCoordinate=function(z){return"advanced"===Rt?z:qr[Qe].mediaBox.topRightY-qr[Qe].mediaBox.bottomLeftY-$e(z)},ip=oe.__private__.getHorizontalCoordinateString=oe.getHorizontalCoordinateString=function(z){return mn(np(z))},If=oe.__private__.getVerticalCoordinateString=oe.getVerticalCoordinateString=function(z){return mn(Ap(z))},go=A.strokeColor||"0 G";oe.__private__.getStrokeColor=oe.getDrawColor=function(){return sd(go)},oe.__private__.setStrokeColor=oe.setDrawColor=function(z,ge,rt,gt){return go=Xr({ch1:z,ch2:ge,ch3:rt,ch4:gt,pdfColorType:"draw",precision:2}),vt(go),this};var ul=A.fillColor||"0 g";oe.__private__.getFillColor=oe.getFillColor=function(){return sd(ul)},oe.__private__.setFillColor=oe.setFillColor=function(z,ge,rt,gt){return ul=Xr({ch1:z,ch2:ge,ch3:rt,ch4:gt,pdfColorType:"fill",precision:2}),vt(ul),this};var Rn=A.textColor||"0 g",Uu=oe.__private__.getTextColor=oe.getTextColor=function(){return sd(Rn)};oe.__private__.setTextColor=oe.setTextColor=function(z,ge,rt,gt){return Rn=Xr({ch1:z,ch2:ge,ch3:rt,ch4:gt,pdfColorType:"text",precision:3}),this};var Ks=A.charSpace,mi=oe.__private__.getCharSpace=oe.getCharSpace=function(){return parseFloat(Ks||0)};oe.__private__.setCharSpace=oe.setCharSpace=function(z){if(isNaN(z))throw new Error("Invalid argument passed to
1jsPDF.setCharSpace");return Ks=z,this};var hf=0;oe.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},oe.__private__.setLineCap=oe.setLineCap=function(z){var ge=oe.CapJoinStyles[z];if(void 0===ge)throw new Error("Line cap style of '"+z+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return hf=ge,vt(ge+" J"),this};var Tp=0;oe.__private__.setLineJoin=oe.setLineJoin=function(z){var ge=oe.CapJoinStyles[z];if(void 0===ge)throw new Error("Line join style of '"+z+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Tp=ge,vt(ge+" j"),this},oe.__private__.setLineMiterLimit=oe.__private__.setMiterLimit=oe.setLineMiterLimit=oe.setMiterLimit=function(z){if(z=z||0,isNaN(z))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return vt(mn($e(z))+" M"),this},oe.GState=or,oe.setGState=function(z){(z="string"==typeof z?Is[od[z]]:ec(null,z)).equals(pu)||(vt("/"+z.id+" gs"),pu=z)};var ec=function(z,ge){if(!z||!od[z]){var rt=!1;for(var gt in Is)if(Is.hasOwnProperty(gt)&&Is[gt].equals(ge)){rt=!0;break}if(rt)ge=Is[gt];else{var Ut="GS"+(Object.keys(Is).length+1).toString(10);Is[Ut]=ge,ge.id=Ut}return z&&(od[z]=ge.id),ja.publish("addGState",ge),ge}};oe.addGState=function(z,ge){return ec(z,ge),this},oe.saveGraphicsState=function(){return vt("q"),Ws.push({key:Aa,size:zi,color:Rn}),this},oe.restoreGraphicsState=function(){vt("Q");var z=Ws.pop();return Aa=z.key,zi=z.size,Rn=z.color,pu=null,this},oe.setCurrentTransformationMatrix=function(z){return vt(z.toString()+" cm"),this},oe.comment=function(z){return vt("#"+z),this};var Ad=function(z,ge){var rt=z||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return rt},set:function(ri){isNaN(ri)||(rt=parseFloat(ri))}});var gt=ge||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return gt},set:function(ri){isNaN(ri)||(gt=parseFloat(ri))}});var Ut="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Ut},set:function(ri){Ut=ri.toString()}}),this},rp=function(z,ge,rt,gt){Ad.call(this,z,ge),this.type="rect";var Ut=rt||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Ut},set:function(ki){isNaN(ki)||(Ut=parseFloat(ki))}});var ri=gt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return ri},set:function(ki){isNaN(ki)||(ri=parseFloat(ki))}}),this},vs=function(){this.page=js,this.currentPage=Qe,this.pages=Oi.slice(0),this.pagesContext=qr.slice(0),this.x=Ds,this.y=Mr,this.matrix=Zl,this.width=Za(Qe),this.height=mf(Qe),this.outputDestination=Hi,this.id="",this.objectNumber=-1};vs.prototype.restore=function(){js=this.page,qr=this.pagesContext,Oi=this.pages,Ds=this.x,Mr=this.y,Zl=this.matrix,ap(Qe=this.currentPage,this.width),_u(Qe,this.height),Hi=this.outputDestination};var Up=function(z,ge,rt,gt,Ut){Qd.push(new vs),js=Qe=0,Oi=[],Ds=z,Mr=ge,Zl=Ut,_n([rt,gt])};for(var jf in oe.beginFormObject=function(z,ge,rt,gt,Ut){return Up(z,ge,rt,gt,Ut),this},oe.endFormObject=function(z){return function(z){if(Zd[z])Qd.pop().restore();else{var ge=new vs,rt="Xo"+(Object.keys(Io).length+1).toString(10);ge.id=rt,Zd[z]=rt,Io[rt]=ge,ja.publish("addFormObject",ge),Qd.pop().restore()}}(z),this},oe.doFormObject=function(z,ge){var rt=Io[Zd[z]];return vt("q"),vt(ge.toString()+" cm"),vt("/"+rt.id+" Do"),vt("Q"),this},oe.getFormObject=function(z){var ge=Io[Zd[z]];return{x:ge.x,y:ge.y,width:ge.width,height:ge.height,matrix:ge.matrix}},oe.save=function(z,ge){return z=z||"generated.pdf",(ge=ge||{}).returnPromise=ge.returnPromise||!1,!1===ge.returnPromise?($a(wl(ns()),z),"function"==typeof $a.unload&&Vr.setTimeout&&setTimeout($a.unload,911),this):new Promise(function(rt,gt){try{var Ut=$a(wl(ns()),z);"function"==typeof $a.unload&&Vr.setTimeout&&setTimeout($a.unload,911),rt(Ut)}catch(ri){gt(ri.message)}})},xr.API)xr.API.hasOwnProperty(jf)&&("events"===jf&&xr.API.events.length?function(z,ge){var gt,Ut;for(Ut=ge.length-1;-1!==Ut;Ut--)z.subscribe.apply(z,[ge[Ut][0]].concat("function"==typeof(gt=ge[Ut][1])?[gt]:gt))}(ja,xr.API.events):oe[jf]=xr.API[jf]);var Za=oe.getPageWidth=function(z){return(qr[z=z||Qe].mediaBox.topRightX-qr[z].mediaBox.bottomLeftX)/lr},ap=oe.setPageWidth=function(z,ge){qr[z].mediaBox.topRightX=ge*lr+qr[z].mediaBox.bottomLeftX},mf=oe.getPageHeight=function(z){return(qr[z=z||Qe].mediaBox.topRightY-qr[z].mediaBox.bottomLeftY)/lr},_u=oe.setPageHeight=function(z,ge){qr[z].mediaBox.topRightY=ge*lr+qr[z].mediaBox.bottomLeftY};return oe.internal={pdfEscape:Hn,getStyle:wp,getFont:pf,getFontSize:q
vendor: 73,972 bytes, lines 1-25
1i,getCharSpace:mi,getTextColor:Uu,getLineHeight:Kh,getLineHeightFactor:Va,getLineWidth:Hs,write:pa,getHorizontalCoordinate:np,getVerticalCoordinate:Ap,getCoordinateString:ip,getVerticalCoordinateString:If,collections:{},newObject:Gr,newAdditionalObject:qs,newObjectDeferred:cl,newObjectDeferredBegin:Cc,getFilters:kl,putStream:dl,events:ja,scaleFactor:lr,pageSize:{getWidth:function(){return Za(Qe)},setWidth:function(z){ap(Qe,z)},getHeight:function(){return mf(Qe)},setHeight:function(z){_u(Qe,z)}},encryptionOptions:ve,encryption:Xs,getEncryptor:function(z){return null!==ve?Xs.encryptor(z,0):function(ge){return ge}},output:Nc,getNumberOfPages:La,pages:Oi,out:vt,f2:ii,f3:He,getPageInfo:Ll,getPageInfoByObjId:Zr,getCurrentPageInfo:nu,getPDFVersion:We,Point:Ad,Rectangle:rp,Matrix:Ii,hasHotfix:zu},Object.defineProperty(oe.internal.pageSize,"width",{get:function(){return Za(Qe)},set:function(z){ap(Qe,z)},enumerable:!0,configurable:!0}),Object.defineProperty(oe.internal.pageSize,"height",{get:function(){return mf(Qe)},set:function(z){_u(Qe,z)},enumerable:!0,configurable:!0}),function(z){for(var ge=0,rt=Pi.length;ge<rt;ge++){var gt=ft.call(this,z[ge][0],z[ge][1],z[ge][2],Pi[ge][3],!0);!1===Ae&&(Le[gt]=!0);var Ut=z[ge][0].split("-");je({id:gt,fontName:Ut[0],fontStyle:Ut[1]||""})}ja.publish("addFonts",{fonts:Kr,dictionary:ha})}.call(oe,Pi),Aa="F1",Ui(N,k),ja.publish("initialized"),oe}fn.prototype.lsbFirstWord=function(A){return String.fromCharCode(255&A,A>>8&255,A>>16&255,A>>24&255)},fn.prototype.toHexString=function(A){return A.split("").map(function(y){return("0"+(255&y.charCodeAt(0)).toString(16)).slice(-2)}).join("")},fn.prototype.hexToBytes=function(A){for(var y=[],k=0;k<A.length;k+=2)y.push(String.fromCharCode(parseInt(A.substr(k,2),16)));return y.join("")},fn.prototype.processOwnerPassword=function(A,y){return Ue(J(y).substr(0,5),A)},fn.prototype.encryptor=function(A,y){var k=J(this.encryptionKey+String.fromCharCode(255&A,A>>8&255,A>>16&255,255&y,y>>8&255)).substr(0,10);return function(P){return Ue(k,P)}},or.prototype.equals=function(A){var y,k="id,objectNumber,equals";if(!A||(0,E.A)(A)!==(0,E.A)(this))return!1;var P=0;for(y in this)if(!(k.indexOf(y)>=0)){if(this.hasOwnProperty(y)&&!A.hasOwnProperty(y)||this[y]!==A[y])return!1;P++}for(y in A)A.hasOwnProperty(y)&&k.indexOf(y)<0&&P--;return 0===P},xr.API={events:[]},xr.version="2.5.1";var Fa=xr.API,hs=1,Ka=function(A){return A.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},nd=function(A){return A.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Wr=function(A){return A.toFixed(2)},Hl=function(A){return A.toFixed(5)};Fa.__acroform__={};var Ms=function(A,y){A.prototype=Object.create(y.prototype),A.prototype.constructor=A},sf=function(A){return A*hs},Ba=function(A){var y=new I,k=gi.internal.getHeight(A)||0,P=gi.internal.getWidth(A)||0;return y.BBox=[0,0,Number(Wr(P)),Number(Wr(k))],y},lo=Fa.__acroform__.setBit=function(A,y){if(A=A||0,y=y||0,isNaN(A)||isNaN(y))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return A|1<<y},Hf=Fa.__acroform__.clearBit=function(A,y){if(A=A||0,y=y||0,isNaN(A)||isNaN(y))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return A&~(1<<y)},lf=Fa.__acroform__.getBit=function(A,y){if(isNaN(A)||isNaN(y))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return A&1<<y?1:0},Oo=Fa.__acroform__.getBitForPdf=function(A,y){if(isNaN(A)||isNaN(y))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return lf(A,y-1)},zo=Fa.__acroform__.setBitForPdf=function(A,y){if(isNaN(A)||isNaN(y))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return lo(A,y-1)},Uo=Fa.__acroform__.clearBitForPdf=function(A,y){if(isNaN(A)||isNaN(y))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Hf(A,y-1)},cf=Fa.__acroform__.calculateCoordinates=function(A,y){var k=y.internal.getHorizontalCoordinate,P=y.internal.getVerticalCoordinate,N=A[0],D=A[1],U=A[2],W=A[3],X={};return X.lowerLeft_X=k(N)||0,X.lowerLeft_Y=P(D+W)||0,X.upperRight_X=k(N+U)||0,X.upperRight_Y=P(D)||0,[Number(Wr(X.lowerLeft_X)),Number(Wr(X.lowerLeft_Y)),Number(Wr(X.upperRight_X)),Number(Wr(X.upperRight_Y))]},Kf=function(A){if(A.appearanceStreamContent)return A.appearanceStreamContent;if(A.V||A.DV){var y=[],P=Jf(A,A._V||A.DV),N=A.scope.internal.getFont(A.fontName,A.fontStyle).id;y.push("/Tx BMC"),y.push("q"),y.push("BT"),y.push(A.scope.__private__.encodeColorString(A.color)),y.push("/"+N+" "+Wr(P.fontSize)+" Tf"),y.push("1 0 0 1 0 0 Tm"),y.push(P.text),y.push("ET"),y.push("Q"),y.push("EMC");var D=Ba(A);return D.scope=A.scope,D.stream=y.join("\n"),D}},Jf=function(A,y){var k=0===A.fontSize?A.maxFontSize:A.fontSize,P={text:"",fontSize:""},N=(y=")"==(y="("==y.substr(0,1)?y.substr(1):y).substr(y.length-1)?y.substr(0,y.length-1):y).split(" ");N=N.map(A.multiline?function(He){return He.split("\n")}:function(He){return[He]});var D=k,U=gi.internal.getHeight(A)||0;U=U<0?-U:U;var He,W=gi.internal.getWidth(A)||0;W=W<0?-W:W,D++;e:for(;D>0;){y="",D--;var de,ve,Ae=es("3",A,D).height,Le=A.multiline?U-D:(U-Ae)/2,oe=Le+=2,at=0,We=0,ht=0;if(D<=0){y="(...) Tj\n",y+="% Width of Text: "+es(y,A,D=12).width+", FieldWidth:"+W+"\n";break}for(var Ve="",ot=0,Rt=0;Rt<N.length;Rt++)if(N.hasOwnProperty(Rt)){var Jt=!1;if(1!==N[Rt].length&&ht!==N[Rt].length-1){if((Ae+2)*(ot+2)+2>U)continue e;Ve+=N[Rt][ht],Jt=!0,We=Rt,Rt--}else{Ve=" "==(Ve+=N[Rt][ht]+" ").substr(Ve.length-1)?Ve.substr(0,Ve.length-1):Ve;var An=parseInt(Rt),hi=(He=An)+1<N.length&&es(Ve+" "+N[He+1][0],A,D).width<=W-4,mn=Rt>=N.length-1;if(hi&&!mn){Ve+=" ",ht=0;continue}if(hi||mn){if(mn)We=An;else if(A.multiline&&(Ae+2)*(ot+2)+2>U)continue e}else{if(!A.multiline||(Ae+2)*(ot+2)+2>U)continue e;We=An}}for(var At="",qn=at;qn<=We;qn++){var ii=N[qn];if(A.multiline){if(qn===We){At+=ii[ht]+" ",ht=(ht+1)%ii.length;continue}if(qn===at){At+=ii[ii.length-1]+" ";continue}}At+=ii[0]+" "}switch(At=" "==At.substr(At.length-1)?At.substr(0,At.length-1):At,ve=es(At,A,D).width,A.textAlign){case"right":de=W-ve-2;break;case"center":de=(W-ve)/2;break;default:de=2}y+=Wr(de)+" "+Wr(oe)+" Td\n",y+="("+Ka(At)+") Tj\n",y+=-Wr(de)+" 0 Td\n",oe=-(D+2),ve=0,at=Jt?We:We+1,ot++,Ve=""}break}return P.text=y,P.fontSize=D,P},es=function(A,y,k){var P=y.scope.internal.getFont(y.fontName,y.fontStyle),N=y.scope.getStringUnitWidth(A,{font:P,fontSize:parseFloat(k),charSpace:0})*parseFloat(k);return{height:y.scope.getStringUnitWidth("3",{font:P,fontSize:parseFloat(k),charSpace:0})*parseFloat(k)*1.5,width:N}},id={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Xd=function(A,y){var k={type:"reference",object:A};void 0===y.internal.getPageInfo(A.page).pageContext.annotations.find(function(P){return P.type===k.type&&P.object===k.object})&&y.internal.getPageInfo(A.page).pageContext.annotations.push(k)},Ho=Fa.__acroform__.arrayToPdfArray=function(A,y,k){var P=function(U){return U};if(Array.isArray(A)){for(var N="[",D=0;D<A.length;D++)switch(0!==D&&(N+=" "),(0,E.A)(A[D])){case"boolean":case"number":case"object":N+=A[D].toString();break;case"string":"/"!==A[D].substr(0,1)?(void 0!==y&&k&&(P=k.internal.getEncryptor(y)),N+="("+Ka(P(A[D].toString()))+")"):N+=A[D].toString()}return N+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Mf=function(A,y,k){var P=function(N){return N};return void 0!==y&&k&&(P=k.internal.getEncryptor(y)),(A=A||"").toString(),"("+Ka(P(A))+")"},w=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(A){this._objId=A}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};w.prototype.toString=function(){return this.objId+" 0 R"},w.prototype.putStream=function(){var A=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:A,objectId:this.objId}),this.scope.internal.out("endobj")},w.prototype.getKeyValueListForStream=function(){var A=[],y=Object.getOwnPropertyNames(this).filter(function(D){return"content"!=D&&"appearanceStreamContent"!=D&&"scope"!=D&&"objId"!=D&&"_"!=D.substring(0,1)});for(var k in y)if(!1===Object.getOwnPropertyDescriptor(this,y[k]).configurable){var P=y[k],N=this[P];N&&(Array.isArray(N)?A.push({key:P,value:Ho(N,this.objId,this.scope)}):N instanceof w?(N.scope=this.scope,A.push({key:P,value:N.objId+" 0 R"})):"function"!=typeof N&&A.push({key:P,value:N}))}return A};var I=function(){w.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var A,y=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return y},set:function(k){y=k}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(k){A=k.trim()},get:function(){return A||null}})};Ms(I,w);var H=function(){w.call(this);var A,y=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return y.length>0?y:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return y}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(A){var k=function(P){return P};return this.scope&&(k=this.scope.internal.getEncryptor(this.objId)),"("+Ka(k(A))+")"}},set:function(k){A=k}})};Ms(H,w);var Q=function A(){w.call(this);var y=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return y},set:function(Ve){if(isNaN(Ve))throw new Error('Invalid value "'+Ve+'" for attribute F supplied.');y=Ve}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Oo(y,3)},set:function(Ve){this.F=Ve?zo(y,3):Uo(y,3)}});var k=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return k},set:function(Ve){if(isNaN(Ve))throw new Error('Invalid value "'+Ve+'" for attribute Ff supplied.');k=Ve}});var P=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==P.length)return P},set:function(Ve){P=void 0!==Ve?Ve:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!P||isNaN(P[0])?0:P[0]},set:function(Ve){P[0]=Ve}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!P||isNaN(P[1])?0:P[1]},set:function(Ve){P[1]=Ve}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!P||isNaN(P[2])?0:P[2]},set:function(Ve){P[2]=Ve}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!P||isNaN(P[3])?0:P[3]},set:function(Ve){P[3]=Ve}});var N="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return N},set:function(Ve){switch(Ve){case"/Btn":case"/Tx":case"/Ch":case"/Sig":N=Ve;break;default:throw new Error('Invalid value "'+Ve+'" for attribute FT supplied.')}}});var D=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!D||D.length<1){if(this instanceof $n)return;D="FieldObject"+A.FieldNum++}var Ve=function(ot){return ot};return this.scope&&(Ve=this.scope.internal.getEncryptor(this.objId)),"("+Ka(Ve(D))+")"},set:function(Ve){D=Ve.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return D},set:function(Ve){D=Ve}});var U="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return U},set:function(Ve){U=Ve}});var W="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return W},set:function(Ve){W=Ve}});var X=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return X},set:function(Ve){X=Ve}});var de=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===de?50/hs:de},set:function(Ve){de=Ve}});var ve="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return ve},set:function(Ve){ve=Ve}});var Ae="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Ae||this instanceof $n||this instanceof Un))return Mf(Ae,this.objId,this.scope)},set:function(Ve){Ve=Ve.toString(),Ae=Ve}});var Le=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Le)return this instanceof st?Le:Mf(Le,this.objId,this.scope)},set:function(Ve){Ve=Ve.toString(),Le=this instanceof st?Ve:"("===Ve.substr(0,1)?nd(Ve.substr(1,Ve.length-2)):nd(Ve)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof st?nd(Le.substr(1,Le.length-1)):Le},set:function(Ve){Ve=Ve.toString(),Le=this instanceof st?"/"+Ve:Ve}});var oe=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(oe)return oe},set:function(Ve){this.V=Ve}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(oe)return this instanceof st?oe:Mf(oe,this.objId,this.scope)},set:function(Ve){Ve=Ve.toString(),oe=this instanceof st?Ve:"("===Ve.substr(0,1)?nd(Ve.substr(1,Ve.length-2)):nd(Ve)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof st?nd(oe.substr(1,oe.length-1)):oe},set:function(Ve){Ve=Ve.toString(),oe=this instanceof st?"/"+Ve:Ve}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var at,We=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return We},set:function(Ve){We=Ve=!!Ve}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(at)return at},set:function(Ve){at=Ve}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Oo(this.Ff,1)},set:function(Ve){this.Ff=Ve?zo(this.Ff,1):Uo(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Oo(this.Ff,2)},set:function(Ve){this.Ff=Ve?zo(this.Ff,2):Uo(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Oo(this.Ff,3)},set:function(Ve){this.Ff=Ve?zo(this.Ff,3):Uo(this.Ff,3)}});var ht=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==ht)return ht},set:function(Ve){if(-1===[0,1,2].indexOf(Ve))throw new Error('Invalid value "'+Ve+'" for attribute Q supplied.');ht=Ve}}),Object.defineProperty(this,"textAlign",{get:function(){var Ve;switch(ht){case 0:default:Ve="left";break;case 1:Ve="center";break;case 2:Ve="right"}return Ve},configurable:!0,enumerable:!0,set:function(Ve){switch(Ve){case"right":case 2:ht=2;break;case"center":case 1:ht=1;break;default:ht=0}}})};Ms(Q,w);var _e=function(){Q.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var A=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return A},set:function(k){A=k}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return A},set:function(k){A=k}});var y=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Ho(y,this.objId,this.scope)},set:function(k){var P,N;N=[],"string"==typeof(P=k)&&(N=function(D,U,W){W||(W=1);for(var X,de=[];X=U.exec(D);)de.push(X[W]);return de}(P,/\((.*?)\)/g)),y=N}}),this.getOptions=function(){return y},this.setOptions=function(k){y=k,this.sort&&y.sort()},this.addOption=function(k){k=(k=k||"").toString(),y.push(k),this.sort&&y.sort()},this.removeOption=function(k,P){for(P=P||!1,k=(k=k||"").toString();-1!==y.indexOf(k)&&(y.splice(y.indexOf(k),1),!1!==P););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Oo(this.Ff,18)},set:function(k){this.Ff=k?zo(this.Ff,18):Uo(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Oo(this.Ff,19)},set:function(k){!0===this.combo&&(this.Ff=k?zo(this.Ff,19):Uo(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Oo(this.Ff,20)},set:function(k){k?(this.Ff=zo(this.Ff,20),y.sort()):this.Ff=Uo(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Oo(this.Ff,22)},set:function(k){this.Ff=k?zo(this.Ff,22):Uo(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Oo(this.Ff,23)},set:function(k){this.Ff=k?zo(this.Ff,23):Uo(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Oo(this.Ff,27)},set:function(k){this.Ff=k?zo(this.Ff,27):Uo(this.Ff,27)}}),this.hasAppearanceStream=!1};Ms(_e,Q);var he=function(){_e.call(this),this.fontName="helvetica",this.combo=!1};Ms(he,_e);var Ee=function(){he.call(this),this.combo=!0};Ms(Ee,he);var _t=function(){Ee.call(this),this.edit=!0};Ms(_t,Ee);var st=function(){Q.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Oo(this.Ff,15)},set:function(k){this.Ff=k?zo(this.Ff,15):Uo(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Oo(this.Ff,16)},set:function(k){this.Ff=k?zo(this.Ff,16):Uo(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Oo(this.Ff,17)},set:function(k){this.Ff=k?zo(this.Ff,17):Uo(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Oo(this.Ff,26)},set:function(k){this.Ff=k?zo(this.Ff,26):Uo(this.Ff,26)}});var A,y={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var k=function(D){return D};if(this.scope&&(k=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(y).length){var P,N=[];for(P in N.push("<<"),y)N.push("/"+P+" ("+Ka(k(y[P]))+")");return N.push(">>"),N.join("\n")}},set:function(k){"object"===(0,E.A)(k)&&(y=k)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return y.CA||""},set:function(k){"string"==typeof k&&(y.CA=k)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return A},set:function(k){A=k}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return A.substr(1,A.length-1)},set:function(k){A="/"+k}})};Ms(st,Q);var Xt=function(){st.call(this),this.pushButton=!0};Ms(Xt,st);var wn=function(){st.call(this),this.radio=!0,this.pushButton=!1;var A=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return A},set:function(y){A=void 0!==y?y:[]}})};Ms(wn,st);var $n=function(){var A,y;Q.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return A},set:function(N){A=N}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return y},set:function(N){y=N}});var k,P={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var N=function(W){return W};this.scope&&(N=this.scope.internal.getEncryptor(this.objId));var D,U=[];for(D in U.push("<<"),P)U.push("/"+D+" ("+Ka(N(P[D]))+")");return U.push(">>"),U.join("\n")},set:function(N){"object"===(0,E.A)(N)&&(P=N)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return P.CA||""},set:function(N){"string"==typeof N&&(P.CA=N)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return k},set:function(N){k=N}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return k.substr(1,k.length-1)},set:function(N){k="/"+N}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=gi.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Ms($n,Q),wn.prototype.setAppearance=function(A){if(!("createAppearanceStream"in A)||!("getCA"in A))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var y in this.Kids)if(this.Kids.hasOwnProperty(y)){var k=this.Kids[y];k.appearanceStreamContent=A.createAppearanceStream(k.optionName),k.caption=A.getCA()}},wn.prototype.createOption=function(A){var y=new $n;return y.Parent=this,y.optionName=A,this.Kids.push(y),mr.call(this.scope,y),y};var Zt=function(){st.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=gi.CheckBox.createAppearanceStream()};Ms(Zt,st);var Un=function(){Q.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Oo(this.Ff,13)},set:function(y){this.Ff=y?zo(this.Ff,13):Uo(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Oo(this.Ff,21)},set:function(y){this.Ff=y?zo(this.Ff,21):Uo(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Oo(this.Ff,23)},set:function(y){this.Ff=y?zo(this.Ff,23):Uo(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Oo(this.Ff,24)},set:function(y){this.Ff=y?zo(this.Ff,24):Uo(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Oo(this.Ff,25)},set:function(y){this.Ff=y?zo(this.Ff,25):Uo(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Oo(this.Ff,26)},set:function(y){this.Ff=y?zo(this.Ff,26):Uo(this.Ff,26)}});var A=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return A},set:function(y){A=y}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return A},set:function(y){Number.isInteger(y)&&(A=y)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Ms(Un,Q);var jr=function(){Un.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Oo(this.Ff,14)},set:function(A){this.Ff=A?zo(this.Ff,14):Uo(this.Ff,14)}}),this.password=!0};Ms(jr,Un);var gi={CheckBox:{createAppearanceStream:function(){return{N:{On:gi.CheckBox.YesNormal},D:{On:gi.CheckBox.YesPushDown,Off:gi.CheckBox.OffPushDown}}},YesPushDown:function(A){var y=Ba(A);y.scope=A.scope;var k=[],P=A.scope.internal.getFont(A.fontName,A.fontStyle).id,N=A.scope.__private__.encodeColorString(A.color),D=Jf(A,A.caption);return k.push("0.749023 g"),k.push("0 0 "+Wr(gi.internal.getWidth(A))+" "+Wr(gi.internal.getHeight(A))+" re"),k.push("f"),k.push("BMC"),k.push("q"),k.push("0 0 1 rg"),k.push("/"+P+" "+Wr(D.fontSize)+" Tf "+N),k.push("BT"),k.push(D.text),k.push("ET"),k.push("Q"),k.push("EMC"),y.stream=k.join("\n"),y},YesNormal:function(A){var y=Ba(A);y.scope=A.scope;var k=A.scope.internal.getFont(A.fontName,A.fontStyle).id,P=A.scope.__private__.encodeColorString(A.color),N=[],D=gi.internal.getHeight(A),U=gi.internal.getWidth(A),W=Jf(A,A.caption);return N.push("1 g"),N.push("0 0 "+Wr(U)+" "+Wr(D)+" re"),N.push("f"),N.push("q"),N.push("0 0 1 rg"),N.push("0 0 "+Wr(U-1)+" "+Wr(D-1)+" re"),N.push("W"),N.push("n"),N.push("0 g"),N.push("BT"),N.push("/"+k+" "+Wr(W.fontSize)+" Tf "+P),N.push(W.text),N.push("ET"),N.push("Q"),y.stream=N.join("\n"),y},OffPushDown:function(A){var y=Ba(A);y.scope=A.scope;var k=[];return k.push("0.749023 g"),k.push("0 0 "+Wr(gi.internal.getWidth(A))+" "+Wr(gi.internal.getHeight(A))+" re"),k.push("f"),y.stream=k.join("\n"),y}},RadioButton:{Circle:{createAppearanceStream:function(A){var y={D:{Off:gi.RadioButton.Circle.OffPushDown},N:{}};return y.N[A]=gi.RadioButton.Circle.YesNormal,y.D[A]=gi.RadioButton.Circle.YesPushDown,y},getCA:function(){return"l"},YesNormal:function(A){var y=Ba(A);y.scope=A.scope;var k=[],P=gi.internal.getWidth(A)<=gi.internal.getHeight(A)?gi.internal.getWidth(A)/4:gi.internal.getHeight(A)/4;P=Number((.9*P).toFixed(5));var D=Number((P*gi.internal.Bezier_C).toFixed(5));return k.push("q"),k.push("1 0 0 1 "+Hl(gi.internal.getWidth(A)/2)+" "+Hl(gi.internal.getHeight(A)/2)+" cm"),k.push(P+" 0 m"),k.push(P+" "+D+" "+D+" "+P+" 0 "+P+" c"),k.push("-"+D+" "+P+" -"+P+" "+D+" -"+P+" 0 c"),k.push("-"+P+" -"+D+" -"+D+" -"+P+" 0 -"+P+" c"),k.push(D+" -"+P+" "+P+" -"+D+" "+P+" 0 c"),k.push("f"),k.push("Q"),y.stream=k.join("\n"),y},YesPushDown:function(A){var y=Ba(A);y.scope=A.scope;var k=[],P=gi.internal.getWidth(A)<=gi.internal.getHeight(A)?gi.internal.getWidth(A)/4:gi.internal.getHeight(A)/4;P=Number((.9*P).toFixed(5));var N=Number((2*P).toFixed(5)),D=Number((N*gi.internal.Bezier_C).toFixed(5)),U=Number((P*gi.internal.Bezier_C).toFixed(5));return k.push("0.749023 g"),k.push("q"),k.push("1 0 0 1 "+Hl(gi.internal.getWidth(A)/2)+" "+Hl(gi.internal.getHeight(A)/2)+" cm"),k.push(N+" 0 m"),k.push(N+" "+D+" "+D+" "+N+" 0 "+N+" c"),k.push("-"+D+" "+N+" -"+N+" "+D+" -"+N+" 0 c"),k.push("-"+N+" -"+D+" -"+D+" -"+N+" 0 -"+N+" c"),k.push(D+" -"+N+" "+N+" -"+D+" "+N+" 0 c"),k.push("f"),k.push("Q"),k.push("0 g"),k.push("q"),k.push("1 0 0 1 "+Hl(gi.internal.getWidth(A)/2)+" "+Hl(gi.internal.getHeight(A)/2)+" cm"),k.push(P+" 0 m"),k.push(P+" "+U+" "+U+" "+P+" 0 "+P+" c"),k.push("-"+U+" "+P+" -"+P+" "+U+" -"+P+" 0 c"),k.push("-"+P+" -"+U+" -"+U+" -"+P+" 0 -"+P+" c"),k.push(U+" -"+P+" "+P+" -"+U+" "+P+" 0 c"),k.push("f"),k.push("Q"),y.stream=k.join("\n"),y},OffPushDown:function(A){var y=Ba(A);y.scope=A.scope;var k=[],P=gi.internal.getWidth(A)<=gi.internal.getHeight(A)?gi.internal.getWidth(A)/4:gi.internal.getHeight(A)/4;P=Number((.9*P).toFixed(5));var N=Number((2*P).toFixed(5)),D=Number((N*gi.internal.Bezier_C).toFixed(5));return k.push("0.749023 g"),k.push("q"),k.push("1 0 0 1 "+Hl(gi.internal.getWidth(A)/2)+" "+Hl(gi.internal.getHeight(A)/2)+" cm"),k.push(N+" 0 m"),k.push(N+" "+D+" "+D+" "+N+" 0 "+N+" c"),k.push("-"+D+" "+N+" -"+N+" "+D+" -"+N+" 0 c"),k.push("-"+N+" -"+D+" -"+D+" -"+N+" 0 -"+N+" c"),k.push(D+" -"+N+" "+N+" -"+D+" "+N+" 0 c"),k.push("f"),k.push("Q"),y.stream=k.join("\n"),y}},Cross:{createAppearanceStream:function(A){var y={D:{Off:gi.RadioButton.Cross.OffPushDown},N:{}};return y.N[A]=gi.RadioButton.Cross.YesNormal,y.D[A]=gi.RadioButton.Cross.YesPushDown,y},getCA:function(){return"8"},YesNormal:function(A){var y=Ba(A);y.scope=A.scope;var k=[],P=gi.internal.calculateCross(A);return k.push("q"),k.push("1 1 "+Wr(gi.internal.getWidth(A)-2)+" "+Wr(gi.internal.getHeight(A)-2)+" re"),k.push("W"),k.push("n"),k.push(Wr(P.x1.x)+" "+Wr(P.x1.y)+" m"),k.push(Wr(P.x2.x)+" "+Wr(P.x2.y)+" l"),k.push(Wr(P.x4.x)+" "+Wr(P.x4.y)+" m"),k.push(Wr(P.x3.x)+" "+Wr(P.x3.y)+" l"),k.push("s"),k.push("Q"),y.stream=k.join("\n"),y},YesPushDown:function(A){var y=Ba(A);y.scope=A.scope;var k=gi.internal.calculateCross(A),P=[];return P.push("0.749023 g"),P.push("0 0 "+Wr(gi.internal.getWidth(A))+" "+Wr(gi.internal.getHeight(A))+" re"),P.push("f"),P.push("q"),P.push("1 1 "+Wr(gi.internal.getWidth(A)-2)+" "+Wr(gi.internal.getHeight(A)-2)+" re"),P.push("W"),P.push("n"),P.push(Wr(k.x1.x)+" "+Wr(k.x1.y)+" m"),P.push(Wr(k.x2.x)+" "+Wr(k.x2.y)+" l"),P.push(Wr(k.x4.x)+" "+Wr(k.x4.y)+" m"),P.push(Wr(k.x3.x)+" "+Wr(k.x3.y)+" l"),P.push("s"),P.push("Q"),y.stream=P.join("\n"),y},OffPushDown:function(A){var y=Ba(A);y.scope=A.scope;var k=[];return k.push("0.749023 g"),k.push("0 0 "+Wr(gi.internal.getWidth(A))+" "+Wr(gi.internal.getHeight(A))+" re"),k.push("f"),y.stream=k.join("\n"),y}}},createDefaultAppearanceStream:function(A){var y=A.scope.internal.getFont(A.fontName,A.fontStyle).id,k=A.scope.__private__.encodeColorString(A.color);return"/"+y+" "+A.fontSize+" Tf "+k}};gi.internal={Bezier_C:.551915024494,calculateCross:function(A){var y=gi.internal.getWidth(A),k=gi.internal.getHeight(A),P=Math.min(y,k);return{x1:{x:(y-P)/2,y:(k-P)/2+P},x2:{x:(y-P)/2+P,y:(k-P)/2},x3:{x:(y-P)/2,y:(k-P)/2},x4:{x:(y-P)/2+P,y:(k-P)/2+P}}}},gi.internal.getWidth=function(A){var y=0;return"object"===(0,E.A)(A)&&(y=sf(A.Rect[2])),y},gi.internal.getHeight=function(A){var y=0;return"object"===(0,E.A)(A)&&(y=sf(A.Rect[3])),y};var mr=Fa.addField=function(A){if(function(A,y){if(y.scope=A,void 0!==A.internal&&(void 0===A.internal.acroformPlugin||!1===A.internal.acroformPlugin.isInitialized)){if(Q.FieldNum=0,A.internal.acroformPlugin=JSON.parse(JSON.stringify(id)),A.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");hs=A.internal.scaleFactor,A.internal.acroformPlugin.acroFormDictionaryRoot=new H,A.internal.acroformPlugin.acroFormDictionaryRoot.scope=A,A.internal.acroformPlugin.acroFormDictionaryRoot._eventID=A.internal.events.subscribe("postPutResources",function(){var k;(k=A).internal.events.unsubscribe(k.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete k.internal.acroformPlugin.acroFormDictionaryRoot._eventID,k.internal.acroformPlugin.printedOut=!0}),A.internal.events.subscribe("buildDocument",function(){!function(k){k.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var P=k.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var N in P)if(P.hasOwnProperty(N)){var D=P[N];D.objId=void 0,D.hasAnnotation&&Xd(D,k)}}(A)}),A.internal.events.subscribe("putCatalog",function(){!function(k){if(void 0===k.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");k.internal.write("/AcroForm "+k.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(A)}),A.internal.events.subscribe("postPutPages",function(k){!function(P,N){var D=!P;for(var U in P||(N.internal.newObjectDeferredBegin(N.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),N.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),P=P||N.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(P.hasOwnProperty(U)){var W=P[U],X=[],de=W.Rect;if(W.Rect&&(W.Rect=cf(W.Rect,N)),N.internal.newObjectDeferredBegin(W.objId,!0),W.DA=gi.createDefaultAppearanceStream(W),"object"===(0,E.A)(W)&&"function"==typeof W.getKeyValueListForStream&&(X=W.getKeyValueListForStream()),W.Rect=de,W.hasAppearanceStream&&!W.appearanceStreamContent){var ve=Kf(W);X.push({key:"AP",value:"<</N "+ve+">>"}),N.internal.acroformPlugin.xForms.push(ve)}if(W.appearanceStreamContent){var Ae="";for(var Le in W.appearanceStreamContent)if(W.appearanceStreamContent.hasOwnProperty(Le)){var oe=W.appearanceStreamContent[Le];if(Ae+="/"+Le+" ",Ae+="<<",Object.keys(oe).length>=1||Array.isArray(oe)){for(var U in oe)if(oe.hasOwnProperty(U)){var at=oe[U];"function"==typeof at&&(at=at.call(N,W)),Ae+="/"+U+" "+at+" ",N.internal.acroformPlugin.xForms.indexOf(at)>=0||N.internal.acroformPlugin.xForms.push(at)}}else"function"==typeof(at=oe)&&(at=at.call(N,W)),Ae+="/"+U+" "+at,N.internal.acroformPlugin.xForms.indexOf(at)>=0||N.internal.acroformPlugin.xForms.push(at);Ae+=">>"}X.push({key:"AP",value:"<<\n"+Ae+">>"})}N.internal.putStream({additionalKeyValues:X,objectId:W.objId}),N.internal.out("endobj")}D&&function(A,y){for(var k in A)if(A.hasOwnProperty(k)){var P=k,N=A[k];y.internal.newObjectDeferredBegin(N.objId,!0),"object"===(0,E.A)(N)&&"function"==typeof N.putStream&&N.putStream(),delete A[P]}}(N.internal.acroformPlugin.xForms,N)}(k,A)}),A.internal.acroformPlugin.isInitialized=!0}}(this,A),!(A instanceof Q))throw new Error("Invalid argument passed to jsPDF.addField.");var y;return(y=A).scope.internal.acroformPlugin.printedOut&&(y.scope.internal.acroformPlugin.printedOut=!1,y.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),y.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(y),A.page=A.scope.internal.getCurrentPageInfo().pageNumber,this};Fa.AcroFormChoiceField=_e,Fa.AcroFormListBox=he,Fa.AcroFormComboBox=Ee,Fa.AcroFormEditBox=_t,Fa.AcroFormButton=st,Fa.AcroFormPushButton=Xt,Fa.AcroFormRadioButton=wn,Fa.AcroFormCheckBox=Zt,Fa.AcroFormTextField=Un,Fa.AcroFormPasswordField=jr,Fa.AcroFormAppearance=gi,Fa.AcroForm={ChoiceField:_e,ListBox:he,ComboBox:Ee,EditBox:_t,Button:st,PushButton:Xt,RadioButton:wn,CheckBox:Zt,TextField:Un,PasswordField:jr,Appearance:gi};var A,y,Co=xr.AcroForm={ChoiceField:_e,ListBox:he,ComboBox:Ee,EditBox:_t,Button:st,PushButton:Xt,RadioButton:wn,CheckBox:Zt,TextField:Un,PasswordField:jr,Appearance:gi};function ms(A){return A.reduce(function(y,k,P){return y[k]=P,y},{})}(function(A){A.__addimage__={};var y="UNKNOWN",k={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},P=A.__addimage__.getImageFileTypeByImageData=function(He,$e){var jt,kt,On,Dn,Xn,xn=y;if("RGBA"===($e=$e||y)||void 0!==He.data&&He.data instanceof Uint8ClampedArray&&"height"in He&&"width"in He)return"RGBA";if(hi(He))for(Xn in k)for(On=k[Xn],jt=0;jt<On.length;jt+=1){for(Dn=!0,kt=0;kt<On[jt].length;kt+=1)if(void 0!==On[jt][kt]&&On[jt][kt]!==He[kt]){Dn=!1;break}if(!0===Dn){xn=Xn;break}}else for(Xn in k)for(On=k[Xn],jt=0;jt<On.length;jt+=1){for(Dn=!0,kt=0;kt<On[jt].length;kt+=1)if(void 0!==On[jt][kt]&&On[jt][kt]!==He.charCodeAt(kt)){Dn=!1;break}if(!0===Dn){xn=Xn;break}}return xn===y&&$e!==y&&(xn=$e),xn},N=function He($e){for(var jt=this.internal.write,kt=this.internal.putStream,On=(0,this.internal.getFilters)();-1!==On.indexOf("FlateEncode");)On.splice(On.indexOf("FlateEncode"),1);$e.objectId=this.internal.newObject();var Dn=[];if(Dn.push({key:"Type",value:"/XObject"}),Dn.push({key:"Subtype",value:"/Image"}),Dn.push({key:"Width",value:$e.width}),Dn.push({key:"Height",value:$e.height}),$e.colorSpace===ht.INDEXED?Dn.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+($e.palette.length/3-1)+" "+("sMask"in $e&&void 0!==$e.sMask?$e.objectId+2:$e.objectId+1)+" 0 R]"}):(Dn.push({key:"ColorSpace",value:"/"+$e.colorSpace}),$e.colorSpace===ht.DEVICE_CMYK&&Dn.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Dn.push({key:"BitsPerComponent",value:$e.bitsPerComponent}),"decodeParameters"in $e&&void 0!==$e.decodeParameters&&Dn.push({key:"DecodeParms",value:"<<"+$e.decodeParameters+">>"}),"transparency"in $e&&Array.isArray($e.transparency)){for(var Xn="",xn=0,oi=$e.transparency.length;xn<oi;xn++)Xn+=$e.transparency[xn]+" "+$e.transparency[xn]+" ";Dn.push({key:"Mask",value:"["+Xn+"]"})}if(void 0!==$e.sMask&&Dn.push({key:"SMask",value:$e.objectId+1+" 0 R"}),kt({data:$e.data,additionalKeyValues:Dn,alreadyAppliedFilters:void 0!==$e.filter?["/"+$e.filter]:void 0,objectId:$e.objectId}),jt("endobj"),"sMask"in $e&&void 0!==$e.sMask){var Te={width:$e.width,height:$e.height,colorSpace:"DeviceGray",bitsPerComponent:$e.bitsPerComponent,decodeParameters:"/Predictor "+$e.predictor+" /Colors 1 /BitsPerComponent "+$e.bitsPerComponent+" /Columns "+$e.width,data:$e.sMask};"filter"in $e&&(Te.filter=$e.filter),He.call(this,Te)}if($e.colorSpace===ht.INDEXED){var Qe=this.internal.newObject();kt({data:At(new Uint8Array($e.palette)),objectId:Qe}),jt("endobj")}},D=function(){var He=this.internal.collections.addImage_images;for(var $e in He)N.call(this,He[$e])},U=function(){var He,$e=this.internal.collections.addImage_images,jt=this.internal.write;for(var kt in $e)jt("/I"+(He=$e[kt]).index,He.objectId,"0","R")},W=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",D),this.internal.events.subscribe("putXobjectDict",U))},X=function(){var He=this.internal.collections.addImage_images;return W.call(this),He},de=function(){return Object.keys(this.internal.collections.addImage_images).length},ve=function(He){return"function"==typeof A["process"+He.toUpperCase()]},Ae=function(He){return"object"===(0,E.A)(He)&&1===He.nodeType},Le=function(He,$e){if("IMG"===He.nodeName&&He.hasAttribute("src")){var jt=""+He.getAttribute("src");if(0===jt.indexOf("data:image/"))return Sa(unescape(jt).split("base64,").pop());var kt=A.loadFile(jt,!0);if(void 0!==kt)return kt}if("CANVAS"===He.nodeName){if(0===He.width||0===He.height)throw new Error("Given canvas must have data. Canvas width: "+He.width+", height: "+He.height);var On;switch($e){case"PNG":On="image/png";break;case"WEBP":On="image/webp";break;default:On="image/jpeg"}return Sa(He.toDataURL(On,1).split("base64,").pop())}},oe=function(He){var $e=this.internal.collections.addImage_images;if($e)for(var jt in $e)if(He===$e[jt].alias)return $e[jt]},at=function(He,$e,jt){return He||$e||(He=-96,$e=-96),He<0&&(He=-1*jt.width*72/He/this.internal.scaleFactor),$e<0&&($e=-1*jt.height*72/$e/this.internal.scaleFactor),0===He&&(He=$e*jt.width/jt.height),0===$e&&($e=He*jt.height/jt.width),[He,$e]},We=function(He,$e,jt,kt,On,Dn){var Xn=at.call(this,jt,kt,On),xn=this.internal.getCoordinateString,oi=this.internal.getVerticalCoordinateString,ai=X.call(this);if(jt=Xn[0],kt=Xn[1],ai[On.index]=On,Dn){Dn*=Math.PI/180;var Qi=Math.cos(Dn),Te=Math.sin(Dn),Qe=function(Nt){return Nt.toFixed(4)},dt=[Qe(Qi),Qe(Te),Qe(-1*Te),Qe(Qi),0,0,"cm"]}this.internal.write("q"),Dn?(this.internal.write([1,"0","0",1,xn(He),oi($e+kt),"cm"].join(" ")),this.internal.write(dt.join(" ")),this.internal.write([xn(jt),"0","0",xn(kt),"0","0","cm"].join(" "))):this.internal.write([xn(jt),"0","0",xn(kt),xn(He),oi($e+kt),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+On.index+" Do"),this.internal.write("Q")},ht=A.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};A.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var Ve=A.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},ot=A.__addimage__.sHashCode=function(He){var $e,jt,kt=0;if("string"==typeof He)for(jt=He.length,$e=0;$e<jt;$e++)kt=(kt<<5)-kt+He.charCodeAt($e),kt|=0;else if(hi(He))for(jt=He.byteLength/2,$e=0;$e<jt;$e++)kt=(kt<<5)-kt+He[$e],kt|=0;return kt},Rt=A.__addimage__.validateStringAsBase64=function(He){(He=He||"").toString().trim();var $e=!0;return 0===He.length&&($e=!1),He.length%4!=0&&($e=!1),!1===/^[A-Za-z0-9+/]+$/.test(He.substr(0,He.length-2))&&($e=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(He.substr(-2))&&($e=!1),$e},Jt=A.__addimage__.extractImageFromDataUrl=function(He){var $e=(He=He||"").split("base64,"),jt=null;if(2===$e.length){var kt=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec($e[0]);Array.isArray(kt)&&(jt={mimeType:kt[1],charset:kt[2],data:$e[1]})}return jt},An=A.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};A.__addimage__.isArrayBuffer=function(He){return An()&&He instanceof ArrayBuffer};var hi=A.__addimage__.isArrayBufferView=function(He){return An()&&typeof Uint32Array<"u"&&(He instanceof Int8Array||He instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&He instanceof Uint8ClampedArray||He instanceof Int16Array||He instanceof Uint16Array||He instanceof Int32Array||He instanceof Uint32Array||He instanceof Float32Array||He instanceof Float64Array)},mn=A.__addimage__.binaryStringToUint8Array=function(He){for(var $e=He.length,jt=new Uint8Array($e),kt=0;kt<$e;kt++)jt[kt]=He.charCodeAt(kt);return jt},At=A.__addimage__.arrayBufferToBinaryString=function(He){for(var $e="",jt=hi(He)?He:new Uint8Array(He),kt=0;kt<jt.length;kt+=8192)$e+=String.fromCharCode.apply(null,jt.subarray(kt,kt+8192));return $e};A.addImage=function(){var He,$e,jt,kt,On,Dn,Xn,xn,oi;if("number"==typeof arguments[1]?($e=y,jt=arguments[1],kt=arguments[2],On=arguments[3],Dn=arguments[4],Xn=arguments[5],xn=arguments[6],oi=arguments[7]):($e=arguments[1],jt=arguments[2],kt=arguments[3],On=arguments[4],Dn=arguments[5],Xn=arguments[6],xn=arguments[7],oi=arguments[8]),"object"===(0,E.A)(He=arguments[0])&&!Ae(He)&&"imageData"in He){var ai=He;He=ai.imageData,$e=ai.format||$e||y,jt=ai.x||jt||0,kt=ai.y||kt||0,On=ai.w||ai.width||On,Dn=ai.h||ai.height||Dn,Xn=ai.alias||Xn,xn=ai.compression||xn,oi=ai.rotation||ai.angle||oi}var Qi=this.internal.getFilters();if(void 0===xn&&-1!==Qi.indexOf("FlateEncode")&&(xn="SLOW"),isNaN(jt)||isNaN(kt))throw new Error("Invalid coordinates passed to jsPDF.addImage");W.call(this);var Te=qn.call(this,He,$e,Xn,xn);return We.call(this,jt,kt,On,Dn,Te,oi),this};var qn=function(He,$e,jt,kt){var On,Dn,Xn,oi;if("string"==typeof He&&P(He)===y){He=unescape(He);var xn=ii(He,!1);(""!==xn||void 0!==(xn=A.loadFile(He,!0)))&&(He=xn)}if(Ae(He)&&(He=Le(He,$e)),$e=P(He,$e),!ve($e))throw new Error("addImage does not support files of type '"+$e+"', please ensure that a plugin for '"+$e+"' support is added.");if((null==(Xn=jt)||0===Xn.length)&&(jt="string"==typeof(oi=He)||hi(oi)?ot(oi):hi(oi.data)?ot(oi.data):null),(On=oe.call(this,jt))||(An()&&(He instanceof Uint8Array||"RGBA"===$e||(Dn=He,He=mn(He))),On=this["process"+$e.toUpperCase()](He,de.call(this),jt,function(oi){return oi&&"string"==typeof oi&&(oi=oi.toUpperCase()),oi in A.image_compression?oi:Ve.NONE}(kt),Dn)),!On)throw new Error("An unknown error occurred whilst processing the image.");return On},ii=A.__addimage__.convertBase64ToBinaryString=function(He,$e){var jt;$e="boolean"!=typeof $e||$e;var kt,On="";if("string"==typeof He){kt=null!==(jt=Jt(He))?jt.data:He;try{On=Sa(kt)}catch(Dn){if($e)throw Rt(kt)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Dn.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return On};A.getImageProperties=function(He){var $e,jt,kt="";if(Ae(He)&&(He=Le(He)),"string"==typeof He&&P(He)===y&&(""===(kt=ii(He,!1))&&(kt=A.loadFile(He)||""),He=kt),jt=P(He),!ve(jt))throw new Error("addImage does not support files of type '"+jt+"', please ensure that a plugin for '"+jt+"' support is added.");if(!An()||He instanceof Uint8Array||(He=mn(He)),!($e=this["process"+jt.toUpperCase()](He)))throw new Error("An unknown error occurred whilst processing the image");return $e.fileType=jt,$e}})(xr.API), 2/** 3 * @license 4 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) [email protected] 5 * 6 * Licensed under the MIT License. 7 * http://opensource.org/licenses/mit-license 8 */ 9A=xr.API,y=function(k){if(void 0!==k&&""!=k)return!0},xr.API.events.push(["addPage",function(k){this.internal.getPageInfo(k.pageNumber).pageContext.annotations=[]}]),A.events.push(["putPage",function(k){for(var P,N,D,U=this.internal.getCoordinateString,W=this.internal.getVerticalCoordinateString,X=this.internal.getPageInfoByObjId(k.objId),de=k.pageContext.annotations,ve=!1,Ae=0;Ae<de.length&&!ve;Ae++)switch((P=de[Ae]).type){case"link":(y(P.options.url)||y(P.options.pageNumber))&&(ve=!0);break;case"reference":case"text":case"freetext":ve=!0}if(0!=ve){this.internal.write("/Annots [");for(var Le=0;Le<de.length;Le++){P=de[Le];var oe=this.internal.pdfEscape,at=this.internal.getEncryptor(k.objId);switch(P.type){case"reference":this.internal.write(" "+P.object.objId+" 0 R ");break;case"text":var We=this.internal.newAdditionalObject(),ht=this.internal.newAdditionalObject(),Ve=this.internal.getEncryptor(We.objId),ot=P.title||"Note";D="<</Type /Annot /Subtype /Text "+(N="/Rect ["+U(P.bounds.x)+" "+W(P.bounds.y+P.bounds.h)+" "+U(P.bounds.x+P.bounds.w)+" "+W(P.bounds.y)+"] ")+"/Contents ("+oe(Ve(P.contents))+")",D+=" /Popup "+ht.objId+" 0 R",D+=" /P "+X.objId+" 0 R",D+=" /T ("+oe(Ve(ot))+") >>",We.content=D;var Rt=We.objId+" 0 R";D="<</Type /Annot /Subtype /Popup "+(N="/Rect ["+U(P.bounds.x+30)+" "+W(P.bounds.y+P.bounds.h)+" "+U(P.bounds.x+P.bounds.w+30)+" "+W(P.bounds.y)+"] ")+" /Parent "+Rt,P.open&&(D+=" /Open true"),ht.content=D+=" >>",this.internal.write(We.objId,"0 R",ht.objId,"0 R");break;case"freetext":N="/Rect ["+U(P.bounds.x)+" "+W(P.bounds.y)+" "+U(P.bounds.x+P.bounds.w)+" "+W(P.bounds.y+P.bounds.h)+"] ";var Jt=P.color||"#000000";D="<</Type /Annot /Subtype /FreeText "+N+"/Contents ("+oe(at(P.contents))+")",D+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+Jt+")",D+=" /Border [0 0 0]",this.internal.write(D+=" >>");break;case"link":if(P.options.name){var An=this.annotations._nameMap[P.options.name];P.options.pageNumber=An.page,P.options.top=An.y}else P.options.top||(P.options.top=0);if(N="/Rect ["+P.finalBounds.x+" "+P.finalBounds.y+" "+P.finalBounds.w+" "+P.finalBounds.h+"] ",D="",P.options.url)D="<</Type /Annot /Subtype /Link "+N+"/Border [0 0 0] /A <</S /URI /URI ("+oe(at(P.options.url))+") >>";else if(P.options.pageNumber)switch(D="<</Type /Annot /Subtype /Link "+N+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(P.options.pageNumber).objId+" 0 R",P.options.magFactor=P.options.magFactor||"XYZ",P.options.magFactor){case"Fit":D+=" /Fit]";break;case"FitH":D+=" /FitH "+P.options.top+"]";break;case"FitV":P.options.left=P.options.left||0,D+=" /FitV "+P.options.left+"]";break;default:var hi=W(P.options.top);P.options.left=P.options.left||0,void 0===P.options.zoom&&(P.options.zoom=0),D+=" /XYZ "+P.options.left+" "+hi+" "+P.options.zoom+"]"}""!=D&&this.internal.write(D+=" >>")}}this.internal.write("]")}}]),A.createAnnotation=function(k){var P=this.internal.getCurrentPageInfo();switch(k.type){case"link":this.link(k.bounds.x,k.bounds.y,k.bounds.w,k.bounds.h,k);break;case"text":case"freetext":P.pageContext.annotations.push(k)}},A.link=function(k,P,N,D,U){var W=this.internal.getCurrentPageInfo(),X=this.internal.getCoordinateString,de=this.internal.getVerticalCoordinateString;W.pageContext.annotations.push({finalBounds:{x:X(k),y:de(P),w:X(k+N),h:de(P+D)},options:U,type:"link"})},A.textWithLink=function(k,P,N,D){var U,W,X=this.getTextWidth(k),de=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==D.maxWidth){var ve=this.splitTextToSize(k,W=D.maxWidth).length;U=Math.ceil(de*ve)}else W=X,U=de;return this.text(k,P,N,D),"center"===D.align&&(P-=X/2),"right"===D.align&&(P-=X),this.link(P,(N+=.2*de)-de,W,U,D),X},A.getTextWidth=function(k){var P=this.internal.getFontSize();return this.getStringUnitWidth(k)*P/this.internal.scaleFactor}, 10/** 11 * @license 12 * Copyright (c) 2017 Aras Abbasi 13 * 14 * Licensed under the MIT License. 15 * http://opensource.org/licenses/mit-license 16 */ 17function(A){var y={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},k={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},P={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},N=[1570,1571,1573,1575];A.__arabicParser__={};var D=A.__arabicParser__.isInArabicSubstitutionA=function(We){return void 0!==y[We.charCodeAt(0)]},U=A.__arabicParser__.isArabicLetter=function(We){return"string"==typeof We&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(We)},W=A.__arabicParser__.isArabicEndLetter=function(We){return U(We)&&D(We)&&y[We.charCodeAt(0)].length<=2},X=A.__arabicParser__.isArabicAlfLetter=function(We){return U(We)&&N.indexOf(We.charCodeAt(0))>=0};A.__arabicParser__.arabicLetterHasIsolatedForm=function(We){return U(We)&&D(We)&&y[We.charCodeAt(0)].length>=1};var de=A.__arabicParser__.arabicLetterHasFinalForm=function(We){return U(We)&&D(We)&&y[We.charCodeAt(0)].length>=2};A.__arabicParser__.arabicLetterHasInitialForm=function(We){return U(We)&&D(We)&&y[We.charCodeAt(0)].length>=3};var ve=A.__arabicParser__.arabicLetterHasMedialForm=function(We){return U(We)&&D(We)&&4==y[We.charCodeAt(0)].length},Ae=A.__arabicParser__.resolveLigatures=function(We){var ht=0,Ve=k,ot="",Rt=0;for(ht=0;ht<We.length;ht+=1)void 0!==Ve[We.charCodeAt(ht)]?(Rt++,"number"==typeof(Ve=Ve[We.charCodeAt(ht)])&&(ot+=String.fromCharCode(Ve),Ve=k,Rt=0),ht===We.length-1&&(Ve=k,ot+=We.charAt(ht-(Rt-1)),ht-=Rt-1,Rt=0)):(Ve=k,ot+=We.charAt(ht-Rt),ht-=Rt,Rt=0);return ot};A.__arabicParser__.isArabicDiacritic=function(We){return void 0!==We&&void 0!==P[We.charCodeAt(0)]};var Le=A.__arabicParser__.getCorrectForm=function(We,ht,Ve){return U(We)?!1===D(We)?-1:!de(We)||!U(ht)&&!U(Ve)||!U(Ve)&&W(ht)||W(We)&&!U(ht)||W(We)&&X(ht)||W(We)&&W(ht)?0:ve(We)&&U(ht)&&!W(ht)&&U(Ve)&&de(Ve)?3:W(We)||!U(Ve)?1:2:-1},oe=function(We){var ht=0,Ve=0,ot=0,Rt="",Jt="",An="",hi=(We=We||"").split("\\s+"),mn=[];for(ht=0;ht<hi.length;ht+=1){for(mn.push(""),Ve=0;Ve<hi[ht].length;Ve+=1)Jt=hi[ht][Ve-1],An=hi[ht][Ve+1],U(Rt=hi[ht][Ve])?(ot=Le(Rt,Jt,An),mn[ht]+=-1!==ot?String.fromCharCode(y[Rt.charCodeAt(0)][ot]):Rt):mn[ht]+=Rt;mn[ht]=Ae(mn[ht])}return mn.join(" ")},at=A.__arabicParser__.processArabic=A.processArabic=function(){var We,ht="string"==typeof arguments[0]?arguments[0]:arguments[0].text,Ve=[];if(Array.isArray(ht)){var ot=0;for(Ve=[],ot=0;ot<ht.length;ot+=1)Array.isArray(ht[ot])?Ve.push([oe(ht[ot][0]),ht[ot][1],ht[ot][2]]):Ve.push([oe(ht[ot])]);We=Ve}else We=oe(ht);return"string"==typeof arguments[0]?We:(arguments[0].text=We,arguments[0])};A.events.push(["preProcessText",at])}(xr.API),xr.API.autoPrint=function(A){var y;return"javascript"===((A=A||{}).variant=A.variant||"non-conform",A.variant)?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){y=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+y+" 0 R")})),this}, 18/** 19 * @license 20 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) [email protected] 21 * 22 * Licensed under the MIT License. 23 * http://opensource.org/licenses/mit-license 24 */ 25function(A){var y=function(){var k=void 0;Object.defineProperty(this,"pdf",{get:function(){return k},set:function(W){k=W}});var P=150;Object.defineProperty(this,"width",{get:function(){return P},set:function(W){P=isNaN(W)||!1===Number.isInteger(W)||W<0?150:W,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=P+1)}});var N=300;Object.defineProperty(this,"height",{get:function(){return N},set:function(W){N=isNaN(W)||!1===Number.isInteger(W)||W<0?300:W,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=N+1)}});var D=[];Object.defineProperty(this,"childNodes",{get:function(){return D},set:function(W){D=W}});var U={};Object.defineProperty(this,"style",{get:function(){return U},set:function(W){U=W}}),Object.defineProperty(this,"parentNode",{})};y.prototype.getContext=function(k,P){var N;if("2d"!==(k=k||"2d"))return null;for(N in P)this.pdf.context2d.hasOwnProperty(N)&&(this.pdf.context2d[N]=P[N]);return this.pdf.context2d._canvas=this,this.pdf.context2d},y.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},A.events.push(["initialized",function(){this.canvas=new y,this.canvas.pdf=this}])}(xr.API),function(A){var y={left:0,top:0,bottom:0,right:0},k=!1,P=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},y),this.internal.__cell__.margins.width=this.getPageWidth(),N.call(this))},N=function(){this.internal.__cell__.lastCell=new D,this.internal.__cell__.pages=1},D=function(){var X=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return X},set:function(We){X=We}});var de=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return de},set:function(We){de=We}});var ve=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return ve},set:function(We){ve=We}});var Ae=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return Ae},set:function(We){Ae=We}});var Le=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Le},set:function(We){Le=We}});var oe=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return oe},set:function(We){oe=We}});var at=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return at},set:function(We){at=We}}),this};D.prototype.clone=function(){return new D(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},D.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},A.setHeaderFunction=function(X){return P.call(this),this.internal.__cell__.headerFunction="function"==typeof X?X:void 0,this},A.getTextDimensions=function(X,de){P.call(this);var ve=(de=de||{}).fontSize||this.getFontSize(),Ae=de.font||this.getFont(),Le=de.scaleFactor||this.internal.scaleFactor,oe=0,at=0,We=0,ht=this;if(!Array.isArray(X)&&"string"!=typeof X){if("number"!=typeof X)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");X=String(X)}var Ve=de.maxWidth;Ve>0?"string"==typeof X?X=this.splitTextToSize(X,Ve):"[object Array]"===Object.prototype.toString.call(X)&&(X=X.reduce(function(Rt,Jt){return Rt.concat(ht.splitTextToSize(Jt,Ve))},[])):X=Array.isArray(X)?X:[X];for(var ot=0;ot<X.length;ot++)oe<(We=this.getStringUnitWidth(X[ot],{font:Ae})*ve)&&(oe=We);return 0!==oe&&(at=X.length),{w:oe/=Le,h:Math.max((at*ve*this.getLineHeightFactor()-ve*(this.getLineHeightFactor()-1))/Le,0)}},A.cellAddPage=function(){P.call(this),this.addPage();var X=this.internal.__cell__.margins||y;return this.internal.__cell__.lastCell=new D(X.left,X.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var U=A.cell=function(){var X;X=arguments[0]instanceof D?arguments[0]:new D(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),P.call(this);var de=this.internal.__cell__.lastCell,ve=this.internal.__cell__.padding,Ae=this.internal.__cell__.margins||y,Le=this.internal.__cell__.tableHeaderRow,oe=this.internal.__cell__.printHeaders;return void 0!==de.lineNumber&&(de.lineNumber===X.lineNumber?(X.x=(de.x||0)+(de.width||0),X.y=de.y||0):de.y+de.height+X.height+Ae.bottom>this.getPageHeight()?(this.cellAddPage(),X.y=Ae.top,oe&&Le&&(this.printHeaderRow(X.lineNumber,!0),X.y+=Le[0].height)):X.y=de.y+de.height||X.y),void 0!==X.text[0]&&(this.rect(X.x,X.y,X.width,X.height,!0===k?"FD":void 0),"right"===X.align?this.text(X.text,X.x+X.width-ve,X.y+ve,{align:"right",baseline:"top"}):"center"===X.align?this.text(X.text,X.x+X.width/2,X.y+ve,{align:"center",baseline:"top",maxWidth:X.width-ve-ve}):this.text(X.text,X.x+ve,X.y+ve,{align:"left",baseline:"top",maxWidth:X.width-ve-ve})),this.internal.__cell__.lastCell=X,this};A.table=function(X,de,ve,Ae,Le){if(P.call(this),!ve)throw new Error("No data for PDF table.");var oe,at,We,ht,Ve=[],ot=[],Rt=[],Jt={},An={},hi=[],mn=[],At=(Le=Le||{}).autoSize||!1,qn=!1!==Le.printHeaders,ii=Le.css&&void 0!==Le.css["font-size"]?16*Le.css["font-size"]:Le.fontSize||12,He=Le.margins||Object.assign({width:this.getPageWidth()},y),$e="number"==typeof Le.padding?Le.padding:3,jt=Le.headerBackgroundColor||"#c8c8c8",kt=Le.headerTextColor||"#000";if(N.call(this),this.internal.__cell__.printHeaders=qn,this.internal.__cell__.margins=He,this.internal.__cell__.table_font_size=ii,this.internal.__cell__.padding=$e,this.internal.__cell__.headerBackgroundColor=jt,this.internal.__cell__.headerTextColor=kt,this.setFontSize(ii),null==Ae)ot=Ve=Object.keys(ve[0]),Rt=Ve.map(function(){return"left"});else if(Array.isArray(Ae)&&"object"===(0,E.A)(Ae[0]))for(Ve=Ae.map(function(ai){return ai.name}),ot=Ae.map(function(ai){return ai.prompt||ai.name||""}),Rt=Ae.map(function(ai){return ai.align||"left"}),oe=0;oe<Ae.length;oe+=1)An[Ae[oe].name]=Ae[oe].width*(19.049976/25.4);else Array.isArray(Ae)&&"string"==typeof Ae[0]&&(ot=Ve=Ae,Rt=Ve.map(function(){return"left"}));if(At||Array.isArray(Ae)&&"string"==typeof Ae[0])for(oe=0;oe<Ve.length;oe+=1){for(Jt[ht=Ve[oe]]=ve.map(function(ai){return ai[ht]}),this.setFont(void 0,"bold"),hi.push(this.getTextDimensions(ot[oe],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),at=Jt[ht],this.setFont(void 0,"normal"),We=0;We<at.length;We+=1)hi.push(this.getTextDimensions(at[We],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);An[ht]=Math.max.apply(null,hi)+$e+$e,hi=[]}if(qn){var On={};for(oe=0;oe<Ve.length;oe+=1)On[Ve[oe]]={},On[Ve[oe]].text=ot[oe],On[Ve[oe]].align=Rt[oe];var Dn=W.call(this,On,An);mn=Ve.map(function(ai){return new D(X,de,An[ai],Dn,On[ai].text,void 0,On[ai].align)}),this.setTableHeaderRow(mn),this.printHeaderRow(1,!1)}var Xn=Ae.reduce(function(ai,Qi){return ai[Qi.name]=Qi.align,ai},{});for(oe=0;oe<ve.length;oe+=1){"rowStart"in Le&&Le.rowStart instanceof Function&&Le.rowStart({row:oe,data:ve[oe]},this);var xn=W.call(this,ve[oe],An);for(We=0;We<Ve.length;We+=1){var oi=ve[oe][Ve[We]];"cellStart"in Le&&Le.cellStart instanceof Function&&Le.cellStart({row:oe,col:We,data:oi},this),U.call(this,new D(X,de,An[Ve[We]],xn,oi,oe+2,Xn[Ve[We]]))}}return this.internal.__cell__.table_x=X,this.internal.__cell__.table_y=de,this};var W=function(X,de){var ve=this.internal.__cell__.padding,Ae=this.internal.__cell__.table_font_size,Le=this.internal.scaleFactor;return Object.keys(X).map(function(oe){var at=X[oe];return this.splitTextToSize(at.hasOwnProperty("text")?at.text:at,de[oe]-ve-ve)},this).map(function(oe){return this.getLineHeightFactor()*oe.length*Ae/Le+ve+ve},this).reduce(function(oe,at){return Math.max(oe,at)},0)};A.setTableHeaderRow=function(X){P.call(this),this.internal.__cell__.tableHeaderRow=X},A.printHeaderRow=function(X,de){if(P.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var ve;if(k=!0,"function"==typeof this.internal.__cell__.headerFunction){var Ae=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new D(Ae[0],Ae[1],Ae[2],Ae[3],void 0,-1)}this.setFont(void 0,"bold");for(var Le=[],oe=0;oe<this.internal.__cell__.tableHeaderRow.length;oe+=1){ve=this.internal.__cell__.tableHeaderRow[oe].clone(),de&&(ve.y=this.internal.__cell__.margins.top||0,Le.push(ve)),ve.lineNumber=X;var at=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),U.call(this,ve),this.setTextColor(at)}Le.length>0&&this.setTableHeaderRow(Le),this.setFont(void 0,"normal"),k=!1}}(xr.API);var lc={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},_l=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Qr=ms(_l),ko=[100,200,300,400,500,600,700,800,900],ba=ms(ko);function wo(A){var D,y=A.family.replace(/"|'/g,"").toLowerCase(),k=lc[D=(D=A.style)||"normal"]?D:"normal",P=function(D){return D?"number"==typeof D?D>=100&&D<=900&&D%100==0?D:400:/^\d00$/.test(D)?parseInt(D):"bold"===D?700:400:400}(A.weight),N=function(D){return"number"==typeof Qr[D=D||"normal"]?D:"normal"}(A.stretch);return{family:y,style:k,weight:P,stretch:N,src:A.src||[],ref:A.ref||{name:y,style:[N,k,P].join(" ")}}}function Nu(A,y,k,P){var N;for(N=k;N>=0&&N<y.length;N+=P)if(A[y[N]])return A[y[N]];for(N=k;N>=0&&N<y.length;N-=P)if(A[y[N]])return A[y[N]]}var Kl={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Us={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Il(A){return[A.stretch,A.style,A.weight,A.family].join(" ")}function ia(A){return A.trimLeft()}function qa(A,y){for(var k=0;k<A.length;){if(A.charAt(k)===y)return[A.substring(0,k),A.substring(k+1)];k+=1}return null}function Ma(A){var y=A.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===y?null:[y[0],A.substring(y[0].length)]}var Os,ks,Do,Ko=["times"];(function(A){var y,k,P,N,D,U,W,X,de,ve=function(Te){return this.isStrokeTransparent=(Te=Te||{}).isStrokeTransparent||!1,this.strokeOpacity=Te.strokeOpacity||1,this.strokeStyle=Te.strokeStyle||"#000000",this.fillStyle=Te.fillStyle||"#000000",this.isFillTransparent=Te.isFillTransparent||!1,this.fillOpacity=Te.fillOpacity||1,this.font=Te.font||"10px sans-serif",this.textBaseline=Te.textBaseline||"alphabetic",this.textAlign=Te.textAlign||"left",this.lineWidth=Te.lineWidth||1,this.lineJoin=Te.lineJoin||"miter",this.lineCap=Te.lineCap||"butt",this.path=Te.path||[],this.transform=void 0!==Te.transform?Te.transform.clone():new X,this.globalCompositeOperation=Te.globalCompositeOperation||"normal",this.globalAlpha=Te.globalAlpha||1,this.clip_path=Te.clip_path||[],this.currentPoint=Te.currentPoint||new U,this.miterLimit=Te.miterLimit||10,this.lastPoint=Te.lastPoint||new U,this.lineDashOffset=Te.lineDashOffset||0,this.lineDash=Te.lineDash||[],this.margin=Te.margin||[0,0,0,0],this.prevPageLastElemOffset=Te.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof Te.ignoreClearRect||Te.ignoreClearRect,this};A.events.push(["initialized",function(){this.context2d=new Ae(this),y=this.internal.f2,k=this.internal.getCoordinateString,P=this.internal.getVerticalCoordinateString,N=this.internal.getHorizontalCoordinate,D=this.internal.getVerticalCoordinate,U=this.internal.Point,W=this.internal.Rectangle,X=this.internal.Matrix,de=new ve}]);var Ae=function(Te){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var Qe=Te;Object.defineProperty(this,"pdf",{get:function(){return Qe}});var dt=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return dt},set:function(Qn){dt=!!Qn}});var Nt=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Nt},set:function(Qn){Nt=!!Qn}});var Qt=0;Object.defineProperty(this,"posX",{get:function(){return Qt},set:function(Qn){isNaN(Qn)||(Qt=Qn)}});var Cn=0;Object.defineProperty(this,"posY",{get:function(){return Cn},set:function(Qn){isNaN(Qn)||(Cn=Qn)}}),Object.defineProperty(this,"margin",{get:function(){return de.margin},set:function(Qn){var vt;"number"==typeof Qn?vt=[Qn,Qn,Qn,Qn]:((vt=new Array(4))[0]=Qn[0],vt[1]=Qn.length>=2?Qn[1]:vt[0],vt[2]=Qn.length>=3?Qn[2]:vt[0],vt[3]=Qn.length>=4?Qn[3]:vt[1]),de.margin=vt}});var In=!1;Object.defineProperty(this,"autoPaging",{get:function(){return In},set:function(Qn){In=Qn}});var Ln=0;Object.defineProperty(this,"lastBreak",{get:function(){return Ln},set:function(Qn){Ln=Qn}});var Ri=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Ri},set:function(Qn){Ri=Qn}}),Object.defineProperty(this,"ctx",{get:function(){return de},set:function(Qn){Qn instanceof ve&&(de=Qn)}}),Object.defineProperty(this,"path",{get:function(){return de.path},set:function(Qn){de.path=Qn}});var Oi=[];Object.defineProperty(this,"ctxStack",{get:function(){return Oi},set:function(Qn){Oi=Qn}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Qn){var vt;vt=Le(Qn),this.ctx.fillStyle=vt.style,this.ctx.isFillTransparent=0===vt.a,this.ctx.fillOpacity=vt.a,this.pdf.setFillColor(vt.r,vt.g,vt.b,{a:vt.a}),this.pdf.setTextColor(vt.r,vt.g,vt.b,{a:vt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Qn){var vt=Le(Qn);this.ctx.strokeStyle=vt.style,this.ctx.isStrokeTransparent=0===vt.a,this.ctx.strokeOpacity=vt.a,0===vt.a?this.pdf.setDrawColor(255,255,255):this.pdf.setDrawColor(vt.r,vt.g,vt.b)}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Qn){-1!==["butt","round","square"].indexOf(Qn)&&(this.ctx.lineCap=Qn,this.pdf.setLineCap(Qn))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Qn){isNaN(Qn)||(this.ctx.lineWidth=Qn,this.pdf.setLineWidth(Qn))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Qn){-1!==["bevel","round","miter"].indexOf(Qn)&&(this.ctx.lineJoin=Qn,this.pdf.setLineJoin(Qn))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Qn){isNaN(Qn)||(this.ctx.miterLimit=Qn,this.pdf.setMiterLimit(Qn))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Qn){this.ctx.textBaseline=Qn}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Qn){-1!==["right","end","center","left","start"].indexOf(Qn)&&(this.ctx.textAlign=Qn)}});var Zn=null,$r=null;Object.defineProperty(this,"fontFaces",{get:function(){return $r},set:function(Qn){Zn=null,$r=Qn}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Qn){var vt;if(this.ctx.font=Qn,null!==(vt=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(Qn))){var pa=vt[1],Wi=vt[3],Pi=vt[4],zi=vt[6],er=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Pi)[2];Pi=Math.floor("px"===er?parseFloat(Pi)*this.pdf.internal.scaleFactor:"em"===er?parseFloat(Pi)*this.pdf.getFontSize():parseFloat(Pi)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Pi);var qi=function($i){var Aa,lr,Ds=[],Mr=$i.trim();if(""===Mr)return Ko;if(Mr in Us)return[Us[Mr]];for(;""!==Mr;){switch(lr=null,Aa=(Mr=ia(Mr)).charAt(0)){case'"':case"'":lr=qa(Mr.substring(1),Aa);break;default:lr=Ma(Mr)}if(null===lr||(Ds.push(lr[0]),""!==(Mr=ia(lr[1]))&&","!==Mr.charAt(0)))return Ko;Mr=Mr.replace(/^,/,"")}return Ds}(zi);if(this.fontFaces){var sr=function Jl(A,y,k){for(var P=(k=k||{}).defaultFontFamily||"times",N=Object.assign({},Kl,k.genericFontFamilies||{}),D=null,U=null,W=0;W<y.length;++W)if(N[(D=wo(y[W])).family]&&(D.family=N[D.family]),A.hasOwnProperty(D.family)){U=A[D.family];break}if(!(U=U||A[P]))throw new Error("Could not find a font-family for the rule '"+Il(D)+"' and default family '"+P+"'.");if(U=function(X,de){if(de[X])return de[X];var ve=Qr[X],Le=Nu(de,_l,ve,ve<=Qr.normal?-1:1);if(!Le)throw new Error("Could not find a matching font-stretch value for "+X);return Le}(D.stretch,U),U=function(X,de){if(de[X])return de[X];for(var ve=lc[X],Ae=0;Ae<ve.length;++Ae)if(de[ve[Ae]])return de[ve[Ae]];throw new Error("Could not find a matching font-style for "+X)}(D.style,U),!(U=function(X,de){if(de[X])return de[X];if(400===X&&de[500])return de[500];if(500===X&&de[400])return de[400];var Ae=Nu(de,ko,ba[X],X<400?-1:1);if(!Ae)throw new Error("Could not find a matching font-weight for value "+X);return Ae}(D.weight,U)))throw new Error("Failed to resolve a font for the rule '"+Il(D)+"'.");return U}(function Hi(Qn,vt){if(null===Zn){var pa=(Wi=Qn.getFontList(),Pi=[],Object.keys(Wi).forEach(function(zi){Wi[zi].forEach(function(er){var qi=null;switch(er){case"bold":qi={family:zi,weight:"bold"};break;case"italic":qi={family:zi,style:"italic"};break;case"bolditalic":qi={family:zi,weight:"bold",style:"italic"};break;case"":case"normal":qi={family:zi}}null!==qi&&(qi.ref={name:zi,style:er},Pi.push(qi))})}),Pi);Zn=function(Wi){for(var Pi={},zi=0;zi<Wi.length;++zi){var er=wo(Wi[zi]),qi=er.family,sr=er.stretch,Sr=er.style,Se=er.weight;Pi[qi]=Pi[qi]||{},Pi[qi][sr]=Pi[qi][sr]||{},Pi[qi][sr][Sr]=Pi[qi][sr][Sr]||{},Pi[qi][sr][Sr][Se]=er}return Pi}(pa.concat(vt))}var Wi,Pi;return Zn}(this.pdf,this.fontFaces),qi.map(function($i){return{family:$i,stretch:"normal",weight:Wi,style:pa}}));this.pdf.setFont(sr.ref.name,sr.ref.style)}else{var Sr="";("bold"===Wi||parseInt(Wi,10)>=700||"bold"===pa)&&(Sr="bold"),"italic"===pa&&(Sr+="italic"),0===Sr.length&&(Sr="normal");for(var Se="",Ca={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Ua=0;Ua<qi.length;Ua++){if(void 0!==this.pdf.internal.getFont(qi[Ua],Sr,{noFallback:!0,disableWarning:!0})){Se=qi[Ua];break}if("bolditalic"===Sr&&void 0!==this.pdf.internal.getFont(qi[Ua],"bold",{noFallback:!0,disableWarning:!0}))Se=qi[Ua],Sr="bold";else if(void 0!==this.pdf.internal.getFont(qi[Ua],"normal",{noFallback:!0,disableWarning:!0})){Se=qi[Ua],Sr="normal";break}}if(""===Se)for(var Da=0;Da<qi.length;Da++)if(Ca[qi[Da]]){Se=Ca[qi[Da]];break}this.pdf.setFont(Se=""===Se?"Times":Se,Sr)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Qn){this.ctx.globalCompositeOperation=Qn}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Qn){this.ctx.globalAlpha=Qn}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Qn){this.ctx.lineDashOffset=Qn,Qi.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Qn){this.ctx.lineDash=Qn,Qi.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Qn){this.ctx.ignoreClearRect=!!Qn}})};Ae.prototype.setLineDash=function(Te){this.lineDash=Te},Ae.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Ae.prototype.fill=function(){Jt.call(this,"fill",!1)},Ae.prototype.stroke=function(){Jt.call(this,"stroke",!1)},Ae.prototype.beginPath=function(){this.path=[{type:"begin"}]},Ae.prototype.moveTo=function(Te,Qe){if(isNaN(Te)||isNaN(Qe))throw ro.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var dt=this.ctx.transform.applyToPoint(new U(Te,Qe));this.path.push({type:"mt",x:dt.x,y:dt.y}),this.ctx.lastPoint=new U(Te,Qe)},Ae.prototype.closePath=function(){var Te=new U(0,0),Qe=0;for(Qe=this.path.length-1;-1!==Qe;Qe--)if("begin"===this.path[Qe].type&&"object"===(0,E.A)(this.path[Qe+1])&&"number"==typeof this.path[Qe+1].x){Te=new U(this.path[Qe+1].x,this.path[Qe+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new U(Te.x,Te.y)},Ae.prototype.lineTo=function(Te,Qe){if(isNaN(Te)||isNaN(Qe))throw ro.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var dt=this.ctx.transform.applyToPoint(new U(Te,Qe));this.path.push({type:"lt",x:dt.x,y:dt.y}),this.ctx.lastPoint=new U(dt.x,dt.y)},Ae.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),Jt.call(this,null,!0)},Ae.prototype.quadraticCurveTo=function(Te,Qe,dt,Nt){if(isNaN(dt)||isNaN(Nt)||isNaN(Te)||isNaN(Qe))throw ro.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to
25jsPDF.context2d.quadraticCurveTo");var Qt=this.ctx.transform.applyToPoint(new U(dt,Nt)),Cn=this.ctx.transform.applyToPoint(new U(Te,Qe));this.path.push({type:"qct",x1:Cn.x,y1:Cn.y,x:Qt.x,y:Qt.y}),this.ctx.lastPoint=new U(Qt.x,Qt.y)},Ae.prototype.bezierCurveTo=function(Te,Qe,dt,Nt,Qt,Cn){if(isNaN(Qt)||isNaN(Cn)||isNaN(Te)||isNaN(Qe)||isNaN(dt)||isNaN(Nt))throw ro.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var In=this.ctx.transform.applyToPoint(new U(Qt,Cn)),Ln=this.ctx.transform.applyToPoint(new U(Te,Qe)),Ri=this.ctx.transform.applyToPoint(new U(dt,Nt));this.path.push({type:"bct",x1:Ln.x,y1:Ln.y,x2:Ri.x,y2:Ri.y,x:In.x,y:In.y}),this.ctx.lastPoint=new U(In.x,In.y)},Ae.prototype.arc=function(Te,Qe,dt,Nt,Qt,Cn){if(isNaN(Te)||isNaN(Qe)||isNaN(dt)||isNaN(Nt)||isNaN(Qt))throw ro.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Cn=!!Cn,!this.ctx.transform.isIdentity){var In=this.ctx.transform.applyToPoint(new U(Te,Qe));Te=In.x,Qe=In.y;var Ln=this.ctx.transform.applyToPoint(new U(0,dt)),Ri=this.ctx.transform.applyToPoint(new U(0,0));dt=Math.sqrt(Math.pow(Ln.x-Ri.x,2)+Math.pow(Ln.y-Ri.y,2))}Math.abs(Qt-Nt)>=2*Math.PI&&(Nt=0,Qt=2*Math.PI),this.path.push({type:"arc",x:Te,y:Qe,radius:dt,startAngle:Nt,endAngle:Qt,counterclockwise:Cn})},Ae.prototype.arcTo=function(Te,Qe,dt,Nt,Qt){throw new Error("arcTo not implemented.")},Ae.prototype.rect=function(Te,Qe,dt,Nt){if(isNaN(Te)||isNaN(Qe)||isNaN(dt)||isNaN(Nt))throw ro.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(Te,Qe),this.lineTo(Te+dt,Qe),this.lineTo(Te+dt,Qe+Nt),this.lineTo(Te,Qe+Nt),this.lineTo(Te,Qe),this.lineTo(Te+dt,Qe),this.lineTo(Te,Qe)},Ae.prototype.fillRect=function(Te,Qe,dt,Nt){if(isNaN(Te)||isNaN(Qe)||isNaN(dt)||isNaN(Nt))throw ro.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!oe.call(this)){var Qt={};"butt"!==this.lineCap&&(Qt.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(Qt.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(Te,Qe,dt,Nt),this.fill(),Qt.hasOwnProperty("lineCap")&&(this.lineCap=Qt.lineCap),Qt.hasOwnProperty("lineJoin")&&(this.lineJoin=Qt.lineJoin)}},Ae.prototype.strokeRect=function(Te,Qe,dt,Nt){if(isNaN(Te)||isNaN(Qe)||isNaN(dt)||isNaN(Nt))throw ro.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");at.call(this)||(this.beginPath(),this.rect(Te,Qe,dt,Nt),this.stroke())},Ae.prototype.clearRect=function(Te,Qe,dt,Nt){if(isNaN(Te)||isNaN(Qe)||isNaN(dt)||isNaN(Nt))throw ro.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(Te,Qe,dt,Nt))},Ae.prototype.save=function(Te){Te="boolean"!=typeof Te||Te;for(var Qe=this.pdf.internal.getCurrentPageInfo().pageNumber,dt=0;dt<this.pdf.internal.getNumberOfPages();dt++)this.pdf.setPage(dt+1),this.pdf.internal.out("q");if(this.pdf.setPage(Qe),Te){this.ctx.fontSize=this.pdf.internal.getFontSize();var Nt=new ve(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Nt}},Ae.prototype.restore=function(Te){Te="boolean"!=typeof Te||Te;for(var Qe=this.pdf.internal.getCurrentPageInfo().pageNumber,dt=0;dt<this.pdf.internal.getNumberOfPages();dt++)this.pdf.setPage(dt+1),this.pdf.internal.out("Q");this.pdf.setPage(Qe),Te&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},Ae.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Le=function(Te){var Qe,dt,Nt,Qt;if(!0===Te.isCanvasGradient&&(Te=Te.getColor()),!Te)return{r:0,g:0,b:0,a:0,style:Te};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Te))Qe=0,dt=0,Nt=0,Qt=0;else{var Cn=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Te);if(null!==Cn)Qe=parseInt(Cn[1]),dt=parseInt(Cn[2]),Nt=parseInt(Cn[3]),Qt=1;else if(null!==(Cn=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Te)))Qe=parseInt(Cn[1]),dt=parseInt(Cn[2]),Nt=parseInt(Cn[3]),Qt=parseFloat(Cn[4]);else{if(Qt=1,"string"==typeof Te&&"#"!==Te.charAt(0)){var In=new qd(Te);
vendor: 102,484 bytes, lines 25-58
25Te=In.ok?In.toHex():"#000000"}4===Te.length?(Qe=Te.substring(1,2),Qe+=Qe,dt=Te.substring(2,3),dt+=dt,Nt=Te.substring(3,4),Nt+=Nt):(Qe=Te.substring(1,3),dt=Te.substring(3,5),Nt=Te.substring(5,7)),Qe=parseInt(Qe,16),dt=parseInt(dt,16),Nt=parseInt(Nt,16)}}return{r:Qe,g:dt,b:Nt,a:Qt,style:Te}},oe=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},at=function(){return!(!this.ctx.isStrokeTransparent&&0!=this.globalAlpha)};Ae.prototype.fillText=function(Te,Qe,dt,Nt){if(isNaN(Qe)||isNaN(dt)||"string"!=typeof Te)throw ro.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Nt=isNaN(Nt)?void 0:Nt,!oe.call(this)){var Qt=xn(this.ctx.transform.rotation);$e.call(this,{text:Te,x:Qe,y:dt,scale:this.ctx.transform.scaleX,angle:Qt,align:this.textAlign,maxWidth:Nt})}},Ae.prototype.strokeText=function(Te,Qe,dt,Nt){if(isNaN(Qe)||isNaN(dt)||"string"!=typeof Te)throw ro.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!at.call(this)){Nt=isNaN(Nt)?void 0:Nt;var Qt=xn(this.ctx.transform.rotation);$e.call(this,{text:Te,x:Qe,y:dt,scale:this.ctx.transform.scaleX,renderingMode:"stroke",angle:Qt,align:this.textAlign,maxWidth:Nt})}},Ae.prototype.measureText=function(Te){if("string"!=typeof Te)throw ro.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Qe=this.pdf,dt=this.pdf.internal.scaleFactor,Nt=Qe.internal.getFontSize(),Qt=Qe.getStringUnitWidth(Te)*Nt/Qe.internal.scaleFactor;return new function(In){var Ln=(In=In||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Ln}}),this}({width:Qt*=Math.round(96*dt/72*1e4)/1e4})},Ae.prototype.scale=function(Te,Qe){if(isNaN(Te)||isNaN(Qe))throw ro.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var dt=new X(Te,0,0,Qe,0,0);this.ctx.transform=this.ctx.transform.multiply(dt)},Ae.prototype.rotate=function(Te){if(isNaN(Te))throw ro.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Qe=new X(Math.cos(Te),Math.sin(Te),-Math.sin(Te),Math.cos(Te),0,0);this.ctx.transform=this.ctx.transform.multiply(Qe)},Ae.prototype.translate=function(Te,Qe){if(isNaN(Te)||isNaN(Qe))throw ro.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var dt=new X(1,0,0,1,Te,Qe);this.ctx.transform=this.ctx.transform.multiply(dt)},Ae.prototype.transform=function(Te,Qe,dt,Nt,Qt,Cn){if(isNaN(Te)||isNaN(Qe)||isNaN(dt)||isNaN(Nt)||isNaN(Qt)||isNaN(Cn))throw ro.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var In=new X(Te,Qe,dt,Nt,Qt,Cn);this.ctx.transform=this.ctx.transform.multiply(In)},Ae.prototype.setTransform=function(Te,Qe,dt,Nt,Qt,Cn){Te=isNaN(Te)?1:Te,Qe=isNaN(Qe)?0:Qe,dt=isNaN(dt)?0:dt,Nt=isNaN(Nt)?1:Nt,Qt=isNaN(Qt)?0:Qt,Cn=isNaN(Cn)?0:Cn,this.ctx.transform=new X(Te,Qe,dt,Nt,Qt,Cn)};var We=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Ae.prototype.drawImage=function(Te,Qe,dt,Nt,Qt,Cn,In,Ln,Ri){var Oi=this.pdf.getImageProperties(Te),Zn=1,Hi=1,$r=1,Qn=1;void 0!==Nt&&void 0!==Ln&&($r=Ln/Nt,Qn=Ri/Qt,Zn=Oi.width/Nt*Ln/Nt,Hi=Oi.height/Qt*Ri/Qt),void 0===Cn&&(Cn=Qe,In=dt,Qe=0,dt=0),void 0!==Nt&&void 0===Ln&&(Ln=Nt,Ri=Qt),void 0===Nt&&void 0===Ln&&(Ln=Oi.width,Ri=Oi.height);for(var vt,pa=this.ctx.transform.decompose(),Wi=xn(pa.rotate.shx),Pi=new X,zi=(Pi=(Pi=(Pi=Pi.multiply(pa.translate)).multiply(pa.skew)).multiply(pa.scale)).applyToRectangle(new W(Cn-Qe*$r,In-dt*Qn,Nt*Zn,Qt*Hi)),er=ht.call(this,zi),qi=[],sr=0;sr<er.length;sr+=1)-1===qi.indexOf(er[sr])&&qi.push(er[sr]);if(Rt(qi),this.autoPaging)for(var Sr=qi[0],Se=qi[qi.length-1],Ca=Sr;Ca<Se+1;Ca++){this.pdf.setPage(Ca);var Ua=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Da=1===Ca?this.posY+this.margin[0]:this.margin[0],Aa=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],lr=1===Ca?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(Ca-2)*Aa;if(0!==this.ctx.clip_path.length){var Ds=this.path;vt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=ot(vt,this.posX+this.margin[3],-lr+Da+this.ctx.prevPageLastElemOffset),An.call(this,"fill",!0),this.path=Ds}var Mr=JSON.parse(JSON.stringify(zi));Mr=ot([Mr],this.posX+this.margin[3],-lr+Da+this.ctx.prevPageLastElemOffset)[0];var Zl=(Ca>Sr||Ca<Se)&&We.call(this);Zl&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ua,Aa,null).clip().discardPath()),this.pdf.addImage(Te,"JPEG",Mr.x,Mr.y,Mr.w,Mr.h,null,null,Wi),Zl&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(Te,"JPEG",zi.x,zi.y,zi.w,zi.h,null,null,Wi)};var ht=function(Te,Qe,dt){var Nt=[];Qe=Qe||this.pdf.internal.pageSize.width,dt=dt||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Qt=this.posY+this.ctx.prevPageLastElemOffset;switch(Te.type){default:case"mt":case"lt":Nt.push(Math.floor((Te.y+Qt)/dt)+1);break;case"arc":Nt.push(Math.floor((Te.y+Qt-Te.radius)/dt)+1),Nt.push(Math.floor((Te.y+Qt+Te.radius)/dt)+1);break;case"qct":var Cn=oi(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Te.x1,Te.y1,Te.x,Te.y);Nt.push(Math.floor((Cn.y+Qt)/dt)+1),Nt.push(Math.floor((Cn.y+Cn.h+Qt)/dt)+1);break;case"bct":var In=ai(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Te.x1,Te.y1,Te.x2,Te.y2,Te.x,Te.y);Nt.push(Math.floor((In.y+Qt)/dt)+1),Nt.push(Math.floor((In.y+In.h+Qt)/dt)+1);break;case"rect":Nt.push(Math.floor((Te.y+Qt)/dt)+1),Nt.push(Math.floor((Te.y+Te.h+Qt)/dt)+1)}for(var Ln=0;Ln<Nt.length;Ln+=1)for(;this.pdf.internal.getNumberOfPages()<Nt[Ln];)Ve.call(this);return Nt},Ve=function(){var Te=this.fillStyle,Qe=this.strokeStyle,dt=this.font,Nt=this.lineCap,Qt=this.lineWidth,Cn=this.lineJoin;this.pdf.addPage(),this.fillStyle=Te,this.strokeStyle=Qe,this.font=dt,this.lineCap=Nt,this.lineWidth=Qt,this.lineJoin=Cn},ot=function(Te,Qe,dt){for(var Nt=0;Nt<Te.length;Nt++)switch(Te[Nt].type){case"bct":Te[Nt].x2+=Qe,Te[Nt].y2+=dt;case"qct":Te[Nt].x1+=Qe,Te[Nt].y1+=dt;default:Te[Nt].x+=Qe,Te[Nt].y+=dt}return Te},Rt=function(Te){return Te.sort(function(Qe,dt){return Qe-dt})},Jt=function(Te,Qe){for(var dt,Nt,Qt=this.fillStyle,Cn=this.strokeStyle,In=this.lineCap,Ln=this.lineWidth,Ri=Math.abs(Ln*this.ctx.transform.scaleX),Oi=this.lineJoin,Zn=JSON.parse(JSON.stringify(this.path)),Hi=JSON.parse(JSON.stringify(this.path)),$r=[],Qn=0;Qn<Hi.length;Qn++)if(void 0!==Hi[Qn].x)for(var vt=ht.call(this,Hi[Qn]),pa=0;pa<vt.length;pa+=1)-1===$r.indexOf(vt[pa])&&$r.push(vt[pa]);for(var Wi=0;Wi<$r.length;Wi++)for(;this.pdf.internal.getNumberOfPages()<$r[Wi];)Ve.call(this);if(Rt($r),this.autoPaging)for(var Pi=$r[0],zi=$r[$r.length-1],er=Pi;er<zi+1;er++){this.pdf.setPage(er),this.fillStyle=Qt,this.strokeStyle=Cn,this.lineCap=In,this.lineWidth=Ri,this.lineJoin=Oi;var qi=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],sr=1===er?this.posY+this.margin[0]:this.margin[0],Se=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ca=1===er?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(er-2)*Se;if(0!==this.ctx.clip_path.length){var Ua=this.path;dt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=ot(dt,this.posX+this.margin[3],-Ca+sr+this.ctx.prevPageLastElemOffset),An.call(this,Te,!0),this.path=Ua}if(Nt=JSON.parse(JSON.stringify(Zn)),this.path=ot(Nt,this.posX+this.margin[3],-Ca+sr+this.ctx.prevPageLastElemOffset),!1===Qe||0===er){var Da=(er>Pi||er<zi)&&We.call(this);Da&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],qi,Se,null).clip().discardPath()),An.call(this,Te,Qe),Da&&this.pdf.restoreGraphicsState()}this.lineWidth=Ln}else this.lineWidth=Ri,An.call(this,Te,Qe),this.lineWidth=Ln;this.path=Zn},An=function(Te,Qe){if(("stroke"!==Te||Qe||!at.call(this))&&("stroke"===Te||Qe||!oe.call(this))){for(var dt,Nt,Qt=[],Cn=this.path,In=0;In<Cn.length;In++){var Ln=Cn[In];switch(Ln.type){case"begin":Qt.push({begin:!0});break;case"close":Qt.push({close:!0});break;case"mt":Qt.push({start:Ln,deltas:[],abs:[]});break;case"lt":var Ri=Qt.length;if(Cn[In-1]&&!isNaN(Cn[In-1].x)&&(dt=[Ln.x-Cn[In-1].x,Ln.y-Cn[In-1].y],Ri>0))for(;Ri>=0;Ri--)if(!0!==Qt[Ri-1].close&&!0!==Qt[Ri-1].begin){Qt[Ri-1].deltas.push(dt),Qt[Ri-1].abs.push(Ln);break}break;case"bct":Qt[Qt.length-1].deltas.push(dt=[Ln.x1-Cn[In-1].x,Ln.y1-Cn[In-1].y,Ln.x2-Cn[In-1].x,Ln.y2-Cn[In-1].y,Ln.x-Cn[In-1].x,Ln.y-Cn[In-1].y]);break;case"qct":Qt[Qt.length-1].deltas.push(dt=[Cn[In-1].x+2/3*(Ln.x1-Cn[In-1].x)-Cn[In-1].x,Cn[In-1].y+2/3*(Ln.y1-Cn[In-1].y)-Cn[In-1].y,Ln.x+2/3*(Ln.x1-Ln.x)-Cn[In-1].x,Ln.y+2/3*(Ln.y1-Ln.y)-Cn[In-1].y,Ln.x-Cn[In-1].x,Ln.y-Cn[In-1].y]);break;case"arc":Qt.push({deltas:[],abs:[],arc:!0}),Array.isArray(Qt[Qt.length-1].abs)&&Qt[Qt.length-1].abs.push(Ln)}}Nt=Qe?null:"stroke"===Te?"stroke":"fill";for(var pa=!1,Wi=0;Wi<Qt.length;Wi++)if(Qt[Wi].arc)for(var Pi=Qt[Wi].abs,zi=0;zi<Pi.length;zi++){var er=Pi[zi];"arc"===er.type?At.call(this,er.x,er.y,er.radius,er.startAngle,er.endAngle,er.counterclockwise,void 0,Qe,!pa):jt.call(this,er.x,er.y),pa=!0}else!0===Qt[Wi].close?(this.pdf.internal.out("h"),pa=!1):!0!==Qt[Wi].begin&&(kt.call(this,Qt[Wi].deltas,Qt[Wi].start.x,Qt[Wi].start.y),pa=!0);Nt&&qn.call(this,Nt),Qe&&ii.call(this)}},hi=function(Te){var Qe=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,dt=Qe*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Te-dt;case"top":return Te+Qe-dt;case"hanging":return Te+Qe-2*dt;case"middle":return Te+Qe/2-dt;default:return Te}},mn=function(Te){return Te+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Ae.prototype.createLinearGradient=function(){var Te=function(){};return Te.colorStops=[],Te.addColorStop=function(Qe,dt){this.colorStops.push([Qe,dt])},Te.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},Te.isCanvasGradient=!0,Te},Ae.prototype.createPattern=function(){return this.createLinearGradient()},Ae.prototype.createRadialGradient=function(){return this.createLinearGradient()};var At=function(Te,Qe,dt,Nt,Qt,Cn,In,Ln,Ri){for(var Oi=Dn.call(this,dt,Nt,Qt,Cn),Zn=0;Zn<Oi.length;Zn++){var Hi=Oi[Zn];0===Zn&&(Ri?He.call(this,Hi.x1+Te,Hi.y1+Qe):jt.call(this,Hi.x1+Te,Hi.y1+Qe)),On.call(this,Te,Qe,Hi.x2,Hi.y2,Hi.x3,Hi.y3,Hi.x4,Hi.y4)}Ln?ii.call(this):qn.call(this,In)},qn=function(Te){switch(Te){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},ii=function(){this.pdf.clip(),this.pdf.discardPath()},He=function(Te,Qe){this.pdf.internal.out(k(Te)+" "+P(Qe)+" m")},$e=function(Te){var Qe;switch(Te.align){case"right":case"end":Qe="right";break;case"center":Qe="center";break;default:Qe="left"}var dt=this.pdf.getTextDimensions(Te.text),Nt=hi.call(this,Te.y),Qt=mn.call(this,Nt)-dt.h,Cn=this.ctx.transform.applyToPoint(new U(Te.x,Nt)),In=this.ctx.transform.decompose(),Ln=new X;Ln=(Ln=(Ln=Ln.multiply(In.translate)).multiply(In.skew)).multiply(In.scale);for(var Ri,Oi,Zn,Hi=this.ctx.transform.applyToRectangle(new W(Te.x,Nt,dt.w,dt.h)),$r=Ln.applyToRectangle(new W(Te.x,Qt,dt.w,dt.h)),Qn=ht.call(this,$r),vt=[],pa=0;pa<Qn.length;pa+=1)-1===vt.indexOf(Qn[pa])&&vt.push(Qn[pa]);if(Rt(vt),this.autoPaging)for(var Wi=vt[0],Pi=vt[vt.length-1],zi=Wi;zi<Pi+1;zi++){this.pdf.setPage(zi);var er=1===zi?this.posY+this.margin[0]:this.margin[0],sr=this.pdf.internal.pageSize.height-this.margin[2],Sr=sr-this.margin[0],Se=this.pdf.internal.pageSize.width-this.margin[1],Ca=Se-this.margin[3],Ua=1===zi?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(zi-2)*Sr;if(0!==this.ctx.clip_path.length){var Da=this.path;Ri=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=ot(Ri,this.posX+this.margin[3],-1*Ua+er),An.call(this,"fill",!0),this.path=Da}var $i=ot([JSON.parse(JSON.stringify($r))],this.posX+this.margin[3],-Ua+er+this.ctx.prevPageLastElemOffset)[0];Te.scale>=.01&&(Oi=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Oi*Te.scale),this.lineWidth=(Zn=this.lineWidth)*Te.scale);var Aa="text"!==this.autoPaging;if(Aa||$i.y+$i.h<=sr){if(Aa||$i.y>=er&&$i.x<=Se){var lr=Aa?Te.text:this.pdf.splitTextToSize(Te.text,Te.maxWidth||Se-$i.x)[0],Ds=ot([JSON.parse(JSON.stringify(Hi))],this.posX+this.margin[3],-Ua+er+this.ctx.prevPageLastElemOffset)[0],Mr=Aa&&(zi>Wi||zi<Pi)&&We.call(this);Mr&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ca,Sr,null).clip().discardPath()),this.pdf.text(lr,Ds.x,Ds.y,{angle:Te.angle,align:Qe,renderingMode:Te.renderingMode}),Mr&&this.pdf.restoreGraphicsState()}}else $i.y<sr&&(this.ctx.prevPageLastElemOffset+=sr-$i.y);Te.scale>=.01&&(this.pdf.setFontSize(Oi),this.lineWidth=Zn)}else Te.scale>=.01&&(Oi=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Oi*Te.scale),this.lineWidth=(Zn=this.lineWidth)*Te.scale),this.pdf.text(Te.text,Cn.x+this.posX,Cn.y+this.posY,{angle:Te.angle,align:Qe,renderingMode:Te.renderingMode,maxWidth:Te.maxWidth}),Te.scale>=.01&&(this.pdf.setFontSize(Oi),this.lineWidth=Zn)},jt=function(Te,Qe,dt,Nt){Nt=Nt||0,this.pdf.internal.out(k(Te+(dt=dt||0))+" "+P(Qe+Nt)+" l")},kt=function(Te,Qe,dt){return this.pdf.lines(Te,Qe,dt,null,null)},On=function(Te,Qe,dt,Nt,Qt,Cn,In,Ln){this.pdf.internal.out([y(N(dt+Te)),y(D(Nt+Qe)),y(N(Qt+Te)),y(D(Cn+Qe)),y(N(In+Te)),y(D(Ln+Qe)),"c"].join(" "))},Dn=function(Te,Qe,dt,Nt){for(var Qt=2*Math.PI,Cn=Math.PI/2;Qe>dt;)Qe-=Qt;var In=Math.abs(dt-Qe);In<Qt&&Nt&&(In=Qt-In);for(var Ln=[],Ri=Nt?-1:1,Oi=Qe;In>1e-5;){var Zn=Oi+Ri*Math.min(In,Cn);Ln.push(Xn.call(this,Te,Oi,Zn)),In-=Math.abs(Zn-Oi),Oi=Zn}return Ln},Xn=function(Te,Qe,dt){var Nt=(dt-Qe)/2,Qt=Te*Math.cos(Nt),Cn=Te*Math.sin(Nt),In=Qt,Ln=-Cn,Ri=In*In+Ln*Ln,Oi=Ri+In*Qt+Ln*Cn,Zn=4/3*(Math.sqrt(2*Ri*Oi)-Oi)/(In*Cn-Ln*Qt),Hi=In-Zn*Ln,$r=Ln+Zn*In,Qn=Hi,vt=-$r,pa=Nt+Qe,Wi=Math.cos(pa),Pi=Math.sin(pa);return{x1:Te*Math.cos(Qe),y1:Te*Math.sin(Qe),x2:Hi*Wi-$r*Pi,y2:Hi*Pi+$r*Wi,x3:Qn*Wi-vt*Pi,y3:Qn*Pi+vt*Wi,x4:Te*Math.cos(dt),y4:Te*Math.sin(dt)}},xn=function(Te){return 180*Te/Math.PI},oi=function(Te,Qe,dt,Nt,Qt,Cn){var In=Te+.5*(dt-Te),Ln=Qe+.5*(Nt-Qe),Ri=Qt+.5*(dt-Qt),Oi=Cn+.5*(Nt-Cn),Zn=Math.min(Te,Qt,In,Ri),Hi=Math.max(Te,Qt,In,Ri),$r=Math.min(Qe,Cn,Ln,Oi),Qn=Math.max(Qe,Cn,Ln,Oi);return new W(Zn,$r,Hi-Zn,Qn-$r)},ai=function(Te,Qe,dt,Nt,Qt,Cn,In,Ln){var Ri,Oi,Zn,Hi,$r,Qn,vt,pa,Wi,Pi,zi,er,qi,sr,Sr=dt-Te,Se=Nt-Qe,Ca=Qt-dt,Ua=Cn-Nt,Da=In-Qt,$i=Ln-Cn;for(Oi=0;Oi<41;Oi++)Wi=(vt=(Zn=Te+(Ri=Oi/40)*Sr)+Ri*(($r=dt+Ri*Ca)-Zn))+Ri*($r+Ri*(Qt+Ri*Da-$r)-vt),Pi=(pa=(Hi=Qe+Ri*Se)+Ri*((Qn=Nt+Ri*Ua)-Hi))+Ri*(Qn+Ri*(Cn+Ri*$i-Qn)-pa),0==Oi?(zi=Wi,er=Pi,qi=Wi,sr=Pi):(zi=Math.min(zi,Wi),er=Math.min(er,Pi),qi=Math.max(qi,Wi),sr=Math.max(sr,Pi));return new W(Math.round(zi),Math.round(er),Math.round(qi-zi),Math.round(sr-er))},Qi=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var dt=JSON.stringify({lineDash:this.ctx.lineDash,lineDashOffset:this.ctx.lineDashOffset});this.prevLineDash!==dt&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=dt)}}})(xr.API), 26/** 27 * @license 28 * jsPDF filters PlugIn 29 * Copyright (c) 2014 Aras Abbasi 30 * 31 * Licensed under the MIT License. 32 * http://opensource.org/licenses/mit-license 33 */ 34function(A){var y=function(D){var U,W,X,de,ve,Ae,Le,oe,at,We;for(/[^\x00-\xFF]/.test(D),W=[],X=0,de=(D+=U="\0\0\0\0".slice(D.length%4||4)).length;de>X;X+=4)0!==(ve=(D.charCodeAt(X)<<24)+(D.charCodeAt(X+1)<<16)+(D.charCodeAt(X+2)<<8)+D.charCodeAt(X+3))?(Ae=(ve=((ve=((ve=((ve=(ve-(We=ve%85))/85)-(at=ve%85))/85)-(oe=ve%85))/85)-(Le=ve%85))/85)%85,W.push(Ae+33,Le+33,oe+33,at+33,We+33)):W.push(122);return function(ht,Ve){for(var ot=Ve;ot>0;ot--)ht.pop()}(W,U.length),String.fromCharCode.apply(String,W)+"~>"},k=function(D){var U,W,X,de,ve,Ae=String,Le="length",at="charCodeAt",We="slice",ht="replace";for(D[We](-2),D=D[We](0,-2)[ht](/\s/g,"")[ht]("z","!!!!!"),X=[],de=0,ve=(D+=U="uuuuu"[We](D[Le]%5||5))[Le];ve>de;de+=5)W=52200625*(D[at](de)-33)+614125*(D[at](de+1)-33)+7225*(D[at](de+2)-33)+85*(D[at](de+3)-33)+(D[at](de+4)-33),X.push(255&W>>24,255&W>>16,255&W>>8,255&W);return function(Ve,ot){for(var Rt=ot;Rt>0;Rt--)Ve.pop()}(X,U[Le]),Ae.fromCharCode.apply(Ae,X)},P=function(D){var U=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(D=D.replace(/\s/g,"")).indexOf(">")&&(D=D.substr(0,D.indexOf(">"))),D.length%2&&(D+="0"),!1===U.test(D))return"";for(var W="",X=0;X<D.length;X+=2)W+=String.fromCharCode("0x"+(D[X]+D[X+1]));return W},N=function(D){for(var U=new Uint8Array(D.length),W=D.length;W--;)U[W]=D.charCodeAt(W);return(U=Jc(U)).reduce(function(X,de){return X+String.fromCharCode(de)},"")};A.processDataByFilters=function(D,U){var W=0,X=D||"",de=[];for("string"==typeof(U=U||[])&&(U=[U]),W=0;W<U.length;W+=1)switch(U[W]){case"ASCII85Decode":case"/ASCII85Decode":X=k(X),de.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":X=y(X),de.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":X=P(X),de.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":X=X.split("").map(function(ve){return("0"+ve.charCodeAt().toString(16)).slice(-2)}).join("")+">",de.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":X=N(X),de.push("/FlateDecode");break;default:throw new Error('The filter: "'+U[W]+'" is not implemented')}return{data:X,reverseChain:de.reverse().join(" ")}}}(xr.API), 35/** 36 * @license 37 * jsPDF fileloading PlugIn 38 * Copyright (c) 2018 Aras Abbasi ([email protected]) 39 * 40 * Licensed under the MIT License. 41 * http://opensource.org/licenses/mit-license 42 */ 43function(A){A.loadFile=function(y,k,P){return function(N,D,U){D=!1!==D,U="function"==typeof U?U:function(){};var W=void 0;try{W=function(X,de,ve){var Ae=new XMLHttpRequest,Le=0,oe=function(at){var We=at.length,ht=[],Ve=String.fromCharCode;for(Le=0;Le<We;Le+=1)ht.push(Ve(255&at.charCodeAt(Le)));return ht.join("")};if(Ae.open("GET",X,!de),Ae.overrideMimeType("text/plain; charset=x-user-defined"),!1===de&&(Ae.onload=function(){ve(200===Ae.status?oe(this.responseText):void 0)}),Ae.send(null),de&&200===Ae.status)return oe(Ae.responseText)}(N,D,U)}catch{}return W}(y,k,P)},A.loadImageFile=A.loadFile}(xr.API),function(A){function y(){return(Vr.html2canvas?Promise.resolve(Vr.html2canvas):bn.e(239).then(bn.t.bind(bn,7239,23))).catch(function(U){return Promise.reject(new Error("Could not load html2canvas: "+U))}).then(function(U){return U.default?U.default:U})}function k(){return(Vr.DOMPurify?Promise.resolve(Vr.DOMPurify):bn.e(973).then(bn.t.bind(bn,91973,23))).catch(function(U){return Promise.reject(new Error("Could not load dompurify: "+U))}).then(function(U){return U.default?U.default:U})}var P=function(U){var W=(0,E.A)(U);return"undefined"===W?"undefined":"string"===W||U instanceof String?"string":"number"===W||U instanceof Number?"number":"function"===W||U instanceof Function?"function":U&&U.constructor===Array?"array":U&&1===U.nodeType?"element":"object"===W?"object":"unknown"},N=function(U,W){var X=document.createElement(U);for(var de in W.className&&(X.className=W.className),W.innerHTML&&W.dompurify&&(X.innerHTML=W.dompurify.sanitize(W.innerHTML)),W.style)X.style[de]=W.style[de];return X},D=function U(W){var X=Object.assign(U.convert(Promise.resolve()),JSON.parse(JSON.stringify(U.template))),de=U.convert(Promise.resolve(),X);return(de=de.setProgress(1,U,1,[U])).set(W)};(D.prototype=Object.create(Promise.prototype)).constructor=D,D.convert=function(U,W){return U.__proto__=W||D.prototype,U},D.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},D.prototype.from=function(U,W){return this.then(function(){switch(W=W||function(X){switch(P(X)){case"string":return"string";case"element":return"canvas"===X.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(U)){case"string":return this.then(k).then(function(X){return this.set({src:N("div",{innerHTML:U,dompurify:X})})});case"element":return this.set({src:U});case"canvas":return this.set({canvas:U});case"img":return this.set({img:U});default:return this.error("Unknown source type.")}})},D.prototype.to=function(U){switch(U){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},D.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var U={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},W=function X(de,ve){for(var Ae=3===de.nodeType?document.createTextNode(de.nodeValue):de.cloneNode(!1),Le=de.firstChild;Le;Le=Le.nextSibling)!0!==ve&&1===Le.nodeType&&"SCRIPT"===Le.nodeName||Ae.appendChild(X(Le,ve));return 1===de.nodeType&&("CANVAS"===de.nodeName?(Ae.width=de.width,Ae.height=de.height,Ae.getContext("2d").drawImage(de,0,0)):"TEXTAREA"!==de.nodeName&&"SELECT"!==de.nodeName||(Ae.value=de.value),Ae.addEventListener("load",function(){Ae.scrollTop=de.scrollTop,Ae.scrollLeft=de.scrollLeft},!0)),Ae}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===W.tagName&&(U.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=N("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=N("div",{className:"html2pdf__container",style:U}),this.prop.container.appendChild(W),this.prop.container.firstChild.appendChild(N("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},D.prototype.toCanvas=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(y).then(function(W){var X=Object.assign({},this.opt.html2canvas);return delete X.onrendered,W(this.prop.container,X)}).then(function(W){(this.opt.html2canvas.onrendered||function(){})(W),this.prop.canvas=W,document.body.removeChild(this.prop.overlay)})},D.prototype.toContext2d=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(y).then(function(W){var X=this.opt.jsPDF,de=this.opt.fontFaces,ve="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,Ae=Object.assign({async:!0,allowTaint:!0,scale:ve,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete Ae.onrendered,X.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,X.context2d.posX=this.opt.x,X.context2d.posY=this.opt.y,X.context2d.margin=this.opt.margin,X.context2d.fontFaces=de,de)for(var Le=0;Le<de.length;++Le){var oe=de[Le],at=oe.src.find(function(We){return"truetype"===We.format});at&&X.addFont(at.url,oe.ref.name,oe.ref.style)}return Ae.windowHeight=Ae.windowHeight||0,Ae.windowHeight=0==Ae.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Ae.windowHeight,X.context2d.save(!0),W(this.prop.container,Ae)}).then(function(W){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(W),this.prop.canvas=W,document.body.removeChild(this.prop.overlay)})},D.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var U=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=U})},D.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},D.prototype.output=function(U,W,X){return"img"===(X=X||"pdf").toLowerCase()||"image"===X.toLowerCase()?this.outputImg(U,W):this.outputPdf(U,W)},D.prototype.outputPdf=function(U,W){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(U,W)})},D.prototype.outputImg=function(U){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(U){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+U+'" is not supported.'}})},D.prototype.save=function(U){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(U?{filename:U}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},D.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},D.prototype.set=function(U){if("object"!==P(U))return this;var W=Object.keys(U||{}).map(function(X){if(X in D.template.prop)return function(){this.prop[X]=U[X]};switch(X){case"margin":return this.setMargin.bind(this,U.margin);case"jsPDF":return function(){return this.opt.jsPDF=U.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,U.pageSize);default:return function(){this.opt[X]=U[X]}}},this);return this.then(function(){return this.thenList(W)})},D.prototype.get=function(U,W){return this.then(function(){var X=U in D.template.prop?this.prop[U]:this.opt[U];return W?W(X):X})},D.prototype.setMargin=function(U){return this.then(function(){switch(P(U)){case"number":U=[U,U,U,U];case"array":if(2===U.length&&(U=[U[0],U[1],U[0],U[1]]),4===U.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=U}).then(this.setPageSize)},D.prototype.setPageSize=function(U){function W(X,de){return Math.floor(X*de/72*96)}return this.then(function(){(U=U||xr.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(U.inner={width:U.width-this.opt.margin[1]-this.opt.margin[3],height:U.height-this.opt.margin[0]-this.opt.margin[2]},U.inner.px={width:W(U.inner.width,U.k),height:W(U.inner.height,U.k)},U.inner.ratio=U.inner.height/U.inner.width),this.prop.pageSize=U})},D.prototype.setProgress=function(U,W,X,de){return null!=U&&(this.progress.val=U),null!=W&&(this.progress.state=W),null!=X&&(this.progress.n=X),null!=de&&(this.progress.stack=de),this.progress.ratio=this.progress.val/this.progress.state,this},D.prototype.updateProgress=function(U,W,X,de){return this.setProgress(U?this.progress.val+U:null,W||null,X?this.progress.n+X:null,de?this.progress.stack.concat(de):null)},D.prototype.then=function(U,W){var X=this;return this.thenCore(U,W,function(de,ve){return X.updateProgress(null,null,1,[de]),Promise.prototype.then.call(this,function(Ae){return X.updateProgress(null,de),Ae}).then(de,ve).then(function(Ae){return X.updateProgress(1),Ae})})},D.prototype.thenCore=function(U,W,X){X=X||Promise.prototype.then,U&&(U=U.bind(this)),W&&(W=W.bind(this));var de=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:D.convert(Object.assign({},this),Promise.prototype),ve=X.call(de,U,W);return D.convert(ve,this.__proto__)},D.prototype.thenExternal=function(U,W){return Promise.prototype.then.call(this,U,W)},D.prototype.thenList=function(U){var W=this;return U.forEach(function(X){W=W.thenCore(X)}),W},D.prototype.catch=function(U){U&&(U=U.bind(this));var W=Promise.prototype.catch.call(this,U);return D.convert(W,this)},D.prototype.catchExternal=function(U){return Promise.prototype.catch.call(this,U)},D.prototype.error=function(U){return this.then(function(){throw new Error(U)})},D.prototype.using=D.prototype.set,D.prototype.saveAs=D.prototype.save,D.prototype.export=D.prototype.output,D.prototype.run=D.prototype.then,xr.getPageSize=function(U,W,X){if("object"===(0,E.A)(U)){var de=U;U=de.orientation,W=de.unit||W,X=de.format||X}W=W||"mm",X=X||"a4",U=(""+(U||"P")).toLowerCase();var ve,Ae=(""+X).toLowerCase(),Le={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],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(W){case"pt":ve=1;break;case"mm":ve=72/25.4;break;case"cm":ve=72/2.54;break;case"in":ve=72;break;case"px":ve=.75;break;case"pc":case"em":ve=12;break;case"ex":ve=6;break;default:throw"Invalid unit: "+W}var oe,at=0,We=0;if(Le.hasOwnProperty(Ae))at=Le[Ae][1]/ve,We=Le[Ae][0]/ve;else try{at=X[1],We=X[0]}catch{throw new Error("Invalid format: "+X)}if("p"===U||"portrait"===U)U="p",We>at&&(oe=We,We=at,at=oe);else{if("l"!==U&&"landscape"!==U)throw"Invalid orientation: "+U;U="l",at>We&&(oe=We,We=at,at=oe)}return{width:We,height:at,unit:W,k:ve,orientation:U}},A.html=function(U,W){(W=W||{}).callback=W.callback||function(){},W.html2canvas=W.html2canvas||{},W.html2canvas.canvas=W.html2canvas.canvas||this.canvas,W.jsPDF=W.jsPDF||this,W.fontFaces=W.fontFaces?W.fontFaces.map(wo):null;var X=new D(W);return W.worker?X:X.from(U).doCallback()}}(xr.API),xr.API.addJS=function(A){return Do=A,this.internal.events.subscribe("postPutResources",function(){Os=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Os+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),ks=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Do+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==Os&&void 0!==ks&&this.internal.out("/Names <</JavaScript "+Os+" 0 R>>")}),this}, 44/** 45 * @license 46 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) [email protected] 47 * 48 * Licensed under the MIT License. 49 * http://opensource.org/licenses/mit-license 50 */ 51function(A){var y;A.events.push(["postPutResources",function(){var k=this,P=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var N=k.outline.render().split(/\r\n/),D=0;D<N.length;D++){var U=N[D],W=P.exec(U);null!=W&&k.internal.newObjectDeferredBegin(W[1],!1),k.internal.write(U)}if(this.outline.createNamedDestinations){var de=this.internal.pages.length,ve=[];for(D=0;D<de;D++){var Ae=k.internal.newObject();ve.push(Ae);var Le=k.internal.getPageInfo(D+1);k.internal.write("<< /D["+Le.objId+" 0 R /XYZ null null null]>> endobj")}var oe=k.internal.newObject();for(k.internal.write("<< /Names [ "),D=0;D<ve.length;D++)k.internal.write("(page_"+(D+1)+")"+ve[D]+" 0 R");k.internal.write(" ] >>","endobj"),y=k.internal.newObject(),k.internal.write("<< /Dests "+oe+" 0 R"),k.internal.write(">>","endobj")}}]),A.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+y+" 0 R"))}]),A.events.push(["initialized",function(){var k=this;k.outline={createNamedDestinations:!1,root:{children:[]}},k.outline.add=function(P,N,D){var U={title:N,options:D,children:[]};return null==P&&(P=this.root),P.children.push(U),U},k.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=k,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},k.outline.genIds_r=function(P){P.id=k.internal.newObjectDeferred();for(var N=0;N<P.children.length;N++)this.genIds_r(P.children[N])},k.outline.renderRoot=function(P){this.objStart(P),this.line("/Type /Outlines"),P.children.length>0&&(this.line("/First "+this.makeRef(P.children[0])),this.line("/Last "+this.makeRef(P.children[P.children.length-1]))),this.line("/Count "+this.count_r({count:0},P)),this.objEnd()},k.outline.renderItems=function(P){for(var N=this.ctx.pdf.internal.getVerticalCoordinateString,D=0;D<P.children.length;D++){var U=P.children[D];this.objStart(U),this.line("/Title "+this.makeString(U.title)),this.line("/Parent "+this.makeRef(P)),D>0&&this.line("/Prev "+this.makeRef(P.children[D-1])),D<P.children.length-1&&this.line("/Next "+this.makeRef(P.children[D+1])),U.children.length>0&&(this.line("/First "+this.makeRef(U.children[0])),this.line("/Last "+this.makeRef(U.children[U.children.length-1])));var W=this.count=this.count_r({count:0},U);if(W>0&&this.line("/Count "+W),U.options&&U.options.pageNumber){var X=k.internal.getPageInfo(U.options.pageNumber);this.line("/Dest ["+X.objId+" 0 R /XYZ 0 "+N(0)+" 0]")}this.objEnd()}for(var de=0;de<P.children.length;de++)this.renderItems(P.children[de])},k.outline.line=function(P){this.ctx.val+=P+"\r\n"},k.outline.makeRef=function(P){return P.id+" 0 R"},k.outline.makeString=function(P){return"("+k.internal.pdfEscape(P)+")"},k.outline.objStart=function(P){this.ctx.val+="\r\n"+P.id+" 0 obj\r\n<<\r\n"},k.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},k.outline.count_r=function(P,N){for(var D=0;D<N.children.length;D++)P.count++,this.count_r(P,N.children[D]);return P.count}}])}(xr.API), 52/** 53 * @license 54 * 55 * Licensed under the MIT License. 56 * http://opensource.org/licenses/mit-license 57 */ 58function(A){var y=[192,193,194,195,196,197,198,199];A.processJPEG=function(k,P,N,D,U,W){var X,de=this.decode.DCT_DECODE,ve=null;if("string"==typeof k||this.__addimage__.isArrayBuffer(k)||this.__addimage__.isArrayBufferView(k)){switch(k=this.__addimage__.isArrayBuffer(k=U||k)?new Uint8Array(k):k,(X=function(Ae){for(var Le,oe=256*Ae.charCodeAt(4)+Ae.charCodeAt(5),at=Ae.length,We={width:0,height:0,numcomponents:1},ht=4;ht<at;ht+=2){if(-1!==y.indexOf(Ae.charCodeAt((ht+=oe)+1))){Le=256*Ae.charCodeAt(ht+5)+Ae.charCodeAt(ht+6),We={width:256*Ae.charCodeAt(ht+7)+Ae.charCodeAt(ht+8),height:Le,numcomponents:Ae.charCodeAt(ht+9)};break}oe=256*Ae.charCodeAt(ht+2)+Ae.charCodeAt(ht+3)}return We}(k=this.__addimage__.isArrayBufferView(k)?this.__addimage__.arrayBufferToBinaryString(k):k)).numcomponents){case 1:W=this.color_spaces.DEVICE_GRAY;break;case 4:W=this.color_spaces.DEVICE_CMYK;break;case 3:W=this.color_spaces.DEVICE_RGB}ve={data:k,width:X.width,height:X.height,colorSpace:W,bitsPerComponent:8,filter:de,index:P,alias:N}}return ve}}(xr.API);var Br,cc,ya,Bu,ss,Kd=function(){var A,y,k;function P(D){var U,X,de,ve,Ae,Le,oe,at,We,ht,Ve,ot,Rt;for(this.data=D,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},Ae=null;;){switch(U=this.readUInt32(),at=function(){var Jt,An;for(An=[],Jt=0;Jt<4;++Jt)An.push(String.fromCharCode(this.data[this.pos++]));return An}.call(this).join("")){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"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(U);break;case"fcTL":Ae&&this.animation.frames.push(Ae),this.pos+=4,Ae={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},ve=this.readUInt16(),de=this.readUInt16()||100,Ae.delay=1e3*ve/de,Ae.disposeOp=this.data[this.pos++],Ae.blendOp=this.data[this.pos++],Ae.data=[];break;case"IDAT":case"fdAT":for("fdAT"===at&&(this.pos+=4,U-=4),D=Ae?.data||this.imgData,Ve=0;0<=U?Ve<U:Ve>U;0<=U?++Ve:--Ve)D.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(X=this.palette.length/3,this.transparency.indexed=this.read(U),this.transparency.indexed.length>X)throw new Error("More transparent colors than palette size");if((We=X-this.transparency.indexed.length)>0)for(ot=0;0<=We?ot<We:ot>We;0<=We?++ot:--ot)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(U)[0];break;case 2:this.transparency.rgb=this.read(U)}break;case"tEXt":Le=(ht=this.read(U)).indexOf(0),oe=String.fromCharCode.apply(String,ht.slice(0,Le)),this.text[oe]=String.fromCharCode.apply(String,ht.slice(Le+1));break;case"IEND":return Ae&&this.animation.frames.push(Ae),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(Rt=this.colorType)||6===Rt,this.pixelBitlength=this.bits*(this.colors+(this.hasAlphaChannel?1:0)),this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=U}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}P.prototype.read=function(D){var U,W;for(W=[],U=0;0<=D?U<D:U>D;0<=D?++U:--U)W.push(this.data[this.pos++]);return W},P.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},P.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},P.prototype.decodePixels=function(D){var U=this.pixelBitlength/8,W=new Uint8Array(this.width*this.height*U),X=0,de=this;if(null==D&&(D=this.imgData),0===D.length)return new Uint8Array(0);function ve(Ae,Le,oe,at){var We,ht,Ve,ot,Rt,Jt,An,hi,At,qn,ii,He,$e,jt,kt,On,Dn,Xn,xn,oi,ai=Math.ceil((de.width-Ae)/oe),Qi=Math.ceil((de.height-Le)/at),Te=de.width==ai&&de.height==Qi;for($e=U*ai,ii=Te?W:new Uint8Array($e*Qi),Jt=D.length,He=0,ht=0;He<Qi&&X<Jt;){switch(D[X++]){case 0:for(ot=On=0;On<$e;ot=On+=1)ii[ht++]=D[X++];break;case 1:for(ot=Dn=0;Dn<$e;ot=Dn+=1)We=D[X++],Rt=ot<U?0:ii[ht-U],ii[ht++]=(We+Rt)%256;break;case 2:for(ot=Xn=0;Xn<$e;ot=Xn+=1)We=D[X++],Ve=(ot-ot%U)/U,ii[ht++]=((jt=He&&ii[(He-1)*$e+Ve*U+ot%U])+We)%256;break;case 3:for(ot=xn=0;xn<$e;ot=xn+=1)We=D[X++],Ve=(ot-ot%U)/U,Rt=ot<U?0:ii[ht-U],jt=He&&ii[(He-1)*$e+Ve*U+ot%U],ii[ht++]=(We+Math.floor((Rt+jt)/2))%256;break;case 4:for(ot=oi=0;oi<$e;ot=oi+=1)We=D[X++],Ve=(ot-ot%U)/U,0===He?jt=kt=0:(jt=ii[(He-1)*$e+Ve*U+ot%U],kt=Ve&&ii[(He-1)*$e+(Ve-1)*U+ot%U]),An=(Rt=ot<U?0:ii[ht-U])+jt-kt,hi=Math.abs(An-Rt),At=Math.abs(An-jt),qn=Math.abs(An-kt),ii[ht++]=(We+(hi<=At&&hi<=qn?Rt:At<=qn?jt:kt))%256;break;default:throw new Error("Invalid filter algorithm: "+D[X-1])}if(!Te){var Qe=((Le+He*at)*de.width+Ae)*U,dt=He*$e;for(ot=0;ot<ai;ot+=1){for(var Nt=0;Nt<U;Nt+=1)W[Qe++]=ii[dt++];Qe+=(oe-1)*U}}He++}}return D=Qo(D),1==de.interlaceMethod?(ve(0,0,8,8),ve(4,0,8,8),ve(0,4,4,8),ve(2,0,4,4),ve(0,2,2,4),ve(1,0,2,2),ve(0,1,1,2)):ve(0,0,1,1),W},P.prototype.decodePalette=function(){var D,U,W,X,de,ve,Ae,Le,oe;for(W=this.palette,ve=this.transparency.indexed||[],de=new Uint8Array((ve.length||0)+W.length),X=0,D=0,U=Ae=0,Le=W.length;Ae<Le;U=Ae+=3)de[X++]=W[U],de[X++]=W[U+1],de[X++]=W[U+2],de[X++]=null!=(oe=ve[D++])?oe:255;return de},P.prototype.copyToImageData=function(D,U){var W,X,de,ve,Ae,Le,oe,at,We,ht,Ve;if(X=this.colors,We=null,W=this.hasAlphaChannel,this.palette.length&&(We=null!=(Ve=this._decodedPalette)?Ve:this._decodedPalette=this.decodePalette(),X=4,W=!0),at=(de=D.data||D).length,Ae=We||U,ve=Le=0,1===X)for(;ve<at;)oe=We?4*U[ve/4]:Le,ht=Ae[oe++],de[ve++]=ht,de[ve++]=ht,de[ve++]=ht,de[ve++]=W?Ae[oe++]:255,Le=oe;else for(;ve<at;)oe=We?4*U[ve/4]:Le,de[ve++]=Ae[oe++],de[ve++]=Ae[oe++],de[ve++]=Ae[oe++],de[ve++]=W?Ae[oe++]:255,Le=oe},P.prototype.decode=function(){var D;return D=new Uint8Array(this.width*this.height*4),this.copyToImageData(D,this.decodePixels()),D};var N=function(){if("[object Window]"===Object.prototype.toString.call(Vr)){try{y=Vr.document.createElement("canvas"),k=y.getContext("2d")}catch{return!1}return!0}return!1};return N(),A=function(D){var U;if(!0===N())return k.width=D.width,k.height=D.height,k.clearRect(0,0,D.width,D.height),k.putImageData(D,0,0),(U=new Image).src=y.toDataURL(),U;throw new Error("This method requires a Browser with Canvas-capability.")},P.prototype.decodeFrames=function(D){var U,W,X,de,ve,Ae,Le,oe;if(this.animation){for(oe=[],W=ve=0,Ae=(Le=this.animation.frames).length;ve<Ae;W=++ve)X=D.createImageData((U=Le[W]).width,U.height),de=this.decodePixels(new Uint8Array(U.data)),this.copyToImageData(X,de),U.imageData=X,oe.push(U.image=A(X));return oe}},P.prototype.renderFrame=function(D,U){var W,X,de;return W=(X=this.animation.frames)[U],de=X[U-1],0===U&&D.clearRect(0,0,this.width,this.height),1===de?.disposeOp?D.clearRect(de.xOffset,de.yOffset,de.width,de.height):2===de?.disposeOp&&D.putImageData(de.imageData,de.xOffset,de.yOffset),0===W.blendOp&&D.clearRect(W.xOffset,W.yOffset,W.width,W.height),D.drawImage(W.image,W.xOffset,W.yOffset)},P.prototype.animate=function(D){var U,W,X,de,ve,Ae,Le=this;return W=0,de=(Ae=this.animation).numFrames,X=Ae.frames,ve=Ae.numPlays,(U=function(){var oe,at;if(oe=W++%de,at=X[oe],Le.renderFrame(D,oe),de>1&&W/de<ve)return Le.animation._timeout=setTimeout(U,at.delay)})()},P.prototype.stopAnimation=function(){var D;return clearTimeout(null!=(D=this.animation)?D._timeout:void 0)},P.prototype.render=function(D){var U,W;return D._png&&D._png.stopAnimation(),D._png=this,D.width=this.width,D.height=this.height,U=D.getContext("2d"),this.animation?(this.decodeFrames(U),this.animate(U)):(W=U.createImageData(this.width,this.height),this.copyToImageData(W,this.decodePixels()),U.putImageData(W,0,0))},P}();function yd(A){var y=0;if(71!==A[y++]||73!==A[y++]||70!==A[y++]||56!==A[y++]||56!=(A[y++]+1&253)||97!==A[y++])throw new Error("Invalid GIF 87a/89a header.");var k=A[y++]|A[y++]<<8,P=A[y++]|A[y++]<<8,N=A[y++],U=1<<1+(7&N);y++,y++;var W=null,X=null;N>>7&&(W=y,X=U,y+=3*U);var de=!0,ve=[],Ae=0,Le=null,oe=0,at=null;for(this.width=k,this.height=P;de&&y<A.length;)switch(A[y++]){case 33:switch(A[y++]){case 255:if(11!==A[y]||78==A[y+1]&&69==A[y+2]&&84==A[y+3]&&83==A[y+4]&&67==A[y+5]&&65==A[y+6]&&80==A[y+7]&&69==A[y+8]&&50==A[y+9]&&46==A[y+10]&&48==A[y+11]&&3==A[y+12]&&1==A[y+13]&&0==A[y+16])y+=14,at=A[y++]|A[y++]<<8,y++;else for(y+=12;;){if(!((He=A[y++])>=0))throw Error("Invalid block size");if(0===He)break;y+=He}break;case 249:if(4!==A[y++]||0!==A[y+4])throw new Error("Invalid graphics extension block.");var We=A[y++];Ae=A[y++]|A[y++]<<8,Le=A[y++],!(1&We)&&(Le=null),oe=We>>2&7,y++;break;case 254:for(;;){if(!((He=A[y++])>=0))throw Error("Invalid block size");if(0===He)break;y+=He}break;default:throw new Error("Unknown graphic control label: 0x"+A[y-1].toString(16))}break;case 44:var ht=A[y++]|A[y++]<<8,Ve=A[y++]|A[y++]<<8,ot=A[y++]|A[y++]<<8,Rt=A[y++]|A[y++]<<8,Jt=A[y++],An=Jt>>6&1,hi=1<<1+(7&Jt),mn=W,At=X,qn=!1;Jt>>7&&(qn=!0,mn=y,At=hi,y+=3*hi);var ii=y;for(y++;;){var He;if(!((He=A[y++])>=0))throw Error("Invalid block size");if(0===He)break;y+=He}ve.push({x:ht,y:Ve,width:ot,height:Rt,has_local_palette:qn,palette_offset:mn,palette_size:At,data_offset:ii,data_length:y-ii,transparent_index:Le,interlaced:!!An,delay:Ae,disposal:oe});break;case 59:de=!1;break;default:throw new Error("Unknown gif block: 0x"+A[y-1].toString(16))}this.numFrames=function(){return ve.length},this.loopCount=function(){return at},this.frameInfo=function($e){if($e<0||$e>=ve.length)throw new Error("Frame index out of range.");return ve[$e]},this.decodeAndBlitFrameBGRA=function($e,jt){var kt=this.frameInfo($e),On=kt.width*kt.height,Dn=new Uint8Array(On);Zf(A,kt.data_offset,Dn,On);var Xn=kt.palette_offset,xn=kt.transparent_index;null===xn&&(xn=256);var oi=kt.width,ai=k-oi,Qi=oi,Te=4*(kt.y*k+kt.x),Qe=4*((kt.y+kt.height)*k+kt.x),dt=Te,Nt=4*ai;!0===kt.interlaced&&(Nt+=4*k*7);for(var Qt=8,Cn=0,In=Dn.length;Cn<In;++Cn){var Ln=Dn[Cn];if(0===Qi&&(Qi=oi,(dt+=Nt)>=Qe&&(Nt=4*ai+4*k*(Qt-1),dt=Te+(oi+ai)*(Qt<<1),Qt>>=1)),Ln===xn)dt+=4;else{var Ri=A[Xn+3*Ln],Oi=A[Xn+3*Ln+1];jt[dt++]=A[Xn+3*Ln+2],jt[dt++]=Oi,jt[dt++]=Ri,jt[dt++]=255}--Qi}},this.decodeAndBlitFrameRGBA=function($e,jt){var kt=this.frameInfo($e),On=kt.width*kt.height,Dn=new Uint8Array(On);Zf(A,kt.data_offset,Dn,On);var Xn=kt.palette_offset,xn=kt.transparent_index;null===xn&&(xn=256);var oi=kt.width,ai=k-oi,Qi=oi,Te=4*(kt.y*k+kt.x),Qe=4*((kt.y+kt.height)*k+kt.x),dt=Te,Nt=4*ai;!0===kt.interlaced&&(Nt+=4*k*7);for(var Qt=8,Cn=0,In=Dn.length;Cn<In;++Cn){var Ln=Dn[Cn];if(0===Qi&&(Qi=oi,(dt+=Nt)>=Qe&&(Nt=4*ai+4*k*(Qt-1),dt=Te+(oi+ai)*(Qt<<1),Qt>>=1)),Ln===xn)dt+=4;else{var Oi=A[Xn+3*Ln+1],Zn=A[Xn+3*Ln+2];jt[dt++]=A[Xn+3*Ln],jt[dt++]=Oi,jt[dt++]=Zn,jt[dt++]=255}--Qi}}}function Zf(A,y,k,P){for(var N=A[y++],D=1<<N,U=D+1,W=U+1,X=N+1,de=(1<<X)-1,ve=0,Ae=0,Le=0,oe=A[y++],at=new Int32Array(4096),We=null;;){for(;ve<16&&0!==oe;)Ae|=A[y++]<<ve,ve+=8,1===oe?oe=A[y++]:--oe;if(ve<X)break;var ht=Ae&de;if(Ae>>=X,ve-=X,ht!==D){if(ht===U)break;for(var Ve=ht<W?ht:We,ot=0,Rt=Ve;Rt>D;)Rt=at[Rt]>>8,++ot;var Jt=Rt;if(Le+ot+(Ve!==ht?1:0)>P)return void ro.log("Warning, gif stream longer than expected.");k[Le++]=Jt;var An=Le+=ot;for(Ve!==ht&&(k[Le++]=Jt),Rt=Ve;ot--;)k[--An]=255&(Rt=at[Rt]),Rt>>=8;null!==We&&W<4096&&(at[W++]=We<<8|Jt,W>=de+1&&X<12&&(++X,de=de<<1|1)),We=ht}else W=U+1,de=(1<<(X=N+1))-1,We=null}return Le!==P&&ro.log("Warning, gif stream shorter than expected."),k}function rd(A){var y,k,P,N,D,U=Math.floor,W=new Array(64),X=new Array(64),de=new Array(64),ve=new Array(64),Ae=new Array(65535),Le=new Array(65535),oe=new Array(64),at=new Array(64),We=[],ht=0,Ve=7,ot=new Array(64),Rt=new Array(64),Jt=new Array(64),An=new Array(256),hi=new Array(2048),mn=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],At=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],qn=[0,1,2,3,4,5,6,7,8,9,10,11],ii=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],He=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],$e=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],jt=[0,1,2,3,4,5,6,7,8,9,10,11],kt=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],On=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function Dn(Te,Qe){for(var dt=0,Nt=0,Qt=new Array,Cn=1;Cn<=16;Cn++){for(var In=1;In<=Te[Cn];In++)Qt[Qe[Nt]]=[],Qt[Qe[Nt]][0]=dt,Qt[Qe[Nt]][1]=Cn,Nt++,dt++;dt*=2}return Qt}function Xn(Te){for(var Qe=Te[0],dt=Te[1]-1;dt>=0;)Qe&1<<dt&&(ht|=1<<Ve),dt--,--Ve<0&&(255==ht?(xn(255),xn(0)):xn(ht),Ve=7,ht=0)}function xn(Te){We.push(Te)}function oi(Te){xn(Te>>8&255),xn(255&Te)}function ai(Te,Qe,dt,Nt,Qt){for(var Cn,In=Qt[0],Ln=Qt[240],Ri=function(Pi,zi){var er,qi,sr,Sr,Se,Ca,Ua,Da,$i,Aa,lr=0;for($i=0;$i<8;++$i){var Ds=(er=Pi[lr])+(Da=Pi[lr+7]),Mr=er-Da,Zl=(qi=Pi[lr+1])+(Ua=Pi[lr+6]),Kr=qi-Ua,ha=(sr=Pi[lr+2])+(Ca=Pi[lr+5]),Ws=sr-Ca,Fo=(Sr=Pi[lr+3])+(Se=Pi[lr+4]),$s=Sr-Se,Is=Ds+Fo,od=Ds-Fo,pu=Zl+ha,js=Zl-ha;Pi[lr]=Is+pu,Pi[lr+4]=Is-pu;var qr=.707106781*(js+od);Pi[lr+2]=od+qr,Pi[lr+6]=od-qr;var ja=.382683433*((Is=$s+Ws)-(js=Kr+Mr)),ts=.5411961*Is+ja,Io=1.306562965*js+ja,Zd=.707106781*(pu=Ws+Kr),Qd=Mr+Zd,Ii=Mr-Zd;Pi[lr+5]=Ii+ts,Pi[lr+3]=Ii-ts,Pi[lr+1]=Qd+Io,Pi[lr+7]=Qd-Io,lr+=8}for(lr=0,$i=0;$i<8;++$i){var yl=(er=Pi[lr])+(Da=Pi[lr+56]),Cd=er-Da,Cl=(qi=Pi[lr+8])+(Ua=Pi[lr+48]),Gr=qi-Ua,cl=(sr=Pi[lr+16])+(Ca=Pi[lr+40]),Cc=sr-Ca,qs=(Sr=Pi[lr+24])+(Se=Pi[lr+32]),Ao=Sr-Se,kd=yl+qs,sd=yl-qs,Xr=Cl+cl,kl=Cl-cl;Pi[lr]=kd+Xr,Pi[lr+32]=kd-Xr;var dl=.707106781*(kl+sd);Pi[lr+16]=sd+dl,Pi[lr+48]=sd-dl;var Ql=.382683433*((kd=Ao+Cc)-(kl=Gr+Cd)),Ra=.5411961*kd+Ql,eu=1.306562965*kl+Ql,kc=.707106781*(Xr=Cc+Gr),Ja=Cd+kc,Vu=Cd-kc;Pi[lr+40]=Vu+Ra,Pi[lr+24]=Vu-Ra,Pi[lr+8]=Ja+eu,Pi[lr+56]=Ja-eu,lr++}for($i=0;$i<64;++$i)oe[$i]=(Aa=Pi[$i]*zi[$i])>0?Aa+.5|0:Aa-.5|0;return oe}(Te,Qe),Oi=0;Oi<64;++Oi)at[mn[Oi]]=Ri[Oi];var Zn=at[0]-dt;dt=at[0],0==Zn?Xn(Nt[0]):(Xn(Nt[Le[Cn=32767+Zn]]),Xn(Ae[Cn]));for(var Hi=63;Hi>0&&0==at[Hi];)Hi--;if(0==Hi)return Xn(In),dt;for(var $r,Qn=1;Qn<=Hi;){for(var vt=Qn;0==at[Qn]&&Qn<=Hi;)++Qn;var pa=Qn-vt;if(pa>=16){$r=pa>>4;for(var Wi=1;Wi<=$r;++Wi)Xn(Ln);pa&=15}Xn(Qt[(pa<<4)+Le[Cn=32767+at[Qn]]]),Xn(Ae[Cn]),Qn++}return 63!=Hi&&Xn(In),dt}function Qi(Te){Te=Math.min(Math.max(Te,1),100),D!=Te&&(function(Qe){for(var dt=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],Nt=0;Nt<64;Nt++){var Qt=U((dt[Nt]*Qe+50)/100);Qt=Math.min(Math.max(Qt,1),255),W[mn[Nt]]=Qt}for(var Cn=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],In=0;In<64;In++){var Ln=U((Cn[In]*Qe+50)/100);Ln=Math.min(Math.max(Ln,1),255),X[mn[In]]=Ln}for(var Ri=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Oi=0,Zn=0;Zn<8;Zn++)for(var Hi=0;Hi<8;Hi++)de[Oi]=1/(W[mn[Oi]]*Ri[Zn]*Ri[Hi]*8),ve[Oi]=1/(X[mn[Oi]]*Ri[Zn]*Ri[Hi]*8),Oi++}(Te<50?Math.floor(5e3/Te):Math.floor(200-2*Te)),D=Te)}this.encode=function(Te,Qe){var qi,sr;Qe&&Qi(Qe),We=new Array,ht=0,Ve=7,oi(65496),oi(65504),oi(16),xn(74),xn(70),xn(73),xn(70),xn(0),xn(1),xn(1),xn(0),oi(1),oi(1),xn(0),xn(0),function(){oi(65499),oi(132),xn(0);for(var qi=0;qi<64;qi++)xn(W[qi]);xn(1);for(var sr=0;sr<64;sr++)xn(X[sr])}(),qi=Te.width,sr=Te.height,oi(65472),oi(17),xn(8),oi(sr),oi(qi),xn(3),xn(1),xn(17),xn(0),xn(2),xn(17),xn(1),xn(3),xn(17),xn(1),function(){oi(65476),oi(418),xn(0);for(var qi=0;qi<16;qi++)xn(At[qi+1]);for(var sr=0;sr<=11;sr++)xn(qn[sr]);xn(16);for(var Sr=0;Sr<16;Sr++)xn(ii[Sr+1]);for(var Se=0;Se<=161;Se++)xn(He[Se]);xn(1);for(var Ca=0;Ca<16;Ca++)xn($e[Ca+1]);for(var Ua=0;Ua<=11;Ua++)xn(jt[Ua]);xn(17);for(var Da=0;Da<16;Da++)xn(kt[Da+1]);for(var $i=0;$i<=161;$i++)xn(On[$i])}(),oi(65498),oi(12),xn(3),xn(1),xn(0),xn(2),xn(17),xn(3),xn(17),xn(0),xn(63),xn(0);var dt=0,Nt=0,Qt=0;ht=0,Ve=7,this.encode.displayName="_encode_";for(var Cn,In,Ln,Ri,Oi,Zn,Hi,$r,Qn,vt=Te.data,Wi=Te.height,Pi=4*Te.width,zi=0;zi<Wi;){for(Cn=0;Cn<Pi;){for(Oi=Pi*zi+Cn,Hi=-1,$r=0,Qn=0;Qn<64;Qn++)Zn=Oi+($r=Qn>>3)*Pi+(Hi=4*(7&Qn)),zi+$r>=Wi&&(Zn-=Pi*(zi+1+$r-Wi)),Cn+Hi>=Pi&&(Zn-=Cn+Hi-Pi+4),In=vt[Zn++],Ln=vt[Zn++],Ri=vt[Zn++],ot[Qn]=(hi[In]+hi[Ln+256|0]+hi[Ri+512|0]>>16)-128,Rt[Qn]=(hi[In+768|0]+hi[Ln+1024|0]+hi[Ri+1280|0]>>16)-128,Jt[Qn]=(hi[In+1280|0]+hi[Ln+1536|0]+hi[Ri+1792|0]>>16)-128;dt=ai(ot,de,dt,y,P),Nt=ai(Rt,ve,Nt,k,N),Qt=ai(Jt,ve,Qt,k,N),Cn+=32}zi+=8}if(Ve>=0){var er=[];er[1]=Ve+1,er[0]=(1<<Ve+1)-1,Xn(er)}return oi(65497),new Uint8Array(We)},A=A||50,function(){for(var Te=String.fromCharCode,Qe=0;Qe<256;Qe++)An[Qe]=Te(Qe)}(),y=Dn(At,qn),k=Dn($e,jt),P=Dn(ii,He),N=Dn(kt,On),function(){for(var Te=1,Qe=2,dt=1;dt<=15;dt++){for(var Nt=Te;Nt<Qe;Nt++)Le[32767+Nt]=dt,Ae[32767+Nt]=[],Ae[32767+Nt][1]=dt,Ae[32767+Nt][0]=Nt;for(var Qt=-(Qe-1);Qt<=-Te;Qt++)Le[32767+Qt]=dt,Ae[32767+Qt]=[],Ae[32767+Qt][1]=dt,Ae[32767+Qt][0]=Qe-1+Qt;Te<<=1,Qe<<=1}}(),function(){for(var Te=0;Te<256;Te++)hi[Te]=19595*Te,hi[Te+256|0]=38470*Te,hi[Te+512|0]=7471*Te+32768,hi[Te+768|0]=-11059*Te,hi[Te+1024|0]=-21709*Te,hi[Te+1280|0]=32768*Te+8421375,hi[Te+1536|0]=-27439*Te,hi[Te+1792|0]=-5329*Te}(),Qi(A)}function da(A,y){if(this.pos=0,this.buffer=A,this.datav=new DataView(A.buffer),this.is_with_alpha=!!y,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function df(A){function y(At){if(!At)throw Error("assert :P")}function k(At,qn,ii){for(var He=0;4>He;He++)if(At[qn+He]!=ii.charCodeAt(He))return!0;return!1}function P(At,qn,ii,He,$e){for(var jt=0;jt<$e;jt++)At[qn+jt]=ii[He+jt]}function N(At,qn,ii,He){for(var $e=0;$e<He;$e++)At[qn+$e]=ii}function D(At){return new Int32Array(At)}function U(At,qn){for(var ii=[],He=0;He<At;He++)ii.push(new qn);return ii}function W(At,qn){var ii=[];return function He($e,jt,kt){for(var On=kt[jt],Dn=0;Dn<On&&($e.push(kt.length>jt+1?[]:new qn),!(kt.length<jt+1));Dn++)He($e[Dn],jt+1,kt)}(ii,0,At),ii}var X=function(){var At=this;function qn(F,M){for(var Y=1<<M-1>>>0;F&Y;)Y>>>=1;return Y?(F&Y-1)+Y:F}function ii(F,M,Y,ae,ye){y(!(ae%Y));do{F[M+(ae-=Y)]=ye}while(0<ae)}function He(F,M,Y,ae,ye){if(y(2328>=ye),512>=ye)var Pe=D(512);else if(null==(Pe=D(ye)))return 0;return function(Me,Re,Ge,et,Yt,gn){var pn,Kt,fi=Re,Bn=1<<Ge,Bt=D(16),Ht=D(16);for(y(0!=Yt),y(null!=et),y(null!=Me),y(0<Ge),Kt=0;Kt<Yt;++Kt){if(15<et[Kt])return 0;++Bt[et[Kt]]}if(Bt[0]==Yt)return 0;for(Ht[1]=0,pn=1;15>pn;++pn){if(Bt[pn]>1<<pn)return 0;Ht[pn+1]=Ht[pn]+Bt[pn]}for(Kt=0;Kt<Yt;++Kt)pn=et[Kt],0<et[Kt]&&(gn[Ht[pn]++]=Kt);if(1==Ht[15])return(et=new $e).g=0,et.value=gn[0],ii(Me,fi,1,Bn,et),Bn;var ci,wi=-1,di=Bn-1,br=0,Ji=1,na=1,ir=1<<Ge;for(Kt=0,pn=1,Yt=2;pn<=Ge;++pn,Yt<<=1){if(Ji+=na<<=1,0>(na-=Bt[pn]))return 0;for(;0<Bt[pn];--Bt[pn])(et=new $e).g=pn,et.value=gn[Kt++],ii(Me,fi+br,Yt,ir,et),br=qn(br,pn)}for(pn=Ge+1,Yt=2;15>=pn;++pn,Yt<<=1){if(Ji+=na<<=1,0>(na-=Bt[pn]))return 0;for(;0<Bt[pn];--Bt[pn]){if(et=new $e,(br&di)!=wi){for(fi+=ir,ci=1<<(wi=pn)-Ge;15>wi&&!(0>=(ci-=Bt[wi]));)++wi,ci<<=1;Bn+=ir=1<<(ci=wi-Ge),Me[Re+(wi=br&di)].g=ci+Ge,Me[Re+wi].value=fi-Re-wi}et.g=pn-Ge,et.value=gn[Kt++],ii(Me,fi+(br>>Ge),Yt,ir,et),br=qn(br,pn)}}return Ji!=2*Ht[15]-1?0:Bn}(F,M,Y,ae,ye,Pe)}function $e(){this.value=this.g=0}function jt(){this.value=this.g=0}function kt(){this.G=U(5,$e),this.H=D(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=U(Tc,jt)}function On(F,M,Y,ae){y(null!=F),y(null!=M),y(2147483648>ae),F.Ca=254,F.I=0,F.b=-8,F.Ka=0,F.oa=M,F.pa=Y,F.Jd=M,F.Yc=Y+ae,F.Zc=4<=ae?Y+ae-4+1:Y,Cn(F)}function Dn(F,M){for(var Y=0;0<M--;)Y|=Ln(F,128)<<M;return Y}function Xn(F,M){var Y=Dn(F,M);return In(F)?-Y:Y}function xn(F,M,Y,ae){var ye,Pe=0;for(y(null!=F),y(null!=M),y(4294967288>ae),F.Sb=ae,F.Ra=0,F.u=0,F.h=0,4<ae&&(ae=4),ye=0;ye<ae;++ye)Pe+=M[Y+ye]<<8*ye;F.Ra=Pe,F.bb=ae,F.oa=M,F.pa=Y}function oi(F){for(;8<=F.u&&F.bb<F.Sb;)F.Ra>>>=8,F.Ra+=F.oa[F.pa+F.bb]<<dd-8>>>0,++F.bb,F.u-=8;dt(F)&&(F.h=1,F.u=0)}function ai(F,M){if(y(0<=M),!F.h&&M<=sp){var Y=Qe(F)&$u[M];return F.u+=M,oi(F),Y}return F.h=1,F.u=0}function Qi(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Te(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function Qe(F){return F.Ra>>>(F.u&dd-1)>>>0}function dt(F){return y(F.bb<=F.Sb),F.h||F.bb==F.Sb&&F.u>dd}function Nt(F,M){F.u=M,F.h=dt(F)}function Qt(F){F.u>=_f&&(y(F.u>=_f),oi(F))}function Cn(F){y(null!=F&&null!=F.oa),F.pa<F.Zc?(F.I=(F.oa[F.pa++]|F.I<<8)>>>0,F.b+=8):(y(null!=F&&null!=F.oa),F.pa<F.Yc?(F.b+=8,F.I=F.oa[F.pa++]|F.I<<8):F.Ka?F.b=0:(F.I<<=8,F.b+=8,F.Ka=1))}function In(F){return Dn(F,1)}function Ln(F,M){var Y=F.Ca;0>F.b&&Cn(F);var ae=F.b,ye=Y*M>>>8,Pe=(F.I>>>ae>ye)+0;for(Pe?(Y-=ye,F.I-=ye+1<<ae>>>0):Y=ye+1,ae=Y,ye=0;256<=ae;)ye+=8,ae>>=8;return F.b-=ae=7^ye+Sc[ae],F.Ca=(Y<<ae)-1,Pe}function Ri(F,M,Y){F[M+0]=Y>>24&255,F[M+1]=Y>>16&255,F[M+2]=Y>>8&255,F[M+3]=255&Y}function Oi(F,M){return F[M+0]|F[M+1]<<8}function Zn(F,M){return Oi(F,M)|F[M+2]<<16}function Hi(F,M){return Oi(F,M)|Oi(F,M+2)<<16}function $r(F,M){var Y=1<<M;return y(null!=F),y(0<M),F.X=D(Y),null==F.X?0:(F.Mb=32-M,F.Xa=M,1)}function Qn(F,M){y(null!=F),y(null!=M),y(F.Xa==M.Xa),P(M.X,0,F.X,0,1<<M.Xa)}function vt(){this.X=[],this.Xa=this.Mb=0}function pa(F,M,Y,ae){y(null!=Y),y(null!=ae);var ye=Y[0],Pe=ae[0];return 0==ye&&(ye=(F*Pe+M/2)/M),0==Pe&&(Pe=(M*ye+F/2)/F),0>=ye||0>=Pe?0:(Y[0]=ye,ae[0]=Pe,1)}function Wi(F,M){return F+(1<<M)-1>>>M}function Pi(F,M){return((4278255360&F)+(4278255360&M)>>>0&4278255360)+((16711935&F)+(16711935&M)>>>0&16711935)>>>0}function zi(F,M){At[M]=function(Y,ae,ye,Pe,Me,Re,Ge){var et;for(et=0;et<Me;++et){var Yt=At[F](Re[Ge+et-1],ye,Pe+et);Re[Ge+et]=Pi(Y[ae+et],Yt)}}}function er(){this.ud=this.hd=this.jd=0}function qi(F,M){return((4278124286&(F^M))>>>1)+(F&M)>>>0}function sr(F){return 0<=F&&256>F?F:0>F?0:255<F?255:void 0}function Sr(F,M){return sr(F+(F-M+.5>>1))}function Se(F,M,Y){return Math.abs(M-Y)-Math.abs(F-Y)}function Ca(F,M,Y,ae,ye,Pe,Me){for(ae=Pe[Me-1],Y=0;Y<ye;++Y)Pe[Me+Y]=ae=Pi(F[M+Y],ae)}function Ua(F,M,Y,ae,ye){var Pe;for(Pe=0;Pe<Y;++Pe){var Me=F[M+Pe],Re=Me>>8&255,Ge=16711935&(Ge=(Ge=16711935&Me)+((Re<<16)+Re));ae[ye+Pe]=(4278255360&Me)+Ge>>>0}}function Da(F,M){M.jd=255&F,M.hd=F>>8&255,M.ud=F>>16&255}function $i(F,M,Y,ae,ye,Pe){var Me;for(Me=0;Me<ae;++Me){var Re=M[Y+Me],Ge=Re>>>8,et=Re,Yt=255&(Yt=(Yt=Re>>>16)+((F.jd<<24>>24)*(Ge<<24>>24)>>>5));et=255&(et=(et+=(F.hd<<24>>24)*(Ge<<24>>24)>>>5)+((F.ud<<24>>24)*(Yt<<24>>24)>>>5)),ye[Pe+Me]=(4278255360&Re)+(Yt<<16)+et}}function Aa(F,M,Y,ae,ye){At[M]=function(Pe,Me,Re,Ge,et,Yt,gn,pn,Kt){for(Ge=gn;Ge<pn;++Ge)for(gn=0;gn<Kt;++gn)et[Yt++]=ye(Re[ae(Pe[Me++])])},At[F]=function(Pe,Me,Re,Ge,et,Yt,gn){var pn=8>>Pe.b,Kt=Pe.Ea,fi=Pe.K[0],Bn=Pe.w;if(8>pn)for(Pe=(1<<Pe.b)-1,Bn=(1<<pn)-1;Me<Re;++Me){var Bt,Ht=0;for(Bt=0;Bt<Kt;++Bt)Bt&Pe||(Ht=ae(Ge[et++])),Yt[gn++]=ye(fi[Ht&Bn]),Ht>>=pn}else At["VP8LMapColor"+Y](Ge,et,fi,Bn,Yt,gn,Me,Re,Kt)}}function lr(F,M,Y,ae,ye){for(Y=M+Y;M<Y;){var Pe=F[M++];ae[ye++]=Pe>>16&255,ae[ye++]=Pe>>8&255,ae[ye++]=255&Pe}}function Ds(F,M,Y,ae,ye){for(Y=M+Y;M<Y;){var Pe=F[M++];ae[ye++]=Pe>>16&255,ae[ye++]=Pe>>8&255,ae[ye++]=255&Pe,ae[ye++]=Pe>>24&255}}function Mr(F,M,Y,ae,ye){for(Y=M+Y;M<Y;){var Pe=(Me=F[M++])>>16&240|Me>>12&15,Me=240&Me|Me>>28&15;ae[ye++]=Pe,ae[ye++]=Me}}function Zl(F,M,Y,ae,ye){for(Y=M+Y;M<Y;){var Pe=(Me=F[M++])>>16&248|Me>>13&7,Me=Me>>5&224|Me>>3&31;ae[ye++]=Pe,ae[ye++]=Me}}function Kr(F,M,Y,ae,ye){for(Y=M+Y;M<Y;){var Pe=F[M++];ae[ye++]=255&Pe,ae[ye++]=Pe>>8&255,ae[ye++]=Pe>>16&255}}function ha(F,M,Y,ae,ye,Pe){if(0==Pe)for(Y=M+Y;M<Y;)Ri(ae,((Pe=F[M++])[0]>>24|Pe[1]>>8&65280|Pe[2]<<8&16711680|Pe[3]<<24)>>>0),ye+=32;else P(ae,ye,F,M,Y)}function Ws(F,M){At[M][0]=At[F+"0"],At[M][1]=At[F+"1"],At[M][2]=At[F+"2"],At[M][3]=At[F+"3"],At[M][4]=At[F+"4"],At[M][5]=At[F+"5"],At[M][6]=At[F+"6"],At[M][7]=At[F+"7"],At[M][8]=At[F+"8"],At[M][9]=At[F+"9"],At[M][10]=At[F+"10"],At[M][11]=At[F+"11"],At[M][12]=At[F+"12"],At[M][13]=At[F+"13"],At[M][14]=At[F+"0"],At[M][15]=At[F+"0"]}function Fo(F){return F==tm||F==yf||F==Ec||F==Ep}function $s(){this.eb=[],this.size=this.A=this.fb=0}function Is(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function od(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new $s,this.f.kb=new Is,this.sd=null}function pu(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function js(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function qr(F){return alert("todo:WebPSamplerProcessPlane"),F.T}function ja(F,M){var Y=F.T,ae=M.ba.f.RGBA,ye=ae.eb,Pe=ae.fb+F.ka*ae.A,Me=ku[M.ba.S],Re=F.y,Ge=F.O,et=F.f,Yt=F.N,gn=F.ea,pn=F.W,Kt=M.cc,fi=M.dc,Bn=M.Mc,Bt=M.Nc,Ht=F.ka,ci=F.ka+F.T,wi=F.U,di=wi+1>>1;for(0==Ht?Me(Re,Ge,null,null,et,Yt,gn,pn,et,Yt,gn,pn,ye,Pe,null,null,wi):(Me(M.ec,M.fc,Re,Ge,Kt,fi,Bn,Bt,et,Yt,gn,pn,ye,Pe-ae.A,ye,Pe,wi),++Y);Ht+2<ci;Ht+=2)Me(Re,(Ge+=2*F.fa)-F.fa,Re,Ge,Kt=et,fi=Yt,Bn=gn,Bt=pn,et,Yt+=F.Rc,gn,pn+=F.Rc,ye,(Pe+=2*ae.A)-ae.A,ye,Pe,wi);return Ge+=F.fa,F.j+ci<F.o?(P(M.ec,M.fc,Re,Ge,wi),P(M.cc,M.dc,et,Yt,di),P(M.Mc,M.Nc,gn,pn,di),Y--):1&ci||Me(Re,Ge,null,null,et,Yt,gn,pn,et,Yt,gn,pn,ye,Pe+ae.A,null,null,wi),Y}function ts(F,M,Y){var ae=F.F,ye=[F.J];if(null!=ae){var Pe=F.U,Me=M.ba.S,Re=Me==yh||Me==Ec;M=M.ba.f.RGBA;var Ge=[0],et=F.ka;Ge[0]=F.T,F.Kb&&(0==et?--Ge[0]:(--et,ye[0]-=F.width),F.j+F.ka+F.T==F.o&&(Ge[0]=F.o-F.j-et));var Yt=M.eb;F=Hu(ae,ye[0],F.width,Pe,Ge,Yt,(et=M.fb+et*M.A)+(Re?0:3),M.A),y(Y==Ge),F&&Fo(Me)&&fp(Yt,et,Re,Pe,Ge,M.A)}return 0}function Io(F){var M=F.ma,Y=M.ba.S,ae=11>Y,ye=Y==_o||Y==Fl||Y==yh||Y==ch||12==Y||Fo(Y);if(M.memory=null,M.Ib=null,M.Jb=null,M.Nd=null,!Wu(M.Oa,F,ye?11:12))return 0;if(ye&&Fo(Y)&&ki(),F.da)alert("todo:use_scaling");else{if(ae){if(M.Ib=qr,F.Kb){if(M.memory=D(F.U+2*(Y=F.U+1>>1)),null==M.memory)return 0;M.ec=M.memory,M.fc=0,M.cc=M.ec,M.dc=M.fc+F.U,M.Mc=M.cc,M.Nc=M.dc+Y,M.Ib=ja,ki()}}else alert("todo:EmitYUV");ye&&(M.Jb=ts,ae&&Ut())}if(ae&&!zf){for(F=0;256>F;++F)Lm[F]=89858*(F-128)+Gc>>dh,Pc[F]=-22014*(F-128)+Gc,Al[F]=-45773*(F-128),lg[F]=113618*(F-128)+Gc>>dh;for(F=uh;F<Ph;++F)Tl[F-uh]=wc(M=76283*(F-16)+Gc>>dh,255),wu[F-uh]=wc(M+8>>4,15);zf=1}return 1}function Zd(F){var M=F.ma,Y=F.U,ae=F.T;return y(!(1&F.ka)),0>=Y||0>=ae?0:(Y=M.Ib(F,M),null!=M.Jb&&M.Jb(F,M,Y),M.Dc+=Y,1)}function Qd(F){F.ma.memory=null}function Ii(F,M,Y,ae){return 47!=ai(F,8)?0:(M[0]=ai(F,14)+1,Y[0]=ai(F,14)+1,ae[0]=ai(F,1),0!=ai(F,3)?0:!F.h)}function yl(F,M){if(4>F)return F+1;var Y=F-2>>1;return(2+(1&F)<<Y)+ai(M,Y)+1}function Cd(F,M){return 120<M?M-120:1<=(Y=((Y=Cu[M-1])>>4)*F+(8-(15&Y)))?Y:1;var Y}function Cl(F,M,Y){var ae=Qe(Y),ye=F[M+=255&ae].g-8;return 0<ye&&(Nt(Y,Y.u+8),ae=Qe(Y),M+=F[M].value,M+=ae&(1<<ye)-1),Nt(Y,Y.u+F[M].g),F[M].value}function Gr(F,M,Y){return Y.g+=F.g,Y.value+=F.value<<M>>>0,y(8>=Y.g),F.g}function cl(F,M,Y){var ae=F.xc;return y((M=0==ae?0:F.vc[F.md*(Y>>ae)+(M>>ae)])<F.Wb),F.Ya[M]}function Cc(F,M,Y,ae){var ye=F.ab,Pe=F.c*M,Me=F.C;M=Me+M;var Re=Y,Ge=ae;for(ae=F.Ta,Y=F.Ua;0<ye--;){var et=F.gc[ye],Yt=Me,gn=M,pn=Re,Kt=Ge,fi=(Ge=ae,Re=Y,et.Ea);switch(y(Yt<gn),y(gn<=et.nc),et.hc){case 2:Td(pn,Kt,(gn-Yt)*fi,Ge,Re);break;case 0:var Bn=Yt,Bt=gn,Ht=Ge,ci=Re,wi=(ir=et).Ea;0==Bn&&(Zh(pn,Kt,null,null,1,Ht,ci),Ca(pn,Kt+1,0,0,wi-1,Ht,ci+1),Kt+=wi,ci+=wi,++Bn);for(var di=1<<ir.b,br=di-1,Ji=Wi(wi,ir.b),na=ir.K,ir=ir.w+(Bn>>ir.b)*Ji;Bn<Bt;){var uo=na,Yo=ir,vo=1;for(xu(pn,Kt,Ht,ci-wi,1,Ht,ci);vo<wi;){var no=(vo&~br)+di;no>wi&&(no=wi),(0,ic[uo[Yo++]>>8&15])(pn,Kt+ +vo,Ht,ci+vo-wi,no-vo,Ht,ci+vo),vo=no}Kt+=wi,ci+=wi,++Bn&br||(ir+=Ji)}gn!=et.nc&&P(Ge,Re-fi,Ge,Re+(gn-Yt-1)*fi,fi);break;case 1:for(fi=pn,Bt=Kt,wi=(pn=et.Ea)-(ci=pn&~(Ht=(Kt=1<<et.b)-1)),Bn=Wi(pn,et.b),di=et.K,et=et.w+(Yt>>et.b)*Bn;Yt<gn;){for(br=di,Ji=et,na=new er,ir=Bt+ci,uo=Bt+pn;Bt<ir;)Da(br[Ji++],na),ru(na,fi,Bt,Kt,Ge,Re),Bt+=Kt,Re+=Kt;Bt<uo&&(Da(br[Ji++],na),ru(na,fi,Bt,wi,Ge,Re),Bt+=wi,Re+=wi),++Yt&Ht||(et+=Bn)}break;case 3:if(pn==Ge&&Kt==Re&&0<et.b){for(Bt=Ge,pn=fi=Re+(gn-Yt)*fi-(ci=(gn-Yt)*Wi(et.Ea,et.b)),Kt=Ge,Ht=Re,Bn=[],ci=(wi=ci)-1;0<=ci;--ci)Bn[ci]=Kt[Ht+ci];for(ci=wi-1;0<=ci;--ci)Bt[pn+ci]=Bn[ci];Nl(et,Yt,gn,Ge,fi,Ge,Re)}else Nl(et,Yt,gn,pn,Kt,Ge,Re)}Re=ae,Ge=Y}Ge!=Y&&P(ae,Y,Re,Ge,Pe)}function qs(F,M){var Y=F.V,ae=F.Ba+F.c*F.C,ye=M-F.C;if(y(M<=F.l.o),y(16>=ye),0<ye){var Pe=F.l,Me=F.Ta,Re=F.Ua,Ge=Pe.width;if(Cc(F,ye,Y,ae),ye=Re=[Re],y((Y=F.C)<(ae=M)),y(Pe.v<Pe.va),ae>Pe.o&&(ae=Pe.o),Y<Pe.j){var et=Pe.j-Y;Y=Pe.j,ye[0]+=et*Ge}if(Y>=ae?Y=0:(ye[0]+=4*Pe.v,Pe.ka=Y-Pe.j,Pe.U=Pe.va-Pe.v,Pe.T=ae-Y,Y=1),Y){if(Re=Re[0],11>(Y=F.ca).S){var Yt=Y.f.RGBA,gn=(ae=Y.S,ye=Pe.U,Pe=Pe.T,et=Yt.eb,Yt.A),pn=Pe;for(Yt=Yt.fb+F.Ma*Yt.A;0<pn--;){var Kt=Me,fi=Re,Bn=ye,Bt=et,Ht=Yt;switch(ae){case Pd:qu(Kt,fi,Bn,Bt,Ht);break;case _o:lp(Kt,fi,Bn,Bt,Ht);break;case tm:lp(Kt,fi,Bn,Bt,Ht),fp(Bt,Ht,0,Bn,1,0);break;case em:Sp(Kt,fi,Bn,Bt,Ht);break;case Fl:ha(Kt,fi,Bn,Bt,Ht,1);break;case yf:ha(Kt,fi,Bn,Bt,Ht,1),fp(Bt,Ht,0,Bn,1,0);break;case yh:ha(Kt,fi,Bn,Bt,Ht,0);break;case Ec:ha(Kt,fi,Bn,Bt,Ht,0),fp(Bt,Ht,1,Bn,1,0);break;case ch:vf(Kt,fi,Bn,Bt,Ht);break;case Ep:vf(Kt,fi,Bn,Bt,Ht),lh(Bt,Ht,Bn,1,0);break;case co:cp(Kt,fi,Bn,Bt,Ht);break;default:y(0)}Re+=Ge,Yt+=gn}F.Ma+=Pe}else alert("todo:EmitRescaledRowsYUVA");y(F.Ma<=Y.height)}}F.C=M,y(F.C<=F.i)}function Ao(F){var M;if(0<F.ua)return 0;for(M=0;M<F.Wb;++M){var Y=F.Ya[M].G,ae=F.Ya[M].H;if(0<Y[1][ae[1]+0].g||0<Y[2][ae[2]+0].g||0<Y[3][ae[3]+0].g)return 0}return 1}function kd(F,M,Y,ae,ye,Pe){if(0!=F.Z){var Me=F.qd,Re=F.rd;for(y(null!=Vf[F.Z]);M<Y;++M)Vf[F.Z](Me,Re,ae,ye,ae,ye,Pe),Me=ae,Re=ye,ye+=Pe;F.qd=Me,F.rd=Re}}function sd(F,M){var Y=F.l.ma,ae=0==Y.Z||1==Y.Z?F.l.j:F.C;if(ae=F.C<ae?ae:F.C,y(M<=F.l.o),M>ae){var ye=F.l.width,Pe=Y.ca,Me=Y.tb+ye*ae,Re=F.V,Ge=F.Ba+F.c*ae,et=F.gc;y(1==F.ab),y(3==et[0].hc),Rf(et[0],ae,M,Re,Ge,Pe,Me),kd(Y,ae,M,Pe,Me,ye)}F.C=F.Ma=M}function Xr(F,M,Y,ae,ye,Pe,Me){var Re=F.$/ae,Ge=F.$%ae,et=F.m,Yt=F.s,gn=Y+F.$,pn=gn;ye=Y+ae*ye;var Kt=Y+ae*Pe,fi=280+Yt.ua,Bn=F.Pb?Re:16777216,Bt=0<Yt.ua?Yt.Wa:null,Ht=Yt.wc,ci=gn<Kt?cl(Yt,Ge,Re):null;y(F.C<Pe),y(Kt<=ye);var wi=!1;e:for(;;){for(;wi||gn<Kt;){var di=0;if(Re>=Bn){var br=gn-Y;y((Bn=F).Pb),Bn.wd=Bn.m,Bn.xd=br,0<Bn.s.ua&&Qn(Bn.s.Wa,Bn.s.vb),Bn=Re+Om}if(Ge&Ht||(ci=cl(Yt,Ge,Re)),y(null!=ci),ci.Qb&&(M[gn]=ci.qb,wi=!0),!wi)if(Qt(et),ci.jc){br=M;var Ji=gn,na=ci.pd[Qe(di=et)&Tc-1];y(ci.jc),256>na.g?(Nt(di,di.u+na.g),br[Ji]=na.value,di=0):(Nt(di,di.u+na.g-256),y(256<=na.value),di=na.value),0==di&&(wi=!0)}else di=Cl(ci.G[0],ci.H[0],et);if(et.h)break;if(wi||256>di){if(!wi)if(ci.nd)M[gn]=(ci.qb|di<<8)>>>0;else{if(Qt(et),wi=Cl(ci.G[1],ci.H[1],et),Qt(et),br=Cl(ci.G[2],ci.H[2],et),Ji=Cl(ci.G[3],ci.H[3],et),et.h)break;M[gn]=(Ji<<24|wi<<16|di<<8|br)>>>0}if(wi=!1,++gn,++Ge>=ae&&(Ge=0,++Re,null!=Me&&Re<=Pe&&!(Re%16)&&Me(F,Re),null!=Bt))for(;pn<gn;)di=M[pn++],Bt.X[(506832829*di&4294967295)>>>Bt.Mb]=di}else if(280>di){if(di=yl(di-256,et),br=Cl(ci.G[4],ci.H[4],et),Qt(et),br=Cd(ae,br=yl(br,et)),et.h)break;if(gn-Y<br||ye-gn<di)break e;for(Ji=0;Ji<di;++Ji)M[gn+Ji]=M[gn+Ji-br];for(gn+=di,Ge+=di;Ge>=ae;)Ge-=ae,++Re,null!=Me&&Re<=Pe&&!(Re%16)&&Me(F,Re);if(y(gn<=ye),Ge&Ht&&(ci=cl(Yt,Ge,Re)),null!=Bt)for(;pn<gn;)di=M[pn++],Bt.X[(506832829*di&4294967295)>>>Bt.Mb]=di}else{if(!(di<fi))break e;for(wi=di-280,y(null!=Bt);pn<gn;)di=M[pn++],Bt.X[(506832829*di&4294967295)>>>Bt.Mb]=di;di=gn,y(!(wi>>>(br=Bt).Xa)),M[di]=br.X[wi],wi=!0}wi||y(et.h==dt(et))}if(F.Pb&&et.h&&gn<ye)y(F.m.h),F.a=5,F.m=F.wd,F.$=F.xd,0<F.s.ua&&Qn(F.s.vb,F.s.Wa);else{if(et.h)break e;Me?.(F,Re>Pe?Pe:Re),F.a=0,F.$=gn-Y}return 1}return F.a=3,0}function kl(F){y(null!=F),F.vc=null,F.yc=null,F.Ya=null;var M=F.Wa;null!=M&&(M.X=null),F.vb=null,y(null!=F)}function dl(){var F=new Jh;return null==F?null:(F.a=0,F.xb=rm,Ws("Predictor","VP8LPredictors"),Ws("Predictor","VP8LPredictors_C"),Ws("PredictorAdd","VP8LPredictorsAdd"),Ws("PredictorAdd","VP8LPredictorsAdd_C"),Td=Ua,ru=$i,qu=lr,lp=Ds,vf=Mr,cp=Zl,Sp=Kr,At.VP8LMapColor32b=fl,At.VP8LMapColor8b=Lf,F)}function Ql(F,M,Y,ae,ye){var Pe=1,Me=[F],Re=[M],Ge=ae.m,et=ae.s,Yt=null,gn=0;e:for(;;){if(Y)for(;Pe&&ai(Ge,1);){var pn=Me,Kt=Re,fi=ae,Bn=1,Bt=fi.m,Ht=fi.gc[fi.ab],ci=ai(Bt,2);if(fi.Oc&1<<ci)Pe=0;else{switch(fi.Oc|=1<<ci,Ht.hc=ci,Ht.Ea=pn[0],Ht.nc=Kt[0],Ht.K=[null],++fi.ab,y(4>=fi.ab),ci){case 0:case 1:Ht.b=ai(Bt,3)+2,Bn=Ql(Wi(Ht.Ea,Ht.b),Wi(Ht.nc,Ht.b),0,fi,Ht.K),Ht.K=Ht.K[0];break;case 3:var wi,di=ai(Bt,8)+1,br=16<di?0:4<di?1:2<di?2:3;if(pn[0]=Wi(Ht.Ea,br),Ht.b=br,wi=Bn=Ql(di,1,0,fi,Ht.K)){var Ji,na=di,ir=Ht,uo=1<<(8>>ir.b),Yo=D(uo);if(null==Yo)wi=0;else{var vo=ir.K[0],no=ir.w;for(Yo[0]=ir.K[0][0],Ji=1;Ji<1*na;++Ji)Yo[Ji]=Pi(vo[no+Ji],Yo[Ji-1]);for(;Ji<4*uo;++Ji)Yo[Ji]=0;ir.K[0]=null,ir.K[0]=Yo,wi=1}}Bn=wi;break;case 2:break;default:y(0)}Pe=Bn}}if(Me=Me[0],Re=Re[0],Pe&&ai(Ge,1)&&!(Pe=1<=(gn=ai(Ge,4))&&11>=gn)){ae.a=3;break e}var _a;if(_a=Pe)t:{var Wo,Na,Qs,Vc=ae,Sl=Me,Md=Re,$o=gn,Mc=Y,Fu=Vc.m,uc=Vc.s,Oc=[null],ud=1,Od=0,Qu=Pp[$o];n:for(;;){if(Mc&&ai(Fu,1)){var fc=ai(Fu,3)+2,Au=Wi(Sl,fc),kf=Wi(Md,fc),qp=Au*kf;if(!Ql(Au,kf,0,Vc,Oc))break n;for(Oc=Oc[0],uc.xc=fc,Wo=0;Wo<qp;++Wo){var Dd=Oc[Wo]>>8&65535;Oc[Wo]=Dd,Dd>=ud&&(ud=Dd+1)}}if(Fu.h)break n;for(Na=0;5>Na;++Na){var cs=wh[Na];!Na&&0<$o&&(cs+=1<<$o),Od<cs&&(Od=cs)}var dm=U(ud*Qu,$e),Gm=ud,Vm=U(Gm,kt);if(null==Vm)var Oh=null;else y(65536>=Gm),Oh=Vm;var Xp=D(Od);if(null==Oh||null==Xp||null==dm){Vc.a=1;break n}var Dh=dm;for(Wo=Qs=0;Wo<ud;++Wo){var Tu=Oh[Wo],Mp=Tu.G,Op=Tu.H,um=0,hp=1,fm=0;for(Na=0;5>Na;++Na){cs=wh[Na],Mp[Na]=Dh,Op[Na]=Qs,!Na&&0<$o&&(cs+=1<<$o);r:{var mp,ph=cs,Dp=Vc,Hp=Xp,zm=Dh,Um=Qs,hh=0,gp=Dp.m,mh=ai(gp,1);if(N(Hp,0,0,ph),mh){var pm=ai(gp,1)+1,gh=ai(gp,1),Ih=ai(gp,0==gh?1:8);Hp[Ih]=1,2==pm&&(Hp[Ih=ai(gp,8)]=1);var Kp=1}else{var jh=D(19),_h=ai(gp,4)+4;if(19<_h){Dp.a=3;var Ip=0;break r}for(mp=0;mp<_h;++mp)jh[Fh[mp]]=ai(gp,3);var Rh=void 0,_p=void 0,vh=Dp,Ym=jh,Lh=ph,cg=Hp,Nh=0,jp=vh.m,hm=8,zc=U(128,$e);i:for(;He(zc,0,7,Ym,19);){if(ai(jp,1)){var Wm=2+2*ai(jp,3);if((Rh=2+ai(jp,Wm))>Lh)break i}else Rh=Lh;for(_p=0;_p<Lh&&Rh--;){Qt(jp);var Dc=zc[0+(127&Qe(jp))];Nt(jp,jp.u+Dc.g);var hl=Dc.value;if(16>hl)cg[_p++]=hl,0!=hl&&(hm=hl);else{var dg=16==hl,Bh=hl-16,Uc=kh[Bh],ca=ai(jp,Ch[Bh])+Uc;if(_p+ca>Lh)break i;for(var Id=dg?hm:0;0<ca--;)cg[_p++]=Id}}Nh=1;break i}Nh||(vh.a=3),Kp=Nh}(Kp=Kp&&!gp.h)&&(hh=He(zm,Um,8,Hp,ph)),Kp&&0!=hh?Ip=hh:(Dp.a=3,Ip=0)}if(0==Ip)break n;if(hp&&1==Cf[Na]&&(hp=0==Dh[Qs].g),um+=Dh[Qs].g,Qs+=Ip,3>=Na){var ml,xs=Xp[0];for(ml=1;ml<cs;++ml)Xp[ml]>xs&&(xs=Xp[ml]);fm+=xs}}if(Tu.nd=hp,Tu.Qb=0,hp&&(Tu.qb=(Mp[3][Op[3]+0].value<<24|Mp[1][Op[1]+0].value<<16|Mp[2][Op[2]+0].value)>>>0,0==um&&256>Mp[0][Op[0]+0].value&&(Tu.Qb=1,Tu.qb+=Mp[0][Op[0]+0].value<<8)),Tu.jc=!Tu.Qb&&6>fm,Tu.jc){var Rp,Yc=Tu;for(Rp=0;Rp<Tc;++Rp){var Uf=Rp,wf=Yc.pd[Uf],Jp=Yc.G[0][Yc.H[0]+Uf];256<=Jp.value?(wf.g=Jp.g+256,wf.value=Jp.value):(wf.g=0,wf.value=0,Uf>>=Gr(Jp,8,wf),Uf>>=Gr(Yc.G[1][Yc.H[1]+Uf],16,wf),Uf>>=Gr(Yc.G[2][Yc.H[2]+Uf],0,wf),Gr(Yc.G[3][Yc.H[3]+Uf],24,wf))}}}uc.vc=Oc,uc.Wb=ud,uc.Ya=Oh,uc.yc=dm,_a=1;break t}_a=0}if(!(Pe=_a)){ae.a=3;break e}if(0<gn){if(et.ua=1<<gn,!$r(et.Wa,gn)){ae.a=1,Pe=0;break e}}else et.ua=0;var Ff=ae,$m=Me,Gh=Re,mm=Ff.s,jd=mm.xc;if(Ff.c=$m,Ff.i=Gh,mm.md=Wi($m,jd),mm.wc=0==jd?-1:(1<<jd)-1,Y){ae.xb=Eh;break e}if(null==(Yt=D(Me*Re))){ae.a=1,Pe=0;break e}Pe=(Pe=Xr(ae,Yt,0,Me,Re,Re,null))&&!Ge.h;break e}return Pe?(null!=ye?ye[0]=Yt:(y(null==Yt),y(Y)),ae.$=0,Y||kl(et)):kl(et),Pe}function Ra(F,M){var Y=F.c*F.i,ae=Y+M+16*M;return y(F.c<=M),F.V=D(ae),null==F.V?(F.Ta=null,F.Ua=0,F.a=1,0):(F.Ta=F.V,F.Ua=F.Ba+Y+M,1)}function eu(F,M){var Y=F.C,ae=M-Y,ye=F.V,Pe=F.Ba+F.c*Y;for(y(M<=F.l.o);0<ae;){var Me=16<ae?16:ae,Re=F.l.ma,Ge=F.l.width,et=Ge*Me,Yt=Re.ca,gn=Re.tb+Ge*Y,pn=F.Ta,Kt=F.Ua;Cc(F,Me,ye,Pe),Ku(pn,Kt,Yt,gn,et),kd(Re,Y,Y+Me,Yt,gn,Ge),ae-=Me,ye+=Me*F.c,Y+=Me}y(Y==M),F.C=F.Ma=M}function kc(){this.ub=this.yd=this.td=this.Rb=0}function Ja(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Vu(){this.Fb=this.Bb=this.Cb=0,this.Zb=D(4),this.Lb=D(4)}function Rl(){var F;this.Yb=(function M(Y,ae,ye){for(var Pe=ye[ae],Me=0;Me<Pe&&(Y.push(ye.length>ae+1?[]:0),!(ye.length<ae+1));Me++)M(Y[Me],ae+1,ye)}(F=[],0,[3,11]),F)}function wd(){this.jb=D(3),this.Wc=W([4,8],Rl),this.Xc=W([4,17],Rl)}function hu(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new D(4),this.od=new D(4)}function c(){this.ld=this.La=this.dd=this.tc=0}function f(){this.Na=this.la=0}function _(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function v(){this.ad=D(384),this.Za=0,this.Ob=D(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function T(){this.uc=this.M=this.Nb=0,this.wa=Array(new c),this.Y=0,this.ya=Array(new v),this.aa=0,this.l=new q}function O(){this.y=D(16),this.f=D(8),this.ea=D(8)}function B(){this.cb=this.a=0,this.sc="",this.m=new Qi,this.Od=new kc,this.Kc=new Ja,this.ed=new hu,this.Qa=new Vu,this.Ic=this.$c=this.Aa=0,this.D=new T,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=U(8,Qi),this.ia=0,this.pb=U(4,_),this.Pa=new wd,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new O),this.Hd=0,this.rb=Array(new f),this.sb=0,this.wa=Array(new c),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new v),this.L=this.aa=0,this.gd=W([4,2],c),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function q(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function V(){var F=new B;return null!=F&&(F.a=0,F.sc="OK",F.cb=0,F.Xb=0,Wp||(Wp=je)),F}function Z(F,M,Y){return 0==F.a&&(F.a=M,F.sc=Y,F.cb=0),0}function ue(F,M,Y){return 3<=Y&&157==F[M+0]&&1==F[M+1]&&42==F[M+2]}function pe(F,M){if(null==F)return 0;if(F.a=0,F.sc="OK",null==M)return Z(F,2,"null VP8Io passed to VP8GetHeaders()");var Y=M.data,ae=M.w,ye=M.ha;if(4>ye)return Z(F,7,"Truncated header.");var Pe=Y[ae+0]|Y[ae+1]<<8|Y[ae+2]<<16,Me=F.Od;if(Me.Rb=!(1&Pe),Me.td=Pe>>1&7,Me.yd=Pe>>4&1,Me.ub=Pe>>5,3<Me.td)return Z(F,3,"Incorrect keyframe parameters.");if(!Me.yd)return Z(F,4,"Frame not displayable.");ae+=3,ye-=3;var Re=F.Kc;if(Me.Rb){if(7>ye)return Z(F,7,"cannot parse picture header");if(!ue(Y,ae,ye))return Z(F,3,"Bad code word");Re.c=16383&(Y[ae+4]<<8|Y[ae+3]),Re.Td=Y[ae+4]>>6,Re.i=16383&(Y[ae+6]<<8|Y[ae+5]),Re.Ud=Y[ae+6]>>6,ae+=7,ye-=7,F.za=Re.c+15>>4,F.Ub=Re.i+15>>4,M.width=Re.c,M.height=Re.i,M.Da=0,M.j=0,M.v=0,M.va=M.width,M.o=M.height,M.da=0,M.ib=M.width,M.hb=M.height,M.U=M.width,M.T=M.height,N((Pe=F.Pa).jb,0,255,Pe.jb.length),y(null!=(Pe=F.Qa)),Pe.Cb=0,Pe.Bb=0,Pe.Fb=1,N(Pe.Zb,0,0,Pe.Zb.length),N(Pe.Lb,0,0,Pe.Lb)}if(Me.ub>ye)return Z(F,7,"bad partition length");On(Pe=F.m,Y,ae,Me.ub),ae+=Me.ub,ye-=Me.ub,Me.Rb&&(Re.Ld=In(Pe),Re.Kd=In(Pe)),Re=F.Qa;var Ge,et=F.Pa;if(y(null!=Pe),y(null!=Re),Re.Cb=In(Pe),Re.Cb){if(Re.Bb=In(Pe),In(Pe)){for(Re.Fb=In(Pe),Ge=0;4>Ge;++Ge)Re.Zb[Ge]=In(Pe)?Xn(Pe,7):0;for(Ge=0;4>Ge;++Ge)Re.Lb[Ge]=In(Pe)?Xn(Pe,6):0}if(Re.Bb)for(Ge=0;3>Ge;++Ge)et.jb[Ge]=In(Pe)?Dn(Pe,8):255}else Re.Bb=0;if(Pe.Ka)return Z(F,3,"cannot parse segment header");if((Re=F.ed).zd=In(Pe),Re.Tb=Dn(Pe,6),Re.wb=Dn(Pe,3),Re.Pc=In(Pe),Re.Pc&&In(Pe)){for(et=0;4>et;++et)In(Pe)&&(Re.vd[et]=Xn(Pe,6));for(et=0;4>et;++et)In(Pe)&&(Re.od[et]=Xn(Pe,6))}if(F.L=0==Re.Tb?0:Re.zd?1:2,Pe.Ka)return Z(F,3,"cannot parse filter header");var Yt=ye;if(ye=Ge=ae,ae=Ge+Yt,Re=Yt,F.Xb=(1<<Dn(F.m,2))-1,Yt<3*(et=F.Xb))Y=7;else{for(Ge+=3*et,Re-=3*et,Yt=0;Yt<et;++Yt){var gn=Y[ye+0]|Y[ye+1]<<8|Y[ye+2]<<16;gn>Re&&(gn=Re),On(F.Jc[+Yt],Y,Ge,gn),Ge+=gn,Re-=gn,ye+=3}On(F.Jc[+et],Y,Ge,Re),Y=Ge<ae?0:5}if(0!=Y)return Z(F,Y,"cannot parse partitions");for(Y=Dn(Ge=F.m,7),ye=In(Ge)?Xn(Ge,4):0,ae=In(Ge)?Xn(Ge,4):0,Re=In(Ge)?Xn(Ge,4):0,et=In(Ge)?Xn(Ge,4):0,Ge=In(Ge)?Xn(Ge,4):0,Yt=F.Qa,gn=0;4>gn;++gn){if(Yt.Cb){var pn=Yt.Zb[gn];Yt.Fb||(pn+=Y)}else{if(0<gn){F.pb[gn]=F.pb[0];continue}pn=Y}var Kt=F.pb[gn];Kt.Sc[0]=Ah[wc(pn+ye,127)],Kt.Sc[1]=Th[wc(pn+0,127)],Kt.Eb[0]=2*Ah[wc(pn+ae,127)],Kt.Eb[1]=101581*Th[wc(pn+Re,127)]>>16,8>Kt.Eb[1]&&(Kt.Eb[1]=8),Kt.Qc[0]=Ah[wc(pn+et,117)],Kt.Qc[1]=Th[wc(pn+Ge,127)],Kt.lc=pn+Ge}if(!Me.Rb)return Z(F,4,"Not a key frame.");for(In(Pe),Me=F.Pa,Y=0;4>Y;++Y){for(ye=0;8>ye;++ye)for(ae=0;3>ae;++ae)for(Re=0;11>Re;++Re)et=Ln(Pe,im[Y][ye][ae][Re])?Dn(Pe,8):rg[Y][ye][ae][Re],Me.Wc[Y][ye].Yb[ae][Re]=et;for(ye=0;17>ye;++ye)Me.Xc[Y][ye]=Me.Wc[Y][og[ye]]}return F.kc=In(Pe),F.kc&&(F.Bd=Dn(Pe,8)),F.cb=1}function je(F,M,Y,ae,ye,Pe,Me){var Re=M[ye].Yb[Y];for(Y=0;16>ye;++ye){if(!Ln(F,Re[Y+0]))return ye;for(;!Ln(F,Re[Y+1]);)if(Re=M[++ye].Yb[0],Y=0,16==ye)return 16;var Ge=M[ye+1].Yb;if(Ln(F,Re[Y+2])){var et=F,Yt=0;if(Ln(et,(pn=Re)[(gn=Y)+3]))if(Ln(et,pn[gn+6])){for(Re=0,gn=2*(Yt=Ln(et,pn[gn+8]))+(pn=Ln(et,pn[gn+9+Yt])),Yt=0,pn=Sh[gn];pn[Re];++Re)Yt+=Yt+Ln(et,pn[Re]);Yt+=3+(8<<gn)}else Ln(et,pn[gn+7])?(Yt=7+2*Ln(et,165),Yt+=Ln(et,145)):Yt=5+Ln(et,159);else Yt=Ln(et,pn[gn+4])?3+Ln(et,pn[gn+5]):2;Re=Ge[2]}else Yt=1,Re=Ge[1];Ge=Me+nm[ye],0>(et=F).b&&Cn(et);var gn,pn=et.b,Kt=(gn=et.Ca>>1)-(et.I>>pn)>>31;--et.b,et.Ca+=Kt,et.Ca|=1,et.I-=(gn+1&Kt)<<pn,Pe[Ge]=((Yt^Kt)-Kt)*ae[(0<ye)+0]}return 16}function ft(F){var M=F.rb[F.sb-1];M.la=0,M.Na=0,N(F.zc,0,0,F.zc.length),F.ja=0}function St(F,M,Y,ae,ye){F[M+Y+32*ae]=-256&(ye=F[M+Y+32*ae]+(ye>>3))?0>ye?0:255:ye}function zt(F,M,Y,ae,ye,Pe){St(F,M,0,Y,ae+ye),St(F,M,1,Y,ae+Pe),St(F,M,2,Y,ae-Pe),St(F,M,3,Y,ae-ye)}function Hn(F){return(20091*F>>16)+F}function _n(F,M,Y,ae){var ye,Pe=0,Me=D(16);for(ye=0;4>ye;++ye){var Re=F[M+0]+F[M+8],Ge=F[M+0]-F[M+8],et=(35468*F[M+4]>>16)-Hn(F[M+12]),Yt=Hn(F[M+4])+(35468*F[M+12]>>16);Me[Pe+0]=Re+Yt,Me[Pe+1]=Ge+et,Me[Pe+2]=Ge-et,Me[Pe+3]=Re-Yt,Pe+=4,M++}for(ye=Pe=0;4>ye;++ye)Re=(F=Me[Pe+0]+4)+Me[Pe+8],Ge=F-Me[Pe+8],et=(35468*Me[Pe+4]>>16)-Hn(Me[Pe+12]),St(Y,ae,0,0,Re+(Yt=Hn(Me[Pe+4])+(35468*Me[Pe+12]>>16))),St(Y,ae,1,0,Ge+et),St(Y,ae,2,0,Ge-et),St(Y,ae,3,0,Re-Yt),Pe++,ae+=32}function Ui(F,M,Y,ae){var ye=F[M+0]+4,Pe=35468*F[M+4]>>16,Me=Hn(F[M+4]),Re=35468*F[M+1]>>16;zt(Y,ae,0,ye+Me,F=Hn(F[M+1]),Re),zt(Y,ae,1,ye+Pe,F,Re),zt(Y,ae,2,ye-Pe,F,Re),zt(Y,ae,3,ye-Me,F,Re)}function ma(F,M,Y,ae,ye){_n(F,M,Y,ae),ye&&_n(F,M+16,Y,ae+4)}function la(F,M,Y,ae){xf(F,M+0,Y,ae,1),xf(F,M+32,Y,ae+128,1)}function La(F,M,Y,ae){var ye;for(F=F[M+0]+4,ye=0;4>ye;++ye)for(M=0;4>M;++M)St(Y,ae,M,ye,F)}function Or(F,M,Y,ae){F[M+0]&&bu(F,M+0,Y,ae),F[M+16]&&bu(F,M+16,Y,ae+4),F[M+32]&&bu(F,M+32,Y,ae+128),F[M+48]&&bu(F,M+48,Y,ae+128+4)}function Ga(F,M,Y,ae){var ye,Pe=D(16);for(ye=0;4>ye;++ye){var Me=F[M+0+ye]+F[M+12+ye],Re=F[M+4+ye]+F[M+8+ye],Ge=F[M+4+ye]-F[M+8+ye],et=F[M+0+ye]-F[M+12+ye];Pe[0+ye]=Me+Re,Pe[8+ye]=Me-Re,Pe[4+ye]=et+Ge,Pe[12+ye]=et-Ge}for(ye=0;4>ye;++ye)Me=(F=Pe[0+4*ye]+3)+Pe[3+4*ye],Ge=Pe[1+4*ye]-Pe[2+4*ye],et=F-Pe[3+4*ye],Y[ae+0]=Me+(Re=Pe[1+4*ye]+Pe[2+4*ye])>>3,Y[ae+16]=et+Ge>>3,Y[ae+32]=Me-Re>>3,Y[ae+48]=et-Ge>>3,ae+=64}function ka(F,M,Y){var ae,ye=M-32,Pe=Zs,Me=255-F[ye-1];for(ae=0;ae<Y;++ae){var Re,Ge=Pe,et=Me+F[M-1];for(Re=0;Re<Y;++Re)F[M+Re]=Ge[et+F[ye+Re]];M+=32}}function gs(F,M){ka(F,M,4)}function Rs(F,M){ka(F,M,8)}function Fs(F,M){ka(F,M,16)}function ns(F,M){var Y;for(Y=0;16>Y;++Y)P(F,M+32*Y,F,M-32,16)}function wl(F,M){var Y;for(Y=16;0<Y;--Y)N(F,M,F[M-1],16),M+=32}function Nc(F,M,Y){var ae;for(ae=0;16>ae;++ae)N(M,Y+32*ae,F,16)}function zu(F,M){var Y,ae=16;for(Y=0;16>Y;++Y)ae+=F[M-1+32*Y]+F[M+Y-32];Nc(ae>>5,F,M)}function Xs(F,M){var Y,ae=8;for(Y=0;16>Y;++Y)ae+=F[M-1+32*Y];Nc(ae>>4,F,M)}function tu(F,M){var Y,ae=8;for(Y=0;16>Y;++Y)ae+=F[M+Y-32];Nc(ae>>4,F,M)}function Ll(F,M){Nc(128,F,M)}function Zr(F,M,Y){return F+2*M+Y+2>>2}function nu(F,M){var Y,ae=M-32;for(ae=new Uint8Array([Zr(F[ae-1],F[ae+0],F[ae+1]),Zr(F[ae+0],F[ae+1],F[ae+2]),Zr(F[ae+1],F[ae+2],F[ae+3]),Zr(F[ae+2],F[ae+3],F[ae+4])]),Y=0;4>Y;++Y)P(F,M+32*Y,ae,0,ae.length)}function kp(F,M){var Y=F[M-1],ae=F[M-1+32],ye=F[M-1+64],Pe=F[M-1+96];Ri(F,M+0,16843009*Zr(F[M-1-32],Y,ae)),Ri(F,M+32,16843009*Zr(Y,ae,ye)),Ri(F,M+64,16843009*Zr(ae,ye,Pe)),Ri(F,M+96,16843009*Zr(ye,Pe,Pe))}function ld(F,M){var Y,ae=4;for(Y=0;4>Y;++Y)ae+=F[M+Y-32]+F[M-1+32*Y];for(ae>>=3,Y=0;4>Y;++Y)N(F,M+32*Y,ae,4)}function wp(F,M){var Y=F[M-1+0],ae=F[M-1+32],ye=F[M-1+64],Pe=F[M-1-32],Me=F[M+0-32],Re=F[M+1-32],Ge=F[M+2-32],et=F[M+3-32];F[M+0+96]=Zr(ae,ye,F[M-1+96]),F[M+1+96]=F[M+0+64]=Zr(Y,ae,ye),F[M+2+96]=F[M+1+64]=F[M+0+32]=Zr(Pe,Y,ae),F[M+3+96]=F[M+2+64]=F[M+1+32]=F[M+0+0]=Zr(Me,Pe,Y),F[M+3+64]=F[M+2+32]=F[M+1+0]=Zr(Re,Me,Pe),F[M+3+32]=F[M+2+0]=Zr(Ge,Re,Me),F[M+3+0]=Zr(et,Ge,Re)}function uf(F,M){var Y=F[M+1-32],ae=F[M+2-32],ye=F[M+3-32],Pe=F[M+4-32],Me=F[M+5-32],Re=F[M+6-32],Ge=F[M+7-32];F[M+0+0]=Zr(F[M+0-32],Y,ae),F[M+1+0]=F[M+0+32]=Zr(Y,ae,ye),F[M+2+0]=F[M+1+32]=F[M+0+64]=Zr(ae,ye,Pe),F[M+3+0]=F[M+2+32]=F[M+1+64]=F[M+0+96]=Zr(ye,Pe,Me),F[M+3+32]=F[M+2+64]=F[M+1+96]=Zr(Pe,Me,Re),F[M+3+64]=F[M+2+96]=Zr(Me,Re,Ge),F[M+3+96]=Zr(Re,Ge,Ge)}function ff(F,M){var Y=F[M-1+0],ae=F[M-1+32],ye=F[M-1+64],Pe=F[M-1-32],Me=F[M+0-32],Re=F[M+1-32],Ge=F[M+2-32],et=F[M+3-32];F[M+0+0]=F[M+1+64]=Pe+Me+1>>1,F[M+1+0]=F[M+2+64]=Me+Re+1>>1,F[M+2+0]=F[M+3+64]=Re+Ge+1>>1,F[M+3+0]=Ge+et+1>>1,F[M+0+96]=Zr(ye,ae,Y),F[M+0+64]=Zr(ae,Y,Pe),F[M+0+32]=F[M+1+96]=Zr(Y,Pe,Me),F[M+1+32]=F[M+2+96]=Zr(Pe,Me,Re),F[M+2+32]=F[M+3+96]=Zr(Me,Re,Ge),F[M+3+32]=Zr(Re,Ge,et)}function _s(F,M){var Y=F[M+0-32],ae=F[M+1-32],ye=F[M+2-32],Pe=F[M+3-32],Me=F[M+4-32],Re=F[M+5-32],Ge=F[M+6-32],et=F[M+7-32];F[M+0+0]=Y+ae+1>>1,F[M+1+0]=F[M+0+64]=ae+ye+1>>1,F[M+2+0]=F[M+1+64]=ye+Pe+1>>1,F[M+3+0]=F[M+2+64]=Pe+Me+1>>1,F[M+0+32]=Zr(Y,ae,ye),F[M+1+32]=F[M+0+96]=Zr(ae,ye,Pe),F[M+2+32]=F[M+1+96]=Zr(ye,Pe,Me),F[M+3+32]=F[M+2+96]=Zr(Pe,Me,Re),F[M+3+64]=Zr(Me,Re,Ge),F[M+3+96]=Zr(Re,Ge,et)}function Qf(F,M){var Y=F[M-1+0],ae=F[M-1+32],ye=F[M-1+64],Pe=F[M-1+96];F[M+0+0]=Y+ae+1>>1,F[M+2+0]=F[M+0+32]=ae+ye+1>>1,F[M+2+32]=F[M+0+64]=ye+Pe+1>>1,F[M+1+0]=Zr(Y,ae,ye),F[M+3+0]=F[M+1+32]=Zr(ae,ye,Pe),F[M+3+32]=F[M+1+64]=Zr(ye,Pe,Pe),F[M+3+64]=F[M+2+64]=F[M+0+96]=F[M+1+96]=F[M+2+96]=F[M+3+96]=Pe}function Fp(F,M){var Y=F[M-1+0],ae=F[M-1+32],ye=F[M-1+64],Pe=F[M-1+96],Me=F[M-1-32],Re=F[M+0-32],Ge=F[M+1-32],et=F[M+2-32];F[M+0+0]=F[M+2+32]=Y+Me+1>>1,F[M+0+32]=F[M+2+64]=ae+Y+1>>1,F[M+0+64]=F[M+2+96]=ye+ae+1>>1,F[M+0+96]=Pe+ye+1>>1,F[M+3+0]=Zr(Re,Ge,et),F[M+2+0]=Zr(Me,Re,Ge),F[M+1+0]=F[M+3+32]=Zr(Y,Me,Re),F[M+1+32]=F[M+3+64]=Zr(ae,Y,Me),F[M+1+64]=F[M+3+96]=Zr(ye,ae,Y),F[M+1+96]=Zr(Pe,ye,ae)}function Of(F,M){var Y;for(Y=0;8>Y;++Y)P(F,M+32*Y,F,M-32,8)}function ep(F,M){var Y;for(Y=0;8>Y;++Y)N(F,M,F[M-1],8),M+=32}function mu(F,M,Y){var ae;for(ae=0;8>ae;++ae)N(M,Y+32*ae,F,8)}function tp(F,M){var Y,ae=8;for(Y=0;8>Y;++Y)ae+=F[M+Y-32]+F[M-1+32*Y];mu(ae>>4,F,M)}function pf(F,M){var Y,ae=4;for(Y=0;8>Y;++Y)ae+=F[M+Y-32];mu(ae>>3,F,M)}function Fd(F,M){var Y,ae=4;for(Y=0;8>Y;++Y)ae+=F[M-1+32*Y];mu(ae>>3,F,M)}function Df(F,M){mu(128,F,M)}function Hs(F,M,Y){var ae=F[M-Y],ye=F[M+0],Pe=3*(ye-ae)+pp[1020+F[M-2*Y]-F[M+Y]],Me=Pa[112+(Pe+4>>3)];F[M-Y]=Zs[255+ae+Pa[112+(Pe+3>>3)]],F[M+0]=Zs[255+ye-Me]}function iu(F,M,Y,ae){return rc[255+F[M-2*Y]-F[M-Y]]>ae||rc[255+F[M+Y]-F[M+0]]>ae}function Kh(F,M,Y,ae){return 4*rc[255+F[M-Y]-F[M+0]]+rc[255+F[M-2*Y]-F[M+Y]]<=ae}function gu(F,M,Y,ae,ye){var Pe=F[M-3*Y],Me=F[M-2*Y],Re=F[M-Y],Ge=F[M+0],et=F[M+Y],Yt=F[M+2*Y];return 4*rc[255+Re-Ge]+rc[255+Me-et]>ae?0:rc[255+F[M-4*Y]-Pe]<=ye&&rc[255+Pe-Me]<=ye&&rc[255+Me-Re]<=ye&&rc[255+F[M+3*Y]-Yt]<=ye&&rc[255+Yt-et]<=ye&&rc[255+et-Ge]<=ye}function Va(F,M,Y,ae){var ye=2*ae+1;for(ae=0;16>ae;++ae)Kh(F,M+ae,Y,ye)&&Hs(F,M+ae,Y)}function np(F,M,Y,ae){var ye=2*ae+1;for(ae=0;16>ae;++ae)Kh(F,M+ae*Y,1,ye)&&Hs(F,M+ae*Y,1)}function Ap(F,M,Y,ae){var ye;for(ye=3;0<ye;--ye)Va(F,M+=4*Y,Y,ae)}function ip(F,M,Y,ae){var ye;for(ye=3;0<ye;--ye)np(F,M+=4,Y,ae)}function If(F,M,Y,ae,ye,Pe,Me,Re){for(Pe=2*Pe+1;0<ye--;){if(gu(F,M,Y,Pe,Me))if(iu(F,M,Y,Re))Hs(F,M,Y);else{var Ge=F,et=M,Yt=Y,gn=Ge[et-2*Yt],pn=Ge[et-Yt],Kt=Ge[et+0],fi=Ge[et+Yt],Bn=Ge[et+2*Yt],Bt=27*(ci=pp[1020+3*(Kt-pn)+pp[1020+gn-fi]])+63>>7,Ht=18*ci+63>>7,ci=9*ci+63>>7;Ge[et-3*Yt]=Zs[255+Ge[et-3*Yt]+ci],Ge[et-2*Yt]=Zs[255+gn+Ht],Ge[et-Yt]=Zs[255+pn+Bt],Ge[et+0]=Zs[255+Kt-Bt],Ge[et+Yt]=Zs[255+fi-Ht],Ge[et+2*Yt]=Zs[255+Bn-ci]}M+=ae}}function go(F,M,Y,ae,ye,Pe,Me,Re){for(Pe=2*Pe+1;0<ye--;){if(gu(F,M,Y,Pe,Me))if(iu(F,M,Y,Re))Hs(F,M,Y);else{var Ge=F,et=M,Yt=Y,gn=Ge[et-Yt],pn=Ge[et+0],Kt=Ge[et+Yt],fi=Pa[112+(4+(Bn=3*(pn-gn))>>3)],Bn=Pa[112+(Bn+3>>3)],Bt=fi+1>>1;Ge[et-2*Yt]=Zs[255+Ge[et-2*Yt]+Bt],Ge[et-Yt]=Zs[255+gn+Bn],Ge[et+0]=Zs[255+pn-fi],Ge[et+Yt]=Zs[255+Kt-Bt]}M+=ae}}function ul(F,M,Y,ae,ye,Pe){If(F,M,Y,1,16,ae,ye,Pe)}function Rn(F,M,Y,ae,ye,Pe){If(F,M,1,Y,16,ae,ye,Pe)}function Uu(F,M,Y,ae,ye,Pe){var Me;for(Me=3;0<Me;--Me)go(F,M+=4*Y,Y,1,16,ae,ye,Pe)}function Ks(F,M,Y,ae,ye,Pe){var Me;for(Me=3;0<Me;--Me)go(F,M+=4,1,Y,16,ae,ye,Pe)}function mi(F,M,Y,ae,ye,Pe,Me,Re){If(F,M,ye,1,8,Pe,Me,Re),If(Y,ae,ye,1,8,Pe,Me,Re)}function hf(F,M,Y,ae,ye,Pe,Me,Re){If(F,M,1,ye,8,Pe,Me,Re),If(Y,ae,1,ye,8,Pe,Me,Re)}function Tp(F,M,Y,ae,ye,Pe,Me,Re){go(F,M+4*ye,ye,1,8,Pe,Me,Re),go(Y,ae+4*ye,ye,1,8,Pe,Me,Re)}function ec(F,M,Y,ae,ye,Pe,Me,Re){go(F,M+4,1,ye,8,Pe,Me,Re),go(Y,ae+4,1,ye,8,Pe,Me,Re)}function Ad(){this.ba=new od,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new js,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function rp(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function vs(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Up(){this.ua=0,this.Wa=new vt,this.vb=new vt,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new kt,this.yc=new $e}function Jh(){this.xb=this.a=0,this.l=new q,this.ca=new od,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Te,this.Pb=0,this.wd=new Te,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Up,this.ab=0,this.gc=U(4,vs),this.Oc=0}function jf(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new q,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Za(F,M,Y,ae,ye,Pe,Me){for(F=null==F?0:F[M+0],M=0;M<Me;++M)ye[Pe+M]=F+Y[ae+M]&255,F=ye[Pe+M]}function ap(F,M,Y,ae,ye,Pe,Me){var Re;if(null==F)Za(null,null,Y,ae,ye,Pe,Me);else for(Re=0;Re<Me;++Re)ye[Pe+Re]=F[M+Re]+Y[ae+Re]&255}function mf(F,M,Y,ae,ye,Pe,Me){if(null==F)Za(null,null,Y,ae,ye,Pe,Me);else{var Re,Ge=F[M+0],et=Ge,Yt=Ge;for(Re=0;Re<Me;++Re)et=Yt+(Ge=F[M+Re])-et,Yt=Y[ae+Re]+(-256&et?0>et?0:255:et)&255,et=Ge,ye[Pe+Re]=Yt}}function _u(F,M,Y,ae){var ye=M.width,Pe=M.o;if(y(null!=F&&null!=M),0>Y||0>=ae||Y+ae>Pe)return null;if(!F.Cc){if(null==F.ga){var Me;if(F.ga=new jf,(Me=null==F.ga)||(Me=M.width*M.o,y(0==F.Gb.length),F.Gb=D(Me),F.Uc=0,null==F.Gb?Me=0:(F.mb=F.Gb,F.nb=F.Uc,F.rc=null,Me=1),Me=!Me),!Me){var Re=F.Fa,Ge=F.P,et=F.qc,Yt=F.mb,gn=F.nb,pn=Ge+1,Kt=et-1,fi=(Me=F.ga).l;if(y(null!=Re&&null!=Yt&&null!=M),Vf[0]=null,Vf[1]=Za,Vf[2]=ap,Vf[3]=mf,Me.ca=Yt,Me.tb=gn,Me.c=M.width,Me.i=M.height,y(0<Me.c&&0<Me.i),1>=et)M=0;else if(Me.$a=3&Re[Ge+0],Me.Z=Re[Ge+0]>>2&3,Me.Lc=Re[Ge+0]>>4&3,Ge=Re[Ge+0]>>6&3,0>Me.$a||1<Me.$a||4<=Me.Z||1<Me.Lc||Ge)M=0;else if(fi.put=Zd,fi.ac=Io,fi.bc=Qd,fi.ma=Me,fi.width=M.width,fi.height=M.height,fi.Da=M.Da,fi.v=M.v,fi.va=M.va,fi.j=M.j,fi.o=M.o,Me.$a)e:{y(1==Me.$a),M=dl();t:for(;;){if(null==M){M=0;break e}if(y(null!=Me),Me.mc=M,M.c=Me.c,M.i=Me.i,M.l=Me.l,M.l.ma=Me,M.l.width=Me.c,M.l.height=Me.i,M.a=0,xn(M.m,Re,pn,Kt),!Ql(Me.c,Me.i,1,M,null)||(1==M.ab&&3==M.gc[0].hc&&Ao(M.s)?(Me.ic=1,Re=M.c*M.i,M.Ta=null,M.Ua=0,M.V=D(Re),M.Ba=0,null==M.V?(M.a=1,M=0):M=1):(Me.ic=0,M=Ra(M,Me.c)),!M))break t;M=1;break e}Me.mc=null,M=0}else M=Kt>=Me.c*Me.i;Me=!M}if(Me)return null;1!=F.ga.Lc?F.Ga=0:ae=Pe-Y}y(null!=F.ga),y(Y+ae<=Pe);e:{if(M=(Re=F.ga).c,Pe=Re.l.o,0==Re.$a){if(pn=F.rc,Kt=F.Vc,fi=F.Fa,et=F.mb,Yt=F.nb+Y*M,y((Ge=F.P+1+Y*M)<=F.P+F.qc),0!=Re.Z)for(y(null!=Vf[Re.Z]),Me=0;Me<ae;++Me)Vf[Re.Z](pn,Kt,fi,Ge,et,Yt,M),pn=et,Kt=Yt,Yt+=M,Ge+=M;else for(Me=0;Me<ae;++Me)P(et,Yt,fi,Ge,M),pn=et,Kt=Yt,Yt+=M,Ge+=M;F.rc=pn,F.Vc=Kt}else{if(y(null!=Re.mc),M=Y+ae,y(null!=(Me=Re.mc)),y(M<=Me.i),Me.C>=M)M=1;else if(Re.ic||Ut(),Re.ic){Re=Me.V,pn=Me.Ba;var Bn=Me.i,Bt=(fi=1,Ge=Me.$/(Kt=Me.c),et=Me.$%Kt,Yt=Me.m,gn=Me.s,Me.$),Ht=Kt*Bn,ci=Kt*M,wi=gn.wc,di=Bt<ci?cl(gn,et,Ge):null;y(Bt<=Ht),y(M<=Bn),y(Ao(gn));t:for(;;){for(;!Yt.h&&Bt<ci;){if(et&wi||(di=cl(gn,et,Ge)),y(null!=di),Qt(Yt),256>(Bn=Cl(di.G[0],di.H[0],Yt)))Re[pn+Bt]=Bn,++Bt,++et>=Kt&&(et=0,++Ge<=M&&!(Ge%16)&&sd(Me,Ge));else{if(!(280>Bn)){fi=0;break t}Bn=yl(Bn-256,Yt);var br,Ji=Cl(di.G[4],di.H[4],Yt);if(Qt(Yt),!(Bt>=(Ji=Cd(Kt,Ji=yl(Ji,Yt)))&&Ht-Bt>=Bn)){fi=0;break t}for(br=0;br<Bn;++br)Re[pn+Bt+br]=Re[pn+Bt+br-Ji];for(Bt+=Bn,et+=Bn;et>=Kt;)et-=Kt,++Ge<=M&&!(Ge%16)&&sd(Me,Ge);Bt<ci&&et&wi&&(di=cl(gn,et,Ge))}y(Yt.h==dt(Yt))}sd(Me,Ge>M?M:Ge);break t}!fi||Yt.h&&Bt<Ht?(fi=0,Me.a=Yt.h?5:3):Me.$=Bt,M=fi}else M=Xr(Me,Me.V,Me.Ba,Me.c,Me.i,M,eu);if(!M){ae=0;break e}}Y+ae>=Pe&&(F.Cc=1),ae=1}if(!ae)return null;if(F.Cc&&(null!=(ae=F.ga)&&(ae.mc=null),F.ga=null,0<F.Ga))return alert("todo:WebPDequantizeLevels"),null}return F.nb+Y*ye}function z(F,M,Y,ae,ye,Pe){for(;0<ye--;){var Me,Re=F,Ge=M+(Y?1:0),et=F,Yt=M+(Y?0:3);for(Me=0;Me<ae;++Me){var gn=et[Yt+4*Me];255!=gn&&(Re[Ge+4*Me+0]=Re[Ge+4*Me+0]*(gn*=32897)>>23,Re[Ge+4*Me+1]=Re[Ge+4*Me+1]*gn>>23,Re[Ge+4*Me+2]=Re[Ge+4*Me+2]*gn>>23)}M+=Pe}}function ge(F,M,Y,ae,ye){for(;0<ae--;){var Pe;for(Pe=0;Pe<Y;++Pe){var Me=F[M+2*Pe+0],Re=15&(et=F[M+2*Pe+1]),Ge=4369*Re,et=(240&et|et>>4)*Ge>>16;F[M+2*Pe+0]=(240&Me|Me>>4)*Ge>>16&240|(15&Me|Me<<4)*Ge>>16>>4&15,F[M+2*Pe+1]=240&et|Re}M+=ye}}function rt(F,M,Y,ae,ye,Pe,Me,Re){var Ge,et,Yt=255;for(et=0;et<ye;++et){for(Ge=0;Ge<ae;++Ge){var gn=F[M+Ge];Pe[Me+4*Ge]=gn,Yt&=gn}M+=Y,Me+=Re}return 255!=Yt}function gt(F,M,Y,ae,ye){var Pe;for(Pe=0;Pe<ye;++Pe)Y[ae+Pe]=F[M+Pe]>>8}function Ut(){fp=z,lh=ge,Hu=rt,Ku=gt}function ri(F,M,Y){At[F]=function(ae,ye,Pe,Me,Re,Ge,et,Yt,gn,pn,Kt,fi,Bn,Bt,Ht,ci,wi){var di,br=wi-1>>1,Ji=Re[Ge+0]|et[Yt+0]<<16,na=gn[pn+0]|Kt[fi+0]<<16;y(null!=ae);var ir=3*Ji+na+131074>>2;for(M(ae[ye+0],255&ir,ir>>16,Bn,Bt),null!=Pe&&M(Pe[Me+0],255&(ir=3*na+Ji+131074>>2),ir>>16,Ht,ci),di=1;di<=br;++di){var uo=Re[Ge+di]|et[Yt+di]<<16,Yo=gn[pn+di]|Kt[fi+di]<<16,vo=Ji+uo+na+Yo+524296,no=vo+2*(uo+na)>>3;ir=no+Ji>>1,Ji=(vo=vo+2*(Ji+Yo)>>3)+uo>>1,M(ae[ye+2*di-1],255&ir,ir>>16,Bn,Bt+(2*di-1)*Y),M(ae[ye+2*di-0],255&Ji,Ji>>16,Bn,Bt+(2*di-0)*Y),null!=Pe&&(Ji=no+Yo>>1,M(Pe[Me+2*di-1],255&(ir=vo+na>>1),ir>>16,Ht,ci+(2*di-1)*Y),M(Pe[Me+2*di+0],255&Ji,Ji>>16,Ht,ci+(2*di+0)*Y)),Ji=uo,na=Yo}1&wi||(M(ae[ye+wi-1],255&(ir=3*Ji+na+131074>>2),ir>>16,Bn,Bt+(wi-1)*Y),null!=Pe&&M(Pe[Me+wi-1],255&(ir=3*na+Ji+131074>>2),ir>>16,Ht,ci+(wi-1)*Y))}}function ki(){ku[Pd]=sg,ku[_o]=am,ku[em]=Im,ku[Fl]=om,ku[yh]=jm,ku[ch]=$p,ku[co]=Rm,ku[tm]=am,ku[yf]=om,ku[Ec]=jm,ku[Ep]=$p}function cr(F){return F&~lm?0>F?0:255:F>>sm}function Jr(F,M){return cr((19077*F>>8)+(26149*M>>8)-14234)}function ua(F,M,Y){return cr((19077*F>>8)-(6419*M>>8)-(13320*Y>>8)+8708)}function Xa(F,M){return cr((19077*F>>8)+(33050*M>>8)-17685)}function ga(F,M,Y,ae,ye){ae[ye+0]=Jr(F,Y),ae[ye+1]=ua(F,M,Y),ae[ye+2]=Xa(F,M)}function Qa(F,M,Y,ae,ye){ae[ye+0]=Xa(F,M),ae[ye+1]=ua(F,M,Y),ae[ye+2]=Jr(F,Y)}function ta(F,M,Y,ae,ye){var Pe=ua(F,M,Y);M=Pe<<3&224|Xa(F,M)>>3,ae[ye+0]=248&Jr(F,Y)|Pe>>5,ae[ye+1]=M}function is(F,M,Y,ae,ye){var Pe=240&Xa(F,M)|15;ae[ye+0]=240&Jr(F,Y)|ua(F,M,Y)>>4,ae[ye+1]=Pe}function tc(F,M,Y,ae,ye){ae[ye+0]=255,ga(F,M,Y,ae,ye+1)}function nc(F,M,Y,ae,ye){Qa(F,M,Y,ae,ye),ae[ye+3]=255}function Bc(F,M,Y,ae,ye){ga(F,M,Y,ae,ye),ae[ye+3]=255}function wc(F,M){return 0>F?0:F>M?M:F}function Yu(F,M,Y){At[F]=function(ae,ye,Pe,Me,Re,Ge,et,Yt,gn){for(var pn=Yt+(-2&gn)*Y;Yt!=pn;)M(ae[ye+0],Pe[Me+0],Re[Ge+0],et,Yt),M(ae[ye+1],Pe[Me+0],Re[Ge+0],et,Yt+Y),ye+=2,++Me,++Ge,Yt+=2*Y;1&gn&&M(ae[ye+0],Pe[Me+0],Re[Ge+0],et,Yt)}}function cd(F,M,Y){return 0==Y?0==F?0==M?6:5:0==M?4:0:Y}function gf(F,M,Y,ae,ye){switch(F>>>30){case 3:xf(M,Y,ae,ye,0);break;case 2:Nf(M,Y,ae,ye);break;case 1:bu(M,Y,ae,ye)}}function vu(F,M){var Y,ae,ye=M.M,Pe=M.Nb,Me=F.oc,Re=F.pc+40,Ge=F.oc,et=F.pc+584,Yt=F.oc,gn=F.pc+600;for(Y=0;16>Y;++Y)Me[Re+32*Y-1]=129;for(Y=0;8>Y;++Y)Ge[et+32*Y-1]=129,Yt[gn+32*Y-1]=129;for(0<ye?Me[Re-1-32]=Ge[et-1-32]=Yt[gn-1-32]=129:(N(Me,Re-32-1,127,21),N(Ge,et-32-1,127,9),N(Yt,gn-32-1,127,9)),ae=0;ae<F.za;++ae){var pn=M.ya[M.aa+ae];if(0<ae){for(Y=-1;16>Y;++Y)P(Me,Re+32*Y-4,Me,Re+32*Y+12,4);for(Y=-1;8>Y;++Y)P(Ge,et+32*Y-4,Ge,et+32*Y+4,4),P(Yt,gn+32*Y-4,Yt,gn+32*Y+4,4)}var Kt=F.Gd,fi=F.Hd+ae,Bn=pn.ad,Bt=pn.Hc;if(0<ye&&(P(Me,Re-32,Kt[fi].y,0,16),P(Ge,et-32,Kt[fi].f,0,8),P(Yt,gn-32,Kt[fi].ea,0,8)),pn.Za){var Ht=Me,ci=Re-32+16;for(0<ye&&(ae>=F.za-1?N(Ht,ci,Kt[fi].y[15],4):P(Ht,ci,Kt[fi+1].y,0,4)),Y=0;4>Y;Y++)Ht[ci+128+Y]=Ht[ci+256+Y]=Ht[ci+384+Y]=Ht[ci+0+Y];for(Y=0;16>Y;++Y,Bt<<=2)au[pn.Ob[Y]](Ht=Me,ci=Re+cm[Y]),gf(Bt,Bn,16*+Y,Ht,ci)}else if(Ht=cd(ae,ye,pn.Ob[0]),Gf[Ht](Me,Re),0!=Bt)for(Y=0;16>Y;++Y,Bt<<=2)gf(Bt,Bn,16*+Y,Me,Re+cm[Y]);for(Y=pn.Gc,Ht=cd(ae,ye,pn.Dd),Zu[Ht](Ge,et),Zu[Ht](Yt,gn),Bt=Bn,Ht=Ge,ci=et,255&(pn=0|Y)&&(170&pn?Sd(Bt,256,Ht,ci):Js(Bt,256,Ht,ci)),pn=Yt,Bt=gn,255&(Y>>=8)&&(170&Y?Sd(Bn,320,pn,Bt):Js(Bn,320,pn,Bt)),ye<F.Ub-1&&(P(Kt[fi].y,0,Me,Re+480,16),P(Kt[fi].f,0,Ge,et+224,8),P(Kt[fi].ea,0,Yt,gn+224,8)),Kt=F.sa,fi=F.ta+16*ae+16*Pe*F.R,Bn=F.qa,pn=F.ra+8*ae+(Y=8*Pe*F.B),Bt=F.Ha,Ht=F.Ia+8*ae+Y,Y=0;16>Y;++Y)P(Kt,fi+Y*F.R,Me,Re+32*Y,16);for(Y=0;8>Y;++Y)P(Bn,pn+Y*F.B,Ge,et+32*Y,8),P(Bt,Ht+Y*F.B,Yt,gn+32*Y,8)}}function Fc(F,M,Y,ae,ye,Pe,Me,Re,Ge){var et=[0],Yt=[0],gn=0,pn=null!=Ge?Ge.kd:0,Kt=Ge??new rp;if(null==F||12>Y)return 7;Kt.data=F,Kt.w=M,Kt.ha=Y,M=[M],Y=[Y],Kt.gb=[Kt.gb];e:{var fi=M,Bn=Y,Bt=Kt.gb;if(y(null!=F),y(null!=Bn),y(null!=Bt),Bt[0]=0,12<=Bn[0]&&!k(F,fi[0],"RIFF")){if(k(F,fi[0]+8,"WEBP")){Bt=3;break e}var Ht=Hi(F,fi[0]+4);if(12>Ht||4294967286<Ht){Bt=3;break e}if(pn&&Ht>Bn[0]-8){Bt=7;break e}Bt[0]=Ht,fi[0]+=12,Bn[0]-=12}Bt=0}if(0!=Bt)return Bt;for(Ht=0<Kt.gb[0],Y=Y[0];;){e:{var ci=F;Bn=M,Bt=Y;var wi=et,di=Yt,br=fi=[0];if((ir=gn=[gn])[0]=0,8>Bt[0])Bt=7;else{if(!k(ci,Bn[0],"VP8X")){if(10!=Hi(ci,Bn[0]+4)){Bt=3;break e}if(18>Bt[0]){Bt=7;break e}var Ji=Hi(ci,Bn[0]+8),na=1+Zn(ci,Bn[0]+12);if(2147483648<=na*(ci=1+Zn(ci,Bn[0]+15))){Bt=3;break e}null!=br&&(br[0]=Ji),null!=wi&&(wi[0]=na),null!=di&&(di[0]=ci),Bn[0]+=18,Bt[0]-=18,ir[0]=1}Bt=0}}if(gn=gn[0],0!=Bt)return Bt;if(Bn=!!(2&(fi=fi[0])),!Ht&&gn)return 3;if(null!=Pe&&(Pe[0]=!!(16&fi)),null!=Me&&(Me[0]=Bn),null!=Re&&(Re[0]=0),Me=et[0],fi=Yt[0],gn&&Bn&&null==Ge){Bt=0;break}if(4>Y){Bt=7;break}if(Ht&&gn||!Ht&&!gn&&!k(F,M[0],"ALPH")){Y=[Y],Kt.na=[Kt.na],Kt.P=[Kt.P],Kt.Sa=[Kt.Sa];e:{Bt=M,Ht=Y;var ir=Kt.gb;wi=Kt.na,di=Kt.P,br=Kt.Sa,na=22,y(null!=(Ji=F)),y(null!=Ht),ci=Bt[0];var uo=Ht[0];for(y(null!=wi),y(null!=br),wi[0]=null,di[0]=null,br[0]=0;;){if(Bt[0]=ci,Ht[0]=uo,8>uo){Bt=7;break e}var Yo=Hi(Ji,ci+4);if(4294967286<Yo){Bt=3;break e}var vo=8+Yo+1&-2;if(na+=vo,0<ir&&na>ir){Bt=3;break e}if(!k(Ji,ci,"VP8 ")||!k(Ji,ci,"VP8L")){Bt=0;break e}if(uo[0]<vo){Bt=7;break e}k(Ji,ci,"ALPH")||(wi[0]=Ji,di[0]=ci+8,br[0]=Yo),ci+=vo,uo-=vo}}if(Y=Y[0],Kt.na=Kt.na[0],Kt.P=Kt.P[0],Kt.Sa=Kt.Sa[0],0!=Bt)break}Y=[Y],Kt.Ja=[Kt.Ja],Kt.xa=[Kt.xa];e:if(ir=F,Bt=M,Ht=Y,wi=Kt.gb[0],di=Kt.Ja,br=Kt.xa,Ji=Bt[0],ci=!k(ir,Ji,"VP8 "),na=!k(ir,Ji,"VP8L"),y(null!=ir),y(null!=Ht),y(null!=di),y(null!=br),8>Ht[0])Bt=7;else{if(ci||na){if(ir=Hi(ir,Ji+4),12<=wi&&ir>wi-12){Bt=3;break e}if(pn&&ir>Ht[0]-8){Bt=7;break e}di[0]=ir,Bt[0]+=8,Ht[0]-=8,br[0]=na}else br[0]=5<=Ht[0]&&47==ir[Ji+0]&&!(ir[Ji+4]>>5),di[0]=Ht[0];Bt=0}if(Y=Y[0],Kt.Ja=Kt.Ja[0],Kt.xa=Kt.xa[0],M=M[0],0!=Bt)break;if(4294967286<Kt.Ja)return 3;if(null==Re||Bn||(Re[0]=Kt.xa?2:1),Me=[Me],fi=[fi],Kt.xa){if(5>Y){Bt=7;break}Re=Me,pn=fi,Bn=Pe,null==F||5>Y?F=0:5<=Y&&47==F[M+0]&&!(F[M+4]>>5)?(Ht=[0],ir=[0],wi=[0],xn(di=new Te,F,M,Y),Ii(di,Ht,ir,wi)?(null!=Re&&(Re[0]=Ht[0]),null!=pn&&(pn[0]=ir[0]),null!=Bn&&(Bn[0]=wi[0]),F=1):F=0):F=0}else{if(10>Y){Bt=7;break}Re=fi,null==F||10>Y||!ue(F,M+3,Y-3)?F=0:(pn=F[M+0]|F[M+1]<<8|F[M+2]<<16,Bn=16383&(F[M+7]<<8|F[M+6]),F=16383&(F[M+9]<<8|F[M+8]),1&pn||3<(pn>>1&7)||!(pn>>4&1)||pn>>5>=Kt.Ja||!Bn||!F?F=0:(Me&&(Me[0]=Bn),Re&&(Re[0]=F),F=1))}if(!F||(Me=Me[0],fi=fi[0],gn&&(et[0]!=Me||Yt[0]!=fi)))return 3;null!=Ge&&(Ge[0]=Kt,Ge.offset=M-Ge.w,y(4294967286>M-Ge.w),y(Ge.offset==Ge.ha-Y));break}return 0==Bt||7==Bt&&gn&&null==Ge?(null!=Pe&&(Pe[0]|=null!=Kt.na&&0<Kt.na.length),null!=ae&&(ae[0]=Me),null!=ye&&(ye[0]=fi),0):Bt}function Wu(F,M,Y){var ae=M.width,ye=M.height,Pe=0,Me=0,Re=ae,Ge=ye;if(M.Da=null!=F&&0<F.Da,M.Da&&(Re=F.cd,Ge=F.bd,Pe=F.v,Me=F.j,11>Y||(Pe&=-2,Me&=-2),0>Pe||0>Me||0>=Re||0>=Ge||Pe+Re>ae||Me+Ge>ye))return 0;if(M.v=Pe,M.j=Me,M.va=Pe+Re,M.o=Me+Ge,M.U=Re,M.T=Ge,M.da=null!=F&&0<F.da,M.da){if(!pa(Re,Ge,Y=[F.ib],Pe=[F.hb]))return 0;M.ib=Y[0],M.hb=Pe[0]}return M.ob=null!=F&&F.ob,M.Kb=null==F||!F.Sd,M.da&&(M.ob=M.ib<3*ae/4&&M.hb<3*ye/4,M.Kb=0),1}function op(F){if(null==F)return 2;if(11>F.S){var M=F.f.RGBA;M.fb+=(F.height-1)*M.A,M.A=-M.A}else(M=F.f.kb).O+=((F=F.height)-1)*M.fa,M.fa=-M.fa,M.N+=(F-1>>1)*M.Ab,M.Ab=-M.Ab,M.W+=(F-1>>1)*M.Db,M.Db=-M.Db,null!=M.F&&(M.J+=(F-1)*M.lb,M.lb=-M.lb);return 0}function Ac(F,M,Y,ae){if(null==ae||0>=F||0>=M)return 2;if(null!=Y){if(Y.Da){var ye=Y.cd,Pe=Y.bd,Me=-2&Y.v,Re=-2&Y.j;if(0>Me||0>Re||0>=ye||0>=Pe||Me+ye>F||Re+Pe>M)return 2;F=ye,M=Pe}if(Y.da){if(!pa(F,M,ye=[Y.ib],Pe=[Y.hb]))return 2;F=ye[0],M=Pe[0]}}ae.width=F,ae.height=M;e:{var Ge=ae.width,et=ae.height;if(F=ae.S,0>=Ge||0>=et||!(F>=Pd&&13>F))F=2;else{if(0>=ae.Rd&&null==ae.sd){Me=Pe=ye=M=0;var Yt=(Re=Ge*Bm[F])*et;if(11>F||(Pe=(et+1)/2*(M=(Ge+1)/2),12==F&&(Me=(ye=Ge)*et)),null==(et=D(Yt+2*Pe+Me))){F=1;break e}ae.sd=et,11>F?((Ge=ae.f.RGBA).eb=et,Ge.fb=0,Ge.A=Re,Ge.size=Yt):((Ge=ae.f.kb).y=et,Ge.O=0,Ge.fa=Re,Ge.Fd=Yt,Ge.f=et,Ge.N=0+Yt,Ge.Ab=M,Ge.Cd=Pe,Ge.ea=et,Ge.W=0+Yt+Pe,Ge.Db=M,Ge.Ed=Pe,12==F&&(Ge.F=et,Ge.J=0+Yt+2*Pe),Ge.Tc=Me,Ge.lb=ye)}if(M=1,Pe=ae.width,Me=ae.height,(ye=ae.S)>=Pd&&13>ye)if(11>ye)F=ae.f.RGBA,M&=(Re=Math.abs(F.A))*(Me-1)+Pe<=F.size,M&=Re>=Pe*Bm[ye],M&=null!=F.eb;else{F=ae.f.kb,Re=(Pe+1)/2,Yt=(Me+1)/2,Ge=Math.abs(F.fa),et=Math.abs(F.Ab);var gn=Math.abs(F.Db),pn=Math.abs(F.lb);M&=Ge*(Me-1)+Pe<=F.Fd,M&=et*(Yt-1)+Re<=F.Cd,M=(M&=gn*(Yt-1)+Re<=F.Ed)&Ge>=Pe&et>=Re&gn>=Re,M&=null!=F.y,M&=null!=F.f,M&=null!=F.ea,12==ye&&(M&=pn>=Pe,M&=pn*(Me-1)+Pe<=F.Tc,M&=null!=F.F)}else M=0;F=M?0:2}}return 0!=F||null!=Y&&Y.fd&&(F=op(ae)),F}var Tc=64,$u=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],sp=24,dd=32,_f=8,Sc=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,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,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];zi("Predictor0","PredictorAdd0"),At.Predictor0=function(){return 4278190080},At.Predictor1=function(F){return F},At.Predictor2=function(F,M,Y){return M[Y+0]},At.Predictor3=function(F,M,Y){return M[Y+1]},At.Predictor4=function(F,M,Y){return M[Y-1]},At.Predictor5=function(F,M,Y){return qi(qi(F,M[Y+1]),M[Y+0])},At.Predictor6=function(F,M,Y){return qi(F,M[Y-1])},At.Predictor7=function(F,M,Y){return qi(F,M[Y+0])},At.Predictor8=function(F,M,Y){return qi(M[Y-1],M[Y+0])},At.Predictor9=function(F,M,Y){return qi(M[Y+0],M[Y+1])},At.Predictor10=function(F,M,Y){return qi(qi(F,M[Y-1]),qi(M[Y+0],M[Y+1]))},At.Predictor11=function(F,M,Y){var ae=M[Y+0];return 0>=Se(ae>>24&255,F>>24&255,(M=M[Y-1])>>24&255)+Se(ae>>16&255,F>>16&255,M>>16&255)+Se(ae>>8&255,F>>8&255,M>>8&255)+Se(255&ae,255&F,255&M)?ae:F},At.Predictor12=function(F,M,Y){var ae=M[Y+0];return(sr((F>>24&255)+(ae>>24&255)-((M=M[Y-1])>>24&255))<<24|sr((F>>16&255)+(ae>>16&255)-(M>>16&255))<<16|sr((F>>8&255)+(ae>>8&255)-(M>>8&255))<<8|sr((255&F)+(255&ae)-(255&M)))>>>0},At.Predictor13=function(F,M,Y){var ae=M[Y-1];return(Sr((F=qi(F,M[Y+0]))>>24&255,ae>>24&255)<<24|Sr(F>>16&255,ae>>16&255)<<16|Sr(F>>8&255,ae>>8&255)<<8|Sr(255&F,255&ae))>>>0};var Zh=At.PredictorAdd0;At.PredictorAdd1=Ca,zi("Predictor2","PredictorAdd2"),zi("Predictor3","PredictorAdd3"),zi("Predictor4","PredictorAdd4"),zi("Predictor5","PredictorAdd5"),zi("Predictor6","PredictorAdd6"),zi("Predictor7","PredictorAdd7"),zi("Predictor8","PredictorAdd8"),zi("Predictor9","PredictorAdd9"),zi("Predictor10","PredictorAdd10"),zi("Predictor11","PredictorAdd11"),zi("Predictor12","PredictorAdd12"),zi("Predictor13","PredictorAdd13");var xu=At.PredictorAdd2;Aa("ColorIndexInverseTransform","MapARGB","32b",function(F){return F>>8&255},function(F){return F}),Aa("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(F){return F},function(F){return F>>8&255});var Td,Nl=At.ColorIndexInverseTransform,fl=At.MapARGB,Rf=At.VP8LColorIndexInverseTransformAlpha,Lf=At.MapAlpha,ic=At.VP8LPredictorsAdd=[];ic.length=16,(At.VP8LPredictors=[]).length=16,(At.VP8LPredictorsAdd_C=[]).length=16,(At.VP8LPredictors_C=[]).length=16;var ru,qu,lp,vf,cp,Sp,jo,xf,Nf,Sd,bu,Js,zr,yu,dp,Ed,bf,Ro,Xu,Ya,ls,pl,Bl,up,fp,lh,Hu,Ku,Bf=D(511),Gl=D(2041),Ju=D(225),Qh=D(767),Yp=0,pp=Gl,Pa=Ju,Zs=Qh,rc=Bf,Pd=0,_o=1,em=2,Fl=3,yh=4,ch=5,co=6,tm=7,yf=8,Ec=9,Ep=10,Ch=[2,3,7],kh=[3,3,11],wh=[280,256,256,256,40],Cf=[0,1,1,1,0],Fh=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Cu=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,3
vendor: 4,386 bytes, line 58
586,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Pp=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Om=8,Ah=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Th=[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,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Wp=null,Sh=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],nm=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Dm=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],rg=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,25
585,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],ag=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,
581,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],im=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,25
vendor: 24,391 bytes, lines 58-83
585,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],og=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Gf=[],au=[],Zu=[],Eh=1,rm=2,Vf=[],ku=[];ri("UpsampleRgbLinePair",ga,3),ri("UpsampleBgrLinePair",Qa,3),ri("UpsampleRgbaLinePair",Bc,4),ri("UpsampleBgraLinePair",nc,4),ri("UpsampleArgbLinePair",tc,4),ri("UpsampleRgba4444LinePair",is,2),ri("UpsampleRgb565LinePair",ta,2);var sg=At.UpsampleRgbLinePair,Im=At.UpsampleBgrLinePair,am=At.UpsampleRgbaLinePair,om=At.UpsampleBgraLinePair,jm=At.UpsampleArgbLinePair,$p=At.UpsampleRgba4444LinePair,Rm=At.UpsampleRgb565LinePair,dh=16,Gc=1<<dh-1,uh=-227,Ph=482,sm=6,lm=(256<<sm)-1,zf=0,Lm=D(256),lg=D(256),Al=D(256),Pc=D(256),Tl=D(Ph-uh),wu=D(Ph-uh);Yu("YuvToRgbRow",ga,3),Yu("YuvToBgrRow",Qa,3),Yu("YuvToRgbaRow",Bc,4),Yu("YuvToBgraRow",nc,4),Yu("YuvToArgbRow",tc,4),Yu("YuvToRgba4444Row",is,2),Yu("YuvToRgb565Row",ta,2);var cm=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Mh=[0,2,8],Nm=[8,7,6,4,4,2,2,2,1,1,1,1];this.WebPDecodeRGBA=function(F,M,Y,ae,ye){var Pe=_o,Me=new Ad,Re=new od;Me.ba=Re,Re.S=Pe,Re.width=[Re.width],Re.height=[Re.height];var Ge=Re.width,et=Re.height,Yt=new pu;if(null==Yt||null==F)var gn=2;else y(null!=Yt),gn=Fc(F,M,Y,Yt.width,Yt.height,Yt.Pd,Yt.Qd,Yt.format,null);if(0!=gn?Ge=0:(null!=Ge&&(Ge[0]=Yt.width[0]),null!=et&&(et[0]=Yt.height[0]),Ge=1),Ge){Re.width=Re.width[0],Re.height=Re.height[0],null!=ae&&(ae[0]=Re.width),null!=ye&&(ye[0]=Re.height);e:{if(ae=new q,(ye=new rp).data=F,ye.w=M,ye.ha=Y,ye.kd=1,M=[0],y(null!=ye),(0==(F=Fc(ye.data,ye.w,ye.ha,null,null,null,M,null,ye))||7==F)&&M[0]&&(F=4),0==(M=F)){if(y(null!=Me),ae.data=ye.data,ae.w=ye.w+ye.offset,ae.ha=ye.ha-ye.offset,ae.put=Zd,ae.ac=Io,ae.bc=Qd,ae.ma=Me,ye.xa){if(null==(F=dl())){Me=1;break e}if(function(pn,Kt){var fi=[0],Bn=[0],Bt=[0];t:for(;;){if(null==pn)return 0;if(null==Kt)return pn.a=2,0;if(pn.l=Kt,pn.a=0,xn(pn.m,Kt.data,Kt.w,Kt.ha),!Ii(pn.m,fi,Bn,Bt)){pn.a=3;break t}if(pn.xb=rm,Kt.width=fi[0],Kt.height=Bn[0],!Ql(fi[0],Bn[0],1,pn,null))break t;return 1}return y(0!=pn.a),0}(F,ae)){if(ae=0==(M=Ac(ae.width,ae.height,Me.Oa,Me.ba))){t:{ae=F;n:for(;;){if(null==ae){ae=0;break t}if(y(null!=ae.s.yc),y(null!=ae.s.Ya),y(0<ae.s.Wb),y(null!=(Y=ae.l)),y(null!=(ye=Y.ma)),0!=ae.xb){if(ae.ca=ye.ba,ae.tb=ye.tb,y(null!=ae.ca),!Wu(ye.Oa,Y,Fl)){ae.a=2;break n}if(!Ra(ae,Y.width)||Y.da)break n;if((Y.da||Fo(ae.ca.S))&&Ut(),11>ae.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=ae.ca.f.kb.F&&Ut()),ae.Pb&&0<ae.s.ua&&null==ae.s.vb.X&&!$r(ae.s.vb,ae.s.Wa.Xa)){ae.a=1;break n}ae.xb=0}if(!Xr(ae,ae.V,ae.Ba,ae.c,ae.i,Y.o,qs))break n;ye.Dc=ae.Ma,ae=1;break t}y(0!=ae.a),ae=0}ae=!ae}ae&&(M=F.a)}else M=F.a}else{if(null==(F=new V)){Me=1;break e}if(F.Fa=ye.na,F.P=ye.P,F.qc=ye.Sa,pe(F,ae)){if(0==(M=Ac(ae.width,ae.height,Me.Oa,Me.ba))){if(F.Aa=0,Y=Me.Oa,y(null!=(ye=F)),null!=Y){if(0<(Ge=0>(Ge=Y.Md)?0:100<Ge?255:255*Ge/100)){for(et=Yt=0;4>et;++et)12>(gn=ye.pb[et]).lc&&(gn.ia=Ge*Nm[0>gn.lc?0:gn.lc]>>3),Yt|=gn.ia;Yt&&(alert("todo:VP8InitRandom"),ye.ia=1)}ye.Ga=Y.Id,100<ye.Ga?ye.Ga=100:0>ye.Ga&&(ye.Ga=0)}(function xt(F,M){if(null==F)return 0;if(null==M)return Z(F,2,"NULL VP8Io parameter in VP8Decode().");if(!F.cb&&!pe(F,M))return 0;if(y(F.cb),null==M.ac||M.ac(M)){M.ob&&(F.L=0);var Y=Mh[F.L];if(2==F.L?(F.yb=0,F.zb=0):(F.yb=M.v-Y>>4,F.zb=M.j-Y>>4,0>F.yb&&(F.yb=0),0>F.zb&&(F.zb=0)),F.Va=M.o+15+Y>>4,F.Hb=M.va+15+Y>>4,F.Hb>F.za&&(F.Hb=F.za),F.Va>F.Ub&&(F.Va=F.Ub),0<F.L){var ae=F.ed;for(Y=0;4>Y;++Y){var ye;if(F.Qa.Cb){var Pe=F.Qa.Lb[Y];F.Qa.Fb||(Pe+=ae.Tb)}else Pe=ae.Tb;for(ye=0;1>=ye;++ye){var Me=F.gd[Y][ye],Re=Pe;if(ae.Pc&&(Re+=ae.vd[0],ye&&(Re+=ae.od[0])),0<(Re=0>Re?0:63<Re?63:Re)){var Ge=Re;0<ae.wb&&(Ge=4<ae.wb?Ge>>2:Ge>>1)>9-ae.wb&&(Ge=9-ae.wb),1>Ge&&(Ge=1),Me.dd=Ge,Me.tc=2*Re+Ge,Me.ld=40<=Re?2:15<=Re?1:0}else Me.tc=0;Me.La=ye}}}Y=0}else Z(F,6,"Frame setup failed"),Y=F.a;if(Y=0==Y){if(Y){F.$c=0,0<F.Aa||(F.Ic=1);e:{ae=4*(Ge=F.za);var et=32*Ge,Yt=Ge+1,gn=0<F.L?Ge*(0<F.Aa?2:1):0,pn=(2==F.Aa?2:1)*Ge;if((Me=ae+832+(ye=3*(16*(Y=F.Ic)+Mh[F.L])/2*et)+(Pe=null!=F.Fa&&0<F.Fa.length?F.Kc.c*F.Kc.i:0))!=Me)Y=0;else{if(Me>F.Vb){if(F.Vb=0,F.Ec=D(Me),F.Fc=0,null==F.Ec){Y=Z(F,1,"no memory during frame initialization.");break e}F.Vb=Me}Re=F.Fc,F.Ac=Me=F.Ec,F.Bc=Re,Re+=ae,F.Gd=U(et,O),F.Hd=0,F.rb=U(Yt+1,f),F.sb=1,F.wa=gn?U(gn,c):null,F.Y=0,F.D.Nb=0,F.D.wa=F.wa,F.D.Y=F.Y,0<F.Aa&&(F.D.Y+=Ge),y(!0),F.oc=Me,F.pc=Re,Re+=832,F.ya=U(pn,v),F.aa=0,F.D.ya=F.ya,F.D.aa=F.aa,2==F.Aa&&(F.D.aa+=Ge),F.R=16*Ge,F.B=8*Ge,Ge=(et=Mh[F.L])*F.R,et=et/2*F.B,F.sa=Me,F.ta=Re+Ge,F.qa=F.sa,F.ra=F.ta+16*Y*F.R+et,F.Ha=F.qa,F.Ia=F.ra+8*Y*F.B+et,F.$c=0,Re+=ye,F.mb=Pe?Me:null,F.nb=Pe?Re:null,y(Re+Pe<=F.Fc+F.Vb),ft(F),N(F.Ac,F.Bc,0,ae),Y=1}}if(Y){if(M.ka=0,M.y=F.sa,M.O=F.ta,M.f=F.qa,M.N=F.ra,M.ea=F.Ha,M.Vd=F.Ia,M.fa=F.R,M.Rc=F.B,M.F=null,M.J=0,!Yp){for(Y=-255;255>=Y;++Y)Bf[255+Y]=0>Y?-Y:Y;for(Y=-1020;1020>=Y;++Y)Gl[1020+Y]=-128>Y?-128:127<Y?127:Y;for(Y=-112;112>=Y;++Y)Ju[112+Y]=-16>Y?-16:15<Y?15:Y;for(Y=-255;510>=Y;++Y)Qh[255+Y]=0>Y?0:255<Y?255:Y;Yp=1}jo=Ga,xf=ma,Sd=la,bu=La,Js=Or,Nf=Ui,zr=ul,yu=Rn,dp=mi,Ed=hf,bf=Uu,Ro=Ks,Xu=Tp,Ya=ec,ls=Va,pl=np,Bl=Ap,up=ip,au[0]=ld,au[1]=gs,au[2]=nu,au[3]=kp,au[4]=wp,au[5]=ff,au[6]=uf,au[7]=_s,au[8]=Fp,au[9]=Qf,Gf[0]=zu,Gf[1]=Fs,Gf[2]=ns,Gf[3]=wl,Gf[4]=Xs,Gf[5]=tu,Gf[6]=Ll,Zu[0]=tp,Zu[1]=Rs,Zu[2]=Of,Zu[3]=ep,Zu[4]=Fd,Zu[5]=pf,Zu[6]=Df,Y=1}else Y=0}Y&&(Y=function(Kt,fi){for(Kt.M=0;Kt.M<Kt.Va;++Kt.M){var Bn,Bt=Kt.Jc[Kt.M&Kt.Xb],Ht=Kt.m,ci=Kt;for(Bn=0;Bn<ci.za;++Bn){var wi=Ht,di=ci,br=di.Ac,Ji=di.Bc+4*Bn,na=di.zc,ir=di.ya[di.aa+Bn];if(ir.$b=di.Qa.Bb?Ln(wi,di.Pa.jb[0])?2+Ln(wi,di.Pa.jb[2]):Ln(wi,di.Pa.jb[1]):0,di.kc&&(ir.Ad=Ln(wi,di.Bd)),ir.Za=!Ln(wi,145)+0,ir.Za){var uo=ir.Ob,Yo=0;for(di=0;4>di;++di){var vo,no=na[0+di];for(vo=0;4>vo;++vo){for(var _a=Dm[Ln(wi,(no=ag[br[Ji+vo]][no])[0])];0<_a;)_a=Dm[2*_a+Ln(wi,no[_a])];br[Ji+vo]=no=-_a}P(uo,Yo,br,Ji,4),Yo+=4,na[0+di]=no}}else no=Ln(wi,156)?Ln(wi,128)?1:3:Ln(wi,163)?2:0,ir.Ob[0]=no,N(br,Ji,no,4),N(na,0,no,4);ir.Dd=Ln(wi,142)?Ln(wi,114)?Ln(wi,183)?1:3:2:0}if(ci.m.Ka)return Z(Kt,7,"Premature end-of-partition0 encountered.");for(;Kt.ja<Kt.za;++Kt.ja){if(ci=Bt,wi=(Ht=Kt).rb[Ht.sb-1],br=Ht.rb[Ht.sb+Ht.ja],Bn=Ht.ya[Ht.aa+Ht.ja],Ji=Ht.kc?Bn.Ad:0)wi.la=br.la=0,Bn.Za||(wi.Na=br.Na=0),Bn.Hc=0,Bn.Gc=0,Bn.ia=0;else{var Wo,Na;if(wi=br,br=ci,Ji=Ht.Pa.Xc,ir=Ht.pb[(na=Ht.ya[Ht.aa+Ht.ja]).$b],Yo=Ht.rb[Ht.sb-1],no=vo=0,N(di=na.ad,uo=0,0,384),na.Za)var Qs=0,Vc=Ji[3];else{_a=D(16);var Sl=wi.Na+Yo.Na;if(Sl=Wp(br,Ji[1],Sl,ir.Eb,0,_a,0),wi.Na=Yo.Na=(0<Sl)+0,1<Sl)jo(_a,0,di,uo);else{var Md=_a[0]+3>>3;for(_a=0;256>_a;_a+=16)di[uo+_a]=Md}Qs=1,Vc=Ji[0]}var $o=15&wi.la,Mc=15&Yo.la;for(_a=0;4>_a;++_a){var Fu=1&Mc;for(Md=Na=0;4>Md;++Md)$o=$o>>1|(Fu=(Sl=Wp(br,Vc,Sl=Fu+(1&$o),ir.Sc,Qs,di,uo))>Qs)<<7,Na=Na<<2|(3<Sl?3:1<Sl?2:0!=di[uo+0]),uo+=16;$o>>=4,Mc=Mc>>1|Fu<<7,vo=(vo<<8|Na)>>>0}for(Vc=$o,Qs=Mc>>4,Wo=0;4>Wo;Wo+=2){for(Na=0,$o=wi.la>>4+Wo,Mc=Yo.la>>4+Wo,_a=0;2>_a;++_a){for(Fu=1&Mc,Md=0;2>Md;++Md)$o=$o>>1|(Fu=0<(Sl=Wp(br,Ji[2],Sl=Fu+(1&$o),ir.Qc,0,di,uo)))<<3,Na=Na<<2|(3<Sl?3:1<Sl?2:0!=di[uo+0]),uo+=16;$o>>=2,Mc=Mc>>1|Fu<<5}no|=Na<<4*Wo,Vc|=$o<<4<<Wo,Qs|=(240&Mc)<<Wo}wi.la=Vc,Yo.la=Qs,na.Hc=vo,na.Gc=no,na.ia=43690&no?0:ir.ia,Ji=!(vo|no)}if(0<Ht.L&&(Ht.wa[Ht.Y+Ht.ja]=Ht.gd[Bn.$b][Bn.Za],Ht.wa[Ht.Y+Ht.ja].La|=!Ji),ci.Ka)return Z(Kt,7,"Premature end-of-file encountered.")}if(ft(Kt),Ht=fi,ci=1,Bn=(Bt=Kt).D,wi=0<Bt.L&&Bt.M>=Bt.zb&&Bt.M<=Bt.Va,0==Bt.Aa)e:{if(Bn.M=Bt.M,Bn.uc=wi,vu(Bt,Bn),ci=1,Bn=(Na=Bt.D).Nb,wi=(no=Mh[Bt.L])*Bt.R,Ji=Bt.sa,na=Bt.ta-wi+(_a=16*Bn*Bt.R),ir=Bt.qa,di=Bt.ra-(br=no/2*Bt.B)+(Md=8*Bn*Bt.B),uo=Bt.Ha,Yo=Bt.Ia-br+Md,Mc=0==($o=Na.M),vo=$o>=Bt.Va-1,2==Bt.Aa&&vu(Bt,Na),Na.uc)for(Fu=(Sl=Bt).D.M,y(Sl.D.uc),Na=Sl.yb;Na<Sl.Hb;++Na){Vc=Fu;var uc=(Oc=(cs=Sl).D).Nb,Oc=Oc.wa[Oc.Y+(Qs=Na)],ud=cs.sa,Od=cs.ta+16*uc*(Wo=cs.R)+16*Qs,Qu=Oc.dd,fc=Oc.tc;if(0!=fc)if(y(3<=fc),1==cs.L)0<Qs&&pl(ud,Od,Wo,fc+4),Oc.La&&up(ud,Od,Wo,fc),0<Vc&&ls(ud,Od,Wo,fc+4),Oc.La&&Bl(ud,Od,Wo,fc);else{var Au=cs.B,kf=cs.qa,qp=cs.ra+8*uc*Au+8*Qs,Dd=cs.Ha,cs=cs.Ia+8*uc*Au+8*Qs;uc=Oc.ld,0<Qs&&(yu(ud,Od,Wo,fc+4,Qu,uc),Ed(kf,qp,Dd,cs,Au,fc+4,Qu,uc)),Oc.La&&(Ro(ud,Od,Wo,fc,Qu,uc),Ya(kf,qp,Dd,cs,Au,fc,Qu,uc)),0<Vc&&(zr(ud,Od,Wo,fc+4,Qu,uc),dp(kf,qp,Dd,cs,Au,fc+4,Qu,uc)),Oc.La&&(bf(ud,Od,Wo,fc,Qu,uc),Xu(kf,qp,Dd,cs,Au,fc,Qu,uc))}}if(Bt.ia&&alert("todo:DitherRow"),null!=Ht.put){if(Na=16*$o,$o=16*($o+1),Mc?(Ht.y=Bt.sa,Ht.O=Bt.ta+_a,Ht.f=Bt.qa,Ht.N=Bt.ra+Md,Ht.ea=Bt.Ha,Ht.W=Bt.Ia+Md):(Na-=no,Ht.y=Ji,Ht.O=na,Ht.f=ir,Ht.N=di,Ht.ea=uo,Ht.W=Yo),vo||($o-=no),$o>Ht.o&&($o=Ht.o),Ht.F=null,Ht.J=null,null!=Bt.Fa&&0<Bt.Fa.length&&Na<$o&&(Ht.J=_u(Bt,Ht,Na,$o-Na),Ht.F=Bt.mb,null==Ht.F&&0==Ht.F.length)){ci=Z(Bt,3,"Could not decode alpha data.");break e}Na<Ht.j&&(no=Ht.j-Na,Na=Ht.j,y(!(1&no)),Ht.O+=Bt.R*no,Ht.N+=Bt.B*(no>>1),Ht.W+=Bt.B*(no>>1),null!=Ht.F&&(Ht.J+=Ht.width*no)),Na<$o&&(Ht.O+=Ht.v,Ht.N+=Ht.v>>1,Ht.W+=Ht.v>>1,null!=Ht.F&&(Ht.J+=Ht.v),Ht.ka=Na-Ht.j,Ht.U=Ht.va-Ht.v,Ht.T=$o-Na,ci=Ht.put(Ht))}Bn+1!=Bt.Ic||vo||(P(Bt.sa,Bt.ta-wi,Ji,na+16*Bt.R,wi),P(Bt.qa,Bt.ra-br,ir,di+8*Bt.B,br),P(Bt.Ha,Bt.Ia-br,uo,Yo+8*Bt.B,br))}if(!ci)return Z(Kt,6,"Output aborted.")}return 1}(F,M)),null!=M.bc&&M.bc(M),Y&=1}return Y?(F.cb=0,Y):0})(F,ae)||(M=F.a)}}else M=F.a}0==M&&null!=Me.Oa&&Me.Oa.fd&&(M=op(Me.ba))}Me=M}Pe=0!=Me?null:11>Pe?Re.f.RGBA.eb:Re.f.kb.y}else Pe=null;return Pe};var Bm=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function de(At,qn){for(var ii="",He=0;He<4;He++)ii+=String.fromCharCode(At[qn++]);return ii}function ve(At,qn){return(At[qn+0]|At[qn+1]<<8|At[qn+2]<<16)>>>0}function Ae(At,qn){return(At[qn+0]|At[qn+1]<<8|At[qn+2]<<16|At[qn+3]<<24)>>>0}new X;var Le=[0],oe=[0],at=[],We=new X,ht=A,Ve=function(At,qn){var ii={},He=0,$e=!1,jt=0,kt=0;if(ii.frames=[],! 59/** @license 60 * Copyright (c) 2017 Dominik Homberger 61 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 62 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 63 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 64 https://webpjs.appspot.com 65 WebPRiffParser [email protected] 66 */ 67function(Qe,dt,Nt,Qt){for(var Cn=0;Cn<4;Cn++)if(Qe[dt+Cn]!="RIFF".charCodeAt(Cn))return!0;return!1}(At,qn)){var On,Dn;for(Ae(At,qn+=4),qn+=8;qn<At.length;){var Xn=de(At,qn),xn=Ae(At,qn+=4);qn+=4;var oi=xn+(1&xn);switch(Xn){case"VP8 ":case"VP8L":void 0===ii.frames[He]&&(ii.frames[He]={}),(Te=ii.frames[He]).src_off=$e?kt:qn-8,Te.src_size=jt+xn+8,He++,$e&&($e=!1,jt=0,kt=0);break;case"VP8X":(Te=ii.header={}).feature_flags=At[qn];var ai=qn+4;Te.canvas_width=1+ve(At,ai),Te.canvas_height=1+ve(At,ai+=3),ai+=3;break;case"ALPH":$e=!0,jt=oi+8,kt=qn-8;break;case"ANIM":(Te=ii.header).bgcolor=Ae(At,qn),Te.loop_count=(On=At)[(Dn=ai=qn+4)+0]|On[Dn+1]<<8,ai+=2;break;case"ANMF":var Qi,Te;(Te=ii.frames[He]={}).offset_x=2*ve(At,qn),Te.offset_y=2*ve(At,qn+=3),Te.width=1+ve(At,qn+=3),Te.height=1+ve(At,qn+=3),Te.duration=ve(At,qn+=3),qn+=3,Qi=At[qn++],Te.dispose=1&Qi,Te.blend=Qi>>1&1}"ANMF"!=Xn&&(qn+=oi)}return ii}}(ht,0);Ve.response=ht,Ve.rgbaoutput=!0,Ve.dataurl=!1;var ot=Ve.header?Ve.header:null,Rt=Ve.frames?Ve.frames:null;if(ot){ot.loop_counter=ot.loop_count,Le=[ot.canvas_height],oe=[ot.canvas_width];for(var Jt=0;Jt<Rt.length&&0!=Rt[Jt].blend;Jt++);}var An=Rt[0],hi=We.WebPDecodeRGBA(ht,An.src_off,An.src_size,oe,Le);An.rgba=hi,An.imgwidth=oe[0],An.imgheight=Le[0];for(var mn=0;mn<oe[0]*Le[0]*4;mn++)at[mn]=hi[mn];return this.width=oe,this.height=Le,this.data=at,this}(function(A){var k=function(Le,oe,at,We){var ht=4,Ve=U;switch(We){case A.image_compression.FAST:ht=1,Ve=D;break;case A.image_compression.MEDIUM:ht=6,Ve=W;break;case A.image_compression.SLOW:ht=9,Ve=X}var ot=Jc(Le=P(Le,oe,at,Ve),{level:ht});return A.__addimage__.arrayBufferToBinaryString(ot)},P=function(Le,oe,at,We){for(var ht,Ve,ot,Rt=Le.length/oe,Jt=new Uint8Array(Le.length+Rt),An=ve(),hi=0;hi<Rt;hi+=1){if(ht=Le.subarray(ot=hi*oe,ot+oe),We)Jt.set(We(ht,at,Ve),ot+hi);else{for(var mn,At=An.length,qn=[];mn<At;mn+=1)qn[mn]=An[mn](ht,at,Ve);var ii=Ae(qn.concat());Jt.set(qn[ii],ot+hi)}Ve=ht}return Jt},N=function(Le){var oe=Array.apply([],Le);return oe.unshift(0),oe},D=function(Le,oe){var We=[],ht=Le.length;We[0]=1;for(var Ve=0;Ve<ht;Ve+=1)We[Ve+1]=Le[Ve]-(Le[Ve-oe]||0)+256&255;return We},U=function(Le,oe,at){var ht=[],Ve=Le.length;ht[0]=2;for(var ot=0;ot<Ve;ot+=1)ht[ot+1]=Le[ot]-(at&&at[ot]||0)+256&255;return ht},W=function(Le,oe,at){var Ve=[],ot=Le.length;Ve[0]=3;for(var Rt=0;Rt<ot;Rt+=1)Ve[Rt+1]=Le[Rt]+256-((Le[Rt-oe]||0)+(at&&at[Rt]||0)>>>1)&255;return Ve},X=function(Le,oe,at){var ot,Rt=[],Jt=Le.length;Rt[0]=4;for(var An=0;An<Jt;An+=1)ot=de(Le[An-oe]||0,at&&at[An]||0,at&&at[An-oe]||0),Rt[An+1]=Le[An]-ot+256&255;return Rt},de=function(Le,oe,at){if(Le===oe&&oe===at)return Le;var We=Math.abs(oe-at),ht=Math.abs(Le-at),Ve=Math.abs(Le+oe-at-at);return We<=ht&&We<=Ve?Le:ht<=Ve?oe:at},ve=function(){return[N,D,U,W,X]},Ae=function(Le){var oe=Le.map(function(at){return at.reduce(function(We,ht){return We+Math.abs(ht)},0)});return oe.indexOf(Math.min.apply(null,oe))};A.processPNG=function(Le,oe,at,We){var ht,Ve,ot,Rt,Jt,An,hi,mn,At,qn,ii,He,$e,jt,kt,On=this.decode.FLATE_DECODE,Dn="";if(this.__addimage__.isArrayBuffer(Le)&&(Le=new Uint8Array(Le)),this.__addimage__.isArrayBufferView(Le)){if(Le=(ot=new Kd(Le)).imgData,Ve=ot.bits,ht=ot.colorSpace,Jt=ot.colors,-1!==[4,6].indexOf(ot.colorType)){if(8===ot.bits){At=(mn=32==ot.pixelBitlength?new Uint32Array(ot.decodePixels().buffer):16==ot.pixelBitlength?new Uint16Array(ot.decodePixels().buffer):new Uint8Array(ot.decodePixels().buffer)).length,ii=new Uint8Array(At*ot.colors),qn=new Uint8Array(At);var Xn,xn=ot.pixelBitlength-ot.bits;for(jt=0,kt=0;jt<At;jt++){for($e=mn[jt],Xn=0;Xn<xn;)ii[kt++]=$e>>>Xn&255,Xn+=ot.bits;qn[jt]=$e>>>Xn&255}}if(16===ot.bits){At=(mn=new Uint32Array(ot.decodePixels().buffer)).length,ii=new Uint8Array(At*(32/ot.pixelBitlength)*ot.colors),qn=new Uint8Array(At*(32/ot.pixelBitlength)),He=ot.colors>1,jt=0,kt=0;for(var oi=0;jt<At;)$e=mn[jt++],ii[kt++]=$e>>>0&255,He&&(ii[kt++]=$e>>>16&255,$e=mn[jt++],ii[kt++]=$e>>>0&255),qn[oi++]=$e>>>16&255;Ve=8}We!==A.image_compression.NONE?(Le=k(ii,ot.width*ot.colors,ot.colors,We),hi=k(qn,ot.width,1,We)):(Le=ii,hi=qn,On=void 0)}if(3===ot.colorType&&(ht=this.color_spaces.INDEXED,An=ot.palette,ot.transparency.indexed)){var ai=ot.transparency.indexed,Qi=0;for(jt=0,At=ai.length;jt<At;++jt)Qi+=ai[jt];if((Qi/=255)==At-1&&-1!==ai.indexOf(0))Rt=[ai.indexOf(0)];else if(Qi!==At){for(mn=ot.decodePixels(),qn=new Uint8Array(mn.length),jt=0,At=mn.length;jt<At;jt++)qn[jt]=ai[mn[jt]];hi=k(qn,ot.width,1)}}var Te=function(Qe){var dt;switch(Qe){case A.image_compression.FAST:dt=11;break;case A.image_compression.MEDIUM:dt=13;break;case A.image_compression.SLOW:dt=14;break;default:dt=12}return dt}(We);return On===this.decode.FLATE_DECODE&&(Dn="/Predictor "+Te+" "),Dn+="/Colors "+Jt+" /BitsPerComponent "+Ve+" /Columns "+ot.width,(this.__addimage__.isArrayBuffer(Le)||this.__addimage__.isArrayBufferView(Le))&&(Le=this.__addimage__.arrayBufferToBinaryString(Le)),(hi&&this.__addimage__.isArrayBuffer(hi)||this.__addimage__.isArrayBufferView(hi))&&(hi=this.__addimage__.arrayBufferToBinaryString(hi)),{alias:at,data:Le,index:oe,filter:On,decodeParameters:Dn,transparency:Rt,palette:An,sMask:hi,predictor:Te,width:ot.width,height:ot.height,bitsPerComponent:Ve,colorSpace:ht}}}})(xr.API),function(A){A.processGIF89A=function(y,k,P,N){var D=new yd(y),U=D.width,W=D.height,X=[];D.decodeAndBlitFrameRGBA(0,X);var de={data:X,width:U,height:W},ve=new rd(100).encode(de,100);return A.processJPEG.call(this,ve,k,P,N)},A.processGIF87A=A.processGIF89A}(xr.API),da.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var A=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(A);for(var y=0;y<A;y++){var k=this.datav.getUint8(this.pos++,!0),P=this.datav.getUint8(this.pos++,!0),N=this.datav.getUint8(this.pos++,!0),D=this.datav.getUint8(this.pos++,!0);this.palette[y]={red:N,green:P,blue:k,quad:D}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},da.prototype.parseBGR=function(){this.pos=this.offset;try{var A="bit"+this.bitPP;this.data=new Uint8Array(this.width*this.height*4),this[A]()}catch(k){ro.log("bit decode error:"+k)}},da.prototype.bit1=function(){var A,y=Math.ceil(this.width/8),k=y%4;for(A=this.height-1;A>=0;A--){for(var P=this.bottom_up?A:this.height-1-A,N=0;N<y;N++)for(var D=this.datav.getUint8(this.pos++,!0),U=P*this.width*4+8*N*4,W=0;W<8&&8*N+W<this.width;W++){var X=this.palette[D>>7-W&1];this.data[U+4*W]=X.blue,this.data[U+4*W+1]=X.green,this.data[U+4*W+2]=X.red,this.data[U+4*W+3]=255}0!==k&&(this.pos+=4-k)}},da.prototype.bit4=function(){for(var A=Math.ceil(this.width/2),y=A%4,k=this.height-1;k>=0;k--){for(var P=this.bottom_up?k:this.height-1-k,N=0;N<A;N++){var D=this.datav.getUint8(this.pos++,!0),U=P*this.width*4+2*N*4,X=15&D,de=this.palette[D>>4];if(this.data[U]=de.blue,this.data[U+1]=de.green,this.data[U+2]=de.red,this.data[U+3]=255,2*N+1>=this.width)break;this.data[U+4]=(de=this.palette[X]).blue,this.data[U+4+1]=de.green,this.data[U+4+2]=de.red,this.data[U+4+3]=255}0!==y&&(this.pos+=4-y)}},da.prototype.bit8=function(){for(var A=this.width%4,y=this.height-1;y>=0;y--){for(var k=this.bottom_up?y:this.height-1-y,P=0;P<this.width;P++){var N=this.datav.getUint8(this.pos++,!0),D=k*this.width*4+4*P;if(N<this.palette.length){var U=this.palette[N];this.data[D]=U.red,this.data[D+1]=U.green,this.data[D+2]=U.blue,this.data[D+3]=255}else this.data[D]=255,this.data[D+1]=255,this.data[D+2]=255,this.data[D+3]=255}0!==A&&(this.pos+=4-A)}},da.prototype.bit15=function(){for(var A=this.width%3,y=parseInt("11111",2),k=this.height-1;k>=0;k--){for(var P=this.bottom_up?k:this.height-1-k,N=0;N<this.width;N++){var D=this.datav.getUint16(this.pos,!0);this.pos+=2;var U=(D&y)/y*255|0,W=(D>>5&y)/y*255|0,de=D>>15?255:0,ve=P*this.width*4+4*N;this.data[ve]=(D>>10&y)/y*255|0,this.data[ve+1]=W,this.data[ve+2]=U,this.data[ve+3]=de}this.pos+=A}},da.prototype.bit16=function(){for(var A=this.width%3,y=parseInt("11111",2),k=parseInt("111111",2),P=this.height-1;P>=0;P--){for(var N=this.bottom_up?P:this.height-1-P,D=0;D<this.width;D++){var U=this.datav.getUint16(this.pos,!0);this.pos+=2;var W=(U&y)/y*255|0,X=(U>>5&k)/k*255|0,ve=N*this.width*4+4*D;this.data[ve]=(U>>11)/y*255|0,this.data[ve+1]=X,this.data[ve+2]=W,this.data[ve+3]=255}this.pos+=A}},da.prototype.bit24=function(){for(var A=this.height-1;A>=0;A--){for(var y=this.bottom_up?A:this.height-1-A,k=0;k<this.width;k++){var P=this.datav.getUint8(this.pos++,!0),N=this.datav.getUint8(this.pos++,!0),D=this.datav.getUint8(this.pos++,!0),U=y*this.width*4+4*k;this.data[U]=D,this.data[U+1]=N,this.data[U+2]=P,this.data[U+3]=255}this.pos+=this.width%4}},da.prototype.bit32=function(){for(var A=this.height-1;A>=0;A--)for(var y=this.bottom_up?A:this.height-1-A,k=0;k<this.width;k++){var P=this.datav.getUint8(this.pos++,!0),N=this.datav.getUint8(this.pos++,!0),D=this.datav.getUint8(this.pos++,!0),U=this.datav.getUint8(this.pos++,!0),W=y*this.width*4+4*k;this.data[W]=D,this.data[W+1]=N,this.data[W+2]=P,this.data[W+3]=U}},da.prototype.getData=function(){return this.data}, 68/** 69 * @license 70 * Copyright (c) 2018 Aras Abbasi 71 * 72 * Licensed under the MIT License. 73 * http://opensource.org/licenses/mit-license 74 */ 75function(A){A.processBMP=function(y,k,P,N){var D=new da(y,!1),U=D.width,W=D.height,X={data:D.getData(),width:U,height:W},de=new rd(100).encode(X,100);return A.processJPEG.call(this,de,k,P,N)}}(xr.API),df.prototype.getData=function(){return this.data}, 76/** 77 * @license 78 * Copyright (c) 2019 Aras Abbasi 79 * 80 * Licensed under the MIT License. 81 * http://opensource.org/licenses/mit-license 82 */ 83function(A){A.processWEBP=function(y,k,P,N){var D=new df(y,!1),U=D.width,W=D.height,X={data:D.getData(),width:U,height:W},de=new rd(100).encode(X,100);return A.processJPEG.call(this,de,k,P,N)}}(xr.API),xr.API.processRGBA=function(A,y,k){for(var P=A.data,N=P.length,D=new Uint8Array(N/4*3),U=new Uint8Array(N/4),W=0,X=0,de=0;de<N;de+=4){var Ae=P[de+1],Le=P[de+2],oe=P[de+3];D[W++]=P[de],D[W++]=Ae,D[W++]=Le,U[X++]=oe}var at=this.__addimage__.arrayBufferToBinaryString(D);return{alpha:this.__addimage__.arrayBufferToBinaryString(U),data:at,index:y,alias:k,colorSpace:"DeviceRGB",bitsPerComponent:8,width:A.width,height:A.height}},xr.API.setLanguage=function(A){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canad
83a)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[A]&&(this.internal.languageSettings.languageCode=A,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},cc=(Br=xr.API).getCharWidthsArray=function(A,y){var k,P,N=(y=y||{}).font||this.internal.getFont(),D=y.fontSize||this.internal.getFontSize(),U=y.charSpace||this.internal.getCharSpace(),W=y.widths?y.widths:N.metadata.Unicode.widths,X=W.fof?W.fof:1,de=y.kerning?y.kerning:N.metadata.Unicode.kerning,ve=de.fof?de.fof:1,Ae=!1!==y.doKerning,Le=0,oe=A.length,at=0,We=W[0]||X,ht=[];for(k=0;k<oe;k++)P=A.charCodeAt(k),"function"==typeof N.metadata.widthOfString?ht.push((N.metadata.widthOfGlyph(N.metadata.characterToGlyph(P))+U*(1e3/D)||0)/1e3):(Le=Ae&&"object"===(0,E.A)(de[P])&&!isNaN(parseInt(de[P][at],10))?de[P][at]/ve:0,ht.push((W[P]||We)/X+Le)),at=P;return ht},ya=Br.getStringUnitWidth=function(A,y){var k=(y=y||{}).fontSize||this.internal.getFontSize(),P=y.font||this.internal.getFont(),N=y.charSpace||this.internal.getCharSpace();return Br.processArabic&&(A=Br.processArabic(A)),"function"==typeof P.metadata.widthOfString?P.metadata.widthOfString(A,k,N)/k:cc.apply(this,arguments).reduce(function(D,U){return D+U},0)},Bu=function(A,y,k,P){for(var N=[],D=0,U=A.length,W=0;D!==U&&W+y[D]<k;)W+=y[D],D++;N.push(A.slice(0,D));var X=D;for(W=0;D!==U;)W+y[D]>P&&(N.push(A.slice(X,D)),W=0,X=D),W+=y[D],D++;return X!==D&&N.push(A.slice(X,D)),N},ss=function(A,y,k){k||(k={});var P,N,D,U,W,X,ve=[],Ae=[ve],Le=k.textIndent||0,oe=0,at=0,We=A.split(" "),ht=cc.apply(this,[" ",k])[0];if(X=-1===k.lineIndent?We[0].length+2:k.lineIndent||0){var Ve=Array(X).join(" "),ot=[];We.map(function(Jt){(Jt=Jt.split(/\s*\n/)).length>
vendor: 4,262 bytes, line 83
831?ot=ot.concat(Jt.map(function(An,hi){return(hi&&An.length?"\n":"")+An})):ot.push(Jt[0])}),We=ot,X=ya.apply(this,[Ve,k])}for(D=0,U=We.length;D<U;D++){var Rt=0;if(P=We[D],X&&"\n"==P[0]&&(P=P.substr(1),Rt=1),Le+oe+(at=(N=cc.apply(this,[P,k])).reduce(function(Jt,An){return Jt+An},0))>y||Rt){if(at>y){for(W=Bu.apply(this,[P,N,y-(Le+oe),y]),ve.push(W.shift()),ve=[W.pop()];W.length;)Ae.push([W.shift()]);at=N.slice(P.length-(ve[0]?ve[0].length:0)).reduce(function(Jt,An){return Jt+An},0)}else ve=[P];Ae.push(ve),Le=at+X,oe=ht}else ve.push(P),Le+=oe+at,oe=ht}return Ae.map(X?function(Jt,An){return(An?Ve:"")+Jt.join(" ")}:function(Jt){return Jt.join(" ")})},Br.splitTextToSize=function(A,y,k){var P,N=(k=k||{}).fontSize||this.internal.getFontSize(),D=function(ve){if(ve.widths&&ve.kerning)return{widths:ve.widths,kerning:ve.kerning};var Ae=this.internal.getFont(ve.fontName,ve.fontStyle);return Ae.metadata.Unicode?{widths:Ae.metadata.Unicode.widths||{0:1},kerning:Ae.metadata.Unicode.kerning||{}}:{font:Ae.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,k);P=Array.isArray(A)?A:String(A).split(/\r?\n/);var U=1*this.internal.scaleFactor*y/N;D.textIndent=k.textIndent?1*k.textIndent*this.internal.scaleFactor/N:0,D.lineIndent=k.lineIndent;var W,X,de=[];for(W=0,X=P.length;W<X;W++)de=de.concat(ss.apply(this,[P[W],U,D]));return de},function(A){A.__fontmetrics__=A.__fontmetrics__||{};for(var y="klmnopqrstuvwxyz",k={},P={},N=0;N<16;N++)k[y[N]]="0123456789abcdef"[N],P["0123456789abcdef"[N]]=y[N];var D=function(Ae){return"0x"+parseInt(Ae,10).toString(16)},U=A.__fontmetrics__.compress=function(Ae){var Le,oe,at,We,ht=["{"];for(var Ve in Ae){if(Le=Ae[Ve],isNaN(parseInt(Ve,10))?oe="'"+Ve+"'":(Ve=parseInt(Ve,10),oe=(oe=D(Ve).slice(2)).slice(0,-1)+P[oe.slice(-1)]),"number"==typeof Le)Le<0?(at=D(Le).slice(3),We="-"):(at=D(Le).slice(2),We=""),at=We+at.slice(0,-1)+P[at.slice(-1)];else{if("object"!==(0,E.A)(Le))throw new Error("Don't know what to do with value type "+(0,E.A)(Le)+".");at=U(Le)}ht.push(oe+at)}return ht.push("}"),ht.join("")},W=A.__fontmetrics__.uncompress=function(Ae){if("string"!=typeof Ae)throw new Error("Invalid argument passed to uncompress.");for(var Le,oe,at,We,ht={},Ve=1,ot=ht,Rt=[],Jt="",An="",hi=Ae.length-1,mn=1;mn<hi;mn+=1)"'"==(We=Ae[mn])?Le?(at=Le.join(""),Le=void 0):Le=[]:Le?Le.push(We):"{"==We?(Rt.push([ot,at]),ot={},at=void 0):"}"==We?((oe=Rt.pop())[0][oe[1]]=ot,at=void 0,ot=oe[0]):"-"==We?Ve=-1:void 0===at?k.hasOwnProperty(We)?(Jt+=k[We],at=parseInt(Jt,16)*Ve,Ve=1,Jt=""):Jt+=We:k.hasOwnProperty(We)?(An+=k[We],ot[at]=parseInt(An,16)*Ve,Ve=1,at=void 0,An=""):An+=We;return ht},X={codePages:["WinAnsiEncoding"],WinAnsiEncoding:W("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},de={Unicode:{Courier:X,"Courier-Bold":X,"Courier-BoldOblique":X,"Courier-Oblique":X,Helvetica:X,"Helvetica-Bold":X,"Helvetica-BoldOblique":X,"Helvetica-Oblique":X,"Times-Roman":X,"Times-Bold":X,"Times-BoldItalic":X,"Times-Italic":X}},ve={Unicode:{"Courier-Oblique":W("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":W("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}
833u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":W("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
83dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:W("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":W("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":W("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:W("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:W("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
83dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":W("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
83dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:W("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":W("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":W("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}
83fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":W("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":W("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
vendor: 54,177 bytes, lines 83-129
83dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};A.events.push(["addFont",function(Ae){var Le=Ae.font,oe=ve.Unicode[Le.postScriptName];oe&&(Le.metadata.Unicode={},Le.metadata.Unicode.widths=oe.widths,Le.metadata.Unicode.kerning=oe.kerning);var at=de.Unicode[Le.postScriptName];at&&(Le.metadata.Unicode.encoding=at,Le.encoding=at.codePages[0])}])}(xr.API), 84/** 85 * @license 86 * Licensed under the MIT License. 87 * http://opensource.org/licenses/mit-license 88 */ 89function(A){var y=function(k){for(var P=k.length,N=new Uint8Array(P),D=0;D<P;D++)N[D]=k.charCodeAt(D);return N};A.API.events.push(["addFont",function(k){var U,W,P=void 0,N=k.font,D=k.instance;if(!N.isStandardFont){if(void 0===D)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+N.postScriptName+"').");if("string"!=typeof(P=!1===D.existsFileInVFS(N.postScriptName)?D.loadFile(N.postScriptName):D.getFileFromVFS(N.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+N.postScriptName+"').");U=N,W=/^\x00\x01\x00\x00/.test(W=P)?y(W):y(Sa(W)),U.metadata=A.API.TTFFont.open(W),U.metadata.Unicode=U.metadata.Unicode||{encoding:{},kerning:{},widths:[]},U.metadata.glyIdsUsed=[0]}}])}(xr),xr.API.addSvgAsImage=function(k,P,N,D,U,W,X,de){if(isNaN(P)||isNaN(N))throw ro.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(D)||isNaN(U))throw ro.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var ve=document.createElement("canvas");ve.width=D,ve.height=U;var Ae=ve.getContext("2d");Ae.fillStyle="#fff",Ae.fillRect(0,0,ve.width,ve.height);var Le={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},oe=this;return function y(){return(Vr.canvg?Promise.resolve(Vr.canvg):bn.e(147).then(bn.bind(bn,20147))).catch(function(k){return Promise.reject(new Error("Could not load canvg: "+k))}).then(function(k){return k.default?k.default:k})}().then(function(at){return at.fromString(Ae,k,Le)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(at){return at.render(Le)}).then(function(){oe.addImage(ve.toDataURL("image/jpeg",1),P,N,D,U,X,de)})},xr.API.putTotalPages=function(A){var y,k=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(y=new RegExp(A,"g"),k=this.internal.getNumberOfPages()):(y=new RegExp(this.pdfEscape16(A,this.internal.getFont()),"g"),k=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var P=1;P<=this.internal.getNumberOfPages();P++)for(var N=0;N<this.internal.pages[P].length;N++)this.internal.pages[P][N]=this.internal.pages[P][N].replace(y,k);return this},xr.API.viewerPreferences=function(A,y){var k;A=A||{},y=y||!1;var P,N,D,U={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},W=Object.keys(U),X=[],de=0,ve=0,Ae=0;function Le(at,We){var ht,Ve=!1;for(ht=0;ht<at.length;ht+=1)at[ht]===We&&(Ve=!0);return Ve}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(U)),this.internal.viewerpreferences.isSubscribed=!1),k=this.internal.viewerpreferences.configuration,"reset"===A||!0===y){var oe=W.length;for(Ae=0;Ae<oe;Ae+=1)k[W[Ae]].value=k[W[Ae]].defaultValue,k[W[Ae]].explicitSet=!1}if("object"===(0,E.A)(A))for(N in A)if(D=A[N],Le(W,N)&&void 0!==D){if("boolean"===k[N].type&&"boolean"==typeof D)k[N].value=D;else if("name"===k[N].type&&Le(k[N].valueSet,D))k[N].value=D;else if("integer"===k[N].type&&Number.isInteger(D))k[N].value=D;else if("array"===k[N].type){for(de=0;de<D.length;de+=1)if(P=!0,1===D[de].length&&"number"==typeof D[de][0])X.push(String(D[de]-1));else if(D[de].length>1){for(ve=0;ve<D[de].length;ve+=1)"number"!=typeof D[de][ve]&&(P=!1);!0===P&&X.push([D[de][0]-1,D[de][1]-1].join(" "))}k[N].value="["+X.join(" ")+"]"}else k[N].value=k[N].defaultValue;k[N].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){var at,We=[];for(at in k)!0===k[at].explicitSet&&We.push("name"===k[at].type?"/"+at+" /"+k[at].value:"/"+at+" "+k[at].value);0!==We.length&&this.internal.write("/ViewerPreferences\n<<\n"+We.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=k,this}, 90/** ==================================================================== 91 * @license 92 * jsPDF XMP metadata plugin 93 * Copyright (c) 2016 Jussi Utunen, [email protected] 94 * 95 * Permission is hereby granted, free of charge, to any person obtaining 96 * a copy of this software and associated documentation files (the 97 * "Software"), to deal in the Software without restriction, including 98 * without limitation the rights to use, copy, modify, merge, publish, 99 * distribute, sublicense, and/or sell copies of the Software, and to 100 * permit persons to whom the Software is furnished to do so, subject to 101 * the following conditions: 102 * 103 * The above copyright notice and this permission notice shall be 104 * included in all copies or substantial portions of the Software. 105 * 106 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 107 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 108 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 109 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 110 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 111 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 112 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 113 * ==================================================================== 114 */ 115function(A){var y=function(){var P='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',N=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),D=unescape(encodeURIComponent(P)),U=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),W=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),X=unescape(encodeURIComponent("</x:xmpmeta>")),de=D.length+U.length+W.length+N.length+X.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+de+" >>"),this.internal.write("stream"),this.internal.write(N+D+U+W+X),this.internal.write("endstream"),this.internal.write("endobj")},k=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};A.addMetadata=function(P,N){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:P,namespaceuri:N||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",k),this.internal.events.subscribe("postPutResources",y)),this}}(xr.API),function(A){var y=A.API,k=y.pdfEscape16=function(D,U){for(var W,X=U.metadata.Unicode.widths,de=["","0","00","000","0000"],ve=[""],Ae=0,Le=D.length;Ae<Le;++Ae){if(W=U.metadata.characterToGlyph(D.charCodeAt(Ae)),U.metadata.glyIdsUsed.push(W),U.metadata.toUnicode[W]=D.charCodeAt(Ae),-1==X.indexOf(W)&&(X.push(W),X.push([parseInt(U.metadata.widthOfGlyph(W),10)])),"0"==W)return ve.join("");W=W.toString(16),ve.push(de[4-W.length],W)}return ve.join("")},P=function(D){var U,W,X,de,ve,Ae,Le;for(ve="/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><ffff>\nendcodespacerange",X=[],Ae=0,Le=(W=Object.keys(D).sort(function(oe,at){return oe-at})).length;Ae<Le;Ae++)U=W[Ae],X.length>=100&&(ve+="\n"+X.length+" beginbfchar\n"+X.join("\n")+"\nendbfchar",X=[]),null!=D[U]&&"function"==typeof D[U].toString&&(de=("0000"+D[U].toString(16)).slice(-4),U=("0000"+(+U).toString(16)).slice(-4),X.push("<"+U+"><"+de+">"));return X.length&&(ve+="\n"+X.length+" beginbfchar\n"+X.join("\n")+"\nendbfchar\n"),ve+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};y.events.push(["putFont",function(D){!function(U){var W=U.font,X=U.out,de=U.newObject,ve=U.putStream;if(W.metadata instanceof A.API.TTFFont&&"Identity-H"===W.encoding){for(var Ae=W.metadata.Unicode.widths,Le=W.metadata.subset.encode(W.metadata.glyIdsUsed,1),oe="",at=0;at<Le.length;at++)oe+=String.fromCharCode(Le[at]);var We=de();ve({data:oe,addLength1:!0,objectId:We}),X("endobj");var ht=de();ve({data:P(W.metadata.toUnicode),addLength1:!0,objectId:ht}),X("endobj");var Ve=de();X("<<"),X("/Type /FontDescriptor"),X("/FontName /"+Ci(W.fontName)),X("/FontFile2 "+We+" 0 R"),X("/FontBBox "+A.API.PDFObject.convert(W.metadata.bbox)),X("/Flags "+W.metadata.flags),X("/StemV "+W.metadata.stemV),X("/ItalicAngle "+W.metadata.italicAngle),X("/Ascent "+W.metadata.ascender),X("/Descent "+W.metadata.decender),X("/CapHeight "+W.metadata.capHeight),X(">>"),X("endobj");var ot=de();X("<<"),X("/Type /Font"),X("/BaseFont /"+Ci(W.fontName)),X("/FontDescriptor "+Ve+" 0 R"),X("/W "+A.API.PDFObject.convert(Ae)),X("/CIDToGIDMap /Identity"),X("/DW 1000"),X("/Subtype /CIDFontType2"),X("/CIDSystemInfo"),X("<<"),X("/Supplement 0"),X("/Registry (Adobe)"),X("/Ordering ("+W.encoding+")"),X(">>"),X(">>"),X("endobj"),W.objectNumber=de(),X("<<"),X("/Type /Font"),X("/Subtype /Type0"),X("/ToUnicode "+ht+" 0 R"),X("/BaseFont /"+Ci(W.fontName)),X("/Encoding /"+W.encoding),X("/DescendantFonts ["+ot+" 0 R]"),X(">>"),X("endobj"),W.isAlreadyPutted=!0}}(D)}]),y.events.push(["putFont",function(D){!function(U){var W=U.font,X=U.out,de=U.newObject,ve=U.putStream;if(W.metadata instanceof A.API.TTFFont&&"WinAnsiEncoding"===W.encoding){for(var Ae=W.metadata.rawData,Le="",oe=0;oe<Ae.length;oe++)Le+=String.fromCharCode(Ae[oe]);var at=de();ve({data:Le,addLength1:!0,objectId:at}),X("endobj");var We=de();ve({data:P(W.metadata.toUnicode),addLength1:!0,objectId:We}),X("endobj");var ht=de();X("<<"),X("/Descent "+W.metadata.decender),X("/CapHeight "+W.metadata.capHeight),X("/StemV "+W.metadata.stemV),X("/Type /FontDescriptor"),X("/FontFile2 "+at+" 0 R"),X("/Flags 96"),X("/FontBBox "+A.API.PDFObject.convert(W.metadata.bbox)),X("/FontName /"+Ci(W.fontName)),X("/ItalicAngle "+W.metadata.italicAngle),X("/Ascent "+W.metadata.ascender),X(">>"),X("endobj"),W.objectNumber=de();for(var Ve=0;Ve<W.metadata.hmtx.widths.length;Ve++)W.metadata.hmtx.widths[Ve]=parseInt(W.metadata.hmtx.widths[Ve]*(1e3/W.metadata.head.unitsPerEm));X("<</Subtype/TrueType/Type/Font/ToUnicode "+We+" 0 R/BaseFont/"+Ci(W.fontName)+"/FontDescriptor "+ht+" 0 R/Encoding/"+W.encoding+" /FirstChar 29 /LastChar 255 /Widths "+A.API.PDFObject.convert(W.metadata.hmtx.widths)+">>"),X("endobj"),W.isAlreadyPutted=!0}}(D)}]);var N=function(D){var U,W=D.text||"",X=D.x,de=D.y,ve=D.options||{},Ae=D.mutex||{},Le=Ae.pdfEscape,oe=Ae.activeFontKey,at=Ae.fonts,We=oe,ht="",Ve=0,ot="",Rt=at[We].encoding;if("Identity-H"!==at[We].encoding)return{text:W,x:X,y:de,options:ve,mutex:Ae};for(ot=W,We=oe,Array.isArray(W)&&(ot=W[0]),Ve=0;Ve<ot.length;Ve+=1)at[We].metadata.hasOwnProperty("cmap")&&(U=at[We].metadata.cmap.unicode.codeMap[ot[Ve].charCodeAt(0)]),U||ot[Ve].charCodeAt(0)<256&&at[We].metadata.hasOwnProperty("Unicode")?ht+=ot[Ve]:ht+="";var Jt="";return parseInt(We.slice(1))<14||"WinAnsiEncoding"===Rt?Jt=Le(ht,We).split("").map(function(An){return An.charCodeAt(0).toString(16)}).join(""):"Identity-H"===Rt&&(Jt=k(ht,at[We])),Ae.isHex=!0,{text:Jt,x:X,y:de,options:ve,mutex:Ae}};y.events.push(["postProcessText",function(D){var U=D.text||"",W=[],X={text:U,x:D.x,y:D.y,options:D.options,mutex:D.mutex};if(Array.isArray(U)){var de=0;for(de=0;de<U.length;de+=1)Array.isArray(U[de])&&3===U[de].length?W.push([N(Object.assign({},X,{text:U[de][0]})).text,U[de][1],U[de][2]]):W.push(N(Object.assign({},X,{text:U[de]})).text);D.text=W}else D.text=N(Object.assign({},X,{text:U})).text}])}(xr), 116/** 117 * @license 118 * jsPDF virtual FileSystem functionality 119 * 120 * Licensed under the MIT License. 121 * http://opensource.org/licenses/mit-license 122 */ 123function(A){var y=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};A.existsFileInVFS=function(k){return y.call(this),void 0!==this.internal.vFS[k]},A.addFileToVFS=function(k,P){return y.call(this),this.internal.vFS[k]=P,this},A.getFileFromVFS=function(k){return y.call(this),void 0!==this.internal.vFS[k]?this.internal.vFS[k]:null}}(xr.API), 124/** 125 * @license 126 * Unicode Bidi Engine based on the work of Alex Shensis (@asthensis) 127 * MIT License 128 */ 129function(A){A.__bidiEngine__=A.prototype.__bidiEngine__=function(P){var N,D,U,W,X,de,ve,Ae=y,Le=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],oe=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],at={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},We={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},ht=["(",")","(","<",">","<","[","]","[","{","}","{","\xab","\xbb","\xab","\u2039","\u203a","\u2039","\u2045","\u2046","\u2045","\u207d","\u207e","\u207d","\u208d","\u208e","\u208d","\u2264","\u2265","\u2264","\u2329","\u232a","\u2329","\ufe59","\ufe5a","\ufe59","\ufe5b","\ufe5c","\ufe5b","\ufe5d","\ufe5e","\ufe5d","\ufe64","\ufe65","\ufe64"],Ve=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),ot=!1,Rt=0;this.__bidiEngine__={};var Jt=function(He){var $e=He.charCodeAt(),jt=$e>>8,kt=We[jt];return void 0!==kt?Ae[256*kt+(255&$e)]:252===jt||253===jt?"AL":Ve.test(jt)?"L":8===jt?"R":"N"},An=function(He){for(var $e,jt=0;jt<He.length;jt++){if("L"===($e=Jt(He.charAt(jt))))return!1;if("R"===$e)return!0}return!1},hi=function(He,$e,jt,kt){var On,Dn,Xn,xn,oi=$e[kt];switch(oi){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":ot=!1;break;case"N":case"AN":break;case"EN":ot&&(oi="AN");break;case"AL":ot=!0,oi="R";break;case"WS":case"BN":oi="N";break;case"CS":kt<1||kt+1>=$e.length||"EN"!==(On=jt[kt-1])&&"AN"!==On||"EN"!==(Dn=$e[kt+1])&&"AN"!==Dn?oi="N":ot&&(Dn="AN"),oi=Dn===On?Dn:"N";break;case"ES":oi="EN"===(On=kt>0?jt[kt-1]:"B")&&kt+1<$e.length&&"EN"===$e[kt+1]?"EN":"N";break;case"ET":if(kt>0&&"EN"===jt[kt-1]){oi="EN";break}if(ot){oi="N";break}for(Xn=kt+1,xn=$e.length;Xn<xn&&"ET"===$e[Xn];)Xn++;oi=Xn<xn&&"EN"===$e[Xn]?"EN":"N";break;case"NSM":if(U&&!W){for(xn=$e.length,Xn=kt+1;Xn<xn&&"NSM"===$e[Xn];)Xn++;if(Xn<xn){var ai=He[kt];if(On=$e[Xn],(ai>=1425&&ai<=2303||64286===ai)&&("R"===On||"AL"===On)){oi="R";break}}}oi=kt<1||"B"===(On=$e[kt-1])?"N":jt[kt-1];break;case"B":ot=!1,N=!0,oi=Rt;break;case"S":D=!0,oi="N"}return oi},mn=function(He,$e,jt){var kt=He.split("");return jt&&At(kt,jt,{hiLevel:Rt}),kt.reverse(),$e&&$e.reverse(),kt.join("")},At=function(He,$e,jt){var kt,On,Dn,Xn,xn,oi=-1,ai=He.length,Qi=0,Te=[],Qe=Rt?oe:Le,dt=[];for(ot=!1,N=!1,D=!1,On=0;On<ai;On++)dt[On]=Jt(He[On]);for(Dn=0;Dn<ai;Dn++){if(xn=Qi,Te[Dn]=hi(He,dt,Te,Dn),kt=240&(Qi=Qe[xn][at[Te[Dn]]]),$e[Dn]=Xn=Qe[Qi&=15][5],kt>0)if(16===kt){for(On=oi;On<Dn;On++)$e[On]=1;oi=-1}else oi=-1;if(Qe[Qi][6])-1===oi&&(oi=Dn);else if(oi>-1){for(On=oi;On<Dn;On++)$e[On]=Xn;oi=-1}"B"===dt[Dn]&&($e[Dn]=0),jt.hiLevel|=Xn}D&&function(Nt,Qt,Cn){for(var In=0;In<Cn;In++)if("S"===Nt[In]){Qt[In]=Rt;for(var Ln=In-1;Ln>=0&&"WS"===Nt[Ln];Ln--)Qt[Ln]=Rt}}(dt,$e,ai)},qn=function(He,$e,jt,kt,On){if(!(On.hiLevel<He)){if(1===He&&1===Rt&&!N)return $e.reverse(),void(jt&&jt.reverse());for(var Dn,Xn,xn,oi,ai=$e.length,Qi=0;Qi<ai;){if(kt[Qi]>=He){for(xn=Qi+1;xn<ai&&kt[xn]>=He;)xn++;for(oi=Qi,Xn=xn-1;oi<Xn;oi++,Xn--)Dn=$e[oi],$e[oi]=$e[Xn],$e[Xn]=Dn,jt&&(Dn=jt[oi],jt[oi]=jt[Xn],jt[Xn]=Dn);Qi=xn}Qi++}}},ii=function(He,$e,jt){var kt=He.split(""),On={hiLevel:Rt};return jt||(jt=[]),At(kt,jt,On),function(Dn,Xn,xn){if(0!==xn.hiLevel&&ve)for(var oi,ai=0;ai<Dn.length;ai++)1===Xn[ai]&&(oi=ht.indexOf(Dn[ai]))>=0&&(Dn[ai]=ht[oi+1])}(kt,jt,On),qn(2,kt,$e,jt,On),qn(1,kt,$e,jt,On),kt.join("")};return this.__bidiEngine__.doBidiReorder=function(He,$e,jt){if(function(On,Dn){if(Dn)for(var Xn=0;Xn<On.length;Xn++)Dn[Xn]=Xn;void 0===W&&(W=An(On)),void 0===de&&(de=An(On))}(He,$e),U||!X||de)if(U&&X&&W^de)Rt=W?1:0,He=mn(He,$e,jt);else if(!U&&X&&de)Rt=W?1:0,He=ii(He,$e,jt),He=mn(He,$e);else if(!U||W||X||de){if(U&&!X&&W^de)He=mn(He,$e),W?(Rt=0,He=ii(He,$e,jt)):(Rt=1,He=ii(He,$e,jt),He=mn(He,$e));else if(U&&W&&!X&&de)Rt=1,He=ii(He,$e,jt),He=mn(He,$e);else if(!U&&!X&&W^de){var kt=ve;W?(Rt=1,He=ii(He,$e,jt),Rt=0,ve=!1,He=ii(He,$e,jt),ve=kt):(Rt=0,He=ii(He,$e,jt),He=mn(He,$e),Rt=1,ve=!1,He=ii(He,$e,jt),ve=kt,He=mn(He,$e))}}else Rt=0,He=ii(He,$e,jt);else Rt=W?1:0,He=ii(He,$e,jt);return He},this.__bidiEngine__.setOptions=function(He){He&&(U=He.isInputVisual,X=He.isOutputVisual,W=He.isInputRtl,de=He.isOutputRtl,ve=He.isSymmetricSwapping)},this.__bidiEngine__.setOptions(P),this.__bidiEngine__};var y=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],k=new A.__bidiEngine__({isInputVisual:!0});A.API.events.push(["postProcessText",function(P){var N=P.text,D=P.options||{},U=[];if(D.isInputVisual="boolean"!=typeof D.isInputVisual||D.isInputVisual,k.setOptions(D),"[object Array]"===Object.prototype.toString.call(N)){var W=0;for(U=[],W=0;W<N.length;W+=1)"[object Array]"===Object.prototype.toString.call(N[W])?U.push([k.doBidiReorder(N[W][0]),N[W][1],N[W][2]]):U.push([k.doBidiReorder(N[W])]);P.text=U}else P.text=k.doBidiReorder(N);k.setOptions({isInputVisual:!0})}])}(xr),xr.API.TTFFont=function(){function A(y){var k;if(this.rawData=y,k=this.contents=new vl(y),this.contents.pos=4,"ttcf"===k.readString(4))throw new Error("TTCF not supported.");k.pos=0,this.parse(),this.subset=new bi(this),this.registerTTF()}return A.open=function(y){return new A(y)},A.prototype.parse=function(){return this.directory=new Ys(this.contents),this.head=new Gu(this),this.name=new ad(this),this.cmap=new bl(this),this.toUnicode={},this.hhea=new ws(this),this.maxp=new nt(this),this.hmtx=new ct(this),this.post=new Jd(this),this.os2=new ea(this),this.loca=new En(this),this.glyf=new Ne(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},A.prototype.registerTTF=function(){var k,P,N,D;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var U,W,X,de;for(de=[],U=0,W=(X=this.bbox).length;U<W;U++)de.push(Math.round(X[U]*this.scaleFactor));return de}.call(this),this.stemV=0,this.post.exists?(P=255&(N=this.post.italic_angle),32768&(k=N>>16)&&(k=-(1+(65535^k))),this.italicAngle=+(k+"."+P)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(D=this.familyClass)||2===D||3===D||4===D||5===D||7===D,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},A.prototype.characterToGlyph=function(y){var k;return(null!=(k=this.cmap.unicode)?k.codeMap[y]:void 0)||0},A.prototype.widthOfGlyph=function(y){var k;return k=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(y).advance*k},A.prototype.widthOfString=function(y,k,P){var N,D,U,W;for(U=0,D=0,W=(y=""+y).length;0<=W?D<W:D>W;D=0<=W?++D:--D)N=y.charCodeAt(D),U+=this.widthOfGlyph(this.characterToGlyph(N))+P*(1e3/k)||0;return U*(k/1e3)},A.prototype.lineHeight=function(y,k){return null==k&&(k=!1),(this.ascender+(k?this.lineGap:0)-this.decender)/1e3*y},A}();var Oa,vl=function(){function A(y){this.data=y??[],this.pos=0,this.length=this.data.length}return A.prototype.readByte=function(){return this.data[this.pos++]},A.prototype.writeByte=function(y){return this.data[this.pos++]=y},A.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},A.prototype.writeUInt32=function(y){return this.writeByte(y>>>24&255),this.writeByte(y>>16&255),this.writeByte(y>>8&255),this.writeByte(255&y)},A.prototype.readInt32=function(){var y;return(y=this.readUInt32())>=2147483648?y-4294967296:y},A.prototype.writeInt32=function(y){return y<0&&(y+=4294967296),this.writeUInt32(y)},A.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},A.prototype.writeUInt16=function(y){return this.writeByte(y>>8&255),this.writeByte(255&y)},A.prototype.readInt16=function(){var y;return(y=this.readUInt16())>=32768?y-65536:y},A.prototype.writeInt16=function(y){return y<0&&(y+=65536),this.writeUInt16(y)},A.prototype.readString=function(y){var k,P;for(P=[],k=0;0<=y?k<y:k>y;k=0<=y?++k:--k)P[k]=String.fromCharCode(this.readByte());return P.join("")},A.prototype.writeString=function(y){var k,P,N;for(N=[],k=0,P=y.length;0<=P?k<P:k>P;k=0<=P?++k:--k)N.push(this.writeByte(y.charCodeAt(k)));return N},A.prototype.readShort=function(){return this.readInt16()},A.prototype.writeShort=function(y){return this.writeInt16(y)},A.prototype.readLongLong=function(){var y,k,P,N,D,U,W,X;return y=this.readByte(),k=this.readByte(),P=this.readByte(),N=this.readByte(),D=this.readByte(),U=this.readByte(),W=this.readByte(),X=this.readByte(),128&y?-1*(72057594037927940*(255^y)+281474976710656*(255^k)+1099511627776*(255^P)+4294967296*(255^N)+16777216*(255^D)+65536*(255^U)+256*(255^W)+(255^X)+1):72057594037927940*y+281474976710656*k+1099511627776*P+4294967296*N+16777216*D+65536*U+256*W+X},A.prototype.writeLongLong=function(y){var k,P;return k=Math.floor(y/4294967296),P=4294967295&y,this.writeByte(k>>24&255),this.writeByte(k>>16&255),this.writeByte(k>>8&255),this.writeByte(255&k),this.writeByte(P>>24&255),this.writeByte(P>>16&255),this.writeByte(P>>8&255),this.writeByte(255&P)},A.prototype.readInt=function(){return this.readInt32()},A.prototype.writeInt=function(y){return this.writeInt32(y)},A.prototype.read=function(y){var k,P;for(k=[],P=0;0<=y?P<y:P>y;P=0<=y?++P:--P)k.push(this.readByte());return k},A.prototype.write=function(y){var P,N,D;for(D=[],P=0,N=y.length;P<N;P++)D.push(this.writeByte(y[P]));return D},A}(),Ys=function(){var A;function y(k){var P,N,D;for(this.scalarType=k.readInt(),this.tableCount=k.readShort(),this.searchRange=k.readShort(),this.entrySelector=k.readShort(),this.rangeShift=k.readShort(),this.tables={},N=0,D=this.tableCount;0<=D?N<D:N>D;N=0<=D?++N:--N)P={tag:k.readString(4),checksum:k.readInt(),offset:k.readInt(),length:k.readInt()},this.tables[P.tag]=P}return y.prototype.encode=function(k){var P,N,U,W,X,de,ve,Ae,Le,oe,at,We;for(We in oe=Object.keys(k).length,X=Math.log(2),Ae=16*Math.floor(Math.log(oe)/X),U=Math.floor(Ae/X),ve=16*oe-Ae,(N=new vl).writeInt(this.scalarType),N.writeShort(oe),N.writeShort(Ae),N.writeShort(U),N.writeShort(ve),de=N.pos+16*oe,W=null,at=[],k)for(Le=k[We],N.writeString(We),N.writeInt(A(Le)),N.writeInt(de),N.writeInt(Le.length),at=at.concat(Le),"head"===We&&(W=de),de+=Le.length;de%4;)at.push(0),de++;return N.write(at),P=2981146554-A(N.data),N.pos=W+8,N.writeUInt32(P),N.data},A=function(k){var P,N,D,U;for(k=rn.call(k);k.length%4;)k.push(0);for(D=new vl(k),N=0,P=0,U=k.length;P<U;P=P+=4)N+=D.readUInt32();return 4294967295&N},y}(),xl={}.hasOwnProperty,jl=function(A,y){for(var k in y)xl.call(y,k)&&(A[k]=y[k]);function P(){this.constructor=A}return P.prototype=y.prototype,A.prototype=new P,A.__super__=y.prototype,A};Oa=function(){function A(y){var k;this.file=y,this.exists=!!(k=this.file.directory.tables[this.tag]),k&&(this.offset=k.offset,this.length=k.length,this.parse(this.file.contents))}return A.prototype.parse=function(){},A.prototype.encode=function(){},A.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},A}();var Gu=function(A){function y(){return y.__super__.constructor.apply(this,arguments)}return jl(y,Oa),y.prototype.tag="head",y.prototype.parse=function(k){return k.pos=this.offset,this.version=k.readInt(),this.revision=k.readInt(),this.checkSumAdjustment=k.readInt(),this.magicNumber=k.readInt(),this.flags=k.readShort(),this.unitsPerEm=k.readShort(),this.created=k.readLongLong(),this.modified=k.readLongLong(),this.xMin=k.readShort(),this.yMin=k.readShort(),this.xMax=k.readShort(),this.yMax=k.readShort(),this.macStyle=k.readShort(),this.lowestRecPPEM=k.readShort(),this.fontDirectionHint=k.readShort(),this.indexToLocFormat=k.readShort(),this.glyphDataFormat=k.readShort()},y.prototype.encode=function(k){var P;return(P=new vl).writeInt(this.version),P.writeInt(this.revision),P.writeInt(this.checkSumAdjustment),P.writeInt(this.magicNumber),P.writeShort(this.flags),P.writeShort(this.unitsPerEm),P.writeLongLong(this.created),P.writeLongLong(this.modified),P.writeShort(this.xMin),P.writeShort(this.yMin),P.writeShort(this.xMax),P.writeShort(this.yMax),P.writeShort(this.macStyle),P.writeShort(this.lowestRecPPEM),P.writeShort(this.fontDirectionHint),P.writeShort(k),P.writeShort(this.glyphDataFormat),P.data},y}(),Cp=function(){function A(y,k){var P,N,D,U,W,X,de,ve,Ae,Le,oe,at,We,ht,Ve,ot,Rt;switch(this.platformID=y.readUInt16(),this.encodingID=y.readShort(),this.offset=k+y.readInt(),Ae=y.pos,y.pos=this.offset,this.format=y.readUInt16(),this.length=y.readUInt16(),this.language=y.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(X=0;X<256;++X)this.codeMap[X]=y.readByte();break;case 4:for(oe=y.readUInt16(),Le=oe/2,y.pos+=6,D=function(){var Jt,An;for(An=[],X=Jt=0;0<=Le?Jt<Le:Jt>Le;X=0<=Le?++Jt:--Jt)An.push(y.readUInt16());return An}(),y.pos+=2,We=function(){var Jt,An;for(An=[],X=Jt=0;0<=Le?Jt<Le:Jt>Le;X=0<=Le?++Jt:--Jt)An.push(y.readUInt16());return An}(),de=function(){var Jt,An;for(An=[],X=Jt=0;0<=Le?Jt<Le:Jt>Le;X=0<=Le?++Jt:--Jt)An.push(y.readUInt16());return An}(),ve=function(){var Jt,An;for(An=[],X=Jt=0;0<=Le?Jt<Le:Jt>Le;X=0<=Le?++Jt:--Jt)An.push(y.readUInt16());return An}(),N=(this.length-y.pos+this.offset)/2,W=function(){var Jt,An;for(An=[],X=Jt=0;0<=N?Jt<N:Jt>N;X=0<=N?++Jt:--Jt)An.push(y.readUInt16());return An}(),X=Ve=0,Rt=D.length;Ve<Rt;X=++Ve)for(ht=D[X],P=ot=at=We[X];at<=ht?ot<=ht:ot>=ht;P=at<=ht?++ot:--ot)0===ve[X]?U=P+de[X]:0!==(U=W[ve[X]/2+(P-at)-(Le-X)]||0)&&(U+=de[X]),this.codeMap[P]=65535&U}y.pos=Ae}return A.encode=function(y,k){var P,N,D,U,W,X,de,ve,Ae,Le,oe,at,We,ht,Ve,ot,Rt,An,hi,mn,At,qn,ii,He,$e,jt,kt,On,Dn,Xn,xn,oi,ai,Qi,Te,Qe,dt,Nt,Qt,Cn,In,Ln,Ri,Oi,Zn;switch(kt=new vl,U=Object.keys(y).sort(function(Hi,$r){return Hi-$r}),k){case"macroman":for(We=0,ht=function(){var Hi=[];for(at=0;at<256;++at)Hi.push(0);return Hi}(),ot={0:0},D={},On=0,oi=U.length;On<oi;On++)null==ot[Ln=y[N=U[On]]]&&(ot[Ln]=++We),D[N]={old:y[N],new:ot[y[N]]},ht[N]=ot[y[N]];return kt.writeUInt16(1),kt.writeUInt16(0),kt.writeUInt32(12),kt.writeUInt16(0),kt.writeUInt16(262),kt.writeUInt16(0),kt.write(ht),{charMap:D,subtable:kt.data,maxGlyphID:We+1};case"unicode":for($e=[],Ae=[],Rt=0,ot={},P={},Ve=de=null,Dn=0,ai=U.length;Dn<ai;Dn++)null==ot[An=y[N=U[Dn]]]&&(ot[An]=++Rt),P[N]={old:An,new:ot[An]},W=ot[An]-N,null!=Ve&&W===de||(Ve&&Ae.push(Ve),$e.push(N),de=W),Ve=N;for(Ve&&Ae.push(Ve),Ae.push(65535),$e.push(65535),ii=2*(qn=$e.length),At=2*Math.pow(Math.log(qn)/Math.LN2,2),Le=Math.log(At/2)/Math.LN2,mn=2*qn-At,X=[],hi=[],oe=[],at=Xn=0,Qi=$e.length;Xn<Qi;at=++Xn){if(ve=Ae[at],65535===(He=$e[at])){X.push(0),hi.push(0);break}if(He-(jt=P[He].new)>=32768)for(X.push(0),hi.push(2*(oe.length+qn-at)),N=xn=He;He<=ve?xn<=ve:xn>=ve;N=He<=ve?++xn:--xn)oe.push(P[N].new);else X.push(jt-He),hi.push(0)}for(kt.writeUInt16(3),kt.writeUInt16(1),kt.writeUInt32(12),kt.writeUInt16(4),kt.writeUInt16(16+8*qn+2*oe.length),kt.writeUInt16(0),kt.writeUInt16(ii),kt.writeUInt16(At),kt.writeUInt16(Le),kt.writeUInt16(mn),Cn=0,Te=Ae.length;Cn<Te;Cn++)kt.writeUInt16(N=Ae[Cn]);for(kt.writeUInt16(0),In=0,Qe=$e.length;In<Qe;In++)kt.writeUInt16(N=$e[In]);for(Ri=0,dt=X.length;Ri<dt;Ri++)kt.writeUInt16(W=X[Ri]);for(Oi=0,Nt=hi.length;Oi<Nt;Oi++)kt.writeUInt16(hi[Oi]);for(Zn=0,Qt=oe.length;Zn<Qt;Zn++)kt.writeUInt16(We=oe[Zn]);return{charMap:P,subtable:kt.data,maxGlyphID:Rt+1}}},A}(),bl=function(A){function y(){return y.__super__.constructor.apply(this,arguments)}return jl(y,Oa),y.prototype.tag="cmap",y.prototype.parse=function(k){var P,N,D;for(k.pos=this.offset,this.version=k.readUInt16(),D=k.readUInt16(),this.tables=[],this.unicode=null,N=0;0<=D?N<D:N>D;N=0<=D?++N:--N)P=new Cp(k,this.offset),this.tables.push(P),P.isUnicode&&null==this.unicode&&(this.unicode=P);return!0},y.encode=function(k,P){var N,D;return null==P&&(P="macroman"),N=Cp.encode(k,P),(D=new vl).writeUInt16(0),D.writeUInt16(1),N.table=D.data.concat(N.subtable),N},y}(),ws=function(A){function y(){return y.__super__.constructor.apply(this,arguments)}return jl(y,Oa),y.prototype.tag="hhea",y.prototype.parse=function(k){return k.pos=this.offset,this.version=k.readInt(),this.ascender=k.readShort(),this.decender=k.readShort(),this.lineGap=k.readShort(),this.advanceWidthMax=k.readShort(),this.minLeftSideBearing=k.readShort(),this.minRightSideBearing=k.readShort(),this.xMaxExtent=k.readShort(),this.caretSlopeRise=k.readShort(),this.caretSlopeRun=k.readShort(),this.caretOffset=k.readShort(),k.pos+=8,this.metricDataFormat=k.readShort(),this.numberOfMetrics=k.readUInt16()},y}(),ea=function(A){function y(){return y.__super__.constructor.apply(this,arguments)}return jl(y,Oa),y.prototype.tag="OS/2",y.prototype.parse=function(k){if(k.pos=this.offset,this.version=k.readUInt16(),this.averageCharWidth=k.readShort(),this.weightClass=k.readUInt16(),this.widthClass=k.readUInt16(),this.type=k.readShort(),this.ySubscriptXSize=k.readShort(),this.ySubscriptYSize=k.readShort(),this.ySubscriptXOffset=k.readShort(),this.ySubscriptYOffset=k.readShort(),this.ySuperscriptXSize=k.readShort(),this.ySuperscriptYSize=k.readShort(),this.ySuperscriptXOffset=k.readShort(),this.ySuperscriptYOffset=k.readShort(),this.yStrikeoutSize=k.readShort(),this.yStrikeoutPosition=k.readShort(),this.familyClass=k.readShort(),this.panose=function(){var P,N;for(N=[],P=0;P<10;++P)N.push(k.readByte());return N}(),this.charRange=function(){var P,N;for(N=[],P=0;P<4;++P)N.push(k.readInt());return N}(),this.vendorID=k.readString(4),this.selection=k.readShort(),this.firstCharIndex=k.readShort(),this.lastCharIndex=k.readShort(),this.version>0&&(this.ascent=k.readShort(),this.descent=k.readShort(),this.lineGap=k.readShort(),this.winAscent=k.readShort(),this.winDescent=k.readShort(),this.codePageRange=function(){var P,N;for(N=[],P=0;P<2;P=++P)N.push(k.readInt());return N}(),this.version>1))return this.xHeight=k.readShort(),this.capHeight=k.readShort(),this.defaultChar=k.readShort(),this.breakChar=k.readShort(),this.maxContext=k.readShort()},y}(),Jd=function(A){function y(){return y.__super__.constructor.apply(this,arguments)}return jl(y,Oa),y.prototype.tag="post",y.prototype.parse=function(k){var P,N,D;switch(k.pos=this.offset,this.format=k.readInt(),this.italicAngle=k.readInt(),this.underlinePosition=k.readShort(),this.underlineThickness=k.readShort(),this.isFixedPitch=k.readInt(),this.minMemType42=k.readInt(),this.maxMemType42=k.readInt(),this.minMemType1=k.readInt(),this.maxMemType1=k.readInt(),this.format){case 65536:case 196608:break;case 131072:var U;for(N=k.readUInt16(),this.glyphNameIndex=[],U=0;0<=N?U<N:U>N;U=0<=N?++U:--U)this.glyphNameIndex.push(k.readUInt16());for(this.names=[],D=[];k.pos<this.offset+this.length;)P=k.readByte(),D.push(this.names.push(k.readString(P)));return D;case 151552:return N=k.readUInt16(),this.offsets=k.read(N);case 262144:return this.map=function(){var W,X,de;for(de=[],U=W=0,X=this.file.maxp.numGlyphs;0<=X?W<X:W>X;U=0<=X?++W:--W)de.push(k.readUInt32());return de}.call(this)}},y}(),dc=function(A,y){this.raw=A,this.length=A.length,this.platformID=y.platformID,this.encodingID=y.encodingID,this.languageID=y.languageID},ad=function(A){function y(){return y.__super__.constructor.apply(this,arguments)}return jl(y,Oa),y.prototype.tag="name",y.prototype.parse=function(k){var P,N,D,U,W,X,de,ve,Ae,Le,oe;for(k.pos=this.offset,k.readShort(),P=k.readShort(),X=k.readShort(),N=[],U=0;0<=P?U<P:U>P;U=0<=P?++U:--U)N.push({platformID:k.readShort(),encodingID:k.readShort(),languageID:k.readShort(),nameID:k.readShort(),length:k.readShort(),offset:this.offset+X+k.readShort()});for(de={},U=Ae=0,Le=N.length;Ae<Le;U=++Ae)k.pos=(D=N[U]).offset,ve=k.readString(D.length),W=new dc(ve,D),null==de[oe=D.nameID]&&(de[oe]=[]),de[D.nameID].push(W);this.strings=de,this.copyright=de[0],this.fontFamily=de[1],this.fontSubfamily=de[2],this.uniqueSubfamily=de[3],this.fontName=de[4],this.version=de[5];try{this.postscriptName=de[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=de[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=de[7],this.manufacturer=de[8],this.designer=de[9],this.description=de[10],this.vendorUrl=de[11],this.designerUrl=de[12],this.license=de[13],this.licenseUrl=de[14],this.preferredFamily=de[15],this.preferredSubfamily=de[17],this.compatibleFull=de[18],this.sampleText=de[19]},y}(),nt=function(A){function y(){return y.__super__.constructor.apply(this,arguments)}return jl(y,Oa),y.prototype.tag="maxp",y.prototype.parse=function(k){return k.pos=this.offset,this.version=k.readInt(),this.numGlyphs=k.readUInt16(),this.maxPoints=k.readUInt16(),this.maxContours=k.readUInt16(),this.maxCompositePoints=k.readUInt16(),this.maxComponentContours=k.readUInt16(),this.maxZones=k.readUInt16(),this.maxTwilightPoints=k.readUInt16(),this.maxStorage=k.readUInt16(),this.maxFunctionDefs=k.readUInt16(),this.maxInstructionDefs=k.readUInt16(),this.maxStackElements=k.readUInt16(),this.maxSizeOfInstructions=k.readUInt16(),this.maxComponentElements=k.readUInt16(),this.maxComponentDepth=k.readUInt16()},y}(),ct=function(A){function y(){return y.__super__.constructor.apply(this,arguments)}return jl(y,Oa),y.prototype.tag="hmtx",y.prototype.parse=function(k){var P,N,D,W,X,de;for(k.pos=this.offset,this.metrics=[],P=0,X=this.file.hhea.numberOfMetrics;0<=X?P<X:P>X;P=0<=X?++P:--P)this.metrics.push({advance:k.readUInt16(),lsb:k.readInt16()});for(D=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var ve,Ae;for(Ae=[],P=ve=0;0<=D?ve<D:ve>D;P=0<=D?++ve:--ve)Ae.push(k.readInt16());return Ae}(),this.widths=function(){var ve,Ae,Le,oe;for(oe=[],ve=0,Ae=(Le=this.metrics).length;ve<Ae;ve++)oe.push(Le[ve].advance);return oe}.call(this),N=this.widths[this.widths.length-1],de=[],P=W=0;0<=D?W<D:W>D;P=0<=D?++W:--W)de.push(this.widths.push(N));return de},y.prototype.forGlyph=function(k){return k in this.metrics?this.metrics[k]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[k-this.metrics.length]}},y}(),rn=[].slice,Ne=function(A){function y(){return y.__super__.constructor.apply(this,arguments)}return jl(y,Oa),y.prototype.tag="glyf",y.prototype.parse=function(){return this.cache={}},y.prototype.glyphFor=function(k){var P,N,D,U,W,X,de,ve,Ae,Le;return k in this.cache?this.cache[k]:(P=this.file.contents,N=(U=this.file.loca).indexOf(k),0===(D=U.lengthOf(k))?this.cache[k]=null:(P.pos=this.offset+N,W=(X=new vl(P.read(D))).readShort(),ve=X.readShort(),Le=X.readShort(),de=X.readShort(),Ae=X.readShort(),this.cache[k]=-1===W?new yt(X,ve,Le,de,Ae):new lt(X,W,ve,Le,de,Ae),this.cache[k]))},y.prototype.encode=function(k,P,N){var D,U,W,X,de;for(W=[],U=[],X=0,de=P.length;X<de;X++)D=k[P[X]],U.push(W.length),D&&(W=W.concat(D.encode(N)));return U.push(W.length),{table:W,offsets:U}},y}(),lt=function(){function A(y,k,P,N,D,U){this.raw=y,this.numberOfContours=k,this.xMin=P,this.yMin=N,this.xMax=D,this.yMax=U,this.compound=!1}return A.prototype.encode=function(){return this.raw.data},A}(),yt=function(){function A(y,k,P,N,D){var U,W;for(this.raw=y,this.xMin=k,this.yMin=P,this.xMax=N,this.yMax=D,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],U=this.raw;W=U.readShort(),this.glyphOffsets.push(U.pos),this.glyphIDs.push(U.readUInt16()),32&W;)U.pos+=1&W?4:2,128&W?U.pos+=8:64&W?U.pos+=4:8&W&&(U.pos+=2)}return A.prototype.encode=function(){var y,k,P;for(k=new vl(rn.call(this.raw.data)),y=0,P=this.glyphIDs.length;y<P;++y)k.pos=this.glyphOffsets[y];return k.data},A}(),En=function(A){function y(){return y.__super__.constructor.apply(this,arguments)}return jl(y,Oa),y.prototype.tag="loca",y.prototype.parse=function(k){var N;return k.pos=this.offset,this.offsets=0===this.file.head.indexToLocFormat?function(){var D,U;for(U=[],N=0,D=this.length;N<D;N+=2)U.push(2*k.readUInt16());return U}.call(this):function(){var D,U;for(U=[],N=0,D=this.length;N<D;N+=4)U.push(k.readUInt32());return U}.call(this)},y.prototype.indexOf=function(k){return this.offsets[k]},y.prototype.lengthOf=function(k){return this.offsets[k+1]-this.offsets[k]},y.prototype.encode=function(k,P){for(var N=new Uint32Array(this.offsets.length),D=0,U=0,W=0;W<N.length;++W)if(N[W]=D,U<P.length&&P[U]==W){++U,N[W]=D;var de=this.offsets[W+1]-this.offsets[W];de>0&&(D+=de)}for(var ve=new Array(4*N.length),Ae=0;Ae<N.length;++Ae)ve[4*Ae+3]=255&N[Ae],ve[4*Ae+2]=(65280&N[Ae])>>8,ve[4*Ae+1]=(16711680&N[Ae])>>16,ve[4*Ae]=(4278190080&N[Ae])>>24;return ve},y}(),bi=function(){function A(y){this.font=y,this.subset={},this.unicodes={},this.next=33}return A.prototype.generateCmap=function(){var y,k,N,D;for(k in N=this.font.cmap.tables[0].codeMap,y={},D=this.subset)y[k]=N[D[k]];return y},A.prototype.glyphsFor=function(y){var k,P,N,D,U,W,X;for(N={},U=0,W=y.length;U<W;U++)N[D=y[U]]=this.font.glyf.glyphFor(D);for(D in k=[],N)null!=(P=N[D])&&P.compound&&k.push.apply(k,P.glyphIDs);if(k.length>0)for(D in X=this.glyphsFor(k))N[D]=P=X[D];return N},A.prototype.encode=function(y,k){var P,N,D,U,X,de,ve,Ae,Le,oe,at,We,ht,Ve;for(N in P=bl.encode(this.generateCmap(),"unicode"),U=this.glyphsFor(y),oe={0:0},Ve=P.charMap)oe[(X=Ve[N]).old]=X.new;for(at in Le=P.maxGlyphID,U)at in oe||(oe[at]=Le++);return ve=function(ot){var Rt,Jt;for(Rt in Jt={},ot)Jt[ot[Rt]]=Rt;return Jt}(oe),Ae=Object.keys(ve).sort(function(ot,Rt){return ot-Rt}),We=function(){var ot,Rt,Jt;for(Jt=[],ot=0,Rt=Ae.length;ot<Rt;ot++)Jt.push(ve[Ae[ot]]);return Jt}(),D=this.font.glyf.encode(U,We,oe),de=this.font.loca.encode(D.offsets,We),ht={cmap:this.font.cmap.raw(),glyf:D.table,loca:de,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(k)},this.font.os2.exists&&(ht["OS/2"]=this.font.os2.raw()),this.font.directory.encode(ht)},A}();xr.API.PDFObject=function(){var A;function y(){}return A=function(k,P){return(Array(P+1).join("0")+k).slice(-P)},y.convert=function(k){var N,D;if(Array.isArray(k))return"["+function(){var W,X,de;for(de=[],W=0,X=k.length;W<X;W++)de.push(y.convert(k[W]));return de}().join(" ")+"]";if("string"==typeof k)return"/"+k;if(k?.isString)return"("+k+")";if(k instanceof Date)return"(D:"+A(k.getUTCFullYear(),4)+A(k.getUTCMonth(),2)+A(k.getUTCDate(),2)+A(k.getUTCHours(),2)+A(k.getUTCMinutes(),2)+A(k.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(k)){for(N in D=["<<"],k)D.push("/"+N+" "+y.convert(k[N]));return D.push(">>"),D.join("\n")}return""+k},y}();const yi=xr},67376:function(ys,Ha,bn){var E;ys=bn.nmd(ys),function(){var Ie,u="Expected a function",e="__lodash_hash_undefined__",qe="__lodash_placeholder__",ui=1/0,Mn=9007199254740991,Xi=4294967295,Nr=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],Gi="[object Arguments]",Mo="[object Array]",Bs="[object Boolean]",Ts="[object Date]",Jo="[object Error]",rl="[object Function]",Wl="[object GeneratorFunction]",Zo="[object Map]",xc="[object Number]",fs="[object Object]",Pl="[object Promise]",ps="[object RegExp]",Gs="[object Set]",Bd="[object String]",Ia="[object Symbol]",Vs="[object WeakMap]",bo="[object ArrayBuffer]",Cs="[object DataView]",yo="[object Float32Array]",Go="[object Float64Array]",Ml="[object Int8Array]",kr="[object Int16Array]",$l="[object Int32Array]",ol="[object Uint8Array]",gl="[object Uint8ClampedArray]",ql="[object Uint16Array]",Mu="[object Uint32Array]",cu=/\b__p \+= '';/g,af=/\b(__p \+=) '' \+/g,_d=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gd=/&(?:amp|lt|gt|quot|#39);/g,to=/[&<>"']/g,Vd=RegExp(Gd.source),we=RegExp(to.source),jc=/<%-([\s\S]+?)%>/g,zs=/<%([\s\S]+?)%>/g,Ss=/<%=([\s\S]+?)%>/g,zd=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ou=/^\w*$/,Du=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ud=/[\\^$.*+?()[\]{}|]/g,Es=RegExp(Ud.source),Ol=/^\s+/,du=/\s/,Yd=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,bc=/\{\n\/\* \[wrapped with (.+)\] \*/,Jc=/,? & /,Ef=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,uu=/[()=,{}\[\]\/\s]/,fu=/\\(\\)?/g,Qo=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,sl=/\w*$/,Pf=/^[-+]0x[0-9a-f]+$/i,Wd=/^0b[01]+$/i,of=/^\[object .+?Constructor\]$/,vd=/^0o[0-7]+$/i,Zc=/^(?:0|[1-9]\d*)$/,xd=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 8,979 bytes, line 129
1297f]/g,Qc=/($^)/,Iu=/['\n\r\u2028\u2029\\]/g,yc="\\ud800-\\udfff",ll="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ru="\\u2700-\\u27bf",Rc="a-z\\xdf-\\xf6\\xf8-\\xff",Lc="A-Z\\xc0-\\xd6\\xd8-\\xde",td="\\ufe0e\\ufe0f",Sa="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",$a="["+yc+"]",qd="["+Sa+"]",Dl="["+ll+"]",Ps="\\d+",Vo="["+Ru+"]",Xo="["+Rc+"]",as="[^"+yc+Sa+Ps+Ru+Rc+Lc+"]",os="\\ud83c[\\udffb-\\udfff]",Jn="[^"+yc+"]",ee="(?:\\ud83c[\\udde6-\\uddff]){2}",bt="[\\ud800-\\udbff][\\udc00-\\udfff]",Be="["+Lc+"]",J="\\u200d",me="(?:"+Xo+"|"+as+")",se="(?:"+Be+"|"+as+")",Ue="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",nn="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",fn="(?:"+Dl+"|"+os+")?",Ci="["+td+"]?",Hr=Ci+fn+"(?:"+J+"(?:"+[Jn,ee,bt].join("|")+")"+Ci+fn+")*",Ea="(?:"+[Vo,ee,bt].join("|")+")"+Hr,xr="(?:"+[Jn+Dl+"?",Dl,ee,bt,$a].join("|")+")",Fa=RegExp("['\u2019]","g"),hs=RegExp(Dl,"g"),Ka=RegExp(os+"(?="+os+")|"+xr+Hr,"g"),nd=RegExp([Be+"?"+Xo+"+"+Ue+"(?="+[qd,Be,"$"].join("|")+")",se+"+"+nn+"(?="+[qd,Be+me,"$"].join("|")+")",Be+"?"+me+"+"+Ue,Be+"+"+nn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ps,Ea].join("|"),"g"),Wr=RegExp("["+J+yc+ll+td+"]"),Hl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ms=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],sf=-1,Ba={};Ba[yo]=Ba[Go]=Ba[Ml]=Ba[kr]=Ba[$l]=Ba[ol]=Ba[gl]=Ba[ql]=Ba[Mu]=!0,Ba[Gi]=Ba[Mo]=Ba[bo]=Ba[Bs]=Ba[Cs]=Ba[Ts]=Ba[Jo]=Ba[rl]=Ba[Zo]=Ba[xc]=Ba[fs]=Ba[ps]=Ba[Gs]=Ba[Bd]=Ba[Vs]=!1;var lo={};lo[Gi]=lo[Mo]=lo[bo]=lo[Cs]=lo[Bs]=lo[Ts]=lo[yo]=lo[Go]=lo[Ml]=lo[kr]=lo[$l]=lo[Zo]=lo[xc]=lo[fs]=lo[ps]=lo[Gs]=lo[Bd]=lo[Ia]=lo[ol]=lo[gl]=lo[ql]=lo[Mu]=!0,lo[Jo]=lo[rl]=lo[Vs]=!1;var zo={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Uo=parseFloat,cf=parseInt,Kf="object"==typeof global&&global&&global.Object===Object&&global,Jf="object"==typeof self&&self&&self.Object===Object&&self,es=Kf||Jf||Function("return this")(),id=Ha&&!Ha.nodeType&&Ha,Xd=id&&ys&&!ys.nodeType&&ys,Hd=Xd&&Xd.exports===id,Lu=Hd&&Kf.process,Ho=function(){try{return Xd&&Xd.require&&Xd.require("util").types||Lu&&Lu.binding&&Lu.binding("util")}catch{}}(),Mf=Ho&&Ho.isArrayBuffer,w=Ho&&Ho.isDate,I=Ho&&Ho.isMap,H=Ho&&Ho.isRegExp,Q=Ho&&Ho.isSet,_e=Ho&&Ho.isTypedArray;function he(Ne,lt,yt){switch(yt.length){case 0:return Ne.call(lt);case 1:return Ne.call(lt,yt[0]);case 2:return Ne.call(lt,yt[0],yt[1]);case 3:return Ne.call(lt,yt[0],yt[1],yt[2])}return Ne.apply(lt,yt)}function Ee(Ne,lt,yt,En){for(var bi=-1,yi=null==Ne?0:Ne.length;++bi<yi;){var A=Ne[bi];lt(En,A,yt(A),Ne)}return En}function _t(Ne,lt){for(var yt=-1,En=null==Ne?0:Ne.length;++yt<En&&!1!==lt(Ne[yt],yt,Ne););return Ne}function st(Ne,lt){for(var yt=null==Ne?0:Ne.length;yt--&&!1!==lt(Ne[yt],yt,Ne););return Ne}function Xt(Ne,lt){for(var yt=-1,En=null==Ne?0:Ne.length;++yt<En;)if(!lt(Ne[yt],yt,Ne))return!1;return!0}function wn(Ne,lt){for(var yt=-1,En=null==Ne?0:Ne.length,bi=0,yi=[];++yt<En;){var A=Ne[yt];lt(A,yt,Ne)&&(yi[bi++]=A)}return yi}function $n(Ne,lt){return!(null==Ne||!Ne.length)&&ba(Ne,lt,0)>-1}function Zt(Ne,lt,yt){for(var En=-1,bi=null==Ne?0:Ne.length;++En<bi;)if(yt(lt,Ne[En]))return!0;return!1}function Un(Ne,lt){for(var yt=-1,En=null==Ne?0:Ne.length,bi=Array(En);++yt<En;)bi[yt]=lt(Ne[yt],yt,Ne);return bi}function jr(Ne,lt){for(var yt=-1,En=lt.length,bi=Ne.length;++yt<En;)Ne[bi+yt]=lt[yt];return Ne}function gi(Ne,lt,yt,En){var bi=-1,yi=null==Ne?0:Ne.length;for(En&&yi&&(yt=Ne[++bi]);++bi<yi;)yt=lt(yt,Ne[bi],bi,Ne);return yt}function mr(Ne,lt,yt,En){var bi=null==Ne?0:Ne.length;for(En&&bi&&(yt=Ne[--bi]);bi--;)yt=lt(yt,Ne[bi],bi,Ne);return yt}function Co(Ne,lt){for(var yt=-1,En=null==Ne?0:Ne.length;++yt<En;)if(lt(Ne[yt],yt,Ne))return!0;return!1}var ms=Us("length");function Qr(Ne,lt,yt){var En;return yt(Ne,function(bi,yi,A){if(lt(bi,yi,A))return En=yi,!1}),En}function ko(Ne,lt,yt,En){for(var bi=Ne.length,yi=yt+(En?1:-1);En?yi--:++yi<bi;)if(lt(Ne[yi],yi,Ne))return yi;return-1}function ba(Ne,lt,yt){return lt==lt?function Gu(Ne,lt,yt){for(var En=yt-1,bi=Ne.length;++En<bi;)if(Ne[En]===lt)return En;return-1}(Ne,lt,yt):ko(Ne,Nu,yt)}function wo(Ne,lt,yt,En){for(var bi=yt-1,yi=Ne.length;++bi<yi;)if(En(Ne[bi],lt))return bi;return-1}function Nu(Ne){return Ne!=Ne}function Kl(Ne,lt){var yt=null==Ne?0:Ne.length;return yt?qa(Ne,lt)/yt:NaN}function Us(Ne){return function(lt){return null==lt?Ie:lt[Ne]}}function Il(Ne){return function(lt){return null==Ne?Ie:Ne[lt]}}function Jl(Ne,lt,yt,En,bi){return bi(Ne,function(yi,A,y){yt=En?(En=!1,yi):lt(yt,yi,A,y)}),yt}function qa(Ne,lt){for(var yt,En=-1,bi=Ne.length;++En<bi;){var yi=lt(Ne[En]);yi!==Ie&&(yt=yt===Ie?yi:yt+yi)}return yt}function Ma(Ne,lt){for(var yt=-1,En=Array(Ne);++yt<Ne;)En[yt]=lt(yt);return En}function ks(Ne){return Ne&&Ne.slice(0,ea(Ne)+1).replace(Ol,"")}function Do(Ne){return function(lt){return Ne(lt)}}function Ko(Ne,lt){return Un(lt,function(yt){return Ne[yt]})}function Br(Ne,lt){return Ne.has(lt)}function cc(Ne,lt){for(var yt=-1,En=Ne.length;++yt<En&&ba(lt,Ne[yt],0)>-1;);return yt}function ya(Ne,lt){for(var yt=Ne.length;yt--&&ba(lt,Ne[yt],0)>-1;);return yt}var ss=Il({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"}),Kd=Il({"&":"&","<":"<",">":">",'"':""","'":"'"});function yd(Ne){return"\\"+zo[Ne]}function rd(Ne){return Wr.test(Ne)}function Oa(Ne){var lt=-1,yt=Array(Ne.size);return Ne.forEach(function(En,bi){yt[++lt]=[bi,En]}),yt}function vl(Ne,lt){return function(yt){return Ne(lt(yt))}}function Ys(Ne,lt){for(var yt=-1,En=Ne.length,bi=0,yi=[];++yt<En;){var A=Ne[yt];(A===lt||A===qe)&&(Ne[yt]=qe,yi[bi++]=yt)}return yi}function xl(Ne){var lt=-1,yt=Array(Ne.size);return Ne.forEach(function(En){yt[++lt]=En}),yt}function bl(Ne){return rd(Ne)?function dc(Ne){for(var lt=Ka.lastIndex=0;Ka.test(Ne);)++lt;return lt}(Ne):ms(Ne)}function ws(Ne){return rd(Ne)?function ad(Ne){return Ne.match(Ka)||[]}(Ne):function lc(Ne){return Ne.split("")}(Ne)}function ea(Ne){for(var lt=Ne.length;lt--&&du.test(Ne.charAt(lt)););return lt}var Jd=Il({"&":"&","<":"<",">":">",""":'"',"'":"'"}),rn=function Ne(lt){var m,yt=(lt=null==lt?es:rn.defaults(es.Object(),lt,rn.pick(es,Ms))).Array,En=lt.Date,bi=lt.Error,yi=lt.Function,A=lt.Math,y=lt.Object,k=lt.RegExp,P=lt.String,N=lt.TypeError,D=yt.prototype,W=y.prototype,X=lt["__core-js_shared__"],de=yi.prototype.toString,ve=W.hasOwnProperty,Ae=0,Le=(m=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(sr
129c)_1."+m:"",oe=W.toString,at=de.call(y),We=es._,ht=k("^"+de.call(ve).replace(Ud,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=Hd?lt.Buffer:Ie,ot=lt.Symbol,Rt=lt.Uint8Array,Jt=Ve?Ve.allocUnsafe:Ie,An=vl(y.getPrototypeOf,y),hi=y.create,mn=W.propertyIsEnumerable,At=D.splice,qn=ot?ot.isConcatSpreadable:Ie,ii=ot?ot.iterator:Ie,He=ot?ot.toStringTag:Ie,$e=function(){try{var m=Ed(y,"defineProperty");return m({},"",{}),m}catch{}}(),jt=lt.clearTimeout!==es.clearTimeout&<.clearTimeout,kt=En&&En.now!==es.Date.now&&En.now,On=lt.setTimeout!==es.setTimeout&<.setTimeout,Dn=A.ceil,Xn=A.floor,xn=y.getOwnPropertySymbols,oi=Ve?Ve.isBuffer:Ie,ai=lt.isFinite,Qi=D.join,Te=vl(y.keys,y),Qe=A.max,dt=A.min,Nt=En.now,Qt=lt.parseInt,Cn=A.random,In=D.reverse,Ln=Ed(lt,"DataView"),Ri=Ed(lt,"Map"),Oi=Ed(lt,"Promise"),Zn=Ed(lt,"Set"),Hi=Ed(lt,"WeakMap"),$r=Ed(y,"create"),Qn=Hi&&new Hi,vt={},pa=Pp(Ln),Wi=Pp(Ri),Pi=Pp(Oi),zi=Pp(Zn),er=Pp(Hi),qi=ot?ot.prototype:Ie,sr=qi?qi.valueOf:Ie,Sr=qi?qi.toString:Ie;function Se(m){if(Vl(m)&&!ca(m)&&!(m instanceof $i)){if(m instanceof Da)return m;if(ve.call(m,"__wrapped__"))return Ah(m)}return new Da(m)}var Ca=function(){function m(){}return function(b){if(!El(b))return{};if(hi)return hi(b);m.prototype=b;var j=new m;return m.prototype=Ie,j}}();function Ua(){}function Da(m,b){this.__wrapped__=m,this.__actions__=[],this.__chain__=!!b,this.__index__=0,this.__values__=Ie}function $i(m){this.__wrapped__=m,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Xi,this.__views__=[]}function Mr(m){var b=-1,j=null==m?0:m.length;for(this.clear();++b<j;){var te=m[b];this.set(te[0],te[1])}}function $s(m){var b=-1,j=null==m?0:m.length;for(this.clear();++b<j;){var te=m[b];this.set(te[0],te[1])}}function ja(m){var b=-1,j=null==m?0:m.length;for(this.clear();++b<j;){var te=m[b];this.set(te[0],te[1])}}function yl(m){var b=-1,j=null==m?0:m.length;for(this.__data__=new ja;++b<j;)this.add(m[b])}function Gr(m){var b=this.__data__=new $s(m);this.size=b.size}function sd(m,b){var j=ca(m),te=!j&&Uc(m),Ce=!j&&!te&&Yc(m),ze=!j&&!te&&!Ce&&Vh(m),Ct=j||te||Ce||ze,Vt=Ct?Ma(m.length,P):[],an=Vt.length;for(var _i in m)(b||ve.call(m,_i))&&(!Ct||!("length"==_i||Ce&&("offset"==_i||"parent"==_i)||ze&&("buffer"==_i||"byteLength"==_i||"byteOffset"==_i)||Bf(_i,an)))&&Vt.push(_i);return Vt}function Xr(m){var b=m.length;return b?m[iu(0,b-1)]:Ie}function kl(m,b){return Cf(ta(m),hu(b,0,m.length))}function dl(m){return Cf(ta(m))}function Ql(m,b,j){(j!==Ie&&!hl(m[b],j)||j===Ie&&!(b in m))&&Rl(m,b,j)}function Ra(m,b,j){var te=m[b];(!ve.call(m,b)||!hl(te,j)||j===Ie&&!(b in m))&&Rl(m,b,j)}function eu(m,b){for(var j=m.length;j--;)if(hl(m[j][0],b))return j;return-1}function kc(m,b,j,te){return O(m,function(Ce,ze,Ct){b(te,Ce,j(Ce),Ct)}),te}function Ja(m,b){return m&&is(b,pc(b),m)}function Rl(m,b,j){"__proto__"==b&&$e?$e(m,b,{configurable:!0,enumerable:!0,value:j,writable:!0}):m[b]=j}function wd(m,b){for(var j=-1,te=b.length,Ce=yt(te),ze=null==m;++j<te;)Ce[j]=ze?Ie:hg(m,b[j]);return Ce}function hu(m,b,j){return m==m&&(j!==Ie&&(m=m<=j?m:j),b!==Ie&&(m=m>=b?m:b)),m}function c(m,b,j,te,Ce,ze){var Ct,Vt=1&b,an=2&b,_i=4&b;if(j&&(Ct=Ce?j(m,te,Ce,ze):j(m)),Ct!==Ie)return Ct;if(!El(m))return m;var vi=ca(m);if(vi){if(Ct=function up(m){var b=m.length,j=new m.constructor(b);return b&&"string"==typeof m[0]&&ve.call(m,"index")&&(j.index=m.index,j.input=m.input),j}(m),!Vt)return ta(m,Ct)}else{var Fi=Ya(m),_r=Fi==rl||Fi==Wl;if(Yc(m))return gt(m,Vt);if(Fi==fs||Fi==Gi||_r&&!Ce){if(Ct=an||_r?{}:fp(m),!Vt)return an?function nc(m,b){return is(m,Xu(m),b)}(m,function Vu(m,b){return m&&is(b,ou(b),m)}(Ct,m)):function tc(m,b){return is(m,Ro(m),b)}(m,Ja(Ct,m))}else{if(!lo[Fi])return Ce?m:{};Ct=function lh(m,b,j){var te=m.constructor;switch(b){case bo:return Ut(m);case Bs:case Ts:return new te(+m);case Cs:return function ri(m,b){var j=b?Ut(m.buffer):m.buffer;return new m.constructor(j,m.byteOffset,m.byteLength)}(m,j);case yo:case Go:case Ml:case kr:case $l:case ol:case gl:case ql:case Mu:return Jr(m,j);case Zo:return new te;case xc:case Bd:return new te(m);case ps:return function ki(m){var b=new m.constructor(m.source,sl.exec(m));return b.lastIndex=m.lastIndex,b}(m);case Gs:return new te;case Ia:return function cr(m){return sr?y(sr.call(m)):{}}(m)}}(m,Fi,Vt)}}ze||(ze=new Gr);var Ur=ze.get(m);
vendor: 52,870 bytes, line 129
129if(Ur)return Ur;ze.set(m,Ct),pg(m)?m.forEach(function(xa){Ct.add(c(xa,b,j,xa,m,ze))}):jg(m)&&m.forEach(function(xa,fo){Ct.set(fo,c(xa,b,j,fo,m,ze))});var io=vi?Ie:(_i?an?Nf:xf:an?ou:pc)(m);return _t(io||m,function(xa,fo){io&&(xa=m[fo=xa]),Ra(Ct,fo,c(xa,b,j,fo,m,ze))}),Ct}function _(m,b,j){var te=j.length;if(null==m)return!te;for(m=y(m);te--;){var Ce=j[te],Ct=m[Ce];if(Ct===Ie&&!(Ce in m)||!(0,b[Ce])(Ct))return!1}return!0}function v(m,b,j){if("function"!=typeof m)throw new N(u);return Ep(function(){m.apply(Ie,j)},b)}function T(m,b,j,te){var Ce=-1,ze=$n,Ct=!0,Vt=m.length,an=[],_i=b.length;if(!Vt)return an;j&&(b=Un(b,Do(j))),te?(ze=Zt,Ct=!1):b.length>=200&&(ze=Br,Ct=!1,b=new yl(b));e:for(;++Ce<Vt;){var vi=m[Ce],Fi=null==j?vi:j(vi);if(vi=te||0!==vi?vi:0,Ct&&Fi==Fi){for(var _r=_i;_r--;)if(b[_r]===Fi)continue e;an.push(vi)}else ze(b,Fi,te)||an.push(vi)}return an}Se.templateSettings={escape:jc,evaluate:zs,interpolate:Ss,variable:"",imports:{_:Se}},(Se.prototype=Ua.prototype).constructor=Se,(Da.prototype=Ca(Ua.prototype)).constructor=Da,($i.prototype=Ca(Ua.prototype)).constructor=$i,Mr.prototype.clear=function Zl(){this.__data__=$r?$r(null):{},this.size=0},Mr.prototype.delete=function Kr(m){var b=this.has(m)&&delete this.__data__[m];return this.size-=b?1:0,b},Mr.prototype.get=function ha(m){var b=this.__data__;if($r){var j=b[m];return j===e?Ie:j}return ve.call(b,m)?b[m]:Ie},Mr.prototype.has=function Ws(m){var b=this.__data__;return $r?b[m]!==Ie:ve.call(b,m)},Mr.prototype.set=function Fo(m,b){var j=this.__data__;return this.size+=this.has(m)?0:1,j[m]=$r&&b===Ie?e:b,this},$s.prototype.clear=function Is(){this.__data__=[],this.size=0},$s.prototype.delete=function od(m){var b=this.__data__,j=eu(b,m);return!(j<0||(j==b.length-1?b.pop():At.call(b,j,1),--this.size,0))},$s.prototype.get=function pu(m){var b=this.__data__,j=eu(b,m);return j<0?Ie:b[j][1]},$s.prototype.has=function js(m){return eu(this.__data__,m)>-1},$s.prototype.set=function qr(m,b){var j=this.__data__,te=eu(j,m);return te<0?(++this.size,j.push([m,b])):j[te][1]=b,this},ja.prototype.clear=function ts(){this.size=0,this.__data__={hash:new Mr,map:new(Ri||$s),string:new Mr}},ja.prototype.delete=function Io(m){var b=yu(this,m).delete(m);return this.size-=b?1:0,b},ja.prototype.get=function Zd(m){return yu(this,m).get(m)},ja.prototype.has=function Qd(m){return yu(this,m).has(m)},ja.prototype.set=function Ii(m,b){var j=yu(this,m),te=j.size;return j.set(m,b),this.size+=j.size==te?0:1,this},yl.prototype.add=yl.prototype.push=function Cd(m){return this.__data__.set(m,e),this},yl.prototype.has=function Cl(m){return this.__data__.has(m)},Gr.prototype.clear=function cl(){this.__data__=new $s,this.size=0},Gr.prototype.delete=function Cc(m){var b=this.__data__,j=b.delete(m);return this.size=b.size,j},Gr.prototype.get=function qs(m){return this.__data__.get(m)},Gr.prototype.has=function Ao(m){return this.__data__.has(m)},Gr.prototype.set=function kd(m,b){var j=this.__data__;if(j instanceof $s){var te=j.__data__;if(!Ri||te.length<199)return te.push([m,b]),this.size=++j.size,this;j=this.__data__=new ja(te)}return j.set(m,b),this.size=j.size,this};var O=Yu(xt),B=Yu(St,!0);function q(m,b){var j=!0;return O(m,function(te,Ce,ze){return j=!!b(te,Ce,ze)}),j}function V(m,b,j){for(var te=-1,Ce=m.length;++te<Ce;){var ze=m[te],Ct=b(ze);if(null!=Ct&&(Vt===Ie?Ct==Ct&&!Wc(Ct):j(Ct,Vt)))var Vt=Ct,an=ze}return an}function ue(m,b){var j=[];return O(m,function(te,Ce,ze){b(te,Ce,ze)&&j.push(te)}),j}function pe(m,b,j,te,Ce){var ze=-1,Ct=m.length;for(j||(j=Ku),Ce||(Ce=[]);++ze<Ct;){var Vt=m[ze];b>0&&j(Vt)?b>1?pe(Vt,b-1,j,te,Ce):jr(Ce,Vt):te||(Ce[Ce.length]=Vt)}return Ce}var je=cd(),ft=cd(!0);function xt(m,b){return m&&je(m,b,pc)}function St(m,b){return m&&ft(m,b,pc)}function zt(m,b){return wn(b,function(j){return jd(m[j])})}function Hn(m,b){for(var j=0,te=(b=_u(b,m)).length;null!=m&&j<te;)m=m[Cu(b[j++])];return j&&j==te?m:Ie}function _n(m,b,j){var te=b(m);return ca(m)?te:jr(te,j(m))}function Ui(m){return null==m?m===Ie?"[object Undefined]":"[object Null]":He&&He in y(m)?function bf(m){var b=ve.call(m,He),j=m[He];try{m[He]=Ie;var te=!0}catch{}var Ce=oe.call(m);return te&&(b?m[He]=j:delete m[He]),Ce}(m):function yh(m){return oe.call(m)}(m)}function ma(m,b){return m>b}function la(m,b){return null!=m&&ve.call(m,b)}function La(m,b){return null!=m&&b in y(m)}function Ga(m,b,j){for(var te=j?Zt:$n,Ce=m[0].length,ze=m.length,Ct=ze,Vt=yt(ze),an=1/0,_i=[];Ct--;){var vi=m[Ct];Ct&&b&&(vi=Un(vi,Do(b))),an=dt(vi.length,an),Vt[Ct]=!j&&(b||Ce>=120&&vi.length>=120)?new yl(Ct&&vi):Ie}vi=m[0];var Fi=-1,_r=Vt[0];e:for(;++Fi<Ce&&_i.length<an;){var Ur=vi[Fi],va=b?b(Ur):Ur;if(Ur=j||0!==Ur?Ur:0,!(_r?Br(_r,va):te(_i,va,j))){for(Ct=ze;--Ct;){var io=Vt[Ct];if(!(io?Br(io,va):te(m[Ct],va,j)))continue e}_r&&_r.push(va),_i.push(Ur)}}return _i}function gs(m,b,j){var te=null==(m=co(m,b=_u(b,m)))?m:m[Cu(Gc(b))];return null==te?Ie:he(te,m,j)}function Rs(m){return Vl(m)&&Ui(m)==Gi}function wl(m,b,j,te,Ce){return m===b||(null==m||null==b||!Vl(m)&&!Vl(b)?m!=m&&b!=b:function Nc(m,b,j,te,Ce,ze){var Ct=ca(m),Vt=ca(b),an=Ct?Mo:Ya(m),_i=Vt?Mo:Ya(b),vi=(an=an==Gi?fs:an)==fs,Fi=(_i=_i==Gi?fs:_i)==fs,_r=an==_i;if(_r&&Yc(m)){if(!Yc(b))return!1;Ct=!0,vi=!1}if(_r&&!vi)return ze||(ze=new Gr),Ct||Vh(m)?vf(m,b,j,te,Ce,ze):function cp(m,b,j,te,Ce,ze,Ct){switch(j){case Cs:if(m.byteLength!=b.byteLength||m.byteOffset!=b.byteOffset)return!1;m=m.buffer,b=b.buffer;case bo:return!(m.byteLength!=b.byteLength||!ze(new Rt(m),new Rt(b)));case Bs:case Ts:case xc:return hl(+m,+b);case Jo:return m.name==b.name&&m.message==b.message;case ps:case Bd:return m==b+"";case Zo:var Vt=Oa;case Gs:if(Vt||(Vt=xl),m.size!=b.size&&!(1&te))return!1;var _i=Ct.get(m);if(_i)return _i==b;te|=2,Ct.set(m,b);var vi=vf(Vt(m),Vt(b),te,Ce,ze,Ct);return Ct.delete(m),vi;case Ia:if(sr)return sr.call(m)==sr.call(b)}return!1}(m,b,an,j,te,Ce,ze);if(!(1&j)){var Ur=vi&&ve.call(m,"__wrapped__"),va=Fi&&ve.call(b,"__wrapped__");if(Ur||va){var io=Ur?m.value():m,xa=va?b.value():b;return ze||(ze=new Gr),Ce(io,xa,j,te,ze)}}return!!_r&&(ze||(ze=new Gr),function Sp(m,b,j,te,Ce,ze){var Ct=1&j,Vt=xf(m),an=Vt.length;if(an!=xf(b).length&&!Ct)return!1;for(var Fi=an;Fi--;){var _r=Vt[Fi];if(!(Ct?_r in b:ve.call(b,_r)))return!1}var Ur=ze.get(m),va=ze.get(b);if(Ur&&va)return Ur==b&&va==m;var io=!0;ze.set(m,b),ze.set(b,m);for(var xa=Ct;++Fi<an;){var fo=m[_r=Vt[Fi]],xo=b[_r];if(te)var Af=Ct?te(xo,fo,_r,b,m,ze):te(fo,xo,_r,m,b,ze);if(!(Af===Ie?fo===xo||Ce(fo,xo,j,te,ze):Af)){io=!1;break}xa||(xa="constructor"==_r)}if(io&&!xa){var Su=m.constructor,tf=b.constructor;Su!=tf&&"constructor"in m&&"constructor"in b&&!("function"==typeof Su&&Su instanceof Su&&"function"==typeof tf&&tf instanceof tf)&&(io=!1)}return ze.delete(m),ze.delete(b),io}(m,b,j,te,Ce,ze))}(m,b,j,te,wl,Ce))}function Xs(m,b,j,te){var Ce=j.length,ze=Ce,Ct=!te;if(null==m)return!ze;for(m=y(m);Ce--;){var Vt=j[Ce];if(Ct&&Vt[2]?Vt[1]!==m[Vt[0]]:!(Vt[0]in m))return!1}for(;++Ce<ze;){var an=(Vt=j[Ce])[0],_i=m[an],vi=Vt[1];if(Ct&&Vt[2]){if(_i===Ie&&!(an in m))return!1}else{var Fi=new Gr;if(te)var _r=te(_i,vi,an,m,b,Fi);if(!(_r===Ie?wl(vi,_i,3,te,Fi):_r))return!1}}return!0}function tu(m){return!(!El(m)||function pp(m){return!!Le&&Le in m}(m))&&(jd(m)?ht:of).test(Pp(m))}function kp(m){return"function"==typeof m?m:null==m?ef:"object"==typeof m?ca(m)?Qf(m[0],m[1]):_s(m):Qg(m)}function ld(m){if(!Zs(m))return Te(m);var b=[];for(var j in y(m))ve.call(m,j)&&"constructor"!=j&&b.push(j);return b}function uf(m,b){return m<b}function ff(m,b){var j=-1,te=ml(m)?yt(m.length):[];return O(m,function(Ce,ze,Ct){te[++j]=b(Ce,ze,Ct)}),te}function _s(m){var b=dp(m);return 1==b.length&&b[0][2]?Pd(b[0][0],b[0][1]):function(j){return j===m||Xs(j,m,b)}}function Qf(m,b){return Ju(m)&&rc(b)?Pd(Cu(m),b):function(j){var te=hg(j,m);return te===Ie&&te===b?mg(j,m):wl(b,te,3)}}function Fp(m,b,j,te,Ce){m!==b&&je(b,function(ze,Ct){if(Ce||(Ce=new Gr),El(ze))!function Of(m,b,j,te,Ce,ze,Ct){var Vt=yf(m,j),an=yf(b,j),_i=Ct.get(an);if(_i)Ql(m,j,_i);else{var vi=ze?ze(Vt,an,j+"",m,b,Ct):Ie,Fi=vi===Ie;if(Fi){var _r=ca(an),Ur=!_r&&Yc(an),va=!_r&&!Ur&&Vh(an);vi=an,_r||Ur||va?ca(Vt)?vi=Vt:xs(Vt)?vi=ta(Vt):Ur?(Fi=!1,vi=gt(an,!0)):va?(Fi=!1,vi=Jr(an,!0)):vi=[]:gm(an)||Uc(an)?(vi=Vt,Uc(Vt)?vi=P0(Vt):(!El(Vt)||jd(Vt))&&(vi=fp(an))):Fi=!1}Fi&&(Ct.set(an,vi),Ce(vi,an,te,ze,Ct),Ct.delete(an)),Ql(m,j,vi)}}(m,b,Ct,j,Fp,te,Ce);else{var Vt=te?te(yf(m,Ct),ze,Ct+"",m,b,Ce):Ie;Vt===Ie&&(Vt=ze),Ql(m,Ct,Vt)}},ou)}function ep(m,b){var j=m.length;if(j)return Bf(b+=b<0?j:0,j)?m[b]:Ie}function mu(m,b,j){b=b.length?Un(b,function(ze){return ca(ze)?function(Ct){return Hn(Ct,1===ze.length?ze[0]:ze)}:ze}):[ef];var te=-1;return b=Un(b,Do(zr())),function ia(Ne,lt){var yt=Ne.length;for(Ne.sort(lt);yt--;)Ne[yt]=Ne[yt].value;return Ne}(ff(m,function(ze,Ct,Vt){return{criteria:Un(b,function(_i){return _i(ze)}),index:++te,value:ze}}),function(ze,Ct){return function Xa(m,b,j){for(var te=-1,Ce=m.criteria,ze=b.criteria,Ct=Ce.length,Vt=j.length;++te<Ct;){var an=ua(Ce[te],ze[te]);if(an)return te>=Vt?an:an*("desc"==j[te]?-1:1)}return m.index-b.index}(ze,Ct,j)})}function pf(m,b,j){for(var te=-1,Ce=b.length,ze={};++te<Ce;){var Ct=b[te],Vt=Hn(m,Ct);j(Vt,Ct)&&ip(ze,_u(Ct,m),Vt)}return ze}function Df(m,b,j,te){var Ce=te?wo:ba,ze=-1,Ct=b.length,Vt=m;for(m===b&&(b=ta(b)),j&&(Vt=Un(m,Do(j)));++ze<Ct;)for(var an=0,_i=b[ze],vi=j?j(_i):_i;(an=Ce(Vt,vi,an,te))>-1;)Vt!==m&&At.call(Vt,an,1),At.call(m,an,1);return m}function Hs(m,b){for(var j=m?b.length:0,te=j-1;j--;){var Ce=b[j];if(j==te||Ce!==ze){var ze=Ce;Bf(Ce)?At.call(m,Ce,1):rp(m,Ce)}}return m}function iu(m,b){return m+Xn(Cn()*(b-m+1))}function gu(m,b){var j="";if(!m||b<1||b>Mn)return j;do{b%2&&(j+=m),(b=Xn(b/2))&&(m+=m)}while(b);return j}function Va(m,b){return Ch(ch(m,b,ef),m+"")}function np(m){return Xr(Lp(m))}function Ap(m,b){var j=Lp(m);return Cf(j,hu(b,0,j.length))}function ip(m,b,j,te){if(!El(m))return m;for(var Ce=-1,ze=(b=_u(b,m)).length,Ct=ze-1,Vt=m;null!=Vt&&++Ce<ze;){var an=Cu(b[Ce]),_i=j;if("__proto__"===an||"constructor"===an||"prototype"===an)return m;if(Ce!=Ct){var vi=Vt[an];(_i=te?te(vi,an,Vt):Ie)===Ie&&(_i=El(vi)?vi:Bf(b[Ce+1])?[]:{})}Ra(Vt,an,_i),Vt=Vt[an]}return m}var If=Qn?function(m,b){return Qn.set(m,b),m}:ef,go=$e?function(m,b){return $e(m,"toString",{configurable:!0,enumerable:!1,value:Kg(b),writable:!0})}:ef;function ul(m){return Cf(Lp(m))}function Rn(m,b,j){var te=-1,Ce=m.length;b<0&&(b=-b>Ce?0:Ce+b),(j=j>Ce?Ce:j)<0&&(j+=Ce),Ce=b>j?0:j-b>>>0,b>>>=0;for(var ze=yt(Ce);++te<Ce;)ze[te]=m[te+b];return ze}function Uu(m,b){var j;return O(m,function(te,Ce,ze){return!(j=b(te,Ce,ze))}),!!j}function Ks(m,b,j){var te=0,Ce=null==m?te:m.length;if("number"==typeof b&&b==b&&Ce<=2147483647){for(;te<Ce;){var ze=te+Ce>>>1,Ct=m[ze];null!==Ct&&!Wc(Ct)&&(j?Ct<=b:Ct<b)?te=ze+1:Ce=ze}return Ce}return mi(m,b,ef,j)}function mi(m,b,j,te){var Ce=0,ze=null==m?0:m.length;if(0===ze)return 0;for(var Ct=(b=j(b))!=b,Vt=null===b,an=Wc(b),_i=b===Ie;Ce<ze;){var vi=Xn((Ce+ze)/2),Fi=j(m[vi]),_r=Fi!==Ie,Ur=null===Fi,va=Fi==Fi,io=Wc(Fi);if(Ct)var xa=te||va;else xa=_i?va&&(te||_r):Vt?va&&_r&&(te||!Ur):an?va&&_r&&!Ur&&(te||!io):!Ur&&!io&&(te?Fi<=b:Fi<b);xa?Ce=vi+1:ze=vi}return dt(ze,4294967294)}function hf(m,b){for(var j=-1,te=m.length,Ce=0,ze=[];++j<te;){var Ct=m[j],Vt=b?b(Ct):Ct;if(!j||!hl(Vt,an)){var an=Vt;ze[Ce++]=0===Ct?0:Ct}}return ze}function Tp(m){return"number"==typeof m?m:Wc(m)?NaN:+m}function ec(m){if("string"==typeof m)return m;if(ca(m))return Un(m,ec)+"";if(Wc(m))return Sr?Sr.call(m):"";var b=m+"";return"0"==b&&1/m==-ui?"-0":b}function Ad(m,b,j){var te=-1,Ce=$n,ze=m.length,Ct=!0,Vt=[],an=Vt;if(j)Ct=!1,Ce=Zt;else if(ze>=200){var _i=b?null:Rf(m);if(_i)return xl(_i);Ct=!1,Ce=Br,an=new yl}else an=b?[]:Vt;e:for(;++te<ze;){var vi=m[te],Fi=b?b(vi):vi;if(vi=j||0!==vi?vi:0,Ct&&Fi==Fi){for(var _r=an.length;_r--;)if(an[_r]===Fi)continue e;b&&an.push(Fi),Vt.push(vi)}else Ce(an,Fi,j)||(an!==Vt&&an.push(Fi),Vt.push(vi))}return Vt}function rp(m,b){return null==(m=co(m,b=_u(b,m)))||delete m[Cu(Gc(b))]}function vs(m,b,j,te){return ip(m,b,j(Hn(m,b)),te)}function Up(m,b,j,te){for(var Ce=m.length,ze=te?Ce:-1;(te?ze--:++ze<Ce)&&b(m[ze],ze,m););return j?Rn(m,te?0:ze,te?ze+1:Ce):Rn(m,te?ze+1:0,te?Ce:ze)}function Jh(m,b){var j=m;return j instanceof $i&&(j=j.value()),gi(b,function(te,Ce){return Ce.func.apply(Ce.thisArg,jr([te],Ce.args))},j)}function jf(m,b,j){var te=m.length;if(te<2)return te?Ad(m[0]):[];for(var Ce=-1,ze=yt(te);++Ce<te;)for(var Ct=m[Ce],Vt=-1;++Vt<te;)Vt!=Ce&&(ze[Ce]=T(ze[Ce]||Ct,m[Vt],b,j));return Ad(pe(ze,1),b,j)}function Za(m,b,j){for(var te=-1,Ce=m.length,ze=b.length,Ct={};++te<Ce;)j(Ct,m[te],te<ze?b[te]:Ie);return Ct}function ap(m){return xs(m)?m:[]}function mf(m){return"function"==typeof m?m:ef}function _u(m,b){return ca(m)?m:Ju(m,b)?[m]:Fh(rs(m))}var z=Va;function ge(m,b,j){var te=m.length;return j=j===Ie?te:j,!b&&j>=te?m:Rn(m,b,j)}var rt=jt||function(m){return es.clearTimeout(m)};function gt(m,b){if(b)return m.slice();var j=m.length,te=Jt?Jt(j):new m.constructor(j);return m.copy(te),te}function Ut(m){var b=new m.constructor(m.byteLength);return new Rt(b).set(new Rt(m)),b}function Jr(m,b){var j=b?Ut(m.buffer):m.buffer;return new m.constructor(j,m.byteOffset,m.length)}function ua(m,b){if(m!==b){var j=m!==Ie,te=null===m,Ce=m==m,ze=Wc(m),Ct=b!==Ie,Vt=null===b,an=b==b,_i=Wc(b);if(!Vt&&!_i&&!ze&&m>b||ze&&Ct&&an&&!Vt&&!_i||te&&Ct&&an||!j&&an||!Ce)return 1;if(!te&&!ze&&!_i&&m<b||_i&&j&&Ce&&!te&&!ze||Vt&&j&&Ce||!Ct&&Ce||!an)return-1}return 0}function ga(m,b,j,te){for(var Ce=-1,ze=m.length,Ct=j.length,Vt=-1,an=b.length,_i=Qe(ze-Ct,0),vi=yt(an+_i),Fi=!te;++Vt<an;)vi[Vt]=b[Vt];for(;++Ce<Ct;)(Fi||Ce<ze)&&(vi[j[Ce]]=m[Ce]);for(;_i--;)vi[Vt++]=m[Ce++];return vi}function Qa(m,b,j,te){for(var Ce=-1,ze=m.length,Ct=-1,Vt=j.length,an=-1,_i=b.length,vi=Qe(ze-Vt,0),Fi=yt(vi+_i),_r=!te;++Ce<vi;)Fi[Ce]=m[Ce];for(var Ur=Ce;++an<_i;)Fi[Ur+an]=b[an];for(;++Ct<Vt;)(_r||Ce<ze)&&(Fi[Ur+j[Ct]]=m[Ce++]);return Fi}function ta(m,b){var j=-1,te=m.length;for(b||(b=yt(te));++j<te;)b[j]=m[j];return b}function is(m,b,j,te){var Ce=!j;j||(j={});for(var ze=-1,Ct=b.length;++ze<Ct;){var Vt=b[ze],an=te?te(j[Vt],m[Vt],Vt,j,m):Ie;an===Ie&&(an=m[Vt]),Ce?Rl(j,Vt,an):Ra(j,Vt,an)}return j}function Bc(m,b){return function(j,te){var Ce=ca(j)?Ee:kc,ze=b?b():{};return Ce(j,m,zr(te,2),ze)}}function wc(m){return Va(function(b,j){var te=-1,Ce=j.length,ze=Ce>1?j[Ce-1]:Ie,Ct=Ce>2?j[2]:Ie;for(ze=m.length>3&&"function"==typeof ze?(Ce--,ze):Ie,Ct&&Gl(j[0],j[1],Ct)&&(ze=Ce<3?Ie:ze,Ce=1),b=y(b);++te<Ce;){var Vt=j[te];Vt&&m(b,Vt,te,ze)}return b})}function Yu(m,b){return function(j,te){if(null==j)return j;if(!ml(j))return m(j,te);for(var Ce=j.length,ze=b?Ce:-1,Ct=y(j);(b?ze--:++ze<Ce)&&!1!==te(Ct[ze],ze,Ct););return j}}function cd(m){return function(b,j,te){for(var Ce=-1,ze=y(b),Ct=te(b),Vt=Ct.length;Vt--;){var an=Ct[m?Vt:++Ce];if(!1===j(ze[an],an,ze))break}return b}}function vu(m){return function(b){var j=rd(b=rs(b))?ws(b):Ie,te=j?j[0]:b.charAt(0),Ce=j?ge(j,1).join(""):b.slice(1);return te[m]()+Ce}}function Fc(m){return function(b){return gi(Hg(ym(b).replace(Fa,"")),m,"")}}function Wu(m){return function(){var b=arguments;switch(b.length){case 0:return new m;case 1:return new m(b[0]);case 2:return new m(b[0],b[1]);case 3:return new m(b[0],b[1],b[2]);case 4:return new m(b[0],b[1],b[2],b[3]);case 5:return new m(b[0],b[1],b[2],b[3],b[4]);case 6:return new m(b[0],b[1],b[2],b[3],b[4],b[5]);case 7:return new m(b[0],b[1],b[2],b[3],b[4],b[5],b[6])}var j=Ca(m.prototype),te=m.apply(j,b);return El(te)?te:j}}function Ac(m){return function(b,j,te){var Ce=y(b);if(!ml(b)){var ze=zr(j,3);b=pc(b),j=function(Vt){return ze(Ce[Vt],Vt,Ce)}}var Ct=m(b,j,te);return Ct>-1?Ce[ze?b[Ct]:Ct]:Ie}}function Tc(m){return jo(function(b){var j=b.length,te=j,Ce=Da.prototype.thru;for(m&&b.reverse();te--;){var ze=b[te];if("function"!=typeof ze)throw new N(u);if(Ce&&!Ct&&"wrapper"==bu(ze))var Ct=new Da([],!0)}for(te=Ct?te:j;++te<j;){var Vt=bu(ze=b[te]),an="wrapper"==Vt?Sd(ze):Ie;Ct=an&&Yp(an[0])&&424==an[1]&&!an[4].length&&1==an[9]?Ct[bu(an[0])].apply(Ct,an[3]):1==ze.length&&Yp(ze)?Ct[Vt]():Ct.thru(ze)}return function(){var _i=arguments,vi=_i[0];if(Ct&&1==_i.length&&ca(vi))return Ct.plant(vi).value();for(var Fi=0,_r=j?b[Fi].apply(this,_i):vi;++Fi<j;)_r=b[Fi].call(this,_r);return _r}})}function $u(m,b,j,te,Ce,ze,Ct,Vt,an,_i){var vi=128&b,Fi=1&b,_r=2&b,Ur=24&b,va=512&b,io=_r?Ie:Wu(m);return function xa(){for(var fo=arguments.length,xo=yt(fo),Af=fo;Af--;)xo[Af]=arguments[Af];if(Ur)var Su=Js(xa),tf=function Bu(Ne,lt){for(var yt=Ne.length,En=0;yt--;)Ne[yt]===lt&&++En;return En}(xo,Su);if(te&&(xo=ga(xo,te,Ce,Ur)),ze&&(xo=Qa(xo,ze,Ct,Ur)),fo-=tf,Ur&&fo<_i){var ac=Ys(xo,Su);return Nl(m,b,$u,xa.placeholder,j,xo,ac,Vt,an,_i-fo)}var su=Fi?j:this,xp=_r?su[m]:m;return fo=xo.length,Vt?xo=function tm(m,b){for(var j=m.length,te=dt(b.length,j),Ce=ta(m);te--;){var ze=b[te];m[te]=Bf(ze,j)?Ce[ze]:Ie}return m}(xo,Vt):va&&fo>1&&xo.reverse(),vi&&an<fo&&(xo.length=an),this&&this!==es&&this instanceof xa&&(xp=io||Wu(xp)),xp.apply(su,xo)}}function sp(m,b){return function(j,te){return function ka(m,b,j,te){return xt(m,function(Ce,ze,Ct){b(te,j(Ce),ze,Ct)}),te}(j,m,b(te),{})}}function dd(m,b){return function(j,te){var Ce;if(j===Ie&&te===Ie)return b;if(j!==Ie&&(Ce=j),te!==Ie){if(Ce===Ie)return te;"string"==typeof j||"string"==typeof te?(j=ec(j),te=ec(te)):(j=Tp(j),te=Tp(te)),Ce=m(j,te)}return Ce}}function _f(m){return jo(function(b){return b=Un(b,Do(zr())),Va(function(j){var te=this;return m(b,function(Ce){return he(Ce,te,j)})})})}function Sc(m,b){var j=(b=b===Ie?" ":ec(b)).length;if(j<2)return j?gu(b,m):b;var te=gu(b,Dn(m/bl(b)));return rd(b)?ge(ws(te),0,m).join(""):te.slice(0,m)}function xu(m){return function(b,j,te){return te&&"number"!=typeof te&&Gl(b,j,te)&&(j=te=Ie),b=vp(b),j===Ie?(j=b,b=0):j=vp(j),function Kh(m,b,j,te){for(var Ce=-1,ze=Qe(Dn((b-m)/(j||1)),0),Ct=yt(ze);ze--;)Ct[te?ze:++Ce]=m,m+=j;return Ct}(b,j,te=te===Ie?b<j?1:-1:vp(te),m)}}function Td(m){return function(b,j){return"string"==typeof b&&"string"==typeof j||(b=Yf(b),j=Yf(j)),m(b,j)}}function Nl(m,b,j,te,Ce,ze,Ct,Vt,an,_i){var vi=8&b;b|=vi?32:64,4&(b&=~(vi?64:32))||(b&=-4);var io=[m,b,Ce,vi?ze:Ie,vi?Ct:Ie,vi?Ie:ze,vi?Ie:Ct,Vt,an,_i],xa=j.apply(Ie,io);return Yp(m)&&Ec(xa,io),xa.placeholder=te,kh(xa,m,b)}function fl(m){var b=A[m];return function(j,te){if(j=Yf(j),(te=null==te?0:dt(Wa(te),292))&&ai(j)){var Ce=(rs(j)+"e").split("e");return+((Ce=(rs(b(Ce[0]+"e"+(+Ce[1]+te)))+"e").split("e"))[0]+"e"+(+Ce[1]-te))}return b(j)}}var Rf=Zn&&1/xl(new Zn([,-0]))[1]==ui?function(m){return new Zn(m)}:Zg;function Lf(m){return function(b){var j=Ya(b);return j==Zo?Oa(b):j==Gs?function jl(Ne){var lt=-1,yt=Array(Ne.size);return Ne.forEach(function(En){yt[++lt]=[En,En]}),yt}(b):function Os(Ne,lt){return Un(lt,function(yt){return[yt,Ne[yt]]})}(b,m(b))}}function ic(m,b,j,te,Ce,ze,Ct,Vt){var an=2&b;if(!an&&"function"!=typeof m)throw new N(u);var _i=te?te.length:0;if(_i||(b&=-97,te=Ce=Ie),Ct=Ct===Ie?Ct:Qe(Wa(Ct),0),Vt=Vt===Ie?Vt:Wa(Vt),_i-=Ce?Ce.length:0,64&b){var vi=te,Fi=Ce;te=Ce=Ie}var _r=an?Ie:Sd(m),Ur=[m,b,j,te,Ce,vi,Fi,ze,Ct,Vt];if(_r&&function em(m,b){var j=m[1],te=b[1],Ce=j|te;if(!(Ce<131)&&!(128==te&&8==j||128==te&&256==j&&m[7].length<=b[8]||384==te&&b[7].length<=b[8]&&8==j))return m;1&te&&(m[2]=b[2],Ce|=1&j?0:4);var Vt=b[3];if(Vt){var an=m[3];m[3]=an?ga(an,Vt,b[4]):Vt,m[4]=an?Ys(m[3],qe):b[4]}(Vt=b[5])&&(m[5]=(an=m[5])?Qa(an,Vt,b[6]):Vt,m[6]=an?Ys(m[5],qe):b[6]),(Vt=b[7])&&(m[7]=Vt),128&te&&(m[8]=null==m[8]?b[8]:dt(m[8],b[8])),null==m[9]&&(m[9]=b[9]),m[0]=b[0],m[1]=Ce}(Ur,_r),m=Ur[0],b=Ur[1],j=Ur[2],te=Ur[3],Ce=Ur[4],!(Vt=Ur[9]=Ur[9]===Ie?an?0:m.length:Qe(Ur[9]-_i,0))&&24&b&&(b&=-25),b&&1!=b)va=8==b||16==b?function op(m,b,j){var te=Wu(m);return function Ce(){for(var ze=arguments.length,Ct=yt(ze),Vt=ze,an=Js(Ce);Vt--;)Ct[Vt]=arguments[Vt];var _i=ze<3&&Ct[0]!==an&&Ct[ze-1]!==an?[]:Ys(Ct,an);return(ze-=_i.length)<j?Nl(m,b,$u,Ce.placeholder,Ie,Ct,_i,Ie,Ie,j-ze):he(this&&this!==es&&this instanceof Ce?te:m,this,Ct)}}(m,b,Vt):32!=b&&33!=b||Ce.length?$u.apply(Ie,Ur):function Zh(m,b,j,te){var Ce=1&b,ze=Wu(m);return function Ct(){for(var Vt=-1,an=arguments.length,_i=-1,vi=te.length,Fi=yt(vi+an),_r=this&&this!==es&&this instanceof Ct?ze:m;++_i<vi;)Fi[_i]=te[_i];for(;an--;)Fi[_i++]=arguments[++Vt];return he(_r,Ce?j:this,Fi)}}(m,b,j,te);else var va=function gf(m,b,j){var te=1&b,Ce=Wu(m);return function ze(){return(this&&this!==es&&this instanceof ze?Ce:m).apply(te?j:this,arguments)}}(m,b,j);return kh((_r?If:Ec)(va,Ur),m,b)}function ru(m,b,j,te){return m===Ie||hl(m,W[j])&&!ve.call(te,j)?b:m}function qu(m,b,j,te,Ce,ze){return El(m)&&El(b)&&(ze.set(b,m),Fp(m,b,Ie,qu,ze),ze.delete(b)),m}function lp(m){return gm(m)?Ie:m}function vf(m,b,j,te,Ce,ze){var Ct=1&j,Vt=m.length,an=b.length;if(Vt!=an&&!(Ct&&an>Vt))return!1;var _i=ze.get(m),vi=ze.get(b);if(_i&&vi)return _i==b&&vi==m;var Fi=-1,_r=!0,Ur=2&j?new yl:Ie;for(ze.set(m,b),ze.set(b,m);++Fi<Vt;){var va=m[Fi],io=b[Fi];if(te)var xa=Ct?te(io,va,Fi,b,m,ze):te(va,io,Fi,m,b,ze);if(xa!==Ie){if(xa)continue;_r=!1;break}if(Ur){if(!Co(b,function(fo,xo){if(!Br(Ur,xo)&&(va===fo||Ce(va,fo,j,te,ze)))return Ur.push(xo)})){_r=!1;break}}else if(va!==io&&!Ce(va,io,j,te,ze)){_r=!1;break}}return ze.delete(m),ze.delete(b),_r}function jo(m){return Ch(ch(m,Ie,rm),m+"")}function xf(m){return _n(m,pc,Ro)}function Nf(m){return _n(m,ou,Xu)}var Sd=Qn?function(m){return Qn.get(m)}:Zg;function bu(m){for(var b=m.name+"",j=vt[b],te=ve.call(vt,b)?j.length:0;te--;){var Ce=j[te],ze=Ce.func;if(null==ze||ze==m)return Ce.name}return b}function Js(m){return(ve.call(Se,"placeholder")?Se:m).placeholder}function zr(){var m=Se.iteratee||Jg;return m=m===Jg?kp:m,arguments.length?m(arguments[0],arguments[1]):m}function yu(m,b){var j=m.__data__;return function Qh(m){var b=typeof m;return"string"==b||"number"==b||"symbol"==b||"boolean"==b?"__proto__"!==m:null===m}(b)?j["string"==typeof b?"string":"hash"]:j.map}function dp(m){for(var b=pc(m),j=b.length;j--;){var te=b[j],Ce=m[te];b[j]=[te,Ce,rc(Ce)]}return b}function Ed(m,b){var j=function Zf(Ne,lt){return null==Ne?Ie:Ne[lt]}(m,b);return tu(j)?j:Ie}var Ro=xn?function(m){return null==m?[]:(m=y(m),wn(xn(m),function(b){return mn.call(m,b)}))}:e0,Xu=xn?function(m){for(var b=[];m;)jr(b,Ro(m)),m=An(m);return b}:e0,Ya=Ui;function Bl(m,b,j){for(var te=-1,Ce=(b=_u(b,m)).length,ze=!1;++te<Ce;){var Ct=Cu(b[te]);if(!(ze=null!=m&&j(m,Ct)))break;m=m[Ct]}return ze||++te!=Ce?ze:!!(Ce=null==m?0:m.length)&&ug(Ce)&&Bf(Ct,Ce)&&(ca(m)||Uc(m))}function fp(m){return"function"!=typeof m.constructor||Zs(m)?{}:Ca(An(m))}function Ku(m){return ca(m)||Uc(m)||!!(qn&&m&&m[qn])}function Bf(m,b){var j=typeof m;return!!(b=b??Mn)&&("number"==j||"symbol"!=j&&Zc.test(m))&&m>-1&&m%1==0&&m<b}function Gl(m,b,j){if(!El(j))return!1;var te=typeof b;return!!("number"==te?ml(j)&&Bf(b,j.length):"string"==te&&b in j)&&hl(j[b],m)}function Ju(m,b){if(ca(m))return!1;var j=typeof m;return!("number"!=j&&"symbol"!=j&&"boolean"!=j&&null!=m&&!Wc(m))||Ou.test(m)||!zd.test(m)||null!=b&&m in y(b)}function Yp(m){var b=bu(m),j=Se[b];if("function"!=typeof j||!(b in $i.prototype))return!1;if(m===j)return!0;var te=Sd(j);return!!te&&m===te[0]}(Ln&&Ya(new Ln(new ArrayBuffer(1)))!=Cs||Ri&&Ya(new Ri)!=Zo||Oi&&Ya(Oi.resolve())!=Pl||Zn&&Ya(new Zn)!=Gs||Hi&&Ya(new Hi)!=Vs)&&(Ya=function(m){var b=Ui(m),j=b==fs?m.constructor:Ie,te=j?Pp(j):"";if(te)switch(te){case pa:return Cs;case Wi:return Zo;case Pi:return Pl;case zi:return Gs;case er:return Vs}return b});var Pa=X?jd:Cg;function Zs(m){var b=m&&m.constructor;return m===("function"==typeof b&&b.prototype||W)}function rc(m){return m==m&&!El(m)}function Pd(m,b){return function(j){return null!=j&&j[m]===b&&(b!==Ie||m in y(j))}}function ch(m,b,j){return b=Qe(b===Ie?m.length-1:b,0),function(){for(var te=arguments,Ce=-1,ze=Qe(te.length-b,0),Ct=yt(ze);++Ce<ze;)Ct[Ce]=te[b+Ce];Ce=-1;for(var Vt=yt(b+1);++Ce<b;)Vt[Ce]=te[Ce];return Vt[b]=j(Ct),he(m,this,Vt)}}function co(m,b){return b.length<2?m:Hn(m,Rn(b,0,-1))}function yf(m,b){if(("constructor"!==b||"function"!=typeof m[b])&&"__proto__"!=b)return m[b]}var Ec=wh(If),Ep=On||function(m,b){return es.setTimeout(m,b)},Ch=wh(go);function kh(m,b,j){var te=b+"";return Ch(m,function Hu(m,b){var j=b.length;if(!j)return m;var te=j-1;return b[te]=(j>1?"& ":"")+b[te],b=b.join(j>2?", ":" "),m.replace(Yd,"{\n/* [wrapped with "+b+"] */\n")}(te,function Om(m,b){return _t(Nr,function(j){var te="_."+j[0];b&j[1]&&!$n(m,te)&&m.push(te)}),m.sort()}(function pl(m){var b=m.match(bc);return b?b[1].split(Jc):[]}(te),j)))}function wh(m){var b=0,j=0;return function(){var te=Nt(),Ce=16-(te-j);if(j=te,Ce>0){if(++b>=800)return arguments[0]}else b=0;return m.apply(Ie,arguments)}}function Cf(m,b){var j=-1,te=m.length,Ce=te-1;for(b=b===Ie?te:b;++j<b;){var ze=iu(j,Ce),Ct=m[ze];m[ze]=m[j],m[j]=Ct}return m.length=b,m}var Fh=function _o(m){var b=gh(m,function(te){return 500===j.size&&j.clear(),te}),j=b.cache;return b}(function(m){var b=[];return 46===m.charCodeAt(0)&&b.push(""),m.replace(Du,function(j,te,Ce,ze){b.push(Ce?ze.replace(fu,"$1"):te||j)}),b});function Cu(m){if("string"==typeof m||Wc(m))return m;var b=m+"";return"0"==b&&1/m==-ui?"-0":b}function Pp(m){if(null!=m){try{return de.call(m)}catch{}try{return m+""}catch{}}return""}function Ah(m){if(m instanceof $i)return m.clone();var b=new Da(m.__wrapped__,m.__chain__);return b.__actions__=ta(m.__actions__),b.__index__=m.__index__,b.__values__=m.__values__,b}var nm=Va(function(m,b){return xs(m)?T(m,pe(b,1,xs,!0)):[]}),Dm=Va(function(m,b){var j=Gc(b);return xs(j)&&(j=Ie),xs(m)?T(m,pe(b,1,xs,!0),zr(j,2)):[]}),rg=Va(function(m,b){var j=Gc(b);return xs(j)&&(j=Ie),xs(m)?T(m,pe(b,1,xs,!0),Ie,j):[]});function Zu(m,b,j){var te=null==m?0:m.length;if(!te)return-1;var Ce=null==j?0:Wa(j);return Ce<0&&(Ce=Qe(te+Ce,0)),ko(m,zr(b,3),Ce)}function Eh(m,b,j){var te=null==m?0:m.length;if(!te)return-1;var Ce=te-1;return j!==Ie&&(Ce=Wa(j),Ce=j<0?Qe(te+Ce,0):dt(Ce,te-1)),ko(m,zr(b,3),Ce,!0)}function rm(m){return null!=m&&m.length?pe(m,1):[]}function Im(m){return m&&m.length?m[0]:Ie}var jm=Va(function(m){var b=Un(m,ap);return b.length&&b[0]===m[0]?Ga(b):[]}),$p=Va(function(m){var b=Gc(m),j=Un(m,ap);return b===Gc(j)?b=Ie:j.pop(),j.length&&j[0]===m[0]?Ga(j,zr(b,2)):[]}),Rm=Va(function(m){var b=Gc(m),j=Un(m,ap);return(b="function"==typeof b?b:Ie)&&j.pop(),j.length&&j[0]===m[0]?Ga(j,Ie,b):[]});function Gc(m){var b=null==m?0:m.length;return b?m[b-1]:Ie}var sm=Va(lm);function lm(m,b){return m&&m.length&&b&&b.length?Df(m,b):m}var lg=jo(function(m,b){var j=null==m?0:m.length,te=wd(m,b);return Hs(m,Un(b,function(Ce){return Bf(Ce,j)?+Ce:Ce}).sort(ua)),te});function Pc(m){return null==m?m:In.call(m)}var Re=Va(function(m){return Ad(pe(m,1,xs,!0))}),Ge=Va(function(m){var b=Gc(m);return xs(b)&&(b=Ie),Ad(pe(m,1,xs,!0),zr(b,2))}),et=Va(function(m){var b=Gc(m);return b="function"==typeof b?b:Ie,Ad(pe(m,1,xs,!0),Ie,b)});function Kt(m){if(!m||!m.length)return[];var b=0;return m=wn(m,function(j){if(xs(j))return b=Qe(j.length,b),!0}),Ma(b,function(j){return Un(m,Us(j))})}function fi(m,b){if(!m||!m.length)return[];var j=Kt(m);return null==b?j:Un(j,function(te){return he(b,Ie,te)})}var Bn=Va(function(m,b){return xs(m)?T(m,b):[]}),Bt=Va(function(m){return jf(wn(m,xs))}),Ht=Va(function(m){var b=Gc(m);return xs(b)&&(b=Ie),jf(wn(m,xs),zr(b,2))}),ci=Va(function(m){var b=Gc(m);return b="function"==typeof b?b:Ie,jf(wn(m,xs),Ie,b)}),wi=Va(Kt),Ji=Va(function(m){var b=m.length,j=b>1?m[b-1]:Ie;return j="function"==typeof j?(m.pop(),j):Ie,fi(m,j)});function na(m){var b=Se(m);return b.__chain__=!0,b}function uo(m,b){return b(m)}var Yo=jo(function(m){var b=m.length,j=b?m[0]:0,te=this.__wrapped__,Ce=function(ze){return wd(ze,m)};return!(b>1||this.__actions__.length)&&te instanceof $i&&Bf(j)?((te=te.slice(j,+j+(b?1:0))).__actions__.push({func:uo,args:[Ce],thisArg:Ie}),new Da(te,this.__chain__).thru(function(ze){return b&&!ze.length&&ze.push(Ie),ze})):this.thru(Ce)}),Sl=Bc(function(m,b,j){ve.call(m,j)?++m[j]:Rl(m,j,1)}),Mc=Ac(Zu),Fu=Ac(Eh);function Od(m,b){return(ca(m)?_t:O)(m,zr(b,3))}function Qu(m,b){return(ca(m)?st:B)(m,zr(b,3))}var fc=Bc(function(m,b,j){ve.call(m,j)?m[j].push(b):Rl(m,j,[b])}),kf=Va(function(m,b,j){var te=-1,Ce="function"==typeof b,ze=ml(m)?yt(m.length):[];return O(m,function(Ct){ze[++te]=Ce?he(b,Ct,j):gs(Ct,b,j)}),ze}),qp=Bc(function(m,b,j){Rl(m,j,b)});function Dd(m,b){return(ca(m)?Un:ff)(m,zr(b,3))}var dm=Bc(function(m,b,j){m[j?0:1].push(b)},function(){return[[],[]]}),um=Va(function(m,b){if(null==m)return[];var j=b.length;return j>1&&Gl(m,b[0],b[1])?b=[]:j>2&&Gl(b[0],b[1],b[2])&&(b=[b[0]]),mu(m,pe(b,1),[])}),hp=kt||function(){return es.Date.now()};function mp(m,b,j){return b=j?Ie:b,ic(m,128,Ie,Ie,Ie,Ie,b=m&&null==b?m.length:b)}function ph(m,b){var j;if("function"!=typeof b)throw new N(u);return m=Wa(m),function(){return--m>0&&(j=b.apply(this,arguments)),m<=1&&(b=Ie),j}}var Dp=Va(function(m,b,j){var te=1;if(j.length){var Ce=Ys(j,Js(Dp));te|=32}return ic(m,te,b,j,Ce)}),Hp=Va(function(m,b,j){var te=3;if(j.length){var Ce=Ys(j,Js(Hp));te|=32}return ic(b,te,m,j,Ce)});function hh(m,b,j){var te,Ce,ze,Ct,Vt,an,_i=0,vi=!1,Fi=!1,_r=!0;if("function"!=typeof m)throw new N(u);function Ur(ac){var su=te,xp=Ce;return te=Ce=Ie,_i=ac,Ct=m.apply(xp,su)}function xa(ac){var su=ac-an;return an===Ie||su>=b||su<0||Fi&&ac-_i>=ze}function fo(){var ac=hp();if(xa(ac))return xo(ac);Vt=Ep(fo,function io(ac){var kg=b-(ac-an);return Fi?dt(kg,ze-(ac-_i)):kg}(ac))}function xo(ac){return Vt=Ie,_r&&te?Ur(ac):(te=Ce=Ie,Ct)}function tf(){var ac=hp(),su=xa(ac);if(te=arguments,Ce=this,an=ac,su){if(Vt===Ie)return function va(ac){return _i=ac,Vt=Ep(fo,b),vi?Ur(ac):Ct}(an);if(Fi)return rt(Vt),Vt=Ep(fo,b),Ur(an)}return Vt===Ie&&(Vt=Ep(fo,b)),Ct}return b=Yf(b)||0,El(j)&&(vi=!!j.leading,ze=(Fi="maxWait"in j)?Qe(Yf(j.maxWait)||0,b):ze,_r="trailing"in j?!!j.trailing:_r),tf.cancel=function Af(){Vt!==Ie&&rt(Vt),_i=0,te=an=Ce=Vt=Ie},tf.flush=function Su(){return Vt===Ie?Ct:xo(hp())},tf}var gp=Va(function(m,b){return v(m,1,b)}),mh=Va(function(m,b,j){return v(m,Yf(b)||0,j)});function gh(m,b){if("function"!=typeof m||null!=b&&"function"!=typeof b)throw new N(u);var j=function(){var te=arguments,Ce=b?b.apply(this,te):te[0],ze=j.cache;if(ze.has(Ce))return ze.get(Ce);var Ct=m.apply(this,te);return j.cache=ze.set(Ce,Ct)||ze,Ct};return j.cache=new(gh.Cache||ja),j}function Ih(m){if("function"!=typeof m)throw new N(u);return function(){var b=arguments;switch(b.length){case 0:return!m.call(this);case 1:return!m.call(this,b[0]);case 2:return!m.call(this,b[0],b[1]);case 3:return!m.call(this,b[0],b[1],b[2])}return!m.apply(this,b)}}gh.Cache=ja;var jh=z(function(m,b){var j=(b=1==b.length&&ca(b[0])?Un(b[0],Do(zr())):Un(pe(b,1),Do(zr()))).length;return Va(function(te){for(var Ce=-1,ze=dt(te.length,j);++Ce<ze;)te[Ce]=b[Ce].call(this,te[Ce]);return he(m,this,te)})}),_h=Va(function(m,b){var j=Ys(b,Js(_h));return ic(m,32,Ie,b,j)}),Ip=Va(function(m,b){var j=Ys(b,Js(Ip));return ic(m,64,Ie,b,j)}),Rh=jo(function(m,b){return ic(m,256,Ie,Ie,Ie,b)});function hl(m,b){return m===b||m!=m&&b!=b}var dg=Td(ma),Bh=Td(function(m,b){return m>=b}),Uc=Rs(function(){return arguments}())?Rs:function(m){return Vl(m)&&ve.call(m,"callee")&&!mn.call(m,"callee")},ca=yt.isArray,Id=Mf?Do(Mf):function Fs(m){return Vl(m)&&Ui(m)==bo};function ml(m){return null!=m&&ug(m.length)&&!jd(m)}function xs(m){return Vl(m)&&ml(m)}var Yc=oi||Cg,Uf=w?Do(w):function ns(m){return Vl(m)&&Ui(m)==Ts};function Gh(m){if(!Vl(m))return!1;var b=Ui(m);return b==Jo||"[object DOMException]"==b||"string"==typeof m.message&&"string"==typeof m.name&&!gm(m)}function jd(m){if(!El(m))return!1;var b=Ui(m);return b==rl||b==Wl||"[object AsyncFunction]"==b||"[object Proxy]"==b}function Ig(m){return"number"==typeof m&&m==Wa(m)}function ug(m){return"number"==typeof m&&m>-1&&m%1==0&&m<=Mn}function El(m){var b=typeof m;return null!=m&&("object"==b||"function"==b)}function Vl(m){return null!=m&&"object"==typeof m}var jg=I?Do(I):function zu(m){return Vl(m)&&Ya(m)==Zo};function A0(m){return"number"==typeof m||Vl(m)&&Ui(m)==xc}function gm(m){if(!Vl(m)||Ui(m)!=fs)return!1;var b=An(m);if(null===b)return!0;var j=ve.call(b,"constructor")&&b.constructor;return"function"==typeof j&&j instanceof j&&de.call(j)==at}var _m=H?Do(H):function Ll(m){return Vl(m)&&Ui(m)==ps},pg=Q?Do(Q):function Zr(m){return Vl(m)&&Ya(m)==Gs};function vm(m){return"string"==typeof m||!ca(m)&&Vl(m)&&Ui(m)==Bd}function Wc(m){return"symbol"==typeof m||Vl(m)&&Ui(m)==Ia}var Vh=_e?Do(_e):function nu(m){return Vl(m)&&ug(m.length)&&!!Ba[Ui(m)]},S0=Td(uf),E0=Td(function(m,b){return m<=b});function Lg(m){if(!m)return[];if(ml(m))return vm(m)?ws(m):ta(m);if(ii&&m[ii])return function df(Ne){for(var lt,yt=[];!(lt=Ne.next()).done;)yt.push(lt.value);return yt}(m[ii]());var b=Ya(m);return(b==Zo?Oa:b==Gs?xl:Lp)(m)}function vp(m){return m?(m=Yf(m))===ui||m===-ui?17976931348623157e292*(m<0?-1:1):m==m?m:0:0===m?m:0}function Wa(m){var b=vp(m),j=b%1;return b==b?j?b-j:b:0}function Ng(m){return m?hu(Wa(m),0,Xi):0}function Yf(m){if("number"==typeof m)return m;if(Wc(m))return NaN;if(El(m)){var b="function"==typeof m.valueOf?m.valueOf():m;m=El(b)?b+"":b}if("string"!=typeof m)return 0===m?m:+m;m=ks(m);var j=Wd.test(m);return j||vd.test(m)?cf(m.slice(2),j?2:8):Pf.test(m)?NaN:+m}function P0(m){return is(m,ou(m))}function rs(m){return null==m?"":ec(m)}var Bg=wc(function(m,b){if(Zs(b)||ml(b))is(b,pc(b),m);else for(var j in b)ve.call(b,j)&&Ra(m,j,b[j])}),Gg=wc(function(m,b){is(b,ou(b),m)}),Xm=wc(function(m,b,j,te){is(b,ou(b),m,te)}),M0=wc(function(m,b,j,te){is(b,pc(b),m,te)}),O0=jo(wd),Vg=Va(function(m,b){m=y(m);var j=-1,te=b.length,Ce=te>2?b[2]:Ie;for(Ce&&Gl(b[0],b[1],Ce)&&(te=1);++j<te;)for(var ze=b[j],Ct=ou(ze),Vt=-1,an=Ct.length;++Vt<an;){var _i=Ct[Vt],vi=m[_i];(vi===Ie||hl(vi,W[_i])&&!ve.call(m,_i))&&(m[_i]=ze[_i])}return m}),Zp=Va(function(m){return m.push(Ie,qu),he(B0,Ie,m)});function hg(m,b,j){var te=null==m?Ie:Hn(m,b);return te===Ie?j:te}function mg(m,b){return null!=m&&Bl(m,b,La)}var j1=sp(function(m,b,j){null!=b&&"function"!=typeof b.toString&&(b=oe.call(b)),m[b]=j},Kg(ef)),R1=sp(function(m,b,j){null!=b&&"function"!=typeof b.toString&&(b=oe.call(b)),ve.call(m,b)?m[b].push(j):m[b]=[j]},zr),R0=Va(gs);function pc(m){return ml(m)?sd(m):ld(m)}function ou(m){return ml(m)?sd(m,!0):function wp(m){if(!El(m))return function Fl(m){var b=[];if(null!=m)for(var j in y(m))b.push(j);return b}(m);var b=Zs(m),j=[];for(var te in m)"constructor"==te&&(b||!ve.call(m,te))||j.push(te);return j}(m)}var N0=wc(function(m,b,j){Fp(m,b,j)}),B0=wc(function(m,b,j,te){Fp(m,b,j,te)}),N1=jo(function(m,b){var j={};if(null==m)return j;var te=!1;b=Un(b,function(ze){return ze=_u(ze,m),te||(te=ze.length>1),ze}),is(m,Nf(m),j),te&&(j=c(j,7,lp));for(var Ce=b.length;Ce--;)rp(j,b[Ce]);return j}),B1=jo(function(m,b){return null==m?{}:function tp(m,b){return pf(m,b,function(j,te){return mg(m,te)})}(m,b)});function zh(m,b){if(null==m)return{};var j=Un(Nf(m),function(te){return[te]});return b=zr(b),pf(m,j,function(te,Ce){return b(te,Ce[0])})}var gg=Lf(pc),Yg=Lf(ou);function Lp(m){return null==m?[]:Ko(m,pc(m))}var Wg=Fc(function(m,b,j){return b=b.toLowerCase(),m+(j?Uh(b):b)});function Uh(m){return Xg(rs(m).toLowerCase())}function ym(m){return(m=rs(m))&&m.replace(xd,ss).replace(hs,"")}var z1=Fc(function(m,b,j){return m+(j?"-":"")+b.toLowerCase()}),U1=Fc(function(m,b,j){return m+(j?" ":"")+b.toLowerCase()}),$0=vu("toLowerCase"),$1=Fc(function(m,b,j){return m+(j?"_":"")+b.toLowerCase()}),q1=Fc(function(m,b,j){return m+(j?" ":"")+Xg(b)}),H0=Fc(function(m,b,j){return m+(j?" ":"")+b.toUpperCase()}),Xg=vu("toUpperCase");function Hg(m,b,j){return m=rs(m),(b=j?Ie:b)===Ie?function da(Ne){return Hl.test(Ne)}(m)?function nt(Ne){return Ne.match(nd)||[]}(m):function _l(Ne){return Ne.match(Ef)||[]}(m):m.match(b)||[]}var K0=Va(function(m,b){try{return he(m,Ie,b)}catch(j){return Gh(j)?j:new bi(j)}}),J0=jo(function(m,b){return _t(b,function(j){j=Cu(j),Rl(m,j,Dp(m[j],m))}),m});function Kg(m){return function(){return m}}var t_=Tc(),Q0=Tc(!0);function ef(m){return m}function Jg(m){return kp("function"==typeof m?m:c(m,1))}var i_=Va(function(m,b){return function(j){return gs(j,m,b)}}),r_=Va(function(m,b){return function(j){return gs(m,j,b)}});function bg(m,b,j){var te=pc(b),Ce=zt(b,te);null==j&&(!El(b)||!Ce.length&&te.length)&&(j=b,b=m,m=this,Ce=zt(b,pc(b)));var ze=!(El(j)&&"chain"in j&&!j.chain),Ct=jd(m);return _t(Ce,function(Vt){var an=b[Vt];m[Vt]=an,Ct&&(m.prototype[Vt]=function(){var _i=this.__chain__;if(ze||_i){var vi=m(this.__wrapped__);return(vi.__actions__=ta(this.__actions__)).push({func:an,args:arguments,thisArg:m}),vi.__chain__=_i,vi}return an.apply(m,jr([this.value()],arguments))})}),m}function Zg(){}var s_=_f(Un),l_=_f(Xt),e1=_f(Co);function Qg(m){return Ju(m)?Us(Cu(m)):function Fd(m){return function(b){return Hn(b,m)}}(m)}var c_=xu(),d_=xu(!0);function e0(){return[]}function Cg(){return!1}var m_=dd(function(m,b){return m+b},0),i1=fl("ceil"),g_=dd(function(m,b){return m/b},1),__=fl("floor"),y_=dd(function(m,b){return m*b},1),C_=fl("round"),pv=dd(function(m,b){return m-b},0);return Se.after=function fm(m,b){if("function"!=typeof b)throw new N(u);return m=Wa(m),function(){if(--m<1)return b.apply(this,arguments)}},Se.ary=mp,Se.assign=Bg,Se.assignIn=Gg,Se.assignInWith=Xm,Se.assignWith=M0,Se.at=O0,Se.before=ph,Se.bind=Dp,Se.bindAll=J0,Se.bindKey=Hp,Se.castArray=function Nh(){if(!arguments.length)return[];var m=arguments[0];return ca(m)?m:[m]},Se.chain=na,Se.chunk=function Th(m,b,j){b=(j?Gl(m,b,j):b===Ie)?1:Qe(Wa(b),0);var te=null==m?0:m.length;if(!te||b<1)return[];for(var Ce=0,ze=0,Ct=yt(Dn(te/b));Ce<te;)Ct[ze++]=Rn(m,Ce,Ce+=b);return Ct},Se.compact=function Wp(m){for(var b=-1,j=null==m?0:m.length,te=0,Ce=[];++b<j;){var ze=m[b];ze&&(Ce[te++]=ze)}return Ce},Se.concat=function Sh(){var m=arguments.length;if(!m)return[];for(var b=yt(m-1),j=arguments[0],te=m;te--;)b[te-1]=arguments[te];return jr(ca(j)?ta(j):[j],pe(b,1))},Se.cond=function Q1(m){var b=null==m?0:m.length,j=zr();return m=b?Un(m,function(te){if("function"!=typeof te[1])throw new N(u);return[j(te[0]),te[1]]}):[],Va(function(te){for(var Ce=-1;++Ce<b;){var ze=m[Ce];if(he(ze[0],this,te))return he(ze[1],this,te)}})},Se.conforms=function e_(m){return function f(m){var b=pc(m);return function(j){return _(j,m,b)}}(c(m,1))},Se.constant=Kg,Se.countBy=Sl,Se.create=function P1(m,b){var j=Ca(m);return null==b?j:Ja(j,b)},Se.curry=function zm(m,b,j){var te=ic(m,8,Ie,Ie,Ie,Ie,Ie,b=j?Ie:b);return te.placeholder=zm.placeholder,te},Se.curryRight=function Um(m,b,j){var te=ic(m,16,Ie,Ie,Ie,Ie,Ie,b=j?Ie:b);return te.placeholder=Um.placeholder,te},Se.debounce=hh,Se.defaults=Vg,Se.defaultsDeep=Zp,Se.defer=gp,Se.delay=mh,Se.difference=nm,Se.differenceBy=Dm,Se.differenceWith=rg,Se.drop=function ag(m,b,j){var te=null==m?0:m.length;return te?Rn(m,(b=j||b===Ie?1:Wa(b))<0?0:b,te):[]},Se.dropRight=function im(m,b,j){var te=null==m?0:m.length;return te?Rn(m,0,(b=te-(b=j||b===Ie?1:Wa(b)))<0?0:b):[]},Se.dropRightWhile=function og(m,b){return m&&m.length?Up(m,zr(b,3),!0,!0):[]},Se.dropWhile=function Gf(m,b){return m&&m.length?Up(m,zr(b,3),!0):[]},Se.fill=function au(m,b,j,te){var Ce=null==m?0:m.length;return Ce?(j&&"number"!=typeof j&&Gl(m,b,j)&&(j=0,te=Ce),function Z(m,b,j,te){var Ce=m.length;for((j=Wa(j))<0&&(j=-j>Ce?0:Ce+j),(te=te===Ie||te>Ce?Ce:Wa(te))<0&&(te+=Ce),te=j>te?0:Ng(te);j<te;)m[j++]=b;return m}(m,b,j,te)):[]},Se.filter=function $o(m,b){return(ca(m)?wn:ue)(m,zr(b,3))},Se.flatMap=function uc(m,b){return pe(Dd(m,b),1)},Se.flatMapDeep=function Oc(m,b){return pe(Dd(m,b),ui)},Se.flatMapDepth=function ud(m,b,j){return j=j===Ie?1:Wa(j),pe(Dd(m,b),j)},Se.flatten=rm,Se.flattenDeep=function Vf(m){return null!=m&&m.length?pe(m,ui):[]},Se.flattenDepth=function ku(m,b){return null!=m&&m.length?pe(m,b=b===Ie?1:Wa(b)):[]},Se.flip=function pm(m){return ic(m,512)},Se.flow=t_,Se.flowRight=Q0,Se.fromPairs=function sg(m){for(var b=-1,j=null==m?0:m.length,te={};++b<j;){var Ce=m[b];te[Ce[0]]=Ce[1]}return te},Se.functions=function zg(m){return null==m?[]:zt(m,pc(m))},Se.functionsIn=function Ug(m){return null==m?[]:zt(m,ou(m))},Se.groupBy=fc,Se.initial=function om(m){return null!=m&&m.length?Rn(m,0,-1):[]},Se.intersection=jm,Se.intersectionBy=$p,Se.intersectionWith=Rm,Se.invert=j1,Se.invertBy=R1,Se.invokeMap=kf,Se.iteratee=Jg,Se.keyBy=qp,Se.keys=pc,Se.keysIn=ou,Se.map=Dd,Se.mapKeys=function L1(m,b){var j={};return b=zr(b,3),xt(m,function(te,Ce,ze){Rl(j,b(te,Ce,ze),te)}),j},Se.mapValues=function L0(m,b){var j={};return b=zr(b,3),xt(m,function(te,Ce,ze){Rl(j,Ce,b(te,Ce,ze))}),j},Se.matches=function fv(m){return _s(c(m,1))},Se.matchesProperty=function n_(m,b){return Qf(m,c(b,1))},Se.memoize=gh,Se.merge=N0,Se.mergeWith=B0,Se.method=i_,Se.methodOf=r_,Se.mixin=bg,Se.negate=Ih,Se.nthArg=function o_(m){return m=Wa(m),Va(function(b){return ep(b,m)})},Se.omit=N1,Se.omitBy=function G0(m,b){return zh(m,Ih(zr(b)))},Se.once=function Kp(m){return ph(2,m)},Se.orderBy=function cs(m,b,j,te){return null==m?[]:(ca(b)||(b=null==b?[]:[b]),ca(j=te?Ie:j)||(j=null==j?[]:[j]),mu(m,b,j))},Se.over=s_,Se.overArgs=jh,Se.overEvery=l_,Se.overSome=e1,Se.partial=_h,Se.partialRight=Ip,Se.partition=dm,Se.pick=B1,Se.pickBy=zh,Se.property=Qg,Se.propertyOf=function yg(m){return function(b){return null==m?Ie:Hn(m,b)}},Se.pull=sm,Se.pullAll=lm,Se.pullAllBy=function zf(m,b,j){return m&&m.length&&b&&b.length?Df(m,b,zr(j,2)):m},Se.pullAllWith=function Lm(m,b,j){return m&&m.length&&b&&b.length?Df(m,b,Ie,j):m},Se.pullAt=lg,Se.range=c_,Se.rangeRight=d_,Se.rearg=Rh,Se.reject=function Oh(m,b){return(ca(m)?wn:ue)(m,Ih(zr(b,3)))},Se.remove=function Al(m,b){var j=[];if(!m||!m.length)return j;var te=-1,Ce=[],ze=m.length;for(b=zr(b,3);++te<ze;){var Ct=m[te];b(Ct,te,m)&&(j.push(Ct),Ce.push(te))}return Hs(m,Ce),j},Se.rest=function _p(m,b){if("function"!=typeof m)throw new N(u);return Va(m,b=b===Ie?b:Wa(b))},Se.reverse=Pc,Se.sampleSize=function Dh(m,b,j){return b=(j?Gl(m,b,j):b===Ie)?1:Wa(b),(ca(m)?kl:Ap)(m,b)},Se.set=function z0(m,b,j){return null==m?m:ip(m,b,j)},Se.setWith=function Hm(m,b,j,te){return te="function"==typeof te?te:Ie,null==m?m:ip(m,b,j,te)},Se.shuffle=function Tu(m){return(ca(m)?dl:ul)(m)},Se.slice=function Tl(m,b,j){var te=null==m?0:m.length;return te?(j&&"number"!=typeof j&&Gl(m,b,j)?(b=0,j=te):(b=null==b?0:Wa(b),j=j===Ie?te:Wa(j)),Rn(m,b,j)):[]},Se.sortBy=um,Se.sortedUniq=function F(m){return m&&m.length?hf(m):[]},Se.sortedUniqBy=function M(m,b){return m&&m.length?hf(m,zr(b,2)):[]},Se.split=function Cm(m,b,j){return j&&"number"!=typeof j&&Gl(m,b,j)&&(b=j=Ie),(j=j===Ie?Xi:j>>>0)?(m=rs(m))&&("string"==typeof b||null!=b&&!_m(b))&&!(b=ec(b))&&rd(m)?ge(ws(m),0,j):m.split(b,j):[]},Se.spread=function vh(m,b){if("function"!=typeof m)throw new N(u);return b=null==b?0:Qe(Wa(b),0),Va(function(j){var te=j[b],Ce=ge(j,0,b);return te&&jr(Ce,te),he(m,this,Ce)})},Se.tail=function Y(m){var b=null==m?0:m.length;return b?Rn(m,1,b):[]},Se.take=function ae(m,b,j){return m&&m.length?Rn(m,0,(b=j||b===Ie?1:Wa(b))<0?0:b):[]},Se.takeRight=function ye(m,b,j){var te=null==m?0:m.length;return te?Rn(m,(b=te-(b=j||b===Ie?1:Wa(b)))<0?0:b,te):[]},Se.takeRightWhile=function Pe(m,b){return m&&m.length?Up(m,zr(b,3),!1,!0):[]},Se.takeWhile=function Me(m,b){return m&&m.length?Up(m,zr(b,3)):[]},Se.tap=function ir(m,b){return b(m),m},Se.throttle=function Ym(m,b,j){var te=!0,Ce=!0;if("function"!=typeof m)throw new N(u);return El(j)&&(te="leading"in j?!!j.leading:te,Ce="trailing"in j?!!j.trailing:Ce),hh(m,b,{leading:te,maxWait:b,trailing:Ce})},Se.thru=uo,Se.toArray=Lg,Se.toPairs=gg,Se.toPairsIn=Yg,Se.toPath=function h_(m){return ca(m)?Un(m,Cu):Wc(m)?[m]:ta(Fh(rs(m)))},Se.toPlainObject=P0,Se.transform=function U0(m,b,j){var te=ca(m),Ce=te||Yc(m)||Vh(m);if(b=zr(b,4),null==j){var ze=m&&m.constructor;j=Ce?te?new ze:[]:El(m)&&jd(ze)?Ca(An(m)):{}}return(Ce?_t:xt)(m,function(Ct,Vt,an){return b(j,Ct,Vt,an)}),j},Se.unary=function Lh(m){return mp(m,1)},Se.union=Re,Se.unionBy=Ge,Se.unionWith=et,Se.uniq=function Yt(m){return m&&m.length?Ad(m):[]},Se.uniqBy=function gn(m,b){return m&&m.length?Ad(m,zr(b,2)):[]},Se.uniqWith=function pn(m,b){return b="function"==typeof b?b:Ie,m&&m.length?Ad(m,Ie,b):[]},Se.unset=function Rd(m,b){return null==m||rp(m,b)},Se.unzip=Kt,Se.unzipWith=fi,Se.update=function xm(m,b,j){return null==m?m:vs(m,b,mf(j))},Se.updateWith=function bm(m,b,j,te){return te="function"==typeof te?te:Ie,null==m?m:vs(m,b,mf(j),te)},Se.values=Lp,Se.valuesIn=function _g(m){return null==m?[]:Ko(m,ou(m))},Se.without=Bn,Se.words=Hg,Se.wrap=function cg(m,b){return _h(mf(b),m)},Se.xor=Bt,Se.xorBy=Ht,Se.xorWith=ci,Se.zip=wi,Se.zipObject=function di(m,b){return Za(m||[],b||[],Ra)},Se.zipObjectDeep=function br(m,b){return Za(m||[],b||[],ip)},Se.zipWith=Ji,Se.entries=gg,Se.entriesIn=Yg,Se.extend=Gg,Se.extendWith=Xm,bg(Se,Se),Se.add=m_,Se.attempt=K0,Se.camelCase=Wg,Se.capitalize=Uh,Se.ceil=i1,Se.clamp=function vg(m,b,j){return j===Ie&&(j=b,b=Ie),j!==Ie&&(j=(j=Yf(j))==j?j:0),b!==Ie&&(b=(b=Yf(b))==b?b:0),hu(Yf(m),b,j)},Se.clone=function jp(m){return c(m,4)},Se.cloneDeep=function zc(m){return c(m,5)},Se.cloneDeepWith=function Wm(m,b){return c(m,5,b="function"==typeof b?b:Ie)},Se.cloneWith=function hm(m,b){return c(m,4,b="function"==typeof b?b:Ie)},Se.conformsTo=function Dc(m,b){return null==b||_(m,b,pc(b))},Se.deburr=ym,Se.defaultTo=function Z0(m,b){return null==m||m!=m?b:m},Se.divide=g_,Se.endsWith=function W0(m,b,j){m=rs(m),b=ec(b);var te=m.length,Ce=j=j===Ie?te:hu(Wa(j),0,te);return(j-=b.length)>=0&&m.slice(j,Ce)==b},Se.eq=hl,Se.escape=function G1(m){return(m=rs(m))&&we.test(m)?m.replace(to,Kd):m},Se.escapeRegExp=function V1(m){return(m=rs(m))&&Es.test(m)?m.replace(Ud,"\\$&"):m},Se.every=function Md(m,b,j){var te=ca(m)?Xt:q;return j&&Gl(m,b,j)&&(b=Ie),te(m,zr(b,3))},Se.find=Mc,Se.findIndex=Zu,Se.findKey=function M1(m,b){return Qr(m,zr(b,3),xt)},Se.findLast=Fu,Se.findLastIndex=Eh,Se.findLastKey=function O1(m,b){return Qr(m,zr(b,3),St)},Se.floor=__,Se.forEach=Od,Se.forEachRight=Qu,Se.forIn=function D1(m,b){return null==m?m:je(m,zr(b,3),ou)},Se.forInRight=function I1(m,b){return null==m?m:ft(m,zr(b,3),ou)},Se.forOwn=function D0(m,b){return m&&xt(m,zr(b,3))},Se.forOwnRight=function I0(m,b){return m&&St(m,zr(b,3))},Se.get=hg,Se.gt=dg,Se.gte=Bh,Se.has=function j0(m,b){return null!=m&&Bl(m,b,la)},Se.hasIn=mg,Se.head=Im,Se.identity=ef,Se.includes=function Au(m,b,j,te){m=ml(m)?m:Lp(m),j=j&&!te?Wa(j):0;var Ce=m.length;return j<0&&(j=Qe(Ce+j,0)),vm(m)?j<=Ce&&m.indexOf(b,j)>-1:!!Ce&&ba(m,b,j)>-1},Se.indexOf=function am(m,b,j){var te=null==m?0:m.length;if(!te)return-1;var Ce=null==j?0:Wa(j);return Ce<0&&(Ce=Qe(te+Ce,0)),ba(m,b,Ce)},Se.inRange=function Qp(m,b,j){return b=vp(b),j===Ie?(j=b,b=0):j=vp(j),function Or(m,b,j){return m>=dt(b,j)&&m<Qe(b,j)}(m=Yf(m),b,j)},Se.invoke=R0,Se.isArguments=Uc,Se.isArray=ca,Se.isArrayBuffer=Id,Se.isArrayLike=ml,Se.isArrayLikeObject=xs,Se.isBoolean=function Rp(m){return!0===m||!1===m||Vl(m)&&Ui(m)==Bs},Se.isBuffer=Yc,Se.isDate=Uf,Se.isElement=function wf(m){return Vl(m)&&1===m.nodeType&&!gm(m)},Se.isEmpty=function Jp(m){if(null==m)return!0;if(ml(m)&&(ca(m)||"string"==typeof m||"function"==typeof m.splice||Yc(m)||Vh(m)||Uc(m)))return!m.length;var b=Ya(m);if(b==Zo||b==Gs)return!m.size;if(Zs(m))return!ld(m).length;for(var j in m)if(ve.call(m,j))return!1;return!0},Se.isEqual=function Ff(m,b){return wl(m,b)},Se.isEqualWith=function $m(m,b,j){var te=(j="function"==typeof j?j:Ie)?j(m,b):Ie;return te===Ie?wl(m,b,Ie,j):!!te},Se.isError=Gh,Se.isFinite=function mm(m){return"number"==typeof m&&ai(m)},Se.isFunction=jd,Se.isInteger=Ig,Se.isLength=ug,Se.isMap=jg,Se.isMatch=function C0(m,b){return m===b||Xs(m,b,dp(b))},Se.isMatchWith=function k0(m,b,j){return j="function"==typeof j?j:Ie,Xs(m,b,dp(b),j)},Se.isNaN=function w0(m){return A0(m)&&m!=+m},Se.isNative=function F0(m){if(Pa(m))throw new bi("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return tu(m)},Se.isNil=function fg(m){return null==m},Se.isNull=function qm(m){return null===m},Se.isNumber=A0,Se.isObject=El,Se.isObjectLike=Vl,Se.isPlainObject=gm,Se.isRegExp=_m,Se.isSafeInteger=function Rg(m){return Ig(m)&&m>=-Mn&&m<=Mn},Se.isSet=pg,Se.isString=vm,Se.isSymbol=Wc,Se.isTypedArray=Vh,Se.isUndefined=function xh(m){return m===Ie},Se.isWeakMap=function S1(m){return Vl(m)&&Ya(m)==Vs},Se.isWeakSet=function T0(m){return Vl(m)&&"[object WeakSet]"==Ui(m)},Se.join=function dh(m,b){return null==m?"":Qi.call(m,b)},Se.kebabCase=z1,Se.last=Gc,Se.lastIndexOf=function uh(m,b,j){var te=null==m?0:m.length;if(!te)return-1;var Ce=te;return j!==Ie&&(Ce=(Ce=Wa(j))<0?Qe(te+Ce,0):dt(Ce,te-1)),b==b?function Cp(Ne,lt,yt){for(var En=yt+1;En--;)if(Ne[En]===lt)return En;return En}(m,b,Ce):ko(m,Nu,Ce,!0)},Se.lowerCase=U1,Se.lowerFirst=$0,Se.lt=S0,Se.lte=E0,Se.max=function r1(m){return m&&m.length?V(m,ef,ma):Ie},Se.maxBy=function v_(m,b){return m&&m.length?V(m,zr(b,2),ma):Ie},Se.mean=function a1(m){return Kl(m,ef)},Se.meanBy=function x_(m,b){return Kl(m,zr(b,2))},Se.min=function t0(m){return m&&m.length?V(m,ef,uf):Ie},Se.minBy=function b_(m,b){return m&&m.length?V(m,zr(b,2),uf):Ie},Se.stubArray=e0,Se.stubFalse=Cg,Se.stubObject=function u_(){return{}},Se.stubString=function t1(){return""},Se.stubTrue=function f_(){return!0},Se.multiply=y_,Se.nth=function Ph(m,b){return m&&m.length?ep(m,Wa(b)):Ie},Se.noConflict=function a_(){return es._===this&&(es._=We),this},Se.noop=Zg,Se.now=hp,Se.pad=function Km(m,b,j){m=rs(m);var te=(b=Wa(b))?bl(m):0;if(!b||te>=b)return m;var Ce=(b-te)/2;return Sc(Xn(Ce),j)+m+Sc(Dn(Ce),j)},Se.padEnd=function Jm(m,b,j){m=rs(m);var te=(b=Wa(b))?bl(m):0;return b&&te<b?m+Sc(b-te,j):m},Se.padStart=function Y1(m,b,j){m=rs(m);var te=(b=Wa(b))?bl(m):0;return b&&te<b?Sc(b-te,j)+m:m},Se.parseInt=function q0(m,b,j){return j||null==b?b=0:b&&(b=+b),Qt(rs(m).replace(Ol,""),b||0)},Se.random=function Y0(m,b,j){if(j&&"boolean"!=typeof j&&Gl(m,b,j)&&(b=j=Ie),j===Ie&&("boolean"==typeof b?(j=b,b=Ie):"boolean"==typeof m&&(j=m,m=Ie)),m===Ie&&b===Ie?(m=0,b=1):(m=vp(m),b===Ie?(b=m,m=0):b=vp(b)),m>b){var te=m;m=b,b=te}if(j||m%1||b%1){var Ce=Cn();return dt(m+Ce*(b-m+Uo("1e-"+((Ce+"").length-1))),b)}return iu(m,b)},Se.reduce=function Gm(m,b,j){var te=ca(m)?gi:Jl,Ce=arguments.length<3;return te(m,zr(b,4),j,Ce,O)},Se.reduceRight=function Vm(m,b,j){var te=ca(m)?mr:Jl,Ce=arguments.length<3;return te(m,zr(b,4),j,Ce,B)},Se.repeat=function W1(m,b,j){return b=(j?Gl(m,b,j):b===Ie)?1:Wa(b),gu(rs(m),b)},Se.replace=function $g(){var m=arguments,b=rs(m[0]);return m.length<3?b:b.replace(m[1],m[2])},Se.result=function V0(m,b,j){var te=-1,Ce=(b=_u(b,m)).length;for(Ce||(Ce=1,m=Ie);++te<Ce;){var ze=null==m?Ie:m[Cu(b[te])];ze===Ie&&(te=Ce,ze=j),m=jd(ze)?ze.call(m):ze}return m},Se.round=C_,Se.runInContext=Ne,Se.sample=function Xp(m){return(ca(m)?Xr:np)(m)},Se.size=function Mp(m){if(null==m)return 0;if(ml(m))return vm(m)?bl(m):m.length;var b=Ya(m);return b==Zo||b==Gs?m.size:ld(m).length},Se.snakeCase=$1,Se.some=function Op(m,b,j){var te=ca(m)?Co:Uu;return j&&Gl(m,b,j)&&(b=Ie),te(m,zr(b,3))},Se.sortedIndex=function wu(m,b){return Ks(m,b)},Se.sortedIndexBy=function cm(m,b,j){return mi(m,b,zr(j,2))},Se.sortedIndexOf=function Mh(m,b){var j=null==m?0:m.length;if(j){var te=Ks(m,b);if(te<j&&hl(m[te],b))return te}return-1},Se.sortedLastIndex=function Nm(m,b){return Ks(m,b,!0)},Se.sortedLastIndexBy=function fh(m,b,j){return mi(m,b,zr(j,2),!0)},Se.sortedLastIndexOf=function Bm(m,b){if(null!=m&&m.length){var te=Ks(m,b,!0)-1;if(hl(m[te],b))return te}return-1},Se.startCase=q1,Se.startsWith=function X1(m,b,j){return m=rs(m),j=null==j?0:hu(Wa(j),0,m.length),b=ec(b),m.slice(j,j+b.length)==b},Se.subtract=pv,Se.sum=function k_(m){return m&&m.length?qa(m,ef):0},Se.sumBy=function o1(m,b){return m&&m.length?qa(m,zr(b,2)):0},Se.template=function H1(m,b,j){var te=Se.templateSettings;j&&Gl(m,b,j)&&(b=Ie),m=rs(m),b=Xm({},b,te,ru);var Vt,an,Ce=Xm({},b.imports,te.imports,ru),ze=pc(Ce),Ct=Ko(Ce,ze),_i=0,vi=b.interpolate||Qc,Fi="__p += '",_r=k((b.escape||Qc).source+"|"+vi.source+"|"+(vi===Ss?Qo:Qc).source+"|"+(b.evaluate||Qc).source+"|$","g"),Ur="//# sourceURL="+(ve.call(b,"sourceURL")?(b.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++sf+"]")+"\n";m.replace(_r,function(xa,fo,xo,Af,Su,tf){return xo||(xo=Af),Fi+=m.slice(_i,tf).replace(Iu,yd),fo&&(Vt=!0,Fi+="' +\n__e("+fo+") +\n'"),Su&&(an=!0,Fi+="';\n"+Su+";\n__p += '"),xo&&(Fi+="' +\n((__t = ("+xo+")) == null ? '' : __t) +\n'"),_i=tf+xa.length,xa}),Fi+="';\n";var va=ve.call(b,"variable")&&b.variable;if(va){if(uu.test(va))throw new bi("Invalid `variable` option passed into `_.template`")}else Fi="with (obj) {\n"+Fi+"\n}\n";Fi=(an?Fi.replace(cu,""):Fi).replace(af,"$1").replace(_d,"$1;"),Fi="function("+(va||"obj")+") {\n"+(va?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(Vt?", __e = _.escape":"")+(an?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";
129\n")+Fi+"return __p\n}";var io=K0(function(){return yi(ze,Ur+"return "+Fi).apply(Ie,Ct)});if(io.source=Fi,Gh(io))throw io;return io},Se.times=function p_(m,b){if((m=Wa(m))<1||m>Mn)return[];var j=Xi,te=dt(m,Xi);b=zr(b),m-=Xi;for(var Ce=Ma(te,b);++j<m;)b(j);return Ce},Se.toFinite=vp,Se.toInteger=Wa,Se.toLength=Ng,Se.toLower=function xg(m){return rs(m).toLowerCase()},Se.toNumber=Yf,Se.toSafeInteger=function E1(m){return m?hu(Wa(m),-Mn,Mn):0===m?m:0},Se.toString=rs,Se.toUpper=function K1(m){return rs(m).toUpperCase()},Se.trim=function qg(m,b,j){if((m=rs(m))&&(j||b===Ie))return ks(m);if(!m||!(b=ec(b)))return m;var te=ws(m),Ce=ws(b);return ge(te,cc(te,Ce),ya(te,Ce)+1).join("")},Se.trimEnd=function J1(m,b,j){if((m=rs(m))&&(j||b===Ie))return m.slice(0,ea(m)+1);if(!m||!(b=ec(b)))return m;var te=ws(m);return ge(te,0,ya(te,ws(b))+1).join("")},Se.trimStart=function X0(m,b,j){if((m=rs(m))&&(j||b===Ie))return m.replace(Ol,"");if(!m||!(b=ec(b)))return m;var te=ws(m);return ge(te,cc(te,ws(b))).join("")},Se.truncate=function Zm(m,b){var j=30,te="...";if(El(b)){var Ce="separator"in b?b.separator:Ce;j="length"in b?Wa(b.length):j,te="omission"in b?ec(b.omission):te}var ze=(m=rs(m)).length;if(rd(m)){var Ct=ws(m);ze=Ct.length}if(j>=ze)return m;var Vt=j-bl(te);if(Vt<1)return te;var an=Ct?ge(Ct,0,Vt).join(""):m.slice(0,Vt);if(Ce===Ie)return an+te;if(Ct&&(Vt+=an.length-Vt),_m(Ce)){if(m.slice(Vt).search(Ce)){var _i,vi=an;for(Ce.global||(Ce=k(Ce.source,rs(sl.exec(Ce))+"g")),Ce.lastIndex=0;_i=Ce.exec(vi);)var Fi=_i.index;an=an.slice(0,Fi===Ie?Vt:Fi)}}else if(m.indexOf(ec(Ce),Vt)!=Vt){var _r=an.lastIndexOf(Ce);_r>-1&&(an=an.slice(0,_r))}return an+te},Se.unescape=function Z1(m){return(m=rs(m))&&Vd.test(m)?m.replace(Gd,Jd):m},Se.uniqueId=function n1(m){var b=++Ae;return rs(m)+b},Se.upperCase=H0,Se.upperFirst=Xg,Se.each=Od,Se.eachRight=Qu,Se.first=Im,bg(Se,function(){var m={};return xt(Se,function(b,j){ve.call(Se.prototype,j)||(m[j]=b)}),m}(),{chain:!1}),Se.VERSION="4.17.21",_t(["bind","bindKey","curry","curryRight","partial","partialRight"],function(m){Se[m].placeholder=Se}),_t(["drop","take"],function(m,b){$i.prototype[m]=function(j){j=j===Ie?1:Qe(Wa(j),0);var te=this.__filtered__&&!b?new $i(this):this.clone();return te.__filtered__?te.__takeCount__=dt(j,te.__takeCount__):te.__views__.push({size:dt(j,Xi),type:m+(te.__dir__<0?"Right":"")}),te},$i.prototype[m+"Right"]=function(j){return this.reverse()[m](j).reverse()}}),_t(["filter","map","takeWhile"],function(m,b){var j=b+1,te=1==j||3==j;$i.prototype[m]=function(Ce){var ze=this.clone();return ze.__iteratees__.push({iteratee:zr(Ce,3),type:j}),ze.__filtered__=ze.__filtered__||te,ze}}),_t(["head","last"],function(m,b){var j="take"+(b?"Right":"");$i.prototype[m]=function(){return this[j](1).value()[0]}}),_t(["initial","tail"],function(m,b){var j="drop"+(b?"":"Right");$i.prototype[m]=function(){return this.__filtered__?new $i(this):this[j](1)}}),$i.prototype.compact=function(){return this.filter(ef)},$i.prototype.find=function(m){return this.filter(m).head()},$i.prototype.findLast=function(m){return this.reverse().find(m)},$i.prototype.invokeMap=Va(function(m,b){return"function"==typeof m?new $i(this):this.map(function(j){return gs(j,m,b)})}),$i.prototype.reject=function(m){return this.filter(Ih(zr(m)))},$i.prototype.slice=function(m,b){m=Wa(m);var j=this;return j.__filtered__&&(m>0||b<0)?new $i(j):(m<0?j=j.takeRight(-m):m&&(j=j.drop(m)),b!==Ie&&(j=(b=Wa(b))<0?j.dropRight(-b):j.take(b-m)),j)},$i.prototype.takeRightWhile=function(m){return this.reverse().takeWhile(m).reverse()},$i.prototype.toArray=function(){return this.take(Xi)},xt($i.prototype,function(m,b){var j=/^(?:filter|find|map|reject)|While$/.test(b),te=/^(?:head|last)$/.test(b),Ce=Se[te?"take"+("last"==b?"Right":""):b],ze=te||/^find/.test(b);Ce&&(Se.prototype[b]=function(){var Ct=this.__wrapped__,Vt=te?[1]:arguments,an=Ct instanceof $i,_i=Vt[0],vi=an||ca(Ct),Fi=function(fo){var xo=Ce.apply(Se,jr([fo],Vt));return te&&_r?xo[0]:xo};vi&&j&&"function"==typeof _i&&1!=_i.length&&(an=vi=!1);var _r=this.__chain__,va=ze&&!_r,io=an&&!this.__actions__.length;if(!ze&&vi){Ct=io?Ct:new $i(this);var xa=m.apply(Ct,Vt);return xa.__actions__.push({func:uo,args:[Fi],thisArg:Ie}),new Da(xa,_r)}return va&&io?m.apply(this,Vt):(xa=this.thru(Fi),va?te?xa.value(
129)[0]:xa.value():xa)})}),_t(["pop","push","shift","sort","splice","unshift"],function(m){var b=D[m],j=/^(?:push|sort|unshift)$/.test(m)?"tap":"thru",te=/^(?:pop|shift)$/.test(m);Se.prototype[m]=function(){var Ce=arguments;if(te&&!this.__chain__){var ze=this.value();return b.apply(ca(ze)?ze:[],Ce)}return this[j](function(Ct){return b.apply(ca(Ct)?Ct:[],Ce)})}}),xt($i.prototype,function(m,b){var j=Se[b];if(j){var te=j.name+"";ve.call(vt,te)||(vt[te]=[]),vt[te].push({name:b,func:j})}}),vt[$u(Ie,2).name]=[{name:"wrapper",func:Ie}],$i.prototype.clone=function Aa(){var m=new $i(this.__wrapped__);return m.__actions__=ta(this.__actions__),m.__dir__=this.__dir__,m.__filtered__=this.__filtered__,m.__iteratees__=ta(this.__iteratees__),m.__takeCount__=this.__takeCount__,m.__views__=ta(this.__views__),m},$i.prototype.reverse=function lr(){if(this.__filtered__){var m=new $i(this);m.__dir__=-1,m.__filtered__=!0}else(m=this.clone()).__dir__*=-1;return m},$i.prototype.value=function Ds(){var m=this.__wrapped__.value(),b=this.__dir__,j=ca(m),te=b<0,Ce=j?m.length:0,ze=function ls(m,b,j){for(var te=-1,Ce=j.length;++te<Ce;){var ze=j[te],Ct=ze.size;switch(ze.type){case"drop":m+=Ct;break;case"dropRight":b-=Ct;break;case"take":b=dt(b,m+Ct);break;case"takeRight":m=Qe(m,b-Ct)}}return{start:m,end:b}}(0,Ce,this.__views__),Ct=ze.start,Vt=ze.end,an=Vt-Ct,_i=te?Vt:Ct-1,vi=this.__iteratees__,Fi=vi.length,_r=0,Ur=dt(an,this.__takeCount__);if(!j||!te&&Ce==an&&Ur==an)return Jh(m,this.__actions__);var va=[];e:for(;an--&&_r<Ur;){for(var io=-1,xa=m[_i+=b];++io<Fi;){var fo=vi[io],Af=fo.type,Su=(0,fo.iteratee)(xa);if(2==Af)xa=Su;else if(!Su){if(1==Af)continue e;break e}}va[_r++]=xa}return va},Se.prototype.at=Yo,Se.prototype.chain=function vo(){return na(this)},Se.prototype.commit=function no(){return new Da(this.value(),this.__chain__)},Se.prototype.next=function _a(){this.__values__===Ie&&(this.__values__=Lg(this.value()));var m=this.__index__>=this.__values__.length;return{done:m,value:m?Ie:this.__values__[this.__index__++]}},Se.prototype.plant=function Na(m){for(var b,j=this;j instanceof Ua;){var te=Ah(j);te.__index__=0,te.__values__=Ie,b?Ce.__wrapped__=te:b=te;var Ce=te;j=j.__wrapped__}return Ce.__wrapped__=m,b},Se.prototype.reverse=function Qs(){var m=this.__wrapped__;if(m instanceof $i){var b=m;return this.__actions__.length&&(b=new $i(this)),(b=b.reverse()).__actions__.push({func:uo,args:[Pc],thisArg:Ie}),new Da(b,this.__chain__)}return this.thru(Pc)},Se.prototype.toJSON=Se.prototype.valueOf=Se.prototype.value=function Vc(){return Jh(this.__wrapped__,this.__actions__)},Se.prototype.first=Se.prototype.head,ii&&(Se.prototype[ii]=function Wo(){return this}),Se}();es._=rn,(E=function(){return rn}.call(Ha,bn,Ha,ys))!==Ie&&(ys.exports=E)}.call(this)},76021:ys=>{"use strict";function Ha(Ie){return Ie instanceof Buffer?Buffer.from(Ie):new Ie.constructor(Ie.buffer.slice(),Ie.byteOffset,Ie.length)}ys.exports=function bn(Ie){if((Ie=Ie||{}).circles)return function E(Ie){const xi=[],ie=[],Bi=new Map;if(Bi.set(Date,qe=>new Date(qe)),Bi.set(Map,(qe,Ot)=>new Map(tn(Array.from(qe),Ot))),Bi.set(Set,(qe,Ot)=>new Set(tn(Array.from(qe),Ot))),Ie.constructorHandlers)for(const qe of Ie.constructorHandlers)Bi.set(qe[0],qe[1]);let u=null;return Ie.proto?function Tn(qe){if("object"!=typeof qe||null===qe)return qe;if(Array.isArray(qe))return tn(qe,Tn);if(qe.constructor!==Object&&(u=Bi.get(qe.constructor)))return u(qe,Tn);const Ot={};xi.push(qe),ie.push(Ot);for(const Pn in qe){const wt=qe[Pn];if("object"!=typeof wt||null===wt)Ot[Pn]=wt;else if(wt.constructor!==Object&&(u=Bi.get(wt.constructor)))Ot[Pn]=u(wt,Tn);else if(ArrayBuffer.isView(wt))Ot[Pn]=Ha(wt);else{const Wn=xi.indexOf(wt);Ot[Pn]=-1!==Wn?ie[Wn]:Tn(wt)}}return xi.pop(),ie.pop(),Ot}:function e(qe){if("object"!=typeof qe||null===qe)return qe;if(Array.isArray(qe))return tn(qe,e);if(qe.constructor!==Object&&(u=Bi.get(qe.constructor)))return u(qe,e);const Ot={};xi.push(qe),ie.push(Ot);for(const Pn in qe){if(!1===Object.hasOwnProperty.call(qe,Pn))continue;const wt=qe[Pn];if("object"!=typeof wt||null===wt)Ot[Pn]=wt;else if(wt.constructor!==Object&&(u=Bi.get(wt.constructor)))Ot[Pn]=u(wt,e);else if(ArrayBuffer.isView(wt))Ot[Pn]=Ha(wt);else{const Wn=xi.indexOf(wt);Ot[Pn]=-1!==Wn?ie[Wn]:e(wt)}}return xi.pop(),ie.pop(),Ot};function tn(qe,Ot){const Pn=Object.keys(qe),wt=new Array(Pn.length);for(let Wn=0;Wn<Pn.length;Wn++){const Pt=Pn[Wn],Mt=qe[Pt];if("object"!=typeof Mt||null===Mt)wt[Pt]=Mt;else if(Mt.constructor!==Object&&(u=Bi.get(Mt.constructor)))wt[Pt]=u(Mt,Ot);else if(ArrayBuffer.isView(Mt))wt[Pt]=Ha(Mt);else{const Dt=xi.indexOf(Mt);wt[Pt]=-1!==Dt?ie[Dt]:Ot(Mt)}}return wt}}(Ie);const xi=new Map;if(xi.set(Date,e=>new Date(e)),xi.set(Map,(e,Tn)=>new Map(Bi(Array.from(e),Tn))),xi.set(Set,(e,Tn)=>new Set(Bi(Array.from(e),Tn))),Ie.constructorHandlers)for(const e of Ie.constructorHandlers)xi.set(e[0],e[1]);let ie=null;return Ie.proto?function tn(e){if("object"!=typeof e||null===e)return e;if(Array.isArray(e))return Bi(e,tn);if(e.constructor!==Object&&(ie=xi.get(e.constructor)))return ie(e,tn);const Tn={};for(const qe in e){const Ot=e[qe];Tn[qe]="object"!=typeof Ot||null===Ot?Ot:Ot.constructor!==Object&&(ie=xi.get(Ot.constructor))?ie(Ot,tn):ArrayBuffer.isView(Ot)?Ha(Ot):tn(Ot)}return Tn}:function u(e){if("object"!=typeof e||null===e)return e;if(Array.isArray(e))return Bi(e,u);if(e.constructor!==Object&&(ie=xi.get(e.constructor)))return ie(e,u);const Tn={};for(const qe in e){if(!1===Object.hasOwnProperty.call(e,qe))continue;const Ot=e[qe];Tn[qe]="object"!=typeof Ot||null===Ot?Ot:Ot.constructor!==Object&&(ie=xi.get(Ot.constructor))?ie(Ot,u):ArrayBuffer.isView(Ot)?Ha(Ot):u(Ot)}return Tn};function Bi(e,Tn){const qe=Object.keys(e),Ot=new Array(qe.length);for(let Pn=0;Pn<qe.length;Pn++){const wt=qe[Pn],Wn=e[wt];Ot[wt]="object"!=typeof Wn||null===Wn?Wn:Wn.constructor!==Object&&(ie=xi.get(Wn.c
vendor: 4,728 bytes, line 129
129onstructor))?ie(Wn,Tn):ArrayBuffer.isView(Wn)?Ha(Wn):Tn(Wn)}return Ot}}},63273:(ys,Ha,bn)=>{"use strict";bn.d(Ha,{dV:()=>v2,km:()=>c2});var E=bn(93953),Ie=bn(60177);"function"==typeof SuppressedError&&SuppressedError;var hr=bn(76939),Lr=bn(79441),Nr=bn(49143);function Mo(){}function Bo(l){return null==l?Mo:function(){return this.querySelector(l)}}function Hc(){return[]}function Jo(l){return null==l?Hc:function(){return this.querySelectorAll(l)}}function Zo(l){return function(){return this.matches(l)}}function xc(l){return function(h){return h.matches(l)}}bn(49969);var al=Array.prototype.find;function Pl(){return this.firstElementChild}var ps=Array.prototype.filter;function Gs(){return Array.from(this.children)}function Vs(l){return new Array(l.length)}function bo(l,h){this.ownerDocument=l.ownerDocument,this.namespaceURI=l.namespaceURI,this._next=null,this._parent=l,this.__data__=h}function yo(l,h,o,d,x,C){for(var le,G=0,Oe=h.length,ke=C.length;G<ke;++G)(le=h[G])?(le.__data__=C[G],d[G]=le):o[G]=new bo(l,C[G]);for(;G<Oe;++G)(le=h[G])&&(x[G]=le)}function Go(l,h,o,d,x,C,G){var le,Oe,ln,ke=new Map,Xe=h.length,It=C.length,Lt=new Array(Xe);for(le=0;le<Xe;++le)(Oe=h[le])&&(Lt[le]=ln=G.call(Oe,Oe.__data__,le,h)+"",ke.has(ln)?x[le]=Oe:ke.set(ln,Oe));for(le=0;le<It;++le)ln=G.call(l,C[le],le,C)+"",(Oe=ke.get(ln))?(d[le]=Oe,Oe.__data__=C[le],ke.delete(ln)):o[le]=new bo(l,C[le]);for(le=0;le<Xe;++le)(Oe=h[le])&&ke.get(Lt[le])===Oe&&(x[le]=Oe)}function Ml(l){return l.__data__}function $l(l){return"object"==typeof l&&"length"in l?l:Array.from(l)}function af(l,h){return l<h?-1:l>h?1:l>=h?0:NaN}bo.prototype={constructor:bo,appendChild:function(l){return this._parent.insertBefore(l,this._next)},insertBefore:function(l,h){return this._parent.insertBefore(l,h)},querySelector:function(l){return this._parent.querySelector(l)},querySelectorAll:function(l){return this._parent.querySelectorAll(l)}};var zs="http://www.w3.org/1999/xhtml";const Ss={svg:"http://www.w3.org/2000/svg",xhtml:zs,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function zd(l){var h=l+="",o=h.indexOf(":");return o>=0&&"xmlns"!==(h=l.slice(0,o))&&(l=l.slice(o+1)),Ss.hasOwnProperty(h)?{space:Ss[h],local:l}:l}function Ou(l){return function(){this.removeAttribute(l)}}function Du(l){return function(){this.removeAttributeNS(l.space,l.local)}}function Ud(l,h){return function(){this.setAttribute(l,h)}}function Es(l,h){return function(){this.setAttributeNS(l.space,l.local,h)}}function Ol(l,h){return function(){var o=h.apply(this,arguments);null==o?this.removeAttribute(l):this.setAttribute(l,o)}}function du(l,h){return function(){var o=h.apply(this,arguments);null==o?this.removeAttributeNS(l.space,l.local):this.setAttributeNS(l.space,l.local,o)}}function bc(l){return l.ownerDocument&&l.ownerDocument.defaultView||l.document&&l||l.defaultView}function Jc(l){return function(){this.style.removeProperty(l)}}function Ef(l,h,o){return function(){this.style.setProperty(l,h,o)}}function uu(l,h,o){return function(){var d=h.apply(this,arguments);null==d?this.style.removeProperty(l):this.style.setProperty(l,d,o)}}function Qo(l,h){return l.style.getPropertyValue(h)||bc(l).getComputedStyle(l,null).getPropertyValue(h)}function sl(l){return function(){delete this[l]}}function Pf(l,h){return function(){this[l]=h}}function Wd(l,h){return function(){var o=h.apply(this,arguments);null==o?delete this[l]:this[l]=o}}function vd(l){return l.trim().split(/^|\s+/)}function Zc(l){return l.classList||new xd(l)}function xd(l){this._node=l,this._names=vd(l.getAttribute("class")||"")}function Qc(l,h){for(var o=Zc(l),d=-1,x=h.length;++d<x;)o.add(h[d])}function Iu(l,h){for(var o=Zc(l),d=-1,x=h.length;++d<x;)o.remove(h[d])}function yc(l){return function(){Qc(this,l)}}function sc(l){return function(){Iu(this,l)}}function ed(l,h){return function(){(h.apply(this,arguments)?Qc:Iu)(this,l)}}function ll(){this.textContent=""}function Ru(l){return function(){this.textContent=l}}function Rc(l){return function(){var h=l.apply(this,arguments);this.textContent=h??""}}function bd(){this.innerHTML=""}function ro(l){return function(){this.innerHTML=l}}function $d(l){return function(){var h=l.apply(this,arguments);this.innerHTML=h??""}}function td(){this.nextSibling&&this.parentNode.appendChild(this)}function Xl(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function qd(l){return function(){var h=this.ownerDocument,o=this.namespaceURI;return o===zs&&h.documentElement.namespaceURI===zs?h.createElement(l):h.createElementNS(o,l)}}function Dl(l){return function(){return this.ownerDocument.createElementNS(l.space,l.local)}}function Ps(l){var h=zd(l);
vendor: 13,008 bytes, line 129
129return(h.local?Dl:qd)(h)}function Xo(){return null}function os(){var l=this.parentNode;l&&l.removeChild(this)}function Jn(){var l=this.cloneNode(!1),h=this.parentNode;return h?h.insertBefore(l,this.nextSibling):l}function ee(){var l=this.cloneNode(!0),h=this.parentNode;return h?h.insertBefore(l,this.nextSibling):l}function se(l){return function(){var h=this.__on;if(h){for(var C,o=0,d=-1,x=h.length;o<x;++o)C=h[o],l.type&&C.type!==l.type||C.name!==l.name?h[++d]=C:this.removeEventListener(C.type,C.listener,C.options);++d?h.length=d:delete this.__on}}}function Ue(l,h,o){return function(){var x,d=this.__on,C=function J(l){return function(h){l.call(this,h,this.__data__)}}(h);if(d)for(var G=0,le=d.length;G<le;++G)if((x=d[G]).type===l.type&&x.name===l.name)return this.removeEventListener(x.type,x.listener,x.options),this.addEventListener(x.type,x.listener=C,x.options=o),void(x.value=h);this.addEventListener(l.type,C,o),x={type:l.type,name:l.name,value:h,listener:C,options:o},d?d.push(x):this.__on=[x]}}function fn(l,h,o){var d=bc(l),x=d.CustomEvent;"function"==typeof x?x=new x(h,o):(x=d.document.createEvent("Event"),o?(x.initEvent(h,o.bubbles,o.cancelable),x.detail=o.detail):x.initEvent(h,!1,!1)),l.dispatchEvent(x)}function Ci(l,h){return function(){return fn(this,l,h)}}function Di(l,h){return function(){return fn(this,l,h.apply(this,arguments))}}xd.prototype={add:function(l){this._names.indexOf(l)<0&&(this._names.push(l),this._node.setAttribute("class",this._names.join(" ")))},remove:function(l){var h=this._names.indexOf(l);h>=0&&(this._names.splice(h,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(l){return this._names.indexOf(l)>=0}};var Hr=[null];function Ea(l,h){this._groups=l,this._parents=h}function xr(){return new Ea([[document.documentElement]],Hr)}Ea.prototype=xr.prototype={constructor:Ea,select:function Bs(l){"function"!=typeof l&&(l=Bo(l));for(var h=this._groups,o=h.length,d=new Array(o),x=0;x<o;++x)for(var Oe,ke,C=h[x],G=C.length,le=d[x]=new Array(G),Xe=0;Xe<G;++Xe)(Oe=C[Xe])&&(ke=l.call(Oe,Oe.__data__,Xe,C))&&("__data__"in Oe&&(ke.__data__=Oe.__data__),le[Xe]=ke);return new Ea(d,this._parents)},selectAll:function Wl(l){l="function"==typeof l?function rl(l){return function(){return function Ts(l){return null==l?[]:Array.isArray(l)?l:Array.from(l)}(l.apply(this,arguments))}}(l):Jo(l);for(var h=this._groups,o=h.length,d=[],x=[],C=0;C<o;++C)for(var Oe,G=h[C],le=G.length,ke=0;ke<le;++ke)(Oe=G[ke])&&(d.push(l.call(Oe,Oe.__data__,ke,G)),x.push(Oe));return new Ea(d,x)},selectChild:function aa(l){return this.select(null==l?Pl:function fs(l){return function(){return al.call(this.children,l)}}("function"==typeof l?l:xc(l)))},selectChildren:function Ia(l){return this.selectAll(null==l?Gs:function Bd(l){return function(){return ps.call(this.children,l)}}("function"==typeof l?l:xc(l)))},filter:function Kc(l){"function"!=typeof l&&(l=Zo(l));for(var h=this._groups,o=h.length,d=new Array(o),x=0;x<o;++x)for(var Oe,C=h[x],G=C.length,le=d[x]=[],ke=0;ke<G;++ke)(Oe=C[ke])&&l.call(Oe,Oe.__data__,ke,C)&&le.push(Oe);return new Ea(d,this._parents)},data:function kr(l,h){if(!arguments.length)return Array.from(this,Ml);var o=h?Go:yo,d=this._parents,x=this._groups;"function"!=typeof l&&(l=function Cs(l){return function(){return l}}(l));for(var C=x.length,G=new Array(C),le=new Array(C),Oe=new Array(C),ke=0;ke<C;++ke){var Xe=d[ke],It=x[ke],Lt=It.length,ln=$l(l.call(Xe,Xe&&Xe.__data__,ke,d)),li=ln.length,Ki=le[ke]=new Array(li),Sn=G[ke]=new Array(li);o(Xe,It,Ki,Sn,Oe[ke]=new Array(Lt),ln,h);for(var Er,Dr,Ar=0,Vi=0;Ar<li;++Ar)if(Er=Ki[Ar]){for(Ar>=Vi&&(Vi=Ar+1);!(Dr=Sn[Vi])&&++Vi<li;);Er._next=Dr||null}}return(G=new Ea(G,d))._enter=le,G._exit=Oe,G},enter:function fr(){return new Ea(this._enter||this._groups.map(Vs),this._parents)},exit:function ol(){return new Ea(this._exit||this._groups.map(Vs),this._parents)},join:function gl(l,h,o){var d=this.enter(),x=this,C=this.exit();return"function"==typeof l?(d=l(d))&&(d=d.selection()):d=d.append(l+""),null!=h&&(x=h(x))&&(x=x.selection()),null==o?C.remove():o(C),d&&x?d.merge(x).order():x},merge:function ql(l){for(var h=l.selection?l.selection():l,o=this._groups,d=h._groups,x=o.length,G=Math.min(x,d.length),le=new Array(x),Oe=0;Oe<G;++Oe)for(var ln,ke=o[Oe],Xe=d[Oe],It=ke.length,Lt=le[Oe]=new Array(It),li=0;li<It;++li)(ln=ke[li]||Xe[li])&&(Lt[li]=ln);for(;Oe<x;++Oe)le[Oe]=o[Oe];return new Ea(le,this._parents)},selection:function Fa(){return this},order:function Mu(){for(var l=this._groups,h=-1,o=l.length;++h<o;)for(var G,d=l[h],x=d.length-1,C=d[x];--x>=0;)(G=d[x])&&(C&&4^G.compareDocumentPosition(C)&&C.parentNode.insertBefore(G,C),C=G);return this},sort:function cu(l){function h(It,Lt){return It&&Lt?l(It.__data__,Lt.__data__):!It-!Lt}l||(l=af);for(var o=this._groups,d=o.length,x=new Array(d),C=0;C<d;++C){for(var ke,G=o[C],le=G.length,Oe=x[C]=new Array(le),Xe=0;Xe<le;++Xe)(ke=G[Xe])&&(Oe[Xe]=ke);Oe.sort(h)}return new Ea(x,this._parents).order()},call:function _d(){var l=arguments[0];return arguments[0]=this,l.apply(null,arguments),this},nodes:function Gd(){return Array.from(this)},node:function to(){for(var l=this._groups,h=0,o=l.length;h<o;++h)for(var d=l[h],x=0,C=d.length;x<C;++x){var G=d[x];if(G)return G}return null},size:function Vd(){let l=0;for(const h of this)++l;return l},empty:function we(){return!this.node()},each:function jc(l){for(var h=this._groups,o=0,d=h.length;o<d;++o)for(var le,x=h[o],C=0,G=x.length;C<G;++C)(le=x[C])&&l.call(le,le.__data__,C,x);return this},attr:function Yd(l,h){var o=zd(l);if(arguments.length<2){var d=this.node();return o.local?d.getAttributeNS(o.space,o.local):d.getAttribute(o)}return this.each((null==h?o.local?Du:Ou:"function"==typeof h?o.local?du:Ol:o.local?Es:Ud)(o,h))},style:function fu(l,h,o){return arguments.length>1?this.each((null==h?Jc:"function"==typeof h?uu:Ef)(l,h,o??"")):Qo(this.node(),l)},property:function of(l,h){return arguments.length>1?this.each((null==h?sl:"function"==typeof h?Wd:Pf)(l,h)):this.node()[l]},classed:function ju(l,h){var o=vd(l+"");if(arguments.length<2){for(var d=Zc(this.node()),x=-1,C=o.length;++x<C;)if(!d.contains(o[x]))return!1;return!0}return this.each(("function"==typeof h?ed:h?yc:sc)(o,h))},text:function Vr(l){return arguments.length?this.each(null==l?ll:("function"==typeof l?Rc:Ru)(l)):this.node().textContent},html:function Lc(l){return arguments.length?this.each(null==l?bd:("function"==typeof l?$d:ro)(l)):this.node().innerHTML},raise:function Sa(){return this.each(td)},lower:function $a(){return this.each(Xl)},append:function Vo(l){var h="function"==typeof l?l:Ps(l);return this.select(function(){return this.appendChild(h.apply(this,arguments))})},insert:function as(l,h){var o="function"==typeof l?l:Ps(l),d=null==h?Xo:"function"==typeof h?h:Bo(h);return this.select(function(){return this.insertBefore(o.apply(this,arguments),d.apply(this,arguments)||null)})},remove:function Ye(){return this.each(os)},clone:function bt(l){return this.select(l?ee:Jn)},datum:function Be(l){return arguments.length?this.property("__data__",l):this.node().__data__},on:function nn(l,h,o){var x,G,d=function me(l){return l.trim().split(/^|\s+/).map(function(h){var o="",d=h.indexOf(".");return d>=0&&(o=h.slice(d+1),h=h.slice(0,d)),{type:h,name:o}})}(l+""),C=d.length;if(!(arguments.length<2)){for(le=h?Ue:se,x=0;x<C;++x)this.each(le(d[x],h,o));return this}var le=this.node().__on;if(le)for(var Xe,Oe=0,ke=le.length;Oe<ke;++Oe)for(x=0,Xe=le[Oe];x<C;++x)if((G=d[x]).type===Xe.type&&G.name===Xe.name)return Xe.value},dispatch:function or(l,h){return this.each(("function"==typeof h?Di:Ci)(l,h))},[Symbol.iterator]:function*oa(){for(var l=this._groups,h=0,o=l.length;h<o;++h)for(var G,d=l[h],x=0,C=d.length;x<C;++x)(G=d[x])&&(yield G)}};const hs=xr;function Ka(l){return"string"==typeof l?new Ea([[document.querySelector(l)]],[document.documentElement]):new Ea([[l]],Hr)}var nd={value:()=>{}};function Wr(){for(var d,l=0,h=arguments.length,o={};l<h;++l){if(!(d=arguments[l]+"")||d in o||/[\s.]/.test(d))throw new Error("illegal type: "+d);o[d]=[]}return new Hl(o)}function Hl(l){this._=l}function sf(l,h){for(var x,o=0,d=l.length;o<d;++o)if((x=l[o]).name===h)return x.value}function Ba(l,h,o){for(var d=0,x=l.length;d<x;++d)if(l[d].name===h){l[d]=nd,l=l.slice(0,d).concat(l.slice(d+1));break}return null!=o&&l.push({name:h,value:o}),l}Hl.prototype=Wr.prototype={constructor:Hl,on:function(l,h){var x,o=this._,d=function Ms(l,h){return l.trim().split(/^|\s+/).map(function(o){var d="",x=o.indexOf(".");if(x>=0&&(d=o.slice(x+1),o=o.slice(0,x)),o&&!h.hasOwnProperty(o))throw new Error("unknown type: "+o);return{type:o,name:d}})}(l+"",o),C=-1,G=d.length;if(!(arguments.length<2)){if(null!=h&&"function"!=typeof h)throw new Error("invalid callback: "+h);for(;++C<G;)if(x=(l=d[C]).type)o[x]=Ba(o[x],l.name,h);else if(null==h)for(x in o)o[x]=Ba(o[x],l.name,null);return this}for(;++C<G;)if((x=(l=d[C]).type)&&(x=sf(o[x],l.name)))return x},copy:function(){var l={},h=this._;for(var o in h)l[o]=h[o].slice();return new Hl(l)},call:function(l,h){if((x=arguments.length-2)>0)for(var x,C,o=new Array(x),d=0;d<x;++d)o[d]=arguments[d+2];if(!this._.hasOwnProperty(l))throw new Error("unknown type: "+l);for(d=0,x=(C=this._[l]).length;d<x;++d)C[d].value.apply(h,o)},apply:function(l,h,o){if(!this._.hasOwnProperty(l))throw new Error("unknown type: "+l);for(var d=this._[l],x=0,C=d.length;x<C;++x)d[x].value.apply(h,o)}};const lo=Wr;function Kf(l,h,o){l.prototype=h.prototype=o,o.constructor=l}function Jf(l,h){var o=Object.create(l.prototype);for(var d in h)o[d]=h[d];return o}function es(){}var Xd=1/.7,Hd="\\s*([+-]?\\d+)\\s*",Lu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ho="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Mf=/^#([0-9a-f]{3,8})$/,w=new RegExp(`^rgb\\(${Hd},${Hd},${Hd}\\)$`),I=new RegExp(`^rgb\\(${Ho},${Ho},${Ho}\\)$`),H=new RegExp(`^rgba\\(${Hd},${Hd},${Hd},${Lu}\\)$`),Q=new RegExp(`^rgba\\(${Ho},${Ho},${Ho},${Lu}\\)$`),_e=new RegExp(`^hsl\\(${Lu},${Ho},${Ho}\\)$`),he=new RegExp(`^hsla\\(${Lu},${Ho},${Ho},${Lu}\\)$`),Ee={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function _t(){return this.rgb().formatHex()}function wn(){return this.rgb().formatRgb()}function $n(l){var h,o;return l=(l+"").trim().toLowerCase(),(h=Mf.exec(l))?(o=h[1].length,h=parseInt(h[1],16),6===o?Zt(h):3===o?new mr(h>>8&15|h>>4&240,h>>
vendor: 4,509 bytes, line 129
1294&15|240&h,(15&h)<<4|15&h,1):8===o?Un(h>>24&255,h>>16&255,h>>8&255,(255&h)/255):4===o?Un(h>>12&15|h>>8&240,h>>8&15|h>>4&240,h>>4&15|240&h,((15&h)<<4|15&h)/255):null):(h=w.exec(l))?new mr(h[1],h[2],h[3],1):(h=I.exec(l))?new mr(255*h[1]/100,255*h[2]/100,255*h[3]/100,1):(h=H.exec(l))?Un(h[1],h[2],h[3],h[4]):(h=Q.exec(l))?Un(255*h[1]/100,255*h[2]/100,255*h[3]/100,h[4]):(h=_e.exec(l))?ba(h[1],h[2]/100,h[3]/100,1):(h=he.exec(l))?ba(h[1],h[2]/100,h[3]/100,h[4]):Ee.hasOwnProperty(l)?Zt(Ee[l]):"transparent"===l?new mr(NaN,NaN,NaN,0):null}function Zt(l){return new mr(l>>16&255,l>>8&255,255&l,1)}function Un(l,h,o,d){return d<=0&&(l=h=o=NaN),new mr(l,h,o,d)}function gi(l,h,o,d){return 1===arguments.length?function jr(l){return l instanceof es||(l=$n(l)),l?new mr((l=l.rgb()).r,l.g,l.b,l.opacity):new mr}(l):new mr(l,h,o,d??1)}function mr(l,h,o,d){this.r=+l,this.g=+h,this.b=+o,this.opacity=+d}function Co(){return`#${ko(this.r)}${ko(this.g)}${ko(this.b)}`}function lc(){const l=_l(this.opacity);return`${1===l?"rgb(":"rgba("}${Qr(this.r)}, ${Qr(this.g)}, ${Qr(this.b)}${1===l?")":`, ${l})`}`}function _l(l){return isNaN(l)?1:Math.max(0,Math.min(1,l))}function Qr(l){return Math.max(0,Math.min(255,Math.round(l)||0))}function ko(l){return((l=Qr(l))<16?"0":"")+l.toString(16)}function ba(l,h,o,d){return d<=0?l=h=o=NaN:o<=0||o>=1?l=h=NaN:h<=0&&(l=NaN),new Kl(l,h,o,d)}function wo(l){if(l instanceof Kl)return new Kl(l.h,l.s,l.l,l.opacity);if(l instanceof es||(l=$n(l)),!l)return new Kl;if(l instanceof Kl)return l;var h=(l=l.rgb()).r/255,o=l.g/255,d=l.b/255,x=Math.min(h,o,d),C=Math.max(h,o,d),G=NaN,le=C-x,Oe=(C+x)/2;return le?(G=h===C?(o-d)/le+6*(o<d):o===C?(d-h)/le+2:(h-o)/le+4,le/=Oe<.5?C+x:2-C-x,G*=60):le=Oe>0&&Oe<1?0:G,new Kl(G,le,Oe,l.opacity)}function Kl(l,h,o,d){this.h=+l,this.s=+h,this.l=+o,this.opacity=+d}function Us(l){return(l=(l||0)%360)<0?l+360:l}function Il(l){return Math.max(0,Math.min(1,l||0))}function Jl(l,h,o){return 255*(l<60?h+(o-h)*l/60:l<180?o:l<240?h+(o-h)*(240-l)/60:h)}function ia(l,h,o,d,x){var C=l*l,G=C*l;return((1-3*l+3*C-G)*h+(4-6*C+3*G)*o+(1+3*l+3*C-3*G)*d+G*x)/6}Kf(es,$n,{copy(l){return Object.assign(new this.constructor,this,l)},displayable(){return this.rgb().displayable()},hex:_t,formatHex:_t,formatHex8:function st(){return this.rgb().formatHex8()},formatHsl:function Xt(){return wo(this).formatHsl()},formatRgb:wn,toString:wn}),Kf(mr,gi,Jf(es,{brighter(l){return l=null==l?Xd:Math.pow(Xd,l),new mr(this.r*l,this.g*l,this.b*l,this.opacity)},darker(l){return l=null==l?.7:Math.pow(.7,l),new mr(this.r*l,this.g*l,this.b*l,this.opacity)},rgb(){return this},clamp(){return new mr(Qr(this.r),Qr(this.g),Qr(this.b),_l(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Co,formatHex:Co,formatHex8:function ms(){return`#${ko(this.r)}${ko(this.g)}${ko(this.b)}${ko(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:lc,toString:lc})),Kf(Kl,function Nu(l,h,o,d){return 1===arguments.length?wo(l):new Kl(l,h,o,d??1)},Jf(es,{brighter(l){return l=null==l?Xd:Math.pow(Xd,l),new Kl(this.h,this.s,this.l*l,this.opacity)},darker(l){return l=null==l?.7:Math.pow(.7,l),new Kl(this.h,this.s,this.l*l,this.opacity)},rgb(){var l=this.h%360+360*(this.h<0),h=isNaN(l)||isNaN(this.s)?0:this.s,o=this.l,d=o+(o<.5?o:1-o)*h,x=2*o-d;return new mr(Jl(l>=240?l-240:l+120,x,d),Jl(l,x,d),Jl(l<120?l+240:l-120,x,d),this.opacity)},clamp(){return new Kl(Us(this.h),Il(this.s),Il(this.l),_l(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const l=_l(this.opacity);return`${1===l?"hsl(":"hsla("}${Us(this.h)}, ${100*Il(this.s)}%, ${100*Il(this.l)}%${1===l?")":`, ${l})`}`}}));const Os=l=>()=>l;function cc(l,h){var o=h-l;return o?function ks(l,h){return function(o){return l+o*h}}(l,o):Os(isNaN(l)?h:l)}const ya=function l(h){var o=function Br(l){return 1==(l=+l)?cc:function(h,o){return o-h?function Do(l,h,o){return l=Math.pow(l,o),h=Math.pow(h,o)-l,o=1/o,function(d){return Math.pow(l+d*h,o)}}(h,o,l):Os(isNaN(h)?o:h)}}(h);function d(x,C){var G=o((x=gi(x)).r,(C=gi(C)).r),le=o(x.g,C.g),Oe=o(x.b,C.b),ke=cc(x.opacity,C.opacity);return function(Xe){return x.r=G(Xe),x.g=le(Xe),x.b=Oe(Xe),x.opacity=ke(Xe),x+""}}return d.gamma=l,d}(1);function Bu(l){return function(h){var G,le,o=h.length,d=new Array(o),x=new Array(o),C=new Array(o);for(G=0;G<o;++G)le=gi(h[G]),d[G]=le.r||0,x[G]=le.g||0,C[G]=le.b||0;
vendor: 6,249 bytes, line 129
129return d=l(d),x=l(x),C=l(C),le.opacity=1,function(Oe){return le.r=d(Oe),le.g=x(Oe),le.b=C(Oe),le+""}}}function Zf(l,h){var G,o=h?h.length:0,d=l?Math.min(o,l.length):0,x=new Array(d),C=new Array(o);for(G=0;G<d;++G)x[G]=bl(l[G],h[G]);for(;G<o;++G)C[G]=h[G];return function(le){for(G=0;G<d;++G)C[G]=x[G](le);return C}}function rd(l,h){var o=new Date;return l=+l,h=+h,function(d){return o.setTime(l*(1-d)+h*d),o}}function da(l,h){return l=+l,h=+h,function(o){return l*(1-o)+h*o}}function df(l,h){var x,o={},d={};for(x in(null===l||"object"!=typeof l)&&(l={}),(null===h||"object"!=typeof h)&&(h={}),h)x in l?o[x]=bl(l[x],h[x]):d[x]=h[x];return function(C){for(x in o)d[x]=o[x](C);return d}}Bu(function qa(l){var h=l.length-1;return function(o){var d=o<=0?o=0:o>=1?(o=1,h-1):Math.floor(o*h),x=l[d],C=l[d+1];return ia((o-d/h)*h,d>0?l[d-1]:2*x-C,x,C,d<h-1?l[d+2]:2*C-x)}}),Bu(function Ma(l){var h=l.length;return function(o){var d=Math.floor(((o%=1)<0?++o:o)*h);return ia((o-d/h)*h,l[(d+h-1)%h],l[d%h],l[(d+1)%h],l[(d+2)%h])}});var Oa=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vl=new RegExp(Oa.source,"g");function jl(l,h){var d,x,C,o=Oa.lastIndex=vl.lastIndex=0,G=-1,le=[],Oe=[];for(l+="",h+="";(d=Oa.exec(l))&&(x=vl.exec(h));)(C=x.index)>o&&(C=h.slice(o,C),le[G]?le[G]+=C:le[++G]=C),(d=d[0])===(x=x[0])?le[G]?le[G]+=x:le[++G]=x:(le[++G]=null,Oe.push({i:G,x:da(d,x)})),o=vl.lastIndex;return o<h.length&&(C=h.slice(o),le[G]?le[G]+=C:le[++G]=C),le.length<2?Oe[0]?function xl(l){return function(h){return l(h)+""}}(Oe[0].x):function Ys(l){return function(){return l}}(h):(h=Oe.length,function(ke){for(var It,Xe=0;Xe<h;++Xe)le[(It=Oe[Xe]).i]=It.x(ke);return le.join("")})}function Gu(l,h){h||(h=[]);var x,o=l?Math.min(h.length,l.length):0,d=h.slice();return function(C){for(x=0;x<o;++x)d[x]=l[x]*(1-C)+h[x]*C;return d}}function bl(l,h){var d,o=typeof h;return null==h||"boolean"===o?Os(h):("number"===o?da:"string"===o?(d=$n(h))?(h=d,ya):jl:h instanceof $n?ya:h instanceof Date?rd:function Cp(l){return ArrayBuffer.isView(l)&&!(l instanceof DataView)}(h)?Gu:Array.isArray(h)?Zf:"function"!=typeof h.valueOf&&"function"!=typeof h.toString||isNaN(h)?df:da)(l,h)}var ct,rn,Jd=0,dc=0,ad=0,nt=1e3,Ne=0,lt=0,yt=0,En="object"==typeof performance&&performance.now?performance:Date,bi="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(l){setTimeout(l,17)};function yi(){return lt||(bi(A),lt=En.now()+yt)}function A(){lt=0}function y(){this._call=this._time=this._next=null}function k(l,h,o){var d=new y;return d.restart(l,h,o),d}function N(){lt=(Ne=En.now())+yt,Jd=dc=0;try{!function P(){yi(),++Jd;for(var h,l=ct;l;)(h=lt-l._time)>=0&&l._call.call(void 0,h),l=l._next;--Jd}()}finally{Jd=0,function U(){for(var l,o,h=ct,d=1/0;h;)h._call?(d>h._time&&(d=h._time),l=h,h=h._next):(o=h._next,h._next=null,h=l?l._next=o:ct=o);rn=l,W(d)}(),lt=0}}function D(){var l=En.now(),h=l-Ne;h>nt&&(yt-=h,Ne=l)}function W(l){Jd||(dc&&(dc=clearTimeout(dc)),l-lt>24?(l<1/0&&(dc=setTimeout(N,l-En.now()-yt)),ad&&(ad=clearInterval(ad))):(ad||(Ne=En.now(),ad=setInterval(D,nt)),Jd=1,bi(N)))}function X(l,h,o){var d=new y;return d.restart(x=>{d.stop(),l(x+h)},h=null==h?0:+h,o),d}y.prototype=k.prototype={constructor:y,restart:function(l,h,o){if("function"!=typeof l)throw new TypeError("callback is not a function");o=(null==o?yi():+o)+(null==h?0:+h),!this._next&&rn!==this&&(rn?rn._next=this:ct=this,rn=this),this._call=l,this._time=o,W()},stop:function(){this._call&&(this._call=null,this._time=1/0,W())}};var de=lo("start","end","cancel","interrupt"),ve=[],Ae=0,at=3;function ot(l,h,o,d,x,C){var G=l.__transition;if(G){if(o in G)return}else l.__transition={};!function hi(l,h,o){var x,d=l.__transition;function G(ke){var Xe,It,Lt,ln;if(1!==o.state)return Oe();for(Xe in d)if((ln=d[Xe]).name===o.name){if(ln.state===at)return X(G);4===ln.state?(ln.state=6,ln.timer.stop(),ln.on.call("interrupt",l,l.__data__,ln.index,ln.group),delete d[Xe]):+Xe<h&&(ln.state=6,ln.timer.stop(),ln.on.call("cancel",l,l.__data__,ln.index,ln.group),delete d[Xe])}if(X(function(){o.state===at&&(o.state=4,o.timer.restart(le,o.delay,o.time),le(ke))}),o.state=2,o.on.call("start",l,l.__data__,o.index,o.group),2===o.state){for(o.state=at,x=new Array(Lt=o.tween.length),Xe=0,It=-1;Xe<Lt;++Xe)(ln=o.tween[Xe].value.call(l,l.__data__,o.index,o.group))&&(x[++It]=ln);x.length=It+1}}function le(ke){for(var Xe=ke<o.duration?o.ease.call(null,ke/o.duration):(o.timer.restart(Oe),o.state=5,1),It=-1,Lt=x.length;++It<Lt;)x[It].call(l,Xe);5===o.state&&(o.on.call("end",l,l.__data__,o.index,o.group),Oe())}function Oe(){for(var ke in o.state=6,o.timer.stop(),delete d[h],d)return;delete l.__transition}d[h]=o,o.timer=k(function C(ke){o.state=1,o.timer.restart(G,o.delay,o.time),o.delay<=ke&&G(ke-o.delay)},0,o.time)}(l,o,{name:h,index:d,group:x,on:de,tween:ve,time:C.time,delay:C.delay,duration:C.duration,ease:C.ease,timer:null,state:Ae})}function Rt(l,h){var o=An(l,h);if(o.state>Ae)throw new Error("too late; already scheduled");return o}function Jt(l,h){var o=An(l,h);if(o.state>at)throw new Error("too late; already running");return o}function An(l,h){var o=l.__transition;if(!o||!(o=o[h]))throw new Error("transition not found");return o}var $e,qn=180/Math.PI,ii={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function He(l,h,o,d,x,C){var G,le,Oe;return(G=Math.sqrt(l*l+h*h))&&(l/=G,h/=G),(Oe=l*o+h*d)&&(o-=l*Oe,d-=h*Oe),(le=Math.sqrt(o*o+d*d))&&(o/=le,d/=le,Oe/=le),l*d<h*o&&(l=-l,h=-h,Oe=-Oe,G=-G),{translateX:x,translateY:C,rotate:Math.atan2(h,l)*qn,skewX:Math.atan(Oe)*qn,scaleX:G,scaleY:le}}function On(l,h,o,d){function x(ke){return ke.length?ke.pop()+" ":""}return function(ke,Xe){var It=[],Lt=[];return ke=l(ke),Xe=l(Xe),function C(ke,Xe,It,Lt,ln,li){if(ke!==It||Xe!==Lt){var Ki=ln.push("translate(",null,h,null,o);li.push({i:Ki-4,x:da(ke,It)},{i:Ki-2,x:da(Xe,Lt)})}else(It||Lt)&&ln.push("translate("+It+h+Lt+o)}(ke.translateX,ke.translateY,Xe.translateX,Xe.translateY,It,Lt),function G(ke,Xe,It,Lt){ke!==Xe?(ke-Xe>180?Xe+=360:Xe-ke>180&&(ke+=360),Lt.push({i:It.push(x(It)+"rotate(",null,d)-2,x:da(ke,Xe)})):Xe&&It.push(x(It)+"rotate("+Xe+d)}(ke.rotate,Xe.rotate,It,Lt),function le(ke,Xe,It,Lt){ke!==Xe?Lt.push({i:It.push(x(It)+"skewX(",
vendor: 3,693 bytes, line 129
129null,d)-2,x:da(ke,Xe)}):Xe&&It.push(x(It)+"skewX("+Xe+d)}(ke.skewX,Xe.skewX,It,Lt),function Oe(ke,Xe,It,Lt,ln,li){if(ke!==It||Xe!==Lt){var Ki=ln.push(x(ln)+"scale(",null,",",null,")");li.push({i:Ki-4,x:da(ke,It)},{i:Ki-2,x:da(Xe,Lt)})}else(1!==It||1!==Lt)&&ln.push(x(ln)+"scale("+It+","+Lt+")")}(ke.scaleX,ke.scaleY,Xe.scaleX,Xe.scaleY,It,Lt),ke=Xe=null,function(ln){for(var Sn,li=-1,Ki=Lt.length;++li<Ki;)It[(Sn=Lt[li]).i]=Sn.x(ln);return It.join("")}}}var Dn=On(function jt(l){const h=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(l+"");return h.isIdentity?ii:He(h.a,h.b,h.c,h.d,h.e,h.f)},"px, ","px)","deg)"),Xn=On(function kt(l){return null!=l&&($e||($e=document.createElementNS("http://www.w3.org/2000/svg","g")),$e.setAttribute("transform",l),l=$e.transform.baseVal.consolidate())?He((l=l.matrix).a,l.b,l.c,l.d,l.e,l.f):ii},", ",")",")");function xn(l,h){var o,d;return function(){var x=Jt(this,l),C=x.tween;if(C!==o)for(var G=0,le=(d=o=C).length;G<le;++G)if(d[G].name===h){(d=d.slice()).splice(G,1);break}x.tween=d}}function oi(l,h,o){var d,x;if("function"!=typeof o)throw new Error;return function(){var C=Jt(this,l),G=C.tween;if(G!==d){x=(d=G).slice();for(var le={name:h,value:o},Oe=0,ke=x.length;Oe<ke;++Oe)if(x[Oe].name===h){x[Oe]=le;break}Oe===ke&&x.push(le)}C.tween=x}}function Qi(l,h,o){var d=l._id;return l.each(function(){var x=Jt(this,d);(x.value||(x.value={}))[h]=o.apply(this,arguments)}),function(x){return An(x,d).value[h]}}function Te(l,h){var o;return("number"==typeof h?da:h instanceof $n?ya:(o=$n(h))?(h=o,ya):jl)(l,h)}function Qe(l){return function(){this.removeAttribute(l)}}function dt(l){return function(){this.removeAttributeNS(l.space,l.local)}}function Nt(l,h,o){var d,C,x=o+"";return function(){var G=this.getAttribute(l);return G===x?null:G===d?C:C=h(d=G,o)}}function Qt(l,h,o){var d,C,x=o+"";return function(){var G=this.getAttributeNS(l.space,l.local);return G===x?null:G===d?C:C=h(d=G,o)}}function Cn(l,h,o){var d,x,C;return function(){var G,Oe,le=o(this);return null==le?void this.removeAttribute(l):(G=this.getAttribute(l))===(Oe=le+"")?null:G===d&&Oe===x?C:(x=Oe,C=h(d=G,le))}}function In(l,h,o){var d,x,C;return function(){var G,Oe,le=o(this);return null==le?void this.removeAttributeNS(l.space,l.local):(G=this.getAttributeNS(l.space,l.local))===(Oe=le+"")?null:G===d&&Oe===x?C:(x=Oe,C=h(d=G,le))}}function Zn(l,h){var o,d;function x(){var C=h.apply(this,arguments);return C!==d&&(o=(d=C)&&function Oi(l,h){return function(o){this.setAttributeNS(l.space,l.local,h.call(this,o))}}(l,C)),o}return x._value=h,x}function Hi(l,h){var o,d;function x(){var C=h.apply(this,arguments);return C!==d&&(o=(d=C)&&function Ri(l,h){return function(o){this.setAttribute(l,h.call(this,o))}}(l,C)),o}return x._value=h,x}function Qn(l,h){return function(){Rt(this,l).delay=+h.apply(this,arguments)}}function vt(l,h){return h=+h,function(){Rt(this,l).delay=h}}function Wi(l,h){return function(){Jt(this,l).duration=+h.apply(this,arguments)}}function Pi(l,h){return h=+h,function(){Jt(this,l).duration=h}}var Zl=hs.prototype.constructor;function Ws(l){return function(){this.style.removeProperty(l)}}var Cl=0;function Gr(l,h,o,d){this._groups=l,this._parents=h,this._name=o,this._id=d}function Cc(){return++Cl}var qs=hs.prototype;Gr.prototype=function cl(l){return hs().transition(l)}.prototype={constructor:Gr,select:function Ds(l){var h=this._name,o=this._id;"function"!=typeof l&&(l=Bo(l));for(var d=this._groups,x=d.length,C=new Array(x),G=0;G<x;++G)for(var Xe,It,le=d[G],Oe=le.length,ke=C[G]=new Array(Oe),Lt=0;Lt<Oe;++Lt)(Xe=le[Lt])&&(It=l.call(Xe,Xe.__data__,Lt,le))&&("__data__"in Xe&&(It.__data__=Xe.__data__),ke[Lt]=It,ot(ke[Lt],h,o,Lt,ke,An(Xe,o))
129);return new Gr(C,this._parents,h,o)},selectAll:function Mr(l){var h=this._name,o=this._id;"function"!=typeof l&&(l=Jo(l));for(var d=this._groups,x=d.length,C=[],G=[],le=0;le<x;++le)for(var Xe,Oe=d[le],ke=Oe.length,It=0;It<ke;++It)if(Xe=Oe[It]){for(var ln,Lt=l.call(Xe,Xe.__data__,It,Oe),li=An(Xe,o),Ki=0,Sn=Lt.length;Ki<Sn;++Ki)(ln=Lt[Ki])&&ot(ln,h,o,Ki,Lt,li);C.push(Lt),G.push(Xe)}return new Gr(C,G,h,o)},selectChild:qs.selectChild,selectChildren:qs.selectChildren,filter:function Se(l){"function"!=typeof l&&(l=Zo(l));for(var h=this._groups,o=h.length,d=new Array(o),x=0;x<o;++x)for(var Oe,C=h[x],G=C.length,le=d[x]=[],ke=0;ke<G;++ke)(Oe=C[ke])&&l.call(Oe,Oe.__data__,ke,C)&&le.push(Oe);return new Gr(d,this._parents,this._name,this._id)},merge:function Ca(l){if(l._id!==this._id)throw new Error;for(var h=this._groups,o=l._groups,d=h.length,C=Math.min(d,o.length),G=new Array(d),le=0;le<C;++le)for(var Lt,Oe=h[le],ke=o[le],Xe=Oe.length,It=G[le]=new Array(Xe),ln=0;ln<Xe;++ln)(Lt=Oe[ln]||ke[ln])&&(It[ln]=Lt);for(;le<d;++le)G[le]=h[le];return new Gr(G,this._parents,this._name,this._id)},selection:function Kr(){return new Zl(this._groups,this._parents)},transition:function yl(){for(var l=this._name,h=this._id,o=Cc(),d=this._groups,x=d.length,C=0;C<x;++C)for(var Oe,G=d[C],le=G.length,ke=0;ke<le;++ke)if(Oe=G[ke]){var Xe=An(Oe,h);ot(Oe,l,o,ke,G,{time:Xe.time+Xe.delay+Xe.duration,delay:0,duration:Xe.duration,ease:Xe.ease})}return new Gr(d,this._parents,l,o)},call:qs.call,nodes:qs.nodes,node:qs.node,size:qs.size,empty:qs.empty,each:qs.each,on:function $i(l,h){var o=this._id;return arguments.length<2?An(this.node(),o).on.on(l):this.each(function Da(l,h,o){var d,x,C=function Ua(l){return(l+"").trim().split(/^|\s+/).every(function(h){var o=h.indexOf(".");return o>=0&&(h=h.slice(0,o)),!h||"start"===h})}(h)?Rt:Jt;return function(){var G=C(this,l),le=G.on;le!==d&&(x=(d=le).copy()).on(h,o),G.on=x}}(o,l,h))},attr:function Ln(l,h){var o=zd(l),d="transform"===o?Xn:Te;return this.attrTween(l,"function"==typeof h?(o.local?In:Cn)(o,d,Qi(this,"attr."+l,h)):null==h?(o.local?dt:Qe)(o):(o.local?Qt:Nt)(o,d,h))},attrTween:function $r(l,h){var o="attr."+l;if(arguments.length<2)return(o=this.tween(o))&&o._value;if(null==h)return this.tween(o,null);if("function"!=typeof h)throw new Error;var d=zd(l);return this.tween(o,(d.local?Zn:Hi)(d,h))},style:function od(l,h,o){var d="transform"==(l+="")?Dn:Te;return null==h?this.styleTween(l,function ha(l,h){var o,d,x;return function(){var C=Qo(this,l),G=(this.style.removeProperty(l),Qo(this,l));return C===G?null:C===o&&G===d?x:x=h(o=C,d=G)}}(l,d)).on("end.style."+l,Ws(l)):"function"==typeof h?this.styleTween(l,function $s(l,h,o){var d,x,C;return function(){var G=Qo(this,l),le=o(this),Oe=le+"";return null==le&&(this.style.removeProperty(l),Oe=le=Qo(this,l)),G===Oe?null:G===d&&Oe===x?C:(x=Oe,C=h(d=G,le))}}(l,d,Qi(this,"style."+l,h))).each(function Is(l,h){var o,d,x,le,C="style."+h,G="end."+C;return function(){var Oe=Jt(this,l),ke=Oe.on,Xe=null==Oe.value[C]?le||(le=Ws(h)):void 0;(ke!==o||x!==Xe)&&(d=(o=ke).copy()).on(G,x=Xe),Oe.on=d}}(this._id,l)):this.styleTween(l,function Fo(l,h,o){var d,C,x=o+"";return function(){var G=Qo(this,l);return G===x?null:G===d?C:C=h(d=G,o)}}(l,d,h),o).on("end.style."+l,null)},styleTween:function qr(l,h,o){var d="style."+(l+="");if(arguments.length<2)return(d=this.tween(d))&&d._value;if(null==h)return this.tween(d,null);if("function"!=typeof h)throw new Error;return this.tween(d,function js(l,h,o){var d,x;function C(){var G=h.apply(this,arguments);return G!==x&&(d=(x=G)&&function pu(l,h,o){return function(d){this.style.setProperty(l,h.call(this,d),o)}}(l,G,o)),d}return C._value=h,C}(l,h,o??""))},text:function Io(l){return this.tween("text","function"==typeof l?function ts(l){return function(){var h=l(this);this.textContent=h??""}}(Qi(this,"text",l)):function ja(l){return function(){this.textContent=l}}(null==l?"":l+""))},textTween:function Ii(l){var h="text";if(arguments.length<1)return(h=this.tween(h))&&h._value;if(null==l)return this.tween(h,null);if("function"!=typeof l)throw new Error;return this.tween(h,function Qd(l){var h,o;function d(){var x=l.apply(this,arguments);return x!==o&&(h=(o=x)&&function Zd(l){return function(h){this.textContent=l.call(this,h)}}(x)),h}return d._value=l,d}(l))},remove:function lr(){return this.on("end.remove",function Aa(l){return function(){var h=this.parentNode;for(var o in this.__transition)if(+o!==l)return;h&&h.removeChild(this)}}(this._id))},tween:function ai(l,h){var o=this._id;if(l+="",arguments.length<2){for(var G,d=An(this.node(),o).tween,x=0,C=d.length;x<C;++x)if((G=d[x]).name===l)return G.value;return null}return this.each((null==h?xn:oi)(o,l,h))},delay:function pa(l){var h=this._id;return arguments.length?this.each(("function"==typeof l?Qn:vt)(h,l)):An(this.node(),h).delay},duration:function zi(l){var h=this._id;return arguments.length?this.each(("function"==typeof l?Wi:Pi)(h,l)):An(this.node(),h).duration},ease:function qi(l){var h=this._id;return arguments.length?this.each(function er(l,h){if("function"!=typeof h)throw new Error;return function(){Jt(this,l).ease=h}}(h,l)):An(this.node(),h).ease},easeVarying:function Sr(l){if("function"!=typeof l)throw new Error;return this.each(function sr(l,h){return function(){var o=h.apply(this,arguments);if("function"!=typeof o)throw new Error;Jt(this,l).ease=o}}(this._id,l))},end:function Cd(){var l,h,o=this,d=o._id,x=o.size();return new Promise(function(C,G){var le={value:G},Oe={value:function(){0==--x&&C()}};o.each(function(){var ke=Jt(this,d),Xe=ke.on;Xe!==l&&((h=(l=Xe).copy())._.cancel.push(le),h._.interrupt.push(le),h._.end.push(Oe)),ke.on=
vendor: 6,830 bytes, line 129
129h}),0===x&&C()})},[Symbol.iterator]:qs[Symbol.iterator]};var Xr={time:null,delay:0,duration:250,ease:function sd(l){return((l*=2)<=1?l*l*l:(l-=2)*l*l+2)/2}};function kl(l,h){for(var o;!(o=l.__transition)||!(o=o[h]);)if(!(l=l.parentNode))throw new Error(`transition ${h} not found`);return o}hs.prototype.interrupt=function At(l){return this.each(function(){!function mn(l,h){var d,x,G,o=l.__transition,C=!0;if(o){for(G in h=null==h?null:h+"",o)(d=o[G]).name===h?(x=d.state>2&&d.state<5,d.state=6,d.timer.stop(),d.on.call(x?"interrupt":"cancel",l,l.__data__,d.index,d.group),delete o[G]):C=!1;C&&delete l.__transition}}(this,l)})},hs.prototype.transition=function dl(l){var h,o;l instanceof Gr?(h=l._id,l=l._name):(h=Cc(),(o=Xr).time=yi(),l=null==l?null:l+"");for(var d=this._groups,x=d.length,C=0;C<x;++C)for(var Oe,G=d[C],le=G.length,ke=0;ke<le;++ke)(Oe=G[ke])&&ot(Oe,l,h,ke,G,o||kl(Oe,h));return new Gr(d,this._parents,l,h)};Math;function je(l){return{type:l}}function Or(l,h){return null==l||null==h?NaN:l<h?-1:l>h?1:l>=h?0:NaN}function Ga(l,h){return null==l||null==h?NaN:h<l?-1:h>l?1:h>=l?0:NaN}function ka(l){let h,o,d;function x(le,Oe,ke=0,Xe=le.length){if(ke<Xe){if(0!==h(Oe,Oe))return Xe;do{const It=ke+Xe>>>1;o(le[It],Oe)<0?ke=It+1:Xe=It}while(ke<Xe)}return ke}return 2!==l.length?(h=Or,o=(le,Oe)=>Or(l(le),Oe),d=(le,Oe)=>l(le)-Oe):(h=l===Or||l===Ga?l:gs,o=l,d=l),{left:x,center:function G(le,Oe,ke=0,Xe=le.length){const It=x(le,Oe,ke,Xe-1);return It>ke&&d(le[It-1],Oe)>-d(le[It],Oe)?It-1:It},right:function C(le,Oe,ke=0,Xe=le.length){if(ke<Xe){if(0!==h(Oe,Oe))return Xe;do{const It=ke+Xe>>>1;o(le[It],Oe)<=0?ke=It+1:Xe=It}while(ke<Xe)}return ke}}}function gs(){return 0}["w","e"].map(je),["n","s"].map(je),["n","w","e","s","nw","ne","sw","se"].map(je);const Rs=Math.sqrt(50),Fs=Math.sqrt(10),ns=Math.sqrt(2);function wl(l,h,o){const d=(h-l)/Math.max(0,o),x=Math.floor(Math.log10(d)),C=d/Math.pow(10,x),G=C>=Rs?10:C>=Fs?5:C>=ns?2:1;let le,Oe,ke;return x<0?(ke=Math.pow(10,-x)/G,le=Math.round(l*ke),Oe=Math.round(h*ke),le/ke<l&&++le,Oe/ke>h&&--Oe,ke=-ke):(ke=Math.pow(10,x)*G,le=Math.round(l/ke),Oe=Math.round(h/ke),le*ke<l&&++le,Oe*ke>h&&--Oe),Oe<le&&.5<=o&&o<2?wl(l,h,2*o):[le,Oe,ke]}function zu(l,h,o){return wl(l=+l,h=+h,o=+o)[2]}function Xs(l,h,o){o=+o;const d=(h=+h)<(l=+l),x=d?zu(h,l,o):zu(l,h,o);return(d?-1:1)*(x<0?1/-x:x)}const tu=1e3,Ll=6e4,Zr=60*Ll,nu=24*Zr,kp=7*nu,ld=30*nu,wp=365*nu,uf=new Date,ff=new Date;function _s(l,h,o,d){function x(C){return l(C=0===arguments.length?new Date:new Date(+C)),C}return x.floor=C=>(l(C=new Date(+C)),C),x.ceil=C=>(l(C=new Date(C-1)),h(C,1),l(C),C),x.round=C=>{const G=x(C),le=x.ceil(C);return C-G<le-C?G:le},x.offset=(C,G)=>(h(C=new Date(+C),null==G?1:Math.floor(G)),C),x.range=(C,G,le)=>{const Oe=[];if(C=x.ceil(C),le=null==le?1:Math.floor(le),!(C<G&&le>0))return Oe;let ke;do{Oe.push(ke=new Date(+C)),h(C,le),l(C)}while(ke<C&&C<G);return Oe},x.filter=C=>_s(G=>{if(G>=G)for(;l(G),!C(G);)G.setTime(G-1)},(G,le)=>{if(G>=G)if(le<0)for(;++le<=0;)for(;h(G,-1),!C(G););else for(;--le>=0;)for(;h(G,1),!C(G););}),o&&(x.count=(C,G)=>(uf.setTime(+C),ff.setTime(+G),l(uf),l(ff),Math.floor(o(uf,ff))),x.every=C=>(C=Math.floor(C),isFinite(C)&&C>0?C>1?x.filter(d?G=>d(G)%C==0:G=>x.count(0,G)%C==0):x:null)),x}const Qf=_s(()=>{},(l,h)=>{l.setTime(+l+h)},(l,h)=>h-l);Qf.every=l=>(l=Math.floor(l),isFinite(l)&&l>0?l>1?_s(h=>{h.setTime(Math.floor(h/l)*l)},(h,o)=>{h.setTime(+h+o*l)},(h,o)=>(o-h)/l):Qf:null);const Of=_s(l=>{l.setTime(l-l.getMilliseconds())},(l,h)=>{l.setTime(+l+h*tu)},(l,h)=>(h-l)/tu,l=>l.getUTCSeconds()),mu=_s(l=>{l.setTime(l-l.getMilliseconds()-l.getSeconds()*tu)},(l,h)=>{l.setTime(+l+h*Ll)},(l,h)=>(h-l)/Ll,l=>l.getMinutes()),pf=_s(l=>{l.setUTCSeconds(0,0)},(l,h)=>{l.setTime(+l+h*Ll)},(l,h)=>(h-l)/Ll,l=>l.getUTCMinutes()),Df=_s(l=>{l.setTime(l-l.getMilliseconds()-l.getSeconds()*tu-l.getMinutes()*Ll)},(l,h)=>{l.setTime(+l+h*Zr)},(l,h)=>(h-l)/Zr,l=>l.getHours()),iu=_s(l=>{l.setUTCMinutes(0,0,0)},(l,h)=>{l.setTime(+l+h*Zr)},(l,h)=>(h-l)/Zr,l=>l.getUTCHours()),gu=_s(l=>l.setHours(0,0,0,0),(l,h)=>l.setDate(l.getDate()+h),(l,h)=>(h-l-(h.getTimezoneOffset()-l.getTimezoneOffset())*Ll)/nu,l=>l.getDate()-1),ip=(_s(l=>{l.setUTCHours(0,0,0,0)},(l,h)=>{l.setUTCDate(l.getUTCDate()+h)},(l,h)=>(h-l)/nu,l=>l.getUTCDate()-1),_s(l=>{l.setUTCHours(0,0,0,0)},(l,h)=>{l.setUTCDate(l.getUTCDate()+h)},(l,h)=>(h-l)/nu,l=>Math.floor(l/nu)));function go(l){return _s(h=>{h.setDate(h.getDate()-(h.getDay()+7-l)%7),h.setHours(0,0,0,0)},(h,o)=>{h.setDate(h.getDate()+7*o)},(h,o)=>(o-h-(o.getTimezoneOffset()-h.getTimezoneOffset())*Ll)/kp)}const ul=go(0);function Za(l){return _s(h=>{h.setUTCDate(h.getUTCDate()-(h.getUTCDay()+7-l)%7),h.setUTCHours(0,0,0,0)},(h,o)=>{h.setUTCDate(h.getUTCDate()+7*o)},(h,o)=>(o-h)/kp)}go(1),go(2),go(3),go(4),go(5),go(6);const ap=Za(0),ga=(Za(1),Za(2),Za(3),Za(4),Za(5),Za(6),_s(l=>{l.setDate(1),l.setHours(0,0,0,0)},(l,h)=>{l.setMonth(l.getMonth()+h)},(l,h)=>h.getMonth()-l.getMonth()+12*(h.getFullYear()-l.getFullYear()),l=>l.getMonth())),ta=_s(l=>{l.setUTCDate(1),l.setUTCHours(0,0,0,0)},(l,h)=>{l.setUTCMonth(l.getUTCMonth()+h)},(l,h)=>h.getUTCMonth()-l.getUTCMonth()+12*(h.getUTCFullYear()-l.getUTCFullYear()),l=>l.getUTCMonth()),tc=_s(l=>{l.setMonth(0,1),l.setHours(0,0,0,0)},(l,h)=>{l.setFullYear(l.getFullYear()+h)},(l,h)=>h.getFullYear()-l.getFullYear(),l=>l.getFullYear());tc.every=l=>isFinite(l=Math.floor(l))&&l>0?_s(h=>{h.setFullYear(Math.floor(h.getFullYear()/l)*l),h.setMonth(0,1),h.setHours(0,0,0,0)},(h,o)=>{h.setFullYear(h.getFullYear()+o*l)}):null;const Bc=_s(l=>{l.setUTCMonth(0,1),l.setUTCHours(0,0,0,0)},(l,h)=>{l.setUTCFullYear(l.getUTCFullYear()+h)},(l,h)=>h.getUTCFullYear()-l.getUTCFullYear(),l=>l.getUTCFullYear());function Yu(l,h,o,d,x,C){const G=[[Of,1,tu],[Of,5,5e3],[Of,15,15e3],[Of,30,3e4],[C,1,Ll],[C,5,5*Ll],[C,15,15*Ll],[C,30,30*Ll],[x,1,Zr],[x,3,3*Zr],[x,6,6*Zr],[x,12,12*Zr],[d,1,nu],[d,2,2*nu],[o,1,kp],[h,1,ld],[h,3,3*ld],[l,1,wp]];function Oe(ke,Xe,It){const Lt=Math.abs(Xe-ke)/It,ln=ka(([,,Sn])=>Sn).right(G,Lt);if(ln===G.length)return l.every(Xs(ke/wp,Xe/wp,It));if(0===ln)return Qf.every(Math.max(Xs(ke,Xe,It),1));const[li,Ki]=G[Lt/G[ln-1][2]<G[ln][2]/Lt?ln-1:ln];return li.every(Ki)}return[function le(ke,Xe,It){const Lt=Xe<ke;Lt&&([ke,Xe]=[Xe,ke]);const ln=It&&"function"==typeof It.range?It:Oe(ke,Xe,It),li=ln?ln.range(ke,+Xe+1):[];return Lt?li.reverse():li},Oe]}Bc.every=l=>isFinite(l=Math.floor(l))&&l>0?_s(h=>{h.setUTCFullYear(Math.floor(h.getUTCFullYear()/l)*l),h.setUTCMonth(0,1),h.setUTCHours(0,0,0,0)},(h,o)=>{h.setUTCFullYear(h.getUTCFullYear()+o*l)}):null;const[cd,gf]=Yu(Bc,ta,ap,ip,iu,pf),[vu,Fc]=Yu(tc,ga,ul,gu,Df,mu);var Wu=new Date,op=new Date;function Ac(l,h,o,d){function x(C){return l(C=0===arguments.length?new Date:new Date(+C)),C}return x.floor=function(C){return l(C=new Date(+C)),C}
129,x.ceil=function(C){return l(C=new Date(C-1)),h(C,1),l(C),C},x.round=function(C){var G=x(C),le=x.ceil(C);return C-G<le-C?G:le},x.offset=function(C,G){return h(C=new Date(+C),null==G?1:Math.floor(G)),C},x.range=function(C,G,le){var ke,Oe=[];if(C=x.ceil(C),le=null==le?1:Math.floor(le),!(C<G&&le>0))return Oe;do{Oe.push(ke=new Date(+C)),h(C,le),l(C)}while(ke<C&&C<G);return Oe},x.filter=function(C){return Ac(function(G){if(G>=G)for(;l(G),!C(G);)G.setTime(G-1)},function(G,le){if(G>=G)if(le<0)for(;++le<=0;)for(;h(G,-1),!C(G););else for(;--le>=0;)for(;h(G,1),!C(G););})},o&&(x.count=function(C,G){return Wu.setTime(+C),op.setTime(+G),l(Wu),l(op),Math.floor(o(Wu,op))},x.every=function(C){return C=Math.floor(C),isFinite(C)&&C>0?C>1?x.filter(d?function(G){return d(G)%C==0}:function(G){return x.count(0,G)%C==0}):x:null}),x}const dd=864e5,_f=7*dd;function xu(l){return Ac(function(h){h.setUTCDate(h.getUTCDate()-(h.getUTCDay()+7-l)%7),h.setUTCHours(0,0,0,0)},function(h,o){h.setUTCDate(h.getUTCDate()+7*o)},function(h,o){return(o-h)/_f})}var Td=xu(0),Nl=xu(1),Lf=(xu(2),xu(3),xu(4));const Sd=(xu(5),xu(6),Ac(function(l){l.setUTCHours(0,0,0,0)},function(l,h){l.setUTCDate(l.getUTCDate()+h)},function(l,h){return(h-l)/dd},function(l){return l.getUTCDate()-1}));function Js(l){return Ac(function(h){h.setDate(h.getDate()-(h.getDay()+7-l)%7),h.setHours(0,0,0,0)},function(h,o){h.setDate(h.getDate()+7*o)},function(h,o){return(o-h-6e4*(o.getTimezoneOffset()-h.getTimezoneOffset()))/_f})}var zr=Js(0),yu=Js(1),bf=(Js(2),Js(3),Js(4));const Ku=(Js(5),Js(6),Ac(l=>l.setHours(0,0,0,0),(l,h)=>l.setDate(l.getDate()+h),(l,h)=>(h-l-6e4*(h.getTimezoneOffset()-l.getTimezoneOffset()))/dd,l=>l.getDate()-1));var Gl=Ac(function(l){l.setMonth(0,1),l.setHours(0,0,0,0)},function(l,h){l.setFullYear(l.getFullYear()+h)},function(l,h){return h.getFullYear()-l.getFullYear()},function(l){return l.getFullYear()});Gl.every=function(l){return isFinite(l=Math.floor(l))&&l>0?Ac(function(h){h.setFullYear(Math.floor(h.getFullYear()/l)*l),h.setMonth(0,1),h.setHours(0,0,0,0)},function(h,o){h.setFullYear(h.getFullYear()+o*l)}):null};const Ju=Gl;var Yp=Ac(function(l){l.setUTCMonth(0,1),l.setUTCHours(0,0,0,0)},function(l,h){l.setUTCFullYear(l.getUTCFullYear()+h)},function(l,h){return h.getUTCFullYear()-l.getUTCFullYear()},function(l){return l.getUTCFullYear()});Yp.every=function(l){return isFinite(l=Math.floor(l))&&l>0?Ac(function(h){h.setUTCFullYear(Math.floor(h.getUTCFullYear()/l)*l),h.setUTCMonth(0,1),h.setUTCHours(0,0,0,0)},function(h,o){h.setUTCFullYear(h.getUTCFullYear()+o*l)}):null};const pp=Yp;function Zs(l){if(0<=l.y&&l.y<100){var h=new Date(-1,l.m,l.d,l.H,l.M,l.S,l.L);return h.setFullYear(l.y),h}return new Date(l.y,l.m,l.d,l.H,l.M,l.S,l.L)}function rc(l){if(0<=l.y&&l.y<100){var h=new Date(Date.UTC(-1,l.m,l.d,l.H,l.M,l.S,l.L));return h.setUTCFullYear(l.y),h}return new Date(Date.UTC(l.y,l.m,l.d,l.H,l.M,l.S,l.L))}function Pd(l,h,o){return{y:l,m:h,d:o,H:0,M:0,S:0,L:0}}var em={"-":"",_:" ",0:"0"},Fl=/^\s*\d+/,yh=/^%/,ch=/[\\^$*+?|[\]().{}]/g;function co(l,h,o){var d=l<0?"-":"",x=(d?-l:l)+"",C=x.length;return d+(C<o?new Array(o-C+1).join(h)+x:x)}function tm(l){return l.replace(ch,"\\$&")}function yf(l){return new RegExp("^(?:"+l.map(tm).join("|")+")","i")}function Ec(l){return new Map(l.map((h,o)=>[h.toLowerCase(),o]))}function Ep(l,h,o){var d=Fl.exec(h.slice(o,o+1));return d?(l.w=+d[0],o+d[0].length):-1}function Ch(l,h,o){var d=Fl.exec(h.slice(o,o+1));return d?(l.u=+d[0],o+d[0].length):-1}function kh(l,h,o){var d=Fl.exec(h.slice(o,o+2));return d?(l.U=+d[0],o+d[0].length):-1}function wh(l,h,o){var d=Fl.exec(h.slice(o,o+2));return d?(l.V=+d[0],o+d[0].length):-1}function Cf(l,h,o){var d=Fl.exec(h.slice(o,o+2));return d?(l.W=+d[0],o+d[0].length):-1}function Fh(l,h,o){var d=Fl.exec(h.slice(o,o+4));return d?(l.y=+d[0],o+d[0].length):-1}function Cu(l,h,o){var d=Fl.exec(h.slice(o,o+2));return d?(l.y=+d[0]+(+d[0]>68?1900:2e3),o+d[0].length):-1}function Pp(l,h,o){var d=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(h.slice(o,o+6));return d?(l.Z=d[1]?0:-(d[2]+(d[3]||"00")),o+d[0].length):-1}function Om(l,h,o){var d=Fl.exec(h.slice(o,o+1));return d?(l.q=3*d[0]-3,o+d[0].length):-1}function Ah(l,h,o){var d=Fl.exec(h.slice(o,o+2));return d?(l.m=d[0]-1,o+d[0].length):-1}function Th(l,h,o){var d=Fl.exec(h.slice(o,o+2));return d?(l.d=+d[0],o+d[0].length):-1}function Wp(l,h,o){var d=Fl.exec(h.slice(o,o+3));return d?(l.m=0,l.d=+d[0],o+d[0].length):-1}function Sh(l,h,o){var d=Fl.exec(h.slice(o,o+2));return d?(l.H=+d[0],o+d[0].length):-1}function nm(l,h,o){var d=Fl.exec(h.slice(o,o+2));return d?(l.M=+d[0],o+d[0].length):-1}function Dm(l,h,o){var d=Fl.exec(h.slice(o,o+2));return d?(l.S=+d[0],o+d[0].length):-1}function rg(l,h,o){var d=Fl.exec(h.slice(o,o+3));return d?(l.L=+d[0],o+d[0].length):-1}function ag(l,h,o){var d=Fl.exec(h.slice(o,o+6));return d?(l.L=Math.floor(d[0]/1e3),o+d[0].length):-1}function im(l,h,o){var d=yh.exec(h.slice(o,o+1));return d?o+d[0].length:-1}function og(l,h,o){var d=Fl.exec(h.slice(o));return d?(l.Q=+d[0],o+d[0].length):-1}function Gf(l,h,o){var d=Fl.exec(h.slice(o));return d?(l.s=+d[0],o+d[0].length):-1}function au(l,h){return co(l.getDate(),h,2)}function Zu(l,h){return co(l.getHours(),h,2)}function Eh(l,h){return co(l.getHours()%12||12,h,2)}function rm(l,h){return co(1+Ku.count(Ju(l),l),h,3)}function Vf(l,h){return co(l.getMilliseconds(),h,3)}function ku(l,h){return Vf(l,h)+"000"}function sg(l,h){return co(l.getMonth()+1,h,2)}function Im(l,h){return co(l.getMinutes(),h,2)}function am(l,h){return co(l.getSeconds(),h,2)}function om(l){var h=l.getDay();return 0===h?7:h}function jm(l,h){return co(zr.count(Ju(l)-1,l),h,2)}function $p(l){var h=l.getDay();return h>=4||0===h?bf(l):bf.ceil(l)}function Rm(l,h){return l=$p(l),co(bf.count(Ju(l),l)+(4===Ju(l).getDay()),h,2)}function dh(l){return l.getDay()}function Gc(l,h){return co(yu.count(Ju(l)-1,l),h,2)}function uh(l,h){return co(l.getFullYear()%100,h,2)}function Ph(l,h){return co((l=$p(l)).getFullYear()%100,h,2)}function sm(l,h){return co(l.getFullYear()%1e4,h,4)}function lm(l,h){var o=l.getDay();return co((l=o>=4||0===o?bf(l):bf.ceil(l)).getFullYear()%1e4,h,4)}function zf(l){var h=l.getTimezoneOffset();
vendor: 4,646 bytes, line 129
129return(h>0?"-":(h*=-1,"+"))+co(h/60|0,"0",2)+co(h%60,"0",2)}function Lm(l,h){return co(l.getUTCDate(),h,2)}function lg(l,h){return co(l.getUTCHours(),h,2)}function Al(l,h){return co(l.getUTCHours()%12||12,h,2)}function Pc(l,h){return co(1+Sd.count(pp(l),l),h,3)}function Tl(l,h){return co(l.getUTCMilliseconds(),h,3)}function wu(l,h){return Tl(l,h)+"000"}function cm(l,h){return co(l.getUTCMonth()+1,h,2)}function Mh(l,h){return co(l.getUTCMinutes(),h,2)}function Nm(l,h){return co(l.getUTCSeconds(),h,2)}function fh(l){var h=l.getUTCDay();return 0===h?7:h}function Bm(l,h){return co(Td.count(pp(l)-1,l),h,2)}function F(l){var h=l.getUTCDay();return h>=4||0===h?Lf(l):Lf.ceil(l)}function M(l,h){return l=F(l),co(Lf.count(pp(l),l)+(4===pp(l).getUTCDay()),h,2)}function Y(l){return l.getUTCDay()}function ae(l,h){return co(Nl.count(pp(l)-1,l),h,2)}function ye(l,h){return co(l.getUTCFullYear()%100,h,2)}function Pe(l,h){return co((l=F(l)).getUTCFullYear()%100,h,2)}function Me(l,h){return co(l.getUTCFullYear()%1e4,h,4)}function Re(l,h){var o=l.getUTCDay();return co((l=o>=4||0===o?Lf(l):Lf.ceil(l)).getUTCFullYear()%1e4,h,4)}function Ge(){return"+0000"}function et(){return"%"}function Yt(l){return+l}function gn(l){return Math.floor(+l/1e3)}function ci(l){return null===l?NaN:+l}!function Ht(l){(function _o(l){var h=l.dateTime,o=l.date,d=l.time,x=l.periods,C=l.days,G=l.shortDays,le=l.months,Oe=l.shortMonths,ke=yf(x),Xe=Ec(x),It=yf(C),Lt=Ec(C),ln=yf(G),li=Ec(G),Ki=yf(le),Sn=Ec(le),Ei=yf(Oe),Ar=Ec(Oe),Vi={a:function us(Pr){return G[Pr.getDay()]},A:function hc(Pr){return C[Pr.getDay()]},b:function qo(Pr){return Oe[Pr.getMonth()]},B:function Ul(Pr){return le[Pr.getMonth()]},c:null,d:au,e:au,f:ku,g:Ph,G:lm,H:Zu,I:Eh,j:rm,L:Vf,m:sg,M:Im,p:function el(Pr){return x[+(Pr.getHours()>=12)]},q:function tl(Pr){return 1+~~(Pr.getMonth()/3)},Q:Yt,s:gn,S:am,u:om,U:jm,V:Rm,w:dh,W:Gc,x:null,X:null,y:uh,Y:sm,Z:zf,"%":et},Er={a:function pd(Pr){return G[Pr.getUTCDay()]},A:function eh(Pr){return C[Pr.getUTCDay()]},b:function $c(Pr){return Oe[Pr.getUTCMonth()]},B:function th(Pr){return le[Pr.getUTCMonth()]},c:null,d:Lm,e:Lm,f:wu,g:Pe,G:Re,H:lg,I:Al,j:Pc,L:Tl,m:cm,M:Mh,p:function qc(Pr){return x[+(Pr.getUTCHours()>=12)]},q:function Bp(Pr){return 1+~~(Pr.getUTCMonth()/3)},Q:Yt,s:gn,S:Nm,u:fh,U:Bm,V:M,w:Y,W:ae,x:null,X:null,y:ye,Y:Me,Z:Ge,"%":et},Dr={a:function Eo(Pr,za,ho){var Li=ln.exec(za.slice(ho));return Li?(Pr.w=li.get(Li[0].toLowerCase()),ho+Li[0].length):-1},A:function Rr(Pr,za,ho){var Li=It.exec(za.slice(ho));return Li?(Pr.w=Lt.get(Li[0].toLowerCase()),ho+Li[0].length):-1},b:function ds(Pr,za,ho){var Li=Ei.exec(za.slice(ho));return Li?(Pr.m=Ar.get(Li[0].toLowerCase()),ho+Li[0].length):-1},B:function yr(Pr,za,ho){var Li=Ki.exec(za.slice(ho));return Li?(Pr.m=Sn.get(Li[0].toLowerCase()),ho+Li[0].length):-1},c:function ra(Pr,za,ho){return So(Pr,h,za,ho)},d:Th,e:Th,f:ag,g:Cu,G:Fh,H:Sh,I:Sh,j:Wp,L:rg,m:Ah,M:nm,p:function zl(Pr,za,ho){var Li=ke.exec(za.slice(ho));return Li?(Pr.p=Xe.get(Li[0].toLowerCase()),ho+Li[0].length):-1},q:Om,Q:og,s:Gf,S:Dm,u:Ch,U:kh,V:wh,w:Ep,W:Cf,x:function Ic(Pr,za,ho){return So(Pr,o,za,ho)},X:function Ls(Pr,za,ho){return So(Pr,d,za,ho)},y:Cu,Y:Fh,Z:Pp,"%":im};function wr(Pr,za){return function(ho){var rf,wa,mc,Li=[],Yl=-1,As=0,nf=Pr.length;for(ho instanceof Date||(ho=new Date(+ho));++Yl<nf;)37===Pr.charCodeAt(Yl)&&(Li.push(Pr.slice(As,Yl)),null!=(wa=em[rf=Pr.charAt(++Yl)])?rf=Pr.charAt(++Yl):wa="e"===rf?" ":"0",(mc=za[rf])&&(rf=mc(ho,wa)),Li.push(rf),As=Yl+1);return Li.push(Pr.slice(As,Yl)),Li.join("")}}function To(Pr,za){return function(ho){var As,nf,Li=Pd(1900,void 0,1);if(So(Li,Pr,ho+="",0)!=ho.length)return null;if("Q"in Li)return new Date(Li.Q);if("s"in Li)return new Date(1e3*Li.s+("L"in Li?Li.L:0));if(za&&!("Z"in Li)&&(Li.Z=0),"p"in Li&&(Li.H=Li.H%12+12*Li.p),void 0===Li.m&&(Li.m="q"in Li?Li.q:0),"V"in Li){if(Li.V<1||Li.V>53)return null;"w"in Li||(Li.w=1),"Z"in Li?(nf=(As=rc(Pd(Li.y,0,1))).getUTCDay(),As=nf>4||0===nf?Nl.ceil(As):Nl(As),As=Sd.offset(As,7*(Li.V-1)),Li.y=As.getUTCFullYear(),Li.m=As.getUTCMonth(),Li.d=As.getUTCDate()+(Li.w+6)%7):(nf=(As=Zs(Pd(Li.y,0,1))).getDay(),As=nf>4||0===nf?yu.ceil(As):yu(As),As=Ku.offset(As,7*(Li.V-1)),Li.y=As.getFullYear(),Li.m=As.getMonth(),Li.d=As.getDate()+(Li.w+6)%7)}else("W"in Li||"U"in Li)&&("w"in Li||(Li.w="u"in Li?Li.u%7:"W"in Li?1:0),nf="Z"in Li?rc(Pd(Li.y,0,1)).getUTCDay():Zs(Pd(Li.y,0,1)).getDay(),Li.m=0,Li.d="W"in Li?(Li.w+6)%7+7*Li.W-(nf+5)%7:Li.w+7*Li.U-(nf+6)%7);return"Z"in Li?(Li.H+=Li.Z/100|0,Li.M+=Li.Z%100,rc(Li)):Zs(Li)}}function So(Pr,za,ho,Li){for(var rf,wa,Yl=0,As=za.length,nf=ho.length;Yl<As;){if(Li>=nf)return-1;
vendor: 8,952 bytes, line 129
129if(37===(rf=za.charCodeAt(Yl++))){if(rf=za.charAt(Yl++),!(wa=Dr[rf in em?za.charAt(Yl++):rf])||(Li=wa(Pr,ho,Li))<0)return-1}else if(rf!=ho.charCodeAt(Li++))return-1}return Li}return Vi.x=wr(o,Vi),Vi.X=wr(d,Vi),Vi.c=wr(h,Vi),Er.x=wr(o,Er),Er.X=wr(d,Er),Er.c=wr(h,Er),{format:function(Pr){var za=wr(Pr+="",Vi);return za.toString=function(){return Pr},za},parse:function(Pr){var za=To(Pr+="",!1);return za.toString=function(){return Pr},za},utcFormat:function(Pr){var za=wr(Pr+="",Er);return za.toString=function(){return Pr},za},utcParse:function(Pr){var za=To(Pr+="",!0);return za.toString=function(){return Pr},za}}})(l)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const br=ka(Or).right,ir=(ka(ci),br);function uo(l,h){return l=+l,h=+h,function(o){return Math.round(l*(1-o)+h*o)}}function vo(l){return+l}var no=[0,1];function _a(l){return l}function Wo(l,h){return(h-=l=+l)?function(o){return(o-l)/h}:function Yo(l){return function(){return l}}(isNaN(h)?NaN:.5)}function Qs(l,h,o){var d=l[0],x=l[1],C=h[0],G=h[1];return x<d?(d=Wo(x,d),C=o(G,C)):(d=Wo(d,x),C=o(C,G)),function(le){return C(d(le))}}function Vc(l,h,o){var d=Math.min(l.length,h.length)-1,x=new Array(d),C=new Array(d),G=-1;for(l[d]<l[0]&&(l=l.slice().reverse(),h=h.slice().reverse());++G<d;)x[G]=Wo(l[G],l[G+1]),C[G]=o(h[G],h[G+1]);return function(le){var Oe=ir(l,le,1,d)-1;return C[Oe](x[Oe](le))}}function $o(){return function Md(){var d,x,C,le,Oe,ke,l=no,h=no,o=bl,G=_a;function Xe(){var Lt=Math.min(l.length,h.length);return G!==_a&&(G=function Na(l,h){var o;return l>h&&(o=l,l=h,h=o),function(d){return Math.max(l,Math.min(h,d))}}(l[0],l[Lt-1])),le=Lt>2?Vc:Qs,Oe=ke=null,It}function It(Lt){return null==Lt||isNaN(Lt=+Lt)?C:(Oe||(Oe=le(l.map(d),h,o)))(d(G(Lt)))}return It.invert=function(Lt){return G(x((ke||(ke=le(h,l.map(d),da)))(Lt)))},It.domain=function(Lt){return arguments.length?(l=Array.from(Lt,vo),Xe()):l.slice()},It.range=function(Lt){return arguments.length?(h=Array.from(Lt),Xe()):h.slice()},It.rangeRound=function(Lt){return h=Array.from(Lt),o=uo,Xe()},It.clamp=function(Lt){return arguments.length?(G=!!Lt||_a,Xe()):G!==_a},It.interpolate=function(Lt){return arguments.length?(o=Lt,Xe()):o},It.unknown=function(Lt){return arguments.length?(C=Lt,It):C},function(Lt,ln){return d=Lt,x=ln,Xe()}}()(_a,_a)}function Mc(l,h){switch(arguments.length){case 0:break;case 1:this.range(l);break;default:this.range(h).domain(l)}return this}var Xp,fc=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Au(l){if(!(h=fc.exec(l)))throw new Error("invalid format: "+l);var h;return new kf({fill:h[1],align:h[2],sign:h[3],symbol:h[4],zero:h[5],width:h[6],comma:h[7],precision:h[8]&&h[8].slice(1),trim:h[9],type:h[10]})}function kf(l){this.fill=void 0===l.fill?" ":l.fill+"",this.align=void 0===l.align?">":l.align+"",this.sign=void 0===l.sign?"-":l.sign+"",this.symbol=void 0===l.symbol?"":l.symbol+"",this.zero=!!l.zero,this.width=void 0===l.width?void 0:+l.width,this.comma=!!l.comma,this.precision=void 0===l.precision?void 0:+l.precision,this.trim=!!l.trim,this.type=void 0===l.type?"":l.type+""}function Dd(l,h){if((o=(l=h?l.toExponential(h-1):l.toExponential()).indexOf("e"))<0)return null;var o,d=l.slice(0,o);return[d.length>1?d[0]+d.slice(2):d,+l.slice(o+1)]}function cs(l){return(l=Dd(Math.abs(l)))?l[1]:NaN}function Tu(l,h){var o=Dd(l,h);if(!o)return l+"";var d=o[0],x=o[1];return x<0?"0."+new Array(-x).join("0")+d:d.length>x+1?d.slice(0,x+1)+"."+d.slice(x+1):d+new Array(x-d.length+2).join("0")}Au.prototype=kf.prototype,kf.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Mp={"%":(l,h)=>(100*l).toFixed(h),b:l=>Math.round(l).toString(2),c:l=>l+"",d:function qp(l){return Math.abs(l=Math.round(l))>=1e21?l.toLocaleString("en").replace(/,/g,""):l.toString(10)},e:(l,h)=>l.toExponential(h),f:(l,h)=>l.toFixed(h),g:(l,h)=>l.toPrecision(h),o:l=>Math.round(l).toString(8),p:(l,h)=>Tu(100*l,h),r:Tu,s:function Dh(l,h){var o=Dd(l,h);if(!o)return l+"";var d=o[0],x=o[1],C=x-(Xp=3*Math.max(-8,Math.min(8,Math.floor(x/3))))+1,G=d.length;return C===G?d:C>G?d+new Array(C-G+1).join("0"):C>0?d.slice(0,C)+"."+d.slice(C):"0."+new Array(1-C).join("0")+Dd(l,Math.max(0,h+C-1))[0]},X:l=>Math.round(l).toString(16).toUpperCase(),x:l=>Math.round(l).toString(16)};function Op(l){return l}var mp,ph,Dp,um=Array.prototype.map,hp=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function gp(l){var h=l.domain;return l.ticks=function(o){var d=h();return function Nc(l,h,o){if(!((o=+o)>0))return[];if((l=+l)==(h=+h))return[l];const d=h<l,[x,C,G]=d?wl(h,l,o):wl(l,h,o);if(!(C>=x))return[];const le=C-x+1,Oe=new Array(le);if(d)if(G<0)for(let ke=0;ke<le;++ke)Oe[ke]=(C-ke)/-G;else for(let ke=0;ke<le;++ke)Oe[ke]=(C-ke)*G;else if(G<0)for(let ke=0;ke<le;++ke)Oe[ke]=(x+ke)/-G;else for(let ke=0;ke<le;++ke)Oe[ke]=(x+ke)*G;return Oe}(d[0],d[d.length-1],o??10)},l.tickFormat=function(o,d){var x=h();return function hh(l,h,o,d){var C,x=Xs(l,h,o);switch((d=Au(d??",f")).type){case"s":var G=Math.max(Math.abs(l),Math.abs(h));return null==d.precision&&!isNaN(C=function dm(l,h){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(cs(h)/3)))-cs(Math.abs(l)))}(x,G))&&(d.precision=C),Dp(d,G);case"":case"e":case"g":case"p":case"r":null==d.precision&&!isNaN(C=function zm(l,h){return l=Math.abs(l),h=Math.abs(h)-l,Math.max(0,cs(h)-cs(l))+1}(x,Math.max(Math.abs(l),Math.abs(h))))&&(d.precision=C-("e"===d.type));break;case"f":case"%":null==d.precision&&!isNaN(C=function Um(l){return Math.max(0,-cs(Math.abs(l)))}(x))&&(d.precision=C-2*("%"===d.type))}return ph(d)}(x[0],x[x.length-1],o??10,d)},l.nice=function(o){null==o&&(o=10);var Oe,ke,d=h(),x=0,C=d.length-1,G=d[x],le=d[C],Xe=10;for(le<G&&(ke=G,G=le,le=ke,ke=x,x=C,C=ke);Xe-- >0;){if((ke=zu(G,le,o))===Oe)return d[x]=G,d[C]=le,h(d);if(ke>0)G=Math.floor(G/ke)*ke,le=Math.ceil(le/ke)*ke;else{if(!(ke<0))break;G=Math.ceil(G*ke)/ke,le=Math.floor(le*ke)/ke}Oe=ke}return l},l}function mh(){var l=$o();return l.copy=function(){return function Sl(l,h){return h.domain(l.domain()).range(l.range()).interpolate(l.interpolate()).clamp(l.clamp()).unknown(l.unknown())}(l,mh())},Mc.apply(l,arguments),gp(l)}function pm(l,h,o){l=+l,h=+h,o=(x=arguments.length)<2?(h=l,l=0,1):x<3?1:+o;for(var d=-1,x=0|Math.max(0,Math.ceil((h-l)/o)),C=new Array(x);++d<x;)C[d]=l+d*o;return C}!function Hp(l){mp=function fm(l){var h=void 0===l.grouping||void 0===l.thousands?Op:function Gm(l,h){return function(o,d){for(var x=o.length,C=[],G=0,le=l[0],Oe=0;x>0&&le>0&&(Oe+le+1>d&&(le=Math.max(1,d-Oe)),C.push(o.substring(x-=le,x+le)),!((Oe+=le+1)>d));)le=l[G=(G+1)%l.length];return C.reverse().join(h)}}(um.call(l.grouping,Number),l.thousands+""),o=void 0===l.currency?"":l.currency[0]+"",d=void 0===l.currency?"":l.currency[1]+"",x=void 0===l.decimal?".":l.decimal+"",C=void 0===l.numerals?Op:function Vm(l){return function(h){return h.replace(/[0-9]/g,function(o){return l[+o]})}}(um.call(l.numerals,String)),G=void 0===l.percent?"%":l.percent+"",le=void 0===l.minus?"\u2212":l.minus+"",Oe=void 0===l.nan?"NaN":l.nan+"";function ke(It){var Lt=(It=Au(It)).fill,ln=It.align,li=It.sign,Ki=It.symbol,Sn=It.zero,Ei=It.width,Ar=It.comma,Vi=It.precision,Er=It.trim,Dr=It.type;"n"===Dr?(Ar=!0,Dr="g"):Mp[Dr]||(void 0===Vi&&(Vi=12),Er=!0,Dr="g"),(Sn||"0"===Lt&&"="===ln)&&(Sn=!0,Lt="0",ln="=");var wr="$"===Ki?o:"#"===Ki&&/[boxX]/.test(Dr)?"0"+Dr.toLowerCase():"",To="$"===Ki?d:/[%p]/.test(Dr)?G:"",So=Mp[Dr],zl=/[defgprs%]/.test(Dr);function Eo(Rr){var ra,Ic,Ls,ds=wr,yr=To;if("c"===Dr)yr=So(Rr)+yr,Rr="";else{var us=(Rr=+Rr)<0||1/Rr<0;if(Rr=isNaN(Rr)?Oe:So(Math.abs(Rr),Vi),Er&&(Rr=function Oh(l){e:for(var x,h=l.length,o=1,d=-1;o<h;++o)switch(l[o]){case".":d=x=o;break;case"0":0===d&&(d=o),x=o;break;default:if(!+l[o])break e;d>0&&(d=0)}return d>0?l.slice(0,d)+l.slice(x+1):l}(Rr)),us&&0==+Rr&&"+"!==li&&(us=!1),ds=(us?"("===li?li:le:"-"===li||"("===li?"":li)+ds,yr=("s"===Dr?hp[8+Xp/3]:"")+yr+(us&&"("===li?")":""),zl)for(ra=-1,Ic=Rr.length;++ra<Ic;)if(48>(Ls=Rr.charCodeAt(ra))||Ls>57){yr=(46===Ls?x+Rr.slice(ra+1):Rr.slice(ra))+yr,Rr=Rr.slice(0,ra);break}}Ar&&!Sn&&(Rr=h(Rr,1/0));var hc=ds.length+Rr.length+yr.length,qo=hc<Ei?new Array(Ei-hc+1).join(Lt):"";switch(Ar&&Sn&&(Rr=h(qo+Rr,qo.length?Ei-yr.length:1/0),qo=""),ln){case"<":Rr=ds+Rr+yr+qo;break;case"=":Rr=ds+qo+Rr+yr;break;case"^":Rr=qo.slice(0,hc=qo.length>>1)+ds+Rr+yr+qo.slice(hc);break;
vendor: 6,773 bytes, line 129
129default:Rr=qo+ds+Rr+yr}return C(Rr)}return Vi=void 0===Vi?6:/[gprs]/.test(Dr)?Math.max(1,Math.min(21,Vi)):Math.max(0,Math.min(20,Vi)),Eo.toString=function(){return It+""},Eo}return{format:ke,formatPrefix:function Xe(It,Lt){var ln=ke(((It=Au(It)).type="f",It)),li=3*Math.max(-8,Math.min(8,Math.floor(cs(Lt)/3))),Ki=Math.pow(10,-li),Sn=hp[8+li/3];return function(Ei){return ln(Ki*Ei)+Sn}}}}(l),ph=mp.format,Dp=mp.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});class gh extends Map{constructor(h,o=Ip){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:o}}),null!=h)for(const[d,x]of h)this.set(d,x)}get(h){return super.get(Kp(this,h))}has(h){return super.has(Kp(this,h))}set(h,o){return super.set(function jh({_intern:l,_key:h},o){const d=h(o);return l.has(d)?l.get(d):(l.set(d,o),o)}(this,h),o)}delete(h){return super.delete(function _h({_intern:l,_key:h},o){const d=h(o);return l.has(d)&&(o=l.get(d),l.delete(d)),o}(this,h))}}function Kp({_intern:l,_key:h},o){const d=h(o);return l.has(d)?l.get(d):o}function Ip(l){return null!==l&&"object"==typeof l?l.valueOf():l}Set;const Rh=Symbol("implicit");function _p(){var l=new gh,h=[],o=[],d=Rh;function x(C){let G=l.get(C);if(void 0===G){if(d!==Rh)return d;l.set(C,G=h.push(C)-1)}return o[G%o.length]}return x.domain=function(C){if(!arguments.length)return h.slice();h=[],l=new gh;for(const G of C)l.has(G)||l.set(G,h.push(G)-1);return x},x.range=function(C){return arguments.length?(o=Array.from(C),x):o.slice()},x.unknown=function(C){return arguments.length?(d=C,x):d},x.copy=function(){return _p(h,o).unknown(d)},Mc.apply(x,arguments),x}function vh(){var C,G,l=_p().unknown(void 0),h=l.domain,o=l.range,d=0,x=1,le=!1,Oe=0,ke=0,Xe=.5;function It(){var Lt=h().length,ln=x<d,li=ln?x:d,Ki=ln?d:x;C=(Ki-li)/Math.max(1,Lt-Oe+2*ke),le&&(C=Math.floor(C)),li+=(Ki-li-C*(Lt-Oe))*Xe,G=C*(1-Oe),le&&(li=Math.round(li),G=Math.round(G));var Sn=pm(Lt).map(function(Ei){return li+C*Ei});return o(ln?Sn.reverse():Sn)}return delete l.unknown,l.domain=function(Lt){return arguments.length?(h(Lt),It()):h()},l.range=function(Lt){return arguments.length?([d,x]=Lt,d=+d,x=+x,It()):[d,x]},l.rangeRound=function(Lt){return[d,x]=Lt,d=+d,x=+x,le=!0,It()},l.bandwidth=function(){return G},l.step=function(){return C},l.round=function(Lt){return arguments.length?(le=!!Lt,It()):le},l.padding=function(Lt){return arguments.length?(Oe=Math.min(1,ke=+Lt),It()):Oe},l.paddingInner=function(Lt){return arguments.length?(Oe=Math.min(1,Lt),It()):Oe},l.paddingOuter=function(Lt){return arguments.length?(ke=+Lt,It()):ke},l.align=function(Lt){return arguments.length?(Xe=Math.max(0,Math.min(1,Lt)),It()):Xe},l.copy=function(){return vh(h(),[d,x]).round(le).paddingInner(Oe).paddingOuter(ke).align(Xe)},Mc.apply(It(),arguments)}function Nh(l,h,o=ci){if((d=l.length)&&!isNaN(h=+h)){if(h<=0||d<2)return+o(l[0],0,l);if(h>=1)return+o(l[d-1],d-1,l);var d,x=(d-1)*h,C=Math.floor(x),G=+o(l[C],C,l);return G+(+o(l[C+1],C+1,l)-G)*(x-C)}}function hm(){var d,l=[],h=[],o=[];function x(){var G=0,le=Math.max(1,h.length);for(o=new Array(le-1);++G<le;)o[G-1]=Nh(l,G/le);return C}function C(G){return null==G||isNaN(G=+G)?d:h[ir(o,G)]}return C.invertExtent=function(G){var le=h.indexOf(G);return le<0?[NaN,NaN]:[le>0?o[le-1]:l[0],le<o.length?o[le]:l[l.length-1]]},C.domain=function(G){if(!arguments.length)return l.slice();l=[];for(let le of G)null!=le&&!isNaN(le=+le)&&l.push(le);return l.sort(Or),x()},C.range=function(G){return arguments.length?(h=Array.from(G),x()):h.slice()},C.unknown=function(G){return arguments.length?(d=G,C):d},C.quantiles=function(){return o.slice()},C.copy=function(){return hm().domain(l).range(h).unknown(d)},Mc.apply(C,arguments)}function zc(l){return function(){return l}}const Wm=Math.abs,Dc=Math.atan2,hl=Math.cos,dg=Math.max,Bh=Math.min,Uc=Math.sin,ca=Math.sqrt,Id=1e-12,ml=Math.PI,xs=ml/2,Rp=2*ml;function Uf(l){return l>=1?xs:l<=-1?-xs:Math.asin(l)}const wf=Math.PI,Jp=2*wf,Ff=1e-6,$m=Jp-Ff;function Gh(l){this._+=l[0];for(let h=1,o=l.length;h<o;++h)this._+=arguments[h]+l[h]}class jd{constructor(h){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==h?Gh:function mm(l){let h=Math.floor(l);if(!(h>=0))throw new Error(`invalid digits: ${l}`);if(h>15)return Gh;const o=10**h;return function(d){this._+=d[0];for(let x=1,C=d.length;x<C;++x)this._+=Math.round(arguments[x]*o)/o+d[x]}}(h)}moveTo(h,o){this._append`M${this._x0=this._x1=+h},${this._y0=this._y1=+o}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(h,o){this._append`L${this._x1=+h},${this._y1=+o}`}quadraticCurveTo(h,o,d,x){this._append`Q${+h},${+o},${this._x1=+d},${this._y1=+x}`}bezierCurveTo(h,o,d,x,C,G){this._append`C${+h},${+o},${+d},${+x},${this._x1=+C},${this._y1=+G}`}arcTo(h,o,d,x,C){if(h=+h,o=+o,d=+d,x=+x,(C=+C)<0)throw new Error(`negative radius: ${C}`);let G=this._x1,le=this._y1,Oe=d-h,ke=x-o,Xe=G-h,It=le-o,Lt=Xe*Xe+It*It;if(null===this._x1)this._append`M${this._x1=h},${this._y1=o}`;else if(Lt>Ff)if(Math.abs(It*Oe-ke*Xe)>Ff&&C){let ln=d-G,li=x-le,Ki=Oe*Oe+ke*ke,Sn=ln*ln+li*li,Ei=Math.sqrt(Ki),Ar=Math.sqrt(Lt),Vi=C*Math.tan((wf-Math.acos((Ki+Lt-Sn)/(2*Ei*Ar)))/2),Er=Vi/Ar,Dr=Vi/Ei;Math.abs(Er-1)>Ff&&this._append`L${h+Er*Xe},${o+Er*It}`,this._append`A${C},${C},0,0,${+(It*ln>Xe*li)},${this._x1=h+Dr*Oe},${this._y1=o+Dr*ke}`}else this._append`L${this._x1=h},${this._y1=o}`}arc(h,o,d,x,C,G){if(h=+h,o=+o,G=!!G,(d=+d)<0)throw new Error(`negative radius: ${d}`);let le=d*Math.cos(x),Oe=d*Math.sin(x),ke=h+le,Xe=o+Oe,It=1^G,Lt=G?x-C:C-x;null===this._x1?this._append`M${ke},${Xe}`:(Math.abs(this._x1-ke)>Ff||Math.abs(this._y1-Xe)>Ff)&&this._append`L${ke},${Xe}`,d&&(Lt<0&&(Lt=Lt%Jp+Jp),Lt>$m?this._append`A${d},${d},0,1,${It},${h-le},${o-Oe}A${d},${d},0,1,${It},${this._x1=ke},${this._y1=Xe}`:Lt>Ff&&this._append`A${d},${d},0,${+(Lt>=wf)},${It},${this._x1=h+d*Math.cos(C)},${this._y1=o+d*Math.sin(C)}`)}rect(h,o,d,x){this._append`M${this._x0=this._x1=+h},${this._y0=this._y1=+o}h${d=+d}v${+x}h${-d}Z`}toString(){return this._}}function Vl(l){return l.innerRadius}function jg(l){return l.outerRadius}function C0(l){return l.startAngle}function k0(l){return l.endAngle}function w0(l){return l&&l.padAngle}function qm(l,h,o,d,x,C,G){var le=l-o,Oe=h-d,ke=(G?C:-C)/ca(le*le+Oe*Oe),Xe=ke*Oe,It=-ke*le,Lt=l+Xe,ln=h+It,li=o+Xe,Ki=d+It,Sn=(Lt+li)/2,Ei=(ln+Ki)/2,Ar=li-Lt,Vi=Ki-ln,Er=Ar*Ar+Vi*Vi,Dr=x-C,wr=Lt*Ki-li*ln,To=(Vi<0?-1:1)*ca(dg(0,Dr*Dr*Er-wr*wr)),So=(wr*Vi-Ar*To)/Er,zl=(-wr*Ar-Vi*To)/Er,Eo=(wr*Vi+Ar*To)/Er,Rr=(-wr*Ar+Vi*To)/Er,ds=So-Sn,yr=zl-Ei,ra=Eo-Sn,Ic=Rr-Ei;return ds*ds+yr*yr>ra*ra+Ic*Ic&&(So=Eo,zl=Rr),{cx:So,cy:zl,x01:-Xe,y01:-It,x11:So*(x/Dr-1),y11:zl*(x/Dr-1)}}function fg(){var l=Vl,h=jg,o=zc(0),d=null,x=C0,C=k0,G=w0,le=null,Oe=function El(l){let h=3;
129return l.digits=function(o){if(!arguments.length)return h;if(null==o)h=null;else{const d=Math.floor(o);if(!(d>=0))throw new RangeError(`invalid digits: ${o}`);h=d}return l},()=>new jd(h)}(ke);function ke(){var Xe,It,Lt=+l.apply(this,arguments),ln=+h.apply(this,arguments),li=x.apply(this,arguments)-xs,Ki=C.apply(this,arguments)-xs,Sn=Wm(Ki-li),Ei=Ki>li;if(le||(le=Xe=Oe()),ln<Lt&&(It=ln,ln=Lt,Lt=It),ln>Id)if(Sn>Rp-Id)le.moveTo(ln*hl(li),ln*Uc(li)),le.arc(0,0,ln,li,Ki,!Ei),Lt>Id&&(le.moveTo(Lt*hl(Ki),Lt*Uc(Ki)),le.arc(0,0,Lt,Ki,li,Ei));else{var yr,ra,Ar=li,Vi=Ki,Er=li,Dr=Ki,wr=Sn,To=Sn,So=G.apply(this,arguments)/2,zl=So>Id&&(d?+d.apply(this,arguments):ca(Lt*Lt+ln*ln)),Eo=Bh(Wm(ln-Lt)/2,+o.apply(this,arguments)),Rr=Eo,ds=Eo;if(zl>Id){var Ic=Uf(zl/Lt*Uc(So)),Ls=Uf(zl/ln*Uc(So));(wr-=2*Ic)>Id?(Er+=Ic*=Ei?1:-1,Dr-=Ic):(wr=0,Er=Dr=(li+Ki)/2),(To-=2*Ls)>Id?(Ar+=Ls*=Ei?1:-1,Vi-=Ls):(To=0,Ar=Vi=(li+Ki)/2)}var us=ln*hl(Ar),hc=ln*Uc(Ar),qo=Lt*hl(Dr),Ul=Lt*Uc(Dr);if(Eo>Id){var $c,el=ln*hl(Vi),tl=ln*Uc(Vi),pd=Lt*hl(Er),eh=Lt*Uc(Er);if(Sn<ml)if($c=function F0(l,h,o,d,x,C,G,le){var Oe=o-l,ke=d-h,Xe=G-x,It=le-C,Lt=It*Oe-Xe*ke;if(!(Lt*Lt<Id))return[l+(Lt=(Xe*(h-C)-It*(l-x))/Lt)*Oe,h+Lt*ke]}(us,hc,pd,eh,el,tl,qo,Ul)){var th=us-$c[0],qc=hc-$c[1],Bp=el-$c[0],Pr=tl-$c[1],za=1/Uc(function Yc(l){return l>1?0:l<-1?ml:Math.acos(l)}((th*Bp+qc*Pr)/(ca(th*th+qc*qc)*ca(Bp*Bp+Pr*Pr)))/2),ho=ca($c[0]*$c[0]+$c[1]*$c[1]);Rr=Bh(Eo,(Lt-ho)/(za-1)),ds=Bh(Eo,(ln-ho)/(za+1))}else Rr=ds=0}To>Id?ds>Id?(yr=qm(pd,eh,us,hc,ln,ds,Ei),ra=qm(el,tl,qo,Ul,ln,ds,Ei),le.moveTo(yr.cx+yr.x01,yr.cy+yr.y01),ds<Eo?le.arc(yr.cx,yr.cy,ds,Dc(yr.y01,yr.x01),Dc(ra.y01,ra.x01),!Ei):(le.arc(yr.cx,yr.cy,ds,Dc(yr.y01,yr.x01),Dc(yr.y11,yr.x11),!Ei),le.arc(0,0,ln,Dc(yr.cy+yr.y11,yr.cx+yr.x11),Dc(ra.cy+ra.y11,ra.cx+ra.x11),!Ei),le.arc(ra.cx,ra.cy,ds,Dc(ra.y11,ra.x11),Dc(ra.y01,ra.x01),!Ei))):(le.moveTo(us,hc),le.arc(0,0,ln,Ar,Vi,!Ei)):le.moveTo(us,hc),Lt>Id&&wr>Id?Rr>Id?(yr=qm(qo,Ul,el,tl,Lt,-Rr,Ei),ra=qm(us,hc,pd,eh,Lt,-Rr,Ei),le.lineTo(yr.cx+yr.x01,yr.cy+yr.y01),Rr<Eo?le.arc(yr.cx,yr.cy,Rr,Dc(yr.y01,yr.x01),Dc(ra.y01,ra.x01),!Ei):(le.arc(yr.cx,yr.cy,Rr,Dc(yr.y01,yr.x01),Dc(yr.y11,yr.x11),!Ei),le.arc(0,0,Lt,Dc(yr.cy+yr.y11,yr.cx+yr.x11),Dc(ra.cy+ra.y11,ra.cx+ra.x11),Ei),le.arc(ra.cx,ra.cy,Rr,Dc(ra.y11,ra.x11),Dc(ra.y01,ra.x01),!Ei))):le.arc(0,0,Lt,Dr,Er,Ei):le.lineTo(qo,Ul)}else le.moveTo(0,0);if(le.closePath(),Xe)return le=null,Xe+""||null}return ke.centroid=function(){var Xe=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,It=(+x.apply(this,arguments)+ +C.apply(this,arguments))/2-ml/2;return[hl(It)*Xe,Uc(It)*Xe]},ke.innerRadius=function(Xe){return arguments.length?(l="function"==typeof Xe?Xe:zc(+Xe),ke):l},ke.outerRadius=function(Xe){return arguments.length?(h="function"==typeof Xe?Xe:zc(+Xe),ke):h},ke.cornerRadius=function(Xe){return arguments.length?(o="function"==typeof Xe?Xe:zc(+Xe),ke):o},ke.padRadius=function(Xe){return arguments.length?(d=null==Xe?null:"function"==typeof Xe?Xe:zc(+Xe),ke):d},ke.startAngle=function(Xe){return arguments.length?(x="function"==typeof Xe?Xe:zc(+Xe),ke):x},ke.endAngle=function(Xe){return arguments.length?(C="function"==typeof Xe?Xe:zc(+Xe),ke):C},ke.padAngle=function(Xe){return arguments.length?(G="function"==typeof Xe?Xe:zc(+Xe),ke):G},ke.context=function(Xe){return arguments.length?(le=Xe??null,ke):le},ke}function _m(l,h){return h<l?-1:h>l?1:h>=l?0:NaN}function Rg(l){return l}var Wc=bn(76021);const Vh=["caretElm"],xh=l=>({model:l});function S1(l,h){}function T0(l,h){if(1&l&&(E.j41(0,"span"),E.DNE(1,S1,0,0,"ng-template",5),E.k0s()),2&l){const o=E.XpG();E.R7$(),E.Y8G("ngTemplateOutlet",o.template)("ngTemplateOutletContext",E.eq3(2,xh,o.context))}}function S0(l,h){if(1&l&&E.nrm(0,"span",6),2&l){const o=E.XpG();E.Y8G("innerHTML",o.title,E.npT)}}function E0(l,h){if(1&l&&(E.j41(0,"header",4)(1,"span",5),E.EFF(2),E.k0s()()),2&l){const o=E.XpG();E.R7$(2),E.JRh(o.title)}}function Lg(l,h){if(1&l){const o=E.RV6();E.j41(0,"li",6)(1,"ngx-charts-legend-entry",7),E.bIt("select",function(x){E.eBV(o);const C=E.XpG();return E.Njj(C.labelClick.emit(x))})("activate",function(x){E.eBV(o);const C=E.XpG();return E.Njj(C.activate(x))})("deactivate",function(x){E.eBV(o);const C=E.XpG();return E.Njj(C.deactivate(x))}),E.k0s()()}if(2&l){const o=h.$implicit,d=E.XpG();E.R7$(),E.Y8G("label",o.label)("formattedLabel",o.formattedLabel)("color",o.color)("isActive",d.isActive(o))}}const vp=["*"];function Wa(l,h){if(1&l&&E.nrm(0,"ngx-charts-scale-legend",4),2&l){const o=E.XpG();E.Y8G("horizontal",o.legendOptions&&o.legendOptions.position===o.LegendPosition.Below)("valueRange",o.legendOptions.domain)("colors",o.legendOptions.colors)("height",o.view[1])("width",o.legendWidth)}}function Ng(l,h){if(1&l){const o=E.RV6();E.j41(0,"ngx-charts-legend",5),E.bIt("labelClick",function(x){E.eBV(o);const C=E.XpG();return E.Njj(C.legendLabelClick.emit(x))})("labelActivate",function(x){E.eBV(o);const C=E.XpG();return E.Njj(C.legendLabelActivate.emit(x))})("labelDeactivate",function(x){E.eBV(o);const C=E.XpG();return E.Njj(C.legendLabelDeactivate.emit(x))}),E.k0s()}if(2&l){const o=E.XpG();E.Y8G("horizontal",o.legendOptions&&o.legendOptions.position===o.LegendPosition.Below)("data",o.legendOptions.domain)("title",o.legendOptions.title)("colors",o.legendOptions.colors)("height",o.view[1])("width",o.legendWidth)("activeEntries",o.activeEntries)}}const _g=["ngx-charts-svg-radial-gradient",""];function vg(l,h){if(1&l&&(E.qSk(),E.nrm(0,"stop")),2&l){const o=h.$implicit;E.xc7("stop-color",o.color)("stop-opacity",o.opacity),E.BMQ("offset",o.offset+"%")}}const $g=["tooltipTemplate"],Cm=(l,h)=>[l,h],xv=["ngx-charts-pie-label",""],wv=["ngx-charts-pie-arc",""];
129function Fv(l,h){if(1&l&&(E.qSk(),E.j41(0,"defs"),E.nrm(1,"g",3),E.k0s()),2&l){const o=E.XpG();E.R7$(),E.Y8G("color",o.fill)("name",o.radialGradientId)("startOpacity",o.startOpacity)}}const Av=["ngx-charts-pie-series",""];function Tv(l,h){if(1&l&&(E.qSk(),E.nrm(0,"g",3)),2&l){const o=E.XpG().$implicit,d=E.XpG();E.Y8G("data",o)("radius",d.outerRadius)("color",d.color(o))("label",d.labelText(o))("labelTrim",d.trimLabels)("labelTrimSize",d.maxLabelLength)("max",d.max)("value",o.value)("explodeSlices",d.explodeSlices)("animations",d.animations)}}function Sv(l,h){if(1&l){const o=E.RV6();E.qSk(),E.j41(0,"g"),E.DNE(1,Tv,1,10,"g",1),E.j41(2,"g",2),E.bIt("select",function(x){E.eBV(o);const C=E.XpG();return E.Njj(C.onClick(x))})("activate",function(x){E.eBV(o);const C=E.XpG();return E.Njj(C.activate.emit(x))})("deactivate",function(x){E.eBV(o);const C=E.XpG();return E.Njj(C.deactivate.emit(x))})("dblclick",function(x){E.eBV(o);const C=E.XpG();return E.Njj(C.dblclick.emit(x))}),E.k0s()()}if(2&l){const o=h.$implicit,d=E.XpG();E.R7$(),E.Y8G("ngIf",d.labelVisible(o)),E.R7$(),E.Y8G("startAngle",o.startAngle)("endAngle",o.endAngle)("innerRadius",d.innerRadius)("outerRadius",d.outerRadius)("fill",d.color(o))("value",o.data.value)("gradient",d.gradient)("data",o.data)("max",d.max)("explodeSlices",d.explodeSlices)("isActive",d.isActive(o.data))("animate",d.animations)("tooltipDisabled",d.tooltipDisabled)("tooltipPlacement",d.placementTypes.Top)("tooltipType",d.styleTypes.tooltip)("tooltipTitle",d.getTooltipTitle(o))("tooltipTemplate",d.tooltipTemplate)("tooltipContext",o.data)}}function Eu(l,h,o){o=o||{};let d,x,C,G=null,le=0;function Oe(){le=!1===o.leading?0:+new Date,G=null,C=l.apply(d,x)}return function(){const ke=+new Date;!le&&!1===o.leading&&(le=ke);const Xe=h-(ke-le);return d=this,x=arguments,Xe<=0?(clearTimeout(G),G=null,le=ke,C=l.apply(d,x)):!G&&!1!==o.trailing&&(G=setTimeout(Oe,Xe)),C}}function Gv(l,h){return function(d,x,C){return{configurable:!0,enumerable:C.enumerable,get:function(){return Object.defineProperty(this,x,{configurable:!0,enumerable:C.enumerable,value:Eu(C.value,l,h)}),this[x]}}}}var po=function(l){return l.Top="top",l.Bottom="bottom",l.Left="left",l.Right="right",l.Center="center",l}(po||{});function P_(l,h,o){return o===po.Top?l.top-7:o===po.Bottom?l.top+l.height-h.height+7:o===po.Center?l.top+l.height/2-h.height/2:void 0}function M_(l,h,o){return o===po.Left?l.left-7:o===po.Right?l.left+l.width-h.width+7:o===po.Center?l.left+l.width/2-h.width/2:void 0}class Wf{static calculateVerticalAlignment(h,o,d){let x=P_(h,o,d);return x+o.height>window.innerHeight&&(x=window.innerHeight-o.height),x}static calculateVerticalCaret(h,o,d,x){let C;x===po.Top&&(C=h.height/2-d.height/2+7),x===po.Bottom&&(C=o.height-h.height/2-d.height/2-7),x===po.Center&&(C=o.height/2-d.height/2);const G=P_(h,o,x);return G+o.height>window.innerHeight&&(C+=G+o.height-window.innerHeight),C}static calculateHorizontalAlignment(h,o,d){let x=M_(h,o,d);return x+o.width>window.innerWidth&&(x=window.innerWidth-o.width),x}static calculateHorizontalCaret(h,o,d,x){let C;x===po.Left&&(C=h.width/2-d.width/2+7),x===po.Right&&(C=o.width-h.width/2-d.width/2-7),x===po.Center&&(C=o.width/2-d.width/2);const G=M_(h,o,x);return G+o.width>window.innerWidth&&(C+=G+o.width-window.innerWidth),C}static shouldFlip(h,o,d,x){let C=!1;return d===po.Right&&h.left+h.width+o.width+x>window.innerWidth&&(C=!0),d===po.Left&&h.left-o.width-x<0&&(C=!0),d===po.Top&&h.top-o.height-x<0&&(C=!0),d===po.Bottom&&h.top+h.height+o.height+x>window.innerHeight&&(C=!0),C}static positionCaret(h,o,d,x,C){let G=0,le=0;return h===po.Right?(le=-7,G=Wf.calculateVerticalCaret(d,o,x,C)):h===po.Left?(le=o.width,G=Wf.calculateVerticalCaret(d,o,x,C)):h===po.Top?(G=o.height,le=Wf.calculateHorizontalCaret(d,o,x,C)):h===po.Bottom&&(G=-7,le=Wf.calculateHorizontalCaret(d,o,x,C)),{top:G,left:le}}static positionContent(h,o,d,x,C){let G=0,le=0;return h===po.Right?(le=d.left+d.width+x,G=Wf.calculateVerticalAlignment(d,o,C)):h===po.Left?(le=d.left-o.width-x,G=Wf.calculateVerticalAlignment(d,o,C)):h===po.Top?(G=d.top-o.height-x,le=Wf.calculateHorizontalAlignment(d,o,C)):h===po.Bottom&&(G=d.top+d.height+x,le=Wf.calculateHorizontalAlignment(d,o,C)),{top:G,left:le}}static determinePlacement(h,o,d,x){if(Wf.shouldFlip(d,o,h,x)){if(h===po.Right)return po.Left;if(h===po.Left)return po.Right;if(h===po.Top)return po.Bottom;if(h===po.Bottom)return po.Top}return h}}let s1=(()=>{class l{constructor(o,d,x){this.element=o,this.renderer=d,this.platformId=x}
129get cssClasses(){let o="ngx-charts-tooltip-content";return o+=` position-${this.placement}`,o+=` type-${this.type}`,o+=` ${this.cssClass}`,o}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,Ie.UE)(this.platformId))return;const o=this.element.nativeElement,d=this.host.nativeElement.getBoundingClientRect();if(!d.height&&!d.width)return;const x=o.getBoundingClientRect();this.checkFlip(d,x),this.positionContent(o,d,x),this.showCaret&&this.positionCaret(d,x),setTimeout(()=>this.renderer.addClass(o,"animate"),1)}positionContent(o,d,x){const{top:C,left:G}=Wf.positionContent(this.placement,x,d,this.spacing,this.alignment);this.renderer.setStyle(o,"top",`${C}px`),this.renderer.setStyle(o,"left",`${G}px`)}positionCaret(o,d){const x=this.caretElm.nativeElement,C=x.getBoundingClientRect(),{top:G,left:le}=Wf.positionCaret(this.placement,d,o,C,this.alignment);this.renderer.setStyle(x,"top",`${G}px`),this.renderer.setStyle(x,"left",`${le}px`)}checkFlip(o,d){this.placement=Wf.determinePlacement(this.placement,d,o,this.spacing)}onWindowResize(){this.position()}}return l.\u0275fac=function(o){return new(o||l)(E.rXU(E.aKT),E.rXU(E.sFG),E.rXU(E.Agw))},l.\u0275cmp=E.VBU({type:l,selectors:[["ngx-tooltip-content"]],viewQuery:function(o,d){if(1&o&&E.GBs(Vh,5),2&o){let x;E.mGM(x=E.lsd())&&(d.caretElm=x.first)}},hostVars:2,hostBindings:function(o,d){1&o&&E.bIt("resize",function(){return d.onWindowResize()}
129,!1,E.tSv),2&o&&E.HbH(d.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[["caretElm",""],[3,"hidden"],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(o,d){1&o&&(E.j41(0,"div"),E.nrm(1,"span",1,0),E.j41(3,"div",2),E.DNE(4,T0,2,4,"span",3)(5,S0,1,1,"span",4),E.k0s()()),2&o&&(E.R7$(),E.ZvI("tooltip-caret position-",d.placement,""),E.Y8G("hidden",!d.showCaret),E.R7$(3),E.Y8G("ngIf",!d.title),E.R7$(),E.Y8G("ngIf",d.title))},dependencies:[Ie.bT,Ie.T3],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}),function tn(l,h,o,d){var G,x=arguments.length,C=x<3?h:null===d?d=Object.getOwnPropertyDescriptor(h,o):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)C=Reflect.decorate(l,h,o,d);else for(var le=l.length-1;le>=0;le--)(G=l[le])&&(C=(x<3?G(C):x>3?G(h,o,C):G(h,o))||C);return x>3&&C&&Object.defineProperty(h,o,C),C}([Gv(100)],l.prototype,"onWindowResize",null),l})();class Vv{constructor(h){this.injectionService=h,this.defaults={},this.components=new Map}getByType(h=this.type){return this.components.get(h)}create(h){return this.createByType(this.type,h)}createByType(h,o){o=this.assignDefaults(o);const d=this.injectComponent(h,o);return this.register(h,d),d}destroy(h){const o=this.components.get(h.componentType);if(o&&o.length){const d=o.indexOf(h);d>-1&&(o[d].destroy(),o.splice(d,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(h){const o=this.components.get(h);if(o&&o.length){let d=o.length-1;for(;d>=0;)this.destroy(o[d--])}}injectComponent(h,o){return this.injectionService.appendComponent(h,o)}assignDefaults(h){const o={...this.defaults.inputs},d={...this.defaults.outputs};
129return!h.inputs&&!h.outputs&&(h={inputs:h}),o&&(h.inputs={...o,...h.inputs}),d&&(h.outputs={...d,...h.outputs}),h}register(h,o){this.components.has(h)||this.components.set(h,[]),this.components.get(h).push(o)}}let O_=(()=>{class l{constructor(o,d,x){this.applicationRef=o,this.componentFactoryResolver=d,this.injector=x}static setGlobalRootViewContainer(o){l.globalRootViewContainer=o}getRootViewContainer(){if(this._container)return this._container;if(l.globalRootViewContainer)return l.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(o){this._container=o}getComponentRootNode(o){return function o0(l){return l.element}(o)?o.element.nativeElement:o.hostView&&o.hostView.rootNodes.length>0?o.hostView.rootNodes[0]:o.location.nativeElement}getRootViewContainerNode(o){return this.getComponentRootNode(o)}projectComponentBindings(o,d){if(d){if(void 0!==d.inputs){const x=Object.getOwnPropertyNames(d.inputs);for(const C of x)o.instance[C]=d.inputs[C]}if(void 0!==d.outputs){const x=Object.getOwnPropertyNames(d.outputs);for(const C of x)o.instance[C]=d.outputs[C]}}return o}appendComponent(o,d={},x){x||(x=this.getRootViewContainer());const C=this.getComponentRootNode(x),G=new hr.aI(C,this.componentFactoryResolver,this.applicationRef,this.injector),le=new hr.A8(o),Oe=G.attach(le);return this.projectComponentBindings(Oe,d),Oe}}return l.globalRootViewContainer=null,l.\u0275fac=function(o){return new(o||l)(E.KVO(E.o8S),E.KVO(E.OM3),E.KVO(E.zZn))},l.\u0275prov=E.jDH({token:l,factory:l.\u0275fac}),l})(),Qm=(()=>{class l extends Vv{constructor(o){super(o),this.type=s1}}return l.\u0275fac=function(o){return new(o||l)(E.KVO(O_))},l.\u0275prov=E.jDH({token:l,factory:l.\u0275fac}),l})();var wm=function(l){return l.Right="right",l.Below="below",l}(wm||{}),wg=function(l){return l.ScaleLegend="scaleLegend",l.Legend="legend",l}(wg||{}),Ta=function(l){return l.Time="time",l.Linear="linear",l.Ordinal="ordinal",l.Quantile="quantile",l}(Ta||{});let l1=(()=>{class l{constructor(){this.horizontal=!1}ngOnChanges(o){const d=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${d})`}gradientString(o,d){d.push(1);const x=[];return o.reverse().forEach((C,G)=>{x.push(`${C} ${Math.round(100*d[G])}%`)}),x.join(", ")}}return l.\u0275fac=function(o){return new(o||l)},l.\u0275cmp=E.VBU({type:l,selectors:[["ngx-charts-scale-legend"]],inputs:{valueRange:"valueRange",colors:"colors",height:"height",width:"width",horizontal:"horizontal"},features:[E.OA$],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(o,d){1&o&&(E.j41(0,"div",0)(1,"div",1)(2,"span"),E.EFF(3),E.k0s()(),E.nrm(4,"div",2),E.j41(5,"div",1)(6,"span"),E.EFF(7),E.k0s()()()),2&o&&(E.xc7("height",d.horizontal?void 0:d.height,"px")("width",d.width,"px"),E.AVh("horizontal-legend",d.horizontal),E.R7$(3),E.JRh(d.valueRange[1].toLocaleString()),E.R7$(),E.xc7("background",d.gradient),E.R7$(3),E.JRh(d.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{text-align:center;display:flex;flex-direction:column}.chart-legend .scale-legend-wrap{display:inline-block;flex:1;width:30px;border-radius:5px;margin:0 auto}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{width:auto;height:30px;margin:0 16px}\n"],encapsulation:2,changeDetection:0}),l})();function Fg(l){return l instanceof Date?l.toLocaleDateString():l.toLocaleString()}let D_=(()=>{class l{constructor(){this.isActive=!1,this.select=new E.bkB,this.activate=new E.bkB,this.deactivate=new E.bkB,this.toggle=new E.bkB}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}
129onMouseLeave(){this.deactivate.emit({name:this.label})}}return l.\u0275fac=function(o){return new(o||l)},l.\u0275cmp=E.VBU({type:l,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(o,d){1&o&&E.bIt("mouseenter",function(){return d.onMouseEnter()})("mouseleave",function(){return d.onMouseLeave()})},inputs:{color:"color",label:"label",formattedLabel:"formattedLabel",isActive:"isActive"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"click","title"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(o,d){1&o&&(E.j41(0,"span",0),E.bIt("click",function(){return d.select.emit(d.formattedLabel)}),E.j41(1,"span",1),E.bIt("click",function(){return d.toggle.emit(d.formattedLabel)}),E.k0s(),E.j41(2,"span",2),E.EFF(3),E.k0s()()),2&o&&(E.AVh("active",d.isActive),E.Y8G("title",d.formattedLabel),E.R7$(),E.xc7("background-color",d.color),E.R7$(2),E.SpI(" ",d.trimmedLabel," "))},encapsulation:2,changeDetection:0}),l})(),l0=(()=>{class l{constructor(o){this.cd=o,this.horizontal=!1,this.labelClick=new E.bkB,this.labelActivate=new E.bkB,this.labelDeactivate=new E.bkB,this.legendEntries=[]}ngOnChanges(o){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const o=[];for(const d of this.data){const x=Fg(d);-1===o.findIndex(G=>G.label===x)&&o.push({label:d,formattedLabel:x,color:this.colors.getColor(d)})}return o}isActive(o){return!!this.activeEntries&&void 0!==this.activeEntries.find(x=>o.label===x.name)}activate(o){this.labelActivate.emit(o)}deactivate(o){this.labelDeactivate.emit(o)}trackBy(o,d){return d.label}}return l.\u0275fac=function(o){return new(o||l)(E.rXU(E.gRc))},l.\u0275cmp=E.VBU({type:l,selectors:[["ngx-charts-legend"]],inputs:{data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries",horizontal:"horizontal"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[E.OA$],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"select","activate","deactivate","label","formattedLabel","color","isActive"]],template:function(o,d){1&o&&(E.j41(0,"div"),E.DNE(1,E0,3,1,"header",0),E.j41(2,"div",1)(3,"ul",2),E.DNE(4,Lg,2,4,"li",3),E.k0s()()()),2&o&&(E.xc7("width",d.width,"px"),E.R7$(),E.Y8G("ngIf",(null==d.title?null:d.title.length)>0),E.R7$(2),E.xc7("max-height",d.height-45,"px"),E.AVh("horizontal-legend",d.horizontal),E.R7$(),E.Y8G("ngForOf",d.legendEntries)("ngForTrackBy",d.trackBy))},dependencies:[D_,Ie.bT,Ie.Sq],styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{white-space:nowrap;overflow:hidden;margin-left:10px;margin-bottom:5px;font-size:14px;font-weight:700}.chart-legend ul,.chart-legend li{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background:rgba(0,0,0,.05)}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{display:inline-block;height:15px;width:15px;margin-right:5px;color:#5b646b;border-radius:3px}.chart-legend .legend-label-text{display:inline-block;vertical-align:top;line-height:15px;font-size:12px;width:calc(100% - 20px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chart-legend .legend-title-text{vertical-align:bottom;display:inline-block;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),l})(),I_=(()=>{class l{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new E.bkB,this.legendLabelActivate=new E.bkB,this.legendLabelDeactivate=new E.bkB,this.LegendPosition=wm,this.LegendType=wg}ngOnChanges(o){this.update()}update(){let o=0;
129this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===wm.Right)&&(o=this.legendType===wg.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-o)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==wm.Right?this.chartWidth:Math.floor(this.view[0]*o/12)}getLegendType(){return this.legendOptions.scaleType===Ta.Linear?wg.ScaleLegend:wg.Legend}}return l.\u0275fac=function(o){return new(o||l)},l.\u0275cmp=E.VBU({type:l,selectors:[["ngx-charts-chart"]],inputs:{view:"view",showLegend:"showLegend",legendOptions:"legendOptions",legendType:"legendType",activeEntries:"activeEntries",animations:"animations"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[E.Jv_([Qm]),E.OA$],ngContentSelectors:vp,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"labelClick","labelActivate","labelDeactivate","horizontal","data","title","colors","height","width","activeEntries"]],template:function(o,d){1&o&&(E.NAR(),E.j41(0,"div",0),E.qSk(),E.j41(1,"svg",1),E.SdG(2),E.k0s(),E.DNE(3,Wa,1,5,"ngx-charts-scale-legend",2)(4,Ng,1,7,"ngx-charts-legend",3),E.k0s()),2&o&&(E.xc7("width",d.view[0],"px")("height",d.view[1],"px"),E.R7$(),E.BMQ("width",d.chartWidth)("height",d.view[1]),E.R7$(2),E.Y8G("ngIf",d.showLegend&&d.legendType===d.LegendType.ScaleLegend),E.R7$(),E.Y8G("ngIf",d.showLegend&&d.legendType===d.LegendType.Legend))},dependencies:[l1,l0,Ie.bT],encapsulation:2,changeDetection:0}),l})(),c0=(()=>{class l{constructor(o,d){this.element=o,this.zone=d,this.visible=new E.bkB,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const o=()=>{if(!this.element)return;const{offsetHeight:d,offsetWidth:x}=this.element.nativeElement;d&&x?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>o(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>o())})}}return l.\u0275fac=function(o){return new(o||l)(E.rXU(E.aKT),E.rXU(E.SKi))},l.\u0275dir=E.FsC({type:l,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),l})();function Fm(l){return"[object Date]"===toString.call(l)}let u0=(()=>{class l{constructor(o,d,x,C){this.chartElement=o,this.zone=d,this.cd=x,this.platformId=C,this.scheme="cool",this.schemeType=Ta.Ordinal,this.animations=!0,this.select=new E.bkB}ngOnInit(){(0,Ie.Vy)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new c0(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(o){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const o=this.getContainerDims();o&&(this.width=o.width,this.height=o.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let o,d;const x=this.chartElement.nativeElement;if((0,Ie.UE)(this.platformId)&&null!==x.parentNode){const C=x.parentNode.getBoundingClientRect();o=C.width,d=C.height}return o&&d?{width:o,height:d}:null}formatDates(){for(let o=0;o<this.results.length;o++){const d=this.results[o];if(d.label=d.name,Fm(d.label)&&(d.label=d.label.toLocaleDateString()),d.series)for(let x=0;x<d.series.length;x++){const C=d.series[x];C.label=C.name,Fm(C.label)&&(C.label=C.label.toLocaleDateString())}}}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){if(!(0,Ie.UE)(this.platformId))return;const d=(0,Lr.R)(window,"resize").pipe((0,Nr.B)(200)).subscribe(x=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=d}cloneData(o){const d=[];for(const x of o){const C={};if(void 0!==x.name&&(C.name=x.name),void 0!==x.value&&(C.value=x.value),void 0!==x.series){C.series=[];for(const G of x.series){const le=Object.assign({},G);C.series.push(le)}}void 0!==x.extra&&(C.extra=JSON.parse(JSON.stringify(x.extra))),void 0!==x.source&&(C.source=x.source),void 0!==x.target&&(C.target=x.target),d.push(C)}return d}}return l.\u0275fac=function(o){return new(o||l)(E.rXU(E.aKT),E.rXU(E.SKi),E.rXU(E.gRc),E.rXU(E.Agw))},l.\u0275cmp=E.VBU({type:l,selectors:[["base-chart"]],inputs:{results:"results",view:"view",scheme:"scheme",schemeType:"schemeType",customColors:"customColors",animations:"animations"},outputs:{select:"select"},features:[E.OA$],decls:1,vars:0,template:function(o,d){1&o&&E.nrm(0,"div")},encapsulation:2}),l})();function bh(l,h=16){return"string"!=typeof l?"number"==typeof l?l+"":"":(l=l.trim()).length<=h?l:`${l.slice(0,h)}...`}var c1=function(l){return l.Start="start",l.Middle="middle",l.End="end",l}(c1||{});let j_=(()=>{class l{}return l.\u0275fac=function(o){return new(o||l)},l.\u0275mod=E.$C({type:l}),l.\u0275inj=E.G2t({imports:[[Ie.MD]]}),l})();var Ag=function(l){return l.popover="popover",l.tooltip="tooltip",l}(Ag||{}),Am=function(l){return l[l.all="all"]="all",l[l.focus="focus"]="focus",l[l.mouseover="mouseover"]="mouseover",l}(Am||{});let d1=(()=>{class l{constructor(o,d,x){this.tooltipService=o,this.viewContainerRef
129=d,this.renderer=x,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=po.Top,this.tooltipAlignment=po.Center,this.tooltipType=Ag.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Am.all,this.tooltipImmediateExit=!1,this.show=new E.bkB,this.hide=new E.bkB}get listensForFocus(){return this.tooltipShowEvent===Am.all||this.tooltipShowEvent===Am.focus}get listensForHover(){return this.tooltipShowEvent===Am.all||this.tooltipShowEvent===Am.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(o){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(o))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(o){if(this.component||this.tooltipDisabled)return;const d=o?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?400:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const x=this.createBoundOptions();this.component=this.tooltipService.create(x),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},d)}addHideListeners(o){this.mouseEnterContentEvent=this.renderer.listen(o,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(o,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",d=>{o.contains(d.target)||this.hideTooltip()}))}hideTooltip(o=!1){if(!this.component)return;const d=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),o?d():this.timeout=setTimeout(d,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return l.\u0275fac=function(o){return new(o||l)(E.rXU(Qm),E.rXU(E.c1b),E.rXU(E.sFG))},l.\u0275dir=E.FsC({type:l,selectors:[["","ngx-tooltip",""]],hostBindings:function(o,d){1&o&&E.bIt("focusin",function(){return d.onFocus()})("blur",function(){return d.onBlur()})("mouseenter",function(){return d.onMouseEnter()})("mouseleave",function(C){return d.onMouseLeave(C.target)})("click",function(){return d.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"}}),l})(),R_=(()=>{class l{}return l.\u0275fac=function(o){return new(o||l)},l.\u0275mod=E.$C({type:l}),l.\u0275inj=E.G2t({providers:[O_,Qm],imports:[[Ie.MD]]}),l})();const L_={};function Tg(){let l=("0000"+(Math.random()*Math.pow(36,4)|0).toString(36)).slice(-4);return l=`a${l}`,L_[l]?Tg():(L_[l]=!0,l)}var Np=function(l){return l.Vertical="vertical",l.Horizontal="horizontal",l}(Np||{});let f1,G_=(()=>{class l{constructor(){this.endOpacity=1,this.cx=0,this.cy=0}get stops(){return this.stopsInput||this.stopsDefault}set stops(o){this.stopsInput=o}ngOnChanges(o){this.r="30%",("color"in o||"startOpacity"in o||"endOpacity"in o)&&(this.stopsDefault=[{offset:0,color:this.color,opacity:this.startOpacity},{offset:100,color:this.color,opacity:this.endOpacity}])}}return l.\u0275fac=function(o){return new(o||l)},l.\u0275cmp=E.VBU({type:l,selectors:[["g","ngx-charts-svg-radial-gradient",""]],inputs:{color:"color",name:"name",startOpacity:"startOpacity",endOpacity:"endOpacity",cx:"cx",cy:"cy",stops:"stops"},features:[E.OA$],attrs:_g,decls:2,vars:5,consts:[["gradientUnits","userSpaceOnUse",3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(o,d){1&o&&(E.qSk(),E.j41(0,"radialGradient",0),E.DNE(1,vg,1,5,"stop",1),E.k0s()),2&o&&(E.Y8G("id",d.name),E.BMQ("cx",d.cx)("cy",d.cy)("r",d.r),E.R7$(),E.Y8G("ngForOf",d.stops))},dependencies:[Ie.Sq],encapsulation:2,changeDetection:0}),l})();typeof window<"u"?f1=window:typeof global<"u"&&(f1=global);let $f=(()=>{class l{}return l.\u0275fac=function(o){return new(o||l)},l.\u0275mod=E.$C({type:l}),l.\u0275inj=E.G2t({imports:[[Ie.MD,j_,R_],Ie.MD,j_,R_]}),l})();const Y_=[{name:"vivid",selectable:!0,group:Ta.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:Ta.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:Ta.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:Ta.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:Ta.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:Ta.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:Ta.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:Ta.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:Ta.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:Ta.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:Ta.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:Ta.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:Ta.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:Ta.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:Ta.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class Hv{constructor(h,o,d,x){"string"==typeof h&&(h=Y_.find(C=>C.name===h)),this.colorDomain=h.domain,this.scaleType=o,this.domain=d,this.customColors=x,this.scale=this.generateColorScheme(h,o,this.domain)}generateColorScheme(h,o,d){let x;switch("string"==typeof h&&(h=Y_.find(C=>C.name===h)),o){case Ta.Quantile:x=hm().range(h.domain).domain(d);break;case Ta.Ordinal:x=_p().range(h.domain).domain(d);break;case Ta.Linear:{const C=[...h.domain];1===C.length&&(C.push(C[0]),this.colorDomain=C);const G=pm(0,1,1/C.length);x=mh().range(C).domain(G)}}return x}getColor(h){if(null==h)throw new Error("Value can not be null");if(this.scaleType===Ta.Linear){const o=mh().domain(this.domain).range([0,1]);return this.scale(o(h))}{if("function"==typeof this.customColors)return this.customColors(h);const o=h.toString();let d;return this.customColors&&this.customColors.length>0&&(d=this.customColors.find(x=>x.name.toLowerCase()===o.toLowerCase())),d?d.value:this.scale(h)}}getLinearGradientStops(h,o){void 0===o&&(o=this.domain[0]);const d=mh().domain(this.domain).range([0,1]),x=vh().domain(this.colorDomain).range([0,1]),C=this.getColor(h),G=d(o),le=this.getColor(o),Oe=d(h);let ke=1,Xe=G;const It=[];for(It.push({color:le,offset:G,originalOffset:G,opacity:1});Xe<Oe&&ke<this.colorDomain.length;){const Lt=this.colorDomain[ke],ln=x(Lt);if(ln<=G)ke++;else{if(ln.toFixed(4)>=(Oe-x.bandwidth()).toFixed(4))break;It.push({color:Lt,offset:ln,opacity:1}),Xe=ln,ke++}}if(It[It.length-1].offset<100&&It.push({color:C,offset:Oe,opacity:1}),Oe===G)It[0].offset=0,It[1].offset=100;else if(100!==It[It.length-1].offset)for(const Lt of It)Lt.offset=(Lt.offset-G)/(Oe-G)*100;return It}}let Jv=(()=>{class l{}return l.\u0275fac=function(o){return new(o||l)},l.\u0275mod=E.$C({type:l}),l.\u0275inj=E.G2t({imports:[[$f]]}),l})(),W_=(()=>{class l{}return l.\u0275fac=function(o){return new(o||l)},l.\u0275mod=E.$C({type:l}),l.\u0275inj=E.G2t({imports:[[$f]]}),l})();Wc();let t2=(()=>{class l{}return l.\u0275fac=function(o){return new(o||l)},l.\u0275mod=E.$C({type:l}),l.\u0275inj=E.G2t({imports:[[$f]]}),l})(),n2=(()=>{class l{}return l.\u0275fac=function(o){return new(o||l)},l.\u0275mod=E.$C({type:l}),l.\u0275inj=E.G2t({imports:[[$f]]}),l})(),r2=(()=>{class l{}return l.\u0275fac=function(o){return new(o||l)},l.\u0275mod=E.$C({type:l}),l.\u0275inj=E.G2t({imports:[[$f]]}),l})(),$_=(()=>{class l{}return l.\u0275fac=function(o){return new(o||l)},l.\u0275mod=E.$C({type:l}),l.\u0275inj=E.G2t({imports:[[$f]]}),l})(),a2=(()=>{class l{constructor(o){this.platformId=o,this.animations=!0,this.labelTrim=!0,this.labelTrimSize=10,this.trimLabel=bh}ngOnChanges(o){this.setTransforms(),this.update()}setTransforms(){if((0,Ie.Vy)(this.platformId))this.styleTransform=`translate3d(${this.textX}px,${this.textY}px, 0)`,this.attrTransform=`translate(${this.textX},${this.textY})`,this.textTransition=this.animations?"transform 0.75s":null;else{const o=/(edge|msie|trident)/i.test(navigator.userAgent);this.styleTransform=o?null:`translate3d(${this.textX}px,${this.textY}px, 0)`,this.attrTransform=o?`translate(${this.textX},${this.textY}
129)`:null,this.textTransition=o||!this.animations?null:"transform 0.75s"}}update(){let o=this.radius;this.explodeSlices&&(o=this.radius*this.value/this.max);const x=fg().innerRadius(o).outerRadius(o).centroid(this.data);let C=this.data.pos[1]/x[1];(0===this.data.pos[1]||0===x[1])&&(C=1),this.line=`M${x}L${[C*x[0],C*x[1]]}L${this.data.pos}`}get textX(){return this.data.pos[0]}get textY(){return this.data.pos[1]}textAnchor(){return this.midAngle(this.data)<Math.PI?c1.Start:c1.End}midAngle(o){return o.startAngle+(o.endAngle-o.startAngle)/2}}return l.\u0275fac=function(o){return new(o||l)(E.rXU(E.Agw))},l.\u0275cmp=E.VBU({type:l,selectors:[["g","ngx-charts-pie-label",""]],inputs:{data:"data",radius:"radius",label:"label",color:"color",max:"max",value:"value",explodeSlices:"explodeSlices",animations:"animations",labelTrim:"labelTrim",labelTrimSize:"labelTrimSize"},features:[E.OA$],attrs:xv,decls:6,vars:17,consts:[["dy",".35em",1,"pie-label"],["fill","none",1,"pie-label-line","line"]],template:function(o,d){1&o&&(E.j41(0,"title"),E.EFF(1),E.k0s(),E.qSk(),E.j41(2,"g")(3,"text",0),E.EFF(4),E.k0s()(),E.nrm(5,"path",1)),2&o&&(E.R7$(),E.JRh(d.label),E.R7$(),E.xc7("transform",d.styleTransform)("transition",d.textTransition),E.BMQ("transform",d.attrTransform),E.R7$(),E.xc7("text-anchor",d.textAnchor())("shape-rendering","crispEdges"),E.AVh("animation",d.animations),E.R7$(),E.SpI(" ",d.labelTrim?d.trimLabel(d.label,d.labelTrimSize):d.label," "),E.R7$(),E.AVh("animation",d.animations),E.BMQ("d",d.line)("stroke",d.color))},encapsulation:2,changeDetection:0}),l})();Math;let s2=(()=>{class l{constructor(o){this.startAngle=0,this.endAngle=2*Math.PI,this.cornerRadius=0,this.explodeSlices=!1,this.gradient=!1,this.animate=!0,this.pointerEvents=!0,this.isActive=!1,this.select=new E.bkB,this.activate=new E.bkB,this.deactivate=new E.bkB,this.dblclick=new E.bkB,this.barOrientation=Np,this.initialized=!1,this.element=o.nativeElement}ngOnChanges(o){this.update()}getGradient(){return this.gradient?this.gradientFill:this.fill}getPointerEvents(){return this.pointerEvents?"auto":"none"}update(){const o=this.calculateArc();this.startOpacity=.5,this.radialGradientId="linearGrad"+Tg().toString(),this.gradientFill=`url(#${this.radialGradientId})`,this.animate?this.initialized?this.updateAnimation():(this.loadAnimation(),this.initialized=!0):this.path=o.startAngle(this.startAngle).endAngle(this.endAngle)()}calculateArc(){let o=this.outerRadius;return this.explodeSlices&&0===this.innerRadius&&(o=this.outerRadius*this.value/this.max),fg().innerRadius(this.innerRadius).outerRadius(o).cornerRadius(this.cornerRadius)}loadAnimation(){const o=Ka(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),d=this.calculateArc();o.transition().attrTween("d",function(x){this._current=this._current||x;const C=Object.assign({},x);C.endAngle=C.startAngle;const G=bl(C,C);return this._current=G(0),function(le){return d(G(le))}}).transition().duration(750).attrTween("d",function(x){this._current=this._current||x;const C=bl(this._current,x);return this._current=C(0),function(G){return d(C(G))}})}updateAnimation(){const o=Ka(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),d=this.calculateArc();o.transition().duration(750).attrTween("d",function(x){this._current=this._current||x;const C=bl(this._current,x);return this._current=C(0),function(G){return d(C(G))}})}onClick(){clearTimeout(this._timeout),this._timeout=setTimeout(()=>this.select.emit(this.data),200)}onDblClick(o){o.preventDefault(),o.stopPropagation(),clearTimeout(this._timeout),this.dblclick.emit({data:this.data,nativeEvent:o})}}return l.\u0275fac=function(o){return new(o||l)(E.rXU(E.aKT))},l.\u0275cmp=E.VBU({type:l,selectors:[["g","ngx-charts-pie-arc",""]],inputs:{fill:"fill",startAngle:"startAngle",endAngle:"endAngle",innerRadius:"innerRadius",outerRadius:"outerRadius",cornerRadius:"cornerRadius",value:"value",max:"max",data:"data",explodeSlices:"explodeSlices",gradient:"gradient",animate:"animate",pointerEvents:"pointerEvents",isActive:"isActive"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dblclick:"dblclick"},features:[E.OA$],attrs:wv,decls:3,vars:7,consts:[[1,"arc-group"],[4,"ngIf"],[1,"arc",3,"click","dblclick","mouseenter","mouseleave"],["ngx-charts-svg-radial-gradient","",3,"color","name","startOpacity"]],template:function(o,d){1&o&&(E.qSk(),E.j41(0,"g",0),E.DNE(1,Fv,2,3,"defs",1),E.j41(2,"path",2),E.bIt("click",function(){return d.onClick()})("dblclick",function(C){return d.onDblClick(C)})("mouseenter",function(){return d.activate.emit(d.data)})("mouseleave",function(){return d.deactivate.emit(d.data)}),E.k0s()()),2&o&&(E.R7$(),E.Y8G("ngIf",d.gradient),E.R7$(),E.xc7("pointer-events",d.getPointerEvents()),E.AVh("active",d.isActive),E.BMQ("d",d.path)("fill",d.getGradient()))},dependencies:[G_,Ie.bT],encapsulation:2,changeDetection:0}),l})(),l2=(()=>{class l{constructor(){this.series=[],this.innerRadius=60,this.outerRadius=80,this.trimLabels=!0,this.maxLabelLength=10,this.tooltipDisabled=!1,this.animations=!0,this.select=new E.bkB,this.activate=new E.bkB,this.deactivate=new E.bkB,this.dblclick=new E.bkB,this.placementTypes=po,this.styleTypes=Ag}ngOnChanges(o){this.update()}update(){const d=function pg(){var l=Rg,h=_m,o=null,d=zc(0),x=zc(Rp),C=zc(0);function G(le){var Oe,Xe,It,Ei,Er,ke=(le=function gm(l){return"object"==typeof l&&"length"in l?l:Array.from(l)}(le)).length,Lt=0,ln=new Array(ke),li=new Array(ke),Ki=+d.apply(this,arguments),Sn=Math.min(Rp,Math.max(-Rp,x.apply(this,arguments)-Ki)),Ar=Math.min(Math.abs(Sn)/ke,C.apply(this,arguments)),Vi=Ar*(Sn<0?-1:1);for(Oe=0;Oe<ke;++Oe)(Er=li[ln[Oe]=Oe]=+l(le[Oe],Oe,le))>0&&(Lt+=Er);for(null!=h?ln.sort(function(Dr,wr){return h(li[Dr],li[wr])}):null!=o&&ln.sort(function(Dr,wr){return o(le[Dr],le[wr])}),Oe=0,It=Lt?(Sn-ke*Vi)/Lt:0;Oe<ke;++Oe,Ki=Ei)li[Xe=ln[Oe]]={data:le[Xe],index:Oe,value:Er=li[Xe],startAngle:Ki,endAngle:Ei=Ki+(Er>0?Er*It:0)+Vi,padAngle:Ar};return li}return G.value=function(le){return arguments.length?(l="function"==typeof le?le:zc(+le),G):l},G.sortValues=function(le){return arguments.length?(h=le,o=null,G):h},G.sort=function(le){return arguments.length?(o=le,h=null,G):o},G.startAngle=function(le){return arguments.length?(d="function"==typeof le?le:zc(+le),G):d},G.endAngle=function(le){return arguments.length?(x="function"==typeof le?le:zc(+le),G):x},G.padAngle=function(le){return arguments.length?(C="function"==typeof le?le:zc(+le),G):C},G}().value(x=>x.value).sort(null)(this.series);this.max=function vm(l,h){let o;if(void 0===h)for(const d of l)null!=d&&(o<d||void 0===o&&d>=d)&&(o=d);else{let d=-1;for(let x of l)null!=(x=h(x,++d,l))&&(o<x||void 0===o&&x>=x)&&(o=x)}return o}(d,x=>x.value),this.data=this.calculateLabelPositions(d),this.tooltipText=this.tooltipText||this.defaultTooltipText}midAngle(o){return o.startAngle+(o.endAngle-o.startAngle)/2}outerArc(){return fg().innerRadius(1.5*this.outerRadius).outerRadius(1.5*this.outerRadius)}calculateLabelPositions(o){const C=o;
129C.forEach(G=>{G.pos=this.outerArc().centroid(G),G.pos[0]=1.5*this.outerRadius*(this.midAngle(G)<Math.PI?1:-1)});for(let G=0;G<C.length-1;G++){const le=C[G];if(this.labelVisible(le))for(let Oe=G+1;Oe<C.length;Oe++){const ke=C[Oe];if(this.labelVisible(ke)&&ke.pos[0]*le.pos[0]>0){const Xe=10-Math.abs(ke.pos[1]-le.pos[1]);Xe>0&&(ke.pos[1]+=Math.sign(ke.pos[0])*Xe)}}}return C}labelVisible(o){return this.showLabels&&o.endAngle-o.startAngle>Math.PI/30}getTooltipTitle(o){return this.tooltipTemplate?void 0:this.tooltipText(o)}labelText(o){return this.labelFormatting?this.labelFormatting(o.data.name):this.label(o)}label(o){return Fg(o.data.name)}defaultTooltipText(o){const d=this.label(o),x=Fg(o.data.value);return`\n <span class="tooltip-label">${function s0(l){return l.toLocaleString().replace(/[&'`"<>]/g,h=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[h]))}(d)}</span>\n <span class="tooltip-val">${x}</span>\n `}color(o){return this.colors.getColor(this.label(o))}trackBy(o,d){return d.data.name}onClick(o){this.select.emit(o)}isActive(o){return!!this.activeEntries&&void 0!==this.activeEntries.find(x=>o.name===x.name&&o.series===x.series)}}return l.\u0275fac=function(o){return new(o||l)},l.\u0275cmp=E.VBU({type:l,selectors:[["g","ngx-charts-pie-series",""]],inputs:{colors:"colors",series:"series",dims:"dims",innerRadius:"innerRadius",outerRadius:"outerRadius",explodeSlices:"explodeSlices",showLabels:"showLabels",gradient:"gradient",activeEntries:"activeEntries",labelFormatting:"labelFormatting",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",tooltipText:"tooltipText",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate",animations:"animations"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dblclick:"dblclick"},features:[E.OA$],attrs:Av,decls:1,vars:2,consts:[[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-pie-label","",3,"data","radius","color","label","labelTrim","labelTrimSize","max","value","explodeSlices","animations",4,"ngIf"],["ngx-charts-pie-arc","","ngx-tooltip","",3,"select","activate","deactivate","dblclick","startAngle","endAngle","innerRadius","outerRadius","fill","value","gradient","data","max","explodeSlices","isActive","animate","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext"],["ngx-charts-pie-label","",3,"data","radius","color","label","labelTrim","labelTrimSize","max","value","explodeSlices","animations"]],template:function(o,d){1&o&&E.DNE(0,Sv,3,19,"g",0),2&o&&E.Y8G("ngForOf",d.data)("ngForTrackBy",d.trackBy)},dependencies:[a2,s2,Ie.Sq,Ie.bT,d1],encapsulation:2,changeDetection:0}),l})(),c2=(()=>{class l extends u0{constructor(){super(...arguments),this.labels=!1,this.legend=!1,this.legendTitle="Legend",this.legendPosition=wm.Right,this.explodeSlices=!1,this.doughnut=!1,this.arcWidth=.25,this.activeEntries=[],this.tooltipDisabled=!1,this.trimLabels=!0,this.maxLabelLength=10,this.dblclick=new E.bkB,this.select=new E.bkB,this.activate=new E.bkB,this.deactivate=new E.bkB}update(){super.update(),this.labels&&this.hasNoOptionalMarginsSet()?this.margins=[30,80,30,80]:!this.labels&&this.hasNoOptionalMarginsSet()&&(this.margins=[20,20,20,20]),this.dims=function Xv({width:l,height:h,margins:o,showXAxis:d=!1,showYAxis:x=!1,xAxisHeight:C=0,yAxisWidth:G=0,showXLabel:le=!1,showYLabel:Oe=!1,showLegend:ke=!1,legendType:Xe=Ta.Ordinal,legendPosition:It=wm.Right,columns:Lt=12}){let ln=o[3],li=l,Ki=h-o[0]-o[2];return ke&&It===wm.Right&&(Lt-=Xe===Ta.Ordinal?2:1),li=li*Lt/12,li=li-o[1]-o[3],d&&(Ki-=5,Ki-=C,le&&(Ki-=30)),x&&(li-=5,li-=G,ln+=G,ln+=10,Oe&&(li-=30,ln+=30)),li=Math.max(0,li),Ki=Math.max(0,Ki),{width:Math.floor(li),height:Math.floor(Ki),xOffset:Math.floor(ln)}}({width:this.width,height:this.height,margins:this.margins,showLegend:this.legend,legendPosition:this.legendPosition}),this.formatDates(),this.translation=`translate(${this.margins[3]+this.dims.width/2}, ${this.margins[0]+this.dims.height/2})`,this.outerRadius=Math.min(this.dims.width,this.dims.height),this.outerRadius/=this.labels?3:2,this.innerRadius=0,this.doughnut&&(this.innerRadius=this.outerRadius*(1-this.arcWidth)),this.domain=this.getDomain(),this.data=this.results.sort((x,C)=>this.domain.indexOf(x.name)-this.domain.indexOf(C.name)),this.setColors(),this.legendOptions=this.getLegendOptions()}getDomain(){return this.results.map(o=>o.label)}onClick(o){this.select.emit(o)}setColors(){this.colors=new Hv(this.scheme,Ta.Ordinal,this.domain,this.customColors)}getLegendOptions(){return{scaleType:Ta.Ordinal,domain:this.domain,colors:this.colors,title:this.legendTitle,position:this.legendPosition}}onActivate(o,d=!1){o=this.results.find(C=>d?C.label===o.name:C.name===o.name),!(this.activeEntries.findIndex(C=>C.name===o.name&&C.value===o.value&&C.series===o.series)>-1)&&(this.activeEntries=[o,...this.activeEntries],this.activate.emit({value:o,entries:this.activeEntries}))}onDeactivate(o,d=!1){o=this.results.find(C=>d?C.label===o.name:C.name===o.name);const x=this.activeEntries.findIndex(C=>C.name===o.name&&C.value===o.value&&C.series===o.series);
129this.activeEntries.splice(x,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:o,entries:this.activeEntries})}hasNoOptionalMarginsSet(){return!this.margins||this.margins.length<=0}}return l.\u0275fac=(()=>{let h;return function(d){return(h||(h=E.xGo(l)))(d||l)}})(),l.\u0275cmp=E.VBU({type:l,selectors:[["ngx-charts-pie-chart"]],contentQueries:function(o,d,x){if(1&o&&E.wni(x,$g,5),2&o){let C;E.mGM(C=E.lsd())&&(d.tooltipTemplate=C.first)}},inputs:{labels:"labels",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",explodeSlices:"explodeSlices",doughnut:"doughnut",arcWidth:"arcWidth",gradient:"gradient",activeEntries:"activeEntries",tooltipDisabled:"tooltipDisabled",labelFormatting:"labelFormatting",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",tooltipText:"tooltipText",margins:"margins"},outputs:{dblclick:"dblclick",select:"select",activate:"activate",deactivate:"deactivate"},features:[E.Vt3],decls:3,vars:24,consts:[[3,"legendLabelActivate","legendLabelDeactivate","legendLabelClick","view","showLegend","legendOptions","activeEntries","animations"],[1,"pie-chart","chart"],["ngx-charts-pie-series","",3,"dblclick","select","activate","deactivate","colors","series","showLabels","labelFormatting","trimLabels","maxLabelLength","activeEntries","innerRadius","outerRadius","explodeSlices","gradient","animations","tooltipDisabled","tooltipTemplate","tooltipText"]],template:function(o,d){1&o&&(E.j41(0,"ngx-charts-chart",0),E.bIt("legendLabelActivate",function(C){return d.onActivate(C,!0)})("legendLabelDeactivate",function(C){return d.onDeactivate(C,!0)})("legendLabelClick",function(C){return d.onClick(C)}),E.qSk(),E.j41(1,"g",1)(2,"g",2),E.bIt("dblclick",function(C){return d.dblclick.emit(C)})("select",function(C){return d.onClick(C)})("activate",function(C){return d.onActivate(C)})("deactivate",function(C){return d.onDeactivate(C)}),E.k0s()()()),2&o&&(E.Y8G("view",E.l_i(21,Cm,d.width,d.height))("showLegend",d.legend)("legendOptions",d.legendOptions)("activeEntries",d.activeEntries)("animations",d.animations),E.R7$(),E.BMQ("transform",d.translation),E.R7$(),E.Y8G("colors",d.colors)("series",d.data)("showLabels",d.labels)("labelFormatting",d.labelFormatting)("trimLabels",d.trimLabels)("maxLabelLength",d.maxLabelLength)("activeEntries",d.activeEntries)("innerRadius",d.innerRadius)("outerRadius",d.outerRadius)("explodeSlices",d.explodeSlices)("gradient",d.gradient)("animations",d.animations)("tooltipDisabled",d.tooltipDisabled)("tooltipTemplate",d.tooltipTemplate)("tooltipText",d.tooltipText))},dependencies:[I_,l2],styles:[".ngx-charts-outer{animation:chartFadeIn linear .6s}@keyframes chartFadeIn{0%{opacity:0}20%{opacity:0}to{opacity:1}}.ngx-charts{float:left;overflow:visible}.ngx-charts .circle,.ngx-charts .cell,.ngx-charts .bar,.ngx-charts .node,.ngx-charts .link,.ngx-charts .arc{cursor:pointer}.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover,.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .node.active,.ngx-charts .node:hover,.ngx-charts .link.active,.ngx-charts .link:hover,.ngx-charts .card.active,.ngx-charts .card:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .bar:focus,.ngx-charts .cell:focus,.ngx-charts .arc:focus,.ngx-charts .node:focus,.ngx-charts .link:focus,.ngx-charts .card:focus{outline:none}.ngx-charts .bar.hidden,.ngx-charts .cell.hidden,.ngx-charts .arc.hidden,.ngx-charts .node.hidden,.ngx-charts .link.hidden,.ngx-charts .card.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .line-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .polar-series-path.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .area-series.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:#0000000d}\n",".pie-label{font-size:11px}.pie-label.animation{animation:.75s ease-in fadeIn}@keyframes fadeIn{0%{opacity:0}
129to{opacity:1}}.pie-label-line{stroke-dasharray:100%}.pie-label-line.animation{animation:3s linear drawOut;transition:d .75s}@keyframes drawOut{0%{stroke-dashoffset:100%}to{stroke-dashoffset:0}}\n"],encapsulation:2,changeDetection:0}),l})(),h1=(()=>{class l{}return l.\u0275fac=function(o){return new(o||l)},l.\u0275mod=E.$C({type:l}),l.\u0275inj=E.G2t({imports:[[$f]]}),l})(),f2=(()=>{class l{}return l.\u0275fac=function(o){return new(o||l)},l.\u0275mod=E.$C({type:l}),l.\u0275inj=E.G2t({imports:[[$f,h1,$_]]}),l})(),p2=(()=>{class l{}return l.\u0275fac=function(o){return new(o||l)},l.\u0275mod=E.$C({type:l}),l.\u0275inj=E.G2t({imports:[[$f]]}),l})(),h2=(()=>{class l{}return l.\u0275fac=function(o){return new(o||l)},l.\u0275mod=E.$C({type:l}),l.\u0275inj=E.G2t({imports:[[$f]]}),l})(),g2=(()=>{class l{}return l.\u0275fac=function(o){return new(o||l)},l.\u0275mod=E.$C({type:l}),l.\u0275inj=E.G2t({imports:[[$f,h1,W_]]}),l})(),H_=(()=>{class l{}return l.\u0275fac=function(o){return new(o||l)},l.\u0275mod=E.$C({type:l}),l.\u0275inj=E.G2t({imports:[[$f]]}),l})(),v2=(()=>{class l{constructor(){!function X_(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return l.\u0275fac=function(o){return new(o||l)},l.\u0275mod=E.$C({type:l}),l.\u0275inj=E.G2t({imports:[$f,Jv,W_,t2,n2,r2,H_,$_,f2,p2,h1,h2,g2]}),l})()},79530:(ys,Ha,bn)=>{"use strict";bn.d(Ha,{hZ:()=>Ye,Q_:()=>Be});var E=bn(93953);class Ie{constructor(me,se){this.open=me,this.close=se||me}isManual(){return"manual"===this.open||"manual"===this.close}}const xi={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};const Tn=typeof window<"u"&&window||{},qe=Tn.document;var un=function(J){return J.isBs3="bs3",J.isBs4="bs4",J.isBs5="bs5",J}(un||{});let qt;function yn(){if(typeof Tn.document>"u")return"bs4";const J=Tn.document.createElement("span");J.innerText="testing bs version",J.classList.add("d-none"),J.classList.add("pl-1"),Tn.document.head.appendChild(J);const me=J.getBoundingClientRect(),se=Tn.getComputedStyle(J).paddingLeft;return!me||me&&0!==me.top?(Tn.document.head.removeChild(J),"bs3"):se&&parseFloat(se)?(Tn.document.head.removeChild(J),"bs4"):(Tn.document.head.removeChild(J),"bs5")}function ei(){return typeof Tn>"u"||(typeof Tn.__theme>"u"?(qt||(qt=yn()),"bs3"===qt):"bs3"===Tn.__theme)}function kn(){return!ei()&&(qt||(qt=yn()),"bs4"===qt)}function Si(){return{isBs3:ei(),isBs4:kn(),isBs5:!ei()&&!kn()&&(qt||(qt=yn()),"bs5"===qt)}}class sn{static reflow(me){}static getStyles(me){let se=me.ownerDocument.defaultView;return(!se||!se.opener)&&(se=Tn),se.getComputedStyle(me)}static stackOverflowConfig(){const me=function gr(){const J=Si(),me=Object.keys(J).find(se=>J[se]);return un[me]}();return{crossorigin:"bs3"!==me?"anonymous":void 0,integrity:"bs5"===me?"sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We":"bs4"===me?"sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2":void 0,cdnLink:"bs5"===me?"https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css":"bs4"===me?"https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css":"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"}}}typeof console>"u"||console;var Mi=bn(60177),Xi=bn(68598);let Lr,hr=(()=>{class J{constructor(){this._focusTrapStack=[]}register(se){this._focusTrapStack=this._focusTrapStack.filter(nn=>nn!==se);let Ue=this._focusTrapStack;Ue.length&&Ue[Ue.length-1]._disable(),Ue.push(se),se._enable()}deregister(se){se._disable();const Ue=this._focusTrapStack,nn=Ue.indexOf(se);-1!==nn&&(Ue.splice(nn,1),Ue.length&&Ue[Ue.length-1]._enable())}}return J.\u0275fac=function(se){return new(se||J)},J.\u0275prov=E.jDH({token:J,factory:J.\u0275fac,providedIn:"root"}),J})();try{Lr=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Lr=!1}let Nr=(()=>{class J{constructor(se){this._platformId=se,this.isBrowser=this._platformId?(0,Mi.UE)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(m
129sie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Lr)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return J.\u0275fac=function(se){return new(se||J)(E.KVO(E.Agw))},J.\u0275prov=E.jDH({token:J,factory:J.\u0275fac,providedIn:"root"}),J})(),Mo=(()=>{class J{constructor(se){this._platform=se}isDisabled(se){return se.hasAttribute("disabled")}isVisible(se){return function Bs(J){return!!(J.offsetWidth||J.offsetHeight||"function"==typeof J.getClientRects&&J.getClientRects().length)}(se)&&"visible"===getComputedStyle(se).visibility}isTabbable(se){if(!this._platform.isBrowser)return!1;const Ue=function Bo(J){try{return J.frameElement}catch{return null}}(function Pl(J){return J.ownerDocument&&J.ownerDocument.defaultView||window}(se));if(Ue&&(-1===xc(Ue)||!this.isVisible(Ue)))return!1;let nn=se.nodeName.toLowerCase(),fn=xc(se);return se.hasAttribute("contenteditable")?-1!==fn:!("iframe"===nn||"object"===nn||this._platform.WEBKIT&&this._platform.IOS&&!function al(J){let me=J.nodeName.toLowerCase(),se="input"===me&&J.type;return"text"===se||"password"===se||"select"===me||"textarea"===me}(se))&&("audio"===nn?!!se.hasAttribute("controls")&&-1!==fn:"video"===nn?-1!==fn&&(null!==fn||this._platform.FIREFOX||se.hasAttribute("controls")):se.tabIndex>=0)}isFocusable(se,Ue){return function fs(J){return!function Hc(J){return function rl(J){return"input"==J.nodeName.toLowerCase()}(J)&&"hidden"==J.type}(J)&&(function Ts(J){let me=J.nodeName.toLowerCase();return"input"===me||"select"===me||"button"===me||"textarea"===me}(J)||function Jo(J){return function Wl(J){return"a"==J.nodeName.toLowerCase()}(J)&&J.hasAttribute("href")}(J)||J.hasAttribute("contenteditable")||Zo(J))}(se)&&!this.isDisabled(se)&&(Ue?.ignoreVisibility||this.isVisible(se))}}return J.\u0275fac=function(se){return new(se||J)(E.KVO(Nr))},J.\u0275prov=E.jDH({token:J,factory:J.\u0275fac,providedIn:"root"}),J})();function Zo(J){if(!J.hasAttribute("tabindex")||void 0===J.tabIndex)return!1;let me=J.getAttribute("tabindex");return"-32768"!=me&&!(!me||isNaN(parseInt(me,10)))}function xc(J){if(!Zo(J))return null;const me=parseInt(J.getAttribute("tabindex")||"",10);return isNaN(me)?-1:me}function aa(J){return null!=J&&"false"!=`${J}`}class ps{constructor(me,se,Ue,nn,fn=!1){this._element=me,this._checker=se,this._ngZone=Ue,this._document=nn,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,fn||this.attachAnchors()}get enabled(){return this._enabled}set enabled(me){this._enabled=me,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(me,this._startAnchor),this._toggleAnchorTabIndex(me,this._endAnchor))}destroy(){const me=this._startAnchor,se=this._endAnchor;me&&(me.removeEventListener("focus",this.startAnchorListener),me.parentNode&&me.parentNode.removeChild(me)),se&&(se.removeEventListener("focus",this.endAnchorListener),se.parentNode&&se.parentNode.removeChild(se)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(me=>{this._executeOnStable(()=>me(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(me=>{this._executeOnStable(()=>me(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(me=>{this._executeOnStable(()=>me(this.focusLastTabbableElement()))})}_getRegionBoundary(me){let se=this._element.querySelectorAll(`[cdk-focus-region-${me}], [cdkFocusRegion${me}], [cdk-focus-${me}]`);for(let Ue=0;Ue<se.length;Ue++)se[Ue].hasAttribute(`cdk-focus-${me}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${me}', use 'cdkFocusRegion${me}' instead. The deprecated attribute will be removed in 8.0.0.`,se[Ue]):se[Ue].hasAttribute(`cdk-focus-region-${me}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${me}', use 'cdkFocusRegion${me}' instead. The deprecated attribute will be removed in 8.0.0.`,se[Ue]);return"start"==me?se.length?se[0]:this._getFirstTabbableElement(this._element):se.length?se[se.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){const me=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(me){if(me.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",me),!this._checker.isFocusable(me)){const se=this._getFirstTabbableElement(me);return se?.focus(),!!se}return me.focus(),!0}return this.focusFirstTabbableElement()}focusFirstTabbableElement(){const me=this._getRegionBoundary("start");return me&&me.focus(),!!me}focusLastTabbableElement(){const me=this._getRegionBoundary("end");return me&&me.focus(),!!me}hasAttached(){return this._hasAttached}_getFirstTabbableElement(me){if(this._checker.isFocusable(me)&&this._checker.isTabbable(me))return me;let se=me.children||me.childNodes;for(let Ue=0;Ue<se.length;Ue++){let nn=se[Ue].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(se[Ue]):null;if(nn)return nn}return null}_getLastTabbableElement(me){if(this._checker.isFocusable(me)&&this._checker.isTabbable(me))return me;let se=me.children||me.childNodes;for(let Ue=se.length-1;Ue>=0;Ue--){let nn=se[Ue].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(se[Ue]):null;if(nn)return nn}return null}_createAnchor(){const me=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,me),me.classList.add("cdk-visually-hidden"),me.classList.add("cdk-focus-trap-anchor"),me.setAttribute("aria-hidden","true"),me}_toggleAnchorTabIndex(me,se){me?se.setAttribute("tabindex","0"):se.removeAttribute("tabindex")}toggleAnchors(me){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(me,this._startAnchor),this._toggleAnchorTabIndex(me,this._endAnchor))}_executeOnStable(me){this._ngZone.isStable?me():this._ngZone.onStable.pipe((0,Xi.s)(1)).subscribe(me)}}let Gs=(()=>{class J{constructor(se,Ue,nn){this._checker=se,this._ngZone=Ue,this._document=nn}create(se,Ue=!1){return new ps(se,this._checker,this._ngZone,this._document,Ue)}}return J.\u0275fac=function(se){return new(se||J)(E.KVO(Mo),E.KVO(E.SKi),E.KVO(Mi.qQ))},J.\u0275prov=E.jDH({token:J,factory:J.\u0275fac,providedIn:"root"}),J})(),Bd=(()=>{class J{constructor(se,Ue,nn){this._elementRef=se,this._focusTrapFactory=Ue,this._previouslyFocusedElement=null,this._autoCapture=!1,this._document=nn,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(se){this.focusTrap.enabled=aa(se)}get autoCapture(){return this._autoCapture}set autoCapture(se){this._autoCapture=aa(se)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(se){const Ue=se.autoCapture;Ue&&!Ue.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady()}}return J.\u0275fac=function(se){return new(se||J)(E.rXU(E.aKT),E.rXU(Gs),E.rXU(Mi.qQ))},J.\u0275dir=E.FsC({type:J,selectors:[["","focusTrap",""]],inputs:{enabled:[0,"cdkTrapFocus","enabled"],autoCapture:[0,"cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["focusTrap"],features:[E.OA$]}),J})(),Ia=(()=>{class J{static forRoot(){return{ngModule:J,providers:[hr,Nr,Mo]}}}return J.\u0275fac=function(se){return new(se||J)},J.\u0275mod=E.$C({type:J}),J.\u0275inj=E.G2t({imports:[[Mi.MD]]}),J})();var Kc=bn(7246),Vs=bn(91977),fr=bn(79441),bo=bn(6036),Cs=bn(81209),yo=function(J){return J.top="top",J.bottom="bottom",J.left="left",J.right="right",J.auto="auto",J.end="right",J.
129start="left",J["top left"]="top left",J["top right"]="top right",J["right top"]="right top",J["right bottom"]="right bottom",J["bottom right"]="bottom right",J["bottom left"]="bottom left",J["left bottom"]="left bottom",J["left top"]="left top",J["top start"]="top left",J["top end"]="top right",J["end top"]="right top",J["end bottom"]="right bottom",J["bottom end"]="bottom right",J["bottom start"]="bottom left",J["start bottom"]="start bottom",J["start top"]="left top",J}(yo||{}),Go=function(J){return J.top="top",J.bottom="bottom",J.left="start",J.right="end",J.auto="auto",J.end="end",J.start="start",J["top left"]="top start",J["top right"]="top end",J["right top"]="end top",J["right bottom"]="end bottom",J["bottom right"]="bottom end",J["bottom left"]="bottom start",J["left bottom"]="start bottom",J["left top"]="start top",J["top start"]="top start",J["top end"]="top end",J["end top"]="end top",J["end bottom"]="end bottom",J["bottom end"]="bottom end",J["bottom start"]="bottom start",J["start bottom"]="start bottom",J["start top"]="start top",J}(Go||{});function Ml(J,me){if(1!==J.nodeType)return[];const Ue=J.ownerDocument.defaultView?.getComputedStyle(J,null);return me?Ue&&Ue[me]:Ue}function kr(J){if(!J)return document.documentElement;let Ue,se=J?.offsetParent;for(;null===se&&J.nextElementSibling&&Ue!==J.nextElementSibling;)Ue=J.nextElementSibling,se=Ue.offsetParent;const nn=se&&se.nodeName;return nn&&"BODY"!==nn&&"HTML"!==nn?se&&-1!==["TH","TD","TABLE"].indexOf(se.nodeName)&&"static"===Ml(se,"position")?kr(se):se:Ue?Ue.ownerDocument.documentElement:document.documentElement}function ol(J){return null!==J.parentNode?ol(J.parentNode):J}function gl(J,me){if(!(J&&J.nodeType&&me&&me.nodeType))return document.documentElement;const se=J.compareDocumentPosition(me)&Node.DOCUMENT_POSITION_FOLLOWING,Ue=se?J:me,nn=se?me:J,fn=document.createRange();fn.setStart(Ue,0),fn.setEnd(nn,0);const Ci=fn.commonAncestorContainer;if(J!==Ci&&me!==Ci||Ue.contains(nn))return function $l(J){const{nodeName:me}=J;return"BODY"!==me&&("HTML"===me||kr(J.firstElementChild)===J)}(Ci)?Ci:kr(Ci);const Di=ol(J);return Di.host?gl(Di.host,me):gl(J,ol(me).host)}function ql(J){if(!J||!J.parentElement)return document.documentElement;let me=J.parentElement;for(;me?.parentElement&&"none"===Ml(me,"transform");)me=me.parentElement;return me||document.documentElement}function Mu(J,me){const se="x"===me?"Left":"Top",Ue="Left"===se?"Right":"Bottom";return parseFloat(J[`border${se}Width`])+parseFloat(J[`border${Ue}Width`])}function cu(J,me,se,Ue){return Math.max(me[`offset${J}`],me[`scroll${J}`],se[`client${J}`],se[`offset${J}`],se[`scroll${J}`],0)}function af(J){const me=J.body,se=J.documentElement;return{height:cu("Height",me,se),width:cu("Width",me,se)}}function _d(J){return{...J,right:(J.left||0)+J.width,bottom:(J.top||0)+J.height}}function to(J){return"number"==typeof J||"[object Number]"===Object.prototype.toString.call(J)}function Vd(J){const me=J.getBoundingClientRect();if(!(me&&to(me.top)&&to(me.left)&&to(me.bottom)&&to(me.right)))return me;const se={left:me.left,top:me.top,width:me.right-me.left,height:me.bottom-me.top},Ue="HTML"===J.nodeName?af(J.ownerDocument):void 0,nn=Ue?.width||J.clientWidth||to(me.right)&&to(se.left)&&me.right-se.left||0,fn=Ue?.height||J.clientHeight||to(me.bottom)&&to(se.top)&&me.bottom-se.top||0;let Ci=J.offsetWidth-nn,Di=J.offsetHeight-fn;if(Ci||Di){const or=Ml(J);Ci-=Mu(or,"x"),Di-=Mu(or,"y"),se.width-=Ci,se.height-=Di}return _d(se)}function we(J){return"HTML"===J.nodeName?J:J.parentNode||J.host}function jc(J){if(!J)return document.body;switch(J.nodeName){case"HTML":case"BODY":return J.ownerDocument.body;case"#document":return J.body}const{overflow:me,overflowX:se,overflowY:Ue}=Ml(J);return/(auto|scroll|overlay)/.test(String(me)+String(Ue)+String(se))?J:jc(we(J))}function zs(J,me,se=!1){const Ue="HTML"===me.nodeName,nn=Vd(J),fn=Vd(me),Di=(jc(J),Ml(me)),or=parseFloat(Di.borderTopWidth),oa=parseFloat(Di.borderLeftWidth);se&&Ue&&(fn.top=Math.max(fn.top??0,0),fn.left=Math.max(fn.left??0,0));const Hr=_d({top:(nn.top??0)-(fn.top??0)-or,left:(nn.left??0)-(fn.left??0)-oa,width:nn.width,height:nn.height});if(Hr.marginTop=0,Hr.marginLeft=0,Ue){const Ea=parseFloat(Di.marginTop),xr=parseFloat(Di.marginLeft);
129to(Hr.top)&&(Hr.top-=or-Ea),to(Hr.bottom)&&(Hr.bottom-=or-Ea),to(Hr.left)&&(Hr.left-=oa-xr),to(Hr.right)&&(Hr.right-=oa-xr),Hr.marginTop=Ea,Hr.marginLeft=xr}return Hr}function Ss(J,me="top"){const se="top"===me?"scrollTop":"scrollLeft",Ue=J.nodeName;return"BODY"===Ue||"HTML"===Ue?(J.ownerDocument.scrollingElement||J.ownerDocument.documentElement)[se]:J[se]}function Ou(J){const me=J.nodeName;return"BODY"!==me&&"HTML"!==me&&("fixed"===Ml(J,"position")||Ou(we(J)))}function Du(J,me,se=0,Ue,nn=!1){let fn={top:0,left:0};const Ci=nn?ql(J):gl(J,me);if("viewport"===Ue)fn=function zd(J,me=!1){const se=J.ownerDocument.documentElement,Ue=zs(J,se),nn=Math.max(se.clientWidth,window.innerWidth||0),fn=Math.max(se.clientHeight,window.innerHeight||0),Ci=me?0:Ss(se),Di=me?0:Ss(se,"left");return _d({top:Ci-Number(Ue?.top)+Number(Ue?.marginTop),left:Di-Number(Ue?.left)+Number(Ue?.marginLeft),width:nn,height:fn})}(Ci,nn);else{let Di;"scrollParent"===Ue?(Di=jc(we(me)),"BODY"===Di.nodeName&&(Di=J.ownerDocument.documentElement)):Di="window"===Ue?J.ownerDocument.documentElement:Ue;const or=zs(Di,Ci,nn);if(or&&"HTML"===Di.nodeName&&!Ou(Ci)){const{height:oa,width:Hr}=af(J.ownerDocument);to(fn.top)&&to(or.top)&&to(or.marginTop)&&(fn.top+=or.top-or.marginTop),to(fn.top)&&(fn.bottom=Number(oa)+Number(or.top)),to(fn.left)&&to(or.left)&&to(or.marginLeft)&&(fn.left+=or.left-or.marginLeft),to(fn.top)&&(fn.right=Number(Hr)+Number(or.left))}else or&&(fn=or)}return to(fn.left)&&(fn.left+=se),to(fn.top)&&(fn.top+=se),to(fn.right)&&(fn.right-=se),to(fn.bottom)&&(fn.bottom-=se),fn}function Ud({width:J,height:me}){return J*me}function Es(J,me,se,Ue,nn=["top","bottom","right","left"],fn="viewport",Ci=0){if(-1===J.indexOf("auto"))return J;const Di=Du(se,Ue,Ci,fn),or={top:{width:Di?.width??0,height:(me?.top??0)-(Di?.top??0)},right:{width:(Di?.right??0)-(me?.right??0),height:Di?.height??0},bottom:{width:Di?.width??0,height:(Di?.bottom??0)-(me?.bottom??0)},left:{width:(me.left??0)-(Di?.left??0),height:Di?.height??0}},oa=Object.keys(or).map(Fa=>({position:Fa,...or[Fa],area:Ud(or[Fa])})).sort((Fa,hs)=>hs.area-Fa.area);let Hr=oa.filter(({width:Fa,height:hs})=>Fa>=se.clientWidth&&hs>=se.clientHeight);Hr=Hr.filter(({position:Fa})=>nn.some(hs=>hs===Fa));const Ea=Hr.length>0?Hr[0].position:oa[0].position,xr=J.split(" ")[1];return se.className=se.className.replace(/bs-tooltip-auto/g,`bs-tooltip-${Si().isBs5?Go[Ea]:Ea}`),Ea+(xr?`-${xr}`:"")}const bc=(J,me=0)=>J?parseFloat(J):me;function Jc(J){const se=J.ownerDocument.defaultView?.getComputedStyle(J),Ue=bc(se?.marginTop)+bc(se?.marginBottom),nn=bc(se?.marginLeft)+bc(se?.marginRight);return{width:Number(J.offsetWidth)+nn,height:Number(J.offsetHeight)+Ue}}function Ef(J,me,se){return zs(me,se?ql(J):gl(J,me),se)}function uu(J,me,se){const Ue=se.split(" ")[0],nn=Jc(J),fn={width:nn.width,height:nn.height},Ci=-1!==["right","left"].indexOf(Ue),Di=Ci?"top":"left",or=Ci?"left":"top",oa=Ci?"height":"width",Hr=Ci?"width":"height";return fn[Di]=(me[Di]??0)+me[oa]/2-nn[oa]/2,fn[or]=Ue===or?(me[or]??0)-nn[Hr]:me[function du(J){const me={left:"right",right:"left",bottom:"top",top:"bottom"};return J.replace(/left|right|bottom|top/g,se=>me[se])}(or)]??0,fn}function fu(J,me){return!!J.modifiers[me]?.enabled}const Qo={top:["top","top start","top end"],bottom:["bottom","bottom start","bottom end"],start:["start","start top","start bottom"],end:["end","end top","end bottom"]};function sl(J,me){return!!Si().isBs5&&Qo[me].includes(J)}function of(J,me,se){!J||!me||Object.keys(me).forEach(Ue=>{let nn="";-1!==["width","height","top","right","bottom","left"].indexOf(Ue)&&function Gd(J){return""!==J&&!isNaN(parseFloat(J))&&isFinite(Number(J))}(me[Ue])&&(nn="px"),se?se.setStyle(J,Ue,`${String(me[Ue])}${nn}`):J.style[Ue]=String(me[Ue])+nn})}function vd(J){let me=J.offsets.target;const se=J.instance.target.querySelector(".arrow");if(!se)return J;const Ue=-1!==["left","right"].indexOf(J.placement.split(" ")[0]),nn=Ue?"height":"width",fn=Ue?"Top":"Left",Ci=fn.toLowerCase(),Di=Ue?"left":"top",or=Ue?"bottom":"right",oa=Jc(se)[nn],Hr=J.placement.split(" ")[1];(J.offsets.host[or]??0)-oa<(me[Ci]??0)&&(me[Ci]-=(me[Ci]??0)-((J.offsets.host[or]??0)-oa)),Number(J.offsets.host[Ci])+Number(oa)>(me[or]??0)&&(me[Ci]+=Number(J.offsets.host[Ci])+Number(oa)-Number(me[or])),me=_d(me);const Ea=Ml(J.instance.target),xr=parseFloat(Ea[`margin${fn}`])||0,Fa=parseFloat(Ea[`border${fn}Width`])||0;let hs;if(Hr){const nd=parseFloat(Ea.borderRadius)||0,Wr=Number(xr+Fa+nd);hs=Ci===Hr?Number(J.offsets.host[Ci])+Wr:Number(J.offsets.host[Ci])+Number(J.offsets.host[nn]-Wr)}else hs=Number(J.offsets.host[Ci])+Number(J.offsets.host[nn]/2-o
129a/2);let Ka=hs-(me[Ci]??0)-xr-Fa;return Ka=Math.max(Math.min(me[nn]-(oa+5),Ka),0),J.offsets.arrow={[Ci]:Math.round(Ka),[Di]:""},J.instance.arrow=se,J}function Zc(J){if(J.offsets.target=_d(J.offsets.target),!fu(J.options,"flip"))return J.offsets.target={...J.offsets.target,...uu(J.instance.target,J.offsets.host,J.placement)},J;const me=Du(J.instance.target,J.instance.host,0,"viewport",!1);let se=J.placement.split(" ")[0],Ue=J.placement.split(" ")[1]||"";const Di=Es("auto",J.offsets.host,J.instance.target,J.instance.host,J.options.allowedPositions),or=[se,Di];return or.forEach((oa,Hr)=>{if(se!==oa||or.length===Hr+1)return;se=J.placement.split(" ")[0];const Ea="left"===se&&Math.floor(J.offsets.target.right??0)>Math.floor(J.offsets.host.left??0)||"right"===se&&Math.floor(J.offsets.target.left??0)<Math.floor(J.offsets.host.right??0)||"top"===se&&Math.floor(J.offsets.target.bottom??0)>Math.floor(J.offsets.host.top??0)||"bottom"===se&&Math.floor(J.offsets.target.top??0)<Math.floor(J.offsets.host.bottom??0),xr=Math.floor(J.offsets.target.left??0)<Math.floor(me.left??0),Fa=Math.floor(J.offsets.target.right??0)>Math.floor(me.right??0),hs=Math.floor(J.offsets.target.top??0)<Math.floor(me.top??0),Ka=Math.floor(J.offsets.target.bottom??0)>Math.floor(me.bottom??0),nd="left"===se&&xr||"right"===se&&Fa||"top"===se&&hs||"bottom"===se&&Ka,Wr=-1!==["top","bottom"].indexOf(se),Hl=Wr&&"left"===Ue&&xr||Wr&&"right"===Ue&&Fa||!Wr&&"left"===Ue&&hs||!Wr&&"right"===Ue&&Ka;(Ea||nd||Hl)&&((Ea||nd)&&(se=or[Hr+1]),Hl&&(Ue=function Yd(J){return"right"===J?"left":"left"===J?"right":J}(Ue)),J.placement=se+(Ue?` ${Ue}`:""),J.offsets.target={...J.offsets.target,...uu(J.instance.target,J.offsets.host,J.placement)})}),J}function Qc(J){if(!fu(J.options,"preventOverflow"))return J;const me="transform",se=J.instance.target.style,{top:Ue,left:nn,[me]:fn}=se;se.top="",se.left="",se[me]="";const Ci=Du(J.instance.target,J.instance.host,0,J.options.modifiers.preventOverflow?.boundariesElement||"scrollParent",!1);se.top=Ue,se.left=nn,se[me]=fn;const or={primary(oa){let Hr=J.offsets.target[oa];return(J.offsets.target[oa]??0)<(Ci[oa]??0)&&(Hr=Math.max(J.offsets.target[oa]??0,Ci[oa]??0)),{[oa]:Hr}},secondary(oa){const Hr="right"===oa,Ea=Hr?"left":"top";let Fa=J.offsets.target[Ea];return(J.offsets.target[oa]??0)>(Ci[oa]??0)&&(Fa=Math.min(J.offsets.target[Ea]??0,(Ci[oa]??0)-J.offsets.target[Hr?"width":"height"])),{[Ea]:Fa}}};return["left","right","top","bottom"].forEach(oa=>{const Hr=-1!==["left","top","start"].indexOf(oa)?or.primary:or.secondary;J.offsets.target={...J.offsets.target,...Hr(oa)}}),J}function Iu(J){const me=J.placement,se=me.split(" ")[0],Ue=me.split(" ")[1];if(Ue){const{host:nn,target:fn}=J.offsets,Ci=-1!==["bottom","top"].indexOf(se),Di=Ci?"left":"top",or=Ci?"width":"height",oa={start:{[Di]:nn[Di]},end:{[Di]:(nn[Di]??0)+nn[or]-fn[or]}};J.offsets.target={...fn,[Di]:Di===Ue?oa.start[Di]:oa.end[Di]}}return J}const sc=new class yc{position(me,se){return this.offset(me,se)}offset(me,se){return Ef(se,me)}positionElements(me,se,Ue,nn,fn){const Ci=[Zc,Iu,Qc,vd],or=function xd(J,me,se,Ue){if(!J||!me)return;const nn=Ef(J,me);!se.match(/^(auto)*\s*(left|right|top|bottom|start|end)*$/)&&!se.match(/^(left|right|top|bottom|start|end)*(?: (left|right|top|bottom|start|end))*$/)&&(se="auto");const fn=!!se.match(/auto/g);let Ci=se.match(/auto\s(left|right|top|bottom|start|end)/)?se.split(" ")[1]||"auto":se;const Di=Ci.match(/^(left|right|top|bottom|start|end)* ?(?!\1)(left|right|top|bottom|start|end)?/);return Di&&(Ci=Di[1]+(Di[2]?` ${Di[2]}`:"")),-1!==["left right","right left","top bottom","bottom top"].indexOf(Ci)&&(Ci="auto"),Ci=Es(Ci,nn,J,me,Ue?Ue.allowedPositions:void 0),{options:Ue||{modifiers:{}},instance:{target:J,host:me,arrow:void 0},offsets:{target:uu(J,nn,Ci),host:nn,arrow:void 0},positionFixed:!1,placement:Ci,placementAuto:fn}}(se,me,yo[Ue],fn);if(or)return Ci.reduce((oa,Hr)=>Hr(oa),or)}};function ed(J,me,se,Ue,nn,fn){const Ci=sc.positionElements(J,me,se,Ue,nn);if(!Ci)return;const Di=function Ol(J){return{width:J.offsets.target.width,height:J.offsets.target.height,left:Math.floor(J.offsets.target.left??0),top:Math.round(J.offsets.target.top??0),bottom:Math.round(J.offsets.target.bottom??0),right:Math.floor(J.offsets.target.right??0)}}(Ci);of(me,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${Di.left}px, ${Di.top}px, 0px)`},fn),Ci.instance.arrow&&of(Ci.instance.arrow,Ci.offsets.arrow,fn),function Wd(J,me){const se=J.instance.target;let Ue=se.className;const nn=Si().isBs5?Go[J.placement]:J.placement;J.placementAuto&&(Ue=Ue.replace(/bs-popover-auto/g,`bs-popover-${nn}`),Ue=Ue.replace(/ms-2|me-2|mb-2|mt-2/g,""),Ue=Ue.replace(/bs-tooltip-auto/g,`bs-tooltip-${nn}`),Ue=Ue.replace(/\sauto/g,` ${nn}`),-1!==Ue.indexOf("popover")&&(Ue=Ue+" "+function Pf(J){return Si().isBs5?sl(J,"end")?"ms-2":sl(J,"start")?"me-2":sl(J,"top")?"mb-2":sl(J,"bottom")?"mt-2":"":""}(nn)),-1!==Ue.indexOf("popover")&&-1===Ue.indexOf("popover-auto")&&(Ue+=" popover-auto"),-1!==Ue.indexOf("tooltip")&&-1===Ue.indexOf("tooltip-auto")&&(Ue+=" tooltip-auto")),Ue=Ue.replace(/left|right|top|bottom|end|start/g,`${nn.split(" ")[0]}`),me?me.setAttribute(se,"class",Ue):se.className=Ue}(Ci,fn)}let ju=(()=>{class J{constructor(se,Ue,nn){this.update$$=new Kc.B,this.positionElements=new Map,this.isDisabled=!1,(0,Mi.UE)(nn)&&se.runOutsideAngular(()=>{this.triggerEvent$=(0,Vs.h)((0,fr.R)(window,"scroll",{passive:!0}),(0,fr.R)(window,"resize",{passive:!0}),(0,bo.of)(0,Cs.X),this.update$$),this.triggerEvent$.subscribe(()=>
129{this.isDisabled||this.positionElements.forEach(fn=>{ed(ll(fn.target),ll(fn.element),fn.attachment,fn.appendToBody,this.options,Ue.createRenderer(null,null))})})})}position(se){this.addPositionElement(se)}get event$(){return this.triggerEvent$}disable(){this.isDisabled=!0}enable(){this.isDisabled=!1}addPositionElement(se){this.positionElements.set(ll(se.element),se)}calcPosition(){this.update$$.next(null)}deletePositionElement(se){this.positionElements.delete(ll(se))}setOptions(se){this.options=se}}return J.\u0275fac=function(se){return new(se||J)(E.KVO(E.SKi),E.KVO(E._9s),E.KVO(E.Agw))},J.\u0275prov=E.jDH({token:J,factory:J.\u0275fac,providedIn:"root"}),J})();function ll(J){return"string"==typeof J?document.querySelector(J):J instanceof E.aKT?J.nativeElement:J??null}class Rc{constructor(me,se,Ue){this.nodes=me,this.viewRef=se,this.componentRef=Ue}}class Vr{constructor(me,se,Ue,nn,fn,Ci,Di,or){this._viewContainerRef=me,this._renderer=se,this._elementRef=Ue,this._injector=nn,this._componentFactoryResolver=fn,this._ngZone=Ci,this._applicationRef=Di,this._posService=or,this.onBeforeShow=new E.bkB,this.onShown=new E.bkB,this.onBeforeHide=new E.bkB,this.onHidden=new E.bkB,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return!this._isHiding&&!!this._componentRef}attach(me){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(me),this}to(me){return this.container=me||this.container,this}position(me){return me?(this.attachment=me.attachment||this.attachment,this._elementRef=me.target||this._elementRef,this):this}provide(me){return this._providers.push(me),this}show(me={}){if(this._subscribePositioning(),this._innerComponent=void 0,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(me.content,me.context,me.initialState);const se=E.zZn.create({providers:this._providers,parent:this._injector});if(!this._componentFactory)return;if(this._componentRef=this._componentFactory.create(se,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,me),this.container instanceof E.aKT&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&typeof document<"u"){const Ue=document.querySelector(this.container)||document.querySelector(this.containerDefaultSelector);if(!Ue)return;Ue.appendChild(this._componentRef.location.nativeElement)}!this.container&&this._elementRef&&this._elementRef.nativeElement.parentElement&&this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement),this._contentRef.componentRef&&(this._innerComponent=this._contentRef.componentRef.instance,this._contentRef.componentRef.changeDetectorRef.markForCheck(),this._contentRef.componentRef.changeDetectorRef.detectChanges()),this._componentRef.changeDetectorRef.markForCheck(),this._componentRef.changeDetectorRef.detectChanges(),this.onShown.emit(me.id?{id:me.id}:this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide(me){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);const se=this._componentRef.location.nativeElement;return se.parentNode?.removeChild(se),this._contentRef?.componentRef?.destroy(),this._viewContainerRef&&this._contentRef?.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef?.viewRef?.destroy(),this._contentRef=void 0,this._componentRef=void 0,this._removeGlobalListener(),this.onHidden.emit(me?{id:me}:null),this}toggle(){this.isShown?this.hide():this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(me){this.triggers=me.triggers||this.triggers,this._listenOpts.outsideClick=me.outsideClick,this._listenOpts.outsideEsc=me.outsideEsc,me.target=me.target||this._elementRef?.
129nativeElement;const se=this._listenOpts.hide=()=>me.hide?me.hide():void this.hide(),Ue=this._listenOpts.show=fn=>{me.show?me.show(fn):this.show(fn),fn()};return this._renderer&&(this._unregisterListenersFn=function u(J,me){const se=function ie(J,me=xi){const se=(J||"").trim();if(0===se.length)return[];const Ue=se.split(/\s+/).map(fn=>fn.split(":")).map(fn=>{const Ci=me[fn[0]]||fn;return new Ie(Ci[0],Ci[1])}),nn=Ue.filter(fn=>fn.isManual());if(nn.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===nn.length&&Ue.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return Ue}(me.triggers),Ue=me.target;if(1===se.length&&se[0].isManual())return Function.prototype;const nn=[],fn=[],Ci=()=>{fn.forEach(Di=>nn.push(Di())),fn.length=0};return se.forEach(Di=>{const or=Di.open===Di.close,oa=or?me.toggle:me.show;if(!or&&Di.close&&me.hide){const Hr=J.listen(Ue,Di.close,me.hide);fn.push(()=>Hr)}oa&&nn.push(J.listen(Ue,Di.open,()=>oa(Ci)))}),()=>{nn.forEach(Di=>Di())}}(this._renderer,{target:me.target,triggers:me.triggers,show:Ue,hide:se,toggle:fn=>{this.isShown?se():Ue(fn)}})),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=Function.prototype)}attachInline(me,se){return me&&se&&(this._inlineViewRef=me.createEmbeddedView(se)),this}_registerOutsideClick(){if(this._componentRef&&this._componentRef.location){if(this._listenOpts.outsideClick){const me=this._componentRef.location.nativeElement;setTimeout(()=>{this._renderer&&this._elementRef&&(this._globalListener=function tn(J,me){return me.outsideClick?J.listen("document","click",se=>{me.target&&me.target.contains(se.target)||me.targets&&me.targets.some(Ue=>Ue.contains(se.target))||me.hide&&me.hide()}):Function.prototype}(this._renderer,{targets:[me,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))})}this._listenOpts.outsideEsc&&this._renderer&&this._elementRef&&(this._globalListener=function e(J,me){return me.outsideEsc?J.listen("document","keyup.esc",se=>{me.target&&me.target.contains(se.target)||me.targets&&me.targets.some(Ue=>Ue.contains(se.target))||me.hide&&me.hide()}):Function.prototype}(this._renderer,{targets:[this._componentRef.location.nativeElement,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))}}getInnerComponent(){return this._innerComponent}_subscribePositioning(){this._zoneSubscription||!this.attachment||(this.onShown.subscribe(()=>{this._posService.position({element:this._componentRef?.location,target:this._elementRef,attachment:this.attachment,appendToBody:"body"===this.container})}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>{this._componentRef&&this._posService.calcPosition()}))}_unsubscribePositioning(){this._zoneSubscription&&(this._zoneSubscription.unsubscribe(),this._zoneSubscription=void 0)}_getContentRef(me,se,Ue){if(!me)return new Rc([]);if(me instanceof E.C4Q){if(this._viewContainerRef){const Ci=this._viewContainerRef.createEmbeddedView(me,se);return Ci.markForCheck(),new Rc([Ci.rootNodes],Ci)}const fn=me.createEmbeddedView({});return this._applicationRef.attachView(fn),new Rc([fn.rootNodes],fn)}if("function"==typeof me){const fn=this._componentFactoryResolver.resolveComponentFactory(me),Ci=E.zZn.create({providers:this._providers,parent:this._injector}),Di=fn.create(Ci);return Object.assign(Di.instance,Ue),this._applicationRef.attachView(Di.hostView),new Rc([[Di.location.nativeElement]],Di.hostView,Di)}const nn=this._renderer?[this._renderer.createText(`${me}`)]:[];return new Rc([nn])}}let bd=(()=>{class J{constructor(se,Ue,nn,fn,Ci){this._componentFactoryResolver=se,this._ngZone=Ue,this._injector=nn,this._posService=fn,this._applicationRef=Ci}createLoader(se,Ue,nn){return new Vr(Ue,nn,se,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService)}}return J.\u0275fac=function(se){return new(se||J)(E.KVO(E.OM3),E.KVO(E.SKi),E.KVO(E.zZn),E.KVO(ju),E.KVO(E.o8S))},J.\u0275prov=E.jDH({token:J,factory:J.\u0275fac,providedIn:"root"}),J})();const ro=["*"];let $d=(()=>{class J{constructor(){this.hide=()=>{},this.setClass=()=>{}}}return J.\u0275fac=function(se){return new(se||J)},J.\u0275prov=E.jDH({token:J,factory:J.\u0275fac,providedIn:"platform"}),J})(),td=(()=>{class J{}return J.\u0275fac=function(se){return new(se||J)},J.\u0275prov=E.jDH({token:J,factory:J.\u0275fac,providedIn:"platform"}),J})();const Sa={backdrop:!0,keyboard:!0,focus:!0,show:!1,ignoreBackdropClick:!1,class:"",animated:!0,initialState:{},closeInterceptor:void 0},Xl=new E.nKC("override-default-config"),$a_OPEN="modal-open";let Vo=(()=>{class J{constructor(se,Ue,nn){this._element=Ue,this._renderer=nn,this.isShown=!1,this.isAnimated=!1,this.isModalHiding=!1,this.clickStartedInContent=!1,this.config=Object.assign({},se)}ngOnInit(){this.isAnimated&&this._renderer.addClass(this._element.nativeElement,"fade"),this._renderer.setStyle(this._element.nativeElement,"display","block"),setTimeout(()=>{this.isShown=!0,this._renderer.addClass(this._element.nativeElement,ei()?"in":"show")},this.isAnimated?150:0),document&&document.body&&(this.bsModalService&&1===this.bsModalService.getModalsCount()&&(this.bsModalService.checkScrollbar(),this.bsModalService.setScrollbar()),this._renderer.addClass(document.body,$a_OPEN),this._renderer.setStyle(document.body,"overflow-y","hidden")),this._element.nativeElement&&this._element.nativeElement.focus()}onClickStarted(se){this.clickStartedInContent=se.target!==this._element.nativeElement}onClickStop(se){this.config.ignoreBackdropClick||"static"===this.config.backdrop||se.target!==this._element.nativeElement||this.clickStartedInContent?this.clickStartedInContent=!1:(this.bsModalService?.setDismissReason("backdrop-click"),this.hide())}onPopState(){this.bsModalService?.setDismissReason("browser-back-navigation-clicked"),this.hide()}
129onEsc(se){this.isShown&&((27===se.keyCode||"Escape"===se.key)&&se.preventDefault(),this.config.keyboard&&this.level===this.bsModalService?.getModalsCount()&&(this.bsModalService?.setDismissReason("esc"),this.hide()))}ngOnDestroy(){this.isShown&&this._hide()}hide(){if(!this.isModalHiding&&this.isShown){if(this.config.closeInterceptor)return void this.config.closeInterceptor().then(()=>this._hide(),()=>{});this._hide()}}_hide(){this.isModalHiding=!0,this._renderer.removeClass(this._element.nativeElement,ei()?"in":"show"),setTimeout(()=>{this.isShown=!1,document&&document.body&&1===this.bsModalService?.getModalsCount()&&(this._renderer.removeClass(document.body,$a_OPEN),this._renderer.setStyle(document.body,"overflow-y","")),this.bsModalService?.hide(this.config.id),this.isModalHiding=!1},this.isAnimated?300:0)}}return J.\u0275fac=function(se){return new(se||J)(E.rXU(td),E.rXU(E.aKT),E.rXU(E.sFG))},J.\u0275cmp=E.VBU({type:J,selectors:[["modal-container"]],hostAttrs:["role","dialog","tabindex","-1",1,"modal"],hostVars:3,hostBindings:function(se,Ue){1&se&&E.bIt("mousedown",function(fn){return Ue.onClickStarted(fn)})("click",function(fn){return Ue.onClickStop(fn)})("popstate",function(){return Ue.onPopState()},!1,E.tSv)("keydown.esc",function(fn){return Ue.onEsc(fn)},!1,E.tSv),2&se&&E.BMQ("aria-modal",!0)("aria-labelledby",Ue.config.ariaLabelledBy)("aria-describedby",Ue.config.ariaDescribedby)},ngContentSelectors:ro,decls:3,vars:2,consts:[["role","document","focusTrap",""],[1,"modal-content"]],template:function(se,Ue){1&se&&(E.NAR(),E.j41(0,"div",0)(1,"div",1),E.SdG(2),E.k0s()()),2&se&&E.HbH("modal-dialog"+(Ue.config.class?" "+Ue.config.class:""))},dependencies:[Bd],encapsulation:2}),J})(),Xo=(()=>{class J{constructor(se,Ue){this._isAnimated=!1,this._isShown=!1,this.element=se,this.renderer=Ue}get isAnimated(){return this._isAnimated}set isAnimated(se){this._isAnimated=se}get isShown(){return this._isShown}set isShown(se){this._isShown=se,se?this.renderer.addClass(this.element.nativeElement,"in"):this.renderer.removeClass(this.element.nativeElement,"in"),ei()||(se?this.renderer.addClass(this.element.nativeElement,"show"):this.renderer.removeClass(this.element.nativeElement,"show"))}ngOnInit(){this.isAnimated&&(this.renderer.addClass(this.element.nativeElement,"fade"),sn.reflow(this.element.nativeElement)),this.isShown=!0}}return J.\u0275fac=function(se){return new(se||J)(E.rXU(E.aKT),E.rXU(E.sFG))},J.\u0275cmp=E.VBU({type:J,selectors:[["bs-modal-backdrop"]],hostAttrs:[1,"modal-backdrop"],decls:0,vars:0,template:function(se,Ue){},encapsulation:2}),J})(),Ye=(()=>{class J{constructor(se,Ue,nn,fn,Ci){this._element=se,this._renderer=nn,this.onShow=new E.bkB,this.onShown=new E.bkB,this.onHide=new E.bkB,this.onHidden=new E.bkB,this._isShown=!1,this.isBodyOverflowing=!1,this.originalBodyPadding=0,this.scrollbarWidth=0,this.timerHideModal=0,this.timerRmBackDrop=0,this.isNested=!1,this.clickStartedInContent=!1,this._backdrop=fn.createLoader(se,Ue,nn),this._config=Ci||Sa}set config(se){this._config=this.getConfig(se)}get config(){return this._config}get isShown(){return this._isShown}onClickStarted(se){this.clickStartedInContent=se.target!==this._element.nativeElement}onClickStop(se){this.config.ignoreBackdropClick||"static"===this.config.backdrop||se.target!==this._element.nativeElement||this.clickStartedInContent?this.clickStartedInContent=!1:(this.dismissReason="backdrop-click",this.hide(se))}onEsc(se){this._isShown&&((27===se.keyCode||"Escape"===se.key)&&se.preventDefault(),this.config.keyboard&&(this.dismissReason="esc",this.hide()))}ngOnDestroy(){this._isShown&&(this._isShown=!1,this.hideModal(),this._backdrop.dispose())}ngOnInit(){this._config=this._config||this.getConfig(),setTimeout(()=>{this._config.show&&this.show()},0)}toggle(){return this._isShown?this.hide():this.show()}show(){this.dismissReason=void 0,this.onShow.emit(this),!this._isShown&&(clearTimeout(this.timerHideModal),clearTimeout(this.timerRmBackDrop),this._isShown=!0,this.checkScrollbar(),this.setScrollbar(),qe&&qe.body&&(qe.body.classList.contains($a_OPEN)?this.isNested=!0:(this._renderer.addClass(qe.body,$a_OPEN),this._renderer.setStyle(qe.body,"overflow-y","hidden"))),this.showBackdrop(()=>{this.showElement()}))}hide(se){if(this._isShown){if(se&&se.preventDefault(),this.config.closeInterceptor)return void this.config.closeInterceptor().then(()=>this._hide(),()=>{});this._hide()}}_hide(){this.onHide.emit(this),Tn.clearTimeout(this.timerHideModal),Tn.clearTimeout(this.timerRmBackDrop),this._isShown=!1,this._renderer.removeClass(this._element.nativeElement,"in"),ei()||this._renderer.removeClass(this._element.nativeElement,"show"),this._config.animated?this.timerHideModal=Tn.setTimeout(()=>this.hideModal(),300):this.hideModal()}getConfig(se){return Object.assign({},this._config,se)}showElement(){(!this._element.nativeElement.parentNode||this._element.nativeElement.parentNode.nodeType!==Node.ELEMENT_NODE)&&qe&&qe.body&&qe.body.appendChild(this._element.nativeElement),this._renderer.setAttribute(this._element.nativeElement,"aria-hidden","false"),this._renderer.setAttribute(this._element.nativeElement,"aria-modal","true"),this._renderer.setStyle(this._element.nativeElement,"display","block"),this._renderer.setProperty(this._element.nativeElement,"scrollTop",0),this._config.animated&&sn.reflow(this._element.nativeElement),this._renderer.addClass(this._element.nativeElement,"in"),ei()||this._renderer.addClass(this._element.nativeElement,"show");const se=()=>{this._config.focus&&this._element.nativeElement.focus(),this.onShown.emit(this)};this._config.animated?setTimeout(se,300):se()}hideModal(){this._renderer.setAttribute(this._element.nativeElement,"aria-hidden","true"),this._renderer.setStyle(this._element.nativeElement,"display","none"),this.showBackdrop(()=>{this.isNested||(qe&&qe.body&&(this._renderer.removeClass(qe.body,$a_OPEN),this._renderer.setStyle(qe.body,"overflow-y","")),this.resetScrollbar()),this.resetAdjustments(),this.focusOtherModal(),this.onHidden.emit(this)})}showBackdrop(se){if(!this._isShown||!this.config.backdrop||this.backdrop&&this.backdrop.instance.isShown)if(!this._isShown&&this.backdrop){this.backdrop.instance.isShown=!1;const Ue=()=>{this.removeBackdrop(),se&&se()};this.backdrop.instance.isAnimated?this.timerRmBackDrop=Tn.setTimeout(Ue,150):Ue()}else se&&se();else{if(this.removeBackdrop(),this._backdrop.attach(Xo).to("body").show({isAnimated:this._config.animated}),this.backdrop=this._backdrop._componentRef,!se)return;if(!this._config.animated)return void se();setTimeout(se,150)}}removeBackdrop(){this._backdrop.hide()}focusOtherModal(){if(null==this._element.nativeElement.parentElement)return;const se=this._element.nativeElement.parentElement.querySelectorAll(".in[bsModal]");se.length&&se[se.length-1].focus()}resetAdjustments(){this._renderer.setStyle(this._element.nativeElement,"paddingLeft",""),this._renderer.setStyle(this._element.nativeElement,"paddingRight","")}checkScrollbar(){this.isBodyOverflowing=qe.body.clientWidth<Tn.innerWidth,this.scrollbarWidth=this.getScrollbarWidth()}setScrollbar(){qe&&(this.originalBodyPadding=parseInt(Tn.getComputedStyle(qe.body).getPropertyValue("padding-right")||0,10),this.isBodyOverflowing&&(qe.body.style.paddingRight=`${this.originalBodyPadding+this.scrollbarWidth}px`))}resetScrollbar(){qe.body.style.paddingRight=`${this.originalBodyPadding}px`}getScrollbarWidth(){const se=this._renderer.createElement("div");
129this._renderer.addClass(se,"modal-scrollbar-measure"),this._renderer.appendChild(qe.body,se);const Ue=se.offsetWidth-se.clientWidth;return this._renderer.removeChild(qe.body,se),Ue}}return J.\u0275fac=function(se){return new(se||J)(E.rXU(E.aKT),E.rXU(E.c1b),E.rXU(E.sFG),E.rXU(bd),E.rXU(Xl,8))},J.\u0275dir=E.FsC({type:J,selectors:[["","bsModal",""]],hostBindings:function(se,Ue){1&se&&E.bIt("mousedown",function(fn){return Ue.onClickStarted(fn)})("mouseup",function(fn){return Ue.onClickStop(fn)})("keydown.esc",function(fn){return Ue.onEsc(fn)})},inputs:{config:"config",closeInterceptor:"closeInterceptor"},outputs:{onShow:"onShow",onShown:"onShown",onHide:"onHide",onHidden:"onHidden"},exportAs:["bs-modal"]}),J})(),Jn=1,ee=(()=>{class J{constructor(se,Ue,nn){this.clf=Ue,this.modalDefaultOption=nn,this.onShow=new E.bkB,this.onShown=new E.bkB,this.onHide=new E.bkB,this.onHidden=new E.bkB,this.isBodyOverflowing=!1,this.originalBodyPadding=0,this.scrollbarWidth=0,this.modalsCount=0,this.loaders=[],this._backdropLoader=this.clf.createLoader(),this._renderer=se.createRenderer(null,null),this.config=nn?Object.assign({},Sa,nn):Sa}show(se,Ue){this.modalsCount++,this._createLoaders();const nn=Ue?.id||Jn++;return this.config=this.modalDefaultOption?Object.assign({},Sa,this.modalDefaultOption,Ue):Object.assign({},Sa,Ue),this.config.id=nn,this._showBackdrop(),this.lastDismissReason=void 0,this._showModal(se)}hide(se){(1===this.modalsCount||null==se)&&(this._hideBackdrop(),this.resetScrollbar()),this.modalsCount=this.modalsCount>=1&&null!=se?this.modalsCount-1:0,setTimeout(()=>{this._hideModal(se),this.removeLoaders(se)},this.config.animated?150:0)}_showBackdrop(){const se=!0===this.config.backdrop||"static"===this.config.backdrop,Ue=!this.backdropRef||!this.backdropRef.instance.isShown;1===this.modalsCount&&(this.removeBackdrop(),se&&Ue&&(this._backdropLoader.attach(Xo).to("body").show({isAnimated:this.config.animated}),this.backdropRef=this._backdropLoader._componentRef))}_hideBackdrop(){this.backdropRef&&(this.backdropRef.instance.isShown=!1,setTimeout(()=>this.removeBackdrop(),this.config.animated?150:0))}_showModal(se){const Ue=this.loaders[this.loaders.length-1];if(this.config&&this.config.providers)for(const Ci of this.config.providers)Ue.provide(Ci);const nn=new $d,fn=Ue.provide({provide:td,useValue:this.config}).provide({provide:$d,useValue:nn}).attach(Vo).to("body");return nn.hide=()=>fn.instance?.hide(),nn.setClass=Ci=>{fn.instance&&(fn.instance.config.class=Ci)},nn.onHidden=new E.bkB,nn.onHide=new E.bkB,this.copyEvent(Ue.onBeforeHide,nn.onHide),this.copyEvent(Ue.onHidden,nn.onHidden),fn.show({content:se,isAnimated:this.config.animated,initialState:this.config.initialState,bsModalService:this,id:this.config.id}),fn.instance&&(fn.instance.level=this.getModalsCount(),nn.content=Ue.getInnerComponent(),nn.id=fn.instance.config?.id),nn}_hideModal(se){if(null!=se){const Ue=this.loaders.findIndex(fn=>fn.instance?.config.id===se),nn=this.loaders[Ue];nn&&nn.hide(se)}else this.loaders.forEach(Ue=>{Ue.instance&&Ue.hide(Ue.instance.config.id)})}getModalsCount(){return this.modalsCount}setDismissReason(se){this.lastDismissReason=se}removeBackdrop(){this._renderer.removeClass(document.body,$a_OPEN),this._renderer.setStyle(document.body,"overflow-y",""),this._backdropLoader.hide(),this.backdropRef=void 0}checkScrollbar(){this.isBodyOverflowing=document.body.clientWidth<window.innerWidth,this.scrollbarWidth=this.getScrollbarWidth()}setScrollbar(){document&&(this.originalBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")||"0",10),this.isBodyOverflowing&&(document.body.style.paddingRight=`${this.originalBodyPadding+this.scrollbarWidth}px`))}resetScrollbar(){document.body.style.paddingRight=`${this.originalBodyPadding}px`}getScrollbarWidth(){const se=this._renderer.createElement("div");this._renderer.addClass(se,"modal-scrollbar-measure"),this._renderer.appendChild(document.body,se);const Ue=se.offsetWidth-se.clientWidth;return this._renderer.removeChild(document.body,se),Ue}_createLoaders(){const se=this.clf.createLoader();this.copyEvent(se.onBeforeShow,this.onShow),this.copyEvent(se.onShown,this.onShown),this.copyEvent(se.onBeforeHide,this.onHide),this.copyEvent(se.onHidden,this.onHidden
129),this.loaders.push(se)}removeLoaders(se){if(null!=se){const Ue=this.loaders.findIndex(nn=>nn.instance?.config.id===se);Ue>=0&&(this.loaders.splice(Ue,1),this.loaders.forEach((nn,fn)=>{nn.instance&&(nn.instance.level=fn+1)}))}else this.loaders.splice(0,this.loaders.length)}copyEvent(se,Ue){se.subscribe(nn=>{Ue.emit(this.lastDismissReason||nn)})}}return J.\u0275fac=function(se){return new(se||J)(E.KVO(E._9s),E.KVO(bd),E.KVO(Xl,8))},J.\u0275prov=E.jDH({token:J,factory:J.\u0275fac,providedIn:"platform"}),J})();Ia.forRoot();let Be=(()=>{class J{static forRoot(){return{ngModule:J,providers:[ee,bd,ju]}}static forChild(){return{ngModule:J,providers:[ee,bd,ju]}}}return J.\u0275fac=function(se){return new(se||J)},J.\u0275mod=E.$C({type:J}),J.\u0275inj=E.G2t({imports:[[Ia]]}),J})()},14972:(ys,Ha,bn)=>{"use strict";bn.d(Ha,{sN:()=>tn});var E=bn(93953);const xi=new E.nKC("NGX_ECHARTS_CONFIG"),u=e=>({provide:xi,useValue:e});let tn=(()=>{class e{static forRoot(qe){return{ngModule:e,providers:[u(qe)]}}static forChild(){return{ngModule:e}}static#e=this.\u0275fac=function(Ot){return new(Ot||e)};static#t=this.\u0275mod=E.$C({type:e});static#n=this.\u0275inj=E.G2t({})}return e})()},82284:(ys,Ha,bn)=>{"use strict";function E(Ie){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(xi){return typeof xi}:function(xi){return xi&&"function"==typeof Symbol&&xi.constructor===Symbol&&xi!==Symbol.prototype?"symbol":typeof xi})(Ie)}bn.d(Ha,{A:()=>E})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.