returnt}if(einstanceofDate)returne;if(se.getFullYear()==1917&&!isNaN(t.getFullYear())){vara=t.getFullYear();if(e.indexOf(""+a)>-1)returnt;t.setFullYear(t.getFullYear()+100);returnt}varn=e.match(/\d+/g)||["2017","2","19","0","0","0"];vari=newDate(+n[0],+n[1]-1,+n[2],+n[3]||0,+n[4]||0,+n[5]||0);if(e.indexOf("Z")>-1)i=newDate(i.getTime()-i.getTimezoneOffset()*60*1e3);returni}functionle(e,r){if(w&&Buffer.isBuffer(e)){if(r){if(e[0]==255&&e[1]==254)returne.slice(2).toString("utf16le");if(e[1]==254&&e[2]==255)returnh(e.slice(2).toString("binary"))}returne.toString("binary")}vart=[];for(vara=0;a!=e.length;++a)t.push(String.fromCharCode(e[a]));returnt.join("")}functionoe(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]=oe(e[t]);returnr}functionue(e,r){vart="";while(t.length<r)t+=e;returnt}functionhe(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.replace(/[(](.*)[)]/,function(e,r){t=-t;returnr});if(!isNaN(r=Number(a)))returnr/t;returnr}varde=["january","february","march","april","may","june","july","august","september","october","november","december"];functionve(e){varr=newDate(e),t=newDate(NaN);vara=r.getYear(),n=r.getMonth(),i=r.getDate();if(isNaN(i))returnt;vars=e.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"");if(s.length>3&&de.indexOf(s)==-1)returnt}elseif(s.match(/[a-z]/))returnt;if(a<0||a>8099)returnt;if((n>0||i>1)&&a!=101)returnr;if(e.match(/[^-0-9:,\/\\]/))returnt;returnr}varpe="abacaba".split(/(:?b)/i).length==5;functionme(e,r,t){if(pe||typeofr=="string")returne.split(r);vara=e.split(r),n=[a[0]];for(vari=1;i<a.length;++i){n.push(t);n.push(a[i])}returnn}functionbe(e){if(!e)returnnull;if(e.content&&e.type)returnle(e.content,true);if(e.data)returnd(e.data);if(e.asNodeBuffer&&w)returnd(e.asNodeBuffer().toString("binary"));if(e.asBinary)returnd(e.asBinary());if(e._data&&e._data.getContent)returnd(le(Array.prototype.slice.call(e._data.getContent(),0)));returnnull}functionge(e){if(!e)returnnull;if(e.data)returno(e.data);if(e.asNodeBuffer&&w)returne.asNodeBuffer();if(e._data&&e._data.getContent){varr=e._data.getContent();if(typeofr=="string")returno(r);returnArray.prototype.slice.call(r)}if(e.content&&e.type)returne.content;returnnull}functionwe(e){returne&&e.name.slice(-4)===".bin"?ge(e):be(e)}functionke(e,r){vart=e.FullPaths||Y(e.files);vara=r.toLowerCase().replace(/[\/]/g,"\\"),n=a.replace(/\\/g,"/");for(vari=0;i<t.length;++i){vars=t[i].replace(/^Root Entry[\/]/,"").toLowerCase();if(a==s||n==s)returne.files?e.files[t[i]]:e.FileIndex[i]}returnnull}functionTe(e,r){vart=ke(e,r);if(t==null)thrownewError("Cannot find file "+r+" in zip");returnt}functionEe(e,r,t){if(!t)returnwe(Te(e,r));if(!r)returnnull;try{returnEe(e,r)}catch(a){returnnull}}functionSe(e,r,t){if(!t)returnbe(Te(e,r));if(!r)returnnull;try{returnSe(e,r)}catch(a){returnnull}}functionye(e,r,t){if(!t)returnge(Te(e,r));if(!r)returnnull;try{returnye(e,r)}catch(a){returnnull}}function_e(e){varr=e.FullPaths||Y(e.files),t=[];for(vara=0;a<r.length;++a)if(r[a].slice(-1)!="/")t.push(r[a].replace(/^Root Entry[\/]/,""));returnt.sort()}functionxe(e,r,t){if(e.FullPaths){if(typeoft=="string"){vara;if(w)a=k(t);elsea=O(t);returnz.utils.cfb_add(e,r,a)}z.utils.cfb_add(e,r,t)}elsee.file(r,t)}functionAe(){returnz.utils.cfb_new()}functionCe(e,r){switch(r.type){case"base64":returnz.read(e,{type:"base64"});case"binary":returnz.read(e,{type:"binary"});case"buffer":;case"array":returnz.read(e,{type:"buffer"});}thrownewError("Unrecognized type "+r.type)}functionRe(e,r){if(e.charAt(0)=="/")returne.slice(1)
for(vars=t.s.c;s<=t.e.c;++s)r.push("\\cellx"+(s+1));r.push("\\pard\\intbl");for(s=t.s.c;s<=t.e.c;++s){varf=kt({r:i,c:s});a=n?(e[i]||[])[s]:e[f];if(!a||a.v==null&&(!a.f||a.F))continue;r.push(" "+(a.w||(_t(a),a.w)));r.push("\\cell")}r.push("\\pard\\intbl\\row")}returnr.join("")+"}"}return{to_workbook:t,to_sheet:e,from_sheet:a}}();functionfc(e){varr=e.slice(e[0]==="#"?1:0).slice(0,6);return[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)]}functioncc(e){for(varr=0,t=1;r!=3;++r)t=t*256+(e[r]>255?255:e[r]<0?0:e[r]);returnt.toString(16).toUpperCase().slice(1)}functionlc(e){varr=e[0]/255,t=e[1]/255,a=e[2]/255;varn=Math.max(r,t,a),i=Math.min(r,t,a),s=n-i;if(s===0)return[0,0,r];varf=0,c=0,l=n+i;c=s/(l>1?2-l:l);switch(n){caser:f=((t-a)/s+6)%6;break;caset:f=(a-r)/s+2;break;casea:f=(r-t)/s+4;break;}return[f/6,c,l/2]}functionoc(e){varr=e[0],t=e[1],a=e[2];varn=t*2*(a<.5?a:1-a),i=a-n/2;vars=[i,i,i],f=6*r;varc;if(t!==0)switch(f|0){case0:;case6:c=n*f;s[0]+=n;s[1]+=c;break;case1:c=n*(2-f);s[0]+=c;s[1]+=n;break;case2:c=n*(f-2);s[1]+=n;s[2]+=c;break;case3:c=n*(4-f);s[1]+=c;s[2]+=n;break;case4:c=n*(f-4);s[2]+=n;s[0]+=c;break;case5:c=n*(6-f);s[2]+=c;s[0]+=n;break;}for(varl=0;l!=3;++l)s[l]=Math.round(s[l]*255);returns}functionuc(e,r){if(r===0)returne;vart=lc(fc(e));if(r<0)t[2]=t[2]*(1+r);elset[2]=1-(1-t[2])*(1-r);returncc(oc(t))}varhc=6,dc=15,vc=1,pc=hc;functionmc(e){returnMath.floor((e+Math.round(128/pc)/256)*pc)}functionbc(e){returnMath.floor((e-5)/pc*100+.5)/100}functiongc(e){returnMath.round((e*pc+5)/pc*256)/256}functionwc(e){returngc(bc(mc(e)))}functionkc(e){varr=Math.abs(e-wc(e)),t=pc;if(r>.005)for(pc=vc;pc<dc;++pc)if(Math.abs(e-wc(e))<=r){r=Math.abs(e-wc(e));t=pc}pc=t}functionTc(e){if(e.width){e.wpx=mc(e.width);e.wch=bc(e.wpx);e.MDW=pc}elseif(e.wpx){e.wch=bc(e.wpx);e.width=gc(e.wch);e.MDW=pc}elseif(typeofe.wch=="number"){e.width=gc(e.wch);e.wpx=mc(e.width);e.MDW=pc}if(e.customWidth)deletee.customWidth}varEc=96,Sc=Ec;functionyc(e){returne*96/Sc}function_c(e){returne*Sc/96}varxc={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"};functionAc(e,r,t,a){r.Borders=[];varn={};vari=false;(e[0].match(Ne)||[]).forEach(function(e){vart=Pe(e);switch(Le(t[0])){case"<borders":;case"<borders>":;case"</borders>":break;case"<border":;case"<border>":;case"<border/>":n={};if(t.diagonalUp)n.diagonalUp=Ke(t.diagonalUp);if(t.diagonalDown)n.diagonalDown=Ke(t.diagonalDown);r.Borders.push(n);break;case"</border>":break;case"<left/>":break;case"<left":;case"<left>":break;case"</left>":break;case"<right/>":break;case"<right":;case"<right>":break;case"</right>":break;case"<top/>":break;case"<top":;case"<top>":break;case"</top>":break;case"<bottom/>":break;case"<bottom":;case"<bottom>":break;case"</bottom>":break;case"<diagonal":;case"<diagonal>":;case"<diagonal/>":break;case"</diagonal>":break;case"<horizontal":;case"<horizontal>":;case"<horizontal/>":break;case"</horizontal>":break;case"<vertical":;case"<vertical>":;case"<vertical/>":break;case"</vertical>":break;case"<start":;case"<start>":;case"<start/>":break;case"</start>":break;case"<end":;case"<end>":;case"<end/>":break;case"</end>":break;case"<color":;case"<color>":break;case"<color/>":;case"</color>":break;case"<extLst":;case"<extLst>":;case"</extLst>":break;case"<ext":i=true;break;case"</ext>":i=false;break;default:if(a&&a.WTF){if(!i)thrownewError("unrecognized "+t[0]+" in borders")};}})}functionCc(e,r,t,a){r.Fills=[];varn={};vari=false;(e[0].match(Ne)||[]).forEach(function(e){vart=Pe(e);switch(Le(t[0])){case"<fills":;case"<fills>":;case"</fills>":break;case"<fill>":;case"<fill":;case"<fill/>":n={};r.Fills.push(n);break;case"</fill>":break;case"<gradientFill>":break;case"<gradientFill":;case"</gradientFill>
returne.join("")}functionHl(e){varr=[];if(!e)returnr;vart=1;(e.match(Ne)||[]).forEach(function(e){vara=Pe(e);switch(a[0]){case"<?xml":break;case"<calcChain":;case"<calcChain>":;case"</calcChain>":break;case"<c":deletea[0];if(a.i)t=a.i;elsea.i=t;r.push(a);break;}});returnr}functionzl(e){varr={};r.i=e._R(4);vart={};t.r=e._R(4);t.c=e._R(4);r.r=kt(t);vara=e._R(1);if(a&2)r.l="1";if(a&8)r.a="1";returnr}functionVl(e,r,t){vara=[];varn=false;at(e,functioni(e,r,s){switch(s){case63:a.push(e);break;default:if(r.T){}elseif(!n||t.WTF)thrownewError("Unexpected record 0x"+s.toString(16));}});returna}functionGl(){}functionjl(e,r,t,a){if(!e)returne;varn=a||{};vari=false,s=false;at(e,functionf(e,r,t){if(s)return;switch(t){case359:;case363:;case364:;case366:;case367:;case368:;case369:;case370:;case371:;case472:;case577:;case578:;case579:;case580:;case581:;case582:;case583:;case584:;case585:;case586:;case587:break;case35:i=true;break;case36:i=false;break;default:if(r.T){}elseif(!i||n.WTF)thrownewError("Unexpected record 0x"+t.toString(16));}},n)}functionXl(e,r){if(!e)return"??";vart=(e.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];returnr["!id"][t].Target}var$l=1024;functionYl(e,r){vart=[21600,21600];vara=["m0,0l0",t[1],t[0],t[1],t[0],"0xe"].join(",");varn=[or("xml",null,{"xmlns:v":br.v,"xmlns:o":br.o,"xmlns:x":br.x,"xmlns:mv":br.mv}).replace(/\/>/,">"),or("o:shapelayout",or("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),or("v:shapetype",[or("v:stroke",null,{joinstyle:"miter"}),or("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:t.join(","),path:a})];while($l<e*1e3)$l+=1e3;r.forEach(function(e){varr=wt(e[0]);vart={color2:"#BEFF82",type:"gradient"};if(t.type=="gradient")t.angle="-180";vara=t.type=="gradient"?or("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null;vari=or("v:fill",a,t);vars={on:"t",obscured:"t"};++$l;n=n.concat(["<v:shape"+lr({id:"_x0000_s"+$l,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(e[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",i,or("v:shadow",null,s),or("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",cr("x:Anchor",[r.c+1,0,r.r+1,0,r.c+3,20,r.r+5,20].join(",")),cr("x:AutoFill","False"),cr("x:Row",String(r.r)),cr("x:Column",String(r.c)),e[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])});n.push("</xml>");returnn.join("")}functionKl(e,r,t,a){varn=Array.isArray(e);vari;r.forEach(function(r){vars=wt(r.ref);if(n){if(!e[s.r])e[s.r]=[];i=e[s.r][s.c]}elsei=e[r.ref];if(!i){i={t:"z"};if(n)e[s.r][s.c]=i;elsee[r.ref]=i;varf=St(e["!ref"]||"BDWGO1000001:A1");if(f.s.r>s.r)f.s.r=s.r;if(f.e.r<s.r)f.e.r=s.r;if(f.s.c>s.c)f.s.c=s.c;if(f.e.c<s.c)f.e.c=s.c;varc=Et(f);if(c!==e["!ref"])e["!ref"]=c}if(!i.c)i.c=[];varl={a:r.author,t:r.t,r:r.r,T:t};if(r.h)l.h=r.h;for(varo=i.c.length-1;o>=0;--o){if(!t&&i.c[o].T)return;if(t&&!i.c[o].T)i.c.splice(o,1)}if(t&&a)for(o=0;o<a.length;++o){if(l.a==a[o].id){l.a=a[o].name||l.a;break}}i.c.push(l)})}functionJl(e,r){if(e.match(/<(?:\w+:)?comments *\/>/))return[];vart=[];vara=[];varn=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);if(n&&n[1])n[1].split(/<\/\w*:?author>/).forEach(function(e){if(e===""||e.trim()==="")return;varr=e.match(/<(?:\w+:)?author[^>]*>(.*)/);if(r)t.push(r[1])});vari=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);if(i&&i[1])i[1].split(/<\/\w*:?comment>/).forEach(function(e){if(e===""||e.trim()==="")return;varn=e.match(/<(?:\w+:)?comment[^>]*>/);if(!n)return;vari=Pe(n[0]);vars={author:i.authorId&&t[i.authorId]||"sheetjsghost",ref:i.ref,guid:i.guid};varf=wt(i.ref);if(r.sheetRows&&r.sheetRows<=f.r)return;varc=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/);varl=!!c&&!!c[1]&&_f(c[1])||{r:"",t:"",h:""};s.r=l.r;if(l.r=="<t></t>")l.t=l.h="";s.
varf=w?"buffer":"array";if(a&&a.content)n=rm(a.content,r);elseif((i=z.find(e,"PerfectOffice_MAIN"))&&i.content)n=gf.to_workbook(i.content,(r.type=f,r));elseif((i=z.find(e,"NativeContent_MAIN"))&&i.content)n=gf.to_workbook(i.content,(r.type=f,r));elseif((i=z.find(e,"MN0"))&&i.content)thrownewError("Unsupported Works 4 for Mac file");elsethrownewError("Cannot find Workbook stream");if(r.bookVBA&&e.FullPaths&&z.find(e,"/_VBA_PROJECT_CUR/VBA/dir"))n.vbaraw=lo(e)}varc={};if(e.FullPaths)am(e,c,r);n.Props=n.Custprops=c;if(r.bookFiles)n.cfb=e;returnn}functionsm(e,r){vart=r||{};vara=z.utils.cfb_new({root:"R"});varn="/Workbook";switch(t.bookType||"xls"){case"xls":t.bookType="biff8";case"xla":if(!t.bookType)t.bookType="xla";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");}z.utils.cfb_add(a,n,Am(e,t));if(t.biff==8&&(e.Props||e.Custprops))nm(e,a);if(t.biff==8&&e.vbaraw)oo(a,z.read(e.vbaraw,{type:typeofe.vbaraw=="string"?"binary":"buffer"}));returna}varfm={0:{f:cd},1:{f:md},2:{f:Ld},3:{f:yd},4:{f:kd},5:{f:Nd},6:{f:Hd},7:{f:Cd},8:{f:Yd},9:{f:$d},10:{f:jd},11:{f:Xd},12:{f:gd},13:{f:Ud},14:{f:xd},15:{f:Ed},16:{f:Dd},17:{f:Vd},18:{f:Od},19:{f:Pt},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:Qv},40:{},42:{},43:{f:Wc},44:{f:Uc},45:{f:Gc},46:{f:Kc},47:{f:Xc},48:{},49:{f:Rt},50:{},51:{f:Nl},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:$s},62:{f:Wd},63:{f:zl},64:{f:uv},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:rt,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:fv},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:vd},148:{f:ud,p:16},151:{f:ev},152:{},153:{f:Jv},154:{},155:{},156:{f:Yv},157:{},158:{},159:{T:1,f:Nf},160:{T:-1},161:{T:1,f:ea},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Kd},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:Ol},336:{T:-1},337:{f:Pl,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Yt},357:{},358:{},359:{},360:{T:1},361:{},362:{f:ys},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371
varn=Pa();vb(r=r||{});vari=Ae();vars="",f=0;r.cellXfs=[];xh(r.cellXfs,{},{revssf:{General:0}});if(!e.Props)e.Props={};s="docProps/core.xml";xe(i,s,an(e.Props,r));n.coreprops.push(s);ja(r.rels,2,s,Ba.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;xe(i,s,ln(e.Props,r));n.extprops.push(s);ja(r.rels,3,s,Ba.EXT_PROPS);if(e.Custprops!==e.Props&&Y(e.Custprops||{}).length>0){s="docProps/custom.xml";xe(i,s,hn(e.Custprops,r));n.custprops.push(s);ja(r.rels,4,s,Ba.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;xe(i,s,fd(f-1,r,e,u));n.sheets.push(s);ja(r.wbrels,-1,"worksheets/sheet"+f+"."+t,Ba.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+"."+t;xe(i,m,Ql(v,o,r));n.threadedcomments.push(m);ja(u,-1,"../threadedComments/threadedComment"+f+"."+t,Ba.TCMNT)}m="xl/comments"+f+"."+t;xe(i,m,ql(v,r));n.comments.push(m);ja(u,-1,"../comments"+f+"."+t,Ba.CMNT);p=true}if(h["!legacy"]){if(p)xe(i,"xl/drawings/vmlDrawing"+f+".vml",Yl(f,h["!comments"]))}deleteh["!comments"];deleteh["!legacy"]}if(u["!id"].rId1)xe(i,Wa(s),Va(u))}if(r.Strings!=null&&r.Strings.length>0){s="xl/sharedStrings."+t;xe(i,s,If(r.Strings,r));n.strs.push(s);ja(r.wbrels,-1,"sharedStrings."+t,Ba.SST)}s="xl/workbook."+t;xe(i,s,$v(e,r));n.workbooks.push(s);ja(r.rels,1,s,Ba.WB);s="xl/theme/theme1.xml";xe(i,s,Tl(e.Themes,r));n.themes.push(s);ja(r.wbrels,-1,"theme/theme1.xml",Ba.THEME);s="xl/styles."+t;xe(i,s,Mc(e,r));n.styles.push(s);ja(r.wbrels,-1,"styles."+t,Ba.STY);if(e.vbaraw&&a){s="xl/vbaProject.bin";xe(i,s,e.vbaraw);n.vba.push(s);ja(r.wbrels,-1,"vbaProject.bin",Ba.VBA)}s="xl/metadata."+t;xe(i,s,Wl());n.metadata.push(s);ja(r.wbrels,-1,"metadata."+t,Ba.XLMETA);if(o.length>1){s="xl/persons/person.xml";xe(i,s,ro(o,r));n.people.push(s);ja(r.wbrels,-1,"persons/person.xml",Ba.PEOPLE)}xe(i,"[Content_Types].xml",Ua(n,r));xe(i,"_rels/.rels",Va(r.rels));xe(i,"xl/_rels/workbook."+t+".rels",Va(r.wbrels));deleter.revssf;deleter.ssf;returni}functionyb(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=g.decode(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)]}function_b(e,r){if(z.find(e,"EncryptedPackage"))returnkb(e,r);returnim(e,r)}functionxb(e,r){vart,a=e;varn=r||{};if(!n.type)n.type=w&&Buffer.isBuffer(e)?"buffer":"base64";t=Ce(a,n);returnwb(t,n)}functionAb(e,r){vart=0;e:while(t<e.length)switch(e.charCodeAt(t)){case10:;case13:;case32:++t;break;case60:returnLp(e.slice(t),r);default:breake;}returnmf.to_workbook(e,r)}functionCb(e,r){vart="",a=yb(e,r);switch(r.type){case"base64":t=g.decode(e);break;case"binary":t=e;break;case"buffer":t=e.toString("binary");break;case"array":t=le(e);break;default:thrownewError("Unrecognized type "+r.type);}if(a[0]==239&&a[1]==187&&a[2]==191)t=Je(t);r.type="binary";returnAb(t,r)}functionRb(e,r){vart=e;if(r.type=="base64")t=g.decode(t);t=a.utils.decode(1200,t.slice(2),"str");r.type="binary";returnAb(t,r)}functionOb(e){return!e.match(/[^\x00-\x7F]/)?e:qe(e)}functionIb(e,r,t,a){if(a){t.type="string";returnmf.to_workbook(e,t)}returnmf.to_workbook(r,t)}functionNb(e,r){l();vart=r||{};if(typeofArrayBuffer!=="undefined"&&einstanceofArrayBuffer)returnNb(newUint8Array(e),(t=oe(t),t.type="array",t));if(typeofUi