sheetjs/dist/xlsx.core.min.js

17 lines
451 KiB
JavaScript
Raw Permalink Normal View History

/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
2022-06-09 04:45:22 +00:00
var XLSX={};function make_xlsx_lib(e){e.version="0.18.9";var r=1200,t=1252;var a;var n=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4];var i={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969};var s=function(e){if(n.indexOf(e)==-1)return;t=i[0]=e};function f(){s(1252)}var c=function(e){r=e;s(e)};function l(){c(1200);f()}function o(e){var r=[];for(var t=0,a=e.length;t<a;++t)r[t]=e.charCodeAt(t);return r}function u(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 h(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 d=function(e){var r=e.charCodeAt(0),t=e.charCodeAt(1);if(r==255&&t==254)return u(e.slice(2));if(r==254&&t==255)return h(e.slice(2));if(r==65279)return e.slice(1);return e};var v=function uk(e){return String.fromCharCode(e)};var p=function hk(e){return String.fromCharCode(e)};function m(e){a=e;c=function(e){r=e;s(e)};d=function(e){if(e.charCodeAt(0)===255&&e.charCodeAt(1)===254){return a.utils.decode(1200,o(e.slice(2)))}return e};v=function n(e){if(r===1200)return String.fromCharCode(e);return a.utils.decode(r,[e&255,e>>8])[0]};p=function i(e){return a.utils.decode(t,[e])[0]};ta()}var b=null;var g=true;var w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function k(e){var r="";var t=0,a=0,n=0,i=0,s=0,f=0,c=0;for(var l=0;l<e.length;){t=e.charCodeAt(l++);i=t>>2;a=e.charCodeAt(l++);s=(t&3)<<4|a>>4;n=e.charCodeAt(l++);f=(a&15)<<2|n>>6;c=n&63;if(isNaN(a)){f=c=64}else if(isNaN(n)){c=64}r+=w.charAt(i)+w.charAt(s)+w.charAt(f)+w.charAt(c)}return r}function T(e){var r="";var t=0,a=0,n=0,i=0,s=0,f=0,c=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var l=0;l<e.length;){i=w.indexOf(e.charAt(l++));s=w.indexOf(e.charAt(l++));t=i<<2|s>>4;r+=String.fromCharCode(t);f=w.indexOf(e.charAt(l++));a=(s&15)<<4|f>>2;if(f!==64){r+=String.fromCharCode(a)}c=w.indexOf(e.charAt(l++));n=(f&3)<<6|c;if(c!==64){r+=String.fromCharCode(n)}}return r}var E=function(){return typeof Buffer!=="undefined"&&typeof undefined!=="undefined"&&typeof{}!=="undefined"&&!!{}.node}();var y=function(){if(typeof Buffer!=="undefined"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch(r){e=true}return e?function(e,r){return r?new Buffer(e,r):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}}();function S(e){if(E)return Buffer.alloc?Buffer.alloc(e):new Buffer(e);return typeof Uint8Array!="undefined"?new Uint8Array(e):new Array(e)}function _(e){if(E)return Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e);return typeof Uint8Array!="undefined"?new Uint8Array(e):new Array(e)}var A=function dk(e){if(E)return y(e,"binary");return e.split("").map(function(e){return e.charCodeAt(0)&255})};function x(e){if(typeof ArrayBuffer==="undefined")return A(e);var r=new ArrayBuffer(e.length),t=new Uint8Array(r);for(var a=0;a!=e.length;++a)t[a]=e.charCodeAt(a)&255;return r}function C(e){if(Array.isArray(e))return e.map(function(e){return String.fromCharCode(e)}).join("");var r=[];for(var t=0;t<e.length;++t)r[t]=String.fromCharCode(e[t]);return r.join("")}function O(e){if(typeof Uint8Array==="undefined")throw new Error("Unsupported");return new Uint8Array(e)}function R(e){if(typeof ArrayBuffer=="undefined")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return R(new Uint8Array(e));var r=new Array(e.length);for(var t=0;t<e.length;++t)r[t]=e[t];return r}var N=E?function(e){return Buffer.concat(e.map(function(e){return Buffer.isBuffer(e)?e:y(e)}))}:function(e){if(typeof Uint8Array!=="undefined"){var r=0,t=0;for(r=0;r<e.length;++r)t+=e[r].length;var a=new Uint8Array(t);var n=0;for(r=0,t=0;r<e.length;t+=n,++r){n=e[r].length;if(e[r]instanceof Uint8Array)a.set(e[r],t);else if(typeof e[r]=="string"){throw"wtf"}else a.set(new Uint8Array(e[r]),t)}return a}return[].concat.apply([],e.map(function(e){return Array.isArray(e)?e:[].slice.call(e)}))};f
return~a}function T(e,r){var a=r^-1,n=e.length-15,k=0;for(;k<n;)a=w[e[k++]^a&255]^g[e[k++]^a>>8&255]^b[e[k++]^a>>16&255]^m[e[k++]^a>>>24]^p[e[k++]]^v[e[k++]]^d[e[k++]]^h[e[k++]]^u[e[k++]]^o[e[k++]]^l[e[k++]]^c[e[k++]]^f[e[k++]]^s[e[k++]]^i[e[k++]]^t[e[k++]];n+=15;while(k<n)a=a>>>8^t[(a^e[k++])&255];return~a}function E(e,r){var a=r^-1;for(var n=0,i=e.length,s=0,f=0;n<i;){s=e.charCodeAt(n++);if(s<128){a=a>>>8^t[(a^s)&255]}else if(s<2048){a=a>>>8^t[(a^(192|s>>6&31))&255];a=a>>>8^t[(a^(128|s&63))&255]}else if(s>=55296&&s<57344){s=(s&1023)+64;f=e.charCodeAt(n++)&1023;a=a>>>8^t[(a^(240|s>>8&7))&255];a=a>>>8^t[(a^(128|s>>2&63))&255];a=a>>>8^t[(a^(128|f>>6&15|(s&3)<<4))&255];a=a>>>8^t[(a^(128|f&63))&255]}else{a=a>>>8^t[(a^(224|s>>12&15))&255];a=a>>>8^t[(a^(128|s>>6&63))&255];a=a>>>8^t[(a^(128|s&63))&255]}}return~a}e.table=t;e.bstr=k;e.buf=T;e.str=E;return e}();var qe=function pk(){var e={};e.version="1.2.2";function r(e,r){var t=e.split("/"),a=r.split("/");for(var n=0,i=0,s=Math.min(t.length,a.length);n<s;++n){if(i=t[n].length-a[n].length)return i;if(t[n]!=a[n])return t[n]<a[n]?-1:1}return t.length-a.length}function t(e){if(e.charAt(e.length-1)=="/")return e.slice(0,-1).indexOf("/")===-1?e:t(e.slice(0,-1));var r=e.lastIndexOf("/");return r===-1?e:e.slice(0,r+1)}function a(e){if(e.charAt(e.length-1)=="/")return a(e.slice(0,-1));var r=e.lastIndexOf("/");return r===-1?e:e.slice(r+1)}function n(e,r){if(typeof r==="string")r=new Date(r);var t=r.getHours();t=t<<6|r.getMinutes();t=t<<5|r.getSeconds()>>>1;e._W(2,t);var a=r.getFullYear()-1980;a=a<<4|r.getMonth()+1;a=a<<5|r.getDate();e._W(2,a)}function i(e){var r=e._R(2)&65535;var t=e._R(2)&65535;var a=new Date;var n=t&31;t>>>=5;var i=t&15;t>>>=4;a.setMilliseconds(0);a.setFullYear(t+1980);a.setMonth(i-1);a.setDate(n);var s=r&31;r>>>=5;var f=r&63;r>>>=6;a.setHours(r);a.setMinutes(f);a.setSeconds(s<<1);return a}function s(e){pa(e,0);var r={};var t=0;while(e.l<=e.length-4){var a=e._R(2);var n=e._R(2),i=e.l+n;var s={};switch(a){case 21589:{t=e._R(1);if(t&1)s.mtime=e._R(4);if(n>5){if(t&2)s.atime=e._R(4);if(t&4)s.ctime=e._R(4)}if(s.mtime)s.mt=new Date(s.mtime*1e3)}break;}e.l=i;r[a]=s}return r}var f;function c(){return f||(f=Qe)}function l(e,r){if(e[0]==80&&e[1]==75)return Ne(e,r);if((e[0]|32)==109&&(e[1]|32)==105)return We(e,r);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var t=3;var a=512;var n=0;var i=0;var s=0;var f=0;var c=0;var l=[];var v=e.slice(0,512);pa(v,0);var m=o(v);t=m[0];switch(t){case 3:a=512;break;case 4:a=4096;break;case 0:if(m[1]==0)return Ne(e,r);default:throw new Error("Major Version: Expected 3 or 4 saw "+t);}if(a!==512){v=e.slice(0,a);pa(v,28)}var w=e.slice(0,a);u(v,t);var k=v._R(4,"i");if(t===3&&k!==0)throw new Error("# Directory Sectors: Expected 0 saw "+k);v.l+=4;s=v._R(4,"i");v.l+=4;v.chk("00100000","Mini Stream Cutoff Size: ");f=v._R(4,"i");n=v._R(4,"i");c=v._R(4,"i");i=v._R(4,"i");for(var T=-1,E=0;E<109;++E){T=v._R(4,"i");if(T<0)break;l[E]=T}var y=h(e,a);p(c,i,y,a,l);var S=b(y,s,l,a);S[s].name="!Directory";if(n>0&&f!==U)S[f].name="!MiniFAT";S[l[0]].name="!FAT";S.fat_addrs=l;S.ssz=a;var _={},A=[],x=[],C=[];g(s,S,y,A,n,_,x,f);d(x,C,A);A.shift();var O={FileIndex:x,FullPaths:C};if(r&&r.raw)O.raw={header:w,sectors:y};return O}function o(e){if(e[e.l]==80&&e[e.l+1]==75)return[0,0];e.chk(B,"Header Signature: ");e.l+=16;var r=e._R(2,"u");return[e._R(2,"u"),r]}function u(e,r){var t=9;e.l+=2;switch(t=e._R(2)){case 9:if(r!=3)throw new Error("Sector Shift: Expected 9 saw "+t);break;case 12:if(r!=4)throw new Error("Sector Shift: Expected 12 saw "+t);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+t);}e.chk("0600","Mini Sector Shift: ");e.chk("000000000000","Reserved: ")}function h(e,r){var t=Math.ceil(e.length/r)-1;var a=[];for(var n=1;n<t;++n)a[n-1]=e.slice(n*r,(n+1)*r);a[t-1]=e.slice(t*r);return a}function d(e,r,t){var a=0,n=0,i=0,s=0,f=0,c=t.length;var l=[],o=[];for(;a<c;++a){l[a]=o[a]=a;r[a]=t[a]}for(;f<o.length;++f){a=o[f];n=e[a].L;i=e[a].R;s=e[a].C;if(l[a]===a){if(n!==-1&&l[n]!==n)l[a]=l[n];if(i!==-1&&l[i]!==i)l[a]=l[i]}if(s!==-1)l[
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 i=new Date(+n[0],+n[1]-1,+n[2],+n[3]||0,+n[4]||0,+n[5]||0);if(e.indexOf("Z")>-1)i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3);return i}function kr(e,r){if(E&&Buffer.isBuffer(e)){if(r){if(e[0]==255&&e[1]==254)return pt(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return pt(h(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder!=="undefined")try{if(r){if(e[0]==255&&e[1]==254)return pt(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return pt(new TextDecoder("utf-16be").decode(e.slice(2)))}var t={"€":"€","":"‚","ƒ":"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰","Š":"Š","":"‹","Œ":"Œ","Ž":"Ž","":"‘","":"’","“":"“","”":"”","•":"•","":"–","—":"—","˜":"˜","™":"™","š":"š","":"›","œ":"œ","ž":"ž","Ÿ":"Ÿ"};if(Array.isArray(e))e=new Uint8Array(e);return new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(e){return t[e]||e})}catch(a){}var n=[];for(var i=0;i!=e.length;++i)n.push(String.fromCharCode(e[i]));return n.join("")}function Tr(e){if(typeof JSON!="undefined"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var r={};for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))r[t]=Tr(e[t]);return r}function Er(e,r){var t="";while(t.length<r)t+=e;return t}function yr(e){var r=Number(e);if(!isNaN(r))return isFinite(r)?r:NaN;if(!/\d/.test(e))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}var Sr=/^(0?\d|1[0-2])(?:|:([0-5]?\d)(?:|(\.\d+)(?:|:([0-5]?\d))|:([0-5]?\d)(|\.\d+)))([ap])m?/;function _r(e){if(!e[2])return new Date(1900,0,0,+e[1]%12+(e[7]=="p"?12:0),0,0,0);if(e[3]){if(e[4])return new Date(1900,0,0,+e[1]%12+(e[7]=="p"?12:0),+e[2],+e[4],parseFloat(e[3])*1e3);else return new Date(1900,0,0,e[7]=="p"?12:0,+e[1],+e[2],parseFloat(e[3])*1e3)}else if(e[5])return new Date(1900,0,0,+e[1]%12+(e[7]=="p"?12:0),+e[2],+e[5],e[6]?parseFloat(e[6])*1e3:0);else return new Date(1900,0,0,+e[1]%12+(e[7]=="p"?12:0),+e[2],0,0)}var Ar=["january","february","march","april","may","june","july","august","september","october","november","december"];function xr(e){var r=e.toLowerCase();var t=r.replace(/\s+/g,"");var a=t.match(Sr);if(a)return _r(a);var n=new Date(e),i=new Date(NaN);var s=n.getYear(),f=n.getMonth(),c=n.getDate();if(isNaN(c))return i;if(r.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){r=r.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"");if(r.length>3&&Ar.indexOf(r)==-1)return i}else if(r.replace(/[ap]m?/,"").match(/[a-z]/))return i;if(s<0||s>8099)return i;if((f>0||c>1)&&s!=101)return n;if(e.match(/[^-0-9:,\/\\]/))return i;return n}var Cr=function(){var e="abacaba".split(/(:?b)/i).length==5;return function r(t,a,n){if(e||typeof a=="string")return t.split(a);var i=t.split(a),s=[i[0]];for(var f=1;f<i.length;++f){s.push(n);s.push(i[f])}return s}}();function Or(e){if(!e)return null;if(e.content&&e.type)return kr(e.content,true);if(e.data)return d(e.data);if(e.asNodeBuffer&&E)return d(e.asNodeBuffer().toString("binary"));if(e.asBinary)return d(e.asBinary());if(e._data&&e._data.getContent)return d(kr(Array.prototype.slice.call(e._data.getContent(),0)));return null}function Rr(e){if(!e)return null;if(e.data)return o(e.data);if(e.asNodeBuffer&&E)return e.asNodeBuffer();if(e._data&&e._data.getContent){var r=e._data.getContent();if(typeof r=="string")return o(r);return Array.prototype.slice.call(r)}if(e.content&&e.type)return e.content;return null}function Nr(e){return e&&e.name.slice(-4)===".bin"?Rr(e):Or(e)}function Ir(e,r){var t=e.FullPaths||nr(e.file
28:{n:"Language",t:Bn},29:{n:"Version",t:Bn},255:{},2147483648:{n:"Locale",t:Fn},2147483651:{n:"Behavior",t:Fn},1919054434:{}};var Vn={1:{n:"CodePage",t:On},2:{n:"Title",t:Bn},3:{n:"Subject",t:Bn},4:{n:"Author",t:Bn},5:{n:"Keywords",t:Bn},6:{n:"Comments",t:Bn},7:{n:"Template",t:Bn},8:{n:"LastAuthor",t:Bn},9:{n:"RevNumber",t:Bn},10:{n:"EditTime",t:Dn},11:{n:"LastPrinted",t:Dn},12:{n:"CreatedDate",t:Dn},13:{n:"ModifiedDate",t:Dn},14:{n:"PageCount",t:Rn},15:{n:"WordCount",t:Rn},16:{n:"CharCount",t:Rn},17:{n:"Thumbnail",t:Ln},18:{n:"Application",t:Bn},19:{n:"DocSecurity",t:Rn},255:{},2147483648:{n:"Locale",t:Fn},2147483651:{n:"Behavior",t:Fn},1919054434:{}};var Gn={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"};var $n=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function jn(e){return e.map(function(e){return[e>>16&255,e>>8&255,e&255]})}var Xn=jn([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,0,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);var Yn=Tr(Xn);var Kn={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"};var Zn={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255};var Jn=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];var qn={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","app
s._W(4,842412599);s._W(16,qe.utils.consts.HEADER_CLSID,"hex");s._W(4,n?2:1);s._W(16,r,"hex");s._W(4,n?68:48);var c=qi(e,t,a);f.push(c);if(n){var l=qi(n,null,null);s._W(16,i,"hex");s._W(4,68+c.length);f.push(l)}return N(f)}function rs(e,r){e._R(r);return null}function ts(e,r){if(!r)r=ba(e);for(var t=0;t<e;++t)r._W(1,0);return r}function as(e,r,t){var a=[],n=e.l+r;while(e.l<n)a.push(t(e,n-e.l));if(n!==e.l)throw new Error("Slurp error");return a}function ns(e,r){return e._R(r)===1}function is(e,r){if(!r)r=ba(2);r._W(2,+!!e);return r}function ss(e){return e._R(2,"u")}function fs(e,r){if(!r)r=ba(2);r._W(2,e);return r}function cs(e,r){return as(e,r,ss)}function ls(e){var r=e._R(1),t=e._R(1);return t===1?r:r===1}function os(e,r,t){if(!t)t=ba(2);t._W(1,r=="e"?+e:+!!e);t._W(1,r=="e"?1:0);return t}function us(e,t,a){var n=e._R(a&&a.biff>=12?2:1);var i="sbcs-cont";var s=r;if(a&&a.biff>=8)r=1200;if(!a||a.biff==8){var f=e._R(1);if(f){i="dbcs-cont"}}else if(a.biff==12){i="wstr"}if(a.biff>=2&&a.biff<=5)i="cpstr";var c=n?e._R(n,i):"";r=s;return c}function hs(e){var t=r;r=1200;var a=e._R(2),n=e._R(1);var i=n&4,s=n&8;var f=1+(n&1);var c=0,l;var o={};if(s)c=e._R(2);if(i)l=e._R(4);var u=f==2?"dbcs-cont":"sbcs-cont";var h=a===0?"":e._R(a,u);if(s)e.l+=4*c;if(i)e.l+=l;o.t=h;if(!s){o.raw="<t>"+o.t+"</t>";o.r=o.t}r=t;return o}function ds(e){var r=e.t||"",t=1;var a=ba(3+(t>1?2:0));a._W(2,r.length);a._W(1,(t>1?8:0)|1);if(t>1)a._W(2,t);var n=ba(2*r.length);n._W(2*r.length,r,"utf16le");var i=[a,n];return N(i)}function vs(e,r,t){var a;if(t){if(t.biff>=2&&t.biff<=5)return e._R(r,"cpstr");if(t.biff>=12)return e._R(r,"dbcs-cont")}var n=e._R(1);if(n===0){a=e._R(r,"sbcs-cont")}else{a=e._R(r,"dbcs-cont")}return a}function ps(e,r,t){var a=e._R(t&&t.biff==2?1:2);if(a===0){e.l++;return""}return vs(e,a,t)}function ms(e,r,t){if(t.biff>5)return ps(e,r,t);var a=e._R(1);if(a===0){e.l++;return""}return e._R(a,t.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function bs(e,r,t){if(!t)t=ba(3+2*e.length);t._W(2,e.length);t._W(1,1);t._W(31,e,"utf16le");return t}function gs(e){var r=e._R(1);e.l++;var t=e._R(2);e.l+=2;return[r,t]}function ws(e){var r=e._R(4),t=e.l;var a=false;if(r>24){e.l+=r-24;if(e._R(16)==="795881f43b1d7f48af2c825dc4852763")a=true;e.l=t}var n=e._R((a?r-24:r)>>1,"utf16le").replace(F,"");if(a)e.l+=24;return n}function ks(e){var r=e._R(2);var t="";while(r-- >0)t+="../";var a=e._R(0,"lpstr-ansi");e.l+=2;if(e._R(2)!=57005)throw new Error("Bad FileMoniker");var n=e._R(4);if(n===0)return t+a.replace(/\\/g,"/");var i=e._R(4);if(e._R(2)!=3)throw new Error("Bad FileMoniker");var s=e._R(i>>1,"utf16le").replace(F,"");return t+s}function Ts(e,r){var t=e._R(16);r-=16;switch(t){case"e0c9ea79f9bace118c8200aa004ba90b":return ws(e,r);case"0303000000000000c000000000000046":return ks(e,r);default:throw new Error("Unsupported Moniker "+t);}}function Es(e){var r=e._R(4);var t=r>0?e._R(r,"utf16le").replace(F,""):"";return t}function ys(e,r){if(!r)r=ba(6+e.length*2);r._W(4,1+e.length);for(var t=0;t<e.length;++t)r._W(2,e.charCodeAt(t));r._W(2,0);return r}function Ss(e,r){var t=e.l+r;var a=e._R(4);if(a!==2)throw new Error("Unrecognized streamVersion: "+a);var n=e._R(2);e.l+=2;var i,s,f,c,l="",o,u;if(n&16)i=Es(e,t-e.l);if(n&128)s=Es(e,t-e.l);if((n&257)===257)f=Es(e,t-e.l);if((n&257)===1)c=Ts(e,t-e.l);if(n&8)l=Es(e,t-e.l);if(n&32)o=e._R(16);if(n&64)u=Fi(e);e.l=t;var h=s||f||c||"";if(h&&l)h+="#"+l;if(!h)h="#"+l;if(n&2&&h.charAt(0)=="/"&&h.charAt(1)!="/")h="file://"+h;var d={Target:h};if(o)d.guid=o;if(u)d.time=u;if(i)d.Tooltip=i;return d}function _s(e){var r=ba(512),t=0;var a=e.Target;if(a.slice(0,7)=="file://")a=a.slice(7);var n=a.indexOf("#");var i=n>-1?31:23;switch(a.charAt(0)){case"#":i=28;break;case".":i&=~2;break;}r._W(4,2);r._W(4,i);var s=[8,6815827,6619237,4849780,83];for(t=0;t<s.length;++t)r._W(4,s[t]);if(i==28){a=a.slice(1);ys(a,r)}else if(i&2){s="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" ");for(t=0;t<s.length;++t)r._W(1,parseInt(s[t],16));var f=n>-1?a.slice(0,n):a;r._W(4,2*(f.length+1));for(t=0;t<f.length;++t)r._W(2,f.charCodeAt(t));r._W(2,0);if(i&8)ys(n>-1?a.slice
;}if(M<1)v=null;break;default:if(i&&i.WTF)throw new Error("SYLK bad record "+E);}}if(m.length>0)p["!rows"]=m;if(b.length>0)p["!cols"]=b;b.forEach(function(e){Pl(e)});if(i&&i.sheetRows)h=h.slice(0,i.sheetRows);return[h,p,T]}function f(e,r){var t=i(e,r);var a=t[0],n=t[1],s=t[2];var f=Tr(r);f.date1904=(((s||{}).Workbook||{}).WBProps||{}).date1904;var c=$a(a,f);nr(n).forEach(function(e){c[e]=n[e]});var l=Va(c,r);nr(s).forEach(function(e){l[e]=s[e]});return l}function l(e,r,t,a){var n="C;Y"+(t+1)+";X"+(a+1)+";K";switch(e.t){case"n":n+=e.v||0;if(e.f&&!e.F)n+=";E"+Fu(e.f,{r:t,c:a});break;case"b":n+=e.v?"TRUE":"FALSE";break;case"e":n+=e.w||e.v;break;case"d":n+='"'+(e.w||e.v)+'"';break;case"s":n+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"';break;}return n}function o(e,r){r.forEach(function(r,t){var a="F;W"+(t+1)+" "+(t+1)+" ";if(r.hidden)a+="0";else{if(typeof r.width=="number"&&!r.wpx)r.wpx=Rl(r.width);if(typeof r.wpx=="number"&&!r.wch)r.wch=Nl(r.wpx);if(typeof r.wch=="number")a+=Math.round(r.wch)}if(a.charAt(a.length-1)!=" ")e.push(a)})}function u(e,r){r.forEach(function(r,t){var a="F;";if(r.hidden)a+="M0;";else if(r.hpt)a+="M"+20*r.hpt+";";else if(r.hpx)a+="M"+20*Ul(r.hpx)+";";if(a.length>2)e.push(a+"R"+(t+1))})}function h(e,r,t){var a=["ID;PSheetJS;N;E"],n=[];var i=Wa(e["!ref"]),s;var f=Array.isArray(e);var c="\r\n";var h=(((t||{}).Workbook||{}).WBProps||{}).date1904;a.push("P;PGeneral");a.push("F;P0;DG0G8;M255");if(e["!cols"])o(a,e["!cols"]);if(e["!rows"])u(a,e["!rows"]);a.push("B;Y"+(i.e.r-i.s.r+1)+";X"+(i.e.c-i.s.c+1)+";D"+[i.s.c,i.s.r,i.e.c,i.e.r].join(" "));a.push("O;L;D;B"+(h?";V4":"")+";K47;G100 0.001");for(var d=i.s.r;d<=i.e.r;++d){for(var v=i.s.c;v<=i.e.c;++v){var p=Pa({r:d,c:v});s=f?(e[d]||[])[v]:e[p];if(!s||s.v==null&&(!s.f||s.F))continue;n.push(l(s,e,d,v,r))}}return a.join(c)+c+n.join(c)+c+"E"+c}return{to_workbook:f,from_sheet:h}}();var Cc=function(){function e(e,t){switch(t.type){case"base64":return r(T(e),t);case"binary":return r(e,t);case"buffer":return r(E&&Buffer.isBuffer(e)?e.toString("binary"):C(e),t);case"array":return r(kr(e),t);}throw new Error("Unrecognized type "+t.type)}function r(e,r){var t=e.split("\n"),a=-1,n=-1,i=0,s=[];for(;i!==t.length;++i){if(t[i].trim()==="BOT"){s[++a]=[];n=0;continue}if(a<0)continue;var f=t[i].trim().split(",");var c=f[0],l=f[1];++i;var o=t[i]||"";while((o.match(/["]/g)||[]).length&1&&i<t.length-1)o+="\n"+t[++i];o=o.trim();switch(+c){case-1:if(o==="BOT"){s[++a]=[];n=0;continue}else if(o!=="EOD")throw new Error("Unrecognized DIF special command "+o);break;case 0:if(o==="TRUE")s[a][n]=true;else if(o==="FALSE")s[a][n]=false;else if(!isNaN(yr(l)))s[a][n]=yr(l);else if(!isNaN(xr(l).getDate()))s[a][n]=wr(l);else s[a][n]=l;++n;break;case 1:o=o.slice(1,o.length-1);o=o.replace(/""/g,'"');if(g&&o&&o.match(/^=".*"$/))o=o.slice(2,-1);s[a][n++]=o!==""?o:null;break;}if(o==="EOD")break}if(r&&r.sheetRows)s=s.slice(0,r.sheetRows);return s}function t(r,t){return $a(e(r,t),t)}function a(e,r){return Va(t(e,r),r)}var n=function(){var e=function t(e,r,a,n,i){e.push(r);e.push(a+","+n);e.push('"'+i.replace(/"/g,'""')+'"')};var r=function a(e,r,t,n){e.push(r+","+t);e.push(r==1?'"'+n.replace(/"/g,'""')+'"':n)};return function n(t){var a=[];var n=Wa(t["!ref"]),i;var s=Array.isArray(t);e(a,"TABLE",0,1,"sheetjs");e(a,"VECTORS",0,n.e.r-n.s.r+1,"");e(a,"TUPLES",0,n.e.c-n.s.c+1,"");e(a,"DATA",0,0,"");for(var f=n.s.r;f<=n.e.r;++f){r(a,-1,0,"BOT");for(var c=n.s.c;c<=n.e.c;++c){var l=Pa({r:f,c:c});i=s?(t[f]||[])[c]:t[l];if(!i){r(a,1,0,"");continue}switch(i.t){case"n":var o=g?i.w:i.v;if(!o&&i.v!=null)o=i.v;if(o==null){if(g&&i.f&&!i.F)r(a,1,0,"="+i.f);else r(a,1,0,"")}else r(a,0,o,"V");break;case"b":r(a,0,i.v?1:0,i.v?"TRUE":"FALSE");break;case"s":r(a,1,0,!g||isNaN(i.v)?i.v:'="'+i.v+'"');break;case"d":if(!i.w)i.w=We(i.z||Y[14],or(wr(i.v)));if(g)r(a,0,i.w,"V");else r(a,1,0,i.w);break;default:r(a,1,0,"");}}}r(a,-1,0,"EOD");var u="\r\n";var h=a.join(u);return h}}();return{to_workbook:a,to_sheet:t,from_sheet:n}}();var Oc=function(){function e(e){return e.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n
}function Qc(e){var r={};r.id=e._R(0,"lpp4");r.R=qc(e,4);r.U=qc(e,4);r.W=qc(e,4);return r}function el(e){var r=e._R(4);var t=e.l+r-4;var a={};var n=e._R(4);var i=[];while(n-- >0)i.push({t:e._R(4),v:e._R(0,"lpp4")});a.name=e._R(0,"lpp4");a.comps=i;if(e.l!=t)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+t);return a}function rl(e){var r=[];e.l+=4;var t=e._R(4);while(t-- >0)r.push(el(e));return r}function tl(e){var r=[];e.l+=4;var t=e._R(4);while(t-- >0)r.push(e._R(0,"lpp4"));return r}function al(e){var r={};e._R(4);e.l+=4;r.id=e._R(0,"lpp4");r.name=e._R(0,"lpp4");r.R=qc(e,4);r.U=qc(e,4);r.W=qc(e,4);return r}function nl(e){var r=al(e);r.ename=e._R(0,"8lpp4");r.blksz=e._R(4);r.cmode=e._R(4);if(e._R(4)!=4)throw new Error("Bad !Primary record");return r}function il(e,r){var t=e.l+r;var a={};a.Flags=e._R(4)&63;e.l+=4;a.AlgID=e._R(4);var n=false;switch(a.AlgID){case 26126:;case 26127:;case 26128:n=a.Flags==36;break;case 26625:n=a.Flags==4;break;case 0:n=a.Flags==16||a.Flags==4||a.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+a.AlgID;}if(!n)throw new Error("Encryption Flags/AlgID mismatch");a.AlgIDHash=e._R(4);a.KeySize=e._R(4);a.ProviderType=e._R(4);e.l+=8;a.CSPName=e._R(t-e.l>>1,"utf16le");e.l=t;return a}function sl(e,r){var t={},a=e.l+r;e.l+=4;t.Salt=e.slice(e.l,e.l+16);e.l+=16;t.Verifier=e.slice(e.l,e.l+16);e.l+=16;e._R(4);t.VerifierHash=e.slice(e.l,a);e.l=a;return t}function fl(e){var r=qc(e);switch(r.Minor){case 2:return[r.Minor,cl(e,r)];case 3:return[r.Minor,ll(e,r)];case 4:return[r.Minor,ol(e,r)];}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+r.Minor)}function cl(e){var r=e._R(4);if((r&63)!=36)throw new Error("EncryptionInfo mismatch");var t=e._R(4);var a=il(e,t);var n=sl(e,e.length-e.l);return{t:"Std",h:a,v:n}}function ll(){throw new Error("File is password-protected: ECMA-376 Extensible")}function ol(e){var r=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var t=e._R(e.length-e.l,"utf8");var a={};t.replace(jr,function n(e){var t=Kr(e);switch(Zr(t[0])){case"<?xml":break;case"<encryption":;case"</encryption>":break;case"<keyData":r.forEach(function(e){a[e]=t[e]});break;case"<dataIntegrity":a.encryptedHmacKey=t.encryptedHmacKey;a.encryptedHmacValue=t.encryptedHmacValue;break;case"<keyEncryptors>":;case"<keyEncryptors":a.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":a.uri=t.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":a.encs.push(t);break;default:throw t[0];}});return a}function ul(e,r){var t={};var a=t.EncryptionVersionInfo=qc(e,4);r-=4;if(a.Minor!=2)throw new Error("unrecognized minor version code: "+a.Minor);if(a.Major>4||a.Major<2)throw new Error("unrecognized major version code: "+a.Major);t.Flags=e._R(4);r-=4;var n=e._R(4);r-=4;t.EncryptionHeader=il(e,n);r-=n;t.EncryptionVerifier=sl(e,r);return t}function hl(e){var r={};var t=r.EncryptionVersionInfo=qc(e,4);if(t.Major!=1||t.Minor!=1)throw"unrecognized version code "+t.Major+" : "+t.Minor;r.Salt=e._R(16);r.EncryptedVerifier=e._R(16);r.EncryptedVerifierHash=e._R(16);return r}function dl(e){var r=0,t;var a=Jc(e);var n=a.length+1,i,s;var f,c,l;t=S(n);t[0]=a.length;for(i=1;i!=n;++i)t[i]=a[i-1];for(i=n-1;i>=0;--i){s=t[i];f=(r&16384)===0?0:1;c=r<<1&32767;l=f|c;r=l^s}return r^52811}var vl=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0];var r=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163];var t=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4
t[t.length]="</a:effectLst>";t[t.length]="</a:effectStyle>";t[t.length]="<a:effectStyle>";t[t.length]="<a:effectLst>";t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>';t[t.length]="</a:effectLst>";t[t.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>';t[t.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>';t[t.length]="</a:effectStyle>";t[t.length]="</a:effectStyleLst>";t[t.length]="<a:bgFillStyleLst>";t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>';t[t.length]='<a:gradFill rotWithShape="1">';t[t.length]="<a:gsLst>";t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>';t[t.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>';t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>';t[t.length]="</a:gsLst>";t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>';t[t.length]="</a:gradFill>";t[t.length]='<a:gradFill rotWithShape="1">';t[t.length]="<a:gsLst>";t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>';t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>';t[t.length]="</a:gsLst>";t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>';t[t.length]="</a:gradFill>";t[t.length]="</a:bgFillStyleLst>";t[t.length]="</a:fmtScheme>";t[t.length]="</a:themeElements>";t[t.length]="<a:objectDefaults>";t[t.length]="<a:spDef>";t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>';t[t.length]="</a:spDef>";t[t.length]="<a:lnDef>";t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>';t[t.length]="</a:lnDef>";t[t.length]="</a:objectDefaults>";t[t.length]="<a:extraClrSchemeLst/>";t[t.length]="</a:theme>";return t.join("")}function Mo(e,r,t){var a=e.l+r;var n=e._R(4);if(n===124226)return;if(!t.cellStyles){e.l=a;return}var i=e.slice(e.l);e.l=a;var s;try{s=Wr(i,{type:"array"})}catch(f){return}var c=Pr(s,"theme/theme/theme1.xml",true);if(!c)return;return Po(c,t)}function Uo(e){return e._R(4)}function Bo(e){var r={};r.xclrType=e._R(2);r.nTintShade=e._R(2);switch(r.xclrType){case 0:e.l+=4;break;case 1:r.xclrValue=Wo(e,4);break;case 2:r.xclrValue=As(e,4);break;case 3:r.xclrValue=Uo(e,4);break;case 4:e.l+=4;break;}e.l+=8;return r}function Wo(e,r){return ma(e,r)}function Ho(e,r){return ma(e,r)}function zo(e){var r=e._R(2);var t=e._R(2)-4;var a=[r];switch(r){case 4:;case 5:;case 7:;case 8:;case 9:;case 10:;case 11:;case 13:a[1]=Bo(e,t);break;case 6:a[1]=Ho(e,t);break;case 14:;case 15:a[1]=e._R(t===1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+r+" "+t);}return a}function Vo(e,r){var t=e.l+r;e.l+=2;var a=e._R(2);e.l+=2;var n=e._R(2);var i=[];while(n-- >0)i.push(zo(e,t-e.l));return{ixfe:a,ext:i}}function Go(e,r){r.forEach(function(e){switch(e[0]){case 4:break;case 5:break;case 6:break;case 7:break;case 8:break;case 9:break;case 10:break;case 11:break;case 13:break;case 14:break;case 15:break;}})}function $o(e,r){return{flags:e._R(4),version:e._R(4),name:Ya(e,r-8)}}function jo(e){var r=ba(12+2*e.name.length);r._W(4,e
}else{var D=false;for(c=0;c!=a.arrayf.length;++c){l=a.arrayf[c];if(o.c<l[0].s.c||o.c>l[0].e.c)continue;if(o.r<l[0].s.r||o.r>l[0].e.r)continue;f.push(hd(l[1],s,I,a,n));D=true;break}if(!D)f.push(w[1])}break;case"PtgArray":f.push("{"+fd(w[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":;case"PtgAttrSpaceSemi":p=b;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":f.push("");break;case"PtgAreaErr":f.push("#REF!");break;case"PtgAreaErr3d":f.push("#REF!");break;case"PtgList":f.push("Table"+w[1].idx+"[#"+w[1].rt+"]");break;case"PtgMemAreaN":;case"PtgMemNoMemN":;case"PtgAttrNoop":;case"PtgSheet":;case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":;case"PtgElfColS":;case"PtgElfColSV":;case"PtgElfColV":;case"PtgElfLel":;case"PtgElfRadical":;case"PtgElfRadicalLel":;case"PtgElfRadicalS":;case"PtgElfRw":;case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(w));default:throw new Error("Unrecognized Formula Token: "+String(w));}var P=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(n.biff!=3)if(p>=0&&P.indexOf(e[0][b][0])==-1){w=e[0][p];var L=true;switch(w[1][0]){case 4:L=false;case 0:m=Er(" ",w[1][1]);break;case 5:L=false;case 1:m=Er("\r",w[1][1]);break;default:m="";if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+w[1][0]);}f.push((L?m:"")+f.pop()+(L?"":m));p=-1}}if(f.length>1&&n.WTF)throw new Error("bad formula stack");if(f[0]=="TRUE")return true;if(f[0]=="FALSE")return false;return f[0]}function dd(e,r,t){var a=e.l+r,n=t.biff==2?1:2;var i,s=e._R(n);if(s==65535)return[[],ma(e,r-2)];var f=sd(e,s,t);if(r!==s+n)i=id(e,r-s-n,f,t);e.l=a;return[f,i]}function vd(e,r,t){var a=e.l+r,n=t.biff==2?1:2;var i,s=e._R(n);if(s==65535)return[[],ma(e,r-2)];var f=sd(e,s,t);if(r!==s+n)i=id(e,r-s-n,f,t);e.l=a;return[f,i]}function pd(e,r,t,a){var n=e.l+r;var i=sd(e,a,t);var s;if(n!==e.l)s=id(e,n-e.l,i,t);return[i,s]}function md(e,r,t){var a=e.l+r;var n,i=e._R(2);var s=sd(e,i,t);if(i==65535)return[[],ma(e,r-2)];if(r!==i+2)n=id(e,a-i-2,s,t);return[s,n]}function bd(e){var r;if(na(e,e.l+6)!==65535)return[kn(e),"n"];switch(e[e.l]){case 0:e.l+=8;return["String","s"];case 1:r=e[e.l+2]===1;e.l+=8;return[r,"b"];case 2:r=e[e.l+2];e.l+=8;return[r,"e"];case 3:e.l+=8;return["","s"];}return[]}function gd(e){if(e==null){var r=ba(8);r._W(1,3);r._W(1,0);r._W(2,0);r._W(2,0);r._W(2,65535);return r}else if(typeof e=="number")return Tn(e);return Tn(0)}function wd(e,r,t){var a=e.l+r;var n=Cs(e,6);if(t.biff==2)++e.l;var i=bd(e,8);var s=e._R(1);if(t.biff!=2){e._R(1);if(t.biff>=5){e._R(4)}}var f=vd(e,a-e.l,t);return{cell:n,val:i[0],formula:f,shared:s>>3&1,tt:i[1]}}function kd(e,r,t,a,n){var i=Os(r,t,n);var s=gd(e.v);var f=ba(6);var c=1|32;f._W(2,c);f._W(4,0);var l=ba(e.bf.length);for(var o=0;o<e.bf.length;++o)l[o]=e.bf[o];var u=N([i,s,f,l]);return u}function Td(e,r,t){var a=e._R(4);var n=sd(e,a,t);var i=e._R(4);var s=i>0?id(e,i,n,t):null;return[n,s]}var Ed=Td;var yd=Td;var Sd=Td;var _d=Td;function Ad(e){if((e|0)==e&&e<Math.pow(2,16)&&e>=0){var r=ba(11);r._W(4,3);r._W(1,30);r._W(2,e);r._W(4,0);return r}var t=ba(17);t._W(4,11);t._W(1,31);t._W(8,e);t._W(4,0);return t}function xd(e){var r=ba(10);r._W(4,2);r._W(1,28);r._W(1,e);r._W(4,0);return r}function Cd(e){var r=ba(10);r._W(4,2);r._W(1,29);r._W(1,e?1:0);r._W(4,0);return r}function Od(e){var r=ba(7);r._W(4,3+2*e.length);r._W(1,23);r._W(2,e.length);var t=ba(2*e.length);t._W(2*e.length,e,"utf16le");var a=ba(4);a._W(4,0);return N([r,t,a])}function Rd(e){var r=Da(e);var t=ba(15);t._W(4,7);t._W(1,4|1<<5);t._W(4,r.r);t._W(2,r.c|(e.charAt(0)=="$"?0:1)<<14|(e.match(/\$\d/)?0:1)<<15);t._W(4,0);return t}function Nd(e,r){var t=e.lastIndexOf("!");var a=e.slice(0,t);e=e.slice(t+1);var n=Da(e);if(a.charAt(0)=="'")a=a.slice(1,-1).replace(/''/g,"'");var i=ba(17);i._W(4,9);i._W(1,26|1<<5);i._W(2,2+r.SheetNames.map(function(e){return e.toLowerCase()}).indexOf(a.toLowerCase()));i._W(4,n.r);i._W(2,n.c|(e.charAt(0)=="$"?0:1)<<14|(e.match(/\$\d/)?0:1)<<15);i._W(4,0);return i}function Id(e,r){var t=e.lastIndexOf("!");v
c.Ref=Ba(t.SheetNames[a])+"!"+Ua(n);break}if(f==i.length)i.push({Name:"_xlnm._FilterDatabase",Sheet:a,Ref:"'"+t.SheetNames[a]+"'!"+n});return _t("autoFilter",null,{ref:n})}var Av=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/g;function xv(e,r){if(!r.Views)r.Views=[{}];(e.match(Av)||[]).forEach(function(e,t){var a=Kr(e);if(!r.Views[t])r.Views[t]={};if(+a.zoomScale)r.Views[t].zoom=+a.zoomScale;if(a.rightToLeft&&lt(a.rightToLeft))r.Views[t].RTL=true})}function Cv(e,r,t,a){var n={workbookViewId:"0"};if((((a||{}).Workbook||{}).Views||[])[0])n.rightToLeft=a.Workbook.Views[0].RTL?"1":"0";return _t("sheetViews",_t("sheetView",null,n),{})}function Ov(e,r,t,a){if(e.c)t["!comments"].push([r,e.c]);if(e.v===undefined&&typeof e.f!=="string"||e.t==="z"&&!e.f)return"";var n="";var i=e.t,s=e.v;if(e.t!=="z")switch(e.t){case"b":n=e.v?"1":"0";break;case"n":n=""+e.v;break;case"e":n=Kn[e.v];break;case"d":if(a&&a.cellDates)n=wr(e.v,-1).toISOString();else{e=Tr(e);e.t="n";n=""+(e.v=or(wr(e.v)))}if(typeof e.z==="undefined")e.z=Y[14];break;default:n=e.v;break;}var f=e.t=="z"||e.v==null?"":yt("v",tt(n)),c={r:r};var l=Jd(a.cellXfs,e,a);if(l!==0)c.s=l;switch(e.t){case"n":break;case"d":c.t="d";break;case"b":c.t="b";break;case"e":c.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(a&&a.bookSST){f=yt("v",""+Yd(a.Strings,e.v,a.revStrings));c.t="s";break}else c.t="str";break;}if(e.t!=i){e.t=i;e.v=s}if(typeof e.f=="string"&&e.f){var o=e.F&&e.F.slice(0,r.length)==r?{t:"array",ref:e.F}:null;f=_t("f",tt(e.f),o)+(e.v!=null?f:"")}if(e.l)t["!links"].push([r,e.l]);if(e.D)c.cm=1;return _t("c",f,c)}var Rv=function(){var e=/<(?:\w+:)?c[ \/>]/,r=/<\/(?:\w+:)?row>/;var t=/r=["']([^"']*)["']/,a=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/;var n=/ref=["']([^"']*)["']/;var i=mt("v"),s=mt("f");return function f(c,l,o,u,h,d){var v=0,p="",m=[],b=[],g=0,w=0,k=0,T="",E;var y,S=0,_=0;var A,x;var C=0,O=0;var R=Array.isArray(d.CellXf),N;var I=[];var F=[];var D=Array.isArray(l);var P=[],L={},M=false;var U=!!o.sheetStubs;for(var B=c.split(r),W=0,H=B.length;W!=H;++W){p=B[W].trim();var z=p.length;if(z===0)continue;var V=0;e:for(v=0;v<z;++v)switch(p[v]){case">":if(p[v-1]!="/"){++v;break e}if(o&&o.cellStyles){y=Kr(p.slice(V,v),true);S=y.r!=null?parseInt(y.r,10):S+1;_=-1;if(o.sheetRows&&o.sheetRows<S)continue;L={};M=false;if(y.ht){M=true;L.hpt=parseFloat(y.ht);L.hpx=Bl(L.hpt)}if(y.hidden&&lt(y.hidden)){M=true;L.hidden=true}if(y.outlineLevel!=null){M=true;L.level=+y.outlineLevel}if(M)P[S-1]=L}break;case"<":V=v;break;}if(V>=v)break;y=Kr(p.slice(V,v),true);S=y.r!=null?parseInt(y.r,10):S+1;_=-1;if(o.sheetRows&&o.sheetRows<S)continue;if(u.s.r>S-1)u.s.r=S-1;if(u.e.r<S-1)u.e.r=S-1;if(o&&o.cellStyles){L={};M=false;if(y.ht){M=true;L.hpt=parseFloat(y.ht);L.hpx=Bl(L.hpt)}if(y.hidden&&lt(y.hidden)){M=true;L.hidden=true}if(y.outlineLevel!=null){M=true;L.level=+y.outlineLevel}if(M)P[S-1]=L}m=p.slice(v).split(e);for(var G=0;G!=m.length;++G)if(m[G].trim().charAt(0)!="<")break;m=m.slice(G);for(v=0;v!=m.length;++v){p=m[v].trim();if(p.length===0)continue;b=p.match(t);g=v;w=0;k=0;p="<c "+(p.slice(0,1)=="<"?">":"")+p;if(b!=null&&b.length===2){g=0;T=b[1];for(w=0;w!=T.length;++w){if((k=T.charCodeAt(w)-64)<1||k>26)break;g=26*g+k}--g;_=g}else++_;for(w=0;w!=p.length;++w)if(p.charCodeAt(w)===62)break;++w;y=Kr(p.slice(0,w),true);if(!y.r)y.r=Pa({r:S-1,c:_});T=p.slice(w);E={t:""};if((b=T.match(i))!=null&&b[1]!=="")E.v=Qr(b[1]);if(o.cellFormula){if((b=T.match(s))!=null&&b[1]!==""){E.f=Qr(vt(b[1]),true);if(!o.xlfn)E.f=Mu(E.f);if(b[0].indexOf('t="array"')>-1){E.F=(T.match(n)||[])[1];if(E.F.indexOf(":")>-1)I.push([Wa(E.F),E.F])}else if(b[0].indexOf('t="shared"')>-1){x=Kr(b[0]);var $=Qr(vt(b[1]));if(!o.xlfn)$=Mu($);F[parseInt(x.si,10)]=[x,$,y.r]}}else if(b=T.match(/<f[^>]*\/>/)){x=Kr(b[0]);if(F[x.si])E.f=Pu(F[x.si][1],F[x.si][2],y.r)}var j=Da(y.r);for(w=0;w<I.length;++w)if(j.r>=I[w][0].s.r&&j.r<=I[w][0].e.r)if(j.c>=I[w][0].s.c&&j.c<=I[w][0].e.c)E.F=I[w][1]}if(y.t==null&&E.v===undefined){if(E.f||E.F){E.v=0;E.t="n"}else if(!U)con
t.backupFile=!!(a&64);t.checkCompatibility=!!(a&4096);t.date1904=!!(a&1);t.filterPrivacy=!!(a&8);t.hidePivotFieldList=!!(a&1024);t.promptedSolutions=!!(a&16);t.publishItems=!!(a&2048);t.refreshAllConnections=!!(a&262144);t.saveExternalLinkValues=!!(a&128);t.showBorderUnselectedTables=!!(a&4);t.showInkAnnotation=!!(a&32);t.showObjects=["all","placeholders","none"][a>>13&3];t.showPivotChartFilter=!!(a&32768);t.updateLinks=["userSet","never","always"][a>>8&3];return t}function km(e,r){if(!r)r=ba(72);var t=0;if(e){if(e.date1904)t|=1;if(e.filterPrivacy)t|=8}r._W(4,t);r._W(4,0);cn(e&&e.CodeName||"ThisWorkbook",r);return r.slice(0,r.l)}function Tm(e,r){var t={};e._R(4);t.ArchID=e._R(4);e.l+=r-8;return t}function Em(e,r,t){var a=e.l+r;var n=e._R(4);e.l+=1;var i=e._R(4);var s=un(e);var f=Sd(e,0,t);var c=ln(e);if(n&32)s="_xlnm."+s;e.l=a;var l={Name:s,Ptg:f,Flags:n};if(i<268435455)l.Sheet=i;if(c)l.Comment=c;return l}function ym(e,r){var t=ba(9);var a=0;var n=e.Name;if(Jn.indexOf(n)>-1){a|=32;n=n.slice(6)}t._W(4,a);t._W(1,0);t._W(4,e.Sheet==null?4294967295:e.Sheet);var i=[t,Ka(n),Md(e.Ref,r)];if(e.Comment)i.push(on(e.Comment));else{var s=ba(4);s._W(4,4294967295);i.push(s)}return N(i)}function Sm(e,r){var t={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""};var a=[];var n=false;if(!r)r={};r.biff=12;var i=[];var s=[[]];s.SheetNames=[];s.XTI=[];Cb[16]={n:"BrtFRTArchID$",f:Tm};ga(e,function f(e,c,l){switch(l){case 156:s.SheetNames.push(e.name);t.Sheets.push(e);break;case 153:t.WBProps=e;break;case 39:if(e.Sheet!=null)r.SID=e.Sheet;e.Ref=hd(e.Ptg,null,null,s,r);delete r.SID;delete e.Ptg;i.push(e);break;case 1036:break;case 357:;case 358:;case 355:;case 667:if(!s[0].length)s[0]=[l,e];else s.push([l,e]);s[s.length-1].XTI=[];break;case 362:if(s.length===0){s[0]=[];s[0].XTI=[]}s[s.length-1].XTI=s[s.length-1].XTI.concat(e);s.XTI=s.XTI.concat(e);break;case 361:break;case 2071:;case 158:;case 143:;case 664:;case 353:break;case 3072:;case 3073:;case 534:;case 677:;case 157:;case 610:;case 2050:;case 155:;case 548:;case 676:;case 128:;case 665:;case 2128:;case 2125:;case 549:;case 2053:;case 596:;case 2076:;case 2075:;case 2082:;case 397:;case 154:;case 1117:;case 553:;case 2091:break;case 35:a.push(l);n=true;break;case 36:a.pop();n=false;break;case 37:a.push(l);n=true;break;case 38:a.pop();n=false;break;case 16:break;default:if(c.T){}else if(!n||r.WTF&&a[a.length-1]!=37&&a[a.length-1]!=35)throw new Error("Unexpected record 0x"+l.toString(16));}},r);cm(t);t.Names=i;t.supbooks=s;return t}function _m(e,r){ka(e,143);for(var t=0;t!=r.SheetNames.length;++t){var a=r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[t]&&r.Workbook.Sheets[t].Hidden||0;var n={Hidden:a,iTabID:t+1,strRelID:"rId"+(t+1),name:r.SheetNames[t]};ka(e,156,gm(n))}ka(e,144)}function Am(r,t){if(!t)t=ba(127);for(var a=0;a!=4;++a)t._W(4,0);Ka("SheetJS",t);Ka(e.version,t);Ka(e.version,t);Ka("7262",t);return t.length>t.l?t.slice(0,t.l):t}function xm(e,r){if(!r)r=ba(29);r._W(-4,0);r._W(-4,460);r._W(4,28800);r._W(4,17600);r._W(4,500);r._W(4,e);r._W(4,e);var t=120;r._W(1,t);return r.length>r.l?r.slice(0,r.l):r}function Cm(e,r){if(!r.Workbook||!r.Workbook.Sheets)return;var t=r.Workbook.Sheets;var a=0,n=-1,i=-1;for(;a<t.length;++a){if(!t[a]||!t[a].Hidden&&n==-1)n=a;else if(t[a].Hidden==1&&i==-1)i=a}if(i>n)return;ka(e,135);ka(e,158,xm(n));ka(e,136)}function Om(e,r){if(!r.Workbook||!r.Workbook.Names)return;r.Workbook.Names.forEach(function(t){try{if(t.Flags&14)return;ka(e,39,ym(t,r))}catch(a){console.error("Could not serialize defined name "+JSON.stringify(t))}})}function Rm(e){var r=e.SheetNames.length;var t=ba(12*r+28);t._W(4,r+2);t._W(4,0);t._W(4,-2);t._W(4,-2);t._W(4,0);t._W(4,-1);t._W(4,-1);for(var a=0;a<r;++a){t._W(4,0);t._W(4,a);t._W(4,a)}return t}function Nm(e,r){ka(e,353);ka(e,357);ka(e,362,Rm(r,0));ka(e,354)}function Im(e,r){var t=wa();ka(t,131);ka(t,128,Am());ka(t,153,km(e.Workbook&&e.Workbook.WBProps||null));Cm(t,e,r);_m(t,e,r);Nm(t,e);if((e.Workbook||{}).Names)Om(t,e);ka(t,132);return t.end()}function Fm(e,r,t){if(r.slice(-4)===".bin")return Sm(e,t);return pm(e,t)}func
}if(r.cellDates&&a&&e.t=="n"&&Pe(Y[a]||String(a))){var i=q(e.v);if(i){e.t="d";e.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u)}}}function Tb(e,r,t){return{v:e,ixfe:r,t:t}}function Eb(e,r){var t={opts:{}};var a={};if(b!=null&&r.dense==null)r.dense=b;var n=r.dense?[]:{};var i={};var s={};var f=null;var l=[];var o="";var u={};var h,d="",v,p,m,g;var w={};var k=[];var T;var E;var y=[];var S=[];var _={Sheets:[],WBProps:{date1904:false},Views:[{}]},A={};var x=function ve(e){if(e<8)return Yn[e];if(e<64)return S[e-8]||Yn[e];return Yn[e]};var C=function pe(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=El(x(a.icvFore))){r.s.fgColor={rgb:n}}if(n=El(x(a.icvBack))){r.s.bgColor={rgb:n}}};var O=function me(e,r,t){if(B>1)return;if(t.sheetRows&&e.r>=t.sheetRows)return;if(t.cellStyles&&r.XF&&r.XF.data)C(e,r,t);delete r.ixfe;delete r.XF;h=e;d=Pa(e);if(!s||!s.s||!s.e)s={s:{r:0,c:0},e:{r:0,c:0}};if(e.r<s.s.r)s.s.r=e.r;if(e.c<s.s.c)s.s.c=e.c;if(e.r+1>s.e.r)s.e.r=e.r+1;if(e.c+1>s.e.c)s.e.c=e.c+1;if(t.cellFormula&&r.f){for(var a=0;a<k.length;++a){if(k[a][0].s.c>e.c||k[a][0].s.r>e.r)continue;if(k[a][0].e.c<e.c||k[a][0].e.r<e.r)continue;r.F=Ma(k[a][0]);if(k[a][0].s.c!=e.c||k[a][0].s.r!=e.r)delete r.f;if(r.f)r.f=""+hd(k[a][1],s,e,M,R);break}}{if(t.dense){if(!n[e.r])n[e.r]=[];n[e.r][e.c]=r}else n[d]=r}};var R={enc:false,sbcch:0,snames:[],sharedf:w,arrayf:k,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!r&&!!r.cellStyles,WTF:!!r&&!!r.wtf};if(r.password)R.password=r.password;var N;var I=[];var F=[];var D=[],P=[];var L=false;var M=[];M.SheetNames=R.snames;M.sharedf=R.sharedf;M.arrayf=R.arrayf;M.names=[];M.XTI=[];var U=0;var B=0;var W=0,H=[];var z=[];var V;R.codepage=1200;c(1200);var G=false;while(e.l<e.length-1){var $=e.l;var j=e._R(2);if(j===0&&U===10)break;var X=e.l===e.length?0:e._R(2);var K=Ob[j];if(K&&K.f){if(r.bookSheets){if(U===133&&j!==133)break}U=j;if(K.r===2||K.r==12){var Z=e._R(2);X-=2;if(!R.enc&&Z!==j&&((Z&255)<<8|Z>>8)!==j)throw new Error("rt mismatch: "+Z+"!="+j);if(K.r==12){e.l+=10;X-=10}}var J={};if(j===10)J=K.f(e,X,R);else J=wb(j,K,e,X,R);if(B==0&&[9,521,1033,2057].indexOf(U)===-1)continue;switch(j){case 34:t.opts.Date1904=_.WBProps.date1904=J;break;case 134:t.opts.WriteProtect=true;break;case 47:if(!R.enc)e.l=0;R.enc=J;if(!r.password)throw new Error("File is password-protected");if(J.valid==null)throw new Error("Encryption scheme unsupported");if(!J.valid)throw new Error("Password is incorrect");break;case 92:R.lastuser=J;break;case 66:var q=Number(J);switch(q){case 21010:q=1200;break;case 32768:q=1e4;break;case 32769:q=1252;break;}c(R.codepage=q);G=true;break;case 317:R.rrtabid=J;break;case 25:R.winlocked=J;break;case 439:t.opts["RefreshAll"]=J;break;case 12:t.opts["CalcCount"]=J;break;case 16:t.opts["CalcDelta"]=J;break;case 17:t.opts["CalcIter"]=J;break;case 13:t.opts["CalcMode"]=J;break;case 14:t.opts["CalcPrecision"]=J;break;case 95:t.opts["CalcSaveRecalc"]=J;break;case 15:R.CalcRefMode=J;break;case 2211:t.opts.FullCalc=J;break;case 129:if(J.fDialog)n["!type"]="dialog";if(!J.fBelow)(n["!outline"]||(n["!outline"]={})).above=true;if(!J.fRight)(n["!outline"]||(n["!outline"]={})).left=true;break;case 224:y.push(J);break;case 430:M.push([J]);M[M.length-1].XTI=[];break;case 35:;case 547:M[M.length-1].push(J);break;case 24:;case 536:V={Name:J.Name,Ref:hd(J.rgce,s,null,M,R)};if(J.itab>0)V.Sheet=J.itab-1;M.names.push(V);if(!M[0]){M[0]=[];M[0].XTI=[]}M[M.length-1].push(J);if(J.Name=="_xlnm._FilterDatabase"&&J.itab>0)if(J.rgce&&J.rgce[0]&&J.rgce[0][0]&&J.rgce[0][0][0]=="PtgArea3d")z[J.itab-1]={ref:Ma(J.rgce[0][0][1][2])};break;case 22:R.ExternCount=J;break;case 23:if(M.length==0){M[0]=[];M[0].XTI=[]}M[M.length-1].XTI=M[M.length-1].XTI.concat(J);M.XTI=M.XTI.concat(J);break;case 2196:if(R.biff<8)break;if(V!=null)V.Comment=J[1];break;case 18:n["!protect"]=J;break;case 19:if(J!==0&&R.WTF)console.error("Password verifier: "+J);break;case 133:{i[J.pos]=J;R.snames.push(J.name)}break;case 10:{if(--B)break;if(s.e){if(s.e.r>0&&s.e.c>0){s.e.r--;s.e.c--;n["!ref"]=Ma
var c=Cr(e.slice(s,f),/(:?<tr[^>]*>)/i,"<tr>");var l=-1,o=0,u=0,h=0;var d={s:{r:1e7,c:1e7},e:{r:0,c:0}};var v=[];for(s=0;s<c.length;++s){var p=c[s].trim();var m=p.slice(0,3).toLowerCase();if(m=="<tr"){++l;if(t.sheetRows&&t.sheetRows<=l){--l;break}o=0;continue}if(m!="<td"&&m!="<th")continue;var g=p.split(/<\/t[dh]>/i);for(f=0;f<g.length;++f){var w=g[f].trim();if(!w.match(/<t[dh]/i))continue;var k=w,T=0;while(k.charAt(0)=="<"&&(T=k.indexOf(">"))>-1)k=k.slice(T+1);for(var E=0;E<v.length;++E){var y=v[E];if(y.s.c==o&&y.s.r<l&&l<=y.e.r){o=y.e.c+1;E=-1}}var S=Kr(w.slice(0,w.indexOf(">")));h=S.colspan?+S.colspan:1;if((u=+S.rowspan)>1||h>1)v.push({s:{r:l,c:o},e:{r:l+(u||1)-1,c:o+h-1}});var _=S.t||S["data-t"]||"";if(!k.length){o+=h;continue}k=bt(k);if(d.s.r>l)d.s.r=l;if(d.e.r<l)d.e.r=l;if(d.s.c>o)d.s.c=o;if(d.e.c<o)d.e.c=o;if(!k.length){o+=h;continue}var A={t:"s",v:k};if(t.raw||!k.trim().length||_=="s"){}else if(k==="TRUE")A={t:"b",v:true};else if(k==="FALSE")A={t:"b",v:false};else if(!isNaN(yr(k)))A={t:"n",v:yr(k)};else if(!isNaN(xr(k).getDate())){A={t:"d",v:wr(k)};if(!t.cellDates)A={t:"n",v:or(A.v)};A.z=t.dateNF||Y[14]}if(t.dense){if(!a[l])a[l]=[];a[l][o]=A}else a[Pa({r:l,c:o})]=A;o+=h}}a["!ref"]=Ma(d);if(v.length)a["!merges"]=v;return a}function Zb(e,r,t,a){var n=e["!merges"]||[];var i=[];var s={};for(var f=r.s.c;f<=r.e.c;++f){var c=0,l=0;for(var o=0;o<n.length;++o){if(n[o].s.r>t||n[o].s.c>f)continue;if(n[o].e.r<t||n[o].e.c<f)continue;if(n[o].s.r<t||n[o].s.c<f){c=-1;break}c=n[o].e.r-n[o].s.r+1;l=n[o].e.c-n[o].s.c+1;break}if(c<0)continue;var u=Pa({r:t,c:f});var h=a.dense?(e[t]||[])[f]:e[u];var d=h&&h.v!=null&&(h.h||it(h.w||(za(h),h.w)||""))||"";s={};if(c>1)s.rowspan=c;if(l>1)s.colspan=l;if(a.editable)d='<span contenteditable="true">'+d+"</span>";else if(h){s["data-t"]=h&&h.t||"z";if(h.v!=null)s["data-v"]=h.v;if(h.z!=null)s["data-z"]=h.z;if(h.l&&(h.l.Target||"#").charAt(0)!="#")d='<a href="'+h.l.Target+'">'+d+"</a>"}s.id=(a.id||"sjs")+"-"+u;i.push(_t("td",d,s))}var v="<tr>";return v+i.join("")+"</tr>"}var Jb='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>';var qb="</body></html>";function Qb(e,r){var t=e.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!t||t.length==0)throw new Error("Invalid HTML: could not find <table>");if(t.length==1)return Va(Kb(t[0],r),r);var a=Yw();t.forEach(function(e,t){Kw(a,Kb(e,r),"Sheet"+(t+1))});return a}function eg(e,r,t){var a=[];return a.join("")+"<table"+(t&&t.id?' id="'+t.id+'"':"")+">"}function rg(e,r){var t=r||{};var a=t.header!=null?t.header:Jb;var n=t.footer!=null?t.footer:qb;var i=[a];var s=La(e["!ref"]);t.dense=Array.isArray(e);i.push(eg(e,s,t));for(var f=s.s.r;f<=s.e.r;++f)i.push(Zb(e,s,f,t));i.push("</table>"+n);return i.join("")}function tg(e,r,t){var a=r.rows;if(!a){throw"Unsupported origin when "+r.tagName+" is not a TABLE"}var n=t||{};if(b!=null)n.dense=b;var i=0,s=0;if(n.origin!=null){if(typeof n.origin=="number")i=n.origin;else{var f=typeof n.origin=="string"?Da(n.origin):n.origin;i=f.r;s=f.c}}var c=Math.min(n.sheetRows||1e7,a.length);var l={s:{r:0,c:0},e:{r:i,c:s}};if(e["!ref"]){var o=La(e["!ref"]);l.s.r=Math.min(l.s.r,o.s.r);l.s.c=Math.min(l.s.c,o.s.c);l.e.r=Math.max(l.e.r,o.e.r);l.e.c=Math.max(l.e.c,o.e.c);if(i==-1)l.e.r=i=o.e.r+1}var u=[],h=0;var d=e["!rows"]||(e["!rows"]=[]);var v=0,p=0,m=0,g=0,w=0,k=0;if(!e["!cols"])e["!cols"]=[];for(;v<a.length&&p<c;++v){var T=a[v];if(ig(T)){if(n.display)continue;d[p]={hidden:true}}var E=T.cells;for(m=g=0;m<E.length;++m){var y=E[m];if(n.display&&ig(y))continue;var S=y.hasAttribute("data-v")?y.getAttribute("data-v"):y.hasAttribute("v")?y.getAttribute("v"):bt(y.innerHTML);var _=y.getAttribute("data-z")||y.getAttribute("z");for(h=0;h<u.length;++h){var A=u[h];if(A.s.c==g+s&&A.s.r<p+i&&p+i<=A.e.r){g=A.e.c+1-s;h=-1}}k=+y.getAttribute("colspan")||1;if((w=+y.getAttribute("rowspan")||1)>1||k>1)u.push({s:{r:p+i,c:g+s},e:{r:p+i+(w||1)-1,c:g+s+(k||1)-1}});var x={t:"s",v:S};var C=y.getAttribute("data-t")||y.getAttribute("t")||"";if(S!=null){if(S.length==0)x.t=C||"z";else if(n.raw||S.trim().length==0||C=="s"){}else if(S
"xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"});var s=St({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});if(r.bookType=="fods"){t.push("<office:document"+i+s+">\n");t.push(vi().replace(/<office:document-meta.*?>/,"").replace(/<\/office:document-meta>/,"")+"\n")}else t.push("<office:document-content"+i+">\n");var f=n(t,e);t.push(" <office:body>\n");t.push(" <office:spreadsheet>\n");if(((e.Workbook||{}).WBProps||{}).date1904)t.push(' <table:calculation-settings table:case-sensitive="false" table:search-criteria-must-apply-to-whole-cell="true" table:use-wildcards="true" table:use-regular-expressions="false" table:automatic-find-labels="false">\n <table:null-date table:date-value="1904-01-01"/>\n </table:calculation-settings>\n');for(var c=0;c!=e.SheetNames.length;++c)t.push(a(e.Sheets[e.SheetNames[c]],e,c,r,f));if((e.Workbook||{}).Names)t.push(vg(e.Workbook.Names,e.SheetNames,-1));t.push(" </office:spreadsheet>\n");t.push(" </office:body>\n");if(r.bookType=="fods")t.push("</office:document>");else t.push("</office:document-content>");return t.join("")}}();function mg(e,r){if(r.bookType=="fods")return pg(e,r);var t=Br();var a="";var n=[];var i=[];a="mimetype";Ur(t,a,"application/vnd.oasis.opendocument.spreadsheet");a="content.xml";Ur(t,a,pg(e,r));n.push([a,"text/xml"]);i.push([a,"ContentFile"]);a="styles.xml";Ur(t,a,hg(e,r));n.push([a,"text/xml"]);i.push([a,"StylesFile"]);a="meta.xml";Ur(t,a,zr+vi());n.push([a,"text/xml"]);i.push([a,"MetadataFile"]);a="manifest.rdf";Ur(t,a,di(i));n.push([a,"application/rdf+xml"]);a="META-INF/manifest.xml";Ur(t,a,oi(n));return t}function bg(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function gg(e){return typeof TextDecoder!="undefined"?(new TextDecoder).decode(e):vt(C(e))}function wg(e){return typeof TextEncoder!="undefined"?(new TextEncoder).encode(e):A(pt(e))}function kg(e,r){e:for(var t=0;t<=e.length-r.length;++t){for(var a=0;a<r.length;++a)if(e[t+a]!=r[a])continue e;return true}return false}function Tg(e){var r=e.reduce(function(e,r){return e+r.length},0);var t=new Uint8Array(r);var a=0;e.forEach(function(e){t.set(e,a);a+=e.length});return t}function Eg(e){e-=e>>1&1431655765;e=(e&858993459)+(e>>2&858993459);return(e+(e>>4)&252645135)*16843009>>>24}func
fi(r.rels,1,s,ai.WB);s="xl/theme/theme1.xml";Ur(i,s,Lo(e.Themes,r));n.themes.push(s);fi(r.wbrels,-1,"theme/theme1.xml",ai.THEME);s="xl/styles."+t;Ur(i,s,_o(e,r));n.styles.push(s);fi(r.wbrels,-1,"styles."+t,ai.STY);if(e.vbaraw&&a){s="xl/vbaProject.bin";Ur(i,s,e.vbaraw);n.vba.push(s);fi(r.wbrels,-1,"vbaProject.bin",ai.VBA)}s="xl/metadata."+t;Ur(i,s,Qo());n.metadata.push(s);fi(r.wbrels,-1,"metadata."+t,ai.XLMETA);Ur(i,"[Content_Types].xml",ti(n,r));Ur(i,"_rels/.rels",si(r.rels));Ur(i,"xl/_rels/workbook."+t+".rels",si(r.wbrels));delete r.revssf;delete r.ssf;return i}function uw(e,r){if(e&&!e.SSF){e.SSF=Tr(Y)}if(e&&e.SSF){Ve();ze(e.SSF);r.revssf=fr(e.SSF);r.revssf[e.SSF[65535]]=0;r.ssf=e.SSF}r.rels={};r.wbrels={};r.Strings=[];r.Strings.Count=0;r.Strings.Unique=0;if(Xd)r.revStrings=new Map;else{r.revStrings={};r.revStrings.foo=[];delete r.revStrings.foo}var t="xml";var a=Au.indexOf(r.bookType)>-1;var n=ei();aw(r=r||{});var i=Br();var s="",f=0;r.cellXfs=[];Jd(r.cellXfs,{},{revssf:{General:0}});if(!e.Props)e.Props={};s="docProps/core.xml";Ur(i,s,wi(e.Props,r));n.coreprops.push(s);fi(r.rels,2,s,ai.CORE_PROPS);s="docProps/app.xml";if(e.Props&&e.Props.SheetNames){}else if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{var c=[];for(var l=0;l<e.SheetNames.length;++l)if((e.Workbook.Sheets[l]||{}).Hidden!=2)c.push(e.SheetNames[l]);e.Props.SheetNames=c}e.Props.Worksheets=e.Props.SheetNames.length;Ur(i,s,Si(e.Props,r));n.extprops.push(s);fi(r.rels,3,s,ai.EXT_PROPS);if(e.Custprops!==e.Props&&nr(e.Custprops||{}).length>0){s="docProps/custom.xml";Ur(i,s,xi(e.Custprops,r));n.custprops.push(s);fi(r.rels,4,s,ai.CUST_PROPS)}var o=["SheetJ5"];r.tcid=0;for(f=1;f<=e.SheetNames.length;++f){var u={"!id":{}};var h=e.Sheets[e.SheetNames[f-1]];var d=(h||{})["!type"]||"sheet";switch(d){case"chart":;default:s="xl/worksheets/sheet"+f+"."+t;Ur(i,s,Iv(f-1,r,e,u));n.sheets.push(s);fi(r.wbrels,-1,"worksheets/sheet"+f+"."+t,ai.WS[0]);}if(h){var v=h["!comments"];var p=false;var m="";if(v&&v.length>0){var b=false;v.forEach(function(e){e[1].forEach(function(e){if(e.T==true)b=true})});if(b){m="xl/threadedComments/threadedComment"+f+".xml";Ur(i,m,vu(v,o,r));n.threadedcomments.push(m);fi(u,-1,"../threadedComments/threadedComment"+f+".xml",ai.TCMNT)}m="xl/comments"+f+"."+t;Ur(i,m,hu(v,r));n.comments.push(m);fi(u,-1,"../comments"+f+"."+t,ai.CMNT);p=true}if(h["!legacy"]){if(p)Ur(i,"xl/drawings/vmlDrawing"+f+".vml",cu(f,h["!comments"]))}delete h["!comments"];delete h["!legacy"]}if(u["!id"].rId1)Ur(i,ni(s),si(u))}if(r.Strings!=null&&r.Strings.length>0){s="xl/sharedStrings."+t;Ur(i,s,$c(r.Strings,r));n.strs.push(s);fi(r.wbrels,-1,"sharedStrings."+t,ai.SST)}s="xl/workbook."+t;Ur(i,s,mm(e,r));n.workbooks.push(s);fi(r.rels,1,s,ai.WB);s="xl/theme/theme1.xml";Ur(i,s,Lo(e.Themes,r));n.themes.push(s);fi(r.wbrels,-1,"theme/theme1.xml",ai.THEME);s="xl/styles."+t;Ur(i,s,Jl(e,r));n.styles.push(s);fi(r.wbrels,-1,"styles."+t,ai.STY);if(e.vbaraw&&a){s="xl/vbaProject.bin";Ur(i,s,e.vbaraw);n.vba.push(s);fi(r.wbrels,-1,"vbaProject.bin",ai.VBA)}s="xl/metadata."+t;Ur(i,s,ru());n.metadata.push(s);fi(r.wbrels,-1,"metadata."+t,ai.XLMETA);if(o.length>1){s="xl/persons/person.xml";Ur(i,s,mu(o,r));n.people.push(s);fi(r.wbrels,-1,"persons/person.xml",ai.PEOPLE)}Ur(i,"[Content_Types].xml",ti(n,r));Ur(i,"_rels/.rels",si(r.rels));Ur(i,"xl/_rels/workbook."+t+".rels",si(r.wbrels));delete r.revssf;delete r.ssf;return i}function hw(e,r){var t="";switch((r||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":t=T(e.slice(0,12));break;case"binary":t=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(r&&r.type||"undefined"));}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3),t.charCodeAt(4),t.charCodeAt(5),t.charCodeAt(6),t.charCodeAt(7)]}function dw(e,r){if(qe.find(e,"EncryptedPackage"))return lw(e,r);return Ab(e,r)}function vw(e,r){var t,a=e;var n=r||{};if(!n.type)n.type=E&&Buffer.isBuffer(e)?"buffer":"base64";t=Wr(a,n);return cw(t,n)}function pw(e,r){var t=0;e