t=e.toString("binary");break;case"array":t=W(e);break;default:thrownewError("Unrecognized type "+r.type);}if(a[0]==239&&a[1]==187&&a[2]==191)t=Ce(t.slice(3));returnn(t,r)}functions(e,r){returnet(i(e,r),r)}functionf(e,r){vart=[];vara=$r(e["!ref"]),n;vari=Array.isArray(e);for(vars=a.s.r;s<=a.e.r;++s){varf=[];for(varo=a.s.c;o<=a.e.c;++o){varl=jr({r:s,c:o});n=i?(e[s]||[])[o]:e[l];if(!n||n.v==null){f.push(" ");continue}varc=(n.w||(qr(n),n.w)||"").substr(0,10);while(c.length<10)c+=" ";f.push(c+(o==0?" ":""))}t.push(f.join(""))}returnt.join("\n")}return{to_workbook:s,to_sheet:i,from_sheet:f}}();functionUu(e,r){vart=r||{},a=!!t.WTF;t.WTF=true;try{varn=Nu.to_workbook(e,t);t.WTF=a;returnn}catch(i){t.WTF=a;if(!i.message.match(/SYLK bad record ID/)&&a)throwi;returnMu.to_workbook(e,r)}}varHu=function(){functione(e,r,t){if(!e)return;wr(e,e.l||0);vara=t.Enum||S;while(e.l<e.length){varn=e.read_shift(2);vari=a[n]||a[255];vars=e.read_shift(2);varf=e.l+s;varo=i.f(e,s,t);e.l=f;if(r(o,i.n,n))return}}functionr(e,r){switch(r.type){case"base64":returnt(p(h.decode(e)),r);case"binary":returnt(p(e),r);case"buffer":;case"array":returnt(e,r);}throw"Unsupported type "+r.type}functiont(r,t){if(!r)returnr;vara=t||{};if(c!=null&&a.dense==null)a.dense=c;varn=a.dense?[]:{},i="Sheet1",s=0;varf={},o=[i];varl={s:{r:0,c:0},e:{r:0,c:0}};if(r[2]==2)a.Enum=S;elseif(r[2]==26)a.Enum=w;elseif(r[2]==14){a.Enum=w;a.qpro=true;r.l=0}elsethrownewError("Unrecognized LOTUS BOF "+r[2]);e(r,function(e,t,c){if(r[2]==2)switch(c){case0:a.vers=e;if(e>=4096)a.qpro=true;break;case6:l=e;break;case15:if(!a.qpro)e[1].v=e[1].v.substr(1);case13:;case14:;case16:;case51:if(c==14&&(e[2]&112)==112&&(e[2]&15)>1&&(e[2]&15)<15){e[1].z=a.dateNF||E._table[14];if(a.cellDates){e[1].t="d";e[1].v=N(e[1].v)}}if(a.dense){if(!n[e[0].r])n[e[0].r]=[];n[e[0].r][e[0].c]=e[1]}elsen[jr(e[0])]=e[1];break;}elseswitch(c){case22:e[1].v=e[1].v.substr(1);case23:;case24:;case25:;case37:;case39:;case40:if(e[3]>s){n["!ref"]=Zr(l);f[i]=n;n=a.dense?[]:{};l={s:{r:0,c:0},e:{r:0,c:0}};s=e[3];i="Sheet"+(s+1);o.push(i)}n[jr(e[0])]=e[1];if(l.e.c<e[0].c)l.e.c=e[0].c;if(l.e.r<e[0].r)l.e.r=e[0].r;break;default:break;}},a);n["!ref"]=Zr(l);f[i]=n;return{SheetNames:o,Sheets:f}}functiona(e,r){vart={s:{c:0,r:0},e:{c:0,r:0}};t.s.c=e.read_shift(2);t.s.r=e.read_shift(2);t.e.c=e.read_shift(2);t.e.r=e.read_shift(2);if(t.s.c==65535)t.s.c=t.e.c=t.s.r=t.e.r=0;returnt}functionn(e,r,t){vara=[{c:0,r:0},{t:"n",v:0},0];if(t.qpro&&t.vers!=20768){a[0].c=e.read_shift(1);e.l++;a[0].r=e.read_shift(2);e.l+=2}else{a[2]=e.read_shift(1);a[0].c=e.read_shift(2);a[0].r=e.read_shift(2)}returna}functioni(e,r,t){vara=e.l+r;vari=n(e,r,t);i[1].t="s";if(t.vers==20768){e.l++;vars=e.read_shift(1);i[1].v=e.read_shift(s,"utf8");returni}if(t.qpro)e.l++;i[1].v=e.read_shift(a-e.l,"cstr");returni}functions(e,r,t){vara=n(e,r,t);a[1].v=e.read_shift(2,"i");returna}functionf(e,r,t){vara=n(e,r,t);a[1].v=e.read_shift(8,"f");returna}functiono(e,r,t){vara=e.l+r;vari=n(e,r,t);i[1].v=e.read_shift(8,"f");if(t.qpro)e.l=a;else{vars=e.read_shift(2);e.l+=s}returni}functionl(e,r){vart=[{c:0,r:0},{t:"n",v:0},0];t[0].r=e.read_shift(2);t[3]=e[e.l++];t[0].c=e[e.l++];returnt}functionu(e,r){vart=l(e,r);t[1].t="s";t[1].v=e.read_shift(r-4,"cstr");returnt}functiond(e,r){vart=l(e,r);t[1].v=e.read_shift(2);vara=t[1].v>>1;if(t[1].v&1){switch(a&7){case1:a=(a>>3)*500;break;case2:a=(a>>3)/20;break;case4:a=(a>>3)/2e3;break;case6:a=(a>>3)/16;break;case7:a=(a>>3)/64;break;default:throw"unknown NUMBER_18 encoding "+(a&7);}}t[1].v=a;returnt}functionv(e,r){vart=l(e,r);vara=e.read_shift(4);varn=e.read_shift(4);vari=e.read_shift(2);if(i==65535){t[1].v=0;returnt}vars=i&32768;i=(i&32767)-16446;t[1].v=(i>0?n<<i:n>>>-i)+(i>-32?a<<i+32:a>>>-(i+32));returnt}functionb(e,r){vart=v(e,14);e.l+=r-14;returnt}functionm(e,r){vart=l(e,r);vara=e.read_shift(4);t[1].v=a>>6;returnt}functiong(e,r){vart=l(e,r);vara=e.read_shift(8,"f");t[1].v=a;returnt}functionk(e,r){vart=g(e,14);e.l+=r-10;returnt}var
break;case"<a:srgbClr":a.rgb=n.val;break;case"<a:sysClr":a.rgb=n.lastClr;break;case"<a:dk1>":;case"</a:dk1>":;case"<a:lt1>":;case"</a:lt1>":;case"<a:dk2>":;case"</a:dk2>":;case"<a:lt2>":;case"</a:lt2>":;case"<a:accent1>":;case"</a:accent1>":;case"<a:accent2>":;case"</a:accent2>":;case"<a:accent3>":;case"</a:accent3>":;case"<a:accent4>":;case"</a:accent4>":;case"<a:accent5>":;case"</a:accent5>":;case"<a:accent6>":;case"</a:accent6>":;case"<a:hlink>":;case"</a:hlink>":;case"<a:folHlink>":;case"</a:folHlink>":if(n[0].charAt(1)==="/"){r.themeElements.clrScheme.push(a);a={}}else{a.name=n[0].substring(3,n[0].length-1)}break;default:if(t&&t.WTF)thrownewError("Unrecognized "+n[0]+" in clrScheme");}})}functionLd(e,r,t){}functionMd(e,r,t){}varUd=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/;varHd=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/;varWd=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;functionVd(e,r,t){r.themeElements={};vara;[["clrScheme",Ud,Nd],["fontScheme",Hd,Ld],["fmtScheme",Wd,Md]].forEach(function(n){if(!(a=e.match(n[1])))thrownewError(n[0]+" not found in themeElements");n[2](a,r,t)})}varzd=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;functionXd(e,r){if(!e||e.length===0)returnXd(Gd());vart;vara={};if(!(t=e.match(zd)))thrownewError("themeElements not found in theme");Vd(t[0],a,r);returna}functionGd(e,r){if(r&&r.themeXLSX)returnr.themeXLSX;vart=[Ue];t[t.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">';t[t.length]="<a:themeElements>";t[t.length]='<a:clrScheme name="Office">';t[t.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>';t[t.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>';t[t.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>';t[t.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>';t[t.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>';t[t.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>';t[t.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>';t[t.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>';t[t.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>';t[t.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>';t[t.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>';t[t.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>';t[t.length]="</a:clrScheme>";t[t.length]='<a:fontScheme name="Office">';t[t.length]="<a:majorFont>";t[t.length]='<a:latin typeface="Cambria"/>';t[t.length]='<a:ea typeface=""/>';t[t.length]='<a:cs typeface=""/>';t[t.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>';t[t.length]='<a:font script="Hang" typeface="맑은 고딕"/>';t[t.length]='<a:font script="Hans" typeface="宋体"/>';t[t.length]='<a:font script="Hant" typeface="新細明體"/>';t[t.length]='<a:font script="Arab" typeface="Times New Roman"/>';t[t.length]='<a:font script="Hebr" typeface="Times New Roman"/>';t[t.length]='<a:font script="Thai" typeface="Tahoma"/>';t[t.length]='<a:font script="Ethi" typeface="Nyala"/>';t[t.length]='<a:font script="Beng" typeface="Vrinda"/>';t[t.length]='<a:font script="Gujr" typeface="Shruti"/>';t[t.length]='<a:font script="Khmr" typeface="MoolBoran"/>';t[t.length]='<a:font script="Knda" typeface="Tunga"/>';t[t.length]='<a:font script="Guru" typeface="Raavi"/>';t[t.length]='<a:font script="Cans" typeface="Euphemia"/>';t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>';t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>';t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>';t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>';t[t.length]='<a:font script="Deva" typeface="Mangal"/>';t[t.length]='<a:font script="Telu" typeface="Gautami"/>';t[t.length]='<a:font script="Taml" typeface="Latha"/>';t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>';t[t.length]='<a:font script="Orya" typeface="Kalinga"/>';t[t.length]='<a:font script="Mlym" typeface="Kartika"/>';t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>';t[t.length]='<a:fontscript="Sinh"
s.push(_);break;case"PtgNameX":varT=E[1][1];h=E[1][2];varx;if(n.biff<=5){if(T<0)T=-T;if(a[T])x=a[T][h]}else{varA=a.SheetNames[T];varI="";if(((a[T]||[])[0]||[])[0]==14849){}elseif(((a[T]||[])[0]||[])[0]==1025){if(a[T][h]&&a[T][h].itab>0){I=a.SheetNames[a[T][h].itab-1]+"!"}}elseI=a.SheetNames[h-1]+"!";if(a[T]&&a[T][h])I+=a[T][h].Name;elseif(a[0]&&a[0][h])I+=a[0][h].Name;elseI+="SH33TJSERRX";s.push(I);break}if(!x)x={Name:"SH33TJSERRY"};s.push(x.Name);break;case"PtgParen":vary="(",R=")";if(p>=0){b="";switch(e[0][p][1][0]){case2:y=X(" ",e[0][p][1][1])+y;break;case3:y=X("\r",e[0][p][1][1])+y;break;case4:R=X(" ",e[0][p][1][1])+R;break;case5:R=X("\r",e[0][p][1][1])+R;break;default:if(n.WTF)thrownewError("Unexpected PtgAttrSpaceType "+e[0][p][1][0]);}p=-1}s.push(y+s.pop()+R);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":c={c:E[1][1],r:E[1][0]};varD={c:t.c,r:t.r};if(a.sharedf[jr(c)]){varO=a.sharedf[jr(c)];s.push(ub(O,i,D,a,n))}else{varF=false;for(f=0;f!=a.arrayf.length;++f){o=a.arrayf[f];if(c.c<o[0].s.c||c.c>o[0].e.c)continue;if(c.r<o[0].s.r||c.r>o[0].e.r)continue;s.push(ub(o[1],i,D,a,n));F=true;break}if(!F)s.push(E[1])}break;case"PtgArray":s.push("{"+sb(E[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":;case"PtgAttrSpaceSemi":p=m;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":s.push("");break;case"PtgAreaErr":s.push("#REF!");break;case"PtgAreaErr3d":s.push("#REF!");break;case"PtgMemFunc":break;default:thrownewError("Unrecognized Formula Token: "+String(E));}varP=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(p>=0&&P.indexOf(e[0][m][0])==-1){E=e[0][p];varN=true;switch(E[1][0]){case4:N=false;case0:b=X(" ",E[1][1]);break;case5:N=false;case1:b=X("\r",E[1][1]);break;default:b="";if(n.WTF)thrownewError("Unexpected PtgAttrSpaceType "+E[1][0]);}s.push((N?b:"")+s.pop()+(N?"":b));p=-1}}if(s.length>1&&n.WTF)thrownewError("bad formula stack");returns[0]}functionhb(e,r,t){vara=e.l+r;varn=e.read_shift(4);vari=ib(e,n,t);vars=e.read_shift(4);varf=s>0?eb(e,s,i,t):null;return[i,f]}vardb=hb;varvb=hb;varpb=hb;varbb=hb;varmb={1:"REFERENCE",2:"VALUE",3:"ARRAY"};vargb={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"F
varo=vh(a.content);thrownewError("File is password-protected")}functionmk(e,r){ov=1024;if(r.bookType=="ods")returnJE(e,r);if(e&&!e.SSF){e.SSF=E.get_table()}if(e&&e.SSF){k(E);E.load_table(e.SSF);r.revssf=R(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;vart=r.bookType=="xlsb"?"bin":"xml";vara=r.bookType=="xlsb"||r.bookType=="xlsm";varn=na();lk(r=r||{});vari=newae;vars="",f=0;r.cellXfs=[];yb(r.cellXfs,{},{revssf:{General:0}});if(!e.Props)e.Props={};s="docProps/core.xml";i.file(s,xa(e.Props,r));n.coreprops.push(s);va(r.rels,2,s,la.CORE_PROPS);s="docProps/app.xml";if(e.Props&&e.Props.SheetNames){}elseif(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;elsee.Props.SheetNames=e.SheetNames.map(function(r,t){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,Ra(e.Props,r));n.extprops.push(s);va(r.rels,3,s,la.EXT_PROPS);if(e.Custprops!==e.Props&&A(e.Custprops||{}).length>0){s="docProps/custom.xml";i.file(s,Pa(e.Custprops,r));n.custprops.push(s);va(r.rels,4,s,la.CUST_PROPS)}s="xl/workbook."+t;i.file(s,jg(e,s,r));n.workbooks.push(s);va(r.rels,1,s,la.WB);for(f=1;f<=e.SheetNames.length;++f){varo={"!id":{}};varl=e.Sheets[e.SheetNames[f-1]];varc=(l||{})["!type"]||"sheet";switch(c){case"chart":;default:s="xl/worksheets/sheet"+f+"."+t;i.file(s,Kg(f-1,s,r,e,o));n.sheets.push(s);va(r.wbrels,-1,"worksheets/sheet"+f+"."+t,la.WS[0]);}if(l){varu=l["!comments"];if(u&&u.length>0){varh="xl/comments"+f+"."+t;i.file(h,Qg(u,h,r));n.comments.push(h);va(o,-1,"../comments"+f+"."+t,la.CMNT)}if(l["!legacy"]){i.file("xl/drawings/vmlDrawing"+f+".vml",lv(f,l["!comments"]))}deletel["!comments"];deletel["!legacy"]}if(o["!id"].rId1)i.file(ca(s),da(o))}if(r.Strings!=null&&r.Strings.length>0){s="xl/sharedStrings."+t;i.file(s,Zg(r.Strings,s,r));n.strs.push(s);va(r.wbrels,-1,"sharedStrings."+t,la.SST)}s="xl/theme/theme1.xml";i.file(s,Gd(e.Themes,r));n.themes.push(s);va(r.wbrels,-1,"theme/theme1.xml",la.THEME);s="xl/styles."+t;i.file(s,$g(e,s,r));n.styles.push(s);va(r.wbrels,-1,"styles."+t,la.STY);if(e.vbaraw&&a){s="xl/vbaProject.bin";i.file(s,e.vbaraw);n.vba.push(s);va(r.wbrels,-1,"vbaProject.bin",la.VBA)}i.file("[Content_Types].xml",oa(n,r));i.file("_rels/.rels",da(r.rels));i.file("xl/_rels/workbook."+t+".rels",da(r.wbrels));deleter.revssf;deleter.ssf;returni}functiongk(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)]}functionEk(e,r){if(T.find(e,"EncryptedPackage"))returnbk(e,r);returnyE(e,r)}functionkk(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);}returnpk(t,n)}functionSk(e,r){vart=0;e:while(t<e.length)switch(e.charCodeAt(t)){case10:;case13:;case32:++t;break;case60:returndE(e.slice(t),r);default:breake;}returnMu.to_workbook(e,r)}functionwk(e,r){vart="",a=gk(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=W(e);break;default:thrownewError("Unrecognized type "+r.type);}if(a[0]==239&&a[1]==187&&a[2]==191)t=Ce(t);returnSk(t,r)}functionBk(e,r){vart=e;if(r.type=="base64")t=h.decode(t);t=cptable.utils.decode(1200,t.slice(2),"str");r.type="binary";returnSk(t,r)}functionCk(e,r){vart,a=e,n=[0];vari=r||{};Tb={};if(i.dateNF)Tb.dateNF=i.dateNF;if(!i.type)i.type=d&&Buffer.isBuffer(e)?"buffer":"base64";if(i.type=="file"){i.type="buffer";a=te.readFileSync(e)}switch((n=gk(a,i))[0]){case208:returnEk(T.read(a,i),i);case9:returny