sheetjs/dist/xlsx.min.js

14 lines
361 KiB
JavaScript
Raw Normal View History

/* xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
var DO_NOT_EXPORT_CODEPAGE=true;var DO_NOT_EXPORT_JSZIP=true;var XLSX={};(function e(r){r.version="0.11.16";var t=1200,a=1252;if(typeof module!=="undefined"&&typeof require!=="undefined"){if(typeof cptable==="undefined")global.cptable=undefined}var n=[874,932,936,949,950];for(var i=0;i<=8;++i)n.push(1250+i);var s={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 l=function(e){if(n.indexOf(e)==-1)return;a=s[0]=e};function f(){l(1252)}var c=function(e){t=e;l(e)};function o(){c(1200);f()}function u(e){var r=[];for(var t=0,a=e.length;t<a;++t)r[t]=e.charCodeAt(t);return r}function h(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 d(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 v=function(e){var r=e.charCodeAt(0),t=e.charCodeAt(1);if(r==255&&t==254)return h(e.substr(2));if(r==254&&t==255)return d(e.substr(2));if(r==65279)return e.substr(1);return e};var b=function Rp(e){return String.fromCharCode(e)};if(typeof cptable!=="undefined"){c=function(e){t=e};v=function(e){if(e.charCodeAt(0)===255&&e.charCodeAt(1)===254){return cptable.utils.decode(1200,u(e.substr(2)))}return e};b=function _p(e){if(t===1200)return String.fromCharCode(e);return cptable.utils.decode(t,[e&255,e>>8])[0]}}var p=null;var m=true;var g=function Dp(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{encode:function(r){var t="";var a=0,n=0,i=0,s=0,l=0,f=0,c=0;for(var o=0;o<r.length;){a=r.charCodeAt(o++);n=r.charCodeAt(o++);i=r.charCodeAt(o++);s=a>>2;l=(a&3)<<4|n>>4;f=(n&15)<<2|i>>6;c=i&63;if(isNaN(n)){f=c=64}else if(isNaN(i)){c=64}t+=e.charAt(s)+e.charAt(l)+e.charAt(f)+e.charAt(c)}return t},decode:function r(t){var a="";var n=0,i=0,s=0;var l=0,f=0,c=0,o=0;t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var u=0;u<t.length;){l=e.indexOf(t.charAt(u++));f=e.indexOf(t.charAt(u++));c=e.indexOf(t.charAt(u++));o=e.indexOf(t.charAt(u++));n=l<<2|f>>4;i=(f&15)<<4|c>>2;s=(c&3)<<6|o;a+=String.fromCharCode(n);if(c!==64){a+=String.fromCharCode(i)}if(o!==64){a+=String.fromCharCode(s)}}return a}}}();var E=typeof Buffer!=="undefined"&&typeof process!=="undefined"&&typeof process.versions!=="undefined"&&process.versions.node;function S(e){return new(E?Buffer:Array)(e)}function k(e){if(E)return new Buffer(e,"binary");return e.split("").map(function(e){return e.charCodeAt(0)&255})}function w(e){if(typeof ArrayBuffer==="undefined")return k(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 B(e){if(Array.isArray(e))return e.map(Dv).join("");var r=[];for(var t=0;t<e.length;++t)r[t]=Dv(e[t]);return r.join("")}var C=function(e){return[].concat.apply([],e)};var T=/\u0000/g,I=/[\u0001-\u0006]/g;var x={};var A=function Fp(e){e.version="0.10.0";function r(e){var r="",t=e.length-1;while(t>=0)r+=e.charAt(t--);return r}function t(e,r){var t="";while(t.length<r)t+=e;return t}function a(e,r){var a=""+e;return a.length>=r?a:t("0",r-a.length)+a}function n(e,r){var a=""+e;return a.length>=r?a:t(" ",r-a.length)+a}function i(e,r){var a=""+e;return a.length>=r?a:a+t(" ",r-a.length)}function s(e,r){var a=""+Math.round(e);return a.length>=r?a:t("0",r-a.length)+a}function l(e,r){var a=""+e;return a.length>=r?a:t("0",r-a.length)+a}var f=Math.pow(2,32);function c(e,r){if(e>f||e<-f)return s(e,r);var t=Math.round(e);return l(t,r)}function o(e,r){r=r||0;return e.length>=7+r&&(e.charCodeAt(r)|32)===103&&(e.charCodeAt(r+1)|32)===101&&(e.charCodeAt(r+2)|32)===110&&(e.charCodeAt(r+3)|32)===101&&(e.charCodeAt(r+4)|32)===114&&(e.charCodeAt(r+5)|32)===97&&(e.charCodeAt(r+6)|32)===108}var u=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]];var h=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May
}else if(g.size>=4096){g.storage="fat";if(r[g.start]===undefined)r[g.start]=d(t,g.start,r.fat_addrs,r.ssz);r[g.start].name=g.name;g.content=r[g.start].data.slice(0,g.size);Or(g.content,0)}else{g.storage="minifat";if(f!==_&&g.start!==_&&r[f]){g.content=u(g,r[f].data,(r[l]||{}).data);Or(g.content,0)}}i[b]=g;s.push(g)}}function p(e,r){return new Date((wr(e,r+4)/1e7*Math.pow(2,32)+wr(e,r)/1e7-11644473600)*1e3)}function m(e,r){i();return s(n.readFileSync(e),r)}function E(e,r){switch(r&&r.type||"base64"){case"file":return m(e,r);case"base64":return s(k(g.decode(e)),r);case"binary":return s(k(e),r);}return s(e,r)}function S(e,r){var t=r||{},a=t.root||"Root Entry";if(!e.FullPaths)e.FullPaths=[];if(!e.FileIndex)e.FileIndex=[];if(e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");if(e.FullPaths.length===0){e.FullPaths[0]=a+"/";e.FileIndex[0]={name:a,type:5}}if(t.CLSID)e.FileIndex[0].clsid=t.CLSID;w(e)}function w(e){var r="Sh33tJ5";if(P.find(e,"/"+r))return;var t=yr(4);t[0]=55;t[1]=t[3]=50;t[2]=54;e.FileIndex.push({name:r,type:2,content:t,size:4,L:69,R:69,C:69});e.FullPaths.push(e.FullPaths[0]+r);B(e)}function B(e,n){S(e);var i=false,s=false;for(var l=e.FullPaths.length-1;l>=0;--l){var f=e.FileIndex[l];switch(f.type){case 0:if(s)i=true;else{e.FileIndex.pop();e.FullPaths.pop()}break;case 1:;case 2:;case 5:s=true;if(isNaN(f.R*f.L*f.C))i=true;if(f.R>-1&&f.L>-1&&f.R==f.L)i=true;break;default:i=true;break;}}if(!i&&!n)return;var c=new Date(1987,1,19),o=0;var u=[];for(l=0;l<e.FullPaths.length;++l){if(e.FileIndex[l].type===0)continue;u.push([e.FullPaths[l],e.FileIndex[l]])}for(l=0;l<u.length;++l){var h=t(u[l][0]);s=false;for(o=0;o<u.length;++o)if(u[o][0]===h)s=true;if(!s)u.push([h,{name:a(h).replace("/",""),type:1,clsid:O,ct:c,mt:c,content:null}])}u.sort(function(e,t){return r(e[0],t[0])});e.FullPaths=[];e.FileIndex=[];for(l=0;l<u.length;++l){e.FullPaths[l]=u[l][0];e.FileIndex[l]=u[l][1]}for(l=0;l<u.length;++l){var d=e.FileIndex[l];var v=e.FullPaths[l];d.name=a(v).replace("/","");d.L=d.R=d.C=-(d.color=1);d.size=d.content?d.content.length:0;d.start=0;d.clsid=d.clsid||O;if(l===0){d.C=u.length>1?1:-1;d.size=0;d.type=5}else if(v.slice(-1)=="/"){for(o=l+1;o<u.length;++o)if(t(e.FullPaths[o])==v)break;d.C=o>=u.length?-1:o;for(o=l+1;o<u.length;++o)if(t(e.FullPaths[o])==t(v))break;d.R=o>=u.length?-1:o;d.type=1}else{if(t(e.FullPaths[l+1]||"")==t(v))d.R=l+1;d.type=2}}}function x(e,r){B(e);var t=function(e){var r=0,t=0;for(var a=0;a<e.FileIndex.length;++a){var n=e.FileIndex[a];if(!n.content)continue;var i=n.content.length;if(i===0){}else if(i<4096)r+=i+63>>6;else t+=i+511>>9}var s=e.FullPaths.length+3>>2;var l=r+7>>3;var f=r+127>>7;var c=l+t+s+f;var o=c+127>>7;var u=o<=109?0:Math.ceil((o-109)/127);while(c+o+u+127>>7>o)u=++o<=109?0:Math.ceil((o-109)/127);var h=[1,u,o,f,s,t,r,0];e.FileIndex[0].size=r<<6;h[7]=(e.FileIndex[0].start=h[0]+h[1]+h[2]+h[3]+h[4]+h[5])+(h[6]+7>>3);return h}(e);var a=yr(t[7]<<9);var n=0,i=0;{for(n=0;n<8;++n)a._W(1,F[n]);for(n=0;n<8;++n)a._W(2,0);a._W(2,62);a._W(2,3);a._W(2,65534);a._W(2,9);a._W(2,6);for(n=0;n<3;++n)a._W(2,0);a._W(4,0);a._W(4,t[2]);a._W(4,t[0]+t[1]+t[2]+t[3]-1);a._W(4,0);a._W(4,1<<12);a._W(4,t[3]?t[0]+t[1]+t[2]-1:_);a._W(4,t[3]);a._W(-4,t[1]?t[0]-1:_);a._W(4,t[1]);for(n=0;n<109;++n)a._W(-4,n<t[2]?t[1]+n:-1)}if(t[1]){for(i=0;i<t[1];++i){for(;n<236+i*127;++n)a._W(-4,n<t[2]?t[1]+n:-1);a._W(-4,i===t[1]-1?_:i+1)}}var s=function(e){for(i+=e;n<i-1;++n)a._W(-4,n+1);if(e){++n;a._W(-4,_)}};i=n=0;for(i+=t[1];n<i;++n)a._W(-4,y.DIFSECT);for(i+=t[2];n<i;++n)a._W(-4,y.FATSECT);s(t[3]);s(t[4]);var l=0,f=0;var c=e.FileIndex[0];for(;l<e.FileIndex.length;++l){c=e.FileIndex[l];if(!c.content)continue;f=c.content.length;if(f<4096)continue;c.start=i;s(f+511>>9)}s(t[6]+7>>3);while(a.l&511)a._W(-4,y.ENDOFCHAIN);i=n=0;for(l=0;l<e.FileIndex.length;++l){c=e.FileIndex[l];if(!c.content)continue;f=c.content.length;if(!f||f>=4096)continue;c.start=i;s(f+63>>6)}while(a.l&511)a._W(-4,y.ENDOFCHAIN);for(n=0;n<t[4]<<2;++n){var o=e.FullPaths[n];if(!o||o.length===0){for(l=0;l<17;++l)a._W(4,0);for(l=0;l<3;++l)a._W(4,-
ich:0,ifnt:0}];e.l=t+r;return s}function mt(e,r){var t=false;if(r==null){t=true;r=yr(15+4*e.t.length)}r._W(1,0);dt(e.t,r);return t?r.slice(0,r.l):r}var gt=pt;function Et(e,r){var t=false;if(r==null){t=true;r=yr(23+4*e.t.length)}r._W(1,1);dt(e.t,r);r._W(4,1);bt({ich:0,ifnt:0},r);return t?r.slice(0,r.l):r}function St(e){var r=e._R(4);var t=e._R(2);t+=e._R(1)<<16;var a=e._R(1);return{c:r,iStyleRef:t}}function kt(e,r){if(r==null)r=yr(8);r._W(-4,e.c);r._W(3,e.iStyleRef||e.s);r._W(1,0);return r}var wt=ht;var Bt=dt;function Ct(e){var r=e._R(4);return r===0||r===4294967295?"":e._R(r,"dbcs")}function Tt(e,r){var t=false;if(r==null){t=true;r=yr(127)}r._W(4,e.length>0?e.length:4294967295);if(e.length>0)r._W(0,e,"dbcs");return t?r.slice(0,r.l):r}var It=ht;var xt=dt;var At=Ct;var Rt=Tt;function _t(e){var r=e.slice(e.l,e.l+4);var t=r[0]&1,a=r[0]&2;e.l+=4;r[0]&=252;var n=a===0?pr([0,0,0,0,r[0],r[1],r[2],r[3]],0):Br(r,0)>>2;return t?n/100:n}function Dt(e,r){if(r==null)r=yr(4);var t=0,a=0,n=e*100;if(e==(e|0)&&e>=-(1<<29)&&e<1<<29){a=1}else if(n==(n|0)&&n>=-(1<<29)&&n<1<<29){a=1;t=1}if(a)r._W(-4,((t?n:e)<<2)+(t+2));else throw new Error("unsupported RkNumber "+e)}function Ft(e){var r={s:{},e:{}};r.s.r=e._R(4);r.e.r=e._R(4);r.s.c=e._R(4);r.e.c=e._R(4);return r}function Ot(e,r){if(!r)r=yr(16);r._W(4,e.s.r);r._W(4,e.e.r);r._W(4,e.s.c);r._W(4,e.e.c);return r}var Pt=Ft;var yt=Ot;function Nt(e,r){return e._R(8,"f")}function Lt(e,r){return(r||yr(8))._W(8,e,"f")}var Mt={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"};var Ut=M(Mt);function Wt(e,r){var t={};var a=e._R(1);var n=a&1;var i=a>>>1;var s=e._R(1);var l=e._R(2,"i");var f=e._R(1);var c=e._R(1);var o=e._R(1);var u=e._R(1);switch(i){case 0:t.auto=1;break;case 1:t.index=s;var h=ha[s];if(h)t.rgb=_l(h);break;case 2:t.rgb=_l([f,c,o]);break;case 3:t.theme=s;break;}if(l!=0)t.tint=l>0?l/32767:l/32768;return t}function Vt(e,r){if(!r)r=yr(8);if(!e||e.auto){r._W(4,0);r._W(4,0);return r}if(e.index){r._W(1,2);r._W(1,e.index)}else if(e.theme){r._W(1,6);r._W(1,e.theme)}else{r._W(1,5);r._W(1,0)}var t=e.tint||0;if(t>0)t*=32767;else if(t<0)t*=32768;r._W(2,t);if(!e.rgb){r._W(2,0);r._W(1,0);r._W(1,0)}else{var a=e.rgb||"FFFFFF";r._W(1,parseInt(a.substr(0,2),16));r._W(1,parseInt(a.substr(2,2),16));r._W(1,parseInt(a.substr(4,2),16));r._W(1,255)}return r}function Ht(e,r,t){var a=e._R(1);e.l++;var n={fItalic:a&2,fStrikeout:a&8,fOutline:a&16,fShadow:a&32,fCondense:a&64,fExtend:a&128};return n}function Xt(e,r){if(!r)r=yr(2);var t=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);r._W(1,t);r._W(1,0);return r}function Gt(e,r){var t={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"};var a=e._R(4);switch(a){case 0:return"";case 4294967295:;case 4294967294:return t[e._R(4)]||"";}if(a>400)throw new Error("Unsupported Clipboard: "+a.toString(16));e.l-=4;return e._R(0,r==1?"lpstr":"lpwstr")}function zt(e){return Gt(e,1)}function jt(e){return Gt(e,2)}var Kt=2;var Yt=3;var $t=11;var Qt=12;var Jt=19;var Zt=21;var qt=30;var ea=64;var ra=71;var ta=4096;var aa=80;var na=81;var ia=[aa,na];var sa={1:{n:"CodePage",t:Kt},2:{n:"Category",t:aa},3:{n:"PresentationFormat",t:aa},4:{n:"ByteCount",t:Yt},5:{n:"LineCount",t:Yt},6:{n:"ParagraphCount",t:Yt},7:{n:"SlideCount",t:Yt},8:{n:"NoteCount",t:Yt},9:{n:"HiddenCount",t:Yt},10:{n:"MultimediaClipCount",t:Yt},11:{n:"Scale",t:$t},12:{n:"HeadingPair",t:ta|Qt},13:{n:"DocParts",t:ta|qt},14:{n:"Manager",t:aa},15:{n:"Company",t:aa},16:{n:"LinksDirty",t:$t},17:{n:"CharacterCount",t:Yt},19:{n:"SharedDoc",t:$t},22:{n:"HLinksChanged",t:$t},23:{n:"AppVersion",t:Yt,p:"version"},26:{n:"ContentType",t:aa},27:{n:"ContentStatus",t:aa},28:{n:"Language",t:aa},29:{n:"Version",t:aa},255:{}};var la={1:{n:"CodePage",t:Kt},2:{n:"Title",t:aa},3:{n:"Subject",t:aa},4:{n:"Author",t:aa},5:{n:"Keywords",t:aa},6:{n:"Comments",t:aa},7:{n:"Template",t:aa},8:{n:"LastAuthor",t:aa},9:{n:"RevNumber",t:aa},10:{n:"EditTime",t:ea},11:{n:"LastPrinted",t:ea},12:{n:"CreatedDate",t:ea},13:{n:"ModifiedDate",t:ea},14:{n:"Pag
if(e._R(2)!=57005)throw new Error("Bad FileMoniker");var i=e._R(4);if(i===0)return a.replace(/\\/g,"/");var s=e._R(4);if(e._R(2)!=3)throw new Error("Bad FileMoniker");var l=e._R(s>>1,"utf16le").replace(T,"");return l}function Ln(e,r){var t=e._R(16);r-=16;switch(t){case"e0c9ea79f9bace118c8200aa004ba90b":return yn(e,r);case"0303000000000000c000000000000046":return Nn(e,r);default:throw new Error("Unsupported Moniker "+t);}}function Mn(e,r){var t=e._R(4);var a=t>0?e._R(t,"utf16le").replace(T,""):"";return a}function Un(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,l,f,c="",o,u;if(n&16)i=Mn(e,t-e.l);if(n&128)s=Mn(e,t-e.l);if((n&257)===257)l=Mn(e,t-e.l);if((n&257)===1)f=Ln(e,t-e.l);if(n&8)c=Mn(e,t-e.l);if(n&32)o=e._R(16);if(n&64)u=qa(e);e.l=t;var h=s||l||f||"";if(h&&c)h+="#"+c;if(!h)h="#"+c;return{Target:h}}function Wn(e){var r=yr(512),t=0;var a=e.Target;var n=a.indexOf("#")>-1?31:23;switch(a.charAt(0)){case"#":n=28;break;case".":n&=~2;break;}r._W(4,2);r._W(4,n);var i=[8,6815827,6619237,4849780,83];for(t=0;t<i.length;++t)r._W(4,i[t]);if(n==28){a=a.slice(1);r._W(4,a.length+1);for(t=0;t<a.length;++t)r._W(2,a.charCodeAt(t));r._W(2,0)}else if(n&2){i="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" ");for(t=0;t<i.length;++t)r._W(1,parseInt(i[t],16));r._W(4,2*(a.length+1));for(t=0;t<a.length;++t)r._W(2,a.charCodeAt(t));r._W(2,0)}else{i="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" ");for(t=0;t<i.length;++t)r._W(1,parseInt(i[t],16));var s=0;while(a.slice(s*3,s*3+3)=="../"||a.slice(s*3,s*3+3)=="..\\")++s;r._W(2,s);r._W(4,a.length+1);for(t=0;t<a.length;++t)r._W(1,a.charCodeAt(t)&255);r._W(1,0);r._W(2,65535);r._W(2,57005);for(t=0;t<6;++t)r._W(4,0)}return r.slice(0,r.l)}function Vn(e,r){var t=e._R(1),a=e._R(1),n=e._R(1),i=e._R(1);return[t,a,n,i]}function Hn(e,r){var t=Vn(e,r);t[3]=0;return t}function Xn(e,r){var t=e._R(2);var a=e._R(2);var n=e._R(2);return{r:t,c:a,ixfe:n}}function Gn(e,r,t,a){if(!a)a=yr(6);a._W(2,e);a._W(2,r);a._W(2,t||0);return a}function zn(e){var r=e._R(2);var t=e._R(2);e.l+=8;return{type:r,flags:t}}function jn(e,r,t){return r===0?"":Fn(e,r,t)}function Kn(e,r,t){var a=t.biff>8?4:2;var n=e._R(a),i=e._R(a,"i"),s=e._R(a,"i");return[n,i,s]}function Yn(e,r){var t=e._R(2);var a=_t(e);return[t,a]}function $n(e,r,t){e.l+=4;r-=4;var a=e.l+r;var n=An(e,r,t);var i=e._R(2);a-=e.l;if(i!==a)throw new Error("Malformed AddinUdf: padding = "+a+" != "+i);e.l+=i;return n}function Qn(e,r){var t=e._R(2);var a=e._R(2);var n=e._R(2);var i=e._R(2);return{s:{c:n,r:t},e:{c:i,r:a}}}function Jn(e,r){if(!r)r=yr(8);r._W(2,e.s.r);r._W(2,e.e.r);r._W(2,e.s.c);r._W(2,e.e.c);return r}function Zn(e,r){var t=e._R(2);var a=e._R(2);var n=e._R(1);var i=e._R(1);return{s:{c:n,r:t},e:{c:i,r:a}}}var qn=Zn;function ei(e,r){e.l+=4;var t=e._R(2);var a=e._R(2);var n=e._R(2);e.l+=12;return[a,t,n]}function ri(e,r){var t={};e.l+=4;e.l+=16;t.fSharedNote=e._R(2);e.l+=4;return t}function ti(e,r){var t={};e.l+=4;e.cf=e._R(2);return t}function ai(e,r){e.l+=2;e.l+=e._R(2)}var ni={0:ai,4:ai,5:ai,6:ai,7:ti,8:ai,9:ai,10:ai,11:ai,12:ai,13:ri,14:ai,15:ai,16:ai,17:ai,18:ai,19:ai,20:ai,21:ei};function ii(e,r,t){var a=e.l+r;var n=[];while(e.l<a){var i=e._R(2);e.l-=2;try{n.push(ni[i](e,a-e.l))}catch(s){e.l=a;return n}}if(e.l!=a)e.l=a;return n}function si(e,r){var t={BIFFVer:0,dt:0};t.BIFFVer=e._R(2);r-=2;if(r>=2){t.dt=e._R(2);e.l-=2}switch(t.BIFFVer){case 1536:;case 1280:;case 2:;case 7:break;default:if(r>6)throw new Error("Unexpected BIFF Ver "+t.BIFFVer);}e._R(r);return t}function li(e,r,t){var a=1536,n=16;switch(t.bookType){case"biff8":break;case"biff5":a=1280;n=8;break;case"biff4":a=4;n=6;break;case"biff3":a=3;n=6;break;case"biff2":a=2;n=4;break;case"xla":break;default:throw new Error("unsupported BIFF version");}var i=yr(n);i._W(2,a);i._W(2,r);if(n>4)i._W(2,29282);if(n>6)i._W(2,1997);if(n>8){i._W(2,49161);i._W(2,1);i._W(2,1798);i._W(2,0)}return i}function fi(e,r){if(r===0)return 1200;var t;if((t=e._R(2))!==1200){}return 1200}function ci(e,r,t){if(t.enc){e.l+=r;return""}var a=e.l;var
n=1}if(t.cellDates){a.t="d";a.v=K(r,n)}else{a.t="n";a.v=H(K(r,n))}if(t.cellText!==false)a.w=x.format(a.z,a.v instanceof Date?H(a.v):a.v);if(!t.cellNF)delete a.z}else{a.t="s";a.v=r}if(a.t=="z"){}else if(t.dense){if(!i[l])i[l]=[];i[l][f]=a}else i[rt({c:f,r:l})]=a;o=u+1;if(s.e.c<f)s.e.c=f;if(s.e.r<l)s.e.r=l;if(v==h)++f;else{f=0;++l}}for(;u<e.length;++u)switch(v=e.charCodeAt(u)){case 34:d=!d;break;case h:;case 10:;case 13:if(!d)m();break;default:break;}if(u-o>0)m();i["!ref"]=it(s);return i}function s(e,t){if(e.slice(0,4)=="sep=")return i(e,t);if(e.indexOf("\t")>=0||e.indexOf(",")>=0||e.indexOf(";")>=0)return i(e,t);return ot(r(e,t),t)}function l(e,r){var t="",a=r.type=="string"?[0,0,0,0]:tp(e,r);switch(r.type){case"base64":t=g.decode(e);break;case"binary":t=e;break;case"buffer":t=e.toString("binary");break;case"array":t=Y(e);break;case"string":t=e;break;default:throw new Error("Unrecognized type "+r.type);}if(a[0]==239&&a[1]==187&&a[2]==191)t=De(t.slice(3));else if((r.type=="binary"||r.type=="buffer")&&typeof cptable!=="undefined"&&r.codepage)t=cptable.utils.decode(r.codepage,cptable.utils.encode(1252,t));if(t.slice(0,19)=="socialcalc:version:")return Us.to_sheet(r.type=="string"?t:De(t),r);return s(t,r)}function f(e,r){return ct(l(e,r),r)}function c(e,r){var t=[];var a=st(e["!ref"]),n;var i=Array.isArray(e);for(var s=a.s.r;s<=a.e.r;++s){var l=[];for(var f=a.s.c;f<=a.e.c;++f){var c=rt({r:s,c:f});n=i?(e[s]||[])[f]:e[c];if(!n||n.v==null){l.push(" ");continue}var o=(n.w||(ft(n),n.w)||"").substr(0,10);while(o.length<10)o+=" ";l.push(o+(f===0?" ":""))}t.push(l.join(""))}return t.join("\n")}return{to_workbook:f,to_sheet:l,from_sheet:c}}();function Vs(e,r){var t=r||{},a=!!t.WTF;t.WTF=true;try{var n=Ls.to_workbook(e,t);t.WTF=a;return n}catch(i){t.WTF=a;if(!i.message.match(/SYLK bad record ID/)&&a)throw i;return Ws.to_workbook(e,r)}}var Hs=function(){function e(e,r,t){if(!e)return;Or(e,e.l||0);var a=t.Enum||E;while(e.l<e.length){var n=e._R(2);var i=a[n]||a[255];var s=e._R(2);var l=e.l+s;var f=(i.f||Pr)(e,s,t);e.l=l;if(r(f,i.n,n))return}}function r(e,r){switch(r.type){case"base64":return t(k(g.decode(e)),r);case"binary":return t(k(e),r);case"buffer":;case"array":return t(e,r);}throw"Unsupported type "+r.type}function t(r,t){if(!r)return r;var a=t||{};if(p!=null&&a.dense==null)a.dense=p;var n=a.dense?[]:{},i="Sheet1",s=0;var l={},f=[i];var c={s:{r:0,c:0},e:{r:0,c:0}};if(r[2]==2)a.Enum=E;else if(r[2]==26)a.Enum=S;else if(r[2]==14){a.Enum=S;a.qpro=true;r.l=0}else throw new Error("Unrecognized LOTUS BOF "+r[2]);e(r,function(e,t,o){if(r[2]==2)switch(o){case 0:a.vers=e;if(e>=4096)a.qpro=true;break;case 6:c=e;break;case 15:if(!a.qpro)e[1].v=e[1].v.substr(1);case 13:;case 14:;case 16:;case 51:if(o==14&&(e[2]&112)==112&&(e[2]&15)>1&&(e[2]&15)<15){e[1].z=a.dateNF||x._table[14];if(a.cellDates){e[1].t="d";e[1].v=X(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[rt(e[0])]=e[1];break;}else switch(o){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"]=it(c);l[i]=n;n=a.dense?[]:{};c={s:{r:0,c:0},e:{r:0,c:0}};s=e[3];i="Sheet"+(s+1);f.push(i)}if(a.dense){if(!n[e[0].r])n[e[0].r]=[];n[e[0].r][e[0].c]=e[1]}else n[rt(e[0])]=e[1];if(c.e.c<e[0].c)c.e.c=e[0].c;if(c.e.r<e[0].r)c.e.r=e[0].r;break;default:break;}},a);n["!ref"]=it(c);l[i]=n;return{SheetNames:f,Sheets:l}}function a(e,r){var t={s:{c:0,r:0},e:{c:0,r:0}};t.s.c=e._R(2);t.s.r=e._R(2);t.e.c=e._R(2);t.e.r=e._R(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._R(1);e.l++;a[0].r=e._R(2);e.l+=2}else{a[2]=e._R(1);a[0].c=e._R(2);a[0].r=e._R(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._R(1);i[1].v=e._R(s,"utf8");return i}if(t.qpro)e.l++;i[1].v=e._R(a-e.l,"cstr");return i}function s(e,r,t){var a=n(e,r,t);a[1].v=e._R(2,"i");return a}function l(e,r,t){var a=n(e,r,t);a[1].v=e._R(8,"f");return a}function f(e,r,t){var a=e.l+r;var i=n(e,r,t);i[1].v=e._R(8,"f");if(t.qpro)e.l=a;else{
}function xf(e,r){if(!r)return;var t=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(e){for(var a=e[0];a<=e[1];++a)if(r[a]!=null)++t});if(t==0)return;Mr(e,"BrtBeginFmts",ut(t));[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(var a=t[0];a<=t[1];++a)if(r[a]!=null)Mr(e,"BrtFmt",hf(a,r[a]))});Mr(e,"BrtEndFmts")}function Af(e,r){var t=1;if(t==0)return;Mr(e,"BrtBeginFonts",ut(t));Mr(e,"BrtFont",vf({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}));Mr(e,"BrtEndFonts")}function Rf(e,r){var t=2;if(t==0)return;Mr(e,"BrtBeginFills",ut(t));Mr(e,"BrtFill",gf({patternType:"none"}));Mr(e,"BrtFill",gf({patternType:"gray125"}));Mr(e,"BrtEndFills")}function _f(e,r){var t=1;if(t==0)return;Mr(e,"BrtBeginBorders",ut(t));Mr(e,"BrtBorder",Bf({}));Mr(e,"BrtEndBorders")}function Df(e,r){var t=1;Mr(e,"BrtBeginCellStyleXFs",ut(t));Mr(e,"BrtXF",Sf({numFmtId:0,fontId:0,fillId:0,borderId:0},65535));Mr(e,"BrtEndCellStyleXFs")}function Ff(e,r){Mr(e,"BrtBeginCellXFs",ut(r.length));r.forEach(function(r){Mr(e,"BrtXF",Sf(r,0))});Mr(e,"BrtEndCellXFs")}function Of(e,r){var t=1;Mr(e,"BrtBeginStyles",ut(1));Mr(e,"BrtStyle",Cf({xfId:0,builtinId:0,name:"Normal"}));Mr(e,"BrtEndStyles")}function Pf(e,r){var t=0;Mr(e,"BrtBeginDXFs",ut(t));Mr(e,"BrtEndDXFs")}function yf(e,r){var t=0;Mr(e,"BrtBeginTableStyles",Tf(t,"TableStyleMedium9","PivotStyleMedium4"));Mr(e,"BrtEndTableStyles")}function Nf(e,r){return}function Lf(e,r){var t=Lr();Mr(t,"BrtBeginStyleSheet");xf(t,e.SSF);Af(t,e);Rf(t,e);_f(t,e);Df(t,e);Ff(t,r.cellXfs);Of(t,e);Pf(t,e);yf(t,e);Nf(t,e);Mr(t,"BrtEndStyleSheet");return t.end()}ka.THEME="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme";function Mf(e,r,t){r.themeElements.clrScheme=[];var a={};(e[0].match(ve)||[]).forEach(function(e){var n=me(e);switch(n[0]){case"<a:clrScheme":;case"</a:clrScheme>":break;case"<a:srgbClr":a.rgb=n.val;break;case"<a:sysClr":a.rgb=n.lastClr;break;case"<a:dk1>":;case"</a:dk1>":;case"<a:lt1>":;case"</a:lt1>":;case"<a:dk2>":;case"</a:dk2>":;case"<a:lt2>":;case"</a:lt2>":;case"<a:accent1>":;case"</a:accent1>":;case"<a:accent2>":;case"</a:accent2>":;case"<a:accent3>":;case"</a:accent3>":;case"<a:accent4>":;case"</a:accent4>":;case"<a:accent5>":;case"</a:accent5>":;case"<a:accent6>":;case"</a:accent6>":;case"<a:hlink>":;case"</a:hlink>":;case"<a:folHlink>":;case"</a:folHlink>":if(n[0].charAt(1)==="/"){r.themeElements.clrScheme.push(a);a={}}else{a.name=n[0].substring(3,n[0].length-1)}break;default:if(t&&t.WTF)throw new Error("Unrecognized "+n[0]+" in clrScheme");}})}function Uf(e,r,t){}function Wf(e,r,t){}var Vf=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/;var Hf=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/;var Xf=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;function Gf(e,r,t){r.themeElements={};var a;[["clrScheme",Vf,Mf],["fontScheme",Hf,Uf],["fmtScheme",Xf,Wf]].forEach(function(n){if(!(a=e.match(n[1])))throw new Error(n[0]+" not found in themeElements");n[2](a,r,t)})}var zf=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function jf(e,r){if(!e||e.length===0)return jf(Kf());var t;var a={};if(!(t=e.match(zf)))throw new Error("themeElements not found in theme");Gf(t[0],a,r);return a}function Kf(e,r){if(r&&r.themeXLSX)return r.themeXLSX;var t=[he];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:srgbC
break;default:n.push(s[1]);}else n.push("")}r.push(n.join(","))}return r.join(";")}var Bu={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Cu(e){if(!e)throw new Error("empty sheet name");if(e.indexOf(" ")>-1)return"'"+e+"'";return e}function Tu(e,r,t){if(!e)return"SH33TJSERR0";if(!e.XTI)return"SH33TJSERR6";var a=e.XTI[r];if(t.biff>8&&!e.XTI[r])return e.SheetNames[r];if(t.biff<8){if(r>1e4)r-=65536;if(r<0)r=-r;return r==0?"":e.XTI[r-1]}if(!a)return"SH33TJSERR1";var n="";if(t.biff>8)switch(e[a[0]][0]){case 357:n=a[1]==-1?"#REF":e.SheetNames[a[1]];return a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 358:if(t.SID!=null)return e.SheetNames[t.SID];return"SH33TJSSAME"+e[a[0]][0];case 355:;default:return"SH33TJSSRC"+e[a[0]][0];}switch(e[a[0]][0][0]){case 1025:n=a[1]==-1?"#REF":e.SheetNames[a[1]]||"SH33TJSERR3";return a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 14849:return"SH33TJSERR8";default:if(!e[a[0]][0][3])return"SH33TJSERR2";n=a[1]==-1?"#REF":e[a[0]][0][3][a[1]]||"SH33TJSERR4";return a[1]==a[2]?n:n+":"+e[a[0]][0][3][a[2]];}}function Iu(e,r,t){return Cu(Tu(e,r,t))}function xu(e,r,t,a,n){var i={s:{c:0,r:0},e:{c:0,r:0}};var s=[],l,f,c,o,u=0,h=0,d,v="";if(!e[0]||!e[0][0])return"";var b=-1,p="";for(var m=0,g=e[0].length;m<g;++m){var E=e[0][m];switch(E[0]){case"PtgUminus":s.push("-"+s.pop());break;case"PtgUplus":s.push("+"+s.pop());break;case"PtgPercent":s.push(s.pop()+"%");break;case"PtgAdd":;case"PtgConcat":;case"PtgDiv":;case"PtgEq":;case"PtgGe":;case"PtgGt":;case"PtgLe":;case"PtgLt":;case"PtgMul":;case"PtgNe":;case"PtgPower":;case"PtgSub":l=s.pop();f=s.pop();if(b>=0){switch(e[0][b][1][0]){case 0:p=Q(" ",e[0][b][1][1]);break;case 1:p=Q("\r",e[0][b][1][1]);break;default:p="";if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][b][1][0]);}f=f+p;b=-1}s.push(f+Bu[E[0]]+l);break;case"PtgIsect":l=s.pop();f=s.pop();s.push(f+" "+l);break;case"PtgUnion":l=s.pop();f=s.pop();s.push(f+","+l);break;case"PtgRange":l=s.pop();f=s.pop();s.push(f+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":c=E[1][0];o=Ur(E[1][1],i,n);s.push(Vr(o));break;case"PtgRefN":c=E[1][0];o=t?Ur(E[1][1],t,n):E[1][1];s.push(Vr(o));break;case"PtgRef3d":c=E[1][0];u=E[1][1];o=Ur(E[1][2],i,n);v=Iu(a,u,n);var S=v;s.push(v+"!"+Vr(o));break;case"PtgFunc":;case"PtgFuncVar":var k=E[1][0],w=E[1][1];if(!k)k=0;var B=k==0?[]:s.slice(-k);s.length-=k;if(w==="User")w=B.shift();s.push(w+"("+B.join(",")+")");break;case"PtgBool":s.push(E[1]?"TRUE":"FALSE");break;case"PtgInt":s.push(E[1]);break;case"PtgNum":s.push(String(E[1]));break;case"PtgStr":s.push('"'+E[1]+'"');break;case"PtgErr":s.push(E[1]);break;case"PtgAreaN":c=E[1][0];d=Wr(E[1][1],i,n);s.push(Hr(d,n));break;case"PtgArea":c=E[1][0];d=Wr(E[1][1],i,n);s.push(Hr(d,n));break;case"PtgArea3d":c=E[1][0];u=E[1][1];d=E[1][2];v=Iu(a,u,n);s.push(v+"!"+Hr(d,n));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgAttrSemi":break;case"PtgName":h=E[1][2];var C=(a.names||[])[h-1]||(a[0]||[])[h];var T=C?C.Name:"SH33TJSNAME"+String(h);if(T in Xu)T=Xu[T];s.push(T);break;case"PtgNameX":var I=E[1][1];h=E[1][2];var x;if(n.biff<=5){if(I<0)I=-I;if(a[I])x=a[I][h]}else{var A="";if(((a[I]||[])[0]||[])[0]==14849){}else if(((a[I]||[])[0]||[])[0]==1025){if(a[I][h]&&a[I][h].itab>0){A=a.SheetNames[a[I][h].itab-1]+"!"}}else A=a.SheetNames[h-1]+"!";if(a[I]&&a[I][h])A+=a[I][h].Name;else if(a[0]&&a[0][h])A+=a[0][h].Name;else A+="SH33TJSERRX";s.push(A);break}if(!x)x={Name:"SH33TJSERRY"};s.push(x.Name);break;case"PtgParen":var R="(",_=")";if(b>=0){p="";switch(e[0][b][1][0]){case 2:R=Q(" ",e[0][b][1][1])+R;break;case 3:R=Q("\r",e[0][b][1][1])+R;break;case 4:_=Q(" ",e[0][b][1][1])+_;break;case 5:_=Q("\r",e[0][b][1][1])+_;break;default:if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][b][1][0]);}b=-1}s.push(R+s.pop()+_);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":o={c:E[1][1],r:E[1][0]};var D={c:t.c,r:t.r};if(a.sharedf[r
}function gh(e,r){var t=false;for(var a=0;a!=r.length;++a){var n=me(r[a],true);if(n.hidden)n.hidden=_e(n.hidden);var i=parseInt(n.min,10)-1,s=parseInt(n.max,10)-1;delete n.min;delete n.max;n.width=+n.width;if(!t&&n.width){t=true;Gl(n.width)}jl(n);while(i<=s)e[i++]=$(n)}}function Eh(e,r){var t=["<cols>"],a,n;for(var i=0;i!=r.length;++i){if(!(a=r[i]))continue;t[t.length]=ze("col",null,Ju(i,a))}t[t.length]="</cols>";return t.join("")}function Sh(e){var r={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return r}function kh(e){return ze("autoFilter",null,{ref:e.ref})}var wh=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/>/;function Bh(e,r){(e.match(wh)||[]).forEach(function(e){var t=me(e);if(_e(t.rightToLeft)){if(!r.Views)r.Views=[{}];if(!r.Views[0])r.Views[0]={};r.Views[0].RTL=true}})}function Ch(e,r,t,a){var n={workbookViewId:"0"};if((((a||{}).Workbook||{}).Views||[])[0])n.rightToLeft=a.Workbook.Views[0].RTL?"1":"0";return ze("sheetViews",ze("sheetView",null,n),{})}function Th(e,r,t,a,n,i){if(e.v===undefined&&e.f===undefined||e.t==="z")return"";var s="";var l=e.t,f=e.v;switch(e.t){case"b":s=e.v?"1":"0";break;case"n":s=""+e.v;break;case"e":s=Mt[e.v];break;case"d":if(a.cellDates)s=K(e.v,-1).toISOString();else{e=$(e);e.t="n";s=""+(e.v=H(K(e.v)))}if(typeof e.z==="undefined")e.z=x._table[14];break;default:s=e.v;break;}var c=Xe("v",Ce(s)),o={r:r};var u=qu(a.cellXfs,e,a);if(u!==0)o.s=u;switch(e.t){case"n":break;case"d":o.t="d";break;case"b":o.t="b";break;case"e":o.t="e";break;default:if(e.v==null){delete e.t;break}if(a.bookSST){c=Xe("v",""+Qu(a.Strings,e.v));o.t="s";break}o.t="str";break;}if(e.t!=l){e.t=l;e.v=f}if(e.f){var h=e.F&&e.F.substr(0,r.length)==r?{t:"array",ref:e.F}:null;c=ze("f",Ce(e.f),h)+(e.v!=null?c:"")}if(e.l)t["!links"].push([r,e.l]);if(e.c)t["!comments"].push([r,e.c]);return ze("c",c,o)}var Ih=function(){var e=/<(?:\w+:)?c[ >]/,r=/<\/(?:\w+:)?row>/;var t=/r=["']([^"']*)["']/,a=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/;var n=/ref=["']([^"']*)["']/;var i=Ne("v"),s=Ne("f");return function l(f,c,o,u,h,d){var v=0,b="",p=[],m=[],g=0,E=0,S=0,k="",w;var B,C=0,T=0;var I,A;var R=0,_=0;var D=Array.isArray(d.CellXf),F;var O=[];var P=[];var y=Array.isArray(c);var N=[],L={},M=false;for(var U=f.split(r),W=0,V=U.length;W!=V;++W){b=U[W].trim();var G=b.length;if(G===0)continue;for(v=0;v<G;++v)if(b.charCodeAt(v)===62)break;++v;B=me(b.substr(0,v),true);C=B.r!=null?parseInt(B.r,10):C+1;T=-1;if(o.sheetRows&&o.sheetRows<C)continue;if(u.s.r>C-1)u.s.r=C-1;if(u.e.r<C-1)u.e.r=C-1;if(o&&o.cellStyles){L={};M=false;if(B.ht){M=true;L.hpt=parseFloat(B.ht);L.hpx=Ql(L.hpt)}if(B.hidden=="1"){M=true;L.hidden=true}if(B.outlineLevel!=null){M=true;L.level=+B.outlineLevel}if(M)N[C-1]=L}p=b.substr(v).split(e);for(v=0;v!=p.length;++v){b=p[v].trim();if(b.length===0)continue;m=b.match(t);g=v;E=0;S=0;b="<c "+(b.substr(0,1)=="<"?">":"")+b;if(m!=null&&m.length===2){g=0;k=m[1];for(E=0;E!=k.length;++E){if((S=k.charCodeAt(E)-64)<1||S>26)break;g=26*g+S}--g;T=g}else++T;for(E=0;E!=b.length;++E)if(b.charCodeAt(E)===62)break;++E;B=me(b.substr(0,E),true);if(!B.r)B.r=rt({r:C-1,c:T});k=b.substr(E);w={t:""};if((m=k.match(i))!=null&&m[1]!=="")w.v=ke(m[1]);if(o.cellFormula){if((m=k.match(s))!=null&&m[1]!==""){w.f=Nc(ke(De(m[1])));if(m[0].indexOf('t="array"')>-1){w.F=(k.match(n)||[])[1];if(w.F.indexOf(":")>-1)O.push([st(w.F),w.F])}else if(m[0].indexOf('t="shared"')>-1){A=me(m[0]);P[parseInt(A.si,10)]=[A,Nc(ke(De(m[1])))]}}else if(m=k.match(/<f[^>]*\/>/)){A=me(m[0]);if(P[A.si])w.f=Pc(P[A.si][1],P[A.si][0].ref,B.r)}var z=et(B.r);for(E=0;E<O.length;++E)if(z.r>=O[E][0].s.r&&z.r<=O[E][0].e.r)if(z.c>=O[E][0].s.c&&z.c<=O[E][0].e.c)w.F=O[E][1]}if(B.t==null&&w.v===undefined){if(w.f||w.F){w.v=0;w.t="n"}else if(!o.sheetStubs)continue;else w.t="z"}else w.t=B.t||"n";if(u.s.c>g)u.s.c=g;if(u.e.c<g)u.e.c=g;switch(w.t){case"n":if(w.v==""||w.v==null){if(!o.sheetStubs)continue;w.t="z"}else w.v=parseFloat(w.v);break;case"s":if(typeof w.v=="undefined"){if(!o.sheetStubs)continue;w.t="z"}else{I=Yu[parseInt(w.v,10)];w.v=I.t;w.r=I.r;if(o.cellHTML)w.h=I.h}break;case"str":w.t="s";w.v=w.v!=null?De(w.v):"";if(o.cellHTML)
r._W(-4,1023);r._W(1,51);r._W(1,0);return r}function ov(e,r){if(!r)r=yr(1);r._W(1,0);return r}function uv(e,r){var t=Lr();Mr(t,"BrtBeginBook");Mr(t,"BrtFileVersion",sv());Mr(t,"BrtWbProp",rv(e.Workbook&&e.Workbook.WBProps||null));fv(t,e,r);iv(t,e,r);Mr(t,"BrtEndBook");return t.end()}function hv(e,r,t){if(r.slice(-4)===".bin")return nv(e,t);return $d(e,t)}function dv(e,r,t,a,n,i,s,l){if(r.slice(-4)===".bin")return bd(e,a,t,n,i,s,l);return uh(e,a,t,n,i,s,l)}function vv(e,r,t,a,n,i,s,l){if(r.slice(-4)===".bin")return Od(e,a,t,n,i,s,l);return _d(e,a,t,n,i,s,l)}function bv(e,r,t,a,n,i,s,l){if(r.slice(-4)===".bin")return Ac(e,a,t,n,i,s,l);return Rc(e,a,t,n,i,s,l)}function pv(e,r,t,a,n,i,s,l){if(r.slice(-4)===".bin")return Ic(e,a,t,n,i,s,l);return xc(e,a,t,n,i,s,l)}function mv(e,r,t,a){if(r.slice(-4)===".bin")return If(e,t,a);return ff(e,t,a)}function gv(e,r,t){return jf(e,t)}function Ev(e,r,t){if(r.slice(-4)===".bin")return rl(e,t);return Js(e,t)}function Sv(e,r,t){if(r.slice(-4)===".bin")return kc(e,t);return vc(e,t)}function kv(e,r,t){if(r.slice(-4)===".bin")return ic(e,r,t);return tc(e,r,t)}function wv(e,r,t){if(r.slice(-4)===".bin")return fc(e,r,t);return lc(e,r,t)}function Bv(e,r,t){return(r.slice(-4)===".bin"?uv:Jd)(e,t)}function Cv(e,r,t,a,n){return(r.slice(-4)===".bin"?Id:Rh)(e,t,a,n)}function Tv(e,r,t,a,n){return(r.slice(-4)===".bin"?Pd:Dd)(e,t,a,n)}function Iv(e,r,t){return(r.slice(-4)===".bin"?Lf:of)(e,t)}function xv(e,r,t){return(r.slice(-4)===".bin"?nl:qs)(e,t)}function Av(e,r,t){return(r.slice(-4)===".bin"?wc:pc)(e,t)}var Rv=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g;var _v=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;var Dv=function(e){return String.fromCharCode(e)};function Fv(e,r){var t=e.split(/\s+/);var a=[];if(!r)a[0]=t[0];if(t.length===1)return a;var n=e.match(Rv),i,s,l,f;if(n)for(f=0;f!=n.length;++f){i=n[f].match(_v);if((s=i[1].indexOf(":"))===-1)a[i[1]]=i[2].substr(1,i[2].length-2);else{if(i[1].substr(0,6)==="xmlns:")l="xmlns"+i[1].substr(6);else l=i[1].substr(s+1);a[l]=i[2].substr(1,i[2].length-2)}}return a}function Ov(e){var r=e.split(/\s+/);var t={};if(r.length===1)return t;var a=e.match(Rv),n,i,s,l;if(a)for(l=0;l!=a.length;++l){n=a[l].match(_v);if((i=n[1].indexOf(":"))===-1)t[n[1]]=n[2].substr(1,n[2].length-2);else{if(n[1].substr(0,6)==="xmlns:")s="xmlns"+n[1].substr(6);else s=n[1].substr(i+1);t[s]=n[2].substr(1,n[2].length-2)}}return t}function Pv(e,r){var t=R[e]||ke(e);if(t==="General")return x._general(r);return x.format(t,r)}function yv(e,r,t,a){var n=a;switch((t[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":n=_e(a);break;case"i2":;case"int":n=parseInt(a,10);break;case"r4":;case"float":n=parseFloat(a);break;case"date":;case"dateTime.tz":n=K(a);break;case"i8":;case"string":;case"fixed":;case"uuid":;case"bin.base64":break;default:throw new Error("bad custprop:"+t[0]);}e[ke(r)]=n}function Nv(e,r,t){if(e.t==="z")return;if(!t||t.cellText!==false)try{if(e.t==="e"){e.w=e.w||Mt[e.v]}else if(r==="General"){if(e.t==="n"){if((e.v|0)===e.v)e.w=x._general_int(e.v);else e.w=x._general_num(e.v)}else e.w=x._general(e.v)}else e.w=Pv(r||"General",e.v)}catch(a){if(t.WTF)throw a}try{var n=R[r]||r||"General";if(t.cellNF)e.z=n;if(t.cellDates&&e.t=="n"&&x.is_date(n)){var i=x.parse_date_code(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)}}}catch(a){if(t.WTF)throw a}}function Lv(e,r,t){if(t.cellStyles){if(r.Interior){var a=r.Interior;if(a.Pattern)a.patternType=Jl[a.Pattern]||a.Pattern}}e[r.ID]=r}function Mv(e,r,t,a,n,i,s,l,f,c){var o="General",u=a.StyleID,h={};c=c||{};var d=[];var v=0;if(u===undefined&&l)u=l.StyleID;if(u===undefined&&s)u=s.StyleID;while(i[u]!==undefined){if(i[u].nf)o=i[u].nf;if(i[u].Interior)d.push(i[u].Interior);if(!i[u].Parent)break;u=i[u].Parent}switch(t.Type){case"Boolean":a.t="b";a.v=_e(e);break;case"String":a.t="s";a.r=Ae(ke(e));a.v=e.indexOf("<")>-1?ke(r):a.r;break;case"DateTime":if(e.slice(-1)!="Z")e+="Z";a.v=(K(e)-new Date(Date.UTC(1899,11,30)))/(24*60*60*1e3);if(a.v!==a.v)a.v=ke(e);else if(a.v<60)a.v=a.v-1;if(!o||o=="General")o="yyyy-mm-dd";case"Number
}if(G>0)k.z=z[k.ixfe>>8&31];tb(k,r,t.opts.Date1904);D(re.cell,k,r);l=re}break;case"String":{if(l){l.val=re;k=ab(re,l.cell.ixfe,"s");k.XF=C[k.ixfe];if(r.cellFormula){k.f=""+xu(l.formula,s,l.cell,V,F)}if(G>0)k.z=z[k.ixfe>>8&31];tb(k,r,t.opts.Date1904);D(l.cell,k,r);l=null}else throw new Error("String record expects Formula")}break;case"Array":{S.push(re);var oe=rt(re[0].s);v=r.dense?(n[re[0].s.r]||[])[re[0].s.c]:n[oe];if(r.cellFormula&&v){if(!l)break;if(!oe||!v)break;v.f=""+xu(re[1],s,re[0],V,F);v.F=it(re[0])}}break;case"ShrFmla":{if(!B)break;if(!r.cellFormula)break;if(d){if(!l)break;E[rt(l.cell)]=re[0];v=r.dense?(n[l.cell.r]||[])[l.cell.c]:n[rt(l.cell)];(v||{}).f=""+xu(re[0],s,h,V,F)}}break;case"LabelSst":k=ab(f[re.isst].t,re.ixfe,"s");k.XF=C[k.ixfe];if(G>0)k.z=z[k.ixfe>>8&31];tb(k,r,t.opts.Date1904);D({c:re.c,r:re.r},k,r);break;case"Blank":if(r.sheetStubs){k={ixfe:re.ixfe,XF:C[re.ixfe],t:"z"};if(G>0)k.z=z[k.ixfe>>8&31];tb(k,r,t.opts.Date1904);D({c:re.c,r:re.r},k,r)}break;case"MulBlank":if(r.sheetStubs){for(var ue=re.c;ue<=re.C;++ue){var he=re.ixfe[ue-re.c];k={ixfe:he,XF:C[he],t:"z"};if(G>0)k.z=z[k.ixfe>>8&31];tb(k,r,t.opts.Date1904);D({c:ue,r:re.r},k,r)}}break;case"RString":;case"Label":;case"BIFF2STR":k=ab(re.val,re.ixfe,"s");k.XF=C[k.ixfe];if(G>0)k.z=z[k.ixfe>>8&31];tb(k,r,t.opts.Date1904);D({c:re.c,r:re.r},k,r);break;case"Dimensions":{if(X===1)s=re}break;case"SST":{f=re}break;case"Format":{if(F.biff==4){z[G++]=re[1];for(var de=0;de<G+163;++de)if(x._table[de]==re[1])break;if(de>=163)x.load(re[1],G+163)}else x.load(re[1],re[0])}break;case"BIFF2FORMAT":{z[G++]=re;for(var ve=0;ve<G+163;++ve)if(x._table[ve]==re)break;if(ve>=163)x.load(re,G+163)}break;case"MergeCells":P=P.concat(re);break;case"Obj":y[re.cmo[0]]=F.lastobj=re;break;case"TxO":F.lastobj.TxO=re;break;case"ImData":F.lastobj.ImData=re;break;case"HLink":{for(g=re[0].s.r;g<=re[0].e.r;++g)for(m=re[0].s.c;m<=re[0].e.c;++m){v=r.dense?(n[g]||[])[m]:n[rt({c:m,r:g})];if(v)v.l=re[1]}}break;case"HLinkTooltip":{for(g=re[0].s.r;g<=re[0].e.r;++g)for(m=re[0].s.c;m<=re[0].e.c;++m){v=r.dense?(n[g]||[])[m]:n[rt({c:m,r:g})];if(v)v.l.Tooltip=re[1]}}break;case"Note":{if(F.biff<=5&&F.biff>=2)break;v=r.dense?(n[re[0].r]||[])[re[0].c]:n[rt(re[0])];var be=y[re[2]];if(!v)break;if(!v.c)v.c=[];b={a:re[1],t:be.TxO.t};v.c.push(b)}break;default:switch(q.n){case"ClrtClient":break;case"XFExt":rc(C[re.ixfe],re.ext);break;case"DefColWidth":M=re;break;case"DefaultRowHeight":U=re[1];break;case"ColInfo":{if(!F.cellStyles)break;while(re.e>=re.s){N[re.e--]={width:re.w/256};if(!W){W=true;Gl(re.w/256)}jl(N[re.e+1])}}break;case"Row":{var pe={};if(re.level!=null){L[re.r]=pe;pe.level=re.level}if(re.hidden){L[re.r]=pe;pe.hidden=true}if(re.hpt){L[re.r]=pe;pe.hpt=re.hpt;pe.hpx=Ql(re.hpt)}}break;case"LeftMargin":;case"RightMargin":;case"TopMargin":;case"BottomMargin":if(!n["!margins"])Zu(n["!margins"]={});n["!margins"][te.slice(0,-6).toLowerCase()]=re;break;case"Setup":if(!n["!margins"])Zu(n["!margins"]={});n["!margins"].header=re.header;n["!margins"].footer=re.footer;break;case"Window2":if(re.RTL)I.Views[0].RTL=true;break;case"Header":break;case"Footer":break;case"HCenter":break;case"VCenter":break;case"Pls":break;case"GCW":break;case"LHRecord":break;case"DBCell":break;case"EntExU2":break;case"SxView":break;case"Sxvd":break;case"SXVI":break;case"SXVDEx":break;case"SxIvd":break;case"SXString":break;case"Sync":break;case"Addin":break;case"SXDI":break;case"SXLI":break;case"SXEx":break;case"QsiSXTag":break;case"Selection":break;case"Feat":break;case"FeatHdr":;case"FeatHdr11":break;case"Feature11":;case"Feature12":;case"List12":break;case"Country":w=re;break;case"RecalcId":break;case"DxGCol":break;case"Fbi":;case"Fbi2":;case"GelFrame":break;case"Font":break;case"XFCRC":break;case"Style":break;case"StyleExt":break;case"Palette":T=re;break;case"Theme":O=re;break;case"ScenarioProtect":break;case"ObjProtect":break;case"CondFmt12":break;case"Table":break;case"TableStyles":break;case"TableStyle":break;case"TableStyleElement":break;case"SXStreamID":break;case"SXVS":break;case"DConRef":break;case"SXAddl":break;case"DConBi
n:"BrtEndDataModel"},2123:{n:"BrtBeginModelTables"},2124:{n:"BrtEndModelTables"},2125:{n:"BrtModelTable"},2126:{n:"BrtBeginModelRelationships"},2127:{n:"BrtEndModelRelationships"},2128:{n:"BrtModelRelationship"},2129:{n:"BrtBeginECTxtWiz15"},2130:{n:"BrtEndECTxtWiz15"},2131:{n:"BrtBeginECTWFldInfoLst15"},2132:{n:"BrtEndECTWFldInfoLst15"},2133:{n:"BrtBeginECTWFldInfo15"},2134:{n:"BrtFieldListActiveItem"},2135:{n:"BrtPivotCacheIdVersion"},2136:{n:"BrtSXDI15"},65535:{n:""}};var cb=N(fb,"n");var ob={3:{n:"BIFF2NUM",f:Rs},4:{n:"BIFF2STR",f:As},6:{n:"Formula",f:Ou},9:{n:"BOF",f:si},10:{n:"EOF",f:gn},12:{n:"CalcCount",f:Bn},13:{n:"CalcMode",f:Bn},14:{n:"CalcPrecision",f:kn},15:{n:"CalcRefMode",f:kn},16:{n:"CalcDelta",f:Nt},17:{n:"CalcIter",f:kn},18:{n:"Protect",f:kn},19:{n:"Password",f:Bn},20:{n:"Header",f:zi},21:{n:"Footer",f:zi},23:{n:"ExternSheet",f:Qi},24:{n:"Lbl",f:$i},25:{n:"WinProtect",f:kn},26:{n:"VerticalPageBreaks"},27:{n:"HorizontalPageBreaks"},28:{n:"Note",f:as},29:{n:"Selection"},34:{n:"Date1904",f:kn},35:{n:"ExternName",f:Ki},38:{n:"LeftMargin",f:Nt},39:{n:"RightMargin",f:Nt},40:{n:"TopMargin",f:Nt},41:{n:"BottomMargin",f:Nt},42:{n:"PrintRowCol",f:kn},43:{n:"PrintGrid",f:kn},47:{n:"FilePass",f:xl},49:{n:"Font",f:Ci},51:{n:"PrintSize",f:Bn},60:{n:"Continue"},61:{n:"Window1",f:Si},64:{n:"Backup",f:kn},65:{n:"Pane"},66:{n:"CodePage",f:Bn},77:{n:"Pls"},80:{n:"DCon"},81:{n:"DConRef"},82:{n:"DConName"},85:{n:"DefColWidth",f:Bn},89:{n:"XCT"},90:{n:"CRN"},91:{n:"FileSharing"},92:{n:"WriteAccess",f:ci},93:{n:"Obj",f:ss},94:{n:"Uncalced"},95:{n:"CalcSaveRecalc",f:kn},96:{n:"Template"},97:{n:"Intl"},99:{n:"ObjProtect",f:kn},125:{n:"ColInfo",f:Es},128:{n:"Guts",f:Ui},129:{n:"WsBool",f:ui},130:{n:"GridSet",f:Bn},131:{n:"HCenter",f:kn},132:{n:"VCenter",f:kn},133:{n:"BoundSheet8",f:hi},134:{n:"WriteProtect"},140:{n:"Country",f:vs},141:{n:"HideObj",f:Bn},144:{n:"Sort"},146:{n:"Palette",f:ms},151:{n:"Sync"},152:{n:"LPr"},153:{n:"DxGCol"},154:{n:"FnGroupName"},155:{n:"FilterMode"},156:{n:"BuiltInFnGroupCount",f:Bn},157:{n:"AutoFilterInfo"},158:{n:"AutoFilter"},160:{n:"Scl",f:Cs},161:{n:"Setup",f:Ss},174:{n:"ScenMan"},175:{n:"SCENARIO"},176:{n:"SxView"},177:{n:"Sxvd"},178:{n:"SXVI"},180:{n:"SxIvd"},181:{n:"SXLI"},182:{n:"SXPI"},184:{n:"DocRoute"},185:{n:"RecipName"},189:{n:"MulRk",f:Oi},190:{n:"MulBlank",f:Pi},193:{n:"Mms",f:gn},197:{n:"SXDI"},198:{n:"SXDB"},199:{n:"SXFDB"},200:{n:"SXDBB"},201:{n:"SXNum"},202:{n:"SxBool",f:kn},203:{n:"SxErr"},204:{n:"SXInt"},205:{n:"SXString"},206:{n:"SXDtr"},207:{n:"SxNil"},208:{n:"SXTbl"},209:{n:"SXTBRGIITM"},210:{n:"SxTbpg"},211:{n:"ObProj"},213:{n:"SXStreamID"},215:{n:"DBCell"},216:{n:"SXRng"},217:{n:"SxIsxoper"},218:{n:"BookBool",f:Bn},220:{n:"DbOrParamQry"},221:{n:"ScenarioProtect",f:kn},222:{n:"OleObjectSize"},224:{n:"XF",f:Mi},225:{n:"InterfaceHdr",f:fi},226:{n:"InterfaceEnd",f:gn},227:{n:"SXVS"},229:{n:"MergeCells",f:ns},233:{n:"BkHim"},235:{n:"MsoDrawingGroup"},236:{n:"MsoDrawing"},237:{n:"MsoDrawingSelection"},239:{n:"PhoneticInfo"},240:{n:"SxRule"},241:{n:"SXEx"},242:{n:"SxFilt"},244:{n:"SxDXF"},245:{n:"SxItm"},246:{n:"SxName"},247:{n:"SxSelect"},248:{n:"SXPair"},249:{n:"SxFmla"},251:{n:"SxFormat"},252:{n:"SST",f:vi},253:{n:"LabelSst",f:Ti},255:{n:"ExtSST",f:bi},256:{n:"SXVDEx"},259:{n:"SXFormula"},290:{n:"SXDBEx"},311:{n:"RRDInsDel"},312:{n:"RRDHead"},315:{n:"RRDChgCell"},317:{n:"RRTabId",f:Tn},318:{n:"RRDRenSheet"},319:{n:"RRSort"},320:{n:"RRDMove"},330:{n:"RRFormat"},331:{n:"RRAutoFmt"},333:{n:"RRInsertSh"},334:{n:"RRDMoveBegin"},335:{n:"RRDMoveEnd"},336:{n:"RRDInsDelBegin"},337:{n:"RRDInsDelEnd"},338:{n:"RRDConflict"},339:{n:"RRDDefName"},340:{n:"RRDRstEtxp"},351:{n:"LRng"},352:{n:"UsesELFs",f:kn},353:{n:"DSF",f:gn},401:{n:"CUsr"},402:{n:"CbUsr"},403:{n:"UsrInfo"},404:{n:"UsrExcl"},405:{n:"FileLock"},406:{n:"RRDInfo"},407:{n:"BCUsrs"},408:{n:"UsrChk"},425:{n:"UserBView"},426:{n:"UserSViewBegin"},427:{n:"UserSViewEnd"},428:{n:"RRDUserView"},429:{n:"Qsi"},430:{n:"SupBook",f:ji},431:{n:"Prot4Rev",f:kn},432:{n:"CondFmt"},433:{n:"CF"},434:{n:"DVal"},437:{n:"DConBin"},438:{n:"TxO",f:cs},4
"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=Ge({"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");else t.push("<office:document-content"+i+">\n");n(t);t.push(" <office:body>\n");t.push(" <office:spreadsheet>\n");for(var l=0;l!=e.SheetNames.length;++l)t.push(a(e.Sheets[e.SheetNames[l]],e,l,r));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 Ob(e,r){if(r.bookType=="fods")return Fb(e,r);var t=new ce;var a="";var n=[];var i=[];a="mimetype";t.file(a,"application/vnd.oasis.opendocument.spreadsheet");a="content.xml";t.file(a,Fb(e,r));n.push([a,"text/xml"]);i.push([a,"ContentFile"]);a="styles.xml";t.file(a,Db(e,r));n.push([a,"text/xml"]);i.push([a,"StylesFile"]);a="meta.xml";t.file(a,Oa(e,r));n.push([a,"text/xml"]);i.push([a,"MetadataFile"]);a="manifest.rdf";t.file(a,Fa(i,r));n.push([a,"application/rdf+xml"]);a="META-INF/manifest.xml";t.file(a,Ra(n,r));return t}function Pb(e,r){if(!r)return 0;var t=e.SheetNames.indexOf(r);if(t==-1)throw new Error("Sheet not found: "+r);return t}function yb(e){return function r(t,a){var n=Pb(t,a.sheet);return e.from_sheet(t.Sheets[t.SheetNames[n]],a,t)}}var Nb=yb(Tb);var Lb=yb({from_sheet:Cp});var Mb=yb(Ls);var Ub=yb(Ms);var Wb=yb(Ws);var Vb=yb(Al);var Hb=yb({from_sheet:Tp});var Xb=yb(Ns);var Gb=yb(Us);function zb(e){return function r(t){for(var a=0;a!=e.length;++a){var n=e[a];if(t[n[0]]===undefined)t[n[0]]=n[1];if(n[2]==="n")t[n[0]]=Number(t[n[0]])}}}var jb=zb([["cellNF",false],["cellHTML",true],["cellFormula",true],["cellStyles",false],["cellText",true],["cellDates",false],["sheetStubs",false],["sheetRows",0,"n"],["bookDeps",false],["bookSheets",false],["bookProps",false],["bookFiles",false],["bookVBA",false],["password",""],["WTF",false]]);var Kb=zb([["cellDates",false],["bookSST",false],["bookType","xlsx"],["compression",false],["WTF",false]]);function Yb(e){if(ka.WS.indexOf(e)>-1)return"sheet";if(ka.CS&&e==ka.CS)return"chart";if(ka.DS&&e==ka.DS)return"dialog";if(ka.MS&&e==ka.MS)return"macro";return e&&e.length?e:"sheet"}function $b(e,r){if(!e)return 0;try{e=r.map(function a(r){if(!r.id)r.id=r.strRelID;return[r.name,e["!id"][r.id].Target,Yb(e["!id"][r.id].Type)]})}catch(t){return null}return!e||e.length===0?null:e}function Qb(e,r,t,a,n,i,s,l,f,c,o,u){try{i[a]=Ba(le(e,t,true),r);var h=se(e,r);switch(l){case"sheet":s[a]=dv(h,r,n,f,i[a],c,o,u);break;case"chart":var d=vv(h,r,n,f,i[a],c,o,u);s[a]=d;if(!d||!d["!chart"])break;var v=ue(d["!chart"].Target,r);var b=wa(v);var p=cc(le(e,v,true),Ba(le(e,b,true),v));var m=ue(p,