varr=File(e);r.open("r");r.encoding="binary";vart=r.read();r.close();returnt}catch(a){if(!a.message||!a.message.match(/onstruct/))throwa}thrownewError("Cannot access file "+e)}functionir(e){varr=Object.keys(e),t=[];for(vara=0;a<r.length;++a)if(Object.prototype.hasOwnProperty.call(e,r[a]))t.push(r[a]);returnt}functionsr(e,r){vart=[],a=ir(e);for(varn=0;n!==a.length;++n)if(t[e[a[n]][r]]==null)t[e[a[n]][r]]=a[n];returnt}functionlr(e){varr=[],t=ir(e);for(vara=0;a!==t.length;++a)r[e[t[a]]]=t[a];returnr}functionor(e){varr=[],t=ir(e);for(vara=0;a!==t.length;++a)r[e[t[a]]]=parseInt(t[a],10);returnr}functioncr(e){varr=[],t=ir(e);for(vara=0;a!==t.length;++a){if(r[e[t[a]]]==null)r[e[t[a]]]=[];r[e[t[a]]].push(t[a])}returnr}varfr=Date.UTC(1899,11,30,0,0,0);varur=Date.UTC(1899,11,31,0,0,0);varhr=Date.UTC(1904,0,1,0,0,0);functiondr(e,r){vart=e.getTime();vara=(t-fr)/(24*60*60*1e3);if(r){a-=1462;returna<-1402?a-1:a}returna<60?a-1:a}functionpr(e){if(e>=60&&e<61)returne;varr=newDate;r.setTime((e>60?e:e+1)*24*60*60*1e3+fr);returnr}functionmr(e){varr=0,t=0,a=false;varn=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!n)thrownewError("|"+e+"| is not an ISO8601 Duration");for(vari=1;i!=n.length;++i){if(!n[i])continue;t=1;if(i>3)a=true;switch(n[i].slice(n[i].length-1)){case"Y":thrownewError("Unsupported ISO Duration Field: "+n[i].slice(n[i].length-1));case"D":t*=24;case"H":t*=60;case"M":if(!a)thrownewError("Unsupported ISO Duration Field: M");elset*=60;case"S":break;}r+=t*parseInt(n[i],10)}returnr}varvr=/^(\d+):(\d+)(:\d+)?(\.\d+)?$/;vargr=/^(\d+)-(\d+)-(\d+)$/;varbr=/^(\d+)-(\d+)-(\d+)[T ](\d+):(\d+)(:\d+)?(\.\d+)?$/;functionwr(e,r){if(einstanceofDate)returne;vart=e.match(vr);if(t)returnnewDate((r?hr:ur)+((parseInt(t[1],10)*60+parseInt(t[2],10))*60+(t[3]?parseInt(t[3].slice(1),10):0))*1e3+(t[4]?parseInt((t[4]+"000").slice(1,4),10):0));t=e.match(gr);if(t)returnnewDate(Date.UTC(+t[1],+t[2]-1,+t[3],0,0,0,0));t=e.match(br);if(t)returnnewDate(Date.UTC(+t[1],+t[2]-1,+t[3],+t[4],+t[5],t[6]&&parseInt(t[6].slice(1),10)||0,t[7]&&parseInt(t[7].slice(1),10)||0));vara=newDate(e);returna}functionkr(e,r){if(_&&Buffer.isBuffer(e)){if(r&&T){if(e[0]==255&&e[1]==254)returnyt(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)returnyt(d(e.slice(2).toString("binary")))}returne.toString("binary")}if(typeofTextDecoder!=="undefined")try{if(r){if(e[0]==255&&e[1]==254)returnyt(newTextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)returnyt(newTextDecoder("utf-16be").decode(e.slice(2)))}vart={"€":"","‚":"","ƒ":"","„":"","…":"","†":"","‡":"","ˆ":"","‰":"","Š":"","‹":"","Œ":"","Ž":"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"","š":"","›":"","œ":"","ž":"","Ÿ":""};if(Array.isArray(e))e=newUint8Array(e);returnnewTextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(e){returnt[e]||e})}catch(a){}varn=[],i=0;try{for(i=0;i<e.length-65536;i+=65536)n.push(String.fromCharCode.apply(0,e.slice(i,i+65536)));n.push(String.fromCharCode.apply(0,e.slice(i)))}catch(a){try{for(;i<e.length-16384;i+=16384)n.push(String.fromCharCode.apply(0,e.slice(i,i+16384)));n.push(String.fromCharCode.apply(0,e.slice(i)))}catch(a){for(;i!=e.length;++i)n.push(String.fromCharCode(e[i]))}}returnn.join("")}functionyr(e){if(typeofJSON!="undefined"&&!Array.isArray(e))returnJSON.parse(JSON.stringify(e));if(typeofe!="object"||e==null)returne;if(einstanceofDate)returnnewDate(e.getTime());varr={};for(vartine)if(Object.prototype.hasOwnProperty.call(e,t))r[t]=yr(e[t]);returnr}functionxr(e,r){vart="";while(t.length<r)t+=e;returnt}functionSr(e){varr=Number(e);if(!isNaN(r))returnisFinite(r)?r:NaN;if(!/\d/.test(e))returnr;vart=1;vara=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){t*=100;return""});if(!isNaN(r=Number(a)))returnr/t;a=a.repl
varS=x.replace(/;;/g,"\0").split(";").map(function(e){returne.replace(/\u0000/g,";")});varC=S[0],_;if(x.length>0)switch(C){case"ID":break;case"E":break;case"B":break;case"O":for(u=1;u<S.length;++u)switch(S[u].charAt(0)){case"V":{varA=parseInt(S[u].slice(1),10);if(A>=1&&A<=4)y.Workbook.WBProps.date1904=true}break;}break;case"W":break;case"P":switch(S[1].charAt(0)){case"P":d.push(x.slice(3).replace(/;;/g,";"));break;}break;case"NN":{varT={Sheet:0};for(u=1;u<S.length;++u)switch(S[u].charAt(0)){case"N":T.Name=S[u].slice(1);break;case"E":T.Ref=(t&&t.sheet||"Sheet1")+"!"+Os(S[u].slice(1));break;}y.Workbook.Names.push(T)}break;case"C":varE=false,F=false,D=false,O=false,M=-1,N=-1,I="",P="z";varR="";for(u=1;u<S.length;++u)switch(S[u].charAt(0)){case"A":R=S[u].slice(1);break;case"X":c=parseInt(S[u].slice(1),10)-1;F=true;break;case"Y":l=parseInt(S[u].slice(1),10)-1;if(!F)c=0;for(k=h.length;k<=l;++k)h[k]=[];break;case"K":_=S[u].slice(1);if(_.charAt(0)==='"'){_=_.slice(1,_.length-1);P="s"}elseif(_==="TRUE"||_==="FALSE"){_=_==="TRUE";P="b"}elseif(!isNaN(Sr(_))){_=Sr(_);P="n";if(p!==null&&Re(p)&&t.cellDates){_=pr(y.Workbook.WBProps.date1904?_+1462:_);P=typeof_=="number"?"n":"d"}}if(typeofa!=="undefined"&&typeof_=="string"&&(t||{}).type!="string"&&(t||{}).codepage)_=a.utils.decode(t.codepage,_);E=true;break;case"E":O=true;I=Os(S[u].slice(1),{r:l,c:c});break;case"S":D=true;break;case"G":break;case"R":M=parseInt(S[u].slice(1),10)-1;break;case"C":N=parseInt(S[u].slice(1),10)-1;break;default:if(t&&t.WTF)thrownewError("SYLK bad record "+x);}if(E){if(!h[l][c])h[l][c]={t:P,v:_};else{h[l][c].t=P;h[l][c].v=_}if(p)h[l][c].z=p;if(t.cellText!==false&&p)h[l][c].w=$e(h[l][c].z,h[l][c].v,{date1904:y.Workbook.WBProps.date1904});p=null}if(D){if(O)thrownewError("SYLK shared formula cannot have own formula");varL=M>-1&&h[M][N];if(!L||!L[1])thrownewError("SYLK shared formula cannot find base");I=Ps(L[1],{r:l-M,c:c-N})}if(I){if(!h[l][c])h[l][c]={t:"n",f:I};elseh[l][c].f=I}if(R){if(!h[l][c])h[l][c]={t:"z"};h[l][c].c=[{a:"SheetJSYLK",t:R}]}break;case"F":varB=0;for(u=1;u<S.length;++u)switch(S[u].charAt(0)){case"X":c=parseInt(S[u].slice(1),10)-1;++B;break;case"Y":l=parseInt(S[u].slice(1),10)-1;for(k=h.length;k<=l;++k)h[k]=[];break;case"M":w=parseInt(S[u].slice(1),10)/20;break;case"F":break;case"G":break;case"P":p=d[parseInt(S[u].slice(1),10)];break;case"S":break;case"D":break;case"N":break;case"W":b=S[u].slice(1).split(" ");for(k=parseInt(b[0],10);k<=parseInt(b[1],10);++k){w=parseInt(b[2],10);g[k-1]=w===0?{hidden:true}:{wch:w}}break;case"C":c=parseInt(S[u].slice(1),10)-1;if(!g[c])g[c]={};break;case"R":l=parseInt(S[u].slice(1),10)-1;if(!v[l])v[l]={};if(w>0){v[l].hpt=w;v[l].hpx=Li(w)}elseif(w===0)v[l].hidden=true;break;default:if(t&&t.WTF)thrownewError("SYLK bad record "+x);}if(B<1)p=null;break;default:if(t&&t.WTF)thrownewError("SYLK bad record "+x);}}if(v.length>0)m["!rows"]=v;if(g.length>0)m["!cols"]=g;g.forEach(function(e){Ni(e)});if(t&&t.sheetRows)h=h.slice(0,t.sheetRows);return[h,m,y]}functionf(e,r){vart=l(e,r);vara=t[0],n=t[1],i=t[2];vars=yr(r);s.date1904=(((i||{}).Workbook||{}).WBProps||{}).date1904;varo=qa(a,s);ir(n).forEach(function(e){o[e]=n[e]});varc=Ja(o,r);ir(i).forEach(function(e){c[e]=i[e]});c.bookType="sylk";returnc}functionu(e,r,t,a,n,i){vars="C;Y"+(t+1)+";X"+(a+1)+";K";switch(e.t){case"n":s+=e.v||0;if(e.f&&!e.F)s+=";E"+Is(e.f,{r:t,c:a});break;case"b":s+=e.v?"TRUE":"FALSE";break;case"e":s+=e.w||e.v;break;case"d":s+=dr(wr(e.v,i),i);break;case"s":s+='"'+(e.v==null?"":String(e.v)).replace(/"/g,"").replace(/;/g,";;")+'"';break;}returns}functionh(e,r,t){vara="C;Y"+(r+1)+";X"+(t+1)+";A";a+=s(e.map(function(e){returne.t}).join(""));returna}functiond(e,r){r.forEach(function(r,t){vara="F;W"+(t+1)+" "+(t+1)+" ";if(r.hidden)a+="0";else{if(typeofr.width=="number"&&!r.wpx)r.wpx=Ei(r.width);if(typeofr.wpx=="number"&&!r.wch)r.wch=Fi(r.wpx);if(typeofr.wch=="number")a+=Math.round(r.wch)}if(a.charAt(a.length-1)!=" ")e.push(a)})}functionp(e,r){r.forEach(function(r,t){vara="F;";if(r.hidden)a+="M0;";elseif(r.hpt)a+="M"
}vart="xml";vara=As.indexOf(r.bookType)>-1;varn=_n();Oo(r=r||{});vari=Vr();vars="",l=0;r.cellXfs=[];Js(r.cellXfs,{},{revssf:{General:0}});if(!e.Props)e.Props={};s="docProps/core.xml";Hr(i,s,Hn(e.Props,r));n.coreprops.push(s);Mn(r.rels,2,s,En.CORE_PROPS);s="docProps/app.xml";if(e.Props&&e.Props.SheetNames){}elseif(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{varo=[];for(varc=0;c<e.SheetNames.length;++c)if((e.Workbook.Sheets[c]||{}).Hidden!=2)o.push(e.SheetNames[c]);e.Props.SheetNames=o}e.Props.Worksheets=e.Props.SheetNames.length;Hr(i,s,Jn(e.Props,r));n.extprops.push(s);Mn(r.rels,3,s,En.EXT_PROPS);if(e.Custprops!==e.Props&&ir(e.Custprops||{}).length>0){s="docProps/custom.xml";Hr(i,s,qn(e.Custprops,r));n.custprops.push(s);Mn(r.rels,4,s,En.CUST_PROPS)}varf=["SheetJ5"];r.tcid=0;for(l=1;l<=e.SheetNames.length;++l){varu={"!id":{}};varh=e.Sheets[e.SheetNames[l-1]];vard=(h||{})["!type"]||"sheet";switch(d){case"chart":;default:s="xl/worksheets/sheet"+l+"."+t;Hr(i,s,Dl(l-1,r,e,u));n.sheets.push(s);Mn(r.wbrels,-1,"worksheets/sheet"+l+"."+t,En.WS[0]);}if(h){varp=h["!comments"];varm=false;varv="";if(p&&p.length>0){varg=false;p.forEach(function(e){e[1].forEach(function(e){if(e.T==true)g=true})});if(g){v="xl/threadedComments/threadedComment"+l+".xml";Hr(i,v,ks(p,f,r));n.threadedcomments.push(v);Mn(u,-1,"../threadedComments/threadedComment"+l+".xml",En.TCMNT)}v="xl/comments"+l+"."+t;Hr(i,v,bs(p,r));n.comments.push(v);Mn(u,-1,"../comments"+l+"."+t,En.CMNT);m=true}if(h["!legacy"]){if(m)Hr(i,"xl/drawings/vmlDrawing"+l+".vml",ps(l,h["!comments"]))}deleteh["!comments"];deleteh["!legacy"]}if(u["!id"].rId1)Hr(i,Fn(s),On(u))}if(r.Strings!=null&&r.Strings.length>0){s="xl/sharedStrings."+t;Hr(i,s,bi(r.Strings,r));n.strs.push(s);Mn(r.wbrels,-1,"sharedStrings."+t,En.SST)}s="xl/workbook."+t;Hr(i,s,Yl(e,r));n.workbooks.push(s);Mn(r.rels,1,s,En.WB);s="xl/theme/theme1.xml";Hr(i,s,ss(e.Themes,r));n.themes.push(s);Mn(r.wbrels,-1,"theme/theme1.xml",En.THEME);s="xl/styles."+t;Hr(i,s,Ji(e,r));n.styles.push(s);Mn(r.wbrels,-1,"styles."+t,En.STY);if(e.vbaraw&&a){s="xl/vbaProject.bin";Hr(i,s,e.vbaraw);n.vba.push(s);Mn(r.wbrels,-1,"vbaProject.bin",En.VBA)}s="xl/metadata."+t;Hr(i,s,os());n.metadata.push(s);Mn(r.wbrels,-1,"metadata."+t,En.XLMETA);if(f.length>1){s="xl/persons/person.xml";Hr(i,s,xs(f,r));n.people.push(s);Mn(r.wbrels,-1,"persons/person.xml",En.PEOPLE)}Hr(i,"[Content_Types].xml",Tn(n,r));Hr(i,"_rels/.rels",On(r.rels));Hr(i,"xl/_rels/workbook."+t+".rels",On(r.wbrels));deleter.revssf;deleter.ssf;returni}function$o(e,r){vart="";switch((r||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":t=C(e.slice(0,12));break;case"binary":t=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:thrownewError("Unrecognized type "+(r&&r.type||"undefined"));}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3),t.charCodeAt(4),t.charCodeAt(5),t.charCodeAt(6),t.charCodeAt(7)]}functionWo(e,r){if(Qe.find(e,"EncryptedPackage"))returnBo(e,r);returnparse_xlscfb(e,r)}functionjo(e,r){vart,a=e;varn=r||{};if(!n.type)n.type=_&&Buffer.isBuffer(e)?"buffer":"base64";t=Xr(a,n);returnLo(t,n)}functionHo(e,r){vart=0;e:while(t<e.length)switch(e.charCodeAt(t)){case10:;case13:;case32:++t;break;case60:returnparse_xlml(e.slice(t),r);default:breake;}returnni.to_workbook(e,r)}functionVo(e,r){vart="",a=$o(e,r);switch(r.type){case"base64":t=C(e);break;case"binary":t=e;break;case"buffer":t=e.toString("binary");break;case"array":t=kr(e);break;default:thrownewError("Unrecognized type "+r.type);}if(a[0]==239&&a[1]==187&&a[2]==191)t=kt(t);r.type="binary";returnHo(t,r)}functionXo(e,r){vart=e;if(r.type=="base64")t=C(t);if(typeofArrayBuffer!=="undefined"&&einstanceofArrayBuffer)t=newUint8Array(e);t=typeofa!=="undefined"?a.utils.decode(1200,t.slice(2),"str"):_&&Buffer.isBuffer(e)?e.slice(2).toString("utf16le"):typeofUint8Array!=="undefined"&&tinstanceofUint8Array?typeofTextDecoder!=="undefined"?newTextDecoder("utf-16le").decode(t.slice(2)):h(t.