oe>>>=le&7;le-=le&7;while(le<32){if(ie===0){breake}ie--;oe+=ee[te++]<<le;le+=8}if((oe&65535)!==(oe>>>16^65535)){e.msg="invalid stored block lengths";t.mode=Q;break}t.length=oe&65535;oe=0;le=0;t.mode=N;if(r===d){breake};caseN:t.mode=L;caseL:ue=t.length;if(ue){if(ue>ie){ue=ie}if(ue>se){ue=se}if(ue===0){breake}a.arraySet(re,ee,te,ue,ae);ie-=ue;te+=ue;se-=ue;ae+=ue;t.length-=ue;break}t.mode=O;break;caseM:while(le<14){if(ie===0){breake}ie--;oe+=ee[te++]<<le;le+=8}t.nlen=(oe&31)+257;oe>>>=5;le-=5;t.ndist=(oe&31)+1;oe>>>=5;le-=5;t.ncode=(oe&15)+4;oe>>>=4;le-=4;if(t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols";t.mode=Q;break}t.have=0;t.mode=U;caseU:while(t.have<t.ncode){while(le<3){if(ie===0){breake}ie--;oe+=ee[te++]<<le;le+=8}t.lens[Ie[t.have++]]=oe&7;oe>>>=3;le-=3}while(t.have<19){t.lens[Ie[t.have++]]=0}t.lencode=t.lendyn;t.lenbits=7;Te={bits:t.lenbits};Be=o(l,t.lens,0,19,t.lencode,0,t.work,Te);t.lenbits=Te.bits;if(Be){e.msg="invalid code lengths set";t.mode=Q;break}t.have=0;t.mode=H;caseH:while(t.have<t.nlen+t.ndist){for(;;){be=t.lencode[oe&(1<<t.lenbits)-1];me=be>>>24;ge=be>>>16&255;Ee=be&65535;if(me<=le){break}if(ie===0){breake}ie--;oe+=ee[te++]<<le;le+=8}if(Ee<16){oe>>>=me;le-=me;t.lens[t.have++]=Ee}else{if(Ee===16){xe=me+2;while(le<xe){if(ie===0){breake}ie--;oe+=ee[te++]<<le;le+=8}oe>>>=me;le-=me;if(t.have===0){e.msg="invalid bit length repeat";t.mode=Q;break}Ce=t.lens[t.have-1];ue=3+(oe&3);oe>>>=2;le-=2}elseif(Ee===17){xe=me+3;while(le<xe){if(ie===0){breake}ie--;oe+=ee[te++]<<le;le+=8}oe>>>=me;le-=me;Ce=0;ue=3+(oe&7);oe>>>=3;le-=3}else{xe=me+7;while(le<xe){if(ie===0){breake}ie--;oe+=ee[te++]<<le;le+=8}oe>>>=me;le-=me;Ce=0;ue=11+(oe&127);oe>>>=7;le-=7}if(t.have+ue>t.nlen+t.ndist){e.msg="invalid bit length repeat";t.mode=Q;break}while(ue--){t.lens[t.have++]=Ce}}}if(t.mode===Q){break}if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block";t.mode=Q;break}t.lenbits=9;Te={bits:t.lenbits};Be=o(f,t.lens,0,t.nlen,t.lencode,0,t.work,Te);t.lenbits=Te.bits;if(Be){e.msg="invalid literal/lengths set";t.mode=Q;break}t.distbits=6;t.distcode=t.distdyn;Te={bits:t.distbits};Be=o(c,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,Te);t.distbits=Te.bits;if(Be){e.msg="invalid distances set";t.mode=Q;break}t.mode=W;if(r===d){breake};caseW:t.mode=z;casez:if(ie>=6&&se>=258){e.next_out=ae;e.avail_out=se;e.next_in=te;e.avail_in=ie;t.hold=oe;t.bits=le;s(e,ce);ae=e.next_out;re=e.output;se=e.avail_out;te=e.next_in;ee=e.input;ie=e.avail_in;oe=t.hold;le=t.bits;if(t.mode===O){t.back=-1}break}t.back=0;for(;;){be=t.lencode[oe&(1<<t.lenbits)-1];me=be>>>24;ge=be>>>16&255;Ee=be&65535;if(me<=le){break}if(ie===0){breake}ie--;oe+=ee[te++]<<le;le+=8}if(ge&&(ge&240)===0){ke=me;we=ge;Se=Ee;for(;;){be=t.lencode[Se+((oe&(1<<ke+we)-1)>>ke)];me=be>>>24;ge=be>>>16&255;Ee=be&65535;if(ke+me<=le){break}if(ie===0){breake}ie--;oe+=ee[te++]<<le;le+=8}oe>>>=ke;le-=ke;t.back+=ke}oe>>>=me;le-=me;t.back+=me;t.length=Ee;if(ge===0){t.mode=K;break}if(ge&32){t.back=-1;t.mode=O;break}if(ge&64){e.msg="invalid literal/length code";t.mode=Q;break}t.extra=ge&15;t.mode=V;caseV:if(t.extra){xe=t.extra;while(le<xe){if(ie===0){breake}ie--;oe+=ee[te++]<<le;le+=8}t.length+=oe&(1<<t.extra)-1;oe>>>=t.extra;le-=t.extra;t.back+=t.extra}t.was=t.length;t.mode=X;caseX:for(;;){be=t.distcode[oe&(1<<t.distbits)-1];me=be>>>24;ge=be>>>16&255;Ee=be&65535;if(me<=le){break}if(ie===0){breake}ie--;oe+=ee[te++]<<le;le+=8}if((ge&240)===0){ke=me;we=ge;Se=Ee;for(;;){be=t.distcode[Se+((oe&(1<<ke+we)-1)>>ke)];me=be>>>24;ge=be>>>16&255;Ee=be&65535;if(ke+me<=le){break}if(ie===0){breake}ie--;oe+=ee[te++]<<le;le+=8}oe>>>=ke;le-=ke;t.back+=ke}oe>>>=me;le-=me;t.back+=me;if(ge&64){e.msg="invalid distance code";t.mode=Q;break}t.offset=Ee;t.extra=ge&15;t.mode=G;caseG:if(t.extra){xe=t.extra;while(le<xe){if(ie===0){breake}ie--;oe+=ee[te++]<<le;le+=8}t.offset+=oe&(1<<t.extra)-1;oe>>>=t.extra;le-=t.extra;t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back";t.mode=Q;break}t.mode=j;casej:if(se===0){breake}ue=ce-se;if(t.offset>ue){ue=t.offset-ue;if(ue>t.whave)
f=""+o;if(s.length<=f.length)returnf;returnm(s.substr(0,s.length-f.length))+f}if(u=s.match(/^([#0]+)\.([#0]+)$/)){f=""+o.toFixed(Math.min(u[2].length,10)).replace(/([^0])0+$/,"$1");g=f.indexOf(".");varA=s.indexOf(".")-g,y=s.length-f.length-A;returnm(s.substr(0,A)+f+s.substr(s.length-y))}if(u=s.match(/^00,000\.([#0]*0)$/)){returno<0?"-"+I(e,s,-o):T(""+o).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(e){return"00,"+(e.length<3?a(0,3-e.length):"")+e})+"."+a(0,u[1].length)}switch(s){case"###,###":;case"##,###":;case"#,###":varR=T(""+k);returnR!=="0"?w+R:"";default:if(s.match(/\.[0#?]*$/))returnI(e,s.slice(0,s.lastIndexOf(".")),o)+m(s.slice(s.lastIndexOf(".")));}thrownewError("unsupported format |"+s+"|")}returnfunctionA(e,r,t){return(t|0)===t?I(e,r,t):S(e,r,t)}}();functionI(e){varr=[];vart=false;for(vara=0,n=0;a<e.length;++a)switch(e.charCodeAt(a)){case34:t=!t;break;case95:;case42:;case92:++a;break;case59:r[r.length]=e.substr(n,a-n);n=a+1;}r[r.length]=e.substr(n);if(t===true)thrownewError("Format |"+e+"| unterminated string ");returnr}e._split=I;varA=/\[[HhMmSs]*\]/;functiony(e){varr=0,t="",a="";while(r<e.length){switch(t=e.charAt(r)){case"G":if(c(e,r))r+=6;r++;break;case'"':for(;e.charCodeAt(++r)!==34&&r<e.length;)++r;++r;break;case"\\":r+=2;break;case"_":r+=2;break;case"@":++r;break;case"B":;case"b":if(e.charAt(r+1)==="1"||e.charAt(r+1)==="2")returntrue;case"M":;case"D":;case"Y":;case"H":;case"S":;case"E":;case"m":;case"d":;case"y":;case"h":;case"s":;case"e":;case"g":returntrue;case"A":;case"a":if(e.substr(r,3).toUpperCase()==="A/P")returntrue;if(e.substr(r,5).toUpperCase()==="AM/PM")returntrue;++r;break;case"[":a=t;while(e.charAt(r++)!=="]"&&r<e.length)a+=e.charAt(r);if(a.match(A))returntrue;break;case".":;case"0":;case"#":while(r<e.length&&("0#?.,E+-%".indexOf(t=e.charAt(++r))>-1||t=="\\"&&e.charAt(r+1)=="-"&&"0#".indexOf(e.charAt(r+2))>-1)){}break;case"?":while(e.charAt(++r)===t){}break;case"*":++r;if(e.charAt(r)==" "||e.charAt(r)=="*")++r;break;case"(":;case")":++r;break;case"1":;case"2":;case"3":;case"4":;case"5":;case"6":;case"7":;case"8":;case"9":while(r<e.length&&"0123456789".indexOf(e.charAt(++r))>-1){}break;case" ":++r;break;default:++r;break;}}returnfalse}e.is_date=y;functionR(e,r,t,a){varn=[],i="",s=0,o="",l="t",f,u,h;vard="H";while(s<e.length){switch(o=e.charAt(s)){case"G":if(!c(e,s))thrownewError("unrecognized character "+o+" in "+e);n[n.length]={t:"G",v:"General"};s+=7;break;case'"':for(i="";(h=e.charCodeAt(++s))!==34&&s<e.length;)i+=String.fromCharCode(h);n[n.length]={t:"t",v:i};++s;break;case"\\":varv=e.charAt(++s),p=v==="("||v===")"?v:"t";n[n.length]={t:p,v:v};++s;break;case"_":n[n.length]={t:"t",v:" "};s+=2;break;case"@":n[n.length]={t:"T",v:r};++s;break;case"B":;case"b":if(e.charAt(s+1)==="1"||e.charAt(s+1)==="2"){if(f==null){f=b(r,t,e.charAt(s+1)==="2");if(f==null)return""}n[n.length]={t:"X",v:e.substr(s,2)};l=o;s+=2;break};case"M":;case"D":;case"Y":;case"H":;case"S":;case"E":o=o.toLowerCase();case"m":;case"d":;case"y":;case"h":;case"s":;case"e":;case"g":if(r<0)return"";if(f==null){f=b(r,t);if(f==null)return""}i=o;while(++s<e.length&&e.charAt(s).toLowerCase()===o)i+=o;if(o==="m"&&l.toLowerCase()==="h")o="M";if(o==="h")o=d;n[n.length]={t:o,v:i};l=o;break;case"A":;case"a":varm={t:o,v:o};if(f==null)f=b(r,t);if(e.substr(s,3).toUpperCase()==="A/P"){if(f!=null)m.v=f.H>=12?"P":"A";m.t="T";d="h";s+=3}elseif(e.substr(s,5).toUpperCase()==="AM/PM"){if(f!=null)m.v=f.H>=12?"PM":"AM";m.t="T";s+=5;d="h"}else{m.t="t";++s}if(f==null&&m.t==="T")return"";n[n.length]=m;l=o;break;case"[":i=o;while(e.charAt(s++)!=="]"&&s<e.length)i+=e.charAt(s);if(i.slice(-1)!=="]")throw'unterminated "[" block: |'+i+"|";if(i.match(A)){if(f==null){f=b(r,t);if(f==null)return""}n[n.length]={t:"Z",v:i.toLowerCase()};l=i.charAt(1)}elseif(i.indexOf("$")>-1){i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$";if(!y(e))n[n.length]={t:"t",v:i}}break;case".":if(f!=null){i=o;while(++s<e.length&&(o=e.charAt(s))==="0")i+=o;n[n.length]={t:"s",v:i};break};case"0":;case"#":i=o;while(++s<e.length&&"0#?.,E+-%".indexOf(o
returnn}a.forEach(function(e){varr=e.replace(Oe,"").match(Fe);n.push({v:_e(r[2]),t:r[1]})});returnn}varNe=/(^\s|\s$|\n)/;functionLe(e,r){return"<"+e+(r.match(Ne)?' xml:space="preserve"':"")+">"+r+"</"+e+">"}functionMe(e){returnI(e).map(function(r){return" "+r+'="'+e[r]+'"'}).join("")}functionUe(e,r,t){return"<"+e+(x(t)?Me(t):"")+(x(r)?(r.match(Ne)?' xml:space="preserve"':"")+">"+r+"</"+e:"/")+">"}functionHe(e,r){try{returne.toISOString().replace(/\.\d*/,"")}catch(t){if(r)throwt}return""}functionWe(e){switch(typeofe){case"string":returnUe("vt:lpwstr",e);case"number":returnUe((e|0)==e?"vt:i4":"vt:r8",String(e));case"boolean":returnUe("vt:bool",e?"true":"false");}if(einstanceofDate)returnUe("vt:filetime",He(e));thrownewError("Unable to serialize "+e)}varze={dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"};ze.main=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"];varVe={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};functionXe(e,r){vart=1-2*(e[r+7]>>>7);vara=((e[r+7]&127)<<4)+(e[r+6]>>>4&15);varn=e[r+6]&15;for(vari=5;i>=0;--i)n=n*256+e[r+i];if(a==2047)returnn==0?t*Infinity:NaN;if(a==0)a=-1022;else{a-=1023;n+=Math.pow(2,52)}returnt*Math.pow(2,a-52)*n}functionGe(e,r,t){vara=(r<0||1/r==-Infinity?1:0)<<7,n=0,i=0;vars=a?-r:r;if(!isFinite(s)){n=2047;i=isNaN(r)?26985:0}elseif(s==0)n=i=0;else{n=Math.floor(Math.log(s)/Math.LN2);i=s*Math.pow(2,52-n);if(n<=-1023&&(!isFinite(i)||i<Math.pow(2,52))){n=-1022}else{i-=Math.pow(2,52);n+=1023}}for(varo=0;o<=5;++o,i/=256)e[t+o]=i&255;e[t+6]=(n&15)<<4|i&15;e[t+7]=n>>4|a}varje=function(e){varr=[];for(vart=0;t<e[0].length;++t){r.push.apply(r,e[0][t])}returnr};varKe=je;varYe=function(e,r,t){vara=[];for(varn=r;n<t;n+=2)a.push(String.fromCharCode(hr(e,n)));returna.join("").replace(m,"")};var$e=Ye;varZe=function(e,r,t){vara=[];for(varn=r;n<r+t;++n)a.push(("0"+e[n].toString(16)).slice(-2));returna.join("")};varQe=Ze;varJe=function(e,r,t){vara=[];for(varn=r;n<t;n++)a.push(String.fromCharCode(ur(e,n)));returna.join("")};varqe=Je;varer=function(e,r){vart=vr(e,r);returnt>0?Je(e,r+4,r+4+t-1):""};varrr=er;vartr=function(e,r){vart=2*vr(e,r);returnt>0?Je(e,r+4,r+4+t-1):""};varar=tr;varnr,ir;nr=ir=functiondb(e,r){vart=vr(e,r);returnt>0?Ye(e,r+4,r+4+t):""};varsr=function(e,r){vart=vr(e,r);returnt>0?Je(e,r+4,r+4+t):""};varor=sr;varlr,fr;lr=fr=function(e,r){returnXe(e,r)};varcr=functionvb(e){returnArray.isArray(e)};if(d){Ye=function(e,r,t){if(!Buffer.isBuffer(e))return$e(e,r,t);returne.toString("utf16le",r,t).replace(m,"")};Ze=function(e,r,t){returnBuffer.isBuffer(e)?e.toString("hex",r,r+t):Qe(e,r,t)};er=functionpb(e,r){if(!Buffer.isBuffer(e))returnrr(e,r);vart=e.readUInt32LE(r);returnt>0?e.toString("utf8",r+4,r+4+t-1):""};tr=functionbb(e,r){if(!Buffer.isBuffer(e))returnar(e,r);vart=2*e.readUInt32LE(r);returne.toString("utf16le",r+4,r+4+t-1)};nr=functionmb(e,r){if(!Buffer.isBuffer(e))returnir(e,r);vart=e.readUInt32LE(r);returne.toString("utf16le",r+4,r+4+t)};sr=functiongb(e,r){if(!Buffer.isBuffer(e))returnor(e,r);vart=e.readUInt32LE(r);returne.toString("utf8",r+4,r+4+t)};Je=functionEb(e,r,t){returnBuffer.isBuffer(e)?e.toString("utf8",r,t):Je(e,r,t)};je=function(e){returne[0].length>0&&Buffer.
ze.CORE_PROPS="http://schemas.openxmlformats.org/package/2006/metadata/core-properties";ha.CORE_PROPS="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties";varTa=function(){vare=newArray(_a.length);for(varr=0;r<_a.length;++r){vart=_a[r];vara="(?:"+t[0].substr(0,t[0].indexOf(":"))+":)"+t[0].substr(t[0].indexOf(":")+1);e[r]=newRegExp("<"+a+"[^>]*>([\\s\\S]*?)</"+a+">")}returne}();functionxa(e){varr={};e=_e(e);for(vart=0;t<_a.length;++t){vara=_a[t],n=e.match(Ta[t]);if(n!=null&&n.length>0)r[a[1]]=n[1];if(a[2]==="date"&&r[a[1]])r[a[1]]=H(r[a[1]])}returnr}varIa=Ue("cp:coreProperties",null,{"xmlns:cp":ze.CORE_PROPS,"xmlns:dc":ze.dc,"xmlns:dcterms":ze.dcterms,"xmlns:dcmitype":ze.dcmitype,"xmlns:xsi":ze.xsi});functionAa(e,r,t,a,n){if(n[e]!=null||r==null||r==="")return;n[e]=r;a[a.length]=t?Ue(e,r,t):Le(e,r)}functionya(e,r){vart=r||{};vara=[se,Ia],n={};if(!e&&!t.Props)returna.join("");if(e){if(e.CreatedDate!=null)Aa("dcterms:created",typeofe.CreatedDate==="string"?e.CreatedDate:He(e.CreatedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n);if(e.ModifiedDate!=null)Aa("dcterms:modified",typeofe.ModifiedDate==="string"?e.ModifiedDate:He(e.ModifiedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n)}for(vari=0;i!=_a.length;++i){vars=_a[i];varo=t.Props&&t.Props[s[1]]!=null?t.Props[s[1]]:e?e[s[1]]:null;if(o===true)o="1";elseif(o===false)o="0";elseif(typeofo=="number")o=String(o);if(o!=null)Aa(s[0],o,null,a,n)}if(a.length>2){a[a.length]="</cp:coreProperties>";a[1]=a[1].replace("/>",">")}returna.join("")}varRa=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];ze.EXT_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties";ha.EXT_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties";functionDa(e,r,t){vara={};if(!r)r={};e=_e(e);Ra.forEach(function(t){switch(t[2]){case"string":r[t[1]]=(e.match(ye(t[0]))||[])[1];break;case"bool":r[t[1]]=(e.match(ye(t[0]))||[])[1]==="true";break;case"raw":varn=e.match(newRegExp("<"+t[0]+"[^>]*>([\\s\\S]*?)</"+t[0]+">"));if(n&&n.length>0)a[t[1]]=n[1];break;}});if(a.HeadingPairs&&a.TitlesOfParts){varn=Pe(a.HeadingPairs,t);vari=Pe(a.TitlesOfParts,t).map(function(e){returne.v});vars=0,o=0;if(i.length>0)for(varl=0;l!==n.length;l+=2){o=+n[l+1].v;switch(n[l].v){case"Worksheets":;case"工作表":;case"Листы":;case"أوراق العمل":;case"ワークシート":;case"גליונות עבודה":;case"Arbeitsblätter":;case"Çalışma Sayfaları":;case"Feuilles de calcul":;case"Fogli di lavoro":;case"Folhas de cálculo":;case"Planilhas":;case"Regneark":;case"Werkbladen":r.Worksheets=o;r.SheetNames=i.slice(s,s+o);break;case"Named Ranges":;case"名前付き一覧":;case"Benannte Bereiche":;case"Navngivne områder":r.NamedRanges=o;r.DefinedNames=i.slice(s,s+o);break;case"Charts":;case"Diagramme":r.Chartsheets=o;r.ChartNames=i.slice(s,s+o);break;}s+=o}}returnr}varOa=Ue("Properties",null,{xmlns:ze.EXT_PROPS,"xmlns:vt":ze.vt});functionFa(e,r){vart=[],a={},n=Ue;if(!e)e={};e.Application="SheetJS";t[t.length]=se;t[t.length]=Oa;Ra.forEach(function(r){if(e[r[1]]===undefined)return;vara;switch(r[2]){case"string":a=String(e[r[1]]);break;case"bool":a=e[r[1]]?"true":"false";break;}if(a!==undefined)t[t.length]=n(r[0],a)});t[t.length]=n("HeadingPairs",n("vt:vector",n("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+n("vt:variant",n("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"}));t[t.length]=n("TitlesOfParts",n("vt:vector",e.SheetNames.map(function(e){return"<vt:lpstr>"+ge(e)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"}));if(t.length>2){t[t.length]="</Properties>";t[1]=t[1].replace("/>",">")}returnt.join("")}ze.CUS
vari=Qp(e,{header:1,raw:true,cellDates:true});vars=i[0],o=i.slice(1);varl=0,f=0,c=0,u=1;for(l=0;l<s.length;++l){if(l==null)continue;++c;if(typeofs[l]!=="string")thrownewError("DBF Invalid column name");if(s.indexOf(s[l])!==l)for(f=0;f<1024;++f)if(s.indexOf(s[l]+"_"+f)==-1){s[l]+="_"+f;break}}varh=et(e["!ref"]);vard=[];for(l=0;l<=h.e.c-h.s.c;++l){varv=[];for(f=0;f<o.length;++f){if(o[f][l]!=null)v.push(o[f][l])}if(v.length==0||s[l]==null){d[l]="?";continue}varp="",b="";for(f=0;f<v.length;++f){switch(typeofv[f]){case"number":b="B";break;case"string":b="C";break;case"boolean":b="L";break;case"object":b=v[f]instanceofDate?"D":"C";break;default:b="C";}p=p&&p!=b?"C":b;if(p=="C")break}u+=n[p]||0;d[l]=p}varm=a.next(32);m._W(4,318902576);m._W(4,o.length);m._W(2,296+32*c);m._W(2,u);for(l=0;l<4;++l)m._W(4,0);m._W(4,768);for(l=0,f=0;l<s.length;++l){if(s[l]==null)continue;varg=a.next(32);varE=(s[l].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);g._W(1,E,"sbcs");g._W(1,d[l]=="?"?"C":d[l],"sbcs");g._W(4,f);g._W(1,n[d[l]]||0);g._W(1,0);g._W(1,2);g._W(4,0);g._W(1,0);g._W(4,0);g._W(4,0);f+=n[d[l]]||0}vark=a.next(264);k._W(4,13);for(l=0;l<65;++l)k._W(4,0);for(l=0;l<o.length;++l){varw=a.next(u);w._W(1,0);for(f=0;f<s.length;++f){if(s[f]==null)continue;switch(d[f]){case"L":w._W(1,o[l][f]==null?63:o[l][f]?84:70);break;case"B":w._W(8,o[l][f]||0,"f");break;case"D":if(!o[l][f])w._W(8,"00000000","sbcs");else{w._W(4,("0000"+o[l][f].getFullYear()).slice(-4),"sbcs");w._W(2,("00"+(o[l][f].getMonth()+1)).slice(-2),"sbcs");w._W(2,("00"+o[l][f].getDate()).slice(-2),"sbcs")}break;case"C":varS=String(o[l][f]||"");w._W(1,S,"sbcs");for(c=0;c<250-S.length;++c)w._W(1,32);break;}}}a.next(1)._W(1,26);returna.end()}return{to_workbook:a,to_sheet:t,from_sheet:i}}();varws=function(){functione(e,t){switch(t.type){case"base64":returnr(h.decode(e),t);case"binary":returnr(e,t);case"buffer":returnr(e.toString("binary"),t);case"array":returnr(W(e),t);}thrownewError("Unrecognized type "+t.type)}functionr(e,r){vart=e.split(/[\n\r]+/),a=-1,n=-1,i=0,s=0,o=[];varl=[];varf=null;varc={},u=[],h=[],d=[];varv=0,p;for(;i!==t.length;++i){v=0;varb=t[i].trim();varm=b.replace(/;;/g,"").split(";").map(function(e){returne.replace(/\u0001/g,";")});varg=m[0],k;if(b.length>0)switch(g){case"ID":break;case"E":break;case"B":break;case"O":break;case"P":if(m[1].charAt(0)=="P")l.push(b.substr(3).replace(/;;/g,";"));break;case"C":for(s=1;s<m.length;++s)switch(m[s].charAt(0)){case"X":n=parseInt(m[s].substr(1))-1;break;case"Y":a=parseInt(m[s].substr(1))-1;n=0;for(p=o.length;p<=a;++p)o[p]=[];break;case"K":k=m[s].substr(1);if(k.charAt(0)==='"')k=k.substr(1,k.length-2);elseif(k==="TRUE")k=true;elseif(k==="FALSE")k=false;elseif(!isNaN(G(k))){k=G(k);if(f!==null&&E.is_date(f))k=N(k)}elseif(!isNaN(j(k).getDate())){k=H(k)}o[a][n]=k;f=null;break;case"E":varw=vf(m[s].substr(1),{r:a,c:n});o[a][n]=[o[a][n],w];break;default:if(r&&r.WTF)thrownewError("SYLK bad record "+b);}break;case"F":varS=0;for(s=1;s<m.length;++s)switch(m[s].charAt(0)){case"X":n=parseInt(m[s].substr(1))-1;++S;break;case"Y":a=parseInt(m[s].substr(1))-1;for(p=o.length;p<=a;++p)o[p]=[];break;case"M":v=parseInt(m[s].substr(1))/20;break;case"F":break;case"P":f=l[parseInt(m[s].substr(1))];break;case"S":break;case"D":break;case"N":break;case"W":d=m[s].substr(1).split(" ");for(p=parseInt(d[0],10);p<=parseInt(d[1],10);++p){v=parseInt(d[2],10);h[p-1]=v===0?{hidden:true}:{wch:v};Ro(h[p-1])}break;case"C":n=parseInt(m[s].substr(1))-1;if(!h[n])h[n]={};break;case"R":a=parseInt(m[s].substr(1))-1;if(!u[a])u[a]={};if(v>0){u[a].hpt=v;u[a].hpx=Po(v)}elseif(v===0)u[a].hidden=true;break;default:if(r&&r.WTF)thrownewError("SYLK bad record "+b);}if(S<1)f=null;break;default:if(r&&r.WTF)thrownewError("SYLK bad record "+b);}}if(u.length>0)c["!rows"]=u;if(h.length>0)c["!cols"]=h;return[o,c]}functiont(r,t){vara=e(r,t);varn=a[0],i=a[1];vars=nt(n,t);I(i).forEach(function(e){s[e]=i[e]});returns}functiona(e,r){returnat(t(e,r),r)}functionn(e,r,t,a,n){vari="C;Y"+(t+1)+";X"+(a+1)+";K";switch(e.t){case"n":i+=e.v||0;if(e.
break;case"</font>":;case"<font/>":r.Fonts.push(n);n={};break;case"<name":if(i.val)n.name=i.val;break;case"<name/>":;case"</name>":break;case"<b":n.bold=i.val?Be(i.val):1;break;case"<b/>":n.bold=1;break;case"<i":n.italic=i.val?Be(i.val):1;break;case"<i/>":n.italic=1;break;case"<u":switch(i.val){case"none":n.underline=0;break;case"single":n.underline=1;break;case"double":n.underline=2;break;case"singleAccounting":n.underline=33;break;case"doubleAccounting":n.underline=34;break;}break;case"<u/>":n.underline=1;break;case"<strike":n.strike=i.val?Be(i.val):1;break;case"<strike/>":n.strike=1;break;case"<outline":n.outline=i.val?Be(i.val):1;break;case"<outline/>":n.outline=1;break;case"<shadow":n.shadow=i.val?Be(i.val):1;break;case"<shadow/>":n.shadow=1;break;case"<condense":n.condense=i.val?Be(i.val):1;break;case"<condense/>":n.condense=1;break;case"<extend":n.extend=i.val?Be(i.val):1;break;case"<extend/>":n.extend=1;break;case"<sz":if(i.val)n.sz=+i.val;break;case"<sz/>":;case"</sz>":break;case"<vertAlign":if(i.val)n.vertAlign=i.val;break;case"<vertAlign/>":;case"</vertAlign>":break;case"<family":if(i.val)n.family=parseInt(i.val,10);break;case"<family/>":;case"</family>":break;case"<scheme":if(i.val)n.scheme=i.val;break;case"<scheme/>":;case"</scheme>":break;case"<charset":if(i.val=="1")break;i.codepage=Ts[parseInt(i.val,10)];break;case"<color":if(!n.color)n.color={};if(i.auto)n.color.auto=Be(i.auto);if(i.rgb)n.color.rgb=i.rgb.slice(-6);elseif(i.indexed){n.color.index=parseInt(i.indexed,10);vars=aa[n.color.index];if(n.color.index==81)s=aa[1];if(!s)thrownewError(e);n.color.rgb=s[0].toString(16)+s[1].toString(16)+s[2].toString(16)}elseif(i.theme){n.color.theme=parseInt(i.theme,10);if(i.tint)n.color.tint=parseFloat(i.tint);if(i.theme&&t.themeElements&&t.themeElements.clrScheme){n.color.rgb=go(t.themeElements.clrScheme[n.color.theme].rgb,n.color.tint||0)}}break;case"<color/>":;case"</color>":break;default:if(a&&a.WTF)thrownewError("unrecognized "+i[0]+" in fonts");}})}functionHo(e,r,t){r.NumberFmt=[];vara=I(E._table);for(varn=0;n<a.length;++n)r.NumberFmt[a[n]]=E._table[a[n]];vari=e[0].match(le);if(!i)return;for(n=0;n<i.length;++n){vars=ue(i[n]);switch(s[0]){case"<numFmts":;case"</numFmts>":;case"<numFmts/>":;case"<numFmts>":break;case"<numFmt":{varo=pe(_e(s.formatCode)),l=parseInt(s.numFmtId,10);r.NumberFmt[l]=o;if(l>0){if(l>392){for(l=392;l>60;--l)if(r.NumberFmt[l]==null)break;r.NumberFmt[l]=o}E.load(o,l)}}break;case"</numFmt>":break;default:if(t.WTF)thrownewError("unrecognized "+s[0]+" in numFmts");}}}functionWo(e,r){vart=["<numFmts>"];[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(vara=r[0];a<=r[1];++a)if(e[a]!=null)t[t.length]=Ue("numFmt",null,{numFmtId:a,formatCode:ge(e[a])})});if(t.length===1)return"";t[t.length]="</numFmts>";t[0]=Ue("numFmts",null,{count:t.length-2}).replace("/>",">");returnt.join("")}varzo=["numFmtId","fillId","fontId","borderId","xfId"];varVo=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];functionXo(e,r,t){r.CellXf=[];vara;e[0].match(le).forEach(function(e){varn=ue(e),i=0;switch(n[0]){case"<cellXfs":;case"<cellXfs>":;case"<cellXfs/>":;case"</cellXfs>":break;case"<xf":;case"<xf/>":a=n;deletea[0];for(i=0;i<zo.length;++i)if(a[zo[i]])a[zo[i]]=parseInt(a[zo[i]],10);for(i=0;i<Vo.length;++i)if(a[Vo[i]])a[Vo[i]]=Be(a[Vo[i]],"");if(a.numFmtId>392){for(i=392;i>60;--i)if(r.NumberFmt[a.numFmtId]==r.NumberFmt[i]){a.numFmtId=i;break}}r.CellXf.push(a);break;case"</xf>":break;case"<alignment":;case"<alignment/>":vars={};if(n.vertical)s.vertical=n.vertical;if(n.horizontal)s.horizontal=n.horizontal;if(n.textRotation!=null)s.textRotation=n.textRotation;if(n.indent)s.indent=n.indent;if(n.wrapText)s.wrapText=n.wrapText;a.alignment=s;break;case"</alignment>":break;case"<protection":;case"</protection>":;case"<protection/>":break;case"<extLst":;case"</extLst>":break;case"<ext":break;default:if(t.WTF)thrownewError("unrecognized "+n[0]+" in cellXfs");}})}functionGo(e){varr=[];r[r.length]=Ue("cellXfs",null);e.forEac
})}functionBd(e){if(!e||!e.SheetNames||!e.Sheets)thrownewError("Invalid Workbook");Cd(e.SheetNames)}var_d=/<\w+:workbook/;functionTd(e,r){if(!e)thrownewError("Could not find file");vart={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""};vara=false,n="xmlns";vari={},s=0;e.replace(le,functiono(l,f){varc=ue(l);switch(he(c[0])){case"<?xml":break;case"<workbook":if(l.match(_d))n="xmlns"+l.match(/<(\w+):/)[1];t.xmlns=c[n];break;case"</workbook>":break;case"<fileVersion":deletec[0];t.AppVersion=c;break;case"<fileVersion/>":;case"</fileVersion>":break;case"<fileSharing":;case"<fileSharing/>":break;case"<workbookPr":;case"<workbookPr/>":hd.forEach(function(e){if(c[e[0]]==null)return;switch(e[2]){case"bool":t.WBProps[e[0]]=Be(c[e[0]],e[0]);break;case"int":t.WBProps[e[0]]=parseInt(c[e[0]],10);break;default:t.WBProps[e[0]]=c[e[0]];}});if(c.codeName)t.WBProps.CodeName=c.codeName;break;case"</workbookPr>":break;case"<workbookProtection":break;case"<workbookProtection/>":break;case"<bookViews":;case"<bookViews>":;case"</bookViews>":break;case"<workbookView":deletec[0];t.WBView.push(c);break;case"</workbookView>":break;case"<sheets":;case"<sheets>":;case"</sheets>":break;case"<sheet":switch(c.state){case"hidden":c.Hidden=1;break;case"veryHidden":c.Hidden=2;break;default:c.Hidden=0;}deletec.state;c.name=pe(_e(c.name));deletec[0];t.Sheets.push(c);break;case"</sheet>":break;case"<functionGroups":;case"<functionGroups/>":break;case"<functionGroup":break;case"<externalReferences":;case"</externalReferences>":;case"<externalReferences>":break;case"<externalReference":break;case"<definedNames/>":break;case"<definedNames>":;case"<definedNames":a=true;break;case"</definedNames>":a=false;break;case"<definedName":{i={};i.Name=c.name;if(c.comment)i.Comment=c.comment;if(c.localSheetId)i.Sheet=+c.localSheetId;s=f+l.length}break;case"</definedName>":{i.Ref=e.slice(s,f);t.Names.push(i)}break;case"<definedName/>":break;case"<calcPr":deletec[0];t.CalcPr=c;break;case"<calcPr/>":deletec[0];t.CalcPr=c;break;case"</calcPr>":break;case"<oleSize":break;case"<customWorkbookViews>":;case"</customWorkbookViews>":;case"<customWorkbookViews":break;case"<customWorkbookView":;case"</customWorkbookView>":break;case"<pivotCaches>":;case"</pivotCaches>":;case"<pivotCaches":break;case"<pivotCache":break;case"<smartTagPr":;case"<smartTagPr/>":break;case"<smartTagTypes":;case"<smartTagTypes>":;case"</smartTagTypes>":break;case"<smartTagType":break;case"<webPublishing":;case"<webPublishing/>":break;case"<fileRecoveryPr":;case"<fileRecoveryPr/>":break;case"<webPublishObjects>":;case"<webPublishObjects":;case"</webPublishObjects>":break;case"<webPublishObject":break;case"<extLst":;case"<extLst>":;case"</extLst>":;case"<extLst/>":break;case"<ext":a=true;break;case"</ext>":a=false;break;case"<ArchID":break;case"<AlternateContent":;case"<AlternateContent>":a=true;break;case"</AlternateContent>":a=false;break;case"<revisionPtr":break;default:if(!a&&r.WTF)thrownewError("unrecognized "+c[0]+" in workbook");}returnl});if(ze.main.indexOf(t.xmlns)===-1)thrownewError("Unknown Namespace: "+t.xmlns);Ed(t);returnt}varxd=Ue("workbook",null,{xmlns:ze.main[0],"xmlns:r":ze.r});functionId(e,r){vart=[se];t[t.length]=xd;vara=e.Workbook&&(e.Workbook.Names||[]).length>0;varn={codeName:"ThisWorkbook"};if(e.Workbook&&e.Workbook.WBProps){hd.forEach(function(r){if(e.Workbook.WBProps[r[0]]==null)return;if(e.Workbook.WBProps[r[0]]==r[1])return;n[r[0]]=e.Workbook.WBProps[r[0]]});if(e.Workbook.WBProps.CodeName){n.codeName=e.Workbook.WBProps.CodeName;deleten.CodeName}}t[t.length]=Ue("workbookPr",null,n);t[t.length]="<sheets>";vari=e.Workbook&&e.Workbook.Sheets||[];for(vars=0;s!=e.SheetNames.length;++s){varo={name:ge(e.SheetNames[s].substr(0,31))};o.sheetId=""+(s+1);o["r:id"]="rId"+(s+1);if(i[s])switch(i[s].Hidden){case1:o.state="hidden";break;case2:o.state="veryHidden";break;}t[t.length]=Ue("sheet",null,o)}t[t.length]="</sheets>";if(a){t[t.length]="<definedNames>";if(e.Workbook&&e.Workbook.Names)e.Workbook.Names.forEach(function(e){varr={name:e.N
varn=t;vari=[];vars=r.slice(r.l,r.l+n);if(a&&a.enc&&a.enc.insitu)switch(e.n){case"BOF":;case"FilePass":;case"FileLock":;case"InterfaceHdr":;case"RRDInfo":;case"RRDHead":;case"UsrExcl":break;default:if(s.length===0)break;a.enc.insitu(s);}i.push(s);r.l+=n;varo=zv[hr(r,r.l)];varl=0;while(o!=null&&o.n.slice(0,8)==="Continue"){n=hr(r,r.l+2);l=r.l+4;if(o.n=="ContinueFrt")l+=4;elseif(o.n.slice(0,11)=="ContinueFrt")l+=12;i.push(r.slice(l,r.l+4+n));r.l+=4+n;o=zv[hr(r,r.l)]}varf=b(i);_r(f,0);varc=0;f.lens=[];for(varu=0;u<i.length;++u){f.lens.push(c);c+=i[u].length}returne.f(f,f.length,a)}functionFv(e,r,t){if(e.t==="z")return;if(!e.XF)return;vara=0;try{a=e.z||e.XF.numFmtId||0;if(r.cellNF)e.z=E._table[a]}catch(n){if(r.WTF)thrown}if(!r||r.cellText!==false)try{if(e.t==="e"){e.w=e.w||Dt[e.v]}elseif(a===0||a=="General"){if(e.t==="n"){if((e.v|0)===e.v)e.w=E._general_int(e.v);elsee.w=E._general_num(e.v)}elsee.w=E._general(e.v)}elsee.w=E.format(a,e.v,{date1904:!!t})}catch(n){if(r.WTF)thrown}if(r.cellDates&&a&&e.t=="n"&&E.is_date(E._table[a]||String(a))){vari=E.parse_date_code(e.v);if(i){e.t="d";e.v=newDate(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u)}}}functionPv(e,r,t){return{v:e,ixfe:r,t:t}}functionNv(e,r){vart={opts:{}};vara={};if(c!=null&&r.dense==null)r.dense=c;vari=r.dense?[]:{};vars={};varo=false;varl={};varf=null;varu=[];varh="";vard={};varv,p="",b,m,g,k,w;varS={};varC=[];varB;var_;varT=true;varx=[];varI=[];varA={Sheets:[],WBProps:{date1904:false}},y={};varR=functionEe(e){if(e<8)returnaa[e];if(e<64)returnI[e-8]||aa[e];returnaa[e]};varD=functionke(e,r,t){vara=r.XF.data;if(!a||!a.patternType||!t||!t.cellStyles)return;r.s={};r.s.patternType=a.patternType;varn;if(n=po(R(a.icvFore))){r.s.fgColor={rgb:n}}if(n=po(R(a.icvBack))){r.s.bgColor={rgb:n}}};varO=functionwe(e,r,t){if(X>1)return;if(!T)return;if(t.cellStyles&&r.XF&&r.XF.data)D(e,r,t);deleter.ixfe;deleter.XF;v=e;p=$r(e);if(l.s){if(e.r<l.s.r)l.s.r=e.r;if(e.c<l.s.c)l.s.c=e.c}if(l.e){if(e.r+1>l.e.r)l.e.r=e.r+1;if(e.c+1>l.e.c)l.e.c=e.c+1}if(t.cellFormula&&r.f){for(vara=0;a<C.length;++a){if(C[a][0].s.c>e.c)continue;if(C[a][0].s.r>e.r)continue;if(C[a][0].e.c<e.c)continue;if(C[a][0].e.r<e.r)continue;r.F=qr(C[a][0]);if(C[a][0].s.c!=e.c)deleter.f;if(C[a][0].s.r!=e.r)deleter.f;if(r.f)r.f=""+fu(C[a][1],l,e,z,F);break}}if(t.sheetRows&&v.r>=t.sheetRows)T=false;else{if(t.dense){if(!i[e.r])i[e.r]=[];i[e.r][e.c]=r}elsei[p]=r}};varF={enc:false,sbcch:0,snames:[],sharedf:S,arrayf:C,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!r&&!!r.cellStyles,WTF:!!r&&!!r.wtf};if(r.password)F.password=r.password;varP=[];varN=[];varL=[],M=[];varU=0,H=0;varW=false;varz=[];z.SheetNames=F.snames;z.sharedf=F.sharedf;z.arrayf=F.arrayf;z.names=[];z.XTI=[];varV="";varX=0;varG=0;varj=[];varK=[];varY;F.codepage=1200;n(1200);while(e.l<e.length-1){var$=e.l;varZ=e._R(2);if(Z===0&&V==="EOF")break;varQ=e.l===e.length?0:e._R(2),J;varq=zv[Z];if(q&&q.f){if(r.bookSheets){if(V==="BoundSheet8"&&q.n!=="BoundSheet8")break}V=q.n;if(q.r===2||q.r==12){varee=e._R(2);Q-=2;if(!F.enc&&ee!==Z)thrownewError("rt mismatch: "+ee+"!="+Z);if(q.r==12){e.l+=10;Q-=10}}varre;if(q.n==="EOF")re=q.f(e,Q,F);elsere=Ov(q,e,Q,F);varte=q.n;switch(te){case"Date1904":t.opts.Date1904=A.WBProps.date1904=re;break;case"WriteProtect":t.opts.WriteProtect=true;break;case"FilePass":if(!F.enc)e.l=0;F.enc=re;if(F.WTF)console.error(re);if(!r.password)thrownewError("File is password-protected");if(re.valid==null)thrownewError("Encryption scheme unsupported");if(!re.valid)thrownewError("Password is incorrect");break;case"WriteAccess":F.lastuser=re;break;case"FileSharing":break;case"CodePage":switch(re){case21010:re=1200;break;case32768:re=1e4;break;case32769:re=1252;break;}F.codepage=re;n(re);break;case"RRTabId":F.rrtabid=re;break;case"WinProtect":F.winlocked=re;break;case"Template":break;case"RefreshAll":t.opts.RefreshAll=re;break;case"BookBool":break;case"UsesELFs":break;case"MTRSettings":break;case"CalcCount":t.opts.CalcCount=re;break;case"CalcDelta":t.opts.CalcDelta=re;break;case"