File manager - Edit - /home/autoph/public_html/projects/ahg-hr/assets/index.4b1c7ee0.js
Back
import{a as Xr,_ as Et,r as Y,o as re,c as Me,w as G,j as me,d as B,e as T,b as Le,k as St,J as hm,F as Cr,m as qp,C as Ub,f as Oa,t as Hr,h as zb,n as Gb,p as $o,X as jb,ai as nf,x as Wb,V as Hb,ah as oa,s as pm,S as Yb}from"./index.3a0d1437.js";import{I as Ht}from"./index.163ce270.js";import{L as Yt}from"./index.09b28a7f.js";import{C as or}from"./index.5a868516.js";import{F as Xt}from"./index.5338216a.js";/* empty css */import"./vue-cleave.min.da4c1c61.js";import{F as mm}from"./index.4888d65f.js";import{T as gm}from"./index.474be899.js";import{T as bm}from"./index.53519759.js";import{B as Qt}from"./index.95db1698.js";import{B as qb}from"./BackButton.0938db23.js";import{C as er}from"./CloseButton.f9c39bb8.js";import{C as Kb}from"./CreateButton.83988a87.js";/* empty css */import{S as Ut}from"./SubmitButton.53a3866c.js";import{U as tr}from"./UpdateButton.161928d8.js";import{E as Jb}from"./jspdf.es.min.a68db437.js";/* empty css */import{E as Xb}from"./EditButton.f8156944.js";import{D as Qb}from"./DeleteButton.3eb26d6c.js";import{V as Zb}from"./ViewButton.dc0ba0bc.js";import{F as $b}from"./FileService.9a8ade8c.js";import{E as Fr}from"./EmployeeService.0d36c049.js";import{i as vf,l as ey,A as ty,B as ry,g as sy,D as ay,M as oy,N as iy,O as ny,S as ly,V as jt,d as ym,h as Kp,b as wf,j as cy,e as fy,c as Rr,r as uy,f as dy,a as Dt}from"./array.057dff5d.js";import{L as Wt}from"./Loading.2fa16091.js";import{M as zt}from"./Multiselect.4d70245a.js";import{Q as _m}from"./vue-quill.esm-bundler.675f052c.js";import"./vue-quill.snow.08c5baab.js";import{F as vm}from"./index.a504f7c5.js";import{F as wm}from"./index.b440e312.js";import{A as qt}from"./main.esm.51ee4e77.js";import"./Loading.vue_vue_type_style_index_0_scoped_cbded5a2_lang.717f943d.js";/* empty css */import{T as cr}from"./index.1afee35e.js";import{V as fr}from"./VueSelect.0bd337ca.js";import{F as Zt}from"./index.463da3d2.js";import{T as ur}from"./index.e6d15a49.js";import{L as xf}from"./LeaveTypeService.4ec2c385.js";import{A as dr}from"./ActionCellRenderer.012f772e.js";import{C as ir}from"./CompanyService.335c4e27.js";import{D as yr}from"./DealershipService.65dee167.js";import{D as es}from"./DepartmentService.b6e0d2c2.js";import{P as Cf}from"./PayrollService.70811fd7.js";/* empty css */import{P as js}from"./PayrollDateService.a1bf2899.js";import"./jspdf.plugin.autotable.81fec704.js";import{D as Ps}from"./DivisionService.849bf539.js";import{G as hy}from"./GroupService.8a431bdb.js";import{J as _l}from"./JobClassficationService.4b92c33f.js";import{J as Rs}from"./JobTitleService.e1202c4d.js";import{S as py}from"./SalaryGradeService.50f49a00.js";import{S as xm}from"./SectionService.70d2587b.js";import{U as my}from"./UnitService.d6432c35.js";import"./lodash.7ba26c92.js";import{H as mt}from"./HelperService.b68c27b0.js";import{N as Ff}from"./NatureOfRequestService.b806d31b.js";import{M as gy}from"./MrfService.32758ad3.js";import{R as Cm}from"./index.c97bee89.js";import{P as by}from"./PayrollItemsService.0097dd66.js";import{L as Fm}from"./LoanTypeService.ad78ed58.js";const Vi="https://staging-ahg-hr-api.autohub.ph/api/v1/report",yy="https://staging-ahg-hr-api.autohub.ph/api/v1/report-module",_y="https://staging-ahg-hr-api.autohub.ph/api/v1/report-module-columns",vy="https://staging-ahg-hr-api.autohub.ph/api/v1/report-generation",wy="https://staging-ahg-hr-api.autohub.ph/api/v1/save-report-generated",xy="https://staging-ahg-hr-api.autohub.ph/api/v1/send-report-generated",Cy="https://staging-ahg-hr-api.autohub.ph/api/v1/get-save-report",tt={fetchRecords(s={}){return Xr.get(`${Vi}`,{params:s})},fetchRecord(s){return Xr.get(`${Vi}/${s}`)},async create(s,r){return Xr.post(`${Vi}/${s}`,r)},async update(s,r){return Xr.put(`${Vi}/${s}`,r)},async remove(s){return Xr.delete(`${Vi}/${s}`)},fetchReportModuleRecords(s={}){return Xr.get(`${yy}`,{params:s})},fetchReportModuleColumnRecord(s){return Xr.get(`${_y}/${s}`)},fetchGeneratedReport(s={}){return Xr.get(`${vy}`,{params:s})},fetchSavedReport(s={}){return Xr.get(`${Cy}`,{params:s})},GenerateAttendancePostingReport(s={}){return Xr.get("https://staging-ahg-hr-api.autohub.ph/api/v1/report-generation-attendance-posting",{params:s})},GenerateEmployeeTaxApplicationReport(s={}){return Xr.get("https://staging-ahg-hr-api.autohub.ph/api/v1/generation-employee-tax-application",{params:s})},GenerateEmployeePhilhealth(s={}){return Xr.get("https://staging-ahg-hr-api.autohub.ph/api/v1/generation-employee-philhealth",{params:s})},GenerateEmployeePagibig(s={}){return Xr.get("https://staging-ahg-hr-api.autohub.ph/api/v1/generation-employee-pagibig",{params:s})},GenerateHdmfLoan(s={}){return Xr.get("https://staging-ahg-hr-api.autohub.ph/api/v1/generation-hdmf-loan",{params:s})},GenerateEmployeeSSS(s={}){return Xr.get("https://staging-ahg-hr-api.autohub.ph/api/v1/generation-employee-sss",{params:s})},GenerateEmployeeFlags(s={}){return Xr.get("https://staging-ahg-hr-api.autohub.ph/api/v1/generation-employee-flags",{params:s})},GenerateEmployeeDeductions(s={}){return Xr.get("https://staging-ahg-hr-api.autohub.ph/api/v1/generation-employee-deductions",{params:s})},GenerateEmployeeAdjustments(s={}){return Xr.get("https://staging-ahg-hr-api.autohub.ph/api/v1/generation-employee-adjustments",{params:s})},GenerateEmployeeLoans(s={}){return Xr.get("https://staging-ahg-hr-api.autohub.ph/api/v1/generation-employee-loans",{params:s})},GeneratePayrollSummary(s={}){return Xr.get("https://staging-ahg-hr-api.autohub.ph/api/v1/generation-payroll-summary",{params:s})},async saveReport(s){return Xr.post(`${wy}`,s)},async sendReport(s){return Xr.post(`${xy}`,s)}};function Fy(s){return new Dy(s)}class Dy{constructor(r){this.type="lazy",this.__isYupSchema__=!0,this.__inputType=void 0,this.__outputType=void 0,this._resolve=(o,i={})=>{let t=this.builder(o,i);if(!vf(t))throw new TypeError("lazy() functions must return a valid schema");return t.resolve(i)},this.builder=r}resolve(r){return this._resolve(r.value,r)}cast(r,o){return this._resolve(r,o).cast(r,o)}validate(r,o,i){return this._resolve(r,o).validate(r,o,i)}validateSync(r,o){return this._resolve(r,o).validateSync(r,o)}validateAt(r,o,i){return this._resolve(o,i).validateAt(r,o,i)}validateSyncAt(r,o,i){return this._resolve(o,i).validateSyncAt(r,o,i)}describe(){return null}isValid(r,o){return this._resolve(r,o).isValid(r,o)}isValidSync(r,o){return this._resolve(r,o).isValidSync(r,o)}}function Ay(s){Object.keys(s).forEach(r=>{Object.keys(s[r]).forEach(o=>{ey[r][o]=s[r][o]})})}function Sy(s,r,o){if(!s||!vf(s.prototype))throw new TypeError("You must provide a yup schema constructor function");if(typeof r!="string")throw new TypeError("A Method name must be provided");if(typeof o!="function")throw new TypeError("Method function must be provided");s.prototype[r]=o}const Df=Object.freeze(Object.defineProperty({__proto__:null,ArraySchema:ty,BaseSchema:ry,BooleanSchema:sy,DateSchema:ay,MixedSchema:oy,NumberSchema:iy,ObjectSchema:ny,StringSchema:ly,ValidationError:jt,addMethod:Sy,array:ym,bool:Kp,boolean:Kp,date:wf,isSchema:vf,lazy:Fy,mixed:cy,number:fy,object:Rr,reach:uy,ref:dy,setLocale:Ay,string:Dt},Symbol.toStringTag,{value:"Module"})),Ey={components:{Button:Qt},props:{text:{type:String,default:null},btnClass:{type:String,default:"text-violet-400 hover:text-violet-500 py-2 px-1"},link:[String,Object],icon:{type:String,default:"solar:file-check-bold"},title:{type:String,default:"Download this record"},titleTheme:{type:String,default:"violet-500"},titleOffset:{type:Number,default:7}},setup(){}};function Ty(s,r,o,i,t,e){const u=Y("Button");return re(),Me(u,{btnClass:o.btnClass,icon:o.icon,iconClass:"text-xl",text:o.text??null,link:o.link,title:o.title,titleTheme:o.titleTheme},null,8,["btnClass","icon","text","link","title","titleTheme"])}const Ry=Et(Ey,[["render",Ty]]),ky={props:{showModal:{type:Boolean,default:!1}},components:{Icon:Ht,FileType:wm,Fileinput:vm,FormModal:mm,FormGroup:Xt,TextInput:bm,TextArea:gm,Button:Qt,SubmitButton:Ut,UpdateButton:tr,CloseButton:er,Loading:Wt,Multiselect:zt,QuillEditor:_m},data(){return{form:{employee_id:[],subject:"",message:""},errors:{},employees:[],setData:[],paginationPageSize:10,paginationPageSizeSelector:[10,25,50],loanName:"",attachment:"",state:{isEdit:!1,isSaving:!1,isLoading:!1,isEmployeeLoading:!1}}},computed:{activeCompany(){return this.$store.userSettings.getActiveCompany},activeDealer(){return this.$store.userSettings.getActiveDealership}},methods:{resetForm(){this.errors={},this.form={employee_id:[],subject:"",message:""}},confirmSubmit(s){s&&(s.preventDefault(),s.stopPropagation()),console.log("Form submitted:",this.form),this.errors={};let r=!1;(!this.form.message||!this.form.message.trim())&&(this.errors.message="Message is required",r=!0),!r&&(this.state.isSaving=!0,setTimeout(()=>{this.state.isSaving=!1,console.log("Report sent successfully"),this.$emit("record-submitted",this.setData),this.resetForm()},1e3))},async fetchEmployee(){this.state.isEmployeeLoading=!0;try{const s=await Fr.fetchAllEmployeeRecords({company_id:this.activeCompany,dealership_id:this.activeDealer});console.log("response",this.activeCompany),s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}catch(s){console.log(s)}finally{this.state.isEmployeeLoading=!1}},async loadRecord(s){console.log("Loading record:",s),this.resetForm(),this.setData=s,s&&(this.form.subject=`Report: ${s.title||s.name||"Report"}`)},closeModal(){console.log("Closing modal from child"),this.resetForm(),this.$emit("close-modal")},reload(){this.$emit("reload")}},watch:{showModal(s){console.log("Modal visibility changed:",s),s||this.resetForm()}},mounted(){this.fetchEmployee()}},Ly={class:"grid grid-cols-1 gap-2"},My={class:"col-span-6"},Oy={key:0,class:"text-[#ec4899]"},Py={class:"grid grid-cols-1 gap-2"};function Ny(s,r,o,i,t,e){const u=Y("Loading"),p=Y("Multiselect"),b=Y("FormGroup"),_=Y("TextInput"),w=Y("QuillEditor"),S=Y("Modal");return re(),Me(S,{title:"Send Report",active:o.showModal,onSubmit:e.confirmSubmit,onClose:e.closeModal,themeClass:"bg-gray-800",sizeClass:"lg:w-2/4"},{default:G(()=>[t.state.isLoading?(re(),Me(u,{key:0,text:"Fetching record"})):me("",!0),B("div",Ly,[T(b,{label:"Send To:"},{default:G(()=>[T(p,{placeholder:"",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[0]||(r[0]=A=>t.form.employee_id=A),options:t.employees,class:"form-multiselect w-full mt-2",mode:"tags","close-on-select":!1,loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",My,[T(b,{label:"Subject"},{default:G(()=>[T(_,{modelValue:t.form.subject,"onUpdate:modelValue":r[1]||(r[1]=A=>t.form.subject=A),error:t.errors.subject,isReadonly:!0,placeholder:"Subject",classInput:"h-[48px] w-full"},null,8,["modelValue","error"]),t.errors.subject?(re(),Le("div",Oy)):me("",!0)]),_:1})]),B("div",Py,[T(b,{label:"Message",isRequired:!0},{default:G(()=>[T(w,{theme:"snow",content:t.form.message,"onUpdate:content":r[2]||(r[2]=A=>t.form.message=A),contentType:"html",error:t.errors.message,classInput:"form-control",toolbar:"full",style:{height:"400px"}},null,8,["content","error"])]),_:1})])]),_:1},8,["active","onSubmit","onClose"])}const Iy=Et(ky,[["render",Ny]]),Vy={props:["params"],data(){return{state:{showModalSendReport:!1,isDownloading:!1,isLoadingPDF:!1}}},components:{EditButton:Xb,DeleteButton:Qb,ViewButton:Zb,FileReportButton:Ry,SendReport:Iy},computed:{canView(){return this.params.data.status>0},canEdit(){return this.params.data.status===0},canDelete(){return this.params.data.status===0}},methods:{view(){console.log(this.params.data),this.params.context.componentParent.viewRecord(this.params.data)},sendEmail(){console.log(this.params.data),this.params.context.componentParent.sendReport(this.params.data)},closeModal(){console.log("Closing modal from parent"),this.state.showModalSendReport=!1},onRecordSubmitted(s){console.log("Record submitted:",s),this.closeModal()},async attachmentRecord(){const s=this.params.data.attachment;if(this.state.isDownloading)return;this.state.isDownloading=!0;let r=await $b.Reader2("save_reports",s);r.includes(",")&&(r=r.split(",")[1]);let o;if(s.endsWith(".pdf"))o="application/pdf";else if(s.endsWith(".png"))o="image/png";else if(s.endsWith(".jpg")||s.endsWith(".jpeg"))o="image/jpeg";else if(s.endsWith(".svg"))o="image/svg+xml";else if(s.endsWith(".csv"))o="text/csv";else if(s.endsWith(".xlsx"))o="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";else if(s.endsWith(".xls"))o="application/vnd.ms-excel";else throw new Error("Unsupported file type");try{const i=atob(r),t=new Array(i.length);for(let _=0;_<i.length;_++)t[_]=i.charCodeAt(_);const e=new Uint8Array(t),u=new Blob([e],{type:o}),p=document.createElement("a"),b=URL.createObjectURL(u);p.href=b,p.download=s,document.body.appendChild(p),p.click(),document.body.removeChild(p),URL.revokeObjectURL(b)}catch(i){console.error("Error decoding base64:",i),console.log("Base64 string length:",r.length),console.log("First 100 chars:",r.substring(0,100))}finally{this.state.isDownloading=!1,this.state.isLoadingPDF=!1}},deleteRecord(){this.params.context.componentParent.deleteRecord(this.params.data.id)}}},By={class:"flex space-x-2"};function Uy(s,r,o,i,t,e){const u=Y("ViewButton"),p=Y("FileReportButton"),b=Y("EditButton"),_=Y("DeleteButton");return re(),Le("div",By,[T(u,{icon:"mingcute:transfer-vertical-line",title:"Use this report",onClick:St(e.view,["stop"])},null,8,["onClick"]),T(p,{icon:"codex:file",btnClass:"text-green-400 hover:text-green-500 py-2 px-1",onClick:St(e.attachmentRecord,["stop"])},null,8,["onClick"]),T(b,{icon:"iconoir:send-mail",title:"Send this report to",onClick:St(e.sendEmail,["stop"])},null,8,["onClick"]),T(_,{onClick:St(e.deleteRecord,["stop"])},null,8,["onClick"])])}const Jp=Et(Vy,[["render",Uy],["__scopeId","data-v-7faae257"]]),zy=["onClick"],Gy={class:"flex items-center gap-2"},jy={key:0},Wy={__name:"TreeItem",props:{model:Array,level:{type:Number,default:0}},emits:["tree-node-clicked"],setup(s,{emit:r}){const o=r,i=hm({});function t(b){return b.children&&b.children.length>0}function e(b){i.value[b.name]=!i.value[b.name]}function u(b){return!!i.value[b.name]}function p(b){e(b),o("tree-node-clicked",b)}return(b,_)=>{const w=Y("TreeItem",!0);return re(),Le("li",null,[(re(!0),Le(Cr,null,qp(s.model,S=>(re(),Le("div",{key:S.name},[B("div",{class:zb(["text-gray-500 hover:text-gray-900 hover:underline pb-2",{bold:t(S)}]),onClick:A=>p(S),style:Gb({"padding-left":`${s.level*20}px`})},[B("div",Gy,[T(Ub(Ht),{icon:t(S)?u(S)?"ph:folder-open-fill":"ph:folder-open-duotone":"ph:file-text"},null,8,["icon"]),Oa(" "+Hr(S.name),1)])],14,zy),t(S)?$o((re(),Le("ul",jy,[(re(!0),Le(Cr,null,qp(S.children,(A,E)=>(re(),Me(w,{model:[A],key:E,level:s.level+1.5,onTreeNodeClicked:p},null,8,["model","level"]))),128))],512)),[[jb,u(S)]]):me("",!0)]))),128))])}}},Hy={components:{QuillEditor:_m,ActionCellRendererReport:Jp,Icon:Ht,AgGridVue:qt,FileType:wm,Fileinput:vm,FormModal:mm,FormGroup:Xt,TextInput:bm,TextArea:gm,Button:Qt,SubmitButton:Ut,UpdateButton:tr,CloseButton:er,BackButton:qb,CreateButton:Kb,Loading:Wt,Multiselect:zt},data(){return{saveReportData:[],reloadData:[],setData:[],paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",flex:1},{field:"report_name",HeaderName:"Report Name",filter:!0,floatingFilter:!0,flex:2},{field:"columns",HeaderName:"Columns",filter:!0,floatingFilter:!0,flex:2},{field:"filters",HeaderName:"Filters",filter:!0,floatingFilter:!0,flex:2},{headerName:"Actions",cellRenderer:Jp,flex:1,cellRendererParams:{context:{componentParent:this}}}],form:{employee_id:[],subject:"",message:""},errors:{},employees:[],allEmployees:[],displayedEmployees:[],totalEmployees:0,currentPage:0,pageSize:100,searchQuery:"",reports:[],loanName:"",attachment:"",isSendingReport:!1,state:{isEdit:!1,isSaving:!1,isLoading:!1,isEmployeeLoading:!1,isLoadingMore:!1}}},computed:{hasMoreEmployees(){return this.displayedEmployees.length<this.totalEmployees},filteredEmployees(){if(!this.searchQuery||this.searchQuery.length<2)return this.displayedEmployees;const s=this.searchQuery.toLowerCase();return this.allEmployees.filter(r=>r.label.toLowerCase().includes(s)||r.value.toString().toLowerCase().includes(s))}},methods:{async submitReport(){try{await Rr().shape({employee_id:ym().of(Dt()).required("Employee field is required"),subject:Dt().required("Subject is required"),message:Dt().required("Message is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to send this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.value&&this.sendReportTo()})}catch(s){if(console.log(s),s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},async sendReportTo(){const s=new FormData;s.append("attachment",this.saveReportData.attachment),s.append("report_id",this.saveReportData.id),s.append("message",this.form.message),s.append("employee_id",this.form.employee_id),s.append("subject",this.form.subject),await tt.sendReport(s).then(r=>{r.status==201&&(this.$swal.fire({title:"Great!",text:"Record successfully saved.",icon:"success",timer:2e3}),this.state.isSaving=!1,this.state.showModal=!1,this.resetForm(),this.reload())}).catch(r=>{console.log(r),r.response.status==422?this.$swal.fire({title:"Ooops! something is wrong.",text:r.response.data.message,icon:"warning"}):this.$swal.fire({title:"Ooops! something is wrong.",text:"Please contact system administrator",icon:"error",timer:2e3})})},backToList(){this.isSendingReport=!1},viewRecord(s){this.reloadData=s,this.$emit("record-submitted",s),this.state.showModal=!1},sendReport(s){this.saveReportData=s,this.isSendingReport=!0,this.fetchEmployee(),console.log("send-report",s)},onGridReady(s){this.gridApi=s.api},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async loadRecord(s){this.state.isLoading=!0,this.reloadData=s,this.setData=this.reloadData.length>0?this.reloadData:s,console.log("setData",this.reloadData),this.reports=[],await tt.fetchSavedReport(this.setData).then(r=>{console.log(r.data),this.reports=r.data.map((o,i)=>({...o,"#":i+1,name:o.report_name,columns:o.columns,filters:o.filters}))}),this.state.isLoading=!1},closeModal(){this.isSendingReport=!1,this.state.showModal=!1},reload(){this.$emit("reload")},async fetchEmployee(){this.state.isEmployeeLoading=!0,this.currentPage=0,this.employees=[],this.allEmployees=[],this.displayedEmployees=[],this.searchQuery="";try{const s=await Fr.fetchAllEmployeeRecords({company_id:this.activeCompany,dealership_id:this.activeDealer});console.log("response",this.activeCompany),s.status==200&&(this.allEmployees=s.data.filter(r=>r.date_resign==null).map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.totalEmployees=this.allEmployees.length,this.loadInitialEmployees())}catch(s){console.log(s)}finally{this.state.isEmployeeLoading=!1}},loadInitialEmployees(){const r=Math.min(this.pageSize,this.allEmployees.length);this.displayedEmployees=this.allEmployees.slice(0,r),this.employees=[...this.displayedEmployees],this.currentPage=1},handleLoadMore(s){return s&&(s.preventDefault(),s.stopPropagation(),s.stopImmediatePropagation()),setTimeout(()=>{this.loadMoreEmployees()},0),!1},async loadMoreEmployees(){if(!(!this.hasMoreEmployees||this.state.isLoadingMore)){this.state.isLoadingMore=!0;try{await new Promise(i=>setTimeout(i,300));const s=this.currentPage*this.pageSize,r=Math.min(s+this.pageSize,this.allEmployees.length),o=this.allEmployees.slice(s,r);this.displayedEmployees=[...this.displayedEmployees,...o],this.employees=[...this.displayedEmployees],this.currentPage++,console.log(`Loaded ${o.length} more employees. Total displayed: ${this.displayedEmployees.length}`)}catch(s){console.log("Error loading more employees:",s)}finally{this.state.isLoadingMore=!1}}},handleSearch(s){this.searchQuery=s,(!s||s.length<2)&&(this.searchQuery="")},async deleteRecord(s){this.$swal.fire({title:"Are you sure?",text:"You want to delete this record?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes, delete it!",background:this.$store.themeSettingsStore.isDark?"#1e293b":"#fff"}).then(r=>{r.value&&(this.state.isDeleting=!0,tt.remove(s).then(o=>{console.log(o),o.status==201&&(this.$swal.fire({title:"Yaaay!",text:"Record has been deleted successfully.",type:"success",icon:"success",timer:2e3}),console.log("stored",this.reloadData),this.loadRecord(this.reloadData))}))}).catch(r=>{r.response&&r.response.status==401&&this.$swal.fire({title:"Ooops! something is wrong.",text:"Error deleting record. Please contact system administrator",type:"error",icon:"error",timer:2e3})}).finally(()=>{this.state.isDeleting=!1})}},mounted(){}},Yy={key:1},qy={class:"grid grid-cols-1 gap-2"},Ky={class:"relative"},Jy={key:1,class:"px-3 py-2 border-t border-gray-200 bg-gray-50 text-center text-sm text-gray-600 select-none",style:{"user-select":"none","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none"}},Xy={key:2,class:"px-3 py-2 border-t border-gray-200 bg-gray-50 text-center text-sm text-gray-500 select-none",style:{"user-select":"none","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none"}},Qy={key:3,class:"px-3 py-2 border-t border-gray-200 bg-gray-50 text-center text-sm text-gray-500 select-none",style:{"user-select":"none","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none"}},Zy={class:"col-span-6"},$y={key:0,class:"text-[#ec4899]"},e_={class:"grid grid-cols-1 gap-2 mb-4"},t_={class:"relative p-3 pr-4 flex items-center gap-3 border border-gray-200 bg-white rounded-md w-full max-w-md hover:shadow-sm transition"},r_={class:"text-indigo-500 text-3xl"},s_={class:"flex-1 min-w-0"},a_={class:"text-sm font-medium text-gray-800 truncate"},o_={class:"flex justify-end items-center gap-1"},i_={key:2},n_={class:"flex justify-normal items-center italic text-primary-700"},l_={class:"flex justify-normal items-center italic text-primary-700 mb-3"},c_={class:"text-slate-600 dark:text-slate-400 text-sm font-normal"},f_={class:"ag-grid-toolbar flex items-center justify-between px-4 py-2 bg-gray-100 border-t rounded-t-xl border-gray-200"},u_={class:"flex items-center gap-4"},d_={class:"relative z-10 flex items-center transition-colors duration-300 group-hover:text-white"},h_={class:"relative z-10 flex items-center transition-colors duration-300 group-hover:text-white"};function p_(s,r,o,i,t,e){const u=Y("Loading"),p=Y("Icon"),b=Y("Multiselect"),_=Y("FormGroup"),w=Y("TextInput"),S=Y("QuillEditor"),A=Y("BackButton"),E=Y("CreateButton"),M=Y("Button"),N=Y("ag-grid-vue"),q=Y("FormModal");return re(),Me(q,{title:`${t.setData.name} Report`,active:t.state.showModal,onSubmit:s.confirmSubmit,onClose:e.closeModal,themeClass:"bg-gray-800",sizeClass:"lg:w-3/4"},{default:G(()=>[t.state.isLoading?(re(),Me(u,{key:0,text:"Fetching record"})):me("",!0),t.isSendingReport?(re(),Le("div",Yy,[B("div",qy,[T(_,{label:"Send To:",isRequired:!0},{default:G(()=>[B("div",Ky,[T(b,{placeholder:"",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[3]||(r[3]=U=>t.form.employee_id=U),options:e.filteredEmployees,class:"form-multiselect w-full mt-2",mode:"tags","close-on-select":!1,onSearchChange:e.handleSearch,"filter-results":!1,"min-chars":0,"resolve-on-load":!1,delay:300,"can-clear":!0,"can-deselect":!0,ref:"employeeMultiselect"},{nooptions:G(()=>r[8]||(r[8]=[B("div",{class:"px-3 py-2 text-center text-sm text-gray-500"}," No employees found ",-1)])),afterlist:G(()=>[e.hasMoreEmployees&&!t.state.isLoadingMore&&!t.searchQuery?(re(),Le("div",{key:0,class:"flex items-center justify-center load-more-btn px-3 py-2 border-t border-gray-200 bg-gray-50 hover:bg-gray-100 cursor-pointer text-center text-sm text-blue-600 hover:text-blue-800 select-none",onClick:r[0]||(r[0]=St((...U)=>e.handleLoadMore&&e.handleLoadMore(...U),["stop","prevent"])),onMousedown:r[1]||(r[1]=St(()=>{},["stop","prevent"])),onMouseup:r[2]||(r[2]=St(()=>{},["stop","prevent"])),style:{"user-select":"none","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none"}},[T(p,{icon:"mdi:plus-circle-outline",class:"inline mr-1"}),Oa(" Load More Employees ("+Hr(t.totalEmployees-t.displayedEmployees.length)+" remaining) ",1)],32)):me("",!0),t.state.isLoadingMore?(re(),Le("div",Jy,[T(p,{icon:"mdi:loading",class:"inline mr-1 animate-spin"}),r[9]||(r[9]=Oa(" Loading more employees... "))])):me("",!0),!e.hasMoreEmployees&&t.displayedEmployees.length>100&&!t.searchQuery?(re(),Le("div",Xy," All employees loaded ")):me("",!0),t.searchQuery&&e.filteredEmployees.length===0?(re(),Le("div",Qy,' No employees found matching "'+Hr(t.searchQuery)+'" ',1)):me("",!0)]),_:1},8,["modelValue","options","onSearchChange"])])]),_:1})]),B("div",Zy,[T(_,{label:"Subject",isRequired:!0},{default:G(()=>[T(w,{modelValue:t.form.subject,"onUpdate:modelValue":r[4]||(r[4]=U=>t.form.subject=U),error:t.errors.subject,placeholder:"Subject",classInput:"h-[48px] w-full"},null,8,["modelValue","error"]),t.errors.subject?(re(),Le("div",$y)):me("",!0)]),_:1})]),B("div",e_,[T(_,{label:"Message",isRequired:!0},{default:G(()=>[T(S,{theme:"snow",content:t.form.message,"onUpdate:content":r[5]||(r[5]=U=>t.form.message=U),contentType:"html",error:t.errors.message,classInput:"form-control",toolbar:"full",style:{height:"400px"}},null,8,["content","error"])]),_:1})]),B("div",t_,[B("div",r_,[T(p,{icon:"fa-solid:file-alt"})]),B("div",s_,[B("div",a_,Hr(t.saveReportData.attachment),1),r[10]||(r[10]=B("div",{class:"text-xs text-gray-500"},"1.2 MB",-1))])]),B("div",o_,[T(A,{onClick:St(e.backToList,["stop"])},null,8,["onClick"]),T(E,{btnClass:"bg-indigo-500 text-white pl-3 py-2",text:"Send",icon:"iconoir:send-mail",title:"Send",onClick:St(e.submitReport,["stop"])},null,8,["onClick"])])])):(re(),Le("div",i_,[r[20]||(r[20]=B("div",{class:"flex justify-normal items-center italic text-gray-500"}," Quick Guide: ",-1)),B("div",n_,[r[11]||(r[11]=Oa(" ")),T(p,{icon:"mingcute:transfer-vertical-line",class:"text-amber-400 hover:text-amber-500"}),r[12]||(r[12]=Oa(" Icon will transfer/use the data to report generation page "))]),B("div",l_,[r[13]||(r[13]=Oa(" ")),T(p,{icon:"iconoir:send-mail",class:"text-primary-500 hover:text-primary-700"}),r[14]||(r[14]=Oa(" Icon will send the report to the person "))]),B("div",c_,[B("form",{onSubmit:r[7]||(r[7]=St((...U)=>s.confirmSubmit&&s.confirmSubmit(...U),["prevent"])),class:""},[B("div",f_,[r[19]||(r[19]=B("div",{class:"flex items-center justify-center gap-4 text-gray-900 text-lg font-bold"},null,-1)),B("div",u_,[T(M,{icon:"mdi:microsoft-excel",text:"Export to CSV",btnClass:"relative overflow-hidden font-normal px-4 py-2 rounded-lg shadow-md bg-white text-gray-900 border group transition-colors duration-300 group-hover:border-green-500",iconClass:"text-2xl",onClick:e.exportToCsv},{default:G(()=>[r[16]||(r[16]=B("span",{class:"absolute inset-0 bg-green-500 transition-transform duration-300 transform -translate-x-full group-hover:translate-x-0"},null,-1)),B("span",d_,[T(p,{icon:"mdi:microsoft-excel",class:"text-2xl mr-2"}),r[15]||(r[15]=Oa(" Export to CSV "))])]),_:1},8,["onClick"]),t.attachment?(re(),Me(M,{key:0,icon:"line-md:downloading-loop",text:"Export to CSV",btnClass:"relative overflow-hidden font-normal px-4 py-2 rounded-lg shadow-md bg-white text-gray-900 border group transition-colors duration-300 group-hover:border-blue-500",iconClass:"text-2xl",onClick:r[6]||(r[6]=U=>s.viewAttachment(t.attachment))},{default:G(()=>[r[18]||(r[18]=B("span",{class:"absolute inset-0 bg-blue-500 transition-transform duration-300 transform -translate-x-full group-hover:translate-x-0"},null,-1)),B("span",h_,[T(p,{icon:"line-md:downloading-loop",class:"text-2xl mr-2"}),r[17]||(r[17]=Oa(" View Attached File "))])]),_:1})):me("",!0)])]),T(N,{ref:"agGrid",rowData:t.reports,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])],32)])]))]),_:1},8,["title","active","onSubmit","onClose"])}const m_=Et(Hy,[["render",p_]]),g_="/assets/20943555.23dd355e.jpg";/*! * Chart.js v3.9.1 * https://www.chartjs.org * (c) 2022 Chart.js Contributors * Released under the MIT License */function Ma(){}const b_=function(){let s=0;return function(){return s++}}();function xr(s){return s===null||typeof s>"u"}function Br(s){if(Array.isArray&&Array.isArray(s))return!0;const r=Object.prototype.toString.call(s);return r.slice(0,7)==="[object"&&r.slice(-6)==="Array]"}function br(s){return s!==null&&Object.prototype.toString.call(s)==="[object Object]"}const ys=s=>(typeof s=="number"||s instanceof Number)&&isFinite(+s);function ta(s,r){return ys(s)?s:r}function Gt(s,r){return typeof s>"u"?r:s}const y_=(s,r)=>typeof s=="string"&&s.endsWith("%")?parseFloat(s)/100:s/r,Dm=(s,r)=>typeof s=="string"&&s.endsWith("%")?parseFloat(s)/100*r:+s;function Pr(s,r,o){if(s&&typeof s.call=="function")return s.apply(o,r)}function Sr(s,r,o,i){let t,e,u;if(Br(s))if(e=s.length,i)for(t=e-1;t>=0;t--)r.call(o,s[t],t);else for(t=0;t<e;t++)r.call(o,s[t],t);else if(br(s))for(u=Object.keys(s),e=u.length,t=0;t<e;t++)r.call(o,s[u[t]],u[t])}function fl(s,r){let o,i,t,e;if(!s||!r||s.length!==r.length)return!1;for(o=0,i=s.length;o<i;++o)if(t=s[o],e=r[o],t.datasetIndex!==e.datasetIndex||t.index!==e.index)return!1;return!0}function ul(s){if(Br(s))return s.map(ul);if(br(s)){const r=Object.create(null),o=Object.keys(s),i=o.length;let t=0;for(;t<i;++t)r[o[t]]=ul(s[o[t]]);return r}return s}function Am(s){return["__proto__","prototype","constructor"].indexOf(s)===-1}function __(s,r,o,i){if(!Am(s))return;const t=r[s],e=o[s];br(t)&&br(e)?Zi(t,e,i):r[s]=ul(e)}function Zi(s,r,o){const i=Br(r)?r:[r],t=i.length;if(!br(s))return s;o=o||{};const e=o.merger||__;for(let u=0;u<t;++u){if(r=i[u],!br(r))continue;const p=Object.keys(r);for(let b=0,_=p.length;b<_;++b)e(p[b],s,r,o)}return s}function qi(s,r){return Zi(s,r,{merger:v_})}function v_(s,r,o){if(!Am(s))return;const i=r[s],t=o[s];br(i)&&br(t)?qi(i,t):Object.prototype.hasOwnProperty.call(r,s)||(r[s]=ul(t))}const Xp={"":s=>s,x:s=>s.x,y:s=>s.y};function Xa(s,r){return(Xp[r]||(Xp[r]=w_(r)))(s)}function w_(s){const r=x_(s);return o=>{for(const i of r){if(i==="")break;o=o&&o[i]}return o}}function x_(s){const r=s.split("."),o=[];let i="";for(const t of r)i+=t,i.endsWith("\\")?i=i.slice(0,-1)+".":(o.push(i),i="");return o}function Af(s){return s.charAt(0).toUpperCase()+s.slice(1)}const aa=s=>typeof s<"u",Qa=s=>typeof s=="function",Qp=(s,r)=>{if(s.size!==r.size)return!1;for(const o of s)if(!r.has(o))return!1;return!0};function C_(s){return s.type==="mouseup"||s.type==="click"||s.type==="contextmenu"}const zr=Math.PI,Or=2*zr,F_=Or+zr,dl=Number.POSITIVE_INFINITY,D_=zr/180,Qr=zr/2,Bi=zr/4,Zp=zr*2/3,ra=Math.log10,Fa=Math.sign;function $p(s){const r=Math.round(s);s=Ki(s,r,s/1e3)?r:s;const o=Math.pow(10,Math.floor(ra(s))),i=s/o;return(i<=1?1:i<=2?2:i<=5?5:10)*o}function A_(s){const r=[],o=Math.sqrt(s);let i;for(i=1;i<o;i++)s%i===0&&(r.push(i),r.push(s/i));return o===(o|0)&&r.push(o),r.sort((t,e)=>t-e).pop(),r}function ei(s){return!isNaN(parseFloat(s))&&isFinite(s)}function Ki(s,r,o){return Math.abs(s-r)<o}function S_(s,r){const o=Math.round(s);return o-r<=s&&o+r>=s}function Sm(s,r,o){let i,t,e;for(i=0,t=s.length;i<t;i++)e=s[i][o],isNaN(e)||(r.min=Math.min(r.min,e),r.max=Math.max(r.max,e))}function fa(s){return s*(zr/180)}function Sf(s){return s*(180/zr)}function e0(s){if(!ys(s))return;let r=1,o=0;for(;Math.round(s*r)/r!==s;)r*=10,o++;return o}function Em(s,r){const o=r.x-s.x,i=r.y-s.y,t=Math.sqrt(o*o+i*i);let e=Math.atan2(i,o);return e<-.5*zr&&(e+=Or),{angle:e,distance:t}}function lf(s,r){return Math.sqrt(Math.pow(r.x-s.x,2)+Math.pow(r.y-s.y,2))}function E_(s,r){return(s-r+F_)%Or-zr}function ca(s){return(s%Or+Or)%Or}function $i(s,r,o,i){const t=ca(s),e=ca(r),u=ca(o),p=ca(e-t),b=ca(u-t),_=ca(t-e),w=ca(t-u);return t===e||t===u||i&&e===u||p>b&&_<w}function Es(s,r,o){return Math.max(r,Math.min(o,s))}function T_(s){return Es(s,-32768,32767)}function Ya(s,r,o,i=1e-6){return s>=Math.min(r,o)-i&&s<=Math.max(r,o)+i}function Ef(s,r,o){o=o||(u=>s[u]<r);let i=s.length-1,t=0,e;for(;i-t>1;)e=t+i>>1,o(e)?t=e:i=e;return{lo:t,hi:i}}const Co=(s,r,o,i)=>Ef(s,o,i?t=>s[t][r]<=o:t=>s[t][r]<o),R_=(s,r,o)=>Ef(s,o,i=>s[i][r]>=o);function k_(s,r,o){let i=0,t=s.length;for(;i<t&&s[i]<r;)i++;for(;t>i&&s[t-1]>o;)t--;return i>0||t<s.length?s.slice(i,t):s}const Tm=["push","pop","shift","splice","unshift"];function L_(s,r){if(s._chartjs){s._chartjs.listeners.push(r);return}Object.defineProperty(s,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[r]}}),Tm.forEach(o=>{const i="_onData"+Af(o),t=s[o];Object.defineProperty(s,o,{configurable:!0,enumerable:!1,value(...e){const u=t.apply(this,e);return s._chartjs.listeners.forEach(p=>{typeof p[i]=="function"&&p[i](...e)}),u}})})}function t0(s,r){const o=s._chartjs;if(!o)return;const i=o.listeners,t=i.indexOf(r);t!==-1&&i.splice(t,1),!(i.length>0)&&(Tm.forEach(e=>{delete s[e]}),delete s._chartjs)}function Rm(s){const r=new Set;let o,i;for(o=0,i=s.length;o<i;++o)r.add(s[o]);return r.size===i?s:Array.from(r)}const km=function(){return typeof window>"u"?function(s){return s()}:window.requestAnimationFrame}();function Lm(s,r,o){const i=o||(u=>Array.prototype.slice.call(u));let t=!1,e=[];return function(...u){e=i(u),t||(t=!0,km.call(window,()=>{t=!1,s.apply(r,e)}))}}function M_(s,r){let o;return function(...i){return r?(clearTimeout(o),o=setTimeout(s,r,i)):s.apply(this,i),r}}const Tf=s=>s==="start"?"left":s==="end"?"right":"center",Ss=(s,r,o)=>s==="start"?r:s==="end"?o:(r+o)/2,O_=(s,r,o,i)=>s===(i?"left":"right")?o:s==="center"?(r+o)/2:r;function Mm(s,r,o){const i=r.length;let t=0,e=i;if(s._sorted){const{iScale:u,_parsed:p}=s,b=u.axis,{min:_,max:w,minDefined:S,maxDefined:A}=u.getUserBounds();S&&(t=Es(Math.min(Co(p,u.axis,_).lo,o?i:Co(r,b,u.getPixelForValue(_)).lo),0,i-1)),A?e=Es(Math.max(Co(p,u.axis,w,!0).hi+1,o?0:Co(r,b,u.getPixelForValue(w),!0).hi+1),t,i)-t:e=i-t}return{start:t,count:e}}function Om(s){const{xScale:r,yScale:o,_scaleRanges:i}=s,t={xmin:r.min,xmax:r.max,ymin:o.min,ymax:o.max};if(!i)return s._scaleRanges=t,!0;const e=i.xmin!==r.min||i.xmax!==r.max||i.ymin!==o.min||i.ymax!==o.max;return Object.assign(i,t),e}const Xn=s=>s===0||s===1,r0=(s,r,o)=>-(Math.pow(2,10*(s-=1))*Math.sin((s-r)*Or/o)),s0=(s,r,o)=>Math.pow(2,-10*s)*Math.sin((s-r)*Or/o)+1,Ji={linear:s=>s,easeInQuad:s=>s*s,easeOutQuad:s=>-s*(s-2),easeInOutQuad:s=>(s/=.5)<1?.5*s*s:-.5*(--s*(s-2)-1),easeInCubic:s=>s*s*s,easeOutCubic:s=>(s-=1)*s*s+1,easeInOutCubic:s=>(s/=.5)<1?.5*s*s*s:.5*((s-=2)*s*s+2),easeInQuart:s=>s*s*s*s,easeOutQuart:s=>-((s-=1)*s*s*s-1),easeInOutQuart:s=>(s/=.5)<1?.5*s*s*s*s:-.5*((s-=2)*s*s*s-2),easeInQuint:s=>s*s*s*s*s,easeOutQuint:s=>(s-=1)*s*s*s*s+1,easeInOutQuint:s=>(s/=.5)<1?.5*s*s*s*s*s:.5*((s-=2)*s*s*s*s+2),easeInSine:s=>-Math.cos(s*Qr)+1,easeOutSine:s=>Math.sin(s*Qr),easeInOutSine:s=>-.5*(Math.cos(zr*s)-1),easeInExpo:s=>s===0?0:Math.pow(2,10*(s-1)),easeOutExpo:s=>s===1?1:-Math.pow(2,-10*s)+1,easeInOutExpo:s=>Xn(s)?s:s<.5?.5*Math.pow(2,10*(s*2-1)):.5*(-Math.pow(2,-10*(s*2-1))+2),easeInCirc:s=>s>=1?s:-(Math.sqrt(1-s*s)-1),easeOutCirc:s=>Math.sqrt(1-(s-=1)*s),easeInOutCirc:s=>(s/=.5)<1?-.5*(Math.sqrt(1-s*s)-1):.5*(Math.sqrt(1-(s-=2)*s)+1),easeInElastic:s=>Xn(s)?s:r0(s,.075,.3),easeOutElastic:s=>Xn(s)?s:s0(s,.075,.3),easeInOutElastic(s){return Xn(s)?s:s<.5?.5*r0(s*2,.1125,.45):.5+.5*s0(s*2-1,.1125,.45)},easeInBack(s){return s*s*((1.70158+1)*s-1.70158)},easeOutBack(s){return(s-=1)*s*((1.70158+1)*s+1.70158)+1},easeInOutBack(s){let r=1.70158;return(s/=.5)<1?.5*(s*s*(((r*=1.525)+1)*s-r)):.5*((s-=2)*s*(((r*=1.525)+1)*s+r)+2)},easeInBounce:s=>1-Ji.easeOutBounce(1-s),easeOutBounce(s){return s<1/2.75?7.5625*s*s:s<2/2.75?7.5625*(s-=1.5/2.75)*s+.75:s<2.5/2.75?7.5625*(s-=2.25/2.75)*s+.9375:7.5625*(s-=2.625/2.75)*s+.984375},easeInOutBounce:s=>s<.5?Ji.easeInBounce(s*2)*.5:Ji.easeOutBounce(s*2-1)*.5+.5};/*! * @kurkle/color v0.2.1 * https://github.com/kurkle/color#readme * (c) 2022 Jukka Kurkela * Released under the MIT License */function sn(s){return s+.5|0}const qa=(s,r,o)=>Math.max(Math.min(s,o),r);function Hi(s){return qa(sn(s*2.55),0,255)}function Ja(s){return qa(sn(s*255),0,255)}function Ia(s){return qa(sn(s/2.55)/100,0,1)}function a0(s){return qa(sn(s*100),0,100)}const ea={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},cf=[..."0123456789ABCDEF"],P_=s=>cf[s&15],N_=s=>cf[(s&240)>>4]+cf[s&15],Qn=s=>(s&240)>>4===(s&15),I_=s=>Qn(s.r)&&Qn(s.g)&&Qn(s.b)&&Qn(s.a);function V_(s){var r=s.length,o;return s[0]==="#"&&(r===4||r===5?o={r:255&ea[s[1]]*17,g:255&ea[s[2]]*17,b:255&ea[s[3]]*17,a:r===5?ea[s[4]]*17:255}:(r===7||r===9)&&(o={r:ea[s[1]]<<4|ea[s[2]],g:ea[s[3]]<<4|ea[s[4]],b:ea[s[5]]<<4|ea[s[6]],a:r===9?ea[s[7]]<<4|ea[s[8]]:255})),o}const B_=(s,r)=>s<255?r(s):"";function U_(s){var r=I_(s)?P_:N_;return s?"#"+r(s.r)+r(s.g)+r(s.b)+B_(s.a,r):void 0}const z_=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Pm(s,r,o){const i=r*Math.min(o,1-o),t=(e,u=(e+s/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);return[t(0),t(8),t(4)]}function G_(s,r,o){const i=(t,e=(t+s/60)%6)=>o-o*r*Math.max(Math.min(e,4-e,1),0);return[i(5),i(3),i(1)]}function j_(s,r,o){const i=Pm(s,1,.5);let t;for(r+o>1&&(t=1/(r+o),r*=t,o*=t),t=0;t<3;t++)i[t]*=1-r-o,i[t]+=r;return i}function W_(s,r,o,i,t){return s===t?(r-o)/i+(r<o?6:0):r===t?(o-s)/i+2:(s-r)/i+4}function Rf(s){const o=s.r/255,i=s.g/255,t=s.b/255,e=Math.max(o,i,t),u=Math.min(o,i,t),p=(e+u)/2;let b,_,w;return e!==u&&(w=e-u,_=p>.5?w/(2-e-u):w/(e+u),b=W_(o,i,t,w,e),b=b*60+.5),[b|0,_||0,p]}function kf(s,r,o,i){return(Array.isArray(r)?s(r[0],r[1],r[2]):s(r,o,i)).map(Ja)}function Lf(s,r,o){return kf(Pm,s,r,o)}function H_(s,r,o){return kf(j_,s,r,o)}function Y_(s,r,o){return kf(G_,s,r,o)}function Nm(s){return(s%360+360)%360}function q_(s){const r=z_.exec(s);let o=255,i;if(!r)return;r[5]!==i&&(o=r[6]?Hi(+r[5]):Ja(+r[5]));const t=Nm(+r[2]),e=+r[3]/100,u=+r[4]/100;return r[1]==="hwb"?i=H_(t,e,u):r[1]==="hsv"?i=Y_(t,e,u):i=Lf(t,e,u),{r:i[0],g:i[1],b:i[2],a:o}}function K_(s,r){var o=Rf(s);o[0]=Nm(o[0]+r),o=Lf(o),s.r=o[0],s.g=o[1],s.b=o[2]}function J_(s){if(!s)return;const r=Rf(s),o=r[0],i=a0(r[1]),t=a0(r[2]);return s.a<255?`hsla(${o}, ${i}%, ${t}%, ${Ia(s.a)})`:`hsl(${o}, ${i}%, ${t}%)`}const o0={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},i0={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function X_(){const s={},r=Object.keys(i0),o=Object.keys(o0);let i,t,e,u,p;for(i=0;i<r.length;i++){for(u=p=r[i],t=0;t<o.length;t++)e=o[t],p=p.replace(e,o0[e]);e=parseInt(i0[u],16),s[p]=[e>>16&255,e>>8&255,e&255]}return s}let Zn;function Q_(s){Zn||(Zn=X_(),Zn.transparent=[0,0,0,0]);const r=Zn[s.toLowerCase()];return r&&{r:r[0],g:r[1],b:r[2],a:r.length===4?r[3]:255}}const Z_=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function $_(s){const r=Z_.exec(s);let o=255,i,t,e;if(r){if(r[7]!==i){const u=+r[7];o=r[8]?Hi(u):qa(u*255,0,255)}return i=+r[1],t=+r[3],e=+r[5],i=255&(r[2]?Hi(i):qa(i,0,255)),t=255&(r[4]?Hi(t):qa(t,0,255)),e=255&(r[6]?Hi(e):qa(e,0,255)),{r:i,g:t,b:e,a:o}}}function ev(s){return s&&(s.a<255?`rgba(${s.r}, ${s.g}, ${s.b}, ${Ia(s.a)})`:`rgb(${s.r}, ${s.g}, ${s.b})`)}const Yc=s=>s<=.0031308?s*12.92:Math.pow(s,1/2.4)*1.055-.055,Xo=s=>s<=.04045?s/12.92:Math.pow((s+.055)/1.055,2.4);function tv(s,r,o){const i=Xo(Ia(s.r)),t=Xo(Ia(s.g)),e=Xo(Ia(s.b));return{r:Ja(Yc(i+o*(Xo(Ia(r.r))-i))),g:Ja(Yc(t+o*(Xo(Ia(r.g))-t))),b:Ja(Yc(e+o*(Xo(Ia(r.b))-e))),a:s.a+o*(r.a-s.a)}}function $n(s,r,o){if(s){let i=Rf(s);i[r]=Math.max(0,Math.min(i[r]+i[r]*o,r===0?360:1)),i=Lf(i),s.r=i[0],s.g=i[1],s.b=i[2]}}function Im(s,r){return s&&Object.assign(r||{},s)}function n0(s){var r={r:0,g:0,b:0,a:255};return Array.isArray(s)?s.length>=3&&(r={r:s[0],g:s[1],b:s[2],a:255},s.length>3&&(r.a=Ja(s[3]))):(r=Im(s,{r:0,g:0,b:0,a:1}),r.a=Ja(r.a)),r}function rv(s){return s.charAt(0)==="r"?$_(s):q_(s)}class hl{constructor(r){if(r instanceof hl)return r;const o=typeof r;let i;o==="object"?i=n0(r):o==="string"&&(i=V_(r)||Q_(r)||rv(r)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var r=Im(this._rgb);return r&&(r.a=Ia(r.a)),r}set rgb(r){this._rgb=n0(r)}rgbString(){return this._valid?ev(this._rgb):void 0}hexString(){return this._valid?U_(this._rgb):void 0}hslString(){return this._valid?J_(this._rgb):void 0}mix(r,o){if(r){const i=this.rgb,t=r.rgb;let e;const u=o===e?.5:o,p=2*u-1,b=i.a-t.a,_=((p*b===-1?p:(p+b)/(1+p*b))+1)/2;e=1-_,i.r=255&_*i.r+e*t.r+.5,i.g=255&_*i.g+e*t.g+.5,i.b=255&_*i.b+e*t.b+.5,i.a=u*i.a+(1-u)*t.a,this.rgb=i}return this}interpolate(r,o){return r&&(this._rgb=tv(this._rgb,r._rgb,o)),this}clone(){return new hl(this.rgb)}alpha(r){return this._rgb.a=Ja(r),this}clearer(r){const o=this._rgb;return o.a*=1-r,this}greyscale(){const r=this._rgb,o=sn(r.r*.3+r.g*.59+r.b*.11);return r.r=r.g=r.b=o,this}opaquer(r){const o=this._rgb;return o.a*=1+r,this}negate(){const r=this._rgb;return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,this}lighten(r){return $n(this._rgb,2,r),this}darken(r){return $n(this._rgb,2,-r),this}saturate(r){return $n(this._rgb,1,r),this}desaturate(r){return $n(this._rgb,1,-r),this}rotate(r){return K_(this._rgb,r),this}}function Vm(s){return new hl(s)}function Bm(s){if(s&&typeof s=="object"){const r=s.toString();return r==="[object CanvasPattern]"||r==="[object CanvasGradient]"}return!1}function l0(s){return Bm(s)?s:Vm(s)}function qc(s){return Bm(s)?s:Vm(s).saturate(.5).darken(.1).hexString()}const Ao=Object.create(null),ff=Object.create(null);function Xi(s,r){if(!r)return s;const o=r.split(".");for(let i=0,t=o.length;i<t;++i){const e=o[i];s=s[e]||(s[e]=Object.create(null))}return s}function Kc(s,r,o){return typeof r=="string"?Zi(Xi(s,r),o):Zi(Xi(s,""),r)}class sv{constructor(r){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=o=>o.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(o,i)=>qc(i.backgroundColor),this.hoverBorderColor=(o,i)=>qc(i.borderColor),this.hoverColor=(o,i)=>qc(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(r)}set(r,o){return Kc(this,r,o)}get(r){return Xi(this,r)}describe(r,o){return Kc(ff,r,o)}override(r,o){return Kc(Ao,r,o)}route(r,o,i,t){const e=Xi(this,r),u=Xi(this,i),p="_"+o;Object.defineProperties(e,{[p]:{value:e[o],writable:!0},[o]:{enumerable:!0,get(){const b=this[p],_=u[t];return br(b)?Object.assign({},_,b):Gt(b,_)},set(b){this[p]=b}}})}}var lr=new sv({_scriptable:s=>!s.startsWith("on"),_indexable:s=>s!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function av(s){return!s||xr(s.size)||xr(s.family)?null:(s.style?s.style+" ":"")+(s.weight?s.weight+" ":"")+s.size+"px "+s.family}function pl(s,r,o,i,t){let e=r[t];return e||(e=r[t]=s.measureText(t).width,o.push(t)),e>i&&(i=e),i}function ov(s,r,o,i){i=i||{};let t=i.data=i.data||{},e=i.garbageCollect=i.garbageCollect||[];i.font!==r&&(t=i.data={},e=i.garbageCollect=[],i.font=r),s.save(),s.font=r;let u=0;const p=o.length;let b,_,w,S,A;for(b=0;b<p;b++)if(S=o[b],S!=null&&Br(S)!==!0)u=pl(s,t,e,u,S);else if(Br(S))for(_=0,w=S.length;_<w;_++)A=S[_],A!=null&&!Br(A)&&(u=pl(s,t,e,u,A));s.restore();const E=e.length/2;if(E>o.length){for(b=0;b<E;b++)delete t[e[b]];e.splice(0,E)}return u}function _o(s,r,o){const i=s.currentDevicePixelRatio,t=o!==0?Math.max(o/2,.5):0;return Math.round((r-t)*i)/i+t}function c0(s,r){r=r||s.getContext("2d"),r.save(),r.resetTransform(),r.clearRect(0,0,s.width,s.height),r.restore()}function uf(s,r,o,i){Um(s,r,o,i,null)}function Um(s,r,o,i,t){let e,u,p,b,_,w;const S=r.pointStyle,A=r.rotation,E=r.radius;let M=(A||0)*D_;if(S&&typeof S=="object"&&(e=S.toString(),e==="[object HTMLImageElement]"||e==="[object HTMLCanvasElement]")){s.save(),s.translate(o,i),s.rotate(M),s.drawImage(S,-S.width/2,-S.height/2,S.width,S.height),s.restore();return}if(!(isNaN(E)||E<=0)){switch(s.beginPath(),S){default:t?s.ellipse(o,i,t/2,E,0,0,Or):s.arc(o,i,E,0,Or),s.closePath();break;case"triangle":s.moveTo(o+Math.sin(M)*E,i-Math.cos(M)*E),M+=Zp,s.lineTo(o+Math.sin(M)*E,i-Math.cos(M)*E),M+=Zp,s.lineTo(o+Math.sin(M)*E,i-Math.cos(M)*E),s.closePath();break;case"rectRounded":_=E*.516,b=E-_,u=Math.cos(M+Bi)*b,p=Math.sin(M+Bi)*b,s.arc(o-u,i-p,_,M-zr,M-Qr),s.arc(o+p,i-u,_,M-Qr,M),s.arc(o+u,i+p,_,M,M+Qr),s.arc(o-p,i+u,_,M+Qr,M+zr),s.closePath();break;case"rect":if(!A){b=Math.SQRT1_2*E,w=t?t/2:b,s.rect(o-w,i-b,2*w,2*b);break}M+=Bi;case"rectRot":u=Math.cos(M)*E,p=Math.sin(M)*E,s.moveTo(o-u,i-p),s.lineTo(o+p,i-u),s.lineTo(o+u,i+p),s.lineTo(o-p,i+u),s.closePath();break;case"crossRot":M+=Bi;case"cross":u=Math.cos(M)*E,p=Math.sin(M)*E,s.moveTo(o-u,i-p),s.lineTo(o+u,i+p),s.moveTo(o+p,i-u),s.lineTo(o-p,i+u);break;case"star":u=Math.cos(M)*E,p=Math.sin(M)*E,s.moveTo(o-u,i-p),s.lineTo(o+u,i+p),s.moveTo(o+p,i-u),s.lineTo(o-p,i+u),M+=Bi,u=Math.cos(M)*E,p=Math.sin(M)*E,s.moveTo(o-u,i-p),s.lineTo(o+u,i+p),s.moveTo(o+p,i-u),s.lineTo(o-p,i+u);break;case"line":u=t?t/2:Math.cos(M)*E,p=Math.sin(M)*E,s.moveTo(o-u,i-p),s.lineTo(o+u,i+p);break;case"dash":s.moveTo(o,i),s.lineTo(o+Math.cos(M)*E,i+Math.sin(M)*E);break}s.fill(),r.borderWidth>0&&s.stroke()}}function en(s,r,o){return o=o||.5,!r||s&&s.x>r.left-o&&s.x<r.right+o&&s.y>r.top-o&&s.y<r.bottom+o}function Mf(s,r){s.save(),s.beginPath(),s.rect(r.left,r.top,r.right-r.left,r.bottom-r.top),s.clip()}function Of(s){s.restore()}function iv(s,r,o,i,t){if(!r)return s.lineTo(o.x,o.y);if(t==="middle"){const e=(r.x+o.x)/2;s.lineTo(e,r.y),s.lineTo(e,o.y)}else t==="after"!=!!i?s.lineTo(r.x,o.y):s.lineTo(o.x,r.y);s.lineTo(o.x,o.y)}function nv(s,r,o,i){if(!r)return s.lineTo(o.x,o.y);s.bezierCurveTo(i?r.cp1x:r.cp2x,i?r.cp1y:r.cp2y,i?o.cp2x:o.cp1x,i?o.cp2y:o.cp1y,o.x,o.y)}function So(s,r,o,i,t,e={}){const u=Br(r)?r:[r],p=e.strokeWidth>0&&e.strokeColor!=="";let b,_;for(s.save(),s.font=t.string,lv(s,e),b=0;b<u.length;++b)_=u[b],p&&(e.strokeColor&&(s.strokeStyle=e.strokeColor),xr(e.strokeWidth)||(s.lineWidth=e.strokeWidth),s.strokeText(_,o,i,e.maxWidth)),s.fillText(_,o,i,e.maxWidth),cv(s,o,i,_,e),i+=t.lineHeight;s.restore()}function lv(s,r){r.translation&&s.translate(r.translation[0],r.translation[1]),xr(r.rotation)||s.rotate(r.rotation),r.color&&(s.fillStyle=r.color),r.textAlign&&(s.textAlign=r.textAlign),r.textBaseline&&(s.textBaseline=r.textBaseline)}function cv(s,r,o,i,t){if(t.strikethrough||t.underline){const e=s.measureText(i),u=r-e.actualBoundingBoxLeft,p=r+e.actualBoundingBoxRight,b=o-e.actualBoundingBoxAscent,_=o+e.actualBoundingBoxDescent,w=t.strikethrough?(b+_)/2:_;s.strokeStyle=s.fillStyle,s.beginPath(),s.lineWidth=t.decorationWidth||2,s.moveTo(u,w),s.lineTo(p,w),s.stroke()}}function tn(s,r){const{x:o,y:i,w:t,h:e,radius:u}=r;s.arc(o+u.topLeft,i+u.topLeft,u.topLeft,-Qr,zr,!0),s.lineTo(o,i+e-u.bottomLeft),s.arc(o+u.bottomLeft,i+e-u.bottomLeft,u.bottomLeft,zr,Qr,!0),s.lineTo(o+t-u.bottomRight,i+e),s.arc(o+t-u.bottomRight,i+e-u.bottomRight,u.bottomRight,Qr,0,!0),s.lineTo(o+t,i+u.topRight),s.arc(o+t-u.topRight,i+u.topRight,u.topRight,0,-Qr,!0),s.lineTo(o+u.topLeft,i)}const fv=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),uv=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function dv(s,r){const o=(""+s).match(fv);if(!o||o[1]==="normal")return r*1.2;switch(s=+o[2],o[3]){case"px":return s;case"%":s/=100;break}return r*s}const hv=s=>+s||0;function Pf(s,r){const o={},i=br(r),t=i?Object.keys(r):r,e=br(s)?i?u=>Gt(s[u],s[r[u]]):u=>s[u]:()=>s;for(const u of t)o[u]=hv(e(u));return o}function zm(s){return Pf(s,{top:"y",right:"x",bottom:"y",left:"x"})}function Fo(s){return Pf(s,["topLeft","topRight","bottomLeft","bottomRight"])}function Ts(s){const r=zm(s);return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function us(s,r){s=s||{},r=r||lr.font;let o=Gt(s.size,r.size);typeof o=="string"&&(o=parseInt(o,10));let i=Gt(s.style,r.style);i&&!(""+i).match(uv)&&(console.warn('Invalid font style specified: "'+i+'"'),i="");const t={family:Gt(s.family,r.family),lineHeight:dv(Gt(s.lineHeight,r.lineHeight),o),size:o,style:i,weight:Gt(s.weight,r.weight),string:""};return t.string=av(t),t}function el(s,r,o,i){let t=!0,e,u,p;for(e=0,u=s.length;e<u;++e)if(p=s[e],p!==void 0&&(r!==void 0&&typeof p=="function"&&(p=p(r),t=!1),o!==void 0&&Br(p)&&(p=p[o%p.length],t=!1),p!==void 0))return i&&!t&&(i.cacheable=!1),p}function pv(s,r,o){const{min:i,max:t}=s,e=Dm(r,(t-i)/2),u=(p,b)=>o&&p===0?0:p+b;return{min:u(i,-Math.abs(e)),max:u(t,e)}}function Za(s,r){return Object.assign(Object.create(s),r)}function Nf(s,r=[""],o=s,i,t=()=>s[0]){aa(i)||(i=Hm("_fallback",s));const e={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:s,_rootScopes:o,_fallback:i,_getTarget:t,override:u=>Nf([u,...s],r,o,i)};return new Proxy(e,{deleteProperty(u,p){return delete u[p],delete u._keys,delete s[0][p],!0},get(u,p){return jm(u,p,()=>xv(p,r,s,u))},getOwnPropertyDescriptor(u,p){return Reflect.getOwnPropertyDescriptor(u._scopes[0],p)},getPrototypeOf(){return Reflect.getPrototypeOf(s[0])},has(u,p){return u0(u).includes(p)},ownKeys(u){return u0(u)},set(u,p,b){const _=u._storage||(u._storage=t());return u[p]=_[p]=b,delete u._keys,!0}})}function ti(s,r,o,i){const t={_cacheable:!1,_proxy:s,_context:r,_subProxy:o,_stack:new Set,_descriptors:Gm(s,i),setContext:e=>ti(s,e,o,i),override:e=>ti(s.override(e),r,o,i)};return new Proxy(t,{deleteProperty(e,u){return delete e[u],delete s[u],!0},get(e,u,p){return jm(e,u,()=>gv(e,u,p))},getOwnPropertyDescriptor(e,u){return e._descriptors.allKeys?Reflect.has(s,u)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(s,u)},getPrototypeOf(){return Reflect.getPrototypeOf(s)},has(e,u){return Reflect.has(s,u)},ownKeys(){return Reflect.ownKeys(s)},set(e,u,p){return s[u]=p,delete e[u],!0}})}function Gm(s,r={scriptable:!0,indexable:!0}){const{_scriptable:o=r.scriptable,_indexable:i=r.indexable,_allKeys:t=r.allKeys}=s;return{allKeys:t,scriptable:o,indexable:i,isScriptable:Qa(o)?o:()=>o,isIndexable:Qa(i)?i:()=>i}}const mv=(s,r)=>s?s+Af(r):r,If=(s,r)=>br(r)&&s!=="adapters"&&(Object.getPrototypeOf(r)===null||r.constructor===Object);function jm(s,r,o){if(Object.prototype.hasOwnProperty.call(s,r))return s[r];const i=o();return s[r]=i,i}function gv(s,r,o){const{_proxy:i,_context:t,_subProxy:e,_descriptors:u}=s;let p=i[r];return Qa(p)&&u.isScriptable(r)&&(p=bv(r,p,s,o)),Br(p)&&p.length&&(p=yv(r,p,s,u.isIndexable)),If(r,p)&&(p=ti(p,t,e&&e[r],u)),p}function bv(s,r,o,i){const{_proxy:t,_context:e,_subProxy:u,_stack:p}=o;if(p.has(s))throw new Error("Recursion detected: "+Array.from(p).join("->")+"->"+s);return p.add(s),r=r(e,u||i),p.delete(s),If(s,r)&&(r=Vf(t._scopes,t,s,r)),r}function yv(s,r,o,i){const{_proxy:t,_context:e,_subProxy:u,_descriptors:p}=o;if(aa(e.index)&&i(s))r=r[e.index%r.length];else if(br(r[0])){const b=r,_=t._scopes.filter(w=>w!==b);r=[];for(const w of b){const S=Vf(_,t,s,w);r.push(ti(S,e,u&&u[s],p))}}return r}function Wm(s,r,o){return Qa(s)?s(r,o):s}const _v=(s,r)=>s===!0?r:typeof s=="string"?Xa(r,s):void 0;function vv(s,r,o,i,t){for(const e of r){const u=_v(o,e);if(u){s.add(u);const p=Wm(u._fallback,o,t);if(aa(p)&&p!==o&&p!==i)return p}else if(u===!1&&aa(i)&&o!==i)return null}return!1}function Vf(s,r,o,i){const t=r._rootScopes,e=Wm(r._fallback,o,i),u=[...s,...t],p=new Set;p.add(i);let b=f0(p,u,o,e||o,i);return b===null||aa(e)&&e!==o&&(b=f0(p,u,e,b,i),b===null)?!1:Nf(Array.from(p),[""],t,e,()=>wv(r,o,i))}function f0(s,r,o,i,t){for(;o;)o=vv(s,r,o,i,t);return o}function wv(s,r,o){const i=s._getTarget();r in i||(i[r]={});const t=i[r];return Br(t)&&br(o)?o:t}function xv(s,r,o,i){let t;for(const e of r)if(t=Hm(mv(e,s),o),aa(t))return If(s,t)?Vf(o,i,s,t):t}function Hm(s,r){for(const o of r){if(!o)continue;const i=o[s];if(aa(i))return i}}function u0(s){let r=s._keys;return r||(r=s._keys=Cv(s._scopes)),r}function Cv(s){const r=new Set;for(const o of s)for(const i of Object.keys(o).filter(t=>!t.startsWith("_")))r.add(i);return Array.from(r)}function Ym(s,r,o,i){const{iScale:t}=s,{key:e="r"}=this._parsing,u=new Array(i);let p,b,_,w;for(p=0,b=i;p<b;++p)_=p+o,w=r[_],u[p]={r:t.parse(Xa(w,e),_)};return u}const Fv=Number.EPSILON||1e-14,ri=(s,r)=>r<s.length&&!s[r].skip&&s[r],qm=s=>s==="x"?"y":"x";function Dv(s,r,o,i){const t=s.skip?r:s,e=r,u=o.skip?r:o,p=lf(e,t),b=lf(u,e);let _=p/(p+b),w=b/(p+b);_=isNaN(_)?0:_,w=isNaN(w)?0:w;const S=i*_,A=i*w;return{previous:{x:e.x-S*(u.x-t.x),y:e.y-S*(u.y-t.y)},next:{x:e.x+A*(u.x-t.x),y:e.y+A*(u.y-t.y)}}}function Av(s,r,o){const i=s.length;let t,e,u,p,b,_=ri(s,0);for(let w=0;w<i-1;++w)if(b=_,_=ri(s,w+1),!(!b||!_)){if(Ki(r[w],0,Fv)){o[w]=o[w+1]=0;continue}t=o[w]/r[w],e=o[w+1]/r[w],p=Math.pow(t,2)+Math.pow(e,2),!(p<=9)&&(u=3/Math.sqrt(p),o[w]=t*u*r[w],o[w+1]=e*u*r[w])}}function Sv(s,r,o="x"){const i=qm(o),t=s.length;let e,u,p,b=ri(s,0);for(let _=0;_<t;++_){if(u=p,p=b,b=ri(s,_+1),!p)continue;const w=p[o],S=p[i];u&&(e=(w-u[o])/3,p[`cp1${o}`]=w-e,p[`cp1${i}`]=S-e*r[_]),b&&(e=(b[o]-w)/3,p[`cp2${o}`]=w+e,p[`cp2${i}`]=S+e*r[_])}}function Ev(s,r="x"){const o=qm(r),i=s.length,t=Array(i).fill(0),e=Array(i);let u,p,b,_=ri(s,0);for(u=0;u<i;++u)if(p=b,b=_,_=ri(s,u+1),!!b){if(_){const w=_[r]-b[r];t[u]=w!==0?(_[o]-b[o])/w:0}e[u]=p?_?Fa(t[u-1])!==Fa(t[u])?0:(t[u-1]+t[u])/2:t[u-1]:t[u]}Av(s,t,e),Sv(s,e,r)}function tl(s,r,o){return Math.max(Math.min(s,o),r)}function Tv(s,r){let o,i,t,e,u,p=en(s[0],r);for(o=0,i=s.length;o<i;++o)u=e,e=p,p=o<i-1&&en(s[o+1],r),e&&(t=s[o],u&&(t.cp1x=tl(t.cp1x,r.left,r.right),t.cp1y=tl(t.cp1y,r.top,r.bottom)),p&&(t.cp2x=tl(t.cp2x,r.left,r.right),t.cp2y=tl(t.cp2y,r.top,r.bottom)))}function Rv(s,r,o,i,t){let e,u,p,b;if(r.spanGaps&&(s=s.filter(_=>!_.skip)),r.cubicInterpolationMode==="monotone")Ev(s,t);else{let _=i?s[s.length-1]:s[0];for(e=0,u=s.length;e<u;++e)p=s[e],b=Dv(_,p,s[Math.min(e+1,u-(i?0:1))%u],r.tension),p.cp1x=b.previous.x,p.cp1y=b.previous.y,p.cp2x=b.next.x,p.cp2y=b.next.y,_=p}r.capBezierPoints&&Tv(s,o)}function Km(){return typeof window<"u"&&typeof document<"u"}function Bf(s){let r=s.parentNode;return r&&r.toString()==="[object ShadowRoot]"&&(r=r.host),r}function ml(s,r,o){let i;return typeof s=="string"?(i=parseInt(s,10),s.indexOf("%")!==-1&&(i=i/100*r.parentNode[o])):i=s,i}const vl=s=>window.getComputedStyle(s,null);function kv(s,r){return vl(s).getPropertyValue(r)}const Lv=["top","right","bottom","left"];function Do(s,r,o){const i={};o=o?"-"+o:"";for(let t=0;t<4;t++){const e=Lv[t];i[e]=parseFloat(s[r+"-"+e+o])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const Mv=(s,r,o)=>(s>0||r>0)&&(!o||!o.shadowRoot);function Ov(s,r){const o=s.touches,i=o&&o.length?o[0]:s,{offsetX:t,offsetY:e}=i;let u=!1,p,b;if(Mv(t,e,s.target))p=t,b=e;else{const _=r.getBoundingClientRect();p=i.clientX-_.left,b=i.clientY-_.top,u=!0}return{x:p,y:b,box:u}}function wo(s,r){if("native"in s)return s;const{canvas:o,currentDevicePixelRatio:i}=r,t=vl(o),e=t.boxSizing==="border-box",u=Do(t,"padding"),p=Do(t,"border","width"),{x:b,y:_,box:w}=Ov(s,o),S=u.left+(w&&p.left),A=u.top+(w&&p.top);let{width:E,height:M}=r;return e&&(E-=u.width+p.width,M-=u.height+p.height),{x:Math.round((b-S)/E*o.width/i),y:Math.round((_-A)/M*o.height/i)}}function Pv(s,r,o){let i,t;if(r===void 0||o===void 0){const e=Bf(s);if(!e)r=s.clientWidth,o=s.clientHeight;else{const u=e.getBoundingClientRect(),p=vl(e),b=Do(p,"border","width"),_=Do(p,"padding");r=u.width-_.width-b.width,o=u.height-_.height-b.height,i=ml(p.maxWidth,e,"clientWidth"),t=ml(p.maxHeight,e,"clientHeight")}}return{width:r,height:o,maxWidth:i||dl,maxHeight:t||dl}}const Jc=s=>Math.round(s*10)/10;function Nv(s,r,o,i){const t=vl(s),e=Do(t,"margin"),u=ml(t.maxWidth,s,"clientWidth")||dl,p=ml(t.maxHeight,s,"clientHeight")||dl,b=Pv(s,r,o);let{width:_,height:w}=b;if(t.boxSizing==="content-box"){const S=Do(t,"border","width"),A=Do(t,"padding");_-=A.width+S.width,w-=A.height+S.height}return _=Math.max(0,_-e.width),w=Math.max(0,i?Math.floor(_/i):w-e.height),_=Jc(Math.min(_,u,b.maxWidth)),w=Jc(Math.min(w,p,b.maxHeight)),_&&!w&&(w=Jc(_/2)),{width:_,height:w}}function d0(s,r,o){const i=r||1,t=Math.floor(s.height*i),e=Math.floor(s.width*i);s.height=t/i,s.width=e/i;const u=s.canvas;return u.style&&(o||!u.style.height&&!u.style.width)&&(u.style.height=`${s.height}px`,u.style.width=`${s.width}px`),s.currentDevicePixelRatio!==i||u.height!==t||u.width!==e?(s.currentDevicePixelRatio=i,u.height=t,u.width=e,s.ctx.setTransform(i,0,0,i,0,0),!0):!1}const Iv=function(){let s=!1;try{const r={get passive(){return s=!0,!1}};window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch{}return s}();function h0(s,r){const o=kv(s,r),i=o&&o.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function xo(s,r,o,i){return{x:s.x+o*(r.x-s.x),y:s.y+o*(r.y-s.y)}}function Vv(s,r,o,i){return{x:s.x+o*(r.x-s.x),y:i==="middle"?o<.5?s.y:r.y:i==="after"?o<1?s.y:r.y:o>0?r.y:s.y}}function Bv(s,r,o,i){const t={x:s.cp2x,y:s.cp2y},e={x:r.cp1x,y:r.cp1y},u=xo(s,t,o),p=xo(t,e,o),b=xo(e,r,o),_=xo(u,p,o),w=xo(p,b,o);return xo(_,w,o)}const p0=new Map;function Uv(s,r){r=r||{};const o=s+JSON.stringify(r);let i=p0.get(o);return i||(i=new Intl.NumberFormat(s,r),p0.set(o,i)),i}function an(s,r,o){return Uv(r,o).format(s)}const zv=function(s,r){return{x(o){return s+s+r-o},setWidth(o){r=o},textAlign(o){return o==="center"?o:o==="right"?"left":"right"},xPlus(o,i){return o-i},leftForLtr(o,i){return o-i}}},Gv=function(){return{x(s){return s},setWidth(s){},textAlign(s){return s},xPlus(s,r){return s+r},leftForLtr(s,r){return s}}};function Zo(s,r,o){return s?zv(r,o):Gv()}function Jm(s,r){let o,i;(r==="ltr"||r==="rtl")&&(o=s.canvas.style,i=[o.getPropertyValue("direction"),o.getPropertyPriority("direction")],o.setProperty("direction",r,"important"),s.prevTextDirection=i)}function Xm(s,r){r!==void 0&&(delete s.prevTextDirection,s.canvas.style.setProperty("direction",r[0],r[1]))}function Qm(s){return s==="angle"?{between:$i,compare:E_,normalize:ca}:{between:Ya,compare:(r,o)=>r-o,normalize:r=>r}}function m0({start:s,end:r,count:o,loop:i,style:t}){return{start:s%o,end:r%o,loop:i&&(r-s+1)%o===0,style:t}}function jv(s,r,o){const{property:i,start:t,end:e}=o,{between:u,normalize:p}=Qm(i),b=r.length;let{start:_,end:w,loop:S}=s,A,E;if(S){for(_+=b,w+=b,A=0,E=b;A<E&&u(p(r[_%b][i]),t,e);++A)_--,w--;_%=b,w%=b}return w<_&&(w+=b),{start:_,end:w,loop:S,style:s.style}}function Wv(s,r,o){if(!o)return[s];const{property:i,start:t,end:e}=o,u=r.length,{compare:p,between:b,normalize:_}=Qm(i),{start:w,end:S,loop:A,style:E}=jv(s,r,o),M=[];let N=!1,q=null,U,ee,ie;const j=()=>b(t,ie,U)&&p(t,ie)!==0,H=()=>p(e,U)===0||b(e,ie,U),ne=()=>N||j(),W=()=>!N||H();for(let Ae=w,ve=w;Ae<=S;++Ae)ee=r[Ae%u],!ee.skip&&(U=_(ee[i]),U!==ie&&(N=b(U,t,e),q===null&&ne()&&(q=p(U,t)===0?Ae:ve),q!==null&&W()&&(M.push(m0({start:q,end:Ae,loop:A,count:u,style:E})),q=null),ve=Ae,ie=U));return q!==null&&M.push(m0({start:q,end:S,loop:A,count:u,style:E})),M}function Hv(s,r){const o=[],i=s.segments;for(let t=0;t<i.length;t++){const e=Wv(i[t],s.points,r);e.length&&o.push(...e)}return o}function Yv(s,r,o,i){let t=0,e=r-1;if(o&&!i)for(;t<r&&!s[t].skip;)t++;for(;t<r&&s[t].skip;)t++;for(t%=r,o&&(e+=t);e>t&&s[e%r].skip;)e--;return e%=r,{start:t,end:e}}function qv(s,r,o,i){const t=s.length,e=[];let u=r,p=s[r],b;for(b=r+1;b<=o;++b){const _=s[b%t];_.skip||_.stop?p.skip||(i=!1,e.push({start:r%t,end:(b-1)%t,loop:i}),r=u=_.stop?b:null):(u=b,p.skip&&(r=b)),p=_}return u!==null&&e.push({start:r%t,end:u%t,loop:i}),e}function Kv(s,r){const o=s.points,i=s.options.spanGaps,t=o.length;if(!t)return[];const e=!!s._loop,{start:u,end:p}=Yv(o,t,e,i);if(i===!0)return g0(s,[{start:u,end:p,loop:e}],o,r);const b=p<u?p+t:p,_=!!s._fullLoop&&u===0&&p===t-1;return g0(s,qv(o,u,b,_),o,r)}function g0(s,r,o,i){return!i||!i.setContext||!o?r:Jv(s,r,o,i)}function Jv(s,r,o,i){const t=s._chart.getContext(),e=b0(s.options),{_datasetIndex:u,options:{spanGaps:p}}=s,b=o.length,_=[];let w=e,S=r[0].start,A=S;function E(M,N,q,U){const ee=p?-1:1;if(M!==N){for(M+=b;o[M%b].skip;)M-=ee;for(;o[N%b].skip;)N+=ee;M%b!==N%b&&(_.push({start:M%b,end:N%b,loop:q,style:U}),w=U,S=N%b)}}for(const M of r){S=p?S:M.start;let N=o[S%b],q;for(A=S+1;A<=M.end;A++){const U=o[A%b];q=b0(i.setContext(Za(t,{type:"segment",p0:N,p1:U,p0DataIndex:(A-1)%b,p1DataIndex:A%b,datasetIndex:u}))),Xv(q,w)&&E(S,A-1,M.loop,w),N=U,w=q}S<A-1&&E(S,A-1,M.loop,w)}return _}function b0(s){return{backgroundColor:s.backgroundColor,borderCapStyle:s.borderCapStyle,borderDash:s.borderDash,borderDashOffset:s.borderDashOffset,borderJoinStyle:s.borderJoinStyle,borderWidth:s.borderWidth,borderColor:s.borderColor}}function Xv(s,r){return r&&JSON.stringify(s)!==JSON.stringify(r)}/*! * Chart.js v3.9.1 * https://www.chartjs.org * (c) 2022 Chart.js Contributors * Released under the MIT License */class Qv{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(r,o,i,t){const e=o.listeners[t],u=o.duration;e.forEach(p=>p({chart:r,initial:o.initial,numSteps:u,currentStep:Math.min(i-o.start,u)}))}_refresh(){this._request||(this._running=!0,this._request=km.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(r=Date.now()){let o=0;this._charts.forEach((i,t)=>{if(!i.running||!i.items.length)return;const e=i.items;let u=e.length-1,p=!1,b;for(;u>=0;--u)b=e[u],b._active?(b._total>i.duration&&(i.duration=b._total),b.tick(r),p=!0):(e[u]=e[e.length-1],e.pop());p&&(t.draw(),this._notify(t,i,r,"progress")),e.length||(i.running=!1,this._notify(t,i,r,"complete"),i.initial=!1),o+=e.length}),this._lastDate=r,o===0&&(this._running=!1)}_getAnims(r){const o=this._charts;let i=o.get(r);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},o.set(r,i)),i}listen(r,o,i){this._getAnims(r).listeners[o].push(i)}add(r,o){!o||!o.length||this._getAnims(r).items.push(...o)}has(r){return this._getAnims(r).items.length>0}start(r){const o=this._charts.get(r);o&&(o.running=!0,o.start=Date.now(),o.duration=o.items.reduce((i,t)=>Math.max(i,t._duration),0),this._refresh())}running(r){if(!this._running)return!1;const o=this._charts.get(r);return!(!o||!o.running||!o.items.length)}stop(r){const o=this._charts.get(r);if(!o||!o.items.length)return;const i=o.items;let t=i.length-1;for(;t>=0;--t)i[t].cancel();o.items=[],this._notify(r,o,Date.now(),"complete")}remove(r){return this._charts.delete(r)}}var Pa=new Qv;const y0="transparent",Zv={boolean(s,r,o){return o>.5?r:s},color(s,r,o){const i=l0(s||y0),t=i.valid&&l0(r||y0);return t&&t.valid?t.mix(i,o).hexString():r},number(s,r,o){return s+(r-s)*o}};class $v{constructor(r,o,i,t){const e=o[i];t=el([r.to,t,e,r.from]);const u=el([r.from,e,t]);this._active=!0,this._fn=r.fn||Zv[r.type||typeof u],this._easing=Ji[r.easing]||Ji.linear,this._start=Math.floor(Date.now()+(r.delay||0)),this._duration=this._total=Math.floor(r.duration),this._loop=!!r.loop,this._target=o,this._prop=i,this._from=u,this._to=t,this._promises=void 0}active(){return this._active}update(r,o,i){if(this._active){this._notify(!1);const t=this._target[this._prop],e=i-this._start,u=this._duration-e;this._start=i,this._duration=Math.floor(Math.max(u,r.duration)),this._total+=e,this._loop=!!r.loop,this._to=el([r.to,o,t,r.from]),this._from=el([r.from,t,o])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(r){const o=r-this._start,i=this._duration,t=this._prop,e=this._from,u=this._loop,p=this._to;let b;if(this._active=e!==p&&(u||o<i),!this._active){this._target[t]=p,this._notify(!0);return}if(o<0){this._target[t]=e;return}b=o/i%2,b=u&&b>1?2-b:b,b=this._easing(Math.min(1,Math.max(0,b))),this._target[t]=this._fn(e,p,b)}wait(){const r=this._promises||(this._promises=[]);return new Promise((o,i)=>{r.push({res:o,rej:i})})}_notify(r){const o=r?"res":"rej",i=this._promises||[];for(let t=0;t<i.length;t++)i[t][o]()}}const ew=["x","y","borderWidth","radius","tension"],tw=["color","borderColor","backgroundColor"];lr.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const rw=Object.keys(lr.animation);lr.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:s=>s!=="onProgress"&&s!=="onComplete"&&s!=="fn"});lr.set("animations",{colors:{type:"color",properties:tw},numbers:{type:"number",properties:ew}});lr.describe("animations",{_fallback:"animation"});lr.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:s=>s|0}}}});class Zm{constructor(r,o){this._chart=r,this._properties=new Map,this.configure(o)}configure(r){if(!br(r))return;const o=this._properties;Object.getOwnPropertyNames(r).forEach(i=>{const t=r[i];if(!br(t))return;const e={};for(const u of rw)e[u]=t[u];(Br(t.properties)&&t.properties||[i]).forEach(u=>{(u===i||!o.has(u))&&o.set(u,e)})})}_animateOptions(r,o){const i=o.options,t=aw(r,i);if(!t)return[];const e=this._createAnimations(t,i);return i.$shared&&sw(r.options.$animations,i).then(()=>{r.options=i},()=>{}),e}_createAnimations(r,o){const i=this._properties,t=[],e=r.$animations||(r.$animations={}),u=Object.keys(o),p=Date.now();let b;for(b=u.length-1;b>=0;--b){const _=u[b];if(_.charAt(0)==="$")continue;if(_==="options"){t.push(...this._animateOptions(r,o));continue}const w=o[_];let S=e[_];const A=i.get(_);if(S)if(A&&S.active()){S.update(A,w,p);continue}else S.cancel();if(!A||!A.duration){r[_]=w;continue}e[_]=S=new $v(A,r,_,w),t.push(S)}return t}update(r,o){if(this._properties.size===0){Object.assign(r,o);return}const i=this._createAnimations(r,o);if(i.length)return Pa.add(this._chart,i),!0}}function sw(s,r){const o=[],i=Object.keys(r);for(let t=0;t<i.length;t++){const e=s[i[t]];e&&e.active()&&o.push(e.wait())}return Promise.all(o)}function aw(s,r){if(!r)return;let o=s.options;if(!o){s.options=r;return}return o.$shared&&(s.options=o=Object.assign({},o,{$shared:!1,$animations:{}})),o}function _0(s,r){const o=s&&s.options||{},i=o.reverse,t=o.min===void 0?r:0,e=o.max===void 0?r:0;return{start:i?e:t,end:i?t:e}}function ow(s,r,o){if(o===!1)return!1;const i=_0(s,o),t=_0(r,o);return{top:t.end,right:i.end,bottom:t.start,left:i.start}}function iw(s){let r,o,i,t;return br(s)?(r=s.top,o=s.right,i=s.bottom,t=s.left):r=o=i=t=s,{top:r,right:o,bottom:i,left:t,disabled:s===!1}}function $m(s,r){const o=[],i=s._getSortedDatasetMetas(r);let t,e;for(t=0,e=i.length;t<e;++t)o.push(i[t].index);return o}function v0(s,r,o,i={}){const t=s.keys,e=i.mode==="single";let u,p,b,_;if(r!==null){for(u=0,p=t.length;u<p;++u){if(b=+t[u],b===o){if(i.all)continue;break}_=s.values[b],ys(_)&&(e||r===0||Fa(r)===Fa(_))&&(r+=_)}return r}}function nw(s){const r=Object.keys(s),o=new Array(r.length);let i,t,e;for(i=0,t=r.length;i<t;++i)e=r[i],o[i]={x:e,y:s[e]};return o}function w0(s,r){const o=s&&s.options.stacked;return o||o===void 0&&r.stack!==void 0}function lw(s,r,o){return`${s.id}.${r.id}.${o.stack||o.type}`}function cw(s){const{min:r,max:o,minDefined:i,maxDefined:t}=s.getUserBounds();return{min:i?r:Number.NEGATIVE_INFINITY,max:t?o:Number.POSITIVE_INFINITY}}function fw(s,r,o){const i=s[r]||(s[r]={});return i[o]||(i[o]={})}function x0(s,r,o,i){for(const t of r.getMatchingVisibleMetas(i).reverse()){const e=s[t.index];if(o&&e>0||!o&&e<0)return t.index}return null}function C0(s,r){const{chart:o,_cachedMeta:i}=s,t=o._stacks||(o._stacks={}),{iScale:e,vScale:u,index:p}=i,b=e.axis,_=u.axis,w=lw(e,u,i),S=r.length;let A;for(let E=0;E<S;++E){const M=r[E],{[b]:N,[_]:q}=M,U=M._stacks||(M._stacks={});A=U[_]=fw(t,w,N),A[p]=q,A._top=x0(A,u,!0,i.type),A._bottom=x0(A,u,!1,i.type)}}function Xc(s,r){const o=s.scales;return Object.keys(o).filter(i=>o[i].axis===r).shift()}function uw(s,r){return Za(s,{active:!1,dataset:void 0,datasetIndex:r,index:r,mode:"default",type:"dataset"})}function dw(s,r,o){return Za(s,{active:!1,dataIndex:r,parsed:void 0,raw:void 0,element:o,index:r,mode:"default",type:"data"})}function Ui(s,r){const o=s.controller.index,i=s.vScale&&s.vScale.axis;if(i){r=r||s._parsed;for(const t of r){const e=t._stacks;if(!e||e[i]===void 0||e[i][o]===void 0)return;delete e[i][o]}}}const Qc=s=>s==="reset"||s==="none",F0=(s,r)=>r?s:Object.assign({},s),hw=(s,r,o)=>s&&!r.hidden&&r._stacked&&{keys:$m(o,!0),values:null};class ua{constructor(r,o){this.chart=r,this._ctx=r.ctx,this.index=o,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const r=this._cachedMeta;this.configure(),this.linkScales(),r._stacked=w0(r.vScale,r),this.addElements()}updateIndex(r){this.index!==r&&Ui(this._cachedMeta),this.index=r}linkScales(){const r=this.chart,o=this._cachedMeta,i=this.getDataset(),t=(S,A,E,M)=>S==="x"?A:S==="r"?M:E,e=o.xAxisID=Gt(i.xAxisID,Xc(r,"x")),u=o.yAxisID=Gt(i.yAxisID,Xc(r,"y")),p=o.rAxisID=Gt(i.rAxisID,Xc(r,"r")),b=o.indexAxis,_=o.iAxisID=t(b,e,u,p),w=o.vAxisID=t(b,u,e,p);o.xScale=this.getScaleForId(e),o.yScale=this.getScaleForId(u),o.rScale=this.getScaleForId(p),o.iScale=this.getScaleForId(_),o.vScale=this.getScaleForId(w)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(r){return this.chart.scales[r]}_getOtherScale(r){const o=this._cachedMeta;return r===o.iScale?o.vScale:o.iScale}reset(){this._update("reset")}_destroy(){const r=this._cachedMeta;this._data&&t0(this._data,this),r._stacked&&Ui(r)}_dataCheck(){const r=this.getDataset(),o=r.data||(r.data=[]),i=this._data;if(br(o))this._data=nw(o);else if(i!==o){if(i){t0(i,this);const t=this._cachedMeta;Ui(t),t._parsed=[]}o&&Object.isExtensible(o)&&L_(o,this),this._syncList=[],this._data=o}}addElements(){const r=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(r.dataset=new this.datasetElementType)}buildOrUpdateElements(r){const o=this._cachedMeta,i=this.getDataset();let t=!1;this._dataCheck();const e=o._stacked;o._stacked=w0(o.vScale,o),o.stack!==i.stack&&(t=!0,Ui(o),o.stack=i.stack),this._resyncElements(r),(t||e!==o._stacked)&&C0(this,o._parsed)}configure(){const r=this.chart.config,o=r.datasetScopeKeys(this._type),i=r.getOptionScopes(this.getDataset(),o,!0);this.options=r.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(r,o){const{_cachedMeta:i,_data:t}=this,{iScale:e,_stacked:u}=i,p=e.axis;let b=r===0&&o===t.length?!0:i._sorted,_=r>0&&i._parsed[r-1],w,S,A;if(this._parsing===!1)i._parsed=t,i._sorted=!0,A=t;else{Br(t[r])?A=this.parseArrayData(i,t,r,o):br(t[r])?A=this.parseObjectData(i,t,r,o):A=this.parsePrimitiveData(i,t,r,o);const E=()=>S[p]===null||_&&S[p]<_[p];for(w=0;w<o;++w)i._parsed[w+r]=S=A[w],b&&(E()&&(b=!1),_=S);i._sorted=b}u&&C0(this,A)}parsePrimitiveData(r,o,i,t){const{iScale:e,vScale:u}=r,p=e.axis,b=u.axis,_=e.getLabels(),w=e===u,S=new Array(t);let A,E,M;for(A=0,E=t;A<E;++A)M=A+i,S[A]={[p]:w||e.parse(_[M],M),[b]:u.parse(o[M],M)};return S}parseArrayData(r,o,i,t){const{xScale:e,yScale:u}=r,p=new Array(t);let b,_,w,S;for(b=0,_=t;b<_;++b)w=b+i,S=o[w],p[b]={x:e.parse(S[0],w),y:u.parse(S[1],w)};return p}parseObjectData(r,o,i,t){const{xScale:e,yScale:u}=r,{xAxisKey:p="x",yAxisKey:b="y"}=this._parsing,_=new Array(t);let w,S,A,E;for(w=0,S=t;w<S;++w)A=w+i,E=o[A],_[w]={x:e.parse(Xa(E,p),A),y:u.parse(Xa(E,b),A)};return _}getParsed(r){return this._cachedMeta._parsed[r]}getDataElement(r){return this._cachedMeta.data[r]}applyStack(r,o,i){const t=this.chart,e=this._cachedMeta,u=o[r.axis],p={keys:$m(t,!0),values:o._stacks[r.axis]};return v0(p,u,e.index,{mode:i})}updateRangeFromParsed(r,o,i,t){const e=i[o.axis];let u=e===null?NaN:e;const p=t&&i._stacks[o.axis];t&&p&&(t.values=p,u=v0(t,e,this._cachedMeta.index)),r.min=Math.min(r.min,u),r.max=Math.max(r.max,u)}getMinMax(r,o){const i=this._cachedMeta,t=i._parsed,e=i._sorted&&r===i.iScale,u=t.length,p=this._getOtherScale(r),b=hw(o,i,this.chart),_={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:w,max:S}=cw(p);let A,E;function M(){E=t[A];const N=E[p.axis];return!ys(E[r.axis])||w>N||S<N}for(A=0;A<u&&!(!M()&&(this.updateRangeFromParsed(_,r,E,b),e));++A);if(e){for(A=u-1;A>=0;--A)if(!M()){this.updateRangeFromParsed(_,r,E,b);break}}return _}getAllParsedValues(r){const o=this._cachedMeta._parsed,i=[];let t,e,u;for(t=0,e=o.length;t<e;++t)u=o[t][r.axis],ys(u)&&i.push(u);return i}getMaxOverflow(){return!1}getLabelAndValue(r){const o=this._cachedMeta,i=o.iScale,t=o.vScale,e=this.getParsed(r);return{label:i?""+i.getLabelForValue(e[i.axis]):"",value:t?""+t.getLabelForValue(e[t.axis]):""}}_update(r){const o=this._cachedMeta;this.update(r||"default"),o._clip=iw(Gt(this.options.clip,ow(o.xScale,o.yScale,this.getMaxOverflow())))}update(r){}draw(){const r=this._ctx,o=this.chart,i=this._cachedMeta,t=i.data||[],e=o.chartArea,u=[],p=this._drawStart||0,b=this._drawCount||t.length-p,_=this.options.drawActiveElementsOnTop;let w;for(i.dataset&&i.dataset.draw(r,e,p,b),w=p;w<p+b;++w){const S=t[w];S.hidden||(S.active&&_?u.push(S):S.draw(r,e))}for(w=0;w<u.length;++w)u[w].draw(r,e)}getStyle(r,o){const i=o?"active":"default";return r===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(r||0,i)}getContext(r,o,i){const t=this.getDataset();let e;if(r>=0&&r<this._cachedMeta.data.length){const u=this._cachedMeta.data[r];e=u.$context||(u.$context=dw(this.getContext(),r,u)),e.parsed=this.getParsed(r),e.raw=t.data[r],e.index=e.dataIndex=r}else e=this.$context||(this.$context=uw(this.chart.getContext(),this.index)),e.dataset=t,e.index=e.datasetIndex=this.index;return e.active=!!o,e.mode=i,e}resolveDatasetElementOptions(r){return this._resolveElementOptions(this.datasetElementType.id,r)}resolveDataElementOptions(r,o){return this._resolveElementOptions(this.dataElementType.id,o,r)}_resolveElementOptions(r,o="default",i){const t=o==="active",e=this._cachedDataOpts,u=r+"-"+o,p=e[u],b=this.enableOptionSharing&&aa(i);if(p)return F0(p,b);const _=this.chart.config,w=_.datasetElementScopeKeys(this._type,r),S=t?[`${r}Hover`,"hover",r,""]:[r,""],A=_.getOptionScopes(this.getDataset(),w),E=Object.keys(lr.elements[r]),M=()=>this.getContext(i,t),N=_.resolveNamedOptions(A,E,M,S);return N.$shared&&(N.$shared=b,e[u]=Object.freeze(F0(N,b))),N}_resolveAnimations(r,o,i){const t=this.chart,e=this._cachedDataOpts,u=`animation-${o}`,p=e[u];if(p)return p;let b;if(t.options.animation!==!1){const w=this.chart.config,S=w.datasetAnimationScopeKeys(this._type,o),A=w.getOptionScopes(this.getDataset(),S);b=w.createResolver(A,this.getContext(r,i,o))}const _=new Zm(t,b&&b.animations);return b&&b._cacheable&&(e[u]=Object.freeze(_)),_}getSharedOptions(r){if(r.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},r))}includeOptions(r,o){return!o||Qc(r)||this.chart._animationsDisabled}_getSharedOptions(r,o){const i=this.resolveDataElementOptions(r,o),t=this._sharedOptions,e=this.getSharedOptions(i),u=this.includeOptions(o,e)||e!==t;return this.updateSharedOptions(e,o,i),{sharedOptions:e,includeOptions:u}}updateElement(r,o,i,t){Qc(t)?Object.assign(r,i):this._resolveAnimations(o,t).update(r,i)}updateSharedOptions(r,o,i){r&&!Qc(o)&&this._resolveAnimations(void 0,o).update(r,i)}_setStyle(r,o,i,t){r.active=t;const e=this.getStyle(o,t);this._resolveAnimations(o,i,t).update(r,{options:!t&&this.getSharedOptions(e)||e})}removeHoverStyle(r,o,i){this._setStyle(r,i,"active",!1)}setHoverStyle(r,o,i){this._setStyle(r,i,"active",!0)}_removeDatasetHoverStyle(){const r=this._cachedMeta.dataset;r&&this._setStyle(r,void 0,"active",!1)}_setDatasetHoverStyle(){const r=this._cachedMeta.dataset;r&&this._setStyle(r,void 0,"active",!0)}_resyncElements(r){const o=this._data,i=this._cachedMeta.data;for(const[p,b,_]of this._syncList)this[p](b,_);this._syncList=[];const t=i.length,e=o.length,u=Math.min(e,t);u&&this.parse(0,u),e>t?this._insertElements(t,e-t,r):e<t&&this._removeElements(e,t-e)}_insertElements(r,o,i=!0){const t=this._cachedMeta,e=t.data,u=r+o;let p;const b=_=>{for(_.length+=o,p=_.length-1;p>=u;p--)_[p]=_[p-o]};for(b(e),p=r;p<u;++p)e[p]=new this.dataElementType;this._parsing&&b(t._parsed),this.parse(r,o),i&&this.updateElements(e,r,o,"reset")}updateElements(r,o,i,t){}_removeElements(r,o){const i=this._cachedMeta;if(this._parsing){const t=i._parsed.splice(r,o);i._stacked&&Ui(i,t)}i.data.splice(r,o)}_sync(r){if(this._parsing)this._syncList.push(r);else{const[o,i,t]=r;this[o](i,t)}this.chart._dataChanges.push([this.index,...r])}_onDataPush(){const r=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-r,r])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(r,o){o&&this._sync(["_removeElements",r,o]);const i=arguments.length-2;i&&this._sync(["_insertElements",r,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}ua.defaults={};ua.prototype.datasetElementType=null;ua.prototype.dataElementType=null;function pw(s,r){if(!s._cache.$bar){const o=s.getMatchingVisibleMetas(r);let i=[];for(let t=0,e=o.length;t<e;t++)i=i.concat(o[t].controller.getAllParsedValues(s));s._cache.$bar=Rm(i.sort((t,e)=>t-e))}return s._cache.$bar}function mw(s){const r=s.iScale,o=pw(r,s.type);let i=r._length,t,e,u,p;const b=()=>{u===32767||u===-32768||(aa(p)&&(i=Math.min(i,Math.abs(u-p)||i)),p=u)};for(t=0,e=o.length;t<e;++t)u=r.getPixelForValue(o[t]),b();for(p=void 0,t=0,e=r.ticks.length;t<e;++t)u=r.getPixelForTick(t),b();return i}function gw(s,r,o,i){const t=o.barThickness;let e,u;return xr(t)?(e=r.min*o.categoryPercentage,u=o.barPercentage):(e=t*i,u=1),{chunk:e/i,ratio:u,start:r.pixels[s]-e/2}}function bw(s,r,o,i){const t=r.pixels,e=t[s];let u=s>0?t[s-1]:null,p=s<t.length-1?t[s+1]:null;const b=o.categoryPercentage;u===null&&(u=e-(p===null?r.end-r.start:p-e)),p===null&&(p=e+e-u);const _=e-(e-Math.min(u,p))/2*b;return{chunk:Math.abs(p-u)/2*b/i,ratio:o.barPercentage,start:_}}function yw(s,r,o,i){const t=o.parse(s[0],i),e=o.parse(s[1],i),u=Math.min(t,e),p=Math.max(t,e);let b=u,_=p;Math.abs(u)>Math.abs(p)&&(b=p,_=u),r[o.axis]=_,r._custom={barStart:b,barEnd:_,start:t,end:e,min:u,max:p}}function eg(s,r,o,i){return Br(s)?yw(s,r,o,i):r[o.axis]=o.parse(s,i),r}function D0(s,r,o,i){const t=s.iScale,e=s.vScale,u=t.getLabels(),p=t===e,b=[];let _,w,S,A;for(_=o,w=o+i;_<w;++_)A=r[_],S={},S[t.axis]=p||t.parse(u[_],_),b.push(eg(A,S,e,_));return b}function Zc(s){return s&&s.barStart!==void 0&&s.barEnd!==void 0}function _w(s,r,o){return s!==0?Fa(s):(r.isHorizontal()?1:-1)*(r.min>=o?1:-1)}function vw(s){let r,o,i,t,e;return s.horizontal?(r=s.base>s.x,o="left",i="right"):(r=s.base<s.y,o="bottom",i="top"),r?(t="end",e="start"):(t="start",e="end"),{start:o,end:i,reverse:r,top:t,bottom:e}}function ww(s,r,o,i){let t=r.borderSkipped;const e={};if(!t){s.borderSkipped=e;return}if(t===!0){s.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:u,end:p,reverse:b,top:_,bottom:w}=vw(s);t==="middle"&&o&&(s.enableBorderRadius=!0,(o._top||0)===i?t=_:(o._bottom||0)===i?t=w:(e[A0(w,u,p,b)]=!0,t=_)),e[A0(t,u,p,b)]=!0,s.borderSkipped=e}function A0(s,r,o,i){return i?(s=xw(s,r,o),s=S0(s,o,r)):s=S0(s,r,o),s}function xw(s,r,o){return s===r?o:s===o?r:s}function S0(s,r,o){return s==="start"?r:s==="end"?o:s}function Cw(s,{inflateAmount:r},o){s.inflateAmount=r==="auto"?o===1?.33:0:r}class To extends ua{parsePrimitiveData(r,o,i,t){return D0(r,o,i,t)}parseArrayData(r,o,i,t){return D0(r,o,i,t)}parseObjectData(r,o,i,t){const{iScale:e,vScale:u}=r,{xAxisKey:p="x",yAxisKey:b="y"}=this._parsing,_=e.axis==="x"?p:b,w=u.axis==="x"?p:b,S=[];let A,E,M,N;for(A=i,E=i+t;A<E;++A)N=o[A],M={},M[e.axis]=e.parse(Xa(N,_),A),S.push(eg(Xa(N,w),M,u,A));return S}updateRangeFromParsed(r,o,i,t){super.updateRangeFromParsed(r,o,i,t);const e=i._custom;e&&o===this._cachedMeta.vScale&&(r.min=Math.min(r.min,e.min),r.max=Math.max(r.max,e.max))}getMaxOverflow(){return 0}getLabelAndValue(r){const o=this._cachedMeta,{iScale:i,vScale:t}=o,e=this.getParsed(r),u=e._custom,p=Zc(u)?"["+u.start+", "+u.end+"]":""+t.getLabelForValue(e[t.axis]);return{label:""+i.getLabelForValue(e[i.axis]),value:p}}initialize(){this.enableOptionSharing=!0,super.initialize();const r=this._cachedMeta;r.stack=this.getDataset().stack}update(r){const o=this._cachedMeta;this.updateElements(o.data,0,o.data.length,r)}updateElements(r,o,i,t){const e=t==="reset",{index:u,_cachedMeta:{vScale:p}}=this,b=p.getBasePixel(),_=p.isHorizontal(),w=this._getRuler(),{sharedOptions:S,includeOptions:A}=this._getSharedOptions(o,t);for(let E=o;E<o+i;E++){const M=this.getParsed(E),N=e||xr(M[p.axis])?{base:b,head:b}:this._calculateBarValuePixels(E),q=this._calculateBarIndexPixels(E,w),U=(M._stacks||{})[p.axis],ee={horizontal:_,base:N.base,enableBorderRadius:!U||Zc(M._custom)||u===U._top||u===U._bottom,x:_?N.head:q.center,y:_?q.center:N.head,height:_?q.size:Math.abs(N.size),width:_?Math.abs(N.size):q.size};A&&(ee.options=S||this.resolveDataElementOptions(E,r[E].active?"active":t));const ie=ee.options||r[E].options;ww(ee,ie,U,u),Cw(ee,ie,w.ratio),this.updateElement(r[E],E,ee,t)}}_getStacks(r,o){const{iScale:i}=this._cachedMeta,t=i.getMatchingVisibleMetas(this._type).filter(b=>b.controller.options.grouped),e=i.options.stacked,u=[],p=b=>{const _=b.controller.getParsed(o),w=_&&_[b.vScale.axis];if(xr(w)||isNaN(w))return!0};for(const b of t)if(!(o!==void 0&&p(b))&&((e===!1||u.indexOf(b.stack)===-1||e===void 0&&b.stack===void 0)&&u.push(b.stack),b.index===r))break;return u.length||u.push(void 0),u}_getStackCount(r){return this._getStacks(void 0,r).length}_getStackIndex(r,o,i){const t=this._getStacks(r,i),e=o!==void 0?t.indexOf(o):-1;return e===-1?t.length-1:e}_getRuler(){const r=this.options,o=this._cachedMeta,i=o.iScale,t=[];let e,u;for(e=0,u=o.data.length;e<u;++e)t.push(i.getPixelForValue(this.getParsed(e)[i.axis],e));const p=r.barThickness;return{min:p||mw(o),pixels:t,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:r.grouped,ratio:p?1:r.categoryPercentage*r.barPercentage}}_calculateBarValuePixels(r){const{_cachedMeta:{vScale:o,_stacked:i},options:{base:t,minBarLength:e}}=this,u=t||0,p=this.getParsed(r),b=p._custom,_=Zc(b);let w=p[o.axis],S=0,A=i?this.applyStack(o,p,i):w,E,M;A!==w&&(S=A-w,A=w),_&&(w=b.barStart,A=b.barEnd-b.barStart,w!==0&&Fa(w)!==Fa(b.barEnd)&&(S=0),S+=w);const N=!xr(t)&&!_?t:S;let q=o.getPixelForValue(N);if(this.chart.getDataVisibility(r)?E=o.getPixelForValue(S+A):E=q,M=E-q,Math.abs(M)<e){M=_w(M,o,u)*e,w===u&&(q-=M/2);const U=o.getPixelForDecimal(0),ee=o.getPixelForDecimal(1),ie=Math.min(U,ee),j=Math.max(U,ee);q=Math.max(Math.min(q,j),ie),E=q+M}if(q===o.getPixelForValue(u)){const U=Fa(M)*o.getLineWidthForValue(u)/2;q+=U,M-=U}return{size:M,base:q,head:E,center:E+M/2}}_calculateBarIndexPixels(r,o){const i=o.scale,t=this.options,e=t.skipNull,u=Gt(t.maxBarThickness,1/0);let p,b;if(o.grouped){const _=e?this._getStackCount(r):o.stackCount,w=t.barThickness==="flex"?bw(r,o,t,_):gw(r,o,t,_),S=this._getStackIndex(this.index,this._cachedMeta.stack,e?r:void 0);p=w.start+w.chunk*S+w.chunk/2,b=Math.min(u,w.chunk*w.ratio)}else p=i.getPixelForValue(this.getParsed(r)[i.axis],r),b=Math.min(u,o.min*o.ratio);return{base:p-b/2,head:p+b/2,center:p,size:b}}draw(){const r=this._cachedMeta,o=r.vScale,i=r.data,t=i.length;let e=0;for(;e<t;++e)this.getParsed(e)[o.axis]!==null&&i[e].draw(this._ctx)}}To.id="bar";To.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};To.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class Uf extends ua{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(r,o,i,t){const e=super.parsePrimitiveData(r,o,i,t);for(let u=0;u<e.length;u++)e[u]._custom=this.resolveDataElementOptions(u+i).radius;return e}parseArrayData(r,o,i,t){const e=super.parseArrayData(r,o,i,t);for(let u=0;u<e.length;u++){const p=o[i+u];e[u]._custom=Gt(p[2],this.resolveDataElementOptions(u+i).radius)}return e}parseObjectData(r,o,i,t){const e=super.parseObjectData(r,o,i,t);for(let u=0;u<e.length;u++){const p=o[i+u];e[u]._custom=Gt(p&&p.r&&+p.r,this.resolveDataElementOptions(u+i).radius)}return e}getMaxOverflow(){const r=this._cachedMeta.data;let o=0;for(let i=r.length-1;i>=0;--i)o=Math.max(o,r[i].size(this.resolveDataElementOptions(i))/2);return o>0&&o}getLabelAndValue(r){const o=this._cachedMeta,{xScale:i,yScale:t}=o,e=this.getParsed(r),u=i.getLabelForValue(e.x),p=t.getLabelForValue(e.y),b=e._custom;return{label:o.label,value:"("+u+", "+p+(b?", "+b:"")+")"}}update(r){const o=this._cachedMeta.data;this.updateElements(o,0,o.length,r)}updateElements(r,o,i,t){const e=t==="reset",{iScale:u,vScale:p}=this._cachedMeta,{sharedOptions:b,includeOptions:_}=this._getSharedOptions(o,t),w=u.axis,S=p.axis;for(let A=o;A<o+i;A++){const E=r[A],M=!e&&this.getParsed(A),N={},q=N[w]=e?u.getPixelForDecimal(.5):u.getPixelForValue(M[w]),U=N[S]=e?p.getBasePixel():p.getPixelForValue(M[S]);N.skip=isNaN(q)||isNaN(U),_&&(N.options=b||this.resolveDataElementOptions(A,E.active?"active":t),e&&(N.options.radius=0)),this.updateElement(E,A,N,t)}}resolveDataElementOptions(r,o){const i=this.getParsed(r);let t=super.resolveDataElementOptions(r,o);t.$shared&&(t=Object.assign({},t,{$shared:!1}));const e=t.radius;return o!=="active"&&(t.radius=0),t.radius+=Gt(i&&i._custom,e),t}}Uf.id="bubble";Uf.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};Uf.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title(){return""}}}}};function Fw(s,r,o){let i=1,t=1,e=0,u=0;if(r<Or){const p=s,b=p+r,_=Math.cos(p),w=Math.sin(p),S=Math.cos(b),A=Math.sin(b),E=(ie,j,H)=>$i(ie,p,b,!0)?1:Math.max(j,j*o,H,H*o),M=(ie,j,H)=>$i(ie,p,b,!0)?-1:Math.min(j,j*o,H,H*o),N=E(0,_,S),q=E(Qr,w,A),U=M(zr,_,S),ee=M(zr+Qr,w,A);i=(N-U)/2,t=(q-ee)/2,e=-(N+U)/2,u=-(q+ee)/2}return{ratioX:i,ratioY:t,offsetX:e,offsetY:u}}class on extends ua{constructor(r,o){super(r,o),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(r,o){const i=this.getDataset().data,t=this._cachedMeta;if(this._parsing===!1)t._parsed=i;else{let e=b=>+i[b];if(br(i[r])){const{key:b="value"}=this._parsing;e=_=>+Xa(i[_],b)}let u,p;for(u=r,p=r+o;u<p;++u)t._parsed[u]=e(u)}}_getRotation(){return fa(this.options.rotation-90)}_getCircumference(){return fa(this.options.circumference)}_getRotationExtents(){let r=Or,o=-Or;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)){const t=this.chart.getDatasetMeta(i).controller,e=t._getRotation(),u=t._getCircumference();r=Math.min(r,e),o=Math.max(o,e+u)}return{rotation:r,circumference:o-r}}update(r){const o=this.chart,{chartArea:i}=o,t=this._cachedMeta,e=t.data,u=this.getMaxBorderWidth()+this.getMaxOffset(e)+this.options.spacing,p=Math.max((Math.min(i.width,i.height)-u)/2,0),b=Math.min(y_(this.options.cutout,p),1),_=this._getRingWeight(this.index),{circumference:w,rotation:S}=this._getRotationExtents(),{ratioX:A,ratioY:E,offsetX:M,offsetY:N}=Fw(S,w,b),q=(i.width-u)/A,U=(i.height-u)/E,ee=Math.max(Math.min(q,U)/2,0),ie=Dm(this.options.radius,ee),j=Math.max(ie*b,0),H=(ie-j)/this._getVisibleDatasetWeightTotal();this.offsetX=M*ie,this.offsetY=N*ie,t.total=this.calculateTotal(),this.outerRadius=ie-H*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-H*_,0),this.updateElements(e,0,e.length,r)}_circumference(r,o){const i=this.options,t=this._cachedMeta,e=this._getCircumference();return o&&i.animation.animateRotate||!this.chart.getDataVisibility(r)||t._parsed[r]===null||t.data[r].hidden?0:this.calculateCircumference(t._parsed[r]*e/Or)}updateElements(r,o,i,t){const e=t==="reset",u=this.chart,p=u.chartArea,_=u.options.animation,w=(p.left+p.right)/2,S=(p.top+p.bottom)/2,A=e&&_.animateScale,E=A?0:this.innerRadius,M=A?0:this.outerRadius,{sharedOptions:N,includeOptions:q}=this._getSharedOptions(o,t);let U=this._getRotation(),ee;for(ee=0;ee<o;++ee)U+=this._circumference(ee,e);for(ee=o;ee<o+i;++ee){const ie=this._circumference(ee,e),j=r[ee],H={x:w+this.offsetX,y:S+this.offsetY,startAngle:U,endAngle:U+ie,circumference:ie,outerRadius:M,innerRadius:E};q&&(H.options=N||this.resolveDataElementOptions(ee,j.active?"active":t)),U+=ie,this.updateElement(j,ee,H,t)}}calculateTotal(){const r=this._cachedMeta,o=r.data;let i=0,t;for(t=0;t<o.length;t++){const e=r._parsed[t];e!==null&&!isNaN(e)&&this.chart.getDataVisibility(t)&&!o[t].hidden&&(i+=Math.abs(e))}return i}calculateCircumference(r){const o=this._cachedMeta.total;return o>0&&!isNaN(r)?Or*(Math.abs(r)/o):0}getLabelAndValue(r){const o=this._cachedMeta,i=this.chart,t=i.data.labels||[],e=an(o._parsed[r],i.options.locale);return{label:t[r]||"",value:e}}getMaxBorderWidth(r){let o=0;const i=this.chart;let t,e,u,p,b;if(!r){for(t=0,e=i.data.datasets.length;t<e;++t)if(i.isDatasetVisible(t)){u=i.getDatasetMeta(t),r=u.data,p=u.controller;break}}if(!r)return 0;for(t=0,e=r.length;t<e;++t)b=p.resolveDataElementOptions(t),b.borderAlign!=="inner"&&(o=Math.max(o,b.borderWidth||0,b.hoverBorderWidth||0));return o}getMaxOffset(r){let o=0;for(let i=0,t=r.length;i<t;++i){const e=this.resolveDataElementOptions(i);o=Math.max(o,e.offset||0,e.hoverOffset||0)}return o}_getRingWeightOffset(r){let o=0;for(let i=0;i<r;++i)this.chart.isDatasetVisible(i)&&(o+=this._getRingWeight(i));return o}_getRingWeight(r){return Math.max(Gt(this.chart.data.datasets[r].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}on.id="doughnut";on.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};on.descriptors={_scriptable:s=>s!=="spacing",_indexable:s=>s!=="spacing"};on.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(s){const r=s.data;if(r.labels.length&&r.datasets.length){const{labels:{pointStyle:o}}=s.legend.options;return r.labels.map((i,t)=>{const u=s.getDatasetMeta(0).controller.getStyle(t);return{text:i,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,lineWidth:u.borderWidth,pointStyle:o,hidden:!s.getDataVisibility(t),index:t}})}return[]}},onClick(s,r,o){o.chart.toggleDataVisibility(r.index),o.chart.update()}},tooltip:{callbacks:{title(){return""},label(s){let r=s.label;const o=": "+s.formattedValue;return Br(r)?(r=r.slice(),r[0]+=o):r+=o,r}}}}};class zf extends ua{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(r){const o=this._cachedMeta,{dataset:i,data:t=[],_dataset:e}=o,u=this.chart._animationsDisabled;let{start:p,count:b}=Mm(o,t,u);this._drawStart=p,this._drawCount=b,Om(o)&&(p=0,b=t.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!e._decimated,i.points=t;const _=this.resolveDatasetElementOptions(r);this.options.showLine||(_.borderWidth=0),_.segment=this.options.segment,this.updateElement(i,void 0,{animated:!u,options:_},r),this.updateElements(t,p,b,r)}updateElements(r,o,i,t){const e=t==="reset",{iScale:u,vScale:p,_stacked:b,_dataset:_}=this._cachedMeta,{sharedOptions:w,includeOptions:S}=this._getSharedOptions(o,t),A=u.axis,E=p.axis,{spanGaps:M,segment:N}=this.options,q=ei(M)?M:Number.POSITIVE_INFINITY,U=this.chart._animationsDisabled||e||t==="none";let ee=o>0&&this.getParsed(o-1);for(let ie=o;ie<o+i;++ie){const j=r[ie],H=this.getParsed(ie),ne=U?j:{},W=xr(H[E]),Ae=ne[A]=u.getPixelForValue(H[A],ie),ve=ne[E]=e||W?p.getBasePixel():p.getPixelForValue(b?this.applyStack(p,H,b):H[E],ie);ne.skip=isNaN(Ae)||isNaN(ve)||W,ne.stop=ie>0&&Math.abs(H[A]-ee[A])>q,N&&(ne.parsed=H,ne.raw=_.data[ie]),S&&(ne.options=w||this.resolveDataElementOptions(ie,j.active?"active":t)),U||this.updateElement(j,ie,ne,t),ee=H}}getMaxOverflow(){const r=this._cachedMeta,o=r.dataset,i=o.options&&o.options.borderWidth||0,t=r.data||[];if(!t.length)return i;const e=t[0].size(this.resolveDataElementOptions(0)),u=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(i,e,u)/2}draw(){const r=this._cachedMeta;r.dataset.updateControlPoints(this.chart.chartArea,r.iScale.axis),super.draw()}}zf.id="line";zf.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};zf.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Gf extends ua{constructor(r,o){super(r,o),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(r){const o=this._cachedMeta,i=this.chart,t=i.data.labels||[],e=an(o._parsed[r].r,i.options.locale);return{label:t[r]||"",value:e}}parseObjectData(r,o,i,t){return Ym.bind(this)(r,o,i,t)}update(r){const o=this._cachedMeta.data;this._updateRadius(),this.updateElements(o,0,o.length,r)}getMinMax(){const r=this._cachedMeta,o={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return r.data.forEach((i,t)=>{const e=this.getParsed(t).r;!isNaN(e)&&this.chart.getDataVisibility(t)&&(e<o.min&&(o.min=e),e>o.max&&(o.max=e))}),o}_updateRadius(){const r=this.chart,o=r.chartArea,i=r.options,t=Math.min(o.right-o.left,o.bottom-o.top),e=Math.max(t/2,0),u=Math.max(i.cutoutPercentage?e/100*i.cutoutPercentage:1,0),p=(e-u)/r.getVisibleDatasetCount();this.outerRadius=e-p*this.index,this.innerRadius=this.outerRadius-p}updateElements(r,o,i,t){const e=t==="reset",u=this.chart,b=u.options.animation,_=this._cachedMeta.rScale,w=_.xCenter,S=_.yCenter,A=_.getIndexAngle(0)-.5*zr;let E=A,M;const N=360/this.countVisibleElements();for(M=0;M<o;++M)E+=this._computeAngle(M,t,N);for(M=o;M<o+i;M++){const q=r[M];let U=E,ee=E+this._computeAngle(M,t,N),ie=u.getDataVisibility(M)?_.getDistanceFromCenterForValue(this.getParsed(M).r):0;E=ee,e&&(b.animateScale&&(ie=0),b.animateRotate&&(U=ee=A));const j={x:w,y:S,innerRadius:0,outerRadius:ie,startAngle:U,endAngle:ee,options:this.resolveDataElementOptions(M,q.active?"active":t)};this.updateElement(q,M,j,t)}}countVisibleElements(){const r=this._cachedMeta;let o=0;return r.data.forEach((i,t)=>{!isNaN(this.getParsed(t).r)&&this.chart.getDataVisibility(t)&&o++}),o}_computeAngle(r,o,i){return this.chart.getDataVisibility(r)?fa(this.resolveDataElementOptions(r,o).angle||i):0}}Gf.id="polarArea";Gf.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};Gf.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(s){const r=s.data;if(r.labels.length&&r.datasets.length){const{labels:{pointStyle:o}}=s.legend.options;return r.labels.map((i,t)=>{const u=s.getDatasetMeta(0).controller.getStyle(t);return{text:i,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,lineWidth:u.borderWidth,pointStyle:o,hidden:!s.getDataVisibility(t),index:t}})}return[]}},onClick(s,r,o){o.chart.toggleDataVisibility(r.index),o.chart.update()}},tooltip:{callbacks:{title(){return""},label(s){return s.chart.data.labels[s.dataIndex]+": "+s.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class tg extends on{}tg.id="pie";tg.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class jf extends ua{getLabelAndValue(r){const o=this._cachedMeta.vScale,i=this.getParsed(r);return{label:o.getLabels()[r],value:""+o.getLabelForValue(i[o.axis])}}parseObjectData(r,o,i,t){return Ym.bind(this)(r,o,i,t)}update(r){const o=this._cachedMeta,i=o.dataset,t=o.data||[],e=o.iScale.getLabels();if(i.points=t,r!=="resize"){const u=this.resolveDatasetElementOptions(r);this.options.showLine||(u.borderWidth=0);const p={_loop:!0,_fullLoop:e.length===t.length,options:u};this.updateElement(i,void 0,p,r)}this.updateElements(t,0,t.length,r)}updateElements(r,o,i,t){const e=this._cachedMeta.rScale,u=t==="reset";for(let p=o;p<o+i;p++){const b=r[p],_=this.resolveDataElementOptions(p,b.active?"active":t),w=e.getPointPositionForValue(p,this.getParsed(p).r),S=u?e.xCenter:w.x,A=u?e.yCenter:w.y,E={x:S,y:A,angle:w.angle,skip:isNaN(S)||isNaN(A),options:_};this.updateElement(b,p,E,t)}}}jf.id="radar";jf.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};jf.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class da{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(r){const{x:o,y:i}=this.getProps(["x","y"],r);return{x:o,y:i}}hasValue(){return ei(this.x)&&ei(this.y)}getProps(r,o){const i=this.$animations;if(!o||!i)return this;const t={};return r.forEach(e=>{t[e]=i[e]&&i[e].active()?i[e]._to:this[e]}),t}}da.defaults={};da.defaultRoutes=void 0;const rg={values(s){return Br(s)?s:""+s},numeric(s,r,o){if(s===0)return"0";const i=this.chart.options.locale;let t,e=s;if(o.length>1){const _=Math.max(Math.abs(o[0].value),Math.abs(o[o.length-1].value));(_<1e-4||_>1e15)&&(t="scientific"),e=Dw(s,o)}const u=ra(Math.abs(e)),p=Math.max(Math.min(-1*Math.floor(u),20),0),b={notation:t,minimumFractionDigits:p,maximumFractionDigits:p};return Object.assign(b,this.options.ticks.format),an(s,i,b)},logarithmic(s,r,o){if(s===0)return"0";const i=s/Math.pow(10,Math.floor(ra(s)));return i===1||i===2||i===5?rg.numeric.call(this,s,r,o):""}};function Dw(s,r){let o=r.length>3?r[2].value-r[1].value:r[1].value-r[0].value;return Math.abs(o)>=1&&s!==Math.floor(s)&&(o=s-Math.floor(s)),o}var wl={formatters:rg};lr.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(s,r)=>r.lineWidth,tickColor:(s,r)=>r.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:wl.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}});lr.route("scale.ticks","color","","color");lr.route("scale.grid","color","","borderColor");lr.route("scale.grid","borderColor","","borderColor");lr.route("scale.title","color","","color");lr.describe("scale",{_fallback:!1,_scriptable:s=>!s.startsWith("before")&&!s.startsWith("after")&&s!=="callback"&&s!=="parser",_indexable:s=>s!=="borderDash"&&s!=="tickBorderDash"});lr.describe("scales",{_fallback:"scale"});lr.describe("scale.ticks",{_scriptable:s=>s!=="backdropPadding"&&s!=="callback",_indexable:s=>s!=="backdropPadding"});function Aw(s,r){const o=s.options.ticks,i=o.maxTicksLimit||Sw(s),t=o.major.enabled?Tw(r):[],e=t.length,u=t[0],p=t[e-1],b=[];if(e>i)return Rw(r,b,t,e/i),b;const _=Ew(t,r,i);if(e>0){let w,S;const A=e>1?Math.round((p-u)/(e-1)):null;for(rl(r,b,_,xr(A)?0:u-A,u),w=0,S=e-1;w<S;w++)rl(r,b,_,t[w],t[w+1]);return rl(r,b,_,p,xr(A)?r.length:p+A),b}return rl(r,b,_),b}function Sw(s){const r=s.options.offset,o=s._tickSize(),i=s._length/o+(r?0:1),t=s._maxLength/o;return Math.floor(Math.min(i,t))}function Ew(s,r,o){const i=kw(s),t=r.length/o;if(!i)return Math.max(t,1);const e=A_(i);for(let u=0,p=e.length-1;u<p;u++){const b=e[u];if(b>t)return b}return Math.max(t,1)}function Tw(s){const r=[];let o,i;for(o=0,i=s.length;o<i;o++)s[o].major&&r.push(o);return r}function Rw(s,r,o,i){let t=0,e=o[0],u;for(i=Math.ceil(i),u=0;u<s.length;u++)u===e&&(r.push(s[u]),t++,e=o[t*i])}function rl(s,r,o,i,t){const e=Gt(i,0),u=Math.min(Gt(t,s.length),s.length);let p=0,b,_,w;for(o=Math.ceil(o),t&&(b=t-i,o=b/Math.floor(b/o)),w=e;w<0;)p++,w=Math.round(e+p*o);for(_=Math.max(e,0);_<u;_++)_===w&&(r.push(s[_]),p++,w=Math.round(e+p*o))}function kw(s){const r=s.length;let o,i;if(r<2)return!1;for(i=s[0],o=1;o<r;++o)if(s[o]-s[o-1]!==i)return!1;return i}const Lw=s=>s==="left"?"right":s==="right"?"left":s,E0=(s,r,o)=>r==="top"||r==="left"?s[r]+o:s[r]-o;function T0(s,r){const o=[],i=s.length/r,t=s.length;let e=0;for(;e<t;e+=i)o.push(s[Math.floor(e)]);return o}function Mw(s,r,o){const i=s.ticks.length,t=Math.min(r,i-1),e=s._startPixel,u=s._endPixel,p=1e-6;let b=s.getPixelForTick(t),_;if(!(o&&(i===1?_=Math.max(b-e,u-b):r===0?_=(s.getPixelForTick(1)-b)/2:_=(b-s.getPixelForTick(t-1))/2,b+=t<r?_:-_,b<e-p||b>u+p)))return b}function Ow(s,r){Sr(s,o=>{const i=o.gc,t=i.length/2;let e;if(t>r){for(e=0;e<t;++e)delete o.data[i[e]];i.splice(0,t)}})}function zi(s){return s.drawTicks?s.tickLength:0}function R0(s,r){if(!s.display)return 0;const o=us(s.font,r),i=Ts(s.padding);return(Br(s.text)?s.text.length:1)*o.lineHeight+i.height}function Pw(s,r){return Za(s,{scale:r,type:"scale"})}function Nw(s,r,o){return Za(s,{tick:o,index:r,type:"tick"})}function Iw(s,r,o){let i=Tf(s);return(o&&r!=="right"||!o&&r==="right")&&(i=Lw(i)),i}function Vw(s,r,o,i){const{top:t,left:e,bottom:u,right:p,chart:b}=s,{chartArea:_,scales:w}=b;let S=0,A,E,M;const N=u-t,q=p-e;if(s.isHorizontal()){if(E=Ss(i,e,p),br(o)){const U=Object.keys(o)[0],ee=o[U];M=w[U].getPixelForValue(ee)+N-r}else o==="center"?M=(_.bottom+_.top)/2+N-r:M=E0(s,o,r);A=p-e}else{if(br(o)){const U=Object.keys(o)[0],ee=o[U];E=w[U].getPixelForValue(ee)-q+r}else o==="center"?E=(_.left+_.right)/2-q+r:E=E0(s,o,r);M=Ss(i,u,t),S=o==="left"?-Qr:Qr}return{titleX:E,titleY:M,maxWidth:A,rotation:S}}class Ro extends da{constructor(r){super(),this.id=r.id,this.type=r.type,this.options=void 0,this.ctx=r.ctx,this.chart=r.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(r){this.options=r.setContext(this.getContext()),this.axis=r.axis,this._userMin=this.parse(r.min),this._userMax=this.parse(r.max),this._suggestedMin=this.parse(r.suggestedMin),this._suggestedMax=this.parse(r.suggestedMax)}parse(r,o){return r}getUserBounds(){let{_userMin:r,_userMax:o,_suggestedMin:i,_suggestedMax:t}=this;return r=ta(r,Number.POSITIVE_INFINITY),o=ta(o,Number.NEGATIVE_INFINITY),i=ta(i,Number.POSITIVE_INFINITY),t=ta(t,Number.NEGATIVE_INFINITY),{min:ta(r,i),max:ta(o,t),minDefined:ys(r),maxDefined:ys(o)}}getMinMax(r){let{min:o,max:i,minDefined:t,maxDefined:e}=this.getUserBounds(),u;if(t&&e)return{min:o,max:i};const p=this.getMatchingVisibleMetas();for(let b=0,_=p.length;b<_;++b)u=p[b].controller.getMinMax(this,r),t||(o=Math.min(o,u.min)),e||(i=Math.max(i,u.max));return o=e&&o>i?i:o,i=t&&o>i?o:i,{min:ta(o,ta(i,o)),max:ta(i,ta(o,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const r=this.chart.data;return this.options.labels||(this.isHorizontal()?r.xLabels:r.yLabels)||r.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Pr(this.options.beforeUpdate,[this])}update(r,o,i){const{beginAtZero:t,grace:e,ticks:u}=this.options,p=u.sampleSize;this.beforeUpdate(),this.maxWidth=r,this.maxHeight=o,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=pv(this,e,t),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const b=p<this.ticks.length;this._convertTicksToLabels(b?T0(this.ticks,p):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),u.display&&(u.autoSkip||u.source==="auto")&&(this.ticks=Aw(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),b&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let r=this.options.reverse,o,i;this.isHorizontal()?(o=this.left,i=this.right):(o=this.top,i=this.bottom,r=!r),this._startPixel=o,this._endPixel=i,this._reversePixels=r,this._length=i-o,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Pr(this.options.afterUpdate,[this])}beforeSetDimensions(){Pr(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Pr(this.options.afterSetDimensions,[this])}_callHooks(r){this.chart.notifyPlugins(r,this.getContext()),Pr(this.options[r],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Pr(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(r){const o=this.options.ticks;let i,t,e;for(i=0,t=r.length;i<t;i++)e=r[i],e.label=Pr(o.callback,[e.value,i,r],this)}afterTickToLabelConversion(){Pr(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Pr(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const r=this.options,o=r.ticks,i=this.ticks.length,t=o.minRotation||0,e=o.maxRotation;let u=t,p,b,_;if(!this._isVisible()||!o.display||t>=e||i<=1||!this.isHorizontal()){this.labelRotation=t;return}const w=this._getLabelSizes(),S=w.widest.width,A=w.highest.height,E=Es(this.chart.width-S,0,this.maxWidth);p=r.offset?this.maxWidth/i:E/(i-1),S+6>p&&(p=E/(i-(r.offset?.5:1)),b=this.maxHeight-zi(r.grid)-o.padding-R0(r.title,this.chart.options.font),_=Math.sqrt(S*S+A*A),u=Sf(Math.min(Math.asin(Es((w.highest.height+6)/p,-1,1)),Math.asin(Es(b/_,-1,1))-Math.asin(Es(A/_,-1,1)))),u=Math.max(t,Math.min(e,u))),this.labelRotation=u}afterCalculateLabelRotation(){Pr(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Pr(this.options.beforeFit,[this])}fit(){const r={width:0,height:0},{chart:o,options:{ticks:i,title:t,grid:e}}=this,u=this._isVisible(),p=this.isHorizontal();if(u){const b=R0(t,o.options.font);if(p?(r.width=this.maxWidth,r.height=zi(e)+b):(r.height=this.maxHeight,r.width=zi(e)+b),i.display&&this.ticks.length){const{first:_,last:w,widest:S,highest:A}=this._getLabelSizes(),E=i.padding*2,M=fa(this.labelRotation),N=Math.cos(M),q=Math.sin(M);if(p){const U=i.mirror?0:q*S.width+N*A.height;r.height=Math.min(this.maxHeight,r.height+U+E)}else{const U=i.mirror?0:N*S.width+q*A.height;r.width=Math.min(this.maxWidth,r.width+U+E)}this._calculatePadding(_,w,q,N)}}this._handleMargins(),p?(this.width=this._length=o.width-this._margins.left-this._margins.right,this.height=r.height):(this.width=r.width,this.height=this._length=o.height-this._margins.top-this._margins.bottom)}_calculatePadding(r,o,i,t){const{ticks:{align:e,padding:u},position:p}=this.options,b=this.labelRotation!==0,_=p!=="top"&&this.axis==="x";if(this.isHorizontal()){const w=this.getPixelForTick(0)-this.left,S=this.right-this.getPixelForTick(this.ticks.length-1);let A=0,E=0;b?_?(A=t*r.width,E=i*o.height):(A=i*r.height,E=t*o.width):e==="start"?E=o.width:e==="end"?A=r.width:e!=="inner"&&(A=r.width/2,E=o.width/2),this.paddingLeft=Math.max((A-w+u)*this.width/(this.width-w),0),this.paddingRight=Math.max((E-S+u)*this.width/(this.width-S),0)}else{let w=o.height/2,S=r.height/2;e==="start"?(w=0,S=r.height):e==="end"&&(w=o.height,S=0),this.paddingTop=w+u,this.paddingBottom=S+u}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Pr(this.options.afterFit,[this])}isHorizontal(){const{axis:r,position:o}=this.options;return o==="top"||o==="bottom"||r==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(r){this.beforeTickToLabelConversion(),this.generateTickLabels(r);let o,i;for(o=0,i=r.length;o<i;o++)xr(r[o].label)&&(r.splice(o,1),i--,o--);this.afterTickToLabelConversion()}_getLabelSizes(){let r=this._labelSizes;if(!r){const o=this.options.ticks.sampleSize;let i=this.ticks;o<i.length&&(i=T0(i,o)),this._labelSizes=r=this._computeLabelSizes(i,i.length)}return r}_computeLabelSizes(r,o){const{ctx:i,_longestTextCache:t}=this,e=[],u=[];let p=0,b=0,_,w,S,A,E,M,N,q,U,ee,ie;for(_=0;_<o;++_){if(A=r[_].label,E=this._resolveTickFontOptions(_),i.font=M=E.string,N=t[M]=t[M]||{data:{},gc:[]},q=E.lineHeight,U=ee=0,!xr(A)&&!Br(A))U=pl(i,N.data,N.gc,U,A),ee=q;else if(Br(A))for(w=0,S=A.length;w<S;++w)ie=A[w],!xr(ie)&&!Br(ie)&&(U=pl(i,N.data,N.gc,U,ie),ee+=q);e.push(U),u.push(ee),p=Math.max(U,p),b=Math.max(ee,b)}Ow(t,o);const j=e.indexOf(p),H=u.indexOf(b),ne=W=>({width:e[W]||0,height:u[W]||0});return{first:ne(0),last:ne(o-1),widest:ne(j),highest:ne(H),widths:e,heights:u}}getLabelForValue(r){return r}getPixelForValue(r,o){return NaN}getValueForPixel(r){}getPixelForTick(r){const o=this.ticks;return r<0||r>o.length-1?null:this.getPixelForValue(o[r].value)}getPixelForDecimal(r){this._reversePixels&&(r=1-r);const o=this._startPixel+r*this._length;return T_(this._alignToPixels?_o(this.chart,o,0):o)}getDecimalForPixel(r){const o=(r-this._startPixel)/this._length;return this._reversePixels?1-o:o}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:r,max:o}=this;return r<0&&o<0?o:r>0&&o>0?r:0}getContext(r){const o=this.ticks||[];if(r>=0&&r<o.length){const i=o[r];return i.$context||(i.$context=Nw(this.getContext(),r,i))}return this.$context||(this.$context=Pw(this.chart.getContext(),this))}_tickSize(){const r=this.options.ticks,o=fa(this.labelRotation),i=Math.abs(Math.cos(o)),t=Math.abs(Math.sin(o)),e=this._getLabelSizes(),u=r.autoSkipPadding||0,p=e?e.widest.width+u:0,b=e?e.highest.height+u:0;return this.isHorizontal()?b*i>p*t?p/i:b/t:b*t<p*i?b/i:p/t}_isVisible(){const r=this.options.display;return r!=="auto"?!!r:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(r){const o=this.axis,i=this.chart,t=this.options,{grid:e,position:u}=t,p=e.offset,b=this.isHorizontal(),w=this.ticks.length+(p?1:0),S=zi(e),A=[],E=e.setContext(this.getContext()),M=E.drawBorder?E.borderWidth:0,N=M/2,q=function(st){return _o(i,st,M)};let U,ee,ie,j,H,ne,W,Ae,ve,it,ft,Je;if(u==="top")U=q(this.bottom),ne=this.bottom-S,Ae=U-N,it=q(r.top)+N,Je=r.bottom;else if(u==="bottom")U=q(this.top),it=r.top,Je=q(r.bottom)-N,ne=U+N,Ae=this.top+S;else if(u==="left")U=q(this.right),H=this.right-S,W=U-N,ve=q(r.left)+N,ft=r.right;else if(u==="right")U=q(this.left),ve=r.left,ft=q(r.right)-N,H=U+N,W=this.left+S;else if(o==="x"){if(u==="center")U=q((r.top+r.bottom)/2+.5);else if(br(u)){const st=Object.keys(u)[0],Mt=u[st];U=q(this.chart.scales[st].getPixelForValue(Mt))}it=r.top,Je=r.bottom,ne=U+N,Ae=ne+S}else if(o==="y"){if(u==="center")U=q((r.left+r.right)/2);else if(br(u)){const st=Object.keys(u)[0],Mt=u[st];U=q(this.chart.scales[st].getPixelForValue(Mt))}H=U-N,W=H-S,ve=r.left,ft=r.right}const ut=Gt(t.ticks.maxTicksLimit,w),bt=Math.max(1,Math.ceil(w/ut));for(ee=0;ee<w;ee+=bt){const st=e.setContext(this.getContext(ee)),Mt=st.lineWidth,Lt=st.color,Er=st.borderDash||[],At=st.borderDashOffset,Se=st.tickWidth,Q=st.tickColor,Ce=st.tickBorderDash||[],Te=st.tickBorderDashOffset;ie=Mw(this,ee,p),ie!==void 0&&(j=_o(i,ie,Mt),b?H=W=ve=ft=j:ne=Ae=it=Je=j,A.push({tx1:H,ty1:ne,tx2:W,ty2:Ae,x1:ve,y1:it,x2:ft,y2:Je,width:Mt,color:Lt,borderDash:Er,borderDashOffset:At,tickWidth:Se,tickColor:Q,tickBorderDash:Ce,tickBorderDashOffset:Te}))}return this._ticksLength=w,this._borderValue=U,A}_computeLabelItems(r){const o=this.axis,i=this.options,{position:t,ticks:e}=i,u=this.isHorizontal(),p=this.ticks,{align:b,crossAlign:_,padding:w,mirror:S}=e,A=zi(i.grid),E=A+w,M=S?-w:E,N=-fa(this.labelRotation),q=[];let U,ee,ie,j,H,ne,W,Ae,ve,it,ft,Je,ut="middle";if(t==="top")ne=this.bottom-M,W=this._getXAxisLabelAlignment();else if(t==="bottom")ne=this.top+M,W=this._getXAxisLabelAlignment();else if(t==="left"){const st=this._getYAxisLabelAlignment(A);W=st.textAlign,H=st.x}else if(t==="right"){const st=this._getYAxisLabelAlignment(A);W=st.textAlign,H=st.x}else if(o==="x"){if(t==="center")ne=(r.top+r.bottom)/2+E;else if(br(t)){const st=Object.keys(t)[0],Mt=t[st];ne=this.chart.scales[st].getPixelForValue(Mt)+E}W=this._getXAxisLabelAlignment()}else if(o==="y"){if(t==="center")H=(r.left+r.right)/2-E;else if(br(t)){const st=Object.keys(t)[0],Mt=t[st];H=this.chart.scales[st].getPixelForValue(Mt)}W=this._getYAxisLabelAlignment(A).textAlign}o==="y"&&(b==="start"?ut="top":b==="end"&&(ut="bottom"));const bt=this._getLabelSizes();for(U=0,ee=p.length;U<ee;++U){ie=p[U],j=ie.label;const st=e.setContext(this.getContext(U));Ae=this.getPixelForTick(U)+e.labelOffset,ve=this._resolveTickFontOptions(U),it=ve.lineHeight,ft=Br(j)?j.length:1;const Mt=ft/2,Lt=st.color,Er=st.textStrokeColor,At=st.textStrokeWidth;let Se=W;u?(H=Ae,W==="inner"&&(U===ee-1?Se=this.options.reverse?"left":"right":U===0?Se=this.options.reverse?"right":"left":Se="center"),t==="top"?_==="near"||N!==0?Je=-ft*it+it/2:_==="center"?Je=-bt.highest.height/2-Mt*it+it:Je=-bt.highest.height+it/2:_==="near"||N!==0?Je=it/2:_==="center"?Je=bt.highest.height/2-Mt*it:Je=bt.highest.height-ft*it,S&&(Je*=-1)):(ne=Ae,Je=(1-ft)*it/2);let Q;if(st.showLabelBackdrop){const Ce=Ts(st.backdropPadding),Te=bt.heights[U],xe=bt.widths[U];let oe=ne+Je-Ce.top,pe=H-Ce.left;switch(ut){case"middle":oe-=Te/2;break;case"bottom":oe-=Te;break}switch(W){case"center":pe-=xe/2;break;case"right":pe-=xe;break}Q={left:pe,top:oe,width:xe+Ce.width,height:Te+Ce.height,color:st.backdropColor}}q.push({rotation:N,label:j,font:ve,color:Lt,strokeColor:Er,strokeWidth:At,textOffset:Je,textAlign:Se,textBaseline:ut,translation:[H,ne],backdrop:Q})}return q}_getXAxisLabelAlignment(){const{position:r,ticks:o}=this.options;if(-fa(this.labelRotation))return r==="top"?"left":"right";let t="center";return o.align==="start"?t="left":o.align==="end"?t="right":o.align==="inner"&&(t="inner"),t}_getYAxisLabelAlignment(r){const{position:o,ticks:{crossAlign:i,mirror:t,padding:e}}=this.options,u=this._getLabelSizes(),p=r+e,b=u.widest.width;let _,w;return o==="left"?t?(w=this.right+e,i==="near"?_="left":i==="center"?(_="center",w+=b/2):(_="right",w+=b)):(w=this.right-p,i==="near"?_="right":i==="center"?(_="center",w-=b/2):(_="left",w=this.left)):o==="right"?t?(w=this.left+e,i==="near"?_="right":i==="center"?(_="center",w-=b/2):(_="left",w-=b)):(w=this.left+p,i==="near"?_="left":i==="center"?(_="center",w+=b/2):(_="right",w=this.right)):_="right",{textAlign:_,x:w}}_computeLabelArea(){if(this.options.ticks.mirror)return;const r=this.chart,o=this.options.position;if(o==="left"||o==="right")return{top:0,left:this.left,bottom:r.height,right:this.right};if(o==="top"||o==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:r.width}}drawBackground(){const{ctx:r,options:{backgroundColor:o},left:i,top:t,width:e,height:u}=this;o&&(r.save(),r.fillStyle=o,r.fillRect(i,t,e,u),r.restore())}getLineWidthForValue(r){const o=this.options.grid;if(!this._isVisible()||!o.display)return 0;const t=this.ticks.findIndex(e=>e.value===r);return t>=0?o.setContext(this.getContext(t)).lineWidth:0}drawGrid(r){const o=this.options.grid,i=this.ctx,t=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(r));let e,u;const p=(b,_,w)=>{!w.width||!w.color||(i.save(),i.lineWidth=w.width,i.strokeStyle=w.color,i.setLineDash(w.borderDash||[]),i.lineDashOffset=w.borderDashOffset,i.beginPath(),i.moveTo(b.x,b.y),i.lineTo(_.x,_.y),i.stroke(),i.restore())};if(o.display)for(e=0,u=t.length;e<u;++e){const b=t[e];o.drawOnChartArea&&p({x:b.x1,y:b.y1},{x:b.x2,y:b.y2},b),o.drawTicks&&p({x:b.tx1,y:b.ty1},{x:b.tx2,y:b.ty2},{color:b.tickColor,width:b.tickWidth,borderDash:b.tickBorderDash,borderDashOffset:b.tickBorderDashOffset})}}drawBorder(){const{chart:r,ctx:o,options:{grid:i}}=this,t=i.setContext(this.getContext()),e=i.drawBorder?t.borderWidth:0;if(!e)return;const u=i.setContext(this.getContext(0)).lineWidth,p=this._borderValue;let b,_,w,S;this.isHorizontal()?(b=_o(r,this.left,e)-e/2,_=_o(r,this.right,u)+u/2,w=S=p):(w=_o(r,this.top,e)-e/2,S=_o(r,this.bottom,u)+u/2,b=_=p),o.save(),o.lineWidth=t.borderWidth,o.strokeStyle=t.borderColor,o.beginPath(),o.moveTo(b,w),o.lineTo(_,S),o.stroke(),o.restore()}drawLabels(r){if(!this.options.ticks.display)return;const i=this.ctx,t=this._computeLabelArea();t&&Mf(i,t);const e=this._labelItems||(this._labelItems=this._computeLabelItems(r));let u,p;for(u=0,p=e.length;u<p;++u){const b=e[u],_=b.font,w=b.label;b.backdrop&&(i.fillStyle=b.backdrop.color,i.fillRect(b.backdrop.left,b.backdrop.top,b.backdrop.width,b.backdrop.height));let S=b.textOffset;So(i,w,0,S,_,b)}t&&Of(i)}drawTitle(){const{ctx:r,options:{position:o,title:i,reverse:t}}=this;if(!i.display)return;const e=us(i.font),u=Ts(i.padding),p=i.align;let b=e.lineHeight/2;o==="bottom"||o==="center"||br(o)?(b+=u.bottom,Br(i.text)&&(b+=e.lineHeight*(i.text.length-1))):b+=u.top;const{titleX:_,titleY:w,maxWidth:S,rotation:A}=Vw(this,b,o,p);So(r,i.text,0,0,e,{color:i.color,maxWidth:S,rotation:A,textAlign:Iw(p,o,t),textBaseline:"middle",translation:[_,w]})}draw(r){this._isVisible()&&(this.drawBackground(),this.drawGrid(r),this.drawBorder(),this.drawTitle(),this.drawLabels(r))}_layers(){const r=this.options,o=r.ticks&&r.ticks.z||0,i=Gt(r.grid&&r.grid.z,-1);return!this._isVisible()||this.draw!==Ro.prototype.draw?[{z:o,draw:t=>{this.draw(t)}}]:[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i+1,draw:()=>{this.drawBorder()}},{z:o,draw:t=>{this.drawLabels(t)}}]}getMatchingVisibleMetas(r){const o=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",t=[];let e,u;for(e=0,u=o.length;e<u;++e){const p=o[e];p[i]===this.id&&(!r||p.type===r)&&t.push(p)}return t}_resolveTickFontOptions(r){const o=this.options.ticks.setContext(this.getContext(r));return us(o.font)}_maxDigits(){const r=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/r}}class sl{constructor(r,o,i){this.type=r,this.scope=o,this.override=i,this.items=Object.create(null)}isForType(r){return Object.prototype.isPrototypeOf.call(this.type.prototype,r.prototype)}register(r){const o=Object.getPrototypeOf(r);let i;zw(o)&&(i=this.register(o));const t=this.items,e=r.id,u=this.scope+"."+e;if(!e)throw new Error("class does not have id: "+r);return e in t||(t[e]=r,Bw(r,u,i),this.override&&lr.override(r.id,r.overrides)),u}get(r){return this.items[r]}unregister(r){const o=this.items,i=r.id,t=this.scope;i in o&&delete o[i],t&&i in lr[t]&&(delete lr[t][i],this.override&&delete Ao[i])}}function Bw(s,r,o){const i=Zi(Object.create(null),[o?lr.get(o):{},lr.get(r),s.defaults]);lr.set(r,i),s.defaultRoutes&&Uw(r,s.defaultRoutes),s.descriptors&&lr.describe(r,s.descriptors)}function Uw(s,r){Object.keys(r).forEach(o=>{const i=o.split("."),t=i.pop(),e=[s].concat(i).join("."),u=r[o].split("."),p=u.pop(),b=u.join(".");lr.route(e,t,b,p)})}function zw(s){return"id"in s&&"defaults"in s}class Gw{constructor(){this.controllers=new sl(ua,"datasets",!0),this.elements=new sl(da,"elements"),this.plugins=new sl(Object,"plugins"),this.scales=new sl(Ro,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...r){this._each("register",r)}remove(...r){this._each("unregister",r)}addControllers(...r){this._each("register",r,this.controllers)}addElements(...r){this._each("register",r,this.elements)}addPlugins(...r){this._each("register",r,this.plugins)}addScales(...r){this._each("register",r,this.scales)}getController(r){return this._get(r,this.controllers,"controller")}getElement(r){return this._get(r,this.elements,"element")}getPlugin(r){return this._get(r,this.plugins,"plugin")}getScale(r){return this._get(r,this.scales,"scale")}removeControllers(...r){this._each("unregister",r,this.controllers)}removeElements(...r){this._each("unregister",r,this.elements)}removePlugins(...r){this._each("unregister",r,this.plugins)}removeScales(...r){this._each("unregister",r,this.scales)}_each(r,o,i){[...o].forEach(t=>{const e=i||this._getRegistryForType(t);i||e.isForType(t)||e===this.plugins&&t.id?this._exec(r,e,t):Sr(t,u=>{const p=i||this._getRegistryForType(u);this._exec(r,p,u)})})}_exec(r,o,i){const t=Af(r);Pr(i["before"+t],[],i),o[r](i),Pr(i["after"+t],[],i)}_getRegistryForType(r){for(let o=0;o<this._typedRegistries.length;o++){const i=this._typedRegistries[o];if(i.isForType(r))return i}return this.plugins}_get(r,o,i){const t=o.get(r);if(t===void 0)throw new Error('"'+r+'" is not a registered '+i+".");return t}}var Ca=new Gw;class Wf extends ua{update(r){const o=this._cachedMeta,{data:i=[]}=o,t=this.chart._animationsDisabled;let{start:e,count:u}=Mm(o,i,t);if(this._drawStart=e,this._drawCount=u,Om(o)&&(e=0,u=i.length),this.options.showLine){const{dataset:p,_dataset:b}=o;p._chart=this.chart,p._datasetIndex=this.index,p._decimated=!!b._decimated,p.points=i;const _=this.resolveDatasetElementOptions(r);_.segment=this.options.segment,this.updateElement(p,void 0,{animated:!t,options:_},r)}this.updateElements(i,e,u,r)}addElements(){const{showLine:r}=this.options;!this.datasetElementType&&r&&(this.datasetElementType=Ca.getElement("line")),super.addElements()}updateElements(r,o,i,t){const e=t==="reset",{iScale:u,vScale:p,_stacked:b,_dataset:_}=this._cachedMeta,w=this.resolveDataElementOptions(o,t),S=this.getSharedOptions(w),A=this.includeOptions(t,S),E=u.axis,M=p.axis,{spanGaps:N,segment:q}=this.options,U=ei(N)?N:Number.POSITIVE_INFINITY,ee=this.chart._animationsDisabled||e||t==="none";let ie=o>0&&this.getParsed(o-1);for(let j=o;j<o+i;++j){const H=r[j],ne=this.getParsed(j),W=ee?H:{},Ae=xr(ne[M]),ve=W[E]=u.getPixelForValue(ne[E],j),it=W[M]=e||Ae?p.getBasePixel():p.getPixelForValue(b?this.applyStack(p,ne,b):ne[M],j);W.skip=isNaN(ve)||isNaN(it)||Ae,W.stop=j>0&&Math.abs(ne[E]-ie[E])>U,q&&(W.parsed=ne,W.raw=_.data[j]),A&&(W.options=S||this.resolveDataElementOptions(j,H.active?"active":t)),ee||this.updateElement(H,j,W,t),ie=ne}this.updateSharedOptions(S,t,w)}getMaxOverflow(){const r=this._cachedMeta,o=r.data||[];if(!this.options.showLine){let p=0;for(let b=o.length-1;b>=0;--b)p=Math.max(p,o[b].size(this.resolveDataElementOptions(b))/2);return p>0&&p}const i=r.dataset,t=i.options&&i.options.borderWidth||0;if(!o.length)return t;const e=o[0].size(this.resolveDataElementOptions(0)),u=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(t,e,u)/2}}Wf.id="scatter";Wf.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};Wf.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title(){return""},label(s){return"("+s.label+", "+s.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};function vo(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class df{constructor(r){this.options=r||{}}init(r){}formats(){return vo()}parse(r,o){return vo()}format(r,o){return vo()}add(r,o,i){return vo()}diff(r,o,i){return vo()}startOf(r,o,i){return vo()}endOf(r,o){return vo()}}df.override=function(s){Object.assign(df.prototype,s)};var jw={_date:df};function Ww(s,r,o,i){const{controller:t,data:e,_sorted:u}=s,p=t._cachedMeta.iScale;if(p&&r===p.axis&&r!=="r"&&u&&e.length){const b=p._reversePixels?R_:Co;if(i){if(t._sharedOptions){const _=e[0],w=typeof _.getRange=="function"&&_.getRange(r);if(w){const S=b(e,r,o-w),A=b(e,r,o+w);return{lo:S.lo,hi:A.hi}}}}else return b(e,r,o)}return{lo:0,hi:e.length-1}}function nn(s,r,o,i,t){const e=s.getSortedVisibleDatasetMetas(),u=o[r];for(let p=0,b=e.length;p<b;++p){const{index:_,data:w}=e[p],{lo:S,hi:A}=Ww(e[p],r,u,t);for(let E=S;E<=A;++E){const M=w[E];M.skip||i(M,_,E)}}}function Hw(s){const r=s.indexOf("x")!==-1,o=s.indexOf("y")!==-1;return function(i,t){const e=r?Math.abs(i.x-t.x):0,u=o?Math.abs(i.y-t.y):0;return Math.sqrt(Math.pow(e,2)+Math.pow(u,2))}}function $c(s,r,o,i,t){const e=[];return!t&&!s.isPointInArea(r)||nn(s,o,r,function(p,b,_){!t&&!en(p,s.chartArea,0)||p.inRange(r.x,r.y,i)&&e.push({element:p,datasetIndex:b,index:_})},!0),e}function Yw(s,r,o,i){let t=[];function e(u,p,b){const{startAngle:_,endAngle:w}=u.getProps(["startAngle","endAngle"],i),{angle:S}=Em(u,{x:r.x,y:r.y});$i(S,_,w)&&t.push({element:u,datasetIndex:p,index:b})}return nn(s,o,r,e),t}function qw(s,r,o,i,t,e){let u=[];const p=Hw(o);let b=Number.POSITIVE_INFINITY;function _(w,S,A){const E=w.inRange(r.x,r.y,t);if(i&&!E)return;const M=w.getCenterPoint(t);if(!(!!e||s.isPointInArea(M))&&!E)return;const q=p(r,M);q<b?(u=[{element:w,datasetIndex:S,index:A}],b=q):q===b&&u.push({element:w,datasetIndex:S,index:A})}return nn(s,o,r,_),u}function ef(s,r,o,i,t,e){return!e&&!s.isPointInArea(r)?[]:o==="r"&&!i?Yw(s,r,o,t):qw(s,r,o,i,t,e)}function k0(s,r,o,i,t){const e=[],u=o==="x"?"inXRange":"inYRange";let p=!1;return nn(s,o,r,(b,_,w)=>{b[u](r[o],t)&&(e.push({element:b,datasetIndex:_,index:w}),p=p||b.inRange(r.x,r.y,t))}),i&&!p?[]:e}var Kw={evaluateInteractionItems:nn,modes:{index(s,r,o,i){const t=wo(r,s),e=o.axis||"x",u=o.includeInvisible||!1,p=o.intersect?$c(s,t,e,i,u):ef(s,t,e,!1,i,u),b=[];return p.length?(s.getSortedVisibleDatasetMetas().forEach(_=>{const w=p[0].index,S=_.data[w];S&&!S.skip&&b.push({element:S,datasetIndex:_.index,index:w})}),b):[]},dataset(s,r,o,i){const t=wo(r,s),e=o.axis||"xy",u=o.includeInvisible||!1;let p=o.intersect?$c(s,t,e,i,u):ef(s,t,e,!1,i,u);if(p.length>0){const b=p[0].datasetIndex,_=s.getDatasetMeta(b).data;p=[];for(let w=0;w<_.length;++w)p.push({element:_[w],datasetIndex:b,index:w})}return p},point(s,r,o,i){const t=wo(r,s),e=o.axis||"xy",u=o.includeInvisible||!1;return $c(s,t,e,i,u)},nearest(s,r,o,i){const t=wo(r,s),e=o.axis||"xy",u=o.includeInvisible||!1;return ef(s,t,e,o.intersect,i,u)},x(s,r,o,i){const t=wo(r,s);return k0(s,t,"x",o.intersect,i)},y(s,r,o,i){const t=wo(r,s);return k0(s,t,"y",o.intersect,i)}}};const sg=["left","top","right","bottom"];function Gi(s,r){return s.filter(o=>o.pos===r)}function L0(s,r){return s.filter(o=>sg.indexOf(o.pos)===-1&&o.box.axis===r)}function ji(s,r){return s.sort((o,i)=>{const t=r?i:o,e=r?o:i;return t.weight===e.weight?t.index-e.index:t.weight-e.weight})}function Jw(s){const r=[];let o,i,t,e,u,p;for(o=0,i=(s||[]).length;o<i;++o)t=s[o],{position:e,options:{stack:u,stackWeight:p=1}}=t,r.push({index:o,box:t,pos:e,horizontal:t.isHorizontal(),weight:t.weight,stack:u&&e+u,stackWeight:p});return r}function Xw(s){const r={};for(const o of s){const{stack:i,pos:t,stackWeight:e}=o;if(!i||!sg.includes(t))continue;const u=r[i]||(r[i]={count:0,placed:0,weight:0,size:0});u.count++,u.weight+=e}return r}function Qw(s,r){const o=Xw(s),{vBoxMaxWidth:i,hBoxMaxHeight:t}=r;let e,u,p;for(e=0,u=s.length;e<u;++e){p=s[e];const{fullSize:b}=p.box,_=o[p.stack],w=_&&p.stackWeight/_.weight;p.horizontal?(p.width=w?w*i:b&&r.availableWidth,p.height=t):(p.width=i,p.height=w?w*t:b&&r.availableHeight)}return o}function Zw(s){const r=Jw(s),o=ji(r.filter(_=>_.box.fullSize),!0),i=ji(Gi(r,"left"),!0),t=ji(Gi(r,"right")),e=ji(Gi(r,"top"),!0),u=ji(Gi(r,"bottom")),p=L0(r,"x"),b=L0(r,"y");return{fullSize:o,leftAndTop:i.concat(e),rightAndBottom:t.concat(b).concat(u).concat(p),chartArea:Gi(r,"chartArea"),vertical:i.concat(t).concat(b),horizontal:e.concat(u).concat(p)}}function M0(s,r,o,i){return Math.max(s[o],r[o])+Math.max(s[i],r[i])}function ag(s,r){s.top=Math.max(s.top,r.top),s.left=Math.max(s.left,r.left),s.bottom=Math.max(s.bottom,r.bottom),s.right=Math.max(s.right,r.right)}function $w(s,r,o,i){const{pos:t,box:e}=o,u=s.maxPadding;if(!br(t)){o.size&&(s[t]-=o.size);const S=i[o.stack]||{size:0,count:1};S.size=Math.max(S.size,o.horizontal?e.height:e.width),o.size=S.size/S.count,s[t]+=o.size}e.getPadding&&ag(u,e.getPadding());const p=Math.max(0,r.outerWidth-M0(u,s,"left","right")),b=Math.max(0,r.outerHeight-M0(u,s,"top","bottom")),_=p!==s.w,w=b!==s.h;return s.w=p,s.h=b,o.horizontal?{same:_,other:w}:{same:w,other:_}}function e4(s){const r=s.maxPadding;function o(i){const t=Math.max(r[i]-s[i],0);return s[i]+=t,t}s.y+=o("top"),s.x+=o("left"),o("right"),o("bottom")}function t4(s,r){const o=r.maxPadding;function i(t){const e={left:0,top:0,right:0,bottom:0};return t.forEach(u=>{e[u]=Math.max(r[u],o[u])}),e}return i(s?["left","right"]:["top","bottom"])}function Yi(s,r,o,i){const t=[];let e,u,p,b,_,w;for(e=0,u=s.length,_=0;e<u;++e){p=s[e],b=p.box,b.update(p.width||r.w,p.height||r.h,t4(p.horizontal,r));const{same:S,other:A}=$w(r,o,p,i);_|=S&&t.length,w=w||A,b.fullSize||t.push(p)}return _&&Yi(t,r,o,i)||w}function al(s,r,o,i,t){s.top=o,s.left=r,s.right=r+i,s.bottom=o+t,s.width=i,s.height=t}function O0(s,r,o,i){const t=o.padding;let{x:e,y:u}=r;for(const p of s){const b=p.box,_=i[p.stack]||{count:1,placed:0,weight:1},w=p.stackWeight/_.weight||1;if(p.horizontal){const S=r.w*w,A=_.size||b.height;aa(_.start)&&(u=_.start),b.fullSize?al(b,t.left,u,o.outerWidth-t.right-t.left,A):al(b,r.left+_.placed,u,S,A),_.start=u,_.placed+=S,u=b.bottom}else{const S=r.h*w,A=_.size||b.width;aa(_.start)&&(e=_.start),b.fullSize?al(b,e,t.top,A,o.outerHeight-t.bottom-t.top):al(b,e,r.top+_.placed,A,S),_.start=e,_.placed+=S,e=b.right}}r.x=e,r.y=u}lr.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var sa={addBox(s,r){s.boxes||(s.boxes=[]),r.fullSize=r.fullSize||!1,r.position=r.position||"top",r.weight=r.weight||0,r._layers=r._layers||function(){return[{z:0,draw(o){r.draw(o)}}]},s.boxes.push(r)},removeBox(s,r){const o=s.boxes?s.boxes.indexOf(r):-1;o!==-1&&s.boxes.splice(o,1)},configure(s,r,o){r.fullSize=o.fullSize,r.position=o.position,r.weight=o.weight},update(s,r,o,i){if(!s)return;const t=Ts(s.options.layout.padding),e=Math.max(r-t.width,0),u=Math.max(o-t.height,0),p=Zw(s.boxes),b=p.vertical,_=p.horizontal;Sr(s.boxes,N=>{typeof N.beforeLayout=="function"&&N.beforeLayout()});const w=b.reduce((N,q)=>q.box.options&&q.box.options.display===!1?N:N+1,0)||1,S=Object.freeze({outerWidth:r,outerHeight:o,padding:t,availableWidth:e,availableHeight:u,vBoxMaxWidth:e/2/w,hBoxMaxHeight:u/2}),A=Object.assign({},t);ag(A,Ts(i));const E=Object.assign({maxPadding:A,w:e,h:u,x:t.left,y:t.top},t),M=Qw(b.concat(_),S);Yi(p.fullSize,E,S,M),Yi(b,E,S,M),Yi(_,E,S,M)&&Yi(b,E,S,M),e4(E),O0(p.leftAndTop,E,S,M),E.x+=E.w,E.y+=E.h,O0(p.rightAndBottom,E,S,M),s.chartArea={left:E.left,top:E.top,right:E.left+E.w,bottom:E.top+E.h,height:E.h,width:E.w},Sr(p.chartArea,N=>{const q=N.box;Object.assign(q,s.chartArea),q.update(E.w,E.h,{left:0,top:0,right:0,bottom:0})})}};class og{acquireContext(r,o){}releaseContext(r){return!1}addEventListener(r,o,i){}removeEventListener(r,o,i){}getDevicePixelRatio(){return 1}getMaximumSize(r,o,i,t){return o=Math.max(0,o||r.width),i=i||r.height,{width:o,height:Math.max(0,t?Math.floor(o/t):i)}}isAttached(r){return!0}updateConfig(r){}}class r4 extends og{acquireContext(r){return r&&r.getContext&&r.getContext("2d")||null}updateConfig(r){r.options.animation=!1}}const ll="$chartjs",s4={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},P0=s=>s===null||s==="";function a4(s,r){const o=s.style,i=s.getAttribute("height"),t=s.getAttribute("width");if(s[ll]={initial:{height:i,width:t,style:{display:o.display,height:o.height,width:o.width}}},o.display=o.display||"block",o.boxSizing=o.boxSizing||"border-box",P0(t)){const e=h0(s,"width");e!==void 0&&(s.width=e)}if(P0(i))if(s.style.height==="")s.height=s.width/(r||2);else{const e=h0(s,"height");e!==void 0&&(s.height=e)}return s}const ig=Iv?{passive:!0}:!1;function o4(s,r,o){s.addEventListener(r,o,ig)}function i4(s,r,o){s.canvas.removeEventListener(r,o,ig)}function n4(s,r){const o=s4[s.type]||s.type,{x:i,y:t}=wo(s,r);return{type:o,chart:r,native:s,x:i!==void 0?i:null,y:t!==void 0?t:null}}function gl(s,r){for(const o of s)if(o===r||o.contains(r))return!0}function l4(s,r,o){const i=s.canvas,t=new MutationObserver(e=>{let u=!1;for(const p of e)u=u||gl(p.addedNodes,i),u=u&&!gl(p.removedNodes,i);u&&o()});return t.observe(document,{childList:!0,subtree:!0}),t}function c4(s,r,o){const i=s.canvas,t=new MutationObserver(e=>{let u=!1;for(const p of e)u=u||gl(p.removedNodes,i),u=u&&!gl(p.addedNodes,i);u&&o()});return t.observe(document,{childList:!0,subtree:!0}),t}const rn=new Map;let N0=0;function ng(){const s=window.devicePixelRatio;s!==N0&&(N0=s,rn.forEach((r,o)=>{o.currentDevicePixelRatio!==s&&r()}))}function f4(s,r){rn.size||window.addEventListener("resize",ng),rn.set(s,r)}function u4(s){rn.delete(s),rn.size||window.removeEventListener("resize",ng)}function d4(s,r,o){const i=s.canvas,t=i&&Bf(i);if(!t)return;const e=Lm((p,b)=>{const _=t.clientWidth;o(p,b),_<t.clientWidth&&o()},window),u=new ResizeObserver(p=>{const b=p[0],_=b.contentRect.width,w=b.contentRect.height;_===0&&w===0||e(_,w)});return u.observe(t),f4(s,e),u}function tf(s,r,o){o&&o.disconnect(),r==="resize"&&u4(s)}function h4(s,r,o){const i=s.canvas,t=Lm(e=>{s.ctx!==null&&o(n4(e,s))},s,e=>{const u=e[0];return[u,u.offsetX,u.offsetY]});return o4(i,r,t),t}class p4 extends og{acquireContext(r,o){const i=r&&r.getContext&&r.getContext("2d");return i&&i.canvas===r?(a4(r,o),i):null}releaseContext(r){const o=r.canvas;if(!o[ll])return!1;const i=o[ll].initial;["height","width"].forEach(e=>{const u=i[e];xr(u)?o.removeAttribute(e):o.setAttribute(e,u)});const t=i.style||{};return Object.keys(t).forEach(e=>{o.style[e]=t[e]}),o.width=o.width,delete o[ll],!0}addEventListener(r,o,i){this.removeEventListener(r,o);const t=r.$proxies||(r.$proxies={}),u={attach:l4,detach:c4,resize:d4}[o]||h4;t[o]=u(r,o,i)}removeEventListener(r,o){const i=r.$proxies||(r.$proxies={}),t=i[o];if(!t)return;({attach:tf,detach:tf,resize:tf}[o]||i4)(r,o,t),i[o]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(r,o,i,t){return Nv(r,o,i,t)}isAttached(r){const o=Bf(r);return!!(o&&o.isConnected)}}function m4(s){return!Km()||typeof OffscreenCanvas<"u"&&s instanceof OffscreenCanvas?r4:p4}class g4{constructor(){this._init=[]}notify(r,o,i,t){o==="beforeInit"&&(this._init=this._createDescriptors(r,!0),this._notify(this._init,r,"install"));const e=t?this._descriptors(r).filter(t):this._descriptors(r),u=this._notify(e,r,o,i);return o==="afterDestroy"&&(this._notify(e,r,"stop"),this._notify(this._init,r,"uninstall")),u}_notify(r,o,i,t){t=t||{};for(const e of r){const u=e.plugin,p=u[i],b=[o,t,e.options];if(Pr(p,b,u)===!1&&t.cancelable)return!1}return!0}invalidate(){xr(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(r){if(this._cache)return this._cache;const o=this._cache=this._createDescriptors(r);return this._notifyStateChanges(r),o}_createDescriptors(r,o){const i=r&&r.config,t=Gt(i.options&&i.options.plugins,{}),e=b4(i);return t===!1&&!o?[]:_4(r,e,t,o)}_notifyStateChanges(r){const o=this._oldCache||[],i=this._cache,t=(e,u)=>e.filter(p=>!u.some(b=>p.plugin.id===b.plugin.id));this._notify(t(o,i),r,"stop"),this._notify(t(i,o),r,"start")}}function b4(s){const r={},o=[],i=Object.keys(Ca.plugins.items);for(let e=0;e<i.length;e++)o.push(Ca.getPlugin(i[e]));const t=s.plugins||[];for(let e=0;e<t.length;e++){const u=t[e];o.indexOf(u)===-1&&(o.push(u),r[u.id]=!0)}return{plugins:o,localIds:r}}function y4(s,r){return!r&&s===!1?null:s===!0?{}:s}function _4(s,{plugins:r,localIds:o},i,t){const e=[],u=s.getContext();for(const p of r){const b=p.id,_=y4(i[b],t);_!==null&&e.push({plugin:p,options:v4(s.config,{plugin:p,local:o[b]},_,u)})}return e}function v4(s,{plugin:r,local:o},i,t){const e=s.pluginScopeKeys(r),u=s.getOptionScopes(i,e);return o&&r.defaults&&u.push(r.defaults),s.createResolver(u,t,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function hf(s,r){const o=lr.datasets[s]||{};return((r.datasets||{})[s]||{}).indexAxis||r.indexAxis||o.indexAxis||"x"}function w4(s,r){let o=s;return s==="_index_"?o=r:s==="_value_"&&(o=r==="x"?"y":"x"),o}function x4(s,r){return s===r?"_index_":"_value_"}function C4(s){if(s==="top"||s==="bottom")return"x";if(s==="left"||s==="right")return"y"}function pf(s,r){return s==="x"||s==="y"?s:r.axis||C4(r.position)||s.charAt(0).toLowerCase()}function F4(s,r){const o=Ao[s.type]||{scales:{}},i=r.scales||{},t=hf(s.type,r),e=Object.create(null),u=Object.create(null);return Object.keys(i).forEach(p=>{const b=i[p];if(!br(b))return console.error(`Invalid scale configuration for scale: ${p}`);if(b._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${p}`);const _=pf(p,b),w=x4(_,t),S=o.scales||{};e[_]=e[_]||p,u[p]=qi(Object.create(null),[{axis:_},b,S[_],S[w]])}),s.data.datasets.forEach(p=>{const b=p.type||s.type,_=p.indexAxis||hf(b,r),S=(Ao[b]||{}).scales||{};Object.keys(S).forEach(A=>{const E=w4(A,_),M=p[E+"AxisID"]||e[E]||E;u[M]=u[M]||Object.create(null),qi(u[M],[{axis:E},i[M],S[A]])})}),Object.keys(u).forEach(p=>{const b=u[p];qi(b,[lr.scales[b.type],lr.scale])}),u}function lg(s){const r=s.options||(s.options={});r.plugins=Gt(r.plugins,{}),r.scales=F4(s,r)}function cg(s){return s=s||{},s.datasets=s.datasets||[],s.labels=s.labels||[],s}function D4(s){return s=s||{},s.data=cg(s.data),lg(s),s}const I0=new Map,fg=new Set;function ol(s,r){let o=I0.get(s);return o||(o=r(),I0.set(s,o),fg.add(o)),o}const Wi=(s,r,o)=>{const i=Xa(r,o);i!==void 0&&s.add(i)};class A4{constructor(r){this._config=D4(r),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(r){this._config.type=r}get data(){return this._config.data}set data(r){this._config.data=cg(r)}get options(){return this._config.options}set options(r){this._config.options=r}get plugins(){return this._config.plugins}update(){const r=this._config;this.clearCache(),lg(r)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(r){return ol(r,()=>[[`datasets.${r}`,""]])}datasetAnimationScopeKeys(r,o){return ol(`${r}.transition.${o}`,()=>[[`datasets.${r}.transitions.${o}`,`transitions.${o}`],[`datasets.${r}`,""]])}datasetElementScopeKeys(r,o){return ol(`${r}-${o}`,()=>[[`datasets.${r}.elements.${o}`,`datasets.${r}`,`elements.${o}`,""]])}pluginScopeKeys(r){const o=r.id,i=this.type;return ol(`${i}-plugin-${o}`,()=>[[`plugins.${o}`,...r.additionalOptionScopes||[]]])}_cachedScopes(r,o){const i=this._scopeCache;let t=i.get(r);return(!t||o)&&(t=new Map,i.set(r,t)),t}getOptionScopes(r,o,i){const{options:t,type:e}=this,u=this._cachedScopes(r,i),p=u.get(o);if(p)return p;const b=new Set;o.forEach(w=>{r&&(b.add(r),w.forEach(S=>Wi(b,r,S))),w.forEach(S=>Wi(b,t,S)),w.forEach(S=>Wi(b,Ao[e]||{},S)),w.forEach(S=>Wi(b,lr,S)),w.forEach(S=>Wi(b,ff,S))});const _=Array.from(b);return _.length===0&&_.push(Object.create(null)),fg.has(o)&&u.set(o,_),_}chartOptionScopes(){const{options:r,type:o}=this;return[r,Ao[o]||{},lr.datasets[o]||{},{type:o},lr,ff]}resolveNamedOptions(r,o,i,t=[""]){const e={$shared:!0},{resolver:u,subPrefixes:p}=V0(this._resolverCache,r,t);let b=u;if(E4(u,o)){e.$shared=!1,i=Qa(i)?i():i;const _=this.createResolver(r,i,p);b=ti(u,i,_)}for(const _ of o)e[_]=b[_];return e}createResolver(r,o,i=[""],t){const{resolver:e}=V0(this._resolverCache,r,i);return br(o)?ti(e,o,void 0,t):e}}function V0(s,r,o){let i=s.get(r);i||(i=new Map,s.set(r,i));const t=o.join();let e=i.get(t);return e||(e={resolver:Nf(r,o),subPrefixes:o.filter(p=>!p.toLowerCase().includes("hover"))},i.set(t,e)),e}const S4=s=>br(s)&&Object.getOwnPropertyNames(s).reduce((r,o)=>r||Qa(s[o]),!1);function E4(s,r){const{isScriptable:o,isIndexable:i}=Gm(s);for(const t of r){const e=o(t),u=i(t),p=(u||e)&&s[t];if(e&&(Qa(p)||S4(p))||u&&Br(p))return!0}return!1}var T4="3.9.1";const R4=["top","bottom","left","right","chartArea"];function B0(s,r){return s==="top"||s==="bottom"||R4.indexOf(s)===-1&&r==="x"}function U0(s,r){return function(o,i){return o[s]===i[s]?o[r]-i[r]:o[s]-i[s]}}function z0(s){const r=s.chart,o=r.options.animation;r.notifyPlugins("afterRender"),Pr(o&&o.onComplete,[s],r)}function k4(s){const r=s.chart,o=r.options.animation;Pr(o&&o.onProgress,[s],r)}function ug(s){return Km()&&typeof s=="string"?s=document.getElementById(s):s&&s.length&&(s=s[0]),s&&s.canvas&&(s=s.canvas),s}const bl={},dg=s=>{const r=ug(s);return Object.values(bl).filter(o=>o.canvas===r).pop()};function L4(s,r,o){const i=Object.keys(s);for(const t of i){const e=+t;if(e>=r){const u=s[t];delete s[t],(o>0||e>r)&&(s[e+o]=u)}}}function M4(s,r,o,i){return!o||s.type==="mouseout"?null:i?r:s}class Da{constructor(r,o){const i=this.config=new A4(o),t=ug(r),e=dg(t);if(e)throw new Error("Canvas is already in use. Chart with ID '"+e.id+"' must be destroyed before the canvas with ID '"+e.canvas.id+"' can be reused.");const u=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||m4(t)),this.platform.updateConfig(i);const p=this.platform.acquireContext(t,u.aspectRatio),b=p&&p.canvas,_=b&&b.height,w=b&&b.width;if(this.id=b_(),this.ctx=p,this.canvas=b,this.width=w,this.height=_,this._options=u,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new g4,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=M_(S=>this.update(S),u.resizeDelay||0),this._dataChanges=[],bl[this.id]=this,!p||!b){console.error("Failed to create chart: can't acquire context from the given item");return}Pa.listen(this,"complete",z0),Pa.listen(this,"progress",k4),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:r,maintainAspectRatio:o},width:i,height:t,_aspectRatio:e}=this;return xr(r)?o&&e?e:t?i/t:null:r}get data(){return this.config.data}set data(r){this.config.data=r}get options(){return this._options}set options(r){this.config.options=r}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():d0(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return c0(this.canvas,this.ctx),this}stop(){return Pa.stop(this),this}resize(r,o){Pa.running(this)?this._resizeBeforeDraw={width:r,height:o}:this._resize(r,o)}_resize(r,o){const i=this.options,t=this.canvas,e=i.maintainAspectRatio&&this.aspectRatio,u=this.platform.getMaximumSize(t,r,o,e),p=i.devicePixelRatio||this.platform.getDevicePixelRatio(),b=this.width?"resize":"attach";this.width=u.width,this.height=u.height,this._aspectRatio=this.aspectRatio,d0(this,p,!0)&&(this.notifyPlugins("resize",{size:u}),Pr(i.onResize,[this,u],this),this.attached&&this._doResize(b)&&this.render())}ensureScalesHaveIDs(){const o=this.options.scales||{};Sr(o,(i,t)=>{i.id=t})}buildOrUpdateScales(){const r=this.options,o=r.scales,i=this.scales,t=Object.keys(i).reduce((u,p)=>(u[p]=!1,u),{});let e=[];o&&(e=e.concat(Object.keys(o).map(u=>{const p=o[u],b=pf(u,p),_=b==="r",w=b==="x";return{options:p,dposition:_?"chartArea":w?"bottom":"left",dtype:_?"radialLinear":w?"category":"linear"}}))),Sr(e,u=>{const p=u.options,b=p.id,_=pf(b,p),w=Gt(p.type,u.dtype);(p.position===void 0||B0(p.position,_)!==B0(u.dposition))&&(p.position=u.dposition),t[b]=!0;let S=null;if(b in i&&i[b].type===w)S=i[b];else{const A=Ca.getScale(w);S=new A({id:b,type:w,ctx:this.ctx,chart:this}),i[S.id]=S}S.init(p,r)}),Sr(t,(u,p)=>{u||delete i[p]}),Sr(i,u=>{sa.configure(this,u,u.options),sa.addBox(this,u)})}_updateMetasets(){const r=this._metasets,o=this.data.datasets.length,i=r.length;if(r.sort((t,e)=>t.index-e.index),i>o){for(let t=o;t<i;++t)this._destroyDatasetMeta(t);r.splice(o,i-o)}this._sortedMetasets=r.slice(0).sort(U0("order","index"))}_removeUnreferencedMetasets(){const{_metasets:r,data:{datasets:o}}=this;r.length>o.length&&delete this._stacks,r.forEach((i,t)=>{o.filter(e=>e===i._dataset).length===0&&this._destroyDatasetMeta(t)})}buildOrUpdateControllers(){const r=[],o=this.data.datasets;let i,t;for(this._removeUnreferencedMetasets(),i=0,t=o.length;i<t;i++){const e=o[i];let u=this.getDatasetMeta(i);const p=e.type||this.config.type;if(u.type&&u.type!==p&&(this._destroyDatasetMeta(i),u=this.getDatasetMeta(i)),u.type=p,u.indexAxis=e.indexAxis||hf(p,this.options),u.order=e.order||0,u.index=i,u.label=""+e.label,u.visible=this.isDatasetVisible(i),u.controller)u.controller.updateIndex(i),u.controller.linkScales();else{const b=Ca.getController(p),{datasetElementType:_,dataElementType:w}=lr.datasets[p];Object.assign(b.prototype,{dataElementType:Ca.getElement(w),datasetElementType:_&&Ca.getElement(_)}),u.controller=new b(this,i),r.push(u.controller)}}return this._updateMetasets(),r}_resetElements(){Sr(this.data.datasets,(r,o)=>{this.getDatasetMeta(o).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(r){const o=this.config;o.update();const i=this._options=o.createResolver(o.chartOptionScopes(),this.getContext()),t=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:r,cancelable:!0})===!1)return;const e=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let u=0;for(let _=0,w=this.data.datasets.length;_<w;_++){const{controller:S}=this.getDatasetMeta(_),A=!t&&e.indexOf(S)===-1;S.buildOrUpdateElements(A),u=Math.max(+S.getMaxOverflow(),u)}u=this._minPadding=i.layout.autoPadding?u:0,this._updateLayout(u),t||Sr(e,_=>{_.reset()}),this._updateDatasets(r),this.notifyPlugins("afterUpdate",{mode:r}),this._layers.sort(U0("z","_idx"));const{_active:p,_lastEvent:b}=this;b?this._eventHandler(b,!0):p.length&&this._updateHoverStyles(p,p,!0),this.render()}_updateScales(){Sr(this.scales,r=>{sa.removeBox(this,r)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const r=this.options,o=new Set(Object.keys(this._listeners)),i=new Set(r.events);(!Qp(o,i)||!!this._responsiveListeners!==r.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:r}=this,o=this._getUniformDataChanges()||[];for(const{method:i,start:t,count:e}of o){const u=i==="_removeElements"?-e:e;L4(r,t,u)}}_getUniformDataChanges(){const r=this._dataChanges;if(!r||!r.length)return;this._dataChanges=[];const o=this.data.datasets.length,i=e=>new Set(r.filter(u=>u[0]===e).map((u,p)=>p+","+u.splice(1).join(","))),t=i(0);for(let e=1;e<o;e++)if(!Qp(t,i(e)))return;return Array.from(t).map(e=>e.split(",")).map(e=>({method:e[1],start:+e[2],count:+e[3]}))}_updateLayout(r){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;sa.update(this,this.width,this.height,r);const o=this.chartArea,i=o.width<=0||o.height<=0;this._layers=[],Sr(this.boxes,t=>{i&&t.position==="chartArea"||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(r){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:r,cancelable:!0})!==!1){for(let o=0,i=this.data.datasets.length;o<i;++o)this.getDatasetMeta(o).controller.configure();for(let o=0,i=this.data.datasets.length;o<i;++o)this._updateDataset(o,Qa(r)?r({datasetIndex:o}):r);this.notifyPlugins("afterDatasetsUpdate",{mode:r})}}_updateDataset(r,o){const i=this.getDatasetMeta(r),t={meta:i,index:r,mode:o,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",t)!==!1&&(i.controller._update(o),t.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",t))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Pa.has(this)?this.attached&&!Pa.running(this)&&Pa.start(this):(this.draw(),z0({chart:this})))}draw(){let r;if(this._resizeBeforeDraw){const{width:i,height:t}=this._resizeBeforeDraw;this._resize(i,t),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const o=this._layers;for(r=0;r<o.length&&o[r].z<=0;++r)o[r].draw(this.chartArea);for(this._drawDatasets();r<o.length;++r)o[r].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(r){const o=this._sortedMetasets,i=[];let t,e;for(t=0,e=o.length;t<e;++t){const u=o[t];(!r||u.visible)&&i.push(u)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const r=this.getSortedVisibleDatasetMetas();for(let o=r.length-1;o>=0;--o)this._drawDataset(r[o]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(r){const o=this.ctx,i=r._clip,t=!i.disabled,e=this.chartArea,u={meta:r,index:r.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",u)!==!1&&(t&&Mf(o,{left:i.left===!1?0:e.left-i.left,right:i.right===!1?this.width:e.right+i.right,top:i.top===!1?0:e.top-i.top,bottom:i.bottom===!1?this.height:e.bottom+i.bottom}),r.controller.draw(),t&&Of(o),u.cancelable=!1,this.notifyPlugins("afterDatasetDraw",u))}isPointInArea(r){return en(r,this.chartArea,this._minPadding)}getElementsAtEventForMode(r,o,i,t){const e=Kw.modes[o];return typeof e=="function"?e(this,r,i,t):[]}getDatasetMeta(r){const o=this.data.datasets[r],i=this._metasets;let t=i.filter(e=>e&&e._dataset===o).pop();return t||(t={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:o&&o.order||0,index:r,_dataset:o,_parsed:[],_sorted:!1},i.push(t)),t}getContext(){return this.$context||(this.$context=Za(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(r){const o=this.data.datasets[r];if(!o)return!1;const i=this.getDatasetMeta(r);return typeof i.hidden=="boolean"?!i.hidden:!o.hidden}setDatasetVisibility(r,o){const i=this.getDatasetMeta(r);i.hidden=!o}toggleDataVisibility(r){this._hiddenIndices[r]=!this._hiddenIndices[r]}getDataVisibility(r){return!this._hiddenIndices[r]}_updateVisibility(r,o,i){const t=i?"show":"hide",e=this.getDatasetMeta(r),u=e.controller._resolveAnimations(void 0,t);aa(o)?(e.data[o].hidden=!i,this.update()):(this.setDatasetVisibility(r,i),u.update(e,{visible:i}),this.update(p=>p.datasetIndex===r?t:void 0))}hide(r,o){this._updateVisibility(r,o,!1)}show(r,o){this._updateVisibility(r,o,!0)}_destroyDatasetMeta(r){const o=this._metasets[r];o&&o.controller&&o.controller._destroy(),delete this._metasets[r]}_stop(){let r,o;for(this.stop(),Pa.remove(this),r=0,o=this.data.datasets.length;r<o;++r)this._destroyDatasetMeta(r)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:r,ctx:o}=this;this._stop(),this.config.clearCache(),r&&(this.unbindEvents(),c0(r,o),this.platform.releaseContext(o),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete bl[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...r){return this.canvas.toDataURL(...r)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const r=this._listeners,o=this.platform,i=(e,u)=>{o.addEventListener(this,e,u),r[e]=u},t=(e,u,p)=>{e.offsetX=u,e.offsetY=p,this._eventHandler(e)};Sr(this.options.events,e=>i(e,t))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const r=this._responsiveListeners,o=this.platform,i=(b,_)=>{o.addEventListener(this,b,_),r[b]=_},t=(b,_)=>{r[b]&&(o.removeEventListener(this,b,_),delete r[b])},e=(b,_)=>{this.canvas&&this.resize(b,_)};let u;const p=()=>{t("attach",p),this.attached=!0,this.resize(),i("resize",e),i("detach",u)};u=()=>{this.attached=!1,t("resize",e),this._stop(),this._resize(0,0),i("attach",p)},o.isAttached(this.canvas)?p():u()}unbindEvents(){Sr(this._listeners,(r,o)=>{this.platform.removeEventListener(this,o,r)}),this._listeners={},Sr(this._responsiveListeners,(r,o)=>{this.platform.removeEventListener(this,o,r)}),this._responsiveListeners=void 0}updateHoverStyle(r,o,i){const t=i?"set":"remove";let e,u,p,b;for(o==="dataset"&&(e=this.getDatasetMeta(r[0].datasetIndex),e.controller["_"+t+"DatasetHoverStyle"]()),p=0,b=r.length;p<b;++p){u=r[p];const _=u&&this.getDatasetMeta(u.datasetIndex).controller;_&&_[t+"HoverStyle"](u.element,u.datasetIndex,u.index)}}getActiveElements(){return this._active||[]}setActiveElements(r){const o=this._active||[],i=r.map(({datasetIndex:e,index:u})=>{const p=this.getDatasetMeta(e);if(!p)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:p.data[u],index:u}});!fl(i,o)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,o))}notifyPlugins(r,o,i){return this._plugins.notify(this,r,o,i)}_updateHoverStyles(r,o,i){const t=this.options.hover,e=(b,_)=>b.filter(w=>!_.some(S=>w.datasetIndex===S.datasetIndex&&w.index===S.index)),u=e(o,r),p=i?r:e(r,o);u.length&&this.updateHoverStyle(u,t.mode,!1),p.length&&t.mode&&this.updateHoverStyle(p,t.mode,!0)}_eventHandler(r,o){const i={event:r,replay:o,cancelable:!0,inChartArea:this.isPointInArea(r)},t=u=>(u.options.events||this.options.events).includes(r.native.type);if(this.notifyPlugins("beforeEvent",i,t)===!1)return;const e=this._handleEvent(r,o,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,t),(e||i.changed)&&this.render(),this}_handleEvent(r,o,i){const{_active:t=[],options:e}=this,u=o,p=this._getActiveElements(r,t,i,u),b=C_(r),_=M4(r,this._lastEvent,i,b);i&&(this._lastEvent=null,Pr(e.onHover,[r,p,this],this),b&&Pr(e.onClick,[r,p,this],this));const w=!fl(p,t);return(w||o)&&(this._active=p,this._updateHoverStyles(p,t,o)),this._lastEvent=_,w}_getActiveElements(r,o,i,t){if(r.type==="mouseout")return[];if(!i)return o;const e=this.options.hover;return this.getElementsAtEventForMode(r,e.mode,e,t)}}const G0=()=>Sr(Da.instances,s=>s._plugins.invalidate()),Ha=!0;Object.defineProperties(Da,{defaults:{enumerable:Ha,value:lr},instances:{enumerable:Ha,value:bl},overrides:{enumerable:Ha,value:Ao},registry:{enumerable:Ha,value:Ca},version:{enumerable:Ha,value:T4},getChart:{enumerable:Ha,value:dg},register:{enumerable:Ha,value:(...s)=>{Ca.add(...s),G0()}},unregister:{enumerable:Ha,value:(...s)=>{Ca.remove(...s),G0()}}});function hg(s,r,o){const{startAngle:i,pixelMargin:t,x:e,y:u,outerRadius:p,innerRadius:b}=r;let _=t/p;s.beginPath(),s.arc(e,u,p,i-_,o+_),b>t?(_=t/b,s.arc(e,u,b,o+_,i-_,!0)):s.arc(e,u,t,o+Qr,i-Qr),s.closePath(),s.clip()}function O4(s){return Pf(s,["outerStart","outerEnd","innerStart","innerEnd"])}function P4(s,r,o,i){const t=O4(s.options.borderRadius),e=(o-r)/2,u=Math.min(e,i*r/2),p=b=>{const _=(o-Math.min(e,b))*i/2;return Es(b,0,Math.min(e,_))};return{outerStart:p(t.outerStart),outerEnd:p(t.outerEnd),innerStart:Es(t.innerStart,0,u),innerEnd:Es(t.innerEnd,0,u)}}function Qo(s,r,o,i){return{x:o+s*Math.cos(r),y:i+s*Math.sin(r)}}function mf(s,r,o,i,t,e){const{x:u,y:p,startAngle:b,pixelMargin:_,innerRadius:w}=r,S=Math.max(r.outerRadius+i+o-_,0),A=w>0?w+i+o+_:0;let E=0;const M=t-b;if(i){const st=w>0?w-i:0,Mt=S>0?S-i:0,Lt=(st+Mt)/2,Er=Lt!==0?M*Lt/(Lt+i):M;E=(M-Er)/2}const N=Math.max(.001,M*S-o/zr)/S,q=(M-N)/2,U=b+q+E,ee=t-q-E,{outerStart:ie,outerEnd:j,innerStart:H,innerEnd:ne}=P4(r,A,S,ee-U),W=S-ie,Ae=S-j,ve=U+ie/W,it=ee-j/Ae,ft=A+H,Je=A+ne,ut=U+H/ft,bt=ee-ne/Je;if(s.beginPath(),e){if(s.arc(u,p,S,ve,it),j>0){const Lt=Qo(Ae,it,u,p);s.arc(Lt.x,Lt.y,j,it,ee+Qr)}const st=Qo(Je,ee,u,p);if(s.lineTo(st.x,st.y),ne>0){const Lt=Qo(Je,bt,u,p);s.arc(Lt.x,Lt.y,ne,ee+Qr,bt+Math.PI)}if(s.arc(u,p,A,ee-ne/A,U+H/A,!0),H>0){const Lt=Qo(ft,ut,u,p);s.arc(Lt.x,Lt.y,H,ut+Math.PI,U-Qr)}const Mt=Qo(W,U,u,p);if(s.lineTo(Mt.x,Mt.y),ie>0){const Lt=Qo(W,ve,u,p);s.arc(Lt.x,Lt.y,ie,U-Qr,ve)}}else{s.moveTo(u,p);const st=Math.cos(ve)*S+u,Mt=Math.sin(ve)*S+p;s.lineTo(st,Mt);const Lt=Math.cos(it)*S+u,Er=Math.sin(it)*S+p;s.lineTo(Lt,Er)}s.closePath()}function N4(s,r,o,i,t){const{fullCircles:e,startAngle:u,circumference:p}=r;let b=r.endAngle;if(e){mf(s,r,o,i,u+Or,t);for(let _=0;_<e;++_)s.fill();isNaN(p)||(b=u+p%Or,p%Or===0&&(b+=Or))}return mf(s,r,o,i,b,t),s.fill(),b}function I4(s,r,o){const{x:i,y:t,startAngle:e,pixelMargin:u,fullCircles:p}=r,b=Math.max(r.outerRadius-u,0),_=r.innerRadius+u;let w;for(o&&hg(s,r,e+Or),s.beginPath(),s.arc(i,t,_,e+Or,e,!0),w=0;w<p;++w)s.stroke();for(s.beginPath(),s.arc(i,t,b,e,e+Or),w=0;w<p;++w)s.stroke()}function V4(s,r,o,i,t,e){const{options:u}=r,{borderWidth:p,borderJoinStyle:b}=u,_=u.borderAlign==="inner";p&&(_?(s.lineWidth=p*2,s.lineJoin=b||"round"):(s.lineWidth=p,s.lineJoin=b||"bevel"),r.fullCircles&&I4(s,r,_),_&&hg(s,r,t),mf(s,r,o,i,t,e),s.stroke())}class Hf extends da{constructor(r){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,r&&Object.assign(this,r)}inRange(r,o,i){const t=this.getProps(["x","y"],i),{angle:e,distance:u}=Em(t,{x:r,y:o}),{startAngle:p,endAngle:b,innerRadius:_,outerRadius:w,circumference:S}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),A=this.options.spacing/2,M=Gt(S,b-p)>=Or||$i(e,p,b),N=Ya(u,_+A,w+A);return M&&N}getCenterPoint(r){const{x:o,y:i,startAngle:t,endAngle:e,innerRadius:u,outerRadius:p}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],r),{offset:b,spacing:_}=this.options,w=(t+e)/2,S=(u+p+_+b)/2;return{x:o+Math.cos(w)*S,y:i+Math.sin(w)*S}}tooltipPosition(r){return this.getCenterPoint(r)}draw(r){const{options:o,circumference:i}=this,t=(o.offset||0)/2,e=(o.spacing||0)/2,u=o.circular;if(this.pixelMargin=o.borderAlign==="inner"?.33:0,this.fullCircles=i>Or?Math.floor(i/Or):0,i===0||this.innerRadius<0||this.outerRadius<0)return;r.save();let p=0;if(t){p=t/2;const _=(this.startAngle+this.endAngle)/2;r.translate(Math.cos(_)*p,Math.sin(_)*p),this.circumference>=zr&&(p=t)}r.fillStyle=o.backgroundColor,r.strokeStyle=o.borderColor;const b=N4(r,this,p,e,u);V4(r,this,p,e,b,u),r.restore()}}Hf.id="arc";Hf.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};Hf.defaultRoutes={backgroundColor:"backgroundColor"};function pg(s,r,o=r){s.lineCap=Gt(o.borderCapStyle,r.borderCapStyle),s.setLineDash(Gt(o.borderDash,r.borderDash)),s.lineDashOffset=Gt(o.borderDashOffset,r.borderDashOffset),s.lineJoin=Gt(o.borderJoinStyle,r.borderJoinStyle),s.lineWidth=Gt(o.borderWidth,r.borderWidth),s.strokeStyle=Gt(o.borderColor,r.borderColor)}function B4(s,r,o){s.lineTo(o.x,o.y)}function U4(s){return s.stepped?iv:s.tension||s.cubicInterpolationMode==="monotone"?nv:B4}function mg(s,r,o={}){const i=s.length,{start:t=0,end:e=i-1}=o,{start:u,end:p}=r,b=Math.max(t,u),_=Math.min(e,p),w=t<u&&e<u||t>p&&e>p;return{count:i,start:b,loop:r.loop,ilen:_<b&&!w?i+_-b:_-b}}function z4(s,r,o,i){const{points:t,options:e}=r,{count:u,start:p,loop:b,ilen:_}=mg(t,o,i),w=U4(e);let{move:S=!0,reverse:A}=i||{},E,M,N;for(E=0;E<=_;++E)M=t[(p+(A?_-E:E))%u],!M.skip&&(S?(s.moveTo(M.x,M.y),S=!1):w(s,N,M,A,e.stepped),N=M);return b&&(M=t[(p+(A?_:0))%u],w(s,N,M,A,e.stepped)),!!b}function G4(s,r,o,i){const t=r.points,{count:e,start:u,ilen:p}=mg(t,o,i),{move:b=!0,reverse:_}=i||{};let w=0,S=0,A,E,M,N,q,U;const ee=j=>(u+(_?p-j:j))%e,ie=()=>{N!==q&&(s.lineTo(w,q),s.lineTo(w,N),s.lineTo(w,U))};for(b&&(E=t[ee(0)],s.moveTo(E.x,E.y)),A=0;A<=p;++A){if(E=t[ee(A)],E.skip)continue;const j=E.x,H=E.y,ne=j|0;ne===M?(H<N?N=H:H>q&&(q=H),w=(S*w+j)/++S):(ie(),s.lineTo(j,H),M=ne,S=0,N=q=H),U=H}ie()}function gf(s){const r=s.options,o=r.borderDash&&r.borderDash.length;return!s._decimated&&!s._loop&&!r.tension&&r.cubicInterpolationMode!=="monotone"&&!r.stepped&&!o?G4:z4}function j4(s){return s.stepped?Vv:s.tension||s.cubicInterpolationMode==="monotone"?Bv:xo}function W4(s,r,o,i){let t=r._path;t||(t=r._path=new Path2D,r.path(t,o,i)&&t.closePath()),pg(s,r.options),s.stroke(t)}function H4(s,r,o,i){const{segments:t,options:e}=r,u=gf(r);for(const p of t)pg(s,e,p.style),s.beginPath(),u(s,r,p,{start:o,end:o+i-1})&&s.closePath(),s.stroke()}const Y4=typeof Path2D=="function";function q4(s,r,o,i){Y4&&!r.options.segment?W4(s,r,o,i):H4(s,r,o,i)}class xl extends da{constructor(r){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,r&&Object.assign(this,r)}updateControlPoints(r,o){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const t=i.spanGaps?this._loop:this._fullLoop;Rv(this._points,i,r,t,o),this._pointsUpdated=!0}}set points(r){this._points=r,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Kv(this,this.options.segment))}first(){const r=this.segments,o=this.points;return r.length&&o[r[0].start]}last(){const r=this.segments,o=this.points,i=r.length;return i&&o[r[i-1].end]}interpolate(r,o){const i=this.options,t=r[o],e=this.points,u=Hv(this,{property:o,start:t,end:t});if(!u.length)return;const p=[],b=j4(i);let _,w;for(_=0,w=u.length;_<w;++_){const{start:S,end:A}=u[_],E=e[S],M=e[A];if(E===M){p.push(E);continue}const N=Math.abs((t-E[o])/(M[o]-E[o])),q=b(E,M,N,i.stepped);q[o]=r[o],p.push(q)}return p.length===1?p[0]:p}pathSegment(r,o,i){return gf(this)(r,this,o,i)}path(r,o,i){const t=this.segments,e=gf(this);let u=this._loop;o=o||0,i=i||this.points.length-o;for(const p of t)u&=e(r,this,p,{start:o,end:o+i-1});return!!u}draw(r,o,i,t){const e=this.options||{};(this.points||[]).length&&e.borderWidth&&(r.save(),q4(r,this,i,t),r.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}xl.id="line";xl.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};xl.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};xl.descriptors={_scriptable:!0,_indexable:s=>s!=="borderDash"&&s!=="fill"};function j0(s,r,o,i){const t=s.options,{[o]:e}=s.getProps([o],i);return Math.abs(r-e)<t.radius+t.hitRadius}class Yf extends da{constructor(r){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,r&&Object.assign(this,r)}inRange(r,o,i){const t=this.options,{x:e,y:u}=this.getProps(["x","y"],i);return Math.pow(r-e,2)+Math.pow(o-u,2)<Math.pow(t.hitRadius+t.radius,2)}inXRange(r,o){return j0(this,r,"x",o)}inYRange(r,o){return j0(this,r,"y",o)}getCenterPoint(r){const{x:o,y:i}=this.getProps(["x","y"],r);return{x:o,y:i}}size(r){r=r||this.options||{};let o=r.radius||0;o=Math.max(o,o&&r.hoverRadius||0);const i=o&&r.borderWidth||0;return(o+i)*2}draw(r,o){const i=this.options;this.skip||i.radius<.1||!en(this,o,this.size(i)/2)||(r.strokeStyle=i.borderColor,r.lineWidth=i.borderWidth,r.fillStyle=i.backgroundColor,uf(r,i,this.x,this.y))}getRange(){const r=this.options||{};return r.radius+r.hitRadius}}Yf.id="point";Yf.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};Yf.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};function gg(s,r){const{x:o,y:i,base:t,width:e,height:u}=s.getProps(["x","y","base","width","height"],r);let p,b,_,w,S;return s.horizontal?(S=u/2,p=Math.min(o,t),b=Math.max(o,t),_=i-S,w=i+S):(S=e/2,p=o-S,b=o+S,_=Math.min(i,t),w=Math.max(i,t)),{left:p,top:_,right:b,bottom:w}}function Ka(s,r,o,i){return s?0:Es(r,o,i)}function K4(s,r,o){const i=s.options.borderWidth,t=s.borderSkipped,e=zm(i);return{t:Ka(t.top,e.top,0,o),r:Ka(t.right,e.right,0,r),b:Ka(t.bottom,e.bottom,0,o),l:Ka(t.left,e.left,0,r)}}function J4(s,r,o){const{enableBorderRadius:i}=s.getProps(["enableBorderRadius"]),t=s.options.borderRadius,e=Fo(t),u=Math.min(r,o),p=s.borderSkipped,b=i||br(t);return{topLeft:Ka(!b||p.top||p.left,e.topLeft,0,u),topRight:Ka(!b||p.top||p.right,e.topRight,0,u),bottomLeft:Ka(!b||p.bottom||p.left,e.bottomLeft,0,u),bottomRight:Ka(!b||p.bottom||p.right,e.bottomRight,0,u)}}function X4(s){const r=gg(s),o=r.right-r.left,i=r.bottom-r.top,t=K4(s,o/2,i/2),e=J4(s,o/2,i/2);return{outer:{x:r.left,y:r.top,w:o,h:i,radius:e},inner:{x:r.left+t.l,y:r.top+t.t,w:o-t.l-t.r,h:i-t.t-t.b,radius:{topLeft:Math.max(0,e.topLeft-Math.max(t.t,t.l)),topRight:Math.max(0,e.topRight-Math.max(t.t,t.r)),bottomLeft:Math.max(0,e.bottomLeft-Math.max(t.b,t.l)),bottomRight:Math.max(0,e.bottomRight-Math.max(t.b,t.r))}}}}function rf(s,r,o,i){const t=r===null,e=o===null,p=s&&!(t&&e)&&gg(s,i);return p&&(t||Ya(r,p.left,p.right))&&(e||Ya(o,p.top,p.bottom))}function Q4(s){return s.topLeft||s.topRight||s.bottomLeft||s.bottomRight}function Z4(s,r){s.rect(r.x,r.y,r.w,r.h)}function sf(s,r,o={}){const i=s.x!==o.x?-r:0,t=s.y!==o.y?-r:0,e=(s.x+s.w!==o.x+o.w?r:0)-i,u=(s.y+s.h!==o.y+o.h?r:0)-t;return{x:s.x+i,y:s.y+t,w:s.w+e,h:s.h+u,radius:s.radius}}class ko extends da{constructor(r){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,r&&Object.assign(this,r)}draw(r){const{inflateAmount:o,options:{borderColor:i,backgroundColor:t}}=this,{inner:e,outer:u}=X4(this),p=Q4(u.radius)?tn:Z4;r.save(),(u.w!==e.w||u.h!==e.h)&&(r.beginPath(),p(r,sf(u,o,e)),r.clip(),p(r,sf(e,-o,u)),r.fillStyle=i,r.fill("evenodd")),r.beginPath(),p(r,sf(e,o)),r.fillStyle=t,r.fill(),r.restore()}inRange(r,o,i){return rf(this,r,o,i)}inXRange(r,o){return rf(this,r,null,o)}inYRange(r,o){return rf(this,null,r,o)}getCenterPoint(r){const{x:o,y:i,base:t,horizontal:e}=this.getProps(["x","y","base","horizontal"],r);return{x:e?(o+t)/2:o,y:e?i:(i+t)/2}}getRange(r){return r==="x"?this.width/2:this.height/2}}ko.id="bar";ko.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};ko.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};const W0=(s,r)=>{let{boxHeight:o=r,boxWidth:i=r}=s;return s.usePointStyle&&(o=Math.min(o,r),i=s.pointStyleWidth||Math.min(i,r)),{boxWidth:i,boxHeight:o,itemHeight:Math.max(r,o)}},$4=(s,r)=>s!==null&&r!==null&&s.datasetIndex===r.datasetIndex&&s.index===r.index;class H0 extends da{constructor(r){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=r.chart,this.options=r.options,this.ctx=r.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(r,o,i){this.maxWidth=r,this.maxHeight=o,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const r=this.options.labels||{};let o=Pr(r.generateLabels,[this.chart],this)||[];r.filter&&(o=o.filter(i=>r.filter(i,this.chart.data))),r.sort&&(o=o.sort((i,t)=>r.sort(i,t,this.chart.data))),this.options.reverse&&o.reverse(),this.legendItems=o}fit(){const{options:r,ctx:o}=this;if(!r.display){this.width=this.height=0;return}const i=r.labels,t=us(i.font),e=t.size,u=this._computeTitleHeight(),{boxWidth:p,itemHeight:b}=W0(i,e);let _,w;o.font=t.string,this.isHorizontal()?(_=this.maxWidth,w=this._fitRows(u,e,p,b)+10):(w=this.maxHeight,_=this._fitCols(u,e,p,b)+10),this.width=Math.min(_,r.maxWidth||this.maxWidth),this.height=Math.min(w,r.maxHeight||this.maxHeight)}_fitRows(r,o,i,t){const{ctx:e,maxWidth:u,options:{labels:{padding:p}}}=this,b=this.legendHitBoxes=[],_=this.lineWidths=[0],w=t+p;let S=r;e.textAlign="left",e.textBaseline="middle";let A=-1,E=-w;return this.legendItems.forEach((M,N)=>{const q=i+o/2+e.measureText(M.text).width;(N===0||_[_.length-1]+q+2*p>u)&&(S+=w,_[_.length-(N>0?0:1)]=0,E+=w,A++),b[N]={left:0,top:E,row:A,width:q,height:t},_[_.length-1]+=q+p}),S}_fitCols(r,o,i,t){const{ctx:e,maxHeight:u,options:{labels:{padding:p}}}=this,b=this.legendHitBoxes=[],_=this.columnSizes=[],w=u-r;let S=p,A=0,E=0,M=0,N=0;return this.legendItems.forEach((q,U)=>{const ee=i+o/2+e.measureText(q.text).width;U>0&&E+t+2*p>w&&(S+=A+p,_.push({width:A,height:E}),M+=A+p,N++,A=E=0),b[U]={left:M,top:E,col:N,width:ee,height:t},A=Math.max(A,ee),E+=t+p}),S+=A,_.push({width:A,height:E}),S}adjustHitBoxes(){if(!this.options.display)return;const r=this._computeTitleHeight(),{legendHitBoxes:o,options:{align:i,labels:{padding:t},rtl:e}}=this,u=Zo(e,this.left,this.width);if(this.isHorizontal()){let p=0,b=Ss(i,this.left+t,this.right-this.lineWidths[p]);for(const _ of o)p!==_.row&&(p=_.row,b=Ss(i,this.left+t,this.right-this.lineWidths[p])),_.top+=this.top+r+t,_.left=u.leftForLtr(u.x(b),_.width),b+=_.width+t}else{let p=0,b=Ss(i,this.top+r+t,this.bottom-this.columnSizes[p].height);for(const _ of o)_.col!==p&&(p=_.col,b=Ss(i,this.top+r+t,this.bottom-this.columnSizes[p].height)),_.top=b,_.left+=this.left+t,_.left=u.leftForLtr(u.x(_.left),_.width),b+=_.height+t}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const r=this.ctx;Mf(r,this),this._draw(),Of(r)}}_draw(){const{options:r,columnSizes:o,lineWidths:i,ctx:t}=this,{align:e,labels:u}=r,p=lr.color,b=Zo(r.rtl,this.left,this.width),_=us(u.font),{color:w,padding:S}=u,A=_.size,E=A/2;let M;this.drawTitle(),t.textAlign=b.textAlign("left"),t.textBaseline="middle",t.lineWidth=.5,t.font=_.string;const{boxWidth:N,boxHeight:q,itemHeight:U}=W0(u,A),ee=function(W,Ae,ve){if(isNaN(N)||N<=0||isNaN(q)||q<0)return;t.save();const it=Gt(ve.lineWidth,1);if(t.fillStyle=Gt(ve.fillStyle,p),t.lineCap=Gt(ve.lineCap,"butt"),t.lineDashOffset=Gt(ve.lineDashOffset,0),t.lineJoin=Gt(ve.lineJoin,"miter"),t.lineWidth=it,t.strokeStyle=Gt(ve.strokeStyle,p),t.setLineDash(Gt(ve.lineDash,[])),u.usePointStyle){const ft={radius:q*Math.SQRT2/2,pointStyle:ve.pointStyle,rotation:ve.rotation,borderWidth:it},Je=b.xPlus(W,N/2),ut=Ae+E;Um(t,ft,Je,ut,u.pointStyleWidth&&N)}else{const ft=Ae+Math.max((A-q)/2,0),Je=b.leftForLtr(W,N),ut=Fo(ve.borderRadius);t.beginPath(),Object.values(ut).some(bt=>bt!==0)?tn(t,{x:Je,y:ft,w:N,h:q,radius:ut}):t.rect(Je,ft,N,q),t.fill(),it!==0&&t.stroke()}t.restore()},ie=function(W,Ae,ve){So(t,ve.text,W,Ae+U/2,_,{strikethrough:ve.hidden,textAlign:b.textAlign(ve.textAlign)})},j=this.isHorizontal(),H=this._computeTitleHeight();j?M={x:Ss(e,this.left+S,this.right-i[0]),y:this.top+S+H,line:0}:M={x:this.left+S,y:Ss(e,this.top+H+S,this.bottom-o[0].height),line:0},Jm(this.ctx,r.textDirection);const ne=U+S;this.legendItems.forEach((W,Ae)=>{t.strokeStyle=W.fontColor||w,t.fillStyle=W.fontColor||w;const ve=t.measureText(W.text).width,it=b.textAlign(W.textAlign||(W.textAlign=u.textAlign)),ft=N+E+ve;let Je=M.x,ut=M.y;b.setWidth(this.width),j?Ae>0&&Je+ft+S>this.right&&(ut=M.y+=ne,M.line++,Je=M.x=Ss(e,this.left+S,this.right-i[M.line])):Ae>0&&ut+ne>this.bottom&&(Je=M.x=Je+o[M.line].width+S,M.line++,ut=M.y=Ss(e,this.top+H+S,this.bottom-o[M.line].height));const bt=b.x(Je);ee(bt,ut,W),Je=O_(it,Je+N+E,j?Je+ft:this.right,r.rtl),ie(b.x(Je),ut,W),j?M.x+=ft+S:M.y+=ne}),Xm(this.ctx,r.textDirection)}drawTitle(){const r=this.options,o=r.title,i=us(o.font),t=Ts(o.padding);if(!o.display)return;const e=Zo(r.rtl,this.left,this.width),u=this.ctx,p=o.position,b=i.size/2,_=t.top+b;let w,S=this.left,A=this.width;if(this.isHorizontal())A=Math.max(...this.lineWidths),w=this.top+_,S=Ss(r.align,S,this.right-A);else{const M=this.columnSizes.reduce((N,q)=>Math.max(N,q.height),0);w=_+Ss(r.align,this.top,this.bottom-M-r.labels.padding-this._computeTitleHeight())}const E=Ss(p,S,S+A);u.textAlign=e.textAlign(Tf(p)),u.textBaseline="middle",u.strokeStyle=o.color,u.fillStyle=o.color,u.font=i.string,So(u,o.text,E,w,i)}_computeTitleHeight(){const r=this.options.title,o=us(r.font),i=Ts(r.padding);return r.display?o.lineHeight+i.height:0}_getLegendItemAt(r,o){let i,t,e;if(Ya(r,this.left,this.right)&&Ya(o,this.top,this.bottom)){for(e=this.legendHitBoxes,i=0;i<e.length;++i)if(t=e[i],Ya(r,t.left,t.left+t.width)&&Ya(o,t.top,t.top+t.height))return this.legendItems[i]}return null}handleEvent(r){const o=this.options;if(!ex(r.type,o))return;const i=this._getLegendItemAt(r.x,r.y);if(r.type==="mousemove"||r.type==="mouseout"){const t=this._hoveredItem,e=$4(t,i);t&&!e&&Pr(o.onLeave,[r,t,this],this),this._hoveredItem=i,i&&!e&&Pr(o.onHover,[r,i,this],this)}else i&&Pr(o.onClick,[r,i,this],this)}}function ex(s,r){return!!((s==="mousemove"||s==="mouseout")&&(r.onHover||r.onLeave)||r.onClick&&(s==="click"||s==="mouseup"))}var Cl={id:"legend",_element:H0,start(s,r,o){const i=s.legend=new H0({ctx:s.ctx,options:o,chart:s});sa.configure(s,i,o),sa.addBox(s,i)},stop(s){sa.removeBox(s,s.legend),delete s.legend},beforeUpdate(s,r,o){const i=s.legend;sa.configure(s,i,o),i.options=o},afterUpdate(s){const r=s.legend;r.buildLabels(),r.adjustHitBoxes()},afterEvent(s,r){r.replay||s.legend.handleEvent(r.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(s,r,o){const i=r.datasetIndex,t=o.chart;t.isDatasetVisible(i)?(t.hide(i),r.hidden=!0):(t.show(i),r.hidden=!1)},onHover:null,onLeave:null,labels:{color:s=>s.chart.options.color,boxWidth:40,padding:10,generateLabels(s){const r=s.data.datasets,{labels:{usePointStyle:o,pointStyle:i,textAlign:t,color:e}}=s.legend.options;return s._getSortedDatasetMetas().map(u=>{const p=u.controller.getStyle(o?0:void 0),b=Ts(p.borderWidth);return{text:r[u.index].label,fillStyle:p.backgroundColor,fontColor:e,hidden:!u.visible,lineCap:p.borderCapStyle,lineDash:p.borderDash,lineDashOffset:p.borderDashOffset,lineJoin:p.borderJoinStyle,lineWidth:(b.width+b.height)/4,strokeStyle:p.borderColor,pointStyle:i||p.pointStyle,rotation:p.rotation,textAlign:t||p.textAlign,borderRadius:0,datasetIndex:u.index}},this)}},title:{color:s=>s.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:s=>!s.startsWith("on"),labels:{_scriptable:s=>!["generateLabels","filter","sort"].includes(s)}}};class bg extends da{constructor(r){super(),this.chart=r.chart,this.options=r.options,this.ctx=r.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(r,o){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=r,this.height=this.bottom=o;const t=Br(i.text)?i.text.length:1;this._padding=Ts(i.padding);const e=t*us(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=e:this.width=e}isHorizontal(){const r=this.options.position;return r==="top"||r==="bottom"}_drawArgs(r){const{top:o,left:i,bottom:t,right:e,options:u}=this,p=u.align;let b=0,_,w,S;return this.isHorizontal()?(w=Ss(p,i,e),S=o+r,_=e-i):(u.position==="left"?(w=i+r,S=Ss(p,t,o),b=zr*-.5):(w=e-r,S=Ss(p,o,t),b=zr*.5),_=t-o),{titleX:w,titleY:S,maxWidth:_,rotation:b}}draw(){const r=this.ctx,o=this.options;if(!o.display)return;const i=us(o.font),e=i.lineHeight/2+this._padding.top,{titleX:u,titleY:p,maxWidth:b,rotation:_}=this._drawArgs(e);So(r,o.text,0,0,i,{color:o.color,maxWidth:b,rotation:_,textAlign:Tf(o.align),textBaseline:"middle",translation:[u,p]})}}function tx(s,r){const o=new bg({ctx:s.ctx,options:r,chart:s});sa.configure(s,o,r),sa.addBox(s,o),s.titleBlock=o}var Fl={id:"title",_element:bg,start(s,r,o){tx(s,o)},stop(s){const r=s.titleBlock;sa.removeBox(s,r),delete s.titleBlock},beforeUpdate(s,r,o){const i=s.titleBlock;sa.configure(s,i,o),i.options=o},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Qi={average(s){if(!s.length)return!1;let r,o,i=0,t=0,e=0;for(r=0,o=s.length;r<o;++r){const u=s[r].element;if(u&&u.hasValue()){const p=u.tooltipPosition();i+=p.x,t+=p.y,++e}}return{x:i/e,y:t/e}},nearest(s,r){if(!s.length)return!1;let o=r.x,i=r.y,t=Number.POSITIVE_INFINITY,e,u,p;for(e=0,u=s.length;e<u;++e){const b=s[e].element;if(b&&b.hasValue()){const _=b.getCenterPoint(),w=lf(r,_);w<t&&(t=w,p=b)}}if(p){const b=p.tooltipPosition();o=b.x,i=b.y}return{x:o,y:i}}};function xa(s,r){return r&&(Br(r)?Array.prototype.push.apply(s,r):s.push(r)),s}function Na(s){return(typeof s=="string"||s instanceof String)&&s.indexOf(` `)>-1?s.split(` `):s}function rx(s,r){const{element:o,datasetIndex:i,index:t}=r,e=s.getDatasetMeta(i).controller,{label:u,value:p}=e.getLabelAndValue(t);return{chart:s,label:u,parsed:e.getParsed(t),raw:s.data.datasets[i].data[t],formattedValue:p,dataset:e.getDataset(),dataIndex:t,datasetIndex:i,element:o}}function Y0(s,r){const o=s.chart.ctx,{body:i,footer:t,title:e}=s,{boxWidth:u,boxHeight:p}=r,b=us(r.bodyFont),_=us(r.titleFont),w=us(r.footerFont),S=e.length,A=t.length,E=i.length,M=Ts(r.padding);let N=M.height,q=0,U=i.reduce((j,H)=>j+H.before.length+H.lines.length+H.after.length,0);if(U+=s.beforeBody.length+s.afterBody.length,S&&(N+=S*_.lineHeight+(S-1)*r.titleSpacing+r.titleMarginBottom),U){const j=r.displayColors?Math.max(p,b.lineHeight):b.lineHeight;N+=E*j+(U-E)*b.lineHeight+(U-1)*r.bodySpacing}A&&(N+=r.footerMarginTop+A*w.lineHeight+(A-1)*r.footerSpacing);let ee=0;const ie=function(j){q=Math.max(q,o.measureText(j).width+ee)};return o.save(),o.font=_.string,Sr(s.title,ie),o.font=b.string,Sr(s.beforeBody.concat(s.afterBody),ie),ee=r.displayColors?u+2+r.boxPadding:0,Sr(i,j=>{Sr(j.before,ie),Sr(j.lines,ie),Sr(j.after,ie)}),ee=0,o.font=w.string,Sr(s.footer,ie),o.restore(),q+=M.width,{width:q,height:N}}function sx(s,r){const{y:o,height:i}=r;return o<i/2?"top":o>s.height-i/2?"bottom":"center"}function ax(s,r,o,i){const{x:t,width:e}=i,u=o.caretSize+o.caretPadding;if(s==="left"&&t+e+u>r.width||s==="right"&&t-e-u<0)return!0}function ox(s,r,o,i){const{x:t,width:e}=o,{width:u,chartArea:{left:p,right:b}}=s;let _="center";return i==="center"?_=t<=(p+b)/2?"left":"right":t<=e/2?_="left":t>=u-e/2&&(_="right"),ax(_,s,r,o)&&(_="center"),_}function q0(s,r,o){const i=o.yAlign||r.yAlign||sx(s,o);return{xAlign:o.xAlign||r.xAlign||ox(s,r,o,i),yAlign:i}}function ix(s,r){let{x:o,width:i}=s;return r==="right"?o-=i:r==="center"&&(o-=i/2),o}function nx(s,r,o){let{y:i,height:t}=s;return r==="top"?i+=o:r==="bottom"?i-=t+o:i-=t/2,i}function K0(s,r,o,i){const{caretSize:t,caretPadding:e,cornerRadius:u}=s,{xAlign:p,yAlign:b}=o,_=t+e,{topLeft:w,topRight:S,bottomLeft:A,bottomRight:E}=Fo(u);let M=ix(r,p);const N=nx(r,b,_);return b==="center"?p==="left"?M+=_:p==="right"&&(M-=_):p==="left"?M-=Math.max(w,A)+t:p==="right"&&(M+=Math.max(S,E)+t),{x:Es(M,0,i.width-r.width),y:Es(N,0,i.height-r.height)}}function il(s,r,o){const i=Ts(o.padding);return r==="center"?s.x+s.width/2:r==="right"?s.x+s.width-i.right:s.x+i.left}function J0(s){return xa([],Na(s))}function lx(s,r,o){return Za(s,{tooltip:r,tooltipItems:o,type:"tooltip"})}function X0(s,r){const o=r&&r.dataset&&r.dataset.tooltip&&r.dataset.tooltip.callbacks;return o?s.override(o):s}class bf extends da{constructor(r){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=r.chart||r._chart,this._chart=this.chart,this.options=r.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(r){this.options=r,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const r=this._cachedAnimations;if(r)return r;const o=this.chart,i=this.options.setContext(this.getContext()),t=i.enabled&&o.options.animation&&i.animations,e=new Zm(this.chart,t);return t._cacheable&&(this._cachedAnimations=Object.freeze(e)),e}getContext(){return this.$context||(this.$context=lx(this.chart.getContext(),this,this._tooltipItems))}getTitle(r,o){const{callbacks:i}=o,t=i.beforeTitle.apply(this,[r]),e=i.title.apply(this,[r]),u=i.afterTitle.apply(this,[r]);let p=[];return p=xa(p,Na(t)),p=xa(p,Na(e)),p=xa(p,Na(u)),p}getBeforeBody(r,o){return J0(o.callbacks.beforeBody.apply(this,[r]))}getBody(r,o){const{callbacks:i}=o,t=[];return Sr(r,e=>{const u={before:[],lines:[],after:[]},p=X0(i,e);xa(u.before,Na(p.beforeLabel.call(this,e))),xa(u.lines,p.label.call(this,e)),xa(u.after,Na(p.afterLabel.call(this,e))),t.push(u)}),t}getAfterBody(r,o){return J0(o.callbacks.afterBody.apply(this,[r]))}getFooter(r,o){const{callbacks:i}=o,t=i.beforeFooter.apply(this,[r]),e=i.footer.apply(this,[r]),u=i.afterFooter.apply(this,[r]);let p=[];return p=xa(p,Na(t)),p=xa(p,Na(e)),p=xa(p,Na(u)),p}_createItems(r){const o=this._active,i=this.chart.data,t=[],e=[],u=[];let p=[],b,_;for(b=0,_=o.length;b<_;++b)p.push(rx(this.chart,o[b]));return r.filter&&(p=p.filter((w,S,A)=>r.filter(w,S,A,i))),r.itemSort&&(p=p.sort((w,S)=>r.itemSort(w,S,i))),Sr(p,w=>{const S=X0(r.callbacks,w);t.push(S.labelColor.call(this,w)),e.push(S.labelPointStyle.call(this,w)),u.push(S.labelTextColor.call(this,w))}),this.labelColors=t,this.labelPointStyles=e,this.labelTextColors=u,this.dataPoints=p,p}update(r,o){const i=this.options.setContext(this.getContext()),t=this._active;let e,u=[];if(!t.length)this.opacity!==0&&(e={opacity:0});else{const p=Qi[i.position].call(this,t,this._eventPosition);u=this._createItems(i),this.title=this.getTitle(u,i),this.beforeBody=this.getBeforeBody(u,i),this.body=this.getBody(u,i),this.afterBody=this.getAfterBody(u,i),this.footer=this.getFooter(u,i);const b=this._size=Y0(this,i),_=Object.assign({},p,b),w=q0(this.chart,i,_),S=K0(i,_,w,this.chart);this.xAlign=w.xAlign,this.yAlign=w.yAlign,e={opacity:1,x:S.x,y:S.y,width:b.width,height:b.height,caretX:p.x,caretY:p.y}}this._tooltipItems=u,this.$context=void 0,e&&this._resolveAnimations().update(this,e),r&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:o})}drawCaret(r,o,i,t){const e=this.getCaretPosition(r,i,t);o.lineTo(e.x1,e.y1),o.lineTo(e.x2,e.y2),o.lineTo(e.x3,e.y3)}getCaretPosition(r,o,i){const{xAlign:t,yAlign:e}=this,{caretSize:u,cornerRadius:p}=i,{topLeft:b,topRight:_,bottomLeft:w,bottomRight:S}=Fo(p),{x:A,y:E}=r,{width:M,height:N}=o;let q,U,ee,ie,j,H;return e==="center"?(j=E+N/2,t==="left"?(q=A,U=q-u,ie=j+u,H=j-u):(q=A+M,U=q+u,ie=j-u,H=j+u),ee=q):(t==="left"?U=A+Math.max(b,w)+u:t==="right"?U=A+M-Math.max(_,S)-u:U=this.caretX,e==="top"?(ie=E,j=ie-u,q=U-u,ee=U+u):(ie=E+N,j=ie+u,q=U+u,ee=U-u),H=ie),{x1:q,x2:U,x3:ee,y1:ie,y2:j,y3:H}}drawTitle(r,o,i){const t=this.title,e=t.length;let u,p,b;if(e){const _=Zo(i.rtl,this.x,this.width);for(r.x=il(this,i.titleAlign,i),o.textAlign=_.textAlign(i.titleAlign),o.textBaseline="middle",u=us(i.titleFont),p=i.titleSpacing,o.fillStyle=i.titleColor,o.font=u.string,b=0;b<e;++b)o.fillText(t[b],_.x(r.x),r.y+u.lineHeight/2),r.y+=u.lineHeight+p,b+1===e&&(r.y+=i.titleMarginBottom-p)}}_drawColorBox(r,o,i,t,e){const u=this.labelColors[i],p=this.labelPointStyles[i],{boxHeight:b,boxWidth:_,boxPadding:w}=e,S=us(e.bodyFont),A=il(this,"left",e),E=t.x(A),M=b<S.lineHeight?(S.lineHeight-b)/2:0,N=o.y+M;if(e.usePointStyle){const q={radius:Math.min(_,b)/2,pointStyle:p.pointStyle,rotation:p.rotation,borderWidth:1},U=t.leftForLtr(E,_)+_/2,ee=N+b/2;r.strokeStyle=e.multiKeyBackground,r.fillStyle=e.multiKeyBackground,uf(r,q,U,ee),r.strokeStyle=u.borderColor,r.fillStyle=u.backgroundColor,uf(r,q,U,ee)}else{r.lineWidth=br(u.borderWidth)?Math.max(...Object.values(u.borderWidth)):u.borderWidth||1,r.strokeStyle=u.borderColor,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset||0;const q=t.leftForLtr(E,_-w),U=t.leftForLtr(t.xPlus(E,1),_-w-2),ee=Fo(u.borderRadius);Object.values(ee).some(ie=>ie!==0)?(r.beginPath(),r.fillStyle=e.multiKeyBackground,tn(r,{x:q,y:N,w:_,h:b,radius:ee}),r.fill(),r.stroke(),r.fillStyle=u.backgroundColor,r.beginPath(),tn(r,{x:U,y:N+1,w:_-2,h:b-2,radius:ee}),r.fill()):(r.fillStyle=e.multiKeyBackground,r.fillRect(q,N,_,b),r.strokeRect(q,N,_,b),r.fillStyle=u.backgroundColor,r.fillRect(U,N+1,_-2,b-2))}r.fillStyle=this.labelTextColors[i]}drawBody(r,o,i){const{body:t}=this,{bodySpacing:e,bodyAlign:u,displayColors:p,boxHeight:b,boxWidth:_,boxPadding:w}=i,S=us(i.bodyFont);let A=S.lineHeight,E=0;const M=Zo(i.rtl,this.x,this.width),N=function(Ae){o.fillText(Ae,M.x(r.x+E),r.y+A/2),r.y+=A+e},q=M.textAlign(u);let U,ee,ie,j,H,ne,W;for(o.textAlign=u,o.textBaseline="middle",o.font=S.string,r.x=il(this,q,i),o.fillStyle=i.bodyColor,Sr(this.beforeBody,N),E=p&&q!=="right"?u==="center"?_/2+w:_+2+w:0,j=0,ne=t.length;j<ne;++j){for(U=t[j],ee=this.labelTextColors[j],o.fillStyle=ee,Sr(U.before,N),ie=U.lines,p&&ie.length&&(this._drawColorBox(o,r,j,M,i),A=Math.max(S.lineHeight,b)),H=0,W=ie.length;H<W;++H)N(ie[H]),A=S.lineHeight;Sr(U.after,N)}E=0,A=S.lineHeight,Sr(this.afterBody,N),r.y-=e}drawFooter(r,o,i){const t=this.footer,e=t.length;let u,p;if(e){const b=Zo(i.rtl,this.x,this.width);for(r.x=il(this,i.footerAlign,i),r.y+=i.footerMarginTop,o.textAlign=b.textAlign(i.footerAlign),o.textBaseline="middle",u=us(i.footerFont),o.fillStyle=i.footerColor,o.font=u.string,p=0;p<e;++p)o.fillText(t[p],b.x(r.x),r.y+u.lineHeight/2),r.y+=u.lineHeight+i.footerSpacing}}drawBackground(r,o,i,t){const{xAlign:e,yAlign:u}=this,{x:p,y:b}=r,{width:_,height:w}=i,{topLeft:S,topRight:A,bottomLeft:E,bottomRight:M}=Fo(t.cornerRadius);o.fillStyle=t.backgroundColor,o.strokeStyle=t.borderColor,o.lineWidth=t.borderWidth,o.beginPath(),o.moveTo(p+S,b),u==="top"&&this.drawCaret(r,o,i,t),o.lineTo(p+_-A,b),o.quadraticCurveTo(p+_,b,p+_,b+A),u==="center"&&e==="right"&&this.drawCaret(r,o,i,t),o.lineTo(p+_,b+w-M),o.quadraticCurveTo(p+_,b+w,p+_-M,b+w),u==="bottom"&&this.drawCaret(r,o,i,t),o.lineTo(p+E,b+w),o.quadraticCurveTo(p,b+w,p,b+w-E),u==="center"&&e==="left"&&this.drawCaret(r,o,i,t),o.lineTo(p,b+S),o.quadraticCurveTo(p,b,p+S,b),o.closePath(),o.fill(),t.borderWidth>0&&o.stroke()}_updateAnimationTarget(r){const o=this.chart,i=this.$animations,t=i&&i.x,e=i&&i.y;if(t||e){const u=Qi[r.position].call(this,this._active,this._eventPosition);if(!u)return;const p=this._size=Y0(this,r),b=Object.assign({},u,this._size),_=q0(o,r,b),w=K0(r,b,_,o);(t._to!==w.x||e._to!==w.y)&&(this.xAlign=_.xAlign,this.yAlign=_.yAlign,this.width=p.width,this.height=p.height,this.caretX=u.x,this.caretY=u.y,this._resolveAnimations().update(this,w))}}_willRender(){return!!this.opacity}draw(r){const o=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(o);const t={width:this.width,height:this.height},e={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const u=Ts(o.padding),p=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;o.enabled&&p&&(r.save(),r.globalAlpha=i,this.drawBackground(e,r,t,o),Jm(r,o.textDirection),e.y+=u.top,this.drawTitle(e,r,o),this.drawBody(e,r,o),this.drawFooter(e,r,o),Xm(r,o.textDirection),r.restore())}getActiveElements(){return this._active||[]}setActiveElements(r,o){const i=this._active,t=r.map(({datasetIndex:p,index:b})=>{const _=this.chart.getDatasetMeta(p);if(!_)throw new Error("Cannot find a dataset at index "+p);return{datasetIndex:p,element:_.data[b],index:b}}),e=!fl(i,t),u=this._positionChanged(t,o);(e||u)&&(this._active=t,this._eventPosition=o,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(r,o,i=!0){if(o&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const t=this.options,e=this._active||[],u=this._getActiveElements(r,e,o,i),p=this._positionChanged(u,r),b=o||!fl(u,e)||p;return b&&(this._active=u,(t.enabled||t.external)&&(this._eventPosition={x:r.x,y:r.y},this.update(!0,o))),b}_getActiveElements(r,o,i,t){const e=this.options;if(r.type==="mouseout")return[];if(!t)return o;const u=this.chart.getElementsAtEventForMode(r,e.mode,e,i);return e.reverse&&u.reverse(),u}_positionChanged(r,o){const{caretX:i,caretY:t,options:e}=this,u=Qi[e.position].call(this,r,o);return u!==!1&&(i!==u.x||t!==u.y)}}bf.positioners=Qi;var Dl={id:"tooltip",_element:bf,positioners:Qi,afterInit(s,r,o){o&&(s.tooltip=new bf({chart:s,options:o}))},beforeUpdate(s,r,o){s.tooltip&&s.tooltip.initialize(o)},reset(s,r,o){s.tooltip&&s.tooltip.initialize(o)},afterDraw(s){const r=s.tooltip;if(r&&r._willRender()){const o={tooltip:r};if(s.notifyPlugins("beforeTooltipDraw",o)===!1)return;r.draw(s.ctx),s.notifyPlugins("afterTooltipDraw",o)}},afterEvent(s,r){if(s.tooltip){const o=r.replay;s.tooltip.handleEvent(r.event,o,r.inChartArea)&&(r.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(s,r)=>r.bodyFont.size,boxWidth:(s,r)=>r.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:Ma,title(s){if(s.length>0){const r=s[0],o=r.chart.data.labels,i=o?o.length:0;if(this&&this.options&&this.options.mode==="dataset")return r.dataset.label||"";if(r.label)return r.label;if(i>0&&r.dataIndex<i)return o[r.dataIndex]}return""},afterTitle:Ma,beforeBody:Ma,beforeLabel:Ma,label(s){if(this&&this.options&&this.options.mode==="dataset")return s.label+": "+s.formattedValue||s.formattedValue;let r=s.dataset.label||"";r&&(r+=": ");const o=s.formattedValue;return xr(o)||(r+=o),r},labelColor(s){const o=s.chart.getDatasetMeta(s.datasetIndex).controller.getStyle(s.dataIndex);return{borderColor:o.borderColor,backgroundColor:o.backgroundColor,borderWidth:o.borderWidth,borderDash:o.borderDash,borderDashOffset:o.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(s){const o=s.chart.getDatasetMeta(s.datasetIndex).controller.getStyle(s.dataIndex);return{pointStyle:o.pointStyle,rotation:o.rotation}},afterLabel:Ma,afterBody:Ma,beforeFooter:Ma,footer:Ma,afterFooter:Ma}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:s=>s!=="filter"&&s!=="itemSort"&&s!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const cx=(s,r,o,i)=>(typeof r=="string"?(o=s.push(r)-1,i.unshift({index:o,label:r})):isNaN(r)&&(o=null),o);function fx(s,r,o,i){const t=s.indexOf(r);if(t===-1)return cx(s,r,o,i);const e=s.lastIndexOf(r);return t!==e?o:t}const ux=(s,r)=>s===null?null:Es(Math.round(s),0,r);class Eo extends Ro{constructor(r){super(r),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(r){const o=this._addedLabels;if(o.length){const i=this.getLabels();for(const{index:t,label:e}of o)i[t]===e&&i.splice(t,1);this._addedLabels=[]}super.init(r)}parse(r,o){if(xr(r))return null;const i=this.getLabels();return o=isFinite(o)&&i[o]===r?o:fx(i,r,Gt(o,r),this._addedLabels),ux(o,i.length-1)}determineDataLimits(){const{minDefined:r,maxDefined:o}=this.getUserBounds();let{min:i,max:t}=this.getMinMax(!0);this.options.bounds==="ticks"&&(r||(i=0),o||(t=this.getLabels().length-1)),this.min=i,this.max=t}buildTicks(){const r=this.min,o=this.max,i=this.options.offset,t=[];let e=this.getLabels();e=r===0&&o===e.length-1?e:e.slice(r,o+1),this._valueRange=Math.max(e.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let u=r;u<=o;u++)t.push({value:u});return t}getLabelForValue(r){const o=this.getLabels();return r>=0&&r<o.length?o[r]:r}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(r){return typeof r!="number"&&(r=this.parse(r)),r===null?NaN:this.getPixelForDecimal((r-this._startValue)/this._valueRange)}getPixelForTick(r){const o=this.ticks;return r<0||r>o.length-1?null:this.getPixelForValue(o[r].value)}getValueForPixel(r){return Math.round(this._startValue+this.getDecimalForPixel(r)*this._valueRange)}getBasePixel(){return this.bottom}}Eo.id="category";Eo.defaults={ticks:{callback:Eo.prototype.getLabelForValue}};function dx(s,r){const o=[],{bounds:t,step:e,min:u,max:p,precision:b,count:_,maxTicks:w,maxDigits:S,includeBounds:A}=s,E=e||1,M=w-1,{min:N,max:q}=r,U=!xr(u),ee=!xr(p),ie=!xr(_),j=(q-N)/(S+1);let H=$p((q-N)/M/E)*E,ne,W,Ae,ve;if(H<1e-14&&!U&&!ee)return[{value:N},{value:q}];ve=Math.ceil(q/H)-Math.floor(N/H),ve>M&&(H=$p(ve*H/M/E)*E),xr(b)||(ne=Math.pow(10,b),H=Math.ceil(H*ne)/ne),t==="ticks"?(W=Math.floor(N/H)*H,Ae=Math.ceil(q/H)*H):(W=N,Ae=q),U&&ee&&e&&S_((p-u)/e,H/1e3)?(ve=Math.round(Math.min((p-u)/H,w)),H=(p-u)/ve,W=u,Ae=p):ie?(W=U?u:W,Ae=ee?p:Ae,ve=_-1,H=(Ae-W)/ve):(ve=(Ae-W)/H,Ki(ve,Math.round(ve),H/1e3)?ve=Math.round(ve):ve=Math.ceil(ve));const it=Math.max(e0(H),e0(W));ne=Math.pow(10,xr(b)?it:b),W=Math.round(W*ne)/ne,Ae=Math.round(Ae*ne)/ne;let ft=0;for(U&&(A&&W!==u?(o.push({value:u}),W<u&&ft++,Ki(Math.round((W+ft*H)*ne)/ne,u,Q0(u,j,s))&&ft++):W<u&&ft++);ft<ve;++ft)o.push({value:Math.round((W+ft*H)*ne)/ne});return ee&&A&&Ae!==p?o.length&&Ki(o[o.length-1].value,p,Q0(p,j,s))?o[o.length-1].value=p:o.push({value:p}):(!ee||Ae===p)&&o.push({value:Ae}),o}function Q0(s,r,{horizontal:o,minRotation:i}){const t=fa(i),e=(o?Math.sin(t):Math.cos(t))||.001,u=.75*r*(""+s).length;return Math.min(r/e,u)}class yl extends Ro{constructor(r){super(r),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(r,o){return xr(r)||(typeof r=="number"||r instanceof Number)&&!isFinite(+r)?null:+r}handleTickRangeOptions(){const{beginAtZero:r}=this.options,{minDefined:o,maxDefined:i}=this.getUserBounds();let{min:t,max:e}=this;const u=b=>t=o?t:b,p=b=>e=i?e:b;if(r){const b=Fa(t),_=Fa(e);b<0&&_<0?p(0):b>0&&_>0&&u(0)}if(t===e){let b=1;(e>=Number.MAX_SAFE_INTEGER||t<=Number.MIN_SAFE_INTEGER)&&(b=Math.abs(e*.05)),p(e+b),r||u(t-b)}this.min=t,this.max=e}getTickLimit(){const r=this.options.ticks;let{maxTicksLimit:o,stepSize:i}=r,t;return i?(t=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),o=o||11),o&&(t=Math.min(o,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const r=this.options,o=r.ticks;let i=this.getTickLimit();i=Math.max(2,i);const t={maxTicks:i,bounds:r.bounds,min:r.min,max:r.max,precision:o.precision,step:o.stepSize,count:o.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:o.minRotation||0,includeBounds:o.includeBounds!==!1},e=this._range||this,u=dx(t,e);return r.bounds==="ticks"&&Sm(u,this,"value"),r.reverse?(u.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),u}configure(){const r=this.ticks;let o=this.min,i=this.max;if(super.configure(),this.options.offset&&r.length){const t=(i-o)/Math.max(r.length-1,1)/2;o-=t,i+=t}this._startValue=o,this._endValue=i,this._valueRange=i-o}getLabelForValue(r){return an(r,this.chart.options.locale,this.options.ticks.format)}}class si extends yl{determineDataLimits(){const{min:r,max:o}=this.getMinMax(!0);this.min=ys(r)?r:0,this.max=ys(o)?o:1,this.handleTickRangeOptions()}computeTickLimit(){const r=this.isHorizontal(),o=r?this.width:this.height,i=fa(this.options.ticks.minRotation),t=(r?Math.sin(i):Math.cos(i))||.001,e=this._resolveTickFontOptions(0);return Math.ceil(o/Math.min(40,e.lineHeight/t))}getPixelForValue(r){return r===null?NaN:this.getPixelForDecimal((r-this._startValue)/this._valueRange)}getValueForPixel(r){return this._startValue+this.getDecimalForPixel(r)*this._valueRange}}si.id="linear";si.defaults={ticks:{callback:wl.formatters.numeric}};function Z0(s){return s/Math.pow(10,Math.floor(ra(s)))===1}function hx(s,r){const o=Math.floor(ra(r.max)),i=Math.ceil(r.max/Math.pow(10,o)),t=[];let e=ta(s.min,Math.pow(10,Math.floor(ra(r.min)))),u=Math.floor(ra(e)),p=Math.floor(e/Math.pow(10,u)),b=u<0?Math.pow(10,Math.abs(u)):1;do t.push({value:e,major:Z0(e)}),++p,p===10&&(p=1,++u,b=u>=0?1:b),e=Math.round(p*Math.pow(10,u)*b)/b;while(u<o||u===o&&p<i);const _=ta(s.max,e);return t.push({value:_,major:Z0(e)}),t}class yg extends Ro{constructor(r){super(r),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(r,o){const i=yl.prototype.parse.apply(this,[r,o]);if(i===0){this._zero=!0;return}return ys(i)&&i>0?i:null}determineDataLimits(){const{min:r,max:o}=this.getMinMax(!0);this.min=ys(r)?Math.max(0,r):null,this.max=ys(o)?Math.max(0,o):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:r,maxDefined:o}=this.getUserBounds();let i=this.min,t=this.max;const e=b=>i=r?i:b,u=b=>t=o?t:b,p=(b,_)=>Math.pow(10,Math.floor(ra(b))+_);i===t&&(i<=0?(e(1),u(10)):(e(p(i,-1)),u(p(t,1)))),i<=0&&e(p(t,-1)),t<=0&&u(p(i,1)),this._zero&&this.min!==this._suggestedMin&&i===p(this.min,0)&&e(p(i,-1)),this.min=i,this.max=t}buildTicks(){const r=this.options,o={min:this._userMin,max:this._userMax},i=hx(o,this);return r.bounds==="ticks"&&Sm(i,this,"value"),r.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(r){return r===void 0?"0":an(r,this.chart.options.locale,this.options.ticks.format)}configure(){const r=this.min;super.configure(),this._startValue=ra(r),this._valueRange=ra(this.max)-ra(r)}getPixelForValue(r){return(r===void 0||r===0)&&(r=this.min),r===null||isNaN(r)?NaN:this.getPixelForDecimal(r===this.min?0:(ra(r)-this._startValue)/this._valueRange)}getValueForPixel(r){const o=this.getDecimalForPixel(r);return Math.pow(10,this._startValue+o*this._valueRange)}}yg.id="logarithmic";yg.defaults={ticks:{callback:wl.formatters.logarithmic,major:{enabled:!0}}};function yf(s){const r=s.ticks;if(r.display&&s.display){const o=Ts(r.backdropPadding);return Gt(r.font&&r.font.size,lr.font.size)+o.height}return 0}function px(s,r,o){return o=Br(o)?o:[o],{w:ov(s,r.string,o),h:o.length*r.lineHeight}}function $0(s,r,o,i,t){return s===i||s===t?{start:r-o/2,end:r+o/2}:s<i||s>t?{start:r-o,end:r}:{start:r,end:r+o}}function mx(s){const r={l:s.left+s._padding.left,r:s.right-s._padding.right,t:s.top+s._padding.top,b:s.bottom-s._padding.bottom},o=Object.assign({},r),i=[],t=[],e=s._pointLabels.length,u=s.options.pointLabels,p=u.centerPointLabels?zr/e:0;for(let b=0;b<e;b++){const _=u.setContext(s.getPointLabelContext(b));t[b]=_.padding;const w=s.getPointPosition(b,s.drawingArea+t[b],p),S=us(_.font),A=px(s.ctx,S,s._pointLabels[b]);i[b]=A;const E=ca(s.getIndexAngle(b)+p),M=Math.round(Sf(E)),N=$0(M,w.x,A.w,0,180),q=$0(M,w.y,A.h,90,270);gx(o,r,E,N,q)}s.setCenterPoint(r.l-o.l,o.r-r.r,r.t-o.t,o.b-r.b),s._pointLabelItems=bx(s,i,t)}function gx(s,r,o,i,t){const e=Math.abs(Math.sin(o)),u=Math.abs(Math.cos(o));let p=0,b=0;i.start<r.l?(p=(r.l-i.start)/e,s.l=Math.min(s.l,r.l-p)):i.end>r.r&&(p=(i.end-r.r)/e,s.r=Math.max(s.r,r.r+p)),t.start<r.t?(b=(r.t-t.start)/u,s.t=Math.min(s.t,r.t-b)):t.end>r.b&&(b=(t.end-r.b)/u,s.b=Math.max(s.b,r.b+b))}function bx(s,r,o){const i=[],t=s._pointLabels.length,e=s.options,u=yf(e)/2,p=s.drawingArea,b=e.pointLabels.centerPointLabels?zr/t:0;for(let _=0;_<t;_++){const w=s.getPointPosition(_,p+u+o[_],b),S=Math.round(Sf(ca(w.angle+Qr))),A=r[_],E=vx(w.y,A.h,S),M=yx(S),N=_x(w.x,A.w,M);i.push({x:w.x,y:E,textAlign:M,left:N,top:E,right:N+A.w,bottom:E+A.h})}return i}function yx(s){return s===0||s===180?"center":s<180?"left":"right"}function _x(s,r,o){return o==="right"?s-=r:o==="center"&&(s-=r/2),s}function vx(s,r,o){return o===90||o===270?s-=r/2:(o>270||o<90)&&(s-=r),s}function wx(s,r){const{ctx:o,options:{pointLabels:i}}=s;for(let t=r-1;t>=0;t--){const e=i.setContext(s.getPointLabelContext(t)),u=us(e.font),{x:p,y:b,textAlign:_,left:w,top:S,right:A,bottom:E}=s._pointLabelItems[t],{backdropColor:M}=e;if(!xr(M)){const N=Fo(e.borderRadius),q=Ts(e.backdropPadding);o.fillStyle=M;const U=w-q.left,ee=S-q.top,ie=A-w+q.width,j=E-S+q.height;Object.values(N).some(H=>H!==0)?(o.beginPath(),tn(o,{x:U,y:ee,w:ie,h:j,radius:N}),o.fill()):o.fillRect(U,ee,ie,j)}So(o,s._pointLabels[t],p,b+u.lineHeight/2,u,{color:e.color,textAlign:_,textBaseline:"middle"})}}function _g(s,r,o,i){const{ctx:t}=s;if(o)t.arc(s.xCenter,s.yCenter,r,0,Or);else{let e=s.getPointPosition(0,r);t.moveTo(e.x,e.y);for(let u=1;u<i;u++)e=s.getPointPosition(u,r),t.lineTo(e.x,e.y)}}function xx(s,r,o,i){const t=s.ctx,e=r.circular,{color:u,lineWidth:p}=r;!e&&!i||!u||!p||o<0||(t.save(),t.strokeStyle=u,t.lineWidth=p,t.setLineDash(r.borderDash),t.lineDashOffset=r.borderDashOffset,t.beginPath(),_g(s,o,e,i),t.closePath(),t.stroke(),t.restore())}function Cx(s,r,o){return Za(s,{label:o,index:r,type:"pointLabel"})}class Al extends yl{constructor(r){super(r),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const r=this._padding=Ts(yf(this.options)/2),o=this.width=this.maxWidth-r.width,i=this.height=this.maxHeight-r.height;this.xCenter=Math.floor(this.left+o/2+r.left),this.yCenter=Math.floor(this.top+i/2+r.top),this.drawingArea=Math.floor(Math.min(o,i)/2)}determineDataLimits(){const{min:r,max:o}=this.getMinMax(!1);this.min=ys(r)&&!isNaN(r)?r:0,this.max=ys(o)&&!isNaN(o)?o:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/yf(this.options))}generateTickLabels(r){yl.prototype.generateTickLabels.call(this,r),this._pointLabels=this.getLabels().map((o,i)=>{const t=Pr(this.options.pointLabels.callback,[o,i],this);return t||t===0?t:""}).filter((o,i)=>this.chart.getDataVisibility(i))}fit(){const r=this.options;r.display&&r.pointLabels.display?mx(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(r,o,i,t){this.xCenter+=Math.floor((r-o)/2),this.yCenter+=Math.floor((i-t)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(r,o,i,t))}getIndexAngle(r){const o=Or/(this._pointLabels.length||1),i=this.options.startAngle||0;return ca(r*o+fa(i))}getDistanceFromCenterForValue(r){if(xr(r))return NaN;const o=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-r)*o:(r-this.min)*o}getValueForDistanceFromCenter(r){if(xr(r))return NaN;const o=r/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-o:this.min+o}getPointLabelContext(r){const o=this._pointLabels||[];if(r>=0&&r<o.length){const i=o[r];return Cx(this.getContext(),r,i)}}getPointPosition(r,o,i=0){const t=this.getIndexAngle(r)-Qr+i;return{x:Math.cos(t)*o+this.xCenter,y:Math.sin(t)*o+this.yCenter,angle:t}}getPointPositionForValue(r,o){return this.getPointPosition(r,this.getDistanceFromCenterForValue(o))}getBasePosition(r){return this.getPointPositionForValue(r||0,this.getBaseValue())}getPointLabelPosition(r){const{left:o,top:i,right:t,bottom:e}=this._pointLabelItems[r];return{left:o,top:i,right:t,bottom:e}}drawBackground(){const{backgroundColor:r,grid:{circular:o}}=this.options;if(r){const i=this.ctx;i.save(),i.beginPath(),_g(this,this.getDistanceFromCenterForValue(this._endValue),o,this._pointLabels.length),i.closePath(),i.fillStyle=r,i.fill(),i.restore()}}drawGrid(){const r=this.ctx,o=this.options,{angleLines:i,grid:t}=o,e=this._pointLabels.length;let u,p,b;if(o.pointLabels.display&&wx(this,e),t.display&&this.ticks.forEach((_,w)=>{if(w!==0){p=this.getDistanceFromCenterForValue(_.value);const S=t.setContext(this.getContext(w-1));xx(this,S,p,e)}}),i.display){for(r.save(),u=e-1;u>=0;u--){const _=i.setContext(this.getPointLabelContext(u)),{color:w,lineWidth:S}=_;!S||!w||(r.lineWidth=S,r.strokeStyle=w,r.setLineDash(_.borderDash),r.lineDashOffset=_.borderDashOffset,p=this.getDistanceFromCenterForValue(o.ticks.reverse?this.min:this.max),b=this.getPointPosition(u,p),r.beginPath(),r.moveTo(this.xCenter,this.yCenter),r.lineTo(b.x,b.y),r.stroke())}r.restore()}}drawBorder(){}drawLabels(){const r=this.ctx,o=this.options,i=o.ticks;if(!i.display)return;const t=this.getIndexAngle(0);let e,u;r.save(),r.translate(this.xCenter,this.yCenter),r.rotate(t),r.textAlign="center",r.textBaseline="middle",this.ticks.forEach((p,b)=>{if(b===0&&!o.reverse)return;const _=i.setContext(this.getContext(b)),w=us(_.font);if(e=this.getDistanceFromCenterForValue(this.ticks[b].value),_.showLabelBackdrop){r.font=w.string,u=r.measureText(p.label).width,r.fillStyle=_.backdropColor;const S=Ts(_.backdropPadding);r.fillRect(-u/2-S.left,-e-w.size/2-S.top,u+S.width,w.size+S.height)}So(r,p.label,0,-e,w,{color:_.color})}),r.restore()}drawTitle(){}}Al.id="radialLinear";Al.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:wl.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(s){return s},padding:5,centerPointLabels:!1}};Al.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};Al.descriptors={angleLines:{_fallback:"grid"}};const Sl={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}},Bs=Object.keys(Sl);function Fx(s,r){return s-r}function em(s,r){if(xr(r))return null;const o=s._adapter,{parser:i,round:t,isoWeekday:e}=s._parseOpts;let u=r;return typeof i=="function"&&(u=i(u)),ys(u)||(u=typeof i=="string"?o.parse(u,i):o.parse(u)),u===null?null:(t&&(u=t==="week"&&(ei(e)||e===!0)?o.startOf(u,"isoWeek",e):o.startOf(u,t)),+u)}function tm(s,r,o,i){const t=Bs.length;for(let e=Bs.indexOf(s);e<t-1;++e){const u=Sl[Bs[e]],p=u.steps?u.steps:Number.MAX_SAFE_INTEGER;if(u.common&&Math.ceil((o-r)/(p*u.size))<=i)return Bs[e]}return Bs[t-1]}function Dx(s,r,o,i,t){for(let e=Bs.length-1;e>=Bs.indexOf(o);e--){const u=Bs[e];if(Sl[u].common&&s._adapter.diff(t,i,u)>=r-1)return u}return Bs[o?Bs.indexOf(o):0]}function Ax(s){for(let r=Bs.indexOf(s)+1,o=Bs.length;r<o;++r)if(Sl[Bs[r]].common)return Bs[r]}function rm(s,r,o){if(!o)s[r]=!0;else if(o.length){const{lo:i,hi:t}=Ef(o,r),e=o[i]>=r?o[i]:o[t];s[e]=!0}}function Sx(s,r,o,i){const t=s._adapter,e=+t.startOf(r[0].value,i),u=r[r.length-1].value;let p,b;for(p=e;p<=u;p=+t.add(p,1,i))b=o[p],b>=0&&(r[b].major=!0);return r}function sm(s,r,o){const i=[],t={},e=r.length;let u,p;for(u=0;u<e;++u)p=r[u],t[p]=u,i.push({value:p,major:!1});return e===0||!o?i:Sx(s,i,t,o)}class El extends Ro{constructor(r){super(r),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(r,o){const i=r.time||(r.time={}),t=this._adapter=new jw._date(r.adapters.date);t.init(o),qi(i.displayFormats,t.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(r),this._normalized=o.normalized}parse(r,o){return r===void 0?null:em(this,r)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const r=this.options,o=this._adapter,i=r.time.unit||"day";let{min:t,max:e,minDefined:u,maxDefined:p}=this.getUserBounds();function b(_){!u&&!isNaN(_.min)&&(t=Math.min(t,_.min)),!p&&!isNaN(_.max)&&(e=Math.max(e,_.max))}(!u||!p)&&(b(this._getLabelBounds()),(r.bounds!=="ticks"||r.ticks.source!=="labels")&&b(this.getMinMax(!1))),t=ys(t)&&!isNaN(t)?t:+o.startOf(Date.now(),i),e=ys(e)&&!isNaN(e)?e:+o.endOf(Date.now(),i)+1,this.min=Math.min(t,e-1),this.max=Math.max(t+1,e)}_getLabelBounds(){const r=this.getLabelTimestamps();let o=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return r.length&&(o=r[0],i=r[r.length-1]),{min:o,max:i}}buildTicks(){const r=this.options,o=r.time,i=r.ticks,t=i.source==="labels"?this.getLabelTimestamps():this._generate();r.bounds==="ticks"&&t.length&&(this.min=this._userMin||t[0],this.max=this._userMax||t[t.length-1]);const e=this.min,u=this.max,p=k_(t,e,u);return this._unit=o.unit||(i.autoSkip?tm(o.minUnit,this.min,this.max,this._getLabelCapacity(e)):Dx(this,p.length,o.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:Ax(this._unit),this.initOffsets(t),r.reverse&&p.reverse(),sm(this,p,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(r=>+r.value))}initOffsets(r){let o=0,i=0,t,e;this.options.offset&&r.length&&(t=this.getDecimalForValue(r[0]),r.length===1?o=1-t:o=(this.getDecimalForValue(r[1])-t)/2,e=this.getDecimalForValue(r[r.length-1]),r.length===1?i=e:i=(e-this.getDecimalForValue(r[r.length-2]))/2);const u=r.length<3?.5:.25;o=Es(o,0,u),i=Es(i,0,u),this._offsets={start:o,end:i,factor:1/(o+1+i)}}_generate(){const r=this._adapter,o=this.min,i=this.max,t=this.options,e=t.time,u=e.unit||tm(e.minUnit,o,i,this._getLabelCapacity(o)),p=Gt(e.stepSize,1),b=u==="week"?e.isoWeekday:!1,_=ei(b)||b===!0,w={};let S=o,A,E;if(_&&(S=+r.startOf(S,"isoWeek",b)),S=+r.startOf(S,_?"day":u),r.diff(i,o,u)>1e5*p)throw new Error(o+" and "+i+" are too far apart with stepSize of "+p+" "+u);const M=t.ticks.source==="data"&&this.getDataTimestamps();for(A=S,E=0;A<i;A=+r.add(A,p,u),E++)rm(w,A,M);return(A===i||t.bounds==="ticks"||E===1)&&rm(w,A,M),Object.keys(w).sort((N,q)=>N-q).map(N=>+N)}getLabelForValue(r){const o=this._adapter,i=this.options.time;return i.tooltipFormat?o.format(r,i.tooltipFormat):o.format(r,i.displayFormats.datetime)}_tickFormatFunction(r,o,i,t){const e=this.options,u=e.time.displayFormats,p=this._unit,b=this._majorUnit,_=p&&u[p],w=b&&u[b],S=i[o],A=b&&w&&S&&S.major,E=this._adapter.format(r,t||(A?w:_)),M=e.ticks.callback;return M?Pr(M,[E,o,i],this):E}generateTickLabels(r){let o,i,t;for(o=0,i=r.length;o<i;++o)t=r[o],t.label=this._tickFormatFunction(t.value,o,r)}getDecimalForValue(r){return r===null?NaN:(r-this.min)/(this.max-this.min)}getPixelForValue(r){const o=this._offsets,i=this.getDecimalForValue(r);return this.getPixelForDecimal((o.start+i)*o.factor)}getValueForPixel(r){const o=this._offsets,i=this.getDecimalForPixel(r)/o.factor-o.end;return this.min+i*(this.max-this.min)}_getLabelSize(r){const o=this.options.ticks,i=this.ctx.measureText(r).width,t=fa(this.isHorizontal()?o.maxRotation:o.minRotation),e=Math.cos(t),u=Math.sin(t),p=this._resolveTickFontOptions(0).size;return{w:i*e+p*u,h:i*u+p*e}}_getLabelCapacity(r){const o=this.options.time,i=o.displayFormats,t=i[o.unit]||i.millisecond,e=this._tickFormatFunction(r,0,sm(this,[r],this._majorUnit),t),u=this._getLabelSize(e),p=Math.floor(this.isHorizontal()?this.width/u.w:this.height/u.h)-1;return p>0?p:1}getDataTimestamps(){let r=this._cache.data||[],o,i;if(r.length)return r;const t=this.getMatchingVisibleMetas();if(this._normalized&&t.length)return this._cache.data=t[0].controller.getAllParsedValues(this);for(o=0,i=t.length;o<i;++o)r=r.concat(t[o].controller.getAllParsedValues(this));return this._cache.data=this.normalize(r)}getLabelTimestamps(){const r=this._cache.labels||[];let o,i;if(r.length)return r;const t=this.getLabels();for(o=0,i=t.length;o<i;++o)r.push(em(this,t[o]));return this._cache.labels=this._normalized?r:this.normalize(r)}normalize(r){return Rm(r.sort(Fx))}}El.id="time";El.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};function nl(s,r,o){let i=0,t=s.length-1,e,u,p,b;o?(r>=s[i].pos&&r<=s[t].pos&&({lo:i,hi:t}=Co(s,"pos",r)),{pos:e,time:p}=s[i],{pos:u,time:b}=s[t]):(r>=s[i].time&&r<=s[t].time&&({lo:i,hi:t}=Co(s,"time",r)),{time:e,pos:p}=s[i],{time:u,pos:b}=s[t]);const _=u-e;return _?p+(b-p)*(r-e)/_:p}class vg extends El{constructor(r){super(r),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const r=this._getTimestampsForTable(),o=this._table=this.buildLookupTable(r);this._minPos=nl(o,this.min),this._tableRange=nl(o,this.max)-this._minPos,super.initOffsets(r)}buildLookupTable(r){const{min:o,max:i}=this,t=[],e=[];let u,p,b,_,w;for(u=0,p=r.length;u<p;++u)_=r[u],_>=o&&_<=i&&t.push(_);if(t.length<2)return[{time:o,pos:0},{time:i,pos:1}];for(u=0,p=t.length;u<p;++u)w=t[u+1],b=t[u-1],_=t[u],Math.round((w+b)/2)!==_&&e.push({time:_,pos:u/(p-1)});return e}_getTimestampsForTable(){let r=this._cache.all||[];if(r.length)return r;const o=this.getDataTimestamps(),i=this.getLabelTimestamps();return o.length&&i.length?r=this.normalize(o.concat(i)):r=o.length?o:i,r=this._cache.all=r,r}getDecimalForValue(r){return(nl(this._table,r)-this._minPos)/this._tableRange}getValueForPixel(r){const o=this._offsets,i=this.getDecimalForPixel(r)/o.factor-o.end;return nl(this._table,i*this._tableRange+this._minPos,!0)}}vg.id="timeseries";vg.defaults=El.defaults;const Ex={props:["finalData","form"],mounted(){Da.register(ko,To,Eo,si,Fl,Dl,Cl),this.createChart()},methods:{createChart(){const s=document.getElementById("reportChart").getContext("2d");this.chartInstance&&this.chartInstance.destroy();const r=this.finalData.reduce((t,e)=>{const u=e.name||"Unknown",p=e["Date From"]||"Unknown Date",b=parseFloat(e.days)||0,_=`${u} (${p})`;return t[_]||(t[_]=0),t[_]+=b,t},{}),o=Object.keys(r),i=Object.values(r);this.chartInstance=new Da(s,{type:"bar",data:{labels:o,datasets:[{label:"Leave Days",data:i,backgroundColor:"rgba(75, 192, 192, 0.6)",borderColor:"rgba(75, 192, 192, 1)",borderWidth:1}]},options:{responsive:!0,scales:{y:{beginAtZero:!0,title:{display:!0,text:"Number of Leave Days"}},x:{title:{display:!0,text:"Employees (Date)"}}}}})}}};function Tx(s,r,o,i,t,e){return re(),Le("div",null,r[0]||(r[0]=[B("canvas",{id:"reportChart"},null,-1)]))}const Rx=Et(Ex,[["render",Tx],["__scopeId","data-v-3b637c24"]]);const kx={setup(){},props:{setData:Object,recordData:Object},components:{AgGridVue:qt,ActionCellRenderer:dr,LeaveReportChart:Rx,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],leaveType:[],companies:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{setData:this.setData,modules:1,columns:[],leave_id:0,status:"",from_date:"",to_date:""},included:{leave_id:!1,status:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isLeaveTypeLoading:!1}}},computed:{isAllColumnsSelected(){return Array.isArray(this.form.columns)&&this.form.columns.length===this.reportModuleColums.length}},methods:{onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(s){try{await Rr().shape({from_date:Dt().required("From Date is required"),to_date:Dt().required("To Date is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:`Are you sure you want to ${s=="save"?"save":"generate"} this report?`,text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No",html:`${s=="save"?`<input id="swal-input" style="width: 100%; height: 40px; padding: 8px; border: 1px solid #ced4da; border-radius: 4px;" placeholder="Report Title" />`:""}`,preConfirm:()=>{if(s=="save"){const o=document.getElementById("swal-input").value;return o?this.form.report_name=o:(this.$swal.showValidationMessage("The title field is required"),!1)}}}).then(o=>{o.value&&(s=="generate"?(console.log("done"),this.saveRecord()):s=="save"&&this.saveGeneratedReport())})}catch(r){if(r instanceof jt){const o={};r.inner.forEach(i=>{o[i.path]=i.message}),this.errors=o}this.state.isSaving=!1}},async saveGeneratedReport(){this.state.isSaving=!0;const s=this.gridApi.getDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(p=>p.field!=="actions").map(p=>p.field)});this.hasValue=!1;let r=new FormData;Object.keys(this.form).forEach(p=>{p!=="attachment"&&p!="columns"&&p!="setData"&&r.append(p,this.form[p])});const i=`report-${new Date().toISOString().slice(0,19).replace(/:/g,"-")}.csv`,t=new Blob([s],{type:"text/csv"});r.append("csv_file",t,i),r.append("attachment",i);const e=JSON.parse(JSON.stringify(this.setData));Object.values(this.form.columns).forEach((p,b)=>{r.append(`columns[${b}]`,p)}),Object.entries(e).forEach(([p,b])=>{r.append(`setData[${p}]`,b)}),console.log("setData",this.setData),console.log("setData2",e),await tt.saveReport(r).then(p=>{p.status==201&&(this.$swal.fire({title:"Great!",text:"Record successfully saved.",icon:"success",timer:2e3}),this.state.isSaving=!1)}).catch(p=>{console.log(p),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:p.response.data.message,icon:"error",timer:2e3})})},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){await tt.fetchGeneratedReport(this.form).then(s=>{if(s.status==200){this.finalData=s.data.data,console.log("result data",this.finalData);const r=this.reportModuleColums.map(i=>({id:null,report_module_id:"1",name:i.label,slug:i.value})),o=s.data.data.map(i=>{const t={employee_id:i.employee_id||null,fullname:i.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=i[u]||null}),t});this.resultData=o,console.log("Mapped Data",o),this.colDefs=[{field:"employee_id",filter:!0,floatingFilter:!0},{field:"fullname",filter:!0,floatingFilter:!0},...this.form.columns.map(i=>{const t=this.reportModuleColums.find(e=>e.value===i);return{field:t?t.label:i,filter:!0,floatingFilter:!0}})],this.items=this.resultData}}).catch(s=>{console.log(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchLeaveType(){this.state.isLeaveTypeLoading=!0;try{const s=await xf.fetchRecords();s.status===200&&(console.log(s.data),this.leaveType=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isLeaveTypeLoading=!1)}catch(s){console.log(s)}},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await tt.fetchReportModuleColumnRecord(1);s.status===200&&(console.log(s.data),this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},onSelect(s){s==="leave_id"&&(this.fetchLeaveType(),this.included.leave_id=!0),s==="status"&&(this.included.status=!0)},onRemove(s){s==="leave_id"&&(this.included.leave_id=!1),s==="status"&&(this.included.status=!1)},populateFormFromRecordData(){if(this.recordData&&this.recordData.id)try{const s=JSON.parse(this.recordData.columns||"[]");this.form.columns=s;const r=JSON.parse(this.recordData.filters||"{}");this.form.charge_to=r.charge_to||null,this.form.leave_id=r.leave_id||null,this.form.status=r.status||null,this.form.from_date=r.from_date||"",this.form.to_date=r.to_date||"",this.recordData.report_name&&(this.form.report_name=this.recordData.report_name),console.log("Form populated from recordData:",this.form)}catch(s){console.error("Error parsing recordData:",s)}}},mounted(){this.fetchReportModuleColumn(),this.recordData&&this.populateFormFromRecordData()},watch:{recordData:{handler(s){s&&s.id&&this.populateFormFromRecordData()},immediate:!0,deep:!0},"form.columns":function(s){s!=null&&(this.form.columns.includes("leave_id")?(this.fetchLeaveType(),this.included.leave_id=!0):this.included.leave_id=!1,this.form.columns.includes("status")?(this.fetchLeaveType(),this.included.status=!0):this.included.status=!1)}}},Lx={class:"grid grid-cols-1 gap-2"},Mx={class:"grid grid-cols-5 gap-2"},Ox={class:"grid grid-cols-2 gap-2"},Px={class:"flex justify-between items-center"},Nx={class:"flex gap-1 justify-end"};function Ix(s,r,o,i,t,e){const u=Y("Loading"),p=Y("Multiselect"),b=Y("FormGroup"),_=Y("flat-pickr"),w=Y("Button"),S=Y("SubmitButton"),A=Y("ag-grid-vue"),E=Y("Card"),M=Y("LeaveReportChart");return re(),Le(Cr,null,[B("form",{onSubmit:r[9]||(r[9]=St((...N)=>s.confirmSubmit&&s.confirmSubmit(...N),["prevent"])),class:"space-y-4"},[t.state.isSaving?(re(),Me(u,{key:0,text:"Saving record"})):me("",!0),r[10]||(r[10]=B("div",{class:"grid grid-cols-1 gap-2"},null,-1)),B("div",Lx,[T(b,{label:"Columns",isRequired:!0},{default:G(()=>[T(p,{searchable:!0,modelValue:t.form.columns,"onUpdate:modelValue":r[0]||(r[0]=N=>t.form.columns=N),options:t.reportModuleColums,class:"form-multiselect w-full",loading:t.state.isReportModuleColumnLoading,mode:"tags","custom-label":e.columnLabel,"close-on-select":!1,onSelect:e.onSelect,onRemove:e.onRemove,placeholder:"Select Columns"},null,8,["modelValue","options","loading","custom-label","onSelect","onRemove"]),B("button",{type:"button",class:"mt-2 text-blue-600",onClick:r[1]||(r[1]=(...N)=>e.toggleSelectAllColumns&&e.toggleSelectAllColumns(...N))},Hr(e.isAllColumnsSelected?"Deselect All":"Select All"),1)]),_:1})]),B("div",Mx,[t.included.charge_to?(re(),Me(b,{key:0,label:"Charges To"},{default:G(()=>[T(p,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.charge_to,"onUpdate:modelValue":r[2]||(r[2]=N=>t.form.charge_to=N),options:t.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1})):me("",!0),t.included.leave_id?(re(),Me(b,{key:1,label:"Leave Type"},{default:G(()=>[T(p,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.leave_id,"onUpdate:modelValue":r[3]||(r[3]=N=>t.form.leave_id=N),options:t.leaveType,class:"form-multiselect w-full",loading:t.state.isLeaveTypeLoading},null,8,["modelValue","options","loading"])]),_:1})):me("",!0),t.included.status?(re(),Me(b,{key:2,label:"Status"},{default:G(()=>[T(p,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.status,"onUpdate:modelValue":r[4]||(r[4]=N=>t.form.status=N),options:t.statusOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"])]),_:1})):me("",!0)]),B("div",Ox,[T(b,{label:"From Date",isRequired:!0},{default:G(()=>[T(_,{modelValue:t.form.from_date,"onUpdate:modelValue":r[5]||(r[5]=N=>t.form.from_date=N),class:"form-control bg-white",id:"date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),T(b,{label:"To Date",isRequired:!0},{default:G(()=>[T(_,{modelValue:t.form.to_date,"onUpdate:modelValue":r[6]||(r[6]=N=>t.form.to_date=N),class:"form-control bg-white",id:"date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),B("div",Px,[s.items?(re(),Me(w,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):me("",!0),B("div",Nx,[s.items?(re(),Me(S,{key:0,btnClass:"text-white bg-green-500 hover:ring ring-green-600 ring-offset-1 py-2 px-3",onClick:r[7]||(r[7]=N=>e.submitForm("save")),text:"Save Generated Report"})):me("",!0),T(S,{icon:"ic:round-repeat",onClick:r[8]||(r[8]=N=>e.submitForm("generate")),text:"Generate"})])])],32),s.items?(re(),Me(E,{key:0,class:"p-2"},{default:G(()=>[T(A,{ref:"agGrid",rowData:s.items,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):me("",!0),B("div",null,[t.form.modules==1&&t.finalData.length!=0?(re(),Me(M,{key:0,finalData:t.finalData,form:t.form},null,8,["finalData","form"])):me("",!0)])],64)}const Vx=Et(kx,[["render",Ix],["__scopeId","data-v-6c25013a"]]);Da.register(To,ko,Eo,si,Fl,Dl,Cl);const Bx={props:["overtimeData"],data(){return{chartInstance:null}},mounted(){this.renderChart()},methods:{renderChart(){const s=document.getElementById("overtimeChart").getContext("2d");this.chartInstance&&this.chartInstance.destroy();const r=this.overtimeData.reduce((t,e)=>{const u=e["Date From"],p=parseFloat(e.Hours)||0;return t[u]||(t[u]=0),t[u]+=p,t},{}),o=Object.keys(r),i=Object.values(r);this.chartInstance=new Da(s,{type:"bar",data:{labels:o,datasets:[{label:"Overtime Hours",data:i,backgroundColor:"rgba(75, 192, 192, 0.2)",borderColor:"rgba(75, 192, 192, 1)",borderWidth:1}]},options:{responsive:!0,scales:{y:{beginAtZero:!0}}}})}},watch:{overtimeData(s){s&&s.length>0&&this.renderChart()}},beforeDestroy(){this.chartInstance&&this.chartInstance.destroy()}};function Ux(s,r,o,i,t,e){return re(),Le("div",null,r[0]||(r[0]=[B("canvas",{id:"overtimeChart"},null,-1)]))}const zx=Et(Bx,[["render",Ux],["__scopeId","data-v-04873387"]]);const Gx={setup(){},props:{setData:Object,recordData:Object},components:{AgGridVue:qt,ActionCellRenderer:dr,OvertimeReportChart:zx,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],leaveType:[],companies:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:2,columns:[],charge_to_id:"",status:"",from_date:"",to_date:""},included:{leave_id:!1,status:!1,charge_to:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isLeaveTypeLoading:!1}}},computed:{isAllColumnsSelected(){return Array.isArray(this.form.columns)&&this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchCompanies(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(console.log(s.data),this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(s){try{await Rr().shape({from_date:Dt().required("From Date is required"),to_date:Dt().required("To Date is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:`Are you sure you want to ${s=="save"?"save":"generate"} this report?`,text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No",html:`${s=="save"?`<input id="swal-input" style="width: 100%; height: 40px; padding: 8px; border: 1px solid #ced4da; border-radius: 4px;" placeholder="Report Title" />`:""}`,preConfirm:()=>{if(s=="save"){const o=document.getElementById("swal-input").value;return o?this.form.report_name=o:(this.$swal.showValidationMessage("The title field is required"),!1)}}}).then(o=>{o.value&&(s=="generate"?(console.log("done"),this.saveRecord()):s=="save"&&this.saveGeneratedReport())})}catch(r){if(r instanceof jt){const o={};r.inner.forEach(i=>{o[i.path]=i.message}),this.errors=o}this.state.isSaving=!1}},async saveGeneratedReport(){this.state.isSaving=!0;const s=this.gridApi.getDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(p=>p.field!=="actions").map(p=>p.field)});this.hasValue=!1;let r=new FormData;Object.keys(this.form).forEach(p=>{p!=="attachment"&&p!="columns"&&p!="setData"&&r.append(p,this.form[p])});const i=`report-${new Date().toISOString().slice(0,19).replace(/:/g,"-")}.csv`,t=new Blob([s],{type:"text/csv"});r.append("csv_file",t,i),r.append("attachment",i);const e=JSON.parse(JSON.stringify(this.setData));Object.values(this.form.columns).forEach((p,b)=>{r.append(`columns[${b}]`,p)}),Object.entries(e).forEach(([p,b])=>{r.append(`setData[${p}]`,b)}),console.log("setData",this.setData),console.log("setData2",e),await tt.saveReport(r).then(p=>{p.status==201&&(this.$swal.fire({title:"Great!",text:"Record successfully saved.",icon:"success",timer:2e3}),this.state.isSaving=!1)}).catch(p=>{console.log(p),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:p.response.data.message,icon:"error",timer:2e3})})},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){await tt.fetchGeneratedReport(this.form).then(s=>{if(s.status==200){this.finalData=s.data.data,console.log("result data",this.finalData);const r=this.reportModuleColums.map(i=>({id:null,report_module_id:"2",name:i.label,slug:i.value})),o=s.data.data.map(i=>{const t={employee_id:i.employee_id||null,fullname:i.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=i[u]||null}),t});this.resultData=o,console.log("Mapped Data",o),this.colDefs=[{field:"employee_id",filter:!0,floatingFilter:!0},{field:"fullname",filter:!0,floatingFilter:!0},...this.form.columns.map(i=>{const t=this.reportModuleColums.find(e=>e.value===i);return{field:t?t.label:i,filter:!0,floatingFilter:!0}})],this.items=this.resultData}}).catch(s=>{console.log(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchLeaveType(){this.state.isLeaveTypeLoading=!0;try{const s=await xf.fetchRecords();s.status===200&&(console.log(s.data),this.leaveType=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isLeaveTypeLoading=!1)}catch(s){console.log(s)}},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await tt.fetchReportModuleColumnRecord(2);s.status===200&&(console.log(s.data),this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},onSelect(s){s==="charge_to"&&(this.fetchCompanies(),this.included.charge_to=!0),s==="status"&&(this.included.status=!0)},onRemove(s){selectedOption==="charge_to"&&(this.fetchCompanies(),this.included.charge_to=!0),s==="status"&&(this.included.status=!1)},populateFormFromRecordData(){if(this.recordData&&this.recordData.id)try{const s=JSON.parse(this.recordData.columns||"[]");this.form.columns=s;const r=JSON.parse(this.recordData.filters||"{}");this.form.charge_to_id=r.charge_to_id||null,this.form.status=r.status||null,this.form.from_date=r.from_date||null,this.form.to_date=r.to_date||null,this.recordData.report_name&&(this.form.report_name=this.recordData.report_name)}catch(s){console.error("Error parsing recordData:",s)}}},mounted(){this.fetchReportModuleColumn(),this.recordData&&this.populateFormFromRecordData(),this.fetchCompanies(),this.fetchReportModuleColumn()},watch:{recordData:{handler(s){s&&s.id&&this.populateFormFromRecordData()},immediate:!0,deep:!0},"form.columns":function(s){s!=null&&(this.form.columns.includes("charge_to")?(this.fetchCompanies(),this.included.charge_to=!0):this.included.charge_to=!1,this.form.columns.includes("status")?(this.fetchLeaveType(),this.included.status=!0):this.included.status=!1)}}},jx={class:"grid grid-cols-1 gap-2"},Wx={class:"grid grid-cols-2 gap-2"},Hx={class:"grid grid-cols-2 gap-2"},Yx={class:"flex justify-between items-center"},qx={class:"flex gap-1 justify-end"};function Kx(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("flat-pickr"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card"),E=Y("OvertimeReportChart");return re(),Le(Cr,null,[B("form",{onSubmit:r[8]||(r[8]=St((...M)=>s.confirmSubmit&&s.confirmSubmit(...M),["prevent"])),class:"space-y-4"},[r[9]||(r[9]=B("div",{class:"grid grid-cols-1 gap-2"},null,-1)),B("div",jx,[T(p,{label:"Columns",isRequired:!0},{default:G(()=>[T(u,{searchable:!0,modelValue:t.form.columns,"onUpdate:modelValue":r[0]||(r[0]=M=>t.form.columns=M),options:t.reportModuleColums,class:"form-multiselect w-full",loading:t.state.isReportModuleColumnLoading,mode:"tags","custom-label":e.columnLabel,"close-on-select":!1,onSelect:e.onSelect,onRemove:e.onRemove,placeholder:"Select Columns"},null,8,["modelValue","options","loading","custom-label","onSelect","onRemove"]),B("button",{type:"button",class:"mt-2 text-blue-600",onClick:r[1]||(r[1]=(...M)=>e.toggleSelectAllColumns&&e.toggleSelectAllColumns(...M))},Hr(e.isAllColumnsSelected?"Deselect All":"Select All"),1)]),_:1})]),B("div",Wx,[t.included.charge_to?(re(),Me(p,{key:0,label:"Charges To"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.charge_to_id,"onUpdate:modelValue":r[2]||(r[2]=M=>t.form.charge_to_id=M),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1})):me("",!0),t.included.status?(re(),Me(p,{key:1,label:"Status"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.status,"onUpdate:modelValue":r[3]||(r[3]=M=>t.form.status=M),options:t.statusOptions,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","options"])]),_:1})):me("",!0)]),B("div",Hx,[T(p,{label:"From Date",isRequired:!0},{default:G(()=>[T(b,{modelValue:t.form.from_date,"onUpdate:modelValue":r[4]||(r[4]=M=>t.form.from_date=M),class:"form-control h-[48px]",id:"date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),T(p,{label:"To Date",isRequired:!0},{default:G(()=>[T(b,{modelValue:t.form.to_date,"onUpdate:modelValue":r[5]||(r[5]=M=>t.form.to_date=M),class:"form-control h-[48px]",id:"date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),B("div",Yx,[s.items?(re(),Me(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):me("",!0),B("div",qx,[s.items?(re(),Me(w,{key:0,btnClass:"text-white bg-green-500 hover:ring ring-green-600 ring-offset-1 py-2 px-3",onClick:r[6]||(r[6]=M=>e.submitForm("save")),text:"Save Generated Report"})):me("",!0),T(w,{icon:"ic:round-repeat",onClick:r[7]||(r[7]=M=>e.submitForm("generate")),text:"Generate"})])])],32),s.items?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(S,{ref:"agGrid",rowData:s.items,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):me("",!0),B("div",null,[t.form.modules==2&&t.finalData.length!=0?(re(),Me(E,{key:0,overtimeData:t.resultData,form:t.form},null,8,["overtimeData","form"])):me("",!0)])],64)}const Jx=Et(Gx,[["render",Kx],["__scopeId","data-v-cb57f17e"]]);const am=ir,om=yr,im=es,Xx=tt,nm=Cf,Qx={components:{Layout:Yt,Yup:Df,FormGroup:Zt,Multiselect:zt,SubmitButton:Ut,CompanyService:am,DealershipService:om,DepartmentService:im,PayrollService:nm,AgGridVue:qt,Loading:Wt},data(){return{companies:[],dealerships:[],filteredDealerships:[],departments:[],payroll_dates:[],companyName:"",dealershipName:"",form:{dealership_id:null,department_id:null,selectedCompanyId:null,payroll_date:null,modules:19},errors:{date_from:"",date_to:"",month:""},state:{isLoadingCompanies:!1,isLoadingDealerships:!1,isLoadingDepartments:!1,isLoadingPayrollDates:!1,isGenerating:!1,isSubmiting:!1,isLoading:!1},colDefs:[],rowData:[]}},methods:{async fetchCompanies(){this.state.isLoadingCompanies=!0;try{const s=await am.fetchRecords();s.status==200?this.companies=s.data.data.map(r=>({value:r.id,label:`${r.code} - ${r.name}`})):console.warn("Unexpected response status: ",s.status)}catch(s){console.error("Error fetching companies: ",s.message)}finally{this.state.isLoadingCompanies=!1}},async fetchDealerships(){this.state.isLoadingDealerships=!0;try{const s=await om.fetchRecords();s.status==200?this.dealerships=s.data.data.map(r=>({value:r.id,label:`${r.code} - ${r.name}`,companyId:r.company_id})):console.warn("Enexpected response status : ",s.status)}catch(s){console.error("Error fetching dealerships",s.message)}finally{this.state.isLoadingDealerships=!1}},filterDealerships(){this.form.selectedCompanyId?(console.log("selected company id "),this.filteredDealerships=this.dealerships.filter(s=>s.companyId===this.form.selectedCompanyId),console.log(this.filteredDealerships)):this.filteredDealerships=this.dealerships},async fetchDepartments(){this.state.isLoadingDepartments=!0;try{const s=await im.fetchRecords();s.status==200&&(this.departments=s.data.data.map(r=>({value:r.id,label:`${r.name}`})))}catch(s){console.error("Error fetching departments",s.message)}finally{this.state.isLoadingDepartments=!1}},async fetchPayrollDate(){this.state.isLoadingPayrollDates=!0;try{const s=await nm.fetchRecords();s.status==200&&(this.payroll_dates=s.data.data.map(r=>({value:r.payroll_date,label:`${r.cut_off_start} - ${r.cut_off_end}`})))}catch(s){console.log("Error fetching payroll date",s.message)}finally{this.state.isLoadingPayrollDates=!1}},async submitForm(){if(console.log("FORM"),console.log(this.form),this.resetErrors(),!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Rr().shape({}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{this.submitReport(),this.state.isSubmiting=!1})}catch(s){if(console.error("Error generating report",s.message),s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){var s,r,o;if(!this.state.isGenerating){this.state.isGenerating=!0,this.state.isLoading=!0;try{const i=await Xx.fetchGeneratedReport(this.form);if((s=i.data)!=null&&s.data&&Object.keys(i.data.data).length>0){let t=[];console.log("After adding header row:",t),Object.entries(i.data.data).forEach(([e,u])=>{t.push({department:e,isGroup:!0});let p={total_over_times:0,frequency:0,total_ot_pay:0,holiday_total:0,dayOff_pay:0,night_diff_pay:0,total_meal:0,total_transpo:0,row_total:0,isSumarry:!0,name:"SUB TOTAL (DEPARTMENT)"};u.forEach(b=>{t.push({...b,department:e||b.department,isGroup:!1}),p.total_over_times+=parseFloat(b.total_over_times||0),p.frequency+=parseFloat(b.frequency||0),p.total_ot_pay+=parseFloat(b.total_ot_pay||0),p.holiday_total+=parseFloat(b.holiday_total||0),p.dayOff_pay+=parseFloat(b.dayOff_pay||0),p.total_meal+=parseFloat(b.total_meal||0),p.total_transpo+=parseFloat(p.total_transpo||0),p.row_total+=parseFloat(p.row_total||0)}),p.row_total=parseFloat((p.total_ot_pay+p.holiday_total+p.dayOff_pay+p.night_diff_pay+p.total_meal+p.total_transpo).toFixed(2)),p.dayOff_pay=parseFloat(p.dayOff_pay.toFixed(2)),t.push(p)}),this.rowData=t,console.log("rowData"),console.log(this.rowData),this.colDefs=[{headerName:`COMPANY: ${this.companyName} / DEALER: ${this.dealershipName}`,field:"department",flex:1,children:[{headerName:`Cut-off Period: ${this.getCutoffPeriodLabels()}`,field:"department",flex:1,children:[{headerName:"DEPARTMENT / GROUP",field:"department",flex:1,sortable:!0,filter:!0,cellRenderer:e=>{if(!e.data)return"";if(e.data.isGroup2)return`<strong>${e.data.department}</strong>`;if(e.data.isGroup)return`<strong>${e.data.department}</strong>`},cellStyle:e=>{var u,p;return(u=e.data)!=null&&u.isGroup?{fontWeight:"bold",backgroundColor:"#f0f0f0"}:((p=e.data)!=null&&p.isSumarry,null)}},{headerName:"Employee Name",field:"name",flex:1,sortable:!0,filter:!0,cellRenderer:e=>e.data?e.data.isSumarry?`<strong>${e.data.name}</strong>`:e.data.name:""},{headerName:"Total OT Hours",field:"total_over_times",flex:1,cellRenderer:e=>e.data?e.data.isSumarry?`<strong>${e.data.total_over_times}</strong>`:e.data.total_over_times:""},{headerName:"Frequency",field:"frequency",flex:1,cellRenderer:e=>e.data?e.data.isSumarry?`<strong>${e.data.frequency}</strong>`:e.data.frequency:""},{headerName:"OT PAY",field:"total_ot_pay",flex:1,cellRenderer:e=>e.data?e.data.isSumarry?`<strong>${e.data.total_ot_pay}</strong>`:e.data.total_ot_pay:""},{headerName:"HOLIDAY PAY",field:"holiday_total",flex:1,cellRenderer:e=>e.data?e.data.isSumarry?`<strong>${e.data.holiday_total}</strong>`:e.data.holiday_total:""},{headerName:"DAYOFF PAY",field:"dayOff_pay",flex:1,cellRenderer:e=>e.data?e.data.isSumarry?`<strong>${e.data.dayOff_pay}</strong>`:e.data.dayOff_pay:""},{headerName:"NIGHT DIFF PAY",field:"night_diff_pay",flex:1,cellRenderer:e=>e.data?e.data.isSumarry?`<strong>${e.data.night_diff_pay}</strong>`:e.data.night_diff_pay:""},{headerName:"OT MEAL",field:"total_meal",flex:1,cellRenderer:e=>e.data?e.data.isSumarry?`<strong>${e.data.total_meal}</strong>`:e.data.total_meal:""},{headerName:"TRANSPO",field:"total_transpo",flex:1,cellRenderer:e=>e.data?e.data.isSumarry?`<strong>${e.data.total_transpo}</strong>`:e.data.total_transpo:""},{headerName:"TOTAL",field:"row_total",flex:1,sortable:!0,filter:!0,cellRenderer:e=>e.data?e.data.isSumarry?`<strong>${e.data.row_total}</strong>`:e.data.row_total:""}]}]}],console.log("def"),console.log(this.colDefs)}else this.$swal.fire({title:"No Data Found",text:"No records were found matching the criteria.",icon:"info",timer:3e3});this.state.isGenerating=!1}catch(i){console.error("Error submitting report:",i),this.$swal.fire({title:"Oops! Something went wrong.",text:((o=(r=i.response)==null?void 0:r.data)==null?void 0:o.message)||"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1,this.state.isLoading=!1}}},exportToCSV(){if(this.gridApi){const s=this.companyName||"ALL",r=this.dealershipName||"ALL",o=[`COMPANY: ${s} / DEALER: ${r}`,`Cut-off Period: ${this.getCutoffPeriodLabels()}`,""],i=[];this.gridApi.forEachNodeAfterFilterAndSort(_=>{_.group||(_.data?(console.log("node"),console.log(_),_.data.isGroup?i.push([_.data.department,"","","","","","","","","",""]):i.push([_.data.isGroup?_.data.department:"",_.data.name||0,_.data.total_over_times||0,_.data.frequency||0,_.data.total_ot_pay||0,_.data.holiday_total||0,_.data.dayOff_pay||0,_.data.night_diff_pay||0,_.data.total_meal||0,_.data.total_transpo||0,_.data.row_total||0])):_.aggData&&i.push([`SUB TOTAL (${_.key})`,"",_.aggData.total_over_times||0,_.aggData.frequency||0,_.aggData.total_ot_pay||0,_.aggData.holiday_total||0,_.aggData.dayOff_pay||0,_.aggData.night_diff_pay||0,_.aggData.total_meal||0,_.aggData.total_transpo||0,_.aggData.row_total||0]))});const e=[...o.map(_=>[_]),["DEPARTMENT / GROUP","Employee Name","Total OT Hours","Frequency","OT PAY","HOLIDAY PAY","DAYOFF PAY","NIGHT DIFF PAY","OT MEAL","TRANSPO","TOTAL"],...i].map(_=>_.join(",")).join(` `),u=new Blob([e],{type:"text/csv;charset=utf-8;"}),p=document.createElement("a"),b=URL.createObjectURL(u);p.setAttribute("href",b),p.setAttribute("download","Overtime_Report.csv"),p.style.visibility="hidden",document.body.appendChild(p),p.click(),document.body.removeChild(p)}},onGridReady(s){this.gridApi=s.api,this.gridColumnApi=s.columnApi},getCompanyName(s){const r=this.companies.find(o=>o.value===s);return this.companyName=r?r.label:"All",this.companyName},getDealershipName(s){const r=this.filteredDealerships.find(o=>o.value===s);return console.log("DEALER NAME"),console.log(r),this.dealershipName=r?r.label:"All",r?r.label:"All"},onChangeCompany(s){this.getCompanyName(s),this.form.selectedCompanyId=s,this.filterDealerships()},onChangeDealership(s){this.getDealershipName(s)},getPayrollDates(s){console.log("getPayrollDates executed with ID:",s);const r=this.payrollDates.find(o=>o.payroll_date===s);return r?r.date:"N/A"},getCutoffPeriodLabels(){return this.form.payroll_date.map(s=>{const r=this.payroll_dates.find(o=>o.value===s);return r?r.label:""}).join(" , ")},resetErrors(){this.errors={month:""}}},mounted(){this.fetchCompanies(),this.fetchDealerships(),this.fetchDepartments(),this.fetchPayrollDate()}},Zx={class:"grid grid-cols-3 gap-2"},$x={class:""},eC={class:""},tC={class:""},rC={class:""},sC={key:0,class:"text-red-400"},aC={class:"flex justify-between items-center mt-2"},oC={class:"flex gap-1 justify-end"},iC={key:0,class:"mt-3"},nC={class:"flex gap-1 justify-end"};function lC(s,r,o,i,t,e){const u=Y("Loading"),p=Y("Multiselect"),b=Y("FormGroup"),_=Y("SubmitButton"),w=Y("ag-grid-vue");return re(),Le(Cr,null,[B("form",{onSubmit:r[4]||(r[4]=St((...S)=>e.submitForm&&e.submitForm(...S),["prevent"])),class:""},[t.state.isLoading?(re(),Me(u,{key:0,text:"Processing"})):me("",!0),B("div",Zx,[B("div",$x,[T(b,{label:"Company"},{default:G(()=>[T(p,{id:"company_id",label:s.Company,modelValue:t.form.selectedCompanyId,"onUpdate:modelValue":r[0]||(r[0]=S=>t.form.selectedCompanyId=S),loading:t.state.isLoadingCompanies,options:t.companies,disabled:t.state.isLoadingCompanies||!t.companies.length,placeholder:"(ALL)",searchable:!0,onChange:e.onChangeCompany},null,8,["label","modelValue","loading","options","disabled","onChange"])]),_:1})]),B("div",eC,[T(b,{label:"Dealership"},{default:G(()=>[T(p,{id:"dealership_id",name:"dealership_id",modelValue:t.form.dealership_id,"onUpdate:modelValue":r[1]||(r[1]=S=>t.form.dealership_id=S),label:s.Dealership,loading:t.state.isLoadingDealerships,options:t.filteredDealerships,disabled:t.state.isLoadingDealerships||!e.filterDealerships,placeholder:"(ALL)",searchable:!0,onChange:e.onChangeDealership},null,8,["modelValue","label","loading","options","disabled","onChange"])]),_:1})]),B("div",tC,[T(b,{label:"Department"},{default:G(()=>[T(p,{id:"department_id",modelValue:t.form.department_id,"onUpdate:modelValue":r[2]||(r[2]=S=>t.form.department_id=S),label:s.Departments,loading:t.state.isLoadingDepartments,options:t.departments,disabled:t.state.isLoadingDepartments||!t.departments.length,placeholder:"(ALL)",mode:"tags",searchable:!0},null,8,["modelValue","label","loading","options","disabled"])]),_:1})]),B("div",rC,[T(b,{label:"Cut-Off",isRequired:!0},{default:G(()=>[T(p,{id:"payroll_date",modelValue:t.form.payroll_date,"onUpdate:modelValue":r[3]||(r[3]=S=>t.form.payroll_date=S),loading:t.state.isLoadingPayrollDates,options:t.payroll_dates,disabled:t.state.isLoadingPayrollDates||!t.payroll_dates.length,placeholder:"Select cut-off",mode:"tags"},null,8,["modelValue","loading","options","disabled"]),t.errors.payroll_date?(re(),Le("span",sC,Hr(t.errors.payroll_date),1)):me("",!0)]),_:1})])]),B("div",aC,[B("div",oC,[T(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),this.rowData.length>0?(re(),Le("div",iC,[B("div",nC,[B("button",{class:"btn btn-sm btn-dark mb-2",icon:"heroicons-outline:download",onClick:r[5]||(r[5]=(...S)=>e.exportToCSV&&e.exportToCSV(...S))},"Export csv")]),T(w,{rowData:t.rowData,columnDefs:t.colDefs,class:"ag-theme-alpine",pinnedTopRowData:s.pinnedTopRowData,style:{width:"100%",height:"400px"},groupIncludeFooter:!0,groupIncludeTotalFooter:!0,animateRows:!0,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","pinnedTopRowData","onGridReady"])])):me("",!0)],64)}const cC=Et(Qx,[["render",lC],["__scopeId","data-v-02485efb"]]);const lm=ir,cm=yr,fm=es,fC=tt,um=Cf,uC={components:{Layout:Yt,Yup:Df,FormGroup:Zt,Multiselect:zt,SubmitButton:Ut,CompanyService:lm,DealershipService:cm,DepartmentService:fm,PayrollService:um,AgGridVue:qt,Loading:Wt},data(){return{companies:[],dealerships:[],filteredDealerships:[],departments:[],payroll_dates:[],employees:[],compnayName:"",dealershipName:"",form:{dealership_id:null,department_id:null,selectedCompanyId:null,payroll_date:null,employee_id:null,modules:20,type:null},moduleTypes:[{value:1,label:"Leave"},{value:2,label:"OB"},{value:3,label:"Overtime"},{value:4,label:"Time Adjustment"},{value:5,label:"Change Schedule"},{value:6,label:"Offset"}],errors:{selectedCompanyId:"",payroll_date:"",type:""},state:{isLoadingCompanies:!1,isLoadingDealerships:!1,isLoadingDepartments:!1,isLoadingPayrollDates:!1,isGenerating:!1,isSubmiting:!1},pinnedTopRowData:[],pinnedBottomRowData:[],colDefs:[],rowData:[]}},watch:{},computed:{activeCompany(){return this.$store.userSettings.getActiveCompany},activeDealer(){return this.$store.userSettings.getActiveDealership}},methods:{onGridReady(s){this.gridApi=s.api,this.gridColumnApi=s.columnApi,this.updateTotalHoursRow()},moduleColumns(s){this.colDefs=[...s]},ModuleLabel(){const s=this.moduleTypes.find(r=>r.value===this.form.type);return s?s.label:"Select Module"},calculateTotalHours(){return this.rowData.length===0?0:this.rowData.reduce((s,r)=>s+(r.hours||0),0)},async fetchEmployee(){this.state.isLoadingEmployees=!0,await Fr.fetchAllEmployeeRecords({company_id:this.activeCompany,dealership_id:this.activeDealer}).then(s=>{console.log("response",this.activeCompany),s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)}),this.state.isLoadingEmployees=!1},async fetchCompanies(){this.state.isLoadingCompanies=!0;try{const s=await lm.fetchRecords();s.status==200?this.companies=s.data.data.map(r=>({value:r.id,label:`${r.code} - ${r.name}`})):console.warn("Unexpected response status: ",s.status)}catch(s){console.error("Error fetching companies: ",s.message)}finally{this.state.isLoadingCompanies=!1}},async fetchDealerships(){this.state.isLoadingDealerships=!0;try{const s=await cm.fetchRecords();s.status==200?this.dealerships=s.data.data.map(r=>({value:r.id,label:`${r.code} - ${r.name}`,companyId:r.company_id})):console.warn("Enexpected response status : ",s.status)}catch(s){console.error("Error fetching dealerships",s.message)}finally{this.state.isLoadingDealerships=!1}},filterDealerships(){this.form.selectedCompanyId?(console.log("selected company id "),console.log(this.selectedCompanyId),this.filteredDealerships=this.dealerships.filter(s=>s.companyId===this.form.selectedCompanyId),console.log(this.filteredDealerships)):this.filteredDealerships=this.dealerships},onChangeCompany(s){console.log("selected companies :"+s),this.form.selectedCompanyId=s,this.filterDealerships(),this.moduleColumns([])},onChangeType(s){this.moduleColumns([])},async fetchDepartments(){this.state.isLoadingDepartments=!0;try{const s=await fm.fetchRecords();s.status==200&&(this.departments=s.data.data.map(r=>({value:r.id,label:`${r.name}`})))}catch(s){console.error("Error fetching departments",s.message)}finally{this.state.isLoadingDepartments=!1}},async fetchPayrollDate(){this.state.isLoadingPayrollDates=!0;try{const s=await um.fetchRecords();s.status==200&&(this.payroll_dates=s.data.data.map(r=>({value:r.payroll_date,label:`${r.cut_off_start} - ${r.cut_off_end}`})))}catch(s){console.log("Error fetching payroll date",s.message)}finally{this.state.isLoadingPayrollDates=!1}},async submitForm(){if(console.log("FORM"),console.log(this.form),this.resetErrors(),!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Rr().shape({selectedCompanyId:Dt().nullable().required("Company is required"),payroll_date:wf().nullable().required("Cut-Off date is required").typeError("Cut-Off date must be a valid date"),type:Dt().nullable().required("Module is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){var s,r,o;if(!this.state.isGenerating){this.state.isGenerating=!0;try{const i=await fC.fetchGeneratedReport(this.form);if((s=i.data)!=null&&s.data&&Object.keys(i.data.data).length>0){console.log("DATA"),console.log(i.data.data);const t=i.data.data.map(e=>({...e,approved_at:e.approved_at?new Date(e.approved_at).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}):null,date_from:e.date_from?new Date(e.date_from).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric"}):null,date_to:e.date_to?new Date(e.date_to).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric"}):null,date:e.date?new Date(e.date).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric"}):null}));switch(this.rowData=t,this.form.type){case 1:const e=[{headerName:this.ModuleLabel(),field:"company",children:[{field:"company",headerName:"Company",sortable:!0,filter:!0},{field:"dealer",headerName:"Dealer",sortable:!0,filter:!0},{field:"employee_id",headerName:"Employee ID",sortable:!0,filter:!0},{field:"name",headerName:"Name",sortable:!0,filter:!0},{field:"leavetype",headerName:"Leave Type",sortable:!0,filter:!0},{field:"reason",headerName:"Reason",sortable:!0,filter:!0},{field:"date_from",headerName:"Date From",sortable:!0,filter:!0},{field:"date_to",headerName:"Date To",sortable:!0,filter:!0},{field:"hours",headerName:"Hours",sortable:!0,filter:!0},{field:"approver_name",headerName:"Approved by",sortable:!0,filter:!0},{field:"approved_at",headerName:"Date approved",sortable:!0,filter:!0}]}];this.moduleColumns(e);break;case 2:const u=[{headerName:this.ModuleLabel(),field:"company",children:[{field:"company",headerName:"Company",sortable:!0,filter:!0},{field:"dealer",headerName:"Dealer",sortable:!0,filter:!0},{field:"employee_id",headerName:"Employee ID",sortable:!0,filter:!0},{field:"name",headerName:"Name",sortable:!0,filter:!0},{field:"description",headerName:"Description",sortable:!0,filter:!0},{field:"date_from",headerName:"Date From",sortable:!0,filter:!0},{field:"date_to",headerName:"Date To",sortable:!0,filter:!0},{field:"hours",headerName:"Hours",sortable:!0,filter:!0},{field:"approver_name",headerName:"Approved by",sortable:!0,filter:!0},{field:"approved_at",headerName:"Date approved",sortable:!0,filter:!0}]}];this.moduleColumns(u);break;case 3:const p=[{headerName:this.ModuleLabel(),field:"company",children:[{field:"company",headerName:"Company",sortable:!0,filter:!0},{field:"dealer",headerName:"Dealer",sortable:!0,filter:!0},{field:"employee_id",headerName:"Employee ID",sortable:!0,filter:!0},{field:"name",headerName:"Name",sortable:!0,filter:!0},{field:"description",headerName:"Description",sortable:!0,filter:!0},{field:"date_from",headerName:"Date From",sortable:!0,filter:!0},{field:"date_to",headerName:"Date To",sortable:!0,filter:!0},{field:"hours",headerName:"Hours",sortable:!0,filter:!0},{field:"approver_name",headerName:"Approved by",sortable:!0,filter:!0},{field:"approved_at",headerName:"Date approved",sortable:!0,filter:!0}]}];this.moduleColumns(p);break;case 4:const b=[{headerName:this.ModuleLabel(),field:"company",children:[{field:"company",headerName:"Company",sortable:!0,filter:!0},{field:"dealer",headerName:"Dealer",sortable:!0,filter:!0},{field:"employee_id",headerName:"Employee ID",sortable:!0,filter:!0},{field:"name",headerName:"Name",sortable:!0,filter:!0},{field:"description",headerName:"Description",sortable:!0,filter:!0},{field:"date",headerName:"Date",sortable:!0,filter:!0},{field:"In/Out",headerName:"In/Out",sortable:!0,filter:!0},{field:"approver_name",headerName:"Approved by",sortable:!0,filter:!0},{field:"approved_at",headerName:"Date approved",sortable:!0,filter:!0}]}];this.moduleColumns(b);break;case 5:const _=[{headerName:this.ModuleLabel(),field:"company",children:[{field:"company",headerName:"Company",sortable:!0,filter:!0},{field:"dealer",headerName:"Dealer",sortable:!0,filter:!0},{field:"employee_id",headerName:"Employee ID",sortable:!0,filter:!0},{field:"name",headerName:"Name",sortable:!0,filter:!0},{field:"description",headerName:"Description",sortable:!0,filter:!0},{field:"date",headerName:"Date",sortable:!0,filter:!0},{field:"hours",headerName:"Hours",sortable:!0,filter:!0},{field:"approver_name",headerName:"Approved by",sortable:!0,filter:!0},{field:"approved_at",headerName:"Date approved",sortable:!0,filter:!0}]}];this.moduleColumns(_);break;case 6:const w=[{headerName:this.ModuleLabel(),field:"company",children:[{field:"company",headerName:"Company",sortable:!0,filter:!0},{field:"dealer",headerName:"Dealer",sortable:!0,filter:!0},{field:"employee_id",headerName:"Employee ID",sortable:!0,filter:!0},{field:"name",headerName:"Name",sortable:!0,filter:!0},{field:"description",headerName:"Description",sortable:!0,filter:!0},{field:"date_from",headerName:"Date From",sortable:!0,filter:!0},{field:"date_to",headerName:"Date To",sortable:!0,filter:!0},{field:"hours",headerName:"Hours",sortable:!0,filter:!0},{field:"approver_name",headerName:"Approved by",sortable:!0,filter:!0},{field:"approved_at",headerName:"Date approved",sortable:!0,filter:!0}]}];this.moduleColumns(w);break;default:}}else this.rowData=[],this.moduleColumns([]),this.$swal.fire({title:"No Data Found",text:"No records were found matching the criteria.",icon:"info",timer:3e3});this.state.isGenerating=!1}catch(i){console.error("Error submitting report:",i),this.$swal.fire({title:"Oops! Something went wrong.",text:((o=(r=i.response)==null?void 0:r.data)==null?void 0:o.message)||"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},onGridReady(s){this.gridApi=s.api,this.gridColumnApi=s.columnApi},getCompanyName(s){console.log("company id : "+s);const r=this.companies.find(o=>o.value===s);return this.compnayName=r?r.label:"Unknown Company",r?r.label:"Unknown Company"},getDealershipName(s){const r=this.filteredDealerships.find(o=>o.value===s);return this.dealershipName=r?r.label:"Unknown Dealership",r?r.label:"Unknown Dealership"},getPayrollDates(s){console.log("getPayrollDates executed with ID:",s);const r=this.payrollDates.find(o=>o.payroll_date===s);return r?r.date:"N/A"},resetErrors(){this.errors={month:""}}},mounted(){this.fetchEmployee(),this.fetchCompanies(),this.fetchDealerships(),this.fetchDepartments(),this.fetchPayrollDate()}},dC={class:"grid grid-cols-3 gap-2"},hC={class:""},pC={key:0,class:"text-red-400"},mC={class:"grid grid-cols-1 gap-2"},gC={class:""},bC={key:0,class:"text-red-400"},yC={class:""},_C={class:""},vC={key:0,class:"text-red-400"},wC={key:0},xC={class:"mt-8 p-2 inline-block bg-green-300"},CC={class:"flex justify-between items-center mt-2"},FC={class:"flex gap-1 justify-end"},DC={key:0,class:"mt-3"},AC={class:"flex gap-1 justify-end"};function SC(s,r,o,i,t,e){const u=Y("Loading"),p=Y("Multiselect"),b=Y("FormGroup"),_=Y("SubmitButton"),w=Y("ag-grid-vue");return re(),Le(Cr,null,[B("form",{onSubmit:r[5]||(r[5]=St((...S)=>e.submitForm&&e.submitForm(...S),["prevent"])),class:""},[t.state.isGenerating?(re(),Me(u,{key:0,text:"Processing"})):me("",!0),B("div",dC,[B("div",hC,[T(b,{label:"Type"},{default:G(()=>[T(p,{id:"type",label:s.Type,modelValue:t.form.type,"onUpdate:modelValue":r[0]||(r[0]=S=>t.form.type=S),placeholder:"(Module)",options:t.moduleTypes,searchable:!0,"close-on-select":!0,onChange:e.onChangeType,"track-by":"label"},null,8,["label","modelValue","options","onChange"]),t.errors.type?(re(),Le("span",pC,Hr(t.errors.type),1)):me("",!0)]),_:1})]),B("div",mC,[T(b,{label:"Employee"},{default:G(()=>[T(p,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[1]||(r[1]=S=>t.form.employee_id=S),disabled:t.state.isLoadingEmployee||!t.employees.length,options:t.employees,"close-on-select":!1,loading:t.state.isLoadingEmployees,class:"form-multiselect w-full mt-2"},null,8,["modelValue","disabled","options","loading"])]),_:1})]),B("div",gC,[T(b,{label:"Company"},{default:G(()=>[T(p,{id:"company_id",label:s.Company,modelValue:t.form.selectedCompanyId,"onUpdate:modelValue":r[2]||(r[2]=S=>t.form.selectedCompanyId=S),loading:t.state.isLoadingCompanies,options:t.companies,disabled:t.state.isLoadingCompanies||!t.companies.length,placeholder:"(ALL)",searchable:!0,onChange:e.onChangeCompany},null,8,["label","modelValue","loading","options","disabled","onChange"]),t.errors.selectedCompanyId?(re(),Le("span",bC,Hr(t.errors.selectedCompanyId),1)):me("",!0)]),_:1})]),B("div",yC,[T(b,{label:"Dealership"},{default:G(()=>[T(p,{id:"dealership_id",name:"dealership_id",modelValue:t.form.dealership_id,"onUpdate:modelValue":r[3]||(r[3]=S=>t.form.dealership_id=S),label:s.Dealership,loading:t.state.isLoadingDealerships,options:t.filteredDealerships,disabled:t.state.isLoadingDealerships||!e.filterDealerships,placeholder:"(ALL)",searchable:!0},null,8,["modelValue","label","loading","options","disabled"])]),_:1})]),B("div",_C,[T(b,{label:"Cut-Off Date",isRequired:!0},{default:G(()=>[T(p,{id:"payroll_date",modelValue:t.form.payroll_date,"onUpdate:modelValue":r[4]||(r[4]=S=>t.form.payroll_date=S),loading:t.state.isLoadingPayrollDates,options:t.payroll_dates,disabled:t.state.isLoadingPayrollDates||!t.payroll_dates.length},null,8,["modelValue","loading","options","disabled"]),t.errors.payroll_date?(re(),Le("span",vC,Hr(t.errors.payroll_date),1)):me("",!0)]),_:1})]),t.form.payroll_date?(re(),Le("div",wC,[T(b,{class:"rounded-md"},{default:G(()=>[B("p",xC,"Payroll date : "+Hr(t.form.payroll_date),1)]),_:1})])):me("",!0)]),B("div",CC,[B("div",FC,[T(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),this.rowData.length>0?(re(),Le("div",DC,[B("div",AC,[B("button",{class:"btn btn-sm btn-dark mb-2",icon:"heroicons-outline:download",onClick:r[6]||(r[6]=(...S)=>e.exportToCSV&&e.exportToCSV(...S))},"Export csv")]),T(w,{rowData:t.rowData,columnDefs:t.colDefs,class:"ag-theme-alpine",style:{width:"100%",height:"400px"},groupIncludeFooter:!0,groupIncludeTotalFooter:!0,animateRows:!0,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","onGridReady"])])):me("",!0)],64)}const EC=Et(uC,[["render",SC],["__scopeId","data-v-fd07b251"]]);const TC=ir,RC=yr,kC=es,LC=tt,MC=Cf,OC=Fr,PC={components:{Layout:Yt,Yup:Df,FormGroup:Zt,Multiselect:zt,SubmitButton:Ut,CompanyService:TC,DealershipService:RC,DepartmentService:kC,PayrollService:MC,AgGridVue:qt,Loading:Wt},data(){return{finalData:[],dealershipsOptions:[],companiesOptions:[],filteredDealerships:[],payroll_dates:[],payrollDateOptions:[],dealershipPosting:[],employeeOptions:[],form:{dealership_id:null,payroll_date:null,employee_id:null,modules:20,type:null},moduleTypes:[{value:1,label:"Leave"},{value:2,label:"OB"},{value:3,label:"Overtime"},{value:4,label:"Time Adjustment"},{value:5,label:"Change Schedule"},{value:6,label:"Offset"}],errors:{selectedCompanyId:"",payroll_date:"",type:""},state:{isLoadingDealerships:!1,isLoadingCompanies:!1,isLoadingPayrollDates:!1,isGenerating:!1,isSubmiting:!1,fetchingPayrollDates:!1},pinnedTopRowData:[],pinnedBottomRowData:[],colDefs:[],rowData:[]}},watch:{},methods:{onGridReady(s){this.gridApi=s.api,this.gridColumnApi=s.columnApi,this.updateTotalHoursRow()},moduleColumns(s){this.colDefs=[...s]},ModuleLabel(){const s=this.moduleTypes.find(r=>r.value===this.form.type);return s?s.label:"Select Module"},calculateTotalHours(){return this.rowData.length===0?0:this.rowData.reduce((s,r)=>s+(r.hours||0),0)},async fetchEmployees(){this.state.isLoadingEmployees=!0,await OC.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employeeOptions=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)}),this.state.isLoadingEmployees=!1},async fetchPayrollDates(){this.state.fetchingPayrollDates=!0,await js.fetchAttendancePosted().then(s=>{if(s.status===200){console.log(s);const r=new Map;s.data.forEach(o=>{r.has(o.payroll_date)||r.set(o.payroll_date,{value:o.payroll_date,label:o.start_date?`${o.payroll_date} ( ${this.$formatDate(o.start_date)} to ${this.$formatDate(o.end_date)} )`:o.payroll_date})}),this.payrollDateOptions=Array.from(r.values())}}).catch(s=>{console.error(s)}).finally(()=>{this.state.fetchingPayrollDates=!1})},async fetchCompany(){this.form.company_id=null,this.state.isLoadingCompanies=!0,console.log("payroll date",this.form.payroll_date);try{const s=await js.fetchCompanyAttendancePosted({payroll_date:this.form.payroll_date});s.status==200?this.companiesOptions=s.data.map(r=>({value:r.id,label:r.name,reference_no:r.attendance_posting[0].reference_no})):console.warn("Enexpected response status : ",s.status)}catch(s){console.error("Error fetching companies",s.message)}finally{this.state.isLoadingCompanies=!1}},async fetchDealerships(){this.form.dealership_id=null,this.state.isLoadingDealerships=!0,console.log("payroll date",this.form.payroll_date);try{const s=await js.fetchDealerAttendancePosted({payroll_date:this.form.payroll_date});s.status==200?(console.log("dealer res",s.data),this.dealershipsOptions=s.data.map(r=>({value:r.id,label:r.name,reference_no:r.attendance_posting[0].reference_no}))):console.warn("Enexpected response status : ",s.status)}catch(s){console.error("Error fetching dealerships",s.message)}finally{this.state.isLoadingDealerships=!1}},async fetchEmployee(s){this.state.isLoadingEmployees=!0,console.log("reference no",s);try{const r=await js.fetchEmployeeAttendancePosted({reference_no:s});r.status===200?(console.log("Employee",r.data),this.employeeOptions=r.data.map(o=>({value:o.employee_id,label:o.lastname+", "+o.firstname}))):console.warn("Unexpected response status: ",r.status)}catch(r){console.error("Error fetching employees",r.message)}finally{this.state.isLoadingEmployees=!1}},async submitForm(){if(this.resetErrors(),!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Rr().shape({payroll_date:wf().nullable().required("Payroll Date date is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{await this.fetchAttendanceData(),console.log("Fetched Attendance Data:",this.finalData),this.generatePDF()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},async fetchAttendanceData(){try{const s=this.dealershipsOptions.find(t=>t.value===this.form.dealership_id);s&&(this.form.reference_no=s.reference_no,this.fetchEmployee(s.reference_no));const o=(await LC.GenerateAttendancePostingReport(this.form)).data.attendance||{};let i=Object.values(o);i&&(this.employee={emp_no:i.emp_no,name:i.name}),this.finalData=Object.values(o)}catch(s){throw console.error("Error fetching attendance data:",s),s}},generatePDF(){if(console.log("finalData",this.finalData),!this.finalData.length){this.$swal.fire({title:"No Data Available",text:"Please generate a report first.",icon:"warning",timer:3e3});return}const s=new Jb({orientation:"landscape",unit:"mm",format:"a4"}),r=10;let o=20;const i=[["Day","Date","Shift","Time In/Out","Work","Late","Under","ND","OT","Absent","Leave","Type"]],t={0:{cellWidth:13},1:{cellWidth:25},2:{cellWidth:40},3:{cellWidth:40},4:{cellWidth:15},5:{cellWidth:13},6:{cellWidth:17},7:{cellWidth:13},8:{cellWidth:13},9:{cellWidth:20},10:{cellWidth:17},11:{cellWidth:15}};this.finalData.forEach((e,u)=>{u!==0&&s.addPage(),s.setFontSize(14),s.setTextColor(20,50,120),s.text("Attendance Sheet",r,15),s.setFontSize(10),s.setTextColor(0,0,0),s.text(`${e.start_date} - ${e.end_date}`,r,20),s.text(`ID: ${e.employee_id}`,r,27),s.text(`Name: ${e.name+" ("+e.payroll_rate+")"}`,r,32),o=35;const p={duty_hours:Array.isArray(e.duty_hours)?e.duty_hours.reduce((_,w)=>_+(parseFloat(w)||0),0):0,tardiness_mins:Array.isArray(e.tardiness_mins)?e.tardiness_mins.reduce((_,w)=>_+parseFloat(w||0),0).toFixed(2):"0.00",undertime_mins:Array.isArray(e.undertime_mins)?e.undertime_mins.reduce((_,w)=>_+parseFloat(w||0),0).toFixed(2):"0.00",nd_hrs:Array.isArray(e.nd_hrs)?e.nd_hrs.reduce((_,w)=>_+(parseFloat(w)||0),0):0,overtime_hrs:Array.isArray(e.overtime_hrs)?e.overtime_hrs.reduce((_,w)=>_+(parseFloat(w)||0),0):0,absent_days:Array.isArray(e.absent_days)?e.absent_days.reduce((_,w,S)=>{let A=e.payroll_rate==="Daily"&&parseFloat(w)>=8?0:parseFloat(w)||0;return _+A},0):0,leave_hrs:Array.isArray(e.leave_hrs)?e.leave_hrs.reduce((_,w)=>_+(parseFloat(w)||0),0):0},b=((e==null?void 0:e.day)||[]).map((_,w)=>{var S,A,E,M,N,q,U,ee,ie,j,H,ne,W;return[_||"",((S=e==null?void 0:e.date)==null?void 0:S[w])||"",((A=e==null?void 0:e.shift)==null?void 0:A[w])||"",((E=e==null?void 0:e.time_in_out)==null?void 0:E[w])||"",((M=e==null?void 0:e.duty_hours)==null?void 0:M[w])||"",((N=e==null?void 0:e.tardiness_mins)==null?void 0:N[w])||"",((q=e==null?void 0:e.undertime_mins)==null?void 0:q[w])||"",((U=e==null?void 0:e.nd_hrs)==null?void 0:U[w])||"",((ee=e==null?void 0:e.overtime_hrs)==null?void 0:ee[w])||"",e.payroll_rate=="Daily"&&parseFloat((ie=e==null?void 0:e.absent_days)==null?void 0:ie[w])>=8?"0.0":((j=e==null?void 0:e.absent_days)==null?void 0:j[w])||"",e.payroll_rate=="Monthly"&&parseFloat((H=e==null?void 0:e.absent_days)==null?void 0:H[w])>=8?"":((ne=e==null?void 0:e.leave_hrs)==null?void 0:ne[w])||"",((W=e==null?void 0:e.type)==null?void 0:W[w])||""]});b.push(["","","","Subtotal",p.duty_hours.toFixed(2),parseFloat(p.tardiness_mins).toFixed(2),parseFloat(p.undertime_mins).toFixed(2),p.nd_hrs.toFixed(2),p.overtime_hrs.toFixed(2),p.absent_days.toFixed(2),p.leave_hrs.toFixed(2),""]),console.log("attttttt",e==null?void 0:e.leave_hrs),s.autoTable({head:i,body:b,startY:o,styles:{fontSize:10,cellPadding:2,minCellHeight:6},theme:"grid",margin:{left:r,right:10},columnStyles:t,headStyles:{fillColor:[20,150,120],textColor:[255,255,255],fontSize:10},bodyStyles:{valign:"middle",fontSize:9},didParseCell:function(_){_.row.index===b.length-1&&(_.cell.styles.fontStyle="bold",_.cell.styles.fillColor=[230,230,230])}})}),s.save("Attendance_Sheet.pdf")},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},onGridReady(s){this.gridApi=s.api,this.gridColumnApi=s.columnApi},getCompanyName(s){console.log("company id : "+s);const r=this.companies.find(o=>o.value===s);return this.compnayName=r?r.label:"Unknown Company",r?r.label:"Unknown Company"},getDealershipName(s){const r=this.filteredDealerships.find(o=>o.value===s);return this.dealershipName=r?r.label:"Unknown Dealership",r?r.label:"Unknown Dealership"},getPayrollDates(s){console.log("getPayrollDates executed with ID:",s);const r=this.payrollDates.find(o=>o.payroll_date===s);return r?r.date:"N/A"},resetErrors(){this.errors={month:""}}},mounted(){this.fetchPayrollDates()},watch:{"form.payroll_date":{handler(s){this.fetchDealerships(s),this.fetchCompany(s)},immediate:!0},"form.dealership_id":{handler(s){if(s){const r=this.dealershipsOptions.find(o=>o.value===s);r&&this.fetchEmployee(r.reference_no)}},immediate:!1}}},NC={class:"grid grid-cols-3 gap-2"},IC={class:"relative"},VC={class:"flex justify-between items-center mt-2"},BC={class:"flex gap-1 justify-end"},UC={key:0,class:"mt-3"},zC={class:"flex gap-1 justify-end"};function GC(s,r,o,i,t,e){const u=Y("Loading"),p=Y("Multiselect"),b=Y("FormGroup"),_=Y("SubmitButton"),w=Y("ag-grid-vue");return re(),Le(Cr,null,[B("form",{onSubmit:r[4]||(r[4]=St((...S)=>e.submitForm&&e.submitForm(...S),["prevent"])),class:""},[t.state.isGenerating?(re(),Me(u,{key:0,text:"Processing"})):me("",!0),B("div",NC,[T(b,{label:"Payroll Date",class:"w-full"},{default:G(()=>[B("div",IC,[T(p,{modelValue:t.form.payroll_date,"onUpdate:modelValue":r[0]||(r[0]=S=>t.form.payroll_date=S),"close-on-select":!0,searchable:!0,id:"payroll_date",options:t.payrollDateOptions,placeholder:t.state.fetchingPayrollDates?"Loading data":"",disabled:t.state.fetchingPayrollDates,loading:t.state.fetchingPayrollDates},null,8,["modelValue","options","placeholder","disabled","loading"])])]),_:1}),T(b,{label:"Company",isRequired:!0},{default:G(()=>[T(p,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[1]||(r[1]=S=>t.form.company_id=S),options:t.companiesOptions,class:"form-control w-full h-[48px] mt-2",loading:t.state.isLoadingCompanies},null,8,["modelValue","options","loading"])]),_:1}),T(b,{label:"Dealership"},{default:G(()=>[T(p,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealership_id,"onUpdate:modelValue":r[2]||(r[2]=S=>t.form.dealership_id=S),disabled:t.state.isLoadingDealerships,options:t.dealershipsOptions,loading:t.state.isLoadingDealerships,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","disabled","options","loading"])]),_:1}),T(b,{label:"Employee"},{default:G(()=>[T(p,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[3]||(r[3]=S=>t.form.employee_id=S),disabled:t.state.isLoadingEmployee,options:t.employeeOptions,loading:t.state.isLoadingEmployees,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","disabled","options","loading"])]),_:1})]),B("div",VC,[B("div",BC,[T(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),B("pre",null," "+Hr(t.finalData)+` `,1),this.rowData.length>0?(re(),Le("div",UC,[B("div",zC,[B("button",{class:"btn btn-sm btn-dark mb-2",icon:"heroicons-outline:download",onClick:r[5]||(r[5]=(...S)=>e.exportToCSV&&e.exportToCSV(...S))},"Export csv")]),T(w,{rowData:t.rowData,columnDefs:t.colDefs,class:"ag-theme-alpine",style:{width:"100%",height:"400px"},groupIncludeFooter:!0,groupIncludeTotalFooter:!0,animateRows:!0,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","onGridReady"])])):me("",!0)],64)}const jC=Et(PC,[["render",GC],["__scopeId","data-v-81a1cab3"]]);const WC={setup(){},props:{setData:Object},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],leaveType:[],companies:[],jobtitles:[],dealers:[],jobgrades:[],jobclassifications:[],groups:[],divisions:[],departments:[],sections:[],units:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:3,columns:[],setData:this.setData,position_id:"",company_id:"",dealer_id:"",job_grade_id:"",job_classification_id:"",group_id:"",division_id:"",department_id:"",section_id:"",date_hired_from:"",date_hired_to:""},included:{position_id:!1,company_id:!1,dealer_id:!1,job_grade_id:!1,job_classification_id:!1,group_id:!1,division_id:!1,department_id:!1,section_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isLeaveTypeLoading:!1,isJobTitleLoading:!1,isCompanyLoading:!1,isDealerLoading:!1,isJobGradeLoading:!1,isJobClassificationLoading:!1,isGroupLoading:!1,isDivisionLoading:!1,isDepartmentLoading:!1,isSectionsLoading:!1,isUnitLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(s){try{await Rr().shape({date_hired_from:Dt().required("Date Hired From is required"),date_hired_to:Dt().required("Date Hired To is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:`Are you sure you want to ${s=="save"?"save":"generate"} this report`,text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No",html:`${s=="save"?`<input id="swal-input" style="width: 100%; height: 40px; padding: 8px; border: 1px solid #ced4da; border-radius: 4px;" placeholder="Report Title" />`:""}`,preConfirm:()=>{const o=document.getElementById("swal-input").value;return o?this.form.report_name=o:(this.$swal.showValidationMessage("The title field is required"),!1)}}).then(o=>{o.value&&(s=="generate"?this.saveRecord():s=="save"&&this.saveGeneratedReport())})}catch(r){if(r instanceof jt){const o={};r.inner.forEach(i=>{o[i.path]=i.message}),this.errors=o}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveGeneratedReport(){this.hasValue=!1,console.log("form list",this.form),await tt.saveReport(this.form).then(s=>{if(s.status==200){this.finalData=s.data.data,console.log("result data",this.finalData);const r=this.reportModuleColums.map(i=>({id:null,report_module_id:"3",name:i.label,slug:i.value})),o=s.data.data.map(i=>{const t={employee_id:i.employee_id||null,fullname:i.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=i[u]||null}),t});this.resultData=o,console.log("Mapped Data",o),this.colDefs=[{field:"employee_id",filter:!0,floatingFilter:!0},{field:"fullname",filter:!0,floatingFilter:!0},...this.form.columns.map(i=>{const t=this.reportModuleColums.find(e=>e.value===i);return{field:t?t.label:i,filter:!0,floatingFilter:!0}})],this.items=this.resultData,this.hasValue=!0}}).catch(s=>{console.log(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async saveRecord(){this.hasValue=!1,await tt.fetchGeneratedReport(this.form).then(s=>{if(s.status==200){this.finalData=s.data.data,console.log("result data",this.finalData);const r=this.reportModuleColums.map(i=>({id:null,report_module_id:"3",name:i.label,slug:i.value})),o=s.data.data.map(i=>{const t={employee_id:i.employee_id||null,fullname:i.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=i[u]||null}),t});this.resultData=o,console.log("Mapped Data",o),this.colDefs=[{field:"employee_id",filter:!0,floatingFilter:!0},{field:"fullname",filter:!0,floatingFilter:!0},...this.form.columns.map(i=>{const t=this.reportModuleColums.find(e=>e.value===i);return{field:t?t.label:i,filter:!0,floatingFilter:!0}})],this.items=this.resultData,this.hasValue=!0}}).catch(s=>{console.log(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchJobTitle(){this.state.isJobTitleLoading=!0;try{const s=await Rs.fetchRecords();s.status===200&&(this.jobtitles=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isJobTitleLoading=!1)}catch(s){console.log(s)}},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchJobGrade(){this.state.isJobGradeLoading=!0;try{const s=await py.fetchRecords();s.status===200&&(this.jobgrades=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isJobGradeLoading=!1)}catch(s){console.log(s)}},async fetchJobClassification(){this.state.isJobClassificationLoading=!0;try{const s=await _l.fetchRecords();s.status===200&&(this.jobclassifications=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isJobClassificationLoading=!1)}catch(s){console.log(s)}},async fetchGrade(){this.state.isGroupLoading=!0;try{const s=await hy.fetchRecords();s.status===200&&(this.groups=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isGroupLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await es.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchSection(){this.state.isSectionsLoading=!0;try{const s=await xm.fetchRecords();s.status===200&&(this.sections=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isSectionsLoading=!1)}catch(s){console.log(s)}},async fetchUnit(){this.state.isUnitLoading=!0;try{const s=await my.fetchRecords();s.status===200&&(this.units=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isUnitLoading=!1)}catch(s){console.log(s)}},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await tt.fetchReportModuleColumnRecord(3);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},onSelect(s){this.updateIncludedFlag(s,!0)},onRemove(s){this.updateIncludedFlag(s,!1)},updateIncludedFlag(s,r){const o={position_id:"position_id",company_id:"company_id",dealer_id:"dealer_id",job_grade_id:"job_grade_id",job_classification_id:"job_classification_id",group_id:"group_id",division_id:"division_id",department_id:"department_id",section_id:"section_id"};o[s]&&(this.included[o[s]]=r)}},mounted(){this.fetchCompany(),this.fetchDealership(),this.fetchJobGrade(),this.fetchJobClassification(),this.fetchGrade(),this.fetchDivision(),this.fetchDepartment(),this.fetchSection(),this.fetchUnit(),this.fetchJobTitle(),this.fetchReportModuleColumn()},watch:{"form.columns"(s){if(s!=null){const r={position_id:"position_id",company_id:"company_id",dealer_id:"dealer_id",job_grade_id:"job_grade_id",job_classification_id:"job_classification_id",group_id:"group_id",division_id:"division_id",department_id:"department_id",section_id:"section_id"};for(const[o,i]of Object.entries(r))this.form.columns.includes(o)?this.included[i]=!0:this.included[i]=!1}}}},HC={class:"grid grid-cols-1 gap-2"},YC={class:"grid grid-cols-5 gap-2"},qC={class:"grid grid-cols-2 gap-2"},KC={class:"flex justify-between items-center"},JC={class:"flex gap-2 justify-end"};function XC(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("flat-pickr"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card");return re(),Le(Cr,null,[B("form",{onSubmit:r[15]||(r[15]=St((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[B("div",HC,[T(p,{label:"Columns",isRequired:!0},{default:G(()=>[T(u,{searchable:!0,modelValue:t.form.columns,"onUpdate:modelValue":r[0]||(r[0]=E=>t.form.columns=E),options:t.reportModuleColums,class:"form-multiselect w-full mt-2",loading:t.state.isReportModuleColumnLoading,mode:"tags","custom-label":e.columnLabel,"close-on-select":!1,onSelect:e.onSelect,onRemove:e.onRemove,placeholder:"Select Columns"},null,8,["modelValue","options","loading","custom-label","onSelect","onRemove"]),B("button",{type:"button",class:"mt-2 text-blue-600",onClick:r[1]||(r[1]=(...E)=>e.toggleSelectAllColumns&&e.toggleSelectAllColumns(...E))},Hr(e.isAllColumnsSelected?"Deselect All":"Select All"),1)]),_:1})]),B("div",YC,[t.included.position_id?(re(),Me(p,{key:0,label:"Position"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[2]||(r[2]=E=>t.form.position_id=E),options:t.jobtitles,class:"form-control w-full h-[48px] mt-2",loading:t.state.isJobTitleLoading},null,8,["modelValue","options","loading"])]),_:1})):me("",!0),t.included.company_id?(re(),Me(p,{key:1,label:"Company"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[3]||(r[3]=E=>t.form.company_id=E),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1})):me("",!0),t.included.dealer_id?(re(),Me(p,{key:2,label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[4]||(r[4]=E=>t.form.dealer_id=E),options:t.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1})):me("",!0),t.included.job_grade_id?(re(),Me(p,{key:3,label:"Job Grade"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.job_grade_id,"onUpdate:modelValue":r[5]||(r[5]=E=>t.form.job_grade_id=E),options:t.jobgrades,class:"form-control w-full h-[48px] mt-2",loading:t.state.isJobGradeLoading},null,8,["modelValue","options","loading"])]),_:1})):me("",!0),t.included.job_classification_id?(re(),Me(p,{key:4,label:"Job Classification"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.job_classification_id,"onUpdate:modelValue":r[6]||(r[6]=E=>t.form.job_classification_id=E),options:t.jobclassifications,class:"form-control w-full h-[48px] mt-2",loading:t.state.isJobClassificationLoading},null,8,["modelValue","options","loading"])]),_:1})):me("",!0),t.included.group_id?(re(),Me(p,{key:5,label:"Group"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.group_id,"onUpdate:modelValue":r[7]||(r[7]=E=>t.form.group_id=E),options:t.groups,class:"form-control w-full h-[48px] mt-2",loading:t.state.isGroupLoading},null,8,["modelValue","options","loading"])]),_:1})):me("",!0),t.included.division_id?(re(),Me(p,{key:6,label:"Division"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[8]||(r[8]=E=>t.form.division_id=E),options:t.divisions,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1})):me("",!0),t.included.department_id?(re(),Me(p,{key:7,label:"Department"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[9]||(r[9]=E=>t.form.department_id=E),options:t.departments,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1})):me("",!0),t.included.section_id?(re(),Me(p,{key:8,label:"Section"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.section_id,"onUpdate:modelValue":r[10]||(r[10]=E=>t.form.section_id=E),options:t.sections,class:"form-control w-full h-[48px] mt-2",loading:t.state.isSectionsLoading},null,8,["modelValue","options","loading"])]),_:1})):me("",!0)]),B("div",qC,[T(p,{label:"Date Hired From",isRequired:!0},{default:G(()=>[T(b,{modelValue:t.form.date_hired_from,"onUpdate:modelValue":r[11]||(r[11]=E=>t.form.date_hired_from=E),class:"form-control h-[48px]",id:"date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),T(p,{label:"Date Hired To",isRequired:!0},{default:G(()=>[T(b,{modelValue:t.form.date_hired_to,"onUpdate:modelValue":r[12]||(r[12]=E=>t.form.date_hired_to=E),class:"form-control h-[48px]",id:"date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),B("div",KC,[t.hasValue?(re(),Me(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):me("",!0),B("div",JC,[T(w,{btnClass:"text-white bg-green-500 hover:ring ring-green-600 ring-offset-1 py-2 px-3",onClick:r[13]||(r[13]=E=>e.submitForm("save")),text:"Save Generated Report"}),T(w,{onClick:r[14]||(r[14]=E=>e.submitForm("generate")),text:"Generate"})])])],32),t.hasValue?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(S,{ref:"agGrid",rowData:s.items,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):me("",!0),r[16]||(r[16]=B("div",null,null,-1))],64)}const QC=Et(WC,[["render",XC],["__scopeId","data-v-478f492d"]]);const ZC={props:["finalData","form"],mounted(){Da.register(ko,To,Eo,si,Fl,Dl,Cl),this.createChart()},methods:{createChart(){const s=document.getElementById("reportChart").getContext("2d");this.chartInstance&&this.chartInstance.destroy();const r=this.finalData.reduce((t,e)=>{const u=e.name||"Unknown",p=e["Date From"]||"Unknown Date",b=parseFloat(e.days)||0,_=`${u} (${p})`;return t[_]||(t[_]=0),t[_]+=b,t},{}),o=Object.keys(r),i=Object.values(r);this.chartInstance=new Da(s,{type:"bar",data:{labels:o,datasets:[{label:"Leave Days",data:i,backgroundColor:"rgba(75, 192, 192, 0.6)",borderColor:"rgba(75, 192, 192, 1)",borderWidth:1}]},options:{responsive:!0,scales:{y:{beginAtZero:!0,title:{display:!0,text:"Number of Leave Days"}},x:{title:{display:!0,text:"Employees (Date)"}}}}})}}};function $C(s,r,o,i,t,e){return re(),Le("div",null,r[0]||(r[0]=[B("canvas",{id:"reportChart"},null,-1)]))}const e3=Et(ZC,[["render",$C],["__scopeId","data-v-f3f7ded1"]]),t3={props:{modelValue:{type:Object,required:!0},min:{type:Number,default:0},max:{type:Number,default:2e3}},data(){return{internalMin:this.modelValue.min,internalMax:this.modelValue.max}},watch:{modelValue:{handler(s){this.internalMin=s.min,this.internalMax=s.max},deep:!0}},methods:{updateRange(){this.$emit("update:modelValue",{min:this.internalMin,max:this.internalMax})}}},r3={for:"min-price"},s3=["min","max"],a3={for:"max-price"},o3=["min","max"];function i3(s,r,o,i,t,e){return re(),Le("div",null,[B("label",r3,"Min: "+Hr(o.modelValue.min),1),$o(B("input",{type:"range",min:o.min,max:o.max,"onUpdate:modelValue":r[0]||(r[0]=u=>t.internalMin=u),onInput:r[1]||(r[1]=(...u)=>e.updateRange&&e.updateRange(...u))},null,40,s3),[[nf,t.internalMin]]),B("label",a3,"Max: "+Hr(o.modelValue.max),1),$o(B("input",{type:"range",min:o.min,max:o.max,"onUpdate:modelValue":r[2]||(r[2]=u=>t.internalMax=u),onInput:r[3]||(r[3]=(...u)=>e.updateRange&&e.updateRange(...u))},null,40,o3),[[nf,t.internalMax]])])}const wg=Et(t3,[["render",i3]]);const n3={setup(){},components:{PriceRange:wg,AgGridVue:qt,ActionCellRenderer:dr,LeaveReportChart:e3,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,payrollRateOptions:[{label:"Monthly",value:"Monthly"},{label:"Daily",value:"Daily"}],paymentTypeOptions:[{label:"Cut-Off",value:"Cut-Off"},{label:"Monthly",value:"Monthly"}],priceRange:{min:0,max:5e5},gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],leaveType:[],companies:[],form:{modules:4,columns:[],salary_rate:"",payroll_rate:"",payment_type:"",salary_effectivity_date:""},included:{leave_id:!1,salary_rate:!1,payroll_rate:!1,payment_type:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isLeaveTypeLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{handlePriceRangeUpdate(s){this.priceRange=s},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{await Rr().shape({salary_effectivity_date:Dt().required("Effeectivity Date is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{console.log("eyow"),this.saveRecord()})}catch(s){if(s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await tt.fetchGeneratedReport(this.form).then(s=>{if(s.status==200){this.finalData=s.data.data,console.log("result data",this.finalData);const r=this.reportModuleColums.map(i=>({id:null,report_module_id:"1",name:i.label,slug:i.value})),o=s.data.data.map(i=>{const t={employee_id:i.employee_id||null,fullname:i.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=i[u]||null}),t});this.resultData=o,console.log("Mapped Data",o),this.colDefs=[{field:"employee_id",filter:!0,floatingFilter:!0},{field:"fullname",filter:!0,floatingFilter:!0},...this.form.columns.map(i=>{const t=this.reportModuleColums.find(e=>e.value===i);return{field:t?t.label:i,filter:!0,floatingFilter:!0}})],this.items=this.resultData,this.hasValue=!0}}).catch(s=>{console.log(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await tt.fetchReportModuleColumnRecord(4);s.status===200&&(console.log(s.data),this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},onSelect(s){s==="salary_rate"&&(this.fetchLeaveType(),this.included.salary_rate=!0),s==="payroll_rate"&&(this.included.payroll_rate=!0),s==="payment_type"&&(this.included.payment_type=!0)},onRemove(s){s==="salary_rate"&&(this.included.salary_rate=!1),s==="payroll_rate"&&(this.included.payroll_rate=!1),s==="payment_type"&&(this.included.payment_type=!1)}},mounted(){this.fetchReportModuleColumn()},watch:{"form.columns":function(s){s!=null&&(this.form.columns.includes("salary_rate")?this.included.salary_rate=!0:this.included.salary_rate=!1,this.form.columns.includes("payroll_rate")?this.included.payroll_rate=!0:this.included.payroll_rate=!1,this.form.columns.includes("payment_type")?this.included.payment_type=!0:this.included.payment_type=!1)}}},l3={class:"grid grid-cols-1 gap-2"},c3={class:"grid grid-cols-5 gap-2"},f3={class:"grid grid-cols-2 gap-2"},u3={class:"flex justify-between items-center"},d3={class:"flex gap-1 justify-end"};function h3(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("PriceRange"),_=Y("flat-pickr"),w=Y("Button"),S=Y("SubmitButton"),A=Y("ag-grid-vue"),E=Y("Card"),M=Y("LeaveReportChart");return re(),Le(Cr,null,[B("form",{onSubmit:r[6]||(r[6]=St((...N)=>s.confirmSubmit&&s.confirmSubmit(...N),["prevent"])),class:"space-y-4"},[r[7]||(r[7]=B("div",{class:"grid grid-cols-1 gap-2"},null,-1)),B("div",l3,[T(p,{label:"Columns",isRequired:!0},{default:G(()=>[T(u,{searchable:!0,modelValue:t.form.columns,"onUpdate:modelValue":r[0]||(r[0]=N=>t.form.columns=N),options:t.reportModuleColums,class:"form-control w-full h-[60px] mt-2",loading:t.state.isReportModuleColumnLoading,mode:"tags","custom-label":e.columnLabel,"close-on-select":!1,onSelect:e.onSelect,onRemove:e.onRemove,placeholder:"Select Columns"},null,8,["modelValue","options","loading","custom-label","onSelect","onRemove"]),B("button",{type:"button",class:"mt-2 text-blue-600",onClick:r[1]||(r[1]=(...N)=>e.toggleSelectAllColumns&&e.toggleSelectAllColumns(...N))},Hr(e.isAllColumnsSelected?"Deselect All":"Select All"),1)]),_:1})]),B("div",c3,[t.included.payroll_rate?(re(),Me(p,{key:0,label:"Payroll Rate"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.payroll_rate,"onUpdate:modelValue":r[2]||(r[2]=N=>t.form.payroll_rate=N),options:t.payrollRateOptions,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","options"])]),_:1})):me("",!0),t.included.salary_rate?(re(),Me(p,{key:1,label:"Salary Rate"},{default:G(()=>[T(b,{min:0,max:5e5,"onUpdate:priceRange":e.handlePriceRangeUpdate,modelValue:t.form.salary_rate,"onUpdate:modelValue":r[3]||(r[3]=N=>t.form.salary_rate=N)},null,8,["onUpdate:priceRange","modelValue"])]),_:1})):me("",!0),t.included.payment_type?(re(),Me(p,{key:2,label:"Payment Type"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.payment_type,"onUpdate:modelValue":r[4]||(r[4]=N=>t.form.payment_type=N),options:t.paymentTypeOptions,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","options"])]),_:1})):me("",!0)]),B("div",f3,[T(p,{label:"Effectivity Date",isRequired:!0},{default:G(()=>[T(_,{modelValue:t.form.salary_effectivity_date,"onUpdate:modelValue":r[5]||(r[5]=N=>t.form.salary_effectivity_date=N),class:"form-control h-[48px]",id:"date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),B("div",u3,[t.hasValue?(re(),Me(w,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):me("",!0),B("div",d3,[T(S,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(E,{key:0,class:"p-2"},{default:G(()=>[T(A,{ref:"agGrid",rowData:s.items,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):me("",!0),B("div",null,[t.form.modules==1&&t.finalData.length!=0?(re(),Me(M,{key:0,finalData:t.finalData,form:t.form},null,8,["finalData","form"])):me("",!0)])],64)}const p3=Et(n3,[["render",h3],["__scopeId","data-v-74bf07da"]]);const m3={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],leaveType:[],companies:[],jobtitles:[],dealers:[],jobgrades:[],jobclassifications:[],groups:[],divisions:[],departments:[],sections:[],units:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:5,company_id:"",dealer_id:"",columns:[]},included:{position_id:!1,company_id:!1,dealer_id:!1,job_grade_id:!1,job_classification_id:!1,group_id:!1,division_id:!1,department_id:!1,section_id:!1,unit_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isLeaveTypeLoading:!1,isJobTitleLoading:!1,isCompanyLoading:!1,isDealerLoading:!1,isJobGradeLoading:!1,isJobClassificationLoading:!1,isGroupLoading:!1,isDivisionLoading:!1,isDepartmentLoading:!1,isSectionsLoading:!1,isUnitLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await tt.fetchGeneratedReport(this.form).then(s=>{if(s.status==200){this.finalData=s.data.data,console.log("result data",this.finalData);const r=this.reportModuleColums.map(i=>({id:null,report_module_id:"3",name:i.label,slug:i.value})),o=s.data.data.map(i=>{const t={employee_id:i.employee_id||null,fullname:i.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=i[u]||null}),t});this.resultData=o,console.log("Mapped Data",o),this.colDefs=[{field:"employee_id",filter:!0,floatingFilter:!0},{field:"fullname",filter:!0,floatingFilter:!0},...this.form.columns.map(i=>{const t=this.reportModuleColums.find(e=>e.value===i);return{field:t?t.label:i,filter:!0,floatingFilter:!0}})],this.items=this.resultData,this.hasValue=!0}}).catch(s=>{console.log(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await tt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},onSelect(s){this.updateIncludedFlag(s,!0)},onRemove(s){this.updateIncludedFlag(s,!1)},updateIncludedFlag(s,r){const o={position_id:"position_id",company_id:"company_id",dealer_id:"dealer_id",job_grade_id:"job_grade_id",job_classification_id:"job_classification_id",group_id:"group_id",division_id:"division_id",department_id:"department_id",section_id:"section_id",unit_id:"unit_id"};o[s]&&(this.included[o[s]]=r)}},mounted(){this.fetchReportModuleColumn(),this.fetchCompany(),this.fetchDealership()},watch:{"form.columns"(s){if(s!=null){const r={position_id:"position_id",company_id:"company_id",dealer_id:"dealer_id",job_grade_id:"job_grade_id",job_classification_id:"job_classification_id",group_id:"group_id",division_id:"division_id",department_id:"department_id",section_id:"section_id",unit_id:"unit_id"};for(const[o,i]of Object.entries(r))this.form.columns.includes(o)?this.included[i]=!0:this.included[i]=!1}}}},g3={class:"grid grid-cols-1 gap-2"},b3={class:"grid grid-cols-2 gap-2"},y3={class:"flex justify-between items-center"},_3={class:"flex gap-1 justify-end"};function v3(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("Button"),_=Y("SubmitButton"),w=Y("ag-grid-vue"),S=Y("Card");return re(),Le(Cr,null,[B("form",{onSubmit:r[4]||(r[4]=St((...A)=>s.confirmSubmit&&s.confirmSubmit(...A),["prevent"])),class:"space-y-4"},[r[5]||(r[5]=B("div",{class:"grid grid-cols-1 gap-2"},null,-1)),B("div",g3,[T(p,{label:"Columns",isRequired:!0},{default:G(()=>[T(u,{searchable:!0,modelValue:t.form.columns,"onUpdate:modelValue":r[0]||(r[0]=A=>t.form.columns=A),options:t.reportModuleColums,class:"form-control w-full h-[60px] mt-2",loading:t.state.isReportModuleColumnLoading,mode:"tags","custom-label":e.columnLabel,"close-on-select":!1,onSelect:e.onSelect,onRemove:e.onRemove,placeholder:"Select Columns"},null,8,["modelValue","options","loading","custom-label","onSelect","onRemove"]),B("button",{type:"button",class:"mt-2 text-blue-600",onClick:r[1]||(r[1]=(...A)=>e.toggleSelectAllColumns&&e.toggleSelectAllColumns(...A))},Hr(e.isAllColumnsSelected?"Deselect All":"Select All"),1)]),_:1})]),B("div",b3,[T(p,{label:"Company"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[2]||(r[2]=A=>t.form.company_id=A),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[3]||(r[3]=A=>t.form.dealer_id=A),options:t.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",y3,[t.hasValue?(re(),Me(b,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):me("",!0),B("div",_3,[T(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(S,{key:0,class:"p-2"},{default:G(()=>[T(w,{ref:"agGrid",rowData:s.items,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):me("",!0),r[6]||(r[6]=B("div",null,null,-1))],64)}const w3=Et(m3,[["render",v3],["__scopeId","data-v-7fd57102"]]);const x3={setup(){},props:{setData:Object,recordData:Object},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:6,columns:[],company_id:"",dealer_id:""},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isCompanyLoading:!1,isDealerLoading:!1}}},computed:{},methods:{async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(s){try{await Rr().shape({company_id:Dt().required("Company is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:`Are you sure you want to ${s=="save"?"save":"generate"} this report?`,text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No",html:`${s=="save"?`<input id="swal-input" style="width: 100%; height: 40px; padding: 8px; border: 1px solid #ced4da; border-radius: 4px;" placeholder="Report Title" />`:""}`,preConfirm:()=>{if(s=="save"){const o=document.getElementById("swal-input").value;return o?this.form.report_name=o:(this.$swal.showValidationMessage("The title field is required"),!1)}}}).then(o=>{o.value&&(s=="generate"?(console.log("done"),this.saveRecord()):s=="save"&&this.saveGeneratedReport())})}catch(r){if(r instanceof jt){const o={};r.inner.forEach(i=>{o[i.path]=i.message}),this.errors=o}this.state.isSaving=!1}},async saveGeneratedReport(){this.state.isSaving=!0;const s=this.gridApi.getDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(p=>p.field!=="actions").map(p=>p.field)});this.hasValue=!1;let r=new FormData;Object.keys(this.form).forEach(p=>{p!=="attachment"&&p!="columns"&&p!="setData"&&r.append(p,this.form[p])});const i=`report-${new Date().toISOString().slice(0,19).replace(/:/g,"-")}.csv`,t=new Blob([s],{type:"text/csv"});r.append("csv_file",t,i),r.append("attachment",i);const e=JSON.parse(JSON.stringify(this.setData));Object.values(this.form.columns).forEach((p,b)=>{r.append(`columns[${b}]`,p)}),Object.entries(e).forEach(([p,b])=>{r.append(`setData[${p}]`,b)}),console.log("setData",this.setData),console.log("setData2",e),await tt.saveReport(r).then(p=>{p.status==201&&(this.$swal.fire({title:"Great!",text:"Record successfully saved.",icon:"success",timer:2e3}),this.state.isSaving=!1)}).catch(p=>{console.log(p),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:p.response.data.message,icon:"error",timer:2e3})})},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await tt.fetchGeneratedReport(this.form).then(s=>{if(s.status==200){this.finalData=s.data.data,console.log("result data",this.finalData);const r=this.reportModuleColums.map(i=>({id:null,report_module_id:"3",name:i.label,slug:i.value})),o=s.data.data.map(i=>{const t={employee_id:i.employee_id||null,fullname:i.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=i[u]||null}),t});this.resultData=o,console.log("Mapped Data",o),this.colDefs=[{field:"employee_id",filter:!0,floatingFilter:!0,flex:3},{field:"fullname",filter:!0,floatingFilter:!0,flex:3},...this.form.columns.map(i=>{const t=this.reportModuleColums.find(e=>e.value===i);return{field:t?t.label:i,filter:!0,floatingFilter:!0}})],this.items=this.resultData,this.hasValue=!0}}).catch(s=>{console.log(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await tt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},columnLabel({label:s}){return s},populateFormFromRecordData(){if(this.recordData&&this.recordData.id)try{const s=JSON.parse(this.recordData.columns||"[]"),r=JSON.parse(this.recordData.filters||"{}");this.form.company_id=r.company_id||null,this.form.dealer_id=r.dealer_id||null,this.recordData.report_name&&(this.form.report_name=this.recordData.report_name)}catch(s){console.error("Error parsing recordData:",s)}}},mounted(){this.fetchReportModuleColumn(),this.recordData&&this.populateFormFromRecordData(),this.fetchCompany(),this.fetchDealership()},watch:{recordData:{handler(s){s&&s.id&&this.populateFormFromRecordData()},immediate:!0,deep:!0}}},C3={class:"grid grid-cols-2 gap-2"},F3={class:"flex justify-between items-center"},D3={class:"flex gap-1 justify-end"};function A3(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("Button"),_=Y("SubmitButton"),w=Y("ag-grid-vue"),S=Y("Card");return re(),Le(Cr,null,[B("form",{onSubmit:r[4]||(r[4]=St((...A)=>s.confirmSubmit&&s.confirmSubmit(...A),["prevent"])),class:"space-y-4"},[r[5]||(r[5]=B("div",{class:"grid grid-cols-1 gap-2"},null,-1)),B("div",C3,[T(p,{label:"Company"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=A=>t.form.company_id=A),options:t.companies,class:"form-multiple w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=A=>t.form.dealer_id=A),options:t.dealers,class:"form-multiple w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",F3,[t.hasValue?(re(),Me(b,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):me("",!0),B("div",D3,[s.items?(re(),Me(_,{key:0,btnClass:"text-white bg-green-500 hover:ring ring-green-600 ring-offset-1 py-2 px-3",onClick:r[2]||(r[2]=A=>e.submitForm("save")),text:"Save Generated Report"})):me("",!0),T(_,{icon:"ic:round-repeat",onClick:r[3]||(r[3]=A=>e.submitForm("generate")),text:"Generate"})])])],32),t.hasValue?(re(),Me(S,{key:0,class:"p-2"},{default:G(()=>[T(w,{ref:"agGrid",rowData:s.items,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):me("",!0),r[6]||(r[6]=B("div",null,null,-1))],64)}const S3=Et(x3,[["render",A3],["__scopeId","data-v-dd3a4d70"]]);const E3={setup(){},props:{setData:Object,recordData:Object},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],employees:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:7,columns:[],employee_id:[],company_id:"",dealer_id:"",start_date:"",end_date:""},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isCompanyLoading:!1,isDealerLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length},activeCompany(){return this.$store.userSettings.getActiveCompany},activeDealer(){return this.$store.userSettings.getActiveDealership}},methods:{populateFormFromRecordData(){if(this.recordData&&this.recordData.id)try{const s=JSON.parse(this.recordData.columns||"[]"),r=JSON.parse(this.recordData.filters||"{}");this.form.employee_id=r.employee_id?r.employee_id.split(",").map(o=>o.trim()):[],this.form.company_id=r.company_id||null,this.form.dealer_id=r.dealer_id||null,this.form.start_date=r.start_date||null,this.form.end_date=r.end_date||null,this.recordData.report_name&&(this.form.report_name=this.recordData.report_name)}catch(s){console.error("Error parsing recordData:",s)}},async fetchEmployee(){await Fr.fetchAllEmployeeRecords({company_id:this.activeCompany,dealership_id:this.activeDealer}).then(s=>{console.log("response",this.activeCompany),s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(s){try{await Rr().shape({company_id:Dt().required("Company is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:`Are you sure you want to ${s=="save"?"save":"generate"} this report?`,text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No",html:`${s=="save"?`<input id="swal-input" style="width: 100%; height: 40px; padding: 8px; border: 1px solid #ced4da; border-radius: 4px;" placeholder="Report Title" />`:""}`,preConfirm:()=>{if(s=="save"){const o=document.getElementById("swal-input").value;return o?this.form.report_name=o:(this.$swal.showValidationMessage("The title field is required"),!1)}}}).then(o=>{o.value&&(s=="generate"?(console.log("done"),this.saveRecord()):s=="save"&&this.saveGeneratedReport())})}catch(r){if(r instanceof jt){const o={};r.inner.forEach(i=>{o[i.path]=i.message}),this.errors=o}this.state.isSaving=!1}},async saveGeneratedReport(){this.state.isSaving=!0;const s=this.gridApi.getDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(p=>p.field!=="actions").map(p=>p.field)});this.hasValue=!1;let r=new FormData;Object.keys(this.form).forEach(p=>{p!=="attachment"&&p!="columns"&&p!="setData"&&r.append(p,this.form[p])});const i=`report-${new Date().toISOString().slice(0,19).replace(/:/g,"-")}.csv`,t=new Blob([s],{type:"text/csv"});r.append("csv_file",t,i),r.append("attachment",i),console.log("setData",this.setData);const e=JSON.parse(JSON.stringify(this.setData));console.log("setData2",e),Object.values(this.form.columns).forEach((p,b)=>{r.append(`columns[${b}]`,p)}),Object.entries(e).forEach(([p,b])=>{r.append(`setData[${p}]`,b)}),await tt.saveReport(r).then(p=>{p.status==201&&(this.$swal.fire({title:"Great!",text:"Record successfully saved.",icon:"success",timer:2e3}),this.state.isSaving=!1)}).catch(p=>{console.log(p),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:p.response.data.message,icon:"error",timer:2e3})})},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await tt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){this.finalData=s.data.data,console.log("wiw",s.data);const r=this.finalData.map(o=>{let i=[];return o.absent.absent&&Array.isArray(o.absent.absent)&&(i=o.absent.absent.map(t=>this.$formatDate(t.date))),console.log("Data Item:",i),{employee_id:o.employee_id||null,fullname:`${o.firstname} ${o.lastname}`||null,absent_dates:i}});this.colDefs=[{field:"employee_id",headerName:"Employee ID",filter:!0,floatingFilter:!0,flex:1},{field:"fullname",headerName:"Full Name",filter:!0,floatingFilter:!0,flex:2},{field:"absent_dates",headerName:"Absent Dates",filter:!0,floatingFilter:!0,flex:3,valueFormatter:o=>o.value.join(", ")}],this.items=r,this.hasValue=!0}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await tt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchReportModuleColumn(),this.recordData&&this.populateFormFromRecordData(),this.fetchEmployee(),this.fetchCompany(),this.fetchDealership()},watch:{recordData:{handler(s){s&&s.id&&this.populateFormFromRecordData()},immediate:!0,deep:!0}}},T3={class:"grid grid-cols-1 gap-2"},R3={class:"grid grid-cols-2 gap-2"},k3={class:"grid grid-cols-2 gap-2"},L3={class:"flex justify-between items-center"},M3={class:"flex gap-1 justify-end"};function O3(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("flat-pickr"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card");return re(),Le(Cr,null,[B("form",{onSubmit:r[7]||(r[7]=St((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[B("div",T3,[T(p,{label:"Employee"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[0]||(r[0]=E=>t.form.employee_id=E),options:t.employees,class:"form-multiselect w-full mt-2",mode:"tags","close-on-select":!1,loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",R3,[T(p,{label:"Company"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[1]||(r[1]=E=>t.form.company_id=E),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[2]||(r[2]=E=>t.form.dealer_id=E),options:t.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",k3,[T(p,{label:"Start Date",isRequired:!0},{default:G(()=>[T(b,{modelValue:t.form.start_date,"onUpdate:modelValue":r[3]||(r[3]=E=>t.form.start_date=E),class:"form-control h-[48px]",id:"start_date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),T(p,{label:"End Date",isRequired:!0},{default:G(()=>[T(b,{modelValue:t.form.end_date,"onUpdate:modelValue":r[4]||(r[4]=E=>t.form.end_date=E),class:"form-control h-[48px]",id:"control",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),B("div",L3,[t.hasValue?(re(),Me(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):me("",!0),B("div",M3,[s.items?(re(),Me(w,{key:0,btnClass:"text-white bg-green-500 hover:ring ring-green-600 ring-offset-1 py-2 px-3",onClick:r[5]||(r[5]=E=>e.submitForm("save")),text:"Save Generated Report"})):me("",!0),T(w,{icon:"ic:round-repeat",onClick:r[6]||(r[6]=E=>e.submitForm("generate")),text:"Generate"})])])],32),t.hasValue?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(S,{ref:"agGrid",rowData:s.items,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):me("",!0)],64)}const P3=Et(E3,[["render",O3],["__scopeId","data-v-7f1e390d"]]);const N3={setup(){},props:{setData:Object,recordData:Object},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],employees:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:8,employee_id:[],columns:[],company_id:"",dealer_id:"",start_date:"",end_date:""},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isCompanyLoading:!1,isDealerLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length},activeCompany(){return this.$store.userSettings.getActiveCompany},activeDealer(){return this.$store.userSettings.getActiveDealership}},methods:{async submitForm(s){console.log("type",s);try{await Rr().shape({company_id:Dt().required("Company is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:`Are you sure you want to ${s=="save"?"save":"generate"} this report?`,text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No",html:`${s=="save"?`<input id="swal-input" style="width: 100%; height: 40px; padding: 8px; border: 1px solid #ced4da; border-radius: 4px;" placeholder="Report Title" />`:""}`,preConfirm:()=>{if(s=="save"){const o=document.getElementById("swal-input").value;return o?this.form.report_name=o:(this.$swal.showValidationMessage("The title field is required"),!1)}}}).then(o=>{o.value&&(s=="generate"?(console.log("done"),this.saveRecord()):s=="save"&&this.saveGeneratedReport())})}catch(r){if(r instanceof jt){const o={};r.inner.forEach(i=>{o[i.path]=i.message}),this.errors=o}this.state.isSaving=!1}},async saveGeneratedReport(){this.state.isSaving=!0;const s=this.gridApi.getDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(p=>p.field!=="actions").map(p=>p.field)});this.hasValue=!1;let r=new FormData;Object.keys(this.form).forEach(p=>{p!=="attachment"&&p!="columns"&&p!="setData"&&r.append(p,this.form[p])});const i=`report-${new Date().toISOString().slice(0,19).replace(/:/g,"-")}.csv`,t=new Blob([s],{type:"text/csv"});r.append("csv_file",t,i),r.append("attachment",i);const e=JSON.parse(JSON.stringify(this.setData));Object.values(this.form.columns).forEach((p,b)=>{r.append(`columns[${b}]`,p)}),Object.entries(e).forEach(([p,b])=>{r.append(`setData[${p}]`,b)}),await tt.saveReport(r).then(p=>{p.status==201&&(this.$swal.fire({title:"Great!",text:"Record successfully saved.",icon:"success",timer:2e3}),this.state.isSaving=!1)}).catch(p=>{console.log(p),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:p.response.data.message,icon:"error",timer:2e3})})},async fetchEmployee(){await Fr.fetchAllEmployeeRecords({company_id:this.activeCompany,dealership_id:this.activeDealer}).then(s=>{console.log("response",this.activeCompany),s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await tt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){this.finalData=s.data.data;const r=this.finalData.map(o=>{let i=[];return o.tardiness&&Array.isArray(o.tardiness)&&(i=o.tardiness.map(t=>{const[e,u]=t.split("|");return{date:this.$formatDate(e),value:Number(u)}})),console.log("Data Item:",i),{employee_id:o.employee_id||null,fullname:`${o.firstname} ${o.lastname}`||null,tardiness_records:i}});this.colDefs=[{field:"employee_id",headerName:"Employee ID",filter:!0,floatingFilter:!0,flex:1},{field:"fullname",headerName:"Full Name",filter:!0,floatingFilter:!0,flex:2},{field:"tardiness_records",headerName:"Tardiness Records",filter:!0,floatingFilter:!0,flex:3,valueFormatter:o=>o.value.map(i=>`${i.date} (${i.value} minutes)`).join(", ")}],this.items=r,this.hasValue=!0}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await tt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},populateFormFromRecordData(){if(this.recordData&&this.recordData.id)try{const s=JSON.parse(this.recordData.columns||"[]"),r=JSON.parse(this.recordData.filters||"{}");this.form.employee_id=r.employee_id?r.employee_id.split(",").map(o=>o.trim()):[],this.form.company_id=r.company_id||null,this.form.dealer_id=r.dealer_id||null,this.form.start_date=r.start_date||null,this.form.end_date=r.end_date||null,this.recordData.report_name&&(this.form.report_name=this.recordData.report_name)}catch(s){console.error("Error parsing recordData:",s)}}},mounted(){this.fetchReportModuleColumn(),this.recordData&&this.populateFormFromRecordData(),this.fetchEmployee(),this.fetchCompany(),this.fetchDealership()},watch:{recordData:{handler(s){s&&s.id&&this.populateFormFromRecordData()},immediate:!0,deep:!0}}},I3={class:"grid grid-cols-1 gap-2"},V3={class:"grid grid-cols-2 gap-2"},B3={class:"grid grid-cols-2 gap-2"},U3={class:"flex justify-between items-center"},z3={class:"flex gap-1 justify-end"};function G3(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("flat-pickr"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card");return re(),Le(Cr,null,[B("form",{onSubmit:r[7]||(r[7]=St((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[B("div",I3,[T(p,{label:"Employee"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[0]||(r[0]=E=>t.form.employee_id=E),options:t.employees,class:"form-multiselect w-full mt-2",mode:"tags","close-on-select":!1,loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",V3,[T(p,{label:"Company"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[1]||(r[1]=E=>t.form.company_id=E),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[2]||(r[2]=E=>t.form.dealer_id=E),options:t.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",B3,[T(p,{label:"Start Date",isRequired:!0},{default:G(()=>[T(b,{modelValue:t.form.start_date,"onUpdate:modelValue":r[3]||(r[3]=E=>t.form.start_date=E),class:"form-control h-[48px]",id:"start_date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),T(p,{label:"End Date",isRequired:!0},{default:G(()=>[T(b,{modelValue:t.form.end_date,"onUpdate:modelValue":r[4]||(r[4]=E=>t.form.end_date=E),class:"form-control h-[48px]",id:"control",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),B("div",U3,[t.hasValue?(re(),Me(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):me("",!0),B("div",z3,[s.items?(re(),Me(w,{key:0,btnClass:"text-white bg-green-500 hover:ring ring-green-600 ring-offset-1 py-2 px-3",onClick:r[5]||(r[5]=E=>e.submitForm("save")),text:"Save Generated Report"})):me("",!0),T(w,{icon:"ic:round-repeat",onClick:r[6]||(r[6]=E=>e.submitForm("generate")),text:"Generate"})])])],32),t.hasValue?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(S,{ref:"agGrid",rowData:s.items,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):me("",!0)],64)}const j3=Et(N3,[["render",G3],["__scopeId","data-v-32b78bf5"]]);const W3={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],months:[{value:"1",label:"January"},{value:"2",label:"February"},{value:"3",label:"March"},{value:"4",label:"April"},{value:"5",label:"May"},{value:"6",label:"June"},{value:"7",label:"July"},{value:"8",label:"August"},{value:"9",label:"September"},{value:"10",label:"October"},{value:"11",label:"November"},{value:"12",label:"December"}],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],employees:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:9,company_id:"",dealer_id:"",month:[]},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isCompanyLoading:!1,isDealerLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchEmployee(){await Fr.fetchRecords().then(s=>{s.status==200&&(this.employees=s.data.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await tt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){this.finalData=s.data.data;const r=this.finalData.map(o=>({employee_id:o.employee_id||null,fullname:`${o.firstname} ${o.lastname}`||null,birth_date:this.$formatDate(o.birth_date)}));this.colDefs=[{field:"employee_id",headerName:"Employee ID",filter:!0,floatingFilter:!0,flex:1},{field:"fullname",headerName:"Full Name",filter:!0,floatingFilter:!0,flex:3},{field:"birth_date",headerName:"Birthdate",filter:!0,floatingFilter:!0,flex:2}],this.resultData=r,this.hasValue=!0}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await tt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchEmployee(),this.fetchCompany(),this.fetchDealership()},watch:{}},H3={class:"grid grid-cols-1 md:grid-cols-3 gap-4"},Y3={class:"flex justify-between items-center"},q3={class:"flex gap-1 justify-end"};function K3(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("Button"),_=Y("SubmitButton"),w=Y("ag-grid-vue"),S=Y("Card");return re(),Le(Cr,null,[B("form",{onSubmit:r[3]||(r[3]=St((...A)=>s.confirmSubmit&&s.confirmSubmit(...A),["prevent"])),class:"space-y-4"},[B("div",H3,[T(p,{label:"Company"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=A=>t.form.company_id=A),options:t.companies,class:"form-multiselect w-full mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=A=>t.form.dealer_id=A),options:t.dealers,class:"form-multiselect w-full mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Month"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.month,"onUpdate:modelValue":r[2]||(r[2]=A=>t.form.month=A),options:t.months,mode:"tags",class:"form-multiselect w-full mt-2"},null,8,["modelValue","options"])]),_:1})]),B("div",Y3,[t.hasValue?(re(),Me(b,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):me("",!0),B("div",q3,[T(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(S,{key:0,class:"p-2"},{default:G(()=>[T(w,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):me("",!0)],64)}const J3=Et(W3,[["render",K3],["__scopeId","data-v-b9509db6"]]);const X3={setup(){},props:{setData:Object,recordData:Object},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],employees:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:10,employee_id:[],columns:[],company_id:"",dealer_id:"",start_date:"",end_date:""},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isCompanyLoading:!1,isDealerLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length},activeCompany(){return this.$store.userSettings.getActiveCompany},activeDealer(){return this.$store.userSettings.getActiveDealership}},methods:{async fetchEmployee(){await Fr.fetchAllEmployeeRecords({company_id:this.activeCompany,dealership_id:this.activeDealer}).then(s=>{console.log("response",this.activeCompany),s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(s){console.log("type",s);try{await Rr().shape({company_id:Dt().required("Company is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:`Are you sure you want to ${s=="save"?"save":"generate"} this report?`,text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No",html:`${s=="save"?`<input id="swal-input" style="width: 100%; height: 40px; padding: 8px; border: 1px solid #ced4da; border-radius: 4px;" placeholder="Report Title" />`:""}`,preConfirm:()=>{if(s=="save"){const o=document.getElementById("swal-input").value;return o?this.form.report_name=o:(this.$swal.showValidationMessage("The title field is required"),!1)}}}).then(o=>{o.value&&(s=="generate"?(console.log("done"),this.saveRecord()):s=="save"&&this.saveGeneratedReport())})}catch(r){if(r instanceof jt){const o={};r.inner.forEach(i=>{o[i.path]=i.message}),this.errors=o}this.state.isSaving=!1}},async saveGeneratedReport(){this.state.isSaving=!0;const s=this.gridApi.getDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(p=>p.field!=="actions").map(p=>p.field)});this.hasValue=!1;let r=new FormData;Object.keys(this.form).forEach(p=>{p!=="attachment"&&p!="columns"&&p!="setData"&&r.append(p,this.form[p])});const i=`report-${new Date().toISOString().slice(0,19).replace(/:/g,"-")}.csv`,t=new Blob([s],{type:"text/csv"});r.append("csv_file",t,i),r.append("attachment",i);const e=JSON.parse(JSON.stringify(this.setData));Object.values(this.form.columns).forEach((p,b)=>{r.append(`columns[${b}]`,p)}),Object.entries(e).forEach(([p,b])=>{r.append(`setData[${p}]`,b)}),await tt.saveReport(r).then(p=>{p.status==201&&(this.$swal.fire({title:"Great!",text:"Record successfully saved.",icon:"success",timer:2e3}),this.state.isSaving=!1)}).catch(p=>{console.log(p),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:p.response.data.message,icon:"error",timer:2e3})})},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await tt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){this.finalData=s.data.data;const r=this.finalData.map(o=>{let i=[];return o.undertime&&Array.isArray(o.undertime)&&(i=o.undertime.map(t=>{const[e,u]=t.split("|");return{date:this.$formatDate(e),value:Number(u)}})),console.log("Data Item:",i),{employee_id:o.employee_id||null,fullname:`${o.firstname} ${o.lastname}`||null,undertime_records:i}});this.colDefs=[{field:"employee_id",headerName:"Employee ID",filter:!0,floatingFilter:!0,flex:1},{field:"fullname",headerName:"Full Name",filter:!0,floatingFilter:!0,flex:2},{field:"undertime_records",headerName:"Undertime Records",filter:!0,floatingFilter:!0,flex:3,valueFormatter:o=>o.value.map(i=>`${i.date} (${i.value} minutes)`).join(", ")}],this.items=r,this.hasValue=!0}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await tt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},populateFormFromRecordData(){if(this.recordData&&this.recordData.id)try{const s=JSON.parse(this.recordData.columns||"[]"),r=JSON.parse(this.recordData.filters||"{}");this.form.employee_id=r.employee_id?r.employee_id.split(",").map(o=>o.trim()):[],this.form.company_id=r.company_id||null,this.form.dealer_id=r.dealer_id||null,this.form.start_date=r.start_date||null,this.form.end_date=r.end_date||null,this.recordData.report_name&&(this.form.report_name=this.recordData.report_name)}catch(s){console.error("Error parsing recordData:",s)}}},mounted(){this.recordData&&this.populateFormFromRecordData(),this.fetchEmployee(),this.fetchCompany(),this.fetchDealership()},watch:{recordData:{handler(s){s&&s.id&&this.populateFormFromRecordData()},immediate:!0,deep:!0}}},Q3={class:"grid grid-cols-1 gap-2"},Z3={class:"grid grid-cols-2 gap-2"},$3={class:"grid grid-cols-2 gap-2"},e5={class:"flex justify-between items-center"},t5={class:"flex gap-1 justify-end"};function r5(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("flat-pickr"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card");return re(),Le(Cr,null,[B("form",{onSubmit:r[7]||(r[7]=St((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[B("div",Q3,[T(p,{label:"Employee"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[0]||(r[0]=E=>t.form.employee_id=E),options:t.employees,class:"form-multiselect w-full h-[48px] mt-2",mode:"tags","close-on-select":!1,loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",Z3,[T(p,{label:"Company"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[1]||(r[1]=E=>t.form.company_id=E),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[2]||(r[2]=E=>t.form.dealer_id=E),options:t.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",$3,[T(p,{label:"Start Date",isRequired:!0},{default:G(()=>[T(b,{modelValue:t.form.start_date,"onUpdate:modelValue":r[3]||(r[3]=E=>t.form.start_date=E),class:"form-control h-[48px]",id:"start_date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),T(p,{label:"End Date",isRequired:!0},{default:G(()=>[T(b,{modelValue:t.form.end_date,"onUpdate:modelValue":r[4]||(r[4]=E=>t.form.end_date=E),class:"form-control h-[48px]",id:"control",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),B("div",e5,[t.hasValue?(re(),Me(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):me("",!0),B("div",t5,[s.items?(re(),Me(w,{key:0,btnClass:"text-white bg-green-500 hover:ring ring-green-600 ring-offset-1 py-2 px-3",onClick:r[5]||(r[5]=E=>e.submitForm("save")),text:"Save Generated Report"})):me("",!0),T(w,{icon:"ic:round-repeat",onClick:r[6]||(r[6]=E=>e.submitForm("generate")),text:"Generate"})])])],32),t.hasValue?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(S,{ref:"agGrid",rowData:s.items,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):me("",!0)],64)}const s5=Et(X3,[["render",r5],["__scopeId","data-v-a2482c2c"]]);const a5={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],employees:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:11,employee_id:[],company_id:"",dealer_id:"",start_date:"",end_date:""},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isCompanyLoading:!1,isDealerLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length},activeCompany(){return this.$store.userSettings.getActiveCompany},activeDealer(){return this.$store.userSettings.getActiveDealership}},methods:{async fetchEmployee(){await Fr.fetchAllEmployeeRecords({company_id:this.activeCompany,dealership_id:this.activeDealer}).then(s=>{console.log("response",this.activeCompany),s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await tt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){if(this.finalData=s.data.data,this.finalData.length>1e3){this.exportToExcel(this.finalData);return}const r=new Date(this.form.start_date),o=new Date(this.form.end_date),i=[];for(let e=new Date(r);e<=o;e.setDate(e.getDate()+1)){const u=this.$formatDate(e);i.push({field:u,headerName:u,filter:!0,floatingFilter:!0,flex:2})}this.colDefs=[{field:"employee_id",headerName:"Employee ID",filter:!0,floatingFilter:!0,flex:1},{field:"fullname",headerName:"Full Name",filter:!0,floatingFilter:!0,flex:3},...i];const t=this.finalData.map(e=>{const u={employee_id:e.employee_id||null,fullname:`${e.firstname} ${e.lastname}`||null};for(let p=new Date(r);p<=o;p.setDate(p.getDate()+1)){const b=this.$formatDate(p);console.log(e.timelog),e.timelog.map(A=>{console.log(A.datetimelog+" - "+b)});const _=e.timelog.filter(A=>this.$formatDate(A.datetimelog).startsWith(b));let w="No data",S="No data";_.forEach(A=>{A.in_out==="I"?w=A.datetimelog.split(" ")[1]:A.in_out==="O"&&(S=A.datetimelog.split(" ")[1])}),u[b]=`In: ${w}, Out: ${S}`}return u});this.resultData=t,this.hasValue=!0}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await tt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchEmployee(),this.fetchCompany(),this.fetchDealership()},watch:{}},o5={class:"grid grid-cols-1 gap-2"},i5={class:"grid grid-cols-2 gap-2"},n5={class:"grid grid-cols-2 gap-2"},l5={class:"flex justify-between items-center"},c5={class:"flex gap-1 justify-end"};function f5(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("flat-pickr"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card");return re(),Le(Cr,null,[B("form",{onSubmit:r[5]||(r[5]=St((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[B("div",o5,[T(p,{label:"Employee"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[0]||(r[0]=E=>t.form.employee_id=E),options:t.employees,class:"form-multiselect w-full mt-2",mode:"tags","close-on-select":!1,loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",i5,[T(p,{label:"Company"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[1]||(r[1]=E=>t.form.company_id=E),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[2]||(r[2]=E=>t.form.dealer_id=E),options:t.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",n5,[T(p,{label:"Start Date",isRequired:!0},{default:G(()=>[T(b,{modelValue:t.form.start_date,"onUpdate:modelValue":r[3]||(r[3]=E=>t.form.start_date=E),class:"form-control h-[48px]",id:"start_date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),T(p,{label:"End Date",isRequired:!0},{default:G(()=>[T(b,{modelValue:t.form.end_date,"onUpdate:modelValue":r[4]||(r[4]=E=>t.form.end_date=E),class:"form-control h-[48px]",id:"control",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),B("div",l5,[t.hasValue?(re(),Me(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):me("",!0),B("div",c5,[T(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(S,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz ag-grid-overflow",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):me("",!0)],64)}const u5=Et(a5,[["render",f5],["__scopeId","data-v-34e3facc"]]);const d5={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{items:"",gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],leaveType:[],companies:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:12,columns:[],company_id:"",dealer_id:"",date:"",from_time:"",to_time:"",attachment:"",destination:"",description:"",status:"",recommending_id:"",approver_id:"",approved_at:""},included:{leave_id:!1,status:!1,charge_to:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isCompanyLoading:!1,isDealerLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{await Rr().shape({from_date:Dt().required("From Date is required"),to_date:Dt().required("To Date is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{console.log("eyow"),this.saveRecord()})}catch(s){if(s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){await tt.fetchGeneratedReport(this.form).then(s=>{if(s.status==200){this.finalData=s.data.data,console.log("result data",this.finalData);const r=this.reportModuleColums.map(i=>({id:null,report_module_id:"12",name:i.label,slug:i.value})),o=s.data.data.map(i=>{const t={employee_id:i.employee_id||null,fullname:i.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=i[u]||null}),t});this.resultData=o,this.colDefs=[{field:"employee_id",filter:!0,floatingFilter:!0},{field:"fullname",filter:!0,floatingFilter:!0},...this.form.columns.map(i=>{const t=this.reportModuleColums.find(e=>e.value===i);return{field:t?t.label:i,filter:!0,floatingFilter:!0}})],this.items=this.resultData,console.log("Mapped Data",this.colDefs)}}).catch(s=>{console.log(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchLeaveType(){this.state.isLeaveTypeLoading=!0;try{const s=await xf.fetchRecords();s.status===200&&(console.log(s.data),this.leaveType=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isLeaveTypeLoading=!1)}catch(s){console.log(s)}},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await tt.fetchReportModuleColumnRecord(12);s.status===200&&(console.log(s.data),this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},onSelect(s){s==="status"&&(this.included.status=!0)},onRemove(s){s==="status"&&(this.included.status=!1)}},mounted(){this.fetchCompany(),this.fetchDealership(),this.fetchReportModuleColumn()},watch:{"form.columns":function(s){s!=null&&(this.form.columns.includes("status")?(this.fetchLeaveType(),this.included.status=!0):this.included.status=!1)}}},h5={class:"grid grid-cols-1 gap-2"},p5={class:"grid grid-cols-2 gap-2"},m5={class:"grid grid-cols-5 gap-2"},g5={class:"grid grid-cols-2 gap-2"},b5={class:"flex justify-between items-center"},y5={class:"flex gap-1 justify-end"};function _5(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("flat-pickr"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card");return re(),Le(Cr,null,[B("form",{onSubmit:r[8]||(r[8]=St((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[r[9]||(r[9]=B("div",{class:"grid grid-cols-1 gap-2"},null,-1)),B("div",h5,[T(p,{label:"Columns",isRequired:!0},{default:G(()=>[T(u,{searchable:!0,modelValue:t.form.columns,"onUpdate:modelValue":r[0]||(r[0]=E=>t.form.columns=E),options:t.reportModuleColums,class:"form-control w-full h-[60px] mt-2",loading:t.state.isReportModuleColumnLoading,mode:"tags","custom-label":e.columnLabel,"close-on-select":!1,onSelect:e.onSelect,onRemove:e.onRemove,placeholder:"Select Columns"},null,8,["modelValue","options","loading","custom-label","onSelect","onRemove"]),B("button",{type:"button",class:"mt-2 text-blue-600",onClick:r[1]||(r[1]=(...E)=>e.toggleSelectAllColumns&&e.toggleSelectAllColumns(...E))},Hr(e.isAllColumnsSelected?"Deselect All":"Select All"),1)]),_:1})]),B("div",p5,[T(p,{label:"Company"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[2]||(r[2]=E=>t.form.company_id=E),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[3]||(r[3]=E=>t.form.dealer_id=E),options:s.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",m5,[t.included.charge_to?(re(),Me(p,{key:0,label:"Charges To"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.charge_to,"onUpdate:modelValue":r[4]||(r[4]=E=>t.form.charge_to=E),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1})):me("",!0),t.included.status?(re(),Me(p,{key:1,label:"Status"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.status,"onUpdate:modelValue":r[5]||(r[5]=E=>t.form.status=E),options:t.statusOptions,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","options"])]),_:1})):me("",!0)]),B("div",g5,[T(p,{label:"From Date",isRequired:!0},{default:G(()=>[T(b,{modelValue:t.form.from_date,"onUpdate:modelValue":r[6]||(r[6]=E=>t.form.from_date=E),class:"form-control h-[48px]",id:"date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),T(p,{label:"To Date",isRequired:!0},{default:G(()=>[T(b,{modelValue:t.form.to_date,"onUpdate:modelValue":r[7]||(r[7]=E=>t.form.to_date=E),class:"form-control h-[48px]",id:"date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),B("div",b5,[t.items?(re(),Me(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):me("",!0),B("div",y5,[T(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.items?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(S,{ref:"agGrid",rowData:t.items,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):me("",!0),r[10]||(r[10]=B("div",null,null,-1))],64)}const v5=Et(d5,[["render",_5],["__scopeId","data-v-409e4aa6"]]);function cl(s){throw new Error('Could not dynamically require "'+s+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var _f={exports:{}},af={exports:{}};/*! cpexcel.js (C) 2013-present SheetJS -- http://sheetjs.com */var dm;function w5(){return dm||(dm=1,function(s){var r={version:"1.15.0"};r[437]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[620]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàąçêëèïîćÄĄĘęłôöĆûùŚÖܢ٥śƒŹŻóÓńŃźż¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[737]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■ `,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[850]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´±‗¾¶§÷¸°¨·¹³²■ `,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[852]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´˝˛ˇ˘§÷¸°¨˙űŘř■ `,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[857]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´±�¾¶§÷¸°¨·¹³²■ `,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[861]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[865]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[866]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ `,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[874]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€����…�����������‘’“”•–—�������� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[895]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ČüéďäĎŤčěĚĹÍľǪÄÁÉžŽôöÓůÚýÖÜŠĽÝŘťáíóúňŇŮÔšřŕŔ¼§«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[932]=function(){var o=[],i={},t=[],e;for(t[0]=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~���������������������������������。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚��������������������������������`.split(""),e=0;e!=t[0].length;++e)t[0][e].charCodeAt(0)!==65533&&(i[t[0][e]]=0+e,o[0+e]=t[0][e]);for(t[129]="���������������������������������������������������������������� 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈〉《》「」『』【】+-±×�÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇◆□■△▲▽▼※〒→←↑↓〓�����������∈∋⊆⊇⊂⊃∪∩��������∧∨¬⇒⇔∀∃�����������∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬�������ʼn♯♭♪†‡¶����◯���".split(""),e=0;e!=t[129].length;++e)t[129][e].charCodeAt(0)!==65533&&(i[t[129][e]]=33024+e,o[33024+e]=t[129][e]);for(t[130]="�������������������������������������������������������������������������������0123456789�������ABCDEFGHIJKLMNOPQRSTUVWXYZ�������abcdefghijklmnopqrstuvwxyz����ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをん��������������".split(""),e=0;e!=t[130].length;++e)t[130][e].charCodeAt(0)!==65533&&(i[t[130][e]]=33280+e,o[33280+e]=t[130][e]);for(t[131]="����������������������������������������������������������������ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミ�ムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ��������ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ��������αβγδεζηθικλμνξοπρστυφχψω�����������������������������������������".split(""),e=0;e!=t[131].length;++e)t[131][e].charCodeAt(0)!==65533&&(i[t[131][e]]=33536+e,o[33536+e]=t[131][e]);for(t[132]="����������������������������������������������������������������АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ���������������абвгдеёжзийклмн�опрстуфхцчшщъыьэюя�������������─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂�����������������������������������������������������������������".split(""),e=0;e!=t[132].length;++e)t[132][e].charCodeAt(0)!==65533&&(i[t[132][e]]=33792+e,o[33792+e]=t[132][e]);for(t[135]="����������������������������������������������������������������①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮⑯⑰⑱⑲⑳ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ�㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡��������㍻�〝〟№㏍℡㊤㊥㊦㊧㊨㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪���������������������������������������������������������������������������������������������������".split(""),e=0;e!=t[135].length;++e)t[135][e].charCodeAt(0)!==65533&&(i[t[135][e]]=34560+e,o[34560+e]=t[135][e]);for(t[136]="���������������������������������������������������������������������������������������������������������������������������������������������������������������亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭���".split(""),e=0;e!=t[136].length;++e)t[136][e].charCodeAt(0)!==65533&&(i[t[136][e]]=34816+e,o[34816+e]=t[136][e]);for(t[137]="����������������������������������������������������������������院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円�園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改���".split(""),e=0;e!=t[137].length;++e)t[137][e].charCodeAt(0)!==65533&&(i[t[137][e]]=35072+e,o[35072+e]=t[137][e]);for(t[138]="����������������������������������������������������������������魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫�橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄���".split(""),e=0;e!=t[138].length;++e)t[138][e].charCodeAt(0)!==65533&&(i[t[138][e]]=35328+e,o[35328+e]=t[138][e]);for(t[139]="����������������������������������������������������������������機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救�朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈���".split(""),e=0;e!=t[139].length;++e)t[139][e].charCodeAt(0)!==65533&&(i[t[139][e]]=35584+e,o[35584+e]=t[139][e]);for(t[140]="����������������������������������������������������������������掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨�劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向���".split(""),e=0;e!=t[140].length;++e)t[140][e].charCodeAt(0)!==65533&&(i[t[140][e]]=35840+e,o[35840+e]=t[140][e]);for(t[141]="����������������������������������������������������������������后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降�項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷���".split(""),e=0;e!=t[141].length;++e)t[141][e].charCodeAt(0)!==65533&&(i[t[141][e]]=36096+e,o[36096+e]=t[141][e]);for(t[142]="����������������������������������������������������������������察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止�死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周���".split(""),e=0;e!=t[142].length;++e)t[142][e].charCodeAt(0)!==65533&&(i[t[142][e]]=36352+e,o[36352+e]=t[142][e]);for(t[143]="����������������������������������������������������������������宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳�準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾���".split(""),e=0;e!=t[143].length;++e)t[143][e].charCodeAt(0)!==65533&&(i[t[143][e]]=36608+e,o[36608+e]=t[143][e]);for(t[144]="����������������������������������������������������������������拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨�逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線���".split(""),e=0;e!=t[144].length;++e)t[144][e].charCodeAt(0)!==65533&&(i[t[144][e]]=36864+e,o[36864+e]=t[144][e]);for(t[145]="����������������������������������������������������������������繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻�操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只���".split(""),e=0;e!=t[145].length;++e)t[145][e].charCodeAt(0)!==65533&&(i[t[145][e]]=37120+e,o[37120+e]=t[145][e]);for(t[146]="����������������������������������������������������������������叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄�逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓���".split(""),e=0;e!=t[146].length;++e)t[146][e].charCodeAt(0)!==65533&&(i[t[146][e]]=37376+e,o[37376+e]=t[146][e]);for(t[147]="����������������������������������������������������������������邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬�凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入���".split(""),e=0;e!=t[147].length;++e)t[147][e].charCodeAt(0)!==65533&&(i[t[147][e]]=37632+e,o[37632+e]=t[147][e]);for(t[148]="����������������������������������������������������������������如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅�楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美���".split(""),e=0;e!=t[148].length;++e)t[148][e].charCodeAt(0)!==65533&&(i[t[148][e]]=37888+e,o[37888+e]=t[148][e]);for(t[149]="����������������������������������������������������������������鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷�斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋���".split(""),e=0;e!=t[149].length;++e)t[149][e].charCodeAt(0)!==65533&&(i[t[149][e]]=38144+e,o[38144+e]=t[149][e]);for(t[150]="����������������������������������������������������������������法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆�摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒���".split(""),e=0;e!=t[150].length;++e)t[150][e].charCodeAt(0)!==65533&&(i[t[150][e]]=38400+e,o[38400+e]=t[150][e]);for(t[151]="����������������������������������������������������������������諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲�沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯���".split(""),e=0;e!=t[151].length;++e)t[151][e].charCodeAt(0)!==65533&&(i[t[151][e]]=38656+e,o[38656+e]=t[151][e]);for(t[152]="����������������������������������������������������������������蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕��������������������������������������������弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲���".split(""),e=0;e!=t[152].length;++e)t[152][e].charCodeAt(0)!==65533&&(i[t[152][e]]=38912+e,o[38912+e]=t[152][e]);for(t[153]="����������������������������������������������������������������僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭�凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨���".split(""),e=0;e!=t[153].length;++e)t[153][e].charCodeAt(0)!==65533&&(i[t[153][e]]=39168+e,o[39168+e]=t[153][e]);for(t[154]="����������������������������������������������������������������咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸�噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩���".split(""),e=0;e!=t[154].length;++e)t[154][e].charCodeAt(0)!==65533&&(i[t[154][e]]=39424+e,o[39424+e]=t[154][e]);for(t[155]="����������������������������������������������������������������奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀�它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏���".split(""),e=0;e!=t[155].length;++e)t[155][e].charCodeAt(0)!==65533&&(i[t[155][e]]=39680+e,o[39680+e]=t[155][e]);for(t[156]="����������������������������������������������������������������廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠�怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛���".split(""),e=0;e!=t[156].length;++e)t[156][e].charCodeAt(0)!==65533&&(i[t[156][e]]=39936+e,o[39936+e]=t[156][e]);for(t[157]="����������������������������������������������������������������戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫�捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼���".split(""),e=0;e!=t[157].length;++e)t[157][e].charCodeAt(0)!==65533&&(i[t[157][e]]=40192+e,o[40192+e]=t[157][e]);for(t[158]="����������������������������������������������������������������曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎�梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣���".split(""),e=0;e!=t[158].length;++e)t[158][e].charCodeAt(0)!==65533&&(i[t[158][e]]=40448+e,o[40448+e]=t[158][e]);for(t[159]="����������������������������������������������������������������檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯�麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌���".split(""),e=0;e!=t[159].length;++e)t[159][e].charCodeAt(0)!==65533&&(i[t[159][e]]=40704+e,o[40704+e]=t[159][e]);for(t[224]="����������������������������������������������������������������漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝�烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱���".split(""),e=0;e!=t[224].length;++e)t[224][e].charCodeAt(0)!==65533&&(i[t[224][e]]=57344+e,o[57344+e]=t[224][e]);for(t[225]="����������������������������������������������������������������瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿�痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬���".split(""),e=0;e!=t[225].length;++e)t[225][e].charCodeAt(0)!==65533&&(i[t[225][e]]=57600+e,o[57600+e]=t[225][e]);for(t[226]="����������������������������������������������������������������磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰�窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆���".split(""),e=0;e!=t[226].length;++e)t[226][e].charCodeAt(0)!==65533&&(i[t[226][e]]=57856+e,o[57856+e]=t[226][e]);for(t[227]="����������������������������������������������������������������紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷�縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋���".split(""),e=0;e!=t[227].length;++e)t[227][e].charCodeAt(0)!==65533&&(i[t[227][e]]=58112+e,o[58112+e]=t[227][e]);for(t[228]="����������������������������������������������������������������隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤�艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈���".split(""),e=0;e!=t[228].length;++e)t[228][e].charCodeAt(0)!==65533&&(i[t[228][e]]=58368+e,o[58368+e]=t[228][e]);for(t[229]="����������������������������������������������������������������蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬�蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞���".split(""),e=0;e!=t[229].length;++e)t[229][e].charCodeAt(0)!==65533&&(i[t[229][e]]=58624+e,o[58624+e]=t[229][e]);for(t[230]="����������������������������������������������������������������襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧�諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊���".split(""),e=0;e!=t[230].length;++e)t[230][e].charCodeAt(0)!==65533&&(i[t[230][e]]=58880+e,o[58880+e]=t[230][e]);for(t[231]="����������������������������������������������������������������蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜�轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮���".split(""),e=0;e!=t[231].length;++e)t[231][e].charCodeAt(0)!==65533&&(i[t[231][e]]=59136+e,o[59136+e]=t[231][e]);for(t[232]="����������������������������������������������������������������錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙�閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰���".split(""),e=0;e!=t[232].length;++e)t[232][e].charCodeAt(0)!==65533&&(i[t[232][e]]=59392+e,o[59392+e]=t[232][e]);for(t[233]="����������������������������������������������������������������顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃�騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈���".split(""),e=0;e!=t[233].length;++e)t[233][e].charCodeAt(0)!==65533&&(i[t[233][e]]=59648+e,o[59648+e]=t[233][e]);for(t[234]="����������������������������������������������������������������鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯�黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠堯槇遙瑤凜熙�������������������������������������������������������������������������������������������".split(""),e=0;e!=t[234].length;++e)t[234][e].charCodeAt(0)!==65533&&(i[t[234][e]]=59904+e,o[59904+e]=t[234][e]);for(t[237]="����������������������������������������������������������������纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏�塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱���".split(""),e=0;e!=t[237].length;++e)t[237][e].charCodeAt(0)!==65533&&(i[t[237][e]]=60672+e,o[60672+e]=t[237][e]);for(t[238]="����������������������������������������������������������������犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙�蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑��ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹ¬¦'"���".split(""),e=0;e!=t[238].length;++e)t[238][e].charCodeAt(0)!==65533&&(i[t[238][e]]=60928+e,o[60928+e]=t[238][e]);for(t[250]="����������������������������������������������������������������ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ¬¦'"㈱№℡∵纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊�兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯���".split(""),e=0;e!=t[250].length;++e)t[250][e].charCodeAt(0)!==65533&&(i[t[250][e]]=64e3+e,o[64e3+e]=t[250][e]);for(t[251]="����������������������������������������������������������������涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神�祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙���".split(""),e=0;e!=t[251].length;++e)t[251][e].charCodeAt(0)!==65533&&(i[t[251][e]]=64256+e,o[64256+e]=t[251][e]);for(t[252]="����������������������������������������������������������������髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������".split(""),e=0;e!=t[252].length;++e)t[252][e].charCodeAt(0)!==65533&&(i[t[252][e]]=64512+e,o[64512+e]=t[252][e]);return{enc:i,dec:o}}(),r[936]=function(){var o=[],i={},t=[],e;for(t[0]=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�������������������������������������������������������������������������������������������������������������������������������`.split(""),e=0;e!=t[0].length;++e)t[0][e].charCodeAt(0)!==65533&&(i[t[0][e]]=0+e,o[0+e]=t[0][e]);for(t[129]="����������������������������������������������������������������丂丄丅丆丏丒丗丟丠両丣並丩丮丯丱丳丵丷丼乀乁乂乄乆乊乑乕乗乚乛乢乣乤乥乧乨乪乫乬乭乮乯乲乴乵乶乷乸乹乺乻乼乽乿亀亁亂亃亄亅亇亊�亐亖亗亙亜亝亞亣亪亯亰亱亴亶亷亸亹亼亽亾仈仌仏仐仒仚仛仜仠仢仦仧仩仭仮仯仱仴仸仹仺仼仾伀伂伃伄伅伆伇伈伋伌伒伓伔伕伖伜伝伡伣伨伩伬伭伮伱伳伵伷伹伻伾伿佀佁佂佄佅佇佈佉佊佋佌佒佔佖佡佢佦佨佪佫佭佮佱佲併佷佸佹佺佽侀侁侂侅來侇侊侌侎侐侒侓侕侖侘侙侚侜侞侟価侢�".split(""),e=0;e!=t[129].length;++e)t[129][e].charCodeAt(0)!==65533&&(i[t[129][e]]=33024+e,o[33024+e]=t[129][e]);for(t[130]="����������������������������������������������������������������侤侫侭侰侱侲侳侴侶侷侸侹侺侻侼侽侾俀俁係俆俇俈俉俋俌俍俒俓俔俕俖俙俛俠俢俤俥俧俫俬俰俲俴俵俶俷俹俻俼俽俿倀倁倂倃倄倅倆倇倈倉倊�個倎倐們倓倕倖倗倛倝倞倠倢倣値倧倫倯倰倱倲倳倴倵倶倷倸倹倻倽倿偀偁偂偄偅偆偉偊偋偍偐偑偒偓偔偖偗偘偙偛偝偞偟偠偡偢偣偤偦偧偨偩偪偫偭偮偯偰偱偲偳側偵偸偹偺偼偽傁傂傃傄傆傇傉傊傋傌傎傏傐傑傒傓傔傕傖傗傘備傚傛傜傝傞傟傠傡傢傤傦傪傫傭傮傯傰傱傳傴債傶傷傸傹傼�".split(""),e=0;e!=t[130].length;++e)t[130][e].charCodeAt(0)!==65533&&(i[t[130][e]]=33280+e,o[33280+e]=t[130][e]);for(t[131]="����������������������������������������������������������������傽傾傿僀僁僂僃僄僅僆僇僈僉僊僋僌働僎僐僑僒僓僔僕僗僘僙僛僜僝僞僟僠僡僢僣僤僥僨僩僪僫僯僰僱僲僴僶僷僸價僺僼僽僾僿儀儁儂儃億儅儈�儉儊儌儍儎儏儐儑儓儔儕儖儗儘儙儚儛儜儝儞償儠儢儣儤儥儦儧儨儩優儫儬儭儮儯儰儱儲儳儴儵儶儷儸儹儺儻儼儽儾兂兇兊兌兎兏児兒兓兗兘兙兛兝兞兟兠兡兣兤兦內兩兪兯兲兺兾兿冃冄円冇冊冋冎冏冐冑冓冔冘冚冝冞冟冡冣冦冧冨冩冪冭冮冴冸冹冺冾冿凁凂凃凅凈凊凍凎凐凒凓凔凕凖凗�".split(""),e=0;e!=t[131].length;++e)t[131][e].charCodeAt(0)!==65533&&(i[t[131][e]]=33536+e,o[33536+e]=t[131][e]);for(t[132]="����������������������������������������������������������������凘凙凚凜凞凟凢凣凥処凧凨凩凪凬凮凱凲凴凷凾刄刅刉刋刌刏刐刓刔刕刜刞刟刡刢刣別刦刧刪刬刯刱刲刴刵刼刾剄剅剆則剈剉剋剎剏剒剓剕剗剘�剙剚剛剝剟剠剢剣剤剦剨剫剬剭剮剰剱剳剴創剶剷剸剹剺剻剼剾劀劃劄劅劆劇劉劊劋劌劍劎劏劑劒劔劕劖劗劘劙劚劜劤劥劦劧劮劯劰労劵劶劷劸効劺劻劼劽勀勁勂勄勅勆勈勊勌勍勎勏勑勓勔動勗務勚勛勜勝勞勠勡勢勣勥勦勧勨勩勪勫勬勭勮勯勱勲勳勴勵勶勷勸勻勼勽匁匂匃匄匇匉匊匋匌匎�".split(""),e=0;e!=t[132].length;++e)t[132][e].charCodeAt(0)!==65533&&(i[t[132][e]]=33792+e,o[33792+e]=t[132][e]);for(t[133]="����������������������������������������������������������������匑匒匓匔匘匛匜匞匟匢匤匥匧匨匩匫匬匭匯匰匱匲匳匴匵匶匷匸匼匽區卂卄卆卋卌卍卐協単卙卛卝卥卨卪卬卭卲卶卹卻卼卽卾厀厁厃厇厈厊厎厏�厐厑厒厓厔厖厗厙厛厜厞厠厡厤厧厪厫厬厭厯厰厱厲厳厴厵厷厸厹厺厼厽厾叀參叄叅叆叇収叏叐叒叓叕叚叜叝叞叡叢叧叴叺叾叿吀吂吅吇吋吔吘吙吚吜吢吤吥吪吰吳吶吷吺吽吿呁呂呄呅呇呉呌呍呎呏呑呚呝呞呟呠呡呣呥呧呩呪呫呬呭呮呯呰呴呹呺呾呿咁咃咅咇咈咉咊咍咑咓咗咘咜咞咟咠咡�".split(""),e=0;e!=t[133].length;++e)t[133][e].charCodeAt(0)!==65533&&(i[t[133][e]]=34048+e,o[34048+e]=t[133][e]);for(t[134]="����������������������������������������������������������������咢咥咮咰咲咵咶咷咹咺咼咾哃哅哊哋哖哘哛哠員哢哣哤哫哬哯哰哱哴哵哶哷哸哹哻哾唀唂唃唄唅唈唊唋唌唍唎唒唓唕唖唗唘唙唚唜唝唞唟唡唥唦�唨唩唫唭唲唴唵唶唸唹唺唻唽啀啂啅啇啈啋啌啍啎問啑啒啓啔啗啘啙啚啛啝啞啟啠啢啣啨啩啫啯啰啱啲啳啴啹啺啽啿喅喆喌喍喎喐喒喓喕喖喗喚喛喞喠喡喢喣喤喥喦喨喩喪喫喬喭單喯喰喲喴営喸喺喼喿嗀嗁嗂嗃嗆嗇嗈嗊嗋嗎嗏嗐嗕嗗嗘嗙嗚嗛嗞嗠嗢嗧嗩嗭嗮嗰嗱嗴嗶嗸嗹嗺嗻嗼嗿嘂嘃嘄嘅�".split(""),e=0;e!=t[134].length;++e)t[134][e].charCodeAt(0)!==65533&&(i[t[134][e]]=34304+e,o[34304+e]=t[134][e]);for(t[135]="����������������������������������������������������������������嘆嘇嘊嘋嘍嘐嘑嘒嘓嘔嘕嘖嘗嘙嘚嘜嘝嘠嘡嘢嘥嘦嘨嘩嘪嘫嘮嘯嘰嘳嘵嘷嘸嘺嘼嘽嘾噀噁噂噃噄噅噆噇噈噉噊噋噏噐噑噒噓噕噖噚噛噝噞噟噠噡�噣噥噦噧噭噮噯噰噲噳噴噵噷噸噹噺噽噾噿嚀嚁嚂嚃嚄嚇嚈嚉嚊嚋嚌嚍嚐嚑嚒嚔嚕嚖嚗嚘嚙嚚嚛嚜嚝嚞嚟嚠嚡嚢嚤嚥嚦嚧嚨嚩嚪嚫嚬嚭嚮嚰嚱嚲嚳嚴嚵嚶嚸嚹嚺嚻嚽嚾嚿囀囁囂囃囄囅囆囇囈囉囋囌囍囎囏囐囑囒囓囕囖囘囙囜団囥囦囧囨囩囪囬囮囯囲図囶囷囸囻囼圀圁圂圅圇國圌圍圎圏圐圑�".split(""),e=0;e!=t[135].length;++e)t[135][e].charCodeAt(0)!==65533&&(i[t[135][e]]=34560+e,o[34560+e]=t[135][e]);for(t[136]="����������������������������������������������������������������園圓圔圕圖圗團圙圚圛圝圞圠圡圢圤圥圦圧圫圱圲圴圵圶圷圸圼圽圿坁坃坄坅坆坈坉坋坒坓坔坕坖坘坙坢坣坥坧坬坮坰坱坲坴坵坸坹坺坽坾坿垀�垁垇垈垉垊垍垎垏垐垑垔垕垖垗垘垙垚垜垝垞垟垥垨垪垬垯垰垱垳垵垶垷垹垺垻垼垽垾垿埀埁埄埅埆埇埈埉埊埌埍埐埑埓埖埗埛埜埞埡埢埣埥埦埧埨埩埪埫埬埮埰埱埲埳埵埶執埻埼埾埿堁堃堄堅堈堉堊堌堎堏堐堒堓堔堖堗堘堚堛堜堝堟堢堣堥堦堧堨堩堫堬堭堮堯報堲堳場堶堷堸堹堺堻堼堽�".split(""),e=0;e!=t[136].length;++e)t[136][e].charCodeAt(0)!==65533&&(i[t[136][e]]=34816+e,o[34816+e]=t[136][e]);for(t[137]="����������������������������������������������������������������堾堿塀塁塂塃塅塆塇塈塉塊塋塎塏塐塒塓塕塖塗塙塚塛塜塝塟塠塡塢塣塤塦塧塨塩塪塭塮塯塰塱塲塳塴塵塶塷塸塹塺塻塼塽塿墂墄墆墇墈墊墋墌�墍墎墏墐墑墔墕墖増墘墛墜墝墠墡墢墣墤墥墦墧墪墫墬墭墮墯墰墱墲墳墴墵墶墷墸墹墺墻墽墾墿壀壂壃壄壆壇壈壉壊壋壌壍壎壏壐壒壓壔壖壗壘壙壚壛壜壝壞壟壠壡壢壣壥壦壧壨壩壪壭壯壱売壴壵壷壸壺壻壼壽壾壿夀夁夃夅夆夈変夊夋夌夎夐夑夒夓夗夘夛夝夞夠夡夢夣夦夨夬夰夲夳夵夶夻�".split(""),e=0;e!=t[137].length;++e)t[137][e].charCodeAt(0)!==65533&&(i[t[137][e]]=35072+e,o[35072+e]=t[137][e]);for(t[138]="����������������������������������������������������������������夽夾夿奀奃奅奆奊奌奍奐奒奓奙奛奜奝奞奟奡奣奤奦奧奨奩奪奫奬奭奮奯奰奱奲奵奷奺奻奼奾奿妀妅妉妋妌妎妏妐妑妔妕妘妚妛妜妝妟妠妡妢妦�妧妬妭妰妱妳妴妵妶妷妸妺妼妽妿姀姁姂姃姄姅姇姈姉姌姍姎姏姕姖姙姛姞姟姠姡姢姤姦姧姩姪姫姭姮姯姰姱姲姳姴姵姶姷姸姺姼姽姾娀娂娊娋娍娎娏娐娒娔娕娖娗娙娚娛娝娞娡娢娤娦娧娨娪娫娬娭娮娯娰娳娵娷娸娹娺娻娽娾娿婁婂婃婄婅婇婈婋婌婍婎婏婐婑婒婓婔婖婗婘婙婛婜婝婞婟婠�".split(""),e=0;e!=t[138].length;++e)t[138][e].charCodeAt(0)!==65533&&(i[t[138][e]]=35328+e,o[35328+e]=t[138][e]);for(t[139]="����������������������������������������������������������������婡婣婤婥婦婨婩婫婬婭婮婯婰婱婲婳婸婹婻婼婽婾媀媁媂媃媄媅媆媇媈媉媊媋媌媍媎媏媐媑媓媔媕媖媗媘媙媜媝媞媟媠媡媢媣媤媥媦媧媨媩媫媬�媭媮媯媰媱媴媶媷媹媺媻媼媽媿嫀嫃嫄嫅嫆嫇嫈嫊嫋嫍嫎嫏嫐嫑嫓嫕嫗嫙嫚嫛嫝嫞嫟嫢嫤嫥嫧嫨嫪嫬嫭嫮嫯嫰嫲嫳嫴嫵嫶嫷嫸嫹嫺嫻嫼嫽嫾嫿嬀嬁嬂嬃嬄嬅嬆嬇嬈嬊嬋嬌嬍嬎嬏嬐嬑嬒嬓嬔嬕嬘嬙嬚嬛嬜嬝嬞嬟嬠嬡嬢嬣嬤嬥嬦嬧嬨嬩嬪嬫嬬嬭嬮嬯嬰嬱嬳嬵嬶嬸嬹嬺嬻嬼嬽嬾嬿孁孂孃孄孅孆孇�".split(""),e=0;e!=t[139].length;++e)t[139][e].charCodeAt(0)!==65533&&(i[t[139][e]]=35584+e,o[35584+e]=t[139][e]);for(t[140]="����������������������������������������������������������������孈孉孊孋孌孍孎孏孒孖孞孠孡孧孨孫孭孮孯孲孴孶孷學孹孻孼孾孿宂宆宊宍宎宐宑宒宔宖実宧宨宩宬宭宮宯宱宲宷宺宻宼寀寁寃寈寉寊寋寍寎寏�寑寔寕寖寗寘寙寚寛寜寠寢寣實寧審寪寫寬寭寯寱寲寳寴寵寶寷寽対尀専尃尅將專尋尌對導尐尒尓尗尙尛尞尟尠尡尣尦尨尩尪尫尭尮尯尰尲尳尵尶尷屃屄屆屇屌屍屒屓屔屖屗屘屚屛屜屝屟屢層屧屨屩屪屫屬屭屰屲屳屴屵屶屷屸屻屼屽屾岀岃岄岅岆岇岉岊岋岎岏岒岓岕岝岞岟岠岡岤岥岦岧岨�".split(""),e=0;e!=t[140].length;++e)t[140][e].charCodeAt(0)!==65533&&(i[t[140][e]]=35840+e,o[35840+e]=t[140][e]);for(t[141]="����������������������������������������������������������������岪岮岯岰岲岴岶岹岺岻岼岾峀峂峃峅峆峇峈峉峊峌峍峎峏峐峑峓峔峕峖峗峘峚峛峜峝峞峟峠峢峣峧峩峫峬峮峯峱峲峳峴峵島峷峸峹峺峼峽峾峿崀�崁崄崅崈崉崊崋崌崍崏崐崑崒崓崕崗崘崙崚崜崝崟崠崡崢崣崥崨崪崫崬崯崰崱崲崳崵崶崷崸崹崺崻崼崿嵀嵁嵂嵃嵄嵅嵆嵈嵉嵍嵎嵏嵐嵑嵒嵓嵔嵕嵖嵗嵙嵚嵜嵞嵟嵠嵡嵢嵣嵤嵥嵦嵧嵨嵪嵭嵮嵰嵱嵲嵳嵵嵶嵷嵸嵹嵺嵻嵼嵽嵾嵿嶀嶁嶃嶄嶅嶆嶇嶈嶉嶊嶋嶌嶍嶎嶏嶐嶑嶒嶓嶔嶕嶖嶗嶘嶚嶛嶜嶞嶟嶠�".split(""),e=0;e!=t[141].length;++e)t[141][e].charCodeAt(0)!==65533&&(i[t[141][e]]=36096+e,o[36096+e]=t[141][e]);for(t[142]="����������������������������������������������������������������嶡嶢嶣嶤嶥嶦嶧嶨嶩嶪嶫嶬嶭嶮嶯嶰嶱嶲嶳嶴嶵嶶嶸嶹嶺嶻嶼嶽嶾嶿巀巁巂巃巄巆巇巈巉巊巋巌巎巏巐巑巒巓巔巕巖巗巘巙巚巜巟巠巣巤巪巬巭�巰巵巶巸巹巺巻巼巿帀帄帇帉帊帋帍帎帒帓帗帞帟帠帡帢帣帤帥帨帩帪師帬帯帰帲帳帴帵帶帹帺帾帿幀幁幃幆幇幈幉幊幋幍幎幏幐幑幒幓幖幗幘幙幚幜幝幟幠幣幤幥幦幧幨幩幪幫幬幭幮幯幰幱幵幷幹幾庁庂広庅庈庉庌庍庎庒庘庛庝庡庢庣庤庨庩庪庫庬庮庯庰庱庲庴庺庻庼庽庿廀廁廂廃廄廅�".split(""),e=0;e!=t[142].length;++e)t[142][e].charCodeAt(0)!==65533&&(i[t[142][e]]=36352+e,o[36352+e]=t[142][e]);for(t[143]="����������������������������������������������������������������廆廇廈廋廌廍廎廏廐廔廕廗廘廙廚廜廝廞廟廠廡廢廣廤廥廦廧廩廫廬廭廮廯廰廱廲廳廵廸廹廻廼廽弅弆弇弉弌弍弎弐弒弔弖弙弚弜弝弞弡弢弣弤�弨弫弬弮弰弲弳弴張弶強弸弻弽弾弿彁彂彃彄彅彆彇彈彉彊彋彌彍彎彏彑彔彙彚彛彜彞彟彠彣彥彧彨彫彮彯彲彴彵彶彸彺彽彾彿徃徆徍徎徏徑従徔徖徚徛徝從徟徠徢徣徤徥徦徧復徫徬徯徰徱徲徳徴徶徸徹徺徻徾徿忀忁忂忇忈忊忋忎忓忔忕忚忛応忞忟忢忣忥忦忨忩忬忯忰忲忳忴忶忷忹忺忼怇�".split(""),e=0;e!=t[143].length;++e)t[143][e].charCodeAt(0)!==65533&&(i[t[143][e]]=36608+e,o[36608+e]=t[143][e]);for(t[144]="����������������������������������������������������������������怈怉怋怌怐怑怓怗怘怚怞怟怢怣怤怬怭怮怰怱怲怳怴怶怷怸怹怺怽怾恀恄恅恆恇恈恉恊恌恎恏恑恓恔恖恗恘恛恜恞恟恠恡恥恦恮恱恲恴恵恷恾悀�悁悂悅悆悇悈悊悋悎悏悐悑悓悕悗悘悙悜悞悡悢悤悥悧悩悪悮悰悳悵悶悷悹悺悽悾悿惀惁惂惃惄惇惈惉惌惍惎惏惐惒惓惔惖惗惙惛惞惡惢惣惤惥惪惱惲惵惷惸惻惼惽惾惿愂愃愄愅愇愊愋愌愐愑愒愓愔愖愗愘愙愛愜愝愞愡愢愥愨愩愪愬愭愮愯愰愱愲愳愴愵愶愷愸愹愺愻愼愽愾慀慁慂慃慄慅慆�".split(""),e=0;e!=t[144].length;++e)t[144][e].charCodeAt(0)!==65533&&(i[t[144][e]]=36864+e,o[36864+e]=t[144][e]);for(t[145]="����������������������������������������������������������������慇慉態慍慏慐慒慓慔慖慗慘慙慚慛慜慞慟慠慡慣慤慥慦慩慪慫慬慭慮慯慱慲慳慴慶慸慹慺慻慼慽慾慿憀憁憂憃憄憅憆憇憈憉憊憌憍憏憐憑憒憓憕�憖憗憘憙憚憛憜憞憟憠憡憢憣憤憥憦憪憫憭憮憯憰憱憲憳憴憵憶憸憹憺憻憼憽憿懀懁懃懄懅懆懇應懌懍懎懏懐懓懕懖懗懘懙懚懛懜懝懞懟懠懡懢懣懤懥懧懨懩懪懫懬懭懮懯懰懱懲懳懴懶懷懸懹懺懻懼懽懾戀戁戂戃戄戅戇戉戓戔戙戜戝戞戠戣戦戧戨戩戫戭戯戰戱戲戵戶戸戹戺戻戼扂扄扅扆扊�".split(""),e=0;e!=t[145].length;++e)t[145][e].charCodeAt(0)!==65533&&(i[t[145][e]]=37120+e,o[37120+e]=t[145][e]);for(t[146]="����������������������������������������������������������������扏扐払扖扗扙扚扜扝扞扟扠扡扢扤扥扨扱扲扴扵扷扸扺扻扽抁抂抃抅抆抇抈抋抌抍抎抏抐抔抙抜抝択抣抦抧抩抪抭抮抯抰抲抳抴抶抷抸抺抾拀拁�拃拋拏拑拕拝拞拠拡拤拪拫拰拲拵拸拹拺拻挀挃挄挅挆挊挋挌挍挏挐挒挓挔挕挗挘挙挜挦挧挩挬挭挮挰挱挳挴挵挶挷挸挻挼挾挿捀捁捄捇捈捊捑捒捓捔捖捗捘捙捚捛捜捝捠捤捥捦捨捪捫捬捯捰捲捳捴捵捸捹捼捽捾捿掁掃掄掅掆掋掍掑掓掔掕掗掙掚掛掜掝掞掟採掤掦掫掯掱掲掵掶掹掻掽掿揀�".split(""),e=0;e!=t[146].length;++e)t[146][e].charCodeAt(0)!==65533&&(i[t[146][e]]=37376+e,o[37376+e]=t[146][e]);for(t[147]="����������������������������������������������������������������揁揂揃揅揇揈揊揋揌揑揓揔揕揗揘揙揚換揜揝揟揢揤揥揦揧揨揫揬揮揯揰揱揳揵揷揹揺揻揼揾搃搄搆搇搈搉搊損搎搑搒搕搖搗搘搙搚搝搟搢搣搤�搥搧搨搩搫搮搯搰搱搲搳搵搶搷搸搹搻搼搾摀摂摃摉摋摌摍摎摏摐摑摓摕摖摗摙摚摛摜摝摟摠摡摢摣摤摥摦摨摪摫摬摮摯摰摱摲摳摴摵摶摷摻摼摽摾摿撀撁撃撆撈撉撊撋撌撍撎撏撐撓撔撗撘撚撛撜撝撟撠撡撢撣撥撦撧撨撪撫撯撱撲撳撴撶撹撻撽撾撿擁擃擄擆擇擈擉擊擋擌擏擑擓擔擕擖擙據�".split(""),e=0;e!=t[147].length;++e)t[147][e].charCodeAt(0)!==65533&&(i[t[147][e]]=37632+e,o[37632+e]=t[147][e]);for(t[148]="����������������������������������������������������������������擛擜擝擟擠擡擣擥擧擨擩擪擫擬擭擮擯擰擱擲擳擴擵擶擷擸擹擺擻擼擽擾擿攁攂攃攄攅攆攇攈攊攋攌攍攎攏攐攑攓攔攕攖攗攙攚攛攜攝攞攟攠攡�攢攣攤攦攧攨攩攪攬攭攰攱攲攳攷攺攼攽敀敁敂敃敄敆敇敊敋敍敎敐敒敓敔敗敘敚敜敟敠敡敤敥敧敨敩敪敭敮敯敱敳敵敶數敹敺敻敼敽敾敿斀斁斂斃斄斅斆斈斉斊斍斎斏斒斔斕斖斘斚斝斞斠斢斣斦斨斪斬斮斱斲斳斴斵斶斷斸斺斻斾斿旀旂旇旈旉旊旍旐旑旓旔旕旘旙旚旛旜旝旞旟旡旣旤旪旫�".split(""),e=0;e!=t[148].length;++e)t[148][e].charCodeAt(0)!==65533&&(i[t[148][e]]=37888+e,o[37888+e]=t[148][e]);for(t[149]="����������������������������������������������������������������旲旳旴旵旸旹旻旼旽旾旿昁昄昅昇昈昉昋昍昐昑昒昖昗昘昚昛昜昞昡昢昣昤昦昩昪昫昬昮昰昲昳昷昸昹昺昻昽昿晀時晄晅晆晇晈晉晊晍晎晐晑晘�晙晛晜晝晞晠晢晣晥晧晩晪晫晬晭晱晲晳晵晸晹晻晼晽晿暀暁暃暅暆暈暉暊暋暍暎暏暐暒暓暔暕暘暙暚暛暜暞暟暠暡暢暣暤暥暦暩暪暫暬暭暯暰暱暲暳暵暶暷暸暺暻暼暽暿曀曁曂曃曄曅曆曇曈曉曊曋曌曍曎曏曐曑曒曓曔曕曖曗曘曚曞曟曠曡曢曣曤曥曧曨曪曫曬曭曮曯曱曵曶書曺曻曽朁朂會�".split(""),e=0;e!=t[149].length;++e)t[149][e].charCodeAt(0)!==65533&&(i[t[149][e]]=38144+e,o[38144+e]=t[149][e]);for(t[150]="����������������������������������������������������������������朄朅朆朇朌朎朏朑朒朓朖朘朙朚朜朞朠朡朢朣朤朥朧朩朮朰朲朳朶朷朸朹朻朼朾朿杁杄杅杇杊杋杍杒杔杕杗杘杙杚杛杝杢杣杤杦杧杫杬杮東杴杶�杸杹杺杻杽枀枂枃枅枆枈枊枌枍枎枏枑枒枓枔枖枙枛枟枠枡枤枦枩枬枮枱枲枴枹枺枻枼枽枾枿柀柂柅柆柇柈柉柊柋柌柍柎柕柖柗柛柟柡柣柤柦柧柨柪柫柭柮柲柵柶柷柸柹柺査柼柾栁栂栃栄栆栍栐栒栔栕栘栙栚栛栜栞栟栠栢栣栤栥栦栧栨栫栬栭栮栯栰栱栴栵栶栺栻栿桇桋桍桏桒桖桗桘桙桚桛�".split(""),e=0;e!=t[150].length;++e)t[150][e].charCodeAt(0)!==65533&&(i[t[150][e]]=38400+e,o[38400+e]=t[150][e]);for(t[151]="����������������������������������������������������������������桜桝桞桟桪桬桭桮桯桰桱桲桳桵桸桹桺桻桼桽桾桿梀梂梄梇梈梉梊梋梌梍梎梐梑梒梔梕梖梘梙梚梛梜條梞梟梠梡梣梤梥梩梪梫梬梮梱梲梴梶梷梸�梹梺梻梼梽梾梿棁棃棄棅棆棇棈棊棌棎棏棐棑棓棔棖棗棙棛棜棝棞棟棡棢棤棥棦棧棨棩棪棫棬棭棯棲棳棴棶棷棸棻棽棾棿椀椂椃椄椆椇椈椉椊椌椏椑椓椔椕椖椗椘椙椚椛検椝椞椡椢椣椥椦椧椨椩椪椫椬椮椯椱椲椳椵椶椷椸椺椻椼椾楀楁楃楄楅楆楇楈楉楊楋楌楍楎楏楐楑楒楓楕楖楘楙楛楜楟�".split(""),e=0;e!=t[151].length;++e)t[151][e].charCodeAt(0)!==65533&&(i[t[151][e]]=38656+e,o[38656+e]=t[151][e]);for(t[152]="����������������������������������������������������������������楡楢楤楥楧楨楩楪楬業楯楰楲楳楴極楶楺楻楽楾楿榁榃榅榊榋榌榎榏榐榑榒榓榖榗榙榚榝榞榟榠榡榢榣榤榥榦榩榪榬榮榯榰榲榳榵榶榸榹榺榼榽�榾榿槀槂槃槄槅槆槇槈槉構槍槏槑槒槓槕槖槗様槙槚槜槝槞槡槢槣槤槥槦槧槨槩槪槫槬槮槯槰槱槳槴槵槶槷槸槹槺槻槼槾樀樁樂樃樄樅樆樇樈樉樋樌樍樎樏樐樑樒樓樔樕樖標樚樛樜樝樞樠樢樣樤樥樦樧権樫樬樭樮樰樲樳樴樶樷樸樹樺樻樼樿橀橁橂橃橅橆橈橉橊橋橌橍橎橏橑橒橓橔橕橖橗橚�".split(""),e=0;e!=t[152].length;++e)t[152][e].charCodeAt(0)!==65533&&(i[t[152][e]]=38912+e,o[38912+e]=t[152][e]);for(t[153]="����������������������������������������������������������������橜橝橞機橠橢橣橤橦橧橨橩橪橫橬橭橮橯橰橲橳橴橵橶橷橸橺橻橽橾橿檁檂檃檅檆檇檈檉檊檋檌檍檏檒檓檔檕檖檘檙檚檛檜檝檞檟檡檢檣檤檥檦�檧檨檪檭檮檯檰檱檲檳檴檵檶檷檸檹檺檻檼檽檾檿櫀櫁櫂櫃櫄櫅櫆櫇櫈櫉櫊櫋櫌櫍櫎櫏櫐櫑櫒櫓櫔櫕櫖櫗櫘櫙櫚櫛櫜櫝櫞櫟櫠櫡櫢櫣櫤櫥櫦櫧櫨櫩櫪櫫櫬櫭櫮櫯櫰櫱櫲櫳櫴櫵櫶櫷櫸櫹櫺櫻櫼櫽櫾櫿欀欁欂欃欄欅欆欇欈欉權欋欌欍欎欏欐欑欒欓欔欕欖欗欘欙欚欛欜欝欞欟欥欦欨欩欪欫欬欭欮�".split(""),e=0;e!=t[153].length;++e)t[153][e].charCodeAt(0)!==65533&&(i[t[153][e]]=39168+e,o[39168+e]=t[153][e]);for(t[154]="����������������������������������������������������������������欯欰欱欳欴欵欶欸欻欼欽欿歀歁歂歄歅歈歊歋歍歎歏歐歑歒歓歔歕歖歗歘歚歛歜歝歞歟歠歡歨歩歫歬歭歮歯歰歱歲歳歴歵歶歷歸歺歽歾歿殀殅殈�殌殎殏殐殑殔殕殗殘殙殜殝殞殟殠殢殣殤殥殦殧殨殩殫殬殭殮殯殰殱殲殶殸殹殺殻殼殽殾毀毃毄毆毇毈毉毊毌毎毐毑毘毚毜毝毞毟毠毢毣毤毥毦毧毨毩毬毭毮毰毱毲毴毶毷毸毺毻毼毾毿氀氁氂氃氄氈氉氊氋氌氎氒気氜氝氞氠氣氥氫氬氭氱氳氶氷氹氺氻氼氾氿汃汄汅汈汋汌汍汎汏汑汒汓汖汘�".split(""),e=0;e!=t[154].length;++e)t[154][e].charCodeAt(0)!==65533&&(i[t[154][e]]=39424+e,o[39424+e]=t[154][e]);for(t[155]="����������������������������������������������������������������汙汚汢汣汥汦汧汫汬汭汮汯汱汳汵汷汸決汻汼汿沀沄沇沊沋沍沎沑沒沕沖沗沘沚沜沝沞沠沢沨沬沯沰沴沵沶沷沺泀況泂泃泆泇泈泋泍泎泏泑泒泘�泙泚泜泝泟泤泦泧泩泬泭泲泴泹泿洀洂洃洅洆洈洉洊洍洏洐洑洓洔洕洖洘洜洝洟洠洡洢洣洤洦洨洩洬洭洯洰洴洶洷洸洺洿浀浂浄浉浌浐浕浖浗浘浛浝浟浡浢浤浥浧浨浫浬浭浰浱浲浳浵浶浹浺浻浽浾浿涀涁涃涄涆涇涊涋涍涏涐涒涖涗涘涙涚涜涢涥涬涭涰涱涳涴涶涷涹涺涻涼涽涾淁淂淃淈淉淊�".split(""),e=0;e!=t[155].length;++e)t[155][e].charCodeAt(0)!==65533&&(i[t[155][e]]=39680+e,o[39680+e]=t[155][e]);for(t[156]="����������������������������������������������������������������淍淎淏淐淒淓淔淕淗淚淛淜淟淢淣淥淧淨淩淪淭淯淰淲淴淵淶淸淺淽淾淿渀渁渂渃渄渆渇済渉渋渏渒渓渕渘渙減渜渞渟渢渦渧渨渪測渮渰渱渳渵�渶渷渹渻渼渽渾渿湀湁湂湅湆湇湈湉湊湋湌湏湐湑湒湕湗湙湚湜湝湞湠湡湢湣湤湥湦湧湨湩湪湬湭湯湰湱湲湳湴湵湶湷湸湹湺湻湼湽満溁溂溄溇溈溊溋溌溍溎溑溒溓溔溕準溗溙溚溛溝溞溠溡溣溤溦溨溩溫溬溭溮溰溳溵溸溹溼溾溿滀滃滄滅滆滈滉滊滌滍滎滐滒滖滘滙滛滜滝滣滧滪滫滬滭滮滯�".split(""),e=0;e!=t[156].length;++e)t[156][e].charCodeAt(0)!==65533&&(i[t[156][e]]=39936+e,o[39936+e]=t[156][e]);for(t[157]="����������������������������������������������������������������滰滱滲滳滵滶滷滸滺滻滼滽滾滿漀漁漃漄漅漇漈漊漋漌漍漎漐漑漒漖漗漘漙漚漛漜漝漞漟漡漢漣漥漦漧漨漬漮漰漲漴漵漷漸漹漺漻漼漽漿潀潁潂�潃潄潅潈潉潊潌潎潏潐潑潒潓潔潕潖潗潙潚潛潝潟潠潡潣潤潥潧潨潩潪潫潬潯潰潱潳潵潶潷潹潻潽潾潿澀澁澂澃澅澆澇澊澋澏澐澑澒澓澔澕澖澗澘澙澚澛澝澞澟澠澢澣澤澥澦澨澩澪澫澬澭澮澯澰澱澲澴澵澷澸澺澻澼澽澾澿濁濃濄濅濆濇濈濊濋濌濍濎濏濐濓濔濕濖濗濘濙濚濛濜濝濟濢濣濤濥�".split(""),e=0;e!=t[157].length;++e)t[157][e].charCodeAt(0)!==65533&&(i[t[157][e]]=40192+e,o[40192+e]=t[157][e]);for(t[158]="����������������������������������������������������������������濦濧濨濩濪濫濬濭濰濱濲濳濴濵濶濷濸濹濺濻濼濽濾濿瀀瀁瀂瀃瀄瀅瀆瀇瀈瀉瀊瀋瀌瀍瀎瀏瀐瀒瀓瀔瀕瀖瀗瀘瀙瀜瀝瀞瀟瀠瀡瀢瀤瀥瀦瀧瀨瀩瀪�瀫瀬瀭瀮瀯瀰瀱瀲瀳瀴瀶瀷瀸瀺瀻瀼瀽瀾瀿灀灁灂灃灄灅灆灇灈灉灊灋灍灎灐灑灒灓灔灕灖灗灘灙灚灛灜灝灟灠灡灢灣灤灥灦灧灨灩灪灮灱灲灳灴灷灹灺灻災炁炂炃炄炆炇炈炋炌炍炏炐炑炓炗炘炚炛炞炟炠炡炢炣炤炥炦炧炨炩炪炰炲炴炵炶為炾炿烄烅烆烇烉烋烌烍烎烏烐烑烒烓烔烕烖烗烚�".split(""),e=0;e!=t[158].length;++e)t[158][e].charCodeAt(0)!==65533&&(i[t[158][e]]=40448+e,o[40448+e]=t[158][e]);for(t[159]="����������������������������������������������������������������烜烝烞烠烡烢烣烥烪烮烰烱烲烳烴烵烶烸烺烻烼烾烿焀焁焂焃焄焅焆焇焈焋焌焍焎焏焑焒焔焗焛焜焝焞焟焠無焢焣焤焥焧焨焩焪焫焬焭焮焲焳焴�焵焷焸焹焺焻焼焽焾焿煀煁煂煃煄煆煇煈煉煋煍煏煐煑煒煓煔煕煖煗煘煙煚煛煝煟煠煡煢煣煥煩煪煫煬煭煯煰煱煴煵煶煷煹煻煼煾煿熀熁熂熃熅熆熇熈熉熋熌熍熎熐熑熒熓熕熖熗熚熛熜熝熞熡熢熣熤熥熦熧熩熪熫熭熮熯熰熱熲熴熶熷熸熺熻熼熽熾熿燀燁燂燄燅燆燇燈燉燊燋燌燍燏燐燑燒燓�".split(""),e=0;e!=t[159].length;++e)t[159][e].charCodeAt(0)!==65533&&(i[t[159][e]]=40704+e,o[40704+e]=t[159][e]);for(t[160]="����������������������������������������������������������������燖燗燘燙燚燛燜燝燞營燡燢燣燤燦燨燩燪燫燬燭燯燰燱燲燳燴燵燶燷燸燺燻燼燽燾燿爀爁爂爃爄爅爇爈爉爊爋爌爍爎爏爐爑爒爓爔爕爖爗爘爙爚�爛爜爞爟爠爡爢爣爤爥爦爧爩爫爭爮爯爲爳爴爺爼爾牀牁牂牃牄牅牆牉牊牋牎牏牐牑牓牔牕牗牘牚牜牞牠牣牤牥牨牪牫牬牭牰牱牳牴牶牷牸牻牼牽犂犃犅犆犇犈犉犌犎犐犑犓犔犕犖犗犘犙犚犛犜犝犞犠犡犢犣犤犥犦犧犨犩犪犫犮犱犲犳犵犺犻犼犽犾犿狀狅狆狇狉狊狋狌狏狑狓狔狕狖狘狚狛�".split(""),e=0;e!=t[160].length;++e)t[160][e].charCodeAt(0)!==65533&&(i[t[160][e]]=40960+e,o[40960+e]=t[160][e]);for(t[161]="����������������������������������������������������������������������������������������������������������������������������������������������������������������� 、。·ˉˇ¨〃々—~‖…‘’“”〔〕〈〉《》「」『』〖〗【】±×÷∶∧∨∑∏∪∩∈∷√⊥∥∠⌒⊙∫∮≡≌≈∽∝≠≮≯≤≥∞∵∴♂♀°′″℃$¤¢£‰§№☆★○●◎◇◆□■△▲※→←↑↓〓�".split(""),e=0;e!=t[161].length;++e)t[161][e].charCodeAt(0)!==65533&&(i[t[161][e]]=41216+e,o[41216+e]=t[161][e]);for(t[162]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹ������⒈⒉⒊⒋⒌⒍⒎⒏⒐⒑⒒⒓⒔⒕⒖⒗⒘⒙⒚⒛⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽⑾⑿⒀⒁⒂⒃⒄⒅⒆⒇①②③④⑤⑥⑦⑧⑨⑩��㈠㈡㈢㈣㈤㈥㈦㈧㈨㈩��ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ���".split(""),e=0;e!=t[162].length;++e)t[162][e].charCodeAt(0)!==65533&&(i[t[162][e]]=41472+e,o[41472+e]=t[162][e]);for(t[163]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������!"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|} ̄�".split(""),e=0;e!=t[163].length;++e)t[163][e].charCodeAt(0)!==65533&&(i[t[163][e]]=41728+e,o[41728+e]=t[163][e]);for(t[164]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをん������������".split(""),e=0;e!=t[164].length;++e)t[164][e].charCodeAt(0)!==65533&&(i[t[164][e]]=41984+e,o[41984+e]=t[164][e]);for(t[165]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ���������".split(""),e=0;e!=t[165].length;++e)t[165][e].charCodeAt(0)!==65533&&(i[t[165][e]]=42240+e,o[42240+e]=t[165][e]);for(t[166]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ��������αβγδεζηθικλμνξοπρστυφχψω�������︵︶︹︺︿﹀︽︾﹁﹂﹃﹄��︻︼︷︸︱�︳︴����������".split(""),e=0;e!=t[166].length;++e)t[166][e].charCodeAt(0)!==65533&&(i[t[166][e]]=42496+e,o[42496+e]=t[166][e]);for(t[167]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ���������������абвгдеёжзийклмнопрстуфхцчшщъыьэюя��������������".split(""),e=0;e!=t[167].length;++e)t[167][e].charCodeAt(0)!==65533&&(i[t[167][e]]=42752+e,o[42752+e]=t[167][e]);for(t[168]="����������������������������������������������������������������ˊˋ˙–―‥‵℅℉↖↗↘↙∕∟∣≒≦≧⊿═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╭╮╯╰╱╲╳▁▂▃▄▅▆▇�█▉▊▋▌▍▎▏▓▔▕▼▽◢◣◤◥☉⊕〒〝〞�����������āáǎàēéěèīíǐìōóǒòūúǔùǖǘǚǜüêɑ�ńň�ɡ����ㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦㄧㄨㄩ����������������������".split(""),e=0;e!=t[168].length;++e)t[168][e].charCodeAt(0)!==65533&&(i[t[168][e]]=43008+e,o[43008+e]=t[168][e]);for(t[169]="����������������������������������������������������������������〡〢〣〤〥〦〧〨〩㊣㎎㎏㎜㎝㎞㎡㏄㏎㏑㏒㏕︰¬¦�℡㈱�‐���ー゛゜ヽヾ〆ゝゞ﹉﹊﹋﹌﹍﹎﹏﹐﹑﹒﹔﹕﹖﹗﹙﹚﹛﹜﹝﹞﹟﹠﹡�﹢﹣﹤﹥﹦﹨﹩﹪﹫�������������〇�������������─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋����������������".split(""),e=0;e!=t[169].length;++e)t[169][e].charCodeAt(0)!==65533&&(i[t[169][e]]=43264+e,o[43264+e]=t[169][e]);for(t[170]="����������������������������������������������������������������狜狝狟狢狣狤狥狦狧狪狫狵狶狹狽狾狿猀猂猄猅猆猇猈猉猋猌猍猏猐猑猒猔猘猙猚猟猠猣猤猦猧猨猭猯猰猲猳猵猶猺猻猼猽獀獁獂獃獄獅獆獇獈�獉獊獋獌獎獏獑獓獔獕獖獘獙獚獛獜獝獞獟獡獢獣獤獥獦獧獨獩獪獫獮獰獱�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[170].length;++e)t[170][e].charCodeAt(0)!==65533&&(i[t[170][e]]=43520+e,o[43520+e]=t[170][e]);for(t[171]="����������������������������������������������������������������獲獳獴獵獶獷獸獹獺獻獼獽獿玀玁玂玃玅玆玈玊玌玍玏玐玒玓玔玕玗玘玙玚玜玝玞玠玡玣玤玥玦玧玨玪玬玭玱玴玵玶玸玹玼玽玾玿珁珃珄珅珆珇�珋珌珎珒珓珔珕珖珗珘珚珛珜珝珟珡珢珣珤珦珨珪珫珬珮珯珰珱珳珴珵珶珷�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[171].length;++e)t[171][e].charCodeAt(0)!==65533&&(i[t[171][e]]=43776+e,o[43776+e]=t[171][e]);for(t[172]="����������������������������������������������������������������珸珹珺珻珼珽現珿琀琁琂琄琇琈琋琌琍琎琑琒琓琔琕琖琗琘琙琜琝琞琟琠琡琣琤琧琩琫琭琯琱琲琷琸琹琺琻琽琾琿瑀瑂瑃瑄瑅瑆瑇瑈瑉瑊瑋瑌瑍�瑎瑏瑐瑑瑒瑓瑔瑖瑘瑝瑠瑡瑢瑣瑤瑥瑦瑧瑨瑩瑪瑫瑬瑮瑯瑱瑲瑳瑴瑵瑸瑹瑺�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[172].length;++e)t[172][e].charCodeAt(0)!==65533&&(i[t[172][e]]=44032+e,o[44032+e]=t[172][e]);for(t[173]="����������������������������������������������������������������瑻瑼瑽瑿璂璄璅璆璈璉璊璌璍璏璑璒璓璔璕璖璗璘璙璚璛璝璟璠璡璢璣璤璥璦璪璫璬璭璮璯環璱璲璳璴璵璶璷璸璹璻璼璽璾璿瓀瓁瓂瓃瓄瓅瓆瓇�瓈瓉瓊瓋瓌瓍瓎瓏瓐瓑瓓瓔瓕瓖瓗瓘瓙瓚瓛瓝瓟瓡瓥瓧瓨瓩瓪瓫瓬瓭瓰瓱瓲�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[173].length;++e)t[173][e].charCodeAt(0)!==65533&&(i[t[173][e]]=44288+e,o[44288+e]=t[173][e]);for(t[174]="����������������������������������������������������������������瓳瓵瓸瓹瓺瓻瓼瓽瓾甀甁甂甃甅甆甇甈甉甊甋甌甎甐甒甔甕甖甗甛甝甞甠甡產産甤甦甧甪甮甴甶甹甼甽甿畁畂畃畄畆畇畉畊畍畐畑畒畓畕畖畗畘�畝畞畟畠畡畢畣畤畧畨畩畫畬畭畮畯異畱畳畵當畷畺畻畼畽畾疀疁疂疄疅疇�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[174].length;++e)t[174][e].charCodeAt(0)!==65533&&(i[t[174][e]]=44544+e,o[44544+e]=t[174][e]);for(t[175]="����������������������������������������������������������������疈疉疊疌疍疎疐疓疕疘疛疜疞疢疦疧疨疩疪疭疶疷疺疻疿痀痁痆痋痌痎痏痐痑痓痗痙痚痜痝痟痠痡痥痩痬痭痮痯痲痳痵痶痷痸痺痻痽痾瘂瘄瘆瘇�瘈瘉瘋瘍瘎瘏瘑瘒瘓瘔瘖瘚瘜瘝瘞瘡瘣瘧瘨瘬瘮瘯瘱瘲瘶瘷瘹瘺瘻瘽癁療癄�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[175].length;++e)t[175][e].charCodeAt(0)!==65533&&(i[t[175][e]]=44800+e,o[44800+e]=t[175][e]);for(t[176]="����������������������������������������������������������������癅癆癇癈癉癊癋癎癏癐癑癒癓癕癗癘癙癚癛癝癟癠癡癢癤癥癦癧癨癩癪癬癭癮癰癱癲癳癴癵癶癷癹発發癿皀皁皃皅皉皊皌皍皏皐皒皔皕皗皘皚皛�皜皝皞皟皠皡皢皣皥皦皧皨皩皪皫皬皭皯皰皳皵皶皷皸皹皺皻皼皽皾盀盁盃啊阿埃挨哎唉哀皑癌蔼矮艾碍爱隘鞍氨安俺按暗岸胺案肮昂盎凹敖熬翱袄傲奥懊澳芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸白柏百摆佰败拜稗斑班搬扳般颁板版扮拌伴瓣半办绊邦帮梆榜膀绑棒磅蚌镑傍谤苞胞包褒剥�".split(""),e=0;e!=t[176].length;++e)t[176][e].charCodeAt(0)!==65533&&(i[t[176][e]]=45056+e,o[45056+e]=t[176][e]);for(t[177]="����������������������������������������������������������������盄盇盉盋盌盓盕盙盚盜盝盞盠盡盢監盤盦盧盨盩盪盫盬盭盰盳盵盶盷盺盻盽盿眀眂眃眅眆眊県眎眏眐眑眒眓眔眕眖眗眘眛眜眝眞眡眣眤眥眧眪眫�眬眮眰眱眲眳眴眹眻眽眾眿睂睄睅睆睈睉睊睋睌睍睎睏睒睓睔睕睖睗睘睙睜薄雹保堡饱宝抱报暴豹鲍爆杯碑悲卑北辈背贝钡倍狈备惫焙被奔苯本笨崩绷甭泵蹦迸逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛鞭边编贬扁便变卞辨辩辫遍标彪膘表鳖憋别瘪彬斌濒滨宾摈兵冰柄丙秉饼炳�".split(""),e=0;e!=t[177].length;++e)t[177][e].charCodeAt(0)!==65533&&(i[t[177][e]]=45312+e,o[45312+e]=t[177][e]);for(t[178]="����������������������������������������������������������������睝睞睟睠睤睧睩睪睭睮睯睰睱睲睳睴睵睶睷睸睺睻睼瞁瞂瞃瞆瞇瞈瞉瞊瞋瞏瞐瞓瞔瞕瞖瞗瞘瞙瞚瞛瞜瞝瞞瞡瞣瞤瞦瞨瞫瞭瞮瞯瞱瞲瞴瞶瞷瞸瞹瞺�瞼瞾矀矁矂矃矄矅矆矇矈矉矊矋矌矎矏矐矑矒矓矔矕矖矘矙矚矝矞矟矠矡矤病并玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳捕卜哺补埠不布步簿部怖擦猜裁材才财睬踩采彩菜蔡餐参蚕残惭惨灿苍舱仓沧藏操糙槽曹草厕策侧册测层蹭插叉茬茶查碴搽察岔差诧拆柴豺搀掺蝉馋谗缠铲产阐颤昌猖�".split(""),e=0;e!=t[178].length;++e)t[178][e].charCodeAt(0)!==65533&&(i[t[178][e]]=45568+e,o[45568+e]=t[178][e]);for(t[179]="����������������������������������������������������������������矦矨矪矯矰矱矲矴矵矷矹矺矻矼砃砄砅砆砇砈砊砋砎砏砐砓砕砙砛砞砠砡砢砤砨砪砫砮砯砱砲砳砵砶砽砿硁硂硃硄硆硈硉硊硋硍硏硑硓硔硘硙硚�硛硜硞硟硠硡硢硣硤硥硦硧硨硩硯硰硱硲硳硴硵硶硸硹硺硻硽硾硿碀碁碂碃场尝常长偿肠厂敞畅唱倡超抄钞朝嘲潮巢吵炒车扯撤掣彻澈郴臣辰尘晨忱沉陈趁衬撑称城橙成呈乘程惩澄诚承逞骋秤吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽充冲虫崇宠抽酬畴踌稠愁筹仇绸瞅丑臭初出橱厨躇锄雏滁除楚�".split(""),e=0;e!=t[179].length;++e)t[179][e].charCodeAt(0)!==65533&&(i[t[179][e]]=45824+e,o[45824+e]=t[179][e]);for(t[180]="����������������������������������������������������������������碄碅碆碈碊碋碏碐碒碔碕碖碙碝碞碠碢碤碦碨碩碪碫碬碭碮碯碵碶碷碸確碻碼碽碿磀磂磃磄磆磇磈磌磍磎磏磑磒磓磖磗磘磚磛磜磝磞磟磠磡磢磣�磤磥磦磧磩磪磫磭磮磯磰磱磳磵磶磸磹磻磼磽磾磿礀礂礃礄礆礇礈礉礊礋礌础储矗搐触处揣川穿椽传船喘串疮窗幢床闯创吹炊捶锤垂春椿醇唇淳纯蠢戳绰疵茨磁雌辞慈瓷词此刺赐次聪葱囱匆从丛凑粗醋簇促蹿篡窜摧崔催脆瘁粹淬翠村存寸磋撮搓措挫错搭达答瘩打大呆歹傣戴带殆代贷袋待逮�".split(""),e=0;e!=t[180].length;++e)t[180][e].charCodeAt(0)!==65533&&(i[t[180][e]]=46080+e,o[46080+e]=t[180][e]);for(t[181]="����������������������������������������������������������������礍礎礏礐礑礒礔礕礖礗礘礙礚礛礜礝礟礠礡礢礣礥礦礧礨礩礪礫礬礭礮礯礰礱礲礳礵礶礷礸礹礽礿祂祃祄祅祇祊祋祌祍祎祏祐祑祒祔祕祘祙祡祣�祤祦祩祪祫祬祮祰祱祲祳祴祵祶祹祻祼祽祾祿禂禃禆禇禈禉禋禌禍禎禐禑禒怠耽担丹单郸掸胆旦氮但惮淡诞弹蛋当挡党荡档刀捣蹈倒岛祷导到稻悼道盗德得的蹬灯登等瞪凳邓堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔颠掂滇碘点典靛垫电佃甸店惦奠淀殿碉叼雕凋刁掉吊钓调跌爹碟蝶迭谍叠�".split(""),e=0;e!=t[181].length;++e)t[181][e].charCodeAt(0)!==65533&&(i[t[181][e]]=46336+e,o[46336+e]=t[181][e]);for(t[182]="����������������������������������������������������������������禓禔禕禖禗禘禙禛禜禝禞禟禠禡禢禣禤禥禦禨禩禪禫禬禭禮禯禰禱禲禴禵禶禷禸禼禿秂秄秅秇秈秊秌秎秏秐秓秔秖秗秙秚秛秜秝秞秠秡秢秥秨秪�秬秮秱秲秳秴秵秶秷秹秺秼秾秿稁稄稅稇稈稉稊稌稏稐稑稒稓稕稖稘稙稛稜丁盯叮钉顶鼎锭定订丢东冬董懂动栋侗恫冻洞兜抖斗陡豆逗痘都督毒犊独读堵睹赌杜镀肚度渡妒端短锻段断缎堆兑队对墩吨蹲敦顿囤钝盾遁掇哆多夺垛躲朵跺舵剁惰堕蛾峨鹅俄额讹娥恶厄扼遏鄂饿恩而儿耳尔饵洱二�".split(""),e=0;e!=t[182].length;++e)t[182][e].charCodeAt(0)!==65533&&(i[t[182][e]]=46592+e,o[46592+e]=t[182][e]);for(t[183]="����������������������������������������������������������������稝稟稡稢稤稥稦稧稨稩稪稫稬稭種稯稰稱稲稴稵稶稸稺稾穀穁穂穃穄穅穇穈穉穊穋穌積穎穏穐穒穓穔穕穖穘穙穚穛穜穝穞穟穠穡穢穣穤穥穦穧穨�穩穪穫穬穭穮穯穱穲穳穵穻穼穽穾窂窅窇窉窊窋窌窎窏窐窓窔窙窚窛窞窡窢贰发罚筏伐乏阀法珐藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛坊芳方肪房防妨仿访纺放菲非啡飞肥匪诽吠肺废沸费芬酚吩氛分纷坟焚汾粉奋份忿愤粪丰封枫蜂峰锋风疯烽逢冯缝讽奉凤佛否夫敷肤孵扶拂辐幅氟符伏俘服�".split(""),e=0;e!=t[183].length;++e)t[183][e].charCodeAt(0)!==65533&&(i[t[183][e]]=46848+e,o[46848+e]=t[183][e]);for(t[184]="����������������������������������������������������������������窣窤窧窩窪窫窮窯窰窱窲窴窵窶窷窸窹窺窻窼窽窾竀竁竂竃竄竅竆竇竈竉竊竌竍竎竏竐竑竒竓竔竕竗竘竚竛竜竝竡竢竤竧竨竩竪竫竬竮竰竱竲竳�竴竵競竷竸竻竼竾笀笁笂笅笇笉笌笍笎笐笒笓笖笗笘笚笜笝笟笡笢笣笧笩笭浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐噶嘎该改概钙盖溉干甘杆柑竿肝赶感秆敢赣冈刚钢缸肛纲岗港杠篙皋高膏羔糕搞镐稿告哥歌搁戈鸽胳疙割革葛格蛤阁隔铬个各给根跟耕更庚羹�".split(""),e=0;e!=t[184].length;++e)t[184][e].charCodeAt(0)!==65533&&(i[t[184][e]]=47104+e,o[47104+e]=t[184][e]);for(t[185]="����������������������������������������������������������������笯笰笲笴笵笶笷笹笻笽笿筀筁筂筃筄筆筈筊筍筎筓筕筗筙筜筞筟筡筣筤筥筦筧筨筩筪筫筬筭筯筰筳筴筶筸筺筼筽筿箁箂箃箄箆箇箈箉箊箋箌箎箏�箑箒箓箖箘箙箚箛箞箟箠箣箤箥箮箯箰箲箳箵箶箷箹箺箻箼箽箾箿節篂篃範埂耿梗工攻功恭龚供躬公宫弓巩汞拱贡共钩勾沟苟狗垢构购够辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇刮瓜剐寡挂褂乖拐怪棺关官冠观管馆罐惯灌贯光广逛瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽辊滚棍锅郭国果裹过哈�".split(""),e=0;e!=t[185].length;++e)t[185][e].charCodeAt(0)!==65533&&(i[t[185][e]]=47360+e,o[47360+e]=t[185][e]);for(t[186]="����������������������������������������������������������������篅篈築篊篋篍篎篏篐篒篔篕篖篗篘篛篜篞篟篠篢篣篤篧篨篩篫篬篭篯篰篲篳篴篵篶篸篹篺篻篽篿簀簁簂簃簄簅簆簈簉簊簍簎簐簑簒簓簔簕簗簘簙�簚簛簜簝簞簠簡簢簣簤簥簨簩簫簬簭簮簯簰簱簲簳簴簵簶簷簹簺簻簼簽簾籂骸孩海氦亥害骇酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉夯杭航壕嚎豪毫郝好耗号浩呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺嘿黑痕很狠恨哼亨横衡恒轰哄烘虹鸿洪宏弘红喉侯猴吼厚候后呼乎忽瑚壶葫胡蝴狐糊湖�".split(""),e=0;e!=t[186].length;++e)t[186][e].charCodeAt(0)!==65533&&(i[t[186][e]]=47616+e,o[47616+e]=t[186][e]);for(t[187]="����������������������������������������������������������������籃籄籅籆籇籈籉籊籋籌籎籏籐籑籒籓籔籕籖籗籘籙籚籛籜籝籞籟籠籡籢籣籤籥籦籧籨籩籪籫籬籭籮籯籰籱籲籵籶籷籸籹籺籾籿粀粁粂粃粄粅粆粇�粈粊粋粌粍粎粏粐粓粔粖粙粚粛粠粡粣粦粧粨粩粫粬粭粯粰粴粵粶粷粸粺粻弧虎唬护互沪户花哗华猾滑画划化话槐徊怀淮坏欢环桓还缓换患唤痪豢焕涣宦幻荒慌黄磺蝗簧皇凰惶煌晃幌恍谎灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘荤昏婚魂浑混豁活伙火获或惑霍货祸击圾基机畸稽积箕�".split(""),e=0;e!=t[187].length;++e)t[187][e].charCodeAt(0)!==65533&&(i[t[187][e]]=47872+e,o[47872+e]=t[187][e]);for(t[188]="����������������������������������������������������������������粿糀糂糃糄糆糉糋糎糏糐糑糒糓糔糘糚糛糝糞糡糢糣糤糥糦糧糩糪糫糬糭糮糰糱糲糳糴糵糶糷糹糺糼糽糾糿紀紁紂紃約紅紆紇紈紉紋紌納紎紏紐�紑紒紓純紕紖紗紘紙級紛紜紝紞紟紡紣紤紥紦紨紩紪紬紭紮細紱紲紳紴紵紶肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件�".split(""),e=0;e!=t[188].length;++e)t[188][e].charCodeAt(0)!==65533&&(i[t[188][e]]=48128+e,o[48128+e]=t[188][e]);for(t[189]="����������������������������������������������������������������紷紸紹紺紻紼紽紾紿絀絁終絃組絅絆絇絈絉絊絋経絍絎絏結絑絒絓絔絕絖絗絘絙絚絛絜絝絞絟絠絡絢絣絤絥給絧絨絩絪絫絬絭絯絰統絲絳絴絵絶�絸絹絺絻絼絽絾絿綀綁綂綃綄綅綆綇綈綉綊綋綌綍綎綏綐綑綒經綔綕綖綗綘健舰剑饯渐溅涧建僵姜将浆江疆蒋桨奖讲匠酱降蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸�".split(""),e=0;e!=t[189].length;++e)t[189][e].charCodeAt(0)!==65533&&(i[t[189][e]]=48384+e,o[48384+e]=t[189][e]);for(t[190]="����������������������������������������������������������������継続綛綜綝綞綟綠綡綢綣綤綥綧綨綩綪綫綬維綯綰綱網綳綴綵綶綷綸綹綺綻綼綽綾綿緀緁緂緃緄緅緆緇緈緉緊緋緌緍緎総緐緑緒緓緔緕緖緗緘緙�線緛緜緝緞緟締緡緢緣緤緥緦緧編緩緪緫緬緭緮緯緰緱緲緳練緵緶緷緸緹緺尽劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净炯窘揪究纠玖韭久灸九酒厩救旧臼舅咎就疚鞠拘狙疽居驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧捐鹃娟倦眷卷绢撅攫抉掘倔爵觉决诀绝均菌钧军君峻�".split(""),e=0;e!=t[190].length;++e)t[190][e].charCodeAt(0)!==65533&&(i[t[190][e]]=48640+e,o[48640+e]=t[190][e]);for(t[191]="����������������������������������������������������������������緻緼緽緾緿縀縁縂縃縄縅縆縇縈縉縊縋縌縍縎縏縐縑縒縓縔縕縖縗縘縙縚縛縜縝縞縟縠縡縢縣縤縥縦縧縨縩縪縫縬縭縮縯縰縱縲縳縴縵縶縷縸縹�縺縼總績縿繀繂繃繄繅繆繈繉繊繋繌繍繎繏繐繑繒繓織繕繖繗繘繙繚繛繜繝俊竣浚郡骏喀咖卡咯开揩楷凯慨刊堪勘坎砍看康慷糠扛抗亢炕考拷烤靠坷苛柯棵磕颗科壳咳可渴克刻客课肯啃垦恳坑吭空恐孔控抠口扣寇枯哭窟苦酷库裤夸垮挎跨胯块筷侩快宽款匡筐狂框矿眶旷况亏盔岿窥葵奎魁傀�".split(""),e=0;e!=t[191].length;++e)t[191][e].charCodeAt(0)!==65533&&(i[t[191][e]]=48896+e,o[48896+e]=t[191][e]);for(t[192]="����������������������������������������������������������������繞繟繠繡繢繣繤繥繦繧繨繩繪繫繬繭繮繯繰繱繲繳繴繵繶繷繸繹繺繻繼繽繾繿纀纁纃纄纅纆纇纈纉纊纋續纍纎纏纐纑纒纓纔纕纖纗纘纙纚纜纝纞�纮纴纻纼绖绤绬绹缊缐缞缷缹缻缼缽缾缿罀罁罃罆罇罈罉罊罋罌罍罎罏罒罓馈愧溃坤昆捆困括扩廓阔垃拉喇蜡腊辣啦莱来赖蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥琅榔狼廊郎朗浪捞劳牢老佬姥酪烙涝勒乐雷镭蕾磊累儡垒擂肋类泪棱楞冷厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐�".split(""),e=0;e!=t[192].length;++e)t[192][e].charCodeAt(0)!==65533&&(i[t[192][e]]=49152+e,o[49152+e]=t[192][e]);for(t[193]="����������������������������������������������������������������罖罙罛罜罝罞罠罣罤罥罦罧罫罬罭罯罰罳罵罶罷罸罺罻罼罽罿羀羂羃羄羅羆羇羈羉羋羍羏羐羑羒羓羕羖羗羘羙羛羜羠羢羣羥羦羨義羪羫羬羭羮羱�羳羴羵羶羷羺羻羾翀翂翃翄翆翇翈翉翋翍翏翐翑習翓翖翗翙翚翛翜翝翞翢翣痢立粒沥隶力璃哩俩联莲连镰廉怜涟帘敛脸链恋炼练粮凉梁粱良两辆量晾亮谅撩聊僚疗燎寥辽潦了撂镣廖料列裂烈劣猎琳林磷霖临邻鳞淋凛赁吝拎玲菱零龄铃伶羚凌灵陵岭领另令溜琉榴硫馏留刘瘤流柳六龙聋咙笼窿�".split(""),e=0;e!=t[193].length;++e)t[193][e].charCodeAt(0)!==65533&&(i[t[193][e]]=49408+e,o[49408+e]=t[193][e]);for(t[194]="����������������������������������������������������������������翤翧翨翪翫翬翭翯翲翴翵翶翷翸翹翺翽翾翿耂耇耈耉耊耎耏耑耓耚耛耝耞耟耡耣耤耫耬耭耮耯耰耲耴耹耺耼耾聀聁聄聅聇聈聉聎聏聐聑聓聕聖聗�聙聛聜聝聞聟聠聡聢聣聤聥聦聧聨聫聬聭聮聯聰聲聳聴聵聶職聸聹聺聻聼聽隆垄拢陇楼娄搂篓漏陋芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮驴吕铝侣旅履屡缕虑氯律率滤绿峦挛孪滦卵乱掠略抡轮伦仑沦纶论萝螺罗逻锣箩骡裸落洛骆络妈麻玛码蚂马骂嘛吗埋买麦卖迈脉瞒馒蛮满蔓曼慢漫�".split(""),e=0;e!=t[194].length;++e)t[194][e].charCodeAt(0)!==65533&&(i[t[194][e]]=49664+e,o[49664+e]=t[194][e]);for(t[195]="����������������������������������������������������������������聾肁肂肅肈肊肍肎肏肐肑肒肔肕肗肙肞肣肦肧肨肬肰肳肵肶肸肹肻胅胇胈胉胊胋胏胐胑胒胓胔胕胘胟胠胢胣胦胮胵胷胹胻胾胿脀脁脃脄脅脇脈脋�脌脕脗脙脛脜脝脟脠脡脢脣脤脥脦脧脨脩脪脫脭脮脰脳脴脵脷脹脺脻脼脽脿谩芒茫盲氓忙莽猫茅锚毛矛铆卯茂冒帽貌贸么玫枚梅酶霉煤没眉媒镁每美昧寐妹媚门闷们萌蒙檬盟锰猛梦孟眯醚靡糜迷谜弥米秘觅泌蜜密幂棉眠绵冕免勉娩缅面苗描瞄藐秒渺庙妙蔑灭民抿皿敏悯闽明螟鸣铭名命谬摸�".split(""),e=0;e!=t[195].length;++e)t[195][e].charCodeAt(0)!==65533&&(i[t[195][e]]=49920+e,o[49920+e]=t[195][e]);for(t[196]="����������������������������������������������������������������腀腁腂腃腄腅腇腉腍腎腏腒腖腗腘腛腜腝腞腟腡腢腣腤腦腨腪腫腬腯腲腳腵腶腷腸膁膃膄膅膆膇膉膋膌膍膎膐膒膓膔膕膖膗膙膚膞膟膠膡膢膤膥�膧膩膫膬膭膮膯膰膱膲膴膵膶膷膸膹膼膽膾膿臄臅臇臈臉臋臍臎臏臐臑臒臓摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谋牟某拇牡亩姆母墓暮幕募慕木目睦牧穆拿哪呐钠那娜纳氖乃奶耐奈南男难囊挠脑恼闹淖呢馁内嫩能妮霓倪泥尼拟你匿腻逆溺蔫拈年碾撵捻念娘酿鸟尿捏聂孽啮镊镍涅您柠狞凝宁�".split(""),e=0;e!=t[196].length;++e)t[196][e].charCodeAt(0)!==65533&&(i[t[196][e]]=50176+e,o[50176+e]=t[196][e]);for(t[197]="����������������������������������������������������������������臔臕臖臗臘臙臚臛臜臝臞臟臠臡臢臤臥臦臨臩臫臮臯臰臱臲臵臶臷臸臹臺臽臿舃與興舉舊舋舎舏舑舓舕舖舗舘舙舚舝舠舤舥舦舧舩舮舲舺舼舽舿�艀艁艂艃艅艆艈艊艌艍艎艐艑艒艓艔艕艖艗艙艛艜艝艞艠艡艢艣艤艥艦艧艩拧泞牛扭钮纽脓浓农弄奴努怒女暖虐疟挪懦糯诺哦欧鸥殴藕呕偶沤啪趴爬帕怕琶拍排牌徘湃派攀潘盘磐盼畔判叛乓庞旁耪胖抛咆刨炮袍跑泡呸胚培裴赔陪配佩沛喷盆砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯砒霹批披劈琵毗�".split(""),e=0;e!=t[197].length;++e)t[197][e].charCodeAt(0)!==65533&&(i[t[197][e]]=50432+e,o[50432+e]=t[197][e]);for(t[198]="����������������������������������������������������������������艪艫艬艭艱艵艶艷艸艻艼芀芁芃芅芆芇芉芌芐芓芔芕芖芚芛芞芠芢芣芧芲芵芶芺芻芼芿苀苂苃苅苆苉苐苖苙苚苝苢苧苨苩苪苬苭苮苰苲苳苵苶苸�苺苼苽苾苿茀茊茋茍茐茒茓茖茘茙茝茞茟茠茡茢茣茤茥茦茩茪茮茰茲茷茻茽啤脾疲皮匹痞僻屁譬篇偏片骗飘漂瓢票撇瞥拼频贫品聘乒坪苹萍平凭瓶评屏坡泼颇婆破魄迫粕剖扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫掐�".split(""),e=0;e!=t[198].length;++e)t[198][e].charCodeAt(0)!==65533&&(i[t[198][e]]=50688+e,o[50688+e]=t[198][e]);for(t[199]="����������������������������������������������������������������茾茿荁荂荄荅荈荊荋荌荍荎荓荕荖荗荘荙荝荢荰荱荲荳荴荵荶荹荺荾荿莀莁莂莃莄莇莈莊莋莌莍莏莐莑莔莕莖莗莙莚莝莟莡莢莣莤莥莦莧莬莭莮�莯莵莻莾莿菂菃菄菆菈菉菋菍菎菐菑菒菓菕菗菙菚菛菞菢菣菤菦菧菨菫菬菭恰洽牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉枪呛腔羌墙蔷强抢橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍切茄且怯窃钦侵亲秦琴勤芹擒禽寝沁青轻氢倾卿清擎晴氰情顷请庆琼穷秋丘邱球求囚酋泅趋区蛆曲躯屈驱渠�".split(""),e=0;e!=t[199].length;++e)t[199][e].charCodeAt(0)!==65533&&(i[t[199][e]]=50944+e,o[50944+e]=t[199][e]);for(t[200]="����������������������������������������������������������������菮華菳菴菵菶菷菺菻菼菾菿萀萂萅萇萈萉萊萐萒萓萔萕萖萗萙萚萛萞萟萠萡萢萣萩萪萫萬萭萮萯萰萲萳萴萵萶萷萹萺萻萾萿葀葁葂葃葄葅葇葈葉�葊葋葌葍葎葏葐葒葓葔葕葖葘葝葞葟葠葢葤葥葦葧葨葪葮葯葰葲葴葷葹葻葼取娶龋趣去圈颧权醛泉全痊拳犬券劝缺炔瘸却鹊榷确雀裙群然燃冉染瓤壤攘嚷让饶扰绕惹热壬仁人忍韧任认刃妊纫扔仍日戎茸蓉荣融熔溶容绒冗揉柔肉茹蠕儒孺如辱乳汝入褥软阮蕊瑞锐闰润若弱撒洒萨腮鳃塞赛三叁�".split(""),e=0;e!=t[200].length;++e)t[200][e].charCodeAt(0)!==65533&&(i[t[200][e]]=51200+e,o[51200+e]=t[200][e]);for(t[201]="����������������������������������������������������������������葽葾葿蒀蒁蒃蒄蒅蒆蒊蒍蒏蒐蒑蒒蒓蒔蒕蒖蒘蒚蒛蒝蒞蒟蒠蒢蒣蒤蒥蒦蒧蒨蒩蒪蒫蒬蒭蒮蒰蒱蒳蒵蒶蒷蒻蒼蒾蓀蓂蓃蓅蓆蓇蓈蓋蓌蓎蓏蓒蓔蓕蓗�蓘蓙蓚蓛蓜蓞蓡蓢蓤蓧蓨蓩蓪蓫蓭蓮蓯蓱蓲蓳蓴蓵蓶蓷蓸蓹蓺蓻蓽蓾蔀蔁蔂伞散桑嗓丧搔骚扫嫂瑟色涩森僧莎砂杀刹沙纱傻啥煞筛晒珊苫杉山删煽衫闪陕擅赡膳善汕扇缮墒伤商赏晌上尚裳梢捎稍烧芍勺韶少哨邵绍奢赊蛇舌舍赦摄射慑涉社设砷申呻伸身深娠绅神沈审婶甚肾慎渗声生甥牲升绳�".split(""),e=0;e!=t[201].length;++e)t[201][e].charCodeAt(0)!==65533&&(i[t[201][e]]=51456+e,o[51456+e]=t[201][e]);for(t[202]="����������������������������������������������������������������蔃蔄蔅蔆蔇蔈蔉蔊蔋蔍蔎蔏蔐蔒蔔蔕蔖蔘蔙蔛蔜蔝蔞蔠蔢蔣蔤蔥蔦蔧蔨蔩蔪蔭蔮蔯蔰蔱蔲蔳蔴蔵蔶蔾蔿蕀蕁蕂蕄蕅蕆蕇蕋蕌蕍蕎蕏蕐蕑蕒蕓蕔蕕�蕗蕘蕚蕛蕜蕝蕟蕠蕡蕢蕣蕥蕦蕧蕩蕪蕫蕬蕭蕮蕯蕰蕱蕳蕵蕶蕷蕸蕼蕽蕿薀薁省盛剩胜圣师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试收手首守寿授售受瘦兽蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱�".split(""),e=0;e!=t[202].length;++e)t[202][e].charCodeAt(0)!==65533&&(i[t[202][e]]=51712+e,o[51712+e]=t[202][e]);for(t[203]="����������������������������������������������������������������薂薃薆薈薉薊薋薌薍薎薐薑薒薓薔薕薖薗薘薙薚薝薞薟薠薡薢薣薥薦薧薩薫薬薭薱薲薳薴薵薶薸薺薻薼薽薾薿藀藂藃藄藅藆藇藈藊藋藌藍藎藑藒�藔藖藗藘藙藚藛藝藞藟藠藡藢藣藥藦藧藨藪藫藬藭藮藯藰藱藲藳藴藵藶藷藸恕刷耍摔衰甩帅栓拴霜双爽谁水睡税吮瞬顺舜说硕朔烁斯撕嘶思私司丝死肆寺嗣四伺似饲巳松耸怂颂送宋讼诵搜艘擞嗽苏酥俗素速粟僳塑溯宿诉肃酸蒜算虽隋随绥髓碎岁穗遂隧祟孙损笋蓑梭唆缩琐索锁所塌他它她塔�".split(""),e=0;e!=t[203].length;++e)t[203][e].charCodeAt(0)!==65533&&(i[t[203][e]]=51968+e,o[51968+e]=t[203][e]);for(t[204]="����������������������������������������������������������������藹藺藼藽藾蘀蘁蘂蘃蘄蘆蘇蘈蘉蘊蘋蘌蘍蘎蘏蘐蘒蘓蘔蘕蘗蘘蘙蘚蘛蘜蘝蘞蘟蘠蘡蘢蘣蘤蘥蘦蘨蘪蘫蘬蘭蘮蘯蘰蘱蘲蘳蘴蘵蘶蘷蘹蘺蘻蘽蘾蘿虀�虁虂虃虄虅虆虇虈虉虊虋虌虒虓處虖虗虘虙虛虜虝號虠虡虣虤虥虦虧虨虩虪獭挞蹋踏胎苔抬台泰酞太态汰坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭汤塘搪堂棠膛唐糖倘躺淌趟烫掏涛滔绦萄桃逃淘陶讨套特藤腾疼誊梯剔踢锑提题蹄啼体替嚏惕涕剃屉天添填田甜恬舔腆挑条迢眺跳贴铁帖厅听烃�".split(""),e=0;e!=t[204].length;++e)t[204][e].charCodeAt(0)!==65533&&(i[t[204][e]]=52224+e,o[52224+e]=t[204][e]);for(t[205]="����������������������������������������������������������������虭虯虰虲虳虴虵虶虷虸蚃蚄蚅蚆蚇蚈蚉蚎蚏蚐蚑蚒蚔蚖蚗蚘蚙蚚蚛蚞蚟蚠蚡蚢蚥蚦蚫蚭蚮蚲蚳蚷蚸蚹蚻蚼蚽蚾蚿蛁蛂蛃蛅蛈蛌蛍蛒蛓蛕蛖蛗蛚蛜�蛝蛠蛡蛢蛣蛥蛦蛧蛨蛪蛫蛬蛯蛵蛶蛷蛺蛻蛼蛽蛿蜁蜄蜅蜆蜋蜌蜎蜏蜐蜑蜔蜖汀廷停亭庭挺艇通桐酮瞳同铜彤童桶捅筒统痛偷投头透凸秃突图徒途涂屠土吐兔湍团推颓腿蜕褪退吞屯臀拖托脱鸵陀驮驼椭妥拓唾挖哇蛙洼娃瓦袜歪外豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕汪王亡枉网往旺望忘妄威�".split(""),e=0;e!=t[205].length;++e)t[205][e].charCodeAt(0)!==65533&&(i[t[205][e]]=52480+e,o[52480+e]=t[205][e]);for(t[206]="����������������������������������������������������������������蜙蜛蜝蜟蜠蜤蜦蜧蜨蜪蜫蜬蜭蜯蜰蜲蜳蜵蜶蜸蜹蜺蜼蜽蝀蝁蝂蝃蝄蝅蝆蝊蝋蝍蝏蝐蝑蝒蝔蝕蝖蝘蝚蝛蝜蝝蝞蝟蝡蝢蝦蝧蝨蝩蝪蝫蝬蝭蝯蝱蝲蝳蝵�蝷蝸蝹蝺蝿螀螁螄螆螇螉螊螌螎螏螐螑螒螔螕螖螘螙螚螛螜螝螞螠螡螢螣螤巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫瘟温蚊文闻纹吻稳紊问嗡翁瓮挝蜗涡窝我斡卧握沃巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误昔熙析西硒矽晰嘻吸锡牺�".split(""),e=0;e!=t[206].length;++e)t[206][e].charCodeAt(0)!==65533&&(i[t[206][e]]=52736+e,o[52736+e]=t[206][e]);for(t[207]="����������������������������������������������������������������螥螦螧螩螪螮螰螱螲螴螶螷螸螹螻螼螾螿蟁蟂蟃蟄蟅蟇蟈蟉蟌蟍蟎蟏蟐蟔蟕蟖蟗蟘蟙蟚蟜蟝蟞蟟蟡蟢蟣蟤蟦蟧蟨蟩蟫蟬蟭蟯蟰蟱蟲蟳蟴蟵蟶蟷蟸�蟺蟻蟼蟽蟿蠀蠁蠂蠄蠅蠆蠇蠈蠉蠋蠌蠍蠎蠏蠐蠑蠒蠔蠗蠘蠙蠚蠜蠝蠞蠟蠠蠣稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细瞎虾匣霞辖暇峡侠狭下厦夏吓掀锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象萧硝霄削哮嚣销消宵淆晓�".split(""),e=0;e!=t[207].length;++e)t[207][e].charCodeAt(0)!==65533&&(i[t[207][e]]=52992+e,o[52992+e]=t[207][e]);for(t[208]="����������������������������������������������������������������蠤蠥蠦蠧蠨蠩蠪蠫蠬蠭蠮蠯蠰蠱蠳蠴蠵蠶蠷蠸蠺蠻蠽蠾蠿衁衂衃衆衇衈衉衊衋衎衏衐衑衒術衕衖衘衚衛衜衝衞衟衠衦衧衪衭衯衱衳衴衵衶衸衹衺�衻衼袀袃袆袇袉袊袌袎袏袐袑袓袔袕袗袘袙袚袛袝袞袟袠袡袣袥袦袧袨袩袪小孝校肖啸笑效楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑薪芯锌欣辛新忻心信衅星腥猩惺兴刑型形邢行醒幸杏性姓兄凶胸匈汹雄熊休修羞朽嗅锈秀袖绣墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续轩喧宣悬旋玄�".split(""),e=0;e!=t[208].length;++e)t[208][e].charCodeAt(0)!==65533&&(i[t[208][e]]=53248+e,o[53248+e]=t[208][e]);for(t[209]="����������������������������������������������������������������袬袮袯袰袲袳袴袵袶袸袹袺袻袽袾袿裀裃裄裇裈裊裋裌裍裏裐裑裓裖裗裚裛補裝裞裠裡裦裧裩裪裫裬裭裮裯裲裵裶裷裺裻製裿褀褁褃褄褅褆複褈�褉褋褌褍褎褏褑褔褕褖褗褘褜褝褞褟褠褢褣褤褦褧褨褩褬褭褮褯褱褲褳褵褷选癣眩绚靴薛学穴雪血勋熏循旬询寻驯巡殉汛训讯逊迅压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾邀腰妖瑶�".split(""),e=0;e!=t[209].length;++e)t[209][e].charCodeAt(0)!==65533&&(i[t[209][e]]=53504+e,o[53504+e]=t[209][e]);for(t[210]="����������������������������������������������������������������褸褹褺褻褼褽褾褿襀襂襃襅襆襇襈襉襊襋襌襍襎襏襐襑襒襓襔襕襖襗襘襙襚襛襜襝襠襡襢襣襤襥襧襨襩襪襫襬襭襮襯襰襱襲襳襴襵襶襷襸襹襺襼�襽襾覀覂覄覅覇覈覉覊見覌覍覎規覐覑覒覓覔覕視覗覘覙覚覛覜覝覞覟覠覡摇尧遥窑谣姚咬舀药要耀椰噎耶爷野冶也页掖业叶曳腋夜液一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎茵荫因殷音阴姻吟银淫寅饮尹引隐�".split(""),e=0;e!=t[210].length;++e)t[210][e].charCodeAt(0)!==65533&&(i[t[210][e]]=53760+e,o[53760+e]=t[210][e]);for(t[211]="����������������������������������������������������������������覢覣覤覥覦覧覨覩親覫覬覭覮覯覰覱覲観覴覵覶覷覸覹覺覻覼覽覾覿觀觃觍觓觔觕觗觘觙觛觝觟觠觡觢觤觧觨觩觪觬觭觮觰觱觲觴觵觶觷觸觹觺�觻觼觽觾觿訁訂訃訄訅訆計訉訊訋訌訍討訏訐訑訒訓訔訕訖託記訙訚訛訜訝印英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映哟拥佣臃痈庸雍踊蛹咏泳涌永恿勇用幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉�".split(""),e=0;e!=t[211].length;++e)t[211][e].charCodeAt(0)!==65533&&(i[t[211][e]]=54016+e,o[54016+e]=t[211][e]);for(t[212]="����������������������������������������������������������������訞訟訠訡訢訣訤訥訦訧訨訩訪訫訬設訮訯訰許訲訳訴訵訶訷訸訹診註証訽訿詀詁詂詃詄詅詆詇詉詊詋詌詍詎詏詐詑詒詓詔評詖詗詘詙詚詛詜詝詞�詟詠詡詢詣詤詥試詧詨詩詪詫詬詭詮詯詰話該詳詴詵詶詷詸詺詻詼詽詾詿誀浴寓裕预豫驭鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院曰约越跃钥岳粤月悦阅耘云郧匀陨允运蕴酝晕韵孕匝砸杂栽哉灾宰载再在咱攒暂赞赃脏葬遭糟凿藻枣早澡蚤躁噪造皂灶燥责择则泽贼怎增憎曾赠扎喳渣札轧�".split(""),e=0;e!=t[212].length;++e)t[212][e].charCodeAt(0)!==65533&&(i[t[212][e]]=54272+e,o[54272+e]=t[212][e]);for(t[213]="����������������������������������������������������������������誁誂誃誄誅誆誇誈誋誌認誎誏誐誑誒誔誕誖誗誘誙誚誛誜誝語誟誠誡誢誣誤誥誦誧誨誩說誫説読誮誯誰誱課誳誴誵誶誷誸誹誺誻誼誽誾調諀諁諂�諃諄諅諆談諈諉諊請諌諍諎諏諐諑諒諓諔諕論諗諘諙諚諛諜諝諞諟諠諡諢諣铡闸眨栅榨咋乍炸诈摘斋宅窄债寨瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽樟章彰漳张掌涨杖丈帐账仗胀瘴障招昭找沼赵照罩兆肇召遮折哲蛰辙者锗蔗这浙珍斟真甄砧臻贞针侦枕疹诊震振镇阵蒸挣睁征狰争怔整拯正政�".split(""),e=0;e!=t[213].length;++e)t[213][e].charCodeAt(0)!==65533&&(i[t[213][e]]=54528+e,o[54528+e]=t[213][e]);for(t[214]="����������������������������������������������������������������諤諥諦諧諨諩諪諫諬諭諮諯諰諱諲諳諴諵諶諷諸諹諺諻諼諽諾諿謀謁謂謃謄謅謆謈謉謊謋謌謍謎謏謐謑謒謓謔謕謖謗謘謙謚講謜謝謞謟謠謡謢謣�謤謥謧謨謩謪謫謬謭謮謯謰謱謲謳謴謵謶謷謸謹謺謻謼謽謾謿譀譁譂譃譄譅帧症郑证芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒中盅忠钟衷终种肿重仲众舟周州洲诌粥轴肘帚咒皱宙昼骤珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑�".split(""),e=0;e!=t[214].length;++e)t[214][e].charCodeAt(0)!==65533&&(i[t[214][e]]=54784+e,o[54784+e]=t[214][e]);for(t[215]="����������������������������������������������������������������譆譇譈證譊譋譌譍譎譏譐譑譒譓譔譕譖譗識譙譚譛譜譝譞譟譠譡譢譣譤譥譧譨譩譪譫譭譮譯議譱譲譳譴譵譶護譸譹譺譻譼譽譾譿讀讁讂讃讄讅讆�讇讈讉變讋讌讍讎讏讐讑讒讓讔讕讖讗讘讙讚讛讜讝讞讟讬讱讻诇诐诪谉谞住注祝驻抓爪拽专砖转撰赚篆桩庄装妆撞壮状椎锥追赘坠缀谆准捉拙卓桌琢茁酌啄着灼浊兹咨资姿滋淄孜紫仔籽滓子自渍字鬃棕踪宗综总纵邹走奏揍租足卒族祖诅阻组钻纂嘴醉最罪尊遵昨左佐柞做作坐座������".split(""),e=0;e!=t[215].length;++e)t[215][e].charCodeAt(0)!==65533&&(i[t[215][e]]=55040+e,o[55040+e]=t[215][e]);for(t[216]="����������������������������������������������������������������谸谹谺谻谼谽谾谿豀豂豃豄豅豈豊豋豍豎豏豐豑豒豓豔豖豗豘豙豛豜豝豞豟豠豣豤豥豦豧豨豩豬豭豮豯豰豱豲豴豵豶豷豻豼豽豾豿貀貁貃貄貆貇�貈貋貍貎貏貐貑貒貓貕貖貗貙貚貛貜貝貞貟負財貢貣貤貥貦貧貨販貪貫責貭亍丌兀丐廿卅丕亘丞鬲孬噩丨禺丿匕乇夭爻卮氐囟胤馗毓睾鼗丶亟鼐乜乩亓芈孛啬嘏仄厍厝厣厥厮靥赝匚叵匦匮匾赜卦卣刂刈刎刭刳刿剀剌剞剡剜蒯剽劂劁劐劓冂罔亻仃仉仂仨仡仫仞伛仳伢佤仵伥伧伉伫佞佧攸佚佝�".split(""),e=0;e!=t[216].length;++e)t[216][e].charCodeAt(0)!==65533&&(i[t[216][e]]=55296+e,o[55296+e]=t[216][e]);for(t[217]="����������������������������������������������������������������貮貯貰貱貲貳貴貵貶買貸貹貺費貼貽貾貿賀賁賂賃賄賅賆資賈賉賊賋賌賍賎賏賐賑賒賓賔賕賖賗賘賙賚賛賜賝賞賟賠賡賢賣賤賥賦賧賨賩質賫賬�賭賮賯賰賱賲賳賴賵賶賷賸賹賺賻購賽賾賿贀贁贂贃贄贅贆贇贈贉贊贋贌贍佟佗伲伽佶佴侑侉侃侏佾佻侪佼侬侔俦俨俪俅俚俣俜俑俟俸倩偌俳倬倏倮倭俾倜倌倥倨偾偃偕偈偎偬偻傥傧傩傺僖儆僭僬僦僮儇儋仝氽佘佥俎龠汆籴兮巽黉馘冁夔勹匍訇匐凫夙兕亠兖亳衮袤亵脔裒禀嬴蠃羸冫冱冽冼�".split(""),e=0;e!=t[217].length;++e)t[217][e].charCodeAt(0)!==65533&&(i[t[217][e]]=55552+e,o[55552+e]=t[217][e]);for(t[218]="����������������������������������������������������������������贎贏贐贑贒贓贔贕贖贗贘贙贚贛贜贠赑赒赗赟赥赨赩赪赬赮赯赱赲赸赹赺赻赼赽赾赿趀趂趃趆趇趈趉趌趍趎趏趐趒趓趕趖趗趘趙趚趛趜趝趞趠趡�趢趤趥趦趧趨趩趪趫趬趭趮趯趰趲趶趷趹趻趽跀跁跂跅跇跈跉跊跍跐跒跓跔凇冖冢冥讠讦讧讪讴讵讷诂诃诋诏诎诒诓诔诖诘诙诜诟诠诤诨诩诮诰诳诶诹诼诿谀谂谄谇谌谏谑谒谔谕谖谙谛谘谝谟谠谡谥谧谪谫谮谯谲谳谵谶卩卺阝阢阡阱阪阽阼陂陉陔陟陧陬陲陴隈隍隗隰邗邛邝邙邬邡邴邳邶邺�".split(""),e=0;e!=t[218].length;++e)t[218][e].charCodeAt(0)!==65533&&(i[t[218][e]]=55808+e,o[55808+e]=t[218][e]);for(t[219]="����������������������������������������������������������������跕跘跙跜跠跡跢跥跦跧跩跭跮跰跱跲跴跶跼跾跿踀踁踂踃踄踆踇踈踋踍踎踐踑踒踓踕踖踗踘踙踚踛踜踠踡踤踥踦踧踨踫踭踰踲踳踴踶踷踸踻踼踾�踿蹃蹅蹆蹌蹍蹎蹏蹐蹓蹔蹕蹖蹗蹘蹚蹛蹜蹝蹞蹟蹠蹡蹢蹣蹤蹥蹧蹨蹪蹫蹮蹱邸邰郏郅邾郐郄郇郓郦郢郜郗郛郫郯郾鄄鄢鄞鄣鄱鄯鄹酃酆刍奂劢劬劭劾哿勐勖勰叟燮矍廴凵凼鬯厶弁畚巯坌垩垡塾墼壅壑圩圬圪圳圹圮圯坜圻坂坩垅坫垆坼坻坨坭坶坳垭垤垌垲埏垧垴垓垠埕埘埚埙埒垸埴埯埸埤埝�".split(""),e=0;e!=t[219].length;++e)t[219][e].charCodeAt(0)!==65533&&(i[t[219][e]]=56064+e,o[56064+e]=t[219][e]);for(t[220]="����������������������������������������������������������������蹳蹵蹷蹸蹹蹺蹻蹽蹾躀躂躃躄躆躈躉躊躋躌躍躎躑躒躓躕躖躗躘躙躚躛躝躟躠躡躢躣躤躥躦躧躨躩躪躭躮躰躱躳躴躵躶躷躸躹躻躼躽躾躿軀軁軂�軃軄軅軆軇軈軉車軋軌軍軏軐軑軒軓軔軕軖軗軘軙軚軛軜軝軞軟軠軡転軣軤堋堍埽埭堀堞堙塄堠塥塬墁墉墚墀馨鼙懿艹艽艿芏芊芨芄芎芑芗芙芫芸芾芰苈苊苣芘芷芮苋苌苁芩芴芡芪芟苄苎芤苡茉苷苤茏茇苜苴苒苘茌苻苓茑茚茆茔茕苠苕茜荑荛荜茈莒茼茴茱莛荞茯荏荇荃荟荀茗荠茭茺茳荦荥�".split(""),e=0;e!=t[220].length;++e)t[220][e].charCodeAt(0)!==65533&&(i[t[220][e]]=56320+e,o[56320+e]=t[220][e]);for(t[221]="����������������������������������������������������������������軥軦軧軨軩軪軫軬軭軮軯軰軱軲軳軴軵軶軷軸軹軺軻軼軽軾軿輀輁輂較輄輅輆輇輈載輊輋輌輍輎輏輐輑輒輓輔輕輖輗輘輙輚輛輜輝輞輟輠輡輢輣�輤輥輦輧輨輩輪輫輬輭輮輯輰輱輲輳輴輵輶輷輸輹輺輻輼輽輾輿轀轁轂轃轄荨茛荩荬荪荭荮莰荸莳莴莠莪莓莜莅荼莶莩荽莸荻莘莞莨莺莼菁萁菥菘堇萘萋菝菽菖萜萸萑萆菔菟萏萃菸菹菪菅菀萦菰菡葜葑葚葙葳蒇蒈葺蒉葸萼葆葩葶蒌蒎萱葭蓁蓍蓐蓦蒽蓓蓊蒿蒺蓠蒡蒹蒴蒗蓥蓣蔌甍蔸蓰蔹蔟蔺�".split(""),e=0;e!=t[221].length;++e)t[221][e].charCodeAt(0)!==65533&&(i[t[221][e]]=56576+e,o[56576+e]=t[221][e]);for(t[222]="����������������������������������������������������������������轅轆轇轈轉轊轋轌轍轎轏轐轑轒轓轔轕轖轗轘轙轚轛轜轝轞轟轠轡轢轣轤轥轪辀辌辒辝辠辡辢辤辥辦辧辪辬辭辮辯農辳辴辵辷辸辺辻込辿迀迃迆�迉迊迋迌迍迏迒迖迗迚迠迡迣迧迬迯迱迲迴迵迶迺迻迼迾迿逇逈逌逎逓逕逘蕖蔻蓿蓼蕙蕈蕨蕤蕞蕺瞢蕃蕲蕻薤薨薇薏蕹薮薜薅薹薷薰藓藁藜藿蘧蘅蘩蘖蘼廾弈夼奁耷奕奚奘匏尢尥尬尴扌扪抟抻拊拚拗拮挢拶挹捋捃掭揶捱捺掎掴捭掬掊捩掮掼揲揸揠揿揄揞揎摒揆掾摅摁搋搛搠搌搦搡摞撄摭撖�".split(""),e=0;e!=t[222].length;++e)t[222][e].charCodeAt(0)!==65533&&(i[t[222][e]]=56832+e,o[56832+e]=t[222][e]);for(t[223]="����������������������������������������������������������������這逜連逤逥逧逨逩逪逫逬逰週進逳逴逷逹逺逽逿遀遃遅遆遈遉遊運遌過達違遖遙遚遜遝遞遟遠遡遤遦遧適遪遫遬遯遰遱遲遳遶遷選遹遺遻遼遾邁�還邅邆邇邉邊邌邍邎邏邐邒邔邖邘邚邜邞邟邠邤邥邧邨邩邫邭邲邷邼邽邿郀摺撷撸撙撺擀擐擗擤擢攉攥攮弋忒甙弑卟叱叽叩叨叻吒吖吆呋呒呓呔呖呃吡呗呙吣吲咂咔呷呱呤咚咛咄呶呦咝哐咭哂咴哒咧咦哓哔呲咣哕咻咿哌哙哚哜咩咪咤哝哏哞唛哧唠哽唔哳唢唣唏唑唧唪啧喏喵啉啭啁啕唿啐唼�".split(""),e=0;e!=t[223].length;++e)t[223][e].charCodeAt(0)!==65533&&(i[t[223][e]]=57088+e,o[57088+e]=t[223][e]);for(t[224]="����������������������������������������������������������������郂郃郆郈郉郋郌郍郒郔郕郖郘郙郚郞郟郠郣郤郥郩郪郬郮郰郱郲郳郵郶郷郹郺郻郼郿鄀鄁鄃鄅鄆鄇鄈鄉鄊鄋鄌鄍鄎鄏鄐鄑鄒鄓鄔鄕鄖鄗鄘鄚鄛鄜�鄝鄟鄠鄡鄤鄥鄦鄧鄨鄩鄪鄫鄬鄭鄮鄰鄲鄳鄴鄵鄶鄷鄸鄺鄻鄼鄽鄾鄿酀酁酂酄唷啖啵啶啷唳唰啜喋嗒喃喱喹喈喁喟啾嗖喑啻嗟喽喾喔喙嗪嗷嗉嘟嗑嗫嗬嗔嗦嗝嗄嗯嗥嗲嗳嗌嗍嗨嗵嗤辔嘞嘈嘌嘁嘤嘣嗾嘀嘧嘭噘嘹噗嘬噍噢噙噜噌噔嚆噤噱噫噻噼嚅嚓嚯囔囗囝囡囵囫囹囿圄圊圉圜帏帙帔帑帱帻帼�".split(""),e=0;e!=t[224].length;++e)t[224][e].charCodeAt(0)!==65533&&(i[t[224][e]]=57344+e,o[57344+e]=t[224][e]);for(t[225]="����������������������������������������������������������������酅酇酈酑酓酔酕酖酘酙酛酜酟酠酦酧酨酫酭酳酺酻酼醀醁醂醃醄醆醈醊醎醏醓醔醕醖醗醘醙醜醝醞醟醠醡醤醥醦醧醨醩醫醬醰醱醲醳醶醷醸醹醻�醼醽醾醿釀釁釂釃釄釅釆釈釋釐釒釓釔釕釖釗釘釙釚釛針釞釟釠釡釢釣釤釥帷幄幔幛幞幡岌屺岍岐岖岈岘岙岑岚岜岵岢岽岬岫岱岣峁岷峄峒峤峋峥崂崃崧崦崮崤崞崆崛嵘崾崴崽嵬嵛嵯嵝嵫嵋嵊嵩嵴嶂嶙嶝豳嶷巅彳彷徂徇徉後徕徙徜徨徭徵徼衢彡犭犰犴犷犸狃狁狎狍狒狨狯狩狲狴狷猁狳猃狺�".split(""),e=0;e!=t[225].length;++e)t[225][e].charCodeAt(0)!==65533&&(i[t[225][e]]=57600+e,o[57600+e]=t[225][e]);for(t[226]="����������������������������������������������������������������釦釧釨釩釪釫釬釭釮釯釰釱釲釳釴釵釶釷釸釹釺釻釼釽釾釿鈀鈁鈂鈃鈄鈅鈆鈇鈈鈉鈊鈋鈌鈍鈎鈏鈐鈑鈒鈓鈔鈕鈖鈗鈘鈙鈚鈛鈜鈝鈞鈟鈠鈡鈢鈣鈤�鈥鈦鈧鈨鈩鈪鈫鈬鈭鈮鈯鈰鈱鈲鈳鈴鈵鈶鈷鈸鈹鈺鈻鈼鈽鈾鈿鉀鉁鉂鉃鉄鉅狻猗猓猡猊猞猝猕猢猹猥猬猸猱獐獍獗獠獬獯獾舛夥飧夤夂饣饧饨饩饪饫饬饴饷饽馀馄馇馊馍馐馑馓馔馕庀庑庋庖庥庠庹庵庾庳赓廒廑廛廨廪膺忄忉忖忏怃忮怄忡忤忾怅怆忪忭忸怙怵怦怛怏怍怩怫怊怿怡恸恹恻恺恂�".split(""),e=0;e!=t[226].length;++e)t[226][e].charCodeAt(0)!==65533&&(i[t[226][e]]=57856+e,o[57856+e]=t[226][e]);for(t[227]="����������������������������������������������������������������鉆鉇鉈鉉鉊鉋鉌鉍鉎鉏鉐鉑鉒鉓鉔鉕鉖鉗鉘鉙鉚鉛鉜鉝鉞鉟鉠鉡鉢鉣鉤鉥鉦鉧鉨鉩鉪鉫鉬鉭鉮鉯鉰鉱鉲鉳鉵鉶鉷鉸鉹鉺鉻鉼鉽鉾鉿銀銁銂銃銄銅�銆銇銈銉銊銋銌銍銏銐銑銒銓銔銕銖銗銘銙銚銛銜銝銞銟銠銡銢銣銤銥銦銧恪恽悖悚悭悝悃悒悌悛惬悻悱惝惘惆惚悴愠愦愕愣惴愀愎愫慊慵憬憔憧憷懔懵忝隳闩闫闱闳闵闶闼闾阃阄阆阈阊阋阌阍阏阒阕阖阗阙阚丬爿戕氵汔汜汊沣沅沐沔沌汨汩汴汶沆沩泐泔沭泷泸泱泗沲泠泖泺泫泮沱泓泯泾�".split(""),e=0;e!=t[227].length;++e)t[227][e].charCodeAt(0)!==65533&&(i[t[227][e]]=58112+e,o[58112+e]=t[227][e]);for(t[228]="����������������������������������������������������������������銨銩銪銫銬銭銯銰銱銲銳銴銵銶銷銸銹銺銻銼銽銾銿鋀鋁鋂鋃鋄鋅鋆鋇鋉鋊鋋鋌鋍鋎鋏鋐鋑鋒鋓鋔鋕鋖鋗鋘鋙鋚鋛鋜鋝鋞鋟鋠鋡鋢鋣鋤鋥鋦鋧鋨�鋩鋪鋫鋬鋭鋮鋯鋰鋱鋲鋳鋴鋵鋶鋷鋸鋹鋺鋻鋼鋽鋾鋿錀錁錂錃錄錅錆錇錈錉洹洧洌浃浈洇洄洙洎洫浍洮洵洚浏浒浔洳涑浯涞涠浞涓涔浜浠浼浣渚淇淅淞渎涿淠渑淦淝淙渖涫渌涮渫湮湎湫溲湟溆湓湔渲渥湄滟溱溘滠漭滢溥溧溽溻溷滗溴滏溏滂溟潢潆潇漤漕滹漯漶潋潴漪漉漩澉澍澌潸潲潼潺濑�".split(""),e=0;e!=t[228].length;++e)t[228][e].charCodeAt(0)!==65533&&(i[t[228][e]]=58368+e,o[58368+e]=t[228][e]);for(t[229]="����������������������������������������������������������������錊錋錌錍錎錏錐錑錒錓錔錕錖錗錘錙錚錛錜錝錞錟錠錡錢錣錤錥錦錧錨錩錪錫錬錭錮錯錰錱録錳錴錵錶錷錸錹錺錻錼錽錿鍀鍁鍂鍃鍄鍅鍆鍇鍈鍉�鍊鍋鍌鍍鍎鍏鍐鍑鍒鍓鍔鍕鍖鍗鍘鍙鍚鍛鍜鍝鍞鍟鍠鍡鍢鍣鍤鍥鍦鍧鍨鍩鍫濉澧澹澶濂濡濮濞濠濯瀚瀣瀛瀹瀵灏灞宀宄宕宓宥宸甯骞搴寤寮褰寰蹇謇辶迓迕迥迮迤迩迦迳迨逅逄逋逦逑逍逖逡逵逶逭逯遄遑遒遐遨遘遢遛暹遴遽邂邈邃邋彐彗彖彘尻咫屐屙孱屣屦羼弪弩弭艴弼鬻屮妁妃妍妩妪妣�".split(""),e=0;e!=t[229].length;++e)t[229][e].charCodeAt(0)!==65533&&(i[t[229][e]]=58624+e,o[58624+e]=t[229][e]);for(t[230]="����������������������������������������������������������������鍬鍭鍮鍯鍰鍱鍲鍳鍴鍵鍶鍷鍸鍹鍺鍻鍼鍽鍾鍿鎀鎁鎂鎃鎄鎅鎆鎇鎈鎉鎊鎋鎌鎍鎎鎐鎑鎒鎓鎔鎕鎖鎗鎘鎙鎚鎛鎜鎝鎞鎟鎠鎡鎢鎣鎤鎥鎦鎧鎨鎩鎪鎫�鎬鎭鎮鎯鎰鎱鎲鎳鎴鎵鎶鎷鎸鎹鎺鎻鎼鎽鎾鎿鏀鏁鏂鏃鏄鏅鏆鏇鏈鏉鏋鏌鏍妗姊妫妞妤姒妲妯姗妾娅娆姝娈姣姘姹娌娉娲娴娑娣娓婀婧婊婕娼婢婵胬媪媛婷婺媾嫫媲嫒嫔媸嫠嫣嫱嫖嫦嫘嫜嬉嬗嬖嬲嬷孀尕尜孚孥孳孑孓孢驵驷驸驺驿驽骀骁骅骈骊骐骒骓骖骘骛骜骝骟骠骢骣骥骧纟纡纣纥纨纩�".split(""),e=0;e!=t[230].length;++e)t[230][e].charCodeAt(0)!==65533&&(i[t[230][e]]=58880+e,o[58880+e]=t[230][e]);for(t[231]="����������������������������������������������������������������鏎鏏鏐鏑鏒鏓鏔鏕鏗鏘鏙鏚鏛鏜鏝鏞鏟鏠鏡鏢鏣鏤鏥鏦鏧鏨鏩鏪鏫鏬鏭鏮鏯鏰鏱鏲鏳鏴鏵鏶鏷鏸鏹鏺鏻鏼鏽鏾鏿鐀鐁鐂鐃鐄鐅鐆鐇鐈鐉鐊鐋鐌鐍�鐎鐏鐐鐑鐒鐓鐔鐕鐖鐗鐘鐙鐚鐛鐜鐝鐞鐟鐠鐡鐢鐣鐤鐥鐦鐧鐨鐩鐪鐫鐬鐭鐮纭纰纾绀绁绂绉绋绌绐绔绗绛绠绡绨绫绮绯绱绲缍绶绺绻绾缁缂缃缇缈缋缌缏缑缒缗缙缜缛缟缡缢缣缤缥缦缧缪缫缬缭缯缰缱缲缳缵幺畿巛甾邕玎玑玮玢玟珏珂珑玷玳珀珉珈珥珙顼琊珩珧珞玺珲琏琪瑛琦琥琨琰琮琬�".split(""),e=0;e!=t[231].length;++e)t[231][e].charCodeAt(0)!==65533&&(i[t[231][e]]=59136+e,o[59136+e]=t[231][e]);for(t[232]="����������������������������������������������������������������鐯鐰鐱鐲鐳鐴鐵鐶鐷鐸鐹鐺鐻鐼鐽鐿鑀鑁鑂鑃鑄鑅鑆鑇鑈鑉鑊鑋鑌鑍鑎鑏鑐鑑鑒鑓鑔鑕鑖鑗鑘鑙鑚鑛鑜鑝鑞鑟鑠鑡鑢鑣鑤鑥鑦鑧鑨鑩鑪鑬鑭鑮鑯�鑰鑱鑲鑳鑴鑵鑶鑷鑸鑹鑺鑻鑼鑽鑾鑿钀钁钂钃钄钑钖钘铇铏铓铔铚铦铻锜锠琛琚瑁瑜瑗瑕瑙瑷瑭瑾璜璎璀璁璇璋璞璨璩璐璧瓒璺韪韫韬杌杓杞杈杩枥枇杪杳枘枧杵枨枞枭枋杷杼柰栉柘栊柩枰栌柙枵柚枳柝栀柃枸柢栎柁柽栲栳桠桡桎桢桄桤梃栝桕桦桁桧桀栾桊桉栩梵梏桴桷梓桫棂楮棼椟椠棹�".split(""),e=0;e!=t[232].length;++e)t[232][e].charCodeAt(0)!==65533&&(i[t[232][e]]=59392+e,o[59392+e]=t[232][e]);for(t[233]="����������������������������������������������������������������锧锳锽镃镈镋镕镚镠镮镴镵長镸镹镺镻镼镽镾門閁閂閃閄閅閆閇閈閉閊開閌閍閎閏閐閑閒間閔閕閖閗閘閙閚閛閜閝閞閟閠閡関閣閤閥閦閧閨閩閪�閫閬閭閮閯閰閱閲閳閴閵閶閷閸閹閺閻閼閽閾閿闀闁闂闃闄闅闆闇闈闉闊闋椤棰椋椁楗棣椐楱椹楠楂楝榄楫榀榘楸椴槌榇榈槎榉楦楣楹榛榧榻榫榭槔榱槁槊槟榕槠榍槿樯槭樗樘橥槲橄樾檠橐橛樵檎橹樽樨橘橼檑檐檩檗檫猷獒殁殂殇殄殒殓殍殚殛殡殪轫轭轱轲轳轵轶轸轷轹轺轼轾辁辂辄辇辋�".split(""),e=0;e!=t[233].length;++e)t[233][e].charCodeAt(0)!==65533&&(i[t[233][e]]=59648+e,o[59648+e]=t[233][e]);for(t[234]="����������������������������������������������������������������闌闍闎闏闐闑闒闓闔闕闖闗闘闙闚闛關闝闞闟闠闡闢闣闤闥闦闧闬闿阇阓阘阛阞阠阣阤阥阦阧阨阩阫阬阭阯阰阷阸阹阺阾陁陃陊陎陏陑陒陓陖陗�陘陙陚陜陝陞陠陣陥陦陫陭陮陯陰陱陳陸陹険陻陼陽陾陿隀隁隂隃隄隇隉隊辍辎辏辘辚軎戋戗戛戟戢戡戥戤戬臧瓯瓴瓿甏甑甓攴旮旯旰昊昙杲昃昕昀炅曷昝昴昱昶昵耆晟晔晁晏晖晡晗晷暄暌暧暝暾曛曜曦曩贲贳贶贻贽赀赅赆赈赉赇赍赕赙觇觊觋觌觎觏觐觑牮犟牝牦牯牾牿犄犋犍犏犒挈挲掰�".split(""),e=0;e!=t[234].length;++e)t[234][e].charCodeAt(0)!==65533&&(i[t[234][e]]=59904+e,o[59904+e]=t[234][e]);for(t[235]="����������������������������������������������������������������隌階隑隒隓隕隖隚際隝隞隟隠隡隢隣隤隥隦隨隩險隫隬隭隮隯隱隲隴隵隷隸隺隻隿雂雃雈雊雋雐雑雓雔雖雗雘雙雚雛雜雝雞雟雡離難雤雥雦雧雫�雬雭雮雰雱雲雴雵雸雺電雼雽雿霂霃霅霊霋霌霐霑霒霔霕霗霘霙霚霛霝霟霠搿擘耄毪毳毽毵毹氅氇氆氍氕氘氙氚氡氩氤氪氲攵敕敫牍牒牖爰虢刖肟肜肓肼朊肽肱肫肭肴肷胧胨胩胪胛胂胄胙胍胗朐胝胫胱胴胭脍脎胲胼朕脒豚脶脞脬脘脲腈腌腓腴腙腚腱腠腩腼腽腭腧塍媵膈膂膑滕膣膪臌朦臊膻�".split(""),e=0;e!=t[235].length;++e)t[235][e].charCodeAt(0)!==65533&&(i[t[235][e]]=60160+e,o[60160+e]=t[235][e]);for(t[236]="����������������������������������������������������������������霡霢霣霤霥霦霧霨霩霫霬霮霯霱霳霴霵霶霷霺霻霼霽霿靀靁靂靃靄靅靆靇靈靉靊靋靌靍靎靏靐靑靔靕靗靘靚靜靝靟靣靤靦靧靨靪靫靬靭靮靯靰靱�靲靵靷靸靹靺靻靽靾靿鞀鞁鞂鞃鞄鞆鞇鞈鞉鞊鞌鞎鞏鞐鞓鞕鞖鞗鞙鞚鞛鞜鞝臁膦欤欷欹歃歆歙飑飒飓飕飙飚殳彀毂觳斐齑斓於旆旄旃旌旎旒旖炀炜炖炝炻烀炷炫炱烨烊焐焓焖焯焱煳煜煨煅煲煊煸煺熘熳熵熨熠燠燔燧燹爝爨灬焘煦熹戾戽扃扈扉礻祀祆祉祛祜祓祚祢祗祠祯祧祺禅禊禚禧禳忑忐�".split(""),e=0;e!=t[236].length;++e)t[236][e].charCodeAt(0)!==65533&&(i[t[236][e]]=60416+e,o[60416+e]=t[236][e]);for(t[237]="����������������������������������������������������������������鞞鞟鞡鞢鞤鞥鞦鞧鞨鞩鞪鞬鞮鞰鞱鞳鞵鞶鞷鞸鞹鞺鞻鞼鞽鞾鞿韀韁韂韃韄韅韆韇韈韉韊韋韌韍韎韏韐韑韒韓韔韕韖韗韘韙韚韛韜韝韞韟韠韡韢韣�韤韥韨韮韯韰韱韲韴韷韸韹韺韻韼韽韾響頀頁頂頃頄項順頇須頉頊頋頌頍頎怼恝恚恧恁恙恣悫愆愍慝憩憝懋懑戆肀聿沓泶淼矶矸砀砉砗砘砑斫砭砜砝砹砺砻砟砼砥砬砣砩硎硭硖硗砦硐硇硌硪碛碓碚碇碜碡碣碲碹碥磔磙磉磬磲礅磴礓礤礞礴龛黹黻黼盱眄眍盹眇眈眚眢眙眭眦眵眸睐睑睇睃睚睨�".split(""),e=0;e!=t[237].length;++e)t[237][e].charCodeAt(0)!==65533&&(i[t[237][e]]=60672+e,o[60672+e]=t[237][e]);for(t[238]="����������������������������������������������������������������頏預頑頒頓頔頕頖頗領頙頚頛頜頝頞頟頠頡頢頣頤頥頦頧頨頩頪頫頬頭頮頯頰頱頲頳頴頵頶頷頸頹頺頻頼頽頾頿顀顁顂顃顄顅顆顇顈顉顊顋題額�顎顏顐顑顒顓顔顕顖顗願顙顚顛顜顝類顟顠顡顢顣顤顥顦顧顨顩顪顫顬顭顮睢睥睿瞍睽瞀瞌瞑瞟瞠瞰瞵瞽町畀畎畋畈畛畲畹疃罘罡罟詈罨罴罱罹羁罾盍盥蠲钅钆钇钋钊钌钍钏钐钔钗钕钚钛钜钣钤钫钪钭钬钯钰钲钴钶钷钸钹钺钼钽钿铄铈铉铊铋铌铍铎铐铑铒铕铖铗铙铘铛铞铟铠铢铤铥铧铨铪�".split(""),e=0;e!=t[238].length;++e)t[238][e].charCodeAt(0)!==65533&&(i[t[238][e]]=60928+e,o[60928+e]=t[238][e]);for(t[239]="����������������������������������������������������������������顯顰顱顲顳顴颋颎颒颕颙颣風颩颪颫颬颭颮颯颰颱颲颳颴颵颶颷颸颹颺颻颼颽颾颿飀飁飂飃飄飅飆飇飈飉飊飋飌飍飏飐飔飖飗飛飜飝飠飡飢飣飤�飥飦飩飪飫飬飭飮飯飰飱飲飳飴飵飶飷飸飹飺飻飼飽飾飿餀餁餂餃餄餅餆餇铩铫铮铯铳铴铵铷铹铼铽铿锃锂锆锇锉锊锍锎锏锒锓锔锕锖锘锛锝锞锟锢锪锫锩锬锱锲锴锶锷锸锼锾锿镂锵镄镅镆镉镌镎镏镒镓镔镖镗镘镙镛镞镟镝镡镢镤镥镦镧镨镩镪镫镬镯镱镲镳锺矧矬雉秕秭秣秫稆嵇稃稂稞稔�".split(""),e=0;e!=t[239].length;++e)t[239][e].charCodeAt(0)!==65533&&(i[t[239][e]]=61184+e,o[61184+e]=t[239][e]);for(t[240]="����������������������������������������������������������������餈餉養餋餌餎餏餑餒餓餔餕餖餗餘餙餚餛餜餝餞餟餠餡餢餣餤餥餦餧館餩餪餫餬餭餯餰餱餲餳餴餵餶餷餸餹餺餻餼餽餾餿饀饁饂饃饄饅饆饇饈饉�饊饋饌饍饎饏饐饑饒饓饖饗饘饙饚饛饜饝饞饟饠饡饢饤饦饳饸饹饻饾馂馃馉稹稷穑黏馥穰皈皎皓皙皤瓞瓠甬鸠鸢鸨鸩鸪鸫鸬鸲鸱鸶鸸鸷鸹鸺鸾鹁鹂鹄鹆鹇鹈鹉鹋鹌鹎鹑鹕鹗鹚鹛鹜鹞鹣鹦鹧鹨鹩鹪鹫鹬鹱鹭鹳疒疔疖疠疝疬疣疳疴疸痄疱疰痃痂痖痍痣痨痦痤痫痧瘃痱痼痿瘐瘀瘅瘌瘗瘊瘥瘘瘕瘙�".split(""),e=0;e!=t[240].length;++e)t[240][e].charCodeAt(0)!==65533&&(i[t[240][e]]=61440+e,o[61440+e]=t[240][e]);for(t[241]="����������������������������������������������������������������馌馎馚馛馜馝馞馟馠馡馢馣馤馦馧馩馪馫馬馭馮馯馰馱馲馳馴馵馶馷馸馹馺馻馼馽馾馿駀駁駂駃駄駅駆駇駈駉駊駋駌駍駎駏駐駑駒駓駔駕駖駗駘�駙駚駛駜駝駞駟駠駡駢駣駤駥駦駧駨駩駪駫駬駭駮駯駰駱駲駳駴駵駶駷駸駹瘛瘼瘢瘠癀瘭瘰瘿瘵癃瘾瘳癍癞癔癜癖癫癯翊竦穸穹窀窆窈窕窦窠窬窨窭窳衤衩衲衽衿袂袢裆袷袼裉裢裎裣裥裱褚裼裨裾裰褡褙褓褛褊褴褫褶襁襦襻疋胥皲皴矜耒耔耖耜耠耢耥耦耧耩耨耱耋耵聃聆聍聒聩聱覃顸颀颃�".split(""),e=0;e!=t[241].length;++e)t[241][e].charCodeAt(0)!==65533&&(i[t[241][e]]=61696+e,o[61696+e]=t[241][e]);for(t[242]="����������������������������������������������������������������駺駻駼駽駾駿騀騁騂騃騄騅騆騇騈騉騊騋騌騍騎騏騐騑騒験騔騕騖騗騘騙騚騛騜騝騞騟騠騡騢騣騤騥騦騧騨騩騪騫騬騭騮騯騰騱騲騳騴騵騶騷騸�騹騺騻騼騽騾騿驀驁驂驃驄驅驆驇驈驉驊驋驌驍驎驏驐驑驒驓驔驕驖驗驘驙颉颌颍颏颔颚颛颞颟颡颢颥颦虍虔虬虮虿虺虼虻蚨蚍蚋蚬蚝蚧蚣蚪蚓蚩蚶蛄蚵蛎蚰蚺蚱蚯蛉蛏蚴蛩蛱蛲蛭蛳蛐蜓蛞蛴蛟蛘蛑蜃蜇蛸蜈蜊蜍蜉蜣蜻蜞蜥蜮蜚蜾蝈蜴蜱蜩蜷蜿螂蜢蝽蝾蝻蝠蝰蝌蝮螋蝓蝣蝼蝤蝙蝥螓螯螨蟒�".split(""),e=0;e!=t[242].length;++e)t[242][e].charCodeAt(0)!==65533&&(i[t[242][e]]=61952+e,o[61952+e]=t[242][e]);for(t[243]="����������������������������������������������������������������驚驛驜驝驞驟驠驡驢驣驤驥驦驧驨驩驪驫驲骃骉骍骎骔骕骙骦骩骪骫骬骭骮骯骲骳骴骵骹骻骽骾骿髃髄髆髇髈髉髊髍髎髏髐髒體髕髖髗髙髚髛髜�髝髞髠髢髣髤髥髧髨髩髪髬髮髰髱髲髳髴髵髶髷髸髺髼髽髾髿鬀鬁鬂鬄鬅鬆蟆螈螅螭螗螃螫蟥螬螵螳蟋蟓螽蟑蟀蟊蟛蟪蟠蟮蠖蠓蟾蠊蠛蠡蠹蠼缶罂罄罅舐竺竽笈笃笄笕笊笫笏筇笸笪笙笮笱笠笥笤笳笾笞筘筚筅筵筌筝筠筮筻筢筲筱箐箦箧箸箬箝箨箅箪箜箢箫箴篑篁篌篝篚篥篦篪簌篾篼簏簖簋�".split(""),e=0;e!=t[243].length;++e)t[243][e].charCodeAt(0)!==65533&&(i[t[243][e]]=62208+e,o[62208+e]=t[243][e]);for(t[244]="����������������������������������������������������������������鬇鬉鬊鬋鬌鬍鬎鬐鬑鬒鬔鬕鬖鬗鬘鬙鬚鬛鬜鬝鬞鬠鬡鬢鬤鬥鬦鬧鬨鬩鬪鬫鬬鬭鬮鬰鬱鬳鬴鬵鬶鬷鬸鬹鬺鬽鬾鬿魀魆魊魋魌魎魐魒魓魕魖魗魘魙魚�魛魜魝魞魟魠魡魢魣魤魥魦魧魨魩魪魫魬魭魮魯魰魱魲魳魴魵魶魷魸魹魺魻簟簪簦簸籁籀臾舁舂舄臬衄舡舢舣舭舯舨舫舸舻舳舴舾艄艉艋艏艚艟艨衾袅袈裘裟襞羝羟羧羯羰羲籼敉粑粝粜粞粢粲粼粽糁糇糌糍糈糅糗糨艮暨羿翎翕翥翡翦翩翮翳糸絷綦綮繇纛麸麴赳趄趔趑趱赧赭豇豉酊酐酎酏酤�".split(""),e=0;e!=t[244].length;++e)t[244][e].charCodeAt(0)!==65533&&(i[t[244][e]]=62464+e,o[62464+e]=t[244][e]);for(t[245]="����������������������������������������������������������������魼魽魾魿鮀鮁鮂鮃鮄鮅鮆鮇鮈鮉鮊鮋鮌鮍鮎鮏鮐鮑鮒鮓鮔鮕鮖鮗鮘鮙鮚鮛鮜鮝鮞鮟鮠鮡鮢鮣鮤鮥鮦鮧鮨鮩鮪鮫鮬鮭鮮鮯鮰鮱鮲鮳鮴鮵鮶鮷鮸鮹鮺�鮻鮼鮽鮾鮿鯀鯁鯂鯃鯄鯅鯆鯇鯈鯉鯊鯋鯌鯍鯎鯏鯐鯑鯒鯓鯔鯕鯖鯗鯘鯙鯚鯛酢酡酰酩酯酽酾酲酴酹醌醅醐醍醑醢醣醪醭醮醯醵醴醺豕鹾趸跫踅蹙蹩趵趿趼趺跄跖跗跚跞跎跏跛跆跬跷跸跣跹跻跤踉跽踔踝踟踬踮踣踯踺蹀踹踵踽踱蹉蹁蹂蹑蹒蹊蹰蹶蹼蹯蹴躅躏躔躐躜躞豸貂貊貅貘貔斛觖觞觚觜�".split(""),e=0;e!=t[245].length;++e)t[245][e].charCodeAt(0)!==65533&&(i[t[245][e]]=62720+e,o[62720+e]=t[245][e]);for(t[246]="����������������������������������������������������������������鯜鯝鯞鯟鯠鯡鯢鯣鯤鯥鯦鯧鯨鯩鯪鯫鯬鯭鯮鯯鯰鯱鯲鯳鯴鯵鯶鯷鯸鯹鯺鯻鯼鯽鯾鯿鰀鰁鰂鰃鰄鰅鰆鰇鰈鰉鰊鰋鰌鰍鰎鰏鰐鰑鰒鰓鰔鰕鰖鰗鰘鰙鰚�鰛鰜鰝鰞鰟鰠鰡鰢鰣鰤鰥鰦鰧鰨鰩鰪鰫鰬鰭鰮鰯鰰鰱鰲鰳鰴鰵鰶鰷鰸鰹鰺鰻觥觫觯訾謦靓雩雳雯霆霁霈霏霎霪霭霰霾龀龃龅龆龇龈龉龊龌黾鼋鼍隹隼隽雎雒瞿雠銎銮鋈錾鍪鏊鎏鐾鑫鱿鲂鲅鲆鲇鲈稣鲋鲎鲐鲑鲒鲔鲕鲚鲛鲞鲟鲠鲡鲢鲣鲥鲦鲧鲨鲩鲫鲭鲮鲰鲱鲲鲳鲴鲵鲶鲷鲺鲻鲼鲽鳄鳅鳆鳇鳊鳋�".split(""),e=0;e!=t[246].length;++e)t[246][e].charCodeAt(0)!==65533&&(i[t[246][e]]=62976+e,o[62976+e]=t[246][e]);for(t[247]="����������������������������������������������������������������鰼鰽鰾鰿鱀鱁鱂鱃鱄鱅鱆鱇鱈鱉鱊鱋鱌鱍鱎鱏鱐鱑鱒鱓鱔鱕鱖鱗鱘鱙鱚鱛鱜鱝鱞鱟鱠鱡鱢鱣鱤鱥鱦鱧鱨鱩鱪鱫鱬鱭鱮鱯鱰鱱鱲鱳鱴鱵鱶鱷鱸鱹鱺�鱻鱽鱾鲀鲃鲄鲉鲊鲌鲏鲓鲖鲗鲘鲙鲝鲪鲬鲯鲹鲾鲿鳀鳁鳂鳈鳉鳑鳒鳚鳛鳠鳡鳌鳍鳎鳏鳐鳓鳔鳕鳗鳘鳙鳜鳝鳟鳢靼鞅鞑鞒鞔鞯鞫鞣鞲鞴骱骰骷鹘骶骺骼髁髀髅髂髋髌髑魅魃魇魉魈魍魑飨餍餮饕饔髟髡髦髯髫髻髭髹鬈鬏鬓鬟鬣麽麾縻麂麇麈麋麒鏖麝麟黛黜黝黠黟黢黩黧黥黪黯鼢鼬鼯鼹鼷鼽鼾齄�".split(""),e=0;e!=t[247].length;++e)t[247][e].charCodeAt(0)!==65533&&(i[t[247][e]]=63232+e,o[63232+e]=t[247][e]);for(t[248]="����������������������������������������������������������������鳣鳤鳥鳦鳧鳨鳩鳪鳫鳬鳭鳮鳯鳰鳱鳲鳳鳴鳵鳶鳷鳸鳹鳺鳻鳼鳽鳾鳿鴀鴁鴂鴃鴄鴅鴆鴇鴈鴉鴊鴋鴌鴍鴎鴏鴐鴑鴒鴓鴔鴕鴖鴗鴘鴙鴚鴛鴜鴝鴞鴟鴠鴡�鴢鴣鴤鴥鴦鴧鴨鴩鴪鴫鴬鴭鴮鴯鴰鴱鴲鴳鴴鴵鴶鴷鴸鴹鴺鴻鴼鴽鴾鴿鵀鵁鵂�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[248].length;++e)t[248][e].charCodeAt(0)!==65533&&(i[t[248][e]]=63488+e,o[63488+e]=t[248][e]);for(t[249]="����������������������������������������������������������������鵃鵄鵅鵆鵇鵈鵉鵊鵋鵌鵍鵎鵏鵐鵑鵒鵓鵔鵕鵖鵗鵘鵙鵚鵛鵜鵝鵞鵟鵠鵡鵢鵣鵤鵥鵦鵧鵨鵩鵪鵫鵬鵭鵮鵯鵰鵱鵲鵳鵴鵵鵶鵷鵸鵹鵺鵻鵼鵽鵾鵿鶀鶁�鶂鶃鶄鶅鶆鶇鶈鶉鶊鶋鶌鶍鶎鶏鶐鶑鶒鶓鶔鶕鶖鶗鶘鶙鶚鶛鶜鶝鶞鶟鶠鶡鶢�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[249].length;++e)t[249][e].charCodeAt(0)!==65533&&(i[t[249][e]]=63744+e,o[63744+e]=t[249][e]);for(t[250]="����������������������������������������������������������������鶣鶤鶥鶦鶧鶨鶩鶪鶫鶬鶭鶮鶯鶰鶱鶲鶳鶴鶵鶶鶷鶸鶹鶺鶻鶼鶽鶾鶿鷀鷁鷂鷃鷄鷅鷆鷇鷈鷉鷊鷋鷌鷍鷎鷏鷐鷑鷒鷓鷔鷕鷖鷗鷘鷙鷚鷛鷜鷝鷞鷟鷠鷡�鷢鷣鷤鷥鷦鷧鷨鷩鷪鷫鷬鷭鷮鷯鷰鷱鷲鷳鷴鷵鷶鷷鷸鷹鷺鷻鷼鷽鷾鷿鸀鸁鸂�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[250].length;++e)t[250][e].charCodeAt(0)!==65533&&(i[t[250][e]]=64e3+e,o[64e3+e]=t[250][e]);for(t[251]="����������������������������������������������������������������鸃鸄鸅鸆鸇鸈鸉鸊鸋鸌鸍鸎鸏鸐鸑鸒鸓鸔鸕鸖鸗鸘鸙鸚鸛鸜鸝鸞鸤鸧鸮鸰鸴鸻鸼鹀鹍鹐鹒鹓鹔鹖鹙鹝鹟鹠鹡鹢鹥鹮鹯鹲鹴鹵鹶鹷鹸鹹鹺鹻鹼鹽麀�麁麃麄麅麆麉麊麌麍麎麏麐麑麔麕麖麗麘麙麚麛麜麞麠麡麢麣麤麥麧麨麩麪�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[251].length;++e)t[251][e].charCodeAt(0)!==65533&&(i[t[251][e]]=64256+e,o[64256+e]=t[251][e]);for(t[252]="����������������������������������������������������������������麫麬麭麮麯麰麱麲麳麵麶麷麹麺麼麿黀黁黂黃黅黆黇黈黊黋黌黐黒黓黕黖黗黙黚點黡黣黤黦黨黫黬黭黮黰黱黲黳黴黵黶黷黸黺黽黿鼀鼁鼂鼃鼄鼅�鼆鼇鼈鼉鼊鼌鼏鼑鼒鼔鼕鼖鼘鼚鼛鼜鼝鼞鼟鼡鼣鼤鼥鼦鼧鼨鼩鼪鼫鼭鼮鼰鼱�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[252].length;++e)t[252][e].charCodeAt(0)!==65533&&(i[t[252][e]]=64512+e,o[64512+e]=t[252][e]);for(t[253]="����������������������������������������������������������������鼲鼳鼴鼵鼶鼸鼺鼼鼿齀齁齂齃齅齆齇齈齉齊齋齌齍齎齏齒齓齔齕齖齗齘齙齚齛齜齝齞齟齠齡齢齣齤齥齦齧齨齩齪齫齬齭齮齯齰齱齲齳齴齵齶齷齸�齹齺齻齼齽齾龁龂龍龎龏龐龑龒龓龔龕龖龗龘龜龝龞龡龢龣龤龥郎凉秊裏隣�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[253].length;++e)t[253][e].charCodeAt(0)!==65533&&(i[t[253][e]]=64768+e,o[64768+e]=t[253][e]);for(t[254]="����������������������������������������������������������������兀嗀﨎﨏﨑﨓﨔礼﨟蘒﨡﨣﨤﨧﨨﨩��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������".split(""),e=0;e!=t[254].length;++e)t[254][e].charCodeAt(0)!==65533&&(i[t[254][e]]=65024+e,o[65024+e]=t[254][e]);return{enc:i,dec:o}}(),r[949]=function(){var o=[],i={},t=[],e;for(t[0]=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~��������������������������������������������������������������������������������������������������������������������������������`.split(""),e=0;e!=t[0].length;++e)t[0][e].charCodeAt(0)!==65533&&(i[t[0][e]]=0+e,o[0+e]=t[0][e]);for(t[129]="�����������������������������������������������������������������갂갃갅갆갋갌갍갎갏갘갞갟갡갢갣갥갦갧갨갩갪갫갮갲갳갴������갵갶갷갺갻갽갾갿걁걂걃걄걅걆걇걈걉걊걌걎걏걐걑걒걓걕������걖걗걙걚걛걝걞걟걠걡걢걣걤걥걦걧걨걩걪걫걬걭걮걯걲걳걵걶걹걻걼걽걾걿겂겇겈겍겎겏겑겒겓겕겖겗겘겙겚겛겞겢겣겤겥겦겧겫겭겮겱겲겳겴겵겶겷겺겾겿곀곂곃곅곆곇곉곊곋곍곎곏곐곑곒곓곔곖곘곙곚곛곜곝곞곟곢곣곥곦곩곫곭곮곲곴곷곸곹곺곻곾곿괁괂괃괅괇괈괉괊괋괎괐괒괓�".split(""),e=0;e!=t[129].length;++e)t[129][e].charCodeAt(0)!==65533&&(i[t[129][e]]=33024+e,o[33024+e]=t[129][e]);for(t[130]="�����������������������������������������������������������������괔괕괖괗괙괚괛괝괞괟괡괢괣괤괥괦괧괨괪괫괮괯괰괱괲괳������괶괷괹괺괻괽괾괿굀굁굂굃굆굈굊굋굌굍굎굏굑굒굓굕굖굗������굙굚굛굜굝굞굟굠굢굤굥굦굧굨굩굪굫굮굯굱굲굷굸굹굺굾궀궃궄궅궆궇궊궋궍궎궏궑궒궓궔궕궖궗궘궙궚궛궞궟궠궡궢궣궥궦궧궨궩궪궫궬궭궮궯궰궱궲궳궴궵궶궸궹궺궻궼궽궾궿귂귃귅귆귇귉귊귋귌귍귎귏귒귔귕귖귗귘귙귚귛귝귞귟귡귢귣귥귦귧귨귩귪귫귬귭귮귯귰귱귲귳귴귵귶귷�".split(""),e=0;e!=t[130].length;++e)t[130][e].charCodeAt(0)!==65533&&(i[t[130][e]]=33280+e,o[33280+e]=t[130][e]);for(t[131]="�����������������������������������������������������������������귺귻귽귾긂긃긄긅긆긇긊긌긎긏긐긑긒긓긕긖긗긘긙긚긛긜������긝긞긟긠긡긢긣긤긥긦긧긨긩긪긫긬긭긮긯긲긳긵긶긹긻긼������긽긾긿깂깄깇깈깉깋깏깑깒깓깕깗깘깙깚깛깞깢깣깤깦깧깪깫깭깮깯깱깲깳깴깵깶깷깺깾깿꺀꺁꺂꺃꺆꺇꺈꺉꺊꺋꺍꺎꺏꺐꺑꺒꺓꺔꺕꺖꺗꺘꺙꺚꺛꺜꺝꺞꺟꺠꺡꺢꺣꺤꺥꺦꺧꺨꺩꺪꺫꺬꺭꺮꺯꺰꺱꺲꺳꺴꺵꺶꺷꺸꺹꺺꺻꺿껁껂껃껅껆껇껈껉껊껋껎껒껓껔껕껖껗껚껛껝껞껟껠껡껢껣껤껥�".split(""),e=0;e!=t[131].length;++e)t[131][e].charCodeAt(0)!==65533&&(i[t[131][e]]=33536+e,o[33536+e]=t[131][e]);for(t[132]="�����������������������������������������������������������������껦껧껩껪껬껮껯껰껱껲껳껵껶껷껹껺껻껽껾껿꼀꼁꼂꼃꼄꼅������꼆꼉꼊꼋꼌꼎꼏꼑꼒꼓꼔꼕꼖꼗꼘꼙꼚꼛꼜꼝꼞꼟꼠꼡꼢꼣������꼤꼥꼦꼧꼨꼩꼪꼫꼮꼯꼱꼳꼵꼶꼷꼸꼹꼺꼻꼾꽀꽄꽅꽆꽇꽊꽋꽌꽍꽎꽏꽑꽒꽓꽔꽕꽖꽗꽘꽙꽚꽛꽞꽟꽠꽡꽢꽣꽦꽧꽨꽩꽪꽫꽬꽭꽮꽯꽰꽱꽲꽳꽴꽵꽶꽷꽸꽺꽻꽼꽽꽾꽿꾁꾂꾃꾅꾆꾇꾉꾊꾋꾌꾍꾎꾏꾒꾓꾔꾖꾗꾘꾙꾚꾛꾝꾞꾟꾠꾡꾢꾣꾤꾥꾦꾧꾨꾩꾪꾫꾬꾭꾮꾯꾰꾱꾲꾳꾴꾵꾶꾷꾺꾻꾽꾾�".split(""),e=0;e!=t[132].length;++e)t[132][e].charCodeAt(0)!==65533&&(i[t[132][e]]=33792+e,o[33792+e]=t[132][e]);for(t[133]="�����������������������������������������������������������������꾿꿁꿂꿃꿄꿅꿆꿊꿌꿏꿐꿑꿒꿓꿕꿖꿗꿘꿙꿚꿛꿝꿞꿟꿠꿡������꿢꿣꿤꿥꿦꿧꿪꿫꿬꿭꿮꿯꿲꿳꿵꿶꿷꿹꿺꿻꿼꿽꿾꿿뀂뀃������뀅뀆뀇뀈뀉뀊뀋뀍뀎뀏뀑뀒뀓뀕뀖뀗뀘뀙뀚뀛뀞뀟뀠뀡뀢뀣뀤뀥뀦뀧뀩뀪뀫뀬뀭뀮뀯뀰뀱뀲뀳뀴뀵뀶뀷뀸뀹뀺뀻뀼뀽뀾뀿끀끁끂끃끆끇끉끋끍끏끐끑끒끖끘끚끛끜끞끟끠끡끢끣끤끥끦끧끨끩끪끫끬끭끮끯끰끱끲끳끴끵끶끷끸끹끺끻끾끿낁낂낃낅낆낇낈낉낊낋낎낐낒낓낔낕낖낗낛낝낞낣낤�".split(""),e=0;e!=t[133].length;++e)t[133][e].charCodeAt(0)!==65533&&(i[t[133][e]]=34048+e,o[34048+e]=t[133][e]);for(t[134]="�����������������������������������������������������������������낥낦낧낪낰낲낶낷낹낺낻낽낾낿냀냁냂냃냆냊냋냌냍냎냏냒������냓냕냖냗냙냚냛냜냝냞냟냡냢냣냤냦냧냨냩냪냫냬냭냮냯냰������냱냲냳냴냵냶냷냸냹냺냻냼냽냾냿넀넁넂넃넄넅넆넇넊넍넎넏넑넔넕넖넗넚넞넟넠넡넢넦넧넩넪넫넭넮넯넰넱넲넳넶넺넻넼넽넾넿녂녃녅녆녇녉녊녋녌녍녎녏녒녓녖녗녙녚녛녝녞녟녡녢녣녤녥녦녧녨녩녪녫녬녭녮녯녰녱녲녳녴녵녶녷녺녻녽녾녿놁놃놄놅놆놇놊놌놎놏놐놑놕놖놗놙놚놛놝�".split(""),e=0;e!=t[134].length;++e)t[134][e].charCodeAt(0)!==65533&&(i[t[134][e]]=34304+e,o[34304+e]=t[134][e]);for(t[135]="�����������������������������������������������������������������놞놟놠놡놢놣놤놥놦놧놩놪놫놬놭놮놯놰놱놲놳놴놵놶놷놸������놹놺놻놼놽놾놿뇀뇁뇂뇃뇄뇅뇆뇇뇈뇉뇊뇋뇍뇎뇏뇑뇒뇓뇕������뇖뇗뇘뇙뇚뇛뇞뇠뇡뇢뇣뇤뇥뇦뇧뇪뇫뇭뇮뇯뇱뇲뇳뇴뇵뇶뇷뇸뇺뇼뇾뇿눀눁눂눃눆눇눉눊눍눎눏눐눑눒눓눖눘눚눛눜눝눞눟눡눢눣눤눥눦눧눨눩눪눫눬눭눮눯눰눱눲눳눵눶눷눸눹눺눻눽눾눿뉀뉁뉂뉃뉄뉅뉆뉇뉈뉉뉊뉋뉌뉍뉎뉏뉐뉑뉒뉓뉔뉕뉖뉗뉙뉚뉛뉝뉞뉟뉡뉢뉣뉤뉥뉦뉧뉪뉫뉬뉭뉮�".split(""),e=0;e!=t[135].length;++e)t[135][e].charCodeAt(0)!==65533&&(i[t[135][e]]=34560+e,o[34560+e]=t[135][e]);for(t[136]="�����������������������������������������������������������������뉯뉰뉱뉲뉳뉶뉷뉸뉹뉺뉻뉽뉾뉿늀늁늂늃늆늇늈늊늋늌늍늎������늏늒늓늕늖늗늛늜늝늞늟늢늤늧늨늩늫늭늮늯늱늲늳늵늶늷������늸늹늺늻늼늽늾늿닀닁닂닃닄닅닆닇닊닋닍닎닏닑닓닔닕닖닗닚닜닞닟닠닡닣닧닩닪닰닱닲닶닼닽닾댂댃댅댆댇댉댊댋댌댍댎댏댒댖댗댘댙댚댛댝댞댟댠댡댢댣댤댥댦댧댨댩댪댫댬댭댮댯댰댱댲댳댴댵댶댷댸댹댺댻댼댽댾댿덀덁덂덃덄덅덆덇덈덉덊덋덌덍덎덏덐덑덒덓덗덙덚덝덠덡덢덣�".split(""),e=0;e!=t[136].length;++e)t[136][e].charCodeAt(0)!==65533&&(i[t[136][e]]=34816+e,o[34816+e]=t[136][e]);for(t[137]="�����������������������������������������������������������������덦덨덪덬덭덯덲덳덵덶덷덹덺덻덼덽덾덿뎂뎆뎇뎈뎉뎊뎋뎍������뎎뎏뎑뎒뎓뎕뎖뎗뎘뎙뎚뎛뎜뎝뎞뎟뎢뎣뎤뎥뎦뎧뎩뎪뎫뎭������뎮뎯뎰뎱뎲뎳뎴뎵뎶뎷뎸뎹뎺뎻뎼뎽뎾뎿돀돁돂돃돆돇돉돊돍돏돑돒돓돖돘돚돜돞돟돡돢돣돥돦돧돩돪돫돬돭돮돯돰돱돲돳돴돵돶돷돸돹돺돻돽돾돿됀됁됂됃됄됅됆됇됈됉됊됋됌됍됎됏됑됒됓됔됕됖됗됙됚됛됝됞됟됡됢됣됤됥됦됧됪됬됭됮됯됰됱됲됳됵됶됷됸됹됺됻됼됽됾됿둀둁둂둃둄�".split(""),e=0;e!=t[137].length;++e)t[137][e].charCodeAt(0)!==65533&&(i[t[137][e]]=35072+e,o[35072+e]=t[137][e]);for(t[138]="�����������������������������������������������������������������둅둆둇둈둉둊둋둌둍둎둏둒둓둕둖둗둙둚둛둜둝둞둟둢둤둦������둧둨둩둪둫둭둮둯둰둱둲둳둴둵둶둷둸둹둺둻둼둽둾둿뒁뒂������뒃뒄뒅뒆뒇뒉뒊뒋뒌뒍뒎뒏뒐뒑뒒뒓뒔뒕뒖뒗뒘뒙뒚뒛뒜뒞뒟뒠뒡뒢뒣뒥뒦뒧뒩뒪뒫뒭뒮뒯뒰뒱뒲뒳뒴뒶뒸뒺뒻뒼뒽뒾뒿듁듂듃듅듆듇듉듊듋듌듍듎듏듑듒듓듔듖듗듘듙듚듛듞듟듡듢듥듧듨듩듪듫듮듰듲듳듴듵듶듷듹듺듻듼듽듾듿딀딁딂딃딄딅딆딇딈딉딊딋딌딍딎딏딐딑딒딓딖딗딙딚딝�".split(""),e=0;e!=t[138].length;++e)t[138][e].charCodeAt(0)!==65533&&(i[t[138][e]]=35328+e,o[35328+e]=t[138][e]);for(t[139]="�����������������������������������������������������������������딞딟딠딡딢딣딦딫딬딭딮딯딲딳딵딶딷딹딺딻딼딽딾딿땂땆������땇땈땉땊땎땏땑땒땓땕땖땗땘땙땚땛땞땢땣땤땥땦땧땨땩땪������땫땬땭땮땯땰땱땲땳땴땵땶땷땸땹땺땻땼땽땾땿떀떁떂떃떄떅떆떇떈떉떊떋떌떍떎떏떐떑떒떓떔떕떖떗떘떙떚떛떜떝떞떟떢떣떥떦떧떩떬떭떮떯떲떶떷떸떹떺떾떿뗁뗂뗃뗅뗆뗇뗈뗉뗊뗋뗎뗒뗓뗔뗕뗖뗗뗙뗚뗛뗜뗝뗞뗟뗠뗡뗢뗣뗤뗥뗦뗧뗨뗩뗪뗫뗭뗮뗯뗰뗱뗲뗳뗴뗵뗶뗷뗸뗹뗺뗻뗼뗽뗾뗿�".split(""),e=0;e!=t[139].length;++e)t[139][e].charCodeAt(0)!==65533&&(i[t[139][e]]=35584+e,o[35584+e]=t[139][e]);for(t[140]="�����������������������������������������������������������������똀똁똂똃똄똅똆똇똈똉똊똋똌똍똎똏똒똓똕똖똗똙똚똛똜똝������똞똟똠똡똢똣똤똦똧똨똩똪똫똭똮똯똰똱똲똳똵똶똷똸똹똺������똻똼똽똾똿뙀뙁뙂뙃뙄뙅뙆뙇뙉뙊뙋뙌뙍뙎뙏뙐뙑뙒뙓뙔뙕뙖뙗뙘뙙뙚뙛뙜뙝뙞뙟뙠뙡뙢뙣뙥뙦뙧뙩뙪뙫뙬뙭뙮뙯뙰뙱뙲뙳뙴뙵뙶뙷뙸뙹뙺뙻뙼뙽뙾뙿뚀뚁뚂뚃뚄뚅뚆뚇뚈뚉뚊뚋뚌뚍뚎뚏뚐뚑뚒뚓뚔뚕뚖뚗뚘뚙뚚뚛뚞뚟뚡뚢뚣뚥뚦뚧뚨뚩뚪뚭뚮뚯뚰뚲뚳뚴뚵뚶뚷뚸뚹뚺뚻뚼뚽뚾뚿뛀뛁뛂�".split(""),e=0;e!=t[140].length;++e)t[140][e].charCodeAt(0)!==65533&&(i[t[140][e]]=35840+e,o[35840+e]=t[140][e]);for(t[141]="�����������������������������������������������������������������뛃뛄뛅뛆뛇뛈뛉뛊뛋뛌뛍뛎뛏뛐뛑뛒뛓뛕뛖뛗뛘뛙뛚뛛뛜뛝������뛞뛟뛠뛡뛢뛣뛤뛥뛦뛧뛨뛩뛪뛫뛬뛭뛮뛯뛱뛲뛳뛵뛶뛷뛹뛺������뛻뛼뛽뛾뛿뜂뜃뜄뜆뜇뜈뜉뜊뜋뜌뜍뜎뜏뜐뜑뜒뜓뜔뜕뜖뜗뜘뜙뜚뜛뜜뜝뜞뜟뜠뜡뜢뜣뜤뜥뜦뜧뜪뜫뜭뜮뜱뜲뜳뜴뜵뜶뜷뜺뜼뜽뜾뜿띀띁띂띃띅띆띇띉띊띋띍띎띏띐띑띒띓띖띗띘띙띚띛띜띝띞띟띡띢띣띥띦띧띩띪띫띬띭띮띯띲띴띶띷띸띹띺띻띾띿랁랂랃랅랆랇랈랉랊랋랎랓랔랕랚랛랝랞�".split(""),e=0;e!=t[141].length;++e)t[141][e].charCodeAt(0)!==65533&&(i[t[141][e]]=36096+e,o[36096+e]=t[141][e]);for(t[142]="�����������������������������������������������������������������랟랡랢랣랤랥랦랧랪랮랯랰랱랲랳랶랷랹랺랻랼랽랾랿럀럁������럂럃럄럅럆럈럊럋럌럍럎럏럐럑럒럓럔럕럖럗럘럙럚럛럜럝������럞럟럠럡럢럣럤럥럦럧럨럩럪럫럮럯럱럲럳럵럶럷럸럹럺럻럾렂렃렄렅렆렊렋렍렎렏렑렒렓렔렕렖렗렚렜렞렟렠렡렢렣렦렧렩렪렫렭렮렯렰렱렲렳렶렺렻렼렽렾렿롁롂롃롅롆롇롈롉롊롋롌롍롎롏롐롒롔롕롖롗롘롙롚롛롞롟롡롢롣롥롦롧롨롩롪롫롮롰롲롳롴롵롶롷롹롺롻롽롾롿뢀뢁뢂뢃뢄�".split(""),e=0;e!=t[142].length;++e)t[142][e].charCodeAt(0)!==65533&&(i[t[142][e]]=36352+e,o[36352+e]=t[142][e]);for(t[143]="�����������������������������������������������������������������뢅뢆뢇뢈뢉뢊뢋뢌뢎뢏뢐뢑뢒뢓뢔뢕뢖뢗뢘뢙뢚뢛뢜뢝뢞뢟������뢠뢡뢢뢣뢤뢥뢦뢧뢩뢪뢫뢬뢭뢮뢯뢱뢲뢳뢵뢶뢷뢹뢺뢻뢼뢽������뢾뢿룂룄룆룇룈룉룊룋룍룎룏룑룒룓룕룖룗룘룙룚룛룜룞룠룢룣룤룥룦룧룪룫룭룮룯룱룲룳룴룵룶룷룺룼룾룿뤀뤁뤂뤃뤅뤆뤇뤈뤉뤊뤋뤌뤍뤎뤏뤐뤑뤒뤓뤔뤕뤖뤗뤙뤚뤛뤜뤝뤞뤟뤡뤢뤣뤤뤥뤦뤧뤨뤩뤪뤫뤬뤭뤮뤯뤰뤱뤲뤳뤴뤵뤶뤷뤸뤹뤺뤻뤾뤿륁륂륃륅륆륇륈륉륊륋륍륎륐륒륓륔륕륖륗�".split(""),e=0;e!=t[143].length;++e)t[143][e].charCodeAt(0)!==65533&&(i[t[143][e]]=36608+e,o[36608+e]=t[143][e]);for(t[144]="�����������������������������������������������������������������륚륛륝륞륟륡륢륣륤륥륦륧륪륬륮륯륰륱륲륳륶륷륹륺륻륽������륾륿릀릁릂릃릆릈릋릌릏릐릑릒릓릔릕릖릗릘릙릚릛릜릝릞������릟릠릡릢릣릤릥릦릧릨릩릪릫릮릯릱릲릳릵릶릷릸릹릺릻릾맀맂맃맄맅맆맇맊맋맍맓맔맕맖맗맚맜맟맠맢맦맧맩맪맫맭맮맯맰맱맲맳맶맻맼맽맾맿먂먃먄먅먆먇먉먊먋먌먍먎먏먐먑먒먓먔먖먗먘먙먚먛먜먝먞먟먠먡먢먣먤먥먦먧먨먩먪먫먬먭먮먯먰먱먲먳먴먵먶먷먺먻먽먾먿멁멃멄멅멆�".split(""),e=0;e!=t[144].length;++e)t[144][e].charCodeAt(0)!==65533&&(i[t[144][e]]=36864+e,o[36864+e]=t[144][e]);for(t[145]="�����������������������������������������������������������������멇멊멌멏멐멑멒멖멗멙멚멛멝멞멟멠멡멢멣멦멪멫멬멭멮멯������멲멳멵멶멷멹멺멻멼멽멾멿몀몁몂몆몈몉몊몋몍몎몏몐몑몒������몓몔몕몖몗몘몙몚몛몜몝몞몟몠몡몢몣몤몥몦몧몪몭몮몯몱몳몴몵몶몷몺몼몾몿뫀뫁뫂뫃뫅뫆뫇뫉뫊뫋뫌뫍뫎뫏뫐뫑뫒뫓뫔뫕뫖뫗뫚뫛뫜뫝뫞뫟뫠뫡뫢뫣뫤뫥뫦뫧뫨뫩뫪뫫뫬뫭뫮뫯뫰뫱뫲뫳뫴뫵뫶뫷뫸뫹뫺뫻뫽뫾뫿묁묂묃묅묆묇묈묉묊묋묌묎묐묒묓묔묕묖묗묙묚묛묝묞묟묡묢묣묤묥묦묧�".split(""),e=0;e!=t[145].length;++e)t[145][e].charCodeAt(0)!==65533&&(i[t[145][e]]=37120+e,o[37120+e]=t[145][e]);for(t[146]="�����������������������������������������������������������������묨묪묬묭묮묯묰묱묲묳묷묹묺묿뭀뭁뭂뭃뭆뭈뭊뭋뭌뭎뭑뭒������뭓뭕뭖뭗뭙뭚뭛뭜뭝뭞뭟뭠뭢뭤뭥뭦뭧뭨뭩뭪뭫뭭뭮뭯뭰뭱������뭲뭳뭴뭵뭶뭷뭸뭹뭺뭻뭼뭽뭾뭿뮀뮁뮂뮃뮄뮅뮆뮇뮉뮊뮋뮍뮎뮏뮑뮒뮓뮔뮕뮖뮗뮘뮙뮚뮛뮜뮝뮞뮟뮠뮡뮢뮣뮥뮦뮧뮩뮪뮫뮭뮮뮯뮰뮱뮲뮳뮵뮶뮸뮹뮺뮻뮼뮽뮾뮿믁믂믃믅믆믇믉믊믋믌믍믎믏믑믒믔믕믖믗믘믙믚믛믜믝믞믟믠믡믢믣믤믥믦믧믨믩믪믫믬믭믮믯믰믱믲믳믴믵믶믷믺믻믽믾밁�".split(""),e=0;e!=t[146].length;++e)t[146][e].charCodeAt(0)!==65533&&(i[t[146][e]]=37376+e,o[37376+e]=t[146][e]);for(t[147]="�����������������������������������������������������������������밃밄밅밆밇밊밎밐밒밓밙밚밠밡밢밣밦밨밪밫밬밮밯밲밳밵������밶밷밹밺밻밼밽밾밿뱂뱆뱇뱈뱊뱋뱎뱏뱑뱒뱓뱔뱕뱖뱗뱘뱙������뱚뱛뱜뱞뱟뱠뱡뱢뱣뱤뱥뱦뱧뱨뱩뱪뱫뱬뱭뱮뱯뱰뱱뱲뱳뱴뱵뱶뱷뱸뱹뱺뱻뱼뱽뱾뱿벀벁벂벃벆벇벉벊벍벏벐벑벒벓벖벘벛벜벝벞벟벢벣벥벦벩벪벫벬벭벮벯벲벶벷벸벹벺벻벾벿볁볂볃볅볆볇볈볉볊볋볌볎볒볓볔볖볗볙볚볛볝볞볟볠볡볢볣볤볥볦볧볨볩볪볫볬볭볮볯볰볱볲볳볷볹볺볻볽�".split(""),e=0;e!=t[147].length;++e)t[147][e].charCodeAt(0)!==65533&&(i[t[147][e]]=37632+e,o[37632+e]=t[147][e]);for(t[148]="�����������������������������������������������������������������볾볿봀봁봂봃봆봈봊봋봌봍봎봏봑봒봓봕봖봗봘봙봚봛봜봝������봞봟봠봡봢봣봥봦봧봨봩봪봫봭봮봯봰봱봲봳봴봵봶봷봸봹������봺봻봼봽봾봿뵁뵂뵃뵄뵅뵆뵇뵊뵋뵍뵎뵏뵑뵒뵓뵔뵕뵖뵗뵚뵛뵜뵝뵞뵟뵠뵡뵢뵣뵥뵦뵧뵩뵪뵫뵬뵭뵮뵯뵰뵱뵲뵳뵴뵵뵶뵷뵸뵹뵺뵻뵼뵽뵾뵿붂붃붅붆붋붌붍붎붏붒붔붖붗붘붛붝붞붟붠붡붢붣붥붦붧붨붩붪붫붬붭붮붯붱붲붳붴붵붶붷붹붺붻붼붽붾붿뷀뷁뷂뷃뷄뷅뷆뷇뷈뷉뷊뷋뷌뷍뷎뷏뷐뷑�".split(""),e=0;e!=t[148].length;++e)t[148][e].charCodeAt(0)!==65533&&(i[t[148][e]]=37888+e,o[37888+e]=t[148][e]);for(t[149]="�����������������������������������������������������������������뷒뷓뷖뷗뷙뷚뷛뷝뷞뷟뷠뷡뷢뷣뷤뷥뷦뷧뷨뷪뷫뷬뷭뷮뷯뷱������뷲뷳뷵뷶뷷뷹뷺뷻뷼뷽뷾뷿븁븂븄븆븇븈븉븊븋븎븏븑븒븓������븕븖븗븘븙븚븛븞븠븡븢븣븤븥븦븧븨븩븪븫븬븭븮븯븰븱븲븳븴븵븶븷븸븹븺븻븼븽븾븿빀빁빂빃빆빇빉빊빋빍빏빐빑빒빓빖빘빜빝빞빟빢빣빥빦빧빩빫빬빭빮빯빲빶빷빸빹빺빾빿뺁뺂뺃뺅뺆뺇뺈뺉뺊뺋뺎뺒뺓뺔뺕뺖뺗뺚뺛뺜뺝뺞뺟뺠뺡뺢뺣뺤뺥뺦뺧뺩뺪뺫뺬뺭뺮뺯뺰뺱뺲뺳뺴뺵뺶뺷�".split(""),e=0;e!=t[149].length;++e)t[149][e].charCodeAt(0)!==65533&&(i[t[149][e]]=38144+e,o[38144+e]=t[149][e]);for(t[150]="�����������������������������������������������������������������뺸뺹뺺뺻뺼뺽뺾뺿뻀뻁뻂뻃뻄뻅뻆뻇뻈뻉뻊뻋뻌뻍뻎뻏뻒뻓������뻕뻖뻙뻚뻛뻜뻝뻞뻟뻡뻢뻦뻧뻨뻩뻪뻫뻭뻮뻯뻰뻱뻲뻳뻴뻵������뻶뻷뻸뻹뻺뻻뻼뻽뻾뻿뼀뼂뼃뼄뼅뼆뼇뼊뼋뼌뼍뼎뼏뼐뼑뼒뼓뼔뼕뼖뼗뼚뼞뼟뼠뼡뼢뼣뼤뼥뼦뼧뼨뼩뼪뼫뼬뼭뼮뼯뼰뼱뼲뼳뼴뼵뼶뼷뼸뼹뼺뼻뼼뼽뼾뼿뽂뽃뽅뽆뽇뽉뽊뽋뽌뽍뽎뽏뽒뽓뽔뽖뽗뽘뽙뽚뽛뽜뽝뽞뽟뽠뽡뽢뽣뽤뽥뽦뽧뽨뽩뽪뽫뽬뽭뽮뽯뽰뽱뽲뽳뽴뽵뽶뽷뽸뽹뽺뽻뽼뽽뽾뽿뾀뾁뾂�".split(""),e=0;e!=t[150].length;++e)t[150][e].charCodeAt(0)!==65533&&(i[t[150][e]]=38400+e,o[38400+e]=t[150][e]);for(t[151]="�����������������������������������������������������������������뾃뾄뾅뾆뾇뾈뾉뾊뾋뾌뾍뾎뾏뾐뾑뾒뾓뾕뾖뾗뾘뾙뾚뾛뾜뾝������뾞뾟뾠뾡뾢뾣뾤뾥뾦뾧뾨뾩뾪뾫뾬뾭뾮뾯뾱뾲뾳뾴뾵뾶뾷뾸������뾹뾺뾻뾼뾽뾾뾿뿀뿁뿂뿃뿄뿆뿇뿈뿉뿊뿋뿎뿏뿑뿒뿓뿕뿖뿗뿘뿙뿚뿛뿝뿞뿠뿢뿣뿤뿥뿦뿧뿨뿩뿪뿫뿬뿭뿮뿯뿰뿱뿲뿳뿴뿵뿶뿷뿸뿹뿺뿻뿼뿽뿾뿿쀀쀁쀂쀃쀄쀅쀆쀇쀈쀉쀊쀋쀌쀍쀎쀏쀐쀑쀒쀓쀔쀕쀖쀗쀘쀙쀚쀛쀜쀝쀞쀟쀠쀡쀢쀣쀤쀥쀦쀧쀨쀩쀪쀫쀬쀭쀮쀯쀰쀱쀲쀳쀴쀵쀶쀷쀸쀹쀺쀻쀽쀾쀿�".split(""),e=0;e!=t[151].length;++e)t[151][e].charCodeAt(0)!==65533&&(i[t[151][e]]=38656+e,o[38656+e]=t[151][e]);for(t[152]="�����������������������������������������������������������������쁀쁁쁂쁃쁄쁅쁆쁇쁈쁉쁊쁋쁌쁍쁎쁏쁐쁒쁓쁔쁕쁖쁗쁙쁚쁛������쁝쁞쁟쁡쁢쁣쁤쁥쁦쁧쁪쁫쁬쁭쁮쁯쁰쁱쁲쁳쁴쁵쁶쁷쁸쁹������쁺쁻쁼쁽쁾쁿삀삁삂삃삄삅삆삇삈삉삊삋삌삍삎삏삒삓삕삖삗삙삚삛삜삝삞삟삢삤삦삧삨삩삪삫삮삱삲삷삸삹삺삻삾샂샃샄샆샇샊샋샍샎샏샑샒샓샔샕샖샗샚샞샟샠샡샢샣샦샧샩샪샫샭샮샯샰샱샲샳샶샸샺샻샼샽샾샿섁섂섃섅섆섇섉섊섋섌섍섎섏섑섒섓섔섖섗섘섙섚섛섡섢섥섨섩섪섫섮�".split(""),e=0;e!=t[152].length;++e)t[152][e].charCodeAt(0)!==65533&&(i[t[152][e]]=38912+e,o[38912+e]=t[152][e]);for(t[153]="�����������������������������������������������������������������섲섳섴섵섷섺섻섽섾섿셁셂셃셄셅셆셇셊셎셏셐셑셒셓셖셗������셙셚셛셝셞셟셠셡셢셣셦셪셫셬셭셮셯셱셲셳셵셶셷셹셺셻������셼셽셾셿솀솁솂솃솄솆솇솈솉솊솋솏솑솒솓솕솗솘솙솚솛솞솠솢솣솤솦솧솪솫솭솮솯솱솲솳솴솵솶솷솸솹솺솻솼솾솿쇀쇁쇂쇃쇅쇆쇇쇉쇊쇋쇍쇎쇏쇐쇑쇒쇓쇕쇖쇙쇚쇛쇜쇝쇞쇟쇡쇢쇣쇥쇦쇧쇩쇪쇫쇬쇭쇮쇯쇲쇴쇵쇶쇷쇸쇹쇺쇻쇾쇿숁숂숃숅숆숇숈숉숊숋숎숐숒숓숔숕숖숗숚숛숝숞숡숢숣�".split(""),e=0;e!=t[153].length;++e)t[153][e].charCodeAt(0)!==65533&&(i[t[153][e]]=39168+e,o[39168+e]=t[153][e]);for(t[154]="�����������������������������������������������������������������숤숥숦숧숪숬숮숰숳숵숶숷숸숹숺숻숼숽숾숿쉀쉁쉂쉃쉄쉅������쉆쉇쉉쉊쉋쉌쉍쉎쉏쉒쉓쉕쉖쉗쉙쉚쉛쉜쉝쉞쉟쉡쉢쉣쉤쉦������쉧쉨쉩쉪쉫쉮쉯쉱쉲쉳쉵쉶쉷쉸쉹쉺쉻쉾슀슂슃슄슅슆슇슊슋슌슍슎슏슑슒슓슔슕슖슗슙슚슜슞슟슠슡슢슣슦슧슩슪슫슮슯슰슱슲슳슶슸슺슻슼슽슾슿싀싁싂싃싄싅싆싇싈싉싊싋싌싍싎싏싐싑싒싓싔싕싖싗싘싙싚싛싞싟싡싢싥싦싧싨싩싪싮싰싲싳싴싵싷싺싽싾싿쌁쌂쌃쌄쌅쌆쌇쌊쌋쌎쌏�".split(""),e=0;e!=t[154].length;++e)t[154][e].charCodeAt(0)!==65533&&(i[t[154][e]]=39424+e,o[39424+e]=t[154][e]);for(t[155]="�����������������������������������������������������������������쌐쌑쌒쌖쌗쌙쌚쌛쌝쌞쌟쌠쌡쌢쌣쌦쌧쌪쌫쌬쌭쌮쌯쌰쌱쌲������쌳쌴쌵쌶쌷쌸쌹쌺쌻쌼쌽쌾쌿썀썁썂썃썄썆썇썈썉썊썋썌썍������썎썏썐썑썒썓썔썕썖썗썘썙썚썛썜썝썞썟썠썡썢썣썤썥썦썧썪썫썭썮썯썱썳썴썵썶썷썺썻썾썿쎀쎁쎂쎃쎅쎆쎇쎉쎊쎋쎍쎎쎏쎐쎑쎒쎓쎔쎕쎖쎗쎘쎙쎚쎛쎜쎝쎞쎟쎠쎡쎢쎣쎤쎥쎦쎧쎨쎩쎪쎫쎬쎭쎮쎯쎰쎱쎲쎳쎴쎵쎶쎷쎸쎹쎺쎻쎼쎽쎾쎿쏁쏂쏃쏄쏅쏆쏇쏈쏉쏊쏋쏌쏍쏎쏏쏐쏑쏒쏓쏔쏕쏖쏗쏚�".split(""),e=0;e!=t[155].length;++e)t[155][e].charCodeAt(0)!==65533&&(i[t[155][e]]=39680+e,o[39680+e]=t[155][e]);for(t[156]="�����������������������������������������������������������������쏛쏝쏞쏡쏣쏤쏥쏦쏧쏪쏫쏬쏮쏯쏰쏱쏲쏳쏶쏷쏹쏺쏻쏼쏽쏾������쏿쐀쐁쐂쐃쐄쐅쐆쐇쐉쐊쐋쐌쐍쐎쐏쐑쐒쐓쐔쐕쐖쐗쐘쐙쐚������쐛쐜쐝쐞쐟쐠쐡쐢쐣쐥쐦쐧쐨쐩쐪쐫쐭쐮쐯쐱쐲쐳쐵쐶쐷쐸쐹쐺쐻쐾쐿쑀쑁쑂쑃쑄쑅쑆쑇쑉쑊쑋쑌쑍쑎쑏쑐쑑쑒쑓쑔쑕쑖쑗쑘쑙쑚쑛쑜쑝쑞쑟쑠쑡쑢쑣쑦쑧쑩쑪쑫쑭쑮쑯쑰쑱쑲쑳쑶쑷쑸쑺쑻쑼쑽쑾쑿쒁쒂쒃쒄쒅쒆쒇쒈쒉쒊쒋쒌쒍쒎쒏쒐쒑쒒쒓쒕쒖쒗쒘쒙쒚쒛쒝쒞쒟쒠쒡쒢쒣쒤쒥쒦쒧쒨쒩�".split(""),e=0;e!=t[156].length;++e)t[156][e].charCodeAt(0)!==65533&&(i[t[156][e]]=39936+e,o[39936+e]=t[156][e]);for(t[157]="�����������������������������������������������������������������쒪쒫쒬쒭쒮쒯쒰쒱쒲쒳쒴쒵쒶쒷쒹쒺쒻쒽쒾쒿쓀쓁쓂쓃쓄쓅������쓆쓇쓈쓉쓊쓋쓌쓍쓎쓏쓐쓑쓒쓓쓔쓕쓖쓗쓘쓙쓚쓛쓜쓝쓞쓟������쓠쓡쓢쓣쓤쓥쓦쓧쓨쓪쓫쓬쓭쓮쓯쓲쓳쓵쓶쓷쓹쓻쓼쓽쓾씂씃씄씅씆씇씈씉씊씋씍씎씏씑씒씓씕씖씗씘씙씚씛씝씞씟씠씡씢씣씤씥씦씧씪씫씭씮씯씱씲씳씴씵씶씷씺씼씾씿앀앁앂앃앆앇앋앏앐앑앒앖앚앛앜앟앢앣앥앦앧앩앪앫앬앭앮앯앲앶앷앸앹앺앻앾앿얁얂얃얅얆얈얉얊얋얎얐얒얓얔�".split(""),e=0;e!=t[157].length;++e)t[157][e].charCodeAt(0)!==65533&&(i[t[157][e]]=40192+e,o[40192+e]=t[157][e]);for(t[158]="�����������������������������������������������������������������얖얙얚얛얝얞얟얡얢얣얤얥얦얧얨얪얫얬얭얮얯얰얱얲얳얶������얷얺얿엀엁엂엃엋엍엏엒엓엕엖엗엙엚엛엜엝엞엟엢엤엦엧������엨엩엪엫엯엱엲엳엵엸엹엺엻옂옃옄옉옊옋옍옎옏옑옒옓옔옕옖옗옚옝옞옟옠옡옢옣옦옧옩옪옫옯옱옲옶옸옺옼옽옾옿왂왃왅왆왇왉왊왋왌왍왎왏왒왖왗왘왙왚왛왞왟왡왢왣왤왥왦왧왨왩왪왫왭왮왰왲왳왴왵왶왷왺왻왽왾왿욁욂욃욄욅욆욇욊욌욎욏욐욑욒욓욖욗욙욚욛욝욞욟욠욡욢욣욦�".split(""),e=0;e!=t[158].length;++e)t[158][e].charCodeAt(0)!==65533&&(i[t[158][e]]=40448+e,o[40448+e]=t[158][e]);for(t[159]="�����������������������������������������������������������������욨욪욫욬욭욮욯욲욳욵욶욷욻욼욽욾욿웂웄웆웇웈웉웊웋웎������웏웑웒웓웕웖웗웘웙웚웛웞웟웢웣웤웥웦웧웪웫웭웮웯웱웲������웳웴웵웶웷웺웻웼웾웿윀윁윂윃윆윇윉윊윋윍윎윏윐윑윒윓윖윘윚윛윜윝윞윟윢윣윥윦윧윩윪윫윬윭윮윯윲윴윶윸윹윺윻윾윿읁읂읃읅읆읇읈읉읋읎읐읙읚읛읝읞읟읡읢읣읤읥읦읧읩읪읬읭읮읯읰읱읲읳읶읷읹읺읻읿잀잁잂잆잋잌잍잏잒잓잕잙잛잜잝잞잟잢잧잨잩잪잫잮잯잱잲잳잵잶잷�".split(""),e=0;e!=t[159].length;++e)t[159][e].charCodeAt(0)!==65533&&(i[t[159][e]]=40704+e,o[40704+e]=t[159][e]);for(t[160]="�����������������������������������������������������������������잸잹잺잻잾쟂쟃쟄쟅쟆쟇쟊쟋쟍쟏쟑쟒쟓쟔쟕쟖쟗쟙쟚쟛쟜������쟞쟟쟠쟡쟢쟣쟥쟦쟧쟩쟪쟫쟭쟮쟯쟰쟱쟲쟳쟴쟵쟶쟷쟸쟹쟺������쟻쟼쟽쟾쟿젂젃젅젆젇젉젋젌젍젎젏젒젔젗젘젙젚젛젞젟젡젢젣젥젦젧젨젩젪젫젮젰젲젳젴젵젶젷젹젺젻젽젾젿졁졂졃졄졅졆졇졊졋졎졏졐졑졒졓졕졖졗졘졙졚졛졜졝졞졟졠졡졢졣졤졥졦졧졨졩졪졫졬졭졮졯졲졳졵졶졷졹졻졼졽졾졿좂좄좈좉좊좎좏좐좑좒좓좕좖좗좘좙좚좛좜좞좠좢좣좤�".split(""),e=0;e!=t[160].length;++e)t[160][e].charCodeAt(0)!==65533&&(i[t[160][e]]=40960+e,o[40960+e]=t[160][e]);for(t[161]="�����������������������������������������������������������������좥좦좧좩좪좫좬좭좮좯좰좱좲좳좴좵좶좷좸좹좺좻좾좿죀죁������죂죃죅죆죇죉죊죋죍죎죏죐죑죒죓죖죘죚죛죜죝죞죟죢죣죥������죦죧죨죩죪죫죬죭죮죯죰죱죲죳죴죶죷죸죹죺죻죾죿줁줂줃줇줈줉줊줋줎 、。·‥…¨〃―∥\∼‘’“”〔〕〈〉《》「」『』【】±×÷≠≤≥∞∴°′″℃Å¢£¥♂♀∠⊥⌒∂∇≡≒§※☆★○●◎◇◆□■△▲▽▼→←↑↓↔〓≪≫√∽∝∵∫∬∈∋⊆⊇⊂⊃∪∩∧∨¬�".split(""),e=0;e!=t[161].length;++e)t[161][e].charCodeAt(0)!==65533&&(i[t[161][e]]=41216+e,o[41216+e]=t[161][e]);for(t[162]="�����������������������������������������������������������������줐줒줓줔줕줖줗줙줚줛줜줝줞줟줠줡줢줣줤줥줦줧줨줩줪줫������줭줮줯줰줱줲줳줵줶줷줸줹줺줻줼줽줾줿쥀쥁쥂쥃쥄쥅쥆쥇������쥈쥉쥊쥋쥌쥍쥎쥏쥒쥓쥕쥖쥗쥙쥚쥛쥜쥝쥞쥟쥢쥤쥥쥦쥧쥨쥩쥪쥫쥭쥮쥯⇒⇔∀∃´~ˇ˘˝˚˙¸˛¡¿ː∮∑∏¤℉‰◁◀▷▶♤♠♡♥♧♣⊙◈▣◐◑▒▤▥▨▧▦▩♨☏☎☜☞¶†‡↕↗↙↖↘♭♩♪♬㉿㈜№㏇™㏂㏘℡€®������������������������".split(""),e=0;e!=t[162].length;++e)t[162][e].charCodeAt(0)!==65533&&(i[t[162][e]]=41472+e,o[41472+e]=t[162][e]);for(t[163]="�����������������������������������������������������������������쥱쥲쥳쥵쥶쥷쥸쥹쥺쥻쥽쥾쥿즀즁즂즃즄즅즆즇즊즋즍즎즏������즑즒즓즔즕즖즗즚즜즞즟즠즡즢즣즤즥즦즧즨즩즪즫즬즭즮������즯즰즱즲즳즴즵즶즷즸즹즺즻즼즽즾즿짂짃짅짆짉짋짌짍짎짏짒짔짗짘짛!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[₩]^_`abcdefghijklmnopqrstuvwxyz{|} ̄�".split(""),e=0;e!=t[163].length;++e)t[163][e].charCodeAt(0)!==65533&&(i[t[163][e]]=41728+e,o[41728+e]=t[163][e]);for(t[164]="�����������������������������������������������������������������짞짟짡짣짥짦짨짩짪짫짮짲짳짴짵짶짷짺짻짽짾짿쨁쨂쨃쨄������쨅쨆쨇쨊쨎쨏쨐쨑쨒쨓쨕쨖쨗쨙쨚쨛쨜쨝쨞쨟쨠쨡쨢쨣쨤쨥������쨦쨧쨨쨪쨫쨬쨭쨮쨯쨰쨱쨲쨳쨴쨵쨶쨷쨸쨹쨺쨻쨼쨽쨾쨿쩀쩁쩂쩃쩄쩅쩆ㄱㄲㄳㄴㄵㄶㄷㄸㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅃㅄㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣㅤㅥㅦㅧㅨㅩㅪㅫㅬㅭㅮㅯㅰㅱㅲㅳㅴㅵㅶㅷㅸㅹㅺㅻㅼㅽㅾㅿㆀㆁㆂㆃㆄㆅㆆㆇㆈㆉㆊㆋㆌㆍㆎ�".split(""),e=0;e!=t[164].length;++e)t[164][e].charCodeAt(0)!==65533&&(i[t[164][e]]=41984+e,o[41984+e]=t[164][e]);for(t[165]="�����������������������������������������������������������������쩇쩈쩉쩊쩋쩎쩏쩑쩒쩓쩕쩖쩗쩘쩙쩚쩛쩞쩢쩣쩤쩥쩦쩧쩩쩪������쩫쩬쩭쩮쩯쩰쩱쩲쩳쩴쩵쩶쩷쩸쩹쩺쩻쩼쩾쩿쪀쪁쪂쪃쪅쪆������쪇쪈쪉쪊쪋쪌쪍쪎쪏쪐쪑쪒쪓쪔쪕쪖쪗쪙쪚쪛쪜쪝쪞쪟쪠쪡쪢쪣쪤쪥쪦쪧ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹ�����ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ�������ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ��������αβγδεζηθικλμνξοπρστυφχψω�������".split(""),e=0;e!=t[165].length;++e)t[165][e].charCodeAt(0)!==65533&&(i[t[165][e]]=42240+e,o[42240+e]=t[165][e]);for(t[166]="�����������������������������������������������������������������쪨쪩쪪쪫쪬쪭쪮쪯쪰쪱쪲쪳쪴쪵쪶쪷쪸쪹쪺쪻쪾쪿쫁쫂쫃쫅������쫆쫇쫈쫉쫊쫋쫎쫐쫒쫔쫕쫖쫗쫚쫛쫜쫝쫞쫟쫡쫢쫣쫤쫥쫦쫧������쫨쫩쫪쫫쫭쫮쫯쫰쫱쫲쫳쫵쫶쫷쫸쫹쫺쫻쫼쫽쫾쫿쬀쬁쬂쬃쬄쬅쬆쬇쬉쬊─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂┒┑┚┙┖┕┎┍┞┟┡┢┦┧┩┪┭┮┱┲┵┶┹┺┽┾╀╁╃╄╅╆╇╈╉╊���������������������������".split(""),e=0;e!=t[166].length;++e)t[166][e].charCodeAt(0)!==65533&&(i[t[166][e]]=42496+e,o[42496+e]=t[166][e]);for(t[167]="�����������������������������������������������������������������쬋쬌쬍쬎쬏쬑쬒쬓쬕쬖쬗쬙쬚쬛쬜쬝쬞쬟쬢쬣쬤쬥쬦쬧쬨쬩������쬪쬫쬬쬭쬮쬯쬰쬱쬲쬳쬴쬵쬶쬷쬸쬹쬺쬻쬼쬽쬾쬿쭀쭂쭃쭄������쭅쭆쭇쭊쭋쭍쭎쭏쭑쭒쭓쭔쭕쭖쭗쭚쭛쭜쭞쭟쭠쭡쭢쭣쭥쭦쭧쭨쭩쭪쭫쭬㎕㎖㎗ℓ㎘㏄㎣㎤㎥㎦㎙㎚㎛㎜㎝㎞㎟㎠㎡㎢㏊㎍㎎㎏㏏㎈㎉㏈㎧㎨㎰㎱㎲㎳㎴㎵㎶㎷㎸㎹㎀㎁㎂㎃㎄㎺㎻㎼㎽㎾㎿㎐㎑㎒㎓㎔Ω㏀㏁㎊㎋㎌㏖㏅㎭㎮㎯㏛㎩㎪㎫㎬㏝㏐㏓㏃㏉㏜㏆����������������".split(""),e=0;e!=t[167].length;++e)t[167][e].charCodeAt(0)!==65533&&(i[t[167][e]]=42752+e,o[42752+e]=t[167][e]);for(t[168]="�����������������������������������������������������������������쭭쭮쭯쭰쭱쭲쭳쭴쭵쭶쭷쭺쭻쭼쭽쭾쭿쮀쮁쮂쮃쮄쮅쮆쮇쮈������쮉쮊쮋쮌쮍쮎쮏쮐쮑쮒쮓쮔쮕쮖쮗쮘쮙쮚쮛쮝쮞쮟쮠쮡쮢쮣������쮤쮥쮦쮧쮨쮩쮪쮫쮬쮭쮮쮯쮰쮱쮲쮳쮴쮵쮶쮷쮹쮺쮻쮼쮽쮾쮿쯀쯁쯂쯃쯄ÆÐªĦ�IJ�ĿŁØŒºÞŦŊ�㉠㉡㉢㉣㉤㉥㉦㉧㉨㉩㉪㉫㉬㉭㉮㉯㉰㉱㉲㉳㉴㉵㉶㉷㉸㉹㉺㉻ⓐⓑⓒⓓⓔⓕⓖⓗⓘⓙⓚⓛⓜⓝⓞⓟⓠⓡⓢⓣⓤⓥⓦⓧⓨⓩ①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮½⅓⅔¼¾⅛⅜⅝⅞�".split(""),e=0;e!=t[168].length;++e)t[168][e].charCodeAt(0)!==65533&&(i[t[168][e]]=43008+e,o[43008+e]=t[168][e]);for(t[169]="�����������������������������������������������������������������쯅쯆쯇쯈쯉쯊쯋쯌쯍쯎쯏쯐쯑쯒쯓쯕쯖쯗쯘쯙쯚쯛쯜쯝쯞쯟������쯠쯡쯢쯣쯥쯦쯨쯪쯫쯬쯭쯮쯯쯰쯱쯲쯳쯴쯵쯶쯷쯸쯹쯺쯻쯼������쯽쯾쯿찀찁찂찃찄찅찆찇찈찉찊찋찎찏찑찒찓찕찖찗찘찙찚찛찞찟찠찣찤æđðħıijĸŀłøœßþŧŋʼn㈀㈁㈂㈃㈄㈅㈆㈇㈈㈉㈊㈋㈌㈍㈎㈏㈐㈑㈒㈓㈔㈕㈖㈗㈘㈙㈚㈛⒜⒝⒞⒟⒠⒡⒢⒣⒤⒥⒦⒧⒨⒩⒪⒫⒬⒭⒮⒯⒰⒱⒲⒳⒴⒵⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽⑾⑿⒀⒁⒂¹²³⁴ⁿ₁₂₃₄�".split(""),e=0;e!=t[169].length;++e)t[169][e].charCodeAt(0)!==65533&&(i[t[169][e]]=43264+e,o[43264+e]=t[169][e]);for(t[170]="�����������������������������������������������������������������찥찦찪찫찭찯찱찲찳찴찵찶찷찺찿챀챁챂챃챆챇챉챊챋챍챎������챏챐챑챒챓챖챚챛챜챝챞챟챡챢챣챥챧챩챪챫챬챭챮챯챱챲������챳챴챶챷챸챹챺챻챼챽챾챿첀첁첂첃첄첅첆첇첈첉첊첋첌첍첎첏첐첑첒첓ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをん������������".split(""),e=0;e!=t[170].length;++e)t[170][e].charCodeAt(0)!==65533&&(i[t[170][e]]=43520+e,o[43520+e]=t[170][e]);for(t[171]="�����������������������������������������������������������������첔첕첖첗첚첛첝첞첟첡첢첣첤첥첦첧첪첮첯첰첱첲첳첶첷첹������첺첻첽첾첿쳀쳁쳂쳃쳆쳈쳊쳋쳌쳍쳎쳏쳑쳒쳓쳕쳖쳗쳘쳙쳚������쳛쳜쳝쳞쳟쳠쳡쳢쳣쳥쳦쳧쳨쳩쳪쳫쳭쳮쳯쳱쳲쳳쳴쳵쳶쳷쳸쳹쳺쳻쳼쳽ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ���������".split(""),e=0;e!=t[171].length;++e)t[171][e].charCodeAt(0)!==65533&&(i[t[171][e]]=43776+e,o[43776+e]=t[171][e]);for(t[172]="�����������������������������������������������������������������쳾쳿촀촂촃촄촅촆촇촊촋촍촎촏촑촒촓촔촕촖촗촚촜촞촟촠������촡촢촣촥촦촧촩촪촫촭촮촯촰촱촲촳촴촵촶촷촸촺촻촼촽촾������촿쵀쵁쵂쵃쵄쵅쵆쵇쵈쵉쵊쵋쵌쵍쵎쵏쵐쵑쵒쵓쵔쵕쵖쵗쵘쵙쵚쵛쵝쵞쵟АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ���������������абвгдеёжзийклмнопрстуфхцчшщъыьэюя��������������".split(""),e=0;e!=t[172].length;++e)t[172][e].charCodeAt(0)!==65533&&(i[t[172][e]]=44032+e,o[44032+e]=t[172][e]);for(t[173]="�����������������������������������������������������������������쵡쵢쵣쵥쵦쵧쵨쵩쵪쵫쵮쵰쵲쵳쵴쵵쵶쵷쵹쵺쵻쵼쵽쵾쵿춀������춁춂춃춄춅춆춇춉춊춋춌춍춎춏춐춑춒춓춖춗춙춚춛춝춞춟������춠춡춢춣춦춨춪춫춬춭춮춯춱춲춳춴춵춶춷춸춹춺춻춼춽춾춿췀췁췂췃췅�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[173].length;++e)t[173][e].charCodeAt(0)!==65533&&(i[t[173][e]]=44288+e,o[44288+e]=t[173][e]);for(t[174]="�����������������������������������������������������������������췆췇췈췉췊췋췍췎췏췑췒췓췔췕췖췗췘췙췚췛췜췝췞췟췠췡������췢췣췤췥췦췧췩췪췫췭췮췯췱췲췳췴췵췶췷췺췼췾췿츀츁츂������츃츅츆츇츉츊츋츍츎츏츐츑츒츓츕츖츗츘츚츛츜츝츞츟츢츣츥츦츧츩츪츫�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[174].length;++e)t[174][e].charCodeAt(0)!==65533&&(i[t[174][e]]=44544+e,o[44544+e]=t[174][e]);for(t[175]="�����������������������������������������������������������������츬츭츮츯츲츴츶츷츸츹츺츻츼츽츾츿칀칁칂칃칄칅칆칇칈칉������칊칋칌칍칎칏칐칑칒칓칔칕칖칗칚칛칝칞칢칣칤칥칦칧칪칬������칮칯칰칱칲칳칶칷칹칺칻칽칾칿캀캁캂캃캆캈캊캋캌캍캎캏캒캓캕캖캗캙�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[175].length;++e)t[175][e].charCodeAt(0)!==65533&&(i[t[175][e]]=44800+e,o[44800+e]=t[175][e]);for(t[176]="�����������������������������������������������������������������캚캛캜캝캞캟캢캦캧캨캩캪캫캮캯캰캱캲캳캴캵캶캷캸캹캺������캻캼캽캾캿컀컂컃컄컅컆컇컈컉컊컋컌컍컎컏컐컑컒컓컔컕������컖컗컘컙컚컛컜컝컞컟컠컡컢컣컦컧컩컪컭컮컯컰컱컲컳컶컺컻컼컽컾컿가각간갇갈갉갊감갑값갓갔강갖갗같갚갛개객갠갤갬갭갯갰갱갸갹갼걀걋걍걔걘걜거걱건걷걸걺검겁것겄겅겆겉겊겋게겐겔겜겝겟겠겡겨격겪견겯결겸겹겻겼경곁계곈곌곕곗고곡곤곧골곪곬곯곰곱곳공곶과곽관괄괆�".split(""),e=0;e!=t[176].length;++e)t[176][e].charCodeAt(0)!==65533&&(i[t[176][e]]=45056+e,o[45056+e]=t[176][e]);for(t[177]="�����������������������������������������������������������������켂켃켅켆켇켉켊켋켌켍켎켏켒켔켖켗켘켙켚켛켝켞켟켡켢켣������켥켦켧켨켩켪켫켮켲켳켴켵켶켷켹켺켻켼켽켾켿콀콁콂콃콄������콅콆콇콈콉콊콋콌콍콎콏콐콑콒콓콖콗콙콚콛콝콞콟콠콡콢콣콦콨콪콫콬괌괍괏광괘괜괠괩괬괭괴괵괸괼굄굅굇굉교굔굘굡굣구국군굳굴굵굶굻굼굽굿궁궂궈궉권궐궜궝궤궷귀귁귄귈귐귑귓규균귤그극근귿글긁금급긋긍긔기긱긴긷길긺김깁깃깅깆깊까깍깎깐깔깖깜깝깟깠깡깥깨깩깬깰깸�".split(""),e=0;e!=t[177].length;++e)t[177][e].charCodeAt(0)!==65533&&(i[t[177][e]]=45312+e,o[45312+e]=t[177][e]);for(t[178]="�����������������������������������������������������������������콭콮콯콲콳콵콶콷콹콺콻콼콽콾콿쾁쾂쾃쾄쾆쾇쾈쾉쾊쾋쾍������쾎쾏쾐쾑쾒쾓쾔쾕쾖쾗쾘쾙쾚쾛쾜쾝쾞쾟쾠쾢쾣쾤쾥쾦쾧쾩������쾪쾫쾬쾭쾮쾯쾱쾲쾳쾴쾵쾶쾷쾸쾹쾺쾻쾼쾽쾾쾿쿀쿁쿂쿃쿅쿆쿇쿈쿉쿊쿋깹깻깼깽꺄꺅꺌꺼꺽꺾껀껄껌껍껏껐껑께껙껜껨껫껭껴껸껼꼇꼈꼍꼐꼬꼭꼰꼲꼴꼼꼽꼿꽁꽂꽃꽈꽉꽐꽜꽝꽤꽥꽹꾀꾄꾈꾐꾑꾕꾜꾸꾹꾼꿀꿇꿈꿉꿋꿍꿎꿔꿜꿨꿩꿰꿱꿴꿸뀀뀁뀄뀌뀐뀔뀜뀝뀨끄끅끈끊끌끎끓끔끕끗끙�".split(""),e=0;e!=t[178].length;++e)t[178][e].charCodeAt(0)!==65533&&(i[t[178][e]]=45568+e,o[45568+e]=t[178][e]);for(t[179]="�����������������������������������������������������������������쿌쿍쿎쿏쿐쿑쿒쿓쿔쿕쿖쿗쿘쿙쿚쿛쿜쿝쿞쿟쿢쿣쿥쿦쿧쿩������쿪쿫쿬쿭쿮쿯쿲쿴쿶쿷쿸쿹쿺쿻쿽쿾쿿퀁퀂퀃퀅퀆퀇퀈퀉퀊������퀋퀌퀍퀎퀏퀐퀒퀓퀔퀕퀖퀗퀙퀚퀛퀜퀝퀞퀟퀠퀡퀢퀣퀤퀥퀦퀧퀨퀩퀪퀫퀬끝끼끽낀낄낌낍낏낑나낙낚난낟날낡낢남납낫났낭낮낯낱낳내낵낸낼냄냅냇냈냉냐냑냔냘냠냥너넉넋넌널넒넓넘넙넛넜넝넣네넥넨넬넴넵넷넸넹녀녁년녈념녑녔녕녘녜녠노녹논놀놂놈놉놋농높놓놔놘놜놨뇌뇐뇔뇜뇝�".split(""),e=0;e!=t[179].length;++e)t[179][e].charCodeAt(0)!==65533&&(i[t[179][e]]=45824+e,o[45824+e]=t[179][e]);for(t[180]="�����������������������������������������������������������������퀮퀯퀰퀱퀲퀳퀶퀷퀹퀺퀻퀽퀾퀿큀큁큂큃큆큈큊큋큌큍큎큏������큑큒큓큕큖큗큙큚큛큜큝큞큟큡큢큣큤큥큦큧큨큩큪큫큮큯������큱큲큳큵큶큷큸큹큺큻큾큿킀킂킃킄킅킆킇킈킉킊킋킌킍킎킏킐킑킒킓킔뇟뇨뇩뇬뇰뇹뇻뇽누눅눈눋눌눔눕눗눙눠눴눼뉘뉜뉠뉨뉩뉴뉵뉼늄늅늉느늑는늘늙늚늠늡늣능늦늪늬늰늴니닉닌닐닒님닙닛닝닢다닥닦단닫달닭닮닯닳담답닷닸당닺닻닿대댁댄댈댐댑댓댔댕댜더덕덖던덛덜덞덟덤덥�".split(""),e=0;e!=t[180].length;++e)t[180][e].charCodeAt(0)!==65533&&(i[t[180][e]]=46080+e,o[46080+e]=t[180][e]);for(t[181]="�����������������������������������������������������������������킕킖킗킘킙킚킛킜킝킞킟킠킡킢킣킦킧킩킪킫킭킮킯킰킱킲������킳킶킸킺킻킼킽킾킿탂탃탅탆탇탊탋탌탍탎탏탒탖탗탘탙탚������탛탞탟탡탢탣탥탦탧탨탩탪탫탮탲탳탴탵탶탷탹탺탻탼탽탾탿턀턁턂턃턄덧덩덫덮데덱덴델뎀뎁뎃뎄뎅뎌뎐뎔뎠뎡뎨뎬도독돈돋돌돎돐돔돕돗동돛돝돠돤돨돼됐되된될됨됩됫됴두둑둔둘둠둡둣둥둬뒀뒈뒝뒤뒨뒬뒵뒷뒹듀듄듈듐듕드득든듣들듦듬듭듯등듸디딕딘딛딜딤딥딧딨딩딪따딱딴딸�".split(""),e=0;e!=t[181].length;++e)t[181][e].charCodeAt(0)!==65533&&(i[t[181][e]]=46336+e,o[46336+e]=t[181][e]);for(t[182]="�����������������������������������������������������������������턅턆턇턈턉턊턋턌턎턏턐턑턒턓턔턕턖턗턘턙턚턛턜턝턞턟������턠턡턢턣턤턥턦턧턨턩턪턫턬턭턮턯턲턳턵턶턷턹턻턼턽턾������턿텂텆텇텈텉텊텋텎텏텑텒텓텕텖텗텘텙텚텛텞텠텢텣텤텥텦텧텩텪텫텭땀땁땃땄땅땋때땍땐땔땜땝땟땠땡떠떡떤떨떪떫떰떱떳떴떵떻떼떽뗀뗄뗌뗍뗏뗐뗑뗘뗬또똑똔똘똥똬똴뙈뙤뙨뚜뚝뚠뚤뚫뚬뚱뛔뛰뛴뛸뜀뜁뜅뜨뜩뜬뜯뜰뜸뜹뜻띄띈띌띔띕띠띤띨띰띱띳띵라락란랄람랍랏랐랑랒랖랗�".split(""),e=0;e!=t[182].length;++e)t[182][e].charCodeAt(0)!==65533&&(i[t[182][e]]=46592+e,o[46592+e]=t[182][e]);for(t[183]="�����������������������������������������������������������������텮텯텰텱텲텳텴텵텶텷텸텹텺텻텽텾텿톀톁톂톃톅톆톇톉톊������톋톌톍톎톏톐톑톒톓톔톕톖톗톘톙톚톛톜톝톞톟톢톣톥톦톧������톩톪톫톬톭톮톯톲톴톶톷톸톹톻톽톾톿퇁퇂퇃퇄퇅퇆퇇퇈퇉퇊퇋퇌퇍퇎퇏래랙랜랠램랩랫랬랭랴략랸럇량러럭런럴럼럽럿렀렁렇레렉렌렐렘렙렛렝려력련렬렴렵렷렸령례롄롑롓로록론롤롬롭롯롱롸롼뢍뢨뢰뢴뢸룀룁룃룅료룐룔룝룟룡루룩룬룰룸룹룻룽뤄뤘뤠뤼뤽륀륄륌륏륑류륙륜률륨륩�".split(""),e=0;e!=t[183].length;++e)t[183][e].charCodeAt(0)!==65533&&(i[t[183][e]]=46848+e,o[46848+e]=t[183][e]);for(t[184]="�����������������������������������������������������������������퇐퇑퇒퇓퇔퇕퇖퇗퇙퇚퇛퇜퇝퇞퇟퇠퇡퇢퇣퇤퇥퇦퇧퇨퇩퇪������퇫퇬퇭퇮퇯퇰퇱퇲퇳퇵퇶퇷퇹퇺퇻퇼퇽퇾퇿툀툁툂툃툄툅툆������툈툊툋툌툍툎툏툑툒툓툔툕툖툗툘툙툚툛툜툝툞툟툠툡툢툣툤툥툦툧툨툩륫륭르륵른를름릅릇릉릊릍릎리릭린릴림립릿링마막만많맏말맑맒맘맙맛망맞맡맣매맥맨맬맴맵맷맸맹맺먀먁먈먕머먹먼멀멂멈멉멋멍멎멓메멕멘멜멤멥멧멨멩며멱면멸몃몄명몇몌모목몫몬몰몲몸몹못몽뫄뫈뫘뫙뫼�".split(""),e=0;e!=t[184].length;++e)t[184][e].charCodeAt(0)!==65533&&(i[t[184][e]]=47104+e,o[47104+e]=t[184][e]);for(t[185]="�����������������������������������������������������������������툪툫툮툯툱툲툳툵툶툷툸툹툺툻툾퉀퉂퉃퉄퉅퉆퉇퉉퉊퉋퉌������퉍퉎퉏퉐퉑퉒퉓퉔퉕퉖퉗퉘퉙퉚퉛퉝퉞퉟퉠퉡퉢퉣퉥퉦퉧퉨������퉩퉪퉫퉬퉭퉮퉯퉰퉱퉲퉳퉴퉵퉶퉷퉸퉹퉺퉻퉼퉽퉾퉿튂튃튅튆튇튉튊튋튌묀묄묍묏묑묘묜묠묩묫무묵묶문묻물묽묾뭄뭅뭇뭉뭍뭏뭐뭔뭘뭡뭣뭬뮈뮌뮐뮤뮨뮬뮴뮷므믄믈믐믓미믹민믿밀밂밈밉밋밌밍및밑바박밖밗반받발밝밞밟밤밥밧방밭배백밴밸뱀뱁뱃뱄뱅뱉뱌뱍뱐뱝버벅번벋벌벎범법벗�".split(""),e=0;e!=t[185].length;++e)t[185][e].charCodeAt(0)!==65533&&(i[t[185][e]]=47360+e,o[47360+e]=t[185][e]);for(t[186]="�����������������������������������������������������������������튍튎튏튒튓튔튖튗튘튙튚튛튝튞튟튡튢튣튥튦튧튨튩튪튫튭������튮튯튰튲튳튴튵튶튷튺튻튽튾틁틃틄틅틆틇틊틌틍틎틏틐틑������틒틓틕틖틗틙틚틛틝틞틟틠틡틢틣틦틧틨틩틪틫틬틭틮틯틲틳틵틶틷틹틺벙벚베벡벤벧벨벰벱벳벴벵벼벽변별볍볏볐병볕볘볜보복볶본볼봄봅봇봉봐봔봤봬뵀뵈뵉뵌뵐뵘뵙뵤뵨부북분붇불붉붊붐붑붓붕붙붚붜붤붰붸뷔뷕뷘뷜뷩뷰뷴뷸븀븃븅브븍븐블븜븝븟비빅빈빌빎빔빕빗빙빚빛빠빡빤�".split(""),e=0;e!=t[186].length;++e)t[186][e].charCodeAt(0)!==65533&&(i[t[186][e]]=47616+e,o[47616+e]=t[186][e]);for(t[187]="�����������������������������������������������������������������틻틼틽틾틿팂팄팆팇팈팉팊팋팏팑팒팓팕팗팘팙팚팛팞팢팣������팤팦팧팪팫팭팮팯팱팲팳팴팵팶팷팺팾팿퍀퍁퍂퍃퍆퍇퍈퍉������퍊퍋퍌퍍퍎퍏퍐퍑퍒퍓퍔퍕퍖퍗퍘퍙퍚퍛퍜퍝퍞퍟퍠퍡퍢퍣퍤퍥퍦퍧퍨퍩빨빪빰빱빳빴빵빻빼빽뺀뺄뺌뺍뺏뺐뺑뺘뺙뺨뻐뻑뻔뻗뻘뻠뻣뻤뻥뻬뼁뼈뼉뼘뼙뼛뼜뼝뽀뽁뽄뽈뽐뽑뽕뾔뾰뿅뿌뿍뿐뿔뿜뿟뿡쀼쁑쁘쁜쁠쁨쁩삐삑삔삘삠삡삣삥사삭삯산삳살삵삶삼삽삿샀상샅새색샌샐샘샙샛샜생샤�".split(""),e=0;e!=t[187].length;++e)t[187][e].charCodeAt(0)!==65533&&(i[t[187][e]]=47872+e,o[47872+e]=t[187][e]);for(t[188]="�����������������������������������������������������������������퍪퍫퍬퍭퍮퍯퍰퍱퍲퍳퍴퍵퍶퍷퍸퍹퍺퍻퍾퍿펁펂펃펅펆펇������펈펉펊펋펎펒펓펔펕펖펗펚펛펝펞펟펡펢펣펤펥펦펧펪펬펮������펯펰펱펲펳펵펶펷펹펺펻펽펾펿폀폁폂폃폆폇폊폋폌폍폎폏폑폒폓폔폕폖샥샨샬샴샵샷샹섀섄섈섐섕서석섞섟선섣설섦섧섬섭섯섰성섶세섹센셀셈셉셋셌셍셔셕션셜셤셥셧셨셩셰셴셸솅소속솎손솔솖솜솝솟송솥솨솩솬솰솽쇄쇈쇌쇔쇗쇘쇠쇤쇨쇰쇱쇳쇼쇽숀숄숌숍숏숑수숙순숟술숨숩숫숭�".split(""),e=0;e!=t[188].length;++e)t[188][e].charCodeAt(0)!==65533&&(i[t[188][e]]=48128+e,o[48128+e]=t[188][e]);for(t[189]="�����������������������������������������������������������������폗폙폚폛폜폝폞폟폠폢폤폥폦폧폨폩폪폫폮폯폱폲폳폵폶폷������폸폹폺폻폾퐀퐂퐃퐄퐅퐆퐇퐉퐊퐋퐌퐍퐎퐏퐐퐑퐒퐓퐔퐕퐖������퐗퐘퐙퐚퐛퐜퐞퐟퐠퐡퐢퐣퐤퐥퐦퐧퐨퐩퐪퐫퐬퐭퐮퐯퐰퐱퐲퐳퐴퐵퐶퐷숯숱숲숴쉈쉐쉑쉔쉘쉠쉥쉬쉭쉰쉴쉼쉽쉿슁슈슉슐슘슛슝스슥슨슬슭슴습슷승시식신싣실싫심십싯싱싶싸싹싻싼쌀쌈쌉쌌쌍쌓쌔쌕쌘쌜쌤쌥쌨쌩썅써썩썬썰썲썸썹썼썽쎄쎈쎌쏀쏘쏙쏜쏟쏠쏢쏨쏩쏭쏴쏵쏸쐈쐐쐤쐬쐰�".split(""),e=0;e!=t[189].length;++e)t[189][e].charCodeAt(0)!==65533&&(i[t[189][e]]=48384+e,o[48384+e]=t[189][e]);for(t[190]="�����������������������������������������������������������������퐸퐹퐺퐻퐼퐽퐾퐿푁푂푃푅푆푇푈푉푊푋푌푍푎푏푐푑푒푓������푔푕푖푗푘푙푚푛푝푞푟푡푢푣푥푦푧푨푩푪푫푬푮푰푱푲������푳푴푵푶푷푺푻푽푾풁풃풄풅풆풇풊풌풎풏풐풑풒풓풕풖풗풘풙풚풛풜풝쐴쐼쐽쑈쑤쑥쑨쑬쑴쑵쑹쒀쒔쒜쒸쒼쓩쓰쓱쓴쓸쓺쓿씀씁씌씐씔씜씨씩씬씰씸씹씻씽아악안앉않알앍앎앓암압앗았앙앝앞애액앤앨앰앱앳앴앵야약얀얄얇얌얍얏양얕얗얘얜얠얩어억언얹얻얼얽얾엄업없엇었엉엊엌엎�".split(""),e=0;e!=t[190].length;++e)t[190][e].charCodeAt(0)!==65533&&(i[t[190][e]]=48640+e,o[48640+e]=t[190][e]);for(t[191]="�����������������������������������������������������������������풞풟풠풡풢풣풤풥풦풧풨풪풫풬풭풮풯풰풱풲풳풴풵풶풷풸������풹풺풻풼풽풾풿퓀퓁퓂퓃퓄퓅퓆퓇퓈퓉퓊퓋퓍퓎퓏퓑퓒퓓퓕������퓖퓗퓘퓙퓚퓛퓝퓞퓠퓡퓢퓣퓤퓥퓦퓧퓩퓪퓫퓭퓮퓯퓱퓲퓳퓴퓵퓶퓷퓹퓺퓼에엑엔엘엠엡엣엥여역엮연열엶엷염엽엾엿였영옅옆옇예옌옐옘옙옛옜오옥온올옭옮옰옳옴옵옷옹옻와왁완왈왐왑왓왔왕왜왝왠왬왯왱외왹왼욀욈욉욋욍요욕욘욜욤욥욧용우욱운울욹욺움웁웃웅워웍원월웜웝웠웡웨�".split(""),e=0;e!=t[191].length;++e)t[191][e].charCodeAt(0)!==65533&&(i[t[191][e]]=48896+e,o[48896+e]=t[191][e]);for(t[192]="�����������������������������������������������������������������퓾퓿픀픁픂픃픅픆픇픉픊픋픍픎픏픐픑픒픓픖픘픙픚픛픜픝������픞픟픠픡픢픣픤픥픦픧픨픩픪픫픬픭픮픯픰픱픲픳픴픵픶픷������픸픹픺픻픾픿핁핂핃핅핆핇핈핉핊핋핎핐핒핓핔핕핖핗핚핛핝핞핟핡핢핣웩웬웰웸웹웽위윅윈윌윔윕윗윙유육윤율윰윱윳융윷으윽은을읊음읍읏응읒읓읔읕읖읗의읜읠읨읫이익인일읽읾잃임입잇있잉잊잎자작잔잖잗잘잚잠잡잣잤장잦재잭잰잴잼잽잿쟀쟁쟈쟉쟌쟎쟐쟘쟝쟤쟨쟬저적전절젊�".split(""),e=0;e!=t[192].length;++e)t[192][e].charCodeAt(0)!==65533&&(i[t[192][e]]=49152+e,o[49152+e]=t[192][e]);for(t[193]="�����������������������������������������������������������������핤핦핧핪핬핮핯핰핱핲핳핶핷핹핺핻핽핾핿햀햁햂햃햆햊햋������햌햍햎햏햑햒햓햔햕햖햗햘햙햚햛햜햝햞햟햠햡햢햣햤햦햧������햨햩햪햫햬햭햮햯햰햱햲햳햴햵햶햷햸햹햺햻햼햽햾햿헀헁헂헃헄헅헆헇점접젓정젖제젝젠젤젬젭젯젱져젼졀졈졉졌졍졔조족존졸졺좀좁좃종좆좇좋좌좍좔좝좟좡좨좼좽죄죈죌죔죕죗죙죠죡죤죵주죽준줄줅줆줌줍줏중줘줬줴쥐쥑쥔쥘쥠쥡쥣쥬쥰쥴쥼즈즉즌즐즘즙즛증지직진짇질짊짐집짓�".split(""),e=0;e!=t[193].length;++e)t[193][e].charCodeAt(0)!==65533&&(i[t[193][e]]=49408+e,o[49408+e]=t[193][e]);for(t[194]="�����������������������������������������������������������������헊헋헍헎헏헑헓헔헕헖헗헚헜헞헟헠헡헢헣헦헧헩헪헫헭헮������헯헰헱헲헳헶헸헺헻헼헽헾헿혂혃혅혆혇혉혊혋혌혍혎혏혒������혖혗혘혙혚혛혝혞혟혡혢혣혥혦혧혨혩혪혫혬혮혯혰혱혲혳혴혵혶혷혺혻징짖짙짚짜짝짠짢짤짧짬짭짯짰짱째짹짼쨀쨈쨉쨋쨌쨍쨔쨘쨩쩌쩍쩐쩔쩜쩝쩟쩠쩡쩨쩽쪄쪘쪼쪽쫀쫄쫌쫍쫏쫑쫓쫘쫙쫠쫬쫴쬈쬐쬔쬘쬠쬡쭁쭈쭉쭌쭐쭘쭙쭝쭤쭸쭹쮜쮸쯔쯤쯧쯩찌찍찐찔찜찝찡찢찧차착찬찮찰참찹찻�".split(""),e=0;e!=t[194].length;++e)t[194][e].charCodeAt(0)!==65533&&(i[t[194][e]]=49664+e,o[49664+e]=t[194][e]);for(t[195]="�����������������������������������������������������������������혽혾혿홁홂홃홄홆홇홊홌홎홏홐홒홓홖홗홙홚홛홝홞홟홠홡������홢홣홤홥홦홨홪홫홬홭홮홯홲홳홵홶홷홸홹홺홻홼홽홾홿횀������횁횂횄횆횇횈횉횊횋횎횏횑횒횓횕횖횗횘횙횚횛횜횞횠횢횣횤횥횦횧횩횪찼창찾채책챈챌챔챕챗챘챙챠챤챦챨챰챵처척천철첨첩첫첬청체첵첸첼쳄쳅쳇쳉쳐쳔쳤쳬쳰촁초촉촌촐촘촙촛총촤촨촬촹최쵠쵤쵬쵭쵯쵱쵸춈추축춘출춤춥춧충춰췄췌췐취췬췰췸췹췻췽츄츈츌츔츙츠측츤츨츰츱츳층�".split(""),e=0;e!=t[195].length;++e)t[195][e].charCodeAt(0)!==65533&&(i[t[195][e]]=49920+e,o[49920+e]=t[195][e]);for(t[196]="�����������������������������������������������������������������횫횭횮횯횱횲횳횴횵횶횷횸횺횼횽횾횿훀훁훂훃훆훇훉훊훋������훍훎훏훐훒훓훕훖훘훚훛훜훝훞훟훡훢훣훥훦훧훩훪훫훬훭������훮훯훱훲훳훴훶훷훸훹훺훻훾훿휁휂휃휅휆휇휈휉휊휋휌휍휎휏휐휒휓휔치칙친칟칠칡침칩칫칭카칵칸칼캄캅캇캉캐캑캔캘캠캡캣캤캥캬캭컁커컥컨컫컬컴컵컷컸컹케켁켄켈켐켑켓켕켜켠켤켬켭켯켰켱켸코콕콘콜콤콥콧콩콰콱콴콸쾀쾅쾌쾡쾨쾰쿄쿠쿡쿤쿨쿰쿱쿳쿵쿼퀀퀄퀑퀘퀭퀴퀵퀸퀼�".split(""),e=0;e!=t[196].length;++e)t[196][e].charCodeAt(0)!==65533&&(i[t[196][e]]=50176+e,o[50176+e]=t[196][e]);for(t[197]="�����������������������������������������������������������������휕휖휗휚휛휝휞휟휡휢휣휤휥휦휧휪휬휮휯휰휱휲휳휶휷휹������휺휻휽휾휿흀흁흂흃흅흆흈흊흋흌흍흎흏흒흓흕흚흛흜흝흞������흟흢흤흦흧흨흪흫흭흮흯흱흲흳흵흶흷흸흹흺흻흾흿힀힂힃힄힅힆힇힊힋큄큅큇큉큐큔큘큠크큭큰클큼큽킁키킥킨킬킴킵킷킹타탁탄탈탉탐탑탓탔탕태택탠탤탬탭탯탰탱탸턍터턱턴털턺텀텁텃텄텅테텍텐텔템텝텟텡텨텬텼톄톈토톡톤톨톰톱톳통톺톼퇀퇘퇴퇸툇툉툐투툭툰툴툼툽툿퉁퉈퉜�".split(""),e=0;e!=t[197].length;++e)t[197][e].charCodeAt(0)!==65533&&(i[t[197][e]]=50432+e,o[50432+e]=t[197][e]);for(t[198]="�����������������������������������������������������������������힍힎힏힑힒힓힔힕힖힗힚힜힞힟힠힡힢힣������������������������������������������������������������������������������퉤튀튁튄튈튐튑튕튜튠튤튬튱트특튼튿틀틂틈틉틋틔틘틜틤틥티틱틴틸팀팁팃팅파팍팎판팔팖팜팝팟팠팡팥패팩팬팰팸팹팻팼팽퍄퍅퍼퍽펀펄펌펍펏펐펑페펙펜펠펨펩펫펭펴편펼폄폅폈평폐폘폡폣포폭폰폴폼폽폿퐁�".split(""),e=0;e!=t[198].length;++e)t[198][e].charCodeAt(0)!==65533&&(i[t[198][e]]=50688+e,o[50688+e]=t[198][e]);for(t[199]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������퐈퐝푀푄표푠푤푭푯푸푹푼푿풀풂품풉풋풍풔풩퓌퓐퓔퓜퓟퓨퓬퓰퓸퓻퓽프픈플픔픕픗피픽핀필핌핍핏핑하학한할핥함합핫항해핵핸핼햄햅햇했행햐향허헉헌헐헒험헙헛헝헤헥헨헬헴헵헷헹혀혁현혈혐협혓혔형혜혠�".split(""),e=0;e!=t[199].length;++e)t[199][e].charCodeAt(0)!==65533&&(i[t[199][e]]=50944+e,o[50944+e]=t[199][e]);for(t[200]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������혤혭호혹혼홀홅홈홉홋홍홑화확환활홧황홰홱홴횃횅회획횐횔횝횟횡효횬횰횹횻후훅훈훌훑훔훗훙훠훤훨훰훵훼훽휀휄휑휘휙휜휠휨휩휫휭휴휵휸휼흄흇흉흐흑흔흖흗흘흙흠흡흣흥흩희흰흴흼흽힁히힉힌힐힘힙힛힝�".split(""),e=0;e!=t[200].length;++e)t[200][e].charCodeAt(0)!==65533&&(i[t[200][e]]=51200+e,o[51200+e]=t[200][e]);for(t[202]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������伽佳假價加可呵哥嘉嫁家暇架枷柯歌珂痂稼苛茄街袈訶賈跏軻迦駕刻却各恪慤殼珏脚覺角閣侃刊墾奸姦干幹懇揀杆柬桿澗癎看磵稈竿簡肝艮艱諫間乫喝曷渴碣竭葛褐蝎鞨勘坎堪嵌感憾戡敢柑橄減甘疳監瞰紺邯鑑鑒龕�".split(""),e=0;e!=t[202].length;++e)t[202][e].charCodeAt(0)!==65533&&(i[t[202][e]]=51712+e,o[51712+e]=t[202][e]);for(t[203]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������匣岬甲胛鉀閘剛堈姜岡崗康强彊慷江畺疆糠絳綱羌腔舡薑襁講鋼降鱇介价個凱塏愷愾慨改槪漑疥皆盖箇芥蓋豈鎧開喀客坑更粳羹醵倨去居巨拒据據擧渠炬祛距踞車遽鉅鋸乾件健巾建愆楗腱虔蹇鍵騫乞傑杰桀儉劍劒檢�".split(""),e=0;e!=t[203].length;++e)t[203][e].charCodeAt(0)!==65533&&(i[t[203][e]]=51968+e,o[51968+e]=t[203][e]);for(t[204]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������瞼鈐黔劫怯迲偈憩揭擊格檄激膈覡隔堅牽犬甄絹繭肩見譴遣鵑抉決潔結缺訣兼慊箝謙鉗鎌京俓倞傾儆勁勍卿坰境庚徑慶憬擎敬景暻更梗涇炅烱璟璥瓊痙硬磬竟競絅經耕耿脛莖警輕逕鏡頃頸驚鯨係啓堺契季屆悸戒桂械�".split(""),e=0;e!=t[204].length;++e)t[204][e].charCodeAt(0)!==65533&&(i[t[204][e]]=52224+e,o[52224+e]=t[204][e]);for(t[205]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������棨溪界癸磎稽系繫繼計誡谿階鷄古叩告呱固姑孤尻庫拷攷故敲暠枯槁沽痼皐睾稿羔考股膏苦苽菰藁蠱袴誥賈辜錮雇顧高鼓哭斛曲梏穀谷鵠困坤崑昆梱棍滾琨袞鯤汨滑骨供公共功孔工恐恭拱控攻珙空蚣貢鞏串寡戈果瓜�".split(""),e=0;e!=t[205].length;++e)t[205][e].charCodeAt(0)!==65533&&(i[t[205][e]]=52480+e,o[52480+e]=t[205][e]);for(t[206]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������科菓誇課跨過鍋顆廓槨藿郭串冠官寬慣棺款灌琯瓘管罐菅觀貫關館刮恝括适侊光匡壙廣曠洸炚狂珖筐胱鑛卦掛罫乖傀塊壞怪愧拐槐魁宏紘肱轟交僑咬喬嬌嶠巧攪敎校橋狡皎矯絞翹膠蕎蛟較轎郊餃驕鮫丘久九仇俱具勾�".split(""),e=0;e!=t[206].length;++e)t[206][e].charCodeAt(0)!==65533&&(i[t[206][e]]=52736+e,o[52736+e]=t[206][e]);for(t[207]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������區口句咎嘔坵垢寇嶇廐懼拘救枸柩構歐毆毬求溝灸狗玖球瞿矩究絿耉臼舅舊苟衢謳購軀逑邱鉤銶駒驅鳩鷗龜國局菊鞠鞫麴君窘群裙軍郡堀屈掘窟宮弓穹窮芎躬倦券勸卷圈拳捲權淃眷厥獗蕨蹶闕机櫃潰詭軌饋句晷歸貴�".split(""),e=0;e!=t[207].length;++e)t[207][e].charCodeAt(0)!==65533&&(i[t[207][e]]=52992+e,o[52992+e]=t[207][e]);for(t[208]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������鬼龜叫圭奎揆槻珪硅窺竅糾葵規赳逵閨勻均畇筠菌鈞龜橘克剋劇戟棘極隙僅劤勤懃斤根槿瑾筋芹菫覲謹近饉契今妗擒昑檎琴禁禽芩衾衿襟金錦伋及急扱汲級給亘兢矜肯企伎其冀嗜器圻基埼夔奇妓寄岐崎己幾忌技旗旣�".split(""),e=0;e!=t[208].length;++e)t[208][e].charCodeAt(0)!==65533&&(i[t[208][e]]=53248+e,o[53248+e]=t[208][e]);for(t[209]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������朞期杞棋棄機欺氣汽沂淇玘琦琪璂璣畸畿碁磯祁祇祈祺箕紀綺羈耆耭肌記譏豈起錡錤飢饑騎騏驥麒緊佶吉拮桔金喫儺喇奈娜懦懶拏拿癩羅蘿螺裸邏那樂洛烙珞落諾酪駱亂卵暖欄煖爛蘭難鸞捏捺南嵐枏楠湳濫男藍襤拉�".split(""),e=0;e!=t[209].length;++e)t[209][e].charCodeAt(0)!==65533&&(i[t[209][e]]=53504+e,o[53504+e]=t[209][e]);for(t[210]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������納臘蠟衲囊娘廊朗浪狼郎乃來內奈柰耐冷女年撚秊念恬拈捻寧寗努勞奴弩怒擄櫓爐瑙盧老蘆虜路露駑魯鷺碌祿綠菉錄鹿論壟弄濃籠聾膿農惱牢磊腦賂雷尿壘屢樓淚漏累縷陋嫩訥杻紐勒肋凜凌稜綾能菱陵尼泥匿溺多茶�".split(""),e=0;e!=t[210].length;++e)t[210][e].charCodeAt(0)!==65533&&(i[t[210][e]]=53760+e,o[53760+e]=t[210][e]);for(t[211]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������丹亶但單團壇彖斷旦檀段湍短端簞緞蛋袒鄲鍛撻澾獺疸達啖坍憺擔曇淡湛潭澹痰聃膽蕁覃談譚錟沓畓答踏遝唐堂塘幢戇撞棠當糖螳黨代垈坮大對岱帶待戴擡玳臺袋貸隊黛宅德悳倒刀到圖堵塗導屠島嶋度徒悼挑掉搗桃�".split(""),e=0;e!=t[211].length;++e)t[211][e].charCodeAt(0)!==65533&&(i[t[211][e]]=54016+e,o[54016+e]=t[211][e]);for(t[212]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������棹櫂淘渡滔濤燾盜睹禱稻萄覩賭跳蹈逃途道都鍍陶韜毒瀆牘犢獨督禿篤纛讀墩惇敦旽暾沌焞燉豚頓乭突仝冬凍動同憧東桐棟洞潼疼瞳童胴董銅兜斗杜枓痘竇荳讀豆逗頭屯臀芚遁遯鈍得嶝橙燈登等藤謄鄧騰喇懶拏癩羅�".split(""),e=0;e!=t[212].length;++e)t[212][e].charCodeAt(0)!==65533&&(i[t[212][e]]=54272+e,o[54272+e]=t[212][e]);for(t[213]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������蘿螺裸邏樂洛烙珞絡落諾酪駱丹亂卵欄欒瀾爛蘭鸞剌辣嵐擥攬欖濫籃纜藍襤覽拉臘蠟廊朗浪狼琅瑯螂郞來崍徠萊冷掠略亮倆兩凉梁樑粮粱糧良諒輛量侶儷勵呂廬慮戾旅櫚濾礪藜蠣閭驢驪麗黎力曆歷瀝礫轢靂憐戀攣漣�".split(""),e=0;e!=t[213].length;++e)t[213][e].charCodeAt(0)!==65533&&(i[t[213][e]]=54528+e,o[54528+e]=t[213][e]);for(t[214]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������煉璉練聯蓮輦連鍊冽列劣洌烈裂廉斂殮濂簾獵令伶囹寧岺嶺怜玲笭羚翎聆逞鈴零靈領齡例澧禮醴隷勞怒撈擄櫓潞瀘爐盧老蘆虜路輅露魯鷺鹵碌祿綠菉錄鹿麓論壟弄朧瀧瓏籠聾儡瀨牢磊賂賚賴雷了僚寮廖料燎療瞭聊蓼�".split(""),e=0;e!=t[214].length;++e)t[214][e].charCodeAt(0)!==65533&&(i[t[214][e]]=54784+e,o[54784+e]=t[214][e]);for(t[215]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������遼鬧龍壘婁屢樓淚漏瘻累縷蔞褸鏤陋劉旒柳榴流溜瀏琉瑠留瘤硫謬類六戮陸侖倫崙淪綸輪律慄栗率隆勒肋凜凌楞稜綾菱陵俚利厘吏唎履悧李梨浬犁狸理璃異痢籬罹羸莉裏裡里釐離鯉吝潾燐璘藺躪隣鱗麟林淋琳臨霖砬�".split(""),e=0;e!=t[215].length;++e)t[215][e].charCodeAt(0)!==65533&&(i[t[215][e]]=55040+e,o[55040+e]=t[215][e]);for(t[216]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������立笠粒摩瑪痲碼磨馬魔麻寞幕漠膜莫邈万卍娩巒彎慢挽晩曼滿漫灣瞞萬蔓蠻輓饅鰻唜抹末沫茉襪靺亡妄忘忙望網罔芒茫莽輞邙埋妹媒寐昧枚梅每煤罵買賣邁魅脈貊陌驀麥孟氓猛盲盟萌冪覓免冕勉棉沔眄眠綿緬面麵滅�".split(""),e=0;e!=t[216].length;++e)t[216][e].charCodeAt(0)!==65533&&(i[t[216][e]]=55296+e,o[55296+e]=t[216][e]);for(t[217]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������蔑冥名命明暝椧溟皿瞑茗蓂螟酩銘鳴袂侮冒募姆帽慕摸摹暮某模母毛牟牡瑁眸矛耗芼茅謀謨貌木沐牧目睦穆鶩歿沒夢朦蒙卯墓妙廟描昴杳渺猫竗苗錨務巫憮懋戊拇撫无楙武毋無珷畝繆舞茂蕪誣貿霧鵡墨默們刎吻問文�".split(""),e=0;e!=t[217].length;++e)t[217][e].charCodeAt(0)!==65533&&(i[t[217][e]]=55552+e,o[55552+e]=t[217][e]);for(t[218]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������汶紊紋聞蚊門雯勿沕物味媚尾嵋彌微未梶楣渼湄眉米美薇謎迷靡黴岷悶愍憫敏旻旼民泯玟珉緡閔密蜜謐剝博拍搏撲朴樸泊珀璞箔粕縛膊舶薄迫雹駁伴半反叛拌搬攀斑槃泮潘班畔瘢盤盼磐磻礬絆般蟠返頒飯勃拔撥渤潑�".split(""),e=0;e!=t[218].length;++e)t[218][e].charCodeAt(0)!==65533&&(i[t[218][e]]=55808+e,o[55808+e]=t[218][e]);for(t[219]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������發跋醱鉢髮魃倣傍坊妨尨幇彷房放方旁昉枋榜滂磅紡肪膀舫芳蒡蚌訪謗邦防龐倍俳北培徘拜排杯湃焙盃背胚裴裵褙賠輩配陪伯佰帛柏栢白百魄幡樊煩燔番磻繁蕃藩飜伐筏罰閥凡帆梵氾汎泛犯範范法琺僻劈壁擘檗璧癖�".split(""),e=0;e!=t[219].length;++e)t[219][e].charCodeAt(0)!==65533&&(i[t[219][e]]=56064+e,o[56064+e]=t[219][e]);for(t[220]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������碧蘗闢霹便卞弁變辨辯邊別瞥鱉鼈丙倂兵屛幷昞昺柄棅炳甁病秉竝輧餠騈保堡報寶普步洑湺潽珤甫菩補褓譜輔伏僕匐卜宓復服福腹茯蔔複覆輹輻馥鰒本乶俸奉封峯峰捧棒烽熢琫縫蓬蜂逢鋒鳳不付俯傅剖副否咐埠夫婦�".split(""),e=0;e!=t[220].length;++e)t[220][e].charCodeAt(0)!==65533&&(i[t[220][e]]=56320+e,o[56320+e]=t[220][e]);for(t[221]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������孚孵富府復扶敷斧浮溥父符簿缶腐腑膚艀芙莩訃負賦賻赴趺部釜阜附駙鳧北分吩噴墳奔奮忿憤扮昐汾焚盆粉糞紛芬賁雰不佛弗彿拂崩朋棚硼繃鵬丕備匕匪卑妃婢庇悲憊扉批斐枇榧比毖毗毘沸泌琵痺砒碑秕秘粃緋翡肥�".split(""),e=0;e!=t[221].length;++e)t[221][e].charCodeAt(0)!==65533&&(i[t[221][e]]=56576+e,o[56576+e]=t[221][e]);for(t[222]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������脾臂菲蜚裨誹譬費鄙非飛鼻嚬嬪彬斌檳殯浜濱瀕牝玭貧賓頻憑氷聘騁乍事些仕伺似使俟僿史司唆嗣四士奢娑寫寺射巳師徙思捨斜斯柶査梭死沙泗渣瀉獅砂社祀祠私篩紗絲肆舍莎蓑蛇裟詐詞謝賜赦辭邪飼駟麝削數朔索�".split(""),e=0;e!=t[222].length;++e)t[222][e].charCodeAt(0)!==65533&&(i[t[222][e]]=56832+e,o[56832+e]=t[222][e]);for(t[223]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������傘刪山散汕珊産疝算蒜酸霰乷撒殺煞薩三參杉森渗芟蔘衫揷澁鈒颯上傷像償商喪嘗孀尙峠常床庠廂想桑橡湘爽牀狀相祥箱翔裳觴詳象賞霜塞璽賽嗇塞穡索色牲生甥省笙墅壻嶼序庶徐恕抒捿敍暑曙書栖棲犀瑞筮絮緖署�".split(""),e=0;e!=t[223].length;++e)t[223][e].charCodeAt(0)!==65533&&(i[t[223][e]]=57088+e,o[57088+e]=t[223][e]);for(t[224]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������胥舒薯西誓逝鋤黍鼠夕奭席惜昔晳析汐淅潟石碩蓆釋錫仙僊先善嬋宣扇敾旋渲煽琁瑄璇璿癬禪線繕羨腺膳船蘚蟬詵跣選銑鐥饍鮮卨屑楔泄洩渫舌薛褻設說雪齧剡暹殲纖蟾贍閃陝攝涉燮葉城姓宬性惺成星晟猩珹盛省筬�".split(""),e=0;e!=t[224].length;++e)t[224][e].charCodeAt(0)!==65533&&(i[t[224][e]]=57344+e,o[57344+e]=t[224][e]);for(t[225]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������聖聲腥誠醒世勢歲洗稅笹細說貰召嘯塑宵小少巢所掃搔昭梳沼消溯瀟炤燒甦疏疎瘙笑篠簫素紹蔬蕭蘇訴逍遡邵銷韶騷俗屬束涑粟續謖贖速孫巽損蓀遜飡率宋悚松淞訟誦送頌刷殺灑碎鎖衰釗修受嗽囚垂壽嫂守岫峀帥愁�".split(""),e=0;e!=t[225].length;++e)t[225][e].charCodeAt(0)!==65533&&(i[t[225][e]]=57600+e,o[57600+e]=t[225][e]);for(t[226]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������戍手授搜收數樹殊水洙漱燧狩獸琇璲瘦睡秀穗竪粹綏綬繡羞脩茱蒐蓚藪袖誰讐輸遂邃酬銖銹隋隧隨雖需須首髓鬚叔塾夙孰宿淑潚熟琡璹肅菽巡徇循恂旬栒楯橓殉洵淳珣盾瞬筍純脣舜荀蓴蕣詢諄醇錞順馴戌術述鉥崇崧�".split(""),e=0;e!=t[226].length;++e)t[226][e].charCodeAt(0)!==65533&&(i[t[226][e]]=57856+e,o[57856+e]=t[226][e]);for(t[227]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������嵩瑟膝蝨濕拾習褶襲丞乘僧勝升承昇繩蠅陞侍匙嘶始媤尸屎屍市弑恃施是時枾柴猜矢示翅蒔蓍視試詩諡豕豺埴寔式息拭植殖湜熄篒蝕識軾食飾伸侁信呻娠宸愼新晨燼申神紳腎臣莘薪藎蜃訊身辛辰迅失室實悉審尋心沁�".split(""),e=0;e!=t[227].length;++e)t[227][e].charCodeAt(0)!==65533&&(i[t[227][e]]=58112+e,o[58112+e]=t[227][e]);for(t[228]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������沈深瀋甚芯諶什十拾雙氏亞俄兒啞娥峨我牙芽莪蛾衙訝阿雅餓鴉鵝堊岳嶽幄惡愕握樂渥鄂鍔顎鰐齷安岸按晏案眼雁鞍顔鮟斡謁軋閼唵岩巖庵暗癌菴闇壓押狎鴨仰央怏昻殃秧鴦厓哀埃崖愛曖涯碍艾隘靄厄扼掖液縊腋額�".split(""),e=0;e!=t[228].length;++e)t[228][e].charCodeAt(0)!==65533&&(i[t[228][e]]=58368+e,o[58368+e]=t[228][e]);for(t[229]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������櫻罌鶯鸚也倻冶夜惹揶椰爺耶若野弱掠略約若葯蒻藥躍亮佯兩凉壤孃恙揚攘敭暘梁楊樣洋瀁煬痒瘍禳穰糧羊良襄諒讓釀陽量養圄御於漁瘀禦語馭魚齬億憶抑檍臆偃堰彦焉言諺孼蘖俺儼嚴奄掩淹嶪業円予余勵呂女如廬�".split(""),e=0;e!=t[229].length;++e)t[229][e].charCodeAt(0)!==65533&&(i[t[229][e]]=58624+e,o[58624+e]=t[229][e]);for(t[230]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������旅歟汝濾璵礖礪與艅茹輿轝閭餘驪麗黎亦力域役易曆歷疫繹譯轢逆驛嚥堧姸娟宴年延憐戀捐挻撚椽沇沿涎涓淵演漣烟然煙煉燃燕璉硏硯秊筵緣練縯聯衍軟輦蓮連鉛鍊鳶列劣咽悅涅烈熱裂說閱厭廉念捻染殮炎焰琰艶苒�".split(""),e=0;e!=t[230].length;++e)t[230][e].charCodeAt(0)!==65533&&(i[t[230][e]]=58880+e,o[58880+e]=t[230][e]);for(t[231]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������簾閻髥鹽曄獵燁葉令囹塋寧嶺嶸影怜映暎楹榮永泳渶潁濚瀛瀯煐營獰玲瑛瑩瓔盈穎纓羚聆英詠迎鈴鍈零霙靈領乂倪例刈叡曳汭濊猊睿穢芮藝蘂禮裔詣譽豫醴銳隸霓預五伍俉傲午吾吳嗚塢墺奧娛寤悟惡懊敖旿晤梧汚澳�".split(""),e=0;e!=t[231].length;++e)t[231][e].charCodeAt(0)!==65533&&(i[t[231][e]]=59136+e,o[59136+e]=t[231][e]);for(t[232]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������烏熬獒筽蜈誤鰲鼇屋沃獄玉鈺溫瑥瘟穩縕蘊兀壅擁瓮甕癰翁邕雍饔渦瓦窩窪臥蛙蝸訛婉完宛梡椀浣玩琓琬碗緩翫脘腕莞豌阮頑曰往旺枉汪王倭娃歪矮外嵬巍猥畏了僚僥凹堯夭妖姚寥寮尿嶢拗搖撓擾料曜樂橈燎燿瑤療�".split(""),e=0;e!=t[232].length;++e)t[232][e].charCodeAt(0)!==65533&&(i[t[232][e]]=59392+e,o[59392+e]=t[232][e]);for(t[233]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������窈窯繇繞耀腰蓼蟯要謠遙遼邀饒慾欲浴縟褥辱俑傭冗勇埇墉容庸慂榕涌湧溶熔瑢用甬聳茸蓉踊鎔鏞龍于佑偶優又友右宇寓尤愚憂旴牛玗瑀盂祐禑禹紆羽芋藕虞迂遇郵釪隅雨雩勖彧旭昱栯煜稶郁頊云暈橒殞澐熉耘芸蕓�".split(""),e=0;e!=t[233].length;++e)t[233][e].charCodeAt(0)!==65533&&(i[t[233][e]]=59648+e,o[59648+e]=t[233][e]);for(t[234]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������運隕雲韻蔚鬱亐熊雄元原員圓園垣媛嫄寃怨愿援沅洹湲源爰猿瑗苑袁轅遠阮院願鴛月越鉞位偉僞危圍委威尉慰暐渭爲瑋緯胃萎葦蔿蝟衛褘謂違韋魏乳侑儒兪劉唯喩孺宥幼幽庾悠惟愈愉揄攸有杻柔柚柳楡楢油洧流游溜�".split(""),e=0;e!=t[234].length;++e)t[234][e].charCodeAt(0)!==65533&&(i[t[234][e]]=59904+e,o[59904+e]=t[234][e]);for(t[235]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������濡猶猷琉瑜由留癒硫紐維臾萸裕誘諛諭踰蹂遊逾遺酉釉鍮類六堉戮毓肉育陸倫允奫尹崙淪潤玧胤贇輪鈗閏律慄栗率聿戎瀜絨融隆垠恩慇殷誾銀隱乙吟淫蔭陰音飮揖泣邑凝應膺鷹依倚儀宜意懿擬椅毅疑矣義艤薏蟻衣誼�".split(""),e=0;e!=t[235].length;++e)t[235][e].charCodeAt(0)!==65533&&(i[t[235][e]]=60160+e,o[60160+e]=t[235][e]);for(t[236]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������議醫二以伊利吏夷姨履已弛彛怡易李梨泥爾珥理異痍痢移罹而耳肄苡荑裏裡貽貳邇里離飴餌匿溺瀷益翊翌翼謚人仁刃印吝咽因姻寅引忍湮燐璘絪茵藺蚓認隣靭靷鱗麟一佚佾壹日溢逸鎰馹任壬妊姙恁林淋稔臨荏賃入卄�".split(""),e=0;e!=t[236].length;++e)t[236][e].charCodeAt(0)!==65533&&(i[t[236][e]]=60416+e,o[60416+e]=t[236][e]);for(t[237]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������立笠粒仍剩孕芿仔刺咨姉姿子字孜恣慈滋炙煮玆瓷疵磁紫者自茨蔗藉諮資雌作勺嚼斫昨灼炸爵綽芍酌雀鵲孱棧殘潺盞岑暫潛箴簪蠶雜丈仗匠場墻壯奬將帳庄張掌暲杖樟檣欌漿牆狀獐璋章粧腸臟臧莊葬蔣薔藏裝贓醬長�".split(""),e=0;e!=t[237].length;++e)t[237][e].charCodeAt(0)!==65533&&(i[t[237][e]]=60672+e,o[60672+e]=t[237][e]);for(t[238]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������障再哉在宰才材栽梓渽滓災縡裁財載齋齎爭箏諍錚佇低儲咀姐底抵杵楮樗沮渚狙猪疽箸紵苧菹著藷詛貯躇這邸雎齟勣吊嫡寂摘敵滴狄炙的積笛籍績翟荻謫賊赤跡蹟迪迹適鏑佃佺傳全典前剪塡塼奠專展廛悛戰栓殿氈澱�".split(""),e=0;e!=t[238].length;++e)t[238][e].charCodeAt(0)!==65533&&(i[t[238][e]]=60928+e,o[60928+e]=t[238][e]);for(t[239]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������煎琠田甸畑癲筌箋箭篆纏詮輾轉鈿銓錢鐫電顚顫餞切截折浙癤竊節絶占岾店漸点粘霑鮎點接摺蝶丁井亭停偵呈姃定幀庭廷征情挺政整旌晶晸柾楨檉正汀淀淨渟湞瀞炡玎珽町睛碇禎程穽精綎艇訂諪貞鄭酊釘鉦鋌錠霆靖�".split(""),e=0;e!=t[239].length;++e)t[239][e].charCodeAt(0)!==65533&&(i[t[239][e]]=61184+e,o[61184+e]=t[239][e]);for(t[240]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������靜頂鼎制劑啼堤帝弟悌提梯濟祭第臍薺製諸蹄醍除際霽題齊俎兆凋助嘲弔彫措操早晁曺曹朝條棗槽漕潮照燥爪璪眺祖祚租稠窕粗糟組繰肇藻蚤詔調趙躁造遭釣阻雕鳥族簇足鏃存尊卒拙猝倧宗從悰慫棕淙琮種終綜縱腫�".split(""),e=0;e!=t[240].length;++e)t[240][e].charCodeAt(0)!==65533&&(i[t[240][e]]=61440+e,o[61440+e]=t[240][e]);for(t[241]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������踪踵鍾鐘佐坐左座挫罪主住侏做姝胄呪周嗾奏宙州廚晝朱柱株注洲湊澍炷珠疇籌紂紬綢舟蛛註誅走躊輳週酎酒鑄駐竹粥俊儁准埈寯峻晙樽浚準濬焌畯竣蠢逡遵雋駿茁中仲衆重卽櫛楫汁葺增憎曾拯烝甑症繒蒸證贈之只�".split(""),e=0;e!=t[241].length;++e)t[241][e].charCodeAt(0)!==65533&&(i[t[241][e]]=61696+e,o[61696+e]=t[241][e]);for(t[242]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������咫地址志持指摯支旨智枝枳止池沚漬知砥祉祗紙肢脂至芝芷蜘誌識贄趾遲直稙稷織職唇嗔塵振搢晉晋桭榛殄津溱珍瑨璡畛疹盡眞瞋秦縉縝臻蔯袗診賑軫辰進鎭陣陳震侄叱姪嫉帙桎瓆疾秩窒膣蛭質跌迭斟朕什執潗緝輯�".split(""),e=0;e!=t[242].length;++e)t[242][e].charCodeAt(0)!==65533&&(i[t[242][e]]=61952+e,o[61952+e]=t[242][e]);for(t[243]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������鏶集徵懲澄且侘借叉嗟嵯差次此磋箚茶蹉車遮捉搾着窄錯鑿齪撰澯燦璨瓚竄簒纂粲纘讚贊鑽餐饌刹察擦札紮僭參塹慘慙懺斬站讒讖倉倡創唱娼廠彰愴敞昌昶暢槍滄漲猖瘡窓脹艙菖蒼債埰寀寨彩採砦綵菜蔡采釵冊柵策�".split(""),e=0;e!=t[243].length;++e)t[243][e].charCodeAt(0)!==65533&&(i[t[243][e]]=62208+e,o[62208+e]=t[243][e]);for(t[244]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������責凄妻悽處倜刺剔尺慽戚拓擲斥滌瘠脊蹠陟隻仟千喘天川擅泉淺玔穿舛薦賤踐遷釧闡阡韆凸哲喆徹撤澈綴輟轍鐵僉尖沾添甛瞻簽籤詹諂堞妾帖捷牒疊睫諜貼輒廳晴淸聽菁請靑鯖切剃替涕滯締諦逮遞體初剿哨憔抄招梢�".split(""),e=0;e!=t[244].length;++e)t[244][e].charCodeAt(0)!==65533&&(i[t[244][e]]=62464+e,o[62464+e]=t[244][e]);for(t[245]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������椒楚樵炒焦硝礁礎秒稍肖艸苕草蕉貂超酢醋醮促囑燭矗蜀觸寸忖村邨叢塚寵悤憁摠總聰蔥銃撮催崔最墜抽推椎楸樞湫皺秋芻萩諏趨追鄒酋醜錐錘鎚雛騶鰍丑畜祝竺筑築縮蓄蹙蹴軸逐春椿瑃出朮黜充忠沖蟲衝衷悴膵萃�".split(""),e=0;e!=t[245].length;++e)t[245][e].charCodeAt(0)!==65533&&(i[t[245][e]]=62720+e,o[62720+e]=t[245][e]);for(t[246]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������贅取吹嘴娶就炊翠聚脆臭趣醉驟鷲側仄厠惻測層侈値嗤峙幟恥梔治淄熾痔痴癡稚穉緇緻置致蚩輜雉馳齒則勅飭親七柒漆侵寢枕沈浸琛砧針鍼蟄秤稱快他咤唾墮妥惰打拖朶楕舵陀馱駝倬卓啄坼度托拓擢晫柝濁濯琢琸託�".split(""),e=0;e!=t[246].length;++e)t[246][e].charCodeAt(0)!==65533&&(i[t[246][e]]=62976+e,o[62976+e]=t[246][e]);for(t[247]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������鐸呑嘆坦彈憚歎灘炭綻誕奪脫探眈耽貪塔搭榻宕帑湯糖蕩兌台太怠態殆汰泰笞胎苔跆邰颱宅擇澤撑攄兎吐土討慟桶洞痛筒統通堆槌腿褪退頹偸套妬投透鬪慝特闖坡婆巴把播擺杷波派爬琶破罷芭跛頗判坂板版瓣販辦鈑�".split(""),e=0;e!=t[247].length;++e)t[247][e].charCodeAt(0)!==65533&&(i[t[247][e]]=63232+e,o[63232+e]=t[247][e]);for(t[248]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������阪八叭捌佩唄悖敗沛浿牌狽稗覇貝彭澎烹膨愎便偏扁片篇編翩遍鞭騙貶坪平枰萍評吠嬖幣廢弊斃肺蔽閉陛佈包匍匏咆哺圃布怖抛抱捕暴泡浦疱砲胞脯苞葡蒲袍褒逋鋪飽鮑幅暴曝瀑爆輻俵剽彪慓杓標漂瓢票表豹飇飄驃�".split(""),e=0;e!=t[248].length;++e)t[248][e].charCodeAt(0)!==65533&&(i[t[248][e]]=63488+e,o[63488+e]=t[248][e]);for(t[249]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������品稟楓諷豊風馮彼披疲皮被避陂匹弼必泌珌畢疋筆苾馝乏逼下何厦夏廈昰河瑕荷蝦賀遐霞鰕壑學虐謔鶴寒恨悍旱汗漢澣瀚罕翰閑閒限韓割轄函含咸啣喊檻涵緘艦銜陷鹹合哈盒蛤閤闔陜亢伉姮嫦巷恒抗杭桁沆港缸肛航�".split(""),e=0;e!=t[249].length;++e)t[249][e].charCodeAt(0)!==65533&&(i[t[249][e]]=63744+e,o[63744+e]=t[249][e]);for(t[250]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������行降項亥偕咳垓奚孩害懈楷海瀣蟹解該諧邂駭骸劾核倖幸杏荇行享向嚮珦鄕響餉饗香噓墟虛許憲櫶獻軒歇險驗奕爀赫革俔峴弦懸晛泫炫玄玹現眩睍絃絢縣舷衒見賢鉉顯孑穴血頁嫌俠協夾峽挾浹狹脅脇莢鋏頰亨兄刑型�".split(""),e=0;e!=t[250].length;++e)t[250][e].charCodeAt(0)!==65533&&(i[t[250][e]]=64e3+e,o[64e3+e]=t[250][e]);for(t[251]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������形泂滎瀅灐炯熒珩瑩荊螢衡逈邢鎣馨兮彗惠慧暳蕙蹊醯鞋乎互呼壕壺好岵弧戶扈昊晧毫浩淏湖滸澔濠濩灝狐琥瑚瓠皓祜糊縞胡芦葫蒿虎號蝴護豪鎬頀顥惑或酷婚昏混渾琿魂忽惚笏哄弘汞泓洪烘紅虹訌鴻化和嬅樺火畵�".split(""),e=0;e!=t[251].length;++e)t[251][e].charCodeAt(0)!==65533&&(i[t[251][e]]=64256+e,o[64256+e]=t[251][e]);for(t[252]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������禍禾花華話譁貨靴廓擴攫確碻穫丸喚奐宦幻患換歡晥桓渙煥環紈還驩鰥活滑猾豁闊凰幌徨恍惶愰慌晃晄榥況湟滉潢煌璜皇篁簧荒蝗遑隍黃匯回廻徊恢悔懷晦會檜淮澮灰獪繪膾茴蛔誨賄劃獲宖橫鐄哮嚆孝效斅曉梟涍淆�".split(""),e=0;e!=t[252].length;++e)t[252][e].charCodeAt(0)!==65533&&(i[t[252][e]]=64512+e,o[64512+e]=t[252][e]);for(t[253]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������爻肴酵驍侯候厚后吼喉嗅帿後朽煦珝逅勛勳塤壎焄熏燻薰訓暈薨喧暄煊萱卉喙毁彙徽揮暉煇諱輝麾休携烋畦虧恤譎鷸兇凶匈洶胸黑昕欣炘痕吃屹紇訖欠欽歆吸恰洽翕興僖凞喜噫囍姬嬉希憙憘戱晞曦熙熹熺犧禧稀羲詰�".split(""),e=0;e!=t[253].length;++e)t[253][e].charCodeAt(0)!==65533&&(i[t[253][e]]=64768+e,o[64768+e]=t[253][e]);return{enc:i,dec:o}}(),r[950]=function(){var o=[],i={},t=[],e;for(t[0]=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~��������������������������������������������������������������������������������������������������������������������������������`.split(""),e=0;e!=t[0].length;++e)t[0][e].charCodeAt(0)!==65533&&(i[t[0][e]]=0+e,o[0+e]=t[0][e]);for(t[161]="���������������������������������������������������������������� ,、。.‧;:?!︰…‥﹐﹑﹒·﹔﹕﹖﹗|–︱—︳╴︴﹏()︵︶{}︷︸〔〕︹︺【】︻︼《》︽︾〈〉︿﹀「」﹁﹂『』﹃﹄﹙﹚����������������������������������﹛﹜﹝﹞‘’“”〝〞‵′#&*※§〃○●△▲◎☆★◇◆□■▽▼㊣℅¯ ̄_ˍ﹉﹊﹍﹎﹋﹌﹟﹠﹡+-×÷±√<>=≦≧≠∞≒≡﹢﹣﹤﹥﹦~∩∪⊥∠∟⊿㏒㏑∫∮∵∴♀♂⊕⊙↑↓←→↖↗↙↘∥∣/�".split(""),e=0;e!=t[161].length;++e)t[161][e].charCodeAt(0)!==65533&&(i[t[161][e]]=41216+e,o[41216+e]=t[161][e]);for(t[162]="����������������������������������������������������������������\∕﹨$¥〒¢£%@℃℉﹩﹪﹫㏕㎜㎝㎞㏎㎡㎎㎏㏄°兙兛兞兝兡兣嗧瓩糎▁▂▃▄▅▆▇█▏▎▍▌▋▊▉┼┴┬┤├▔─│▕┌┐└┘╭����������������������������������╮╰╯═╞╪╡◢◣◥◤╱╲╳0123456789ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ〡〢〣〤〥〦〧〨〩十卄卅ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuv�".split(""),e=0;e!=t[162].length;++e)t[162][e].charCodeAt(0)!==65533&&(i[t[162][e]]=41472+e,o[41472+e]=t[162][e]);for(t[163]="����������������������������������������������������������������wxyzΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρστυφχψωㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏ����������������������������������ㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦㄧㄨㄩ˙ˉˊˇˋ���������������������������������€������������������������������".split(""),e=0;e!=t[163].length;++e)t[163][e].charCodeAt(0)!==65533&&(i[t[163][e]]=41728+e,o[41728+e]=t[163][e]);for(t[164]="����������������������������������������������������������������一乙丁七乃九了二人儿入八几刀刁力匕十卜又三下丈上丫丸凡久么也乞于亡兀刃勺千叉口土士夕大女子孑孓寸小尢尸山川工己已巳巾干廾弋弓才����������������������������������丑丐不中丰丹之尹予云井互五亢仁什仃仆仇仍今介仄元允內六兮公冗凶分切刈勻勾勿化匹午升卅卞厄友及反壬天夫太夭孔少尤尺屯巴幻廿弔引心戈戶手扎支文斗斤方日曰月木欠止歹毋比毛氏水火爪父爻片牙牛犬王丙�".split(""),e=0;e!=t[164].length;++e)t[164][e].charCodeAt(0)!==65533&&(i[t[164][e]]=41984+e,o[41984+e]=t[164][e]);for(t[165]="����������������������������������������������������������������世丕且丘主乍乏乎以付仔仕他仗代令仙仞充兄冉冊冬凹出凸刊加功包匆北匝仟半卉卡占卯卮去可古右召叮叩叨叼司叵叫另只史叱台句叭叻四囚外����������������������������������央失奴奶孕它尼巨巧左市布平幼弁弘弗必戊打扔扒扑斥旦朮本未末札正母民氐永汁汀氾犯玄玉瓜瓦甘生用甩田由甲申疋白皮皿目矛矢石示禾穴立丞丟乒乓乩亙交亦亥仿伉伙伊伕伍伐休伏仲件任仰仳份企伋光兇兆先全�".split(""),e=0;e!=t[165].length;++e)t[165][e].charCodeAt(0)!==65533&&(i[t[165][e]]=42240+e,o[42240+e]=t[165][e]);for(t[166]="����������������������������������������������������������������共再冰列刑划刎刖劣匈匡匠印危吉吏同吊吐吁吋各向名合吃后吆吒因回囝圳地在圭圬圯圩夙多夷夸妄奸妃好她如妁字存宇守宅安寺尖屹州帆并年����������������������������������式弛忙忖戎戌戍成扣扛托收早旨旬旭曲曳有朽朴朱朵次此死氖汝汗汙江池汐汕污汛汍汎灰牟牝百竹米糸缶羊羽老考而耒耳聿肉肋肌臣自至臼舌舛舟艮色艾虫血行衣西阡串亨位住佇佗佞伴佛何估佐佑伽伺伸佃佔似但佣�".split(""),e=0;e!=t[166].length;++e)t[166][e].charCodeAt(0)!==65533&&(i[t[166][e]]=42496+e,o[42496+e]=t[166][e]);for(t[167]="����������������������������������������������������������������作你伯低伶余佝佈佚兌克免兵冶冷別判利刪刨劫助努劬匣即卵吝吭吞吾否呎吧呆呃吳呈呂君吩告吹吻吸吮吵吶吠吼呀吱含吟听囪困囤囫坊坑址坍����������������������������������均坎圾坐坏圻壯夾妝妒妨妞妣妙妖妍妤妓妊妥孝孜孚孛完宋宏尬局屁尿尾岐岑岔岌巫希序庇床廷弄弟彤形彷役忘忌志忍忱快忸忪戒我抄抗抖技扶抉扭把扼找批扳抒扯折扮投抓抑抆改攻攸旱更束李杏材村杜杖杞杉杆杠�".split(""),e=0;e!=t[167].length;++e)t[167][e].charCodeAt(0)!==65533&&(i[t[167][e]]=42752+e,o[42752+e]=t[167][e]);for(t[168]="����������������������������������������������������������������杓杗步每求汞沙沁沈沉沅沛汪決沐汰沌汨沖沒汽沃汲汾汴沆汶沍沔沘沂灶灼災灸牢牡牠狄狂玖甬甫男甸皂盯矣私秀禿究系罕肖肓肝肘肛肚育良芒����������������������������������芋芍見角言谷豆豕貝赤走足身車辛辰迂迆迅迄巡邑邢邪邦那酉釆里防阮阱阪阬並乖乳事些亞享京佯依侍佳使佬供例來侃佰併侈佩佻侖佾侏侑佺兔兒兕兩具其典冽函刻券刷刺到刮制剁劾劻卒協卓卑卦卷卸卹取叔受味呵�".split(""),e=0;e!=t[168].length;++e)t[168][e].charCodeAt(0)!==65533&&(i[t[168][e]]=43008+e,o[43008+e]=t[168][e]);for(t[169]="����������������������������������������������������������������咖呸咕咀呻呷咄咒咆呼咐呱呶和咚呢周咋命咎固垃坷坪坩坡坦坤坼夜奉奇奈奄奔妾妻委妹妮姑姆姐姍始姓姊妯妳姒姅孟孤季宗定官宜宙宛尚屈居����������������������������������屆岷岡岸岩岫岱岳帘帚帖帕帛帑幸庚店府底庖延弦弧弩往征彿彼忝忠忽念忿怏怔怯怵怖怪怕怡性怩怫怛或戕房戾所承拉拌拄抿拂抹拒招披拓拔拋拈抨抽押拐拙拇拍抵拚抱拘拖拗拆抬拎放斧於旺昔易昌昆昂明昀昏昕昊�".split(""),e=0;e!=t[169].length;++e)t[169][e].charCodeAt(0)!==65533&&(i[t[169][e]]=43264+e,o[43264+e]=t[169][e]);for(t[170]="����������������������������������������������������������������昇服朋杭枋枕東果杳杷枇枝林杯杰板枉松析杵枚枓杼杪杲欣武歧歿氓氛泣注泳沱泌泥河沽沾沼波沫法泓沸泄油況沮泗泅泱沿治泡泛泊沬泯泜泖泠����������������������������������炕炎炒炊炙爬爭爸版牧物狀狎狙狗狐玩玨玟玫玥甽疝疙疚的盂盲直知矽社祀祁秉秈空穹竺糾罔羌羋者肺肥肢肱股肫肩肴肪肯臥臾舍芳芝芙芭芽芟芹花芬芥芯芸芣芰芾芷虎虱初表軋迎返近邵邸邱邶采金長門阜陀阿阻附�".split(""),e=0;e!=t[170].length;++e)t[170][e].charCodeAt(0)!==65533&&(i[t[170][e]]=43520+e,o[43520+e]=t[170][e]);for(t[171]="����������������������������������������������������������������陂隹雨青非亟亭亮信侵侯便俠俑俏保促侶俘俟俊俗侮俐俄係俚俎俞侷兗冒冑冠剎剃削前剌剋則勇勉勃勁匍南卻厚叛咬哀咨哎哉咸咦咳哇哂咽咪品����������������������������������哄哈咯咫咱咻咩咧咿囿垂型垠垣垢城垮垓奕契奏奎奐姜姘姿姣姨娃姥姪姚姦威姻孩宣宦室客宥封屎屏屍屋峙峒巷帝帥帟幽庠度建弈弭彥很待徊律徇後徉怒思怠急怎怨恍恰恨恢恆恃恬恫恪恤扁拜挖按拼拭持拮拽指拱拷�".split(""),e=0;e!=t[171].length;++e)t[171][e].charCodeAt(0)!==65533&&(i[t[171][e]]=43776+e,o[43776+e]=t[171][e]);for(t[172]="����������������������������������������������������������������拯括拾拴挑挂政故斫施既春昭映昧是星昨昱昤曷柿染柱柔某柬架枯柵柩柯柄柑枴柚查枸柏柞柳枰柙柢柝柒歪殃殆段毒毗氟泉洋洲洪流津洌洱洞洗����������������������������������活洽派洶洛泵洹洧洸洩洮洵洎洫炫為炳炬炯炭炸炮炤爰牲牯牴狩狠狡玷珊玻玲珍珀玳甚甭畏界畎畋疫疤疥疢疣癸皆皇皈盈盆盃盅省盹相眉看盾盼眇矜砂研砌砍祆祉祈祇禹禺科秒秋穿突竿竽籽紂紅紀紉紇約紆缸美羿耄�".split(""),e=0;e!=t[172].length;++e)t[172][e].charCodeAt(0)!==65533&&(i[t[172][e]]=44032+e,o[44032+e]=t[172][e]);for(t[173]="����������������������������������������������������������������耐耍耑耶胖胥胚胃胄背胡胛胎胞胤胝致舢苧范茅苣苛苦茄若茂茉苒苗英茁苜苔苑苞苓苟苯茆虐虹虻虺衍衫要觔計訂訃貞負赴赳趴軍軌述迦迢迪迥����������������������������������迭迫迤迨郊郎郁郃酋酊重閂限陋陌降面革韋韭音頁風飛食首香乘亳倌倍倣俯倦倥俸倩倖倆值借倚倒們俺倀倔倨俱倡個候倘俳修倭倪俾倫倉兼冤冥冢凍凌准凋剖剜剔剛剝匪卿原厝叟哨唐唁唷哼哥哲唆哺唔哩哭員唉哮哪�".split(""),e=0;e!=t[173].length;++e)t[173][e].charCodeAt(0)!==65533&&(i[t[173][e]]=44288+e,o[44288+e]=t[173][e]);for(t[174]="����������������������������������������������������������������哦唧唇哽唏圃圄埂埔埋埃堉夏套奘奚娑娘娜娟娛娓姬娠娣娩娥娌娉孫屘宰害家宴宮宵容宸射屑展屐峭峽峻峪峨峰島崁峴差席師庫庭座弱徒徑徐恙����������������������������������恣恥恐恕恭恩息悄悟悚悍悔悌悅悖扇拳挈拿捎挾振捕捂捆捏捉挺捐挽挪挫挨捍捌效敉料旁旅時晉晏晃晒晌晅晁書朔朕朗校核案框桓根桂桔栩梳栗桌桑栽柴桐桀格桃株桅栓栘桁殊殉殷氣氧氨氦氤泰浪涕消涇浦浸海浙涓�".split(""),e=0;e!=t[174].length;++e)t[174][e].charCodeAt(0)!==65533&&(i[t[174][e]]=44544+e,o[44544+e]=t[174][e]);for(t[175]="����������������������������������������������������������������浬涉浮浚浴浩涌涊浹涅浥涔烊烘烤烙烈烏爹特狼狹狽狸狷玆班琉珮珠珪珞畔畝畜畚留疾病症疲疳疽疼疹痂疸皋皰益盍盎眩真眠眨矩砰砧砸砝破砷����������������������������������砥砭砠砟砲祕祐祠祟祖神祝祗祚秤秣秧租秦秩秘窄窈站笆笑粉紡紗紋紊素索純紐紕級紜納紙紛缺罟羔翅翁耆耘耕耙耗耽耿胱脂胰脅胭胴脆胸胳脈能脊胼胯臭臬舀舐航舫舨般芻茫荒荔荊茸荐草茵茴荏茲茹茶茗荀茱茨荃�".split(""),e=0;e!=t[175].length;++e)t[175][e].charCodeAt(0)!==65533&&(i[t[175][e]]=44800+e,o[44800+e]=t[175][e]);for(t[176]="����������������������������������������������������������������虔蚊蚪蚓蚤蚩蚌蚣蚜衰衷袁袂衽衹記訐討訌訕訊託訓訖訏訑豈豺豹財貢起躬軒軔軏辱送逆迷退迺迴逃追逅迸邕郡郝郢酒配酌釘針釗釜釙閃院陣陡����������������������������������陛陝除陘陞隻飢馬骨高鬥鬲鬼乾偺偽停假偃偌做偉健偶偎偕偵側偷偏倏偯偭兜冕凰剪副勒務勘動匐匏匙匿區匾參曼商啪啦啄啞啡啃啊唱啖問啕唯啤唸售啜唬啣唳啁啗圈國圉域堅堊堆埠埤基堂堵執培夠奢娶婁婉婦婪婀�".split(""),e=0;e!=t[176].length;++e)t[176][e].charCodeAt(0)!==65533&&(i[t[176][e]]=45056+e,o[45056+e]=t[176][e]);for(t[177]="����������������������������������������������������������������娼婢婚婆婊孰寇寅寄寂宿密尉專將屠屜屝崇崆崎崛崖崢崑崩崔崙崤崧崗巢常帶帳帷康庸庶庵庾張強彗彬彩彫得徙從徘御徠徜恿患悉悠您惋悴惦悽����������������������������������情悻悵惜悼惘惕惆惟悸惚惇戚戛扈掠控捲掖探接捷捧掘措捱掩掉掃掛捫推掄授掙採掬排掏掀捻捩捨捺敝敖救教敗啟敏敘敕敔斜斛斬族旋旌旎晝晚晤晨晦晞曹勗望梁梯梢梓梵桿桶梱梧梗械梃棄梭梆梅梔條梨梟梡梂欲殺�".split(""),e=0;e!=t[177].length;++e)t[177][e].charCodeAt(0)!==65533&&(i[t[177][e]]=45312+e,o[45312+e]=t[177][e]);for(t[178]="����������������������������������������������������������������毫毬氫涎涼淳淙液淡淌淤添淺清淇淋涯淑涮淞淹涸混淵淅淒渚涵淚淫淘淪深淮淨淆淄涪淬涿淦烹焉焊烽烯爽牽犁猜猛猖猓猙率琅琊球理現琍瓠瓶����������������������������������瓷甜產略畦畢異疏痔痕疵痊痍皎盔盒盛眷眾眼眶眸眺硫硃硎祥票祭移窒窕笠笨笛第符笙笞笮粒粗粕絆絃統紮紹紼絀細紳組累終紲紱缽羞羚翌翎習耜聊聆脯脖脣脫脩脰脤舂舵舷舶船莎莞莘荸莢莖莽莫莒莊莓莉莠荷荻荼�".split(""),e=0;e!=t[178].length;++e)t[178][e].charCodeAt(0)!==65533&&(i[t[178][e]]=45568+e,o[45568+e]=t[178][e]);for(t[179]="����������������������������������������������������������������莆莧處彪蛇蛀蚶蛄蚵蛆蛋蚱蚯蛉術袞袈被袒袖袍袋覓規訪訝訣訥許設訟訛訢豉豚販責貫貨貪貧赧赦趾趺軛軟這逍通逗連速逝逐逕逞造透逢逖逛途����������������������������������部郭都酗野釵釦釣釧釭釩閉陪陵陳陸陰陴陶陷陬雀雪雩章竟頂頃魚鳥鹵鹿麥麻傢傍傅備傑傀傖傘傚最凱割剴創剩勞勝勛博厥啻喀喧啼喊喝喘喂喜喪喔喇喋喃喳單喟唾喲喚喻喬喱啾喉喫喙圍堯堪場堤堰報堡堝堠壹壺奠�".split(""),e=0;e!=t[179].length;++e)t[179][e].charCodeAt(0)!==65533&&(i[t[179][e]]=45824+e,o[45824+e]=t[179][e]);for(t[180]="����������������������������������������������������������������婷媚婿媒媛媧孳孱寒富寓寐尊尋就嵌嵐崴嵇巽幅帽幀幃幾廊廁廂廄弼彭復循徨惑惡悲悶惠愜愣惺愕惰惻惴慨惱愎惶愉愀愒戟扉掣掌描揀揩揉揆揍����������������������������������插揣提握揖揭揮捶援揪換摒揚揹敞敦敢散斑斐斯普晰晴晶景暑智晾晷曾替期朝棺棕棠棘棗椅棟棵森棧棹棒棲棣棋棍植椒椎棉棚楮棻款欺欽殘殖殼毯氮氯氬港游湔渡渲湧湊渠渥渣減湛湘渤湖湮渭渦湯渴湍渺測湃渝渾滋�".split(""),e=0;e!=t[180].length;++e)t[180][e].charCodeAt(0)!==65533&&(i[t[180][e]]=46080+e,o[46080+e]=t[180][e]);for(t[181]="����������������������������������������������������������������溉渙湎湣湄湲湩湟焙焚焦焰無然煮焜牌犄犀猶猥猴猩琺琪琳琢琥琵琶琴琯琛琦琨甥甦畫番痢痛痣痙痘痞痠登發皖皓皴盜睏短硝硬硯稍稈程稅稀窘����������������������������������窗窖童竣等策筆筐筒答筍筋筏筑粟粥絞結絨絕紫絮絲絡給絢絰絳善翔翕耋聒肅腕腔腋腑腎脹腆脾腌腓腴舒舜菩萃菸萍菠菅萋菁華菱菴著萊菰萌菌菽菲菊萸萎萄菜萇菔菟虛蛟蛙蛭蛔蛛蛤蛐蛞街裁裂袱覃視註詠評詞証詁�".split(""),e=0;e!=t[181].length;++e)t[181][e].charCodeAt(0)!==65533&&(i[t[181][e]]=46336+e,o[46336+e]=t[181][e]);for(t[182]="����������������������������������������������������������������詔詛詐詆訴診訶詖象貂貯貼貳貽賁費賀貴買貶貿貸越超趁跎距跋跚跑跌跛跆軻軸軼辜逮逵週逸進逶鄂郵鄉郾酣酥量鈔鈕鈣鈉鈞鈍鈐鈇鈑閔閏開閑����������������������������������間閒閎隊階隋陽隅隆隍陲隄雁雅雄集雇雯雲韌項順須飧飪飯飩飲飭馮馭黃黍黑亂傭債傲傳僅傾催傷傻傯僇剿剷剽募勦勤勢勣匯嗟嗨嗓嗦嗎嗜嗇嗑嗣嗤嗯嗚嗡嗅嗆嗥嗉園圓塞塑塘塗塚塔填塌塭塊塢塒塋奧嫁嫉嫌媾媽媼�".split(""),e=0;e!=t[182].length;++e)t[182][e].charCodeAt(0)!==65533&&(i[t[182][e]]=46592+e,o[46592+e]=t[182][e]);for(t[183]="����������������������������������������������������������������媳嫂媲嵩嵯幌幹廉廈弒彙徬微愚意慈感想愛惹愁愈慎慌慄慍愾愴愧愍愆愷戡戢搓搾搞搪搭搽搬搏搜搔損搶搖搗搆敬斟新暗暉暇暈暖暄暘暍會榔業����������������������������������楚楷楠楔極椰概楊楨楫楞楓楹榆楝楣楛歇歲毀殿毓毽溢溯滓溶滂源溝滇滅溥溘溼溺溫滑準溜滄滔溪溧溴煎煙煩煤煉照煜煬煦煌煥煞煆煨煖爺牒猷獅猿猾瑯瑚瑕瑟瑞瑁琿瑙瑛瑜當畸瘀痰瘁痲痱痺痿痴痳盞盟睛睫睦睞督�".split(""),e=0;e!=t[183].length;++e)t[183][e].charCodeAt(0)!==65533&&(i[t[183][e]]=46848+e,o[46848+e]=t[183][e]);for(t[184]="����������������������������������������������������������������睹睪睬睜睥睨睢矮碎碰碗碘碌碉硼碑碓硿祺祿禁萬禽稜稚稠稔稟稞窟窠筷節筠筮筧粱粳粵經絹綑綁綏絛置罩罪署義羨群聖聘肆肄腱腰腸腥腮腳腫����������������������������������腹腺腦舅艇蒂葷落萱葵葦葫葉葬葛萼萵葡董葩葭葆虞虜號蛹蜓蜈蜇蜀蛾蛻蜂蜃蜆蜊衙裟裔裙補裘裝裡裊裕裒覜解詫該詳試詩詰誇詼詣誠話誅詭詢詮詬詹詻訾詨豢貊貉賊資賈賄貲賃賂賅跡跟跨路跳跺跪跤跦躲較載軾輊�".split(""),e=0;e!=t[184].length;++e)t[184][e].charCodeAt(0)!==65533&&(i[t[184][e]]=47104+e,o[47104+e]=t[184][e]);for(t[185]="����������������������������������������������������������������辟農運遊道遂達逼違遐遇遏過遍遑逾遁鄒鄗酬酪酩釉鈷鉗鈸鈽鉀鈾鉛鉋鉤鉑鈴鉉鉍鉅鈹鈿鉚閘隘隔隕雍雋雉雊雷電雹零靖靴靶預頑頓頊頒頌飼飴����������������������������������飽飾馳馱馴髡鳩麂鼎鼓鼠僧僮僥僖僭僚僕像僑僱僎僩兢凳劃劂匱厭嗾嘀嘛嘗嗽嘔嘆嘉嘍嘎嗷嘖嘟嘈嘐嗶團圖塵塾境墓墊塹墅塽壽夥夢夤奪奩嫡嫦嫩嫗嫖嫘嫣孵寞寧寡寥實寨寢寤察對屢嶄嶇幛幣幕幗幔廓廖弊彆彰徹慇�".split(""),e=0;e!=t[185].length;++e)t[185][e].charCodeAt(0)!==65533&&(i[t[185][e]]=47360+e,o[47360+e]=t[185][e]);for(t[186]="����������������������������������������������������������������愿態慷慢慣慟慚慘慵截撇摘摔撤摸摟摺摑摧搴摭摻敲斡旗旖暢暨暝榜榨榕槁榮槓構榛榷榻榫榴槐槍榭槌榦槃榣歉歌氳漳演滾漓滴漩漾漠漬漏漂漢����������������������������������滿滯漆漱漸漲漣漕漫漯澈漪滬漁滲滌滷熔熙煽熊熄熒爾犒犖獄獐瑤瑣瑪瑰瑭甄疑瘧瘍瘋瘉瘓盡監瞄睽睿睡磁碟碧碳碩碣禎福禍種稱窪窩竭端管箕箋筵算箝箔箏箸箇箄粹粽精綻綰綜綽綾綠緊綴網綱綺綢綿綵綸維緒緇綬�".split(""),e=0;e!=t[186].length;++e)t[186][e].charCodeAt(0)!==65533&&(i[t[186][e]]=47616+e,o[47616+e]=t[186][e]);for(t[187]="����������������������������������������������������������������罰翠翡翟聞聚肇腐膀膏膈膊腿膂臧臺與舔舞艋蓉蒿蓆蓄蒙蒞蒲蒜蓋蒸蓀蓓蒐蒼蓑蓊蜿蜜蜻蜢蜥蜴蜘蝕蜷蜩裳褂裴裹裸製裨褚裯誦誌語誣認誡誓誤����������������������������������說誥誨誘誑誚誧豪貍貌賓賑賒赫趙趕跼輔輒輕輓辣遠遘遜遣遙遞遢遝遛鄙鄘鄞酵酸酷酴鉸銀銅銘銖鉻銓銜銨鉼銑閡閨閩閣閥閤隙障際雌雒需靼鞅韶頗領颯颱餃餅餌餉駁骯骰髦魁魂鳴鳶鳳麼鼻齊億儀僻僵價儂儈儉儅凜�".split(""),e=0;e!=t[187].length;++e)t[187][e].charCodeAt(0)!==65533&&(i[t[187][e]]=47872+e,o[47872+e]=t[187][e]);for(t[188]="����������������������������������������������������������������劇劈劉劍劊勰厲嘮嘻嘹嘲嘿嘴嘩噓噎噗噴嘶嘯嘰墀墟增墳墜墮墩墦奭嬉嫻嬋嫵嬌嬈寮寬審寫層履嶝嶔幢幟幡廢廚廟廝廣廠彈影德徵慶慧慮慝慕憂����������������������������������慼慰慫慾憧憐憫憎憬憚憤憔憮戮摩摯摹撞撲撈撐撰撥撓撕撩撒撮播撫撚撬撙撢撳敵敷數暮暫暴暱樣樟槨樁樞標槽模樓樊槳樂樅槭樑歐歎殤毅毆漿潼澄潑潦潔澆潭潛潸潮澎潺潰潤澗潘滕潯潠潟熟熬熱熨牖犛獎獗瑩璋璃�".split(""),e=0;e!=t[188].length;++e)t[188][e].charCodeAt(0)!==65533&&(i[t[188][e]]=48128+e,o[48128+e]=t[188][e]);for(t[189]="����������������������������������������������������������������瑾璀畿瘠瘩瘟瘤瘦瘡瘢皚皺盤瞎瞇瞌瞑瞋磋磅確磊碾磕碼磐稿稼穀稽稷稻窯窮箭箱範箴篆篇篁箠篌糊締練緯緻緘緬緝編緣線緞緩綞緙緲緹罵罷羯����������������������������������翩耦膛膜膝膠膚膘蔗蔽蔚蓮蔬蔭蔓蔑蔣蔡蔔蓬蔥蓿蔆螂蝴蝶蝠蝦蝸蝨蝙蝗蝌蝓衛衝褐複褒褓褕褊誼諒談諄誕請諸課諉諂調誰論諍誶誹諛豌豎豬賠賞賦賤賬賭賢賣賜質賡赭趟趣踫踐踝踢踏踩踟踡踞躺輝輛輟輩輦輪輜輞�".split(""),e=0;e!=t[189].length;++e)t[189][e].charCodeAt(0)!==65533&&(i[t[189][e]]=48384+e,o[48384+e]=t[189][e]);for(t[190]="����������������������������������������������������������������輥適遮遨遭遷鄰鄭鄧鄱醇醉醋醃鋅銻銷鋪銬鋤鋁銳銼鋒鋇鋰銲閭閱霄霆震霉靠鞍鞋鞏頡頫頜颳養餓餒餘駝駐駟駛駑駕駒駙骷髮髯鬧魅魄魷魯鴆鴉����������������������������������鴃麩麾黎墨齒儒儘儔儐儕冀冪凝劑劓勳噙噫噹噩噤噸噪器噥噱噯噬噢噶壁墾壇壅奮嬝嬴學寰導彊憲憑憩憊懍憶憾懊懈戰擅擁擋撻撼據擄擇擂操撿擒擔撾整曆曉暹曄曇暸樽樸樺橙橫橘樹橄橢橡橋橇樵機橈歙歷氅濂澱澡�".split(""),e=0;e!=t[190].length;++e)t[190][e].charCodeAt(0)!==65533&&(i[t[190][e]]=48640+e,o[48640+e]=t[190][e]);for(t[191]="����������������������������������������������������������������濃澤濁澧澳激澹澶澦澠澴熾燉燐燒燈燕熹燎燙燜燃燄獨璜璣璘璟璞瓢甌甍瘴瘸瘺盧盥瞠瞞瞟瞥磨磚磬磧禦積穎穆穌穋窺篙簑築篤篛篡篩篦糕糖縊����������������������������������縑縈縛縣縞縝縉縐罹羲翰翱翮耨膳膩膨臻興艘艙蕊蕙蕈蕨蕩蕃蕉蕭蕪蕞螃螟螞螢融衡褪褲褥褫褡親覦諦諺諫諱謀諜諧諮諾謁謂諷諭諳諶諼豫豭貓賴蹄踱踴蹂踹踵輻輯輸輳辨辦遵遴選遲遼遺鄴醒錠錶鋸錳錯錢鋼錫錄錚�".split(""),e=0;e!=t[191].length;++e)t[191][e].charCodeAt(0)!==65533&&(i[t[191][e]]=48896+e,o[48896+e]=t[191][e]);for(t[192]="����������������������������������������������������������������錐錦錡錕錮錙閻隧隨險雕霎霑霖霍霓霏靛靜靦鞘頰頸頻頷頭頹頤餐館餞餛餡餚駭駢駱骸骼髻髭鬨鮑鴕鴣鴦鴨鴒鴛默黔龍龜優償儡儲勵嚎嚀嚐嚅嚇����������������������������������嚏壕壓壑壎嬰嬪嬤孺尷屨嶼嶺嶽嶸幫彌徽應懂懇懦懋戲戴擎擊擘擠擰擦擬擱擢擭斂斃曙曖檀檔檄檢檜櫛檣橾檗檐檠歜殮毚氈濘濱濟濠濛濤濫濯澀濬濡濩濕濮濰燧營燮燦燥燭燬燴燠爵牆獰獲璩環璦璨癆療癌盪瞳瞪瞰瞬�".split(""),e=0;e!=t[192].length;++e)t[192][e].charCodeAt(0)!==65533&&(i[t[192][e]]=49152+e,o[49152+e]=t[192][e]);for(t[193]="����������������������������������������������������������������瞧瞭矯磷磺磴磯礁禧禪穗窿簇簍篾篷簌篠糠糜糞糢糟糙糝縮績繆縷縲繃縫總縱繅繁縴縹繈縵縿縯罄翳翼聱聲聰聯聳臆臃膺臂臀膿膽臉膾臨舉艱薪����������������������������������薄蕾薜薑薔薯薛薇薨薊虧蟀蟑螳蟒蟆螫螻螺蟈蟋褻褶襄褸褽覬謎謗謙講謊謠謝謄謐豁谿豳賺賽購賸賻趨蹉蹋蹈蹊轄輾轂轅輿避遽還邁邂邀鄹醣醞醜鍍鎂錨鍵鍊鍥鍋錘鍾鍬鍛鍰鍚鍔闊闋闌闈闆隱隸雖霜霞鞠韓顆颶餵騁�".split(""),e=0;e!=t[193].length;++e)t[193][e].charCodeAt(0)!==65533&&(i[t[193][e]]=49408+e,o[49408+e]=t[193][e]);for(t[194]="����������������������������������������������������������������駿鮮鮫鮪鮭鴻鴿麋黏點黜黝黛鼾齋叢嚕嚮壙壘嬸彝懣戳擴擲擾攆擺擻擷斷曜朦檳檬櫃檻檸櫂檮檯歟歸殯瀉瀋濾瀆濺瀑瀏燻燼燾燸獷獵璧璿甕癖癘����������������������������������癒瞽瞿瞻瞼礎禮穡穢穠竄竅簫簧簪簞簣簡糧織繕繞繚繡繒繙罈翹翻職聶臍臏舊藏薩藍藐藉薰薺薹薦蟯蟬蟲蟠覆覲觴謨謹謬謫豐贅蹙蹣蹦蹤蹟蹕軀轉轍邇邃邈醫醬釐鎔鎊鎖鎢鎳鎮鎬鎰鎘鎚鎗闔闖闐闕離雜雙雛雞霤鞣鞦�".split(""),e=0;e!=t[194].length;++e)t[194][e].charCodeAt(0)!==65533&&(i[t[194][e]]=49664+e,o[49664+e]=t[194][e]);for(t[195]="����������������������������������������������������������������鞭韹額顏題顎顓颺餾餿餽餮馥騎髁鬃鬆魏魎魍鯊鯉鯽鯈鯀鵑鵝鵠黠鼕鼬儳嚥壞壟壢寵龐廬懲懷懶懵攀攏曠曝櫥櫝櫚櫓瀛瀟瀨瀚瀝瀕瀘爆爍牘犢獸����������������������������������獺璽瓊瓣疇疆癟癡矇礙禱穫穩簾簿簸簽簷籀繫繭繹繩繪羅繳羶羹羸臘藩藝藪藕藤藥藷蟻蠅蠍蟹蟾襠襟襖襞譁譜識證譚譎譏譆譙贈贊蹼蹲躇蹶蹬蹺蹴轔轎辭邊邋醱醮鏡鏑鏟鏃鏈鏜鏝鏖鏢鏍鏘鏤鏗鏨關隴難霪霧靡韜韻類�".split(""),e=0;e!=t[195].length;++e)t[195][e].charCodeAt(0)!==65533&&(i[t[195][e]]=49920+e,o[49920+e]=t[195][e]);for(t[196]="����������������������������������������������������������������願顛颼饅饉騖騙鬍鯨鯧鯖鯛鶉鵡鵲鵪鵬麒麗麓麴勸嚨嚷嚶嚴嚼壤孀孃孽寶巉懸懺攘攔攙曦朧櫬瀾瀰瀲爐獻瓏癢癥礦礪礬礫竇競籌籃籍糯糰辮繽繼����������������������������������纂罌耀臚艦藻藹蘑藺蘆蘋蘇蘊蠔蠕襤覺觸議譬警譯譟譫贏贍躉躁躅躂醴釋鐘鐃鏽闡霰飄饒饑馨騫騰騷騵鰓鰍鹹麵黨鼯齟齣齡儷儸囁囀囂夔屬巍懼懾攝攜斕曩櫻欄櫺殲灌爛犧瓖瓔癩矓籐纏續羼蘗蘭蘚蠣蠢蠡蠟襪襬覽譴�".split(""),e=0;e!=t[196].length;++e)t[196][e].charCodeAt(0)!==65533&&(i[t[196][e]]=50176+e,o[50176+e]=t[196][e]);for(t[197]="����������������������������������������������������������������護譽贓躊躍躋轟辯醺鐮鐳鐵鐺鐸鐲鐫闢霸霹露響顧顥饗驅驃驀騾髏魔魑鰭鰥鶯鶴鷂鶸麝黯鼙齜齦齧儼儻囈囊囉孿巔巒彎懿攤權歡灑灘玀瓤疊癮癬����������������������������������禳籠籟聾聽臟襲襯觼讀贖贗躑躓轡酈鑄鑑鑒霽霾韃韁顫饕驕驍髒鬚鱉鰱鰾鰻鷓鷗鼴齬齪龔囌巖戀攣攫攪曬欐瓚竊籤籣籥纓纖纔臢蘸蘿蠱變邐邏鑣鑠鑤靨顯饜驚驛驗髓體髑鱔鱗鱖鷥麟黴囑壩攬灞癱癲矗罐羈蠶蠹衢讓讒�".split(""),e=0;e!=t[197].length;++e)t[197][e].charCodeAt(0)!==65533&&(i[t[197][e]]=50432+e,o[50432+e]=t[197][e]);for(t[198]="����������������������������������������������������������������讖艷贛釀鑪靂靈靄韆顰驟鬢魘鱟鷹鷺鹼鹽鼇齷齲廳欖灣籬籮蠻觀躡釁鑲鑰顱饞髖鬣黌灤矚讚鑷韉驢驥纜讜躪釅鑽鑾鑼鱷鱸黷豔鑿鸚爨驪鬱鸛鸞籲���������������������������������������������������������������������������������������������������������������������������������".split(""),e=0;e!=t[198].length;++e)t[198][e].charCodeAt(0)!==65533&&(i[t[198][e]]=50688+e,o[50688+e]=t[198][e]);for(t[201]="����������������������������������������������������������������乂乜凵匚厂万丌乇亍囗兀屮彳丏冇与丮亓仂仉仈冘勼卬厹圠夃夬尐巿旡殳毌气爿丱丼仨仜仩仡仝仚刌匜卌圢圣夗夯宁宄尒尻屴屳帄庀庂忉戉扐氕����������������������������������氶汃氿氻犮犰玊禸肊阞伎优伬仵伔仱伀价伈伝伂伅伢伓伄仴伒冱刓刉刐劦匢匟卍厊吇囡囟圮圪圴夼妀奼妅奻奾奷奿孖尕尥屼屺屻屾巟幵庄异弚彴忕忔忏扜扞扤扡扦扢扙扠扚扥旯旮朾朹朸朻机朿朼朳氘汆汒汜汏汊汔汋�".split(""),e=0;e!=t[201].length;++e)t[201][e].charCodeAt(0)!==65533&&(i[t[201][e]]=51456+e,o[51456+e]=t[201][e]);for(t[202]="����������������������������������������������������������������汌灱牞犴犵玎甪癿穵网艸艼芀艽艿虍襾邙邗邘邛邔阢阤阠阣佖伻佢佉体佤伾佧佒佟佁佘伭伳伿佡冏冹刜刞刡劭劮匉卣卲厎厏吰吷吪呔呅吙吜吥吘����������������������������������吽呏呁吨吤呇囮囧囥坁坅坌坉坋坒夆奀妦妘妠妗妎妢妐妏妧妡宎宒尨尪岍岏岈岋岉岒岊岆岓岕巠帊帎庋庉庌庈庍弅弝彸彶忒忑忐忭忨忮忳忡忤忣忺忯忷忻怀忴戺抃抌抎抏抔抇扱扻扺扰抁抈扷扽扲扴攷旰旴旳旲旵杅杇�".split(""),e=0;e!=t[202].length;++e)t[202][e].charCodeAt(0)!==65533&&(i[t[202][e]]=51712+e,o[51712+e]=t[202][e]);for(t[203]="����������������������������������������������������������������杙杕杌杈杝杍杚杋毐氙氚汸汧汫沄沋沏汱汯汩沚汭沇沕沜汦汳汥汻沎灴灺牣犿犽狃狆狁犺狅玕玗玓玔玒町甹疔疕皁礽耴肕肙肐肒肜芐芏芅芎芑芓����������������������������������芊芃芄豸迉辿邟邡邥邞邧邠阰阨阯阭丳侘佼侅佽侀侇佶佴侉侄佷佌侗佪侚佹侁佸侐侜侔侞侒侂侕佫佮冞冼冾刵刲刳剆刱劼匊匋匼厒厔咇呿咁咑咂咈呫呺呾呥呬呴呦咍呯呡呠咘呣呧呤囷囹坯坲坭坫坱坰坶垀坵坻坳坴坢�".split(""),e=0;e!=t[203].length;++e)t[203][e].charCodeAt(0)!==65533&&(i[t[203][e]]=51968+e,o[51968+e]=t[203][e]);for(t[204]="����������������������������������������������������������������坨坽夌奅妵妺姏姎妲姌姁妶妼姃姖妱妽姀姈妴姇孢孥宓宕屄屇岮岤岠岵岯岨岬岟岣岭岢岪岧岝岥岶岰岦帗帔帙弨弢弣弤彔徂彾彽忞忥怭怦怙怲怋����������������������������������怴怊怗怳怚怞怬怢怍怐怮怓怑怌怉怜戔戽抭抴拑抾抪抶拊抮抳抯抻抩抰抸攽斨斻昉旼昄昒昈旻昃昋昍昅旽昑昐曶朊枅杬枎枒杶杻枘枆构杴枍枌杺枟枑枙枃杽极杸杹枔欥殀歾毞氝沓泬泫泮泙沶泔沭泧沷泐泂沺泃泆泭泲�".split(""),e=0;e!=t[204].length;++e)t[204][e].charCodeAt(0)!==65533&&(i[t[204][e]]=52224+e,o[52224+e]=t[204][e]);for(t[205]="����������������������������������������������������������������泒泝沴沊沝沀泞泀洰泍泇沰泹泏泩泑炔炘炅炓炆炄炑炖炂炚炃牪狖狋狘狉狜狒狔狚狌狑玤玡玭玦玢玠玬玝瓝瓨甿畀甾疌疘皯盳盱盰盵矸矼矹矻矺����������������������������������矷祂礿秅穸穻竻籵糽耵肏肮肣肸肵肭舠芠苀芫芚芘芛芵芧芮芼芞芺芴芨芡芩苂芤苃芶芢虰虯虭虮豖迒迋迓迍迖迕迗邲邴邯邳邰阹阽阼阺陃俍俅俓侲俉俋俁俔俜俙侻侳俛俇俖侺俀侹俬剄剉勀勂匽卼厗厖厙厘咺咡咭咥哏�".split(""),e=0;e!=t[205].length;++e)t[205][e].charCodeAt(0)!==65533&&(i[t[205][e]]=52480+e,o[52480+e]=t[205][e]);for(t[206]="����������������������������������������������������������������哃茍咷咮哖咶哅哆咠呰咼咢咾呲哞咰垵垞垟垤垌垗垝垛垔垘垏垙垥垚垕壴复奓姡姞姮娀姱姝姺姽姼姶姤姲姷姛姩姳姵姠姾姴姭宨屌峐峘峌峗峋峛����������������������������������峞峚峉峇峊峖峓峔峏峈峆峎峟峸巹帡帢帣帠帤庰庤庢庛庣庥弇弮彖徆怷怹恔恲恞恅恓恇恉恛恌恀恂恟怤恄恘恦恮扂扃拏挍挋拵挎挃拫拹挏挌拸拶挀挓挔拺挕拻拰敁敃斪斿昶昡昲昵昜昦昢昳昫昺昝昴昹昮朏朐柁柲柈枺�".split(""),e=0;e!=t[206].length;++e)t[206][e].charCodeAt(0)!==65533&&(i[t[206][e]]=52736+e,o[52736+e]=t[206][e]);for(t[207]="����������������������������������������������������������������柜枻柸柘柀枷柅柫柤柟枵柍枳柷柶柮柣柂枹柎柧柰枲柼柆柭柌枮柦柛柺柉柊柃柪柋欨殂殄殶毖毘毠氠氡洨洴洭洟洼洿洒洊泚洳洄洙洺洚洑洀洝浂����������������������������������洁洘洷洃洏浀洇洠洬洈洢洉洐炷炟炾炱炰炡炴炵炩牁牉牊牬牰牳牮狊狤狨狫狟狪狦狣玅珌珂珈珅玹玶玵玴珫玿珇玾珃珆玸珋瓬瓮甮畇畈疧疪癹盄眈眃眄眅眊盷盻盺矧矨砆砑砒砅砐砏砎砉砃砓祊祌祋祅祄秕种秏秖秎窀�".split(""),e=0;e!=t[207].length;++e)t[207][e].charCodeAt(0)!==65533&&(i[t[207][e]]=52992+e,o[52992+e]=t[207][e]);for(t[208]="����������������������������������������������������������������穾竑笀笁籺籸籹籿粀粁紃紈紁罘羑羍羾耇耎耏耔耷胘胇胠胑胈胂胐胅胣胙胜胊胕胉胏胗胦胍臿舡芔苙苾苹茇苨茀苕茺苫苖苴苬苡苲苵茌苻苶苰苪����������������������������������苤苠苺苳苭虷虴虼虳衁衎衧衪衩觓訄訇赲迣迡迮迠郱邽邿郕郅邾郇郋郈釔釓陔陏陑陓陊陎倞倅倇倓倢倰倛俵俴倳倷倬俶俷倗倜倠倧倵倯倱倎党冔冓凊凄凅凈凎剡剚剒剞剟剕剢勍匎厞唦哢唗唒哧哳哤唚哿唄唈哫唑唅哱�".split(""),e=0;e!=t[208].length;++e)t[208][e].charCodeAt(0)!==65533&&(i[t[208][e]]=53248+e,o[53248+e]=t[208][e]);for(t[209]="����������������������������������������������������������������唊哻哷哸哠唎唃唋圁圂埌堲埕埒垺埆垽垼垸垶垿埇埐垹埁夎奊娙娖娭娮娕娏娗娊娞娳孬宧宭宬尃屖屔峬峿峮峱峷崀峹帩帨庨庮庪庬弳弰彧恝恚恧����������������������������������恁悢悈悀悒悁悝悃悕悛悗悇悜悎戙扆拲挐捖挬捄捅挶捃揤挹捋捊挼挩捁挴捘捔捙挭捇挳捚捑挸捗捀捈敊敆旆旃旄旂晊晟晇晑朒朓栟栚桉栲栳栻桋桏栖栱栜栵栫栭栯桎桄栴栝栒栔栦栨栮桍栺栥栠欬欯欭欱欴歭肂殈毦毤�".split(""),e=0;e!=t[209].length;++e)t[209][e].charCodeAt(0)!==65533&&(i[t[209][e]]=53504+e,o[53504+e]=t[209][e]);for(t[210]="����������������������������������������������������������������毨毣毢毧氥浺浣浤浶洍浡涒浘浢浭浯涑涍淯浿涆浞浧浠涗浰浼浟涂涘洯浨涋浾涀涄洖涃浻浽浵涐烜烓烑烝烋缹烢烗烒烞烠烔烍烅烆烇烚烎烡牂牸����������������������������������牷牶猀狺狴狾狶狳狻猁珓珙珥珖玼珧珣珩珜珒珛珔珝珚珗珘珨瓞瓟瓴瓵甡畛畟疰痁疻痄痀疿疶疺皊盉眝眛眐眓眒眣眑眕眙眚眢眧砣砬砢砵砯砨砮砫砡砩砳砪砱祔祛祏祜祓祒祑秫秬秠秮秭秪秜秞秝窆窉窅窋窌窊窇竘笐�".split(""),e=0;e!=t[210].length;++e)t[210][e].charCodeAt(0)!==65533&&(i[t[210][e]]=53760+e,o[53760+e]=t[210][e]);for(t[211]="����������������������������������������������������������������笄笓笅笏笈笊笎笉笒粄粑粊粌粈粍粅紞紝紑紎紘紖紓紟紒紏紌罜罡罞罠罝罛羖羒翃翂翀耖耾耹胺胲胹胵脁胻脀舁舯舥茳茭荄茙荑茥荖茿荁茦茜茢����������������������������������荂荎茛茪茈茼荍茖茤茠茷茯茩荇荅荌荓茞茬荋茧荈虓虒蚢蚨蚖蚍蚑蚞蚇蚗蚆蚋蚚蚅蚥蚙蚡蚧蚕蚘蚎蚝蚐蚔衃衄衭衵衶衲袀衱衿衯袃衾衴衼訒豇豗豻貤貣赶赸趵趷趶軑軓迾迵适迿迻逄迼迶郖郠郙郚郣郟郥郘郛郗郜郤酐�".split(""),e=0;e!=t[211].length;++e)t[211][e].charCodeAt(0)!==65533&&(i[t[211][e]]=54016+e,o[54016+e]=t[211][e]);for(t[212]="����������������������������������������������������������������酎酏釕釢釚陜陟隼飣髟鬯乿偰偪偡偞偠偓偋偝偲偈偍偁偛偊偢倕偅偟偩偫偣偤偆偀偮偳偗偑凐剫剭剬剮勖勓匭厜啵啶唼啍啐唴唪啑啢唶唵唰啒啅����������������������������������唌唲啥啎唹啈唭唻啀啋圊圇埻堔埢埶埜埴堀埭埽堈埸堋埳埏堇埮埣埲埥埬埡堎埼堐埧堁堌埱埩埰堍堄奜婠婘婕婧婞娸娵婭婐婟婥婬婓婤婗婃婝婒婄婛婈媎娾婍娹婌婰婩婇婑婖婂婜孲孮寁寀屙崞崋崝崚崠崌崨崍崦崥崏�".split(""),e=0;e!=t[212].length;++e)t[212][e].charCodeAt(0)!==65533&&(i[t[212][e]]=54272+e,o[54272+e]=t[212][e]);for(t[213]="����������������������������������������������������������������崰崒崣崟崮帾帴庱庴庹庲庳弶弸徛徖徟悊悐悆悾悰悺惓惔惏惤惙惝惈悱惛悷惊悿惃惍惀挲捥掊掂捽掽掞掭掝掗掫掎捯掇掐据掯捵掜捭掮捼掤挻掟����������������������������������捸掅掁掑掍捰敓旍晥晡晛晙晜晢朘桹梇梐梜桭桮梮梫楖桯梣梬梩桵桴梲梏桷梒桼桫桲梪梀桱桾梛梖梋梠梉梤桸桻梑梌梊桽欶欳欷欸殑殏殍殎殌氪淀涫涴涳湴涬淩淢涷淶淔渀淈淠淟淖涾淥淜淝淛淴淊涽淭淰涺淕淂淏淉�".split(""),e=0;e!=t[213].length;++e)t[213][e].charCodeAt(0)!==65533&&(i[t[213][e]]=54528+e,o[54528+e]=t[213][e]);for(t[214]="����������������������������������������������������������������淐淲淓淽淗淍淣涻烺焍烷焗烴焌烰焄烳焐烼烿焆焓焀烸烶焋焂焎牾牻牼牿猝猗猇猑猘猊猈狿猏猞玈珶珸珵琄琁珽琇琀珺珼珿琌琋珴琈畤畣痎痒痏����������������������������������痋痌痑痐皏皉盓眹眯眭眱眲眴眳眽眥眻眵硈硒硉硍硊硌砦硅硐祤祧祩祪祣祫祡离秺秸秶秷窏窔窐笵筇笴笥笰笢笤笳笘笪笝笱笫笭笯笲笸笚笣粔粘粖粣紵紽紸紶紺絅紬紩絁絇紾紿絊紻紨罣羕羜羝羛翊翋翍翐翑翇翏翉耟�".split(""),e=0;e!=t[214].length;++e)t[214][e].charCodeAt(0)!==65533&&(i[t[214][e]]=54784+e,o[54784+e]=t[214][e]);for(t[215]="����������������������������������������������������������������耞耛聇聃聈脘脥脙脛脭脟脬脞脡脕脧脝脢舑舸舳舺舴舲艴莐莣莨莍荺荳莤荴莏莁莕莙荵莔莩荽莃莌莝莛莪莋荾莥莯莈莗莰荿莦莇莮荶莚虙虖蚿蚷����������������������������������蛂蛁蛅蚺蚰蛈蚹蚳蚸蛌蚴蚻蚼蛃蚽蚾衒袉袕袨袢袪袚袑袡袟袘袧袙袛袗袤袬袌袓袎覂觖觙觕訰訧訬訞谹谻豜豝豽貥赽赻赹趼跂趹趿跁軘軞軝軜軗軠軡逤逋逑逜逌逡郯郪郰郴郲郳郔郫郬郩酖酘酚酓酕釬釴釱釳釸釤釹釪�".split(""),e=0;e!=t[215].length;++e)t[215][e].charCodeAt(0)!==65533&&(i[t[215][e]]=55040+e,o[55040+e]=t[215][e]);for(t[216]="����������������������������������������������������������������釫釷釨釮镺閆閈陼陭陫陱陯隿靪頄飥馗傛傕傔傞傋傣傃傌傎傝偨傜傒傂傇兟凔匒匑厤厧喑喨喥喭啷噅喢喓喈喏喵喁喣喒喤啽喌喦啿喕喡喎圌堩堷����������������������������������堙堞堧堣堨埵塈堥堜堛堳堿堶堮堹堸堭堬堻奡媯媔媟婺媢媞婸媦婼媥媬媕媮娷媄媊媗媃媋媩婻婽媌媜媏媓媝寪寍寋寔寑寊寎尌尰崷嵃嵫嵁嵋崿崵嵑嵎嵕崳崺嵒崽崱嵙嵂崹嵉崸崼崲崶嵀嵅幄幁彘徦徥徫惉悹惌惢惎惄愔�".split(""),e=0;e!=t[216].length;++e)t[216][e].charCodeAt(0)!==65533&&(i[t[216][e]]=55296+e,o[55296+e]=t[216][e]);for(t[217]="����������������������������������������������������������������惲愊愖愅惵愓惸惼惾惁愃愘愝愐惿愄愋扊掔掱掰揎揥揨揯揃撝揳揊揠揶揕揲揵摡揟掾揝揜揄揘揓揂揇揌揋揈揰揗揙攲敧敪敤敜敨敥斌斝斞斮旐旒����������������������������������晼晬晻暀晱晹晪晲朁椌棓椄棜椪棬棪棱椏棖棷棫棤棶椓椐棳棡椇棌椈楰梴椑棯棆椔棸棐棽棼棨椋椊椗棎棈棝棞棦棴棑椆棔棩椕椥棇欹欻欿欼殔殗殙殕殽毰毲毳氰淼湆湇渟湉溈渼渽湅湢渫渿湁湝湳渜渳湋湀湑渻渃渮湞�".split(""),e=0;e!=t[217].length;++e)t[217][e].charCodeAt(0)!==65533&&(i[t[217][e]]=55552+e,o[55552+e]=t[217][e]);for(t[218]="����������������������������������������������������������������湨湜湡渱渨湠湱湫渹渢渰湓湥渧湸湤湷湕湹湒湦渵渶湚焠焞焯烻焮焱焣焥焢焲焟焨焺焛牋牚犈犉犆犅犋猒猋猰猢猱猳猧猲猭猦猣猵猌琮琬琰琫琖����������������������������������琚琡琭琱琤琣琝琩琠琲瓻甯畯畬痧痚痡痦痝痟痤痗皕皒盚睆睇睄睍睅睊睎睋睌矞矬硠硤硥硜硭硱硪确硰硩硨硞硢祴祳祲祰稂稊稃稌稄窙竦竤筊笻筄筈筌筎筀筘筅粢粞粨粡絘絯絣絓絖絧絪絏絭絜絫絒絔絩絑絟絎缾缿罥�".split(""),e=0;e!=t[218].length;++e)t[218][e].charCodeAt(0)!==65533&&(i[t[218][e]]=55808+e,o[55808+e]=t[218][e]);for(t[219]="����������������������������������������������������������������罦羢羠羡翗聑聏聐胾胔腃腊腒腏腇脽腍脺臦臮臷臸臹舄舼舽舿艵茻菏菹萣菀菨萒菧菤菼菶萐菆菈菫菣莿萁菝菥菘菿菡菋菎菖菵菉萉萏菞萑萆菂菳����������������������������������菕菺菇菑菪萓菃菬菮菄菻菗菢萛菛菾蛘蛢蛦蛓蛣蛚蛪蛝蛫蛜蛬蛩蛗蛨蛑衈衖衕袺裗袹袸裀袾袶袼袷袽袲褁裉覕覘覗觝觚觛詎詍訹詙詀詗詘詄詅詒詈詑詊詌詏豟貁貀貺貾貰貹貵趄趀趉跘跓跍跇跖跜跏跕跙跈跗跅軯軷軺�".split(""),e=0;e!=t[219].length;++e)t[219][e].charCodeAt(0)!==65533&&(i[t[219][e]]=56064+e,o[56064+e]=t[219][e]);for(t[220]="����������������������������������������������������������������軹軦軮軥軵軧軨軶軫軱軬軴軩逭逴逯鄆鄬鄄郿郼鄈郹郻鄁鄀鄇鄅鄃酡酤酟酢酠鈁鈊鈥鈃鈚鈦鈏鈌鈀鈒釿釽鈆鈄鈧鈂鈜鈤鈙鈗鈅鈖镻閍閌閐隇陾隈����������������������������������隉隃隀雂雈雃雱雰靬靰靮頇颩飫鳦黹亃亄亶傽傿僆傮僄僊傴僈僂傰僁傺傱僋僉傶傸凗剺剸剻剼嗃嗛嗌嗐嗋嗊嗝嗀嗔嗄嗩喿嗒喍嗏嗕嗢嗖嗈嗲嗍嗙嗂圔塓塨塤塏塍塉塯塕塎塝塙塥塛堽塣塱壼嫇嫄嫋媺媸媱媵媰媿嫈媻嫆�".split(""),e=0;e!=t[220].length;++e)t[220][e].charCodeAt(0)!==65533&&(i[t[220][e]]=56320+e,o[56320+e]=t[220][e]);for(t[221]="����������������������������������������������������������������媷嫀嫊媴媶嫍媹媐寖寘寙尟尳嵱嵣嵊嵥嵲嵬嵞嵨嵧嵢巰幏幎幊幍幋廅廌廆廋廇彀徯徭惷慉慊愫慅愶愲愮慆愯慏愩慀戠酨戣戥戤揅揱揫搐搒搉搠搤����������������������������������搳摃搟搕搘搹搷搢搣搌搦搰搨摁搵搯搊搚摀搥搧搋揧搛搮搡搎敯斒旓暆暌暕暐暋暊暙暔晸朠楦楟椸楎楢楱椿楅楪椹楂楗楙楺楈楉椵楬椳椽楥棰楸椴楩楀楯楄楶楘楁楴楌椻楋椷楜楏楑椲楒椯楻椼歆歅歃歂歈歁殛嗀毻毼�".split(""),e=0;e!=t[221].length;++e)t[221][e].charCodeAt(0)!==65533&&(i[t[221][e]]=56576+e,o[56576+e]=t[221][e]);for(t[222]="����������������������������������������������������������������毹毷毸溛滖滈溏滀溟溓溔溠溱溹滆滒溽滁溞滉溷溰滍溦滏溲溾滃滜滘溙溒溎溍溤溡溿溳滐滊溗溮溣煇煔煒煣煠煁煝煢煲煸煪煡煂煘煃煋煰煟煐煓����������������������������������煄煍煚牏犍犌犑犐犎猼獂猻猺獀獊獉瑄瑊瑋瑒瑑瑗瑀瑏瑐瑎瑂瑆瑍瑔瓡瓿瓾瓽甝畹畷榃痯瘏瘃痷痾痼痹痸瘐痻痶痭痵痽皙皵盝睕睟睠睒睖睚睩睧睔睙睭矠碇碚碔碏碄碕碅碆碡碃硹碙碀碖硻祼禂祽祹稑稘稙稒稗稕稢稓�".split(""),e=0;e!=t[222].length;++e)t[222][e].charCodeAt(0)!==65533&&(i[t[222][e]]=56832+e,o[56832+e]=t[222][e]);for(t[223]="����������������������������������������������������������������稛稐窣窢窞竫筦筤筭筴筩筲筥筳筱筰筡筸筶筣粲粴粯綈綆綀綍絿綅絺綎絻綃絼綌綔綄絽綒罭罫罧罨罬羦羥羧翛翜耡腤腠腷腜腩腛腢腲朡腞腶腧腯����������������������������������腄腡舝艉艄艀艂艅蓱萿葖葶葹蒏蒍葥葑葀蒆葧萰葍葽葚葙葴葳葝蔇葞萷萺萴葺葃葸萲葅萩菙葋萯葂萭葟葰萹葎葌葒葯蓅蒎萻葇萶萳葨葾葄萫葠葔葮葐蜋蜄蛷蜌蛺蛖蛵蝍蛸蜎蜉蜁蛶蜍蜅裖裋裍裎裞裛裚裌裐覅覛觟觥觤�".split(""),e=0;e!=t[223].length;++e)t[223][e].charCodeAt(0)!==65533&&(i[t[223][e]]=57088+e,o[57088+e]=t[223][e]);for(t[224]="����������������������������������������������������������������觡觠觢觜触詶誆詿詡訿詷誂誄詵誃誁詴詺谼豋豊豥豤豦貆貄貅賌赨赩趑趌趎趏趍趓趔趐趒跰跠跬跱跮跐跩跣跢跧跲跫跴輆軿輁輀輅輇輈輂輋遒逿����������������������������������遄遉逽鄐鄍鄏鄑鄖鄔鄋鄎酮酯鉈鉒鈰鈺鉦鈳鉥鉞銃鈮鉊鉆鉭鉬鉏鉠鉧鉯鈶鉡鉰鈱鉔鉣鉐鉲鉎鉓鉌鉖鈲閟閜閞閛隒隓隑隗雎雺雽雸雵靳靷靸靲頏頍頎颬飶飹馯馲馰馵骭骫魛鳪鳭鳧麀黽僦僔僗僨僳僛僪僝僤僓僬僰僯僣僠�".split(""),e=0;e!=t[224].length;++e)t[224][e].charCodeAt(0)!==65533&&(i[t[224][e]]=57344+e,o[57344+e]=t[224][e]);for(t[225]="����������������������������������������������������������������凘劀劁勩勫匰厬嘧嘕嘌嘒嗼嘏嘜嘁嘓嘂嗺嘝嘄嗿嗹墉塼墐墘墆墁塿塴墋塺墇墑墎塶墂墈塻墔墏壾奫嫜嫮嫥嫕嫪嫚嫭嫫嫳嫢嫠嫛嫬嫞嫝嫙嫨嫟孷寠����������������������������������寣屣嶂嶀嵽嶆嵺嶁嵷嶊嶉嶈嵾嵼嶍嵹嵿幘幙幓廘廑廗廎廜廕廙廒廔彄彃彯徶愬愨慁慞慱慳慒慓慲慬憀慴慔慺慛慥愻慪慡慖戩戧戫搫摍摛摝摴摶摲摳摽摵摦撦摎撂摞摜摋摓摠摐摿搿摬摫摙摥摷敳斠暡暠暟朅朄朢榱榶槉�".split(""),e=0;e!=t[225].length;++e)t[225][e].charCodeAt(0)!==65533&&(i[t[225][e]]=57600+e,o[57600+e]=t[225][e]);for(t[226]="����������������������������������������������������������������榠槎榖榰榬榼榑榙榎榧榍榩榾榯榿槄榽榤槔榹槊榚槏榳榓榪榡榞槙榗榐槂榵榥槆歊歍歋殞殟殠毃毄毾滎滵滱漃漥滸漷滻漮漉潎漙漚漧漘漻漒滭漊����������������������������������漶潳滹滮漭潀漰漼漵滫漇漎潃漅滽滶漹漜滼漺漟漍漞漈漡熇熐熉熀熅熂熏煻熆熁熗牄牓犗犕犓獃獍獑獌瑢瑳瑱瑵瑲瑧瑮甀甂甃畽疐瘖瘈瘌瘕瘑瘊瘔皸瞁睼瞅瞂睮瞀睯睾瞃碲碪碴碭碨硾碫碞碥碠碬碢碤禘禊禋禖禕禔禓�".split(""),e=0;e!=t[226].length;++e)t[226][e].charCodeAt(0)!==65533&&(i[t[226][e]]=57856+e,o[57856+e]=t[226][e]);for(t[227]="����������������������������������������������������������������禗禈禒禐稫穊稰稯稨稦窨窫窬竮箈箜箊箑箐箖箍箌箛箎箅箘劄箙箤箂粻粿粼粺綧綷緂綣綪緁緀緅綝緎緄緆緋緌綯綹綖綼綟綦綮綩綡緉罳翢翣翥翞����������������������������������耤聝聜膉膆膃膇膍膌膋舕蒗蒤蒡蒟蒺蓎蓂蒬蒮蒫蒹蒴蓁蓍蒪蒚蒱蓐蒝蒧蒻蒢蒔蓇蓌蒛蒩蒯蒨蓖蒘蒶蓏蒠蓗蓔蓒蓛蒰蒑虡蜳蜣蜨蝫蝀蜮蜞蜡蜙蜛蝃蜬蝁蜾蝆蜠蜲蜪蜭蜼蜒蜺蜱蜵蝂蜦蜧蜸蜤蜚蜰蜑裷裧裱裲裺裾裮裼裶裻�".split(""),e=0;e!=t[227].length;++e)t[227][e].charCodeAt(0)!==65533&&(i[t[227][e]]=58112+e,o[58112+e]=t[227][e]);for(t[228]="����������������������������������������������������������������裰裬裫覝覡覟覞觩觫觨誫誙誋誒誏誖谽豨豩賕賏賗趖踉踂跿踍跽踊踃踇踆踅跾踀踄輐輑輎輍鄣鄜鄠鄢鄟鄝鄚鄤鄡鄛酺酲酹酳銥銤鉶銛鉺銠銔銪銍����������������������������������銦銚銫鉹銗鉿銣鋮銎銂銕銢鉽銈銡銊銆銌銙銧鉾銇銩銝銋鈭隞隡雿靘靽靺靾鞃鞀鞂靻鞄鞁靿韎韍頖颭颮餂餀餇馝馜駃馹馻馺駂馽駇骱髣髧鬾鬿魠魡魟鳱鳲鳵麧僿儃儰僸儆儇僶僾儋儌僽儊劋劌勱勯噈噂噌嘵噁噊噉噆噘�".split(""),e=0;e!=t[228].length;++e)t[228][e].charCodeAt(0)!==65533&&(i[t[228][e]]=58368+e,o[58368+e]=t[228][e]);for(t[229]="����������������������������������������������������������������噚噀嘳嘽嘬嘾嘸嘪嘺圚墫墝墱墠墣墯墬墥墡壿嫿嫴嫽嫷嫶嬃嫸嬂嫹嬁嬇嬅嬏屧嶙嶗嶟嶒嶢嶓嶕嶠嶜嶡嶚嶞幩幝幠幜緳廛廞廡彉徲憋憃慹憱憰憢憉����������������������������������憛憓憯憭憟憒憪憡憍慦憳戭摮摰撖撠撅撗撜撏撋撊撌撣撟摨撱撘敶敺敹敻斲斳暵暰暩暲暷暪暯樀樆樗槥槸樕槱槤樠槿槬槢樛樝槾樧槲槮樔槷槧橀樈槦槻樍槼槫樉樄樘樥樏槶樦樇槴樖歑殥殣殢殦氁氀毿氂潁漦潾澇濆澒�".split(""),e=0;e!=t[229].length;++e)t[229][e].charCodeAt(0)!==65533&&(i[t[229][e]]=58624+e,o[58624+e]=t[229][e]);for(t[230]="����������������������������������������������������������������澍澉澌潢潏澅潚澖潶潬澂潕潲潒潐潗澔澓潝漀潡潫潽潧澐潓澋潩潿澕潣潷潪潻熲熯熛熰熠熚熩熵熝熥熞熤熡熪熜熧熳犘犚獘獒獞獟獠獝獛獡獚獙����������������������������������獢璇璉璊璆璁瑽璅璈瑼瑹甈甇畾瘥瘞瘙瘝瘜瘣瘚瘨瘛皜皝皞皛瞍瞏瞉瞈磍碻磏磌磑磎磔磈磃磄磉禚禡禠禜禢禛歶稹窲窴窳箷篋箾箬篎箯箹篊箵糅糈糌糋緷緛緪緧緗緡縃緺緦緶緱緰緮緟罶羬羰羭翭翫翪翬翦翨聤聧膣膟�".split(""),e=0;e!=t[230].length;++e)t[230][e].charCodeAt(0)!==65533&&(i[t[230][e]]=58880+e,o[58880+e]=t[230][e]);for(t[231]="����������������������������������������������������������������膞膕膢膙膗舖艏艓艒艐艎艑蔤蔻蔏蔀蔩蔎蔉蔍蔟蔊蔧蔜蓻蔫蓺蔈蔌蓴蔪蓲蔕蓷蓫蓳蓼蔒蓪蓩蔖蓾蔨蔝蔮蔂蓽蔞蓶蔱蔦蓧蓨蓰蓯蓹蔘蔠蔰蔋蔙蔯虢����������������������������������蝖蝣蝤蝷蟡蝳蝘蝔蝛蝒蝡蝚蝑蝞蝭蝪蝐蝎蝟蝝蝯蝬蝺蝮蝜蝥蝏蝻蝵蝢蝧蝩衚褅褌褔褋褗褘褙褆褖褑褎褉覢覤覣觭觰觬諏諆誸諓諑諔諕誻諗誾諀諅諘諃誺誽諙谾豍貏賥賟賙賨賚賝賧趠趜趡趛踠踣踥踤踮踕踛踖踑踙踦踧�".split(""),e=0;e!=t[231].length;++e)t[231][e].charCodeAt(0)!==65533&&(i[t[231][e]]=59136+e,o[59136+e]=t[231][e]);for(t[232]="����������������������������������������������������������������踔踒踘踓踜踗踚輬輤輘輚輠輣輖輗遳遰遯遧遫鄯鄫鄩鄪鄲鄦鄮醅醆醊醁醂醄醀鋐鋃鋄鋀鋙銶鋏鋱鋟鋘鋩鋗鋝鋌鋯鋂鋨鋊鋈鋎鋦鋍鋕鋉鋠鋞鋧鋑鋓����������������������������������銵鋡鋆銴镼閬閫閮閰隤隢雓霅霈霂靚鞊鞎鞈韐韏頞頝頦頩頨頠頛頧颲餈飺餑餔餖餗餕駜駍駏駓駔駎駉駖駘駋駗駌骳髬髫髳髲髱魆魃魧魴魱魦魶魵魰魨魤魬鳼鳺鳽鳿鳷鴇鴀鳹鳻鴈鴅鴄麃黓鼏鼐儜儓儗儚儑凞匴叡噰噠噮�".split(""),e=0;e!=t[232].length;++e)t[232][e].charCodeAt(0)!==65533&&(i[t[232][e]]=59392+e,o[59392+e]=t[232][e]);for(t[233]="����������������������������������������������������������������噳噦噣噭噲噞噷圜圛壈墽壉墿墺壂墼壆嬗嬙嬛嬡嬔嬓嬐嬖嬨嬚嬠嬞寯嶬嶱嶩嶧嶵嶰嶮嶪嶨嶲嶭嶯嶴幧幨幦幯廩廧廦廨廥彋徼憝憨憖懅憴懆懁懌憺����������������������������������憿憸憌擗擖擐擏擉撽撉擃擛擳擙攳敿敼斢曈暾曀曊曋曏暽暻暺曌朣樴橦橉橧樲橨樾橝橭橶橛橑樨橚樻樿橁橪橤橐橏橔橯橩橠樼橞橖橕橍橎橆歕歔歖殧殪殫毈毇氄氃氆澭濋澣濇澼濎濈潞濄澽澞濊澨瀄澥澮澺澬澪濏澿澸�".split(""),e=0;e!=t[233].length;++e)t[233][e].charCodeAt(0)!==65533&&(i[t[233][e]]=59648+e,o[59648+e]=t[233][e]);for(t[234]="����������������������������������������������������������������澢濉澫濍澯澲澰燅燂熿熸燖燀燁燋燔燊燇燏熽燘熼燆燚燛犝犞獩獦獧獬獥獫獪瑿璚璠璔璒璕璡甋疀瘯瘭瘱瘽瘳瘼瘵瘲瘰皻盦瞚瞝瞡瞜瞛瞢瞣瞕瞙����������������������������������瞗磝磩磥磪磞磣磛磡磢磭磟磠禤穄穈穇窶窸窵窱窷篞篣篧篝篕篥篚篨篹篔篪篢篜篫篘篟糒糔糗糐糑縒縡縗縌縟縠縓縎縜縕縚縢縋縏縖縍縔縥縤罃罻罼罺羱翯耪耩聬膱膦膮膹膵膫膰膬膴膲膷膧臲艕艖艗蕖蕅蕫蕍蕓蕡蕘�".split(""),e=0;e!=t[234].length;++e)t[234][e].charCodeAt(0)!==65533&&(i[t[234][e]]=59904+e,o[59904+e]=t[234][e]);for(t[235]="����������������������������������������������������������������蕀蕆蕤蕁蕢蕄蕑蕇蕣蔾蕛蕱蕎蕮蕵蕕蕧蕠薌蕦蕝蕔蕥蕬虣虥虤螛螏螗螓螒螈螁螖螘蝹螇螣螅螐螑螝螄螔螜螚螉褞褦褰褭褮褧褱褢褩褣褯褬褟觱諠����������������������������������諢諲諴諵諝謔諤諟諰諈諞諡諨諿諯諻貑貒貐賵賮賱賰賳赬赮趥趧踳踾踸蹀蹅踶踼踽蹁踰踿躽輶輮輵輲輹輷輴遶遹遻邆郺鄳鄵鄶醓醐醑醍醏錧錞錈錟錆錏鍺錸錼錛錣錒錁鍆錭錎錍鋋錝鋺錥錓鋹鋷錴錂錤鋿錩錹錵錪錔錌�".split(""),e=0;e!=t[235].length;++e)t[235][e].charCodeAt(0)!==65533&&(i[t[235][e]]=60160+e,o[60160+e]=t[235][e]);for(t[236]="����������������������������������������������������������������錋鋾錉錀鋻錖閼闍閾閹閺閶閿閵閽隩雔霋霒霐鞙鞗鞔韰韸頵頯頲餤餟餧餩馞駮駬駥駤駰駣駪駩駧骹骿骴骻髶髺髹髷鬳鮀鮅鮇魼魾魻鮂鮓鮒鮐魺鮕����������������������������������魽鮈鴥鴗鴠鴞鴔鴩鴝鴘鴢鴐鴙鴟麈麆麇麮麭黕黖黺鼒鼽儦儥儢儤儠儩勴嚓嚌嚍嚆嚄嚃噾嚂噿嚁壖壔壏壒嬭嬥嬲嬣嬬嬧嬦嬯嬮孻寱寲嶷幬幪徾徻懃憵憼懧懠懥懤懨懞擯擩擣擫擤擨斁斀斶旚曒檍檖檁檥檉檟檛檡檞檇檓檎�".split(""),e=0;e!=t[236].length;++e)t[236][e].charCodeAt(0)!==65533&&(i[t[236][e]]=60416+e,o[60416+e]=t[236][e]);for(t[237]="����������������������������������������������������������������檕檃檨檤檑橿檦檚檅檌檒歛殭氉濌澩濴濔濣濜濭濧濦濞濲濝濢濨燡燱燨燲燤燰燢獳獮獯璗璲璫璐璪璭璱璥璯甐甑甒甏疄癃癈癉癇皤盩瞵瞫瞲瞷瞶����������������������������������瞴瞱瞨矰磳磽礂磻磼磲礅磹磾礄禫禨穜穛穖穘穔穚窾竀竁簅簏篲簀篿篻簎篴簋篳簂簉簃簁篸篽簆篰篱簐簊糨縭縼繂縳顈縸縪繉繀繇縩繌縰縻縶繄縺罅罿罾罽翴翲耬膻臄臌臊臅臇膼臩艛艚艜薃薀薏薧薕薠薋薣蕻薤薚薞�".split(""),e=0;e!=t[237].length;++e)t[237][e].charCodeAt(0)!==65533&&(i[t[237][e]]=60672+e,o[60672+e]=t[237][e]);for(t[238]="����������������������������������������������������������������蕷蕼薉薡蕺蕸蕗薎薖薆薍薙薝薁薢薂薈薅蕹蕶薘薐薟虨螾螪螭蟅螰螬螹螵螼螮蟉蟃蟂蟌螷螯蟄蟊螴螶螿螸螽蟞螲褵褳褼褾襁襒褷襂覭覯覮觲觳謞����������������������������������謘謖謑謅謋謢謏謒謕謇謍謈謆謜謓謚豏豰豲豱豯貕貔賹赯蹎蹍蹓蹐蹌蹇轃轀邅遾鄸醚醢醛醙醟醡醝醠鎡鎃鎯鍤鍖鍇鍼鍘鍜鍶鍉鍐鍑鍠鍭鎏鍌鍪鍹鍗鍕鍒鍏鍱鍷鍻鍡鍞鍣鍧鎀鍎鍙闇闀闉闃闅閷隮隰隬霠霟霘霝霙鞚鞡鞜�".split(""),e=0;e!=t[238].length;++e)t[238][e].charCodeAt(0)!==65533&&(i[t[238][e]]=60928+e,o[60928+e]=t[238][e]);for(t[239]="����������������������������������������������������������������鞞鞝韕韔韱顁顄顊顉顅顃餥餫餬餪餳餲餯餭餱餰馘馣馡騂駺駴駷駹駸駶駻駽駾駼騃骾髾髽鬁髼魈鮚鮨鮞鮛鮦鮡鮥鮤鮆鮢鮠鮯鴳鵁鵧鴶鴮鴯鴱鴸鴰����������������������������������鵅鵂鵃鴾鴷鵀鴽翵鴭麊麉麍麰黈黚黻黿鼤鼣鼢齔龠儱儭儮嚘嚜嚗嚚嚝嚙奰嬼屩屪巀幭幮懘懟懭懮懱懪懰懫懖懩擿攄擽擸攁攃擼斔旛曚曛曘櫅檹檽櫡櫆檺檶檷櫇檴檭歞毉氋瀇瀌瀍瀁瀅瀔瀎濿瀀濻瀦濼濷瀊爁燿燹爃燽獶�".split(""),e=0;e!=t[239].length;++e)t[239][e].charCodeAt(0)!==65533&&(i[t[239][e]]=61184+e,o[61184+e]=t[239][e]);for(t[240]="����������������������������������������������������������������璸瓀璵瓁璾璶璻瓂甔甓癜癤癙癐癓癗癚皦皽盬矂瞺磿礌礓礔礉礐礒礑禭禬穟簜簩簙簠簟簭簝簦簨簢簥簰繜繐繖繣繘繢繟繑繠繗繓羵羳翷翸聵臑臒����������������������������������臐艟艞薴藆藀藃藂薳薵薽藇藄薿藋藎藈藅薱薶藒蘤薸薷薾虩蟧蟦蟢蟛蟫蟪蟥蟟蟳蟤蟔蟜蟓蟭蟘蟣螤蟗蟙蠁蟴蟨蟝襓襋襏襌襆襐襑襉謪謧謣謳謰謵譇謯謼謾謱謥謷謦謶謮謤謻謽謺豂豵貙貘貗賾贄贂贀蹜蹢蹠蹗蹖蹞蹥蹧�".split(""),e=0;e!=t[240].length;++e)t[240][e].charCodeAt(0)!==65533&&(i[t[240][e]]=61440+e,o[61440+e]=t[240][e]);for(t[241]="����������������������������������������������������������������蹛蹚蹡蹝蹩蹔轆轇轈轋鄨鄺鄻鄾醨醥醧醯醪鎵鎌鎒鎷鎛鎝鎉鎧鎎鎪鎞鎦鎕鎈鎙鎟鎍鎱鎑鎲鎤鎨鎴鎣鎥闒闓闑隳雗雚巂雟雘雝霣霢霥鞬鞮鞨鞫鞤鞪����������������������������������鞢鞥韗韙韖韘韺顐顑顒颸饁餼餺騏騋騉騍騄騑騊騅騇騆髀髜鬈鬄鬅鬩鬵魊魌魋鯇鯆鯃鮿鯁鮵鮸鯓鮶鯄鮹鮽鵜鵓鵏鵊鵛鵋鵙鵖鵌鵗鵒鵔鵟鵘鵚麎麌黟鼁鼀鼖鼥鼫鼪鼩鼨齌齕儴儵劖勷厴嚫嚭嚦嚧嚪嚬壚壝壛夒嬽嬾嬿巃幰�".split(""),e=0;e!=t[241].length;++e)t[241][e].charCodeAt(0)!==65533&&(i[t[241][e]]=61696+e,o[61696+e]=t[241][e]);for(t[242]="����������������������������������������������������������������徿懻攇攐攍攉攌攎斄旞旝曞櫧櫠櫌櫑櫙櫋櫟櫜櫐櫫櫏櫍櫞歠殰氌瀙瀧瀠瀖瀫瀡瀢瀣瀩瀗瀤瀜瀪爌爊爇爂爅犥犦犤犣犡瓋瓅璷瓃甖癠矉矊矄矱礝礛����������������������������������礡礜礗礞禰穧穨簳簼簹簬簻糬糪繶繵繸繰繷繯繺繲繴繨罋罊羃羆羷翽翾聸臗臕艤艡艣藫藱藭藙藡藨藚藗藬藲藸藘藟藣藜藑藰藦藯藞藢蠀蟺蠃蟶蟷蠉蠌蠋蠆蟼蠈蟿蠊蠂襢襚襛襗襡襜襘襝襙覈覷覶觶譐譈譊譀譓譖譔譋譕�".split(""),e=0;e!=t[242].length;++e)t[242][e].charCodeAt(0)!==65533&&(i[t[242][e]]=61952+e,o[61952+e]=t[242][e]);for(t[243]="����������������������������������������������������������������譑譂譒譗豃豷豶貚贆贇贉趬趪趭趫蹭蹸蹳蹪蹯蹻軂轒轑轏轐轓辴酀鄿醰醭鏞鏇鏏鏂鏚鏐鏹鏬鏌鏙鎩鏦鏊鏔鏮鏣鏕鏄鏎鏀鏒鏧镽闚闛雡霩霫霬霨霦����������������������������������鞳鞷鞶韝韞韟顜顙顝顗颿颽颻颾饈饇饃馦馧騚騕騥騝騤騛騢騠騧騣騞騜騔髂鬋鬊鬎鬌鬷鯪鯫鯠鯞鯤鯦鯢鯰鯔鯗鯬鯜鯙鯥鯕鯡鯚鵷鶁鶊鶄鶈鵱鶀鵸鶆鶋鶌鵽鵫鵴鵵鵰鵩鶅鵳鵻鶂鵯鵹鵿鶇鵨麔麑黀黼鼭齀齁齍齖齗齘匷嚲�".split(""),e=0;e!=t[243].length;++e)t[243][e].charCodeAt(0)!==65533&&(i[t[243][e]]=62208+e,o[62208+e]=t[243][e]);for(t[244]="����������������������������������������������������������������嚵嚳壣孅巆巇廮廯忀忁懹攗攖攕攓旟曨曣曤櫳櫰櫪櫨櫹櫱櫮櫯瀼瀵瀯瀷瀴瀱灂瀸瀿瀺瀹灀瀻瀳灁爓爔犨獽獼璺皫皪皾盭矌矎矏矍矲礥礣礧礨礤礩����������������������������������禲穮穬穭竷籉籈籊籇籅糮繻繾纁纀羺翿聹臛臙舋艨艩蘢藿蘁藾蘛蘀藶蘄蘉蘅蘌藽蠙蠐蠑蠗蠓蠖襣襦覹觷譠譪譝譨譣譥譧譭趮躆躈躄轙轖轗轕轘轚邍酃酁醷醵醲醳鐋鐓鏻鐠鐏鐔鏾鐕鐐鐨鐙鐍鏵鐀鏷鐇鐎鐖鐒鏺鐉鏸鐊鏿�".split(""),e=0;e!=t[244].length;++e)t[244][e].charCodeAt(0)!==65533&&(i[t[244][e]]=62464+e,o[62464+e]=t[244][e]);for(t[245]="����������������������������������������������������������������鏼鐌鏶鐑鐆闞闠闟霮霯鞹鞻韽韾顠顢顣顟飁飂饐饎饙饌饋饓騲騴騱騬騪騶騩騮騸騭髇髊髆鬐鬒鬑鰋鰈鯷鰅鰒鯸鱀鰇鰎鰆鰗鰔鰉鶟鶙鶤鶝鶒鶘鶐鶛����������������������������������鶠鶔鶜鶪鶗鶡鶚鶢鶨鶞鶣鶿鶩鶖鶦鶧麙麛麚黥黤黧黦鼰鼮齛齠齞齝齙龑儺儹劘劗囃嚽嚾孈孇巋巏廱懽攛欂櫼欃櫸欀灃灄灊灈灉灅灆爝爚爙獾甗癪矐礭礱礯籔籓糲纊纇纈纋纆纍罍羻耰臝蘘蘪蘦蘟蘣蘜蘙蘧蘮蘡蘠蘩蘞蘥�".split(""),e=0;e!=t[245].length;++e)t[245][e].charCodeAt(0)!==65533&&(i[t[245][e]]=62720+e,o[62720+e]=t[245][e]);for(t[246]="����������������������������������������������������������������蠩蠝蠛蠠蠤蠜蠫衊襭襩襮襫觺譹譸譅譺譻贐贔趯躎躌轞轛轝酆酄酅醹鐿鐻鐶鐩鐽鐼鐰鐹鐪鐷鐬鑀鐱闥闤闣霵霺鞿韡顤飉飆飀饘饖騹騽驆驄驂驁騺����������������������������������騿髍鬕鬗鬘鬖鬺魒鰫鰝鰜鰬鰣鰨鰩鰤鰡鶷鶶鶼鷁鷇鷊鷏鶾鷅鷃鶻鶵鷎鶹鶺鶬鷈鶱鶭鷌鶳鷍鶲鹺麜黫黮黭鼛鼘鼚鼱齎齥齤龒亹囆囅囋奱孋孌巕巑廲攡攠攦攢欋欈欉氍灕灖灗灒爞爟犩獿瓘瓕瓙瓗癭皭礵禴穰穱籗籜籙籛籚�".split(""),e=0;e!=t[246].length;++e)t[246][e].charCodeAt(0)!==65533&&(i[t[246][e]]=62976+e,o[62976+e]=t[246][e]);for(t[247]="����������������������������������������������������������������糴糱纑罏羇臞艫蘴蘵蘳蘬蘲蘶蠬蠨蠦蠪蠥襱覿覾觻譾讄讂讆讅譿贕躕躔躚躒躐躖躗轠轢酇鑌鑐鑊鑋鑏鑇鑅鑈鑉鑆霿韣顪顩飋饔饛驎驓驔驌驏驈驊����������������������������������驉驒驐髐鬙鬫鬻魖魕鱆鱈鰿鱄鰹鰳鱁鰼鰷鰴鰲鰽鰶鷛鷒鷞鷚鷋鷐鷜鷑鷟鷩鷙鷘鷖鷵鷕鷝麶黰鼵鼳鼲齂齫龕龢儽劙壨壧奲孍巘蠯彏戁戃戄攩攥斖曫欑欒欏毊灛灚爢玂玁玃癰矔籧籦纕艬蘺虀蘹蘼蘱蘻蘾蠰蠲蠮蠳襶襴襳觾�".split(""),e=0;e!=t[247].length;++e)t[247][e].charCodeAt(0)!==65533&&(i[t[247][e]]=63232+e,o[63232+e]=t[247][e]);for(t[248]="����������������������������������������������������������������讌讎讋讈豅贙躘轤轣醼鑢鑕鑝鑗鑞韄韅頀驖驙鬞鬟鬠鱒鱘鱐鱊鱍鱋鱕鱙鱌鱎鷻鷷鷯鷣鷫鷸鷤鷶鷡鷮鷦鷲鷰鷢鷬鷴鷳鷨鷭黂黐黲黳鼆鼜鼸鼷鼶齃齏����������������������������������齱齰齮齯囓囍孎屭攭曭曮欓灟灡灝灠爣瓛瓥矕礸禷禶籪纗羉艭虃蠸蠷蠵衋讔讕躞躟躠躝醾醽釂鑫鑨鑩雥靆靃靇韇韥驞髕魙鱣鱧鱦鱢鱞鱠鸂鷾鸇鸃鸆鸅鸀鸁鸉鷿鷽鸄麠鼞齆齴齵齶囔攮斸欘欙欗欚灢爦犪矘矙礹籩籫糶纚�".split(""),e=0;e!=t[248].length;++e)t[248][e].charCodeAt(0)!==65533&&(i[t[248][e]]=63488+e,o[63488+e]=t[248][e]);for(t[249]="����������������������������������������������������������������纘纛纙臠臡虆虇虈襹襺襼襻觿讘讙躥躤躣鑮鑭鑯鑱鑳靉顲饟鱨鱮鱭鸋鸍鸐鸏鸒鸑麡黵鼉齇齸齻齺齹圞灦籯蠼趲躦釃鑴鑸鑶鑵驠鱴鱳鱱鱵鸔鸓黶鼊����������������������������������龤灨灥糷虪蠾蠽蠿讞貜躩軉靋顳顴飌饡馫驤驦驧鬤鸕鸗齈戇欞爧虌躨钂钀钁驩驨鬮鸙爩虋讟钃鱹麷癵驫鱺鸝灩灪麤齾齉龘碁銹裏墻恒粧嫺╔╦╗╠╬╣╚╩╝╒╤╕╞╪╡╘╧╛╓╥╖╟╫╢╙╨╜║═╭╮╰╯▓�".split(""),e=0;e!=t[249].length;++e)t[249][e].charCodeAt(0)!==65533&&(i[t[249][e]]=63744+e,o[63744+e]=t[249][e]);return{enc:i,dec:o}}(),r[1250]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź ˇ˘Ł¤Ą¦§¨©Ş«¬®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[1251]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[1252]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[1253]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›���� ΅Ά£¤¥¦§¨©�«¬®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[1254]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[1255]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹ�ֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת���`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[1256]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œں ،¢£¤¥¦§¨©ھ«¬®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûüے`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[1257]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛� �¢£¤�¦§Ø©Ŗ«¬®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[1258]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[1e4]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[10006]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[10007]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[10008]=function(){var o=[],i={},t=[],e;for(t[0]=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~���������������������������������������������������������������������������������������`.split(""),e=0;e!=t[0].length;++e)t[0][e].charCodeAt(0)!==65533&&(i[t[0][e]]=0+e,o[0+e]=t[0][e]);for(t[161]="����������������������������������������������������������������������������������������������������������������������������������������������������������������� 、。・ˉˇ¨〃々―~�…‘’“”〔〕〈〉《》「」『』〖〗【】±×÷∶∧∨∑∏∪∩∈∷√⊥∥∠⌒⊙∫∮≡≌≈∽∝≠≮≯≤≥∞∵∴♂♀°′″℃$¤¢£‰§№☆★○●◎◇◆□■△▲※→←↑↓〓�".split(""),e=0;e!=t[161].length;++e)t[161][e].charCodeAt(0)!==65533&&(i[t[161][e]]=41216+e,o[41216+e]=t[161][e]);for(t[162]="���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������⒈⒉⒊⒋⒌⒍⒎⒏⒐⒑⒒⒓⒔⒕⒖⒗⒘⒙⒚⒛⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽⑾⑿⒀⒁⒂⒃⒄⒅⒆⒇①②③④⑤⑥⑦⑧⑨⑩��㈠㈡㈢㈣㈤㈥㈦㈧㈨㈩��ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ���".split(""),e=0;e!=t[162].length;++e)t[162][e].charCodeAt(0)!==65533&&(i[t[162][e]]=41472+e,o[41472+e]=t[162][e]);for(t[163]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������!"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|} ̄�".split(""),e=0;e!=t[163].length;++e)t[163][e].charCodeAt(0)!==65533&&(i[t[163][e]]=41728+e,o[41728+e]=t[163][e]);for(t[164]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをん������������".split(""),e=0;e!=t[164].length;++e)t[164][e].charCodeAt(0)!==65533&&(i[t[164][e]]=41984+e,o[41984+e]=t[164][e]);for(t[165]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ���������".split(""),e=0;e!=t[165].length;++e)t[165][e].charCodeAt(0)!==65533&&(i[t[165][e]]=42240+e,o[42240+e]=t[165][e]);for(t[166]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ��������αβγδεζηθικλμνξοπρστυφχψω���������������������������������������".split(""),e=0;e!=t[166].length;++e)t[166][e].charCodeAt(0)!==65533&&(i[t[166][e]]=42496+e,o[42496+e]=t[166][e]);for(t[167]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ���������������абвгдеёжзийклмнопрстуфхцчшщъыьэюя��������������".split(""),e=0;e!=t[167].length;++e)t[167][e].charCodeAt(0)!==65533&&(i[t[167][e]]=42752+e,o[42752+e]=t[167][e]);for(t[168]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������āáǎàēéěèīíǐìōóǒòūúǔùǖǘǚǜüê����������ㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦㄧㄨㄩ����������������������".split(""),e=0;e!=t[168].length;++e)t[168][e].charCodeAt(0)!==65533&&(i[t[168][e]]=43008+e,o[43008+e]=t[168][e]);for(t[169]="��������������������������������������������������������������������������������������������������������������������������������������������������������������������─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋����������������".split(""),e=0;e!=t[169].length;++e)t[169][e].charCodeAt(0)!==65533&&(i[t[169][e]]=43264+e,o[43264+e]=t[169][e]);for(t[176]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������啊阿埃挨哎唉哀皑癌蔼矮艾碍爱隘鞍氨安俺按暗岸胺案肮昂盎凹敖熬翱袄傲奥懊澳芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸白柏百摆佰败拜稗斑班搬扳般颁板版扮拌伴瓣半办绊邦帮梆榜膀绑棒磅蚌镑傍谤苞胞包褒剥�".split(""),e=0;e!=t[176].length;++e)t[176][e].charCodeAt(0)!==65533&&(i[t[176][e]]=45056+e,o[45056+e]=t[176][e]);for(t[177]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������薄雹保堡饱宝抱报暴豹鲍爆杯碑悲卑北辈背贝钡倍狈备惫焙被奔苯本笨崩绷甭泵蹦迸逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛鞭边编贬扁便变卞辨辩辫遍标彪膘表鳖憋别瘪彬斌濒滨宾摈兵冰柄丙秉饼炳�".split(""),e=0;e!=t[177].length;++e)t[177][e].charCodeAt(0)!==65533&&(i[t[177][e]]=45312+e,o[45312+e]=t[177][e]);for(t[178]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������病并玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳捕卜哺补埠不布步簿部怖擦猜裁材才财睬踩采彩菜蔡餐参蚕残惭惨灿苍舱仓沧藏操糙槽曹草厕策侧册测层蹭插叉茬茶查碴搽察岔差诧拆柴豺搀掺蝉馋谗缠铲产阐颤昌猖�".split(""),e=0;e!=t[178].length;++e)t[178][e].charCodeAt(0)!==65533&&(i[t[178][e]]=45568+e,o[45568+e]=t[178][e]);for(t[179]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������场尝常长偿肠厂敞畅唱倡超抄钞朝嘲潮巢吵炒车扯撤掣彻澈郴臣辰尘晨忱沉陈趁衬撑称城橙成呈乘程惩澄诚承逞骋秤吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽充冲虫崇宠抽酬畴踌稠愁筹仇绸瞅丑臭初出橱厨躇锄雏滁除楚�".split(""),e=0;e!=t[179].length;++e)t[179][e].charCodeAt(0)!==65533&&(i[t[179][e]]=45824+e,o[45824+e]=t[179][e]);for(t[180]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������础储矗搐触处揣川穿椽传船喘串疮窗幢床闯创吹炊捶锤垂春椿醇唇淳纯蠢戳绰疵茨磁雌辞慈瓷词此刺赐次聪葱囱匆从丛凑粗醋簇促蹿篡窜摧崔催脆瘁粹淬翠村存寸磋撮搓措挫错搭达答瘩打大呆歹傣戴带殆代贷袋待逮�".split(""),e=0;e!=t[180].length;++e)t[180][e].charCodeAt(0)!==65533&&(i[t[180][e]]=46080+e,o[46080+e]=t[180][e]);for(t[181]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������怠耽担丹单郸掸胆旦氮但惮淡诞弹蛋当挡党荡档刀捣蹈倒岛祷导到稻悼道盗德得的蹬灯登等瞪凳邓堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔颠掂滇碘点典靛垫电佃甸店惦奠淀殿碉叼雕凋刁掉吊钓调跌爹碟蝶迭谍叠�".split(""),e=0;e!=t[181].length;++e)t[181][e].charCodeAt(0)!==65533&&(i[t[181][e]]=46336+e,o[46336+e]=t[181][e]);for(t[182]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������丁盯叮钉顶鼎锭定订丢东冬董懂动栋侗恫冻洞兜抖斗陡豆逗痘都督毒犊独读堵睹赌杜镀肚度渡妒端短锻段断缎堆兑队对墩吨蹲敦顿囤钝盾遁掇哆多夺垛躲朵跺舵剁惰堕蛾峨鹅俄额讹娥恶厄扼遏鄂饿恩而儿耳尔饵洱二�".split(""),e=0;e!=t[182].length;++e)t[182][e].charCodeAt(0)!==65533&&(i[t[182][e]]=46592+e,o[46592+e]=t[182][e]);for(t[183]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������贰发罚筏伐乏阀法珐藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛坊芳方肪房防妨仿访纺放菲非啡飞肥匪诽吠肺废沸费芬酚吩氛分纷坟焚汾粉奋份忿愤粪丰封枫蜂峰锋风疯烽逢冯缝讽奉凤佛否夫敷肤孵扶拂辐幅氟符伏俘服�".split(""),e=0;e!=t[183].length;++e)t[183][e].charCodeAt(0)!==65533&&(i[t[183][e]]=46848+e,o[46848+e]=t[183][e]);for(t[184]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐噶嘎该改概钙盖溉干甘杆柑竿肝赶感秆敢赣冈刚钢缸肛纲岗港杠篙皋高膏羔糕搞镐稿告哥歌搁戈鸽胳疙割革葛格蛤阁隔铬个各给根跟耕更庚羹�".split(""),e=0;e!=t[184].length;++e)t[184][e].charCodeAt(0)!==65533&&(i[t[184][e]]=47104+e,o[47104+e]=t[184][e]);for(t[185]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������埂耿梗工攻功恭龚供躬公宫弓巩汞拱贡共钩勾沟苟狗垢构购够辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇刮瓜剐寡挂褂乖拐怪棺关官冠观管馆罐惯灌贯光广逛瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽辊滚棍锅郭国果裹过哈�".split(""),e=0;e!=t[185].length;++e)t[185][e].charCodeAt(0)!==65533&&(i[t[185][e]]=47360+e,o[47360+e]=t[185][e]);for(t[186]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������骸孩海氦亥害骇酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉夯杭航壕嚎豪毫郝好耗号浩呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺嘿黑痕很狠恨哼亨横衡恒轰哄烘虹鸿洪宏弘红喉侯猴吼厚候后呼乎忽瑚壶葫胡蝴狐糊湖�".split(""),e=0;e!=t[186].length;++e)t[186][e].charCodeAt(0)!==65533&&(i[t[186][e]]=47616+e,o[47616+e]=t[186][e]);for(t[187]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������弧虎唬护互沪户花哗华猾滑画划化话槐徊怀淮坏欢环桓还缓换患唤痪豢焕涣宦幻荒慌黄磺蝗簧皇凰惶煌晃幌恍谎灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘荤昏婚魂浑混豁活伙火获或惑霍货祸击圾基机畸稽积箕�".split(""),e=0;e!=t[187].length;++e)t[187][e].charCodeAt(0)!==65533&&(i[t[187][e]]=47872+e,o[47872+e]=t[187][e]);for(t[188]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件�".split(""),e=0;e!=t[188].length;++e)t[188][e].charCodeAt(0)!==65533&&(i[t[188][e]]=48128+e,o[48128+e]=t[188][e]);for(t[189]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������健舰剑饯渐溅涧建僵姜将浆江疆蒋桨奖讲匠酱降蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸�".split(""),e=0;e!=t[189].length;++e)t[189][e].charCodeAt(0)!==65533&&(i[t[189][e]]=48384+e,o[48384+e]=t[189][e]);for(t[190]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������尽劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净炯窘揪究纠玖韭久灸九酒厩救旧臼舅咎就疚鞠拘狙疽居驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧捐鹃娟倦眷卷绢撅攫抉掘倔爵觉决诀绝均菌钧军君峻�".split(""),e=0;e!=t[190].length;++e)t[190][e].charCodeAt(0)!==65533&&(i[t[190][e]]=48640+e,o[48640+e]=t[190][e]);for(t[191]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������俊竣浚郡骏喀咖卡咯开揩楷凯慨刊堪勘坎砍看康慷糠扛抗亢炕考拷烤靠坷苛柯棵磕颗科壳咳可渴克刻客课肯啃垦恳坑吭空恐孔控抠口扣寇枯哭窟苦酷库裤夸垮挎跨胯块筷侩快宽款匡筐狂框矿眶旷况亏盔岿窥葵奎魁傀�".split(""),e=0;e!=t[191].length;++e)t[191][e].charCodeAt(0)!==65533&&(i[t[191][e]]=48896+e,o[48896+e]=t[191][e]);for(t[192]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������馈愧溃坤昆捆困括扩廓阔垃拉喇蜡腊辣啦莱来赖蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥琅榔狼廊郎朗浪捞劳牢老佬姥酪烙涝勒乐雷镭蕾磊累儡垒擂肋类泪棱楞冷厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐�".split(""),e=0;e!=t[192].length;++e)t[192][e].charCodeAt(0)!==65533&&(i[t[192][e]]=49152+e,o[49152+e]=t[192][e]);for(t[193]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������痢立粒沥隶力璃哩俩联莲连镰廉怜涟帘敛脸链恋炼练粮凉梁粱良两辆量晾亮谅撩聊僚疗燎寥辽潦了撂镣廖料列裂烈劣猎琳林磷霖临邻鳞淋凛赁吝拎玲菱零龄铃伶羚凌灵陵岭领另令溜琉榴硫馏留刘瘤流柳六龙聋咙笼窿�".split(""),e=0;e!=t[193].length;++e)t[193][e].charCodeAt(0)!==65533&&(i[t[193][e]]=49408+e,o[49408+e]=t[193][e]);for(t[194]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������隆垄拢陇楼娄搂篓漏陋芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮驴吕铝侣旅履屡缕虑氯律率滤绿峦挛孪滦卵乱掠略抡轮伦仑沦纶论萝螺罗逻锣箩骡裸落洛骆络妈麻玛码蚂马骂嘛吗埋买麦卖迈脉瞒馒蛮满蔓曼慢漫�".split(""),e=0;e!=t[194].length;++e)t[194][e].charCodeAt(0)!==65533&&(i[t[194][e]]=49664+e,o[49664+e]=t[194][e]);for(t[195]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������谩芒茫盲氓忙莽猫茅锚毛矛铆卯茂冒帽貌贸么玫枚梅酶霉煤没眉媒镁每美昧寐妹媚门闷们萌蒙檬盟锰猛梦孟眯醚靡糜迷谜弥米秘觅泌蜜密幂棉眠绵冕免勉娩缅面苗描瞄藐秒渺庙妙蔑灭民抿皿敏悯闽明螟鸣铭名命谬摸�".split(""),e=0;e!=t[195].length;++e)t[195][e].charCodeAt(0)!==65533&&(i[t[195][e]]=49920+e,o[49920+e]=t[195][e]);for(t[196]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谋牟某拇牡亩姆母墓暮幕募慕木目睦牧穆拿哪呐钠那娜纳氖乃奶耐奈南男难囊挠脑恼闹淖呢馁内嫩能妮霓倪泥尼拟你匿腻逆溺蔫拈年碾撵捻念娘酿鸟尿捏聂孽啮镊镍涅您柠狞凝宁�".split(""),e=0;e!=t[196].length;++e)t[196][e].charCodeAt(0)!==65533&&(i[t[196][e]]=50176+e,o[50176+e]=t[196][e]);for(t[197]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������拧泞牛扭钮纽脓浓农弄奴努怒女暖虐疟挪懦糯诺哦欧鸥殴藕呕偶沤啪趴爬帕怕琶拍排牌徘湃派攀潘盘磐盼畔判叛乓庞旁耪胖抛咆刨炮袍跑泡呸胚培裴赔陪配佩沛喷盆砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯砒霹批披劈琵毗�".split(""),e=0;e!=t[197].length;++e)t[197][e].charCodeAt(0)!==65533&&(i[t[197][e]]=50432+e,o[50432+e]=t[197][e]);for(t[198]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������啤脾疲皮匹痞僻屁譬篇偏片骗飘漂瓢票撇瞥拼频贫品聘乒坪苹萍平凭瓶评屏坡泼颇婆破魄迫粕剖扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫掐�".split(""),e=0;e!=t[198].length;++e)t[198][e].charCodeAt(0)!==65533&&(i[t[198][e]]=50688+e,o[50688+e]=t[198][e]);for(t[199]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������恰洽牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉枪呛腔羌墙蔷强抢橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍切茄且怯窃钦侵亲秦琴勤芹擒禽寝沁青轻氢倾卿清擎晴氰情顷请庆琼穷秋丘邱球求囚酋泅趋区蛆曲躯屈驱渠�".split(""),e=0;e!=t[199].length;++e)t[199][e].charCodeAt(0)!==65533&&(i[t[199][e]]=50944+e,o[50944+e]=t[199][e]);for(t[200]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������取娶龋趣去圈颧权醛泉全痊拳犬券劝缺炔瘸却鹊榷确雀裙群然燃冉染瓤壤攘嚷让饶扰绕惹热壬仁人忍韧任认刃妊纫扔仍日戎茸蓉荣融熔溶容绒冗揉柔肉茹蠕儒孺如辱乳汝入褥软阮蕊瑞锐闰润若弱撒洒萨腮鳃塞赛三叁�".split(""),e=0;e!=t[200].length;++e)t[200][e].charCodeAt(0)!==65533&&(i[t[200][e]]=51200+e,o[51200+e]=t[200][e]);for(t[201]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������伞散桑嗓丧搔骚扫嫂瑟色涩森僧莎砂杀刹沙纱傻啥煞筛晒珊苫杉山删煽衫闪陕擅赡膳善汕扇缮墒伤商赏晌上尚裳梢捎稍烧芍勺韶少哨邵绍奢赊蛇舌舍赦摄射慑涉社设砷申呻伸身深娠绅神沈审婶甚肾慎渗声生甥牲升绳�".split(""),e=0;e!=t[201].length;++e)t[201][e].charCodeAt(0)!==65533&&(i[t[201][e]]=51456+e,o[51456+e]=t[201][e]);for(t[202]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������省盛剩胜圣师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试收手首守寿授售受瘦兽蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱�".split(""),e=0;e!=t[202].length;++e)t[202][e].charCodeAt(0)!==65533&&(i[t[202][e]]=51712+e,o[51712+e]=t[202][e]);for(t[203]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������恕刷耍摔衰甩帅栓拴霜双爽谁水睡税吮瞬顺舜说硕朔烁斯撕嘶思私司丝死肆寺嗣四伺似饲巳松耸怂颂送宋讼诵搜艘擞嗽苏酥俗素速粟僳塑溯宿诉肃酸蒜算虽隋随绥髓碎岁穗遂隧祟孙损笋蓑梭唆缩琐索锁所塌他它她塔�".split(""),e=0;e!=t[203].length;++e)t[203][e].charCodeAt(0)!==65533&&(i[t[203][e]]=51968+e,o[51968+e]=t[203][e]);for(t[204]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������獭挞蹋踏胎苔抬台泰酞太态汰坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭汤塘搪堂棠膛唐糖倘躺淌趟烫掏涛滔绦萄桃逃淘陶讨套特藤腾疼誊梯剔踢锑提题蹄啼体替嚏惕涕剃屉天添填田甜恬舔腆挑条迢眺跳贴铁帖厅听烃�".split(""),e=0;e!=t[204].length;++e)t[204][e].charCodeAt(0)!==65533&&(i[t[204][e]]=52224+e,o[52224+e]=t[204][e]);for(t[205]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������汀廷停亭庭挺艇通桐酮瞳同铜彤童桶捅筒统痛偷投头透凸秃突图徒途涂屠土吐兔湍团推颓腿蜕褪退吞屯臀拖托脱鸵陀驮驼椭妥拓唾挖哇蛙洼娃瓦袜歪外豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕汪王亡枉网往旺望忘妄威�".split(""),e=0;e!=t[205].length;++e)t[205][e].charCodeAt(0)!==65533&&(i[t[205][e]]=52480+e,o[52480+e]=t[205][e]);for(t[206]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫瘟温蚊文闻纹吻稳紊问嗡翁瓮挝蜗涡窝我斡卧握沃巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误昔熙析西硒矽晰嘻吸锡牺�".split(""),e=0;e!=t[206].length;++e)t[206][e].charCodeAt(0)!==65533&&(i[t[206][e]]=52736+e,o[52736+e]=t[206][e]);for(t[207]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细瞎虾匣霞辖暇峡侠狭下厦夏吓掀锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象萧硝霄削哮嚣销消宵淆晓�".split(""),e=0;e!=t[207].length;++e)t[207][e].charCodeAt(0)!==65533&&(i[t[207][e]]=52992+e,o[52992+e]=t[207][e]);for(t[208]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������小孝校肖啸笑效楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑薪芯锌欣辛新忻心信衅星腥猩惺兴刑型形邢行醒幸杏性姓兄凶胸匈汹雄熊休修羞朽嗅锈秀袖绣墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续轩喧宣悬旋玄�".split(""),e=0;e!=t[208].length;++e)t[208][e].charCodeAt(0)!==65533&&(i[t[208][e]]=53248+e,o[53248+e]=t[208][e]);for(t[209]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������选癣眩绚靴薛学穴雪血勋熏循旬询寻驯巡殉汛训讯逊迅压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾邀腰妖瑶�".split(""),e=0;e!=t[209].length;++e)t[209][e].charCodeAt(0)!==65533&&(i[t[209][e]]=53504+e,o[53504+e]=t[209][e]);for(t[210]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������摇尧遥窑谣姚咬舀药要耀椰噎耶爷野冶也页掖业叶曳腋夜液一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎茵荫因殷音阴姻吟银淫寅饮尹引隐�".split(""),e=0;e!=t[210].length;++e)t[210][e].charCodeAt(0)!==65533&&(i[t[210][e]]=53760+e,o[53760+e]=t[210][e]);for(t[211]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������印英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映哟拥佣臃痈庸雍踊蛹咏泳涌永恿勇用幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉�".split(""),e=0;e!=t[211].length;++e)t[211][e].charCodeAt(0)!==65533&&(i[t[211][e]]=54016+e,o[54016+e]=t[211][e]);for(t[212]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������浴寓裕预豫驭鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院曰约越跃钥岳粤月悦阅耘云郧匀陨允运蕴酝晕韵孕匝砸杂栽哉灾宰载再在咱攒暂赞赃脏葬遭糟凿藻枣早澡蚤躁噪造皂灶燥责择则泽贼怎增憎曾赠扎喳渣札轧�".split(""),e=0;e!=t[212].length;++e)t[212][e].charCodeAt(0)!==65533&&(i[t[212][e]]=54272+e,o[54272+e]=t[212][e]);for(t[213]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������铡闸眨栅榨咋乍炸诈摘斋宅窄债寨瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽樟章彰漳张掌涨杖丈帐账仗胀瘴障招昭找沼赵照罩兆肇召遮折哲蛰辙者锗蔗这浙珍斟真甄砧臻贞针侦枕疹诊震振镇阵蒸挣睁征狰争怔整拯正政�".split(""),e=0;e!=t[213].length;++e)t[213][e].charCodeAt(0)!==65533&&(i[t[213][e]]=54528+e,o[54528+e]=t[213][e]);for(t[214]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������帧症郑证芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒中盅忠钟衷终种肿重仲众舟周州洲诌粥轴肘帚咒皱宙昼骤珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑�".split(""),e=0;e!=t[214].length;++e)t[214][e].charCodeAt(0)!==65533&&(i[t[214][e]]=54784+e,o[54784+e]=t[214][e]);for(t[215]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������住注祝驻抓爪拽专砖转撰赚篆桩庄装妆撞壮状椎锥追赘坠缀谆准捉拙卓桌琢茁酌啄着灼浊兹咨资姿滋淄孜紫仔籽滓子自渍字鬃棕踪宗综总纵邹走奏揍租足卒族祖诅阻组钻纂嘴醉最罪尊遵昨左佐柞做作坐座������".split(""),e=0;e!=t[215].length;++e)t[215][e].charCodeAt(0)!==65533&&(i[t[215][e]]=55040+e,o[55040+e]=t[215][e]);for(t[216]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������亍丌兀丐廿卅丕亘丞鬲孬噩丨禺丿匕乇夭爻卮氐囟胤馗毓睾鼗丶亟鼐乜乩亓芈孛啬嘏仄厍厝厣厥厮靥赝匚叵匦匮匾赜卦卣刂刈刎刭刳刿剀剌剞剡剜蒯剽劂劁劐劓冂罔亻仃仉仂仨仡仫仞伛仳伢佤仵伥伧伉伫佞佧攸佚佝�".split(""),e=0;e!=t[216].length;++e)t[216][e].charCodeAt(0)!==65533&&(i[t[216][e]]=55296+e,o[55296+e]=t[216][e]);for(t[217]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������佟佗伲伽佶佴侑侉侃侏佾佻侪佼侬侔俦俨俪俅俚俣俜俑俟俸倩偌俳倬倏倮倭俾倜倌倥倨偾偃偕偈偎偬偻傥傧傩傺僖儆僭僬僦僮儇儋仝氽佘佥俎龠汆籴兮巽黉馘冁夔勹匍訇匐凫夙兕亠兖亳衮袤亵脔裒禀嬴蠃羸冫冱冽冼�".split(""),e=0;e!=t[217].length;++e)t[217][e].charCodeAt(0)!==65533&&(i[t[217][e]]=55552+e,o[55552+e]=t[217][e]);for(t[218]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������凇冖冢冥讠讦讧讪讴讵讷诂诃诋诏诎诒诓诔诖诘诙诜诟诠诤诨诩诮诰诳诶诹诼诿谀谂谄谇谌谏谑谒谔谕谖谙谛谘谝谟谠谡谥谧谪谫谮谯谲谳谵谶卩卺阝阢阡阱阪阽阼陂陉陔陟陧陬陲陴隈隍隗隰邗邛邝邙邬邡邴邳邶邺�".split(""),e=0;e!=t[218].length;++e)t[218][e].charCodeAt(0)!==65533&&(i[t[218][e]]=55808+e,o[55808+e]=t[218][e]);for(t[219]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������邸邰郏郅邾郐郄郇郓郦郢郜郗郛郫郯郾鄄鄢鄞鄣鄱鄯鄹酃酆刍奂劢劬劭劾哿勐勖勰叟燮矍廴凵凼鬯厶弁畚巯坌垩垡塾墼壅壑圩圬圪圳圹圮圯坜圻坂坩垅坫垆坼坻坨坭坶坳垭垤垌垲埏垧垴垓垠埕埘埚埙埒垸埴埯埸埤埝�".split(""),e=0;e!=t[219].length;++e)t[219][e].charCodeAt(0)!==65533&&(i[t[219][e]]=56064+e,o[56064+e]=t[219][e]);for(t[220]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������堋堍埽埭堀堞堙塄堠塥塬墁墉墚墀馨鼙懿艹艽艿芏芊芨芄芎芑芗芙芫芸芾芰苈苊苣芘芷芮苋苌苁芩芴芡芪芟苄苎芤苡茉苷苤茏茇苜苴苒苘茌苻苓茑茚茆茔茕苠苕茜荑荛荜茈莒茼茴茱莛荞茯荏荇荃荟荀茗荠茭茺茳荦荥�".split(""),e=0;e!=t[220].length;++e)t[220][e].charCodeAt(0)!==65533&&(i[t[220][e]]=56320+e,o[56320+e]=t[220][e]);for(t[221]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������荨茛荩荬荪荭荮莰荸莳莴莠莪莓莜莅荼莶莩荽莸荻莘莞莨莺莼菁萁菥菘堇萘萋菝菽菖萜萸萑萆菔菟萏萃菸菹菪菅菀萦菰菡葜葑葚葙葳蒇蒈葺蒉葸萼葆葩葶蒌蒎萱葭蓁蓍蓐蓦蒽蓓蓊蒿蒺蓠蒡蒹蒴蒗蓥蓣蔌甍蔸蓰蔹蔟蔺�".split(""),e=0;e!=t[221].length;++e)t[221][e].charCodeAt(0)!==65533&&(i[t[221][e]]=56576+e,o[56576+e]=t[221][e]);for(t[222]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������蕖蔻蓿蓼蕙蕈蕨蕤蕞蕺瞢蕃蕲蕻薤薨薇薏蕹薮薜薅薹薷薰藓藁藜藿蘧蘅蘩蘖蘼廾弈夼奁耷奕奚奘匏尢尥尬尴扌扪抟抻拊拚拗拮挢拶挹捋捃掭揶捱捺掎掴捭掬掊捩掮掼揲揸揠揿揄揞揎摒揆掾摅摁搋搛搠搌搦搡摞撄摭撖�".split(""),e=0;e!=t[222].length;++e)t[222][e].charCodeAt(0)!==65533&&(i[t[222][e]]=56832+e,o[56832+e]=t[222][e]);for(t[223]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������摺撷撸撙撺擀擐擗擤擢攉攥攮弋忒甙弑卟叱叽叩叨叻吒吖吆呋呒呓呔呖呃吡呗呙吣吲咂咔呷呱呤咚咛咄呶呦咝哐咭哂咴哒咧咦哓哔呲咣哕咻咿哌哙哚哜咩咪咤哝哏哞唛哧唠哽唔哳唢唣唏唑唧唪啧喏喵啉啭啁啕唿啐唼�".split(""),e=0;e!=t[223].length;++e)t[223][e].charCodeAt(0)!==65533&&(i[t[223][e]]=57088+e,o[57088+e]=t[223][e]);for(t[224]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������唷啖啵啶啷唳唰啜喋嗒喃喱喹喈喁喟啾嗖喑啻嗟喽喾喔喙嗪嗷嗉嘟嗑嗫嗬嗔嗦嗝嗄嗯嗥嗲嗳嗌嗍嗨嗵嗤辔嘞嘈嘌嘁嘤嘣嗾嘀嘧嘭噘嘹噗嘬噍噢噙噜噌噔嚆噤噱噫噻噼嚅嚓嚯囔囗囝囡囵囫囹囿圄圊圉圜帏帙帔帑帱帻帼�".split(""),e=0;e!=t[224].length;++e)t[224][e].charCodeAt(0)!==65533&&(i[t[224][e]]=57344+e,o[57344+e]=t[224][e]);for(t[225]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������帷幄幔幛幞幡岌屺岍岐岖岈岘岙岑岚岜岵岢岽岬岫岱岣峁岷峄峒峤峋峥崂崃崧崦崮崤崞崆崛嵘崾崴崽嵬嵛嵯嵝嵫嵋嵊嵩嵴嶂嶙嶝豳嶷巅彳彷徂徇徉後徕徙徜徨徭徵徼衢彡犭犰犴犷犸狃狁狎狍狒狨狯狩狲狴狷猁狳猃狺�".split(""),e=0;e!=t[225].length;++e)t[225][e].charCodeAt(0)!==65533&&(i[t[225][e]]=57600+e,o[57600+e]=t[225][e]);for(t[226]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������狻猗猓猡猊猞猝猕猢猹猥猬猸猱獐獍獗獠獬獯獾舛夥飧夤夂饣饧饨饩饪饫饬饴饷饽馀馄馇馊馍馐馑馓馔馕庀庑庋庖庥庠庹庵庾庳赓廒廑廛廨廪膺忄忉忖忏怃忮怄忡忤忾怅怆忪忭忸怙怵怦怛怏怍怩怫怊怿怡恸恹恻恺恂�".split(""),e=0;e!=t[226].length;++e)t[226][e].charCodeAt(0)!==65533&&(i[t[226][e]]=57856+e,o[57856+e]=t[226][e]);for(t[227]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������恪恽悖悚悭悝悃悒悌悛惬悻悱惝惘惆惚悴愠愦愕愣惴愀愎愫慊慵憬憔憧憷懔懵忝隳闩闫闱闳闵闶闼闾阃阄阆阈阊阋阌阍阏阒阕阖阗阙阚丬爿戕氵汔汜汊沣沅沐沔沌汨汩汴汶沆沩泐泔沭泷泸泱泗沲泠泖泺泫泮沱泓泯泾�".split(""),e=0;e!=t[227].length;++e)t[227][e].charCodeAt(0)!==65533&&(i[t[227][e]]=58112+e,o[58112+e]=t[227][e]);for(t[228]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������洹洧洌浃浈洇洄洙洎洫浍洮洵洚浏浒浔洳涑浯涞涠浞涓涔浜浠浼浣渚淇淅淞渎涿淠渑淦淝淙渖涫渌涮渫湮湎湫溲湟溆湓湔渲渥湄滟溱溘滠漭滢溥溧溽溻溷滗溴滏溏滂溟潢潆潇漤漕滹漯漶潋潴漪漉漩澉澍澌潸潲潼潺濑�".split(""),e=0;e!=t[228].length;++e)t[228][e].charCodeAt(0)!==65533&&(i[t[228][e]]=58368+e,o[58368+e]=t[228][e]);for(t[229]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������濉澧澹澶濂濡濮濞濠濯瀚瀣瀛瀹瀵灏灞宀宄宕宓宥宸甯骞搴寤寮褰寰蹇謇辶迓迕迥迮迤迩迦迳迨逅逄逋逦逑逍逖逡逵逶逭逯遄遑遒遐遨遘遢遛暹遴遽邂邈邃邋彐彗彖彘尻咫屐屙孱屣屦羼弪弩弭艴弼鬻屮妁妃妍妩妪妣�".split(""),e=0;e!=t[229].length;++e)t[229][e].charCodeAt(0)!==65533&&(i[t[229][e]]=58624+e,o[58624+e]=t[229][e]);for(t[230]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������妗姊妫妞妤姒妲妯姗妾娅娆姝娈姣姘姹娌娉娲娴娑娣娓婀婧婊婕娼婢婵胬媪媛婷婺媾嫫媲嫒嫔媸嫠嫣嫱嫖嫦嫘嫜嬉嬗嬖嬲嬷孀尕尜孚孥孳孑孓孢驵驷驸驺驿驽骀骁骅骈骊骐骒骓骖骘骛骜骝骟骠骢骣骥骧纟纡纣纥纨纩�".split(""),e=0;e!=t[230].length;++e)t[230][e].charCodeAt(0)!==65533&&(i[t[230][e]]=58880+e,o[58880+e]=t[230][e]);for(t[231]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������纭纰纾绀绁绂绉绋绌绐绔绗绛绠绡绨绫绮绯绱绲缍绶绺绻绾缁缂缃缇缈缋缌缏缑缒缗缙缜缛缟缡缢缣缤缥缦缧缪缫缬缭缯缰缱缲缳缵幺畿巛甾邕玎玑玮玢玟珏珂珑玷玳珀珉珈珥珙顼琊珩珧珞玺珲琏琪瑛琦琥琨琰琮琬�".split(""),e=0;e!=t[231].length;++e)t[231][e].charCodeAt(0)!==65533&&(i[t[231][e]]=59136+e,o[59136+e]=t[231][e]);for(t[232]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������琛琚瑁瑜瑗瑕瑙瑷瑭瑾璜璎璀璁璇璋璞璨璩璐璧瓒璺韪韫韬杌杓杞杈杩枥枇杪杳枘枧杵枨枞枭枋杷杼柰栉柘栊柩枰栌柙枵柚枳柝栀柃枸柢栎柁柽栲栳桠桡桎桢桄桤梃栝桕桦桁桧桀栾桊桉栩梵梏桴桷梓桫棂楮棼椟椠棹�".split(""),e=0;e!=t[232].length;++e)t[232][e].charCodeAt(0)!==65533&&(i[t[232][e]]=59392+e,o[59392+e]=t[232][e]);for(t[233]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������椤棰椋椁楗棣椐楱椹楠楂楝榄楫榀榘楸椴槌榇榈槎榉楦楣楹榛榧榻榫榭槔榱槁槊槟榕槠榍槿樯槭樗樘橥槲橄樾檠橐橛樵檎橹樽樨橘橼檑檐檩檗檫猷獒殁殂殇殄殒殓殍殚殛殡殪轫轭轱轲轳轵轶轸轷轹轺轼轾辁辂辄辇辋�".split(""),e=0;e!=t[233].length;++e)t[233][e].charCodeAt(0)!==65533&&(i[t[233][e]]=59648+e,o[59648+e]=t[233][e]);for(t[234]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������辍辎辏辘辚軎戋戗戛戟戢戡戥戤戬臧瓯瓴瓿甏甑甓攴旮旯旰昊昙杲昃昕昀炅曷昝昴昱昶昵耆晟晔晁晏晖晡晗晷暄暌暧暝暾曛曜曦曩贲贳贶贻贽赀赅赆赈赉赇赍赕赙觇觊觋觌觎觏觐觑牮犟牝牦牯牾牿犄犋犍犏犒挈挲掰�".split(""),e=0;e!=t[234].length;++e)t[234][e].charCodeAt(0)!==65533&&(i[t[234][e]]=59904+e,o[59904+e]=t[234][e]);for(t[235]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������搿擘耄毪毳毽毵毹氅氇氆氍氕氘氙氚氡氩氤氪氲攵敕敫牍牒牖爰虢刖肟肜肓肼朊肽肱肫肭肴肷胧胨胩胪胛胂胄胙胍胗朐胝胫胱胴胭脍脎胲胼朕脒豚脶脞脬脘脲腈腌腓腴腙腚腱腠腩腼腽腭腧塍媵膈膂膑滕膣膪臌朦臊膻�".split(""),e=0;e!=t[235].length;++e)t[235][e].charCodeAt(0)!==65533&&(i[t[235][e]]=60160+e,o[60160+e]=t[235][e]);for(t[236]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������臁膦欤欷欹歃歆歙飑飒飓飕飙飚殳彀毂觳斐齑斓於旆旄旃旌旎旒旖炀炜炖炝炻烀炷炫炱烨烊焐焓焖焯焱煳煜煨煅煲煊煸煺熘熳熵熨熠燠燔燧燹爝爨灬焘煦熹戾戽扃扈扉礻祀祆祉祛祜祓祚祢祗祠祯祧祺禅禊禚禧禳忑忐�".split(""),e=0;e!=t[236].length;++e)t[236][e].charCodeAt(0)!==65533&&(i[t[236][e]]=60416+e,o[60416+e]=t[236][e]);for(t[237]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������怼恝恚恧恁恙恣悫愆愍慝憩憝懋懑戆肀聿沓泶淼矶矸砀砉砗砘砑斫砭砜砝砹砺砻砟砼砥砬砣砩硎硭硖硗砦硐硇硌硪碛碓碚碇碜碡碣碲碹碥磔磙磉磬磲礅磴礓礤礞礴龛黹黻黼盱眄眍盹眇眈眚眢眙眭眦眵眸睐睑睇睃睚睨�".split(""),e=0;e!=t[237].length;++e)t[237][e].charCodeAt(0)!==65533&&(i[t[237][e]]=60672+e,o[60672+e]=t[237][e]);for(t[238]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������睢睥睿瞍睽瞀瞌瞑瞟瞠瞰瞵瞽町畀畎畋畈畛畲畹疃罘罡罟詈罨罴罱罹羁罾盍盥蠲钅钆钇钋钊钌钍钏钐钔钗钕钚钛钜钣钤钫钪钭钬钯钰钲钴钶钷钸钹钺钼钽钿铄铈铉铊铋铌铍铎铐铑铒铕铖铗铙铘铛铞铟铠铢铤铥铧铨铪�".split(""),e=0;e!=t[238].length;++e)t[238][e].charCodeAt(0)!==65533&&(i[t[238][e]]=60928+e,o[60928+e]=t[238][e]);for(t[239]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������铩铫铮铯铳铴铵铷铹铼铽铿锃锂锆锇锉锊锍锎锏锒锓锔锕锖锘锛锝锞锟锢锪锫锩锬锱锲锴锶锷锸锼锾锿镂锵镄镅镆镉镌镎镏镒镓镔镖镗镘镙镛镞镟镝镡镢镤镥镦镧镨镩镪镫镬镯镱镲镳锺矧矬雉秕秭秣秫稆嵇稃稂稞稔�".split(""),e=0;e!=t[239].length;++e)t[239][e].charCodeAt(0)!==65533&&(i[t[239][e]]=61184+e,o[61184+e]=t[239][e]);for(t[240]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������稹稷穑黏馥穰皈皎皓皙皤瓞瓠甬鸠鸢鸨鸩鸪鸫鸬鸲鸱鸶鸸鸷鸹鸺鸾鹁鹂鹄鹆鹇鹈鹉鹋鹌鹎鹑鹕鹗鹚鹛鹜鹞鹣鹦鹧鹨鹩鹪鹫鹬鹱鹭鹳疒疔疖疠疝疬疣疳疴疸痄疱疰痃痂痖痍痣痨痦痤痫痧瘃痱痼痿瘐瘀瘅瘌瘗瘊瘥瘘瘕瘙�".split(""),e=0;e!=t[240].length;++e)t[240][e].charCodeAt(0)!==65533&&(i[t[240][e]]=61440+e,o[61440+e]=t[240][e]);for(t[241]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������瘛瘼瘢瘠癀瘭瘰瘿瘵癃瘾瘳癍癞癔癜癖癫癯翊竦穸穹窀窆窈窕窦窠窬窨窭窳衤衩衲衽衿袂袢裆袷袼裉裢裎裣裥裱褚裼裨裾裰褡褙褓褛褊褴褫褶襁襦襻疋胥皲皴矜耒耔耖耜耠耢耥耦耧耩耨耱耋耵聃聆聍聒聩聱覃顸颀颃�".split(""),e=0;e!=t[241].length;++e)t[241][e].charCodeAt(0)!==65533&&(i[t[241][e]]=61696+e,o[61696+e]=t[241][e]);for(t[242]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������颉颌颍颏颔颚颛颞颟颡颢颥颦虍虔虬虮虿虺虼虻蚨蚍蚋蚬蚝蚧蚣蚪蚓蚩蚶蛄蚵蛎蚰蚺蚱蚯蛉蛏蚴蛩蛱蛲蛭蛳蛐蜓蛞蛴蛟蛘蛑蜃蜇蛸蜈蜊蜍蜉蜣蜻蜞蜥蜮蜚蜾蝈蜴蜱蜩蜷蜿螂蜢蝽蝾蝻蝠蝰蝌蝮螋蝓蝣蝼蝤蝙蝥螓螯螨蟒�".split(""),e=0;e!=t[242].length;++e)t[242][e].charCodeAt(0)!==65533&&(i[t[242][e]]=61952+e,o[61952+e]=t[242][e]);for(t[243]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������蟆螈螅螭螗螃螫蟥螬螵螳蟋蟓螽蟑蟀蟊蟛蟪蟠蟮蠖蠓蟾蠊蠛蠡蠹蠼缶罂罄罅舐竺竽笈笃笄笕笊笫笏筇笸笪笙笮笱笠笥笤笳笾笞筘筚筅筵筌筝筠筮筻筢筲筱箐箦箧箸箬箝箨箅箪箜箢箫箴篑篁篌篝篚篥篦篪簌篾篼簏簖簋�".split(""),e=0;e!=t[243].length;++e)t[243][e].charCodeAt(0)!==65533&&(i[t[243][e]]=62208+e,o[62208+e]=t[243][e]);for(t[244]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������簟簪簦簸籁籀臾舁舂舄臬衄舡舢舣舭舯舨舫舸舻舳舴舾艄艉艋艏艚艟艨衾袅袈裘裟襞羝羟羧羯羰羲籼敉粑粝粜粞粢粲粼粽糁糇糌糍糈糅糗糨艮暨羿翎翕翥翡翦翩翮翳糸絷綦綮繇纛麸麴赳趄趔趑趱赧赭豇豉酊酐酎酏酤�".split(""),e=0;e!=t[244].length;++e)t[244][e].charCodeAt(0)!==65533&&(i[t[244][e]]=62464+e,o[62464+e]=t[244][e]);for(t[245]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������酢酡酰酩酯酽酾酲酴酹醌醅醐醍醑醢醣醪醭醮醯醵醴醺豕鹾趸跫踅蹙蹩趵趿趼趺跄跖跗跚跞跎跏跛跆跬跷跸跣跹跻跤踉跽踔踝踟踬踮踣踯踺蹀踹踵踽踱蹉蹁蹂蹑蹒蹊蹰蹶蹼蹯蹴躅躏躔躐躜躞豸貂貊貅貘貔斛觖觞觚觜�".split(""),e=0;e!=t[245].length;++e)t[245][e].charCodeAt(0)!==65533&&(i[t[245][e]]=62720+e,o[62720+e]=t[245][e]);for(t[246]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������觥觫觯訾謦靓雩雳雯霆霁霈霏霎霪霭霰霾龀龃龅龆龇龈龉龊龌黾鼋鼍隹隼隽雎雒瞿雠銎銮鋈錾鍪鏊鎏鐾鑫鱿鲂鲅鲆鲇鲈稣鲋鲎鲐鲑鲒鲔鲕鲚鲛鲞鲟鲠鲡鲢鲣鲥鲦鲧鲨鲩鲫鲭鲮鲰鲱鲲鲳鲴鲵鲶鲷鲺鲻鲼鲽鳄鳅鳆鳇鳊鳋�".split(""),e=0;e!=t[246].length;++e)t[246][e].charCodeAt(0)!==65533&&(i[t[246][e]]=62976+e,o[62976+e]=t[246][e]);for(t[247]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������鳌鳍鳎鳏鳐鳓鳔鳕鳗鳘鳙鳜鳝鳟鳢靼鞅鞑鞒鞔鞯鞫鞣鞲鞴骱骰骷鹘骶骺骼髁髀髅髂髋髌髑魅魃魇魉魈魍魑飨餍餮饕饔髟髡髦髯髫髻髭髹鬈鬏鬓鬟鬣麽麾縻麂麇麈麋麒鏖麝麟黛黜黝黠黟黢黩黧黥黪黯鼢鼬鼯鼹鼷鼽鼾齄�".split(""),e=0;e!=t[247].length;++e)t[247][e].charCodeAt(0)!==65533&&(i[t[247][e]]=63232+e,o[63232+e]=t[247][e]);return{enc:i,dec:o}}(),r[10029]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[10079]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[10081]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[28591]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),s.exports&&typeof DO_NOT_EXPORT_CODEPAGE>"u"&&(s.exports=r);/*! cputils.js (C) 2013-present SheetJS -- http://sheetjs.com */(function(o,i){if(typeof r>"u")if(typeof cl<"u"){var t=r;s.exports&&typeof DO_NOT_EXPORT_CODEPAGE>"u"?s.exports=i(t):o.cptable=i(t)}else throw new Error("cptable not found");else r=i(r)})(Wb,function(o){var i={1200:"utf16le",1201:"utf16be",12e3:"utf32le",12001:"utf32be",16969:"utf64le",20127:"ascii",65e3:"utf7",65001:"utf8"},t=[874,1250,1251,1252,1253,1254,1255,1256,1e4],e=[932,936,949,950],u=[65001],p={},b={},_={},w={},S=function(Se){return String.fromCharCode(Se)},A=function(Se){return Se.charCodeAt(0)},E=typeof Buffer<"u",M=function(){};if(E){var N=!Buffer.from;if(!N)try{Buffer.from("foo","utf8")}catch{N=!0}M=N?function(At,Se){return Se?new Buffer(At,Se):new Buffer(At)}:Buffer.from.bind(Buffer),Buffer.allocUnsafe||(Buffer.allocUnsafe=function(At){return new Buffer(At)});var q=1024,U=Buffer.allocUnsafe(q),ee=function(Se){for(var Q=Buffer.allocUnsafe(65536),Ce=0;Ce<65536;++Ce)Q[Ce]=0;for(var Te=Object.keys(Se),xe=Te.length,oe=0,pe=Te[oe];oe<xe;++oe)(pe=Te[oe])&&(Q[pe.charCodeAt(0)]=Se[pe]);return Q},ie=function(Se){var Q=ee(o[Se].enc);return function(Te,xe){var oe=Te.length,pe,se=0,nt=0,Ie=0,hr=0;if(typeof Te=="string")for(pe=Buffer.allocUnsafe(oe),se=0;se<oe;++se)pe[se]=Q[Te.charCodeAt(se)];else if(Buffer.isBuffer(Te)){for(pe=Buffer.allocUnsafe(2*oe),nt=0,se=0;se<oe;++se)Ie=Te[se],Ie<128?pe[nt++]=Q[Ie]:Ie<224?(pe[nt++]=Q[((Ie&31)<<6)+(Te[se+1]&63)],++se):Ie<240?(pe[nt++]=Q[((Ie&15)<<12)+((Te[se+1]&63)<<6)+(Te[se+2]&63)],se+=2):(hr=((Ie&7)<<18)+((Te[se+1]&63)<<12)+((Te[se+2]&63)<<6)+(Te[se+3]&63),se+=3,hr<65536?pe[nt++]=Q[hr]:(hr-=65536,pe[nt++]=Q[55296+(hr>>10&1023)],pe[nt++]=Q[56320+(hr&1023)]));pe=pe.slice(0,nt)}else for(pe=Buffer.allocUnsafe(oe),se=0;se<oe;++se)pe[se]=Q[Te[se].charCodeAt(0)];return!xe||xe==="buf"?pe:xe!=="arr"?pe.toString("binary"):[].slice.call(pe)}},j=function(Se){var Q=o[Se].dec,Ce=Buffer.allocUnsafe(131072),Te=0,xe="";for(Te=0;Te<Q.length;++Te)if(xe=Q[Te]){var oe=xe.charCodeAt(0);Ce[2*Te]=oe&255,Ce[2*Te+1]=oe>>8}return function(se){var nt=se.length,Ie=0,hr=0;if(2*nt>q&&(q=2*nt,U=Buffer.allocUnsafe(q)),Buffer.isBuffer(se))for(Ie=0;Ie<nt;Ie++)hr=2*se[Ie],U[2*Ie]=Ce[hr],U[2*Ie+1]=Ce[hr+1];else if(typeof se=="string")for(Ie=0;Ie<nt;Ie++)hr=2*se.charCodeAt(Ie),U[2*Ie]=Ce[hr],U[2*Ie+1]=Ce[hr+1];else for(Ie=0;Ie<nt;Ie++)hr=2*se[Ie],U[2*Ie]=Ce[hr],U[2*Ie+1]=Ce[hr+1];return U.slice(0,2*nt).toString("ucs2")}},H=function(Se){for(var Q=o[Se].enc,Ce=Buffer.allocUnsafe(131072),Te=0;Te<131072;++Te)Ce[Te]=0;for(var xe=Object.keys(Q),oe=0,pe=xe[oe];oe<xe.length;++oe)if(pe=xe[oe]){var se=pe.charCodeAt(0);Ce[2*se]=Q[pe]&255,Ce[2*se+1]=Q[pe]>>8}return function(Ie,hr){var Gr=Ie.length,yt=Buffer.allocUnsafe(2*Gr),xt=0,Ct=0,Ns=0,kr=0,ts=0;if(typeof Ie=="string"){for(xt=kr=0;xt<Gr;++xt)Ct=Ie.charCodeAt(xt)*2,yt[kr++]=Ce[Ct+1]||Ce[Ct],Ce[Ct+1]>0&&(yt[kr++]=Ce[Ct]);yt=yt.slice(0,kr)}else if(Buffer.isBuffer(Ie)){for(xt=kr=0;xt<Gr;++xt)ts=Ie[xt],ts<128?Ct=ts:ts<224?(Ct=((ts&31)<<6)+(Ie[xt+1]&63),++xt):ts<240?(Ct=((ts&15)<<12)+((Ie[xt+1]&63)<<6)+(Ie[xt+2]&63),xt+=2):(Ct=((ts&7)<<18)+((Ie[xt+1]&63)<<12)+((Ie[xt+2]&63)<<6)+(Ie[xt+3]&63),xt+=3),Ct<65536?(Ct*=2,yt[kr++]=Ce[Ct+1]||Ce[Ct],Ce[Ct+1]>0&&(yt[kr++]=Ce[Ct])):(Ns=Ct-65536,Ct=2*(55296+(Ns>>10&1023)),yt[kr++]=Ce[Ct+1]||Ce[Ct],Ce[Ct+1]>0&&(yt[kr++]=Ce[Ct]),Ct=2*(56320+(Ns&1023)),yt[kr++]=Ce[Ct+1]||Ce[Ct],Ce[Ct+1]>0&&(yt[kr++]=Ce[Ct]));yt=yt.slice(0,kr)}else for(xt=kr=0;xt<Gr;xt++)Ct=Ie[xt].charCodeAt(0)*2,yt[kr++]=Ce[Ct+1]||Ce[Ct],Ce[Ct+1]>0&&(yt[kr++]=Ce[Ct]);return!hr||hr==="buf"?yt:hr!=="arr"?yt.toString("binary"):[].slice.call(yt)}},ne=function(Se){var Q=o[Se].dec,Ce=Buffer.allocUnsafe(131072),Te=0,xe,oe=0,pe=0,se=0;for(se=0;se<65536;++se)Ce[2*se]=255,Ce[2*se+1]=253;for(Te=0;Te<Q.length;++Te)(xe=Q[Te])&&(oe=xe.charCodeAt(0),pe=2*Te,Ce[pe]=oe&255,Ce[pe+1]=oe>>8);return function(Ie){var hr=Ie.length,Gr=Buffer.allocUnsafe(2*hr),yt=0,xt=0,Ct=0;if(Buffer.isBuffer(Ie))for(yt=0;yt<hr;yt++)xt=2*Ie[yt],Ce[xt]===255&&Ce[xt+1]===253&&(xt=2*((Ie[yt]<<8)+Ie[yt+1]),++yt),Gr[Ct++]=Ce[xt],Gr[Ct++]=Ce[xt+1];else if(typeof Ie=="string")for(yt=0;yt<hr;yt++)xt=2*Ie.charCodeAt(yt),Ce[xt]===255&&Ce[xt+1]===253&&(xt=2*((Ie.charCodeAt(yt)<<8)+Ie.charCodeAt(yt+1)),++yt),Gr[Ct++]=Ce[xt],Gr[Ct++]=Ce[xt+1];else for(yt=0;yt<hr;yt++)xt=2*Ie[yt],Ce[xt]===255&&Ce[xt+1]===253&&(xt=2*((Ie[yt]<<8)+Ie[yt+1]),++yt),Gr[Ct++]=Ce[xt],Gr[Ct++]=Ce[xt+1];return Gr.slice(0,Ct).toString("ucs2")}};p[65001]=function At(Se){if(typeof Se=="string")return At(Se.split("").map(A));var Q=Se.length,Ce=0,Te=0;4*Q>q&&(q=4*Q,U=Buffer.allocUnsafe(q));var xe=0;Q>=3&&Se[0]==239&&Se[1]==187&&Se[2]==191&&(xe=3);for(var oe=1,pe=0,se=0;xe<Q;xe+=oe)oe=1,se=Se[xe],se<128?Ce=se:se<224?(Ce=(se&31)*64+(Se[xe+1]&63),oe=2):se<240?(Ce=((se&15)<<12)+(Se[xe+1]&63)*64+(Se[xe+2]&63),oe=3):(Ce=(se&7)*262144+((Se[xe+1]&63)<<12)+(Se[xe+2]&63)*64+(Se[xe+3]&63),oe=4),Ce<65536?(U[pe++]=Ce&255,U[pe++]=Ce>>8):(Ce-=65536,Te=55296+(Ce>>10&1023),Ce=56320+(Ce&1023),U[pe++]=Te&255,U[pe++]=Te>>>8,U[pe++]=Ce&255,U[pe++]=Ce>>>8&255);return U.slice(0,pe).toString("ucs2")},b[65001]=function(Se,Q){if(E&&Buffer.isBuffer(Se))return!Q||Q==="buf"?Se:Q!=="arr"?Se.toString("binary"):[].slice.call(Se);var Ce=Se.length,Te=0,xe=0,oe=0,pe=typeof Se=="string";4*Ce>q&&(q=4*Ce,U=Buffer.allocUnsafe(q));for(var se=0;se<Ce;++se)Te=pe?Se.charCodeAt(se):Se[se].charCodeAt(0),Te<=127?U[oe++]=Te:Te<=2047?(U[oe++]=192+(Te>>6),U[oe++]=128+(Te&63)):Te>=55296&&Te<=57343?(Te-=55296,++se,xe=(pe?Se.charCodeAt(se):Se[se].charCodeAt(0))-56320+(Te<<10),U[oe++]=240+(xe>>>18&7),U[oe++]=144+(xe>>>12&63),U[oe++]=128+(xe>>>6&63),U[oe++]=128+(xe&63)):(U[oe++]=224+(Te>>12),U[oe++]=128+(Te>>6&63),U[oe++]=128+(Te&63));return!Q||Q==="buf"?U.slice(0,oe):Q!=="arr"?U.slice(0,oe).toString("binary"):[].slice.call(U,0,oe)}}var W=function(){if(E){if(_[t[0]])return;var Se=0,Q=0;for(Se=0;Se<t.length;++Se)Q=t[Se],o[Q]&&(_[Q]=j(Q),w[Q]=ie(Q));for(Se=0;Se<e.length;++Se)Q=e[Se],o[Q]&&(_[Q]=ne(Q),w[Q]=H(Q));for(Se=0;Se<u.length;++Se)Q=u[Se],p[Q]&&(_[Q]=p[Q]),b[Q]&&(w[Q]=b[Q])}},Ae=function(At,Se){return""},ve=function(Se){delete _[Se],delete w[Se]},it=function(){if(E){if(!_[t[0]])return;t.forEach(ve),e.forEach(ve),u.forEach(ve)}bt=Ae,st=0},ft={encache:W,decache:it,sbcs:t,dbcs:e};W();var Je="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ut="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'(),-./:?",bt=Ae,st=0,Mt=function At(Se,Q,Ce){if(Se===st&&bt)return bt(Q,Ce);if(w[Se])return bt=w[st=Se],bt(Q,Ce);E&&Buffer.isBuffer(Q)&&(Q=Q.toString("utf8"));var Te=Q.length,xe=E?Buffer.allocUnsafe(4*Te):[],oe=0,pe=0,se=0,nt=0,Ie=o[Se],hr,Gr="",yt=typeof Q=="string";if(Ie&&(hr=Ie.enc))for(pe=0;pe<Te;++pe,++se)oe=hr[yt?Q.charAt(pe):Q[pe]],oe>255?(xe[se]=oe>>8,xe[++se]=oe&255):xe[se]=oe&255;else if(Gr=i[Se])switch(Gr){case"utf8":if(E&&yt){xe=M(Q,Gr),se=xe.length;break}for(pe=0;pe<Te;++pe,++se)oe=yt?Q.charCodeAt(pe):Q[pe].charCodeAt(0),oe<=127?xe[se]=oe:oe<=2047?(xe[se]=192+(oe>>6),xe[++se]=128+(oe&63)):oe>=55296&&oe<=57343?(oe-=55296,nt=(yt?Q.charCodeAt(++pe):Q[++pe].charCodeAt(0))-56320+(oe<<10),xe[se]=240+(nt>>>18&7),xe[++se]=144+(nt>>>12&63),xe[++se]=128+(nt>>>6&63),xe[++se]=128+(nt&63)):(xe[se]=224+(oe>>12),xe[++se]=128+(oe>>6&63),xe[++se]=128+(oe&63));break;case"ascii":if(E&&typeof Q=="string"){xe=M(Q,Gr),se=xe.length;break}for(pe=0;pe<Te;++pe,++se)if(oe=yt?Q.charCodeAt(pe):Q[pe].charCodeAt(0),oe<=127)xe[se]=oe;else throw new Error("bad ascii "+oe);break;case"utf16le":if(E&&typeof Q=="string"){xe=M(Q,Gr),se=xe.length;break}for(pe=0;pe<Te;++pe)oe=yt?Q.charCodeAt(pe):Q[pe].charCodeAt(0),xe[se++]=oe&255,xe[se++]=oe>>8;break;case"utf16be":for(pe=0;pe<Te;++pe)oe=yt?Q.charCodeAt(pe):Q[pe].charCodeAt(0),xe[se++]=oe>>8,xe[se++]=oe&255;break;case"utf32le":for(pe=0;pe<Te;++pe)oe=yt?Q.charCodeAt(pe):Q[pe].charCodeAt(0),oe>=55296&&oe<=57343&&(oe=65536+(oe-55296<<10)+(Q[++pe].charCodeAt(0)-56320)),xe[se++]=oe&255,oe>>=8,xe[se++]=oe&255,oe>>=8,xe[se++]=oe&255,oe>>=8,xe[se++]=oe&255;break;case"utf32be":for(pe=0;pe<Te;++pe)oe=yt?Q.charCodeAt(pe):Q[pe].charCodeAt(0),oe>=55296&&oe<=57343&&(oe=65536+(oe-55296<<10)+(Q[++pe].charCodeAt(0)-56320)),xe[se+3]=oe&255,oe>>=8,xe[se+2]=oe&255,oe>>=8,xe[se+1]=oe&255,oe>>=8,xe[se]=oe&255,se+=4;break;case"utf7":for(pe=0;pe<Te;pe++){var xt=yt?Q.charAt(pe):Q[pe].charAt(0);if(xt==="+"){xe[se++]=43,xe[se++]=45;continue}if(ut.indexOf(xt)>-1){xe[se++]=xt.charCodeAt(0);continue}var Ct=At(1201,xt);xe[se++]=43,xe[se++]=Je.charCodeAt(Ct[0]>>2),xe[se++]=Je.charCodeAt(((Ct[0]&3)<<4)+((Ct[1]||0)>>4)),xe[se++]=Je.charCodeAt(((Ct[1]&15)<<2)+((Ct[2]||0)>>6)),xe[se++]=45}break;default:throw new Error("Unsupported magic: "+Se+" "+i[Se])}else throw new Error("Unrecognized CP: "+Se);return xe=xe.slice(0,se),E?!Ce||Ce==="buf"?xe:Ce!=="arr"?xe.toString("binary"):[].slice.call(xe):Ce=="str"?xe.map(S).join(""):xe},Lt=function At(Se,Q){var Ce;if(Ce=_[Se])return Ce(Q);if(typeof Q=="string")return At(Se,Q.split("").map(A));var Te=Q.length,xe=new Array(Te),oe="",pe=0,se=0,nt=1,Ie=0,hr=0,Gr=o[Se],yt,xt="";if(Gr&&(yt=Gr.dec))for(se=0;se<Te;se+=nt){if(nt=2,oe=yt[(Q[se]<<8)+Q[se+1]],oe||(nt=1,oe=yt[Q[se]]),!oe)throw new Error("Unrecognized code: "+Q[se]+" "+Q[se+nt-1]+" "+se+" "+nt+" "+yt[Q[se]]);xe[Ie++]=oe}else if(xt=i[Se])switch(xt){case"utf8":for(Te>=3&&Q[0]==239&&Q[1]==187&&Q[2]==191&&(se=3);se<Te;se+=nt)nt=1,Q[se]<128?pe=Q[se]:Q[se]<224?(pe=(Q[se]&31)*64+(Q[se+1]&63),nt=2):Q[se]<240?(pe=((Q[se]&15)<<12)+(Q[se+1]&63)*64+(Q[se+2]&63),nt=3):(pe=(Q[se]&7)*262144+((Q[se+1]&63)<<12)+(Q[se+2]&63)*64+(Q[se+3]&63),nt=4),pe<65536||(pe-=65536,hr=55296+(pe>>10&1023),pe=56320+(pe&1023),xe[Ie++]=String.fromCharCode(hr)),xe[Ie++]=String.fromCharCode(pe);break;case"ascii":if(E&&Buffer.isBuffer(Q))return Q.toString(xt);for(se=0;se<Te;se++)xe[se]=String.fromCharCode(Q[se]);Ie=Te;break;case"utf16le":if(Te>=2&&Q[0]==255&&Q[1]==254&&(se=2),E&&Buffer.isBuffer(Q))return Q.toString(xt);for(nt=2;se+1<Te;se+=nt)xe[Ie++]=String.fromCharCode((Q[se+1]<<8)+Q[se]);break;case"utf16be":for(Te>=2&&Q[0]==254&&Q[1]==255&&(se=2),nt=2;se+1<Te;se+=nt)xe[Ie++]=String.fromCharCode((Q[se]<<8)+Q[se+1]);break;case"utf32le":for(Te>=4&&Q[0]==255&&Q[1]==254&&Q[2]===0&&Q[3]===0&&(se=4),nt=4;se<Te;se+=nt)pe=(Q[se+3]<<24)+(Q[se+2]<<16)+(Q[se+1]<<8)+Q[se],pe>65535?(pe-=65536,xe[Ie++]=String.fromCharCode(55296+(pe>>10&1023)),xe[Ie++]=String.fromCharCode(56320+(pe&1023))):xe[Ie++]=String.fromCharCode(pe);break;case"utf32be":for(Te>=4&&Q[3]==255&&Q[2]==254&&Q[1]===0&&Q[0]===0&&(se=4),nt=4;se<Te;se+=nt)pe=(Q[se]<<24)+(Q[se+1]<<16)+(Q[se+2]<<8)+Q[se+3],pe>65535?(pe-=65536,xe[Ie++]=String.fromCharCode(55296+(pe>>10&1023)),xe[Ie++]=String.fromCharCode(56320+(pe&1023))):xe[Ie++]=String.fromCharCode(pe);break;case"utf7":for(Te>=4&&Q[0]==43&&Q[1]==47&&Q[2]==118&&(Te>=5&&Q[3]==56&&Q[4]==45?se=5:(Q[3]==56||Q[3]==57||Q[3]==43||Q[3]==47)&&(se=4));se<Te;se+=nt){if(Q[se]!==43){nt=1,xe[Ie++]=String.fromCharCode(Q[se]);continue}if(nt=1,Q[se+1]===45){nt=2,xe[Ie++]="+";continue}for(;String.fromCharCode(Q[se+nt]).match(/[A-Za-z0-9+\/]/);)nt++;var Ct=0;Q[se+nt]===45&&(++nt,Ct=1);for(var Ns=[],kr="",ts=0,ai=0,oi=0,ii=0,Lo=0,$a=0,rs=0,Ws=1;Ws<nt-Ct&&(ii=Je.indexOf(String.fromCharCode(Q[se+Ws++])),Lo=Je.indexOf(String.fromCharCode(Q[se+Ws++])),ts=ii<<2|Lo>>4,Ns.push(ts),$a=Je.indexOf(String.fromCharCode(Q[se+Ws++])),!($a===-1||(ai=(Lo&15)<<4|$a>>2,Ns.push(ai),rs=Je.indexOf(String.fromCharCode(Q[se+Ws++])),rs===-1)));)oi=($a&3)<<6|rs,rs<64&&Ns.push(oi);for(kr=At(1201,Ns),Ws=0;Ws<kr.length;++Ws)xe[Ie++]=kr.charAt(Ws)}break;default:throw new Error("Unsupported magic: "+Se+" "+i[Se])}else throw new Error("Unrecognized CP: "+Se);return xe.slice(0,Ie).join("")},Er=function(Se){return!!(o[Se]||i[Se])};return o.utils={decode:Lt,encode:Mt,hascp:Er,magic:i,cache:ft},o})}(af)),af.exports}const x5={},C5=Object.freeze(Object.defineProperty({__proto__:null,default:x5},Symbol.toStringTag,{value:"Module"})),of=Hb(C5);(function(s,r){var o={};function i(t){t.version="0.18.5",t.style_version="1.2.0";var e,u=1200,p=1252;typeof cptable<"u"?e=cptable:typeof cl<"u"&&(e=w5());var b=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],_={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},w=function(a){b.indexOf(a)!=-1&&(p=_[0]=a)},S=function(a){w(u=a)};function A(){S(1200),w(1252)}function E(a){for(var n=[],l=0,c=a.length;l<c;++l)n[l]=a.charCodeAt(l);return n}function M(a){for(var n=[],l=0;l<a.length>>1;++l)n[l]=String.fromCharCode(a.charCodeAt(2*l+1)+(a.charCodeAt(2*l)<<8));return n.join("")}var N=function(a){var n=a.charCodeAt(0),l=a.charCodeAt(1);return n==255&&l==254?function(c){for(var f=[],h=0;h<c.length>>1;++h)f[h]=String.fromCharCode(c.charCodeAt(2*h)+(c.charCodeAt(2*h+1)<<8));return f.join("")}(a.slice(2)):n==254&&l==255?M(a.slice(2)):n==65279?a.slice(1):a},q=function(a){return String.fromCharCode(a)},U=function(a){return String.fromCharCode(a)};e!==void 0&&(S=function(a){w(u=a)},N=function(a){return a.charCodeAt(0)===255&&a.charCodeAt(1)===254?e.utils.decode(1200,E(a.slice(2))):a},q=function(a){return u===1200?String.fromCharCode(a):e.utils.decode(u,[255&a,a>>8])[0]},U=function(a){return e.utils.decode(p,[a])[0]});var ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function ie(a){for(var n,l,c,f,h,d="",m=0,g=0,y=0;y<a.length;)f=(n=a.charCodeAt(y++))>>2,h=(3&n)<<4|(l=a.charCodeAt(y++))>>4,m=(15&l)<<2|(c=a.charCodeAt(y++))>>6,g=63&c,isNaN(l)?m=g=64:isNaN(c)&&(g=64),d+=ee.charAt(f)+ee.charAt(h)+ee.charAt(m)+ee.charAt(g);return d}function j(a){var n,l,c,f,h,d,m="";a=a.replace(/[^\w\+\/\=]/g,"");for(var g=0;g<a.length;)n=ee.indexOf(a.charAt(g++))<<2|(f=ee.indexOf(a.charAt(g++)))>>4,m+=String.fromCharCode(n),l=(15&f)<<4|(h=ee.indexOf(a.charAt(g++)))>>2,h!==64&&(m+=String.fromCharCode(l)),c=(3&h)<<6|(d=ee.indexOf(a.charAt(g++))),d!==64&&(m+=String.fromCharCode(c));return m}var H=typeof Buffer<"u"&&typeof process<"u"&&process.versions!==void 0&&!!process.versions.node,ne=function(){if(typeof Buffer>"u")return function(){};var a=!Buffer.from;if(!a)try{Buffer.from("foo","utf8")}catch{a=!0}return a?function(n,l){return l?new Buffer(n,l):new Buffer(n)}:Buffer.from.bind(Buffer)}();function W(a){return H?Buffer.alloc?Buffer.alloc(a):new Buffer(a):new(typeof Uint8Array<"u"?Uint8Array:Array)(a)}function Ae(a){return H?Buffer.allocUnsafe?Buffer.allocUnsafe(a):new Buffer(a):new(typeof Uint8Array<"u"?Uint8Array:Array)(a)}var ve=function(a){return H?ne(a,"binary"):a.split("").map(function(n){return 255&n.charCodeAt(0)})};function it(a){if(typeof ArrayBuffer>"u")return ve(a);for(var n=new ArrayBuffer(a.length),l=new Uint8Array(n),c=0;c!=a.length;++c)l[c]=255&a.charCodeAt(c);return n}function ft(a){if(Array.isArray(a))return a.map(function(c){return String.fromCharCode(c)}).join("");for(var n=[],l=0;l<a.length;++l)n[l]=String.fromCharCode(a[l]);return n.join("")}function Je(a){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(a instanceof ArrayBuffer)return Je(new Uint8Array(a));for(var n=new Array(a.length),l=0;l<a.length;++l)n[l]=a[l];return n}var ut=H?function(a){return Buffer.concat(a.map(function(n){return Buffer.isBuffer(n)?n:ne(n)}))}:function(a){if(typeof Uint8Array>"u")return[].concat.apply([],a.map(function(h){return Array.isArray(h)?h:[].slice.call(h)}));for(var l=0,n=0,l=0;l<a.length;++l)n+=a[l].length;for(var c,f=new Uint8Array(n),n=l=0;l<a.length;n+=c,++l)if(c=a[l].length,a[l]instanceof Uint8Array)f.set(a[l],n);else{if(typeof a[l]=="string")throw"wtf";f.set(new Uint8Array(a[l]),n)}return f},bt=/\u0000/g,st=/[\u0001-\u0006]/g;function Mt(a){for(var n="",l=a.length-1;0<=l;)n+=a.charAt(l--);return n}function Lt(a,n){return a=""+a,n<=a.length?a:qr("0",n-a.length)+a}function Er(a,n){return a=""+a,n<=a.length?a:qr(" ",n-a.length)+a}function At(a,n){return a=""+a,n<=a.length?a:a+qr(" ",n-a.length)}var Se=Math.pow(2,32);function Q(f,n){if(Se<f||f<-Se)return l=f,c=n,l=""+Math.round(l),c<=l.length?l:qr("0",c-l.length)+l;var l,c,f=Math.round(f);return(n=n)<=(f=""+(f=f)).length?f:qr("0",n-f.length)+f}function Ce(a,n){return n=n||0,a.length>=7+n&&(32|a.charCodeAt(n))==103&&(32|a.charCodeAt(n+1))==101&&(32|a.charCodeAt(n+2))==110&&(32|a.charCodeAt(n+3))==101&&(32|a.charCodeAt(n+4))==114&&(32|a.charCodeAt(n+5))==97&&(32|a.charCodeAt(n+6))==108}var Te=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],xe=[["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"]],oe={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:'"上午/下午 "hh"時"mm"分"ss"秒 "'},pe={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:46,81:47,82:0},se={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 nt(a,n,l){for(var c=a<0?-1:1,f=a*c,h=0,d=1,m=0,g=1,y=0,v=0,x=Math.floor(f);y<n&&(m=(x=Math.floor(f))*d+h,v=x*y+g,!(f-x<5e-8));)f=1/(f-x),h=d,d=m,g=y,y=v;return n<v&&(m=n<y?(v=g,h):(v=y,d)),l?(l=Math.floor(c*m/v),[l,c*m-l*v,v]):[0,c*m,v]}function Ie(m,n,l){if(2958465<m||m<0)return null;var c=0|m,f=Math.floor(86400*(m-c)),h=0,d=[],m={D:c,T:f,u:86400*(m-c)-f,y:0,m:0,d:0,H:0,M:0,S:0,q:0};return Math.abs(m.u)<1e-6&&(m.u=0),n&&n.date1904&&(c+=1462),.9999<m.u&&(m.u=0,++f==86400&&(m.T=f=0,++c,++m.D)),c===60?(d=l?[1317,10,29]:[1900,2,29],h=3):c===0?(d=l?[1317,8,29]:[1900,1,0],h=6):(60<c&&--c,(n=new Date(1900,0,1)).setDate(n.getDate()+c-1),d=[n.getFullYear(),n.getMonth()+1,n.getDate()],h=n.getDay(),c<60&&(h=(h+6)%7),l&&(h=function(g,y){return y[0]-=581,y=g.getDay(),g<60&&(y=(y+6)%7),y}(n,d))),m.y=d[0],m.m=d[1],m.d=d[2],m.S=f%60,f=Math.floor(f/60),m.M=f%60,f=Math.floor(f/60),m.H=f,m.q=h,m}var hr=new Date(1899,11,31,0,0,0),Gr=hr.getTime(),yt=new Date(1900,2,1,0,0,0);function xt(a,n){var l=a.getTime();return n?l-=1262304e5:yt<=a&&(l+=864e5),(l-(Gr+6e4*(a.getTimezoneOffset()-hr.getTimezoneOffset())))/864e5}function Ct(a){return a.indexOf(".")==-1?a:a.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Ns(a){var n,l,c,f=Math.floor(Math.log(Math.abs(a))*Math.LOG10E),h=-4<=f&&f<=-1?a.toPrecision(10+f):Math.abs(f)<=9?(l=(n=a)<0?12:11,(c=Ct(n.toFixed(12))).length<=l||(c=n.toPrecision(10)).length<=l?c:n.toExponential(5)):f===10?a.toFixed(10).substr(0,12):(h=Ct((a=a).toFixed(11))).length>(a<0?12:11)||h==="0"||h==="-0"?a.toPrecision(6):h;return Ct((h=h.toUpperCase()).indexOf("E")==-1?h:h.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2"))}function kr(a,n){switch(typeof a){case"string":return a;case"boolean":return a?"TRUE":"FALSE";case"number":return(0|a)===a?a.toString(10):Ns(a);case"undefined":return"";case"object":if(a==null)return"";if(a instanceof Date)return Us(14,xt(a,n&&n.date1904),n)}throw new Error("unsupported value in General format: "+a)}function ts(a){if(a.length<=3)return a;for(var n=a.length%3,l=a.substr(0,n);n!=a.length;n+=3)l+=(0<l.length?",":"")+a.substr(n,3);return l}var ai=/%/g,oi=/# (\?+)( ?)\/( ?)(\d+)/,ii=/^#*0*\.([0#]+)/,Lo=/\).*[0#]/,$a=/\(###\) ###\\?-####/;function rs(a){for(var n,l="",c=0;c!=a.length;++c)switch(n=a.charCodeAt(c)){case 35:break;case 63:l+=" ";break;case 48:l+="0";break;default:l+=String.fromCharCode(n)}return l}function Ws(a,n){return n=Math.pow(10,n),""+Math.round(a*n)/n}function qf(c,n){var l=c-Math.floor(c),c=Math.pow(10,n);return n<(""+Math.round(l*c)).length?0:Math.round(l*c)}function Hs(a,n,l){if(a.charCodeAt(0)===40&&!n.match(Lo)){var c=n.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return 0<=l?Hs("n",c,l):"("+Hs("n",c,-l)+")"}if(n.charCodeAt(n.length-1)===44)return function(R,O,I){for(var V=O.length-1;O.charCodeAt(V-1)===44;)--V;return Aa(R,O.substr(0,V),I/Math.pow(10,3*(O.length-V)))}(a,n,l);if(n.indexOf("%")!==-1)return m=a,y=l,g=(v=n).replace(ai,""),v=v.length-g.length,Aa(m,g,y*Math.pow(10,2*v))+qr("%",v);var f;if(n.indexOf("E")!==-1)return function R(O,I){var V,X=O.indexOf("E")-O.indexOf(".")-1;if(O.match(/^#+0.0E\+0$/)){if(I==0)return"0.0E+0";if(I<0)return"-"+R(O,-I);var ae=O.indexOf(".");ae===-1&&(ae=O.indexOf("E"));var te=Math.floor(Math.log(I)*Math.LOG10E)%ae;if(te<0&&(te+=ae),(V=(I/Math.pow(10,te)).toPrecision(1+X+(ae+te)%ae)).indexOf("e")===-1){var ce=Math.floor(Math.log(I)*Math.LOG10E);for(V.indexOf(".")===-1?V=V.charAt(0)+"."+V.substr(1)+"E+"+(ce-V.length+te):V+="E+"+(ce-te);V.substr(0,2)==="0.";)V=(V=V.charAt(0)+V.substr(2,ae)+"."+V.substr(2+ae)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");V=V.replace(/\+-/,"-")}V=V.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(_e,we,de,ke){return we+de+ke.substr(0,(ae+te)%ae)+"."+ke.substr(te)+"E"})}else V=I.toExponential(X);return O.match(/E\+00$/)&&V.match(/e[+-]\d$/)&&(V=V.substr(0,V.length-1)+"0"+V.charAt(V.length-1)),(V=O.match(/E\-/)&&V.match(/e\+/)?V.replace(/e\+/,"e"):V).replace("e","E")}(n,l);if(n.charCodeAt(0)===36)return"$"+Hs(a,n.substr(n.charAt(1)==" "?2:1),l);var h,d,m,g,y,v,x,C=Math.abs(l),F=l<0?"-":"";if(n.match(/^00+$/))return F+Q(C,n.length);if(n.match(/^[#?]+$/))return(f=(f=Q(l,0))==="0"?"":f).length>n.length?f:rs(n.substr(0,n.length-f.length))+f;if(h=n.match(oi))return x=h,m=C,g=F,y=parseInt(x[4],10),v=Math.round(m*y),m=Math.floor(v/y),g+(m===0?"":""+m)+" "+((v-=m*y)==0?qr(" ",x[1].length+1+x[4].length):Er(v,x[1].length)+x[2]+"/"+x[3]+Lt(y,x[4].length));if(n.match(/^#+0+$/))return F+Q(C,n.length-n.indexOf("0"));if(h=n.match(ii))return f=Ws(l,h[1].length).replace(/^([^\.]+)$/,"$1."+rs(h[1])).replace(/\.$/,"."+rs(h[1])).replace(/\.(\d*)$/,function(R,O){return"."+O+qr("0",rs(h[1]).length-O.length)}),n.indexOf("0.")!==-1?f:f.replace(/^0\./,".");if(n=n.replace(/^#+([0.])/,"$1"),h=n.match(/^(0*)\.(#*)$/))return F+Ws(C,h[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,h[1].length?"0.":".");if(h=n.match(/^#{1,3},##0(\.?)$/))return F+ts(Q(C,0));if(h=n.match(/^#,##0\.([#0]*0)$/))return l<0?"-"+Hs(a,n,-l):ts(""+(Math.floor(l)+(x=l,(k=h[1].length)<(""+Math.round((x-Math.floor(x))*Math.pow(10,k))).length?1:0)))+"."+Lt(qf(l,h[1].length),h[1].length);if(h=n.match(/^#,#*,#0/))return Hs(a,n.replace(/^#,#*,/,""),l);if(h=n.match(/^([0#]+)(\\?-([0#]+))+$/))return f=Mt(Hs(a,n.replace(/[\\-]/g,""),l)),d=0,Mt(Mt(n.replace(/\\/g,"")).replace(/[0#]/g,function(R){return d<f.length?f.charAt(d++):R==="0"?"0":""}));if(n.match($a))return"("+(f=Hs(a,"##########",l)).substr(0,3)+") "+f.substr(3,3)+"-"+f.substr(6);var k="";if(h=n.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return d=Math.min(h[4].length,7),D=nt(C,Math.pow(10,d)-1,!1),f=F,(k=Aa("n",h[1],D[1])).charAt(k.length-1)==" "&&(k=k.substr(0,k.length-1)+"0"),f+=k+h[2]+"/"+h[3],(k=At(D[2],d)).length<h[4].length&&(k=rs(h[4].substr(h[4].length-k.length))+k),f+=k;if(h=n.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return d=Math.min(Math.max(h[1].length,h[4].length),7),F+((D=nt(C,Math.pow(10,d)-1,!0))[0]||(D[1]?"":"0"))+" "+(D[1]?Er(D[1],d)+h[2]+"/"+h[3]+At(D[2],d):qr(" ",2*d+1+h[2].length+h[3].length));if(h=n.match(/^[#0?]+$/))return f=Q(l,0),n.length<=f.length?f:rs(n.substr(0,n.length-f.length))+f;if(h=n.match(/^([#0?]+)\.([#0]+)$/)){f=""+l.toFixed(Math.min(h[2].length,10)).replace(/([^0])0+$/,"$1"),d=f.indexOf(".");var D=n.indexOf(".")-d,P=n.length-f.length-D;return rs(n.substr(0,D)+f+n.substr(n.length-P))}if(h=n.match(/^00,000\.([#0]*0)$/))return d=qf(l,h[1].length),l<0?"-"+Hs(a,n,-l):ts((P=l)<2147483647&&-2147483648<P?""+(0<=P?0|P:P-1|0):""+Math.floor(P)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(R){return"00,"+(R.length<3?Lt(0,3-R.length):"")+R})+"."+Lt(d,h[1].length);switch(n){case"###,##0.00":return Hs(a,"#,##0.00",l);case"###,###":case"##,###":case"#,###":var L=ts(Q(C,0));return L!=="0"?F+L:"";case"###,###.00":return Hs(a,"###,##0.00",l).replace(/^0\./,".");case"#,###.00":return Hs(a,"#,##0.00",l).replace(/^0\./,".")}throw new Error("unsupported format |"+n+"|")}function ha(a,n,l){if(a.charCodeAt(0)===40&&!n.match(Lo)){var c=n.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return 0<=l?ha("n",c,l):"("+ha("n",c,-l)+")"}if(n.charCodeAt(n.length-1)===44)return function(D,P,L){for(var R=P.length-1;P.charCodeAt(R-1)===44;)--R;return Aa(D,P.substr(0,R),L/Math.pow(10,3*(P.length-R)))}(a,n,l);if(n.indexOf("%")!==-1)return f=a,d=l,c=(h=n).replace(ai,""),h=h.length-c.length,Aa(f,c,d*Math.pow(10,2*h))+qr("%",h);var f,h,d,m;if(n.indexOf("E")!==-1)return function D(P,L){var R,O=P.indexOf("E")-P.indexOf(".")-1;if(P.match(/^#+0.0E\+0$/)){if(L==0)return"0.0E+0";if(L<0)return"-"+D(P,-L);var I=P.indexOf(".");I===-1&&(I=P.indexOf("E"));var V,X=Math.floor(Math.log(L)*Math.LOG10E)%I;X<0&&(X+=I),(R=(L/Math.pow(10,X)).toPrecision(1+O+(I+X)%I)).match(/[Ee]/)||(V=Math.floor(Math.log(L)*Math.LOG10E),R.indexOf(".")===-1?R=R.charAt(0)+"."+R.substr(1)+"E+"+(V-R.length+X):R+="E+"+(V-X),R=R.replace(/\+-/,"-")),R=R.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(ae,te,ce,_e){return te+ce+_e.substr(0,(I+X)%I)+"."+_e.substr(X)+"E"})}else R=L.toExponential(O);return P.match(/E\+00$/)&&R.match(/e[+-]\d$/)&&(R=R.substr(0,R.length-1)+"0"+R.charAt(R.length-1)),(R=P.match(/E\-/)&&R.match(/e\+/)?R.replace(/e\+/,"e"):R).replace("e","E")}(n,l);if(n.charCodeAt(0)===36)return"$"+ha(a,n.substr(n.charAt(1)==" "?2:1),l);var g,y,v=Math.abs(l),x=l<0?"-":"";if(n.match(/^00+$/))return x+Lt(v,n.length);if(n.match(/^[#?]+$/))return(m=l===0?"":""+l).length>n.length?m:rs(n.substr(0,n.length-m.length))+m;if(g=n.match(oi))return x+((C=v)===0?"":""+C)+qr(" ",(C=g)[1].length+2+C[4].length);if(n.match(/^#+0+$/))return x+Lt(v,n.length-n.indexOf("0"));if(g=n.match(ii))return m=(m=(""+l).replace(/^([^\.]+)$/,"$1."+rs(g[1])).replace(/\.$/,"."+rs(g[1]))).replace(/\.(\d*)$/,function(D,P){return"."+P+qr("0",rs(g[1]).length-P.length)}),n.indexOf("0.")!==-1?m:m.replace(/^0\./,".");if(n=n.replace(/^#+([0.])/,"$1"),g=n.match(/^(0*)\.(#*)$/))return x+(""+v).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,g[1].length?"0.":".");if(g=n.match(/^#{1,3},##0(\.?)$/))return x+ts(""+v);if(g=n.match(/^#,##0\.([#0]*0)$/))return l<0?"-"+ha(a,n,-l):ts(""+l)+"."+qr("0",g[1].length);if(g=n.match(/^#,#*,#0/))return ha(a,n.replace(/^#,#*,/,""),l);if(g=n.match(/^([0#]+)(\\?-([0#]+))+$/))return m=Mt(ha(a,n.replace(/[\\-]/g,""),l)),y=0,Mt(Mt(n.replace(/\\/g,"")).replace(/[0#]/g,function(D){return y<m.length?m.charAt(y++):D==="0"?"0":""}));if(n.match($a))return"("+(m=ha(a,"##########",l)).substr(0,3)+") "+m.substr(3,3)+"-"+m.substr(6);var C="";if(g=n.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return y=Math.min(g[4].length,7),F=nt(v,Math.pow(10,y)-1,!1),m=x,(C=Aa("n",g[1],F[1])).charAt(C.length-1)==" "&&(C=C.substr(0,C.length-1)+"0"),m+=C+g[2]+"/"+g[3],(C=At(F[2],y)).length<g[4].length&&(C=rs(g[4].substr(g[4].length-C.length))+C),m+=C;if(g=n.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return y=Math.min(Math.max(g[1].length,g[4].length),7),x+((F=nt(v,Math.pow(10,y)-1,!0))[0]||(F[1]?"":"0"))+" "+(F[1]?Er(F[1],y)+g[2]+"/"+g[3]+At(F[2],y):qr(" ",2*y+1+g[2].length+g[3].length));if(g=n.match(/^[#0?]+$/))return m=""+l,n.length<=m.length?m:rs(n.substr(0,n.length-m.length))+m;if(g=n.match(/^([#0]+)\.([#0]+)$/)){m=""+l.toFixed(Math.min(g[2].length,10)).replace(/([^0])0+$/,"$1"),y=m.indexOf(".");var C=n.indexOf(".")-y,F=n.length-m.length-C;return rs(n.substr(0,C)+m+n.substr(n.length-F))}if(g=n.match(/^00,000\.([#0]*0)$/))return l<0?"-"+ha(a,n,-l):ts(""+l).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(D){return"00,"+(D.length<3?Lt(0,3-D.length):"")+D})+"."+Lt(0,g[1].length);switch(n){case"###,###":case"##,###":case"#,###":var k=ts(""+v);return k!=="0"?x+k:"";default:if(n.match(/\.[0#?]*$/))return ha(a,n.slice(0,n.lastIndexOf(".")),l)+rs(n.slice(n.lastIndexOf(".")))}throw new Error("unsupported format |"+n+"|")}function Aa(a,n,l){return((0|l)===l?ha:Hs)(a,n,l)}var Kf=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function eo(a){for(var n=0,l="",c="";n<a.length;)switch(l=a.charAt(n)){case"G":Ce(a,n)&&(n+=6),n++;break;case'"':for(;a.charCodeAt(++n)!==34&&n<a.length;);++n;break;case"\\":case"_":n+=2;break;case"@":++n;break;case"B":case"b":if(a.charAt(n+1)==="1"||a.charAt(n+1)==="2")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"上":if(a.substr(n,3).toUpperCase()==="A/P"||a.substr(n,5).toUpperCase()==="AM/PM"||a.substr(n,5).toUpperCase()==="上午/下午")return!0;++n;break;case"[":for(c=l;a.charAt(n++)!=="]"&&n<a.length;)c+=a.charAt(n);if(c.match(Kf))return!0;break;case".":case"0":case"#":for(;n<a.length&&(-1<"0#?.,E+-%".indexOf(l=a.charAt(++n))||l=="\\"&&a.charAt(n+1)=="-"&&-1<"0#".indexOf(a.charAt(n+2))););break;case"?":for(;a.charAt(++n)===l;);break;case"*":++n,a.charAt(n)!=" "&&a.charAt(n)!="*"||++n;break;case"(":case")":++n;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;n<a.length&&-1<"0123456789".indexOf(a.charAt(++n)););break;case" ":default:++n}return!1}function xg(a,n,l,c){for(var f,h,d,m=[],g="",y=0,v="",x="t",C="H";y<a.length;)switch(v=a.charAt(y)){case"G":if(!Ce(a,y))throw new Error("unrecognized character "+v+" in "+a);m[m.length]={t:"G",v:"General"},y+=7;break;case'"':for(g="";(d=a.charCodeAt(++y))!==34&&y<a.length;)g+=String.fromCharCode(d);m[m.length]={t:"t",v:g},++y;break;case"\\":var F=a.charAt(++y),k=F==="("||F===")"?F:"t";m[m.length]={t:k,v:F},++y;break;case"_":m[m.length]={t:"t",v:" "},y+=2;break;case"@":m[m.length]={t:"T",v:n},++y;break;case"B":case"b":if(a.charAt(y+1)==="1"||a.charAt(y+1)==="2"){if(f==null&&(f=Ie(n,l,a.charAt(y+1)==="2"))==null)return"";m[m.length]={t:"X",v:a.substr(y,2)},x=v,y+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":v=v.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(n<0||f==null&&(f=Ie(n,l))==null)return"";for(g=v;++y<a.length&&a.charAt(y).toLowerCase()===v;)g+=v;(v=v==="m"&&x.toLowerCase()==="h"?"M":v)==="h"&&(v=C),m[m.length]={t:v,v:g},x=v;break;case"A":case"a":case"上":if(F={t:v,v},f==null&&(f=Ie(n,l)),a.substr(y,3).toUpperCase()==="A/P"?(f!=null&&(F.v=12<=f.H?"P":"A"),F.t="T",C="h",y+=3):a.substr(y,5).toUpperCase()==="AM/PM"?(f!=null&&(F.v=12<=f.H?"PM":"AM"),F.t="T",y+=5,C="h"):a.substr(y,5).toUpperCase()==="上午/下午"?(f!=null&&(F.v=12<=f.H?"下午":"上午"),F.t="T",y+=5,C="h"):(F.t="t",++y),f==null&&F.t==="T")return"";m[m.length]=F,x=v;break;case"[":for(g=v;a.charAt(y++)!=="]"&&y<a.length;)g+=a.charAt(y);if(g.slice(-1)!=="]")throw'unterminated "[" block: |'+g+"|";if(g.match(Kf)){if(f==null&&(f=Ie(n,l))==null)return"";m[m.length]={t:"Z",v:g.toLowerCase()},x=g.charAt(1)}else-1<g.indexOf("$")&&(g=(g.match(/\$([^-\[\]]*)/)||[])[1]||"$",eo(a)||(m[m.length]={t:"t",v:g}));break;case".":if(f!=null){for(g=v;++y<a.length&&(v=a.charAt(y))==="0";)g+=v;m[m.length]={t:"s",v:g};break}case"0":case"#":for(g=v;++y<a.length&&-1<"0#?.,E+-%".indexOf(v=a.charAt(y));)g+=v;m[m.length]={t:"n",v:g};break;case"?":for(g=v;a.charAt(++y)===v;)g+=v;m[m.length]={t:v,v:g},x=v;break;case"*":++y,a.charAt(y)!=" "&&a.charAt(y)!="*"||++y;break;case"(":case")":m[m.length]={t:c===1?"t":v,v},++y;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(g=v;y<a.length&&-1<"0123456789".indexOf(a.charAt(++y));)g+=a.charAt(y);m[m.length]={t:"D",v:g};break;case" ":m[m.length]={t:v,v},++y;break;case"$":m[m.length]={t:"t",v:"$"},++y;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(v)===-1)throw new Error("unrecognized character "+v+" in "+a);m[m.length]={t:"t",v},++y}var D,P=0,L=0;for(y=m.length-1,x="t";0<=y;--y)switch(m[y].t){case"h":case"H":m[y].t=C,x="h",P<1&&(P=1);break;case"s":(D=m[y].v.match(/\.0+$/))&&(L=Math.max(L,D[0].length-1)),P<3&&(P=3);case"d":case"y":case"M":case"e":x=m[y].t;break;case"m":x==="s"&&(m[y].t="M",P<2&&(P=2));break;case"X":break;case"Z":(P=(P=P<1&&m[y].v.match(/[Hh]/)?1:P)<2&&m[y].v.match(/[Mm]/)?2:P)<3&&m[y].v.match(/[Ss]/)&&(P=3)}switch(P){case 0:break;case 1:.5<=f.u&&(f.u=0,++f.S),60<=f.S&&(f.S=0,++f.M),60<=f.M&&(f.M=0,++f.H);break;case 2:.5<=f.u&&(f.u=0,++f.S),60<=f.S&&(f.S=0,++f.M)}var R,O="";for(y=0;y<m.length;++y)switch(m[y].t){case"t":case"T":case" ":case"D":break;case"X":m[y].v="",m[y].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":m[y].v=function(_e,we,de,ke){var qe,He="",Ve=0,ze=0,Ne=de.y,Fe=0;switch(_e){case 98:Ne=de.y+543;case 121:switch(we.length){case 1:case 2:qe=Ne%100,Fe=2;break;default:qe=Ne%1e4,Fe=4}break;case 109:switch(we.length){case 1:case 2:qe=de.m,Fe=we.length;break;case 3:return xe[de.m-1][1];case 5:return xe[de.m-1][0];default:return xe[de.m-1][2]}break;case 100:switch(we.length){case 1:case 2:qe=de.d,Fe=we.length;break;case 3:return Te[de.q][0];default:return Te[de.q][1]}break;case 104:switch(we.length){case 1:case 2:qe=1+(de.H+11)%12,Fe=we.length;break;default:throw"bad hour format: "+we}break;case 72:switch(we.length){case 1:case 2:qe=de.H,Fe=we.length;break;default:throw"bad hour format: "+we}break;case 77:switch(we.length){case 1:case 2:qe=de.M,Fe=we.length;break;default:throw"bad minute format: "+we}break;case 115:if(we!="s"&&we!="ss"&&we!=".0"&&we!=".00"&&we!=".000")throw"bad second format: "+we;return de.u!==0||we!="s"&&we!="ss"?(60*(ze=2<=ke?ke===3?1e3:100:ke===1?10:1)<=(Ve=Math.round(ze*(de.S+de.u)))&&(Ve=0),we==="s"?Ve===0?"0":""+Ve/ze:(He=Lt(Ve,2+ke),we==="ss"?He.substr(0,2):"."+He.substr(2,we.length-1))):Lt(de.S,we.length);case 90:switch(we){case"[h]":case"[hh]":qe=24*de.D+de.H;break;case"[m]":case"[mm]":qe=60*(24*de.D+de.H)+de.M;break;case"[s]":case"[ss]":qe=60*(60*(24*de.D+de.H)+de.M)+Math.round(de.S+de.u);break;default:throw"bad abstime format: "+we}Fe=we.length===3?1:2;break;case 101:qe=Ne,Fe=1}return 0<Fe?Lt(qe,Fe):""}(m[y].t.charCodeAt(0),m[y].v,f,L),m[y].t="t";break;case"n":case"?":for(R=y+1;m[R]!=null&&((v=m[R].t)==="?"||v==="D"||(v===" "||v==="t")&&m[R+1]!=null&&(m[R+1].t==="?"||m[R+1].t==="t"&&m[R+1].v==="/")||m[y].t==="("&&(v===" "||v==="n"||v===")")||v==="t"&&(m[R].v==="/"||m[R].v===" "&&m[R+1]!=null&&m[R+1].t=="?"));)m[y].v+=m[R].v,m[R]={v:"",t:";"},++R;O+=m[y].v,y=R-1;break;case"G":m[y].t="t",m[y].v=kr(n,l)}var I,V,X="";if(0<O.length){O.charCodeAt(0)==40?(I=n<0&&O.charCodeAt(0)===45?-n:n,V=Aa("n",O,I)):(V=Aa("n",O,I=n<0&&1<c?-n:n),I<0&&m[0]&&m[0].t=="t"&&(V=V.substr(1),m[0].v="-"+m[0].v)),R=V.length-1;for(var ae=m.length,y=0;y<m.length;++y)if(m[y]!=null&&m[y].t!="t"&&-1<m[y].v.indexOf(".")){ae=y;break}var te=m.length;if(ae===m.length&&V.indexOf("E")===-1){for(y=m.length-1;0<=y;--y)m[y]!=null&&"n?".indexOf(m[y].t)!==-1&&(R>=m[y].v.length-1?(R-=m[y].v.length,m[y].v=V.substr(R+1,m[y].v.length)):R<0?m[y].v="":(m[y].v=V.substr(0,R+1),R=-1),m[y].t="t",te=y);0<=R&&te<m.length&&(m[te].v=V.substr(0,R+1)+m[te].v)}else if(ae!==m.length&&V.indexOf("E")===-1){for(R=V.indexOf(".")-1,y=ae;0<=y;--y)if(m[y]!=null&&"n?".indexOf(m[y].t)!==-1){for(h=-1<m[y].v.indexOf(".")&&y===ae?m[y].v.indexOf(".")-1:m[y].v.length-1,X=m[y].v.substr(h+1);0<=h;--h)0<=R&&(m[y].v.charAt(h)==="0"||m[y].v.charAt(h)==="#")&&(X=V.charAt(R--)+X);m[y].v=X,m[y].t="t",te=y}for(0<=R&&te<m.length&&(m[te].v=V.substr(0,R+1)+m[te].v),R=V.indexOf(".")+1,y=ae;y<m.length;++y)if(m[y]!=null&&("n?(".indexOf(m[y].t)!==-1||y===ae)){for(h=-1<m[y].v.indexOf(".")&&y===ae?m[y].v.indexOf(".")+1:0,X=m[y].v.substr(0,h);h<m[y].v.length;++h)R<V.length&&(X+=V.charAt(R++));m[y].v=X,m[y].t="t",te=y}}}for(y=0;y<m.length;++y)m[y]!=null&&-1<"n?".indexOf(m[y].t)&&(I=1<c&&n<0&&0<y&&m[y-1].v==="-"?-n:n,m[y].v=Aa(m[y].t,m[y].v,I),m[y].t="t");var ce="";for(y=0;y!==m.length;++y)m[y]!=null&&(ce+=m[y].v);return ce}var Jf=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Xf(a,n){if(n!=null){var l=parseFloat(n[2]);switch(n[1]){case"=":if(a==l)return 1;break;case">":if(l<a)return 1;break;case"<":if(a<l)return 1;break;case"<>":if(a!=l)return 1;break;case">=":if(l<=a)return 1;break;case"<=":if(a<=l)return 1}}}function Cg(a,n){var l=function(d){for(var m=[],g=!1,y=0,v=0;y<d.length;++y)switch(d.charCodeAt(y)){case 34:g=!g;break;case 95:case 42:case 92:++y;break;case 59:m[m.length]=d.substr(v,y-v),v=y+1}if(m[m.length]=d.substr(v),g===!0)throw new Error("Format |"+d+"| unterminated string ");return m}(a),c=l.length,f=l[c-1].indexOf("@");if(c<4&&-1<f&&--c,4<l.length)throw new Error("cannot find right format for |"+l.join("|")+"|");if(typeof n!="number")return[4,l.length===4||-1<f?l[l.length-1]:"@"];switch(l.length){case 1:l=-1<f?["General","General","General",l[0]]:[l[0],l[0],l[0],"@"];break;case 2:l=-1<f?[l[0],l[0],l[0],l[1]]:[l[0],l[1],l[0],"@"];break;case 3:l=-1<f?[l[0],l[1],l[0],l[2]]:[l[0],l[1],l[2],"@"]}var h=0<n?l[0]:n<0?l[1]:l[2];return l[0].indexOf("[")===-1&&l[1].indexOf("[")===-1?[c,h]:l[0].match(/\[[=<>]/)==null&&l[1].match(/\[[=<>]/)==null?[c,h]:(a=l[0].match(Jf),h=l[1].match(Jf),Xf(n,a)?[c,l[0]]:Xf(n,h)?[c,l[1]]:[c,l[a!=null&&h!=null?2:1]])}function Us(a,n,l){l==null&&(l={});var c="";switch(typeof a){case"string":c=a=="m/d/yy"&&l.dateNF?l.dateNF:a;break;case"number":(c=(c=a==14&&l.dateNF?l.dateNF:(l.table!=null?l.table:oe)[a])==null?l.table&&l.table[pe[a]]||oe[pe[a]]:c)==null&&(c=se[a]||"General")}if(Ce(c,0))return kr(n,l);var f=Cg(c,n=n instanceof Date?xt(n,l.date1904):n);if(Ce(f[1]))return kr(n,l);if(n===!0)n="TRUE";else if(n===!1)n="FALSE";else if(n===""||n==null)return"";return xg(f[1],n,l,f[0])}function pa(a,n){if(typeof n!="number"){n=+n||-1;for(var l=0;l<392;++l)if(oe[l]!=null){if(oe[l]==a){n=l;break}}else n<0&&(n=l);n<0&&(n=391)}return oe[n]=a,n}function ni(a){for(var n=0;n!=392;++n)a[n]!==void 0&&pa(a[n],n)}function Mo(){var a;(a=a||{})[0]="General",a[1]="0",a[2]="0.00",a[3]="#,##0",a[4]="#,##0.00",a[9]="0%",a[10]="0.00%",a[11]="0.00E+00",a[12]="# ?/?",a[13]="# ??/??",a[14]="m/d/yy",a[15]="d-mmm-yy",a[16]="d-mmm",a[17]="mmm-yy",a[18]="h:mm AM/PM",a[19]="h:mm:ss AM/PM",a[20]="h:mm",a[21]="h:mm:ss",a[22]="m/d/yy h:mm",a[37]="#,##0 ;(#,##0)",a[38]="#,##0 ;[Red](#,##0)",a[39]="#,##0.00;(#,##0.00)",a[40]="#,##0.00;[Red](#,##0.00)",a[45]="mm:ss",a[46]="[h]:mm:ss",a[47]="mmss.0",a[48]="##0.0E+0",a[49]="@",a[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',oe=a}var Qf={format:Us,load:pa,_table:oe,load_table:ni,parse_date_code:Ie,is_date:eo,get_table:function(){return Qf._table=oe}},Fg={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},Zf=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,Va,Dg=function(){var a={};a.version="1.2.0";var n=function(){for(var R=0,O=new Array(256),I=0;I!=256;++I)R=1&(R=1&(R=1&(R=1&(R=1&(R=1&(R=1&(R=1&(R=I)?-306674912^R>>>1:R>>>1)?-306674912^R>>>1:R>>>1)?-306674912^R>>>1:R>>>1)?-306674912^R>>>1:R>>>1)?-306674912^R>>>1:R>>>1)?-306674912^R>>>1:R>>>1)?-306674912^R>>>1:R>>>1)?-306674912^R>>>1:R>>>1,O[I]=R;return typeof Int32Array<"u"?new Int32Array(O):O}(),l=function(R){for(var O=0,I=0,X=0,V=new(typeof Int32Array<"u"?Int32Array:Array)(4096),X=0;X!=256;++X)V[X]=R[X];for(X=0;X!=256;++X)for(I=R[X],O=256+X;O<4096;O+=256)I=V[O]=I>>>8^R[255&I];var ae=[];for(X=1;X!=16;++X)ae[X-1]=typeof Int32Array<"u"?V.subarray(256*X,256*X+256):V.slice(256*X,256*X+256);return ae}(n),c=l[0],f=l[1],h=l[2],d=l[3],m=l[4],g=l[5],y=l[6],v=l[7],x=l[8],C=l[9],F=l[10],k=l[11],D=l[12],P=l[13],L=l[14];return a.table=n,a.bstr=function(R,O){for(var I=-1^O,V=0,X=R.length;V<X;)I=I>>>8^n[255&(I^R.charCodeAt(V++))];return~I},a.buf=function(R,O){for(var I=-1^O,V=R.length-15,X=0;X<V;)I=L[R[X++]^255&I]^P[R[X++]^I>>8&255]^D[R[X++]^I>>16&255]^k[R[X++]^I>>>24]^F[R[X++]]^C[R[X++]]^x[R[X++]]^v[R[X++]]^y[R[X++]]^g[R[X++]]^m[R[X++]]^d[R[X++]]^h[R[X++]]^f[R[X++]]^c[R[X++]]^n[R[X++]];for(V+=15;X<V;)I=I>>>8^n[255&(I^R[X++])];return~I},a.str=function(R,O){for(var I,V=-1^O,X=0,ae=R.length,te=0;X<ae;)V=(te=R.charCodeAt(X++))<128?V>>>8^n[255&(V^te)]:te<2048?(V=V>>>8^n[255&(V^(192|te>>6&31))])>>>8^n[255&(V^(128|63&te))]:55296<=te&&te<57344?(te=64+(1023&te),I=1023&R.charCodeAt(X++),(V=(V=(V=V>>>8^n[255&(V^(240|te>>8&7))])>>>8^n[255&(V^(128|te>>2&63))])>>>8^n[255&(V^(128|I>>6&15|(3&te)<<4))])>>>8^n[255&(V^(128|63&I))]):(V=(V=V>>>8^n[255&(V^(224|te>>12&15))])>>>8^n[255&(V^(128|te>>6&63))])>>>8^n[255&(V^(128|63&te))];return~V},a}(),_t=function(){var a,n={};function l(z){if(z.charAt(z.length-1)=="/")return z.slice(0,-1).indexOf("/")===-1?z:l(z.slice(0,-1));var he=z.lastIndexOf("/");return he===-1?z:z.slice(0,he+1)}function c(z){if(z.charAt(z.length-1)=="/")return c(z.slice(0,-1));var he=z.lastIndexOf("/");return he===-1?z:z.slice(he+1)}function f(z){gs(z,0);for(var he,J={};z.l<=z.length-4;){var fe=z.read_shift(2),K=z.read_shift(2),Ee=z.l+K,ue={};fe===21589&&(1&(he=z.read_shift(1))&&(ue.mtime=z.read_shift(4)),5<K&&(2&he&&(ue.atime=z.read_shift(4)),4&he&&(ue.ctime=z.read_shift(4))),ue.mtime&&(ue.mt=new Date(1e3*ue.mtime))),z.l=Ee,J[fe]=ue}return J}function h(){return a=a||of}function d(z,he){if(z[0]==80&&z[1]==75)return _r(z,he);if((32|z[0])==109&&(32|z[1])==105)return function(Pe,pt){if(R(Pe.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var Qe=pt&&pt.root||"",Be=(H&&Buffer.isBuffer(Pe)?Pe.toString("binary"):R(Pe)).split(`\r `),vt=0,wt="";for(vt=0;vt<Be.length;++vt)if(wt=Be[vt],/^Content-Location:/i.test(wt)&&(wt=wt.slice(wt.indexOf("file")),Qe=Qe||wt.slice(0,wt.lastIndexOf("/")+1),wt.slice(0,Qe.length)!=Qe))for(;0<Qe.length&&(Qe=(Qe=Qe.slice(0,Qe.length-1)).slice(0,Qe.lastIndexOf("/")+1),wt.slice(0,Qe.length)!=Qe););if(Pe=(Be[1]||"").match(/boundary="(.*?)"/),!Pe)throw new Error("MAD cannot find boundary");var Mr="--"+(Pe[1]||""),Ft={FileIndex:[],FullPaths:[]};g(Ft);var Ot,ct=0;for(vt=0;vt<Be.length;++vt){var Jt=Be[vt];Jt!==Mr&&Jt!==Mr+"--"||(ct++&&function($t,Ke,ot){for(var et,Bt="",gr="",fs="",ps=0;ps<10;++ps){var is=Ke[ps];if(!is||is.match(/^\s*$/))break;var Ds=is.match(/^(.*?):\s*([^\s].*)$/);if(Ds)switch(Ds[1].toLowerCase()){case"content-location":Bt=Ds[2].trim();break;case"content-type":fs=Ds[2].trim();break;case"content-transfer-encoding":gr=Ds[2].trim()}}switch(++ps,gr.toLowerCase()){case"base64":et=ve(j(Ke.slice(ps).join("")));break;case"quoted-printable":et=function(As){for(var bo=[],Os=0;Os<As.length;++Os){for(var La=As[Os];Os<=As.length&&La.charAt(La.length-1)=="=";)La=La.slice(0,La.length-1)+As[++Os];bo.push(La)}for(var yo=0;yo<bo.length;++yo)bo[yo]=bo[yo].replace(/[=][0-9A-Fa-f]{2}/g,function(Bb){return String.fromCharCode(parseInt(Bb.slice(1),16))});return ve(bo.join(`\r `))}(Ke.slice(ps));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+gr)}ot=$s($t,Bt.slice(ot.length),et,{unsafe:!0}),fs&&(ot.ctype=fs)}(Ft,Be.slice(Ot,vt),Qe),Ot=vt)}return Ft}(z,he);if(z.length<512)throw new Error("CFB file size "+z.length+" < 512");var J,fe,K,Ee=3,ue=512,Ge=0,ge=[],le=z.slice(0,512);gs(le,0);var ye=function(Pe){if(Pe[Pe.l]==80&&Pe[Pe.l+1]==75)return[0,0];Pe.chk(k,"Header Signature: "),Pe.l+=16;var pt=Pe.read_shift(2,"u");return[Pe.read_shift(2,"u"),pt]}(le);switch(Ee=ye[0]){case 3:ue=512;break;case 4:ue=4096;break;case 0:if(ye[1]==0)return _r(z,he);default:throw new Error("Major Version: Expected 3 or 4 saw "+Ee)}ue!==512&&gs(le=z.slice(0,ue),28);var Oe=z.slice(0,ue);(function(Pe,pt){var Qe=9;switch(Pe.l+=2,Qe=Pe.read_shift(2)){case 9:if(pt!=3)throw new Error("Sector Shift: Expected 9 saw "+Qe);break;case 12:if(pt!=4)throw new Error("Sector Shift: Expected 12 saw "+Qe);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+Qe)}Pe.chk("0600","Mini Sector Shift: "),Pe.chk("000000000000","Reserved: ")})(le,Ee);var dt=le.read_shift(4,"i");if(Ee===3&&dt!==0)throw new Error("# Directory Sectors: Expected 0 saw "+dt);le.l+=4,fe=le.read_shift(4,"i"),le.l+=4,le.chk("00100000","Mini Stream Cutoff Size: "),K=le.read_shift(4,"i"),J=le.read_shift(4,"i"),ht=le.read_shift(4,"i"),Ge=le.read_shift(4,"i");for(var lt,Ze=0;Ze<109&&!((lt=le.read_shift(4,"i"))<0);++Ze)ge[Ze]=lt;var Ye=function(Pe,pt){for(var Qe=Math.ceil(Pe.length/pt)-1,Be=[],vt=1;vt<Qe;++vt)Be[vt-1]=Pe.slice(vt*pt,(vt+1)*pt);return Be[Qe-1]=Pe.slice(Qe*pt),Be}(z,ue);(function Pe(pt,Qe,Be,vt,wt){var Mr=F;if(pt===F){if(Qe!==0)throw new Error("DIFAT chain shorter than expected")}else if(pt!==-1){var Ft=Be[pt],Ot=(vt>>>2)-1;if(Ft){for(var ct=0;ct<Ot&&(Mr=so(Ft,4*ct))!==F;++ct)wt.push(Mr);Pe(so(Ft,vt-4),Qe-1,Be,vt,wt)}}})(ht,Ge,Ye,ue,ge);var at=function(Pe,pt,Qe,Be){var vt=Pe.length,wt=[],Mr=[],Ft=[],Ot=[],ct=Be-1,Jt=0,$t=0,Ke=0,ot=0;for(Jt=0;Jt<vt;++Jt)if(Ft=[],vt<=(Ke=Jt+pt)&&(Ke-=vt),!Mr[Ke]){Ot=[];var et=[];for($t=Ke;0<=$t;){et[$t]=!0,Mr[$t]=!0,Ft[Ft.length]=$t,Ot.push(Pe[$t]);var Bt=Qe[Math.floor(4*$t/Be)];if(Be<4+(ot=4*$t&ct))throw new Error("FAT boundary crossed: "+$t+" 4 "+Be);if(!Pe[Bt]||($t=so(Pe[Bt],ot),et[$t]))break}wt[Ke]={nodes:Ft,data:Tu([Ot])}}return wt}(Ye,fe,ge,ue);at[fe].name="!Directory",0<J&&K!==F&&(at[K].name="!MiniFAT"),at[ge[0]].name="!FAT",at.fat_addrs=ge,at.ssz=ue;var dt=[],ht=[],Ge=[];return function(Pe,pt,Qe,Be,vt,wt,Mr){for(var Ft,Ot=0,ct=Qe.length?2:0,Jt=Pe[fe].data,$t=0,Ke=0;$t<Jt.length;$t+=128){var ot=Jt.slice($t,$t+128);gs(ot,64),Ke=ot.read_shift(2),Ft=gn(ot,0,Ke-ct),Qe.push(Ft);var et={name:Ft,type:ot.read_shift(1),color:ot.read_shift(1),L:ot.read_shift(4,"i"),R:ot.read_shift(4,"i"),C:ot.read_shift(4,"i"),clsid:ot.read_shift(16),state:ot.read_shift(4,"i"),start:0,size:0};ot.read_shift(2)+ot.read_shift(2)+ot.read_shift(2)+ot.read_shift(2)!==0&&(et.ct=m(ot,ot.l-8)),ot.read_shift(2)+ot.read_shift(2)+ot.read_shift(2)+ot.read_shift(2)!==0&&(et.mt=m(ot,ot.l-8)),et.start=ot.read_shift(4,"i"),et.size=ot.read_shift(4,"i"),et.size<0&&et.start<0&&(et.size=et.type=0,et.start=F,et.name=""),et.type===5?(Ot=et.start,0<Be&&Ot!==F&&(Pe[Ot].name="!StreamData")):4096<=et.size?(et.storage="fat",Pe[et.start]===void 0&&(Pe[et.start]=function(Bt,gr,fs,ps,is){var Ds=[],As=[];is=is||[];var bo=ps-1,Os=0,La=0;for(Os=gr;0<=Os;){is[Os]=!0,Ds[Ds.length]=Os,As.push(Bt[Os]);var yo=fs[Math.floor(4*Os/ps)];if(ps<4+(La=4*Os&bo))throw new Error("FAT boundary crossed: "+Os+" 4 "+ps);if(!Bt[yo])break;Os=so(Bt[yo],La)}return{nodes:Ds,data:Tu([As])}}(pt,et.start,Pe.fat_addrs,Pe.ssz)),Pe[et.start].name=et.name,et.content=Pe[et.start].data.slice(0,et.size)):(et.storage="minifat",et.size<0?et.size=0:Ot!==F&&et.start!==F&&Pe[Ot]&&(et.content=function(Bt,gr,fs){for(var ps=Bt.start,is=Bt.size,Ds=[],As=ps;fs&&0<is&&0<=As;)Ds.push(gr.slice(As*C,As*C+C)),is-=C,As=so(fs,4*As);return Ds.length===0?be(0):ut(Ds).slice(0,Bt.size)}(et,Pe[Ot].data,(Pe[Mr]||{}).data))),et.content&&gs(et.content,0),vt[Ft]=et,wt.push(et)}}(at,Ye,dt,J,{},ht,K),function(Pe,pt,Qe){for(var Be=0,vt=0,wt=0,Mr=0,Ft=0,Ot=Qe.length,ct=[],Jt=[];Be<Ot;++Be)ct[Be]=Jt[Be]=Be,pt[Be]=Qe[Be];for(;Ft<Jt.length;++Ft)Be=Jt[Ft],vt=Pe[Be].L,wt=Pe[Be].R,Mr=Pe[Be].C,ct[Be]===Be&&(vt!==-1&&ct[vt]!==vt&&(ct[Be]=ct[vt]),wt!==-1&&ct[wt]!==wt&&(ct[Be]=ct[wt])),Mr!==-1&&(ct[Mr]=Be),vt!==-1&&Be!=ct[Be]&&(ct[vt]=ct[Be],Jt.lastIndexOf(vt)<Ft&&Jt.push(vt)),wt!==-1&&Be!=ct[Be]&&(ct[wt]=ct[Be],Jt.lastIndexOf(wt)<Ft&&Jt.push(wt));for(Be=1;Be<Ot;++Be)ct[Be]===Be&&(wt!==-1&&ct[wt]!==wt?ct[Be]=ct[wt]:vt!==-1&&ct[vt]!==vt&&(ct[Be]=ct[vt]));for(Be=1;Be<Ot;++Be)if(Pe[Be].type!==0){if((Ft=Be)!=ct[Ft])for(;Ft=ct[Ft],pt[Be]=pt[Ft]+"/"+pt[Be],Ft!==0&&ct[Ft]!==-1&&Ft!=ct[Ft];);ct[Be]=-1}for(pt[0]+="/",Be=1;Be<Ot;++Be)Pe[Be].type!==2&&(pt[Be]+="/")}(ht,Ge,dt),dt.shift(),Ge={FileIndex:ht,FullPaths:Ge},he&&he.raw&&(Ge.raw={header:Oe,sectors:Ye}),Ge}function m(z,he){return new Date(1e3*(ds(z,he+4)/1e7*Math.pow(2,32)+ds(z,he)/1e7-11644473600))}function g(z,fe){var J=fe||{},fe=J.root||"Root Entry";if(z.FullPaths||(z.FullPaths=[]),z.FileIndex||(z.FileIndex=[]),z.FullPaths.length!==z.FileIndex.length)throw new Error("inconsistent CFB structure");z.FullPaths.length===0&&(z.FullPaths[0]=fe+"/",z.FileIndex[0]={name:fe,type:5}),J.CLSID&&(z.FileIndex[0].clsid=J.CLSID),fe=z,J="Sh33tJ5",_t.find(fe,"/"+J)||((z=be(4))[0]=55,z[1]=z[3]=50,z[2]=54,fe.FileIndex.push({name:J,type:2,content:z,size:4,L:69,R:69,C:69}),fe.FullPaths.push(fe.FullPaths[0]+J),y(fe))}function y(z,he){g(z);for(var J=!1,fe=!1,K=z.FullPaths.length-1;0<=K;--K){var Ee=z.FileIndex[K];switch(Ee.type){case 0:fe?J=!0:(z.FileIndex.pop(),z.FullPaths.pop());break;case 1:case 2:case 5:fe=!0,isNaN(Ee.R*Ee.L*Ee.C)&&(J=!0),-1<Ee.R&&-1<Ee.L&&Ee.R==Ee.L&&(J=!0);break;default:J=!0}}if(J||he){for(var ue=new Date(1987,1,19),ge=0,le=Object.create?Object.create(null):{},ye=[],K=0;K<z.FullPaths.length;++K)le[z.FullPaths[K]]=!0,z.FileIndex[K].type!==0&&ye.push([z.FullPaths[K],z.FileIndex[K]]);for(K=0;K<ye.length;++K){var Oe=l(ye[K][0]);(fe=le[Oe])||(ye.push([Oe,{name:c(Oe).replace("/",""),type:1,clsid:P,ct:ue,mt:ue,content:null}]),le[Oe]=!0)}for(ye.sort(function(Ye,at){return function(dt,ht){for(var Ge,Pe=dt.split("/"),pt=ht.split("/"),Qe=0,Be=Math.min(Pe.length,pt.length);Qe<Be;++Qe){if(Ge=Pe[Qe].length-pt[Qe].length)return Ge;if(Pe[Qe]!=pt[Qe])return Pe[Qe]<pt[Qe]?-1:1}return Pe.length-pt.length}(Ye[0],at[0])}),z.FullPaths=[],z.FileIndex=[],K=0;K<ye.length;++K)z.FullPaths[K]=ye[K][0],z.FileIndex[K]=ye[K][1];for(K=0;K<ye.length;++K){var lt=z.FileIndex[K],Ze=z.FullPaths[K];if(lt.name=c(Ze).replace("/",""),lt.L=lt.R=lt.C=-(lt.color=1),lt.size=lt.content?lt.content.length:0,lt.start=0,lt.clsid=lt.clsid||P,K===0)lt.C=1<ye.length?1:-1,lt.size=0,lt.type=5;else if(Ze.slice(-1)=="/"){for(ge=K+1;ge<ye.length&&l(z.FullPaths[ge])!=Ze;++ge);for(lt.C=ge>=ye.length?-1:ge,ge=K+1;ge<ye.length&&l(z.FullPaths[ge])!=l(Ze);++ge);lt.R=ge>=ye.length?-1:ge,lt.type=1}else l(z.FullPaths[K+1]||"")==l(Ze)&&(lt.R=K+1),lt.type=2}}}function v(z,he){var J=he||{};if(J.fileType=="mad")return function(Ze,Ye){for(var at=Ye||{},dt=at.boundary||"SheetJS",ht=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(dt="------="+dt).slice(2)+'"',"","",""],Ge=Ze.FullPaths[0],Pe=Ge,pt=Ze.FileIndex[0],Qe=1;Qe<Ze.FullPaths.length;++Qe)if(Pe=Ze.FullPaths[Qe].slice(Ge.length),(pt=Ze.FileIndex[Qe]).size&&pt.content&&Pe!="Sh33tJ5"){Pe=Pe.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(ct){return"_x"+ct.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(ct){return"_u"+ct.charCodeAt(0).toString(16)+"_"});for(var Be=pt.content,vt=H&&Buffer.isBuffer(Be)?Be.toString("binary"):R(Be),wt=0,Mr=Math.min(1024,vt.length),Ft=0,Ot=0;Ot<=Mr;++Ot)32<=(Ft=vt.charCodeAt(Ot))&&Ft<128&&++wt;Be=4*Mr/5<=wt,ht.push(dt),ht.push("Content-Location: "+(at.root||"file:///C:/SheetJS/")+Pe),ht.push("Content-Transfer-Encoding: "+(Be?"quoted-printable":"base64")),ht.push("Content-Type: "+function(Ke,Jt){if(Ke.ctype)return Ke.ctype;var $t=Ke.name||"",Ke=$t.match(/\.([^\.]+)$/);return Ke&&cs[Ke[1]]||Jt&&(Ke=($t=Jt).match(/[\.\\]([^\.\\])+$/))&&cs[Ke[1]]?cs[Ke[1]]:"application/octet-stream"}(pt,Pe)),ht.push(""),ht.push((Be?function(ct){ct=ct.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(fs){return fs=fs.charCodeAt(0).toString(16).toUpperCase(),"="+(fs.length==1?"0"+fs:fs)}),(ct=ct.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)==` `&&(ct="=0D"+ct.slice(1)),ct=ct.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,` =0A`).replace(/([^\r\n])\n/gm,"$1=0A");for(var Jt=[],$t=ct.split(`\r `),Ke=0;Ke<$t.length;++Ke){var ot=$t[Ke];if(ot.length!=0)for(var et=0;et<ot.length;){var Bt=76,gr=ot.slice(et,et+Bt);gr.charAt(Bt-1)=="="?Bt--:gr.charAt(Bt-2)=="="?Bt-=2:gr.charAt(Bt-3)=="="&&(Bt-=3),gr=ot.slice(et,et+Bt),(et+=Bt)<ot.length&&(gr+="="),Jt.push(gr)}else Jt.push("")}return Jt.join(`\r `)}:function(ct){for(var Jt=ie(ct),$t=[],Ke=0;Ke<Jt.length;Ke+=76)$t.push(Jt.slice(Ke,Ke+76));return $t.join(`\r `)+`\r `})(vt))}return ht.push(dt+`--\r `),ht.join(`\r `)}(z,J);if(y(z),J.fileType==="zip")return function(Ze,at){var at=at||{},dt=[],ht=[],Ge=be(1),Pe=at.compression?8:0,pt=0,Qe=0,Be=0,vt=0,wt=0,Mr=Ze.FullPaths[0],Ft=Mr,Ot=Ze.FileIndex[0],ct=[],Jt=0;for(Qe=1;Qe<Ze.FullPaths.length;++Qe)if(Ft=Ze.FullPaths[Qe].slice(Mr.length),(Ot=Ze.FileIndex[Qe]).size&&Ot.content&&Ft!="Sh33tJ5"){var $t=vt,Ke=be(Ft.length);for(Be=0;Be<Ft.length;++Be)Ke.write_shift(1,127&Ft.charCodeAt(Be));Ke=Ke.slice(0,Ke.l),ct[wt]=Dg.buf(Ot.content,0);var ot=Ot.content;Pe==8&&(ot=function(et){return x?x.deflateRawSync(et):Xe(et)}(ot)),(Ge=be(30)).write_shift(4,67324752),Ge.write_shift(2,20),Ge.write_shift(2,pt),Ge.write_shift(2,Pe),Ot.mt?function(et,Bt){var gr=(Bt=typeof Bt=="string"?new Date(Bt):Bt).getHours();gr=(gr=gr<<6|Bt.getMinutes())<<5|Bt.getSeconds()>>>1,et.write_shift(2,gr),gr=(gr=(gr=Bt.getFullYear()-1980)<<4|Bt.getMonth()+1)<<5|Bt.getDate(),et.write_shift(2,gr)}(Ge,Ot.mt):Ge.write_shift(4,0),Ge.write_shift(-4,ct[wt]),Ge.write_shift(4,ot.length),Ge.write_shift(4,Ot.content.length),Ge.write_shift(2,Ke.length),Ge.write_shift(2,0),vt+=Ge.length,dt.push(Ge),vt+=Ke.length,dt.push(Ke),vt+=ot.length,dt.push(ot),(Ge=be(46)).write_shift(4,33639248),Ge.write_shift(2,0),Ge.write_shift(2,20),Ge.write_shift(2,pt),Ge.write_shift(2,Pe),Ge.write_shift(4,0),Ge.write_shift(-4,ct[wt]),Ge.write_shift(4,ot.length),Ge.write_shift(4,Ot.content.length),Ge.write_shift(2,Ke.length),Ge.write_shift(2,0),Ge.write_shift(2,0),Ge.write_shift(2,0),Ge.write_shift(2,0),Ge.write_shift(4,0),Ge.write_shift(4,$t),Jt+=Ge.l,ht.push(Ge),Jt+=Ke.length,ht.push(Ke),++wt}return(Ge=be(22)).write_shift(4,101010256),Ge.write_shift(2,0),Ge.write_shift(2,0),Ge.write_shift(2,wt),Ge.write_shift(2,wt),Ge.write_shift(4,Jt),Ge.write_shift(4,vt),Ge.write_shift(2,0),ut([ut(dt),ut(ht),Ge])}(z,J);for(var fe=function(Ze){for(var Ye=0,at=0,dt=0;dt<Ze.FileIndex.length;++dt){var ht=Ze.FileIndex[dt];ht.content&&0<(ht=ht.content.length)&&(ht<4096?Ye+=ht+63>>6:at+=ht+511>>9)}for(var Ge=Ze.FullPaths.length+3>>2,Pe=Ye+127>>7,pt=(Ye+7>>3)+at+Ge+Pe,Qe=pt+127>>7,Be=Qe<=109?0:Math.ceil((Qe-109)/127);Qe<pt+Qe+Be+127>>7;)Be=++Qe<=109?0:Math.ceil((Qe-109)/127);return Ge=[1,Be,Qe,Pe,Ge,at,Ye,0],Ze.FileIndex[0].size=Ye<<6,Ge[7]=(Ze.FileIndex[0].start=Ge[0]+Ge[1]+Ge[2]+Ge[3]+Ge[4]+Ge[5])+(Ge[6]+7>>3),Ge}(z),K=be(fe[7]<<9),ue=0,Ee=0,ue=0;ue<8;++ue)K.write_shift(1,D[ue]);for(ue=0;ue<8;++ue)K.write_shift(2,0);for(K.write_shift(2,62),K.write_shift(2,3),K.write_shift(2,65534),K.write_shift(2,9),K.write_shift(2,6),ue=0;ue<3;++ue)K.write_shift(2,0);for(K.write_shift(4,0),K.write_shift(4,fe[2]),K.write_shift(4,fe[0]+fe[1]+fe[2]+fe[3]-1),K.write_shift(4,0),K.write_shift(4,4096),K.write_shift(4,fe[3]?fe[0]+fe[1]+fe[2]-1:F),K.write_shift(4,fe[3]),K.write_shift(-4,fe[1]?fe[0]-1:F),K.write_shift(4,fe[1]),ue=0;ue<109;++ue)K.write_shift(-4,ue<fe[2]?fe[1]+ue:-1);if(fe[1])for(Ee=0;Ee<fe[1];++Ee){for(;ue<236+127*Ee;++ue)K.write_shift(-4,ue<fe[2]?fe[1]+ue:-1);K.write_shift(-4,Ee===fe[1]-1?F:Ee+1)}function ge(Ze){for(Ee+=Ze;ue<Ee-1;++ue)K.write_shift(-4,ue+1);Ze&&(++ue,K.write_shift(-4,F))}for(Ee=ue=0,Ee+=fe[1];ue<Ee;++ue)K.write_shift(-4,L.DIFSECT);for(Ee+=fe[2];ue<Ee;++ue)K.write_shift(-4,L.FATSECT);ge(fe[3]),ge(fe[4]);for(var le=0,ye=0,Oe=z.FileIndex[0];le<z.FileIndex.length;++le)(Oe=z.FileIndex[le]).content&&((ye=Oe.content.length)<4096||(Oe.start=Ee,ge(ye+511>>9)));for(ge(fe[6]+7>>3);511&K.l;)K.write_shift(-4,L.ENDOFCHAIN);for(le=Ee=ue=0;le<z.FileIndex.length;++le)(Oe=z.FileIndex[le]).content&&(!(ye=Oe.content.length)||4096<=ye||(Oe.start=Ee,ge(ye+63>>6)));for(;511&K.l;)K.write_shift(-4,L.ENDOFCHAIN);for(ue=0;ue<fe[4]<<2;++ue){var lt=z.FullPaths[ue];if(lt&<.length!==0){if(Oe=z.FileIndex[ue],ue===0&&(Oe.start=Oe.size?Oe.start-1:F),lt=ue===0&&J.root||Oe.name,ye=2*(lt.length+1),K.write_shift(64,lt,"utf16le"),K.write_shift(2,ye),K.write_shift(1,Oe.type),K.write_shift(1,Oe.color),K.write_shift(-4,Oe.L),K.write_shift(-4,Oe.R),K.write_shift(-4,Oe.C),Oe.clsid)K.write_shift(16,Oe.clsid,"hex");else for(le=0;le<4;++le)K.write_shift(4,0);K.write_shift(4,Oe.state||0),K.write_shift(4,0),K.write_shift(4,0),K.write_shift(4,0),K.write_shift(4,0),K.write_shift(4,Oe.start),K.write_shift(4,Oe.size),K.write_shift(4,0)}else{for(le=0;le<17;++le)K.write_shift(4,0);for(le=0;le<3;++le)K.write_shift(4,-1);for(le=0;le<12;++le)K.write_shift(4,0)}}for(ue=1;ue<z.FileIndex.length;++ue)if(4096<=(Oe=z.FileIndex[ue]).size)if(K.l=Oe.start+1<<9,H&&Buffer.isBuffer(Oe.content))Oe.content.copy(K,K.l,0,Oe.size),K.l+=Oe.size+511&-512;else{for(le=0;le<Oe.size;++le)K.write_shift(1,Oe.content[le]);for(;511≤++le)K.write_shift(1,0)}for(ue=1;ue<z.FileIndex.length;++ue)if(0<(Oe=z.FileIndex[ue]).size&&Oe.size<4096)if(H&&Buffer.isBuffer(Oe.content))Oe.content.copy(K,K.l,0,Oe.size),K.l+=Oe.size+63&-64;else{for(le=0;le<Oe.size;++le)K.write_shift(1,Oe.content[le]);for(;63≤++le)K.write_shift(1,0)}if(H)K.l=K.length;else for(;K.l<K.length;)K.write_shift(1,0);return K}n.version="1.2.1";var x,C=64,F=-2,k="d0cf11e0a1b11ae1",D=[208,207,17,224,161,177,26,225],P="00000000000000000000000000000000",L={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:F,FREESECT:-1,HEADER_SIGNATURE:k,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:P,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function R(z){for(var he=new Array(z.length),J=0;J<z.length;++J)he[J]=String.fromCharCode(z[J]);return he.join("")}for(var O=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],I=[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],V=[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],X,ae=typeof Uint8Array<"u",te=ae?new Uint8Array(256):[],ce=0;ce<256;++ce)te[ce]=255&((X=139536&((X=ce)<<1|X<<11)|558144&(X<<5|X<<15))>>16|X>>8|X);function _e(z,fe){var J=7&fe,fe=fe>>>3;return(z[fe]|(J<=5?0:z[1+fe]<<8))>>>J&7}function we(z,fe){var J=7&fe,fe=fe>>>3;return(z[fe]|(J<=3?0:z[1+fe]<<8))>>>J&31}function de(z,fe){var J=7&fe,fe=fe>>>3;return(z[fe]|(J<=1?0:z[1+fe]<<8))>>>J&127}function ke(z,ue,J){var fe=7&ue,K=ue>>>3,Ee=(1<<J)-1,ue=z[K]>>>fe;return J<8-fe?ue&Ee:(ue|=z[1+K]<<8-fe,J<16-fe?ue&Ee:(ue|=z[2+K]<<16-fe,J<24-fe?ue&Ee:(ue|=z[3+K]<<24-fe)&Ee))}function qe(z,he,J){var fe=7&he,K=he>>>3;return fe<=5?z[K]|=(7&J)<<fe:(z[K]|=J<<fe&255,z[1+K]=(7&J)>>8-fe),he+3}function He(z,he,J){var fe=he>>>3;return J<<=7&he,z[fe]|=255&J,J>>>=8,z[1+fe]=J,he+8}function Ve(z,he,J){var fe=he>>>3;return J<<=7&he,z[fe]|=255&J,J>>>=8,z[1+fe]=255&J,z[2+fe]=J>>>8,he+16}function ze(z,he){var J=z.length,fe=he<2*J?2*J:he+5,K=0;if(he<=J)return z;if(H){var Ee=Ae(fe);if(z.copy)z.copy(Ee);else for(;K<z.length;++K)Ee[K]=z[K];return Ee}if(ae){var ue=new Uint8Array(fe);if(ue.set)ue.set(z);else for(;K<J;++K)ue[K]=z[K];return ue}return z.length=fe,z}function Ne(z){for(var he=new Array(z),J=0;J<z;++J)he[J]=0;return he}function Fe(z,he,J){for(var fe,K=1,ye=0,Ee=0,ue=0,ge=z.length,le=ae?new Uint16Array(32):Ne(32),ye=0;ye<32;++ye)le[ye]=0;for(ye=ge;ye<J;++ye)z[ye]=0;ge=z.length;var Oe=ae?new Uint16Array(ge):Ne(ge);for(ye=0;ye<ge;++ye)le[fe=z[ye]]++,K<fe&&(K=fe),Oe[ye]=0;for(le[0]=0,ye=1;ye<=K;++ye)le[ye+16]=ue=ue+le[ye-1]<<1;for(ye=0;ye<ge;++ye)(ue=z[ye])!=0&&(Oe[ye]=le[ue+16]++);var lt,Ze,Ye,at;for(ye=0;ye<ge;++ye)if((lt=z[ye])!=0)for(Ze=Oe[ye],Ye=K,at=void 0,at=te[255&Ze],ue=(Ye<=8?at>>>8-Ye:(at=at<<8|te[Ze>>8&255],Ye<=16?at>>>16-Ye:(at=at<<8|te[Ze>>16&255])>>>24-Ye))>>K-lt,Ee=(1<<K+4-lt)-1;0<=Ee;--Ee)he[ue|Ee<<lt]=15<|ye<<4;return K}var $e=ae?new Uint16Array(512):Ne(512),rt=ae?new Uint16Array(32):Ne(32);if(!ae){for(var gt=0;gt<512;++gt)$e[gt]=0;for(gt=0;gt<32;++gt)rt[gt]=0}(function(){for(var z=[],he=0;he<32;he++)z.push(5);Fe(z,rt,32);for(var J=[],he=0;he<=143;he++)J.push(8);for(;he<=255;he++)J.push(9);for(;he<=279;he++)J.push(7);for(;he<=287;he++)J.push(8);Fe(J,$e,288)})();var Nt=function(){for(var z=ae?new Uint8Array(32768):[],he=0,J=0;he<V.length-1;++he)for(;J<V[he+1];++J)z[J]=he;for(;J<32768;++J)z[J]=29;for(var fe=ae?new Uint8Array(259):[],he=0,J=0;he<I.length-1;++he)for(;J<I[he+1];++J)fe[J]=he;return function(K,Ee){return(K.length<8?function(ue,ge){for(var le=0;le<ue.length;){var ye=Math.min(65535,ue.length-le),Oe=le+ye==ue.length;for(ge.write_shift(1,+Oe),ge.write_shift(2,ye),ge.write_shift(2,65535&~ye);0<ye--;)ge[ge.l++]=ue[le++]}return ge.l}:function(ue,ge){for(var le=0,ye=0,Oe=ae?new Uint16Array(32768):[];ye<ue.length;){var lt=Math.min(65535,ue.length-ye);if(lt<10){for(7&(le=qe(ge,le,+(ye+lt==ue.length)))&&(le+=8-(7&le)),ge.l=le/8|0,ge.write_shift(2,lt),ge.write_shift(2,65535&~lt);0<lt--;)ge[ge.l++]=ue[ye++];le=8*ge.l}else{le=qe(ge,le,+(ye+lt==ue.length)+2);for(var Ze=0;0<lt--;){var Ye=ue[ye],Ze=32767&(Ze<<5^Ye),at=-1,dt=0;if((at=Oe[Ze])&&(ye<(at|=-32768&ye)&&(at-=32768),at<ye))for(;ue[at+dt]==ue[ye+dt]&&dt<250;)++dt;if(2<dt){(Ye=fe[dt])<=22?le=He(ge,le,te[Ye+1]>>1)-1:(He(ge,le,3),He(ge,le+=5,te[Ye-23]>>5),le+=3);var ht=Ye<8?0:Ye-4>>2;0<ht&&(Ve(ge,le,dt-I[Ye]),le+=ht),Ye=z[ye-at],le=He(ge,le,te[Ye]>>3),le-=3;var Ge=Ye<4?0:Ye-2>>1;0<Ge&&(Ve(ge,le,ye-at-V[Ye]),le+=Ge);for(var Pe=0;Pe<dt;++Pe)Oe[Ze]=32767&ye,Ze=32767&(Ze<<5^ue[ye]),++ye;lt-=dt-1}else Ye<=143?Ye+=48:(ht=((ht=1)&ht)<<(7&(Ge=le)),ge[Ge>>>3]|=ht,le=Ge+1),le=He(ge,le,te[Ye]),Oe[Ze]=32767&ye,++ye}le=He(ge,le,0)-1}}return ge.l=(le+7)/8|0,ge.l})(K,Ee)}}();function Xe(J){var he=be(50+Math.floor(1.1*J.length)),J=Nt(J,he);return he.slice(0,J)}var Re=ae?new Uint16Array(32768):Ne(32768),kt=ae?new Uint16Array(32768):Ne(32768),ar=ae?new Uint16Array(128):Ne(128),Kt=1,vr=1;function Jr(z,he){if(z[0]==3&&!(3&z[1]))return[W(he),2];for(var J=0,fe=0,K=Ae(he||1<<18),Ee=0,ue=K.length>>>0,ge=0,le=0;!(1&fe);)if(fe=_e(z,J),J+=3,fe>>>1!=0)for(le=fe>>1==1?(ge=9,5):(J=function(dt,ht){var Ge,Pe,pt,Qe=we(dt,ht)+257,Be=we(dt,ht+=5)+1,vt=(pt=7&(Pe=ht+=5),4+(((Ge=dt)[Pe=Pe>>>3]|(pt<=4?0:Ge[1+Pe]<<8))>>>pt&15));ht+=4;for(var wt=0,Mr=ae?new Uint8Array(19):Ne(19),Ft=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Ot=1,ct=ae?new Uint8Array(8):Ne(8),Jt=ae?new Uint8Array(8):Ne(8),$t=Mr.length,Ke=0;Ke<vt;++Ke)Mr[O[Ke]]=wt=_e(dt,ht),Ot<wt&&(Ot=wt),ct[wt]++,ht+=3;var ot=0;for(ct[0]=0,Ke=1;Ke<=Ot;++Ke)Jt[Ke]=ot=ot+ct[Ke-1]<<1;for(Ke=0;Ke<$t;++Ke)(ot=Mr[Ke])!=0&&(Ft[Ke]=Jt[ot]++);for(var et,Ke=0;Ke<$t;++Ke)if((et=Mr[Ke])!=0){ot=te[Ft[Ke]]>>8-et;for(var Bt=(1<<7-et)-1;0<=Bt;--Bt)ar[ot|Bt<<et]=7&et|Ke<<3}for(var gr,fs,ps,is=[],Ot=1;is.length<Qe+Be;)switch(ht+=7&(ot=ar[de(dt,ht)]),ot>>>=3){case 16:for(wt=3+(ps=void 0,ps=7&(fs=ht),((gr=dt)[fs=fs>>>3]|(ps<=6?0:gr[1+fs]<<8))>>>ps&3),ht+=2,ot=is[is.length-1];0<wt--;)is.push(ot);break;case 17:for(wt=3+_e(dt,ht),ht+=3;0<wt--;)is.push(0);break;case 18:for(wt=11+de(dt,ht),ht+=7;0<wt--;)is.push(0);break;default:is.push(ot),Ot<ot&&(Ot=ot)}var Ds=is.slice(0,Qe),As=is.slice(Qe);for(Ke=Qe;Ke<286;++Ke)Ds[Ke]=0;for(Ke=Be;Ke<30;++Ke)As[Ke]=0;return Kt=Fe(Ds,Re,286),vr=Fe(As,kt,30),ht}(z,J),ge=Kt,vr);;){!he&&ue<Ee+32767&&(ue=(K=ze(K,Ee+32767)).length);var ye=ke(z,J,ge),Oe=(fe>>>1==1?$e:Re)[ye];if(J+=15&Oe,((Oe>>>=4)>>>8&255)==0)K[Ee++]=Oe;else{if(Oe==256)break;var lt=(Oe-=257)<8?0:Oe-4>>2;5<lt&&(lt=0);var Ze=Ee+I[Oe];0<lt&&(Ze+=ke(z,J,lt),J+=lt),ye=ke(z,J,le),J+=15&(Oe=(fe>>>1==1?rt:kt)[ye]);var ye=(Oe>>>=4)<4?0:Oe-2>>1,Ye=V[Oe];for(0<ye&&(Ye+=ke(z,J,ye),J+=ye),!he&&ue<Ze&&(ue=(K=ze(K,Ze+100)).length);Ee<Ze;)K[Ee]=K[Ee-Ye],++Ee}}else{7&J&&(J+=8-(7&J));var at=z[J>>>3]|z[1+(J>>>3)]<<8;if(J+=32,0<at)for(!he&&ue<Ee+at&&(ue=(K=ze(K,Ee+at)).length);0<at--;)K[Ee++]=z[J>>>3],J+=8}return he?[K,J+7>>>3]:[K.slice(0,Ee),J+7>>>3]}function Z(z,he){return he=Jr(z.slice(z.l||0),he),z.l+=he[1],he[0]}function wr(z,he){if(!z)throw new Error(he);typeof console<"u"&&console.error(he)}function _r(z,he){var J=z;gs(J,0);var fe={FileIndex:[],FullPaths:[]};g(fe,{root:he.root});for(var K=J.length-4;(J[K]!=80||J[K+1]!=75||J[K+2]!=5||J[K+3]!=6)&&0<=K;)--K;J.l=K+4,J.l+=4;var Ee=J.read_shift(2);for(J.l+=6,he=J.read_shift(4),J.l=he,K=0;K<Ee;++K){J.l+=20;var ue=J.read_shift(4),ge=J.read_shift(4),le=J.read_shift(2),ye=J.read_shift(2),Oe=J.read_shift(2);J.l+=8;var lt=J.read_shift(4),Ze=f(J.slice(J.l+le,J.l+le+ye));J.l+=le+ye+Oe,Oe=J.l,J.l=lt+4,function(Ye,at,dt,ht,Ge){Ye.l+=2;var Pe=Ye.read_shift(2),pt=Ye.read_shift(2),Qe=function(gr){var Ke=65535&gr.read_shift(2),ot=65535&gr.read_shift(2),et=new Date,Bt=31&ot,gr=15&(ot>>>=5);return ot>>>=4,et.setMilliseconds(0),et.setFullYear(1980+ot),et.setMonth(gr-1),et.setDate(Bt),gr=31&Ke,Bt=63&(Ke>>>=5),Ke>>>=6,et.setHours(Ke),et.setMinutes(Bt),et.setSeconds(gr<<1),et}(Ye);if(8257&Pe)throw new Error("Unsupported ZIP encryption");Ye.read_shift(4);for(var Be,vt=Ye.read_shift(4),wt=Ye.read_shift(4),Mr=Ye.read_shift(2),Ft=Ye.read_shift(2),Ot="",ct=0;ct<Mr;++ct)Ot+=String.fromCharCode(Ye[Ye.l++]);Ft&&(((Be=f(Ye.slice(Ye.l,Ye.l+Ft)))[21589]||{}).mt&&(Qe=Be[21589].mt),((Ge||{})[21589]||{}).mt&&(Qe=Ge[21589].mt)),Ye.l+=Ft;var Jt=Ye.slice(Ye.l,Ye.l+vt);switch(pt){case 8:Jt=function($t,et){if(!x)return Z($t,et);var ot=new x.InflateRaw,et=ot._processChunk($t.slice($t.l),ot._finishFlushFlag);return $t.l+=ot.bytesRead,et}(Ye,wt);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+pt)}Ft=!1,8&Pe&&(Ye.read_shift(4)==134695760&&(Ye.read_shift(4),Ft=!0),vt=Ye.read_shift(4),wt=Ye.read_shift(4)),vt!=at&&wr(Ft,"Bad compressed size: "+at+" != "+vt),wt!=dt&&wr(Ft,"Bad uncompressed size: "+dt+" != "+wt),$s(ht,Ot,Jt,{unsafe:!0,mt:Qe})}(J,ue,ge,fe,Ze),J.l=Oe}return fe}var cs={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 $s(z,he,J,fe){var K=fe&&fe.unsafe;K||g(z);var Ee,ue=!K&&_t.find(z,he);return ue||(Ee=z.FullPaths[0],Ee=he.slice(0,Ee.length)==Ee?he:(Ee.slice(-1)!="/"&&(Ee+="/"),(Ee+he).replace("//","/")),ue={name:c(he),type:2},z.FileIndex.push(ue),z.FullPaths.push(Ee),K||_t.utils.cfb_gc(z)),ue.content=J,ue.size=J?J.length:0,fe&&(fe.CLSID&&(ue.clsid=fe.CLSID),fe.mt&&(ue.mt=fe.mt),fe.ct&&(ue.ct=fe.ct)),ue}return n.find=function(z,he){var J=z.FullPaths.map(function(le){return le.toUpperCase()}),fe=J.map(function(le){var ye=le.split("/");return ye[ye.length-(le.slice(-1)=="/"?2:1)]}),K=!1;he.charCodeAt(0)===47?(K=!0,he=J[0].slice(0,-1)+he):K=he.indexOf("/")!==-1;var ge=he.toUpperCase(),Ee=(K===!0?J:fe).indexOf(ge);if(Ee!==-1)return z.FileIndex[Ee];var ue=!ge.match(st),ge=ge.replace(bt,"");for(ue&&(ge=ge.replace(st,"!")),Ee=0;Ee<J.length;++Ee)if((ue?J[Ee].replace(st,"!"):J[Ee]).replace(bt,"")==ge||(ue?fe[Ee].replace(st,"!"):fe[Ee]).replace(bt,"")==ge)return z.FileIndex[Ee];return null},n.read=function(z,he){var J,fe,K=he&&he.type;switch(K||H&&Buffer.isBuffer(z)&&(K="buffer"),K||"base64"){case"file":return J=z,fe=he,h(),d(a.readFileSync(J),fe);case"base64":return d(ve(j(z)),he);case"binary":return d(ve(z),he)}return d(z,he)},n.parse=d,n.write=function(z,he){var J=v(z,he);switch(he&&he.type||"buffer"){case"file":return h(),a.writeFileSync(he.filename,J),J;case"binary":return typeof J=="string"?J:R(J);case"base64":return ie(typeof J=="string"?J:R(J));case"buffer":if(H)return Buffer.isBuffer(J)?J:ne(J);case"array":return typeof J=="string"?ve(J):J}return J},n.writeFile=function(z,he,J){h(),J=v(z,J),a.writeFileSync(he,J)},n.utils={cfb_new:function(z){var he={};return g(he,z),he},cfb_add:$s,cfb_del:function(z,he){g(z);var J=_t.find(z,he);if(J){for(var fe=0;fe<z.FileIndex.length;++fe)if(z.FileIndex[fe]==J)return z.FileIndex.splice(fe,1),z.FullPaths.splice(fe,1),!0}return!1},cfb_mov:function(z,he,J){g(z);var fe=_t.find(z,he);if(fe){for(var K=0;K<z.FileIndex.length;++K)if(z.FileIndex[K]==fe)return z.FileIndex[K].name=c(J),z.FullPaths[K]=J,!0}return!1},cfb_gc:function(z){y(z,!0)},ReadShift:hi,CheckField:ku,prep_blob:gs,bconcat:ut,use_zlib:function(z){try{var he=new z.InflateRaw;if(he._processChunk(new Uint8Array([3,0]),he._finishFlushFlag),!he.bytesRead)throw new Error("zlib does not expose bytesRead");x=z}catch(J){console.error("cannot use native zlib: "+(J.message||J))}},_deflateRaw:Xe,_inflateRaw:Z,consts:L},n}();if(typeof cl<"u")try{Va=of}catch{}function Ag(a){return typeof a=="string"?it(a):Array.isArray(a)?function(n){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(n)}(a):a}function li(a,n,l){if(Va!==void 0&&Va.writeFileSync)return l?Va.writeFileSync(a,n,l):Va.writeFileSync(a,n);if(typeof Deno<"u"){if(l&&typeof n=="string")switch(l){case"utf8":n=new TextEncoder(l).encode(n);break;case"binary":n=it(n);break;default:throw new Error("Unsupported encoding "+l)}return Deno.writeFileSync(a,n)}var c=l=="utf8"?ga(n):n;if(typeof IE_SaveFile<"u")return IE_SaveFile(c,a);if(typeof Blob<"u"){if(c=new Blob([Ag(c)],{type:"application/octet-stream"}),typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(c,a);if(typeof saveAs<"u")return saveAs(c,a);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var f=URL.createObjectURL(c);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(f)},6e4),chrome.downloads.download({url:f,filename:a,saveAs:!0});if(c=document.createElement("a"),c.download!=null)return c.download=a,c.href=f,document.body.appendChild(c),c.click(),document.body.removeChild(c),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(f)},6e4),f}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var h=File(a);return h.open("w"),h.encoding="binary",Array.isArray(n)&&(n=ft(n)),h.write(n),h.close(),n}catch(d){if(!d.message||!d.message.match(/onstruct/))throw d}throw new Error("cannot save file "+a)}function Yr(a){for(var n=Object.keys(a),l=[],c=0;c<n.length;++c)Object.prototype.hasOwnProperty.call(a,n[c])&&l.push(n[c]);return l}function $f(a,n){for(var l=[],c=Yr(a),f=0;f!==c.length;++f)l[a[c[f]][n]]==null&&(l[a[c[f]][n]]=c[f]);return l}function ln(a){for(var n=[],l=Yr(a),c=0;c!==l.length;++c)n[a[l[c]]]=l[c];return n}function cn(a){for(var n=[],l=Yr(a),c=0;c!==l.length;++c)n[a[l[c]]]=parseInt(l[c],10);return n}var fn=new Date(1899,11,30,0,0,0);function ns(a,n){var l=a.getTime();return n&&(l-=1263168e5),(l-(fn.getTime()+6e4*(a.getTimezoneOffset()-fn.getTimezoneOffset())))/864e5}var un=new Date,Sg=fn.getTime()+6e4*(un.getTimezoneOffset()-fn.getTimezoneOffset()),eu=un.getTimezoneOffset();function dn(a){var n=new Date;return n.setTime(24*a*60*60*1e3+Sg),n.getTimezoneOffset()!==eu&&n.setTime(n.getTime()+6e4*(n.getTimezoneOffset()-eu)),n}var hn=new Date("2017-02-19T19:06:09.000Z"),tu=isNaN(hn.getFullYear())?new Date("2/19/17"):hn,Eg=tu.getFullYear()==2017;function Nr(a,n){var l=new Date(a);return Eg?(0<n?l.setTime(l.getTime()+60*l.getTimezoneOffset()*1e3):n<0&&l.setTime(l.getTime()-60*l.getTimezoneOffset()*1e3),l):a instanceof Date?a:tu.getFullYear()==1917&&!isNaN(l.getFullYear())?(n=l.getFullYear(),-1<a.indexOf(""+n)||l.setFullYear(l.getFullYear()+100),l):(l=a.match(/\d+/g)||["2017","2","19","0","0","0"],l=new Date(+l[0],+l[1]-1,+l[2],+l[3]||0,+l[4]||0,+l[5]||0),l=-1<a.indexOf("Z")?new Date(l.getTime()-60*l.getTimezoneOffset()*1e3):l)}function to(a,n){if(H&&Buffer.isBuffer(a)){if(n){if(a[0]==255&&a[1]==254)return ga(a.slice(2).toString("utf16le"));if(a[1]==254&&a[2]==255)return ga(M(a.slice(2).toString("binary")))}return a.toString("binary")}if(typeof TextDecoder<"u")try{if(n){if(a[0]==255&&a[1]==254)return ga(new TextDecoder("utf-16le").decode(a.slice(2)));if(a[0]==254&&a[1]==255)return ga(new TextDecoder("utf-16be").decode(a.slice(2)))}var l={"€":"","‚":"",ƒ:"","„":"","…":" ","†":"","‡":"","ˆ":"","‰":"",Š:"","‹":"",Œ:"",Ž:"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"",š:"","›":"",œ:"",ž:"",Ÿ:""};return Array.isArray(a)&&(a=new Uint8Array(a)),new TextDecoder("latin1").decode(a).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(h){return l[h]||h})}catch{}for(var c=[],f=0;f!=a.length;++f)c.push(String.fromCharCode(a[f]));return c.join("")}function Lr(a){if(typeof JSON<"u"&&!Array.isArray(a))return JSON.parse(JSON.stringify(a));if(typeof a!="object"||a==null)return a;if(a instanceof Date)return new Date(a.getTime());var n,l={};for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(l[n]=Lr(a[n]));return l}function qr(a,n){for(var l="";l.length<n;)l+=a;return l}function ia(c){var n=Number(c);if(!isNaN(n))return isFinite(n)?n:NaN;if(!/\d/.test(c))return n;var l=1,c=c.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return l*=100,""});return isNaN(n=Number(c))?(c=c.replace(/[(](.*)[)]/,function(f,h){return l=-l,h}),isNaN(n=Number(c))?n:n/l):n/l}var Tg=["january","february","march","april","may","june","july","august","september","october","november","december"];function Oo(a){var n=new Date(a),l=new Date(NaN),c=n.getYear(),f=n.getMonth(),h=n.getDate();if(isNaN(h))return l;var d=a.toLowerCase();if(d.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(3<(d=d.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length&&Tg.indexOf(d)==-1)return l}else if(d.match(/[a-z]/))return l;return c<0||8099<c||(!(0<f||1<h)||c==101)&&a.match(/[^-0-9:,\/\\]/)?l:n}var ru,Rg=(ru="abacaba".split(/(:?b)/i).length==5,function(a,n,l){if(ru||typeof n=="string")return a.split(n);for(var c=a.split(n),f=[c[0]],h=1;h<c.length;++h)f.push(l),f.push(c[h]);return f});function su(a){return a?a.content&&a.type?to(a.content,!0):a.data?N(a.data):a.asNodeBuffer&&H?N(a.asNodeBuffer().toString("binary")):a.asBinary?N(a.asBinary()):a._data&&a._data.getContent?N(to(Array.prototype.slice.call(a._data.getContent(),0))):null:null}function au(a){if(!a)return null;if(a.data)return E(a.data);if(a.asNodeBuffer&&H)return a.asNodeBuffer();if(a._data&&a._data.getContent){var n=a._data.getContent();return typeof n=="string"?E(n):Array.prototype.slice.call(n)}return a.content&&a.type?a.content:null}function Ys(a,n){for(var l=a.FullPaths||Yr(a.files),c=n.toLowerCase().replace(/[\/]/g,"\\"),f=c.replace(/\\/g,"/"),h=0;h<l.length;++h){var d=l[h].replace(/^Root Entry[\/]/,"").toLowerCase();if(c==d||f==d)return a.files?a.files[l[h]]:a.FileIndex[h]}return null}function Tl(a,n){if(a=Ys(a,n),a==null)throw new Error("Cannot find file "+n+" in zip");return a}function ss(a,n,l){if(!l)return((l=Tl(a,n))&&l.name.slice(-4)===".bin"?au:su)(l);if(!n)return null;try{return ss(a,n)}catch{return null}}function zs(a,n,l){if(!l)return su(Tl(a,n));if(!n)return null;try{return zs(a,n)}catch{return null}}function ou(a){for(var n=a.FullPaths||Yr(a.files),l=[],c=0;c<n.length;++c)n[c].slice(-1)!="/"&&l.push(n[c].replace(/^Root Entry[\/]/,""));return l.sort()}function It(a,n,l){if(a.FullPaths){if(typeof l=="string"){var c=(H?ne:function(f){for(var h=[],d=0,m=f.length+250,g=W(f.length+255),y=0;y<f.length;++y){var v,x=f.charCodeAt(y);x<128?g[d++]=x:x<2048?(g[d++]=192|x>>6&31,g[d++]=128|63&x):55296<=x&&x<57344?(x=64+(1023&x),v=1023&f.charCodeAt(++y),g[d++]=240|x>>8&7,g[d++]=128|x>>2&63,g[d++]=128|v>>6&15|(3&x)<<4,g[d++]=128|63&v):(g[d++]=224|x>>12&15,g[d++]=128|x>>6&63,g[d++]=128|63&x),m<d&&(h.push(g.slice(0,d)),d=0,g=W(65535),m=65530)}return h.push(g.slice(0,d)),ut(h)})(l);return _t.utils.cfb_add(a,n,c)}_t.utils.cfb_add(a,n,l)}else a.file(n,l)}function Rl(){return _t.utils.cfb_new()}function iu(a,n){switch(n.type){case"base64":return _t.read(a,{type:"base64"});case"binary":return _t.read(a,{type:"binary"});case"buffer":case"array":return _t.read(a,{type:"buffer"})}throw new Error("Unrecognized type "+n.type)}function ci(a,n){if(a.charAt(0)=="/")return a.slice(1);var l=n.split("/");n.slice(-1)!="/"&&l.pop();for(var c=a.split("/");c.length!==0;){var f=c.shift();f===".."?l.pop():f!=="."&&l.push(f)}return l.join("/")}var Zr=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r `,kg=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,zn=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,_s=Zr.match(zn)?zn:/<[^>]*>/g,Lg=/<\w*:/,Mg=/<(\/?)\w+:/;function Tt(a,n,l){for(var c={},f=0,h=0;f!==a.length&&(h=a.charCodeAt(f))!==32&&h!==10&&h!==13;++f);if(n||(c[0]=a.slice(0,f)),f===a.length)return c;var d,m,g,y=a.match(kg),v=0,x=0,C="",F="";if(y)for(x=0;x!=y.length;++x){for(F=y[x],h=0;h!=F.length&&F.charCodeAt(h)!==61;++h);for(C=F.slice(0,h).trim();F.charCodeAt(h+1)==32;)++h;for(m=(f=F.charCodeAt(h+1))==34||f==39?1:0,d=F.slice(h+1+m,F.length-m),v=0;v!=C.length&&C.charCodeAt(v)!==58;++v);v===C.length?(c[C=0<C.indexOf("_")?C.slice(0,C.indexOf("_")):C]=d,l||(c[C.toLowerCase()]=d)):c[g=(v===5&&C.slice(0,5)==="xmlns"?"xmlns":"")+C.slice(v+1)]&&C.slice(v-3,v)=="ext"||(c[g]=d,l||(c[g.toLowerCase()]=d))}return c}function ma(a){return a.replace(Mg,"<$1")}var nu,lu,cu={""":'"',"'":"'",">":">","<":"<","&":"&"},kl=ln(cu),pr=(nu=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,lu=/_x([\da-fA-F]{4})_/gi,function a(n){var l=n+"",c=l.indexOf("<![CDATA[");return c==-1?l.replace(nu,function(f,h){return cu[f]||String.fromCharCode(parseInt(h,-1<f.indexOf("x")?16:10))||f}).replace(lu,function(f,h){return String.fromCharCode(parseInt(h,16))}):(n=l.indexOf("]]>"),a(l.slice(0,c))+l.slice(c+9,n)+a(l.slice(n+3)))}),Ll=/[&<>'"]/g,Og=/[\u0000-\u0008\u000b-\u001f]/g;function Dr(a){return(a+"").replace(Ll,function(n){return kl[n]}).replace(Og,function(n){return"_x"+("000"+n.charCodeAt(0).toString(16)).slice(-4)+"_"})}function fu(a){return Dr(a).replace(/ /g,"_x0020_")}var uu=/[\u0000-\u001f]/g;function Ml(a){return(a+"").replace(Ll,function(n){return kl[n]}).replace(/\n/g,"<br/>").replace(uu,function(n){return"&#x"+("000"+n.charCodeAt(0).toString(16)).slice(-4)+";"})}var du,hu=(du=/&#(\d+);/g,function(a){return a.replace(du,Pg)});function Pg(a,n){return String.fromCharCode(parseInt(n,10))}function Ir(a){switch(a){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Ol(a){for(var n,l,c,f,h="",d=0,m=0;d<a.length;)(n=a.charCodeAt(d++))<128?h+=String.fromCharCode(n):(l=a.charCodeAt(d++),191<n&&n<224?(m=(31&n)<<6,m|=63&l,h+=String.fromCharCode(m)):(c=a.charCodeAt(d++),n<240?h+=String.fromCharCode((15&n)<<12|(63&l)<<6|63&c):(f=((7&n)<<18|(63&l)<<12|(63&c)<<6|63&(m=a.charCodeAt(d++)))-65536,h+=String.fromCharCode(55296+(f>>>10&1023)),h+=String.fromCharCode(56320+(1023&f)))));return h}function pu(a){for(var n,l,c=W(2*a.length),f=1,h=0,d=0,m=0;m<a.length;m+=f)f=1,(l=a.charCodeAt(m))<128?n=l:l<224?(n=64*(31&l)+(63&a.charCodeAt(m+1)),f=2):l<240?(n=4096*(15&l)+64*(63&a.charCodeAt(m+1))+(63&a.charCodeAt(m+2)),f=3):(f=4,n=262144*(7&l)+4096*(63&a.charCodeAt(m+1))+64*(63&a.charCodeAt(m+2))+(63&a.charCodeAt(m+3)),d=55296+((n-=65536)>>>10&1023),n=56320+(1023&n)),d!==0&&(c[h++]=255&d,c[h++]=d>>>8,d=0),c[h++]=n%256,c[h++]=n>>>8;return c.slice(0,h).toString("ucs2")}function mu(a){return ne(a,"binary").toString("utf8")}var Pl,pn,mn,Ko="foo bar bazâð£",Tr=H&&(mu(Ko)==Ol(Ko)?mu:pu(Ko)==Ol(Ko)&&pu)||Ol,ga=H?function(a){return ne(a,"utf8").toString("binary")}:function(a){for(var n,l=[],c=0,f=0;c<a.length;)switch(!0){case(f=a.charCodeAt(c++))<128:l.push(String.fromCharCode(f));break;case f<2048:l.push(String.fromCharCode(192+(f>>6))),l.push(String.fromCharCode(128+(63&f)));break;case(55296<=f&&f<57344):f-=55296,n=a.charCodeAt(c++)-56320+(f<<10),l.push(String.fromCharCode(240+(n>>18&7))),l.push(String.fromCharCode(144+(n>>12&63))),l.push(String.fromCharCode(128+(n>>6&63))),l.push(String.fromCharCode(128+(63&n)));break;default:l.push(String.fromCharCode(224+(f>>12))),l.push(String.fromCharCode(128+(f>>6&63))),l.push(String.fromCharCode(128+(63&f)))}return l.join("")},fi=(Pl={},function(a,n){var l=a+"|"+(n||"");return Pl[l]||(Pl[l]=new RegExp("<(?:\\w+:)?"+a+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+a+">",n||""))}),gu=(pn=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(a){return[new RegExp("&"+a[0]+";","ig"),a[1]]}),function(a){for(var n=a.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,` `).replace(/<[^>]*>/g,""),l=0;l<pn.length;++l)n=n.replace(pn[l][0],pn[l][1]);return n}),Ng=(mn={},function(a){return mn[a]!==void 0?mn[a]:mn[a]=new RegExp("<(?:vt:)?"+a+">([\\s\\S]*?)</(?:vt:)?"+a+">","g")}),Ig=/<\/?(?:vt:)?variant>/g,Vg=/<(?:vt:)([^>]*)>([\s\S]*)</;function bu(c,n){var l=Tt(c),c=c.match(Ng(l.baseType))||[],f=[];if(c.length==l.size)return c.forEach(function(h){h=h.replace(Ig,"").match(Vg),h&&f.push({v:Tr(h[2]),t:h[1]})}),f;if(n.WTF)throw new Error("unexpected vector length "+c.length+" != "+l.size);return f}var yu=/(^\s|\s$|\n)/;function ms(a,n){return"<"+a+(n.match(yu)?' xml:space="preserve"':"")+">"+n+"</"+a+">"}function ui(a){return Yr(a).map(function(n){return" "+n+'="'+a[n]+'"'}).join("")}function je(a,n,l){return"<"+a+(l!=null?ui(l):"")+(n!=null?(n.match(yu)?' xml:space="preserve"':"")+">"+n+"</"+a:"/")+">"}function Nl(a,n){try{return a.toISOString().replace(/\.\d*/,"")}catch(l){if(n)throw l}return""}function Il(a){if(H&&Buffer.isBuffer(a))return a.toString("utf8");if(typeof a=="string")return a;if(typeof Uint8Array<"u"&&a instanceof Uint8Array)return Tr(ft(Je(a)));throw new Error("Bad input format: expected Buffer or string")}var di=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/gm,ls={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"},ro=["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"],Gs={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"};function _u(a){for(var n=[],l=0;l<a[0].length;++l)if(a[0][l])for(var c=0,f=a[0][l].length;c<f;c+=10240)n.push.apply(n,a[0][l].slice(c,c+10240));return n}function vu(a,n,l){for(var c=[],f=n;f<l;f+=2)c.push(String.fromCharCode(Sa(a,f)));return c.join("").replace(bt,"")}function wu(a,n,l){for(var c=[],f=n;f<n+l;++f)c.push(("0"+a[f].toString(16)).slice(-2));return c.join("")}function xu(a,n,l){for(var c=[],f=n;f<l;f++)c.push(String.fromCharCode(No(a,f)));return c.join("")}function Cu(a,n){var l=ds(a,n);return 0<l?Po(a,n+4,n+4+l-1):""}function Fu(a,n){var l=ds(a,n);return 0<l?Po(a,n+4,n+4+l-1):""}function Du(a,n){var l=2*ds(a,n);return 0<l?Po(a,n+4,n+4+l-1):""}function Au(a,n){var l=ds(a,n);return 0<l?gn(a,n+4,n+4+l):""}function Su(a,n){var l=ds(a,n);return 0<l?Po(a,n+4,n+4+l):""}function Eu(a,n){for(var l=1-2*(a[n+7]>>>7),c=((127&a[n+7])<<4)+(a[n+6]>>>4&15),f=15&a[n+6],h=5;0<=h;--h)f=256*f+a[n+h];return c==2047?f==0?1/0*l:NaN:(c==0?c=-1022:(c-=1023,f+=Math.pow(2,52)),l*Math.pow(2,c-52)*f)}var Tu=H?function(a){return 0<a[0].length&&Buffer.isBuffer(a[0][0])?Buffer.concat(a[0].map(function(n){return Buffer.isBuffer(n)?n:ne(n)})):_u(a)}:_u,gn=H?function(a,n,l){return Buffer.isBuffer(a)?a.toString("utf16le",n,l).replace(bt,""):vu(a,n,l)}:vu,Ru=H?function(a,n,l){return Buffer.isBuffer(a)?a.toString("hex",n,n+l):wu(a,n,l)}:wu,Po=H?function(a,n,l){return Buffer.isBuffer(a)?a.toString("utf8",n,l):xu(a,n,l)}:xu,Vl=Cu,Bl=Fu,Ul=Du,zl=Au,Gl=Su,bn=Eu,jl=function(a){return Array.isArray(a)||typeof Uint8Array<"u"&&a instanceof Uint8Array};H&&(Vl=function(a,n){if(!Buffer.isBuffer(a))return Cu(a,n);var l=a.readUInt32LE(n);return 0<l?a.toString("utf8",n+4,n+4+l-1):""},Bl=function(a,n){if(!Buffer.isBuffer(a))return Fu(a,n);var l=a.readUInt32LE(n);return 0<l?a.toString("utf8",n+4,n+4+l-1):""},Ul=function(a,n){if(!Buffer.isBuffer(a))return Du(a,n);var l=2*a.readUInt32LE(n);return a.toString("utf16le",n+4,n+4+l-1)},zl=function(a,n){if(!Buffer.isBuffer(a))return Au(a,n);var l=a.readUInt32LE(n);return a.toString("utf16le",n+4,n+4+l)},Gl=function(a,n){if(!Buffer.isBuffer(a))return Su(a,n);var l=a.readUInt32LE(n);return a.toString("utf8",n+4,n+4+l)},bn=function(a,n){return Buffer.isBuffer(a)?a.readDoubleLE(n):Eu(a,n)},jl=function(a){return Buffer.isBuffer(a)||Array.isArray(a)||typeof Uint8Array<"u"&&a instanceof Uint8Array}),e!==void 0&&(gn=function(a,n,l){return e.utils.decode(1200,a.slice(n,l)).replace(bt,"")},Po=function(a,n,l){return e.utils.decode(65001,a.slice(n,l))},Vl=function(a,n){var l=ds(a,n);return 0<l?e.utils.decode(p,a.slice(n+4,n+4+l-1)):""},Bl=function(a,n){var l=ds(a,n);return 0<l?e.utils.decode(u,a.slice(n+4,n+4+l-1)):""},Ul=function(a,n){var l=2*ds(a,n);return 0<l?e.utils.decode(1200,a.slice(n+4,n+4+l-1)):""},zl=function(a,n){var l=ds(a,n);return 0<l?e.utils.decode(1200,a.slice(n+4,n+4+l)):""},Gl=function(a,n){var l=ds(a,n);return 0<l?e.utils.decode(65001,a.slice(n+4,n+4+l)):""});var No=function(a,n){return a[n]},Sa=function(a,n){return 256*a[n+1]+a[n]},Bg=function(a,n){return n=256*a[n+1]+a[n],n<32768?n:-1*(65535-n+1)},ds=function(a,n){return a[n+3]*(1<<24)+(a[n+2]<<16)+(a[n+1]<<8)+a[n]},so=function(a,n){return a[n+3]<<24|a[n+2]<<16|a[n+1]<<8|a[n]},Ug=function(a,n){return a[n]<<24|a[n+1]<<16|a[n+2]<<8|a[n+3]};function hi(a,n){var l,c,f,h,d,m,g="",y=[];switch(n){case"dbcs":if(m=this.l,H&&Buffer.isBuffer(this))g=this.slice(this.l,this.l+2*a).toString("utf16le");else for(d=0;d<a;++d)g+=String.fromCharCode(Sa(this,m)),m+=2;a*=2;break;case"utf8":g=Po(this,this.l,this.l+a);break;case"utf16le":a*=2,g=gn(this,this.l,this.l+a);break;case"wstr":if(e===void 0)return hi.call(this,a,"dbcs");g=e.utils.decode(u,this.slice(this.l,this.l+2*a)),a*=2;break;case"lpstr-ansi":g=Vl(this,this.l),a=4+ds(this,this.l);break;case"lpstr-cp":g=Bl(this,this.l),a=4+ds(this,this.l);break;case"lpwstr":g=Ul(this,this.l),a=4+2*ds(this,this.l);break;case"lpp4":a=4+ds(this,this.l),g=zl(this,this.l),2&a&&(a+=2);break;case"8lpp4":a=4+ds(this,this.l),g=Gl(this,this.l),3&a&&(a+=4-(3&a));break;case"cstr":for(a=0,g="";(f=No(this,this.l+a++))!==0;)y.push(q(f));g=y.join("");break;case"_wstr":for(a=0,g="";(f=Sa(this,this.l+a))!==0;)y.push(q(f)),a+=2;a+=2,g=y.join("");break;case"dbcs-cont":for(g="",m=this.l,d=0;d<a;++d){if(this.lens&&this.lens.indexOf(m)!==-1)return f=No(this,m),this.l=m+1,h=hi.call(this,a-d,f?"dbcs-cont":"sbcs-cont"),y.join("")+h;y.push(q(Sa(this,m))),m+=2}g=y.join(""),a*=2;break;case"cpstr":if(e!==void 0){g=e.utils.decode(u,this.slice(this.l,this.l+a));break}case"sbcs-cont":for(g="",m=this.l,d=0;d!=a;++d){if(this.lens&&this.lens.indexOf(m)!==-1)return f=No(this,m),this.l=m+1,h=hi.call(this,a-d,f?"dbcs-cont":"sbcs-cont"),y.join("")+h;y.push(q(No(this,m))),m+=1}g=y.join("");break;default:switch(a){case 1:return l=No(this,this.l),this.l++,l;case 2:return l=(n==="i"?Bg:Sa)(this,this.l),this.l+=2,l;case 4:case-4:return n==="i"||!(128&this[this.l+3])?(l=(0<a?so:Ug)(this,this.l),this.l+=4,l):(c=ds(this,this.l),this.l+=4,c);case 8:case-8:if(n==="f")return c=a==8?bn(this,this.l):bn([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,c;a=8;case 16:g=Ru(this,this.l,a)}}return this.l+=a,g}var zg=function(a,n,l){a[l]=255&n,a[l+1]=n>>>8&255,a[l+2]=n>>>16&255,a[l+3]=n>>>24&255},Gg=function(a,n,l){a[l]=255&n,a[l+1]=n>>8&255,a[l+2]=n>>16&255,a[l+3]=n>>24&255},jg=function(a,n,l){a[l]=255&n,a[l+1]=n>>>8&255};function Wg(a,n,l){var c=0,f=0;if(l==="dbcs"){for(f=0;f!=n.length;++f)jg(this,n.charCodeAt(f),this.l+2*f);c=2*n.length}else if(l==="sbcs"){if(e!==void 0&&p==874)for(f=0;f!=n.length;++f){var h=e.utils.encode(p,n.charAt(f));this[this.l+f]=h[0]}else for(n=n.replace(/[^\x00-\x7F]/g,"_"),f=0;f!=n.length;++f)this[this.l+f]=255&n.charCodeAt(f);c=n.length}else{if(l==="hex"){for(;f<a;++f)this[this.l++]=parseInt(n.slice(2*f,2*f+2),16)||0;return this}if(l==="utf16le"){for(var d=Math.min(this.l+a,this.length),f=0;f<Math.min(n.length,a);++f){var m=n.charCodeAt(f);this[this.l++]=255&m,this[this.l++]=m>>8}for(;this.l<d;)this[this.l++]=0;return this}switch(a){case 1:c=1,this[this.l]=255&n;break;case 2:c=2,this[this.l]=255&n,n>>>=8,this[this.l+1]=255&n;break;case 3:c=3,this[this.l]=255&n,n>>>=8,this[this.l+1]=255&n,n>>>=8,this[this.l+2]=255&n;break;case 4:c=4,zg(this,n,this.l);break;case 8:if(c=8,l==="f"){(function(g,y,v){var x=(y<0||1/y==-1/0?1:0)<<7,C=0,F=0,k=x?-y:y;isFinite(k)?k==0?C=F=0:(C=Math.floor(Math.log(k)/Math.LN2),F=k*Math.pow(2,52-C),C<=-1023&&(!isFinite(F)||F<Math.pow(2,52))?C=-1022:(F-=Math.pow(2,52),C+=1023)):(C=2047,F=isNaN(y)?26985:0);for(var D=0;D<=5;++D,F/=256)g[v+D]=255&F;g[v+6]=(15&C)<<4|15&F,g[v+7]=C>>4|x})(this,n,this.l);break}case 16:break;case-4:c=4,Gg(this,n,this.l)}}return this.l+=c,this}function ku(a,n){var l=Ru(this,this.l,a.length>>1);if(l!==a)throw new Error(n+"Expected "+a+" saw "+l);this.l+=a.length>>1}function gs(a,n){a.l=n,a.read_shift=hi,a.chk=ku,a.write_shift=Wg}function vs(a,n){a.l+=n}function be(a){return a=W(a),gs(a,0),a}function Ea(a,n,l){if(a){gs(a,a.l||0);for(var c,f=a.length,h=0;a.l<f;){128&(h=a.read_shift(1))&&(h=(127&h)+((127&a.read_shift(1))<<7));for(var d,m=Pi[h]||Pi[65535],g=127&(d=a.read_shift(1)),y=1;y<4&&128&d;++y)g+=(127&(d=a.read_shift(1)))<<7*y;c=a.l+g;var v=m.f&&m.f(a,g,l);if(a.l=c,n(v,m,h))return}}}function Is(){function a(d){return gs(d=be(d),0),d}function n(){h&&(h.length>h.l&&((h=h.slice(0,h.l)).l=h.length),0<h.length&&c.push(h),h=null)}function l(d){return h&&d<h.length-h.l?h:(n(),h=a(Math.max(d+1,f)))}var c=[],f=H?256:2048,h=a(f);return{next:l,push:function(d){n(),(h=d).l==null&&(h.l=h.length),l(f)},end:function(){return n(),ut(c)},_bufs:c}}function De(a,n,l,c){var f=+n;if(!isNaN(f)){n=1+(128<=f?1:0)+1,128<=(c=c||Pi[f].p||(l||[]).length||0)&&++n,16384<=c&&++n,2097152<=c&&++n;var h=a.next(n);f<=127?h.write_shift(1,f):(h.write_shift(1,128+(127&f)),h.write_shift(1,f>>7));for(var d=0;d!=4;++d){if(!(128<=c)){h.write_shift(1,c);break}h.write_shift(1,128+(127&c)),c>>=7}0<c&&jl(l)&&a.push(l)}}function pi(a,n,l){var c=Lr(a);if(n.s?(c.cRel&&(c.c+=n.s.c),c.rRel&&(c.r+=n.s.r)):(c.cRel&&(c.c+=n.c),c.rRel&&(c.r+=n.r)),!l||l.biff<12){for(;256<=c.c;)c.c-=256;for(;65536<=c.r;)c.r-=65536}return c}function Lu(a,n,l){return a=Lr(a),a.s=pi(a.s,n.s,l),a.e=pi(a.e,n.s,l),a}function mi(a,n){if(a.cRel&&a.c<0)for(a=Lr(a);a.c<0;)a.c+=8<n?16384:256;if(a.rRel&&a.r<0)for(a=Lr(a);a.r<0;)a.r+=8<n?1048576:5<n?65536:16384;var l=Rt(a);return a.cRel||a.cRel==null||(l=l.replace(/^([A-Z])/,"$$$1")),l=!a.rRel&&a.rRel!=null?l.replace(/([A-Z]|^)(\d+)$/,"$1$$$2"):l}function Wl(a,n){return a.s.r!=0||a.s.rRel||a.e.r!=(12<=n.biff?1048575:8<=n.biff?65536:16384)||a.e.rRel?a.s.c!=0||a.s.cRel||a.e.c!=(12<=n.biff?16383:255)||a.e.cRel?mi(a.s,n.biff)+":"+mi(a.e,n.biff):(a.s.rRel?"":"$")+Kr(a.s.r)+":"+(a.e.rRel?"":"$")+Kr(a.e.r):(a.s.cRel?"":"$")+Vr(a.s.c)+":"+(a.e.cRel?"":"$")+Vr(a.e.c)}function Hl(a){return parseInt(a.replace(/\$(\d+)$/,"$1"),10)-1}function Kr(a){return""+(a+1)}function Yl(a){for(var n=a.replace(/^\$([A-Z])/,"$1"),l=0,c=0;c!==n.length;++c)l=26*l+n.charCodeAt(c)-64;return l-1}function Vr(a){if(a<0)throw new Error("invalid column "+a);var n="";for(++a;a;a=Math.floor((a-1)/26))n=String.fromCharCode((a-1)%26+65)+n;return n}function jr(a){for(var n=0,l=0,c=0;c<a.length;++c){var f=a.charCodeAt(c);48<=f&&f<=57?n=10*n+(f-48):65<=f&&f<=90&&(l=26*l+(f-64))}return{c:l-1,r:n-1}}function Rt(a){for(var n=a.c+1,l="";n;n=(n-1)/26|0)l=String.fromCharCode((n-1)%26+65)+l;return l+(a.r+1)}function ks(a){var n=a.indexOf(":");return n==-1?{s:jr(a),e:jr(a)}:{s:jr(a.slice(0,n)),e:jr(a.slice(n+1))}}function Pt(a,n){return n===void 0||typeof n=="number"?Pt(a.s,a.e):(a=typeof a!="string"?Rt(a):a)==(n=typeof n!="string"?Rt(n):n)?a:a+":"+n}function rr(a){for(var n={s:{c:0,r:0},e:{c:0,r:0}},h=0,l=0,c=0,f=a.length,h=0;l<f&&!((c=a.charCodeAt(l)-64)<1||26<c);++l)h=26*h+c;for(n.s.c=--h,h=0;l<f&&!((c=a.charCodeAt(l)-48)<0||9<c);++l)h=10*h+c;if(n.s.r=--h,l===f||c!=10)return n.e.c=n.s.c,n.e.r=n.s.r,n;for(++l,h=0;l!=f&&!((c=a.charCodeAt(l)-64)<1||26<c);++l)h=26*h+c;for(n.e.c=--h,h=0;l!=f&&!((c=a.charCodeAt(l)-48)<0||9<c);++l)h=10*h+c;return n.e.r=--h,n}function Hg(a,n){var l=a.t=="d"&&n instanceof Date;if(a.z!=null)try{return a.w=Us(a.z,l?ns(n):n)}catch{}try{return a.w=Us((a.XF||{}).numFmtId||(l?14:0),l?ns(n):n)}catch{return""+n}}function ba(a,n,l){return a==null||a.t==null||a.t=="z"?"":a.w!==void 0?a.w:(a.t=="d"&&!a.z&&l&&l.dateNF&&(a.z=l.dateNF),a.t=="e"?Ta[a.v]||a.v:Hg(a,n??a.v))}function Ba(a,c){var l=c&&c.sheet?c.sheet:"Sheet1",c={};return c[l]=a,{SheetNames:[l],Sheets:c}}function Mu(a,n,l){var c=l||{},f=a?Array.isArray(a):c.dense,h=a||(f?[]:{}),d=0,m=0;h&&c.origin!=null&&(typeof c.origin=="number"?d=c.origin:(d=(g=typeof c.origin=="string"?jr(c.origin):c.origin).r,m=g.c),h["!ref"]||(h["!ref"]="A1:A1"));var g,y={s:{c:1e7,r:1e7},e:{c:0,r:0}};h["!ref"]&&(g=rr(h["!ref"]),y.s.c=g.s.c,y.s.r=g.s.r,y.e.c=Math.max(y.e.c,g.e.c),y.e.r=Math.max(y.e.r,g.e.r),d==-1&&(y.e.r=d=g.e.r+1));for(var v=0;v!=n.length;++v)if(n[v]){if(!Array.isArray(n[v]))throw new Error("aoa_to_sheet expects an array of arrays");for(var x=0;x!=n[v].length;++x)if(n[v][x]!==void 0){var C={v:n[v][x]},F=d+v,k=m+x;if(y.s.r>F&&(y.s.r=F),y.s.c>k&&(y.s.c=k),y.e.r<F&&(y.e.r=F),y.e.c<k&&(y.e.c=k),!n[v][x]||typeof n[v][x]!="object"||Array.isArray(n[v][x])||n[v][x]instanceof Date)if(Array.isArray(C.v)&&(C.f=n[v][x][1],C.v=C.v[0]),C.v===null)if(C.f)C.t="n";else if(c.nullError)C.t="e",C.v=0;else{if(!c.sheetStubs)continue;C.t="z"}else typeof C.v=="number"?C.t="n":typeof C.v=="boolean"?C.t="b":C.v instanceof Date?(C.z=c.dateNF||oe[14],c.cellDates?(C.t="d",C.w=Us(C.z,ns(C.v))):(C.t="n",C.v=ns(C.v),C.w=Us(C.z,C.v))):C.t="s";else C=n[v][x];f?(h[F]||(h[F]=[]),h[F][k]&&h[F][k].z&&(C.z=h[F][k].z),h[F][k]=C):(h[F=Rt({c:k,r:F})]&&h[F].z&&(C.z=h[F].z),h[F]=C)}}return y.s.c<1e7&&(h["!ref"]=Pt(y)),h}function Io(a,n){return Mu(null,a,n)}function na(a,n){return(n=n||be(4)).write_shift(4,a),n}function ws(a){var n=a.read_shift(4);return n===0?"":a.read_shift(n,"dbcs")}function hs(a,n){var l=!1;return n==null&&(l=!0,n=be(4+2*a.length)),n.write_shift(4,a.length),0<a.length&&n.write_shift(0,a,"dbcs"),l?n.slice(0,n.l):n}function ql(a,n){var l,c=a.l,f=a.read_shift(1),d=ws(a),h=[],d={t:d,h:d};if(1&f){for(var m=a.read_shift(4),g=0;g!=m;++g)h.push({ich:(l=a).read_shift(2),ifnt:l.read_shift(2)});d.r=h}else d.r=[{ich:0,ifnt:0}];return a.l=c+n,d}var Yg=ql;function qg(a,n){var l,c=!1;return n==null&&(c=!0,n=be(23+4*a.t.length)),n.write_shift(1,1),hs(a.t,n),n.write_shift(4,1),l={ich:0,ifnt:0},(a=(a=n)||be(4)).write_shift(2,l.ich||0),a.write_shift(2,l.ifnt||0),c?n.slice(0,n.l):n}function qs(a){var n=a.read_shift(4),l=a.read_shift(2);return l+=a.read_shift(1)<<16,a.l++,{c:n,iStyleRef:l}}function ao(a,n){return(n=n??be(8)).write_shift(-4,a.c),n.write_shift(3,a.iStyleRef||a.s),n.write_shift(1,0),n}function oo(a){var n=a.read_shift(2);return n+=a.read_shift(1)<<16,a.l++,{c:-1,iStyleRef:n}}function io(a,n){return(n=n??be(4)).write_shift(3,a.iStyleRef||a.s),n.write_shift(1,0),n}var Kg=ws,Ou=hs;function Kl(a){var n=a.read_shift(4);return n===0||n===4294967295?"":a.read_shift(n,"dbcs")}function yn(a,n){var l=!1;return n==null&&(l=!0,n=be(127)),n.write_shift(4,0<a.length?a.length:4294967295),0<a.length&&n.write_shift(0,a,"dbcs"),l?n.slice(0,n.l):n}var Jg=ws,Jl=Kl,Xl=yn;function Ql(a){var n=a.slice(a.l,a.l+4),l=1&n[0],c=2&n[0];return a.l+=4,n=c==0?bn([0,0,0,0,252&n[0],n[1],n[2],n[3]],0):so(n,0)>>2,l?n/100:n}function Pu(a,n){n==null&&(n=be(4));var l=0,c=0,f=100*a;if(a==(0|a)&&-(1<<29)<=a&&a<1<<29?c=1:f==(0|f)&&-(1<<29)<=f&&f<1<<29&&(l=c=1),!c)throw new Error("unsupported RkNumber "+a);n.write_shift(-4,((l?f:a)<<2)+(l+2))}function Nu(a){var n={s:{},e:{}};return n.s.r=a.read_shift(4),n.e.r=a.read_shift(4),n.s.c=a.read_shift(4),n.e.c=a.read_shift(4),n}var no=Nu,Vo=function(a,n){return(n=n||be(16)).write_shift(4,a.s.r),n.write_shift(4,a.e.r),n.write_shift(4,a.s.c),n.write_shift(4,a.e.c),n};function xs(a){if(a.length-a.l<8)throw"XLS Xnum Buffer underflow";return a.read_shift(8,"f")}function Bo(a,n){return(n||be(8)).write_shift(8,a,"f")}function _n(a,n){if(n=n||be(8),!a||a.auto)return n.write_shift(4,0),n.write_shift(4,0),n;a.index!=null?(n.write_shift(1,2),n.write_shift(1,a.index)):a.theme!=null?(n.write_shift(1,6),n.write_shift(1,a.theme)):(n.write_shift(1,5),n.write_shift(1,0));var l=a.tint||0;return 0<l?l*=32767:l<0&&(l*=32768),n.write_shift(2,l),a.rgb&&a.theme==null?(typeof(a=a.rgb||"FFFFFF")=="number"&&(a=("000000"+a.toString(16)).slice(-6)),n.write_shift(1,parseInt(a.slice(0,2),16)),n.write_shift(1,parseInt(a.slice(2,4),16)),n.write_shift(1,parseInt(a.slice(4,6),16)),n.write_shift(1,255)):(n.write_shift(2,0),n.write_shift(1,0),n.write_shift(1,0)),n}function Iu(a,n){var l=a.read_shift(4);switch(l){case 0:return"";case 4294967295:case 4294967294:return{2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"}[a.read_shift(4)]||""}if(400<l)throw new Error("Unsupported Clipboard: "+l.toString(16));return a.l-=4,a.read_shift(0,n==1?"lpstr":"lpwstr")}var Zl=2,Vs=3,Vu=12,Bu=81,Xg=[80,Bu],$l={1:{n:"CodePage",t:Zl},2:{n:"Category",t:80},3:{n:"PresentationFormat",t:80},4:{n:"ByteCount",t:Vs},5:{n:"LineCount",t:Vs},6:{n:"ParagraphCount",t:Vs},7:{n:"SlideCount",t:Vs},8:{n:"NoteCount",t:Vs},9:{n:"HiddenCount",t:Vs},10:{n:"MultimediaClipCount",t:Vs},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:Vs},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:Vs,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:{}},ec={1:{n:"CodePage",t:Zl},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},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:Vs},15:{n:"WordCount",t:Vs},16:{n:"CharCount",t:Vs},17:{n:"Thumbnail",t:71},18:{n:"Application",t:80},19:{n:"DocSecurity",t:Vs},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},Uu={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},Qg=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],gi=Lr([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].map(function(a){return[a>>16&255,a>>8&255,255&a]})),Ta={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},zu={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},tc={"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"},vn={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"},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 rc(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function Gu(a,n){var l,c=function(g){for(var y=[],v=Yr(g),x=0;x!==v.length;++x)y[g[v[x]]]==null&&(y[g[v[x]]]=[]),y[g[v[x]]].push(v[x]);return y}(tc),f=[];f[f.length]=Zr,f[f.length]=je("Types",null,{xmlns:ls.CT,"xmlns:xsd":ls.xsd,"xmlns:xsi":ls.xsi}),f=f.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"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(g){return je("Default",null,{Extension:g[0],ContentType:g[1]})}));function h(g){a[g]&&0<a[g].length&&(l=a[g][0],f[f.length]=je("Override",null,{PartName:(l[0]=="/"?"":"/")+l,ContentType:vn[g][n.bookType]||vn[g].xlsx}))}function d(g){(a[g]||[]).forEach(function(y){f[f.length]=je("Override",null,{PartName:(y[0]=="/"?"":"/")+y,ContentType:vn[g][n.bookType]||vn[g].xlsx})})}function m(g){(a[g]||[]).forEach(function(y){f[f.length]=je("Override",null,{PartName:(y[0]=="/"?"":"/")+y,ContentType:c[g][0]})})}return h("workbooks"),d("sheets"),d("charts"),m("themes"),["strs","styles"].forEach(h),["coreprops","extprops","custprops"].forEach(m),m("vba"),m("comments"),m("threadedcomments"),m("drawings"),d("metadata"),m("people"),2<f.length&&(f[f.length]="</Types>",f[1]=f[1].replace("/>",">")),f.join("")}var Vt={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",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function bi(a){var n=a.lastIndexOf("/");return a.slice(0,n+1)+"_rels/"+a.slice(n+1)+".rels"}function yi(a,n){var l={"!id":{}};if(!a)return l;n.charAt(0)!=="/"&&(n="/"+n);var c={};return(a.match(_s)||[]).forEach(function(f){var h,d=Tt(f);d[0]==="<Relationship"&&((h={}).Type=d.Type,h.Target=d.Target,h.Id=d.Id,d.TargetMode&&(h.TargetMode=d.TargetMode),f=d.TargetMode==="External"?d.Target:ci(d.Target,n),l[f]=h,c[d.Id]=h)}),l["!id"]=c,l}function Uo(a){var n=[Zr,je("Relationships",null,{xmlns:ls.RELS})];return Yr(a["!id"]).forEach(function(l){n[n.length]=je("Relationship",null,a["!id"][l])}),2<n.length&&(n[n.length]="</Relationships>",n[1]=n[1].replace("/>",">")),n.join("")}function Ar(a,n,l,c,f,h){if(f=f||{},a["!id"]||(a["!id"]={}),a["!idx"]||(a["!idx"]=1),n<0)for(n=a["!idx"];a["!id"]["rId"+n];++n);if(a["!idx"]=n+1,f.Id="rId"+n,f.Type=c,f.Target=l,h?f.TargetMode=h:-1<[Vt.HLINK,Vt.XPATH,Vt.XMISS].indexOf(f.Type)&&(f.TargetMode="External"),a["!id"][f.Id])throw new Error("Cannot rewrite rId "+n);return a["!id"][f.Id]=f,a[("/"+f.Target).replace("//","/")]=f,n}var Zg="application/vnd.oasis.opendocument.spreadsheet";function ju(a,n,l){return[' <rdf:Description rdf:about="'+a+`"> `,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(l||"odf")+"#"+n+`"/> `,` </rdf:Description> `].join("")}function Wu(){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 '+t.version+"</meta:generator></office:meta></office:document-meta>"}var Ks=[["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"]],$g=function(){for(var a=new Array(Ks.length),n=0;n<Ks.length;++n){var l=Ks[n],l="(?:"+l[0].slice(0,l[0].indexOf(":"))+":)"+l[0].slice(l[0].indexOf(":")+1);a[n]=new RegExp("<"+l+"[^>]*>([\\s\\S]*?)</"+l+">")}return a}();function Hu(a){var n={};a=Tr(a);for(var l=0;l<Ks.length;++l){var c=Ks[l],f=a.match($g[l]);f!=null&&0<f.length&&(n[c[1]]=pr(f[1])),c[2]==="date"&&n[c[1]]&&(n[c[1]]=Nr(n[c[1]]))}return n}function sc(a,n,l,c,f){f[a]==null&&n!=null&&n!==""&&(n=Dr(f[a]=n),c[c.length]=l?je(a,n,l):ms(a,n))}function Yu(a,n){var l=n||{},c=[Zr,je("cp:coreProperties",null,{"xmlns:cp":ls.CORE_PROPS,"xmlns:dc":ls.dc,"xmlns:dcterms":ls.dcterms,"xmlns:dcmitype":ls.dcmitype,"xmlns:xsi":ls.xsi})],f={};if(!a&&!l.Props)return c.join("");a&&(a.CreatedDate!=null&&sc("dcterms:created",typeof a.CreatedDate=="string"?a.CreatedDate:Nl(a.CreatedDate,l.WTF),{"xsi:type":"dcterms:W3CDTF"},c,f),a.ModifiedDate!=null&&sc("dcterms:modified",typeof a.ModifiedDate=="string"?a.ModifiedDate:Nl(a.ModifiedDate,l.WTF),{"xsi:type":"dcterms:W3CDTF"},c,f));for(var h=0;h!=Ks.length;++h){var d=Ks[h],m=l.Props&&l.Props[d[1]]!=null?l.Props[d[1]]:a?a[d[1]]:null;m===!0?m="1":m===!1?m="0":typeof m=="number"&&(m=String(m)),m!=null&&sc(d[0],m,null,c,f)}return 2<c.length&&(c[c.length]="</cp:coreProperties>",c[1]=c[1].replace("/>",">")),c.join("")}var lo=[["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"]],qu=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function Ku(a,n,l,c){var f=[];if(typeof a=="string")f=bu(a,c);else for(var h=0;h<a.length;++h)f=f.concat(a[h].map(function(v){return{v}}));var d,m=typeof n=="string"?bu(n,c).map(function(v){return v.v}):n,g=0;if(0<m.length)for(var y=0;y!==f.length;y+=2){switch(d=+f[y+1].v,f[y].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":l.Worksheets=d,l.SheetNames=m.slice(g,g+d);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":l.NamedRanges=d,l.DefinedNames=m.slice(g,g+d);break;case"Charts":case"Diagramme":l.Chartsheets=d,l.ChartNames=m.slice(g,g+d)}g+=d}}function Ju(a){var n=[],l=je;return(a=a||{}).Application="SheetJS",n[n.length]=Zr,n[n.length]=je("Properties",null,{xmlns:ls.EXT_PROPS,"xmlns:vt":ls.vt}),lo.forEach(function(c){if(a[c[1]]!==void 0){var f;switch(c[2]){case"string":f=Dr(String(a[c[1]]));break;case"bool":f=a[c[1]]?"true":"false"}f!==void 0&&(n[n.length]=l(c[0],f))}}),n[n.length]=l("HeadingPairs",l("vt:vector",l("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+l("vt:variant",l("vt:i4",String(a.Worksheets))),{size:2,baseType:"variant"})),n[n.length]=l("TitlesOfParts",l("vt:vector",a.SheetNames.map(function(c){return"<vt:lpstr>"+Dr(c)+"</vt:lpstr>"}).join(""),{size:a.Worksheets,baseType:"lpstr"})),2<n.length&&(n[n.length]="</Properties>",n[1]=n[1].replace("/>",">")),n.join("")}var e1=/<[^>]+>[^<]*/g;function Xu(a){var n=[Zr,je("Properties",null,{xmlns:ls.CUST_PROPS,"xmlns:vt":ls.vt})];if(!a)return n.join("");var l=1;return Yr(a).forEach(function(c){++l,n[n.length]=je("property",function(f,h){switch(typeof f){case"string":var d=je("vt:lpwstr",Dr(f));return d=h?d.replace(/"/g,"_x0022_"):d;case"number":return je((0|f)==f?"vt:i4":"vt:r8",Dr(String(f)));case"boolean":return je("vt:bool",f?"true":"false")}if(f instanceof Date)return je("vt:filetime",Nl(f));throw new Error("Unable to serialize "+f)}(a[c],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:l,name:Dr(c)})}),2<n.length&&(n[n.length]="</Properties>",n[1]=n[1].replace("/>",">")),n.join("")}var Qu,ac={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 oc(l){var n=l.read_shift(4),l=l.read_shift(4);return new Date(1e3*(l/1e7*Math.pow(2,32)+n/1e7-11644473600)).toISOString().replace(/\.000/,"")}function Zu(a,n,l){var c=a.l,f=a.read_shift(0,"lpstr-cp");if(l)for(;a.l-c&3;)++a.l;return f}function $u(a,n,l){var c=a.read_shift(0,"lpwstr");return l&&(a.l+=4-(c.length+1&3)&3),c}function ed(a,n,l){return n===31?$u(a):Zu(a,0,l)}function td(a,n,l){return ed(a,n,l===!1?0:4)}function t1(a){for(var n,l,c,f=a.read_shift(4),h=[],d=0;d<f/2;++d)h.push((c=l=void 0,l=(n=a).l,c=wn(n,Bu),n[n.l]==0&&n[n.l+1]==0&&n.l-l&2&&(n.l+=2),[c,wn(n,Vs)]));return h}function rd(a,n){for(var l=a.read_shift(4),c={},f=0;f!=l;++f){var h=a.read_shift(4),d=a.read_shift(4);c[h]=a.read_shift(d,n===1200?"utf16le":"utf8").replace(bt,"").replace(st,"!"),n===1200&&d%2&&(a.l+=2)}return 3&a.l&&(a.l=a.l>>3<<2),c}function sd(a){var n=a.read_shift(4),l=a.slice(a.l,a.l+n);return a.l+=n,0<(3&n)&&(a.l+=4-(3&n)&3),l}function wn(a,n,l){var c,f,h=a.read_shift(2),d=l||{};if(a.l+=2,n!==Vu&&h!==n&&Xg.indexOf(n)===-1&&((65534&n)!=4126||(65534&h)!=4126))throw new Error("Expected type "+n+" saw "+h);switch(n===Vu?h:n){case 2:return c=a.read_shift(2,"i"),d.raw||(a.l+=2),c;case 3:return c=a.read_shift(4,"i");case 11:return a.read_shift(4)!==0;case 19:return c=a.read_shift(4);case 30:return Zu(a,0,4).replace(bt,"");case 31:return $u(a);case 64:return oc(a);case 65:return sd(a);case 71:return(f={}).Size=(c=a).read_shift(4),c.l+=f.Size+3-(f.Size-1)%4,f;case 80:return td(a,h,!d.raw).replace(bt,"");case 81:return function(m,g){if(!g)throw new Error("VtUnalignedString must have positive length");return ed(m,g,0)}(a,h).replace(bt,"");case 4108:return t1(a);case 4126:case 4127:return(h==4127?function(m){for(var g=m.read_shift(4),y=[],v=0;v!=g;++v){var x=m.l;y[v]=m.read_shift(0,"lpwstr").replace(bt,""),m.l-x&2&&(m.l+=2)}return y}:function(m){for(var g=m.read_shift(4),y=[],v=0;v!=g;++v)y[v]=m.read_shift(0,"lpstr-cp").replace(bt,"");return y})(a);default:throw new Error("TypedPropertyValue unrecognized type "+n+" "+h)}}function ad(a,n){var l,c,f,h=be(4),d=be(4);switch(h.write_shift(4,a==80?31:a),a){case 3:d.write_shift(-4,n);break;case 5:(d=be(8)).write_shift(8,n,"f");break;case 11:d.write_shift(4,n?1:0);break;case 64:c=(typeof(l=n)=="string"?new Date(Date.parse(l)):l).getTime()/1e3+11644473600,f=c%Math.pow(2,32),l=(c-f)/Math.pow(2,32),l*=1e7,0<(c=(f*=1e7)/Math.pow(2,32)|0)&&(f%=Math.pow(2,32),l+=c),(c=be(8)).write_shift(4,f),c.write_shift(4,l),d=c;break;case 31:case 80:for((d=be(4+2*(n.length+1)+(n.length%2?0:2))).write_shift(4,n.length+1),d.write_shift(0,n,"dbcs");d.l!=d.length;)d.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+a+" "+n)}return ut([h,d])}function od(a,n){for(var l=a.l,c=a.read_shift(4),f=a.read_shift(4),h=[],y=0,d=0,m=-1,g={},y=0;y!=f;++y){var v=a.read_shift(4),x=a.read_shift(4);h[y]=[v,x+l]}h.sort(function(L,R){return L[1]-R[1]});var C={};for(y=0;y!=f;++y){if(a.l!==h[y][1]){var F=!0;if(0<y&&n)switch(n[h[y-1][0]].t){case 2:a.l+2===h[y][1]&&(a.l+=2,F=!1);break;case 80:case 4108:a.l<=h[y][1]&&(a.l=h[y][1],F=!1)}if((!n||y==0)&&a.l<=h[y][1]&&(F=!1,a.l=h[y][1]),F)throw new Error("Read Error: Expected address "+h[y][1]+" at "+a.l+" :"+y)}if(n){var k=n[h[y][0]];if(C[k.n]=wn(a,k.t,{raw:!0}),k.p==="version"&&(C[k.n]=String(C[k.n]>>16)+"."+("0000"+String(65535&C[k.n])).slice(-4)),k.n=="CodePage")switch(C[k.n]){case 0:C[k.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:S(d=C[k.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+C[k.n])}}else if(h[y][0]===1)d=C.CodePage=wn(a,Zl),S(d),m!==-1&&(P=a.l,a.l=h[m][1],g=rd(a,d),a.l=P);else if(h[y][0]===0)d!==0?g=rd(a,d):(m=y,a.l=h[y+1][1]);else{var D,P=g[h[y][0]];switch(a[a.l]){case 65:a.l+=4,D=sd(a);break;case 30:case 31:a.l+=4,D=td(a,a[a.l-4]).replace(/\u0000+$/,"");break;case 3:a.l+=4,D=a.read_shift(4,"i");break;case 19:a.l+=4,D=a.read_shift(4);break;case 5:a.l+=4,D=a.read_shift(8,"f");break;case 11:a.l+=4,D=$r(a,4);break;case 64:a.l+=4,D=Nr(oc(a));break;default:throw new Error("unparsed value: "+a[a.l])}C[P]=D}}return a.l=l+c,C}var id=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function nd(a,n,l){var c,f,h,d,m=be(8),g=[],y=[],v=8,x=0,C=be(8),F=be(8);if(C.write_shift(4,2),C.write_shift(4,1200),F.write_shift(4,1),y.push(C),g.push(F),v+=8+C.length,!n){(F=be(8)).write_shift(4,0),g.unshift(F);var k=[be(4)];for(k[0].write_shift(4,a.length),x=0;x<a.length;++x){var D=a[x][0];for((C=be(8+2*(D.length+1)+(D.length%2?0:2))).write_shift(4,x+2),C.write_shift(4,D.length+1),C.write_shift(0,D,"dbcs");C.l!=C.length;)C.write_shift(1,0);k.push(C)}C=ut(k),y.unshift(C),v+=8+C.length}for(x=0;x<a.length;++x)n&&!n[a[x][0]]||-1<id.indexOf(a[x][0])||-1<qu.indexOf(a[x][0])||a[x][1]!=null&&(h=a[x][1],c=0,C=n?((d=l[c=+n[a[x][0]]]).p=="version"&&typeof h=="string"&&(h=(+(f=h.split("."))[0]<<16)+(+f[1]||0)),ad(d.t,h)):((d=function(L){switch(typeof L){case"boolean":return 11;case"number":return(0|L)==L?3:5;case"string":return 31;case"object":if(L instanceof Date)return 64}return-1}(h))==-1&&(d=31,h=String(h)),ad(d,h)),y.push(C),(F=be(8)).write_shift(4,n?c:2+x),g.push(F),v+=8+C.length);for(var P=8*(y.length+1),x=0;x<y.length;++x)g[x].write_shift(4,P),P+=y[x].length;return m.write_shift(4,v),m.write_shift(4,y.length),ut([m].concat(g).concat(y))}function ld(a,n,l){var c=a.content;if(!c)return{};gs(c,0);var f,h=0;c.chk("feff","Byte Order: "),c.read_shift(2);var d=c.read_shift(4),m=c.read_shift(16);if(m!==_t.utils.consts.HEADER_CLSID&&m!==l)throw new Error("Bad PropertySet CLSID "+m);if((a=c.read_shift(4))!==1&&a!==2)throw new Error("Unrecognized #Sets: "+a);if(l=c.read_shift(16),m=c.read_shift(4),a===1&&m!==c.l)throw new Error("Length mismatch: "+m+" !== "+c.l);a===2&&(f=c.read_shift(16),h=c.read_shift(4));var g,y,v=od(c,n),x={SystemIdentifier:d};for(g in v)x[g]=v[g];if(x.FMTID=l,a===1)return x;if(h-c.l==2&&(c.l+=2),c.l!==h)throw new Error("Length mismatch 2: "+c.l+" !== "+h);try{y=od(c,null)}catch{}for(g in y)x[g]=y[g];return x.FMTID=[l,f],x}function cd(a,n,l,c,f,h){var d=be(f?68:48),m=[d];return d.write_shift(2,65534),d.write_shift(2,0),d.write_shift(4,842412599),d.write_shift(16,_t.utils.consts.HEADER_CLSID,"hex"),d.write_shift(4,f?2:1),d.write_shift(16,n,"hex"),d.write_shift(4,f?68:48),c=nd(a,l,c),m.push(c),f&&(f=nd(f,null,null),d.write_shift(16,h,"hex"),d.write_shift(4,68+c.length),m.push(f)),ut(m)}function Ua(a,n){return a.read_shift(n),null}function $r(a,n){return a.read_shift(n)===1}function Ls(a,n){return(n=n||be(2)).write_shift(2,+!!a),n}function as(a){return a.read_shift(2,"u")}function Js(a,n){return(n=n||be(2)).write_shift(2,a),n}function fd(a,n){return function(l,c,f){for(var h=[],d=l.l+c;l.l<d;)h.push(f(l,d-l.l));if(d!==l.l)throw new Error("Slurp error");return h}(a,n,as)}function ud(a,n,l){return(l=l||be(2)).write_shift(1,n=="e"?+a:+!!a),l.write_shift(1,n=="e"?1:0),l}function _i(a,n,l){var c=a.read_shift(l&&12<=l.biff?2:1),f="sbcs-cont",h=u;return l&&8<=l.biff&&(u=1200),l&&l.biff!=8?l.biff==12&&(f="wstr"):a.read_shift(1)&&(f="dbcs-cont"),2<=l.biff&&l.biff<=5&&(f="cpstr"),f=c?a.read_shift(c,f):"",u=h,f}function co(a,n,l){if(l){if(2<=l.biff&&l.biff<=5)return a.read_shift(n,"cpstr");if(12<=l.biff)return a.read_shift(n,"dbcs-cont")}return a.read_shift(1)===0?a.read_shift(n,"sbcs-cont"):a.read_shift(n,"dbcs-cont")}function vi(a,n,l){var c=a.read_shift(l&&l.biff==2?1:2);return c===0?(a.l++,""):co(a,c,l)}function fo(a,n,l){if(5<l.biff)return vi(a,0,l);var c=a.read_shift(1);return c===0?(a.l++,""):a.read_shift(c,l.biff<=4||!a.lens?"cpstr":"sbcs-cont")}function dd(a,n,l){return(l=l||be(3+2*a.length)).write_shift(2,a.length),l.write_shift(1,1),l.write_shift(31,a,"utf16le"),l}function r1(a){var n,l,c,f,h=a.read_shift(16);switch(h){case"e0c9ea79f9bace118c8200aa004ba90b":return l=(n=a).read_shift(4),c=n.l,f=!1,24<l&&(n.l+=l-24,n.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(f=!0),n.l=c),l=n.read_shift((f?l-24:l)>>1,"utf16le").replace(bt,""),f&&(n.l+=24),l;case"0303000000000000c000000000000046":return function(d){for(var m=d.read_shift(2),g="";0<m--;)g+="../";var y=d.read_shift(0,"lpstr-ansi");if(d.l+=2,d.read_shift(2)!=57005)throw new Error("Bad FileMoniker");if(d.read_shift(4)===0)return g+y.replace(/\\/g,"/");if(y=d.read_shift(4),d.read_shift(2)!=3)throw new Error("Bad FileMoniker");return g+d.read_shift(y>>1,"utf16le").replace(bt,"")}(a);default:throw new Error("Unsupported Moniker "+h)}}function xn(a){var n=a.read_shift(4);return 0<n?a.read_shift(n,"utf16le").replace(bt,""):""}function hd(a,n){(n=n||be(6+2*a.length)).write_shift(4,1+a.length);for(var l=0;l<a.length;++l)n.write_shift(2,a.charCodeAt(l));return n.write_shift(2,0),n}function pd(a){return[a.read_shift(1),a.read_shift(1),a.read_shift(1),a.read_shift(1)]}function md(a){return a=pd(a),a[3]=0,a}function ya(a){return{r:a.read_shift(2),c:a.read_shift(2),ixfe:a.read_shift(2)}}function uo(a,n,l,c){return(c=c||be(6)).write_shift(2,a),c.write_shift(2,n),c.write_shift(2,l||0),c}function gd(a){return[a.read_shift(2),Ql(a)]}function Cn(a){var n=a.read_shift(2),l=a.read_shift(2);return{s:{c:a.read_shift(2),r:n},e:{c:a.read_shift(2),r:l}}}function bd(a,n){return(n=n||be(8)).write_shift(2,a.s.r),n.write_shift(2,a.e.r),n.write_shift(2,a.s.c),n.write_shift(2,a.e.c),n}function yd(a){var n=a.read_shift(2),l=a.read_shift(2);return{s:{c:a.read_shift(1),r:n},e:{c:a.read_shift(1),r:l}}}var s1=yd;function _d(a){a.l+=4;var n=a.read_shift(2),l=a.read_shift(2),c=a.read_shift(2);return a.l+=12,[l,n,c]}function Cs(a){a.l+=2,a.l+=a.read_shift(2)}var a1={0:Cs,4:Cs,5:Cs,6:Cs,7:function(a){return a.l+=4,a.cf=a.read_shift(2),{}},8:Cs,9:Cs,10:Cs,11:Cs,12:Cs,13:function(a){var n={};return a.l+=4,a.l+=16,n.fSharedNote=a.read_shift(2),a.l+=4,n},14:Cs,15:Cs,16:Cs,17:Cs,18:Cs,19:Cs,20:Cs,21:_d};function Fn(a,n){var l={BIFFVer:0,dt:0};switch(l.BIFFVer=a.read_shift(2),2<=(n-=2)&&(l.dt=a.read_shift(2),a.l-=2),l.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(6<n)throw new Error("Unexpected BIFF Ver "+l.BIFFVer)}return a.read_shift(n),l}function ic(a,n,l){var c=1536,f=16;switch(l.bookType){case"biff8":break;case"biff5":c=1280,f=8;break;case"biff4":c=4,f=6;break;case"biff3":c=3,f=6;break;case"biff2":c=2,f=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}return l=be(f),l.write_shift(2,c),l.write_shift(2,n),4<f&&l.write_shift(2,29282),6<f&&l.write_shift(2,1997),8<f&&(l.write_shift(2,49161),l.write_shift(2,1),l.write_shift(2,1798),l.write_shift(2,0)),l}function o1(a){var n=be(8);n.write_shift(4,a.Count),n.write_shift(4,a.Unique);for(var l,c,f,h=[],d=0;d<a.length;++d)h[d]=(l=a[d],f=c=void 0,c=l.t||"",(f=be(3)).write_shift(2,c.length),f.write_shift(1,1),(l=be(2*c.length)).write_shift(2*c.length,c,"utf16le"),ut([f,l]));var m=ut([n].concat(h));return m.parts=[n.length].concat(h.map(function(g){return g.length})),m}function vd(a,n,l){var c=0;return l&&l.biff==2||(c=a.read_shift(2)),a=a.read_shift(2),l&&l.biff==2&&(c=1-(a>>15),a&=32767),[{Unsynced:1&c,DyZero:(2&c)>>1,ExAsc:(4&c)>>2,ExDsc:(8&c)>>3},a]}var Jo=fo;function wd(a,h,d){var c=a.l+h,m=d.biff!=8&&d.biff?2:4,f=a.read_shift(m),h=a.read_shift(m),d=a.read_shift(2),m=a.read_shift(2);return a.l=c,{s:{r:f,c:d},e:{r:h,c:m}}}function xd(a,n,l,c){return l=l&&l.biff==5,(c=c||be(l?16:20)).write_shift(2,0),a.style?(c.write_shift(2,a.numFmtId||0),c.write_shift(2,65524)):(c.write_shift(2,a.numFmtId||0),c.write_shift(2,n<<4)),n=0,0<a.numFmtId&&l&&(n|=1024),c.write_shift(4,n),c.write_shift(4,0),l||c.write_shift(4,0),c.write_shift(2,0),c}function Cd(a,n,l){var c=ya(a);return l.biff!=2&&n!=9||++a.l,a=(n=a).read_shift(1),a=n.read_shift(1)===1?a:a===1,c.val=a,c.t=a===!0||a===!1?"b":"e",c}function Fd(a,n,l){return n===0?"":fo(a,0,l)}function Dd(a,n,l){var c,f=a.read_shift(2),f={fBuiltIn:1&f,fWantAdvise:f>>>1&1,fWantPict:f>>>2&1,fOle:f>>>3&1,fOleLink:f>>>4&1,cf:f>>>5&1023,fIcon:f>>>15&1};return l.sbcch===14849&&(c=function(h,y,m){h.l+=4,y-=4;var g=h.l+y,y=_i(h,0,m);if((m=h.read_shift(2))!==(g-=h.l))throw new Error("Malformed AddinUdf: padding = "+g+" != "+m);return h.l+=m,y}(a,n-2,l)),f.body=c||a.read_shift(n-2),typeof c=="string"&&(f.Name=c),f}var i1=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function Ad(a,g,l){var c=a.l+g,f=a.read_shift(2),h=a.read_shift(1),d=a.read_shift(1),m=a.read_shift(l&&l.biff==2?1:2),g=0;return(!l||5<=l.biff)&&(l.biff!=5&&(a.l+=2),g=a.read_shift(2),l.biff==5&&(a.l+=2),a.l+=4),d=co(a,d,l),32&f&&(d=i1[d.charCodeAt(0)]),f=c-a.l,l&&l.biff==2&&--f,{chKey:h,Name:d,itab:g,rgce:c!=a.l&&m!==0&&0<f?function(y,k,x,D){var F,k=y.l+k,D=Ri(y,D,x);return k!==y.l&&(F=Ti(y,k-y.l,D,x)),[D,F]}(a,f,l,m):[]}}function Sd(a,n,l){if(l.biff<8)return function(m,g){return m[m.l+1]==3&&m[m.l]++,g=_i(m,0,g),g.charCodeAt(0)==3?g.slice(1):g}(a,l);for(var c,f,h=[],n=a.l+n,d=a.read_shift(8<l.biff?4:2);d--!=0;)h.push((c=a,l.biff,f=8<(f=l).biff?4:2,[c.read_shift(f),c.read_shift(f,"i"),c.read_shift(f,"i")]));if(a.l!=n)throw new Error("Bad ExternSheet: "+a.l+" != "+n);return h}function Ed(a,n,l){var c=s1(a);switch(l.biff){case 2:a.l++,n-=7;break;case 3:case 4:a.l+=2,n-=8;break;default:a.l+=6,n-=12}return[c,function(f,h,d){var m,g=f.l+h,y=d.biff==2?1:2,v=f.read_shift(y);if(v==65535)return[[],vs(f,h-2)];var x=Ri(f,v,d);return h!==v+y&&(m=Ti(f,h-v-y,x,d)),f.l=g,[x,m]}(a,n,l)]}var n1={8:function(a,n){var l=a.l+n;a.l+=10;var c=a.read_shift(2);return a.l+=4,a.l+=2,a.l+=2,a.l+=2,a.l+=4,n=a.read_shift(1),a.l+=n,a.l=l,{fmt:c}}};function l1(a){var n=be(24),l=jr(a[0]);n.write_shift(2,l.r),n.write_shift(2,l.r),n.write_shift(2,l.c),n.write_shift(2,l.c);for(var c="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),f=0;f<16;++f)n.write_shift(1,parseInt(c[f],16));return ut([n,function(h){var d=be(512),m=0,g=h.Target,y=-1<(h=(g=g.slice(0,7)=="file://"?g.slice(7):g).indexOf("#"))?31:23;switch(g.charAt(0)){case"#":y=28;break;case".":y&=-3}d.write_shift(4,2),d.write_shift(4,y);for(var v=[8,6815827,6619237,4849780,83],m=0;m<v.length;++m)d.write_shift(4,v[m]);if(y==28)hd(g=g.slice(1),d);else if(2&y){for(v="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),m=0;m<v.length;++m)d.write_shift(1,parseInt(v[m],16));var x=-1<h?g.slice(0,h):g;for(d.write_shift(4,2*(x.length+1)),m=0;m<x.length;++m)d.write_shift(2,x.charCodeAt(m));d.write_shift(2,0),8&y&&hd(-1<h?g.slice(h+1):"",d)}else{for(v="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),m=0;m<v.length;++m)d.write_shift(1,parseInt(v[m],16));for(var C=0;g.slice(3*C,3*C+3)=="../"||g.slice(3*C,3*C+3)=="..\\";)++C;for(d.write_shift(2,C),d.write_shift(4,g.length-3*C+1),m=0;m<g.length-3*C;++m)d.write_shift(1,255&g.charCodeAt(m+3*C));for(d.write_shift(1,0),d.write_shift(2,65535),d.write_shift(2,57005),m=0;m<6;++m)d.write_shift(4,0)}return d.slice(0,d.l)}(a[1])])}function Td(a,g,l){if(!l.cellStyles)return vs(a,g);var c=l&&12<=l.biff?4:2,f=a.read_shift(c),h=a.read_shift(c),d=a.read_shift(c),m=a.read_shift(c),g=a.read_shift(2);return c==2&&(a.l+=2),m={s:f,e:h,w:d,ixfe:m,flags:g},(5<=l.biff||!l.biff)&&(m.level=g>>8&7),m}var c1=ya,f1=fd,Hc=vi,Rd,kd,Dn,u1=[2,3,48,49,131,139,140,245],nc=(Rd={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},kd=ln({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}),Dn={B:8,C:250,L:1,D:8,"?":0,"":0},{to_workbook:function(a,n){try{return Ba(Ld(a,n),n)}catch(l){if(n&&n.WTF)throw l}return{SheetNames:[],Sheets:{}}},to_sheet:Ld,from_sheet:function(a,n){if(0<=+(n=n||{}).codepage&&S(+n.codepage),n.type=="string")throw new Error("Cannot write DBF to JS string");for(var l=Is(),c=(n=qn(a,{header:1,raw:!0,cellDates:!0}))[0],f=n.slice(1),h=a["!cols"]||[],y=0,d=0,m=0,g=1,y=0;y<c.length;++y)if(((h[y]||{}).DBF||{}).name)c[y]=h[y].DBF.name,++m;else if(c[y]!=null){if(++m,typeof c[y]=="number"&&(c[y]=c[y].toString(10)),typeof c[y]!="string")throw new Error("DBF Invalid column name "+c[y]+" |"+typeof c[y]+"|");if(c.indexOf(c[y])!==y){for(d=0;d<1024;++d)if(c.indexOf(c[y]+"_"+d)==-1){c[y]+="_"+d;break}}}var v=rr(a["!ref"]),x=[],C=[],F=[];for(y=0;y<=v.e.c-v.s.c;++y){for(var k="",D="",P=0,L=[],d=0;d<f.length;++d)f[d][y]!=null&&L.push(f[d][y]);if(L.length!=0&&c[y]!=null){for(d=0;d<L.length;++d){switch(typeof L[d]){case"number":D="B";break;case"string":D="C";break;case"boolean":D="L";break;case"object":D=L[d]instanceof Date?"D":"C";break;default:D="C"}P=Math.max(P,String(L[d]).length),k=k&&k!=D?"C":D}250<P&&(P=250),(D=((h[y]||{}).DBF||{}).type)=="C"&&h[y].DBF.len>P&&(P=h[y].DBF.len),k=="B"&&D=="N"&&(k="N",F[y]=h[y].DBF.dec,P=h[y].DBF.len),C[y]=k=="C"||D=="N"?P:Dn[k]||0,g+=C[y],x[y]=k}else x[y]="?"}var R,O,I=l.next(32);for(I.write_shift(4,318902576),I.write_shift(4,f.length),I.write_shift(2,296+32*m),I.write_shift(2,g),y=0;y<4;++y)I.write_shift(4,0);for(I.write_shift(4,0|(+kd[p]||3)<<8),d=y=0;y<c.length;++y)c[y]!=null&&(R=l.next(32),O=(c[y].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11),R.write_shift(1,O,"sbcs"),R.write_shift(1,x[y]=="?"?"C":x[y],"sbcs"),R.write_shift(4,d),R.write_shift(1,C[y]||Dn[x[y]]||0),R.write_shift(1,F[y]||0),R.write_shift(1,2),R.write_shift(4,0),R.write_shift(1,0),R.write_shift(4,0),R.write_shift(4,0),d+=C[y]||Dn[x[y]]||0);var V=l.next(264);for(V.write_shift(4,13),y=0;y<65;++y)V.write_shift(4,0);for(y=0;y<f.length;++y){var X=l.next(g);for(X.write_shift(1,0),d=0;d<c.length;++d)if(c[d]!=null)switch(x[d]){case"L":X.write_shift(1,f[y][d]==null?63:f[y][d]?84:70);break;case"B":X.write_shift(8,f[y][d]||0,"f");break;case"N":var ae="0";for(typeof f[y][d]=="number"&&(ae=f[y][d].toFixed(F[d]||0)),m=0;m<C[d]-ae.length;++m)X.write_shift(1,32);X.write_shift(1,ae,"sbcs");break;case"D":f[y][d]?(X.write_shift(4,("0000"+f[y][d].getFullYear()).slice(-4),"sbcs"),X.write_shift(2,("00"+(f[y][d].getMonth()+1)).slice(-2),"sbcs"),X.write_shift(2,("00"+f[y][d].getDate()).slice(-2),"sbcs")):X.write_shift(8,"00000000","sbcs");break;case"C":var te=String(f[y][d]!=null?f[y][d]:"").slice(0,C[d]);for(X.write_shift(1,te,"sbcs"),m=0;m<C[d]-te.length;++m)X.write_shift(1,32)}}return l.next(1).write_shift(1,26),l.end()}});function Ld(a,n){return n=n||{},n.dateNF||(n.dateNF="yyyymmdd"),a=Io(function(l,c){var f=[],h=W(1);switch(c.type){case"base64":h=ve(j(l));break;case"binary":h=ve(l);break;case"buffer":case"array":h=l}gs(h,0);var d=h.read_shift(1),m=!!(136&d),g=!1,y=!1;switch(d){case 2:case 3:break;case 48:case 49:m=g=!0;break;case 131:case 139:break;case 140:y=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+d.toString(16))}var v=0,x=521;d==2&&(v=h.read_shift(2)),h.l+=3,1048576<(v=d!=2?h.read_shift(4):v)&&(v=1e6),d!=2&&(x=h.read_shift(2));var C=h.read_shift(2),F=c.codepage||1252;d!=2&&(h.l+=16,h.read_shift(1),h[h.l]!==0&&(F=Rd[h[h.l]]),h.l+=1,h.l+=2),y&&(h.l+=36);for(var k=[],D={},P=Math.min(h.length,d==2?521:x-10-(g?264:0)),L=y?32:11;h.l<P&&h[h.l]!=13;)switch((D={}).name=e.utils.decode(F,h.slice(h.l,h.l+L)).replace(/[\u0000\r\n].*$/g,""),h.l+=L,D.type=String.fromCharCode(h.read_shift(1)),d==2||y||(D.offset=h.read_shift(4)),D.len=h.read_shift(1),d==2&&(D.offset=h.read_shift(2)),D.dec=h.read_shift(1),D.name.length&&k.push(D),d!=2&&(h.l+=y?13:14),D.type){case"B":g&&D.len==8||!c.WTF||console.log("Skipping "+D.name+":"+D.type);break;case"G":case"P":c.WTF&&console.log("Skipping "+D.name+":"+D.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: "+D.type)}if(h[h.l]!==13&&(h.l=x-1),h.read_shift(1)!==13)throw new Error("DBF Terminator not found "+h.l+" "+h[h.l]);h.l=x;var R=0,O=0;for(f[0]=[],O=0;O!=k.length;++O)f[0][O]=k[O].name;for(;0<v--;)if(h[h.l]!==42)for(++h.l,f[++R]=[],O=O=0;O!=k.length;++O){var I=h.slice(h.l,h.l+k[O].len);h.l+=k[O].len,gs(I,0);var V=e.utils.decode(F,I);switch(k[O].type){case"C":V.trim().length&&(f[R][O]=V.replace(/\s+$/,""));break;case"D":V.length===8?f[R][O]=new Date(+V.slice(0,4),+V.slice(4,6)-1,+V.slice(6,8)):f[R][O]=V;break;case"F":f[R][O]=parseFloat(V.trim());break;case"+":case"I":f[R][O]=y?2147483648^I.read_shift(-4,"i"):I.read_shift(4,"i");break;case"L":switch(V.trim().toUpperCase()){case"Y":case"T":f[R][O]=!0;break;case"N":case"F":f[R][O]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+V+"|")}break;case"M":if(!m)throw new Error("DBF Unexpected MEMO for type "+d.toString(16));f[R][O]="##MEMO##"+(y?parseInt(V.trim(),10):I.read_shift(4));break;case"N":(V=V.replace(/\u0000/g,"").trim())&&V!="."&&(f[R][O]=+V||0);break;case"@":f[R][O]=new Date(I.read_shift(-8,"f")-621356832e5);break;case"T":f[R][O]=new Date(864e5*(I.read_shift(4)-2440588)+I.read_shift(4));break;case"Y":f[R][O]=I.read_shift(4,"i")/1e4+I.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":f[R][O]=-I.read_shift(-8,"f");break;case"B":if(g&&k[O].len==8){f[R][O]=I.read_shift(8,"f");break}case"G":case"P":I.l+=k[O].len;break;case"0":if(k[O].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+k[O].type)}}else h.l+=C;if(d!=2&&h.l<h.length&&h[h.l++]!=26)throw new Error("DBF EOF Marker missing "+(h.l-1)+" of "+h.length+" "+h[h.l-1].toString(16));return c&&c.sheetRows&&(f=f.slice(0,c.sheetRows)),c.DBF=k,f}(a,n),n),a["!cols"]=n.DBF.map(function(l){return{wch:l.len,DBF:l}}),delete n.DBF,a}var An,Md,Od,Pd,Nd=(An={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",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},Md=new RegExp("\x1BN("+Yr(An).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),Od=function(a,n){return n=An[n],typeof n=="number"?U(n):n},Pd=function(a,n,l){return l=n.charCodeAt(0)-32<<4|l.charCodeAt(0)-48,l==59?a:U(l)},An["|"]=254,{to_workbook:function(a,n){return Ba(Id(a,n),n)},to_sheet:Id,from_sheet:function(a,n){var l,c,f=["ID;PWXL;N;E"],h=[],d=rr(a["!ref"]),m=Array.isArray(a),g=`\r `;f.push("P;PGeneral"),f.push("F;P0;DG0G8;M255"),a["!cols"]&&(l=f,a["!cols"].forEach(function(C,F){F="F;W"+(F+1)+" "+(F+1)+" ",C.hidden?F+="0":(typeof C.width!="number"||C.wpx||(C.wpx=Ci(C.width)),typeof C.wpx!="number"||C.wch||(C.wch=Fi(C.wpx)),typeof C.wch=="number"&&(F+=Math.round(C.wch))),F.charAt(F.length-1)!=" "&&l.push(F)})),a["!rows"]&&(c=f,a["!rows"].forEach(function(C,F){var k="F;";C.hidden?k+="M0;":C.hpt?k+="M"+20*C.hpt+";":C.hpx&&(k+="M"+20*Di(C.hpx)+";"),2<k.length&&c.push(k+"R"+(F+1))})),f.push("B;Y"+(d.e.r-d.s.r+1)+";X"+(d.e.c-d.s.c+1)+";D"+[d.s.c,d.s.r,d.e.c,d.e.r].join(" "));for(var y=d.s.r;y<=d.e.r;++y)for(var v=d.s.c;v<=d.e.c;++v){var x=Rt({r:y,c:v});(x=m?(a[y]||[])[v]:a[x])&&(x.v!=null||x.f&&!x.F)&&h.push(function(C,F,k){var D="C;Y"+(F+1)+";X"+(k+1)+";K";switch(C.t){case"n":D+=C.v||0,C.f&&!C.F&&(D+=";E"+xc(C.f,{r:F,c:k}));break;case"b":D+=C.v?"TRUE":"FALSE";break;case"e":D+=C.w||C.v;break;case"d":D+='"'+(C.w||C.v)+'"';break;case"s":D+='"'+C.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return D}(x,y,v))}return f.join(g)+g+h.join(g)+g+"E"+g}});function Sn(C,n){var l,c,f=C.split(/[\n\r]+/),h=-1,d=-1,m=0,g=0,y=[],v=[],x=null,C={},F=[],k=[],D=0;for(0<=+n.codepage&&S(+n.codepage);m!==f.length;++m){D=0;var P,L=f[m].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,Pd).replace(Md,Od),R=L.replace(/;;/g,"\0").split(";").map(function(ke){return ke.replace(/\u0000/g,";")}),O=R[0];if(0<L.length)switch(O){case"ID":case"E":case"B":case"O":case"W":break;case"P":R[1].charAt(0)=="P"&&v.push(L.slice(3).replace(/;;/g,";"));break;case"C":for(var I=!1,V=!1,X=!1,ae=!1,te=-1,ce=-1,g=1;g<R.length;++g)switch(R[g].charAt(0)){case"A":break;case"X":d=parseInt(R[g].slice(1))-1,V=!0;break;case"Y":for(h=parseInt(R[g].slice(1))-1,V||(d=0),c=y.length;c<=h;++c)y[c]=[];break;case"K":(P=R[g].slice(1)).charAt(0)==='"'?P=P.slice(1,P.length-1):P==="TRUE"?P=!0:P==="FALSE"?P=!1:isNaN(ia(P))?isNaN(Oo(P).getDate())||(P=Nr(P)):(P=ia(P),x!==null&&eo(x)&&(P=dn(P))),e!==void 0&&typeof P=="string"&&(n||{}).type!="string"&&(n||{}).codepage&&(P=e.utils.decode(n.codepage,P)),I=!0;break;case"E":ae=!0;var _e=Yo(R[g].slice(1),{r:h,c:d});y[h][d]=[y[h][d],_e];break;case"S":X=!0,y[h][d]=[y[h][d],"S5S"];break;case"G":break;case"R":te=parseInt(R[g].slice(1))-1;break;case"C":ce=parseInt(R[g].slice(1))-1;break;default:if(n&&n.WTF)throw new Error("SYLK bad record "+L)}if(I&&(y[h][d]&&y[h][d].length==2?y[h][d][0]=P:y[h][d]=P,x=null),X){if(ae)throw new Error("SYLK shared formula cannot have own formula");var we=-1<te&&y[te][ce];if(!we||!we[1])throw new Error("SYLK shared formula cannot find base");y[h][d][1]=Lh(we[1],{r:h-te,c:d-ce})}break;case"F":var de=0;for(g=1;g<R.length;++g)switch(R[g].charAt(0)){case"X":d=parseInt(R[g].slice(1))-1,++de;break;case"Y":for(h=parseInt(R[g].slice(1))-1,c=y.length;c<=h;++c)y[c]=[];break;case"M":D=parseInt(R[g].slice(1))/20;break;case"F":case"G":break;case"P":x=v[parseInt(R[g].slice(1))];break;case"S":case"D":case"N":break;case"W":for(l=R[g].slice(1).split(" "),c=parseInt(l[0],10);c<=parseInt(l[1],10);++c)D=parseInt(l[2],10),k[c-1]=D===0?{hidden:!0}:{wch:D},za(k[c-1]);break;case"C":k[d=parseInt(R[g].slice(1))-1]||(k[d]={});break;case"R":F[h=parseInt(R[g].slice(1))-1]||(F[h]={}),0<D?(F[h].hpt=D,F[h].hpx=Wo(D)):D===0&&(F[h].hidden=!0);break;default:if(n&&n.WTF)throw new Error("SYLK bad record "+L)}de<1&&(x=null);break;default:if(n&&n.WTF)throw new Error("SYLK bad record "+L)}}return 0<F.length&&(C["!rows"]=F),0<k.length&&(C["!cols"]=k),[y=n&&n.sheetRows?y.slice(0,n.sheetRows):y,C]}function Id(c,n){var l=function(d,m){switch(m.type){case"base64":return Sn(j(d),m);case"binary":return Sn(d,m);case"buffer":return Sn(H&&Buffer.isBuffer(d)?d.toString("binary"):ft(d),m);case"array":return Sn(to(d),m)}throw new Error("Unrecognized type "+m.type)}(c,n),c=l[0],f=l[1],h=Io(c,n);return Yr(f).forEach(function(d){h[d]=f[d]}),h}var Vd={to_workbook:function(a,n){return Ba(Bd(a,n),n)},to_sheet:Bd,from_sheet:function(a){var n=[],l=rr(a["!ref"]),c=Array.isArray(a);Tn(n,"TABLE",0,1,"sheetjs"),Tn(n,"VECTORS",0,l.e.r-l.s.r+1,""),Tn(n,"TUPLES",0,l.e.c-l.s.c+1,""),Tn(n,"DATA",0,0,"");for(var f=l.s.r;f<=l.e.r;++f){_a(n,-1,0,"BOT");for(var h=l.s.c;h<=l.e.c;++h){var d,m=Rt({r:f,c:h});if(d=c?(a[f]||[])[h]:a[m])switch(d.t){case"n":var g=d.w;(g=!g&&d.v!=null?d.v:g)==null?d.f&&!d.F?_a(n,1,0,"="+d.f):_a(n,1,0,""):_a(n,0,g,"V");break;case"b":_a(n,0,d.v?1:0,d.v?"TRUE":"FALSE");break;case"s":_a(n,1,0,isNaN(d.v)?d.v:'="'+d.v+'"');break;case"d":d.w||(d.w=Us(d.z||oe[14],ns(Nr(d.v)))),_a(n,0,d.w,"V");break;default:_a(n,1,0,"")}else _a(n,1,0,"")}}return _a(n,-1,0,"EOD"),n.join(`\r `)}};function En(a,n){for(var l=a.split(` `),c=-1,f=-1,h=0,d=[];h!==l.length;++h)if(l[h].trim()!=="BOT"){if(!(c<0)){for(var m=l[h].trim().split(","),g=m[0],y=m[1],v=l[++h]||"";1&(v.match(/["]/g)||[]).length&&h<l.length-1;)v+=` `+l[++h];switch(v=v.trim(),+g){case-1:if(v==="BOT"){d[++c]=[],f=0;continue}if(v!=="EOD")throw new Error("Unrecognized DIF special command "+v);break;case 0:v==="TRUE"?d[c][f]=!0:v==="FALSE"?d[c][f]=!1:isNaN(ia(y))?isNaN(Oo(y).getDate())?d[c][f]=y:d[c][f]=Nr(y):d[c][f]=ia(y),++f;break;case 1:v=(v=v.slice(1,v.length-1)).replace(/""/g,'"'),v&&v.match(/^=".*"$/)&&(v=v.slice(2,-1)),d[c][f++]=v!==""?v:null}if(v==="EOD")break}}else d[++c]=[],f=0;return d=n&&n.sheetRows?d.slice(0,n.sheetRows):d}function Bd(a,n){return Io(function(l,c){switch(c.type){case"base64":return En(j(l),c);case"binary":return En(l,c);case"buffer":return En(H&&Buffer.isBuffer(l)?l.toString("binary"):ft(l),c);case"array":return En(to(l),c)}throw new Error("Unrecognized type "+c.type)}(a,n),n)}function Tn(a,n,l,c,f){a.push(n),a.push(l+","+c),a.push('"'+f.replace(/"/g,'""')+'"')}function _a(a,n,l,c){a.push(n+","+l),a.push(n==1?'"'+c.replace(/"/g,'""')+'"':c)}var Ud,lc,zd,Gd,jd=(Ud=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(` `),lc=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(` `)+` `,zd=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(` `),Gd="--SocialCalcSpreadsheetControlSave--",{to_workbook:function(a,n){return Ba(Wd(a,n),n)},to_sheet:Wd,from_sheet:function(a){return[Ud,lc,zd,lc,function(n){if(!n||!n["!ref"])return"";for(var l,c,f=[],h=[],d=ks(n["!ref"]),m=Array.isArray(n),g=d.s.r;g<=d.e.r;++g)for(var y=d.s.c;y<=d.e.c;++y)if(c=Rt({r:g,c:y}),(l=m?(n[g]||[])[y]:n[c])&&l.v!=null&&l.t!=="z"){switch(h=["cell",c,"t"],l.t){case"s":case"str":h.push(cc(l.v));break;case"n":l.f?(h[2]="vtf",h[3]="n",h[4]=l.v,h[5]=cc(l.f)):(h[2]="v",h[3]=l.v);break;case"b":h[2]="vt"+(l.f?"f":"c"),h[3]="nl",h[4]=l.v?"1":"0",h[5]=cc(l.f||(l.v?"TRUE":"FALSE"));break;case"d":var v=ns(Nr(l.v));h[2]="vtc",h[3]="nd",h[4]=""+v,h[5]=l.w||Us(l.z||oe[14],v);break;case"e":continue}f.push(h.join(":"))}return f.push("sheet:c:"+(d.e.c-d.s.c+1)+":r:"+(d.e.r-d.s.r+1)+":tvf:1"),f.push("valueformat:1:text-wiki"),f.join(` `)}(a),Gd].join(` `)}});function cc(a){return a.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function Wd(a,n){return Io(function(l,c){for(var f,h=l.split(` `),d=-1,m=0,g=[];m!==h.length;++m){var y=h[m].trim().split(":");if(y[0]==="cell"){var v=jr(y[1]);if(g.length<=v.r)for(d=g.length;d<=v.r;++d)g[d]||(g[d]=[]);switch(d=v.r,f=v.c,y[2]){case"t":g[d][f]=y[3].replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,` `);break;case"v":g[d][f]=+y[3];break;case"vtf":var x=y[y.length-1];case"vtc":y[3]==="nl"?g[d][f]=!!+y[4]:g[d][f]=+y[4],y[2]=="vtf"&&(g[d][f]=[g[d][f],x])}}}return g=c&&c.sheetRows?g.slice(0,c.sheetRows):g}(a,n),n)}var fc,Rn,zo=(fc={44:",",9:" ",59:";",124:"|"},Rn={44:3,9:2,59:1,124:0},{to_workbook:function(a,n){return Ba(qd(a,n),n)},to_sheet:qd,from_sheet:function(a){for(var n=[],l=rr(a["!ref"]),c=Array.isArray(a),f=l.s.r;f<=l.e.r;++f){for(var h=[],d=l.s.c;d<=l.e.c;++d){var m=Rt({r:f,c:d});if((m=c?(a[f]||[])[d]:a[m])&&m.v!=null){for(var g=(m.w||(ba(m),m.w)||"").slice(0,10);g.length<10;)g+=" ";h.push(g+(d===0?" ":""))}else h.push(" ")}n.push(h.join(""))}return n.join(` `)}});function Hd(a,n,l,c,f){f.raw?n[l][c]=a:a===""||(a==="TRUE"?n[l][c]=!0:a==="FALSE"?n[l][c]=!1:isNaN(ia(a))?isNaN(Oo(a).getDate())?n[l][c]=a:n[l][c]=Nr(a):n[l][c]=ia(a))}function Yd(a){for(var n={},l=!1,c=0,f=0;c<a.length;++c)(f=a.charCodeAt(c))==34?l=!l:!l&&f in fc&&(n[f]=(n[f]||0)+1);for(c in f=[],n)Object.prototype.hasOwnProperty.call(n,c)&&f.push([n[c],c]);if(!f.length)for(c in n=Rn)Object.prototype.hasOwnProperty.call(n,c)&&f.push([n[c],c]);return f.sort(function(h,d){return h[0]-d[0]||Rn[h[1]]-Rn[d[1]]}),fc[f.pop()[1]]||44}function d1(a,c){var l=c||{},c="",f=l.dense?[]:{},h={s:{c:0,r:0},e:{c:0,r:0}};a.slice(0,4)=="sep="?a.charCodeAt(5)==13&&a.charCodeAt(6)==10?(c=a.charAt(4),a=a.slice(7)):a.charCodeAt(5)==13||a.charCodeAt(5)==10?(c=a.charAt(4),a=a.slice(6)):c=Yd(a.slice(0,1024)):c=l&&l.FS?l.FS:Yd(a.slice(0,1024));var d=0,m=0,g=0,y=0,v=0,x=c.charCodeAt(0),C=!1,F=0,k=a.charCodeAt(0);a=a.replace(/\r\n/gm,` `);var D=l.dateNF!=null?(c=(c=typeof(c=l.dateNF)=="number"?oe[c]:c).replace(Zf,"(\\d+)"),new RegExp("^"+c+"$")):null;function P(){var L,R=a.slice(y,v),O={};if((R=R.charAt(0)=='"'&&R.charAt(R.length-1)=='"'?R.slice(1,-1).replace(/""/g,'"'):R).length===0?O.t="z":l.raw||R.trim().length===0?(O.t="s",O.v=R):R.charCodeAt(0)==61?R.charCodeAt(1)==34&&R.charCodeAt(R.length-1)==34?(O.t="s",O.v=R.slice(2,-1).replace(/""/g,'"')):R.length!=1?(O.t="n",O.f=R.slice(1)):(O.t="s",O.v=R):R=="TRUE"?(O.t="b",O.v=!0):R=="FALSE"?(O.t="b",O.v=!1):isNaN(g=ia(R))?!isNaN(Oo(R).getDate())||D&&R.match(D)?(O.z=l.dateNF||oe[14],L=0,D&&R.match(D)&&(R=function(I,V){var X=-1,ae=-1,te=-1,ce=-1,_e=-1,we=-1;(I.match(Zf)||[]).forEach(function(ke,qe){var He=parseInt(V[qe+1],10);switch(ke.toLowerCase().charAt(0)){case"y":X=He;break;case"d":te=He;break;case"h":ce=He;break;case"s":we=He;break;case"m":0<=ce?_e=He:ae=He}}),0<=we&&_e==-1&&0<=ae&&(_e=ae,ae=-1);var de=(""+(0<=X?X:new Date().getFullYear())).slice(-4)+"-"+("00"+(1<=ae?ae:1)).slice(-2)+"-"+("00"+(1<=te?te:1)).slice(-2);return(de=de.length==7?"0"+de:de).length==8&&(de="20"+de),I=("00"+(0<=ce?ce:0)).slice(-2)+":"+("00"+(0<=_e?_e:0)).slice(-2)+":"+("00"+(0<=we?we:0)).slice(-2),ce==-1&&_e==-1&&we==-1?de:X==-1&&ae==-1&&te==-1?I:de+"T"+I}(l.dateNF,R.match(D)||[]),L=1),l.cellDates?(O.t="d",O.v=Nr(R,L)):(O.t="n",O.v=ns(Nr(R,L))),l.cellText!==!1&&(O.w=Us(O.z,O.v instanceof Date?ns(O.v):O.v)),l.cellNF||delete O.z):(O.t="s",O.v=R):(!(O.t="n")!==l.cellText&&(O.w=R),O.v=g),O.t=="z"||(l.dense?(f[d]||(f[d]=[]),f[d][m]=O):f[Rt({c:m,r:d})]=O),y=v+1,k=a.charCodeAt(y),h.e.c<m&&(h.e.c=m),h.e.r<d&&(h.e.r=d),F!=x)return m=0,++d,l.sheetRows&&l.sheetRows<=d?1:void 0;++m}e:for(;v<a.length;++v)switch(F=a.charCodeAt(v)){case 34:k===34&&(C=!C);break;case x:case 10:case 13:if(!C&&P())break e}return 0<v-y&&P(),f["!ref"]=Pt(h),f}function h1(a,n){return!n||!n.PRN||n.FS||a.slice(0,4)=="sep="||0<=a.indexOf(" ")||0<=a.indexOf(",")||0<=a.indexOf(";")?d1(a,n):Io(function(l,c){var f=c||{},h=[];if(!l||l.length===0)return h;for(var d=l.split(/[\r\n]/),m=d.length-1;0<=m&&d[m].length===0;)--m;for(var g=10,y=0,v=0;v<=m;++v)(y=d[v].indexOf(" "))==-1?y=d[v].length:y++,g=Math.max(g,y);for(v=0;v<=m;++v){h[v]=[];var x=0;for(Hd(d[v].slice(0,g).trim(),h,v,x,f),x=1;x<=(d[v].length-g)/10+1;++x)Hd(d[v].slice(g+10*(x-1),g+10*x).trim(),h,v,x,f)}return h=f.sheetRows?h.slice(0,f.sheetRows):h}(a,n),n)}function qd(a,n){var l="",c=n.type=="string"?[0,0,0,0]:Vc(a,n);switch(n.type){case"base64":l=j(a);break;case"binary":l=a;break;case"buffer":l=n.codepage==65001?a.toString("utf8"):n.codepage&&e!==void 0?e.utils.decode(n.codepage,a):H&&Buffer.isBuffer(a)?a.toString("binary"):ft(a);break;case"array":l=to(a);break;case"string":l=a;break;default:throw new Error("Unrecognized type "+n.type)}return c[0]==239&&c[1]==187&&c[2]==191?l=Tr(l.slice(3)):n.type!="string"&&n.type!="buffer"&&n.codepage==65001?l=Tr(l):n.type=="binary"&&e!==void 0&&n.codepage&&(l=e.utils.decode(n.codepage,e.utils.encode(28591,l))),l.slice(0,19)=="socialcalc:version:"?jd.to_sheet(n.type=="string"?l:Tr(l),n):h1(l,n)}var kn,uc,dc,Kd,ho=(kn={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]},uc=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""],dc={0:{n:"BOF",f:as},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(a,n,l){var c={s:{c:0,r:0},e:{c:0,r:0}};return n==8&&l.qpro?(c.s.c=a.read_shift(1),a.l++,c.s.r=a.read_shift(2),c.e.c=a.read_shift(1),a.l++,c.e.r=a.read_shift(2)):(c.s.c=a.read_shift(2),c.s.r=a.read_shift(2),n==12&&l.qpro&&(a.l+=2),c.e.c=a.read_shift(2),c.e.r=a.read_shift(2),n==12&&l.qpro&&(a.l+=2),c.s.c==65535&&(c.s.c=c.e.c=c.s.r=c.e.r=0)),c}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(a,n,l){return(l=Ln(a,0,l))[1].v=a.read_shift(2,"i"),l}},14:{n:"NUMBER",f:function(a,n,l){return(l=Ln(a,0,l))[1].v=a.read_shift(8,"f"),l}},15:{n:"LABEL",f:Xd},16:{n:"FORMULA",f:function(a,n,l){var c=a.l+n;return(n=Ln(a,0,l))[1].v=a.read_shift(8,"f"),l.qpro?a.l=c:(c=a.read_shift(2),function(f,h){gs(f,0);for(var d=[],m=0,g="",y="",v="",x="";f.l<f.length;){var C=f[f.l++];switch(C){case 0:d.push(f.read_shift(8,"f"));break;case 1:y=Go(h[0].c,f.read_shift(2),!0),g=Go(h[0].r,f.read_shift(2),!1),d.push(y+g);break;case 2:var F=Go(h[0].c,f.read_shift(2),!0),k=Go(h[0].r,f.read_shift(2),!1);y=Go(h[0].c,f.read_shift(2),!0),g=Go(h[0].r,f.read_shift(2),!1),d.push(F+k+":"+y+g);break;case 3:if(f.l<f.length)return console.error("WK1 premature formula end");break;case 4:d.push("("+d.pop()+")");break;case 5:d.push(f.read_shift(2));break;case 6:for(var D="";C=f[f.l++];)D+=String.fromCharCode(C);d.push('"'+D.replace(/"/g,'""')+'"');break;case 8:d.push("-"+d.pop());break;case 23:d.push("+"+d.pop());break;case 22:d.push("NOT("+d.pop()+")");break;case 20:case 21:x=d.pop(),v=d.pop(),d.push(["AND","OR"][C-20]+"("+v+","+x+")");break;default:if(C<32&&uc[C])x=d.pop(),v=d.pop(),d.push(v+uc[C]+x);else{if(!kn[C])return C<=7?console.error("WK1 invalid opcode "+C.toString(16)):C<=24?console.error("WK1 unsupported op "+C.toString(16)):C<=30?console.error("WK1 invalid opcode "+C.toString(16)):C<=115?console.error("WK1 unsupported function opcode "+C.toString(16)):console.error("WK1 unrecognized opcode "+C.toString(16));if((m=(m=kn[C][1])==69?f[f.l++]:m)>d.length)return console.error("WK1 bad formula parse 0x"+C.toString(16)+":|"+d.join("|")+"|");k=d.slice(-m),d.length-=m,d.push(kn[C][0]+"("+k.join(",")+")")}}}d.length==1?h[1].f=""+d[0]:console.error("WK1 bad formula parse |"+d.join("|")+"|")}(a.slice(a.l,a.l+c),n),a.l+=c),n}},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:Xd},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:$d},222:{n:"SHEETNAMELP",f:function(a,n){var l=a[a.l++];n-1<l&&(l=n-1);for(var c="";c.length<l;)c+=String.fromCharCode(a[a.l++]);return c}},65535:{n:""}},Kd={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(a,n){var l=wi(a);return l[1].t="s",l[1].v=a.read_shift(n-4,"cstr"),l}},23:{n:"NUMBER17",f:Qd},24:{n:"NUMBER18",f:function(a,n){var l=wi(a);l[1].v=a.read_shift(2);var c=l[1].v>>1;if(1&l[1].v)switch(7&c){case 0:c=5e3*(c>>3);break;case 1:c=500*(c>>3);break;case 2:c=(c>>3)/20;break;case 3:c=(c>>3)/200;break;case 4:c=(c>>3)/2e3;break;case 5:c=(c>>3)/2e4;break;case 6:c=(c>>3)/16;break;case 7:c=(c>>3)/64}return l[1].v=c,l}},25:{n:"FORMULA19",f:function(a,n){var l=Qd(a);return a.l+=n-14,l}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(a,n){for(var l={},c=a.l+n;a.l<c;){var f=a.read_shift(2);if(f==14e3){for(l[f]=[0,""],l[f][0]=a.read_shift(2);a[a.l];)l[f][1]+=String.fromCharCode(a[a.l]),a.l++;a.l++}}return l}},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(c,n){var l=wi(c),c=c.read_shift(4);return l[1].v=c>>6,l}},38:{n:"??"},39:{n:"NUMBER27",f:Zd},40:{n:"FORMULA28",f:function(a,n){var l=Zd(a);return a.l+=n-10,l}},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:$d},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(a,n,l){if(l.qpro&&!(n<21))return l=a.read_shift(1),a.l+=17,a.l+=1,a.l+=2,[l,a.read_shift(n-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:""}},{sheet_to_wk1:function(a,n){var l=n||{};if(0<=+l.codepage&&S(+l.codepage),l.type=="string")throw new Error("Cannot write WK1 to JS string");var c=Is(),f=rr(a["!ref"]),h=Array.isArray(a),d=[];We(c,0,(n=1030,(l=be(2)).write_shift(2,n),l)),We(c,6,(n=f,(l=be(8)).write_shift(2,n.s.c),l.write_shift(2,n.s.r),l.write_shift(2,n.e.c),l.write_shift(2,n.e.r),l));for(var m,g,y,v,x=Math.min(f.e.r,8191),C=f.s.r;C<=x;++C)for(var F=Kr(C),k=f.s.c;k<=f.e.c;++k){C===f.s.r&&(d[k]=Vr(k));var D=d[k]+F,D=h?(a[C]||[])[k]:a[D];D&&D.t!="z"&&(D.t=="n"?(0|D.v)==D.v&&-32768<=D.v&&D.v<=32767?We(c,13,(m=C,g=k,y=D.v,v=void 0,(v=be(7)).write_shift(1,255),v.write_shift(2,g),v.write_shift(2,m),v.write_shift(2,y,"i"),v)):We(c,14,(g=C,m=k,y=D.v,v=void 0,(v=be(13)).write_shift(1,255),v.write_shift(2,m),v.write_shift(2,g),v.write_shift(8,y,"f"),v)):We(c,15,function(P,L,R){var O=be(7+R.length);O.write_shift(1,255),O.write_shift(2,L),O.write_shift(2,P),O.write_shift(1,39);for(var I=0;I<O.length;++I){var V=R.charCodeAt(I);O.write_shift(1,128<=V?95:V)}return O.write_shift(1,0),O}(C,k,ba(D).slice(0,239))))}return We(c,1),c.end()},book_to_wk3:function(a,n){if(0<=+(n=n||{}).codepage&&S(+n.codepage),n.type=="string")throw new Error("Cannot write WK3 to JS string");var l=Is();We(l,0,function(D){var P=be(26);P.write_shift(2,4096),P.write_shift(2,4),P.write_shift(4,0);for(var L=0,R=0,O=0,I=0;I<D.SheetNames.length;++I){var V=D.SheetNames[I],V=D.Sheets[V];V&&V["!ref"]&&(++O,V=ks(V["!ref"]),L<V.e.r&&(L=V.e.r),R<V.e.c&&(R=V.e.c))}return 8191<L&&(L=8191),P.write_shift(2,L),P.write_shift(1,O),P.write_shift(1,R),P.write_shift(2,0),P.write_shift(2,0),P.write_shift(1,1),P.write_shift(1,2),P.write_shift(4,0),P.write_shift(4,0),P}(a));for(var c=0,f=0;c<a.SheetNames.length;++c)(a.Sheets[a.SheetNames[c]]||{})["!ref"]&&We(l,27,function(D,P){var L=be(5+D.length);L.write_shift(2,14e3),L.write_shift(2,P);for(var R=0;R<D.length;++R){var O=D.charCodeAt(R);L[L.l++]=127<O?95:O}return L[L.l++]=0,L}(a.SheetNames[c],f++));for(var h=0,c=0;c<a.SheetNames.length;++c){var d=a.Sheets[a.SheetNames[c]];if(d&&d["!ref"]){for(var m=rr(d["!ref"]),g=Array.isArray(d),y=[],v=Math.min(m.e.r,8191),x=m.s.r;x<=v;++x)for(var C=Kr(x),F=m.s.c;F<=m.e.c;++F){x===m.s.r&&(y[F]=Vr(F));var k=y[F]+C,k=g?(d[x]||[])[F]:d[k];k&&k.t!="z"&&(k.t=="n"?We(l,23,function(X,te,ae,O){var I=be(14);if(I.write_shift(2,X),I.write_shift(1,ae),I.write_shift(1,te),O==0)return I.write_shift(4,0),I.write_shift(4,0),I.write_shift(2,65535),I;var V=0,X=0,ae=0,te=0;return O<0&&(V=1,O=-O),X=0|Math.log2(O),O/=Math.pow(2,X-31),!(2147483648&(te=O>>>0))&&(++X,te=(O/=2)>>>0),O-=te,te|=2147483648,te>>>=0,O*=Math.pow(2,32),ae=O>>>0,I.write_shift(4,ae),I.write_shift(4,te),X+=16383+(V?32768:0),I.write_shift(2,X),I}(x,F,h,k.v)):We(l,22,function(P,L,R,O){var I=be(6+O.length);I.write_shift(2,P),I.write_shift(1,R),I.write_shift(1,L),I.write_shift(1,39);for(var V=0;V<O.length;++V){var X=O.charCodeAt(V);I.write_shift(1,128<=X?95:X)}return I.write_shift(1,0),I}(x,F,h,ba(k).slice(0,239))))}++h}}return We(l,1),l.end()},to_workbook:function(a,n){switch(n.type){case"base64":return hc(ve(j(a)),n);case"binary":return hc(ve(a),n);case"buffer":case"array":return hc(a,n)}throw"Unsupported type "+n.type}});function Jd(a,n,l){if(a){gs(a,a.l||0);for(var c=l.Enum||dc;a.l<a.length;){var f=a.read_shift(2),h=c[f]||c[65535],m=a.read_shift(2),d=a.l+m,m=h.f&&h.f(a,m,l);if(a.l=d,n(m,h,f))return}}}function hc(a,n){if(!a)return a;var l=n||{},c=l.dense?[]:{},f="Sheet1",h="",d=0,m={},g=[],y=[],v={s:{r:0,c:0},e:{r:0,c:0}},x=l.sheetRows||0;if(a[2]==0&&(a[3]==8||a[3]==9)&&16<=a.length&&a[14]==5&&a[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(a[2]==2)l.Enum=dc,Jd(a,function(D,P,L){switch(L){case 0:4096<=(l.vers=D)&&(l.qpro=!0);break;case 6:v=D;break;case 204:D&&(h=D);break;case 222:h=D;break;case 15:case 51:l.qpro||(D[1].v=D[1].v.slice(1));case 13:case 14:case 16:L==14&&(112&D[2])==112&&1<(15&D[2])&&(15&D[2])<15&&(D[1].z=l.dateNF||oe[14],l.cellDates&&(D[1].t="d",D[1].v=dn(D[1].v))),l.qpro&&D[3]>d&&(c["!ref"]=Pt(v),m[f]=c,g.push(f),c=l.dense?[]:{},v={s:{r:0,c:0},e:{r:0,c:0}},d=D[3],f=h||"Sheet"+(d+1),h="");var R=l.dense?(c[D[0].r]||[])[D[0].c]:c[Rt(D[0])];if(R){R.t=D[1].t,R.v=D[1].v,D[1].z!=null&&(R.z=D[1].z),D[1].f!=null&&(R.f=D[1].f);break}l.dense?(c[D[0].r]||(c[D[0].r]=[]),c[D[0].r][D[0].c]=D[1]):c[Rt(D[0])]=D[1]}},l);else{if(a[2]!=26&&a[2]!=14)throw new Error("Unrecognized LOTUS BOF "+a[2]);l.Enum=Kd,a[2]==14&&(l.qpro=!0,a.l=0),Jd(a,function(D,P,L){switch(L){case 204:f=D;break;case 22:D[1].v=D[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(D[3]>d&&(c["!ref"]=Pt(v),m[f]=c,g.push(f),c=l.dense?[]:{},v={s:{r:0,c:0},e:{r:0,c:0}},d=D[3],f="Sheet"+(d+1)),0<x&&D[0].r>=x)break;l.dense?(c[D[0].r]||(c[D[0].r]=[]),c[D[0].r][D[0].c]=D[1]):c[Rt(D[0])]=D[1],v.e.c<D[0].c&&(v.e.c=D[0].c),v.e.r<D[0].r&&(v.e.r=D[0].r);break;case 27:D[14e3]&&(y[D[14e3][0]]=D[14e3][1]);break;case 1537:y[D[0]]=D[1],D[0]==d&&(f=D[1])}},l)}if(c["!ref"]=Pt(v),m[h||f]=c,g.push(h||f),!y.length)return{SheetNames:g,Sheets:m};for(var C={},F=[],k=0;k<y.length;++k)m[g[k]]?(F.push(y[k]||g[k]),C[y[k]]=m[y[k]]||m[g[k]]):(F.push(y[k]),C[y[k]]={"!ref":"A1"});return{SheetNames:F,Sheets:C}}function Ln(a,n,l){var c=[{c:0,r:0},{t:"n",v:0},0,0];return l.qpro&&l.vers!=20768?(c[0].c=a.read_shift(1),c[3]=a.read_shift(1),c[0].r=a.read_shift(2),a.l+=2):(c[2]=a.read_shift(1),c[0].c=a.read_shift(2),c[0].r=a.read_shift(2)),c}function Xd(a,f,l){var c=a.l+f,f=Ln(a,0,l);return f[1].t="s",l.vers!=20768?(l.qpro&&a.l++,f[1].v=a.read_shift(c-a.l,"cstr"),f):(a.l++,c=a.read_shift(1),f[1].v=a.read_shift(c,"utf8"),f)}function Go(a,n,l){var c=32768&n;return(c?"":"$")+(l?Vr:Kr)(n=(c?a:0)+(8192<=(n&=-32769)?n-16384:n))}function wi(a){var n=[{c:0,r:0},{t:"n",v:0},0];return n[0].r=a.read_shift(2),n[3]=a[a.l++],n[0].c=a[a.l++],n}function Qd(h,n){var l=wi(h),c=h.read_shift(4),f=h.read_shift(4);if((d=h.read_shift(2))==65535)return c===0&&f===3221225472?(l[1].t="e",l[1].v=15):c===0&&f===3489660928?(l[1].t="e",l[1].v=42):l[1].v=0,l;var h=32768&d,d=(32767&d)-16446;return l[1].v=(1-2*h)*(f*Math.pow(2,32+d)+c*Math.pow(2,d)),l}function Zd(c,n){var l=wi(c),c=c.read_shift(8,"f");return l[1].v=c,l}function $d(a,n){return a[a.l+n-1]==0?a.read_shift(n,"cstr"):""}var eh,th,rh,sh,p1=(eh=fi("t"),th=fi("rPr"),rh=/<(?:\w+:)?r>/g,sh=/<\/(?:\w+:)?r>/,function(a){return a.replace(rh,"").split(sh).map(m1).filter(function(n){return n.v})});function m1(a){var n=a.match(eh);return n?(n={t:"s",v:pr(n[1])},a=a.match(th),a&&(n.s=function(l){var c={},f=l.match(_s),h=0,d=!1;if(f)for(;h!=f.length;++h){var m=Tt(f[h]);switch(m[0].replace(/\w*:/g,"")){case"<condense":case"<extend":break;case"<shadow":if(!m.val)break;case"<shadow>":case"<shadow/>":c.shadow=1;break;case"</shadow>":break;case"<charset":if(m.val=="1")break;c.cp=_[parseInt(m.val,10)];break;case"<outline":if(!m.val)break;case"<outline>":case"<outline/>":c.outline=1;break;case"</outline>":break;case"<rFont":c.name=m.val;break;case"<sz":c.sz=m.val;break;case"<strike":if(!m.val)break;case"<strike>":case"<strike/>":c.strike=1;break;case"</strike>":break;case"<u":if(!m.val)break;switch(m.val){case"double":c.uval="double";break;case"singleAccounting":c.uval="single-accounting";break;case"doubleAccounting":c.uval="double-accounting"}case"<u>":case"<u/>":c.u=1;break;case"</u>":break;case"<b":if(m.val=="0")break;case"<b>":case"<b/>":c.b=1;break;case"</b>":break;case"<i":if(m.val=="0")break;case"<i>":case"<i/>":c.i=1;break;case"</i>":break;case"<color":m.rgb&&(c.color=m.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":c.family=m.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":c.valign=m.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":case"<scheme":break;case"<scheme>":case"<scheme/>":case"</scheme>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":d=!0;break;case"</ext>":d=!1;break;default:if(m[0].charCodeAt(1)!==47&&!d)throw new Error("Unrecognized rich format "+m[0])}}return c}(a[1])),n):{t:"s",v:""}}var ah,g1=(ah=/(\r\n|\n)/g,function(a){return a.map(b1).join("")});function b1(a){var n,l,c,f=[[],a.v,[]];return a.v?(a.s&&(n=a.s,l=f[0],c=f[2],a=[],n.u&&a.push("text-decoration: underline;"),n.uval&&a.push("text-underline-style:"+n.uval+";"),n.sz&&a.push("font-size:"+n.sz+"pt;"),n.outline&&a.push("text-effect: outline;"),n.shadow&&a.push("text-shadow: auto;"),l.push('<span style="'+a.join("")+'">'),n.b&&(l.push("<b>"),c.push("</b>")),n.i&&(l.push("<i>"),c.push("</i>")),n.strike&&(l.push("<s>"),c.push("</s>")),(a=n.valign||"")=="superscript"||a=="super"?a="sup":a=="subscript"&&(a="sub"),a!=""&&(l.push("<"+a+">"),c.push("</"+a+">")),c.push("</span>")),f[0].join("")+f[1].replace(ah,"<br/>")+f[2].join("")):""}var y1=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,_1=/<(?:\w+:)?r>/,v1=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function pc(a,c){var l=!c||c.cellHTML,c={};return a?(a.match(/^\s*<(?:\w+:)?t[^>]*>/)?(c.t=pr(Tr(a.slice(a.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),c.r=Tr(a),l&&(c.h=Ml(c.t))):a.match(_1)&&(c.r=Tr(a),c.t=pr(Tr((a.replace(v1,"").match(y1)||[]).join("").replace(_s,""))),l&&(c.h=g1(p1(c.r)))),c):{t:""}}var w1=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,x1=/<(?:\w+:)?(?:si|sstItem)>/g,C1=/<\/(?:\w+:)?(?:si|sstItem)>/,F1=/^\s|\s$|[\t\n\r]/;function oh(a,n){if(!n.bookSST)return"";var l=[Zr];l[l.length]=je("sst",null,{xmlns:ro[0],count:a.Count,uniqueCount:a.Unique});for(var c,f,h=0;h!=a.length;++h)a[h]!=null&&(f="<si>",(c=a[h]).r?f+=c.r:(f+="<t",c.t||(c.t=""),c.t.match(F1)&&(f+=' xml:space="preserve"'),f+=">"+Dr(c.t)+"</t>"),f+="</si>",l[l.length]=f);return 2<l.length&&(l[l.length]="</sst>",l[1]=l[1].replace("/>",">")),l.join("")}var D1=function(a,n){var l=!1;return n==null&&(l=!0,n=be(15+4*a.t.length)),n.write_shift(1,0),hs(a.t,n),l?n.slice(0,n.l):n};function A1(a){var n,l,c=Is();De(c,159,(n=a,(l=l||be(8)).write_shift(4,n.Count),l.write_shift(4,n.Unique),l));for(var f=0;f<a.length;++f)De(c,19,D1(a[f]));return De(c,160),c.end()}function ih(a){if(e!==void 0)return e.utils.encode(p,a);for(var n=[],l=a.split(""),c=0;c<l.length;++c)n[c]=l[c].charCodeAt(0);return n}function Ra(a,n){var l={};return l.Major=a.read_shift(2),l.Minor=a.read_shift(2),4<=n&&(a.l+=n-4),l}function S1(a){var n=[];a.l+=4;for(var l=a.read_shift(4);0<l--;)n.push(function(c){for(var h=c.read_shift(4),f=c.l+h-4,h={},d=c.read_shift(4),m=[];0<d--;)m.push({t:c.read_shift(4),v:c.read_shift(0,"lpp4")});if(h.name=c.read_shift(0,"lpp4"),h.comps=m,c.l!=f)throw new Error("Bad DataSpaceMapEntry: "+c.l+" != "+f);return h}(a));return n}function E1(a){var n,l,l=(l={},(n=a).read_shift(4),n.l+=4,l.id=n.read_shift(0,"lpp4"),l.name=n.read_shift(0,"lpp4"),l.R=Ra(n,4),l.U=Ra(n,4),l.W=Ra(n,4),l);if(l.ename=a.read_shift(0,"8lpp4"),l.blksz=a.read_shift(4),l.cmode=a.read_shift(4),a.read_shift(4)!=4)throw new Error("Bad !Primary record");return l}function nh(a,l){var l=a.l+l,c={};c.Flags=63&a.read_shift(4),a.l+=4,c.AlgID=a.read_shift(4);var f=!1;switch(c.AlgID){case 26126:case 26127:case 26128:f=c.Flags==36;break;case 26625:f=c.Flags==4;break;case 0:f=c.Flags==16||c.Flags==4||c.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+c.AlgID}if(!f)throw new Error("Encryption Flags/AlgID mismatch");return c.AlgIDHash=a.read_shift(4),c.KeySize=a.read_shift(4),c.ProviderType=a.read_shift(4),a.l+=8,c.CSPName=a.read_shift(l-a.l>>1,"utf16le"),a.l=l,c}function lh(a,c){var l={},c=a.l+c;return a.l+=4,l.Salt=a.slice(a.l,a.l+16),a.l+=16,l.Verifier=a.slice(a.l,a.l+16),a.l+=16,a.read_shift(4),l.VerifierHash=a.slice(a.l,c),a.l=c,l}function T1(a){var n=Ra(a);switch(n.Minor){case 2:return[n.Minor,function(f){if((63&f.read_shift(4))!=36)throw new Error("EncryptionInfo mismatch");var c=f.read_shift(4),c=nh(f,c),f=lh(f,f.length-f.l);return{t:"Std",h:c,v:f}}(a)];case 3:return[n.Minor,function(){throw new Error("File is password-protected: ECMA-376 Extensible")}()];case 4:return[n.Minor,function(f){var c=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];f.l+=4;var f=f.read_shift(f.length-f.l,"utf8"),h={};return f.replace(_s,function(d){var m=Tt(d);switch(ma(m[0])){case"<?xml":break;case"<encryption":case"</encryption>":break;case"<keyData":c.forEach(function(g){h[g]=m[g]});break;case"<dataIntegrity":h.encryptedHmacKey=m.encryptedHmacKey,h.encryptedHmacValue=m.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":h.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":h.uri=m.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":h.encs.push(m);break;default:throw m[0]}}),h}(a)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+n.Minor)}function mc(a){var n,l=0,c=ih(a),f=c.length+1,h=W(f);for(h[0]=c.length,n=1;n!=f;++n)h[n]=c[n-1];for(n=f-1;0<=n;--n)l=((16384&l?1:0)|l<<1&32767)^h[n];return 52811^l}var gc,ch,fh,uh=(gc=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],ch=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],fh=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],function(a){for(var n,l,c=ih(a),f=function(g){for(var y=ch[g.length-1],v=104,x=g.length-1;0<=x;--x)for(var C=g[x],F=0;F!=7;++F)64&C&&(y^=fh[v]),C*=2,--v;return y}(c),h=c.length,d=W(16),m=0;m!=16;++m)d[m]=0;for((1&h)==1&&(n=f>>8,d[h]=jo(gc[0],n),--h,n=255&f,a=c[c.length-1],d[h]=jo(a,n));0<h;)n=f>>8,d[--h]=jo(c[h],n),n=255&f,d[--h]=jo(c[h],n);for(l=(h=15)-c.length;0<l;)n=f>>8,d[h]=jo(gc[l],n),--l,n=255&f,d[--h]=jo(c[h],n),--h,--l;return d});function jo(a,n){return 255&((n=a^n)/2|128*n)}var R1=function(a){var n=0,l=uh(a);return function(c){return c=function(f,h,d,m,g){var y,v;for(g=g||h,m=m||uh(f),y=0;y!=h.length;++y)v=h[y],v=255&((v^=m[d])>>5|v<<3),g[y]=v,++d;return[g,d,m]}("",c,n,l),n=c[1],c[0]}};function k1(a,n,l){return l=l||{},l.Info=a.read_shift(2),a.l-=2,l.Info===1?l.Data=function(c){var f={},h=f.EncryptionVersionInfo=Ra(c,4);if(h.Major!=1||h.Minor!=1)throw"unrecognized version code "+h.Major+" : "+h.Minor;return f.Salt=c.read_shift(16),f.EncryptedVerifier=c.read_shift(16),f.EncryptedVerifierHash=c.read_shift(16),f}(a):l.Data=function(c,f){var h={},d=h.EncryptionVersionInfo=Ra(c,4);if(f-=4,d.Minor!=2)throw new Error("unrecognized minor version code: "+d.Minor);if(4<d.Major||d.Major<2)throw new Error("unrecognized major version code: "+d.Major);return h.Flags=c.read_shift(4),f-=4,d=c.read_shift(4),f-=4,h.EncryptionHeader=nh(c,d),f-=d,h.EncryptionVerifier=lh(c,f),h}(a,n),l}var dh={to_workbook:function(a,n){return Ba(hh(a,n),n)},to_sheet:hh,from_sheet:function(a){for(var n=["{\\rtf1\\ansi"],l=rr(a["!ref"]),c=Array.isArray(a),f=l.s.r;f<=l.e.r;++f){n.push("\\trowd\\trautofit1");for(var h=l.s.c;h<=l.e.c;++h)n.push("\\cellx"+(h+1));for(n.push("\\pard\\intbl"),h=l.s.c;h<=l.e.c;++h){var d=Rt({r:f,c:h});(d=c?(a[f]||[])[h]:a[d])&&(d.v!=null||d.f&&!d.F)&&(n.push(" "+(d.w||(ba(d),d.w))),n.push("\\cell"))}n.push("\\pard\\intbl\\row")}return n.join("")+"}"}};function hh(a,n){switch(n.type){case"base64":return Mn(j(a),n);case"binary":return Mn(a,n);case"buffer":return Mn(H&&Buffer.isBuffer(a)?a.toString("binary"):ft(a),n);case"array":return Mn(to(a),n)}throw new Error("Unrecognized type "+n.type)}function Mn(c,n){var l=(n||{}).dense?[]:{},c=c.match(/\\trowd.*?\\row\b/g);if(!c.length)throw new Error("RTF missing table");var f={s:{c:0,r:0},e:{c:0,r:c.length-1}};return c.forEach(function(h,d){Array.isArray(l)&&(l[d]=[]);for(var m,g=/\\\w+\b/g,y=0,v=-1;m=g.exec(h);)m[0]==="\\cell"&&(++v,(m=(m=h.slice(y,g.lastIndex-m[0].length))[0]==" "?m.slice(1):m).length&&(m={v:m,t:"s"},Array.isArray(l)?l[d][v]=m:l[Rt({r:d,c:v})]=m)),y=g.lastIndex;v>f.e.c&&(f.e.c=v)}),l["!ref"]=Pt(f),l}function xi(a){for(var n=0,l=1;n!=3;++n)l=256*l+(255<a[n]?255:a[n]<0?0:a[n]);return l.toString(16).toUpperCase().slice(1)}function On(a,n){return n===0?a:(a=function(v){var c=v[0]/255,f=v[1]/255,h=v[2]/255,d=Math.max(c,f,h),m=Math.min(c,f,h),g=d-m;if(g==0)return[0,0,c];var y=0,v=0,v=g/(1<(m=d+m)?2-m:m);switch(d){case c:y=((f-h)/g+6)%6;break;case f:y=(h-c)/g+2;break;case h:y=(c-f)/g+4}return[y/6,v,m/2]}((a=(a=a).slice(a[0]==="#"?1:0).slice(0,6),[parseInt(a.slice(0,2),16),parseInt(a.slice(2,4),16),parseInt(a.slice(4,6),16)])),a[2]=n<0?a[2]*(1+n):1-(1-a[2])*(1-n),xi(function(d){var c,f=d[0],h=d[1],d=d[2],m=2*h*(d<.5?d:1-d),g=[d=d-m/2,d,d],y=6*f;if(h!==0)switch(0|y){case 0:case 6:c=m*y,g[0]+=m,g[1]+=c;break;case 1:c=m*(2-y),g[0]+=c,g[1]+=m;break;case 2:c=m*(y-2),g[1]+=m,g[2]+=c;break;case 3:c=m*(4-y),g[1]+=c,g[2]+=m;break;case 4:c=m*(y-4),g[2]+=m,g[0]+=c;break;case 5:c=m*(6-y),g[2]+=c,g[0]+=m}for(var v=0;v!=3;++v)g[v]=Math.round(255*g[v]);return g}(a)))}var ph=6,L1=15,M1=1,Fs=ph;function Ci(a){return Math.floor((a+Math.round(128/Fs)/256)*Fs)}function Fi(a){return Math.floor((a-5)/Fs*100+.5)/100}function Pn(a){return Math.round((a*Fs+5)/Fs*256)/256}function bc(a){return Pn(Fi(Ci(a)))}function yc(a){var n=Math.abs(a-bc(a)),l=Fs;if(.005<n)for(Fs=M1;Fs<L1;++Fs)Math.abs(a-bc(a))<=n&&(n=Math.abs(a-bc(a)),l=Fs);Fs=l}function za(a){a.width?(a.wpx=Ci(a.width),a.wch=Fi(a.wpx),a.MDW=Fs):a.wpx?(a.wch=Fi(a.wpx),a.width=Pn(a.wch),a.MDW=Fs):typeof a.wch=="number"&&(a.width=Pn(a.wch),a.wpx=Ci(a.width),a.MDW=Fs),a.customWidth&&delete a.customWidth}var mh=96;function Di(a){return 96*a/mh}function Wo(a){return a*mh/96}var O1={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"},Nn=["numFmtId","fillId","fontId","borderId","xfId"],In=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"],gh,bh,yh,_h,vh,Ai,P1=(gh=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,bh=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,yh=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,_h=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,vh=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/,function(a,n,l){var c,f,h,d,m,g={};return a&&((c=(a=a.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"")).match(gh))&&function(y,v,x){v.NumberFmt=[];for(var C=Yr(oe),F=0;F<C.length;++F)v.NumberFmt[C[F]]=oe[C[F]];var k=y[0].match(_s);if(k)for(F=0;F<k.length;++F){var D=Tt(k[F]);switch(ma(D[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":break;case"<numFmt":var P=pr(Tr(D.formatCode)),L=parseInt(D.numFmtId,10);if(v.NumberFmt[L]=P,0<L){if(392<L){for(L=392;60<L&&v.NumberFmt[L]!=null;--L);v.NumberFmt[L]=P}pa(P,L)}break;case"</numFmt>":break;default:if(x.WTF)throw new Error("unrecognized "+D[0]+" in numFmts")}}}(c,g,l),(c=a.match(_h))&&function(y,v,x,C){v.Fonts=[];var F={},k=!1;(y[0].match(_s)||[]).forEach(function(D){var P,L=Tt(D);switch(ma(L[0])){case"<fonts":case"<fonts>":case"</fonts>":break;case"<font":case"<font>":break;case"</font>":case"<font/>":v.Fonts.push(F),F={};break;case"<name":L.val&&(F.name=Tr(L.val));break;case"<name/>":case"</name>":break;case"<b":F.bold=L.val?Ir(L.val):1;break;case"<b/>":F.bold=1;break;case"<i":F.italic=L.val?Ir(L.val):1;break;case"<i/>":F.italic=1;break;case"<u":switch(L.val){case"none":F.underline=0;break;case"single":F.underline=1;break;case"double":F.underline=2;break;case"singleAccounting":F.underline=33;break;case"doubleAccounting":F.underline=34}break;case"<u/>":F.underline=1;break;case"<strike":F.strike=L.val?Ir(L.val):1;break;case"<strike/>":F.strike=1;break;case"<outline":F.outline=L.val?Ir(L.val):1;break;case"<outline/>":F.outline=1;break;case"<shadow":F.shadow=L.val?Ir(L.val):1;break;case"<shadow/>":F.shadow=1;break;case"<condense":F.condense=L.val?Ir(L.val):1;break;case"<condense/>":F.condense=1;break;case"<extend":F.extend=L.val?Ir(L.val):1;break;case"<extend/>":F.extend=1;break;case"<sz":L.val&&(F.sz=+L.val);break;case"<sz/>":case"</sz>":break;case"<vertAlign":L.val&&(F.vertAlign=L.val);break;case"<vertAlign/>":case"</vertAlign>":break;case"<family":L.val&&(F.family=parseInt(L.val,10));break;case"<family/>":case"</family>":break;case"<scheme":L.val&&(F.scheme=L.val);break;case"<scheme/>":case"</scheme>":break;case"<charset":if(L.val=="1")break;L.codepage=_[parseInt(L.val,10)];break;case"<color":F.color||(F.color={}),L.auto&&(F.color.auto=Ir(L.auto)),L.rgb?F.color.rgb=L.rgb.slice(-6):L.indexed?(F.color.index=parseInt(L.indexed,10),P=gi[F.color.index],P=(P=F.color.index==81?gi[1]:P)||gi[1],F.color.rgb=P[0].toString(16)+P[1].toString(16)+P[2].toString(16)):L.theme&&(F.color.theme=parseInt(L.theme,10),L.tint&&(F.color.tint=parseFloat(L.tint)),L.theme&&x.themeElements&&x.themeElements.clrScheme&&(F.color.rgb=On(x.themeElements.clrScheme[F.color.theme].rgb,F.color.tint||0)));break;case"<color/>":case"</color>":break;case"<AlternateContent":k=!0;break;case"</AlternateContent>":k=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":k=!0;break;case"</ext>":k=!1;break;default:if(C&&C.WTF&&!k)throw new Error("unrecognized "+L[0]+" in fonts")}})}(c,g,n,l),(c=a.match(yh))&&function(y,v,x){v.Fills=[];var C={},F=!1;(y[0].match(_s)||[]).forEach(function(k){var D=Tt(k);switch(ma(D[0])){case"<fills":case"<fills>":case"</fills>":break;case"<fill>":case"<fill":case"<fill/>":C={},v.Fills.push(C);break;case"</fill>":case"<gradientFill>":break;case"<gradientFill":case"</gradientFill>":v.Fills.push(C),C={};break;case"<patternFill":case"<patternFill>":D.patternType&&(C.patternType=D.patternType);break;case"<patternFill/>":case"</patternFill>":break;case"<bgColor":C.bgColor||(C.bgColor={}),D.indexed&&(C.bgColor.indexed=parseInt(D.indexed,10)),D.theme&&(C.bgColor.theme=parseInt(D.theme,10)),D.tint&&(C.bgColor.tint=parseFloat(D.tint)),D.rgb&&(C.bgColor.rgb=D.rgb.slice(-6));break;case"<bgColor/>":case"</bgColor>":break;case"<fgColor":C.fgColor||(C.fgColor={}),D.theme&&(C.fgColor.theme=parseInt(D.theme,10)),D.tint&&(C.fgColor.tint=parseFloat(D.tint)),D.rgb!=null&&(C.fgColor.rgb=D.rgb.slice(-6));break;case"<fgColor/>":case"</fgColor>":break;case"<stop":case"<stop/>":case"</stop>":break;case"<color":case"<color/>":case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":F=!0;break;case"</ext>":F=!1;break;default:if(x&&x.WTF&&!F)throw new Error("unrecognized "+D[0]+" in fills")}})}(c,g,l),(c=a.match(vh))&&function(y,v,x){v.Borders=[];var C={},F=!1;(y[0].match(_s)||[]).forEach(function(k){var D=Tt(k);switch(ma(D[0])){case"<borders":case"<borders>":case"</borders>":break;case"<border":case"<border>":case"<border/>":C={},D.diagonalUp&&(C.diagonalUp=Ir(D.diagonalUp)),D.diagonalDown&&(C.diagonalDown=Ir(D.diagonalDown)),v.Borders.push(C);break;case"</border>":case"<left/>":break;case"<left":case"<left>":case"</left>":case"<right/>":break;case"<right":case"<right>":case"</right>":case"<top/>":break;case"<top":case"<top>":case"</top>":case"<bottom/>":break;case"<bottom":case"<bottom>":case"</bottom>":break;case"<diagonal":case"<diagonal>":case"<diagonal/>":case"</diagonal>":break;case"<horizontal":case"<horizontal>":case"<horizontal/>":case"</horizontal>":break;case"<vertical":case"<vertical>":case"<vertical/>":case"</vertical>":break;case"<start":case"<start>":case"<start/>":case"</start>":break;case"<end":case"<end>":case"<end/>":case"</end>":break;case"<color":case"<color>":break;case"<color/>":case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":F=!0;break;case"</ext>":F=!1;break;default:if(x&&x.WTF&&!F)throw new Error("unrecognized "+D[0]+" in borders")}})}(c,g,l),(c=a.match(bh))&&(c=c,h=l,m=!((f=g).CellXf=[]),(c[0].match(_s)||[]).forEach(function(y){var v=Tt(y),x=0;switch(ma(v[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":break;case"<xf":case"<xf/>":for(delete(d=v)[0],x=0;x<Nn.length;++x)d[Nn[x]]&&(d[Nn[x]]=parseInt(d[Nn[x]],10));for(x=0;x<In.length;++x)d[In[x]]&&(d[In[x]]=Ir(d[In[x]]));if(f.NumberFmt&&392<d.numFmtId){for(x=392;60<x;--x)if(f.NumberFmt[d.numFmtId]==f.NumberFmt[x]){d.numFmtId=x;break}}f.CellXf.push(d);break;case"</xf>":break;case"<alignment":case"<alignment/>":var C={};v.vertical&&(C.vertical=v.vertical),v.horizontal&&(C.horizontal=v.horizontal),v.textRotation!=null&&(C.textRotation=v.textRotation),v.indent&&(C.indent=v.indent),v.wrapText&&(C.wrapText=Ir(v.wrapText)),d.alignment=C;break;case"</alignment>":case"<protection":break;case"</protection>":case"<protection/>":break;case"<AlternateContent":m=!0;break;case"</AlternateContent>":m=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":m=!0;break;case"</ext>":m=!1;break;default:if(h&&h.WTF&&!m)throw new Error("unrecognized "+v[0]+" in cellXfs")}}))),g});function wh(a,n){if(Ai!==void 0)return Ai.toXml();var l,c,f,h,d=[Zr,je("styleSheet",null,{xmlns:ro[0],"xmlns:vt":ls.vt})];return a.SSF&&(c=a.SSF,f=["<numFmts>"],[[5,8],[23,26],[41,44],[50,392]].forEach(function(m){for(var g=m[0];g<=m[1];++g)c[g]!=null&&(f[f.length]=je("numFmt",null,{numFmtId:g,formatCode:Dr(c[g])}))}),(l=f.length===1?"":(f[f.length]="</numFmts>",f[0]=je("numFmts",null,{count:f.length-2}).replace("/>",">"),f.join("")))!=null)&&(d[d.length]=l),d[d.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',d[d.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',d[d.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',d[d.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',n=n.cellXfs,(h=[])[h.length]="<cellXfs/>",n.forEach(function(m){h[h.length]=je("xf",null,m)}),h[h.length]="</cellXfs>",(l=h.length===2?"":(h[0]=je("cellXfs",null,{count:h.length-2}).replace("/>",">"),h.join("")))&&(d[d.length]=l),d[d.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',d[d.length]='<dxfs count="0"/>',d[d.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',2<d.length&&(d[d.length]="</styleSheet>",d[1]=d[1].replace("/>",">")),d.join("")}function N1(a,n){var l;(n=n||be(153)).write_shift(2,20*a.sz),l=a,c=(c=n)||be(2),l=(l.italic?2:0)|(l.strike?8:0)|(l.outline?16:0)|(l.shadow?32:0)|(l.condense?64:0)|(l.extend?128:0),c.write_shift(1,l),c.write_shift(1,0),n.write_shift(2,a.bold?700:400);var c=0;return a.vertAlign=="superscript"?c=1:a.vertAlign=="subscript"&&(c=2),n.write_shift(2,c),n.write_shift(1,a.underline||0),n.write_shift(1,a.family||0),n.write_shift(1,a.charset||0),n.write_shift(1,0),_n(a.color,n),c=0,a.scheme=="major"&&(c=1),a.scheme=="minor"&&(c=2),n.write_shift(1,c),hs(a.name,n),n.length>n.l?n.slice(0,n.l):n}var xh,I1=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],V1=vs;function Ch(a,n){n=n||be(84),a=(xh=xh||ln(I1))[a.patternType],a==null&&(a=40),n.write_shift(4,a);var l=0;if(a!=40)for(_n({auto:1},n),_n({auto:1},n);l<12;++l)n.write_shift(4,0);else{for(;l<4;++l)n.write_shift(4,0);for(;l<12;++l)n.write_shift(4,0)}return n.length>n.l?n.slice(0,n.l):n}function Fh(a,n,l){return(l=l||be(16)).write_shift(2,n||0),l.write_shift(2,a.numFmtId||0),l.write_shift(2,0),l.write_shift(2,0),l.write_shift(2,0),l.write_shift(1,0),l.write_shift(1,0),l.write_shift(1,0),l.write_shift(1,0),l.write_shift(1,0),l.write_shift(1,0),l}function Si(a,n){return(n=n||be(10)).write_shift(1,0),n.write_shift(1,0),n.write_shift(4,0),n.write_shift(4,0),n}un=vs;function B1(a,n){var l;n&&(l=0,[[5,8],[23,26],[41,44],[50,392]].forEach(function(c){for(var f=c[0];f<=c[1];++f)n[f]!=null&&++l}),l!=0&&(De(a,615,na(l)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(c){for(var f,h,d,m=c[0];m<=c[1];++m)n[m]!=null&&De(a,44,(f=m,h=n[m],(d=(d=void 0)||be(6+4*h.length)).write_shift(2,f),hs(h,d),h=d.length>d.l?d.slice(0,d.l):d,d.l==null&&(d.l=d.length),h))}),De(a,616)))}function U1(a){var n;De(a,613,na(1)),De(a,46,((n=n||be(51)).write_shift(1,0),Si(0,n),Si(0,n),Si(0,n),Si(0,n),Si(0,n),n.length>n.l?n.slice(0,n.l):n)),De(a,614)}function z1(a){var n,l;De(a,619,na(1)),De(a,48,(n={xfId:0,builtinId:0,name:"Normal"},(l=l||be(52)).write_shift(4,n.xfId),l.write_shift(2,1),l.write_shift(1,+n.builtinId),l.write_shift(1,0),yn(n.name||"",l),l.length>l.l?l.slice(0,l.l):l)),De(a,620)}function G1(a){var n,l,c,f;De(a,508,(n=0,l="TableStyleMedium9",c="PivotStyleMedium4",(f=be(2052)).write_shift(4,n),yn(l,f),yn(c,f),f.length>f.l?f.slice(0,f.l):f)),De(a,509)}function j1(a,n){var l,c=Is();return De(c,278),B1(c,a.SSF),De(a=c,611,na(1)),De(a,43,N1({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),De(a,612),De(a=c,603,na(2)),De(a,45,Ch({patternType:"none"})),De(a,45,Ch({patternType:"gray125"})),De(a,604),U1(c),De(a=c,626,na(1)),De(a,47,Fh({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),De(a,627),l=c,n=n.cellXfs,De(l,617,na(n.length)),n.forEach(function(f){De(l,47,Fh(f,0))}),De(l,618),z1(c),De(n=c,505,na(0)),De(n,506),G1(c),De(c,279),c.end()}var W1=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];function H1(a,n,l){n.themeElements.clrScheme=[];var c={};(a[0].match(_s)||[]).forEach(function(f){var h=Tt(f);switch(h[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":c.rgb=h.val;break;case"<a:sysClr":c.rgb=h.lastClr;break;case"<a:dk1>":case"</a:dk1>":case"<a:lt1>":case"</a:lt1>":case"<a:dk2>":case"</a:dk2>":case"<a:lt2>":case"</a:lt2>":case"<a:accent1>":case"</a:accent1>":case"<a:accent2>":case"</a:accent2>":case"<a:accent3>":case"</a:accent3>":case"<a:accent4>":case"</a:accent4>":case"<a:accent5>":case"</a:accent5>":case"<a:accent6>":case"</a:accent6>":case"<a:hlink>":case"</a:hlink>":case"<a:folHlink>":case"</a:folHlink>":h[0].charAt(1)==="/"?(n.themeElements.clrScheme[W1.indexOf(h[0])]=c,c={}):c.name=h[0].slice(3,h[0].length-1);break;default:if(l&&l.WTF)throw new Error("Unrecognized "+h[0]+" in clrScheme")}})}function Y1(){}function q1(){}var K1=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,J1=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,X1=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/,Q1=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function Dh(a,n){var l,c,f,h,d,m={};if(!(l=(a=!a||a.length===0?_c():a).match(Q1)))throw new Error("themeElements not found in theme");return c=l[0],h=n,(f=m).themeElements={},[["clrScheme",K1,H1],["fontScheme",J1,Y1],["fmtScheme",X1,q1]].forEach(function(g){if(!(d=c.match(g[1])))throw new Error(g[0]+" not found in themeElements");g[2](d,f,h)}),m.raw=a,m}function _c(a,n){return n&&n.themeXLSX?n.themeXLSX:a&&typeof a.raw=="string"?a.raw:(a=[Zr],a[a.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',a[a.length]="<a:themeElements>",a[a.length]='<a:clrScheme name="Office">',a[a.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',a[a.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',a[a.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',a[a.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',a[a.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',a[a.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',a[a.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',a[a.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',a[a.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',a[a.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',a[a.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',a[a.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',a[a.length]="</a:clrScheme>",a[a.length]='<a:fontScheme name="Office">',a[a.length]="<a:majorFont>",a[a.length]='<a:latin typeface="Cambria"/>',a[a.length]='<a:ea typeface=""/>',a[a.length]='<a:cs typeface=""/>',a[a.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',a[a.length]='<a:font script="Hang" typeface="맑은 고딕"/>',a[a.length]='<a:font script="Hans" typeface="宋体"/>',a[a.length]='<a:font script="Hant" typeface="新細明體"/>',a[a.length]='<a:font script="Arab" typeface="Times New Roman"/>',a[a.length]='<a:font script="Hebr" typeface="Times New Roman"/>',a[a.length]='<a:font script="Thai" typeface="Tahoma"/>',a[a.length]='<a:font script="Ethi" typeface="Nyala"/>',a[a.length]='<a:font script="Beng" typeface="Vrinda"/>',a[a.length]='<a:font script="Gujr" typeface="Shruti"/>',a[a.length]='<a:font script="Khmr" typeface="MoolBoran"/>',a[a.length]='<a:font script="Knda" typeface="Tunga"/>',a[a.length]='<a:font script="Guru" typeface="Raavi"/>',a[a.length]='<a:font script="Cans" typeface="Euphemia"/>',a[a.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',a[a.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',a[a.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',a[a.length]='<a:font script="Thaa" typeface="MV Boli"/>',a[a.length]='<a:font script="Deva" typeface="Mangal"/>',a[a.length]='<a:font script="Telu" typeface="Gautami"/>',a[a.length]='<a:font script="Taml" typeface="Latha"/>',a[a.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',a[a.length]='<a:font script="Orya" typeface="Kalinga"/>',a[a.length]='<a:font script="Mlym" typeface="Kartika"/>',a[a.length]='<a:font script="Laoo" typeface="DokChampa"/>',a[a.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',a[a.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',a[a.length]='<a:font script="Viet" typeface="Times New Roman"/>',a[a.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',a[a.length]='<a:font script="Geor" typeface="Sylfaen"/>',a[a.length]="</a:majorFont>",a[a.length]="<a:minorFont>",a[a.length]='<a:latin typeface="Calibri"/>',a[a.length]='<a:ea typeface=""/>',a[a.length]='<a:cs typeface=""/>',a[a.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',a[a.length]='<a:font script="Hang" typeface="맑은 고딕"/>',a[a.length]='<a:font script="Hans" typeface="宋体"/>',a[a.length]='<a:font script="Hant" typeface="新細明體"/>',a[a.length]='<a:font script="Arab" typeface="Arial"/>',a[a.length]='<a:font script="Hebr" typeface="Arial"/>',a[a.length]='<a:font script="Thai" typeface="Tahoma"/>',a[a.length]='<a:font script="Ethi" typeface="Nyala"/>',a[a.length]='<a:font script="Beng" typeface="Vrinda"/>',a[a.length]='<a:font script="Gujr" typeface="Shruti"/>',a[a.length]='<a:font script="Khmr" typeface="DaunPenh"/>',a[a.length]='<a:font script="Knda" typeface="Tunga"/>',a[a.length]='<a:font script="Guru" typeface="Raavi"/>',a[a.length]='<a:font script="Cans" typeface="Euphemia"/>',a[a.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',a[a.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',a[a.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',a[a.length]='<a:font script="Thaa" typeface="MV Boli"/>',a[a.length]='<a:font script="Deva" typeface="Mangal"/>',a[a.length]='<a:font script="Telu" typeface="Gautami"/>',a[a.length]='<a:font script="Taml" typeface="Latha"/>',a[a.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',a[a.length]='<a:font script="Orya" typeface="Kalinga"/>',a[a.length]='<a:font script="Mlym" typeface="Kartika"/>',a[a.length]='<a:font script="Laoo" typeface="DokChampa"/>',a[a.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',a[a.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',a[a.length]='<a:font script="Viet" typeface="Arial"/>',a[a.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',a[a.length]='<a:font script="Geor" typeface="Sylfaen"/>',a[a.length]="</a:minorFont>",a[a.length]="</a:fontScheme>",a[a.length]='<a:fmtScheme name="Office">',a[a.length]="<a:fillStyleLst>",a[a.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',a[a.length]='<a:gradFill rotWithShape="1">',a[a.length]="<a:gsLst>",a[a.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',a[a.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',a[a.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',a[a.length]="</a:gsLst>",a[a.length]='<a:lin ang="16200000" scaled="1"/>',a[a.length]="</a:gradFill>",a[a.length]='<a:gradFill rotWithShape="1">',a[a.length]="<a:gsLst>",a[a.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>',a[a.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>',a[a.length]="</a:gsLst>",a[a.length]='<a:lin ang="16200000" scaled="0"/>',a[a.length]="</a:gradFill>",a[a.length]="</a:fillStyleLst>",a[a.length]="<a:lnStyleLst>",a[a.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>',a[a.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>',a[a.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>',a[a.length]="</a:lnStyleLst>",a[a.length]="<a:effectStyleLst>",a[a.length]="<a:effectStyle>",a[a.length]="<a:effectLst>",a[a.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',a[a.length]="</a:effectLst>",a[a.length]="</a:effectStyle>",a[a.length]="<a:effectStyle>",a[a.length]="<a:effectLst>",a[a.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',a[a.length]="</a:effectLst>",a[a.length]="</a:effectStyle>",a[a.length]="<a:effectStyle>",a[a.length]="<a:effectLst>",a[a.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',a[a.length]="</a:effectLst>",a[a.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>',a[a.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',a[a.length]="</a:effectStyle>",a[a.length]="</a:effectStyleLst>",a[a.length]="<a:bgFillStyleLst>",a[a.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',a[a.length]='<a:gradFill rotWithShape="1">',a[a.length]="<a:gsLst>",a[a.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',a[a.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>',a[a.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',a[a.length]="</a:gsLst>",a[a.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',a[a.length]="</a:gradFill>",a[a.length]='<a:gradFill rotWithShape="1">',a[a.length]="<a:gsLst>",a[a.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',a[a.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',a[a.length]="</a:gsLst>",a[a.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',a[a.length]="</a:gradFill>",a[a.length]="</a:bgFillStyleLst>",a[a.length]="</a:fmtScheme>",a[a.length]="</a:themeElements>",a[a.length]="<a:objectDefaults>",a[a.length]="<a:spDef>",a[a.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>',a[a.length]="</a:spDef>",a[a.length]="<a:lnDef>",a[a.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>',a[a.length]="</a:lnDef>",a[a.length]="</a:objectDefaults>",a[a.length]="<a:extraClrSchemeLst/>",a[a.length]="</a:theme>",a.join(""))}function Z1(a){var n={};switch(n.xclrType=a.read_shift(2),n.nTintShade=a.read_shift(2),n.xclrType){case 0:a.l+=4;break;case 1:n.xclrValue=vs(a,4);break;case 2:n.xclrValue=pd(a);break;case 3:n.xclrValue=a.read_shift(4);break;case 4:a.l+=4}return a.l+=8,n}function $1(a){var n=a.read_shift(2),l=a.read_shift(2)-4,c=[n];switch(n){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:c[1]=Z1(a);break;case 6:c[1]=vs(a,l);break;case 14:case 15:c[1]=a.read_shift(l==1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+n+" "+l)}return c}function e2(){var a,n,l,c=Is();return De(c,332),De(c,334,na(1)),De(c,335,((l=be(12+2*(n={name:"XLDAPR",version:12e4,flags:3496657072}).name.length)).write_shift(4,n.flags),l.write_shift(4,n.version),hs(n.name,l),l.slice(0,l.l))),De(c,336),De(c,339,(a=1,(l=be(8+2*(n="XLDAPR").length)).write_shift(4,a),hs(n,l),l.slice(0,l.l))),De(c,52),De(c,35,na(514)),De(c,4096,na(0)),De(c,4097,Js(1)),De(c,36),De(c,53),De(c,340),De(c,337,(a=1,n=!0,(l=be(8)).write_shift(4,a),l.write_shift(4,n?1:0),l)),De(c,51,function(f){var h=be(4+8*f.length);h.write_shift(4,f.length);for(var d=0;d<f.length;++d)h.write_shift(4,f[d][0]),h.write_shift(4,f[d][1]);return h}([[1,0]])),De(c,338),De(c,333),c.end()}function Ah(){var a=[Zr];return a.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"> <metadataTypes count="1"> <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"/> </metadataTypes> <futureMetadata name="XLDAPR" count="1"> <bk> <extLst> <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}"> <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/> </ext> </extLst> </bk> </futureMetadata> <cellMetadata count="1"> <bk> <rc t="1" v="0"/> </bk> </cellMetadata> </metadata>`),a.join("")}var Ho=1024;function Sh(a,n){for(var l=[21600,21600],c=["m0,0l0",l[1],l[0],l[1],l[0],"0xe"].join(","),f=[je("xml",null,{"xmlns:v":Gs.v,"xmlns:o":Gs.o,"xmlns:x":Gs.x,"xmlns:mv":Gs.mv}).replace(/\/>/,">"),je("o:shapelayout",je("o:idmap",null,{"v:ext":"edit",data:a}),{"v:ext":"edit"}),je("v:shapetype",[je("v:stroke",null,{joinstyle:"miter"}),je("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:l.join(","),path:c})];Ho<1e3*a;)Ho+=1e3;return n.forEach(function(h){var d=jr(h[0]),g={color2:"#BEFF82",type:"gradient"};g.type=="gradient"&&(g.angle="-180");var m=g.type=="gradient"?je("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,g=je("v:fill",m,g);++Ho,f=f.concat(["<v:shape"+ui({id:"_x0000_s"+Ho,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(h[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",g,je("v:shadow",null,{on:"t",obscured:"t"}),je("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",ms("x:Anchor",[d.c+1,0,d.r+1,0,d.c+3,20,d.r+5,20].join(",")),ms("x:AutoFill","False"),ms("x:Row",String(d.r)),ms("x:Column",String(d.c)),h[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),f.push("</xml>"),f.join("")}function Eh(a,n,l,c){var f,h=Array.isArray(a);n.forEach(function(d){var m,g=jr(d.ref);(f=h?(a[g.r]||(a[g.r]=[]),a[g.r][g.c]):a[d.ref])||(f={t:"z"},h?a[g.r][g.c]=f:a[d.ref]=f,(m=rr(a["!ref"]||"BDWGO1000001:A1")).s.r>g.r&&(m.s.r=g.r),m.e.r<g.r&&(m.e.r=g.r),m.s.c>g.c&&(m.s.c=g.c),m.e.c<g.c&&(m.e.c=g.c),(m=Pt(m))!==a["!ref"]&&(a["!ref"]=m)),f.c||(f.c=[]);var y={a:d.author,t:d.t,r:d.r,T:l};d.h&&(y.h=d.h);for(var v=f.c.length-1;0<=v;--v){if(!l&&f.c[v].T)return;l&&!f.c[v].T&&f.c.splice(v,1)}if(l&&c){for(v=0;v<c.length;++v)if(y.a==c[v].id){y.a=c[v].name||y.a;break}}f.c.push(y)})}function Th(a){var n=[Zr,je("comments",null,{xmlns:ro[0]})],l=[];return n.push("<authors>"),a.forEach(function(c){c[1].forEach(function(f){var h=Dr(f.a);l.indexOf(h)==-1&&(l.push(h),n.push("<author>"+h+"</author>")),f.T&&f.ID&&l.indexOf("tc="+f.ID)==-1&&(l.push("tc="+f.ID),n.push("<author>tc="+f.ID+"</author>"))})}),l.length==0&&(l.push("SheetJ5"),n.push("<author>SheetJ5</author>")),n.push("</authors>"),n.push("<commentList>"),a.forEach(function(c){var f=0,h=[];if(c[1][0]&&c[1][0].T&&c[1][0].ID?f=l.indexOf("tc="+c[1][0].ID):c[1].forEach(function(g){g.a&&(f=l.indexOf(Dr(g.a))),h.push(g.t||"")}),n.push('<comment ref="'+c[0]+'" authorId="'+f+'"><text>'),h.length<=1)n.push(ms("t",Dr(h[0]||"")));else{for(var d=`Comment: `+h[0]+` `,m=1;m<h.length;++m)d+=`Reply: `+h[m]+` `;n.push(ms("t",Dr(d)))}n.push("</text></comment>")}),n.push("</commentList>"),2<n.length&&(n[n.length]="</comments>",n[1]=n[1].replace("/>",">")),n.join("")}hn=ws;function t2(a){var n=Is(),l=[];return De(n,628),De(n,630),a.forEach(function(c){c[1].forEach(function(f){-1<l.indexOf(f.a)||(l.push(f.a.slice(0,54)),De(n,632,hs(f.a.slice(0,54))))})}),De(n,631),De(n,633),a.forEach(function(c){c[1].forEach(function(f){f.iauthor=l.indexOf(f.a);var h,d={s:jr(c[0]),e:jr(c[0])};De(n,635,(d=[d,f],(h=h??be(36)).write_shift(4,d[1].iauthor),Vo(d[0],h),h.write_shift(4,0),h.write_shift(4,0),h.write_shift(4,0),h.write_shift(4,0),h)),f.t&&0<f.t.length&&De(n,637,qg(f)),De(n,636),delete f.iauthor})}),De(n,634),De(n,629),n.end()}var r2="application/vnd.ms-office.vbaProject",Rh=["xlsb","xlsm","xlam","biff8","xla"],vc,kh,Yo=(kh=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,function(a,n){return vc=n,a.replace(kh,s2)});function s2(a,n,l,c){var f=!1,h=!1;return l.length==0?h=!0:l.charAt(0)=="["&&(h=!0,l=l.slice(1,-1)),c.length==0?f=!0:c.charAt(0)=="["&&(f=!0,c=c.slice(1,-1)),l=0<l.length?0|parseInt(l,10):0,c=0<c.length?0|parseInt(c,10):0,f?c+=vc.c:--c,h?l+=vc.r:--l,n+(f?"":"$")+Vr(c)+(h?"":"$")+Kr(l)}var wc=/(^|[^._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,xc=function(a,n){return a.replace(wc,function(l,c,f,h,d,m){return h=Yl(h)-(f?0:n.c),m=Hl(m)-(d?0:n.r),c+"R"+(m==0?"":d?1+m:"["+m+"]")+"C"+(h==0?"":f?1+h:"["+h+"]")})};function Lh(a,n){return a.replace(wc,function(l,c,f,h,d,m){return c+(f=="$"?f+h:Vr(Yl(h)+n.c))+(d=="$"?d+m:Kr(Hl(m)+n.r))})}function Mh(a){return a.replace(/_xlfn\./g,"")}function os(a){a.l+=1}function Ga(a,n){return n=a.read_shift(n==1?1:2),[16383&n,n>>14&1,n>>15&1]}function Oh(d,n,f){var h=2;if(f){if(2<=f.biff&&f.biff<=5)return Ph(d);f.biff==12&&(h=4)}var c=d.read_shift(h),f=d.read_shift(h),h=Ga(d,2),d=Ga(d,2);return{s:{r:c,c:h[0],cRel:h[1],rRel:h[2]},e:{r:f,c:d[0],cRel:d[1],rRel:d[2]}}}function Ph(f){var n=Ga(f,2),l=Ga(f,2),c=f.read_shift(1),f=f.read_shift(1);return{s:{r:n[0],c,cRel:n[1],rRel:n[2]},e:{r:l[0],c:f,cRel:l[1],rRel:l[2]}}}function Nh(d,n,h){if(h&&2<=h.biff&&h.biff<=5)return f=Ga(c=d,2),c=c.read_shift(1),{r:f[0],c,cRel:f[1],rRel:f[2]};var c,f,h=d.read_shift(h&&h.biff==12?4:2),d=Ga(d,2);return{r:h,c:d[0],cRel:d[1],rRel:d[2]}}function a2(d,n,h){if(h=h&&h.biff?h.biff:8,2<=h&&h<=5)return function(x){var g=x.read_shift(2),y=x.read_shift(1),v=(32768&g)>>15,x=(16384&g)>>14;return g&=16383,v==1&&8192<=g&&(g-=16384),x==1&&128<=y&&(y-=256),{r:g,c:y,cRel:x,rRel:v}}(d);var c=d.read_shift(12<=h?4:2),f=d.read_shift(2),h=(16384&f)>>14,d=(32768&f)>>15;if(f&=16383,d==1)for(;524287<c;)c-=1048576;if(h==1)for(;8191<f;)f-=16384;return{r:c,c:f,cRel:h,rRel:d}}function Ih(a){var n=1&a[a.l+1];return a.l+=4,[n,1]}function Vh(a){return[a.read_shift(1),a.read_shift(1)]}function o2(a,n,l){var c=0,f=0;l.biff==12?(c=a.read_shift(4),f=a.read_shift(4)):(f=1+a.read_shift(1),c=1+a.read_shift(2)),2<=l.biff&&l.biff<8&&(--c,--f==0&&(f=256));for(var h=0,d=[];h!=c&&(d[h]=[]);++h)for(var m=0;m!=f;++m)d[h][m]=function(g,y){var v=[g.read_shift(1)];if(y==12)switch(v[0]){case 2:v[0]=4;break;case 4:v[0]=16;break;case 0:v[0]=1;break;case 1:v[0]=2}switch(v[0]){case 4:v[1]=$r(g,1)?"TRUE":"FALSE",y!=12&&(g.l+=7);break;case 37:case 16:v[1]=Ta[g[g.l]],g.l+=y==12?4:8;break;case 0:g.l+=8;break;case 1:v[1]=xs(g);break;case 2:v[1]=fo(g,0,{biff:0<y&&y<8?2:y});break;default:throw new Error("Bad SerAr: "+v[0])}return v}(a,l.biff);return d}function Ei(a,n,l){return a.l+=2,[(a=(c=a).read_shift(2),c=c.read_shift(2),{r:a,c:255&c,fQuoted:!!(16384&c),cRel:c>>15,rRel:c>>15})];var c}function Cc(a){return a.l+=6,[]}function Bh(a){return a.l+=2,[as(a),1&a.read_shift(2)]}var i2=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],Uh={1:{n:"PtgExp",f:function(a,n,l){return a.l++,l&&l.biff==12?[a.read_shift(4,"i"),0]:[a.read_shift(2),a.read_shift(l&&l.biff==2?1:2)]}},2:{n:"PtgTbl",f:vs},3:{n:"PtgAdd",f:os},4:{n:"PtgSub",f:os},5:{n:"PtgMul",f:os},6:{n:"PtgDiv",f:os},7:{n:"PtgPower",f:os},8:{n:"PtgConcat",f:os},9:{n:"PtgLt",f:os},10:{n:"PtgLe",f:os},11:{n:"PtgEq",f:os},12:{n:"PtgGe",f:os},13:{n:"PtgGt",f:os},14:{n:"PtgNe",f:os},15:{n:"PtgIsect",f:os},16:{n:"PtgUnion",f:os},17:{n:"PtgRange",f:os},18:{n:"PtgUplus",f:os},19:{n:"PtgUminus",f:os},20:{n:"PtgPercent",f:os},21:{n:"PtgParen",f:os},22:{n:"PtgMissArg",f:os},23:{n:"PtgStr",f:function(a,n,l){return a.l++,_i(a,0,l)}},26:{n:"PtgSheet",f:function(a,n,l){return a.l+=5,a.l+=2,a.l+=l.biff==2?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(a,n,l){return a.l+=l.biff==2?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(a){return a.l++,Ta[a.read_shift(1)]}},29:{n:"PtgBool",f:function(a){return a.l++,a.read_shift(1)!==0}},30:{n:"PtgInt",f:function(a){return a.l++,a.read_shift(2)}},31:{n:"PtgNum",f:function(a){return a.l++,xs(a)}},32:{n:"PtgArray",f:function(a,n,l){var c=(96&a[a.l++])>>5;return a.l+=l.biff==2?6:l.biff==12?14:7,[c]}},33:{n:"PtgFunc",f:function(a,n,l){var c=(96&a[a.l])>>5;return a.l+=1,l=a.read_shift(l&&l.biff<=3?1:2),[g2[l],jh[l],c]}},34:{n:"PtgFuncVar",f:function(a,n,l){var c=a[a.l++],f=a.read_shift(1),h=l&&l.biff<=3?[c==88?-1:0,a.read_shift(1)]:[(h=a)[h.l+1]>>7,32767&h.read_shift(2)];return[f,(h[0]===0?jh:m2)[h[1]]]}},35:{n:"PtgName",f:function(a,n,l){var c=a.read_shift(1)>>>5&3,f=!l||8<=l.biff?4:2,f=a.read_shift(f);switch(l.biff){case 2:a.l+=5;break;case 3:case 4:a.l+=8;break;case 5:a.l+=12}return[c,0,f]}},36:{n:"PtgRef",f:function(a,n,l){var c=(96&a[a.l])>>5;return a.l+=1,[c,Nh(a,0,l)]}},37:{n:"PtgArea",f:function(a,n,l){return[(96&a[a.l++])>>5,Oh(a,2<=l.biff&&l.biff,l)]}},38:{n:"PtgMemArea",f:function(a,n,l){var c=a.read_shift(1)>>>5&3;return a.l+=l&&l.biff==2?3:4,[c,a.read_shift(l&&l.biff==2?1:2)]}},39:{n:"PtgMemErr",f:vs},40:{n:"PtgMemNoMem",f:vs},41:{n:"PtgMemFunc",f:function(a,n,l){return[a.read_shift(1)>>>5&3,a.read_shift(l&&l.biff==2?1:2)]}},42:{n:"PtgRefErr",f:function(a,n,l){var c=a.read_shift(1)>>>5&3;return a.l+=4,l.biff<8&&a.l--,l.biff==12&&(a.l+=2),[c]}},43:{n:"PtgAreaErr",f:function(a,n,l){var c=(96&a[a.l++])>>5;return a.l+=l&&8<l.biff?12:l.biff<8?6:8,[c]}},44:{n:"PtgRefN",f:function(a,n,l){var c=(96&a[a.l])>>5;return a.l+=1,[c,a2(a,0,l)]}},45:{n:"PtgAreaN",f:function(a,n,l){return[(96&a[a.l++])>>5,function(g,m){if(m.biff<8)return Ph(g);var h=g.read_shift(m.biff==12?4:2),d=g.read_shift(m.biff==12?4:2),m=Ga(g,2),g=Ga(g,2);return{s:{r:h,c:m[0],cRel:m[1],rRel:m[2]},e:{r:d,c:g[0],cRel:g[1],rRel:g[2]}}}(a,l)]}},46:{n:"PtgMemAreaN",f:function(a){return[a.read_shift(1)>>>5&3,a.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(a){return[a.read_shift(1)>>>5&3,a.read_shift(2)]}},57:{n:"PtgNameX",f:function(a,n,l){return l.biff==5?function(c){var f=c.read_shift(1)>>>5&3,h=c.read_shift(2,"i");c.l+=8;var d=c.read_shift(2);return c.l+=12,[f,h,d]}(a):[a.read_shift(1)>>>5&3,a.read_shift(2),a.read_shift(4)]}},58:{n:"PtgRef3d",f:function(a,n,l){var c=(96&a[a.l])>>5;a.l+=1;var f=a.read_shift(2);return l&&l.biff==5&&(a.l+=12),[c,f,Nh(a,0,l)]}},59:{n:"PtgArea3d",f:function(a,n,l){var c=(96&a[a.l++])>>5,f=a.read_shift(2,"i");if(l)switch(l.biff){case 5:a.l+=12;break}return[c,f,Oh(a,0,l)]}},60:{n:"PtgRefErr3d",f:function(a,n,l){var c=(96&a[a.l++])>>5,f=a.read_shift(2),h=4;if(l)switch(l.biff){case 5:h=15;break;case 12:h=6}return a.l+=h,[c,f]}},61:{n:"PtgAreaErr3d",f:function(a,n,l){var c=(96&a[a.l++])>>5,f=a.read_shift(2),h=8;if(l)switch(l.biff){case 5:a.l+=12,h=6;break;case 12:h=12}return a.l+=h,[c,f]}},255:{}},n2={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},l2={1:{n:"PtgElfLel",f:Bh},2:{n:"PtgElfRw",f:Ei},3:{n:"PtgElfCol",f:Ei},6:{n:"PtgElfRwV",f:Ei},7:{n:"PtgElfColV",f:Ei},10:{n:"PtgElfRadical",f:Ei},11:{n:"PtgElfRadicalS",f:Cc},13:{n:"PtgElfColS",f:Cc},15:{n:"PtgElfColSV",f:Cc},16:{n:"PtgElfRadicalLel",f:Bh},25:{n:"PtgList",f:function(h){h.l+=2;var n=h.read_shift(2),l=h.read_shift(2),c=h.read_shift(4),f=h.read_shift(2),h=h.read_shift(2);return{ixti:n,coltype:3&l,rt:i2[l>>2&31],idx:c,c:f,C:h}}},29:{n:"PtgSxName",f:function(a){return a.l+=2,[a.read_shift(4)]}},255:{}},c2={0:{n:"PtgAttrNoop",f:function(a){return a.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(a,n,l){var c=255&a[a.l+1]?1:0;return a.l+=l&&l.biff==2?3:4,[c]}},2:{n:"PtgAttrIf",f:function(a,n,l){var c=255&a[a.l+1]?1:0;return a.l+=2,[c,a.read_shift(l&&l.biff==2?1:2)]}},4:{n:"PtgAttrChoose",f:function(a,n,l){a.l+=2;for(var c=a.read_shift(l&&l.biff==2?1:2),f=[],h=0;h<=c;++h)f.push(a.read_shift(l&&l.biff==2?1:2));return f}},8:{n:"PtgAttrGoto",f:function(a,n,l){var c=255&a[a.l+1]?1:0;return a.l+=2,[c,a.read_shift(l&&l.biff==2?1:2)]}},16:{n:"PtgAttrSum",f:function(a,n,l){a.l+=l&&l.biff==2?3:4}},32:{n:"PtgAttrBaxcel",f:Ih},33:{n:"PtgAttrBaxcel",f:Ih},64:{n:"PtgAttrSpace",f:function(a){return a.read_shift(2),Vh(a)}},65:{n:"PtgAttrSpaceSemi",f:function(a){return a.read_shift(2),Vh(a)}},128:{n:"PtgAttrIfError",f:function(a){var n=255&a[a.l+1]?1:0;return a.l+=2,[n,a.read_shift(2)]}},255:{}};function Ti(a,n,l,c){if(c.biff<8)return vs(a,n);for(var f=a.l+n,h=[],d=0;d!==l.length;++d)switch(l[d][0]){case"PtgArray":l[d][1]=o2(a,0,c),h.push(l[d][1]);break;case"PtgMemArea":l[d][2]=function(m,g){for(var y=m.read_shift(g.biff==12?4:2),v=[],x=0;x!=y;++x)v.push((g.biff==12?no:Cn)(m));return v}(a,(l[d][1],c)),h.push(l[d][2]);break;case"PtgExp":c&&c.biff==12&&(l[d][1][1]=a.read_shift(4),h.push(l[d][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+l[d][0]}return(n=f-a.l)!==0&&h.push(vs(a,n)),h}function Ri(a,n,l){for(var c,f,h=a.l+n,d=[];h!=a.l;)n=h-a.l,f=a[a.l],c=Uh[f]||Uh[n2[f]],(c=f===24||f===25?(f===24?l2:c2)[a[a.l+1]]:c)&&c.f?d.push([c.n,c.f(a,n,l)]):vs(a,n);return d}var f2={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function zh(a,n,l){if(!a)return"SH33TJSERR0";if(8<l.biff&&(!a.XTI||!a.XTI[n]))return a.SheetNames[n];if(!a.XTI)return"SH33TJSERR6";var c=a.XTI[n];if(l.biff<8)return 1e4<n&&(n-=65536),(n=n<0?-n:n)==0?"":a.XTI[n-1];if(!c)return"SH33TJSERR1";var f="";if(8<l.biff)switch(a[c[0]][0]){case 357:return f=c[1]==-1?"#REF":a.SheetNames[c[1]],c[1]==c[2]?f:f+":"+a.SheetNames[c[2]];case 358:return l.SID!=null?a.SheetNames[l.SID]:"SH33TJSSAME"+a[c[0]][0];case 355:default:return"SH33TJSSRC"+a[c[0]][0]}switch(a[c[0]][0][0]){case 1025:return f=c[1]==-1?"#REF":a.SheetNames[c[1]]||"SH33TJSERR3",c[1]==c[2]?f:f+":"+a.SheetNames[c[2]];case 14849:return a[c[0]].slice(1).map(function(h){return h.Name}).join(";;");default:return a[c[0]][0][3]?(f=c[1]==-1?"#REF":a[c[0]][0][3][c[1]]||"SH33TJSERR4",c[1]==c[2]?f:f+":"+a[c[0]][0][3][c[2]]):"SH33TJSERR2"}}function Gh(a,n,l){return n=zh(a,n,l),n=="#REF"?n:function(c,f){if(!(c||f&&f.biff<=5&&2<=f.biff))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(c)?"'"+c+"'":c}(n,l)}function Ms(a,n,l,c,f){var h,d,m,g=f&&f.biff||8,y={s:{c:0,r:0},e:{c:0,r:0}},v=[],x=0,C=0,F="";if(!a[0]||!a[0][0])return"";for(var k=-1,D="",P=0,L=a[0].length;P<L;++P){var R=a[0][P];switch(R[0]){case"PtgUminus":v.push("-"+v.pop());break;case"PtgUplus":v.push("+"+v.pop());break;case"PtgPercent":v.push(v.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(qe=v.pop(),h=v.pop(),0<=k){switch(a[0][k][1][0]){case 0:D=qr(" ",a[0][k][1][1]);break;case 1:D=qr("\r",a[0][k][1][1]);break;default:if(D="",f.WTF)throw new Error("Unexpected PtgAttrSpaceType "+a[0][k][1][0])}h+=D,k=-1}v.push(h+f2[R[0]]+qe);break;case"PtgIsect":qe=v.pop(),h=v.pop(),v.push(h+" "+qe);break;case"PtgUnion":qe=v.pop(),h=v.pop(),v.push(h+","+qe);break;case"PtgRange":qe=v.pop(),h=v.pop(),v.push(h+":"+qe);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":break;case"PtgRef":d=pi(R[1][1],y,f),v.push(mi(d,g));break;case"PtgRefN":d=l?pi(R[1][1],l,f):R[1][1],v.push(mi(d,g));break;case"PtgRef3d":x=R[1][1],d=pi(R[1][2],y,f),F=Gh(c,x,f),v.push(F+"!"+mi(d,g));break;case"PtgFunc":case"PtgFuncVar":var I=R[1][0],O=R[1][1],I=I||0,V=(I&=127)==0?[]:v.slice(-I);v.length-=I,O==="User"&&(O=V.shift()),v.push(O+"("+V.join(",")+")");break;case"PtgBool":v.push(R[1]?"TRUE":"FALSE");break;case"PtgInt":v.push(R[1]);break;case"PtgNum":v.push(String(R[1]));break;case"PtgStr":v.push('"'+R[1].replace(/"/g,'""')+'"');break;case"PtgErr":v.push(R[1]);break;case"PtgAreaN":m=Lu(R[1][1],l?{s:l}:y,f),v.push(Wl(m,f));break;case"PtgArea":m=Lu(R[1][1],y,f),v.push(Wl(m,f));break;case"PtgArea3d":x=R[1][1],m=R[1][2],F=Gh(c,x,f),v.push(F+"!"+Wl(m,f));break;case"PtgAttrSum":v.push("SUM("+v.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":C=R[1][2];var X=(c.names||[])[C-1]||(c[0]||[])[C],ae=X?X.Name:"SH33TJSNAME"+String(C);ae&&ae.slice(0,6)=="_xlfn."&&!f.xlfn&&(ae=ae.slice(6)),v.push(ae);break;case"PtgNameX":var te,ce=R[1][1],C=R[1][2];if(!(f.biff<=5)){X="",((c[ce]||[])[0]||[])[0]==14849||(((c[ce]||[])[0]||[])[0]==1025?c[ce][C]&&0<c[ce][C].itab&&(X=c.SheetNames[c[ce][C].itab-1]+"!"):X=c.SheetNames[C-1]+"!"),c[ce]&&c[ce][C]?X+=c[ce][C].Name:c[0]&&c[0][C]?X+=c[0][C].Name:(ae=(zh(c,ce,f)||"").split(";;"))[C-1]?X=ae[C-1]:X+="SH33TJSERRX",v.push(X);break}te=(te=c[ce=ce<0?-ce:ce]?c[ce][C]:te)||{Name:"SH33TJSERRY"},v.push(te.Name);break;case"PtgParen":var _e="(",we=")";if(0<=k){switch(D="",a[0][k][1][0]){case 2:_e=qr(" ",a[0][k][1][1])+_e;break;case 3:_e=qr("\r",a[0][k][1][1])+_e;break;case 4:we=qr(" ",a[0][k][1][1])+we;break;case 5:we=qr("\r",a[0][k][1][1])+we;break;default:if(f.WTF)throw new Error("Unexpected PtgAttrSpaceType "+a[0][k][1][0])}k=-1}v.push(_e+v.pop()+we);break;case"PtgRefErr":case"PtgRefErr3d":v.push("#REF!");break;case"PtgExp":d={c:R[1][1],r:R[1][0]};var de={c:l.c,r:l.r};if(c.sharedf[Rt(d)])ce=c.sharedf[Rt(d)],v.push(Ms(ce,0,de,c,f));else{for(var ke=!1,qe=0;qe!=c.arrayf.length;++qe)if(h=c.arrayf[qe],!(d.c<h[0].s.c||d.c>h[0].e.c||d.r<h[0].s.r||d.r>h[0].e.r)){v.push(Ms(h[1],0,de,c,f)),ke=!0;break}ke||v.push(R[1])}break;case"PtgArray":v.push("{"+function(ze){for(var Ne=[],Fe=0;Fe<ze.length;++Fe){for(var $e=ze[Fe],rt=[],gt=0;gt<$e.length;++gt){var Nt=$e[gt];Nt?Nt[0]===2?rt.push('"'+Nt[1].replace(/"/g,'""')+'"'):rt.push(Nt[1]):rt.push("")}Ne.push(rt.join(","))}return Ne.join(";")}(R[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":k=P;break;case"PtgTbl":case"PtgMemErr":break;case"PtgMissArg":v.push("");break;case"PtgAreaErr":case"PtgAreaErr3d":v.push("#REF!");break;case"PtgList":v.push("Table"+R[1].idx+"[#"+R[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":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");case"PtgSxName":default:throw new Error("Unrecognized Formula Token: "+String(R))}if(f.biff!=3&&0<=k&&["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(a[0][P][0])==-1){var He=!0;switch((R=a[0][k])[1][0]){case 4:He=!1;case 0:D=qr(" ",R[1][1]);break;case 5:He=!1;case 1:D=qr("\r",R[1][1]);break;default:if(D="",f.WTF)throw new Error("Unexpected PtgAttrSpaceType "+R[1][0])}v.push((He?D:"")+v.pop()+(He?"":D)),k=-1}}if(1<v.length&&f.WTF)throw new Error("bad formula stack");return v[0]}function Fc(a,d,l){var c=a.l+d,f=ya(a);l.biff==2&&++a.l;var h=function(m){var g;if(Sa(m,m.l+6)!==65535)return[xs(m),"n"];switch(m[m.l]){case 0:return m.l+=8,["String","s"];case 1:return g=m[m.l+2]===1,m.l+=8,[g,"b"];case 2:return g=m[m.l+2],m.l+=8,[g,"e"];case 3:return m.l+=8,["","s"]}return[]}(a),d=a.read_shift(1);return l.biff!=2&&(a.read_shift(1),5<=l.biff&&a.read_shift(4)),l=function(m,g,y){var v,x=m.l+g,C=y.biff==2?1:2,F=m.read_shift(C);if(F==65535)return[[],vs(m,g-2)];var k=Ri(m,F,y);return g!==F+C&&(v=Ti(m,g-F-C,k,y)),m.l=x,[k,v]}(a,c-a.l,l),{cell:f,val:h[0],formula:l,shared:d>>3&1,tt:h[1]}}function u2(a,n,l,c,f){n=uo(n,l,f),f=(l=a.v)!=null?Bo(typeof l=="number"?l:0):((l=be(8)).write_shift(1,3),l.write_shift(1,0),l.write_shift(2,0),l.write_shift(2,0),l.write_shift(2,65535),l),l=be(6),l.write_shift(2,33),l.write_shift(4,0);for(var h=be(a.bf.length),d=0;d<a.bf.length;++d)h[d]=a.bf[d];return ut([n,f,l,h])}function Vn(a,n,l){var f=a.read_shift(4),c=Ri(a,f,l),f=a.read_shift(4);return[c,0<f?Ti(a,f,c,l):null]}var d2=Vn,Bn=Vn,h2=Vn,p2=Vn,m2={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"},jh={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:"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"},g2={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 Wh(a){return(a=(a=(a=(a=(a=a.slice(0,3)=="of:"?a.slice(3):a).charCodeAt(0)==61&&(a=a.slice(1)).charCodeAt(0)==61?a.slice(1):a).replace(/COM\.MICROSOFT\./g,"")).replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(n,l){return l.replace(/\./g,"")})).replace(/\[.(#[A-Z]*[?!])\]/g,"$1")).replace(/[;~]/g,",").replace(/\|/g,";")}function Dc(a){return a=a.split(":"),[a[0].split(".")[0],a[0].split(".")[1]+(1<a.length?":"+(a[1].split(".")[1]||a[1].split(".")[0]):"")]}var ki={},qo={},Li=typeof Map<"u";function Ac(a,n,l){var c=0,f=a.length;if(l){if(Li?l.has(n):Object.prototype.hasOwnProperty.call(l,n)){for(var h=Li?l.get(n):l[n];c<h.length;++c)if(a[h[c]].t===n)return a.Count++,h[c]}}else for(;c<f;++c)if(a[c].t===n)return a.Count++,c;return a[f]={t:n},a.Count++,a.Unique++,l&&(Li?(l.has(n)||l.set(n,[]),l.get(n).push(f)):(Object.prototype.hasOwnProperty.call(l,n)||(l[n]=[]),l[n].push(f))),f}function Un(c,n){var l={min:c+1,max:c+1},c=-1;return n.MDW&&(Fs=n.MDW),n.width!=null?l.customWidth=1:n.wpx!=null?c=Fi(n.wpx):n.wch!=null&&(c=n.wch),-1<c?(l.width=Pn(c),l.customWidth=1):n.width!=null&&(l.width=n.width),n.hidden&&(l.hidden=!0),n.level!=null&&(l.outlineLevel=l.level=n.level),l}function po(a,n){a&&(n=n=="xlml"?[1,1,1,1,.5,.5]:[.7,.7,.75,.75,.3,.3],a.left==null&&(a.left=n[0]),a.right==null&&(a.right=n[1]),a.top==null&&(a.top=n[2]),a.bottom==null&&(a.bottom=n[3]),a.header==null&&(a.header=n[4]),a.footer==null&&(a.footer=n[5]))}function ja(a,n,l){if(Ai!==void 0){if(/^\d+$/.exec(n.s)||n.s&&n.s==+n.s)return n.s;var c=n.s||{};return n.z&&(c.numFmt=n.z),Ai.addStyle(c)}var f=l.revssf[n.z!=null?n.z:"General"],h=60,d=a.length;if(f==null&&l.ssf){for(;h<392;++h)if(l.ssf[h]==null){pa(n.z,h),l.ssf[h]=n.z,l.revssf[n.z]=f=h;break}}for(h=0;h!=d;++h)if(a[h].numFmtId===f)return h;return a[d]={numFmtId:f,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},d}function Hh(a,n,l,c,f,h){try{c.cellNF&&(a.z=oe[n])}catch(m){if(c.WTF)throw m}if(a.t!=="z"||c.cellStyles){if(a.t==="d"&&typeof a.v=="string"&&(a.v=Nr(a.v)),(!c||c.cellText!==!1)&&a.t!=="z")try{if(oe[n]==null&&pa(Fg[n]||"General",n),a.t==="e")a.w=a.w||Ta[a.v];else if(n===0)if(a.t==="n")(0|a.v)===a.v?a.w=a.v.toString(10):a.w=Ns(a.v);else if(a.t==="d"){var d=ns(a.v);a.w=(0|d)===d?d.toString(10):Ns(d)}else{if(a.v===void 0)return;a.w=kr(a.v,qo)}else a.t==="d"?a.w=Us(n,ns(a.v),qo):a.w=Us(n,a.v,qo)}catch(m){if(c.WTF)throw m}if(c.cellStyles&&l!=null)try{a.s=h.Fills[l],a.s.fgColor&&a.s.fgColor.theme&&!a.s.fgColor.rgb&&(a.s.fgColor.rgb=On(f.themeElements.clrScheme[a.s.fgColor.theme].rgb,a.s.fgColor.tint||0),c.WTF&&(a.s.fgColor.raw_rgb=f.themeElements.clrScheme[a.s.fgColor.theme].rgb)),a.s.bgColor&&a.s.bgColor.theme&&(a.s.bgColor.rgb=On(f.themeElements.clrScheme[a.s.bgColor.theme].rgb,a.s.bgColor.tint||0),c.WTF&&(a.s.bgColor.raw_rgb=f.themeElements.clrScheme[a.s.bgColor.theme].rgb))}catch(m){if(c.WTF&&h.Fills)throw m}}}var b2=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,y2=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,_2=/<(?:\w:)?hyperlink [^>]*>/gm,v2=/"(\w*:\w*)"/,w2=/<(?:\w:)?col\b[^>]*[\/]?>/g,x2=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,C2=/<(?:\w:)?pageMargins[^>]*\/>/g,Yh=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,F2=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,D2=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function A2(a,n,l,c,f,h,d){if(!a)return a;c=c||{"!id":{}};var m=n.dense?[]:{},g={s:{r:2e6,c:2e6},e:{r:0,c:0}},y="",ae="",v=a.match(y2);v?(y=a.slice(0,v.index),ae=a.slice(v.index+v[0].length)):y=ae=a;var x=y.match(Yh);x?Sc(x[0],0,f,l):(x=y.match(F2))&&(a=x[0],x[1],x=m,C=f,F=l,Sc(a.slice(0,a.indexOf(">")),0,C,F));var C,F,k=(y.match(/<(?:\w*:)?dimension/)||{index:-1}).index;0<k&&(C=y.slice(k,k+50).match(v2))&&(F=m,(P=rr(P=C[1])).s.r<=P.e.r&&P.s.c<=P.e.c&&0<=P.s.r&&0<=P.s.c&&(F["!ref"]=Pt(P)));var D,P=y.match(D2);P&&P[1]&&(R=P[1],(D=f).Views||(D.Views=[{}]),(R.match(T2)||[]).forEach(function(te,ce){te=Tt(te),D.Views[ce]||(D.Views[ce]={}),+te.zoomScale&&(D.Views[ce].zoom=+te.zoomScale),Ir(te.rightToLeft)&&(D.Views[ce].RTL=!0)}));var L,R=[];n.cellStyles&&(L=y.match(w2))&&function(te,ce){for(var _e=!1,we=0;we!=ce.length;++we){var de=Tt(ce[we],!0);de.hidden&&(de.hidden=Ir(de.hidden));var ke=parseInt(de.min,10)-1,qe=parseInt(de.max,10)-1;for(de.outlineLevel&&(de.level=+de.outlineLevel||0),delete de.min,delete de.max,de.width=+de.width,!_e&&de.width&&(_e=!0,yc(de.width)),za(de);ke<=qe;)te[ke++]=Lr(de)}}(R,L),v&&R2(v[1],m,n,g,h,d),d=ae.match(x2),d&&(m["!autofilter"]={ref:(d[0].match(/ref="([^"]*)"/)||[])[1]});var O=[],I=ae.match(b2);if(I)for(k=0;k!=I.length;++k)O[k]=rr(I[k].slice(I[k].indexOf('"')+1));d=ae.match(_2),d&&function(te,ce,_e){for(var we=Array.isArray(te),de=0;de!=ce.length;++de){var ke=Tt(Tr(ce[de]),!0);if(!ke.ref)return;var qe=((_e||{})["!id"]||[])[ke.id];qe?(ke.Target=qe.Target,ke.location&&(ke.Target+="#"+pr(ke.location))):(ke.Target="#"+pr(ke.location),qe={Target:ke.Target,TargetMode:"Internal"}),ke.Rel=qe,ke.tooltip&&(ke.Tooltip=ke.tooltip,delete ke.tooltip);for(var He=rr(ke.ref),Ve=He.s.r;Ve<=He.e.r;++Ve)for(var ze=He.s.c;ze<=He.e.c;++ze){var Ne=Rt({c:ze,r:Ve});we?(te[Ve]||(te[Ve]=[]),te[Ve][ze]||(te[Ve][ze]={t:"z",v:void 0}),te[Ve][ze].l=ke):(te[Ne]||(te[Ne]={t:"z",v:void 0}),te[Ne].l=ke)}}}(m,d,c);var V,X,ae=ae.match(C2);return ae&&(m["!margins"]=(V=Tt(ae[0]),X={},["left","right","top","bottom","header","footer"].forEach(function(te){V[te]&&(X[te]=parseFloat(V[te]))}),X)),!m["!ref"]&&g.e.c>=g.s.c&&g.e.r>=g.s.r&&(m["!ref"]=Pt(g)),0<n.sheetRows&&m["!ref"]&&(ae=rr(m["!ref"]),n.sheetRows<=+ae.e.r&&(ae.e.r=n.sheetRows-1,ae.e.r>g.e.r&&(ae.e.r=g.e.r),ae.e.r<ae.s.r&&(ae.s.r=ae.e.r),ae.e.c>g.e.c&&(ae.e.c=g.e.c),ae.e.c<ae.s.c&&(ae.s.c=ae.e.c),m["!fullref"]=m["!ref"],m["!ref"]=Pt(ae))),0<R.length&&(m["!cols"]=R),0<O.length&&(m["!merges"]=O),m}function Sc(a,n,l,c){a=Tt(a),l.Sheets[c]||(l.Sheets[c]={}),a.codeName&&(l.Sheets[c].CodeName=pr(Tr(a.codeName)))}var S2=["objects","scenarios","selectLockedCells","selectUnlockedCells"],E2=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"],T2=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/,qh,Kh,Jh,Xh,Qh,Zh,$h,R2=(qh=/<(?:\w+:)?c[ \/>]/,Kh=/<\/(?:\w+:)?row>/,Jh=/r=["']([^"']*)["']/,Xh=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,Qh=/ref=["']([^"']*)["']/,Zh=fi("v"),$h=fi("f"),function(a,n,l,c,f,h){for(var d,m,g,y,v,x,C=0,F="",k=[],D=[],P=0,L=0,R="",O=0,I=0,V=0,X=0,ae=Array.isArray(h.CellXf),te=[],ce=[],_e=Array.isArray(n),we=[],de={},ke=!1,qe=!!l.sheetStubs,He=a.split(Kh),Ve=0,ze=He.length;Ve!=ze;++Ve){var Ne=(F=He[Ve].trim()).length;if(Ne!==0){var Fe=0;e:for(C=0;C<Ne;++C)switch(F[C]){case">":if(F[C-1]!="/"){++C;break e}if(l&&l.cellStyles){if(O=(g=Tt(F.slice(Fe,C),!0)).r!=null?parseInt(g.r,10):O+1,I=-1,l.sheetRows&&l.sheetRows<O)continue;ke=!(de={}),g.ht&&(ke=!0,de.hpt=parseFloat(g.ht),de.hpx=Wo(de.hpt)),g.hidden=="1"&&(ke=!0,de.hidden=!0),g.outlineLevel!=null&&(ke=!0,de.level=+g.outlineLevel),ke&&(we[O-1]=de)}break;case"<":Fe=C}if(C<=Fe)break;if(O=(g=Tt(F.slice(Fe,C),!0)).r!=null?parseInt(g.r,10):O+1,I=-1,!(l.sheetRows&&l.sheetRows<O)){c.s.r>O-1&&(c.s.r=O-1),c.e.r<O-1&&(c.e.r=O-1),l&&l.cellStyles&&(ke=!(de={}),g.ht&&(ke=!0,de.hpt=parseFloat(g.ht),de.hpx=Wo(de.hpt)),g.hidden=="1"&&(ke=!0,de.hidden=!0),g.outlineLevel!=null&&(ke=!0,de.level=+g.outlineLevel),ke&&(we[O-1]=de)),k=F.slice(C).split(qh);for(var $e,rt=0;rt!=k.length&&k[rt].trim().charAt(0)=="<";++rt);for(k=k.slice(rt),C=0;C!=k.length;++C)if((F=k[C].trim()).length!==0){if(D=F.match(Jh),P=C,L=0,F="<c "+(F.slice(0,1)=="<"?">":"")+F,D!=null&&D.length===2){for(P=0,R=D[1],L=0;L!=R.length&&!((d=R.charCodeAt(L)-64)<1||26<d);++L)P=26*P+d;I=--P}else++I;for(L=0;L!=F.length&&F.charCodeAt(L)!==62;++L);if(++L,(g=Tt(F.slice(0,L),!0)).r||(g.r=Rt({r:O-1,c:I})),m={t:""},(D=(R=F.slice(L)).match(Zh))!=null&&D[1]!==""&&(m.v=pr(D[1])),l.cellFormula){(D=R.match($h))!=null&&D[1]!==""?(m.f=pr(Tr(D[1])).replace(/\r\n/g,` `),l.xlfn||(m.f=Mh(m.f)),-1<D[0].indexOf('t="array"')?(m.F=(R.match(Qh)||[])[1],-1<m.F.indexOf(":")&&te.push([rr(m.F),m.F])):-1<D[0].indexOf('t="shared"')&&(v=Tt(D[0]),$e=pr(Tr(D[1])),l.xlfn||($e=Mh($e)),ce[parseInt(v.si,10)]=[v,$e,g.r])):(D=R.match(/<f[^>]*\/>/))&&ce[(v=Tt(D[0])).si]&&(m.f=(x=ce[v.si][1],Xe=ce[v.si][2],$e=g.r,Xe=ks(Xe).s,$e=jr($e),Lh(x,{r:$e.r-Xe.r,c:$e.c-Xe.c})));for(var gt=jr(g.r),L=0;L<te.length;++L)gt.r>=te[L][0].s.r&>.r<=te[L][0].e.r&>.c>=te[L][0].s.c&>.c<=te[L][0].e.c&&(m.F=te[L][1])}if(g.t==null&&m.v===void 0)if(m.f||m.F)m.v=0,m.t="n";else{if(!qe)continue;m.t="z"}else m.t=g.t||"n";switch(c.s.c>I&&(c.s.c=I),c.e.c<I&&(c.e.c=I),m.t){case"n":if(m.v==""||m.v==null){if(!qe)continue;m.t="z"}else m.v=parseFloat(m.v);break;case"s":if(m.v===void 0){if(!qe)continue;m.t="z"}else y=ki[parseInt(m.v,10)],m.v=y.t,m.r=y.r,l.cellHTML&&(m.h=y.h);break;case"str":m.t="s",m.v=m.v!=null?Tr(m.v):"",l.cellHTML&&(m.h=Ml(m.v));break;case"inlineStr":D=R.match(Xh),m.t="s",D!=null&&(y=pc(D[1]))?(m.v=y.t,l.cellHTML&&(m.h=y.h)):m.v="";break;case"b":m.v=Ir(m.v);break;case"d":l.cellDates?m.v=Nr(m.v,1):(m.v=ns(Nr(m.v,1)),m.t="n");break;case"e":l&&l.cellText===!1||(m.w=m.v),m.v=zu[m.v]}var Nt,V=X=0,Xe=null;ae&&g.s!==void 0&&(Xe=h.CellXf[g.s])!=null&&(Xe.numFmtId!=null&&(V=Xe.numFmtId),l.cellStyles&&Xe.fillId!=null&&(X=Xe.fillId)),Hh(m,V,X,l,f,h),l.cellDates&&ae&&m.t=="n"&&eo(oe[V])&&(m.t="d",m.v=dn(m.v)),g.cm&&l.xlmeta&&(Nt=(l.xlmeta.Cell||[])[+g.cm-1])&&Nt.type=="XLDAPR"&&(m.D=!0),_e?(n[(Nt=jr(g.r)).r]||(n[Nt.r]=[]),n[Nt.r][Nt.c]=m):n[g.r]=m}}}}0<we.length&&(n["!rows"]=we)});function k2(a,n){for(var l,c,f,h,d=[],m=[],g=rr(a["!ref"]),y=[],v=0,D=0,x=a["!rows"],C=Array.isArray(a),F={r:""},k=-1,D=g.s.c;D<=g.e.c;++D)y[D]=Vr(D);for(v=g.s.r;v<=g.e.r;++v){for(m=[],f=Kr(v),D=g.s.c;D<=g.e.c;++D){c=y[D]+f;var P=C?(a[v]||[])[D]:a[c];P!==void 0&&(l=function(L,R,O,I){if(L.c&&O["!comments"].push([R,L.c]),L.v===void 0&&typeof L.f!="string"||L.t==="z"&&!L.f)return"";var V="",X=L.t,ae=L.v;if(L.t!=="z")switch(L.t){case"b":V=L.v?"1":"0";break;case"n":V=""+L.v;break;case"e":V=Ta[L.v];break;case"d":V=I&&I.cellDates?Nr(L.v,-1).toISOString():((L=Lr(L)).t="n",""+(L.v=ns(Nr(L.v)))),L.z===void 0&&(L.z=oe[14]);break;default:V=L.v}var te=ms("v",Dr(V)),ce={r:R},_e=ja(I.cellXfs,L,I);switch(_e!==0&&(ce.s=_e),L.t){case"n":break;case"d":ce.t="d";break;case"b":ce.t="b";break;case"e":ce.t="e";break;case"z":break;default:if(L.v==null){delete L.t;break}if(32767<L.v.length)throw new Error("Text length must not exceed 32767 characters");if(I&&I.bookSST){te=ms("v",""+Ac(I.Strings,L.v,I.revStrings)),ce.t="s";break}ce.t="str"}return L.t!=X&&(L.t=X,L.v=ae),typeof L.f=="string"&&L.f&&(ae=L.F&&L.F.slice(0,R.length)==R?{t:"array",ref:L.F}:null,te=je("f",Dr(L.f),ae)+(L.v!=null?te:"")),L.l&&O["!links"].push([R,L.l]),L.D&&(ce.cm=1),je("c",te,ce)}(P,c,a,n))!=null&&m.push(l)}(0<m.length||x&&x[v])&&(F={r:f},x&&x[v]&&((h=x[v]).hidden&&(F.hidden=1),k=-1,h.hpx?k=Di(h.hpx):h.hpt&&(k=h.hpt),-1<k&&(F.ht=k,F.customHeight=1),h.level&&(F.outlineLevel=h.level)),d[d.length]=je("row",m.join(""),F))}if(x)for(;v<x.length;++v)x&&x[v]&&(F={r:v+1},(h=x[v]).hidden&&(F.hidden=1),k=-1,h.hpx?k=Di(h.hpx):h.hpt&&(k=h.hpt),-1<k&&(F.ht=k,F.customHeight=1),h.level&&(F.outlineLevel=h.level),d[d.length]=je("row","",F));return d.join("")}function ep(a,n,l,c){var f,h,d=[Zr,je("worksheet",null,{xmlns:ro[0],"xmlns:r":ls.r})],m=l.SheetNames[a],g=l.Sheets[m],y=(g=g??{})["!ref"]||"A1",v=rr(y);if(16383<v.e.c||1048575<v.e.r){if(n.WTF)throw new Error("Range "+y+" exceeds format limit A1:XFD1048576");v.e.c=Math.min(v.e.c,16383),v.e.r=Math.min(v.e.c,1048575),y=Pt(v)}c=c||{},g["!comments"]=[];var x,C,F=[];(function(L,R,O,I,V){var X=!1,ae={},te=null;if(I.bookType!=="xlsx"&&R.vbaraw){var ce=R.SheetNames[O];try{R.Workbook&&(ce=R.Workbook.Sheets[O].CodeName||ce)}catch{}X=!0,ae.codeName=ga(Dr(ce))}L&&L["!outline"]&&(I={summaryBelow:1,summaryRight:1},L["!outline"].above&&(I.summaryBelow=0),L["!outline"].left&&(I.summaryRight=0),te=(te||"")+je("outlinePr",null,I)),(X||te)&&(V[V.length]=je("sheetPr",te,ae))})(g,l,a,n,d),d[d.length]=je("dimension",null,{ref:y}),d[d.length]=(m={workbookViewId:"0"},((((v=l)||{}).Workbook||{}).Views||[])[0]&&(m.rightToLeft=v.Workbook.Views[0].RTL?"1":"0"),je("sheetViews",je("sheetView",null,m),{})),n.sheetFormat&&(d[d.length]=je("sheetFormatPr",null,{defaultRowHeight:n.sheetFormat.defaultRowHeight||"16",baseColWidth:n.sheetFormat.baseColWidth||"10",outlineLevelRow:n.sheetFormat.outlineLevelRow||"7"})),g["!cols"]!=null&&0<g["!cols"].length&&(d[d.length]=function(L){for(var R,O=["<cols>"],I=0;I!=L.length;++I)(R=L[I])&&(O[O.length]=je("col",null,Un(I,R)));return O[O.length]="</cols>",O.join("")}(g["!cols"])),d[f=d.length]="<sheetData/>",g["!links"]=[],g["!ref"]!=null&&0<(h=k2(g,n)).length&&(d[d.length]=h),d.length>f+1&&(d[d.length]="</sheetData>",d[f]=d[f].replace("/>",">")),g["!protect"]&&(d[d.length]=(x=g["!protect"],C={sheet:1},S2.forEach(function(L){x[L]!=null&&x[L]&&(C[L]="1")}),E2.forEach(function(L){x[L]==null||x[L]||(C[L]="0")}),x.password&&(C.password=mc(x.password).toString(16).toUpperCase()),je("sheetProtection",null,C))),g["!autofilter"]!=null&&(d[d.length]=function(L,R,O,I){var V=typeof L.ref=="string"?L.ref:Pt(L.ref);O.Workbook||(O.Workbook={Sheets:[]}),O.Workbook.Names||(O.Workbook.Names=[]);var X=O.Workbook.Names;(L=ks(V)).s.r==L.e.r&&(L.e.r=ks(R["!ref"]).e.r,V=Pt(L));for(var ae=0;ae<X.length;++ae){var te=X[ae];if(te.Name=="_xlnm._FilterDatabase"&&te.Sheet==I){te.Ref="'"+O.SheetNames[I]+"'!"+V;break}}return ae==X.length&&X.push({Name:"_xlnm._FilterDatabase",Sheet:I,Ref:"'"+O.SheetNames[I]+"'!"+V}),je("autoFilter",null,{ref:V})}(g["!autofilter"],g,l,a)),g["!merges"]!=null&&0<g["!merges"].length&&(d[d.length]=function(L){if(L.length===0)return"";for(var R='<mergeCells count="'+L.length+'">',O=0;O!=L.length;++O)R+='<mergeCell ref="'+Pt(L[O])+'"/>';return R+"</mergeCells>"}(g["!merges"]));var k,D,P=-1;return 0<g["!links"].length&&(d[d.length]="<hyperlinks>",g["!links"].forEach(function(L){L[1].Target&&(D={ref:L[0]},L[1].Target.charAt(0)!="#"&&(P=Ar(c,-1,Dr(L[1].Target).replace(/#.*$/,""),Vt.HLINK),D["r:id"]="rId"+P),-1<(k=L[1].Target.indexOf("#"))&&(D.location=Dr(L[1].Target.slice(k+1))),L[1].Tooltip&&(D.tooltip=Dr(L[1].Tooltip)),d[d.length]=je("hyperlink",null,D))}),d[d.length]="</hyperlinks>"),delete g["!links"],g["!margins"]!=null&&(d[d.length]=(po(l=g["!margins"]),je("pageMargins",null,l))),n&&!n.ignoreEC&&n.ignoreEC!=null||(d[d.length]=ms("ignoredErrors",je("ignoredError",null,{numberStoredAsText:1,sqref:y}))),0<F.length&&(P=Ar(c,-1,"../drawings/drawing"+(a+1)+".xml",Vt.DRAW),d[d.length]=je("drawing",null,{"r:id":"rId"+P}),g["!drawing"]=F),0<g["!comments"].length&&(P=Ar(c,-1,"../drawings/vmlDrawing"+(a+1)+".vml",Vt.VML),d[d.length]=je("legacyDrawing",null,{"r:id":"rId"+P}),g["!legacy"]=P),1<d.length&&(d[d.length]="</worksheet>",d[1]=d[1].replace("/>",">")),d.join("")}function L2(a,n,l,c){l=function(f,h,d){var m=be(145),g=(d["!rows"]||[])[f]||{};m.write_shift(4,f),m.write_shift(4,0);var v=320;g.hpx?v=20*Di(g.hpx):g.hpt&&(v=20*g.hpt),m.write_shift(2,v),m.write_shift(1,0),v=0,g.level&&(v|=g.level),g.hidden&&(v|=16),(g.hpx||g.hpt)&&(v|=32),m.write_shift(1,v),m.write_shift(1,0);var y=0,v=m.l;m.l+=4;for(var x={r:f,c:0},C=0;C<16;++C)if(!(h.s.c>C+1<<10||h.e.c<C<<10)){for(var F=-1,k=-1,D=C<<10;D<C+1<<10;++D)x.c=D,(Array.isArray(d)?(d[x.r]||[])[x.c]:d[Rt(x)])&&(F<0&&(F=D),k=D);F<0||(++y,m.write_shift(4,F),m.write_shift(4,k))}return f=m.l,m.l=v,m.write_shift(4,y),m.l=f,m.length>m.l?m.slice(0,m.l):m}(c,l,n),(17<l.length||(n["!rows"]||[])[c])&&De(a,0,l)}var zn=no,M2=Vo;function tp(a){return[oo(a),xs(a),"n"]}var Ko=no,O2=Vo,rp=["left","right","top","bottom","header","footer"];function P2(a,n,l,c,f,h,d){if(n.v===void 0)return!1;var m="";switch(n.t){case"b":m=n.v?"1":"0";break;case"d":(n=Lr(n)).z=n.z||oe[14],n.v=ns(Nr(n.v)),n.t="n";break;case"n":case"e":m=""+n.v;break;default:m=n.v}var g,y,v,x,C,F,k,D,P,L,R,O,I,V,X,ae,te,ce,_e,we,de={r:l,c};switch(de.s=ja(f.cellXfs,n,f),n.l&&h["!links"].push([Rt(de),n.l]),n.c&&h["!comments"].push([Rt(de),n.c]),n.t){case"s":case"str":return f.bookSST?(m=Ac(f.Strings,n.v,f.revStrings),de.t="s",de.v=m,d?De(a,18,(io(te=de,ce=ce??be(8)),ce.write_shift(4,te.v),ce)):De(a,7,(ao(te=de,ae=ae??be(12)),ae.write_shift(4,te.v),ae))):(de.t="str",d?De(a,17,(V=n,io(de,X=X??be(8+4*V.v.length)),hs(V.v,X),X.length>X.l?X.slice(0,X.l):X)):De(a,6,(V=n,ao(de,I=I??be(12+4*V.v.length)),hs(V.v,I),I.length>I.l?I.slice(0,I.l):I))),!0;case"n":return n.v==(0|n.v)&&-1e3<n.v&&n.v<1e3?d?De(a,13,(R=n,io(de,O=O??be(8)),Pu(R.v,O),O)):De(a,2,(R=n,ao(de,L=L??be(12)),Pu(R.v,L),L)):d?De(a,16,(D=n,io(de,P=P??be(12)),Bo(D.v,P),P)):De(a,5,(D=n,ao(de,k=k??be(16)),Bo(D.v,k),k)),!0;case"b":return de.t="b",d?De(a,15,(C=n,io(de,F=F??be(5)),F.write_shift(1,C.v?1:0),F)):De(a,4,(C=n,ao(de,x=x??be(9)),x.write_shift(1,C.v?1:0),x)),!0;case"e":return de.t="e",d?De(a,14,(y=n,io(de,v=v??be(8)),v.write_shift(1,y.v),v.write_shift(2,0),v.write_shift(1,0),v)):De(a,3,(y=n,ao(de,g=g??be(9)),g.write_shift(1,y.v),g)),!0}return d?De(a,12,io(de,we=we??be(4))):De(a,1,ao(de,_e=_e??be(8))),!0}function N2(a,n){var l,c;n&&n["!merges"]&&(De(a,177,(l=n["!merges"].length,(c=c??be(4)).write_shift(4,l),c)),n["!merges"].forEach(function(f){De(a,176,O2(f))}),De(a,178))}function I2(a,n){n&&n["!cols"]&&(De(a,390),n["!cols"].forEach(function(l,c){l&&De(a,60,function(f,h,d){d==null&&(d=be(18));var m=Un(f,h);return d.write_shift(-4,f),d.write_shift(-4,f),d.write_shift(4,256*(m.width||10)),d.write_shift(4,0),f=0,h.hidden&&(f|=1),typeof m.width=="number"&&(f|=2),h.level&&(f|=h.level<<8),d.write_shift(2,f),d}(c,l))}),De(a,391))}function V2(a,n){var l;n&&n["!ref"]&&(De(a,648),De(a,649,(l=rr(n["!ref"]),(n=be(24)).write_shift(4,4),n.write_shift(4,1),Vo(l,n),n)),De(a,650))}function B2(a,n,l){n["!links"].forEach(function(c){var f,h;c[1].Target&&(f=Ar(l,-1,c[1].Target.replace(/#.*$/,""),Vt.HLINK),De(a,494,(h=f,c=be(50+4*((f=c)[1].Target.length+(f[1].Tooltip||"").length)),Vo({s:jr(f[0]),e:jr(f[0])},c),Xl("rId"+h,c),hs(((h=f[1].Target.indexOf("#"))==-1?"":f[1].Target.slice(h+1))||"",c),hs(f[1].Tooltip||"",c),hs("",c),c.slice(0,c.l))))}),delete n["!links"]}function U2(a,n,l){De(a,133),De(a,137,function(c,f){f==null&&(f=be(30));var h=924;return(((c||{}).Views||[])[0]||{}).RTL&&(h|=32),f.write_shift(2,h),f.write_shift(4,0),f.write_shift(4,0),f.write_shift(4,0),f.write_shift(1,0),f.write_shift(1,0),f.write_shift(2,0),f.write_shift(2,100),f.write_shift(2,0),f.write_shift(2,0),f.write_shift(2,0),f.write_shift(4,0),f}(l)),De(a,138),De(a,134)}function z2(a,n){var l,c;n["!protect"]&&De(a,535,(l=n["!protect"],(c=c??be(66)).write_shift(2,l.password?mc(l.password):0),c.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(f){f[1]?c.write_shift(4,l[f[0]]==null||l[f[0]]?0:1):c.write_shift(4,l[f[0]]!=null&&l[f[0]]?0:1)}),c))}function G2(a,n,l,c){var f=Is(),y=l.SheetNames[a],h=l.Sheets[y]||{},d=y;try{l&&l.Workbook&&(d=l.Workbook.Sheets[a].CodeName||d)}catch{}var m,g,y=rr(h["!ref"]||"A1");if(16383<y.e.c||1048575<y.e.r){if(n.WTF)throw new Error("Range "+(h["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");y.e.c=Math.min(y.e.c,16383),y.e.r=Math.min(y.e.c,1048575)}return h["!links"]=[],h["!comments"]=[],De(f,129),(l.vbaraw||h["!outline"])&&De(f,147,function(v,x,C){C==null&&(C=be(84+4*v.length));var F=192;x&&(x.above&&(F&=-65),x.left&&(F&=-129)),C.write_shift(1,F);for(var k=1;k<3;++k)C.write_shift(1,0);return _n({auto:1},C),C.write_shift(-4,-1),C.write_shift(-4,-1),Ou(v,C),C.slice(0,C.l)}(d,h["!outline"])),De(f,148,M2(y)),U2(f,0,l.Workbook),I2(f,h),function(v,x,C){var F,k=rr(x["!ref"]||"A1"),D=[];De(v,145);var P=Array.isArray(x),L=k.e.r;x["!rows"]&&(L=Math.max(k.e.r,x["!rows"].length-1));for(var R=k.s.r;R<=L;++R){F=Kr(R),L2(v,x,k,R);var O=!1;if(R<=k.e.r)for(var I=k.s.c;I<=k.e.c;++I){R===k.s.r&&(D[I]=Vr(I)),V=D[I]+F;var V=P?(x[R]||[])[I]:x[V];V?O=P2(v,V,R,I,C,x,O):O=!1}}De(v,146)}(f,h,n),z2(f,h),function(v,x,C,F){if(x["!autofilter"]){var P=x["!autofilter"],k=typeof P.ref=="string"?P.ref:Pt(P.ref);C.Workbook||(C.Workbook={Sheets:[]}),C.Workbook.Names||(C.Workbook.Names=[]);var D=C.Workbook.Names,P=ks(k);P.s.r==P.e.r&&(P.e.r=ks(x["!ref"]).e.r,k=Pt(P));for(var L=0;L<D.length;++L){var R=D[L];if(R.Name=="_xlnm._FilterDatabase"&&R.Sheet==F){R.Ref="'"+C.SheetNames[F]+"'!"+k;break}}L==D.length&&D.push({Name:"_xlnm._FilterDatabase",Sheet:F,Ref:"'"+C.SheetNames[F]+"'!"+k}),De(v,161,Vo(rr(k))),De(v,162)}}(f,h,l,a),N2(f,h),B2(f,h,c),h["!margins"]&&De(f,476,(m=h["!margins"],g==null&&(g=be(48)),po(m),rp.forEach(function(v){Bo(m[v],g)}),g)),n&&!n.ignoreEC&&n.ignoreEC!=null||V2(f,h),y=f,n=a,c=c,0<(h=h)["!comments"].length&&(n=Ar(c,-1,"../drawings/vmlDrawing"+(n+1)+".vml",Vt.VML),De(y,551,Xl("rId"+n)),h["!legacy"]=n),De(f,130),f.end()}function j2(a,n,l,c,f,h){var d=h||{"!type":"chart"};if(!a)return h;var m,g=0,y=0,v={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(a.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(x){var C=function(F){var k,D=[],P=F.match(/^<c:numCache>/);(F.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/gm)||[]).forEach(function(R){R=R.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/),R&&(D[+R[1]]=P?+R[2]:R[2])});var L=pr((F.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(F.match(/<c:f>(.*?)<\/c:f>/gm)||[]).forEach(function(R){k=R.replace(/<.*?>/g,"")}),[D,L,k]}(x);v.s.r=v.s.c=0,v.e.c=g,m=Vr(g),C[0].forEach(function(F,k){d[m+Kr(k)]={t:"n",v:F,z:C[1]},y=k}),v.e.r<y&&(v.e.r=y),++g}),0<g&&(d["!ref"]=Pt(v)),d}var Ec=[["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"]],W2=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],H2=[],Y2=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function sp(a,n){for(var l=0;l!=a.length;++l)for(var c=a[l],f=0;f!=n.length;++f){var h=n[f];if(c[h[0]]==null)c[h[0]]=h[1];else switch(h[2]){case"bool":typeof c[h[0]]=="string"&&(c[h[0]]=Ir(c[h[0]]));break;case"int":typeof c[h[0]]=="string"&&(c[h[0]]=parseInt(c[h[0]],10))}}}function ap(a,n){for(var l=0;l!=n.length;++l){var c=n[l];if(a[c[0]]==null)a[c[0]]=c[1];else switch(c[2]){case"bool":typeof a[c[0]]=="string"&&(a[c[0]]=Ir(a[c[0]]));break;case"int":typeof a[c[0]]=="string"&&(a[c[0]]=parseInt(a[c[0]],10))}}}function op(a){ap(a.WBProps,Ec),ap(a.CalcPr,Y2),sp(a.WBView,W2),sp(a.Sheets,H2),qo.date1904=Ir(a.WBProps.date1904)}var q2="][*?/\\".split("");function ip(a,n){if(31<a.length){if(n)return;throw new Error("Sheet names cannot exceed 31 chars")}var l=!0;return q2.forEach(function(c){if(a.indexOf(c)!=-1){if(!n)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");l=!1}}),l}function np(a){if(!a||!a.SheetNames||!a.Sheets)throw new Error("Invalid Workbook");if(!a.SheetNames.length)throw new Error("Workbook is empty");var n,l,c,f=a.Workbook&&a.Workbook.Sheets||[];n=a.SheetNames,l=f,c=!!a.vbaraw,n.forEach(function(d,m){ip(d);for(var g=0;g<m;++g)if(d==n[g])throw new Error("Duplicate Sheet Name: "+d);if(c){var y=l&&l[m]&&l[m].CodeName||d;if(y.charCodeAt(0)==95&&22<y.length)throw new Error("Bad Code Name: Worksheet"+y)}});for(var h=0;h<a.SheetNames.length;++h)(function(d,m){if(d&&d["!ref"]){var g=rr(d["!ref"]);if(g.e.c<g.s.c||g.e.r<g.s.r)throw new Error("Bad range ("+m+"): "+d["!ref"])}})(a.Sheets[a.SheetNames[h]],(a.SheetNames[h],h))}var K2=/<\w+:workbook/;function lp(a){var n=[Zr];n[n.length]=je("workbook",null,{xmlns:ro[0],"xmlns:r":ls.r});var l=a.Workbook&&0<(a.Workbook.Names||[]).length,c={codeName:"ThisWorkbook"};a.Workbook&&a.Workbook.WBProps&&(Ec.forEach(function(m){a.Workbook.WBProps[m[0]]!=null&&a.Workbook.WBProps[m[0]]!=m[1]&&(c[m[0]]=a.Workbook.WBProps[m[0]])}),a.Workbook.WBProps.CodeName&&(c.codeName=a.Workbook.WBProps.CodeName,delete c.CodeName)),n[n.length]=je("workbookPr",null,c);var f=a.Workbook&&a.Workbook.Sheets||[],h=0;if(f&&f[0]&&f[0].Hidden){for(n[n.length]="<bookViews>",h=0;h!=a.SheetNames.length&&f[h]&&f[h].Hidden;++h);h==a.SheetNames.length&&(h=0),n[n.length]='<workbookView firstSheet="'+h+'" activeTab="'+h+'"/>',n[n.length]="</bookViews>"}for(n[n.length]="<sheets>",h=0;h!=a.SheetNames.length;++h){var d={name:Dr(a.SheetNames[h].slice(0,31))};if(d.sheetId=""+(h+1),d["r:id"]="rId"+(h+1),f[h])switch(f[h].Hidden){case 1:d.state="hidden";break;case 2:d.state="veryHidden"}n[n.length]=je("sheet",null,d)}return n[n.length]="</sheets>",l&&(n[n.length]="<definedNames>",a.Workbook&&a.Workbook.Names&&a.Workbook.Names.forEach(function(m){var g={name:m.Name};m.Comment&&(g.comment=m.Comment),m.Sheet!=null&&(g.localSheetId=""+m.Sheet),m.Hidden&&(g.hidden="1"),m.Ref&&(n[n.length]=je("definedName",Dr(m.Ref),g))}),n[n.length]="</definedNames>"),2<n.length&&(n[n.length]="</workbook>",n[1]=n[1].replace("/>",">")),n.join("")}function J2(a,n){var l={};return a.read_shift(4),l.ArchID=a.read_shift(4),a.l+=n-8,l}function X2(a,n){De(a,143);for(var l,c=0;c!=n.SheetNames.length;++c){var f={Hidden:n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[c]&&n.Workbook.Sheets[c].Hidden||0,iTabID:c+1,strRelID:"rId"+(c+1),name:n.SheetNames[c]};De(a,156,(l=f,(f=(f=void 0)||be(127)).write_shift(4,l.Hidden),f.write_shift(4,l.iTabID),Xl(l.strRelID,f),hs(l.name.slice(0,31),f),f.length>f.l?f.slice(0,f.l):f))}De(a,144)}function Q2(a,n){if(n.Workbook&&n.Workbook.Sheets){for(var l,c=n.Workbook.Sheets,f=0,h=-1,d=-1;f<c.length;++f)!c[f]||!c[f].Hidden&&h==-1?h=f:c[f].Hidden==1&&d==-1&&(d=f);h<d||(De(a,135),De(a,158,(n=h,(l=l||be(29)).write_shift(-4,0),l.write_shift(-4,460),l.write_shift(4,28800),l.write_shift(4,17600),l.write_shift(4,500),l.write_shift(4,n),l.write_shift(4,n),l.write_shift(1,120),l.length>l.l?l.slice(0,l.l):l)),De(a,136))}}function Z2(a,n){var l=Is();return De(l,131),De(l,128,function(c){c=c||be(127);for(var f=0;f!=4;++f)c.write_shift(4,0);return hs("SheetJS",c),hs(t.version,c),hs(t.version,c),hs("7262",c),c.length>c.l?c.slice(0,c.l):c}()),De(l,153,function(c,f){f=f||be(72);var h=0;return c&&c.filterPrivacy&&(h|=8),f.write_shift(4,h),f.write_shift(4,0),Ou(c&&c.CodeName||"ThisWorkbook",f),f.slice(0,f.l)}(a.Workbook&&a.Workbook.WBProps||null)),Q2(l,a),X2(l,a),De(l,132),l.end()}function $2(a,n,l){return(n.slice(-4)===".bin"?function(c,f){var h={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},d=[],m=!1;(f=f||{}).biff=12;var g=[],y=[[]];return y.SheetNames=[],y.XTI=[],Pi[16]={n:"BrtFRTArchID$",f:J2},Ea(c,function(v,x,C){switch(C){case 156:y.SheetNames.push(v.name),h.Sheets.push(v);break;case 153:h.WBProps=v;break;case 39:v.Sheet!=null&&(f.SID=v.Sheet),v.Ref=Ms(v.Ptg,0,null,y,f),delete f.SID,delete v.Ptg,g.push(v);break;case 1036:break;case 357:case 358:case 355:case 667:y[0].length?y.push([C,v]):y[0]=[C,v],y[y.length-1].XTI=[];break;case 362:y.length===0&&(y[0]=[],y[0].XTI=[]),y[y.length-1].XTI=y[y.length-1].XTI.concat(v),y.XTI=y.XTI.concat(v);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:d.push(C),m=!0;break;case 36:d.pop(),m=!1;break;case 37:d.push(C),m=!0;break;case 38:d.pop(),m=!1;break;case 16:break;default:if(!x.T&&(!m||f.WTF&&d[d.length-1]!=37&&d[d.length-1]!=35))throw new Error("Unexpected record 0x"+C.toString(16))}},f),op(h),h.Names=g,h.supbooks=y,h}:function(c,f){if(!c)throw new Error("Could not find file");var h={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},d=!1,m="xmlns",g={},y=0;if(c.replace(_s,function(v,x){var C=Tt(v);switch(ma(C[0])){case"<?xml":break;case"<workbook":v.match(K2)&&(m="xmlns"+v.match(/<(\w+):/)[1]),h.xmlns=C[m];break;case"</workbook>":break;case"<fileVersion":delete C[0],h.AppVersion=C;break;case"<fileVersion/>":case"</fileVersion>":case"<fileSharing":case"<fileSharing/>":break;case"<workbookPr":case"<workbookPr/>":Ec.forEach(function(F){if(C[F[0]]!=null)switch(F[2]){case"bool":h.WBProps[F[0]]=Ir(C[F[0]]);break;case"int":h.WBProps[F[0]]=parseInt(C[F[0]],10);break;default:h.WBProps[F[0]]=C[F[0]]}}),C.codeName&&(h.WBProps.CodeName=Tr(C.codeName));break;case"</workbookPr>":case"<workbookProtection":case"<workbookProtection/>":break;case"<bookViews":case"<bookViews>":case"</bookViews>":break;case"<workbookView":case"<workbookView/>":delete C[0],h.WBView.push(C);break;case"</workbookView>":break;case"<sheets":case"<sheets>":case"</sheets>":break;case"<sheet":switch(C.state){case"hidden":C.Hidden=1;break;case"veryHidden":C.Hidden=2;break;default:C.Hidden=0}delete C.state,C.name=pr(Tr(C.name)),delete C[0],h.Sheets.push(C);break;case"</sheet>":break;case"<functionGroups":case"<functionGroups/>":case"<functionGroup":break;case"<externalReferences":case"</externalReferences>":case"<externalReferences>":case"<externalReference":case"<definedNames/>":break;case"<definedNames>":case"<definedNames":d=!0;break;case"</definedNames>":d=!1;break;case"<definedName":(g={}).Name=Tr(C.name),C.comment&&(g.Comment=C.comment),C.localSheetId&&(g.Sheet=+C.localSheetId),Ir(C.hidden||"0")&&(g.Hidden=!0),y=x+v.length;break;case"</definedName>":g.Ref=pr(Tr(c.slice(y,x))),h.Names.push(g);break;case"<definedName/>":break;case"<calcPr":case"<calcPr/>":delete C[0],h.CalcPr=C;break;case"</calcPr>":case"<oleSize":break;case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":break;case"<customWorkbookView":case"</customWorkbookView>":break;case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":case"<pivotCache":break;case"<smartTagPr":case"<smartTagPr/>":break;case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":case"<smartTagType":break;case"<webPublishing":case"<webPublishing/>":break;case"<fileRecoveryPr":case"<fileRecoveryPr/>":break;case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":case"<webPublishObject":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":d=!0;break;case"</ext>":d=!1;break;case"<ArchID":break;case"<AlternateContent":case"<AlternateContent>":d=!0;break;case"</AlternateContent>":d=!1;break;case"<revisionPtr":break;default:if(!d&&f.WTF)throw new Error("unrecognized "+C[0]+" in workbook")}return v}),ro.indexOf(h.xmlns)===-1)throw new Error("Unknown Namespace: "+h.xmlns);return op(h),h})(a,l)}function eb(a,n,l,c,f,h,d,m){return(n.slice(-4)===".bin"?function(g,y,v,x,C,F,k){if(!g)return g;var D=y||{};x=x||{"!id":{}};var P,L,R,O,I,V,X,ae,te,ce,_e=D.dense?[]:{},we={s:{r:2e6,c:2e6},e:{r:0,c:0}},de=!1,ke=!1,qe=[];D.biff=12;var He=D["!row"]=0,Ve=!1,ze=[],Ne={},Fe=D.supbooks||C.supbooks||[[]];if(Fe.sharedf=Ne,Fe.arrayf=ze,Fe.SheetNames=C.SheetNames||C.Sheets.map(function(Re){return Re.name}),!D.supbooks&&(D.supbooks=Fe,C.Names))for(var $e=0;$e<C.Names.length;++$e)Fe[0][$e+1]=C.Names[$e];var rt,gt=[],Nt=[],Xe=!1;return Pi[16]={n:"BrtShortReal",f:tp},Ea(g,function(Re,kt,ar){if(!ke)switch(ar){case 148:P=Re;break;case 0:L=Re,D.sheetRows&&D.sheetRows<=L.r&&(ke=!0),te=Kr(I=L.r),D["!row"]=L.r,(Re.hidden||Re.hpt||Re.level!=null)&&(Re.hpt&&(Re.hpx=Wo(Re.hpt)),Nt[Re.r]=Re);break;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 62:switch(R={t:Re[2]},Re[2]){case"n":R.v=Re[1];break;case"s":ae=ki[Re[1]],R.v=ae.t,R.r=ae.r;break;case"b":R.v=!!Re[1];break;case"e":R.v=Re[1],D.cellText!==!1&&(R.w=Ta[R.v]);break;case"str":R.t="s",R.v=Re[1];break;case"is":R.t="s",R.v=Re[1].t}if((O=k.CellXf[Re[0].iStyleRef])&&Hh(R,O.numFmtId,null,D,F,k),V=Re[0].c==-1?V+1:Re[0].c,D.dense?(_e[I]||(_e[I]=[]),_e[I][V]=R):_e[Vr(V)+te]=R,D.cellFormula){for(Ve=!1,He=0;He<ze.length;++He){var Kt=ze[He];L.r>=Kt[0].s.r&&L.r<=Kt[0].e.r&&V>=Kt[0].s.c&&V<=Kt[0].e.c&&(R.F=Pt(Kt[0]),Ve=!0)}!Ve&&3<Re.length&&(R.f=Re[3])}we.s.r>L.r&&(we.s.r=L.r),we.s.c>V&&(we.s.c=V),we.e.r<L.r&&(we.e.r=L.r),we.e.c<V&&(we.e.c=V),D.cellDates&&O&&R.t=="n"&&eo(oe[O.numFmtId])&&(vr=Ie(R.v))&&(R.t="d",R.v=new Date(vr.y,vr.m-1,vr.d,vr.H,vr.M,vr.S,vr.u)),rt&&(rt.type=="XLDAPR"&&(R.D=!0),rt=void 0);break;case 1:case 12:if(!D.sheetStubs||de)break;R={t:"z",v:void 0},V=Re[0].c==-1?V+1:Re[0].c,D.dense?(_e[I]||(_e[I]=[]),_e[I][V]=R):_e[Vr(V)+te]=R,we.s.r>L.r&&(we.s.r=L.r),we.s.c>V&&(we.s.c=V),we.e.r<L.r&&(we.e.r=L.r),we.e.c<V&&(we.e.c=V),rt&&(rt.type=="XLDAPR"&&(R.D=!0),rt=void 0);break;case 176:qe.push(Re);break;case 49:rt=((D.xlmeta||{}).Cell||[])[Re-1];break;case 494:var vr=x["!id"][Re.relId];for(vr?(Re.Target=vr.Target,Re.loc&&(Re.Target+="#"+Re.loc),Re.Rel=vr):Re.relId==""&&(Re.Target="#"+Re.loc),I=Re.rfx.s.r;I<=Re.rfx.e.r;++I)for(V=Re.rfx.s.c;V<=Re.rfx.e.c;++V)D.dense?(_e[I]||(_e[I]=[]),_e[I][V]||(_e[I][V]={t:"z",v:void 0}),_e[I][V].l=Re):(X=Rt({c:V,r:I}),_e[X]||(_e[X]={t:"z",v:void 0}),_e[X].l=Re);break;case 426:if(!D.cellFormula)break;ze.push(Re),(ce=D.dense?_e[I][V]:_e[Vr(V)+te]).f=Ms(Re[1],0,{r:L.r,c:V},Fe,D),ce.F=Pt(Re[0]);break;case 427:if(!D.cellFormula)break;Ne[Rt(Re[0].s)]=Re[1],(ce=D.dense?_e[I][V]:_e[Vr(V)+te]).f=Ms(Re[1],0,{r:L.r,c:V},Fe,D);break;case 60:if(!D.cellStyles)break;for(;Re.e>=Re.s;)gt[Re.e--]={width:Re.w/256,hidden:!!(1&Re.flags),level:Re.level},Xe||(Xe=!0,yc(Re.w/256)),za(gt[Re.e+1]);break;case 161:_e["!autofilter"]={ref:Pt(Re)};break;case 476:_e["!margins"]=Re;break;case 147:C.Sheets[v]||(C.Sheets[v]={}),Re.name&&(C.Sheets[v].CodeName=Re.name),(Re.above||Re.left)&&(_e["!outline"]={above:Re.above,left:Re.left});break;case 137:C.Views||(C.Views=[{}]),C.Views[0]||(C.Views[0]={}),Re.RTL&&(C.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:de=!0;break;case 36:de=!1;break;case 37:de=!0;break;case 38:de=!1;break;default:if(!kt.T&&(!de||D.WTF))throw new Error("Unexpected record 0x"+ar.toString(16))}},D),delete D.supbooks,delete D["!row"],!_e["!ref"]&&(we.s.r<2e6||P&&(0<P.e.r||0<P.e.c||0<P.s.r||0<P.s.c))&&(_e["!ref"]=Pt(P||we)),D.sheetRows&&_e["!ref"]&&(g=rr(_e["!ref"]),D.sheetRows<=+g.e.r&&(g.e.r=D.sheetRows-1,g.e.r>we.e.r&&(g.e.r=we.e.r),g.e.r<g.s.r&&(g.s.r=g.e.r),g.e.c>we.e.c&&(g.e.c=we.e.c),g.e.c<g.s.c&&(g.s.c=g.e.c),_e["!fullref"]=_e["!ref"],_e["!ref"]=Pt(g))),0<qe.length&&(_e["!merges"]=qe),0<gt.length&&(_e["!cols"]=gt),0<Nt.length&&(_e["!rows"]=Nt),_e}:A2)(a,c,l,f,h,d,m)}function tb(a,n,l,c,f,h){return n.slice(-4)===".bin"?function(d,m,g,y,v){if(!d)return d;y=y||{"!id":{}};var x={"!type":"chart","!drawel":null,"!rel":""},C=!1;return Ea(d,function(F,k,D){switch(D){case 550:x["!rel"]=F;break;case 651:v.Sheets[g]||(v.Sheets[g]={}),F.name&&(v.Sheets[g].CodeName=F.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:C=!0;break;case 36:C=!1;break;case 37:break;case 38:break;default:if(!(0<k.T)){if(!(k.T<0)){if(!C||m.WTF)throw new Error("Unexpected record 0x"+D.toString(16))}}}},m),y["!id"][x["!rel"]]&&(x["!drawel"]=y["!id"][x["!rel"]]),x}(a,c,l,f,h):function(d,m,g,y){if(!d)return d;g=g||{"!id":{}};var v={"!type":"chart","!drawel":null,"!rel":""},x=d.match(Yh);return x&&Sc(x[0],0,y,m),(d=d.match(/drawing r:id="(.*?)"/))&&(v["!rel"]=d[1]),g["!id"][v["!rel"]]&&(v["!drawel"]=g["!id"][v["!rel"]]),v}(a,l,f,h)}function rb(a,n,l,c){return(n.slice(-4)===".bin"?function(f,h,d){var m,g={NumberFmt:[]};for(m in oe)g.NumberFmt[m]=oe[m];g.CellXf=[],g.Fonts=[];var y=[],v=!1;return Ea(f,function(x,C,F){switch(F){case 44:g.NumberFmt[x[0]]=x[1],pa(x[1],x[0]);break;case 43:g.Fonts.push(x),x.color.theme!=null&&h&&h.themeElements&&h.themeElements.clrScheme&&(x.color.rgb=On(h.themeElements.clrScheme[x.color.theme].rgb,x.color.tint||0));break;case 1025:case 45:case 46:break;case 47:y[y.length-1]==617&&g.CellXf.push(x);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:v=!0;break;case 36:v=!1;break;case 37:y.push(F),v=!0;break;case 38:y.pop(),v=!1;break;default:if(0<C.T)y.push(F);else if(C.T<0)y.pop();else if(!v||d.WTF&&y[y.length-1]!=37)throw new Error("Unexpected record 0x"+F.toString(16))}}),g}:P1)(a,l,c)}function sb(a,n,l){return n.slice(-4)===".bin"?(c=l,h=!(f=[]),Ea(a,function(d,m,g){switch(g){case 159:f.Count=d[0],f.Unique=d[1];break;case 19:f.push(d);break;case 160:return 1;case 35:h=!0;break;case 36:h=!1;break;default:if(m.T,!h||c.WTF)throw new Error("Unexpected record 0x"+g.toString(16))}}),f):function(d,m){var g=[],y="";if(!d)return g;if(d=d.match(w1)){y=d[2].replace(x1,"").split(C1);for(var v=0;v!=y.length;++v){var x=pc(y[v].trim(),m);x!=null&&(g[g.length]=x)}d=Tt(d[1]),g.Count=d.count,g.Unique=d.uniqueCount}return g}(a,l);var c,f,h}function ab(a,n,l){return n.slice(-4)===".bin"?(c=l,f=[],h=[],m=!(d={}),Ea(a,function(g,y,v){switch(v){case 632:h.push(g);break;case 635:d=g;break;case 637:d.t=g.t,d.h=g.h,d.r=g.r;break;case 636:if(d.author=h[d.iauthor],delete d.iauthor,c.sheetRows&&d.rfx&&c.sheetRows<=d.rfx.r)break;d.t||(d.t=""),delete d.rfx,f.push(d);break;case 3072:break;case 35:m=!0;break;case 36:m=!1;break;case 37:case 38:break;default:if(!y.T&&(!m||c.WTF))throw new Error("Unexpected record 0x"+v.toString(16))}}),f):function(g,y){if(g.match(/<(?:\w+:)?comments *\/>/))return[];var v=[],x=[],C=g.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);return C&&C[1]&&C[1].split(/<\/\w*:?author>/).forEach(function(F){F===""||F.trim()===""||(F=F.match(/<(?:\w+:)?author[^>]*>(.*)/))&&v.push(F[1])}),(g=g.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/))&&g[1]&&g[1].split(/<\/\w*:?comment>/).forEach(function(F){var k,D;F===""||F.trim()===""||(k=F.match(/<(?:\w+:)?comment[^>]*>/))&&(k={author:(D=Tt(k[0])).authorId&&v[D.authorId]||"sheetjsghost",ref:D.ref,guid:D.guid},D=jr(D.ref),y.sheetRows&&y.sheetRows<=D.r||(F=!!(F=F.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/))&&!!F[1]&&pc(F[1])||{r:"",t:"",h:""},k.r=F.r,F.r=="<t></t>"&&(F.t=F.h=""),k.t=(F.t||"").replace(/\r\n/g,` `).replace(/\r/g,` `),y.cellHTML&&(k.h=F.h),x.push(k)))}),x}(a,l);var c,f,h,d,m}function ob(a,n){return n.slice(-4)===".bin"?(l=[],Ea(a,function(c,f,h){if(h===63)l.push(c);else if(!f.T)throw new Error("Unexpected record 0x"+h.toString(16))}),l):function(c){var f=[];if(!c)return f;var h=1;return(c.match(_s)||[]).forEach(function(d){var m=Tt(d);switch(m[0]){case"<?xml":break;case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete m[0],m.i?h=m.i:m.i=h,f.push(m)}}),f}(a);var l}function ib(a,n,l,c){if(l.slice(-4)===".bin")return function(f,h){if(!f)return f;var d=h||{},m=!1;Ea(f,function(g,y,v){switch(v){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:m=!0;break;case 36:m=!1;break;default:if(!y.T&&(!m||d.WTF))throw new Error("Unexpected record 0x"+v.toString(16))}},d)}(a,c)}function nb(a,n,l){return n.slice(-4)===".bin"?(c={Types:[],Cell:[],Value:[]},f=l||{},d=!(h=[]),m=2,Ea(a,function(g,y,v){switch(v){case 335:c.Types.push({name:g.name});break;case 51:g.forEach(function(x){m==1?c.Cell.push({type:c.Types[x[0]-1].name,index:x[1]}):m==0&&c.Value.push({type:c.Types[x[0]-1].name,index:x[1]})});break;case 337:m=g?1:0;break;case 338:m=2;break;case 35:h.push(v),d=!0;break;case 36:h.pop(),d=!1;break;default:if(!y.T&&(!d||f.WTF&&h[h.length-1]!=35))throw new Error("Unexpected record 0x"+v.toString(16))}}),c):function(g,y){var v={Types:[],Cell:[],Value:[]};if(!g)return v;var x,C=!1,F=2;return g.replace(_s,function(k){var D=Tt(k);switch(ma(D[0])){case"<?xml":break;case"<metadata":case"</metadata>":break;case"<metadataTypes":case"</metadataTypes>":break;case"<metadataType":v.Types.push({name:D.name});break;case"</metadataType>":break;case"<futureMetadata":for(var P=0;P<v.Types.length;++P)v.Types[P].name==D.name&&(x=v.Types[P]);break;case"</futureMetadata>":case"<bk>":case"</bk>":break;case"<rc":F==1?v.Cell.push({type:v.Types[D.t-1].name,index:+D.v}):F==0&&v.Value.push({type:v.Types[D.t-1].name,index:+D.v});break;case"</rc>":break;case"<cellMetadata":F=1;break;case"</cellMetadata>":F=2;break;case"<valueMetadata":F=0;break;case"</valueMetadata>":F=2;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":C=!0;break;case"</ext>":C=!1;break;case"<rvb":if(!x)break;x.offsets||(x.offsets=[]),x.offsets.push(+D.i);break;default:if(!C&&y.WTF)throw new Error("unrecognized "+D[0]+" in metadata")}return k}),v}(a,l);var c,f,h,d,m}var Mi,cp=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,fp=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function la(a,n){var l=a.split(/\s+/),c=[];if(n||(c[0]=l[0]),l.length===1)return c;var f,h,d,m=a.match(cp);if(m)for(d=0;d!=m.length;++d)(h=(f=m[d].match(fp))[1].indexOf(":"))===-1?c[f[1]]=f[2].slice(1,f[2].length-1):c[f[1].slice(0,6)==="xmlns:"?"xmlns"+f[1].slice(6):f[1].slice(h+1)]=f[2].slice(1,f[2].length-1);return c}function lb(a,n,l){if(a.t!=="z"){if(!l||l.cellText!==!1)try{a.t==="e"?a.w=a.w||Ta[a.v]:n==="General"?a.t==="n"?(0|a.v)===a.v?a.w=a.v.toString(10):a.w=Ns(a.v):a.w=kr(a.v):a.w=(c=n||"General",f=a.v,(c=Mi[c]||pr(c))==="General"?kr(f):Us(c,f))}catch(d){if(l.WTF)throw d}var c,f;try{var h=Mi[n]||n||"General";l.cellNF&&(a.z=h),l.cellDates&&a.t=="n"&&eo(h)&&(h=Ie(a.v))&&(a.t="d",a.v=new Date(h.y,h.m-1,h.d,h.H,h.M,h.S,h.u))}catch(d){if(l.WTF)throw d}}}function Tc(a,n){var l=n||{};Mo();var c,f=N(Il(a)),h=(f=l.type=="binary"||l.type=="array"||l.type=="base64"?e!==void 0?e.utils.decode(65001,E(f)):Tr(f):f).slice(0,1024).toLowerCase(),d=!1;if((1023&(h=h.replace(/".*?"/g,"")).indexOf(">"))>Math.min(1023&h.indexOf(","),1023&h.indexOf(";"))){var m=Lr(l);return m.type="string",zo.to_workbook(f,m)}if(h.indexOf("<?xml")==-1&&["html","table","head","meta","script","style","div"].forEach(function(K){0<=h.indexOf("<"+K)&&(d=!0)}),d)return function(K,Ee){if(K=K.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi),!K||K.length==0)throw new Error("Invalid HTML: could not find <table>");if(K.length==1)return Ba(hp(K[0],Ee),Ee);var ue=jc();return K.forEach(function(ge,le){Wc(ue,hp(ge,Ee),"Sheet"+(le+1))}),ue}(f,l);Mi={"General Number":"General","General Date":oe[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":oe[15],"Short Date":oe[14],"Long Time":oe[19],"Medium Time":oe[18],"Short Time":oe[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:oe[2],Standard:oe[4],Percent:oe[10],Scientific:oe[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var g,y=[],v,x={},C=[],F=l.dense?[]:{},k="",D={},P={},L=la('<Data ss:Type="String">'),R=0,O=0,I=0,V={s:{r:2e6,c:2e6},e:{r:0,c:0}},X={},ae={},te="",ce=0,_e=[],we={},de={},ke=0,qe=[],He=[],Ve={},ze=[],Ne=!1,Fe=[],$e=[],rt={},gt=0,Nt=0,Xe={Sheets:[],WBProps:{date1904:!1}},Re={};di.lastIndex=0,f=f.replace(/<!--([\s\S]*?)-->/gm,"");for(var kt,ar,Kt,vr,Jr="";c=di.exec(f);)switch(c[3]=(Jr=c[3]).toLowerCase()){case"data":if(Jr=="data"){if(c[1]==="/"){if((g=y.pop())[0]!==c[3])throw new Error("Bad state: "+g.join("|"))}else c[0].charAt(c[0].length-2)!=="/"&&y.push([c[3],!0]);break}if(y[y.length-1][1])break;c[1]==="/"?function(K,Ee,ue,ge,le,ye,Oe,lt,Ze,Ye){var at="General",dt=ge.StyleID,ht={};Ye=Ye||{};var Ge=[],Pe=0;for((dt=dt===void 0&<?lt.StyleID:dt)===void 0&&Oe&&(dt=Oe.StyleID);ye[dt]!==void 0&&(ye[dt].nf&&(at=ye[dt].nf),ye[dt].Interior&&Ge.push(ye[dt].Interior),ye[dt].Parent);)dt=ye[dt].Parent;switch(ue.Type){case"Boolean":ge.t="b",ge.v=Ir(K);break;case"String":ge.t="s",ge.r=hu(pr(K)),ge.v=-1<K.indexOf("<")?pr(Ee||K).replace(/<.*?>/g,""):ge.r;break;case"DateTime":K.slice(-1)!="Z"&&(K+="Z"),ge.v=(Nr(K)-new Date(Date.UTC(1899,11,30)))/864e5,ge.v!=ge.v?ge.v=pr(K):ge.v<60&&(ge.v=ge.v-1),at&&at!="General"||(at="yyyy-mm-dd");case"Number":ge.v===void 0&&(ge.v=+K),ge.t||(ge.t="n");break;case"Error":ge.t="e",ge.v=zu[K],Ye.cellText!==!1&&(ge.w=K);break;default:K==""&&Ee==""?ge.t="z":(ge.t="s",ge.v=hu(Ee||K))}if(lb(ge,at,Ye),Ye.cellFormula!==!1)if(ge.Formula)ue=pr(ge.Formula),ue.charCodeAt(0)==61&&(ue=ue.slice(1)),ge.f=Yo(ue,le),delete ge.Formula,ge.ArrayRange=="RC"?ge.F=Yo("RC:RC",le):ge.ArrayRange&&(ge.F=Yo(ge.ArrayRange,le),Ze.push([rr(ge.F),ge.F]));else for(Pe=0;Pe<Ze.length;++Pe)le.r>=Ze[Pe][0].s.r&&le.r<=Ze[Pe][0].e.r&&le.c>=Ze[Pe][0].s.c&&le.c<=Ze[Pe][0].e.c&&(ge.F=Ze[Pe][1]);Ye.cellStyles&&(Ge.forEach(function(pt){!ht.patternType&&pt.patternType&&(ht.patternType=pt.patternType)}),ge.s=ht),ge.StyleID!==void 0&&(ge.ixfe=ge.StyleID)}(f.slice(R,c.index),te,L,y[y.length-1][0]=="comment"?Ve:D,{c:O,r:I},X,ze[O],P,Fe,l):(te="",L=la(c[0]),R=c.index+c[0].length);break;case"cell":if(c[1]==="/")if(0<He.length&&(D.c=He),(!l.sheetRows||l.sheetRows>I)&&D.v!==void 0&&(l.dense?(F[I]||(F[I]=[]),F[I][O]=D):F[Vr(O)+Kr(I)]=D),D.HRef&&(D.l={Target:pr(D.HRef)},D.HRefScreenTip&&(D.l.Tooltip=D.HRefScreenTip),delete D.HRef,delete D.HRefScreenTip),(D.MergeAcross||D.MergeDown)&&(gt=O+(0|parseInt(D.MergeAcross,10)),Nt=I+(0|parseInt(D.MergeDown,10)),_e.push({s:{c:O,r:I},e:{c:gt,r:Nt}})),l.sheetStubs)if(D.MergeAcross||D.MergeDown){for(var Z=O;Z<=gt;++Z)for(var wr=I;wr<=Nt;++wr)(O<Z||I<wr)&&(l.dense?(F[wr]||(F[wr]=[]),F[wr][Z]={t:"z"}):F[Vr(Z)+Kr(wr)]={t:"z"});O=gt+1}else++O;else D.MergeAcross?O=gt+1:++O;else(O=(D=function(K){var Ee={};if(K.split(/\s+/).length===1)return Ee;var ue,ge,le,ye=K.match(cp);if(ye)for(le=0;le!=ye.length;++le)(ge=(ue=ye[le].match(fp))[1].indexOf(":"))===-1?Ee[ue[1]]=ue[2].slice(1,ue[2].length-1):Ee[ue[1].slice(0,6)==="xmlns:"?"xmlns"+ue[1].slice(6):ue[1].slice(ge+1)]=ue[2].slice(1,ue[2].length-1);return Ee}(c[0])).Index?+D.Index-1:O)<V.s.c&&(V.s.c=O),O>V.e.c&&(V.e.c=O),c[0].slice(-2)==="/>"&&++O,He=[];break;case"row":c[1]==="/"||c[0].slice(-2)==="/>"?(I<V.s.r&&(V.s.r=I),I>V.e.r&&(V.e.r=I),c[0].slice(-2)==="/>"&&(P=la(c[0])).Index&&(I=+P.Index-1),O=0,++I):((P=la(c[0])).Index&&(I=+P.Index-1),rt={},P.AutoFitHeight!="0"&&!P.Height||(rt.hpx=parseInt(P.Height,10),rt.hpt=Di(rt.hpx),$e[I]=rt),P.Hidden=="1"&&(rt.hidden=!0,$e[I]=rt));break;case"worksheet":if(c[1]==="/"){if((g=y.pop())[0]!==c[3])throw new Error("Bad state: "+g.join("|"));C.push(k),V.s.r<=V.e.r&&V.s.c<=V.e.c&&(F["!ref"]=Pt(V),l.sheetRows&&l.sheetRows<=V.e.r&&(F["!fullref"]=F["!ref"],V.e.r=l.sheetRows-1,F["!ref"]=Pt(V))),_e.length&&(F["!merges"]=_e),0<ze.length&&(F["!cols"]=ze),0<$e.length&&(F["!rows"]=$e),x[k]=F}else V={s:{r:2e6,c:2e6},e:{r:0,c:0}},I=O=0,y.push([c[3],!1]),g=la(c[0]),k=pr(g.Name),F=l.dense?[]:{},_e=[],Fe=[],$e=[],Re={name:k,Hidden:0},Xe.Sheets.push(Re);break;case"table":if(c[1]==="/"){if((g=y.pop())[0]!==c[3])throw new Error("Bad state: "+g.join("|"))}else{if(c[0].slice(-2)=="/>")break;y.push([c[3],!1]),Ne=!(ze=[])}break;case"style":c[1]==="/"?(ar=X,Kt=ae,(vr=l).cellStyles&&(!Kt.Interior||(vr=Kt.Interior).Pattern&&(vr.patternType=O1[vr.Pattern]||vr.Pattern)),ar[Kt.ID]=Kt):ae=la(c[0]);break;case"numberformat":ae.nf=pr(la(c[0]).Format||"General"),Mi[ae.nf]&&(ae.nf=Mi[ae.nf]);for(var _r=0;_r!=392&&oe[_r]!=ae.nf;++_r);if(_r==392){for(_r=57;_r!=392;++_r)if(oe[_r]==null){pa(ae.nf,_r);break}}break;case"column":if(y[y.length-1][0]!=="table")break;if((v=la(c[0])).Hidden&&(v.hidden=!0,delete v.Hidden),v.Width&&(v.wpx=parseInt(v.Width,10)),!Ne&&10<v.wpx){Ne=!0,Fs=ph;for(var cs=0;cs<ze.length;++cs)ze[cs]&&za(ze[cs])}Ne&&za(v),ze[v.Index-1||ze.length]=v;for(var $s=0;$s<+v.Span;++$s)ze[ze.length]=Lr(v);break;case"namedrange":if(c[1]==="/")break;Xe.Names||(Xe.Names=[]);var z=Tt(c[0]),he={Name:z.Name,Ref:Yo(z.RefersTo.slice(1),{r:0,c:0})};0<Xe.Sheets.length&&(he.Sheet=Xe.Sheets.length-1),Xe.Names.push(he);break;case"namedcell":case"b":case"i":case"u":case"s":case"em":case"h2":case"h3":case"sub":case"sup":case"span":case"alignment":case"borders":case"border":break;case"font":if(c[0].slice(-2)==="/>")break;c[1]==="/"?te+=f.slice(ce,c.index):ce=c.index+c[0].length;break;case"interior":if(!l.cellStyles)break;ae.Interior=la(c[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if(c[0].slice(-2)==="/>")break;c[1]==="/"?(Kt=we,z=Jr,he=f.slice(ke,c.index),Kt[z=(Qu=Qu||ln(ac))[z]||z]=he):ke=c.index+c[0].length;break;case"paragraphs":break;case"styles":case"workbook":if(c[1]==="/"){if((g=y.pop())[0]!==c[3])throw new Error("Bad state: "+g.join("|"))}else y.push([c[3],!1]);break;case"comment":if(c[1]==="/"){if((g=y.pop())[0]!==c[3])throw new Error("Bad state: "+g.join("|"));(kt=Ve).t=kt.v||"",kt.t=kt.t.replace(/\r\n/g,` `).replace(/\r/g,` `),kt.v=kt.w=kt.ixfe=void 0,He.push(Ve)}else y.push([c[3],!1]),Ve={a:(g=la(c[0])).Author};break;case"autofilter":if(c[1]==="/"){if((g=y.pop())[0]!==c[3])throw new Error("Bad state: "+g.join("|"))}else c[0].charAt(c[0].length-2)!=="/"&&(kt=la(c[0]),F["!autofilter"]={ref:Yo(kt.Range).replace(/\$/g,"")},y.push([c[3],!0]));break;case"name":break;case"datavalidation":if(c[1]==="/"){if((g=y.pop())[0]!==c[3])throw new Error("Bad state: "+g.join("|"))}else c[0].charAt(c[0].length-2)!=="/"&&y.push([c[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if(c[1]==="/"){if((g=y.pop())[0]!==c[3])throw new Error("Bad state: "+g.join("|"))}else c[0].charAt(c[0].length-2)!=="/"&&y.push([c[3],!0]);break;case"null":break;default:if(y.length==0&&c[3]=="document"||y.length==0&&c[3]=="uof")return Dp(f,l);var J=!0;switch(y[y.length-1][0]){case"officedocumentsettings":switch(c[3]){case"allowpng":case"removepersonalinformation":case"downloadcomponents":case"locationofcomponents":case"colors":case"color":case"index":case"rgb":case"targetscreensize":case"readonlyrecommended":break;default:J=!1}break;case"componentoptions":switch(c[3]){case"toolbar":case"hideofficelogo":case"spreadsheetautofit":case"label":case"caption":case"maxheight":case"maxwidth":case"nextsheetnumber":break;default:J=!1}break;case"excelworkbook":switch(c[3]){case"date1904":Xe.WBProps.date1904=!0;break;case"windowheight":case"windowwidth":case"windowtopx":case"windowtopy":case"tabratio":case"protectstructure":case"protectwindow":case"protectwindows":case"activesheet":case"displayinknotes":case"firstvisiblesheet":case"supbook":case"sheetname":case"sheetindex":case"sheetindexfirst":case"sheetindexlast":case"dll":case"acceptlabelsinformulas":case"donotsavelinkvalues":case"iteration":case"maxiterations":case"maxchange":case"path":case"xct":case"count":case"selectedsheets":case"calculation":case"uncalced":case"startupprompt":case"crn":case"externname":case"formula":case"colfirst":case"collast":case"wantadvise":case"boolean":case"error":case"text":case"ole":case"noautorecover":case"publishobjects":case"donotcalculatebeforesave":case"number":case"refmoder1c1":case"embedsavesmarttags":break;default:J=!1}break;case"workbookoptions":switch(c[3]){case"owcversion":case"height":case"width":break;default:J=!1}break;case"worksheetoptions":switch(c[3]){case"visible":if(c[0].slice(-2)!=="/>")if(c[1]==="/")switch(f.slice(ke,c.index)){case"SheetHidden":Re.Hidden=1;break;case"SheetVeryHidden":Re.Hidden=2}else ke=c.index+c[0].length;break;case"header":F["!margins"]||po(F["!margins"]={},"xlml"),isNaN(+Tt(c[0]).Margin)||(F["!margins"].header=+Tt(c[0]).Margin);break;case"footer":F["!margins"]||po(F["!margins"]={},"xlml"),isNaN(+Tt(c[0]).Margin)||(F["!margins"].footer=+Tt(c[0]).Margin);break;case"pagemargins":var fe=Tt(c[0]);F["!margins"]||po(F["!margins"]={},"xlml"),isNaN(+fe.Top)||(F["!margins"].top=+fe.Top),isNaN(+fe.Left)||(F["!margins"].left=+fe.Left),isNaN(+fe.Right)||(F["!margins"].right=+fe.Right),isNaN(+fe.Bottom)||(F["!margins"].bottom=+fe.Bottom);break;case"displayrighttoleft":Xe.Views||(Xe.Views=[]),Xe.Views[0]||(Xe.Views[0]={}),Xe.Views[0].RTL=!0;break;case"freezepanes":case"frozennosplit":break;case"splithorizontal":case"splitvertical":case"donotdisplaygridlines":case"activerow":case"activecol":case"toprowbottompane":case"leftcolumnrightpane":case"unsynced":case"print":case"printerrors":case"panes":case"scale":case"pane":case"number":case"layout":case"pagesetup":case"selected":case"protectobjects":case"enableselection":case"protectscenarios":case"validprinterinfo":case"horizontalresolution":case"verticalresolution":case"numberofcopies":case"activepane":case"toprowvisible":case"leftcolumnvisible":case"fittopage":case"rangeselection":case"papersizeindex":case"pagelayoutzoom":case"pagebreakzoom":case"filteron":case"fitwidth":case"fitheight":case"commentslayout":case"zoom":case"lefttoright":case"gridlines":case"allowsort":case"allowfilter":case"allowinsertrows":case"allowdeleterows":case"allowinsertcols":case"allowdeletecols":case"allowinserthyperlinks":case"allowformatcells":case"allowsizecols":case"allowsizerows":break;case"nosummaryrowsbelowdetail":F["!outline"]||(F["!outline"]={}),F["!outline"].above=!0;break;case"tabcolorindex":case"donotdisplayheadings":case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":F["!outline"]||(F["!outline"]={}),F["!outline"].left=!0;break;case"blackandwhite":case"donotdisplayzeros":case"displaypagebreak":case"rowcolheadings":case"donotdisplayoutline":case"noorientation":case"allowusepivottables":case"zeroheight":case"viewablerange":case"selection":case"protectcontents":break;default:J=!1}break;case"pivottable":case"pivotcache":switch(c[3]){case"immediateitemsondrop":case"showpagemultipleitemlabel":case"compactrowindent":case"location":case"pivotfield":case"orientation":case"layoutform":case"layoutsubtotallocation":case"layoutcompactrow":case"position":case"pivotitem":case"datatype":case"datafield":case"sourcename":case"parentfield":case"ptlineitems":case"ptlineitem":case"countofsameitems":case"item":case"itemtype":case"ptsource":case"cacheindex":case"consolidationreference":case"filename":case"reference":case"nocolumngrand":case"norowgrand":case"blanklineafteritems":case"hidden":case"subtotal":case"basefield":case"mapchilditems":case"function":case"refreshonfileopen":case"printsettitles":case"mergelabels":case"defaultversion":case"refreshname":case"refreshdate":case"refreshdatecopy":case"versionlastrefresh":case"versionlastupdate":case"versionupdateablemin":case"versionrefreshablemin":case"calculation":break;default:J=!1}break;case"pagebreaks":switch(c[3]){case"colbreaks":case"colbreak":case"rowbreaks":case"rowbreak":case"colstart":case"colend":case"rowend":break;default:J=!1}break;case"autofilter":switch(c[3]){case"autofiltercolumn":case"autofiltercondition":case"autofilterand":case"autofilteror":break;default:J=!1}break;case"querytable":switch(c[3]){case"id":case"autoformatfont":case"autoformatpattern":case"querysource":case"querytype":case"enableredirections":case"refreshedinxl9":case"urlstring":case"htmltables":case"connection":case"commandtext":case"refreshinfo":case"notitles":case"nextid":case"columninfo":case"overwritecells":case"donotpromptforfile":case"textwizardsettings":case"source":case"number":case"decimal":case"thousandseparator":case"trailingminusnumbers":case"formatsettings":case"fieldtype":case"delimiters":case"tab":case"comma":case"autoformatname":case"versionlastedit":case"versionlastrefresh":break;default:J=!1}break;case"datavalidation":switch(c[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":case"cellrangelist":break;default:J=!1}break;case"sorting":case"conditionalformatting":switch(c[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"cellrangelist":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":break;default:J=!1}break;case"mapinfo":case"schema":case"data":switch(c[3]){case"map":case"entry":case"range":case"xpath":case"field":case"xsdtype":case"filteron":case"aggregate":case"elementtype":case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":case"row":break;default:J=!1}break;case"smarttags":break;default:J=!1}if(J||c[3].match(/!\[CDATA/))break;if(!y[y.length-1][1])throw"Unrecognized tag: "+c[3]+"|"+y.join("|");if(y[y.length-1][0]==="customdocumentproperties"){if(c[0].slice(-2)==="/>")break;c[1]==="/"?function(K,Ee,ue,ge){var le=ge;switch((ue[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":le=Ir(ge);break;case"i2":case"int":le=parseInt(ge,10);break;case"r4":case"float":le=parseFloat(ge);break;case"date":case"dateTime.tz":le=Nr(ge);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+ue[0])}K[pr(Ee)]=le}(de,Jr,qe,f.slice(ke,c.index)):ke=(qe=c).index+c[0].length;break}if(l.WTF)throw"Unrecognized tag: "+c[3]+"|"+y.join("|")}return m={},l.bookSheets||l.bookProps||(m.Sheets=x),m.SheetNames=C,m.Workbook=Xe,m.SSF=Lr(oe),m.Props=we,m.Custprops=de,m}function Rc(a,n){switch(Nc(n=n||{}),n.type||"base64"){case"base64":return Tc(j(a),n);case"binary":case"buffer":case"file":return Tc(a,n);case"array":return Tc(ft(a),n)}}function cb(a,n){var l,c,f,h,d,m,g,y=[];return a.Props&&y.push((l=a.Props,c=n,f=[],Yr(ac).map(function(v){for(var x=0;x<Ks.length;++x)if(Ks[x][1]==v)return Ks[x];for(x=0;x<lo.length;++x)if(lo[x][1]==v)return lo[x];throw v}).forEach(function(v){var x;l[v[1]]!=null&&(x=(c&&c.Props&&c.Props[v[1]]!=null?c.Props:l)[v[1]],typeof(x=v[2]==="date"?new Date(x).toISOString().replace(/\.\d*Z/,"Z"):x)=="number"?x=String(x):x===!0||x===!1?x=x?"1":"0":x instanceof Date&&(x=new Date(x).toISOString().replace(/\.\d*Z/,"")),f.push(ms(ac[v[1]]||v[1],x)))}),je("DocumentProperties",f.join(""),{xmlns:Gs.o}))),a.Custprops&&y.push((h=a.Props,d=a.Custprops,m=["Worksheets","SheetNames"],a="CustomDocumentProperties",g=[],h&&Yr(h).forEach(function(v){if(Object.prototype.hasOwnProperty.call(h,v)){for(var x=0;x<Ks.length;++x)if(v==Ks[x][1])return;for(x=0;x<lo.length;++x)if(v==lo[x][1])return;for(x=0;x<m.length;++x)if(v==m[x])return;var C="string",F=typeof(F=h[v])=="number"?(C="float",String(F)):F===!0||F===!1?(C="boolean",F?"1":"0"):String(F);g.push(je(fu(v),F,{"dt:dt":C}))}}),d&&Yr(d).forEach(function(v){var x,C;Object.prototype.hasOwnProperty.call(d,v)&&(h&&Object.prototype.hasOwnProperty.call(h,v)||(x="string",C=typeof(C=d[v])=="number"?(x="float",String(C)):C===!0||C===!1?(x="boolean",C?"1":"0"):C instanceof Date?(x="dateTime.tz",C.toISOString()):String(C),g.push(je(fu(v),C,{"dt:dt":x}))))}),"<"+a+' xmlns="'+Gs.o+'">'+g.join("")+"</"+a+">")),y.join("")}function up(a){return je("NamedRange",null,{"ss:Name":a.Name,"ss:RefersTo":"="+xc(a.Ref,{r:0,c:0})})}function fb(a,n,l,c,f,h,d){if(!a||a.v==null&&a.f==null)return"";var m={};if(a.f&&(m["ss:Formula"]="="+Dr(xc(a.f,d))),a.F&&a.F.slice(0,n.length)==n&&(n=jr(a.F.slice(n.length+1)),m["ss:ArrayRange"]="RC:R"+(n.r==d.r?"":"["+(n.r-d.r)+"]")+"C"+(n.c==d.c?"":"["+(n.c-d.c)+"]")),a.l&&a.l.Target&&(m["ss:HRef"]=Dr(a.l.Target),a.l.Tooltip&&(m["x:HRefScreenTip"]=Dr(a.l.Tooltip))),l["!merges"])for(var g=l["!merges"],y=0;y!=g.length;++y)g[y].s.c==d.c&&g[y].s.r==d.r&&(g[y].e.c>g[y].s.c&&(m["ss:MergeAcross"]=g[y].e.c-g[y].s.c),g[y].e.r>g[y].s.r&&(m["ss:MergeDown"]=g[y].e.r-g[y].s.r));var v="",x="";switch(a.t){case"z":if(!c.sheetStubs)return"";break;case"n":v="Number",x=String(a.v);break;case"b":v="Boolean",x=a.v?"1":"0";break;case"e":v="Error",x=Ta[a.v];break;case"d":v="DateTime",x=new Date(a.v).toISOString(),a.z==null&&(a.z=a.z||oe[14]);break;case"s":v="String",x=((a.v||"")+"").replace(Ll,function(C){return kl[C]}).replace(uu,function(C){return"&#x"+C.charCodeAt(0).toString(16).toUpperCase()+";"})}return l=ja(c.cellXfs,a,c),m["ss:StyleID"]="s"+(21+l),m["ss:Index"]=d.c+1,l=a.v!=null?x:"",l=a.t=="z"?"":'<Data ss:Type="'+v+'">'+l+"</Data>",0<(a.c||[]).length&&(l+=a.c.map(function(C){var F=je("ss:Data",(C.t||"").replace(/(\r\n|[\r\n])/g," "),{xmlns:"http://www.w3.org/TR/REC-html40"});return je("Comment",F,{"ss:Author":C.a})}).join("")),je("Cell",l,m)}function ub(a,n){if(!a["!ref"])return"";var l=rr(a["!ref"]),c=a["!merges"]||[],f=0,h=[];a["!cols"]&&a["!cols"].forEach(function(P,I){za(P);var R=!!P.width,O=Un(I,P),I={"ss:Index":I+1};R&&(I["ss:Width"]=Ci(O.width)),P.hidden&&(I["ss:Hidden"]="1"),h.push(je("Column",null,I))});for(var d,m,g=Array.isArray(a),y=l.s.r;y<=l.e.r;++y){for(var v=[(d=y,m=(a["!rows"]||[])[y],d='<Row ss:Index="'+(d+1)+'"',m&&(m.hpt&&!m.hpx&&(m.hpx=Wo(m.hpt)),m.hpx&&(d+=' ss:AutoFitHeight="0" ss:Height="'+m.hpx+'"'),m.hidden&&(d+=' ss:Hidden="1"')),d+">")],x=l.s.c;x<=l.e.c;++x){for(var C,F,k,D=!1,f=0;f!=c.length;++f)if(!(c[f].s.c>x||c[f].s.r>y||c[f].e.c<x||c[f].e.r<y)){c[f].s.c==x&&c[f].s.r==y||(D=!0);break}D||(F=Rt(C={r:y,c:x}),k=g?(a[y]||[])[x]:a[F],v.push(fb(k,F,a,n,0,0,C)))}v.push("</Row>"),2<v.length&&h.push(v.join(""))}return h.join("")}function db(a,n,l){var c=[],h=l.SheetNames[a],f=l.Sheets[h],h=f?function(d,m,g){if(!d||!((g||{}).Workbook||{}).Names)return"";for(var y=g.Workbook.Names,v=[],x=0;x<y.length;++x){var C=y[x];C.Sheet==m&&(C.Name.match(/^_xlfn\./)||v.push(up(C)))}return v.join("")}(f,a,l):"";return 0<h.length&&c.push("<Names>"+h+"</Names>"),0<(h=f?ub(f,n):"").length&&c.push("<Table>"+h+"</Table>"),c.push(function(d,m,g){if(!d)return"";var y=[];if(d["!margins"]&&(y.push("<PageSetup>"),d["!margins"].header&&y.push(je("Header",null,{"x:Margin":d["!margins"].header})),d["!margins"].footer&&y.push(je("Footer",null,{"x:Margin":d["!margins"].footer})),y.push(je("PageMargins",null,{"x:Bottom":d["!margins"].bottom||"0.75","x:Left":d["!margins"].left||"0.7","x:Right":d["!margins"].right||"0.7","x:Top":d["!margins"].top||"0.75"})),y.push("</PageSetup>")),g&&g.Workbook&&g.Workbook.Sheets&&g.Workbook.Sheets[m])if(g.Workbook.Sheets[m].Hidden)y.push(je("Visible",g.Workbook.Sheets[m].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var v=0;v<m&&(!g.Workbook.Sheets[v]||g.Workbook.Sheets[v].Hidden);++v);v==m&&y.push("<Selected/>")}return((((g||{}).Workbook||{}).Views||[])[0]||{}).RTL&&y.push("<DisplayRightToLeft/>"),d["!protect"]&&(y.push(ms("ProtectContents","True")),d["!protect"].objects&&y.push(ms("ProtectObjects","True")),d["!protect"].scenarios&&y.push(ms("ProtectScenarios","True")),d["!protect"].selectLockedCells==null||d["!protect"].selectLockedCells?d["!protect"].selectUnlockedCells==null||d["!protect"].selectUnlockedCells||y.push(ms("EnableSelection","UnlockedCells")):y.push(ms("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(x){d["!protect"][x[0]]&&y.push("<"+x[1]+"/>")})),y.length==0?"":je("WorksheetOptions",y.join(""),{xmlns:Gs.x})}(f,a,l)),c.join("")}function hb(a,n){n=n||{},a.SSF||(a.SSF=Lr(oe)),a.SSF&&(Mo(),ni(a.SSF),n.revssf=cn(a.SSF),n.revssf[a.SSF[65535]]=0,n.ssf=a.SSF,n.cellXfs=[],ja(n.cellXfs,{},{revssf:{General:0}}));var l=[];l.push(cb(a,n)),l.push(""),l.push(""),l.push("");for(var c,f=0;f<a.SheetNames.length;++f)l.push(je("Worksheet",db(f,n,a),{"ss:Name":Dr(a.SheetNames[f])}));return l[2]=(c=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'],n.cellXfs.forEach(function(h,d){var m=[];m.push(je("NumberFormat",null,{"ss:Format":Dr(oe[h.numFmtId])})),d={"ss:ID":"s"+(21+d)},c.push(je("Style",m.join(""),d))}),je("Styles",c.join(""))),l[3]=function(h){if(!((h||{}).Workbook||{}).Names)return"";for(var d=h.Workbook.Names,m=[],g=0;g<d.length;++g){var y=d[g];y.Sheet==null&&(y.Name.match(/^_xlfn\./)||m.push(up(y)))}return je("Names",m.join(""))}(a),Zr+je("Workbook",l.join(""),{xmlns:Gs.ss,"xmlns:o":Gs.o,"xmlns:x":Gs.x,"xmlns:ss":Gs.ss,"xmlns:dt":Gs.dt,"xmlns:html":Gs.html})}function pb(a){var n={},l=a.content;return l.l=28,n.AnsiUserType=l.read_shift(0,"lpstr-ansi"),n.AnsiClipboardFormat=Iu(l,1),l.length-l.l<=4?n:(a=l.read_shift(4),a==0||40<a?n:(l.l-=4,n.Reserved1=l.read_shift(0,"lpstr-ansi"),l.length-l.l<=4||(a=l.read_shift(4))!==1907505652?n:(n.UnicodeClipboardFormat=Iu(l,2),(a=l.read_shift(4))==0||40<a?n:(l.l-=4,void(n.Reserved2=l.read_shift(0,"lpwstr"))))))}var mb=[60,1084,2066,2165,2175];function va(a,n,l){if(a.t!=="z"&&a.XF){var c,f=0;try{f=a.z||a.XF.numFmtId||0,n.cellNF&&(a.z=oe[f])}catch(h){if(n.WTF)throw h}if(!n||n.cellText!==!1)try{a.t==="e"?a.w=a.w||Ta[a.v]:f===0||f=="General"?a.t==="n"?(0|a.v)===a.v?a.w=a.v.toString(10):a.w=Ns(a.v):a.w=kr(a.v):a.w=Us(f,a.v,{date1904:!!l,dateNF:n&&n.dateNF})}catch(h){if(n.WTF)throw h}n.cellDates&&f&&a.t=="n"&&eo(oe[f]||String(f))&&(c=Ie(a.v))&&(a.t="d",a.v=new Date(c.y,c.m-1,c.d,c.H,c.M,c.S,c.u))}}function Gn(a,n,l){return{v:a,ixfe:n,t:l}}function gb(a,n){var l={opts:{}},c={};function f(le){return!(le<8)&&le<64&&X[le-8]||gi[le]}function h(le,ye,Oe){if(!(1<Ne||Oe.sheetRows&&le.r>=Oe.sheetRows)){var lt,Ze,Ye;if(Oe.cellStyles&&ye.XF&&ye.XF.data&&(Ze=Oe,(Ye=(lt=ye).XF.data)&&Ye.patternType&&Ze&&Ze.cellStyles&&(lt.s={},lt.s.patternType=Ye.patternType,(Ze=xi(f(Ye.icvFore)))&&(lt.s.fgColor={rgb:Ze}),(Ze=xi(f(Ye.icvBack)))&&(lt.s.bgColor={rgb:Ze}))),delete ye.ixfe,delete ye.XF,R=Rt(d=le),F&&F.s&&F.e||(F={s:{r:0,c:0},e:{r:0,c:0}}),le.r<F.s.r&&(F.s.r=le.r),le.c<F.s.c&&(F.s.c=le.c),le.r+1>F.e.r&&(F.e.r=le.r+1),le.c+1>F.e.c&&(F.e.c=le.c+1),Oe.cellFormula&&ye.f){for(var at=0;at<I.length;++at)if(!(I[at][0].s.c>le.c||I[at][0].s.r>le.r||I[at][0].e.c<le.c||I[at][0].e.r<le.r)){ye.F=Pt(I[at][0]),I[at][0].s.c==le.c&&I[at][0].s.r==le.r||delete ye.f,ye.f&&(ye.f=""+Ms(I[at][1],0,le,He,ce));break}}Oe.dense?(x[le.r]||(x[le.r]=[]),x[le.r][le.c]=ye):x[R]=ye}}var d,m,g,y,v,x=n.dense?[]:{},C={},F={},k=null,D=[],P="",L={},R="",O={},I=[],V=[],X=[],ae={Sheets:[],WBProps:{date1904:!1},Views:[{}]},te={},ce={enc:!1,sbcch:0,snames:[],sharedf:O,arrayf:I,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!n&&!!n.cellStyles,WTF:!!n&&!!n.wtf};n.password&&(ce.password=n.password);var _e=[],we=[],de=[],ke=[],qe=!1,He=[];He.SheetNames=ce.snames,He.sharedf=ce.sharedf,He.arrayf=ce.arrayf,He.names=[],He.XTI=[];var Ve,ze=0,Ne=0,Fe=0,$e=[],rt=[];ce.codepage=1200,S(1200);for(var gt=!1;a.l<a.length-1;){var Nt=a.l,Xe=a.read_shift(2);if(Xe===0&&ze===10)break;var Re=a.l===a.length?0:a.read_shift(2),kt=kc[Xe];if(kt&&kt.f){if(n.bookSheets&&ze===133&&Xe!==133)break;if(ze=Xe,kt.r===2||kt.r==12){var ar=a.read_shift(2);if(Re-=2,!ce.enc&&ar!==Xe&&((255&ar)<<8|ar>>8)!==Xe)throw new Error("rt mismatch: "+ar+"!="+Xe);kt.r==12&&(a.l+=10,Re-=10)}var Kt,vr,Jr,Z={},Z=Xe===10?kt.f(a,Re,ce):function(le,ye,Oe,lt,Ze){var Ye=lt,at=[],dt=Oe.slice(Oe.l,Oe.l+Ye);if(Ze&&Ze.enc&&Ze.enc.insitu&&0<dt.length)switch(le){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:case 133:break;default:Ze.enc.insitu(dt)}at.push(dt),Oe.l+=Ye;for(var ht=Sa(Oe,Oe.l),Ge=kc[ht],Pe=0;Ge!=null&&-1<mb.indexOf(ht);)Ye=Sa(Oe,Oe.l+2),Pe=Oe.l+4,ht==2066?Pe+=4:ht!=2165&&ht!=2175||(Pe+=12),dt=Oe.slice(Pe,Oe.l+4+Ye),at.push(dt),Oe.l+=4+Ye,Ge=kc[ht=Sa(Oe,Oe.l)];var pt=ut(at);gs(pt,0);var Qe=0;pt.lens=[];for(var Be=0;Be<at.length;++Be)pt.lens.push(Qe),Qe+=at[Be].length;if(pt.length<lt)throw"XLS Record 0x"+le.toString(16)+" Truncated: "+pt.length+" < "+lt;return ye.f(pt,pt.length,Ze)}(Xe,kt,a,Re,ce);if(Ne!=0||[9,521,1033,2057].indexOf(ze)!==-1)switch(Xe){case 34:l.opts.Date1904=ae.WBProps.date1904=Z;break;case 134:l.opts.WriteProtect=!0;break;case 47:if(ce.enc||(a.l=0),ce.enc=Z,!n.password)throw new Error("File is password-protected");if(Z.valid==null)throw new Error("Encryption scheme unsupported");if(!Z.valid)throw new Error("Password is incorrect");break;case 92:ce.lastuser=Z;break;case 66:var wr=Number(Z);switch(wr){case 21010:wr=1200;break;case 32768:wr=1e4;break;case 32769:wr=1252}S(ce.codepage=wr),gt=!0;break;case 317:ce.rrtabid=Z;break;case 25:ce.winlocked=Z;break;case 439:l.opts.RefreshAll=Z;break;case 12:l.opts.CalcCount=Z;break;case 16:l.opts.CalcDelta=Z;break;case 17:l.opts.CalcIter=Z;break;case 13:l.opts.CalcMode=Z;break;case 14:l.opts.CalcPrecision=Z;break;case 95:l.opts.CalcSaveRecalc=Z;break;case 15:ce.CalcRefMode=Z;break;case 2211:l.opts.FullCalc=Z;break;case 129:Z.fDialog&&(x["!type"]="dialog"),Z.fBelow||((x["!outline"]||(x["!outline"]={})).above=!0),Z.fRight||((x["!outline"]||(x["!outline"]={})).left=!0);break;case 224:V.push(Z);break;case 430:He.push([Z]),He[He.length-1].XTI=[];break;case 35:case 547:He[He.length-1].push(Z);break;case 24:case 536:Ve={Name:Z.Name,Ref:Ms(Z.rgce,0,null,He,ce)},0<Z.itab&&(Ve.Sheet=Z.itab-1),He.names.push(Ve),He[0]||(He[0]=[],He[0].XTI=[]),He[He.length-1].push(Z),Z.Name=="_xlnm._FilterDatabase"&&0<Z.itab&&Z.rgce&&Z.rgce[0]&&Z.rgce[0][0]&&Z.rgce[0][0][0]=="PtgArea3d"&&(rt[Z.itab-1]={ref:Pt(Z.rgce[0][0][1][2])});break;case 22:ce.ExternCount=Z;break;case 23:He.length==0&&(He[0]=[],He[0].XTI=[]),He[He.length-1].XTI=He[He.length-1].XTI.concat(Z),He.XTI=He.XTI.concat(Z);break;case 2196:if(ce.biff<8)break;Ve!=null&&(Ve.Comment=Z[1]);break;case 18:x["!protect"]=Z;break;case 19:Z!==0&&ce.WTF&&console.error("Password verifier: "+Z);break;case 133:C[Z.pos]=Z,ce.snames.push(Z.name);break;case 10:if(--Ne)break;F.e&&(0<F.e.r&&0<F.e.c&&(F.e.r--,F.e.c--,x["!ref"]=Pt(F),n.sheetRows&&n.sheetRows<=F.e.r&&(_r=F.e.r,F.e.r=n.sheetRows-1,x["!fullref"]=x["!ref"],x["!ref"]=Pt(F),F.e.r=_r),F.e.r++,F.e.c++),0<_e.length&&(x["!merges"]=_e),0<we.length&&(x["!objects"]=we),0<de.length&&(x["!cols"]=de),0<ke.length&&(x["!rows"]=ke),ae.Sheets.push(te)),P===""?L=x:c[P]=x,x=n.dense?[]:{};break;case 9:case 521:case 1033:case 2057:if(ce.biff===8&&(ce.biff={9:2,521:3,1033:4}[Xe]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[Z.BIFFVer]||8),ce.biffguess=Z.BIFFVer==0,Z.BIFFVer==0&&Z.dt==4096&&(ce.biff=5,gt=!0,S(ce.codepage=28591)),ce.biff==8&&Z.BIFFVer==0&&Z.dt==16&&(ce.biff=2),Ne++)break;var _r,x=n.dense?[]:{};ce.biff<8&&!gt&&(gt=!0,S(ce.codepage=n.codepage||1252)),ce.biff<5||Z.BIFFVer==0&&Z.dt==4096?(P===""&&(P="Sheet1"),F={s:{r:0,c:0},e:{r:0,c:0}},_r={pos:a.l-Re,name:P},C[_r.pos]=_r,ce.snames.push(P)):P=(C[Nt]||{name:""}).name,Z.dt==32&&(x["!type"]="chart"),Z.dt==64&&(x["!type"]="macro"),_e=[],we=[],ce.arrayf=I=[],de=[],qe=!(ke=[]),te={Hidden:(C[Nt]||{hs:0}).hs,name:P};break;case 515:case 3:case 2:x["!type"]=="chart"&&(n.dense?(x[Z.r]||[])[Z.c]:x[Rt({c:Z.c,r:Z.r})])&&++Z.c,z={ixfe:Z.ixfe,XF:V[Z.ixfe]||{},v:Z.val,t:"n"},0<Fe&&(z.z=$e[z.ixfe>>8&63]),va(z,n,l.opts.Date1904),h({c:Z.c,r:Z.r},z,n);break;case 5:case 517:z={ixfe:Z.ixfe,XF:V[Z.ixfe],v:Z.val,t:Z.t},0<Fe&&(z.z=$e[z.ixfe>>8&63]),va(z,n,l.opts.Date1904),h({c:Z.c,r:Z.r},z,n);break;case 638:z={ixfe:Z.ixfe,XF:V[Z.ixfe],v:Z.rknum,t:"n"},0<Fe&&(z.z=$e[z.ixfe>>8&63]),va(z,n,l.opts.Date1904),h({c:Z.c,r:Z.r},z,n);break;case 189:for(var cs=Z.c;cs<=Z.C;++cs){var $s=Z.rkrec[cs-Z.c][0],z={ixfe:$s,XF:V[$s],v:Z.rkrec[cs-Z.c][1],t:"n"};0<Fe&&(z.z=$e[z.ixfe>>8&63]),va(z,n,l.opts.Date1904),h({c:cs,r:Z.r},z,n)}break;case 6:case 518:case 1030:if(Z.val=="String"){k=Z;break}(z=Gn(Z.val,Z.cell.ixfe,Z.tt)).XF=V[z.ixfe],n.cellFormula&&(!((he=Z.formula)&&he[0]&&he[0][0]&&he[0][0][0]=="PtgExp")||O[Jr=Rt({r:Kt=he[0][0][1][0],c:vr=he[0][0][1][1]})]?z.f=""+Ms(Z.formula,0,Z.cell,He,ce):z.F=((n.dense?(x[Kt]||[])[vr]:x[Jr])||{}).F),0<Fe&&(z.z=$e[z.ixfe>>8&63]),va(z,n,l.opts.Date1904),h(Z.cell,z,n),k=Z;break;case 7:case 519:if(!k)throw new Error("String record expects Formula");(z=Gn(k.val=Z,k.cell.ixfe,"s")).XF=V[z.ixfe],n.cellFormula&&(z.f=""+Ms(k.formula,0,k.cell,He,ce)),0<Fe&&(z.z=$e[z.ixfe>>8&63]),va(z,n,l.opts.Date1904),h(k.cell,z,n),k=null;break;case 33:case 545:I.push(Z);var he=Rt(Z[0].s),J=n.dense?(x[Z[0].s.r]||[])[Z[0].s.c]:x[he];if(n.cellFormula&&J){if(!k||!he||!J)break;J.f=""+Ms(Z[1],0,Z[0],He,ce),J.F=Pt(Z[0])}break;case 1212:if(!n.cellFormula)break;if(R){if(!k)break;O[Rt(k.cell)]=Z[0],((J=n.dense?(x[k.cell.r]||[])[k.cell.c]:x[Rt(k.cell)])||{}).f=""+Ms(Z[0],0,d,He,ce)}break;case 253:z=Gn(D[Z.isst].t,Z.ixfe,"s"),D[Z.isst].h&&(z.h=D[Z.isst].h),z.XF=V[z.ixfe],0<Fe&&(z.z=$e[z.ixfe>>8&63]),va(z,n,l.opts.Date1904),h({c:Z.c,r:Z.r},z,n);break;case 513:n.sheetStubs&&(z={ixfe:Z.ixfe,XF:V[Z.ixfe],t:"z"},0<Fe&&(z.z=$e[z.ixfe>>8&63]),va(z,n,l.opts.Date1904),h({c:Z.c,r:Z.r},z,n));break;case 190:if(n.sheetStubs)for(var fe=Z.c;fe<=Z.C;++fe){var K=Z.ixfe[fe-Z.c];z={ixfe:K,XF:V[K],t:"z"},0<Fe&&(z.z=$e[z.ixfe>>8&63]),va(z,n,l.opts.Date1904),h({c:fe,r:Z.r},z,n)}break;case 214:case 516:case 4:(z=Gn(Z.val,Z.ixfe,"s")).XF=V[z.ixfe],0<Fe&&(z.z=$e[z.ixfe>>8&63]),va(z,n,l.opts.Date1904),h({c:Z.c,r:Z.r},z,n);break;case 0:case 512:Ne===1&&(F=Z);break;case 252:D=Z;break;case 1054:if(ce.biff==4){$e[Fe++]=Z[1];for(var Ee=0;Ee<Fe+163&&oe[Ee]!=Z[1];++Ee);163<=Ee&&pa(Z[1],Fe+163)}else pa(Z[1],Z[0]);break;case 30:$e[Fe++]=Z;for(var ue=0;ue<Fe+163&&oe[ue]!=Z;++ue);163<=ue&&pa(Z,Fe+163);break;case 229:_e=_e.concat(Z);break;case 93:we[Z.cmo[0]]=ce.lastobj=Z;break;case 438:ce.lastobj.TxO=Z;break;case 127:ce.lastobj.ImData=Z;break;case 440:for(g=Z[0].s.r;g<=Z[0].e.r;++g)for(m=Z[0].s.c;m<=Z[0].e.c;++m)(J=n.dense?(x[g]||[])[m]:x[Rt({c:m,r:g})])&&(J.l=Z[1]);break;case 2048:for(g=Z[0].s.r;g<=Z[0].e.r;++g)for(m=Z[0].s.c;m<=Z[0].e.c;++m)(J=n.dense?(x[g]||[])[m]:x[Rt({c:m,r:g})])&&J.l&&(J.l.Tooltip=Z[1]);break;case 28:if(ce.biff<=5&&2<=ce.biff)break;J=n.dense?(x[Z[0].r]||[])[Z[0].c]:x[Rt(Z[0])];var ge=we[Z[2]];J||(J=n.dense?(x[Z[0].r]||(x[Z[0].r]=[]),x[Z[0].r][Z[0].c]={t:"z"}):x[Rt(Z[0])]={t:"z"},F.e.r=Math.max(F.e.r,Z[0].r),F.s.r=Math.min(F.s.r,Z[0].r),F.e.c=Math.max(F.e.c,Z[0].c),F.s.c=Math.min(F.s.c,Z[0].c)),J.c||(J.c=[]),ge={a:Z[1],t:ge.TxO.t},J.c.push(ge);break;case 2173:V[Z.ixfe],Z.ext.forEach(function(ye){ye[0]});break;case 125:if(!ce.cellStyles)break;for(;Z.e>=Z.s;)de[Z.e--]={width:Z.w/256,level:Z.level||0,hidden:!!(1&Z.flags)},qe||(qe=!0,yc(Z.w/256)),za(de[Z.e+1]);break;case 520:ge={},Z.level!=null&&((ke[Z.r]=ge).level=Z.level),Z.hidden&&((ke[Z.r]=ge).hidden=!0),Z.hpt&&((ke[Z.r]=ge).hpt=Z.hpt,ge.hpx=Wo(Z.hpt));break;case 38:case 39:case 40:case 41:x["!margins"]||po(x["!margins"]={}),x["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[Xe]]=Z;break;case 161:x["!margins"]||po(x["!margins"]={}),x["!margins"].header=Z.header,x["!margins"].footer=Z.footer;break;case 574:Z.RTL&&(ae.Views[0].RTL=!0);break;case 146:X=Z;break;case 2198:v=Z;break;case 140:y=Z;break;case 442:P?te.CodeName=Z||te.name:ae.WBProps.CodeName=Z||"ThisWorkbook"}}else kt||console.error("Missing Info for XLS Record 0x"+Xe.toString(16)),a.l+=Re}return l.SheetNames=Yr(C).sort(function(le,ye){return Number(le)-Number(ye)}).map(function(le){return C[le].name}),n.bookSheets||(l.Sheets=c),!l.SheetNames.length&&L["!ref"]?(l.SheetNames.push("Sheet1"),l.Sheets&&(l.Sheets.Sheet1=L)):l.Preamble=L,l.Sheets&&rt.forEach(function(le,ye){l.Sheets[l.SheetNames[ye]]["!autofilter"]=le}),l.Strings=D,l.SSF=Lr(oe),ce.enc&&(l.Encryption=ce.enc),v&&(l.Themes=v),l.Metadata={},y!==void 0&&(l.Metadata.Country=y),0<He.names.length&&(ae.Names=He.names),l.Workbook=ae,l}var Oi={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function jn(a,n){var l,c,f,h,d;if(Nc(n=n||{}),A(),n.codepage&&w(n.codepage),a.FullPaths){if(_t.find(a,"/encryption"))throw new Error("File is password-protected");l=_t.find(a,"!CompObj"),f=_t.find(a,"/Workbook")||_t.find(a,"/Book")}else{switch(n.type){case"base64":a=ve(j(a));break;case"binary":a=ve(a);break;case"buffer":break;case"array":Array.isArray(a)||(a=Array.prototype.slice.call(a))}gs(a,0),f={content:a}}if(l&&pb(l),n.bookProps&&!n.bookSheets)c={};else{var m=H?"buffer":"array";if(f&&f.content)c=gb(f.content,n);else if((f=_t.find(a,"PerfectOffice_MAIN"))&&f.content)c=ho.to_workbook(f.content,(n.type=m,n));else{if(!(f=_t.find(a,"NativeContent_MAIN"))||!f.content)throw(f=_t.find(a,"MN0"))&&f.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");c=ho.to_workbook(f.content,(n.type=m,n))}n.bookVBA&&a.FullPaths&&_t.find(a,"/_VBA_PROJECT_CUR/VBA/dir")&&(c.vbaraw=(h=a,d=_t.utils.cfb_new({root:"R"}),h.FullPaths.forEach(function(g,y){g.slice(-1)!=="/"&&g.match(/_VBA_PROJECT_CUR/)&&(g=g.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,""),_t.utils.cfb_add(d,g,h.FileIndex[y].content))}),_t.write(d)))}return m={},a.FullPaths&&function(g,y,v){var x=_t.find(g,"/!DocumentSummaryInformation");if(x&&0<x.size)try{var C,F=ld(x,$l,Oi.DSI);for(C in F)y[C]=F[C]}catch(L){if(v.WTF)throw L}var k=_t.find(g,"/!SummaryInformation");if(k&&0<k.size)try{var D,P=ld(k,ec,Oi.SI);for(D in P)y[D]==null&&(y[D]=P[D])}catch(L){if(v.WTF)throw L}y.HeadingPairs&&y.TitlesOfParts&&(Ku(y.HeadingPairs,y.TitlesOfParts,y,v),delete y.HeadingPairs,delete y.TitlesOfParts)}(a,m,n),c.Props=c.Custprops=m,n.bookFiles&&(c.cfb=a),c}function bb(a,h){var l,c,f=h||{},h=_t.utils.cfb_new({root:"R"}),d="/Workbook";switch(f.bookType||"xls"){case"xls":f.bookType="biff8";case"xla":f.bookType||(f.bookType="xla");case"biff8":d="/Workbook",f.biff=8;break;case"biff5":d="/Book",f.biff=5;break;default:throw new Error("invalid type "+f.bookType+" for XLS CFB")}return _t.utils.cfb_add(h,d,dp(a,f)),f.biff==8&&(a.Props||a.Custprops)&&function(m,g){var y,v=[],x=[],C=[],F=0,k=$f($l,"n"),D=$f(ec,"n");if(m.Props)for(y=Yr(m.Props),F=0;F<y.length;++F)(Object.prototype.hasOwnProperty.call(k,y[F])?v:Object.prototype.hasOwnProperty.call(D,y[F])?x:C).push([y[F],m.Props[y[F]]]);if(m.Custprops)for(y=Yr(m.Custprops),F=0;F<y.length;++F)Object.prototype.hasOwnProperty.call(m.Props||{},y[F])||(Object.prototype.hasOwnProperty.call(k,y[F])?v:Object.prototype.hasOwnProperty.call(D,y[F])?x:C).push([y[F],m.Custprops[y[F]]]);for(var P=[],F=0;F<C.length;++F)-1<id.indexOf(C[F][0])||-1<qu.indexOf(C[F][0])||C[F][1]!=null&&P.push(C[F]);x.length&&_t.utils.cfb_add(g,"/SummaryInformation",cd(x,Oi.SI,D,ec)),(v.length||P.length)&&_t.utils.cfb_add(g,"/DocumentSummaryInformation",cd(v,Oi.DSI,k,$l,P.length?P:null,Oi.UDI))}(a,h),f.biff==8&&a.vbaraw&&(l=h,(c=_t.read(a.vbaraw,{type:typeof a.vbaraw=="string"?"binary":"buffer"})).FullPaths.forEach(function(m,g){g==0||(m=m.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/")).slice(-1)!=="/"&&_t.utils.cfb_add(l,m,c.FileIndex[g].content)})),h}var Pi={0:{f:function(a,n){var l={},c=a.l+n;l.r=a.read_shift(4),a.l+=4;var f=a.read_shift(2);return a.l+=1,n=a.read_shift(1),a.l=c,7&n&&(l.level=7&n),16&n&&(l.hidden=!0),32&n&&(l.hpt=f/20),l}},1:{f:function(a){return[qs(a)]}},2:{f:function(a){return[qs(a),Ql(a),"n"]}},3:{f:function(a){return[qs(a),a.read_shift(1),"e"]}},4:{f:function(a){return[qs(a),a.read_shift(1),"b"]}},5:{f:function(a){return[qs(a),xs(a),"n"]}},6:{f:function(a){return[qs(a),ws(a),"str"]}},7:{f:function(a){return[qs(a),a.read_shift(4),"s"]}},8:{f:function(a,n,l){var c=a.l+n,f=qs(a);f.r=l["!row"];var h=[f,ws(a),"str"];return l.cellFormula?(a.l+=2,n=Bn(a,c-a.l,l),h[3]=Ms(n,0,f,l.supbooks,l)):a.l=c,h}},9:{f:function(a,n,l){var c=a.l+n,f=qs(a);f.r=l["!row"];var h=[f,xs(a),"n"];return l.cellFormula?(a.l+=2,n=Bn(a,c-a.l,l),h[3]=Ms(n,0,f,l.supbooks,l)):a.l=c,h}},10:{f:function(a,n,l){var c=a.l+n,f=qs(a);f.r=l["!row"];var h=[f,a.read_shift(1),"b"];return l.cellFormula?(a.l+=2,n=Bn(a,c-a.l,l),h[3]=Ms(n,0,f,l.supbooks,l)):a.l=c,h}},11:{f:function(a,n,l){var c=a.l+n,f=qs(a);f.r=l["!row"];var h=[f,a.read_shift(1),"e"];return l.cellFormula?(a.l+=2,n=Bn(a,c-a.l,l),h[3]=Ms(n,0,f,l.supbooks,l)):a.l=c,h}},12:{f:function(a){return[oo(a)]}},13:{f:function(a){return[oo(a),Ql(a),"n"]}},14:{f:function(a){return[oo(a),a.read_shift(1),"e"]}},15:{f:function(a){return[oo(a),a.read_shift(1),"b"]}},16:{f:tp},17:{f:function(a){return[oo(a),ws(a),"str"]}},18:{f:function(a){return[oo(a),a.read_shift(4),"s"]}},19:{f:ql},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(a,d,m){var c=a.l+d;a.l+=4,a.l+=1;var f=a.read_shift(4),h=Jg(a),d=h2(a,0,m),m=Kl(a);return a.l=c,d={Name:h,Ptg:d},f<268435455&&(d.Sheet=f),m&&(d.Comment=m),d}},40:{},42:{},43:{f:function(a,n,l){var c={};c.sz=a.read_shift(2)/20;var f,h=(h=(f=a).read_shift(1),f.l++,{fBold:1&h,fItalic:2&h,fUnderline:4&h,fStrikeout:8&h,fOutline:16&h,fShadow:32&h,fCondense:64&h,fExtend:128&h});switch(h.fItalic&&(c.italic=1),h.fCondense&&(c.condense=1),h.fExtend&&(c.extend=1),h.fShadow&&(c.shadow=1),h.fOutline&&(c.outline=1),h.fStrikeout&&(c.strike=1),a.read_shift(2)===700&&(c.bold=1),a.read_shift(2)){case 1:c.vertAlign="superscript";break;case 2:c.vertAlign="subscript"}switch((h=a.read_shift(1))!=0&&(c.underline=h),0<(h=a.read_shift(1))&&(c.family=h),0<(h=a.read_shift(1))&&(c.charset=h),a.l++,c.color=function(d){var m={},g=d.read_shift(1)>>>1,y=d.read_shift(1),v=d.read_shift(2,"i"),x=d.read_shift(1),C=d.read_shift(1),F=d.read_shift(1);switch(d.l++,g){case 0:m.auto=1;break;case 1:m.index=y;var k=gi[y];k&&(m.rgb=xi(k));break;case 2:m.rgb=xi([x,C,F]);break;case 3:m.theme=y}return v!=0&&(m.tint=0<v?v/32767:v/32768),m}(a),a.read_shift(1)){case 1:c.scheme="major";break;case 2:c.scheme="minor"}return c.name=ws(a),c}},44:{f:function(a,n){return[a.read_shift(2),ws(a)]}},45:{f:V1},46:{f:un},47:{f:function(a,f){var l=a.l+f,c=a.read_shift(2),f=a.read_shift(2);return a.l=l,{ixfe:c,numFmtId:f}}},48:{},49:{f:function(a){return a.read_shift(4,"i")}},50:{},51:{f:function(a){for(var n=[],l=a.read_shift(4);0<l--;)n.push([a.read_shift(4),a.read_shift(4)]);return n}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Td},62:{f:function(a){return[qs(a),ql(a),"is"]}},63:{f:function(a){var n={};n.i=a.read_shift(4);var l={};return l.r=a.read_shift(4),l.c=a.read_shift(4),n.r=Rt(l),2&(a=a.read_shift(1))&&(n.l="1"),8&a&&(n.a="1"),n}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:vs,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(a){var n=a.read_shift(2);return a.l+=28,{RTL:32&n}}},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(a,n){var l={},c=a[a.l];return++a.l,l.above=!(64&c),l.left=!(128&c),a.l+=18,l.name=Kg(a),l}},148:{f:zn,p:16},151:{f:function(){}},152:{},153:{f:function(a,n){var l={},c=a.read_shift(4);return l.defaultThemeVersion=a.read_shift(4),0<(a=8<n?ws(a):"").length&&(l.CodeName=a),l.autoCompressPictures=!!(65536&c),l.backupFile=!!(64&c),l.checkCompatibility=!!(4096&c),l.date1904=!!(1&c),l.filterPrivacy=!!(8&c),l.hidePivotFieldList=!!(1024&c),l.promptedSolutions=!!(16&c),l.publishItems=!!(2048&c),l.refreshAllConnections=!!(262144&c),l.saveExternalLinkValues=!!(128&c),l.showBorderUnselectedTables=!!(4&c),l.showInkAnnotation=!!(32&c),l.showObjects=["all","placeholders","none"][c>>13&3],l.showPivotChartFilter=!!(32768&c),l.updateLinks=["userSet","never","always"][c>>8&3],l}},154:{},155:{},156:{f:function(a,n){var l={};return l.Hidden=a.read_shift(4),l.iTabID=a.read_shift(4),l.strRelID=Jl(a),l.name=ws(a),l}},157:{},158:{},159:{T:1,f:function(a){return[a.read_shift(4),a.read_shift(4)]}},160:{T:-1},161:{T:1,f:no},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:Ko},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(a,n){return{flags:a.read_shift(4),version:a.read_shift(4),name:ws(a)}}},336:{T:-1},337:{f:function(a){return a.l+=4,a.read_shift(4)!=0},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:Jl},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Sd},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(a,h,l){var c=a.l+h,f=Nu(a),h=a.read_shift(1);return(f=[f])[2]=h,l.cellFormula?(l=d2(a,c-a.l,l),f[1]=l):a.l=c,f}},427:{f:function(a,f,l){var c=a.l+f,f=[no(a)];return l.cellFormula&&(l=p2(a,c-a.l,l),f[1]=l),a.l=c,f}},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(a){var n={};return rp.forEach(function(l){n[l]=xs(a)}),n}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},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(a,m){var l=a.l+m,c=no(a),f=Kl(a),h=ws(a),d=ws(a),m=ws(a);return a.l=l,m={rfx:c,relId:f,loc:h,display:m},d&&(m.Tooltip=d),m}},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:Jl},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:hn},633:{T:1},634:{T:-1},635:{T:1,f:function(a){var n={};n.iauthor=a.read_shift(4);var l=no(a);return n.rfx=l.s,n.ref=Rt(l.s),a.l+=16,n}},636:{T:-1},637:{f:Yg},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(a,n){return a.l+=10,{name:ws(a)}}},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(){}},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:""}},kc={6:{f:Fc},10:{f:Ua},12:{f:as},13:{f:as},14:{f:$r},15:{f:$r},16:{f:xs},17:{f:$r},18:{f:$r},19:{f:as},20:{f:Fd},21:{f:Fd},23:{f:Sd},24:{f:Ad},25:{f:$r},26:{},27:{},28:{f:function(a,n,l){return function(c,f){if(!(f.biff<8)){var h=c.read_shift(2),d=c.read_shift(2),m=c.read_shift(2),g=c.read_shift(2),y=fo(c,0,f);return f.biff<8&&c.read_shift(1),[{r:h,c:d},y,g,m]}}(a,l)}},29:{},34:{f:$r},35:{f:Dd},38:{f:xs},39:{f:xs},40:{f:xs},41:{f:xs},42:{f:$r},43:{f:$r},47:{f:function(a,n,l){var c={Type:8<=l.biff?a.read_shift(2):0};return c.Type?k1(a,n-2,c):(n=a,l.biff,a=l,l=c,n={key:as(n),verificationBytes:as(n)},a.password&&(n.verifier=mc(a.password)),l.valid=n.verificationBytes===n.verifier,l.valid&&(l.insitu=R1(a.password))),c}},49:{f:function(a,n,l){var c={dyHeight:a.read_shift(2),fl:a.read_shift(2)};switch(l&&l.biff||8){case 2:break;case 3:case 4:a.l+=2;break;default:a.l+=10}return c.name=_i(a,0,l),c}},51:{f:as},60:{},61:{f:function(a){return{Pos:[a.read_shift(2),a.read_shift(2)],Dim:[a.read_shift(2),a.read_shift(2)],Flags:a.read_shift(2),CurTab:a.read_shift(2),FirstTab:a.read_shift(2),Selected:a.read_shift(2),TabRatio:a.read_shift(2)}}},64:{f:$r},65:{f:function(){}},66:{f:as},77:{},80:{},81:{},82:{},85:{f:as},89:{},90:{},91:{},92:{f:function(a,n,f){if(f.enc)return a.l+=n,"";var c=a.l,f=fo(a,0,f);return a.read_shift(n+c-a.l),f}},93:{f:function(a,n,l){return l&&l.biff<8?function(c,f,h){c.l+=4;var d=c.read_shift(2),m=c.read_shift(2),g=c.read_shift(2);c.l+=2,c.l+=2,c.l+=2,c.l+=2,c.l+=2,c.l+=2,c.l+=2,c.l+=2,c.l+=2,c.l+=6,f-=36;var y=[];return y.push((n1[d]||vs)(c,f,h)),{cmo:[m,d,g],ft:y}}(a,n,l):{cmo:l=_d(a),ft:function(c,f){for(var h=c.l+f,d=[];c.l<h;){var m=c.read_shift(2);c.l-=2;try{d.push(a1[m](c,h-c.l))}catch{return c.l=h,d}}return c.l!=h&&(c.l=h),d}(a,n-22,l[1])}}},94:{},95:{f:$r},96:{},97:{},99:{f:$r},125:{f:Td},128:{f:function(a){if(a.l+=4,(a=[a.read_shift(2),a.read_shift(2)])[0]!==0&&a[0]--,a[1]!==0&&a[1]--,7<a[0]||7<a[1])throw new Error("Bad Gutters: "+a.join("|"));return a}},129:{f:function(a,n,l){return{fDialog:16&(n=l&&l.biff==8||n==2?a.read_shift(2):(a.l+=n,0)),fBelow:64&n,fRight:128&n}}},130:{f:as},131:{f:$r},132:{f:$r},133:{f:function(a,n,l){var c=a.read_shift(4),f=3&a.read_shift(1),h=a.read_shift(1);switch(h){case 0:h="Worksheet";break;case 1:h="Macrosheet";break;case 2:h="Chartsheet";break;case 6:h="VBAModule"}return l=_i(a,0,l),{pos:c,hs:f,dt:h,name:l=l.length===0?"Sheet1":l}}},134:{},140:{f:function(a){var n=[0,0],l=a.read_shift(2);return n[0]=Uu[l]||l,l=a.read_shift(2),n[1]=Uu[l]||l,n}},141:{f:as},144:{},146:{f:function(a){for(var n=a.read_shift(2),l=[];0<n--;)l.push(md(a));return l}},151:{},152:{},153:{},154:{},155:{},156:{f:as},157:{},158:{},160:{f:f1},161:{f:function(a,n){var l={};return n<32||(a.l+=16,l.header=xs(a),l.footer=xs(a),a.l+=2),l}},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:function(a,n){for(var l=a.l+n-2,c=a.read_shift(2),f=a.read_shift(2),h=[];a.l<l;)h.push(gd(a));if(a.l!==l)throw new Error("MulRK read error");if(n=a.read_shift(2),h.length!=n-f+1)throw new Error("MulRK length mismatch");return{r:c,c:f,C:n,rkrec:h}}},190:{f:function(a,n){for(var l=a.l+n-2,c=a.read_shift(2),f=a.read_shift(2),h=[];a.l<l;)h.push(a.read_shift(2));if(a.l!==l)throw new Error("MulBlank read error");if(n=a.read_shift(2),h.length!=n-f+1)throw new Error("MulBlank length mismatch");return{r:c,c:f,C:n,ixfe:h}}},193:{f:Ua},197:{},198:{},199:{},200:{},201:{},202:{f:$r},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:as},220:{},221:{f:$r},222:{},224:{f:function(a,n,l){var c,f,h,d={};return d.ifnt=a.read_shift(2),d.numFmtId=a.read_shift(2),d.flags=a.read_shift(2),d.fStyle=d.flags>>2&1,n-=6,d.data=(c=a,d.fStyle,f=l,h={},n=c.read_shift(4),a=c.read_shift(4),l=c.read_shift(4),c=c.read_shift(2),h.patternType=Qg[l>>26],f.cellStyles&&(h.alc=7&n,h.fWrap=n>>3&1,h.alcV=n>>4&7,h.fJustLast=n>>7&1,h.trot=n>>8&255,h.cIndent=n>>16&15,h.fShrinkToFit=n>>20&1,h.iReadOrder=n>>22&2,h.fAtrNum=n>>26&1,h.fAtrFnt=n>>27&1,h.fAtrAlc=n>>28&1,h.fAtrBdr=n>>29&1,h.fAtrPat=n>>30&1,h.fAtrProt=n>>31&1,h.dgLeft=15&a,h.dgRight=a>>4&15,h.dgTop=a>>8&15,h.dgBottom=a>>12&15,h.icvLeft=a>>16&127,h.icvRight=a>>23&127,h.grbitDiag=a>>30&3,h.icvTop=127&l,h.icvBottom=l>>7&127,h.icvDiag=l>>14&127,h.dgDiag=l>>21&15,h.icvFore=127&c,h.icvBack=c>>7&127,h.fsxButton=c>>14&1),h),d}},225:{f:function(a,n){return n===0||a.read_shift(2),1200}},226:{f:Ua},227:{},229:{f:function(a,n){for(var l=[],c=a.read_shift(2);c--;)l.push(Cn(a));return l}},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:function(a,n){for(var l=a.l+n,n=a.read_shift(4),c=a.read_shift(4),f=[],h=0;h!=c&&a.l<l;++h)f.push(function(m){var g=u;u=1200;var y,v=m.read_shift(2),x=4&(D=m.read_shift(1)),C=8&D,F=1+(1&D),k=0,D={};return C&&(k=m.read_shift(2)),x&&(y=m.read_shift(4)),F=F==2?"dbcs-cont":"sbcs-cont",F=v===0?"":m.read_shift(v,F),C&&(m.l+=4*k),x&&(m.l+=y),D.t=F,C||(D.raw="<t>"+D.t+"</t>",D.r=D.t),u=g,D}(a));return f.Count=n,f.Unique=c,f}},253:{f:function(a){var n=ya(a);return n.isst=a.read_shift(4),n}},255:{f:function(a,n){var l={};return l.dsst=a.read_shift(2),a.l+=n-2,l}},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:fd},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:$r},353:{f:Ua},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:function(a,h,l){var c=a.l+h,f=a.read_shift(2),h=a.read_shift(2);if((l.sbcch=h)==1025||h==14849)return[h,f];if(h<1||255<h)throw new Error("Unexpected SupBook type: "+h);for(var l=co(a,h),d=[];c>a.l;)d.push(vi(a));return[h,f,l,d]}},431:{f:$r},432:{},433:{},434:{},437:{},438:{f:function(a,n,l){var c=a.l,f="";try{a.l+=4;var h=(l.lastobj||{cmo:[0,0]}).cmo[1];[0,5,7,11,12,14].indexOf(h)==-1?a.l+=6:function(y){var v=y.read_shift(1);y.l++;var x=y.read_shift(2);y.l+=2}(a);var d=a.read_shift(2);a.read_shift(2),as(a),h=a.read_shift(2),a.l+=h;for(var m=1;m<a.lens.length-1;++m){if(a.l-c!=a.lens[m])throw new Error("TxO: bad continue record");var g=a[a.l];if((f+=co(a,a.lens[m+1]-a.lens[m]-1)).length>=(g?d:2*d))break}if(f.length!==d&&f.length!==2*d)throw new Error("cchText: "+d+" != "+f.length);return a.l=c+n,{t:f}}catch{return a.l=c+n,{t:f}}}},439:{f:$r},440:{f:function(a,n){var l=Cn(a);return a.l+=16,[l,function(c,f){var h=c.l+f;if((x=c.read_shift(4))!==2)throw new Error("Unrecognized streamVersion: "+x);f=c.read_shift(2),c.l+=2;var d,m,g,y,v,x="";16&f&&(d=xn(c,c.l)),128&f&&(m=xn(c,c.l)),(257&f)==257&&(g=xn(c,c.l)),(257&f)==1&&(C=r1(c,c.l)),8&f&&(x=xn(c,c.l)),32&f&&(y=c.read_shift(16)),64&f&&(v=oc(c)),c.l=h;var C=m||g||C||"";return C&&x&&(C+="#"+x),C=C||"#"+x,C={Target:C=2&f&&C.charAt(0)=="/"&&C.charAt(1)!="/"?"file://"+C:C},y&&(C.guid=y),v&&(C.time=v),d&&(C.Tooltip=d),C}(a,n-24)]}},441:{},442:{f:vi},443:{},444:{f:as},445:{},446:{},448:{f:Ua},449:{f:function(a){return a.read_shift(2),a.read_shift(4)},r:2},450:{f:Ua},512:{f:wd},513:{f:c1},515:{f:function(a,n,l){return l.biffguess&&l.biff==2&&(l.biff=5),l=ya(a),a=xs(a),l.val=a,l}},516:{f:function(a,n,l){return l.biffguess&&l.biff==2&&(l.biff=5),a.l,n=ya(a),l.biff==2&&a.l++,l=vi(a,a.l,l),n.val=l,n}},517:{f:Cd},519:{f:Hc},520:{f:function(a){var n={};n.r=a.read_shift(2),n.c=a.read_shift(2),n.cnt=a.read_shift(2)-n.c;var l=a.read_shift(2);a.l+=4;var c=a.read_shift(1);return a.l+=3,7&c&&(n.level=7&c),32&c&&(n.hidden=!0),64&c&&(n.hpt=l/20),n}},523:{},545:{f:Ed},549:{f:vd},566:{},574:{f:function(a,n,l){return l&&2<=l.biff&&l.biff<5?{}:{RTL:64&a.read_shift(2)}}},638:{f:function(c){var n=c.read_shift(2),l=c.read_shift(2),c=gd(c);return{r:n,c:l,ixfe:c[0],rknum:c[1]}}},659:{},1048:{},1054:{f:function(a,n,l){return[a.read_shift(2),fo(a,0,l)]}},1084:{},1212:{f:function(a,n,l){var c=yd(a);a.l++;var f=a.read_shift(1);return[function(h,d,m){var g,y=h.l+d,v=h.read_shift(2),x=Ri(h,v,m);return v==65535?[[],vs(h,d-2)]:(d!==v+2&&(g=Ti(h,y-v-2,x,m)),[x,g])}(a,n-=8,l),f,c]}},2048:{f:function(a,n){return a.read_shift(2),[Cn(a),a.read_shift((n-10)/2,"dbcs-cont").replace(bt,"")]}},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:Fn},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:Ua},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:function(a){a.l+=2;var n={cxfs:0,crc:0};return n.cxfs=a.read_shift(2),n.crc=a.read_shift(4),n},r:12},2173:{f:function(a,n){a.l,a.l+=2,n=a.read_shift(2),a.l+=2;for(var l=a.read_shift(2),c=[];0<l--;)c.push($1(a,a.l));return{ixfe:n,ext:c}},r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:$r,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:function(a,n,l){if(!(l.biff<8)){var c=a.read_shift(2),f=a.read_shift(2);return[co(a,c,l),co(a,f,l)]}a.l+=n},r:12},2197:{},2198:{f:function(a,n,l){var c=a.l+n;if(a.read_shift(4)!==124226)if(l.cellStyles){var f,h=a.slice(a.l);a.l=c;try{f=iu(h,{type:"array"})}catch{return}if(n=zs(f,"theme/theme/theme1.xml",!0),n)return Dh(n,l)}else a.l=c},r:12},2199:{},2200:{},2201:{},2202:{f:function(a){return[a.read_shift(4)!==0,a.read_shift(4)!==0,a.read_shift(4)]},r:12},2203:{f:Ua},2204:{},2205:{},2206:{},2207:{},2211:{f:function(a){var n,l,c=(l=(n=a).read_shift(2),c=n.read_shift(2),n.l+=8,{type:l,flags:c});if(c.type!=2211)throw new Error("Invalid Future Record "+c.type);return a.read_shift(4)!==0}},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:as},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:function(a,n,l){var c={area:!1};return l.biff!=5?a.l+=n:(n=a.read_shift(1),a.l+=3,16&n&&(c.area=!0)),c}},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:function(a){for(var n=a.read_shift(2),l=[];0<n--;)l.push(md(a));return l}},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:wd},1:{},2:{f:function(a){var n=ya(a);return++a.l,a=a.read_shift(2),n.t="n",n.val=a,n}},3:{f:function(a){var n=ya(a);return++a.l,a=xs(a),n.t="n",n.val=a,n}},4:{f:function(a,n,l){l.biffguess&&l.biff==5&&(l.biff=2);var c=ya(a);return++a.l,l=fo(a,0,l),c.t="str",c.val=l,c}},5:{f:Cd},7:{f:function(a){var n=a.read_shift(1);return n===0?(a.l++,""):a.read_shift(n,"sbcs-cont")}},8:{},9:{f:Fn},11:{},22:{f:as},30:{f:Jo},31:{},32:{},33:{f:Ed},36:{},37:{f:vd},50:{f:function(a,n){a.l+=6,a.l+=2,a.l+=1,a.l+=3,a.l+=1,a.l+=n-13}},62:{},52:{},67:{},68:{f:as},69:{},86:{},126:{},127:{f:function(a){var n=a.read_shift(2),c=a.read_shift(2),l=a.read_shift(4),c={fmt:n,env:c,len:l,data:a.slice(a.l,a.l+l)};return a.l+=l,c}},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:function(a,h,d){var c=a.l+h,f=ya(a),h=a.read_shift(2),d=co(a,h,d);return a.l=c,f.t="str",f.val=d,f}},223:{},234:{},354:{},421:{},518:{f:Fc},521:{f:Fn},536:{f:Ad},547:{f:Dd},561:{},579:{},1030:{f:Fc},1033:{f:Fn},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function We(a,n,l,c){var f=n;isNaN(f)||(n=c||(l||[]).length||0,(c=a.next(4)).write_shift(2,f),c.write_shift(2,n),0<n&&jl(l)&&a.push(l))}function Ni(a,n,l){return(a=a||be(7)).write_shift(2,n),a.write_shift(2,l),a.write_shift(2,0),a.write_shift(1,0),a}function yb(a,n,l,c){if(n.v!=null)switch(n.t){case"d":case"n":var f=n.t=="d"?ns(Nr(n.v)):n.v;return void(f==(0|f)&&0<=f&&f<65536?We(a,2,(v=l,x=c,C=f,Ni(F=be(9),v,x),F.write_shift(2,C),F)):We(a,3,(C=l,F=c,f=f,Ni(y=be(15),C,F),y.write_shift(8,f,"f"),y)));case"b":case"e":return void We(a,5,(y=l,h=c,d=n.v,m=n.t,Ni(g=be(9),y,h),ud(d,m||"b",g),g));case"s":case"str":return void We(a,4,(h=l,d=c,m=(n.v||"").slice(0,255),Ni(g=be(8+2*m.length),h,d),g.write_shift(1,m.length),g.write_shift(m.length,m,"sbcs"),g.l<g.length?g.slice(0,g.l):g))}var h,d,m,g,y,v,x,C,F;We(a,1,Ni(null,l,c))}function _b(a,n){for(var l=n||{},n=Is(),c=0,f=0;f<a.SheetNames.length;++f)a.SheetNames[f]==l.sheet&&(c=f);if(c==0&&l.sheet&&a.SheetNames[0]!=l.sheet)throw new Error("Sheet not found: "+l.sheet);return We(n,l.biff==4?1033:l.biff==3?521:9,ic(0,16,l)),function(h,d,m){var g,y,v=Array.isArray(d),x=rr(d["!ref"]||"A1"),C=[];if(255<x.e.c||16383<x.e.r){if(m.WTF)throw new Error("Range "+(d["!ref"]||"A1")+" exceeds format limit A1:IV16384");x.e.c=Math.min(x.e.c,255),x.e.r=Math.min(x.e.c,16383),g=Pt(x)}for(var F=x.s.r;F<=x.e.r;++F){y=Kr(F);for(var k=x.s.c;k<=x.e.c;++k){F===x.s.r&&(C[k]=Vr(k)),g=C[k]+y;var D=v?(d[F]||[])[k]:d[g];D&&yb(h,D,F,k)}}}(n,a.Sheets[a.SheetNames[c]],l),We(n,10),n.end()}function vb(a,n,l){var c,f;We(a,49,(f=(c={sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"}).name||"Arial",(a=be((l=(a=l)&&a.biff==5)?15+f.length:16+2*f.length)).write_shift(2,20*(c.sz||12)),a.write_shift(4,0),a.write_shift(2,400),a.write_shift(4,0),a.write_shift(2,0),a.write_shift(1,f.length),l||a.write_shift(1,1),a.write_shift((l?1:2)*f.length,f,l?"sbcs":"utf16le"),a))}function wb(a,n,l){n&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(c){for(var f,h,d,m,g=c[0];g<=c[1];++g)n[g]!=null&&We(a,1054,(f=g,h=n[g],m=void 0,d=(d=l)&&d.biff==5,(m=m||be(d?3+h.length:5+2*h.length)).write_shift(2,f),m.write_shift(d?1:2,h.length),d||m.write_shift(1,1),m.write_shift((d?1:2)*h.length,h,d?"sbcs":"utf16le"),(m=m.length>m.l?m.slice(0,m.l):m).l==null&&(m.l=m.length),m))})}function xb(a,n){for(var l=0;l<n["!links"].length;++l){var c=n["!links"][l];We(a,440,l1(c)),c[1].Tooltip&&We(a,2048,function(f){var h=f[1].Tooltip,d=be(10+2*(h.length+1));d.write_shift(2,2048),f=jr(f[0]),d.write_shift(2,f.r),d.write_shift(2,f.r),d.write_shift(2,f.c),d.write_shift(2,f.c);for(var m=0;m<h.length;++m)d.write_shift(2,h.charCodeAt(m));return d.write_shift(2,0),d}(c))}delete n["!links"]}function Cb(a,n){var l;n&&(l=0,n.forEach(function(c,f){var h;++l<=256&&c&&We(a,125,(h=Un(f,c),c=f,(f=be(12)).write_shift(2,c),f.write_shift(2,c),f.write_shift(2,256*h.width),f.write_shift(2,0),c=0,h.hidden&&(c|=1),f.write_shift(1,c),c=h.level||0,f.write_shift(1,c),f.write_shift(2,0),f))}))}function Fb(a,n,l,c,f){var h,d,m,g,y,v,x,C,F,k,D,P=16+ja(f.cellXfs,n,f);if(n.v!=null||n.bf)if(n.bf)We(a,6,u2(n,l,c,0,P));else switch(n.t){case"d":case"n":var L=n.t=="d"?ns(Nr(n.v)):n.v;We(a,515,(v=l,x=c,C=L,F=P,k=be(14),uo(v,x,F,k),Bo(C,k),k));break;case"b":case"e":We(a,517,(L=l,v=c,x=n.v,F=P,C=n.t,k=be(8),uo(L,v,F,k),ud(x,C,k),k));break;case"s":case"str":f.bookSST?(D=Ac(f.Strings,n.v,f.revStrings),We(a,253,(h=l,d=c,m=D,g=P,y=be(10),uo(h,d,g,y),y.write_shift(4,m),y))):We(a,516,(D=l,h=c,d=(n.v||"").slice(0,255),g=P,m=be(+(y=!(m=f)||m.biff==8)+8+(1+y)*d.length),uo(D,h,g,m),m.write_shift(2,d.length),y&&m.write_shift(1,1),m.write_shift((1+y)*d.length,d,y?"utf16le":"sbcs"),m));break;default:We(a,513,uo(l,c,P))}else We(a,513,uo(l,c,P))}function Db(a,n,l){var c,f,h=Is(),O=l.SheetNames[a],d=l.Sheets[O]||{},m=(l||{}).Workbook||{},g=(m.Sheets||[])[a]||{},y=Array.isArray(d),v=n.biff==8,x=[],C=rr(d["!ref"]||"A1"),F=v?65536:16384;if(255<C.e.c||C.e.r>=F){if(n.WTF)throw new Error("Range "+(d["!ref"]||"A1")+" exceeds format limit A1:IV16384");C.e.c=Math.min(C.e.c,255),C.e.r=Math.min(C.e.c,F-1)}We(h,2057,ic(0,16,n)),We(h,13,Js(1)),We(h,12,Js(100)),We(h,15,Ls(!0)),We(h,17,Ls(!1)),We(h,16,Bo(.001)),We(h,95,Ls(!0)),We(h,42,Ls(!1)),We(h,43,Ls(!1)),We(h,130,Js(1)),We(h,128,(l=[0,0],(a=be(8)).write_shift(4,0),a.write_shift(2,l[0]?l[0]+1:0),a.write_shift(2,l[1]?l[1]+1:0),a)),We(h,131,Ls(!1)),We(h,132,Ls(!1)),v&&Cb(h,d["!cols"]),We(h,512,(F=C,(l=be(2*(a=(l=n).biff!=8&&l.biff?2:4)+6)).write_shift(a,F.s.r),l.write_shift(a,F.e.r+1),l.write_shift(2,F.s.c),l.write_shift(2,F.e.c+1),l.write_shift(2,0),l)),v&&(d["!links"]=[]);for(var k=C.s.r;k<=C.e.r;++k){f=Kr(k);for(var D=C.s.c;D<=C.e.c;++D){k===C.s.r&&(x[D]=Vr(D)),c=x[D]+f;var P=y?(d[k]||[])[D]:d[c];P&&(Fb(h,P,k,D,n),v&&P.l&&d["!links"].push([c,P.l]))}}var L,R,O=g.CodeName||g.name||O;return v&&We(h,574,(m=(m.Views||[])[0],R=be(18),L=1718,m&&m.RTL&&(L|=64),R.write_shift(2,L),R.write_shift(4,0),R.write_shift(4,64),R.write_shift(4,0),R.write_shift(4,0),R)),v&&(d["!merges"]||[]).length&&We(h,229,function(I){var V=be(2+8*I.length);V.write_shift(2,I.length);for(var X=0;X<I.length;++X)bd(I[X],V);return V}(d["!merges"])),v&&xb(h,d),We(h,442,dd(O)),v&&(L=h,R=d,(O=be(19)).write_shift(4,2151),O.write_shift(4,0),O.write_shift(4,0),O.write_shift(2,3),O.write_shift(1,1),O.write_shift(4,0),We(L,2151,O),(O=be(39)).write_shift(4,2152),O.write_shift(4,0),O.write_shift(4,0),O.write_shift(2,3),O.write_shift(1,0),O.write_shift(4,0),O.write_shift(2,1),O.write_shift(4,4),O.write_shift(2,0),bd(rr(R["!ref"]||"A1"),O),O.write_shift(4,4),We(L,2152,O)),We(h,10),h.end()}function Ab(a,n,l){var c=Is(),m=(a||{}).Workbook||{},f=m.Sheets||[],h=m.WBProps||{},d=l.biff==8,m=l.biff==5;We(c,2057,ic(0,5,l)),l.bookType=="xla"&&We(c,135),We(c,225,d?Js(1200):null),We(c,193,function(L,R){R=R||be(L);for(var O=0;O<L;++O)R.write_shift(1,0);return R}(2)),m&&We(c,191),m&&We(c,192),We(c,226),We(c,92,function(L){var R=!L||L.biff==8,O=be(R?112:54);for(O.write_shift(L.biff==8?2:1,7),R&&O.write_shift(1,0),O.write_shift(4,859007059),O.write_shift(4,5458548|(R?0:536870912));O.l<O.length;)O.write_shift(1,R?0:32);return O}(l)),We(c,66,Js(d?1200:1252)),d&&We(c,353,Js(0)),d&&We(c,448),We(c,317,function(L){for(var R=be(2*L),O=0;O<L;++O)R.write_shift(2,O+1);return R}(a.SheetNames.length)),d&&a.vbaraw&&We(c,211),d&&a.vbaraw&&We(c,442,dd(h.CodeName||"ThisWorkbook")),We(c,156,Js(17)),We(c,25,Ls(!1)),We(c,18,Ls(!1)),We(c,19,Js(0)),d&&We(c,431,Ls(!1)),d&&We(c,444,Js(0)),We(c,61,((m=be(18)).write_shift(2,0),m.write_shift(2,0),m.write_shift(2,29280),m.write_shift(2,17600),m.write_shift(2,56),m.write_shift(2,0),m.write_shift(2,0),m.write_shift(2,1),m.write_shift(2,500),m)),We(c,64,Ls(!1)),We(c,141,Js(0)),We(c,34,Ls(((h=a).Workbook&&h.Workbook.WBProps&&Ir(h.Workbook.WBProps.date1904)?"true":"false")=="true")),We(c,14,Ls(!0)),d&&We(c,439,Ls(!1)),We(c,218,Js(0)),vb(c,0,l),wb(c,a.SSF,l),function(L,R){for(var O=0;O<16;++O)We(L,224,xd({numFmtId:0,style:!0},0,R));R.cellXfs.forEach(function(I){We(L,224,xd(I,0,R))})}(c,l),d&&We(c,352,Ls(!1)),m=c.end(),h=Is(),d&&We(h,140,((P=P||be(4)).write_shift(2,1),P.write_shift(2,1),P)),d&&l.Strings&&function(L,R,O){var I=(O||[]).length||0;if(I<=8224)return We(L,R,O,I);if(!isNaN(R)){for(var V=O.parts||[],X=0,ae=0,te=0;te+(V[X]||8224)<=8224;)te+=V[X]||8224,X++;var ce=L.next(4);for(ce.write_shift(2,R),ce.write_shift(2,te),L.push(O.slice(ae,ae+te)),ae+=te;ae<I;){for((ce=L.next(4)).write_shift(2,60),te=0;te+(V[X]||8224)<=8224;)te+=V[X]||8224,X++;ce.write_shift(2,te),L.push(O.slice(ae,ae+te)),ae+=te}}}(h,252,o1(l.Strings)),We(h,10);for(var c=h.end(),g=Is(),y=0,v=0,v=0;v<a.SheetNames.length;++v)y+=(d?12:11)+(d?2:1)*a.SheetNames[v].length;var x,C,F,k,D=m.length+y+c.length;for(v=0;v<a.SheetNames.length;++v)We(g,133,(x={pos:D,hs:(f[v]||{}).Hidden||0,dt:0,name:a.SheetNames[v]},k=F=void 0,F=!(C=l)||8<=C.biff?2:1,(k=be(8+F*x.name.length)).write_shift(4,x.pos),k.write_shift(1,x.hs||0),k.write_shift(1,x.dt),k.write_shift(1,x.name.length),8<=C.biff&&k.write_shift(1,1),k.write_shift(F*x.name.length,x.name,C.biff<8?"sbcs":"utf16le"),(C=k.slice(0,k.l)).l=k.l,C)),D+=n[v].length;var P=g.end();if(y!=P.length)throw new Error("BS8 "+y+" != "+P.length);return h=[],m.length&&h.push(m),P.length&&h.push(P),c.length&&h.push(c),ut(h)}function dp(a,n){for(var l=0;l<=a.SheetNames.length;++l){var c=a.Sheets[a.SheetNames[l]];c&&c["!ref"]&&255<ks(c["!ref"]).e.c&&typeof console<"u"&&console.error&&console.error("Worksheet '"+a.SheetNames[l]+"' extends beyond column IV (255). Data may be lost.")}var f=n||{};switch(f.biff||2){case 8:case 5:return function(h,d){var m=d||{},g=[];h&&!h.SSF&&(h.SSF=Lr(oe)),h&&h.SSF&&(Mo(),ni(h.SSF),m.revssf=cn(h.SSF),m.revssf[h.SSF[65535]]=0,m.ssf=h.SSF),m.Strings=[],m.Strings.Count=0,m.Strings.Unique=0,Ic(m),m.cellXfs=[],ja(m.cellXfs,{},{revssf:{General:0}}),h.Props||(h.Props={});for(var y=0;y<h.SheetNames.length;++y)g[g.length]=Db(y,m,h);return g.unshift(Ab(h,g,m)),ut(g)}(a,n);case 4:case 3:case 2:return _b(a,n)}throw new Error("invalid type "+f.bookType+" for BIFF")}function hp(a,n){var l=n||{},c=l.dense?[]:{},f=(a=a.replace(/<!--.*?-->/g,"")).match(/<table/i);if(!f)throw new Error("Invalid HTML: could not find <table>");for(var h,n=a.match(/<\/table/i),C=f.index,d=n&&n.index||a.length,m=Rg(a.slice(C,d),/(:?<tr[^>]*>)/i,"<tr>"),g=-1,y=0,v={s:{r:1e7,c:1e7},e:{r:0,c:0}},x=[],C=0;C<m.length;++C){var F=m[C].trim(),k=F.slice(0,3).toLowerCase();if(k!="<tr"){if(k=="<td"||k=="<th")for(var D=F.split(/<\/t[dh]>/i),d=0;d<D.length;++d){var P=D[d].trim();if(P.match(/<t[dh]/i)){for(var L=P,R=0;L.charAt(0)=="<"&&-1<(R=L.indexOf(">"));)L=L.slice(R+1);for(var O=0;O<x.length;++O){var I=x[O];I.s.c==y&&I.s.r<g&&g<=I.e.r&&(y=I.e.c+1,O=-1)}var V=Tt(P.slice(0,P.indexOf(">"))),X=V.colspan?+V.colspan:1;(1<(h=+V.rowspan)||1<X)&&x.push({s:{r:g,c:y},e:{r:g+(h||1)-1,c:y+X-1}}),P=V.t||V["data-t"]||"",L.length&&(L=gu(L),v.s.r>g&&(v.s.r=g),v.e.r<g&&(v.e.r=g),v.s.c>y&&(v.s.c=y),v.e.c<y&&(v.e.c=y),L.length&&(V={t:"s",v:L},l.raw||!L.trim().length||P=="s"||(L==="TRUE"?V={t:"b",v:!0}:L==="FALSE"?V={t:"b",v:!1}:isNaN(ia(L))?isNaN(Oo(L).getDate())||(V={t:"d",v:Nr(L)},(V=l.cellDates?V:{t:"n",v:ns(V.v)}).z=l.dateNF||oe[14]):V={t:"n",v:ia(L)}),l.dense?(c[g]||(c[g]=[]),c[g][y]=V):c[Rt({r:g,c:y})]=V)),y+=X}}}else{if(++g,l.sheetRows&&l.sheetRows<=g){--g;break}y=0}}return c["!ref"]=Pt(v),x.length&&(c["!merges"]=x),c}function pp(a,n,l,c){for(var f=a["!merges"]||[],h=[],d=n.s.c;d<=n.e.c;++d){for(var m,g,y,v,x=0,C=0,F=0;F<f.length;++F)if(!(f[F].s.r>l||f[F].s.c>d||f[F].e.r<l||f[F].e.c<d)){if(f[F].s.r<l||f[F].s.c<d){x=-1;break}x=f[F].e.r-f[F].s.r+1,C=f[F].e.c-f[F].s.c+1;break}x<0||(m=Rt({r:l,c:d}),y=(g=c.dense?(a[l]||[])[d]:a[m])&&g.v!=null&&(g.h||Ml(g.w||(ba(g),g.w)||""))||"",v={},1<x&&(v.rowspan=x),1<C&&(v.colspan=C),c.editable?y='<span contenteditable="true">'+y+"</span>":g&&(v["data-t"]=g&&g.t||"z",g.v!=null&&(v["data-v"]=g.v),g.z!=null&&(v["data-z"]=g.z),g.l&&(g.l.Target||"#").charAt(0)!="#"&&(y='<a href="'+g.l.Target+'">'+y+"</a>")),v.id=(c.id||"sjs")+"-"+m,h.push(je("td",y,v)))}return"<tr>"+h.join("")+"</tr>"}var mp='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',gp="</body></html>";function bp(a,n,l){return[].join("")+"<table"+(l&&l.id?' id="'+l.id+'"':"")+">"}function yp(a,f){var l=f||{},c=l.header!=null?l.header:mp,f=l.footer!=null?l.footer:gp,h=[c],d=ks(a["!ref"]);l.dense=Array.isArray(a),h.push(bp(0,0,l));for(var m=d.s.r;m<=d.e.r;++m)h.push(pp(a,d,m,l));return h.push("</table>"+f),h.join("")}function _p(a,n,l){var c=l||{},f=0,h=0;c.origin!=null&&(typeof c.origin=="number"?f=c.origin:(f=(l=typeof c.origin=="string"?jr(c.origin):c.origin).r,h=l.c));var d=n.getElementsByTagName("tr"),m=Math.min(c.sheetRows||1e7,d.length),g={s:{r:0,c:0},e:{r:f,c:h}};a["!ref"]&&(n=ks(a["!ref"]),g.s.r=Math.min(g.s.r,n.s.r),g.s.c=Math.min(g.s.c,n.s.c),g.e.r=Math.max(g.e.r,n.e.r),g.e.c=Math.max(g.e.c,n.e.c),f==-1&&(g.e.r=f=n.e.r+1));var y,v,x=[],C=0,F=a["!rows"]||(a["!rows"]=[]),k=0,D=0,P=0,L=0;for(a["!cols"]||(a["!cols"]=[]);k<d.length&&D<m;++k){var R=d[k];if(wp(R)){if(c.display)continue;F[D]={hidden:!0}}for(var O=R.children,P=L=0;P<O.length;++P){var I=O[P];if(!c.display||!wp(I)){for(var V=I.hasAttribute("data-v")?I.getAttribute("data-v"):I.hasAttribute("v")?I.getAttribute("v"):gu(I.innerHTML),X=I.getAttribute("data-z")||I.getAttribute("z"),C=0;C<x.length;++C){var ae=x[C];ae.s.c==L+h&&ae.s.r<D+f&&D+f<=ae.e.r&&(L=ae.e.c+1-h,C=-1)}v=+I.getAttribute("colspan")||1,(1<(y=+I.getAttribute("rowspan")||1)||1<v)&&x.push({s:{r:D+f,c:L+h},e:{r:D+f+(y||1)-1,c:L+h+(v||1)-1}});var te={t:"s",v:V},ce=I.getAttribute("data-t")||I.getAttribute("t")||"";V!=null&&(V.length==0?te.t=ce||"z":c.raw||V.trim().length==0||ce=="s"||(V==="TRUE"?te={t:"b",v:!0}:V==="FALSE"?te={t:"b",v:!1}:isNaN(ia(V))?isNaN(Oo(V).getDate())||(te={t:"d",v:Nr(V)},(te=c.cellDates?te:{t:"n",v:ns(te.v)}).z=c.dateNF||oe[14]):te={t:"n",v:ia(V)})),te.z===void 0&&X!=null&&(te.z=X);var _e="",we=I.getElementsByTagName("A");if(we&&we.length)for(var de=0;de<we.length&&(!we[de].hasAttribute("href")||(_e=we[de].getAttribute("href")).charAt(0)=="#");++de);_e&&_e.charAt(0)!="#"&&(te.l={Target:_e}),c.dense?(a[D+f]||(a[D+f]=[]),a[D+f][L+h]=te):a[Rt({c:L+h,r:D+f})]=te,g.e.c<L+h&&(g.e.c=L+h),L+=v}}++D}return x.length&&(a["!merges"]=(a["!merges"]||[]).concat(x)),g.e.r=Math.max(g.e.r,D-1+f),a["!ref"]=Pt(g),m<=D&&(a["!fullref"]=Pt((g.e.r=d.length-k+D-1+f,g))),a}function vp(a,n){return _p((n||{}).dense?[]:{},a,n)}function wp(a){var l,n="",l=(l=a).ownerDocument.defaultView&&typeof l.ownerDocument.defaultView.getComputedStyle=="function"?l.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null;return(n=(n=l?l(a).getPropertyValue("display"):n)||a.style&&a.style.display)==="none"}var xp={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function Cp(a,n){var l=n||{},c,f,h,d,m,g=Il(a),y=[],v={name:""},x="",C=0,F={},k=[],D=l.dense?[]:{},P={value:""},L="",R=0,O=[],I=-1,V=-1,X={s:{r:1e6,c:1e7},e:{r:0,c:0}},ae=0,te={},ce=[],_e={},we=[],de=1,ke=1,qe=[],He={Names:[]},Ve={},ze=["",""],Ne=[],Fe={},$e="",rt=0,gt=!1,Nt=!1,Xe=0;for(di.lastIndex=0,g=g.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");d=di.exec(g);)switch(d[3]=d[3].replace(/_.*$/,"")){case"table":case"工作表":d[1]==="/"?(X.e.c>=X.s.c&&X.e.r>=X.s.r?D["!ref"]=Pt(X):D["!ref"]="A1:A1",0<l.sheetRows&&l.sheetRows<=X.e.r&&(D["!fullref"]=D["!ref"],X.e.r=l.sheetRows-1,D["!ref"]=Pt(X)),ce.length&&(D["!merges"]=ce),we.length&&(D["!rows"]=we),h.name=h.名称||h.name,typeof JSON<"u"&&JSON.stringify(h),k.push(h.name),F[h.name]=D,Nt=!1):d[0].charAt(d[0].length-2)!=="/"&&(h=Tt(d[0],!1),I=V=-1,X.s.r=X.s.c=1e7,X.e.r=X.e.c=0,D=l.dense?[]:{},ce=[],we=[],Nt=!0);break;case"table-row-group":d[1]==="/"?--ae:++ae;break;case"table-row":case"行":if(d[1]==="/"){I+=de,de=1;break}if((Re=Tt(d[0],!1)).行号?I=Re.行号-1:I==-1&&(I=0),(de=+Re["number-rows-repeated"]||1)<10)for(Xe=0;Xe<de;++Xe)0<ae&&(we[I+Xe]={level:ae});V=-1;break;case"covered-table-cell":d[1]!=="/"&&++V,l.sheetStubs&&(l.dense?(D[I]||(D[I]=[]),D[I][V]={t:"z"}):D[Rt({r:I,c:V})]={t:"z"}),L="",O=[];break;case"table-cell":case"数据":if(d[0].charAt(d[0].length-2)==="/")++V,P=Tt(d[0],!1),ke=parseInt(P["number-columns-repeated"]||"1",10),m={t:"z",v:null},P.formula&&l.cellFormula!=0&&(m.f=Wh(pr(P.formula))),(P.数据类型||P["value-type"])=="string"&&(m.t="s",m.v=pr(P["string-value"]||""),l.dense?(D[I]||(D[I]=[]),D[I][V]=m):D[Rt({r:I,c:V})]=m),V+=ke-1;else if(d[1]!=="/"){L="",R=0,O=[],ke=1;var Re=de?I+de-1:I;if(++V>X.e.c&&(X.e.c=V),V<X.s.c&&(X.s.c=V),I<X.s.r&&(X.s.r=I),Re>X.e.r&&(X.e.r=Re),Ne=[],Fe={},m={t:(P=Tt(d[0],!1)).数据类型||P["value-type"],v:null},l.cellFormula)if(P.formula&&(P.formula=pr(P.formula)),P["number-matrix-columns-spanned"]&&P["number-matrix-rows-spanned"]&&(_e={s:{r:I,c:V},e:{r:I+(parseInt(P["number-matrix-rows-spanned"],10)||0)-1,c:V+(parseInt(P["number-matrix-columns-spanned"],10)||0)-1}},m.F=Pt(_e),qe.push([_e,m.F])),P.formula)m.f=Wh(P.formula);else for(Xe=0;Xe<qe.length;++Xe)I>=qe[Xe][0].s.r&&I<=qe[Xe][0].e.r&&V>=qe[Xe][0].s.c&&V<=qe[Xe][0].e.c&&(m.F=qe[Xe][1]);switch((P["number-columns-spanned"]||P["number-rows-spanned"])&&(_e={s:{r:I,c:V},e:{r:I+(parseInt(P["number-rows-spanned"],10)||0)-1,c:V+(parseInt(P["number-columns-spanned"],10)||0)-1}},ce.push(_e)),P["number-columns-repeated"]&&(ke=parseInt(P["number-columns-repeated"],10)),m.t){case"boolean":m.t="b",m.v=Ir(P["boolean-value"]);break;case"float":case"percentage":case"currency":m.t="n",m.v=parseFloat(P.value);break;case"date":m.t="d",m.v=Nr(P["date-value"]),l.cellDates||(m.t="n",m.v=ns(m.v)),m.z="m/d/yy";break;case"time":m.t="n",m.v=function(Kt){var vr=0,Jr=0,Z=!1,wr=Kt.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!wr)throw new Error("|"+Kt+"| is not an ISO8601 Duration");for(var _r=1;_r!=wr.length;++_r)if(wr[_r]){switch(Jr=1,3<_r&&(Z=!0),wr[_r].slice(wr[_r].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+wr[_r].slice(wr[_r].length-1));case"D":Jr*=24;case"H":Jr*=60;case"M":if(!Z)throw new Error("Unsupported ISO Duration Field: M");Jr*=60}vr+=Jr*parseInt(wr[_r],10)}return vr}(P["time-value"])/86400,l.cellDates&&(m.t="d",m.v=dn(m.v)),m.z="HH:MM:SS";break;case"number":m.t="n",m.v=parseFloat(P.数据数值);break;default:if(m.t!=="string"&&m.t!=="text"&&m.t)throw new Error("Unsupported value type "+m.t);m.t="s",P["string-value"]!=null&&(L=pr(P["string-value"]),O=[])}}else{if(gt=!1,m.t==="s"&&(m.v=L||"",O.length&&(m.R=O),gt=R==0),Ve.Target&&(m.l=Ve),0<Ne.length&&(m.c=Ne,Ne=[]),L&&l.cellText!==!1&&(m.w=L),gt&&(m.t="z",delete m.v),(!gt||l.sheetStubs)&&!(l.sheetRows&&l.sheetRows<=I))for(var kt=0;kt<de;++kt){if(ke=parseInt(P["number-columns-repeated"]||"1",10),l.dense)for(D[I+kt]||(D[I+kt]=[]),D[I+kt][V]=kt==0?m:Lr(m);0<--ke;)D[I+kt][V+ke]=Lr(m);else for(D[Rt({r:I+kt,c:V})]=m;0<--ke;)D[Rt({r:I+kt,c:V+ke})]=Lr(m);X.e.c<=V&&(X.e.c=V)}V+=(ke=parseInt(P["number-columns-repeated"]||"1",10))-1,ke=0,m={},L="",O=[]}Ve={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(d[1]==="/"){if((c=y.pop())[0]!==d[3])throw"Bad state: "+c}else d[0].charAt(d[0].length-2)!=="/"&&y.push([d[3],!0]);break;case"annotation":if(d[1]==="/"){if((c=y.pop())[0]!==d[3])throw"Bad state: "+c;Fe.t=L,O.length&&(Fe.R=O),Fe.a=$e,Ne.push(Fe)}else d[0].charAt(d[0].length-2)!=="/"&&y.push([d[3],!1]);L=$e="",R=rt=0,O=[];break;case"creator":d[1]==="/"?$e=g.slice(rt,d.index):rt=d.index+d[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(d[1]==="/"){if((c=y.pop())[0]!==d[3])throw"Bad state: "+c}else d[0].charAt(d[0].length-2)!=="/"&&y.push([d[3],!1]);L="",R=0,O=[];break;case"scientific-number":case"currency-symbol":case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(d[1]==="/"){if(te[v.name]=x,(c=y.pop())[0]!==d[3])throw"Bad state: "+c}else d[0].charAt(d[0].length-2)!=="/"&&(x="",v=Tt(d[0],!1),y.push([d[3],!0]));break;case"script":case"libraries":case"automatic-styles":break;case"default-style":case"page-layout":case"style":case"map":case"font-face":case"paragraph-properties":case"table-properties":case"table-column-properties":case"table-row-properties":case"table-cell-properties":break;case"number":switch(y[y.length-1][0]){case"time-style":case"date-style":f=Tt(d[0],!1),x+=xp[d[3]][f.style==="long"?1:0]}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(y[y.length-1][0]){case"time-style":case"date-style":f=Tt(d[0],!1),x+=xp[d[3]][f.style==="long"?1:0]}break;case"boolean-style":case"boolean":case"text-style":break;case"text":if(d[0].slice(-2)==="/>")break;if(d[1]==="/")switch(y[y.length-1][0]){case"number-style":case"date-style":case"time-style":x+=g.slice(C,d.index)}else C=d.index+d[0].length;break;case"named-range":ze=Dc((f=Tt(d[0],!1))["cell-range-address"]);var ar={Name:f.name,Ref:ze[0]+"!"+ze[1]};Nt&&(ar.Sheet=k.length),He.Names.push(ar);break;case"text-content":case"text-properties":case"embedded-text":break;case"body":case"电子表格":case"forms":case"table-column":case"table-header-rows":case"table-rows":case"table-column-group":case"table-header-columns":case"table-columns":case"null-date":case"graphic-properties":case"calculation-settings":case"named-expressions":case"label-range":case"label-ranges":case"named-expression":case"sort":case"sort-by":case"sort-groups":case"tab":case"line-break":case"span":break;case"p":case"文本串":if(-1<["master-styles"].indexOf(y[y.length-1][0]))break;d[1]!=="/"||P&&P["string-value"]?(Tt(d[0],!1),R=d.index+d[0].length):(ar=(ar=g.slice(R,d.index)).replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,function(Kt,vr){return Array(parseInt(vr,10)+1).join(" ")}).replace(/<text:tab[^>]*\/>/g," ").replace(/<text:line-break\/>/g,` `),ar=[pr(ar.replace(/<[^>]*>/g,""))],L=(0<L.length?L+` `:"")+ar[0]);break;case"s":break;case"database-range":if(d[1]==="/")break;try{F[(ze=Dc(Tt(d[0])["target-range-address"]))[0]]["!autofilter"]={ref:ze[1]}}catch{}break;case"date":case"object":break;case"title":case"标题":case"desc":case"binary-data":case"table-source":case"scenario":case"iteration":case"content-validations":case"content-validation":case"help-message":case"error-message":case"database-ranges":case"filter":case"filter-and":case"filter-or":case"filter-condition":case"list-level-style-bullet":case"list-level-style-number":case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":case"config-item":case"page-number":case"page-count":case"time":case"cell-range-source":case"detective":case"operation":case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":case"properties":case"property":break;case"a":if(d[1]!=="/"){if(!(Ve=Tt(d[0],!1)).href)break;Ve.Target=pr(Ve.href),delete Ve.href,Ve.Target.charAt(0)=="#"&&-1<Ve.Target.indexOf(".")?(ze=Dc(Ve.Target.slice(1)),Ve.Target="#"+ze[0]+"!"+ze[1]):Ve.Target.match(/^\.\.[\\\/]/)&&(Ve.Target=Ve.Target.slice(3))}break;case"table-protection":case"data-pilot-grand-total":case"office-document-common-attrs":break;default:switch(d[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(l.WTF)throw new Error(d)}}return a={Sheets:F,SheetNames:k,Workbook:He},l.bookSheets&&delete a.Sheets,a}function Fp(a,n){n=n||{},Ys(a,"META-INF/manifest.xml")&&function(c,f){for(var h,d,m=Il(c);h=di.exec(m);)switch(h[3]){case"manifest":break;case"file-entry":if((d=Tt(h[0],!1)).path=="/"&&d.type!==Zg)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(f&&f.WTF)throw h}}(ss(a,"META-INF/manifest.xml"),n);var l=zs(a,"content.xml");if(!l)throw new Error("Missing content.xml in ODS / UOF file");return n=Cp(Tr(l),n),Ys(a,"meta.xml")&&(n.Props=Hu(ss(a,"meta.xml"))),n}function Dp(a,n){return Cp(a,n)}var Sb=function(){var a=["<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(""),n="<office:document-styles "+ui({"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"})+">"+a+"</office:document-styles>";return function(){return Zr+n}}(),Ap=function(){function a(l,c,f){var h=[];h.push(' <table:table table:name="'+Dr(c.SheetNames[f])+`" table:style-name="ta1"> `);var d=0,m=0,g=ks(l["!ref"]||"A1"),y=l["!merges"]||[],v=0,x=Array.isArray(l);if(l["!cols"])for(m=0;m<=g.e.c;++m)h.push(" <table:table-column"+(l["!cols"][m]?' table:style-name="co'+l["!cols"][m].ods+'"':"")+`></table:table-column> `);for(var C="",F=l["!rows"]||[],d=0;d<g.s.r;++d)C=F[d]?' table:style-name="ro'+F[d].ods+'"':"",h.push(" <table:table-row"+C+`></table:table-row> `);for(;d<=g.e.r;++d){for(C=F[d]?' table:style-name="ro'+F[d].ods+'"':"",h.push(" <table:table-row"+C+`> `),m=0;m<g.s.c;++m)h.push(n);for(;m<=g.e.c;++m){for(var k=!1,D={},P="",v=0;v!=y.length;++v)if(!(y[v].s.c>m||y[v].s.r>d||y[v].e.c<m||y[v].e.r<d)){y[v].s.c==m&&y[v].s.r==d||(k=!0),D["table:number-columns-spanned"]=y[v].e.c-y[v].s.c+1,D["table:number-rows-spanned"]=y[v].e.r-y[v].s.r+1;break}if(k)h.push(` <table:covered-table-cell/> `);else{var L=Rt({r:d,c:m}),R=x?(l[d]||[])[m]:l[L];if(R&&R.f&&(D["table:formula"]=Dr(("of:="+R.f.replace(wc,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")),R.F&&R.F.slice(0,L.length)==L&&(O=ks(R.F),D["table:number-matrix-columns-spanned"]=O.e.c-O.s.c+1,D["table:number-matrix-rows-spanned"]=O.e.r-O.s.r+1)),R){switch(R.t){case"b":P=R.v?"TRUE":"FALSE",D["office:value-type"]="boolean",D["office:boolean-value"]=R.v?"true":"false";break;case"n":P=R.w||String(R.v||0),D["office:value-type"]="float",D["office:value"]=R.v||0;break;case"s":case"str":P=R.v==null?"":R.v,D["office:value-type"]="string";break;case"d":P=R.w||Nr(R.v).toISOString(),D["office:value-type"]="date",D["office:date-value"]=Nr(R.v).toISOString(),D["table:style-name"]="ce1";break;default:h.push(n);continue}var O,L=Dr(P).replace(/ +/g,function(V){return'<text:s text:c="'+V.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>");R.l&&R.l.Target&&(L=je("text:a",L,{"xlink:href":(O=(O=(O=R.l.Target).charAt(0)=="#"?"#"+O.slice(1).replace(/\./,"!"):O).charAt(0)!="#"&&!O.match(/^\w+:/)?"../"+O:O).replace(/&/g,"&")})),h.push(" "+je("table:table-cell",je("text:p",L,{}),D)+` `)}else h.push(n)}}h.push(` </table:table-row> `)}return h.push(` </table:table> `),h.join("")}var n=` <table:table-cell /> `;return function(l,c){var f=[Zr],h=ui({"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: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"}),d=ui({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});c.bookType=="fods"?(f.push("<office:document"+h+d+`> `),f.push(Wu().replace(/office:document-meta/g,"office:meta"))):f.push("<office:document-content"+h+`> `),function(g,y){g.push(` <office:automatic-styles> `),g.push(` <number:date-style style:name="N37" number:automatic-order="true"> `),g.push(` <number:month number:style="long"/> `),g.push(` <number:text>/</number:text> `),g.push(` <number:day number:style="long"/> `),g.push(` <number:text>/</number:text> `),g.push(` <number:year/> `),g.push(` </number:date-style> `);var v=0;y.SheetNames.map(function(C){return y.Sheets[C]}).forEach(function(C){if(C&&C["!cols"]){for(var F=0;F<C["!cols"].length;++F)if(C["!cols"][F]){var k=C["!cols"][F];if(k.width==null&&k.wpx==null&&k.wch==null)continue;za(k),k.ods=v,k=C["!cols"][F].wpx+"px",g.push(' <style:style style:name="co'+v+`" style:family="table-column"> `),g.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+k+`"/> `),g.push(` </style:style> `),++v}}});var x=0;y.SheetNames.map(function(C){return y.Sheets[C]}).forEach(function(C){if(C&&C["!rows"])for(var F,k=0;k<C["!rows"].length;++k)C["!rows"][k]&&(C["!rows"][k].ods=x,F=C["!rows"][k].hpx+"px",g.push(' <style:style style:name="ro'+x+`" style:family="table-row"> `),g.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+F+`"/> `),g.push(` </style:style> `),++x)}),g.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1"> `),g.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/> `),g.push(` </style:style> `),g.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/> `),g.push(` </office:automatic-styles> `)}(f,l),f.push(` <office:body> `),f.push(` <office:spreadsheet> `);for(var m=0;m!=l.SheetNames.length;++m)f.push(a(l.Sheets[l.SheetNames[m]],l,m));return f.push(` </office:spreadsheet> `),f.push(` </office:body> `),c.bookType=="fods"?f.push("</office:document>"):f.push("</office:document-content>"),f.join("")}}();function Sp(a,n){if(n.bookType=="fods")return Ap(a,n);var l=Rl(),c=[],f=[];return It(l,"mimetype","application/vnd.oasis.opendocument.spreadsheet"),It(l,"content.xml",Ap(a,n)),c.push(["content.xml","text/xml"]),f.push(["content.xml","ContentFile"]),It(l,"styles.xml",Sb(a,n)),c.push(["styles.xml","text/xml"]),f.push(["styles.xml","StylesFile"]),It(l,"meta.xml",Zr+Wu()),c.push(["meta.xml","text/xml"]),f.push(["meta.xml","MetadataFile"]),It(l,"manifest.rdf",function(h){var d=[Zr];d.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> `);for(var m=0;m!=h.length;++m)d.push(ju(h[m][0],h[m][1])),d.push([` <rdf:Description rdf:about=""> `,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+h[m][0]+`"/> `,` </rdf:Description> `].join(""));return d.push(ju("","Document","pkg")),d.push("</rdf:RDF>"),d.join("")}(f)),c.push(["manifest.rdf","application/rdf+xml"]),It(l,"META-INF/manifest.xml",function(h){var d=[Zr];d.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2"> `),d.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/> `);for(var m=0;m<h.length;++m)d.push(' <manifest:file-entry manifest:full-path="'+h[m][0]+'" manifest:media-type="'+h[m][1]+`"/> `);return d.push("</manifest:manifest>"),d.join("")}(c)),l}function ka(a){return new DataView(a.buffer,a.byteOffset,a.byteLength)}function Lc(a){return typeof TextDecoder<"u"?new TextDecoder().decode(a):Tr(ft(a))}function Ep(a){return typeof TextEncoder<"u"?new TextEncoder().encode(a):ve(ga(a))}function Wa(a){var n=a.reduce(function(f,h){return f+h.length},0),l=new Uint8Array(n),c=0;return a.forEach(function(f){l.set(f,c),c+=f.length}),l}function Tp(a){return 16843009*((a=(858993459&(a-=a>>1&1431655765))+(a>>2&858993459))+(a>>4)&252645135)>>>24}function Ii(a,n){var l=n?n[0]:0,c=127&a[l];return 128<=a[l++]&&(c|=(127&a[l])<<7,a[l++]<128||(c|=(127&a[l])<<14,a[l++]<128||(c|=(127&a[l])<<21,a[l++]<128||(c+=(127&a[l])*Math.pow(2,28),++l,a[l++]<128||(c+=(127&a[l])*Math.pow(2,35),++l,a[l++]<128||(c+=(127&a[l])*Math.pow(2,42),++l,a[l++])))))),n&&(n[0]=l),c}function mr(a){var n=new Uint8Array(7);n[0]=127&a;var l=1;return 127<a&&(n[l-1]|=128,n[l]=a>>7&127,++l,a<=16383||(n[l-1]|=128,n[l]=a>>14&127,++l,a<=2097151||(n[l-1]|=128,n[l]=a>>21&127,++l,a<=268435455||(n[l-1]|=128,n[l]=a/256>>>21&127,++l,a<=34359738367||(n[l-1]|=128,n[l]=a/65536>>>21&127,++l,a<=4398046511103||(n[l-1]|=128,n[l]=a/16777216>>>21&127,++l)))))),n.slice(0,l)}function Ur(a){var n=0,l=127&a[0];return 128<=a[n++]&&(l|=(127&a[1])<<7,a[n++]<128||(l|=(127&a[2])<<14,a[n++]<128||(l|=(127&a[3])<<21,a[+n]<128||(l|=(127&a[4])<<28)))),l}function sr(a){for(var n=[],l=[0];l[0]<a.length;){var c,f=l[0],h=Ii(a,l),d=7&h,m=0;if((h=Math.floor(h/8))==0)break;switch(d){case 0:for(var g=l[0];128<=a[l[0]++];);c=a.slice(g,l[0]);break;case 5:m=4,c=a.slice(l[0],l[0]+m),l[0]+=m;break;case 1:m=8,c=a.slice(l[0],l[0]+m),l[0]+=m;break;case 2:m=Ii(a,l),c=a.slice(l[0],l[0]+m),l[0]+=m;break;case 3:case 4:default:throw new Error("PB Type ".concat(d," for Field ").concat(h," at offset ").concat(f))}var y={data:c,type:d};n[h]==null?n[h]=[y]:n[h].push(y)}return n}function Wr(a){var n=[];return a.forEach(function(l,c){c!=0&&l.forEach(function(f){f.data&&(n.push(mr(8*c+f.type)),f.type==2&&n.push(mr(f.data.length)),n.push(f.data))})}),Wa(n)}function Mc(a,n){return(a==null?void 0:a.map(function(l){return n(l.data)}))||[]}function Xs(a){for(var n=[],l=[0];l[0]<a.length;){var c=Ii(a,l),f=sr(a.slice(l[0],l[0]+c));l[0]+=c;var h={id:Ur(f[1][0].data),messages:[]};f[2].forEach(function(g){var m=sr(g.data),g=Ur(m[3][0].data);h.messages.push({meta:m,data:a.slice(l[0],l[0]+g)}),l[0]+=g}),(c=f[3])!=null&&c[0]&&(h.merge=0<Ur(f[3][0].data)>>>0),n.push(h)}return n}function mo(a){var n=[];return a.forEach(function(l){var c=[[],[{data:mr(l.id),type:0}],[]];l.merge!=null&&(c[3]=[{data:mr(+!!l.merge),type:0}]);var f=[];l.messages.forEach(function(h){f.push(h.data),h.meta[3]=[{type:0,data:mr(h.data.length)}],c[2].push({data:Wr(h.meta),type:2})}),l=Wr(c),n.push(mr(l.length)),n.push(l),f.forEach(function(h){return n.push(h)})}),Wa(n)}function Qs(a){for(var n=[],l=0;l<a.length;){var c=a[l++],f=a[l]|a[l+1]<<8|a[l+2]<<16;l+=3,n.push(function(h,d){if(h!=0)throw new Error("Unexpected Snappy chunk type ".concat(h));for(var m=[0],g=Ii(d,m),y=[];m[0]<d.length;){var v=3&d[m[0]];if(v!=0){var x=0,C=0;if(v==1?(C=4+(d[m[0]]>>2&7),x=(224&d[m[0]++])<<3,x|=d[m[0]++]):(C=1+(d[m[0]++]>>2),v==2?(x=d[m[0]]|d[m[0]+1]<<8,m[0]+=2):(x=(d[m[0]]|d[m[0]+1]<<8|d[m[0]+2]<<16|d[m[0]+3]<<24)>>>0,m[0]+=4)),y=[Wa(y)],x==0)throw new Error("Invalid offset 0");if(x>y[0].length)throw new Error("Invalid offset beyond length");if(x<=C)for(y.push(y[0].slice(-x)),C-=x;C>=y[y.length-1].length;)y.push(y[y.length-1]),C-=y[y.length-1].length;y.push(y[0].slice(-x,-x+C))}else v=d[m[0]++]>>2,v<60?++v:(x=v-59,v=d[m[0]],1<x&&(v|=d[m[0]+1]<<8),2<x&&(v|=d[m[0]+2]<<16),3<x&&(v|=d[m[0]+3]<<24),v>>>=0,v++,m[0]+=x),y.push(d.slice(m[0],m[0]+v)),m[0]+=v}if((h=Wa(y)).length!=g)throw new Error("Unexpected length: ".concat(h.length," != ").concat(g));return h}(c,a.slice(l,l+f))),l+=f}if(l!==a.length)throw new Error("data is not a valid framed stream!");return Wa(n)}function go(a){for(var n=[],l=0;l<a.length;){var c=Math.min(a.length-l,268435455),f=new Uint8Array(4);n.push(f);var h=mr(c),d=h.length;n.push(h),c<=60?(d++,n.push(new Uint8Array([c-1<<2]))):c<=256?(d+=2,n.push(new Uint8Array([240,c-1&255]))):c<=65536?(d+=3,n.push(new Uint8Array([244,c-1&255,c-1>>8&255]))):c<=16777216?(d+=4,n.push(new Uint8Array([248,c-1&255,c-1>>8&255,c-1>>16&255]))):c<=4294967296&&(d+=5,n.push(new Uint8Array([252,c-1&255,c-1>>8&255,c-1>>16&255,c-1>>>24&255]))),n.push(a.slice(l,l+c)),d+=c,f[0]=0,f[1]=255&d,f[2]=d>>8&255,f[3]=d>>16&255,l+=c}return Wa(n)}function Eb(a,n,l){var c,f=ka(a),h=f.getUint32(8,!0),d=12,m=-1,g=-1,y=NaN,v=NaN,x=new Date(2001,0,1);switch(1&h&&(y=function(C,F){for(var k=(127&C[F+15])<<7|C[F+14]>>1,D=1&C[F+14],P=F+13;F<=P;--P)D=256*D+C[P];return(128&C[F+15]?-D:D)*Math.pow(10,k-6176)}(a,d),d+=16),2&h&&(v=f.getFloat64(d,!0),d+=8),4&h&&(x.setTime(x.getTime()+1e3*f.getFloat64(d,!0)),d+=8),8&h&&(g=f.getUint32(d,!0),d+=4),16&h&&(m=f.getUint32(d,!0),d+=4),a[1]){case 0:break;case 2:c={t:"n",v:y};break;case 3:c={t:"s",v:n[g]};break;case 5:c={t:"d",v:x};break;case 6:c={t:"b",v:0<v};break;case 7:c={t:"n",v:v/86400};break;case 8:c={t:"e",v:0};break;case 9:if(!(-1<m))throw new Error("Unsupported cell type ".concat(a[1]," : ").concat(31&h," : ").concat(a.slice(0,4)));c={t:"s",v:l[m]};break;case 10:c={t:"n",v:y};break;default:throw new Error("Unsupported cell type ".concat(a[1]," : ").concat(31&h," : ").concat(a.slice(0,4)))}return c}function Oc(a,n){var l=new Uint8Array(32),c=ka(l),f=12,h=0;switch(l[0]=5,a.t){case"n":l[1]=2,function(d,m,g){var y=Math.floor(g==0?0:Math.LOG10E*Math.log(Math.abs(g)))+6176-16,v=g/Math.pow(10,y-6176);d[m+15]|=y>>7,d[m+14]|=(127&y)<<1;for(var x=0;1<=v;++x,v/=256)d[m+x]=255&v;d[m+15]|=0<=g?0:128}(l,f,a.v),h|=1,f+=16;break;case"b":l[1]=6,c.setFloat64(f,a.v?1:0,!0),h|=2,f+=8;break;case"s":if(n.indexOf(a.v)==-1)throw new Error("Value ".concat(a.v," missing from SST!"));l[1]=3,c.setUint32(f,n.indexOf(a.v),!0),h|=8,f+=4;break;default:throw"unsupported cell type "+a.t}return c.setUint32(8,h,!0),l.slice(0,f)}function Pc(a,n){var l=new Uint8Array(32),c=ka(l),f=12,h=0;switch(l[0]=3,a.t){case"n":l[2]=2,c.setFloat64(f,a.v,!0),h|=32,f+=8;break;case"b":l[2]=6,c.setFloat64(f,a.v?1:0,!0),h|=32,f+=8;break;case"s":if(n.indexOf(a.v)==-1)throw new Error("Value ".concat(a.v," missing from SST!"));l[2]=3,c.setUint32(f,n.indexOf(a.v),!0),h|=16,f+=4;break;default:throw"unsupported cell type "+a.t}return c.setUint32(4,h,!0),l.slice(0,f)}function Tb(a,n,l){switch(a[0]){case 0:case 1:case 2:case 3:return function(c,f,h,d){var m,g=ka(c),y=g.getUint32(4,!0),v=(1<d?12:8)+4*Tp(y&(1<d?3470:398)),x=-1,C=-1,F=NaN,k=new Date(2001,0,1);switch(512&y&&(x=g.getUint32(v,!0),v+=4),v+=4*Tp(y&(1<d?12288:4096)),16&y&&(C=g.getUint32(v,!0),v+=4),32&y&&(F=g.getFloat64(v,!0),v+=8),64&y&&(k.setTime(k.getTime()+1e3*g.getFloat64(v,!0)),v+=8),c[2]){case 0:break;case 2:m={t:"n",v:F};break;case 3:m={t:"s",v:f[C]};break;case 5:m={t:"d",v:k};break;case 6:m={t:"b",v:0<F};break;case 7:m={t:"n",v:F/86400};break;case 8:m={t:"e",v:0};break;case 9:if(-1<x)m={t:"s",v:h[x]};else if(-1<C)m={t:"s",v:f[C]};else{if(isNaN(F))throw new Error("Unsupported cell type ".concat(c.slice(0,4)));m={t:"n",v:F}}break;default:throw new Error("Unsupported cell type ".concat(c.slice(0,4)))}return m}(a,n,l,a[0]);case 5:return Eb(a,n,l);default:throw new Error("Unsupported payload version ".concat(a[0]))}}function bs(a){return Ii(sr(a)[1][0].data)}function Rp(a,c){var c=sr(c.data),l=Ur(c[1][0].data),c=c[3],f=[];return(c||[]).forEach(function(h){var d=sr(h.data),m=Ur(d[1][0].data)>>>0;switch(l){case 1:f[m]=Lc(d[3][0].data);break;case 8:var y=sr(a[bs(d[9][0].data)][0].data),g=a[bs(y[1][0].data)][0],y=Ur(g.meta[1][0].data);if(y!=2001)throw new Error("2000 unexpected reference to ".concat(y));g=sr(g.data),f[m]=g[3].map(function(v){return Lc(v.data)}).join("")}}),f}function Rb(a,f){var l=sr(f.data),c=(f=l==null?void 0:l[7])!=null&&f[0]?0<Ur(l[7][0].data)>>>0?1:0:-1,f=Mc(l[5],function(h){return function(d,m){var g,y,v,x=sr(d),C=Ur(x[1][0].data)>>>0,F=Ur(x[2][0].data)>>>0,k=((d=(k=x[8])==null?void 0:k[0])==null?void 0:d.data)&&0<Ur(x[8][0].data)||!1;if((d=(d=x[7])==null?void 0:d[0])!=null&&d.data&&m!=0)y=(g=(g=x[7])==null?void 0:g[0])==null?void 0:g.data,v=(g=(g=x[6])==null?void 0:g[0])==null?void 0:g.data;else{if((g=(g=x[4])==null?void 0:g[0])==null||!g.data||m==1)throw"NUMBERS Tile missing ".concat(m," cell storage");y=(m=(m=x[4])==null?void 0:m[0])==null?void 0:m.data,v=(x=(x=x[3])==null?void 0:x[0])==null?void 0:x.data}for(var D=k?4:1,P=ka(y),L=[],R=0;R<y.length/2;++R){var O=P.getUint16(2*R,!0);O<65535&&L.push([R,O])}if(L.length!=F)throw"Expected ".concat(F," cells, found ").concat(L.length);for(var I=[],R=0;R<L.length-1;++R)I[L[R][0]]=v.subarray(L[R][1]*D,L[R+1][1]*D);return 1<=L.length&&(I[L[L.length-1][0]]=v.subarray(L[L.length-1][1]*D)),{R:C,cells:I}}(h,c)});return{nrows:Ur(l[4][0].data)>>>0,data:f.reduce(function(h,d){return h[d.R]||(h[d.R]=[]),d.cells.forEach(function(m,g){if(h[d.R][g])throw new Error("Duplicate cell r=".concat(d.R," c=").concat(g));h[d.R][g]=m}),h},[])}}function kb(a,f){var l={"!ref":"A1"},c=a[bs(sr(f.data)[2][0].data)],f=Ur(c[0].meta[1][0].data);if(f!=6001)throw new Error("6000 unexpected reference to ".concat(f));return function(h,g,m){var x=sr(g.data);if((g={s:{r:0,c:0},e:{r:0,c:0}}).e.r=(Ur(x[6][0].data)>>>0)-1,g.e.r<0)throw new Error("Invalid row varint ".concat(x[6][0].data));if(g.e.c=(Ur(x[7][0].data)>>>0)-1,g.e.c<0)throw new Error("Invalid col varint ".concat(x[7][0].data));m["!ref"]=Pt(g);var g=sr(x[4][0].data),y=Rp(h,h[bs(g[4][0].data)][0]),v=(x=g[17])!=null&&x[0]?Rp(h,h[bs(g[17][0].data)][0]):[],x=sr(g[3][0].data),C=0;if(x[1].forEach(function(k){var D=sr(k.data),k=h[bs(D[2][0].data)][0],D=Ur(k.meta[1][0].data);if(D!=6002)throw new Error("6001 unexpected reference to ".concat(D));k=Rb(0,k),k.data.forEach(function(P,L){P.forEach(function(R,O){O=Rt({r:C+L,c:O}),R=Tb(R,y,v),R&&(m[O]=R)})}),C+=k.nrows}),(x=g[13])!=null&&x[0]){if(x=h[bs(g[13][0].data)][0],g=Ur(x.meta[1][0].data),g!=6144)throw new Error("Expected merge type 6144, found ".concat(g));m["!merges"]=(x=sr(x.data))==null?void 0:x[1].map(function(k){var D=sr(k.data),k=ka(sr(D[1][0].data)[1][0].data),D=ka(sr(D[2][0].data)[1][0].data);return{s:{r:k.getUint16(0,!0),c:k.getUint16(2,!0)},e:{r:k.getUint16(0,!0)+D.getUint16(0,!0)-1,c:k.getUint16(2,!0)+D.getUint16(2,!0)-1}}})}}(a,c[0],l),l}function Lb(a,n){var l=jc(),c=sr(n.data);if((n=c[2])!=null&&n[0])throw new Error("Keynote presentations are not supported");if(Mc(c[1],bs).forEach(function(f){a[f].forEach(function(h){var d,m,g,y;Ur(h.meta[1][0].data)==2&&(m=a,h=sr((g=h).data),y={name:(g=h[1])!=null&&g[0]?Lc(h[1][0].data):"",sheets:[]},Mc(h[2],bs).forEach(function(v){m[v].forEach(function(x){Ur(x.meta[1][0].data)==6e3&&y.sheets.push(kb(m,x))})}),(d=y).sheets.forEach(function(v,x){Wc(l,v,x==0?d.name:d.name+"_"+x,!0)}))})}),l.SheetNames.length==0)throw new Error("Empty NUMBERS file");return l}function kp(a){var n={},l=[];if(a.FullPaths.forEach(function(f){if(f.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),a.FileIndex.forEach(function(f){if(f.name.match(/\.iwa$/)){var h,d;try{h=Qs(f.content)}catch(m){return console.log("?? "+f.content.length+" "+(m.message||m))}try{d=Xs(h)}catch(m){return console.log("## "+(m.message||m))}d.forEach(function(m){n[m.id]=m.messages,l.push(m.id)})}}),!l.length)throw new Error("File has no messages");if((a=(a=(a=(a=n==null?void 0:n[1])==null?void 0:a[0])==null?void 0:a.meta)==null?void 0:a[1])!=null&&a[0].data&&Ur(n[1][0].meta[1][0].data)==1e4)throw new Error("Pages documents are not supported");var c=((a=(a=(a=(a=n==null?void 0:n[1])==null?void 0:a[0])==null?void 0:a.meta)==null?void 0:a[1])==null?void 0:a[0].data)&&Ur(n[1][0].meta[1][0].data)==1&&n[1][0];if(c||l.forEach(function(f){n[f].forEach(function(h){if(Ur(h.meta[1][0].data)>>>0==1){if(c)throw new Error("Document has multiple roots");c=h}})}),!c)throw new Error("Cannot find Document root");return Lb(n,c)}function Mb(a,n){if(!n||!n.numbers)throw new Error("Must pass a `numbers` option -- check the README");var l=a.Sheets[a.SheetNames[0]];1<a.SheetNames.length&&console.error("The Numbers writer currently writes only the first table");var c=ks(l["!ref"]);c.s.r=c.s.c=0;var f=!1;9<c.e.c&&(f=!0,c.e.c=9),49<c.e.r&&(f=!0,c.e.r=49),f&&console.error("The Numbers writer is currently limited to ".concat(Pt(c)));var h=qn(l,{range:c,header:1}),d=["~Sh33tJ5~"];h.forEach(function(Ve){return Ve.forEach(function(ze){typeof ze=="string"&&d.push(ze)})});var m={},g=[],y=_t.read(n.numbers,{type:"base64"});y.FileIndex.map(function(Ve,ze){return[Ve,y.FullPaths[ze]]}).forEach(function(Ve){var ze=Ve[0],Ne=Ve[1];ze.type==2&&ze.name.match(/\.iwa/)&&Xs(Qs(ze.content)).forEach(function(Fe){g.push(Fe.id),m[Fe.id]={deps:[],location:Ne,type:Ur(Fe.messages[0].meta[1][0].data)}})}),g.sort(function(Ve,ze){return Ve-ze});var v=g.filter(function(Ve){return 1<Ve}).map(function(Ve){return[Ve,mr(Ve)]});y.FileIndex.map(function(Ve,ze){return[Ve,y.FullPaths[ze]]}).forEach(function(Ve){var ze=Ve[0];Ve[1],ze.name.match(/\.iwa/)&&Xs(Qs(ze.content)).forEach(function(Ne){Ne.messages.forEach(function(Fe){v.forEach(function($e){Ne.messages.some(function(rt){return Ur(rt.meta[1][0].data)!=11006&&function(gt,Nt){e:for(var Xe=0;Xe<=gt.length-Nt.length;++Xe){for(var Re=0;Re<Nt.length;++Re)if(gt[Xe+Re]!=Nt[Re])continue e;return!0}return!1}(rt.data,$e[1])})&&m[$e[0]].deps.push(Ne.id)})})})});for(var x,C=_t.find(y,m[1].location),F=Xs(Qs(C.content)),k=0;k<F.length;++k){var D=F[k];D.id==1&&(x=D)}for(var P=bs(sr(x.messages[0].data)[1][0].data),F=Xs(Qs((C=_t.find(y,m[P].location)).content)),k=0;k<F.length;++k)(D=F[k]).id==P&&(x=D);var _e=sr(x.messages[0].data);for(_e[1]=[{type:2,data:Ep(a.SheetNames[0])}],x.messages[0].data=Wr(_e),C.content=go(mo(F)),C.size=C.content.length,P=bs(_e[2][0].data),F=Xs(Qs((C=_t.find(y,m[P].location)).content)),k=0;k<F.length;++k)(D=F[k]).id==P&&(x=D);for(P=bs(sr(x.messages[0].data)[2][0].data),F=Xs(Qs((C=_t.find(y,m[P].location)).content)),k=0;k<F.length;++k)(D=F[k]).id==P&&(x=D);f=sr(x.messages[0].data),f[6][0].data=mr(c.e.r+1),f[7][0].data=mr(c.e.c+1);for(var L=bs(f[46][0].data),n=_t.find(y,m[L].location),R=Xs(Qs(n.content)),O=0;O<R.length&&R[O].id!=L;++O);if(R[O].id!=L)throw"Bad ColumnRowUIDMapArchive";var I=sr(R[O].messages[0].data);I[1]=[],I[2]=[],I[3]=[];for(var V=0;V<=c.e.c;++V)I[1].push({type:2,data:Wr([[],[{type:0,data:mr(V+420690)}],[{type:0,data:mr(V+420690)}]])}),I[2].push({type:0,data:mr(V)}),I[3].push({type:0,data:mr(V)});I[4]=[],I[5]=[],I[6]=[];for(var X=0;X<=c.e.r;++X)I[4].push({type:2,data:Wr([[],[{type:0,data:mr(X+726270)}],[{type:0,data:mr(X+726270)}]])}),I[5].push({type:0,data:mr(X)}),I[6].push({type:0,data:mr(X)});if(R[O].messages[0].data=Wr(I),n.content=go(mo(R)),n.size=n.content.length,delete f[46],a=sr(f[4][0].data),a[7][0].data=mr(c.e.r+1),_e=bs(sr(a[1][0].data)[2][0].data),(R=Xs(Qs((n=_t.find(y,m[_e].location)).content)))[0].id!=_e)throw"Bad HeaderStorageBucket";for(var ae=sr(R[0].messages[0].data),X=0;X<h.length;++X){var te=sr(ae[2][0].data);te[1][0].data=mr(X),te[4][0].data=mr(h[X].length),ae[2][X]={type:ae[2][0].type,data:Wr(te)}}R[0].messages[0].data=Wr(ae),n.content=go(mo(R)),n.size=n.content.length;var ce,_e=bs(a[2][0].data);if((R=Xs(Qs((n=_t.find(y,m[_e].location)).content)))[0].id!=_e)throw"Bad HeaderStorageBucket";for(ae=sr(R[0].messages[0].data),V=0;V<=c.e.c;++V)(te=sr(ae[2][0].data))[1][0].data=mr(V),te[4][0].data=mr(c.e.r+1),ae[2][V]={type:ae[2][0].type,data:Wr(te)};R[0].messages[0].data=Wr(ae),n.content=go(mo(R)),n.size=n.content.length,l["!merges"]&&(qe=function(Ve){for(var ze=927262;ze<2e6;++ze)if(!m[ze])return m[ze]=Ve,ze;throw new Error("Too many messages")}({type:6144,deps:[P],location:m[P].location}),ce=[[],[]],l["!merges"].forEach(function(Ve){ce[1].push({type:2,data:Wr([[],[{type:2,data:Wr([[],[{type:5,data:new Uint8Array(new Uint16Array([Ve.s.r,Ve.s.c]).buffer)}]])}],[{type:2,data:Wr([[],[{type:5,data:new Uint8Array(new Uint16Array([Ve.e.r-Ve.s.r+1,Ve.e.c-Ve.s.c+1]).buffer)}]])}]])})}),a[13]=[{type:2,data:Wr([[],[{type:0,data:mr(qe)}]])}],F.push({id:qe,messages:[(ke=6144,qe=Wr(ce),{meta:[[],[{type:0,data:mr(ke)}]],data:qe})]}));var we=bs(a[4][0].data);(function(){for(var Ve,ze=_t.find(y,m[we].location),Ne=Xs(Qs(ze.content)),Fe=0;Fe<Ne.length;++Fe){var $e=Ne[Fe];$e.id==we&&(Ve=$e)}var rt=sr(Ve.messages[0].data);rt[3]=[],d.forEach(function(gt,Nt){rt[3].push({type:2,data:Wr([[],[{type:0,data:mr(Nt)}],[{type:0,data:mr(1)}],[{type:2,data:Ep(gt)}]])})}),Ve.messages[0].data=Wr(rt),ze.content=go(mo(Ne)),ze.size=ze.content.length})();var de=sr(a[3][0].data),ke=de[1][0];delete de[2];var ke,qe,qe=sr(ke.data),He=bs(qe[2][0].data);return function(){for(var Ve,ze=_t.find(y,m[He].location),Ne=Xs(Qs(ze.content)),Fe=0;Fe<Ne.length;++Fe){var $e=Ne[Fe];$e.id==He&&(Ve=$e)}var rt=sr(Ve.messages[0].data);delete rt[6],delete de[7];var gt=new Uint8Array(rt[5][0].data);rt[5]=[];for(var Nt=0,Xe=0;Xe<=c.e.r;++Xe){var Re=sr(gt);Nt+=function(kt,ar,Kt){var vr,Jr;if((vr=kt[6])==null||!vr[0]||(Jr=kt[7])==null||!Jr[0])throw"Mutation only works on post-BNC storages!";if((Jr=(Jr=kt[8])==null?void 0:Jr[0])!=null&&Jr.data&&0<Ur(kt[8][0].data))throw"Math only works with normal offsets";for(var Z,wr,_r=0,cs=ka(kt[7][0].data),$s=0,z=[],he=ka(kt[4][0].data),J=0,fe=[],K=0;K<ar.length;++K)if(ar[K]!=null){switch(cs.setUint16(2*K,$s,!0),he.setUint16(2*K,J,!0),typeof ar[K]){case"string":Z=Oc({t:"s",v:ar[K]},Kt),wr=Pc({t:"s",v:ar[K]},Kt);break;case"number":Z=Oc({t:"n",v:ar[K]},Kt),wr=Pc({t:"n",v:ar[K]},Kt);break;case"boolean":Z=Oc({t:"b",v:ar[K]},Kt),wr=Pc({t:"b",v:ar[K]},Kt);break;default:throw new Error("Unsupported value "+ar[K])}z.push(Z),$s+=Z.length,fe.push(wr),J+=wr.length,++_r}else cs.setUint16(2*K,65535,!0),he.setUint16(2*K,65535);for(kt[2][0].data=mr(_r);K<kt[7][0].data.length/2;++K)cs.setUint16(2*K,65535,!0),he.setUint16(2*K,65535,!0);return kt[6][0].data=Wa(z),kt[3][0].data=Wa(fe),_r}(Re,h[Xe],d),Re[1][0].data=mr(Xe),rt[5].push({data:Wr(Re),type:2})}rt[1]=[{type:0,data:mr(c.e.c+1)}],rt[2]=[{type:0,data:mr(c.e.r+1)}],rt[3]=[{type:0,data:mr(Nt)}],rt[4]=[{type:0,data:mr(c.e.r+1)}],Ve.messages[0].data=Wr(rt),ze.content=go(mo(Ne)),ze.size=ze.content.length}(),ke.data=Wr(qe),a[3][0].data=Wr(de),f[4][0].data=Wr(a),x.messages[0].data=Wr(f),C.content=go(mo(F)),C.size=C.content.length,y}function Lp(a){return function(n){for(var l=0;l!=a.length;++l){var c=a[l];n[c[0]]===void 0&&(n[c[0]]=c[1]),c[2]==="n"&&(n[c[0]]=Number(n[c[0]]))}}}function Nc(a){Lp([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(a)}function Ic(a){Lp([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(a)}function Ob(a,n){if(!a)return 0;try{a=n.map(function(l){return l.id||(l.id=l.strRelID),[l.name,a["!id"][l.id].Target,(l=a["!id"][l.id].Type,-1<Vt.WS.indexOf(l)?"sheet":Vt.CS&&l==Vt.CS?"chart":Vt.DS&&l==Vt.DS?"dialog":Vt.MS&&l==Vt.MS?"macro":l&&l.length?l:"sheet")]})}catch{return null}return a&&a.length!==0?a:null}function Pb(a,n,l,c,f,h,d,m,g,y,v,x){try{h[c]=yi(zs(a,l,!0),n);var C=ss(a,n);switch(m){case"sheet":D=eb(C,n,f,g,h[c],y,v,x);break;case"chart":if(!(D=tb(C,n,f,g,h[c],y))||!D["!drawel"])break;var k=ci(D["!drawel"].Target,n),F=bi(k),R=ci((R=zs(a,k,!0),F=yi(zs(a,F,!0),k),R?(R=(R.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1],F["!id"][R].Target):"??"),k),k=bi(R),D=j2(zs(a,R,!0),0,0,yi(zs(a,k,!0),R),0,D);break;case"macro":L=n,h[c],L.slice(-4),D={"!type":"macro"};break;case"dialog":L=n,h[c],L.slice(-4),D={"!type":"dialog"};break;default:throw new Error("Unrecognized sheet type "+m)}d[c]=D;var P=[];h&&h[c]&&Yr(h[c]).forEach(function(O){var I,V,X,ae,te,ce,_e="";if(h[c][O].Type==Vt.CMNT){_e=ci(h[c][O].Target,n);var we=ab(ss(a,_e,!0),_e,g);if(!we||!we.length)return;Eh(D,we,!1)}h[c][O].Type==Vt.TCMNT&&(_e=ci(h[c][O].Target,n),P=P.concat((I=ss(a,_e,!0),V=g,ae=!(X=[]),te={},ce=0,I.replace(_s,function(de,ke){var qe=Tt(de);switch(ma(qe[0])){case"<?xml":case"<ThreadedComments":case"</ThreadedComments>":break;case"<threadedComment":te={author:qe.personId,guid:qe.id,ref:qe.ref,T:1};break;case"</threadedComment>":te.t!=null&&X.push(te);break;case"<text>":case"<text":ce=ke+de.length;break;case"</text>":te.t=I.slice(ce,ke).replace(/\r\n/g,` `).replace(/\r/g,` `);break;case"<mentions":case"<mentions>":ae=!0;break;case"</mentions>":ae=!1;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":ae=!0;break;case"</ext>":ae=!1;break;default:if(!ae&&V.WTF)throw new Error("unrecognized "+qe[0]+" in threaded comments")}return de}),X)))}),P&&P.length&&Eh(D,P,!0,g.people||[])}catch(O){if(g.WTF)throw O}var L,R}function Zs(a){return a.charAt(0)=="/"?a.slice(1):a}function Mp(a,n){if(Mo(),Nc(n=n||{}),Ys(a,"META-INF/manifest.xml")||Ys(a,"objectdata.xml"))return Fp(a,n);if(Ys(a,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(a.FileIndex)return kp(a);var l=_t.utils.cfb_new();return ou(a).forEach(function(Ne){It(l,Ne,function Fe($e,rt,gt){if(!gt)return au(Tl($e,rt));if(!rt)return null;try{return Fe($e,rt)}catch{return null}}(a,Ne))}),kp(l)}if(!Ys(a,"[Content_Types].xml"))throw Ys(a,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):Ys(a,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var c,f,h=ou(a),d=function(Ne){var Fe=rc();if(!Ne||!Ne.match)return Fe;var $e={};if((Ne.match(_s)||[]).forEach(function(rt){var gt=Tt(rt);switch(gt[0].replace(Lg,"<")){case"<?xml":break;case"<Types":Fe.xmlns=gt["xmlns"+(gt[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":$e[gt.Extension]=gt.ContentType;break;case"<Override":Fe[tc[gt.ContentType]]!==void 0&&Fe[tc[gt.ContentType]].push(gt.PartName)}}),Fe.xmlns!==ls.CT)throw new Error("Unknown Namespace: "+Fe.xmlns);return Fe.calcchain=0<Fe.calcchains.length?Fe.calcchains[0]:"",Fe.sst=0<Fe.strs.length?Fe.strs[0]:"",Fe.style=0<Fe.styles.length?Fe.styles[0]:"",Fe.defaults=$e,delete Fe.calcchains,Fe}(zs(a,"[Content_Types].xml")),te=!1;if(d.workbooks.length===0&&ss(a,f="xl/workbook.xml",!0)&&d.workbooks.push(f),d.workbooks.length===0){if(!ss(a,f="xl/workbook.bin",!0))throw new Error("Could not find workbook");d.workbooks.push(f),te=!0}d.workbooks[0].slice(-3)=="bin"&&(te=!0);var m={},g={};if(!n.bookSheets&&!n.bookProps){if(ki=[],d.sst)try{ki=sb(ss(a,Zs(d.sst)),d.sst,n)}catch(Ne){if(n.WTF)throw Ne}n.cellStyles&&d.themes.length&&(k=zs(a,d.themes[0].replace(/^\//,""),!0)||"",d.themes[0],m=Dh(k,n)),d.style&&(g=rb(ss(a,Zs(d.style)),d.style,m,n))}d.links.map(function(Ne){try{return yi(zs(a,bi(Zs(Ne))),Ne),ib(ss(a,Zs(Ne)),0,Ne,n)}catch{}});var y,v,x,C=$2(ss(a,Zs(d.workbooks[0])),d.workbooks[0],n),F={},k="";d.coreprops.length&&((k=ss(a,Zs(d.coreprops[0]),!0))&&(F=Hu(k)),d.extprops.length!==0&&(k=ss(a,Zs(d.extprops[0]),!0))&&(D=n,x={},v=(v=F)||{},y=Tr(y=k),lo.forEach(function(Ne){var Fe=(y.match(fi(Ne[0]))||[])[1];switch(Ne[2]){case"string":Fe&&(v[Ne[1]]=pr(Fe));break;case"bool":v[Ne[1]]=Fe==="true";break;case"raw":var $e=y.match(new RegExp("<"+Ne[0]+"[^>]*>([\\s\\S]*?)</"+Ne[0]+">"));$e&&0<$e.length&&(x[Ne[1]]=$e[1])}}),x.HeadingPairs&&x.TitlesOfParts&&Ku(x.HeadingPairs,x.TitlesOfParts,v,D)));var D={};n.bookSheets&&!n.bookProps||d.custprops.length!==0&&(k=zs(a,Zs(d.custprops[0]),!0))&&(D=function(Ne,Fe){var $e={},rt="",gt=Ne.match(e1);if(gt)for(var Nt=0;Nt!=gt.length;++Nt){var Xe=gt[Nt],Re=Tt(Xe);switch(Re[0]){case"<?xml":case"<Properties":break;case"<property":rt=pr(Re.name);break;case"</property>":rt=null;break;default:if(Xe.indexOf("<vt:")===0){var kt=Xe.split(">"),ar=kt[0].slice(4),Kt=kt[1];switch(ar){case"lpstr":case"bstr":case"lpwstr":$e[rt]=pr(Kt);break;case"bool":$e[rt]=Ir(Kt);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":$e[rt]=parseInt(Kt,10);break;case"r4":case"r8":case"decimal":$e[rt]=parseFloat(Kt);break;case"filetime":case"date":$e[rt]=Nr(Kt);break;case"cy":case"error":$e[rt]=pr(Kt);break;default:if(ar.slice(-1)=="/")break;Fe.WTF&&typeof console<"u"&&console.warn("Unexpected",Xe,ar,kt)}}else if(Xe.slice(0,2)!=="</"&&Fe.WTF)throw new Error(Xe)}}return $e}(k,n));var P={};if((n.bookSheets||n.bookProps)&&(C.Sheets?c=C.Sheets.map(function(Ne){return Ne.name}):F.Worksheets&&0<F.SheetNames.length&&(c=F.SheetNames),n.bookProps&&(P.Props=F,P.Custprops=D),n.bookSheets&&c!==void 0&&(P.SheetNames=c),n.bookSheets?P.SheetNames:n.bookProps))return P;c={},k={},n.bookDeps&&d.calcchain&&(k=ob(ss(a,Zs(d.calcchain)),d.calcchain));var L,R,O=0,I={},V=C.Sheets;F.Worksheets=V.length,F.SheetNames=[];for(var X=0;X!=V.length;++X)F.SheetNames[X]=V[X].name;var ae=te?"bin":"xml",te=d.workbooks[0].lastIndexOf("/"),ce=(d.workbooks[0].slice(0,te+1)+"_rels/"+d.workbooks[0].slice(te+1)+".rels").replace(/^\//,"");Ys(a,ce)||(ce="xl/_rels/workbook."+ae+".rels");var _e,we,de,ke=yi(zs(a,ce,!0),ce.replace(/_rels.*/,"s5s"));1<=(d.metadata||[]).length&&(n.xlmeta=nb(ss(a,Zs(d.metadata[0])),d.metadata[0],n)),1<=(d.people||[]).length&&(n.people=(te=ss(a,Zs(d.people[0])),_e=n,de=!(we=[]),te.replace(_s,function(Ne){var Fe=Tt(Ne);switch(ma(Fe[0])){case"<?xml":case"<personList":case"</personList>":break;case"<person":we.push({name:Fe.displayname,id:Fe.id});break;case"</person>":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":de=!0;break;case"</ext>":de=!1;break;default:if(!de&&_e.WTF)throw new Error("unrecognized "+Fe[0]+" in threaded comments")}return Ne}),we)),ke=ke&&Ob(ke,C.Sheets);var qe=ss(a,"xl/worksheets/sheet.xml",!0)?1:0;e:for(O=0;O!=F.Worksheets;++O){var He="sheet";if(ke&&ke[O]?(L="xl/"+ke[O][1].replace(/[\/]?xl\//,""),Ys(a,L)||(L=ke[O][1]),Ys(a,L)||(L=ce.replace(/_rels\/.*$/,"")+ke[O][1]),He=ke[O][2]):L=(L="xl/worksheets/sheet"+(O+1-qe)+"."+ae).replace(/sheet0\./,"sheet."),R=L.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),n&&n.sheets!=null)switch(typeof n.sheets){case"number":if(O!=n.sheets)continue e;break;case"string":if(F.SheetNames[O].toLowerCase()!=n.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(n.sheets)){for(var Ve=!1,ze=0;ze!=n.sheets.length;++ze)typeof n.sheets[ze]=="number"&&n.sheets[ze]==O&&(Ve=1),typeof n.sheets[ze]=="string"&&n.sheets[ze].toLowerCase()==F.SheetNames[O].toLowerCase()&&(Ve=1);if(!Ve)continue e}}Pb(a,L,R,F.SheetNames[O],O,I,c,He,n,C,m,g)}return P={Directory:d,Workbook:C,Props:F,Custprops:D,Deps:k,Sheets:c,SheetNames:F.SheetNames,Strings:ki,Styles:g,Themes:m,SSF:Lr(oe)},n&&n.bookFiles&&(a.files?(P.keys=h,P.files=a.files):(P.keys=[],P.files={},a.FullPaths.forEach(function(Ne,Fe){Ne=Ne.replace(/^Root Entry[\/]/,""),P.keys.push(Ne),P.files[Ne]=a.FileIndex[Fe]}))),n&&n.bookVBA&&(0<d.vba.length?P.vbaraw=ss(a,Zs(d.vba[0]),!0):d.defaults&&d.defaults.bin===r2&&(P.vbaraw=ss(a,"xl/vbaProject.bin",!0))),P}function Nb(a,n){var l,c=n||{},f="Workbook",h=_t.find(a,f);try{if(f="/!DataSpaces/Version",!(h=_t.find(a,f))||!h.content)throw new Error("ECMA-376 Encrypted file missing "+f);if(d=h.content,(l={}).id=d.read_shift(0,"lpp4"),l.R=Ra(d,4),l.U=Ra(d,4),l.W=Ra(d,4),f="/!DataSpaces/DataSpaceMap",!(h=_t.find(a,f))||!h.content)throw new Error("ECMA-376 Encrypted file missing "+f);var d=S1(h.content);if(d.length!==1||d[0].comps.length!==1||d[0].comps[0].t!==0||d[0].name!=="StrongEncryptionDataSpace"||d[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+f);if(f="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",!(h=_t.find(a,f))||!h.content)throw new Error("ECMA-376 Encrypted file missing "+f);if(d=function(m){var g=[];m.l+=4;for(var y=m.read_shift(4);0<y--;)g.push(m.read_shift(0,"lpp4"));return g}(h.content),d.length!=1||d[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+f);if(f="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",!(h=_t.find(a,f))||!h.content)throw new Error("ECMA-376 Encrypted file missing "+f);E1(h.content)}catch{}if(f="/EncryptionInfo",!(h=_t.find(a,f))||!h.content)throw new Error("ECMA-376 Encrypted file missing "+f);if(n=T1(h.content),f="/EncryptedPackage",!(h=_t.find(a,f))||!h.content)throw new Error("ECMA-376 Encrypted file missing "+f);if(n[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(n[1],h.content,c.password||"",c);if(n[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(n[1],h.content,c.password||"",c);throw new Error("File is password-protected")}function Ib(a,n){return(n.bookType=="ods"?Sp:n.bookType=="numbers"?Mb:n.bookType=="xlsb"?function(l,c){Ho=1024,l&&!l.SSF&&(l.SSF=Lr(oe)),l&&l.SSF&&(Mo(),ni(l.SSF),c.revssf=cn(l.SSF),c.revssf[l.SSF[65535]]=0,c.ssf=l.SSF),c.rels={},c.wbrels={},c.Strings=[],c.Strings.Count=0,c.Strings.Unique=0,Li?c.revStrings=new Map:(c.revStrings={},c.revStrings.foo=[],delete c.revStrings.foo);var f=c.bookType=="xlsb"?"bin":"xml",h=-1<Rh.indexOf(c.bookType),d=rc();Ic(c=c||{});var m=Rl(),g="",y=0;if(c.cellXfs=[],ja(c.cellXfs,{},{revssf:{General:0}}),l.Props||(l.Props={}),It(m,g="docProps/core.xml",Yu(l.Props,c)),d.coreprops.push(g),Ar(c.rels,2,g,Vt.CORE_PROPS),g="docProps/app.xml",!l.Props||!l.Props.SheetNames)if(l.Workbook&&l.Workbook.Sheets){for(var v=[],x=0;x<l.SheetNames.length;++x)(l.Workbook.Sheets[x]||{}).Hidden!=2&&v.push(l.SheetNames[x]);l.Props.SheetNames=v}else l.Props.SheetNames=l.SheetNames;for(l.Props.Worksheets=l.Props.SheetNames.length,It(m,g,Ju(l.Props)),d.extprops.push(g),Ar(c.rels,3,g,Vt.EXT_PROPS),l.Custprops!==l.Props&&0<Yr(l.Custprops||{}).length&&(It(m,g="docProps/custom.xml",Xu(l.Custprops)),d.custprops.push(g),Ar(c.rels,4,g,Vt.CUST_PROPS)),y=1;y<=l.SheetNames.length;++y){var C,F,k,D={"!id":{}},P=l.Sheets[l.SheetNames[y-1]];It(m,g="xl/worksheets/sheet"+y+"."+f,function(L,R,O,I,V){return(R.slice(-4)===".bin"?G2:ep)(L,O,I,V)}(y-1,g,c,l,D)),d.sheets.push(g),Ar(c.wbrels,-1,"worksheets/sheet"+y+"."+f,Vt.WS[0]),P&&(C=P["!comments"],F=!1,k="",C&&0<C.length&&(It(m,k="xl/comments"+y+"."+f,function(L,R,O){return(R.slice(-4)===".bin"?t2:Th)(L)}(C,k)),d.comments.push(k),Ar(D,-1,"../comments"+y+"."+f,Vt.CMNT),F=!0),P["!legacy"]&&F&&It(m,"xl/drawings/vmlDrawing"+y+".vml",Sh(y,P["!comments"])),delete P["!comments"],delete P["!legacy"]),D["!id"].rId1&&It(m,bi(g),Uo(D))}return c.Strings!=null&&0<c.Strings.length&&(It(m,g="xl/sharedStrings."+f,function(L,R,O){return(R.slice(-4)===".bin"?A1:oh)(L,O)}(c.Strings,g,c)),d.strs.push(g),Ar(c.wbrels,-1,"sharedStrings."+f,Vt.SST)),It(m,g="xl/workbook."+f,function(L,R,O){return(R.slice(-4)===".bin"?Z2:lp)(L)}(l,g)),d.workbooks.push(g),Ar(c.rels,1,g,Vt.WB),It(m,g="xl/theme/theme1.xml",_c(l.Themes,c)),d.themes.push(g),Ar(c.wbrels,-1,"theme/theme1.xml",Vt.THEME),It(m,g="xl/styles."+f,function(L,R,O){return(R.slice(-4)===".bin"?j1:wh)(L,O)}(l,g,c)),d.styles.push(g),Ar(c.wbrels,-1,"styles."+f,Vt.STY),l.vbaraw&&h&&(It(m,g="xl/vbaProject.bin",l.vbaraw),d.vba.push(g),Ar(c.wbrels,-1,"vbaProject.bin",Vt.VBA)),It(m,g="xl/metadata."+f,function(L){return(L.slice(-4)===".bin"?e2:Ah)()}(g)),d.metadata.push(g),Ar(c.wbrels,-1,"metadata."+f,Vt.XLMETA),It(m,"[Content_Types].xml",Gu(d,c)),It(m,"_rels/.rels",Uo(c.rels)),It(m,"xl/_rels/workbook."+f+".rels",Uo(c.wbrels)),delete c.revssf,delete c.ssf,m}:Op)(a,n)}function Op(a,n){Ho=1024,a&&!a.SSF&&(a.SSF=Lr(oe)),a&&a.SSF&&(Mo(),ni(a.SSF),n.revssf=cn(a.SSF),n.revssf[a.SSF[65535]]=0,n.ssf=a.SSF),n.rels={},n.wbrels={},n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,Li?n.revStrings=new Map:(n.revStrings={},n.revStrings.foo=[],delete n.revStrings.foo);var l="xml",c=-1<Rh.indexOf(n.bookType),f=rc();Ic(n=n||{});var h=Rl(),d="",m=0;if(n.cellXfs=[],ja(n.cellXfs,{},{revssf:{General:0}}),a.Props||(a.Props={}),d="docProps/core.xml",It(h,d,Yu(a.Props,n)),f.coreprops.push(d),Ar(n.rels,2,d,Vt.CORE_PROPS),d="docProps/app.xml",!a.Props||!a.Props.SheetNames)if(a.Workbook&&a.Workbook.Sheets){for(var g=[],y=0;y<a.SheetNames.length;++y)(a.Workbook.Sheets[y]||{}).Hidden!=2&&g.push(a.SheetNames[y]);a.Props.SheetNames=g}else a.Props.SheetNames=a.SheetNames;a.Props.Worksheets=a.Props.SheetNames.length,It(h,d,Ju(a.Props)),f.extprops.push(d),Ar(n.rels,3,d,Vt.EXT_PROPS),a.Custprops!==a.Props&&0<Yr(a.Custprops||{}).length&&(It(h,d="docProps/custom.xml",Xu(a.Custprops)),f.custprops.push(d),Ar(n.rels,4,d,Vt.CUST_PROPS));var v,x=["SheetJ5"];for(n.tcid=0,m=1;m<=a.SheetNames.length;++m){var C,F,k,D,P={"!id":{}},L=a.Sheets[a.SheetNames[m-1]];It(h,d="xl/worksheets/sheet"+m+"."+l,ep(m-1,n,a,P)),f.sheets.push(d),Ar(n.wbrels,-1,"worksheets/sheet"+m+"."+l,Vt.WS[0]),L&&(F=!1,k="",(C=L["!comments"])&&0<C.length&&(D=!1,C.forEach(function(R){R[1].forEach(function(O){O.T==1&&(D=!0)})}),D&&(It(h,k="xl/threadedComments/threadedComment"+m+"."+l,function(R,O,I){var V=[Zr,je("ThreadedComments",null,{xmlns:ls.TCMNT}).replace(/[\/]>/,">")];return R.forEach(function(X){var ae="";(X[1]||[]).forEach(function(te,ce){var _e;te.T?(te.a&&O.indexOf(te.a)==-1&&O.push(te.a),_e={ref:X[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+I.tcid++).slice(-12)+"}"},ce==0?ae=_e.id:_e.parentId=ae,te.ID=_e.id,te.a&&(_e.personId="{54EE7950-7262-4200-6969-"+("000000000000"+O.indexOf(te.a)).slice(-12)+"}"),V.push(je("threadedComment",ms("text",te.t||""),_e))):delete te.ID})}),V.push("</ThreadedComments>"),V.join("")}(C,x,n)),f.threadedcomments.push(k),Ar(P,-1,"../threadedComments/threadedComment"+m+"."+l,Vt.TCMNT)),It(h,k="xl/comments"+m+"."+l,Th(C)),f.comments.push(k),Ar(P,-1,"../comments"+m+"."+l,Vt.CMNT),F=!0),L["!legacy"]&&F&&It(h,"xl/drawings/vmlDrawing"+m+".vml",Sh(m,L["!comments"])),delete L["!comments"],delete L["!legacy"]),P["!id"].rId1&&It(h,bi(d),Uo(P))}return n.Strings!=null&&0<n.Strings.length&&(It(h,d="xl/sharedStrings.xml",oh(n.Strings,n)),f.strs.push(d),Ar(n.wbrels,-1,"sharedStrings.xml",Vt.SST)),It(h,d="xl/workbook.xml",lp(a)),f.workbooks.push(d),Ar(n.rels,1,d,Vt.WB),It(h,d="xl/theme/theme1.xml",_c(a.Themes,n)),f.themes.push(d),Ar(n.wbrels,-1,"theme/theme1.xml",Vt.THEME),It(h,d="xl/styles.xml",wh(a,n)),f.styles.push(d),Ar(n.wbrels,-1,"styles.xml",Vt.STY),a.vbaraw&&c&&(It(h,d="xl/vbaProject.bin",a.vbaraw),f.vba.push(d),Ar(n.wbrels,-1,"vbaProject.bin",Vt.VBA)),It(h,d="xl/metadata.xml",Ah()),f.metadata.push(d),Ar(n.wbrels,-1,"metadata.xml",Vt.XLMETA),1<x.length&&(It(h,d="xl/persons/person.xml",(c=x,v=[Zr,je("personList",null,{xmlns:ls.TCMNT,"xmlns:x":ro[0]}).replace(/[\/]>/,">")],c.forEach(function(R,O){v.push(je("person",null,{displayName:R,id:"{54EE7950-7262-4200-6969-"+("000000000000"+O).slice(-12)+"}",userId:R,providerId:"None"}))}),v.push("</personList>"),v.join(""))),f.people.push(d),Ar(n.wbrels,-1,"persons/person.xml",Vt.PEOPLE)),It(h,"[Content_Types].xml",Gu(f,n)),It(h,"_rels/.rels",Uo(n.rels)),It(h,"xl/_rels/workbook.xml.rels",Uo(n.wbrels)),delete n.revssf,delete n.ssf,h}function Vc(a,n){var l="";switch((n||{}).type||"base64"){case"buffer":return[a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7]];case"base64":l=j(a.slice(0,12));break;case"binary":l=a;break;case"array":return[a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7]];default:throw new Error("Unrecognized type "+(n&&n.type||"undefined"))}return[l.charCodeAt(0),l.charCodeAt(1),l.charCodeAt(2),l.charCodeAt(3),l.charCodeAt(4),l.charCodeAt(5),l.charCodeAt(6),l.charCodeAt(7)]}function Pp(a,n){var l=0;e:for(;l<a.length;)switch(a.charCodeAt(l)){case 10:case 13:case 32:++l;break;case 60:return Rc(a.slice(l),n);default:break e}return zo.to_workbook(a,n)}function Bc(a,n,l,c){return c?(l.type="string",zo.to_workbook(a,l)):zo.to_workbook(n,l)}function Wn(a,n){A();var l=n||{};if(typeof ArrayBuffer<"u"&&a instanceof ArrayBuffer)return Wn(new Uint8Array(a),((l=Lr(l)).type="array",l));typeof Uint8Array<"u"&&a instanceof Uint8Array&&!l.type&&(l.type=typeof Deno<"u"?"buffer":"array");var c,f,h,d,m,g=a,y=!1;if(l.cellStyles&&(l.cellNF=!0,l.sheetStubs=!0),qo={},l.dateNF&&(qo.dateNF=l.dateNF),l.type||(l.type=H&&Buffer.isBuffer(a)?"buffer":"base64"),l.type=="file"&&(l.type=H?"buffer":"binary",g=function(x){if(Va!==void 0)return Va.readFileSync(x);if(typeof Deno<"u")return Deno.readFileSync(x);if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var C=File(x);C.open("r"),C.encoding="binary";var F=C.read();return C.close(),F}catch(k){if(!k.message||!k.message.match(/onstruct/))throw k}throw new Error("Cannot access file "+x)}(a),typeof Uint8Array>"u"||H||(l.type="array")),l.type=="string"&&(y=!0,l.type="binary",l.codepage=65001,g=(v=a).match(/[^\x00-\x7F]/)?ga(v):v),l.type=="array"&&typeof Uint8Array<"u"&&a instanceof Uint8Array&&typeof ArrayBuffer<"u"){var v=new ArrayBuffer(3),v=new Uint8Array(v);if(v.foo="bar",!v.foo)return(l=Lr(l)).type="array",Wn(Je(g),l)}switch((c=Vc(g,l))[0]){case 208:if(c[1]===207&&c[2]===17&&c[3]===224&&c[4]===161&&c[5]===177&&c[6]===26&&c[7]===225)return d=_t.read(g,l),m=l,(_t.find(d,"EncryptedPackage")?Nb:jn)(d,m);break;case 9:if(c[1]<=8)return jn(g,l);break;case 60:return Rc(g,l);case 73:if(c[1]===73&&c[2]===42&&c[3]===0)throw new Error("TIFF Image File is not a spreadsheet");if(c[1]===68)return function(x,C){var F=C||{},k=!!F.WTF;F.WTF=!0;try{var D=Nd.to_workbook(x,F);return F.WTF=k,D}catch(P){if(F.WTF=k,!P.message.match(/SYLK bad record ID/)&&k)throw P;return zo.to_workbook(x,C)}}(g,l);break;case 84:if(c[1]===65&&c[2]===66&&c[3]===76)return Vd.to_workbook(g,l);break;case 80:return c[1]===75&&c[2]<9&&c[3]<9?(h=m=g,(f=(f=l)||{}).type||(f.type=H&&Buffer.isBuffer(m)?"buffer":"base64"),Mp(iu(h,f),f)):Bc(a,g,l,y);case 239:return c[3]===60?Rc(g,l):Bc(a,g,l,y);case 255:if(c[1]===254)return h=g,(f=l).type=="base64"&&(h=j(h)),h=e.utils.decode(1200,h.slice(2),"str"),f.type="binary",Pp(h,f);if(c[1]===0&&c[2]===2&&c[3]===0)return ho.to_workbook(g,l);break;case 0:if(c[1]===0&&(2<=c[2]&&c[3]===0||c[2]===0&&(c[3]===8||c[3]===9)))return ho.to_workbook(g,l);break;case 3:case 131:case 139:case 140:return nc.to_workbook(g,l);case 123:if(c[1]===92&&c[2]===114&&c[3]===116)return dh.to_workbook(g,l);break;case 10:case 13:case 32:return function(x,C){var F="",k=Vc(x,C);switch(C.type){case"base64":F=j(x);break;case"binary":F=x;break;case"buffer":F=x.toString("binary");break;case"array":F=to(x);break;default:throw new Error("Unrecognized type "+C.type)}return k[0]==239&&k[1]==187&&k[2]==191&&(F=Tr(F)),C.type="binary",Pp(F,C)}(g,l);case 137:if(c[1]===80&&c[2]===78&&c[3]===71)throw new Error("PNG Image File is not a spreadsheet")}return-1<u1.indexOf(c[0])&&c[2]<=12&&c[3]<=31?nc.to_workbook(g,l):Bc(a,g,l,y)}function Np(a,n){return n=n||{},n.type="file",Wn(a,n)}function Ip(a,n){switch(n.type){case"base64":case"binary":break;case"buffer":case"array":n.type="";break;case"file":return li(n.file,_t.write(a,{type:H?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+n.bookType+"' files");default:throw new Error("Unrecognized type "+n.type)}return _t.write(a,n)}function Vp(a,n){var l={},c=H?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(n.compression&&(l.compression="DEFLATE"),n.password)l.type=c;else switch(n.type){case"base64":l.type="base64";break;case"binary":l.type="string";break;case"string":throw new Error("'string' output type invalid for '"+n.bookType+"' files");case"buffer":case"file":l.type=c;break;default:throw new Error("Unrecognized type "+n.type)}if(a=a.FullPaths?_t.write(a,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[l.type]||l.type,compression:!!n.compression}):a.generate(l),typeof Deno<"u"&&typeof a=="string"){if(n.type=="binary"||n.type=="base64")return a;a=new Uint8Array(it(a))}return n.password&&typeof encrypt_agile<"u"?Ip(encrypt_agile(a,n.password),n):n.type==="file"?li(n.file,a):n.type=="string"?Tr(a):a}function wa(a,n,l){var c=(l=l||"")+a;switch(n.type){case"base64":return ie(ga(c));case"binary":return ga(c);case"string":return a;case"file":return li(n.file,c,"utf8");case"buffer":return H?ne(c,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(c):wa(c,{type:"binary"}).split("").map(function(f){return f.charCodeAt(0)})}throw new Error("Unrecognized type "+n.type)}function Hn(a,n){switch(n.type){case"string":case"base64":case"binary":for(var l="",c=0;c<a.length;++c)l+=String.fromCharCode(a[c]);return n.type=="base64"?ie(l):n.type=="string"?Tr(l):l;case"file":return li(n.file,a);case"buffer":return a;default:throw new Error("Unrecognized type "+n.type)}}function Uc(a,n){A(),np(a);var l,c=Lr(n||{});return c.cellStyles&&(c.cellNF=!0,c.sheetStubs=!0),c.type!="array"?(l=a,n=Lr((n=c)||{}),Vp(Op(l,n),n)):(c.type="binary",a=Uc(a,c),c.type="array",it(a))}function Yn(a,n){A(),np(a);var l=Lr(n||{});if(l.cellStyles&&(l.cellNF=!0,l.sheetStubs=!0),l.type=="array")return l.type="binary",n=Yn(a,l),l.type="array",it(n);var c,f,h,d=0;if(l.sheet&&(d=typeof l.sheet=="number"?l.sheet:a.SheetNames.indexOf(l.sheet),!a.SheetNames[d]))throw new Error("Sheet not found: "+l.sheet+" : "+typeof l.sheet);switch(l.bookType||"xlsb"){case"xml":case"xlml":return wa(hb(a,l),l);case"slk":case"sylk":return wa(Nd.from_sheet(a.Sheets[a.SheetNames[d]],l),l);case"htm":case"html":return wa(yp(a.Sheets[a.SheetNames[d]],l),l);case"txt":return function(m,g){switch(g.type){case"base64":return ie(m);case"binary":case"string":return m;case"file":return li(g.file,m,"binary");case"buffer":return H?ne(m,"binary"):m.split("").map(function(y){return y.charCodeAt(0)})}throw new Error("Unrecognized type "+g.type)}(jp(a.Sheets[a.SheetNames[d]],l),l);case"csv":return wa(Gc(a.Sheets[a.SheetNames[d]],l),l,"\uFEFF");case"dif":return wa(Vd.from_sheet(a.Sheets[a.SheetNames[d]],l),l);case"dbf":return Hn(nc.from_sheet(a.Sheets[a.SheetNames[d]],l),l);case"prn":return wa(zo.from_sheet(a.Sheets[a.SheetNames[d]],l),l);case"rtf":return wa(dh.from_sheet(a.Sheets[a.SheetNames[d]],l),l);case"eth":return wa(jd.from_sheet(a.Sheets[a.SheetNames[d]],l),l);case"fods":return wa(Sp(a,l),l);case"wk1":return Hn(ho.sheet_to_wk1(a.Sheets[a.SheetNames[d]],l),l);case"wk3":return Hn(ho.book_to_wk3(a,l),l);case"biff2":l.biff||(l.biff=2);case"biff3":l.biff||(l.biff=3);case"biff4":return l.biff||(l.biff=4),Hn(dp(a,l),l);case"biff5":l.biff||(l.biff=5);case"biff8":case"xla":case"xls":return l.biff||(l.biff=8),Ip(bb(a,h=(h=l)||{}),h);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return c=a,h=Lr((f=l)||{}),Ai=new Vb(f),Vp(Ib(c,h),h);default:throw new Error("Unrecognized bookType |"+l.bookType+"|")}}function zc(a){var n;a.bookType||((n=a.file.slice(a.file.lastIndexOf(".")).toLowerCase()).match(/^\.[a-z]+$/)&&(a.bookType=n.slice(1)),a.bookType={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"}[a.bookType]||a.bookType)}function Bp(a,n,l){return l=l||{},l.type="file",l.file=n,zc(l),Yn(a,l)}function Up(a,n,l,c,f,h,d,m){var g=Kr(l),y=m.defval,v=m.raw||!Object.prototype.hasOwnProperty.call(m,"raw"),x=!0,C=f===1?[]:{};if(f!==1)if(Object.defineProperty)try{Object.defineProperty(C,"__rowNum__",{value:l,enumerable:!1})}catch{C.__rowNum__=l}else C.__rowNum__=l;if(!d||a[l])for(var F=n.s.c;F<=n.e.c;++F){var k=d?a[l][F]:a[c[F]+g];if(k!==void 0&&k.t!==void 0){var D=k.v;switch(k.t){case"z":if(D==null)break;continue;case"e":D=D==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+k.t)}if(h[F]!=null){if(D==null)if(k.t=="e"&&D===null)C[h[F]]=null;else if(y!==void 0)C[h[F]]=y;else{if(!v||D!==null)continue;C[h[F]]=null}else C[h[F]]=v&&(k.t!=="n"||k.t==="n"&&m.rawNumbers!==!1)?D:ba(k,D,m);D!=null&&(x=!1)}}else y!==void 0&&h[F]!=null&&(C[h[F]]=y)}return{row:C,isempty:x}}function qn(a,n){if(a==null||a["!ref"]==null)return[];var l,c={t:"n",v:0},f=0,h=1,d=[],m="",g={s:{r:0,c:0},e:{r:0,c:0}},y=n||{},v=y.range!=null?y.range:a["!ref"];switch(y.header===1?f=1:y.header==="A"?f=2:Array.isArray(y.header)?f=3:y.header==null&&(f=0),typeof v){case"string":g=rr(v);break;case"number":(g=rr(a["!ref"])).s.r=v;break;default:g=v}0<f&&(h=0);var x=Kr(g.s.r),C=[],F=[],k=0,D=0,P=Array.isArray(a),L=g.s.r,R=0,O={};P&&!a[L]&&(a[L]=[]);for(var I,V=y.skipHidden&&a["!cols"]||[],X=y.skipHidden&&a["!rows"]||[],R=g.s.c;R<=g.e.c;++R)if(!(V[R]||{}).hidden)switch(C[R]=Vr(R),c=P?a[L][R]:a[C[R]+x],f){case 1:d[R]=R-g.s.c;break;case 2:d[R]=C[R];break;case 3:d[R]=y.header[R-g.s.c];break;default:if(m=l=ba(c=c??{w:"__EMPTY",t:"s"},null,y),D=O[l]||0){for(;m=l+"_"+D++,O[m];);O[l]=D,O[m]=1}else O[l]=1;d[R]=m}for(L=g.s.r+h;L<=g.e.r;++L)(X[L]||{}).hidden||(I=Up(a,g,L,C,f,d,P,y)).isempty!==!1&&(f===1?y.blankrows===!1:!y.blankrows)||(F[k++]=I.row);return F.length=k,F}var zp=/"/g;function Gp(a,n,l,c,f,h,d,m){for(var g=!0,y=[],v="",x=Kr(l),C=n.s.c;C<=n.e.c;++C)if(c[C]){var F=m.dense?(a[l]||[])[C]:a[c[C]+x];if(F==null)v="";else if(F.v!=null){g=!1,v=""+(m.rawNumbers&&F.t=="n"?F.v:ba(F,null,m));for(var k,D=0;D!==v.length;++D)if((k=v.charCodeAt(D))===f||k===h||k===34||m.forceQuotes){v='"'+v.replace(zp,'""')+'"';break}v=="ID"&&(v='"ID"')}else F.f==null||F.F?v="":(g=!1,0<=(v="="+F.f).indexOf(",")&&(v='"'+v.replace(zp,'""')+'"'));y.push(v)}return m.blankrows===!1&&g?null:y.join(d)}function Gc(a,n){var l=[],c=n??{};if(a==null||a["!ref"]==null)return"";var f=rr(a["!ref"]),h=c.FS!==void 0?c.FS:",",d=h.charCodeAt(0),m=c.RS!==void 0?c.RS:` `,g=m.charCodeAt(0),y=new RegExp((h=="|"?"\\|":h)+"+$"),v="",x=[];c.dense=Array.isArray(a);for(var C=c.skipHidden&&a["!cols"]||[],F=c.skipHidden&&a["!rows"]||[],k=f.s.c;k<=f.e.c;++k)(C[k]||{}).hidden||(x[k]=Vr(k));for(var D=0,P=f.s.r;P<=f.e.r;++P)(F[P]||{}).hidden||(v=Gp(a,f,P,x,d,g,h,c))!=null&&(!(v=c.strip?v.replace(y,""):v)&&c.blankrows===!1||l.push((D++?m:"")+v));return delete c.dense,l.join("")}function jp(a,n){return(n=n||{}).FS=" ",n.RS=` `,a=Gc(a,n),e===void 0||n.type=="string"?a:(a=e.utils.encode(1200,a,"str"),String.fromCharCode(255)+String.fromCharCode(254)+a)}function Wp(v,n,l){var c,f=l||{},h=+!f.skipHeader,d=v||{},m=0,g=0;d&&f.origin!=null&&(typeof f.origin=="number"?m=f.origin:(y=typeof f.origin=="string"?jr(f.origin):f.origin,m=y.r,g=y.c));var y,v={s:{c:0,r:0},e:{c:g,r:m+n.length-1+h}};d["!ref"]?(y=rr(d["!ref"]),v.e.c=Math.max(v.e.c,y.e.c),v.e.r=Math.max(v.e.r,y.e.r),m==-1&&(m=y.e.r+1,v.e.r=m+n.length-1+h)):m==-1&&(m=0,v.e.r=n.length-1+h);var x=f.header||[],C=0;n.forEach(function(k,D){Yr(k).forEach(function(I){(C=x.indexOf(I))==-1&&(x[C=x.length]=I);var L=k[I],R="z",O="",I=Rt({c:g+C,r:m+D+h});c=Kn(d,I),!L||typeof L!="object"||L instanceof Date?(typeof L=="number"?R="n":typeof L=="boolean"?R="b":typeof L=="string"?R="s":L instanceof Date?(R="d",f.cellDates||(R="n",L=ns(L)),O=f.dateNF||oe[14]):L===null&&f.nullError&&(R="e",L=0),c?(c.t=R,c.v=L,delete c.w,delete c.R,O&&(c.z=O)):d[I]=c={t:R,v:L},O&&(c.z=O)):d[I]=L})}),v.e.c=Math.max(v.e.c,g+x.length-1);var F=Kr(m);if(h)for(C=0;C<x.length;++C)d[Vr(C+g)+F]={t:"s",v:x[C]};return d["!ref"]=Pt(v),d}function Kn(a,n,l){return typeof n!="string"?Kn(a,Rt(typeof n!="number"?n:{r:n,c:l||0})):Array.isArray(a)?(l=jr(n),a[l.r]||(a[l.r]=[]),a[l.r][l.c]||(a[l.r][l.c]={t:"z"})):a[n]||(a[n]={t:"z"})}function jc(){return{SheetNames:[],Sheets:{}}}function Wc(a,n,l,c){var f=1;if(!l)for(;f<=65535&&a.SheetNames.indexOf(l="Sheet"+f)!=-1;++f,l=void 0);if(!l||65535<=a.SheetNames.length)throw new Error("Too many worksheets");if(c&&0<=a.SheetNames.indexOf(l)){var c=l.match(/(^.*?)(\d+)$/),f=c&&+c[2]||0,h=c&&c[1]||l;for(++f;f<=65535&&a.SheetNames.indexOf(l=h+f)!=-1;++f);}if(ip(l),0<=a.SheetNames.indexOf(l))throw new Error("Worksheet with name |"+l+"| already exists!");return a.SheetNames.push(l),a.Sheets[l]=n,l}function Hp(a,n,l){return n?(a.l={Target:n},l&&(a.l.Tooltip=l)):delete a.l,a}var Jn,Hc={encode_col:Vr,encode_row:Kr,encode_cell:Rt,encode_range:Pt,decode_col:Yl,decode_row:Hl,split_cell:function(a){return a.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:jr,decode_range:ks,format_cell:ba,sheet_add_aoa:Mu,sheet_add_json:Wp,sheet_add_dom:_p,aoa_to_sheet:Io,json_to_sheet:function(a,n){return Wp(null,a,n)},table_to_sheet:vp,table_to_book:function(a,n){return Ba(vp(a,n),n)},sheet_to_csv:Gc,sheet_to_txt:jp,sheet_to_json:qn,sheet_to_html:yp,sheet_to_formulae:function(a){var n,l="",c="";if(a==null||a["!ref"]==null)return[];for(var f,h=rr(a["!ref"]),d=[],m=[],g=Array.isArray(a),y=h.s.c;y<=h.e.c;++y)d[y]=Vr(y);for(var v=h.s.r;v<=h.e.r;++v)for(f=Kr(v),y=h.s.c;y<=h.e.c;++y)if(l=d[y]+f,c="",(n=g?(a[v]||[])[y]:a[l])!==void 0){if(n.F!=null){if(l=n.F,!n.f)continue;c=n.f,l.indexOf(":")==-1&&(l=l+":"+l)}if(n.f!=null)c=n.f;else{if(n.t=="z")continue;if(n.t=="n"&&n.v!=null)c=""+n.v;else if(n.t=="b")c=n.v?"TRUE":"FALSE";else if(n.w!==void 0)c="'"+n.w;else{if(n.v===void 0)continue;c=n.t=="s"?"'"+n.v:""+n.v}}m[m.length]=l+"="+c}return m},sheet_to_row_object_array:qn,sheet_get_cell:Kn,book_new:jc,book_append_sheet:Wc,book_set_sheet_visibility:function(a,n,l){switch(a.Workbook||(a.Workbook={}),a.Workbook.Sheets||(a.Workbook.Sheets=[]),n=function(c,f){if(typeof f=="number"){if(0<=f&&c.SheetNames.length>f)return f;throw new Error("Cannot find sheet # "+f)}if(typeof f!="string")throw new Error("Cannot find sheet |"+f+"|");if(-1<(c=c.SheetNames.indexOf(f)))return c;throw new Error("Cannot find sheet name |"+f+"|")}(a,n),a.Workbook.Sheets[n]||(a.Workbook.Sheets[n]={}),l){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+l)}a.Workbook.Sheets[n].Hidden=l},cell_set_number_format:function(a,n){return a.z=n,a},cell_set_hyperlink:Hp,cell_set_internal_link:function(a,n,l){return Hp(a,"#"+n,l)},cell_add_comment:function(a,n,l){a.c||(a.c=[]),a.c.push({t:n,a:l||"SheetJS"})},sheet_set_array_formula:function(a,n,l,c){for(var f=typeof n!="string"?n:rr(n),h=typeof n=="string"?n:Pt(n),d=f.s.r;d<=f.e.r;++d)for(var m=f.s.c;m<=f.e.c;++m){var g=Kn(a,d,m);g.t="n",g.F=h,delete g.v,d==f.s.r&&m==f.s.c&&(g.f=l,c&&(g.D=!0))}return a},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function Yp(a){Jn=a}var Jo={to_json:function(a,n){var l=Jn({objectMode:!0});if(a==null||a["!ref"]==null)return l.push(null),l;var c,f={t:"n",v:0},h=0,d=1,m=[],g="",y={s:{r:0,c:0},e:{r:0,c:0}},v=n||{},x=v.range!=null?v.range:a["!ref"];switch(v.header===1?h=1:v.header==="A"?h=2:Array.isArray(v.header)&&(h=3),typeof x){case"string":y=rr(x);break;case"number":(y=rr(a["!ref"])).s.r=x;break;default:y=x}0<h&&(d=0);var C=Kr(y.s.r),F=[],k=0,D=Array.isArray(a),P=y.s.r,L=0,R={};D&&!a[P]&&(a[P]=[]);for(var O=v.skipHidden&&a["!cols"]||[],I=v.skipHidden&&a["!rows"]||[],L=y.s.c;L<=y.e.c;++L)if(!(O[L]||{}).hidden)switch(F[L]=Vr(L),f=D?a[P][L]:a[F[L]+C],h){case 1:m[L]=L-y.s.c;break;case 2:m[L]=F[L];break;case 3:m[L]=v.header[L-y.s.c];break;default:if(g=c=ba(f=f??{w:"__EMPTY",t:"s"},null,v),k=R[c]||0){for(;g=c+"_"+k++,R[g];);R[c]=k,R[g]=1}else R[c]=1;m[L]=g}return P=y.s.r+d,l._read=function(){for(;P<=y.e.r;)if(!(I[P-1]||{}).hidden){var V=Up(a,y,P,F,h,m,D,v);if(++P,V.isempty===!1||(h===1?v.blankrows!==!1:v.blankrows))return void l.push(V.row)}return l.push(null)},l},to_html:function(a,f){var l=Jn(),c=f||{},f=c.header!=null?c.header:mp,h=c.footer!=null?c.footer:gp;l.push(f);var d=ks(a["!ref"]);c.dense=Array.isArray(a),l.push(bp(0,0,c));var m=d.s.r,g=!1;return l._read=function(){if(m>d.e.r)return g||(g=!0,l.push("</table>"+h)),l.push(null);for(;m<=d.e.r;){l.push(pp(a,d,m,c)),++m;break}},l},to_csv:function(a,n){var l=Jn(),c=n??{};if(a==null||a["!ref"]==null)return l.push(null),l;var f=rr(a["!ref"]),h=c.FS!==void 0?c.FS:",",d=h.charCodeAt(0),m=c.RS!==void 0?c.RS:` `,g=m.charCodeAt(0),y=new RegExp((h=="|"?"\\|":h)+"+$"),v="",x=[];c.dense=Array.isArray(a);for(var C=c.skipHidden&&a["!cols"]||[],F=c.skipHidden&&a["!rows"]||[],k=f.s.c;k<=f.e.c;++k)(C[k]||{}).hidden||(x[k]=Vr(k));var D=f.s.r,P=!1,L=0;return l._read=function(){if(!P)return P=!0,l.push("\uFEFF");for(;D<=f.e.r;)if(++D,!(F[D-1]||{}).hidden&&(v=Gp(a,f,D-1,x,d,g,h,c),v!=null&&((v=c.strip?v.replace(y,""):v)||c.blankrows!==!1)))return l.push((L++?m:"")+v);return l.push(null)},l},set_readable:Yp},nr=function(){function a(n,l,c){return this instanceof a?(this.tagName=n,this._attributes=l||{},this._children=c||[],this._prefix="",this):new a(n,l,c)}return a.prototype.createElement=function(){return new a(arguments)},a.prototype.children=function(){return this._children},a.prototype.append=function(n){return this._children.push(n),this},a.prototype.prefix=function(n){return arguments.length==0?this._prefix:(this._prefix=n,this)},a.prototype.attr=function(n,l){if(l==null)return delete this._attributes[n],this;if(arguments.length==0)return this._attributes;if(typeof n=="string"&&arguments.length==1)return this._attributes.attr[n];if(typeof n=="object"&&arguments.length==1)for(var c in n)this._attributes[c]=n[c];else arguments.length==2&&typeof n=="string"&&(this._attributes[n]=l);return this},a.prototype.escapeAttributeValue=function(n){return'"'+n.replace(/\"/g,""")+'"'},a.prototype.toXml=function(n){var l=(n=n||this)._prefix;if(l+="<"+n.tagName,n._attributes)for(var c in n._attributes)l+=" "+c+"="+this.escapeAttributeValue(""+n._attributes[c]);if(n._children&&0<n._children.length){l+=">";for(var f=0;f<n._children.length;f++)l+=this.toXml(n._children[f]);l+="</"+n.tagName+">"}else l+="/>";return l},a}(),Vb=function(a){var n,l=164,c={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:'"上午/下午 "hh"時"mm"分"ss"秒 "'},f={};for(n in c)f[c[n]]=n;var h={};return{initialize:function(d){this.$fonts=nr("fonts").attr("count",0).attr("x14ac:knownFonts","1"),this.$fills=nr("fills").attr("count",0),this.$borders=nr("borders").attr("count",0),this.$numFmts=nr("numFmts").attr("count",0),this.$cellStyleXfs=nr("cellStyleXfs"),this.$xf=nr("xf").attr("numFmtId",0).attr("fontId",0).attr("fillId",0).attr("borderId",0),this.$cellXfs=nr("cellXfs").attr("count",0),this.$cellStyles=nr("cellStyles").append(nr("cellStyle").attr("name","Normal").attr("xfId",0).attr("builtinId",0)),this.$dxfs=nr("dxfs").attr("count","0"),this.$tableStyles=nr("tableStyles").attr("count","0").attr("defaultTableStyle","TableStyleMedium9").attr("defaultPivotStyle","PivotStyleMedium4"),this.$styles=nr("styleSheet").attr("xmlns:mc","http://schemas.openxmlformats.org/markup-compatibility/2006").attr("xmlns:x14ac","http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac").attr("xmlns","http://schemas.openxmlformats.org/spreadsheetml/2006/main").attr("mc:Ignorable","x14ac").prefix('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>').append(this.$numFmts).append(this.$fonts).append(this.$fills).append(this.$borders).append(this.$cellStyleXfs.append(this.$xf)).append(this.$cellXfs).append(this.$cellStyles).append(this.$dxfs).append(this.$tableStyles);var m=d.defaultCellStyle||{};return m.font||(m.font={name:"Calibri",sz:"11"}),m.font.name||(m.font.name="Calibri"),m.font.sz||(m.font.sz=11),m.fill||(m.fill={patternType:"none",fgColor:{}}),m.border||(m.border={}),m.numFmt||(m.numFmt=0),this.defaultStyle=m,d=JSON.parse(JSON.stringify(m)),d.fill={patternType:"gray125",fgColor:{}},this.addStyles([m,d]),this},addStyle:function(d){var m=JSON.stringify(d),g=h[m];return g==null?(g=this._addXf(d),h[m]=g):g=h[m],g},addStyles:function(d){var m=this;return d.map(function(g){return m.addStyle(g)})},_duckTypeStyle:function(d){return typeof d=="object"&&(d.patternFill||d.fgColor)?{fill:d}:d.font||d.numFmt||d.border||d.fill?d:this._getStyleCSS(d)},_getStyleCSS:function(d){return d},_addXf:function(d){var m=this._addFont(d.font),g=this._addFill(d.fill),y=this._addBorder(d.border),v=this._addNumFmt(d.numFmt),x=nr("xf").attr("numFmtId",v).attr("fontId",m).attr("fillId",g).attr("borderId",y).attr("xfId","0");return 0<m&&x.attr("applyFont","1"),0<g&&x.attr("applyFill","1"),0<y&&x.attr("applyBorder","1"),0<v&&x.attr("applyNumberFormat","1"),d.alignment&&(v=nr("alignment"),d.alignment.horizontal&&v.attr("horizontal",d.alignment.horizontal),d.alignment.vertical&&v.attr("vertical",d.alignment.vertical),d.alignment.indent&&v.attr("indent",d.alignment.indent),d.alignment.readingOrder&&v.attr("readingOrder",d.alignment.readingOrder),d.alignment.wrapText&&v.attr("wrapText",d.alignment.wrapText),d.alignment.textRotation!=null&&v.attr("textRotation",d.alignment.textRotation),x.append(v).attr("applyAlignment",1)),this.$cellXfs.append(x),x=+this.$cellXfs.children().length,this.$cellXfs.attr("count",x),x-1},_addFont:function(d){if(!d)return 0;var m=nr("font").append(nr("sz").attr("val",d.sz||this.defaultStyle.font.sz)).append(nr("name").attr("val",d.name||this.defaultStyle.font.name));return d.bold&&m.append(nr("b")),d.underline&&m.append(nr("u")),d.italic&&m.append(nr("i")),d.strike&&m.append(nr("strike")),d.outline&&m.append(nr("outline")),d.shadow&&m.append(nr("shadow")),d.vertAlign&&m.append(nr("vertAlign").attr("val",d.vertAlign)),d.color&&(d.color.theme?(m.append(nr("color").attr("theme",d.color.theme)),d.color.tint&&m.append(nr("tint").attr("theme",d.color.tint))):d.color.rgb&&m.append(nr("color").attr("rgb",d.color.rgb))),this.$fonts.append(m),m=this.$fonts.children().length,this.$fonts.attr("count",m),m-1},_addNumFmt:function(d){if(!d)return 0;if(typeof d=="string"){var m=f[d];if(0<=m)return m}return/^[0-9]+$/.exec(d)?d:(d=d.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),d=nr("numFmt").attr("numFmtId",++l).attr("formatCode",d),this.$numFmts.append(d),d=this.$numFmts.children().length,this.$numFmts.attr("count",d),l)},_addFill:function(d){if(!d)return 0;var m,g=nr("patternFill").attr("patternType",d.patternType||"solid");return d.fgColor&&(m=nr("fgColor"),d.fgColor.rgb?(d.fgColor.rgb.length==6&&(d.fgColor.rgb="FF"+d.fgColor.rgb),m.attr("rgb",d.fgColor.rgb),g.append(m)):d.fgColor.theme&&(m.attr("theme",d.fgColor.theme),d.fgColor.tint&&m.attr("tint",d.fgColor.tint),g.append(m)),d.bgColor||(d.bgColor={indexed:"64"})),d.bgColor&&(d=nr("bgColor").attr(d.bgColor),g.append(d)),g=nr("fill").append(g),this.$fills.append(g),g=this.$fills.children().length,this.$fills.attr("count",g),g-1},_getSubBorder:function(d,m){var g=nr(d);return m&&(g.attr("style",m.style||"medium"),m.color&&(d=nr("color"),m.color.auto?d.attr("auto",m.color.auto):m.color.rgb?d.attr("rgb",m.color.rgb):(m.color.theme||m.color.tint)&&(d.attr("theme",m.color.theme||"1"),d.attr("tint",m.color.tint||"0")),g.append(d))),g},_addBorder:function(d){if(!d)return 0;var m=this,g=nr("border").attr("diagonalUp",d.diagonalUp).attr("diagonalDown",d.diagonalDown);["left","right","top","bottom","diagonal"].forEach(function(v){g.append(m._getSubBorder(v,d[v]))}),this.$borders.append(g);var y=this.$borders.children().length;return this.$borders.attr("count",y),y-1},toXml:function(){return this.$styles.toXml()}}.initialize(a||{})};jn!==void 0&&(t.parse_xlscfb=jn),t.parse_zip=Mp,t.read=Wn,t.readFile=Np,t.readFileSync=Np,t.write=Yn,t.writeFile=Bp,t.writeFileSync=Bp,t.writeFileAsync=function(a,n,l,c){var f=l||{};return f.type="file",f.file=a,zc(f),f.type="buffer",c instanceof Function||(c=l),Va.writeFile(a,Yn(n,f),c)},t.utils=Hc,t.writeXLSX=Uc,t.writeFileXLSX=function(a,n,l){return(l=l||{}).type="file",l.file=n,zc(l),Uc(a,l)},t.SSF=Qf,Jo!==void 0&&(t.stream=Jo),_t!==void 0&&(t.CFB=_t),typeof cl>"u"||((Jo=of)||{}).Readable&&Yp(Jo.Readable)}if(i(r),typeof window<"u"&&!window.XLSX)try{window.XLSX=o}catch{}})(_f,_f.exports);var Ue=_f.exports;const F5={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],months:[{value:"1",label:"January"},{value:"2",label:"February"},{value:"3",label:"March"},{value:"4",label:"April"},{value:"5",label:"May"},{value:"6",label:"June"},{value:"7",label:"July"},{value:"8",label:"August"},{value:"9",label:"September"},{value:"10",label:"October"},{value:"11",label:"November"},{value:"12",label:"December"}],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],cutoffs:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[],cutoff_id:[],month:[]},included:{company_id:!1,dealer_id:!1,division_id:!1,department_id:!1,position_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isCompanyLoading:!1,isDealerLoading:!1,isDivisionLoading:!1,isDepartmentLoading:!1,fetchingPayrollDates:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchPayrollDates(){this.state.fetchingPayrollDates=!0,await js.fetchRecords().then(s=>{s.status==200&&(this.cutoffs=s.data.data.map(r=>({value:r.payroll_date,label:r.date_from?r.payroll_date+" ("+this.$formatDate(r.date_from)+" to "+this.$formatDate(r.date_to)+") ":r.payroll_date})))}).catch(s=>{console.error(s)}).finally(()=>this.state.fetchingPayrollDates=!1)},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Fr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await es.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await Rs.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api,this.columnApi=s.columnApi,this.colDefs=[{field:"company_name",headerName:"Organizational Unit",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"employee_count",headerName:"Number of Employees Per Unit",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{headerName:"MEAL",colSpan:1,cellStyle:{textAlign:"center"},children:[{field:"meal_total",headerName:"MEAL SUBSIDY",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]},{headerName:"NUMBER OF COMPANY BENEFITS AVAILERS",colSpan:4,cellStyle:{textAlign:"center"},children:[{headerName:"LEAVE BENEFIT",colSpan:2,cellStyle:{textAlign:"center"},children:[{headerName:"VL",colSpan:2,cellStyle:{textAlign:"center"},children:[{field:"total_vl_wp",headerName:"WP",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_vl_wop",headerName:"WOP",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]},{headerName:"SL",colSpan:2,children:[{field:"total_sl_wp",headerName:"WP",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_sl_wop",headerName:"WOP",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]},{field:"total_bl_wop",headerName:"BL",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]},{headerName:"TRANSPORTATION-RELATED",colSpan:5,children:[{field:"transpo_subsidy_total",headerName:"TRANSPO SUBSIDY",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"transpo_allowance_total",headerName:"TRANSPO ALLOWANCE",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"company_car_total",headerName:"COMPANY CAR",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"gas_allowance_total",headerName:"GASOLINE ALLOWANCE",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"parking_total",headerName:"PARKING SUBSIDY",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]},{headerName:"UNIFORM",colSpan:2,children:[{field:"company_uniform_total",headerName:"COMPANY UNIFORM",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"sm_uniform_total",headerName:"S/M UNIFORM",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]}]},{headerName:"NUMBER OF COMPANY BENEFITS AVAILERS",colSpan:5,children:[{headerName:"HEALTH RELATED",colSpan:2,children:[{field:"hmo_total",headerName:"HMO",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"first_aid_total",headerName:"FIRST AID MEDS",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]},{headerName:"FINANCIAL ASSISTANCE/SUBSIDY",colSpan:6,children:[{field:"ligpai_total",headerName:"LIGPAI",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"calamity_assistance_total",headerName:"CALAMITY ASSISTANCE",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"bereavement_assistance_total",headerName:"BEREAVEMENT ASSISTANCE",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"intereset_fee_total",headerName:"INTEREST FREE COMPANY LOAN",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"laptop_prog_total",headerName:"LAPTOP PROG",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"company_outing_total",headerName:"COMPANY OUTING",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]}]},{field:"com_allowance_total",headerName:"COM ALLOWANCE",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"stay_in_total",headerName:"STAY-IN PRIVILEGE",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"shuttle_service_total",headerName:"SHUTTLE SERVICE",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}],setTimeout(()=>{this.gridApi.redrawRows()},0)},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},getLettersForExcel(s,r,o,i=!1,t=!1){let e=[],u=s.toUpperCase();for(let p=0;p<r;p++)e.push(u+o),i&&(u=this.incrementExcelColumn(u)),t&&o++;return e},incrementExcelColumn(s){let r=s.split("").map(o=>o.charCodeAt(0)-65);for(let o=r.length-1;o>=0;o--){if(r[o]<25)return r[o]++,String.fromCharCode(...r.map(i=>i+65));r[o]=0,o===0&&r.unshift(0)}return String.fromCharCode(...r.map(o=>o+65))},exportToExcel(){if(this.gridApi){const s=this.months.find(w=>w.value==this.form.month),r=[];this.gridApi.forEachNode(w=>r.push(w.data));const o=Ue.utils.json_to_sheet([],{header:[]});Ue.utils.sheet_add_json(o,r,{origin:"B12",skipHeader:!0});const i=r.reduce((w,S)=>(Object.keys(S).forEach((A,E)=>{const M=S[A];typeof M=="number"&&(w[A]=(w[A]||0)+M)}),w),{}),t={};Object.keys(i).forEach(w=>{t[w]=i[w]});const e=r.length+12;Ue.utils.sheet_add_json(o,[t],{origin:`C${e+1}`,skipHeader:!0});const u=(w,S)=>{o[w]={v:S,t:"s",s:{alignment:{horizontal:"center",vertical:"center"},font:{bold:!0,sz:12},fill:{patternType:"solid",fgColor:{rgb:"e7e6e6"}}}}};Object.keys(i).forEach((w,S)=>{const A=String.fromCharCode(67+S)+(e+1);u(A,i[w]),u(String.fromCharCode(66)+(e+1),"TOTAL")});const p=(w,S,A=null)=>{o[w]={v:S,t:"s",s:{alignment:{horizontal:"center",vertical:"center",wrapText:!0},font:{bold:!0,sz:14},fill:A?{patternType:"solid",fgColor:{rgb:A}}:void 0}}},b=(w,S,A=null)=>{o[w]={v:S,t:"s",s:{alignment:{horizontal:"center",vertical:"center",wrapText:!0},border:{top:{style:"thin",color:{rgb:"000000"}},bottom:{style:"thin",color:{rgb:"000000"}},left:{style:"thin",color:{rgb:"000000"}},right:{style:"thin",color:{rgb:"000000"}}},font:{bold:!0,sz:14},fill:A?{patternType:"solid",fgColor:{rgb:A}}:void 0}}};for(let w of this.getLettersForExcel("B",14,2,!0,!1))p(w,"COMPANY BENEFITS AVAILMENT REPORT");for(let w of this.getLettersForExcel("B",14,3,!0,!1))p(w,"FOR THE MONTH OF "+s.label.toUpperCase());for(let w of this.getLettersForExcel("Q",11,2,!0,!1))p(w,"COMPANY BENEFITS AVAILMENT REPORT");for(let w of this.getLettersForExcel("Q",11,3,!0,!1))p(w,"FOR THE MONTH OF "+s.label.toUpperCase());for(let w of["B8","B9","B10","B11"])b(w,"ORGANIZATIONAL UNIT","ffc000");for(let w of this.getLettersForExcel("C",4,8,!1,!0))b(w,"NO. OF EMPLOYEES","ffc000");for(let w of this.getLettersForExcel("D",13,8,!0,!1))b(w,"NUMBER OF COMPANY BENEFITS AVAILERS","ffc000");for(let w of this.getLettersForExcel("D",5,9,!0,!1))b(w,"LEAVE BENEFIT","92d050");for(let w of this.getLettersForExcel("D",2,10,!0,!1))b(w,"VL","92d050");for(let w of this.getLettersForExcel("F",2,10,!0,!1))b(w,"SL","92d050");b("D11","WP","92d050"),b("E11","WOP","92d050"),b("F11","WP","92d050"),b("G11","WOP","92d050");for(let w of this.getLettersForExcel("H",2,10,!1,!0))b(w,"BL","92d050");b("I9","MEAL","92d050");for(let w of this.getLettersForExcel("I",2,10,!1,!0))b(w,"MEAL SUBSIDY","92d050");for(let w of this.getLettersForExcel("J",5,9,!0,!1))b(w,"TRANSPORATION-RELATED","92d050");for(let w of this.getLettersForExcel("J",2,10,!1,!0))b(w,"TRANSPO SUBSIDY","92d050");for(let w of this.getLettersForExcel("K",2,10,!1,!0))b(w,"TRANSPO ALLOWANCE","92d050");for(let w of this.getLettersForExcel("L",2,10,!1,!0))b(w,"COMPANY CAR","92d050");for(let w of this.getLettersForExcel("M",2,10,!1,!0))b(w,"GASOLINE ALLOWANCE","92d050");for(let w of this.getLettersForExcel("N",2,10,!1,!0))b(w,"PARKING SUBSIDY","92d050");for(let w of this.getLettersForExcel("O",2,9,!0,!1))b(w,"UNIFORM","92d050");for(let w of this.getLettersForExcel("O",2,10,!1,!0))b(w,"COMPANY UNIFORM","92d050");for(let w of this.getLettersForExcel("P",2,10,!1,!0))b(w,"S/M UNIFORM","92d050");for(let w of this.getLettersForExcel("Q",11,8,!0,!1))b(w,"NUMBER OF COMPANY BENEFITS AVAILERS","ffc000");for(let w of this.getLettersForExcel("Q",2,9,!0,!1))b(w,"HEALTH RELATED","92d050");for(let w of this.getLettersForExcel("Q",2,10,!1,!0))b(w,"HMO","92d050");for(let w of this.getLettersForExcel("R",2,10,!1,!0))b(w,"FIRST AIDS MEDS","92d050");for(let w of this.getLettersForExcel("S",6,9,!0,!1))b(w,"FINANCIAL ASSISTANCE/SUBSIDY","92d050");for(let w of this.getLettersForExcel("S",2,10,!1,!0))b(w,"LIGPAI","92d050");for(let w of this.getLettersForExcel("T",2,10,!1,!0))b(w,"CALAMITY ASSISTANCE","92d050");for(let w of this.getLettersForExcel("U",2,10,!1,!0))b(w,"BEREAVEMENT ASSISTANCE","92d050");for(let w of this.getLettersForExcel("V",2,10,!1,!0))b(w,"INTEREST FREE COMPANY LOAN","92d050");for(let w of this.getLettersForExcel("W",2,10,!1,!0))b(w,"LAPTOP PROG","92d050");for(let w of this.getLettersForExcel("X",2,10,!1,!0))b(w,"COMPANY OUTING","92d050");for(let w of this.getLettersForExcel("Y",3,9,!1,!0))b(w,"COM ALLOWANCE","92d050");for(let w of this.getLettersForExcel("Z",3,9,!1,!0))b(w,"STAY-IN PRIVILEGE","92d050");for(let w of this.getLettersForExcel("AA",3,9,!1,!0))b(w,"SHUTTLE SERVICE","92d050");o["!cols"]=[{wch:2},{wch:50},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:25},{wch:25},{wch:23},{wch:23},{wch:20},{wch:20},{wch:20},{wch:20},{wch:10},{wch:25},{wch:28},{wch:30},{wch:20},{wch:20},{wch:20},{wch:20},{wch:20},{wch:20}],o["!rows"]=[{hpt:30},{hpt:20},{hpt:25},{hpt:10},{hpt:10},{hpt:15},{hpt:10},{hpt:20},{hpt:25},{hpt:30},{hpt:30}],o["!merges"]=[Ue.utils.decode_range("B2:P2"),Ue.utils.decode_range("B3:P3"),Ue.utils.decode_range("Q2:AA2"),Ue.utils.decode_range("Q3:AA3"),Ue.utils.decode_range("B8:B11"),Ue.utils.decode_range("C8:C11"),Ue.utils.decode_range("D8:P8"),Ue.utils.decode_range("D9:H9"),Ue.utils.decode_range("D10:E10"),Ue.utils.decode_range("F10:G10"),Ue.utils.decode_range("H10:H11"),Ue.utils.decode_range("I10:I11"),Ue.utils.decode_range("J9:N9"),Ue.utils.decode_range("J10:J11"),Ue.utils.decode_range("K10:K11"),Ue.utils.decode_range("L10:L11"),Ue.utils.decode_range("M10:M11"),Ue.utils.decode_range("N10:N11"),Ue.utils.decode_range("O9:P9"),Ue.utils.decode_range("O10:O11"),Ue.utils.decode_range("P10:P11"),Ue.utils.decode_range("Q8:AA8"),Ue.utils.decode_range("Q9:R9"),Ue.utils.decode_range("Q10:Q11"),Ue.utils.decode_range("R10:R11"),Ue.utils.decode_range("S9:X9"),Ue.utils.decode_range("S10:S11"),Ue.utils.decode_range("T10:T11"),Ue.utils.decode_range("U10:U11"),Ue.utils.decode_range("V10:V11"),Ue.utils.decode_range("W10:W11"),Ue.utils.decode_range("X10:X11"),Ue.utils.decode_range("Y9:Y11"),Ue.utils.decode_range("Z9:Z11"),Ue.utils.decode_range("AA9:AA11")];const _=Ue.utils.book_new();Ue.utils.book_append_sheet(_,o,"Company Benefits"),Ue.writeFile(_,"Company_Benefits_Report.xlsx")}},async saveRecord(){this.hasValue=!1,await tt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){this.finalData=s.data.data;const r=this.finalData.map(o=>({company_name:o.company_name||0,employee_count:o.employee_count||0,total_vl_wp:o.total_vl_wp||0,total_vl_wop:o.total_vl_wop||0,total_sl_wp:o.total_sl_wp||0,total_sl_wop:o.total_sl_wop||0,total_bl_wop:o.total_bl_wop||0,meal_total:this.$formatNumber(o.meal_total)||0,transpo_subsidy_total:this.$formatNumber(o.transpo_subsidy_total)||0,transpo_allowance_total:o.transpo_allowance_total||0,company_car_total:o.company_car_total||0,gas_allowance_total:o.gas_allowance_total||0,parking_total:o.parking_total||0,company_uniform_total:o.company_uniform_total||0,sm_uniform_total:o.sm_uniform_total||0,hmo_total:DataTransferItem.hmo_total||0,first_aid_total:DataTransferItem.first_aid_total||0,ligpai_total:DataTransferItem.ligpai_total||0,calamity_assistance_total:DataTransferItem.calamity_assistance_total||0,bereavement_assistance_total:DataTransferItem.bereavement_assistance_total||0,intereset_fee_total:DataTransferItem.intereset_fee_total||0,laptop_prog_total:DataTransferItem.laptop_prog_total||0,company_outing_total:DataTransferItem.company_outing_total||0,com_allowance_total:DataTransferItem.com_allowance_total||0,stay_in_total:DataTransferItem.stay_in_total||0,shuttle_service_total:DataTransferItem.shuttle_service_total||0}));this.resultData=r,this.hasValue=!0}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await tt.fetchReportModuleColumnRecord(13);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchCompany()},watch:{}},D5={class:"grid grid-cols-2 gap-2"},A5={class:"flex justify-between items-center"},S5={class:"flex gap-1 justify-end"};function E5(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("Button"),_=Y("SubmitButton"),w=Y("ag-grid-vue"),S=Y("Card");return re(),Le(Cr,null,[B("form",{onSubmit:r[2]||(r[2]=St((...A)=>s.confirmSubmit&&s.confirmSubmit(...A),["prevent"])),class:"space-y-4"},[B("div",D5,[T(p,{label:"Company"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=A=>t.form.company_id=A),options:t.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Month"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.month,"onUpdate:modelValue":r[1]||(r[1]=A=>t.form.month=A),options:t.months,mode:"tags",class:"form-multiselect w-full"},null,8,["modelValue","options"])]),_:1})]),B("div",A5,[t.hasValue?(re(),Me(b,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToExcel},null,8,["onClick"])):me("",!0),B("div",S5,[T(_,{onClick:e.submitForm,text:"Generate",icon:"streamline:ai-generate-variation-spark",titleTheme:"success-500",btnClass:"text-white bg-primary-500 hover:ring ring-primary-500 ring-offset-1 py-2 px-3 w-full"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(S,{key:0,class:"p-2"},{default:G(()=>[T(w,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):me("",!0)],64)}const T5=Et(F5,[["render",E5],["__scopeId","data-v-b6d79be0"]]);const R5={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],employeeOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[]},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isDealerLoading:!1,isLoadingDealerships:!1,isLoadingEmployees:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchEmployee(){this.state.isEmployeeLoading=!0,await Fr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await es.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await Rs.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generateExcel(){const s=this.dealers.find(o=>o.value===this.form.dealer_id),r=this.companies.find(o=>o.value===this.form.company_id);if(console.log("finalData",this.finalData),!this.finalData.length){this.$swal.fire({title:"No Data Available",text:"Please generate a report first.",icon:"warning",timer:3e3});return}oa(()=>import("./exceljs.min.9ae7dbb2.js").then(o=>o.e),["assets/exceljs.min.9ae7dbb2.js","assets/index.3a0d1437.js","assets/index.3378bb1a.css"]).then(o=>{const i=new o.default.Workbook,t=i.addWorksheet("Employee Tax Application");t.mergeCells("A1:E1");const e=t.getCell("A1");e.value="List of Employee's Tax Application",e.font={size:16,bold:!0},e.alignment={horizontal:"center"},t.mergeCells("A2:E2");const u=t.getCell("A2");u.value=(s==null?void 0:s.label)||(r==null?void 0:r.label),u.font={size:12,bold:!0},u.alignment={horizontal:"center"},t.columns=[{key:"empId",width:10},{key:"name",width:30},{key:"position",width:30},{key:"taxApplication",width:20},{key:"basicSalary",width:15}];const p={};let b=4,_=0;const w={1:0,2:0,3:0,"N/A":0};this.finalData.forEach(M=>{var ee,ie,j;const N=((ee=M.dealership)==null?void 0:ee.name)||"Unknown Dealership";p[N]||(p[N]={employees:[],totalSalary:0,taxCounts:{1:0,2:0,3:0,"N/A":0}}),p[N].employees.push(M);const q=parseFloat((ie=M.salary_and_wages)==null?void 0:ie.salary_rate)||0;p[N].totalSalary+=q,_+=q;const U=(j=M.salary_and_wages)==null?void 0:j.tax_application;p[N].taxCounts[U]=(p[N].taxCounts[U]||0)+1,w[U]=(w[U]||0)+1}),Object.keys(p).forEach(M=>{const N=p[M];t.mergeCells(`A${b}:E${b}`);const q=t.getCell(`A${b}`);q.value=M,q.font={size:12,bold:!0},q.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}},q.alignment={horizontal:"left"},b++,t.addRow(["EMP ID","NAME","POSITION","TAX APPLICATION","BASIC SALARY"]).eachCell(j=>{j.font={bold:!0,color:{argb:"FFFFFFFF"}},j.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF464646"}},j.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),b++,N.employees.forEach(j=>{var ft,Je,ut;const H=(ft=j.salary_and_wages)==null?void 0:ft.tax_application,ne=H==1?"Base on Table":H==2?"No Tax":H==3?"Force Tax":"N/A",W=parseFloat((Je=j.salary_and_wages)==null?void 0:Je.salary_rate)||0,Ae=t.addRow([j.employee_id||"",j.firstname+" "+j.lastname||"",((ut=j.position)==null?void 0:ut.name)||"",ne,W]),ve=Ae.getCell(5);ve.numFmt="#,##0.00",ve.alignment={horizontal:"right"};const it=Ae.getCell(4);ne==="No Tax"?it.font={color:{argb:"FFFF0000"}}:ne==="Force Tax"?it.font={color:{argb:"FF0000FF"}}:ne==="Base on Table"&&(it.font={color:{argb:"FF008000"}}),Ae.eachCell(bt=>{bt.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),b++}),t.addRow(["","","DEALER TOTAL:","",N.totalSalary]).eachCell((j,H)=>{H===3?j.font={bold:!0}:H===5&&(j.font={bold:!0},j.numFmt="#,##0.00",j.alignment={horizontal:"right"})}),b++,t.addRow(["","","DEALER TAX SUMMARY"]),b++,t.addRow(["Base on Table:",N.taxCounts[1]||0,"No Tax:",N.taxCounts[2]||0,"Force Tax:",N.taxCounts[3]||0]).eachCell(j=>{j.font={bold:!0}}),b++,t.addRow([]),b++}),t.mergeCells(`A${b}:E${b}`);const S=t.getCell(`A${b}`);return S.value="GRAND TOTAL SUMMARY",S.font={size:14,bold:!0},S.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFAAAAAA"}},S.alignment={horizontal:"center"},b++,t.addRow(["","","GRAND TOTAL:","",_]).eachCell((M,N)=>{N===3?M.font={bold:!0,size:12}:N===5&&(M.font={bold:!0,size:12},M.numFmt="#,##0.00",M.alignment={horizontal:"right"})}),b++,t.addRow([]),b++,t.addRow(["","","OVERALL TAX APPLICATION SUMMARY"]),b++,t.addRow(["Base on Table:",w[1]||0,"No Tax:",w[2]||0,"Force Tax:",w[3]||0]).eachCell(M=>{M.font={bold:!0}}),i.xlsx.writeBuffer()}).then(o=>{const i=new Blob([o],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),t=window.URL.createObjectURL(i),e=document.createElement("a");e.href=t,e.download="EmployeeTaxApplication.xlsx",document.body.appendChild(e),e.click(),window.URL.revokeObjectURL(t),document.body.removeChild(e)}).catch(o=>{console.error("Error generating Excel file:",o),this.$swal.fire({title:"Export Failed",text:"Failed to generate Excel file. Please try again.",icon:"error",timer:3e3})})},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Rr().shape({company_id:Dt().nullable().required("Company is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{await this.fetchAttendanceData(),this.generateExcel()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},async fetchAttendanceData(){try{const r=(await tt.GenerateEmployeeTaxApplicationReport(this.form)).data||{};let o=Object.values(r);o&&(this.employee={emp_no:o.emp_no,name:o.name}),this.finalData=Object.values(r)}catch(s){throw console.error("Error fetching attendance data:",s),s}}},mounted(){this.fetchCompany(),this.fetchDealership(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee()},watch:{"form.dealership_id"(){this.fetchEmployees()}}},k5={class:"grid grid-cols-3 gap-2"},L5={key:0,class:"text-[#ec4899]"},M5={class:"flex justify-between items-center"},O5={class:"flex gap-1 justify-end"};function P5(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("Button"),_=Y("SubmitButton");return re(),Le("form",{onSubmit:r[6]||(r[6]=St((...w)=>s.confirmSubmit&&s.confirmSubmit(...w),["prevent"])),class:"space-y-4"},[B("div",k5,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=w=>t.form.company_id=w),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(re(),Le("div",L5,"Company is required")):me("",!0)]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=w=>t.form.dealer_id=w),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Division"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=w=>t.form.division_id=w),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Department"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=w=>t.form.department_id=w),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Position"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=w=>t.form.position_id=w),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Employee"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=w=>t.form.employee_id=w),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",M5,[t.hasValue?(re(),Me(b,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToExcel},null,8,["onClick"])):me("",!0),B("div",O5,[T(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32)}const N5=Et(R5,[["render",P5],["__scopeId","data-v-3f6f2d53"]]);const I5={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],MonthsOptions:[],YearsOptions:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],employeeOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[],cutoff_id:[],month:"",year:""},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isDealerLoading:!1,isLoadingDealerships:!1,isLoadingEmployees:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{fetchMonthsAndYears(){this.MonthsOptions=Object.entries(mt.getMonthMap()).map(([s,r])=>({value:parseInt(s),label:r})),this.YearsOptions=Object.entries(mt.getYearMap()).map(([s,r])=>({value:r,label:r}))},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Fr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await es.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await Rs.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generateExcel(){const s=this.dealers.find(i=>i.value===this.form.dealer_id),r=this.companies.find(i=>i.value===this.form.company_id),o=this.MonthsOptions.find(i=>i.value===this.form.month);if(console.log("finalData",this.finalData),!this.finalData.length){this.$swal.fire({title:"No Data Available",text:"Please generate a report first.",icon:"warning",timer:3e3});return}oa(()=>import("./exceljs.min.9ae7dbb2.js").then(i=>i.e),["assets/exceljs.min.9ae7dbb2.js","assets/index.3a0d1437.js","assets/index.3378bb1a.css"]).then(i=>{const t=new i.default.Workbook,e=t.addWorksheet("Employee Philhealth Application");e.mergeCells("A1:E1");const u=e.getCell("A1");u.value="List of Employee's Philhealth",u.font={size:16,bold:!0},u.alignment={horizontal:"center"},e.mergeCells("A2:E2");const p=e.getCell("A2");p.value=(s==null?void 0:s.label)||r.label,p.font={size:12,bold:!0},p.alignment={horizontal:"center"},e.mergeCells("A3:E3");const b=e.getCell("A3");b.value="Covered Period: "+o.label+" "+this.form.year,b.font={size:12,bold:!0},b.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}},e.columns=[{key:"empId",width:30},{key:"name",width:30},{key:"employee",width:15},{key:"employer",width:15},{key:"total",width:15}];const _={};this.finalData.forEach(ne=>{const W=ne.dealer_name||"Unknown Dealer";_[W]||(_[W]=[]),_[W].push(ne)});let w=0,S=0,A=0,E=0;Object.keys(_).forEach(ne=>{const W=_[ne],Ae=e.addRow([`Dealership: ${ne}`,"","","",""]);Ae.getCell(1).font={bold:!0,size:12},Ae.eachCell(Q=>{Q.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFCCCCCC"}}}),e.addRow(["PHILEALTH # ID","NAME","EMPLOYEE","EMPLOYER","TOTAL"]).eachCell(Q=>{Q.font={bold:!0,color:{argb:"FFFFFFFF"}},Q.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF464646"}},Q.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}});let it=0,ft=0,Je=0;const ut=W.length;W.forEach(Q=>{var Ie;const Ce=parseFloat(Q.total_philhealth)||0,Te=parseFloat(Q.total_philhealth)||0,xe=Ce+Te,oe=e.addRow([((Ie=Q.personal_info)==null?void 0:Ie.philhealth)||"",Q.employee.lastname+", "+Q.employee.firstname||"",Ce,Te,xe]),pe=oe.getCell(3);pe.numFmt="#,##0.00",pe.alignment={horizontal:"right"};const se=oe.getCell(4);se.numFmt="#,##0.00",se.alignment={horizontal:"right"};const nt=oe.getCell(5);nt.numFmt="#,##0.00",nt.alignment={horizontal:"right"},it+=Ce,ft+=Te,Je+=xe}),e.addRow([]);const bt=e.addRow(["","NUMBER OF EMPLOYEES",ut,"",""]);bt.getCell(2).font={bold:!0},bt.getCell(3).font={bold:!0};const st=e.addRow(["","EMPLOYEE CONTRIBUTIONS",it,"",""]);st.getCell(2).font={bold:!0};const Mt=st.getCell(3);Mt.numFmt="#,##0.00",Mt.alignment={horizontal:"right"},Mt.font={bold:!0};const Lt=e.addRow(["","EMPLOYER CONTRIBUTIONS","",ft,""]);Lt.getCell(2).font={bold:!0};const Er=Lt.getCell(4);Er.numFmt="#,##0.00",Er.alignment={horizontal:"right"},Er.font={bold:!0};const At=e.addRow(["",`${ne} TOTAL`,"","",Je]);At.getCell(2).font={bold:!0};const Se=At.getCell(5);Se.numFmt="#,##0.00",Se.alignment={horizontal:"right"},Se.font={bold:!0},[1,2,3,4,5].forEach(Q=>{const Ce=At.getCell(Q);Ce.border={bottom:{style:"double"}}}),e.addRow([]),w+=it,S+=ft,A+=Je,E+=ut});const M=e.addRow(["OVERALL SUMMARY","","","",""]);M.getCell(1).font={bold:!0,size:14},M.eachCell(ne=>{ne.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFAAAAAA"}}});const N=e.addRow(["","TOTAL NUMBER OF EMPLOYEES",E,"",""]);N.getCell(2).font={bold:!0},N.getCell(3).font={bold:!0};const q=e.addRow(["","TOTAL EMPLOYEE CONTRIBUTIONS",w,"",""]);q.getCell(2).font={bold:!0};const U=q.getCell(3);U.numFmt="#,##0.00",U.alignment={horizontal:"right"},U.font={bold:!0};const ee=e.addRow(["","TOTAL EMPLOYER CONTRIBUTIONS","",S,""]);ee.getCell(2).font={bold:!0};const ie=ee.getCell(4);ie.numFmt="#,##0.00",ie.alignment={horizontal:"right"},ie.font={bold:!0};const j=e.addRow(["","OVERALL GRAND TOTAL","","",A]);j.getCell(2).font={bold:!0,size:12};const H=j.getCell(5);return H.numFmt="#,##0.00",H.alignment={horizontal:"right"},H.font={bold:!0},[1,2,3,4,5].forEach(ne=>{const W=j.getCell(ne);W.border={top:{style:"thin"},bottom:{style:"double"}}}),t.xlsx.writeBuffer()}).then(i=>{const t=new Blob([i],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),e=window.URL.createObjectURL(t),u=document.createElement("a");u.href=e,u.download="EmployeePhilhealthReport.xlsx",document.body.appendChild(u),u.click(),window.URL.revokeObjectURL(e),document.body.removeChild(u)}).catch(i=>{console.error("Error generating Excel file:",i),this.$swal.fire({title:"Export Failed",text:"Failed to generate Excel file. Please try again.",icon:"error",timer:3e3})})},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Rr().shape({company_id:Dt().nullable().required("Company is required"),month:Dt().nullable().required("Month is required"),year:Dt().nullable().required("Year is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{await this.fetchAttendanceData(),this.generateExcel()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},async fetchAttendanceData(){try{const r=(await tt.GenerateEmployeePhilhealth(this.form)).data||{};let o=Object.values(r);o&&(this.employee={emp_no:o.emp_no,name:o.name}),this.finalData=Object.values(r)}catch(s){throw console.error("Error fetching attendance data:",s),s}}},mounted(){this.fetchMonthsAndYears(),this.fetchCompany(),this.fetchDealership(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee()},watch:{"form.dealership_id"(){this.fetchEmployees()}}},V5={class:"grid grid-cols-4 gap-2"},B5={key:0,class:"text-[#ec4899]"},U5={key:0,class:"text-[#ec4899]"},z5={key:0,class:"text-[#ec4899]"},G5={class:"flex justify-between items-center"},j5={class:"flex gap-1 justify-end"};function W5(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("Button"),_=Y("SubmitButton"),w=Y("ag-grid-vue"),S=Y("Card");return re(),Le(Cr,null,[B("form",{onSubmit:r[8]||(r[8]=St((...A)=>s.confirmSubmit&&s.confirmSubmit(...A),["prevent"])),class:"space-y-4"},[B("div",V5,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=A=>t.form.company_id=A),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(re(),Le("div",B5,"Company is required")):me("",!0)]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=A=>t.form.dealer_id=A),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Division"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=A=>t.form.division_id=A),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Department"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=A=>t.form.department_id=A),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Position"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=A=>t.form.position_id=A),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Employee"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=A=>t.form.employee_id=A),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Month",isRequired:!0},{default:G(()=>[T(u,{placeholder:"Select a Month",searchable:!0,modelValue:t.form.month,"onUpdate:modelValue":r[6]||(r[6]=A=>t.form.month=A),options:t.MonthsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.month?(re(),Le("div",U5,"Month is required")):me("",!0)]),_:1}),T(p,{label:"Year",isRequired:!0},{default:G(()=>[T(u,{placeholder:"Select a Year",searchable:!0,modelValue:t.form.year,"onUpdate:modelValue":r[7]||(r[7]=A=>t.form.year=A),options:t.YearsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.year?(re(),Le("div",z5,"Year is required")):me("",!0)]),_:1})]),B("div",G5,[t.hasValue?(re(),Me(b,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToExcel},null,8,["onClick"])):me("",!0),B("div",j5,[T(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(S,{key:0,class:"p-2"},{default:G(()=>[T(w,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:s.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):me("",!0)],64)}const H5=Et(I5,[["render",W5],["__scopeId","data-v-ec2bdbb1"]]);const Y5={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],MonthsOptions:[],YearsOptions:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],employeeOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[],cutoff_id:[],month:"",year:""},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isDealerLoading:!1,isLoadingDealerships:!1,isLoadingEmployees:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{fetchMonthsAndYears(){this.MonthsOptions=Object.entries(mt.getMonthMap()).map(([s,r])=>({value:parseInt(s),label:r})),this.YearsOptions=Object.entries(mt.getYearMap()).map(([s,r])=>({value:r,label:r}))},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Fr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await es.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await Rs.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generateExcel(){const s=this.dealers.find(i=>i.value===this.form.dealer_id),r=this.companies.find(i=>i.value===this.form.company_id),o=this.MonthsOptions.find(i=>i.value===this.form.month);if(console.log("finalData",this.finalData),!this.finalData.length){this.$swal.fire({title:"No Data Available",text:"Please generate a report first.",icon:"warning",timer:3e3});return}oa(()=>import("./exceljs.min.9ae7dbb2.js").then(i=>i.e),["assets/exceljs.min.9ae7dbb2.js","assets/index.3a0d1437.js","assets/index.3378bb1a.css"]).then(i=>{const t=new i.default.Workbook,e=t.addWorksheet("Employee SSS Application");e.mergeCells("A1:E1");const u=e.getCell("A1");u.value="List of Employee's SSS",u.font={size:16,bold:!0},u.alignment={horizontal:"center"},e.mergeCells("A2:E2");const p=e.getCell("A2");p.value=(s==null?void 0:s.label)||r.label,p.font={size:12,bold:!0},p.alignment={horizontal:"center"},e.mergeCells("A3:E3");const b=e.getCell("A3");b.value="Covered Period: "+o.label+" "+this.form.year,b.font={size:12,bold:!0},b.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}},e.columns=[{key:"empId",width:30},{key:"name",width:30},{key:"employee",width:15},{key:"employer",width:15},{key:"total",width:15}];const _={};this.finalData.forEach(ne=>{const W=ne.dealer_name||"Unknown Dealer";_[W]||(_[W]=[]),_[W].push(ne)});let w=0,S=0,A=0,E=0;Object.keys(_).forEach(ne=>{const W=_[ne],Ae=e.addRow([`Dealership: ${ne}`,"","","",""]);Ae.getCell(1).font={bold:!0,size:12},Ae.eachCell(Q=>{Q.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFCCCCCC"}}}),e.addRow(["PHILEALTH # ID","NAME","EMPLOYEE","EMPLOYER","TOTAL"]).eachCell(Q=>{Q.font={bold:!0,color:{argb:"FFFFFFFF"}},Q.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF464646"}},Q.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}});let it=0,ft=0,Je=0;const ut=W.length;W.forEach(Q=>{var Ie;const Ce=parseFloat(Q.sss_employee_share)||0,Te=parseFloat(Q.sss_employer_share)||0,xe=Ce+Te,oe=e.addRow([((Ie=Q.personal_info)==null?void 0:Ie.sss)||"",Q.employee.lastname+", "+Q.employee.firstname||"",Ce,Te,xe]),pe=oe.getCell(3);pe.numFmt="#,##0.00",pe.alignment={horizontal:"right"};const se=oe.getCell(4);se.numFmt="#,##0.00",se.alignment={horizontal:"right"};const nt=oe.getCell(5);nt.numFmt="#,##0.00",nt.alignment={horizontal:"right"},it+=Ce,ft+=Te,Je+=xe}),e.addRow([]);const bt=e.addRow(["","NUMBER OF EMPLOYEES",ut,"",""]);bt.getCell(2).font={bold:!0},bt.getCell(3).font={bold:!0};const st=e.addRow(["","EMPLOYEE CONTRIBUTIONS",it,"",""]);st.getCell(2).font={bold:!0};const Mt=st.getCell(3);Mt.numFmt="#,##0.00",Mt.alignment={horizontal:"right"},Mt.font={bold:!0};const Lt=e.addRow(["","EMPLOYER CONTRIBUTIONS","",ft,""]);Lt.getCell(2).font={bold:!0};const Er=Lt.getCell(4);Er.numFmt="#,##0.00",Er.alignment={horizontal:"right"},Er.font={bold:!0};const At=e.addRow(["",`${ne} TOTAL`,"","",Je]);At.getCell(2).font={bold:!0};const Se=At.getCell(5);Se.numFmt="#,##0.00",Se.alignment={horizontal:"right"},Se.font={bold:!0},[1,2,3,4,5].forEach(Q=>{const Ce=At.getCell(Q);Ce.border={bottom:{style:"double"}}}),e.addRow([]),w+=it,S+=ft,A+=Je,E+=ut});const M=e.addRow(["OVERALL SUMMARY","","","",""]);M.getCell(1).font={bold:!0,size:14},M.eachCell(ne=>{ne.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFAAAAAA"}}});const N=e.addRow(["","TOTAL NUMBER OF EMPLOYEES",E,"",""]);N.getCell(2).font={bold:!0},N.getCell(3).font={bold:!0};const q=e.addRow(["","TOTAL EMPLOYEE CONTRIBUTIONS",w,"",""]);q.getCell(2).font={bold:!0};const U=q.getCell(3);U.numFmt="#,##0.00",U.alignment={horizontal:"right"},U.font={bold:!0};const ee=e.addRow(["","TOTAL EMPLOYER CONTRIBUTIONS","",S,""]);ee.getCell(2).font={bold:!0};const ie=ee.getCell(4);ie.numFmt="#,##0.00",ie.alignment={horizontal:"right"},ie.font={bold:!0};const j=e.addRow(["","OVERALL GRAND TOTAL","","",A]);j.getCell(2).font={bold:!0,size:12};const H=j.getCell(5);return H.numFmt="#,##0.00",H.alignment={horizontal:"right"},H.font={bold:!0},[1,2,3,4,5].forEach(ne=>{const W=j.getCell(ne);W.border={top:{style:"thin"},bottom:{style:"double"}}}),t.xlsx.writeBuffer()}).then(i=>{const t=new Blob([i],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),e=window.URL.createObjectURL(t),u=document.createElement("a");u.href=e,u.download="EmployeeSSSReport.xlsx",document.body.appendChild(u),u.click(),window.URL.revokeObjectURL(e),document.body.removeChild(u)}).catch(i=>{console.error("Error generating Excel file:",i),this.$swal.fire({title:"Export Failed",text:"Failed to generate Excel file. Please try again.",icon:"error",timer:3e3})})},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Rr().shape({company_id:Dt().nullable().required("Company is required"),month:Dt().nullable().required("Month is required"),year:Dt().nullable().required("Year is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{await this.fetchAttendanceData(),this.generateExcel()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},async fetchAttendanceData(){try{const r=(await tt.GenerateEmployeeSSS(this.form)).data||{};let o=Object.values(r);o&&(this.employee={emp_no:o.emp_no,name:o.name}),this.finalData=Object.values(r)}catch(s){throw console.error("Error fetching attendance data:",s),s}}},mounted(){this.fetchMonthsAndYears(),this.fetchCompany(),this.fetchDealership(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee()},watch:{"form.dealership_id"(){this.fetchEmployees()}}},q5={class:"grid grid-cols-4 gap-2"},K5={key:0,class:"text-[#ec4899]"},J5={key:0,class:"text-[#ec4899]"},X5={key:0,class:"text-[#ec4899]"},Q5={class:"flex justify-between items-center"},Z5={class:"flex gap-1 justify-end"};function $5(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("Button"),_=Y("SubmitButton"),w=Y("ag-grid-vue"),S=Y("Card");return re(),Le(Cr,null,[B("form",{onSubmit:r[8]||(r[8]=St((...A)=>s.confirmSubmit&&s.confirmSubmit(...A),["prevent"])),class:"space-y-4"},[B("div",q5,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=A=>t.form.company_id=A),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(re(),Le("div",K5,"Company is required")):me("",!0)]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=A=>t.form.dealer_id=A),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Division"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=A=>t.form.division_id=A),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Department"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=A=>t.form.department_id=A),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Position"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=A=>t.form.position_id=A),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Employee"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=A=>t.form.employee_id=A),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Month",isRequired:!0},{default:G(()=>[T(u,{placeholder:"Select a Month",searchable:!0,modelValue:t.form.month,"onUpdate:modelValue":r[6]||(r[6]=A=>t.form.month=A),options:t.MonthsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.month?(re(),Le("div",J5,"Month is required")):me("",!0)]),_:1}),T(p,{label:"Year",isRequired:!0},{default:G(()=>[T(u,{placeholder:"Select a Year",searchable:!0,modelValue:t.form.year,"onUpdate:modelValue":r[7]||(r[7]=A=>t.form.year=A),options:t.YearsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.year?(re(),Le("div",X5,"Year is required")):me("",!0)]),_:1})]),B("div",Q5,[t.hasValue?(re(),Me(b,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToExcel},null,8,["onClick"])):me("",!0),B("div",Z5,[T(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(S,{key:0,class:"p-2"},{default:G(()=>[T(w,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:s.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):me("",!0)],64)}const eF=Et(Y5,[["render",$5],["__scopeId","data-v-2e6ed058"]]);const tF={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],MonthsOptions:[],YearsOptions:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],employeeOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[],cutoff_id:[],month:"",year:""},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isDealerLoading:!1,isLoadingDealerships:!1,isLoadingEmployees:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{fetchMonthsAndYears(){this.MonthsOptions=Object.entries(mt.getMonthMap()).map(([s,r])=>({value:parseInt(s),label:r})),this.YearsOptions=Object.entries(mt.getYearMap()).map(([s,r])=>({value:r,label:r}))},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Fr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await es.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await Rs.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generateExcel(){const s=this.dealers.find(i=>i.value===this.form.dealer_id),r=this.companies.find(i=>i.value===this.form.company_id),o=this.MonthsOptions.find(i=>i.value===this.form.month);if(console.log("finalData",this.finalData),!this.finalData.length){this.$swal.fire({title:"No Data Available",text:"Please generate a report first.",icon:"warning",timer:3e3});return}oa(()=>import("./exceljs.min.9ae7dbb2.js").then(i=>i.e),["assets/exceljs.min.9ae7dbb2.js","assets/index.3a0d1437.js","assets/index.3378bb1a.css"]).then(i=>{const t=new i.default.Workbook,e=t.addWorksheet("Employee Tax Application");e.mergeCells("A1:E1");const u=e.getCell("A1");u.value="List of Employee's Pagibig",u.font={size:16,bold:!0},u.alignment={horizontal:"center"},e.mergeCells("A2:E2");const p=e.getCell("A2");p.value=(s==null?void 0:s.label)||r.label,p.font={size:12,bold:!0},p.alignment={horizontal:"center"},e.mergeCells("A3:E3");const b=e.getCell("A3");b.value="Covered Period: "+o.label+" "+this.form.year,b.font={size:12,bold:!0},b.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}},e.columns=[{key:"empId",width:30},{key:"name",width:30},{key:"employee",width:15},{key:"employer",width:15},{key:"total",width:15}];const _={};this.finalData.forEach(ne=>{const W=ne.dealer_name||"Unknown Dealer";_[W]||(_[W]=[]),_[W].push(ne)});let w=0,S=0,A=0,E=0;Object.keys(_).forEach(ne=>{const W=_[ne],Ae=e.addRow([`Dealership: ${ne}`,"","","",""]);Ae.getCell(1).font={bold:!0,size:12},Ae.eachCell(Q=>{Q.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFCCCCCC"}}}),e.addRow(["PAGIBIG # ID","NAME","EMPLOYEE","EMPLOYER","TOTAL"]).eachCell(Q=>{Q.font={bold:!0,color:{argb:"FFFFFFFF"}},Q.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF464646"}},Q.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}});let it=0,ft=0,Je=0;const ut=W.length;W.forEach(Q=>{var Ie;const Ce=parseFloat(Q.pagibig_contribution)||0,Te=parseFloat(Q.pagibig_contribution_employer)||0,xe=Ce+Te,oe=e.addRow([((Ie=Q.personal_info)==null?void 0:Ie.pagibig)||"",Q.employee.lastname+", "+Q.employee.firstname||"",Ce,Te,xe]),pe=oe.getCell(3);pe.numFmt="#,##0.00",pe.alignment={horizontal:"right"};const se=oe.getCell(4);se.numFmt="#,##0.00",se.alignment={horizontal:"right"};const nt=oe.getCell(5);nt.numFmt="#,##0.00",nt.alignment={horizontal:"right"},it+=Ce,ft+=Te,Je+=xe}),e.addRow([]);const bt=e.addRow(["","NUMBER OF EMPLOYEES",ut,"",""]);bt.getCell(2).font={bold:!0},bt.getCell(3).font={bold:!0};const st=e.addRow(["","EMPLOYEE CONTRIBUTIONS",it,"",""]);st.getCell(2).font={bold:!0};const Mt=st.getCell(3);Mt.numFmt="#,##0.00",Mt.alignment={horizontal:"right"},Mt.font={bold:!0};const Lt=e.addRow(["","EMPLOYER CONTRIBUTIONS","",ft,""]);Lt.getCell(2).font={bold:!0};const Er=Lt.getCell(4);Er.numFmt="#,##0.00",Er.alignment={horizontal:"right"},Er.font={bold:!0};const At=e.addRow(["",`${ne} TOTAL`,"","",Je]);At.getCell(2).font={bold:!0};const Se=At.getCell(5);Se.numFmt="#,##0.00",Se.alignment={horizontal:"right"},Se.font={bold:!0},[1,2,3,4,5].forEach(Q=>{const Ce=At.getCell(Q);Ce.border={bottom:{style:"double"}}}),e.addRow([]),w+=it,S+=ft,A+=Je,E+=ut});const M=e.addRow(["OVERALL SUMMARY","","","",""]);M.getCell(1).font={bold:!0,size:14},M.eachCell(ne=>{ne.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFAAAAAA"}}});const N=e.addRow(["","TOTAL NUMBER OF EMPLOYEES",E,"",""]);N.getCell(2).font={bold:!0},N.getCell(3).font={bold:!0};const q=e.addRow(["","TOTAL EMPLOYEE CONTRIBUTIONS",w,"",""]);q.getCell(2).font={bold:!0};const U=q.getCell(3);U.numFmt="#,##0.00",U.alignment={horizontal:"right"},U.font={bold:!0};const ee=e.addRow(["","TOTAL EMPLOYER CONTRIBUTIONS","",S,""]);ee.getCell(2).font={bold:!0};const ie=ee.getCell(4);ie.numFmt="#,##0.00",ie.alignment={horizontal:"right"},ie.font={bold:!0};const j=e.addRow(["","OVERALL GRAND TOTAL","","",A]);j.getCell(2).font={bold:!0,size:12};const H=j.getCell(5);return H.numFmt="#,##0.00",H.alignment={horizontal:"right"},H.font={bold:!0},[1,2,3,4,5].forEach(ne=>{const W=j.getCell(ne);W.border={top:{style:"thin"},bottom:{style:"double"}}}),t.xlsx.writeBuffer()}).then(i=>{const t=new Blob([i],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),e=window.URL.createObjectURL(t),u=document.createElement("a");u.href=e,u.download="EmployeePagibigReport.xlsx",document.body.appendChild(u),u.click(),window.URL.revokeObjectURL(e),document.body.removeChild(u)}).catch(i=>{console.error("Error generating Excel file:",i),this.$swal.fire({title:"Export Failed",text:"Failed to generate Excel file. Please try again.",icon:"error",timer:3e3})})},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Rr().shape({company_id:Dt().nullable().required("Company is required"),month:Dt().nullable().required("Month is required"),year:Dt().nullable().required("Year is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{await this.fetchAttendanceData(),this.generateExcel()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},async fetchAttendanceData(){try{const r=(await tt.GenerateEmployeePagibig(this.form)).data||{};let o=Object.values(r);o&&(this.employee={emp_no:o.emp_no,name:o.name}),this.finalData=Object.values(r)}catch(s){throw console.error("Error fetching attendance data:",s),s}}},mounted(){this.fetchMonthsAndYears(),this.fetchCompany(),this.fetchDealership(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee()},watch:{"form.dealership_id"(){this.fetchEmployees()}}},rF={class:"grid grid-cols-4 gap-2"},sF={key:0,class:"text-[#ec4899]"},aF={key:0,class:"text-[#ec4899]"},oF={key:0,class:"text-[#ec4899]"},iF={class:"flex justify-between items-center"},nF={class:"flex gap-1 justify-end"};function lF(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("Button"),_=Y("SubmitButton"),w=Y("ag-grid-vue"),S=Y("Card");return re(),Le(Cr,null,[B("form",{onSubmit:r[8]||(r[8]=St((...A)=>s.confirmSubmit&&s.confirmSubmit(...A),["prevent"])),class:"space-y-4"},[B("div",rF,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=A=>t.form.company_id=A),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(re(),Le("div",sF,"Company is required")):me("",!0)]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=A=>t.form.dealer_id=A),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Division"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=A=>t.form.division_id=A),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Department"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=A=>t.form.department_id=A),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Position"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=A=>t.form.position_id=A),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Employee"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=A=>t.form.employee_id=A),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Month",isRequired:!0},{default:G(()=>[T(u,{placeholder:"Select a Month",searchable:!0,modelValue:t.form.month,"onUpdate:modelValue":r[6]||(r[6]=A=>t.form.month=A),options:t.MonthsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.month?(re(),Le("div",aF,"Month is required")):me("",!0)]),_:1}),T(p,{label:"Year",isRequired:!0},{default:G(()=>[T(u,{placeholder:"Select a Year",searchable:!0,modelValue:t.form.year,"onUpdate:modelValue":r[7]||(r[7]=A=>t.form.year=A),options:t.YearsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.year?(re(),Le("div",oF,"Year is required")):me("",!0)]),_:1})]),B("div",iF,[t.hasValue?(re(),Me(b,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToExcel},null,8,["onClick"])):me("",!0),B("div",nF,[T(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(S,{key:0,class:"p-2"},{default:G(()=>[T(w,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:s.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):me("",!0)],64)}const cF=Et(tF,[["render",lF],["__scopeId","data-v-f815f09b"]]);const fF={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],months:[{value:"1",label:"January"},{value:"2",label:"February"},{value:"3",label:"March"},{value:"4",label:"April"},{value:"5",label:"May"},{value:"6",label:"June"},{value:"7",label:"July"},{value:"8",label:"August"},{value:"9",label:"September"},{value:"10",label:"October"},{value:"11",label:"November"},{value:"12",label:"December"}],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],employees:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:14,company_id:"",dealer_id:"",month:[]},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isCompanyLoading:!1,isDealerLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchEmployee(){await Fr.fetchRecords().then(s=>{s.status==200&&(this.employees=s.data.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api,this.columnApi=s.columnApi,this.colDefs=[{field:"company_name",headerName:"Organizational Unit",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"employee_count",headerName:"Number of Employees Per Unit",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{headerName:"MEAL",colSpan:1,cellStyle:{textAlign:"center"},children:[{field:"meal_total",headerName:"MEAL SUBSIDY",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]},{headerName:"NUMBER OF COMPANY BENEFITS AVAILERS",colSpan:4,cellStyle:{textAlign:"center"},children:[{headerName:"LEAVE BENEFIT",colSpan:2,cellStyle:{textAlign:"center"},children:[{headerName:"VL",colSpan:2,cellStyle:{textAlign:"center"},children:[{field:"total_vl_wp",headerName:"WP",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_vl_wop",headerName:"WOP",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]},{headerName:"SL",colSpan:2,children:[{field:"total_sl_wp",headerName:"WP",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_sl_wop",headerName:"WOP",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]},{field:"total_bl_wop",headerName:"BL",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]},{headerName:"REASONS FOR VACATION LEAVE",colSpan:5,children:[{field:"total_personal_vl",headerName:"PERSONAL",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_fr_vl",headerName:"FAMILY RELATED",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_rl_vl",headerName:"RECREATION/LEISURE",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_emergency_vl",headerName:"EMERGENCY",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_others_vl",headerName:"OTHERS",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]},{headerName:"REASONS FOR SICK LEAVE",colSpan:9,children:[{field:"total_cd_sl",headerName:"Cardiovascular Disease",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_msp_sl",headerName:"Musculo Skeletal Pains",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_rd_sl",headerName:"Respiratory Disease",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_eent_sl",headerName:"EENT",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_idi_sl",headerName:"Infectious Disease/Infection",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_hf_sl",headerName:"Headache/Flu",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_or_sl",headerName:"OB-GYNE Related",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_dr_sl",headerName:"Dental Reason",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_others_sl",headerName:"Others",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]}]}],setTimeout(()=>{this.gridApi.redrawRows()},0)},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},getLettersForExcel(s,r,o,i=!1,t=!1){let e=[],u=s.toUpperCase();for(let p=0;p<r;p++)e.push(u+o),i&&(u=this.incrementExcelColumn(u)),t&&o++;return e},incrementExcelColumn(s){let r=s.split("").map(o=>o.charCodeAt(0)-65);for(let o=r.length-1;o>=0;o--){if(r[o]<25)return r[o]++,String.fromCharCode(...r.map(i=>i+65));r[o]=0,o===0&&r.unshift(0)}return String.fromCharCode(...r.map(o=>o+65))},exportToExcel(){if(this.gridApi){const s=this.months.find(w=>w.value==this.form.month),r=[];this.gridApi.forEachNode(w=>r.push(w.data));const o=Ue.utils.json_to_sheet([],{header:[]});Ue.utils.sheet_add_json(o,r,{origin:"B10",skipHeader:!0});const i=r.reduce((w,S)=>(Object.keys(S).forEach((A,E)=>{const M=S[A];typeof M=="number"&&(w[A]=(w[A]||0)+M)}),w),{}),t={};Object.keys(i).forEach(w=>{t[w]=i[w]});const e=r.length+10;Ue.utils.sheet_add_json(o,[t],{origin:`C${e+1}`,skipHeader:!0});const u=(w,S)=>{o[w]={v:S,t:"s",s:{alignment:{horizontal:"center",vertical:"center"},font:{bold:!0,sz:12},fill:{patternType:"solid",fgColor:{rgb:"e7e6e6"}}}}};Object.keys(i).forEach((w,S)=>{const A=String.fromCharCode(67+S)+(e+1);u(A,i[w]),u(String.fromCharCode(66)+(e+1),"TOTAL")});const p=(w,S,A=null)=>{o[w]={v:S,t:"s",s:{alignment:{horizontal:"center",vertical:"center",wrapText:!0},font:{bold:!0,sz:14},fill:A?{patternType:"solid",fgColor:{rgb:A}}:void 0}}},b=(w,S,A=null)=>{o[w]={v:S,t:"s",s:{alignment:{horizontal:"center",vertical:"center",wrapText:!0},border:{top:{style:"thin",color:{rgb:"000000"}},bottom:{style:"thin",color:{rgb:"000000"}},left:{style:"thin",color:{rgb:"000000"}},right:{style:"thin",color:{rgb:"000000"}}},font:{bold:!0,sz:14},fill:A?{patternType:"solid",fgColor:{rgb:A}}:void 0}}};for(let w of this.getLettersForExcel("B",20,2,!0,!1))p(w,"COMPANY LEAVE AVAILMENT PROFILE");for(let w of this.getLettersForExcel("B",20,3,!0,!1))p(w,"FOR THE MONTH OF "+s.label.toUpperCase());for(let w of["B7","B8","B9"])b(w,"ORGANIZATIONAL UNIT","ffc000");for(let w of this.getLettersForExcel("C",3,7,!1,!0))b(w,"NO. OF EMPLOYEES","ffc000");for(let w of this.getLettersForExcel("D",13,7,!0,!1))b(w,"NUMBER OF AVAILMENT (MANDAYS)","ffc000");for(let w of this.getLettersForExcel("D",2,8,!0,!1))b(w,"VL","92d050");for(let w of this.getLettersForExcel("F",2,8,!0,!1))b(w,"SL","92d050");b("D9","WP","92d050"),b("E9","WOP","92d050"),b("F9","WP","92d050"),b("G9","WOP","92d050");for(let w of this.getLettersForExcel("H",2,8,!1,!0))b(w,"BL","92d050");for(let w of this.getLettersForExcel("I",13,7,!0,!1))b(w,"REASONS FOR VACATION LEAVE","ffc000");for(let w of this.getLettersForExcel("I",2,8,!1,!0))b(w,"PERSONAL","92d050");for(let w of this.getLettersForExcel("J",2,8,!1,!0))b(w,"FAMILY RELATED","92d050");for(let w of this.getLettersForExcel("K",2,8,!1,!0))b(w,"RECREATION/LEISURE","92d050");for(let w of this.getLettersForExcel("L",2,8,!1,!0))b(w,"EMERGENCY","92d050");for(let w of this.getLettersForExcel("M",2,8,!1,!0))b(w,"OTHERS","92d050");for(let w of this.getLettersForExcel("N",2,8,!1,!0))b(w,"CARDIOVASCULAR DISEASE","92d050");for(let w of this.getLettersForExcel("O",2,8,!1,!0))b(w,"MUSCULO SKELETAL PAINS","92d050");for(let w of this.getLettersForExcel("P",2,8,!1,!0))b(w,"RESPIRATORY DISEASE","92d050");for(let w of this.getLettersForExcel("Q",2,8,!1,!0))b(w,"EENT","92d050");for(let w of this.getLettersForExcel("R",2,8,!1,!0))b(w,"INFECTIOUS DISEASE/INFECTION","92d050");for(let w of this.getLettersForExcel("S",2,8,!1,!0))b(w,"HEADACHE/FLU","92d050");for(let w of this.getLettersForExcel("T",2,8,!1,!0))b(w,"OB-GYNE RELATED","92d050");for(let w of this.getLettersForExcel("U",2,8,!1,!0))b(w,"DENTAL REASON","92d050");for(let w of this.getLettersForExcel("V",2,8,!1,!0))b(w,"OTHERS","92d050");o["!cols"]=[{wch:2},{wch:50},{wch:20},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:20},{wch:25},{wch:25},{wch:23},{wch:23},{wch:22},{wch:20},{wch:20},{wch:20},{wch:30},{wch:25},{wch:28},{wch:30},{wch:20},{wch:20},{wch:20},{wch:20},{wch:20},{wch:20}],o["!rows"]=[{hpt:30},{hpt:20},{hpt:25},{hpt:20},{hpt:20},{hpt:15},{hpt:20},{hpt:25},{hpt:25},{hpt:30},{hpt:30}],o["!merges"]=[Ue.utils.decode_range("B2:V2"),Ue.utils.decode_range("B3:V3"),Ue.utils.decode_range("B7:B9"),Ue.utils.decode_range("C7:C9"),Ue.utils.decode_range("D7:H7"),Ue.utils.decode_range("I7:M7"),Ue.utils.decode_range("N7:V7"),Ue.utils.decode_range("D8:E8"),Ue.utils.decode_range("F8:G8"),Ue.utils.decode_range("H8:H9"),Ue.utils.decode_range("I8:I9"),Ue.utils.decode_range("J8:J9"),Ue.utils.decode_range("K8:K9"),Ue.utils.decode_range("L8:L9"),Ue.utils.decode_range("M8:M9"),Ue.utils.decode_range("N8:N9"),Ue.utils.decode_range("O8:O9"),Ue.utils.decode_range("P8:P9"),Ue.utils.decode_range("Q8:Q9"),Ue.utils.decode_range("R8:R9"),Ue.utils.decode_range("S8:S9"),Ue.utils.decode_range("T8:T9"),Ue.utils.decode_range("U8:U9"),Ue.utils.decode_range("V8:V9")];const _=Ue.utils.book_new();Ue.utils.book_append_sheet(_,o,"Leave(Detailed)"),Ue.writeFile(_,"LeaveDetailedReport.xlsx")}},async saveRecord(){this.state.isLoading=!0,this.hasValue=!1,await tt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){this.finalData=s.data.data;const r=this.finalData.map(o=>({company_name:o.company_name||0,employee_count:o.employee_count||0,total_vl_wp:o.total_vl_wp||0,total_vl_wop:o.total_vl_wop||0,total_sl_wp:o.total_sl_wp||0,total_sl_wop:o.total_sl_wop||0,total_bl_wop:o.total_bl_wop||0,total_personal_vl:o.total_personal_vl||0,total_fr_vl:o.total_fr_vl||0,total_rl_vl:o.total_rl_vl||0,total_emergency_vl:o.total_emergency_vl||0,total_others_vl:o.total_others_vl||0,total_cd_sl:o.total_cd_sl||0,total_msp_sl:o.total_msp_sl||0,total_rd_sl:o.total_rd_sl||0,total_eent_sl:o.total_eent_sl||0,total_idi_sl:o.total_idi_sl||0,total_hf_sl:o.total_hf_sl||0,total_or_sl:o.total_or_sl||0,total_dr_sl:o.total_dr_sl||0,total_others_sl:o.total_others_sl||0}));this.resultData=r,this.hasValue=!0,this.state.isLoading=!1}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3}),this.state.isLoading=!1})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await tt.fetchReportModuleColumnRecord(14);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchEmployee(),this.fetchCompany(),this.fetchDealership()},watch:{}},uF={class:"grid grid-cols-2 gap-2"},dF={class:"flex justify-between items-center"},hF={class:"flex gap-1 justify-end"};function pF(s,r,o,i,t,e){const u=Y("Loading"),p=Y("Multiselect"),b=Y("FormGroup"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card");return re(),Le(Cr,null,[B("form",{onSubmit:r[2]||(r[2]=St((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[t.state.isLoading?(re(),Me(u,{key:0,text:"Fetching records"})):me("",!0),B("div",uF,[T(b,{label:"Company"},{default:G(()=>[T(p,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=E=>t.form.company_id=E),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),T(b,{label:"Month"},{default:G(()=>[T(p,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.month,"onUpdate:modelValue":r[1]||(r[1]=E=>t.form.month=E),options:t.months,mode:"tags",class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","options"])]),_:1})]),B("div",dF,[t.hasValue?(re(),Me(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToExcel},null,8,["onClick"])):me("",!0),B("div",hF,[T(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(S,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):me("",!0)],64)}const mF=Et(fF,[["render",pF],["__scopeId","data-v-5e9c4802"]]);const gF={props:["finalData","form"],mounted(){Da.register(ko,To,Eo,si,Fl,Dl,Cl),this.createChart()},methods:{createChart(){const s=document.getElementById("reportChart").getContext("2d");this.chartInstance&&this.chartInstance.destroy();const r=this.finalData.reduce((t,e)=>{const u=e.name||"Unknown",p=e["Date From"]||"Unknown Date",b=parseFloat(e.days)||0,_=`${u} (${p})`;return t[_]||(t[_]=0),t[_]+=b,t},{}),o=Object.keys(r),i=Object.values(r);this.chartInstance=new Da(s,{type:"bar",data:{labels:o,datasets:[{label:"Leave Days",data:i,backgroundColor:"rgba(75, 192, 192, 0.6)",borderColor:"rgba(75, 192, 192, 1)",borderWidth:1}]},options:{responsive:!0,scales:{y:{beginAtZero:!0,title:{display:!0,text:"Number of Leave Days"}},x:{title:{display:!0,text:"Employees (Date)"}}}}})}}};function bF(s,r,o,i,t,e){return re(),Le("div",null,r[0]||(r[0]=[B("canvas",{id:"reportChart"},null,-1)]))}const yF=Et(gF,[["render",bF],["__scopeId","data-v-eb8f87f1"]]);const _F={setup(){},components:{PriceRange:wg,AgGridVue:qt,ActionCellRenderer:dr,LeaveReportChart:yF,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,payrollRateOptions:[{label:"Monthly",value:"Monthly"},{label:"Daily",value:"Daily"}],paymentTypeOptions:[{label:"Cut-Off",value:"Cut-Off"},{label:"Monthly",value:"Monthly"}],priceRange:{min:0,max:5e5},gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],form:{modules:15,columns:[],company_id:[],dealer_id:[],date_from:"",date_to:""},included:{leave_id:!1,salary_rate:!1,payroll_rate:!1,payment_type:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isLeaveTypeLoading:!1,isCompanyLoading:!1,isDealerLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},handlePriceRangeUpdate(s){this.priceRange=s},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{await Rr().shape({date_from:Dt().required("Date From is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{console.log("eyow"),this.saveRecord()})}catch(s){if(s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await tt.fetchGeneratedReport(this.form).then(s=>{if(s.status==200){this.finalData=s.data.data,console.log("result data",this.finalData);const r=this.reportModuleColums.map(i=>({id:null,report_module_id:"1",name:i.label,slug:i.value})),o=s.data.data.map(i=>{const t={employee_id:i.employee_id||null,fullname:i.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=i[u]||null}),t});this.resultData=o,console.log("Mapped Data",o),this.colDefs=[{field:"employee_id",filter:!0,floatingFilter:!0},{field:"fullname",filter:!0,floatingFilter:!0},...this.form.columns.map(i=>{const t=this.reportModuleColums.find(e=>e.value===i);return{field:t?t.label:i,filter:!0,floatingFilter:!0}})],this.items=this.resultData,this.hasValue=!0}}).catch(s=>{console.log(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await tt.fetchReportModuleColumnRecord(15);s.status===200&&(console.log(s.data),this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},onSelect(s){s==="salary_rate"&&(this.fetchLeaveType(),this.included.salary_rate=!0),s==="payroll_rate"&&(this.included.payroll_rate=!0),s==="payment_type"&&(this.included.payment_type=!0)},onRemove(s){s==="salary_rate"&&(this.included.salary_rate=!1),s==="payroll_rate"&&(this.included.payroll_rate=!1),s==="payment_type"&&(this.included.payment_type=!1)}},mounted(){this.fetchReportModuleColumn(),this.fetchCompany()},watch:{"form.columns":function(s){s!=null&&(this.form.columns.includes("salary_rate")?this.included.salary_rate=!0:this.included.salary_rate=!1,this.form.columns.includes("payroll_rate")?this.included.payroll_rate=!0:this.included.payroll_rate=!1,this.form.columns.includes("payment_type")?this.included.payment_type=!0:this.included.payment_type=!1)}}},vF={class:"grid grid-cols-1 gap-2"},wF={class:"grid grid-cols-5 gap-2"},xF={class:"grid grid-cols-2 gap-2"},CF={class:"grid grid-cols-2 gap-2"},FF={class:"flex justify-between items-center"},DF={class:"flex gap-1 justify-end"};function AF(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("PriceRange"),_=Y("flat-pickr"),w=Y("Button"),S=Y("SubmitButton"),A=Y("ag-grid-vue"),E=Y("Card"),M=Y("LeaveReportChart");return re(),Le(Cr,null,[B("form",{onSubmit:r[8]||(r[8]=St((...N)=>s.confirmSubmit&&s.confirmSubmit(...N),["prevent"])),class:"space-y-4"},[r[9]||(r[9]=B("div",{class:"grid grid-cols-1 gap-2"},null,-1)),B("div",vF,[T(p,{label:"Columns",isRequired:!0},{default:G(()=>[T(u,{searchable:!0,modelValue:t.form.columns,"onUpdate:modelValue":r[0]||(r[0]=N=>t.form.columns=N),options:t.reportModuleColums,class:"form-control w-full h-[60px] mt-2",loading:t.state.isReportModuleColumnLoading,mode:"tags","custom-label":e.columnLabel,"close-on-select":!1,onSelect:e.onSelect,onRemove:e.onRemove,placeholder:"Select Columns"},null,8,["modelValue","options","loading","custom-label","onSelect","onRemove"]),B("button",{type:"button",class:"mt-2 text-blue-600",onClick:r[1]||(r[1]=(...N)=>e.toggleSelectAllColumns&&e.toggleSelectAllColumns(...N))},Hr(e.isAllColumnsSelected?"Deselect All":"Select All"),1)]),_:1})]),B("div",wF,[t.included.payroll_rate?(re(),Me(p,{key:0,label:"Payroll Rate"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.payroll_rate,"onUpdate:modelValue":r[2]||(r[2]=N=>t.form.payroll_rate=N),options:t.payrollRateOptions,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","options"])]),_:1})):me("",!0),t.included.salary_rate?(re(),Me(p,{key:1,label:"Salary Rate"},{default:G(()=>[T(b,{min:0,max:5e5,"onUpdate:priceRange":e.handlePriceRangeUpdate,modelValue:t.form.salary_rate,"onUpdate:modelValue":r[3]||(r[3]=N=>t.form.salary_rate=N)},null,8,["onUpdate:priceRange","modelValue"])]),_:1})):me("",!0),t.included.payment_type?(re(),Me(p,{key:2,label:"Payment Type"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.payment_type,"onUpdate:modelValue":r[4]||(r[4]=N=>t.form.payment_type=N),options:t.paymentTypeOptions,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","options"])]),_:1})):me("",!0)]),B("div",xF,[T(p,{label:"Payroll Date From",isRequired:!0},{default:G(()=>[T(_,{modelValue:t.form.date_from,"onUpdate:modelValue":r[5]||(r[5]=N=>t.form.date_from=N),class:"form-control h-[48px]",id:"date_from",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),T(p,{label:"Payroll Date To",isRequired:!0},{default:G(()=>[T(_,{modelValue:t.form.date_to,"onUpdate:modelValue":r[6]||(r[6]=N=>t.form.date_to=N),class:"form-control h-[48px]",id:"date_to",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),B("div",CF,[T(p,{label:"Company"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[7]||(r[7]=N=>t.form.company_id=N),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",FF,[t.hasValue?(re(),Me(w,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):me("",!0),B("div",DF,[T(S,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(E,{key:0,class:"p-2"},{default:G(()=>[T(A,{ref:"agGrid",rowData:s.items,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):me("",!0),B("div",null,[t.form.modules==1&&t.finalData.length!=0?(re(),Me(M,{key:0,finalData:t.finalData,form:t.form},null,8,["finalData","form"])):me("",!0)])],64)}const SF=Et(_F,[["render",AF],["__scopeId","data-v-93a5836a"]]);const EF={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],status:[{value:"0",label:"For Recommending"},{value:"1",label:"For Endorsement"},{value:"2",label:"For Approval"},{value:"3",label:"Approved"},{value:"99",label:"Denied"}],months:[{value:"1",label:"January"},{value:"2",label:"February"},{value:"3",label:"March"},{value:"4",label:"April"},{value:"5",label:"May"},{value:"6",label:"June"},{value:"7",label:"July"},{value:"8",label:"August"},{value:"9",label:"September"},{value:"10",label:"October"},{value:"11",label:"November"},{value:"12",label:"December"}],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],job_title:[],job_classification:[],natureOfRequestOption:[],dealers:[],employees:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:16,status_id:"",company_id:"",job_title_id:"",job_classification_id:"",type_id:"",start_date:"",end_date:""},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isCompanyLoading:!1,isPositionLoading:!1,isJCLoading:!1,isTypeLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchEmployee(){await Fr.fetchRecords().then(s=>{s.status==200&&(this.employees=s.data.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchJobTitle(){this.state.isPositionLoading=!0;try{const s=await Rs.fetchRecords();s.status===200&&(this.job_title=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},async fetchJobClassification(){this.state.isJCLoading=!0;try{const s=await _l.fetchRecords();s.status===200&&(this.job_classification=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isJCLoading=!1)}catch(s){console.log(s)}},async fetchNatureOfRequest(){this.state.isTypeLoading=!0,await Ff.fetchRecords().then(s=>{s.status==200&&(this.state.isNatureRequestLoading=!1,this.natureOfRequestOption=s.data.data.filter(r=>r.request_for=="MRF").map(r=>({value:r.id,label:r.name}))),this.state.isTypeLoading=!1}).catch(s=>{console.log(s)})},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await tt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){console.log("final",s.data),this.finalData=s.data.data;const r=this.finalData.map(o=>({company_id:o.company.name||null,nature_of_request:o.nature.name||null,status:o.status==0?"For Recommendation":o.status==1?"For Endorsement":o.status==2?"For Approval":o.status==3?"Approved":o.status==99?"Denied":"",classification:o.job_classification?o.job_classification.name:"N/A",job_title:o.jobtitle.name||null,salary_grade:o.salary_grade||null,replacement_position_number:o.replacement_position_number||null,employee_name_to_be_replaced1:o.employee_name_to_be_replaced1||null,nature_of_seperation1:o.nature_of_seperation1||null,date_of_seperation1:o.date_of_seperation1||null,date_needed:o.date_needed||null,employment_type:o.employmenttype.name||null,salary:o.salary||null,job_design:o.job_design||null,requested_by:o.requestor[0].firstname+" "+o.requestor[0].lastname||null}));this.colDefs=[{field:"company_id",headerName:"Company",filter:!0,floatingFilter:!0,flex:1},{field:"nature_of_request",headerName:"Nature of Request",filter:!0,floatingFilter:!0,flex:3},{field:"status",headerName:"Status",filter:!0,floatingFilter:!0,flex:3},{field:"classification",headerName:"Classification",filter:!0,floatingFilter:!0,flex:3},{field:"job_title",headerName:"Job Title",filter:!0,floatingFilter:!0,flex:3},{field:"salary_grade",headerName:"Salary Grade",filter:!0,floatingFilter:!0,flex:3},{field:"replacement_position_number",headerName:"Replacement Number",filter:!0,floatingFilter:!0,flex:3},{field:"employee_name_to_be_replaced1",headerName:"Employee Name To Be Replace",filter:!0,floatingFilter:!0,flex:3},{field:"nature_of_seperation1",headerName:"Nature of Seperation",filter:!0,floatingFilter:!0,flex:3},{field:"date_of_seperation1",headerName:"Date of Seperation",filter:!0,floatingFilter:!0,flex:3},{field:"date_needed",headerName:"Date Needed",filter:!0,floatingFilter:!0,flex:3},{field:"employment_type",headerName:"Employment Type",filter:!0,floatingFilter:!0,flex:3},{field:"salary",headerName:"Salary",filter:!0,floatingFilter:!0,flex:3},{field:"job_design",headerName:"Job Design",filter:!0,floatingFilter:!0,flex:3},{field:"requested_by",headerName:"Requested By",filter:!0,floatingFilter:!0,flex:3}],this.resultData=r,this.hasValue=!0}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await tt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchCompany(),this.fetchJobTitle(),this.fetchJobClassification(),this.fetchNatureOfRequest()},watch:{}},TF={class:"grid grid-cols-3 gap-2"},RF={class:"grid grid-cols-3 gap-2"},kF={class:"grid grid-cols-2 gap-2"},LF={class:"flex justify-between items-center"},MF={class:"flex gap-1 justify-end"};function OF(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("flat-pickr"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card");return re(),Le(Cr,null,[B("form",{onSubmit:r[7]||(r[7]=St((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[B("div",TF,[T(p,{label:"Status"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.status_id,"onUpdate:modelValue":r[0]||(r[0]=E=>t.form.status_id=E),options:t.status,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","options"])]),_:1}),T(p,{label:"Company"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[1]||(r[1]=E=>t.form.company_id=E),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Position"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.job_title_id,"onUpdate:modelValue":r[2]||(r[2]=E=>t.form.job_title_id=E),options:t.job_title,class:"form-control w-full h-[48px] mt-2",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",RF,[T(p,{label:"Classification"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.job_classification_id,"onUpdate:modelValue":r[3]||(r[3]=E=>t.form.job_classification_id=E),options:t.job_classification,class:"form-control w-full h-[48px] mt-2",loading:t.state.isJCLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Type"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.type_id,"onUpdate:modelValue":r[4]||(r[4]=E=>t.form.type_id=E),options:t.natureOfRequestOption,class:"form-control w-full h-[48px] mt-2",loading:t.state.isTypeLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",kF,[T(p,{label:"Start Date",isRequired:!0},{default:G(()=>[T(b,{modelValue:t.form.start_date,"onUpdate:modelValue":r[5]||(r[5]=E=>t.form.start_date=E),class:"form-control h-[48px]",id:"start_date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),T(p,{label:"End Date"},{default:G(()=>[T(b,{modelValue:t.form.end_date,"onUpdate:modelValue":r[6]||(r[6]=E=>t.form.end_date=E),class:"form-control h-[48px]",id:"control",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),B("div",LF,[t.hasValue?(re(),Me(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):me("",!0),B("div",MF,[T(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(S,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):me("",!0)],64)}const PF=Et(EF,[["render",OF],["__scopeId","data-v-fb890015"]]),NF={props:{modelValue:{type:Array,required:!0},min:{type:Number,default:0},max:{type:Number,default:100}},methods:{updateValue(s,r){const o=[...this.modelValue];o[s]=Number(r),this.$emit("update:modelValue",o)},formatPrice(s){return new Intl.NumberFormat("en-PH").format(s)}}},IF={class:"flex gap-2 mb-4"},VF=["value"],BF=["value"],UF={class:"relative"},zF=["min","max","value"],GF=["min","max","value"],jF={class:"flex justify-between text-sm text-gray-500 mt-2"};function WF(s,r,o,i,t,e){return re(),Le("div",null,[B("div",IF,[B("input",{type:"number",value:o.modelValue[0],onInput:r[0]||(r[0]=u=>e.updateValue(0,u.target.value)),class:"w-full px-2 py-1 border rounded"},null,40,VF),r[4]||(r[4]=B("span",{class:"self-center"},"-",-1)),B("input",{type:"number",value:o.modelValue[1],onInput:r[1]||(r[1]=u=>e.updateValue(1,u.target.value)),class:"w-full px-2 py-1 border rounded"},null,40,BF)]),B("div",UF,[r[5]||(r[5]=B("div",{class:"w-full h-1 bg-gray-300 rounded-full"},null,-1)),B("input",{type:"range",min:o.min,max:o.max,value:o.modelValue[0],onInput:r[2]||(r[2]=u=>e.updateValue(0,u.target.value)),class:"absolute w-full h-1 bg-transparent appearance-none cursor-pointer"},null,40,zF),B("input",{type:"range",min:o.min,max:o.max,value:o.modelValue[1],onInput:r[3]||(r[3]=u=>e.updateValue(1,u.target.value)),class:"absolute w-full h-1 bg-transparent appearance-none cursor-pointer"},null,40,GF)]),B("div",jF,[B("span",null,"₱"+Hr(e.formatPrice(o.min)),1),B("span",null,"₱"+Hr(e.formatPrice((o.min+o.max)/2)),1),B("span",null,"₱"+Hr(e.formatPrice(o.max)),1)])])}const HF=Et(NF,[["render",WF]]);const YF={setup(){},components:{Range:HF,AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],status:[{value:"1",label:"Initial Interview"},{value:"2",label:"Technical Interview"},{value:"3",label:"Final Interview"},{value:"4",label:"Job Offer"}],months:[{value:"1",label:"January"},{value:"2",label:"February"},{value:"3",label:"March"},{value:"4",label:"April"},{value:"5",label:"May"},{value:"6",label:"June"},{value:"7",label:"July"},{value:"8",label:"August"},{value:"9",label:"September"},{value:"10",label:"October"},{value:"11",label:"November"},{value:"12",label:"December"}],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],job_title:[],job_classification:[],natureOfRequestOption:[],dealers:[],employees:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:17,status_id:"",company_id:"",job_title_id:"",job_classification_id:"",type_id:"",start_date:"",end_date:"",priceRange:[500,24320]},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isCompanyLoading:!1,isPositionLoading:!1,isJCLoading:!1,isTypeLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchEmployee(){await Fr.fetchRecords().then(s=>{s.status==200&&(this.employees=s.data.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchJobTitle(){this.state.isPositionLoading=!0;try{const s=await gy.fetchOpenPosition();s.status===200&&(this.job_title=s.data.map(r=>({value:r.jobtitle.id,label:r.jobtitle.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},async fetchJobClassification(){this.state.isJCLoading=!0;try{const s=await _l.fetchRecords();s.status===200&&(this.job_classification=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isJCLoading=!1)}catch(s){console.log(s)}},async fetchNatureOfRequest(){this.state.isTypeLoading=!0,await Ff.fetchRecords().then(s=>{s.status==200&&(this.state.isNatureRequestLoading=!1,this.natureOfRequestOption=s.data.data.filter(r=>r.request_for=="MRF").map(r=>({value:r.id,label:r.name}))),this.state.isTypeLoading=!1}).catch(s=>{console.log(s)})},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await tt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){console.log("final",s.data),this.finalData=s.data.data;const r=this.finalData.map(o=>({name:o.firstname+" "+o.lastname||null,address:o.address||null,contact_number:o.contact_number||null,email:o.email||null,last_position:o.last_position||null,last_salary:o.last_salary||null,cover_letter:o.cover_letter||null}));this.colDefs=[{field:"name",headerName:"Name",filter:!0,floatingFilter:!0,flex:3},{field:"address",headerName:"Address",filter:!0,floatingFilter:!0,flex:3},{field:"contact_number",headerName:"Contact Number",filter:!0,floatingFilter:!0,flex:3},{field:"email",headerName:"Email",filter:!0,floatingFilter:!0,flex:3},{field:"last_position",headerName:"Last Position",filter:!0,floatingFilter:!0,flex:3},{field:"last_salary",headerName:"Last Salary",filter:!0,floatingFilter:!0,flex:3},{field:"cover_letter",headerName:"Cover Letter",filter:!0,floatingFilter:!0,flex:3}],this.resultData=r,this.hasValue=!0}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await tt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchCompany(),this.fetchJobTitle(),this.fetchJobClassification(),this.fetchNatureOfRequest()},watch:{}},qF={class:"grid grid-cols-2 gap-2"},KF={class:"flex justify-between items-center"},JF={class:"flex gap-1 justify-end"};function XF(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("Range"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card");return re(),Le(Cr,null,[B("form",{onSubmit:r[3]||(r[3]=St((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[B("div",qF,[T(p,{label:"Status"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.status_id,"onUpdate:modelValue":r[0]||(r[0]=E=>t.form.status_id=E),options:t.status,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","options"])]),_:1}),T(p,{label:"Position"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.job_title_id,"onUpdate:modelValue":r[1]||(r[1]=E=>t.form.job_title_id=E),options:t.job_title,class:"form-control w-full h-[48px] mt-2",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",null,[T(p,{label:"Salary Range"},{default:G(()=>[T(b,{modelValue:t.form.priceRange,"onUpdate:modelValue":r[2]||(r[2]=E=>t.form.priceRange=E),min:0,max:15e4},null,8,["modelValue"])]),_:1})]),B("div",KF,[t.hasValue?(re(),Me(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):me("",!0),B("div",JF,[T(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(S,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):me("",!0)],64)}const QF=Et(YF,[["render",XF],["__scopeId","data-v-f9f68b94"]]);const ZF={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],status:[{value:"0",label:"For Recommending"},{value:"1",label:"For Endorsement"},{value:"2",label:"For Approval"},{value:"3",label:"Approved"},{value:"99",label:"Denied"}],months:[{value:"1",label:"January"},{value:"2",label:"February"},{value:"3",label:"March"},{value:"4",label:"April"},{value:"5",label:"May"},{value:"6",label:"June"},{value:"7",label:"July"},{value:"8",label:"August"},{value:"9",label:"September"},{value:"10",label:"October"},{value:"11",label:"November"},{value:"12",label:"December"}],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],job_title:[],job_classification:[],dealer:[],natureOfRequestOption:[],dealers:[],divisions:[],departments:[],sections:[],employees:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:18,status_id:"",company_id:"",job_title_id:"",dealer_id:"",division_id:"",department_id:"",section_id:"",employee_id:"",job_classification_id:"",type_id:"",start_date:"",end_date:""},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isCompanyLoading:!1,isPositionLoading:!1,isJCLoading:!1,isTypeLoading:!1,isDealerLoading:!1,isEmployeeLoading:!1,isDivisionLoading:!1,isDepartmentLoading:!1,isSectionLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchSection(){this.state.isSectionLoading=!0,await xm.fetchRecords().then(s=>{s.status==200&&(this.sections=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isSectionLoading=!1)}).catch(s=>{console.log(s)})},async fetchDepartment(){this.state.isDepartmentLoading=!0,await es.fetchRecords().then(s=>{s.status==200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}).catch(s=>{console.log(s)})},async fetchDivision(){this.state.isDivisionLoading=!0,await Ps.fetchRecords().then(s=>{s.status==200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}).catch(s=>{console.log(s)})},async fetchDealership(){this.state.isDealerLoading=!0,await yr.fetchRecords().then(s=>{s.status==200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}).catch(s=>{console.log(s)})},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Fr.fetchRecords().then(s=>{s.status==200&&(this.employees=s.data.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchJobTitle(){this.state.isPositionLoading=!0;try{const s=await Rs.fetchRecords();s.status===200&&(this.job_title=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},async fetchJobClassification(){this.state.isJCLoading=!0;try{const s=await _l.fetchRecords();s.status===200&&(this.job_classification=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isJCLoading=!1)}catch(s){console.log(s)}},async fetchNatureOfRequest(){this.state.isTypeLoading=!0,await Ff.fetchRecords().then(s=>{s.status==200&&(this.state.isNatureRequestLoading=!1,this.natureOfRequestOption=s.data.data.filter(r=>r.request_for=="MRF").map(r=>({value:r.id,label:r.name}))),this.state.isTypeLoading=!1}).catch(s=>{console.log(s)})},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await tt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){console.log("final",s.data),this.finalData=s.data.data;const r=this.finalData.map(o=>({employee_id:o.employee_id||null,name:o.employee.firstname+" "+o.employee.lastname||null,type_of_movement:o.type_of_movement.name||null,status:o.status==0?"For Recommendation":o.status==1?"For Endorsement":o.status==2?"For Approval":o.status==3?"Approved":o.status==99?"Denied":"",position_from:o.prev_position_name||null,position_to:o.next_position_name||null,unit:o.unit.name||null,salary_increase_to:o.salary_increase_to||null,honorarium:o.honorarium||null,peso:o.peso||null,incentive:o.incentive||null,commission:o.commission||null,effectivity:o.effectivity||null,inclusive_period:o.inclusive_period||null,justification_request:o.justification_request||null}));this.colDefs=[{field:"employee_id",headerName:"Employee ID",filter:!0,floatingFilter:!0,flex:3},{field:"name",headerName:"Name",filter:!0,floatingFilter:!0,flex:3},{field:"type_of_movement",headerName:"Type of Movement",filter:!0,floatingFilter:!0,flex:3},{field:"status",headerName:"Status",filter:!0,floatingFilter:!0,flex:3},{field:"position_from",headerName:"Position From",filter:!0,floatingFilter:!0,flex:3},{field:"position_to",headerName:"Position To",filter:!0,floatingFilter:!0,flex:3},{field:"unit",headerName:"Unit",filter:!0,floatingFilter:!0,flex:3},{field:"salary_increase_to",headerName:"Salary To",filter:!0,floatingFilter:!0,flex:3},{field:"honorarium",headerName:"Honorarium",filter:!0,floatingFilter:!0,flex:3},{field:"peso",headerName:"Peso",filter:!0,floatingFilter:!0,flex:3},{field:"incentive",headerName:"Incentive",filter:!0,floatingFilter:!0,flex:3},{field:"commission",headerName:"Commission",filter:!0,floatingFilter:!0,flex:3},{field:"effectivity",headerName:"Effectivity",filter:!0,floatingFilter:!0,flex:3},{field:"inclusive_period",headerName:"Inclusive Period",filter:!0,floatingFilter:!0,flex:3},{field:"justification_request",headerName:"Justification",filter:!0,floatingFilter:!0,flex:3}],this.resultData=r,this.hasValue=!0}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await tt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchEmployee(),this.fetchCompany(),this.fetchDealership(),this.fetchJobTitle(),this.fetchJobClassification(),this.fetchNatureOfRequest(),this.fetchDivision(),this.fetchDepartment(),this.fetchSection()},watch:{}},$F={class:"grid grid-cols-2 gap-2"},eD={class:"grid grid-cols-3 gap-2"},tD={class:"grid grid-cols-3 gap-2"},rD={class:"grid grid-cols-2 gap-2"},sD={class:"flex justify-between items-center"},aD={class:"flex gap-1 justify-end"};function oD(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("flat-pickr"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card");return re(),Le(Cr,null,[B("form",{onSubmit:r[10]||(r[10]=St((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[B("div",$F,[T(p,{label:"Employee"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[0]||(r[0]=E=>t.form.employee_id=E),options:t.employees,class:"form-control w-full h-[48px] mt-2",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Status"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.status_id,"onUpdate:modelValue":r[1]||(r[1]=E=>t.form.status_id=E),options:t.status,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","options"])]),_:1})]),B("div",eD,[T(p,{label:"Company"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[2]||(r[2]=E=>t.form.company_id=E),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Classification"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.job_classification_id,"onUpdate:modelValue":r[3]||(r[3]=E=>t.form.job_classification_id=E),options:t.job_classification,class:"form-control w-full h-[48px] mt-2",loading:t.state.isJCLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[4]||(r[4]=E=>t.form.dealer_id=E),options:t.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",tD,[T(p,{label:"Division"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[5]||(r[5]=E=>t.form.division_id=E),options:t.divisions,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Department"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[6]||(r[6]=E=>t.form.department_id=E),options:t.departments,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Section"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.section_id,"onUpdate:modelValue":r[7]||(r[7]=E=>t.form.section_id=E),options:t.sections,class:"form-control w-full h-[48px] mt-2",loading:t.state.isSectionLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",rD,[T(p,{label:"Start Date",isRequired:!0},{default:G(()=>[T(b,{modelValue:t.form.start_date,"onUpdate:modelValue":r[8]||(r[8]=E=>t.form.start_date=E),class:"form-control h-[48px]",id:"start_date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),T(p,{label:"End Date"},{default:G(()=>[T(b,{modelValue:t.form.end_date,"onUpdate:modelValue":r[9]||(r[9]=E=>t.form.end_date=E),class:"form-control h-[48px]",id:"control",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),B("div",sD,[t.hasValue?(re(),Me(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):me("",!0),B("div",aD,[T(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(S,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):me("",!0)],64)}const iD=Et(ZF,[["render",oD],["__scopeId","data-v-7fba7428"]]);const nD={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],departments:[],employees:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:"changeScheduleReport",employee_id:[],company_id:"",dealer_id:"",department_id:"",start_date:"",end_date:""},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isCompanyLoading:!1,isDealerLoading:!1,isDepartmentLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length},activeCompany(){return this.$store.userSettings.getActiveCompany},activeDealer(){return this.$store.userSettings.getActiveDealership}},methods:{async fetchEmployee(){await Fr.fetchAllEmployeeRecords({company_id:this.activeCompany,dealership_id:this.activeDealer}).then(s=>{console.log("response",this.activeCompany),s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await es.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await tt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){this.finalData=s.data.data;const r=this.finalData.map(o=>({employee_id:o.employee_id||null,fullname:`${o.firstname} ${o.lastname}`||null,status:o.status==0?"For Recommendation":o.status==1?"For Approval":o.status==2?"Approved":null,time_coverage:o.dayoff?null:o.from_time+" - "+o.to_time,dayoff:o.dayoff?"Yes":"",recommending:o.recommending_firstname+" "+o.recommending_lastname,approving:o.approving_firstname+" "+o.approving_lastname}));this.colDefs=[{field:"employee_id",headerName:"Employee ID",filter:!0,floatingFilter:!0,flex:2},{field:"fullname",headerName:"Name",filter:!0,floatingFilter:!0,flex:3},{field:"status",headerName:"Status",filter:!0,floatingFilter:!0,flex:3},{field:"time_coverage",headerName:"Time Coverage",filter:!0,floatingFilter:!0,flex:3},{field:"dayoff",headerName:"DayOff",filter:!0,floatingFilter:!0,flex:3},{field:"recommending",headerName:"Recommender",filter:!0,floatingFilter:!0,flex:3},{field:"approving",headerName:"Approver",filter:!0,floatingFilter:!0,flex:3}],this.resultData=r,this.hasValue=!0}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await tt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchEmployee(),this.fetchCompany(),this.fetchDealership(),this.fetchDepartment()},watch:{}},lD={class:"grid grid-cols-1 gap-2"},cD={class:"grid grid-cols-2 gap-2"},fD={class:"grid grid-cols-2 gap-2"},uD={class:"flex justify-between items-center"},dD={class:"flex gap-1 justify-end"};function hD(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("flat-pickr"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card");return re(),Le(Cr,null,[B("form",{onSubmit:r[6]||(r[6]=St((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[B("div",lD,[T(p,{label:"Employee"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[0]||(r[0]=E=>t.form.employee_id=E),options:t.employees,class:"form-multiselect w-full mt-2",mode:"tags","close-on-select":!1,loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",cD,[T(p,{label:"Company"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[1]||(r[1]=E=>t.form.company_id=E),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[2]||(r[2]=E=>t.form.dealer_id=E),options:t.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Department"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=E=>t.form.department_id=E),options:t.departments,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",fD,[T(p,{label:"Start Date",isRequired:!0},{default:G(()=>[T(b,{modelValue:t.form.start_date,"onUpdate:modelValue":r[4]||(r[4]=E=>t.form.start_date=E),class:"form-control h-[48px]",id:"start_date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),T(p,{label:"End Date",isRequired:!0},{default:G(()=>[T(b,{modelValue:t.form.end_date,"onUpdate:modelValue":r[5]||(r[5]=E=>t.form.end_date=E),class:"form-control h-[48px]",id:"control",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),B("div",uD,[t.hasValue?(re(),Me(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):me("",!0),B("div",dD,[T(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(S,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):me("",!0)],64)}const pD=Et(nD,[["render",hD],["__scopeId","data-v-d1afa970"]]);const mD={setup(){},components:{Radio:Cm,AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],departments:[],employees:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:"cwsListReport",employee_id:[],company_id:"",dealer_id:"",department_id:"",resign_employee:"",start_date:"",date:"",end_date:""},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isCompanyLoading:!1,isDealerLoading:!1,isDepartmentLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length},activeCompany(){return this.$store.userSettings.getActiveCompany},activeDealer(){return this.$store.userSettings.getActiveDealership}},methods:{async fetchEmployee(){await Fr.fetchAllEmployeeRecords({company_id:this.activeCompany,dealership_id:this.activeDealer}).then(s=>{console.log("response",this.activeCompany),s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await es.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await tt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){this.finalData=s.data.data;const r=this.finalData.map(o=>({employee_id:o.employee_id||null,fullname:`${o.firstname} ${o.lastname}`||null,time_coverage:o.dayoff?null:o.cws_from_time+" - "+o.cws_to_time,dayoff:o.day_off,cws_day:o.cws_day,effectivity_date:o.effectivity_date}));this.colDefs=[{field:"employee_id",headerName:"Employee ID",filter:!0,floatingFilter:!0,flex:2},{field:"fullname",headerName:"Name",filter:!0,floatingFilter:!0,flex:3},{field:"time_coverage",headerName:"Time Coverage",filter:!0,floatingFilter:!0,flex:3},{field:"dayoff",headerName:"DayOff",filter:!0,floatingFilter:!0,flex:3},{field:"cws_day",headerName:"8 Hours Day",filter:!0,floatingFilter:!0,flex:3},{field:"effectivity_date",headerName:"Effectivity Date",filter:!0,floatingFilter:!0,flex:3}],this.resultData=r,this.hasValue=!0}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await tt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchEmployee(),this.fetchCompany(),this.fetchDealership(),this.fetchDepartment()},watch:{}},gD={class:"grid grid-cols-1 gap-2"},bD={class:"grid grid-cols-2 gap-2"},yD={class:"flex items-center gap-4"},_D={class:"flex items-center cursor-pointer"},vD=["checked"],wD={class:"flex items-center cursor-pointer gap-4"},xD={class:"grid grid-cols-2 gap-2"},CD={class:"flex justify-between items-center"},FD={class:"flex gap-1 justify-end"};function DD(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("Radio"),_=Y("flat-pickr"),w=Y("Button"),S=Y("SubmitButton"),A=Y("ag-grid-vue"),E=Y("Card");return re(),Le(Cr,null,[B("form",{onSubmit:r[9]||(r[9]=St((...M)=>s.confirmSubmit&&s.confirmSubmit(...M),["prevent"])),class:"space-y-4"},[B("div",gD,[T(p,{label:"Employee"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[0]||(r[0]=M=>t.form.employee_id=M),options:t.employees,class:"form-multiselect w-full mt-2",mode:"tags","close-on-select":!1,loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",bD,[T(p,{label:"Company"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[1]||(r[1]=M=>t.form.company_id=M),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[2]||(r[2]=M=>t.form.dealer_id=M),options:t.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Department"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=M=>t.form.department_id=M),options:t.departments,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",yD,[B("label",_D,[$o(B("input",{type:"checkbox",class:"peer h-6 w-6 cursor-pointer rounded-full bg-slate-100 border border-slate-300 checked:bg-blue-500 checked:border-blue-500",checked:t.form.resign_employee,"onUpdate:modelValue":r[4]||(r[4]=M=>t.form.resign_employee=M)},null,8,vD),[[pm,t.form.resign_employee]]),r[10]||(r[10]=B("span",{class:"absolute text-white opacity-0 peer-checked:opacity-100"},[B("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor","stroke-width":"1"},[B("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"})])],-1)),r[11]||(r[11]=B("span",{class:"ml-2 text-slate-500 dark:text-slate-400 text-sm"},"Include Resigned Employees",-1))]),B("label",wD,[T(b,{label:"Filling Date",value:0,modelValue:t.form.date,"onUpdate:modelValue":r[5]||(r[5]=M=>t.form.date=M)},null,8,["modelValue"]),T(b,{label:"Occurence Date",value:1,modelValue:t.form.date,"onUpdate:modelValue":r[6]||(r[6]=M=>t.form.date=M)},null,8,["modelValue"])])]),B("div",xD,[T(p,{label:"Start Date",isRequired:!0},{default:G(()=>[T(_,{modelValue:t.form.start_date,"onUpdate:modelValue":r[7]||(r[7]=M=>t.form.start_date=M),class:"form-control h-[48px]",id:"start_date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),T(p,{label:"End Date",isRequired:!0},{default:G(()=>[T(_,{modelValue:t.form.end_date,"onUpdate:modelValue":r[8]||(r[8]=M=>t.form.end_date=M),class:"form-control h-[48px]",id:"control",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),B("div",CD,[t.hasValue?(re(),Me(w,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):me("",!0),B("div",FD,[T(S,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(E,{key:0,class:"p-2"},{default:G(()=>[T(A,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):me("",!0)],64)}const AD=Et(mD,[["render",DD],["__scopeId","data-v-5e262e3d"]]);const SD={setup(){},components:{Radio:Cm,AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],departments:[],employees:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:"changeRestDay",employee_id:[],company_id:"",dealer_id:"",department_id:"",resign_employee:"",start_date:"",date:"",end_date:""},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isCompanyLoading:!1,isDealerLoading:!1,isDepartmentLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length},activeCompany(){return this.$store.userSettings.getActiveCompany},activeDealer(){return this.$store.userSettings.getActiveDealership}},methods:{async fetchEmployee(){await Fr.fetchAllEmployeeRecords({company_id:this.activeCompany,dealership_id:this.activeDealer}).then(s=>{console.log("response",this.activeCompany),s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await es.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await tt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){this.finalData=s.data.data;const r=this.finalData.map(o=>({employee_id:o.employee_id||null,fullname:`${o.firstname} ${o.lastname}`||null,dayoff:o.dayoff?"Yes":"",recommending:o.recommending_firstname+" "+o.recommending_lastname,approving:o.approving_firstname+" "+o.approving_lastname}));this.colDefs=[{field:"employee_id",headerName:"Employee ID",filter:!0,floatingFilter:!0,flex:2},{field:"fullname",headerName:"Name",filter:!0,floatingFilter:!0,flex:3},{field:"dayoff",headerName:"DayOff",filter:!0,floatingFilter:!0,flex:3},{field:"recommending",headerName:"Recommender",filter:!0,floatingFilter:!0,flex:3},{field:"approving",headerName:"Approver",filter:!0,floatingFilter:!0,flex:3}],this.resultData=r,this.hasValue=!0}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await tt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchEmployee(),this.fetchCompany(),this.fetchDealership(),this.fetchDepartment()},watch:{}},ED={class:"grid grid-cols-1 gap-2"},TD={class:"grid grid-cols-2 gap-2"},RD={class:"flex items-center gap-4"},kD={class:"flex items-center cursor-pointer"},LD=["checked"],MD={class:"flex items-center cursor-pointer gap-4"},OD={class:"grid grid-cols-2 gap-2"},PD={class:"flex justify-between items-center"},ND={class:"flex gap-1 justify-end"};function ID(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("Radio"),_=Y("flat-pickr"),w=Y("Button"),S=Y("SubmitButton"),A=Y("ag-grid-vue"),E=Y("Card");return re(),Le(Cr,null,[B("form",{onSubmit:r[9]||(r[9]=St((...M)=>s.confirmSubmit&&s.confirmSubmit(...M),["prevent"])),class:"space-y-4"},[B("div",ED,[T(p,{label:"Employee"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[0]||(r[0]=M=>t.form.employee_id=M),options:t.employees,class:"form-multiselect w-full mt-2",mode:"tags","close-on-select":!1,loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",TD,[T(p,{label:"Company"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[1]||(r[1]=M=>t.form.company_id=M),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[2]||(r[2]=M=>t.form.dealer_id=M),options:t.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Department"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=M=>t.form.department_id=M),options:t.departments,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",RD,[B("label",kD,[$o(B("input",{type:"checkbox",class:"peer h-6 w-6 cursor-pointer rounded-full bg-slate-100 border border-slate-300 checked:bg-blue-500 checked:border-blue-500",checked:t.form.resign_employee,"onUpdate:modelValue":r[4]||(r[4]=M=>t.form.resign_employee=M)},null,8,LD),[[pm,t.form.resign_employee]]),r[10]||(r[10]=B("span",{class:"absolute text-white opacity-0 peer-checked:opacity-100"},[B("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor","stroke-width":"1"},[B("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"})])],-1)),r[11]||(r[11]=B("span",{class:"ml-2 text-slate-500 dark:text-slate-400 text-sm"},"Include Resigned Employees",-1))]),B("label",MD,[T(b,{label:"Filling Date",value:0,modelValue:t.form.date,"onUpdate:modelValue":r[5]||(r[5]=M=>t.form.date=M)},null,8,["modelValue"]),T(b,{label:"Occurence Date",value:1,modelValue:t.form.date,"onUpdate:modelValue":r[6]||(r[6]=M=>t.form.date=M)},null,8,["modelValue"])])]),B("div",OD,[T(p,{label:"Start Date",isRequired:!0},{default:G(()=>[T(_,{modelValue:t.form.start_date,"onUpdate:modelValue":r[7]||(r[7]=M=>t.form.start_date=M),class:"form-control h-[48px]",id:"start_date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),T(p,{label:"End Date",isRequired:!0},{default:G(()=>[T(_,{modelValue:t.form.end_date,"onUpdate:modelValue":r[8]||(r[8]=M=>t.form.end_date=M),class:"form-control h-[48px]",id:"control",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),B("div",PD,[t.hasValue?(re(),Me(w,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):me("",!0),B("div",ND,[T(S,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(E,{key:0,class:"p-2"},{default:G(()=>[T(A,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):me("",!0)],64)}const VD=Et(SD,[["render",ID],["__scopeId","data-v-d25c46d7"]]);const BD={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:"timeAdjustment",columns:[],company_id:"",dealer_id:""},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isCompanyLoading:!1,isDealerLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await tt.fetchGeneratedReport(this.form).then(s=>{if(s.status==200){this.finalData=s.data.data;const r=this.finalData.map(o=>({employee_id:o.employee_id||null,fullname:`${o.firstname} ${o.lastname}`||null,status:o.status==0?"For Recommendation":o.status==1?"For Approval":o.status==2?"Approved":"",in_out:o.in_out?"O":"I",time:o.time,date:o.date,recommending:o.recommending_firstname+" "+o.recommending_lastname,approving:o.approving_firstname+" "+o.approving_lastname}));this.colDefs=[{field:"employee_id",headerName:"Employee ID",filter:!0,floatingFilter:!0,flex:2},{field:"fullname",headerName:"Name",filter:!0,floatingFilter:!0,flex:3},{field:"status",headerName:"Status",filter:!0,floatingFilter:!0,flex:3},{field:"in_out",headerName:"In / Out",filter:!0,floatingFilter:!0,flex:3},{field:"time",headerName:"Time",filter:!0,floatingFilter:!0,flex:3},{field:"date",headerName:"Date",filter:!0,floatingFilter:!0,flex:3},{field:"recommending",headerName:"Recommender",filter:!0,floatingFilter:!0,flex:3},{field:"approving",headerName:"Approver",filter:!0,floatingFilter:!0,flex:3}],this.resultData=r,this.hasValue=!0}}).catch(s=>{console.log(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await tt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchCompany(),this.fetchDealership()},watch:{}},UD={class:"grid grid-cols-2 gap-2"},zD={class:"grid grid-cols-2 gap-2"},GD={class:"flex justify-between items-center"},jD={class:"flex gap-1 justify-end"};function WD(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("flat-pickr"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card");return re(),Le(Cr,null,[B("form",{onSubmit:r[4]||(r[4]=St((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[r[5]||(r[5]=B("div",{class:"grid grid-cols-1 gap-2"},null,-1)),B("div",UD,[T(p,{label:"Company"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=E=>t.form.company_id=E),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=E=>t.form.dealer_id=E),options:t.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",zD,[T(p,{label:"Start Date",isRequired:!0},{default:G(()=>[T(b,{modelValue:t.form.start_date,"onUpdate:modelValue":r[2]||(r[2]=E=>t.form.start_date=E),class:"form-control h-[48px]",id:"start_date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),T(p,{label:"End Date",isRequired:!0},{default:G(()=>[T(b,{modelValue:t.form.end_date,"onUpdate:modelValue":r[3]||(r[3]=E=>t.form.end_date=E),class:"form-control h-[48px]",id:"control",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),B("div",GD,[t.hasValue?(re(),Me(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):me("",!0),B("div",jD,[T(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(S,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):me("",!0),r[6]||(r[6]=B("div",null,null,-1))],64)}const HD=Et(BD,[["render",WD],["__scopeId","data-v-d1e43127"]]);const YD={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],employeeOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[]},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isDealerLoading:!1,isLoadingDealerships:!1,isLoadingEmployees:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchEmployee(){this.state.isEmployeeLoading=!0,await Fr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Division.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await Department.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await JobTitle.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generateExcel(){const s=this.dealers.find(t=>t.value===this.form.dealer_id),r=this.companies.find(t=>t.value===this.form.company_id);if(console.log("FinalData",this.finalData),!this.finalData.length){this.$swal.fire({title:"No Data Available",text:"Please generate a report first.",icon:"warning",timer:3e3});return}const o=this.countEmployeeFlags(),i=this.groupByDealership(this.finalData);oa(()=>import("./exceljs.min.9ae7dbb2.js").then(t=>t.e),["assets/exceljs.min.9ae7dbb2.js","assets/index.3a0d1437.js","assets/index.3378bb1a.css"]).then(t=>{const e=new t.default.Workbook,u=e.addWorksheet("Employee Mandatory Deduction Flags");u.mergeCells("A1:I1");const p=u.getCell("A1");p.value="List of Employee's Mandatory Deductions Flags",p.font={size:16,bold:!0},p.alignment={horizontal:"center"},u.mergeCells("A2:I2");const b=u.getCell("A2");b.value=(s==null?void 0:s.label)||(r==null?void 0:r.label),b.font={size:12,bold:!0},b.alignment={horizontal:"center"},u.columns=[{key:"empId",width:15},{key:"name",width:30},{key:"position",width:30},{key:"alwaysPresent",width:20},{key:"flexibleTime",width:15},{key:"noTax",width:15},{key:"noSss",width:15},{key:"noPagibig",width:15},{key:"noPhilhealth",width:15}];const _=u.addRow(["EMPLOYEE ID","NAME","POSITION","ALWAYS PRESENT","FLEXIBLE TIME","NO TAX","NO SSS","NO PAG-IBIG","NO PHILHEALTH"]);this.formatHeaderRow(_);let w=4;Object.entries(i).forEach(([A,E])=>{w++,u.mergeCells(`A${w}:I${w}`);const M=u.getCell(`A${w}`);M.value=A||"Unassigned Dealership",M.font={size:12,bold:!0},M.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}},M.alignment={horizontal:"left"};const N={totalEmployees:E.length,alwaysPresentCount:0,flexibleTimeCount:0,noTaxCount:0,noSssCount:0,noPagibigCount:0,noPhilhealthCount:0};E.forEach(U=>{var Je,ut,bt,st;let ee={};const ie=(Je=U==null?void 0:U.salary_and_wages)==null?void 0:Je.shields;ee=ie?JSON.parse(ie):{};const j=((ut=U==null?void 0:U.salary_and_wages)==null?void 0:ut.always_present)||"No",H=((bt=U==null?void 0:U.position)==null?void 0:bt.name)||"N/A",ne=((st=U==null?void 0:U.salary_and_wages)==null?void 0:st.flexible_time)||"No",W=(ee==null?void 0:ee.no_tax)||"No",Ae=(ee==null?void 0:ee.no_sss)||"No",ve=(ee==null?void 0:ee.no_pagibig)||"No",it=(ee==null?void 0:ee.no_philhealth)||"No";j==1&&N.alwaysPresentCount++,ne==1&&N.flexibleTimeCount++,W==1&&N.noTaxCount++,Ae==1&&N.noSssCount++,ve==1&&N.noPagibigCount++,it==1&&N.noPhilhealthCount++,w++,u.addRow([U.employee_id||"",U.lastname+", "+U.firstname||"",H||"N/A",j==1?"Yes":"No",ne==1?"Yes":"No",W==1?"Yes":"No",Ae==1?"Yes":"No",ve==1?"Yes":"No",it==1?"Yes":"No"]).eachCell(Mt=>{Mt.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}})}),w++,u.addRow(["Subtotal:",`${N.totalEmployees} employees`,"",N.alwaysPresentCount,N.flexibleTimeCount,N.noTaxCount,N.noSssCount,N.noPagibigCount,N.noPhilhealthCount]).eachCell(U=>{U.font={bold:!0},U.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFECECEC"}},U.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),w++,u.addRow([])}),w+=2;const S=u.addRow(["OVERALL SUMMARY"]);return S.getCell(1).font={bold:!0,size:14},u.addRow(["Total Employees:",o.totalEmployees]),u.addRow(["Always Present:",o.alwaysPresentCount]),u.addRow(["Flexible Time:",o.flexibleTimeCount]),u.addRow(["No Tax:",o.noTaxCount]),u.addRow(["No SSS:",o.noSssCount]),u.addRow(["No PAG-IBIG:",o.noPagibigCount]),u.addRow(["No PhilHealth:",o.noPhilhealthCount]),e.xlsx.writeBuffer()}).then(t=>{const e=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),u=window.URL.createObjectURL(e),p=document.createElement("a");p.href=u,p.download="EmployeeMandatoryFlags_ByDealership.xlsx",document.body.appendChild(p),p.click(),window.URL.revokeObjectURL(u),document.body.removeChild(p)}).catch(t=>{console.error("Error generating Excel file:",t),this.$swal.fire({title:"Export Failed",text:"Failed to generate Excel file. Please try again.",icon:"error",timer:3e3})})},formatHeaderRow(s){s.eachCell(r=>{r.font={bold:!0,color:{argb:"FFFFFFFF"}},r.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF464646"}},r.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}})},groupByDealership(s){const r={};return s.forEach(o=>{var t;const i=((t=o.dealership)==null?void 0:t.name)||"Unassigned";r[i]||(r[i]=[]),r[i].push(o)}),r},countEmployeeFlags(){if(!this.finalData.length)return{totalEmployees:0,alwaysPresentCount:0,flexibleTimeCount:0,noTaxCount:0,noSssCount:0,noPagibigCount:0,noPhilhealthCount:0};const s={totalEmployees:this.finalData.length,alwaysPresentCount:0,flexibleTimeCount:0,noTaxCount:0,noSssCount:0,noPagibigCount:0,noPhilhealthCount:0};return this.finalData.forEach(r=>{var w,S,A;let o={};const i=(w=r==null?void 0:r.salary_and_wages)==null?void 0:w.shields;o=i?JSON.parse(i):{};const t=((S=r==null?void 0:r.salary_and_wages)==null?void 0:S.always_present)||"No",e=((A=r==null?void 0:r.salary_and_wages)==null?void 0:A.flexible_time)||"No",u=(o==null?void 0:o.no_tax)||"No",p=(o==null?void 0:o.no_sss)||"No",b=(o==null?void 0:o.no_pagibig)||"No",_=(o==null?void 0:o.no_philhealth)||"No";t==1&&s.alwaysPresentCount++,e==1&&s.flexibleTimeCount++,u==1&&s.noTaxCount++,p==1&&s.noSssCount++,b==1&&s.noPagibigCount++,_==1&&s.noPhilhealthCount++}),console.log("Employee Flag Counts:",s),s},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Rr().shape({company_id:Dt().nullable().required("Company is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{await this.fetchAttendanceData(),this.generateExcel()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},async fetchAttendanceData(){try{const r=(await tt.GenerateEmployeeFlags(this.form)).data||{};let o=Object.values(r);o&&(this.employee={emp_no:o.emp_no,name:o.name}),this.finalData=Object.values(r)}catch(s){throw console.error("Error fetching attendance data:",s),s}}},mounted(){this.fetchCompany(),this.fetchDealership(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee()},watch:{"form.dealership_id"(){this.fetchEmployees()}}},qD={class:"grid grid-cols-3 gap-2"},KD={key:0,class:"text-[#ec4899]"},JD={class:"flex justify-between items-center"},XD={class:"flex gap-1 justify-end"};function QD(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("Button"),_=Y("SubmitButton");return re(),Le("form",{onSubmit:r[6]||(r[6]=St((...w)=>s.confirmSubmit&&s.confirmSubmit(...w),["prevent"])),class:"space-y-4"},[B("div",qD,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=w=>t.form.company_id=w),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(re(),Le("div",KD,"Company is required")):me("",!0)]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=w=>t.form.dealer_id=w),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Division"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=w=>t.form.division_id=w),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Department"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=w=>t.form.department_id=w),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Position"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=w=>t.form.position_id=w),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Employee"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=w=>t.form.employee_id=w),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),B("div",JD,[t.hasValue?(re(),Me(b,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToExcel},null,8,["onClick"])):me("",!0),B("div",XD,[T(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32)}const ZD=Et(YD,[["render",QD],["__scopeId","data-v-51618304"]]);const $D={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],payroll_dates:[],payrollDateOptions:[],finalData:[],resultData:[],MonthsOptions:[],YearsOptions:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],employeeOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[],cutoff_id:[],month:[]},errors:{},state:{isLoadingDealerships:!1,isLoadingPayrollDates:!1,isGenerating:!1,isSubmiting:!1,fetchingPayrollDates:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchPayrollDates(){this.state.fetchingPayrollDates=!0,await js.fetchAttendancePosted().then(s=>{if(s.status===200){console.log(s);const r=new Map;s.data.forEach(o=>{r.has(o.payroll_date)||r.set(o.payroll_date,{value:o.payroll_date,label:o.start_date?`${o.payroll_date} ( ${this.$formatDate(o.start_date)} to ${this.$formatDate(o.end_date)} )`:o.payroll_date})}),this.payrollDateOptions=Array.from(r.values())}}).catch(s=>{console.error(s)}).finally(()=>{this.state.fetchingPayrollDates=!1})},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Fr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await es.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await Rs.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generateExcel(){const s=this.dealers.find(i=>i.value===this.form.dealer_id),r=this.companies.find(i=>i.value===this.form.company_id),o=this.payrollDateOptions.find(i=>i.value===this.form.cutoff_id);oa(()=>import("./exceljs.min.9ae7dbb2.js").then(i=>i.e),["assets/exceljs.min.9ae7dbb2.js","assets/index.3a0d1437.js","assets/index.3378bb1a.css"]).then(i=>{const t=new i.default.Workbook,e=t.addWorksheet("Employee Deduction Report");e.mergeCells("A1:C1");const u=e.getCell("A1");u.value="List of Employee's Deduction Report",u.font={size:16,bold:!0},u.alignment={horizontal:"center"},e.mergeCells("A2:C2");const p=e.getCell("A2");p.value=(s==null?void 0:s.label)||(r==null?void 0:r.label),p.font={size:12,bold:!0},p.alignment={horizontal:"center"},e.mergeCells("A3:C3");const b=e.getCell("A3");if(b.value=o.label,b.font={size:12,bold:!0},b.alignment={horizontal:"center"},b.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}},e.columns=[{key:"category",width:30},{key:"name",width:40},{key:"amount",width:20}],!this.finalData||typeof this.finalData!="object"){console.error("Invalid data structure:",this.finalData);return}e.addRow([]);let _=0;const w={};Object.entries(this.finalData).forEach(([A,E])=>{E.items&&Array.isArray(E.items)&&E.items.forEach(M=>{const N=M.dealer||"Unassigned Dealer";w[N]||(w[N]={}),w[N][A]||(w[N][A]={items:[],total:0}),w[N][A].items.push(M),w[N][A].total+=parseFloat(M.amount)||0})}),Object.entries(w).forEach(([A,E])=>{const M=e.addRow([A]);M.font={bold:!0,size:16},M.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFBDD7EE"}},e.mergeCells(`A${M.number}:C${M.number}`);let N=0;Object.entries(E).forEach(([U,ee])=>{const ie=e.addRow([U]);ie.font={bold:!0,size:14},e.mergeCells(`A${ie.number}:C${ie.number}`),ee.items&&Array.isArray(ee.items)&&ee.items.forEach(ne=>{e.addRow(["",ne.employee_name,parseFloat(ne.amount)||0])});const j=ee.total;N+=j;const H=e.addRow(["",`Total ${U}`,j]);H.font={bold:!0},H.getCell(3).numFmt="#,##0.00",e.addRow([])});const q=e.addRow(["",`Total for ${A}`,N]);q.font={bold:!0,size:14},q.getCell(3).numFmt="#,##0.00",q.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFE2EFDA"}},_+=N,e.addRow([]),e.addRow([])});const S=e.addRow(["","Grand Total",_]);return S.font={bold:!0,size:16},S.getCell(3).numFmt="#,##0.00",S.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFFFC000"}},t.xlsx.writeBuffer()}).then(i=>{const t=new Blob([i],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),e=window.URL.createObjectURL(t),u=document.createElement("a");u.href=e,u.download="EmployeeDeductionReport.xlsx",document.body.appendChild(u),u.click(),window.URL.revokeObjectURL(e),document.body.removeChild(u)}).catch(i=>{console.error("Error generating Excel file:",i),this.$swal.fire({title:"Export Failed",text:"Failed to generate Excel file. Please try again.",icon:"error",timer:3e3})})},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Rr().shape({company_id:Dt().nullable().required("Company is required"),cutoff_id:Dt().nullable().required("CutOff is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{await this.fetchAdjustmentData(this.form),this.generateExcel()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},async fetchAdjustmentData(){var s,r;try{const i=(await tt.GenerateEmployeeDeductions(this.form)).data||{};if(typeof i=="object"&&i!==null){const t=Object.keys(i)[0],e=(r=(s=i[t])==null?void 0:s.items)==null?void 0:r[0];e&&(this.employee={emp_no:e.employee_id,name:e.employee_name}),this.finalData=i}else console.error("Invalid attendance data format:",i)}catch(o){throw console.error("Error fetching attendance data:",o),o}}},mounted(){this.fetchCompany(),this.fetchDealership(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee(),this.fetchPayrollDates()},watch:{}},eA={class:"grid grid-cols-4 gap-2"},tA={key:0,class:"text-[#ec4899]"},rA={class:"w-full mt-2"};function sA(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("SubmitButton");return re(),Le("form",{onSubmit:r[7]||(r[7]=St((..._)=>s.confirmSubmit&&s.confirmSubmit(..._),["prevent"])),class:"space-y-4"},[B("div",eA,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=_=>t.form.company_id=_),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=_=>t.form.dealer_id=_),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Division"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=_=>t.form.division_id=_),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Department"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=_=>t.form.department_id=_),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Position"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=_=>t.form.position_id=_),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Employee"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=_=>t.form.employee_id=_),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Cutoff",isRequired:!0},{default:G(()=>[T(u,{placeholder:"Select Cutoff",searchable:!0,modelValue:t.form.cutoff_id,"onUpdate:modelValue":r[6]||(r[6]=_=>t.form.cutoff_id=_),options:t.payrollDateOptions,class:"form-multiselect w-full",loading:t.state.fetchingPayrollDates},null,8,["modelValue","options","loading"]),t.errors.cutoff_id?(re(),Le("div",tA,"Cutoff is required")):me("",!0)]),_:1})]),B("div",rA,[T(b,{onClick:e.submitForm,text:"Generate",icon:"streamline:ai-generate-variation-spark",titleTheme:"success-500",btnClass:"text-white bg-primary-500 hover:ring ring-primary-500 ring-offset-1 py-2 px-3 w-full"},null,8,["onClick"])])],32)}const aA=Et($D,[["render",sA],["__scopeId","data-v-7a6f21fe"]]);const oA={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],payroll_dates:[],payrollDateOptions:[],finalData:[],resultData:[],MonthsOptions:[],YearsOptions:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],payrollItemOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[],cutoff_id:[],month:[],payroll_item_id:[]},errors:{},state:{isLoadingDealerships:!1,isCompanyLoading:!1,isLoadingPayrollDates:!1,isGenerating:!1,isSubmiting:!1,isEmployeeLoading:!1,isCompanyLoading:!1,isDealerLoading:!1,isDivisionLoading:!1,isDepartmentLoading:!1,fetchingPayrollDates:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchPayrollItemsRecords(){this.state.isAdjustmentLoading=!0,await by.fetchRecords().then(s=>{s.status==200&&(this.payrollItemOptions=s.data.data.filter(r=>r.tag==null&&(r.add_less==1||r.add_less=="")).map(r=>({value:r.id,label:r.name})))}).catch(s=>{console.log(s)}),this.state.isAdjustmentLoading=!1},async fetchPayrollDates(){this.state.fetchingPayrollDates=!0,await js.fetchAttendancePosted().then(s=>{if(s.status===200){console.log(s);const r=new Map;s.data.forEach(o=>{r.has(o.payroll_date)||r.set(o.payroll_date,{value:o.payroll_date,label:o.start_date?`${o.payroll_date} ( ${this.$formatDate(o.start_date)} to ${this.$formatDate(o.end_date)} )`:o.payroll_date})}),this.payrollDateOptions=Array.from(r.values())}}).catch(s=>{console.error(s)}).finally(()=>{this.state.fetchingPayrollDates=!1})},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Fr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords({dealership:this.form.company_id});s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await es.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await Rs.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generateExcel(){const s=this.dealers.find(i=>i.value===this.form.dealer_id),r=this.companies.find(i=>i.value===this.form.company_id),o=this.payrollDateOptions.find(i=>i.value===this.form.cutoff_id);oa(()=>import("./exceljs.min.9ae7dbb2.js").then(i=>i.e),["assets/exceljs.min.9ae7dbb2.js","assets/index.3a0d1437.js","assets/index.3378bb1a.css"]).then(i=>{const t=new i.default.Workbook,e=t.addWorksheet("Employee Adjustment Report");e.pageSetup={orientation:"portrait",paperSize:9,fitToPage:!0,fitToWidth:1,fitToHeight:0,margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3}},e.mergeCells("A1:C1");const u=e.getCell("A1");u.value="List of Employee's Adjustment Report",u.font={size:16,bold:!0},u.alignment={horizontal:"center"},e.mergeCells("A2:C2");const p=e.getCell("A2");p.value=(s==null?void 0:s.label)||(r==null?void 0:r.label),p.font={size:12,bold:!0},p.alignment={horizontal:"center"},e.mergeCells("A3:C3");const b=e.getCell("A3");b.value=o.label,b.font={size:12,bold:!0},b.alignment={horizontal:"center"},b.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}};const _=e.addRow(["Description","Name","Amount"]);if(_.font={bold:!0,size:12},_.eachCell(E=>{E.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFB8CCE4"}},E.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},E.alignment={horizontal:"center",vertical:"middle"}}),e.columns=[{key:"category",width:30},{key:"name",width:40},{key:"amount",width:20,style:{numFmt:"#,##0.00"}}],!this.finalData||typeof this.finalData!="object"){console.error("Invalid data structure:",this.finalData);return}const w={};Object.entries(this.finalData).forEach(([E,M])=>{M.items&&Array.isArray(M.items)&&M.items.forEach(N=>{const q=N.dealer||"Unassigned Dealer";w[q]||(w[q]={}),w[q][E]||(w[q][E]={items:[],total:0}),w[q][E].items.push(N),w[q][E].total+=parseFloat(N.amount)||0})});let S=0;Object.entries(w).forEach(([E,M])=>{const N=e.addRow([E]);N.font={bold:!0,size:16},N.eachCell(ee=>{ee.font={bold:!0,size:16},ee.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFBDD7EE"}},ee.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),e.mergeCells(`A${N.number}:C${N.number}`);let q=0;Object.entries(M).forEach(([ee,ie])=>{const j=e.addRow([ee]);j.font={bold:!0,size:14},e.mergeCells(`A${j.number}:C${j.number}`),ie.items&&Array.isArray(ie.items)&&ie.items.forEach(W=>{const Ae=e.addRow(["",W.employee_name,parseFloat(W.amount)||0]);Ae.getCell(3).numFmt="#,##0.00"});const H=ie.total;q+=H;const ne=e.addRow(["",`Total ${ee}`,H]);ne.font={bold:!0},ne.getCell(3).numFmt="#,##0.00",e.addRow([])});const U=e.addRow(["",`Total for ${E}`,q]);U.font={bold:!0,size:14},U.getCell(3).numFmt="#,##0.00",U.eachCell(ee=>{ee.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFE2EFDA"}},ee.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),S+=q,e.addRow([]),e.addRow([])});const A=e.addRow(["","Grand Total",S]);return A.font={bold:!0,size:16},A.getCell(3).numFmt="#,##0.00",A.eachCell(E=>{E.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFFFC000"}},E.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),e.headerFooter.oddHeader="&C&B&18Employee Adjustment Report",e.headerFooter.oddFooter="&L&D &T&C&P of &N&R"+((s==null?void 0:s.label)||(r==null?void 0:r.label)),e.pageSetup.printTitlesRow="1:4",t.xlsx.writeBuffer()}).then(i=>{const t=new Blob([i],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),e=window.URL.createObjectURL(t),u=document.createElement("a");u.href=e,u.download="EmployeeAdjustmentReport.xlsx",document.body.appendChild(u),u.click(),window.URL.revokeObjectURL(e),document.body.removeChild(u)}).catch(i=>{console.error("Error generating Excel file:",i),this.$swal.fire({title:"Export Failed",text:"Failed to generate Excel file. Please try again.",icon:"error",timer:3e3})})},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Rr().shape({company_id:Dt().nullable().required("Company is required"),cutoff_id:Dt().nullable().required("CutOff is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{await this.fetchAdjustmentData(this.form),this.generateExcel()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},async fetchAdjustmentData(){var s,r;try{const i=(await tt.GenerateEmployeeAdjustments(this.form)).data||{};if(typeof i=="object"&&i!==null){const t=Object.keys(i)[0],e=(r=(s=i[t])==null?void 0:s.items)==null?void 0:r[0];e&&(this.employee={emp_no:e.employee_id,name:e.employee_name}),this.finalData=i}else console.error("Invalid attendance data format:",i)}catch(o){throw console.error("Error fetching attendance data:",o),o}}},mounted(){this.fetchCompany(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee(),this.fetchPayrollDates(),this.fetchPayrollItemsRecords()},watch:{"form.company_id":{handler:"fetchDealership",immediate:!0},"form.dealership_id":{handler(s){if(s){const r=this.dealershipsOptions.find(o=>o.value===s);r&&this.fetchEmployee(r.reference_no)}},immediate:!1}}},iA={class:"grid grid-cols-4 gap-2"},nA={key:0,class:"text-[#ec4899]"},lA={key:0,class:"text-[#ec4899]"},cA={key:0,class:"text-[#ec4899]"},fA={class:"w-full mt-2"};function uA(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("SubmitButton");return re(),Le("form",{onSubmit:r[8]||(r[8]=St((..._)=>s.confirmSubmit&&s.confirmSubmit(..._),["prevent"])),class:"space-y-4"},[B("div",iA,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=_=>t.form.company_id=_),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(re(),Le("div",nA,"Company is required")):me("",!0)]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=_=>t.form.dealer_id=_),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Division"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=_=>t.form.division_id=_),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Department"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=_=>t.form.department_id=_),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Position"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=_=>t.form.position_id=_),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Employee"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=_=>t.form.employee_id=_),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Cutoff",isRequired:!0},{default:G(()=>[T(u,{placeholder:"Select Cutoff",searchable:!0,modelValue:t.form.cutoff_id,"onUpdate:modelValue":r[6]||(r[6]=_=>t.form.cutoff_id=_),options:t.payrollDateOptions,class:"form-multiselect w-full",loading:t.state.fetchingPayrollDates},null,8,["modelValue","options","loading"]),t.errors.cutoff_id?(re(),Le("div",lA,"Cutoff is required")):me("",!0)]),_:1}),T(p,{label:"Payroll Items"},{default:G(()=>[T(u,{placeholder:"(ALL)","close-on-select":!1,modelValue:t.form.payroll_item_id,"onUpdate:modelValue":r[7]||(r[7]=_=>t.form.payroll_item_id=_),options:t.payrollItemOptions,searchable:!0,mode:"tags",loading:t.state.isAdjustmentLoading},null,8,["modelValue","options","loading"]),t.errors.payroll_item_id?(re(),Le("div",cA," Payroll Item is required ")):me("",!0)]),_:1})]),B("div",fA,[T(b,{onClick:e.submitForm,text:"Generate",icon:"streamline:ai-generate-variation-spark",titleTheme:"success-500",btnClass:"text-white bg-primary-500 hover:ring ring-primary-500 ring-offset-1 py-2 px-3 w-full"},null,8,["onClick"])])],32)}const dA=Et(oA,[["render",uA],["__scopeId","data-v-5bc8e8c9"]]);const hA={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],payroll_dates:[],payrollDateOptions:[],finalData:[],resultData:[],MonthsOptions:[],YearsOptions:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],employeeOptions:[],loanOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[],cutoff_id:[],month:[],loan_id:[]},errors:{},state:{isLoadingDealerships:!1,isLoadingPayrollDates:!1,isGenerating:!1,isSubmiting:!1,fetchingPayrollDates:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchLoanType(){this.state.isLoanLoading=!0,await Fm.fetchRecords().then(s=>{s.status==200&&(this.loanOptions=s.data.data.map(r=>({value:r.id,label:r.name})))}).catch(s=>{console.log(s)}),this.state.isLoanLoading=!1},async fetchPayrollDates(){this.state.fetchingPayrollDates=!0,await js.fetchAttendancePosted().then(s=>{if(s.status===200){console.log(s);const r=new Map;s.data.forEach(o=>{r.has(o.payroll_date)||r.set(o.payroll_date,{value:o.payroll_date,label:o.start_date?`${o.payroll_date} ( ${this.$formatDate(o.start_date)} to ${this.$formatDate(o.end_date)} )`:o.payroll_date})}),this.payrollDateOptions=Array.from(r.values())}}).catch(s=>{console.error(s)}).finally(()=>{this.state.fetchingPayrollDates=!1})},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Fr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords({dealership:this.form.company_id});s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await es.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await Rs.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generateExcel(){const s=this.dealers.find(i=>i.value===this.form.dealer_id),r=this.companies.find(i=>i.value===this.form.company_id),o=this.payrollDateOptions.find(i=>i.value===this.form.cutoff_id);oa(()=>import("./exceljs.min.9ae7dbb2.js").then(i=>i.e),["assets/exceljs.min.9ae7dbb2.js","assets/index.3a0d1437.js","assets/index.3378bb1a.css"]).then(i=>{const t=new i.default.Workbook,e=t.addWorksheet("Employee Loan Report");e.mergeCells("A1:C1");const u=e.getCell("A1");u.value="List of Employee's Loan Report",u.font={size:16,bold:!0},u.alignment={horizontal:"center"},e.mergeCells("A2:C2");const p=e.getCell("A2");p.value=(s==null?void 0:s.label)||(r==null?void 0:r.label),p.font={size:12,bold:!0},p.alignment={horizontal:"center"},e.mergeCells("A3:C3");const b=e.getCell("A3");if(b.value=o.label,b.font={size:12,bold:!0},b.alignment={horizontal:"center"},b.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}},e.columns=[{key:"employee id",width:30},{key:"name",width:40},{key:"amount",width:20,style:{numFmt:"#,##0.00"}}],!this.finalData||typeof this.finalData!="object"){console.error("Invalid data structure:",this.finalData);return}let _=0;const w={};Object.entries(this.finalData).forEach(([M,N])=>{N.items&&Array.isArray(N.items)&&N.items.forEach(q=>{const U=q.dealer||"Unassigned Dealer";w[U]||(w[U]={}),w[U][M]||(w[U][M]={items:[],total:0}),w[U][M].items.push(q),w[U][M].total+=parseFloat(q.amount)||0})}),Object.entries(w).forEach(([M,N])=>{const q=e.addRow([M]);q.eachCell(ie=>{ie.font={bold:!0,size:16},ie.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFBDD7EE"}},ie.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),e.mergeCells(`A${q.number}:C${q.number}`);let U=0;Object.entries(N).forEach(([ie,j])=>{const H=e.addRow([ie]);H.font={bold:!0,size:14},e.mergeCells(`A${H.number}:C${H.number}`),e.addRow(["Employee ID","Name","Amount"]),e.lastRow.eachCell(ve=>{ve.font={bold:!0,color:{argb:"FFFFFFFF"}},ve.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF464646"}},ve.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),j.items&&Array.isArray(j.items)&&j.items.forEach(ve=>{const it=parseFloat(ve.amount)||0,Je=e.addRow([ve.employee_id,ve.employee_name,it]).getCell(3);Je.numFmt="#,##0.00"});const W=j.total;U+=W;const Ae=e.addRow(["",`Total ${ie}`,W]);Ae.font={bold:!0},Ae.getCell(3).numFmt="#,##0.00",e.addRow([])});const ee=e.addRow(["",`Total for ${M}`,U]);ee.font={bold:!0,size:14},ee.getCell(3).numFmt="#,##0.00",ee.eachCell(ie=>{ie.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFE2EFDA"}},ie.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),_+=U,e.addRow([]),e.addRow([])});const S=e.addRow(["","Grand Total",_]);S.font={bold:!0,size:16},S.getCell(3).numFmt="#,##0.00",S.eachCell(M=>{M.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFFFC000"}},M.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}});const A=e.addRow(["","Verification (SUM)",""]);A.font={bold:!0,italic:!0};const E=A.getCell(3);return E.value={formula:"=SUM(C:C)",date1904:!1},E.numFmt="#,##0.00",t.xlsx.writeBuffer()}).then(i=>{const t=new Blob([i],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),e=window.URL.createObjectURL(t),u=document.createElement("a");u.href=e,u.download="EmployeeLoanReport.xlsx",document.body.appendChild(u),u.click(),window.URL.revokeObjectURL(e),document.body.removeChild(u)}).catch(i=>{console.error("Error generating Excel file:",i),this.$swal.fire({title:"Export Failed",text:"Failed to generate Excel file. Please try again.",icon:"error",timer:3e3})})},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Rr().shape({company_id:Dt().nullable().required("Company is required"),cutoff_id:Dt().nullable().required("CutOff is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{const s=this.dealershipsOptions.find(r=>r.value===this.form.dealership_id);s&&(this.form.reference_no=s.reference_no,this.fetchEmployee(s.reference_no)),await this.fetchAdjustmentData(this.form),this.generateExcel()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},async fetchAdjustmentData(){var s,r;try{const i=(await tt.GenerateEmployeeLoans(this.form)).data||{};if(typeof i=="object"&&i!==null){const t=Object.keys(i)[0],e=(r=(s=i[t])==null?void 0:s.items)==null?void 0:r[0];e&&(this.employee={name:e.employee_name}),this.finalData=i}else console.error("Invalid attendance data format:",i)}catch(o){throw console.error("Error fetching attendance data:",o),o}}},mounted(){this.fetchCompany(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee(),this.fetchPayrollDates(),this.fetchLoanType()},watch:{"form.company_id":{handler:"fetchDealership",immediate:!0},"form.dealership_id":{handler(s){if(s){const r=this.dealershipsOptions.find(o=>o.value===s);r&&this.fetchEmployee(r.reference_no)}},immediate:!1}}},pA={class:"grid grid-cols-4 gap-2"},mA={key:0,class:"text-[#ec4899]"},gA={key:0,class:"text-[#ec4899]"},bA={class:"relative"},yA={key:0,class:"text-[#ec4899]"},_A={class:"w-full mt-2"};function vA(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("SubmitButton");return re(),Le("form",{onSubmit:r[8]||(r[8]=St((..._)=>s.confirmSubmit&&s.confirmSubmit(..._),["prevent"])),class:"space-y-4"},[B("div",pA,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=_=>t.form.company_id=_),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(re(),Le("div",mA,"Company is required")):me("",!0)]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=_=>t.form.dealer_id=_),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Division"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=_=>t.form.division_id=_),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Department"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=_=>t.form.department_id=_),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Position"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=_=>t.form.position_id=_),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Employee"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=_=>t.form.employee_id=_),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Cutoff",isRequired:!0},{default:G(()=>[T(u,{placeholder:"Select Cutoff",searchable:!0,modelValue:t.form.cutoff_id,"onUpdate:modelValue":r[6]||(r[6]=_=>t.form.cutoff_id=_),options:t.payrollDateOptions,class:"form-multiselect w-full",loading:t.state.fetchingPayrollDates},null,8,["modelValue","options","loading"]),t.errors.cutoff_id?(re(),Le("div",gA,"Cutoff is required")):me("",!0)]),_:1}),T(p,{label:"Loan Type"},{default:G(()=>[B("div",bA,[T(u,{placeholder:"(ALL)",modelValue:t.form.loan_id,"onUpdate:modelValue":r[7]||(r[7]=_=>t.form.loan_id=_),"close-on-select":!1,searchable:!0,id:"loan_id",class:"form-multiselect w-full",options:t.loanOptions,mode:"tags",loading:t.state.isLoanLoading},null,8,["modelValue","options","loading"])]),t.errors.loan_id?(re(),Le("div",yA,"Loan field is required")):me("",!0)]),_:1})]),B("div",_A,[T(b,{onClick:e.submitForm,text:"Generate",icon:"streamline:ai-generate-variation-spark",titleTheme:"success-500",btnClass:"text-white bg-primary-500 hover:ring ring-primary-500 ring-offset-1 py-2 px-3 w-full"},null,8,["onClick"])])],32)}const wA=Et(hA,[["render",vA],["__scopeId","data-v-2f87e9a7"]]);const xA={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],payroll_dates:[],payrollDateOptions:[],finalData:[],resultData:[],MonthsOptions:[],YearsOptions:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],employeeOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[],cutoff_id:[],month:[],loan_id:[32]},errors:{},state:{isLoadingDealerships:!1,isLoadingPayrollDates:!1,isGenerating:!1,isSubmiting:!1,fetchingPayrollDates:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{fetchMonthsAndYears(){this.MonthsOptions=Object.entries(mt.getMonthMap()).map(([s,r])=>({value:parseInt(s),label:r})),this.YearsOptions=Object.entries(mt.getYearMap()).map(([s,r])=>({value:r,label:r}))},async fetchPayrollDates(){this.state.fetchingPayrollDates=!0,await js.fetchAttendancePosted().then(s=>{if(s.status===200){console.log(s);const r=new Map;s.data.forEach(o=>{r.has(o.payroll_date)||r.set(o.payroll_date,{value:o.payroll_date,label:o.start_date?`${o.payroll_date} ( ${this.$formatDate(o.start_date)} to ${this.$formatDate(o.end_date)} )`:o.payroll_date})}),this.payrollDateOptions=Array.from(r.values())}}).catch(s=>{console.error(s)}).finally(()=>{this.state.fetchingPayrollDates=!1})},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Fr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await es.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await Rs.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generateExcel(){const s=this.dealers.find(t=>t.value===this.form.dealer_id),r=this.companies.find(t=>t.value===this.form.company_id),o=this.MonthsOptions.find(t=>t.value===this.form.month),i=this.YearsOptions.find(t=>t.value===this.form.year);oa(()=>import("./exceljs.min.9ae7dbb2.js").then(t=>t.e),["assets/exceljs.min.9ae7dbb2.js","assets/index.3a0d1437.js","assets/index.3378bb1a.css"]).then(t=>{const e=new t.default.Workbook,u=e.addWorksheet("Employee Loan Report");u.mergeCells("A1:H1");const p=u.getCell("A1");p.value="Pagibig Salary Loan",p.font={size:16,bold:!0},p.alignment={horizontal:"center"},u.mergeCells("A2:H2");const b=u.getCell("A2");b.value=(s==null?void 0:s.label)||(r==null?void 0:r.label),b.font={size:12,bold:!0},b.alignment={horizontal:"center"},u.mergeCells("A3:H3");const _=u.getCell("A3");_.value=o.label+" "+i.label,_.font={size:12,bold:!0},_.alignment={horizontal:"center"},_.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}};const w=[{header:"Pagibig ID",key:"pagibig",width:30},{header:"Employee ID",key:"employee_id",width:30},{header:"Last Name",key:"lastname",width:30},{header:"First Name",key:"firstname",width:40},{header:"Middle Name",key:"middlename",width:20},{header:"TIN",key:"tin",width:20},{header:"Birth Date (MM/DD/YYYY)",key:"birth_date",width:20},{header:"Employee Loan Amortization",key:"amount",width:20}];if(u.columns=w,u.addRow(w.map(N=>N.header)).eachCell(N=>{N.font={bold:!0,color:{argb:"FFFFFFFF"}},N.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF464646"}},N.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),!this.finalData||typeof this.finalData!="object"){console.error("Invalid data structure:",this.finalData);return}let A=0;const E={};Object.entries(this.finalData).forEach(([N,q])=>{q.items&&Array.isArray(q.items)&&q.items.forEach(U=>{const ee=U.dealer||"Unassigned Dealer";E[ee]||(E[ee]={}),E[ee][N]||(E[ee][N]={items:[],total:0}),E[ee][N].items.push(U),E[ee][N].total+=parseFloat(U.amount)||0})}),Object.entries(E).forEach(([N,q])=>{const U=u.addRow([N]);U.eachCell(j=>{j.font={bold:!0,size:16},j.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFBDD7EE"}},j.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),u.mergeCells(`A${U.number}:H${U.number}`);let ee=0;Object.entries(q).forEach(([j,H])=>{const ne=u.addRow([j]);ne.font={bold:!0,size:14},u.mergeCells(`A${ne.number}:H${ne.number}`),H.items&&Array.isArray(H.items)&&H.items.forEach(ve=>{u.addRow([ve.pagibig,ve.employee_id,ve.lastname,ve.firstname,ve.middlename,ve.tin,mt.formatDate(ve.birth_date),mt.formatNumber(ve.amount)||0])});const W=H.total;ee+=W;const Ae=u.addRow(["","","","","","","Total "+j,W]);Ae.font={bold:!0},Ae.getCell(8).numFmt="#,##0.00",u.addRow([])});const ie=u.addRow(["","","","","","","Total for "+N,ee]);ie.font={bold:!0,size:14},ie.getCell(8).numFmt="#,##0.00",ie.eachCell((j,H)=>{H>=7&&(j.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFE2EFDA"}},j.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}),A+=ee,u.addRow([]),u.addRow([])});const M=u.addRow(["","","","","","","Grand Total",A]);return M.font={bold:!0,size:16},M.getCell(8).numFmt="#,##0.00",M.eachCell((N,q)=>{q>=7&&(N.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFFFC000"}},N.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}),e.xlsx.writeBuffer()}).then(t=>{const e=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),u=window.URL.createObjectURL(e),p=document.createElement("a");p.href=u,p.download="PagibigSalaryLoan.xlsx",document.body.appendChild(p),p.click(),window.URL.revokeObjectURL(u),document.body.removeChild(p)}).catch(t=>{console.error("Error generating Excel file:",t),this.$swal.fire({title:"Export Failed",text:"Failed to generate Excel file. Please try again.",icon:"error",timer:3e3})})},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Rr().shape({company_id:Dt().nullable().required("Company is required"),month:Dt().nullable().required("Month is required"),year:Dt().nullable().required("Year is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{const s=this.dealershipsOptions.find(r=>r.value===this.form.dealership_id);s&&(this.form.reference_no=s.reference_no,this.fetchEmployee(s.reference_no)),await this.fetchAdjustmentData(this.form),this.generateExcel()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},async fetchAdjustmentData(){var s,r;try{const i=(await tt.GenerateHdmfLoan(this.form)).data||{};if(typeof i=="object"&&i!==null){const t=Object.keys(i)[0],e=(r=(s=i[t])==null?void 0:s.items)==null?void 0:r[0];e&&(this.employee={name:e.employee_name}),this.finalData=i}else console.error("Invalid attendance data format:",i)}catch(o){throw console.error("Error fetching attendance data:",o),o}}},mounted(){this.fetchMonthsAndYears(),this.fetchCompany(),this.fetchDealership(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee(),this.fetchPayrollDates()},watch:{"form.payroll_date":{handler:"fetchDealerships",immediate:!0},"form.dealership_id":{handler(s){if(s){const r=this.dealershipsOptions.find(o=>o.value===s);r&&this.fetchEmployee(r.reference_no)}},immediate:!1}}},CA={class:"grid grid-cols-4 gap-2"},FA={key:0,class:"text-[#ec4899]"},DA={key:0,class:"text-[#ec4899]"},AA={key:0,class:"text-[#ec4899]"},SA={class:"w-full mt-2"};function EA(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("SubmitButton");return re(),Le("form",{onSubmit:r[8]||(r[8]=St((..._)=>s.confirmSubmit&&s.confirmSubmit(..._),["prevent"])),class:"space-y-4"},[B("div",CA,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=_=>t.form.company_id=_),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(re(),Le("div",FA,"Company is required")):me("",!0)]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=_=>t.form.dealer_id=_),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Division"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=_=>t.form.division_id=_),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Department"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=_=>t.form.department_id=_),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Position"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=_=>t.form.position_id=_),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Employee"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=_=>t.form.employee_id=_),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Month",isRequired:!0},{default:G(()=>[T(u,{placeholder:"Select a Month",searchable:!0,modelValue:t.form.month,"onUpdate:modelValue":r[6]||(r[6]=_=>t.form.month=_),options:t.MonthsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.month?(re(),Le("div",DA,"Month is required")):me("",!0)]),_:1}),T(p,{label:"Year",isRequired:!0},{default:G(()=>[T(u,{placeholder:"Select a Year",searchable:!0,modelValue:t.form.year,"onUpdate:modelValue":r[7]||(r[7]=_=>t.form.year=_),options:t.YearsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.year?(re(),Le("div",AA,"Year is required")):me("",!0)]),_:1})]),B("div",SA,[T(b,{onClick:e.submitForm,text:"Generate",icon:"streamline:ai-generate-variation-spark",titleTheme:"success-500",btnClass:"text-white bg-primary-500 hover:ring ring-primary-500 ring-offset-1 py-2 px-3 w-full"},null,8,["onClick"])])],32)}const TA=Et(xA,[["render",EA],["__scopeId","data-v-2186e1ab"]]);const RA={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],payroll_dates:[],payrollDateOptions:[],finalData:[],resultData:[],MonthsOptions:[],YearsOptions:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],employeeOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[],cutoff_id:[],month:[],loan_id:[64]},errors:{},state:{isLoadingDealerships:!1,isLoadingPayrollDates:!1,isGenerating:!1,isSubmiting:!1,fetchingPayrollDates:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{fetchMonthsAndYears(){this.MonthsOptions=Object.entries(mt.getMonthMap()).map(([s,r])=>({value:parseInt(s),label:r})),this.YearsOptions=Object.entries(mt.getYearMap()).map(([s,r])=>({value:r,label:r}))},async fetchPayrollDates(){this.state.fetchingPayrollDates=!0,await js.fetchAttendancePosted().then(s=>{if(s.status===200){console.log(s);const r=new Map;s.data.forEach(o=>{r.has(o.payroll_date)||r.set(o.payroll_date,{value:o.payroll_date,label:o.start_date?`${o.payroll_date} ( ${this.$formatDate(o.start_date)} to ${this.$formatDate(o.end_date)} )`:o.payroll_date})}),this.payrollDateOptions=Array.from(r.values())}}).catch(s=>{console.error(s)}).finally(()=>{this.state.fetchingPayrollDates=!1})},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Fr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await es.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await Rs.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generateExcel(){const s=this.dealers.find(t=>t.value===this.form.dealer_id),r=this.companies.find(t=>t.value===this.form.company_id),o=this.MonthsOptions.find(t=>t.value===this.form.month),i=this.YearsOptions.find(t=>t.value===this.form.year);oa(()=>import("./exceljs.min.9ae7dbb2.js").then(t=>t.e),["assets/exceljs.min.9ae7dbb2.js","assets/index.3a0d1437.js","assets/index.3378bb1a.css"]).then(t=>{const e=new t.default.Workbook,u=e.addWorksheet("Employee Loan Report");u.mergeCells("A1:H1");const p=u.getCell("A1");p.value="Pagibig Salary Loan",p.font={size:16,bold:!0},p.alignment={horizontal:"center"},u.mergeCells("A2:H2");const b=u.getCell("A2");b.value=(s==null?void 0:s.label)||(r==null?void 0:r.label),b.font={size:12,bold:!0},b.alignment={horizontal:"center"},u.mergeCells("A3:H3");const _=u.getCell("A3");_.value=o.label+" "+i.label,_.font={size:12,bold:!0},_.alignment={horizontal:"center"},_.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}};const w=[{header:"Pagibig ID",key:"pagibig",width:30},{header:"Employee ID",key:"employee_id",width:30},{header:"Last Name",key:"lastname",width:30},{header:"First Name",key:"firstname",width:40},{header:"Middle Name",key:"middlename",width:20},{header:"TIN",key:"tin",width:20},{header:"Birth Date (MM/DD/YYYY)",key:"birth_date",width:20},{header:"Employee Loan Amortization",key:"amount",width:20}];if(u.columns=w,u.addRow(w.map(N=>N.header)).eachCell(N=>{N.font={bold:!0,color:{argb:"FFFFFFFF"}},N.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF464646"}},N.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),!this.finalData||typeof this.finalData!="object"){console.error("Invalid data structure:",this.finalData);return}let A=0;const E={};Object.entries(this.finalData).forEach(([N,q])=>{q.items&&Array.isArray(q.items)&&q.items.forEach(U=>{const ee=U.dealer||"Unassigned Dealer";E[ee]||(E[ee]={}),E[ee][N]||(E[ee][N]={items:[],total:0}),E[ee][N].items.push(U),E[ee][N].total+=parseFloat(U.amount)||0})}),Object.entries(E).forEach(([N,q])=>{const U=u.addRow([N]);U.eachCell(j=>{j.font={bold:!0,size:16},j.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFBDD7EE"}},j.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),u.mergeCells(`A${U.number}:H${U.number}`);let ee=0;Object.entries(q).forEach(([j,H])=>{const ne=u.addRow([j]);ne.font={bold:!0,size:14},u.mergeCells(`A${ne.number}:H${ne.number}`),H.items&&Array.isArray(H.items)&&H.items.forEach(ve=>{u.addRow([ve.pagibig,ve.employee_id,ve.lastname,ve.firstname,ve.middlename,ve.tin,mt.formatDate(ve.birth_date),mt.formatNumber(ve.amount)||0])});const W=H.total;ee+=W;const Ae=u.addRow(["","","","","","","Total "+j,W]);Ae.font={bold:!0},Ae.getCell(8).numFmt="#,##0.00",u.addRow([])});const ie=u.addRow(["","","","","","","Total for "+N,ee]);ie.font={bold:!0,size:14},ie.getCell(8).numFmt="#,##0.00",ie.eachCell((j,H)=>{H>=7&&(j.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFE2EFDA"}},j.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}),A+=ee,u.addRow([]),u.addRow([])});const M=u.addRow(["","","","","","","Grand Total",A]);return M.font={bold:!0,size:16},M.getCell(8).numFmt="#,##0.00",M.eachCell((N,q)=>{q>=7&&(N.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFFFC000"}},N.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}),e.xlsx.writeBuffer()}).then(t=>{const e=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),u=window.URL.createObjectURL(e),p=document.createElement("a");p.href=u,p.download="PagibigSalaryLoan.xlsx",document.body.appendChild(p),p.click(),window.URL.revokeObjectURL(u),document.body.removeChild(p)}).catch(t=>{console.error("Error generating Excel file:",t),this.$swal.fire({title:"Export Failed",text:"Failed to generate Excel file. Please try again.",icon:"error",timer:3e3})})},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Rr().shape({company_id:Dt().nullable().required("Company is required"),month:Dt().nullable().required("Month is required"),year:Dt().nullable().required("Year is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{const s=this.dealershipsOptions.find(r=>r.value===this.form.dealership_id);s&&(this.form.reference_no=s.reference_no,this.fetchEmployee(s.reference_no)),await this.fetchAdjustmentData(this.form),this.generateExcel()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},async fetchAdjustmentData(){var s,r;try{const i=(await tt.GenerateHdmfLoan(this.form)).data||{};if(typeof i=="object"&&i!==null){const t=Object.keys(i)[0],e=(r=(s=i[t])==null?void 0:s.items)==null?void 0:r[0];e&&(this.employee={name:e.employee_name}),this.finalData=i}else console.error("Invalid attendance data format:",i)}catch(o){throw console.error("Error fetching attendance data:",o),o}}},mounted(){this.fetchMonthsAndYears(),this.fetchCompany(),this.fetchDealership(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee(),this.fetchPayrollDates()},watch:{"form.payroll_date":{handler:"fetchDealerships",immediate:!0},"form.dealership_id":{handler(s){if(s){const r=this.dealershipsOptions.find(o=>o.value===s);r&&this.fetchEmployee(r.reference_no)}},immediate:!1}}},kA={class:"grid grid-cols-4 gap-2"},LA={key:0,class:"text-[#ec4899]"},MA={key:0,class:"text-[#ec4899]"},OA={key:0,class:"text-[#ec4899]"},PA={class:"w-full mt-2"};function NA(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("SubmitButton");return re(),Le("form",{onSubmit:r[8]||(r[8]=St((..._)=>s.confirmSubmit&&s.confirmSubmit(..._),["prevent"])),class:"space-y-4"},[B("div",kA,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=_=>t.form.company_id=_),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(re(),Le("div",LA,"Company is required")):me("",!0)]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=_=>t.form.dealer_id=_),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Division"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=_=>t.form.division_id=_),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Department"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=_=>t.form.department_id=_),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Position"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=_=>t.form.position_id=_),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Employee"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=_=>t.form.employee_id=_),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Month",isRequired:!0},{default:G(()=>[T(u,{placeholder:"Select a Month",searchable:!0,modelValue:t.form.month,"onUpdate:modelValue":r[6]||(r[6]=_=>t.form.month=_),options:t.MonthsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.month?(re(),Le("div",MA,"Month is required")):me("",!0)]),_:1}),T(p,{label:"Year",isRequired:!0},{default:G(()=>[T(u,{placeholder:"Select a Year",searchable:!0,modelValue:t.form.year,"onUpdate:modelValue":r[7]||(r[7]=_=>t.form.year=_),options:t.YearsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.year?(re(),Le("div",OA,"Year is required")):me("",!0)]),_:1})]),B("div",PA,[T(b,{onClick:e.submitForm,text:"Generate",icon:"streamline:ai-generate-variation-spark",titleTheme:"success-500",btnClass:"text-white bg-primary-500 hover:ring ring-primary-500 ring-offset-1 py-2 px-3 w-full"},null,8,["onClick"])])],32)}const IA=Et(RA,[["render",NA],["__scopeId","data-v-35f0a247"]]);const VA={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],payroll_dates:[],payrollDateOptions:[],finalData:[],resultData:[],MonthsOptions:[],YearsOptions:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],employeeOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[],cutoff_id:[],month:[],loan_id:[65]},errors:{},state:{isLoadingDealerships:!1,isLoadingPayrollDates:!1,isGenerating:!1,isSubmiting:!1,fetchingPayrollDates:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{fetchMonthsAndYears(){this.MonthsOptions=Object.entries(mt.getMonthMap()).map(([s,r])=>({value:parseInt(s),label:r})),this.YearsOptions=Object.entries(mt.getYearMap()).map(([s,r])=>({value:r,label:r}))},async fetchPayrollDates(){this.state.fetchingPayrollDates=!0,await js.fetchAttendancePosted().then(s=>{if(s.status===200){console.log(s);const r=new Map;s.data.forEach(o=>{r.has(o.payroll_date)||r.set(o.payroll_date,{value:o.payroll_date,label:o.start_date?`${o.payroll_date} ( ${this.$formatDate(o.start_date)} to ${this.$formatDate(o.end_date)} )`:o.payroll_date})}),this.payrollDateOptions=Array.from(r.values())}}).catch(s=>{console.error(s)}).finally(()=>{this.state.fetchingPayrollDates=!1})},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Fr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await es.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await Rs.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generateExcel(){const s=this.dealers.find(t=>t.value===this.form.dealer_id),r=this.companies.find(t=>t.value===this.form.company_id),o=this.MonthsOptions.find(t=>t.value===this.form.month),i=this.YearsOptions.find(t=>t.value===this.form.year);oa(()=>import("./exceljs.min.9ae7dbb2.js").then(t=>t.e),["assets/exceljs.min.9ae7dbb2.js","assets/index.3a0d1437.js","assets/index.3378bb1a.css"]).then(t=>{const e=new t.default.Workbook,u=e.addWorksheet("SSS Calamity Loan");u.mergeCells("A1:F1"),u.getCell("A1").value="SSS Calamity Loan";const p=u.getCell("A1");p.font={size:16,bold:!0},p.alignment={horizontal:"center"},u.mergeCells("A2:F2");const b=u.getCell("A2");b.value=(s==null?void 0:s.label)||(r==null?void 0:r.label),b.font={size:12,bold:!0},b.alignment={horizontal:"center"},u.mergeCells("A3:F3");const _=u.getCell("A3");if(_.value=o.label+" "+i.label,_.font={size:12,bold:!0},_.alignment={horizontal:"center"},_.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}},u.columns=[{key:"empId",width:30},{key:"lastname",width:30},{key:"firstname",width:15},{key:"middlename",width:15},{key:"sss",width:15},{key:"amoungPaid",width:15}],u.addRow(["Employee ID","Last Name","First Name","Middle Name","SSS","Amount Paid"]).eachCell(M=>{M.font={bold:!0,color:{argb:"FFFFFFFF"}},M.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF464646"}},M.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),!this.finalData||typeof this.finalData!="object"){console.error("Invalid data structure:",this.finalData);return}let S=0;const A={};Object.entries(this.finalData).forEach(([M,N])=>{N.items&&Array.isArray(N.items)&&N.items.forEach(q=>{const U=q.dealer||"Unassigned Dealer";A[U]||(A[U]={}),A[U][M]||(A[U][M]={items:[],total:0}),A[U][M].items.push(q),A[U][M].total+=parseFloat(q.amount)||0})}),Object.entries(A).forEach(([M,N])=>{const q=u.addRow([M]);q.eachCell(ie=>{ie.font={bold:!0,size:16},ie.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFBDD7EE"}},ie.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),u.mergeCells(`A${q.number}:F${q.number}`);let U=0;Object.entries(N).forEach(([ie,j])=>{const H=u.addRow([ie]);H.font={bold:!0,size:14},u.mergeCells(`A${H.number}:F${H.number}`),j.items&&Array.isArray(j.items)&&j.items.forEach(Ae=>{u.addRow([Ae.employee_id,Ae.lastname,Ae.firstname,Ae.middlename,Ae.sss,mt.formatNumber(Ae.amount)||0])});const ne=j.total;U+=ne;const W=u.addRow(["","","","","Total "+ie,mt.formatNumber(ne)]);W.font={bold:!0},W.getCell(6).numFmt="#,##0.00",u.addRow([])});const ee=u.addRow(["","","","","Total for "+M,mt.formatNumber(U)]);ee.font={bold:!0,size:14},ee.getCell(6).numFmt="#,##0.00",ee.eachCell((ie,j)=>{j>=5&&(ie.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFE2EFDA"}},ie.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}),S+=U,u.addRow([]),u.addRow([])});const E=u.addRow(["","","","","Grand Total",mt.formatNumber(S)]);return E.font={bold:!0,size:16},E.getCell(6).numFmt="#,##0.00",E.eachCell((M,N)=>{N>=5&&(M.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFFFC000"}},M.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}),e.xlsx.writeBuffer()}).then(t=>{const e=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),u=window.URL.createObjectURL(e),p=document.createElement("a");p.href=u,p.download="SSSCalamityLoan.xlsx",document.body.appendChild(p),p.click(),window.URL.revokeObjectURL(u),document.body.removeChild(p)}).catch(t=>{console.error("Error generating Excel file:",t),this.$swal.fire({title:"Export Failed",text:"Failed to generate Excel file. Please try again.",icon:"error",timer:3e3})})},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Rr().shape({company_id:Dt().nullable().required("Company is required"),month:Dt().nullable().required("Month is required"),year:Dt().nullable().required("Year is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{const s=this.dealershipsOptions.find(r=>r.value===this.form.dealership_id);s&&(this.form.reference_no=s.reference_no,this.fetchEmployee(s.reference_no)),await this.fetchAdjustmentData(this.form),this.generateExcel()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},async fetchAdjustmentData(){var s,r;try{const i=(await tt.GenerateHdmfLoan(this.form)).data||{};if(typeof i=="object"&&i!==null){const t=Object.keys(i)[0],e=(r=(s=i[t])==null?void 0:s.items)==null?void 0:r[0];e&&(this.employee={name:e.employee_name}),this.finalData=i}else console.error("Invalid attendance data format:",i)}catch(o){throw console.error("Error fetching attendance data:",o),o}}},mounted(){this.fetchMonthsAndYears(),this.fetchCompany(),this.fetchDealership(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee(),this.fetchPayrollDates()},watch:{"form.payroll_date":{handler:"fetchDealerships",immediate:!0},"form.dealership_id":{handler(s){if(s){const r=this.dealershipsOptions.find(o=>o.value===s);r&&this.fetchEmployee(r.reference_no)}},immediate:!1}}},BA={class:"grid grid-cols-4 gap-2"},UA={key:0,class:"text-[#ec4899]"},zA={key:0,class:"text-[#ec4899]"},GA={key:0,class:"text-[#ec4899]"},jA={class:"w-full mt-2"};function WA(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("SubmitButton");return re(),Le("form",{onSubmit:r[8]||(r[8]=St((..._)=>s.confirmSubmit&&s.confirmSubmit(..._),["prevent"])),class:"space-y-4"},[B("div",BA,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=_=>t.form.company_id=_),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(re(),Le("div",UA,"Company is required")):me("",!0)]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=_=>t.form.dealer_id=_),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Division"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=_=>t.form.division_id=_),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Department"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=_=>t.form.department_id=_),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Position"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=_=>t.form.position_id=_),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Employee"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=_=>t.form.employee_id=_),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Month",isRequired:!0},{default:G(()=>[T(u,{placeholder:"Select a Month",searchable:!0,modelValue:t.form.month,"onUpdate:modelValue":r[6]||(r[6]=_=>t.form.month=_),options:t.MonthsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.month?(re(),Le("div",zA,"Month is required")):me("",!0)]),_:1}),T(p,{label:"Year",isRequired:!0},{default:G(()=>[T(u,{placeholder:"Select a Year",searchable:!0,modelValue:t.form.year,"onUpdate:modelValue":r[7]||(r[7]=_=>t.form.year=_),options:t.YearsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.year?(re(),Le("div",GA,"Year is required")):me("",!0)]),_:1})]),B("div",jA,[T(b,{onClick:e.submitForm,text:"Generate",icon:"streamline:ai-generate-variation-spark",titleTheme:"primary-500",btnClass:"text-white bg-primary-500 hover:ring ring-primary-500 ring-offset-1 py-2 px-3 w-full"},null,8,["onClick"])])],32)}const HA=Et(VA,[["render",WA],["__scopeId","data-v-a6ed8056"]]);const YA={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],payroll_dates:[],payrollDateOptions:[],finalData:[],resultData:[],MonthsOptions:[],YearsOptions:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],employeeOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[],cutoff_id:[],month:[],loan_id:[65]},errors:{},state:{isLoadingDealerships:!1,isLoadingPayrollDates:!1,isGenerating:!1,isSubmiting:!1,fetchingPayrollDates:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{fetchMonthsAndYears(){this.MonthsOptions=Object.entries(mt.getMonthMap()).map(([s,r])=>({value:parseInt(s),label:r})),this.YearsOptions=Object.entries(mt.getYearMap()).map(([s,r])=>({value:r,label:r}))},async fetchPayrollDates(){this.state.fetchingPayrollDates=!0,await js.fetchAttendancePosted().then(s=>{if(s.status===200){console.log(s);const r=new Map;s.data.forEach(o=>{r.has(o.payroll_date)||r.set(o.payroll_date,{value:o.payroll_date,label:o.start_date?`${o.payroll_date} ( ${this.$formatDate(o.start_date)} to ${this.$formatDate(o.end_date)} )`:o.payroll_date})}),this.payrollDateOptions=Array.from(r.values())}}).catch(s=>{console.error(s)}).finally(()=>{this.state.fetchingPayrollDates=!1})},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Fr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await es.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await Rs.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generateExcel(){const s=this.dealers.find(t=>t.value===this.form.dealer_id),r=this.companies.find(t=>t.value===this.form.company_id),o=this.MonthsOptions.find(t=>t.value===this.form.month),i=this.YearsOptions.find(t=>t.value===this.form.year);oa(()=>import("./exceljs.min.9ae7dbb2.js").then(t=>t.e),["assets/exceljs.min.9ae7dbb2.js","assets/index.3a0d1437.js","assets/index.3378bb1a.css"]).then(t=>{const e=new t.default.Workbook,u=e.addWorksheet("SSS Calamity Loan");u.mergeCells("A1:F1"),u.getCell("A1").value="SSS Calamity Loan";const p=u.getCell("A1");p.font={size:16,bold:!0},p.alignment={horizontal:"center"},u.mergeCells("A2:F2");const b=u.getCell("A2");b.value=(s==null?void 0:s.label)||(r==null?void 0:r.label),b.font={size:12,bold:!0},b.alignment={horizontal:"center"},u.mergeCells("A3:F3");const _=u.getCell("A3");if(_.value=o.label+" "+i.label,_.font={size:12,bold:!0},_.alignment={horizontal:"center"},_.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}},u.columns=[{key:"empId",width:30},{key:"lastname",width:30},{key:"firstname",width:15},{key:"middlename",width:15},{key:"sss",width:15},{key:"amoungPaid",width:15}],u.addRow(["Employee ID","Last Name","First Name","Middle Name","SSS","Amount Paid"]).eachCell(M=>{M.font={bold:!0,color:{argb:"FFFFFFFF"}},M.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF464646"}},M.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),!this.finalData||typeof this.finalData!="object"){console.error("Invalid data structure:",this.finalData);return}let S=0;const A={};Object.entries(this.finalData).forEach(([M,N])=>{N.items&&Array.isArray(N.items)&&N.items.forEach(q=>{const U=q.dealer||"Unassigned Dealer";A[U]||(A[U]={}),A[U][M]||(A[U][M]={items:[],total:0}),A[U][M].items.push(q),A[U][M].total+=parseFloat(q.amount)||0})}),Object.entries(A).forEach(([M,N])=>{const q=u.addRow([M]);q.eachCell(ie=>{ie.font={bold:!0,size:16},ie.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFBDD7EE"}},ie.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),u.mergeCells(`A${q.number}:F${q.number}`);let U=0;Object.entries(N).forEach(([ie,j])=>{const H=u.addRow([ie]);H.font={bold:!0,size:14},u.mergeCells(`A${H.number}:F${H.number}`),j.items&&Array.isArray(j.items)&&j.items.forEach(Ae=>{u.addRow([Ae.employee_id,Ae.lastname,Ae.firstname,Ae.middlename,Ae.sss,mt.formatNumber(Ae.amount)||0])});const ne=j.total;U+=ne;const W=u.addRow(["","","","","Total "+ie,mt.formatNumber(ne)]);W.font={bold:!0},W.getCell(6).numFmt="#,##0.00",u.addRow([])});const ee=u.addRow(["","","","","Total for "+M,mt.formatNumber(U)]);ee.font={bold:!0,size:14},ee.getCell(6).numFmt="#,##0.00",ee.eachCell((ie,j)=>{j>=5&&(ie.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFE2EFDA"}},ie.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}),S+=U,u.addRow([]),u.addRow([])});const E=u.addRow(["","","","","Grand Total",mt.formatNumber(S)]);return E.font={bold:!0,size:16},E.getCell(6).numFmt="#,##0.00",E.eachCell((M,N)=>{N>=5&&(M.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFFFC000"}},M.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}),e.xlsx.writeBuffer()}).then(t=>{const e=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),u=window.URL.createObjectURL(e),p=document.createElement("a");p.href=u,p.download="SSSCalamityLoan.xlsx",document.body.appendChild(p),p.click(),window.URL.revokeObjectURL(u),document.body.removeChild(p)}).catch(t=>{console.error("Error generating Excel file:",t),this.$swal.fire({title:"Export Failed",text:"Failed to generate Excel file. Please try again.",icon:"error",timer:3e3})})},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Rr().shape({company_id:Dt().nullable().required("Company is required"),month:Dt().nullable().required("Month is required"),year:Dt().nullable().required("Year is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{const s=this.dealershipsOptions.find(r=>r.value===this.form.dealership_id);s&&(this.form.reference_no=s.reference_no,this.fetchEmployee(s.reference_no)),await this.fetchAdjustmentData(this.form),this.generateExcel()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},async fetchAdjustmentData(){var s,r;try{const i=(await tt.GenerateHdmfLoan(this.form)).data||{};if(typeof i=="object"&&i!==null){const t=Object.keys(i)[0],e=(r=(s=i[t])==null?void 0:s.items)==null?void 0:r[0];e&&(this.employee={name:e.employee_name}),this.finalData=i}else console.error("Invalid attendance data format:",i)}catch(o){throw console.error("Error fetching attendance data:",o),o}}},mounted(){this.fetchMonthsAndYears(),this.fetchCompany(),this.fetchDealership(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee(),this.fetchPayrollDates()},watch:{"form.payroll_date":{handler:"fetchDealerships",immediate:!0},"form.dealership_id":{handler(s){if(s){const r=this.dealershipsOptions.find(o=>o.value===s);r&&this.fetchEmployee(r.reference_no)}},immediate:!1}}},qA={class:"grid grid-cols-4 gap-2"},KA={key:0,class:"text-[#ec4899]"},JA={key:0,class:"text-[#ec4899]"},XA={key:0,class:"text-[#ec4899]"},QA={class:"w-full mt-2"};function ZA(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("SubmitButton");return re(),Le("form",{onSubmit:r[8]||(r[8]=St((..._)=>s.confirmSubmit&&s.confirmSubmit(..._),["prevent"])),class:"space-y-4"},[B("div",qA,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=_=>t.form.company_id=_),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(re(),Le("div",KA,"Company is required")):me("",!0)]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=_=>t.form.dealer_id=_),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Division"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=_=>t.form.division_id=_),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Department"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=_=>t.form.department_id=_),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Position"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=_=>t.form.position_id=_),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Employee"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=_=>t.form.employee_id=_),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Month",isRequired:!0},{default:G(()=>[T(u,{placeholder:"Select a Month",searchable:!0,modelValue:t.form.month,"onUpdate:modelValue":r[6]||(r[6]=_=>t.form.month=_),options:t.MonthsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.month?(re(),Le("div",JA,"Month is required")):me("",!0)]),_:1}),T(p,{label:"Year",isRequired:!0},{default:G(()=>[T(u,{placeholder:"Select a Year",searchable:!0,modelValue:t.form.year,"onUpdate:modelValue":r[7]||(r[7]=_=>t.form.year=_),options:t.YearsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.year?(re(),Le("div",XA,"Year is required")):me("",!0)]),_:1})]),B("div",QA,[T(b,{onClick:e.submitForm,text:"Generate",icon:"streamline:ai-generate-variation-spark",titleTheme:"primary-500",btnClass:"text-white bg-primary-500 hover:ring ring-primary-500 ring-offset-1 py-2 px-3 w-full"},null,8,["onClick"])])],32)}const $A=Et(YA,[["render",ZA],["__scopeId","data-v-74a9a057"]]);const eS={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],payroll_dates:[],payrollDateOptions:[],finalData:[],resultData:[],MonthsOptions:[],YearsOptions:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],employeeOptions:[],loanOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[],cutoff_id:[],month:[],loan_id:[]},errors:{},state:{isLoadingDealerships:!1,isLoadingPayrollDates:!1,isGenerating:!1,isSubmiting:!1,fetchingPayrollDates:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchLoanType(){this.state.isLoanLoading=!0,await Fm.fetchRecords().then(s=>{s.status==200&&(this.loanOptions=s.data.data.map(r=>({value:r.id,label:r.name})))}).catch(s=>{console.log(s)}),this.state.isLoanLoading=!1},async fetchPayrollDates(){this.state.fetchingPayrollDates=!0,await js.fetchAttendancePosted().then(s=>{if(s.status===200){console.log(s);const r=new Map;s.data.forEach(o=>{r.has(o.payroll_date)||r.set(o.payroll_date,{value:o.payroll_date,label:o.start_date?`${o.payroll_date} ( ${this.$formatDate(o.start_date)} to ${this.$formatDate(o.end_date)} )`:o.payroll_date})}),this.payrollDateOptions=Array.from(r.values())}}).catch(s=>{console.error(s)}).finally(()=>{this.state.fetchingPayrollDates=!1})},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Fr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords({dealership:this.form.company_id});s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await es.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await Rs.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generatePayrollSummary(s){var ie;const r=Ue.utils.book_new();this.dealers.find(j=>j.value===this.form.dealer_id);const o=this.companies.find(j=>j.value===this.form.company_id),i={};s.forEach(j=>{var W;const H=j.employee.dealer_id,ne=((W=j.employee.dealership)==null?void 0:W.name)||"Unknown Dealership";i[H]||(i[H]={name:ne,employees:[]}),i[H].employees.push(j)});const t=[[o.label,"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],["PAYROLL REGISTER","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],["Period Covered: January 01, 2025 - December 31, 2025","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""]],e=[["","","","","","","","","","","","","","","","","","","","","","","","","Employee's Share","","","Employer's Share","","","","Benefits and Adjustments on","","","","","","","Net Pay","","","","Monthly Remittance Return on Income Taxes Withheld on Compensation (BIR form 1601-C)"],["Pay period","I.D. number","Employee","Department","Position (Job Title)","Tax Application Code","TIN NO.","General Ledger Chart Of Account","Salary Rate","Work Days","Work Hours","Basic Pay","Cola","Leave","Overtime","Holiday","Rest day","Night Diff","Absent","Late","Undertime","Basic Salary Adjustment","Total Basic Salary Pay","Taxable Commission and Incentives","SSS","Philhealth","Pagibig","SSS/EC","Philhealth","Pagibig","Withholding Tax","Non-Taxable Other Benefits","Adjustments on Non-taxable allowance","Statutory deduction add-backs","Total Non-Taxable Allowance/Other Benefits","Loans","Contributions","Deductions","Net Pay","No ATM account (Check Payment)","Hold pay","Net Pay after check issue and holdpay","TOTAL AMOUNT OF COMPENSATION","MINIMUM WAGE EARNER","13 MONTH PAY","SSS, GSIS, PHIC, HDMF MANDATORY CONTRIBUTIONS & UNION DUES","OTHER NON-TAXABLE COMPENSATION","TOTAL NON-TAXABLE COMPENSATION","TAXABLE BASIC SALARY COMPENSATION","OTHER FORMS OF COMPENSATION","TOTAL TAXABLE COMPENSATION","TAX WITHHELD"]],u=[["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""," ","","","","","","","","","","Item no. 14","Item no. 15","Item no. 17","Item no. 19","Item no. 20","Item no. 21","Item no. 22-a","Item no. 22-a","Item no. 22","Item no. 25"]],p=(j,H)=>{let ne=0;return j.forEach(W=>{if(W[H]&&W[H]!=="-"){let Ae=W[H];typeof Ae=="string"&&(Ae=Ae.replace(/,/g,"").replace(/[^\d.-]/g,""));const ve=parseFloat(Ae);isNaN(ve)||(ne+=ve)}}),ne>0?ne:"-"};let b=[],_=[];Object.values(i).forEach(j=>{const H=Array(52).fill("");H[0]=j.name.toUpperCase(),b.push(H);const ne=j.employees.map(W=>{var Mt,Lt,Er,At,Se,Q,Ce,Te,xe,oe;const ve=W.payrolls[0].details.adjustments.filter(pe=>pe.payroll_item&&pe.payroll_item.name&&(pe.payroll_item.name.toLowerCase().includes("commission")||pe.payroll_item.name.toLowerCase().includes("incentive"))&&pe.payroll_item.taxable===1).reduce((pe,se)=>pe+parseFloat(se.amount||0),0);let it=0,ft=0;W.payrolls[0].details.benefits.filter(pe=>pe.benefit_id!=1).map(pe=>{it+=parseFloat(pe.total_amount)}),W.payrolls[0].details.benefits.map(pe=>{ft+=parseFloat(pe.total_amount)});const Je=parseFloat(W.payrolls[0].salary_rate)<=16823.75?parseFloat(W.payrolls[0].gross_pay)-parseFloat(W.payrolls[0].sss_employee_share)-parseFloat(W.payrolls[0].philhealth_contribution)-parseFloat(W.payrolls[0].pagibig_contribution):"-",ut=parseFloat(W.payrolls[0].sss_employee_share)+parseFloat(W.payrolls[0].philhealth_contribution)+parseFloat(W.payrolls[0].pagibig_contribution),bt=((Lt=(Mt=W.payrolls[0])==null?void 0:Mt.details)==null?void 0:Lt.shields)||{},st=parseFloat(bt.tax||0)+parseFloat(bt.sss||0)+parseFloat(bt.pagibig||0)+parseFloat(bt.philhealth||0);return W.employee.employee_id=="2672"&&(console.log("tax",ve),console.log("manda",Math.abs(Je+ut-Math.abs(W.payrolls[0].gross_pay))||0)),[mt.formatDate(W.payrolls[0].payroll_date)||"",W.employee.employee_id||"",W.employee.lastname+", "+W.employee.firstname||"",((Er=W.employee.department)==null?void 0:Er.name)||"",((At=W.employee.position)==null?void 0:At.name)||"",W.employee.salary_and_wages.tax_application==1?"Base on table":W.employee.salary_and_wages.tax_application==2?"No Tax":W.employee.salary_and_wages.tax_application==3?"Force Tax":"",((Se=W.employee.personal_information)==null?void 0:Se.tin)==0?0:((Q=W.employee.personal_information)==null?void 0:Q.tin)||"",W.gl_account||0,W.payrolls[0].salary_rate==0?0:mt.formatNumber(W.payrolls[0].salary_rate)||0,((Ce=W==null?void 0:W.attendance[0])==null?void 0:Ce.work_days)==0?"-":mt.formatNumber((Te=W==null?void 0:W.attendance[0])==null?void 0:Te.work_days)||"-",((xe=W==null?void 0:W.attendance[0])==null?void 0:xe.work_hours)==0?"-":mt.formatNumber((oe=W==null?void 0:W.attendance[0])==null?void 0:oe.work_hours)||"-",W.payrolls[0].basic_pay==0?0:mt.formatNumber(W.payrolls[0].basic_pay)||0,W.cola||0,W.payrolls[0].leave_pay==0?0:mt.formatNumber(W.payrolls[0].leave_pay)||0,W.payrolls[0].overtime_total==0?0:mt.formatNumber(W.payrolls[0].overtime_total)||0,W.payrolls[0].holiday_total==0?0:mt.formatNumber(W.payrolls[0].holiday_total)||0,W.payrolls[0].restday_total==0?0:mt.formatNumber(W.payrolls[0].restday_total)||0,W.payrolls[0].night_diff_total==0?0:mt.formatNumber(W.payrolls[0].night_diff_total)||0,W.payrolls[0].absent_amount==0?0:mt.formatNumber(W.payrolls[0].absent_amount)||0,W.payrolls[0].late_amount==0?0:mt.formatNumber(W.payrolls[0].late_amount)||0,W.payrolls[0].undertime_amount==0?0:mt.formatNumber(W.payrolls[0].undertime_amount)||0,W.payrolls[0].adjustments_total==0?0:mt.formatNumber(W.payrolls[0].adjustments_total)||0,W.payrolls[0].gross_pay==0?"0":mt.formatNumber(parseFloat(W.payrolls[0].gross_pay||0)+parseFloat(W.payrolls[0].adjustments_total||0)),ve||0,W.payrolls[0].sss_employee_share==0?0:mt.formatNumber(W.payrolls[0].sss_employee_share)||0,W.payrolls[0].philhealth_contribution==0?0:mt.formatNumber(W.payrolls[0].philhealth_contribution)||0,W.payrolls[0].pagibig_contribution==0?0:mt.formatNumber(W.payrolls[0].pagibig_contribution)||0,W.payrolls[0].sss_employer_share==0?0:mt.formatNumber(W.payrolls[0].sss_employer_share)||0,W.payrolls[0].philhealth_contribution==0?0:mt.formatNumber(W.payrolls[0].philhealth_contribution)||0,W.payrolls[0].pagibig_contribution_employer==0?0:mt.formatNumber(W.payrolls[0].pagibig_contribution_employer)||0,W.payrolls[0].withholding_tax==0?0:mt.formatNumber(W.payrolls[0].withholding_tax)||0,ft==0?0:mt.formatNumber(ft)||0,W.non_taxable_adjustments||0,parseFloat(st)||0,it==0?0:mt.formatNumber(parseFloat(it||0)+parseFloat(st||0)),W.payrolls[0].loans_total==0?0:mt.formatNumber(W.payrolls[0].loans_total)||0,W.payrolls[0].payment_contributions_total==0?0:mt.formatNumber(W.payrolls[0].payment_contributions_total)||0,W.payrolls[0].other_deductions==0?0:mt.formatNumber(W.payrolls[0].other_deductions)||0,W.payrolls[0].net_pay==0?0:mt.formatNumber(W.payrolls[0].net_pay)||0,W.no_atm_amount||0,W.hold_pay_amount||0,W.payrolls[0].net_pay==0?0:mt.formatNumber(W.payrolls[0].net_pay)||0,W.payrolls[0].gross_pay==0?0:mt.formatNumber(W.payrolls[0].gross_pay)||0,Je||0,0,ut==0?0:mt.formatNumber(ut)||0,0,Math.abs(Je+ut)||0,Math.abs(Je+ut-W.payrolls[0].gross_pay)||0,ve||0,(ve||0)+Math.abs(Je+ut-W.payrolls[0].gross_pay||0),W.payrolls[0].withholding_tax==0?0:mt.formatNumber(W.payrolls[0].withholding_tax)||0]});if(b.push(...ne),ne.length>0){const W=Array(52).fill("");W[0]=`${j.name} TOTAL`;for(let Ae=8;Ae<=51;Ae++){const ve=p(ne,Ae);W[Ae]=ve==="-"?0:mt.formatNumber(ve)}b.push(W),_.push(W),b.push(Array(52).fill(""))}});const w=Array(52).fill("");w[0]="GRAND TOTAL";for(let j=8;j<=51;j++){const H=p(_,j);w[j]=H==="-"?0:mt.formatNumber(H)}const S=[...t,...e,...u,...b,w],A=Ue.utils.aoa_to_sheet(S),E=[{wch:20},{wch:10},{wch:20},{wch:15},{wch:20},{wch:15},{wch:15},{wch:20},{wch:12},{wch:10},{wch:10},{wch:12},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:15},{wch:15},{wch:15},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:15},{wch:15},{wch:15},{wch:15},{wch:15},{wch:10},{wch:12},{wch:12},{wch:12},{wch:12},{wch:10},{wch:15},{wch:15},{wch:15},{wch:15},{wch:15},{wch:15},{wch:15},{wch:15},{wch:15},{wch:15},{wch:15}];A["!cols"]=E,A["!merges"]=[{s:{r:0,c:0},e:{r:0,c:10}},{s:{r:1,c:0},e:{r:1,c:10}},{s:{r:2,c:0},e:{r:2,c:10}},{s:{r:4,c:24},e:{r:4,c:26}},{s:{r:4,c:27},e:{r:4,c:29}},{s:{r:4,c:31},e:{r:4,c:34}},{s:{r:4,c:38},e:{r:4,c:41}},{s:{r:4,c:42},e:{r:4,c:51}}];for(let j=0;j<=41;j++){const H=Ue.utils.encode_cell({r:0,c:j}),ne=Ue.utils.encode_cell({r:1,c:j}),W=Ue.utils.encode_cell({r:2,c:j});A[H]=A[H]||{v:""},A[ne]=A[ne]||{v:""},A[W]=A[W]||{v:""},A[H].s={font:{bold:!0,sz:14},alignment:{horizontal:"center"}},A[ne].s={font:{bold:!0,sz:14},alignment:{horizontal:"center"}},A[W].s={font:{bold:!0,sz:12},alignment:{horizontal:"center"}}}for(let j=0;j<=51;j++){const H=Ue.utils.encode_cell({r:4,c:j});A[H]=A[H]||{v:""},A[H].s={font:{bold:!0,sz:11},fill:{fgColor:{rgb:"B4C6E7"}},alignment:{horizontal:"center",vertical:"center",wrapText:!0},border:{top:{style:"thin"},right:{style:"thin"},bottom:{style:"thin"},left:{style:"thin"}}}}for(let j=0;j<=51;j++){const H=Ue.utils.encode_cell({r:5,c:j});A[H]=A[H]||{v:""},A[H].s={font:{bold:!0,sz:11},fill:{fgColor:{rgb:"DDEBF7"}},alignment:{horizontal:"center",vertical:"center",wrapText:!0},border:{top:{style:"thin"},right:{style:"thin"},bottom:{style:"thin"},left:{style:"thin"}}}}for(let j=24;j<=26;j++){const H=Ue.utils.encode_cell({r:4,c:j});A[H].s={...A[H].s,fill:{fgColor:{rgb:"BDD7EE"}}}}for(let j=27;j<=29;j++){const H=Ue.utils.encode_cell({r:4,c:j});A[H].s={...A[H].s,fill:{fgColor:{rgb:"BDD7EE"}}}}for(let j=31;j<=34;j++){const H=Ue.utils.encode_cell({r:4,c:j});A[H].s={...A[H].s,fill:{fgColor:{rgb:"BDD7EE"}}}}for(let j=38;j<=41;j++){const H=Ue.utils.encode_cell({r:4,c:j});A[H].s={...A[H].s,fill:{fgColor:{rgb:"C6E0B4"}}}}for(let j=42;j<=51;j++){const H=Ue.utils.encode_cell({r:4,c:j});A[H].s={...A[H].s,fill:{fgColor:{rgb:"92D050"}}}}let M=6;Object.values(i).forEach(j=>{const H=Ue.utils.encode_cell({r:M+1,c:0});if(A[H].s={font:{bold:!0,sz:12,color:{rgb:"FFFFFF"}},fill:{fgColor:{rgb:"4472C4"}},alignment:{horizontal:"left"},border:{top:{style:"thin"},right:{style:"thin"},bottom:{style:"thin"},left:{style:"thin"}}},A["!merges"].push({s:{r:M,c:0},e:{r:M,c:51}}),M++,M+=j.employees.length,j.employees.length>0){for(let ne=0;ne<=51;ne++){const W=Ue.utils.encode_cell({r:M+1,c:ne});A[W]=A[W]||{v:""},A[W].s={font:{bold:!0},fill:{fgColor:{rgb:"D9E1F2"}},border:{top:{style:"thin"},right:{style:"thin"},bottom:{style:"thin"},left:{style:"thin"}}},ne>=8&&ne<=51&&(A[W].s={...A[W].s,numFmt:"#,##0.00",alignment:{horizontal:"right"}})}M++,M++}});for(let j=6;j<S.length-1;j++){const H=A[Ue.utils.encode_cell({r:j,c:0})];if(!(H&&H.s&&(H.s.fill||(ie=H.s.font)!=null&&ie.bold)))for(let ne=0;ne<=51;ne++){const W=Ue.utils.encode_cell({r:j,c:ne});if(A[W]=A[W]||{v:""},ne===0&&(!A[W].v||A[W].v===""))break;A[W].s={border:{top:{style:"thin"},right:{style:"thin"},bottom:{style:"thin"},left:{style:"thin"}}},ne>=8&&ne<=51&&(A[W].s={...A[W].s,numFmt:"#,##0.00",alignment:{horizontal:"right"}})}}const N=S.length-1;for(let j=0;j<=51;j++){const H=Ue.utils.encode_cell({r:N,c:j});A[H]&&(A[H].s={font:{bold:!0,sz:12},border:{top:{style:"thin"},right:{style:"thin"},bottom:{style:"double"},left:{style:"thin"}},fill:{fgColor:{rgb:"FFE699"}}},j>=8&&j<=51&&(A[H].s={...A[H].s,numFmt:"#,##0.00",alignment:{horizontal:"right"}}))}Ue.utils.book_append_sheet(r,A,"Payroll Register");const q=`GCASI_Payroll_Register_${this.form.payroll_date||"report"}.xlsx`,U=Ue.write(r,{bookType:"xlsx",type:"array"}),ee=new Blob([U],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});if(typeof document<"u"){const j=URL.createObjectURL(ee),H=document.createElement("a");H.href=j,H.download=q,document.body.appendChild(H),H.click(),document.body.removeChild(H)}return{filename:q,workbook:r}},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Rr().shape({company_id:Dt().nullable().required("Company is required"),cutoff_id:Dt().nullable().required("CutOff is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{let s=[];await tt.GeneratePayrollSummary(this.form).then(r=>{s=r.data}).finally(()=>{this.state.isLoading=!1}),this.generatePayrollSummary(s)}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchCompany(),this.fetchPayrollDates(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee(),this.fetchLoanType()},watch:{"form.company_id":{handler:"fetchDealership",immediate:!0}}},tS={class:"grid grid-cols-4 gap-2"},rS={key:0,class:"text-[#ec4899]"},sS={key:0,class:"text-[#ec4899]"},aS={class:"w-full mt-2"};function oS(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("SubmitButton");return re(),Le("form",{onSubmit:r[7]||(r[7]=St((..._)=>s.confirmSubmit&&s.confirmSubmit(..._),["prevent"])),class:"space-y-4"},[B("div",tS,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=_=>t.form.company_id=_),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(re(),Le("div",rS," Company is required ")):me("",!0)]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=_=>t.form.dealer_id=_),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Division"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=_=>t.form.division_id=_),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Department"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=_=>t.form.department_id=_),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Position"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=_=>t.form.position_id=_),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Employee"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=_=>t.form.employee_id=_),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Cutoff",isRequired:!0},{default:G(()=>[T(u,{placeholder:"Select Cutoff",searchable:!0,modelValue:t.form.cutoff_id,"onUpdate:modelValue":r[6]||(r[6]=_=>t.form.cutoff_id=_),options:t.payrollDateOptions,class:"form-multiselect w-full",loading:t.state.fetchingPayrollDates},null,8,["modelValue","options","loading"]),t.errors.cutoff_id?(re(),Le("div",sS," Cutoff is required ")):me("",!0)]),_:1})]),B("div",aS,[T(b,{onClick:e.submitForm,text:"Generate",icon:"streamline:ai-generate-variation-spark",titleTheme:"success-500",btnClass:"text-white bg-primary-500 hover:ring ring-primary-500 ring-offset-1 py-2 px-3 w-full"},null,8,["onClick"])])],32)}const iS=Et(eS,[["render",oS],["__scopeId","data-v-410766b7"]]),nS="/assets/20943445.3efbbed2.jpg";const lS={components:{Icon:Ht,PafReport:iD,VectorImage:g_,TreeItem:Wy,Layout:Yt,Card:or,Form:m_,FormGroup:Xt,SubmitButton:Ut,Multiselect:zt,LeaveReport:Vx,LeaveDetailedReport:mF,OvertimeReport:Jx,OvertimeCompanyReport:cC,LateApprovalReport:EC,AttendancePostingDTRReport:jC,EmployeeListReport:QC,EmployeeRateReport:p3,EmployeeRoleReport:w3,NoScheduleReport:S3,AbsentReport:P3,TardinessReport:j3,BirthdaysReport:J3,UndertimeReport:s5,DailyTimeRecordReport:u5,TravelReport:v5,CompanyBenefitsReport:T5,EmployeeTaxApplication:N5,EmployeePhilhealth:H5,EmployeeSSS:eF,EmployeePagibig:cF,EmpployeeContributionReport:SF,MrfReport:PF,ApplicantReport:QF,ChangeScheduleReport:pD,CwsListReport:AD,ChangeRestDayReport:VD,TimeAdjustmentReport:HD,DeductionFlagsReport:ZD,DeductionReport:aA,AdjustmentReport:dA,LoanReport:wA,HdmfCalamityLoanMonthlyRemittance:TA,HdmfSalaryLoanMonthlyRemittance:IA,SssCalamityLoanMonthlyRemittance:HA,SssSalaryLoanMonthlyRemittance:$A,PayrollRegister:iS},data(){return{searchQuery:"",treeData:hm([{id:1,name:"Attendance Reports",children:[{id:1,parent_id:1,name:"Leave Application"},{id:2,parent_id:1,name:"Overtime Application"},{id:3,parent_id:1,name:"No Schedule"},{id:4,parent_id:1,name:"Absent"},{id:5,parent_id:1,name:"Tardiness"},{id:6,parent_id:1,name:"Undertime Application"},{id:7,parent_id:1,name:"Daily Time Record"},{id:8,parent_id:1,name:"OB Application"},{id:9,parent_id:1,name:"Leave (Detailed)"},{id:10,parent_id:1,name:"Change Schedule"},{id:11,parent_id:1,name:"List of CWS"},{id:12,parent_id:1,name:"List of Change Rest Day"},{id:13,parent_id:1,name:"Time Adjustment"},{id:14,parent_id:1,name:"Overtime"},{id:15,parent_id:1,name:"Late Approval"},{id:16,parent_id:1,name:"Attendance Posting DTR"}]},{id:2,name:"Masterlist",children:[{id:1,parent_id:2,name:"Employee List"},{id:2,parent_id:2,name:"Employee Rates"},{id:3,parent_id:2,name:"Employee Roles"},{id:4,parent_id:2,name:"Birthdays"}]},{id:3,name:"Payroll Reports",children:[{id:1,parent_id:3,name:"Agmaf"},{id:2,parent_id:3,name:"HMO"},{id:3,parent_id:3,name:"13 Month Pay"},{id:4,parent_id:3,name:"Contributions"},{id:5,parent_id:3,name:"Company Benefits"},{id:6,parent_id:3,name:"Deductions"},{id:7,parent_id:3,name:"Adjustments"},{id:8,parent_id:3,name:"Loans"},{id:9,parent_id:3,name:"Payroll Register"}]},{id:4,name:"Recruitment Files",children:[{id:1,parent_id:4,name:"MRF"},{id:2,parent_id:4,name:"Applicants"},{id:3,parent_id:4,name:"PAF"}]},{id:5,name:"Government Reports",children:[{id:1,parent_id:5,name:"List of Employee Tax Application"},{id:2,parent_id:5,name:"Employee Philhealth"},{id:3,parent_id:5,name:"Employee SSS"},{id:4,parent_id:5,name:"Employee Pagibig"},{id:5,parent_id:5,name:"Mandatory Deduction Flags"},{id:6,parent_id:5,name:"HDMF Calamity Loan Monthly Remittance"},{id:8,parent_id:5,name:"HDMF Salary Loan Monthly Remittance"},{id:9,parent_id:5,name:"SSS Calamity Loan Monthly Remittance"},{id:11,parent_id:5,name:"SSS Salary Loan Monthly Remittance"}]}]),employeeOption:[],setData:null,recordData:null,form:{type_id:"",type:"",approvers:[]},state:{showModal:!1,isEmployeeLoading:!1}}},computed:{filteredTreeData(){const s=this.searchQuery.trim().toLowerCase(),r=o=>o.map(i=>{const t=i.children?r(i.children):[];return i.name.toLowerCase().includes(s)||t.length>0?{...i,children:t,expanded:!0}:null}).filter(i=>i!==null);return s?r(this.treeData):this.treeData},getReportComponent(){return console.log(`${this.setData.id}-${this.setData.parent_id}`),this.setData&&{"1-1":"LeaveReport","2-1":"OvertimeReport","3-1":"NoScheduleReport","4-1":"AbsentReport","5-1":"TardinessReport","6-1":"UndertimeReport","7-1":"DailyTimeRecordReport","8-1":"TravelReport","9-1":"LeaveDetailedReport","10-1":"ChangeScheduleReport","11-1":"CwsListReport","12-1":"ChangeRestDayReport","13-1":"TimeAdjustmentReport","14-1":"OvertimeCompanyReport","1-2":"EmployeeListReport","2-2":"EmployeeRateReport","3-2":"EmployeeRoleReport","4-2":"BirthdaysReport","4-3":"EmpployeeContributionReport","5-3":"CompanyBenefitsReport","6-3":"DeductionReport","7-3":"AdjustmentReport","8-3":"LoanReport","9-3":"PayrollRegister","15-1":"LateApprovalReport","16-1":"AttendancePostingDTRReport","1-5":"EmployeeTaxApplication","2-5":"EmployeePhilhealth","3-5":"EmployeeSSS","4-5":"EmployeePagibig","5-5":"DeductionFlagsReport","6-5":"HdmfCalamityLoanMonthlyRemittance","8-5":"HdmfSalaryLoanMonthlyRemittance","9-5":"SssCalamityLoanMonthlyRemittance","11-5":"SssSalaryLoanMonthlyRemittance"}[`${this.setData.id}-${this.setData.parent_id}`]||null}},methods:{viewRecords(s){this.recordData=s,console.log("Received in index:",s)},reportList(){this.$refs.form.loadRecord(this.setData),this.$refs.form.state.showModal=!0,console.log("Report List",this.setData)},setTreeData(s){this.setData=s}}},cS={class:"grid grid-cols-12 gap-2 h-[50rem] border-2 p-3 border-gray-100 rounded-md"},fS={class:"col-span-3 overflow-y-scroll"},uS={class:"mb-3"},dS={class:"col-span-9 overflow-y-auto p-3 relative"},hS={class:"absolute inset-0 flex items-center justify-center pointer-events-none"},pS=["srcset"],mS={key:0},gS={class:"flex justify-between items-center"},bS={class:"font-bold text-lg"},yS={class:"flex flex-center items-center justify-center py-4"};function _S(s,r,o,i,t,e){const u=Y("TreeItem"),p=Y("Icon"),b=Y("Form"),_=Y("Card"),w=Y("Layout");return re(),Me(w,null,{default:G(()=>[T(_,{title:"Generate Report"},{default:G(()=>[B("div",cS,[B("div",fS,[B("div",uS,[$o(B("input",{"onUpdate:modelValue":r[0]||(r[0]=S=>t.searchQuery=S),type:"text",placeholder:"Search Reports...",class:"border border-gray-300 rounded p-2 w-full"},null,512),[[nf,t.searchQuery]])]),B("ul",null,[T(u,{class:"item",model:e.filteredTreeData,"is-expanded":!0,onTreeNodeClicked:e.setTreeData},null,8,["model","onTreeNodeClicked"])])]),B("div",dS,[B("div",hS,[B("img",{src:nS,alt:"Vector Image",srcset:s.VectorImage,class:"w-full h-full max-w-4xl object-contain opacity-15"},null,8,pS)]),B("form",{onSubmit:r[2]||(r[2]=St((...S)=>s.confirmSubmit&&s.confirmSubmit(...S),["prevent"])),class:"space-y-4 relative z-10"},[t.setData?(re(),Le("div",mS,[B("div",gS,[B("div",bS,Hr(t.setData.name),1),B("div",yS,[B("div",{onClick:r[1]||(r[1]=(...S)=>e.reportList&&e.reportList(...S)),class:"cursor-pointer text-white rounded-lg hover:bg-gray-600 hover:text-gray-100 bg-gray-900 p-2 flex items-center gap-2"},[T(p,{icon:"fluent:save-multiple-16-regular",class:"text-2xl"}),r[4]||(r[4]=B("div",{class:"text-xs"},"Saved Reports",-1))])])]),(re(),Me(Yb(e.getReportComponent),{"set-data":t.setData,"record-data":t.recordData},null,8,["set-data","record-data"]))])):me("",!0)],32)]),T(b,{onCloseModal:r[3]||(r[3]=S=>t.state.showModal=!1),ref:"form",onRecordSubmitted:e.viewRecords},null,8,["onRecordSubmitted"])])]),_:1})]),_:1})}const vS=Et(lS,[["render",_S]]),E6=Object.freeze(Object.defineProperty({__proto__:null,default:vS},Symbol.toStringTag,{value:"Module"}));export{cl as c,E6 as i};
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0.21 |
proxy
|
phpinfo
|
Settings