t.Chartsheets=o;t.ChartNames=s.slice(l,l+o);break;}l+=o}}functionma(e,r,t){vara={};if(!r)r={};e=Ye(e);da.forEach(function(t){varn=(e.match(Qe(t[0]))||[])[1];switch(t[2]){case"string":if(n)r[t[1]]=Le(n);break;case"bool":r[t[1]]=n==="true";break;case"raw":vari=e.match(newRegExp("<"+t[0]+"[^>]*>([\\s\\S]*?)</"+t[0]+">"));if(i&&i.length>0)a[t[1]]=i[1];break;}});if(a.HeadingPairs&&a.TitlesOfParts)va(a.HeadingPairs,a.TitlesOfParts,r,t);returnr}varga=or("Properties",null,{xmlns:hr.EXT_PROPS,"xmlns:vt":hr.vt});functionba(e){varr=[],t=or;if(!e)e={};e.Application="SheetJS";r[r.length]=Ee;r[r.length]=ga;da.forEach(function(a){if(e[a[1]]===undefined)return;varn;switch(a[2]){case"string":n=We(String(e[a[1]]));break;case"bool":n=e[a[1]]?"true":"false";break;}if(n!==undefined)r[r.length]=t(a[0],n)});r[r.length]=t("HeadingPairs",t("vt:vector",t("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+t("vt:variant",t("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"}));r[r.length]=t("TitlesOfParts",t("vt:vector",e.SheetNames.map(function(e){return"<vt:lpstr>"+We(e)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"}));if(r.length>2){r[r.length]="</Properties>";r[1]=r[1].replace("/>",">")}returnr.join("")}hr.CUST_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties";ea.CUST_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties";varwa=/<[^>]+>[^<]*/g;functionka(e,r){vart={},a="";varn=e.match(wa);if(n)for(vari=0;i!=n.length;++i){vars=n[i],l=Pe(s);switch(l[0]){case"<?xml":break;case"<Properties":break;case"<property":a=Le(l.name);break;case"</property>":a=null;break;default:if(s.indexOf("<vt:")===0){varo=s.split(">");varf=o[0].slice(4),c=o[1];switch(f){case"lpstr":;case"bstr":;case"lpwstr":t[a]=Le(c);break;case"bool":t[a]=Ge(c);break;case"i1":;case"i2":;case"i4":;case"i8":;case"int":;case"uint":t[a]=parseInt(c,10);break;case"r4":;case"r8":;case"decimal":t[a]=parseFloat(c);break;case"filetime":;case"date":t[a]=oe(c);break;case"cy":;case"error":t[a]=Le(c);break;default:if(f.slice(-1)=="/")break;if(r.WTF&&typeofconsole!=="undefined")console.warn("Unexpected",s,f,o);}}elseif(s.slice(0,2)==="</"){}elseif(r.WTF)thrownewError(s);}}returnt}varya=or("Properties",null,{xmlns:hr.CUST_PROPS,"xmlns:vt":hr.vt});functionxa(e){varr=[Ee,ya];if(!e)returnr.join("");vart=1;Y(e).forEach(functiona(n){++t;r[r.length]=or("property",cr(e[n],true),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t,name:We(n)})});if(r.length>2){r[r.length]="</Properties>";r[1]=r[1].replace("/>",">")}returnr.join("")}functionSa(e){varr={},t=e.match(Oe),a=0;varn=false;if(t)for(;a!=t.length;++a){vars=Pe(t[a]);switch(s[0].replace(/\w*:/g,"")){case"<condense":break;case"<extend":break;case"<shadow":if(!s.val)break;case"<shadow>":;case"<shadow/>":r.shadow=1;break;case"</shadow>":break;case"<charset":if(s.val=="1")break;r.cp=i[parseInt(s.val,10)];break;case"<outline":if(!s.val)break;case"<outline>":;case"<outline/>":r.outline=1;break;case"</outline>":break;case"<rFont":r.name=s.val;break;case"<sz":r.sz=s.val;break;case"<strike":if(!s.val)break;case"<strike>":;case"<strike/>":r.strike=1;break;case"</strike>":break;case"<u":if(!s.val)break;switch(s.val){case"double":r.uval="double";break;case"singleAccounting":r.uval="single-accounting";break;case"doubleAccounting":r.uval="double-accounting";break;};case"<u>":;case"<u/>":r.u=1;break;case"</u>":break;case"<b":if(s.val=="0")break;case"<b>":;case"<b/>":r.b=1;break;case"</b>":break;case"<i":if(s.val=="0")break;case"<i>":;case"<i/>":r.i=1;break;case"</i>":break;case"<color":if(s.rgb)r.color=s.rgb.slice(2,8);break;case"<family":r.family=s.val;break;case"<vertAlign":r.valign=s.val;break;case"<scheme":break;case"<extLst":;case"<extLst>":;case"</extLst>":break;case"<ext":n=true;break;case"</ext>":n=false;break;default:if(s[0].charCodeAt(1)!==47&&!n)thrownewError("Unrecognized rich format "+s[0]);}}returnr}varCa=function(){vare=Qe("t"),r=Qe("rPr");functiont(t){vara=t.match(e);if(!a)return{t:"s",v:""};varn={t:"s",v:Le(a[1])};vari=t.
vari=t.sheetRows||1e7;vars={s:{r:0,c:0},e:{r:0,c:0}};varl=[],o=0;varf=[];varc=0,h=0,u=0,d=0,p=0,v=0;for(;c<n.length&&h<i;++c){varg=n[c];if(Ts(g)){if(t.display)continue;f[h]={hidden:true}}varb=g.children;for(u=d=0;u<b.length;++u){varw=b[u];if(t.display&&Ts(w))continue;vark=w.hasAttribute("v")?w.getAttribute("v"):er(w.innerHTML);vary=w.getAttribute("z");for(o=0;o<l.length;++o){varx=l[o];if(x.s.c==d&&x.s.r<=h&&h<=x.e.r){d=x.e.c+1;o=-1}}v=+w.getAttribute("colspan")||1;if((p=+w.getAttribute("rowspan"))>0||v>1)l.push({s:{r:h,c:d},e:{r:h+(p||1)-1,c:d+v-1}});varS={t:"s",v:k};varC=w.getAttribute("t")||"";if(k!=null){if(k.length==0)S.t=C||"z";elseif(t.raw||k.trim().length==0||C=="s"){}elseif(k==="TRUE")S={t:"b",v:true};elseif(k==="FALSE")S={t:"b",v:false};elseif(!isNaN(ue(k)))S={t:"n",v:ue(k)};elseif(!isNaN(de(k).getDate())){S={t:"d",v:oe(k)};if(!t.cellDates)S={t:"n",v:ee(S.v)};S.z=t.dateNF||P._table[14]}}if(S.z===undefined&&y!=null)S.z=y;if(t.dense){if(!a[h])a[h]=[];a[h][d]=S}elsea[pt({c:d,r:h})]=S;if(s.e.c<d)s.e.c=d;d+=v}++h}if(l.length)a["!merges"]=l;if(f.length)a["!rows"]=f;s.e.r=h-1;a["!ref"]=mt(s);if(h>=i)a["!fullref"]=mt((s.e.r=n.length-c+h-1,s));returna}functionAs(e,r){returnkt(_s(e,r),r)}functionTs(e){varr="";vart=Es(e);if(t)r=t(e).getPropertyValue("display");if(!r)r=e.style.display;returnr==="none"}functionEs(e){if(e.ownerDocument.defaultView&&typeofe.ownerDocument.defaultView.getComputedStyle==="function")returne.ownerDocument.defaultView.getComputedStyle;if(typeofgetComputedStyle==="function")returngetComputedStyle;returnnull}functionFs(e,r){if(!r)return0;vart=e.SheetNames.indexOf(r);if(t==-1)thrownewError("Sheet not found: "+r);returnt}functionOs(e){returnfunctionr(t,a){varn=Fs(t,a.sheet);returne.from_sheet(t.Sheets[t.SheetNames[n]],a,t)}}varDs=Os(Cs);varMs=Os({from_sheet:kl});varPs=Os(typeofSYLK!=="undefined"?SYLK:{});varRs=Os(typeofDIF!=="undefined"?DIF:{});varNs=Os(typeofPRN!=="undefined"?PRN:{});varIs=Os(typeofRTF!=="undefined"?RTF:{});varLs=Os({from_sheet:yl});varzs=Os(typeofDBF!=="undefined"?DBF:{});varBs=Os(typeofETH!=="undefined"?ETH:{});functionWs(e){returnfunctionr(t){for(vara=0;a!=e.length;++a){varn=e[a];if(t[n[0]]===undefined)t[n[0]]=n[1];if(n[2]==="n")t[n[0]]=Number(t[n[0]])}}}var$s=Ws([["cellNF",false],["cellHTML",true],["cellFormula",true],["cellStyles",false],["cellText",true],["cellDates",false],["sheetStubs",false],["sheetRows",0,"n"],["bookDeps",false],["bookSheets",false],["bookProps",false],["bookFiles",false],["bookVBA",false],["password",""],["WTF",false]]);varjs=Ws([["cellDates",false],["bookSST",false],["bookType","xlsx"],["compression",false],["WTF",false]]);functionUs(e){if(ea.WS.indexOf(e)>-1)return"sheet";if(ea.CS&&e==ea.CS)return"chart";if(ea.DS&&e==ea.DS)return"dialog";if(ea.MS&&e==ea.MS)return"macro";returne&&e.length?e:"sheet"}functionHs(e,r){if(!e)return0;try{e=r.map(functiona(r){if(!r.id)r.id=r.strRelID;return[r.name,e["!id"][r.id].Target,Us(e["!id"][r.id].Type)]})}catch(t){returnnull}return!e||e.length===0?null:e}functionVs(e,r,t,a,n,i,s,l,o,f,c,h){try{i[a]=ta(xe(e,t,true),r);varu=ye(e,r);vard;switch(l){case"sheet":d=os(u,r,n,o,i[a],f,c,h);break;case"chart":d=fs(u,r,n,o,i[a],f,c,h);if(!d||!d["!drawel"])break;varp=Te(d["!drawel"].Target,r);varv=ra(p);varm=En(xe(e,p,true),ta(xe(e,v,true),p));varg=Te(m,p);varb=ra(g);d=zi(xe(e,g,true),g,o,ta(xe(e,b,true),g),f,d);break;case"macro":d=cs(u,r,n,o,i[a],f,c,h);break;case"dialog":d=hs(u,r,n,o,i[a],f,c,h);break;default:thrownewError("Unrecognized sheet type "+l);}s[a]=d;varw=[];if(i&&i[a])Y(i[a]).forEach(function(t){if(i[a][t].Type==ea.CMNT){varn=Te(i[a][t].Target,r);w=vs(ye(e,n,true),n,o);if(!w||!w.length)return;Dn(d,w)}})}catch(k){if(o.WTF)throwk}}functionXs(e){returne.charAt(0)=="/"?e.slice(1):e}functionGs(e,r){R(P);r=r||{};$s(r);if(we(e,"META-INF/manifest.xml"))returnparse_ods(e,r);if(we(e,"objectdata.xml"))returnparse_ods(e,r);if(we(e,"Index/Document.iwa"))thrownewError("Unsupported NUMBERS file");vart=Se(e);vara=Zt(xe(e,"[Content_Types].xml"));va