sheetjs_sheetjs/dist/xlsx.min.js

13 lines
340 KiB
JavaScript
Raw Normal View History

/* xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
var XLSX={};(function e(r){r.version="0.11.0";var t=1200;if(typeof module!=="undefined"&&typeof require!=="undefined"){if(typeof cptable==="undefined")global.cptable=null}function a(){n(1200)}var n=function(e){t=e};function s(e){var r=[];for(var t=0,a=e.length;t<a;++t)r[t]=e.charCodeAt(t);return r}function i(e){var r=[];for(var t=0;t<e.length>>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t)+(e.charCodeAt(2*t+1)<<8));return r.join("")}function f(e){var r=[];for(var t=0;t<e.length>>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t+1)+(e.charCodeAt(2*t)<<8));return r.join("")}var l=function(e){var r=e.charCodeAt(0),t=e.charCodeAt(1);if(r==255&&t==254)return i(e.substr(2));if(r==254&&t==255)return f(e.substr(2));if(r==65279)return e.substr(1);return e};var c=function IS(e){return String.fromCharCode(e)};if(typeof cptable!=="undefined"){n=function(e){t=e};l=function(e){if(e.charCodeAt(0)===255&&e.charCodeAt(1)===254){return cptable.utils.decode(1200,s(e.substr(2)))}return e};c=function xS(e){if(t===1200)return String.fromCharCode(e);return cptable.utils.decode(t,[e&255,e>>8])[0]}}var o=null;var u=true;var h=function AS(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{encode:function(r){var t="";var a,n,s,i,f,l,c;for(var o=0;o<r.length;){a=r.charCodeAt(o++);n=r.charCodeAt(o++);s=r.charCodeAt(o++);i=a>>2;f=(a&3)<<4|n>>4;l=(n&15)<<2|s>>6;c=s&63;if(isNaN(n)){l=c=64}else if(isNaN(s)){c=64}t+=e.charAt(i)+e.charAt(f)+e.charAt(l)+e.charAt(c)}return t},decode:function r(t){var a="";var n,s,i;var f,l,c,o;t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var u=0;u<t.length;){f=e.indexOf(t.charAt(u++));l=e.indexOf(t.charAt(u++));c=e.indexOf(t.charAt(u++));o=e.indexOf(t.charAt(u++));n=f<<2|l>>4;s=(l&15)<<4|c>>2;i=(c&3)<<6|o;a+=String.fromCharCode(n);if(c!=64){a+=String.fromCharCode(s)}if(o!=64){a+=String.fromCharCode(i)}}return a}}}();var d=typeof Buffer!=="undefined"&&typeof process!=="undefined"&&typeof process.versions!=="undefined"&&process.versions.node;function v(e){return new(d?Buffer:Array)(e)}function b(e){if(d)return new Buffer(e,"binary");return e.split("").map(function(e){return e.charCodeAt(0)&255})}var p=function(e){return[].concat.apply([],e)};var m=/\u0000/g,g=/[\u0001-\u0006]/;var E={};var S=function RS(e){e.version="0.10.0";function r(e){var r="",t=e.length-1;while(t>=0)r+=e.charAt(t--);return r}function t(e,r){var t="";while(t.length<r)t+=e;return t}function a(e,r){var a=""+e;return a.length>=r?a:t("0",r-a.length)+a}function n(e,r){var a=""+e;return a.length>=r?a:t(" ",r-a.length)+a}function s(e,r){var a=""+e;return a.length>=r?a:a+t(" ",r-a.length)}function i(e,r){var a=""+Math.round(e);return a.length>=r?a:t("0",r-a.length)+a}function f(e,r){var a=""+e;return a.length>=r?a:t("0",r-a.length)+a}var l=Math.pow(2,32);function c(e,r){if(e>l||e<-l)return i(e,r);var t=Math.round(e);return f(t,r)}function o(e,r){r=r||0;return e.length>=7+r&&(e.charCodeAt(r)|32)===103&&(e.charCodeAt(r+1)|32)===101&&(e.charCodeAt(r+2)|32)===110&&(e.charCodeAt(r+3)|32)===101&&(e.charCodeAt(r+4)|32)===114&&(e.charCodeAt(r+5)|32)===97&&(e.charCodeAt(r+6)|32)===108}var u=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]];var h=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function d(e){e[0]="General";e[1]="0";e[2]="0.00";e[3]="#,##0";e[4]="#,##0.00";e[9]="0%";e[10]="0.00%";e[11]="0.00E+00";e[12]="# ?/?";e[13]="# ??/??";e[14]="m/d/yy";e[15]="d-mmm-yy";e[16]="d-mmm";e[17]="mmm-yy";e[18]="h:mm AM/PM";e[19]="h:mm:ss AM/PM";e[20]="h:mm";e[21]="h:mm:ss";e[22]="m/d/yy h:mm";e[37]="#,##0 ;(#,##0)";e[38]="#,##0 ;[Red](#,##0)";e[39]="#,##0.00;(#,##0.00)";e[40]="#,##0.00;[Red](#,##0.00)";e[45]="mm:ss";e[46]="[h]:mm:ss";e[47]="mmss.0";e[48]="##0.0E+0";e[49]="@";e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "';e[65535]="General"}var v={};d(v);function b(e
ReadShift:hr,CheckField:mr,prep_blob:gr,bconcat:p,consts:T};return e}();if(typeof require!=="undefined"&&typeof module!=="undefined"&&typeof w==="undefined"){module.exports=I}function x(e){return e!==undefined&&e!==null}function A(e){return Object.keys(e)}function R(e,r){var t=[],a=A(e);for(var n=0;n!==a.length;++n)t[e[a[n]][r]]=a[n];return t}function D(e){var r=[],t=A(e);for(var a=0;a!==t.length;++a)r[e[t[a]]]=t[a];return r}function O(e){var r=[],t=A(e);for(var a=0;a!==t.length;++a)r[e[t[a]]]=parseInt(t[a],10);return r}function F(e){var r=[],t=A(e);for(var a=0;a!==t.length;++a){if(r[e[t[a]]]==null)r[e[t[a]]]=[];r[e[t[a]]].push(t[a])}return r}var P=new Date(1899,11,30,0,0,0);var y=P.getTime()+((new Date).getTimezoneOffset()-P.getTimezoneOffset())*6e4;function _(e,r){var t=e.getTime();if(r)t+=1462*24*60*60*1e3;return(t-y)/(24*60*60*1e3)}function N(e){var r=new Date;r.setTime(e*24*60*60*1e3+y);return r}function M(e){var r=0,t=0,a=false;var n=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!n)throw new Error("|"+e+"| is not an ISO8601 Duration");for(var s=1;s!=n.length;++s){if(!n[s])continue;t=1;if(s>3)a=true;switch(n[s].substr(n[s].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+n[s].substr(n[s].length-1));case"D":t*=24;case"H":t*=60;case"M":if(!a)throw new Error("Unsupported ISO Duration Field: M");else t*=60;case"S":break;}r+=t*parseInt(n[s],10)}return r}var L=new Date("2017-02-19T19:06:09.000Z");if(isNaN(L.getFullYear()))L=new Date("2/19/17");var U=L.getFullYear()==2017;function W(e,r){var t=new Date(e);if(U){if(r>0)t.setTime(t.getTime()+t.getTimezoneOffset()*60*1e3);else if(r<0)t.setTime(t.getTime()-t.getTimezoneOffset()*60*1e3);return t}if(e instanceof Date)return e;if(L.getFullYear()==1917&&!isNaN(t.getFullYear())){var a=t.getFullYear();if(e.indexOf(""+a)>-1)return t;t.setFullYear(t.getFullYear()+100);return t}var n=e.match(/\d+/g)||["2017","2","19","0","0","0"];return new Date(+n[0],+n[1]-1,+n[2],+n[3]||0,+n[4]||0,+n[5]||0)}function H(e){var r="";for(var t=0;t!=e.length;++t)r+=String.fromCharCode(e[t]);return r}function V(e){var r=[];for(var t=0;t!=e.length;++t)r.push(e.charCodeAt(t));return r}function X(e){if(typeof JSON!="undefined"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;var r={};for(var t in e)if(e.hasOwnProperty(t))r[t]=X(e[t]);return r}function G(e,r){var t="";while(t.length<r)t+=e;return t}function z(e){var r=new Date(e),t=new Date(NaN);var a=r.getYear(),n=r.getMonth(),s=r.getDate();if(isNaN(s))return t;if(a<0||a>8099)return t;if((n>0||s>1)&&a!=101)return r;if(e.toLowerCase().match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/))return r;if(!e.match(/[a-zA-Z]/))return r;return t}function j(e){if(!e)return null;if(e.data)return l(e.data);if(e.asNodeBuffer&&d)return l(e.asNodeBuffer().toString("binary"));if(e.asBinary)return l(e.asBinary());if(e._data&&e._data.getContent)return l(H(Array.prototype.slice.call(e._data.getContent(),0)));return null}function K(e){if(!e)return null;if(e.data)return s(e.data);if(e.asNodeBuffer&&d)return e.asNodeBuffer();if(e._data&&e._data.getContent){var r=e._data.getContent();if(typeof r=="string")return V(r);return Array.prototype.slice.call(r)}return null}function Y(e){return e&&e.name.slice(-4)===".bin"?K(e):j(e)}function $(e,r){var t=A(e.files);var a=r.toLowerCase(),n=a.replace(/\//g,"\\");for(var s=0;s<t.length;++s){var i=t[s].toLowerCase();if(a==i||n==i)return e.files[t[s]]}return null}function Q(e,r){var t=$(e,r);if(t==null)throw new Error("Cannot find file "+r+" in zip");return t}function Z(e,r,t){if(!t)return Y(Q(e,r));if(!r)return null;try{return Z(e,r)}catch(a){return null}}function J(e,r,t){if(!t)return j(Q(e,r));if(!r)return null;try{return J(e,r)}catch(a){return null}}var q,ee;if(typeof JSZip!=="undefined")ee=JSZip;if(typeof exports!=="undefined"){if(typeof module!=="undefined"&&module.exports){if(typeof ee==="undefined")ee=null;q=null}}function re(e,r){var t=r.split("/");if(r.slice(-1)!="/")t.pop();var a=e.split("/");while(a.length!==0){var n=a.s
workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};A(e).forEach(function(r){if(!e[r].xlsm)e[r].xlsm=e[r].xlsx});A(e).forEach(function(r){A(e[r]).forEach(function(t){Zt[e[r][t]]=r})});return e}();var qt=F(Zt);Ne.CT="http://schemas.openxmlformats.org/package/2006/content-types";function ea(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],TODO:[],xmlns:""}}function ra(e,r){var t=ea();if(!e||!e.match)return t;var a={};(e.match(ae)||[]).forEach(function(e){var r=ie(e);switch(r[0].replace(ne,"<")){case"<?xml":break;case"<Types":t.xmlns=r["xmlns"+(r[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":a[r.Extension]=r.ContentType;break;case"<Override":if(t[Zt[r.ContentType]]!==undefined)t[Zt[r.ContentType]].push(r.PartName);break;}});if(t.xmlns!==Ne.CT)throw new Error("Unknown Namespace: "+t.xmlns);t.calcchain=t.calcchains.length>0?t.calcchains[0]:"";t.sst=t.strs.length>0?t.strs[0]:"";t.style=t.styles.length>0?t.styles[0]:"";t.defaults=a;delete t.calcchains;return t}var ta=Fe("Types",null,{xmlns:Ne.CT,"xmlns:xsd":Ne.xsd,"xmlns:xsi":Ne.xsi});var aa=[["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels",qt.rels[0]]].map(function(e){return Fe("Default",null,{Extension:e[0],ContentType:e[1]})});function na(e,r){var t=[],a;t[t.length]=_e;t[t.length]=ta;t=t.concat(aa);var n=function(n){if(e[n]&&e[n].length>0){a=e[n][0];t[t.length]=Fe("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:Jt[n][r.bookType||"xlsx"]})}};var s=function(a){(e[a]||[]).forEach(function(e){t[t.length]=Fe("Override",null,{PartName:(e[0]=="/"?"":"/")+e,ContentType:Jt[a][r.bookType||"xlsx"]})})};var i=function(r){(e[r]||[]).forEach(function(e){t[t.length]=Fe("Override",null,{PartName:(e[0]=="/"?"":"/")+e,ContentType:qt[r][0]})})};n("workbooks");s("sheets");s("charts");i("themes");["strs","styles"].forEach(n);["coreprops","extprops","custprops"].forEach(i);i("vba");i("comments");i("drawings");if(t.length>2){t[t.length]="</Types>";t[1]=t[1].replace("/>",">")}return t.join("")}var sa={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function ia(e){var r=e.lastIndexOf("/");return e.substr(0,r+1)+"_rels
area:false};if(t.biff!=5){e.l+=r;return a}var n=e.read_shift(1);e.l+=3;if(n&16)a.area=true;return a}var Hs=Er;var Vs=Er;var Xs=Er;var Gs=an;var zs=Bn;var js=Ct;var Ks=nn;var Ys=nn;var $s=Ct;var Qs=an;var Zs=nn;var Js=an;var qs=rn;var ei=an;var ri=nn;var ti=an;var ai=an;var ni=nn;var si=rn;var ii=rn;var fi=rn;var li=rn;var ci=rn;var oi=nn;var ui=ds;var hi=nn;var di=an;var vi=ds;var bi=wn;var pi=rn;var mi=Ct;var gi=rn;var Ei=an;var Si=nn;var ki=an;var Bi=an;var Ci=nn;var Ti=an;var wi=nn;var Ii=an;var xi=an;var Ai=Ct;var Ri=sn;var Di=an;var Oi=sn;var Fi=hn;var Pi=an;var yi=Ct;var _i=an;var Ni=an;var Mi=an;var Li=Er;var Ui=Er;var Wi=Er;var Hi=Er;var Vi=Er;var Xi=Er;var Gi=Er;var zi=Er;var ji=Er;var Ki=Er;var Yi=Er;var $i=Er;var Qi=Er;var Zi=Er;var Ji=Er;var qi=Er;var ef=Er;var rf=Er;var tf=Er;var af=Er;var nf=Er;var sf=Er;var ff=Er;var lf=Er;var cf=Er;var of=Er;var uf=Er;var hf=Er;var df=Er;var vf=Er;var bf=Er;var pf=Er;var mf=Er;var gf=Er;var Ef=Er;var Sf=Er;var kf=Er;var Bf=Er;var Cf=Er;var Tf=Er;var wf=Er;var If=Er;var xf=Er;var Af=Er;var Rf=Er;var Df=Er;var Of=Er;var Ff=Er;var Pf=Er;var yf=Er;var _f=Er;var Nf=Er;var Mf=Er;var Lf=Er;var Uf=Er;var Wf=Er;var Hf=Er;var Vf=Er;var Xf=Er;var Gf=Er;var zf=Er;var jf=Er;var Kf=Er;var Yf=Er;var $f=Er;var Qf=Er;var Zf=Er;var Jf=Er;var qf=Er;var el=Er;var rl=Er;var tl=Er;var al=Er;var nl=Er;var sl=Er;var il=Er;var fl=Er;var ll=Er;var cl=Er;var ol=Er;var ul=Er;var hl=Er;var dl=Er;var vl=Er;var bl=Er;var pl=Er;var ml=Er;var gl=Er;var El=Er;var Sl=Er;var kl=Er;var Bl=Er;var Cl=Er;var Tl=Er;var wl=Er;var Il=Er;var xl=Er;var Al=Er;var Rl=Er;var Dl=Er;var Ol=Er;var Fl=Er;var Pl=Er;var yl=Er;var _l=Er;var Nl=Er;var Ml=Er;var Ll=Er;var Ul=Er;var Wl=Er;var Hl=hn;var Vl=Er;var Xl=Er;var Gl=Er;var zl=Er;var jl=Er;var Kl=Er;var Yl=Er;var $l=Er;var Ql=Er;var Zl=Er;var Jl=Er;var ql=Er;var ec=Er;var rc=Er;var tc=Er;var ac=Er;var nc=Er;var sc=Er;var ic=Er;var fc=Er;var lc=Er;var cc=Er;var oc=Er;var uc=Er;var hc=Er;var dc=Er;var vc=Er;var bc=Er;var pc=Er;var mc=Er;var gc=Er;var Ec=Er;var Sc=Er;var kc=Er;var Bc=Er;var Cc=Er;var Tc=Er;var wc=Er;var Ic=Er;var xc=Er;var Ac=Er;var Rc=Er;var Dc=Er;var Oc=Er;var Fc=Er;var Pc=Er;var yc=Er;var _c=Er;var Nc=Er;var Mc=Er;var Lc=Er;var Uc=Er;var Wc=Er;var Hc=Er;var Vc=Er;var Xc=Er;var Gc=Er;var zc=Er;var jc=Er;var Kc=Er;var Yc=Er;var $c=Er;var Qc=Er;var Zc=Er;var Jc=Er;var qc=Er;var eo=Er;var ro=Er;var to=Er;var ao=Er;var no=Er;var so=Er;var io=Er;var fo=Er;var lo=Er;var co=Er;var oo=Er;var uo=Er;var ho=Er;var vo=Er;var bo=Er;var po=Er;var mo=Er;var go=Er;var Eo=Er;var So=Er;var ko=Er;var Bo=Er;var Co=Er;var To=Er;var wo=Er;var Io=Er;var xo=Er;var Ao=Er;var Ro=Er;var Do=Er;var Oo=Er;var Fo=Er;var Po=Er;var yo=Er;var _o=Er;var No=Er;var Mo=Er;var Lo=Er;var Uo=Er;var Wo=Er;var Ho=Er;var Vo=Er;var Xo=Er;var Go=Er;var zo=Er;var jo=Er;var Ko=Er;var Yo=Er;var $o=Er;var Qo=Er;var Zo=Er;var Jo=Er;var qo=Er;var eu=Er;var ru=Er;var tu=Er;var au=Er;var nu=Er;var su=Er;var iu=Er;var fu=Er;var lu=Er;var cu=Er;var ou=Er;var uu=Er;var hu=Er;var du=Er;var vu=Er;var bu=Er;var pu=Er;var mu=Er;var gu=Er;var Eu=Er;var Su=Er;var ku=Er;var Bu=Er;function Cu(e,r,t){var a=e.l+r;var n=e.read_shift(2);var s=e.read_shift(2);var i=e.read_shift(4);var f={fmt:n,env:s,len:i,data:e.slice(e.l,e.l+i)};e.l+=i;return f}function Tu(e){var r=e.read_shift(1);return e.read_shift(r,"sbcs-cont")}function wu(e,r,t){var a=Bn(e,6);++e.l;var n=dn(e,r-7,t);a.t="str";a.val=n;return a}function Iu(e,r,t){var a=Bn(e,6);++e.l;var n=Ct(e,8);a.t="n";a.val=n;return a}function xu(e,r){var t=Bn(e,6);++e.l;var a=e.read_shift(2);t.t="n";t.val=a;return t}function Au(e,r){var t=e.read_shift(1);if(t===0){e.l++;return""}return e.read_shift(t,"sbcs-cont")}function Ru(e,r){e.l+=6;e.l+=2;e.l+=1;e.l+=3;e.l+=1;e.l+=r-13}function Du(e,r,t){var a=e.l+r;var n=Bn(e,6);var s=e.read_shift(2);var i=un(e,s,t);e.l=a;n.t="str";n.val=i;return n}var Ou=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:1
if(e.width){e.wpx=Fh(e.width);e.wch=Ph(e.wpx);e.MDW=Oh}else if(e.wpx){e.wch=Ph(e.wpx);e.width=yh(e.wch);e.MDW=Oh}else if(typeof e.wch=="number"){e.width=yh(e.wch);e.wpx=Fh(e.width);e.MDW=Oh}if(e.customWidth)delete e.customWidth}var Hh=96,Vh=Hh;function Xh(e){return e*96/Vh}function Gh(e){return e*Vh/96}var zh={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"};function jh(e,r,t,a){r.Borders=[];var n={},s={};e[0].match(ae).forEach(function(e){var t=ie(e);switch(t[0]){case"<borders":;case"<borders>":;case"</borders>":break;case"<border":;case"<border>":;case"<border/>":n={};if(t.diagonalUp){n.diagonalUp=t.diagonalUp}if(t.diagonalDown){n.diagonalDown=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;default:if(a&&a.WTF)throw new Error("unrecognized "+t[0]+" in borders");}})}function Kh(e,r,t,a){r.Fills=[];var n={};e[0].match(ae).forEach(function(e){var t=ie(e);switch(t[0]){case"<fills":;case"<fills>":;case"</fills>":break;case"<fill>":;case"<fill":break;case"</fill>":r.Fills.push(n);n={};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)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;default:if(a&&a.WTF)throw new Error("unrecognized "+t[0]+" in fills");}})}function Yh(e,r,t,a){r.Fonts=[];var n={};e[0].match(ae).forEach(function(e){var s=ie(e);switch(s[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(s.val)n.name=s.val;break;case"<name/>":;case"</name>":break;case"<b":n.bold=s.val?Ee(s.val):1;break;case"<b/>":n.bold=1;break;case"<i":n.italic=s.val?Ee(s.val):1;break;case"<i/>":n.italic=1;break;case"<u":switch(s.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=s.val?Ee(s.val):1;break;case"<strike/>":n.strike=1;break;case"<outline":n.outline=s.val?Ee(s.val):1;break;case"<outline/>":n.outline=1;break;case"<shadow":n.shadow=s.val?Ee(s.val):1;break;case"<shadow/>":n.shadow=1;break;case"<condense":n.condense=s.val?Ee(s.val):1;break;case"<condense/>":n.condense=1;break;case"<extend":n.extend=s.val?Ee(s.val):1;break;case"<extend/>":n.ext
switch(l){case 632:a.push(e);break;case 635:n=e;break;case 637:n.t=e.t;n.h=e.h;n.r=e.r;break;case 636:n.author=a[n.iauthor];delete n.iauthor;if(r.sheetRows&&r.sheetRows<=n.rfx.r)break;if(!n.t)n.t="";delete n.rfx;t.push(n);break;case 35:s=true;break;case 36:s=false;break;case 37:break;case 38:break;default:if((f||"").indexOf("Begin")>0){}else if((f||"").indexOf("End")>0){}else if(!s||r.WTF)throw new Error("Unexpected record "+l+" "+f);}});return t}function uv(e,r){var t=Tr();var a=[];wr(t,"BrtBeginComments");{wr(t,"BrtBeginCommentAuthors");e.forEach(function(e){e[1].forEach(function(e){if(a.indexOf(e.a)>-1)return;a.push(e.a.substr(0,54));wr(t,"BrtCommentAuthor",cv(e.a))})});wr(t,"BrtEndCommentAuthors")}{wr(t,"BrtBeginCommentList");e.forEach(function(e){e[1].forEach(function(r){r.iauthor=a.indexOf(r.a);var n={s:Hr(e[0]),e:Hr(e[0])};wr(t,"BrtBeginComment",fv([n,r]));if(r.t&&r.t.length>0)wr(t,"BrtCommentText",it(r));wr(t,"BrtEndComment");delete r.iauthor})});wr(t,"BrtEndCommentList")}wr(t,"BrtEndComments");return t.end()}sa.DS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet";sa.MS="http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet";function hv(e,r,t,a,n,s){return{"!type":"dialog"}}function dv(e,r,t,a,n,s){return{"!type":"dialog"}}function vv(e,r,t,a,n,s){return{"!type":"macro"}}function bv(e,r,t,a,n,s){return{"!type":"macro"}}var pv=function(){var e=/(^|[^A-Za-z])R(\[?)(-?\d+|)\]?C(\[?)(-?\d+|)\]?/g;var r={r:0,c:0};function t(e,t,a,n,s,i){var f=n.length>0?parseInt(n,10)|0:0,l=i.length>0?parseInt(i,10)|0:0;if(l<0&&s.length===0)l=0;var c=false,o=false;if(s.length>0||i.length==0)c=true;if(c)l+=r.c;else--l;if(a.length>0||n.length==0)o=true;if(o)f+=r.r;else--f;return t+(c?"":"$")+Mr(l)+(o?"":"$")+Pr(f)}return function a(n,s){r=s;return n.replace(e,t)}}();var mv=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)([1-9]\d{0,5}|10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6])(?![_.\(A-Za-z0-9])/g;var gv=function(){return function e(r,t){return r.replace(mv,function(e,r,a,n,s,i,f,l){var c=Nr(n)-t.c;var o=Fr(i)-t.r;return r+"R"+(o==0?"":"["+o+"]")+"C"+(c==0?"":"["+c+"]")})}}();function Ev(e,r){return e.replace(mv,function(e,t,a,n,s,i,f,l){return t+(a=="$"?a+n:Mr(Nr(n)+r.c))+(s=="$"?s+i:Pr(Fr(i)+r.r))})}function Sv(e,r,t){var a=zr(r),n=a.s,s=Hr(t);var i={r:s.r-n.r,c:s.c-n.c};return Ev(e,i)}function kv(e){return function(r,t){r.l+=e;return}}function Bv(e){e.l+=1;return}function Cv(e,r){var t=e.read_shift(r==1?1:2);return[t&16383,t>>14&1,t>>15&1]}function Tv(e,r,t){var a=2;if(t){if(t.biff>=2&&t.biff<=5)return wv(e,r,t);else if(t.biff==12)a=4}var n=e.read_shift(a),s=e.read_shift(a);var i=Cv(e,2);var f=Cv(e,2);return{s:{r:n,c:i[0],cRel:i[1],rRel:i[2]},e:{r:s,c:f[0],cRel:f[1],rRel:f[2]}}}function wv(e){var r=Cv(e,2),t=Cv(e,2);var a=e.read_shift(1);var n=e.read_shift(1);return{s:{r:r[0],c:a,cRel:r[1],rRel:r[2]},e:{r:t[0],c:n,cRel:t[1],rRel:t[2]}}}function Iv(e,r){var t=e.read_shift(r==12?4:2),a=e.read_shift(r==12?4:2);var n=Cv(e,2);var s=Cv(e,2);return{s:{r:t,c:n[0],cRel:n[1],rRel:n[2]},e:{r:a,c:s[0],cRel:s[1],rRel:s[2]}}}function xv(e,r,t){if(t&&t.biff>=2&&t.biff<=5)return Av(e,r,t);var a=e.read_shift(t&&t.biff==12?4:2);var n=Cv(e,2);return{r:a,c:n[0],cRel:n[1],rRel:n[2]}}function Av(e,r,t){var a=Cv(e,2);var n=e.read_shift(1);return{r:a[0],c:n,cRel:a[1],rRel:a[2]}}function Rv(e,r,t){var a=t&&t.biff?t.biff:8;if(a>=2&&a<=5)return Dv(e,r,t);var n=e.read_shift(a>=12?4:2);var s=e.read_shift(2);var i=(s&32768)>>15,f=(s&16384)>>14;s&=16383;if(f==1)while(n>524287)n-=1048576;if(i==1)while(s>8191)s=s-16384;return{r:n,c:s,cRel:i,rRel:f}}function Dv(e,r){var t=e.read_shift(2);var a=e.read_shift(1);var n=(t&32768)>>15,s=(t&16384)>>14;t&=16383;if(n==1&&t>=8192)t=t-16384;if(s==1&&a>=128)a=a-256;return{r:t,c:a,cRel:s,rRel:n}}function Ov(e,r,t){var a=(e[e.l++]&96)>>5;var n=Tv(e,t.biff>=2&&t.biff<=5?6:8,t);return[a,n]}function Fv(e,r,t){var a=(e[e.l++]&96)>>5;var n=e.read_shift(2,"i");var s=8;if(t)switch(t.biff){case 5:e.l+=12;s=6;break;case 12:s=12;break;}var i=Tv(
"_xlfn.CONFIDENCE.T":"CONFIDENCE.T","_xlfn.COT":"COT","_xlfn.COTH":"COTH","_xlfn.COUNTIFS":"COUNTIFS","_xlfn.COVARIANCE.P":"COVARIANCE.P","_xlfn.COVARIANCE.S":"COVARIANCE.S","_xlfn.CSC":"CSC","_xlfn.CSCH":"CSCH","_xlfn.DAYS":"DAYS","_xlfn.DECIMAL":"DECIMAL","_xlfn.ECMA.CEILING":"ECMA.CEILING","_xlfn.ERF.PRECISE":"ERF.PRECISE","_xlfn.ERFC.PRECISE":"ERFC.PRECISE","_xlfn.EXPON.DIST":"EXPON.DIST","_xlfn.F.DIST":"F.DIST","_xlfn.F.DIST.RT":"F.DIST.RT","_xlfn.F.INV":"F.INV","_xlfn.F.INV.RT":"F.INV.RT","_xlfn.F.TEST":"F.TEST","_xlfn.FILTERXML":"FILTERXML","_xlfn.FLOOR.MATH":"FLOOR.MATH","_xlfn.FLOOR.PRECISE":"FLOOR.PRECISE","_xlfn.FORMULATEXT":"FORMULATEXT","_xlfn.GAMMA":"GAMMA","_xlfn.GAMMA.DIST":"GAMMA.DIST","_xlfn.GAMMA.INV":"GAMMA.INV","_xlfn.GAMMALN.PRECISE":"GAMMALN.PRECISE","_xlfn.GAUSS":"GAUSS","_xlfn.HYPGEOM.DIST":"HYPGEOM.DIST","_xlfn.IFNA":"IFNA","_xlfn.IFERROR":"IFERROR","_xlfn.IMCOSH":"IMCOSH","_xlfn.IMCOT":"IMCOT","_xlfn.IMCSC":"IMCSC","_xlfn.IMCSCH":"IMCSCH","_xlfn.IMSEC":"IMSEC","_xlfn.IMSECH":"IMSECH","_xlfn.IMSINH":"IMSINH","_xlfn.IMTAN":"IMTAN","_xlfn.ISFORMULA":"ISFORMULA","_xlfn.ISO.CEILING":"ISO.CEILING","_xlfn.ISOWEEKNUM":"ISOWEEKNUM","_xlfn.LOGNORM.DIST":"LOGNORM.DIST","_xlfn.LOGNORM.INV":"LOGNORM.INV","_xlfn.MODE.MULT":"MODE.MULT","_xlfn.MODE.SNGL":"MODE.SNGL","_xlfn.MUNIT":"MUNIT","_xlfn.NEGBINOM.DIST":"NEGBINOM.DIST","_xlfn.NETWORKDAYS.INTL":"NETWORKDAYS.INTL","_xlfn.NIGBINOM":"NIGBINOM","_xlfn.NORM.DIST":"NORM.DIST","_xlfn.NORM.INV":"NORM.INV","_xlfn.NORM.S.DIST":"NORM.S.DIST","_xlfn.NORM.S.INV":"NORM.S.INV","_xlfn.NUMBERVALUE":"NUMBERVALUE","_xlfn.PDURATION":"PDURATION","_xlfn.PERCENTILE.EXC":"PERCENTILE.EXC","_xlfn.PERCENTILE.INC":"PERCENTILE.INC","_xlfn.PERCENTRANK.EXC":"PERCENTRANK.EXC","_xlfn.PERCENTRANK.INC":"PERCENTRANK.INC","_xlfn.PERMUTATIONA":"PERMUTATIONA","_xlfn.PHI":"PHI","_xlfn.POISSON.DIST":"POISSON.DIST","_xlfn.QUARTILE.EXC":"QUARTILE.EXC","_xlfn.QUARTILE.INC":"QUARTILE.INC","_xlfn.QUERYSTRING":"QUERYSTRING","_xlfn.RANK.AVG":"RANK.AVG","_xlfn.RANK.EQ":"RANK.EQ","_xlfn.RRI":"RRI","_xlfn.SEC":"SEC","_xlfn.SECH":"SECH","_xlfn.SHEET":"SHEET","_xlfn.SHEETS":"SHEETS","_xlfn.SKEW.P":"SKEW.P","_xlfn.STDEV.P":"STDEV.P","_xlfn.STDEV.S":"STDEV.S","_xlfn.SUMIFS":"SUMIFS","_xlfn.T.DIST":"T.DIST","_xlfn.T.DIST.2T":"T.DIST.2T","_xlfn.T.DIST.RT":"T.DIST.RT","_xlfn.T.INV":"T.INV","_xlfn.T.INV.2T":"T.INV.2T","_xlfn.T.TEST":"T.TEST","_xlfn.UNICHAR":"UNICHAR","_xlfn.UNICODE":"UNICODE","_xlfn.VAR.P":"VAR.P","_xlfn.VAR.S":"VAR.S","_xlfn.WEBSERVICE":"WEBSERVICE","_xlfn.WEIBULL.DIST":"WEIBULL.DIST","_xlfn.WORKDAY.INTL":"WORKDAY.INTL","_xlfn.XOR":"XOR","_xlfn.Z.TEST":"Z.TEST"};function op(e){if(e.substr(0,3)=="of:")e=e.substr(3);if(e.charCodeAt(0)==61){e=e.substr(1);if(e.charCodeAt(0)==61)e=e.substr(1)}e=e.replace(/COM\.MICROSOFT\./g,"");e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(e,r){return r.replace(/\./g,"")});e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1");return e.replace(/[;~]/g,",").replace(/\|/g,";")}function up(e){var r="of:="+e.replace(mv,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return r.replace(/;/g,"|").replace(/,/g,";")}function hp(e){var r=e.split(":");var t=r[0].split(".")[0];return[t,r[0].split(".")[1]+":"+r[1].split(".")[1]]}var dp={};var vp={};sa.WS=["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"];function bp(e,r){for(var t=0,a=e.length;t<a;++t)if(e[t].t===r){e.Count++;return t}e[a]={t:r};e.Count++;e.Unique++;return a}function pp(e,r){var t={min:e+1,max:e+1};var a=-1;if(r.MDW)Oh=r.MDW;if(r.width!=null)t.customWidth=1;else if(r.wpx!=null)a=Ph(r.wpx);else if(r.wch!=null)a=r.wch;if(a>-1){t.width=yh(a);t.customWidth=1}else if(r.width!=null)t.width=r.width;if(r.hidden)t.hidden=true;return t}function mp(e,r){if(!e)return;var t=[.7,.7,.75,.75,.3,.3];if(r=="xlml")t=[1,1,1,1,.5,.5];if(e.left==null)e.left=t[0];if(e.right==null)e.right=t[1];if(e.top==null)e.top=t[2];if(e.bottom==null)e.bottom=t[3];if(e.header==null)e.header=t[4];if(e.footer==null)e.footer=t[5]}function gp(e,r,t){var a=t.
;}});break;case"</workbookPr>":break;case"<workbookProtection":break;case"<workbookProtection/>":break;case"<bookViews":;case"<bookViews>":;case"</bookViews>":break;case"<workbookView":delete o[0];t.WBView.push(o);break;case"</workbookView>":break;case"<sheets":;case"<sheets>":;case"</sheets>":break;case"<sheet":switch(o.state){case"hidden":o.Hidden=1;break;case"veryHidden":o.Hidden=2;break;default:o.Hidden=0;}delete o.state;o.name=oe(Se(o.name));delete o[0];t.Sheets.push(o);break;case"</sheet>":break;case"<functionGroups":;case"<functionGroups/>":break;case"<functionGroup":break;case"<externalReferences":;case"</externalReferences>":;case"<externalReferences>":break;case"<externalReference":break;case"<definedNames/>":break;case"<definedNames>":;case"<definedNames":a=true;break;case"</definedNames>":a=false;break;case"<definedName":{s={};s.Name=o.name;if(o.comment)s.Comment=o.comment;if(o.localSheetId)s.Sheet=+o.localSheetId;i=c+l.length}break;case"</definedName>":{s.Ref=e.slice(i,c);t.Names.push(s)}break;case"<definedName/>":break;case"<calcPr":delete o[0];t.CalcPr=o;break;case"<calcPr/>":delete o[0];t.CalcPr=o;break;case"</calcPr>":break;case"<oleSize":break;case"<customWorkbookViews>":;case"</customWorkbookViews>":;case"<customWorkbookViews":break;case"<customWorkbookView":;case"</customWorkbookView>":break;case"<pivotCaches>":;case"</pivotCaches>":;case"<pivotCaches":break;case"<pivotCache":break;case"<smartTagPr":;case"<smartTagPr/>":break;case"<smartTagTypes":;case"<smartTagTypes>":;case"</smartTagTypes>":break;case"<smartTagType":break;case"<webPublishing":;case"<webPublishing/>":break;case"<fileRecoveryPr":;case"<fileRecoveryPr/>":break;case"<webPublishObjects>":;case"<webPublishObjects":;case"</webPublishObjects>":break;case"<webPublishObject":break;case"<extLst":;case"<extLst>":;case"</extLst>":;case"<extLst/>":break;case"<ext":a=true;break;case"</ext>":a=false;break;case"<ArchID":break;case"<AlternateContent":a=true;break;case"</AlternateContent>":a=false;break;case"<revisionPtr":break;default:if(!a&&r.WTF)throw new Error("unrecognized "+o[0]+" in workbook");}return l});if(Ne.main.indexOf(t.xmlns)===-1)throw new Error("Unknown Namespace: "+t.xmlns);qm(t);return t}var fg=Fe("workbook",null,{xmlns:Ne.main[0],"xmlns:r":Ne.r});function lg(e,r){var t=[_e];t[t.length]=fg;var a=e.Workbook&&(e.Workbook.Names||[]).length>0;var n={codeName:"ThisWorkbook"};if(e.Workbook&&e.Workbook.WBProps){if(e.Workbook.WBProps.codeName)n.codeName=e.Workbook.WBProps.codeName;jm.forEach(function(r){if(e.Workbook.WBProps[r[0]]==null)return;if(e.Workbook.WBProps[r[0]]==r[1])return;n[r[0]]=e.Workbook.WBProps[r[0]]})}t[t.length]=Fe("workbookPr",null,n);t[t.length]="<sheets>";var s=e.Workbook&&e.Workbook.Sheets||[];for(var i=0;i!=e.SheetNames.length;++i){var f={name:de(e.SheetNames[i].substr(0,31))};f.sheetId=""+(i+1);f["r:id"]="rId"+(i+1);if(s[i])switch(s[i].Hidden){case 1:f.state="hidden";break;case 2:f.state="veryHidden";break;}t[t.length]=Fe("sheet",null,f)}t[t.length]="</sheets>";if(a){t[t.length]="<definedNames>";if(e.Workbook&&e.Workbook.Names)e.Workbook.Names.forEach(function(e){var r={name:e.Name};if(e.Comment)r.comment=e.Comment;if(e.Sheet!=null)r.localSheetId=""+e.Sheet;if(!e.Ref)return;t[t.length]=Fe("definedName",String(e.Ref),r)});t[t.length]="</definedNames>"}if(t.length>2){t[t.length]="</workbook>";t[1]=t[1].replace("/>",">")}return t.join("")}function cg(e,r){var t={};t.Hidden=e.read_shift(4);t.iTabID=e.read_shift(4);t.strRelID=bt(e,r-8);t.name=qr(e);return t}function og(e,r){if(!r)r=Br(127);r.write_shift(4,e.Hidden);r.write_shift(4,e.iTabID);pt(e.strRelID,r);et(e.name.substr(0,31),r);return r.length>r.l?r.slice(0,r.l):r}function ug(e,r){var t={};var a=e.read_shift(4);t.defaultThemeVersion=e.read_shift(4);var n=r>8?qr(e):"";if(n.length>0)t.codeName=n;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.saveExternalLinkValu
var i={};var f=false;var l={};var c=null;var u=[];var h="";var d={};var v,b="",p,m,g,S,k;var B={};var C=[];var T;var w;var I=true;var x=[];var A=[];var R={Sheets:[],WBProps:{date1904:false}},D={};var O=function ge(e){if(e<8)return Qt[e];if(e<64)return A[e-8]||Qt[e];return Qt[e]};var F=function Ee(e,r,t){var a=r.XF.data;if(!a||!a.patternType||!t||!t.cellStyles)return;r.s={};r.s.patternType=a.patternType;var n;if(n=Th(O(a.icvFore))){r.s.fgColor={rgb:n}}if(n=Th(O(a.icvBack))){r.s.bgColor={rgb:n}}};var P=function Se(e,r,t){if(G>1)return;if(!I)return;if(t.cellStyles&&r.XF&&r.XF.data)F(e,r,t);v=e;b=Vr(e);if(l.s){if(e.r<l.s.r)l.s.r=e.r;if(e.c<l.s.c)l.s.c=e.c}if(l.e){if(e.r+1>l.e.r)l.e.r=e.r+1;if(e.c+1>l.e.c)l.e.c=e.c+1}if(t.cellFormula&&r.f){for(var a=0;a<C.length;++a){if(C[a][0].s.c>e.c)continue;if(C[a][0].s.r>e.r)continue;if(C[a][0].e.c<e.c)continue;if(C[a][0].e.r<e.r)continue;r.F=jr(C[a][0]);if(C[a][0].s.c!=e.c)delete r.f;if(C[a][0].s.r!=e.r)delete r.f;if(r.f)r.f=""+qb(C[a][1],l,e,V,y);break}}if(t.sheetRows&&v.r>=t.sheetRows)I=false;else{if(t.dense){if(!s[e.r])s[e.r]=[];s[e.r][e.c]=r}else s[b]=r}};var y={enc:false,sbcch:0,snames:[],sharedf:B,arrayf:C,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!r&&!!r.cellStyles,WTF:!!r&&!!r.wtf};if(r.password)y.password=r.password;var _=[];var N=[];var M=[],L=[];var U=0,W=0;var H=false;var V=[];V.SheetNames=y.snames;V.sharedf=y.sharedf;V.arrayf=y.arrayf;V.names=[];V.XTI=[];var X="";var G=0;var z=0;var j=[];var K=[];var Y;y.codepage=1200;n(1200);while(e.l<e.length-1){var $=e.l;var Q=e.read_shift(2);if(Q===0&&X==="EOF")break;var Z=e.l===e.length?0:e.read_shift(2),J;var q=EE[Q];if(q&&q.f){if(r.bookSheets){if(X==="BoundSheet8"&&q.n!=="BoundSheet8")break}X=q.n;if(q.r===2||q.r==12){var ee=e.read_shift(2);Z-=2;if(!y.enc&&ee!==Q)throw new Error("rt mismatch: "+ee+"!="+Q);if(q.r==12){e.l+=10;Z-=10}}var re;if(q.n==="EOF")re=q.f(e,Z,y);else re=uE(q,e,Z,y);var te=q.n;switch(te){case"Date1904":t.opts.Date1904=R.WBProps.date1904=re;break;case"WriteProtect":t.opts.WriteProtect=true;break;case"FilePass":if(!y.enc)e.l=0;y.enc=re;if(y.WTF)console.error(re);if(!r.password)throw new Error("File is password-protected");if(re.valid==null)throw new Error("Encryption scheme unsupported");if(!re.valid)throw new Error("Password is incorrect");break;case"WriteAccess":y.lastuser=re;break;case"FileSharing":break;case"CodePage":if(re===21010)re=1200;else if(re===32769)re=1252;y.codepage=re;n(re);break;case"RRTabId":y.rrtabid=re;break;case"WinProtect":y.winlocked=re;break;case"Template":break;case"RefreshAll":t.opts.RefreshAll=re;break;case"BookBool":break;case"UsesELFs":break;case"MTRSettings":break;case"CalcCount":t.opts.CalcCount=re;break;case"CalcDelta":t.opts.CalcDelta=re;break;case"CalcIter":t.opts.CalcIter=re;break;case"CalcMode":t.opts.CalcMode=re;break;case"CalcPrecision":t.opts.CalcPrecision=re;break;case"CalcSaveRecalc":t.opts.CalcSaveRecalc=re;break;case"CalcRefMode":y.CalcRefMode=re;break;case"Uncalced":break;case"ForceFullCalculation":t.opts.FullCalc=re;break;case"WsBool":break;case"XF":x.push(re);break;case"ExtSST":break;case"BookExt":break;case"RichTextStream":break;case"BkHim":break;case"SupBook":V.push([re]);V[V.length-1].XTI=[];break;case"ExternName":V[V.length-1].push(re);break;case"Index":break;case"Lbl":Y={Name:re.Name,Ref:qb(re.rgce,l,null,V,y)};if(re.itab>0)Y.Sheet=re.itab-1;V.names.push(Y);if(!V[0])V[0]=[];V[V.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:jr(re.rgce[0][0][1][2])};break;case"ExternCount":y.ExternCount=re;break;case"ExternSheet":if(V.length==0){V[0]=[];V[0].XTI=[]}V[V.length-1].XTI=V[V.length-1].XTI.concat(re);V.XTI=V.XTI.concat(re);break;case"NameCmt":if(y.biff<8)break;if(Y!=null)Y.Comment=re[1];break;case"Protect":s["!protect"]=re;break;case"Password":if(re!==0&&y.WTF)console.error("Password verifier: "+re);break;case"Prot4Rev":;case"Prot4RevPass":break;case"BoundSheet8":{i[re.pos]=re;y.snames.push(re.name)}break;case"EOF":{if(--G)break;if(l.e){if(l.e.r
f:Er},648:{n:"BrtBeginCellIgnoreECs",f:Er},649:{n:"BrtCellIgnoreEC",f:Er},650:{n:"BrtEndCellIgnoreECs",f:Er},651:{n:"BrtCsProp",f:Er},652:{n:"BrtCsPageSetup",f:Er},653:{n:"BrtBeginUserCsViews",f:Er},654:{n:"BrtEndUserCsViews",f:Er},655:{n:"BrtBeginUserCsView",f:Er},656:{n:"BrtEndUserCsView",f:Er},657:{n:"BrtBeginPcdSFCIEntries",f:Er},658:{n:"BrtEndPCDSFCIEntries",f:Er},659:{n:"BrtPCDSFCIEntry",f:Er},660:{n:"BrtBeginListParts",f:Er},661:{n:"BrtListPart",f:Er},662:{n:"BrtEndListParts",f:Er},663:{n:"BrtSheetCalcProp",f:Er},664:{n:"BrtBeginFnGroup",f:Er},665:{n:"BrtFnGroup",f:Er},666:{n:"BrtEndFnGroup",f:Er},667:{n:"BrtSupAddin",f:Er},668:{n:"BrtSXTDMPOrder",f:Er},669:{n:"BrtCsProtection",f:Er},671:{n:"BrtBeginWsSortMap",f:Er},672:{n:"BrtEndWsSortMap",f:Er},673:{n:"BrtBeginRRSort",f:Er},674:{n:"BrtEndRRSort",f:Er},675:{n:"BrtRRSortItem",f:Er},676:{n:"BrtFileSharingIso",f:Er},677:{n:"BrtBookProtectionIso",f:Er},678:{n:"BrtSheetProtectionIso",f:Er},679:{n:"BrtCsProtectionIso",f:Er},680:{n:"BrtRangeProtectionIso",f:Er},1024:{n:"BrtRwDescent",f:Er},1025:{n:"BrtKnownFonts",f:Er},1026:{n:"BrtBeginSXTupleSet",f:Er},1027:{n:"BrtEndSXTupleSet",f:Er},1028:{n:"BrtBeginSXTupleSetHeader",f:Er},1029:{n:"BrtEndSXTupleSetHeader",f:Er},1030:{n:"BrtSXTupleSetHeaderItem",f:Er},1031:{n:"BrtBeginSXTupleSetData",f:Er},1032:{n:"BrtEndSXTupleSetData",f:Er},1033:{n:"BrtBeginSXTupleSetRow",f:Er},1034:{n:"BrtEndSXTupleSetRow",f:Er},1035:{n:"BrtSXTupleSetRowItem",f:Er},1036:{n:"BrtNameExt",f:Er},1037:{n:"BrtPCDH14",f:Er},1038:{n:"BrtBeginPCDCalcMem14",f:Er},1039:{n:"BrtEndPCDCalcMem14",f:Er},1040:{n:"BrtSXTH14",f:Er},1041:{n:"BrtBeginSparklineGroup",f:Er},1042:{n:"BrtEndSparklineGroup",f:Er},1043:{n:"BrtSparkline",f:Er},1044:{n:"BrtSXDI14",f:Er},1045:{n:"BrtWsFmtInfoEx14",f:Er},1046:{n:"BrtBeginConditionalFormatting14",f:Er},1047:{n:"BrtEndConditionalFormatting14",f:Er},1048:{n:"BrtBeginCFRule14",f:Er},1049:{n:"BrtEndCFRule14",f:Er},1050:{n:"BrtCFVO14",f:Er},1051:{n:"BrtBeginDatabar14",f:Er},1052:{n:"BrtBeginIconSet14",f:Er},1053:{n:"BrtDVal14",f:Er},1054:{n:"BrtBeginDVals14",f:Er},1055:{n:"BrtColor14",f:Er},1056:{n:"BrtBeginSparklines",f:Er},1057:{n:"BrtEndSparklines",f:Er},1058:{n:"BrtBeginSparklineGroups",f:Er},1059:{n:"BrtEndSparklineGroups",f:Er},1061:{n:"BrtSXVD14",f:Er},1062:{n:"BrtBeginSxview14",f:Er},1063:{n:"BrtEndSxview14",f:Er},1066:{n:"BrtBeginPCD14",f:Er},1067:{n:"BrtEndPCD14",f:Er},1068:{n:"BrtBeginExtConn14",f:Er},1069:{n:"BrtEndExtConn14",f:Er},1070:{n:"BrtBeginSlicerCacheIDs",f:Er},1071:{n:"BrtEndSlicerCacheIDs",f:Er},1072:{n:"BrtBeginSlicerCacheID",f:Er},1073:{n:"BrtEndSlicerCacheID",f:Er},1075:{n:"BrtBeginSlicerCache",f:Er},1076:{n:"BrtEndSlicerCache",f:Er},1077:{n:"BrtBeginSlicerCacheDef",f:Er},1078:{n:"BrtEndSlicerCacheDef",f:Er},1079:{n:"BrtBeginSlicersEx",f:Er},1080:{n:"BrtEndSlicersEx",f:Er},1081:{n:"BrtBeginSlicerEx",f:Er},1082:{n:"BrtEndSlicerEx",f:Er},1083:{n:"BrtBeginSlicer",f:Er},1084:{n:"BrtEndSlicer",f:Er},1085:{n:"BrtSlicerCachePivotTables",f:Er},1086:{n:"BrtBeginSlicerCacheOlapImpl",f:Er},1087:{n:"BrtEndSlicerCacheOlapImpl",f:Er},1088:{n:"BrtBeginSlicerCacheLevelsData",f:Er},1089:{n:"BrtEndSlicerCacheLevelsData",f:Er},1090:{n:"BrtBeginSlicerCacheLevelData",f:Er},1091:{n:"BrtEndSlicerCacheLevelData",f:Er},1092:{n:"BrtBeginSlicerCacheSiRanges",f:Er},1093:{n:"BrtEndSlicerCacheSiRanges",f:Er},1094:{n:"BrtBeginSlicerCacheSiRange",f:Er},1095:{n:"BrtEndSlicerCacheSiRange",f:Er},1096:{n:"BrtSlicerCacheOlapItem",f:Er},1097:{n:"BrtBeginSlicerCacheSelections",f:Er},1098:{n:"BrtSlicerCacheSelection",f:Er},1099:{n:"BrtEndSlicerCacheSelections",f:Er},1100:{n:"BrtBeginSlicerCacheNative",f:Er},1101:{n:"BrtEndSlicerCacheNative",f:Er},1102:{n:"BrtSlicerCacheNativeItem",f:Er},1103:{n:"BrtRangeProtection14",f:Er},1104:{n:"BrtRangeProtectionIso14",f:Er},1105:{n:"BrtCellIgnoreEC14",f:Er},1111:{n:"BrtList14",f:Er},1112:{n:"BrtCFIcon",f:Er},1113:{n:"BrtBeginSlicerCachesPivotCacheIDs",f:Er},1114:{n:"BrtEndSlicerCachesPivotCacheIDs",f:Er},1115:{n:"BrtBeginSlicers",f:Er},1116:{n:"BrtEndSlicers",f:Er},1117:{n:"BrtWbProp14",f:Er},1118:{n:"BrtBegi
break;case"rect":break;case"dde-connection-decls":;case"dde-connection-decl":;case"dde-link":;case"dde-source":break;case"properties":break;case"property":break;case"a":break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:if(E[2]==="dc:")break;if(E[2]==="draw:")break;if(E[2]==="style:")break;if(E[2]==="form:")break;if(E[2]==="calcext:")break;if(E[2]==="loext:")break;if(E[2]==="uof:")break;if(E[2]==="表:")break;if(E[2]==="字:")break;if(s.WTF)throw new Error(E);}var K={Sheets:p,SheetNames:m};return K}}();function yE(e,r){r=r||{};var t=!!$(e,"objectdata");if(t)var a=ha(Z(e,"META-INF/manifest.xml"),r);var n=J(e,"content.xml");if(!n)throw new Error("Missing content.xml in "+(t?"ODS":"UOF")+" file");return PE(t?n:Se(n),r)}function _E(e,r){return PE(e,r)}var NE=function(){var e='<?xml version="1.0" encoding="UTF-8" standalone="yes"?><office:document-styles xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" office:version="1.2"></office:document-styles>';return function r(t,a){return e}}();var ME=function(){var e=" <table:table-cell />\n";var r=" <table:covered-table-cell/>\n";var t=function(t,a,n,s){var i=[];i.push(' <table:table table:name="'+de(a.SheetNames[n])+'">\n');var f=0,l=0,c=zr(t["!ref"]);var o=t["!merges"]||[],u=0;var h=Array.isArray(t);for(f=0;f<c.s.r;++f)i.push(" <table:table-row></table:table-row>\n");for(;f<=c.e.r;++f){i.push(" <table:table-row>\n");for(l=0;l<c.s.c;++l)i.push(e);for(;l<=c.e.c;++l){var d=false,v={},b="";for(u=0;u!=o.length;++u){if(o[u].s.c>l)continue;if(o[u].s.r>f)continue;if(o[u].e.c<l)continue;if(o[u].e.r<f)continue;if(o[u].s.c!=l||o[u].s.r!=f)d=true;v["table:number-columns-spanned"]=o[u].e.c-o[u].s.c+1;v["table:number-rows-spanned"]=o[u].e.r-o[u].s.r+1;break}if(d){i.push(r);continue}var p=Vr({r:f,c:l}),m=h?(t[f]||[])[l]:t[p];if(m&&m.f){v["table:formula"]=de(up(m.f));if(m.F){if(m.F.substr(0,p.length)==p){var g=zr(m.F);v["table:number-matrix-columns-spanned"]=g.e.c-g.s.c+1;v["table:number-matrix-rows-spanned"]=g.e.r-g.s.r+1}}}if(!m){i.push(e);continue}switch(m.t){case"b":b=m.v?"TRUE":"FALSE";v["office:value-type"]="boolean";v["office:boolean-value"]=m.v?"true":"false";break;case"n":b=m.w||String(m.v||0);v["office:value-type"]="float";v["office:value"]=m.v||0;break;case"s":;case"str":b=de(m.v);v["office:value-type"]="string";break;case"d":b=m.w||W(m.v).toISOString();v["office:value-type"]="date";v["office:date-value"]=W(m.v).toISOString();v["table:style-name"]="ce1";break;default:i.push(e);continue;}i.push(" "+Fe("table:table-cell",Fe("text:p",b,{}),v)+"\n")}i.push(" </table:table-row>\n")}i.push(" </table:table>\n");return i.join("")};var a=function(e){e.push(" <office:automatic-styles>\n");e.push(' <number:date-style style:name="N37" number:automatic-order="true">\n');e.push(' <number:month number:style="long"/>\n');e.push(" <number:text>/</number:text>\n");e.push(' <number:day number:style="long"/>\n');e.push(" <number:text>/</number:text>\n");e.push(" <number:year/>\n");e.push(" </number:date-style>\n");e.push(' <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>\n');e.push(" </office:automatic-styles>\n")};return function n(e,r){var n=[_e];var s=Oe({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style"