varl=0;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)}functionbi(e){varr=e._R(1),t=e._R(1),a=e._R(1),n=e._R(1);return[r,t,a,n]}functiongi(e,r){vart=bi(e,r);t[3]=0;returnt}functionwi(e){varr=e._R(2);vart=e._R(2);vara=e._R(2);return{r:r,c:t,ixfe:a}}functionki(e,r,t,a){if(!a)a=et(6);a._W(2,e);a._W(2,r);a._W(2,t||0);returna}functionEi(e){varr=e._R(2);vart=e._R(2);e.l+=8;return{type:r,flags:t}}functionSi(e,r,t){returnr===0?"":fi(e,r,t)}functionBi(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]}functionCi(e){varr=e._R(2);vart=Yt(e);return[r,t]}functionyi(e,r,t){e.l+=4;r-=4;vara=e.l+r;varn=ti(e,r,t);vari=e._R(2);a-=e.l;if(i!==a)thrownewError("Malformed AddinUdf: padding = "+a+" != "+i);e.l+=i;returnn}functionTi(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}}}function_i(e,r){if(!r)r=et(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}functionxi(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}}}varAi=xi;functionRi(e){e.l+=4;varr=e._R(2);vart=e._R(2);vara=e._R(2);e.l+=12;return[t,r,a]}functionFi(e){varr={};e.l+=4;e.l+=16;r.fSharedNote=e._R(2);e.l+=4;returnr}functionIi(e){varr={};e.l+=4;e.cf=e._R(2);returnr}functionDi(e){e.l+=2;e.l+=e._R(2)}varPi={0:Di,4:Di,5:Di,6:Di,7:Ii,8:Di,9:Di,10:Di,11:Di,12:Di,13:Fi,14:Di,15:Di,16:Di,17:Di,18:Di,19:Di,20:Di,21:Ri};functionOi(e,r){vart=e.l+r;vara=[];while(e.l<t){varn=e._R(2);e.l-=2;try{a.push(Pi[n](e,t-e.l))}catch(i){e.l=t;returna}}if(e.l!=t)e.l=t;returna}functionNi(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}functionLi(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=et(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}functionMi(e,r){if(r===0)return1200;if(e._R(2)!==1200){}return1200}functionUi(e,r,t){if(t.enc){e.l+=r;return""}vara=e.l;varn=fi(e,0,t);e._R(r+a-e.l);returnn}functionWi(e,r){vart=!r||r.biff==8;vara=et(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}functionHi(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}}functionVi(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=ti(e,0,t);if(s.length===0)s="Sheet1";return{pos:a,hs:n,dt:i,name:s}}functionXi(e,r){vart=!r||r.biff>=8?2:1;vara=et(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}functionGi(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(ai(e))}i.Count=a;i.Unique=n;returni}functionzi(e,r){vart=et(8);t._W(4,e.Count);t._W(4,e.Unique);vara=[];for(varn=0;n<e.length;++n)a[n]=ni(e[n],r);vari=F([t].concat(a));i.parts=[t.length].concat(a.map(function(e){returne.length}));returni}functionji(e,r){vart={};t.dsst=e._R(2);e.l+=r-2;returnt}function$i(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}functionKi(e){varr=Ei(e);if(r.type!=2211)thrownewError("Invalid Future Record "+r.type);vart=e._R(4
from_sheet:c}}();varEf=function(){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(pe(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(m!=null&&t.dense==null)t.dense=m;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");varb=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(vc(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(pe(r).getDate())||b&&r.match(b)){a.z=t.dateNF||P._table[14];varn=0;if(b&&r.match(b)){r=W(r,t.dateNF,r.match(b)||[]);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[kt({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"]=St(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);returnxt(r(e,t),t)}functionf(e,r){vart="",a=r.type=="string"?[0,0,0,0]:Ym(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=qe(t.slice(3));elseif(r.type!="string"&&r.type!="buffer"&&r.codepage==65001)t=qe(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:")returnkf.to_sheet(r.type=="string"?t:qe(t),r);returns(t,r)}functionl(e,r){returnTt(f(e,r),r)}functiono(e){varr=[];vart=Bt(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=kt({r:i
break;case"<border":;case"<border>":;case"<border/>":n={};if(t.diagonalUp)n.diagonalUp=Je(t.diagonalUp);if(t.diagonalDown)n.diagonalDown=Je(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")};}})}functionDl(e,r,t,a){r.Fills=[];varn={};vari=false;(e[0].match(De)||[]).forEach(function(e){vart=Ne(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>":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")};}})}functionPl(e,r,t,a){r.Fonts=[];varn={};vars=false;(e[0].match(De)||[]).forEach(function(e){varf=Ne(e);switch(Le(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=qe(f.val);break;case"<name/>":;case"</name>":break;case"<b":n.bold=f.val?Je(f.val):1;break;case"<b/>":n.bold=1;break;case"<i":n.italic=f.val?Je(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?Je(f.val):1;break;case"<strike/>":n.strike=1;break;case"<outline":n.outline=f.val?Je(f.val):1;break;case"<outline/>":n.outline=1;break;case"<shadow":n.shadow=f.val?Je(f.val):1;break;case"<shadow/>":n.shadow=1;break;case"<condense":n.condense=f.val?Je(f.val):1;break;case"<condense/>":n.condense=1;break;case"<extend":n.extend=f.val?Je(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=Je(f.auto);if(f.rgb)n.color.rgb=f.rgb.slice(-
r.push("<commentList>");e.forEach(function(e){e[1].forEach(function(a){r.push('<comment ref="'+e[0]+'" authorId="'+t.indexOf(Xe(a.a))+'"><text>');r.push(or("t",a.t==null?"":Xe(a.t)));r.push("</text></comment>")})});r.push("</commentList>");if(r.length>2){r[r.length]="</comments>";r[1]=r[1].replace("/>",">")}returnr.join("")}functionYo(e){varr={};r.iauthor=e._R(4);vart=Zt(e,16);r.rfx=t.s;r.ref=kt(t.s);e.l+=16;returnr}functionJo(e,r){if(r==null)r=et(36);r._W(4,e[1].iauthor);ea(e[0],r);r._W(4,0);r._W(4,0);r._W(4,0);r._W(4,0);returnr}varqo=Rt;functionQo(e){returnFt(e.slice(0,54))}functionZo(e,r){vart=[];vara=[];varn={};vari=false;rt(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}functionec(e){varr=tt();vart=[];at(r,"BrtBeginComments");at(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));at(r,"BrtCommentAuthor",Qo(e.a))})});at(r,"BrtEndCommentAuthors");at(r,"BrtBeginCommentList");e.forEach(function(e){e[1].forEach(function(a){a.iauthor=t.indexOf(a.a);varn={s:wt(e[0]),e:wt(e[0])};at(r,"BrtBeginComment",Jo([n,a]));if(a.t&&a.t.length>0)at(r,"BrtCommentText",Lt(a));at(r,"BrtEndComment");deletea.iauthor})});at(r,"BrtEndCommentList");at(r,"BrtEndComments");returnr.end()}varrc="application/vnd.ms-office.vbaProject";functiontc(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)}functionac(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)})}varnc=["xlsb","xlsm","xlam","biff8","xla"];Va.DS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet";Va.MS="http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet";functionic(){return{"!type":"dialog"}}functionsc(){return{"!type":"dialog"}}functionfc(){return{"!type":"macro"}}functionlc(){return{"!type":"macro"}}varoc=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?"":"$")+pt(l)+(s?"":"$")+ut(f)}returnfunctiona(n,i){r=i;returnn.replace(e,t)}}();varcc=/(^|[^._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;varuc=function(){returnfunctione(r,t){returnr.replace(cc,function(e,r,a,n,i,s){varf=vt(n)-(a?0:t.c);varl=ct(s)-(i?0:t.r);varo=l==0?"":!i?"["+l+"]":l+1;varc=f==0?"":!a?"["+f+"]":f+1;returnr+"R"+o+"C"+c})}}();functionhc(e,r){returne.replace(cc,function(e,t,a,n,i,s){returnt+(a=="$"?a+n:pt(vt(n)+r.c))+(i=="$"?i+s:ut(ct(s)+r.r))})}functiondc(e,r,t){vara=Et(r),n=a.s,i=wt(t);vars={r:i.r-n.r,c:i.c-n.c};returnhc(e,s)}functionvc(e){if(e.length==1)returnfalse;returntrue}functionpc(e){returne.replace(/_xlfn\./g,"")}functionmc(e){e.l+=1;return}functionbc(e,r){vart=e._R(r==1?1:2);return[t&16383,t>>14&1,t>>15&1]}functiongc(e,r,t){vara=2;if(t){if(t.biff>=2&&t.biff<=5)returnwc(e,r,t);elseif(t.biff==12)a=4}varn=e._R(a),i=e._R(a);vars=bc(e,2);varf=bc(e,2);return{s:{r:n,c:s[0],cRel:s[1],rRel:
um(a,e.Sheets[e.SheetNames[n]],n,t,e);im(a,10);returna.end()}functiondm(e,r,t){im(e,"Font",as({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},t))}functionvm(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)im(e,"Format",os(n,r[n],t))})}functionpm(e,r){vart=et(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);im(e,"FeatHdr",t);t=et(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);_i(Bt(r["!ref"]||"A1"),t);t._W(4,4);im(e,"Feat",t)}functionmm(e,r){for(vart=0;t<16;++t)im(e,"XF",gs({numFmtId:0,style:true},0,r));r.cellXfs.forEach(function(t){im(e,"XF",gs(t,0,r))})}functionbm(e,r){for(vart=0;t<r["!links"].length;++t){vara=r["!links"][t];im(e,"HLink",zs(a));if(a[1].Tooltip)im(e,"HLinkTooltip",$s(a))}deleter["!links"]}functiongm(e,r,t){if(!r)return;vara=0;r.forEach(function(r,t){if(++a<=256&&r){im(e,"ColInfo",ef(mh(t,r),t))}})}functionwm(e,r,t,a,n){vari=16+gh(n.cellXfs,r,n);if(r.v==null&&!r.bf){im(e,"Blank",ki(t,a,i));return}if(r.bf)im(e,"Formula",Zu(r,t,a,n,i));elseswitch(r.t){case"d":;case"n":vars=r.t=="d"?re(oe(r.v)):r.v;im(e,"Number",Cs(t,a,s,i,n));break;case"b":;case"e":im(e,517,Ss(t,a,r.v,i,n,r.t));break;case"s":;case"str":if(n.bookSST){varf=ph(n.Strings,r.v,n.revStrings);im(e,"LabelSst",is(t,a,f,i,n))}elseim(e,"Label",fs(t,a,(r.v||"").slice(0,255),i,n));break;default:im(e,"Blank",ki(t,a,i));}}functionkm(e,r,t){vara=tt();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=Bt(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)}im(a,2057,Li(t,16,r));im(a,"CalcMode",Qn(1));im(a,"CalcCount",Qn(100));im(a,"CalcRefMode",Jn(true));im(a,"CalcIter",Jn(false));im(a,"CalcDelta",ta(.001));im(a,"CalcSaveRecalc",Jn(true));im(a,"PrintRowCol",Jn(false));im(a,"PrintGrid",Jn(false));im(a,"GridSet",Qn(1));im(a,"Guts",ks([0,0]));im(a,"HCenter",Jn(false));im(a,"VCenter",Jn(false));if(o)gm(a,i["!cols"],i);im(a,512,hs(d,r));if(o)i["!links"]=[];for(varp=d.s.r;p<=d.e.r;++p){u=ut(p);for(varm=d.s.c;m<=d.e.c;++m){if(p===d.s.r)h[m]=pt(m);c=h[m]+u;varb=l?(i[p]||[])[m]:i[c];if(!b)continue;wm(a,b,p,m,r);if(o&&b.l)i["!links"].push([c,b.l])}}varg=f.CodeName||f.name||n;if(o)im(a,"Window2",es((s.Views||[])[0]));if(o&&(i["!merges"]||[]).length)im(a,"MergeCells",Us(i["!merges"]));if(o)bm(a,i);im(a,"CodeName",li(g,r));if(o)pm(a,i);im(a,"EOF");returna.end()}functionEm(e,r,t){vara=tt();varn=(e||{}).Workbook||{};vari=n.Sheets||[];vars=n.WBProps||{};varf=t.biff==8,l=t.biff==5;im(a,2057,Li(e,5,t));if(t.bookType=="xla")im(a,"Addin");im(a,"InterfaceHdr",f?Qn(1200):null);im(a,"Mms",$n(2));if(l)im(a,"ToolbarHdr");if(l)im(a,"ToolbarEnd");im(a,"InterfaceEnd");im(a,"WriteAccess",Wi("SheetJS",t));im(a,"CodePage",Qn(f?1200:1252));if(f)im(a,"DSF",Qn(0));if(f)im(a,"Excel9File");im(a,"RRTabId",af(e.SheetNames.length));if(f&&e.vbaraw)im(a,"ObProj");if(f&&e.vbaraw){varo=s.CodeName||"ThisWorkbook";im(a,"CodeName",li(o,t))}im(a,"BuiltInFnGroupCount",Qn(17));im(a,"WinProtect",Jn(false));im(a,"Protect",Jn(false));im(a,"Password",Qn(0));if(f)im(a,"Prot4Rev",Jn(false));if(f)im(a,"Prot4RevPass",Qn(0));im(a,"Window1",Qi(t));im(a,"Backup",Jn(false));im(a,"HideObj",Qn(0));im(a,"Date1904",Jn(Pv(e)=="true"));im(a,"CalcPrecision",Jn(true));if(f)im(a,"RefreshAll",Jn(false));im(a,"BookBool",Qn(0));dm(a,e,t);vm(a,e.SSF,t);mm(a,t);if(f)im(a,"UsesELFs",Jn(false));varc=a.end();varu=tt();if(f)im(u,"Country",Ys());if(f&&t.Strings)sm(u,"SST",zi(t.Strings,t));im(u,"EOF");varh=u.end();vard=tt();varv=0,p=0;for(p=0;p<e.SheetNames.length;++p)v+=(f?12:11)+(f?2:1)*e.SheetNames[p].length;varm=c.length+v+h.length;for(p=0;p<e.SheetNames.length;++p){varb=i[p]||{};im(d,"BoundSheet8",Xi({pos:m,hs:b.Hidden||0,dt:0,name:e.SheetNames[p]},t));m+=r[p].length}varg=d.end();if(v!=g.length)thro
a+=(e[t]&127)*Math.pow(2,42);++t;if(e[t++]<128)breake}if(r)r[0]=t;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}functionm(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}functionb(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=m(e.slice(t[0],t[0]+a));t[0]+=a;vari={id:p(n[1][0].data),messages:[]};n[2].forEach(function(r){vara=m(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
}if(t.f!=null)a=t.f;elseif(t.t=="z")continue;elseif(t.t=="n"&&t.v!=null)a=""+t.v;elseif(t.t=="b")a=t.v?"TRUE":"FALSE";elseif(t.w!==undefined)a="'"+t.w;elseif(t.v===undefined)continue;elseif(t.t=="s")a="'"+t.v;elsea=""+t.v;l[l.length]=r+"="+a}}returnl}functionLb(e,r,t){vara=t||{};varn=+!a.skipHeader;vari=e||{};vars=0,f=0;if(i&&a.origin!=null){if(typeofa.origin=="number")s=a.origin;else{varl=typeofa.origin=="string"?wt(a.origin):a.origin;s=l.r;f=l.c}}varo;varc={s:{c:0,r:0},e:{c:f,r:s+r.length-1+n}};if(i["!ref"]){varu=Bt(i["!ref"]);c.e.c=Math.max(c.e.c,u.e.c);c.e.r=Math.max(c.e.r,u.e.r);if(s==-1){s=u.e.r+1;c.e.r=s+r.length-1+n}}else{if(s==-1){s=0;c.e.r=r.length-1+n}}varh=a.header||[],d=0;r.forEach(function(e,r){Y(e).forEach(function(t){if((d=h.indexOf(t))==-1)h[d=h.length]=t;varl=e[t];varc="z";varu="";varv=kt({c:f+d,r:s+r+n});o=Ub.sheet_get_cell(i,v);if(l&&typeofl==="object"&&!(linstanceofDate)){i[v]=l}else{if(typeofl=="number")c="n";elseif(typeofl=="boolean")c="b";elseif(typeofl=="string")c="s";elseif(linstanceofDate){c="d";if(!a.cellDates){c="n";l=re(l)}u=a.dateNF||P._table[14]}elseif(l===null&&a.nullError){c="e";l=0}if(!o)i[v]=o={t:c,v:l};else{o.t=c;o.v=l;deleteo.w;deleteo.R;if(u)o.z=u}if(u)o.z=u}})});c.e.c=Math.max(c.e.c,f+h.length-1);varv=ut(s);if(n)for(d=0;d<h.length;++d)i[pt(d+f)+v]={t:"s",v:h[d]};i["!ref"]=St(c);returni}functionMb(e,r){returnLb(null,e,r)}varUb={encode_col:pt,encode_row:ut,encode_cell:kt,encode_range:St,decode_col:vt,decode_row:ct,split_cell:gt,decode_cell:wt,decode_range:Et,format_cell:yt,sheet_add_aoa:_t,sheet_add_json:Lb,sheet_add_dom:ym,aoa_to_sheet:xt,json_to_sheet:Mb,table_to_sheet:Tm,table_to_book:_m,sheet_to_csv:Pb,sheet_to_txt:Ob,sheet_to_json:Fb,sheet_to_html:Cm.from_sheet,sheet_to_formulae:Nb,sheet_to_row_object_array:Fb};(function(e){e.consts=e.consts||{};functionr(r){r.forEach(function(r){e.consts[r[0]]=r[1]})}functiont(e,r,t){returne[r]!=null?e[r]:e[r]=t}functiona(e,r,t){if(typeofr=="string"){if(Array.isArray(e)){varn=wt(r);if(!e[n.r])e[n.r]=[];returne[n.r][n.c]||(e[n.r][n.c]={t:"z"})}returne[r]||(e[r]={t:"z"})}if(typeofr!="number")returna(e,kt(r));returna(e,kt({r:r,c:t||0}))}e.sheet_get_cell=a;functionn(e,r){if(typeofr=="number"){if(r>=0&&e.SheetNames.length>r)returnr;thrownewError("Cannot find sheet # "+r)}elseif(typeofr=="string"){vart=e.SheetNames.indexOf(r);if(t>-1)returnt;thrownewError("Cannot find sheet name |"+r+"|")}elsethrownewError("Cannot find sheet |"+r+"|")}e.book_new=function(){return{SheetNames:[],Sheets:{}}};e.book_append_sheet=function(e,r,t){if(!t)for(vara=1;a<=65535;++a,t=undefined)if(e.SheetNames.indexOf(t="Sheet"+a)==-1)break;if(!t||e.SheetNames.length>=65535)thrownewError("Too many worksheets");Nv(t);if(e.SheetNames.indexOf(t)>=0)thrownewError("Worksheet with name |"+t+"| already exists!");e.SheetNames.push(t);e.Sheets[t]=r};e.book_set_sheet_visibility=function(e,r,a){t(e,"Workbook",{});t(e.Workbook,"Sheets",[]);vari=n(e,r);t(e.Workbook.Sheets,i,{});switch(a){case0:;case1:;case2:break;default:thrownewError("Bad sheet visibility setting "+a);}e.Workbook.Sheets[i].Hidden=a};r([["SHEET_VISIBLE",0],["SHEET_HIDDEN",1],["SHEET_VERY_HIDDEN",2]]);e.cell_set_number_format=function(e,r){e.z=r;returne};e.cell_set_hyperlink=function(e,r,t){if(!r){deletee.l}else{e.l={Target:r};if(t)e.l.Tooltip=t}returne};e.cell_set_internal_link=function(r,t,a){returne.cell_set_hyperlink(r,"#"+t,a)};e.cell_add_comment=function(e,r,t){if(!e.c)e.c=[];e.c.push({t:r,a:t||"SheetJS"})};e.sheet_set_array_formula=function(e,r,t){varn=typeofr!="string"?r:Bt(r);vari=typeofr=="string"?r:St(r);for(vars=n.s.r;s<=n.e.r;++s)for(varf=n.s.c;f<=n.e.c;++f){varl=a(e,s,f);l.t="n";l.F=i;deletel.v;if(s==n.s.r&&f==n.s.c)l.f=t}returne};returne})(Ub);if(w&&typeofrequire!="undefined")(function(){varr=undefined;if(!r)return;vart=r.Readable;if(!t)return;vara=function(e,r){vara=t();varn=r==null?{}:r;if(e==null||e["!ref"]==null){a.push(null);returna}vari=Bt(e["!ref"]);vars=n.FS!==undefined?n.FS:",",f=s.charCodeAt(0);varl=