{"version":3,"sources":["kendo.ooxml.js"],"names":["f","define","kendo","ooxml","createZip","JSZip","Error","amd","a1","a2","a3","$","dateToJulianDays","y","m","d","packDate","year","month","date","BASE_DATE","packTime","hh","mm","ss","ms","dateToSerial","time","getHours","getMinutes","getSeconds","getMilliseconds","serial","getFullYear","getMonth","getDate","toDataURI","content","DATA_URL_PREFIX","indexOf","thing","array","ESC","val","String","replace","repeat","count","func","i","str","foreach","arr","Array","isArray","length","Object","keys","forEach","key","writeFormula","formula","ref","src","numChar","colIndex","letter","Math","floor","fromCharCode","rowIndex","$ref","filterRowIndex","options","frozenRows","freezePane","rowSplit","toWidth","px","maximumDigitWidth","toHeight","stripFunnyChars","value","countData","data","last","el","index","convertColor","color","$0","$1","substring","toUpperCase","borderStyle","width","alias","borderSideTemplate","name","style","result","size","borderTemplate","border","left","right","top","bottom","inflate","rows","mergedCells","sorted","ctx","rowData","rowsByIndex","indexRows","row","_source","height","level","cells","push","sortByIndex","slice","fillCells","callback","items","sort","a","b","pushUnique","getSpan","range","topLeft","bottomRight","split","parseRef","rowSpan","colSpan","col","getcol","upperStr","charCodeAt","getrow","parseInt","exec","pixelsToExcel","round","cell","cellIndex","topLeftRef","tmp","ri","nextRow","cellData","EMPTY_CELL","insertCell","spanCell","insertCellAt","appendCell","startIndex","borderTop","borderRight","borderBottom","borderLeft","spreadsheetFilters","filter","SPREADSHEET_FILTERS","columns","generators","custom","SPREADSHEET_CUSTOM_FILTER","dynamic","SPREADSHEET_DYNAMIC_FILTER","SPREADSHEET_TOP_FILTER","SPREADSHEET_VALUE_FILTER","quoteSheet","test","map","current","IntlService","MIME_TYPE","DATA_URL_OPTIONS","BLOB_OPTIONS","ARRAYBUFFER_OPTIONS","parseJSON","XMLHEAD","RELS","CORE","APP","CONTENT_TYPES","WORKBOOK","WORKSHEET","WORKBOOK_RELS","WORKSHEET_RELS","COMMENTS_XML","LEGACY_DRAWING","DRAWINGS_XML","DRAWINGS_RELS_XML","SHARED_STRINGS","STYLES","Worksheet","MAP_EXCEL_OPERATOR","MAP_EXCEL_TYPE","defaultFormats","Workbook","window","toString","Class","extend","register","userImplementation","format","compression","type","JSON","parse","bind","creator","lastModifiedBy","created","modified","sheets","sheet","title","sheetCount","commentFiles","drawingFiles","idx","filename","filterNames","userNames","localSheetId","from","to","hidden","ref$1","frozenColumns","defaults","mergeCells","autoFilter","showGridLines","hyperlinks","validations","defaultCellStyleId","rtl","legacyDrawing","drawing","lastRow","lastCol","skipCustomHeight","rowHeight","columnWidth","column","ci","columnIndex","autoWidth","sqref","join","showErrorMessage","operator","allowBlank","showDropDown","error","errorTitle","formula1","formula2","link","rId","comments","sheetIndex","drawings","target","comment","text","anchor","colOffset","rowOffset","imageId","rels","rel","uniqueCount","indexes","formats","fonts","fills","borders","styles","fi","font","bold","italic","underline","fontSize","fontFamily","fill","background","fontId","fillId","numFmtId","textAlign","verticalAlign","wrap","borderId","indent","init","sharedStrings","this","_strings","_styles","_borders","_validations","_comments","_drawings","_hyperlinks","relsToXML","toXML","this$1","_readCells","prototype","hasOwnProperty","call","defaultCellStyle","_lookupStyle","_getLastRow","_getLastCol","colSplit","undefined","commentsXML","drawingsXML","images","main","drw","topLeftCell","img","image","offsetX","offsetY","_lookupString","json","stringify","_lookupBorder","j","_cell","defStyle","displayValue","cellName","add","prop","max","getTime","validation","_addValidation","v","dataType","comparerType","allowNulls","showButton","messageTemplate","titleTemplate","greaterThanOrEqualTo","lessThanOrEqualTo","number","General","0","0.00","#,##0","#,##0.00","0%","0.00%","0.00E+00","# ?/?","# ??/??","mm-dd-yy","d-mmm-yy","d-mmm","mmm-yy","h:mm AM/PM","h:mm:ss AM/PM","h:mm","h:mm:ss","m/d/yy h:mm","#,##0 ;(#,##0)","#,##0 ;[Red](#,##0)","#,##0.00;(#,##0.00)","#,##0.00;[Red](#,##0.00)","mm:ss","[h]:mm:ss","mmss.0","##0.0E+0","@","[$-404]e/m/d","m/d/yy","t0","t0.00","t#,##0","t#,##0.00","t0%","t0.00%","t# ?/?","t# ??/??","_images","_imgId","_sheets","imageFilename","mimeType","id","toZIP","xl","xlRels","media","sheetIds","worksheets","drawingsRels","sheetRels","sheetName","sheetXML","relsXML","name$1","hasFont","convertFontSize","zip","docProps","folder","file","Date","toJSON","toLowerCase","names","def","localName","fontInPt","fontInPx","toDataURL","generateAsync","then","generate","toBlob","Blob","logic","criteria","op","customOperator","customValue","dynamicFilterType","blanks","values","eq","gt","gte","lt","lte","ne","doesnotstartwith","doesnotendwith","doesnotcontain","doesnotmatch","esc","quarter1","quarter2","quarter3","quarter4","january","february","march","april","may","june","july","august","september","october","november","december","deepExtend","jQuery","fn","toDataURLAsync","deferred","Deferred","resolve","dataURI","reject","promise"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;CAwBC,SAAUA,EAAGC,QACVA,OAAO,eAAgB,cAAeD,IACxC,YACG,WACGE,MAAMC,MAAQD,MAAMC,UACpBD,MAAMC,MAAMC,UAAY,WACpB,GAAqB,mBAAVC,OACP,KAAUC,OAAM,sHAEpB,OAAO,IAAID,YAGH,kBAAVJ,SAAwBA,OAAOM,IAAMN,OAAS,SAAUO,EAAIC,EAAIC,IACrEA,GAAMD,OAEV,SAAUT,EAAGC,QACVA,OAAO,qBACH,aACA,eACDD,IACL,YACG,SAAUW,GAiBP,QAASC,GAAiBC,EAAGC,EAAGC,GAC5B,OAAQ,MAAQF,EAAI,OAASC,EAAI,IAAM,GAAK,IAAM,EAAI,IAAM,KAAOA,EAAI,EAAI,KAAOA,EAAI,IAAM,GAAK,IAAM,GAAK,IAAM,IAAMD,EAAI,OAASC,EAAI,IAAM,GAAK,IAAM,IAAM,GAAK,EAAI,GAAKC,EAAI,MAGtL,QAASC,GAASC,EAAMC,EAAOC,GAC3B,MAAOP,GAAiBK,EAAMC,EAAOC,GAAQC,EAEjD,QAASC,GAASC,EAAIC,EAAIC,EAAIC,GAC1B,OAAQH,GAAMC,GAAMC,EAAKC,EAAK,KAAQ,IAAM,IAAM,GAEtD,QAASC,GAAa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ACG,SAAUW,GACP,GAAIkM,GAAW3M,MAAMC,MAAM0M,QAC3B3M,OAAMC,MAAMiL,YAAY8B,UAAWH,SAAU7M,MAAM6M,WACnD7M,MAAMC,MAAM0M,SAAWA,EAASI,QAC5BgO,UAAW,WACP,GAAI7U,GAASyG,EAAS+Q,GAAG3C,UAAUhH,KAAKd,KACxC,IAAsB,gBAAX/M,GACP,KAAU9F,OAAM,+GAEpB,OAAO8F,IAEXyX,eAAgB,WAAA,GACRC,GAAWnd,EAAEod,WACb3X,EAASyG,EAAS+Q,GAAG3C,UAAUhH,KAAKd,KAUxC,OATsB,gBAAX/M,GACPA,EAAS0X,EAASE,QAAQ5X,GACnBA,GAAUA,EAAO+U,MACxB/U,EAAO+U,KAAK,SAAU8C,GAClBH,EAASE,QAAQC,IAClB,WACCH,EAASI,WAGVJ,EAASK,cAG1BrR,OAAO5M,MAAMyd,SACC,kBAAV1d,SAAwBA,OAAOM,IAAMN,OAAS,SAAUO,EAAIC,EAAIC,IACrEA,GAAMD,OAEV,SAAUT,EAAGC,QACVA,OAAO,eAAgB,cAAeD,IACxC,aAQkB,kBAAVC,SAAwBA,OAAOM,IAAMN,OAAS,SAAUO,EAAIC,EAAIC,IACrEA,GAAMD","file":"kendo.ooxml.min.js","sourcesContent":["/*!\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n*/\n(function (f, define) {\n define('ooxml/utils', ['kendo.core'], f);\n}(function () {\n (function () {\n kendo.ooxml = kendo.ooxml || {};\n kendo.ooxml.createZip = function () {\n if (typeof JSZip === 'undefined') {\n throw new Error('JSZip not found. Check http://docs.telerik.com/kendo-ui/framework/excel/introduction#requirements for more details.');\n }\n return new JSZip();\n };\n }());\n}, typeof define == 'function' && define.amd ? define : function (a1, a2, a3) {\n (a3 || a2)();\n}));\n(function (f, define) {\n define('ooxml/kendo-ooxml', [\n 'kendo.core',\n 'ooxml/utils'\n ], f);\n}(function () {\n (function ($) {\n window.kendo.ooxml = window.kendo.ooxml || {};\n var ooxml = kendo.ooxml;\n var map = $.map;\n var createZip = ooxml.createZip;\n var current = {\n toString: function (value) {\n return value;\n }\n };\n var IntlService = kendo.Class.extend({});\n IntlService.register = function (userImplementation) {\n current = userImplementation;\n };\n IntlService.toString = function (value, format) {\n return current.toString(value, format);\n };\n function dateToJulianDays(y, m, d) {\n return (1461 * (y + 4800 + ((m - 13) / 12 | 0)) / 4 | 0) + (367 * (m - 1 - 12 * ((m - 13) / 12 | 0)) / 12 | 0) - (3 * ((y + 4900 + ((m - 13) / 12 | 0)) / 100 | 0) / 4 | 0) + d - 32075;\n }\n var BASE_DATE = dateToJulianDays(1900, 0, -1);\n function packDate(year, month, date) {\n return dateToJulianDays(year, month, date) - BASE_DATE;\n }\n function packTime(hh, mm, ss, ms) {\n return (hh + (mm + (ss + ms / 1000) / 60) / 60) / 24;\n }\n function dateToSerial(date) {\n var time = packTime(date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());\n var serial = packDate(date.getFullYear(), date.getMonth(), date.getDate());\n return serial < 0 ? serial - 1 + time : serial + time;\n }\n var MIME_TYPE = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet';\n var DATA_URL_PREFIX = 'data:' + MIME_TYPE + ';base64,';\n var DATA_URL_OPTIONS = {\n compression: 'DEFLATE',\n type: 'base64'\n };\n var BLOB_OPTIONS = {\n compression: 'DEFLATE',\n type: 'blob'\n };\n var ARRAYBUFFER_OPTIONS = {\n compression: 'DEFLATE',\n type: 'arraybuffer'\n };\n function toDataURI(content) {\n return DATA_URL_PREFIX + content;\n }\n function indexOf(thing, array) {\n return array.indexOf(thing);\n }\n var parseJSON = JSON.parse.bind(JSON);\n function ESC(val) {\n return String(val).replace(/&/g, '&').replace(//g, '>').replace(/\\\"/g, '"').replace(/\\'/g, ''');\n }\n function repeat(count, func) {\n var str = '';\n for (var i = 0; i < count; ++i) {\n str += func(i);\n }\n return str;\n }\n function foreach(arr, func) {\n var str = '';\n if (arr != null) {\n if (Array.isArray(arr)) {\n for (var i = 0; i < arr.length; ++i) {\n str += func(arr[i], i);\n }\n } else if (typeof arr == 'object') {\n Object.keys(arr).forEach(function (key, i) {\n str += func(arr[key], key, i);\n });\n }\n }\n return str;\n }\n var XMLHEAD = '\\r';\n var RELS = XMLHEAD + '\\n \\n \\n \\n \\n ';\n var CORE = function (ref) {\n var creator = ref.creator;\n var lastModifiedBy = ref.lastModifiedBy;\n var created = ref.created;\n var modified = ref.modified;\n return XMLHEAD + '\\n \\n ' + ESC(creator) + '\\n ' + ESC(lastModifiedBy) + '\\n ' + ESC(created) + '\\n ' + ESC(modified) + '\\n';\n };\n var APP = function (ref) {\n var sheets = ref.sheets;\n return XMLHEAD + '\\n\\n Microsoft Excel\\n 0\\n false\\n \\n \\n \\n Worksheets\\n \\n \\n ' + sheets.length + '\\n \\n \\n \\n \\n ' + foreach(sheets, function (sheet, i) {\n return sheet.options.title ? '' + ESC(sheet.options.title) + '' : 'Sheet' + (i + 1) + '';\n }) + '\\n \\n false\\n false\\n false\\n 14.0300\\n';\n };\n var CONTENT_TYPES = function (ref) {\n var sheetCount = ref.sheetCount;\n var commentFiles = ref.commentFiles;\n var drawingFiles = ref.drawingFiles;\n return XMLHEAD + '\\n\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n ' + repeat(sheetCount, function (idx) {\n return '';\n }) + '\\n ' + foreach(commentFiles, function (filename) {\n return '';\n }) + '\\n ' + foreach(drawingFiles, function (filename) {\n return '';\n }) + '\\n \\n \\n';\n };\n var WORKBOOK = function (ref) {\n var sheets = ref.sheets;\n var filterNames = ref.filterNames;\n var userNames = ref.userNames;\n return XMLHEAD + '\\n\\n \\n \\n \\n \\n \\n \\n ' + foreach(sheets, function (ref, i) {\n var options = ref.options;\n var name = options.name || options.title || 'Sheet' + (i + 1);\n return '';\n }) + '\\n \\n ' + (filterNames.length || userNames.length ? '\\n \\n ' + foreach(filterNames, function (f) {\n return '\\n ';\n }) + '\\n ' + foreach(userNames, function (f) {\n return '\\n ';\n }) + '\\n ' : '') + '\\n \\n';\n };\n var WORKSHEET = function (ref$1) {\n var frozenColumns = ref$1.frozenColumns;\n var frozenRows = ref$1.frozenRows;\n var columns = ref$1.columns;\n var defaults = ref$1.defaults;\n var data = ref$1.data;\n var index = ref$1.index;\n var mergeCells = ref$1.mergeCells;\n var autoFilter = ref$1.autoFilter;\n var filter = ref$1.filter;\n var showGridLines = ref$1.showGridLines;\n var hyperlinks = ref$1.hyperlinks;\n var validations = ref$1.validations;\n var defaultCellStyleId = ref$1.defaultCellStyleId;\n var rtl = ref$1.rtl;\n var legacyDrawing = ref$1.legacyDrawing;\n var drawing = ref$1.drawing;\n var lastRow = ref$1.lastRow;\n var lastCol = ref$1.lastCol;\n return XMLHEAD + '\\n\\n \\n\\n \\n \\n ' + (frozenRows || frozenColumns ? '\\n ' : '') + '\\n \\n \\n\\n \\n\\n ' + (defaultCellStyleId != null || columns && columns.length > 0 ? '\\n \\n ' + (!columns || !columns.length ? '\\n ' : '') + '\\n ' + foreach(columns, function (column, ci) {\n var columnIndex = typeof column.index === 'number' ? column.index + 1 : ci + 1;\n if (column.width === 0) {\n return '';\n }\n return '';\n }) + '\\n ' : '') + '\\n\\n \\n ' + foreach(data, function (row, ri) {\n var rowIndex = typeof row.index === 'number' ? row.index + 1 : ri + 1;\n return '\\n \\n ' + foreach(row.data, function (cell) {\n return '\\n \\n ' + (cell.formula != null ? writeFormula(cell.formula) : '') + '\\n ' + (cell.value != null ? '' + ESC(cell.value) + '' : '') + '\\n ';\n }) + '\\n \\n ';\n }) + '\\n \\n\\n ' + (autoFilter ? '' : filter ? spreadsheetFilters(filter) : '') + '\\n\\n ' + (mergeCells.length ? '\\n \\n ' + foreach(mergeCells, function (ref) {\n return '';\n }) + '\\n ' : '') + '\\n\\n ' + (validations.length ? '\\n \\n ' + foreach(validations, function (val) {\n return '\\n \\n ' + (val.formula1 ? '' + ESC(val.formula1) + '' : '') + '\\n ' + (val.formula2 ? '' + ESC(val.formula2) + '' : '') + '\\n ';\n }) + '\\n ' : '') + '\\n\\n ' + (hyperlinks.length ? '\\n \\n ' + foreach(hyperlinks, function (link) {\n return '\\n ';\n }) + '\\n ' : '') + '\\n\\n \\n ' + (drawing ? '' : '') + '\\n ' + (legacyDrawing ? '' : '') + '\\n';\n };\n var WORKBOOK_RELS = function (ref) {\n var count = ref.count;\n return XMLHEAD + '\\n\\n ' + repeat(count, function (idx) {\n return '\\n ';\n }) + '\\n \\n \\n';\n };\n var WORKSHEET_RELS = function (ref) {\n var hyperlinks = ref.hyperlinks;\n var comments = ref.comments;\n var sheetIndex = ref.sheetIndex;\n var drawings = ref.drawings;\n return XMLHEAD + '\\n\\n ' + foreach(hyperlinks, function (link) {\n return '\\n ';\n }) + '\\n ' + (!comments.length ? '' : '\\n \\n ') + '\\n ' + (!drawings.length ? '' : '\\n ') + '\\n';\n };\n var COMMENTS_XML = function (ref) {\n var comments = ref.comments;\n return XMLHEAD + '\\n\\n \\n \\n \\n \\n ' + foreach(comments, function (comment) {\n return '\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n ' + ESC(comment.text) + '\\n \\n \\n ';\n }) + '\\n \\n';\n };\n var LEGACY_DRAWING = function (ref) {\n var comments = ref.comments;\n return '\\n \\n ' + foreach(comments, function (comment) {\n return '\\n \\n \\n \\n \\n \\n ' + comment.anchor + '\\n False\\n ' + comment.row + '\\n ' + comment.col + '\\n \\n ';\n }) + '\\n';\n };\n var DRAWINGS_XML = function (drawings) {\n return XMLHEAD + '\\n\\n ' + foreach(drawings, function (drawing, index) {\n return '\\n \\n \\n ' + drawing.col + '\\n ' + drawing.colOffset + '\\n ' + drawing.row + '\\n ' + drawing.rowOffset + '\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n ';\n }) + '\\n';\n };\n var DRAWINGS_RELS_XML = function (rels) {\n return XMLHEAD + '\\n\\n ' + foreach(rels, function (rel) {\n return '\\n ';\n }) + '\\n';\n };\n var SHARED_STRINGS = function (ref) {\n var count = ref.count;\n var uniqueCount = ref.uniqueCount;\n var indexes = ref.indexes;\n return XMLHEAD + '\\n\\n ' + foreach(Object.keys(indexes), function (index) {\n return '\\n ' + ESC(index.substring(1)) + '';\n }) + '\\n';\n };\n var STYLES = function (ref) {\n var formats = ref.formats;\n var fonts = ref.fonts;\n var fills = ref.fills;\n var borders = ref.borders;\n var styles = ref.styles;\n return XMLHEAD + '\\n\\n \\n ' + foreach(formats, function (format, fi) {\n return '\\n ';\n }) + '\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n ' + foreach(fonts, function (font) {\n return '\\n \\n ' + (font.bold ? '' : '') + '\\n ' + (font.italic ? '' : '') + '\\n ' + (font.underline ? '' : '') + '\\n \\n ' + (font.color ? '' : '') + '\\n ' + (font.fontFamily ? '\\n \\n \\n ' : '\\n \\n \\n \\n ') + '\\n ';\n }) + '\\n \\n \\n \\n \\n ' + foreach(fills, function (fill) {\n return '\\n ' + (fill.background ? '\\n \\n \\n \\n \\n \\n ' : '');\n }) + '\\n \\n \\n \\n ' + foreach(borders, borderTemplate) + '\\n \\n \\n \\n \\n \\n \\n ' + foreach(styles, function (style) {\n return '\\n \\n ' + (style.textAlign || style.verticalAlign || style.wrap ? '\\n \\n ' : '') + '\\n \\n ';\n }) + '\\n \\n \\n \\n \\n \\n \\n';\n };\n function writeFormula(formula) {\n if (typeof formula == 'string') {\n return '' + ESC(formula) + '';\n }\n return '' + ESC(formula.src) + '';\n }\n function numChar(colIndex) {\n var letter = Math.floor(colIndex / 26) - 1;\n return (letter >= 0 ? numChar(letter) : '') + String.fromCharCode(65 + colIndex % 26);\n }\n function ref(rowIndex, colIndex) {\n return numChar(colIndex) + (rowIndex + 1);\n }\n function $ref(rowIndex, colIndex) {\n return '$' + numChar(colIndex) + '$' + (rowIndex + 1);\n }\n function filterRowIndex(options) {\n var frozenRows = options.frozenRows || (options.freezePane || {}).rowSplit || 1;\n return frozenRows - 1;\n }\n function toWidth(px) {\n var maximumDigitWidth = 7;\n return px / maximumDigitWidth - Math.floor(128 / maximumDigitWidth) / 256;\n }\n function toHeight(px) {\n return px * 0.75;\n }\n function stripFunnyChars(value) {\n return String(value).replace(/[\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F]/g, '').replace(/\\r?\\n/g, '\\r\\n');\n }\n var Worksheet = kendo.Class.extend({\n init: function (options, sharedStrings, styles, borders) {\n this.options = options;\n this._strings = sharedStrings;\n this._styles = styles;\n this._borders = borders;\n this._validations = {};\n this._comments = [];\n this._drawings = options.drawings || [];\n this._hyperlinks = (this.options.hyperlinks || []).map(function (link, i) {\n return $.extend({}, link, { rId: 'link' + i });\n });\n },\n relsToXML: function () {\n var hyperlinks = this._hyperlinks;\n var comments = this._comments;\n var drawings = this._drawings;\n if (hyperlinks.length || comments.length || drawings.length) {\n return WORKSHEET_RELS({\n hyperlinks: hyperlinks,\n comments: comments,\n sheetIndex: this.options.sheetIndex,\n drawings: drawings\n });\n }\n },\n toXML: function (index) {\n var this$1 = this;\n var mergeCells = this.options.mergedCells || [];\n var rows = this.options.rows || [];\n var data = inflate(rows, mergeCells);\n this._readCells(data);\n var autoFilter = this.options.filter;\n var filter;\n if (autoFilter && typeof autoFilter.from === 'number' && typeof autoFilter.to === 'number') {\n autoFilter = {\n from: ref(filterRowIndex(this.options), autoFilter.from),\n to: ref(filterRowIndex(this.options), autoFilter.to)\n };\n } else if (autoFilter && autoFilter.ref && autoFilter.columns) {\n filter = autoFilter;\n autoFilter = null;\n }\n var validations = [];\n for (var i in this._validations) {\n if (Object.prototype.hasOwnProperty.call(this$1._validations, i)) {\n validations.push(this$1._validations[i]);\n }\n }\n var defaultCellStyleId = null;\n if (this.options.defaultCellStyle) {\n defaultCellStyleId = this._lookupStyle(this.options.defaultCellStyle);\n }\n var freezePane = this.options.freezePane || {};\n var defaults = this.options.defaults || {};\n var lastRow = this.options.rows ? this._getLastRow() : 1;\n var lastCol = this.options.rows ? this._getLastCol() : 1;\n return WORKSHEET({\n frozenColumns: this.options.frozenColumns || freezePane.colSplit,\n frozenRows: this.options.frozenRows || freezePane.rowSplit,\n columns: this.options.columns,\n defaults: defaults,\n data: data,\n index: index,\n mergeCells: mergeCells,\n autoFilter: autoFilter,\n filter: filter,\n showGridLines: this.options.showGridLines,\n hyperlinks: this._hyperlinks,\n validations: validations,\n defaultCellStyleId: defaultCellStyleId,\n rtl: this.options.rtl !== undefined ? this.options.rtl : defaults.rtl,\n legacyDrawing: this._comments.length ? 'vml' + this.options.sheetIndex : null,\n drawing: this._drawings.length ? 'drw' + this.options.sheetIndex : null,\n lastRow: lastRow,\n lastCol: lastCol\n });\n },\n commentsXML: function () {\n if (this._comments.length) {\n return COMMENTS_XML({ comments: this._comments });\n }\n },\n drawingsXML: function (images) {\n if (this._drawings.length) {\n var rels = {};\n var main = this._drawings.map(function (drw) {\n var ref = parseRef(drw.topLeftCell);\n var img = rels[drw.image];\n if (!img) {\n img = rels[drw.image] = {\n rId: 'img' + drw.image,\n target: images[drw.image].target\n };\n }\n return {\n col: ref.col,\n colOffset: pixelsToExcel(drw.offsetX),\n row: ref.row,\n rowOffset: pixelsToExcel(drw.offsetY),\n width: pixelsToExcel(drw.width),\n height: pixelsToExcel(drw.height),\n imageId: img.rId\n };\n });\n return {\n main: DRAWINGS_XML(main),\n rels: DRAWINGS_RELS_XML(rels)\n };\n }\n },\n legacyDrawing: function () {\n if (this._comments.length) {\n return LEGACY_DRAWING({ comments: this._comments });\n }\n },\n _lookupString: function (value) {\n var key = '$' + value;\n var index = this._strings.indexes[key];\n var result;\n if (index !== undefined) {\n result = index;\n } else {\n result = this._strings.indexes[key] = this._strings.uniqueCount;\n this._strings.uniqueCount++;\n }\n this._strings.count++;\n return result;\n },\n _lookupStyle: function (style) {\n var json = JSON.stringify(style);\n if (json === '{}') {\n return 0;\n }\n var index = indexOf(json, this._styles);\n if (index < 0) {\n index = this._styles.push(json) - 1;\n }\n return index + 1;\n },\n _lookupBorder: function (border) {\n var json = JSON.stringify(border);\n if (json === '{}') {\n return;\n }\n var index = indexOf(json, this._borders);\n if (index < 0) {\n index = this._borders.push(json) - 1;\n }\n return index + 1;\n },\n _readCells: function (rowData) {\n var this$1 = this;\n for (var i = 0; i < rowData.length; i++) {\n var row = rowData[i];\n var cells = row.cells;\n row.data = [];\n for (var j = 0; j < cells.length; j++) {\n var cellData = this$1._cell(cells[j], row.index, j);\n if (cellData) {\n row.data.push(cellData);\n }\n }\n }\n },\n _cell: function (data, rowIndex, cellIndex) {\n if (!data || data === EMPTY_CELL) {\n return null;\n }\n var value = data.value;\n var border = {};\n if (data.borderLeft) {\n border.left = data.borderLeft;\n }\n if (data.borderRight) {\n border.right = data.borderRight;\n }\n if (data.borderTop) {\n border.top = data.borderTop;\n }\n if (data.borderBottom) {\n border.bottom = data.borderBottom;\n }\n border = this._lookupBorder(border);\n var defStyle = this.options.defaultCellStyle || {};\n var style = { borderId: border };\n (function (add) {\n add('color');\n add('background');\n add('bold');\n add('italic');\n add('underline');\n if (!add('fontFamily')) {\n add('fontName', 'fontFamily');\n }\n add('fontSize');\n add('format');\n if (!add('textAlign')) {\n add('hAlign', 'textAlign');\n }\n if (!add('verticalAlign')) {\n add('vAlign', 'verticalAlign');\n }\n add('wrap');\n add('indent');\n }(function (prop, target) {\n var val = data[prop];\n if (val === undefined) {\n val = defStyle[prop];\n }\n if (val !== undefined) {\n style[target || prop] = val;\n return true;\n }\n }));\n var columns = this.options.columns || [];\n var column = columns[cellIndex];\n var type = typeof value;\n if (column && column.autoWidth && (!data.colSpan || data.colSpan === 1)) {\n var displayValue = value;\n if (type === 'number') {\n displayValue = IntlService.toString(value, data.format);\n }\n column.width = Math.max(column.width || 0, String(displayValue).length);\n }\n if (type === 'string') {\n value = stripFunnyChars(value);\n value = this._lookupString(value);\n type = 's';\n } else if (type === 'number') {\n type = 'n';\n } else if (type === 'boolean') {\n type = 'b';\n value = Number(value);\n } else if (value && value.getTime) {\n type = null;\n value = dateToSerial(value);\n if (!style.format) {\n style.format = 'mm-dd-yy';\n }\n } else {\n type = null;\n value = null;\n }\n style = this._lookupStyle(style);\n var cellName = ref(rowIndex, cellIndex);\n if (data.validation) {\n this._addValidation(data.validation, cellName);\n }\n if (data.comment) {\n var anchor = [\n cellIndex + 1,\n 15,\n rowIndex,\n 10,\n cellIndex + 3,\n 15,\n rowIndex + 3,\n 4\n ];\n this._comments.push({\n ref: cellName,\n text: data.comment,\n row: rowIndex,\n col: cellIndex,\n anchor: anchor.join(', ')\n });\n }\n return {\n value: value,\n formula: data.formula,\n type: type,\n style: style,\n ref: cellName\n };\n },\n _addValidation: function (v, ref) {\n var tmp = {\n showErrorMessage: v.type === 'reject' ? 1 : 0,\n formula1: v.from,\n formula2: v.to,\n type: MAP_EXCEL_TYPE[v.dataType] || v.dataType,\n operator: MAP_EXCEL_OPERATOR[v.comparerType] || v.comparerType,\n allowBlank: v.allowNulls ? 1 : 0,\n showDropDown: v.showButton ? 0 : 1,\n error: v.messageTemplate,\n errorTitle: v.titleTemplate\n };\n var json = JSON.stringify(tmp);\n if (!this._validations[json]) {\n this._validations[json] = tmp;\n tmp.sqref = [];\n }\n this._validations[json].sqref.push(ref);\n },\n _getLastRow: function () {\n return countData(this.options.rows);\n },\n _getLastCol: function () {\n var last = 0;\n this.options.rows.forEach(function (row) {\n if (row.cells) {\n last = Math.max(last, countData(row.cells));\n }\n });\n return last;\n }\n });\n function countData(data) {\n var last = data.length;\n data.forEach(function (el) {\n if (el.index && el.index >= last) {\n last = el.index + 1;\n }\n });\n return last;\n }\n var MAP_EXCEL_OPERATOR = {\n greaterThanOrEqualTo: 'greaterThanOrEqual',\n lessThanOrEqualTo: 'lessThanOrEqual'\n };\n var MAP_EXCEL_TYPE = { number: 'decimal' };\n var defaultFormats = {\n 'General': 0,\n '0': 1,\n '0.00': 2,\n '#,##0': 3,\n '#,##0.00': 4,\n '0%': 9,\n '0.00%': 10,\n '0.00E+00': 11,\n '# ?/?': 12,\n '# ??/??': 13,\n 'mm-dd-yy': 14,\n 'd-mmm-yy': 15,\n 'd-mmm': 16,\n 'mmm-yy': 17,\n 'h:mm AM/PM': 18,\n 'h:mm:ss AM/PM': 19,\n 'h:mm': 20,\n 'h:mm:ss': 21,\n 'm/d/yy h:mm': 22,\n '#,##0 ;(#,##0)': 37,\n '#,##0 ;[Red](#,##0)': 38,\n '#,##0.00;(#,##0.00)': 39,\n '#,##0.00;[Red](#,##0.00)': 40,\n 'mm:ss': 45,\n '[h]:mm:ss': 46,\n 'mmss.0': 47,\n '##0.0E+0': 48,\n '@': 49,\n '[$-404]e/m/d': 27,\n 'm/d/yy': 30,\n 't0': 59,\n 't0.00': 60,\n 't#,##0': 61,\n 't#,##0.00': 62,\n 't0%': 67,\n 't0.00%': 68,\n 't# ?/?': 69,\n 't# ??/??': 70\n };\n function convertColor(value) {\n var color = value;\n if (color.length < 6) {\n color = color.replace(/(\\w)/g, function ($0, $1) {\n return $1 + $1;\n });\n }\n color = color.substring(1).toUpperCase();\n if (color.length < 8) {\n color = 'FF' + color;\n }\n return color;\n }\n var Workbook = kendo.Class.extend({\n init: function (options) {\n var this$1 = this;\n this.options = options || {};\n this._strings = {\n indexes: {},\n count: 0,\n uniqueCount: 0\n };\n this._styles = [];\n this._borders = [];\n this._images = this.options.images;\n this._imgId = 0;\n this._sheets = map(this.options.sheets || [], function (options, i) {\n options.defaults = this$1.options;\n options.sheetIndex = i + 1;\n return new Worksheet(options, this$1._strings, this$1._styles, this$1._borders);\n });\n },\n imageFilename: function (mimeType) {\n var id = ++this._imgId;\n switch (mimeType) {\n case 'image/jpg':\n case 'image/jpeg':\n return 'image' + id + '.jpg';\n case 'image/png':\n return 'image' + id + '.png';\n case 'image/gif':\n return 'image' + id + '.gif';\n default:\n return 'image' + id + '.bin';\n }\n },\n toZIP: function () {\n var this$1 = this;\n var zip = createZip();\n var docProps = zip.folder('docProps');\n docProps.file('core.xml', CORE({\n creator: this.options.creator || 'Kendo UI',\n lastModifiedBy: this.options.creator || 'Kendo UI',\n created: this.options.date || new Date().toJSON(),\n modified: this.options.date || new Date().toJSON()\n }));\n var sheetCount = this._sheets.length;\n docProps.file('app.xml', APP({ sheets: this._sheets }));\n var rels = zip.folder('_rels');\n rels.file('.rels', RELS);\n var xl = zip.folder('xl');\n var xlRels = xl.folder('_rels');\n xlRels.file('workbook.xml.rels', WORKBOOK_RELS({ count: sheetCount }));\n if (this._images) {\n var media = xl.folder('media');\n Object.keys(this._images).forEach(function (id) {\n var img = this$1._images[id];\n var filename = this$1.imageFilename(img.type);\n media.file(filename, img.data);\n img.target = '../media/' + filename;\n });\n }\n var sheetIds = {};\n xl.file('workbook.xml', WORKBOOK({\n sheets: this._sheets,\n filterNames: map(this._sheets, function (sheet, index) {\n var options = sheet.options;\n var sheetName = options.name || options.title || 'Sheet' + (index + 1);\n sheetIds[sheetName.toLowerCase()] = index;\n var filter = options.filter;\n if (filter) {\n if (filter.ref) {\n var a = filter.ref.split(':');\n var from = parseRef(a[0]);\n var to = parseRef(a[1]);\n return {\n localSheetId: index,\n name: sheetName,\n from: $ref(from.row, from.col),\n to: $ref(to.row, to.col)\n };\n } else if (typeof filter.from !== 'undefined' && typeof filter.to !== 'undefined') {\n return {\n localSheetId: index,\n name: sheetName,\n from: $ref(filterRowIndex(options), filter.from),\n to: $ref(filterRowIndex(options), filter.to)\n };\n }\n }\n }),\n userNames: map(this.options.names || [], function (def) {\n return {\n name: def.localName,\n localSheetId: def.sheet ? sheetIds[def.sheet.toLowerCase()] : null,\n value: def.value,\n hidden: def.hidden\n };\n })\n }));\n var worksheets = xl.folder('worksheets');\n var drawings = xl.folder('drawings');\n var drawingsRels = drawings.folder('_rels');\n var sheetRels = worksheets.folder('_rels');\n var commentFiles = [];\n var drawingFiles = [];\n for (var idx = 0; idx < sheetCount; idx++) {\n var sheet = this$1._sheets[idx];\n var sheetName = 'sheet' + (idx + 1) + '.xml';\n var sheetXML = sheet.toXML(idx);\n var relsXML = sheet.relsToXML();\n var commentsXML = sheet.commentsXML();\n var legacyDrawing = sheet.legacyDrawing();\n var drawingsXML = sheet.drawingsXML(this$1._images);\n if (relsXML) {\n sheetRels.file(sheetName + '.rels', relsXML);\n }\n if (commentsXML) {\n var name = 'comments' + sheet.options.sheetIndex + '.xml';\n xl.file(name, commentsXML);\n commentFiles.push(name);\n }\n if (legacyDrawing) {\n drawings.file('vmlDrawing' + sheet.options.sheetIndex + '.vml', legacyDrawing);\n }\n if (drawingsXML) {\n var name$1 = 'drawing' + sheet.options.sheetIndex + '.xml';\n drawings.file(name$1, drawingsXML.main);\n drawingsRels.file(name$1 + '.rels', drawingsXML.rels);\n drawingFiles.push(name$1);\n }\n worksheets.file(sheetName, sheetXML);\n }\n var borders = map(this._borders, parseJSON);\n var styles = map(this._styles, parseJSON);\n var hasFont = function (style) {\n return style.underline || style.bold || style.italic || style.color || style.fontFamily || style.fontSize;\n };\n var convertFontSize = function (value) {\n var fontInPx = Number(value);\n var fontInPt;\n if (fontInPx) {\n fontInPt = fontInPx * 3 / 4;\n }\n return fontInPt;\n };\n var fonts = map(styles, function (style) {\n if (style.fontSize) {\n style.fontSize = convertFontSize(style.fontSize);\n }\n if (style.color) {\n style.color = convertColor(style.color);\n }\n if (hasFont(style)) {\n return style;\n }\n });\n var formats = map(styles, function (style) {\n if (style.format && defaultFormats[style.format] === undefined) {\n return style;\n }\n });\n var fills = map(styles, function (style) {\n if (style.background) {\n style.background = convertColor(style.background);\n return style;\n }\n });\n xl.file('styles.xml', STYLES({\n fonts: fonts,\n fills: fills,\n formats: formats,\n borders: borders,\n styles: map(styles, function (style) {\n var result = {};\n if (hasFont(style)) {\n result.fontId = indexOf(style, fonts) + 1;\n }\n if (style.background) {\n result.fillId = indexOf(style, fills) + 2;\n }\n result.textAlign = style.textAlign;\n result.indent = style.indent;\n result.verticalAlign = style.verticalAlign;\n result.wrap = style.wrap;\n result.borderId = style.borderId;\n if (style.format) {\n if (defaultFormats[style.format] !== undefined) {\n result.numFmtId = defaultFormats[style.format];\n } else {\n result.numFmtId = 165 + indexOf(style, formats);\n }\n }\n return result;\n })\n }));\n xl.file('sharedStrings.xml', SHARED_STRINGS(this._strings));\n zip.file('[Content_Types].xml', CONTENT_TYPES({\n sheetCount: sheetCount,\n commentFiles: commentFiles,\n drawingFiles: drawingFiles\n }));\n return zip;\n },\n toDataURL: function () {\n var zip = this.toZIP();\n return zip.generateAsync ? zip.generateAsync(DATA_URL_OPTIONS).then(toDataURI) : toDataURI(zip.generate(DATA_URL_OPTIONS));\n },\n toBlob: function () {\n var zip = this.toZIP();\n if (zip.generateAsync) {\n return zip.generateAsync(BLOB_OPTIONS);\n }\n return new Blob([zip.generate(ARRAYBUFFER_OPTIONS)], { type: MIME_TYPE });\n }\n });\n function borderStyle(width) {\n var alias = 'thin';\n if (width === 2) {\n alias = 'medium';\n } else if (width === 3) {\n alias = 'thick';\n }\n return alias;\n }\n function borderSideTemplate(name, style) {\n var result = '';\n if (style) {\n result += '<' + name + ' style=\"' + borderStyle(style.size) + '\">';\n if (style.color) {\n result += '';\n }\n result += '';\n }\n return result;\n }\n function borderTemplate(border) {\n return '' + borderSideTemplate('left', border.left) + borderSideTemplate('right', border.right) + borderSideTemplate('top', border.top) + borderSideTemplate('bottom', border.bottom) + '';\n }\n var EMPTY_CELL = {};\n function inflate(rows, mergedCells) {\n var rowData = [];\n var rowsByIndex = [];\n indexRows(rows, function (row, index) {\n var data = {\n _source: row,\n index: index,\n height: row.height,\n level: row.level,\n cells: []\n };\n rowData.push(data);\n rowsByIndex[index] = data;\n });\n var sorted = sortByIndex(rowData).slice(0);\n var ctx = {\n rowData: rowData,\n rowsByIndex: rowsByIndex,\n mergedCells: mergedCells\n };\n for (var i = 0; i < sorted.length; i++) {\n fillCells(sorted[i], ctx);\n delete sorted[i]._source;\n }\n return sortByIndex(rowData);\n }\n function indexRows(rows, callback) {\n for (var i = 0; i < rows.length; i++) {\n var row = rows[i];\n if (!row) {\n continue;\n }\n var index = row.index;\n if (typeof index !== 'number') {\n index = i;\n }\n callback(row, index);\n }\n }\n function sortByIndex(items) {\n return items.sort(function (a, b) {\n return a.index - b.index;\n });\n }\n function pushUnique(array, el) {\n if (array.indexOf(el) < 0) {\n array.push(el);\n }\n }\n function getSpan(mergedCells, ref) {\n for (var i = 0; i < mergedCells.length; ++i) {\n var range = mergedCells[i];\n var a = range.split(':');\n var topLeft = a[0];\n if (topLeft === ref) {\n var bottomRight = a[1];\n topLeft = parseRef(topLeft);\n bottomRight = parseRef(bottomRight);\n return {\n rowSpan: bottomRight.row - topLeft.row + 1,\n colSpan: bottomRight.col - topLeft.col + 1\n };\n }\n }\n }\n function parseRef(ref) {\n function getcol(str) {\n var upperStr = str.toUpperCase();\n var col = 0;\n for (var i = 0; i < upperStr.length; ++i) {\n col = col * 26 + upperStr.charCodeAt(i) - 64;\n }\n return col - 1;\n }\n function getrow(str) {\n return parseInt(str, 10) - 1;\n }\n var m = /^([a-z]+)(\\d+)$/i.exec(ref);\n return {\n row: getrow(m[2]),\n col: getcol(m[1])\n };\n }\n function pixelsToExcel(px) {\n return Math.round(px * 9525);\n }\n function fillCells(data, ctx) {\n var row = data._source;\n var rowIndex = data.index;\n var cells = row.cells;\n var cellData = data.cells;\n if (!cells) {\n return;\n }\n for (var i = 0; i < cells.length; i++) {\n var cell = cells[i] || EMPTY_CELL;\n var rowSpan = cell.rowSpan || 1;\n var colSpan = cell.colSpan || 1;\n var cellIndex = insertCell(cellData, cell);\n var topLeftRef = ref(rowIndex, cellIndex);\n if (rowSpan === 1 && colSpan === 1) {\n var tmp = getSpan(ctx.mergedCells, topLeftRef);\n if (tmp) {\n colSpan = tmp.colSpan;\n rowSpan = tmp.rowSpan;\n }\n }\n spanCell(cell, cellData, cellIndex, colSpan);\n if (rowSpan > 1 || colSpan > 1) {\n pushUnique(ctx.mergedCells, topLeftRef + ':' + ref(rowIndex + rowSpan - 1, cellIndex + colSpan - 1));\n }\n if (rowSpan > 1) {\n for (var ri = rowIndex + 1; ri < rowIndex + rowSpan; ri++) {\n var nextRow = ctx.rowsByIndex[ri];\n if (!nextRow) {\n nextRow = ctx.rowsByIndex[ri] = {\n index: ri,\n cells: []\n };\n ctx.rowData.push(nextRow);\n }\n spanCell(cell, nextRow.cells, cellIndex - 1, colSpan + 1);\n }\n }\n }\n }\n function insertCell(data, cell) {\n var index;\n if (typeof cell.index === 'number') {\n index = cell.index;\n insertCellAt(data, cell, cell.index);\n } else {\n index = appendCell(data, cell);\n }\n return index;\n }\n function insertCellAt(data, cell, index) {\n data[index] = cell;\n }\n function appendCell(data, cell) {\n var index = data.length;\n for (var i = 0; i < data.length + 1; i++) {\n if (!data[i]) {\n data[i] = cell;\n index = i;\n break;\n }\n }\n return index;\n }\n function spanCell(cell, row, startIndex, colSpan) {\n for (var i = 1; i < colSpan; i++) {\n var tmp = {\n borderTop: cell.borderTop,\n borderRight: cell.borderRight,\n borderBottom: cell.borderBottom,\n borderLeft: cell.borderLeft\n };\n insertCellAt(row, tmp, startIndex + i);\n }\n }\n var SPREADSHEET_FILTERS = function (ref$1) {\n var ref = ref$1.ref;\n var columns = ref$1.columns;\n var generators = ref$1.generators;\n return '\\n\\n ' + foreach(columns, function (col) {\n return '\\n \\n ' + generators[col.filter](col) + '\\n \\n ';\n }) + '\\n';\n };\n var SPREADSHEET_CUSTOM_FILTER = function (ref) {\n var logic = ref.logic;\n var criteria = ref.criteria;\n return '\\n\\n' + foreach(criteria, function (f) {\n var op = spreadsheetFilters.customOperator(f);\n var val = spreadsheetFilters.customValue(f);\n return '';\n }) + '\\n';\n };\n var SPREADSHEET_DYNAMIC_FILTER = function (ref) {\n var type = ref.type;\n return '';\n };\n var SPREADSHEET_TOP_FILTER = function (ref) {\n var type = ref.type;\n var value = ref.value;\n return '';\n };\n var SPREADSHEET_VALUE_FILTER = function (ref) {\n var blanks = ref.blanks;\n var values = ref.values;\n return '\\n ' + foreach(values, function (value) {\n return '\\n ';\n }) + '\\n ';\n };\n function spreadsheetFilters(filter) {\n return SPREADSHEET_FILTERS({\n ref: filter.ref,\n columns: filter.columns,\n generators: {\n custom: SPREADSHEET_CUSTOM_FILTER,\n dynamic: SPREADSHEET_DYNAMIC_FILTER,\n top: SPREADSHEET_TOP_FILTER,\n value: SPREADSHEET_VALUE_FILTER\n }\n });\n }\n spreadsheetFilters.customOperator = function (f) {\n return {\n eq: 'equal',\n gt: 'greaterThan',\n gte: 'greaterThanOrEqual',\n lt: 'lessThan',\n lte: 'lessThanOrEqual',\n ne: 'notEqual',\n doesnotstartwith: 'notEqual',\n doesnotendwith: 'notEqual',\n doesnotcontain: 'notEqual',\n doesnotmatch: 'notEqual'\n }[f.operator.toLowerCase()];\n };\n function quoteSheet(name) {\n if (/^\\'/.test(name)) {\n return name;\n }\n if (/^[a-z_][a-z0-9_]*$/i.test(name)) {\n return name;\n }\n return '\\'' + name.replace(/\\x27/g, '\\\\\\'') + '\\'';\n }\n spreadsheetFilters.customValue = function (f) {\n function esc(str) {\n return str.replace(/([*?])/g, '~$1');\n }\n switch (f.operator.toLowerCase()) {\n case 'startswith':\n case 'doesnotstartwith':\n return esc(f.value) + '*';\n case 'endswith':\n case 'doesnotendwith':\n return '*' + esc(f.value);\n case 'contains':\n case 'doesnotcontain':\n return '*' + esc(f.value) + '*';\n default:\n return f.value;\n }\n };\n spreadsheetFilters.dynamicFilterType = function (type) {\n return {\n quarter1: 'Q1',\n quarter2: 'Q2',\n quarter3: 'Q3',\n quarter4: 'Q4',\n january: 'M1',\n february: 'M2',\n march: 'M3',\n april: 'M4',\n may: 'M5',\n june: 'M6',\n july: 'M7',\n august: 'M8',\n september: 'M9',\n october: 'M10',\n november: 'M11',\n december: 'M12'\n }[type.toLowerCase()] || type;\n };\n kendo.deepExtend(kendo.ooxml, {\n IntlService: IntlService,\n Workbook: Workbook,\n Worksheet: Worksheet\n });\n }(window.kendo.jQuery));\n}, typeof define == 'function' && define.amd ? define : function (a1, a2, a3) {\n (a3 || a2)();\n}));\n(function (f, define) {\n define('ooxml/main', [\n 'kendo.core',\n 'ooxml/kendo-ooxml'\n ], f);\n}(function () {\n (function ($) {\n var Workbook = kendo.ooxml.Workbook;\n kendo.ooxml.IntlService.register({ toString: kendo.toString });\n kendo.ooxml.Workbook = Workbook.extend({\n toDataURL: function () {\n var result = Workbook.fn.toDataURL.call(this);\n if (typeof result !== 'string') {\n throw new Error('The toDataURL method can be used only with jsZip 2. Either include jsZip 2 or use the toDataURLAsync method.');\n }\n return result;\n },\n toDataURLAsync: function () {\n var deferred = $.Deferred();\n var result = Workbook.fn.toDataURL.call(this);\n if (typeof result === 'string') {\n result = deferred.resolve(result);\n } else if (result && result.then) {\n result.then(function (dataURI) {\n deferred.resolve(dataURI);\n }, function () {\n deferred.reject();\n });\n }\n return deferred.promise();\n }\n });\n }(window.kendo.jQuery));\n}, typeof define == 'function' && define.amd ? define : function (a1, a2, a3) {\n (a3 || a2)();\n}));\n(function (f, define) {\n define('kendo.ooxml', ['ooxml/main'], f);\n}(function () {\n var __meta__ = {\n id: 'ooxml',\n name: 'XLSX generation',\n category: 'framework',\n advanced: true,\n depends: ['core']\n };\n}, typeof define == 'function' && define.amd ? define : function (a1, a2, a3) {\n (a3 || a2)();\n}));"]}