r.e.r=r.s.r;returnr}for(t=0;a!=i;++a){if((n=e.charCodeAt(a)-64)<1||n>26)break;t=26*t+n}r.e.c=--t;for(t=0;a!=i;++a){if((n=e.charCodeAt(a)-48)<0||n>9)break;t=10*t+n}r.e.r=--t;returnr}functionEt(e,r){vart=e.t=="d"&&rinstanceofDate;if(e.z!=null)try{returne.w=D.format(e.z,t?ee(r):r)}catch(a){}try{returne.w=D.format((e.XF||{}).numFmtId||(t?14:0),t?ee(r):r)}catch(a){return""+r}}functionSt(e,r,t){if(e==null||e.t==null||e.t=="z")return"";if(e.w!==undefined)returne.w;if(e.t=="d"&&!e.z&&t&&t.dateNF)e.z=t.dateNF;if(r==undefined)returnEt(e,e.v);returnEt(e,r)}function_t(e,r){vart=r&&r.sheet?r.sheet:"Sheet1";vara={};a[t]=e;return{SheetNames:[t],Sheets:a}}functionCt(e,r,t){vara=t||{};varn=e?Array.isArray(e):a.dense;if(m!=null&&n==null)n=m;vari=e||(n?[]:{});vars=0,f=0;if(i&&a.origin!=null){if(typeofa.origin=="number")s=a.origin;else{varo=typeofa.origin=="string"?mt(a.origin):a.origin;s=o.r;f=o.c}if(!i["!ref"])i["!ref"]="A1:A1"}varl={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){varc=kt(i["!ref"]);l.s.c=c.s.c;l.s.r=c.s.r;l.e.c=Math.max(l.e.c,c.e.c);l.e.r=Math.max(l.e.r,c.e.r);if(s==-1)l.e.r=s=c.e.r+1}for(varu=0;u!=r.length;++u){if(!r[u])continue;if(!Array.isArray(r[u]))thrownewError("aoa_to_sheet expects an array of arrays");for(varh=0;h!=r[u].length;++h){if(typeofr[u][h]==="undefined")continue;vard={v:r[u][h]};varv=s+u,p=f+h;if(l.s.r>v)l.s.r=v;if(l.s.c>p)l.s.c=p;if(l.e.r<v)l.e.r=v;if(l.e.c<p)l.e.c=p;if(r[u][h]&&typeofr[u][h]==="object"&&!Array.isArray(r[u][h])&&!(r[u][h]instanceofDate))d=r[u][h];else{if(Array.isArray(d.v)){d.f=r[u][h][1];d.v=d.v[0]}if(d.v===null){if(d.f)d.t="n";elseif(!a.sheetStubs)continue;elsed.t="z"}elseif(typeofd.v==="number")d.t="n";elseif(typeofd.v==="boolean")d.t="b";elseif(d.vinstanceofDate){d.z=a.dateNF||D._table[14];if(a.cellDates){d.t="d";d.w=D.format(d.z,ee(d.v))}else{d.t="n";d.v=ee(d.v);d.w=D.format(d.z,d.v)}}elsed.t="s"}if(n){if(!i[v])i[v]=[];if(i[v][p]&&i[v][p].z)d.z=i[v][p].z;i[v][p]=d}else{varb=bt({c:p,r:v});if(i[b]&&i[b].z)d.z=i[b].z;i[b]=d}}}if(l.s.c<1e7)i["!ref"]=wt(l);returni}functionBt(e,r){returnCt(null,e,r)}functionTt(e,r){if(!r)r=Jr(4);r._W(4,e);returnr}functionyt(e){varr=e._R(4);returnr===0?"":e._R(r,"dbcs")}functionxt(e,r){vart=false;if(r==null){t=true;r=Jr(4+2*e.length)}r._W(4,e.length);if(e.length>0)r._W(0,e,"dbcs");returnt?r.slice(0,r.l):r}functionAt(e){return{ich:e._R(2),ifnt:e._R(2)}}functionIt(e,r){if(!r)r=Jr(4);r._W(2,e.ich||0);r._W(2,e.ifnt||0);returnr}functionRt(e,r){vart=e.l;vara=e._R(1);varn=yt(e);vari=[];vars={t:n,h:n};if((a&1)!==0){varf=e._R(4);for(varo=0;o!=f;++o)i.push(At(e));s.r=i}elses.r=[{ich:0,ifnt:0}];e.l=t+r;returns}functionOt(e,r){vart=false;if(r==null){t=true;r=Jr(15+4*e.t.length)}r._W(1,0);xt(e.t,r);returnt?r.slice(0,r.l):r}varDt=Rt;functionFt(e,r){vart=false;if(r==null){t=true;r=Jr(23+4*e.t.length)}r._W(1,1);xt(e.t,r);r._W(4,1);It({ich:0,ifnt:0},r);returnt?r.slice(0,r.l):r}functionPt(e){varr=e._R(4);vart=e._R(2);t+=e._R(1)<<16;e.l++;return{c:r,iStyleRef:t}}functionNt(e,r){if(r==null)r=Jr(8);r._W(-4,e.c);r._W(3,e.iStyleRef||e.s);r._W(1,0);returnr}functionLt(e){varr=e._R(2);r+=e._R(1)<<16;e.l++;return{c:-1,iStyleRef:r}}functionMt(e,r){if(r==null)r=Jr(4);r._W(3,e.iStyleRef||e.s);r._W(1,0);returnr}varUt=yt;varzt=xt;functionHt(e){varr=e._R(4);returnr===0||r===4294967295?"":e._R(r,"dbcs")}functionWt(e,r){vart=false;if(r==null){t=true;r=Jr(127)}r._W(4,e.length>0?e.length:4294967295);if(e.length>0)r._W(0,e,"dbcs");returnt?r.slice(0,r.l):r}varVt=yt;varXt=Ht;varGt=Wt;functionjt(e){varr=e.slice(e.l,e.l+4);vart=r[0]&1,a=r[0]&2;e.l+=4;r[0]&=252;varn=a===0?Fr([0,0,0,0,r[0],r[1],r[2],r[3]],0):Hr(r,0)>>2;returnt?n/100:n}functionKt(e,r){if(r==null)r=Jr(4);vart=0,a=0,n=e*100;if(e==(e|0)&&e>=-(1<<29)&&e<1<<29){a=1}elseif(n==(n|0)&&n>=-(1<<29)&&n<1<<29){a=1;t=1}if(a)r._W(-4,((t?n:e)<<2)+(t+2));elsethrownewError("unsupported RkNumber "+e)}function$t(e){varr={s:{},e:{}};r.s.r=e._R(4);r.e.r=e._R(4);r.s.c=e._R(4);r.e.c=e._R(4);returnr}functionYt(e,r){if(!r)r=Jr(16);r._W(4,e.s.r);r._W(4,
};vara=function(e,r,t){vara=r.charCodeAt(0)-32<<4|t.charCodeAt(0)-48;returna==59?e:p(a)};e["|"]=254;functionn(e,r){switch(r.type){case"base64":returni(g.decode(e),r);case"binary":returni(e,r);case"buffer":returni(e.toString("binary"),r);case"array":returni(le(e),r);}thrownewError("Unrecognized type "+r.type)}functioni(e,n){vari=e.split(/[\n\r]+/),s=-1,f=-1,l=0,c=0,u=[];varh=[];vard=null;varv={},p=[],m=[],b=[];varg=0,w;if(+n.codepage>=0)o(+n.codepage);for(;l!==i.length;++l){g=0;vark=i[l].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,a).replace(r,t);varE=k.replace(/;;/g,"\0").split(";").map(function(e){returne.replace(/\u0000/g,";")});varS=E[0],_;if(k.length>0)switch(S){case"ID":break;case"E":break;case"B":break;case"O":break;case"P":if(E[1].charAt(0)=="P")h.push(k.slice(3).replace(/;;/g,";"));break;case"C":varC=false,B=false,T=false,y=false,x=-1,A=-1;for(c=1;c<E.length;++c)switch(E[c].charAt(0)){case"A":break;case"X":f=parseInt(E[c].slice(1))-1;B=true;break;case"Y":s=parseInt(E[c].slice(1))-1;if(!B)f=0;for(w=u.length;w<=s;++w)u[w]=[];break;case"K":_=E[c].slice(1);if(_.charAt(0)==='"')_=_.slice(1,_.length-1);elseif(_==="TRUE")_=true;elseif(_==="FALSE")_=false;elseif(!isNaN(he(_))){_=he(_);if(d!==null&&D.is_date(d))_=ne(_)}elseif(!isNaN(de(_).getDate())){_=oe(_)}if(typeofcptable!=="undefined"&&typeof_=="string"&&(n||{}).type!="string"&&(n||{}).codepage)_=cptable.utils.decode(n.codepage,_);C=true;break;case"E":y=true;varI=fc(E[c].slice(1),{r:s,c:f});u[s][f]=[u[s][f],I];break;case"S":T=true;u[s][f]=[u[s][f],"S5S"];break;case"G":break;case"R":x=parseInt(E[c].slice(1))-1;break;case"C":A=parseInt(E[c].slice(1))-1;break;default:if(n&&n.WTF)thrownewError("SYLK bad record "+k);}if(C){if(u[s][f]&&u[s][f].length==2)u[s][f][0]=_;elseu[s][f]=_;d=null}if(T){if(y)thrownewError("SYLK shared formula cannot have own formula");varR=x>-1&&u[x][A];if(!R||!R[1])thrownewError("SYLK shared formula cannot find base");u[s][f][1]=cc(R[1],{r:s-x,c:f-A})}break;case"F":varO=0;for(c=1;c<E.length;++c)switch(E[c].charAt(0)){case"X":f=parseInt(E[c].slice(1))-1;++O;break;case"Y":s=parseInt(E[c].slice(1))-1;for(w=u.length;w<=s;++w)u[w]=[];break;case"M":g=parseInt(E[c].slice(1))/20;break;case"F":break;case"G":break;case"P":d=h[parseInt(E[c].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":b=E[c].slice(1).split(" ");for(w=parseInt(b[0],10);w<=parseInt(b[1],10);++w){g=parseInt(b[2],10);m[w-1]=g===0?{hidden:true}:{wch:g};Bo(m[w-1])}break;case"C":f=parseInt(E[c].slice(1))-1;if(!m[f])m[f]={};break;case"R":s=parseInt(E[c].slice(1))-1;if(!p[s])p[s]={};if(g>0){p[s].hpt=g;p[s].hpx=Ao(g)}elseif(g===0)p[s].hidden=true;break;default:if(n&&n.WTF)thrownewError("SYLK bad record "+k);}if(O<1)d=null;break;default:if(n&&n.WTF)thrownewError("SYLK bad record "+k);}}if(p.length>0)v["!rows"]=p;if(m.length>0)v["!cols"]=m;if(n&&n.sheetRows)u=u.slice(0,n.sheetRows);return[u,v]}functions(e,r){vart=n(e,r);vara=t[0],i=t[1];vars=Bt(a,r);K(i).forEach(function(e){s[e]=i[e]});returns}functionf(e,r){return_t(s(e,r),r)}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"+lc(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,"")+'"';break;}returnn}functionc(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=ko(r.width);if(typeofr.wpx=="number")r.wch=Eo(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*xo(r.hpx)+";";if(a.length>2)e.push(a+"R"+(t+1))})}functionh(e,r){vart=["ID;PWXL;N;E"],a=[];varn=kt(e["!ref"]),i;vars=Array.isArray(e);varf="\r\n";t.push("P;PGeneral");t.push("F;P0;DG0G8;M255");if(e["!cols"])c(t,e["!cols"]);if(e["!rows"])u(t,e["!rows"]);t.push("B;Y"+(n.e.r-n.s.r+1)+";X"+(n.e.c-n.s.c+1)+";D"+[n.s.c,n.s.r,n.e.c,n.e.r]
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")};}})}functionOo(e,r,t,a){r.Fills=[];varn={};vari=false;(e[0].match(Re)||[]).forEach(function(e){vart=Fe(e);switch(Pe(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>":r.Fills.push(n);n={};break;case"<patternFill":;case"<patternFill>":if(t.patternType)n.patternType=t.patternType;break;case"<patternFill/>":;case"</patternFill>":break;case"<bgColor":if(!n.bgColor)n.bgColor={};if(t.indexed)n.bgColor.indexed=parseInt(t.indexed,10);if(t.theme)n.bgColor.theme=parseInt(t.theme,10);if(t.tint)n.bgColor.tint=parseFloat(t.tint);if(t.rgb)n.bgColor.rgb=t.rgb.slice(-6);break;case"<bgColor/>":;case"</bgColor>":break;case"<fgColor":if(!n.fgColor)n.fgColor={};if(t.theme)n.fgColor.theme=parseInt(t.theme,10);if(t.tint)n.fgColor.tint=parseFloat(t.tint);if(t.rgb!=null)n.fgColor.rgb=t.rgb.slice(-6);break;case"<fgColor/>":;case"</fgColor>":break;case"<stop":;case"<stop/>":break;case"</stop>":break;case"<color":;case"<color/>":break;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 fills")};}})}functionDo(e,r,t,a){r.Fonts=[];varn={};vars=false;(e[0].match(Re)||[]).forEach(function(e){varf=Fe(e);switch(Pe(f[0])){case"<fonts":;case"<fonts>":;case"</fonts>":break;case"<font":;case"<font>":break;case"</font>":;case"<font/>":r.Fonts.push(n);n={};break;case"<name":if(f.val)n.name=Ye(f.val);break;case"<name/>":;case"</name>":break;case"<b":n.bold=f.val?$e(f.val):1;break;case"<b/>":n.bold=1;break;case"<i":n.italic=f.val?$e(f.val):1;break;case"<i/>":n.italic=1;break;case"<u":switch(f.val){case"none":n.underline=0;break;case"single":n.underline=1;break;case"double":n.underline=2;break;case"singleAccounting":n.underline=33;break;case"doubleAccounting":n.underline=34;break;}break;case"<u/>":n.underline=1;break;case"<strike":n.strike=f.val?$e(f.val):1;break;case"<strike/>":n.strike=1;break;case"<outline":n.outline=f.val?$e(f.val):1;break;case"<outline/>":n.outline=1;break;case"<shadow":n.shadow=f.val?$e(f.val):1;break;case"<shadow/>":n.shadow=1;break;case"<condense":n.condense=f.val?$e(f.val):1;break;case"<condense/>":n.condense=1;break;case"<extend":n.extend=f.val?$e(f.val):1;break;case"<extend/>":n.extend=1;break;case"<sz":if(f.val)n.sz=+f.val;break;case"<sz/>":;case"</sz>":break;case"<vertAlign":if(f.val)n.vertAlign=f.val;break;case"<vertAlign/>":;case"</vertAlign>":break;case"<family":if(f.val)n.family=parseInt(f.val,10);break;case"<family/>":;case"</family>":break;case"<scheme":if(f.val)n.scheme=f.val;break;case"<scheme/>":;case"</scheme>":break;case"<charset":if(f.val=="1")break;f.codepage=i[parseInt(f.val,10)];break;case"<color":if(!n.color)n.color={};if(f.auto)n.color.auto=$e(f.auto);if(f.rgb)n.color.rgb=f.rgb.slice(-6);elseif(f.indexed){n.color.index=parseInt(f.indexed,10);varo=Aa[n.color.index];if(n.color.index==81)o=Aa[1];if(!o)thrownewError(e);n.color.rgb=o[0].toString(16)+o[1].toString(16)+o[2].toString(16)}elseif(f.theme){n.color.theme=parseInt(f.theme,10);if(f.tint)n.color.tint=parseFloat(f.tint);if(f.theme&&t.themeElements&&t.themeElements.clrScheme){n.color.rgb=po(t.themeElements.clrScheme[n.color.theme].rgb,n.color.tint||0)}}break;case"<color/>":;case"</color>":break;case"<AlternateContent":s=true;break;case"</AlternateContent>":s=false;break;case"<extLst":;case"<extLst>":;case"</extLst>":break;case"<ext":s=true;break;case"</ext>":s=false;break;default:if(a&&a.WTF){if(!s)thrownewError("unrecognized "+f[0]+" in fonts")};}})}functionFo(e,r,t){r.NumberFmt=[];vara=K(D._table);for(varn=0;n<a.length;++n)r.NumberFmt[a[n]]=D._table[a[n]];vari=e[0].match(Re);if(!i)return;for(n=0;n<i.length;++n){vars=Fe(i[n]);switch(Pe(s[0])){case"<numFmts":
t.push(n);break;case3072:break;case35:i=true;break;case36:i=false;break;case37:break;case38:break;default:if((f||"").indexOf("Begin")>0){}elseif((f||"").indexOf("End")>0){}elseif(!i||r.WTF)thrownewError("Unexpected record "+o+" "+f);}});returnt}functionQl(e){varr=qr();vart=[];et(r,"BrtBeginComments");et(r,"BrtBeginCommentAuthors");e.forEach(function(e){e[1].forEach(function(e){if(t.indexOf(e.a)>-1)return;t.push(e.a.slice(0,54));et(r,"BrtCommentAuthor",Zl(e.a))})});et(r,"BrtEndCommentAuthors");et(r,"BrtBeginCommentList");e.forEach(function(e){e[1].forEach(function(a){a.iauthor=t.indexOf(a.a);varn={s:mt(e[0]),e:mt(e[0])};et(r,"BrtBeginComment",$l([n,a]));if(a.t&&a.t.length>0)et(r,"BrtCommentText",Ft(a));et(r,"BrtEndComment");deletea.iauthor})});et(r,"BrtEndCommentList");et(r,"BrtEndComments");returnr.end()}varql="application/vnd.ms-office.vbaProject";functionec(e){varr=W.utils.cfb_new({root:"R"});e.FullPaths.forEach(function(t,a){if(t.slice(-1)==="/"||!t.match(/_VBA_PROJECT_CUR/))return;varn=t.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");W.utils.cfb_add(r,n,e.FileIndex[a].content)});returnW.write(r)}functionrc(e,r){r.FullPaths.forEach(function(t,a){if(a==0)return;varn=t.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");if(n.slice(-1)!=="/")W.utils.cfb_add(e,n,r.FileIndex[a].content)})}vartc=["xlsb","xlsm","xlam","biff8","xla"];za.DS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet";za.MS="http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet";functionac(){return{"!type":"dialog"}}functionnc(){return{"!type":"dialog"}}functionic(){return{"!type":"macro"}}functionsc(){return{"!type":"macro"}}varfc=function(){vare=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g;varr={r:0,c:0};functiont(e,t,a,n){vari=false,s=false;if(a.length==0)s=true;elseif(a.charAt(0)=="["){s=true;a=a.slice(1,-1)}if(n.length==0)i=true;elseif(n.charAt(0)=="["){i=true;n=n.slice(1,-1)}varf=a.length>0?parseInt(a,10)|0:0,o=n.length>0?parseInt(n,10)|0:0;if(i)o+=r.c;else--o;if(s)f+=r.r;else--f;returnt+(i?"":"$")+ht(o)+(s?"":"$")+ot(f)}returnfunctiona(n,i){r=i;returnn.replace(e,t)}}();varoc=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g;varlc=function(){returnfunctione(r,t){returnr.replace(oc,function(e,r,a,n,i,s){varf=ut(n)-(a?0:t.c);varo=ft(s)-(i?0:t.r);varl=o==0?"":!i?"["+o+"]":o+1;varc=f==0?"":!a?"["+f+"]":f+1;returnr+"R"+l+"C"+c})}}();functioncc(e,r){returne.replace(oc,function(e,t,a,n,i,s){returnt+(a=="$"?a+n:ht(ut(n)+r.c))+(i=="$"?i+s:ot(ft(s)+r.r))})}functionuc(e,r,t){vara=gt(r),n=a.s,i=mt(t);vars={r:i.r-n.r,c:i.c-n.c};returncc(e,s)}functionhc(e){if(e.length==1)returnfalse;returntrue}functiondc(e){returne.replace(/_xlfn\./g,"")}functionvc(e){e.l+=1;return}functionpc(e,r){vart=e._R(r==1?1:2);return[t&16383,t>>14&1,t>>15&1]}functionmc(e,r,t){vara=2;if(t){if(t.biff>=2&&t.biff<=5)returnbc(e,r,t);elseif(t.biff==12)a=4}varn=e._R(a),i=e._R(a);vars=pc(e,2);varf=pc(e,2);return{s:{r:n,c:s[0],cRel:s[1],rRel:s[2]},e:{r:i,c:f[0],cRel:f[1],rRel:f[2]}}}functionbc(e){varr=pc(e,2),t=pc(e,2);vara=e._R(1);varn=e._R(1);return{s:{r:r[0],c:a,cRel:r[1],rRel:r[2]},e:{r:t[0],c:n,cRel:t[1],rRel:t[2]}}}functiongc(e,r,t){if(t.biff<8)returnbc(e,r,t);vara=e._R(t.biff==12?4:2),n=e._R(t.biff==12?4:2);vari=pc(e,2);vars=pc(e,2);return{s:{r:a,c:i[0],cRel:i[1],rRel:i[2]},e:{r:n,c:s[0],cRel:s[1],rRel:s[2]}}}functionwc(e,r,t){if(t&&t.biff>=2&&t.biff<=5)returnkc(e,r,t);vara=e._R(t&&t.biff==12?4:2);varn=pc(e,2);return{r:a,c:n[0],cRel:n[1],rRel:n[2]}}functionkc(e){varr=pc(e,2);vart=e._R(1);return{r:r[0],c:t,cRel:r[1],rRel:r[2]}}functionEc(e){varr=e._R(2);vart=e._R(2);return{r:r,c:t&255,fQuoted:!!(t&16384),cRel:t>>15,rRel:t>>15}}functionSc(e,r,t){vara=t&&t.biff?t.biff:8;if(a>=2&&a<=5)return_c(e,r,t);varn=e._R(a>=12?4:2);vari=e._R(2);vars=(i&16384)>>14,f=(i&32768)>>15;i&=16383;if(f==1)whi
break;case35:h=true;break;case36:h=false;break;case37:u.push(r);h=true;break;case38:u.pop();h=false;break;default:if((r||"").indexOf("Begin")>0){}elseif((r||"").indexOf("End")>0){}elseif(!h||f.WTF)thrownewError("Unexpected record "+m+" "+r);}},f);deletef.supbooks;deletef["!row"];if(!o["!ref"]&&(c.s.r<2e6||l&&(l.e.r>0||l.e.c>0||l.s.r>0||l.s.c>0)))o["!ref"]=wt(l||c);if(f.sheetRows&&o["!ref"]){varP=kt(o["!ref"]);if(f.sheetRows<=+P.e.r){P.e.r=f.sheetRows-1;if(P.e.r>c.e.r)P.e.r=c.e.r;if(P.e.r<P.s.r)P.s.r=P.e.r;if(P.e.c>c.e.c)P.e.c=c.e.c;if(P.e.c<P.s.c)P.s.c=P.e.c;o["!fullref"]=o["!ref"];o["!ref"]=wt(P)}}if(C.length>0)o["!merges"]=C;if(R.length>0)o["!cols"]=R;if(O.length>0)o["!rows"]=O;returno}functionav(e,r,t,a,n,i,s){if(r.v===undefined)returnfalse;varf="";switch(r.t){case"b":f=r.v?"1":"0";break;case"d":r=ce(r);r.z=r.z||D._table[14];r.v=ee(oe(r.v));r.t="n";break;case"n":;case"e":f=""+r.v;break;default:f=r.v;break;}varo={r:t,c:a};o.s=bh(n.cellXfs,r,n);if(r.l)i["!links"].push([bt(o),r.l]);if(r.c)i["!comments"].push([bt(o),r.c]);switch(r.t){case"s":;case"str":if(n.bookSST){f=vh(n.Strings,r.v,n.revStrings);o.t="s";o.v=f;if(s)et(e,"BrtShortIsst",Ed(r,o));elseet(e,"BrtCellIsst",wd(r,o))}else{o.t="str";if(s)et(e,"BrtShortSt",Dd(r,o));elseet(e,"BrtCellSt",Rd(r,o))}returntrue;case"n":if(r.v==(r.v|0)&&r.v>-1e3&&r.v<1e3){if(s)et(e,"BrtShortRk",Ad(r,o));elseet(e,"BrtCellRk",yd(r,o))}else{if(s)et(e,"BrtShortReal",Bd(r,o));elseet(e,"BrtCellReal",_d(r,o))}returntrue;case"b":o.t="b";if(s)et(e,"BrtShortBool",dd(r,o));elseet(e,"BrtCellBool",ud(r,o));returntrue;case"e":o.t="e";if(s)et(e,"BrtShortError",bd(r,o));elseet(e,"BrtCellError",pd(r,o));returntrue;}if(s)et(e,"BrtShortBlank",ld(r,o));elseet(e,"BrtCellBlank",fd(r,o));returntrue}functionnv(e,r,t,a){varn=kt(r["!ref"]||"A1"),i,s="",f=[];et(e,"BrtBeginSheetData");varo=Array.isArray(r);varl=n.e.r;if(r["!rows"])l=Math.max(n.e.r,r["!rows"].length-1);for(varc=n.s.r;c<=l;++c){s=ot(c);ed(e,r,n,c);varu=false;if(c<=n.e.r)for(varh=n.s.c;h<=n.e.c;++h){if(c===n.s.r)f[h]=ht(h);i=f[h]+s;vard=o?(r[c]||[])[h]:r[i];if(!d){u=false;continue}u=av(e,d,c,h,a,r,u)}}et(e,"BrtEndSheetData")}functioniv(e,r){if(!r||!r["!merges"])return;et(e,"BrtBeginMergeCells",zd(r["!merges"].length));r["!merges"].forEach(function(r){et(e,"BrtMergeCell",Ud(r))});et(e,"BrtEndMergeCells")}functionsv(e,r){if(!r||!r["!cols"])return;et(e,"BrtBeginColInfos");r["!cols"].forEach(function(r,t){if(r)et(e,"BrtColInfo",jd(t,r))});et(e,"BrtEndColInfos")}functionfv(e,r){if(!r||!r["!ref"])return;et(e,"BrtBeginCellIgnoreECs");et(e,"BrtCellIgnoreEC",Qd(kt(r["!ref"])));et(e,"BrtEndCellIgnoreECs")}functionov(e,r,t){r["!links"].forEach(function(r){if(!r[1].Target)return;vara=ja(t,-1,r[1].Target.replace(/#.*$/,""),za.HLINK);et(e,"BrtHLink",Wd(r,a))});deleter["!links"]}functionlv(e,r,t,a){if(r["!comments"].length>0){varn=ja(a,-1,"../drawings/vmlDrawing"+(t+1)+".vml",za.VML);et(e,"BrtLegacyDrawing",Gt("rId"+n));r["!legacy"]=n}}functioncv(e,r,t,a){if(!r["!autofilter"])return;varn=r["!autofilter"];vari=typeofn.ref==="string"?n.ref:wt(n.ref);if(!t.Workbook)t.Workbook={Sheets:[]};if(!t.Workbook.Names)t.Workbook.Names=[];vars=t.Workbook.Names;varf=gt(i);if(f.s.r==f.e.r){f.e.r=gt(r["!ref"]).e.r;i=wt(f)}for(varo=0;o<s.length;++o){varl=s[o];if(l.Name!="_xlnm._FilterDatabase")continue;if(l.Sheet!=a)continue;l.Ref="'"+t.SheetNames[a]+"'!"+i;break}if(o==s.length)s.push({Name:"_xlnm._FilterDatabase",Sheet:a,Ref:"'"+t.SheetNames[a]+"'!"+i});et(e,"BrtBeginAFilter",Jt(kt(i)));et(e,"BrtEndAFilter")}functionuv(e,r,t){et(e,"BrtBeginWsViews");{et(e,"BrtBeginWsView",Jd(r,t));et(e,"BrtEndWsView")}et(e,"BrtEndWsViews")}functionhv(){}functiondv(e,r){if(!r["!protect"])return;et(e,"BrtSheetProtection",qd(r["!protect"]))}functionvv(e,r,t,a){varn=qr();vari=t.SheetNames[e],s=t.Sheets[i]||{};varf=i;try{if(t&&t.Workbook)f=t.Workbook.Sheets[e].CodeName||f}catch(o){}varl=kt(s["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(r.WTF)thrownewError("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e
return;case"b":;case"e":rm(e,5,nm(t,a,r.v,r.t));return;case"s":;case"str":rm(e,4,im(t,a,r.v));return;}rm(e,1,am(null,t,a))}functionfm(e,r,t,a){varn=Array.isArray(r);vari=kt(r["!ref"]||"A1"),s,f="",o=[];if(i.e.c>255||i.e.r>16383){if(a.WTF)thrownewError("Range "+(r["!ref"]||"A1")+" exceeds format limit A1:IV16384");i.e.c=Math.min(i.e.c,255);i.e.r=Math.min(i.e.c,16383);s=wt(i)}for(varl=i.s.r;l<=i.e.r;++l){f=ot(l);for(varc=i.s.c;c<=i.e.c;++c){if(l===i.s.r)o[c]=ht(c);s=o[c]+f;varu=n?(r[l]||[])[c]:r[s];if(!u)continue;sm(e,u,l,c,a)}}}functionom(e,r){vart=r||{};if(m!=null&&t.dense==null)t.dense=m;vara=qr();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);rm(a,9,Pi(e,16,t));fm(a,e.Sheets[e.SheetNames[n]],n,t,e);rm(a,10);returna.end()}functionlm(e,r,t){rm(e,"Font",rs({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},t))}functioncm(e,r,t){if(!r)return;[[5,8],[23,26],[41,44],[50,392]].forEach(function(a){for(varn=a[0];n<=a[1];++n)if(r[n]!=null)rm(e,"Format",fs(n,r[n],t))})}functionum(e,r){vart=Jr(19);t._W(4,2151);t._W(4,0);t._W(4,0);t._W(2,3);t._W(1,1);t._W(4,0);rm(e,"FeatHdr",t);t=Jr(39);t._W(4,2152);t._W(4,0);t._W(4,0);t._W(2,3);t._W(1,0);t._W(4,0);t._W(2,1);t._W(4,4);t._W(2,0);Bi(kt(r["!ref"]||"A1"),t);t._W(4,4);rm(e,"Feat",t)}functionhm(e,r){for(vart=0;t<16;++t)rm(e,"XF",ms({numFmtId:0,style:true},0,r));r.cellXfs.forEach(function(t){rm(e,"XF",ms(t,0,r))})}functiondm(e,r){for(vart=0;t<r["!links"].length;++t){vara=r["!links"][t];rm(e,"HLink",Vs(a));if(a[1].Tooltip)rm(e,"HLinkTooltip",Gs(a))}deleter["!links"]}functionvm(e,r,t){if(!r)return;vara=0;r.forEach(function(r,t){if(++a<=256&&r){rm(e,"ColInfo",Qs(ph(t,r),t))}})}functionpm(e,r,t,a,n){vari=16+bh(n.cellXfs,r,n);if(r.v==null&&!r.bf){rm(e,"Blank",gi(t,a,i));return}if(r.bf)rm(e,"Formula",Ju(r,t,a,n,i));elseswitch(r.t){case"d":;case"n":vars=r.t=="d"?ee(oe(r.v)):r.v;rm(e,"Number",Ss(t,a,s,i,n));break;case"b":;case"e":rm(e,517,ks(t,a,r.v,i,n,r.t));break;case"s":;case"str":if(n.bookSST){varf=vh(n.Strings,r.v,n.revStrings);rm(e,"LabelSst",as(t,a,f,i,n))}elserm(e,"Label",is(t,a,r.v,i,n));break;default:rm(e,"Blank",gi(t,a,i));}}functionmm(e,r,t){vara=qr();varn=t.SheetNames[e],i=t.Sheets[n]||{};vars=(t||{}).Workbook||{};varf=(s.Sheets||[])[e]||{};varo=Array.isArray(i);varl=r.biff==8;varc,u="",h=[];vard=kt(i["!ref"]||"A1");varv=l?65536:16384;if(d.e.c>255||d.e.r>=v){if(r.WTF)thrownewError("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");d.e.c=Math.min(d.e.c,255);d.e.r=Math.min(d.e.c,v-1)}rm(a,2057,Pi(t,16,r));rm(a,"CalcMode",Jn(1));rm(a,"CalcCount",Jn(100));rm(a,"CalcRefMode",Yn(true));rm(a,"CalcIter",Yn(false));rm(a,"CalcDelta",qt(.001));rm(a,"CalcSaveRecalc",Yn(true));rm(a,"PrintRowCol",Yn(false));rm(a,"PrintGrid",Yn(false));rm(a,"GridSet",Jn(1));rm(a,"Guts",gs([0,0]));rm(a,"HCenter",Yn(false));rm(a,"VCenter",Yn(false));if(l)vm(a,i["!cols"],i);rm(a,512,cs(d,r));if(l)i["!links"]=[];for(varp=d.s.r;p<=d.e.r;++p){u=ot(p);for(varm=d.s.c;m<=d.e.c;++m){if(p===d.s.r)h[m]=ht(m);c=h[m]+u;varb=o?(i[p]||[])[m]:i[c];if(!b)continue;pm(a,b,p,m,r);if(l&&b.l)i["!links"].push([c,b.l])}}varg=f.CodeName||f.name||n;if(l)rm(a,"Window2",Qi((s.Views||[])[0]));if(l&&(i["!merges"]||[]).length)rm(a,"MergeCells",Ls(i["!merges"]));if(l)dm(a,i);rm(a,"CodeName",fi(g,r));if(l)um(a,i);rm(a,"EOF");returna.end()}functionbm(e,r,t){vara=qr();varn=(e||{}).Workbook||{};vari=n.Sheets||[];vars=n.WBProps||{};varf=t.biff==8,o=t.biff==5;rm(a,2057,Pi(e,5,t));if(t.bookType=="xla")rm(a,"Addin");rm(a,"InterfaceHdr",f?Jn(1200):null);rm(a,"Mms",jn(2));if(o)rm(a,"ToolbarHdr");if(o)rm(a,"ToolbarEnd");rm(a,"InterfaceEnd");rm(a,"WriteAccess",Mi("SheetJS",t));rm(a,"CodePage",Jn(f?1200:1252));if(f)rm(a,"DSF",Jn(0));if(f)rm(a,"Excel9File");rm(a,"RRTabId",rf(e.SheetNames.length));if(f&&e.vbaraw)rm(a,"ObProj");if(f&&e.vbaraw){varl=s.CodeName||"ThisWorkbook";rm(a,"CodeName",fi(l,t))}rm(a,"BuiltInFnGroupCount",Jn(17));rm(a,"WinProtect",Yn(false));rm(a,