Files
upo-senior-assistant/SeniorAssistant/wwwroot/kendo/2018.1.221/js/kendo.ooxml.min.js
Giacomo c807c474c4 Init
- aggiunto un po di tutto comeil progetto del prof
2018-09-14 19:38:02 +02:00

27 lines
29 KiB
JavaScript

/**
* Kendo UI v2018.1.117 (http://www.telerik.com/kendo-ui)
* Copyright 2018 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial license terms.
*/
!function(e,define){define("ooxml/utils.min",["kendo.core.min"],e)}(function(){!function(){kendo.ooxml=kendo.ooxml||{},kendo.ooxml.createZip=function(){if("undefined"==typeof JSZip)throw Error("JSZip not found. Check http://docs.telerik.com/kendo-ui/framework/excel/introduction#requirements for more details.");return new JSZip}}()},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("ooxml/kendo-ooxml.min",["kendo.core.min","ooxml/utils.min"],e)}(function(){!function(e){function t(e){return R+e}function n(e,t){return t.indexOf(e)}function o(e){return(e+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\'/g,"&#39;")}function r(e,t){var n,o="";for(n=0;n<e;++n)o+=t(n);return o}function i(e,t){var n,o="";for(n=0;n<e.length;++n)o+=t(e[n],n);return o}function l(e){return"string"==typeof e?"<f>"+o(e)+"</f>":'<f t="array" ref="'+e.ref+'">'+o(e.src)+"</f>"}function s(e){var t=Math.floor(e/26)-1;return(t>=0?s(t):"")+String.fromCharCode(65+e%26)}function a(e,t){return s(t)+(e+1)}function d(e,t){return s(t)+"$"+(e+1)}function c(e){var t=e.frozenRows||(e.freezePane||{}).rowSplit||1;return t-1}function f(e){return(e/7*100+.5)/100}function m(e){return.75*e}function u(e){return(e+"").replace(/[\x00-\x08]/g,"").replace(/\n/g,"\r\n")}function p(e){var t=e;return t.length<6&&(t=t.replace(/(\w)/g,function(e,t){return t+t})),t=t.substring(1).toUpperCase(),t.length<8&&(t="FF"+t),t}function h(e){var t="thin";return 2===e?t="medium":3===e&&(t="thick"),t}function g(e,t){var n="";return t&&(n+="<"+e+' style="'+h(t.size)+'">',t.color&&(n+='<color rgb="'+p(t.color)+'"/>'),n+="</"+e+">"),n}function x(e){return"<border>"+g("left",e.left)+g("right",e.right)+g("top",e.top)+g("bottom",e.bottom)+"</border>"}function y(e,t){var n,o,r,i=[],l=[];for(v(e,function(e,t){var n={_source:e,index:t,height:e.height,cells:[]};i.push(n),l[t]=n}),n=w(i).slice(0),o={rowData:i,rowsByIndex:l,mergedCells:t},r=0;r<n.length;r++)T(n[r],o),delete n[r]._source;return w(i)}function v(e,t){var n,o,r;for(n=0;n<e.length;n++)o=e[n],o&&(r=o.index,"number"!=typeof r&&(r=n),t(o,r))}function w(e){return e.sort(function(e,t){return e.index-t.index})}function b(e,t){e.indexOf(t)<0&&e.push(t)}function k(e,t){var n,o,r,i,l;for(n=0;n<e.length;++n)if(o=e[n],r=o.split(":"),i=r[0],i===t)return l=r[1],i=S(i),l=S(l),{rowSpan:l.row-i.row+1,colSpan:l.col-i.col+1}}function S(e){function t(e){var t,n=e.toUpperCase(),o=0;for(t=0;t<n.length;++t)o=26*o+n.charCodeAt(t)-64;return o-1}function n(e){return parseInt(e,10)-1}var o=/^([a-z]+)(\d+)$/i.exec(e);return{row:n(o[2]),col:t(o[1])}}function T(e,t){var n,o,r,i,l,s,d,c,f,m=e._source,u=e.index,p=m.cells,h=e.cells;if(p)for(n=0;n<p.length;n++)if(o=p[n]||oe,r=o.rowSpan||1,i=o.colSpan||1,l=I(h,o),s=a(u,l),1===r&&1===i&&(d=k(t.mergedCells,s),d&&(i=d.colSpan,r=d.rowSpan)),D(o,h,l,i),(r>1||i>1)&&b(t.mergedCells,s+":"+a(u+r-1,l+i-1)),r>1)for(c=u+1;c<u+r;c++)f=t.rowsByIndex[c],f||(f=t.rowsByIndex[c]={index:c,cells:[]},t.rowData.push(f)),D(o,f.cells,l-1,i+1)}function I(e,t){var n;return"number"==typeof t.index?(n=t.index,C(e,t,t.index)):n=_(e,t),n}function C(e,t,n){e[n]=t}function _(e,t){var n,o=e.length;for(n=0;n<e.length+1;n++)if(!e[n]){e[n]=t,o=n;break}return o}function D(e,t,n,o){var r,i;for(r=1;r<o;r++)i={borderTop:e.borderTop,borderRight:e.borderRight,borderBottom:e.borderBottom,borderLeft:e.borderLeft},C(t,i,n+r)}function F(e){return re({ref:e.ref,columns:e.columns,generators:{custom:ie,dynamic:le,top:se,value:ae}})}var M,A,P,L,O,R,N,q,E,z,V,B,W,U,j,J,H,X,Z,$,Q,G,K,Y,ee,te,ne,oe,re,ie,le,se,ae;window.kendo.ooxml=window.kendo.ooxml||{},M=kendo.ooxml,A=e.map,P=M.createZip,L={toString:function(e){return e}},O=kendo.Class.extend({}),O.register=function(e){L=e},O.toString=function(e,t){return L.toString(e,t)},R="data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;base64,",N={compression:"DEFLATE",type:"base64"},q=6e4,E=864e5,z=JSON.parse.bind(JSON),V='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r',B=V+'\n <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n <Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/>\n <Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/>\n <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/>\n </Relationships>',W=function(e){var t=e.creator,n=e.lastModifiedBy,r=e.created,i=e.modified;return V+'\n <cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties"\n xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/"\n xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <dc:creator>'+o(t)+"</dc:creator>\n <cp:lastModifiedBy>"+o(n)+'</cp:lastModifiedBy>\n <dcterms:created xsi:type="dcterms:W3CDTF">'+o(r)+'</dcterms:created>\n <dcterms:modified xsi:type="dcterms:W3CDTF">'+o(i)+"</dcterms:modified>\n</cp:coreProperties>"},U=function(e){var t=e.sheets;return V+'\n<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes">\n <Application>Microsoft Excel</Application>\n <DocSecurity>0</DocSecurity>\n <ScaleCrop>false</ScaleCrop>\n <HeadingPairs>\n <vt:vector size="2" baseType="variant">\n <vt:variant>\n <vt:lpstr>Worksheets</vt:lpstr>\n </vt:variant>\n <vt:variant>\n <vt:i4>'+t.length+'</vt:i4>\n </vt:variant>\n </vt:vector>\n </HeadingPairs>\n <TitlesOfParts>\n <vt:vector size="'+t.length+'" baseType="lpstr">'+i(t,function(e,t){return e.options.title?"<vt:lpstr>"+o(e.options.title)+"</vt:lpstr>":"<vt:lpstr>Sheet"+(t+1)+"</vt:lpstr>"})+"</vt:vector>\n </TitlesOfParts>\n <LinksUpToDate>false</LinksUpToDate>\n <SharedDoc>false</SharedDoc>\n <HyperlinksChanged>false</HyperlinksChanged>\n <AppVersion>14.0300</AppVersion>\n</Properties>"},j=function(e){var t=e.count;return V+'\n<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">\n <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" />\n <Default Extension="xml" ContentType="application/xml" />\n <Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" />\n <Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/>\n <Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/>\n '+r(t,function(e){return'<Override PartName="/xl/worksheets/sheet'+(e+1)+'.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" />'})+'\n <Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml" />\n <Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml" />\n</Types>'},J=function(e){var t=e.sheets,n=e.filterNames,r=e.userNames;return V+'\n<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">\n <fileVersion appName="xl" lastEdited="5" lowestEdited="5" rupBuild="9303" />\n <workbookPr defaultThemeVersion="124226" />\n <bookViews>\n <workbookView xWindow="240" yWindow="45" windowWidth="18195" windowHeight="7995" />\n </bookViews>\n <sheets>\n '+i(t,function(e,t){var n=e.options,r=n.name||n.title||"Sheet"+(t+1);return'<sheet name="'+o(r)+'" sheetId="'+(t+1)+'" r:id="rId'+(t+1)+'" />'})+"\n </sheets>\n "+(n.length||r.length?"\n <definedNames>\n "+i(n,function(e){return'\n <definedName name="_xlnm._FilterDatabase" hidden="1" localSheetId="'+e.localSheetId+'">'+o(e.name)+"!$"+o(e.from)+":$"+o(e.to)+"</definedName>"})+"\n "+i(r,function(e){return'\n <definedName name="'+e.name+'" hidden="'+(e.hidden?1:0)+'"'+(null!=e.localSheetId?'localSheetId="'+e.localSheetId+'"':"")+"</definedName>"})+"\n </definedNames>":"")+'\n <calcPr fullCalcOnLoad="1" calcId="145621" />\n</workbook>'},H=function(e){var t=e.frozenColumns,n=e.frozenRows,r=e.columns,s=e.defaults,a=e.data,d=e.index,c=e.mergeCells,u=e.autoFilter,p=e.filter,h=e.showGridLines,g=e.hyperlinks,x=e.validations,y=e.defaultCellStyleId,v=e.rtl;return V+'\n<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" mc:Ignorable="x14ac">\n <dimension ref="A1" />\n\n <sheetViews>\n <sheetView '+(v?'rightToLeft="1"':"")+" "+(0===d?'tabSelected="1"':"")+' workbookViewId="0" '+(h===!1?'showGridLines="0"':"")+">\n "+(n||t?'\n <pane state="frozen"\n '+(t?'xSplit="'+t+'"':"")+"\n "+(n?'ySplit="'+n+'"':"")+'\n topLeftCell="'+(String.fromCharCode(65+(t||0))+((n||0)+1))+'"\n />':"")+'\n </sheetView>\n </sheetViews>\n\n <sheetFormatPr x14ac:dyDescent="0.25" defaultRowHeight="'+(s.rowHeight?.75*s.rowHeight:15)+'"\n '+(s.columnWidth?'defaultColWidth="'+f(s.columnWidth)+'"':"")+" />\n\n "+(null!=y||r&&r.length>0?"\n <cols>\n "+(r&&r.length?"":'\n <col min="1" max="16384" style="'+y+'"\n '+(s.columnWidth?'width="'+f(s.columnWidth)+'"':"")+" /> ")+"\n "+i(r,function(e,t){var n="number"==typeof e.index?e.index+1:t+1;return 0===e.width?"<col "+(null!=y?'style="'+y+'"':"")+'\n min="'+n+'" max="'+n+'" hidden="1" customWidth="1" />':"<col "+(null!=y?'style="'+y+'"':"")+'\n min="'+n+'" max="'+n+'" customWidth="1"\n '+(e.autoWidth?'width="'+(7*e.width+5)/7*256/256+'" bestFit="1"':'width="'+f(e.width)+'"')+" />"})+"\n </cols>":"")+"\n\n <sheetData>\n "+i(a,function(e,t){var n="number"==typeof e.index?e.index+1:t+1;return'\n <row r="'+n+'" x14ac:dyDescent="0.25"\n '+(0===e.height?'hidden="1"':e.height?'ht="'+m(e.height)+'" customHeight="1"':"")+">\n "+i(e.data,function(e){return'\n <c r="'+e.ref+'" '+(e.style?'s="'+e.style+'"':"")+" "+(e.type?'t="'+e.type+'"':"")+">\n "+(null!=e.formula?l(e.formula):"")+"\n "+(null!=e.value?"<v>"+o(e.value)+"</v>":"")+"\n </c>"})+"\n </row>\n "})+"\n </sheetData>\n\n "+(u?'<autoFilter ref="'+u.from+":"+u.to+'"/>':p?F(p):"")+"\n\n "+(c.length?'\n <mergeCells count="'+c.length+'">\n '+i(c,function(e){return'<mergeCell ref="'+e+'"/>'})+"\n </mergeCells>":"")+"\n\n "+(x.length?"\n <dataValidations>\n "+i(x,function(e){return'\n <dataValidation sqref="'+e.sqref.join(" ")+'"\n showErrorMessage="'+e.showErrorMessage+'"\n type="'+o(e.type)+'"\n '+("list"!==e.type?'operator="'+o(e.operator)+'"':"")+'\n allowBlank="'+e.allowBlank+'"\n showDropDown="'+e.showDropDown+'"\n '+(e.error?'error="'+o(e.error)+'"':"")+"\n "+(e.errorTitle?'errorTitle="'+o(e.errorTitle)+'"':"")+">\n "+(e.formula1?"<formula1>"+o(e.formula1)+"</formula1>":"")+"\n "+(e.formula2?"<formula2>"+o(e.formula2)+"</formula2>":"")+"\n </dataValidation>"})+"\n </dataValidations>":"")+"\n\n "+(g.length?"\n <hyperlinks>\n "+i(g,function(e,t){return'\n <hyperlink ref="'+e.ref+'" r:id="rId'+t+'"/>'})+"\n </hyperlinks>":"")+'\n\n <pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3" />\n</worksheet>'},X=function(e){var t=e.count;return V+'\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n '+r(t,function(e){return'\n <Relationship Id="rId'+(e+1)+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet'+(e+1)+'.xml" />'})+'\n <Relationship Id="rId'+(t+1)+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml" />\n <Relationship Id="rId'+(t+2)+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml" />\n</Relationships>'},Z=function(e){var t=e.hyperlinks;return V+'\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n '+i(t,function(e,t){return'\n <Relationship Id="rId'+t+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="'+o(e.target)+'" TargetMode="External" />'})+"\n</Relationships>"},$=function(e){var t=e.count,n=e.uniqueCount,r=e.indexes;return V+'\n<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'+t+'" uniqueCount="'+n+'">\n '+i(Object.keys(r),function(e){return'\n <si><t xml:space="preserve">'+o(e.substring(1))+"</t></si>"})+"\n</sst>"},Q=function(e){var t=e.formats,n=e.fonts,r=e.fills,l=e.borders,s=e.styles;return V+'\n<styleSheet\n xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"\n xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"\n mc:Ignorable="x14ac"\n xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">\n <numFmts count="'+t.length+'">\n '+i(t,function(e,t){return'\n <numFmt formatCode="'+o(e.format)+'" numFmtId="'+(165+t)+'" />'})+'\n </numFmts>\n <fonts count="'+(n.length+1)+'" x14ac:knownFonts="1">\n <font>\n <sz val="11" />\n <color theme="1" />\n <name val="Calibri" />\n <family val="2" />\n <scheme val="minor" />\n </font>\n '+i(n,function(e){return'\n <font>\n <sz val="'+(e.fontSize||11)+'" />\n '+(e.bold?"<b/>":"")+"\n "+(e.italic?"<i/>":"")+"\n "+(e.underline?"<u/>":"")+"\n "+(e.color?'<color rgb="'+o(e.color)+'" />':'<color theme="1" />')+"\n "+(e.fontFamily?'\n <name val="'+o(e.fontFamily)+'" />\n <family val="2" />\n ':'\n <name val="Calibri" />\n <family val="2" />\n <scheme val="minor" />\n ')+"\n </font>"})+'\n </fonts>\n <fills count="'+(r.length+2)+'">\n <fill><patternFill patternType="none"/></fill>\n <fill><patternFill patternType="gray125"/></fill>\n '+i(r,function(e){return"\n "+(e.background?'\n <fill>\n <patternFill patternType="solid">\n <fgColor rgb="'+o(e.background)+'"/>\n </patternFill>\n </fill>\n ':"")})+'\n </fills>\n <borders count="'+(l.length+1)+'">\n <border><left/><right/><top/><bottom/><diagonal/></border>\n '+i(l,x)+'\n </borders>\n <cellStyleXfs count="1">\n <xf borderId="0" fillId="0" fontId="0" />\n </cellStyleXfs>\n <cellXfs count="'+(s.length+1)+'">\n <xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" />\n '+i(s,function(e){return'\n <xf xfId="0"\n '+(e.fontId?'fontId="'+e.fontId+'" applyFont="1"':"")+"\n "+(e.fillId?'fillId="'+e.fillId+'" applyFill="1"':"")+"\n "+(e.numFmtId?'numFmtId="'+e.numFmtId+'" applyNumberFormat="1"':"")+"\n "+(e.textAlign||e.verticalAlign||e.wrap?'applyAlignment="1"':"")+"\n "+(e.borderId?'borderId="'+e.borderId+'" applyBorder="1"':"")+">\n "+(e.textAlign||e.verticalAlign||e.wrap?"\n <alignment\n "+(e.textAlign?'horizontal="'+o(e.textAlign)+'"':"")+"\n "+(e.verticalAlign?'vertical="'+o(e.verticalAlign)+'"':"")+"\n "+(e.wrap?'wrapText="1"':"")+" />\n ":"")+"\n </xf>\n "})+'\n </cellXfs>\n <cellStyles count="1">\n <cellStyle name="Normal" xfId="0" builtinId="0"/>\n </cellStyles>\n <dxfs count="0" />\n <tableStyles count="0" defaultTableStyle="TableStyleMedium2" defaultPivotStyle="PivotStyleMedium9" />\n</styleSheet>'},G=new Date(1900,0,0),K=kendo.Class.extend({init:function(e,t,n,o){this.options=e,this._strings=t,this._styles=n,this._borders=o,this._validations={}},relsToXML:function(){var e=this.options.hyperlinks||[];return e.length?Z({hyperlinks:e}):""},toXML:function(e){var t,n,o,r,i,l,s,d=this,f=this.options.mergedCells||[],m=this.options.rows||[],u=y(m,f);this._readCells(u),t=this.options.filter,t&&"number"==typeof t.from&&"number"==typeof t.to?t={from:a(c(this.options),t.from),to:a(c(this.options),t.to)}:t&&t.ref&&t.columns&&(n=t,t=null),o=[];for(r in this._validations)Object.prototype.hasOwnProperty.call(d._validations,r)&&o.push(d._validations[r]);return i=null,this.options.defaultCellStyle&&(i=this._lookupStyle(this.options.defaultCellStyle)),l=this.options.freezePane||{},s=this.options.defaults||{},H({frozenColumns:this.options.frozenColumns||l.colSplit,frozenRows:this.options.frozenRows||l.rowSplit,columns:this.options.columns,defaults:s,data:u,index:e,mergeCells:f,autoFilter:t,filter:n,showGridLines:this.options.showGridLines,hyperlinks:this.options.hyperlinks||[],validations:o,defaultCellStyleId:i,rtl:void 0!==this.options.rtl?this.options.rtl:s.rtl})},_lookupString:function(e){var t,n="$"+e,o=this._strings.indexes[n];return void 0!==o?t=o:(t=this._strings.indexes[n]=this._strings.uniqueCount,this._strings.uniqueCount++),this._strings.count++,t},_lookupStyle:function(e){var t,o=JSON.stringify(e);return"{}"===o?0:(t=n(o,this._styles),t<0&&(t=this._styles.push(o)-1),t+1)},_lookupBorder:function(e){var t,o=JSON.stringify(e);if("{}"!==o)return t=n(o,this._borders),t<0&&(t=this._borders.push(o)-1),t+1},_readCells:function(e){var t,n,o,r,i,l=this;for(t=0;t<e.length;t++)for(n=e[t],o=n.cells,n.data=[],r=0;r<o.length;r++)i=l._cell(o[r],n.index,r),i&&n.data.push(i)},_cell:function(e,t,n){var o,r,i,l,s,d,c,f,m,p;return e&&e!==oe?(o=e.value,r={},e.borderLeft&&(r.left=e.borderLeft),e.borderRight&&(r.right=e.borderRight),e.borderTop&&(r.top=e.borderTop),e.borderBottom&&(r.bottom=e.borderBottom),r=this._lookupBorder(r),i=this.options.defaultCellStyle||{},l={borderId:r},function(e){e("color"),e("background"),e("bold"),e("italic"),e("underline"),e("fontFamily")||e("fontName","fontFamily"),e("fontSize"),e("format"),e("textAlign")||e("hAlign","textAlign"),e("verticalAlign")||e("vAlign","verticalAlign"),e("wrap")}(function(t,n){var o=e[t];if(void 0===o&&(o=i[t]),void 0!==o)return l[n||t]=o,!0}),s=this.options.columns||[],d=s[n],c=typeof o,d&&d.autoWidth&&(f=o,"number"===c&&(f=O.toString(o,e.format)),d.width=Math.max(d.width||0,(f+"").length)),"string"===c?(o=u(o),o=this._lookupString(o),c="s"):"number"===c?c="n":"boolean"===c?(c="b",o=+o):o&&o.getTime?(c=null,m=(o.getTimezoneOffset()-G.getTimezoneOffset())*q,o=(o-G-m)/E+1,l.format||(l.format="mm-dd-yy")):(c=null,o=null),l=this._lookupStyle(l),p=a(t,n),e.validation&&this._addValidation(e.validation,p),{value:o,formula:e.formula,type:c,style:l,ref:p}):null},_addValidation:function(e,t){var n={showErrorMessage:"reject"===e.type?1:0,formula1:e.from,formula2:e.to,type:ee[e.dataType]||e.dataType,operator:Y[e.comparerType]||e.comparerType,allowBlank:e.allowNulls?1:0,showDropDown:e.showButton?0:1,error:e.messageTemplate,errorTitle:e.titleTemplate},o=JSON.stringify(n);this._validations[o]||(this._validations[o]=n,n.sqref=[]),this._validations[o].sqref.push(t)}}),Y={greaterThanOrEqualTo:"greaterThanOrEqual",lessThanOrEqualTo:"lessThanOrEqual"},ee={number:"decimal"},te={General:0,0:1,"0.00":2,"#,##0":3,"#,##0.00":4,"0%":9,"0.00%":10,"0.00E+00":11,"# ?/?":12,"# ??/??":13,"mm-dd-yy":14,"d-mmm-yy":15,"d-mmm":16,"mmm-yy":17,"h:mm AM/PM":18,"h:mm:ss AM/PM":19,"h:mm":20,"h:mm:ss":21,"m/d/yy h:mm":22,"#,##0 ;(#,##0)":37,"#,##0 ;[Red](#,##0)":38,"#,##0.00;(#,##0.00)":39,"#,##0.00;[Red](#,##0.00)":40,"mm:ss":45,"[h]:mm:ss":46,"mmss.0":47,"##0.0E+0":48,"@":49,"[$-404]e/m/d":27,"m/d/yy":30,t0:59,"t0.00":60,"t#,##0":61,"t#,##0.00":62,"t0%":67,"t0.00%":68,"t# ?/?":69,"t# ??/??":70},ne=kendo.Class.extend({init:function(e){var t=this;this.options=e||{},this._strings={indexes:{},count:0,uniqueCount:0},this._styles=[],this._borders=[],this._sheets=A(this.options.sheets||[],function(e){return e.defaults=t.options,new K(e,t._strings,t._styles,t._borders)})},toZIP:function(){var e,t,o,r,i,l,s,a,f,m,u,h,g,x,y,v,w,b=this,k=P(),S=k.folder("docProps");for(S.file("core.xml",W({creator:this.options.creator||"Kendo UI",lastModifiedBy:this.options.creator||"Kendo UI",created:this.options.date||(new Date).toJSON(),modified:this.options.date||(new Date).toJSON()})),e=this._sheets.length,S.file("app.xml",U({sheets:this._sheets})),t=k.folder("_rels"),t.file(".rels",B),o=k.folder("xl"),r=o.folder("_rels"),r.file("workbook.xml.rels",X({count:e})),i={},o.file("workbook.xml",J({sheets:this._sheets,filterNames:A(this._sheets,function(e,t){var n,o=e.options,r=o.name||o.title||"Sheet"+(t+1);if(i[r.toLowerCase()]=t,n=o.filter,n&&void 0!==n.from&&void 0!==n.to)return{localSheetId:t,name:r,from:d(c(o),n.from),to:d(c(o),n.to)}}),userNames:A(this.options.names||[],function(e){return{name:e.localName,localSheetId:e.sheet?i[e.sheet.toLowerCase()]:null,value:e.value,hidden:e.hidden}})})),l=o.folder("worksheets"),s=l.folder("_rels"),a=0;a<e;a++)f=b._sheets[a],m="sheet"+(a+1)+".xml",u=f.relsToXML(),u&&s.file(m+".rels",u),l.file(m,f.toXML(a));return h=A(this._borders,z),g=A(this._styles,z),x=function(e){return e.underline||e.bold||e.italic||e.color||e.fontFamily||e.fontSize},y=A(g,function(e){if(e.color&&(e.color=p(e.color)),x(e))return e}),v=A(g,function(e){if(e.format&&void 0===te[e.format])return e}),w=A(g,function(e){if(e.background)return e.background=p(e.background),e}),o.file("styles.xml",Q({fonts:y,fills:w,formats:v,borders:h,styles:A(g,function(e){var t={};return x(e)&&(t.fontId=n(e,y)+1),e.background&&(t.fillId=n(e,w)+2),t.textAlign=e.textAlign,t.verticalAlign=e.verticalAlign,t.wrap=e.wrap,t.borderId=e.borderId,e.format&&(t.numFmtId=void 0!==te[e.format]?te[e.format]:165+n(e,v)),t})})),o.file("sharedStrings.xml",$(this._strings)),k.file("[Content_Types].xml",j({count:e})),k},toDataURL:function(){var e=this.toZIP();return e.generateAsync?e.generateAsync(N).then(t):t(e.generate(N))}}),oe={},re=function(e){var t=e.ref,n=e.columns,o=e.generators;return'\n<autoFilter ref="'+t+'">\n '+i(n,function(e){return'\n <filterColumn colId="'+e.index+'">\n '+o[e.filter](e)+"\n </filterColumn>\n "})+"\n</autoFilter>"},ie=function(e){var t=e.logic,n=e.criteria;return"\n<customFilters "+("and"===t?'and="1"':"")+">\n"+i(n,function(e){var t=F.customOperator(e),n=F.customValue(e);return"<customFilter "+(t?'operator="'+t+'"':"")+' val="'+n+'"/>'})+"\n</customFilters>"},le=function(e){var t=e.type;return'<dynamicFilter type="'+F.dynamicFilterType(t)+'" />'},se=function(e){var t=e.type,n=e.value;return'<top10 percent="'+(/percent$/i.test(t)?1:0)+'"\n top="'+(/^top/i.test(t)?1:0)+'"\n val="'+n+'" />'},ae=function(e){var t=e.blanks,n=e.values;return"<filters "+(t?'blank="1"':"")+">\n "+i(n,function(e){return'\n <filter val="'+e+'" />'})+"\n </filters>"},F.customOperator=function(e){return{eq:"equal",gt:"greaterThan",gte:"greaterThanOrEqual",lt:"lessThan",lte:"lessThanOrEqual",ne:"notEqual",doesnotstartwith:"notEqual",doesnotendwith:"notEqual",doesnotcontain:"notEqual",doesnotmatch:"notEqual"}[e.operator.toLowerCase()]},F.customValue=function(e){function t(e){return e.replace(/([*?])/g,"~$1")}switch(e.operator.toLowerCase()){case"startswith":case"doesnotstartwith":return t(e.value)+"*";case"endswith":case"doesnotendwith":return"*"+t(e.value);case"contains":case"doesnotcontain":return"*"+t(e.value)+"*";default:return e.value}},F.dynamicFilterType=function(e){return{quarter1:"Q1",quarter2:"Q2",quarter3:"Q3",quarter4:"Q4",january:"M1",february:"M2",march:"M3",april:"M4",may:"M5",june:"M6",july:"M7",august:"M8",september:"M9",october:"M10",november:"M11",december:"M12"}[e.toLowerCase()]||e},kendo.deepExtend(kendo.ooxml,{IntlService:O,Workbook:ne,Worksheet:K})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("ooxml/main.min",["kendo.core.min","ooxml/kendo-ooxml.min"],e)}(function(){!function(e){var t=kendo.ooxml.Workbook;kendo.ooxml.IntlService.register({toString:kendo.toString}),kendo.ooxml.Workbook=t.extend({toDataURL:function(){var e=t.fn.toDataURL.call(this);if("string"!=typeof e)throw Error("The toDataURL method can be used only with jsZip 2. Either include jsZip 2 or use the toDataURLAsync method.");return e},toDataURLAsync:function(){var n=e.Deferred(),o=t.fn.toDataURL.call(this);return"string"==typeof o?o=n.resolve(o):o&&o.then&&o.then(function(e){n.resolve(e)},function(){n.reject()}),n.promise()}})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.ooxml.min",["ooxml/main.min"],e)}(function(){},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()});
//# sourceMappingURL=kendo.ooxml.min.js.map