while(a.slice(l*3,l*3+3)=="../"||a.slice(l*3,l*3+3)=="..\\")++l;r._W(2,l);r._W(4,a.length-3*l+1);for(t=0;t<a.length-3*l;++t)r._W(1,a.charCodeAt(t+3*l)&255);r._W(1,0);r._W(2,65535);r._W(2,57005);for(t=0;t<6;++t)r._W(4,0)}returnr.slice(0,r.l)}functionpi(e){varr=e._R(1),t=e._R(1),a=e._R(1),n=e._R(1);return[r,t,a,n]}functionbi(e,r){vart=pi(e,r);t[3]=0;returnt}functionmi(e){varr=e._R(2);vart=e._R(2);vara=e._R(2);return{r:r,c:t,ixfe:a}}functiongi(e,r,t,a){if(!a)a=Qr(6);a._W(2,e);a._W(2,r);a._W(2,t||0);returna}functionwi(e){varr=e._R(2);vart=e._R(2);e.l+=8;return{type:r,flags:t}}functionki(e,r,t){returnr===0?"":ii(e,r,t)}functionEi(e,r,t){vara=t.biff>8?4:2;varn=e._R(a),i=e._R(a,"i"),s=e._R(a,"i");return[n,i,s]}functionSi(e){varr=e._R(2);vart=$t(e);return[r,t]}functionBi(e,r,t){e.l+=4;r-=4;vara=e.l+r;varn=ei(e,r,t);vari=e._R(2);a-=e.l;if(i!==a)thrownewError("Malformed AddinUdf: padding = "+a+" != "+i);e.l+=i;returnn}functionCi(e){varr=e._R(2);vart=e._R(2);vara=e._R(2);varn=e._R(2);return{s:{c:a,r:r},e:{c:n,r:t}}}functionyi(e,r){if(!r)r=Qr(8);r._W(2,e.s.r);r._W(2,e.e.r);r._W(2,e.s.c);r._W(2,e.e.c);returnr}functionTi(e){varr=e._R(2);vart=e._R(2);vara=e._R(1);varn=e._R(1);return{s:{c:a,r:r},e:{c:n,r:t}}}var_i=Ti;functionxi(e){e.l+=4;varr=e._R(2);vart=e._R(2);vara=e._R(2);e.l+=12;return[t,r,a]}functionAi(e){varr={};e.l+=4;e.l+=16;r.fSharedNote=e._R(2);e.l+=4;returnr}functionRi(e){varr={};e.l+=4;e.cf=e._R(2);returnr}functionFi(e){e.l+=2;e.l+=e._R(2)}varIi={0:Fi,4:Fi,5:Fi,6:Fi,7:Ri,8:Fi,9:Fi,10:Fi,11:Fi,12:Fi,13:Ai,14:Fi,15:Fi,16:Fi,17:Fi,18:Fi,19:Fi,20:Fi,21:xi};functionDi(e,r){vart=e.l+r;vara=[];while(e.l<t){varn=e._R(2);e.l-=2;try{a.push(Ii[n](e,t-e.l))}catch(i){e.l=t;returna}}if(e.l!=t)e.l=t;returna}functionPi(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:;case1024:;case768:;case512:;case2:;case7:break;default:if(r>6)thrownewError("Unexpected BIFF Ver "+t.BIFFVer);}e._R(r);returnt}functionOi(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;case"xla":break;default:thrownewError("unsupported BIFF version");}vari=Qr(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}functionNi(e,r){if(r===0)return1200;if(e._R(2)!==1200){}return1200}functionLi(e,r,t){if(t.enc){e.l+=r;return""}vara=e.l;varn=ii(e,0,t);e._R(r+a-e.l);returnn}functionMi(e,r){vart=!r||r.biff==8;vara=Qr(t?112:54);a._W(r.biff==8?2:1,7);if(t)a._W(1,0);a._W(4,859007059);a._W(4,5458548|(t?0:536870912));while(a.l<a.length)a._W(1,t?0:32);returna}functionUi(e,r,t){vara=t&&t.biff==8||r==2?e._R(2):(e.l+=r,0);return{fDialog:a&16,fBelow:a&64,fRight:a&128}}functionWi(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=ei(e,0,t);if(s.length===0)s="Sheet1";return{pos:a,hs:n,dt:i,name:s}}functionHi(e,r){vart=!r||r.biff>=8?2:1;vara=Qr(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");varn=a.slice(0,a.l);n.l=a.l;returnn}functionVi(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(ri(e))}i.Count=a;i.Unique=n;returni}functionXi(e,r){vart=Qr(8);t._W(4,e.Count);t._W(4,e.Unique);vara=[];for(varn=0;n<e.length;++n)a[n]=ti(e[n],r);vari=F([t].concat(a));i.parts=[t.length].concat(a.map(function(e){returne.length}));returni}functionGi(e,r){vart={};t.dsst=e._R(2);e.l+=r-2;returnt}functionzi(e){varr={};r.r=e._R(2);r.c=e._R(2);r.cnt=e._R(2)-r.c;vart=e._R(2);e.l+=4;vara=e._R(1);e.l+=3;if(a&7)r.level=a&7;if(a&32)r.hidden=true;if(a&64)r.hpt=t/20;returnr}functionji(e){varr=wi(e);if(r.type!=2211)thrownewError("Invalid Future Record "+r.type);vart=e._R(4);return
functione(e,r,t,a,n){if(n.raw)r[t][a]=e;elseif(e===""){}elseif(e==="TRUE")r[t][a]=true;elseif(e==="FALSE")r[t][a]=false;elseif(!isNaN(de(e)))r[t][a]=de(e);elseif(!isNaN(ve(e).getDate()))r[t][a]=oe(e);elser[t][a]=e}functionr(r,t){vara=t||{};varn=[];if(!r||r.length===0)returnn;vari=r.split(/[\r\n]/);vars=i.length-1;while(s>=0&&i[s].length===0)--s;varf=10,l=0;varo=0;for(;o<=s;++o){l=i[o].indexOf(" ");if(l==-1)l=i[o].length;elsel++;f=Math.max(f,l)}for(o=0;o<=s;++o){n[o]=[];varc=0;e(i[o].slice(0,f).trim(),n,o,c,a);for(c=1;c<=(i[o].length-f)/10+1;++c)e(i[o].slice(f+(c-1)*10,f+c*10).trim(),n,o,c,a)}if(a.sheetRows)n=n.slice(0,a.sheetRows);returnn}vart={44:",",9:"\t",59:";",124:"|"};vara={44:3,9:2,59:1,124:0};functionn(e){varr={},n=false,i=0,s=0;for(;i<e.length;++i){if((s=e.charCodeAt(i))==34)n=!n;elseif(!n&&sint)r[s]=(r[s]||0)+1}s=[];for(iinr)if(Object.prototype.hasOwnProperty.call(r,i)){s.push([r[i],i])}if(!s.length){r=a;for(iinr)if(Object.prototype.hasOwnProperty.call(r,i)){s.push([r[i],i])}}s.sort(function(e,r){returne[0]-r[0]||a[e[1]]-a[r[1]]});returnt[s.pop()[1]]||44}functioni(e,r){vart=r||{};vara="";if(b!=null&&t.dense==null)t.dense=b;vari=t.dense?[]:{};vars={s:{c:0,r:0},e:{c:0,r:0}};if(e.slice(0,4)=="sep="){if(e.charCodeAt(5)==13&&e.charCodeAt(6)==10){a=e.charAt(4);e=e.slice(7)}elseif(e.charCodeAt(5)==13||e.charCodeAt(5)==10){a=e.charAt(4);e=e.slice(6)}elsea=n(e.slice(0,1024))}elseif(t&&t.FS)a=t.FS;elsea=n(e.slice(0,1024));varf=0,l=0,o=0;varc=0,u=0,h=a.charCodeAt(0),d=false,v=0,p=e.charCodeAt(0);e=e.replace(/\r\n/gm,"\n");varm=t.dateNF!=null?U(t.dateNF):null;functiong(){varr=e.slice(c,u);vara={};if(r.charAt(0)=='"'&&r.charAt(r.length-1)=='"')r=r.slice(1,-1).replace(/""/g,'"');if(r.length===0)a.t="z";elseif(t.raw){a.t="s";a.v=r}elseif(r.trim().length===0){a.t="s";a.v=r}elseif(r.charCodeAt(0)==61){if(r.charCodeAt(1)==34&&r.charCodeAt(r.length-1)==34){a.t="s";a.v=r.slice(2,-1).replace(/""/g,'"')}elseif(hc(r)){a.t="n";a.f=r.slice(1)}else{a.t="s";a.v=r}}elseif(r=="TRUE"){a.t="b";a.v=true}elseif(r=="FALSE"){a.t="b";a.v=false}elseif(!isNaN(o=de(r))){a.t="n";if(t.cellText!==false)a.w=r;a.v=o}elseif(!isNaN(ve(r).getDate())||m&&r.match(m)){a.z=t.dateNF||P._table[14];varn=0;if(m&&r.match(m)){r=W(r,t.dateNF,r.match(m)||[]);n=1}if(t.cellDates){a.t="d";a.v=oe(r,n)}else{a.t="n";a.v=re(oe(r,n))}if(t.cellText!==false)a.w=P.format(a.z,a.vinstanceofDate?re(a.v):a.v);if(!t.cellNF)deletea.z}else{a.t="s";a.v=r}if(a.t=="z"){}elseif(t.dense){if(!i[f])i[f]=[];i[f][l]=a}elsei[gt({c:l,r:f})]=a;c=u+1;p=e.charCodeAt(c);if(s.e.c<l)s.e.c=l;if(s.e.r<f)s.e.r=f;if(v==h)++l;else{l=0;++f;if(t.sheetRows&&t.sheetRows<=f)returntrue}}e:for(;u<e.length;++u)switch(v=e.charCodeAt(u)){case34:if(p===34)d=!d;break;caseh:;case10:;case13:if(!d&&g())breake;break;default:break;}if(u-c>0)g();i["!ref"]=kt(s);returni}functions(e,t){if(!(t&&t.PRN))returni(e,t);if(t.FS)returni(e,t);if(e.slice(0,4)=="sep=")returni(e,t);if(e.indexOf("\t")>=0||e.indexOf(",")>=0||e.indexOf(";")>=0)returni(e,t);returnTt(r(e,t),t)}functionf(e,r){vart="",a=r.type=="string"?[0,0,0,0]:zb(e,r);switch(r.type){case"base64":t=g.decode(e);break;case"binary":t=e;break;case"buffer":if(r.codepage==65001)t=e.toString("utf8");elseif(r.codepage&&typeofcptable!=="undefined")t=cptable.utils.decode(r.codepage,e);elset=w&&Buffer.isBuffer(e)?e.toString("binary"):_(e);break;case"array":t=ce(e);break;case"string":t=e;break;default:thrownewError("Unrecognized type "+r.type);}if(a[0]==239&&a[1]==187&&a[2]==191)t=Je(t.slice(3));elseif(r.type!="string"&&r.type!="buffer"&&r.codepage==65001)t=Je(t);elseif(r.type=="binary"&&typeofcptable!=="undefined"&&r.codepage)t=cptable.utils.decode(r.codepage,cptable.utils.encode(28591,t));if(t.slice(0,19)=="socialcalc:version:")returngf.to_sheet(r.type=="string"?t:Je(t),r);returns(t,r)}functionl(e,r){returnCt(f(e,r),r)}functiono(e){varr=[];vart=Et(e["!ref"]),a;varn=Array.isArray(e);for(vari=t.s.r;i<=t.e.r;++i){vars=[];for(varf=t.s.c;f<=t.e.c;++f){varl=gt({r:i,c:f});a=n?(e[i]||[])[f]:e[l];if(!a
n={};if(t.diagonalUp)n.diagonalUp=Ye(t.diagonalUp);if(t.diagonalDown)n.diagonalDown=Ye(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")};}})}functionFl(e,r,t,a){r.Fills=[];varn={};vari=false;(e[0].match(Ie)||[]).forEach(function(e){vart=Oe(e);switch(Ne(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")};}})}functionIl(e,r,t,a){r.Fonts=[];varn={};vars=false;(e[0].match(Ie)||[]).forEach(function(e){varf=Oe(e);switch(Ne(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=Je(f.val);break;case"<name/>":;case"</name>":break;case"<b":n.bold=f.val?Ye(f.val):1;break;case"<b/>":n.bold=1;break;case"<i":n.italic=f.val?Ye(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?Ye(f.val):1;break;case"<strike/>":n.strike=1;break;case"<outline":n.outline=f.val?Ye(f.val):1;break;case"<outline/>":n.outline=1;break;case"<shadow":n.shadow=f.val?Ye(f.val):1;break;case"<shadow/>":n.shadow=1;break;case"<condense":n.condense=f.val?Ye(f.val):1;break;case"<condense/>":n.condense=1;break;case"<extend":n.extend=f.val?Ye(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=Ye(f.auto);if(f.rgb)n.color.rgb=f.rgb.slice(-6);elseif(f.indexed){n.color.index=parseInt(f.indexe
e[1].forEach(function(a){r.push('<comment ref="'+e[0]+'" authorId="'+t.indexOf(Ve(a.a))+'"><text>');r.push(lr("t",a.t==null?"":Ve(a.t)));r.push("</text></comment>")})});r.push("</commentList>");if(r.length>2){r[r.length]="</comments>";r[1]=r[1].replace("/>",">")}returnr.join("")}function$o(e){varr={};r.iauthor=e._R(4);vart=qt(e,16);r.rfx=t.s;r.ref=gt(t.s);e.l+=16;returnr}functionKo(e,r){if(r==null)r=Qr(36);r._W(4,e[1].iauthor);Qt(e[0],r);r._W(4,0);r._W(4,0);r._W(4,0);r._W(4,0);returnr}varYo=xt;functionJo(e){returnAt(e.slice(0,54))}functionqo(e,r){vart=[];vara=[];varn={};vari=false;Zr(e,functions(e,f,l){switch(l){case632:a.push(e);break;case635:n=e;break;case637:n.t=e.t;n.h=e.h;n.r=e.r;break;case636:n.author=a[n.iauthor];deleten.iauthor;if(r.sheetRows&&n.rfx&&r.sheetRows<=n.rfx.r)break;if(!n.t)n.t="";deleten.rfx;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 "+l+" "+f);}});returnt}functionQo(e){varr=et();vart=[];rt(r,"BrtBeginComments");rt(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));rt(r,"BrtCommentAuthor",Jo(e.a))})});rt(r,"BrtEndCommentAuthors");rt(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])};rt(r,"BrtBeginComment",Ko([n,a]));if(a.t&&a.t.length>0)rt(r,"BrtCommentText",Ot(a));rt(r,"BrtEndComment");deletea.iauthor})});rt(r,"BrtEndCommentList");rt(r,"BrtEndComments");returnr.end()}varZo="application/vnd.ms-office.vbaProject";functionec(e){varr=X.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*/,"");X.utils.cfb_add(r,n,e.FileIndex[a].content)});returnX.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)!=="/")X.utils.cfb_add(e,n,r.FileIndex[a].content)})}vartc=["xlsb","xlsm","xlam","biff8","xla"];Wa.DS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet";Wa.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,l=n.length>0?parseInt(n,10)|0:0;if(i)l+=r.c;else--l;if(s)f+=r.r;else--f;returnt+(i?"":"$")+dt(l)+(s?"":"$")+ot(f)}returnfunctiona(n,i){r=i;returnn.replace(e,t)}}();varlc=/(^|[^._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;varoc=function(){returnfunctione(r,t){returnr.replace(lc,function(e,r,a,n,i,s){varf=ht(n)-(a?0:t.c);varl=lt(s)-(i?0:t.r);varo=l==0?"":!i?"["+l+"]":l+1;varc=f==0?"":!a?"["+f+"]":f+1;returnr+"R"+o+"C"+c})}}();functioncc(e,r){returne.replace(lc,function(e,t,a,n,i,s){returnt+(a=="$"?a+n:dt(ht(n)+r.c))+(i=="$"?i+s:ot(lt(s)+r.r))})}functionuc(e,r,t){vara=wt(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]}functionbc(e,r,t){vara=2;if(t){if(t.biff>=2&&t.biff<=5)returnmc(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]}}}func
ab(e,"Font",rs({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},t))}functionhb(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)ab(e,"Format",fs(n,r[n],t))})}functiondb(e,r){vart=Qr(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);ab(e,"FeatHdr",t);t=Qr(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);yi(Et(r["!ref"]||"A1"),t);t._W(4,4);ab(e,"Feat",t)}functionvb(e,r){for(vart=0;t<16;++t)ab(e,"XF",bs({numFmtId:0,style:true},0,r));r.cellXfs.forEach(function(t){ab(e,"XF",bs(t,0,r))})}functionpb(e,r){for(vart=0;t<r["!links"].length;++t){vara=r["!links"][t];ab(e,"HLink",Xs(a));if(a[1].Tooltip)ab(e,"HLinkTooltip",zs(a))}deleter["!links"]}functionbb(e,r,t){if(!r)return;vara=0;r.forEach(function(r,t){if(++a<=256&&r){ab(e,"ColInfo",Qs(vh(t,r),t))}})}functionmb(e,r,t,a,n){vari=16+bh(n.cellXfs,r,n);if(r.v==null&&!r.bf){ab(e,"Blank",gi(t,a,i));return}if(r.bf)ab(e,"Formula",qu(r,t,a,n,i));elseswitch(r.t){case"d":;case"n":vars=r.t=="d"?re(oe(r.v)):r.v;ab(e,"Number",Ss(t,a,s,i,n));break;case"b":;case"e":ab(e,517,ks(t,a,r.v,i,n,r.t));break;case"s":;case"str":if(n.bookSST){varf=dh(n.Strings,r.v,n.revStrings);ab(e,"LabelSst",as(t,a,f,i,n))}elseab(e,"Label",is(t,a,(r.v||"").slice(0,255),i,n));break;default:ab(e,"Blank",gi(t,a,i));}}functiongb(e,r,t){vara=et();varn=t.SheetNames[e],i=t.Sheets[n]||{};vars=(t||{}).Workbook||{};varf=(s.Sheets||[])[e]||{};varl=Array.isArray(i);varo=r.biff==8;varc,u="",h=[];vard=Et(i["!ref"]||"A1");varv=o?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)}ab(a,2057,Oi(t,16,r));ab(a,"CalcMode",Jn(1));ab(a,"CalcCount",Jn(100));ab(a,"CalcRefMode",Kn(true));ab(a,"CalcIter",Kn(false));ab(a,"CalcDelta",ea(.001));ab(a,"CalcSaveRecalc",Kn(true));ab(a,"PrintRowCol",Kn(false));ab(a,"PrintGrid",Kn(false));ab(a,"GridSet",Jn(1));ab(a,"Guts",gs([0,0]));ab(a,"HCenter",Kn(false));ab(a,"VCenter",Kn(false));if(o)bb(a,i["!cols"],i);ab(a,512,cs(d,r));if(o)i["!links"]=[];for(varp=d.s.r;p<=d.e.r;++p){u=ot(p);for(varb=d.s.c;b<=d.e.c;++b){if(p===d.s.r)h[b]=dt(b);c=h[b]+u;varm=l?(i[p]||[])[b]:i[c];if(!m)continue;mb(a,m,p,b,r);if(o&&m.l)i["!links"].push([c,m.l])}}varg=f.CodeName||f.name||n;if(o)ab(a,"Window2",Qi((s.Views||[])[0]));if(o&&(i["!merges"]||[]).length)ab(a,"MergeCells",Ls(i["!merges"]));if(o)pb(a,i);ab(a,"CodeName",si(g,r));if(o)db(a,i);ab(a,"EOF");returna.end()}functionwb(e,r,t){vara=et();varn=(e||{}).Workbook||{};vari=n.Sheets||[];vars=n.WBProps||{};varf=t.biff==8,l=t.biff==5;ab(a,2057,Oi(e,5,t));if(t.bookType=="xla")ab(a,"Addin");ab(a,"InterfaceHdr",f?Jn(1200):null);ab(a,"Mms",zn(2));if(l)ab(a,"ToolbarHdr");if(l)ab(a,"ToolbarEnd");ab(a,"InterfaceEnd");ab(a,"WriteAccess",Mi("SheetJS",t));ab(a,"CodePage",Jn(f?1200:1252));if(f)ab(a,"DSF",Jn(0));if(f)ab(a,"Excel9File");ab(a,"RRTabId",rf(e.SheetNames.length));if(f&&e.vbaraw)ab(a,"ObProj");if(f&&e.vbaraw){varo=s.CodeName||"ThisWorkbook";ab(a,"CodeName",si(o,t))}ab(a,"BuiltInFnGroupCount",Jn(17));ab(a,"WinProtect",Kn(false));ab(a,"Protect",Kn(false));ab(a,"Password",Jn(0));if(f)ab(a,"Prot4Rev",Kn(false));if(f)ab(a,"Prot4RevPass",Jn(0));ab(a,"Window1",Ji(t));ab(a,"Backup",Kn(false));ab(a,"HideObj",Jn(0));ab(a,"Date1904",Kn(Iv(e)=="true"));ab(a,"CalcPrecision",Kn(true));if(f)ab(a,"RefreshAll",Kn(false));ab(a,"BookBool",Jn(0));ub(a,e,t);hb(a,e.SSF,t);vb(a,t);if(f)ab(a,"UsesELFs",Kn(false));varc=a.end();varu=et();if(f)ab(u,"Country",$s());if(f&&t.Strings)nb(u,"SST",Xi(t.Strings,t));ab(u,"EOF");varh=u.end();vard=et();varv=0,p=0;for(p=0;p<e.SheetNames.length;++p)v+=(f?12:11)+(f?2:1)*e.SheetNames[p].length;varb=c.length+v+h.length;for(p=0;p<e.SheetNames.length;++p){varm=i[p]||{};ab(d,"BoundSheet8",Hi({pos:b,hs:m.Hidden||0,dt:0,name:e.SheetNames[p]},t));b+=r[p].length}varg=d.end();if(v!=g.length)thrownewError("BS8 "+v+" != "+g.length);varw=[];if(c.length)w.push(c);if(g.length)
returna}functionp(e){varr=0,t=e[r]&127;e:if(e[r++]>=128){t|=(e[r]&127)<<7;if(e[r++]<128)breake;t|=(e[r]&127)<<14;if(e[r++]<128)breake;t|=(e[r]&127)<<21;if(e[r++]<128)breake;t|=(e[r]&127)<<28}returnt}functionb(e){varr=[],t=[0];while(t[0]<e.length){vara=t[0];varn=v(e,t);vari=n&7;n=Math.floor(n/8);vars=0;varf;if(n==0)break;switch(i){case0:{varl=t[0];while(e[t[0]++]>=128);f=e.slice(l,t[0])}break;case5:s=4;f=e.slice(t[0],t[0]+s);t[0]+=s;break;case1:s=8;f=e.slice(t[0],t[0]+s);t[0]+=s;break;case2:s=v(e,t);f=e.slice(t[0],t[0]+s);t[0]+=s;break;case3:;case4:;default:thrownewError("PB Type ".concat(i," for Field ").concat(n," at offset ").concat(a));}varo={offset:a,data:f,type:i};if(r[n]==null)r[n]=[o];elser[n].push(o)}returnr}functionm(e,r){if(!e)return[];returne.map(function(e){vart;try{returnr(e.data)}catch(a){varn=(t=a.message)==null?void0:t.match(/at offset (\d+)/);if(n)a.message=a.message.replace(/at offset (\d+)/,"at offset "+(+n[1]+e.offset));throwa}})}functiong(e){varr=[];vart=0;while(t<e.length){vara=e[t++];varn=e[t]|e[t+1]<<8|e[t+2]<<16;t+=3;r.push(w(a,e.slice(t,t+n)));t+=n}if(t!==e.length)thrownewError("data is not a valid framed stream!");returnu(r)}functionw(e,r){if(e!=0)thrownewError("Unexpected Snappy chunk type ".concat(e));vart=[0];vara=v(r,t);varn=[];while(t[0]<r.length){vari=r[t[0]]&3;if(i==0){vars=r[t[0]++]>>2;if(s<60)++s;else{varf=s-59;s=r[t[0]];if(f>1)s|=r[t[0]+1]<<8;if(f>2)s|=r[t[0]+2]<<16;if(f>3)s|=r[t[0]+3]<<24;s>>>=0;s++;t[0]+=f}n.push(r.slice(t[0],t[0]+s));t[0]+=s;continue}else{varl=0,o=0;if(i==1){o=(r[t[0]]>>2&7)+4;l=(r[t[0]++]&224)<<3;l|=r[t[0]++]}else{o=(r[t[0]++]>>2)+1;if(i==2){l=r[t[0]]|r[t[0]+1]<<8;t[0]+=2}else{l=(r[t[0]]|r[t[0]+1]<<8|r[t[0]+2]<<16|r[t[0]+3]<<24)>>>0;t[0]+=4}}n=[u(n)];if(l==0)thrownewError("Invalid offset 0");if(l>n[0].length)thrownewError("Invalid offset beyond length");if(o>=l){n.push(n[0].slice(-l));o-=l;while(o>=n[n.length-1].length){n.push(n[n.length-1]);o-=n[n.length-1].length}}n.push(n[0].slice(-l,-l+o))}}varc=u(n);if(c.length!=a)thrownewError("Unexpected length: ".concat(c.length," != ").concat(a));returnc}functionk(e){varr=[],t=[0];while(t[0]<e.length){vara=v(e,t);varn=b(e.slice(t[0],t[0]+a));t[0]+=a;vari={id:p(n[1][0].data),messages:[]};n[2].forEach(function(r){vara=b(r.data);varn=p(a[3][0].data);i.messages.push({meta:a,data:e.slice(t[0],t[0]+n)});t[0]+=n});r.push(i)}returnr}functionE(e,r,t){vara=o(e);varn=e[e[0]==4?1:2];vari=a.getUint32(4,true);vars=12+h(i&3470)*4;varf=-1,l=-1,c=NaN,u=newDate(2001,0,1);if(i&512){f=a.getUint32(s,true);s+=4}s+=h(i&12288)*4;if(i&16){l=a.getUint32(s,true);s+=4}if(i&32){c=a.getFloat64(s,true);s+=8}if(i&64){u.setTime(u.getTime()+a.getFloat64(s,true)*1e3);s+=8}vard;switch(n){case0:break;case2:d={t:"n",v:c};break;case3:d={t:"s",v:r[l]};break;case5:d={t:"d",v:u};break;case6:d={t:"b",v:c>0};break;case7:d={t:"n",v:c};break;case8:d={t:"e",v:0};break;case9:{if(f>-1)d={t:"s",v:t[f]};elseif(l>-1)d={t:"s",v:r[l]};elseif(!isNaN(c))d={t:"n",v:c};elsethrownewError("Unsupported cell type ".concat(e.slice(0,4)))}break;default:thrownewError("Unsupported cell type ".concat(e.slice(0,4)));}returnd}functionS(e,r,t){vara=o(e);varn=e[1];vari=a.getUint32(8,true);vars=12;varf=-1,l=-1,c=NaN,u=NaN,h=newDate(2001,0,1);if(i&1){c=d(e,s);s+=16}if(i&2){u=a.getFloat64(s,true);s+=8}if(i&4){h.setTime(h.getTime()+a.getFloat64(s,true)*1e3);s+=8}if(i&8){l=a.getUint32(s,true);s+=4}if(i&16){f=a.getUint32(s,true);s+=4}varv;switch(n){case0:break;case2:v={t:"n",v:c};break;case3:v={t:"s",v:r[l]};break;case5:v={t:"d",v:h};break;case6:v={t:"b",v:u>0};break;case7:v={t:"n",v:u};break;case8:v={t:"e",v:0};break;case9:{if(f>-1)v={t:"s",v:t[f]};elsethrownewError("Unsupported cell type ".concat(n," : ").concat(i&31," : ").concat(e.slice(0,4)))}break;case10:v={t:"n",v:c};break;default:thrownewError("Unsupported cell type ".concat(n," : ").concat(i&31," : ").concat(e.slice(0,4)));}returnv}functionB(e,r,t){switch(e[0]){case3:;case4:returnE(e,r,t);case5:returnS(e,r,t);default:th