Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@syncfusion/ej2-excel-export

Package Overview
Dependencies
Maintainers
3
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-excel-export - npm Package Compare versions

Comparing version 26.2.10 to 26.2.11

.eslintrc.json

4

dist/ej2-excel-export.min.js
/*!
* filename: ej2-excel-export.min.js
* version : 26.2.10
* version : 26.2.11
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.

@@ -10,2 +10,2 @@ * Use of this code is subject to the terms of our license.

*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("SyncfusionCompression"),require("SyncfusionBase"),require("SyncfusionFileUtils")):"function"==typeof define&&define.amd?define(["SyncfusionCompression","SyncfusionBase","SyncfusionFileUtils"],t):"object"==typeof exports?exports.SyncfusionExcelExport=t(require("SyncfusionCompression"),require("SyncfusionBase"),require("SyncfusionFileUtils")):e.SyncfusionExcelExport=t(e.SyncfusionCompression,e.SyncfusionBase,e.SyncfusionFileUtils)}(self,((e,t,r)=>(()=>{"use strict";var o={766:e=>{e.exports=t},50:t=>{t.exports=e},115:e=>{e.exports=r}},i={};function n(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return o[e](r,r.exports,n),r.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{n.r(s),n.d(s,{Alignment:()=>i,BlobHelper:()=>E,Border:()=>h,Borders:()=>p,BuiltInProperties:()=>L,Cell:()=>u,CellStyle:()=>t,CellStyleXfs:()=>l,CellStyles:()=>a,CellXfs:()=>o,Cells:()=>c,Column:()=>f,CsvHelper:()=>B,Font:()=>r,FreezePane:()=>k,Grouping:()=>C,HyperLink:()=>S,MergeCell:()=>I,MergeCells:()=>T,NumFmt:()=>d,Row:()=>g,Rows:()=>y,ValueFormatter:()=>O,Workbook:()=>z,Worksheet:()=>F,Worksheets:()=>w});var e,t=function(){this.numFmtId=0,this.backColor="none",this.fontName="Calibri",this.fontSize=10.5,this.fontColor="#000000",this.italic=!1,this.bold=!1,this.underline=!1,this.strikeThrough=!1,this.wrapText=!1,this.hAlign="general",this.vAlign="bottom",this.indent=0,this.rotation=0,this.numberFormat="GENERAL",this.type="datetime",this.borders=new p,this.isGlobalStyle=!1},r=function(){this.sz=10.5,this.name="Calibri",this.u=!1,this.b=!1,this.i=!1,this.color="FF000000",this.strike=!1},o=function(){},i=function(){},l=function(){},a=function(){this.name="Normal",this.xfId=0},d=function(e,t){this.numFmtId=e,this.formatCode=t},h=function(e,t){this.lineStyle=e,this.color=t},p=function(){this.left=new h("none","#FFFFFF"),this.right=new h("none","#FFFFFF"),this.top=new h("none","#FFFFFF"),this.bottom=new h("none","#FFFFFF"),this.all=new h("none","#FFFFFF")},m=(e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)},function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}),u=function(){},c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.add=function(e){for(var r=!1,o=0,i=0,n=t;i<n.length;i++){n[i].index===e.index&&(t[o]=e,r=!0),o++}r||t.push(e)},t}return m(t,e),t}(Array),f=function(){},v=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),g=function(){},y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.add=function(e){t.push(e)},t}return v(t,e),t}(Array),x=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return x(t,e),t}(Array),b=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),F=function(){this.isSummaryRowBelow=!0,this.showGridLines=!0,this.enableRtl=!1},S=function(){},C=function(){},k=function(){},I=function(){},T=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.add=function(e){for(var o=!1,i=0,n=0,s=r;n<s.length;n++){var l=s[n];if(t.isIntersecting(l,e)){var a=new I;a.x=Math.min(l.x,e.x),a.y=Math.min(l.Y,e.y),a.width=Math.max(l.Width+l.X,e.width+e.x),a.height=Math.max(l.Height+l.Y,e.height+e.y),a.ref=r[i].ref.split(":")[0]+":"+e.ref.split(":")[1],r[i]=a,e=a,o=!0}i++}return o||r.push(e),e},r}return b(t,e),t.isIntersecting=function(e,t){return e.x<=t.x+t.width&&t.x<=e.x+e.width&&e.y<=t.y+t.height&&t.y<=e.y+e.height},t}(Array),R=function(){},P=n(50),N=n(766),O=function(){function e(e){this.intl=new N.Internationalization}return e.prototype.getFormatFunction=function(e,t){return e.type?(t&&(e.isServerRendered=!0),this.intl.getDateFormat(e)):this.intl.getNumberFormat(e)},e.prototype.toView=function(e,t){var r=e;return(0,N.isNullOrUndefined)(t)||(0,N.isNullOrUndefined)(e)||(r=t(e)),r},e.prototype.displayText=function(e,t,r){return this.toView(e,this.getFormatFunction(t,r))},e}(),A=n(115),B=function(){function e(e,t){if(this.csvStr="",this.separator=null==t?",":t,this.formatter=new O,this.isMicrosoftBrowser=!!navigator.msSaveBlob,null!==e.isServerRendered&&void 0!==e.isServerRendered&&(this.isServerRendered=e.isServerRendered),null!==e.styles&&void 0!==e.styles){this.globalStyles=new Map;for(var r=0;r<e.styles.length;r++)void 0!==e.styles[r].name&&void 0!==e.styles[r].numberFormat&&this.globalStyles.set(e.styles[r].name,e.styles[r].numberFormat)}null!==e.worksheets&&void 0!==e.worksheets&&this.parseWorksheet(e.worksheets[0])}return e.prototype.parseWorksheet=function(e){null!==e.rows&&void 0!==e.rows&&this.parseRows(e.rows)},e.prototype.parseRows=function(e){for(var t=1,r=0,o=e;r<o.length;r++){var i=o[r];if(null===i.index||void 0===i.index)throw Error("Row index is missing.");for(;t<i.index;)this.csvStr+="\r\n",t++;this.parseRow(i)}this.csvStr+="\r\n"},e.prototype.parseRow=function(e){if(null!==e.cells&&void 0!==e.cells)for(var t=1,r=0,o=e.cells;r<o.length;r++){var i=o[r];if(null===i.index||void 0===i.index)throw Error("Cell index is missing.");for(;t<i.index;)this.csvStr+=this.separator,t++;this.parseCell(i)}},e.prototype.parseCell=function(e){var t=this.csvStr;if(void 0!==e.value)if(e.value instanceof Date)if(void 0!==e.style&&void 0!==e.style.numberFormat)try{t+=this.parseCellValue(this.formatter.displayText(e.value,{type:"dateTime",skeleton:e.style.numberFormat},this.isServerRendered))}catch(r){t+=this.parseCellValue(this.formatter.displayText(e.value,{type:"dateTime",format:e.style.numberFormat},this.isServerRendered))}else if(void 0!==e.style&&void 0!==e.style.name&&this.globalStyles.has(e.style.name))try{t+=this.parseCellValue(this.formatter.displayText(e.value,{type:"dateTime",skeleton:this.globalStyles.get(e.style.name)},this.isServerRendered))}catch(r){t+=this.parseCellValue(this.formatter.displayText(e.value,{type:"dateTime",format:this.globalStyles.get(e.style.name)},this.isServerRendered))}else t+=e.value;else"boolean"==typeof e.value?t+=e.value?"TRUE":"FALSE":"number"==typeof e.value?void 0!==e.style&&void 0!==e.style.numberFormat?t+=this.parseCellValue(this.formatter.displayText(e.value,{format:e.style.numberFormat},this.isServerRendered)):void 0!==e.style&&void 0!==e.style.name&&this.globalStyles.has(e.style.name)?t+=this.parseCellValue(this.formatter.displayText(e.value,{format:this.globalStyles.get(e.style.name)},this.isServerRendered)):t+=e.value:t+=this.parseCellValue(e.value);this.csvStr=t},e.prototype.parseCellValue=function(e){for(var t="",r=e.length,o=0;o<r;o++)'"'===e[o]?t+=e[o].replace('"','""'):t+=e[o];return-1!==(e=t).indexOf(this.separator)||-1!==e.indexOf("\n")||-1!==e.indexOf('"')?'"'+e+'"':e},e.prototype.save=function(e){if(this.buffer=new Blob(["\ufeff"+this.csvStr],{type:"text/csv;charset=UTF-8"}),this.isMicrosoftBrowser)navigator.msSaveBlob(this.buffer,e);else{var t=window.URL.createObjectURL(this.buffer),r=document.createElementNS("http://www.w3.org/1999/xhtml","a");r.download=e,r.href=t;var o=document.createEvent("MouseEvent");o.initEvent("click",!0,!0),r.dispatchEvent(o),setTimeout((function(){window.URL.revokeObjectURL(t)}))}},e.prototype.saveAsBlob=function(e){if(null!=e){var t=new A.Encoding,r="UTF-8";"ANSI"==e.toUpperCase()?(t.type="Ansi",r="ANSI"):"UNICODE"==e.toUpperCase()?(t.type="Unicode",r="UNICODE"):(t.type="Utf8",r="UTF-8");var o=t.getBytes(this.csvStr,0,this.csvStr.length);return new Blob([o],{type:"text/csv;charset="+r})}return new Blob(["\ufeff"+this.csvStr],{type:"text/csv;charset=UTF-8"})},e}(),E=function(){function e(){this.parts=[]}return e.prototype.append=function(e){this.parts.push(e),this.blob=void 0},e.prototype.getBlob=function(){return new Blob(this.parts,{type:"text/plain"})},e}(),D=function(){},z=function(){function e(e,o,i,n,s){if(this.sharedStringCount=0,this.unitsProportions=[1.28,.32,96,96/25.4,96/2.54,1,96/72,96/72/12700],this.hyperlinkStyle={fontColor:"#0000FF",underline:!0},this.culture=void 0!==i?i:"en-US",this.currency=void 0!==n?n:"USD",this.intl=new N.Internationalization(this.culture),this.mSaveType=o,"xlsx"===o){if(this.mArchive=new P.ZipArchive,this.sharedString=[],this.mFonts=[],this.mBorders=[],this.mStyles=[],this.printTitles=new Map,this.cellStyles=new Map,this.mNumFmt=new Map,this.mFills=new Map,this.mStyles.push(new t),this.mFonts.push(new r),this.cellStyles.set("Normal",new a),this.mCellXfs=[],this.mCellStyleXfs=[],this.drawingCount=0,this.imageCount=0,null!==e.styles&&void 0!==e.styles){this.globalStyles=new Map;for(var l=0;l<e.styles.length;l++)if(void 0!==e.styles[l].name){if(this.cellStyles.has(e.styles[l].name))throw Error("Style name "+e.styles[l].name+" is already existed");var d=new t;d.isGlobalStyle=!0,this.parserCellStyle(e.styles[l],d,"none");var h=new a;h.name=d.name,h.xfId=d.index-1,this.cellStyles.set(h.name,h);var p={};void 0!==e.styles[l].numberFormat&&(p.format=e.styles[l].numberFormat),void 0!==e.styles[l].type?p.type=e.styles[l].type:p.type="datetime",void 0!==p.format&&this.globalStyles.set(e.styles[l].name,p)}}if(null===e.worksheets||void 0===e.worksheets)throw Error("Worksheet is expected.");this.parserWorksheets(e.worksheets),null!==e.builtInProperties&&void 0!==e.builtInProperties&&(this.builtInProperties=new L,this.parserBuiltInProperties(e.builtInProperties,this.builtInProperties))}else this.csvHelper=new B(e,s)}return e.prototype.parserBuiltInProperties=function(e,t){null!==e.author&&void 0!==e.author&&(t.author=e.author),null!==e.comments&&void 0!==e.comments&&(t.comments=e.comments),null!==e.category&&void 0!==e.category&&(t.category=e.category),null!==e.company&&void 0!==e.company&&(t.company=e.company),null!==e.manager&&void 0!==e.manager&&(t.manager=e.manager),null!==e.subject&&void 0!==e.subject&&(t.subject=e.subject),null!==e.title&&void 0!==e.title&&(t.title=e.title),null!==e.createdDate&&void 0!==e.createdDate&&(t.createdDate=e.createdDate),null!==e.modifiedDate&&void 0!==e.modifiedDate&&(t.modifiedDate=e.modifiedDate),null!==e.tags&&void 0!==e.tags&&(t.tags=e.tags),null!==e.status&&void 0!==e.status&&(t.status=e.status)},e.prototype.parserWorksheets=function(e){this.worksheets=new w;for(var t=e.length,r=0;r<t;r++){var o=e[r],i=new F;this.mergeCells=new T,this.mergedCellsStyle=new Map,this.mHyperLinks=[],null!==o.name&&void 0!==o.name?i.name=o.name:i.name="Sheet"+(r+1).toString(),null!==o.enableRtl&&void 0!==o.enableRtl&&(i.enableRtl=o.enableRtl),i.index=r+1,null!==o.columns&&void 0!==o.columns&&this.parserColumns(o.columns,i),null!==o.rows&&void 0!==o.rows&&this.parserRows(o.rows,i),null!==o.showGridLines&&void 0!==o.showGridLines&&(i.showGridLines=o.showGridLines),null!==o.freeze&&void 0!==o.freeze&&this.parserFreezePanes(o.freeze,i),null!==o.printTitle&&void 0!==o.printTitle&&this.parserPrintTitle(o.printTitle,i),void 0!==o.pageSetup&&void 0!==o.pageSetup.isSummaryRowBelow&&(i.isSummaryRowBelow=o.pageSetup.isSummaryRowBelow),void 0!==o.images&&this.parserImages(o.images,i),null!==o.autoFilters&&void 0!==o.autoFilters&&this.parseFilters(o.autoFilters,i),i.index=r+1,i.mergeCells=this.mergeCells,i.hyperLinks=this.mHyperLinks,this.worksheets.push(i)}},e.prototype.mergeOptions=function(e,t){var r={};return this.applyProperties(e,r),this.applyProperties(t,r),r},e.prototype.applyProperties=function(e,t){for(var r=Object.keys(e),o=0;o<r.length;o++)"name"!==r[o]&&(t[r[o]]=e[r[o]])},e.prototype.getCellName=function(e,t){return this.getColumnName(t)+e.toString()},e.prototype.getColumnName=function(e){e--;var t="";do{var r=e%26;e=e/26-1,t=String.fromCharCode(65+r)+t}while(e>=0);return t},e.prototype.parserPrintTitle=function(e,t){var r,o,i="";if(null!==e.fromRow&&void 0!==e.fromRow){r="$"+e.fromRow+":$"+(null!==e.toRow&&void 0!==e.toRow?e.toRow:e.fromRow)}if(null!==e.fromColumn&&void 0!==e.fromColumn){var n=e.fromColumn,s=void 0;s=null!==e.toColumn&&void 0!==e.toColumn?e.toColumn:e.fromColumn,o="$"+this.getColumnName(n)+":$"+this.getColumnName(s)}void 0!==r&&(i+=t.name+"!"+r),void 0!==o&&void 0!==r?i+=","+t.name+"!"+o:void 0!==o&&(i+=t.name+"!"+o),""!==i&&this.printTitles.set(t.index-1,i)},e.prototype.parserFreezePanes=function(e,t){t.freezePanes=new k,null!==e.row&&void 0!==e.row?t.freezePanes.row=e.row:t.freezePanes.row=0,null!==e.column&&void 0!==e.column?t.freezePanes.column=e.column:t.freezePanes.column=0,t.freezePanes.leftCell=this.getCellName(t.freezePanes.row+1,t.freezePanes.column+1)},e.prototype.parserColumns=function(e,t){var r=e.length;t.columns=[];for(var o=0;o<r;o++){var i=new f;if(null===e[o].index||void 0===e[o].index)throw Error("Column index is missing.");i.index=e[o].index,null!==e[o].width&&void 0!==e[o].width&&(i.width=e[o].width),t.columns.push(i)}},e.prototype.parserRows=function(e,t){var r=e.length;t.rows=new y;for(var o=0,i=0;i<r;i++){var n=this.parserRow(e[i],o);o=n.index,t.rows.add(n)}this.insertMergedCellsStyle(t)},e.prototype.insertMergedCellsStyle=function(e){var t=this;this.mergeCells.length>0&&this.mergedCellsStyle.forEach((function(r,o){var i=e.rows.filter((function(e){return e.index===r.y}))[0];if((0,N.isNullOrUndefined)(i)){var n=e.rows.filter((function(e){return e.index<=r.y})),s=new g;s.index=r.y,s.cells=new c,s.cells.add(t.createCell(r,o));d=0;n.length>0&&(d=e.rows.indexOf(n[n.length-1])+1),e.rows.splice(d,0,s)}else{var l=i.cells.filter((function(e){return e.index===r.x}))[0];if((0,N.isNullOrUndefined)(l)){var a=i.cells.filter((function(e){return e.index<=r.x})),d=0;a.length>0&&(d=i.cells.indexOf(a[a.length-1])+1),i.cells.splice(d,0,t.createCell(r,o))}else l.styleIndex=r.styleIndex}}))},e.prototype.createCell=function(e,r){var o=new u;return o.refName=r,o.index=e.x,o.cellStyle=new t,o.styleIndex=e.styleIndex,o},e.prototype.parserRow=function(e,t){var r=new g;if(null!==e.height&&void 0!==e.height&&(r.height=e.height),null===e.index||void 0===e.index)throw Error("Row index is missing.");return r.index=e.index,null!==e.grouping&&void 0!==e.grouping&&this.parseGrouping(e.grouping,r),this.parseCells(e.cells,r),r},e.prototype.parseGrouping=function(e,t){t.grouping=new C,void 0!==e.outlineLevel&&(t.grouping.outlineLevel=e.outlineLevel),void 0!==e.isCollapsed&&(t.grouping.isCollapsed=e.isCollapsed),void 0!==e.isHidden&&(t.grouping.isHidden=e.isHidden)},e.prototype.parseCells=function(e,r){r.cells=new c;for(var o=void 0!==e?e.length:0,i=1,n=1,s=0;s<o;s++){var l=e[s],a=new u;if(null===l.index||void 0===l.index)throw Error("Cell index is missing.");if(a.index=l.index,a.index<i?i=a.index:a.index>n&&(n=a.index),a.refName=this.getCellName(r.index,a.index),null!==l.rowSpan&&void 0!==l.rowSpan?a.rowSpan=l.rowSpan-1:a.rowSpan=0,null!==l.colSpan&&void 0!==l.colSpan?a.colSpan=l.colSpan-1:a.colSpan=0,null!==l.hyperlink&&void 0!==l.hyperlink){var d=new S;void 0!==l.hyperlink.target&&(d.target=l.hyperlink.target,void 0!==l.hyperlink.displayText?a.value=l.hyperlink.displayText:a.value=l.hyperlink.target,a.type=this.getCellValueType(a.value),d.ref=a.refName,d.rId=this.mHyperLinks.length+1,this.mHyperLinks.push(d),a.cellStyle=new t,this.parserCellStyle(void 0!==l.style?this.mergeOptions(l.style,this.hyperlinkStyle):this.hyperlinkStyle,a.cellStyle,"string"),a.styleIndex=a.cellStyle.index)}null!==l.formula&&void 0!==l.formula&&(a.formula=l.formula,a.type="formula"),null!==l.value&&void 0!==l.value&&(void 0!==a.formula?a.value=0:(a.value=l.value,a.type=this.getCellValueType(a.value))),null!==l.style&&void 0!==l.style&&void 0===a.styleIndex?(a.cellStyle=new t,a.value instanceof Date?this.parserCellStyle(l.style,a.cellStyle,a.type,14):this.parserCellStyle(l.style,a.cellStyle,a.type),a.styleIndex=a.cellStyle.index):a.value instanceof Date&&(a.cellStyle=new t,this.parserCellStyle({},a.cellStyle,a.type,14),a.styleIndex=a.cellStyle.index),this.parseCellType(a),this.mergeCells=this.processMergeCells(a,r.index,this.mergeCells),r.cells.add(a),a.index+1}r.spans=i+":"+n},e.prototype.GetColors=function(){var e;return(e=new Map).set("WHITE","FFFFFFFF"),e.set("SILVER","FFC0C0C0"),e.set("GRAY","FF808080"),e.set("BLACK","FF000000"),e.set("RED","FFFF0000"),e.set("MAROON","FF800000"),e.set("YELLOW","FFFFFF00"),e.set("OLIVE","FF808000"),e.set("LIME","FF00FF00"),e.set("GREEN","FF008000"),e.set("AQUA","FF00FFFF"),e.set("TEAL","FF008080"),e.set("BLUE","FF0000FF"),e.set("NAVY","FF000080"),e.set("FUCHSIA","FFFF00FF"),e.set("PURPLE","FF800080"),e},e.prototype.processColor=function(e){return 0===e.indexOf("#")?e.replace("#","FF"):(e=e.toUpperCase(),this.rgbColors=this.GetColors(),e=this.rgbColors.has(e)?this.rgbColors.get(e):"FF000000")},e.prototype.processCellValue=function(e,t){var r=e;if(-1!==e.indexOf("<font")||-1!==e.indexOf("<a")||-1!==e.indexOf("<b>")||-1!==e.indexOf("<i>")||-1!==e.indexOf("<u>")){var o="",i=e.indexOf("<",0),n=e.indexOf(">",i+1);if(i>=0&&n>=0){for(0!==i&&(o+='<r><t xml:space="preserve">'+this.processString(e.substring(0,i))+"</t></r>");i>=0&&n>=0;)if((n=e.indexOf(">",i+1))>=0){var s=e.substring(i+1,n);(i=e.indexOf("<",n+1))<0&&(i=r.length);var l=r.substring(n+1,i);if(0!==l.length){var a=s.split(" ");if(a.length>0&&(o+="<r><rPr>"),a.length>1)for(var d=0,h=a;d<h.length;d++){var p=h[d];switch(p.trim().substring(0,5)){case"size=":o+='<sz val="'+p.substring(6,p.length-1)+'"/>';break;case"face=":o+='<rFont val="'+p.substring(6,p.length-1)+'"/>';break;case"color":o+='<color rgb="'+this.processColor(p.substring(7,p.length-1))+'"/>';break;case"href=":var m=new S;m.target=p.substring(6,p.length-1).trim(),m.ref=t.refName,m.rId=this.mHyperLinks.length+1,this.mHyperLinks.push(m),o+='<color rgb="FF0000FF"/><u/><b/>'}}else if(1===a.length){switch(a[0].trim()){case"b":o+="<b/>";break;case"i":o+="<i/>";break;case"u":o+="<u/>"}}o+='</rPr><t xml:space="preserve">'+this.processString(l)+"</t></r>"}}return""===o?r:o}return r}return r},e.prototype.applyGlobalStyle=function(e,t){this.cellStyles.has(e.name)&&(t.index=this.mStyles.filter((function(t){return t.name===e.name}))[0].index,t.name=e.name)},e.prototype.parserCellStyle=function(e,t,r,o){if(null!==e.name&&void 0!==e.name){if(!t.isGlobalStyle)return void this.applyGlobalStyle(e,t);t.name=e.name}null!==e.backColor&&void 0!==e.backColor&&(t.backColor=e.backColor),t.borders=new p,null!==e.borders&&void 0!==e.borders&&this.parserBorder(e.borders,t.borders.all),null!==e.leftBorder&&void 0!==e.leftBorder&&this.parserBorder(e.leftBorder,t.borders.left),null!==e.rightBorder&&void 0!==e.rightBorder&&this.parserBorder(e.rightBorder,t.borders.right),null!==e.topBorder&&void 0!==e.topBorder&&this.parserBorder(e.topBorder,t.borders.top),null!==e.bottomBorder&&void 0!==e.bottomBorder&&this.parserBorder(e.bottomBorder,t.borders.bottom),null!==e.fontName&&void 0!==e.fontName&&(t.fontName=e.fontName),null!==e.fontSize&&void 0!==e.fontSize&&(t.fontSize=e.fontSize),null!==e.fontColor&&void 0!==e.fontColor&&(t.fontColor=e.fontColor),null!==e.italic&&void 0!==e.italic&&(t.italic=e.italic),null!==e.bold&&void 0!==e.bold&&(t.bold=e.bold),null!==e.hAlign&&void 0!==e.hAlign&&(t.hAlign=e.hAlign.toLowerCase()),null!==e.indent&&void 0!==e.indent&&(t.indent=e.indent,"left"!==t.hAlign&&"right"!==t.hAlign&&(t.hAlign="left")),null!==e.rotation&&void 0!==e.rotation&&(t.rotation=e.rotation),null!==e.vAlign&&void 0!==e.vAlign&&(t.vAlign=e.vAlign.toLowerCase()),null!==e.underline&&void 0!==e.underline&&(t.underline=e.underline),null!==e.strikeThrough&&void 0!==e.strikeThrough&&(t.strikeThrough=e.strikeThrough),null!==e.wrapText&&void 0!==e.wrapText&&(t.wrapText=e.wrapText),null!==e.numberFormat&&void 0!==e.numberFormat?null!==e.type&&void 0!==e.type?t.numberFormat=this.getNumberFormat(e.numberFormat,e.type):t.numberFormat=this.getNumberFormat(e.numberFormat,r):void 0!==o?(t.numFmtId=14,t.numberFormat="GENERAL"):t.numberFormat="GENERAL",t.index=this.processCellStyle(t)},e.prototype.switchNumberFormat=function(e,t){var r=this.getNumberFormat(e,t);if(r!==e){var o=this.mNumFmt.get(e);if(void 0!==o&&(o.formatCode=r,this.mNumFmt.has(r))){for(var i=0,n=this.mCellStyleXfs;i<n.length;i++){var s=n[i];s.numFmtId===o.numFmtId&&(s.numFmtId=this.mNumFmt.get(r).numFmtId)}for(var l=0,a=this.mCellXfs;l<a.length;l++){var d=a[l];d.numFmtId===o.numFmtId&&(d.numFmtId=this.mNumFmt.get(r).numFmtId)}}}},e.prototype.changeNumberFormats=function(e){if("string"==typeof e){var t=new RegExp(this.currency,"g");e=e.replace(t,"[$"+this.currency+"]")}else if("object"==typeof e)for(var r=0;r<e.length;r++)e[r]=e[r].replace(this.currency,"[$"+this.currency+"]");return e},e.prototype.getNumberFormat=function(e,t){var r;switch(t){case"number":try{r=this.intl.getNumberPattern({format:e,currency:this.currency,useGrouping:!0},!0),this.currency.length>1&&(r=this.changeNumberFormats(r))}catch(t){r=e}break;case"datetime":try{r=this.intl.getDatePattern({skeleton:e,type:"dateTime"},!0)}catch(t){try{r=this.intl.getDatePattern({format:e,type:"dateTime"},!0)}catch(t){r=e}}break;case"date":try{r=this.intl.getDatePattern({skeleton:e,type:"date"},!0)}catch(t){try{r=this.intl.getDatePattern({format:e,type:"date"},!0)}catch(t){r=e}}break;case"time":try{r=this.intl.getDatePattern({skeleton:e,type:"time"},!0)}catch(t){try{r=this.intl.getDatePattern({format:e,type:"time"},!0)}catch(t){r=e}}break;default:r=e}return r},e.prototype.parserBorder=function(e,t){null!==e.color&&void 0!==e.color?t.color=e.color:t.color="#000000",null!==e.lineStyle&&void 0!==e.lineStyle?t.lineStyle=e.lineStyle:t.lineStyle="thin"},e.prototype.processCellStyle=function(e){if(e.isGlobalStyle)return this.processNumFormatId(e),this.mStyles.push(e),this.mStyles.length;var t=this.compareStyle(e);return t.result?t.index:(this.processNumFormatId(e),this.mStyles.push(e),this.mStyles.length)},e.prototype.processNumFormatId=function(e){if("GENERAL"!==e.numberFormat&&!this.mNumFmt.has(e.numberFormat)){var t=this.mNumFmt.size+164;this.mNumFmt.set(e.numberFormat,new d(t,e.numberFormat))}},e.prototype.isNewFont=function(e){for(var t=!1,r=0,o=0,i=this.mFonts;o<i.length;o++){var n=i[o];r++;var s=void 0;if(void 0!==e.fontColor&&(s="FF"+e.fontColor.replace("#","")),t=n.color===s&&n.b===e.bold&&n.i===e.italic&&n.u===e.underline&&n.strike===e.strikeThrough&&n.name===e.fontName&&n.sz===e.fontSize)break}return{index:r-=1,result:t}},e.prototype.isNewBorder=function(e){var r=new t;return this.isAllBorder(e.borders)?r.borders.all.color===e.borders.all.color&&r.borders.all.lineStyle===e.borders.all.lineStyle:r.borders.left.color===e.borders.left.color&&r.borders.left.lineStyle===e.borders.left.lineStyle&&r.borders.right.color===e.borders.right.color&&r.borders.right.lineStyle===e.borders.right.lineStyle&&r.borders.top.color===e.borders.top.color&&r.borders.top.lineStyle===e.borders.top.lineStyle&&r.borders.bottom.color===e.borders.bottom.color&&r.borders.bottom.lineStyle===e.borders.bottom.lineStyle},e.prototype.isAllBorder=function(e){var r=new t;return r.borders.all.color!==e.all.color&&r.borders.all.lineStyle!==e.all.lineStyle},e.prototype.compareStyle=function(e){for(var t=!0,r=0,o=0,i=this.mStyles;o<i.length;o++){var n=i[o];if(t=!n.isGlobalStyle&&(n.backColor===e.backColor&&n.bold===e.bold&&n.numFmtId===e.numFmtId&&n.numberFormat===e.numberFormat&&n.type===e.type&&n.fontColor===e.fontColor&&n.fontName===e.fontName&&n.fontSize===e.fontSize&&n.hAlign===e.hAlign&&n.italic===e.italic&&n.underline===e.underline&&n.strikeThrough===e.strikeThrough&&n.vAlign===e.vAlign&&n.indent===e.indent&&n.rotation===e.rotation&&n.wrapText===e.wrapText&&n.borders.all.color===e.borders.all.color&&n.borders.all.lineStyle===e.borders.all.lineStyle&&n.borders.left.color===e.borders.left.color&&n.borders.left.lineStyle===e.borders.left.lineStyle&&n.borders.right.color===e.borders.right.color&&n.borders.right.lineStyle===e.borders.right.lineStyle&&n.borders.top.color===e.borders.top.color&&n.borders.top.lineStyle===e.borders.top.lineStyle&&n.borders.bottom.color===e.borders.bottom.color&&n.borders.bottom.lineStyle===e.borders.bottom.lineStyle)){r=n.index;break}}return{index:r,result:t}},e.prototype.contains=function(e,t){var r=e.indexOf(t);return r>-1&&r<e.length},e.prototype.getCellValueType=function(e){return e instanceof Date?"datetime":"boolean"==typeof e?"boolean":"number"==typeof e?"number":"string"},e.prototype.parseCellType=function(e){var t,r=e.type,o=e.value;switch(r){case"datetime":if(o=this.toOADate(o),void 0!==e.cellStyle&&void 0!==e.cellStyle.name&&this.globalStyles.has(e.cellStyle.name)){var i=this.globalStyles.get(e.cellStyle.name);this.switchNumberFormat(i.format,i.type)}t="n";break;case"boolean":o=o?1:0,t="b";break;case"number":t="n",void 0!==e.cellStyle&&void 0!==e.cellStyle.name&&this.globalStyles.has(e.cellStyle.name)&&this.switchNumberFormat(this.globalStyles.get(e.cellStyle.name).format,"number");break;case"string":this.sharedStringCount++,t="s";var n=this.processCellValue(o,e);this.contains(this.sharedString,n)||this.sharedString.push(n),o=this.sharedString.indexOf(n)}e.saveType=t,e.value=o},e.prototype.parserImages=function(e,t){var r=e.length;t.images=[];for(var o=0;o<r;o++){var i=this.parserImage(e[o]);t.images.push(i)}},e.prototype.parseFilters=function(e,t){if(t.autoFilters=new D,null===e.row||void 0===e.row)throw new Error("Argument Null Exception: row null or empty");if(t.autoFilters.row=e.row,null===e.lastRow||void 0===e.lastRow)throw new Error("Argument Null Exception: lastRow cannot be null or empty");if(t.autoFilters.lastRow=e.lastRow,null===e.column||void 0===e.column)throw new Error("Argument Null Exception: column cannot be null or empty");if(t.autoFilters.column=e.column,null===e.lastColumn||void 0===e.row)throw new Error("Argument Null Exception: lastColumn cannot be null or empty");t.autoFilters.lastColumn=e.lastColumn},e.prototype.parserImage=function(e){var t=new R;return null!==e.image&&void 0!==e.image&&(t.image=e.image),null!==e.row&&void 0!==e.row&&(t.row=e.row),null!==e.column&&void 0!==e.column&&(t.column=e.column),null!==e.lastRow&&void 0!==e.lastRow&&(t.lastRow=e.lastRow),null!==e.lastColumn&&void 0!==e.lastColumn&&(t.lastColumn=e.lastColumn),null!==e.width&&void 0!==e.width&&(t.width=e.width),null!==e.height&&void 0!==e.height&&(t.height=e.height),null!==e.horizontalFlip&&void 0!==e.horizontalFlip&&(t.horizontalFlip=e.horizontalFlip),null!==e.verticalFlip&&void 0!==e.verticalFlip&&(t.verticalFlip=e.verticalFlip),null!==e.rotation&&void 0!==e.rotation&&(t.rotation=e.rotation),t},e.prototype.saveAsBlob=function(e,t){var r=this;return new Promise("text/csv"===e?function(e,o){var i={};i.blobData=r.csvHelper.saveAsBlob(t),e(i)}:function(e,t){r.saveInternal(),r.mArchive.saveAsBlob().then((function(t){var r={};r.blobData=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),e(r)}))})},e.prototype.save=function(e,t){var r=this;if(null==e||""===e)throw new Error("Argument Null Exception: fileName cannot be null or empty");var o=e.match(".xlsx$"),i=e.match(".csv$");if(null!==o&&o[0]==="."+this.mSaveType)this.saveInternal(),this.mArchive.save(e).then((function(){r.mArchive.destroy()}));else{if(null===i||i[0]!=="."+this.mSaveType)throw Error("Save type and file extension is different.");this.csvHelper.save(e)}},e.prototype.saveInternal=function(){this.saveWorkbook(),this.saveWorksheets(),this.saveSharedString(),this.saveStyles(),this.saveApp(this.builtInProperties),this.saveCore(this.builtInProperties),this.saveContentType(),this.saveTopLevelRelation(),this.saveWorkbookRelation()},e.prototype.saveWorkbook=function(){for(var e='<?xml version="1.0" encoding="utf-8"?><workbook xmlns:r = "http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns= "http://schemas.openxmlformats.org/spreadsheetml/2006/main"><workbookPr codeName="ThisWorkbook" defaultThemeVersion= "153222"/><bookViews><workbookView activeTab="0"/></bookViews>',t="<sheets>",r=this.worksheets.length,o=0;o<r;o++){var i=this.worksheets[o].name;t+='<sheet name="'+(i=(i=(i=(i=i.replace("&","&amp;")).replace("<","&lt;")).replace(">","&gt;")).replace('"',"&quot;"))+'" sheetId="'+(o+1).toString()+'" r:id ="rId'+(o+1).toString()+'" />'}if(e+=t+="</sheets>",this.printTitles.size>0){var n="<definedNames>";this.printTitles.forEach((function(e,t){n+='<definedName name="_xlnm.Print_Titles" localSheetId="'+t+'">'+e+"</definedName>"})),e+=n+="</definedNames>"}this.addToArchive(e+"</workbook>","xl/workbook.xml")},e.prototype.saveWorksheets=function(){for(var e=this.worksheets.length,t=0;t<e;t++)this.saveWorksheet(this.worksheets[t],t)},e.prototype.saveWorksheet=function(e,t){var r=new E,o='<?xml version="1.0" encoding="utf-8" standalone="yes"?><worksheet xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">';if(e.isSummaryRowBelow?o+="<sheetPr />":o+='<sheetPr><outlinePr summaryBelow="0" ></outlinePr></sheetPr>',o+=this.saveSheetView(e),void 0!==e.columns){for(var i="<cols>",n=0,s=e.columns;n<s.length;n++){var l=s[n];void 0!==l.width?i+='<col min="'+l.index+'" max="'+l.index+'" width="'+this.pixelsToColumnWidth(l.width)+'" customWidth="1" />':i+='<col min="'+l.index+'" max="'+l.index+'" width="8.43" customWidth="1" />'}o+=i+"</cols>"}if(o+="<sheetData>",r.append(o),o="",void 0!==e.rows)for(var a=0,d=e.rows;a<d.length;a++){var h=d[a],p='<row r="'+h.index+'" ';(0,N.isNullOrUndefined)(h.spans)||(p+='spans="'+h.spans+'" '),void 0!==h.height&&(p+='ht="'+this.pixelsToRowHeight(h.height)+'" customHeight="1" '),void 0!==h.grouping&&(h.grouping.isHidden&&(p+='hidden="1" '),void 0!==h.grouping.outlineLevel&&(p+='outlineLevel="'+h.grouping.outlineLevel+'" '),h.grouping.isCollapsed&&(p+='collapsed="1" ')),p+=">";for(var m=0,u=h.cells;m<u.length;m++){var c=u[m];void 0===c||void 0===c.value&&void 0===c.cellStyle||(p+='<c r="'+c.refName+'" ',void 0!==c.saveType&&(p+='t="'+c.saveType+'" '),void 0!==c.styleIndex&&(p+='s="'+c.styleIndex+'" '),p+=" >",void 0!==c.formula&&(p+="<f>"+c.formula+"</f>"),void 0!==c.value?p+="<v>"+c.value+"</v></c>":p+="</c>")}p+="</row>",r.append(p)}if(o+="</sheetData>",null!==e.autoFilters&&void 0!==e.autoFilters&&(o+='<autoFilter ref="'+this.getCellName(e.autoFilters.row,e.autoFilters.column)+":"+this.getCellName(e.autoFilters.lastRow,e.autoFilters.lastColumn)+'"/>'),e.mergeCells.length>0){o+='<mergeCells count="'+e.mergeCells.length+'">';for(var f=0,v=e.mergeCells;f<v.length;f++){o+='<mergeCell ref="'+v[f].ref+'" />'}o+="</mergeCells>"}if(e.hyperLinks.length>0){o+="<hyperlinks>";for(var g=0,y=e.hyperLinks;g<y.length;g++){var x=y[g];o+='<hyperlink ref="'+x.ref+'" r:id="rId'+x.rId+'" />'}o+="</hyperlinks>"}o+='<pageMargins left="0.75" right="0.75" top="1" bottom="1" header="0.5" footer="0.5" /><headerFooter scaleWithDoc="1" alignWithMargins="0" differentFirst="0" differentOddEven="0" />',null!=e.images&&e.images.length>0&&(this.drawingCount++,this.saveDrawings(e,e.index),o+='<drawing r:id="rId'+(e.hyperLinks.length+1)+'"/>'),this.addToArchive(this.saveSheetRelations(e),"xl/worksheets/_rels/sheet"+e.index+".xml.rels"),r.append(o+"</worksheet>"),this.addToArchive(r.getBlob(),"xl/worksheets/sheet"+(t+1)+".xml")},e.prototype.saveDrawings=function(e,t){var r=new E,o='<xdr:wsDr xmlns:xdr="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">';if(void 0!==e.images){for(var i=0,n=0,s=e.images;n<s.length;n++){var l=s[n];void 0!==l.height&&void 0!==l.width?(this.updatelastRowOffset(e,l),this.updatelastColumnOffSet(e,l),l.lastRow-=1,l.lastColumn-=1):void 0!==l.lastRow&&void 0!==l.lastColumn&&(l.lastRowOffset=0,l.lastColOffset=0),i++,o+='<xdr:twoCellAnchor editAs="oneCell">',o+="<xdr:from><xdr:col>",o+=l.column-1,o+="</xdr:col><xdr:colOff>",o+=0,o+="</xdr:colOff><xdr:row>",o+=l.row-1,o+="</xdr:row><xdr:rowOff>",o+=0,o+="</xdr:rowOff></xdr:from>",o+="<xdr:to><xdr:col>",o+=l.lastColumn,o+="</xdr:col><xdr:colOff>",o+=l.lastColOffset,o+="</xdr:colOff><xdr:row>",o+=l.lastRow,o+="</xdr:row><xdr:rowOff>",o+=l.lastRowOffset,o+="</xdr:rowOff></xdr:to>",o+="<xdr:pic>",o+="<xdr:nvPicPr>",o+='<xdr:cNvPr id="'+i+'" name="Picture '+i+'"> </xdr:cNvPr>',o+='<xdr:cNvPicPr><a:picLocks noChangeAspect="1"/></xdr:cNvPicPr> </xdr:nvPicPr>',o+="<xdr:blipFill>",o+='<a:blip xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" r:embed="rId'+i+'" cstate="print">',o+="</a:blip><a:stretch><a:fillRect /></a:stretch></xdr:blipFill>",o+="<xdr:spPr>",o+="<a:xfrm",null!=l.rotation&&l.rotation<=3600&&l.rotation>=-3600&&(o+=' rot="'+6e4*l.rotation+'"'),null!=l.verticalFlip&&0!=l.verticalFlip&&(o+=' flipV="1"'),null!=l.horizontalFlip&&0!=l.horizontalFlip&&(o+=' flipH="1"'),o+="/>",o+='<a:prstGeom prst="rect"><a:avLst /></a:prstGeom></xdr:spPr>',o+="</xdr:pic><xdr:clientData /></xdr:twoCellAnchor>";new E;var a=this.convertBase64toImage(l.image);this.imageCount+=1,this.addToArchive(a,"xl/media/image"+this.imageCount+".png")}r.append(o),r.append("</xdr:wsDr>"),this.saveDrawingRelations(e),this.addToArchive(r.getBlob(),"xl/drawings/drawing"+this.drawingCount+".xml")}},e.prototype.updatelastRowOffset=function(e,t){for(var r=t.height,o=t.row,i=0;r>=0;){var n=0,s=(n=void 0!==e.rows&&void 0!==e.rows[o-1]?this.convertToPixels(void 0===e.rows[o-1].height?15:e.rows[o-1].height):this.convertToPixels(15))-i*n/256;if(s>r){t.lastRow=o,t.lastRowOffset=i+256*r/n;var l=0;l=void 0!==e.rows&&void 0!==e.rows[o-1]?this.convertToPixels(void 0===e.rows[o-1].height?15:e.rows[o-1].height):this.convertToPixels(15),t.lastRowOffset=l*t.lastRowOffset/256,t.lastRowOffset=Math.round(t.lastRowOffset/this.unitsProportions[7]);break}r-=s,o++,i=0}},e.prototype.updatelastColumnOffSet=function(e,t){for(var r=t.width,o=t.column,i=0;r>=0;){var n=0,s=(n=void 0!==e.columns&&void 0!==e.columns[o-1]?this.ColumnWidthToPixels(void 0===e.columns[o-1].width?8.43:e.columns[o-1].width):this.ColumnWidthToPixels(8.43))-i*n/1024;if(s>r){t.lastColumn=o,t.lastColOffset=i+1024*r/n;var l=0;l=void 0!==e.columns&&void 0!==e.columns[o-1]?this.ColumnWidthToPixels(void 0===e.columns[o-1].width?8.43:e.columns[o-1].width):this.ColumnWidthToPixels(8.43),t.lastColOffset=l*t.lastColOffset/1024,t.lastColOffset=Math.round(t.lastColOffset/this.unitsProportions[7]);break}r-=s,o++,i=0}},e.prototype.convertToPixels=function(e){return e*this.unitsProportions[6]},e.prototype.convertBase64toImage=function(e){for(var t=window.atob(e),r=new ArrayBuffer(t.length),o=new Uint8Array(r),i=0;i<t.length;i++)o[i]=t.charCodeAt(i);return new Blob([o],{type:"image/png"})},e.prototype.saveDrawingRelations=function(e){for(var t='<?xml version="1.0" encoding="utf-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">',r=e.images.length,o=this.imageCount-e.images.length,i=1;i<=r;i++)t+='<Relationship Id="rId'+i+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="../media/image'+ ++o+'.png" />';this.addToArchive(t+"</Relationships>","xl/drawings/_rels/drawing"+this.drawingCount+".xml.rels")},e.prototype.pixelsToColumnWidth=function(e){var t=e>12?this.trunc((e-5)/7*100+.5)/100:e/12;return t>1?(7*t+5)/7*256/256:12*t/7*256/256},e.prototype.ColumnWidthToPixels=function(e){var t=e>1?(7*e+5)/7*256/256:12*e/7*256/256;return this.trunc((256*t+this.trunc(128/7))/256*7)},e.prototype.trunc=function(e){var t=e-e%1;return 0===t&&(e<0||0===e&&1/e!=1/0)?-0:t},e.prototype.pixelsToRowHeight=function(e){return e*this.unitsProportions[5]/this.unitsProportions[6]},e.prototype.saveSheetRelations=function(e){for(var t='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">',r=0,o=e.hyperLinks;r<o.length;r++){var i=o[r];t+='<Relationship Id="rId'+i.rId+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="'+this.processString(i.target)+'" TargetMode="External" />'}return null!=e.images&&e.images.length>0&&(t+='<Relationship Id="rId'+(e.hyperLinks.length+1)+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing" Target="../drawings/drawing'+this.drawingCount+'.xml" />'),t+="</Relationships>"},e.prototype.saveSheetView=function(e){var t='<sheetViews><sheetView workbookViewId="0" ';return!0===e.enableRtl&&(t+='rightToLeft="1"'),!1===e.showGridLines?t+='showGridLines="0" >':t+=">",void 0!==e.freezePanes&&(t+='<pane state="frozen" topLeftCell="'+e.freezePanes.leftCell+'" ',0!==e.freezePanes.row&&(t+='ySplit="'+e.freezePanes.row+'" '),0!==e.freezePanes.column&&(t+='xSplit="'+e.freezePanes.column+'" '),t+="/>"),t+="</sheetView></sheetViews > "},e.prototype.saveSharedString=function(){var e=this.sharedString.length;if(e>0){for(var t='<?xml version="1.0" encoding="utf-8"?><sst uniqueCount="'+e+'" count="'+this.sharedStringCount+'" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">',r="",o=0;o<e;o++)0!==this.sharedString[o].indexOf("<r>")?(r+="<si><t>",r+=this.processString(this.sharedString[o]),r+="</t></si>"):(r+="<si>",r+=this.sharedString[o],r+="</si>");r+="</sst>",this.addToArchive(t+r,"xl/sharedStrings.xml")}},e.prototype.processString=function(e){if("string"==typeof e)-1!==e.indexOf("&")&&(e=e.replace(/&/g,"&amp;")),-1!==e.indexOf("<")&&(e=e.replace(/</g,"&lt;")),-1!==e.indexOf(">")&&(e=e.replace(/>/g,"&gt;")),-1!==e.indexOf("\v")&&(e=e.replace(/\v/g,"_x000B_"));else if("object"==typeof e)for(var t=0;t<e.length;t++)-1!==e[t].indexOf("&")&&(e[t]=e[t].replace(/&/g,"&amp;")),-1!==e[t].indexOf("<")&&(e[t]=e[t].replace(/</g,"&lt;")),-1!==e[t].indexOf(">")&&(e[t]=e[t].replace(/>/g,"&gt;")),-1!==e[t].indexOf("\v")&&(e[t]=e[t].replace(/\v/g,"_x000B_"));return e},e.prototype.saveStyles=function(){this.updateCellXfsStyleXfs();var e='<?xml version="1.0" encoding="utf-8"?><styleSheet xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">';e+=this.saveNumberFormats(),e+=this.saveFonts(),e+=this.saveFills(),e+=this.saveBorders(),e+=this.saveCellStyleXfs(),e+=this.saveCellXfs(),e+=this.saveCellStyles(),this.addToArchive(e+"</styleSheet>","xl/styles.xml")},e.prototype.updateCellXfsStyleXfs=function(){for(var e=0,t=this.mStyles;e<t.length;e++){var n=t[e],s=void 0;n.isGlobalStyle?(s=new l).xfId=n.index-1:(s=new o).xfId=0;var a=this.isNewFont(n);if(a.result)s.fontId=a.index;else{var h=new r;h.b=n.bold,h.i=n.italic,h.name=n.fontName,h.sz=n.fontSize,h.u=n.underline,h.strike=n.strikeThrough,h.color="FF"+n.fontColor.replace("#",""),this.mFonts.push(h),s.fontId=this.mFonts.length-1}if("none"!==n.backColor){var p="FF"+n.backColor.replace("#","");if(this.mFills.has(p)){var m=this.mFills.get(p);s.fillId=m}else{m=this.mFills.size+2;this.mFills.set(p,m),s.fillId=m}}else s.fillId=0;if(this.isNewBorder(n)?s.borderId=0:(this.mBorders.push(n.borders),s.borderId=this.mBorders.length),"GENERAL"!==n.numberFormat)if(this.mNumFmt.has(n.numberFormat)){var u=this.mNumFmt.get(n.numberFormat);s.numFmtId=u.numFmtId}else{var c=this.mNumFmt.size+164;this.mNumFmt.set(n.numberFormat,new d(c,n.numberFormat)),s.numFmtId=c}else"GENERAL"===n.numberFormat&&14===n.numFmtId?s.numFmtId=14:s.numFmtId=0;n.isGlobalStyle||(s.applyAlignment=1),s.alignment=new i,s.alignment.indent=n.indent,s.alignment.horizontal=n.hAlign,s.alignment.vertical=n.vAlign,s.alignment.wrapText=n.wrapText?1:0,s.alignment.rotation=n.rotation,n.isGlobalStyle?(this.mCellStyleXfs.push(s),this.mCellXfs.push(s)):this.mCellXfs.push(s)}},e.prototype.saveNumberFormats=function(){if(this.mNumFmt.size>=1){var e='<numFmts count="'+this.mNumFmt.size+'">';return this.mNumFmt.forEach((function(t,r){e+='<numFmt numFmtId="'+t.numFmtId+'" formatCode="'+t.formatCode.replace(/"/g,"&quot;")+'" />'})),e+="</numFmts>"}return""},e.prototype.saveFonts=function(){var e='<fonts count="'+this.mFonts.length+'">';if(this.mFonts.length>=1)for(var t=0,r=this.mFonts;t<r.length;t++){var o=r[t];e+="<font>",o.b&&(e+="<b />"),o.i&&(e+="<i />"),o.u&&(e+="<u />"),o.strike&&(e+="<strike />"),e+='<sz val="'+o.sz+'" />',e+='<color rgb="'+o.color+'" />',e+='<name val="'+o.name+'" /></font>'}return e+"</fonts>"},e.prototype.saveFills=function(){var e='<fills count="'+(this.mFills.size+2)+'"><fill><patternFill patternType="none"></patternFill></fill><fill><patternFill patternType="gray125"></patternFill></fill>';return this.mFills.size>=1&&this.mFills.forEach((function(t,r){e+='<fill><patternFill patternType="solid"><fgColor rgb="'+r+'" /><bgColor rgb="FFFFFFFF" /></patternFill></fill>'})),e+"</fills>"},e.prototype.saveBorders=function(){var e='<borders count="'+(this.mBorders.length+1)+'"><border><left /><right /><top /><bottom /><diagonal /></border>';if(this.mBorders.length>=1)for(var t=0,r=this.mBorders;t<r.length;t++){var o=r[t];if(this.isAllBorder(o)){var i=o.all.color.replace("#",""),n=o.all.lineStyle;e+='<border><left style="'+n+'"><color rgb="FF'+i+'" /></left><right style="'+n+'"><color rgb="FF'+i+'" /></right><top style="'+n+'"><color rgb="FF'+i+'" /></top><bottom style="'+n+'"><color rgb="FF'+i+'" /></bottom></border>'}else e+='<border><left style="'+o.left.lineStyle+'"><color rgb="FF'+o.left.color.replace("#","")+'" /></left><right style="'+o.right.lineStyle+'"><color rgb="FF'+o.right.color.replace("#","")+'" /></right><top style="'+o.top.lineStyle+'"><color rgb="FF'+o.top.color.replace("#","")+'" /></top><bottom style="'+o.bottom.lineStyle+'"><color rgb="FF'+o.bottom.color.replace("#","")+'" /></bottom></border>'}return e+"</borders>"},e.prototype.saveCellStyles=function(){var e=this,t='<cellStyles count="'+this.cellStyles.size+'">';return this.cellStyles.forEach((function(r,o){t+='<cellStyle name="'+o+'" xfId="'+e.cellStyles.get(o).xfId+'"',"Normal"===o&&(t+=' builtinId="0"'),t+=" />"})),t+="</cellStyles>"},e.prototype.saveCellStyleXfs=function(){var e='<cellStyleXfs count="'+(this.mCellStyleXfs.length+1)+'"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" />';if(this.mCellStyleXfs.length>=1)for(var t=0,r=this.mCellStyleXfs;t<r.length;t++){var o=r[t];e+='<xf numFmtId="'+o.numFmtId+'" fontId="'+o.fontId+'" fillId="'+o.fillId+'" borderId="'+o.borderId+'" ',void 0!==o.alignment?e+=">"+this.saveAlignment(o)+"</xf>":e+=" />"}return e+"</cellStyleXfs>"},e.prototype.saveCellXfs=function(){var e='<cellXfs count="'+(this.mCellXfs.length+1)+'"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" />';if(this.mCellXfs.length>=1)for(var t=0,r=this.mCellXfs;t<r.length;t++){var o=r[t];e+='<xf numFmtId="'+o.numFmtId+'" fontId="'+o.fontId+'" fillId="'+o.fillId+'" borderId="'+o.borderId+'" xfId="'+o.xfId+'" ',1===o.applyAlignment&&(e+='applyAlignment="1"'),e+=">"+this.saveAlignment(o)+"</xf>"}return e+"</cellXfs>"},e.prototype.saveAlignment=function(e){var t="<alignment ";return void 0!==e.alignment.horizontal&&(t+='horizontal="'+e.alignment.horizontal+'" '),void 0!==e.alignment.indent&&0!==e.alignment.indent?t+='indent="'+e.alignment.indent+'" ':void 0!==e.alignment.rotation&&0!==e.alignment.rotation&&(t+='textRotation="'+e.alignment.rotation+'" '),void 0!==e.alignment.vertical&&(t+='vertical="'+e.alignment.vertical+'" '),t+='wrapText="'+e.alignment.wrapText+'" />'},e.prototype.saveApp=function(e){var t='<?xml version="1.0" encoding="utf-8" standalone="yes"?><Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"><Application>Essential XlsIO</Application>';void 0!==e&&(void 0!==e.manager&&(t+="<Manager>"+e.manager+"</Manager>"),void 0!==e.company&&(t+="<Company>"+e.company+"</Company>")),this.addToArchive(t+"</Properties>","docProps/app.xml")},e.prototype.saveCore=function(e){var t=new Date,r='<?xml version="1.0" encoding="utf-8" standalone="yes"?><cp:coreProperties xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties">';void 0!==this.builtInProperties?(void 0!==e.author&&(r+="<dc:creator>"+e.author+"</dc:creator>"),void 0!==e.subject&&(r+="<dc:subject>"+e.subject+"</dc:subject>"),void 0!==e.category&&(r+="<cp:category>"+e.category+"</cp:category>"),void 0!==e.comments&&(r+="<dc:description>"+e.comments+"</dc:description>"),void 0!==e.title&&(r+="<dc:title>"+e.title+"</dc:title>"),void 0!==e.tags&&(r+="<cp:keywords>"+e.tags+"</cp:keywords>"),void 0!==e.status&&(r+="<cp:contentStatus>"+e.status+"</cp:contentStatus>"),void 0!==e.createdDate?r+='<dcterms:created xsi:type="dcterms:W3CDTF">'+e.createdDate.toISOString()+"</dcterms:created>":r+='<dcterms:created xsi:type="dcterms:W3CDTF">'+t.toISOString()+"</dcterms:created>",void 0!==e.modifiedDate?r+='<dcterms:modified xsi:type="dcterms:W3CDTF">'+e.modifiedDate.toISOString()+"</dcterms:modified>":r+='<dcterms:modified xsi:type="dcterms:W3CDTF">'+t.toISOString()+"</dcterms:modified>"):(r+='<dcterms:created xsi:type="dcterms:W3CDTF">'+t.toISOString()+"</dcterms:created>",r+='<dcterms:modified xsi:type="dcterms:W3CDTF">'+t.toISOString()+"</dcterms:modified>"),r+="</cp:coreProperties>",this.addToArchive(r,"docProps/core.xml")},e.prototype.saveTopLevelRelation=function(){this.addToArchive('<?xml version="1.0" encoding="utf-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" /><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml" /><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml" /></Relationships>',"_rels/.rels")},e.prototype.saveWorkbookRelation=function(){for(var e='<?xml version="1.0" encoding="utf-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">',t=this.worksheets.length,r=0,o=0;o<t;o++,r++)e+='<Relationship Id="rId'+(o+1).toString()+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet'+(o+1).toString()+'.xml" />';e+='<Relationship Id="rId'+(++r).toString()+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml" />',this.sharedStringCount>0&&(e+='<Relationship Id="rId'+(++r).toString()+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml" />'),this.addToArchive(e+"</Relationships>","xl/_rels/workbook.xml.rels")},e.prototype.saveContentType=function(){for(var e='<?xml version="1.0" encoding="utf-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="xml" ContentType="application/xml" /><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml" /><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml" />',t="",r=this.worksheets.length,o=0,i=0;i<r;i++)t+='<Override PartName="/xl/worksheets/sheet'+(i+1).toString()+'.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" />',null!=this.worksheets[i].images&&this.worksheets[i].images.length>0&&(t+='<Override PartName="/xl/drawings/drawing'+(++o).toString()+'.xml" ContentType="application/vnd.openxmlformats-officedocument.drawing+xml" />');this.imageCount>0&&(t+='<Default Extension="png" ContentType="image/png" />'),this.sharedStringCount>0&&(e+='<Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" />'),this.addToArchive(e+t+"</Types>","[Content_Types].xml")},e.prototype.addToArchive=function(e,t){if("string"==typeof e){var r=new Blob([e],{type:"text/plain"}),o=new P.ZipArchiveItem(r,t);this.mArchive.addItem(o)}else{o=new P.ZipArchiveItem(e,t);this.mArchive.addItem(o)}},e.prototype.processMergeCells=function(e,t,r){if(0!==e.rowSpan||0!==e.colSpan){var o=new I;o.x=e.index,o.width=e.colSpan,o.y=t,o.height=e.rowSpan;var i=this.getCellName(o.y,o.x),n=this.getCellName(t+o.height,e.index+o.width);o.ref=i+":"+n;r.add(o);var s={x:o.x,y:o.y},l={x:e.index+o.width,y:t+o.height};this.updatedMergedCellStyles(s,l,e)}return r},e.prototype.updatedMergedCellStyles=function(e,t,r){for(var o=e.x;o<=t.x;o++)for(var i=e.y;i<=t.y;i++)this.mergedCellsStyle.set(this.getCellName(i,o),{x:o,y:i,styleIndex:r.styleIndex})},e.prototype.dateToTicks=function(e,t,r){if(e>=1&&e<=9999&&t>=1&&t<=12){var o=e-1;return 864e9*(365*o+(o/4|0)-(o/100|0)+(o/400|0)+(this.isLeapYear(e)?[0,31,60,91,121,152,182,213,244,274,305,335,366]:[0,31,59,90,120,151,181,212,243,273,304,334,365])[t-1]+r-1)}throw new Error("Not a valid date")},e.prototype.timeToTicks=function(e,t,r){if(e>=0&&e<24&&t>=0&&t<60&&r>=0&&r<60)return 1e4*(3600*e+60*t+r)*1e3;throw new Error("Not valid time")},e.prototype.isLeapYear=function(e){return e%4==0&&(e%100!=0||e%400==0)},e.prototype.toOADate=function(e){var t;if(0===(t=this.dateToTicks(e.getFullYear(),e.getMonth()+1,e.getDate())+this.timeToTicks(e.getHours(),e.getMinutes(),e.getSeconds())))return 0;if(t<31241376e9)throw new Error("Arg_OleAutDateInvalid");return(t-599264352e9)/1e4/864e5},e}(),L=function(){}})(),s})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("SyncfusionCompression"),require("SyncfusionBase"),require("SyncfusionFileUtils")):"function"==typeof define&&define.amd?define(["SyncfusionCompression","SyncfusionBase","SyncfusionFileUtils"],t):"object"==typeof exports?exports.SyncfusionExcelExport=t(require("SyncfusionCompression"),require("SyncfusionBase"),require("SyncfusionFileUtils")):e.SyncfusionExcelExport=t(e.SyncfusionCompression,e.SyncfusionBase,e.SyncfusionFileUtils)}(self,((e,t,r)=>(()=>{"use strict";var o={766:e=>{e.exports=t},50:t=>{t.exports=e},115:e=>{e.exports=r}},i={};function n(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return o[e](r,r.exports,n),r.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{n.r(s),n.d(s,{Alignment:()=>i,BlobHelper:()=>E,Border:()=>h,Borders:()=>p,BuiltInProperties:()=>L,Cell:()=>u,CellStyle:()=>t,CellStyleXfs:()=>l,CellStyles:()=>a,CellXfs:()=>o,Cells:()=>c,Column:()=>f,CsvHelper:()=>B,Font:()=>r,FreezePane:()=>k,Grouping:()=>C,HyperLink:()=>S,MergeCell:()=>I,MergeCells:()=>T,NumFmt:()=>d,Row:()=>g,Rows:()=>y,ValueFormatter:()=>O,Workbook:()=>z,Worksheet:()=>F,Worksheets:()=>w});var e,t=function(){this.numFmtId=0,this.backColor="none",this.fontName="Calibri",this.fontSize=10.5,this.fontColor="#000000",this.italic=!1,this.bold=!1,this.underline=!1,this.strikeThrough=!1,this.wrapText=!1,this.hAlign="general",this.vAlign="bottom",this.indent=0,this.rotation=0,this.numberFormat="GENERAL",this.type="datetime",this.borders=new p,this.isGlobalStyle=!1},r=function(){this.sz=10.5,this.name="Calibri",this.u=!1,this.b=!1,this.i=!1,this.color="FF000000",this.strike=!1},o=function(){},i=function(){},l=function(){},a=function(){this.name="Normal",this.xfId=0},d=function(e,t){this.numFmtId=e,this.formatCode=t},h=function(e,t){this.lineStyle=e,this.color=t},p=function(){this.left=new h("none","#FFFFFF"),this.right=new h("none","#FFFFFF"),this.top=new h("none","#FFFFFF"),this.bottom=new h("none","#FFFFFF"),this.all=new h("none","#FFFFFF")},m=(e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)},function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}),u=function(){},c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.add=function(e){for(var r=!1,o=0,i=0,n=t;i<n.length;i++){n[i].index===e.index&&(t[o]=e,r=!0),o++}r||t.push(e)},t}return m(t,e),t}(Array),f=function(){},v=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),g=function(){},y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.add=function(e){t.push(e)},t}return v(t,e),t}(Array),x=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return x(t,e),t}(Array),b=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),F=function(){this.isSummaryRowBelow=!0,this.showGridLines=!0,this.enableRtl=!1},S=function(){},C=function(){},k=function(){},I=function(){},T=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.add=function(e){for(var o=!1,i=0,n=0,s=r;n<s.length;n++){var l=s[n];if(t.isIntersecting(l,e)){var a=new I;a.x=Math.min(l.x,e.x),a.y=Math.min(l.Y,e.y),a.width=Math.max(l.Width+l.X,e.width+e.x),a.height=Math.max(l.Height+l.Y,e.height+e.y),a.ref=r[i].ref.split(":")[0]+":"+e.ref.split(":")[1],r[i]=a,e=a,o=!0}i++}return o||r.push(e),e},r}return b(t,e),t.isIntersecting=function(e,t){return e.x<=t.x+t.width&&t.x<=e.x+e.width&&e.y<=t.y+t.height&&t.y<=e.y+e.height},t}(Array),R=function(){},P=n(50),N=n(766),O=function(){function e(e){this.intl=new N.Internationalization}return e.prototype.getFormatFunction=function(e,t){return e.type?(t&&(e.isServerRendered=!0),this.intl.getDateFormat(e)):this.intl.getNumberFormat(e)},e.prototype.toView=function(e,t){var r=e;return(0,N.isNullOrUndefined)(t)||(0,N.isNullOrUndefined)(e)||(r=t(e)),r},e.prototype.displayText=function(e,t,r){return this.toView(e,this.getFormatFunction(t,r))},e}(),A=n(115),B=function(){function e(e,t){if(this.csvStr="",this.separator=null==t?",":t,this.formatter=new O,this.isMicrosoftBrowser=!!navigator.msSaveBlob,null!==e.isServerRendered&&void 0!==e.isServerRendered&&(this.isServerRendered=e.isServerRendered),null!==e.styles&&void 0!==e.styles){this.globalStyles=new Map;for(var r=0;r<e.styles.length;r++)void 0!==e.styles[r].name&&void 0!==e.styles[r].numberFormat&&this.globalStyles.set(e.styles[r].name,e.styles[r].numberFormat)}null!==e.worksheets&&void 0!==e.worksheets&&this.parseWorksheet(e.worksheets[0])}return e.prototype.parseWorksheet=function(e){null!==e.rows&&void 0!==e.rows&&this.parseRows(e.rows)},e.prototype.parseRows=function(e){for(var t=1,r=0,o=e;r<o.length;r++){var i=o[r];if(null===i.index||void 0===i.index)throw Error("Row index is missing.");for(;t<i.index;)this.csvStr+="\r\n",t++;this.parseRow(i)}this.csvStr+="\r\n"},e.prototype.parseRow=function(e){if(null!==e.cells&&void 0!==e.cells)for(var t=1,r=0,o=e.cells;r<o.length;r++){var i=o[r];if(null===i.index||void 0===i.index)throw Error("Cell index is missing.");for(;t<i.index;)this.csvStr+=this.separator,t++;this.parseCell(i)}},e.prototype.parseCell=function(e){var t=this.csvStr;if(void 0!==e.value)if(e.value instanceof Date)if(void 0!==e.style&&void 0!==e.style.numberFormat)try{t+=this.parseCellValue(this.formatter.displayText(e.value,{type:"dateTime",skeleton:e.style.numberFormat},this.isServerRendered))}catch(r){t+=this.parseCellValue(this.formatter.displayText(e.value,{type:"dateTime",format:e.style.numberFormat},this.isServerRendered))}else if(void 0!==e.style&&void 0!==e.style.name&&this.globalStyles.has(e.style.name))try{t+=this.parseCellValue(this.formatter.displayText(e.value,{type:"dateTime",skeleton:this.globalStyles.get(e.style.name)},this.isServerRendered))}catch(r){t+=this.parseCellValue(this.formatter.displayText(e.value,{type:"dateTime",format:this.globalStyles.get(e.style.name)},this.isServerRendered))}else t+=e.value;else"boolean"==typeof e.value?t+=e.value?"TRUE":"FALSE":"number"==typeof e.value?void 0!==e.style&&void 0!==e.style.numberFormat?t+=this.parseCellValue(this.formatter.displayText(e.value,{format:e.style.numberFormat,ignoreCurrency:!0},this.isServerRendered)):void 0!==e.style&&void 0!==e.style.name&&this.globalStyles.has(e.style.name)?t+=this.parseCellValue(this.formatter.displayText(e.value,{format:this.globalStyles.get(e.style.name),ignoreCurrency:!0},this.isServerRendered)):t+=e.value:t+=this.parseCellValue(e.value);this.csvStr=t},e.prototype.parseCellValue=function(e){for(var t="",r=e.length,o=0;o<r;o++)'"'===e[o]?t+=e[o].replace('"','""'):t+=e[o];return-1!==(e=t).indexOf(this.separator)||-1!==e.indexOf("\n")||-1!==e.indexOf('"')?'"'+e+'"':e},e.prototype.save=function(e){if(this.buffer=new Blob(["\ufeff"+this.csvStr],{type:"text/csv;charset=UTF-8"}),this.isMicrosoftBrowser)navigator.msSaveBlob(this.buffer,e);else{var t=window.URL.createObjectURL(this.buffer),r=document.createElementNS("http://www.w3.org/1999/xhtml","a");r.download=e,r.href=t;var o=document.createEvent("MouseEvent");o.initEvent("click",!0,!0),r.dispatchEvent(o),setTimeout((function(){window.URL.revokeObjectURL(t)}))}},e.prototype.saveAsBlob=function(e){if(null!=e){var t=new A.Encoding,r="UTF-8";"ANSI"==e.toUpperCase()?(t.type="Ansi",r="ANSI"):"UNICODE"==e.toUpperCase()?(t.type="Unicode",r="UNICODE"):(t.type="Utf8",r="UTF-8");var o=t.getBytes(this.csvStr,0,this.csvStr.length);return new Blob([o],{type:"text/csv;charset="+r})}return new Blob(["\ufeff"+this.csvStr],{type:"text/csv;charset=UTF-8"})},e}(),E=function(){function e(){this.parts=[]}return e.prototype.append=function(e){this.parts.push(e),this.blob=void 0},e.prototype.getBlob=function(){return new Blob(this.parts,{type:"text/plain"})},e}(),D=function(){},z=function(){function e(e,o,i,n,s){if(this.sharedStringCount=0,this.unitsProportions=[1.28,.32,96,96/25.4,96/2.54,1,96/72,96/72/12700],this.hyperlinkStyle={fontColor:"#0000FF",underline:!0},this.culture=void 0!==i?i:"en-US",this.currency=void 0!==n?n:"USD",this.intl=new N.Internationalization(this.culture),this.mSaveType=o,"xlsx"===o){if(this.mArchive=new P.ZipArchive,this.sharedString=[],this.mFonts=[],this.mBorders=[],this.mStyles=[],this.printTitles=new Map,this.cellStyles=new Map,this.mNumFmt=new Map,this.mFills=new Map,this.mStyles.push(new t),this.mFonts.push(new r),this.cellStyles.set("Normal",new a),this.mCellXfs=[],this.mCellStyleXfs=[],this.drawingCount=0,this.imageCount=0,null!==e.styles&&void 0!==e.styles){this.globalStyles=new Map;for(var l=0;l<e.styles.length;l++)if(void 0!==e.styles[l].name){if(this.cellStyles.has(e.styles[l].name))throw Error("Style name "+e.styles[l].name+" is already existed");var d=new t;d.isGlobalStyle=!0,this.parserCellStyle(e.styles[l],d,"none");var h=new a;h.name=d.name,h.xfId=d.index-1,this.cellStyles.set(h.name,h);var p={};void 0!==e.styles[l].numberFormat&&(p.format=e.styles[l].numberFormat),void 0!==e.styles[l].type?p.type=e.styles[l].type:p.type="datetime",void 0!==p.format&&this.globalStyles.set(e.styles[l].name,p)}}if(null===e.worksheets||void 0===e.worksheets)throw Error("Worksheet is expected.");this.parserWorksheets(e.worksheets),null!==e.builtInProperties&&void 0!==e.builtInProperties&&(this.builtInProperties=new L,this.parserBuiltInProperties(e.builtInProperties,this.builtInProperties))}else this.csvHelper=new B(e,s)}return e.prototype.parserBuiltInProperties=function(e,t){null!==e.author&&void 0!==e.author&&(t.author=e.author),null!==e.comments&&void 0!==e.comments&&(t.comments=e.comments),null!==e.category&&void 0!==e.category&&(t.category=e.category),null!==e.company&&void 0!==e.company&&(t.company=e.company),null!==e.manager&&void 0!==e.manager&&(t.manager=e.manager),null!==e.subject&&void 0!==e.subject&&(t.subject=e.subject),null!==e.title&&void 0!==e.title&&(t.title=e.title),null!==e.createdDate&&void 0!==e.createdDate&&(t.createdDate=e.createdDate),null!==e.modifiedDate&&void 0!==e.modifiedDate&&(t.modifiedDate=e.modifiedDate),null!==e.tags&&void 0!==e.tags&&(t.tags=e.tags),null!==e.status&&void 0!==e.status&&(t.status=e.status)},e.prototype.parserWorksheets=function(e){this.worksheets=new w;for(var t=e.length,r=0;r<t;r++){var o=e[r],i=new F;this.mergeCells=new T,this.mergedCellsStyle=new Map,this.mHyperLinks=[],null!==o.name&&void 0!==o.name?i.name=o.name:i.name="Sheet"+(r+1).toString(),null!==o.enableRtl&&void 0!==o.enableRtl&&(i.enableRtl=o.enableRtl),i.index=r+1,null!==o.columns&&void 0!==o.columns&&this.parserColumns(o.columns,i),null!==o.rows&&void 0!==o.rows&&this.parserRows(o.rows,i),null!==o.showGridLines&&void 0!==o.showGridLines&&(i.showGridLines=o.showGridLines),null!==o.freeze&&void 0!==o.freeze&&this.parserFreezePanes(o.freeze,i),null!==o.printTitle&&void 0!==o.printTitle&&this.parserPrintTitle(o.printTitle,i),void 0!==o.pageSetup&&void 0!==o.pageSetup.isSummaryRowBelow&&(i.isSummaryRowBelow=o.pageSetup.isSummaryRowBelow),void 0!==o.images&&this.parserImages(o.images,i),null!==o.autoFilters&&void 0!==o.autoFilters&&this.parseFilters(o.autoFilters,i),i.index=r+1,i.mergeCells=this.mergeCells,i.hyperLinks=this.mHyperLinks,this.worksheets.push(i)}},e.prototype.mergeOptions=function(e,t){var r={};return this.applyProperties(e,r),this.applyProperties(t,r),r},e.prototype.applyProperties=function(e,t){for(var r=Object.keys(e),o=0;o<r.length;o++)"name"!==r[o]&&(t[r[o]]=e[r[o]])},e.prototype.getCellName=function(e,t){return this.getColumnName(t)+e.toString()},e.prototype.getColumnName=function(e){e--;var t="";do{var r=e%26;e=e/26-1,t=String.fromCharCode(65+r)+t}while(e>=0);return t},e.prototype.parserPrintTitle=function(e,t){var r,o,i="";if(null!==e.fromRow&&void 0!==e.fromRow){r="$"+e.fromRow+":$"+(null!==e.toRow&&void 0!==e.toRow?e.toRow:e.fromRow)}if(null!==e.fromColumn&&void 0!==e.fromColumn){var n=e.fromColumn,s=void 0;s=null!==e.toColumn&&void 0!==e.toColumn?e.toColumn:e.fromColumn,o="$"+this.getColumnName(n)+":$"+this.getColumnName(s)}void 0!==r&&(i+=t.name+"!"+r),void 0!==o&&void 0!==r?i+=","+t.name+"!"+o:void 0!==o&&(i+=t.name+"!"+o),""!==i&&this.printTitles.set(t.index-1,i)},e.prototype.parserFreezePanes=function(e,t){t.freezePanes=new k,null!==e.row&&void 0!==e.row?t.freezePanes.row=e.row:t.freezePanes.row=0,null!==e.column&&void 0!==e.column?t.freezePanes.column=e.column:t.freezePanes.column=0,t.freezePanes.leftCell=this.getCellName(t.freezePanes.row+1,t.freezePanes.column+1)},e.prototype.parserColumns=function(e,t){var r=e.length;t.columns=[];for(var o=0;o<r;o++){var i=new f;if(null===e[o].index||void 0===e[o].index)throw Error("Column index is missing.");i.index=e[o].index,null!==e[o].width&&void 0!==e[o].width&&(i.width=e[o].width),t.columns.push(i)}},e.prototype.parserRows=function(e,t){var r=e.length;t.rows=new y;for(var o=0,i=0;i<r;i++){var n=this.parserRow(e[i],o);o=n.index,t.rows.add(n)}this.insertMergedCellsStyle(t)},e.prototype.insertMergedCellsStyle=function(e){var t=this;this.mergeCells.length>0&&this.mergedCellsStyle.forEach((function(r,o){var i=e.rows.filter((function(e){return e.index===r.y}))[0];if((0,N.isNullOrUndefined)(i)){var n=e.rows.filter((function(e){return e.index<=r.y})),s=new g;s.index=r.y,s.cells=new c,s.cells.add(t.createCell(r,o));d=0;n.length>0&&(d=e.rows.indexOf(n[n.length-1])+1),e.rows.splice(d,0,s)}else{var l=i.cells.filter((function(e){return e.index===r.x}))[0];if((0,N.isNullOrUndefined)(l)){var a=i.cells.filter((function(e){return e.index<=r.x})),d=0;a.length>0&&(d=i.cells.indexOf(a[a.length-1])+1),i.cells.splice(d,0,t.createCell(r,o))}else l.styleIndex=r.styleIndex}}))},e.prototype.createCell=function(e,r){var o=new u;return o.refName=r,o.index=e.x,o.cellStyle=new t,o.styleIndex=e.styleIndex,o},e.prototype.parserRow=function(e,t){var r=new g;if(null!==e.height&&void 0!==e.height&&(r.height=e.height),null===e.index||void 0===e.index)throw Error("Row index is missing.");return r.index=e.index,null!==e.grouping&&void 0!==e.grouping&&this.parseGrouping(e.grouping,r),this.parseCells(e.cells,r),r},e.prototype.parseGrouping=function(e,t){t.grouping=new C,void 0!==e.outlineLevel&&(t.grouping.outlineLevel=e.outlineLevel),void 0!==e.isCollapsed&&(t.grouping.isCollapsed=e.isCollapsed),void 0!==e.isHidden&&(t.grouping.isHidden=e.isHidden)},e.prototype.parseCells=function(e,r){r.cells=new c;for(var o=void 0!==e?e.length:0,i=1,n=1,s=0;s<o;s++){var l=e[s],a=new u;if(null===l.index||void 0===l.index)throw Error("Cell index is missing.");if(a.index=l.index,a.index<i?i=a.index:a.index>n&&(n=a.index),a.refName=this.getCellName(r.index,a.index),null!==l.rowSpan&&void 0!==l.rowSpan?a.rowSpan=l.rowSpan-1:a.rowSpan=0,null!==l.colSpan&&void 0!==l.colSpan?a.colSpan=l.colSpan-1:a.colSpan=0,null!==l.hyperlink&&void 0!==l.hyperlink){var d=new S;void 0!==l.hyperlink.target&&(d.target=l.hyperlink.target,void 0!==l.hyperlink.displayText?a.value=l.hyperlink.displayText:a.value=l.hyperlink.target,a.type=this.getCellValueType(a.value),d.ref=a.refName,d.rId=this.mHyperLinks.length+1,this.mHyperLinks.push(d),a.cellStyle=new t,this.parserCellStyle(void 0!==l.style?this.mergeOptions(l.style,this.hyperlinkStyle):this.hyperlinkStyle,a.cellStyle,"string"),a.styleIndex=a.cellStyle.index)}null!==l.formula&&void 0!==l.formula&&(a.formula=l.formula,a.type="formula"),null!==l.value&&void 0!==l.value&&(void 0!==a.formula?a.value=0:(a.value=l.value,a.type=this.getCellValueType(a.value))),null!==l.style&&void 0!==l.style&&void 0===a.styleIndex?(a.cellStyle=new t,a.value instanceof Date?this.parserCellStyle(l.style,a.cellStyle,a.type,14):this.parserCellStyle(l.style,a.cellStyle,a.type),a.styleIndex=a.cellStyle.index):a.value instanceof Date&&(a.cellStyle=new t,this.parserCellStyle({},a.cellStyle,a.type,14),a.styleIndex=a.cellStyle.index),this.parseCellType(a),this.mergeCells=this.processMergeCells(a,r.index,this.mergeCells),r.cells.add(a),a.index+1}r.spans=i+":"+n},e.prototype.GetColors=function(){var e;return(e=new Map).set("WHITE","FFFFFFFF"),e.set("SILVER","FFC0C0C0"),e.set("GRAY","FF808080"),e.set("BLACK","FF000000"),e.set("RED","FFFF0000"),e.set("MAROON","FF800000"),e.set("YELLOW","FFFFFF00"),e.set("OLIVE","FF808000"),e.set("LIME","FF00FF00"),e.set("GREEN","FF008000"),e.set("AQUA","FF00FFFF"),e.set("TEAL","FF008080"),e.set("BLUE","FF0000FF"),e.set("NAVY","FF000080"),e.set("FUCHSIA","FFFF00FF"),e.set("PURPLE","FF800080"),e},e.prototype.processColor=function(e){return 0===e.indexOf("#")?e.replace("#","FF"):(e=e.toUpperCase(),this.rgbColors=this.GetColors(),e=this.rgbColors.has(e)?this.rgbColors.get(e):"FF000000")},e.prototype.processCellValue=function(e,t){var r=e;if(-1!==e.indexOf("<font")||-1!==e.indexOf("<a")||-1!==e.indexOf("<b>")||-1!==e.indexOf("<i>")||-1!==e.indexOf("<u>")){var o="",i=e.indexOf("<",0),n=e.indexOf(">",i+1);if(i>=0&&n>=0){for(0!==i&&(o+='<r><t xml:space="preserve">'+this.processString(e.substring(0,i))+"</t></r>");i>=0&&n>=0;)if((n=e.indexOf(">",i+1))>=0){var s=e.substring(i+1,n);(i=e.indexOf("<",n+1))<0&&(i=r.length);var l=r.substring(n+1,i);if(0!==l.length){var a=s.split(" ");if(a.length>0&&(o+="<r><rPr>"),a.length>1)for(var d=0,h=a;d<h.length;d++){var p=h[d];switch(p.trim().substring(0,5)){case"size=":o+='<sz val="'+p.substring(6,p.length-1)+'"/>';break;case"face=":o+='<rFont val="'+p.substring(6,p.length-1)+'"/>';break;case"color":o+='<color rgb="'+this.processColor(p.substring(7,p.length-1))+'"/>';break;case"href=":var m=new S;m.target=p.substring(6,p.length-1).trim(),m.ref=t.refName,m.rId=this.mHyperLinks.length+1,this.mHyperLinks.push(m),o+='<color rgb="FF0000FF"/><u/><b/>'}}else if(1===a.length){switch(a[0].trim()){case"b":o+="<b/>";break;case"i":o+="<i/>";break;case"u":o+="<u/>"}}o+='</rPr><t xml:space="preserve">'+this.processString(l)+"</t></r>"}}return""===o?r:o}return r}return r},e.prototype.applyGlobalStyle=function(e,t){this.cellStyles.has(e.name)&&(t.index=this.mStyles.filter((function(t){return t.name===e.name}))[0].index,t.name=e.name)},e.prototype.parserCellStyle=function(e,t,r,o){if(null!==e.name&&void 0!==e.name){if(!t.isGlobalStyle)return void this.applyGlobalStyle(e,t);t.name=e.name}null!==e.backColor&&void 0!==e.backColor&&(t.backColor=e.backColor),t.borders=new p,null!==e.borders&&void 0!==e.borders&&this.parserBorder(e.borders,t.borders.all),null!==e.leftBorder&&void 0!==e.leftBorder&&this.parserBorder(e.leftBorder,t.borders.left),null!==e.rightBorder&&void 0!==e.rightBorder&&this.parserBorder(e.rightBorder,t.borders.right),null!==e.topBorder&&void 0!==e.topBorder&&this.parserBorder(e.topBorder,t.borders.top),null!==e.bottomBorder&&void 0!==e.bottomBorder&&this.parserBorder(e.bottomBorder,t.borders.bottom),null!==e.fontName&&void 0!==e.fontName&&(t.fontName=e.fontName),null!==e.fontSize&&void 0!==e.fontSize&&(t.fontSize=e.fontSize),null!==e.fontColor&&void 0!==e.fontColor&&(t.fontColor=e.fontColor),null!==e.italic&&void 0!==e.italic&&(t.italic=e.italic),null!==e.bold&&void 0!==e.bold&&(t.bold=e.bold),null!==e.hAlign&&void 0!==e.hAlign&&(t.hAlign=e.hAlign.toLowerCase()),null!==e.indent&&void 0!==e.indent&&(t.indent=e.indent,"left"!==t.hAlign&&"right"!==t.hAlign&&(t.hAlign="left")),null!==e.rotation&&void 0!==e.rotation&&(t.rotation=e.rotation),null!==e.vAlign&&void 0!==e.vAlign&&(t.vAlign=e.vAlign.toLowerCase()),null!==e.underline&&void 0!==e.underline&&(t.underline=e.underline),null!==e.strikeThrough&&void 0!==e.strikeThrough&&(t.strikeThrough=e.strikeThrough),null!==e.wrapText&&void 0!==e.wrapText&&(t.wrapText=e.wrapText),null!==e.numberFormat&&void 0!==e.numberFormat?null!==e.type&&void 0!==e.type?t.numberFormat=this.getNumberFormat(e.numberFormat,e.type):t.numberFormat=this.getNumberFormat(e.numberFormat,r):void 0!==o?(t.numFmtId=14,t.numberFormat="GENERAL"):t.numberFormat="GENERAL",t.index=this.processCellStyle(t)},e.prototype.switchNumberFormat=function(e,t){var r=this.getNumberFormat(e,t);if(r!==e){var o=this.mNumFmt.get(e);if(void 0!==o&&(o.formatCode=r,this.mNumFmt.has(r))){for(var i=0,n=this.mCellStyleXfs;i<n.length;i++){var s=n[i];s.numFmtId===o.numFmtId&&(s.numFmtId=this.mNumFmt.get(r).numFmtId)}for(var l=0,a=this.mCellXfs;l<a.length;l++){var d=a[l];d.numFmtId===o.numFmtId&&(d.numFmtId=this.mNumFmt.get(r).numFmtId)}}}},e.prototype.changeNumberFormats=function(e){if("string"==typeof e){var t=new RegExp(this.currency,"g");e=e.replace(t,"[$"+this.currency+"]")}else if("object"==typeof e)for(var r=0;r<e.length;r++)e[r]=e[r].replace(this.currency,"[$"+this.currency+"]");return e},e.prototype.getNumberFormat=function(e,t){var r;switch(t){case"number":try{r=this.intl.getNumberPattern({format:e,currency:this.currency,useGrouping:!0},!0),this.currency.length>1&&(r=this.changeNumberFormats(r))}catch(t){r=e}break;case"datetime":try{r=this.intl.getDatePattern({skeleton:e,type:"dateTime"},!0)}catch(t){try{r=this.intl.getDatePattern({format:e,type:"dateTime"},!0)}catch(t){r=e}}break;case"date":try{r=this.intl.getDatePattern({skeleton:e,type:"date"},!0)}catch(t){try{r=this.intl.getDatePattern({format:e,type:"date"},!0)}catch(t){r=e}}break;case"time":try{r=this.intl.getDatePattern({skeleton:e,type:"time"},!0)}catch(t){try{r=this.intl.getDatePattern({format:e,type:"time"},!0)}catch(t){r=e}}break;default:r=e}return r},e.prototype.parserBorder=function(e,t){null!==e.color&&void 0!==e.color?t.color=e.color:t.color="#000000",null!==e.lineStyle&&void 0!==e.lineStyle?t.lineStyle=e.lineStyle:t.lineStyle="thin"},e.prototype.processCellStyle=function(e){if(e.isGlobalStyle)return this.processNumFormatId(e),this.mStyles.push(e),this.mStyles.length;var t=this.compareStyle(e);return t.result?t.index:(this.processNumFormatId(e),this.mStyles.push(e),this.mStyles.length)},e.prototype.processNumFormatId=function(e){if("GENERAL"!==e.numberFormat&&!this.mNumFmt.has(e.numberFormat)){var t=this.mNumFmt.size+164;this.mNumFmt.set(e.numberFormat,new d(t,e.numberFormat))}},e.prototype.isNewFont=function(e){for(var t=!1,r=0,o=0,i=this.mFonts;o<i.length;o++){var n=i[o];r++;var s=void 0;if(void 0!==e.fontColor&&(s="FF"+e.fontColor.replace("#","")),t=n.color===s&&n.b===e.bold&&n.i===e.italic&&n.u===e.underline&&n.strike===e.strikeThrough&&n.name===e.fontName&&n.sz===e.fontSize)break}return{index:r-=1,result:t}},e.prototype.isNewBorder=function(e){var r=new t;return this.isAllBorder(e.borders)?r.borders.all.color===e.borders.all.color&&r.borders.all.lineStyle===e.borders.all.lineStyle:r.borders.left.color===e.borders.left.color&&r.borders.left.lineStyle===e.borders.left.lineStyle&&r.borders.right.color===e.borders.right.color&&r.borders.right.lineStyle===e.borders.right.lineStyle&&r.borders.top.color===e.borders.top.color&&r.borders.top.lineStyle===e.borders.top.lineStyle&&r.borders.bottom.color===e.borders.bottom.color&&r.borders.bottom.lineStyle===e.borders.bottom.lineStyle},e.prototype.isAllBorder=function(e){var r=new t;return r.borders.all.color!==e.all.color&&r.borders.all.lineStyle!==e.all.lineStyle},e.prototype.compareStyle=function(e){for(var t=!0,r=0,o=0,i=this.mStyles;o<i.length;o++){var n=i[o];if(t=!n.isGlobalStyle&&(n.backColor===e.backColor&&n.bold===e.bold&&n.numFmtId===e.numFmtId&&n.numberFormat===e.numberFormat&&n.type===e.type&&n.fontColor===e.fontColor&&n.fontName===e.fontName&&n.fontSize===e.fontSize&&n.hAlign===e.hAlign&&n.italic===e.italic&&n.underline===e.underline&&n.strikeThrough===e.strikeThrough&&n.vAlign===e.vAlign&&n.indent===e.indent&&n.rotation===e.rotation&&n.wrapText===e.wrapText&&n.borders.all.color===e.borders.all.color&&n.borders.all.lineStyle===e.borders.all.lineStyle&&n.borders.left.color===e.borders.left.color&&n.borders.left.lineStyle===e.borders.left.lineStyle&&n.borders.right.color===e.borders.right.color&&n.borders.right.lineStyle===e.borders.right.lineStyle&&n.borders.top.color===e.borders.top.color&&n.borders.top.lineStyle===e.borders.top.lineStyle&&n.borders.bottom.color===e.borders.bottom.color&&n.borders.bottom.lineStyle===e.borders.bottom.lineStyle)){r=n.index;break}}return{index:r,result:t}},e.prototype.contains=function(e,t){var r=e.indexOf(t);return r>-1&&r<e.length},e.prototype.getCellValueType=function(e){return e instanceof Date?"datetime":"boolean"==typeof e?"boolean":"number"==typeof e?"number":"string"},e.prototype.parseCellType=function(e){var t,r=e.type,o=e.value;switch(r){case"datetime":if(o=this.toOADate(o),void 0!==e.cellStyle&&void 0!==e.cellStyle.name&&this.globalStyles.has(e.cellStyle.name)){var i=this.globalStyles.get(e.cellStyle.name);this.switchNumberFormat(i.format,i.type)}t="n";break;case"boolean":o=o?1:0,t="b";break;case"number":t="n",void 0!==e.cellStyle&&void 0!==e.cellStyle.name&&this.globalStyles.has(e.cellStyle.name)&&this.switchNumberFormat(this.globalStyles.get(e.cellStyle.name).format,"number");break;case"string":this.sharedStringCount++,t="s";var n=this.processCellValue(o,e);this.contains(this.sharedString,n)||this.sharedString.push(n),o=this.sharedString.indexOf(n)}e.saveType=t,e.value=o},e.prototype.parserImages=function(e,t){var r=e.length;t.images=[];for(var o=0;o<r;o++){var i=this.parserImage(e[o]);t.images.push(i)}},e.prototype.parseFilters=function(e,t){if(t.autoFilters=new D,null===e.row||void 0===e.row)throw new Error("Argument Null Exception: row null or empty");if(t.autoFilters.row=e.row,null===e.lastRow||void 0===e.lastRow)throw new Error("Argument Null Exception: lastRow cannot be null or empty");if(t.autoFilters.lastRow=e.lastRow,null===e.column||void 0===e.column)throw new Error("Argument Null Exception: column cannot be null or empty");if(t.autoFilters.column=e.column,null===e.lastColumn||void 0===e.row)throw new Error("Argument Null Exception: lastColumn cannot be null or empty");t.autoFilters.lastColumn=e.lastColumn},e.prototype.parserImage=function(e){var t=new R;return null!==e.image&&void 0!==e.image&&(t.image=e.image),null!==e.row&&void 0!==e.row&&(t.row=e.row),null!==e.column&&void 0!==e.column&&(t.column=e.column),null!==e.lastRow&&void 0!==e.lastRow&&(t.lastRow=e.lastRow),null!==e.lastColumn&&void 0!==e.lastColumn&&(t.lastColumn=e.lastColumn),null!==e.width&&void 0!==e.width&&(t.width=e.width),null!==e.height&&void 0!==e.height&&(t.height=e.height),null!==e.horizontalFlip&&void 0!==e.horizontalFlip&&(t.horizontalFlip=e.horizontalFlip),null!==e.verticalFlip&&void 0!==e.verticalFlip&&(t.verticalFlip=e.verticalFlip),null!==e.rotation&&void 0!==e.rotation&&(t.rotation=e.rotation),t},e.prototype.saveAsBlob=function(e,t){var r=this;return new Promise("text/csv"===e?function(e,o){var i={};i.blobData=r.csvHelper.saveAsBlob(t),e(i)}:function(e,t){r.saveInternal(),r.mArchive.saveAsBlob().then((function(t){var r={};r.blobData=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),e(r)}))})},e.prototype.save=function(e,t){var r=this;if(null==e||""===e)throw new Error("Argument Null Exception: fileName cannot be null or empty");var o=e.match(".xlsx$"),i=e.match(".csv$");if(null!==o&&o[0]==="."+this.mSaveType)this.saveInternal(),this.mArchive.save(e).then((function(){r.mArchive.destroy()}));else{if(null===i||i[0]!=="."+this.mSaveType)throw Error("Save type and file extension is different.");this.csvHelper.save(e)}},e.prototype.saveInternal=function(){this.saveWorkbook(),this.saveWorksheets(),this.saveSharedString(),this.saveStyles(),this.saveApp(this.builtInProperties),this.saveCore(this.builtInProperties),this.saveContentType(),this.saveTopLevelRelation(),this.saveWorkbookRelation()},e.prototype.saveWorkbook=function(){for(var e='<?xml version="1.0" encoding="utf-8"?><workbook xmlns:r = "http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns= "http://schemas.openxmlformats.org/spreadsheetml/2006/main"><workbookPr codeName="ThisWorkbook" defaultThemeVersion= "153222"/><bookViews><workbookView activeTab="0"/></bookViews>',t="<sheets>",r=this.worksheets.length,o=0;o<r;o++){var i=this.worksheets[o].name;t+='<sheet name="'+(i=(i=(i=(i=i.replace("&","&amp;")).replace("<","&lt;")).replace(">","&gt;")).replace('"',"&quot;"))+'" sheetId="'+(o+1).toString()+'" r:id ="rId'+(o+1).toString()+'" />'}if(e+=t+="</sheets>",this.printTitles.size>0){var n="<definedNames>";this.printTitles.forEach((function(e,t){n+='<definedName name="_xlnm.Print_Titles" localSheetId="'+t+'">'+e+"</definedName>"})),e+=n+="</definedNames>"}this.addToArchive(e+"</workbook>","xl/workbook.xml")},e.prototype.saveWorksheets=function(){for(var e=this.worksheets.length,t=0;t<e;t++)this.saveWorksheet(this.worksheets[t],t)},e.prototype.saveWorksheet=function(e,t){var r=new E,o='<?xml version="1.0" encoding="utf-8" standalone="yes"?><worksheet xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">';if(e.isSummaryRowBelow?o+="<sheetPr />":o+='<sheetPr><outlinePr summaryBelow="0" ></outlinePr></sheetPr>',o+=this.saveSheetView(e),void 0!==e.columns){for(var i="<cols>",n=0,s=e.columns;n<s.length;n++){var l=s[n];void 0!==l.width?i+='<col min="'+l.index+'" max="'+l.index+'" width="'+this.pixelsToColumnWidth(l.width)+'" customWidth="1" />':i+='<col min="'+l.index+'" max="'+l.index+'" width="8.43" customWidth="1" />'}o+=i+"</cols>"}if(o+="<sheetData>",r.append(o),o="",void 0!==e.rows)for(var a=0,d=e.rows;a<d.length;a++){var h=d[a],p='<row r="'+h.index+'" ';(0,N.isNullOrUndefined)(h.spans)||(p+='spans="'+h.spans+'" '),void 0!==h.height&&(p+='ht="'+this.pixelsToRowHeight(h.height)+'" customHeight="1" '),void 0!==h.grouping&&(h.grouping.isHidden&&(p+='hidden="1" '),void 0!==h.grouping.outlineLevel&&(p+='outlineLevel="'+h.grouping.outlineLevel+'" '),h.grouping.isCollapsed&&(p+='collapsed="1" ')),p+=">";for(var m=0,u=h.cells;m<u.length;m++){var c=u[m];void 0===c||void 0===c.value&&void 0===c.cellStyle||(p+='<c r="'+c.refName+'" ',void 0!==c.saveType&&(p+='t="'+c.saveType+'" '),void 0!==c.styleIndex&&(p+='s="'+c.styleIndex+'" '),p+=" >",void 0!==c.formula&&(p+="<f>"+c.formula+"</f>"),void 0!==c.value?p+="<v>"+c.value+"</v></c>":p+="</c>")}p+="</row>",r.append(p)}if(o+="</sheetData>",null!==e.autoFilters&&void 0!==e.autoFilters&&(o+='<autoFilter ref="'+this.getCellName(e.autoFilters.row,e.autoFilters.column)+":"+this.getCellName(e.autoFilters.lastRow,e.autoFilters.lastColumn)+'"/>'),e.mergeCells.length>0){o+='<mergeCells count="'+e.mergeCells.length+'">';for(var f=0,v=e.mergeCells;f<v.length;f++){o+='<mergeCell ref="'+v[f].ref+'" />'}o+="</mergeCells>"}if(e.hyperLinks.length>0){o+="<hyperlinks>";for(var g=0,y=e.hyperLinks;g<y.length;g++){var x=y[g];o+='<hyperlink ref="'+x.ref+'" r:id="rId'+x.rId+'" />'}o+="</hyperlinks>"}o+='<pageMargins left="0.75" right="0.75" top="1" bottom="1" header="0.5" footer="0.5" /><headerFooter scaleWithDoc="1" alignWithMargins="0" differentFirst="0" differentOddEven="0" />',null!=e.images&&e.images.length>0&&(this.drawingCount++,this.saveDrawings(e,e.index),o+='<drawing r:id="rId'+(e.hyperLinks.length+1)+'"/>'),this.addToArchive(this.saveSheetRelations(e),"xl/worksheets/_rels/sheet"+e.index+".xml.rels"),r.append(o+"</worksheet>"),this.addToArchive(r.getBlob(),"xl/worksheets/sheet"+(t+1)+".xml")},e.prototype.saveDrawings=function(e,t){var r=new E,o='<xdr:wsDr xmlns:xdr="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">';if(void 0!==e.images){for(var i=0,n=0,s=e.images;n<s.length;n++){var l=s[n];void 0!==l.height&&void 0!==l.width?(this.updatelastRowOffset(e,l),this.updatelastColumnOffSet(e,l),l.lastRow-=1,l.lastColumn-=1):void 0!==l.lastRow&&void 0!==l.lastColumn&&(l.lastRowOffset=0,l.lastColOffset=0),i++,o+='<xdr:twoCellAnchor editAs="oneCell">',o+="<xdr:from><xdr:col>",o+=l.column-1,o+="</xdr:col><xdr:colOff>",o+=0,o+="</xdr:colOff><xdr:row>",o+=l.row-1,o+="</xdr:row><xdr:rowOff>",o+=0,o+="</xdr:rowOff></xdr:from>",o+="<xdr:to><xdr:col>",o+=l.lastColumn,o+="</xdr:col><xdr:colOff>",o+=l.lastColOffset,o+="</xdr:colOff><xdr:row>",o+=l.lastRow,o+="</xdr:row><xdr:rowOff>",o+=l.lastRowOffset,o+="</xdr:rowOff></xdr:to>",o+="<xdr:pic>",o+="<xdr:nvPicPr>",o+='<xdr:cNvPr id="'+i+'" name="Picture '+i+'"> </xdr:cNvPr>',o+='<xdr:cNvPicPr><a:picLocks noChangeAspect="1"/></xdr:cNvPicPr> </xdr:nvPicPr>',o+="<xdr:blipFill>",o+='<a:blip xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" r:embed="rId'+i+'" cstate="print">',o+="</a:blip><a:stretch><a:fillRect /></a:stretch></xdr:blipFill>",o+="<xdr:spPr>",o+="<a:xfrm",null!=l.rotation&&l.rotation<=3600&&l.rotation>=-3600&&(o+=' rot="'+6e4*l.rotation+'"'),null!=l.verticalFlip&&0!=l.verticalFlip&&(o+=' flipV="1"'),null!=l.horizontalFlip&&0!=l.horizontalFlip&&(o+=' flipH="1"'),o+="/>",o+='<a:prstGeom prst="rect"><a:avLst /></a:prstGeom></xdr:spPr>',o+="</xdr:pic><xdr:clientData /></xdr:twoCellAnchor>";new E;var a=this.convertBase64toImage(l.image);this.imageCount+=1,this.addToArchive(a,"xl/media/image"+this.imageCount+".png")}r.append(o),r.append("</xdr:wsDr>"),this.saveDrawingRelations(e),this.addToArchive(r.getBlob(),"xl/drawings/drawing"+this.drawingCount+".xml")}},e.prototype.updatelastRowOffset=function(e,t){for(var r=t.height,o=t.row,i=0;r>=0;){var n=0,s=(n=void 0!==e.rows&&void 0!==e.rows[o-1]?this.convertToPixels(void 0===e.rows[o-1].height?15:e.rows[o-1].height):this.convertToPixels(15))-i*n/256;if(s>r){t.lastRow=o,t.lastRowOffset=i+256*r/n;var l=0;l=void 0!==e.rows&&void 0!==e.rows[o-1]?this.convertToPixels(void 0===e.rows[o-1].height?15:e.rows[o-1].height):this.convertToPixels(15),t.lastRowOffset=l*t.lastRowOffset/256,t.lastRowOffset=Math.round(t.lastRowOffset/this.unitsProportions[7]);break}r-=s,o++,i=0}},e.prototype.updatelastColumnOffSet=function(e,t){for(var r=t.width,o=t.column,i=0;r>=0;){var n=0,s=(n=void 0!==e.columns&&void 0!==e.columns[o-1]?this.ColumnWidthToPixels(void 0===e.columns[o-1].width?8.43:e.columns[o-1].width):this.ColumnWidthToPixels(8.43))-i*n/1024;if(s>r){t.lastColumn=o,t.lastColOffset=i+1024*r/n;var l=0;l=void 0!==e.columns&&void 0!==e.columns[o-1]?this.ColumnWidthToPixels(void 0===e.columns[o-1].width?8.43:e.columns[o-1].width):this.ColumnWidthToPixels(8.43),t.lastColOffset=l*t.lastColOffset/1024,t.lastColOffset=Math.round(t.lastColOffset/this.unitsProportions[7]);break}r-=s,o++,i=0}},e.prototype.convertToPixels=function(e){return e*this.unitsProportions[6]},e.prototype.convertBase64toImage=function(e){for(var t=window.atob(e),r=new ArrayBuffer(t.length),o=new Uint8Array(r),i=0;i<t.length;i++)o[i]=t.charCodeAt(i);return new Blob([o],{type:"image/png"})},e.prototype.saveDrawingRelations=function(e){for(var t='<?xml version="1.0" encoding="utf-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">',r=e.images.length,o=this.imageCount-e.images.length,i=1;i<=r;i++)t+='<Relationship Id="rId'+i+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="../media/image'+ ++o+'.png" />';this.addToArchive(t+"</Relationships>","xl/drawings/_rels/drawing"+this.drawingCount+".xml.rels")},e.prototype.pixelsToColumnWidth=function(e){var t=e>12?this.trunc((e-5)/7*100+.5)/100:e/12;return t>1?(7*t+5)/7*256/256:12*t/7*256/256},e.prototype.ColumnWidthToPixels=function(e){var t=e>1?(7*e+5)/7*256/256:12*e/7*256/256;return this.trunc((256*t+this.trunc(128/7))/256*7)},e.prototype.trunc=function(e){var t=e-e%1;return 0===t&&(e<0||0===e&&1/e!=1/0)?-0:t},e.prototype.pixelsToRowHeight=function(e){return e*this.unitsProportions[5]/this.unitsProportions[6]},e.prototype.saveSheetRelations=function(e){for(var t='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">',r=0,o=e.hyperLinks;r<o.length;r++){var i=o[r];t+='<Relationship Id="rId'+i.rId+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="'+this.processString(i.target)+'" TargetMode="External" />'}return null!=e.images&&e.images.length>0&&(t+='<Relationship Id="rId'+(e.hyperLinks.length+1)+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing" Target="../drawings/drawing'+this.drawingCount+'.xml" />'),t+="</Relationships>"},e.prototype.saveSheetView=function(e){var t='<sheetViews><sheetView workbookViewId="0" ';return!0===e.enableRtl&&(t+='rightToLeft="1"'),!1===e.showGridLines?t+='showGridLines="0" >':t+=">",void 0!==e.freezePanes&&(t+='<pane state="frozen" topLeftCell="'+e.freezePanes.leftCell+'" ',0!==e.freezePanes.row&&(t+='ySplit="'+e.freezePanes.row+'" '),0!==e.freezePanes.column&&(t+='xSplit="'+e.freezePanes.column+'" '),t+="/>"),t+="</sheetView></sheetViews > "},e.prototype.saveSharedString=function(){var e=this.sharedString.length;if(e>0){for(var t='<?xml version="1.0" encoding="utf-8"?><sst uniqueCount="'+e+'" count="'+this.sharedStringCount+'" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">',r="",o=0;o<e;o++)0!==this.sharedString[o].indexOf("<r>")?(r+="<si><t>",r+=this.processString(this.sharedString[o]),r+="</t></si>"):(r+="<si>",r+=this.sharedString[o],r+="</si>");r+="</sst>",this.addToArchive(t+r,"xl/sharedStrings.xml")}},e.prototype.processString=function(e){if("string"==typeof e)-1!==e.indexOf("&")&&(e=e.replace(/&/g,"&amp;")),-1!==e.indexOf("<")&&(e=e.replace(/</g,"&lt;")),-1!==e.indexOf(">")&&(e=e.replace(/>/g,"&gt;")),-1!==e.indexOf("\v")&&(e=e.replace(/\v/g,"_x000B_"));else if("object"==typeof e)for(var t=0;t<e.length;t++)-1!==e[t].indexOf("&")&&(e[t]=e[t].replace(/&/g,"&amp;")),-1!==e[t].indexOf("<")&&(e[t]=e[t].replace(/</g,"&lt;")),-1!==e[t].indexOf(">")&&(e[t]=e[t].replace(/>/g,"&gt;")),-1!==e[t].indexOf("\v")&&(e[t]=e[t].replace(/\v/g,"_x000B_"));return e},e.prototype.saveStyles=function(){this.updateCellXfsStyleXfs();var e='<?xml version="1.0" encoding="utf-8"?><styleSheet xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">';e+=this.saveNumberFormats(),e+=this.saveFonts(),e+=this.saveFills(),e+=this.saveBorders(),e+=this.saveCellStyleXfs(),e+=this.saveCellXfs(),e+=this.saveCellStyles(),this.addToArchive(e+"</styleSheet>","xl/styles.xml")},e.prototype.updateCellXfsStyleXfs=function(){for(var e=0,t=this.mStyles;e<t.length;e++){var n=t[e],s=void 0;n.isGlobalStyle?(s=new l).xfId=n.index-1:(s=new o).xfId=0;var a=this.isNewFont(n);if(a.result)s.fontId=a.index;else{var h=new r;h.b=n.bold,h.i=n.italic,h.name=n.fontName,h.sz=n.fontSize,h.u=n.underline,h.strike=n.strikeThrough,h.color="FF"+n.fontColor.replace("#",""),this.mFonts.push(h),s.fontId=this.mFonts.length-1}if("none"!==n.backColor){var p="FF"+n.backColor.replace("#","");if(this.mFills.has(p)){var m=this.mFills.get(p);s.fillId=m}else{m=this.mFills.size+2;this.mFills.set(p,m),s.fillId=m}}else s.fillId=0;if(this.isNewBorder(n)?s.borderId=0:(this.mBorders.push(n.borders),s.borderId=this.mBorders.length),"GENERAL"!==n.numberFormat)if(this.mNumFmt.has(n.numberFormat)){var u=this.mNumFmt.get(n.numberFormat);s.numFmtId=u.numFmtId}else{var c=this.mNumFmt.size+164;this.mNumFmt.set(n.numberFormat,new d(c,n.numberFormat)),s.numFmtId=c}else"GENERAL"===n.numberFormat&&14===n.numFmtId?s.numFmtId=14:s.numFmtId=0;n.isGlobalStyle||(s.applyAlignment=1),s.alignment=new i,s.alignment.indent=n.indent,s.alignment.horizontal=n.hAlign,s.alignment.vertical=n.vAlign,s.alignment.wrapText=n.wrapText?1:0,s.alignment.rotation=n.rotation,n.isGlobalStyle?(this.mCellStyleXfs.push(s),this.mCellXfs.push(s)):this.mCellXfs.push(s)}},e.prototype.saveNumberFormats=function(){if(this.mNumFmt.size>=1){var e='<numFmts count="'+this.mNumFmt.size+'">';return this.mNumFmt.forEach((function(t,r){e+='<numFmt numFmtId="'+t.numFmtId+'" formatCode="'+t.formatCode.replace(/"/g,"&quot;")+'" />'})),e+="</numFmts>"}return""},e.prototype.saveFonts=function(){var e='<fonts count="'+this.mFonts.length+'">';if(this.mFonts.length>=1)for(var t=0,r=this.mFonts;t<r.length;t++){var o=r[t];e+="<font>",o.b&&(e+="<b />"),o.i&&(e+="<i />"),o.u&&(e+="<u />"),o.strike&&(e+="<strike />"),e+='<sz val="'+o.sz+'" />',e+='<color rgb="'+o.color+'" />',e+='<name val="'+o.name+'" /></font>'}return e+"</fonts>"},e.prototype.saveFills=function(){var e='<fills count="'+(this.mFills.size+2)+'"><fill><patternFill patternType="none"></patternFill></fill><fill><patternFill patternType="gray125"></patternFill></fill>';return this.mFills.size>=1&&this.mFills.forEach((function(t,r){e+='<fill><patternFill patternType="solid"><fgColor rgb="'+r+'" /><bgColor rgb="FFFFFFFF" /></patternFill></fill>'})),e+"</fills>"},e.prototype.saveBorders=function(){var e='<borders count="'+(this.mBorders.length+1)+'"><border><left /><right /><top /><bottom /><diagonal /></border>';if(this.mBorders.length>=1)for(var t=0,r=this.mBorders;t<r.length;t++){var o=r[t];if(this.isAllBorder(o)){var i=o.all.color.replace("#",""),n=o.all.lineStyle;e+='<border><left style="'+n+'"><color rgb="FF'+i+'" /></left><right style="'+n+'"><color rgb="FF'+i+'" /></right><top style="'+n+'"><color rgb="FF'+i+'" /></top><bottom style="'+n+'"><color rgb="FF'+i+'" /></bottom></border>'}else e+='<border><left style="'+o.left.lineStyle+'"><color rgb="FF'+o.left.color.replace("#","")+'" /></left><right style="'+o.right.lineStyle+'"><color rgb="FF'+o.right.color.replace("#","")+'" /></right><top style="'+o.top.lineStyle+'"><color rgb="FF'+o.top.color.replace("#","")+'" /></top><bottom style="'+o.bottom.lineStyle+'"><color rgb="FF'+o.bottom.color.replace("#","")+'" /></bottom></border>'}return e+"</borders>"},e.prototype.saveCellStyles=function(){var e=this,t='<cellStyles count="'+this.cellStyles.size+'">';return this.cellStyles.forEach((function(r,o){t+='<cellStyle name="'+o+'" xfId="'+e.cellStyles.get(o).xfId+'"',"Normal"===o&&(t+=' builtinId="0"'),t+=" />"})),t+="</cellStyles>"},e.prototype.saveCellStyleXfs=function(){var e='<cellStyleXfs count="'+(this.mCellStyleXfs.length+1)+'"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" />';if(this.mCellStyleXfs.length>=1)for(var t=0,r=this.mCellStyleXfs;t<r.length;t++){var o=r[t];e+='<xf numFmtId="'+o.numFmtId+'" fontId="'+o.fontId+'" fillId="'+o.fillId+'" borderId="'+o.borderId+'" ',void 0!==o.alignment?e+=">"+this.saveAlignment(o)+"</xf>":e+=" />"}return e+"</cellStyleXfs>"},e.prototype.saveCellXfs=function(){var e='<cellXfs count="'+(this.mCellXfs.length+1)+'"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" />';if(this.mCellXfs.length>=1)for(var t=0,r=this.mCellXfs;t<r.length;t++){var o=r[t];e+='<xf numFmtId="'+o.numFmtId+'" fontId="'+o.fontId+'" fillId="'+o.fillId+'" borderId="'+o.borderId+'" xfId="'+o.xfId+'" ',1===o.applyAlignment&&(e+='applyAlignment="1"'),e+=">"+this.saveAlignment(o)+"</xf>"}return e+"</cellXfs>"},e.prototype.saveAlignment=function(e){var t="<alignment ";return void 0!==e.alignment.horizontal&&(t+='horizontal="'+e.alignment.horizontal+'" '),void 0!==e.alignment.indent&&0!==e.alignment.indent?t+='indent="'+e.alignment.indent+'" ':void 0!==e.alignment.rotation&&0!==e.alignment.rotation&&(t+='textRotation="'+e.alignment.rotation+'" '),void 0!==e.alignment.vertical&&(t+='vertical="'+e.alignment.vertical+'" '),t+='wrapText="'+e.alignment.wrapText+'" />'},e.prototype.saveApp=function(e){var t='<?xml version="1.0" encoding="utf-8" standalone="yes"?><Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"><Application>Essential XlsIO</Application>';void 0!==e&&(void 0!==e.manager&&(t+="<Manager>"+e.manager+"</Manager>"),void 0!==e.company&&(t+="<Company>"+e.company+"</Company>")),this.addToArchive(t+"</Properties>","docProps/app.xml")},e.prototype.saveCore=function(e){var t=new Date,r='<?xml version="1.0" encoding="utf-8" standalone="yes"?><cp:coreProperties xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties">';void 0!==this.builtInProperties?(void 0!==e.author&&(r+="<dc:creator>"+e.author+"</dc:creator>"),void 0!==e.subject&&(r+="<dc:subject>"+e.subject+"</dc:subject>"),void 0!==e.category&&(r+="<cp:category>"+e.category+"</cp:category>"),void 0!==e.comments&&(r+="<dc:description>"+e.comments+"</dc:description>"),void 0!==e.title&&(r+="<dc:title>"+e.title+"</dc:title>"),void 0!==e.tags&&(r+="<cp:keywords>"+e.tags+"</cp:keywords>"),void 0!==e.status&&(r+="<cp:contentStatus>"+e.status+"</cp:contentStatus>"),void 0!==e.createdDate?r+='<dcterms:created xsi:type="dcterms:W3CDTF">'+e.createdDate.toISOString()+"</dcterms:created>":r+='<dcterms:created xsi:type="dcterms:W3CDTF">'+t.toISOString()+"</dcterms:created>",void 0!==e.modifiedDate?r+='<dcterms:modified xsi:type="dcterms:W3CDTF">'+e.modifiedDate.toISOString()+"</dcterms:modified>":r+='<dcterms:modified xsi:type="dcterms:W3CDTF">'+t.toISOString()+"</dcterms:modified>"):(r+='<dcterms:created xsi:type="dcterms:W3CDTF">'+t.toISOString()+"</dcterms:created>",r+='<dcterms:modified xsi:type="dcterms:W3CDTF">'+t.toISOString()+"</dcterms:modified>"),r+="</cp:coreProperties>",this.addToArchive(r,"docProps/core.xml")},e.prototype.saveTopLevelRelation=function(){this.addToArchive('<?xml version="1.0" encoding="utf-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" /><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml" /><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml" /></Relationships>',"_rels/.rels")},e.prototype.saveWorkbookRelation=function(){for(var e='<?xml version="1.0" encoding="utf-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">',t=this.worksheets.length,r=0,o=0;o<t;o++,r++)e+='<Relationship Id="rId'+(o+1).toString()+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet'+(o+1).toString()+'.xml" />';e+='<Relationship Id="rId'+(++r).toString()+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml" />',this.sharedStringCount>0&&(e+='<Relationship Id="rId'+(++r).toString()+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml" />'),this.addToArchive(e+"</Relationships>","xl/_rels/workbook.xml.rels")},e.prototype.saveContentType=function(){for(var e='<?xml version="1.0" encoding="utf-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="xml" ContentType="application/xml" /><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml" /><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml" />',t="",r=this.worksheets.length,o=0,i=0;i<r;i++)t+='<Override PartName="/xl/worksheets/sheet'+(i+1).toString()+'.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" />',null!=this.worksheets[i].images&&this.worksheets[i].images.length>0&&(t+='<Override PartName="/xl/drawings/drawing'+(++o).toString()+'.xml" ContentType="application/vnd.openxmlformats-officedocument.drawing+xml" />');this.imageCount>0&&(t+='<Default Extension="png" ContentType="image/png" />'),this.sharedStringCount>0&&(e+='<Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" />'),this.addToArchive(e+t+"</Types>","[Content_Types].xml")},e.prototype.addToArchive=function(e,t){if("string"==typeof e){var r=new Blob([e],{type:"text/plain"}),o=new P.ZipArchiveItem(r,t);this.mArchive.addItem(o)}else{o=new P.ZipArchiveItem(e,t);this.mArchive.addItem(o)}},e.prototype.processMergeCells=function(e,t,r){if(0!==e.rowSpan||0!==e.colSpan){var o=new I;o.x=e.index,o.width=e.colSpan,o.y=t,o.height=e.rowSpan;var i=this.getCellName(o.y,o.x),n=this.getCellName(t+o.height,e.index+o.width);o.ref=i+":"+n;r.add(o);var s={x:o.x,y:o.y},l={x:e.index+o.width,y:t+o.height};this.updatedMergedCellStyles(s,l,e)}return r},e.prototype.updatedMergedCellStyles=function(e,t,r){for(var o=e.x;o<=t.x;o++)for(var i=e.y;i<=t.y;i++)this.mergedCellsStyle.set(this.getCellName(i,o),{x:o,y:i,styleIndex:r.styleIndex})},e.prototype.dateToTicks=function(e,t,r){if(e>=1&&e<=9999&&t>=1&&t<=12){var o=e-1;return 864e9*(365*o+(o/4|0)-(o/100|0)+(o/400|0)+(this.isLeapYear(e)?[0,31,60,91,121,152,182,213,244,274,305,335,366]:[0,31,59,90,120,151,181,212,243,273,304,334,365])[t-1]+r-1)}throw new Error("Not a valid date")},e.prototype.timeToTicks=function(e,t,r){if(e>=0&&e<24&&t>=0&&t<60&&r>=0&&r<60)return 1e4*(3600*e+60*t+r)*1e3;throw new Error("Not valid time")},e.prototype.isLeapYear=function(e){return e%4==0&&(e%100!=0||e%400==0)},e.prototype.toOADate=function(e){var t;if(0===(t=this.dateToTicks(e.getFullYear(),e.getMonth()+1,e.getDate())+this.timeToTicks(e.getHours(),e.getMinutes(),e.getSeconds())))return 0;if(t<31241376e9)throw new Error("Arg_OleAutDateInvalid");return(t-599264352e9)/1e4/864e5},e}(),L=function(){}})(),s})()));
/*!
* filename: ej2-excel-export.umd.min.js
* version : 26.2.10
* version : 26.2.11
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.

@@ -10,3 +10,3 @@ * Use of this code is subject to the terms of our license.

*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-compression"),require("@syncfusion/ej2-base"),require("@syncfusion/ej2-file-utils")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-compression","@syncfusion/ej2-base","@syncfusion/ej2-file-utils"],t):t((e=e||self).ej={},e.ej2Compression,e.ej2Base,e.ej2FileUtils)}(this,function(e,a,w,z){"use strict";var h=function(){this.numFmtId=0,this.backColor="none",this.fontName="Calibri",this.fontSize=10.5,this.fontColor="#000000",this.italic=!1,this.bold=!1,this.underline=!1,this.strikeThrough=!1,this.wrapText=!1,this.hAlign="general",this.vAlign="bottom",this.indent=0,this.rotation=0,this.numberFormat="GENERAL",this.type="datetime",this.borders=new i,this.isGlobalStyle=!1},d=function(){this.sz=10.5,this.name="Calibri",this.u=!1,this.b=!1,this.i=!1,this.color="FF000000",this.strike=!1},s=function(){},l=function(){},m=function(){},p=function(){this.name="Normal",this.xfId=0},c=function(e,t){this.numFmtId=e,this.formatCode=t},t=function(e,t){this.lineStyle=e,this.color=t},i=function(){this.left=new t("none","#FFFFFF"),this.right=new t("none","#FFFFFF"),this.top=new t("none","#FFFFFF"),this.bottom=new t("none","#FFFFFF"),this.all=new t("none","#FFFFFF")};r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])}))(e,t)};var r,o,u=function(){},f=(function(e,t){function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}(n,o=Array),n);function n(){var n=null!==o&&o.apply(this,arguments)||this;return n.add=function(e){for(var t=!1,o=0,r=0,i=n;r<i.length;r++)i[r].index===e.index&&(n[o]=e,t=!0),o++;t||n.push(e)},n}var g=function(){};v=function(e,t){return(v=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])}))(e,t)};var v,y,x=function(){},b=(function(e,t){function o(){this.constructor=e}v(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}(F,y=Array),F);function F(){var t=null!==y&&y.apply(this,arguments)||this;return t.add=function(e){t.push(e)},t}S=function(e,t){return(S=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])}))(e,t)};(function(e,t){function o(){this.constructor=e}S(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)})(L,C=Array);var S,C,k=L;function L(){return null!==C&&C.apply(this,arguments)||this}T=function(e,t){return(T=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])}))(e,t)};var T,I,_=function(){this.isSummaryRowBelow=!0,this.showGridLines=!0,this.enableRtl=!1},R=function(){},W=function(){},M=function(){},P=function(){},j=(function(e,t){function o(){this.constructor=e}T(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}(N,I=Array),N.isIntersecting=function(e,t){return e.x<=t.x+t.width&&t.x<=e.x+e.width&&e.y<=t.y+t.height&&t.y<=e.y+e.height},N);function N(){var l=null!==I&&I.apply(this,arguments)||this;return l.add=function(e){for(var t=!1,o=0,r=0,i=l;r<i.length;r++){var n,s=i[r];N.isIntersecting(s,e)&&((n=new P).x=Math.min(s.x,e.x),n.y=Math.min(s.Y,e.y),n.width=Math.max(s.Width+s.X,e.width+e.x),n.height=Math.max(s.Height+s.Y,e.height+e.y),n.ref=l[o].ref.split(":")[0]+":"+e.ref.split(":")[1],e=l[o]=n,t=!0),o++}return t||l.push(e),e},l}var G=function(){},V=(O.prototype.getFormatFunction=function(e,t){return e.type?(t&&(e.isServerRendered=!0),this.intl.getDateFormat(e)):this.intl.getNumberFormat(e)},O.prototype.toView=function(e,t){var o=e;return o=w.isNullOrUndefined(t)||w.isNullOrUndefined(e)?o:t(e)},O.prototype.displayText=function(e,t,o){return this.toView(e,this.getFormatFunction(t,o))},O);function O(e){this.intl=new w.Internationalization}A.prototype.parseWorksheet=function(e){null!==e.rows&&void 0!==e.rows&&this.parseRows(e.rows)},A.prototype.parseRows=function(e){for(var t=1,o=0,r=e;o<r.length;o++){var i=r[o];if(null===i.index||void 0===i.index)throw Error("Row index is missing.");for(;t<i.index;)this.csvStr+="\r\n",t++;this.parseRow(i)}this.csvStr+="\r\n"},A.prototype.parseRow=function(e){if(null!==e.cells&&void 0!==e.cells)for(var t=1,o=0,r=e.cells;o<r.length;o++){var i=r[o];if(null===i.index||void 0===i.index)throw Error("Cell index is missing.");for(;t<i.index;)this.csvStr+=this.separator,t++;this.parseCell(i)}},A.prototype.parseCell=function(t){var o=this.csvStr;if(void 0!==t.value)if(t.value instanceof Date)if(void 0!==t.style&&void 0!==t.style.numberFormat)try{o+=this.parseCellValue(this.formatter.displayText(t.value,{type:"dateTime",skeleton:t.style.numberFormat},this.isServerRendered))}catch(e){o+=this.parseCellValue(this.formatter.displayText(t.value,{type:"dateTime",format:t.style.numberFormat},this.isServerRendered))}else if(void 0!==t.style&&void 0!==t.style.name&&this.globalStyles.has(t.style.name))try{o+=this.parseCellValue(this.formatter.displayText(t.value,{type:"dateTime",skeleton:this.globalStyles.get(t.style.name)},this.isServerRendered))}catch(e){o+=this.parseCellValue(this.formatter.displayText(t.value,{type:"dateTime",format:this.globalStyles.get(t.style.name)},this.isServerRendered))}else o+=t.value;else"boolean"==typeof t.value?o+=t.value?"TRUE":"FALSE":"number"==typeof t.value?void 0!==t.style&&void 0!==t.style.numberFormat?o+=this.parseCellValue(this.formatter.displayText(t.value,{format:t.style.numberFormat},this.isServerRendered)):void 0!==t.style&&void 0!==t.style.name&&this.globalStyles.has(t.style.name)?o+=this.parseCellValue(this.formatter.displayText(t.value,{format:this.globalStyles.get(t.style.name)},this.isServerRendered)):o+=t.value:o+=this.parseCellValue(t.value);this.csvStr=o},A.prototype.parseCellValue=function(e){for(var t="",o=e.length,r=0;r<o;r++)'"'===e[r]?t+=e[r].replace('"','""'):t+=e[r];return-1!==(e=t).indexOf(this.separator)||-1!==e.indexOf("\n")||-1!==e.indexOf('"')?'"'+e+'"':e},A.prototype.save=function(e){var t,o;this.buffer=new Blob(["\ufeff"+this.csvStr],{type:"text/csv;charset=UTF-8"}),this.isMicrosoftBrowser?navigator.msSaveBlob(this.buffer,e):(t=window.URL.createObjectURL(this.buffer),(o=document.createElementNS("http://www.w3.org/1999/xhtml","a")).download=e,o.href=t,(e=document.createEvent("MouseEvent")).initEvent("click",!0,!0),o.dispatchEvent(e),setTimeout(function(){window.URL.revokeObjectURL(t)}))},A.prototype.saveAsBlob=function(e){var t,o;return null!=e?(t=new z.Encoding,o="UTF-8",o="ANSI"==e.toUpperCase()?(t.type="Ansi","ANSI"):"UNICODE"==e.toUpperCase()?(t.type="Unicode","UNICODE"):(t.type="Utf8","UTF-8"),e=t.getBytes(this.csvStr,0,this.csvStr.length),new Blob([e],{type:"text/csv;charset="+o})):new Blob(["\ufeff"+this.csvStr],{type:"text/csv;charset=UTF-8"})};var U=A;function A(e,t){if(this.csvStr="",this.separator=null==t?",":t,this.formatter=new V,this.isMicrosoftBrowser=!!navigator.msSaveBlob,null!==e.isServerRendered&&void 0!==e.isServerRendered&&(this.isServerRendered=e.isServerRendered),null!==e.styles&&void 0!==e.styles){this.globalStyles=new Map;for(var o=0;o<e.styles.length;o++)void 0!==e.styles[o].name&&void 0!==e.styles[o].numberFormat&&this.globalStyles.set(e.styles[o].name,e.styles[o].numberFormat)}null!==e.worksheets&&void 0!==e.worksheets&&this.parseWorksheet(e.worksheets[0])}D.prototype.append=function(e){this.parts.push(e),this.blob=void 0},D.prototype.getBlob=function(){return new Blob(this.parts,{type:"text/plain"})};var B=D;function D(){this.parts=[]}var X=function(){},H=(E.prototype.parserBuiltInProperties=function(e,t){null!==e.author&&void 0!==e.author&&(t.author=e.author),null!==e.comments&&void 0!==e.comments&&(t.comments=e.comments),null!==e.category&&void 0!==e.category&&(t.category=e.category),null!==e.company&&void 0!==e.company&&(t.company=e.company),null!==e.manager&&void 0!==e.manager&&(t.manager=e.manager),null!==e.subject&&void 0!==e.subject&&(t.subject=e.subject),null!==e.title&&void 0!==e.title&&(t.title=e.title),null!==e.createdDate&&void 0!==e.createdDate&&(t.createdDate=e.createdDate),null!==e.modifiedDate&&void 0!==e.modifiedDate&&(t.modifiedDate=e.modifiedDate),null!==e.tags&&void 0!==e.tags&&(t.tags=e.tags),null!==e.status&&void 0!==e.status&&(t.status=e.status)},E.prototype.parserWorksheets=function(e){this.worksheets=new k;for(var t=e.length,o=0;o<t;o++){var r=e[o],i=new _;this.mergeCells=new j,this.mergedCellsStyle=new Map,this.mHyperLinks=[],null!==r.name&&void 0!==r.name?i.name=r.name:i.name="Sheet"+(o+1).toString(),null!==r.enableRtl&&void 0!==r.enableRtl&&(i.enableRtl=r.enableRtl),i.index=o+1,null!==r.columns&&void 0!==r.columns&&this.parserColumns(r.columns,i),null!==r.rows&&void 0!==r.rows&&this.parserRows(r.rows,i),null!==r.showGridLines&&void 0!==r.showGridLines&&(i.showGridLines=r.showGridLines),null!==r.freeze&&void 0!==r.freeze&&this.parserFreezePanes(r.freeze,i),null!==r.printTitle&&void 0!==r.printTitle&&this.parserPrintTitle(r.printTitle,i),void 0!==r.pageSetup&&void 0!==r.pageSetup.isSummaryRowBelow&&(i.isSummaryRowBelow=r.pageSetup.isSummaryRowBelow),void 0!==r.images&&this.parserImages(r.images,i),null!==r.autoFilters&&void 0!==r.autoFilters&&this.parseFilters(r.autoFilters,i),i.index=o+1,i.mergeCells=this.mergeCells,i.hyperLinks=this.mHyperLinks,this.worksheets.push(i)}},E.prototype.mergeOptions=function(e,t){var o={};return this.applyProperties(e,o),this.applyProperties(t,o),o},E.prototype.applyProperties=function(e,t){for(var o=Object.keys(e),r=0;r<o.length;r++)"name"!==o[r]&&(t[o[r]]=e[o[r]])},E.prototype.getCellName=function(e,t){return this.getColumnName(t)+e.toString()},E.prototype.getColumnName=function(e){e--;var t="";do{var o=e%26}while(e=e/26-1,t=String.fromCharCode(65+o)+t,0<=e);return t},E.prototype.parserPrintTitle=function(e,t){var o,r,i,n="";null!==e.fromRow&&void 0!==e.fromRow&&(o="$"+e.fromRow+":$"+(null!==e.toRow&&void 0!==e.toRow?e.toRow:e.fromRow)),null!==e.fromColumn&&void 0!==e.fromColumn&&(i=e.fromColumn,r=void 0,r=null!==e.toColumn&&void 0!==e.toColumn?e.toColumn:e.fromColumn,i="$"+this.getColumnName(i)+":$"+this.getColumnName(r)),void 0!==o&&(n+=t.name+"!"+o),void 0!==i&&void 0!==o?n+=","+t.name+"!"+i:void 0!==i&&(n+=t.name+"!"+i),""!==n&&this.printTitles.set(t.index-1,n)},E.prototype.parserFreezePanes=function(e,t){t.freezePanes=new M,null!==e.row&&void 0!==e.row?t.freezePanes.row=e.row:t.freezePanes.row=0,null!==e.column&&void 0!==e.column?t.freezePanes.column=e.column:t.freezePanes.column=0,t.freezePanes.leftCell=this.getCellName(t.freezePanes.row+1,t.freezePanes.column+1)},E.prototype.parserColumns=function(e,t){var o=e.length;t.columns=[];for(var r=0;r<o;r++){var i=new g;if(null===e[r].index||void 0===e[r].index)throw Error("Column index is missing.");i.index=e[r].index,null!==e[r].width&&void 0!==e[r].width&&(i.width=e[r].width),t.columns.push(i)}},E.prototype.parserRows=function(e,t){for(var o=e.length,r=(t.rows=new b,0),i=0;i<o;i++){var n=this.parserRow(e[i],r),r=n.index;t.rows.add(n)}this.insertMergedCellsStyle(t)},E.prototype.insertMergedCellsStyle=function(s){var l=this;0<this.mergeCells.length&&this.mergedCellsStyle.forEach(function(t,e){var o,r,i,n=s.rows.filter(function(e){return e.index===t.y})[0];w.isNullOrUndefined(n)?(o=s.rows.filter(function(e){return e.index<=t.y}),(r=new x).index=t.y,r.cells=new f,r.cells.add(l.createCell(t,e)),(i=0)<o.length&&(i=s.rows.indexOf(o[o.length-1])+1),s.rows.splice(i,0,r)):(o=n.cells.filter(function(e){return e.index===t.x})[0],w.isNullOrUndefined(o)?((i=0)<(r=n.cells.filter(function(e){return e.index<=t.x})).length&&(i=n.cells.indexOf(r[r.length-1])+1),n.cells.splice(i,0,l.createCell(t,e))):o.styleIndex=t.styleIndex)})},E.prototype.createCell=function(e,t){var o=new u;return o.refName=t,o.index=e.x,o.cellStyle=new h,o.styleIndex=e.styleIndex,o},E.prototype.parserRow=function(e,t){var o=new x;if(null!==e.height&&void 0!==e.height&&(o.height=e.height),null===e.index||void 0===e.index)throw Error("Row index is missing.");return o.index=e.index,null!==e.grouping&&void 0!==e.grouping&&this.parseGrouping(e.grouping,o),this.parseCells(e.cells,o),o},E.prototype.parseGrouping=function(e,t){t.grouping=new W,void 0!==e.outlineLevel&&(t.grouping.outlineLevel=e.outlineLevel),void 0!==e.isCollapsed&&(t.grouping.isCollapsed=e.isCollapsed),void 0!==e.isHidden&&(t.grouping.isHidden=e.isHidden)},E.prototype.parseCells=function(e,t){t.cells=new f;for(var o=void 0!==e?e.length:0,r=1,i=1,n=0;n<o;n++){var s,l=e[n],a=new u;if(null===l.index||void 0===l.index)throw Error("Cell index is missing.");a.index=l.index,a.index<r?r=a.index:a.index>i&&(i=a.index),a.refName=this.getCellName(t.index,a.index),null!==l.rowSpan&&void 0!==l.rowSpan?a.rowSpan=l.rowSpan-1:a.rowSpan=0,null!==l.colSpan&&void 0!==l.colSpan?a.colSpan=l.colSpan-1:a.colSpan=0,null!==l.hyperlink&&void 0!==l.hyperlink&&(s=new R,void 0!==l.hyperlink.target)&&(s.target=l.hyperlink.target,void 0!==l.hyperlink.displayText?a.value=l.hyperlink.displayText:a.value=l.hyperlink.target,a.type=this.getCellValueType(a.value),s.ref=a.refName,s.rId=this.mHyperLinks.length+1,this.mHyperLinks.push(s),a.cellStyle=new h,this.parserCellStyle(void 0!==l.style?this.mergeOptions(l.style,this.hyperlinkStyle):this.hyperlinkStyle,a.cellStyle,"string"),a.styleIndex=a.cellStyle.index),null!==l.formula&&void 0!==l.formula&&(a.formula=l.formula,a.type="formula"),null!==l.value&&void 0!==l.value&&(void 0!==a.formula?a.value=0:(a.value=l.value,a.type=this.getCellValueType(a.value))),null!==l.style&&void 0!==l.style&&void 0===a.styleIndex?(a.cellStyle=new h,a.value instanceof Date?this.parserCellStyle(l.style,a.cellStyle,a.type,14):this.parserCellStyle(l.style,a.cellStyle,a.type),a.styleIndex=a.cellStyle.index):a.value instanceof Date&&(a.cellStyle=new h,this.parserCellStyle({},a.cellStyle,a.type,14),a.styleIndex=a.cellStyle.index),this.parseCellType(a),this.mergeCells=this.processMergeCells(a,t.index,this.mergeCells),t.cells.add(a),a.index}t.spans=r+":"+i},E.prototype.GetColors=function(){var e=new Map;return e.set("WHITE","FFFFFFFF"),e.set("SILVER","FFC0C0C0"),e.set("GRAY","FF808080"),e.set("BLACK","FF000000"),e.set("RED","FFFF0000"),e.set("MAROON","FF800000"),e.set("YELLOW","FFFFFF00"),e.set("OLIVE","FF808000"),e.set("LIME","FF00FF00"),e.set("GREEN","FF008000"),e.set("AQUA","FF00FFFF"),e.set("TEAL","FF008080"),e.set("BLUE","FF0000FF"),e.set("NAVY","FF000080"),e.set("FUCHSIA","FFFF00FF"),e.set("PURPLE","FF800080"),e},E.prototype.processColor=function(e){return 0===e.indexOf("#")?e.replace("#","FF"):(e=e.toUpperCase(),this.rgbColors=this.GetColors(),this.rgbColors.has(e)?this.rgbColors.get(e):"FF000000")},E.prototype.processCellValue=function(e,t){var o=e;if(-1!==e.indexOf("<font")||-1!==e.indexOf("<a")||-1!==e.indexOf("<b>")||-1!==e.indexOf("<i>")||-1!==e.indexOf("<u>")){var r="",i=e.indexOf("<",0),n=e.indexOf(">",i+1);if(0<=i&&0<=n){for(0!==i&&(r+='<r><t xml:space="preserve">'+this.processString(e.substring(0,i))+"</t></r>");0<=i&&0<=n;)if(0<=(n=e.indexOf(">",i+1))){var s=e.substring(i+1,n),l=((i=e.indexOf("<",n+1))<0&&(i=o.length),o.substring(n+1,i));if(0!==l.length){s=s.split(" ");if(0<s.length&&(r+="<r><rPr>"),1<s.length)for(var a=0,h=s;a<h.length;a++){var d=h[a];switch(d.trim().substring(0,5)){case"size=":r+='<sz val="'+d.substring(6,d.length-1)+'"/>';break;case"face=":r+='<rFont val="'+d.substring(6,d.length-1)+'"/>';break;case"color":r+='<color rgb="'+this.processColor(d.substring(7,d.length-1))+'"/>';break;case"href=":var m=new R;m.target=d.substring(6,d.length-1).trim(),m.ref=t.refName,m.rId=this.mHyperLinks.length+1,this.mHyperLinks.push(m),r+='<color rgb="FF0000FF"/><u/><b/>'}}else if(1===s.length)switch(s[0].trim()){case"b":r+="<b/>";break;case"i":r+="<i/>";break;case"u":r+="<u/>"}r+='</rPr><t xml:space="preserve">'+this.processString(l)+"</t></r>"}}return""===r?o:r}}return o},E.prototype.applyGlobalStyle=function(t,e){this.cellStyles.has(t.name)&&(e.index=this.mStyles.filter(function(e){return e.name===t.name})[0].index,e.name=t.name)},E.prototype.parserCellStyle=function(e,t,o,r){if(null!==e.name&&void 0!==e.name){if(!t.isGlobalStyle)return void this.applyGlobalStyle(e,t);t.name=e.name}null!==e.backColor&&void 0!==e.backColor&&(t.backColor=e.backColor),t.borders=new i,null!==e.borders&&void 0!==e.borders&&this.parserBorder(e.borders,t.borders.all),null!==e.leftBorder&&void 0!==e.leftBorder&&this.parserBorder(e.leftBorder,t.borders.left),null!==e.rightBorder&&void 0!==e.rightBorder&&this.parserBorder(e.rightBorder,t.borders.right),null!==e.topBorder&&void 0!==e.topBorder&&this.parserBorder(e.topBorder,t.borders.top),null!==e.bottomBorder&&void 0!==e.bottomBorder&&this.parserBorder(e.bottomBorder,t.borders.bottom),null!==e.fontName&&void 0!==e.fontName&&(t.fontName=e.fontName),null!==e.fontSize&&void 0!==e.fontSize&&(t.fontSize=e.fontSize),null!==e.fontColor&&void 0!==e.fontColor&&(t.fontColor=e.fontColor),null!==e.italic&&void 0!==e.italic&&(t.italic=e.italic),null!==e.bold&&void 0!==e.bold&&(t.bold=e.bold),null!==e.hAlign&&void 0!==e.hAlign&&(t.hAlign=e.hAlign.toLowerCase()),null!==e.indent&&void 0!==e.indent&&(t.indent=e.indent,"left"!==t.hAlign)&&"right"!==t.hAlign&&(t.hAlign="left"),null!==e.rotation&&void 0!==e.rotation&&(t.rotation=e.rotation),null!==e.vAlign&&void 0!==e.vAlign&&(t.vAlign=e.vAlign.toLowerCase()),null!==e.underline&&void 0!==e.underline&&(t.underline=e.underline),null!==e.strikeThrough&&void 0!==e.strikeThrough&&(t.strikeThrough=e.strikeThrough),null!==e.wrapText&&void 0!==e.wrapText&&(t.wrapText=e.wrapText),null!==e.numberFormat&&void 0!==e.numberFormat?null!==e.type&&void 0!==e.type?t.numberFormat=this.getNumberFormat(e.numberFormat,e.type):t.numberFormat=this.getNumberFormat(e.numberFormat,o):(void 0!==r&&(t.numFmtId=14),t.numberFormat="GENERAL"),t.index=this.processCellStyle(t)},E.prototype.switchNumberFormat=function(e,t){var o=this.getNumberFormat(e,t);if(o!==e){var r=this.mNumFmt.get(e);if(void 0!==r&&(r.formatCode=o,this.mNumFmt.has(o))){for(var i=0,n=this.mCellStyleXfs;i<n.length;i++){var s=n[i];s.numFmtId===r.numFmtId&&(s.numFmtId=this.mNumFmt.get(o).numFmtId)}for(var l=0,a=this.mCellXfs;l<a.length;l++){var h=a[l];h.numFmtId===r.numFmtId&&(h.numFmtId=this.mNumFmt.get(o).numFmtId)}}}},E.prototype.changeNumberFormats=function(e){if("string"==typeof e){var t=new RegExp(this.currency,"g");e=e.replace(t,"[$"+this.currency+"]")}else if("object"==typeof e)for(var o=0;o<e.length;o++)e[o]=e[o].replace(this.currency,"[$"+this.currency+"]");return e},E.prototype.getNumberFormat=function(t,e){var o;switch(e){case"number":try{o=this.intl.getNumberPattern({format:t,currency:this.currency,useGrouping:!0},!0),1<this.currency.length&&(o=this.changeNumberFormats(o))}catch(e){o=t}break;case"datetime":try{o=this.intl.getDatePattern({skeleton:t,type:"dateTime"},!0)}catch(e){try{o=this.intl.getDatePattern({format:t,type:"dateTime"},!0)}catch(e){o=t}}break;case"date":try{o=this.intl.getDatePattern({skeleton:t,type:"date"},!0)}catch(e){try{o=this.intl.getDatePattern({format:t,type:"date"},!0)}catch(e){o=t}}break;case"time":try{o=this.intl.getDatePattern({skeleton:t,type:"time"},!0)}catch(e){try{o=this.intl.getDatePattern({format:t,type:"time"},!0)}catch(e){o=t}}break;default:o=t}return o},E.prototype.parserBorder=function(e,t){null!==e.color&&void 0!==e.color?t.color=e.color:t.color="#000000",null!==e.lineStyle&&void 0!==e.lineStyle?t.lineStyle=e.lineStyle:t.lineStyle="thin"},E.prototype.processCellStyle=function(e){var t;return!e.isGlobalStyle&&(t=this.compareStyle(e)).result?t.index:(this.processNumFormatId(e),this.mStyles.push(e),this.mStyles.length)},E.prototype.processNumFormatId=function(e){var t;"GENERAL"===e.numberFormat||this.mNumFmt.has(e.numberFormat)||(t=this.mNumFmt.size+164,this.mNumFmt.set(e.numberFormat,new c(t,e.numberFormat)))},E.prototype.isNewFont=function(e){for(var t=!1,o=0,r=0,i=this.mFonts;r<i.length;r++){var n=i[r],s=(o++,void 0);if(void 0!==e.fontColor&&(s="FF"+e.fontColor.replace("#","")),t=n.color===s&&n.b===e.bold&&n.i===e.italic&&n.u===e.underline&&n.strike===e.strikeThrough&&n.name===e.fontName&&n.sz===e.fontSize)break}return{index:o-=1,result:t}},E.prototype.isNewBorder=function(e){var t=new h;return this.isAllBorder(e.borders)?t.borders.all.color===e.borders.all.color&&t.borders.all.lineStyle===e.borders.all.lineStyle:t.borders.left.color===e.borders.left.color&&t.borders.left.lineStyle===e.borders.left.lineStyle&&t.borders.right.color===e.borders.right.color&&t.borders.right.lineStyle===e.borders.right.lineStyle&&t.borders.top.color===e.borders.top.color&&t.borders.top.lineStyle===e.borders.top.lineStyle&&t.borders.bottom.color===e.borders.bottom.color&&t.borders.bottom.lineStyle===e.borders.bottom.lineStyle},E.prototype.isAllBorder=function(e){var t=new h;return t.borders.all.color!==e.all.color&&t.borders.all.lineStyle!==e.all.lineStyle},E.prototype.compareStyle=function(e){for(var t=!0,o=0,r=0,i=this.mStyles;r<i.length;r++){var n=i[r];if(t=!n.isGlobalStyle&&n.backColor===e.backColor&&n.bold===e.bold&&n.numFmtId===e.numFmtId&&n.numberFormat===e.numberFormat&&n.type===e.type&&n.fontColor===e.fontColor&&n.fontName===e.fontName&&n.fontSize===e.fontSize&&n.hAlign===e.hAlign&&n.italic===e.italic&&n.underline===e.underline&&n.strikeThrough===e.strikeThrough&&n.vAlign===e.vAlign&&n.indent===e.indent&&n.rotation===e.rotation&&n.wrapText===e.wrapText&&n.borders.all.color===e.borders.all.color&&n.borders.all.lineStyle===e.borders.all.lineStyle&&n.borders.left.color===e.borders.left.color&&n.borders.left.lineStyle===e.borders.left.lineStyle&&n.borders.right.color===e.borders.right.color&&n.borders.right.lineStyle===e.borders.right.lineStyle&&n.borders.top.color===e.borders.top.color&&n.borders.top.lineStyle===e.borders.top.lineStyle&&n.borders.bottom.color===e.borders.bottom.color&&n.borders.bottom.lineStyle===e.borders.bottom.lineStyle){o=n.index;break}}return{index:o,result:t}},E.prototype.contains=function(e,t){t=e.indexOf(t);return-1<t&&t<e.length},E.prototype.getCellValueType=function(e){return e instanceof Date?"datetime":"boolean"==typeof e?"boolean":"number"==typeof e?"number":"string"},E.prototype.parseCellType=function(e){var t=e.type,o=e.value;switch(t){case"datetime":o=this.toOADate(o);void 0!==e.cellStyle&&void 0!==e.cellStyle.name&&this.globalStyles.has(e.cellStyle.name)&&(i=this.globalStyles.get(e.cellStyle.name),this.switchNumberFormat(i.format,i.type)),r="n";break;case"boolean":o=o?1:0,r="b";break;case"number":r="n",void 0!==e.cellStyle&&void 0!==e.cellStyle.name&&this.globalStyles.has(e.cellStyle.name)&&this.switchNumberFormat(this.globalStyles.get(e.cellStyle.name).format,"number");break;case"string":this.sharedStringCount++;var r="s",i=this.processCellValue(o,e);this.contains(this.sharedString,i)||this.sharedString.push(i),o=this.sharedString.indexOf(i)}e.saveType=r,e.value=o},E.prototype.parserImages=function(e,t){var o=e.length;t.images=[];for(var r=0;r<o;r++){var i=this.parserImage(e[r]);t.images.push(i)}},E.prototype.parseFilters=function(e,t){if(t.autoFilters=new X,null===e.row||void 0===e.row)throw new Error("Argument Null Exception: row null or empty");if(t.autoFilters.row=e.row,null===e.lastRow||void 0===e.lastRow)throw new Error("Argument Null Exception: lastRow cannot be null or empty");if(t.autoFilters.lastRow=e.lastRow,null===e.column||void 0===e.column)throw new Error("Argument Null Exception: column cannot be null or empty");if(t.autoFilters.column=e.column,null===e.lastColumn||void 0===e.row)throw new Error("Argument Null Exception: lastColumn cannot be null or empty");t.autoFilters.lastColumn=e.lastColumn},E.prototype.parserImage=function(e){var t=new G;return null!==e.image&&void 0!==e.image&&(t.image=e.image),null!==e.row&&void 0!==e.row&&(t.row=e.row),null!==e.column&&void 0!==e.column&&(t.column=e.column),null!==e.lastRow&&void 0!==e.lastRow&&(t.lastRow=e.lastRow),null!==e.lastColumn&&void 0!==e.lastColumn&&(t.lastColumn=e.lastColumn),null!==e.width&&void 0!==e.width&&(t.width=e.width),null!==e.height&&void 0!==e.height&&(t.height=e.height),null!==e.horizontalFlip&&void 0!==e.horizontalFlip&&(t.horizontalFlip=e.horizontalFlip),null!==e.verticalFlip&&void 0!==e.verticalFlip&&(t.verticalFlip=e.verticalFlip),null!==e.rotation&&void 0!==e.rotation&&(t.rotation=e.rotation),t},E.prototype.saveAsBlob=function(e,r){var i=this;return"text/csv"!==e?new Promise(function(o,e){i.saveInternal(),i.mArchive.saveAsBlob().then(function(e){var t={};t.blobData=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),o(t)})}):new Promise(function(e,t){var o={};o.blobData=i.csvHelper.saveAsBlob(r),e(o)})},E.prototype.save=function(e,t){var o=this;if(null==e||""===e)throw new Error("Argument Null Exception: fileName cannot be null or empty");var r=e.match(".xlsx$"),i=e.match(".csv$");if(null!==r&&r[0]==="."+this.mSaveType)this.saveInternal(),this.mArchive.save(e).then(function(){o.mArchive.destroy()});else{if(null===i||i[0]!=="."+this.mSaveType)throw Error("Save type and file extension is different.");this.csvHelper.save(e)}},E.prototype.saveInternal=function(){this.saveWorkbook(),this.saveWorksheets(),this.saveSharedString(),this.saveStyles(),this.saveApp(this.builtInProperties),this.saveCore(this.builtInProperties),this.saveContentType(),this.saveTopLevelRelation(),this.saveWorkbookRelation()},E.prototype.saveWorkbook=function(){for(var o,e='<?xml version="1.0" encoding="utf-8"?><workbook xmlns:r = "http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns= "http://schemas.openxmlformats.org/spreadsheetml/2006/main"><workbookPr codeName="ThisWorkbook" defaultThemeVersion= "153222"/><bookViews><workbookView activeTab="0"/></bookViews>',t="<sheets>",r=this.worksheets.length,i=0;i<r;i++){var n=this.worksheets[i].name;t+='<sheet name="'+(n=(n=(n=(n=n.replace("&","&amp;")).replace("<","&lt;")).replace(">","&gt;")).replace('"',"&quot;"))+'" sheetId="'+(i+1).toString()+'" r:id ="rId'+(i+1).toString()+'" />'}e+=t+="</sheets>",0<this.printTitles.size&&(o="<definedNames>",this.printTitles.forEach(function(e,t){o+='<definedName name="_xlnm.Print_Titles" localSheetId="'+t+'">'+e+"</definedName>"}),e+=o+="</definedNames>"),this.addToArchive(e+"</workbook>","xl/workbook.xml")},E.prototype.saveWorksheets=function(){for(var e=this.worksheets.length,t=0;t<e;t++)this.saveWorksheet(this.worksheets[t],t)},E.prototype.saveWorksheet=function(e,t){var o=new B,r='<?xml version="1.0" encoding="utf-8" standalone="yes"?><worksheet xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">';if(e.isSummaryRowBelow?r+="<sheetPr />":r+='<sheetPr><outlinePr summaryBelow="0" ></outlinePr></sheetPr>',r+=this.saveSheetView(e),void 0!==e.columns){for(var i="<cols>",n=0,s=e.columns;n<s.length;n++){var l=s[n];void 0!==l.width?i+='<col min="'+l.index+'" max="'+l.index+'" width="'+this.pixelsToColumnWidth(l.width)+'" customWidth="1" />':i+='<col min="'+l.index+'" max="'+l.index+'" width="8.43" customWidth="1" />'}r+=i+"</cols>"}if(o.append(r+="<sheetData>"),r="",void 0!==e.rows)for(var a=0,h=e.rows;a<h.length;a++){var d=h[a],m='<row r="'+d.index+'" ';w.isNullOrUndefined(d.spans)||(m+='spans="'+d.spans+'" '),void 0!==d.height&&(m+='ht="'+this.pixelsToRowHeight(d.height)+'" customHeight="1" '),void 0!==d.grouping&&(d.grouping.isHidden&&(m+='hidden="1" '),void 0!==d.grouping.outlineLevel&&(m+='outlineLevel="'+d.grouping.outlineLevel+'" '),d.grouping.isCollapsed)&&(m+='collapsed="1" '),m+=">";for(var p=0,c=d.cells;p<c.length;p++){var u=c[p];void 0===u||void 0===u.value&&void 0===u.cellStyle||(m+='<c r="'+u.refName+'" ',void 0!==u.saveType&&(m+='t="'+u.saveType+'" '),void 0!==u.styleIndex&&(m+='s="'+u.styleIndex+'" '),m+=" >",void 0!==u.formula&&(m+="<f>"+u.formula+"</f>"),void 0!==u.value?m+="<v>"+u.value+"</v></c>":m+="</c>")}m+="</row>",o.append(m)}if(r+="</sheetData>",null!==e.autoFilters&&void 0!==e.autoFilters&&(r+='<autoFilter ref="'+this.getCellName(e.autoFilters.row,e.autoFilters.column)+":"+this.getCellName(e.autoFilters.lastRow,e.autoFilters.lastColumn)+'"/>'),0<e.mergeCells.length){r+='<mergeCells count="'+e.mergeCells.length+'">';for(var f=0,g=e.mergeCells;f<g.length;f++)r+='<mergeCell ref="'+g[f].ref+'" />';r+="</mergeCells>"}if(0<e.hyperLinks.length){r+="<hyperlinks>";for(var v=0,y=e.hyperLinks;v<y.length;v++){var x=y[v];r+='<hyperlink ref="'+x.ref+'" r:id="rId'+x.rId+'" />'}r+="</hyperlinks>"}r+='<pageMargins left="0.75" right="0.75" top="1" bottom="1" header="0.5" footer="0.5" /><headerFooter scaleWithDoc="1" alignWithMargins="0" differentFirst="0" differentOddEven="0" />',null!=e.images&&0<e.images.length&&(this.drawingCount++,this.saveDrawings(e,e.index),r+='<drawing r:id="rId'+(e.hyperLinks.length+1)+'"/>'),this.addToArchive(this.saveSheetRelations(e),"xl/worksheets/_rels/sheet"+e.index+".xml.rels"),o.append(r+"</worksheet>"),this.addToArchive(o.getBlob(),"xl/worksheets/sheet"+(t+1)+".xml")},E.prototype.saveDrawings=function(e,t){var o=new B,r='<xdr:wsDr xmlns:xdr="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">';if(void 0!==e.images){for(var i=0,n=0,s=e.images;n<s.length;n++){var l=s[n],l=(void 0!==l.height&&void 0!==l.width?(this.updatelastRowOffset(e,l),this.updatelastColumnOffSet(e,l),--l.lastRow,--l.lastColumn):void 0!==l.lastRow&&void 0!==l.lastColumn&&(l.lastRowOffset=0,l.lastColOffset=0),i++,r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=r+'<xdr:twoCellAnchor editAs="oneCell">'+"<xdr:from><xdr:col>")+(l.column-1)+"</xdr:col><xdr:colOff>")+0+"</xdr:colOff><xdr:row>")+(l.row-1))+"</xdr:row><xdr:rowOff>"+0)+"</xdr:rowOff></xdr:from>"+"<xdr:to><xdr:col>")+l.lastColumn+"</xdr:col><xdr:colOff>")+l.lastColOffset+"</xdr:colOff><xdr:row>")+l.lastRow+"</xdr:row><xdr:rowOff>")+l.lastRowOffset)+"</xdr:rowOff></xdr:to>"+"<xdr:pic>")+"<xdr:nvPicPr>"+('<xdr:cNvPr id="'+i+'" name="Picture '+i+'"> </xdr:cNvPr>'))+'<xdr:cNvPicPr><a:picLocks noChangeAspect="1"/></xdr:cNvPicPr> </xdr:nvPicPr>'+"<xdr:blipFill>")+('<a:blip xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" r:embed="rId'+i+'" cstate="print">')+"</a:blip><a:stretch><a:fillRect /></a:stretch></xdr:blipFill>")+"<xdr:spPr>"+"<a:xfrm",null!=l.rotation&&l.rotation<=3600&&-3600<=l.rotation&&(r+=' rot="'+6e4*l.rotation+'"'),null!=l.verticalFlip&&0!=l.verticalFlip&&(r+=' flipV="1"'),null!=l.horizontalFlip&&0!=l.horizontalFlip&&(r+=' flipH="1"'),r=(r+="/>")+'<a:prstGeom prst="rect"><a:avLst /></a:prstGeom></xdr:spPr>'+"</xdr:pic><xdr:clientData /></xdr:twoCellAnchor>",this.convertBase64toImage(l.image));this.imageCount+=1,this.addToArchive(l,"xl/media/image"+this.imageCount+".png")}o.append(r),o.append("</xdr:wsDr>"),this.saveDrawingRelations(e),this.addToArchive(o.getBlob(),"xl/drawings/drawing"+this.drawingCount+".xml")}},E.prototype.updatelastRowOffset=function(e,t){for(var o=t.height,r=t.row,i=0;0<=o;){var n=0,s=(n=void 0!==e.rows&&void 0!==e.rows[r-1]?this.convertToPixels(void 0===e.rows[r-1].height?15:e.rows[r-1].height):this.convertToPixels(15))-i*n/256;if(o<s){t.lastRow=r,t.lastRowOffset=i+256*o/n;n=0,n=void 0!==e.rows&&void 0!==e.rows[r-1]?this.convertToPixels(void 0===e.rows[r-1].height?15:e.rows[r-1].height):this.convertToPixels(15);t.lastRowOffset=n*t.lastRowOffset/256,t.lastRowOffset=Math.round(t.lastRowOffset/this.unitsProportions[7]);break}o-=s,r++,i=0}},E.prototype.updatelastColumnOffSet=function(e,t){for(var o=t.width,r=t.column,i=0;0<=o;){var n=0,s=(n=void 0!==e.columns&&void 0!==e.columns[r-1]?this.ColumnWidthToPixels(void 0===e.columns[r-1].width?8.43:e.columns[r-1].width):this.ColumnWidthToPixels(8.43))-i*n/1024;if(o<s){t.lastColumn=r,t.lastColOffset=i+1024*o/n;n=0,n=void 0!==e.columns&&void 0!==e.columns[r-1]?this.ColumnWidthToPixels(void 0===e.columns[r-1].width?8.43:e.columns[r-1].width):this.ColumnWidthToPixels(8.43);t.lastColOffset=n*t.lastColOffset/1024,t.lastColOffset=Math.round(t.lastColOffset/this.unitsProportions[7]);break}o-=s,r++,i=0}},E.prototype.convertToPixels=function(e){return e*this.unitsProportions[6]},E.prototype.convertBase64toImage=function(e){for(var t=window.atob(e),e=new ArrayBuffer(t.length),o=new Uint8Array(e),r=0;r<t.length;r++)o[r]=t.charCodeAt(r);return new Blob([o],{type:"image/png"})},E.prototype.saveDrawingRelations=function(e){for(var t='<?xml version="1.0" encoding="utf-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">',o=e.images.length,r=this.imageCount-e.images.length,i=1;i<=o;i++)t+='<Relationship Id="rId'+i+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="../media/image'+ ++r+'.png" />';this.addToArchive(t+"</Relationships>","xl/drawings/_rels/drawing"+this.drawingCount+".xml.rels")},E.prototype.pixelsToColumnWidth=function(e){e=12<e?this.trunc((e-5)/7*100+.5)/100:e/12;return 1<e?(7*e+5)/7*256/256:12*e/7*256/256},E.prototype.ColumnWidthToPixels=function(e){return this.trunc((256*(1<e?(7*e+5)/7*256/256:12*e/7*256/256)+this.trunc(128/7))/256*7)},E.prototype.trunc=function(e){var t=e-e%1;return 0==t&&(e<0||0===e&&1/e!=1/0)?-0:t},E.prototype.pixelsToRowHeight=function(e){return e*this.unitsProportions[5]/this.unitsProportions[6]},E.prototype.saveSheetRelations=function(e){for(var t='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">',o=0,r=e.hyperLinks;o<r.length;o++){var i=r[o];t+='<Relationship Id="rId'+i.rId+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="'+this.processString(i.target)+'" TargetMode="External" />'}return null!=e.images&&0<e.images.length&&(t+='<Relationship Id="rId'+(e.hyperLinks.length+1)+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing" Target="../drawings/drawing'+this.drawingCount+'.xml" />'),t+="</Relationships>"},E.prototype.saveSheetView=function(e){var t='<sheetViews><sheetView workbookViewId="0" ';return!0===e.enableRtl&&(t+='rightToLeft="1"'),!1===e.showGridLines?t+='showGridLines="0" >':t+=">",void 0!==e.freezePanes&&(t+='<pane state="frozen" topLeftCell="'+e.freezePanes.leftCell+'" ',0!==e.freezePanes.row&&(t+='ySplit="'+e.freezePanes.row+'" '),0!==e.freezePanes.column&&(t+='xSplit="'+e.freezePanes.column+'" '),t+="/>"),t+="</sheetView></sheetViews > "},E.prototype.saveSharedString=function(){var e=this.sharedString.length;if(0<e){for(var t='<?xml version="1.0" encoding="utf-8"?><sst uniqueCount="'+e+'" count="'+this.sharedStringCount+'" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">',o="",r=0;r<e;r++)o=0!==this.sharedString[r].indexOf("<r>")?(o+="<si><t>")+this.processString(this.sharedString[r])+"</t></si>":(o+="<si>")+this.sharedString[r]+"</si>";this.addToArchive(t+(o+="</sst>"),"xl/sharedStrings.xml")}},E.prototype.processString=function(e){if("string"==typeof e)-1!==(e=-1!==(e=-1!==(e=-1!==e.indexOf("&")?e.replace(/&/g,"&amp;"):e).indexOf("<")?e.replace(/</g,"&lt;"):e).indexOf(">")?e.replace(/>/g,"&gt;"):e).indexOf("\v")&&(e=e.replace(/\v/g,"_x000B_"));else if("object"==typeof e)for(var t=0;t<e.length;t++)-1!==e[t].indexOf("&")&&(e[t]=e[t].replace(/&/g,"&amp;")),-1!==e[t].indexOf("<")&&(e[t]=e[t].replace(/</g,"&lt;")),-1!==e[t].indexOf(">")&&(e[t]=e[t].replace(/>/g,"&gt;")),-1!==e[t].indexOf("\v")&&(e[t]=e[t].replace(/\v/g,"_x000B_"));return e},E.prototype.saveStyles=function(){this.updateCellXfsStyleXfs();var e='<?xml version="1.0" encoding="utf-8"?><styleSheet xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">',e=(e=(e=(e=(e=(e=(e+=this.saveNumberFormats())+this.saveFonts())+this.saveFills())+this.saveBorders())+this.saveCellStyleXfs())+this.saveCellXfs())+this.saveCellStyles();this.addToArchive(e+"</styleSheet>","xl/styles.xml")},E.prototype.updateCellXfsStyleXfs=function(){for(var e=0,t=this.mStyles;e<t.length;e++){var o,r=t[e],i=void 0,n=(r.isGlobalStyle?(i=new m).xfId=r.index-1:(i=new s).xfId=0,this.isNewFont(r));n.result?i.fontId=n.index:((n=new d).b=r.bold,n.i=r.italic,n.name=r.fontName,n.sz=r.fontSize,n.u=r.underline,n.strike=r.strikeThrough,n.color="FF"+r.fontColor.replace("#",""),this.mFonts.push(n),i.fontId=this.mFonts.length-1),"none"!==r.backColor?(n="FF"+r.backColor.replace("#",""),this.mFills.has(n)?o=this.mFills.get(n):(o=this.mFills.size+2,this.mFills.set(n,o)),i.fillId=o):i.fillId=0,this.isNewBorder(r)?i.borderId=0:(this.mBorders.push(r.borders),i.borderId=this.mBorders.length),"GENERAL"!==r.numberFormat?this.mNumFmt.has(r.numberFormat)?(n=this.mNumFmt.get(r.numberFormat),i.numFmtId=n.numFmtId):(n=this.mNumFmt.size+164,this.mNumFmt.set(r.numberFormat,new c(n,r.numberFormat)),i.numFmtId=n):"GENERAL"===r.numberFormat&&14===r.numFmtId?i.numFmtId=14:i.numFmtId=0,r.isGlobalStyle||(i.applyAlignment=1),i.alignment=new l,i.alignment.indent=r.indent,i.alignment.horizontal=r.hAlign,i.alignment.vertical=r.vAlign,i.alignment.wrapText=r.wrapText?1:0,i.alignment.rotation=r.rotation,r.isGlobalStyle&&this.mCellStyleXfs.push(i),this.mCellXfs.push(i)}},E.prototype.saveNumberFormats=function(){var o;return 1<=this.mNumFmt.size?(o='<numFmts count="'+this.mNumFmt.size+'">',this.mNumFmt.forEach(function(e,t){o+='<numFmt numFmtId="'+e.numFmtId+'" formatCode="'+e.formatCode.replace(/"/g,"&quot;")+'" />'}),o+="</numFmts>"):""},E.prototype.saveFonts=function(){var e='<fonts count="'+this.mFonts.length+'">';if(1<=this.mFonts.length)for(var t=0,o=this.mFonts;t<o.length;t++){var r=o[t];e+="<font>",r.b&&(e+="<b />"),r.i&&(e+="<i />"),r.u&&(e+="<u />"),r.strike&&(e+="<strike />"),e=(e=(e+='<sz val="'+r.sz+'" />')+('<color rgb="'+r.color+'" />'))+('<name val="'+r.name+'" /></font>')}return e+"</fonts>"},E.prototype.saveFills=function(){var o='<fills count="'+(this.mFills.size+2)+'"><fill><patternFill patternType="none"></patternFill></fill><fill><patternFill patternType="gray125"></patternFill></fill>';return 1<=this.mFills.size&&this.mFills.forEach(function(e,t){o+='<fill><patternFill patternType="solid"><fgColor rgb="'+t+'" /><bgColor rgb="FFFFFFFF" /></patternFill></fill>'}),o+"</fills>"},E.prototype.saveBorders=function(){var e='<borders count="'+(this.mBorders.length+1)+'"><border><left /><right /><top /><bottom /><diagonal /></border>';if(1<=this.mBorders.length)for(var t=0,o=this.mBorders;t<o.length;t++){var r,i,n=o[t];this.isAllBorder(n)?(r=n.all.color.replace("#",""),e+='<border><left style="'+(i=n.all.lineStyle)+'"><color rgb="FF'+r+'" /></left><right style="'+i+'"><color rgb="FF'+r+'" /></right><top style="'+i+'"><color rgb="FF'+r+'" /></top><bottom style="'+i+'"><color rgb="FF'+r+'" /></bottom></border>'):e+='<border><left style="'+n.left.lineStyle+'"><color rgb="FF'+n.left.color.replace("#","")+'" /></left><right style="'+n.right.lineStyle+'"><color rgb="FF'+n.right.color.replace("#","")+'" /></right><top style="'+n.top.lineStyle+'"><color rgb="FF'+n.top.color.replace("#","")+'" /></top><bottom style="'+n.bottom.lineStyle+'"><color rgb="FF'+n.bottom.color.replace("#","")+'" /></bottom></border>'}return e+"</borders>"},E.prototype.saveCellStyles=function(){var o=this,r='<cellStyles count="'+this.cellStyles.size+'">';return this.cellStyles.forEach(function(e,t){r+='<cellStyle name="'+t+'" xfId="'+o.cellStyles.get(t).xfId+'"',"Normal"===t&&(r+=' builtinId="0"'),r+=" />"}),r+="</cellStyles>"},E.prototype.saveCellStyleXfs=function(){var e='<cellStyleXfs count="'+(this.mCellStyleXfs.length+1)+'"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" />';if(1<=this.mCellStyleXfs.length)for(var t=0,o=this.mCellStyleXfs;t<o.length;t++){var r=o[t];e+='<xf numFmtId="'+r.numFmtId+'" fontId="'+r.fontId+'" fillId="'+r.fillId+'" borderId="'+r.borderId+'" ',void 0!==r.alignment?e+=">"+this.saveAlignment(r)+"</xf>":e+=" />"}return e+"</cellStyleXfs>"},E.prototype.saveCellXfs=function(){var e='<cellXfs count="'+(this.mCellXfs.length+1)+'"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" />';if(1<=this.mCellXfs.length)for(var t=0,o=this.mCellXfs;t<o.length;t++){var r=o[t];e+='<xf numFmtId="'+r.numFmtId+'" fontId="'+r.fontId+'" fillId="'+r.fillId+'" borderId="'+r.borderId+'" xfId="'+r.xfId+'" ',1===r.applyAlignment&&(e+='applyAlignment="1"'),e+=">"+this.saveAlignment(r)+"</xf>"}return e+"</cellXfs>"},E.prototype.saveAlignment=function(e){var t="<alignment ";return void 0!==e.alignment.horizontal&&(t+='horizontal="'+e.alignment.horizontal+'" '),void 0!==e.alignment.indent&&0!==e.alignment.indent?t+='indent="'+e.alignment.indent+'" ':void 0!==e.alignment.rotation&&0!==e.alignment.rotation&&(t+='textRotation="'+e.alignment.rotation+'" '),void 0!==e.alignment.vertical&&(t+='vertical="'+e.alignment.vertical+'" '),t+='wrapText="'+e.alignment.wrapText+'" />'},E.prototype.saveApp=function(e){var t='<?xml version="1.0" encoding="utf-8" standalone="yes"?><Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"><Application>Essential XlsIO</Application>';void 0!==e&&(void 0!==e.manager&&(t+="<Manager>"+e.manager+"</Manager>"),void 0!==e.company)&&(t+="<Company>"+e.company+"</Company>"),this.addToArchive(t+"</Properties>","docProps/app.xml")},E.prototype.saveCore=function(e){var t=new Date,o='<?xml version="1.0" encoding="utf-8" standalone="yes"?><cp:coreProperties xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties">';void 0!==this.builtInProperties?(void 0!==e.author&&(o+="<dc:creator>"+e.author+"</dc:creator>"),void 0!==e.subject&&(o+="<dc:subject>"+e.subject+"</dc:subject>"),void 0!==e.category&&(o+="<cp:category>"+e.category+"</cp:category>"),void 0!==e.comments&&(o+="<dc:description>"+e.comments+"</dc:description>"),void 0!==e.title&&(o+="<dc:title>"+e.title+"</dc:title>"),void 0!==e.tags&&(o+="<cp:keywords>"+e.tags+"</cp:keywords>"),void 0!==e.status&&(o+="<cp:contentStatus>"+e.status+"</cp:contentStatus>"),void 0!==e.createdDate?o+='<dcterms:created xsi:type="dcterms:W3CDTF">'+e.createdDate.toISOString()+"</dcterms:created>":o+='<dcterms:created xsi:type="dcterms:W3CDTF">'+t.toISOString()+"</dcterms:created>",void 0!==e.modifiedDate?o+='<dcterms:modified xsi:type="dcterms:W3CDTF">'+e.modifiedDate.toISOString()+"</dcterms:modified>":o+='<dcterms:modified xsi:type="dcterms:W3CDTF">'+t.toISOString()+"</dcterms:modified>"):o=(o+='<dcterms:created xsi:type="dcterms:W3CDTF">'+t.toISOString()+"</dcterms:created>")+'<dcterms:modified xsi:type="dcterms:W3CDTF">'+t.toISOString()+"</dcterms:modified>",this.addToArchive(o+="</cp:coreProperties>","docProps/core.xml")},E.prototype.saveTopLevelRelation=function(){this.addToArchive('<?xml version="1.0" encoding="utf-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" /><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml" /><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml" /></Relationships>',"_rels/.rels")},E.prototype.saveWorkbookRelation=function(){for(var e='<?xml version="1.0" encoding="utf-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">',t=this.worksheets.length,o=0,r=0;r<t;r++,o++)e+='<Relationship Id="rId'+(r+1).toString()+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet'+(r+1).toString()+'.xml" />';e+='<Relationship Id="rId'+(++o).toString()+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml" />',0<this.sharedStringCount&&(e+='<Relationship Id="rId'+(++o).toString()+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml" />'),this.addToArchive(e+"</Relationships>","xl/_rels/workbook.xml.rels")},E.prototype.saveContentType=function(){for(var e='<?xml version="1.0" encoding="utf-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="xml" ContentType="application/xml" /><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml" /><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml" />',t="",o=this.worksheets.length,r=0,i=0;i<o;i++)t+='<Override PartName="/xl/worksheets/sheet'+(i+1).toString()+'.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" />',null!=this.worksheets[i].images&&0<this.worksheets[i].images.length&&(t+='<Override PartName="/xl/drawings/drawing'+(++r).toString()+'.xml" ContentType="application/vnd.openxmlformats-officedocument.drawing+xml" />');0<this.imageCount&&(t+='<Default Extension="png" ContentType="image/png" />'),0<this.sharedStringCount&&(e+='<Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" />'),this.addToArchive(e+t+"</Types>","[Content_Types].xml")},E.prototype.addToArchive=function(e,t){var o;o="string"==typeof e?(o=new Blob([e],{type:"text/plain"}),new a.ZipArchiveItem(o,t)):new a.ZipArchiveItem(e,t),this.mArchive.addItem(o)},E.prototype.processMergeCells=function(e,t,o){var r,i,n;return 0===e.rowSpan&&0===e.colSpan||((r=new P).x=e.index,r.width=e.colSpan,r.y=t,r.height=e.rowSpan,i=this.getCellName(r.y,r.x),n=this.getCellName(t+r.height,e.index+r.width),r.ref=i+":"+n,o.add(r),i={x:r.x,y:r.y},n={x:e.index+r.width,y:t+r.height},this.updatedMergedCellStyles(i,n,e)),o},E.prototype.updatedMergedCellStyles=function(e,t,o){for(var r=e.x;r<=t.x;r++)for(var i=e.y;i<=t.y;i++)this.mergedCellsStyle.set(this.getCellName(i,r),{x:r,y:i,styleIndex:o.styleIndex})},E.prototype.dateToTicks=function(e,t,o){var r;if(1<=e&&e<=9999&&1<=t&&t<=12)return 864e9*(365*(r=e-1)+(r/4|0)-(r/100|0)+(r/400|0)+(this.isLeapYear(e)?[0,31,60,91,121,152,182,213,244,274,305,335,366]:[0,31,59,90,120,151,181,212,243,273,304,334,365])[t-1]+o-1);throw new Error("Not a valid date")},E.prototype.timeToTicks=function(e,t,o){if(0<=e&&e<24&&0<=t&&t<60&&0<=o&&o<60)return 1e4*(3600*e+60*t+o)*1e3;throw new Error("Not valid time")},E.prototype.isLeapYear=function(e){return e%4==0&&(e%100!=0||e%400==0)},E.prototype.toOADate=function(e){if(0===(e=this.dateToTicks(e.getFullYear(),e.getMonth()+1,e.getDate())+this.timeToTicks(e.getHours(),e.getMinutes(),e.getSeconds())))return 0;if(e<31241376e9)throw new Error("Arg_OleAutDateInvalid");return(e-599264352e9)/1e4/864e5},E);function E(e,t,o,r,i){if(this.sharedStringCount=0,this.unitsProportions=[1.28,.32,96,96/25.4,96/2.54,1,96/72,96/72/12700],this.hyperlinkStyle={fontColor:"#0000FF",underline:!0},this.culture=void 0!==o?o:"en-US",this.currency=void 0!==r?r:"USD",this.intl=new w.Internationalization(this.culture),"xlsx"===(this.mSaveType=t)){if(this.mArchive=new a.ZipArchive,this.sharedString=[],this.mFonts=[],this.mBorders=[],this.mStyles=[],this.printTitles=new Map,this.cellStyles=new Map,this.mNumFmt=new Map,this.mFills=new Map,this.mStyles.push(new h),this.mFonts.push(new d),this.cellStyles.set("Normal",new p),this.mCellXfs=[],this.mCellStyleXfs=[],this.drawingCount=0,this.imageCount=0,null!==e.styles&&void 0!==e.styles){this.globalStyles=new Map;for(var n=0;n<e.styles.length;n++)if(void 0!==e.styles[n].name){if(this.cellStyles.has(e.styles[n].name))throw Error("Style name "+e.styles[n].name+" is already existed");var s=new h,l=(s.isGlobalStyle=!0,this.parserCellStyle(e.styles[n],s,"none"),new p),s=(l.name=s.name,l.xfId=s.index-1,this.cellStyles.set(l.name,l),{});void 0!==e.styles[n].numberFormat&&(s.format=e.styles[n].numberFormat),void 0!==e.styles[n].type?s.type=e.styles[n].type:s.type="datetime",void 0!==s.format&&this.globalStyles.set(e.styles[n].name,s)}}if(null===e.worksheets||void 0===e.worksheets)throw Error("Worksheet is expected.");this.parserWorksheets(e.worksheets),null!==e.builtInProperties&&void 0!==e.builtInProperties&&(this.builtInProperties=new Y,this.parserBuiltInProperties(e.builtInProperties,this.builtInProperties))}else this.csvHelper=new U(e,i)}var Y=function(){};e.Alignment=l,e.BlobHelper=B,e.Border=t,e.Borders=i,e.BuiltInProperties=Y,e.Cell=u,e.CellStyle=h,e.CellStyleXfs=m,e.CellStyles=p,e.CellXfs=s,e.Cells=f,e.Column=g,e.CsvHelper=U,e.Font=d,e.FreezePane=M,e.Grouping=W,e.HyperLink=R,e.MergeCell=P,e.MergeCells=j,e.NumFmt=c,e.Row=x,e.Rows=b,e.ValueFormatter=V,e.Workbook=H,e.Worksheet=_,e.Worksheets=k,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-compression"),require("@syncfusion/ej2-base"),require("@syncfusion/ej2-file-utils")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-compression","@syncfusion/ej2-base","@syncfusion/ej2-file-utils"],t):t((e=e||self).ej={},e.ej2Compression,e.ej2Base,e.ej2FileUtils)}(this,function(e,a,w,z){"use strict";var h=function(){this.numFmtId=0,this.backColor="none",this.fontName="Calibri",this.fontSize=10.5,this.fontColor="#000000",this.italic=!1,this.bold=!1,this.underline=!1,this.strikeThrough=!1,this.wrapText=!1,this.hAlign="general",this.vAlign="bottom",this.indent=0,this.rotation=0,this.numberFormat="GENERAL",this.type="datetime",this.borders=new i,this.isGlobalStyle=!1},d=function(){this.sz=10.5,this.name="Calibri",this.u=!1,this.b=!1,this.i=!1,this.color="FF000000",this.strike=!1},s=function(){},l=function(){},m=function(){},p=function(){this.name="Normal",this.xfId=0},c=function(e,t){this.numFmtId=e,this.formatCode=t},t=function(e,t){this.lineStyle=e,this.color=t},i=function(){this.left=new t("none","#FFFFFF"),this.right=new t("none","#FFFFFF"),this.top=new t("none","#FFFFFF"),this.bottom=new t("none","#FFFFFF"),this.all=new t("none","#FFFFFF")};r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])}))(e,t)};var r,o,u=function(){},f=(function(e,t){function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}(n,o=Array),n);function n(){var n=null!==o&&o.apply(this,arguments)||this;return n.add=function(e){for(var t=!1,o=0,r=0,i=n;r<i.length;r++)i[r].index===e.index&&(n[o]=e,t=!0),o++;t||n.push(e)},n}var g=function(){};v=function(e,t){return(v=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])}))(e,t)};var v,y,x=function(){},b=(function(e,t){function o(){this.constructor=e}v(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}(F,y=Array),F);function F(){var t=null!==y&&y.apply(this,arguments)||this;return t.add=function(e){t.push(e)},t}S=function(e,t){return(S=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])}))(e,t)};(function(e,t){function o(){this.constructor=e}S(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)})(L,C=Array);var S,C,k=L;function L(){return null!==C&&C.apply(this,arguments)||this}T=function(e,t){return(T=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])}))(e,t)};var T,I,_=function(){this.isSummaryRowBelow=!0,this.showGridLines=!0,this.enableRtl=!1},R=function(){},W=function(){},M=function(){},P=function(){},j=(function(e,t){function o(){this.constructor=e}T(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}(N,I=Array),N.isIntersecting=function(e,t){return e.x<=t.x+t.width&&t.x<=e.x+e.width&&e.y<=t.y+t.height&&t.y<=e.y+e.height},N);function N(){var l=null!==I&&I.apply(this,arguments)||this;return l.add=function(e){for(var t=!1,o=0,r=0,i=l;r<i.length;r++){var n,s=i[r];N.isIntersecting(s,e)&&((n=new P).x=Math.min(s.x,e.x),n.y=Math.min(s.Y,e.y),n.width=Math.max(s.Width+s.X,e.width+e.x),n.height=Math.max(s.Height+s.Y,e.height+e.y),n.ref=l[o].ref.split(":")[0]+":"+e.ref.split(":")[1],e=l[o]=n,t=!0),o++}return t||l.push(e),e},l}var G=function(){},V=(O.prototype.getFormatFunction=function(e,t){return e.type?(t&&(e.isServerRendered=!0),this.intl.getDateFormat(e)):this.intl.getNumberFormat(e)},O.prototype.toView=function(e,t){var o=e;return o=w.isNullOrUndefined(t)||w.isNullOrUndefined(e)?o:t(e)},O.prototype.displayText=function(e,t,o){return this.toView(e,this.getFormatFunction(t,o))},O);function O(e){this.intl=new w.Internationalization}A.prototype.parseWorksheet=function(e){null!==e.rows&&void 0!==e.rows&&this.parseRows(e.rows)},A.prototype.parseRows=function(e){for(var t=1,o=0,r=e;o<r.length;o++){var i=r[o];if(null===i.index||void 0===i.index)throw Error("Row index is missing.");for(;t<i.index;)this.csvStr+="\r\n",t++;this.parseRow(i)}this.csvStr+="\r\n"},A.prototype.parseRow=function(e){if(null!==e.cells&&void 0!==e.cells)for(var t=1,o=0,r=e.cells;o<r.length;o++){var i=r[o];if(null===i.index||void 0===i.index)throw Error("Cell index is missing.");for(;t<i.index;)this.csvStr+=this.separator,t++;this.parseCell(i)}},A.prototype.parseCell=function(t){var o=this.csvStr;if(void 0!==t.value)if(t.value instanceof Date)if(void 0!==t.style&&void 0!==t.style.numberFormat)try{o+=this.parseCellValue(this.formatter.displayText(t.value,{type:"dateTime",skeleton:t.style.numberFormat},this.isServerRendered))}catch(e){o+=this.parseCellValue(this.formatter.displayText(t.value,{type:"dateTime",format:t.style.numberFormat},this.isServerRendered))}else if(void 0!==t.style&&void 0!==t.style.name&&this.globalStyles.has(t.style.name))try{o+=this.parseCellValue(this.formatter.displayText(t.value,{type:"dateTime",skeleton:this.globalStyles.get(t.style.name)},this.isServerRendered))}catch(e){o+=this.parseCellValue(this.formatter.displayText(t.value,{type:"dateTime",format:this.globalStyles.get(t.style.name)},this.isServerRendered))}else o+=t.value;else"boolean"==typeof t.value?o+=t.value?"TRUE":"FALSE":"number"==typeof t.value?void 0!==t.style&&void 0!==t.style.numberFormat?o+=this.parseCellValue(this.formatter.displayText(t.value,{format:t.style.numberFormat,ignoreCurrency:!0},this.isServerRendered)):void 0!==t.style&&void 0!==t.style.name&&this.globalStyles.has(t.style.name)?o+=this.parseCellValue(this.formatter.displayText(t.value,{format:this.globalStyles.get(t.style.name),ignoreCurrency:!0},this.isServerRendered)):o+=t.value:o+=this.parseCellValue(t.value);this.csvStr=o},A.prototype.parseCellValue=function(e){for(var t="",o=e.length,r=0;r<o;r++)'"'===e[r]?t+=e[r].replace('"','""'):t+=e[r];return-1!==(e=t).indexOf(this.separator)||-1!==e.indexOf("\n")||-1!==e.indexOf('"')?'"'+e+'"':e},A.prototype.save=function(e){var t,o;this.buffer=new Blob(["\ufeff"+this.csvStr],{type:"text/csv;charset=UTF-8"}),this.isMicrosoftBrowser?navigator.msSaveBlob(this.buffer,e):(t=window.URL.createObjectURL(this.buffer),(o=document.createElementNS("http://www.w3.org/1999/xhtml","a")).download=e,o.href=t,(e=document.createEvent("MouseEvent")).initEvent("click",!0,!0),o.dispatchEvent(e),setTimeout(function(){window.URL.revokeObjectURL(t)}))},A.prototype.saveAsBlob=function(e){var t,o;return null!=e?(t=new z.Encoding,o="UTF-8",o="ANSI"==e.toUpperCase()?(t.type="Ansi","ANSI"):"UNICODE"==e.toUpperCase()?(t.type="Unicode","UNICODE"):(t.type="Utf8","UTF-8"),e=t.getBytes(this.csvStr,0,this.csvStr.length),new Blob([e],{type:"text/csv;charset="+o})):new Blob(["\ufeff"+this.csvStr],{type:"text/csv;charset=UTF-8"})};var U=A;function A(e,t){if(this.csvStr="",this.separator=null==t?",":t,this.formatter=new V,this.isMicrosoftBrowser=!!navigator.msSaveBlob,null!==e.isServerRendered&&void 0!==e.isServerRendered&&(this.isServerRendered=e.isServerRendered),null!==e.styles&&void 0!==e.styles){this.globalStyles=new Map;for(var o=0;o<e.styles.length;o++)void 0!==e.styles[o].name&&void 0!==e.styles[o].numberFormat&&this.globalStyles.set(e.styles[o].name,e.styles[o].numberFormat)}null!==e.worksheets&&void 0!==e.worksheets&&this.parseWorksheet(e.worksheets[0])}D.prototype.append=function(e){this.parts.push(e),this.blob=void 0},D.prototype.getBlob=function(){return new Blob(this.parts,{type:"text/plain"})};var B=D;function D(){this.parts=[]}var X=function(){},H=(E.prototype.parserBuiltInProperties=function(e,t){null!==e.author&&void 0!==e.author&&(t.author=e.author),null!==e.comments&&void 0!==e.comments&&(t.comments=e.comments),null!==e.category&&void 0!==e.category&&(t.category=e.category),null!==e.company&&void 0!==e.company&&(t.company=e.company),null!==e.manager&&void 0!==e.manager&&(t.manager=e.manager),null!==e.subject&&void 0!==e.subject&&(t.subject=e.subject),null!==e.title&&void 0!==e.title&&(t.title=e.title),null!==e.createdDate&&void 0!==e.createdDate&&(t.createdDate=e.createdDate),null!==e.modifiedDate&&void 0!==e.modifiedDate&&(t.modifiedDate=e.modifiedDate),null!==e.tags&&void 0!==e.tags&&(t.tags=e.tags),null!==e.status&&void 0!==e.status&&(t.status=e.status)},E.prototype.parserWorksheets=function(e){this.worksheets=new k;for(var t=e.length,o=0;o<t;o++){var r=e[o],i=new _;this.mergeCells=new j,this.mergedCellsStyle=new Map,this.mHyperLinks=[],null!==r.name&&void 0!==r.name?i.name=r.name:i.name="Sheet"+(o+1).toString(),null!==r.enableRtl&&void 0!==r.enableRtl&&(i.enableRtl=r.enableRtl),i.index=o+1,null!==r.columns&&void 0!==r.columns&&this.parserColumns(r.columns,i),null!==r.rows&&void 0!==r.rows&&this.parserRows(r.rows,i),null!==r.showGridLines&&void 0!==r.showGridLines&&(i.showGridLines=r.showGridLines),null!==r.freeze&&void 0!==r.freeze&&this.parserFreezePanes(r.freeze,i),null!==r.printTitle&&void 0!==r.printTitle&&this.parserPrintTitle(r.printTitle,i),void 0!==r.pageSetup&&void 0!==r.pageSetup.isSummaryRowBelow&&(i.isSummaryRowBelow=r.pageSetup.isSummaryRowBelow),void 0!==r.images&&this.parserImages(r.images,i),null!==r.autoFilters&&void 0!==r.autoFilters&&this.parseFilters(r.autoFilters,i),i.index=o+1,i.mergeCells=this.mergeCells,i.hyperLinks=this.mHyperLinks,this.worksheets.push(i)}},E.prototype.mergeOptions=function(e,t){var o={};return this.applyProperties(e,o),this.applyProperties(t,o),o},E.prototype.applyProperties=function(e,t){for(var o=Object.keys(e),r=0;r<o.length;r++)"name"!==o[r]&&(t[o[r]]=e[o[r]])},E.prototype.getCellName=function(e,t){return this.getColumnName(t)+e.toString()},E.prototype.getColumnName=function(e){e--;var t="";do{var o=e%26}while(e=e/26-1,t=String.fromCharCode(65+o)+t,0<=e);return t},E.prototype.parserPrintTitle=function(e,t){var o,r,i,n="";null!==e.fromRow&&void 0!==e.fromRow&&(o="$"+e.fromRow+":$"+(null!==e.toRow&&void 0!==e.toRow?e.toRow:e.fromRow)),null!==e.fromColumn&&void 0!==e.fromColumn&&(i=e.fromColumn,r=void 0,r=null!==e.toColumn&&void 0!==e.toColumn?e.toColumn:e.fromColumn,i="$"+this.getColumnName(i)+":$"+this.getColumnName(r)),void 0!==o&&(n+=t.name+"!"+o),void 0!==i&&void 0!==o?n+=","+t.name+"!"+i:void 0!==i&&(n+=t.name+"!"+i),""!==n&&this.printTitles.set(t.index-1,n)},E.prototype.parserFreezePanes=function(e,t){t.freezePanes=new M,null!==e.row&&void 0!==e.row?t.freezePanes.row=e.row:t.freezePanes.row=0,null!==e.column&&void 0!==e.column?t.freezePanes.column=e.column:t.freezePanes.column=0,t.freezePanes.leftCell=this.getCellName(t.freezePanes.row+1,t.freezePanes.column+1)},E.prototype.parserColumns=function(e,t){var o=e.length;t.columns=[];for(var r=0;r<o;r++){var i=new g;if(null===e[r].index||void 0===e[r].index)throw Error("Column index is missing.");i.index=e[r].index,null!==e[r].width&&void 0!==e[r].width&&(i.width=e[r].width),t.columns.push(i)}},E.prototype.parserRows=function(e,t){for(var o=e.length,r=(t.rows=new b,0),i=0;i<o;i++){var n=this.parserRow(e[i],r),r=n.index;t.rows.add(n)}this.insertMergedCellsStyle(t)},E.prototype.insertMergedCellsStyle=function(s){var l=this;0<this.mergeCells.length&&this.mergedCellsStyle.forEach(function(t,e){var o,r,i,n=s.rows.filter(function(e){return e.index===t.y})[0];w.isNullOrUndefined(n)?(o=s.rows.filter(function(e){return e.index<=t.y}),(r=new x).index=t.y,r.cells=new f,r.cells.add(l.createCell(t,e)),(i=0)<o.length&&(i=s.rows.indexOf(o[o.length-1])+1),s.rows.splice(i,0,r)):(o=n.cells.filter(function(e){return e.index===t.x})[0],w.isNullOrUndefined(o)?((i=0)<(r=n.cells.filter(function(e){return e.index<=t.x})).length&&(i=n.cells.indexOf(r[r.length-1])+1),n.cells.splice(i,0,l.createCell(t,e))):o.styleIndex=t.styleIndex)})},E.prototype.createCell=function(e,t){var o=new u;return o.refName=t,o.index=e.x,o.cellStyle=new h,o.styleIndex=e.styleIndex,o},E.prototype.parserRow=function(e,t){var o=new x;if(null!==e.height&&void 0!==e.height&&(o.height=e.height),null===e.index||void 0===e.index)throw Error("Row index is missing.");return o.index=e.index,null!==e.grouping&&void 0!==e.grouping&&this.parseGrouping(e.grouping,o),this.parseCells(e.cells,o),o},E.prototype.parseGrouping=function(e,t){t.grouping=new W,void 0!==e.outlineLevel&&(t.grouping.outlineLevel=e.outlineLevel),void 0!==e.isCollapsed&&(t.grouping.isCollapsed=e.isCollapsed),void 0!==e.isHidden&&(t.grouping.isHidden=e.isHidden)},E.prototype.parseCells=function(e,t){t.cells=new f;for(var o=void 0!==e?e.length:0,r=1,i=1,n=0;n<o;n++){var s,l=e[n],a=new u;if(null===l.index||void 0===l.index)throw Error("Cell index is missing.");a.index=l.index,a.index<r?r=a.index:a.index>i&&(i=a.index),a.refName=this.getCellName(t.index,a.index),null!==l.rowSpan&&void 0!==l.rowSpan?a.rowSpan=l.rowSpan-1:a.rowSpan=0,null!==l.colSpan&&void 0!==l.colSpan?a.colSpan=l.colSpan-1:a.colSpan=0,null!==l.hyperlink&&void 0!==l.hyperlink&&(s=new R,void 0!==l.hyperlink.target)&&(s.target=l.hyperlink.target,void 0!==l.hyperlink.displayText?a.value=l.hyperlink.displayText:a.value=l.hyperlink.target,a.type=this.getCellValueType(a.value),s.ref=a.refName,s.rId=this.mHyperLinks.length+1,this.mHyperLinks.push(s),a.cellStyle=new h,this.parserCellStyle(void 0!==l.style?this.mergeOptions(l.style,this.hyperlinkStyle):this.hyperlinkStyle,a.cellStyle,"string"),a.styleIndex=a.cellStyle.index),null!==l.formula&&void 0!==l.formula&&(a.formula=l.formula,a.type="formula"),null!==l.value&&void 0!==l.value&&(void 0!==a.formula?a.value=0:(a.value=l.value,a.type=this.getCellValueType(a.value))),null!==l.style&&void 0!==l.style&&void 0===a.styleIndex?(a.cellStyle=new h,a.value instanceof Date?this.parserCellStyle(l.style,a.cellStyle,a.type,14):this.parserCellStyle(l.style,a.cellStyle,a.type),a.styleIndex=a.cellStyle.index):a.value instanceof Date&&(a.cellStyle=new h,this.parserCellStyle({},a.cellStyle,a.type,14),a.styleIndex=a.cellStyle.index),this.parseCellType(a),this.mergeCells=this.processMergeCells(a,t.index,this.mergeCells),t.cells.add(a),a.index}t.spans=r+":"+i},E.prototype.GetColors=function(){var e=new Map;return e.set("WHITE","FFFFFFFF"),e.set("SILVER","FFC0C0C0"),e.set("GRAY","FF808080"),e.set("BLACK","FF000000"),e.set("RED","FFFF0000"),e.set("MAROON","FF800000"),e.set("YELLOW","FFFFFF00"),e.set("OLIVE","FF808000"),e.set("LIME","FF00FF00"),e.set("GREEN","FF008000"),e.set("AQUA","FF00FFFF"),e.set("TEAL","FF008080"),e.set("BLUE","FF0000FF"),e.set("NAVY","FF000080"),e.set("FUCHSIA","FFFF00FF"),e.set("PURPLE","FF800080"),e},E.prototype.processColor=function(e){return 0===e.indexOf("#")?e.replace("#","FF"):(e=e.toUpperCase(),this.rgbColors=this.GetColors(),this.rgbColors.has(e)?this.rgbColors.get(e):"FF000000")},E.prototype.processCellValue=function(e,t){var o=e;if(-1!==e.indexOf("<font")||-1!==e.indexOf("<a")||-1!==e.indexOf("<b>")||-1!==e.indexOf("<i>")||-1!==e.indexOf("<u>")){var r="",i=e.indexOf("<",0),n=e.indexOf(">",i+1);if(0<=i&&0<=n){for(0!==i&&(r+='<r><t xml:space="preserve">'+this.processString(e.substring(0,i))+"</t></r>");0<=i&&0<=n;)if(0<=(n=e.indexOf(">",i+1))){var s=e.substring(i+1,n),l=((i=e.indexOf("<",n+1))<0&&(i=o.length),o.substring(n+1,i));if(0!==l.length){s=s.split(" ");if(0<s.length&&(r+="<r><rPr>"),1<s.length)for(var a=0,h=s;a<h.length;a++){var d=h[a];switch(d.trim().substring(0,5)){case"size=":r+='<sz val="'+d.substring(6,d.length-1)+'"/>';break;case"face=":r+='<rFont val="'+d.substring(6,d.length-1)+'"/>';break;case"color":r+='<color rgb="'+this.processColor(d.substring(7,d.length-1))+'"/>';break;case"href=":var m=new R;m.target=d.substring(6,d.length-1).trim(),m.ref=t.refName,m.rId=this.mHyperLinks.length+1,this.mHyperLinks.push(m),r+='<color rgb="FF0000FF"/><u/><b/>'}}else if(1===s.length)switch(s[0].trim()){case"b":r+="<b/>";break;case"i":r+="<i/>";break;case"u":r+="<u/>"}r+='</rPr><t xml:space="preserve">'+this.processString(l)+"</t></r>"}}return""===r?o:r}}return o},E.prototype.applyGlobalStyle=function(t,e){this.cellStyles.has(t.name)&&(e.index=this.mStyles.filter(function(e){return e.name===t.name})[0].index,e.name=t.name)},E.prototype.parserCellStyle=function(e,t,o,r){if(null!==e.name&&void 0!==e.name){if(!t.isGlobalStyle)return void this.applyGlobalStyle(e,t);t.name=e.name}null!==e.backColor&&void 0!==e.backColor&&(t.backColor=e.backColor),t.borders=new i,null!==e.borders&&void 0!==e.borders&&this.parserBorder(e.borders,t.borders.all),null!==e.leftBorder&&void 0!==e.leftBorder&&this.parserBorder(e.leftBorder,t.borders.left),null!==e.rightBorder&&void 0!==e.rightBorder&&this.parserBorder(e.rightBorder,t.borders.right),null!==e.topBorder&&void 0!==e.topBorder&&this.parserBorder(e.topBorder,t.borders.top),null!==e.bottomBorder&&void 0!==e.bottomBorder&&this.parserBorder(e.bottomBorder,t.borders.bottom),null!==e.fontName&&void 0!==e.fontName&&(t.fontName=e.fontName),null!==e.fontSize&&void 0!==e.fontSize&&(t.fontSize=e.fontSize),null!==e.fontColor&&void 0!==e.fontColor&&(t.fontColor=e.fontColor),null!==e.italic&&void 0!==e.italic&&(t.italic=e.italic),null!==e.bold&&void 0!==e.bold&&(t.bold=e.bold),null!==e.hAlign&&void 0!==e.hAlign&&(t.hAlign=e.hAlign.toLowerCase()),null!==e.indent&&void 0!==e.indent&&(t.indent=e.indent,"left"!==t.hAlign)&&"right"!==t.hAlign&&(t.hAlign="left"),null!==e.rotation&&void 0!==e.rotation&&(t.rotation=e.rotation),null!==e.vAlign&&void 0!==e.vAlign&&(t.vAlign=e.vAlign.toLowerCase()),null!==e.underline&&void 0!==e.underline&&(t.underline=e.underline),null!==e.strikeThrough&&void 0!==e.strikeThrough&&(t.strikeThrough=e.strikeThrough),null!==e.wrapText&&void 0!==e.wrapText&&(t.wrapText=e.wrapText),null!==e.numberFormat&&void 0!==e.numberFormat?null!==e.type&&void 0!==e.type?t.numberFormat=this.getNumberFormat(e.numberFormat,e.type):t.numberFormat=this.getNumberFormat(e.numberFormat,o):(void 0!==r&&(t.numFmtId=14),t.numberFormat="GENERAL"),t.index=this.processCellStyle(t)},E.prototype.switchNumberFormat=function(e,t){var o=this.getNumberFormat(e,t);if(o!==e){var r=this.mNumFmt.get(e);if(void 0!==r&&(r.formatCode=o,this.mNumFmt.has(o))){for(var i=0,n=this.mCellStyleXfs;i<n.length;i++){var s=n[i];s.numFmtId===r.numFmtId&&(s.numFmtId=this.mNumFmt.get(o).numFmtId)}for(var l=0,a=this.mCellXfs;l<a.length;l++){var h=a[l];h.numFmtId===r.numFmtId&&(h.numFmtId=this.mNumFmt.get(o).numFmtId)}}}},E.prototype.changeNumberFormats=function(e){if("string"==typeof e){var t=new RegExp(this.currency,"g");e=e.replace(t,"[$"+this.currency+"]")}else if("object"==typeof e)for(var o=0;o<e.length;o++)e[o]=e[o].replace(this.currency,"[$"+this.currency+"]");return e},E.prototype.getNumberFormat=function(t,e){var o;switch(e){case"number":try{o=this.intl.getNumberPattern({format:t,currency:this.currency,useGrouping:!0},!0),1<this.currency.length&&(o=this.changeNumberFormats(o))}catch(e){o=t}break;case"datetime":try{o=this.intl.getDatePattern({skeleton:t,type:"dateTime"},!0)}catch(e){try{o=this.intl.getDatePattern({format:t,type:"dateTime"},!0)}catch(e){o=t}}break;case"date":try{o=this.intl.getDatePattern({skeleton:t,type:"date"},!0)}catch(e){try{o=this.intl.getDatePattern({format:t,type:"date"},!0)}catch(e){o=t}}break;case"time":try{o=this.intl.getDatePattern({skeleton:t,type:"time"},!0)}catch(e){try{o=this.intl.getDatePattern({format:t,type:"time"},!0)}catch(e){o=t}}break;default:o=t}return o},E.prototype.parserBorder=function(e,t){null!==e.color&&void 0!==e.color?t.color=e.color:t.color="#000000",null!==e.lineStyle&&void 0!==e.lineStyle?t.lineStyle=e.lineStyle:t.lineStyle="thin"},E.prototype.processCellStyle=function(e){var t;return!e.isGlobalStyle&&(t=this.compareStyle(e)).result?t.index:(this.processNumFormatId(e),this.mStyles.push(e),this.mStyles.length)},E.prototype.processNumFormatId=function(e){var t;"GENERAL"===e.numberFormat||this.mNumFmt.has(e.numberFormat)||(t=this.mNumFmt.size+164,this.mNumFmt.set(e.numberFormat,new c(t,e.numberFormat)))},E.prototype.isNewFont=function(e){for(var t=!1,o=0,r=0,i=this.mFonts;r<i.length;r++){var n=i[r],s=(o++,void 0);if(void 0!==e.fontColor&&(s="FF"+e.fontColor.replace("#","")),t=n.color===s&&n.b===e.bold&&n.i===e.italic&&n.u===e.underline&&n.strike===e.strikeThrough&&n.name===e.fontName&&n.sz===e.fontSize)break}return{index:o-=1,result:t}},E.prototype.isNewBorder=function(e){var t=new h;return this.isAllBorder(e.borders)?t.borders.all.color===e.borders.all.color&&t.borders.all.lineStyle===e.borders.all.lineStyle:t.borders.left.color===e.borders.left.color&&t.borders.left.lineStyle===e.borders.left.lineStyle&&t.borders.right.color===e.borders.right.color&&t.borders.right.lineStyle===e.borders.right.lineStyle&&t.borders.top.color===e.borders.top.color&&t.borders.top.lineStyle===e.borders.top.lineStyle&&t.borders.bottom.color===e.borders.bottom.color&&t.borders.bottom.lineStyle===e.borders.bottom.lineStyle},E.prototype.isAllBorder=function(e){var t=new h;return t.borders.all.color!==e.all.color&&t.borders.all.lineStyle!==e.all.lineStyle},E.prototype.compareStyle=function(e){for(var t=!0,o=0,r=0,i=this.mStyles;r<i.length;r++){var n=i[r];if(t=!n.isGlobalStyle&&n.backColor===e.backColor&&n.bold===e.bold&&n.numFmtId===e.numFmtId&&n.numberFormat===e.numberFormat&&n.type===e.type&&n.fontColor===e.fontColor&&n.fontName===e.fontName&&n.fontSize===e.fontSize&&n.hAlign===e.hAlign&&n.italic===e.italic&&n.underline===e.underline&&n.strikeThrough===e.strikeThrough&&n.vAlign===e.vAlign&&n.indent===e.indent&&n.rotation===e.rotation&&n.wrapText===e.wrapText&&n.borders.all.color===e.borders.all.color&&n.borders.all.lineStyle===e.borders.all.lineStyle&&n.borders.left.color===e.borders.left.color&&n.borders.left.lineStyle===e.borders.left.lineStyle&&n.borders.right.color===e.borders.right.color&&n.borders.right.lineStyle===e.borders.right.lineStyle&&n.borders.top.color===e.borders.top.color&&n.borders.top.lineStyle===e.borders.top.lineStyle&&n.borders.bottom.color===e.borders.bottom.color&&n.borders.bottom.lineStyle===e.borders.bottom.lineStyle){o=n.index;break}}return{index:o,result:t}},E.prototype.contains=function(e,t){t=e.indexOf(t);return-1<t&&t<e.length},E.prototype.getCellValueType=function(e){return e instanceof Date?"datetime":"boolean"==typeof e?"boolean":"number"==typeof e?"number":"string"},E.prototype.parseCellType=function(e){var t=e.type,o=e.value;switch(t){case"datetime":o=this.toOADate(o);void 0!==e.cellStyle&&void 0!==e.cellStyle.name&&this.globalStyles.has(e.cellStyle.name)&&(i=this.globalStyles.get(e.cellStyle.name),this.switchNumberFormat(i.format,i.type)),r="n";break;case"boolean":o=o?1:0,r="b";break;case"number":r="n",void 0!==e.cellStyle&&void 0!==e.cellStyle.name&&this.globalStyles.has(e.cellStyle.name)&&this.switchNumberFormat(this.globalStyles.get(e.cellStyle.name).format,"number");break;case"string":this.sharedStringCount++;var r="s",i=this.processCellValue(o,e);this.contains(this.sharedString,i)||this.sharedString.push(i),o=this.sharedString.indexOf(i)}e.saveType=r,e.value=o},E.prototype.parserImages=function(e,t){var o=e.length;t.images=[];for(var r=0;r<o;r++){var i=this.parserImage(e[r]);t.images.push(i)}},E.prototype.parseFilters=function(e,t){if(t.autoFilters=new X,null===e.row||void 0===e.row)throw new Error("Argument Null Exception: row null or empty");if(t.autoFilters.row=e.row,null===e.lastRow||void 0===e.lastRow)throw new Error("Argument Null Exception: lastRow cannot be null or empty");if(t.autoFilters.lastRow=e.lastRow,null===e.column||void 0===e.column)throw new Error("Argument Null Exception: column cannot be null or empty");if(t.autoFilters.column=e.column,null===e.lastColumn||void 0===e.row)throw new Error("Argument Null Exception: lastColumn cannot be null or empty");t.autoFilters.lastColumn=e.lastColumn},E.prototype.parserImage=function(e){var t=new G;return null!==e.image&&void 0!==e.image&&(t.image=e.image),null!==e.row&&void 0!==e.row&&(t.row=e.row),null!==e.column&&void 0!==e.column&&(t.column=e.column),null!==e.lastRow&&void 0!==e.lastRow&&(t.lastRow=e.lastRow),null!==e.lastColumn&&void 0!==e.lastColumn&&(t.lastColumn=e.lastColumn),null!==e.width&&void 0!==e.width&&(t.width=e.width),null!==e.height&&void 0!==e.height&&(t.height=e.height),null!==e.horizontalFlip&&void 0!==e.horizontalFlip&&(t.horizontalFlip=e.horizontalFlip),null!==e.verticalFlip&&void 0!==e.verticalFlip&&(t.verticalFlip=e.verticalFlip),null!==e.rotation&&void 0!==e.rotation&&(t.rotation=e.rotation),t},E.prototype.saveAsBlob=function(e,r){var i=this;return"text/csv"!==e?new Promise(function(o,e){i.saveInternal(),i.mArchive.saveAsBlob().then(function(e){var t={};t.blobData=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),o(t)})}):new Promise(function(e,t){var o={};o.blobData=i.csvHelper.saveAsBlob(r),e(o)})},E.prototype.save=function(e,t){var o=this;if(null==e||""===e)throw new Error("Argument Null Exception: fileName cannot be null or empty");var r=e.match(".xlsx$"),i=e.match(".csv$");if(null!==r&&r[0]==="."+this.mSaveType)this.saveInternal(),this.mArchive.save(e).then(function(){o.mArchive.destroy()});else{if(null===i||i[0]!=="."+this.mSaveType)throw Error("Save type and file extension is different.");this.csvHelper.save(e)}},E.prototype.saveInternal=function(){this.saveWorkbook(),this.saveWorksheets(),this.saveSharedString(),this.saveStyles(),this.saveApp(this.builtInProperties),this.saveCore(this.builtInProperties),this.saveContentType(),this.saveTopLevelRelation(),this.saveWorkbookRelation()},E.prototype.saveWorkbook=function(){for(var o,e='<?xml version="1.0" encoding="utf-8"?><workbook xmlns:r = "http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns= "http://schemas.openxmlformats.org/spreadsheetml/2006/main"><workbookPr codeName="ThisWorkbook" defaultThemeVersion= "153222"/><bookViews><workbookView activeTab="0"/></bookViews>',t="<sheets>",r=this.worksheets.length,i=0;i<r;i++){var n=this.worksheets[i].name;t+='<sheet name="'+(n=(n=(n=(n=n.replace("&","&amp;")).replace("<","&lt;")).replace(">","&gt;")).replace('"',"&quot;"))+'" sheetId="'+(i+1).toString()+'" r:id ="rId'+(i+1).toString()+'" />'}e+=t+="</sheets>",0<this.printTitles.size&&(o="<definedNames>",this.printTitles.forEach(function(e,t){o+='<definedName name="_xlnm.Print_Titles" localSheetId="'+t+'">'+e+"</definedName>"}),e+=o+="</definedNames>"),this.addToArchive(e+"</workbook>","xl/workbook.xml")},E.prototype.saveWorksheets=function(){for(var e=this.worksheets.length,t=0;t<e;t++)this.saveWorksheet(this.worksheets[t],t)},E.prototype.saveWorksheet=function(e,t){var o=new B,r='<?xml version="1.0" encoding="utf-8" standalone="yes"?><worksheet xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">';if(e.isSummaryRowBelow?r+="<sheetPr />":r+='<sheetPr><outlinePr summaryBelow="0" ></outlinePr></sheetPr>',r+=this.saveSheetView(e),void 0!==e.columns){for(var i="<cols>",n=0,s=e.columns;n<s.length;n++){var l=s[n];void 0!==l.width?i+='<col min="'+l.index+'" max="'+l.index+'" width="'+this.pixelsToColumnWidth(l.width)+'" customWidth="1" />':i+='<col min="'+l.index+'" max="'+l.index+'" width="8.43" customWidth="1" />'}r+=i+"</cols>"}if(o.append(r+="<sheetData>"),r="",void 0!==e.rows)for(var a=0,h=e.rows;a<h.length;a++){var d=h[a],m='<row r="'+d.index+'" ';w.isNullOrUndefined(d.spans)||(m+='spans="'+d.spans+'" '),void 0!==d.height&&(m+='ht="'+this.pixelsToRowHeight(d.height)+'" customHeight="1" '),void 0!==d.grouping&&(d.grouping.isHidden&&(m+='hidden="1" '),void 0!==d.grouping.outlineLevel&&(m+='outlineLevel="'+d.grouping.outlineLevel+'" '),d.grouping.isCollapsed)&&(m+='collapsed="1" '),m+=">";for(var p=0,c=d.cells;p<c.length;p++){var u=c[p];void 0===u||void 0===u.value&&void 0===u.cellStyle||(m+='<c r="'+u.refName+'" ',void 0!==u.saveType&&(m+='t="'+u.saveType+'" '),void 0!==u.styleIndex&&(m+='s="'+u.styleIndex+'" '),m+=" >",void 0!==u.formula&&(m+="<f>"+u.formula+"</f>"),void 0!==u.value?m+="<v>"+u.value+"</v></c>":m+="</c>")}m+="</row>",o.append(m)}if(r+="</sheetData>",null!==e.autoFilters&&void 0!==e.autoFilters&&(r+='<autoFilter ref="'+this.getCellName(e.autoFilters.row,e.autoFilters.column)+":"+this.getCellName(e.autoFilters.lastRow,e.autoFilters.lastColumn)+'"/>'),0<e.mergeCells.length){r+='<mergeCells count="'+e.mergeCells.length+'">';for(var f=0,g=e.mergeCells;f<g.length;f++)r+='<mergeCell ref="'+g[f].ref+'" />';r+="</mergeCells>"}if(0<e.hyperLinks.length){r+="<hyperlinks>";for(var v=0,y=e.hyperLinks;v<y.length;v++){var x=y[v];r+='<hyperlink ref="'+x.ref+'" r:id="rId'+x.rId+'" />'}r+="</hyperlinks>"}r+='<pageMargins left="0.75" right="0.75" top="1" bottom="1" header="0.5" footer="0.5" /><headerFooter scaleWithDoc="1" alignWithMargins="0" differentFirst="0" differentOddEven="0" />',null!=e.images&&0<e.images.length&&(this.drawingCount++,this.saveDrawings(e,e.index),r+='<drawing r:id="rId'+(e.hyperLinks.length+1)+'"/>'),this.addToArchive(this.saveSheetRelations(e),"xl/worksheets/_rels/sheet"+e.index+".xml.rels"),o.append(r+"</worksheet>"),this.addToArchive(o.getBlob(),"xl/worksheets/sheet"+(t+1)+".xml")},E.prototype.saveDrawings=function(e,t){var o=new B,r='<xdr:wsDr xmlns:xdr="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">';if(void 0!==e.images){for(var i=0,n=0,s=e.images;n<s.length;n++){var l=s[n],l=(void 0!==l.height&&void 0!==l.width?(this.updatelastRowOffset(e,l),this.updatelastColumnOffSet(e,l),--l.lastRow,--l.lastColumn):void 0!==l.lastRow&&void 0!==l.lastColumn&&(l.lastRowOffset=0,l.lastColOffset=0),i++,r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=r+'<xdr:twoCellAnchor editAs="oneCell">'+"<xdr:from><xdr:col>")+(l.column-1)+"</xdr:col><xdr:colOff>")+0+"</xdr:colOff><xdr:row>")+(l.row-1))+"</xdr:row><xdr:rowOff>"+0)+"</xdr:rowOff></xdr:from>"+"<xdr:to><xdr:col>")+l.lastColumn+"</xdr:col><xdr:colOff>")+l.lastColOffset+"</xdr:colOff><xdr:row>")+l.lastRow+"</xdr:row><xdr:rowOff>")+l.lastRowOffset)+"</xdr:rowOff></xdr:to>"+"<xdr:pic>")+"<xdr:nvPicPr>"+('<xdr:cNvPr id="'+i+'" name="Picture '+i+'"> </xdr:cNvPr>'))+'<xdr:cNvPicPr><a:picLocks noChangeAspect="1"/></xdr:cNvPicPr> </xdr:nvPicPr>'+"<xdr:blipFill>")+('<a:blip xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" r:embed="rId'+i+'" cstate="print">')+"</a:blip><a:stretch><a:fillRect /></a:stretch></xdr:blipFill>")+"<xdr:spPr>"+"<a:xfrm",null!=l.rotation&&l.rotation<=3600&&-3600<=l.rotation&&(r+=' rot="'+6e4*l.rotation+'"'),null!=l.verticalFlip&&0!=l.verticalFlip&&(r+=' flipV="1"'),null!=l.horizontalFlip&&0!=l.horizontalFlip&&(r+=' flipH="1"'),r=(r+="/>")+'<a:prstGeom prst="rect"><a:avLst /></a:prstGeom></xdr:spPr>'+"</xdr:pic><xdr:clientData /></xdr:twoCellAnchor>",this.convertBase64toImage(l.image));this.imageCount+=1,this.addToArchive(l,"xl/media/image"+this.imageCount+".png")}o.append(r),o.append("</xdr:wsDr>"),this.saveDrawingRelations(e),this.addToArchive(o.getBlob(),"xl/drawings/drawing"+this.drawingCount+".xml")}},E.prototype.updatelastRowOffset=function(e,t){for(var o=t.height,r=t.row,i=0;0<=o;){var n=0,s=(n=void 0!==e.rows&&void 0!==e.rows[r-1]?this.convertToPixels(void 0===e.rows[r-1].height?15:e.rows[r-1].height):this.convertToPixels(15))-i*n/256;if(o<s){t.lastRow=r,t.lastRowOffset=i+256*o/n;n=0,n=void 0!==e.rows&&void 0!==e.rows[r-1]?this.convertToPixels(void 0===e.rows[r-1].height?15:e.rows[r-1].height):this.convertToPixels(15);t.lastRowOffset=n*t.lastRowOffset/256,t.lastRowOffset=Math.round(t.lastRowOffset/this.unitsProportions[7]);break}o-=s,r++,i=0}},E.prototype.updatelastColumnOffSet=function(e,t){for(var o=t.width,r=t.column,i=0;0<=o;){var n=0,s=(n=void 0!==e.columns&&void 0!==e.columns[r-1]?this.ColumnWidthToPixels(void 0===e.columns[r-1].width?8.43:e.columns[r-1].width):this.ColumnWidthToPixels(8.43))-i*n/1024;if(o<s){t.lastColumn=r,t.lastColOffset=i+1024*o/n;n=0,n=void 0!==e.columns&&void 0!==e.columns[r-1]?this.ColumnWidthToPixels(void 0===e.columns[r-1].width?8.43:e.columns[r-1].width):this.ColumnWidthToPixels(8.43);t.lastColOffset=n*t.lastColOffset/1024,t.lastColOffset=Math.round(t.lastColOffset/this.unitsProportions[7]);break}o-=s,r++,i=0}},E.prototype.convertToPixels=function(e){return e*this.unitsProportions[6]},E.prototype.convertBase64toImage=function(e){for(var t=window.atob(e),e=new ArrayBuffer(t.length),o=new Uint8Array(e),r=0;r<t.length;r++)o[r]=t.charCodeAt(r);return new Blob([o],{type:"image/png"})},E.prototype.saveDrawingRelations=function(e){for(var t='<?xml version="1.0" encoding="utf-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">',o=e.images.length,r=this.imageCount-e.images.length,i=1;i<=o;i++)t+='<Relationship Id="rId'+i+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="../media/image'+ ++r+'.png" />';this.addToArchive(t+"</Relationships>","xl/drawings/_rels/drawing"+this.drawingCount+".xml.rels")},E.prototype.pixelsToColumnWidth=function(e){e=12<e?this.trunc((e-5)/7*100+.5)/100:e/12;return 1<e?(7*e+5)/7*256/256:12*e/7*256/256},E.prototype.ColumnWidthToPixels=function(e){return this.trunc((256*(1<e?(7*e+5)/7*256/256:12*e/7*256/256)+this.trunc(128/7))/256*7)},E.prototype.trunc=function(e){var t=e-e%1;return 0==t&&(e<0||0===e&&1/e!=1/0)?-0:t},E.prototype.pixelsToRowHeight=function(e){return e*this.unitsProportions[5]/this.unitsProportions[6]},E.prototype.saveSheetRelations=function(e){for(var t='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">',o=0,r=e.hyperLinks;o<r.length;o++){var i=r[o];t+='<Relationship Id="rId'+i.rId+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="'+this.processString(i.target)+'" TargetMode="External" />'}return null!=e.images&&0<e.images.length&&(t+='<Relationship Id="rId'+(e.hyperLinks.length+1)+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing" Target="../drawings/drawing'+this.drawingCount+'.xml" />'),t+="</Relationships>"},E.prototype.saveSheetView=function(e){var t='<sheetViews><sheetView workbookViewId="0" ';return!0===e.enableRtl&&(t+='rightToLeft="1"'),!1===e.showGridLines?t+='showGridLines="0" >':t+=">",void 0!==e.freezePanes&&(t+='<pane state="frozen" topLeftCell="'+e.freezePanes.leftCell+'" ',0!==e.freezePanes.row&&(t+='ySplit="'+e.freezePanes.row+'" '),0!==e.freezePanes.column&&(t+='xSplit="'+e.freezePanes.column+'" '),t+="/>"),t+="</sheetView></sheetViews > "},E.prototype.saveSharedString=function(){var e=this.sharedString.length;if(0<e){for(var t='<?xml version="1.0" encoding="utf-8"?><sst uniqueCount="'+e+'" count="'+this.sharedStringCount+'" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">',o="",r=0;r<e;r++)o=0!==this.sharedString[r].indexOf("<r>")?(o+="<si><t>")+this.processString(this.sharedString[r])+"</t></si>":(o+="<si>")+this.sharedString[r]+"</si>";this.addToArchive(t+(o+="</sst>"),"xl/sharedStrings.xml")}},E.prototype.processString=function(e){if("string"==typeof e)-1!==(e=-1!==(e=-1!==(e=-1!==e.indexOf("&")?e.replace(/&/g,"&amp;"):e).indexOf("<")?e.replace(/</g,"&lt;"):e).indexOf(">")?e.replace(/>/g,"&gt;"):e).indexOf("\v")&&(e=e.replace(/\v/g,"_x000B_"));else if("object"==typeof e)for(var t=0;t<e.length;t++)-1!==e[t].indexOf("&")&&(e[t]=e[t].replace(/&/g,"&amp;")),-1!==e[t].indexOf("<")&&(e[t]=e[t].replace(/</g,"&lt;")),-1!==e[t].indexOf(">")&&(e[t]=e[t].replace(/>/g,"&gt;")),-1!==e[t].indexOf("\v")&&(e[t]=e[t].replace(/\v/g,"_x000B_"));return e},E.prototype.saveStyles=function(){this.updateCellXfsStyleXfs();var e='<?xml version="1.0" encoding="utf-8"?><styleSheet xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">',e=(e=(e=(e=(e=(e=(e+=this.saveNumberFormats())+this.saveFonts())+this.saveFills())+this.saveBorders())+this.saveCellStyleXfs())+this.saveCellXfs())+this.saveCellStyles();this.addToArchive(e+"</styleSheet>","xl/styles.xml")},E.prototype.updateCellXfsStyleXfs=function(){for(var e=0,t=this.mStyles;e<t.length;e++){var o,r=t[e],i=void 0,n=(r.isGlobalStyle?(i=new m).xfId=r.index-1:(i=new s).xfId=0,this.isNewFont(r));n.result?i.fontId=n.index:((n=new d).b=r.bold,n.i=r.italic,n.name=r.fontName,n.sz=r.fontSize,n.u=r.underline,n.strike=r.strikeThrough,n.color="FF"+r.fontColor.replace("#",""),this.mFonts.push(n),i.fontId=this.mFonts.length-1),"none"!==r.backColor?(n="FF"+r.backColor.replace("#",""),this.mFills.has(n)?o=this.mFills.get(n):(o=this.mFills.size+2,this.mFills.set(n,o)),i.fillId=o):i.fillId=0,this.isNewBorder(r)?i.borderId=0:(this.mBorders.push(r.borders),i.borderId=this.mBorders.length),"GENERAL"!==r.numberFormat?this.mNumFmt.has(r.numberFormat)?(n=this.mNumFmt.get(r.numberFormat),i.numFmtId=n.numFmtId):(n=this.mNumFmt.size+164,this.mNumFmt.set(r.numberFormat,new c(n,r.numberFormat)),i.numFmtId=n):"GENERAL"===r.numberFormat&&14===r.numFmtId?i.numFmtId=14:i.numFmtId=0,r.isGlobalStyle||(i.applyAlignment=1),i.alignment=new l,i.alignment.indent=r.indent,i.alignment.horizontal=r.hAlign,i.alignment.vertical=r.vAlign,i.alignment.wrapText=r.wrapText?1:0,i.alignment.rotation=r.rotation,r.isGlobalStyle&&this.mCellStyleXfs.push(i),this.mCellXfs.push(i)}},E.prototype.saveNumberFormats=function(){var o;return 1<=this.mNumFmt.size?(o='<numFmts count="'+this.mNumFmt.size+'">',this.mNumFmt.forEach(function(e,t){o+='<numFmt numFmtId="'+e.numFmtId+'" formatCode="'+e.formatCode.replace(/"/g,"&quot;")+'" />'}),o+="</numFmts>"):""},E.prototype.saveFonts=function(){var e='<fonts count="'+this.mFonts.length+'">';if(1<=this.mFonts.length)for(var t=0,o=this.mFonts;t<o.length;t++){var r=o[t];e+="<font>",r.b&&(e+="<b />"),r.i&&(e+="<i />"),r.u&&(e+="<u />"),r.strike&&(e+="<strike />"),e=(e=(e+='<sz val="'+r.sz+'" />')+('<color rgb="'+r.color+'" />'))+('<name val="'+r.name+'" /></font>')}return e+"</fonts>"},E.prototype.saveFills=function(){var o='<fills count="'+(this.mFills.size+2)+'"><fill><patternFill patternType="none"></patternFill></fill><fill><patternFill patternType="gray125"></patternFill></fill>';return 1<=this.mFills.size&&this.mFills.forEach(function(e,t){o+='<fill><patternFill patternType="solid"><fgColor rgb="'+t+'" /><bgColor rgb="FFFFFFFF" /></patternFill></fill>'}),o+"</fills>"},E.prototype.saveBorders=function(){var e='<borders count="'+(this.mBorders.length+1)+'"><border><left /><right /><top /><bottom /><diagonal /></border>';if(1<=this.mBorders.length)for(var t=0,o=this.mBorders;t<o.length;t++){var r,i,n=o[t];this.isAllBorder(n)?(r=n.all.color.replace("#",""),e+='<border><left style="'+(i=n.all.lineStyle)+'"><color rgb="FF'+r+'" /></left><right style="'+i+'"><color rgb="FF'+r+'" /></right><top style="'+i+'"><color rgb="FF'+r+'" /></top><bottom style="'+i+'"><color rgb="FF'+r+'" /></bottom></border>'):e+='<border><left style="'+n.left.lineStyle+'"><color rgb="FF'+n.left.color.replace("#","")+'" /></left><right style="'+n.right.lineStyle+'"><color rgb="FF'+n.right.color.replace("#","")+'" /></right><top style="'+n.top.lineStyle+'"><color rgb="FF'+n.top.color.replace("#","")+'" /></top><bottom style="'+n.bottom.lineStyle+'"><color rgb="FF'+n.bottom.color.replace("#","")+'" /></bottom></border>'}return e+"</borders>"},E.prototype.saveCellStyles=function(){var o=this,r='<cellStyles count="'+this.cellStyles.size+'">';return this.cellStyles.forEach(function(e,t){r+='<cellStyle name="'+t+'" xfId="'+o.cellStyles.get(t).xfId+'"',"Normal"===t&&(r+=' builtinId="0"'),r+=" />"}),r+="</cellStyles>"},E.prototype.saveCellStyleXfs=function(){var e='<cellStyleXfs count="'+(this.mCellStyleXfs.length+1)+'"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" />';if(1<=this.mCellStyleXfs.length)for(var t=0,o=this.mCellStyleXfs;t<o.length;t++){var r=o[t];e+='<xf numFmtId="'+r.numFmtId+'" fontId="'+r.fontId+'" fillId="'+r.fillId+'" borderId="'+r.borderId+'" ',void 0!==r.alignment?e+=">"+this.saveAlignment(r)+"</xf>":e+=" />"}return e+"</cellStyleXfs>"},E.prototype.saveCellXfs=function(){var e='<cellXfs count="'+(this.mCellXfs.length+1)+'"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" />';if(1<=this.mCellXfs.length)for(var t=0,o=this.mCellXfs;t<o.length;t++){var r=o[t];e+='<xf numFmtId="'+r.numFmtId+'" fontId="'+r.fontId+'" fillId="'+r.fillId+'" borderId="'+r.borderId+'" xfId="'+r.xfId+'" ',1===r.applyAlignment&&(e+='applyAlignment="1"'),e+=">"+this.saveAlignment(r)+"</xf>"}return e+"</cellXfs>"},E.prototype.saveAlignment=function(e){var t="<alignment ";return void 0!==e.alignment.horizontal&&(t+='horizontal="'+e.alignment.horizontal+'" '),void 0!==e.alignment.indent&&0!==e.alignment.indent?t+='indent="'+e.alignment.indent+'" ':void 0!==e.alignment.rotation&&0!==e.alignment.rotation&&(t+='textRotation="'+e.alignment.rotation+'" '),void 0!==e.alignment.vertical&&(t+='vertical="'+e.alignment.vertical+'" '),t+='wrapText="'+e.alignment.wrapText+'" />'},E.prototype.saveApp=function(e){var t='<?xml version="1.0" encoding="utf-8" standalone="yes"?><Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"><Application>Essential XlsIO</Application>';void 0!==e&&(void 0!==e.manager&&(t+="<Manager>"+e.manager+"</Manager>"),void 0!==e.company)&&(t+="<Company>"+e.company+"</Company>"),this.addToArchive(t+"</Properties>","docProps/app.xml")},E.prototype.saveCore=function(e){var t=new Date,o='<?xml version="1.0" encoding="utf-8" standalone="yes"?><cp:coreProperties xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties">';void 0!==this.builtInProperties?(void 0!==e.author&&(o+="<dc:creator>"+e.author+"</dc:creator>"),void 0!==e.subject&&(o+="<dc:subject>"+e.subject+"</dc:subject>"),void 0!==e.category&&(o+="<cp:category>"+e.category+"</cp:category>"),void 0!==e.comments&&(o+="<dc:description>"+e.comments+"</dc:description>"),void 0!==e.title&&(o+="<dc:title>"+e.title+"</dc:title>"),void 0!==e.tags&&(o+="<cp:keywords>"+e.tags+"</cp:keywords>"),void 0!==e.status&&(o+="<cp:contentStatus>"+e.status+"</cp:contentStatus>"),void 0!==e.createdDate?o+='<dcterms:created xsi:type="dcterms:W3CDTF">'+e.createdDate.toISOString()+"</dcterms:created>":o+='<dcterms:created xsi:type="dcterms:W3CDTF">'+t.toISOString()+"</dcterms:created>",void 0!==e.modifiedDate?o+='<dcterms:modified xsi:type="dcterms:W3CDTF">'+e.modifiedDate.toISOString()+"</dcterms:modified>":o+='<dcterms:modified xsi:type="dcterms:W3CDTF">'+t.toISOString()+"</dcterms:modified>"):o=(o+='<dcterms:created xsi:type="dcterms:W3CDTF">'+t.toISOString()+"</dcterms:created>")+'<dcterms:modified xsi:type="dcterms:W3CDTF">'+t.toISOString()+"</dcterms:modified>",this.addToArchive(o+="</cp:coreProperties>","docProps/core.xml")},E.prototype.saveTopLevelRelation=function(){this.addToArchive('<?xml version="1.0" encoding="utf-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" /><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml" /><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml" /></Relationships>',"_rels/.rels")},E.prototype.saveWorkbookRelation=function(){for(var e='<?xml version="1.0" encoding="utf-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">',t=this.worksheets.length,o=0,r=0;r<t;r++,o++)e+='<Relationship Id="rId'+(r+1).toString()+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet'+(r+1).toString()+'.xml" />';e+='<Relationship Id="rId'+(++o).toString()+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml" />',0<this.sharedStringCount&&(e+='<Relationship Id="rId'+(++o).toString()+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml" />'),this.addToArchive(e+"</Relationships>","xl/_rels/workbook.xml.rels")},E.prototype.saveContentType=function(){for(var e='<?xml version="1.0" encoding="utf-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="xml" ContentType="application/xml" /><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml" /><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml" />',t="",o=this.worksheets.length,r=0,i=0;i<o;i++)t+='<Override PartName="/xl/worksheets/sheet'+(i+1).toString()+'.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" />',null!=this.worksheets[i].images&&0<this.worksheets[i].images.length&&(t+='<Override PartName="/xl/drawings/drawing'+(++r).toString()+'.xml" ContentType="application/vnd.openxmlformats-officedocument.drawing+xml" />');0<this.imageCount&&(t+='<Default Extension="png" ContentType="image/png" />'),0<this.sharedStringCount&&(e+='<Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" />'),this.addToArchive(e+t+"</Types>","[Content_Types].xml")},E.prototype.addToArchive=function(e,t){var o;o="string"==typeof e?(o=new Blob([e],{type:"text/plain"}),new a.ZipArchiveItem(o,t)):new a.ZipArchiveItem(e,t),this.mArchive.addItem(o)},E.prototype.processMergeCells=function(e,t,o){var r,i,n;return 0===e.rowSpan&&0===e.colSpan||((r=new P).x=e.index,r.width=e.colSpan,r.y=t,r.height=e.rowSpan,i=this.getCellName(r.y,r.x),n=this.getCellName(t+r.height,e.index+r.width),r.ref=i+":"+n,o.add(r),i={x:r.x,y:r.y},n={x:e.index+r.width,y:t+r.height},this.updatedMergedCellStyles(i,n,e)),o},E.prototype.updatedMergedCellStyles=function(e,t,o){for(var r=e.x;r<=t.x;r++)for(var i=e.y;i<=t.y;i++)this.mergedCellsStyle.set(this.getCellName(i,r),{x:r,y:i,styleIndex:o.styleIndex})},E.prototype.dateToTicks=function(e,t,o){var r;if(1<=e&&e<=9999&&1<=t&&t<=12)return 864e9*(365*(r=e-1)+(r/4|0)-(r/100|0)+(r/400|0)+(this.isLeapYear(e)?[0,31,60,91,121,152,182,213,244,274,305,335,366]:[0,31,59,90,120,151,181,212,243,273,304,334,365])[t-1]+o-1);throw new Error("Not a valid date")},E.prototype.timeToTicks=function(e,t,o){if(0<=e&&e<24&&0<=t&&t<60&&0<=o&&o<60)return 1e4*(3600*e+60*t+o)*1e3;throw new Error("Not valid time")},E.prototype.isLeapYear=function(e){return e%4==0&&(e%100!=0||e%400==0)},E.prototype.toOADate=function(e){if(0===(e=this.dateToTicks(e.getFullYear(),e.getMonth()+1,e.getDate())+this.timeToTicks(e.getHours(),e.getMinutes(),e.getSeconds())))return 0;if(e<31241376e9)throw new Error("Arg_OleAutDateInvalid");return(e-599264352e9)/1e4/864e5},E);function E(e,t,o,r,i){if(this.sharedStringCount=0,this.unitsProportions=[1.28,.32,96,96/25.4,96/2.54,1,96/72,96/72/12700],this.hyperlinkStyle={fontColor:"#0000FF",underline:!0},this.culture=void 0!==o?o:"en-US",this.currency=void 0!==r?r:"USD",this.intl=new w.Internationalization(this.culture),"xlsx"===(this.mSaveType=t)){if(this.mArchive=new a.ZipArchive,this.sharedString=[],this.mFonts=[],this.mBorders=[],this.mStyles=[],this.printTitles=new Map,this.cellStyles=new Map,this.mNumFmt=new Map,this.mFills=new Map,this.mStyles.push(new h),this.mFonts.push(new d),this.cellStyles.set("Normal",new p),this.mCellXfs=[],this.mCellStyleXfs=[],this.drawingCount=0,this.imageCount=0,null!==e.styles&&void 0!==e.styles){this.globalStyles=new Map;for(var n=0;n<e.styles.length;n++)if(void 0!==e.styles[n].name){if(this.cellStyles.has(e.styles[n].name))throw Error("Style name "+e.styles[n].name+" is already existed");var s=new h,l=(s.isGlobalStyle=!0,this.parserCellStyle(e.styles[n],s,"none"),new p),s=(l.name=s.name,l.xfId=s.index-1,this.cellStyles.set(l.name,l),{});void 0!==e.styles[n].numberFormat&&(s.format=e.styles[n].numberFormat),void 0!==e.styles[n].type?s.type=e.styles[n].type:s.type="datetime",void 0!==s.format&&this.globalStyles.set(e.styles[n].name,s)}}if(null===e.worksheets||void 0===e.worksheets)throw Error("Worksheet is expected.");this.parserWorksheets(e.worksheets),null!==e.builtInProperties&&void 0!==e.builtInProperties&&(this.builtInProperties=new Y,this.parserBuiltInProperties(e.builtInProperties,this.builtInProperties))}else this.csvHelper=new U(e,i)}var Y=function(){};e.Alignment=l,e.BlobHelper=B,e.Border=t,e.Borders=i,e.BuiltInProperties=Y,e.Cell=u,e.CellStyle=h,e.CellStyleXfs=m,e.CellStyles=p,e.CellXfs=s,e.Cells=f,e.Column=g,e.CsvHelper=U,e.Font=d,e.FreezePane=M,e.Grouping=W,e.HyperLink=R,e.MergeCell=P,e.MergeCells=j,e.NumFmt=c,e.Row=x,e.Rows=b,e.ValueFormatter=V,e.Workbook=H,e.Worksheet=_,e.Worksheets=k,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=ej2-excel-export.umd.min.js.map
/*!
* filename: ej2-excel-export.min.js
* version : 26.2.10
* version : 26.2.11
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.

@@ -10,3 +10,3 @@ * Use of this code is subject to the terms of our license.

*/
this.ej=this.ej||{},this.ej.excelexport=function(e,t,r,o){"use strict";var i=function(){function e(){this.numFmtId=0,this.backColor="none",this.fontName="Calibri",this.fontSize=10.5,this.fontColor="#000000",this.italic=!1,this.bold=!1,this.underline=!1,this.strikeThrough=!1,this.wrapText=!1,this.hAlign="general",this.vAlign="bottom",this.indent=0,this.rotation=0,this.numberFormat="GENERAL",this.type="datetime",this.borders=new p,this.isGlobalStyle=!1}return e}(),n=function(){function e(){this.sz=10.5,this.name="Calibri",this.u=!1,this.b=!1,this.i=!1,this.color="FF000000",this.strike=!1}return e}(),s=function(){function e(){}return e}(),l=function(){function e(){}return e}(),a=function(){function e(){}return e}(),h=function(){function e(){this.name="Normal",this.xfId=0}return e}(),d=function(){function e(e,t){this.numFmtId=e,this.formatCode=t}return e}(),m=function(){function e(e,t){this.lineStyle=e,this.color=t}return e}(),p=function(){function e(){this.left=new m("none","#FFFFFF"),this.right=new m("none","#FFFFFF"),this.top=new m("none","#FFFFFF"),this.bottom=new m("none","#FFFFFF"),this.all=new m("none","#FFFFFF")}return e}(),u=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),c=function(){function e(){}return e}(),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.add=function(e){for(var r=!1,o=0,i=0,n=t;i<n.length;i++)n[i].index===e.index&&(t[o]=e,r=!0),o++;r||t.push(e)},t}return u(t,e),t}(Array),v=function(){function e(){}return e}(),g=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),y=function(){function e(){}return e}(),x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.add=function(e){t.push(e)},t}return g(t,e),t}(Array),w=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return w(t,e),t}(Array),F=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),S=function(){function e(){this.isSummaryRowBelow=!0,this.showGridLines=!0,this.enableRtl=!1}return e}(),C=function(){function e(){}return e}(),k=function(){function e(){}return e}(),I=function(){function e(){}return e}(),T=function(){function e(){}return e}(),R=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.add=function(e){for(var o=!1,i=0,n=0,s=r;n<s.length;n++){var l=s[n];if(t.isIntersecting(l,e)){var a=new T;a.x=Math.min(l.x,e.x),a.y=Math.min(l.Y,e.y),a.width=Math.max(l.Width+l.X,e.width+e.x),a.height=Math.max(l.Height+l.Y,e.height+e.y),a.ref=r[i].ref.split(":")[0]+":"+e.ref.split(":")[1],r[i]=a,e=a,o=!0}i++}return o||r.push(e),e},r}return F(t,e),t.isIntersecting=function(e,t){return e.x<=t.x+t.width&&t.x<=e.x+e.width&&e.y<=t.y+t.height&&t.y<=e.y+e.height},t}(Array),N=function(){function e(){}return e}(),P=function(){function e(e){this.intl=new r.Internationalization}return e.prototype.getFormatFunction=function(e,t){return e.type?(t&&(e.isServerRendered=!0),this.intl.getDateFormat(e)):this.intl.getNumberFormat(e)},e.prototype.toView=function(e,t){var o=e;return r.isNullOrUndefined(t)||r.isNullOrUndefined(e)||(o=t(e)),o},e.prototype.displayText=function(e,t,r){return this.toView(e,this.getFormatFunction(t,r))},e}(),A=function(){function e(e,t){if(this.csvStr="",this.separator=null===t||void 0===t?",":t,this.formatter=new P,this.isMicrosoftBrowser=!!navigator.msSaveBlob,null!==e.isServerRendered&&void 0!==e.isServerRendered&&(this.isServerRendered=e.isServerRendered),null!==e.styles&&void 0!==e.styles){this.globalStyles=new Map;for(var r=0;r<e.styles.length;r++)void 0!==e.styles[r].name&&void 0!==e.styles[r].numberFormat&&this.globalStyles.set(e.styles[r].name,e.styles[r].numberFormat)}null!==e.worksheets&&void 0!==e.worksheets&&this.parseWorksheet(e.worksheets[0])}return e.prototype.parseWorksheet=function(e){null!==e.rows&&void 0!==e.rows&&this.parseRows(e.rows)},e.prototype.parseRows=function(e){for(var t=1,r=0,o=e;r<o.length;r++){var i=o[r];if(null===i.index||void 0===i.index)throw Error("Row index is missing.");for(;t<i.index;)this.csvStr+="\r\n",t++;this.parseRow(i)}this.csvStr+="\r\n"},e.prototype.parseRow=function(e){if(null!==e.cells&&void 0!==e.cells)for(var t=1,r=0,o=e.cells;r<o.length;r++){var i=o[r];if(null===i.index||void 0===i.index)throw Error("Cell index is missing.");for(;t<i.index;)this.csvStr+=this.separator,t++;this.parseCell(i)}},e.prototype.parseCell=function(e){var t=this.csvStr;if(void 0!==e.value)if(e.value instanceof Date)if(void 0!==e.style&&void 0!==e.style.numberFormat)try{t+=this.parseCellValue(this.formatter.displayText(e.value,{type:"dateTime",skeleton:e.style.numberFormat},this.isServerRendered))}catch(r){t+=this.parseCellValue(this.formatter.displayText(e.value,{type:"dateTime",format:e.style.numberFormat},this.isServerRendered))}else if(void 0!==e.style&&void 0!==e.style.name&&this.globalStyles.has(e.style.name))try{t+=this.parseCellValue(this.formatter.displayText(e.value,{type:"dateTime",skeleton:this.globalStyles.get(e.style.name)},this.isServerRendered))}catch(r){t+=this.parseCellValue(this.formatter.displayText(e.value,{type:"dateTime",format:this.globalStyles.get(e.style.name)},this.isServerRendered))}else t+=e.value;else"boolean"==typeof e.value?t+=e.value?"TRUE":"FALSE":"number"==typeof e.value?void 0!==e.style&&void 0!==e.style.numberFormat?t+=this.parseCellValue(this.formatter.displayText(e.value,{format:e.style.numberFormat},this.isServerRendered)):void 0!==e.style&&void 0!==e.style.name&&this.globalStyles.has(e.style.name)?t+=this.parseCellValue(this.formatter.displayText(e.value,{format:this.globalStyles.get(e.style.name)},this.isServerRendered)):t+=e.value:t+=this.parseCellValue(e.value);this.csvStr=t},e.prototype.parseCellValue=function(e){for(var t="",r=e.length,o=0;o<r;o++)'"'===e[o]?t+=e[o].replace('"','""'):t+=e[o];return e=t,-1!==e.indexOf(this.separator)||-1!==e.indexOf("\n")||-1!==e.indexOf('"')?e='"'+e+'"':e},e.prototype.save=function(e){if(this.buffer=new Blob(["\ufeff"+this.csvStr],{type:"text/csv;charset=UTF-8"}),this.isMicrosoftBrowser)navigator.msSaveBlob(this.buffer,e);else{var t=window.URL.createObjectURL(this.buffer),r=document.createElementNS("http://www.w3.org/1999/xhtml","a");r.download=e,r.href=t;var o=document.createEvent("MouseEvent");o.initEvent("click",!0,!0),r.dispatchEvent(o),setTimeout(function(){window.URL.revokeObjectURL(t)})}},e.prototype.saveAsBlob=function(e){if(void 0!=e){var t=new o.Encoding,r="UTF-8";"ANSI"==e.toUpperCase()?(t.type="Ansi",r="ANSI"):"UNICODE"==e.toUpperCase()?(t.type="Unicode",r="UNICODE"):(t.type="Utf8",r="UTF-8");var i=t.getBytes(this.csvStr,0,this.csvStr.length);return new Blob([i],{type:"text/csv;charset="+r})}return new Blob(["\ufeff"+this.csvStr],{type:"text/csv;charset=UTF-8"})},e}(),O=function(){function e(){this.parts=[]}return e.prototype.append=function(e){this.parts.push(e),this.blob=void 0},e.prototype.getBlob=function(){return new Blob(this.parts,{type:"text/plain"})},e}(),B=function(){function e(){}return e}(),D=function(){function e(e,o,s,l,a){if(this.sharedStringCount=0,this.unitsProportions=[1.28,.32,96,96/25.4,96/2.54,1,96/72,96/72/12700],this.hyperlinkStyle={fontColor:"#0000FF",underline:!0},this.culture=void 0!==s?s:"en-US",this.currency=void 0!==l?l:"USD",this.intl=new r.Internationalization(this.culture),this.mSaveType=o,"xlsx"===o){if(this.mArchive=new t.ZipArchive,this.sharedString=[],this.mFonts=[],this.mBorders=[],this.mStyles=[],this.printTitles=new Map,this.cellStyles=new Map,this.mNumFmt=new Map,this.mFills=new Map,this.mStyles.push(new i),this.mFonts.push(new n),this.cellStyles.set("Normal",new h),this.mCellXfs=[],this.mCellStyleXfs=[],this.drawingCount=0,this.imageCount=0,null!==e.styles&&void 0!==e.styles){this.globalStyles=new Map;for(var d=0;d<e.styles.length;d++)if(void 0!==e.styles[d].name){if(this.cellStyles.has(e.styles[d].name))throw Error("Style name "+e.styles[d].name+" is already existed");var m=new i;m.isGlobalStyle=!0,this.parserCellStyle(e.styles[d],m,"none");var p=new h;p.name=m.name,p.xfId=m.index-1,this.cellStyles.set(p.name,p);var u={};void 0!==e.styles[d].numberFormat&&(u.format=e.styles[d].numberFormat),void 0!==e.styles[d].type?u.type=e.styles[d].type:u.type="datetime",void 0!==u.format&&this.globalStyles.set(e.styles[d].name,u)}}if(null===e.worksheets||void 0===e.worksheets)throw Error("Worksheet is expected.");this.parserWorksheets(e.worksheets),null!==e.builtInProperties&&void 0!==e.builtInProperties&&(this.builtInProperties=new E,this.parserBuiltInProperties(e.builtInProperties,this.builtInProperties))}else this.csvHelper=new A(e,a)}return e.prototype.parserBuiltInProperties=function(e,t){null!==e.author&&void 0!==e.author&&(t.author=e.author),null!==e.comments&&void 0!==e.comments&&(t.comments=e.comments),null!==e.category&&void 0!==e.category&&(t.category=e.category),null!==e.company&&void 0!==e.company&&(t.company=e.company),null!==e.manager&&void 0!==e.manager&&(t.manager=e.manager),null!==e.subject&&void 0!==e.subject&&(t.subject=e.subject),null!==e.title&&void 0!==e.title&&(t.title=e.title),null!==e.createdDate&&void 0!==e.createdDate&&(t.createdDate=e.createdDate),null!==e.modifiedDate&&void 0!==e.modifiedDate&&(t.modifiedDate=e.modifiedDate),null!==e.tags&&void 0!==e.tags&&(t.tags=e.tags),null!==e.status&&void 0!==e.status&&(t.status=e.status)},e.prototype.parserWorksheets=function(e){this.worksheets=new b;for(var t=e.length,r=0;r<t;r++){var o=e[r],i=new S;this.mergeCells=new R,this.mergedCellsStyle=new Map,this.mHyperLinks=[],null!==o.name&&void 0!==o.name?i.name=o.name:i.name="Sheet"+(r+1).toString(),null!==o.enableRtl&&void 0!==o.enableRtl&&(i.enableRtl=o.enableRtl),i.index=r+1,null!==o.columns&&void 0!==o.columns&&this.parserColumns(o.columns,i),null!==o.rows&&void 0!==o.rows&&this.parserRows(o.rows,i),null!==o.showGridLines&&void 0!==o.showGridLines&&(i.showGridLines=o.showGridLines),null!==o.freeze&&void 0!==o.freeze&&this.parserFreezePanes(o.freeze,i),null!==o.printTitle&&void 0!==o.printTitle&&this.parserPrintTitle(o.printTitle,i),void 0!==o.pageSetup&&void 0!==o.pageSetup.isSummaryRowBelow&&(i.isSummaryRowBelow=o.pageSetup.isSummaryRowBelow),void 0!==o.images&&this.parserImages(o.images,i),null!==o.autoFilters&&void 0!==o.autoFilters&&this.parseFilters(o.autoFilters,i),i.index=r+1,i.mergeCells=this.mergeCells,i.hyperLinks=this.mHyperLinks,this.worksheets.push(i)}},e.prototype.mergeOptions=function(e,t){var r={};return this.applyProperties(e,r),this.applyProperties(t,r),r},e.prototype.applyProperties=function(e,t){for(var r=Object.keys(e),o=0;o<r.length;o++)"name"!==r[o]&&(t[r[o]]=e[r[o]])},e.prototype.getCellName=function(e,t){return this.getColumnName(t)+e.toString()},e.prototype.getColumnName=function(e){e--;var t="";do{var r=e%26;e=e/26-1,t=String.fromCharCode(65+r)+t}while(e>=0);return t},e.prototype.parserPrintTitle=function(e,t){var r,o="";if(null!==e.fromRow&&void 0!==e.fromRow){r="$"+e.fromRow+":$"+(null!==e.toRow&&void 0!==e.toRow?e.toRow:e.fromRow)}var i;if(null!==e.fromColumn&&void 0!==e.fromColumn){var n=e.fromColumn,s=void 0;s=null!==e.toColumn&&void 0!==e.toColumn?e.toColumn:e.fromColumn,i="$"+this.getColumnName(n)+":$"+this.getColumnName(s)}void 0!==r&&(o+=t.name+"!"+r),void 0!==i&&void 0!==r?o+=","+t.name+"!"+i:void 0!==i&&(o+=t.name+"!"+i),""!==o&&this.printTitles.set(t.index-1,o)},e.prototype.parserFreezePanes=function(e,t){t.freezePanes=new I,null!==e.row&&void 0!==e.row?t.freezePanes.row=e.row:t.freezePanes.row=0,null!==e.column&&void 0!==e.column?t.freezePanes.column=e.column:t.freezePanes.column=0,t.freezePanes.leftCell=this.getCellName(t.freezePanes.row+1,t.freezePanes.column+1)},e.prototype.parserColumns=function(e,t){var r=e.length;t.columns=[];for(var o=0;o<r;o++){var i=new v;if(null===e[o].index||void 0===e[o].index)throw Error("Column index is missing.");i.index=e[o].index,null!==e[o].width&&void 0!==e[o].width&&(i.width=e[o].width),t.columns.push(i)}},e.prototype.parserRows=function(e,t){var r=e.length;t.rows=new x;for(var o=0,i=0;i<r;i++){var n=this.parserRow(e[i],o);o=n.index,t.rows.add(n)}this.insertMergedCellsStyle(t)},e.prototype.insertMergedCellsStyle=function(e){var t=this;this.mergeCells.length>0&&this.mergedCellsStyle.forEach(function(o,i){var n=e.rows.filter(function(e){return e.index===o.y})[0];if(r.isNullOrUndefined(n)){var s=e.rows.filter(function(e){return e.index<=o.y}),l=new y;l.index=o.y,l.cells=new f,l.cells.add(t.createCell(o,i));d=0;s.length>0&&(d=e.rows.indexOf(s[s.length-1])+1),e.rows.splice(d,0,l)}else{var a=n.cells.filter(function(e){return e.index===o.x})[0];if(r.isNullOrUndefined(a)){var h=n.cells.filter(function(e){return e.index<=o.x}),d=0;h.length>0&&(d=n.cells.indexOf(h[h.length-1])+1),n.cells.splice(d,0,t.createCell(o,i))}else a.styleIndex=o.styleIndex}})},e.prototype.createCell=function(e,t){var r=new c;return r.refName=t,r.index=e.x,r.cellStyle=new i,r.styleIndex=e.styleIndex,r},e.prototype.parserRow=function(e,t){var r=new y;if(null!==e.height&&void 0!==e.height&&(r.height=e.height),null===e.index||void 0===e.index)throw Error("Row index is missing.");return r.index=e.index,null!==e.grouping&&void 0!==e.grouping&&this.parseGrouping(e.grouping,r),this.parseCells(e.cells,r),r},e.prototype.parseGrouping=function(e,t){t.grouping=new k,void 0!==e.outlineLevel&&(t.grouping.outlineLevel=e.outlineLevel),void 0!==e.isCollapsed&&(t.grouping.isCollapsed=e.isCollapsed),void 0!==e.isHidden&&(t.grouping.isHidden=e.isHidden)},e.prototype.parseCells=function(e,t){t.cells=new f;for(var r=void 0!==e?e.length:0,o=1,n=1,s=0;s<r;s++){var l=e[s],a=new c;if(null===l.index||void 0===l.index)throw Error("Cell index is missing.");if(a.index=l.index,a.index<o?o=a.index:a.index>n&&(n=a.index),a.refName=this.getCellName(t.index,a.index),null!==l.rowSpan&&void 0!==l.rowSpan?a.rowSpan=l.rowSpan-1:a.rowSpan=0,null!==l.colSpan&&void 0!==l.colSpan?a.colSpan=l.colSpan-1:a.colSpan=0,null!==l.hyperlink&&void 0!==l.hyperlink){var h=new C;void 0!==l.hyperlink.target&&(h.target=l.hyperlink.target,void 0!==l.hyperlink.displayText?a.value=l.hyperlink.displayText:a.value=l.hyperlink.target,a.type=this.getCellValueType(a.value),h.ref=a.refName,h.rId=this.mHyperLinks.length+1,this.mHyperLinks.push(h),a.cellStyle=new i,this.parserCellStyle(void 0!==l.style?this.mergeOptions(l.style,this.hyperlinkStyle):this.hyperlinkStyle,a.cellStyle,"string"),a.styleIndex=a.cellStyle.index)}null!==l.formula&&void 0!==l.formula&&(a.formula=l.formula,a.type="formula"),null!==l.value&&void 0!==l.value&&(void 0!==a.formula?a.value=0:(a.value=l.value,a.type=this.getCellValueType(a.value))),null!==l.style&&void 0!==l.style&&void 0===a.styleIndex?(a.cellStyle=new i,a.value instanceof Date?this.parserCellStyle(l.style,a.cellStyle,a.type,14):this.parserCellStyle(l.style,a.cellStyle,a.type),a.styleIndex=a.cellStyle.index):a.value instanceof Date&&(a.cellStyle=new i,this.parserCellStyle({},a.cellStyle,a.type,14),a.styleIndex=a.cellStyle.index),this.parseCellType(a),this.mergeCells=this.processMergeCells(a,t.index,this.mergeCells),t.cells.add(a),a.index+1}t.spans=o+":"+n},e.prototype.GetColors=function(){var e;return(e=new Map).set("WHITE","FFFFFFFF"),e.set("SILVER","FFC0C0C0"),e.set("GRAY","FF808080"),e.set("BLACK","FF000000"),e.set("RED","FFFF0000"),e.set("MAROON","FF800000"),e.set("YELLOW","FFFFFF00"),e.set("OLIVE","FF808000"),e.set("LIME","FF00FF00"),e.set("GREEN","FF008000"),e.set("AQUA","FF00FFFF"),e.set("TEAL","FF008080"),e.set("BLUE","FF0000FF"),e.set("NAVY","FF000080"),e.set("FUCHSIA","FFFF00FF"),e.set("PURPLE","FF800080"),e},e.prototype.processColor=function(e){return 0===e.indexOf("#")?e.replace("#","FF"):(e=e.toUpperCase(),this.rgbColors=this.GetColors(),e=this.rgbColors.has(e)?this.rgbColors.get(e):"FF000000")},e.prototype.processCellValue=function(e,t){var r=e;if(-1!==e.indexOf("<font")||-1!==e.indexOf("<a")||-1!==e.indexOf("<b>")||-1!==e.indexOf("<i>")||-1!==e.indexOf("<u>")){var o="",i=e.indexOf("<",0),n=e.indexOf(">",i+1);if(i>=0&&n>=0){for(0!==i&&(o+='<r><t xml:space="preserve">'+this.processString(e.substring(0,i))+"</t></r>");i>=0&&n>=0;)if((n=e.indexOf(">",i+1))>=0){var s=e.substring(i+1,n);(i=e.indexOf("<",n+1))<0&&(i=r.length);var l=r.substring(n+1,i);if(0!==l.length){var a=s.split(" ");if(a.length>0&&(o+="<r><rPr>"),a.length>1)for(var h=0,d=a;h<d.length;h++){var m=d[h];switch(m.trim().substring(0,5)){case"size=":o+='<sz val="'+m.substring(6,m.length-1)+'"/>';break;case"face=":o+='<rFont val="'+m.substring(6,m.length-1)+'"/>';break;case"color":o+='<color rgb="'+this.processColor(m.substring(7,m.length-1))+'"/>';break;case"href=":var p=new C;p.target=m.substring(6,m.length-1).trim(),p.ref=t.refName,p.rId=this.mHyperLinks.length+1,this.mHyperLinks.push(p),o+='<color rgb="FF0000FF"/><u/><b/>'}}else if(1===a.length)switch(a[0].trim()){case"b":o+="<b/>";break;case"i":o+="<i/>";break;case"u":o+="<u/>"}o+='</rPr><t xml:space="preserve">'+this.processString(l)+"</t></r>"}}return""===o?r:o}return r}return r},e.prototype.applyGlobalStyle=function(e,t){this.cellStyles.has(e.name)&&(t.index=this.mStyles.filter(function(t){return t.name===e.name})[0].index,t.name=e.name)},e.prototype.parserCellStyle=function(e,t,r,o){if(null!==e.name&&void 0!==e.name){if(!t.isGlobalStyle)return void this.applyGlobalStyle(e,t);t.name=e.name}null!==e.backColor&&void 0!==e.backColor&&(t.backColor=e.backColor),t.borders=new p,null!==e.borders&&void 0!==e.borders&&this.parserBorder(e.borders,t.borders.all),null!==e.leftBorder&&void 0!==e.leftBorder&&this.parserBorder(e.leftBorder,t.borders.left),null!==e.rightBorder&&void 0!==e.rightBorder&&this.parserBorder(e.rightBorder,t.borders.right),null!==e.topBorder&&void 0!==e.topBorder&&this.parserBorder(e.topBorder,t.borders.top),null!==e.bottomBorder&&void 0!==e.bottomBorder&&this.parserBorder(e.bottomBorder,t.borders.bottom),null!==e.fontName&&void 0!==e.fontName&&(t.fontName=e.fontName),null!==e.fontSize&&void 0!==e.fontSize&&(t.fontSize=e.fontSize),null!==e.fontColor&&void 0!==e.fontColor&&(t.fontColor=e.fontColor),null!==e.italic&&void 0!==e.italic&&(t.italic=e.italic),null!==e.bold&&void 0!==e.bold&&(t.bold=e.bold),null!==e.hAlign&&void 0!==e.hAlign&&(t.hAlign=e.hAlign.toLowerCase()),null!==e.indent&&void 0!==e.indent&&(t.indent=e.indent,"left"!==t.hAlign&&"right"!==t.hAlign&&(t.hAlign="left")),null!==e.rotation&&void 0!==e.rotation&&(t.rotation=e.rotation),null!==e.vAlign&&void 0!==e.vAlign&&(t.vAlign=e.vAlign.toLowerCase()),null!==e.underline&&void 0!==e.underline&&(t.underline=e.underline),null!==e.strikeThrough&&void 0!==e.strikeThrough&&(t.strikeThrough=e.strikeThrough),null!==e.wrapText&&void 0!==e.wrapText&&(t.wrapText=e.wrapText),null!==e.numberFormat&&void 0!==e.numberFormat?null!==e.type&&void 0!==e.type?t.numberFormat=this.getNumberFormat(e.numberFormat,e.type):t.numberFormat=this.getNumberFormat(e.numberFormat,r):void 0!==o?(t.numFmtId=14,t.numberFormat="GENERAL"):t.numberFormat="GENERAL",t.index=this.processCellStyle(t)},e.prototype.switchNumberFormat=function(e,t){var r=this.getNumberFormat(e,t);if(r!==e){var o=this.mNumFmt.get(e);if(void 0!==o&&(o.formatCode=r,this.mNumFmt.has(r))){for(var i=0,n=this.mCellStyleXfs;i<n.length;i++){var s=n[i];s.numFmtId===o.numFmtId&&(s.numFmtId=this.mNumFmt.get(r).numFmtId)}for(var l=0,a=this.mCellXfs;l<a.length;l++){var h=a[l];h.numFmtId===o.numFmtId&&(h.numFmtId=this.mNumFmt.get(r).numFmtId)}}}},e.prototype.changeNumberFormats=function(e){if("string"==typeof e){var t=new RegExp(this.currency,"g");e=e.replace(t,"[$"+this.currency+"]")}else if("object"==typeof e)for(var r=0;r<e.length;r++)e[r]=e[r].replace(this.currency,"[$"+this.currency+"]");return e},e.prototype.getNumberFormat=function(e,t){var r;switch(t){case"number":try{r=this.intl.getNumberPattern({format:e,currency:this.currency,useGrouping:!0},!0),this.currency.length>1&&(r=this.changeNumberFormats(r))}catch(t){r=e}break;case"datetime":try{r=this.intl.getDatePattern({skeleton:e,type:"dateTime"},!0)}catch(t){try{r=this.intl.getDatePattern({format:e,type:"dateTime"},!0)}catch(t){r=e}}break;case"date":try{r=this.intl.getDatePattern({skeleton:e,type:"date"},!0)}catch(t){try{r=this.intl.getDatePattern({format:e,type:"date"},!0)}catch(t){r=e}}break;case"time":try{r=this.intl.getDatePattern({skeleton:e,type:"time"},!0)}catch(t){try{r=this.intl.getDatePattern({format:e,type:"time"},!0)}catch(t){r=e}}break;default:r=e}return r},e.prototype.parserBorder=function(e,t){null!==e.color&&void 0!==e.color?t.color=e.color:t.color="#000000",null!==e.lineStyle&&void 0!==e.lineStyle?t.lineStyle=e.lineStyle:t.lineStyle="thin"},e.prototype.processCellStyle=function(e){if(e.isGlobalStyle)return this.processNumFormatId(e),this.mStyles.push(e),this.mStyles.length;var t=this.compareStyle(e);return t.result?t.index:(this.processNumFormatId(e),this.mStyles.push(e),this.mStyles.length)},e.prototype.processNumFormatId=function(e){if("GENERAL"!==e.numberFormat&&!this.mNumFmt.has(e.numberFormat)){var t=this.mNumFmt.size+164;this.mNumFmt.set(e.numberFormat,new d(t,e.numberFormat))}},e.prototype.isNewFont=function(e){for(var t=!1,r=0,o=0,i=this.mFonts;o<i.length;o++){var n=i[o];r++;var s=void 0;if(void 0!==e.fontColor&&(s="FF"+e.fontColor.replace("#","")),t=n.color===s&&n.b===e.bold&&n.i===e.italic&&n.u===e.underline&&n.strike===e.strikeThrough&&n.name===e.fontName&&n.sz===e.fontSize)break}return r-=1,{index:r,result:t}},e.prototype.isNewBorder=function(e){var t=new i;return this.isAllBorder(e.borders)?t.borders.all.color===e.borders.all.color&&t.borders.all.lineStyle===e.borders.all.lineStyle:t.borders.left.color===e.borders.left.color&&t.borders.left.lineStyle===e.borders.left.lineStyle&&t.borders.right.color===e.borders.right.color&&t.borders.right.lineStyle===e.borders.right.lineStyle&&t.borders.top.color===e.borders.top.color&&t.borders.top.lineStyle===e.borders.top.lineStyle&&t.borders.bottom.color===e.borders.bottom.color&&t.borders.bottom.lineStyle===e.borders.bottom.lineStyle},e.prototype.isAllBorder=function(e){var t=new i;return t.borders.all.color!==e.all.color&&t.borders.all.lineStyle!==e.all.lineStyle},e.prototype.compareStyle=function(e){for(var t=!0,r=0,o=0,i=this.mStyles;o<i.length;o++){var n=i[o];if(t=!n.isGlobalStyle&&(n.backColor===e.backColor&&n.bold===e.bold&&n.numFmtId===e.numFmtId&&n.numberFormat===e.numberFormat&&n.type===e.type&&n.fontColor===e.fontColor&&n.fontName===e.fontName&&n.fontSize===e.fontSize&&n.hAlign===e.hAlign&&n.italic===e.italic&&n.underline===e.underline&&n.strikeThrough===e.strikeThrough&&n.vAlign===e.vAlign&&n.indent===e.indent&&n.rotation===e.rotation&&n.wrapText===e.wrapText&&n.borders.all.color===e.borders.all.color&&n.borders.all.lineStyle===e.borders.all.lineStyle&&n.borders.left.color===e.borders.left.color&&n.borders.left.lineStyle===e.borders.left.lineStyle&&n.borders.right.color===e.borders.right.color&&n.borders.right.lineStyle===e.borders.right.lineStyle&&n.borders.top.color===e.borders.top.color&&n.borders.top.lineStyle===e.borders.top.lineStyle&&n.borders.bottom.color===e.borders.bottom.color&&n.borders.bottom.lineStyle===e.borders.bottom.lineStyle)){r=n.index;break}}return{index:r,result:t}},e.prototype.contains=function(e,t){var r=e.indexOf(t);return r>-1&&r<e.length},e.prototype.getCellValueType=function(e){return e instanceof Date?"datetime":"boolean"==typeof e?"boolean":"number"==typeof e?"number":"string"},e.prototype.parseCellType=function(e){var t,r=e.type,o=e.value;switch(r){case"datetime":if(o=this.toOADate(o),void 0!==e.cellStyle&&void 0!==e.cellStyle.name&&this.globalStyles.has(e.cellStyle.name)){var i=this.globalStyles.get(e.cellStyle.name);this.switchNumberFormat(i.format,i.type)}t="n";break;case"boolean":o=o?1:0,t="b";break;case"number":t="n",void 0!==e.cellStyle&&void 0!==e.cellStyle.name&&this.globalStyles.has(e.cellStyle.name)&&this.switchNumberFormat(this.globalStyles.get(e.cellStyle.name).format,"number");break;case"string":this.sharedStringCount++,t="s";var n=this.processCellValue(o,e);this.contains(this.sharedString,n)||this.sharedString.push(n),o=this.sharedString.indexOf(n)}e.saveType=t,e.value=o},e.prototype.parserImages=function(e,t){var r=e.length;t.images=[];for(var o=0;o<r;o++){var i=this.parserImage(e[o]);t.images.push(i)}},e.prototype.parseFilters=function(e,t){if(t.autoFilters=new B,null===e.row||void 0===e.row)throw new Error("Argument Null Exception: row null or empty");if(t.autoFilters.row=e.row,null===e.lastRow||void 0===e.lastRow)throw new Error("Argument Null Exception: lastRow cannot be null or empty");if(t.autoFilters.lastRow=e.lastRow,null===e.column||void 0===e.column)throw new Error("Argument Null Exception: column cannot be null or empty");if(t.autoFilters.column=e.column,null===e.lastColumn||void 0===e.row)throw new Error("Argument Null Exception: lastColumn cannot be null or empty");t.autoFilters.lastColumn=e.lastColumn},e.prototype.parserImage=function(e){var t=new N;return null!==e.image&&void 0!==e.image&&(t.image=e.image),null!==e.row&&void 0!==e.row&&(t.row=e.row),null!==e.column&&void 0!==e.column&&(t.column=e.column),null!==e.lastRow&&void 0!==e.lastRow&&(t.lastRow=e.lastRow),null!==e.lastColumn&&void 0!==e.lastColumn&&(t.lastColumn=e.lastColumn),null!==e.width&&void 0!==e.width&&(t.width=e.width),null!==e.height&&void 0!==e.height&&(t.height=e.height),null!==e.horizontalFlip&&void 0!==e.horizontalFlip&&(t.horizontalFlip=e.horizontalFlip),null!==e.verticalFlip&&void 0!==e.verticalFlip&&(t.verticalFlip=e.verticalFlip),null!==e.rotation&&void 0!==e.rotation&&(t.rotation=e.rotation),t},e.prototype.saveAsBlob=function(e,t){var r=this;switch(e){case"text/csv":return new Promise(function(e,o){var i={};i.blobData=r.csvHelper.saveAsBlob(t),e(i)});default:return new Promise(function(e,t){r.saveInternal(),r.mArchive.saveAsBlob().then(function(t){var r={};r.blobData=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),e(r)})})}},e.prototype.save=function(e,t){var r=this;if(null===e||void 0===e||""===e)throw new Error("Argument Null Exception: fileName cannot be null or empty");var o=e.match(".xlsx$"),i=e.match(".csv$");if(null!==o&&o[0]==="."+this.mSaveType)this.saveInternal(),this.mArchive.save(e).then(function(){r.mArchive.destroy()});else{if(null===i||i[0]!=="."+this.mSaveType)throw Error("Save type and file extension is different.");this.csvHelper.save(e)}},e.prototype.saveInternal=function(){this.saveWorkbook(),this.saveWorksheets(),this.saveSharedString(),this.saveStyles(),this.saveApp(this.builtInProperties),this.saveCore(this.builtInProperties),this.saveContentType(),this.saveTopLevelRelation(),this.saveWorkbookRelation()},e.prototype.saveWorkbook=function(){for(var e='<?xml version="1.0" encoding="utf-8"?><workbook xmlns:r = "http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns= "http://schemas.openxmlformats.org/spreadsheetml/2006/main"><workbookPr codeName="ThisWorkbook" defaultThemeVersion= "153222"/><bookViews><workbookView activeTab="0"/></bookViews>',t="<sheets>",r=this.worksheets.length,o=0;o<r;o++){var i=this.worksheets[o].name;t+='<sheet name="'+(i=(i=(i=(i=i.replace("&","&amp;")).replace("<","&lt;")).replace(">","&gt;")).replace('"',"&quot;"))+'" sheetId="'+(o+1).toString()+'" r:id ="rId'+(o+1).toString()+'" />'}if(t+="</sheets>",e+=t,this.printTitles.size>0){var n="<definedNames>";this.printTitles.forEach(function(e,t){n+='<definedName name="_xlnm.Print_Titles" localSheetId="'+t+'">'+e+"</definedName>"}),e+=n+="</definedNames>"}this.addToArchive(e+"</workbook>","xl/workbook.xml")},e.prototype.saveWorksheets=function(){for(var e=this.worksheets.length,t=0;t<e;t++)this.saveWorksheet(this.worksheets[t],t)},e.prototype.saveWorksheet=function(e,t){var o=new O,i='<?xml version="1.0" encoding="utf-8" standalone="yes"?><worksheet xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">';if(e.isSummaryRowBelow?i+="<sheetPr />":i+='<sheetPr><outlinePr summaryBelow="0" ></outlinePr></sheetPr>',i+=this.saveSheetView(e),void 0!==e.columns){for(var n="<cols>",s=0,l=e.columns;s<l.length;s++){var a=l[s];void 0!==a.width?n+='<col min="'+a.index+'" max="'+a.index+'" width="'+this.pixelsToColumnWidth(a.width)+'" customWidth="1" />':n+='<col min="'+a.index+'" max="'+a.index+'" width="8.43" customWidth="1" />'}i+=n+"</cols>"}if(i+="<sheetData>",o.append(i),i="",void 0!==e.rows)for(var h=0,d=e.rows;h<d.length;h++){var m=d[h],p='<row r="'+m.index+'" ';r.isNullOrUndefined(m.spans)||(p+='spans="'+m.spans+'" '),void 0!==m.height&&(p+='ht="'+this.pixelsToRowHeight(m.height)+'" customHeight="1" '),void 0!==m.grouping&&(m.grouping.isHidden&&(p+='hidden="1" '),void 0!==m.grouping.outlineLevel&&(p+='outlineLevel="'+m.grouping.outlineLevel+'" '),m.grouping.isCollapsed&&(p+='collapsed="1" ')),p+=">";for(var u=0,c=m.cells;u<c.length;u++){var f=c[u];void 0===f||void 0===f.value&&void 0===f.cellStyle||(p+='<c r="'+f.refName+'" ',void 0!==f.saveType&&(p+='t="'+f.saveType+'" '),void 0!==f.styleIndex&&(p+='s="'+f.styleIndex+'" '),p+=" >",void 0!==f.formula&&(p+="<f>"+f.formula+"</f>"),void 0!==f.value?p+="<v>"+f.value+"</v></c>":p+="</c>")}p+="</row>",o.append(p)}if(i+="</sheetData>",null!==e.autoFilters&&void 0!==e.autoFilters&&(i+='<autoFilter ref="'+this.getCellName(e.autoFilters.row,e.autoFilters.column)+":"+this.getCellName(e.autoFilters.lastRow,e.autoFilters.lastColumn)+'"/>'),e.mergeCells.length>0){i+='<mergeCells count="'+e.mergeCells.length+'">';for(var v=0,g=e.mergeCells;v<g.length;v++)i+='<mergeCell ref="'+g[v].ref+'" />';i+="</mergeCells>"}if(e.hyperLinks.length>0){i+="<hyperlinks>";for(var y=0,x=e.hyperLinks;y<x.length;y++){var w=x[y];i+='<hyperlink ref="'+w.ref+'" r:id="rId'+w.rId+'" />'}i+="</hyperlinks>"}i+='<pageMargins left="0.75" right="0.75" top="1" bottom="1" header="0.5" footer="0.5" /><headerFooter scaleWithDoc="1" alignWithMargins="0" differentFirst="0" differentOddEven="0" />',void 0!=e.images&&e.images.length>0&&(this.drawingCount++,this.saveDrawings(e,e.index),i+='<drawing r:id="rId'+(e.hyperLinks.length+1)+'"/>'),this.addToArchive(this.saveSheetRelations(e),"xl/worksheets/_rels/sheet"+e.index+".xml.rels"),o.append(i+"</worksheet>"),this.addToArchive(o.getBlob(),"xl/worksheets/sheet"+(t+1)+".xml")},e.prototype.saveDrawings=function(e,t){var r=new O,o='<xdr:wsDr xmlns:xdr="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">';if(void 0!==e.images){for(var i=0,n=0,s=e.images;n<s.length;n++){var l=s[n];void 0!==l.height&&void 0!==l.width?(this.updatelastRowOffset(e,l),this.updatelastColumnOffSet(e,l),l.lastRow-=1,l.lastColumn-=1):void 0!==l.lastRow&&void 0!==l.lastColumn&&(l.lastRowOffset=0,l.lastColOffset=0),i++,o+='<xdr:twoCellAnchor editAs="oneCell">',o+="<xdr:from><xdr:col>",o+=l.column-1,o+="</xdr:col><xdr:colOff>",o+=0,o+="</xdr:colOff><xdr:row>",o+=l.row-1,o+="</xdr:row><xdr:rowOff>",o+=0,o+="</xdr:rowOff></xdr:from>",o+="<xdr:to><xdr:col>",o+=l.lastColumn,o+="</xdr:col><xdr:colOff>",o+=l.lastColOffset,o+="</xdr:colOff><xdr:row>",o+=l.lastRow,o+="</xdr:row><xdr:rowOff>",o+=l.lastRowOffset,o+="</xdr:rowOff></xdr:to>",o+="<xdr:pic>",o+="<xdr:nvPicPr>",o+='<xdr:cNvPr id="'+i+'" name="Picture '+i+'"> </xdr:cNvPr>',o+='<xdr:cNvPicPr><a:picLocks noChangeAspect="1"/></xdr:cNvPicPr> </xdr:nvPicPr>',o+="<xdr:blipFill>",o+='<a:blip xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" r:embed="rId'+i+'" cstate="print">',o+="</a:blip><a:stretch><a:fillRect /></a:stretch></xdr:blipFill>",o+="<xdr:spPr>",o+="<a:xfrm",void 0!=l.rotation&&l.rotation<=3600&&l.rotation>=-3600&&(o+=' rot="'+6e4*l.rotation+'"'),void 0!=l.verticalFlip&&0!=l.verticalFlip&&(o+=' flipV="1"'),void 0!=l.horizontalFlip&&0!=l.horizontalFlip&&(o+=' flipH="1"'),o+="/>",o+='<a:prstGeom prst="rect"><a:avLst /></a:prstGeom></xdr:spPr>',o+="</xdr:pic><xdr:clientData /></xdr:twoCellAnchor>";var a=this.convertBase64toImage(l.image);this.imageCount+=1,this.addToArchive(a,"xl/media/image"+this.imageCount+".png")}r.append(o),r.append("</xdr:wsDr>"),this.saveDrawingRelations(e),this.addToArchive(r.getBlob(),"xl/drawings/drawing"+this.drawingCount+".xml")}},e.prototype.updatelastRowOffset=function(e,t){for(var r=t.height,o=t.row,i=0;r>=0;){var n=0,s=(n=void 0!==e.rows&&void 0!==e.rows[o-1]?this.convertToPixels(void 0===e.rows[o-1].height?15:e.rows[o-1].height):this.convertToPixels(15))-i*n/256;if(s>r){t.lastRow=o,t.lastRowOffset=i+256*r/n;var l=0;l=void 0!==e.rows&&void 0!==e.rows[o-1]?this.convertToPixels(void 0===e.rows[o-1].height?15:e.rows[o-1].height):this.convertToPixels(15),t.lastRowOffset=l*t.lastRowOffset/256,t.lastRowOffset=Math.round(t.lastRowOffset/this.unitsProportions[7]);break}r-=s,o++,i=0}},e.prototype.updatelastColumnOffSet=function(e,t){for(var r=t.width,o=t.column,i=0;r>=0;){var n=0,s=(n=void 0!==e.columns&&void 0!==e.columns[o-1]?this.ColumnWidthToPixels(void 0===e.columns[o-1].width?8.43:e.columns[o-1].width):this.ColumnWidthToPixels(8.43))-i*n/1024;if(s>r){t.lastColumn=o,t.lastColOffset=i+1024*r/n;var l=0;l=void 0!==e.columns&&void 0!==e.columns[o-1]?this.ColumnWidthToPixels(void 0===e.columns[o-1].width?8.43:e.columns[o-1].width):this.ColumnWidthToPixels(8.43),t.lastColOffset=l*t.lastColOffset/1024,t.lastColOffset=Math.round(t.lastColOffset/this.unitsProportions[7]);break}r-=s,o++,i=0}},e.prototype.convertToPixels=function(e){return e*this.unitsProportions[6]},e.prototype.convertBase64toImage=function(e){for(var t=window.atob(e),r=new ArrayBuffer(t.length),o=new Uint8Array(r),i=0;i<t.length;i++)o[i]=t.charCodeAt(i);return new Blob([o],{type:"image/png"})},e.prototype.saveDrawingRelations=function(e){for(var t='<?xml version="1.0" encoding="utf-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">',r=e.images.length,o=this.imageCount-e.images.length,i=1;i<=r;i++)t+='<Relationship Id="rId'+i+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="../media/image'+ ++o+'.png" />';this.addToArchive(t+"</Relationships>","xl/drawings/_rels/drawing"+this.drawingCount+".xml.rels")},e.prototype.pixelsToColumnWidth=function(e){var t=e>12?this.trunc((e-5)/7*100+.5)/100:e/12;return t>1?(7*t+5)/7*256/256:12*t/7*256/256},e.prototype.ColumnWidthToPixels=function(e){var t=e>1?(7*e+5)/7*256/256:12*e/7*256/256;return this.trunc((256*t+this.trunc(128/7))/256*7)},e.prototype.trunc=function(e){var t=e-e%1;return 0===t&&(e<0||0===e&&1/e!=1/0)?-0:t},e.prototype.pixelsToRowHeight=function(e){return e*this.unitsProportions[5]/this.unitsProportions[6]},e.prototype.saveSheetRelations=function(e){for(var t='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">',r=0,o=e.hyperLinks;r<o.length;r++){var i=o[r];t+='<Relationship Id="rId'+i.rId+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="'+this.processString(i.target)+'" TargetMode="External" />'}return void 0!=e.images&&e.images.length>0&&(t+='<Relationship Id="rId'+(e.hyperLinks.length+1)+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing" Target="../drawings/drawing'+this.drawingCount+'.xml" />'),t+="</Relationships>"},e.prototype.saveSheetView=function(e){var t='<sheetViews><sheetView workbookViewId="0" ';return!0===e.enableRtl&&(t+='rightToLeft="1"'),!1===e.showGridLines?t+='showGridLines="0" >':t+=">",void 0!==e.freezePanes&&(t+='<pane state="frozen" topLeftCell="'+e.freezePanes.leftCell+'" ',0!==e.freezePanes.row&&(t+='ySplit="'+e.freezePanes.row+'" '),0!==e.freezePanes.column&&(t+='xSplit="'+e.freezePanes.column+'" '),t+="/>"),t+="</sheetView></sheetViews > "},e.prototype.saveSharedString=function(){var e=this.sharedString.length;if(e>0){for(var t='<?xml version="1.0" encoding="utf-8"?><sst uniqueCount="'+e+'" count="'+this.sharedStringCount+'" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">',r="",o=0;o<e;o++)0!==this.sharedString[o].indexOf("<r>")?(r+="<si><t>",r+=this.processString(this.sharedString[o]),r+="</t></si>"):(r+="<si>",r+=this.sharedString[o],r+="</si>");r+="</sst>",this.addToArchive(t+r,"xl/sharedStrings.xml")}},e.prototype.processString=function(e){if("string"==typeof e)-1!==e.indexOf("&")&&(e=e.replace(/&/g,"&amp;")),-1!==e.indexOf("<")&&(e=e.replace(/</g,"&lt;")),-1!==e.indexOf(">")&&(e=e.replace(/>/g,"&gt;")),-1!==e.indexOf("\v")&&(e=e.replace(/\v/g,"_x000B_"));else if("object"==typeof e)for(var t=0;t<e.length;t++)-1!==e[t].indexOf("&")&&(e[t]=e[t].replace(/&/g,"&amp;")),-1!==e[t].indexOf("<")&&(e[t]=e[t].replace(/</g,"&lt;")),-1!==e[t].indexOf(">")&&(e[t]=e[t].replace(/>/g,"&gt;")),-1!==e[t].indexOf("\v")&&(e[t]=e[t].replace(/\v/g,"_x000B_"));return e},e.prototype.saveStyles=function(){this.updateCellXfsStyleXfs();var e='<?xml version="1.0" encoding="utf-8"?><styleSheet xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">';e+=this.saveNumberFormats(),e+=this.saveFonts(),e+=this.saveFills(),e+=this.saveBorders(),e+=this.saveCellStyleXfs(),e+=this.saveCellXfs(),e+=this.saveCellStyles(),this.addToArchive(e+"</styleSheet>","xl/styles.xml")},e.prototype.updateCellXfsStyleXfs=function(){for(var e=0,t=this.mStyles;e<t.length;e++){var r=t[e],o=void 0;r.isGlobalStyle?(o=new a).xfId=r.index-1:(o=new s).xfId=0;var i=this.isNewFont(r);if(i.result)o.fontId=i.index;else{var h=new n;h.b=r.bold,h.i=r.italic,h.name=r.fontName,h.sz=r.fontSize,h.u=r.underline,h.strike=r.strikeThrough,h.color="FF"+r.fontColor.replace("#",""),this.mFonts.push(h),o.fontId=this.mFonts.length-1}if("none"!==r.backColor){var m="FF"+r.backColor.replace("#","");if(this.mFills.has(m)){p=this.mFills.get(m);o.fillId=p}else{var p=this.mFills.size+2;this.mFills.set(m,p),o.fillId=p}}else o.fillId=0;if(this.isNewBorder(r)?o.borderId=0:(this.mBorders.push(r.borders),o.borderId=this.mBorders.length),"GENERAL"!==r.numberFormat)if(this.mNumFmt.has(r.numberFormat)){var u=this.mNumFmt.get(r.numberFormat);o.numFmtId=u.numFmtId}else{var c=this.mNumFmt.size+164;this.mNumFmt.set(r.numberFormat,new d(c,r.numberFormat)),o.numFmtId=c}else"GENERAL"===r.numberFormat&&14===r.numFmtId?o.numFmtId=14:o.numFmtId=0;r.isGlobalStyle||(o.applyAlignment=1),o.alignment=new l,o.alignment.indent=r.indent,o.alignment.horizontal=r.hAlign,o.alignment.vertical=r.vAlign,o.alignment.wrapText=r.wrapText?1:0,o.alignment.rotation=r.rotation,r.isGlobalStyle?(this.mCellStyleXfs.push(o),this.mCellXfs.push(o)):this.mCellXfs.push(o)}},e.prototype.saveNumberFormats=function(){if(this.mNumFmt.size>=1){var e='<numFmts count="'+this.mNumFmt.size+'">';return this.mNumFmt.forEach(function(t,r){e+='<numFmt numFmtId="'+t.numFmtId+'" formatCode="'+t.formatCode.replace(/"/g,"&quot;")+'" />'}),e+="</numFmts>"}return""},e.prototype.saveFonts=function(){var e='<fonts count="'+this.mFonts.length+'">';if(this.mFonts.length>=1)for(var t=0,r=this.mFonts;t<r.length;t++){var o=r[t];e+="<font>",o.b&&(e+="<b />"),o.i&&(e+="<i />"),o.u&&(e+="<u />"),o.strike&&(e+="<strike />"),e+='<sz val="'+o.sz+'" />',e+='<color rgb="'+o.color+'" />',e+='<name val="'+o.name+'" /></font>'}return e+"</fonts>"},e.prototype.saveFills=function(){var e='<fills count="'+(this.mFills.size+2)+'"><fill><patternFill patternType="none"></patternFill></fill><fill><patternFill patternType="gray125"></patternFill></fill>';return this.mFills.size>=1&&this.mFills.forEach(function(t,r){e+='<fill><patternFill patternType="solid"><fgColor rgb="'+r+'" /><bgColor rgb="FFFFFFFF" /></patternFill></fill>'}),e+"</fills>"},e.prototype.saveBorders=function(){var e='<borders count="'+(this.mBorders.length+1)+'"><border><left /><right /><top /><bottom /><diagonal /></border>';if(this.mBorders.length>=1)for(var t=0,r=this.mBorders;t<r.length;t++){var o=r[t];if(this.isAllBorder(o)){var i=o.all.color.replace("#",""),n=o.all.lineStyle;e+='<border><left style="'+n+'"><color rgb="FF'+i+'" /></left><right style="'+n+'"><color rgb="FF'+i+'" /></right><top style="'+n+'"><color rgb="FF'+i+'" /></top><bottom style="'+n+'"><color rgb="FF'+i+'" /></bottom></border>'}else e+='<border><left style="'+o.left.lineStyle+'"><color rgb="FF'+o.left.color.replace("#","")+'" /></left><right style="'+o.right.lineStyle+'"><color rgb="FF'+o.right.color.replace("#","")+'" /></right><top style="'+o.top.lineStyle+'"><color rgb="FF'+o.top.color.replace("#","")+'" /></top><bottom style="'+o.bottom.lineStyle+'"><color rgb="FF'+o.bottom.color.replace("#","")+'" /></bottom></border>'}return e+"</borders>"},e.prototype.saveCellStyles=function(){var e=this,t='<cellStyles count="'+this.cellStyles.size+'">';return this.cellStyles.forEach(function(r,o){t+='<cellStyle name="'+o+'" xfId="'+e.cellStyles.get(o).xfId+'"',"Normal"===o&&(t+=' builtinId="0"'),t+=" />"}),t+="</cellStyles>"},e.prototype.saveCellStyleXfs=function(){var e='<cellStyleXfs count="'+(this.mCellStyleXfs.length+1)+'"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" />';if(this.mCellStyleXfs.length>=1)for(var t=0,r=this.mCellStyleXfs;t<r.length;t++){var o=r[t];e+='<xf numFmtId="'+o.numFmtId+'" fontId="'+o.fontId+'" fillId="'+o.fillId+'" borderId="'+o.borderId+'" ',void 0!==o.alignment?e+=">"+this.saveAlignment(o)+"</xf>":e+=" />"}return e+"</cellStyleXfs>"},e.prototype.saveCellXfs=function(){var e='<cellXfs count="'+(this.mCellXfs.length+1)+'"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" />';if(this.mCellXfs.length>=1)for(var t=0,r=this.mCellXfs;t<r.length;t++){var o=r[t];e+='<xf numFmtId="'+o.numFmtId+'" fontId="'+o.fontId+'" fillId="'+o.fillId+'" borderId="'+o.borderId+'" xfId="'+o.xfId+'" ',1===o.applyAlignment&&(e+='applyAlignment="1"'),e+=">"+this.saveAlignment(o)+"</xf>"}return e+"</cellXfs>"},e.prototype.saveAlignment=function(e){var t="<alignment ";return void 0!==e.alignment.horizontal&&(t+='horizontal="'+e.alignment.horizontal+'" '),void 0!==e.alignment.indent&&0!==e.alignment.indent?t+='indent="'+e.alignment.indent+'" ':void 0!==e.alignment.rotation&&0!==e.alignment.rotation&&(t+='textRotation="'+e.alignment.rotation+'" '),void 0!==e.alignment.vertical&&(t+='vertical="'+e.alignment.vertical+'" '),t+='wrapText="'+e.alignment.wrapText+'" />'},e.prototype.saveApp=function(e){var t='<?xml version="1.0" encoding="utf-8" standalone="yes"?><Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"><Application>Essential XlsIO</Application>';void 0!==e&&(void 0!==e.manager&&(t+="<Manager>"+e.manager+"</Manager>"),void 0!==e.company&&(t+="<Company>"+e.company+"</Company>")),this.addToArchive(t+"</Properties>","docProps/app.xml")},e.prototype.saveCore=function(e){var t=new Date,r='<?xml version="1.0" encoding="utf-8" standalone="yes"?><cp:coreProperties xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties">';void 0!==this.builtInProperties?(void 0!==e.author&&(r+="<dc:creator>"+e.author+"</dc:creator>"),void 0!==e.subject&&(r+="<dc:subject>"+e.subject+"</dc:subject>"),void 0!==e.category&&(r+="<cp:category>"+e.category+"</cp:category>"),void 0!==e.comments&&(r+="<dc:description>"+e.comments+"</dc:description>"),void 0!==e.title&&(r+="<dc:title>"+e.title+"</dc:title>"),void 0!==e.tags&&(r+="<cp:keywords>"+e.tags+"</cp:keywords>"),void 0!==e.status&&(r+="<cp:contentStatus>"+e.status+"</cp:contentStatus>"),void 0!==e.createdDate?r+='<dcterms:created xsi:type="dcterms:W3CDTF">'+e.createdDate.toISOString()+"</dcterms:created>":r+='<dcterms:created xsi:type="dcterms:W3CDTF">'+t.toISOString()+"</dcterms:created>",void 0!==e.modifiedDate?r+='<dcterms:modified xsi:type="dcterms:W3CDTF">'+e.modifiedDate.toISOString()+"</dcterms:modified>":r+='<dcterms:modified xsi:type="dcterms:W3CDTF">'+t.toISOString()+"</dcterms:modified>"):(r+='<dcterms:created xsi:type="dcterms:W3CDTF">'+t.toISOString()+"</dcterms:created>",r+='<dcterms:modified xsi:type="dcterms:W3CDTF">'+t.toISOString()+"</dcterms:modified>"),r+="</cp:coreProperties>",this.addToArchive(r,"docProps/core.xml")},e.prototype.saveTopLevelRelation=function(){this.addToArchive('<?xml version="1.0" encoding="utf-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" /><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml" /><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml" /></Relationships>',"_rels/.rels")},e.prototype.saveWorkbookRelation=function(){for(var e='<?xml version="1.0" encoding="utf-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">',t=this.worksheets.length,r=0,o=0;o<t;o++,r++)e+='<Relationship Id="rId'+(o+1).toString()+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet'+(o+1).toString()+'.xml" />';e+='<Relationship Id="rId'+(++r).toString()+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml" />',this.sharedStringCount>0&&(e+='<Relationship Id="rId'+(++r).toString()+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml" />'),this.addToArchive(e+"</Relationships>","xl/_rels/workbook.xml.rels")},e.prototype.saveContentType=function(){for(var e='<?xml version="1.0" encoding="utf-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="xml" ContentType="application/xml" /><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml" /><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml" />',t="",r=this.worksheets.length,o=0,i=0;i<r;i++)t+='<Override PartName="/xl/worksheets/sheet'+(i+1).toString()+'.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" />',void 0!=this.worksheets[i].images&&this.worksheets[i].images.length>0&&(t+='<Override PartName="/xl/drawings/drawing'+(++o).toString()+'.xml" ContentType="application/vnd.openxmlformats-officedocument.drawing+xml" />');this.imageCount>0&&(t+='<Default Extension="png" ContentType="image/png" />'),this.sharedStringCount>0&&(e+='<Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" />'),this.addToArchive(e+t+"</Types>","[Content_Types].xml")},e.prototype.addToArchive=function(e,r){if("string"==typeof e){var o=new Blob([e],{type:"text/plain"}),i=new t.ZipArchiveItem(o,r);this.mArchive.addItem(i)}else{i=new t.ZipArchiveItem(e,r);this.mArchive.addItem(i)}},e.prototype.processMergeCells=function(e,t,r){if(0!==e.rowSpan||0!==e.colSpan){var o=new T;o.x=e.index,o.width=e.colSpan,o.y=t,o.height=e.rowSpan;var i=this.getCellName(o.y,o.x),n=this.getCellName(t+o.height,e.index+o.width);o.ref=i+":"+n;r.add(o);var s={x:o.x,y:o.y},l={x:e.index+o.width,y:t+o.height};this.updatedMergedCellStyles(s,l,e)}return r},e.prototype.updatedMergedCellStyles=function(e,t,r){for(var o=e.x;o<=t.x;o++)for(var i=e.y;i<=t.y;i++)this.mergedCellsStyle.set(this.getCellName(i,o),{x:o,y:i,styleIndex:r.styleIndex})},e.prototype.dateToTicks=function(e,t,r){var o=[0,31,59,90,120,151,181,212,243,273,304,334,365],i=[0,31,60,91,121,152,182,213,244,274,305,335,366];if(e>=1&&e<=9999&&t>=1&&t<=12){var n=e-1;return 864e9*(365*n+(n/4|0)-(n/100|0)+(n/400|0)+(this.isLeapYear(e)?i:o)[t-1]+r-1)}throw new Error("Not a valid date")},e.prototype.timeToTicks=function(e,t,r){if(e>=0&&e<24&&t>=0&&t<60&&r>=0&&r<60)return 1e4*(3600*e+60*t+r)*1e3;throw new Error("Not valid time")},e.prototype.isLeapYear=function(e){return e%4==0&&(e%100!=0||e%400==0)},e.prototype.toOADate=function(e){var t=0;if(0===(t=this.dateToTicks(e.getFullYear(),e.getMonth()+1,e.getDate())+this.timeToTicks(e.getHours(),e.getMinutes(),e.getSeconds())))return 0;if(t<31241376e9)throw new Error("Arg_OleAutDateInvalid");return(t-599264352e9)/1e4/864e5},e}(),E=function(){function e(){}return e}();return e.Alignment=l,e.BlobHelper=O,e.Border=m,e.Borders=p,e.BuiltInProperties=E,e.Cell=c,e.CellStyle=i,e.CellStyleXfs=a,e.CellStyles=h,e.CellXfs=s,e.Cells=f,e.Column=v,e.CsvHelper=A,e.Font=n,e.FreezePane=I,e.Grouping=k,e.HyperLink=C,e.MergeCell=T,e.MergeCells=R,e.NumFmt=d,e.Row=y,e.Rows=x,e.ValueFormatter=P,e.Workbook=D,e.Worksheet=S,e.Worksheets=b,e}({},ej.compression,ej.base,ej.fileutils),this.ejs=ej;
this.ej=this.ej||{},this.ej.excelexport=function(e,t,r,o){"use strict";var i=function(){function e(){this.numFmtId=0,this.backColor="none",this.fontName="Calibri",this.fontSize=10.5,this.fontColor="#000000",this.italic=!1,this.bold=!1,this.underline=!1,this.strikeThrough=!1,this.wrapText=!1,this.hAlign="general",this.vAlign="bottom",this.indent=0,this.rotation=0,this.numberFormat="GENERAL",this.type="datetime",this.borders=new p,this.isGlobalStyle=!1}return e}(),n=function(){function e(){this.sz=10.5,this.name="Calibri",this.u=!1,this.b=!1,this.i=!1,this.color="FF000000",this.strike=!1}return e}(),s=function(){function e(){}return e}(),l=function(){function e(){}return e}(),a=function(){function e(){}return e}(),h=function(){function e(){this.name="Normal",this.xfId=0}return e}(),d=function(){function e(e,t){this.numFmtId=e,this.formatCode=t}return e}(),m=function(){function e(e,t){this.lineStyle=e,this.color=t}return e}(),p=function(){function e(){this.left=new m("none","#FFFFFF"),this.right=new m("none","#FFFFFF"),this.top=new m("none","#FFFFFF"),this.bottom=new m("none","#FFFFFF"),this.all=new m("none","#FFFFFF")}return e}(),u=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),c=function(){function e(){}return e}(),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.add=function(e){for(var r=!1,o=0,i=0,n=t;i<n.length;i++)n[i].index===e.index&&(t[o]=e,r=!0),o++;r||t.push(e)},t}return u(t,e),t}(Array),v=function(){function e(){}return e}(),g=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),y=function(){function e(){}return e}(),x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.add=function(e){t.push(e)},t}return g(t,e),t}(Array),w=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return w(t,e),t}(Array),F=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),S=function(){function e(){this.isSummaryRowBelow=!0,this.showGridLines=!0,this.enableRtl=!1}return e}(),C=function(){function e(){}return e}(),k=function(){function e(){}return e}(),I=function(){function e(){}return e}(),T=function(){function e(){}return e}(),R=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.add=function(e){for(var o=!1,i=0,n=0,s=r;n<s.length;n++){var l=s[n];if(t.isIntersecting(l,e)){var a=new T;a.x=Math.min(l.x,e.x),a.y=Math.min(l.Y,e.y),a.width=Math.max(l.Width+l.X,e.width+e.x),a.height=Math.max(l.Height+l.Y,e.height+e.y),a.ref=r[i].ref.split(":")[0]+":"+e.ref.split(":")[1],r[i]=a,e=a,o=!0}i++}return o||r.push(e),e},r}return F(t,e),t.isIntersecting=function(e,t){return e.x<=t.x+t.width&&t.x<=e.x+e.width&&e.y<=t.y+t.height&&t.y<=e.y+e.height},t}(Array),N=function(){function e(){}return e}(),P=function(){function e(e){this.intl=new r.Internationalization}return e.prototype.getFormatFunction=function(e,t){return e.type?(t&&(e.isServerRendered=!0),this.intl.getDateFormat(e)):this.intl.getNumberFormat(e)},e.prototype.toView=function(e,t){var o=e;return r.isNullOrUndefined(t)||r.isNullOrUndefined(e)||(o=t(e)),o},e.prototype.displayText=function(e,t,r){return this.toView(e,this.getFormatFunction(t,r))},e}(),A=function(){function e(e,t){if(this.csvStr="",this.separator=null===t||void 0===t?",":t,this.formatter=new P,this.isMicrosoftBrowser=!!navigator.msSaveBlob,null!==e.isServerRendered&&void 0!==e.isServerRendered&&(this.isServerRendered=e.isServerRendered),null!==e.styles&&void 0!==e.styles){this.globalStyles=new Map;for(var r=0;r<e.styles.length;r++)void 0!==e.styles[r].name&&void 0!==e.styles[r].numberFormat&&this.globalStyles.set(e.styles[r].name,e.styles[r].numberFormat)}null!==e.worksheets&&void 0!==e.worksheets&&this.parseWorksheet(e.worksheets[0])}return e.prototype.parseWorksheet=function(e){null!==e.rows&&void 0!==e.rows&&this.parseRows(e.rows)},e.prototype.parseRows=function(e){for(var t=1,r=0,o=e;r<o.length;r++){var i=o[r];if(null===i.index||void 0===i.index)throw Error("Row index is missing.");for(;t<i.index;)this.csvStr+="\r\n",t++;this.parseRow(i)}this.csvStr+="\r\n"},e.prototype.parseRow=function(e){if(null!==e.cells&&void 0!==e.cells)for(var t=1,r=0,o=e.cells;r<o.length;r++){var i=o[r];if(null===i.index||void 0===i.index)throw Error("Cell index is missing.");for(;t<i.index;)this.csvStr+=this.separator,t++;this.parseCell(i)}},e.prototype.parseCell=function(e){var t=this.csvStr;if(void 0!==e.value)if(e.value instanceof Date)if(void 0!==e.style&&void 0!==e.style.numberFormat)try{t+=this.parseCellValue(this.formatter.displayText(e.value,{type:"dateTime",skeleton:e.style.numberFormat},this.isServerRendered))}catch(r){t+=this.parseCellValue(this.formatter.displayText(e.value,{type:"dateTime",format:e.style.numberFormat},this.isServerRendered))}else if(void 0!==e.style&&void 0!==e.style.name&&this.globalStyles.has(e.style.name))try{t+=this.parseCellValue(this.formatter.displayText(e.value,{type:"dateTime",skeleton:this.globalStyles.get(e.style.name)},this.isServerRendered))}catch(r){t+=this.parseCellValue(this.formatter.displayText(e.value,{type:"dateTime",format:this.globalStyles.get(e.style.name)},this.isServerRendered))}else t+=e.value;else"boolean"==typeof e.value?t+=e.value?"TRUE":"FALSE":"number"==typeof e.value?void 0!==e.style&&void 0!==e.style.numberFormat?t+=this.parseCellValue(this.formatter.displayText(e.value,{format:e.style.numberFormat,ignoreCurrency:!0},this.isServerRendered)):void 0!==e.style&&void 0!==e.style.name&&this.globalStyles.has(e.style.name)?t+=this.parseCellValue(this.formatter.displayText(e.value,{format:this.globalStyles.get(e.style.name),ignoreCurrency:!0},this.isServerRendered)):t+=e.value:t+=this.parseCellValue(e.value);this.csvStr=t},e.prototype.parseCellValue=function(e){for(var t="",r=e.length,o=0;o<r;o++)'"'===e[o]?t+=e[o].replace('"','""'):t+=e[o];return e=t,-1!==e.indexOf(this.separator)||-1!==e.indexOf("\n")||-1!==e.indexOf('"')?e='"'+e+'"':e},e.prototype.save=function(e){if(this.buffer=new Blob(["\ufeff"+this.csvStr],{type:"text/csv;charset=UTF-8"}),this.isMicrosoftBrowser)navigator.msSaveBlob(this.buffer,e);else{var t=window.URL.createObjectURL(this.buffer),r=document.createElementNS("http://www.w3.org/1999/xhtml","a");r.download=e,r.href=t;var o=document.createEvent("MouseEvent");o.initEvent("click",!0,!0),r.dispatchEvent(o),setTimeout(function(){window.URL.revokeObjectURL(t)})}},e.prototype.saveAsBlob=function(e){if(void 0!=e){var t=new o.Encoding,r="UTF-8";"ANSI"==e.toUpperCase()?(t.type="Ansi",r="ANSI"):"UNICODE"==e.toUpperCase()?(t.type="Unicode",r="UNICODE"):(t.type="Utf8",r="UTF-8");var i=t.getBytes(this.csvStr,0,this.csvStr.length);return new Blob([i],{type:"text/csv;charset="+r})}return new Blob(["\ufeff"+this.csvStr],{type:"text/csv;charset=UTF-8"})},e}(),O=function(){function e(){this.parts=[]}return e.prototype.append=function(e){this.parts.push(e),this.blob=void 0},e.prototype.getBlob=function(){return new Blob(this.parts,{type:"text/plain"})},e}(),B=function(){function e(){}return e}(),D=function(){function e(e,o,s,l,a){if(this.sharedStringCount=0,this.unitsProportions=[1.28,.32,96,96/25.4,96/2.54,1,96/72,96/72/12700],this.hyperlinkStyle={fontColor:"#0000FF",underline:!0},this.culture=void 0!==s?s:"en-US",this.currency=void 0!==l?l:"USD",this.intl=new r.Internationalization(this.culture),this.mSaveType=o,"xlsx"===o){if(this.mArchive=new t.ZipArchive,this.sharedString=[],this.mFonts=[],this.mBorders=[],this.mStyles=[],this.printTitles=new Map,this.cellStyles=new Map,this.mNumFmt=new Map,this.mFills=new Map,this.mStyles.push(new i),this.mFonts.push(new n),this.cellStyles.set("Normal",new h),this.mCellXfs=[],this.mCellStyleXfs=[],this.drawingCount=0,this.imageCount=0,null!==e.styles&&void 0!==e.styles){this.globalStyles=new Map;for(var d=0;d<e.styles.length;d++)if(void 0!==e.styles[d].name){if(this.cellStyles.has(e.styles[d].name))throw Error("Style name "+e.styles[d].name+" is already existed");var m=new i;m.isGlobalStyle=!0,this.parserCellStyle(e.styles[d],m,"none");var p=new h;p.name=m.name,p.xfId=m.index-1,this.cellStyles.set(p.name,p);var u={};void 0!==e.styles[d].numberFormat&&(u.format=e.styles[d].numberFormat),void 0!==e.styles[d].type?u.type=e.styles[d].type:u.type="datetime",void 0!==u.format&&this.globalStyles.set(e.styles[d].name,u)}}if(null===e.worksheets||void 0===e.worksheets)throw Error("Worksheet is expected.");this.parserWorksheets(e.worksheets),null!==e.builtInProperties&&void 0!==e.builtInProperties&&(this.builtInProperties=new E,this.parserBuiltInProperties(e.builtInProperties,this.builtInProperties))}else this.csvHelper=new A(e,a)}return e.prototype.parserBuiltInProperties=function(e,t){null!==e.author&&void 0!==e.author&&(t.author=e.author),null!==e.comments&&void 0!==e.comments&&(t.comments=e.comments),null!==e.category&&void 0!==e.category&&(t.category=e.category),null!==e.company&&void 0!==e.company&&(t.company=e.company),null!==e.manager&&void 0!==e.manager&&(t.manager=e.manager),null!==e.subject&&void 0!==e.subject&&(t.subject=e.subject),null!==e.title&&void 0!==e.title&&(t.title=e.title),null!==e.createdDate&&void 0!==e.createdDate&&(t.createdDate=e.createdDate),null!==e.modifiedDate&&void 0!==e.modifiedDate&&(t.modifiedDate=e.modifiedDate),null!==e.tags&&void 0!==e.tags&&(t.tags=e.tags),null!==e.status&&void 0!==e.status&&(t.status=e.status)},e.prototype.parserWorksheets=function(e){this.worksheets=new b;for(var t=e.length,r=0;r<t;r++){var o=e[r],i=new S;this.mergeCells=new R,this.mergedCellsStyle=new Map,this.mHyperLinks=[],null!==o.name&&void 0!==o.name?i.name=o.name:i.name="Sheet"+(r+1).toString(),null!==o.enableRtl&&void 0!==o.enableRtl&&(i.enableRtl=o.enableRtl),i.index=r+1,null!==o.columns&&void 0!==o.columns&&this.parserColumns(o.columns,i),null!==o.rows&&void 0!==o.rows&&this.parserRows(o.rows,i),null!==o.showGridLines&&void 0!==o.showGridLines&&(i.showGridLines=o.showGridLines),null!==o.freeze&&void 0!==o.freeze&&this.parserFreezePanes(o.freeze,i),null!==o.printTitle&&void 0!==o.printTitle&&this.parserPrintTitle(o.printTitle,i),void 0!==o.pageSetup&&void 0!==o.pageSetup.isSummaryRowBelow&&(i.isSummaryRowBelow=o.pageSetup.isSummaryRowBelow),void 0!==o.images&&this.parserImages(o.images,i),null!==o.autoFilters&&void 0!==o.autoFilters&&this.parseFilters(o.autoFilters,i),i.index=r+1,i.mergeCells=this.mergeCells,i.hyperLinks=this.mHyperLinks,this.worksheets.push(i)}},e.prototype.mergeOptions=function(e,t){var r={};return this.applyProperties(e,r),this.applyProperties(t,r),r},e.prototype.applyProperties=function(e,t){for(var r=Object.keys(e),o=0;o<r.length;o++)"name"!==r[o]&&(t[r[o]]=e[r[o]])},e.prototype.getCellName=function(e,t){return this.getColumnName(t)+e.toString()},e.prototype.getColumnName=function(e){e--;var t="";do{var r=e%26;e=e/26-1,t=String.fromCharCode(65+r)+t}while(e>=0);return t},e.prototype.parserPrintTitle=function(e,t){var r,o="";if(null!==e.fromRow&&void 0!==e.fromRow){r="$"+e.fromRow+":$"+(null!==e.toRow&&void 0!==e.toRow?e.toRow:e.fromRow)}var i;if(null!==e.fromColumn&&void 0!==e.fromColumn){var n=e.fromColumn,s=void 0;s=null!==e.toColumn&&void 0!==e.toColumn?e.toColumn:e.fromColumn,i="$"+this.getColumnName(n)+":$"+this.getColumnName(s)}void 0!==r&&(o+=t.name+"!"+r),void 0!==i&&void 0!==r?o+=","+t.name+"!"+i:void 0!==i&&(o+=t.name+"!"+i),""!==o&&this.printTitles.set(t.index-1,o)},e.prototype.parserFreezePanes=function(e,t){t.freezePanes=new I,null!==e.row&&void 0!==e.row?t.freezePanes.row=e.row:t.freezePanes.row=0,null!==e.column&&void 0!==e.column?t.freezePanes.column=e.column:t.freezePanes.column=0,t.freezePanes.leftCell=this.getCellName(t.freezePanes.row+1,t.freezePanes.column+1)},e.prototype.parserColumns=function(e,t){var r=e.length;t.columns=[];for(var o=0;o<r;o++){var i=new v;if(null===e[o].index||void 0===e[o].index)throw Error("Column index is missing.");i.index=e[o].index,null!==e[o].width&&void 0!==e[o].width&&(i.width=e[o].width),t.columns.push(i)}},e.prototype.parserRows=function(e,t){var r=e.length;t.rows=new x;for(var o=0,i=0;i<r;i++){var n=this.parserRow(e[i],o);o=n.index,t.rows.add(n)}this.insertMergedCellsStyle(t)},e.prototype.insertMergedCellsStyle=function(e){var t=this;this.mergeCells.length>0&&this.mergedCellsStyle.forEach(function(o,i){var n=e.rows.filter(function(e){return e.index===o.y})[0];if(r.isNullOrUndefined(n)){var s=e.rows.filter(function(e){return e.index<=o.y}),l=new y;l.index=o.y,l.cells=new f,l.cells.add(t.createCell(o,i));d=0;s.length>0&&(d=e.rows.indexOf(s[s.length-1])+1),e.rows.splice(d,0,l)}else{var a=n.cells.filter(function(e){return e.index===o.x})[0];if(r.isNullOrUndefined(a)){var h=n.cells.filter(function(e){return e.index<=o.x}),d=0;h.length>0&&(d=n.cells.indexOf(h[h.length-1])+1),n.cells.splice(d,0,t.createCell(o,i))}else a.styleIndex=o.styleIndex}})},e.prototype.createCell=function(e,t){var r=new c;return r.refName=t,r.index=e.x,r.cellStyle=new i,r.styleIndex=e.styleIndex,r},e.prototype.parserRow=function(e,t){var r=new y;if(null!==e.height&&void 0!==e.height&&(r.height=e.height),null===e.index||void 0===e.index)throw Error("Row index is missing.");return r.index=e.index,null!==e.grouping&&void 0!==e.grouping&&this.parseGrouping(e.grouping,r),this.parseCells(e.cells,r),r},e.prototype.parseGrouping=function(e,t){t.grouping=new k,void 0!==e.outlineLevel&&(t.grouping.outlineLevel=e.outlineLevel),void 0!==e.isCollapsed&&(t.grouping.isCollapsed=e.isCollapsed),void 0!==e.isHidden&&(t.grouping.isHidden=e.isHidden)},e.prototype.parseCells=function(e,t){t.cells=new f;for(var r=void 0!==e?e.length:0,o=1,n=1,s=0;s<r;s++){var l=e[s],a=new c;if(null===l.index||void 0===l.index)throw Error("Cell index is missing.");if(a.index=l.index,a.index<o?o=a.index:a.index>n&&(n=a.index),a.refName=this.getCellName(t.index,a.index),null!==l.rowSpan&&void 0!==l.rowSpan?a.rowSpan=l.rowSpan-1:a.rowSpan=0,null!==l.colSpan&&void 0!==l.colSpan?a.colSpan=l.colSpan-1:a.colSpan=0,null!==l.hyperlink&&void 0!==l.hyperlink){var h=new C;void 0!==l.hyperlink.target&&(h.target=l.hyperlink.target,void 0!==l.hyperlink.displayText?a.value=l.hyperlink.displayText:a.value=l.hyperlink.target,a.type=this.getCellValueType(a.value),h.ref=a.refName,h.rId=this.mHyperLinks.length+1,this.mHyperLinks.push(h),a.cellStyle=new i,this.parserCellStyle(void 0!==l.style?this.mergeOptions(l.style,this.hyperlinkStyle):this.hyperlinkStyle,a.cellStyle,"string"),a.styleIndex=a.cellStyle.index)}null!==l.formula&&void 0!==l.formula&&(a.formula=l.formula,a.type="formula"),null!==l.value&&void 0!==l.value&&(void 0!==a.formula?a.value=0:(a.value=l.value,a.type=this.getCellValueType(a.value))),null!==l.style&&void 0!==l.style&&void 0===a.styleIndex?(a.cellStyle=new i,a.value instanceof Date?this.parserCellStyle(l.style,a.cellStyle,a.type,14):this.parserCellStyle(l.style,a.cellStyle,a.type),a.styleIndex=a.cellStyle.index):a.value instanceof Date&&(a.cellStyle=new i,this.parserCellStyle({},a.cellStyle,a.type,14),a.styleIndex=a.cellStyle.index),this.parseCellType(a),this.mergeCells=this.processMergeCells(a,t.index,this.mergeCells),t.cells.add(a),a.index+1}t.spans=o+":"+n},e.prototype.GetColors=function(){var e;return(e=new Map).set("WHITE","FFFFFFFF"),e.set("SILVER","FFC0C0C0"),e.set("GRAY","FF808080"),e.set("BLACK","FF000000"),e.set("RED","FFFF0000"),e.set("MAROON","FF800000"),e.set("YELLOW","FFFFFF00"),e.set("OLIVE","FF808000"),e.set("LIME","FF00FF00"),e.set("GREEN","FF008000"),e.set("AQUA","FF00FFFF"),e.set("TEAL","FF008080"),e.set("BLUE","FF0000FF"),e.set("NAVY","FF000080"),e.set("FUCHSIA","FFFF00FF"),e.set("PURPLE","FF800080"),e},e.prototype.processColor=function(e){return 0===e.indexOf("#")?e.replace("#","FF"):(e=e.toUpperCase(),this.rgbColors=this.GetColors(),e=this.rgbColors.has(e)?this.rgbColors.get(e):"FF000000")},e.prototype.processCellValue=function(e,t){var r=e;if(-1!==e.indexOf("<font")||-1!==e.indexOf("<a")||-1!==e.indexOf("<b>")||-1!==e.indexOf("<i>")||-1!==e.indexOf("<u>")){var o="",i=e.indexOf("<",0),n=e.indexOf(">",i+1);if(i>=0&&n>=0){for(0!==i&&(o+='<r><t xml:space="preserve">'+this.processString(e.substring(0,i))+"</t></r>");i>=0&&n>=0;)if((n=e.indexOf(">",i+1))>=0){var s=e.substring(i+1,n);(i=e.indexOf("<",n+1))<0&&(i=r.length);var l=r.substring(n+1,i);if(0!==l.length){var a=s.split(" ");if(a.length>0&&(o+="<r><rPr>"),a.length>1)for(var h=0,d=a;h<d.length;h++){var m=d[h];switch(m.trim().substring(0,5)){case"size=":o+='<sz val="'+m.substring(6,m.length-1)+'"/>';break;case"face=":o+='<rFont val="'+m.substring(6,m.length-1)+'"/>';break;case"color":o+='<color rgb="'+this.processColor(m.substring(7,m.length-1))+'"/>';break;case"href=":var p=new C;p.target=m.substring(6,m.length-1).trim(),p.ref=t.refName,p.rId=this.mHyperLinks.length+1,this.mHyperLinks.push(p),o+='<color rgb="FF0000FF"/><u/><b/>'}}else if(1===a.length)switch(a[0].trim()){case"b":o+="<b/>";break;case"i":o+="<i/>";break;case"u":o+="<u/>"}o+='</rPr><t xml:space="preserve">'+this.processString(l)+"</t></r>"}}return""===o?r:o}return r}return r},e.prototype.applyGlobalStyle=function(e,t){this.cellStyles.has(e.name)&&(t.index=this.mStyles.filter(function(t){return t.name===e.name})[0].index,t.name=e.name)},e.prototype.parserCellStyle=function(e,t,r,o){if(null!==e.name&&void 0!==e.name){if(!t.isGlobalStyle)return void this.applyGlobalStyle(e,t);t.name=e.name}null!==e.backColor&&void 0!==e.backColor&&(t.backColor=e.backColor),t.borders=new p,null!==e.borders&&void 0!==e.borders&&this.parserBorder(e.borders,t.borders.all),null!==e.leftBorder&&void 0!==e.leftBorder&&this.parserBorder(e.leftBorder,t.borders.left),null!==e.rightBorder&&void 0!==e.rightBorder&&this.parserBorder(e.rightBorder,t.borders.right),null!==e.topBorder&&void 0!==e.topBorder&&this.parserBorder(e.topBorder,t.borders.top),null!==e.bottomBorder&&void 0!==e.bottomBorder&&this.parserBorder(e.bottomBorder,t.borders.bottom),null!==e.fontName&&void 0!==e.fontName&&(t.fontName=e.fontName),null!==e.fontSize&&void 0!==e.fontSize&&(t.fontSize=e.fontSize),null!==e.fontColor&&void 0!==e.fontColor&&(t.fontColor=e.fontColor),null!==e.italic&&void 0!==e.italic&&(t.italic=e.italic),null!==e.bold&&void 0!==e.bold&&(t.bold=e.bold),null!==e.hAlign&&void 0!==e.hAlign&&(t.hAlign=e.hAlign.toLowerCase()),null!==e.indent&&void 0!==e.indent&&(t.indent=e.indent,"left"!==t.hAlign&&"right"!==t.hAlign&&(t.hAlign="left")),null!==e.rotation&&void 0!==e.rotation&&(t.rotation=e.rotation),null!==e.vAlign&&void 0!==e.vAlign&&(t.vAlign=e.vAlign.toLowerCase()),null!==e.underline&&void 0!==e.underline&&(t.underline=e.underline),null!==e.strikeThrough&&void 0!==e.strikeThrough&&(t.strikeThrough=e.strikeThrough),null!==e.wrapText&&void 0!==e.wrapText&&(t.wrapText=e.wrapText),null!==e.numberFormat&&void 0!==e.numberFormat?null!==e.type&&void 0!==e.type?t.numberFormat=this.getNumberFormat(e.numberFormat,e.type):t.numberFormat=this.getNumberFormat(e.numberFormat,r):void 0!==o?(t.numFmtId=14,t.numberFormat="GENERAL"):t.numberFormat="GENERAL",t.index=this.processCellStyle(t)},e.prototype.switchNumberFormat=function(e,t){var r=this.getNumberFormat(e,t);if(r!==e){var o=this.mNumFmt.get(e);if(void 0!==o&&(o.formatCode=r,this.mNumFmt.has(r))){for(var i=0,n=this.mCellStyleXfs;i<n.length;i++){var s=n[i];s.numFmtId===o.numFmtId&&(s.numFmtId=this.mNumFmt.get(r).numFmtId)}for(var l=0,a=this.mCellXfs;l<a.length;l++){var h=a[l];h.numFmtId===o.numFmtId&&(h.numFmtId=this.mNumFmt.get(r).numFmtId)}}}},e.prototype.changeNumberFormats=function(e){if("string"==typeof e){var t=new RegExp(this.currency,"g");e=e.replace(t,"[$"+this.currency+"]")}else if("object"==typeof e)for(var r=0;r<e.length;r++)e[r]=e[r].replace(this.currency,"[$"+this.currency+"]");return e},e.prototype.getNumberFormat=function(e,t){var r;switch(t){case"number":try{r=this.intl.getNumberPattern({format:e,currency:this.currency,useGrouping:!0},!0),this.currency.length>1&&(r=this.changeNumberFormats(r))}catch(t){r=e}break;case"datetime":try{r=this.intl.getDatePattern({skeleton:e,type:"dateTime"},!0)}catch(t){try{r=this.intl.getDatePattern({format:e,type:"dateTime"},!0)}catch(t){r=e}}break;case"date":try{r=this.intl.getDatePattern({skeleton:e,type:"date"},!0)}catch(t){try{r=this.intl.getDatePattern({format:e,type:"date"},!0)}catch(t){r=e}}break;case"time":try{r=this.intl.getDatePattern({skeleton:e,type:"time"},!0)}catch(t){try{r=this.intl.getDatePattern({format:e,type:"time"},!0)}catch(t){r=e}}break;default:r=e}return r},e.prototype.parserBorder=function(e,t){null!==e.color&&void 0!==e.color?t.color=e.color:t.color="#000000",null!==e.lineStyle&&void 0!==e.lineStyle?t.lineStyle=e.lineStyle:t.lineStyle="thin"},e.prototype.processCellStyle=function(e){if(e.isGlobalStyle)return this.processNumFormatId(e),this.mStyles.push(e),this.mStyles.length;var t=this.compareStyle(e);return t.result?t.index:(this.processNumFormatId(e),this.mStyles.push(e),this.mStyles.length)},e.prototype.processNumFormatId=function(e){if("GENERAL"!==e.numberFormat&&!this.mNumFmt.has(e.numberFormat)){var t=this.mNumFmt.size+164;this.mNumFmt.set(e.numberFormat,new d(t,e.numberFormat))}},e.prototype.isNewFont=function(e){for(var t=!1,r=0,o=0,i=this.mFonts;o<i.length;o++){var n=i[o];r++;var s=void 0;if(void 0!==e.fontColor&&(s="FF"+e.fontColor.replace("#","")),t=n.color===s&&n.b===e.bold&&n.i===e.italic&&n.u===e.underline&&n.strike===e.strikeThrough&&n.name===e.fontName&&n.sz===e.fontSize)break}return r-=1,{index:r,result:t}},e.prototype.isNewBorder=function(e){var t=new i;return this.isAllBorder(e.borders)?t.borders.all.color===e.borders.all.color&&t.borders.all.lineStyle===e.borders.all.lineStyle:t.borders.left.color===e.borders.left.color&&t.borders.left.lineStyle===e.borders.left.lineStyle&&t.borders.right.color===e.borders.right.color&&t.borders.right.lineStyle===e.borders.right.lineStyle&&t.borders.top.color===e.borders.top.color&&t.borders.top.lineStyle===e.borders.top.lineStyle&&t.borders.bottom.color===e.borders.bottom.color&&t.borders.bottom.lineStyle===e.borders.bottom.lineStyle},e.prototype.isAllBorder=function(e){var t=new i;return t.borders.all.color!==e.all.color&&t.borders.all.lineStyle!==e.all.lineStyle},e.prototype.compareStyle=function(e){for(var t=!0,r=0,o=0,i=this.mStyles;o<i.length;o++){var n=i[o];if(t=!n.isGlobalStyle&&(n.backColor===e.backColor&&n.bold===e.bold&&n.numFmtId===e.numFmtId&&n.numberFormat===e.numberFormat&&n.type===e.type&&n.fontColor===e.fontColor&&n.fontName===e.fontName&&n.fontSize===e.fontSize&&n.hAlign===e.hAlign&&n.italic===e.italic&&n.underline===e.underline&&n.strikeThrough===e.strikeThrough&&n.vAlign===e.vAlign&&n.indent===e.indent&&n.rotation===e.rotation&&n.wrapText===e.wrapText&&n.borders.all.color===e.borders.all.color&&n.borders.all.lineStyle===e.borders.all.lineStyle&&n.borders.left.color===e.borders.left.color&&n.borders.left.lineStyle===e.borders.left.lineStyle&&n.borders.right.color===e.borders.right.color&&n.borders.right.lineStyle===e.borders.right.lineStyle&&n.borders.top.color===e.borders.top.color&&n.borders.top.lineStyle===e.borders.top.lineStyle&&n.borders.bottom.color===e.borders.bottom.color&&n.borders.bottom.lineStyle===e.borders.bottom.lineStyle)){r=n.index;break}}return{index:r,result:t}},e.prototype.contains=function(e,t){var r=e.indexOf(t);return r>-1&&r<e.length},e.prototype.getCellValueType=function(e){return e instanceof Date?"datetime":"boolean"==typeof e?"boolean":"number"==typeof e?"number":"string"},e.prototype.parseCellType=function(e){var t,r=e.type,o=e.value;switch(r){case"datetime":if(o=this.toOADate(o),void 0!==e.cellStyle&&void 0!==e.cellStyle.name&&this.globalStyles.has(e.cellStyle.name)){var i=this.globalStyles.get(e.cellStyle.name);this.switchNumberFormat(i.format,i.type)}t="n";break;case"boolean":o=o?1:0,t="b";break;case"number":t="n",void 0!==e.cellStyle&&void 0!==e.cellStyle.name&&this.globalStyles.has(e.cellStyle.name)&&this.switchNumberFormat(this.globalStyles.get(e.cellStyle.name).format,"number");break;case"string":this.sharedStringCount++,t="s";var n=this.processCellValue(o,e);this.contains(this.sharedString,n)||this.sharedString.push(n),o=this.sharedString.indexOf(n)}e.saveType=t,e.value=o},e.prototype.parserImages=function(e,t){var r=e.length;t.images=[];for(var o=0;o<r;o++){var i=this.parserImage(e[o]);t.images.push(i)}},e.prototype.parseFilters=function(e,t){if(t.autoFilters=new B,null===e.row||void 0===e.row)throw new Error("Argument Null Exception: row null or empty");if(t.autoFilters.row=e.row,null===e.lastRow||void 0===e.lastRow)throw new Error("Argument Null Exception: lastRow cannot be null or empty");if(t.autoFilters.lastRow=e.lastRow,null===e.column||void 0===e.column)throw new Error("Argument Null Exception: column cannot be null or empty");if(t.autoFilters.column=e.column,null===e.lastColumn||void 0===e.row)throw new Error("Argument Null Exception: lastColumn cannot be null or empty");t.autoFilters.lastColumn=e.lastColumn},e.prototype.parserImage=function(e){var t=new N;return null!==e.image&&void 0!==e.image&&(t.image=e.image),null!==e.row&&void 0!==e.row&&(t.row=e.row),null!==e.column&&void 0!==e.column&&(t.column=e.column),null!==e.lastRow&&void 0!==e.lastRow&&(t.lastRow=e.lastRow),null!==e.lastColumn&&void 0!==e.lastColumn&&(t.lastColumn=e.lastColumn),null!==e.width&&void 0!==e.width&&(t.width=e.width),null!==e.height&&void 0!==e.height&&(t.height=e.height),null!==e.horizontalFlip&&void 0!==e.horizontalFlip&&(t.horizontalFlip=e.horizontalFlip),null!==e.verticalFlip&&void 0!==e.verticalFlip&&(t.verticalFlip=e.verticalFlip),null!==e.rotation&&void 0!==e.rotation&&(t.rotation=e.rotation),t},e.prototype.saveAsBlob=function(e,t){var r=this;switch(e){case"text/csv":return new Promise(function(e,o){var i={};i.blobData=r.csvHelper.saveAsBlob(t),e(i)});default:return new Promise(function(e,t){r.saveInternal(),r.mArchive.saveAsBlob().then(function(t){var r={};r.blobData=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),e(r)})})}},e.prototype.save=function(e,t){var r=this;if(null===e||void 0===e||""===e)throw new Error("Argument Null Exception: fileName cannot be null or empty");var o=e.match(".xlsx$"),i=e.match(".csv$");if(null!==o&&o[0]==="."+this.mSaveType)this.saveInternal(),this.mArchive.save(e).then(function(){r.mArchive.destroy()});else{if(null===i||i[0]!=="."+this.mSaveType)throw Error("Save type and file extension is different.");this.csvHelper.save(e)}},e.prototype.saveInternal=function(){this.saveWorkbook(),this.saveWorksheets(),this.saveSharedString(),this.saveStyles(),this.saveApp(this.builtInProperties),this.saveCore(this.builtInProperties),this.saveContentType(),this.saveTopLevelRelation(),this.saveWorkbookRelation()},e.prototype.saveWorkbook=function(){for(var e='<?xml version="1.0" encoding="utf-8"?><workbook xmlns:r = "http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns= "http://schemas.openxmlformats.org/spreadsheetml/2006/main"><workbookPr codeName="ThisWorkbook" defaultThemeVersion= "153222"/><bookViews><workbookView activeTab="0"/></bookViews>',t="<sheets>",r=this.worksheets.length,o=0;o<r;o++){var i=this.worksheets[o].name;t+='<sheet name="'+(i=(i=(i=(i=i.replace("&","&amp;")).replace("<","&lt;")).replace(">","&gt;")).replace('"',"&quot;"))+'" sheetId="'+(o+1).toString()+'" r:id ="rId'+(o+1).toString()+'" />'}if(t+="</sheets>",e+=t,this.printTitles.size>0){var n="<definedNames>";this.printTitles.forEach(function(e,t){n+='<definedName name="_xlnm.Print_Titles" localSheetId="'+t+'">'+e+"</definedName>"}),e+=n+="</definedNames>"}this.addToArchive(e+"</workbook>","xl/workbook.xml")},e.prototype.saveWorksheets=function(){for(var e=this.worksheets.length,t=0;t<e;t++)this.saveWorksheet(this.worksheets[t],t)},e.prototype.saveWorksheet=function(e,t){var o=new O,i='<?xml version="1.0" encoding="utf-8" standalone="yes"?><worksheet xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">';if(e.isSummaryRowBelow?i+="<sheetPr />":i+='<sheetPr><outlinePr summaryBelow="0" ></outlinePr></sheetPr>',i+=this.saveSheetView(e),void 0!==e.columns){for(var n="<cols>",s=0,l=e.columns;s<l.length;s++){var a=l[s];void 0!==a.width?n+='<col min="'+a.index+'" max="'+a.index+'" width="'+this.pixelsToColumnWidth(a.width)+'" customWidth="1" />':n+='<col min="'+a.index+'" max="'+a.index+'" width="8.43" customWidth="1" />'}i+=n+"</cols>"}if(i+="<sheetData>",o.append(i),i="",void 0!==e.rows)for(var h=0,d=e.rows;h<d.length;h++){var m=d[h],p='<row r="'+m.index+'" ';r.isNullOrUndefined(m.spans)||(p+='spans="'+m.spans+'" '),void 0!==m.height&&(p+='ht="'+this.pixelsToRowHeight(m.height)+'" customHeight="1" '),void 0!==m.grouping&&(m.grouping.isHidden&&(p+='hidden="1" '),void 0!==m.grouping.outlineLevel&&(p+='outlineLevel="'+m.grouping.outlineLevel+'" '),m.grouping.isCollapsed&&(p+='collapsed="1" ')),p+=">";for(var u=0,c=m.cells;u<c.length;u++){var f=c[u];void 0===f||void 0===f.value&&void 0===f.cellStyle||(p+='<c r="'+f.refName+'" ',void 0!==f.saveType&&(p+='t="'+f.saveType+'" '),void 0!==f.styleIndex&&(p+='s="'+f.styleIndex+'" '),p+=" >",void 0!==f.formula&&(p+="<f>"+f.formula+"</f>"),void 0!==f.value?p+="<v>"+f.value+"</v></c>":p+="</c>")}p+="</row>",o.append(p)}if(i+="</sheetData>",null!==e.autoFilters&&void 0!==e.autoFilters&&(i+='<autoFilter ref="'+this.getCellName(e.autoFilters.row,e.autoFilters.column)+":"+this.getCellName(e.autoFilters.lastRow,e.autoFilters.lastColumn)+'"/>'),e.mergeCells.length>0){i+='<mergeCells count="'+e.mergeCells.length+'">';for(var v=0,g=e.mergeCells;v<g.length;v++)i+='<mergeCell ref="'+g[v].ref+'" />';i+="</mergeCells>"}if(e.hyperLinks.length>0){i+="<hyperlinks>";for(var y=0,x=e.hyperLinks;y<x.length;y++){var w=x[y];i+='<hyperlink ref="'+w.ref+'" r:id="rId'+w.rId+'" />'}i+="</hyperlinks>"}i+='<pageMargins left="0.75" right="0.75" top="1" bottom="1" header="0.5" footer="0.5" /><headerFooter scaleWithDoc="1" alignWithMargins="0" differentFirst="0" differentOddEven="0" />',void 0!=e.images&&e.images.length>0&&(this.drawingCount++,this.saveDrawings(e,e.index),i+='<drawing r:id="rId'+(e.hyperLinks.length+1)+'"/>'),this.addToArchive(this.saveSheetRelations(e),"xl/worksheets/_rels/sheet"+e.index+".xml.rels"),o.append(i+"</worksheet>"),this.addToArchive(o.getBlob(),"xl/worksheets/sheet"+(t+1)+".xml")},e.prototype.saveDrawings=function(e,t){var r=new O,o='<xdr:wsDr xmlns:xdr="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">';if(void 0!==e.images){for(var i=0,n=0,s=e.images;n<s.length;n++){var l=s[n];void 0!==l.height&&void 0!==l.width?(this.updatelastRowOffset(e,l),this.updatelastColumnOffSet(e,l),l.lastRow-=1,l.lastColumn-=1):void 0!==l.lastRow&&void 0!==l.lastColumn&&(l.lastRowOffset=0,l.lastColOffset=0),i++,o+='<xdr:twoCellAnchor editAs="oneCell">',o+="<xdr:from><xdr:col>",o+=l.column-1,o+="</xdr:col><xdr:colOff>",o+=0,o+="</xdr:colOff><xdr:row>",o+=l.row-1,o+="</xdr:row><xdr:rowOff>",o+=0,o+="</xdr:rowOff></xdr:from>",o+="<xdr:to><xdr:col>",o+=l.lastColumn,o+="</xdr:col><xdr:colOff>",o+=l.lastColOffset,o+="</xdr:colOff><xdr:row>",o+=l.lastRow,o+="</xdr:row><xdr:rowOff>",o+=l.lastRowOffset,o+="</xdr:rowOff></xdr:to>",o+="<xdr:pic>",o+="<xdr:nvPicPr>",o+='<xdr:cNvPr id="'+i+'" name="Picture '+i+'"> </xdr:cNvPr>',o+='<xdr:cNvPicPr><a:picLocks noChangeAspect="1"/></xdr:cNvPicPr> </xdr:nvPicPr>',o+="<xdr:blipFill>",o+='<a:blip xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" r:embed="rId'+i+'" cstate="print">',o+="</a:blip><a:stretch><a:fillRect /></a:stretch></xdr:blipFill>",o+="<xdr:spPr>",o+="<a:xfrm",void 0!=l.rotation&&l.rotation<=3600&&l.rotation>=-3600&&(o+=' rot="'+6e4*l.rotation+'"'),void 0!=l.verticalFlip&&0!=l.verticalFlip&&(o+=' flipV="1"'),void 0!=l.horizontalFlip&&0!=l.horizontalFlip&&(o+=' flipH="1"'),o+="/>",o+='<a:prstGeom prst="rect"><a:avLst /></a:prstGeom></xdr:spPr>',o+="</xdr:pic><xdr:clientData /></xdr:twoCellAnchor>";var a=this.convertBase64toImage(l.image);this.imageCount+=1,this.addToArchive(a,"xl/media/image"+this.imageCount+".png")}r.append(o),r.append("</xdr:wsDr>"),this.saveDrawingRelations(e),this.addToArchive(r.getBlob(),"xl/drawings/drawing"+this.drawingCount+".xml")}},e.prototype.updatelastRowOffset=function(e,t){for(var r=t.height,o=t.row,i=0;r>=0;){var n=0,s=(n=void 0!==e.rows&&void 0!==e.rows[o-1]?this.convertToPixels(void 0===e.rows[o-1].height?15:e.rows[o-1].height):this.convertToPixels(15))-i*n/256;if(s>r){t.lastRow=o,t.lastRowOffset=i+256*r/n;var l=0;l=void 0!==e.rows&&void 0!==e.rows[o-1]?this.convertToPixels(void 0===e.rows[o-1].height?15:e.rows[o-1].height):this.convertToPixels(15),t.lastRowOffset=l*t.lastRowOffset/256,t.lastRowOffset=Math.round(t.lastRowOffset/this.unitsProportions[7]);break}r-=s,o++,i=0}},e.prototype.updatelastColumnOffSet=function(e,t){for(var r=t.width,o=t.column,i=0;r>=0;){var n=0,s=(n=void 0!==e.columns&&void 0!==e.columns[o-1]?this.ColumnWidthToPixels(void 0===e.columns[o-1].width?8.43:e.columns[o-1].width):this.ColumnWidthToPixels(8.43))-i*n/1024;if(s>r){t.lastColumn=o,t.lastColOffset=i+1024*r/n;var l=0;l=void 0!==e.columns&&void 0!==e.columns[o-1]?this.ColumnWidthToPixels(void 0===e.columns[o-1].width?8.43:e.columns[o-1].width):this.ColumnWidthToPixels(8.43),t.lastColOffset=l*t.lastColOffset/1024,t.lastColOffset=Math.round(t.lastColOffset/this.unitsProportions[7]);break}r-=s,o++,i=0}},e.prototype.convertToPixels=function(e){return e*this.unitsProportions[6]},e.prototype.convertBase64toImage=function(e){for(var t=window.atob(e),r=new ArrayBuffer(t.length),o=new Uint8Array(r),i=0;i<t.length;i++)o[i]=t.charCodeAt(i);return new Blob([o],{type:"image/png"})},e.prototype.saveDrawingRelations=function(e){for(var t='<?xml version="1.0" encoding="utf-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">',r=e.images.length,o=this.imageCount-e.images.length,i=1;i<=r;i++)t+='<Relationship Id="rId'+i+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="../media/image'+ ++o+'.png" />';this.addToArchive(t+"</Relationships>","xl/drawings/_rels/drawing"+this.drawingCount+".xml.rels")},e.prototype.pixelsToColumnWidth=function(e){var t=e>12?this.trunc((e-5)/7*100+.5)/100:e/12;return t>1?(7*t+5)/7*256/256:12*t/7*256/256},e.prototype.ColumnWidthToPixels=function(e){var t=e>1?(7*e+5)/7*256/256:12*e/7*256/256;return this.trunc((256*t+this.trunc(128/7))/256*7)},e.prototype.trunc=function(e){var t=e-e%1;return 0===t&&(e<0||0===e&&1/e!=1/0)?-0:t},e.prototype.pixelsToRowHeight=function(e){return e*this.unitsProportions[5]/this.unitsProportions[6]},e.prototype.saveSheetRelations=function(e){for(var t='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">',r=0,o=e.hyperLinks;r<o.length;r++){var i=o[r];t+='<Relationship Id="rId'+i.rId+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="'+this.processString(i.target)+'" TargetMode="External" />'}return void 0!=e.images&&e.images.length>0&&(t+='<Relationship Id="rId'+(e.hyperLinks.length+1)+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing" Target="../drawings/drawing'+this.drawingCount+'.xml" />'),t+="</Relationships>"},e.prototype.saveSheetView=function(e){var t='<sheetViews><sheetView workbookViewId="0" ';return!0===e.enableRtl&&(t+='rightToLeft="1"'),!1===e.showGridLines?t+='showGridLines="0" >':t+=">",void 0!==e.freezePanes&&(t+='<pane state="frozen" topLeftCell="'+e.freezePanes.leftCell+'" ',0!==e.freezePanes.row&&(t+='ySplit="'+e.freezePanes.row+'" '),0!==e.freezePanes.column&&(t+='xSplit="'+e.freezePanes.column+'" '),t+="/>"),t+="</sheetView></sheetViews > "},e.prototype.saveSharedString=function(){var e=this.sharedString.length;if(e>0){for(var t='<?xml version="1.0" encoding="utf-8"?><sst uniqueCount="'+e+'" count="'+this.sharedStringCount+'" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">',r="",o=0;o<e;o++)0!==this.sharedString[o].indexOf("<r>")?(r+="<si><t>",r+=this.processString(this.sharedString[o]),r+="</t></si>"):(r+="<si>",r+=this.sharedString[o],r+="</si>");r+="</sst>",this.addToArchive(t+r,"xl/sharedStrings.xml")}},e.prototype.processString=function(e){if("string"==typeof e)-1!==e.indexOf("&")&&(e=e.replace(/&/g,"&amp;")),-1!==e.indexOf("<")&&(e=e.replace(/</g,"&lt;")),-1!==e.indexOf(">")&&(e=e.replace(/>/g,"&gt;")),-1!==e.indexOf("\v")&&(e=e.replace(/\v/g,"_x000B_"));else if("object"==typeof e)for(var t=0;t<e.length;t++)-1!==e[t].indexOf("&")&&(e[t]=e[t].replace(/&/g,"&amp;")),-1!==e[t].indexOf("<")&&(e[t]=e[t].replace(/</g,"&lt;")),-1!==e[t].indexOf(">")&&(e[t]=e[t].replace(/>/g,"&gt;")),-1!==e[t].indexOf("\v")&&(e[t]=e[t].replace(/\v/g,"_x000B_"));return e},e.prototype.saveStyles=function(){this.updateCellXfsStyleXfs();var e='<?xml version="1.0" encoding="utf-8"?><styleSheet xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">';e+=this.saveNumberFormats(),e+=this.saveFonts(),e+=this.saveFills(),e+=this.saveBorders(),e+=this.saveCellStyleXfs(),e+=this.saveCellXfs(),e+=this.saveCellStyles(),this.addToArchive(e+"</styleSheet>","xl/styles.xml")},e.prototype.updateCellXfsStyleXfs=function(){for(var e=0,t=this.mStyles;e<t.length;e++){var r=t[e],o=void 0;r.isGlobalStyle?(o=new a).xfId=r.index-1:(o=new s).xfId=0;var i=this.isNewFont(r);if(i.result)o.fontId=i.index;else{var h=new n;h.b=r.bold,h.i=r.italic,h.name=r.fontName,h.sz=r.fontSize,h.u=r.underline,h.strike=r.strikeThrough,h.color="FF"+r.fontColor.replace("#",""),this.mFonts.push(h),o.fontId=this.mFonts.length-1}if("none"!==r.backColor){var m="FF"+r.backColor.replace("#","");if(this.mFills.has(m)){p=this.mFills.get(m);o.fillId=p}else{var p=this.mFills.size+2;this.mFills.set(m,p),o.fillId=p}}else o.fillId=0;if(this.isNewBorder(r)?o.borderId=0:(this.mBorders.push(r.borders),o.borderId=this.mBorders.length),"GENERAL"!==r.numberFormat)if(this.mNumFmt.has(r.numberFormat)){var u=this.mNumFmt.get(r.numberFormat);o.numFmtId=u.numFmtId}else{var c=this.mNumFmt.size+164;this.mNumFmt.set(r.numberFormat,new d(c,r.numberFormat)),o.numFmtId=c}else"GENERAL"===r.numberFormat&&14===r.numFmtId?o.numFmtId=14:o.numFmtId=0;r.isGlobalStyle||(o.applyAlignment=1),o.alignment=new l,o.alignment.indent=r.indent,o.alignment.horizontal=r.hAlign,o.alignment.vertical=r.vAlign,o.alignment.wrapText=r.wrapText?1:0,o.alignment.rotation=r.rotation,r.isGlobalStyle?(this.mCellStyleXfs.push(o),this.mCellXfs.push(o)):this.mCellXfs.push(o)}},e.prototype.saveNumberFormats=function(){if(this.mNumFmt.size>=1){var e='<numFmts count="'+this.mNumFmt.size+'">';return this.mNumFmt.forEach(function(t,r){e+='<numFmt numFmtId="'+t.numFmtId+'" formatCode="'+t.formatCode.replace(/"/g,"&quot;")+'" />'}),e+="</numFmts>"}return""},e.prototype.saveFonts=function(){var e='<fonts count="'+this.mFonts.length+'">';if(this.mFonts.length>=1)for(var t=0,r=this.mFonts;t<r.length;t++){var o=r[t];e+="<font>",o.b&&(e+="<b />"),o.i&&(e+="<i />"),o.u&&(e+="<u />"),o.strike&&(e+="<strike />"),e+='<sz val="'+o.sz+'" />',e+='<color rgb="'+o.color+'" />',e+='<name val="'+o.name+'" /></font>'}return e+"</fonts>"},e.prototype.saveFills=function(){var e='<fills count="'+(this.mFills.size+2)+'"><fill><patternFill patternType="none"></patternFill></fill><fill><patternFill patternType="gray125"></patternFill></fill>';return this.mFills.size>=1&&this.mFills.forEach(function(t,r){e+='<fill><patternFill patternType="solid"><fgColor rgb="'+r+'" /><bgColor rgb="FFFFFFFF" /></patternFill></fill>'}),e+"</fills>"},e.prototype.saveBorders=function(){var e='<borders count="'+(this.mBorders.length+1)+'"><border><left /><right /><top /><bottom /><diagonal /></border>';if(this.mBorders.length>=1)for(var t=0,r=this.mBorders;t<r.length;t++){var o=r[t];if(this.isAllBorder(o)){var i=o.all.color.replace("#",""),n=o.all.lineStyle;e+='<border><left style="'+n+'"><color rgb="FF'+i+'" /></left><right style="'+n+'"><color rgb="FF'+i+'" /></right><top style="'+n+'"><color rgb="FF'+i+'" /></top><bottom style="'+n+'"><color rgb="FF'+i+'" /></bottom></border>'}else e+='<border><left style="'+o.left.lineStyle+'"><color rgb="FF'+o.left.color.replace("#","")+'" /></left><right style="'+o.right.lineStyle+'"><color rgb="FF'+o.right.color.replace("#","")+'" /></right><top style="'+o.top.lineStyle+'"><color rgb="FF'+o.top.color.replace("#","")+'" /></top><bottom style="'+o.bottom.lineStyle+'"><color rgb="FF'+o.bottom.color.replace("#","")+'" /></bottom></border>'}return e+"</borders>"},e.prototype.saveCellStyles=function(){var e=this,t='<cellStyles count="'+this.cellStyles.size+'">';return this.cellStyles.forEach(function(r,o){t+='<cellStyle name="'+o+'" xfId="'+e.cellStyles.get(o).xfId+'"',"Normal"===o&&(t+=' builtinId="0"'),t+=" />"}),t+="</cellStyles>"},e.prototype.saveCellStyleXfs=function(){var e='<cellStyleXfs count="'+(this.mCellStyleXfs.length+1)+'"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" />';if(this.mCellStyleXfs.length>=1)for(var t=0,r=this.mCellStyleXfs;t<r.length;t++){var o=r[t];e+='<xf numFmtId="'+o.numFmtId+'" fontId="'+o.fontId+'" fillId="'+o.fillId+'" borderId="'+o.borderId+'" ',void 0!==o.alignment?e+=">"+this.saveAlignment(o)+"</xf>":e+=" />"}return e+"</cellStyleXfs>"},e.prototype.saveCellXfs=function(){var e='<cellXfs count="'+(this.mCellXfs.length+1)+'"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" />';if(this.mCellXfs.length>=1)for(var t=0,r=this.mCellXfs;t<r.length;t++){var o=r[t];e+='<xf numFmtId="'+o.numFmtId+'" fontId="'+o.fontId+'" fillId="'+o.fillId+'" borderId="'+o.borderId+'" xfId="'+o.xfId+'" ',1===o.applyAlignment&&(e+='applyAlignment="1"'),e+=">"+this.saveAlignment(o)+"</xf>"}return e+"</cellXfs>"},e.prototype.saveAlignment=function(e){var t="<alignment ";return void 0!==e.alignment.horizontal&&(t+='horizontal="'+e.alignment.horizontal+'" '),void 0!==e.alignment.indent&&0!==e.alignment.indent?t+='indent="'+e.alignment.indent+'" ':void 0!==e.alignment.rotation&&0!==e.alignment.rotation&&(t+='textRotation="'+e.alignment.rotation+'" '),void 0!==e.alignment.vertical&&(t+='vertical="'+e.alignment.vertical+'" '),t+='wrapText="'+e.alignment.wrapText+'" />'},e.prototype.saveApp=function(e){var t='<?xml version="1.0" encoding="utf-8" standalone="yes"?><Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"><Application>Essential XlsIO</Application>';void 0!==e&&(void 0!==e.manager&&(t+="<Manager>"+e.manager+"</Manager>"),void 0!==e.company&&(t+="<Company>"+e.company+"</Company>")),this.addToArchive(t+"</Properties>","docProps/app.xml")},e.prototype.saveCore=function(e){var t=new Date,r='<?xml version="1.0" encoding="utf-8" standalone="yes"?><cp:coreProperties xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties">';void 0!==this.builtInProperties?(void 0!==e.author&&(r+="<dc:creator>"+e.author+"</dc:creator>"),void 0!==e.subject&&(r+="<dc:subject>"+e.subject+"</dc:subject>"),void 0!==e.category&&(r+="<cp:category>"+e.category+"</cp:category>"),void 0!==e.comments&&(r+="<dc:description>"+e.comments+"</dc:description>"),void 0!==e.title&&(r+="<dc:title>"+e.title+"</dc:title>"),void 0!==e.tags&&(r+="<cp:keywords>"+e.tags+"</cp:keywords>"),void 0!==e.status&&(r+="<cp:contentStatus>"+e.status+"</cp:contentStatus>"),void 0!==e.createdDate?r+='<dcterms:created xsi:type="dcterms:W3CDTF">'+e.createdDate.toISOString()+"</dcterms:created>":r+='<dcterms:created xsi:type="dcterms:W3CDTF">'+t.toISOString()+"</dcterms:created>",void 0!==e.modifiedDate?r+='<dcterms:modified xsi:type="dcterms:W3CDTF">'+e.modifiedDate.toISOString()+"</dcterms:modified>":r+='<dcterms:modified xsi:type="dcterms:W3CDTF">'+t.toISOString()+"</dcterms:modified>"):(r+='<dcterms:created xsi:type="dcterms:W3CDTF">'+t.toISOString()+"</dcterms:created>",r+='<dcterms:modified xsi:type="dcterms:W3CDTF">'+t.toISOString()+"</dcterms:modified>"),r+="</cp:coreProperties>",this.addToArchive(r,"docProps/core.xml")},e.prototype.saveTopLevelRelation=function(){this.addToArchive('<?xml version="1.0" encoding="utf-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" /><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml" /><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml" /></Relationships>',"_rels/.rels")},e.prototype.saveWorkbookRelation=function(){for(var e='<?xml version="1.0" encoding="utf-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">',t=this.worksheets.length,r=0,o=0;o<t;o++,r++)e+='<Relationship Id="rId'+(o+1).toString()+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet'+(o+1).toString()+'.xml" />';e+='<Relationship Id="rId'+(++r).toString()+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml" />',this.sharedStringCount>0&&(e+='<Relationship Id="rId'+(++r).toString()+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml" />'),this.addToArchive(e+"</Relationships>","xl/_rels/workbook.xml.rels")},e.prototype.saveContentType=function(){for(var e='<?xml version="1.0" encoding="utf-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="xml" ContentType="application/xml" /><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml" /><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml" />',t="",r=this.worksheets.length,o=0,i=0;i<r;i++)t+='<Override PartName="/xl/worksheets/sheet'+(i+1).toString()+'.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" />',void 0!=this.worksheets[i].images&&this.worksheets[i].images.length>0&&(t+='<Override PartName="/xl/drawings/drawing'+(++o).toString()+'.xml" ContentType="application/vnd.openxmlformats-officedocument.drawing+xml" />');this.imageCount>0&&(t+='<Default Extension="png" ContentType="image/png" />'),this.sharedStringCount>0&&(e+='<Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" />'),this.addToArchive(e+t+"</Types>","[Content_Types].xml")},e.prototype.addToArchive=function(e,r){if("string"==typeof e){var o=new Blob([e],{type:"text/plain"}),i=new t.ZipArchiveItem(o,r);this.mArchive.addItem(i)}else{i=new t.ZipArchiveItem(e,r);this.mArchive.addItem(i)}},e.prototype.processMergeCells=function(e,t,r){if(0!==e.rowSpan||0!==e.colSpan){var o=new T;o.x=e.index,o.width=e.colSpan,o.y=t,o.height=e.rowSpan;var i=this.getCellName(o.y,o.x),n=this.getCellName(t+o.height,e.index+o.width);o.ref=i+":"+n;r.add(o);var s={x:o.x,y:o.y},l={x:e.index+o.width,y:t+o.height};this.updatedMergedCellStyles(s,l,e)}return r},e.prototype.updatedMergedCellStyles=function(e,t,r){for(var o=e.x;o<=t.x;o++)for(var i=e.y;i<=t.y;i++)this.mergedCellsStyle.set(this.getCellName(i,o),{x:o,y:i,styleIndex:r.styleIndex})},e.prototype.dateToTicks=function(e,t,r){var o=[0,31,59,90,120,151,181,212,243,273,304,334,365],i=[0,31,60,91,121,152,182,213,244,274,305,335,366];if(e>=1&&e<=9999&&t>=1&&t<=12){var n=e-1;return 864e9*(365*n+(n/4|0)-(n/100|0)+(n/400|0)+(this.isLeapYear(e)?i:o)[t-1]+r-1)}throw new Error("Not a valid date")},e.prototype.timeToTicks=function(e,t,r){if(e>=0&&e<24&&t>=0&&t<60&&r>=0&&r<60)return 1e4*(3600*e+60*t+r)*1e3;throw new Error("Not valid time")},e.prototype.isLeapYear=function(e){return e%4==0&&(e%100!=0||e%400==0)},e.prototype.toOADate=function(e){var t=0;if(0===(t=this.dateToTicks(e.getFullYear(),e.getMonth()+1,e.getDate())+this.timeToTicks(e.getHours(),e.getMinutes(),e.getSeconds())))return 0;if(t<31241376e9)throw new Error("Arg_OleAutDateInvalid");return(t-599264352e9)/1e4/864e5},e}(),E=function(){function e(){}return e}();return e.Alignment=l,e.BlobHelper=O,e.Border=m,e.Borders=p,e.BuiltInProperties=E,e.Cell=c,e.CellStyle=i,e.CellStyleXfs=a,e.CellStyles=h,e.CellXfs=s,e.Cells=f,e.Column=v,e.CsvHelper=A,e.Font=n,e.FreezePane=I,e.Grouping=k,e.HyperLink=C,e.MergeCell=T,e.MergeCells=R,e.NumFmt=d,e.Row=y,e.Rows=x,e.ValueFormatter=P,e.Workbook=D,e.Worksheet=S,e.Worksheets=b,e}({},ej.compression,ej.base,ej.fileutils),this.ejs=ej;
//# sourceMappingURL=ej2-excel-export.min.js.map
/*!
* filename: index.d.ts
* version : 26.2.10
* version : 26.2.11
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.

@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license.

{
"_from": "@syncfusion/ej2-excel-export@*",
"_id": "@syncfusion/ej2-excel-export@26.1.35",
"_id": "@syncfusion/ej2-excel-export@26.2.10",
"_inBundle": false,
"_integrity": "sha512-lmmU9a9PJNAnCzxGN8km2qfjnPavo5q6W7HJlw+MwvtZFD4fqNp8CYFBK/41ABcIyhR7if5Y7PXxUqCOTjvfxg==",
"_integrity": "sha512-MqOJJdUS8mvKqZigmaAECcX73QrQZgDOH2kPL2HHnLQTHtFL6gg8o0vpnFIkDy5gcBdUplfrV6f2doZXWCIobA==",
"_location": "/@syncfusion/ej2-excel-export",

@@ -27,4 +27,4 @@ "_phantomChildren": {},

],
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-excel-export/-/ej2-excel-export-26.1.35.tgz",
"_shasum": "c354d7fb3aa85089fb39f2b4c43928f83cda79f4",
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-excel-export/-/ej2-excel-export-26.2.10.tgz",
"_shasum": "389035edafb7d93919ccce66c23eda06dfad4614",
"_spec": "@syncfusion/ej2-excel-export@*",

@@ -62,4 +62,4 @@ "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",

"typings": "index.d.ts",
"version": "26.2.10",
"version": "26.2.11",
"sideEffects": false
}

@@ -5,2 +5,3 @@ /**

*/
/* eslint-disable */
var AutoFilters = /** @class */ (function () {

@@ -7,0 +8,0 @@ function AutoFilters() {

@@ -5,2 +5,3 @@ /**

*/
/* eslint-disable */
var BlobHelper = /** @class */ (function () {

@@ -7,0 +8,0 @@ function BlobHelper() {

@@ -5,2 +5,3 @@ /**

*/
/* eslint-disable */
var CellStyle = /** @class */ (function () {

@@ -7,0 +8,0 @@ function CellStyle() {

@@ -18,2 +18,3 @@ var __extends = (this && this.__extends) || (function () {

*/
/* eslint-disable */
var Cell = /** @class */ (function () {

@@ -20,0 +21,0 @@ function Cell() {

@@ -5,2 +5,3 @@ /**

*/
/* eslint-disable */
var Column = /** @class */ (function () {

@@ -7,0 +8,0 @@ function Column() {

@@ -7,2 +7,3 @@ import { ValueFormatter } from './value-formatter';

*/
/* eslint-disable */
var CsvHelper = /** @class */ (function () {

@@ -117,7 +118,7 @@ /* tslint:disable:no-any */

/* tslint:disable-next-line:max-line-length */
csv += this.parseCellValue(this.formatter.displayText(cell.value, { format: cell.style.numberFormat }, this.isServerRendered));
csv += this.parseCellValue(this.formatter.displayText(cell.value, { format: cell.style.numberFormat, ignoreCurrency: true }, this.isServerRendered));
}
else if (cell.style !== undefined && cell.style.name !== undefined && this.globalStyles.has(cell.style.name)) {
/* tslint:disable-next-line:max-line-length */
csv += this.parseCellValue(this.formatter.displayText(cell.value, { format: this.globalStyles.get(cell.style.name) }, this.isServerRendered));
csv += this.parseCellValue(this.formatter.displayText(cell.value, { format: this.globalStyles.get(cell.style.name), ignoreCurrency: true }, this.isServerRendered));
}

@@ -124,0 +125,0 @@ else {

@@ -5,2 +5,3 @@ /**

*/
/* eslint-disable */
var Image = /** @class */ (function () {

@@ -7,0 +8,0 @@ function Image() {

/**
* index class
*/
/* eslint-disable */
export * from './cell-style';

@@ -5,0 +6,0 @@ export * from './cell';

@@ -18,2 +18,3 @@ var __extends = (this && this.__extends) || (function () {

*/
/* eslint-disable */
var Row = /** @class */ (function () {

@@ -20,0 +21,0 @@ function Row() {

@@ -8,2 +8,3 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base';

*/
/* eslint-disable */
var ValueFormatter = /** @class */ (function () {

@@ -10,0 +11,0 @@ function ValueFormatter(cultureName) {

@@ -18,2 +18,3 @@ var __extends = (this && this.__extends) || (function () {

*/
/* eslint-disable */
var Worksheet = /** @class */ (function () {

@@ -20,0 +21,0 @@ function Worksheet() {

@@ -18,2 +18,3 @@ var __extends = (this && this.__extends) || (function () {

*/
/* eslint-disable */
var Worksheets = /** @class */ (function (_super) {

@@ -20,0 +21,0 @@ __extends(Worksheets, _super);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc