e.l+=i;returnn}functionWn(e,r){vart=e._R(2);vara=e._R(2);varn=e._R(2);vari=e._R(2);return{s:{c:n,r:t},e:{c:i,r:a}}}functionHn(e,r){vart=e._R(2);vara=e._R(2);varn=e._R(1);vari=e._R(1);return{s:{c:n,r:t},e:{c:i,r:a}}}varVn=Hn;functionXn(e,r){e.l+=4;vart=e._R(2);vara=e._R(2);varn=e._R(2);e.l+=12;return[a,t,n]}functionGn(e,r){vart={};e.l+=4;e.l+=16;t.fSharedNote=e._R(2);e.l+=4;returnt}functionzn(e,r){vart={};e.l+=4;e.cf=e._R(2);returnt}functionjn(e,r){e.l+=2;e.l+=e._R(2)}varKn={0:jn,4:jn,5:jn,6:jn,7:zn,8:jn,9:jn,10:jn,11:jn,12:jn,13:Gn,14:jn,15:jn,16:jn,17:jn,18:jn,19:jn,20:jn,21:Xn};functionYn(e,r,t){vara=e.l+r;varn=[];while(e.l<a){vari=e._R(2);e.l-=2;try{n.push(Kn[i](e,a-e.l))}catch(s){e.l=a;returnn}}if(e.l!=a)e.l=a;returnn}function$n(e,r){vart={BIFFVer:0,dt:0};t.BIFFVer=e._R(2);r-=2;if(r>=2){t.dt=e._R(2);e.l-=2}switch(t.BIFFVer){case1536:;case1280:;case2:;case7:break;default:if(r>6)thrownewError("Unexpected BIFF Ver "+t.BIFFVer);}e._R(r);returnt}functionQn(e,r,t){vara=1536,n=16;switch(t.bookType){case"biff8":break;case"biff5":a=1280;n=8;break;case"biff4":a=4;n=6;break;case"biff3":a=3;n=6;break;case"biff2":a=2;n=4;break;default:thrownewError("unsupported BIFF version");}vari=Ar(n);i._W(2,a);i._W(2,r);if(n>4)i._W(2,29282);if(n>6)i._W(2,1997);if(n>8){i._W(2,49161);i._W(2,1);i._W(2,1798);i._W(2,0)}returni}functionJn(e,r){if(r===0)return1200;vart;if((t=e._R(2))!==1200){}return1200}functionZn(e,r,t){if(t.enc){e.l+=r;return""}vara=e.l;varn=Bn(e,0,t);e._R(r+a-e.l);returnn}functionqn(e,r){vart=!r||r.biff==8;vara=Ar(t?112:54);a._W(r.biff==8?2:1,7);a._W(1,0);a._W(4,859007059);a._W(4,5458548);while(a.l<a.length)a._W(1,0);returna}functionei(e,r,t){vara=t&&t.biff==8||r==2?e._R(2):(e.l+=r,0);return{fDialog:a&16}}functionri(e,r,t){vara=e._R(4);varn=e._R(1)&3;vari=e._R(1);switch(i){case0:i="Worksheet";break;case1:i="Macrosheet";break;case2:i="Chartsheet";break;case6:i="VBAModule";break;}vars=En(e,0,t);if(s.length===0)s="Sheet1";return{pos:a,hs:n,dt:i,name:s}}functionti(e,r){vart=!r||r.biff>=8?2:1;vara=Ar(8+t*e.name.length);a._W(4,e.pos);a._W(1,e.hs||0);a._W(1,e.dt);a._W(1,e.name.length);if(r.biff>=8)a._W(1,1);a._W(t*e.name.length,e.name,r.biff<8?"sbcs":"utf16le");returna.slice(0,a.l)}functionai(e,r){vart=e.l+r;vara=e._R(4);varn=e._R(4);vari=[];for(vars=0;s!=n&&e.l<t;++s){i.push(Sn(e))}i.Count=a;i.Unique=n;returni}functionni(e,r){vart={};t.dsst=e._R(2);e.l+=r-2;returnt}functionii(e,r){vart={};t.r=e._R(2);t.c=e._R(2);t.cnt=e._R(2)-t.c;vara=e._R(2);e.l+=4;varn=e._R(1);e.l+=3;if(n&7)t.level=n&7;if(n&32)t.hidden=true;if(n&64)t.hpt=a/20;returnt}functionsi(e,r){vart=yn(e);if(t.type!=2211)thrownewError("Invalid Future Record "+t.type);vara=e._R(4);returna!==0}functionli(e,r){e._R(2);returne._R(4)}functionci(e,r,t){vara=0;if(!(t&&t.biff==2)){a=e._R(2)}varn=e._R(2);if(t&&t.biff==2){a=1-(n>>15);n&=32767}vari={Unsynced:a&1,DyZero:(a&2)>>1,ExAsc:(a&4)>>2,ExDsc:(a&8)>>3};return[i,n]}functionfi(e,r){vart=e._R(2),a=e._R(2),n=e._R(2),i=e._R(2);vars=e._R(2),l=e._R(2),c=e._R(2);varf=e._R(2),o=e._R(2);return{Pos:[t,a],Dim:[n,i],Flags:s,CurTab:l,FirstTab:c,Selected:f,TabRatio:o}}functionoi(e){varr=Ar(18);r._W(2,0);r._W(2,0);r._W(2,29280);r._W(2,17600);r._W(2,56);r._W(2,0);r._W(2,0);r._W(2,1);r._W(2,500);returnr}functionui(e,r,t){vara={dyHeight:e._R(2),fl:e._R(2)};switch(t&&t.biff||8){case2:break;case3:;case4:e.l+=2;break;default:e.l+=10;break;}a.name=En(e,0,t);returna}functionhi(e,r){vart=_n(e);t.isst=e._R(4);returnt}functiondi(e,r,t){vara=e.l+r;varn=_n(e,6);if(t.biff==2)e.l++;vari=Bn(e,a-e.l,t);n.val=i;returnn}functionvi(e,r,t,a){varn=!a||a.biff==8;vari=Ar(6+2++n+(1+n)*t.length);Pn(e,r,0,i);i._W(2,t.length);if(n)i._W(1,1);i._W((1+n)*t.length,t,n?"utf16le":"sbcs");returni}functionbi(e,r,t){vara=e._R(2);varn=wn(e,0,t);return[a,n]}varpi=wn;functionmi(e,r,t){vara=e.l+r;varn=t.biff==8||!t.biff?4:2;vari=e._R(n),s=e._R(n);varl=e._R(2),c=e._R(2);e.l=a;return{s:{r:i,c:l},e:{r:s,c:c}}}functiongi(e,r){vart=r.biff==8||!r.biff?4:2;vara
}).map(function(e){returns[e].name});varge=me.slice();t.Directory=me;t.SheetNames=me;if(!r.bookSheets)t.Sheets=a;if(t.Sheets)K.forEach(function(e,r){t.Sheets[t.SheetNames[r]]["!autofilter"]=e});t.Preamble=d;t.Strings=u;t.SSF=E.get_table();if(P.enc)t.Encryption=P.enc;t.Metadata={};if(T!==undefined)t.Metadata.Country=T;if(V.names.length>0)A.Names=V.names;t.Workbook=A;returnt}functionMv(e,r,t){vara=I.find(e,"!DocumentSummaryInformation");if(a)try{varn=cn(a,Jt);for(variinn)r[i]=n[i]}catch(s){if(t.WTF==2)throws}varl=I.find(e,"!SummaryInformation");if(l)try{varc=cn(l,Zt);for(varfinc)if(r[f]==null)r[f]=c[f]}catch(s){if(t.WTF==2)throws}}functionLv(e,r){if(!r)r={};Bb(r);a();vart,n,i;if(e.FullPaths){t=I.find(e,"!CompObj");n=I.find(e,"!SummaryInformation");i=I.find(e,"/Workbook")||I.find(e,"/Book")}else{switch(r.type){case"base64":e=b(h.decode(e));break;case"binary":e=b(e);break;case"buffer":break;case"array":if(!Array.isArray(e))e=Array.prototype.slice.call(e);break;}Tr(e,0);i={content:e}}vars,l,c;varf;if(t)s=Ov(t);if(r.bookProps&&!r.bookSheets)c={};else{varo=d?"buffer":"array";if(i&&i.content)c=Nv(i.content,r);elseif((f=I.find(e,"PerfectOffice_MAIN"))&&f.content)c=Ts.to_workbook(f.content,(r.type=o,r));elseif((f=I.find(e,"NativeContent_MAIN"))&&f.content)c=Ts.to_workbook(f.content,(r.type=o,r));elsethrownewError("Cannot find Workbook stream");if(r.bookVBA&&e.FullPaths&&I.find(e,"/_VBA_PROJECT_CUR/VBA/dir"))c.vbaraw=lf(e)}varu={};if(e.FullPaths)Mv(e,u,r);c.Props=c.Custprops=u;if(r.bookFiles)c.cfb=e;returnc}functionUv(e,r){vart=r||{};vara=I.utils.cfb_new({root:"R"});varn="/Workbook";switch(t.bookType||"xls"){case"xls":t.bookType="biff8";case"biff8":n="/Workbook";t.biff=8;break;case"biff5":n="/Book";t.biff=5;break;default:thrownewError("invalid type "+t.bookType+" for XLS CFB");}I.utils.cfb_add(a,n,rb(e,t));if(t.biff==8&&e.vbaraw)cf(a,I.read(e.vbaraw,{type:typeofe.vbaraw=="string"?"binary":"buffer"}));returna}varWv={0:{n:"BrtRowHdr",f:ch},1:{n:"BrtCellBlank",f:ph},2:{n:"BrtCellRk",f:Th},3:{n:"BrtCellError",f:Sh},4:{n:"BrtCellBool",f:gh},5:{n:"BrtCellReal",f:wh},6:{n:"BrtCellSt",f:xh},7:{n:"BrtCellIsst",f:kh},8:{n:"BrtFmlaString",f:Oh},9:{n:"BrtFmlaNum",f:Fh},10:{n:"BrtFmlaBool",f:Ah},11:{n:"BrtFmlaError",f:Dh},16:{n:"BrtFRTArchID$",f:_d},19:{n:"BrtSSTItem",f:ot},20:{n:"BrtPCDIMissing"},21:{n:"BrtPCDINumber"},22:{n:"BrtPCDIBoolean"},23:{n:"BrtPCDIError"},24:{n:"BrtPCDIString"},25:{n:"BrtPCDIDatetime"},26:{n:"BrtPCDIIndex"},27:{n:"BrtPCDIAMissing"},28:{n:"BrtPCDIANumber"},29:{n:"BrtPCDIABoolean"},30:{n:"BrtPCDIAError"},31:{n:"BrtPCDIAString"},32:{n:"BrtPCDIADatetime"},33:{n:"BrtPCRRecord"},34:{n:"BrtPCRRecordDt"},35:{n:"BrtFRTBegin"},36:{n:"BrtFRTEnd"},37:{n:"BrtACBegin"},38:{n:"BrtACEnd"},39:{n:"BrtName",f:Pd},40:{n:"BrtIndexRowBlock"},42:{n:"BrtIndexBlock"},43:{n:"BrtFont",f:Ql},44:{n:"BrtFmt",f:Yl},45:{n:"BrtFill",f:ec},46:{n:"BrtBorder",f:ic},47:{n:"BrtXF",f:tc},48:{n:"BrtStyle"},49:{n:"BrtCellMeta"},50:{n:"BrtValueMeta"},51:{n:"BrtMdb"},52:{n:"BrtBeginFmd"},53:{n:"BrtEndFmd"},54:{n:"BrtBeginMdx"},55:{n:"BrtEndMdx"},56:{n:"BrtBeginMdxTuple"},57:{n:"BrtEndMdxTuple"},58:{n:"BrtMdxMbrIstr"},59:{n:"BrtStr"},60:{n:"BrtColInfo",f:as},62:{n:"BrtCellRString"},63:{n:"BrtCalcChainItem$",f:Hc},64:{n:"BrtDVal"},65:{n:"BrtSxvcellNum"},66:{n:"BrtSxvcellStr"},67:{n:"BrtSxvcellBool"},68:{n:"BrtSxvcellErr"},69:{n:"BrtSxvcellDate"},70:{n:"BrtSxvcellNil"},128:{n:"BrtFileVersion"},129:{n:"BrtBeginSheet"},130:{n:"BrtEndSheet"},131:{n:"BrtBeginBook",f:Ir,p:0},132:{n:"BrtEndBook"},133:{n:"BrtBeginWsViews"},134:{n:"BrtEndWsViews"},135:{n:"BrtBeginBookViews"},136:{n:"BrtEndBookViews"},137:{n:"BrtBeginWsView"},138:{n:"BrtEndWsView"},139:{n:"BrtBeginCsViews"},140:{n:"BrtEndCsViews"},141:{n:"BrtBeginCsView"},142:{n:"BrtEndCsView"},143:{n:"BrtBeginBundleShs"},144:{n:"BrtEndBundleShs"},145:{n:"BrtBeginSheetData"},146:{n:"BrtEndSheetData"},147:{n:"BrtWsProp",f:vh},148:{n:"BrtWsDim",f:uh,p:16},151:{n:"BrtPane"},152:{n:"BrtSel"},153:{n:"BrtWbProp",f:Fd},154:{n:"BrtWbFactoid"},155:{n:"BrtFileRecover"},156:{n:"BrtBundleSh",f:Ad
f:gs},52:{n:"DDEObjName"},62:{n:"BIFF2WINDOW2"},67:{n:"BIFF2XF"},69:{n:"BIFF2FONTCLR"},86:{n:"BIFF4FMTCNT"},126:{n:"RK"},127:{n:"ImData",f:os},135:{n:"Addin"},136:{n:"Edg"},137:{n:"Pub"},145:{n:"Sub"},148:{n:"LHRecord"},149:{n:"LHNGraph"},150:{n:"Sound"},169:{n:"CoordList"},171:{n:"GCW"},188:{n:"ShrFmla"},191:{n:"ToolbarHdr"},192:{n:"ToolbarEnd"},194:{n:"AddMenu"},195:{n:"DelMenu"},214:{n:"RString",f:Es},223:{n:"UDDesc"},234:{n:"TabIdConf"},354:{n:"XL5Modify"},421:{n:"FileSharing2"},521:{n:"BOF",f:$n},536:{n:"Lbl",f:Ni},547:{n:"ExternName",f:Pi},561:{n:"Font"},579:{n:"BIFF3XF"},1033:{n:"BOF",f:$n},1091:{n:"BIFF4XF"},2157:{n:"FeatInfo"},2163:{n:"FeatInfo11"},2177:{n:"SXAddl12"},2240:{n:"AutoWebPub"},2241:{n:"ListObj"},2242:{n:"ListField"},2243:{n:"ListDV"},2244:{n:"ListCondFmt"},2245:{n:"ListCF"},2246:{n:"FMQry"},2247:{n:"FMSQry"},2248:{n:"PLV"},2249:{n:"LnExt"},2250:{n:"MkrExt"},2251:{n:"CrtCoopt"},2262:{n:"FRTArchId$",r:12},29282:{}};varXv=A(Vv,"n");functionGv(e,r,t,a){varn=+r||+Xv[r];if(isNaN(n))return;vari=a||(t||[]).length||0;vars=e.next(4+i);s._W(2,n);s._W(2,i);if(i>0&&or(t))e.push(t)}functionzv(e,r,t){if(!e)e=Ar(7);e._W(2,r);e._W(2,t);e._W(1,0);e._W(1,0);e._W(1,0);returne}functionjv(e,r,t,a){varn=Ar(9);zv(n,e,r);if(a=="e"){n._W(1,t);n._W(1,1)}else{n._W(1,t?1:0);n._W(1,0)}returnn}functionKv(e,r,t){vara=Ar(8+2*t.length);zv(a,e,r);a._W(1,t.length);a._W(t.length,t,"sbcs");returna.l<a.length?a.slice(0,a.l):a}functionYv(e,r,t,a,n){if(r.v!=null)switch(r.t){case"d":;case"n":vari=r.t=="d"?y(W(r.v)):r.v;if(i==(i|0)&&i>=0&&i<65536)Gv(e,2,ps(t,a,i));elseGv(e,3,vs(t,a,i));return;case"b":;case"e":Gv(e,5,jv(t,a,r.v,r.t));return;case"s":;case"str":Gv(e,4,Kv(t,a,r.v));return;}Gv(e,1,zv(null,t,a))}function$v(e,r,t,a,n){vari=Array.isArray(r);vars=et(r["!ref"]||"A1"),l,c="",f=[];for(varo=s.s.r;o<=s.e.r;++o){c=Wr(o);for(varu=s.s.c;u<=s.e.c;++u){if(o===s.s.r)f[u]=Gr(u);l=f[u]+c;varh=i?(r[o]||[])[u]:r[l];if(!h)continue;Yv(e,h,o,u,a)}}}functionQv(e,r){vart=r||{};if(o!=null&&t.dense==null)t.dense=o;vara=Fr();varn=0;for(vari=0;i<e.SheetNames.length;++i)if(e.SheetNames[i]==t.sheet)n=i;if(n==0&&!!t.sheet&&e.SheetNames[0]!=t.sheet)thrownewError("Sheet not found: "+t.sheet);Gv(a,9,Qn(e,16,t));$v(a,e.Sheets[e.SheetNames[n]],n,t,e);Gv(a,10);returna.end()}functionJv(e,r,t,a,n){if(r.v!=null)switch(r.t){case"d":;case"n":vari=r.t=="d"?y(W(r.v)):r.v;Gv(e,"Number",Fi(t,a,i,n));return;case"b":;case"e":Gv(e,"BoolErr",Ai(t,a,r.v,n,r.t));return;case"s":;case"str":Gv(e,"Label",vi(t,a,r.v,n));return;}Gv(e,"Blank",Pn(t,a))}functionZv(e,r,t){vara=Fr();varn=t.SheetNames[e],i=t.Sheets[n]||{};vars=(((t||{}).Workbook||{}).Sheets||[])[e]||{};varl=Array.isArray(i);varc,f="",o=[];varu=et(i["!ref"]||"A1");Gv(a,2057,Qn(t,16,r));Gv(a,"CalcMode",bn(1));Gv(a,"CalcCount",bn(100));Gv(a,"CalcRefMode",dn(true));Gv(a,"CalcIter",dn(false));Gv(a,"CalcDelta",Ft(.001));Gv(a,"CalcSaveRecalc",dn(true));Gv(a,"PrintRowCol",dn(false));Gv(a,"PrintGrid",dn(false));Gv(a,"GridSet",bn(1));Gv(a,"Guts",xi([0,0]));Gv(a,"HCenter",dn(false));Gv(a,"VCenter",dn(false));Gv(a,"Dimensions",gi(u,r));for(varh=u.s.r;h<=u.e.r;++h){f=Wr(h);for(vard=u.s.c;d<=u.e.c;++d){if(h===u.s.r)o[d]=Gr(d);c=o[d]+f;varv=l?(i[h]||[])[d]:i[c];if(!v)continue;Jv(a,v,h,d,r)}}varb=s.CodeName||s.name||n;Gv(a,"CodeName",Cn(b,r));Gv(a,"EOF");returna.end()}functionqv(e,r,t){vara=Fr();varn=(e.Workbook||{}).WBProps||{};vari=t.biff==8,s=t.biff==5;Gv(a,2057,Qn(e,5,t));Gv(a,"InterfaceHdr",i?bn(1200):null);Gv(a,"Mms",on(2));if(s)Gv(a,"ToolbarHdr");if(s)Gv(a,"ToolbarEnd");Gv(a,"InterfaceEnd");Gv(a,"WriteAccess",qn("SheetJS",t));Gv(a,"CodePage",bn(i?1200:1252));if(i)Gv(a,"DSF",bn(0));Gv(a,"RRTabId",ss(e.SheetNames.length));if(i&&e.vbaraw){Gv(a,"ObProj");varl=n.CodeName||"ThisWorkbook";Gv(a,"CodeName",Cn(l,t))}Gv(a,"BuiltInFnGroupCount",bn(17));Gv(a,"WinProtect",dn(false));Gv(a,"Protect",dn(false));Gv(a,"Password",bn(0));if(i)Gv(a,"Prot4Rev",dn(false));if(i)Gv(a,"Prot4RevPass",bn(0));Gv(a,"Window1",oi(t));Gv(a,"Backup",dn(false));Gv(a,"HideObj",bn(0));Gv(a,"Date1904",dn(Sd(e)=="true"));Gv(
return[(e.Workbook.Sheets[t]||{}).Hidden!=2,r]}).filter(function(e){returne[0]}).map(function(e){returne[1]});e.Props.Worksheets=e.Props.SheetNames.length;i.file(s,Pa(e.Props,r));n.extprops.push(s);ma(r.rels,3,s,ha.EXT_PROPS);if(e.Custprops!==e.Props&&R(e.Custprops||{}).length>0){s="docProps/custom.xml";i.file(s,La(e.Custprops,r));n.custprops.push(s);ma(r.rels,4,s,ha.CUST_PROPS)}s="xl/workbook."+t;i.file(s,ev(e,s,r));n.workbooks.push(s);ma(r.rels,1,s,ha.WB);for(l=1;l<=e.SheetNames.length;++l){varc={"!id":{}};varf=e.Sheets[e.SheetNames[l-1]];varo=(f||{})["!type"]||"sheet";switch(o){case"chart":;default:s="xl/worksheets/sheet"+l+"."+t;i.file(s,rv(l-1,s,r,e,c));n.sheets.push(s);ma(r.wbrels,-1,"worksheets/sheet"+l+"."+t,ha.WS[0]);}if(f){varu=f["!comments"];if(u&&u.length>0){varh="xl/comments"+l+"."+t;i.file(h,iv(u,h,r));n.comments.push(h);ma(c,-1,"../comments"+l+"."+t,ha.CMNT)}if(f["!legacy"]){i.file("xl/drawings/vmlDrawing"+l+".vml",Yc(l,f["!comments"]))}deletef["!comments"];deletef["!legacy"]}if(c["!id"].rId1)i.file(da(s),pa(c))}if(r.Strings!=null&&r.Strings.length>0){s="xl/sharedStrings."+t;i.file(s,nv(r.Strings,s,r));n.strs.push(s);ma(r.wbrels,-1,"sharedStrings."+t,ha.SST)}s="xl/theme/theme1.xml";i.file(s,Dc(e.Themes,r));n.themes.push(s);ma(r.wbrels,-1,"theme/theme1.xml",ha.THEME);s="xl/styles."+t;i.file(s,av(e,s,r));n.styles.push(s);ma(r.wbrels,-1,"styles."+t,ha.STY);if(e.vbaraw&&a){s="xl/vbaProject.bin";i.file(s,e.vbaraw);n.vba.push(s);ma(r.wbrels,-1,"vbaProject.bin",ha.VBA)}i.file("[Content_Types].xml",ua(n,r));i.file("_rels/.rels",pa(r.rels));i.file("xl/_rels/workbook."+t+".rels",pa(r.wbrels));deleter.revssf;deleter.ssf;returni}functionOb(e,r){vart="";switch((r||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3]];case"base64":t=h.decode(e.substr(0,24));break;case"binary":t=e;break;case"array":return[e[0],e[1],e[2],e[3]];default:thrownewError("Unrecognized type "+(r&&r.type||"undefined"));}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]}function_b(e,r){if(I.find(e,"EncryptedPackage"))returnDb(e,r);returnLv(e,r)}functionPb(e,r){vart,a=e;varn=r||{};if(!n.type)n.type=d&&Buffer.isBuffer(e)?"buffer":"base64";switch(n.type){case"base64":t=newae(a,{base64:true});break;case"binary":;case"array":t=newae(a,{base64:false});break;case"buffer":t=newae(a);break;default:thrownewError("Unrecognized type "+n.type);}returnAb(t,n)}functionyb(e,r){vart=0;e:while(t<e.length)switch(e.charCodeAt(t)){case10:;case13:;case32:++t;break;case60:returnkv(e.slice(t),r);default:breake;}returnws.to_workbook(e,r)}functionNb(e,r){vart="",a=Ob(e,r);switch(r.type){case"base64":t=h.decode(e);break;case"binary":t=e;break;case"buffer":t=e.toString("binary");break;case"array":t=H(e);break;default:thrownewError("Unrecognized type "+r.type);}if(a[0]==239&&a[1]==187&&a[2]==191)t=Te(t);returnyb(t,r)}functionMb(e,r){vart=e;if(r.type=="base64")t=h.decode(t);t=cptable.utils.decode(1200,t.slice(2),"str");r.type="binary";returnyb(t,r)}functionLb(e){return!e.match(/[^\x00-\x7F]/)?e:Ie(e)}functionUb(e,r,t,a){if(a){t.type="string";returnws.to_workbook(e,t)}returnws.to_workbook(r,t)}functionWb(e,r){vart,a=e,n=[0,0,0,0],i=false;vars=r||{};Du={};if(s.dateNF)Du.dateNF=s.dateNF;if(!s.type)s.type=d&&Buffer.isBuffer(e)?"buffer":"base64";if(s.type=="file"){s.type="buffer";a=te.readFileSync(e)}if(s.type=="string"){i=true;s.type="binary";a=Lb(e)}switch((n=Ob(a,s))[0]){case208:return_b(I.read(a,s),s);case9:returnLv(a,s);case60:returnkv(a,s);case73:if(n[1]===68)returnCs(a,s);break;case84:if(n[1]===65&&n[2]===66&&n[3]===76)returnBs.to_workbook(a,s);break;case80:if(n[1]===75&&n[2]<32&&n[3]<32)returnPb(a,s);break;case239:returnn[3]===60?kv(a,s):Ub(e,a,s,i);case255:if(n[1]===254){returnMb(a,s)}break;case0:if(n[1]===0&&n[2]>=2&&n[3]===0)returnTs.to_workbook(a,s);break;case3:;case131:;case139:;case140:returnSs.to_workbook(a,s);case123:if(n[1]===92&&n[2]===114&&n[3]===116)returnhl.to_workbook(a,s);break;case10:;case13:;case32:returnNb(a,s);}if(n[2]<=12&&n[3]<=31)returnSs.to_