s._W(4,842412599);s._W(16,qe.utils.consts.HEADER_CLSID,"hex");s._W(4,n?2:1);s._W(16,r,"hex");s._W(4,n?68:48);varc=qi(e,t,a);f.push(c);if(n){varl=qi(n,null,null);s._W(16,i,"hex");s._W(4,68+c.length);f.push(l)}returnN(f)}functionrs(e,r){e._R(r);returnnull}functionts(e,r){if(!r)r=ba(e);for(vart=0;t<e;++t)r._W(1,0);returnr}functionas(e,r,t){vara=[],n=e.l+r;while(e.l<n)a.push(t(e,n-e.l));if(n!==e.l)thrownewError("Slurp error");returna}functionns(e,r){returne._R(r)===1}functionis(e,r){if(!r)r=ba(2);r._W(2,+!!e);returnr}functionss(e){returne._R(2,"u")}functionfs(e,r){if(!r)r=ba(2);r._W(2,e);returnr}functioncs(e,r){returnas(e,r,ss)}functionls(e){varr=e._R(1),t=e._R(1);returnt===1?r:r===1}functionos(e,r,t){if(!t)t=ba(2);t._W(1,r=="e"?+e:+!!e);t._W(1,r=="e"?1:0);returnt}functionus(e,t,a){varn=e._R(a&&a.biff>=12?2:1);vari="sbcs-cont";vars=r;if(a&&a.biff>=8)r=1200;if(!a||a.biff==8){varf=e._R(1);if(f){i="dbcs-cont"}}elseif(a.biff==12){i="wstr"}if(a.biff>=2&&a.biff<=5)i="cpstr";varc=n?e._R(n,i):"";r=s;returnc}functionhs(e){vart=r;r=1200;vara=e._R(2),n=e._R(1);vari=n&4,s=n&8;varf=1+(n&1);varc=0,l;varo={};if(s)c=e._R(2);if(i)l=e._R(4);varu=f==2?"dbcs-cont":"sbcs-cont";varh=a===0?"":e._R(a,u);if(s)e.l+=4*c;if(i)e.l+=l;o.t=h;if(!s){o.raw="<t>"+o.t+"</t>";o.r=o.t}r=t;returno}functionds(e){varr=e.t||"",t=1;vara=ba(3+(t>1?2:0));a._W(2,r.length);a._W(1,(t>1?8:0)|1);if(t>1)a._W(2,t);varn=ba(2*r.length);n._W(2*r.length,r,"utf16le");vari=[a,n];returnN(i)}functionvs(e,r,t){vara;if(t){if(t.biff>=2&&t.biff<=5)returne._R(r,"cpstr");if(t.biff>=12)returne._R(r,"dbcs-cont")}varn=e._R(1);if(n===0){a=e._R(r,"sbcs-cont")}else{a=e._R(r,"dbcs-cont")}returna}functionps(e,r,t){vara=e._R(t&&t.biff==2?1:2);if(a===0){e.l++;return""}returnvs(e,a,t)}functionms(e,r,t){if(t.biff>5)returnps(e,r,t);vara=e._R(1);if(a===0){e.l++;return""}returne._R(a,t.biff<=4||!e.lens?"cpstr":"sbcs-cont")}functionbs(e,r,t){if(!t)t=ba(3+2*e.length);t._W(2,e.length);t._W(1,1);t._W(31,e,"utf16le");returnt}functiongs(e){varr=e._R(1);e.l++;vart=e._R(2);e.l+=2;return[r,t]}functionws(e){varr=e._R(4),t=e.l;vara=false;if(r>24){e.l+=r-24;if(e._R(16)==="795881f43b1d7f48af2c825dc4852763")a=true;e.l=t}varn=e._R((a?r-24:r)>>1,"utf16le").replace(F,"");if(a)e.l+=24;returnn}functionks(e){varr=e._R(2);vart="";while(r-->0)t+="../";vara=e._R(0,"lpstr-ansi");e.l+=2;if(e._R(2)!=57005)thrownewError("Bad FileMoniker");varn=e._R(4);if(n===0)returnt+a.replace(/\\/g,"/");vari=e._R(4);if(e._R(2)!=3)thrownewError("Bad FileMoniker");vars=e._R(i>>1,"utf16le").replace(F,"");returnt+s}functionTs(e,r){vart=e._R(16);r-=16;switch(t){case"e0c9ea79f9bace118c8200aa004ba90b":returnws(e,r);case"0303000000000000c000000000000046":returnks(e,r);default:thrownewError("Unsupported Moniker "+t);}}functionEs(e){varr=e._R(4);vart=r>0?e._R(r,"utf16le").replace(F,""):"";returnt}functionys(e,r){if(!r)r=ba(6+e.length*2);r._W(4,1+e.length);for(vart=0;t<e.length;++t)r._W(2,e.charCodeAt(t));r._W(2,0);returnr}functionSs(e,r){vart=e.l+r;vara=e._R(4);if(a!==2)thrownewError("Unrecognized streamVersion: "+a);varn=e._R(2);e.l+=2;vari,s,f,c,l="",o,u;if(n&16)i=Es(e,t-e.l);if(n&128)s=Es(e,t-e.l);if((n&257)===257)f=Es(e,t-e.l);if((n&257)===1)c=Ts(e,t-e.l);if(n&8)l=Es(e,t-e.l);if(n&32)o=e._R(16);if(n&64)u=Fi(e);e.l=t;varh=s||f||c||"";if(h&&l)h+="#"+l;if(!h)h="#"+l;if(n&2&&h.charAt(0)=="/"&&h.charAt(1)!="/")h="file://"+h;vard={Target:h};if(o)d.guid=o;if(u)d.time=u;if(i)d.Tooltip=i;returnd}function_s(e){varr=ba(512),t=0;vara=e.Target;if(a.slice(0,7)=="file://")a=a.slice(7);varn=a.indexOf("#");vari=n>-1?31:23;switch(a.charAt(0)){case"#":i=28;break;case".":i&=~2;break;}r._W(4,2);r._W(4,i);vars=[8,6815827,6619237,4849780,83];for(t=0;t<s.length;++t)r._W(4,s[t]);if(i==28){a=a.slice(1);ys(a,r)}elseif(i&2){s="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" ");for(t=0;t<s.length;++t)r._W(1,parseInt(s[t],16));varf=n>-1?a.slice(0,n):a;r._W(4,2*(f.length+1));for(t=0;t<f.length;++t)r._W(2,f.charCodeAt(t));r._W(2,0);if(i&8)ys(n>-1?a.slice
;}if(M<1)v=null;break;default:if(i&&i.WTF)thrownewError("SYLK bad record "+E);}}if(m.length>0)p["!rows"]=m;if(b.length>0)p["!cols"]=b;b.forEach(function(e){Pl(e)});if(i&&i.sheetRows)h=h.slice(0,i.sheetRows);return[h,p,T]}functionf(e,r){vart=i(e,r);vara=t[0],n=t[1],s=t[2];varf=Tr(r);f.date1904=(((s||{}).Workbook||{}).WBProps||{}).date1904;varc=$a(a,f);nr(n).forEach(function(e){c[e]=n[e]});varl=Va(c,r);nr(s).forEach(function(e){l[e]=s[e]});returnl}functionl(e,r,t,a){varn="C;Y"+(t+1)+";X"+(a+1)+";K";switch(e.t){case"n":n+=e.v||0;if(e.f&&!e.F)n+=";E"+Fu(e.f,{r:t,c:a});break;case"b":n+=e.v?"TRUE":"FALSE";break;case"e":n+=e.w||e.v;break;case"d":n+='"'+(e.w||e.v)+'"';break;case"s":n+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"';break;}returnn}functiono(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=Rl(r.width);if(typeofr.wpx=="number"&&!r.wch)r.wch=Nl(r.wpx);if(typeofr.wch=="number")a+=Math.round(r.wch)}if(a.charAt(a.length-1)!=" ")e.push(a)})}functionu(e,r){r.forEach(function(r,t){vara="F;";if(r.hidden)a+="M0;";elseif(r.hpt)a+="M"+20*r.hpt+";";elseif(r.hpx)a+="M"+20*Ul(r.hpx)+";";if(a.length>2)e.push(a+"R"+(t+1))})}functionh(e,r,t){vara=["ID;PSheetJS;N;E"],n=[];vari=Wa(e["!ref"]),s;varf=Array.isArray(e);varc="\r\n";varh=(((t||{}).Workbook||{}).WBProps||{}).date1904;a.push("P;PGeneral");a.push("F;P0;DG0G8;M255");if(e["!cols"])o(a,e["!cols"]);if(e["!rows"])u(a,e["!rows"]);a.push("B;Y"+(i.e.r-i.s.r+1)+";X"+(i.e.c-i.s.c+1)+";D"+[i.s.c,i.s.r,i.e.c,i.e.r].join(" "));a.push("O;L;D;B"+(h?";V4":"")+";K47;G100 0.001");for(vard=i.s.r;d<=i.e.r;++d){for(varv=i.s.c;v<=i.e.c;++v){varp=Pa({r:d,c:v});s=f?(e[d]||[])[v]:e[p];if(!s||s.v==null&&(!s.f||s.F))continue;n.push(l(s,e,d,v,r))}}returna.join(c)+c+n.join(c)+c+"E"+c}return{to_workbook:f,from_sheet:h}}();varCc=function(){functione(e,t){switch(t.type){case"base64":returnr(T(e),t);case"binary":returnr(e,t);case"buffer":returnr(E&&Buffer.isBuffer(e)?e.toString("binary"):C(e),t);case"array":returnr(kr(e),t);}thrownewError("Unrecognized type "+t.type)}functionr(e,r){vart=e.split("\n"),a=-1,n=-1,i=0,s=[];for(;i!==t.length;++i){if(t[i].trim()==="BOT"){s[++a]=[];n=0;continue}if(a<0)continue;varf=t[i].trim().split(",");varc=f[0],l=f[1];++i;varo=t[i]||"";while((o.match(/["]/g)||[]).length&1&&i<t.length-1)o+="\n"+t[++i];o=o.trim();switch(+c){case-1:if(o==="BOT"){s[++a]=[];n=0;continue}elseif(o!=="EOD")thrownewError("Unrecognized DIF special command "+o);break;case0:if(o==="TRUE")s[a][n]=true;elseif(o==="FALSE")s[a][n]=false;elseif(!isNaN(yr(l)))s[a][n]=yr(l);elseif(!isNaN(xr(l).getDate()))s[a][n]=wr(l);elses[a][n]=l;++n;break;case1:o=o.slice(1,o.length-1);o=o.replace(/""/g,'"');if(g&&o&&o.match(/^=".*"$/))o=o.slice(2,-1);s[a][n++]=o!==""?o:null;break;}if(o==="EOD")break}if(r&&r.sheetRows)s=s.slice(0,r.sheetRows);returns}functiont(r,t){return$a(e(r,t),t)}functiona(e,r){returnVa(t(e,r),r)}varn=function(){vare=functiont(e,r,a,n,i){e.push(r);e.push(a+","+n);e.push('"'+i.replace(/"/g,'""')+'"')};varr=functiona(e,r,t,n){e.push(r+","+t);e.push(r==1?'"'+n.replace(/"/g,'""')+'"':n)};returnfunctionn(t){vara=[];varn=Wa(t["!ref"]),i;vars=Array.isArray(t);e(a,"TABLE",0,1,"sheetjs");e(a,"VECTORS",0,n.e.r-n.s.r+1,"");e(a,"TUPLES",0,n.e.c-n.s.c+1,"");e(a,"DATA",0,0,"");for(varf=n.s.r;f<=n.e.r;++f){r(a,-1,0,"BOT");for(varc=n.s.c;c<=n.e.c;++c){varl=Pa({r:f,c:c});i=s?(t[f]||[])[c]:t[l];if(!i){r(a,1,0,"");continue}switch(i.t){case"n":varo=g?i.w:i.v;if(!o&&i.v!=null)o=i.v;if(o==null){if(g&&i.f&&!i.F)r(a,1,0,"="+i.f);elser(a,1,0,"")}elser(a,0,o,"V");break;case"b":r(a,0,i.v?1:0,i.v?"TRUE":"FALSE");break;case"s":r(a,1,0,!g||isNaN(i.v)?i.v:'="'+i.v+'"');break;case"d":if(!i.w)i.w=We(i.z||Y[14],or(wr(i.v)));if(g)r(a,0,i.w,"V");elser(a,1,0,i.w);break;default:r(a,1,0,"");}}}r(a,-1,0,"EOD");varu="\r\n";varh=a.join(u);returnh}}();return{to_workbook:a,to_sheet:t,from_sheet:n}}();varOc=function(){functione(e){returne.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n
}functionQc(e){varr={};r.id=e._R(0,"lpp4");r.R=qc(e,4);r.U=qc(e,4);r.W=qc(e,4);returnr}functionel(e){varr=e._R(4);vart=e.l+r-4;vara={};varn=e._R(4);vari=[];while(n-->0)i.push({t:e._R(4),v:e._R(0,"lpp4")});a.name=e._R(0,"lpp4");a.comps=i;if(e.l!=t)thrownewError("Bad DataSpaceMapEntry: "+e.l+" != "+t);returna}functionrl(e){varr=[];e.l+=4;vart=e._R(4);while(t-->0)r.push(el(e));returnr}functiontl(e){varr=[];e.l+=4;vart=e._R(4);while(t-->0)r.push(e._R(0,"lpp4"));returnr}functional(e){varr={};e._R(4);e.l+=4;r.id=e._R(0,"lpp4");r.name=e._R(0,"lpp4");r.R=qc(e,4);r.U=qc(e,4);r.W=qc(e,4);returnr}functionnl(e){varr=al(e);r.ename=e._R(0,"8lpp4");r.blksz=e._R(4);r.cmode=e._R(4);if(e._R(4)!=4)thrownewError("Bad !Primary record");returnr}functionil(e,r){vart=e.l+r;vara={};a.Flags=e._R(4)&63;e.l+=4;a.AlgID=e._R(4);varn=false;switch(a.AlgID){case26126:;case26127:;case26128:n=a.Flags==36;break;case26625:n=a.Flags==4;break;case0:n=a.Flags==16||a.Flags==4||a.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+a.AlgID;}if(!n)thrownewError("Encryption Flags/AlgID mismatch");a.AlgIDHash=e._R(4);a.KeySize=e._R(4);a.ProviderType=e._R(4);e.l+=8;a.CSPName=e._R(t-e.l>>1,"utf16le");e.l=t;returna}functionsl(e,r){vart={},a=e.l+r;e.l+=4;t.Salt=e.slice(e.l,e.l+16);e.l+=16;t.Verifier=e.slice(e.l,e.l+16);e.l+=16;e._R(4);t.VerifierHash=e.slice(e.l,a);e.l=a;returnt}functionfl(e){varr=qc(e);switch(r.Minor){case2:return[r.Minor,cl(e,r)];case3:return[r.Minor,ll(e,r)];case4:return[r.Minor,ol(e,r)];}thrownewError("ECMA-376 Encrypted file unrecognized Version: "+r.Minor)}functioncl(e){varr=e._R(4);if((r&63)!=36)thrownewError("EncryptionInfo mismatch");vart=e._R(4);vara=il(e,t);varn=sl(e,e.length-e.l);return{t:"Std",h:a,v:n}}functionll(){thrownewError("File is password-protected: ECMA-376 Extensible")}functionol(e){varr=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;vart=e._R(e.length-e.l,"utf8");vara={};t.replace(jr,functionn(e){vart=Kr(e);switch(Zr(t[0])){case"<?xml":break;case"<encryption":;case"</encryption>":break;case"<keyData":r.forEach(function(e){a[e]=t[e]});break;case"<dataIntegrity":a.encryptedHmacKey=t.encryptedHmacKey;a.encryptedHmacValue=t.encryptedHmacValue;break;case"<keyEncryptors>":;case"<keyEncryptors":a.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":a.uri=t.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":a.encs.push(t);break;default:throwt[0];}});returna}functionul(e,r){vart={};vara=t.EncryptionVersionInfo=qc(e,4);r-=4;if(a.Minor!=2)thrownewError("unrecognized minor version code: "+a.Minor);if(a.Major>4||a.Major<2)thrownewError("unrecognized major version code: "+a.Major);t.Flags=e._R(4);r-=4;varn=e._R(4);r-=4;t.EncryptionHeader=il(e,n);r-=n;t.EncryptionVerifier=sl(e,r);returnt}functionhl(e){varr={};vart=r.EncryptionVersionInfo=qc(e,4);if(t.Major!=1||t.Minor!=1)throw"unrecognized version code "+t.Major+" : "+t.Minor;r.Salt=e._R(16);r.EncryptedVerifier=e._R(16);r.EncryptedVerifierHash=e._R(16);returnr}functiondl(e){varr=0,t;vara=Jc(e);varn=a.length+1,i,s;varf,c,l;t=S(n);t[0]=a.length;for(i=1;i!=n;++i)t[i]=a[i-1];for(i=n-1;i>=0;--i){s=t[i];f=(r&16384)===0?0:1;c=r<<1&32767;l=f|c;r=l^s}returnr^52811}varvl=function(){vare=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0];varr=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163];vart=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4
}else{varD=false;for(c=0;c!=a.arrayf.length;++c){l=a.arrayf[c];if(o.c<l[0].s.c||o.c>l[0].e.c)continue;if(o.r<l[0].s.r||o.r>l[0].e.r)continue;f.push(hd(l[1],s,I,a,n));D=true;break}if(!D)f.push(w[1])}break;case"PtgArray":f.push("{"+fd(w[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":;case"PtgAttrSpaceSemi":p=b;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":f.push("");break;case"PtgAreaErr":f.push("#REF!");break;case"PtgAreaErr3d":f.push("#REF!");break;case"PtgList":f.push("Table"+w[1].idx+"[#"+w[1].rt+"]");break;case"PtgMemAreaN":;case"PtgMemNoMemN":;case"PtgAttrNoop":;case"PtgSheet":;case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":;case"PtgElfColS":;case"PtgElfColSV":;case"PtgElfColV":;case"PtgElfLel":;case"PtgElfRadical":;case"PtgElfRadicalLel":;case"PtgElfRadicalS":;case"PtgElfRw":;case"PtgElfRwV":thrownewError("Unsupported ELFs");case"PtgSxName":thrownewError("Unrecognized Formula Token: "+String(w));default:thrownewError("Unrecognized Formula Token: "+String(w));}varP=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(n.biff!=3)if(p>=0&&P.indexOf(e[0][b][0])==-1){w=e[0][p];varL=true;switch(w[1][0]){case4:L=false;case0:m=Er(" ",w[1][1]);break;case5:L=false;case1:m=Er("\r",w[1][1]);break;default:m="";if(n.WTF)thrownewError("Unexpected PtgAttrSpaceType "+w[1][0]);}f.push((L?m:"")+f.pop()+(L?"":m));p=-1}}if(f.length>1&&n.WTF)thrownewError("bad formula stack");if(f[0]=="TRUE")returntrue;if(f[0]=="FALSE")returnfalse;returnf[0]}functiondd(e,r,t){vara=e.l+r,n=t.biff==2?1:2;vari,s=e._R(n);if(s==65535)return[[],ma(e,r-2)];varf=sd(e,s,t);if(r!==s+n)i=id(e,r-s-n,f,t);e.l=a;return[f,i]}functionvd(e,r,t){vara=e.l+r,n=t.biff==2?1:2;vari,s=e._R(n);if(s==65535)return[[],ma(e,r-2)];varf=sd(e,s,t);if(r!==s+n)i=id(e,r-s-n,f,t);e.l=a;return[f,i]}functionpd(e,r,t,a){varn=e.l+r;vari=sd(e,a,t);vars;if(n!==e.l)s=id(e,n-e.l,i,t);return[i,s]}functionmd(e,r,t){vara=e.l+r;varn,i=e._R(2);vars=sd(e,i,t);if(i==65535)return[[],ma(e,r-2)];if(r!==i+2)n=id(e,a-i-2,s,t);return[s,n]}functionbd(e){varr;if(na(e,e.l+6)!==65535)return[kn(e),"n"];switch(e[e.l]){case0:e.l+=8;return["String","s"];case1:r=e[e.l+2]===1;e.l+=8;return[r,"b"];case2:r=e[e.l+2];e.l+=8;return[r,"e"];case3:e.l+=8;return["","s"];}return[]}functiongd(e){if(e==null){varr=ba(8);r._W(1,3);r._W(1,0);r._W(2,0);r._W(2,0);r._W(2,65535);returnr}elseif(typeofe=="number")returnTn(e);returnTn(0)}functionwd(e,r,t){vara=e.l+r;varn=Cs(e,6);if(t.biff==2)++e.l;vari=bd(e,8);vars=e._R(1);if(t.biff!=2){e._R(1);if(t.biff>=5){e._R(4)}}varf=vd(e,a-e.l,t);return{cell:n,val:i[0],formula:f,shared:s>>3&1,tt:i[1]}}functionkd(e,r,t,a,n){vari=Os(r,t,n);vars=gd(e.v);varf=ba(6);varc=1|32;f._W(2,c);f._W(4,0);varl=ba(e.bf.length);for(varo=0;o<e.bf.length;++o)l[o]=e.bf[o];varu=N([i,s,f,l]);returnu}functionTd(e,r,t){vara=e._R(4);varn=sd(e,a,t);vari=e._R(4);vars=i>0?id(e,i,n,t):null;return[n,s]}varEd=Td;varyd=Td;varSd=Td;var_d=Td;functionAd(e){if((e|0)==e&&e<Math.pow(2,16)&&e>=0){varr=ba(11);r._W(4,3);r._W(1,30);r._W(2,e);r._W(4,0);returnr}vart=ba(17);t._W(4,11);t._W(1,31);t._W(8,e);t._W(4,0);returnt}functionxd(e){varr=ba(10);r._W(4,2);r._W(1,28);r._W(1,e);r._W(4,0);returnr}functionCd(e){varr=ba(10);r._W(4,2);r._W(1,29);r._W(1,e?1:0);r._W(4,0);returnr}functionOd(e){varr=ba(7);r._W(4,3+2*e.length);r._W(1,23);r._W(2,e.length);vart=ba(2*e.length);t._W(2*e.length,e,"utf16le");vara=ba(4);a._W(4,0);returnN([r,t,a])}functionRd(e){varr=Da(e);vart=ba(15);t._W(4,7);t._W(1,4|1<<5);t._W(4,r.r);t._W(2,r.c|(e.charAt(0)=="$"?0:1)<<14|(e.match(/\$\d/)?0:1)<<15);t._W(4,0);returnt}functionNd(e,r){vart=e.lastIndexOf("!");vara=e.slice(0,t);e=e.slice(t+1);varn=Da(e);if(a.charAt(0)=="'")a=a.slice(1,-1).replace(/''/g,"'");vari=ba(17);i._W(4,9);i._W(1,26|1<<5);i._W(2,2+r.SheetNames.map(function(e){returne.toLowerCase()}).indexOf(a.toLowerCase()));i._W(4,n.r);i._W(2,n.c|(e.charAt(0)=="$"?0:1)<<14|(e.match(/\$\d/)?0:1)<<15);i._W(4,0);returni}functionId(e,r){vart=e.lastIndexOf("!");v
c.Ref=Ba(t.SheetNames[a])+"!"+Ua(n);break}if(f==i.length)i.push({Name:"_xlnm._FilterDatabase",Sheet:a,Ref:"'"+t.SheetNames[a]+"'!"+n});return_t("autoFilter",null,{ref:n})}varAv=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/g;functionxv(e,r){if(!r.Views)r.Views=[{}];(e.match(Av)||[]).forEach(function(e,t){vara=Kr(e);if(!r.Views[t])r.Views[t]={};if(+a.zoomScale)r.Views[t].zoom=+a.zoomScale;if(a.rightToLeft&<(a.rightToLeft))r.Views[t].RTL=true})}functionCv(e,r,t,a){varn={workbookViewId:"0"};if((((a||{}).Workbook||{}).Views||[])[0])n.rightToLeft=a.Workbook.Views[0].RTL?"1":"0";return_t("sheetViews",_t("sheetView",null,n),{})}functionOv(e,r,t,a){if(e.c)t["!comments"].push([r,e.c]);if(e.v===undefined&&typeofe.f!=="string"||e.t==="z"&&!e.f)return"";varn="";vari=e.t,s=e.v;if(e.t!=="z")switch(e.t){case"b":n=e.v?"1":"0";break;case"n":n=""+e.v;break;case"e":n=Kn[e.v];break;case"d":if(a&&a.cellDates)n=wr(e.v,-1).toISOString();else{e=Tr(e);e.t="n";n=""+(e.v=or(wr(e.v)))}if(typeofe.z==="undefined")e.z=Y[14];break;default:n=e.v;break;}varf=e.t=="z"||e.v==null?"":yt("v",tt(n)),c={r:r};varl=Jd(a.cellXfs,e,a);if(l!==0)c.s=l;switch(e.t){case"n":break;case"d":c.t="d";break;case"b":c.t="b";break;case"e":c.t="e";break;case"z":break;default:if(e.v==null){deletee.t;break}if(e.v.length>32767)thrownewError("Text length must not exceed 32767 characters");if(a&&a.bookSST){f=yt("v",""+Yd(a.Strings,e.v,a.revStrings));c.t="s";break}elsec.t="str";break;}if(e.t!=i){e.t=i;e.v=s}if(typeofe.f=="string"&&e.f){varo=e.F&&e.F.slice(0,r.length)==r?{t:"array",ref:e.F}:null;f=_t("f",tt(e.f),o)+(e.v!=null?f:"")}if(e.l)t["!links"].push([r,e.l]);if(e.D)c.cm=1;return_t("c",f,c)}varRv=function(){vare=/<(?:\w+:)?c[ \/>]/,r=/<\/(?:\w+:)?row>/;vart=/r=["']([^"']*)["']/,a=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/;varn=/ref=["']([^"']*)["']/;vari=mt("v"),s=mt("f");returnfunctionf(c,l,o,u,h,d){varv=0,p="",m=[],b=[],g=0,w=0,k=0,T="",E;vary,S=0,_=0;varA,x;varC=0,O=0;varR=Array.isArray(d.CellXf),N;varI=[];varF=[];varD=Array.isArray(l);varP=[],L={},M=false;varU=!!o.sheetStubs;for(varB=c.split(r),W=0,H=B.length;W!=H;++W){p=B[W].trim();varz=p.length;if(z===0)continue;varV=0;e:for(v=0;v<z;++v)switch(p[v]){case">":if(p[v-1]!="/"){++v;breake}if(o&&o.cellStyles){y=Kr(p.slice(V,v),true);S=y.r!=null?parseInt(y.r,10):S+1;_=-1;if(o.sheetRows&&o.sheetRows<S)continue;L={};M=false;if(y.ht){M=true;L.hpt=parseFloat(y.ht);L.hpx=Bl(L.hpt)}if(y.hidden&<(y.hidden)){M=true;L.hidden=true}if(y.outlineLevel!=null){M=true;L.level=+y.outlineLevel}if(M)P[S-1]=L}break;case"<":V=v;break;}if(V>=v)break;y=Kr(p.slice(V,v),true);S=y.r!=null?parseInt(y.r,10):S+1;_=-1;if(o.sheetRows&&o.sheetRows<S)continue;if(u.s.r>S-1)u.s.r=S-1;if(u.e.r<S-1)u.e.r=S-1;if(o&&o.cellStyles){L={};M=false;if(y.ht){M=true;L.hpt=parseFloat(y.ht);L.hpx=Bl(L.hpt)}if(y.hidden&<(y.hidden)){M=true;L.hidden=true}if(y.outlineLevel!=null){M=true;L.level=+y.outlineLevel}if(M)P[S-1]=L}m=p.slice(v).split(e);for(varG=0;G!=m.length;++G)if(m[G].trim().charAt(0)!="<")break;m=m.slice(G);for(v=0;v!=m.length;++v){p=m[v].trim();if(p.length===0)continue;b=p.match(t);g=v;w=0;k=0;p="<c "+(p.slice(0,1)=="<"?">":"")+p;if(b!=null&&b.length===2){g=0;T=b[1];for(w=0;w!=T.length;++w){if((k=T.charCodeAt(w)-64)<1||k>26)break;g=26*g+k}--g;_=g}else++_;for(w=0;w!=p.length;++w)if(p.charCodeAt(w)===62)break;++w;y=Kr(p.slice(0,w),true);if(!y.r)y.r=Pa({r:S-1,c:_});T=p.slice(w);E={t:""};if((b=T.match(i))!=null&&b[1]!=="")E.v=Qr(b[1]);if(o.cellFormula){if((b=T.match(s))!=null&&b[1]!==""){E.f=Qr(vt(b[1]),true);if(!o.xlfn)E.f=Mu(E.f);if(b[0].indexOf('t="array"')>-1){E.F=(T.match(n)||[])[1];if(E.F.indexOf(":")>-1)I.push([Wa(E.F),E.F])}elseif(b[0].indexOf('t="shared"')>-1){x=Kr(b[0]);var$=Qr(vt(b[1]));if(!o.xlfn)$=Mu($);F[parseInt(x.si,10)]=[x,$,y.r]}}elseif(b=T.match(/<f[^>]*\/>/)){x=Kr(b[0]);if(F[x.si])E.f=Pu(F[x.si][1],F[x.si][2],y.r)}varj=Da(y.r);for(w=0;w<I.length;++w)if(j.r>=I[w][0].s.r&&j.r<=I[w][0].e.r)if(j.c>=I[w][0].s.c&&j.c<=I[w][0].e.c)E.F=I[w][1]}if(y.t==null&&E.v===undefined){if(E.f||E.F){E.v=0;E.t="n"}elseif(!U)con
t.backupFile=!!(a&64);t.checkCompatibility=!!(a&4096);t.date1904=!!(a&1);t.filterPrivacy=!!(a&8);t.hidePivotFieldList=!!(a&1024);t.promptedSolutions=!!(a&16);t.publishItems=!!(a&2048);t.refreshAllConnections=!!(a&262144);t.saveExternalLinkValues=!!(a&128);t.showBorderUnselectedTables=!!(a&4);t.showInkAnnotation=!!(a&32);t.showObjects=["all","placeholders","none"][a>>13&3];t.showPivotChartFilter=!!(a&32768);t.updateLinks=["userSet","never","always"][a>>8&3];returnt}functionkm(e,r){if(!r)r=ba(72);vart=0;if(e){if(e.date1904)t|=1;if(e.filterPrivacy)t|=8}r._W(4,t);r._W(4,0);cn(e&&e.CodeName||"ThisWorkbook",r);returnr.slice(0,r.l)}functionTm(e,r){vart={};e._R(4);t.ArchID=e._R(4);e.l+=r-8;returnt}functionEm(e,r,t){vara=e.l+r;varn=e._R(4);e.l+=1;vari=e._R(4);vars=un(e);varf=Sd(e,0,t);varc=ln(e);if(n&32)s="_xlnm."+s;e.l=a;varl={Name:s,Ptg:f,Flags:n};if(i<268435455)l.Sheet=i;if(c)l.Comment=c;returnl}functionym(e,r){vart=ba(9);vara=0;varn=e.Name;if(Jn.indexOf(n)>-1){a|=32;n=n.slice(6)}t._W(4,a);t._W(1,0);t._W(4,e.Sheet==null?4294967295:e.Sheet);vari=[t,Ka(n),Md(e.Ref,r)];if(e.Comment)i.push(on(e.Comment));else{vars=ba(4);s._W(4,4294967295);i.push(s)}returnN(i)}functionSm(e,r){vart={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""};vara=[];varn=false;if(!r)r={};r.biff=12;vari=[];vars=[[]];s.SheetNames=[];s.XTI=[];Cb[16]={n:"BrtFRTArchID$",f:Tm};ga(e,functionf(e,c,l){switch(l){case156:s.SheetNames.push(e.name);t.Sheets.push(e);break;case153:t.WBProps=e;break;case39:if(e.Sheet!=null)r.SID=e.Sheet;e.Ref=hd(e.Ptg,null,null,s,r);deleter.SID;deletee.Ptg;i.push(e);break;case1036:break;case357:;case358:;case355:;case667:if(!s[0].length)s[0]=[l,e];elses.push([l,e]);s[s.length-1].XTI=[];break;case362:if(s.length===0){s[0]=[];s[0].XTI=[]}s[s.length-1].XTI=s[s.length-1].XTI.concat(e);s.XTI=s.XTI.concat(e);break;case361:break;case2071:;case158:;case143:;case664:;case353:break;case3072:;case3073:;case534:;case677:;case157:;case610:;case2050:;case155:;case548:;case676:;case128:;case665:;case2128:;case2125:;case549:;case2053:;case596:;case2076:;case2075:;case2082:;case397:;case154:;case1117:;case553:;case2091:break;case35:a.push(l);n=true;break;case36:a.pop();n=false;break;case37:a.push(l);n=true;break;case38:a.pop();n=false;break;case16:break;default:if(c.T){}elseif(!n||r.WTF&&a[a.length-1]!=37&&a[a.length-1]!=35)thrownewError("Unexpected record 0x"+l.toString(16));}},r);cm(t);t.Names=i;t.supbooks=s;returnt}function_m(e,r){ka(e,143);for(vart=0;t!=r.SheetNames.length;++t){vara=r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[t]&&r.Workbook.Sheets[t].Hidden||0;varn={Hidden:a,iTabID:t+1,strRelID:"rId"+(t+1),name:r.SheetNames[t]};ka(e,156,gm(n))}ka(e,144)}functionAm(r,t){if(!t)t=ba(127);for(vara=0;a!=4;++a)t._W(4,0);Ka("SheetJS",t);Ka(e.version,t);Ka(e.version,t);Ka("7262",t);returnt.length>t.l?t.slice(0,t.l):t}functionxm(e,r){if(!r)r=ba(29);r._W(-4,0);r._W(-4,460);r._W(4,28800);r._W(4,17600);r._W(4,500);r._W(4,e);r._W(4,e);vart=120;r._W(1,t);returnr.length>r.l?r.slice(0,r.l):r}functionCm(e,r){if(!r.Workbook||!r.Workbook.Sheets)return;vart=r.Workbook.Sheets;vara=0,n=-1,i=-1;for(;a<t.length;++a){if(!t[a]||!t[a].Hidden&&n==-1)n=a;elseif(t[a].Hidden==1&&i==-1)i=a}if(i>n)return;ka(e,135);ka(e,158,xm(n));ka(e,136)}functionOm(e,r){if(!r.Workbook||!r.Workbook.Names)return;r.Workbook.Names.forEach(function(t){try{if(t.Flags&14)return;ka(e,39,ym(t,r))}catch(a){console.error("Could not serialize defined name "+JSON.stringify(t))}})}functionRm(e){varr=e.SheetNames.length;vart=ba(12*r+28);t._W(4,r+2);t._W(4,0);t._W(4,-2);t._W(4,-2);t._W(4,0);t._W(4,-1);t._W(4,-1);for(vara=0;a<r;++a){t._W(4,0);t._W(4,a);t._W(4,a)}returnt}functionNm(e,r){ka(e,353);ka(e,357);ka(e,362,Rm(r,0));ka(e,354)}functionIm(e,r){vart=wa();ka(t,131);ka(t,128,Am());ka(t,153,km(e.Workbook&&e.Workbook.WBProps||null));Cm(t,e,r);_m(t,e,r);Nm(t,e);if((e.Workbook||{}).Names)Om(t,e);ka(t,132);returnt.end()}functionFm(e,r,t){if(r.slice(-4)===".bin")returnSm(e,t);returnpm(e,t)}func
}if(r.cellDates&&a&&e.t=="n"&&Pe(Y[a]||String(a))){vari=q(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)}}}functionTb(e,r,t){return{v:e,ixfe:r,t:t}}functionEb(e,r){vart={opts:{}};vara={};if(b!=null&&r.dense==null)r.dense=b;varn=r.dense?[]:{};vari={};vars={};varf=null;varl=[];varo="";varu={};varh,d="",v,p,m,g;varw={};vark=[];varT;varE;vary=[];varS=[];var_={Sheets:[],WBProps:{date1904:false},Views:[{}]},A={};varx=functionve(e){if(e<8)returnYn[e];if(e<64)returnS[e-8]||Yn[e];returnYn[e]};varC=functionpe(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=El(x(a.icvFore))){r.s.fgColor={rgb:n}}if(n=El(x(a.icvBack))){r.s.bgColor={rgb:n}}};varO=functionme(e,r,t){if(B>1)return;if(t.sheetRows&&e.r>=t.sheetRows)return;if(t.cellStyles&&r.XF&&r.XF.data)C(e,r,t);deleter.ixfe;deleter.XF;h=e;d=Pa(e);if(!s||!s.s||!s.e)s={s:{r:0,c:0},e:{r:0,c:0}};if(e.r<s.s.r)s.s.r=e.r;if(e.c<s.s.c)s.s.c=e.c;if(e.r+1>s.e.r)s.e.r=e.r+1;if(e.c+1>s.e.c)s.e.c=e.c+1;if(t.cellFormula&&r.f){for(vara=0;a<k.length;++a){if(k[a][0].s.c>e.c||k[a][0].s.r>e.r)continue;if(k[a][0].e.c<e.c||k[a][0].e.r<e.r)continue;r.F=Ma(k[a][0]);if(k[a][0].s.c!=e.c||k[a][0].s.r!=e.r)deleter.f;if(r.f)r.f=""+hd(k[a][1],s,e,M,R);break}}{if(t.dense){if(!n[e.r])n[e.r]=[];n[e.r][e.c]=r}elsen[d]=r}};varR={enc:false,sbcch:0,snames:[],sharedf:w,arrayf:k,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!r&&!!r.cellStyles,WTF:!!r&&!!r.wtf};if(r.password)R.password=r.password;varN;varI=[];varF=[];varD=[],P=[];varL=false;varM=[];M.SheetNames=R.snames;M.sharedf=R.sharedf;M.arrayf=R.arrayf;M.names=[];M.XTI=[];varU=0;varB=0;varW=0,H=[];varz=[];varV;R.codepage=1200;c(1200);varG=false;while(e.l<e.length-1){var$=e.l;varj=e._R(2);if(j===0&&U===10)break;varX=e.l===e.length?0:e._R(2);varK=Ob[j];if(K&&K.f){if(r.bookSheets){if(U===133&&j!==133)break}U=j;if(K.r===2||K.r==12){varZ=e._R(2);X-=2;if(!R.enc&&Z!==j&&((Z&255)<<8|Z>>8)!==j)thrownewError("rt mismatch: "+Z+"!="+j);if(K.r==12){e.l+=10;X-=10}}varJ={};if(j===10)J=K.f(e,X,R);elseJ=wb(j,K,e,X,R);if(B==0&&[9,521,1033,2057].indexOf(U)===-1)continue;switch(j){case34:t.opts.Date1904=_.WBProps.date1904=J;break;case134:t.opts.WriteProtect=true;break;case47:if(!R.enc)e.l=0;R.enc=J;if(!r.password)thrownewError("File is password-protected");if(J.valid==null)thrownewError("Encryption scheme unsupported");if(!J.valid)thrownewError("Password is incorrect");break;case92:R.lastuser=J;break;case66:varq=Number(J);switch(q){case21010:q=1200;break;case32768:q=1e4;break;case32769:q=1252;break;}c(R.codepage=q);G=true;break;case317:R.rrtabid=J;break;case25:R.winlocked=J;break;case439:t.opts["RefreshAll"]=J;break;case12:t.opts["CalcCount"]=J;break;case16:t.opts["CalcDelta"]=J;break;case17:t.opts["CalcIter"]=J;break;case13:t.opts["CalcMode"]=J;break;case14:t.opts["CalcPrecision"]=J;break;case95:t.opts["CalcSaveRecalc"]=J;break;case15:R.CalcRefMode=J;break;case2211:t.opts.FullCalc=J;break;case129:if(J.fDialog)n["!type"]="dialog";if(!J.fBelow)(n["!outline"]||(n["!outline"]={})).above=true;if(!J.fRight)(n["!outline"]||(n["!outline"]={})).left=true;break;case224:y.push(J);break;case430:M.push([J]);M[M.length-1].XTI=[];break;case35:;case547:M[M.length-1].push(J);break;case24:;case536:V={Name:J.Name,Ref:hd(J.rgce,s,null,M,R)};if(J.itab>0)V.Sheet=J.itab-1;M.names.push(V);if(!M[0]){M[0]=[];M[0].XTI=[]}M[M.length-1].push(J);if(J.Name=="_xlnm._FilterDatabase"&&J.itab>0)if(J.rgce&&J.rgce[0]&&J.rgce[0][0]&&J.rgce[0][0][0]=="PtgArea3d")z[J.itab-1]={ref:Ma(J.rgce[0][0][1][2])};break;case22:R.ExternCount=J;break;case23:if(M.length==0){M[0]=[];M[0].XTI=[]}M[M.length-1].XTI=M[M.length-1].XTI.concat(J);M.XTI=M.XTI.concat(J);break;case2196:if(R.biff<8)break;if(V!=null)V.Comment=J[1];break;case18:n["!protect"]=J;break;case19:if(J!==0&&R.WTF)console.error("Password verifier: "+J);break;case133:{i[J.pos]=J;R.snames.push(J.name)}break;case10:{if(--B)break;if(s.e){if(s.e.r>0&&s.e.c>0){s.e.r--;s.e.c--;n["!ref"]=Ma
varc=Cr(e.slice(s,f),/(:?<tr[^>]*>)/i,"<tr>");varl=-1,o=0,u=0,h=0;vard={s:{r:1e7,c:1e7},e:{r:0,c:0}};varv=[];for(s=0;s<c.length;++s){varp=c[s].trim();varm=p.slice(0,3).toLowerCase();if(m=="<tr"){++l;if(t.sheetRows&&t.sheetRows<=l){--l;break}o=0;continue}if(m!="<td"&&m!="<th")continue;varg=p.split(/<\/t[dh]>/i);for(f=0;f<g.length;++f){varw=g[f].trim();if(!w.match(/<t[dh]/i))continue;vark=w,T=0;while(k.charAt(0)=="<"&&(T=k.indexOf(">"))>-1)k=k.slice(T+1);for(varE=0;E<v.length;++E){vary=v[E];if(y.s.c==o&&y.s.r<l&&l<=y.e.r){o=y.e.c+1;E=-1}}varS=Kr(w.slice(0,w.indexOf(">")));h=S.colspan?+S.colspan:1;if((u=+S.rowspan)>1||h>1)v.push({s:{r:l,c:o},e:{r:l+(u||1)-1,c:o+h-1}});var_=S.t||S["data-t"]||"";if(!k.length){o+=h;continue}k=bt(k);if(d.s.r>l)d.s.r=l;if(d.e.r<l)d.e.r=l;if(d.s.c>o)d.s.c=o;if(d.e.c<o)d.e.c=o;if(!k.length){o+=h;continue}varA={t:"s",v:k};if(t.raw||!k.trim().length||_=="s"){}elseif(k==="TRUE")A={t:"b",v:true};elseif(k==="FALSE")A={t:"b",v:false};elseif(!isNaN(yr(k)))A={t:"n",v:yr(k)};elseif(!isNaN(xr(k).getDate())){A={t:"d",v:wr(k)};if(!t.cellDates)A={t:"n",v:or(A.v)};A.z=t.dateNF||Y[14]}if(t.dense){if(!a[l])a[l]=[];a[l][o]=A}elsea[Pa({r:l,c:o})]=A;o+=h}}a["!ref"]=Ma(d);if(v.length)a["!merges"]=v;returna}functionZb(e,r,t,a){varn=e["!merges"]||[];vari=[];vars={};for(varf=r.s.c;f<=r.e.c;++f){varc=0,l=0;for(varo=0;o<n.length;++o){if(n[o].s.r>t||n[o].s.c>f)continue;if(n[o].e.r<t||n[o].e.c<f)continue;if(n[o].s.r<t||n[o].s.c<f){c=-1;break}c=n[o].e.r-n[o].s.r+1;l=n[o].e.c-n[o].s.c+1;break}if(c<0)continue;varu=Pa({r:t,c:f});varh=a.dense?(e[t]||[])[f]:e[u];vard=h&&h.v!=null&&(h.h||it(h.w||(za(h),h.w)||""))||"";s={};if(c>1)s.rowspan=c;if(l>1)s.colspan=l;if(a.editable)d='<span contenteditable="true">'+d+"</span>";elseif(h){s["data-t"]=h&&h.t||"z";if(h.v!=null)s["data-v"]=h.v;if(h.z!=null)s["data-z"]=h.z;if(h.l&&(h.l.Target||"#").charAt(0)!="#")d='<a href="'+h.l.Target+'">'+d+"</a>"}s.id=(a.id||"sjs")+"-"+u;i.push(_t("td",d,s))}varv="<tr>";returnv+i.join("")+"</tr>"}varJb='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>';varqb="</body></html>";functionQb(e,r){vart=e.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!t||t.length==0)thrownewError("Invalid HTML: could not find <table>");if(t.length==1)returnVa(Kb(t[0],r),r);vara=Yw();t.forEach(function(e,t){Kw(a,Kb(e,r),"Sheet"+(t+1))});returna}functioneg(e,r,t){vara=[];returna.join("")+"<table"+(t&&t.id?' id="'+t.id+'"':"")+">"}functionrg(e,r){vart=r||{};vara=t.header!=null?t.header:Jb;varn=t.footer!=null?t.footer:qb;vari=[a];vars=La(e["!ref"]);t.dense=Array.isArray(e);i.push(eg(e,s,t));for(varf=s.s.r;f<=s.e.r;++f)i.push(Zb(e,s,f,t));i.push("</table>"+n);returni.join("")}functiontg(e,r,t){vara=r.rows;if(!a){throw"Unsupported origin when "+r.tagName+" is not a TABLE"}varn=t||{};if(b!=null)n.dense=b;vari=0,s=0;if(n.origin!=null){if(typeofn.origin=="number")i=n.origin;else{varf=typeofn.origin=="string"?Da(n.origin):n.origin;i=f.r;s=f.c}}varc=Math.min(n.sheetRows||1e7,a.length);varl={s:{r:0,c:0},e:{r:i,c:s}};if(e["!ref"]){varo=La(e["!ref"]);l.s.r=Math.min(l.s.r,o.s.r);l.s.c=Math.min(l.s.c,o.s.c);l.e.r=Math.max(l.e.r,o.e.r);l.e.c=Math.max(l.e.c,o.e.c);if(i==-1)l.e.r=i=o.e.r+1}varu=[],h=0;vard=e["!rows"]||(e["!rows"]=[]);varv=0,p=0,m=0,g=0,w=0,k=0;if(!e["!cols"])e["!cols"]=[];for(;v<a.length&&p<c;++v){varT=a[v];if(ig(T)){if(n.display)continue;d[p]={hidden:true}}varE=T.cells;for(m=g=0;m<E.length;++m){vary=E[m];if(n.display&&ig(y))continue;varS=y.hasAttribute("data-v")?y.getAttribute("data-v"):y.hasAttribute("v")?y.getAttribute("v"):bt(y.innerHTML);var_=y.getAttribute("data-z")||y.getAttribute("z");for(h=0;h<u.length;++h){varA=u[h];if(A.s.c==g+s&&A.s.r<p+i&&p+i<=A.e.r){g=A.e.c+1-s;h=-1}}k=+y.getAttribute("colspan")||1;if((w=+y.getAttribute("rowspan")||1)>1||k>1)u.push({s:{r:p+i,c:g+s},e:{r:p+i+(w||1)-1,c:g+s+(k||1)-1}});varx={t:"s",v:S};varC=y.getAttribute("data-t")||y.getAttribute("t")||"";if(S!=null){if(S.length==0)x.t=C||"z";elseif(n.raw||S.trim().length==0||C=="s"){}elseif(S
fi(r.rels,1,s,ai.WB);s="xl/theme/theme1.xml";Ur(i,s,Lo(e.Themes,r));n.themes.push(s);fi(r.wbrels,-1,"theme/theme1.xml",ai.THEME);s="xl/styles."+t;Ur(i,s,_o(e,r));n.styles.push(s);fi(r.wbrels,-1,"styles."+t,ai.STY);if(e.vbaraw&&a){s="xl/vbaProject.bin";Ur(i,s,e.vbaraw);n.vba.push(s);fi(r.wbrels,-1,"vbaProject.bin",ai.VBA)}s="xl/metadata."+t;Ur(i,s,Qo());n.metadata.push(s);fi(r.wbrels,-1,"metadata."+t,ai.XLMETA);Ur(i,"[Content_Types].xml",ti(n,r));Ur(i,"_rels/.rels",si(r.rels));Ur(i,"xl/_rels/workbook."+t+".rels",si(r.wbrels));deleter.revssf;deleter.ssf;returni}functionuw(e,r){if(e&&!e.SSF){e.SSF=Tr(Y)}if(e&&e.SSF){Ve();ze(e.SSF);r.revssf=fr(e.SSF);r.revssf[e.SSF[65535]]=0;r.ssf=e.SSF}r.rels={};r.wbrels={};r.Strings=[];r.Strings.Count=0;r.Strings.Unique=0;if(Xd)r.revStrings=newMap;else{r.revStrings={};r.revStrings.foo=[];deleter.revStrings.foo}vart="xml";vara=Au.indexOf(r.bookType)>-1;varn=ei();aw(r=r||{});vari=Br();vars="",f=0;r.cellXfs=[];Jd(r.cellXfs,{},{revssf:{General:0}});if(!e.Props)e.Props={};s="docProps/core.xml";Ur(i,s,wi(e.Props,r));n.coreprops.push(s);fi(r.rels,2,s,ai.CORE_PROPS);s="docProps/app.xml";if(e.Props&&e.Props.SheetNames){}elseif(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{varc=[];for(varl=0;l<e.SheetNames.length;++l)if((e.Workbook.Sheets[l]||{}).Hidden!=2)c.push(e.SheetNames[l]);e.Props.SheetNames=c}e.Props.Worksheets=e.Props.SheetNames.length;Ur(i,s,Si(e.Props,r));n.extprops.push(s);fi(r.rels,3,s,ai.EXT_PROPS);if(e.Custprops!==e.Props&&nr(e.Custprops||{}).length>0){s="docProps/custom.xml";Ur(i,s,xi(e.Custprops,r));n.custprops.push(s);fi(r.rels,4,s,ai.CUST_PROPS)}varo=["SheetJ5"];r.tcid=0;for(f=1;f<=e.SheetNames.length;++f){varu={"!id":{}};varh=e.Sheets[e.SheetNames[f-1]];vard=(h||{})["!type"]||"sheet";switch(d){case"chart":;default:s="xl/worksheets/sheet"+f+"."+t;Ur(i,s,Iv(f-1,r,e,u));n.sheets.push(s);fi(r.wbrels,-1,"worksheets/sheet"+f+"."+t,ai.WS[0]);}if(h){varv=h["!comments"];varp=false;varm="";if(v&&v.length>0){varb=false;v.forEach(function(e){e[1].forEach(function(e){if(e.T==true)b=true})});if(b){m="xl/threadedComments/threadedComment"+f+".xml";Ur(i,m,vu(v,o,r));n.threadedcomments.push(m);fi(u,-1,"../threadedComments/threadedComment"+f+".xml",ai.TCMNT)}m="xl/comments"+f+"."+t;Ur(i,m,hu(v,r));n.comments.push(m);fi(u,-1,"../comments"+f+"."+t,ai.CMNT);p=true}if(h["!legacy"]){if(p)Ur(i,"xl/drawings/vmlDrawing"+f+".vml",cu(f,h["!comments"]))}deleteh["!comments"];deleteh["!legacy"]}if(u["!id"].rId1)Ur(i,ni(s),si(u))}if(r.Strings!=null&&r.Strings.length>0){s="xl/sharedStrings."+t;Ur(i,s,$c(r.Strings,r));n.strs.push(s);fi(r.wbrels,-1,"sharedStrings."+t,ai.SST)}s="xl/workbook."+t;Ur(i,s,mm(e,r));n.workbooks.push(s);fi(r.rels,1,s,ai.WB);s="xl/theme/theme1.xml";Ur(i,s,Lo(e.Themes,r));n.themes.push(s);fi(r.wbrels,-1,"theme/theme1.xml",ai.THEME);s="xl/styles."+t;Ur(i,s,Jl(e,r));n.styles.push(s);fi(r.wbrels,-1,"styles."+t,ai.STY);if(e.vbaraw&&a){s="xl/vbaProject.bin";Ur(i,s,e.vbaraw);n.vba.push(s);fi(r.wbrels,-1,"vbaProject.bin",ai.VBA)}s="xl/metadata."+t;Ur(i,s,ru());n.metadata.push(s);fi(r.wbrels,-1,"metadata."+t,ai.XLMETA);if(o.length>1){s="xl/persons/person.xml";Ur(i,s,mu(o,r));n.people.push(s);fi(r.wbrels,-1,"persons/person.xml",ai.PEOPLE)}Ur(i,"[Content_Types].xml",ti(n,r));Ur(i,"_rels/.rels",si(r.rels));Ur(i,"xl/_rels/workbook."+t+".rels",si(r.wbrels));deleter.revssf;deleter.ssf;returni}functionhw(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=T(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)]}functiondw(e,r){if(qe.find(e,"EncryptedPackage"))returnlw(e,r);returnAb(e,r)}functionvw(e,r){vart,a=e;varn=r||{};if(!n.type)n.type=E&&Buffer.isBuffer(e)?"buffer":"base64";t=Wr(a,n);returncw(t,n)}functionpw(e,r){vart=0;e