sheetjs_sheetjs/dist/xlsx.core.min.js

16 lines
419 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;(function(e){if("object"==typeof exports&&"undefined"!=typeof module&&"undefined"==typeof DO_NOT_EXPORT_JSZIP)module.exports=e();else if("function"==typeof define&&define.amd){JSZip=e();define([],e)}else{var r;"undefined"!=typeof window?r=window:"undefined"!=typeof global?r=global:"undefined"!=typeof $&&$.global?r=$.global:"undefined"!=typeof self&&(r=self),r.JSZip=e()}})(function(){var e,r,t;return function a(e,r,t){function n(s,f){if(!r[s]){if(!e[s]){var o=typeof require=="function"&&require;if(!f&&o)return o(s,!0);if(i)return i(s,!0);throw new Error("Cannot find module '"+s+"'")}var l=r[s]={exports:{}};e[s][0].call(l.exports,function(r){var t=e[s][1][r];return n(t?t:r)},l,l.exports,a,e,r,t)}return r[s].exports}var i=typeof require=="function"&&require;for(var s=0;s<t.length;s++)n(t[s]);return n}({1:[function(e,r,t){"use strict";var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.encode=function(e,r){var t="";var n,i,s,f,o,l,c;var u=0;while(u<e.length){n=e.charCodeAt(u++);i=e.charCodeAt(u++);s=e.charCodeAt(u++);f=n>>2;o=(n&3)<<4|i>>4;l=(i&15)<<2|s>>6;c=s&63;if(isNaN(i)){l=c=64}else if(isNaN(s)){c=64}t=t+a.charAt(f)+a.charAt(o)+a.charAt(l)+a.charAt(c)}return t};t.decode=function(e,r){var t="";var n,i,s;var f,o,l,c;var u=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(u<e.length){f=a.indexOf(e.charAt(u++));o=a.indexOf(e.charAt(u++));l=a.indexOf(e.charAt(u++));c=a.indexOf(e.charAt(u++));n=f<<2|o>>4;i=(o&15)<<4|l>>2;s=(l&3)<<6|c;t=t+String.fromCharCode(n);if(l!=64){t=t+String.fromCharCode(i)}if(c!=64){t=t+String.fromCharCode(s)}}return t}},{}],2:[function(e,r,t){"use strict";function a(){this.compressedSize=0;this.uncompressedSize=0;this.crc32=0;this.compressionMethod=null;this.compressedContent=null}a.prototype={getContent:function(){return null},getCompressedContent:function(){return null}};r.exports=a},{}],3:[function(e,r,t){"use strict";t.STORE={magic:"\0\0",compress:function(e){return e},uncompress:function(e){return e},compressInputType:null,uncompressInputType:null};t.DEFLATE=e("./flate")},{"./flate":8}],4:[function(e,r,t){"use strict";var a=e("./utils");var n=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628
}return null}};r.exports=f},{"./compressedObject":2,"./object":13,"./stringReader":15,"./utils":21}],24:[function(e,r,t){"use strict";var a=e("./lib/utils/common").assign;var n=e("./lib/deflate");var i=e("./lib/inflate");var s=e("./lib/zlib/constants");var f={};a(f,n,i,s);r.exports=f},{"./lib/deflate":25,"./lib/inflate":26,"./lib/utils/common":27,"./lib/zlib/constants":30}],25:[function(e,r,t){"use strict";var a=e("./zlib/deflate.js");var n=e("./utils/common");var i=e("./utils/strings");var s=e("./zlib/messages");var f=e("./zlib/zstream");var o=0;var l=4;var c=0;var u=1;var h=-1;var d=0;var v=8;var p=function(e){this.options=n.assign({level:h,method:v,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var r=this.options;if(r.raw&&r.windowBits>0){r.windowBits=-r.windowBits}else if(r.gzip&&r.windowBits>0&&r.windowBits<16){r.windowBits+=16}this.err=0;this.msg="";this.ended=false;this.chunks=[];this.strm=new f;this.strm.avail_out=0;var t=a.deflateInit2(this.strm,r.level,r.method,r.windowBits,r.memLevel,r.strategy);if(t!==c){throw new Error(s[t])}if(r.header){a.deflateSetHeader(this.strm,r.header)}};p.prototype.push=function(e,r){var t=this.strm;var s=this.options.chunkSize;var f,h;if(this.ended){return false}h=r===~~r?r:r===true?l:o;if(typeof e==="string"){t.input=i.string2buf(e)}else{t.input=e}t.next_in=0;t.avail_in=t.input.length;do{if(t.avail_out===0){t.output=new n.Buf8(s);t.next_out=0;t.avail_out=s}f=a.deflate(t,h);if(f!==u&&f!==c){this.onEnd(f);this.ended=true;return false}if(t.avail_out===0||t.avail_in===0&&h===l){if(this.options.to==="string"){this.onData(i.buf2binstring(n.shrinkBuf(t.output,t.next_out)))}else{this.onData(n.shrinkBuf(t.output,t.next_out))}}}while((t.avail_in>0||t.avail_out===0)&&f!==u);if(h===l){f=a.deflateEnd(this.strm);this.onEnd(f);this.ended=true;return f===c}return true};p.prototype.onData=function(e){this.chunks.push(e)};p.prototype.onEnd=function(e){if(e===c){if(this.options.to==="string"){this.result=this.chunks.join("")}else{this.result=n.flattenChunks(this.chunks)}}this.chunks=[];this.err=e;this.msg=this.strm.msg};function b(e,r){var t=new p(r);t.push(e,true);if(t.err){throw t.msg}return t.result}function m(e,r){r=r||{};r.raw=true;return b(e,r)}function g(e,r){r=r||{};r.gzip=true;return b(e,r)}t.Deflate=p;t.deflate=b;t.deflateRaw=m;t.gzip=g},{"./utils/common":27,"./utils/strings":28,"./zlib/deflate.js":32,"./zlib/messages":37,"./zlib/zstream":39}],26:[function(e,r,t){"use strict";var a=e("./zlib/inflate.js");var n=e("./utils/common");var i=e("./utils/strings");var s=e("./zlib/constants");var f=e("./zlib/messages");var o=e("./zlib/zstream");var l=e("./zlib/gzheader");var c=function(e){this.options=n.assign({chunkSize:16384,windowBits:0,to:""},e||{});var r=this.options;if(r.raw&&r.windowBits>=0&&r.windowBits<16){r.windowBits=-r.windowBits;if(r.windowBits===0){r.windowBits=-15}}if(r.windowBits>=0&&r.windowBits<16&&!(e&&e.windowBits)){r.windowBits+=32}if(r.windowBits>15&&r.windowBits<48){if((r.windowBits&15)===0){r.windowBits|=15}}this.err=0;this.msg="";this.ended=false;this.chunks=[];this.strm=new o;this.strm.avail_out=0;var t=a.inflateInit2(this.strm,r.windowBits);if(t!==s.Z_OK){throw new Error(f[t])}this.header=new l;a.inflateGetHeader(this.strm,this.header)};c.prototype.push=function(e,r){var t=this.strm;var f=this.options.chunkSize;var o,l;var c,u,h;if(this.ended){return false}l=r===~~r?r:r===true?s.Z_FINISH:s.Z_NO_FLUSH;if(typeof e==="string"){t.input=i.binstring2buf(e)}else{t.input=e}t.next_in=0;t.avail_in=t.input.length;do{if(t.avail_out===0){t.output=new n.Buf8(f);t.next_out=0;t.avail_out=f}o=a.inflate(t,s.Z_NO_FLUSH);if(o!==s.Z_STREAM_END&&o!==s.Z_OK){this.onEnd(o);this.ended=true;return false}if(t.next_out){if(t.avail_out===0||o===s.Z_STREAM_END||t.avail_in===0&&l===s.Z_FINISH){if(this.options.to==="string"){c=i.utf8border(t.output,t.next_out);u=t.next_out-c;h=i.buf2string(t.output,c);t.next_out=u;t.avail_out=f-u;if(u){n.arraySet(t.output,t.output,c,u,0)}this.onData(h)}else{this.onData(n.shrinkBuf(t.output,t.next_out))}}}}while(t.avail_in>0&&o!==s.Z_STREAM_END);if(o==
fe>>>=oe&7;oe-=oe&7;while(oe<32){if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}if((fe&65535)!==(fe>>>16^65535)){e.msg="invalid stored block lengths";t.mode=Q;break}t.length=fe&65535;fe=0;oe=0;t.mode=N;if(r===d){break e};case N:t.mode=L;case L:ue=t.length;if(ue){if(ue>ie){ue=ie}if(ue>se){ue=se}if(ue===0){break e}a.arraySet(re,ee,te,ue,ae);ie-=ue;te+=ue;se-=ue;ae+=ue;t.length-=ue;break}t.mode=O;break;case M:while(oe<14){if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}t.nlen=(fe&31)+257;fe>>>=5;oe-=5;t.ndist=(fe&31)+1;fe>>>=5;oe-=5;t.ncode=(fe&15)+4;fe>>>=4;oe-=4;if(t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols";t.mode=Q;break}t.have=0;t.mode=U;case U:while(t.have<t.ncode){while(oe<3){if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}t.lens[Ie[t.have++]]=fe&7;fe>>>=3;oe-=3}while(t.have<19){t.lens[Ie[t.have++]]=0}t.lencode=t.lendyn;t.lenbits=7;Te={bits:t.lenbits};Ce=f(o,t.lens,0,19,t.lencode,0,t.work,Te);t.lenbits=Te.bits;if(Ce){e.msg="invalid code lengths set";t.mode=Q;break}t.have=0;t.mode=H;case H:while(t.have<t.nlen+t.ndist){for(;;){be=t.lencode[fe&(1<<t.lenbits)-1];me=be>>>24;ge=be>>>16&255;Ee=be&65535;if(me<=oe){break}if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}if(Ee<16){fe>>>=me;oe-=me;t.lens[t.have++]=Ee}else{if(Ee===16){xe=me+2;while(oe<xe){if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}fe>>>=me;oe-=me;if(t.have===0){e.msg="invalid bit length repeat";t.mode=Q;break}Be=t.lens[t.have-1];ue=3+(fe&3);fe>>>=2;oe-=2}else if(Ee===17){xe=me+3;while(oe<xe){if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}fe>>>=me;oe-=me;Be=0;ue=3+(fe&7);fe>>>=3;oe-=3}else{xe=me+7;while(oe<xe){if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}fe>>>=me;oe-=me;Be=0;ue=11+(fe&127);fe>>>=7;oe-=7}if(t.have+ue>t.nlen+t.ndist){e.msg="invalid bit length repeat";t.mode=Q;break}while(ue--){t.lens[t.have++]=Be}}}if(t.mode===Q){break}if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block";t.mode=Q;break}t.lenbits=9;Te={bits:t.lenbits};Ce=f(l,t.lens,0,t.nlen,t.lencode,0,t.work,Te);t.lenbits=Te.bits;if(Ce){e.msg="invalid literal/lengths set";t.mode=Q;break}t.distbits=6;t.distcode=t.distdyn;Te={bits:t.distbits};Ce=f(c,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,Te);t.distbits=Te.bits;if(Ce){e.msg="invalid distances set";t.mode=Q;break}t.mode=W;if(r===d){break e};case W:t.mode=V;case V:if(ie>=6&&se>=258){e.next_out=ae;e.avail_out=se;e.next_in=te;e.avail_in=ie;t.hold=fe;t.bits=oe;s(e,ce);ae=e.next_out;re=e.output;se=e.avail_out;te=e.next_in;ee=e.input;ie=e.avail_in;fe=t.hold;oe=t.bits;if(t.mode===O){t.back=-1}break}t.back=0;for(;;){be=t.lencode[fe&(1<<t.lenbits)-1];me=be>>>24;ge=be>>>16&255;Ee=be&65535;if(me<=oe){break}if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}if(ge&&(ge&240)===0){ke=me;Se=ge;we=Ee;for(;;){be=t.lencode[we+((fe&(1<<ke+Se)-1)>>ke)];me=be>>>24;ge=be>>>16&255;Ee=be&65535;if(ke+me<=oe){break}if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}fe>>>=ke;oe-=ke;t.back+=ke}fe>>>=me;oe-=me;t.back+=me;t.length=Ee;if(ge===0){t.mode=K;break}if(ge&32){t.back=-1;t.mode=O;break}if(ge&64){e.msg="invalid literal/length code";t.mode=Q;break}t.extra=ge&15;t.mode=z;case z:if(t.extra){xe=t.extra;while(oe<xe){if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}t.length+=fe&(1<<t.extra)-1;fe>>>=t.extra;oe-=t.extra;t.back+=t.extra}t.was=t.length;t.mode=X;case X:for(;;){be=t.distcode[fe&(1<<t.distbits)-1];me=be>>>24;ge=be>>>16&255;Ee=be&65535;if(me<=oe){break}if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}if((ge&240)===0){ke=me;Se=ge;we=Ee;for(;;){be=t.distcode[we+((fe&(1<<ke+Se)-1)>>ke)];me=be>>>24;ge=be>>>16&255;Ee=be&65535;if(ke+me<=oe){break}if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}fe>>>=ke;oe-=ke;t.back+=ke}fe>>>=me;oe-=me;t.back+=me;if(ge&64){e.msg="invalid distance code";t.mode=Q;break}t.offset=Ee;t.extra=ge&15;t.mode=G;case G:if(t.extra){xe=t.extra;while(oe<xe){if(ie===0){break e}ie--;fe+=ee[te++]<<oe;oe+=8}t.offset+=fe&(1<<t.extra)-1;fe>>>=t.extra;oe-=t.extra;t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back";t.mode=Q;break}t.mode=j;case j:if(se===0){break e}ue=ce-se;if(t.offset>ue){ue=t.offset-ue;if(ue>t.whave)
return m(s.substr(0,s.length-l.length))+l}if(u=s.match(/^([#0]+)\.([#0]+)$/)){l=""+f.toFixed(Math.min(u[2].length,10)).replace(/([^0])0+$/,"$1");g=l.indexOf(".");var A=s.indexOf(".")-g,y=s.length-l.length-A;return m(s.substr(0,A)+l+s.substr(s.length-y))}if(u=s.match(/^00,000\.([#0]*0)$/)){return f<0?"-"+I(e,s,-f):T(""+f).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(e){return"00,"+(e.length<3?a(0,3-e.length):"")+e})+"."+a(0,u[1].length)}switch(s){case"###,###":;case"##,###":;case"#,###":var R=T(""+k);return R!=="0"?S+R:"";default:if(s.match(/\.[0#?]*$/))return I(e,s.slice(0,s.lastIndexOf(".")),f)+m(s.slice(s.lastIndexOf(".")));}throw new Error("unsupported format |"+s+"|")}return function A(e,r,t){return(t|0)===t?I(e,r,t):w(e,r,t)}}();function I(e){var r=[];var t=false;for(var a=0,n=0;a<e.length;++a)switch(e.charCodeAt(a)){case 34:t=!t;break;case 95:;case 42:;case 92:++a;break;case 59:r[r.length]=e.substr(n,a-n);n=a+1;}r[r.length]=e.substr(n);if(t===true)throw new Error("Format |"+e+"| unterminated string ");return r}e._split=I;var A=/\[[HhMmSs]*\]/;function y(e){var r=0,t="",a="";while(r<e.length){switch(t=e.charAt(r)){case"G":if(c(e,r))r+=6;r++;break;case'"':for(;e.charCodeAt(++r)!==34&&r<e.length;)++r;++r;break;case"\\":r+=2;break;case"_":r+=2;break;case"@":++r;break;case"B":;case"b":if(e.charAt(r+1)==="1"||e.charAt(r+1)==="2")return true;case"M":;case"D":;case"Y":;case"H":;case"S":;case"E":;case"m":;case"d":;case"y":;case"h":;case"s":;case"e":;case"g":return true;case"A":;case"a":if(e.substr(r,3).toUpperCase()==="A/P")return true;if(e.substr(r,5).toUpperCase()==="AM/PM")return true;++r;break;case"[":a=t;while(e.charAt(r++)!=="]"&&r<e.length)a+=e.charAt(r);if(a.match(A))return true;break;case".":;case"0":;case"#":while(r<e.length&&("0#?.,E+-%".indexOf(t=e.charAt(++r))>-1||t=="\\"&&e.charAt(r+1)=="-"&&"0#".indexOf(e.charAt(r+2))>-1)){}break;case"?":while(e.charAt(++r)===t){}break;case"*":++r;if(e.charAt(r)==" "||e.charAt(r)=="*")++r;break;case"(":;case")":++r;break;case"1":;case"2":;case"3":;case"4":;case"5":;case"6":;case"7":;case"8":;case"9":while(r<e.length&&"0123456789".indexOf(e.charAt(++r))>-1){}break;case" ":++r;break;default:++r;break;}}return false}e.is_date=y;function R(e,r,t,a){var n=[],i="",s=0,f="",o="t",l,u,h;var d="H";while(s<e.length){switch(f=e.charAt(s)){case"G":if(!c(e,s))throw new Error("unrecognized character "+f+" in "+e);n[n.length]={t:"G",v:"General"};s+=7;break;case'"':for(i="";(h=e.charCodeAt(++s))!==34&&s<e.length;)i+=String.fromCharCode(h);n[n.length]={t:"t",v:i};++s;break;case"\\":var v=e.charAt(++s),p=v==="("||v===")"?v:"t";n[n.length]={t:p,v:v};++s;break;case"_":n[n.length]={t:"t",v:" "};s+=2;break;case"@":n[n.length]={t:"T",v:r};++s;break;case"B":;case"b":if(e.charAt(s+1)==="1"||e.charAt(s+1)==="2"){if(l==null){l=b(r,t,e.charAt(s+1)==="2");if(l==null)return""}n[n.length]={t:"X",v:e.substr(s,2)};o=f;s+=2;break};case"M":;case"D":;case"Y":;case"H":;case"S":;case"E":f=f.toLowerCase();case"m":;case"d":;case"y":;case"h":;case"s":;case"e":;case"g":if(r<0)return"";if(l==null){l=b(r,t);if(l==null)return""}i=f;while(++s<e.length&&e.charAt(s).toLowerCase()===f)i+=f;if(f==="m"&&o.toLowerCase()==="h")f="M";if(f==="h")f=d;n[n.length]={t:f,v:i};o=f;break;case"A":;case"a":var m={t:f,v:f};if(l==null)l=b(r,t);if(e.substr(s,3).toUpperCase()==="A/P"){if(l!=null)m.v=l.H>=12?"P":"A";m.t="T";d="h";s+=3}else if(e.substr(s,5).toUpperCase()==="AM/PM"){if(l!=null)m.v=l.H>=12?"PM":"AM";m.t="T";s+=5;d="h"}else{m.t="t";++s}if(l==null&&m.t==="T")return"";n[n.length]=m;o=f;break;case"[":i=f;while(e.charAt(s++)!=="]"&&s<e.length)i+=e.charAt(s);if(i.slice(-1)!=="]")throw'unterminated "[" block: |'+i+"|";if(i.match(A)){if(l==null){l=b(r,t);if(l==null)return""}n[n.length]={t:"Z",v:i.toLowerCase()};o=i.charAt(1)}else if(i.indexOf("$")>-1){i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$";if(!y(e))n[n.length]={t:"t",v:i}}break;case".":if(l!=null){i=f;while(++s<e.length&&(f=e.charAt(s))==="0")i+=f;n[n.length]={t:"s",v:i};break};case"0":;case"#":i=f;while(++s<e.length&&"0#?.,E+-%".indexOf(f=e.charAt(s))>-1||f=="\\"&&e.charAt(s+
var s=e.length,f=0,o=0;while(e.l<s){f=e.read_shift(1);if(f&128)f=(f&127)+((e.read_shift(1)&127)<<7);var l=CE[f]||CE[65535];a=e.read_shift(1);i=a&127;for(n=1;n<4&&a&128;++n)i+=((a=e.read_shift(1))&127)<<7*n;o=e.l+i;var c=l.f(e,i,t);e.l=o;if(r(c,l.n,f))return}}function _r(){var e=[],r=2048;var t=function o(e){var r=Br(e);Er(r,0);return r};var a=t(r);var n=function l(){if(!a)return;if(a.length>a.l)a=a.slice(0,a.l);if(a.length>0)e.push(a);a=null};var i=function c(e){if(a&&e<a.length-a.l)return a;n();return a=t(Math.max(e+1,r))};var s=function u(){n();return We([e])};var f=function h(e){n();a=e;i(r)};return{next:i,push:f,end:s,_bufs:e}}function Tr(e,r,t,a){var n=Number(_E[r]),i;if(isNaN(n))return;if(!a)a=CE[n].p||(t||[]).length||0;i=1+(n>=128?1:0)+1+a;if(a>=128)++i;if(a>=16384)++i;if(a>=2097152)++i;var s=e.next(i);if(n<=127)s.write_shift(1,n);else{s.write_shift(1,(n&127)+128);s.write_shift(1,n>>7)}for(var f=0;f!=4;++f){if(a>=128){s.write_shift(1,(a&127)+128);a>>=7}else{s.write_shift(1,a);break}}if(a>0&&ir(t))e.push(t)}function xr(e,r,t){var a=z(e);if(r.s){if(a.cRel)a.c+=r.s.c;if(a.rRel)a.r+=r.s.r}else{a.c+=r.c;a.r+=r.r}if(!t||t.biff<12){while(a.c>=256)a.c-=256;while(a.r>=65536)a.r-=65536}return a}function Ir(e,r,t){var a=z(e);a.s=xr(a.s,r.s,t);a.e=xr(a.e,r.s,t);return a}function Ar(e){var r=zr(e);if(e.cRel===0)r=Ur(r);if(e.rRel===0)r=Pr(r);return r}function yr(e,r){if(e.s.r==0&&!e.s.rRel){if(e.e.r==(r.biff>=12?1048575:65535)&&!e.e.rRel){return(e.s.cRel?"":"$")+Mr(e.s.c)+":"+(e.e.cRel?"":"$")+Mr(e.e.c)}}if(e.s.c==0&&!e.s.cRel){if(e.e.c==(r.biff>=12?65535:255)&&!e.e.cRel){return(e.s.rRel?"":"$")+Fr(e.s.r)+":"+(e.e.rRel?"":"$")+Fr(e.e.r)}}return Ar(e.s)+":"+Ar(e.e)}var Rr={};var Dr=function(e,r){var t;if(typeof r!=="undefined")t=r;else if(typeof require!=="undefined"){try{t=undefined}catch(a){t=null}}e.rc4=function(e,r){var t=new Array(256);var a=0,n=0,i=0,s=0;for(n=0;n!=256;++n)t[n]=n;for(n=0;n!=256;++n){i=i+t[n]+e[n%e.length].charCodeAt(0)&255;s=t[n];t[n]=t[i];t[i]=s}n=i=0;var f=Buffer(r.length);for(a=0;a!=r.length;++a){n=n+1&255;i=(i+t[n])%256;s=t[n];t[n]=t[i];t[i]=s;f[a]=r[a]^t[t[n]+t[i]&255]}return f};e.md5=function(e){if(!t)throw new Error("Unsupported crypto");return t.createHash("md5").update(e).digest("hex")}};Dr(Rr,typeof crypto!=="undefined"?crypto:undefined);function Or(e){return parseInt(Nr(e),10)-1}function Fr(e){return""+(e+1)}function Pr(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function Nr(e){return e.replace(/\$(\d+)$/,"$1")}function Lr(e){var r=Hr(e),t=0,a=0;for(;a!==r.length;++a)t=26*t+r.charCodeAt(a)-64;return t-1}function Mr(e){var r="";for(++e;e;e=Math.floor((e-1)/26))r=String.fromCharCode((e-1)%26+65)+r;return r}function Ur(e){return e.replace(/^([A-Z])/,"$$$1")}function Hr(e){return e.replace(/^\$([A-Z])/,"$1")}function Wr(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Vr(e){var r=Wr(e);return{c:Lr(r[0]),r:Or(r[1])}}function zr(e){return Mr(e.c)+Fr(e.r)}function Xr(e){return Ur(Pr(e))}function Gr(e){return Hr(Nr(e))}function jr(e){var r=e.split(":").map(Vr);return{s:r[0],e:r[r.length-1]}}function Kr(e,r){if(typeof r==="undefined"||typeof r==="number"){return Kr(e.s,e.e)}if(typeof e!=="string")e=zr(e);if(typeof r!=="string")r=zr(r);return e==r?e:e+":"+r}function Yr(e){var r={s:{c:0,r:0},e:{c:0,r:0}};var t=0,a=0,n=0;var i=e.length;for(t=0;a<i;++a){if((n=e.charCodeAt(a)-64)<1||n>26)break;t=26*t+n}r.s.c=--t;for(t=0;a<i;++a){if((n=e.charCodeAt(a)-48)<0||n>9)break;t=10*t+n}r.s.r=--t;if(a===i||e.charCodeAt(++a)===58){r.e.c=r.s.c;r.e.r=r.s.r;return r}for(t=0;a!=i;++a){if((n=e.charCodeAt(a)-64)<1||n>26)break;t=26*t+n}r.e.c=--t;for(t=0;a!=i;++a){if((n=e.charCodeAt(a)-48)<0||n>9)break;t=10*t+n}r.e.r=--t;return r}function $r(e,r){var t=e.t=="d"&&r instanceof Date;if(e.z!=null)try{return e.w=E.format(e.z,t?P(r):r)}catch(a){}try{return e.w=E.format((e.XF||{}).numFmtId||(t?14:0),t?P(r):r)}catch(a){return""+r}}function Zr(e,r,t){if(e==null||e.t==null||e.t=="z")return"";if(e.w!==undefined)return e.w;if(e.t=="d"&&!e.z&&t&&t.dateNF)e.z=t.dateNF;if(r==undefined)return $r(e,e.v);return $r(e,r)}
switch(r===Pt?a:r){case 2:n=e.read_shift(2,"i");if(!i.raw)e.l+=2;return n;case 3:n=e.read_shift(4,"i");return n;case 11:return e.read_shift(4)!==0;case 19:n=e.read_shift(4);return n;case 30:return Ua(e,a,4).replace(m,"");case 31:return Ha(e);case 64:return Ma(e);case 65:return Za(e);case 71:return Qa(e);case 80:return Va(e,a,!i.raw).replace(m,"");case 81:return za(e,a).replace(m,"");case 4108:return Ya(e);case 4126:return Ga(e);default:throw new Error("TypedPropertyValue unrecognized type "+r+" "+a);}}function en(e,r){var t=e.l;var a=e.read_shift(4);var i=e.read_shift(4);var s=[],f=0;var o=0;var l=-1,c={};for(f=0;f!=i;++f){var u=e.read_shift(4);var h=e.read_shift(4);s[f]=[u,h+t]}var d={};for(f=0;f!=i;++f){if(e.l!==s[f][1]){var v=true;if(f>0&&r)switch(r[s[f-1][0]].t){case 2:if(e.l+2===s[f][1]){e.l+=2;v=false}break;case 80:if(e.l<=s[f][1]){e.l=s[f][1];v=false}break;case 4108:if(e.l<=s[f][1]){e.l=s[f][1];v=false}break;}if(!r&&e.l<=s[f][1]){v=false;e.l=s[f][1]}if(v)throw new Error("Read Error: Expected address "+s[f][1]+" at "+e.l+" :"+f)}if(r){var p=r[s[f][0]];d[p.n]=qa(e,p.t,{raw:true});if(p.p==="version")d[p.n]=String(d[p.n]>>16)+"."+String(d[p.n]&65535);if(p.n=="CodePage")switch(d[p.n]){case 0:d[p.n]=1252;case 874:;case 932:;case 936:;case 949:;case 950:;case 1250:;case 1251:;case 1253:;case 1254:;case 1255:;case 1256:;case 1257:;case 1258:;case 1e4:;case 1200:;case 1201:;case 1252:;case 65e3:;case-536:;case 65001:;case-535:n(o=d[p.n]);break;default:throw new Error("Unsupported CodePage: "+d[p.n]);}}else{if(s[f][0]===1){o=d.CodePage=qa(e,Dt);n(o);if(l!==-1){var b=e.l;e.l=s[l][1];c=$a(e,o);e.l=b}}else if(s[f][0]===0){if(o===0){l=f;e.l=s[f+1][1];continue}c=$a(e,o)}else{var m=c[s[f][0]];var g;switch(e[e.l]){case 65:e.l+=4;g=Za(e);break;case 30:e.l+=4;g=Va(e,e[e.l-4]);break;case 31:e.l+=4;g=Va(e,e[e.l-4]);break;case 3:e.l+=4;g=e.read_shift(4,"i");break;case 19:e.l+=4;g=e.read_shift(4);break;case 5:e.l+=4;g=e.read_shift(8,"f");break;case 11:e.l+=4;g=nn(e,4);break;case 64:e.l+=4;g=H(Ma(e));break;default:throw new Error("unparsed value: "+e[e.l]);}d[m]=g}}}e.l=t+a;return d}function rn(e,r){var t=e.content;Er(t,0);var a,n,i,s,f=0;t.chk("feff","Byte Order: ");var o=t.read_shift(2);var l=t.read_shift(4);t.chk(T.utils.consts.HEADER_CLSID,"CLSID: ");a=t.read_shift(4);if(a!==1&&a!==2)throw new Error("Unrecognized #Sets: "+a);n=t.read_shift(16);s=t.read_shift(4);if(a===1&&s!==t.l)throw new Error("Length mismatch: "+s+" !== "+t.l);else if(a===2){i=t.read_shift(16);f=t.read_shift(4)}var c=en(t,r);var u={SystemIdentifier:l};for(var h in c)u[h]=c[h];u.FMTID=n;if(a===1)return u;if(t.l!==f)throw new Error("Length mismatch 2: "+t.l+" !== "+f);var d;try{d=en(t,null)}catch(v){}for(h in d)u[h]=d[h];u.FMTID=[n,i];return u}function tn(e,r){e.read_shift(r);return null}function an(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 nn(e,r){return e.read_shift(r)===1}function sn(e){return e.read_shift(2,"u")}function fn(e,r){return an(e,r,sn)}var on=nn;function ln(e){var r=e.read_shift(1),t=e.read_shift(1);return t===1?r:r===1}function cn(e,r,a){var n=e.read_shift(a&&a.biff>=12?2:1);var i=1,s="sbcs-cont";var f=t;if(a&&a.biff>=8)t=1200;if(!a||a.biff==8){var o=e.read_shift(1);if(o){i=2;s="dbcs-cont"}}else if(a.biff==12){i=2;s="wstr"}var l=n?e.read_shift(n,s):"";t=f;return l}function un(e){var r=t;t=1200;var a=e.read_shift(2),n=e.read_shift(1);var i=n&1,s=n&4,f=n&8;var o=1+(n&1);var l=0,c;var u={};if(f)l=e.read_shift(2);if(s)c=e.read_shift(4);var h=n&1?"dbcs-cont":"sbcs-cont";var d=a===0?"":e.read_shift(a,h);if(f)e.l+=4*l;if(s)e.l+=c;u.t=d;if(!f){u.raw="<t>"+u.t+"</t>";u.r=u.t}t=r;return u}function hn(e,r,t){var a;if(t){if(t.biff>=2&&t.biff<=5)return e.read_shift(r,"sbcs-cont");if(t.biff>=12)return e.read_shift(r,"dbcs-cont")}var n=e.read_shift(1);if(n===0){a=e.read_shift(r,"sbcs-cont")}else{a=e.read_shift(r,"dbcs-cont")}return a}function dn(e,r,t){var a=e.read_shift(t&&t.biff==2?1:2);if(a===0){e.l++;return""}return hn(e,a,t)}function vn(e,r,t){if(t.biff>5)return dn(e,r,t);var a=e.read_shi
var f={},o=[i];var l={s:{r:0,c:0},e:{r:0,c:0}};if(r[2]==2)a.Enum=S;else if(r[2]==26)a.Enum=w;else if(r[2]==14){a.Enum=w;a.qpro=true;r.l=0}else throw new Error("Unrecognized LOTUS BOF "+r[2]);e(r,function(e,t,c){if(r[2]==2)switch(c){case 0:a.vers=e;if(e>=4096)a.qpro=true;break;case 6:l=e;break;case 15:if(!a.qpro)e[1].v=e[1].v.substr(1);case 13:;case 14:;case 16:;case 51:if(c==14&&(e[2]&112)==112&&(e[2]&15)>1&&(e[2]&15)<15){e[1].z=a.dateNF||E._table[14];if(a.cellDates){e[1].t="d";e[1].v=N(e[1].v)}}if(a.dense){if(!n[e[0].r])n[e[0].r]=[];n[e[0].r][e[0].c]=e[1]}else n[zr(e[0])]=e[1];break;}else switch(c){case 22:e[1].v=e[1].v.substr(1);case 23:;case 24:;case 25:;case 37:;case 39:;case 40:if(e[3]>s){n["!ref"]=Kr(l);f[i]=n;n=a.dense?[]:{};l={s:{r:0,c:0},e:{r:0,c:0}};s=e[3];i="Sheet"+(s+1);o.push(i)}n[zr(e[0])]=e[1];if(l.e.c<e[0].c)l.e.c=e[0].c;if(l.e.r<e[0].r)l.e.r=e[0].r;break;default:break;}},a);n["!ref"]=Kr(l);f[i]=n;return{SheetNames:o,Sheets:f}}function a(e,r){var t={s:{c:0,r:0},e:{c:0,r:0}};t.s.c=e.read_shift(2);t.s.r=e.read_shift(2);t.e.c=e.read_shift(2);t.e.r=e.read_shift(2);if(t.s.c==65535)t.s.c=t.e.c=t.s.r=t.e.r=0;return t}function n(e,r,t){var a=[{c:0,r:0},{t:"n",v:0},0];if(t.qpro&&t.vers!=20768){a[0].c=e.read_shift(1);e.l++;a[0].r=e.read_shift(2);e.l+=2}else{a[2]=e.read_shift(1);a[0].c=e.read_shift(2);a[0].r=e.read_shift(2)}return a}function i(e,r,t){var a=e.l+r;var i=n(e,r,t);i[1].t="s";if(t.vers==20768){e.l++;var s=e.read_shift(1);i[1].v=e.read_shift(s,"utf8");return i}if(t.qpro)e.l++;i[1].v=e.read_shift(a-e.l,"cstr");return i}function s(e,r,t){var a=n(e,r,t);a[1].v=e.read_shift(2,"i");return a}function f(e,r,t){var a=n(e,r,t);a[1].v=e.read_shift(8,"f");return a}function o(e,r,t){var a=e.l+r;var i=n(e,r,t);i[1].v=e.read_shift(8,"f");if(t.qpro)e.l=a;else{var s=e.read_shift(2);e.l+=s}return i}function l(e,r){var t=[{c:0,r:0},{t:"n",v:0},0];t[0].r=e.read_shift(2);t[3]=e[e.l++];t[0].c=e[e.l++];return t}function u(e,r){var t=l(e,r);t[1].t="s";t[1].v=e.read_shift(r-4,"cstr");return t}function d(e,r){var t=l(e,r);t[1].v=e.read_shift(2);var a=t[1].v>>1;if(t[1].v&1){switch(a&7){case 1:a=(a>>3)*500;break;case 2:a=(a>>3)/20;break;case 4:a=(a>>3)/2e3;break;case 6:a=(a>>3)/16;break;case 7:a=(a>>3)/64;break;default:throw"unknown NUMBER_18 encoding "+(a&7);}}t[1].v=a;return t}function v(e,r){var t=l(e,r);var a=e.read_shift(4);var n=e.read_shift(4);var i=e.read_shift(2);if(i==65535){t[1].v=0;return t}var s=i&32768;i=(i&32767)-16446;t[1].v=(i>0?n<<i:n>>>-i)+(i>-32?a<<i+32:a>>>-(i+32));return t}function b(e,r){var t=v(e,14);e.l+=r-14;return t}function m(e,r){var t=l(e,r);var a=e.read_shift(4);t[1].v=a>>6;return t}function g(e,r){var t=l(e,r);var a=e.read_shift(8,"f");t[1].v=a;return t}function k(e,r){var t=g(e,14);e.l+=r-10;return t}var S={0:{n:"BOF",f:sn},1:{n:"EOF",f:kr},2:{n:"CALCMODE",f:kr},3:{n:"CALCORDER",f:kr},4:{n:"SPLIT",f:kr},5:{n:"SYNC",f:kr},6:{n:"RANGE",f:a},7:{n:"WINDOW1",f:kr},8:{n:"COLW1",f:kr},9:{n:"WINTWO",f:kr},10:{n:"COLW2",f:kr},11:{n:"NAME",f:kr},12:{n:"BLANK",f:kr},13:{n:"INTEGER",f:s},14:{n:"NUMBER",f:f},15:{n:"LABEL",f:i},16:{n:"FORMULA",f:o},24:{n:"TABLE",f:kr},25:{n:"ORANGE",f:kr},26:{n:"PRANGE",f:kr},27:{n:"SRANGE",f:kr},28:{n:"FRANGE",f:kr},29:{n:"KRANGE1",f:kr},32:{n:"HRANGE",f:kr},35:{n:"KRANGE2",f:kr},36:{n:"PROTEC",f:kr},37:{n:"FOOTER",f:kr},38:{n:"HEADER",f:kr},39:{n:"SETUP",f:kr},40:{n:"MARGINS",f:kr},41:{n:"LABELFMT",f:kr},42:{n:"TITLES",f:kr},43:{n:"SHEETJS",f:kr},45:{n:"GRAPH",f:kr},46:{n:"NGRAPH",f:kr},47:{n:"CALCCOUNT",f:kr},48:{n:"UNFORMATTED",f:kr},49:{n:"CURSORW12",f:kr},50:{n:"WINDOW",f:kr},51:{n:"STRING",f:i},55:{n:"PASSWORD",f:kr},56:{n:"LOCKED",f:kr},60:{n:"QUERY",f:kr},61:{n:"QUERYNAME",f:kr},62:{n:"PRINT",f:kr},63:{n:"PRINTNAME",f:kr},64:{n:"GRAPH2",f:kr},65:{n:"GRAPHNAME",f:kr},66:{n:"ZOOM",f:kr},67:{n:"SYMSPLIT",f:kr},68:{n:"NSROWS",f:kr},69:{n:"NSCOLS",f:kr},70:{n:"RULER",f:kr},71:{n:"NNAME",f:kr},72:{n:"ACOMM",f:kr},73:{n:"AMACRO",f:kr},74:{n:"PARSE",f:kr},255:{n:"",f:kr}};var w={0:{n:"BOF",f:kr},1:{n:"EOF",f:kr},3:{n:"??",f:kr},4:{n:"??",f:kr},5:{n:"??",f:kr},6:{n:"??",f:kr},7:
Ud(t[0],a,r);return a}function Vd(e,r){if(r&&r.themeXLSX)return r.themeXLSX;var t=[Ne];t[t.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">';t[t.length]="<a:themeElements>";t[t.length]='<a:clrScheme name="Office">';t[t.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>';t[t.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>';t[t.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>';t[t.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>';t[t.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>';t[t.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>';t[t.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>';t[t.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>';t[t.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>';t[t.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>';t[t.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>';t[t.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>';t[t.length]="</a:clrScheme>";t[t.length]='<a:fontScheme name="Office">';t[t.length]="<a:majorFont>";t[t.length]='<a:latin typeface="Cambria"/>';t[t.length]='<a:ea typeface=""/>';t[t.length]='<a:cs typeface=""/>';t[t.length]='<a:font script="Jpan" typeface=" Pゴシック"/>';t[t.length]='<a:font script="Hang" typeface="맑은 고딕"/>';t[t.length]='<a:font script="Hans" typeface="宋体"/>';t[t.length]='<a:font script="Hant" typeface="新細明體"/>';t[t.length]='<a:font script="Arab" typeface="Times New Roman"/>';t[t.length]='<a:font script="Hebr" typeface="Times New Roman"/>';t[t.length]='<a:font script="Thai" typeface="Tahoma"/>';t[t.length]='<a:font script="Ethi" typeface="Nyala"/>';t[t.length]='<a:font script="Beng" typeface="Vrinda"/>';t[t.length]='<a:font script="Gujr" typeface="Shruti"/>';t[t.length]='<a:font script="Khmr" typeface="MoolBoran"/>';t[t.length]='<a:font script="Knda" typeface="Tunga"/>';t[t.length]='<a:font script="Guru" typeface="Raavi"/>';t[t.length]='<a:font script="Cans" typeface="Euphemia"/>';t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>';t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>';t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>';t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>';t[t.length]='<a:font script="Deva" typeface="Mangal"/>';t[t.length]='<a:font script="Telu" typeface="Gautami"/>';t[t.length]='<a:font script="Taml" typeface="Latha"/>';t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>';t[t.length]='<a:font script="Orya" typeface="Kalinga"/>';t[t.length]='<a:font script="Mlym" typeface="Kartika"/>';t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>';t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>';t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>';t[t.length]='<a:font script="Viet" typeface="Times New Roman"/>';t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>';t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>';t[t.length]="</a:majorFont>";t[t.length]="<a:minorFont>";t[t.length]='<a:latin typeface="Calibri"/>';t[t.length]='<a:ea typeface=""/>';t[t.length]='<a:cs typeface=""/>';t[t.length]='<a:font script="Jpan" typeface=" Pゴシック"/>';t[t.length]='<a:font script="Hang" typeface="맑은 고딕"/>';t[t.length]='<a:font script="Hans" typeface="宋体"/>';t[t.length]='<a:font script="Hant" typeface="新細明體"/>';t[t.length]='<a:font script="Arab" typeface="Arial"/>';t[t.length]='<a:font script="Hebr" typeface="Arial"/>';t[t.length]='<a:font script="Thai" typeface="Tahoma"/>';t[t.length]='<a:font script="Ethi" typeface="Nyala"/>';t[t.length]='<a:font script="Beng" typeface="Vrinda"/>';t[t.length]='<a:font script="Gujr" typeface="Shruti"/>';t[t.length]='<a:font script="Khmr" typeface="DaunPenh"/>';t[t.length]='<a:font script="Knda" typeface="Tunga"/>';t[t.length]='<a:font script="Guru" typeface="Raavi"/>';t[t.length]='<a:font script="Cans" typeface="Euphemia"/>';t[t.length]='<a:font script="Cher" typeface="Plantagenet
return s[0]}function sb(e,r,t){var a=e.l+r;var n=e.read_shift(4);var i=qp(e,n,t);var s=e.read_shift(4);var f=s>0?Yp(e,s,i,t):null;return[i,f]}var fb=sb;var ob=sb;var lb=sb;var cb=sb;var ub={1:"REFERENCE",2:"VALUE",3:"ARRAY"};var hb={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WO
a.write_shift(1,0);var s=0;if(n.level)s|=n.level;if(n.hidden)s|=16;if(n.hpx||n.hpt)s|=32;a.write_shift(1,s);a.write_shift(1,0);var f=0,o=a.l;a.l+=4;var l={r:e,c:0};for(var c=0;c<16;++c){if(r.s.c>c+1<<10||r.e.c<c<<10)continue;var u=-1,h=-1;for(var d=c<<10;d<c+1<<10;++d){l.c=d;var v=Array.isArray(t)?(t[l.r]||[])[l.c]:t[zr(l)];if(v){if(u<0)u=d;h=d}}if(u<0)continue;++f;a.write_shift(4,u);a.write_shift(4,h)}var p=a.l;a.l=o;a.write_shift(4,f);a.l=p;return a.length>a.l?a.slice(0,a.l):a}function Jb(e,r,t,a){var n=Qb(a,t,r);if(n.length>17||(r["!rows"]||[])[a])Tr(e,"BrtRowHdr",n)}var qb=wt;var em=Bt;function rm(e,r){}function tm(e,r){var t={};e.l+=19;t.name=ct(e,r-19);return t}function am(e,r){if(r==null)r=Br(84+4*e.length);for(var t=0;t<3;++t)r.write_shift(1,0);At({auto:1},r);r.write_shift(-4,-1);r.write_shift(-4,-1);ut(e,r);return r.slice(0,r.l)}function nm(e,r){var t=ot(e);return[t]}function im(e,r,t){if(t==null)t=Br(8);return lt(r,t)}function sm(e,r){var t=ot(e);var a=e.read_shift(1);return[t,a,"b"]}function fm(e,r,t){if(t==null)t=Br(9);lt(r,t);t.write_shift(1,e.v?1:0);return t}function om(e,r){var t=ot(e);var a=e.read_shift(1);return[t,a,"e"]}function lm(e,r){var t=ot(e);var a=e.read_shift(4);return[t,a,"s"]}function cm(e,r,t){if(t==null)t=Br(12);lt(r,t);t.write_shift(4,r.v);return t}function um(e,r){var t=ot(e);var a=Ct(e);return[t,a,"n"]}function hm(e,r,t){if(t==null)t=Br(16);lt(r,t);_t(e.v,t);return t}function dm(e,r){var t=ot(e);var a=gt(e);return[t,a,"n"]}function vm(e,r,t){if(t==null)t=Br(12);lt(r,t);Et(e.v,t);return t}function pm(e,r){var t=ot(e);var a=et(e);return[t,a,"str"]}function bm(e,r,t){if(t==null)t=Br(12+4*e.v.length);lt(r,t);rt(e.v,t);return t.length>t.l?t.slice(0,t.l):t}function mm(e,r,t){var a=e.l+r;var n=ot(e);n.r=t["!row"];var i=e.read_shift(1);var s=[n,i,"b"];if(t.cellFormula){e.l+=2;var f=ob(e,a-e.l,t);s[3]=ib(f,null,n,t.supbooks,t)}else e.l=a;return s}function gm(e,r,t){var a=e.l+r;var n=ot(e);n.r=t["!row"];var i=e.read_shift(1);var s=[n,i,"e"];if(t.cellFormula){e.l+=2;var f=ob(e,a-e.l,t);s[3]=ib(f,null,n,t.supbooks,t)}else e.l=a;return s}function Em(e,r,t){var a=e.l+r;var n=ot(e);n.r=t["!row"];var i=Ct(e);var s=[n,i,"n"];if(t.cellFormula){e.l+=2;var f=ob(e,a-e.l,t);s[3]=ib(f,null,n,t.supbooks,t)}else e.l=a;return s}function km(e,r,t){var a=e.l+r;var n=ot(e);n.r=t["!row"];var i=et(e);var s=[n,i,"str"];if(t.cellFormula){e.l+=2;var f=ob(e,a-e.l,t);s[3]=ib(f,null,n,t.supbooks,t)}else e.l=a;return s}var Sm=wt;var wm=Bt;function Bm(e,r){if(r==null)r=Br(4);r.write_shift(4,e);return r}function Cm(e,r,t){var a=e.l+r;var n=wt(e,16);var i=ht(e);var s=et(e);var f=et(e);var o=et(e);e.l=a;return{rfx:n,relId:i,loc:s,Tooltip:f,display:o}}function _m(e,r,t){if(t==null)t=Br(50+4*e[1].Target.length);Bt({s:Vr(e[0]),e:Vr(e[0])},t);mt("rId"+r,t);var a=e[1].Target.indexOf("#");var n=a==-1?"":e[1].Target.substr(a+1);rt(n||"",t);rt(e[1].Tooltip||"",t);rt("",t);return t.slice(0,t.l)}function Tm(e,r,t){var a=e.l+r;var n=kt(e,16);var i=e.read_shift(1);var s=[n];s[2]=i;if(t.cellFormula){var f=fb(e,a-e.l,t);s[1]=f}else e.l=a;return s}function xm(e,r,t){var a=e.l+r;var n=wt(e,16);var i=[n];if(t.cellFormula){var s=cb(e,a-e.l,t);i[1]=s;e.l=a}else e.l=a;return i}function Im(e,r,t){if(t==null)t=Br(18);var a=wb(e,r);t.write_shift(-4,e);t.write_shift(-4,e);t.write_shift(4,(a.width||10)*256);t.write_shift(4,0);var n=0;if(r.hidden)n|=1;if(typeof a.width=="number")n|=2;t.write_shift(1,n);t.write_shift(1,0);return t}function Am(e,r,t){return{left:Ct(e,8),right:Ct(e,8),top:Ct(e,8),bottom:Ct(e,8),header:Ct(e,8),footer:Ct(e,8)}}function ym(e,r){if(r==null)r=Br(6*8);Bb(e);_t(e.left,r);_t(e.right,r);_t(e.top,r);_t(e.bottom,r);_t(e.header,r);_t(e.footer,r);return r}function Rm(e,r){if(r==null)r=Br(30);r.write_shift(2,924);r.write_shift(4,0);r.write_shift(4,0);r.write_shift(4,0);r.write_shift(1,0);r.write_shift(1,0);r.write_shift(2,0);r.write_shift(2,100);r.write_shift(2,0);r.write_shift(2,0);r.write_shift(2,0);r.write_shift(4,0);return r}function Dm(e,r){if(r==null)r=Br(16*4+2);r.write_shift(2,e.password?mh(e.password):0);r.write_shift(4,1);[["ob
if(f[0].slice(-2)==="/>")break;else if(f[1]==="/")Pa(D,f[3],a.slice(F,f.index));else F=f.index+f[0].length;break;case"Paragraphs":break;case"Styles":;case"Workbook":if(f[1]==="/"){if((u=l.pop())[0]!==f[3])throw new Error("Bad state: "+u.join("|"))}else l.push([f[3],false]);break;case"Comment":if(f[1]==="/"){if((u=l.pop())[0]!==f[3])throw new Error("Bad state: "+u.join("|"));rE(L);N.push(L)}else{l.push([f[3],false]);u=Yg(f[0]);L={a:u.Author}}break;case"AutoFilter":if(f[1]==="/"){if((u=l.pop())[0]!==f[3])throw new Error("Bad state: "+u.join("|"))}else if(f[0].charAt(f[0].length-2)!=="/"){var te=Yg(f[0]);v["!autofilter"]={ref:kv(te.Range).replace(/\$/g,"")};l.push([f[3],true])}break;case"Name":break;case"ComponentOptions":;case"DocumentProperties":;case"CustomDocumentProperties":;case"OfficeDocumentSettings":;case"PivotTable":;case"PivotCache":;case"Names":;case"MapInfo":;case"PageBreaks":;case"QueryTable":;case"DataValidation":;case"Sorting":;case"Schema":;case"data":;case"ConditionalFormatting":;case"SmartTagType":;case"SmartTags":;case"ExcelWorkbook":;case"WorkbookOptions":;case"WorksheetOptions":if(f[1]==="/"){if((u=l.pop())[0]!==f[3])throw new Error("Bad state: "+u.join("|"))}else if(f[0].charAt(f[0].length-2)!=="/")l.push([f[3],true]);break;default:if(l.length==0&&f[3]=="document")return VE(a,t);if(l.length==0&&f[3]=="UOF")return VE(a,t);var ae=true;switch(l[l.length-1][0]){case"OfficeDocumentSettings":switch(f[3]){case"AllowPNG":break;case"RemovePersonalInformation":break;case"DownloadComponents":break;case"LocationOfComponents":break;case"Colors":break;case"Color":break;case"Index":break;case"RGB":break;case"PixelsPerInch":break;case"TargetScreenSize":break;case"ReadOnlyRecommended":break;default:ae=false;}break;case"ComponentOptions":switch(f[3]){case"Toolbar":break;case"HideOfficeLogo":break;case"SpreadsheetAutoFit":break;case"Label":break;case"Caption":break;case"MaxHeight":break;case"MaxWidth":break;case"NextSheetNumber":break;default:ae=false;}break;case"ExcelWorkbook":switch(f[3]){case"Date1904":G.WBProps.date1904=true;break;case"WindowHeight":break;case"WindowWidth":break;case"WindowTopX":break;case"WindowTopY":break;case"TabRatio":break;case"ProtectStructure":break;case"ProtectWindows":break;case"ActiveSheet":break;case"DisplayInkNotes":break;case"FirstVisibleSheet":break;case"SupBook":break;case"SheetName":break;case"SheetIndex":break;case"SheetIndexFirst":break;case"SheetIndexLast":break;case"Dll":break;case"AcceptLabelsInFormulas":break;case"DoNotSaveLinkValues":break;case"Iteration":break;case"MaxIterations":break;case"MaxChange":break;case"Path":break;case"Xct":break;case"Count":break;case"SelectedSheets":break;case"Calculation":break;case"Uncalced":break;case"StartupPrompt":break;case"Crn":break;case"ExternName":break;case"Formula":break;case"ColFirst":break;case"ColLast":break;case"WantAdvise":break;case"Boolean":break;case"Error":break;case"Text":break;case"OLE":break;case"NoAutoRecover":break;case"PublishObjects":break;case"DoNotCalculateBeforeSave":break;case"Number":break;case"RefModeR1C1":break;case"EmbedSaveSmartTags":break;default:ae=false;}break;case"WorkbookOptions":switch(f[3]){case"OWCVersion":break;case"Height":break;case"Width":break;default:ae=false;}break;case"WorksheetOptions":switch(f[3]){case"Visible":if(f[0].slice(-2)==="/>"){}else if(f[1]==="/")switch(a.slice(F,f.index)){case"SheetHidden":j.Hidden=1;break;case"SheetVeryHidden":j.Hidden=2;break;}else F=f.index+f[0].length;break;case"Header":if(!v["!margins"])Bb(v["!margins"]={},"xlml");v["!margins"].header=fe(f[0]).Margin;break;case"Footer":if(!v["!margins"])Bb(v["!margins"]={},"xlml");v["!margins"].footer=fe(f[0]).Margin;break;case"PageMargins":var ne=fe(f[0]);if(!v["!margins"])Bb(v["!margins"]={},"xlml");if(ne.Top)v["!margins"].top=ne.Top;if(ne.Left)v["!margins"].left=ne.Left;if(ne.Right)v["!margins"].right=ne.Right;if(ne.Bottom)v["!margins"].bottom=ne.Bottom;break;case"Unsynced":break;case"Print":break;case"Panes":break;case"Scale":break;case"Pane":break;case"Number":break;case"Layout":break;case"PageSetup":break;case"Selected":
f:kr},42:{n:"BrtIndexBlock",f:kr},43:{n:"BrtFont",f:od},44:{n:"BrtFmt",f:sd},45:{n:"BrtFill",f:hd},46:{n:"BrtBorder",f:md},47:{n:"BrtXF",f:vd},48:{n:"BrtStyle",f:kr},49:{n:"BrtCellMeta",f:kr},50:{n:"BrtValueMeta",f:kr},51:{n:"BrtMdb",f:kr},52:{n:"BrtBeginFmd",f:kr},53:{n:"BrtEndFmd",f:kr},54:{n:"BrtBeginMdx",f:kr},55:{n:"BrtEndMdx",f:kr},56:{n:"BrtBeginMdxTuple",f:kr},57:{n:"BrtEndMdxTuple",f:kr},58:{n:"BrtMdxMbrIstr",f:kr},59:{n:"BrtStr",f:kr},60:{n:"BrtColInfo",f:Ui},62:{n:"BrtCellRString",f:kr},63:{n:"BrtCalcChainItem$",f:qd},64:{n:"BrtDVal",f:kr},65:{n:"BrtSxvcellNum",f:kr},66:{n:"BrtSxvcellStr",f:kr},67:{n:"BrtSxvcellBool",f:kr},68:{n:"BrtSxvcellErr",f:kr},69:{n:"BrtSxvcellDate",f:kr},70:{n:"BrtSxvcellNil",f:kr},128:{n:"BrtFileVersion",f:kr},129:{n:"BrtBeginSheet",f:kr},130:{n:"BrtEndSheet",f:kr},131:{n:"BrtBeginBook",f:kr,p:0},132:{n:"BrtEndBook",f:kr},133:{n:"BrtBeginWsViews",f:kr},134:{n:"BrtEndWsViews",f:kr},135:{n:"BrtBeginBookViews",f:kr},136:{n:"BrtEndBookViews",f:kr},137:{n:"BrtBeginWsView",f:kr},138:{n:"BrtEndWsView",f:kr},139:{n:"BrtBeginCsViews",f:kr},140:{n:"BrtEndCsViews",f:kr},141:{n:"BrtBeginCsView",f:kr},142:{n:"BrtEndCsView",f:kr},143:{n:"BrtBeginBundleShs",f:kr},144:{n:"BrtEndBundleShs",f:kr},145:{n:"BrtBeginSheetData",f:kr},146:{n:"BrtEndSheetData",f:kr},147:{n:"BrtWsProp",f:tm},148:{n:"BrtWsDim",f:qb,p:16},151:{n:"BrtPane",f:kr},152:{n:"BrtSel",f:kr},153:{n:"BrtWbProp",f:mg},154:{n:"BrtWbFactoid",f:kr},155:{n:"BrtFileRecover",f:kr},156:{n:"BrtBundleSh",f:pg},157:{n:"BrtCalcProp",f:kr},158:{n:"BrtBookView",f:kr},159:{n:"BrtBeginSst",f:Zu},160:{n:"BrtEndSst",f:kr},161:{n:"BrtBeginAFilter",f:wt},162:{n:"BrtEndAFilter",f:kr},163:{n:"BrtBeginFilterColumn",f:kr},164:{n:"BrtEndFilterColumn",f:kr},165:{n:"BrtBeginFilters",f:kr},166:{n:"BrtEndFilters",f:kr},167:{n:"BrtFilter",f:kr},168:{n:"BrtColorFilter",f:kr},169:{n:"BrtIconFilter",f:kr},170:{n:"BrtTop10Filter",f:kr},171:{n:"BrtDynamicFilter",f:kr},172:{n:"BrtBeginCustomFilters",f:kr},173:{n:"BrtEndCustomFilters",f:kr},174:{n:"BrtCustomFilter",f:kr},175:{n:"BrtAFilterDateGroupItem",f:kr},176:{n:"BrtMergeCell",f:Sm},177:{n:"BrtBeginMergeCells",f:kr},178:{n:"BrtEndMergeCells",f:kr},179:{n:"BrtBeginPivotCacheDef",f:kr},180:{n:"BrtEndPivotCacheDef",f:kr},181:{n:"BrtBeginPCDFields",f:kr},182:{n:"BrtEndPCDFields",f:kr},183:{n:"BrtBeginPCDField",f:kr},184:{n:"BrtEndPCDField",f:kr},185:{n:"BrtBeginPCDSource",f:kr},186:{n:"BrtEndPCDSource",f:kr},187:{n:"BrtBeginPCDSRange",f:kr},188:{n:"BrtEndPCDSRange",f:kr},189:{n:"BrtBeginPCDFAtbl",f:kr},190:{n:"BrtEndPCDFAtbl",f:kr},191:{n:"BrtBeginPCDIRun",f:kr},192:{n:"BrtEndPCDIRun",f:kr},193:{n:"BrtBeginPivotCacheRecords",f:kr},194:{n:"BrtEndPivotCacheRecords",f:kr},195:{n:"BrtBeginPCDHierarchies",f:kr},196:{n:"BrtEndPCDHierarchies",f:kr},197:{n:"BrtBeginPCDHierarchy",f:kr},198:{n:"BrtEndPCDHierarchy",f:kr},199:{n:"BrtBeginPCDHFieldsUsage",f:kr},200:{n:"BrtEndPCDHFieldsUsage",f:kr},201:{n:"BrtBeginExtConnection",f:kr},202:{n:"BrtEndExtConnection",f:kr},203:{n:"BrtBeginECDbProps",f:kr},204:{n:"BrtEndECDbProps",f:kr},205:{n:"BrtBeginECOlapProps",f:kr},206:{n:"BrtEndECOlapProps",f:kr},207:{n:"BrtBeginPCDSConsol",f:kr},208:{n:"BrtEndPCDSConsol",f:kr},209:{n:"BrtBeginPCDSCPages",f:kr},210:{n:"BrtEndPCDSCPages",f:kr},211:{n:"BrtBeginPCDSCPage",f:kr},212:{n:"BrtEndPCDSCPage",f:kr},213:{n:"BrtBeginPCDSCPItem",f:kr},214:{n:"BrtEndPCDSCPItem",f:kr},215:{n:"BrtBeginPCDSCSets",f:kr},216:{n:"BrtEndPCDSCSets",f:kr},217:{n:"BrtBeginPCDSCSet",f:kr},218:{n:"BrtEndPCDSCSet",f:kr},219:{n:"BrtBeginPCDFGroup",f:kr},220:{n:"BrtEndPCDFGroup",f:kr},221:{n:"BrtBeginPCDFGItems",f:kr},222:{n:"BrtEndPCDFGItems",f:kr},223:{n:"BrtBeginPCDFGRange",f:kr},224:{n:"BrtEndPCDFGRange",f:kr},225:{n:"BrtBeginPCDFGDiscrete",f:kr},226:{n:"BrtEndPCDFGDiscrete",f:kr},227:{n:"BrtBeginPCDSDTupleCache",f:kr},228:{n:"BrtEndPCDSDTupleCache",f:kr},229:{n:"BrtBeginPCDSDTCEntries",f:kr},230:{n:"BrtEndPCDSDTCEntries",f:kr},231:{n:"BrtBeginPCDSDTCEMembers",f:kr},232:{n:"BrtEndPCDSDTCEMembers",f:kr},233:{n:"BrtBeginPCDSDTCEMember",f:kr},234:{n:"BrtEndPCDSDTCEMember",f:kr},2
f:sc},2200:{n:"FnGrp12",f:fc},2201:{n:"NameFnGrp12",f:oc},2202:{n:"MTRSettings",f:_i,r:12},2203:{n:"CompressPictures",f:Yn},2204:{n:"HeaderFooter",f:lc},2205:{n:"CrtLayout12",f:cc},2206:{n:"CrtMlFrt",f:uc},2207:{n:"CrtMlFrtContinue",f:hc},2211:{n:"ForceFullCalculation",f:Kn},2212:{n:"ShapePropsStream",f:dc},2213:{n:"TextPropsStream",f:vc},2214:{n:"RichTextStream",f:pc},2215:{n:"CrtLayout12A",f:bc},4097:{n:"Units",f:mc},4098:{n:"Chart",f:gc},4099:{n:"Series",f:Ec},4102:{n:"DataFormat",f:kc},4103:{n:"LineFormat",f:Sc},4105:{n:"MarkerFormat",f:wc},4106:{n:"AreaFormat",f:Bc},4107:{n:"PieFormat",f:Cc},4108:{n:"AttachedLabel",f:_c},4109:{n:"SeriesText",f:Tc},4116:{n:"ChartFormat",f:xc},4117:{n:"Legend",f:Ic},4118:{n:"SeriesList",f:Ac},4119:{n:"Bar",f:yc},4120:{n:"Line",f:Rc},4121:{n:"Pie",f:Dc},4122:{n:"Area",f:Oc},4123:{n:"Scatter",f:Fc},4124:{n:"CrtLine",f:Pc},4125:{n:"Axis",f:Nc},4126:{n:"Tick",f:Lc},4127:{n:"ValueRange",f:Mc},4128:{n:"CatSerRange",f:Uc},4129:{n:"AxisLine",f:Hc},4130:{n:"CrtLink",f:Wc},4132:{n:"DefaultText",f:Vc},4133:{n:"Text",f:zc},4134:{n:"FontX",f:us},4135:{n:"ObjectLink",f:Xc},4146:{n:"Frame",f:Gc},4147:{n:"Begin",f:jc},4148:{n:"End",f:Kc},4149:{n:"PlotArea",f:Yc},4154:{n:"Chart3d",f:$c},4156:{n:"PicF",f:Zc},4157:{n:"DropBar",f:Qc},4158:{n:"Radar",f:Jc},4159:{n:"Surf",f:qc},4160:{n:"RadarArea",f:eu},4161:{n:"AxisParent",f:ru},4163:{n:"LegendException",f:tu},4164:{n:"ShtProps",f:Wi},4165:{n:"SerToCrt",f:au},4166:{n:"AxesUsed",f:nu},4168:{n:"SBaseRef",f:iu},4170:{n:"SerParent",f:su},4171:{n:"SerAuxTrend",f:fu},4174:{n:"IFmtRecord",f:ou},4175:{n:"Pos",f:lu},4176:{n:"AlRuns",f:cu},4177:{n:"BRAI",f:uu},4187:{n:"SerAuxErrBar",f:hu},4188:{n:"ClrtClient",f:Ni},4189:{n:"SerFmt",f:du},4191:{n:"Chart3DBarShape",f:vu},4192:{n:"Fbi",f:pu},4193:{n:"BopPop",f:bu},4194:{n:"AxcExt",f:mu},4195:{n:"Dat",f:gu},4196:{n:"PlotGrowth",f:Eu},4197:{n:"SIIndex",f:ku},4198:{n:"GelFrame",f:Su},4199:{n:"BopPopCustom",f:wu},4200:{n:"Fbi2",f:Bu},0:{n:"Dimensions",f:ai},2:{n:"BIFF2INT",f:Iu},5:{n:"BoolErr",f:hi},7:{n:"String",f:Au},8:{n:"BIFF2ROW",f:kr},11:{n:"Index",f:Ko},22:{n:"ExternCount",f:Si},30:{n:"BIFF2FORMAT",f:ti},31:{n:"BIFF2FMTCNT",f:kr},32:{n:"BIFF2COLINFO",f:kr},33:{n:"Array",f:Ci},37:{n:"DefaultRowHeight",f:Zn},50:{n:"BIFF2FONTXTRA",f:yu},62:{n:"BIFF2WINDOW2",f:kr},69:{n:"BIFF2FONTCLR",f:kr},86:{n:"BIFF4FMTCNT",f:kr},126:{n:"RK",f:kr},127:{n:"ImData",f:Cu},135:{n:"Addin",f:kr},136:{n:"Edg",f:kr},137:{n:"Pub",f:kr},145:{n:"Sub",f:kr},148:{n:"LHRecord",f:kr},149:{n:"LHNGraph",f:kr},150:{n:"Sound",f:kr},169:{n:"CoordList",f:kr},171:{n:"GCW",f:kr},188:{n:"ShrFmla",f:kr},194:{n:"AddMenu",f:kr},195:{n:"DelMenu",f:kr},214:{n:"RString",f:Ru},223:{n:"UDDesc",f:kr},234:{n:"TabIdConf",f:kr},354:{n:"XL5Modify",f:kr},421:{n:"FileSharing2",f:kr},521:{n:"BOF",f:Hn},536:{n:"Lbl",f:gi},547:{n:"ExternName",f:bi},561:{n:"Font",f:kr},1033:{n:"BOF",f:Hn},2157:{n:"FeatInfo",f:kr},2163:{n:"FeatInfo11",f:kr},2177:{n:"SXAddl12",f:kr},2240:{n:"AutoWebPub",f:kr},2241:{n:"ListObj",f:kr},2242:{n:"ListField",f:kr},2243:{n:"ListDV",f:kr},2244:{n:"ListCondFmt",f:kr},2245:{n:"ListCF",f:kr},2246:{n:"FMQry",f:kr},2247:{n:"FMSQry",f:kr},2248:{n:"PLV",f:kr},2249:{n:"LnExt",f:kr},2250:{n:"MkrExt",f:kr},2251:{n:"CrtCoopt",f:kr},67:{n:"BIFF2XF",f:kr},579:{n:"BIFF3XF",f:kr},1091:{n:"BIFF4XF",f:kr},29282:{}};function xE(e,r,t,a){var n=a||(t||[]).length;var i=e.next(4+n);i.write_shift(2,r);i.write_shift(2,n);if(n>0&&ir(t))e.push(t)}function IE(e,r){if(r.bookType!="biff2")throw"unsupported BIFF version";var t=Br(4);t.write_shift(2,2);t.write_shift(2,16);return t}function AE(e,r,t){if(!e)e=Br(7);e.write_shift(2,r);e.write_shift(2,t);e.write_shift(1,0);e.write_shift(1,0);e.write_shift(1,0);return e}function yE(e,r,t){var a=Br(9);AE(a,e,r);a.write_shift(2,t);return a}function RE(e,r,t){var a=Br(15);AE(a,e,r);a.write_shift(8,t,"f");return a}function DE(e,r,t,a){var n=Br(9);AE(n,e,r);if(a=="e"){n.write_shift(1,t);n.write_shift(1,1)}else{n.write_shift(1,t?1:0);n.write_shift(1,0)}return n}function OE(e,r,t){var a=Br(8+2*t.length);AE(a,e,r);a.write_shift(1,t.length);a.w
case"base64":t=new ee(a,{base64:true});break;case"binary":;case"array":t=new ee(a,{base64:false});break;case"buffer":t=new ee(a);break;default:throw new Error("Unrecognized type "+n.type);}return fk(t,n)}function dk(e,r){var t=0;e:while(t<e.length)switch(e.charCodeAt(t)){case 10:;case 13:;case 32:++t;break;case 60:return sE(e.slice(t),r);default:break e;}return Pu.to_workbook(e,r)}function vk(e,r){var t="",a=ck(e,r);switch(r.type){case"base64":t=h.decode(e);break;case"binary":t=e;break;case"buffer":t=e.toString("binary");break;case"array":t=W(e);break;default:throw new Error("Unrecognized type "+r.type);}if(a[0]==239&&a[1]==187&&a[2]==191)t=Se(t);return dk(t,r)}function pk(e,r){var t=e;if(r.type=="base64")t=h.decode(t);t=cptable.utils.decode(1200,t.slice(2),"str");r.type="binary";return dk(t,r)}function bk(e,r){var t,a=e,n=[0];var i=r||{};kb={};if(i.dateNF)kb.dateNF=i.dateNF;if(!i.type)i.type=d&&Buffer.isBuffer(e)?"buffer":"base64";if(i.type=="file"){i.type="buffer";a=q.readFileSync(e)}switch((n=ck(a,i))[0]){case 208:return uk(T.read(a,i),i);case 9:return BE(p(i.type==="base64"?h.decode(a):a),i);case 60:return sE(a,i);case 73:if(n[1]==68)return Nu(a,i);break;case 84:if(n[1]==65&&n[2]==66&&n[3]==76)return Fu.to_workbook(a,i);break;case 80:if(n[1]==75&&n[2]<32&&n[3]<32)return hk(a,i);break;case 239:return n[3]==60?sE(a,i):Pu.to_workbook(a,i);case 255:if(n[1]==254){return pk(a,i)}break;case 0:if(n[1]==0&&n[2]>=2&&n[3]==0)return Lu.to_workbook(a,i);break;case 3:;case 131:;case 139:return Du.to_workbook(a,i);case 123:if(n[1]==92&&n[2]==114&&n[3]==116)return Ch.to_workbook(a,i);break;case 10:;case 13:;case 32:return vk(a,i);}if(n[2]<=12&&n[3]<=31)return Du.to_workbook(a,i);if(32>n[0]||n[0]>127)throw new Error("Unsupported file "+n.join("|"));return Pu.to_workbook(a,i)}function mk(e,r){var t=r||{};t.type="file";return bk(e,t)}function gk(e,r){var t=r||{};var a=lk(e,t);var n={};if(t.compression)n.compression="DEFLATE";switch(t.type){case"base64":n.type="base64";break;case"binary":n.type="string";break;case"buffer":;case"file":n.type="nodebuffer";break;default:throw new Error("Unrecognized type "+t.type);}if(t.type==="file")return q.writeFileSync(t.file,a.generate(n));return a.generate(n)}function Ek(e,r){switch(r.type){case"base64":return h.encode(e);case"binary":return e;case"file":return q.writeFileSync(r.file,e,"binary");case"buffer":{if(d)return new Buffer(e,"binary");else return e.split("").map(function(e){return e.charCodeAt(0)})};}throw new Error("Unrecognized type "+r.type)}function kk(e,r){switch(r.type){case"base64":return h.encode(e);case"binary":return e;case"file":return q.writeFileSync(r.file,e,"utf8");case"buffer":{if(d)return new Buffer(e,"utf8");else return e.split("").map(function(e){return e.charCodeAt(0)})};}throw new Error("Unrecognized type "+r.type)}function Sk(e,r){switch(r.type){case"base64":;case"binary":var t="";for(var a=0;a<e.length;++a)t+=String.fromCharCode(e[a]);return r.type=="base64"?h.encode(t):t;case"file":return q.writeFileSync(r.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+r.type);}}function wk(e,r){cg(e);var t=r||{};switch(t.bookType||"xlsb"){case"xml":;case"xlml":return kk(bE(e,t),t);case"slk":;case"sylk":return kk($E(e,t),t);case"html":return kk(KE(e,t),t);case"txt":return Ek(qE(e,t),t);case"csv":return kk(YE(e,t),t);case"dif":return kk(ZE(e,t),t);case"prn":return kk(QE(e,t),t);case"rtf":return kk(JE(e,t),t);case"fods":return kk(GE(e,t),t);case"biff2":return Sk(NE(e,t),t);case"xlsx":;case"xlsm":;case"xlsb":;case"ods":return gk(e,t);default:throw new Error("Unrecognized bookType |"+t.bookType+"|");}}function Bk(e){if(!e.bookType)switch(e.file.slice(e.file.lastIndexOf(".")).toLowerCase()){case".xlsx":e.bookType="xlsx";break;case".xlsm":e.bookType="xlsm";break;case".xlsb":e.bookType="xlsb";break;case".fods":e.bookType="fods";break;case".xlml":e.bookType="xlml";break;case".sylk":e.bookType="sylk";break;case".html":e.bookType="html";break;case".xls":e.bookType="biff2";break;case".xml":e.bookType="xml";break;case".ods":e.bookType="ods";break;case".csv":e.bookType=