returne}functiono(t){returnt.indexOf(".")>-1?t.replace(r,"").replace(e,".$1"):t}returnfunctionl(e){varr=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),t;if(r>=-4&&r<=-1)t=e.toPrecision(10+r);elseif(Math.abs(r)<=9)t=i(e);elseif(r===10)t=e.toFixed(10).substr(0,12);elset=s(e);returno(f(t))}}();e._general_num=k;functionS(e,r){switch(typeofe){case"string":returne;case"boolean":returne?"TRUE":"FALSE";case"number":return(e|0)===e?E(e):k(e);case"undefined":return"";case"object":if(e==null)return"";if(einstanceofDate)returnN(14,w(e,r&&r.date1904),r);}thrownewError("unsupported value in General format: "+e)}e._general=S;functionA(){return0}function_(e,r,t,n){vari="",s=0,f=0,o=t.y,l,c=0;switch(e){case98:o=t.y+543;case121:switch(r.length){case1:;case2:l=o%100;c=2;break;default:l=o%1e4;c=4;break;}break;case109:switch(r.length){case1:;case2:l=t.m;c=r.length;break;case3:returnu[t.m-1][1];case5:returnu[t.m-1][0];default:returnu[t.m-1][2];}break;case100:switch(r.length){case1:;case2:l=t.d;c=r.length;break;case3:returnh[t.q][0];default:returnh[t.q][1];}break;case104:switch(r.length){case1:;case2:l=1+(t.H+11)%12;c=r.length;break;default:throw"bad hour format: "+r;}break;case72:switch(r.length){case1:;case2:l=t.H;c=r.length;break;default:throw"bad hour format: "+r;}break;case77:switch(r.length){case1:;case2:l=t.M;c=r.length;break;default:throw"bad minute format: "+r;}break;case115:if(r!="s"&&r!="ss"&&r!=".0"&&r!=".00"&&r!=".000")throw"bad second format: "+r;if(t.u===0&&(r=="s"||r=="ss"))returna(t.S,r.length);if(n>=2)f=n===3?1e3:100;elsef=n===1?10:1;s=Math.round(f*(t.S+t.u));if(s>=60*f)s=0;if(r==="s")returns===0?"0":""+s/f;i=a(s,2+n);if(r==="ss")returni.substr(0,2);return"."+i.substr(2,r.length-1);case90:switch(r){case"[h]":;case"[hh]":l=t.D*24+t.H;break;case"[m]":;case"[mm]":l=(t.D*24+t.H)*60+t.M;break;case"[s]":;case"[ss]":l=((t.D*24+t.H)*60+t.M)*60+Math.round(t.S+t.u);break;default:throw"bad abstime format: "+r;}c=r.length===3?1:2;break;case101:l=o;c=1;}if(c>0)returna(l,c);elsereturn""}functionB(e){varr=3;if(e.length<=r)returne;vart=e.length%r,a=e.substr(0,t);for(;t!=e.length;t+=r)a+=(a.length>0?",":"")+e.substr(t,r);returna}varT=functionU(){vare=/%/g;functions(r,a,n){vari=a.replace(e,""),s=a.length-i.length;returnT(r,i,n*Math.pow(10,2*s))+t("%",s)}functionf(e,r,t){vara=r.length-1;while(r.charCodeAt(a-1)===44)--a;returnT(e,r.substr(0,a),t/Math.pow(10,3*(r.length-a)))}functiono(e,r){vart;vara=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";elseif(r<0)return"-"+o(e,-r);varn=e.indexOf(".");if(n===-1)n=e.indexOf("E");vari=Math.floor(Math.log(r)*Math.LOG10E)%n;if(i<0)i+=n;t=(r/Math.pow(10,i)).toPrecision(a+1+(n+i)%n);if(t.indexOf("e")===-1){vars=Math.floor(Math.log(r)*Math.LOG10E);if(t.indexOf(".")===-1)t=t.charAt(0)+"."+t.substr(1)+"E+"+(s-t.length+i);elset+="E+"+(s-i);while(t.substr(0,2)==="0."){t=t.charAt(0)+t.substr(2,n)+"."+t.substr(2+n);t=t.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.")}t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(e,r,t,a){returnr+t+a.substr(0,(n+i)%n)+"."+a.substr(i)+"E"})}elset=r.toExponential(a);if(e.match(/E\+00$/)&&t.match(/e[+-]\d$/))t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1);if(e.match(/E\-/)&&t.match(/e\+/))t=t.replace(/e\+/,"e");returnt.replace("e","E")}varc=/# (\?+)( ?)\/( ?)(\d+)/;functionh(e,r,i){vars=parseInt(e[4],10),f=Math.round(r*s),o=Math.floor(f/s);varl=f-o*s,c=s;returni+(o===0?"":""+o)+" "+(l===0?t(" ",e[1].length+1+e[4].length):n(l,e[1].length)+e[2]+"/"+e[3]+a(c,e[4].length))}functionu(e,r,a){returna+(r===0?"":""+r)+t(" ",e[1].length+2+e[4].length)}vard=/^#*0*\.([0#]+)/;varp=/\).*[0#]/;varg=/\(###\) ###\\?-####/;functionm(e){varr="",t;for(vara=0;a!=e.length;++a)switch(t=e.charCodeAt(a)){case35:break;case63:r+=" ";break;case48:r+="0";break;default:r+=String.fromCharCode(t);}returnr}functionb(e,r){vart=Math.pow(10,r);return""+Math.round(e*t)/t}functionC(e,r){if(r<(""+Math.round((e-Math.floor(e))*Math.pow(10,r))).length){return0}retu
returne.toUpperCase()});vara=t.map(function(e){varr=e.split("/");returnr[r.length-(e.slice(-1)=="/"?2:1)]});varn=false;if(r.charCodeAt(0)===47){n=true;r=t[0].slice(0,-1)+r}elsen=r.indexOf("/")!==-1;vari=r.toUpperCase();vars=n===true?t.indexOf(i):a.indexOf(i);if(s!==-1)returne.FileIndex[s];varf=!i.match(T);i=i.replace(B,"");if(f)i=i.replace(T,"!");for(s=0;s<t.length;++s){if((f?t[s].replace(T,"!"):t[s]).replace(B,"")==i)returne.FileIndex[s];if((f?a[s].replace(T,"!"):a[s]).replace(B,"")==i)returne.FileIndex[s]}returnnull}vary=64;varI=-2;varR="d0cf11e0a1b11ae1";varO=[208,207,17,224,161,177,26,225];varD="00000000000000000000000000000000";varF={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:I,FREESECT:-1,HEADER_SIGNATURE:R,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:D,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};functionP(e,r,t){i();vara=A(e,t);n.writeFileSync(r,a)}functionL(e){varr=newArray(e.length);for(vart=0;t<e.length;++t)r[t]=String.fromCharCode(e[t]);returnr.join("")}functionM(e,r){vart=A(e,r);switch(r&&r.type){case"file":i();n.writeFileSync(r.filename,t);returnt;case"binary":returnL(t);case"base64":returnm.encode(L(t));}returnt}functionU(e){varr={};E(r,e);returnr}functionH(e,r,t,n){vari=n&&n.unsafe;if(!i)E(e);vars=!i&&N.find(e,r);if(!s){varf=e.FullPaths[0];if(r.slice(0,f.length)==f)f=r;else{if(f.slice(-1)!="/")f+="/";f=(f+r).replace("//","/")}s={name:a(r),type:2};e.FileIndex.push(s);e.FullPaths.push(f);if(!i)N.utils.cfb_gc(e)}s.content=t;s.size=t?t.length:0;if(n){if(n.CLSID)s.clsid=n.CLSID}returns}functionW(e,r){E(e);vart=N.find(e,r);if(t)for(vara=0;a<e.FileIndex.length;++a)if(e.FileIndex[a]==t){e.FileIndex.splice(a,1);e.FullPaths.splice(a,1);returntrue}returnfalse}functionV(e,r,t){E(e);varn=N.find(e,r);if(n)for(vari=0;i<e.FileIndex.length;++i)if(e.FileIndex[i]==n){e.FileIndex[i].name=a(t);e.FullPaths[i]=t;returntrue}returnfalse}functionz(e){S(e,true)}e.find=x;e.read=C;e.parse=s;e.write=M;e.writeFile=P;e.utils={cfb_new:U,cfb_add:H,cfb_del:W,cfb_mov:V,cfb_gc:z,ReadShift:Dr,CheckField:Mr,prep_blob:Ur,bconcat:_,consts:F};returne}();if(typeofrequire!=="undefined"&&typeofmodule!=="undefined"&&typeofP==="undefined"){module.exports=N}varL;if(typeofrequire!=="undefined")try{L=require("fs")}catch(M){}functionU(e){if(typeofe==="string")returnE(e);if(Array.isArray(e))returnS(e);returne}functionH(e,r,t){if(typeofL!=="undefined"&&L.writeFileSync)returnt?L.writeFileSync(e,r,t):L.writeFileSync(e,r);vara=t=="utf8"?He(r):r;if(typeofIE_SaveFile!=="undefined")returnIE_SaveFile(a,e);if(typeofBlob!=="undefined"){varn=newBlob([U(a)],{type:"application/octet-stream"});if(typeofnavigator!=="undefined"&&navigator.msSaveBlob)returnnavigator.msSaveBlob(n,e);if(typeofsaveAs!=="undefined")returnsaveAs(n,e);if(typeofURL!=="undefined"&&typeofdocument!=="undefined"&&document.createElement&&URL.createObjectURL){vari=URL.createObjectURL(n);if(typeofchrome==="object"&&typeof(chrome.downloads||{}).download=="function"){if(URL.revokeObjectURL&&typeofsetTimeout!=="undefined")setTimeout(function(){URL.revokeObjectURL(i)},6e4);returnchrome.downloads.download({url:i,filename:e,saveAs:true})}vars=document.createElement("a");if(s.download!=null){s.download=e;s.href=i;document.body.appendChild(s);s.click();document.body.removeChild(s);if(URL.revokeObjectURL&&typeofsetTimeout!=="undefined")setTimeout(function(){URL.revokeObjectURL(i)},6e4);returni}}}if(typeof$!=="undefined"&&typeofFile!=="undefined"&&typeofFolder!=="undefined")try{varf=File(e);f.open("w");f.encoding="binary";if(Array.isArray(r))r=k(r);f.write(r);f.close();returnr}catch(o){if(!o.message||!o.message.match(/onstruct/))throwo}thrownewError("cannot save file "+e)}functionW(e){if(typeofL!=="undefined")returnL.readFileSync(e);if(typeof$!=="undefined"&&typeofFile!=="undefined"&&typeofFolder!=="undefined")try{varr=File(e);r.open("r");r.encoding="binary";vart=r.read();r.close();returnt}catch(a){if(!a.message||!a.message.match(/onstruct/))throwa}thrownewE
e.l=t}varn=e._R((a?r-24:r)>>1,"utf16le").replace(B,"");if(a)e.l+=24;returnn}function$n(e){e.l+=2;varr=e._R(0,"lpstr-ansi");e.l+=2;if(e._R(2)!=57005)thrownewError("Bad FileMoniker");vart=e._R(4);if(t===0)returnr.replace(/\\/g,"/");vara=e._R(4);if(e._R(2)!=3)thrownewError("Bad FileMoniker");varn=e._R(a>>1,"utf16le").replace(B,"");returnn}functionZn(e,r){vart=e._R(16);r-=16;switch(t){case"e0c9ea79f9bace118c8200aa004ba90b":returnYn(e,r);case"0303000000000000c000000000000046":return$n(e,r);default:thrownewError("Unsupported Moniker "+t);}}functionQn(e){varr=e._R(4);vart=r>0?e._R(r,"utf16le").replace(B,""):"";returnt}functionJn(e,r){vart=e.l+r;vara=e._R(4);if(a!==2)thrownewError("Unrecognized streamVersion: "+a);varn=e._R(2);e.l+=2;vari,s,f,o,l="",c,h;if(n&16)i=Qn(e,t-e.l);if(n&128)s=Qn(e,t-e.l);if((n&257)===257)f=Qn(e,t-e.l);if((n&257)===1)o=Zn(e,t-e.l);if(n&8)l=Qn(e,t-e.l);if(n&32)c=e._R(16);if(n&64)h=on(e);e.l=t;varu=s||f||o||"";if(u&&l)u+="#"+l;if(!u)u="#"+l;vard={Target:u};if(c)d.guid=c;if(h)d.time=h;if(i)d.Tooltip=i;returnd}functionqn(e){varr=Wr(512),t=0;vara=e.Target;varn=a.indexOf("#")>-1?31:23;switch(a.charAt(0)){case"#":n=28;break;case".":n&=~2;break;}r._W(4,2);r._W(4,n);vari=[8,6815827,6619237,4849780,83];for(t=0;t<i.length;++t)r._W(4,i[t]);if(n==28){a=a.slice(1);r._W(4,a.length+1);for(t=0;t<a.length;++t)r._W(2,a.charCodeAt(t));r._W(2,0)}elseif(n&2){i="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" ");for(t=0;t<i.length;++t)r._W(1,parseInt(i[t],16));r._W(4,2*(a.length+1));for(t=0;t<a.length;++t)r._W(2,a.charCodeAt(t));r._W(2,0)}else{i="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" ");for(t=0;t<i.length;++t)r._W(1,parseInt(i[t],16));vars=0;while(a.slice(s*3,s*3+3)=="../"||a.slice(s*3,s*3+3)=="..\\")++s;r._W(2,s);r._W(4,a.length+1);for(t=0;t<a.length;++t)r._W(1,a.charCodeAt(t)&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)}functionei(e){varr=e._R(1),t=e._R(1),a=e._R(1),n=e._R(1);return[r,t,a,n]}functionri(e,r){vart=ei(e,r);t[3]=0;returnt}functionti(e){varr=e._R(2);vart=e._R(2);vara=e._R(2);return{r:r,c:t,ixfe:a}}functionai(e,r,t,a){if(!a)a=Wr(6);a._W(2,e);a._W(2,r);a._W(2,t||0);returna}functionni(e){varr=e._R(2);vart=e._R(2);e.l+=8;return{type:r,flags:t}}functionii(e,r,t){returnr===0?"":Gn(e,r,t)}functionsi(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]}functionfi(e){varr=e._R(2);vart=Ft(e);return[r,t]}functionoi(e,r,t){e.l+=4;r-=4;vara=e.l+r;varn=Wn(e,r,t);vari=e._R(2);a-=e.l;if(i!==a)thrownewError("Malformed AddinUdf: padding = "+a+" != "+i);e.l+=i;returnn}functionli(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}}}functionci(e,r){if(!r)r=Wr(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}functionhi(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}}}varui=hi;functiondi(e){e.l+=4;varr=e._R(2);vart=e._R(2);vara=e._R(2);e.l+=12;return[t,r,a]}functionpi(e){varr={};e.l+=4;e.l+=16;r.fSharedNote=e._R(2);e.l+=4;returnr}functionvi(e){varr={};e.l+=4;e.cf=e._R(2);returnr}functiongi(e){e.l+=2;e.l+=e._R(2)}varmi={0:gi,4:gi,5:gi,6:gi,7:vi,8:gi,9:gi,10:gi,11:gi,12:gi,13:pi,14:gi,15:gi,16:gi,17:gi,18:gi,19:gi,20:gi,21:di};functionbi(e,r){vart=e.l+r;vara=[];while(e.l<t){varn=e._R(2);e.l-=2;try{a.push(mi[n](e,t-e.l))}catch(i){e.l=t;returna}}if(e.l!=t)e.l=t;returna}functionCi(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}functionwi(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=Wr(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
s=[];for(iinr)if(r.hasOwnProperty(i)){s.push([r[i],i])}if(!s.length){r=a;for(iinr)if(r.hasOwnProperty(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]]}functioni(e,r){vart=r||{};vara="";if(v!=null&&t.dense==null)t.dense=v;vari=t.dense?[]:{};vars={s:{c:0,r:0},e:{c:0,r:0}};if(e.slice(0,4)=="sep="&&e.charCodeAt(5)==10){a=e.charAt(4);e=e.slice(6)}elsea=n(e.slice(0,1024));varf=0,o=0,l=0;varc=0,h=0,u=a.charCodeAt(0),d=false,p=0;e=e.replace(/\r\n/gm,"\n");varg=t.dateNF!=null?D(t.dateNF):null;functionm(){varr=e.slice(c,h);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(Gl(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(l=ie(r))){a.t="n";if(t.cellText!==false)a.w=r;a.v=l}elseif(!isNaN(se(r).getDate())||g&&r.match(g)){a.z=t.dateNF||x._table[14];varn=0;if(g&&r.match(g)){r=F(r,t.dateNF,r.match(g)||[]);n=1}if(t.cellDates){a.t="d";a.v=re(r,n)}else{a.t="n";a.v=Z(re(r,n))}if(t.cellText!==false)a.w=x.format(a.z,a.vinstanceofDate?Z(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][o]=a}elsei[ft({c:o,r:f})]=a;c=h+1;if(s.e.c<o)s.e.c=o;if(s.e.r<f)s.e.r=f;if(p==u)++o;else{o=0;++f;if(t.sheetRows&&t.sheetRows<=f)returntrue}}e:for(;h<e.length;++h)switch(p=e.charCodeAt(h)){case34:d=!d;break;caseu:;case10:;case13:if(!d&&m())breake;break;default:break;}if(h-c>0)m();i["!ref"]=lt(s);returni}functions(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);returnvt(r(e,t),t)}functionf(e,r){vart="",a=r.type=="string"?[0,0,0,0]:sg(e,r);switch(r.type){case"base64":t=m.decode(e);break;case"binary":t=e;break;case"buffer":t=e.toString("binary");break;case"array":t=te(e);break;case"string":t=e;break;default:thrownewError("Unrecognized type "+r.type);}if(a[0]==239&&a[1]==187&&a[2]==191)t=Ue(t.slice(3));elseif((r.type=="binary"||r.type=="buffer")&&typeofcptable!=="undefined"&&r.codepage)t=cptable.utils.decode(r.codepage,cptable.utils.encode(1252,t));if(t.slice(0,19)=="socialcalc:version:")returnJs.to_sheet(r.type=="string"?t:Ue(t),r);returns(t,r)}functiono(e,r){returndt(f(e,r),r)}functionl(e){varr=[];vart=ct(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){varo=ft({r:i,c:f});a=n?(e[i]||[])[f]:e[o];if(!a||a.v==null){s.push(" ");continue}varl=(a.w||(ut(a),a.w)||"").slice(0,10);while(l.length<10)l+=" ";s.push(l+(f===0?" ":""))}r.push(s.join(""))}returnr.join("\n")}return{to_workbook:o,to_sheet:f,from_sheet:l}}();functionef(e,r){vart=r||{},a=!!t.WTF;t.WTF=true;try{varn=Zs.to_workbook(e,t);t.WTF=a;returnn}catch(i){t.WTF=a;if(!i.message.match(/SYLK bad record ID/)&&a)throwi;returnqs.to_workbook(e,r)}}varrf=function(){functione(e,r,t){if(!e)return;Ur(e,e.l||0);vara=t.Enum||C;while(e.l<e.length){varn=e._R(2);vari=a[n]||a[255];vars=e._R(2);varf=e.l+s;varo=(i.f||Hr)(e,s,t);e.l=f;if(r(o,i.n,n))return}}functionr(e,r){switch(r.type){case"base64":returnt(w(m.decode(e)),r);case"binary":returnt(w(e),r);case"buffer":;case"array":returnt(e,r);}throw"Unsupported type "+r.type}functiont(r,t){if(!r)returnr;vara=t||{};if(v!=null&&a.dense==null)a.dense=v;varn=a.dense?[]:{},i="Sheet1",s=0;varf={},o=[i];varl={s:{r:0,c:0},e:{r:0,c:0}};varc=a.sheetRows||0;if(r[2]==2)a.Enum=C;elseif(r[2]==26)a.Enum=E;elseif(r[2]==14){a.Enum=E;a.qpro=true;r.l=0}elsethrownewError("Unrecognized LOTUS BOF "+r[2]);e(r,function(e,t,h){if(r[2]==2)switch(h){case0:a.vers=e;if(e>=4096)a.qpro=true;break;case6:l=e;break;case15:if(!a.qpro)e[1].v=e[1].v.slice(1);case13:;case14:;case16:;case51:if(h==14&&(e[2]&112)==112&&(e[2]&15)>1&&(e[2]&15)<15){e[1].z=
t._W(2,r||0);t._W(2,e.numFmtId||0);t._W(2,0);t._W(2,0);t._W(2,0);t._W(1,0);t._W(1,0);t._W(1,0);t._W(1,0);t._W(1,0);t._W(1,0);returnt}functionOo(e,r){if(!r)r=Wr(10);r._W(1,0);r._W(1,0);r._W(4,0);r._W(4,0);returnr}varDo=Hr;functionFo(e,r){if(!r)r=Wr(51);r._W(1,0);Oo(null,r);Oo(null,r);Oo(null,r);Oo(null,r);Oo(null,r);returnr.length>r.l?r.slice(0,r.l):r}functionPo(e,r){if(!r)r=Wr(12+4*10);r._W(4,e.xfId);r._W(2,1);r._W(1,+e.builtinId);r._W(1,0);It(e.name||"",r);returnr.length>r.l?r.slice(0,r.l):r}functionNo(e,r,t){vara=Wr(4+256*2*4);a._W(4,e);It(r,a);It(t,a);returna.length>a.l?a.slice(0,a.l):a}functionLo(e,r,t){vara={};a.NumberFmt=[];for(varninx._table)a.NumberFmt[n]=x._table[n];a.CellXf=[];a.Fonts=[];vari=[];vars=false;Vr(e,functionf(e,n,o){switch(o){case44:a.NumberFmt[e[0]]=e[1];x.load(e[1],e[0]);break;case43:a.Fonts.push(e);if(e.color.theme!=null&&r&&r.themeElements&&r.themeElements.clrScheme){e.color.rgb=Kf(r.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0)}break;case1025:break;case45:break;case46:break;case47:if(i[i.length-1]=="BrtBeginCellXFs"){a.CellXf.push(e)}break;case48:;case507:;case572:;case475:break;case1171:;case2102:;case1130:;case512:;case2095:;case3072:break;case35:s=true;break;case36:s=false;break;case37:i.push(n);break;case38:i.pop();break;default:if((n||"").indexOf("Begin")>0)i.push(n);elseif((n||"").indexOf("End")>0)i.pop();elseif(!s||t.WTF)thrownewError("Unexpected record "+o+" "+n);}});returna}functionMo(e,r){if(!r)return;vart=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(e){for(vara=e[0];a<=e[1];++a)if(r[a]!=null)++t});if(t==0)return;Xr(e,"BrtBeginFmts",gt(t));[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(vara=t[0];a<=t[1];++a)if(r[a]!=null)Xr(e,"BrtFmt",So(a,r[a]))});Xr(e,"BrtEndFmts")}functionUo(e){varr=1;if(r==0)return;Xr(e,"BrtBeginFonts",gt(r));Xr(e,"BrtFont",_o({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}));Xr(e,"BrtEndFonts")}functionHo(e){varr=2;if(r==0)return;Xr(e,"BrtBeginFills",gt(r));Xr(e,"BrtFill",yo({patternType:"none"}));Xr(e,"BrtFill",yo({patternType:"gray125"}));Xr(e,"BrtEndFills")}functionWo(e){varr=1;if(r==0)return;Xr(e,"BrtBeginBorders",gt(r));Xr(e,"BrtBorder",Fo({}));Xr(e,"BrtEndBorders")}functionVo(e){varr=1;Xr(e,"BrtBeginCellStyleXFs",gt(r));Xr(e,"BrtXF",Ro({numFmtId:0,fontId:0,fillId:0,borderId:0},65535));Xr(e,"BrtEndCellStyleXFs")}functionzo(e,r){Xr(e,"BrtBeginCellXFs",gt(r.length));r.forEach(function(r){Xr(e,"BrtXF",Ro(r,0))});Xr(e,"BrtEndCellXFs")}functionXo(e){varr=1;Xr(e,"BrtBeginStyles",gt(r));Xr(e,"BrtStyle",Po({xfId:0,builtinId:0,name:"Normal"}));Xr(e,"BrtEndStyles")}functionGo(e){varr=0;Xr(e,"BrtBeginDXFs",gt(r));Xr(e,"BrtEndDXFs")}functionjo(e){varr=0;Xr(e,"BrtBeginTableStyles",No(r,"TableStyleMedium9","PivotStyleMedium4"));Xr(e,"BrtEndTableStyles")}functionKo(){return}functionYo(e,r){vart=zr();Xr(t,"BrtBeginStyleSheet");Mo(t,e.SSF);Uo(t,e);Ho(t,e);Wo(t,e);Vo(t,e);zo(t,r.cellXfs);Xo(t,e);Go(t,e);jo(t,e);Ko(t,e);Xr(t,"BrtEndStyleSheet");returnt.end()}Ta.THEME="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme";function$o(e,r,t){r.themeElements.clrScheme=[];vara={};(e[0].match(Ee)||[]).forEach(function(e){varn=Ae(e);switch(n[0]){case"<a:clrScheme":;case"</a:clrScheme>":break;case"<a:srgbClr":a.rgb=n.val;break;case"<a:sysClr":a.rgb=n.lastClr;break;case"<a:dk1>":;case"</a:dk1>":;case"<a:lt1>":;case"</a:lt1>":;case"<a:dk2>":;case"</a:dk2>":;case"<a:lt2>":;case"</a:lt2>":;case"<a:accent1>":;case"</a:accent1>":;case"<a:accent2>":;case"</a:accent2>":;case"<a:accent3>":;case"</a:accent3>":;case"<a:accent4>":;case"</a:accent4>":;case"<a:accent5>":;case"</a:accent5>":;case"<a:accent6>":;case"</a:accent6>":;case"<a:hlink>":;case"</a:hlink>":;case"<a:folHlink>":;case"</a:folHlink>":if(n[0].charAt(1)==="/"){r.themeElements.clrScheme.push(a);a={}}else{a.name=n[0].slice(3,n[0].length-1)}break;default:if(t&&t.WTF)thrownewError("Unrecognized "+n[0]+" in clrScheme");}})}functionZo(){}functionQo(){}varJo=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrSche
t.autoCompressPictures=!!(a&65536);t.backupFile=!!(a&64);t.checkCompatibility=!!(a&4096);t.date1904=!!(a&1);t.filterPrivacy=!!(a&8);t.hidePivotFieldList=!!(a&1024);t.promptedSolutions=!!(a&16);t.publishItems=!!(a&2048);t.refreshAllConnections=!!(a&262144);t.saveExternalLinkValues=!!(a&128);t.showBorderUnselectedTables=!!(a&4);t.showInkAnnotation=!!(a&32);t.showObjects=["all","placeholders","none"][a>>13&3];t.showPivotChartFilter=!!(a&32768);t.updateLinks=["userSet","never","always"][a>>8&3];returnt}functionQd(e,r){if(!r)r=Wr(72);vart=0;if(e){if(e.filterPrivacy)t|=8}r._W(4,t);r._W(4,0);xt(e&&e.CodeName||"ThisWorkbook",r);returnr.slice(0,r.l)}functionJd(e,r){vart={};e._R(4);t.ArchID=e._R(4);e.l+=r-8;returnt}functionqd(e,r,t){vara=e.l+r;e.l+=4;e.l+=1;varn=e._R(4);vari=Rt(e);vars=Rh(e,0,t);varf=yt(e);e.l=a;varo={Name:i,Ptg:s};if(n<268435455)o.Sheet=n;if(f)o.Comment=f;returno}functionep(e,r){vart={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""};vara=false;if(!r)r={};r.biff=12;varn=[];vari=[[]];i.SheetNames=[];i.XTI=[];Vr(e,functions(e,f,o){switch(o){case156:i.SheetNames.push(e.name);t.Sheets.push(e);break;case153:t.WBProps=e;break;case39:if(e.Sheet!=null)r.SID=e.Sheet;e.Ref=Eh(e.Ptg,null,null,i,r);deleter.SID;deletee.Ptg;n.push(e);break;case1036:break;case357:;case358:;case355:;case667:if(!i[0].length)i[0]=[o,e];elsei.push([o,e]);i[i.length-1].XTI=[];break;case362:if(i.length===0){i[0]=[];i[0].XTI=[]}i[i.length-1].XTI=i[i.length-1].XTI.concat(e);i.XTI=i.XTI.concat(e);break;case361:break;case3072:;case3073:;case2071:;case534:;case677:;case158:;case157:;case610:;case2050:;case155:;case548:;case676:;case128:;case665:;case2128:;case2125:;case549:;case2053:;case596:;case2076:;case2075:;case2082:;case397:;case154:;case1117:;case553:;case2091:break;case35:a=true;break;case36:a=false;break;case37:break;case38:break;case16:break;default:if((f||"").indexOf("Begin")>0){}elseif((f||"").indexOf("End")>0){}elseif(!a||r.WTF)thrownewError("Unexpected record "+o+" "+f);}},r);Md(t);t.Names=n;t.supbooks=i;returnt}functionrp(e,r){Xr(e,"BrtBeginBundleShs");for(vart=0;t!=r.SheetNames.length;++t){vara=r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[t]&&r.Workbook.Sheets[t].Hidden||0;varn={Hidden:a,iTabID:t+1,strRelID:"rId"+(t+1),name:r.SheetNames[t]};Xr(e,"BrtBundleSh",$d(n))}Xr(e,"BrtEndBundleShs")}functiontp(r,t){if(!t)t=Wr(127);for(vara=0;a!=4;++a)t._W(4,0);bt("SheetJS",t);bt(e.version,t);bt(e.version,t);bt("7262",t);t.length=t.l;returnt.length>t.l?t.slice(0,t.l):t}functionap(e,r){if(!r)r=Wr(29);r._W(-4,0);r._W(-4,460);r._W(4,28800);r._W(4,17600);r._W(4,500);r._W(4,e);r._W(4,e);vart=120;r._W(1,t);returnr.length>r.l?r.slice(0,r.l):r}functionnp(e,r){if(!r.Workbook||!r.Workbook.Sheets)return;vart=r.Workbook.Sheets;vara=0,n=-1,i=-1;for(;a<t.length;++a){if(!t[a]||!t[a].Hidden&&n==-1)n=a;elseif(t[a].Hidden==1&&i==-1)i=a}if(i>n)return;Xr(e,"BrtBeginBookViews");Xr(e,"BrtBookView",ap(n));Xr(e,"BrtEndBookViews")}functionip(e,r){vart=zr();Xr(t,"BrtBeginBook");Xr(t,"BrtFileVersion",tp());Xr(t,"BrtWbProp",Qd(e.Workbook&&e.Workbook.WBProps||null));np(t,e,r);rp(t,e,r);Xr(t,"BrtEndBook");returnt.end()}functionsp(e,r,t){if(r.slice(-4)===".bin")returnep(e,t);returnGd(e,t)}functionfp(e,r,t,a,n,i,s,f){if(r.slice(-4)===".bin")returnhd(e,a,t,n,i,s,f);returnsu(e,a,t,n,i,s,f)}functionop(e,r,t,a,n,i,s,f){if(r.slice(-4)===".bin")returnId(e,a,t,n,i,s,f);returnTd(e,a,t,n,i,s,f)}functionlp(e,r,t,a,n,i,s,f){if(r.slice(-4)===".bin")returnMl(e,a,t,n,i,s,f);returnUl(e,a,t,n,i,s,f)}functioncp(e,r,t,a,n,i,s,f){if(r.slice(-4)===".bin")returnNl(e,a,t,n,i,s,f);returnLl(e,a,t,n,i,s,f)}functionhp(e,r,t,a){if(r.slice(-4)===".bin")returnLo(e,t,a);returnCo(e,t,a)}functionup(e,r,t){returnal(e,t)}functiondp(e,r,t){if(r.slice(-4)===".bin")returnvf(e,t);returnhf(e,t)}functionpp(e,r,t){if(r.slice(-4)===".bin")returnIl(e,t);returnSl(e,t)}functionvp(e,r,t){if(r.slice(-4)===".bin")returnvl(e,r,t);returndl(e,r,t)}functiongp(e,r,t){if(r.slice(-4)===".bin")return
if(re.valid==null)thrownewError("Encryption scheme unsupported");if(!re.valid)thrownewError("Password is incorrect");break;case"WriteAccess":O.lastuser=re;break;case"FileSharing":break;case"CodePage":switch(re){case21010:re=1200;break;case32768:re=1e4;break;case32769:re=1252;break;}o(O.codepage=re);$=true;break;case"RRTabId":O.rrtabid=re;break;case"WinProtect":O.winlocked=re;break;case"Template":break;case"BookBool":break;case"UsesELFs":break;case"MTRSettings":break;case"RefreshAll":;case"CalcCount":;case"CalcDelta":;case"CalcIter":;case"CalcMode":;case"CalcPrecision":;case"CalcSaveRecalc":t.opts[te]=re;break;case"CalcRefMode":O.CalcRefMode=re;break;case"Uncalced":break;case"ForceFullCalculation":t.opts.FullCalc=re;break;case"WsBool":if(re.fDialog)n["!type"]="dialog";break;case"XF":A.push(re);break;case"ExtSST":break;case"BookExt":break;case"RichTextStream":break;case"BkHim":break;case"SupBook":W.push([re]);W[W.length-1].XTI=[];break;case"ExternName":W[W.length-1].push(re);break;case"Index":break;case"Lbl":Y={Name:re.Name,Ref:Eh(re.rgce,s,null,W,O)};if(re.itab>0)Y.Sheet=re.itab-1;W.names.push(Y);if(!W[0]){W[0]=[];W[0].XTI=[]}W[W.length-1].push(re);if(re.Name=="_xlnm._FilterDatabase"&&re.itab>0)if(re.rgce&&re.rgce[0]&&re.rgce[0][0]&&re.rgce[0][0][0]=="PtgArea3d")K[re.itab-1]={ref:lt(re.rgce[0][0][1][2])};break;case"ExternCount":O.ExternCount=re;break;case"ExternSheet":if(W.length==0){W[0]=[];W[0].XTI=[]}W[W.length-1].XTI=W[W.length-1].XTI.concat(re);W.XTI=W.XTI.concat(re);break;case"NameCmt":if(O.biff<8)break;if(Y!=null)Y.Comment=re[1];break;case"Protect":n["!protect"]=re;break;case"Password":if(re!==0&&O.WTF)console.error("Password verifier: "+re);break;case"Prot4Rev":;case"Prot4RevPass":break;case"BoundSheet8":{i[re.pos]=re;O.snames.push(re.name)}break;case"EOF":{if(--X)break;if(s.e){if(s.e.r>0&&s.e.c>0){s.e.r--;s.e.c--;n["!ref"]=lt(s);if(r.sheetRows&&r.sheetRows<=s.e.r){varae=s.e.r;s.e.r=r.sheetRows-1;n["!fullref"]=n["!ref"];n["!ref"]=lt(s);s.e.r=ae}s.e.r++;s.e.c++}if(F.length>0)n["!merges"]=F;if(P.length>0)n["!objects"]=P;if(N.length>0)n["!cols"]=N;if(L.length>0)n["!rows"]=L;B.Sheets.push(T)}if(c==="")h=n;elsea[c]=n;n=r.dense?[]:{}}break;case"BOF":{if(O.biff===8)O.biff={9:2,521:3,1033:4}[Q]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[re.BIFFVer]||8;if(X++)break;S=true;n=r.dense?[]:{};if(O.biff<8&&!$){$=true;o(O.codepage=r.codepage||1252)}if(O.biff<5){if(c==="")c="Sheet1";s={s:{r:0,c:0},e:{r:0,c:0}};varne={pos:e.l-J,name:c};i[ne.pos]=ne;O.snames.push(c)}elsec=(i[Z]||{name:""}).name;if(re.dt==32)n["!type"]="chart";if(re.dt==64)n["!type"]="macro";F=[];P=[];O.arrayf=w=[];N=[];L=[];M=U=0;H=false;T={Hidden:(i[Z]||{hs:0}).hs,name:c}}break;case"Number":;case"BIFF2NUM":;case"BIFF2INT":{if(n["!type"]=="chart")if(r.dense?(n[re.r]||[])[re.c]:n[ft({c:re.c,r:re.r})])++re.c;E={ixfe:re.ixfe,XF:A[re.ixfe]||{},v:re.val,t:"n"};if(G>0)E.z=j[E.ixfe>>8&31];qp(E,r,t.opts.Date1904);R({c:re.c,r:re.r},E,r)}break;case"BoolErr":{E={ixfe:re.ixfe,XF:A[re.ixfe],v:re.val,t:re.t};if(G>0)E.z=j[E.ixfe>>8&31];qp(E,r,t.opts.Date1904);R({c:re.c,r:re.r},E,r)}break;case"RK":{E={ixfe:re.ixfe,XF:A[re.ixfe],v:re.rknum,t:"n"};if(G>0)E.z=j[E.ixfe>>8&31];qp(E,r,t.opts.Date1904);R({c:re.c,r:re.r},E,r)}break;case"MulRk":{for(varie=re.c;ie<=re.C;++ie){varse=re.rkrec[ie-re.c][0];E={ixfe:se,XF:A[se],v:re.rkrec[ie-re.c][1],t:"n"};if(G>0)E.z=j[E.ixfe>>8&31];qp(E,r,t.opts.Date1904);R({c:ie,r:re.r},E,r)}}break;case"Formula":{if(re.val=="String"){f=re;break}E=ev(re.val,re.cell.ixfe,re.tt);E.XF=A[E.ixfe];if(r.cellFormula){varfe=re.formula;if(fe&&fe[0]&&fe[0][0]&&fe[0][0][0]=="PtgExp"){varoe=fe[0][0][1][0],le=fe[0][0][1][1];varce=ft({r:oe,c:le});if(C[ce])E.f=""+Eh(re.formula,s,re.cell,W,O);elseE.F=((r.dense?(n[oe]||[])[le]:n[ce])||{}).F}elseE.f=""+Eh(re.formula,s,re.cell,W,O)}if(G>0)E.z=j[E.ixfe>>8&31];qp(E,r,t.opts.Date1904);R(re.cell,E,r);f=re}break;case"String":{if(f){f.val=re;E=ev(re,f.cell.ixfe,"s");E.XF=A[E.ixfe];if(r.cellFormula){E.f=""+Eh(f.formula,s,f.cell,W,O)}if(G>0)E.z=j[E.ixfe>>8&31];qp(E,r,t.opts.Date1904);R(f.cell,E,r);f=null}elsethrownew