e=ie(e);e.r+=r>8?1048576:r>5?65536:16384}vart=ct(e);if(e.cRel===0)t=it(t);if(e.rRel===0)t=rt(t);returnt}functionQr(e,r){if(e.s.r==0&&!e.s.rRel){if(e.e.r==(r.biff>=12?1048575:r.biff>=8?65536:16384)&&!e.e.rRel){return(e.s.cRel?"":"$")+nt(e.s.c)+":"+(e.e.cRel?"":"$")+nt(e.e.c)}}if(e.s.c==0&&!e.s.cRel){if(e.e.c==(r.biff>=12?65535:255)&&!e.e.cRel){return(e.s.rRel?"":"$")+et(e.s.r)+":"+(e.e.rRel?"":"$")+et(e.e.r)}}returnYr(e.s,r.biff)+":"+Yr(e.e,r.biff)}varJr={};varZr=function(e,r){vart;if(typeofr!=="undefined")t=r;elseif(typeofrequire!=="undefined"){try{t=undefined}catch(a){t=null}}e.rc4=function(e,r){vart=newArray(256);vara=0,n=0,i=0,s=0;for(n=0;n!=256;++n)t[n]=n;for(n=0;n!=256;++n){i=i+t[n]+e[n%e.length].charCodeAt(0)&255;s=t[n];t[n]=t[i];t[i]=s}n=i=0;varl=Buffer(r.length);for(a=0;a!=r.length;++a){n=n+1&255;i=(i+t[n])%256;s=t[n];t[n]=t[i];t[i]=s;l[a]=r[a]^t[t[n]+t[i]&255]}returnl};e.md5=function(e){if(!t)thrownewError("Unsupported crypto");returnt.createHash("md5").update(e).digest("hex")}};Zr(Jr,typeofcrypto!=="undefined"?crypto:undefined);functionqr(e){returnparseInt(tt(e),10)-1}functionet(e){return""+(e+1)}functionrt(e){returne.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}functiontt(e){returne.replace(/\$(\d+)$/,"$1")}functionat(e){varr=st(e),t=0,a=0;for(;a!==r.length;++a)t=26*t+r.charCodeAt(a)-64;returnt-1}functionnt(e){varr="";for(++e;e;e=Math.floor((e-1)/26))r=String.fromCharCode((e-1)%26+65)+r;returnr}functionit(e){returne.replace(/^([A-Z])/,"$$$1")}functionst(e){returne.replace(/^\$([A-Z])/,"$1")}functionlt(e){returne.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}functionft(e){varr=lt(e);return{c:at(r[0]),r:qr(r[1])}}functionct(e){returnnt(e.c)+et(e.r)}functionot(e){varr=e.split(":").map(ft);return{s:r[0],e:r[r.length-1]}}functionut(e,r){if(typeofr==="undefined"||typeofr==="number"){returnut(e.s,e.e)}if(typeofe!=="string")e=ct(e);if(typeofr!=="string")r=ct(r);returne==r?e:e+":"+r}functionht(e){varr={s:{c:0,r:0},e:{c:0,r:0}};vart=0,a=0,n=0;vari=e.length;for(t=0;a<i;++a){if((n=e.charCodeAt(a)-64)<1||n>26)break;t=26*t+n}r.s.c=--t;for(t=0;a<i;++a){if((n=e.charCodeAt(a)-48)<0||n>9)break;t=10*t+n}r.s.r=--t;if(a===i||e.charCodeAt(++a)===58){r.e.c=r.s.c;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}functiondt(e,r){vart=e.t=="d"&&rinstanceofDate;if(e.z!=null)try{returne.w=y.format(e.z,t?Z(r):r)}catch(a){}try{returne.w=y.format((e.XF||{}).numFmtId||(t?14:0),t?Z(r):r)}catch(a){return""+r}}functionvt(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)returndt(e,e.v);returndt(e,r)}functionpt(e,r){vart=r&&r.sheet?r.sheet:"Sheet1";vara={};a[t]=e;return{SheetNames:[t],Sheets:a}}functionmt(e,r,t){vara=t||{};varn=e?Array.isArray(e):a.dense;if(p!=null&&n==null)n=p;vari=e||(n?[]:{});vars=0,l=0;if(i&&a.origin!=null){if(typeofa.origin=="number")s=a.origin;else{varf=typeofa.origin=="string"?ft(a.origin):a.origin;s=f.r;l=f.c}}varc={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){varo=ht(i["!ref"]);c.s.c=o.s.c;c.s.r=o.s.r;c.e.c=Math.max(c.e.c,o.e.c);c.e.r=Math.max(c.e.r,o.e.r);if(s==-1)c.e.r=s=o.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]};if(Array.isArray(d.v)){d.f=r[u][h][1];d.v=d.v[0]}varv=s+u,m=l+h;if(c.s.r>v)c.s.r=v;if(c.s.c>m)c.s.c=m;if(c.e.r<v)c.e.r=v;if(c.e.c<m)c.e.c=m;if(d.v===null){if(d.f)d.t="n";elseif(!a.cellStubs)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||y._table[14];if(a.cellDates){d.t="d";d.w=y.format(d.z,Z(d.v))}else{d.t="n";d.v=Z(d.v);d.w=y.format(d.z,d.v)}}elsed.t="s";if(n){if(!i[v])i[v]=[];i[v][m]=d}else{varb=ct({c:m,r:v});i[b]=d}}}if(c.s.c<1e7)i["!ref"]=
returnt}functionCn(e){varr={};r.Size=e._R(4);e.l+=r.Size+3-(r.Size-1)%4;returnr}functionTn(e,r,t){vara=e._R(2),n,i=t||{};e.l+=2;if(r!==ta)if(a!==r&&ua.indexOf(r)===-1)thrownewError("Expected type "+r+" saw "+a);switch(r===ta?a:r){case2:n=e._R(2,"i");if(!i.raw)e.l+=2;returnn;case3:n=e._R(4,"i");returnn;case11:returne._R(4)!==0;case19:n=e._R(4);returnn;case30:returnhn(e,a,4).replace(R,"");case31:returndn(e);case64:returnon(e);case65:returnBn(e);case71:returnCn(e);case80:returnpn(e,a,!i.raw).replace(R,"");case81:returnmn(e,a).replace(R,"");case4108:returnkn(e);case4126:returngn(e);default:thrownewError("TypedPropertyValue unrecognized type "+r+" "+a);}}functionxn(e,r){vart=Xr(4),a=Xr(4);t._W(4,e==80?31:e);switch(e){case3:a._W(-4,r);break;case5:a=Xr(8);a._W(8,r,"f");break;case11:a._W(4,r?1:0);break;case64:a=un(r);break;case31:;case80:a=Xr(4+2*(r.length+1)+(r.length%2?0:2));a._W(4,r.length+1);a._W(0,r,"dbcs");while(a.l!=a.length)a._W(1,0);break;default:thrownewError("TypedPropertyValue unrecognized type "+e+" "+r);}returnA([t,a])}functionIn(e,r){vart=e.l;vara=e._R(4);varn=e._R(4);vari=[],s=0;varl=0;varc=-1,o={};for(s=0;s!=n;++s){varu=e._R(4);varh=e._R(4);i[s]=[u,h+t]}i.sort(function(e,r){returne[1]-r[1]});vard={};for(s=0;s!=n;++s){if(e.l!==i[s][1]){varv=true;if(s>0&&r)switch(r[i[s-1][0]].t){case2:if(e.l+2===i[s][1]){e.l+=2;v=false}break;case80:if(e.l<=i[s][1]){e.l=i[s][1];v=false}break;case4108:if(e.l<=i[s][1]){e.l=i[s][1];v=false}break;}if((!r||s==0)&&e.l<=i[s][1]){v=false;e.l=i[s][1]}if(v)thrownewError("Read Error: Expected address "+i[s][1]+" at "+e.l+" :"+s)}if(r){varp=r[i[s][0]];d[p.n]=Tn(e,p.t,{raw:true});if(p.p==="version")d[p.n]=String(d[p.n]>>16)+"."+("0000"+String(d[p.n]&65535)).slice(-4);if(p.n=="CodePage")switch(d[p.n]){case0:d[p.n]=1252;case874:;case932:;case936:;case949:;case950:;case1250:;case1251:;case1253:;case1254:;case1255:;case1256:;case1257:;case1258:;case1e4:;case1200:;case1201:;case1252:;case65e3:;case-536:;case65001:;case-535:f(l=d[p.n]>>>0&65535);break;default:thrownewError("Unsupported CodePage: "+d[p.n]);}}else{if(i[s][0]===1){l=d.CodePage=Tn(e,qt);f(l);if(c!==-1){varm=e.l;e.l=i[c][1];o=wn(e,l);e.l=m}}elseif(i[s][0]===0){if(l===0){c=s;e.l=i[s+1][1];continue}o=wn(e,l)}else{varb=o[i[s][0]];varg;switch(e[e.l]){case65:e.l+=4;g=Bn(e);break;case30:e.l+=4;g=pn(e,e[e.l-4]).replace(/\u0000+$/,"");break;case31:e.l+=4;g=pn(e,e[e.l-4]).replace(/\u0000+$/,"");break;case3:e.l+=4;g=e._R(4,"i");break;case19:e.l+=4;g=e._R(4);break;case5:e.l+=4;g=e._R(8,"f");break;case11:e.l+=4;g=Nn(e,4);break;case64:e.l+=4;g=ae(on(e));break;default:thrownewError("unparsed value: "+e[e.l]);}d[b]=g}}}e.l=t+a;returnd}varAn=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"].concat(Ya);functionRn(e){switch(typeofe){case"boolean":return11;case"number":return(e|0)==e?3:5;case"string":return31;case"object":if(einstanceofDate)return64;break;}return-1}function_n(e,r,t){vara=Xr(8),n=[],i=[];vars=8,l=0;varf=Xr(8),c=Xr(8);f._W(4,2);f._W(4,1200);c._W(4,1);i.push(f);n.push(c);s+=8+f.length;if(!r){c=Xr(8);c._W(4,0);n.unshift(c);varo=[Xr(4)];o[0]._W(4,e.length);for(l=0;l<e.length;++l){varu=e[l][0];f=Xr(4+4+2*(u.length+1)+(u.length%2?0:2));f._W(4,l+2);f._W(4,u.length+1);f._W(0,u,"dbcs");while(f.l!=f.length)f._W(1,0);o.push(f)}f=A(o);i.unshift(f);s+=8+f.length}for(l=0;l<e.length;++l){if(r&&!r[e[l][0]])continue;if(An.indexOf(e[l][0])>-1)continue;if(e[l][1]==null)continue;varh=e[l][1],d=0;if(r){d=+r[e[l][0]];varv=t[d];if(v.p=="version"&&typeofh=="string"){varp=h.split(".");h=(+p[0]<<16)+(+p[1]||0)}f=xn(v.t,h)}else{varm=Rn(h);if(m==-1){m=31;h=String(h)}f=xn(m,h)}i.push(f);c=Xr(8);c._W(4,!r?2+l:d);n.push(c);s+=8+f.length}varb=8*(i.length+1);for(l=0;l<i.length;++l){n[l]._W(4,b);b+=i[l].length}a._W(4,s);a._W(4,i.length);returnA([a].concat(n).concat(i))}functionyn(e,r,t){vara=e.content;if(!a)return{};Vr(a,0);varn,i,s,l,f=0;a.chk("feff","Byte Order: ");a._R(2);varc=a._R(4);varo=a._R(16);if(o!==U.utils.
S=true;break;case"E":varw=Vc(b[s].slice(1),{r:a,c:n});l[a][n]=[l[a][n],w];break;default:if(r&&r.WTF)thrownewError("SYLK bad record "+m);}if(S){l[a][n]=E;c=null}break;case"F":varB=0;for(s=1;s<b.length;++s)switch(b[s].charAt(0)){case"X":n=parseInt(b[s].slice(1))-1;++B;break;case"Y":a=parseInt(b[s].slice(1))-1;for(p=l.length;p<=a;++p)l[p]=[];break;case"M":v=parseInt(b[s].slice(1))/20;break;case"F":break;case"G":break;case"P":c=f[parseInt(b[s].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":d=b[s].slice(1).split(" ");for(p=parseInt(d[0],10);p<=parseInt(d[1],10);++p){v=parseInt(d[2],10);h[p-1]=v===0?{hidden:true}:{wch:v};nf(h[p-1])}break;case"C":n=parseInt(b[s].slice(1))-1;if(!h[n])h[n]={};break;case"R":a=parseInt(b[s].slice(1))-1;if(!u[a])u[a]={};if(v>0){u[a].hpt=v;u[a].hpx=cf(v)}elseif(v===0)u[a].hidden=true;break;default:if(r&&r.WTF)thrownewError("SYLK bad record "+m);}if(B<1)c=null;break;default:if(r&&r.WTF)thrownewError("SYLK bad record "+m);}}if(u.length>0)o["!rows"]=u;if(h.length>0)o["!cols"]=h;if(r&&r.sheetRows)l=l.slice(0,r.sheetRows);return[l,o]}functiont(r,t){vara=e(r,t);varn=a[0],i=a[1];vars=bt(n,t);G(i).forEach(function(e){s[e]=i[e]});returns}functiona(e,r){returnpt(t(e,r),r)}functionn(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"+Xc(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}functioni(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=ql(r.width);if(typeofr.wpx=="number")r.wch=ef(r.wpx);if(typeofr.wch=="number")a+=Math.round(r.wch)}if(a.charAt(a.length-1)!=" ")e.push(a)})}functions(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*ff(r.hpx)+";";if(a.length>2)e.push(a+"R"+(t+1))})}functionl(e,r){vart=["ID;PWXL;N;E"],a=[];varl=ht(e["!ref"]),f;varc=Array.isArray(e);varo="\r\n";t.push("P;PGeneral");t.push("F;P0;DG0G8;M255");if(e["!cols"])i(t,e["!cols"]);if(e["!rows"])s(t,e["!rows"]);t.push("B;Y"+(l.e.r-l.s.r+1)+";X"+(l.e.c-l.s.c+1)+";D"+[l.s.c,l.s.r,l.e.c,l.e.r].join(" "));for(varu=l.s.r;u<=l.e.r;++u){for(varh=l.s.c;h<=l.e.c;++h){vard=ct({r:u,c:h});f=c?(e[u]||[])[h]:e[d];if(!f||f.v==null&&(!f.f||f.F))continue;a.push(n(f,e,u,h,r))}}returnt.join(o)+o+a.join(o)+o+"E"+o}return{to_workbook:a,to_sheet:t,from_sheet:l}}();varqs=function(){functione(e,t){switch(t.type){case"base64":returnr(b.decode(e),t);case"binary":returnr(e,t);case"buffer":returnr(e.toString("binary"),t);case"array":returnr(ne(e),t);}thrownewError("Unrecognized type "+t.type)}functionr(e,r){vart=e.split("\n"),a=-1,n=-1,i=0,s=[];for(;i!==t.length;++i){if(t[i].trim()==="BOT"){s[++a]=[];n=0;continue}if(a<0)continue;varl=t[i].trim().split(",");varf=l[0],c=l[1];++i;varo=t[i].trim();switch(+f){case-1:if(o==="BOT"){s[++a]=[];n=0;continue}elseif(o!=="EOD")thrownewError("Unrecognized DIF special command "+o);break;case0:if(o==="TRUE")s[a][n]=true;elseif(o==="FALSE")s[a][n]=false;elseif(!isNaN(le(c)))s[a][n]=le(c);elseif(!isNaN(fe(c).getDate()))s[a][n]=ae(c);elses[a][n]=c;++n;break;case1:o=o.slice(1,o.length-1);s[a][n++]=o!==""?o:null;break;}if(o==="EOD")break}if(r&&r.sheetRows)s=s.slice(0,r.sheetRows);returns}functiont(r,t){returnbt(e(r,t),t)}functiona(e,r){returnpt(t(e,r),r)}varn=function(){vare=functiont(e,r,a,n,i){e.push(r);e.push(a+","+n);e.push('"'+i.replace(/"/g,'""')+'"')};varr=functiona(e,r,t,n){e.push(r+","+t);e.push(r==1?'"'+n.replace(/"/g,'""')+'"':n)};returnfunctionn(t){vara=[];varn=ht(t["!ref"]),i;vars=Array.isArray(t);e(a,"TABLE",0,1,"sheetjs");e(a,"VECTORS",0,n.e.r-n.s.r+1,"");e(a,"TUPLES",0,n.e.c-n.s.c+1,"");e(a,"DATA",0,0,"");for(varl=n.s.r;l<=n.e.r;++l){r(a,-1,0,"BOT");for(varf=n.s.c;f<=n.e.c;++f){varc=ct({r:l,c:f});i=s?(t[l]||[])[f]:t[c];if(!i){r(a,1,0,"");continue}switch(i.t){case"n":varo=m?i.w:i.v;if(!o&&i.v!=null)o=i.v;if(o==null){if(m&&i.f&&
n.outline=1;break;case"<shadow":n.shadow=l.val?We(l.val):1;break;case"<shadow/>":n.shadow=1;break;case"<condense":n.condense=l.val?We(l.val):1;break;case"<condense/>":n.condense=1;break;case"<extend":n.extend=l.val?We(l.val):1;break;case"<extend/>":n.extend=1;break;case"<sz":if(l.val)n.sz=+l.val;break;case"<sz/>":;case"</sz>":break;case"<vertAlign":if(l.val)n.vertAlign=l.val;break;case"<vertAlign/>":;case"</vertAlign>":break;case"<family":if(l.val)n.family=parseInt(l.val,10);break;case"<family/>":;case"</family>":break;case"<scheme":if(l.val)n.scheme=l.val;break;case"<scheme/>":;case"</scheme>":break;case"<charset":if(l.val=="1")break;l.codepage=i[parseInt(l.val,10)];break;case"<color":if(!n.color)n.color={};if(l.auto)n.color.auto=We(l.auto);if(l.rgb)n.color.rgb=l.rgb.slice(-6);elseif(l.indexed){n.color.index=parseInt(l.indexed,10);varf=Sa[n.color.index];if(n.color.index==81)f=Sa[1];if(!f)thrownewError(e);n.color.rgb=f[0].toString(16)+f[1].toString(16)+f[2].toString(16)}elseif(l.theme){n.color.theme=parseInt(l.theme,10);if(l.tint)n.color.tint=parseFloat(l.tint);if(l.theme&&t.themeElements&&t.themeElements.clrScheme){n.color.rgb=Kl(t.themeElements.clrScheme[n.color.theme].rgb,n.color.tint||0)}}break;case"<color/>":;case"</color>":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 "+l[0]+" in fonts")};}})}functionvf(e,r,t){r.NumberFmt=[];vara=G(y._table);for(varn=0;n<a.length;++n)r.NumberFmt[a[n]]=y._table[a[n]];vari=e[0].match(Be);if(!i)return;for(n=0;n<i.length;++n){vars=xe(i[n]);switch(Ie(s[0])){case"<numFmts":;case"</numFmts>":;case"<numFmts/>":;case"<numFmts>":break;case"<numFmt":{varl=_e(Ve(s.formatCode)),f=parseInt(s.numFmtId,10);r.NumberFmt[f]=l;if(f>0){if(f>392){for(f=392;f>60;--f)if(r.NumberFmt[f]==null)break;r.NumberFmt[f]=l}y.load(l,f)}}break;case"</numFmt>":break;default:if(t.WTF)thrownewError("unrecognized "+s[0]+" in numFmts");}}}functionpf(e){varr=["<numFmts>"];[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(vara=t[0];a<=t[1];++a)if(e[a]!=null)r[r.length]=rr("numFmt",null,{numFmtId:a,formatCode:De(e[a])})});if(r.length===1)return"";r[r.length]="</numFmts>";r[0]=rr("numFmts",null,{count:r.length-2}).replace("/>",">");returnr.join("")}varmf=["numFmtId","fillId","fontId","borderId","xfId"];varbf=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];functiongf(e,r,t){r.CellXf=[];vara;varn=false;e[0].match(Be).forEach(function(e){vari=xe(e),s=0;switch(Ie(i[0])){case"<cellXfs":;case"<cellXfs>":;case"<cellXfs/>":;case"</cellXfs>":break;case"<xf":;case"<xf/>":a=i;deletea[0];for(s=0;s<mf.length;++s)if(a[mf[s]])a[mf[s]]=parseInt(a[mf[s]],10);for(s=0;s<bf.length;++s)if(a[bf[s]])a[bf[s]]=We(a[bf[s]]);if(a.numFmtId>392){for(s=392;s>60;--s)if(r.NumberFmt[a.numFmtId]==r.NumberFmt[s]){a.numFmtId=s;break}}r.CellXf.push(a);break;case"</xf>":break;case"<alignment":;case"<alignment/>":varl={};if(i.vertical)l.vertical=i.vertical;if(i.horizontal)l.horizontal=i.horizontal;if(i.textRotation!=null)l.textRotation=i.textRotation;if(i.indent)l.indent=i.indent;if(i.wrapText)l.wrapText=i.wrapText;a.alignment=l;break;case"</alignment>":break;case"<protection":;case"</protection>":;case"<protection/>":break;case"<extLst":;case"<extLst>":;case"</extLst>":break;case"<ext":n=true;break;case"</ext>":n=false;break;default:if(t&&t.WTF){if(!n)thrownewError("unrecognized "+i[0]+" in cellXfs")};}})}functionEf(e){varr=[];r[r.length]=rr("cellXfs",null);e.forEach(function(e){r[r.length]=rr("xf",null,e)});r[r.length]="</cellXfs>";if(r.length===2)return"";r[0]=rr("cellXfs",null,{count:r.length-2}).replace("/>",">");returnr.join("")}varSf=functionnb(){vare=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/;varr=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/;vart=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/;vara=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/;varn=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(
returnArray(parseInt(r,10)+1).join(" ")}).replace(/<text:tab[^>]*\/>/g,"\t").replace(/<text:line-break\/>/g,"\n").replace(/<[^>]*>/g,""))};varr={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};returnfunctiont(a,n){vari=n||{};if(p!=null&&i.dense==null)i.dense=p;vars=Nv(a);varl=[],f;varc;varo={name:""},u="",h=0;vard;varv;varm={},b=[];varg=i.dense?[]:{};varE,S;vark={value:""};varw="",B=0,C;varT=-1,x=-1,I={s:{r:1e6,c:1e7},e:{r:0,c:0}};varA=0;varR={};var_=[],y={},F=0,D=0;varO=[],P=1,N=1;varL=[];varM={Names:[]};varU={};varW=["",""];varV=[],H={};varX="",G=0;varz=false,j=false;var$=0;Lv.lastIndex=0;s=s.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");while(E=Lv.exec(s))switch(E[3]=E[3].replace(/_.*$/,"")){case"table":;case"工作表":if(E[1]==="/"){if(I.e.c>=I.s.c&&I.e.r>=I.s.r)g["!ref"]=ut(I);if(i.sheetRows>0&&i.sheetRows<=I.e.r){g["!fullref"]=g["!ref"];I.e.r=i.sheetRows-1;g["!ref"]=ut(I)}if(_.length)g["!merges"]=_;if(O.length)g["!rows"]=O;d.name=Ve(d["名称"]||d.name);if(typeofJSON!=="undefined")JSON.stringify(d);b.push(d.name);m[d.name]=g;j=false}elseif(E[0].charAt(E[0].length-2)!=="/"){d=xe(E[0],false);T=x=-1;I.s.r=I.s.c=1e7;I.e.r=I.e.c=0;g=i.dense?[]:{};_=[];O=[];j=true}break;case"table-row-group":if(E[1]==="/")--A;else++A;break;case"table-row":;case"行":if(E[1]==="/"){T+=P;P=1;break}v=xe(E[0],false);if(v["行号"])T=v["行号"]-1;elseif(T==-1)T=0;P=+v["number-rows-repeated"]||1;if(P<10)for($=0;$<P;++$)if(A>0)O[T+$]={level:A};x=-1;break;case"covered-table-cell":++x;if(i.sheetStubs){if(i.dense){if(!g[T])g[T]=[];g[T][x]={t:"z"}}elseg[ct({r:T,c:x})]={t:"z"}}break;case"table-cell":;case"数据":if(E[0].charAt(E[0].length-2)==="/"){++x;k=xe(E[0],false);N=parseInt(k["number-columns-repeated"]||"1",10);S={t:"z",v:null};if(k.formula&&i.cellFormula!=false)S.f=Uu(_e(k.formula));if((k["数据类型"]||k["value-type"])=="string"){S.t="s";S.v=_e(k["string-value"]||"");if(i.dense){if(!g[T])g[T]=[];g[T][x]=S}else{g[ct({r:T,c:x})]=S}}x+=N-1}elseif(E[1]!=="/"){++x;N=1;varK=P?T+P-1:T;if(x>I.e.c)I.e.c=x;if(x<I.s.c)I.s.c=x;if(T<I.s.r)I.s.r=T;if(K>I.e.r)I.e.r=K;k=xe(E[0],false);V=[];H={};S={t:k["数据类型"]||k["value-type"],v:null};if(i.cellFormula){if(k.formula)k.formula=_e(k.formula);if(k["number-matrix-columns-spanned"]&&k["number-matrix-rows-spanned"]){F=parseInt(k["number-matrix-rows-spanned"],10)||0;D=parseInt(k["number-matrix-columns-spanned"],10)||0;y={s:{r:T,c:x},e:{r:T+F-1,c:x+D-1}};S.F=ut(y);L.push([y,S.F])}if(k.formula)S.f=Uu(k.formula);elsefor($=0;$<L.length;++$)if(T>=L[$][0].s.r&&T<=L[$][0].e.r)if(x>=L[$][0].s.c&&x<=L[$][0].e.c)S.F=L[$][1]}if(k["number-columns-spanned"]||k["number-rows-spanned"]){F=parseInt(k["number-rows-spanned"],10)||0;D=parseInt(k["number-columns-spanned"],10)||0;y={s:{r:T,c:x},e:{r:T+F-1,c:x+D-1}};_.push(y)}if(k["number-columns-repeated"])N=parseInt(k["number-columns-repeated"],10);switch(S.t){case"boolean":S.t="b";S.v=We(k["boolean-value"]);break;case"float":S.t="n";S.v=parseFloat(k.value);break;case"percentage":S.t="n";S.v=parseFloat(k.value);break;case"currency":S.t="n";S.v=parseFloat(k.value);break;case"date":S.t="d";S.v=ae(k["date-value"]);if(!i.cellDates){S.t="n";S.v=Z(S.v)}S.z="m/d/yy";break;case"time":S.t="n";S.v=ee(k["time-value"])/86400;break;case"number":S.t="n";S.v=parseFloat(k["数据数值"]);break;default:if(S.t==="string"||S.t==="text"||!S.t){S.t="s";if(k["string-value"]!=null)w=_e(k["string-value"])}elsethrownewError("Unsupported value type "+S.t);}}else{z=false;if(S.t==="s"){S.v=w||"";z=B==0}if(U.Target)S.l=U;if(V.length>0){S.c=V;V=[]}if(w&&i.cellText!==false)S.w=w;if(!z||i.sheetStubs){if(!(i.sheetRows&&i.sheetRows<=T)){for(varY=0;Y<P;++Y){N=parseInt(k["number-columns-repeated"]||"1",10);if(i.dense){if(!g[T+Y])g[T+Y]=[];g[T+Y][x]=Y==0?S:ie(S);while(--N>0)g[T+Y][x+N]=ie(S)}else{g[ct({r:T+Y,c:x})]=S;while(--N>0)g[ct({r:T+Y,c:x+N})]=ie(S)}if(I.e.c<=x)I.e.c=x}}}N=par
}elseh.__rowNum__=t}if(!s||e[t])for(varv=r.s.c;v<=r.e.c;++v){varp=s?e[t][v]:e[a[v]+f];if(p===undefined||p.t===undefined){if(c===undefined)continue;if(i[v]!=null){h[i[v]]=c}continue}varm=p.v;switch(p.t){case"z":if(m==null)break;continue;case"e":m=void0;break;case"s":;case"d":;case"b":;case"n":break;default:thrownewError("unrecognized type "+p.t);}if(i[v]!=null){if(m==null){if(c!==undefined)h[i[v]]=c;elseif(o&&m===null)h[i[v]]=null;elsecontinue}else{h[i[v]]=o?m:vt(p,m,l)}if(m!=null)u=false}}return{row:h,isempty:u}}functionRm(e,r){if(e==null||e["!ref"]==null)return[];vart={t:"n",v:0},a=0,n=1,i=[],s=0,l="";varf={s:{r:0,c:0},e:{r:0,c:0}};varc=r||{};varo=c.range!=null?c.range:e["!ref"];if(c.header===1)a=1;elseif(c.header==="A")a=2;elseif(Array.isArray(c.header))a=3;switch(typeofo){case"string":f=ht(o);break;case"number":f=ht(e["!ref"]);f.s.r=o;break;default:f=o;}if(a>0)n=0;varu=et(f.s.r);varh=[];vard=[];varv=0,p=0;varm=Array.isArray(e);varb=f.s.r,g=0,E=0;if(m&&!e[b])e[b]=[];for(g=f.s.c;g<=f.e.c;++g){h[g]=nt(g);t=m?e[b][g]:e[h[g]+u];switch(a){case1:i[g]=g-f.s.c;break;case2:i[g]=h[g];break;case3:i[g]=c.header[g-f.s.c];break;default:if(t==null)t={w:"__EMPTY",t:"s"};l=s=vt(t,null,c);p=0;for(E=0;E<i.length;++E)if(i[E]==l)l=s+"_"+++p;i[g]=l;}}for(b=f.s.r+n;b<=f.e.r;++b){varS=Am(e,f,b,h,a,i,m,c);if(S.isempty===false||(a===1?c.blankrows!==false:!!c.blankrows))d[v++]=S.row}d.length=v;returnd}var_m=/"/g;functionym(e,r,t,a,n,i,s,l){varf=true;varc=[],o="",u=et(t);for(varh=r.s.c;h<=r.e.c;++h){if(!a[h])continue;vard=l.dense?(e[t]||[])[h]:e[a[h]+u];if(d==null)o="";elseif(d.v!=null){f=false;o=""+vt(d,null,l);for(varv=0,p=0;v!==o.length;++v)if((p=o.charCodeAt(v))===n||p===i||p===34){o='"'+o.replace(_m,'""')+'"';break}if(o=="ID")o='"ID"'}elseif(d.f!=null&&!d.F){f=false;o="="+d.f;if(o.indexOf(",")>=0)o='"'+o.replace(_m,'""')+'"'}elseo="";c.push(o)}if(l.blankrows===false&&f)returnnull;returnc.join(s)}functionFm(e,r){vart=[];vara=r==null?{}:r;if(e==null||e["!ref"]==null)return"";varn=ht(e["!ref"]);vari=a.FS!==undefined?a.FS:",",s=i.charCodeAt(0);varl=a.RS!==undefined?a.RS:"\n",f=l.charCodeAt(0);varc=newRegExp((i=="|"?"\\|":i)+"+$");varo="",u=[];a.dense=Array.isArray(e);varh=a.skipHidden&&e["!cols"]||[];vard=a.skipHidden&&e["!rows"]||[];for(varv=n.s.c;v<=n.e.c;++v)if(!(h[v]||{}).hidden)u[v]=nt(v);for(varp=n.s.r;p<=n.e.r;++p){if((d[p]||{}).hidden)continue;o=ym(e,n,p,u,s,f,i,a);if(o==null){continue}if(a.strip)o=o.replace(c,"");t.push(o+l)}deletea.dense;returnt.join("")}functionDm(e,r){if(!r)r={};r.FS="\t";r.RS="\n";vart=Fm(e,r);if(typeofcptable=="undefined"||r.type=="string")returnt;vara=cptable.utils.encode(1200,t,"str");returnString.fromCharCode(255)+String.fromCharCode(254)+a}functionOm(e){varr="",t,a="";if(e==null||e["!ref"]==null)return[];varn=ht(e["!ref"]),i="",s=[],l;varf=[];varc=Array.isArray(e);for(l=n.s.c;l<=n.e.c;++l)s[l]=nt(l);for(varo=n.s.r;o<=n.e.r;++o){i=et(o);for(l=n.s.c;l<=n.e.c;++l){r=s[l]+i;t=c?(e[o]||[])[l]:e[r];a="";if(t===undefined)continue;elseif(t.F!=null){r=t.F;if(!t.f)continue;a=t.f;if(r.indexOf(":")==-1)r=r+":"+r}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;f[f.length]=r+"="+a}}returnf}functionPm(e,r,t){vara=t||{};varn=+!a.skipHeader;vari=e||{};vars=0,l=0;if(i&&a.origin!=null){if(typeofa.origin=="number")s=a.origin;else{varf=typeofa.origin=="string"?ft(a.origin):a.origin;s=f.r;l=f.c}}varc;varo={s:{c:0,r:0},e:{c:l,r:s+r.length-1+n}};if(i["!ref"]){varu=ht(i["!ref"]);o.e.c=Math.max(o.e.c,u.e.c);o.e.r=Math.max(o.e.r,u.e.r);if(s==-1){s=o.e.r+1;o.e.r=s+r.length-1+n}}varh=a.header||[],d=0;r.forEach(function(e,r){G(e).forEach(function(t){if((d=h.indexOf(t))==-1)h[d=h.length]=t;varf=e[t];varo="z";varu="";if(f&&typeoff==="object"&&!(finstanceofDate)){i[ct({c:l+d,r:s+r+n})]=f}else{if(typeoff=="number")o="n";elseif(typeoff=="boolean")o="b";elseif(typeoff=="string"