sheetjs/dist/xlsx.min.js

14 lines
348 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.6";var t=1200;if(typeof module!=="undefined"&&typeof require!=="undefined"){if(typeof cptable==="undefined")global.cptable=undefined}function a(){n(1200)}var n=function(e){t=e};function i(e){var r=[];for(var t=0,a=e.length;t<a;++t)r[t]=e.charCodeAt(t);return r}function s(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 l(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 c=function(e){var r=e.charCodeAt(0),t=e.charCodeAt(1);if(r==255&&t==254)return s(e.substr(2));if(r==254&&t==255)return l(e.substr(2));if(r==65279)return e.substr(1);return e};var f=function Zb(e){return String.fromCharCode(e)};if(typeof cptable!=="undefined"){n=function(e){t=e};c=function(e){if(e.charCodeAt(0)===255&&e.charCodeAt(1)===254){return cptable.utils.decode(1200,i(e.substr(2)))}return e};f=function Jb(e){if(t===1200)return String.fromCharCode(e);return cptable.utils.decode(t,[e&255,e>>8])[0]}}var o=null;var u=true;var h=function qb(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{encode:function(r){var t="";var a,n,i,s,l,c,f;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;c=(n&15)<<2|i>>6;f=i&63;if(isNaN(n)){c=f=64}else if(isNaN(i)){f=64}t+=e.charAt(s)+e.charAt(l)+e.charAt(c)+e.charAt(f)}return t},decode:function r(t){var a="";var n,i,s;var l,c,f,o;t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var u=0;u<t.length;){l=e.indexOf(t.charAt(u++));c=e.indexOf(t.charAt(u++));f=e.indexOf(t.charAt(u++));o=e.indexOf(t.charAt(u++));n=l<<2|c>>4;i=(c&15)<<4|f>>2;s=(f&3)<<6|o;a+=String.fromCharCode(n);if(f!=64){a+=String.fromCharCode(i)}if(o!=64){a+=String.fromCharCode(s)}}return a}}}();var d=typeof Buffer!=="undefined"&&typeof process!=="undefined"&&typeof process.versions!=="undefined"&&process.versions.node;function v(e){return new(d?Buffer:Array)(e)}function b(e){if(d)return new Buffer(e,"binary");return e.split("").map(function(e){return e.charCodeAt(0)&255})}var p=function(e){return[].concat.apply([],e)};var m=/\u0000/g,g=/[\u0001-\u0006]/;var E={};var S=function ep(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 c=Math.pow(2,32);function f(e,r){if(e>c||e<-c)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"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function d(e){e[0]="General";e[1]="0";e[2]="0.00";e[3]="#,##0";e[4]="#,##0.00";e[9]="0%";e[10]="0.00%";e[11]="0.00E+00";e[12]="# ?/?";e[13]="# ??/??";e[14]="m/d/yy";e[15]="d-mmm-yy";e[16]="d-mmm";e[17]="mmm-yy";e[18]="h:mm AM/PM";e[19]="h:mm:ss AM/PM";e[20]="h:mm";e[21]="h:mm:ss";e[22]="m/d/yy h:mm";e[37]="#,##0 ;(#,##0)";e[38]="#,##0 ;[Red](#,##0)";e[39]="#,##0.00;(#,##0.00)";e[40]="#,##0.00;[Red](#,##0.00)";e[45]="mm:ss";e[46]="[h]:mm:ss";e[47]="mmss.0";e[48]="##0.0E+0";e[49]="@";e[56]='"上午/下午 "hh"
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;C(e)}function C(e){var r="Sh33tJ5";if(I.find(e,"/"+r))return;var t=Rr(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);w(e)}function w(e,n){B(e);var i=false,s=false;for(var l=e.FullPaths.length-1;l>=0;--l){var c=e.FileIndex[l];switch(c.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(c.R*c.L*c.C))i=true;if(c.R>-1&&c.L>-1&&c.R==c.L)i=true;break;default:i=true;break;}}if(!i&&!n)return;var f=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:f,mt:f,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 T(e,r){w(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 c=r+127>>7;var f=l+t+s+c;var o=f+127>>7;var u=o<=109?0:Math.ceil((o-109)/127);while(f+o+u+127>>7>o)u=++o<=109?0:Math.ceil((o-109)/127);var h=[1,u,o,c,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=Rr(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:R);a._W(4,t[3]);a._W(-4,t[1]?t[0]-1:R);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?R:i+1)}}var s=function(e){for(i+=e;n<i-1;++n)a._W(-4,n+1);if(e){++n;a._W(-4,R)}};i=n=0;for(i+=t[1];n<i;++n)a._W(-4,P.DIFSECT);for(i+=t[2];n<i;++n)a._W(-4,P.FATSECT);s(t[3]);s(t[4]);var l=0,c=0;var f=e.FileIndex[0];for(;l<e.FileIndex.length;++l){f=e.FileIndex[l];if(!f.content)continue;c=f.content.length;if(c<4096)continue;f.start=i;s(c+511>>9)}s(t[6]+7>>3);while(a.l&511)a._W(-4,P.ENDOFCHAIN);i=n=0;for(l=0;l<e.FileIndex.length;++l){f=e.FileIndex[l];if(!f.content)continue;c=f.content.length;if(!c||c>=4096)continue;f.start=i;s(c+63>>6)}while(a.l&511)a._W(-4,P.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,-1);for(l=0;l<12;++l)a._W(4,0);continue}f=e.FileIndex[n];if(n===0)f.start=f.size?f.start-1:R;c=2*(f.name.length+1);a._W(64,f.name,"utf16le");a._W(2,c);a._W(1,f.type);a._W(1,f.color);a._W(-4,f.L);a._W(-4,f.R);a._W(-4,f.C);if(!f.clsid)for(l=0;l<4;++l)a._W(4,0);else a._W(16,f.clsid,"hex");a._W(4,f.state||0);a._W(4,0);a._W(4,0);a._W(4,0);a._W(4,0);a._W(4,f.start);a._W(4,f.size);a._W(4,0)}for(n=1;n<e.FileIndex.length;++n){f=e.FileIndex[n];if(f.size>=4096){a.l=f.start+1<<9;for(l=0;l<f.size;++l)a._W(1,f.content[l]);for(;l&511;++l)a._W(1,0)}}for(n=1;n<e.FileIndex.length;++n){f=e.FileIndex[n];if(f.size>0&&f.size<4096){for(l=0;l<f.size;++l)a._W(1,f.content[l]);for(;l&63;++l)a._W(1,0)}}while(a.l<a.length)a._W(1,0);return a}function x(e,r){var t=e.FullPaths.map(function(e){return e.toUpperCase()});var a=t.map(function
r.s.c=e._R(4);r.e.c=e._R(4);return r}function xt(e,r){if(!r)r=Rr(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 At=It;var Rt=xt;function Dt(e,r){return e._R(8,"f")}function Ft(e,r){return(r||Rr(8))._W(8,e,"f")}var Ot={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"};var Pt=F(Ot);function _t(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 c=e._R(1);var f=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=aa[s];if(h)t.rgb=hl(h);break;case 2:t.rgb=hl([c,f,o]);break;case 3:t.theme=s;break;}if(l!=0)t.tint=l>0?l/32767:l/32768;return t}function yt(e,r){if(!r)r=Rr(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 Nt(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 Mt(e,r){if(!r)r=Rr(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}var Lt=2;var Ut=3;var Wt=11;var Ht=12;var Vt=19;var Gt=21;var Xt=30;var zt=64;var jt=71;var Kt=4096;var Yt=80;var $t=81;var Qt=[Yt,$t];var Zt={1:{n:"CodePage",t:Lt},2:{n:"Category",t:Yt},3:{n:"PresentationFormat",t:Yt},4:{n:"ByteCount",t:Ut},5:{n:"LineCount",t:Ut},6:{n:"ParagraphCount",t:Ut},7:{n:"SlideCount",t:Ut},8:{n:"NoteCount",t:Ut},9:{n:"HiddenCount",t:Ut},10:{n:"MultimediaClipCount",t:Ut},11:{n:"Scale",t:Wt},12:{n:"HeadingPair",t:Kt|Ht},13:{n:"DocParts",t:Kt|Xt},14:{n:"Manager",t:Yt},15:{n:"Company",t:Yt},16:{n:"LinksDirty",t:Wt},17:{n:"CharacterCount",t:Ut},19:{n:"SharedDoc",t:Wt},22:{n:"HLinksChanged",t:Wt},23:{n:"AppVersion",t:Ut,p:"version"},26:{n:"ContentType",t:Yt},27:{n:"ContentStatus",t:Yt},28:{n:"Language",t:Yt},29:{n:"Version",t:Yt},255:{}};var Jt={1:{n:"CodePage",t:Lt},2:{n:"Title",t:Yt},3:{n:"Subject",t:Yt},4:{n:"Author",t:Yt},5:{n:"Keywords",t:Yt},6:{n:"Comments",t:Yt},7:{n:"Template",t:Yt},8:{n:"LastAuthor",t:Yt},9:{n:"RevNumber",t:Yt},10:{n:"EditTime",t:zt},11:{n:"LastPrinted",t:zt},12:{n:"CreatedDate",t:zt},13:{n:"ModifiedDate",t:zt},14:{n:"PageCount",t:Ut},15:{n:"WordCount",t:Ut},16:{n:"CharCount",t:Ut},17:{n:"Thumbnail",t:jt},18:{n:"ApplicationName",t:Xt},19:{n:"DocumentSecurity",t:Ut},255:{}};var qt={2147483648:{n:"Locale",t:Vt},2147483651:{n:"Behavior",t:Vt},1919054434:{}};(function(){for(var e in qt)if(qt.hasOwnProperty(e))Zt[e]=Jt[e]=qt[e]})();var ea={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"};var ra=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function ta(e){return e.map(function(e){return[e>>16&255,e>>8&255,e&255]})}var aa=ta([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,
var t=e._R(2);var a=e._R(2);var n=e._R(2);e.l+=12;return[a,t,n]}function Gn(e,r){var t={};e.l+=4;e.l+=16;t.fSharedNote=e._R(2);e.l+=4;return t}function Xn(e,r){var t={};e.l+=4;e.cf=e._R(2);return t}function zn(e,r){e.l+=2;e.l+=e._R(2)}var jn={0:zn,4:zn,5:zn,6:zn,7:Xn,8:zn,9:zn,10:zn,11:zn,12:zn,13:Gn,14:zn,15:zn,16:zn,17:zn,18:zn,19:zn,20:zn,21:Vn};function Kn(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(jn[i](e,a-e.l))}catch(s){e.l=a;return n}}if(e.l!=a)e.l=a;return n}function Yn(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 $n(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;default:throw new Error("unsupported BIFF version");}var i=Rr(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 Qn(e,r){if(r===0)return 1200;var t;if((t=e._R(2))!==1200){}return 1200}function Zn(e,r,t){if(t.enc){e.l+=r;return""}var a=e.l;var n=Bn(e,0,t);e._R(r+a-e.l);return n}function Jn(e,r){var t=!r||r.biff==8;var a=Rr(t?112:54);a._W(r.biff==8?2:1,7);a._W(1,0);a._W(4,859007059);a._W(4,5458548);while(a.l<a.length)a._W(1,0);return a}function qn(e,r,t){var a=e._R(4);var n=e._R(1)&3;var i=e._R(1);switch(i){case 0:i="Worksheet";break;case 1:i="Macrosheet";break;case 2:i="Chartsheet";break;case 6:i="VBAModule";break;}var s=En(e,0,t);if(s.length===0)s="Sheet1";return{pos:a,hs:n,dt:i,name:s}}function ei(e,r){var t=!r||r.biff>=8?2:1;var a=Rr(8+t*e.name.length);a._W(4,e.pos);a._W(1,e.hs||0);a._W(1,e.dt);a._W(1,e.name.length);if(r.biff>=8)a._W(1,1);a._W(t*e.name.length,e.name,r.biff<8?"sbcs":"utf16le");return a.slice(0,a.l)}function ri(e,r){var t=e.l+r;var a=e._R(4);var n=e._R(4);var i=[];for(var s=0;s!=n&&e.l<t;++s){i.push(Sn(e))}i.Count=a;i.Unique=n;return i}function ti(e,r){var t={};t.dsst=e._R(2);e.l+=r-2;return t}function ai(e,r){var t={};t.r=e._R(2);t.c=e._R(2);t.cnt=e._R(2)-t.c;var a=e._R(2);e.l+=4;var n=e._R(1);e.l+=3;if(n&7)t.level=n&7;if(n&32)t.hidden=true;if(n&64)t.hpt=a/20;return t}function ni(e,r){var t=_n(e);if(t.type!=2211)throw new Error("Invalid Future Record "+t.type);var a=e._R(4);return a!==0}function ii(e,r){e._R(2);return e._R(4)}function si(e,r,t){var a=0;if(!(t&&t.biff==2)){a=e._R(2)}var n=e._R(2);if(t&&t.biff==2){a=1-(n>>15);n&=32767}var i={Unsynced:a&1,DyZero:(a&2)>>1,ExAsc:(a&4)>>2,ExDsc:(a&8)>>3};return[i,n]}function li(e,r){var t=e._R(2),a=e._R(2),n=e._R(2),i=e._R(2);var s=e._R(2),l=e._R(2),c=e._R(2);var f=e._R(2),o=e._R(2);return{Pos:[t,a],Dim:[n,i],Flags:s,CurTab:l,FirstTab:c,Selected:f,TabRatio:o}}function ci(e){var r=Rr(18);r._W(2,0);r._W(2,0);r._W(2,29280);r._W(2,17600);r._W(2,56);r._W(2,0);r._W(2,0);r._W(2,1);r._W(2,500);return r}function fi(e,r,t){var a={dyHeight:e._R(2),fl:e._R(2)};switch(t&&t.biff||8){case 2:break;case 3:;case 4:e.l+=2;break;default:e.l+=10;break;}a.name=En(e,0,t);return a}function oi(e,r){var t=On(e);t.isst=e._R(4);return t}function ui(e,r,t){var a=e.l+r;var n=On(e,6);if(t.biff==2)e.l++;var i=Bn(e,a-e.l,t);n.val=i;return n}function hi(e,r,t,a){var n=!a||a.biff==8;var i=Rr(6+2+ +n+(1+n)*t.length);Pn(e,r,0,i);i._W(2,t.length);if(n)i._W(1,1);i._W((1+n)*t.length,t,n?"utf16le":"sbcs");return i}function di(e,r,t){var a=e._R(2);var n=Cn(e,0,t);return[a,n]}var vi=Cn;function bi(e,r,t){var a=e.l+r;var n=t.biff==8||!t.biff?4:2;var i=e._R(n),s=e._R(n);var l=e._R(2),c=e._R(2);e.l=a;return{s:{r:i,c:l},e:{r:s,c:c}}}function pi(e,r){var t=r.biff==8||!r.biff?4:2;var a=Rr(2*t+6);a._W(t,e.s.r);a._W(t,e.e.r+1);a._W(2,e.s.c);a._W(2,e.e.c+1);a._W(2,0);return a}function mi(e,r){var t=e._R(2),a=e._R(2);var n=Mn(e);return{r:t,c:a,ixfe:n[0],rknum:n[1]}}function gi(e,r){var t=e.l+r-2;var a=e._R(2),n=e._R(2);var i=[];while(e.l<t)i.push(Mn(e));if(e.l!==t)throw new Error("MulRK read error");var s=e._R(2);if(i.length!=
if(a.shadow)f.push("text-shadow: auto;");r.push('<span style="'+f.join("")+'">');if(a.b){r.push("<b>");t.push("</b>")}if(a.i){r.push("<i>");t.push("</i>")}if(a.strike){r.push("<s>");t.push("</s>")}if(i=="superscript")i="sup";else if(i=="subscript")i="sub";if(i!=""){r.push("<"+i+">");t.push("</"+i+">")}t.push("</span>");return n};function s(t){var a=[[],"",[]];var s=t.match(e),l=65001;if(!x(s))return"";a[1]=s[1];var c=t.match(r);if(x(c))l=i(c[1],a[0],a[2]);return a[0].join("")+a[1].replace(n,"<br/>")+a[2].join("")}return function c(e){return e.replace(t,"").split(a).map(s).join("")}}();var Is=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,xs=/<(?:\w+:)?r>/;var As=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function Rs(e,r){var t=r?r.cellHTML:true;var a={};if(!e)return null;var n;if(e.match(/^\s*<(?:\w+:)?t[^>]*>/)){a.t=be(Te(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||""));a.r=Te(e);if(t)a.h=ke(a.t)}else if(n=e.match(xs)){a.r=Te(e);a.t=be(Te((e.replace(As,"").match(Is)||[]).join("").replace(ce,"")));if(t)a.h=Ts(a.r)}return a}var Ds=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/;var Fs=/<(?:\w+:)?(?:si|sstItem)>/g;var Os=/<\/(?:\w+:)?(?:si|sstItem)>/;function Ps(e,r){var t=[],a="";if(!e)return t;var n=e.match(Ds);if(x(n)){a=n[2].replace(Fs,"").split(Os);for(var i=0;i!=a.length;++i){var s=Rs(a[i].trim(),r);if(s!=null)t[t.length]=s}n=ue(n[1]);t.Count=n.count;t.Unique=n.uniqueCount}return t}ha.SST="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings";var _s=/^\s|\s$|[\t\n\r]/;function ys(e,r){if(!r.bookSST)return"";var t=[se];t[t.length]=Ue("sst",null,{xmlns:Ve.main[0],count:e.Count,uniqueCount:e.Unique});for(var a=0;a!=e.length;++a){if(e[a]==null)continue;var n=e[a];var i="<si>";if(n.r)i+=n.r;else{i+="<t";if(!n.t)n.t="";if(n.t.match(_s))i+=' xml:space="preserve"';i+=">"+ge(n.t)+"</t>"}i+="</si>";t[t.length]=i}if(t.length>2){t[t.length]="</sst>";t[1]=t[1].replace("/>",">")}return t.join("")}function Ns(e,r){return[e._R(4),e._R(4)]}function Ms(e,r){var t=[];var a=false;Dr(e,function n(e,i,s){switch(s){case 159:t.Count=e[0];t.Unique=e[1];break;case 19:t.push(e);break;case 160:return true;case 35:a=true;break;case 36:a=false;break;default:if(i.indexOf("Begin")>0){}else if(i.indexOf("End")>0){}if(!a||r.WTF)throw new Error("Unexpected record "+s+" "+i);}});return t}function Ls(e,r){if(!r)r=Rr(8);r._W(4,e.Count);r._W(4,e.Unique);return r}var Us=ut;function Ws(e,r){var t=Fr();Or(t,"BrtBeginSst",Ls(e));for(var a=0;a<e.length;++a)Or(t,"BrtSSTItem",Us(e[a]));Or(t,"BrtEndSst");return t.end()}function Hs(e){if(typeof cptable!=="undefined")return cptable.utils.encode(1252,e);var r=[],t=e.split("");for(var a=0;a<t.length;++a)r[a]=t[a].charCodeAt(0);return r}function Vs(e,r){var t={};t.Major=e._R(2);t.Minor=e._R(2);if(r>=4)e.l+=r-4;return t}function Gs(e,r){var t={};t.id=e._R(0,"lpp4");t.R=Vs(e,4);t.U=Vs(e,4);t.W=Vs(e,4);return t}function Xs(e){var r=e._R(4);var t=e.l+r-4;var a={};var n=e._R(4);var i=[];while(n-- >0){var s={};s.t=e._R(4);s.v=e._R(0,"lpp4");i.push(s)}a.name=e._R(0,"lpp4");a.comps=i;return a}function zs(e,r){var t=[];e.l+=4;var a=e._R(4);while(a-- >0)t.push(Xs(e));return t}function js(e,r){var t=[];e.l+=4;var a=e._R(4);while(a-- >0)t.push(e._R(0,"lpp4"));return t}function Ks(e,r){var t={};var a=e._R(4);var n=e.l+a-4;e.l+=4;t.id=e._R(0,"lpp4");t.name=e._R(0,"lpp4");t.R=Vs(e,4);t.U=Vs(e,4);t.W=Vs(e,4);return t}function Ys(e,r){var t=Ks(e);t.ename=e._R(0,"8lpp4");t.blksz=e._R(4);t.cmode=e._R(4);if(e._R(4)!=4)throw new Error("Bad !Primary record");return t}function $s(e,r){var t=e.l+r;var a={};a.Flags=e._R(4)&63;e.l+=4;a.AlgID=e._R(4);var n=false;switch(a.AlgID){case 26126:;case 26127:;case 26128:n=a.Flags==36;break;case 26625:n=a.Flags==4;break;case 0:n=a.Flags==16||a.Flags==4||a.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+a.AlgID;}if(!n)throw new Error("Encryption Flags/AlgID mismatch");a.AlgIDHash=e._R(4);a.KeySize=e._R(4);a.ProviderType=e._R(4);e.l+=8;a.CSPName=e._R(t-e.l>>1,"utf16le").slice(0,-1);e.l=t;return a}function Qs(e,r){var t={};e.l+=4;t.Salt=e.slice(e.l
t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>';t[t.length]="</a:gsLst>";t[t.length]='<a:lin ang="16200000" scaled="0"/>';t[t.length]="</a:gradFill>";t[t.length]="</a:fillStyleLst>";t[t.length]="<a:lnStyleLst>";t[t.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>';t[t.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>';t[t.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>';t[t.length]="</a:lnStyleLst>";t[t.length]="<a:effectStyleLst>";t[t.length]="<a:effectStyle>";t[t.length]="<a:effectLst>";t[t.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>';t[t.length]="</a:effectLst>";t[t.length]="</a:effectStyle>";t[t.length]="<a:effectStyle>";t[t.length]="<a:effectLst>";t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>';t[t.length]="</a:effectLst>";t[t.length]="</a:effectStyle>";t[t.length]="<a:effectStyle>";t[t.length]="<a:effectLst>";t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>';t[t.length]="</a:effectLst>";t[t.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>';t[t.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>';t[t.length]="</a:effectStyle>";t[t.length]="</a:effectStyleLst>";t[t.length]="<a:bgFillStyleLst>";t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>';t[t.length]='<a:gradFill rotWithShape="1">';t[t.length]="<a:gsLst>";t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>';t[t.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>';t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>';t[t.length]="</a:gsLst>";t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>';t[t.length]="</a:gradFill>";t[t.length]='<a:gradFill rotWithShape="1">';t[t.length]="<a:gsLst>";t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>';t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>';t[t.length]="</a:gsLst>";t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>';t[t.length]="</a:gradFill>";t[t.length]="</a:bgFillStyleLst>";t[t.length]="</a:fmtScheme>";t[t.length]="</a:themeElements>";t[t.length]="<a:objectDefaults>";t[t.length]="<a:spDef>";t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>';t[t.length]="</a:spDef>";t[t.length]="<a:lnDef>";t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>';t[t.length]="</a:lnDef>";t[t.length]="</a:objectDefaults>";t[t.length]="<a:extraClrSchemeLs
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:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"};var Su={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",
a[r]=Dt(e,8)});return a}function Lh(e,r){if(r==null)r=Rr(6*8);Du(e);Nh.forEach(function(t){Ft(e[t],r)});return r}function Uh(e,r){if(r==null)r=Rr(30);r._W(2,924);r._W(4,0);r._W(4,0);r._W(4,0);r._W(1,0);r._W(1,0);r._W(2,0);r._W(2,100);r._W(2,0);r._W(2,0);r._W(2,0);r._W(4,0);return r}function Wh(e,r){if(r==null)r=Rr(16*4+2);r._W(2,e.password?al(e.password):0);r._W(4,1);[["objects",false],["scenarios",false],["formatCells",true],["formatColumns",true],["formatRows",true],["insertColumns",true],["insertRows",true],["insertHyperlinks",true],["deleteColumns",true],["deleteRows",true],["selectLockedCells",false],["sort",true],["autoFilter",true],["pivotTables",true],["selectUnlockedCells",false]].forEach(function(t){if(t[1])r._W(4,e[t[0]]!=null&&!e[t[0]]?1:0);else r._W(4,e[t[0]]!=null&&e[t[0]]?0:1)});return r}function Hh(e,r,t,a,n,i){if(!e)return e;var s=r||{};if(!t)t={"!id":{}};if(o!=null&&s.dense==null)s.dense=o;var l=s.dense?[]:{};var c;var f={s:{r:2e6,c:2e6},e:{r:0,c:0}};var u=false,h=false;var d,v,b,p,m,g,S,k,B;var C=[];s.biff=12;s["!row"]=0;var w=0,T=false;var I=[];var x={};var A=[[]];A.sharedf=x;A.arrayf=I;A.SheetNames=a.SheetNames||a.Sheets.map(function(e){return e.name});s.supbooks=A;for(var R=0;R<a.Names.length;++R)A[0][R+1]=a.Names[R];var D=[],F=[];var O=0,P=0;var _=false;Dr(e,function N(e,r,a){if(h)return;switch(a){case 148:c=e;break;case 0:d=e;if(s.sheetRows&&s.sheetRows<=d.r)h=true;k=Wr(p=d.r);s["!row"]=d.r;if(e.hidden||e.hpt||e.level!=null){if(e.hpt)e.hpx=Ol(e.hpt);F[e.r]=e}break;case 2:;case 3:;case 4:;case 5:;case 6:;case 7:;case 8:;case 9:;case 10:;case 11:v={t:e[2]};switch(e[2]){case"n":v.v=e[1];break;case"s":S=Iu[e[1]];v.v=S.t;v.r=S.r;break;case"b":v.v=e[1]?true:false;break;case"e":v.v=e[1];if(s.cellText!==false)v.w=Ot[v.v];break;case"str":v.t="s";v.v=e[1];break;}if(b=i.CellXf[e[0].iStyleRef])Ou(v,b.numFmtId,null,s,n,i);m=e[0].c;if(s.dense){if(!l[p])l[p]=[];l[p][m]=v}else l[Xr(m)+k]=v;if(s.cellFormula){T=false;for(w=0;w<I.length;++w){var o=I[w];if(d.r>=o[0].s.r&&d.r<=o[0].e.r)if(m>=o[0].s.c&&m<=o[0].e.c){v.F=qr(o[0]);T=true}}if(!T&&e.length>3)v.f=e[3]}if(f.s.r>d.r)f.s.r=d.r;if(f.s.c>m)f.s.c=m;if(f.e.r<d.r)f.e.r=d.r;if(f.e.c<m)f.e.c=m;if(s.cellDates&&b&&v.t=="n"&&E.is_date(E._table[b.numFmtId])){var R=E.parse_date_code(v.v);if(R){v.t="d";v.v=new Date(R.y,R.m-1,R.d,R.H,R.M,R.S,R.u)}}break;case 1:if(!s.sheetStubs||u)break;v={t:"z",v:undefined};m=e[0].c;if(s.dense){if(!l[p])l[p]=[];l[p][m]=v}else l[Xr(m)+k]=v;if(f.s.r>d.r)f.s.r=d.r;if(f.s.c>m)f.s.c=m;if(f.e.r<d.r)f.e.r=d.r;if(f.e.c<m)f.e.c=m;break;case 176:C.push(e);break;case 494:var O=t["!id"][e.relId];if(O){e.Target=O.Target;if(e.loc)e.Target+="#"+e.loc;e.Rel=O}for(p=e.rfx.s.r;p<=e.rfx.e.r;++p)for(m=e.rfx.s.c;m<=e.rfx.e.c;++m){if(s.dense){if(!l[p])l[p]=[];if(!l[p][m])l[p][m]={t:"z",v:undefined};l[p][m].l=e}else{g=$r({c:m,r:p});if(!l[g])l[g]={t:"z",v:undefined};l[g].l=e}}break;case 426:if(!s.cellFormula)break;I.push(e);B=s.dense?l[p][m]:l[Xr(m)+k];B.f=su(e[1],f,{r:d.r,c:m},A,s);B.F=qr(e[0]);break;case 427:if(!s.cellFormula)break;x[$r(e[0].s)]=e[1];B=s.dense?l[p][m]:l[Xr(m)+k];B.f=su(e[1],f,{r:d.r,c:m},A,s);break;case 60:if(!s.cellStyles)break;while(e.e>=e.s){D[e.e--]={width:e.w/256,hidden:!!(e.flags&1)};if(!_){_=true;Il(e.w/256)}Al(D[e.e+1])}break;case 161:l["!autofilter"]={ref:qr(e)};break;case 476:l["!margins"]=e;break;case 485:;case 175:;case 644:;case 625:;case 562:;case 396:;case 1112:;case 1146:;case 471:;case 1050:;case 649:;case 1105:;case 49:;case 589:;case 607:;case 564:;case 1055:;case 168:;case 174:;case 1180:;case 499:;case 64:;case 1053:;case 550:;case 171:;case 167:;case 1177:;case 169:;case 1181:;case 551:;case 552:;case 661:;case 639:;case 478:;case 151:;case 537:;case 477:;case 536:;case 1103:;case 680:;case 1104:;case 1024:;case 152:;case 663:;case 535:;case 678:;case 504:;case 1043:;case 428:;case 170:;case 50:;case 2070:;case 1045:;case 147:break;case 35:u=true;break;case 36:u=false;break;case 37:break;case 38:break;default:if((r||"").indexOf("Begin")>0){}else if((r||"").indexOf("End")>0){}else if(!u||s.WTF)throw new Error("Unexpected rec
break;case"Width":break;default:ae=false;}break;case"WorksheetOptions":switch(l[3]){case"Visible":if(l[0].slice(-2)==="/>"){}else if(l[1]==="/")switch(a.slice(_,l.index)){case"SheetHidden":Y.Hidden=1;break;case"SheetVeryHidden":Y.Hidden=2;break;}else _=l.index+l[0].length;break;case"Header":if(!v["!margins"])Du(v["!margins"]={},"xlml");v["!margins"].header=ue(l[0]).Margin;break;case"Footer":if(!v["!margins"])Du(v["!margins"]={},"xlml");v["!margins"].footer=ue(l[0]).Margin;break;case"PageMargins":var ne=ue(l[0]);if(!v["!margins"])Du(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":break;case"ProtectObjects":break;case"EnableSelection":break;case"ProtectScenarios":break;case"ValidPrinterInfo":break;case"HorizontalResolution":break;case"VerticalResolution":break;case"NumberofCopies":break;case"ActiveRow":break;case"ActiveCol":break;case"ActivePane":break;case"TopRowVisible":break;case"TopRowBottomPane":break;case"LeftColumnVisible":break;case"LeftColumnRightPane":break;case"FitToPage":break;case"RangeSelection":break;case"PaperSizeIndex":break;case"PageLayoutZoom":break;case"PageBreakZoom":break;case"FilterOn":break;case"DoNotDisplayGridlines":break;case"SplitHorizontal":break;case"SplitVertical":break;case"FreezePanes":break;case"FrozenNoSplit":break;case"FitWidth":break;case"FitHeight":break;case"CommentsLayout":break;case"Zoom":break;case"LeftToRight":break;case"Gridlines":break;case"AllowSort":break;case"AllowFilter":break;case"AllowInsertRows":break;case"AllowDeleteRows":break;case"AllowInsertCols":break;case"AllowDeleteCols":break;case"AllowInsertHyperlinks":break;case"AllowFormatCells":break;case"AllowSizeCols":break;case"AllowSizeRows":break;case"NoSummaryRowsBelowDetail":break;case"TabColorIndex":break;case"DoNotDisplayHeadings":break;case"ShowPageLayoutZoom":break;case"NoSummaryColumnsRightDetail":break;case"BlackAndWhite":break;case"DoNotDisplayZeros":break;case"DisplayPageBreak":break;case"RowColHeadings":break;case"DoNotDisplayOutline":break;case"NoOrientation":break;case"AllowUsePivotTables":break;case"ZeroHeight":break;case"ViewableRange":break;case"Selection":break;case"ProtectContents":break;default:ae=false;}break;case"PivotTable":;case"PivotCache":switch(l[3]){case"ImmediateItemsOnDrop":break;case"ShowPageMultipleItemLabel":break;case"CompactRowIndent":break;case"Location":break;case"PivotField":break;case"Orientation":break;case"LayoutForm":break;case"LayoutSubtotalLocation":break;case"LayoutCompactRow":break;case"Position":break;case"PivotItem":break;case"DataType":break;case"DataField":break;case"SourceName":break;case"ParentField":break;case"PTLineItems":break;case"PTLineItem":break;case"CountOfSameItems":break;case"Item":break;case"ItemType":break;case"PTSource":break;case"CacheIndex":break;case"ConsolidationReference":break;case"FileName":break;case"Reference":break;case"NoColumnGrand":break;case"NoRowGrand":break;case"BlankLineAfterItems":break;case"Hidden":break;case"Subtotal":break;case"BaseField":break;case"MapChildItems":break;case"Function":break;case"RefreshOnFileOpen":break;case"PrintSetTitles":break;case"MergeLabels":break;case"DefaultVersion":break;case"RefreshName":break;case"RefreshDate":break;case"RefreshDateCopy":break;case"VersionLastRefresh":break;case"VersionLastUpdate":break;case"VersionUpdateableMin":break;case"VersionRefreshableMin":break;case"Calculation":break;default:ae=false;}break;case"PageBreaks":switch(l[3]){case"ColBreaks":break;case"ColBreak":break;case"RowBreaks":break;case"RowBreak":break;case"ColStart":break;case"ColEnd":break;case"RowEnd":break;default:ae=false;}break;case"AutoFilter":switch(l[3]){case"AutoFilterColumn":break;case"AutoFilterCondition":break;case"AutoFilterAnd":break;case"AutoFilterOr":break;default:ae=false;}break;case"QueryTable":switch(l[3]){case
},205:{n:"BrtBeginECOlapProps"},206:{n:"BrtEndECOlapProps"},207:{n:"BrtBeginPCDSConsol"},208:{n:"BrtEndPCDSConsol"},209:{n:"BrtBeginPCDSCPages"},210:{n:"BrtEndPCDSCPages"},211:{n:"BrtBeginPCDSCPage"},212:{n:"BrtEndPCDSCPage"},213:{n:"BrtBeginPCDSCPItem"},214:{n:"BrtEndPCDSCPItem"},215:{n:"BrtBeginPCDSCSets"},216:{n:"BrtEndPCDSCSets"},217:{n:"BrtBeginPCDSCSet"},218:{n:"BrtEndPCDSCSet"},219:{n:"BrtBeginPCDFGroup"},220:{n:"BrtEndPCDFGroup"},221:{n:"BrtBeginPCDFGItems"},222:{n:"BrtEndPCDFGItems"},223:{n:"BrtBeginPCDFGRange"},224:{n:"BrtEndPCDFGRange"},225:{n:"BrtBeginPCDFGDiscrete"},226:{n:"BrtEndPCDFGDiscrete"},227:{n:"BrtBeginPCDSDTupleCache"},228:{n:"BrtEndPCDSDTupleCache"},229:{n:"BrtBeginPCDSDTCEntries"},230:{n:"BrtEndPCDSDTCEntries"},231:{n:"BrtBeginPCDSDTCEMembers"},232:{n:"BrtEndPCDSDTCEMembers"},233:{n:"BrtBeginPCDSDTCEMember"},234:{n:"BrtEndPCDSDTCEMember"},235:{n:"BrtBeginPCDSDTCQueries"},236:{n:"BrtEndPCDSDTCQueries"},237:{n:"BrtBeginPCDSDTCQuery"},238:{n:"BrtEndPCDSDTCQuery"},239:{n:"BrtBeginPCDSDTCSets"},240:{n:"BrtEndPCDSDTCSets"},241:{n:"BrtBeginPCDSDTCSet"},242:{n:"BrtEndPCDSDTCSet"},243:{n:"BrtBeginPCDCalcItems"},244:{n:"BrtEndPCDCalcItems"},245:{n:"BrtBeginPCDCalcItem"},246:{n:"BrtEndPCDCalcItem"},247:{n:"BrtBeginPRule"},248:{n:"BrtEndPRule"},249:{n:"BrtBeginPRFilters"},250:{n:"BrtEndPRFilters"},251:{n:"BrtBeginPRFilter"},252:{n:"BrtEndPRFilter"},253:{n:"BrtBeginPNames"},254:{n:"BrtEndPNames"},255:{n:"BrtBeginPName"},256:{n:"BrtEndPName"},257:{n:"BrtBeginPNPairs"},258:{n:"BrtEndPNPairs"},259:{n:"BrtBeginPNPair"},260:{n:"BrtEndPNPair"},261:{n:"BrtBeginECWebProps"},262:{n:"BrtEndECWebProps"},263:{n:"BrtBeginEcWpTables"},264:{n:"BrtEndECWPTables"},265:{n:"BrtBeginECParams"},266:{n:"BrtEndECParams"},267:{n:"BrtBeginECParam"},268:{n:"BrtEndECParam"},269:{n:"BrtBeginPCDKPIs"},270:{n:"BrtEndPCDKPIs"},271:{n:"BrtBeginPCDKPI"},272:{n:"BrtEndPCDKPI"},273:{n:"BrtBeginDims"},274:{n:"BrtEndDims"},275:{n:"BrtBeginDim"},276:{n:"BrtEndDim"},277:{n:"BrtIndexPartEnd"},278:{n:"BrtBeginStyleSheet"},279:{n:"BrtEndStyleSheet"},280:{n:"BrtBeginSXView"},281:{n:"BrtEndSXVI"},282:{n:"BrtBeginSXVI"},283:{n:"BrtBeginSXVIs"},284:{n:"BrtEndSXVIs"},285:{n:"BrtBeginSXVD"},286:{n:"BrtEndSXVD"},287:{n:"BrtBeginSXVDs"},288:{n:"BrtEndSXVDs"},289:{n:"BrtBeginSXPI"},290:{n:"BrtEndSXPI"},291:{n:"BrtBeginSXPIs"},292:{n:"BrtEndSXPIs"},293:{n:"BrtBeginSXDI"},294:{n:"BrtEndSXDI"},295:{n:"BrtBeginSXDIs"},296:{n:"BrtEndSXDIs"},297:{n:"BrtBeginSXLI"},298:{n:"BrtEndSXLI"},299:{n:"BrtBeginSXLIRws"},300:{n:"BrtEndSXLIRws"},301:{n:"BrtBeginSXLICols"},302:{n:"BrtEndSXLICols"},303:{n:"BrtBeginSXFormat"},304:{n:"BrtEndSXFormat"},305:{n:"BrtBeginSXFormats"},306:{n:"BrtEndSxFormats"},307:{n:"BrtBeginSxSelect"},308:{n:"BrtEndSxSelect"},309:{n:"BrtBeginISXVDRws"},310:{n:"BrtEndISXVDRws"},311:{n:"BrtBeginISXVDCols"},312:{n:"BrtEndISXVDCols"},313:{n:"BrtEndSXLocation"},314:{n:"BrtBeginSXLocation"},315:{n:"BrtEndSXView"},316:{n:"BrtBeginSXTHs"},317:{n:"BrtEndSXTHs"},318:{n:"BrtBeginSXTH"},319:{n:"BrtEndSXTH"},320:{n:"BrtBeginISXTHRws"},321:{n:"BrtEndISXTHRws"},322:{n:"BrtBeginISXTHCols"},323:{n:"BrtEndISXTHCols"},324:{n:"BrtBeginSXTDMPS"},325:{n:"BrtEndSXTDMPs"},326:{n:"BrtBeginSXTDMP"},327:{n:"BrtEndSXTDMP"},328:{n:"BrtBeginSXTHItems"},329:{n:"BrtEndSXTHItems"},330:{n:"BrtBeginSXTHItem"},331:{n:"BrtEndSXTHItem"},332:{n:"BrtBeginMetadata"},333:{n:"BrtEndMetadata"},334:{n:"BrtBeginEsmdtinfo"},335:{n:"BrtMdtinfo"},336:{n:"BrtEndEsmdtinfo"},337:{n:"BrtBeginEsmdb"},338:{n:"BrtEndEsmdb"},339:{n:"BrtBeginEsfmd"},340:{n:"BrtEndEsfmd"},341:{n:"BrtBeginSingleCells"},342:{n:"BrtEndSingleCells"},343:{n:"BrtBeginList"},344:{n:"BrtEndList"},345:{n:"BrtBeginListCols"},346:{n:"BrtEndListCols"},347:{n:"BrtBeginListCol"},348:{n:"BrtEndListCol"},349:{n:"BrtBeginListXmlCPr"},350:{n:"BrtEndListXmlCPr"},351:{n:"BrtListCCFmla"},352:{n:"BrtListTrFmla"},353:{n:"BrtBeginExternals"},354:{n:"BrtEndExternals"},355:{n:"BrtSupBookSrc",f:Bt},357:{n:"BrtSupSelf"},358:{n:"BrtSupSame"},359:{n:"BrtSupTabs"},360:{n:"BrtBeginSupBook"},361:{n:"BrtPlaceholderName"},362:{n:"BrtExternSheet",f:yi},363:{n:
var S=E[l].trim();if(S.substr(0,3).toLowerCase()!="<td")continue;var k=S,B=0;while(k.charAt(0)=="<"&&(B=k.indexOf(">"))>-1)k=k.slice(B+1);while(k.indexOf(">")>-1)k=k.slice(0,k.lastIndexOf("<"));var C=ue(S.slice(0,S.indexOf(">")));d=C.colspan?+C.colspan:1;if((h=+C.rowspan)>0||d>1)b.push({s:{r:f,c:u},e:{r:f+(h||1)-1,c:u+d-1}});if(!k.length){u+=d;continue}k=Fe(be(k));if(v.s.r>f)v.s.r=f;if(v.e.r<f)v.e.r=f;if(v.s.c>u)v.s.c=u;if(v.e.c<u)v.e.c=u;if(t.dense){if(!a[f])a[f]=[];if(!k.length){}else if(t.raw||!k.trim().length)a[f][u]={t:"s",v:k};else if(k==="TRUE")a[f][u]={t:"b",v:true};else if(k==="FALSE")a[f][u]={t:"b",v:false};else if(!isNaN(z(k)))a[f][u]={t:"n",v:z(k)};else a[f][u]={t:"s",v:k}}else{var w=$r({r:f,c:u});if(!k.length){}else if(t.raw)a[w]={t:"s",v:k};else if(t.raw||!k.trim().length)a[w]={t:"s",v:k};else if(k==="TRUE")a[w]={t:"b",v:true};else if(k==="FALSE")a[w]={t:"b",v:false};else if(!isNaN(z(k)))a[w]={t:"n",v:z(k)};else a[w]={t:"s",v:k}}u+=d}}a["!ref"]=qr(v);return a}function r(r,t){return at(e(r,t),t)}function t(e,r,t,a){var n=e["!merges"]||[];var i=[];var s="<td"+(a.editable?' contenteditable="true"':"")+"></td>";for(var l=r.s.c;l<=r.e.c;++l){var c=0,f=0;for(var o=0;o<n.length;++o){if(n[o].s.r>t||n[o].s.c>l)continue;if(n[o].e.r<t||n[o].e.c<l)continue;if(n[o].s.r<t||n[o].s.c<l){c=-1;break}c=n[o].e.r-n[o].s.r+1;f=n[o].e.c-n[o].s.c+1;break}if(c<0)continue;var u=$r({r:t,c:l});var h=a.dense?(e[t]||[])[l]:e[u];if(!h||h.v==null){i.push(s);continue}var d=h.h||ge(h.w||(tt(h),h.w)||"");var v={};if(c>1)v.rowspan=c;if(f>1)v.colspan=f;if(a.editable)v.contenteditable="true";v.id="sjs-"+u;i.push(Ue("td",d,v))}var b="<tr>";return b+i.join("")+"</tr>"}function a(e,r,t){var a=[];return a.join("")+"<table>"}var n='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>';var i="</body></html>";function s(e,r,s){var l=r||{};var c=l.header!=null?l.header:n;var f=l.footer!=null?l.footer:i;var o=[c];var u=Jr(e["!ref"]);l.dense=Array.isArray(e);o.push(a(e,u,l));for(var h=u.s.r;h<=u.e.r;++h)o.push(t(e,u,h,l));o.push("</table>"+f);return o.join("")}return{to_workbook:r,to_sheet:e,_row:t,BEGIN:n,END:i,_preamble:a,from_sheet:s}}();function Zv(e,r){var t=r||{};if(o!=null)t.dense=o;var a=t.dense?[]:{};var n=e.getElementsByTagName("tr");var i={s:{r:0,c:0},e:{r:n.length-1,c:0}};var s=[],l=0;var c=0,f=0,u=0,h=0,d=0;for(;c<n.length;++c){var v=n[c];var b=v.children;for(f=u=0;f<b.length;++f){var p=b[f],m=Fe(b[f].innerHTML);for(l=0;l<s.length;++l){var g=s[l];if(g.s.c==u&&g.s.r<=c&&c<=g.e.r){u=g.e.c+1;l=-1}}d=+p.getAttribute("colspan")||1;if((h=+p.getAttribute("rowspan"))>0||d>1)s.push({s:{r:c,c:u},e:{r:c+(h||1)-1,c:u+d-1}});var S={t:"s",v:m};if(m!=null){if(m.length==0)S.t="z";else if(t.raw){}else if(m.trim().length==0)S.t="s";else if(m==="TRUE")S={t:"b",v:true};else if(m==="FALSE")S={t:"b",v:false};else if(!isNaN(z(m)))S={t:"n",v:z(m)};else if(!isNaN(j(m).getDate())){S={t:"d",v:W(m)};if(!t.cellDates)S={t:"n",v:y(S.v)};S.z=t.dateNF||E._table[14]}}if(t.dense){if(!a[c])a[c]=[];a[c][u]=S}else a[$r({c:u,r:c})]=S;if(i.e.c<u)i.e.c=u;u+=d}}a["!merges"]=s;a["!ref"]=qr(i);return a}function Jv(e,r){return at(Zv(e,r),r)}var qv=function(){var e=function(e,r){return be(e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,function(e,r){return Array(parseInt(r,10)+1).join(" ")}).replace(/<text:tab[^>]*\/>/g,"\t").replace(/<text:line-break\/>/g,"\n").replace(/<[^>]*>/g,""))};var r={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};return function t(a,n){var i=n||{};if(o!=null&&i.dense==null)i.dense=o;var s=uv(a);var l=[],c;var f;var u={name:""},h="",d=0;var v;var b;var p={},m=[];var g=i.dense?[]:{};var E,S;var k={value:""};var B="",C=0,w;var T=-1,I=-1,x={s:{r:1e6,c:1e7},e:{r:0,c:0}};var A=0;var R={};var D=[],F={},O=0,P=0;var _=[],N=1,L=1;var U=[];var H=[],V={};var X="",z=0;var j=false;var K=0;hv.lastIndex=0;s=s.replace(/<
return r.type=="base64"?h.encode(t):r.type=="string"?Te(t):t;case"file":return te.writeFileSync(r.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+r.type);}}function Ub(e,r){gd(e);var t=r||{};switch(t.bookType||"xlsb"){case"xml":;case"xlml":return Nb(Tv(e,t),t);case"slk":;case"sylk":return Nb(cb(e,t),t);case"html":return Nb(sb(e,t),t);case"txt":return Mb(hb(e,t),t);case"csv":return Nb(lb(e,t),t,"\ufeff");case"dif":return Nb(fb(e,t),t);case"prn":return Nb(ob(e,t),t);case"rtf":return Nb(ub(e,t),t);case"fods":return Nb(nb(e,t),t);case"biff2":if(!t.biff)t.biff=2;case"biff3":if(!t.biff)t.biff=3;case"biff4":if(!t.biff)t.biff=4;return Lb($v(e,t),t);case"biff5":if(!t.biff)t.biff=5;return yb(e,t);case"biff8":;case"xls":if(!t.biff)t.biff=8;return yb(e,t);case"xlsx":;case"xlsm":;case"xlsb":;case"ods":return _b(e,t);default:throw new Error("Unrecognized bookType |"+t.bookType+"|");}}function Wb(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="biff8";break;case".xml":e.bookType="xml";break;case".ods":e.bookType="ods";break;case".csv":e.bookType="csv";break;case".txt":e.bookType="txt";break;case".dif":e.bookType="dif";break;case".prn":e.bookType="prn";break;case".rtf":e.bookType="rtf";break;case".slk":e.bookType="sylk";break;case".htm":e.bookType="html";break;}}function Hb(e,r,t){var a=t||{};a.type="file";a.file=r;Wb(a);return Ub(e,a)}function Vb(e,r,t,a){var n=t||{};n.type="file";n.file=e;Wb(n);n.type="buffer";var i=a;if(!(i instanceof Function))i=t;return te.writeFile(e,Ub(r,n),i)}function Gb(e,r){if(e==null||e["!ref"]==null)return[];var t={t:"n",v:0},a=0,n=1,i=[],s=true,l=0,c="";var f={s:{r:0,c:0},e:{r:0,c:0}};var o=r||{};var u=o.raw;var h=o.defval;var d=o.range!=null?o.range:e["!ref"];if(o.header===1)a=1;else if(o.header==="A")a=2;else if(Array.isArray(o.header))a=3;switch(typeof d){case"string":f=et(d);break;case"number":f=et(e["!ref"]);f.s.r=d;break;default:f=d;}if(a>0)n=0;var v=Wr(f.s.r);var b=[];var p=[];var m=0,g=0;var E=Array.isArray(e);var S=f.s.r,k=0,B=0;if(E&&!e[S])e[S]=[];for(k=f.s.c;k<=f.e.c;++k){b[k]=Xr(k);t=E?e[S][k]:e[b[k]+v];switch(a){case 1:i[k]=k-f.s.c;break;case 2:i[k]=b[k];break;case 3:i[k]=o.header[k-f.s.c];break;default:if(t==null)continue;c=l=tt(t,null,o);g=0;for(B=0;B<i.length;++B)if(i[B]==c)c=l+"_"+ ++g;i[k]=c;}}var C=a===1?[]:{};for(S=f.s.r+n;S<=f.e.r;++S){v=Wr(S);s=true;if(a===1)C=[];else{C={};if(Object.defineProperty)try{Object.defineProperty(C,"__rowNum__",{value:S,enumerable:false})}catch(w){C.__rowNum__=S}else C.__rowNum__=S}if(!E||e[S])for(k=f.s.c;k<=f.e.c;++k){t=E?e[S][k]:e[b[k]+v];if(t===undefined||t.t===undefined){if(h===undefined)continue;if(i[k]!=null){C[i[k]]=h;s=false}continue}l=t.v;switch(t.t){case"z":if(l==null)break;continue;case"e":continue;case"s":;case"d":;case"b":;case"n":break;default:throw new Error("unrecognized type "+t.t);}if(i[k]!=null){if(l==null){if(h!==undefined)C[i[k]]=h;else if(u&&l===null)C[i[k]]=null;else continue}else{C[i[k]]=u?l:tt(t,l,o)}s=false}}if(s===false||(a===1?o.blankrows!==false:!!o.blankrows))p[m++]=C}p.length=m;return p}var Xb=/"/g;function zb(e,r,t,a,n,i,s,l){var c=true;var f=[],o="",u=Wr(t);for(var h=r.s.c;h<=r.e.c;++h){if(!a[h])continue;var d=l.dense?(e[t]||[])[h]:e[a[h]+u];if(d==null)o="";else if(d.v!=null){c=false;o=""+tt(d,null,l);for(var v=0,b=0;v!==o.length;++v)if((b=o.charCodeAt(v))===n||b===i||b===34){o='"'+o.replace(Xb,'""')+'"';break}if(o=="ID")o='"ID"'}else if(d.f!=null&&!d.F){c=false;o="="+d.f;if(o.indexOf(",")>=0)o='"'+o.replace(Xb,'""')+'"'}else o="";f.push(o)}if(l.blankrows===false&&c)return null;return f.join(s)}function jb(e,r){var t=[];var a=r==null?{}:r;if(e==null||e["!ref"]==null)return"";var n=et(e["!ref"]);var i=a.FS!==undefined?a.FS:",",s=i.charCodeAt(0);var l=a.RS!==undefined?a.RS:"\n",c=l.charCodeAt(0);var f=n