sheetjs-clone/dist/xlsx.min.js

13 lines
344 KiB
JavaScript
Raw Normal View History

/* xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
var DO_NOT_EXPORT_CODEPAGE=true;var DO_NOT_EXPORT_JSZIP=true;var XLSX={};(function e(r){r.version="0.11.3";var t=1200;if(typeof module!=="undefined"&&typeof require!=="undefined"){if(typeof cptable==="undefined")global.cptable=undefined}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 VS(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 GS(){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 zS(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"
HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:T,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};e.find=S;e.read=E;e.parse=r;e.utils={ReadShift:pr,CheckField:kr,prep_blob:Br,bconcat:p,consts:w};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 N(e,r){var t=e.getTime();if(r)t-=1462*24*60*60*1e3;return(t-y)/(24*60*60*1e3)}function _(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"];var s=new Date(+n[0],+n[1]-1,+n[2],+n[3]||0,+n[4]||0,+n[5]||0);if(e.indexOf("Z")>-1)s=new Date(s.getTime()-s.getTimezoneOffset()*60*1e3);return s}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=Number(e);if(!isNaN(r))return r;var t=1;var a=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){t*=100;return""});if(!isNaN(r=Number(a)))return r/t;a=a.replace(/[(](.*)[)]/,function(e,r){t=-t;return r});if(!isNaN(r=Number(a)))return r/t;return r}function j(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(/[^-0-9:,\/\\]/))return t;return r}var K="abacaba".split(/(:?b)/i).length==5;function Y(e,r,t){if(K||typeof r=="string")return e.split(r);var a=e.split(r),n=[a[0]];for(var s=1;s<a.length;++s){n.push(t);n.push(a[s])}return n}function $(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 Q(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 Z(e){return e&&e.name.slice(-4)===".bin"?Q(e):$(e)}function J
"application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"};var ta=function(){var e={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){ra[e[r][t]]=r})});return e}();var aa=F(ra);We.CT="http://schemas.openxmlformats.org/package/2006/content-types";function na(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],TODO:[],xmlns:""}}function sa(e,r){var t=na();if(!e||!e.match)return t;var a={};(e.match(fe)||[]).forEach(function(e){var r=oe(e);switch(r[0].replace(le,"<")){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[ra[r.ContentType]]!==undefined)t[ra[r.ContentType]].push(r.PartName);break;}});if(t.xmlns!==We.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 ia=_e("Types",null,{xmlns:We.CT,"xmlns:xsd":We.xsd,"xmlns:xsi":We.xsi});var fa=[["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",aa.rels[0]]].map(function(e){return _e("Default",null,{Extension:e[0],ContentType:e[1]})});function la(e,r){var t=[],a;t[t.length]=Ue;t[t.length]=ia;t=t.concat(fa);var n=function(n){if(e[n]&&e[n].length>0){a=e[n][0];t[t.length]=_e("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:ta[n][r.bookType||"xlsx"]})}};var s=function(a){(e[a]||[]).forEach(function(e){t[t.length]=_e(
throw new Error("cchText: "+f+" != "+n.length)}e.l=a+r;return{t:n}}catch(v){e.l=a+r;return{t:n}}}var _s=function(e,r){var t=Pn(e,8);e.l+=16;var a=Cn(e,r-24);return[t,a]};var Ms=function(e,r){var t=e.l+r;e.read_shift(2);var a=Pn(e,8);var n=e.read_shift((r-10)/2,"dbcs-cont");n=n.replace(m,"");return[a,n]};function Ls(e,r){var t=[],a;a=e.read_shift(2);t[0]=Zt[a]||a;a=e.read_shift(2);t[1]=Zt[a]||a;return t}function Us(e,r){var t=e.read_shift(2);var a=[];while(t-- >0)a.push(wn(e,8));return a}function Ws(e,r){var t=e.read_shift(2);var a=[];while(t-- >0)a.push(wn(e,8));return a}function Hs(e,r){e.l+=2;var t={cxfs:0,crc:0};t.cxfs=e.read_shift(2);t.crc=e.read_shift(4);return t}function Vs(e,r,t){if(!t.cellStyles)return Cr(e,r);var a=t&&t.biff>=12?4:2;var n=e.read_shift(a);var s=e.read_shift(a);var i=e.read_shift(a);var f=e.read_shift(a);var l=e.read_shift(2);if(a==2)e.l+=2;return{s:n,e:s,w:i,ixfe:f,flags:l}}function Xs(e,r,t){var a={};e.l+=16;a.header=xt(e,8);a.footer=xt(e,8);e.l+=2;return a}function Gs(e,r,t){var a={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 zs=Cr;var js=Cr;var Ks=Cr;var Ys=ln;var $s=In;var Qs=xt;var Zs=cn;var Js=cn;var qs=xt;var ei=ln;var ri=cn;var ti=ln;var ai=sn;var ni=ln;var si=cn;var ii=ln;var fi=ln;var li=cn;var ci=sn;var oi=sn;var ui=sn;var hi=sn;var di=sn;var vi=cn;var bi=ms;var pi=cn;var mi=ln;var gi=ms;var Ei=Rn;var Si=sn;var ki=xt;var Bi=sn;var Ci=ln;var Ti=cn;var wi=ln;var Ii=ln;var xi=cn;var Ai=ln;var Ri=cn;var Di=ln;var Oi=ln;var Fi=xt;var Pi=on;var yi=ln;var Ni=on;var _i=pn;var Mi=ln;var Li=xt;var Ui=ln;var Wi=ln;var Hi=ln;var Vi=Cr;var Xi=Cr;var Gi=Cr;var zi=Cr;var ji=Cr;var Ki=Cr;var Yi=Cr;var $i=Cr;var Qi=Cr;var Zi=Cr;var Ji=Cr;var qi=Cr;var ef=Cr;var rf=Cr;var tf=Cr;var af=Cr;var nf=Cr;var sf=Cr;var ff=Cr;var lf=Cr;var cf=Cr;var of=Cr;var uf=Cr;var hf=Cr;var df=Cr;var vf=Cr;var bf=Cr;var pf=Cr;var mf=Cr;var gf=Cr;var Ef=Cr;var Sf=Cr;var kf=Cr;var Bf=Cr;var Cf=Cr;var Tf=Cr;var wf=Cr;var If=Cr;var xf=Cr;var Af=Cr;var Rf=Cr;var Df=Cr;var Of=Cr;var Ff=Cr;var Pf=Cr;var yf=Cr;var Nf=Cr;var _f=Cr;var Mf=Cr;var Lf=Cr;var Uf=Cr;var Wf=Cr;var Hf=Cr;var Vf=Cr;var Xf=Cr;var Gf=Cr;var zf=Cr;var jf=Cr;var Kf=Cr;var Yf=Cr;var $f=Cr;var Qf=Cr;var Zf=Cr;var Jf=Cr;var qf=Cr;var el=Cr;var rl=Cr;var tl=Cr;var al=Cr;var nl=Cr;var sl=Cr;var il=Cr;var fl=Cr;var ll=Cr;var cl=Cr;var ol=Cr;var ul=Cr;var hl=Cr;var dl=Cr;var vl=Cr;var bl=Cr;var pl=Cr;var ml=Cr;var gl=Cr;var El=Cr;var Sl=Cr;var kl=Cr;var Bl=Cr;var Cl=Cr;var Tl=Cr;var wl=Cr;var Il=Cr;var xl=Cr;var Al=Cr;var Rl=Cr;var Dl=Cr;var Ol=Cr;var Fl=Cr;var Pl=Cr;var yl=Cr;var Nl=Cr;var _l=Cr;var Ml=Cr;var Ll=Cr;var Ul=Cr;var Wl=Cr;var Hl=Cr;var Vl=Cr;var Xl=Cr;var Gl=Cr;var zl=pn;var jl=Cr;var Kl=Cr;var Yl=Cr;var $l=Cr;var Ql=Cr;var Zl=Cr;var Jl=Cr;var ql=Cr;var ec=Cr;var rc=Cr;var tc=Cr;var ac=Cr;var nc=Cr;var sc=Cr;var ic=Cr;var fc=Cr;var lc=Cr;var cc=Cr;var oc=Cr;var uc=Cr;var hc=Cr;var dc=Cr;var vc=Cr;var bc=Cr;var pc=Cr;var mc=Cr;var gc=Cr;var Ec=Cr;var Sc=Cr;var kc=Cr;var Bc=Cr;var Cc=Cr;var Tc=Cr;var wc=Cr;var Ic=Cr;var xc=Cr;var Ac=Cr;var Rc=Cr;var Dc=Cr;var Oc=Cr;var Fc=Cr;var Pc=Cr;var yc=Cr;var Nc=Cr;var _c=Cr;var Mc=Cr;var Lc=Cr;var Uc=Cr;var Wc=Cr;var Hc=Cr;var Vc=Cr;var Xc=Cr;var Gc=Cr;var zc=Cr;var jc=Cr;var Kc=Cr;var Yc=Cr;var $c=Cr;var Qc=Cr;var Zc=Cr;var Jc=Cr;var qc=Cr;var eo=Cr;var ro=Cr;var to=Cr;var ao=Cr;var no=Cr;var so=Cr;var io=Cr;var fo=Cr;var lo=Cr;var co=Cr;var oo=Cr;var uo=Cr;var ho=Cr;var vo=Cr;var bo=Cr;var po=Cr;var mo=Cr;var go=Cr;var Eo=Cr;var So=Cr;var ko=Cr;var Bo=Cr;var Co=Cr;var To=Cr;var wo=Cr;var Io=Cr;var xo=Cr;var Ao=Cr;var Ro=Cr;var Do=Cr;var Oo=Cr;var Fo=Cr;var Po=Cr;var yo=Cr;var No=Cr;var _o=Cr;var Mo=Cr;var Lo=Cr;var Uo=Cr;var Wo=Cr;var Ho=Cr;var Vo=Cr;var Xo=Cr;var Go=Cr;var zo=Cr;var jo=Cr;var Ko=Cr;var Yo=Cr;var $o=Cr;var Qo=Cr;var Zo=Cr;var Jo=Cr;var qo=Cr;var eu=Cr;var ru=Cr;var tu=Cr;var au=Cr;var nu=Cr;var su=Cr;var iu=Cr;var fu=Cr;var lu=Cr;var cu=Cr;var ou=Cr;var uu=Cr;var hu=Cr;var du=Cr;var vu=Cr;var bu=Cr;var pu=Cr;var mu=Cr;var gu=Cr;var Eu=Cr;v
}function r(e,r){throw new Error("Unsupported RTF")}function t(r,t){return et(e(r,t),t)}function a(){throw new Error("Unsupported")}return{to_workbook:t,to_sheet:e,from_sheet:a}}();function Ah(e){var r=e.substr(e[0]==="#"?1:0,6);return[parseInt(r.substr(0,2),16),parseInt(r.substr(2,2),16),parseInt(r.substr(4,2),16)]}function Rh(e){for(var r=0,t=1;r!=3;++r)t=t*256+(e[r]>255?255:e[r]<0?0:e[r]);return t.toString(16).toUpperCase().substr(1)}function Dh(e){var r=e[0]/255,t=e[1]/255,a=e[2]/255;var n=Math.max(r,t,a),s=Math.min(r,t,a),i=n-s;if(i===0)return[0,0,r];var f=0,l=0,c=n+s;l=i/(c>1?2-c:c);switch(n){case r:f=((t-a)/i+6)%6;break;case t:f=(a-r)/i+2;break;case a:f=(r-t)/i+4;break;}return[f/6,l,c/2]}function Oh(e){var r=e[0],t=e[1],a=e[2];var n=t*2*(a<.5?a:1-a),s=a-n/2;var i=[s,s,s],f=6*r;var l;if(t!==0)switch(f|0){case 0:;case 6:l=n*f;i[0]+=n;i[1]+=l;break;case 1:l=n*(2-f);i[0]+=l;i[1]+=n;break;case 2:l=n*(f-2);i[1]+=n;i[2]+=l;break;case 3:l=n*(4-f);i[1]+=l;i[2]+=n;break;case 4:l=n*(f-4);i[2]+=n;i[0]+=l;break;case 5:l=n*(6-f);i[2]+=l;i[0]+=n;break;}for(var c=0;c!=3;++c)i[c]=Math.round(i[c]*255);return i}function Fh(e,r){if(r===0)return e;var t=Dh(Ah(e));if(r<0)t[2]=t[2]*(1+r);else t[2]=1-(1-t[2])*(1-r);return Rh(Oh(t))}var Ph=6,yh=15,Nh=1,_h=Ph;function Mh(e){return Math.floor((e+Math.round(128/_h)/256)*_h)}function Lh(e){return Math.floor((e-5)/_h*100+.5)/100}function Uh(e){return Math.round((e*_h+5)/_h*256)/256}function Wh(e){return((e-5)/_h*100+.5)/100}function Hh(e){return(e*_h+5)/_h*256/256}function Vh(e){return Uh(Lh(Mh(e)))}function Xh(e){var r=Math.abs(e-Vh(e)),t=_h;if(r>.005)for(_h=Nh;_h<yh;++_h)if(Math.abs(e-Vh(e))<=r){r=Math.abs(e-Vh(e));t=_h}_h=t}function Gh(e){var r=Infinity,t=0,a=Nh;for(_h=Nh;_h<yh;++_h){t=Hh(Wh(e))*256;t=t%1;if(t>.5)t--;if(Math.abs(t)<r){r=Math.abs(t);a=_h}}_h=a}function zh(e){if(e.width){e.wpx=Mh(e.width);e.wch=Lh(e.wpx);e.MDW=_h}else if(e.wpx){e.wch=Lh(e.wpx);e.width=Uh(e.wch);e.MDW=_h}else if(typeof e.wch=="number"){e.width=Uh(e.wch);e.wpx=Mh(e.width);e.MDW=_h}if(e.customWidth)delete e.customWidth}var jh=96,Kh=jh;function Yh(e){return e*96/Kh}function $h(e){return e*Kh/96}var Qh={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 Zh(e,r,t,a){r.Borders=[];var n={},s={};e[0].match(fe).forEach(function(e){var t=oe(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 Jh(e,r,t,a){r.Fills=[];var n={};e[0].match(fe).forEach(function(e){var t=oe(e);switch(t[0]){case"<fills":;case"<fills>":;case"</fills>":break;case"<fill>":;case"<fill":;case"<fill/>":n={};r.Fills.push(n);break;case"</fill>":break;case"<gradientFill>":break;case"<gradientFill":;case"</gradientFill>":r.Fills.push(n);n={};break;case"<patternFill":;case"<patternFill>":if(t.patternType)n.pat
if(u){var h=u[i];if(h)uv(o,t[o],f)}}}}function uv(e,r,t){var a=Array.isArray(r);var n,s;t.forEach(function(e){if(a){s=zr(e.ref);if(!r[s.r])r[s.r]=[];n=r[s.r][s.c]}else n=r[e.ref];if(!n){n={};if(a)r[s.r][s.c]=n;else r[e.ref]=n;var t=Zr(r["!ref"]||"BDWGO1000001:A1");var i=zr(e.ref);if(t.s.r>i.r)t.s.r=i.r;if(t.e.r<i.r)t.e.r=i.r;if(t.s.c>i.c)t.s.c=i.c;if(t.e.c<i.c)t.e.c=i.c;var f=Qr(t);if(f!==r["!ref"])r["!ref"]=f}if(!n.c)n.c=[];var l={a:e.author,t:e.t,r:e.r};if(e.h)l.h=e.h;n.c.push(l)})}function hv(e,r){if(e.match(/<(?:\w+:)?comments *\/>/))return[];var t=[];var a=[];var n=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);if(n&&n[1])n[1].split(/<\/\w*:?author>/).forEach(function(e){if(e===""||e.trim()==="")return;var r=e.match(/<(?:\w+:)?author[^>]*>(.*)/);if(r)t.push(r[1])});var s=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);if(s&&s[1])s[1].split(/<\/\w*:?comment>/).forEach(function(e,n){if(e===""||e.trim()==="")return;var s=e.match(/<(?:\w+:)?comment[^>]*>/);if(!s)return;var i=oe(s[0]);var f={author:i.authorId&&t[i.authorId]?t[i.authorId]:"sheetjsghost",ref:i.ref,guid:i.guid};var l=zr(i.ref);if(r.sheetRows&&r.sheetRows<=l.r)return;var c=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/);var o=!!c&&!!c[1]&&ju(c[1])||{r:"",t:"",h:""};f.r=o.r;if(o.r=="<t></t>")o.t=o.h="";f.t=o.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n");if(r.cellHTML)f.h=o.h;a.push(f)});return a}var dv=_e("comments",null,{xmlns:We.main[0]});function vv(e,r){var t=[Ue,dv];var a=[];t.push("<authors>");e.map(function(e){return e[1]}).forEach(function(e){e.map(function(e){return me(e.a)}).forEach(function(e){if(a.indexOf(e)>-1)return;a.push(e);t.push("<author>"+e+"</author>")})});t.push("</authors>");t.push("<commentList>");e.forEach(function(e){e[1].forEach(function(r){t.push('<comment ref="'+e[0]+'" authorId="'+a.indexOf(me(r.a))+'"><text>');t.push(ye("t",r.t==null?"":r.t));t.push("</text></comment>")})});t.push("</commentList>");if(t.length>2){t[t.length]="</comments>";t[1]=t[1].replace("/>",">")}return t.join("")}function bv(e,r){var t={};t.iauthor=e.read_shift(4);var a=wt(e,16);t.rfx=a.s;t.ref=jr(a.s);e.l+=16;return t}function pv(e,r){if(r==null)r=Ir(36);r.write_shift(4,e[1].iauthor);It(e[0],r);r.write_shift(4,0);r.write_shift(4,0);r.write_shift(4,0);r.write_shift(4,0);return r}var mv=at;function gv(e){return nt(e.substr(0,54))}function Ev(e,r){var t=[];var a=[];var n={};var s=false;xr(e,function i(e,f,l){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 Sv(e,r){var t=Ar();var a=[];Rr(t,"BrtBeginComments");{Rr(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));Rr(t,"BrtCommentAuthor",gv(e.a))})});Rr(t,"BrtEndCommentAuthors")}{Rr(t,"BrtBeginCommentList");e.forEach(function(e){e[1].forEach(function(r){r.iauthor=a.indexOf(r.a);var n={s:zr(e[0]),e:zr(e[0])};Rr(t,"BrtBeginComment",pv([n,r]));if(r.t&&r.t.length>0)Rr(t,"BrtCommentText",ot(r));Rr(t,"BrtEndComment");delete r.iauthor})});Rr(t,"BrtEndCommentList")}Rr(t,"BrtEndComments");return t.end()}ca.DS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet";ca.MS="http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet";function kv(e,r,t,a,n,s){return{"!type":"dialog"}}function Bv(e,r,t,a,n,s){return{"!type":"dialog"}}function Cv(e,r,t,a,n,s){return{"!type":"macro"}}function Tv(e,r,t,a,n,s){return{"!type":"macro"}}var wv=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)
457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"};var Sp={2:1,3:1,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,90:1,97:2,98:1,99:1,101:3,102:3,105:1,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};var kp={"_xlfn.ACOT":"ACOT","_xlfn.ACOTH":"ACOTH","_xlfn.AGGREGATE":"AGGREGATE","_xlfn.ARABIC":"ARABIC","_xlfn.AVERAGEIF":"AVERAGEIF","_xlfn.AVERAGEIFS":"AVERAGEIFS","_xlfn.BASE":"BASE","_xlfn.BETA.DIST":"BETA.DIST","_xlfn.BETA.INV":"BETA.INV","_xlfn.BINOM.DIST":"BINOM.DIST","_xlfn.BINOM.DIST.RANGE":"BINOM.DIST.RANGE","_xlfn.BINOM.INV":"BINOM.INV","_xlfn.BITAND":"BITAND","_xlfn.BITLSHIFT":"BITLSHIFT","_xlfn.BITOR":"BITOR","_xlfn.BITRSHIFT":"BITRSHIFT","_xlfn.BITXOR":"BITXOR","_xlfn.CEILING.MATH":"CEILING.MATH","_xlfn.CEILING.PRECISE":"CEILING.PRECISE","_xlfn.CHISQ.DIST":"CHISQ.DIST","_xlfn.CHISQ.DIST.RT":"CHISQ.DIST.RT","_xlfn.CHISQ.INV":"CHISQ.INV","_xlfn.CHISQ.INV.RT":"CHISQ.INV.RT","_xlfn.CHISQ.TEST":"CHISQ.TEST","_xlfn.COMBINA":"COMBINA","_xlfn.CONFIDENCE.NORM":"CONFIDENCE.NORM","_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","_xlf
var lg=[["autoUpdate","false"],["changesSavedWin","false"],["includeHiddenRowCol","true"],["includePrintSettings","true"],["maximized","false"],["minimized","false"],["onlySync","false"],["personalView","false"],["showComments","commIndicator"],["showFormulaBar","true"],["showHorizontalScroll","true"],["showObjects","all"],["showSheetTabs","true"],["showStatusbar","true"],["showVerticalScroll","true"],["tabRatio","600"],["xWindow","0"],["yWindow","0"]];function cg(e,r){for(var t=0;t!=e.length;++t){var a=e[t];for(var n=0;n!=r.length;++n){var s=r[n];if(a[s[0]]==null)a[s[0]]=s[1];else switch(s[2]){case"bool":if(typeof a[s[0]]=="string")a[s[0]]=Ce(a[s[0]],s[0]);break;case"int":if(typeof a[s[0]]=="string")a[s[0]]=parseInt(a[s[0]],10);break;}}}}function og(e,r){for(var t=0;t!=r.length;++t){var a=r[t];if(e[a[0]]==null)e[a[0]]=a[1];else switch(a[2]){case"bool":if(typeof e[a[0]]=="string")e[a[0]]=Ce(e[a[0]],a[0]);break;case"int":if(typeof e[a[0]]=="string")e[a[0]]=parseInt(e[a[0]],10);break;}}}function ug(e){og(e.WBProps,ng);og(e.CalcPr,fg);cg(e.WBView,sg);cg(e.Sheets,ig);Ip.date1904=Ce(e.WBProps.date1904,"date1904")}function hg(e){if(!e.Workbook)return"false";if(!e.Workbook.WBProps)return"false";return Ce(e.Workbook.WBProps.date1904)?"true":"false"}var dg="][*?/\\".split("");function vg(e,r){if(e.length>31){if(r)return false;throw new Error("Sheet names cannot exceed 31 chars")}var t=true;dg.forEach(function(a){if(e.indexOf(a)==-1)return;if(!r)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");t=false});return t}function bg(e){e.forEach(function(r,t){vg(r);for(var a=0;a<t;++a)if(r==e[a])throw new Error("Duplicate Sheet Name: "+r)})}function pg(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");bg(e.SheetNames)}var mg=/<\w+:workbook/;function gg(e,r){if(!e)throw new Error("Could not find file");var t={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""};var a=false,n="xmlns";var s={},i=0;e.replace(fe,function f(l,c){var o=oe(l);switch(ue(o[0])){case"<?xml":break;case"<workbook":if(l.match(mg))n="xmlns"+l.match(/<(\w+):/)[1];t.xmlns=o[n];break;case"</workbook>":break;case"<fileVersion":delete o[0];t.AppVersion=o;break;case"<fileVersion/>":;case"</fileVersion>":break;case"<fileSharing":;case"<fileSharing/>":break;case"<workbookPr":;case"<workbookPr/>":ng.forEach(function(e){if(o[e[0]]==null)return;switch(e[2]){case"bool":t.WBProps[e[0]]=Ce(o[e[0]],e[0]);break;case"int":t.WBProps[e[0]]=parseInt(o[e[0]],10);break;default:t.WBProps[e[0]]=o[e[0]];}});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=ve(Te(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;
if(t)n["ss:Width"]=Mh(a.width);if(e.hidden)n["ss:Hidden"]="1";f.push(_e("Column",null,n))});var l=Array.isArray(e);for(var c=n.s.r;c<=n.e.r;++c){var o=[SE(c,(e["!rows"]||[])[c])];for(var u=n.s.c;u<=n.e.c;++u){var h=false;for(i=0;i!=s.length;++i){if(s[i].s.c>u)continue;if(s[i].s.r>c)continue;if(s[i].e.c<u)continue;if(s[i].e.r<c)continue;if(s[i].s.c!=u||s[i].s.r!=c)h=true;break}if(h)continue;var d={r:c,c:u};var v=jr(d),b=l?(e[c]||[])[u]:e[v];o.push(EE(b,v,e,r,t,a,d))}o.push("</Row>");if(o.length>2)f.push(o.join(""))}return f.join("")}function BE(e,r,t){var a=[];var n=t.SheetNames[e];var s=t.Sheets[n];var i=s?kE(s,r,e,t):"";if(i.length>0)a.push("<Table>"+i+"</Table>");a.push(mE(s,r,e,t));return a.join("")}function CE(e,r){var t=[];t.push(vE(e,r));t.push(bE(e,r));t.push(pE(e,r));for(var a=0;a<e.SheetNames.length;++a)t.push(_e("Worksheet",BE(a,r,e),{"ss:Name":me(e.SheetNames[a])}));return Ue+_e("Workbook",t.join(""),{xmlns:He.ss,"xmlns:o":He.o,"xmlns:x":He.x,"xmlns:ss":He.ss,"xmlns:dt":He.dt,"xmlns:html":He.html})}function TE(e){var r={};var t=e.content;var a=28,n;n=Je(t,a);a+=4+hr(t,a);r.UserType=n;n=hr(t,a);a+=4;switch(n){case 0:break;case 4294967295:;case 4294967294:a+=4;break;default:if(n>400)throw new Error("Unsupported Clipboard: "+n.toString(16));a+=n;}n=Je(t,a);a+=n.length===0?0:5+n.length;r.Reserved1=n;if((n=hr(t,a))!==1907550708)return r;throw new Error("Unsupported Unicode Extension")}function wE(e,r,t,a){var n=t;var s=[];var i=r.slice(r.l,r.l+n);if(a&&a.enc&&a.enc.insitu_decrypt)switch(e.n){case"BOF":;case"FilePass":;case"FileLock":;case"InterfaceHdr":;case"RRDInfo":;case"RRDHead":;case"UsrExcl":break;default:if(i.length===0)break;a.enc.insitu_decrypt(i);}s.push(i);r.l+=n;var f=PE[or(r,r.l)];var l=0;while(f!=null&&f.n.slice(0,8)==="Continue"){n=or(r,r.l+2);l=r.l+4;if(f.n=="ContinueFrt")l+=4;else if(f.n.slice(0,11)=="ContinueFrt")l+=12;s.push(r.slice(l,r.l+4+n));r.l+=4+n;f=PE[or(r,r.l)]}var c=p(s);Br(c,0);var o=0;c.lens=[];for(var u=0;u<s.length;++u){c.lens.push(o);o+=s[u].length}return e.f(c,c.length,a)}function IE(e,r,t){if(e.t==="z")return;if(!e.XF)return;var a=0;try{a=e.z||e.XF.numFmtId||0;if(r.cellNF)e.z=E._table[a]}catch(n){if(r.WTF)throw n}if(!r||r.cellText!==false)try{if(e.t==="e"){e.w=e.w||Rt[e.v]}else if(a===0||a=="General"){if(e.t==="n"){if((e.v|0)===e.v)e.w=E._general_int(e.v);else e.w=E._general_num(e.v)}else e.w=E._general(e.v)}else e.w=E.format(a,e.v,{date1904:!!t});if(r.cellDates&&a&&e.t=="n"&&E.is_date(E._table[a]||String(a))){var s=E.parse_date_code(e.v);if(s){e.t="d";e.v=new Date(s.y,s.m-1,s.d,s.H,s.M,s.S,s.u)}}}catch(n){if(r.WTF)throw n}}function xE(e,r,t){return{v:e,ixfe:r,t:t}}function AE(e,r){var t={opts:{}};var a={};if(o!=null&&r.dense==null)r.dense=o;var s=r.dense?[]:{};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 ea[e];if(e<64)return A[e-8]||ea[e];return ea[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=Rh(O(a.icvFore))){r.s.fgColor={rgb:n}}if(n=Rh(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);delete r.ixfe;delete r.XF;v=e;b=jr(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=Qr(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=""+up(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 N=[];var _=[
f:Cr},537:{n:"BrtPhoneticInfo",f:Cr},538:{n:"BrtBeginECTxtWiz",f:Cr},539:{n:"BrtEndECTxtWiz",f:Cr},540:{n:"BrtBeginECTWFldInfoLst",f:Cr},541:{n:"BrtEndECTWFldInfoLst",f:Cr},542:{n:"BrtBeginECTwFldInfo",f:Cr},548:{n:"BrtFileSharing",f:Cr},549:{n:"BrtOleSize",f:Cr},550:{n:"BrtDrawing",f:Et},551:{n:"BrtLegacyDrawing",f:Cr},552:{n:"BrtLegacyDrawingHF",f:Cr},553:{n:"BrtWebOpt",f:Cr},554:{n:"BrtBeginWebPubItems",f:Cr},555:{n:"BrtEndWebPubItems",f:Cr},556:{n:"BrtBeginWebPubItem",f:Cr},557:{n:"BrtEndWebPubItem",f:Cr},558:{n:"BrtBeginSXCondFmt",f:Cr},559:{n:"BrtEndSXCondFmt",f:Cr},560:{n:"BrtBeginSXCondFmts",f:Cr},561:{n:"BrtEndSXCondFmts",f:Cr},562:{n:"BrtBkHim",f:Cr},564:{n:"BrtColor",f:Cr},565:{n:"BrtBeginIndexedColors",f:Cr},566:{n:"BrtEndIndexedColors",f:Cr},569:{n:"BrtBeginMRUColors",f:Cr},570:{n:"BrtEndMRUColors",f:Cr},572:{n:"BrtMRUColor",f:Cr},573:{n:"BrtBeginDVals",f:Cr},574:{n:"BrtEndDVals",f:Cr},577:{n:"BrtSupNameStart",f:Cr},578:{n:"BrtSupNameValueStart",f:Cr},579:{n:"BrtSupNameValueEnd",f:Cr},580:{n:"BrtSupNameNum",f:Cr},581:{n:"BrtSupNameErr",f:Cr},582:{n:"BrtSupNameSt",f:Cr},583:{n:"BrtSupNameNil",f:Cr},584:{n:"BrtSupNameBool",f:Cr},585:{n:"BrtSupNameFmla",f:Cr},586:{n:"BrtSupNameBits",f:Cr},587:{n:"BrtSupNameEnd",f:Cr},588:{n:"BrtEndSupBook",f:Cr},589:{n:"BrtCellSmartTagProperty",f:Cr},590:{n:"BrtBeginCellSmartTag",f:Cr},591:{n:"BrtEndCellSmartTag",f:Cr},592:{n:"BrtBeginCellSmartTags",f:Cr},593:{n:"BrtEndCellSmartTags",f:Cr},594:{n:"BrtBeginSmartTags",f:Cr},595:{n:"BrtEndSmartTags",f:Cr},596:{n:"BrtSmartTagType",f:Cr},597:{n:"BrtBeginSmartTagTypes",f:Cr},598:{n:"BrtEndSmartTagTypes",f:Cr},599:{n:"BrtBeginSXFilters",f:Cr},600:{n:"BrtEndSXFilters",f:Cr},601:{n:"BrtBeginSXFILTER",f:Cr},602:{n:"BrtEndSXFilter",f:Cr},603:{n:"BrtBeginFills",f:Cr},604:{n:"BrtEndFills",f:Cr},605:{n:"BrtBeginCellWatches",f:Cr},606:{n:"BrtEndCellWatches",f:Cr},607:{n:"BrtCellWatch",f:Cr},608:{n:"BrtBeginCRErrs",f:Cr},609:{n:"BrtEndCRErrs",f:Cr},610:{n:"BrtCrashRecErr",f:Cr},611:{n:"BrtBeginFonts",f:Cr},612:{n:"BrtEndFonts",f:Cr},613:{n:"BrtBeginBorders",f:Cr},614:{n:"BrtEndBorders",f:Cr},615:{n:"BrtBeginFmts",f:Cr},616:{n:"BrtEndFmts",f:Cr},617:{n:"BrtBeginCellXFs",f:Cr},618:{n:"BrtEndCellXFs",f:Cr},619:{n:"BrtBeginStyles",f:Cr},620:{n:"BrtEndStyles",f:Cr},625:{n:"BrtBigName",f:Cr},626:{n:"BrtBeginCellStyleXFs",f:Cr},627:{n:"BrtEndCellStyleXFs",f:Cr},628:{n:"BrtBeginComments",f:Cr},629:{n:"BrtEndComments",f:Cr},630:{n:"BrtBeginCommentAuthors",f:Cr},631:{n:"BrtEndCommentAuthors",f:Cr},632:{n:"BrtCommentAuthor",f:mv},633:{n:"BrtBeginCommentList",f:Cr},634:{n:"BrtEndCommentList",f:Cr},635:{n:"BrtBeginComment",f:bv},636:{n:"BrtEndComment",f:Cr},637:{n:"BrtCommentText",f:ct},638:{n:"BrtBeginOleObjects",f:Cr},639:{n:"BrtOleObject",f:Cr},640:{n:"BrtEndOleObjects",f:Cr},641:{n:"BrtBeginSxrules",f:Cr},642:{n:"BrtEndSxRules",f:Cr},643:{n:"BrtBeginActiveXControls",f:Cr},644:{n:"BrtActiveX",f:Cr},645:{n:"BrtEndActiveXControls",f:Cr},646:{n:"BrtBeginPCDSDTCEMembersSortBy",f:Cr},648:{n:"BrtBeginCellIgnoreECs",f:Cr},649:{n:"BrtCellIgnoreEC",f:Cr},650:{n:"BrtEndCellIgnoreECs",f:Cr},651:{n:"BrtCsProp",f:Cr},652:{n:"BrtCsPageSetup",f:Cr},653:{n:"BrtBeginUserCsViews",f:Cr},654:{n:"BrtEndUserCsViews",f:Cr},655:{n:"BrtBeginUserCsView",f:Cr},656:{n:"BrtEndUserCsView",f:Cr},657:{n:"BrtBeginPcdSFCIEntries",f:Cr},658:{n:"BrtEndPCDSFCIEntries",f:Cr},659:{n:"BrtPCDSFCIEntry",f:Cr},660:{n:"BrtBeginListParts",f:Cr},661:{n:"BrtListPart",f:Cr},662:{n:"BrtEndListParts",f:Cr},663:{n:"BrtSheetCalcProp",f:Cr},664:{n:"BrtBeginFnGroup",f:Cr},665:{n:"BrtFnGroup",f:Cr},666:{n:"BrtEndFnGroup",f:Cr},667:{n:"BrtSupAddin",f:Cr},668:{n:"BrtSXTDMPOrder",f:Cr},669:{n:"BrtCsProtection",f:Cr},671:{n:"BrtBeginWsSortMap",f:Cr},672:{n:"BrtEndWsSortMap",f:Cr},673:{n:"BrtBeginRRSort",f:Cr},674:{n:"BrtEndRRSort",f:Cr},675:{n:"BrtRRSortItem",f:Cr},676:{n:"BrtFileSharingIso",f:Cr},677:{n:"BrtBookProtectionIso",f:Cr},678:{n:"BrtSheetProtectionIso",f:Cr},679:{n:"BrtCsProtectionIso",f:Cr},680:{n:"BrtRangeProtectionIso",f:Cr},1024:{n:"BrtRwDescent",f:Cr},1025:{n:"BrtKnownFonts",f:Cr},1026:{n:"BrtB
h="";u=oe(E[0],false);f.push([E[3],true])}break;case"script":break;case"libraries":break;case"automatic-styles":break;case"master-styles":break;case"default-style":;case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(f[f.length-1][0]){case"time-style":;case"date-style":c=oe(E[0],false);h+=r[E[3]][c.style==="long"?1:0];break;}break;case"fraction":break;case"day":;case"month":;case"year":;case"era":;case"day-of-week":;case"week-of-year":;case"quarter":;case"hours":;case"minutes":;case"seconds":;case"am-pm":switch(f[f.length-1][0]){case"time-style":;case"date-style":c=oe(E[0],false);h+=r[E[3]][c.style==="long"?1:0];break;}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(E[0].slice(-2)==="/>")break;else if(E[1]==="/")switch(f[f.length-1][0]){case"number-style":;case"date-style":;case"time-style":h+=i.slice(d,E.index);break;}else d=E.index+E[0].length;break;case"text-content":break;case"text-properties":break;case"body":;case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-row-group":break;case"table-column-group":break;case"table-header-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"named-range":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":;case"文本串":if(E[1]==="/")B=(B.length>0?B+"\n":"")+e(i.slice(C,E.index),T);else{T=oe(E[0],false);C=E.index+E[0].length}break;case"database-range":if(E[1]==="/")break;try{var z=Tp(oe(E[0])["target-range-address"]);p[z[0]]["!autofilter"]={ref:z[1]}}catch(j){}break;case"s":break;case"date":break;case"object":break;case"title":;case"标题":break;case"desc":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":;case"sender-lastname":;case"sender-initials":;case"sender-title":;case"sender-position":;case"sender-email":;case"sender-phone-private":;case"sender-fax":;case"sender-company":;case"sender-phone-work":;case"sender-street":;case"sender-city":;case"sender-postal-code":;case"sender-country":;case"sender-state-or-province":;case"author-name":;case"author-initials":;case"chapter":;case"file-name":;case"template-name":;case"sheet-name":break;case"event-listener":break;case"initial-creator":;case"creation-date":;case"generator":;case"document-statistic":;case"user-defined":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":;case"source-cell-range":;case"source-service":;case"data-pilot-field":;case"data-pilot-level":;case"data-pilot-subtotals":;case"data-pilot-subtotal":;case"data-pilot-members":;case"data-pilot-member":;case"data-pilot-display-info":;case"data-pilot-sort-info":;case"data-pilot-layout-info":;case"data-pilot-field-reference":;case"data-pilot-groups":;case"data-pilot-group":;case"data-pilot-group-member":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:")brea