sheetjs/dist/xlsx.min.js

14 lines
343 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.5";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 Pb(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 _b(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 yb(){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 k=function Nb(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=Ar(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=Ar(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
}var Ft={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"};var Ot=F(Ft);function Pt(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=ta[s];if(h)t.rgb=ul(h);break;case 2:t.rgb=ul([c,f,o]);break;case 3:t.theme=s;break;}if(l!=0)t.tint=l>0?l/32767:l/32768;return t}function _t(e,r){if(!r)r=Ar(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 yt(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 Nt(e,r){if(!r)r=Ar(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 Mt=2;var Lt=3;var Ut=11;var Wt=12;var Ht=19;var Vt=21;var Xt=30;var Gt=64;var zt=71;var jt=4096;var Kt=80;var Yt=81;var $t=[Kt,Yt]}var Qt={1:{n:"CodePage",t:Mt},2:{n:"Category",t:Kt},3:{n:"PresentationFormat",t:Kt},4:{n:"ByteCount",t:Lt},5:{n:"LineCount",t:Lt},6:{n:"ParagraphCount",t:Lt},7:{n:"SlideCount",t:Lt},8:{n:"NoteCount",t:Lt},9:{n:"HiddenCount",t:Lt},10:{n:"MultimediaClipCount",t:Lt},11:{n:"Scale",t:Ut},12:{n:"HeadingPair",t:jt|Wt},13:{n:"DocParts",t:jt|Xt},14:{n:"Manager",t:Kt},15:{n:"Company",t:Kt},16:{n:"LinksDirty",t:Ut},17:{n:"CharacterCount",t:Lt},19:{n:"SharedDoc",t:Ut},22:{n:"HLinksChanged",t:Ut},23:{n:"AppVersion",t:Lt,p:"version"},26:{n:"ContentType",t:Kt},27:{n:"ContentStatus",t:Kt},28:{n:"Language",t:Kt},29:{n:"Version",t:Kt},255:{}};var Zt={1:{n:"CodePage",t:Mt},2:{n:"Title",t:Kt},3:{n:"Subject",t:Kt},4:{n:"Author",t:Kt},5:{n:"Keywords",t:Kt},6:{n:"Comments",t:Kt},7:{n:"Template",t:Kt},8:{n:"LastAuthor",t:Kt},9:{n:"RevNumber",t:Kt},10:{n:"EditTime",t:Gt},11:{n:"LastPrinted",t:Gt},12:{n:"CreatedDate",t:Gt},13:{n:"ModifiedDate",t:Gt},14:{n:"PageCount",t:Lt},15:{n:"WordCount",t:Lt},16:{n:"CharCount",t:Lt},17:{n:"Thumbnail",t:zt},18:{n:"ApplicationName",t:Xt},19:{n:"DocumentSecurity",t:Lt},255:{}};var Jt={2147483648:{n:"Locale",t:Ht},2147483651:{n:"Behavior",t:Ht},1919054434:{}};(function(){for(var e in Jt)if(Jt.hasOwnProperty(e))Qt[e]=Zt[e]=Jt[e]})();var qt={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 ea=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function ra(e){return e.map(function(e){return[e>>16&255,e>>8&255,e&255]})}var ta=ra([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,0,0,0,0,0,0,0,0,0,0,0]);var aa={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms
6:Gn,7:Xn,8:Gn,9:Gn,10:Gn,11:Gn,12:Gn,13:Vn,14:Gn,15:Gn,16:Gn,17:Gn,18:Gn,19:Gn,20:Gn,21:Hn};function jn(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(zn[i](e,a-e.l))}catch(s){e.l=a;return n}}if(e.l!=a)e.l=a;return n}function Kn(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 Yn(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=Ar(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 $n(e,r){if(r===0)return 1200;var t;if((t=e._R(2))!==1200){}return 1200}function Qn(e,r,t){if(t.enc){e.l+=r;return""}var a=e.l;var n=Sn(e,0,t);e._R(r+a-e.l);return n}function Zn(e,r){var t=Ar(112);t._W(r.biff==8?2:1,7);t._W(1,0);t._W(4,859007059);t._W(4,5458548);while(t.l<t.length)t._W(1,0);return t}function Jn(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=gn(e,0,t);if(s.length===0)s="Sheet1";return{pos:a,hs:n,dt:i,name:s}}function qn(e,r){var t=Ar(8+2*e.name.length);t._W(4,e.pos);t._W(1,e.hs||0);t._W(1,e.dt);t._W(1,e.name.length);t._W(1,1);t._W(2*e.name.length,e.name,"utf16le");return t}function ei(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(En(e))}i.Count=a;i.Unique=n;return i}function ri(e,r){var t={};t.dsst=e._R(2);e.l+=r-2;return t}function ti(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 ai(e,r){var t=Pn(e);if(t.type!=2211)throw new Error("Invalid Future Record "+t.type);var a=e._R(4);return a!==0}function ni(e,r){e._R(2);return e._R(4)}function ii(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 si(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 li(e){var r=Ar(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 ci(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=gn(e,0,t);return a}function fi(e,r){var t=Fn(e);t.isst=e._R(4);return t}function oi(e,r,t){var a=e.l+r;var n=Fn(e,6);if(t.biff==2)e.l++;var i=Sn(e,a-e.l,t);n.val=i;return n}function ui(e,r,t,a){var n=Ar(6+3+2*t.length);On(e,r,0,n);n._W(2,t.length);n._W(1,1);n._W(2*t.length,t,"utf16le");return n}function hi(e,r,t){var a=e._R(2);var n=Bn(e,0,t);return[a,n]}var di=Bn;function vi(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 bi(e,r){var t=Ar(14);t._W(4,e.s.r);t._W(4,e.e.r+1);t._W(2,e.s.c);t._W(2,e.e.c+1);t._W(2,0);return t}function pi(e,r){var t=e._R(2),a=e._R(2);var n=Nn(e);return{r:t,c:a,ixfe:n[0],rknum:n[1]}}function mi(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(Nn(e));if(e.l!==t)throw new Error("MulRK read error");var s=e._R(2);if(i.length!=s-n+1)throw new Error("MulRK length mismatch");return{r:a,c:n,C:s,rkrec:i}}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(e._R(2));if(e.l!==t)throw new Error("MulBlank read error");var s=e._R(2);if(i.length!=s-n+1)throw new Error("MulBlank length mismatch");return{r:a,c:n,C:s,ixfe:i}}function Ei(e,r,t,a){var n={};var i=e._R(4),s=e._R(4);var l=e._R(4),c=e._R(2);n.patternType=ea[l>>26];if(!
function Os(e,r){var t=[],a="";if(!e)return t;var n=e.match(Rs);if(x(n)){a=n[2].replace(Ds,"").split(Fs);for(var i=0;i!=a.length;++i){var s=As(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}ua.SST="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings";var Ps=/^\s|\s$|[\t\n\r]/;function _s(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(Ps))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 ys(e,r){return[e._R(4),e._R(4)]}function Ns(e,r){var t=[];var a=false;Rr(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 Ms(e,r){if(!r)r=Ar(8);r._W(4,e.Count);r._W(4,e.Unique);return r}var Ls=ot;function Us(e,r){var t=Dr();Fr(t,"BrtBeginSst",Ms(e));for(var a=0;a<e.length;++a)Fr(t,"BrtSSTItem",Ls(e[a]));Fr(t,"BrtEndSst");return t.end()}function Ws(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 Hs(e,r){var t={};t.Major=e._R(2);t.Minor=e._R(2);if(r>=4)e.l+=r-4;return t}function Vs(e,r){var t={};t.id=e._R(0,"lpp4");t.R=Hs(e,4);t.U=Hs(e,4);t.W=Hs(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 Gs(e,r){var t=[];e.l+=4;var a=e._R(4);while(a-- >0)t.push(Xs(e));return t}function zs(e,r){var t=[];e.l+=4;var a=e._R(4);while(a-- >0)t.push(e._R(0,"lpp4"));return t}function js(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=Hs(e,4);t.U=Hs(e,4);t.W=Hs(e,4);return t}function Ks(e,r){var t=js(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 Ys(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 $s(e,r){var t={};e.l+=4;t.Salt=e.slice(e.l,e.l+16);e.l+=16;t.Verifier=e.slice(e.l,e.l+16);e.l+=16;var a=e._R(4);t.VerifierHash=e.slice(e.l,e.l+a);e.l+=a;return t}function Qs(e,r){var t=Hs(e);switch(t.Minor){case 2:return Zs(e,t);case 3:return Js(e,t);case 4:return qs(e,t);}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}function Zs(e,r){var t=e._R(4);if((t&63)!=36)throw new Error("EncryptionInfo mismatch");var a=e._R(4);var n=e.l+a;var i=Ys(e,a);var s=$s(e,e.length-e.l);return{t:"Std",h:i,v:s}}function Js(e,r){throw new Error("File is password-protected: ECMA-376 Extensible")}function qs(e,r){throw new Error("File is password-protected: ECMA-376 Agile")}function el(e,r){var t={};var a=t.EncryptionVersionInfo=Hs(e,4);r-=4;if(a.Minor!=2)throw new Error("unrecognized minor version code: "+a.Minor);if(a.Major>4||a.Major<2)throw new Error("unrecognized major version code: "+a.Major);t.Flags=e._R(4);r-=4;var n=e._R(4);r-=4;t.EncryptionHeader=Ys(e,n);r-=n;t.EncryptionVerifier=$s(e,r);return t}function rl(e,r){var t={};var a=t.EncryptionVersionInfo=Hs(e,4);r-=4;if(a.Major!=1||a.Minor!=1)throw"unrecognized version code "+a.Major+" : "+a.Minor;t.Salt=e._R(16);t.EncryptedVerifier=e._R(
t[t.length]="</a:effectLst>";t[t.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>';t[t.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>';t[t.length]="</a:effectStyle>";t[t.length]="</a:effectStyleLst>";t[t.length]="<a:bgFillStyleLst>";t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>';t[t.length]='<a:gradFill rotWithShape="1">';t[t.length]="<a:gsLst>";t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>';t[t.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>';t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>';t[t.length]="</a:gsLst>";t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>';t[t.length]="</a:gradFill>";t[t.length]='<a:gradFill rotWithShape="1">';t[t.length]="<a:gsLst>";t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>';t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>';t[t.length]="</a:gsLst>";t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>';t[t.length]="</a:gradFill>";t[t.length]="</a:bgFillStyleLst>";t[t.length]="</a:fmtScheme>";t[t.length]="</a:themeElements>";t[t.length]="<a:objectDefaults>";t[t.length]="<a:spDef>";t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>';t[t.length]="</a:spDef>";t[t.length]="<a:lnDef>";t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>';t[t.length]="</a:lnDef>";t[t.length]="</a:objectDefaults>";t[t.length]="<a:extraClrSchemeLst/>";t[t.length]="</a:theme>";return t.join("")}function Ac(e,r,t){var a=e._R(4);if(a===124226)return;e.l+=r-4}function Rc(e,r){return e._R(4)}function Dc(e,r){var t={};t.xclrType=e._R(2);t.nTintShade=e._R(2);switch(t.xclrType){case 0:e.l+=4;break;case 1:t.xclrValue=Fc(e,4);break;case 2:t.xclrValue=Rn(e,4);break;case 3:t.xclrValue=Rc(e,4);break;case 4:e.l+=4;break;}e.l+=8;return t}function Fc(e,r){return Tr(e,r)}function Oc(e,r){return Tr(e,r)}function Pc(e,r){var t=e._R(2);var a=e._R(2);var n=[t];switch(t){case 4:;case 5:;case 7:;case 8:;case 9:;case 10:;case 11:;case 13:n[1]=Dc(e,a);break;case 6:n[1]=Oc(e,a);break;case 14:;case 15:n[1]=e._R(a===5?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+a);}return n}function _c(e,r){var t=e.l+r;e.l+=2;var a=e._R(2);e.l+=2;var n=e._R(2);var i=[];while(n-- >0)i.push(Pc(e,t-e.l));return{ixfe:a,ext:i}}function yc(e,r){r.forEach(function(e){switch(e[0]){case 4:break;case 5:break;case 6:break;case 7:break;case 8:break;case 9:break;case 10:break;case 11:break;case 13:break;case 14:break;case 15:break;}})}function Nc(e,r,t){var a=[];if(!e)return a;var n=0,i=1;(e.match(ce)||[]).forEach(function(e){var r=ue(e);switch(r[0]){case"<?xml":break;case"<calcChain":;case"<calcChain>":;case"</calcChain>":break;case"<c":delete r[0];if(r.i)i=r.i;else r.i=i;a.push(r);break;}});return a}function Mc(e,r){}function Lc(e,r){var t={};t.i=e._R(4);var a={};a.r=e._R(4);a.c=e._R(4);t.r=Yr(a);var n=e._R(1);if(n&2)t.l="1";if(n&8)t.a="1";return t}function Uc(e,r,t){var a=[];var n=false;Rr(e,function i(e,r,s){switch(s){case 63:a.push(e);break;default:if((r||"").indexOf("Begin")>0){}else if((r||"
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 au={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273
width:e.w/256,hidden:!!(e.flags&1)};if(!_){_=true;Tl(e.w/256)}xl(D[e.e+1])}break;case 161:l["!autofilter"]={ref:Jr(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 record "+a+" "+r);}},s);delete s.supbooks;delete s["!row"];if(!l["!ref"]&&(f.s.r<2e6||c&&(c.e.r>0||c.e.c>0||c.s.r>0||c.s.c>0)))l["!ref"]=Jr(c||f);if(s.sheetRows&&l["!ref"]){var y=qr(l["!ref"]);if(s.sheetRows<+y.e.r){y.e.r=s.sheetRows-1;if(y.e.r>f.e.r)y.e.r=f.e.r;if(y.e.r<y.s.r)y.s.r=y.e.r;if(y.e.c>f.e.c)y.e.c=f.e.c;if(y.e.c<y.s.c)y.s.c=y.e.c;l["!fullref"]=l["!ref"];l["!ref"]=Jr(y)}}if(C.length>0)l["!merges"]=C;if(D.length>0)l["!cols"]=D;if(F.length>0)l["!rows"]=F;return l}function wh(e,r,t,a,n,i){if(r.v===undefined)return"";var s="";var l=null;switch(r.t){case"b":s=r.v?"1":"0";break;case"d":r.z=r.z||E._table[14];l=r.v;r.v=y(r.v);r.t="n";break;case"n":;case"e":s=""+r.v;break;default:s=r.v;break;}var c={r:t,c:a};c.s=vu(n.cellXfs,r,n);if(r.l)i["!links"].push([Yr(c),r.l]);if(r.c)i["!comments"].push([Yr(c),r.c]);switch(r.t){case"s":;case"str":if(n.bookSST){s=uu(n.Strings,r.v);c.t="s";c.v=s;Fr(e,"BrtCellIsst",eh(r,c))}else{c.t="str";Fr(e,"BrtCellSt",sh(r,c))}return;case"n":if(r.v==(r.v|0)&&r.v>-1e3&&r.v<1e3)Fr(e,"BrtCellRk",nh(r,c));else Fr(e,"BrtCellReal",th(r,c));if(l){r.t="d";r.v=l}return;case"b":c.t="b";Fr(e,"BrtCellBool",Zu(r,c));return;case"e":c.t="e";break;}Fr(e,"BrtCellBlank",$u(r,c))}function Th(e,r,t,a,n){var i=qr(r["!ref"]||"A1"),s,l="",c=[];Fr(e,"BrtBeginSheetData");var f=Array.isArray(r);var o=i.e.r;if(r["!rows"])o=Math.max(i.e.r,r["!rows"].length-1);for(var u=i.s.r;u<=o;++u){l=Ur(u);Vu(e,r,i,u);if(u<=i.e.r)for(var h=i.s.c;h<=i.e.c;++h){if(u===i.s.r)c[h]=Xr(h);s=c[h]+l;var d=f?(r[u]||[])[h]:r[s];if(!d)continue;wh(e,d,u,h,a,r)}}Fr(e,"BrtEndSheetData")}function Ih(e,r){if(!r||!r["!merges"])return;Fr(e,"BrtBeginMergeCells",dh(r["!merges"].length));r["!merges"].forEach(function(r){Fr(e,"BrtMergeCell",hh(r))});Fr(e,"BrtEndMergeCells")}function xh(e,r,t,a,n){if(!r||!r["!cols"])return;Fr(e,"BrtBeginColInfos");r["!cols"].forEach(function(r,t){if(r)Fr(e,"BrtColInfo",gh(t,r))});Fr(e,"BrtEndColInfos")}function Ah(e,r,t){r["!links"].forEach(function(r){if(!r[1].Target)return;var a=pa(t,-1,r[1].Target.replace(/#.*$/,""),ua.HLINK);Fr(e,"BrtHLink",bh(r,a))});delete r["!links"]}function Rh(e,r,t,a){if(r["!comments"].length>0){var n=pa(a,-1,"../drawings/vmlDrawing"+(t+1)+".vml",ua.VML);Fr(e,"BrtLegacyDrawing",Bt("rId"+n));r["!legacy"]=n}}function Dh(e,r){if(!r["!autofilter"])return;Fr(e,"BrtBeginAFilter",At(Zr(r["!autofilter"].ref)));Fr(e,"BrtEndAFilter")}function Fh(e,r){Fr(e,"BrtBeginWsViews");{Fr(e,"BrtBeginWsView",Sh(r));Fr(e,"BrtEndWsView")}Fr(e,"BrtEndWsViews")}function Oh(e,r){}function Ph(e,r){if(!r["!protect"])return;Fr(e,"BrtSheetProtection",Bh(r["!protect"]))}function _h(e,r,t,a){var n=Dr();var i=t.SheetNames[e],s=t.Sheets[i]||{};var l=qr(s["!ref"]||"A1");s["!links"]=[];s["!comments"]=[];Fr(n,"BrtBeginSheet");Fr(n,"BrtWsProp",Ku(i));Fr(n,"BrtWsDim",Gu(l));Fh(n,s);Oh(n,s);xh(n,s,e,r,t);Th(n,s,e,r,t);Ph(n,s);Dh(n,s);Ih(n,s);Ah(n,s,a);if(s["!margins"])Fr(n,"BrtMargins",kh(s["!margins"]));Rh(n,s,e,a);Fr(n,"BrtEndSheet");return n.end()}function yh(e){var r=[];(e.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/gm)||[]).forEach(function(e){var t=e.match(/<c:pt idx="(.*?)"><c:v>(.*)<\/c:v><\/c:pt>/);if(!t)return;r[+t[1]]=+t[2]});var t=be((e.match(/
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"Id":break;case"AutoFormatFont":break;case"AutoFormatPattern":break;case"QuerySource":break;case"QueryType":break;case"EnableRedirections":break;case"RefreshedInXl9":break;case"URLString":break;case"HTMLTables":break;case"Connection":break;case"CommandText":break;case"RefreshInfo":break;case"NoTitles":break;case"NextId":break;case"ColumnInfo":break;case"OverwriteCells":break;case"DoNotPromptForFile":break;case"TextWizardSettings":break;case"Source":break;case"Number":break;case"Decimal":break;case"ThousandSeparator":break;case"TrailingMinusNumbers":break;case"FormatSettings":break;case"FieldType":break;case"Delimiters":break;case"Tab":break;case"Comma":break;case"AutoFormatName":break;case"VersionLastEdit":break;case"VersionLastRefresh":break;default:ae=false;}break;case"Sorting":;case"ConditionalFormatting":;case"DataValidation":switch(l[3]){case"Range":break;case"Type":break;case"Min":break;case"Max":break;case"Sort":break;case"Descending":break;case"Order":break;case"CaseSensitive":break;case"Value":break;case"ErrorStyle":break;case"ErrorMessage":break;case"ErrorTitle":break;case"CellRangeList":break;case"InputMessage":break;case"InputTitle":break;case"ComboHide":break;case"InputHide":break;case"Condition":break;case"Qualifier":break;case"UseBlank":break;case"Value1":break;case"Value2":break;case"Format":break;default:ae=false;}break;case"MapInfo":;case"Schema":;case"data":switch(l[3]){case"Map":break;case"Entry":break;case"Range":break;case"XPath":break;case"Field":break;case"XSDType":break;case"FilterOn":break;case"Aggregate":break;case"ElementType":break;case"AttributeType":break;case"schema":;case"element":;case"complexType":;case"datatype":;case"all":;case"attribute":;case"extends":break;case"row":break;default:ae=false;}break;case"SmartTags":break;default:ae=false;break;}if(ae)break;if(!f[f.length-1][1])throw"Unrecognized tag: "+l[3]+"|"+f.join("|");if(f[f.length-1][0]==="CustomDocumentProperties"){if(l[0].slice(-2)==="/>")break;else if(l[1]==="/")Vd(P,l,y,a.slice(_,l.index));else{y=l;_=l.index+l[0].length}break}if(t.WTF)throw"Unrecognized tag: "+l[3]+"|"+f.join("|");}var ie={};if(!t.bookSheets&&!t.bookProps)ie.Sheets=h;ie.SheetNames=d;ie.Workbook=z;ie.SSF=E.get_table();ie.Props=O;ie.Custprops=P;return ie}function Qd(e){if(Array.isArray(e))return e.map(Ld).join("");var r=[];for(var t=0;t<e.length;++t)r[t]=Ld(e[t]);return r.join("")}function Zd(e,r){Qv(r=r||{});switch(r.type||"base64"){case"base64":return $d(h.decode(e),r);case"binary":;case"buffer":;case"file":return $d(e,r);case"array":return $d(Qd(e),r);}}function Jd(e,r){var t=[];if(e.Props)t.push(Ha(e.Props,r));if(e.Custprops)t.push(Va(e.Props,e.Custprops,r));return t.join("")}function qd(e,r){return""}function ev(e,r){return""}function rv(e,r,t,a){if(!e)return"";var n=[];if(e["!margins"]){n.push("<PageSetup>");if(e["!margins"].header)n.push(Ue("Header",null,{"x:Margin":e["!margins"].header}));if(e["!margins"].footer)n.push(Ue("Footer",null,{"x:Margin":e["!margins"].footer}));n.push(Ue("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"}));n.push("</PageSetup>")}if(a&&a.Workbook&&a.Workbook.Sheets&&a.Workbook.Sheets[t]){if(a.Workbook.Sheets[t].Hidden)n.push(Ue("Visible",a.Workbook.Sheets[t].Hidd
},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:St},357:{n:"BrtSupSelf"},358:{n:"BrtSupSame"},359:{n:"BrtSupTabs"},360:{n:"BrtBeginSupBook"},361:{n:"BrtPlaceholderName"},362:{n:"BrtExternSheet",f:_i},363:{n:"BrtExternTableStart"},364:{n:"BrtExternTableEnd"},366:{n:"BrtExternRowHdr"},367:{n:"BrtExternCellBlank"},368:{n:"BrtExternCellReal"},369:{n:"BrtExternCellBool"},370:{n:"BrtExternCellError"},371:{n:"BrtExternCellString"},372:{n:"BrtBeginEsmdx"},373:{n:"BrtEndEsmdx"},374:{n:"BrtBeginMdxSet"},375:{n:"BrtEndMdxSet"},376:{n:"BrtBeginMdxMbrProp"},377:{n:"BrtEndMdxMbrProp"},378:{n:"BrtBeginMdxKPI"},379:{n:"BrtEndMdxKPI"},380:{n:"BrtBeginEsstr"},381:{n:"BrtEndEsstr"},382:{n:"BrtBeginPRFItem"},383:{n:"BrtEndPRFItem"},384:{n:"BrtBeginPivotCacheIDs"},385:{n:"BrtEndPivotCacheIDs"},386:{n:"BrtBeginPivotCacheID"},387:{n:"BrtEndPivotCacheID"},388:{n:"BrtBeginISXVIs"},389:{n:"BrtEndISXVIs"},390:{n:"BrtBeginColInfos"},391:{n:"BrtEndColInfos"},392:{n:"BrtBeginRwBrk"},393:{n:"BrtEndRwBrk"},394:{n:"BrtBeginColBrk"},395:{n:"BrtEndColBrk"},396:{n:"BrtBrk"},397:{n:"BrtUserBookView"},398:{n:"BrtInfo"},399:{n:"BrtCUsr"},400:{n:"BrtUsr"},401:{n:"BrtBeginUsers"},403:{n:"BrtEOF"},404:{n:"BrtUCR"},405:{n:"BrtRRInsDel"},406:{n:"BrtRREndInsDel"},407:{n:"BrtRRMove"},408:{n:"BrtRREndMove"},409:{n:"BrtRRChgCell"},410:{n:"BrtRREndChgCell"},411:{n:"BrtRRHeader"},412:{n:"BrtRRUserView"},413:{n:"BrtRRRenSheet"},414:{n:"BrtRRInsertSh"},415:{n:"BrtRRDefName"},416:{n:"BrtRRNote"},417:{n:"BrtRRConflict"},418:{n:"BrtRRTQSIF"},419:{n:"BrtRRFormat"},420:{n:"BrtRREndFormat"},421:{n:"BrtRRAutoFmt"},422:{n:"BrtBeginUserShViews"},423:{n:"BrtBeginUserShView"},424:{n:"BrtEndUserShView"},425:{n:"BrtEndUserShViews"},426:{n:"BrtArrFmla",f:ph},427:{n:"BrtShrFmla",f:mh},428:{n:"BrtTable"},429:{n:"BrtBeginExtConnections"},430:{n:"BrtEndExtConnections"},431:{n:"BrtBeginPCDCalcMems"},432:{n:"BrtEndPCDCalcMems"},433:{n:"BrtBeginPCDCalcMem"},434:{n:"BrtEndPCDCalcMem"},435:{n:"BrtBeginPCDHGLevels"},436:{n:"BrtEndPCDHGLevels"},437:{n:"BrtBeginPCDHGLevel"},438:{n:"BrtEndPCDHGLevel"},439:{n:"BrtBeginPCDHGLGroups"},440:{n:"BrtEndPCDHGLGroups"},441:{n:"BrtBeginPCDHGLGroup"},442:{n:"BrtEndPCDHGLGroup"},443:{n:"BrtBeginPCDHGLGMembers"},444:{n:"BrtEndPCDHGLGMembers"},445:{n:"BrtBeginPCDHGLGMember"},446:{n:"BrtEndPCDHGLGMember"},447:{n:"BrtBeginQSI"},448:{n:"BrtEndQSI"},449:{n:"BrtBeginQSIR"},450:{n:"BrtEndQSIR"},451:{n:"BrtBeginDeletedNames"},452:{n:"BrtEndDeletedNames"},453:{n:"BrtBeginDeletedName"},454:{n:"BrtEndDeletedName"},455:{n:"BrtBeginQSIFs"},456:{n:"BrtEndQSIFs"},457:{n:"BrtBeginQSIF"},458:{n:"BrtEndQSIF"},459:{n:"BrtBeginAutoSortScope"},460:{n:"BrtEndAutoSortScope"},461:{n:"BrtBeginConditionalFormatting"},462:{n:"BrtEndConditionalFormatting"},463:{n:"BrtBeginCFRule"},464:{n:"BrtEndCFRule"},465:{n:"BrtBeginIconSet"},466:{n:"BrtEndIconSet"},467:{n:"BrtBeginDatabar"},468:{n:"BrtEndDatabar"},469:{n:"BrtBeginColorScale"},470:{n:"BrtEndColorScale"},471:{n:"BrtCFVO"},472:{n:"BrtExternValueMeta"},473:{n:"BrtBeginColorPalette"},474:{n:"BrtEndColorPalette"},475:{n:"BrtIndexedColor"},476:{n:"BrtMargins",f:Eh},477:{n:"BrtPrintOptions"},478:{n:"BrtPageSetup"},479:{n:"BrtBeginHeaderFooter"},480:{n:"BrtEndHeaderFooter"},481:{n:"BrtBeginSXCrtFormat"},482:{n:"BrtEndSXCrtFormat"},483:{n:"BrtBeginSXCrtFormats"},484:{n:"BrtEndSXCrtFormats"},485:{n:"BrtWsFmtInfo",f:zu},486:{n:"BrtBeginMgs"},487:{n:"BrtEndMGs"},488:{n:"BrtBeginMGMaps"},489:{n:"BrtEndMGMaps"},490:{n:"BrtBeginMG"},491:{n:"BrtEndMG"},492:{n:"BrtBeginMap"},493:{n:"BrtEndMap"},494:{n:"BrtHLink",f:vh},495:{n:"BrtBeginDCon"},496:{n:"BrtE
"day-of-week":["ddd","dddd"]};return function t(a,n){var i=n||{};if(o!=null&&i.dense==null)i.dense=o;var s=Kd(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,k;var S={value:""};var B="",C=0,w;var T=-1,I=-1,x={s:{r:1e6,c:1e7},e:{r:0,c:0}};var A={};var R=[],D={},F=0,O=0;var P=[];var _=[],N={};var L="",U=0;var H=1,V=false;var G=0;Yd.lastIndex=0;s=s.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");while(E=Yd.exec(s))switch(E[3]=E[3].replace(/_.*$/,"")){case"table":;case"工作表":if(E[1]==="/"){if(x.e.c>=x.s.c&&x.e.r>=x.s.r)g["!ref"]=Jr(x);if(R.length)g["!merges"]=R;v.name=Te(v["名称"]||v.name);m.push(v.name);p[v.name]=g}else if(E[0].charAt(E[0].length-2)!=="/"){v=ue(E[0],false);T=I=-1;x.s.r=x.s.c=1e7;x.e.r=x.e.c=0;g=i.dense?[]:{};R=[]}break;case"table-row":;case"行":if(E[1]==="/")break;b=ue(E[0],false);if(b["行号"])T=b["行号"]-1;else++T;I=-1;break;case"covered-table-cell":++I;if(i.sheetStubs){if(i.dense){if(!g[T])g[T]=[];g[T][I]={t:"z"}}else g[Yr({r:T,c:I})]={t:"z"}}break;case"table-cell":;case"数据":if(E[0].charAt(E[0].length-2)==="/"){S=ue(E[0],false);if(S["number-columns-repeated"])I+=parseInt(S["number-columns-repeated"],10);else++I}else if(E[1]!=="/"){++I;H=1;if(I>x.e.c)x.e.c=I;if(T>x.e.r)x.e.r=T;if(I<x.s.c)x.s.c=I;if(T<x.s.r)x.s.r=T;S=ue(E[0],false);_=[];N={};k={t:S["数据类型"]||S["value-type"],v:null};if(i.cellFormula){if(S.formula)S.formula=be(S.formula);if(S["number-matrix-columns-spanned"]&&S["number-matrix-rows-spanned"]){F=parseInt(S["number-matrix-rows-spanned"],10)||0;O=parseInt(S["number-matrix-columns-spanned"],10)||0;D={s:{r:T,c:I},e:{r:T+F-1,c:I+O-1}};k.F=Jr(D);P.push([D,k.F])}if(S.formula)k.f=su(S.formula);else for(G=0;G<P.length;++G)if(T>=P[G][0].s.r&&T<=P[G][0].e.r)if(I>=P[G][0].s.c&&I<=P[G][0].e.c)k.F=P[G][1]}if(S["number-columns-spanned"]||S["number-rows-spanned"]){F=parseInt(S["number-rows-spanned"],10)||0;O=parseInt(S["number-columns-spanned"],10)||0;D={s:{r:T,c:I},e:{r:T+F-1,c:I+O-1}};R.push(D)}if(S["number-columns-repeated"])H=parseInt(S["number-columns-repeated"],10);switch(k.t){case"boolean":k.t="b";k.v=we(S["boolean-value"]);break;case"float":k.t="n";k.v=parseFloat(S.value);break;case"percentage":k.t="n";k.v=parseFloat(S.value);break;case"currency":k.t="n";k.v=parseFloat(S.value);break;case"date":k.t="d";k.v=W(S["date-value"]);if(!i.cellDates){k.t="n";k.v=y(k.v)}k.z="m/d/yy";break;case"time":k.t="n";k.v=M(S["time-value"])/86400;break;case"number":k.t="n";k.v=parseFloat(S["数据数值"]);break;default:if(k.t==="string"||k.t==="text"||!k.t){k.t="s";if(S["string-value"]!=null)B=be(S["string-value"])}else throw new Error("Unsupported value type "+k.t);}}else{V=false;if(k.t==="s"){k.v=B||"";V=C==0}if(_.length>0){k.c=_;_=[]}if(B&&i.cellText!==false)k.w=B;if(!V||i.sheetStubs){if(!(i.sheetRows&&i.sheetRows<T)){if(i.dense){if(!g[T])g[T]=[];g[T][I]=k;while(--H>0)g[T][++I]=X(k)}else{g[Yr({r:T,c:I})]=k;while(--H>0)g[Yr({r:T,c:++I})]=X(k)}if(x.e.c<=I)x.e.c=I}}else{I+=H;H=0}k={};B=""}break;case"document":;case"document-content":;case"电子表格文档":;case"spreadsheet":;case"主体":;case"scripts":;case"styles":;case"font-face-decls":if(E[1]==="/"){if((c=l.pop())[0]!==E[3])throw"Bad state: "+c}else if(E[0].charAt(E[0].length-2)!=="/")l.push([E[3],true]);break;case"annotation":if(E[1]==="/"){if((c=l.pop())[0]!==E[3])throw"Bad state: "+c;N.t=B;N.a=L;_.push(N)}else if(E[0].charAt(E[0].length-2)!=="/"){l.push([E[3],false])}L="";U=0;B="";C=0;break;case"creator":if(E[1]==="/"){L=s.slice(U,E.index)}else U=E.index+E[0].length;break;case"meta":;case"元数据":;case"settings":;case"config-item-set":;case"config-item-map-indexed":;case"config-item-map-entry":;case"config-item-map-named":;case"shapes":;case"frame":;case"text-box":;case"image":;case"data-pilot-tables":;case"list-style":;case"form":;case"dde-links":;case"event-listeners":if(E[1]==="/"){if((c=l.pop())[0]!==E[3])throw"Bad state: "+c}else if(E[0].charAt(E[0].length-2)!=="/")l.push([E[3],false]);B="";C=0;break;case"scientific-number":break;case"currency-symbol":br
var f=Array.isArray(e);for(l=n.s.c;l<=n.e.c;++l)s[l]=Xr(l);for(var o=n.s.r;o<=n.e.r;++o){i=Ur(o);for(l=n.s.c;l<=n.e.c;++l){r=s[l]+i;t=f?(e[o]||[])[l]:e[r];a="";if(t===undefined)continue;else if(t.F!=null){r=t.F;if(!t.f)continue;a=t.f;if(r.indexOf(":")==-1)r=r+":"+r}if(t.f!=null)a=t.f;else if(t.t=="z")continue;else if(t.t=="n"&&t.v!=null)a=""+t.v;else if(t.t=="b")a=t.v?"TRUE":"FALSE";else if(t.w!==undefined)a="'"+t.w;else if(t.v===undefined)continue;else if(t.t=="s")a="'"+t.v;else a=""+t.v;c[c.length]=r+"="+a}}return c}function Fb(e,r){var t=r||{};var a={};var n;var i={s:{c:0,r:0},e:{c:0,r:e.length}};var s=t.header||[],l=0;for(var c=0;c!=e.length;++c){Object.keys(e[c]).filter(function(r){return e[c].hasOwnProperty(r)}).forEach(function(r){if((l=s.indexOf(r))==-1)s[l=s.length]=r;var i=e[c][r];var f="z";var o="";if(typeof i=="number")f="n";else if(typeof i=="boolean")f="b";else if(typeof i=="string")f="s";else if(i instanceof Date){f="d";if(!t.cellDates){f="n";i=y(i)}o=t.dateNF||E._table[14]}a[Yr({c:l,r:c+1})]=n={t:f,v:i};if(o)n.z=o})}i.e.c=s.length-1;for(l=0;l<s.length;++l)a[Xr(l)+"1"]={t:"s",v:s[l]};a["!ref"]=Jr(i);return a}var Ob={encode_col:Xr,encode_row:Ur,encode_cell:Yr,encode_range:Jr,decode_col:Vr,decode_row:Lr,split_cell:jr,decode_cell:Kr,decode_range:Zr,format_cell:rt,get_formulae:Db,make_csv:Ab,make_json:Tb,make_formulae:Db,aoa_to_sheet:at,json_to_sheet:Fb,table_to_sheet:Pv,table_to_book:_v,sheet_to_csv:Ab,sheet_to_json:Tb,sheet_to_html:Ov.from_sheet,sheet_to_formulae:Db,sheet_to_row_object_array:Tb};(function(e){e.consts=e.consts||{};function r(r){r.forEach(function(r){e.consts[r[0]]=r[1]})}function t(e,r,t){return e[r]!=null?e[r]:e[r]=t}function a(e,r,t){if(typeof r=="string")return e[r]||(e[r]={t:"z"});if(typeof r!="number")return a(e,Yr(r));return a(e,Yr({r:r,c:t||0}))}function n(e,r){if(typeof r=="number"){if(r>=0&&e.SheetNames.length>r)return r;throw new Error("Cannot find sheet # "+r)}else if(typeof r=="string"){var t=e.SheetNames.indexOf(r);if(t>-1)return t;throw new Error("Cannot find sheet name |"+r+"|")}else throw new Error("Cannot find sheet |"+r+"|")}e.book_new=function(){return{SheetNames:[],Sheets:{}}};e.book_append_sheet=function(e,r,t){if(!t)for(var a=1;a<=65535;++a)if(e.SheetNames.indexOf(t="Sheet"+a)==-1)break;if(!t)throw new Error("Too many worksheets");Jh(t);if(e.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");e.SheetNames.push(t);e.Sheets[t]=r};e.book_set_sheet_visibility=function(e,r,a){t(e,"Workbook",{});t(e.Workbook,"Sheets",[]);var i=n(e,r);t(e.Workbook.Sheets,i,{});switch(a){case 0:;case 1:;case 2:break;default:throw new Error("Bad sheet visibility setting "+a);}e.Workbook.Sheets[i].Hidden=a};r([["SHEET_VISIBLE",0],["SHEET_HIDDEN",1],["SHEET_VERY_HIDDEN",2]]);e.cell_set_number_format=function(e,r){e.z=r;return e};e.cell_set_hyperlink=function(e,r,t){if(!r){delete e.l}else{e.l={Target:r};if(t)e.l.Tooltip=t}return e};e.cell_add_comment=function(e,r,t){if(!e.c)e.c=[];e.c.push({t:r,a:t||"SheetJS"})};e.sheet_set_array_formula=function(e,r,t){var n=typeof r!="string"?r:qr(r);var i=typeof r=="string"?r:Jr(r);for(var s=n.s.r;s<=n.e.r;++s)for(var l=n.s.c;l<=n.e.c;++l){var c=a(e,s,l);c.t="n";c.F=i;delete c.v;if(s==n.s.r&&l==n.s.c)c.f=t}return e};return e})(Ob);if(d&&typeof require!="undefined")(function(){var e={}.Readable;var t=function(r,t){var a=e();var n="";var i=t==null?{}:t;if(r==null||r["!ref"]==null){a.push(null);return a}var s=qr(r["!ref"]);var l=i.FS!==undefined?i.FS:",",c=l.charCodeAt(0);var f=i.RS!==undefined?i.RS:"\n",o=f.charCodeAt(0);var u=new RegExp((l=="|"?"\\|":l)+"+$");var h="",d=[];i.dense=Array.isArray(r);var v=i.skipHidden&&r["!cols"]||[];var b=i.skipHidden&&r["!rows"]||[];for(var p=s.s.c;p<=s.e.c;++p)if(!(v[p]||{}).hidden)d[p]=Xr(p);var m=s.s.r;a._read=function(){if(m>s.e.r)return a.push(null);while(m<=s.e.r){++m;if((b[m-1]||{}).hidden)continue;h=xb(r,s,m-1,d,c,o,l,i);if(h!=null){if(i.strip)h=h.replace(u,"");a.push(h+f);break}}};return a};var a=function(r,t){var a=e();var n=t||{};var i=n.header!=null?n.header:Ov.BEGIN;var s=n.footer!