UNPKG

xlsxtable

Version:

Create nice Excel files from tabular data

537 lines (536 loc) 27.2 kB
"use strict";var G=Object.defineProperty;var he=Object.getOwnPropertyDescriptor;var ge=Object.getOwnPropertyNames;var ye=Object.prototype.hasOwnProperty;var xe=(a,r)=>{for(var n in r)G(a,n,{get:r[n],enumerable:!0})},ue=(a,r,n,o)=>{if(r&&typeof r=="objec\ t"||typeof r=="function")for(let s of ge(r))!ye.call(a,s)&&s!==n&&G(a,s,{get:()=>r[s],enumerable:!(o= he(r,s))||o.enumerable});return a};var Ce=a=>ue(G({},"__esModule",{value:!0}),a);var Ue={};xe(Ue,{XlsxTypes:()=>de,createXlsx:()=>Ee});module.exports=Ce(Ue);var z,ve=()=>{let a=Int32Array,r=new a(256),n=new a(4096),o,s,f;for(s=0;s<256;s++)o=s,o=o&1?-306674912^ o>>>1:o>>>1,o=o&1?-306674912^o>>>1:o>>>1,o=o&1?-306674912^o>>>1:o>>>1,o=o&1?-306674912^o>>>1:o>>>1,o= o&1?-306674912^o>>>1:o>>>1,o=o&1?-306674912^o>>>1:o>>>1,o=o&1?-306674912^o>>>1:o>>>1,n[s]=r[s]=o&1?-306674912^ o>>>1:o>>>1;for(s=0;s<256;s++)for(f=r[s],o=256+s;o<4096;o+=256)f=n[o]=f>>>8^r[f&255];for(z=[r],s=1;s< 16;s++)z[s]=n.subarray(s*256,(s+1)*256)},Te=(a,r=0)=>{z||ve();let[n,o,s,f,w,N,p,A,M,R,X,t,e,D,i,x]=z, y=r^-1,u=a.length-15,c=0;for(;c<u;)y=x[a[c++]^y&255]^i[a[c++]^y>>8&255]^D[a[c++]^y>>16&255]^e[a[c++]^ y>>>24]^t[a[c++]]^X[a[c++]]^R[a[c++]]^M[a[c++]]^A[a[c++]]^p[a[c++]]^N[a[c++]]^w[a[c++]]^f[a[c++]]^s[a[c++]]^ o[a[c++]]^n[a[c++]];for(u+=15;c<u;)y=y>>>8^n[(y^a[c++])&255];return~y},be=typeof CompressionStream<"\ u",ee=new TextEncoder,te=a=>a.reduce((r,n)=>r+n.length,0),ae=Uint8Array;function Se(a){let r=new CompressionStream( "gzip"),n=r.writable.getWriter(),o=r.readable.getReader();return n.write(a),n.close(),()=>o.read()}async function oe(a,r=!0,n=Se){ let o=[],s=be&&r,f=a.length,w=a.map(i=>ee.encode(i.path)),N=a.map(({data:i})=>typeof i=="string"?ee. encode(i):i instanceof ArrayBuffer?new ae(i):i),p=te(N),A=te(w),M=f*46+A,R=p+f*30+A+M+22,X=new Date, t=new ae(R),e=0;for(let i=0;i<f;i++){o[i]=e;let x=w[i],y=x.length,u=N[i],c=u.length,I=a[i].lastModified?? X,S=(I.getSeconds()/2|0)+(I.getMinutes()<<5)+(I.getHours()<<11),H=I.getDate()+(I.getMonth()+1<<5)+(I. getFullYear()-1980<<9),$=0,U=!1;t[e++]=80,t[e++]=75,t[e++]=3,t[e++]=4,t[e++]=20,t[e++]=0,t[e++]=0,t[e++]= 8;let j=e;t[e++]=t[e++]=0,t[e++]=S&255,t[e++]=S>>8,t[e++]=H&255,t[e++]=H>>8;let C=e;if(e+=8,t[e++]=c& 255,t[e++]=c>>8&255,t[e++]=c>>16&255,t[e++]=c>>24,t[e++]=y&255,t[e++]=y>>8,t[e++]=t[e++]=0,t.set(x,e), e+=y,s){let L=e,O=n(u),v,P=0,B=0;e:{for(;;){let l=await O();if(l.done)throw new Error("Bad gzip data"); if(v=l.value,P=B,B=P+v.length,P<=3&&B>3&&v[3-P]&30){U=!0;break e}if(B>=10){v=v.subarray(10-P);break}} for(;;){let l=e-L,d=v.length;if(l+d>=c+8){U=!0;break e}t.set(v,e),e+=d;let h=await O();if(h.done)break; v=h.value}}if(U)for(;;){let l=v.length,d=8-l,h=e;e=L;for(let m=0;m<8;m++)t[e++]=m<d?t[h-d+m]:v[l-8+m]; let g=await O();if(g.done)break;v=g.value}e-=8,t[C++]=t[e++],t[C++]=t[e++],t[C++]=t[e++],t[C++]=t[e++], e-=4,U||(t[j]=8,$=e-L)}if((!s||U)&&(t.set(u,e),e+=c,$=c),!s){let L=Te(u);t[C++]=L&255,t[C++]=L>>8&255, t[C++]=L>>16&255,t[C++]=L>>24}t[C++]=$&255,t[C++]=$>>8&255,t[C++]=$>>16&255,t[C++]=$>>24}let D=e;for(let i=0;i< f;i++){let x=o[i],y=w[i],u=y.length;t[e++]=80,t[e++]=75,t[e++]=1,t[e++]=2,t[e++]=20,t[e++]=0,t[e++]= 20,t[e++]=0,t.set(t.subarray(x+6,x+30),e),e+=24,t[e++]=t[e++]=t[e++]=t[e++]=t[e++]=t[e++]=t[e++]=t[e++]= t[e++]=t[e++]=0,t[e++]=x&255,t[e++]=x>>8&255,t[e++]=x>>16&255,t[e++]=x>>24,t.set(y,e),e+=u}return t[e++]= 80,t[e++]=75,t[e++]=5,t[e++]=6,t[e++]=t[e++]=t[e++]=t[e++]=0,t[e++]=f&255,t[e++]=f>>8,t[e++]=f&255,t[e++]= f>>8,t[e++]=M&255,t[e++]=M>>8&255,t[e++]=M>>16&255,t[e++]=M>>24,t[e++]=D&255,t[e++]=D>>8&255,t[e++]= D>>16&255,t[e++]=D>>24,t[e++]=t[e++]=0,t.subarray(0,e)}var Fe={"<":"&lt;",">":"&gt;","&":"&amp;","'":"&apos;",'"':"&quot;"},F=a=>a.replace(/[<>&'"]/g,r=>Fe[r]), we=a=>{let r="";for(;;){let n=a%26;if(r=String.fromCharCode(65+n)+r,a=(a-n)/26-1,a<0)return r}},W=(a,r)=>`${we( a)}${r+1}`,De=Date.UTC(1899,11,31)/1e3/3600/24,re=(a,r,n)=>{let o;r?(n&&a.setUTCFullYear(1899,11,31), o=a.getTime()):o=Date.UTC(n?1899:a.getFullYear(),n?11:a.getMonth(),n?31:a.getDate(),a.getHours(),a.getMinutes(), a.getSeconds(),a.getMilliseconds());let s=o/1e3/3600/24-De;if(!(s<0)&&!(s<1&&!n))return s>=60&&(s+=1), s};function J(a,r=1/0){let n=0,o=-1,s,f=a.length;for(;;){s=a.indexOf(` `,++o),s===-1&&(s=f);let w=s-o;if(w>n&&(n=w),s===f||n>=r)break;o=s}return n}function k(a){return(a<10? "0":"")+a}function se(a){return(a<10?"00":a<100?"0":"")+a}function ne(a){return(a<10?"000":a<100?"00": a<1e3?"0":"")+a}function le(a,r,n){return(r?`${ne(a.getFullYear())}-${k(a.getMonth()+1)}-${k(a.getDate())}`: "")+(r&&n?" ":"")+(n?`${k(a.getHours())}:${k(a.getMinutes())}:${k(a.getSeconds())}.${se(a.getMilliseconds())}`: "")}function ie(a,r,n){return(r?`${ne(a.getUTCFullYear())}-${k(a.getUTCMonth()+1)}-${k(a.getUTCDate())}`: "")+(r&&n?" ":"")+(n?`${k(a.getUTCHours())}:${k(a.getUTCMinutes())}:${k(a.getUTCSeconds())}.${se(a.getUTCMilliseconds())}`: "")}var K=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"> <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /\ > <Default Extension="xml" ContentType="application/xml" /> <Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /> <Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /> <Override PartName="/xl/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml" /> <Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /> <Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" /> <Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml" /> <Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml" /> </Types>`;var q=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"> <Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml" /> <Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml" /> <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" /> </Relationships>`;var Z=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000" /> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF" /> </a:lt1> <a:dk2> <a:srgbClr val="44546A" /> </a:dk2> <a:lt2> <a:srgbClr val="E7E6E6" /> </a:lt2> <a:accent1> <a:srgbClr val="4472C4" /> </a:accent1> <a:accent2> <a:srgbClr val="ED7D31" /> </a:accent2> <a:accent3> <a:srgbClr val="A5A5A5" /> </a:accent3> <a:accent4> <a:srgbClr val="FFC000" /> </a:accent4> <a:accent5> <a:srgbClr val="5B9BD5" /> </a:accent5> <a:accent6> <a:srgbClr val="70AD47" /> </a:accent6> <a:hlink> <a:srgbClr val="0563C1" /> </a:hlink> <a:folHlink> <a:srgbClr val="954F72" /> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Calibri Light" panose="020F0302020204030204" /> <a:ea typeface="" /> <a:cs typeface="" /> <a:font script="Jpan" typeface="\u6E38\u30B4\u30B7\u30C3\u30AF Light" /> <a:font script="Hang" typeface="\uB9D1\uC740 \uACE0\uB515" /> <a:font script="Hans" typeface="\u7B49\u7EBF Light" /> <a:font script="Hant" typeface="\u65B0\u7D30\u660E\u9AD4" /> <a:font script="Arab" typeface="Times New Roman" /> <a:font script="Hebr" typeface="Times New Roman" /> <a:font script="Thai" typeface="Tahoma" /> <a:font script="Ethi" typeface="Nyala" /> <a:font script="Beng" typeface="Vrinda" /> <a:font script="Gujr" typeface="Shruti" /> <a:font script="Khmr" typeface="MoolBoran" /> <a:font script="Knda" typeface="Tunga" /> <a:font script="Guru" typeface="Raavi" /> <a:font script="Cans" typeface="Euphemia" /> <a:font script="Cher" typeface="Plantagenet Cherokee" /> <a:font script="Yiii" typeface="Microsoft Yi Baiti" /> <a:font script="Tibt" typeface="Microsoft Himalaya" /> <a:font script="Thaa" typeface="MV Boli" /> <a:font script="Deva" typeface="Mangal" /> <a:font script="Telu" typeface="Gautami" /> <a:font script="Taml" typeface="Latha" /> <a:font script="Syrc" typeface="Estrangelo Edessa" /> <a:font script="Orya" typeface="Kalinga" /> <a:font script="Mlym" typeface="Kartika" /> <a:font script="Laoo" typeface="DokChampa" /> <a:font script="Sinh" typeface="Iskoola Pota" /> <a:font script="Mong" typeface="Mongolian Baiti" /> <a:font script="Viet" typeface="Times New Roman" /> <a:font script="Uigh" typeface="Microsoft Uighur" /> <a:font script="Geor" typeface="Sylfaen" /> <a:font script="Armn" typeface="Arial" /> <a:font script="Bugi" typeface="Leelawadee UI" /> <a:font script="Bopo" typeface="Microsoft JhengHei" /> <a:font script="Java" typeface="Javanese Text" /> <a:font script="Lisu" typeface="Segoe UI" /> <a:font script="Mymr" typeface="Myanmar Text" /> <a:font script="Nkoo" typeface="Ebrima" /> <a:font script="Olck" typeface="Nirmala UI" /> <a:font script="Osma" typeface="Ebrima" /> <a:font script="Phag" typeface="Phagspa" /> <a:font script="Syrn" typeface="Estrangelo Edessa" /> <a:font script="Syrj" typeface="Estrangelo Edessa" /> <a:font script="Syre" typeface="Estrangelo Edessa" /> <a:font script="Sora" typeface="Nirmala UI" /> <a:font script="Tale" typeface="Microsoft Tai Le" /> <a:font script="Talu" typeface="Microsoft New Tai Lue" /> <a:font script="Tfng" typeface="Ebrima" /> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri" panose="020F0502020204030204" /> <a:ea typeface="" /> <a:cs typeface="" /> <a:font script="Jpan" typeface="\u6E38\u30B4\u30B7\u30C3\u30AF" /> <a:font script="Hang" typeface="\uB9D1\uC740 \uACE0\uB515" /> <a:font script="Hans" typeface="\u7B49\u7EBF" /> <a:font script="Hant" typeface="\u65B0\u7D30\u660E\u9AD4" /> <a:font script="Arab" typeface="Arial" /> <a:font script="Hebr" typeface="Arial" /> <a:font script="Thai" typeface="Tahoma" /> <a:font script="Ethi" typeface="Nyala" /> <a:font script="Beng" typeface="Vrinda" /> <a:font script="Gujr" typeface="Shruti" /> <a:font script="Khmr" typeface="DaunPenh" /> <a:font script="Knda" typeface="Tunga" /> <a:font script="Guru" typeface="Raavi" /> <a:font script="Cans" typeface="Euphemia" /> <a:font script="Cher" typeface="Plantagenet Cherokee" /> <a:font script="Yiii" typeface="Microsoft Yi Baiti" /> <a:font script="Tibt" typeface="Microsoft Himalaya" /> <a:font script="Thaa" typeface="MV Boli" /> <a:font script="Deva" typeface="Mangal" /> <a:font script="Telu" typeface="Gautami" /> <a:font script="Taml" typeface="Latha" /> <a:font script="Syrc" typeface="Estrangelo Edessa" /> <a:font script="Orya" typeface="Kalinga" /> <a:font script="Mlym" typeface="Kartika" /> <a:font script="Laoo" typeface="DokChampa" /> <a:font script="Sinh" typeface="Iskoola Pota" /> <a:font script="Mong" typeface="Mongolian Baiti" /> <a:font script="Viet" typeface="Arial" /> <a:font script="Uigh" typeface="Microsoft Uighur" /> <a:font script="Geor" typeface="Sylfaen" /> <a:font script="Armn" typeface="Arial" /> <a:font script="Bugi" typeface="Leelawadee UI" /> <a:font script="Bopo" typeface="Microsoft JhengHei" /> <a:font script="Java" typeface="Javanese Text" /> <a:font script="Lisu" typeface="Segoe UI" /> <a:font script="Mymr" typeface="Myanmar Text" /> <a:font script="Nkoo" typeface="Ebrima" /> <a:font script="Olck" typeface="Nirmala UI" /> <a:font script="Osma" typeface="Ebrima" /> <a:font script="Phag" typeface="Phagspa" /> <a:font script="Syrn" typeface="Estrangelo Edessa" /> <a:font script="Syrj" typeface="Estrangelo Edessa" /> <a:font script="Syre" typeface="Estrangelo Edessa" /> <a:font script="Sora" typeface="Nirmala UI" /> <a:font script="Tale" typeface="Microsoft Tai Le" /> <a:font script="Talu" typeface="Microsoft New Tai Lue" /> <a:font script="Tfng" typeface="Ebrima" /> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr" /> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:lumMod val="110000" /> <a:satMod val="105000" /> <a:tint val="67000" /> </a:schemeClr> </a:gs> <a:gs pos="50000"> <a:schemeClr val="phClr"> <a:lumMod val="105000" /> <a:satMod val="103000" /> <a:tint val="73000" /> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:lumMod val="105000" /> <a:satMod val="109000" /> <a:tint val="81000" /> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="5400000" scaled="0" /> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:satMod val="103000" /> <a:lumMod val="102000" /> <a:tint val="94000" /> </a:schemeClr> </a:gs> <a:gs pos="50000"> <a:schemeClr val="phClr"> <a:satMod val="110000" /> <a:lumMod val="100000" /> <a:shade val="100000" /> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:lumMod val="99000" /> <a:satMod val="120000" /> <a:shade val="78000" /> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="5400000" scaled="0" /> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr" /> </a:solidFill> <a:prstDash val="solid" /> <a:miter lim="800000" /> </a:ln> <a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr" /> </a:solidFill> <a:prstDash val="solid" /> <a:miter lim="800000" /> </a:ln> <a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr" /> </a:solidFill> <a:prstDash val="solid" /> <a:miter lim="800000" /> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst /> </a:effectStyle> <a:effectStyle> <a:effectLst /> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="63000" /> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr" /> </a:solidFill> <a:solidFill> <a:schemeClr val="phClr"> <a:tint val="95000" /> <a:satMod val="170000" /> </a:schemeClr> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="93000" /> <a:satMod val="150000" /> <a:shade val="98000" /> <a:lumMod val="102000" /> </a:schemeClr> </a:gs> <a:gs pos="50000"> <a:schemeClr val="phClr"> <a:tint val="98000" /> <a:satMod val="130000" /> <a:shade val="90000" /> <a:lumMod val="103000" /> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="63000" /> <a:satMod val="120000" /> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="5400000" scaled="0" /> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults /> <a:extraClrSchemeLst /> <a:extLst> <a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"> <thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}" /> </a:ext> </a:extLst> </a:theme>`;var _=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"> <Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml" /> <Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml" /> <Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml" /> <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml" /> </Relationships>`;var ce=({company:a})=>`<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"> <Company>${F(a)}</Company> </Properties>`;var pe=({title:a,description:r,creator:n,creationDate:o})=>{let s=o.toISOString();return`<?xml versi\ on="1.0" encoding="UTF-8" standalone="yes"?> <cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <dc:title>${F(a)}</dc:title> <dc:description>${F(r)}</dc:description> <dc:creator>${F(n)}</dc:creator> <cp:lastModifiedBy>${F(n)}</cp:lastModifiedBy> <dcterms:created xsi:type="dcterms:W3CDTF">${s}</dcterms:created> <dcterms:modified xsi:type="dcterms:W3CDTF">${s}</dcterms:modified> </cp:coreProperties>`};var me=({sheetName:a})=>`<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"> <fileVersion appName="xl" lastEdited="7" lowestEdited="7" rupBuild="10211" /> <workbookPr defaultThemeVersion="166925" /> <sheets> <sheet name="${F(a)}" sheetId="1" r:id="rId1" /> </sheets> <calcPr calcId="181029" /> </workbook>`;var fe=({wrapText:a})=>`<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac x16r2 xr" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:x16r2="http://schemas.microsoft.com/office/spreadsheetml/2015/02/main" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision"> <numFmts count="3"> <numFmt numFmtId="164" formatCode="yyyy-mm-dd hh:mm:ss" /> <numFmt numFmtId="165" formatCode="yyyy-mm-dd" /> <numFmt numFmtId="166" formatCode="h:mm:ss" /> </numFmts> <fonts count="2" x14ac:knownFonts="1"> <font> <sz val="14" /> <color theme="1" /> <name val="Calibri" /> <family val="2" /> <scheme val="minor" /> </font> <font> <b /> <sz val="14" /> <color theme="1" /> <name val="Calibri" /> <family val="2" /> <scheme val="minor" /> </font> </fonts> <fills count="1"> <fill> <patternFill patternType="none" /> </fill> </fills> <borders count="2"> <border> <left /> <right /> <top /> <bottom /> <diagonal /> </border> <border> <left /> <right /> <top /> <bottom style="medium"> <color indexed="64" /> </bottom> <diagonal /> </border> </borders> <cellStyleXfs count="1"> <xf numFmtId="0" fontId="0" fillId="0" borderId="0" /> </cellStyleXfs> <cellXfs count="4"> <xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"><alignment wrapText="${a}" /></xf> <xf numFmtId="0" fontId="1" fillId="0" borderId="1" xfId="0" applyFont="1" applyBorder="1" /> <xf numFmtId="164" fontId="0" fillId="0" borderId="0" xfId="0" applyNumberFormat="1" /> <xf numFmtId="165" fontId="0" fillId="0" borderId="0" xfId="0" applyNumberFormat="1" /> <xf numFmtId="166" fontId="0" fillId="0" borderId="0" xfId="0" applyNumberFormat="1" /> </cellXfs> <cellStyles count="1"> <cellStyle name="Normal" xfId="0" builtinId="0" /> </cellStyles> <dxfs count="0" /> <tableStyles count="0" defaultTableStyle="TableStyleMedium2" defaultPivotStyle="PivotStyleLight16"\ /> <extLst> <ext uri="{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"> <x14:slicerStyles defaultSlicerStyle="SlicerStyleLight1" /> </ext> <ext uri="{9260A510-F301-46a8-8635-F512D64BE5F5}" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"> <x15:timelineStyles defaultTimelineStyle="TimeSlicerStyleLight1" /> </ext> </extLst> </styleSheet>`;var de=(p=>(p[p.Number=0]="Number",p[p.String=1]="String",p[p.LocalDate=2]="LocalDate",p[p.LocalTime= 3]="LocalTime",p[p.LocalDateTime=4]="LocalDateTime",p[p.UTCDate=5]="UTCDate",p[p.UTCTime=6]="UTCTime", p[p.UTCDateTime=7]="UTCDateTime",p))(de||{}),$e={wrapText:!0,freeze:!0,autoFilter:!0,sheetName:"Shee\ t 1",creator:"xlsxtable",title:"",description:"",company:"",minColWidth:5,maxColWidth:50,padWidth:2, stringCharWidth:1.1},Ee=a=>{let{headings:r,types:n,data:o,wrapText:s,freeze:f,autoFilter:w,creator:N, title:p,description:A,sheetName:M,company:R,minColWidth:X,maxColWidth:t,padWidth:e,stringCharWidth:D}={ ...$e,...a},i=r.length;if(i!==n.length||i!==o[0].length)throw new Error(`Number of headings (${i}), \ types (${n.length}) and data columns (first row: ${o[0].length}) must be the same`);let x=o.length,y=new Date, u=new Map,c=0,I=0,S=[],H={5:10+e,6:8+e,7:18+e,2:10+e,3:8+e,4:18+e},$=e+(w?2:0),U=Math.ceil(t/D)-$;for(let l=0;l< i;l++){let d=r[l],g=J(d,U)*D+$;S[l]=g<X?X:g>t?t:g}let j=Math.ceil(t/D)-e,C=t-e;for(let l=0;l<i;l++){ if(S[l]>=t)continue;let d=n[l],h=H[d];if(h!==void 0){S[l]<h&&(S[l]=h);continue}if(d===1){let g=0;for(let E=0;E< x;E++){let T=o[E][l];if(T!=null&&(T=String(T),g=J(T,j),g>=j))break}let m=g*D+e;S[l]<m&&(S[l]=m>t?t:m)}else if(d=== 0){let g=0;for(let E=0;E<x;E++){let T=o[E][l];if(T==null)continue;T=String(T);let b=T.length;if(b>g&& (g=b),g>=C)break}let m=g+e;S[l]<m&&(S[l]=m>t?t:m)}}let L=`<cols>${S.map((l,d)=>`<col min="${d+1}" ma\ x="${d+1}" width="${Math.ceil(l)}" bestFit="1" customWidth="1" />`).join("")}</cols>`,O=`<row r="1" \ spans="1:${i}">${r.map((l,d)=>`<c r="${W(d,0)}" t="inlineStr" s="1"><is><t>${F(l)}</t></is></c>`).join( "")}</row>`,v=`${o.map((l,d)=>`<row r="${d+2}" spans="1:${i}">${l.map((h,g)=>{if(h==null)return"";let m=n[g], E=m>=2,T;if(E){let b=m===6||m===3,V=m===5||m===2,Y=!V&&!b,Q=m>=5;T=b?4:V?3:2,h instanceof Date&&(h=re( h,Q,b)??(Q?ie(h,V||Y,b||Y):le(h,V||Y,b||Y))),typeof h=="string"&&(m=1)}if(m===1){c++;let b=u.get(h); return b===void 0&&(b=I,u.set(h,b),I++),`<c r="${W(g,d+1)}" t="s"><v>${b}</v></c>`}return`<c r="${W( g,d+1)}"${T?` s="${T}"`:""}><v>${h}</v></c>`}).join("")}</row>`).join("")}`,P=`<?xml version="1.0" e\ ncoding="UTF-8" standalone="yes"?> <sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="${c}" uniqueCount="${I}\ "> ${[...u].map(([l])=>`<si><t>${F(l)}</t></si>`).join("")} </sst>`,B=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="xr" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision" xr:uid="{${crypto.randomUUID()}}"> <dimension ref="A1:${W(i-1,x)}" /> <sheetViews> <sheetView tabSelected="1" workbookViewId="0"> ${f?'<pane ySplit="1" topLeftCell="A2" activePane="bottomLeft" state="frozen" />':""} <selection${f?' pane="bottomLeft"':""} activeCell="A2" sqref="A2" /> </sheetView> </sheetViews> <sheetFormatPr baseColWidth="12" defaultRowHeight="16" /> ${L} <sheetData> ${O} ${v} </sheetData> ${w?`<autoFilter ref="A1:${W(i-1,0)}" xr:uid="{3${crypto.randomUUID()}}" />`:""} <pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3" /> </worksheet>`;return oe([{path:"[Content_Types].xml",data:K},{path:"_rels/.rels",data:q},{path:"xl/_\ rels/workbook.xml.rels",data:_},{path:"xl/workbook.xml",data:me({sheetName:M})},{path:"xl/styles.xml", data:fe({wrapText:s})},{path:"xl/theme/theme1.xml",data:Z},{path:"xl/sharedStrings.xml",data:P},{path:"\ xl/worksheets/sheet1.xml",data:B},{path:"docProps/core.xml",data:pe({title:p,description:A,creator:N, creationDate:y})},{path:"docProps/app.xml",data:ce({company:R})}])};