var bd=Object.defineProperty;var Ud=(Vr,Ir,Nr)=>Ir in Vr?bd(Vr,Ir,{enumerable:!0,configurable:!0,writable:!0,value:Nr}):Vr[Ir]=Nr;var ea=(Vr,Ir,Nr)=>(Ud(Vr,typeof Ir!="symbol"?Ir+"":Ir,Nr),Nr);(function(){"use strict";/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Vr=1252,Ir=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],Nr={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},Nt=function(e){Ir.indexOf(e)!=-1&&(Vr=Nr[0]=e)};function mi(){Nt(1252)}var _r=function(e){Nt(e)};function D0(){_r(1200),mi()}function O0(e){for(var a=[],r=0,n=e.length;r>1;++r)a[r]=String.fromCharCode(e.charCodeAt(2*r)+(e.charCodeAt(2*r+1)<<8));return a.join("")}function R0(e){for(var a=[],r=0;r>1;++r)a[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return a.join("")}var ya=function(e){var a=e.charCodeAt(0),r=e.charCodeAt(1);return a==255&&r==254?_i(e.slice(2)):a==254&&r==255?R0(e.slice(2)):a==65279?e.slice(1):e},ct=function(a){return String.fromCharCode(a)},I0=function(a){return String.fromCharCode(a)},Gr,Xr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function N0(e){for(var a="",r=0,n=0,t=0,s=0,i=0,c=0,f=0,o=0;o>2,n=e.charCodeAt(o++),i=(r&3)<<4|n>>4,t=e.charCodeAt(o++),c=(n&15)<<2|t>>6,f=t&63,isNaN(n)?c=f=64:isNaN(t)&&(f=64),a+=Xr.charAt(s)+Xr.charAt(i)+Xr.charAt(c)+Xr.charAt(f);return a}function fr(e){var a="",r=0,n=0,t=0,s=0,i=0,c=0,f=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var o=0;o>4,a+=String.fromCharCode(r),c=Xr.indexOf(e.charAt(o++)),n=(i&15)<<4|c>>2,c!==64&&(a+=String.fromCharCode(n)),f=Xr.indexOf(e.charAt(o++)),t=(c&3)<<6|f,f!==64&&(a+=String.fromCharCode(t));return a}var ge=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),ra=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(a,r){return r?new Buffer(a,r):new Buffer(a)}:Buffer.from.bind(Buffer)}return function(){}}();function $r(e){return ge?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function P0(e){return ge?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var Er=function(a){return ge?ra(a,"binary"):a.split("").map(function(r){return r.charCodeAt(0)&255})};function aa(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var a=[],r=0;r"u")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return Pt(new Uint8Array(e));for(var a=new Array(e.length),r=0;r>6&31,t[r++]=128|i&63;else if(i>=55296&&i<57344){i=(i&1023)+64;var c=e.charCodeAt(++s)&1023;t[r++]=240|i>>8&7,t[r++]=128|i>>2&63,t[r++]=128|c>>6&15|(i&3)<<4,t[r++]=128|c&63}else t[r++]=224|i>>12&15,t[r++]=128|i>>6&63,t[r++]=128|i&63;r>n&&(a.push(t.slice(0,r)),r=0,t=$r(65535),n=65530)}return a.push(t.slice(0,r)),zr(a)}var rr=/\u0000/g,Da=/[\u0001-\u0006]/g;function ga(e){for(var a="",r=e.length-1;r>=0;)a+=e.charAt(r--);return a}function Tr(e,a){var r=""+e;return r.length>=a?r:De("0",a-r.length)+r}function Lt(e,a){var r=""+e;return r.length>=a?r:De(" ",a-r.length)+r}function ft(e,a){var r=""+e;return r.length>=a?r:r+De(" ",a-r.length)}function Ti(e,a){var r=""+Math.round(e);return r.length>=a?r:De("0",a-r.length)+r}function ki(e,a){var r=""+e;return r.length>=a?r:De("0",a-r.length)+r}var L0=Math.pow(2,32);function ma(e,a){if(e>L0||e<-L0)return Ti(e,a);var r=Math.round(e);return ki(r,a)}function ot(e,a){return a=a||0,e.length>=7+a&&(e.charCodeAt(a)|32)===103&&(e.charCodeAt(a+1)|32)===101&&(e.charCodeAt(a+2)|32)===110&&(e.charCodeAt(a+3)|32)===101&&(e.charCodeAt(a+4)|32)===114&&(e.charCodeAt(a+5)|32)===97&&(e.charCodeAt(a+6)|32)===108}var M0=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],Mt=[["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 wi(e){return e||(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"時"mm"分"ss"秒 "',e}var de={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},B0={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},Ai={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function lt(e,a,r){for(var n=e<0?-1:1,t=e*n,s=0,i=1,c=0,f=1,o=0,l=0,h=Math.floor(t);oa&&(o>a?(l=f,c=s):(l=o,c=i)),!r)return[0,n*c,l];var x=Math.floor(n*c/l);return[x,n*c-x*l,l]}function ta(e,a,r){if(e>2958465||e<0)return null;var n=e|0,t=Math.floor(86400*(e-n)),s=0,i=[],c={D:n,T:t,u:86400*(e-n)-t,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(c.u)<1e-6&&(c.u=0),a&&a.date1904&&(n+=1462),c.u>.9999&&(c.u=0,++t==86400&&(c.T=t=0,++n,++c.D)),n===60)i=r?[1317,10,29]:[1900,2,29],s=3;else if(n===0)i=r?[1317,8,29]:[1900,1,0],s=6;else{n>60&&--n;var f=new Date(1900,0,1);f.setDate(f.getDate()+n-1),i=[f.getFullYear(),f.getMonth()+1,f.getDate()],s=f.getDay(),n<60&&(s=(s+6)%7),r&&(s=Oi(f,i))}return c.y=i[0],c.m=i[1],c.d=i[2],c.S=t%60,t=Math.floor(t/60),c.M=t%60,t=Math.floor(t/60),c.H=t,c.q=s,c}var b0=new Date(1899,11,31,0,0,0),Fi=b0.getTime(),Si=new Date(1900,2,1,0,0,0);function U0(e,a){var r=e.getTime();return a?r-=1461*24*60*60*1e3:e>=Si&&(r+=24*60*60*1e3),(r-(Fi+(e.getTimezoneOffset()-b0.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function Bt(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Ci(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function yi(e){var a=e<0?12:11,r=Bt(e.toFixed(12));return r.length<=a||(r=e.toPrecision(10),r.length<=a)?r:e.toExponential(5)}function Di(e){var a=Bt(e.toFixed(11));return a.length>(e<0?12:11)||a==="0"||a==="-0"?e.toPrecision(6):a}function Oa(e){var a=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),r;return a>=-4&&a<=-1?r=e.toPrecision(10+a):Math.abs(a)<=9?r=yi(e):a===10?r=e.toFixed(10).substr(0,12):r=Di(e),Bt(Ci(r.toUpperCase()))}function na(e,a){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):Oa(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return xr(14,U0(e,a&&a.date1904),a)}throw new Error("unsupported value in General format: "+e)}function Oi(e,a){a[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function Ri(e,a,r,n){var t="",s=0,i=0,c=r.y,f,o=0;switch(e){case 98:c=r.y+543;case 121:switch(a.length){case 1:case 2:f=c%100,o=2;break;default:f=c%1e4,o=4;break}break;case 109:switch(a.length){case 1:case 2:f=r.m,o=a.length;break;case 3:return Mt[r.m-1][1];case 5:return Mt[r.m-1][0];default:return Mt[r.m-1][2]}break;case 100:switch(a.length){case 1:case 2:f=r.d,o=a.length;break;case 3:return M0[r.q][0];default:return M0[r.q][1]}break;case 104:switch(a.length){case 1:case 2:f=1+(r.H+11)%12,o=a.length;break;default:throw"bad hour format: "+a}break;case 72:switch(a.length){case 1:case 2:f=r.H,o=a.length;break;default:throw"bad hour format: "+a}break;case 77:switch(a.length){case 1:case 2:f=r.M,o=a.length;break;default:throw"bad minute format: "+a}break;case 115:if(a!="s"&&a!="ss"&&a!=".0"&&a!=".00"&&a!=".000")throw"bad second format: "+a;return r.u===0&&(a=="s"||a=="ss")?Tr(r.S,a.length):(n>=2?i=n===3?1e3:100:i=n===1?10:1,s=Math.round(i*(r.S+r.u)),s>=60*i&&(s=0),a==="s"?s===0?"0":""+s/i:(t=Tr(s,2+n),a==="ss"?t.substr(0,2):"."+t.substr(2,a.length-1)));case 90:switch(a){case"[h]":case"[hh]":f=r.D*24+r.H;break;case"[m]":case"[mm]":f=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":f=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+a}o=a.length===3?1:2;break;case 101:f=c,o=1;break}var l=o>0?Tr(f,o):"";return l}function Kr(e){var a=3;if(e.length<=a)return e;for(var r=e.length%a,n=e.substr(0,r);r!=e.length;r+=a)n+=(n.length>0?",":"")+e.substr(r,a);return n}var H0=/%/g;function Ii(e,a,r){var n=a.replace(H0,""),t=a.length-n.length;return Pr(e,n,r*Math.pow(10,2*t))+De("%",t)}function Ni(e,a,r){for(var n=a.length-1;a.charCodeAt(n-1)===44;)--n;return Pr(e,a.substr(0,n),r/Math.pow(10,3*(a.length-n)))}function W0(e,a){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(a==0)return"0.0E+0";if(a<0)return"-"+W0(e,-a);var t=e.indexOf(".");t===-1&&(t=e.indexOf("E"));var s=Math.floor(Math.log(a)*Math.LOG10E)%t;if(s<0&&(s+=t),r=(a/Math.pow(10,s)).toPrecision(n+1+(t+s)%t),r.indexOf("e")===-1){var i=Math.floor(Math.log(a)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(i-r.length+s):r+="E+"+(i-s);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,t)+"."+r.substr(2+t),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(c,f,o,l){return f+o+l.substr(0,(t+s)%t)+"."+l.substr(s)+"E"})}else r=a.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var V0=/# (\?+)( ?)\/( ?)(\d+)/;function Pi(e,a,r){var n=parseInt(e[4],10),t=Math.round(a*n),s=Math.floor(t/n),i=t-s*n,c=n;return r+(s===0?"":""+s)+" "+(i===0?De(" ",e[1].length+1+e[4].length):Lt(i,e[1].length)+e[2]+"/"+e[3]+Tr(c,e[4].length))}function Li(e,a,r){return r+(a===0?"":""+a)+De(" ",e[1].length+2+e[4].length)}var G0=/^#*0*\.([0#]+)/,X0=/\).*[0#]/,$0=/\(###\) ###\\?-####/;function ar(e){for(var a="",r,n=0;n!=e.length;++n)switch(r=e.charCodeAt(n)){case 35:break;case 63:a+=" ";break;case 48:a+="0";break;default:a+=String.fromCharCode(r)}return a}function z0(e,a){var r=Math.pow(10,a);return""+Math.round(e*r)/r}function K0(e,a){var r=e-Math.floor(e),n=Math.pow(10,a);return a<(""+Math.round(r*n)).length?0:Math.round(r*n)}function Mi(e,a){return a<(""+Math.round((e-Math.floor(e))*Math.pow(10,a))).length?1:0}function Bi(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function ur(e,a,r){if(e.charCodeAt(0)===40&&!a.match(X0)){var n=a.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?ur("n",n,r):"("+ur("n",n,-r)+")"}if(a.charCodeAt(a.length-1)===44)return Ni(e,a,r);if(a.indexOf("%")!==-1)return Ii(e,a,r);if(a.indexOf("E")!==-1)return W0(a,r);if(a.charCodeAt(0)===36)return"$"+ur(e,a.substr(a.charAt(1)==" "?2:1),r);var t,s,i,c,f=Math.abs(r),o=r<0?"-":"";if(a.match(/^00+$/))return o+ma(f,a.length);if(a.match(/^[#?]+$/))return t=ma(r,0),t==="0"&&(t=""),t.length>a.length?t:ar(a.substr(0,a.length-t.length))+t;if(s=a.match(V0))return Pi(s,f,o);if(a.match(/^#+0+$/))return o+ma(f,a.length-a.indexOf("0"));if(s=a.match(G0))return t=z0(r,s[1].length).replace(/^([^\.]+)$/,"$1."+ar(s[1])).replace(/\.$/,"."+ar(s[1])).replace(/\.(\d*)$/,function(v,u){return"."+u+De("0",ar(s[1]).length-u.length)}),a.indexOf("0.")!==-1?t:t.replace(/^0\./,".");if(a=a.replace(/^#+([0.])/,"$1"),s=a.match(/^(0*)\.(#*)$/))return o+z0(f,s[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=a.match(/^#{1,3},##0(\.?)$/))return o+Kr(ma(f,0));if(s=a.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+ur(e,a,-r):Kr(""+(Math.floor(r)+Mi(r,s[1].length)))+"."+Tr(K0(r,s[1].length),s[1].length);if(s=a.match(/^#,#*,#0/))return ur(e,a.replace(/^#,#*,/,""),r);if(s=a.match(/^([0#]+)(\\?-([0#]+))+$/))return t=ga(ur(e,a.replace(/[\\-]/g,""),r)),i=0,ga(ga(a.replace(/\\/g,"")).replace(/[0#]/g,function(v){return i=0?Fr("n",n,r):"("+Fr("n",n,-r)+")"}if(a.charCodeAt(a.length-1)===44)return bi(e,a,r);if(a.indexOf("%")!==-1)return Ui(e,a,r);if(a.indexOf("E")!==-1)return Y0(a,r);if(a.charCodeAt(0)===36)return"$"+Fr(e,a.substr(a.charAt(1)==" "?2:1),r);var t,s,i,c,f=Math.abs(r),o=r<0?"-":"";if(a.match(/^00+$/))return o+Tr(f,a.length);if(a.match(/^[#?]+$/))return t=""+r,r===0&&(t=""),t.length>a.length?t:ar(a.substr(0,a.length-t.length))+t;if(s=a.match(V0))return Li(s,f,o);if(a.match(/^#+0+$/))return o+Tr(f,a.length-a.indexOf("0"));if(s=a.match(G0))return t=(""+r).replace(/^([^\.]+)$/,"$1."+ar(s[1])).replace(/\.$/,"."+ar(s[1])),t=t.replace(/\.(\d*)$/,function(v,u){return"."+u+De("0",ar(s[1]).length-u.length)}),a.indexOf("0.")!==-1?t:t.replace(/^0\./,".");if(a=a.replace(/^#+([0.])/,"$1"),s=a.match(/^(0*)\.(#*)$/))return o+(""+f).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=a.match(/^#{1,3},##0(\.?)$/))return o+Kr(""+f);if(s=a.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Fr(e,a,-r):Kr(""+r)+"."+De("0",s[1].length);if(s=a.match(/^#,#*,#0/))return Fr(e,a.replace(/^#,#*,/,""),r);if(s=a.match(/^([0#]+)(\\?-([0#]+))+$/))return t=ga(Fr(e,a.replace(/[\\-]/g,""),r)),i=0,ga(ga(a.replace(/\\/g,"")).replace(/[0#]/g,function(v){return i-1||r=="\\"&&e.charAt(a+1)=="-"&&"0#".indexOf(e.charAt(a+2))>-1););break;case"?":for(;e.charAt(++a)===r;);break;case"*":++a,(e.charAt(a)==" "||e.charAt(a)=="*")&&++a;break;case"(":case")":++a;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;a-1;);break;case" ":++a;break;default:++a;break}return!1}function Wi(e,a,r,n){for(var t=[],s="",i=0,c="",f="t",o,l,h,x="H";i=12?"P":"A"),u.t="T",x="h",i+=3):e.substr(i,5).toUpperCase()==="AM/PM"?(o!=null&&(u.v=o.H>=12?"PM":"AM"),u.t="T",i+=5,x="h"):e.substr(i,5).toUpperCase()==="上午/下午"?(o!=null&&(u.v=o.H>=12?"下午":"上午"),u.t="T",i+=5,x="h"):(u.t="t",++i),o==null&&u.t==="T")return"";t[t.length]=u,f=c;break;case"[":for(s=c;e.charAt(i++)!=="]"&&i-1&&(s=(s.match(/\$([^-\[\]]*)/)||[])[1]||"$",_a(e)||(t[t.length]={t:"t",v:s}));break;case".":if(o!=null){for(s=c;++i-1;)s+=c;t[t.length]={t:"n",v:s};break;case"?":for(s=c;e.charAt(++i)===c;)s+=c;t[t.length]={t:c,v:s},f=c;break;case"*":++i,(e.charAt(i)==" "||e.charAt(i)=="*")&&++i;break;case"(":case")":t[t.length]={t:n===1?"t":c,v:c},++i;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(s=c;i-1;)s+=e.charAt(i);t[t.length]={t:"D",v:s};break;case" ":t[t.length]={t:c,v:c},++i;break;case"$":t[t.length]={t:"t",v:"$"},++i;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(c)===-1)throw new Error("unrecognized character "+c+" in "+e);t[t.length]={t:"t",v:c},++i;break}var g=0,S=0,y;for(i=t.length-1,f="t";i>=0;--i)switch(t[i].t){case"h":case"H":t[i].t=x,f="h",g<1&&(g=1);break;case"s":(y=t[i].v.match(/\.0+$/))&&(S=Math.max(S,y[0].length-1)),g<3&&(g=3);case"d":case"y":case"M":case"e":f=t[i].t;break;case"m":f==="s"&&(t[i].t="M",g<2&&(g=2));break;case"X":break;case"Z":g<1&&t[i].v.match(/[Hh]/)&&(g=1),g<2&&t[i].v.match(/[Mm]/)&&(g=2),g<3&&t[i].v.match(/[Ss]/)&&(g=3)}switch(g){case 0:break;case 1:o.u>=.5&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M),o.M>=60&&(o.M=0,++o.H);break;case 2:o.u>=.5&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M);break}var _="",N;for(i=0;i0){_.charCodeAt(0)==40?(I=a<0&&_.charCodeAt(0)===45?-a:a,A=Pr("n",_,I)):(I=a<0&&n>1?-a:a,A=Pr("n",_,I),I<0&&t[0]&&t[0].t=="t"&&(A=A.substr(1),t[0].v="-"+t[0].v)),N=A.length-1;var W=t.length;for(i=0;i-1){W=i;break}var D=t.length;if(W===t.length&&A.indexOf("E")===-1){for(i=t.length-1;i>=0;--i)t[i]==null||"n?".indexOf(t[i].t)===-1||(N>=t[i].v.length-1?(N-=t[i].v.length,t[i].v=A.substr(N+1,t[i].v.length)):N<0?t[i].v="":(t[i].v=A.substr(0,N+1),N=-1),t[i].t="t",D=i);N>=0&&D=0;--i)if(!(t[i]==null||"n?".indexOf(t[i].t)===-1)){for(l=t[i].v.indexOf(".")>-1&&i===W?t[i].v.indexOf(".")-1:t[i].v.length-1,b=t[i].v.substr(l+1);l>=0;--l)N>=0&&(t[i].v.charAt(l)==="0"||t[i].v.charAt(l)==="#")&&(b=A.charAt(N--)+b);t[i].v=b,t[i].t="t",D=i}for(N>=0&&D-1&&i===W?t[i].v.indexOf(".")+1:0,b=t[i].v.substr(0,l);l-1&&(I=n>1&&a<0&&i>0&&t[i-1].v==="-"?-a:a,t[i].v=Pr(t[i].t,t[i].v,I),t[i].t="t");var z="";for(i=0;i!==t.length;++i)t[i]!=null&&(z+=t[i].v);return z}var J0=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Z0(e,a){if(a==null)return!1;var r=parseFloat(a[2]);switch(a[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function Vi(e,a){var r=Hi(e),n=r.length,t=r[n-1].indexOf("@");if(n<4&&t>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof a!="number")return[4,r.length===4||t>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=t>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=t>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=t>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var s=a>0?r[0]:a<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,s];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var i=r[0].match(J0),c=r[1].match(J0);return Z0(a,i)?[n,r[0]]:Z0(a,c)?[n,r[1]]:[n,r[i!=null&&c!=null?2:1]]}return[n,s]}function xr(e,a,r){r==null&&(r={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&r.dateNF?n=r.dateNF:n=e;break;case"number":e==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:de)[e],n==null&&(n=r.table&&r.table[B0[e]]||de[B0[e]]),n==null&&(n=Ai[e]||"General");break}if(ot(n,0))return na(a,r);a instanceof Date&&(a=U0(a,r.date1904));var t=Vi(n,a);if(ot(t[1]))return na(a,r);if(a===!0)a="TRUE";else if(a===!1)a="FALSE";else if(a===""||a==null)return"";return Wi(t[1],a,r,t[0])}function sa(e,a){if(typeof a!="number"){a=+a||-1;for(var r=0;r<392;++r){if(de[r]==null){a<0&&(a=r);continue}if(de[r]==e){a=r;break}}a<0&&(a=391)}return de[a]=e,a}function q0(){de=wi()}var Gi={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},Q0=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function Xi(e){var a=typeof e=="number"?de[e]:e;return a=a.replace(Q0,"(\\d+)"),new RegExp("^"+a+"$")}function $i(e,a,r){var n=-1,t=-1,s=-1,i=-1,c=-1,f=-1;(a.match(Q0)||[]).forEach(function(h,x){var d=parseInt(r[x+1],10);switch(h.toLowerCase().charAt(0)){case"y":n=d;break;case"d":s=d;break;case"h":i=d;break;case"s":f=d;break;case"m":i>=0?c=d:t=d;break}}),f>=0&&c==-1&&t>=0&&(c=t,t=-1);var o=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(t>=1?t:1)).slice(-2)+"-"+("00"+(s>=1?s:1)).slice(-2);o.length==7&&(o="0"+o),o.length==8&&(o="20"+o);var l=("00"+(i>=0?i:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2)+":"+("00"+(f>=0?f:0)).slice(-2);return i==-1&&c==-1&&f==-1?o:n==-1&&t==-1&&s==-1?l:o+"T"+l}var zi=function(){var e={};e.version="1.2.0";function a(){for(var A=0,W=new Array(256),D=0;D!=256;++D)A=D,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,W[D]=A;return typeof Int32Array<"u"?new Int32Array(W):W}var r=a();function n(A){var W=0,D=0,z=0,G=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(z=0;z!=256;++z)G[z]=A[z];for(z=0;z!=256;++z)for(D=A[z],W=256+z;W<4096;W+=256)D=G[W]=D>>>8^A[D&255];var P=[];for(z=1;z!=16;++z)P[z-1]=typeof Int32Array<"u"?G.subarray(z*256,z*256+256):G.slice(z*256,z*256+256);return P}var t=n(r),s=t[0],i=t[1],c=t[2],f=t[3],o=t[4],l=t[5],h=t[6],x=t[7],d=t[8],v=t[9],u=t[10],g=t[11],S=t[12],y=t[13],_=t[14];function N(A,W){for(var D=W^-1,z=0,G=A.length;z>>8^r[(D^A.charCodeAt(z++))&255];return~D}function b(A,W){for(var D=W^-1,z=A.length-15,G=0;G>8&255]^S[A[G++]^D>>16&255]^g[A[G++]^D>>>24]^u[A[G++]]^v[A[G++]]^d[A[G++]]^x[A[G++]]^h[A[G++]]^l[A[G++]]^o[A[G++]]^f[A[G++]]^c[A[G++]]^i[A[G++]]^s[A[G++]]^r[A[G++]];for(z+=15;G>>8^r[(D^A[G++])&255];return~D}function I(A,W){for(var D=W^-1,z=0,G=A.length,P=0,J=0;z>>8^r[(D^P)&255]:P<2048?(D=D>>>8^r[(D^(192|P>>6&31))&255],D=D>>>8^r[(D^(128|P&63))&255]):P>=55296&&P<57344?(P=(P&1023)+64,J=A.charCodeAt(z++)&1023,D=D>>>8^r[(D^(240|P>>8&7))&255],D=D>>>8^r[(D^(128|P>>2&63))&255],D=D>>>8^r[(D^(128|J>>6&15|(P&3)<<4))&255],D=D>>>8^r[(D^(128|J&63))&255]):(D=D>>>8^r[(D^(224|P>>12&15))&255],D=D>>>8^r[(D^(128|P>>6&63))&255],D=D>>>8^r[(D^(128|P&63))&255]);return~D}return e.table=r,e.bstr=N,e.buf=b,e.str=I,e}(),me=function(){var a={};a.version="1.2.1";function r(p,T){for(var m=p.split("/"),E=T.split("/"),k=0,w=0,M=Math.min(m.length,E.length);k>>1,p.write_shift(2,m);var E=T.getFullYear()-1980;E=E<<4|T.getMonth()+1,E=E<<5|T.getDate(),p.write_shift(2,E)}function i(p){var T=p.read_shift(2)&65535,m=p.read_shift(2)&65535,E=new Date,k=m&31;m>>>=5;var w=m&15;m>>>=4,E.setMilliseconds(0),E.setFullYear(m+1980),E.setMonth(w-1),E.setDate(k);var M=T&31;T>>>=5;var X=T&63;return T>>>=6,E.setHours(T),E.setMinutes(X),E.setSeconds(M<<1),E}function c(p){$e(p,0);for(var T={},m=0;p.l<=p.length-4;){var E=p.read_shift(2),k=p.read_shift(2),w=p.l+k,M={};switch(E){case 21589:m=p.read_shift(1),m&1&&(M.mtime=p.read_shift(4)),k>5&&(m&2&&(M.atime=p.read_shift(4)),m&4&&(M.ctime=p.read_shift(4))),M.mtime&&(M.mt=new Date(M.mtime*1e3));break}p.l=w,T[E]=M}return T}var f;function o(){return f||(f={})}function l(p,T){if(p[0]==80&&p[1]==75)return gi(p,T);if((p[0]|32)==109&&(p[1]|32)==105)return Id(p,T);if(p.length<512)throw new Error("CFB file size "+p.length+" < 512");var m=3,E=512,k=0,w=0,M=0,X=0,L=0,B=[],H=p.slice(0,512);$e(H,0);var Y=h(H);switch(m=Y[0],m){case 3:E=512;break;case 4:E=4096;break;case 0:if(Y[1]==0)return gi(p,T);default:throw new Error("Major Version: Expected 3 or 4 saw "+m)}E!==512&&(H=p.slice(0,E),$e(H,28));var Q=p.slice(0,E);x(H,m);var se=H.read_shift(4,"i");if(m===3&&se!==0)throw new Error("# Directory Sectors: Expected 0 saw "+se);H.l+=4,M=H.read_shift(4,"i"),H.l+=4,H.chk("00100000","Mini Stream Cutoff Size: "),X=H.read_shift(4,"i"),k=H.read_shift(4,"i"),L=H.read_shift(4,"i"),w=H.read_shift(4,"i");for(var Z=-1,te=0;te<109&&(Z=H.read_shift(4,"i"),!(Z<0));++te)B[te]=Z;var xe=d(p,E);g(L,w,xe,E,B);var Ce=y(xe,M,B,E);Ce[M].name="!Directory",k>0&&X!==J&&(Ce[X].name="!MiniFAT"),Ce[B[0]].name="!FAT",Ce.fat_addrs=B,Ce.ssz=E;var ye={},er=[],nt=[],st=[];_(M,Ce,xe,er,k,ye,nt,X),v(nt,st,er),er.shift();var it={FileIndex:nt,FullPaths:st};return T&&T.raw&&(it.raw={header:Q,sectors:xe}),it}function h(p){if(p[p.l]==80&&p[p.l+1]==75)return[0,0];p.chk(fe,"Header Signature: "),p.l+=16;var T=p.read_shift(2,"u");return[p.read_shift(2,"u"),T]}function x(p,T){var m=9;switch(p.l+=2,m=p.read_shift(2)){case 9:if(T!=3)throw new Error("Sector Shift: Expected 9 saw "+m);break;case 12:if(T!=4)throw new Error("Sector Shift: Expected 12 saw "+m);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+m)}p.chk("0600","Mini Sector Shift: "),p.chk("000000000000","Reserved: ")}function d(p,T){for(var m=Math.ceil(p.length/T)-1,E=[],k=1;k0&&M>=0;)w.push(T.slice(M*P,M*P+P)),k-=P,M=ca(m,M*4);return w.length===0?be(0):zr(w).slice(0,p.size)}function g(p,T,m,E,k){var w=J;if(p===J){if(T!==0)throw new Error("DIFAT chain shorter than expected")}else if(p!==-1){var M=m[p],X=(E>>>2)-1;if(!M)return;for(var L=0;L=0;){k[L]=!0,w[w.length]=L,M.push(p[L]);var H=m[Math.floor(L*4/E)];if(B=L*4&X,E<4+B)throw new Error("FAT boundary crossed: "+L+" 4 "+E);if(!p[H])break;L=ca(p[H],B)}return{nodes:w,data:_n([M])}}function y(p,T,m,E){var k=p.length,w=[],M=[],X=[],L=[],B=E-1,H=0,Y=0,Q=0,se=0;for(H=0;H=k&&(Q-=k),!M[Q]){L=[];var Z=[];for(Y=Q;Y>=0;){Z[Y]=!0,M[Y]=!0,X[X.length]=Y,L.push(p[Y]);var te=m[Math.floor(Y*4/E)];if(se=Y*4&B,E<4+se)throw new Error("FAT boundary crossed: "+Y+" 4 "+E);if(!p[te]||(Y=ca(p[te],se),Z[Y]))break}w[Q]={nodes:X,data:_n([L])}}return w}function _(p,T,m,E,k,w,M,X){for(var L=0,B=E.length?2:0,H=T[p].data,Y=0,Q=0,se;Y0&&L!==J&&(T[L].name="!StreamData")):te.size>=4096?(te.storage="fat",T[te.start]===void 0&&(T[te.start]=S(m,te.start,T.fat_addrs,T.ssz)),T[te.start].name=te.name,te.content=T[te.start].data.slice(0,te.size)):(te.storage="minifat",te.size<0?te.size=0:L!==J&&te.start!==J&&T[L]&&(te.content=u(te,T[L].data,(T[X]||{}).data))),te.content&&$e(te.content,0),w[se]=te,M.push(te)}}function N(p,T){return new Date((lr(p,T+4)/1e7*Math.pow(2,32)+lr(p,T)/1e7-11644473600)*1e3)}function b(p,T){return o(),l(f.readFileSync(p),T)}function I(p,T){var m=T&&T.type;switch(m||ge&&Buffer.isBuffer(p)&&(m="buffer"),m||"base64"){case"file":return b(p,T);case"base64":return l(Er(fr(p)),T);case"binary":return l(Er(p),T)}return l(p,T)}function A(p,T){var m=T||{},E=m.root||"Root Entry";if(p.FullPaths||(p.FullPaths=[]),p.FileIndex||(p.FileIndex=[]),p.FullPaths.length!==p.FileIndex.length)throw new Error("inconsistent CFB structure");p.FullPaths.length===0&&(p.FullPaths[0]=E+"/",p.FileIndex[0]={name:E,type:5}),m.CLSID&&(p.FileIndex[0].clsid=m.CLSID),W(p)}function W(p){var T="Sh33tJ5";if(!me.find(p,"/"+T)){var m=be(4);m[0]=55,m[1]=m[3]=50,m[2]=54,p.FileIndex.push({name:T,type:2,content:m,size:4,L:69,R:69,C:69}),p.FullPaths.push(p.FullPaths[0]+T),D(p)}}function D(p,T){A(p);for(var m=!1,E=!1,k=p.FullPaths.length-1;k>=0;--k){var w=p.FileIndex[k];switch(w.type){case 0:E?m=!0:(p.FileIndex.pop(),p.FullPaths.pop());break;case 1:case 2:case 5:E=!0,isNaN(w.R*w.L*w.C)&&(m=!0),w.R>-1&&w.L>-1&&w.R==w.L&&(m=!0);break;default:m=!0;break}}if(!(!m&&!T)){var M=new Date(1987,1,19),X=0,L=Object.create?Object.create(null):{},B=[];for(k=0;k1?1:-1,Y.size=0,Y.type=5;else if(Q.slice(-1)=="/"){for(X=k+1;X=B.length?-1:X,X=k+1;X=B.length?-1:X,Y.type=1}else n(p.FullPaths[k+1]||"")==n(Q)&&(Y.R=k+1),Y.type=2}}}function z(p,T){var m=T||{};if(m.fileType=="mad")return Nd(p,m);switch(D(p),m.fileType){case"zip":return Sd(p,m)}var E=function(se){for(var Z=0,te=0,xe=0;xe0&&(ye<4096?Z+=ye+63>>6:te+=ye+511>>9)}}for(var er=se.FullPaths.length+3>>2,nt=Z+7>>3,st=Z+127>>7,it=nt+te+er+st,pa=it+127>>7,y0=pa<=109?0:Math.ceil((pa-109)/127);it+pa+y0+127>>7>pa;)y0=++pa<=109?0:Math.ceil((pa-109)/127);var Wr=[1,y0,pa,st,er,te,Z,0];return se.FileIndex[0].size=Z<<6,Wr[7]=(se.FileIndex[0].start=Wr[0]+Wr[1]+Wr[2]+Wr[3]+Wr[4]+Wr[5])+(Wr[6]+7>>3),Wr}(p),k=be(E[7]<<9),w=0,M=0;{for(w=0;w<8;++w)k.write_shift(1,re[w]);for(w=0;w<8;++w)k.write_shift(2,0);for(k.write_shift(2,62),k.write_shift(2,3),k.write_shift(2,65534),k.write_shift(2,9),k.write_shift(2,6),w=0;w<3;++w)k.write_shift(2,0);for(k.write_shift(4,0),k.write_shift(4,E[2]),k.write_shift(4,E[0]+E[1]+E[2]+E[3]-1),k.write_shift(4,0),k.write_shift(4,4096),k.write_shift(4,E[3]?E[0]+E[1]+E[2]-1:J),k.write_shift(4,E[3]),k.write_shift(-4,E[1]?E[0]-1:J),k.write_shift(4,E[1]),w=0;w<109;++w)k.write_shift(-4,w>9)));for(X(E[6]+7>>3);k.l&511;)k.write_shift(-4,ie.ENDOFCHAIN);for(M=w=0,L=0;L=4096)&&(H.start=M,X(B+63>>6)));for(;k.l&511;)k.write_shift(-4,ie.ENDOFCHAIN);for(w=0;w=4096)if(k.l=H.start+1<<9,ge&&Buffer.isBuffer(H.content))H.content.copy(k,k.l,0,H.size),k.l+=H.size+511&-512;else{for(L=0;L0&&H.size<4096)if(ge&&Buffer.isBuffer(H.content))H.content.copy(k,k.l,0,H.size),k.l+=H.size+63&-64;else{for(L=0;L>16|T>>8|T)&255}for(var q=typeof Uint8Array<"u",j=q?new Uint8Array(256):[],Te=0;Te<256;++Te)j[Te]=ne(Te);function C(p,T){var m=j[p&255];return T<=8?m>>>8-T:(m=m<<8|j[p>>8&255],T<=16?m>>>16-T:(m=m<<8|j[p>>16&255],m>>>24-T))}function Ie(p,T){var m=T&7,E=T>>>3;return(p[E]|(m<=6?0:p[E+1]<<8))>>>m&3}function ke(p,T){var m=T&7,E=T>>>3;return(p[E]|(m<=5?0:p[E+1]<<8))>>>m&7}function we(p,T){var m=T&7,E=T>>>3;return(p[E]|(m<=4?0:p[E+1]<<8))>>>m&15}function pe(p,T){var m=T&7,E=T>>>3;return(p[E]|(m<=3?0:p[E+1]<<8))>>>m&31}function ae(p,T){var m=T&7,E=T>>>3;return(p[E]|(m<=1?0:p[E+1]<<8))>>>m&127}function Ne(p,T,m){var E=T&7,k=T>>>3,w=(1<>>E;return m<8-E||(M|=p[k+1]<<8-E,m<16-E)||(M|=p[k+2]<<16-E,m<24-E)||(M|=p[k+3]<<24-E),M&w}function gr(p,T,m){var E=T&7,k=T>>>3;return E<=5?p[k]|=(m&7)<>8-E),T+3}function Or(p,T,m){var E=T&7,k=T>>>3;return m=(m&1)<>>3;return m<<=E,p[k]|=m&255,m>>>=8,p[k+1]=m,T+8}function at(p,T,m){var E=T&7,k=T>>>3;return m<<=E,p[k]|=m&255,m>>>=8,p[k+1]=m&255,p[k+2]=m>>>8,T+16}function qr(p,T){var m=p.length,E=2*m>T?2*m:T+5,k=0;if(m>=T)return p;if(ge){var w=P0(E);if(p.copy)p.copy(w);else for(;k>E-Y,M=(1<=0;--M)T[X|M<0;)L[L.l++]=X[B++]}return L.l}function M(X,L){for(var B=0,H=0,Y=q?new Uint16Array(32768):[];H0;)L[L.l++]=X[H++];B=L.l*8;continue}B=gr(L,B,+(H+Q==X.length)+2);for(var se=0;Q-- >0;){var Z=X[H];se=(se<<5^Z)&32767;var te=-1,xe=0;if((te=Y[se])&&(te|=H&-32768,te>H&&(te-=32768),te2){Z=k[xe],Z<=22?B=Ur(L,B,j[Z+1]>>1)-1:(Ur(L,B,3),B+=5,Ur(L,B,j[Z-23]>>5),B+=3);var Ce=Z<8?0:Z-4>>2;Ce>0&&(at(L,B,xe-K[Z]),B+=Ce),Z=T[H-te],B=Ur(L,B,j[Z]>>3),B-=3;var ye=Z<4?0:Z-2>>1;ye>0&&(at(L,B,H-te-ee[Z]),B+=ye);for(var er=0;er>8-Z;for(var te=(1<<7-Z)-1;te>=0;--te)We[se|te<>>=3){case 16:for(w=3+Ie(p,T),T+=2,se=xe[xe.length-1];w-- >0;)xe.push(se);break;case 17:for(w=3+ke(p,T),T+=3;w-- >0;)xe.push(0);break;case 18:for(w=11+ae(p,T),T+=7;w-- >0;)xe.push(0);break;default:xe.push(se),L>>0,X=0,L=0;!(E&1);){if(E=ke(p,m),m+=3,E>>>1)E>>1==1?(X=9,L=5):(m=wd(p,m),X=va,L=di);else{m&7&&(m+=8-(m&7));var B=p[m>>>3]|p[(m>>>3)+1]<<8;if(m+=32,B>0)for(!T&&M0;)k[w++]=p[m>>>3],m+=8;continue}for(;;){!T&&M>>1==1?Qr[H]:Pe[H];if(m+=Y&15,Y>>>=4,!(Y>>>8&255))k[w++]=Y;else{if(Y==256)break;Y-=257;var Q=Y<8?0:Y-4>>2;Q>5&&(Q=0);var se=w+K[Y];Q>0&&(se+=Ne(p,m,Q),m+=Q),H=Ne(p,m,L),Y=E>>>1==1?tt[H]:mr[H],m+=Y&15,Y>>>=4;var Z=Y<4?0:Y-2>>1,te=ee[Y];for(Z>0&&(te+=Ne(p,m,Z),m+=Z),!T&&M>>3]:[k.slice(0,w),m+7>>>3]}function vi(p,T){var m=p.slice(p.l||0),E=Ad(m,T);return p.l+=E[1],E[0]}function pi(p,T){if(p)typeof console<"u"&&console.error(T);else throw new Error(T)}function gi(p,T){var m=p;$e(m,0);var E=[],k=[],w={FileIndex:E,FullPaths:k};A(w,{root:T.root});for(var M=m.length-4;(m[M]!=80||m[M+1]!=75||m[M+2]!=5||m[M+3]!=6)&&M>=0;)--M;m.l=M+4,m.l+=4;var X=m.read_shift(2);m.l+=6;var L=m.read_shift(4);for(m.l=L,M=0;M0&&(m=m.slice(0,m.length-1),m=m.slice(0,m.lastIndexOf("/")+1),w.slice(0,m.length)!=m););var M=(E[1]||"").match(/boundary="(.*?)"/);if(!M)throw new Error("MAD cannot find boundary");var X="--"+(M[1]||""),L=[],B=[],H={FileIndex:L,FullPaths:B};A(H);var Y,Q=0;for(k=0;k=32&&se<128&&++Y;var te=Y>=Q*4/5;k.push(E),k.push("Content-Location: "+(m.root||"file:///C:/SheetJS/")+M),k.push("Content-Transfer-Encoding: "+(te?"quoted-printable":"base64")),k.push("Content-Type: "+Cd(X,M)),k.push(""),k.push(te?Dd(H):yd(H))}return k.push(E+`--\r `),k.join(`\r `)}function Pd(p){var T={};return A(T,p),T}function C0(p,T,m,E){var k=E&&E.unsafe;k||A(p);var w=!k&&me.find(p,T);if(!w){var M=p.FullPaths[0];T.slice(0,M.length)==M?M=T:(M.slice(-1)!="/"&&(M+="/"),M=(M+T).replace("//","/")),w={name:t(T),type:2},p.FileIndex.push(w),p.FullPaths.push(M),k||me.utils.cfb_gc(p)}return w.content=m,w.size=m?m.length:0,E&&(E.CLSID&&(w.clsid=E.CLSID),E.mt&&(w.mt=E.mt),E.ct&&(w.ct=E.ct)),w}function Ld(p,T){A(p);var m=me.find(p,T);if(m){for(var E=0;E3&&(n=!0),t[s].slice(t[s].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+t[s].slice(t[s].length-1));case"D":r*=24;case"H":r*=60;case"M":if(n)r*=60;else throw new Error("Unsupported ISO Duration Field: M")}a+=r*parseInt(t[s],10)}return a}var an=new Date("2017-02-19T19:06:09.000Z"),tn=isNaN(an.getFullYear())?new Date("2/19/17"):an,Ji=tn.getFullYear()==2017;function Ve(e,a){var r=new Date(e);if(Ji)return a>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):a<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(tn.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var t=e.match(/\d+/g)||["2017","2","19","0","0","0"],s=new Date(+t[0],+t[1]-1,+t[2],+t[3]||0,+t[4]||0,+t[5]||0);return e.indexOf("Z")>-1&&(s=new Date(s.getTime()-s.getTimezoneOffset()*60*1e3)),s}function ia(e,a){if(ge&&Buffer.isBuffer(e)){if(a){if(e[0]==255&&e[1]==254)return Ia(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return Ia(R0(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(a){if(e[0]==255&&e[1]==254)return Ia(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return Ia(new TextDecoder("utf-16be").decode(e.slice(2)))}var r={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(s){return r[s]||s})}catch{}for(var n=[],t=0;t!=e.length;++t)n.push(String.fromCharCode(e[t]));return n.join("")}function Xe(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=Xe(e[r]));return a}function De(e,a){for(var r="";r.length3&&Zi.indexOf(i)==-1)return r}else if(i.match(/[a-z]/))return r;return n<0||n>8099?r:(t>0||s>1)&&n!=101?a:e.match(/[^-0-9:,\/\\]/)?r:a}var qi=function(){var e="abacaba".split(/(:?b)/i).length==5;return function(r,n,t){if(e||typeof n=="string")return r.split(n);for(var s=r.split(n),i=[s[0]],c=1;c\r `,rc=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,hn=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,ac=/<[^>]*>/g,Ke=ln.match(hn)?hn:ac,tc=/<\w*:/,nc=/<(\/?)\w+:/;function oe(e,a,r){for(var n={},t=0,s=0;t!==e.length&&!((s=e.charCodeAt(t))===32||s===10||s===13);++t);if(a||(n[0]=e.slice(0,t)),t===e.length)return n;var i=e.match(rc),c=0,f="",o=0,l="",h="",x=1;if(i)for(o=0;o!=i.length;++o){for(h=i[o],s=0;s!=h.length&&h.charCodeAt(s)!==61;++s);for(l=h.slice(0,s).trim();h.charCodeAt(s+1)==32;)++s;for(x=(t=h.charCodeAt(s+1))==34||t==39?1:0,f=h.slice(s+1+x,h.length-x),c=0;c!=l.length&&l.charCodeAt(c)!==58;++c);if(c===l.length)l.indexOf("_")>0&&(l=l.slice(0,l.indexOf("_"))),n[l]=f,r||(n[l.toLowerCase()]=f);else{var d=(c===5&&l.slice(0,5)==="xmlns"?"xmlns":"")+l.slice(c+1);if(n[d]&&l.slice(c-3,c)=="ext")continue;n[d]=f,r||(n[d.toLowerCase()]=f)}}return n}function Cr(e){return e.replace(nc,"<$1")}var un={""":'"',"'":"'",">":">","<":"<","&":"&"},sc=bt(un),Ee=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig,a=/_x([\da-fA-F]{4})_/ig;return function r(n){var t=n+"",s=t.indexOf("-1?16:10))||c}).replace(a,function(c,f){return String.fromCharCode(parseInt(f,16))});var i=t.indexOf("]]>");return r(t.slice(0,s))+t.slice(s+9,i)+r(t.slice(i+3))}}(),ic=/[&<>'"]/g,cc=/[\u0000-\u001f]/g;function Ht(e){var a=e+"";return a.replace(ic,function(r){return sc[r]}).replace(/\n/g,"
").replace(cc,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}var xn=function(){var e=/&#(\d+);/g;function a(r,n){return String.fromCharCode(parseInt(n,10))}return function(n){return n.replace(e,a)}}();function Se(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Wt(e){for(var a="",r=0,n=0,t=0,s=0,i=0,c=0;r191&&n<224){i=(n&31)<<6,i|=t&63,a+=String.fromCharCode(i);continue}if(s=e.charCodeAt(r++),n<240){a+=String.fromCharCode((n&15)<<12|(t&63)<<6|s&63);continue}i=e.charCodeAt(r++),c=((n&7)<<18|(t&63)<<12|(s&63)<<6|i&63)-65536,a+=String.fromCharCode(55296+(c>>>10&1023)),a+=String.fromCharCode(56320+(c&1023))}return a}function dn(e){var a=$r(2*e.length),r,n,t=1,s=0,i=0,c;for(n=0;n>>10&1023),r=56320+(r&1023)),i!==0&&(a[s++]=i&255,a[s++]=i>>>8,i=0),a[s++]=r%256,a[s++]=r>>>8;return a.slice(0,s).toString("ucs2")}function vn(e){return ra(e,"binary").toString("utf8")}var xt="foo bar baz☃🍣",Ae=ge&&(vn(xt)==Wt(xt)&&vn||dn(xt)==Wt(xt)&&dn)||Wt,Ia=ge?function(e){return ra(e,"utf8").toString("binary")}:function(e){for(var a=[],r=0,n=0,t=0;r>6))),a.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,t=e.charCodeAt(r++)-56320+(n<<10),a.push(String.fromCharCode(240+(t>>18&7))),a.push(String.fromCharCode(144+(t>>12&63))),a.push(String.fromCharCode(128+(t>>6&63))),a.push(String.fromCharCode(128+(t&63)));break;default:a.push(String.fromCharCode(224+(n>>12))),a.push(String.fromCharCode(128+(n>>6&63))),a.push(String.fromCharCode(128+(n&63)))}return a.join("")},Na=function(){var e={};return function(r,n){var t=r+"|"+(n||"");return e[t]?e[t]:e[t]=new RegExp("<(?:\\w+:)?"+r+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)",n||"")}}(),pn=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(a){return[new RegExp("&"+a[0]+";","ig"),a[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+/g,` `).replace(/<[^>]*>/g,""),t=0;t([\\s\\S]*?)","g")}}(),oc=/<\/?(?:vt:)?variant>/g,lc=/<(?:vt:)([^>]*)>([\s\S]*)"+a+""}function Vt(e){if(ge&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e=="string")return e;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return Ae(aa(Pt(e)));throw new Error("Bad input format: expected Buffer or string")}var Pa=/<(\/?)([^\s?>:\/]+)(?:[\s?:\/][^>]*)?>/mg,dc={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},vc=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"];function pc(e,a){for(var r=1-2*(e[a+7]>>>7),n=((e[a+7]&127)<<4)+(e[a+6]>>>4&15),t=e[a+6]&15,s=5;s>=0;--s)t=t*256+e[a+s];return n==2047?t==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,t+=Math.pow(2,52)),r*Math.pow(2,n-52)*t)}function gc(e,a,r){var n=(a<0||1/a==-1/0?1:0)<<7,t=0,s=0,i=n?-a:a;isFinite(i)?i==0?t=s=0:(t=Math.floor(Math.log(i)/Math.LN2),s=i*Math.pow(2,52-t),t<=-1023&&(!isFinite(s)||s>4|n}var mn=function(e){for(var a=[],r=10240,n=0;n0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(a){return Buffer.isBuffer(a)?a:ra(a)})):mn(e)}:mn,En=function(e,a,r){for(var n=[],t=a;t0?La(e,a+4,a+4+r-1):""},Fn=An,Sn=function(e,a){var r=lr(e,a);return r>0?La(e,a+4,a+4+r-1):""},Cn=Sn,yn=function(e,a){var r=2*lr(e,a);return r>0?La(e,a+4,a+4+r-1):""},Dn=yn,On=function(a,r){var n=lr(a,r);return n>0?Gt(a,r+4,r+4+n):""},Rn=On,In=function(e,a){var r=lr(e,a);return r>0?La(e,a+4,a+4+r):""},Nn=In,Pn=function(e,a){return pc(e,a)},dt=Pn,Ln=function(a){return Array.isArray(a)||typeof Uint8Array<"u"&&a instanceof Uint8Array};ge&&(Fn=function(a,r){if(!Buffer.isBuffer(a))return An(a,r);var n=a.readUInt32LE(r);return n>0?a.toString("utf8",r+4,r+4+n-1):""},Cn=function(a,r){if(!Buffer.isBuffer(a))return Sn(a,r);var n=a.readUInt32LE(r);return n>0?a.toString("utf8",r+4,r+4+n-1):""},Dn=function(a,r){if(!Buffer.isBuffer(a))return yn(a,r);var n=2*a.readUInt32LE(r);return a.toString("utf16le",r+4,r+4+n-1)},Rn=function(a,r){if(!Buffer.isBuffer(a))return On(a,r);var n=a.readUInt32LE(r);return a.toString("utf16le",r+4,r+4+n)},Nn=function(a,r){if(!Buffer.isBuffer(a))return In(a,r);var n=a.readUInt32LE(r);return a.toString("utf8",r+4,r+4+n)},dt=function(a,r){return Buffer.isBuffer(a)?a.readDoubleLE(r):Pn(a,r)},Ln=function(a){return Buffer.isBuffer(a)||Array.isArray(a)||typeof Uint8Array<"u"&&a instanceof Uint8Array});var Ta=function(e,a){return e[a]},Lr=function(e,a){return e[a+1]*256+e[a]},mc=function(e,a){var r=e[a+1]*256+e[a];return r<32768?r:(65535-r+1)*-1},lr=function(e,a){return e[a+3]*(1<<24)+(e[a+2]<<16)+(e[a+1]<<8)+e[a]},ca=function(e,a){return e[a+3]<<24|e[a+2]<<16|e[a+1]<<8|e[a]},_c=function(e,a){return e[a]<<24|e[a+1]<<16|e[a+2]<<8|e[a+3]};function Ma(e,a){var r="",n,t,s=[],i,c,f,o;switch(a){case"dbcs":if(o=this.l,ge&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(f=0;f0?ca:_c)(this,this.l),this.l+=4,n):(t=lr(this,this.l),this.l+=4,t);case 8:case-8:if(a==="f")return e==8?t=dt(this,this.l):t=dt([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,t;e=8;case 16:r=kn(this,this.l,e);break}}return this.l+=e,r}var Ec=function(e,a,r){e[r]=a&255,e[r+1]=a>>>8&255,e[r+2]=a>>>16&255,e[r+3]=a>>>24&255},Tc=function(e,a,r){e[r]=a&255,e[r+1]=a>>8&255,e[r+2]=a>>16&255,e[r+3]=a>>24&255},kc=function(e,a,r){e[r]=a&255,e[r+1]=a>>>8&255};function wc(e,a,r){var n=0,t=0;if(r==="dbcs"){for(t=0;t!=a.length;++t)kc(this,a.charCodeAt(t),this.l+2*t);n=2*a.length}else if(r==="sbcs"){for(a=a.replace(/[^\x00-\x7F]/g,"_"),t=0;t!=a.length;++t)this[this.l+t]=a.charCodeAt(t)&255;n=a.length}else if(r==="hex"){for(;t>8}for(;this.l>>=8,this[this.l+1]=a&255;break;case 3:n=3,this[this.l]=a&255,a>>>=8,this[this.l+1]=a&255,a>>>=8,this[this.l+2]=a&255;break;case 4:n=4,Ec(this,a,this.l);break;case 8:if(n=8,r==="f"){gc(this,a,this.l);break}case 16:break;case-4:n=4,Tc(this,a,this.l);break}return this.l+=n,this}function Mn(e,a){var r=kn(this,this.l,e.length>>1);if(r!==e)throw new Error(a+"Expected "+e+" saw "+r);this.l+=e.length>>1}function $e(e,a){e.l=a,e.read_shift=Ma,e.chk=Mn,e.write_shift=wc}function Ye(e,a){e.l+=a}function be(e){var a=$r(e);return $e(a,0),a}function Mr(e,a,r){if(e){var n,t,s;$e(e,e.l||0);for(var i=e.length,c=0,f=0;e.ln.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&e.push(n),n=null)},s=function(o){return n&&o=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function Bn(e,a,r){var n=Xe(e);return n.s=Ba(n.s,a.s,r),n.e=Ba(n.e,a.s,r),n}function ba(e,a){if(e.cRel&&e.c<0)for(e=Xe(e);e.c<0;)e.c+=a>8?16384:256;if(e.rRel&&e.r<0)for(e=Xe(e);e.r<0;)e.r+=a>8?1048576:a>5?65536:16384;var r=ue(e);return!e.cRel&&e.cRel!=null&&(r=Sc(r)),!e.rRel&&e.rRel!=null&&(r=Ac(r)),r}function $t(e,a){return e.s.r==0&&!e.s.rRel&&e.e.r==(a.biff>=12?1048575:a.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+Ue(e.s.c)+":"+(e.e.cRel?"":"$")+Ue(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(a.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+ze(e.s.r)+":"+(e.e.rRel?"":"$")+ze(e.e.r):ba(e.s,a.biff)+":"+ba(e.e,a.biff)}function zt(e){return parseInt(Fc(e),10)-1}function ze(e){return""+(e+1)}function Ac(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function Fc(e){return e.replace(/\$(\d+)$/,"$1")}function Kt(e){for(var a=Cc(e),r=0,n=0;n!==a.length;++n)r=26*r+a.charCodeAt(n)-64;return r-1}function Ue(e){if(e<0)throw new Error("invalid column "+e);var a="";for(++e;e;e=Math.floor((e-1)/26))a=String.fromCharCode((e-1)%26+65)+a;return a}function Sc(e){return e.replace(/^([A-Z])/,"$$$1")}function Cc(e){return e.replace(/^\$([A-Z])/,"$1")}function yc(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function nr(e){for(var a=0,r=0,n=0;n=48&&t<=57?a=10*a+(t-48):t>=65&&t<=90&&(r=26*r+(t-64))}return{c:r-1,r:a-1}}function ue(e){for(var a=e.c+1,r="";a;a=(a-1)/26|0)r=String.fromCharCode((a-1)%26+65)+r;return r+(e.r+1)}function ka(e){var a=e.indexOf(":");return a==-1?{s:nr(e),e:nr(e)}:{s:nr(e.slice(0,a)),e:nr(e.slice(a+1))}}function _e(e,a){return typeof a>"u"||typeof a=="number"?_e(e.s,e.e):(typeof e!="string"&&(e=ue(e)),typeof a!="string"&&(a=ue(a)),e==a?e:e+":"+a)}function Oe(e){var a={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,t=0,s=e.length;for(r=0;n26);++n)r=26*r+t;for(a.s.c=--r,r=0;n9);++n)r=10*r+t;if(a.s.r=--r,n===s||t!=10)return a.e.c=a.s.c,a.e.r=a.s.r,a;for(++n,r=0;n!=s&&!((t=e.charCodeAt(n)-64)<1||t>26);++n)r=26*r+t;for(a.e.c=--r,r=0;n!=s&&!((t=e.charCodeAt(n)-48)<0||t>9);++n)r=10*r+t;return a.e.r=--r,a}function bn(e,a){var r=e.t=="d"&&a instanceof Date;if(e.z!=null)try{return e.w=xr(e.z,r?tr(a):a)}catch{}try{return e.w=xr((e.XF||{}).numFmtId||(r?14:0),r?tr(a):a)}catch{return""+a}}function Br(e,a,r){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),e.t=="e"?ha[e.v]||e.v:a==null?bn(e,e.v):bn(e,a))}function Yr(e,a){var r=a&&a.sheet?a.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function Un(e,a,r){var n=r||{},t=e?Array.isArray(e):n.dense,s=e||(t?[]:{}),i=0,c=0;if(s&&n.origin!=null){if(typeof n.origin=="number")i=n.origin;else{var f=typeof n.origin=="string"?nr(n.origin):n.origin;i=f.r,c=f.c}s["!ref"]||(s["!ref"]="A1:A1")}var o={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(s["!ref"]){var l=Oe(s["!ref"]);o.s.c=l.s.c,o.s.r=l.s.r,o.e.c=Math.max(o.e.c,l.e.c),o.e.r=Math.max(o.e.r,l.e.r),i==-1&&(o.e.r=i=l.e.r+1)}for(var h=0;h!=a.length;++h)if(a[h]){if(!Array.isArray(a[h]))throw new Error("aoa_to_sheet expects an array of arrays");for(var x=0;x!=a[h].length;++x)if(!(typeof a[h][x]>"u")){var d={v:a[h][x]},v=i+h,u=c+x;if(o.s.r>v&&(o.s.r=v),o.s.c>u&&(o.s.c=u),o.e.r>2;return r?t/100:t}function Hn(e){var a={s:{},e:{}};return a.s.r=e.read_shift(4),a.e.r=e.read_shift(4),a.s.c=e.read_shift(4),a.e.c=e.read_shift(4),a}var oa=Hn;function Je(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Pc(e){var a={},r=e.read_shift(1),n=r>>>1,t=e.read_shift(1),s=e.read_shift(2,"i"),i=e.read_shift(1),c=e.read_shift(1),f=e.read_shift(1);switch(e.l++,n){case 0:a.auto=1;break;case 1:a.index=t;var o=la[t];o&&(a.rgb=$a(o));break;case 2:a.rgb=$a([i,c,f]);break;case 3:a.theme=t;break}return s!=0&&(a.tint=s>0?s/32767:s/32768),a}function Lc(e){var a=e.read_shift(1);e.l++;var r={fBold:a&1,fItalic:a&2,fUnderline:a&4,fStrikeout:a&8,fOutline:a&16,fShadow:a&32,fCondense:a&64,fExtend:a&128};return r}function Wn(e,a){var r={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},n=e.read_shift(4);switch(n){case 0:return"";case 4294967295:case 4294967294:return r[e.read_shift(4)]||""}if(n>400)throw new Error("Unsupported Clipboard: "+n.toString(16));return e.l-=4,e.read_shift(0,a==1?"lpstr":"lpwstr")}function Mc(e){return Wn(e,1)}function Bc(e){return Wn(e,2)}var qt=2,cr=3,vt=11,Vn=12,pt=19,gt=64,bc=65,Uc=71,Hc=4108,Wc=4126,Ge=80,Gn=81,Vc=[Ge,Gn],Gc={1:{n:"CodePage",t:qt},2:{n:"Category",t:Ge},3:{n:"PresentationFormat",t:Ge},4:{n:"ByteCount",t:cr},5:{n:"LineCount",t:cr},6:{n:"ParagraphCount",t:cr},7:{n:"SlideCount",t:cr},8:{n:"NoteCount",t:cr},9:{n:"HiddenCount",t:cr},10:{n:"MultimediaClipCount",t:cr},11:{n:"ScaleCrop",t:vt},12:{n:"HeadingPairs",t:Hc},13:{n:"TitlesOfParts",t:Wc},14:{n:"Manager",t:Ge},15:{n:"Company",t:Ge},16:{n:"LinksUpToDate",t:vt},17:{n:"CharacterCount",t:cr},19:{n:"SharedDoc",t:vt},22:{n:"HyperlinksChanged",t:vt},23:{n:"AppVersion",t:cr,p:"version"},24:{n:"DigSig",t:bc},26:{n:"ContentType",t:Ge},27:{n:"ContentStatus",t:Ge},28:{n:"Language",t:Ge},29:{n:"Version",t:Ge},255:{},2147483648:{n:"Locale",t:pt},2147483651:{n:"Behavior",t:pt},1919054434:{}},Xc={1:{n:"CodePage",t:qt},2:{n:"Title",t:Ge},3:{n:"Subject",t:Ge},4:{n:"Author",t:Ge},5:{n:"Keywords",t:Ge},6:{n:"Comments",t:Ge},7:{n:"Template",t:Ge},8:{n:"LastAuthor",t:Ge},9:{n:"RevNumber",t:Ge},10:{n:"EditTime",t:gt},11:{n:"LastPrinted",t:gt},12:{n:"CreatedDate",t:gt},13:{n:"ModifiedDate",t:gt},14:{n:"PageCount",t:cr},15:{n:"WordCount",t:cr},16:{n:"CharCount",t:cr},17:{n:"Thumbnail",t:Uc},18:{n:"Application",t:Ge},19:{n:"DocSecurity",t:cr},255:{},2147483648:{n:"Locale",t:pt},2147483651:{n:"Behavior",t:pt},1919054434:{}},Xn={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"},$c=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function zc(e){return e.map(function(a){return[a>>16&255,a>>8&255,a&255]})}var Kc=zc([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]),la=Xe(Kc),ha={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},$n={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},zn={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"};function Yc(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function jc(e){var a=Yc();if(!e||!e.match)return a;var r={};if((e.match(Ke)||[]).forEach(function(n){var t=oe(n);switch(t[0].replace(tc,"<")){case"0?a.calcchains[0]:"",a.sst=a.strs.length>0?a.strs[0]:"",a.style=a.styles.length>0?a.styles[0]:"",a.defaults=r,delete a.calcchains,a}var Aa={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Qt(e){var a=e.lastIndexOf("/");return e.slice(0,a+1)+"_rels/"+e.slice(a+1)+".rels"}function Ua(e,a){var r={"!id":{}};if(!e)return r;a.charAt(0)!=="/"&&(a="/"+a);var n={};return(e.match(Ke)||[]).forEach(function(t){var s=oe(t);if(s[0]==="]*>([\\s\\S]*?)")}return e}();function Kn(e){var a={};e=Ae(e);for(var r=0;r0&&(a[n[1]]=Ee(t[1])),n[2]==="date"&&a[n[1]]&&(a[n[1]]=Ve(a[n[1]]))}return a}var Qc=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];function Yn(e,a,r,n){var t=[];if(typeof e=="string")t=gn(e,n);else for(var s=0;s0)for(var o=0;o!==t.length;o+=2){switch(f=+t[o+1].v,t[o].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":r.Worksheets=f,r.SheetNames=i.slice(c,c+f);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":r.NamedRanges=f,r.DefinedNames=i.slice(c,c+f);break;case"Charts":case"Diagramme":r.Chartsheets=f,r.ChartNames=i.slice(c,c+f);break}c+=f}}function ef(e,a,r){var n={};return a||(a={}),e=Ae(e),Qc.forEach(function(t){var s=(e.match(Na(t[0]))||[])[1];switch(t[2]){case"string":s&&(a[t[1]]=Ee(s));break;case"bool":a[t[1]]=s==="true";break;case"raw":var i=e.match(new RegExp("<"+t[0]+"[^>]*>([\\s\\S]*?)"));i&&i.length>0&&(n[t[1]]=i[1]);break}}),n.HeadingPairs&&n.TitlesOfParts&&Yn(n.HeadingPairs,n.TitlesOfParts,a,r),a}var rf=/<[^>]+>[^<]*/g;function af(e,a){var r={},n="",t=e.match(rf);if(t)for(var s=0;s!=t.length;++s){var i=t[s],c=oe(i);switch(c[0]){case"":n=null;break;default:if(i.indexOf(""),o=f[0].slice(4),l=f[1];switch(o){case"lpstr":case"bstr":case"lpwstr":r[n]=Ee(l);break;case"bool":r[n]=Se(l);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":r[n]=parseInt(l,10);break;case"r4":case"r8":case"decimal":r[n]=parseFloat(l);break;case"filetime":case"date":r[n]=Ve(l);break;case"cy":case"error":r[n]=Ee(l);break;default:if(o.slice(-1)=="/")break;a.WTF&&typeof console<"u"&&console.warn("Unexpected",i,o,f)}}else if(i.slice(0,2)!==">2+1<<2),n}function Qn(e){var a=e.read_shift(4),r=e.slice(e.l,e.l+a);return e.l+=a,(a&3)>0&&(e.l+=4-(a&3)&3),r}function hf(e){var a={};return a.Size=e.read_shift(4),e.l+=a.Size+3-(a.Size-1)%4,a}function mt(e,a,r){var n=e.read_shift(2),t,s=r||{};if(e.l+=2,a!==Vn&&n!==a&&Vc.indexOf(a)===-1&&!((a&65534)==4126&&(n&65534)==4126))throw new Error("Expected type "+a+" saw "+n);switch(a===Vn?n:a){case 2:return t=e.read_shift(2,"i"),s.raw||(e.l+=2),t;case 3:return t=e.read_shift(4,"i"),t;case 11:return e.read_shift(4)!==0;case 19:return t=e.read_shift(4),t;case 30:return jn(e,n,4).replace(rr,"");case 31:return Jn(e);case 64:return r0(e);case 65:return Qn(e);case 71:return hf(e);case 80:return a0(e,n,!s.raw).replace(rr,"");case 81:return sf(e,n).replace(rr,"");case 4108:return lf(e);case 4126:case 4127:return n==4127?cf(e):ff(e);default:throw new Error("TypedPropertyValue unrecognized type "+a+" "+n)}}function es(e,a){var r=e.l,n=e.read_shift(4),t=e.read_shift(4),s=[],i=0,c=0,f=-1,o={};for(i=0;i!=t;++i){var l=e.read_shift(4),h=e.read_shift(4);s[i]=[l,h+r]}s.sort(function(y,_){return y[1]-_[1]});var x={};for(i=0;i!=t;++i){if(e.l!==s[i][1]){var d=!0;if(i>0&&a)switch(a[s[i-1][0]].t){case 2:e.l+2===s[i][1]&&(e.l+=2,d=!1);break;case 80:e.l<=s[i][1]&&(e.l=s[i][1],d=!1);break;case 4108:e.l<=s[i][1]&&(e.l=s[i][1],d=!1);break}if((!a||i==0)&&e.l<=s[i][1]&&(d=!1,e.l=s[i][1]),d)throw new Error("Read Error: Expected address "+s[i][1]+" at "+e.l+" :"+i)}if(a){var v=a[s[i][0]];if(x[v.n]=mt(e,v.t,{raw:!0}),v.p==="version"&&(x[v.n]=String(x[v.n]>>16)+"."+("0000"+String(x[v.n]&65535)).slice(-4)),v.n=="CodePage")switch(x[v.n]){case 0:x[v.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:_r(c=x[v.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+x[v.n])}}else if(s[i][0]===1){if(c=x.CodePage=mt(e,qt),_r(c),f!==-1){var u=e.l;e.l=s[f][1],o=qn(e,c),e.l=u}}else if(s[i][0]===0){if(c===0){f=i,e.l=s[i+1][1];continue}o=qn(e,c)}else{var g=o[s[i][0]],S;switch(e[e.l]){case 65:e.l+=4,S=Qn(e);break;case 30:e.l+=4,S=a0(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4,S=a0(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,S=e.read_shift(4,"i");break;case 19:e.l+=4,S=e.read_shift(4);break;case 5:e.l+=4,S=e.read_shift(8,"f");break;case 11:e.l+=4,S=Re(e,4);break;case 64:e.l+=4,S=Ve(r0(e));break;default:throw new Error("unparsed value: "+e[e.l])}x[g]=S}}return e.l=r+n,x}function rs(e,a,r){var n=e.content;if(!n)return{};$e(n,0);var t,s,i,c,f=0;n.chk("feff","Byte Order: "),n.read_shift(2);var o=n.read_shift(4),l=n.read_shift(16);if(l!==me.utils.consts.HEADER_CLSID&&l!==r)throw new Error("Bad PropertySet CLSID "+l);if(t=n.read_shift(4),t!==1&&t!==2)throw new Error("Unrecognized #Sets: "+t);if(s=n.read_shift(16),c=n.read_shift(4),t===1&&c!==n.l)throw new Error("Length mismatch: "+c+" !== "+n.l);t===2&&(i=n.read_shift(16),f=n.read_shift(4));var h=es(n,a),x={SystemIdentifier:o};for(var d in h)x[d]=h[d];if(x.FMTID=s,t===1)return x;if(f-n.l==2&&(n.l+=2),n.l!==f)throw new Error("Length mismatch 2: "+n.l+" !== "+f);var v;try{v=es(n,null)}catch{}for(d in v)x[d]=v[d];return x.FMTID=[s,i],x}function jr(e,a){return e.read_shift(a),null}function uf(e,a,r){for(var n=[],t=e.l+a;e.l=12?2:1),t="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var s=e.read_shift(1);s&&(t="dbcs-cont")}else r.biff==12&&(t="wstr");r.biff>=2&&r.biff<=5&&(t="cpstr");var i=n?e.read_shift(n,t):"";return i}function df(e){var a=e.read_shift(2),r=e.read_shift(1),n=r&4,t=r&8,s=1+(r&1),i=0,c,f={};t&&(i=e.read_shift(2)),n&&(c=e.read_shift(4));var o=s==2?"dbcs-cont":"sbcs-cont",l=a===0?"":e.read_shift(a,o);return t&&(e.l+=4*i),n&&(e.l+=c),f.t=l,t||(f.raw=""+f.t+"",f.r=f.t),f}function ua(e,a,r){var n;if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(a,"cpstr");if(r.biff>=12)return e.read_shift(a,"dbcs-cont")}var t=e.read_shift(1);return t===0?n=e.read_shift(a,"sbcs-cont"):n=e.read_shift(a,"dbcs-cont"),n}function Va(e,a,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):ua(e,n,r)}function xa(e,a,r){if(r.biff>5)return Va(e,a,r);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function vf(e){var a=e.read_shift(1);e.l++;var r=e.read_shift(2);return e.l+=2,[a,r]}function pf(e){var a=e.read_shift(4),r=e.l,n=!1;a>24&&(e.l+=a-24,e.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(n=!0),e.l=r);var t=e.read_shift((n?a-24:a)>>1,"utf16le").replace(rr,"");return n&&(e.l+=24),t}function gf(e){for(var a=e.read_shift(2),r="";a-- >0;)r+="../";var n=e.read_shift(0,"lpstr-ansi");if(e.l+=2,e.read_shift(2)!=57005)throw new Error("Bad FileMoniker");var t=e.read_shift(4);if(t===0)return r+n.replace(/\\/g,"/");var s=e.read_shift(4);if(e.read_shift(2)!=3)throw new Error("Bad FileMoniker");var i=e.read_shift(s>>1,"utf16le").replace(rr,"");return r+i}function mf(e,a){var r=e.read_shift(16);switch(r){case"e0c9ea79f9bace118c8200aa004ba90b":return pf(e);case"0303000000000000c000000000000046":return gf(e);default:throw new Error("Unsupported Moniker "+r)}}function _t(e){var a=e.read_shift(4),r=a>0?e.read_shift(a,"utf16le").replace(rr,""):"";return r}function _f(e,a){var r=e.l+a,n=e.read_shift(4);if(n!==2)throw new Error("Unrecognized streamVersion: "+n);var t=e.read_shift(2);e.l+=2;var s,i,c,f,o="",l,h;t&16&&(s=_t(e,r-e.l)),t&128&&(i=_t(e,r-e.l)),(t&257)===257&&(c=_t(e,r-e.l)),(t&257)===1&&(f=mf(e,r-e.l)),t&8&&(o=_t(e,r-e.l)),t&32&&(l=e.read_shift(16)),t&64&&(h=r0(e)),e.l=r;var x=i||c||f||"";x&&o&&(x+="#"+o),x||(x="#"+o),t&2&&x.charAt(0)=="/"&&x.charAt(1)!="/"&&(x="file://"+x);var d={Target:x};return l&&(d.guid=l),h&&(d.time=h),s&&(d.Tooltip=s),d}function ts(e){var a=e.read_shift(1),r=e.read_shift(1),n=e.read_shift(1),t=e.read_shift(1);return[a,r,n,t]}function ns(e,a){var r=ts(e);return r[3]=0,r}function yr(e){var a=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2);return{r:a,c:r,ixfe:n}}function Ef(e){var a=e.read_shift(2),r=e.read_shift(2);return e.l+=8,{type:a,flags:r}}function Tf(e,a,r){return a===0?"":xa(e,a,r)}function kf(e,a,r){var n=r.biff>8?4:2,t=e.read_shift(n),s=e.read_shift(n,"i"),i=e.read_shift(n,"i");return[t,s,i]}function ss(e){var a=e.read_shift(2),r=Zt(e);return[a,r]}function wf(e,a,r){e.l+=4,a-=4;var n=e.l+a,t=Wa(e,a,r),s=e.read_shift(2);if(n-=e.l,s!==n)throw new Error("Malformed AddinUdf: padding = "+n+" != "+s);return e.l+=s,t}function Et(e){var a=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),t=e.read_shift(2);return{s:{c:n,r:a},e:{c:t,r}}}function is(e){var a=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(1),t=e.read_shift(1);return{s:{c:n,r:a},e:{c:t,r}}}var Af=is;function cs(e){e.l+=4;var a=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2);return e.l+=12,[r,a,n]}function Ff(e){var a={};return e.l+=4,e.l+=16,a.fSharedNote=e.read_shift(2),e.l+=4,a}function Sf(e){var a={};return e.l+=4,e.cf=e.read_shift(2),a}function Ze(e){e.l+=2,e.l+=e.read_shift(2)}var Cf={0:Ze,4:Ze,5:Ze,6:Ze,7:Sf,8:Ze,9:Ze,10:Ze,11:Ze,12:Ze,13:Ff,14:Ze,15:Ze,16:Ze,17:Ze,18:Ze,19:Ze,20:Ze,21:cs};function yf(e,a){for(var r=e.l+a,n=[];e.l=2&&(r.dt=e.read_shift(2),e.l-=2),r.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(a>6)throw new Error("Unexpected BIFF Ver "+r.BIFFVer)}return e.read_shift(a),r}function Df(e,a){return a===0||e.read_shift(2),1200}function Of(e,a,r){if(r.enc)return e.l+=a,"";var n=e.l,t=xa(e,0,r);return e.read_shift(a+n-e.l),t}function Rf(e,a,r){var n=r&&r.biff==8||a==2?e.read_shift(2):(e.l+=a,0);return{fDialog:n&16,fBelow:n&64,fRight:n&128}}function If(e,a,r){var n=e.read_shift(4),t=e.read_shift(1)&3,s=e.read_shift(1);switch(s){case 0:s="Worksheet";break;case 1:s="Macrosheet";break;case 2:s="Chartsheet";break;case 6:s="VBAModule";break}var i=Wa(e,0,r);return i.length===0&&(i="Sheet1"),{pos:n,hs:t,dt:s,name:i}}function Nf(e,a){for(var r=e.l+a,n=e.read_shift(4),t=e.read_shift(4),s=[],i=0;i!=t&&e.l>15),t&=32767);var s={Unsynced:n&1,DyZero:(n&2)>>1,ExAsc:(n&4)>>2,ExDsc:(n&8)>>3};return[s,t]}function bf(e){var a=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),t=e.read_shift(2),s=e.read_shift(2),i=e.read_shift(2),c=e.read_shift(2),f=e.read_shift(2),o=e.read_shift(2);return{Pos:[a,r],Dim:[n,t],Flags:s,CurTab:i,FirstTab:c,Selected:f,TabRatio:o}}function Uf(e,a,r){if(r&&r.biff>=2&&r.biff<5)return{};var n=e.read_shift(2);return{RTL:n&64}}function Hf(){}function Wf(e,a,r){var n={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(r&&r.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10;break}return n.name=Wa(e,0,r),n}function Vf(e){var a=yr(e);return a.isst=e.read_shift(4),a}function Gf(e,a,r){r.biffguess&&r.biff==2&&(r.biff=5);var n=e.l+a,t=yr(e);r.biff==2&&e.l++;var s=Va(e,n-e.l,r);return t.val=s,t}function Xf(e,a,r){var n=e.read_shift(2),t=xa(e,0,r);return[n,t]}var $f=xa;function os(e,a,r){var n=e.l+a,t=r.biff==8||!r.biff?4:2,s=e.read_shift(t),i=e.read_shift(t),c=e.read_shift(2),f=e.read_shift(2);return e.l=n,{s:{r:s,c},e:{r:i,c:f}}}function zf(e){var a=e.read_shift(2),r=e.read_shift(2),n=ss(e);return{r:a,c:r,ixfe:n[0],rknum:n[1]}}function Kf(e,a){for(var r=e.l+a-2,n=e.read_shift(2),t=e.read_shift(2),s=[];e.l>26],n.cellStyles&&(t.alc=s&7,t.fWrap=s>>3&1,t.alcV=s>>4&7,t.fJustLast=s>>7&1,t.trot=s>>8&255,t.cIndent=s>>16&15,t.fShrinkToFit=s>>20&1,t.iReadOrder=s>>22&2,t.fAtrNum=s>>26&1,t.fAtrFnt=s>>27&1,t.fAtrAlc=s>>28&1,t.fAtrBdr=s>>29&1,t.fAtrPat=s>>30&1,t.fAtrProt=s>>31&1,t.dgLeft=i&15,t.dgRight=i>>4&15,t.dgTop=i>>8&15,t.dgBottom=i>>12&15,t.icvLeft=i>>16&127,t.icvRight=i>>23&127,t.grbitDiag=i>>30&3,t.icvTop=c&127,t.icvBottom=c>>7&127,t.icvDiag=c>>14&127,t.dgDiag=c>>21&15,t.icvFore=f&127,t.icvBack=f>>7&127,t.fsxButton=f>>14&1),t}function Jf(e,a,r){var n={};return n.ifnt=e.read_shift(2),n.numFmtId=e.read_shift(2),n.flags=e.read_shift(2),n.fStyle=n.flags>>2&1,a-=6,n.data=jf(e,a,n.fStyle,r),n}function Zf(e){e.l+=4;var a=[e.read_shift(2),e.read_shift(2)];if(a[0]!==0&&a[0]--,a[1]!==0&&a[1]--,a[0]>7||a[1]>7)throw new Error("Bad Gutters: "+a.join("|"));return a}function ls(e,a,r){var n=yr(e);(r.biff==2||a==9)&&++e.l;var t=xf(e);return n.val=t,n.t=t===!0||t===!1?"b":"e",n}function qf(e,a,r){r.biffguess&&r.biff==2&&(r.biff=5);var n=yr(e),t=Je(e);return n.val=t,n}var hs=Tf;function Qf(e,a,r){var n=e.l+a,t=e.read_shift(2),s=e.read_shift(2);if(r.sbcch=s,s==1025||s==14849)return[s,t];if(s<1||s>255)throw new Error("Unexpected SupBook type: "+s);for(var i=ua(e,s),c=[];n>e.l;)c.push(Va(e));return[s,t,i,c]}function us(e,a,r){var n=e.read_shift(2),t,s={fBuiltIn:n&1,fWantAdvise:n>>>1&1,fWantPict:n>>>2&1,fOle:n>>>3&1,fOleLink:n>>>4&1,cf:n>>>5&1023,fIcon:n>>>15&1};return r.sbcch===14849&&(t=wf(e,a-2,r)),s.body=t||e.read_shift(a-2),typeof t=="string"&&(s.Name=t),s}var eo=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function xs(e,a,r){var n=e.l+a,t=e.read_shift(2),s=e.read_shift(1),i=e.read_shift(1),c=e.read_shift(r&&r.biff==2?1:2),f=0;(!r||r.biff>=5)&&(r.biff!=5&&(e.l+=2),f=e.read_shift(2),r.biff==5&&(e.l+=2),e.l+=4);var o=ua(e,i,r);t&32&&(o=eo[o.charCodeAt(0)]);var l=n-e.l;r&&r.biff==2&&--l;var h=n==e.l||c===0||!(l>0)?[]:Mh(e,l,r,c);return{chKey:s,Name:o,itab:f,rgce:h}}function ds(e,a,r){if(r.biff<8)return ro(e,a,r);for(var n=[],t=e.l+a,s=e.read_shift(r.biff>8?4:2);s--!==0;)n.push(kf(e,r.biff>8?12:6,r));if(e.l!=t)throw new Error("Bad ExternSheet: "+e.l+" != "+t);return n}function ro(e,a,r){e[e.l+1]==3&&e[e.l]++;var n=Wa(e,a,r);return n.charCodeAt(0)==3?n.slice(1):n}function ao(e,a,r){if(r.biff<8){e.l+=a;return}var n=e.read_shift(2),t=e.read_shift(2),s=ua(e,n,r),i=ua(e,t,r);return[s,i]}function to(e,a,r){var n=is(e);e.l++;var t=e.read_shift(1);return a-=8,[Bh(e,a,r),t,n]}function vs(e,a,r){var n=Af(e);switch(r.biff){case 2:e.l++,a-=7;break;case 3:case 4:e.l+=2,a-=8;break;default:e.l+=6,a-=12}return[n,Ph(e,a,r)]}function no(e){var a=e.read_shift(4)!==0,r=e.read_shift(4)!==0,n=e.read_shift(4);return[a,r,n]}function so(e,a,r){if(!(r.biff<8)){var n=e.read_shift(2),t=e.read_shift(2),s=e.read_shift(2),i=e.read_shift(2),c=xa(e,0,r);return r.biff<8&&e.read_shift(1),[{r:n,c:t},c,i,s]}}function io(e,a,r){return so(e,a,r)}function co(e,a){for(var r=[],n=e.read_shift(2);n--;)r.push(Et(e));return r}function fo(e,a,r){if(r&&r.biff<8)return lo(e,a,r);var n=cs(e),t=yf(e,a-22,n[1]);return{cmo:n,ft:t}}var oo={8:function(e,a){var r=e.l+a;e.l+=10;var n=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var t=e.read_shift(1);return e.l+=t,e.l=r,{fmt:n}}};function lo(e,a,r){e.l+=4;var n=e.read_shift(2),t=e.read_shift(2),s=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,a-=36;var i=[];return i.push((oo[n]||Ye)(e,a,r)),{cmo:[t,n,s],ft:i}}function ho(e,a,r){var n=e.l,t="";try{e.l+=4;var s=(r.lastobj||{cmo:[0,0]}).cmo[1],i;[0,5,7,11,12,14].indexOf(s)==-1?e.l+=6:i=vf(e,6,r);var c=e.read_shift(2);e.read_shift(2),Me(e,2);var f=e.read_shift(2);e.l+=f;for(var o=1;o=(l?c:2*c))break}if(t.length!==c&&t.length!==c*2)throw new Error("cchText: "+c+" != "+t.length);return e.l=n+a,{t}}catch{return e.l=n+a,{t}}}function uo(e,a){var r=Et(e);e.l+=16;var n=_f(e,a-24);return[r,n]}function xo(e,a){e.read_shift(2);var r=Et(e),n=e.read_shift((a-10)/2,"dbcs-cont");return n=n.replace(rr,""),[r,n]}function vo(e){var a=[0,0],r;return r=e.read_shift(2),a[0]=Xn[r]||r,r=e.read_shift(2),a[1]=Xn[r]||r,a}function po(e){for(var a=e.read_shift(2),r=[];a-- >0;)r.push(ns(e));return r}function go(e){for(var a=e.read_shift(2),r=[];a-- >0;)r.push(ns(e));return r}function mo(e){e.l+=2;var a={cxfs:0,crc:0};return a.cxfs=e.read_shift(2),a.crc=e.read_shift(4),a}function ps(e,a,r){if(!r.cellStyles)return Ye(e,a);var n=r&&r.biff>=12?4:2,t=e.read_shift(n),s=e.read_shift(n),i=e.read_shift(n),c=e.read_shift(n),f=e.read_shift(2);n==2&&(e.l+=2);var o={s:t,e:s,w:i,ixfe:c,flags:f};return(r.biff>=5||!r.biff)&&(o.level=f>>8&7),o}function _o(e,a){var r={};return a<32||(e.l+=16,r.header=Je(e),r.footer=Je(e),e.l+=2),r}function Eo(e,a,r){var n={area:!1};if(r.biff!=5)return e.l+=a,n;var t=e.read_shift(1);return e.l+=3,t&16&&(n.area=!0),n}var To=yr,ko=as,wo=Va;function Ao(e){var a=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),t={fmt:a,env:r,len:n,data:e.slice(e.l,e.l+n)};return e.l+=n,t}function Fo(e,a,r){r.biffguess&&r.biff==5&&(r.biff=2);var n=yr(e);++e.l;var t=xa(e,a-7,r);return n.t="str",n.val=t,n}function So(e){var a=yr(e);++e.l;var r=Je(e);return a.t="n",a.val=r,a}function Co(e){var a=yr(e);++e.l;var r=e.read_shift(2);return a.t="n",a.val=r,a}function yo(e){var a=e.read_shift(1);return a===0?(e.l++,""):e.read_shift(a,"sbcs-cont")}function Do(e,a){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=a-13}function Oo(e,a,r){var n=e.l+a,t=yr(e),s=e.read_shift(2),i=ua(e,s,r);return e.l=n,t.t="str",t.val=i,t}var Ro=[2,3,48,49,131,139,140,245],gs=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},a=bt({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(c,f){var o=[],l=$r(1);switch(f.type){case"base64":l=Er(fr(c));break;case"binary":l=Er(c);break;case"buffer":case"array":l=c;break}$e(l,0);var h=l.read_shift(1),x=!!(h&136),d=!1,v=!1;switch(h){case 2:break;case 3:break;case 48:d=!0,x=!0;break;case 49:d=!0,x=!0;break;case 131:break;case 139:break;case 140:v=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+h.toString(16))}var u=0,g=521;h==2&&(u=l.read_shift(2)),l.l+=3,h!=2&&(u=l.read_shift(4)),u>1048576&&(u=1e6),h!=2&&(g=l.read_shift(2));var S=l.read_shift(2),y=f.codepage||1252;h!=2&&(l.l+=16,l.read_shift(1),l[l.l]!==0&&(y=e[l[l.l]]),l.l+=1,l.l+=2),v&&(l.l+=36);for(var _=[],N={},b=Math.min(l.length,h==2?521:g-10-(d?264:0)),I=v?32:11;l.l0;){if(l[l.l]===42){l.l+=S;continue}for(++l.l,o[++A]=[],W=0,W=0;W!=_.length;++W){var D=l.slice(l.l,l.l+_[W].len);l.l+=_[W].len,$e(D,0);var z=Gr.utils.decode(y,D);switch(_[W].type){case"C":z.trim().length&&(o[A][W]=z.replace(/\s+$/,""));break;case"D":z.length===8?o[A][W]=new Date(+z.slice(0,4),+z.slice(4,6)-1,+z.slice(6,8)):o[A][W]=z;break;case"F":o[A][W]=parseFloat(z.trim());break;case"+":case"I":o[A][W]=v?D.read_shift(-4,"i")^2147483648:D.read_shift(4,"i");break;case"L":switch(z.trim().toUpperCase()){case"Y":case"T":o[A][W]=!0;break;case"N":case"F":o[A][W]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+z+"|")}break;case"M":if(!x)throw new Error("DBF Unexpected MEMO for type "+h.toString(16));o[A][W]="##MEMO##"+(v?parseInt(z.trim(),10):D.read_shift(4));break;case"N":z=z.replace(/\u0000/g,"").trim(),z&&z!="."&&(o[A][W]=+z||0);break;case"@":o[A][W]=new Date(D.read_shift(-8,"f")-621356832e5);break;case"T":o[A][W]=new Date((D.read_shift(4)-2440588)*864e5+D.read_shift(4));break;case"Y":o[A][W]=D.read_shift(4,"i")/1e4+D.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":o[A][W]=-D.read_shift(-8,"f");break;case"B":if(d&&_[W].len==8){o[A][W]=D.read_shift(8,"f");break}case"G":case"P":D.l+=_[W].len;break;case"0":if(_[W].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+_[W].type)}}}if(h!=2&&l.l=0&&_r(+o.codepage),o.type=="string")throw new Error("Cannot write DBF to JS string");var l=Xt(),h=w0(c,{header:1,raw:!0,cellDates:!0}),x=h[0],d=h.slice(1),v=c["!cols"]||[],u=0,g=0,S=0,y=1;for(u=0;u250&&(D=250),W=((v[u]||{}).DBF||{}).type,W=="C"&&v[u].DBF.len>D&&(D=v[u].DBF.len),A=="B"&&W=="N"&&(A="N",I[u]=v[u].DBF.dec,D=v[u].DBF.len),b[u]=A=="C"||W=="N"?D:s[A]||0,y+=b[u],N[u]=A}var G=l.next(32);for(G.write_shift(4,318902576),G.write_shift(4,d.length),G.write_shift(2,296+32*S),G.write_shift(2,y),u=0;u<4;++u)G.write_shift(4,0);for(G.write_shift(4,0|(+a[Vr]||3)<<8),u=0,g=0;u":190,"?":191,"{":223},a=new RegExp("\x1BN("+Sr(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(x,d){var v=e[d];return typeof v=="number"?I0(v):v},n=function(x,d,v){var u=d.charCodeAt(0)-32<<4|v.charCodeAt(0)-48;return u==59?x:I0(u)};e["|"]=254;function t(x,d){switch(d.type){case"base64":return s(fr(x),d);case"binary":return s(x,d);case"buffer":return s(ge&&Buffer.isBuffer(x)?x.toString("binary"):aa(x),d);case"array":return s(ia(x),d)}throw new Error("Unrecognized type "+d.type)}function s(x,d){var v=x.split(/[\n\r]+/),u=-1,g=-1,S=0,y=0,_=[],N=[],b=null,I={},A=[],W=[],D=[],z=0,G;for(+d.codepage>=0&&_r(+d.codepage);S!==v.length;++S){z=0;var P=v[S].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(a,r),J=P.replace(/;;/g,"\0").split(";").map(function(O){return O.replace(/\u0000/g,";")}),fe=J[0],re;if(P.length>0)switch(fe){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":J[1].charAt(0)=="P"&&N.push(P.slice(3).replace(/;;/g,";"));break;case"C":var ce=!1,ie=!1,Fe=!1,V=!1,le=-1,he=-1;for(y=1;y-1&&_[le][he];if(!U||!U[1])throw new Error("SYLK shared formula cannot find base");_[u][g][1]=ys(U[1],{r:u-le,c:g-he})}break;case"F":var R=0;for(y=1;y0?(A[u].hpt=z,A[u].hpx=za(z)):z===0&&(A[u].hidden=!0);break;default:if(d&&d.WTF)throw new Error("SYLK bad record "+P)}R<1&&(b=null);break;default:if(d&&d.WTF)throw new Error("SYLK bad record "+P)}}return A.length>0&&(I["!rows"]=A),W.length>0&&(I["!cols"]=W),d&&d.sheetRows&&(_=_.slice(0,d.sheetRows)),[_,I]}function i(x,d){var v=t(x,d),u=v[0],g=v[1],S=wa(u,d);return Sr(g).forEach(function(y){S[y]=g[y]}),S}function c(x,d){return Yr(i(x,d),d)}function f(x,d,v,u){var g="C;Y"+(v+1)+";X"+(u+1)+";K";switch(x.t){case"n":g+=x.v||0,x.f&&!x.F&&(g+=";E"+m1(x.f,{r:v,c:u}));break;case"b":g+=x.v?"TRUE":"FALSE";break;case"e":g+=x.w||x.v;break;case"d":g+='"'+(x.w||x.v)+'"';break;case"s":g+='"'+x.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return g}function o(x,d){d.forEach(function(v,u){var g="F;W"+(u+1)+" "+(u+1)+" ";v.hidden?g+="0":(typeof v.width=="number"&&!v.wpx&&(v.wpx=wt(v.width)),typeof v.wpx=="number"&&!v.wch&&(v.wch=At(v.wpx)),typeof v.wch=="number"&&(g+=Math.round(v.wch))),g.charAt(g.length-1)!=" "&&x.push(g)})}function l(x,d){d.forEach(function(v,u){var g="F;";v.hidden?g+="M0;":v.hpt?g+="M"+20*v.hpt+";":v.hpx&&(g+="M"+20*As(v.hpx)+";"),g.length>2&&x.push(g+"R"+(u+1))})}function h(x,d){var v=["ID;PWXL;N;E"],u=[],g=Oe(x["!ref"]),S,y=Array.isArray(x),_=`\r `;v.push("P;PGeneral"),v.push("F;P0;DG0G8;M255"),x["!cols"]&&o(v,x["!cols"]),x["!rows"]&&l(v,x["!rows"]),v.push("B;Y"+(g.e.r-g.s.r+1)+";X"+(g.e.c-g.s.c+1)+";D"+[g.s.c,g.s.r,g.e.c,g.e.r].join(" "));for(var N=g.s.r;N<=g.e.r;++N)for(var b=g.s.c;b<=g.e.c;++b){var I=ue({r:N,c:b});S=y?(x[N]||[])[b]:x[I],!(!S||S.v==null&&(!S.f||S.F))&&u.push(f(S,x,N,b))}return v.join(_)+_+u.join(_)+_+"E"+_}return{to_workbook:c,to_sheet:i,from_sheet:h}}(),No=function(){function e(s,i){switch(i.type){case"base64":return a(fr(s),i);case"binary":return a(s,i);case"buffer":return a(ge&&Buffer.isBuffer(s)?s.toString("binary"):aa(s),i);case"array":return a(ia(s),i)}throw new Error("Unrecognized type "+i.type)}function a(s,i){for(var c=s.split(` `),f=-1,o=-1,l=0,h=[];l!==c.length;++l){if(c[l].trim()==="BOT"){h[++f]=[],o=0;continue}if(!(f<0)){var x=c[l].trim().split(","),d=x[0],v=x[1];++l;for(var u=c[l]||"";(u.match(/["]/g)||[]).length&1&&l=0&&v[u].length===0;)--u;for(var g=10,S=0,y=0;y<=u;++y)S=v[y].indexOf(" "),S==-1?S=v[y].length:S++,g=Math.max(g,S);for(y=0;y<=u;++y){d[y]=[];var _=0;for(e(v[y].slice(0,g).trim(),d,y,_,x),_=1;_<=(v[y].length-g)/10+1;++_)e(v[y].slice(g+(_-1)*10,g+_*10).trim(),d,y,_,x)}return x.sheetRows&&(d=d.slice(0,x.sheetRows)),d}var r={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function t(l){for(var h={},x=!1,d=0,v=0;d0&&z(),v["!ref"]=_e(u),v}function i(l,h){return!(h&&h.PRN)||h.FS||l.slice(0,4)=="sep="||l.indexOf(" ")>=0||l.indexOf(",")>=0||l.indexOf(";")>=0?s(l,h):wa(a(l,h),h)}function c(l,h){var x="",d=h.type=="string"?[0,0,0,0]:E0(l,h);switch(h.type){case"base64":x=fr(l);break;case"binary":x=l;break;case"buffer":h.codepage==65001?x=l.toString("utf8"):h.codepage&&typeof Gr<"u"?x=Gr.utils.decode(h.codepage,l):x=ge&&Buffer.isBuffer(l)?l.toString("binary"):aa(l);break;case"array":x=ia(l);break;case"string":x=l;break;default:throw new Error("Unrecognized type "+h.type)}return d[0]==239&&d[1]==187&&d[2]==191?x=Ae(x.slice(3)):h.type!="string"&&h.type!="buffer"&&h.codepage==65001?x=Ae(x):h.type=="binary"&&typeof Gr<"u"&&h.codepage&&(x=Gr.utils.decode(h.codepage,Gr.utils.encode(28591,x))),x.slice(0,19)=="socialcalc:version:"?Po.to_sheet(h.type=="string"?x:Ae(x),h):i(x,h)}function f(l,h){return Yr(c(l,h),h)}function o(l){for(var h=[],x=Oe(l["!ref"]),d,v=Array.isArray(l),u=x.s.r;u<=x.e.r;++u){for(var g=[],S=x.s.c;S<=x.e.c;++S){var y=ue({r:u,c:S});if(d=v?(l[u]||[])[S]:l[y],!d||d.v==null){g.push(" ");continue}for(var _=(d.w||(Br(d),d.w)||"").slice(0,10);_.length<10;)_+=" ";g.push(_+(S===0?" ":""))}h.push(g.join(""))}return h.join(` `)}return{to_workbook:f,to_sheet:c,from_sheet:o}}();function Lo(e,a){var r=a||{},n=!!r.WTF;r.WTF=!0;try{var t=Io.to_workbook(e,r);return r.WTF=n,t}catch(s){if(r.WTF=n,!s.message.match(/SYLK bad record ID/)&&n)throw s;return Ga.to_workbook(e,a)}}var Xa=function(){function e(F,U,R){if(F){$e(F,F.l||0);for(var O=R.Enum||le;F.l=16&&F[14]==5&&F[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(F[2]==2)R.Enum=le,e(F,function(ae,Ne,gr){switch(gr){case 0:R.vers=ae,ae>=4096&&(R.qpro=!0);break;case 6:C=ae;break;case 204:ae&&(ee=ae);break;case 222:ee=ae;break;case 15:case 51:R.qpro||(ae[1].v=ae[1].v.slice(1));case 13:case 14:case 16:gr==14&&(ae[2]&112)==112&&(ae[2]&15)>1&&(ae[2]&15)<15&&(ae[1].z=R.dateNF||de[14],R.cellDates&&(ae[1].t="d",ae[1].v=ut(ae[1].v))),R.qpro&&ae[3]>ne&&(O["!ref"]=_e(C),q[K]=O,j.push(K),O=R.dense?[]:{},C={s:{r:0,c:0},e:{r:0,c:0}},ne=ae[3],K=ee||"Sheet"+(ne+1),ee="");var Or=R.dense?(O[ae[0].r]||[])[ae[0].c]:O[ue(ae[0])];if(Or){Or.t=ae[1].t,Or.v=ae[1].v,ae[1].z!=null&&(Or.z=ae[1].z),ae[1].f!=null&&(Or.f=ae[1].f);break}R.dense?(O[ae[0].r]||(O[ae[0].r]=[]),O[ae[0].r][ae[0].c]=ae[1]):O[ue(ae[0])]=ae[1];break}},R);else if(F[2]==26||F[2]==14)R.Enum=he,F[2]==14&&(R.qpro=!0,F.l=0),e(F,function(ae,Ne,gr){switch(gr){case 204:K=ae;break;case 22:ae[1].v=ae[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(ae[3]>ne&&(O["!ref"]=_e(C),q[K]=O,j.push(K),O=R.dense?[]:{},C={s:{r:0,c:0},e:{r:0,c:0}},ne=ae[3],K="Sheet"+(ne+1)),Ie>0&&ae[0].r>=Ie)break;R.dense?(O[ae[0].r]||(O[ae[0].r]=[]),O[ae[0].r][ae[0].c]=ae[1]):O[ue(ae[0])]=ae[1],C.e.c=0&&_r(+R.codepage),R.type=="string")throw new Error("Cannot write WK1 to JS string");var O=Xt(),K=Oe(F["!ref"]),ee=Array.isArray(F),ne=[];Ar(O,0,s(1030)),Ar(O,6,f(K));for(var q=Math.min(K.e.r,8191),j=K.s.r;j<=q;++j)for(var Te=ze(j),C=K.s.c;C<=K.e.c;++C){j===K.s.r&&(ne[C]=Ue(C));var Ie=ne[C]+Te,ke=ee?(F[j]||[])[C]:F[Ie];if(!(!ke||ke.t=="z"))if(ke.t=="n")(ke.v|0)==ke.v&&ke.v>=-32768&&ke.v<=32767?Ar(O,13,d(j,C,ke.v)):Ar(O,14,u(j,C,ke.v));else{var we=Br(ke);Ar(O,15,h(j,C,we.slice(0,239)))}}return Ar(O,1),O.end()}function t(F,U){var R=U||{};if(+R.codepage>=0&&_r(+R.codepage),R.type=="string")throw new Error("Cannot write WK3 to JS string");var O=Xt();Ar(O,0,i(F));for(var K=0,ee=0;K8191&&(R=8191),U.write_shift(2,R),U.write_shift(1,K),U.write_shift(1,O),U.write_shift(2,0),U.write_shift(2,0),U.write_shift(1,1),U.write_shift(1,2),U.write_shift(4,0),U.write_shift(4,0),U}function c(F,U,R){var O={s:{c:0,r:0},e:{c:0,r:0}};return U==8&&R.qpro?(O.s.c=F.read_shift(1),F.l++,O.s.r=F.read_shift(2),O.e.c=F.read_shift(1),F.l++,O.e.r=F.read_shift(2),O):(O.s.c=F.read_shift(2),O.s.r=F.read_shift(2),U==12&&R.qpro&&(F.l+=2),O.e.c=F.read_shift(2),O.e.r=F.read_shift(2),U==12&&R.qpro&&(F.l+=2),O.s.c==65535&&(O.s.c=O.e.c=O.s.r=O.e.r=0),O)}function f(F){var U=be(8);return U.write_shift(2,F.s.c),U.write_shift(2,F.s.r),U.write_shift(2,F.e.c),U.write_shift(2,F.e.r),U}function o(F,U,R){var O=[{c:0,r:0},{t:"n",v:0},0,0];return R.qpro&&R.vers!=20768?(O[0].c=F.read_shift(1),O[3]=F.read_shift(1),O[0].r=F.read_shift(2),F.l+=2):(O[2]=F.read_shift(1),O[0].c=F.read_shift(2),O[0].r=F.read_shift(2)),O}function l(F,U,R){var O=F.l+U,K=o(F,U,R);if(K[1].t="s",R.vers==20768){F.l++;var ee=F.read_shift(1);return K[1].v=F.read_shift(ee,"utf8"),K}return R.qpro&&F.l++,K[1].v=F.read_shift(O-F.l,"cstr"),K}function h(F,U,R){var O=be(7+R.length);O.write_shift(1,255),O.write_shift(2,U),O.write_shift(2,F),O.write_shift(1,39);for(var K=0;K=128?95:ee)}return O.write_shift(1,0),O}function x(F,U,R){var O=o(F,U,R);return O[1].v=F.read_shift(2,"i"),O}function d(F,U,R){var O=be(7);return O.write_shift(1,255),O.write_shift(2,U),O.write_shift(2,F),O.write_shift(2,R,"i"),O}function v(F,U,R){var O=o(F,U,R);return O[1].v=F.read_shift(8,"f"),O}function u(F,U,R){var O=be(13);return O.write_shift(1,255),O.write_shift(2,U),O.write_shift(2,F),O.write_shift(8,R,"f"),O}function g(F,U,R){var O=F.l+U,K=o(F,U,R);if(K[1].v=F.read_shift(8,"f"),R.qpro)F.l=O;else{var ee=F.read_shift(2);N(F.slice(F.l,F.l+ee),K),F.l+=ee}return K}function S(F,U,R){var O=U&32768;return U&=-32769,U=(O?F:0)+(U>=8192?U-16384:U),(O?"":"$")+(R?Ue(U):ze(U))}var y={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},_=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function N(F,U){$e(F,0);for(var R=[],O=0,K="",ee="",ne="",q="";F.lR.length){console.error("WK1 bad formula parse 0x"+j.toString(16)+":|"+R.join("|")+"|");return}var ke=R.slice(-O);R.length-=O,R.push(y[j][0]+"("+ke.join(",")+")")}else return j<=7?console.error("WK1 invalid opcode "+j.toString(16)):j<=24?console.error("WK1 unsupported op "+j.toString(16)):j<=30?console.error("WK1 invalid opcode "+j.toString(16)):j<=115?console.error("WK1 unsupported function opcode "+j.toString(16)):console.error("WK1 unrecognized opcode "+j.toString(16))}}R.length==1?U[1].f=""+R[0]:console.error("WK1 bad formula parse |"+R.join("|")+"|")}function b(F){var U=[{c:0,r:0},{t:"n",v:0},0];return U[0].r=F.read_shift(2),U[3]=F[F.l++],U[0].c=F[F.l++],U}function I(F,U){var R=b(F);return R[1].t="s",R[1].v=F.read_shift(U-4,"cstr"),R}function A(F,U,R,O){var K=be(6+O.length);K.write_shift(2,F),K.write_shift(1,R),K.write_shift(1,U),K.write_shift(1,39);for(var ee=0;ee=128?95:ne)}return K.write_shift(1,0),K}function W(F,U){var R=b(F);R[1].v=F.read_shift(2);var O=R[1].v>>1;if(R[1].v&1)switch(O&7){case 0:O=(O>>3)*5e3;break;case 1:O=(O>>3)*500;break;case 2:O=(O>>3)/20;break;case 3:O=(O>>3)/200;break;case 4:O=(O>>3)/2e3;break;case 5:O=(O>>3)/2e4;break;case 6:O=(O>>3)/16;break;case 7:O=(O>>3)/64;break}return R[1].v=O,R}function D(F,U){var R=b(F),O=F.read_shift(4),K=F.read_shift(4),ee=F.read_shift(2);if(ee==65535)return O===0&&K===3221225472?(R[1].t="e",R[1].v=15):O===0&&K===3489660928?(R[1].t="e",R[1].v=42):R[1].v=0,R;var ne=ee&32768;return ee=(ee&32767)-16446,R[1].v=(1-ne*2)*(K*Math.pow(2,ee+32)+O*Math.pow(2,ee)),R}function z(F,U,R,O){var K=be(14);if(K.write_shift(2,F),K.write_shift(1,R),K.write_shift(1,U),O==0)return K.write_shift(4,0),K.write_shift(4,0),K.write_shift(2,65535),K;var ee=0,ne=0,q=0,j=0;return O<0&&(ee=1,O=-O),ne=Math.log2(O)|0,O/=Math.pow(2,ne-31),j=O>>>0,j&2147483648||(O/=2,++ne,j=O>>>0),O-=j,j|=2147483648,j>>>=0,O*=Math.pow(2,32),q=O>>>0,K.write_shift(4,q),K.write_shift(4,j),ne+=16383+(ee?32768:0),K.write_shift(2,ne),K}function G(F,U){var R=D(F);return F.l+=U-14,R}function P(F,U){var R=b(F),O=F.read_shift(4);return R[1].v=O>>6,R}function J(F,U){var R=b(F),O=F.read_shift(8,"f");return R[1].v=O,R}function fe(F,U){var R=J(F);return F.l+=U-10,R}function re(F,U){return F[F.l+U-1]==0?F.read_shift(U,"cstr"):""}function ce(F,U){var R=F[F.l++];R>U-1&&(R=U-1);for(var O="";O.length127?95:K}return R[R.l++]=0,R}var le={0:{n:"BOF",f:Me},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:c},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:x},14:{n:"NUMBER",f:v},15:{n:"LABEL",f:l},16:{n:"FORMULA",f:g},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:l},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:re},222:{n:"SHEETNAMELP",f:ce},65535:{n:""}},he={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:I},23:{n:"NUMBER17",f:D},24:{n:"NUMBER18",f:W},25:{n:"FORMULA19",f:G},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:Fe},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:P},38:{n:"??"},39:{n:"NUMBER27",f:J},40:{n:"FORMULA28",f:fe},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:re},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:ie},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:t,to_workbook:a}}();function Mo(e){var a={},r=e.match(Ke),n=0,t=!1;if(r)for(;n!=r.length;++n){var s=oe(r[n]);switch(s[0].replace(/\w*:/g,"")){case"":case"":a.shadow=1;break;case"":break;case"":case"":a.outline=1;break;case"":break;case"":case"":a.strike=1;break;case"":break;case"":case"":a.u=1;break;case"":break;case"":case"":a.b=1;break;case"":break;case"":case"":a.i=1;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":t=!1;break;default:if(s[0].charCodeAt(1)!==47&&!t)throw new Error("Unrecognized rich format "+s[0])}}return a}var Bo=function(){var e=Na("t"),a=Na("rPr");function r(s){var i=s.match(e);if(!i)return{t:"s",v:""};var c={t:"s",v:Ee(i[1])},f=s.match(a);return f&&(c.s=Mo(f[1])),c}var n=/<(?:\w+:)?r>/g,t=/<\/(?:\w+:)?r>/;return function(i){return i.replace(n,"").split(t).map(r).filter(function(c){return c.v})}}(),bo=function(){var a=/(\r\n|\n)/g;function r(t,s,i){var c=[];t.u&&c.push("text-decoration: underline;"),t.uval&&c.push("text-underline-style:"+t.uval+";"),t.sz&&c.push("font-size:"+t.sz+"pt;"),t.outline&&c.push("text-effect: outline;"),t.shadow&&c.push("text-shadow: auto;"),s.push(''),t.b&&(s.push(""),i.push("")),t.i&&(s.push(""),i.push("")),t.strike&&(s.push(""),i.push(""));var f=t.valign||"";return f=="superscript"||f=="super"?f="sup":f=="subscript"&&(f="sub"),f!=""&&(s.push("<"+f+">"),i.push("")),i.push(""),t}function n(t){var s=[[],t.v,[]];return t.v?(t.s&&r(t.s,s[0],s[2]),s[0].join("")+s[1].replace(a,"
")+s[2].join("")):""}return function(s){return s.map(n).join("")}}(),Uo=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,Ho=/<(?:\w+:)?r>/,Wo=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function t0(e,a){var r=a?a.cellHTML:!0,n={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(n.t=Ee(Ae(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),n.r=Ae(e),r&&(n.h=Ht(n.t))):e.match(Ho)&&(n.r=Ae(e),n.t=Ee(Ae((e.replace(Wo,"").match(Uo)||[]).join("").replace(Ke,""))),r&&(n.h=bo(Bo(n.r)))),n):{t:""}}var Vo=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,Go=/<(?:\w+:)?(?:si|sstItem)>/g,Xo=/<\/(?:\w+:)?(?:si|sstItem)>/;function $o(e,a){var r=[],n="";if(!e)return r;var t=e.match(Vo);if(t){n=t[2].replace(Go,"").split(Xo);for(var s=0;s!=n.length;++s){var i=t0(n[s].trim(),a);i!=null&&(r[r.length]=i)}t=oe(t[1]),r.Count=t.count,r.Unique=t.uniqueCount}return r}function zo(e){return[e.read_shift(4),e.read_shift(4)]}function Ko(e,a){var r=[],n=!1;return Mr(e,function(s,i,c){switch(c){case 159:r.Count=s[0],r.Unique=s[1];break;case 19:r.push(s);break;case 160:return!0;case 35:n=!0;break;case 36:n=!1;break;default:if(i.T,!n||a.WTF)throw new Error("Unexpected record 0x"+c.toString(16))}}),r}function ms(e){for(var a=[],r=e.split(""),n=0;n=4&&(e.l+=a-4),r}function Yo(e){var a={};return a.id=e.read_shift(0,"lpp4"),a.R=br(e,4),a.U=br(e,4),a.W=br(e,4),a}function jo(e){for(var a=e.read_shift(4),r=e.l+a-4,n={},t=e.read_shift(4),s=[];t-- >0;)s.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(n.name=e.read_shift(0,"lpp4"),n.comps=s,e.l!=r)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+r);return n}function Jo(e){var a=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)a.push(jo(e));return a}function Zo(e){var a=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)a.push(e.read_shift(0,"lpp4"));return a}function qo(e){var a={};return e.read_shift(4),e.l+=4,a.id=e.read_shift(0,"lpp4"),a.name=e.read_shift(0,"lpp4"),a.R=br(e,4),a.U=br(e,4),a.W=br(e,4),a}function Qo(e){var a=qo(e);if(a.ename=e.read_shift(0,"8lpp4"),a.blksz=e.read_shift(4),a.cmode=e.read_shift(4),e.read_shift(4)!=4)throw new Error("Bad !Primary record");return a}function _s(e,a){var r=e.l+a,n={};n.Flags=e.read_shift(4)&63,e.l+=4,n.AlgID=e.read_shift(4);var t=!1;switch(n.AlgID){case 26126:case 26127:case 26128:t=n.Flags==36;break;case 26625:t=n.Flags==4;break;case 0:t=n.Flags==16||n.Flags==4||n.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+n.AlgID}if(!t)throw new Error("Encryption Flags/AlgID mismatch");return n.AlgIDHash=e.read_shift(4),n.KeySize=e.read_shift(4),n.ProviderType=e.read_shift(4),e.l+=8,n.CSPName=e.read_shift(r-e.l>>1,"utf16le"),e.l=r,n}function Es(e,a){var r={},n=e.l+a;return e.l+=4,r.Salt=e.slice(e.l,e.l+16),e.l+=16,r.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),r.VerifierHash=e.slice(e.l,n),e.l=n,r}function el(e){var a=br(e);switch(a.Minor){case 2:return[a.Minor,rl(e)];case 3:return[a.Minor,al()];case 4:return[a.Minor,tl(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+a.Minor)}function rl(e){var a=e.read_shift(4);if((a&63)!=36)throw new Error("EncryptionInfo mismatch");var r=e.read_shift(4),n=_s(e,r),t=Es(e,e.length-e.l);return{t:"Std",h:n,v:t}}function al(){throw new Error("File is password-protected: ECMA-376 Extensible")}function tl(e){var a=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var r=e.read_shift(e.length-e.l,"utf8"),n={};return r.replace(Ke,function(s){var i=oe(s);switch(Cr(i[0])){case"":break;case"":case"":break;case"":break;case"4||n.Major<2)throw new Error("unrecognized major version code: "+n.Major);r.Flags=e.read_shift(4),a-=4;var t=e.read_shift(4);return a-=4,r.EncryptionHeader=_s(e,t),a-=t,r.EncryptionVerifier=Es(e,a),r}function sl(e){var a={},r=a.EncryptionVersionInfo=br(e,4);if(r.Major!=1||r.Minor!=1)throw"unrecognized version code "+r.Major+" : "+r.Minor;return a.Salt=e.read_shift(16),a.EncryptedVerifier=e.read_shift(16),a.EncryptedVerifierHash=e.read_shift(16),a}function il(e){var a=0,r,n=ms(e),t=n.length+1,s,i,c,f,o;for(r=$r(t),r[0]=n.length,s=1;s!=t;++s)r[s]=n[s-1];for(s=t-1;s>=0;--s)i=r[s],c=a&16384?1:0,f=a<<1&32767,o=c|f,a=o^i;return a^52811}var Ts=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],a=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],r=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],n=function(i){return(i/2|i*128)&255},t=function(i,c){return n(i^c)},s=function(i){for(var c=a[i.length-1],f=104,o=i.length-1;o>=0;--o)for(var l=i[o],h=0;h!=7;++h)l&64&&(c^=r[f]),l*=2,--f;return c};return function(i){for(var c=ms(i),f=s(c),o=c.length,l=$r(16),h=0;h!=16;++h)l[h]=0;var x,d,v;for((o&1)===1&&(x=f>>8,l[o]=t(e[0],x),--o,x=f&255,d=c[c.length-1],l[o]=t(d,x));o>0;)--o,x=f>>8,l[o]=t(c[o],x),--o,x=f&255,l[o]=t(c[o],x);for(o=15,v=15-c.length;v>0;)x=f>>8,l[o]=t(e[v],x),--o,--v,x=f&255,l[o]=t(c[o],x),--o,--v;return l}}(),cl=function(e,a,r,n,t){t||(t=a),n||(n=Ts(e));var s,i;for(s=0;s!=a.length;++s)i=a[s],i^=n[r],i=(i>>5|i<<3)&255,t[s]=i,++r;return[t,r,n]},fl=function(e){var a=0,r=Ts(e);return function(n){var t=cl("",n,a,r);return a=t[1],t[0]}};function ol(e,a,r,n){var t={key:Me(e),verificationBytes:Me(e)};return r.password&&(t.verifier=il(r.password)),n.valid=t.verificationBytes===t.verifier,n.valid&&(n.insitu=fl(r.password)),t}function ll(e,a,r){var n=r||{};return n.Info=e.read_shift(2),e.l-=2,n.Info===1?n.Data=sl(e):n.Data=nl(e,a),n}function hl(e,a,r){var n={Type:r.biff>=8?e.read_shift(2):0};return n.Type?ll(e,a-2,n):ol(e,r.biff>=8?a:a-2,r,n),n}var ul=function(){function e(t,s){switch(s.type){case"base64":return a(fr(t),s);case"binary":return a(t,s);case"buffer":return a(ge&&Buffer.isBuffer(t)?t.toString("binary"):aa(t),s);case"array":return a(ia(t),s)}throw new Error("Unrecognized type "+s.type)}function a(t,s){var i=s||{},c=i.dense?[]:{},f=t.match(/\\trowd.*?\\row\b/g);if(!f.length)throw new Error("RTF missing table");var o={s:{c:0,r:0},e:{c:0,r:f.length-1}};return f.forEach(function(l,h){Array.isArray(c)&&(c[h]=[]);for(var x=/\\\w+\b/g,d=0,v,u=-1;v=x.exec(l);){switch(v[0]){case"\\cell":var g=l.slice(d,x.lastIndex-v[0].length);if(g[0]==" "&&(g=g.slice(1)),++u,g.length){var S={v:g,t:"s"};Array.isArray(c)?c[h][u]=S:c[ue({r:h,c:u})]=S}break}d=x.lastIndex}u>o.e.c&&(o.e.c=u)}),c["!ref"]=_e(o),c}function r(t,s){return Yr(e(t,s),s)}function n(t){for(var s=["{\\rtf1\\ansi"],i=Oe(t["!ref"]),c,f=Array.isArray(t),o=i.s.r;o<=i.e.r;++o){s.push("\\trowd\\trautofit1");for(var l=i.s.c;l<=i.e.c;++l)s.push("\\cellx"+(l+1));for(s.push("\\pard\\intbl"),l=i.s.c;l<=i.e.c;++l){var h=ue({r:o,c:l});c=f?(t[o]||[])[l]:t[h],!(!c||c.v==null&&(!c.f||c.F))&&(s.push(" "+(c.w||(Br(c),c.w))),s.push("\\cell"))}s.push("\\pard\\intbl\\row")}return s.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:n}}();function xl(e){var a=e.slice(e[0]==="#"?1:0).slice(0,6);return[parseInt(a.slice(0,2),16),parseInt(a.slice(2,4),16),parseInt(a.slice(4,6),16)]}function $a(e){for(var a=0,r=1;a!=3;++a)r=r*256+(e[a]>255?255:e[a]<0?0:e[a]);return r.toString(16).toUpperCase().slice(1)}function dl(e){var a=e[0]/255,r=e[1]/255,n=e[2]/255,t=Math.max(a,r,n),s=Math.min(a,r,n),i=t-s;if(i===0)return[0,0,a];var c=0,f=0,o=t+s;switch(f=i/(o>1?2-o:o),t){case a:c=((r-n)/i+6)%6;break;case r:c=(n-a)/i+2;break;case n:c=(a-r)/i+4;break}return[c/6,f,o/2]}function vl(e){var a=e[0],r=e[1],n=e[2],t=r*2*(n<.5?n:1-n),s=n-t/2,i=[s,s,s],c=6*a,f;if(r!==0)switch(c|0){case 0:case 6:f=t*c,i[0]+=t,i[1]+=f;break;case 1:f=t*(2-c),i[0]+=f,i[1]+=t;break;case 2:f=t*(c-2),i[1]+=t,i[2]+=f;break;case 3:f=t*(4-c),i[1]+=f,i[2]+=t;break;case 4:f=t*(c-4),i[2]+=t,i[0]+=f;break;case 5:f=t*(6-c),i[2]+=f,i[0]+=t;break}for(var o=0;o!=3;++o)i[o]=Math.round(i[o]*255);return i}function kt(e,a){if(a===0)return e;var r=dl(xl(e));return a<0?r[2]=r[2]*(1+a):r[2]=1-(1-r[2])*(1-a),$a(vl(r))}var ks=6,pl=15,gl=1,sr=ks;function wt(e){return Math.floor((e+Math.round(128/sr)/256)*sr)}function At(e){return Math.floor((e-5)/sr*100+.5)/100}function n0(e){return Math.round((e*sr+5)/sr*256)/256}function s0(e){return n0(At(wt(e)))}function i0(e){var a=Math.abs(e-s0(e)),r=sr;if(a>.005)for(sr=gl;sr":case"":break;case"":case"":t={},c.diagonalUp&&(t.diagonalUp=Se(c.diagonalUp)),c.diagonalDown&&(t.diagonalDown=Se(c.diagonalDown)),a.Borders.push(t);break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":break;case"":s=!1;break;default:if(n&&n.WTF&&!s)throw new Error("unrecognized "+c[0]+" in borders")}})}function Tl(e,a,r,n){a.Fills=[];var t={},s=!1;(e[0].match(Ke)||[]).forEach(function(i){var c=oe(i);switch(Cr(c[0])){case"":case"":break;case"":case"":t={},a.Fills.push(t);break;case"":break;case"":break;case"":a.Fills.push(t),t={};break;case"":c.patternType&&(t.patternType=c.patternType);break;case"":case"":break;case"":case"":break;case"":case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":s=!1;break;default:if(n&&n.WTF&&!s)throw new Error("unrecognized "+c[0]+" in fills")}})}function kl(e,a,r,n){a.Fonts=[];var t={},s=!1;(e[0].match(Ke)||[]).forEach(function(i){var c=oe(i);switch(Cr(c[0])){case"":case"":break;case"":break;case"":case"":a.Fonts.push(t),t={};break;case"":case"":break;case"":t.bold=1;break;case"":t.italic=1;break;case"":t.underline=1;break;case"":t.strike=1;break;case"":t.outline=1;break;case"":t.shadow=1;break;case"":t.condense=1;break;case"":t.extend=1;break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":s=!1;break;case"":case"":break;case"":s=!1;break;default:if(n&&n.WTF&&!s)throw new Error("unrecognized "+c[0]+" in fonts")}})}function wl(e,a,r){a.NumberFmt=[];for(var n=Sr(de),t=0;t":case"":case"":break;case"0){if(f>392){for(f=392;f>60&&a.NumberFmt[f]!=null;--f);a.NumberFmt[f]=c}sa(c,f)}}break;case"":break;default:if(r.WTF)throw new Error("unrecognized "+i[0]+" in numFmts")}}}var Ft=["numFmtId","fillId","fontId","borderId","xfId"],St=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function Al(e,a,r){a.CellXf=[];var n,t=!1;(e[0].match(Ke)||[]).forEach(function(s){var i=oe(s),c=0;switch(Cr(i[0])){case"":case"":case"":break;case"":for(n=i,delete n[0],c=0;c392){for(c=392;c>60;--c)if(a.NumberFmt[n.numFmtId]==a.NumberFmt[c]){n.numFmtId=c;break}}a.CellXf.push(n);break;case"":break;case"":var f={};i.vertical&&(f.vertical=i.vertical),i.horizontal&&(f.horizontal=i.horizontal),i.textRotation!=null&&(f.textRotation=i.textRotation),i.indent&&(f.indent=i.indent),i.wrapText&&(f.wrapText=Se(i.wrapText)),n.alignment=f;break;case"":break;case"":case"":break;case"":t=!1;break;case"":case"":break;case"":t=!1;break;default:if(r&&r.WTF&&!t)throw new Error("unrecognized "+i[0]+" in cellXfs")}})}var Fl=function(){var a=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,r=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,n=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,t=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,s=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(c,f,o){var l={};if(!c)return l;c=c.replace(//mg,"").replace(//gm,"");var h;return(h=c.match(a))&&wl(h,l,o),(h=c.match(t))&&kl(h,l,f,o),(h=c.match(n))&&Tl(h,l,f,o),(h=c.match(s))&&El(h,l,f,o),(h=c.match(r))&&Al(h,l,o),l}}();function Sl(e,a){var r=e.read_shift(2),n=je(e);return[r,n]}function Cl(e,a,r){var n={};n.sz=e.read_shift(2)/20;var t=Lc(e);t.fItalic&&(n.italic=1),t.fCondense&&(n.condense=1),t.fExtend&&(n.extend=1),t.fShadow&&(n.shadow=1),t.fOutline&&(n.outline=1),t.fStrikeout&&(n.strike=1);var s=e.read_shift(2);switch(s===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var i=e.read_shift(1);i!=0&&(n.underline=i);var c=e.read_shift(1);c>0&&(n.family=c);var f=e.read_shift(1);switch(f>0&&(n.charset=f),e.l++,n.color=Pc(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=je(e),n}var yl=Ye;function Dl(e,a){var r=e.l+a,n=e.read_shift(2),t=e.read_shift(2);return e.l=r,{ixfe:n,numFmtId:t}}var Ol=Ye;function Rl(e,a,r){var n={};n.NumberFmt=[];for(var t in de)n.NumberFmt[t]=de[t];n.CellXf=[],n.Fonts=[];var s=[],i=!1;return Mr(e,function(f,o,l){switch(l){case 44:n.NumberFmt[f[0]]=f[1],sa(f[1],f[0]);break;case 43:n.Fonts.push(f),f.color.theme!=null&&a&&a.themeElements&&a.themeElements.clrScheme&&(f.color.rgb=kt(a.themeElements.clrScheme[f.color.theme].rgb,f.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:s[s.length-1]==617&&n.CellXf.push(f);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:i=!0;break;case 36:i=!1;break;case 37:s.push(l),i=!0;break;case 38:s.pop(),i=!1;break;default:if(o.T>0)s.push(l);else if(o.T<0)s.pop();else if(!i||r.WTF&&s[s.length-1]!=37)throw new Error("Unexpected record 0x"+l.toString(16))}}),n}var Il=["","","","","","","","","","","",""];function Nl(e,a,r){a.themeElements.clrScheme=[];var n={};(e[0].match(Ke)||[]).forEach(function(t){var s=oe(t);switch(s[0]){case"":break;case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":s[0].charAt(1)==="/"?(a.themeElements.clrScheme[Il.indexOf(s[0])]=n,n={}):n.name=s[0].slice(3,s[0].length-1);break;default:if(r&&r.WTF)throw new Error("Unrecognized "+s[0]+" in clrScheme")}})}function Pl(){}function Ll(){}var Ml=/]*)>[\s\S]*<\/a:clrScheme>/,Bl=/]*)>[\s\S]*<\/a:fontScheme>/,bl=/]*)>[\s\S]*<\/a:fmtScheme>/;function Ul(e,a,r){a.themeElements={};var n;[["clrScheme",Ml,Nl],["fontScheme",Bl,Pl],["fmtScheme",bl,Ll]].forEach(function(t){if(!(n=e.match(t[1])))throw new Error(t[0]+" not found in themeElements");t[2](n,a,r)})}var Hl=/]*)>[\s\S]*<\/a:themeElements>/;function Fs(e,a){(!e||e.length===0)&&(e=Wl());var r,n={};if(!(r=e.match(Hl)))throw new Error("themeElements not found in theme");return Ul(r[0],n,a),n.raw=e,n}function Wl(e,a){if(a&&a.themeXLSX)return a.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[ln];return r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r.join("")}function Vl(e,a,r){var n=e.l+a,t=e.read_shift(4);if(t!==124226){if(!r.cellStyles){e.l=n;return}var s=e.slice(e.l);e.l=n;var i;try{i=on(s,{type:"array"})}catch{return}var c=or(i,"theme/theme/theme1.xml",!0);if(c)return Fs(c,r)}}function Gl(e){return e.read_shift(4)}function Xl(e){var a={};switch(a.xclrType=e.read_shift(2),a.nTintShade=e.read_shift(2),a.xclrType){case 0:e.l+=4;break;case 1:a.xclrValue=$l(e,4);break;case 2:a.xclrValue=ts(e);break;case 3:a.xclrValue=Gl(e);break;case 4:e.l+=4;break}return e.l+=8,a}function $l(e,a){return Ye(e,a)}function zl(e,a){return Ye(e,a)}function Kl(e){var a=e.read_shift(2),r=e.read_shift(2)-4,n=[a];switch(a){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:n[1]=Xl(e);break;case 6:n[1]=zl(e,r);break;case 14:case 15:n[1]=e.read_shift(r===1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+a+" "+r)}return n}function Yl(e,a){var r=e.l+a;e.l+=2;var n=e.read_shift(2);e.l+=2;for(var t=e.read_shift(2),s=[];t-- >0;)s.push(Kl(e,r-e.l));return{ixfe:n,ext:s}}function jl(e,a){a.forEach(function(r){switch(r[0]){}})}function Jl(e,a){return{flags:e.read_shift(4),version:e.read_shift(4),name:je(e)}}function Zl(e){for(var a=[],r=e.read_shift(4);r-- >0;)a.push([e.read_shift(4),e.read_shift(4)]);return a}function ql(e){return e.l+=4,e.read_shift(4)!=0}function Ql(e,a,r){var n={Types:[],Cell:[],Value:[]},t=r||{},s=[],i=!1,c=2;return Mr(e,function(f,o,l){switch(l){case 335:n.Types.push({name:f.name});break;case 51:f.forEach(function(h){c==1?n.Cell.push({type:n.Types[h[0]-1].name,index:h[1]}):c==0&&n.Value.push({type:n.Types[h[0]-1].name,index:h[1]})});break;case 337:c=f?1:0;break;case 338:c=2;break;case 35:s.push(l),i=!0;break;case 36:s.pop(),i=!1;break;default:if(!o.T){if(!i||t.WTF&&s[s.length-1]!=35)throw new Error("Unexpected record 0x"+l.toString(16))}}}),n}function e1(e,a,r){var n={Types:[],Cell:[],Value:[]};if(!e)return n;var t=!1,s=2,i;return e.replace(Ke,function(c){var f=oe(c);switch(Cr(f[0])){case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":s=2;break;case"":s=2;break;case"":case"":case"":break;case"":t=!1;break;case"":case"":break;case"]*r:id="([^"]*)"/)||["",""])[1];return a["!id"][r].Target}function Ss(e,a,r,n){var t=Array.isArray(e),s;a.forEach(function(i){var c=nr(i.ref);if(t?(e[c.r]||(e[c.r]=[]),s=e[c.r][c.c]):s=e[i.ref],!s){s={t:"z"},t?e[c.r][c.c]=s:e[i.ref]=s;var f=Oe(e["!ref"]||"BDWGO1000001:A1");f.s.r>c.r&&(f.s.r=c.r),f.e.rc.c&&(f.s.c=c.c),f.e.c=0;--h){if(!r&&s.c[h].T)return;r&&!s.c[h].T&&s.c.splice(h,1)}if(r&&n){for(h=0;h/))return[];var r=[],n=[],t=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);t&&t[1]&&t[1].split(/<\/\w*:?author>/).forEach(function(i){if(!(i===""||i.trim()==="")){var c=i.match(/<(?:\w+:)?author[^>]*>(.*)/);c&&r.push(c[1])}});var s=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return s&&s[1]&&s[1].split(/<\/\w*:?comment>/).forEach(function(i){if(!(i===""||i.trim()==="")){var c=i.match(/<(?:\w+:)?comment[^>]*>/);if(c){var f=oe(c[0]),o={author:f.authorId&&r[f.authorId]||"sheetjsghost",ref:f.ref,guid:f.guid},l=nr(f.ref);if(!(a.sheetRows&&a.sheetRows<=l.r)){var h=i.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),x=!!h&&!!h[1]&&t0(h[1])||{r:"",t:"",h:""};o.r=x.r,x.r==""&&(x.t=x.h=""),o.t=(x.t||"").replace(/\r\n/g,` `).replace(/\r/g,` `),a.cellHTML&&(o.h=x.h),n.push(o)}}}}),n}function c1(e,a){var r=[],n=!1,t={},s=0;return e.replace(Ke,function(c,f){var o=oe(c);switch(Cr(o[0])){case"":break;case"":t.t!=null&&r.push(t);break;case"":case"":t.t=e.slice(s,f).replace(/\r\n/g,` `).replace(/\r/g,` `);break;case"":n=!0;break;case"":n=!1;break;case"":case"":case"":break;case"":n=!1;break;default:if(!n&&a.WTF)throw new Error("unrecognized "+o[0]+" in threaded comments")}return c}),r}function f1(e,a){var r=[],n=!1;return e.replace(Ke,function(s){var i=oe(s);switch(Cr(i[0])){case"":break;case"":break;case"":case"":case"":break;case"":n=!1;break;default:if(!n&&a.WTF)throw new Error("unrecognized "+i[0]+" in threaded comments")}return s}),r}function o1(e){var a={};a.iauthor=e.read_shift(4);var r=oa(e);return a.rfx=r.s,a.ref=ue(r.s),e.l+=16,a}var l1=je;function h1(e,a){var r=[],n=[],t={},s=!1;return Mr(e,function(c,f,o){switch(o){case 632:n.push(c);break;case 635:t=c;break;case 637:t.t=c.t,t.h=c.h,t.r=c.r;break;case 636:if(t.author=n[t.iauthor],delete t.iauthor,a.sheetRows&&t.rfx&&a.sheetRows<=t.rfx.r)break;t.t||(t.t=""),delete t.rfx,r.push(t);break;case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:break;case 38:break;default:if(!f.T){if(!s||a.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}}}),r}var u1="application/vnd.ms-office.vbaProject";function x1(e){var a=me.utils.cfb_new({root:"R"});return e.FullPaths.forEach(function(r,n){if(!(r.slice(-1)==="/"||!r.match(/_VBA_PROJECT_CUR/))){var t=r.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");me.utils.cfb_add(a,t,e.FileIndex[n].content)}}),me.write(a)}function d1(){return{"!type":"dialog"}}function v1(){return{"!type":"dialog"}}function p1(){return{"!type":"macro"}}function g1(){return{"!type":"macro"}}var Sa=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,a={r:0,c:0};function r(n,t,s,i){var c=!1,f=!1;s.length==0?f=!0:s.charAt(0)=="["&&(f=!0,s=s.slice(1,-1)),i.length==0?c=!0:i.charAt(0)=="["&&(c=!0,i=i.slice(1,-1));var o=s.length>0?parseInt(s,10)|0:0,l=i.length>0?parseInt(i,10)|0:0;return c?l+=a.c:--l,f?o+=a.r:--o,t+(c?"":"$")+Ue(l)+(f?"":"$")+ze(o)}return function(t,s){return a=s,t.replace(e,r)}}(),Cs=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,m1=function(){return function(a,r){return a.replace(Cs,function(n,t,s,i,c,f){var o=Kt(i)-(s?0:r.c),l=zt(f)-(c?0:r.r),h=l==0?"":c?l+1:"["+l+"]",x=o==0?"":s?o+1:"["+o+"]";return t+"R"+h+"C"+x})}}();function ys(e,a){return e.replace(Cs,function(r,n,t,s,i,c){return n+(t=="$"?t+s:Ue(Kt(s)+a.c))+(i=="$"?i+c:ze(zt(c)+a.r))})}function _1(e,a,r){var n=ka(a),t=n.s,s=nr(r),i={r:s.r-t.r,c:s.c-t.c};return ys(e,i)}function E1(e){return e.length!=1}function Ds(e){return e.replace(/_xlfn\./g,"")}function Be(e){e.l+=1}function Jr(e,a){var r=e.read_shift(a==1?1:2);return[r&16383,r>>14&1,r>>15&1]}function Os(e,a,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return Rs(e);r.biff==12&&(n=4)}var t=e.read_shift(n),s=e.read_shift(n),i=Jr(e,2),c=Jr(e,2);return{s:{r:t,c:i[0],cRel:i[1],rRel:i[2]},e:{r:s,c:c[0],cRel:c[1],rRel:c[2]}}}function Rs(e){var a=Jr(e,2),r=Jr(e,2),n=e.read_shift(1),t=e.read_shift(1);return{s:{r:a[0],c:n,cRel:a[1],rRel:a[2]},e:{r:r[0],c:t,cRel:r[1],rRel:r[2]}}}function T1(e,a,r){if(r.biff<8)return Rs(e);var n=e.read_shift(r.biff==12?4:2),t=e.read_shift(r.biff==12?4:2),s=Jr(e,2),i=Jr(e,2);return{s:{r:n,c:s[0],cRel:s[1],rRel:s[2]},e:{r:t,c:i[0],cRel:i[1],rRel:i[2]}}}function Is(e,a,r){if(r&&r.biff>=2&&r.biff<=5)return k1(e);var n=e.read_shift(r&&r.biff==12?4:2),t=Jr(e,2);return{r:n,c:t[0],cRel:t[1],rRel:t[2]}}function k1(e){var a=Jr(e,2),r=e.read_shift(1);return{r:a[0],c:r,cRel:a[1],rRel:a[2]}}function w1(e){var a=e.read_shift(2),r=e.read_shift(2);return{r:a,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function A1(e,a,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return F1(e);var t=e.read_shift(n>=12?4:2),s=e.read_shift(2),i=(s&16384)>>14,c=(s&32768)>>15;if(s&=16383,c==1)for(;t>524287;)t-=1048576;if(i==1)for(;s>8191;)s=s-16384;return{r:t,c:s,cRel:i,rRel:c}}function F1(e){var a=e.read_shift(2),r=e.read_shift(1),n=(a&32768)>>15,t=(a&16384)>>14;return a&=16383,n==1&&a>=8192&&(a=a-16384),t==1&&r>=128&&(r=r-256),{r:a,c:r,cRel:t,rRel:n}}function S1(e,a,r){var n=(e[e.l++]&96)>>5,t=Os(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,t]}function C1(e,a,r){var n=(e[e.l++]&96)>>5,t=e.read_shift(2,"i"),s=8;if(r)switch(r.biff){case 5:e.l+=12,s=6;break;case 12:s=12;break}var i=Os(e,s,r);return[n,t,i]}function y1(e,a,r){var n=(e[e.l++]&96)>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}function D1(e,a,r){var n=(e[e.l++]&96)>>5,t=e.read_shift(2),s=8;if(r)switch(r.biff){case 5:e.l+=12,s=6;break;case 12:s=12;break}return e.l+=s,[n,t]}function O1(e,a,r){var n=(e[e.l++]&96)>>5,t=T1(e,a-1,r);return[n,t]}function R1(e,a,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function Ns(e){var a=e[e.l+1]&1,r=1;return e.l+=4,[a,r]}function I1(e,a,r){e.l+=2;for(var n=e.read_shift(r&&r.biff==2?1:2),t=[],s=0;s<=n;++s)t.push(e.read_shift(r&&r.biff==2?1:2));return t}function N1(e,a,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function P1(e,a,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function L1(e){var a=e[e.l+1]&255?1:0;return e.l+=2,[a,e.read_shift(2)]}function M1(e,a,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function Ps(e){var a=e.read_shift(1),r=e.read_shift(1);return[a,r]}function B1(e){return e.read_shift(2),Ps(e)}function b1(e){return e.read_shift(2),Ps(e)}function U1(e,a,r){var n=(e[e.l]&96)>>5;e.l+=1;var t=Is(e,0,r);return[n,t]}function H1(e,a,r){var n=(e[e.l]&96)>>5;e.l+=1;var t=A1(e,0,r);return[n,t]}function W1(e,a,r){var n=(e[e.l]&96)>>5;e.l+=1;var t=e.read_shift(2);r&&r.biff==5&&(e.l+=12);var s=Is(e,0,r);return[n,t,s]}function V1(e,a,r){var n=(e[e.l]&96)>>5;e.l+=1;var t=e.read_shift(r&&r.biff<=3?1:2);return[Gh[t],Us[t],n]}function G1(e,a,r){var n=e[e.l++],t=e.read_shift(1),s=r&&r.biff<=3?[n==88?-1:0,e.read_shift(1)]:X1(e);return[t,(s[0]===0?Us:Vh)[s[1]]]}function X1(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function $1(e,a,r){e.l+=r&&r.biff==2?3:4}function z1(e,a,r){if(e.l++,r&&r.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),t=e.read_shift(r&&r.biff==2?1:2);return[n,t]}function K1(e){return e.l++,ha[e.read_shift(1)]}function Y1(e){return e.l++,e.read_shift(2)}function j1(e){return e.l++,e.read_shift(1)!==0}function J1(e){return e.l++,Je(e)}function Z1(e,a,r){return e.l++,Wa(e,a-1,r)}function q1(e,a){var r=[e.read_shift(1)];if(a==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=Re(e,1)?"TRUE":"FALSE",a!=12&&(e.l+=7);break;case 37:case 16:r[1]=ha[e[e.l]],e.l+=a==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=Je(e);break;case 2:r[1]=xa(e,0,{biff:a>0&&a<8?2:a});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function Q1(e,a,r){for(var n=e.read_shift(r.biff==12?4:2),t=[],s=0;s!=n;++s)t.push((r.biff==12?oa:Et)(e));return t}function eh(e,a,r){var n=0,t=0;r.biff==12?(n=e.read_shift(4),t=e.read_shift(4)):(t=1+e.read_shift(1),n=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,--t==0&&(t=256));for(var s=0,i=[];s!=n&&(i[s]=[]);++s)for(var c=0;c!=t;++c)i[s][c]=q1(e,r.biff);return i}function rh(e,a,r){var n=e.read_shift(1)>>>5&3,t=!r||r.biff>=8?4:2,s=e.read_shift(t);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[n,0,s]}function ah(e,a,r){if(r.biff==5)return th(e);var n=e.read_shift(1)>>>5&3,t=e.read_shift(2),s=e.read_shift(4);return[n,t,s]}function th(e){var a=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[a,r,n]}function nh(e,a,r){var n=e.read_shift(1)>>>5&3;e.l+=r&&r.biff==2?3:4;var t=e.read_shift(r&&r.biff==2?1:2);return[n,t]}function sh(e,a,r){var n=e.read_shift(1)>>>5&3,t=e.read_shift(r&&r.biff==2?1:2);return[n,t]}function ih(e,a,r){var n=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,r.biff==12&&(e.l+=2),[n]}function ch(e,a,r){var n=(e[e.l++]&96)>>5,t=e.read_shift(2),s=4;if(r)switch(r.biff){case 5:s=15;break;case 12:s=6;break}return e.l+=s,[n,t]}var fh=Ye,oh=Ye,lh=Ye;function Ka(e,a,r){return e.l+=2,[w1(e)]}function c0(e){return e.l+=6,[]}var hh=Ka,uh=c0,xh=c0,dh=Ka;function Ls(e){return e.l+=2,[Me(e),e.read_shift(2)&1]}var vh=Ka,ph=Ls,gh=c0,mh=Ka,_h=Ka,Eh=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function Th(e){e.l+=2;var a=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),t=e.read_shift(2),s=e.read_shift(2),i=Eh[r>>2&31];return{ixti:a,coltype:r&3,rt:i,idx:n,c:t,C:s}}function kh(e){return e.l+=2,[e.read_shift(4)]}function wh(e,a,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function Ah(e,a,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function Fh(e){var a=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[a,r]}function Sh(e){var a=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[a,r]}function Ch(e){return e.l+=4,[0,0]}var Ms={1:{n:"PtgExp",f:z1},2:{n:"PtgTbl",f:lh},3:{n:"PtgAdd",f:Be},4:{n:"PtgSub",f:Be},5:{n:"PtgMul",f:Be},6:{n:"PtgDiv",f:Be},7:{n:"PtgPower",f:Be},8:{n:"PtgConcat",f:Be},9:{n:"PtgLt",f:Be},10:{n:"PtgLe",f:Be},11:{n:"PtgEq",f:Be},12:{n:"PtgGe",f:Be},13:{n:"PtgGt",f:Be},14:{n:"PtgNe",f:Be},15:{n:"PtgIsect",f:Be},16:{n:"PtgUnion",f:Be},17:{n:"PtgRange",f:Be},18:{n:"PtgUplus",f:Be},19:{n:"PtgUminus",f:Be},20:{n:"PtgPercent",f:Be},21:{n:"PtgParen",f:Be},22:{n:"PtgMissArg",f:Be},23:{n:"PtgStr",f:Z1},26:{n:"PtgSheet",f:wh},27:{n:"PtgEndSheet",f:Ah},28:{n:"PtgErr",f:K1},29:{n:"PtgBool",f:j1},30:{n:"PtgInt",f:Y1},31:{n:"PtgNum",f:J1},32:{n:"PtgArray",f:R1},33:{n:"PtgFunc",f:V1},34:{n:"PtgFuncVar",f:G1},35:{n:"PtgName",f:rh},36:{n:"PtgRef",f:U1},37:{n:"PtgArea",f:S1},38:{n:"PtgMemArea",f:nh},39:{n:"PtgMemErr",f:fh},40:{n:"PtgMemNoMem",f:oh},41:{n:"PtgMemFunc",f:sh},42:{n:"PtgRefErr",f:ih},43:{n:"PtgAreaErr",f:y1},44:{n:"PtgRefN",f:H1},45:{n:"PtgAreaN",f:O1},46:{n:"PtgMemAreaN",f:Fh},47:{n:"PtgMemNoMemN",f:Sh},57:{n:"PtgNameX",f:ah},58:{n:"PtgRef3d",f:W1},59:{n:"PtgArea3d",f:C1},60:{n:"PtgRefErr3d",f:ch},61:{n:"PtgAreaErr3d",f:D1},255:{}},yh={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},Dh={1:{n:"PtgElfLel",f:Ls},2:{n:"PtgElfRw",f:mh},3:{n:"PtgElfCol",f:hh},6:{n:"PtgElfRwV",f:_h},7:{n:"PtgElfColV",f:dh},10:{n:"PtgElfRadical",f:vh},11:{n:"PtgElfRadicalS",f:gh},13:{n:"PtgElfColS",f:uh},15:{n:"PtgElfColSV",f:xh},16:{n:"PtgElfRadicalLel",f:ph},25:{n:"PtgList",f:Th},29:{n:"PtgSxName",f:kh},255:{}},Oh={0:{n:"PtgAttrNoop",f:Ch},1:{n:"PtgAttrSemi",f:M1},2:{n:"PtgAttrIf",f:P1},4:{n:"PtgAttrChoose",f:I1},8:{n:"PtgAttrGoto",f:N1},16:{n:"PtgAttrSum",f:$1},32:{n:"PtgAttrBaxcel",f:Ns},33:{n:"PtgAttrBaxcel",f:Ns},64:{n:"PtgAttrSpace",f:B1},65:{n:"PtgAttrSpaceSemi",f:b1},128:{n:"PtgAttrIfError",f:L1},255:{}};function Ya(e,a,r,n){if(n.biff<8)return Ye(e,a);for(var t=e.l+a,s=[],i=0;i!==r.length;++i)switch(r[i][0]){case"PtgArray":r[i][1]=eh(e,0,n),s.push(r[i][1]);break;case"PtgMemArea":r[i][2]=Q1(e,r[i][1],n),s.push(r[i][2]);break;case"PtgExp":n&&n.biff==12&&(r[i][1][1]=e.read_shift(4),s.push(r[i][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[i][0]}return a=t-e.l,a!==0&&s.push(Ye(e,a)),s}function ja(e,a,r){for(var n=e.l+a,t,s,i=[];n!=e.l;)a=n-e.l,s=e[e.l],t=Ms[s]||Ms[yh[s]],(s===24||s===25)&&(t=(s===24?Dh:Oh)[e[e.l+1]]),!t||!t.f?Ye(e,a):i.push([t.n,t.f(e,a,r)]);return i}function Rh(e){for(var a=[],r=0;r=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Nh(e,a){if(!e&&!(a&&a.biff<=5&&a.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function Bs(e,a,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[a]))return e.SheetNames[a];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[a];if(r.biff<8)return a>1e4&&(a-=65536),a<0&&(a=-a),a==0?"":e.XTI[a-1];if(!n)return"SH33TJSERR1";var t="";if(r.biff>8)switch(e[n[0]][0]){case 357:return t=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?t:t+":"+e.SheetNames[n[2]];case 358:return r.SID!=null?e.SheetNames[r.SID]:"SH33TJSSAME"+e[n[0]][0];case 355:default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return t=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?t:t+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(s){return s.Name}).join(";;");default:return e[n[0]][0][3]?(t=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?t:t+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function bs(e,a,r){var n=Bs(e,a,r);return n=="#REF"?n:Nh(n,r)}function qe(e,a,r,n,t){var s=t&&t.biff||8,i={s:{c:0,r:0},e:{c:0,r:0}},c=[],f,o,l,h=0,x=0,d,v="";if(!e[0]||!e[0][0])return"";for(var u=-1,g="",S=0,y=e[0].length;S=0){switch(e[0][u][1][0]){case 0:g=De(" ",e[0][u][1][1]);break;case 1:g=De("\r",e[0][u][1][1]);break;default:if(g="",t.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][u][1][0])}o=o+g,u=-1}c.push(o+Ih[_[0]]+f);break;case"PtgIsect":f=c.pop(),o=c.pop(),c.push(o+" "+f);break;case"PtgUnion":f=c.pop(),o=c.pop(),c.push(o+","+f);break;case"PtgRange":f=c.pop(),o=c.pop(),c.push(o+":"+f);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":l=Ba(_[1][1],i,t),c.push(ba(l,s));break;case"PtgRefN":l=r?Ba(_[1][1],r,t):_[1][1],c.push(ba(l,s));break;case"PtgRef3d":h=_[1][1],l=Ba(_[1][2],i,t),v=bs(n,h,t),c.push(v+"!"+ba(l,s));break;case"PtgFunc":case"PtgFuncVar":var N=_[1][0],b=_[1][1];N||(N=0),N&=127;var I=N==0?[]:c.slice(-N);c.length-=N,b==="User"&&(b=I.shift()),c.push(b+"("+I.join(",")+")");break;case"PtgBool":c.push(_[1]?"TRUE":"FALSE");break;case"PtgInt":c.push(_[1]);break;case"PtgNum":c.push(String(_[1]));break;case"PtgStr":c.push('"'+_[1].replace(/"/g,'""')+'"');break;case"PtgErr":c.push(_[1]);break;case"PtgAreaN":d=Bn(_[1][1],r?{s:r}:i,t),c.push($t(d,t));break;case"PtgArea":d=Bn(_[1][1],i,t),c.push($t(d,t));break;case"PtgArea3d":h=_[1][1],d=_[1][2],v=bs(n,h,t),c.push(v+"!"+$t(d,t));break;case"PtgAttrSum":c.push("SUM("+c.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":x=_[1][2];var A=(n.names||[])[x-1]||(n[0]||[])[x],W=A?A.Name:"SH33TJSNAME"+String(x);W&&W.slice(0,6)=="_xlfn."&&!t.xlfn&&(W=W.slice(6)),c.push(W);break;case"PtgNameX":var D=_[1][1];x=_[1][2];var z;if(t.biff<=5)D<0&&(D=-D),n[D]&&(z=n[D][x]);else{var G="";if(((n[D]||[])[0]||[])[0]==14849||(((n[D]||[])[0]||[])[0]==1025?n[D][x]&&n[D][x].itab>0&&(G=n.SheetNames[n[D][x].itab-1]+"!"):G=n.SheetNames[x-1]+"!"),n[D]&&n[D][x])G+=n[D][x].Name;else if(n[0]&&n[0][x])G+=n[0][x].Name;else{var P=(Bs(n,D,t)||"").split(";;");P[x-1]?G=P[x-1]:G+="SH33TJSERRX"}c.push(G);break}z||(z={Name:"SH33TJSERRY"}),c.push(z.Name);break;case"PtgParen":var J="(",fe=")";if(u>=0){switch(g="",e[0][u][1][0]){case 2:J=De(" ",e[0][u][1][1])+J;break;case 3:J=De("\r",e[0][u][1][1])+J;break;case 4:fe=De(" ",e[0][u][1][1])+fe;break;case 5:fe=De("\r",e[0][u][1][1])+fe;break;default:if(t.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][u][1][0])}u=-1}c.push(J+c.pop()+fe);break;case"PtgRefErr":c.push("#REF!");break;case"PtgRefErr3d":c.push("#REF!");break;case"PtgExp":l={c:_[1][1],r:_[1][0]};var re={c:r.c,r:r.r};if(n.sharedf[ue(l)]){var ce=n.sharedf[ue(l)];c.push(qe(ce,i,re,n,t))}else{var ie=!1;for(f=0;f!=n.arrayf.length;++f)if(o=n.arrayf[f],!(l.co[0].e.c)&&!(l.ro[0].e.r)){c.push(qe(o[1],i,re,n,t)),ie=!0;break}ie||c.push(_[1])}break;case"PtgArray":c.push("{"+Rh(_[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":u=S;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":c.push("");break;case"PtgAreaErr":c.push("#REF!");break;case"PtgAreaErr3d":c.push("#REF!");break;case"PtgList":c.push("Table"+_[1].idx+"[#"+_[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(_));default:throw new Error("Unrecognized Formula Token: "+String(_))}var Fe=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(t.biff!=3&&u>=0&&Fe.indexOf(e[0][S][0])==-1){_=e[0][u];var V=!0;switch(_[1][0]){case 4:V=!1;case 0:g=De(" ",_[1][1]);break;case 5:V=!1;case 1:g=De("\r",_[1][1]);break;default:if(g="",t.WTF)throw new Error("Unexpected PtgAttrSpaceType "+_[1][0])}c.push((V?g:"")+c.pop()+(V?"":g)),u=-1}}if(c.length>1&&t.WTF)throw new Error("bad formula stack");return c[0]}function Ph(e,a,r){var n=e.l+a,t=r.biff==2?1:2,s,i=e.read_shift(t);if(i==65535)return[[],Ye(e,a-2)];var c=ja(e,i,r);return a!==i+t&&(s=Ya(e,a-i-t,c,r)),e.l=n,[c,s]}function Lh(e,a,r){var n=e.l+a,t=r.biff==2?1:2,s,i=e.read_shift(t);if(i==65535)return[[],Ye(e,a-2)];var c=ja(e,i,r);return a!==i+t&&(s=Ya(e,a-i-t,c,r)),e.l=n,[c,s]}function Mh(e,a,r,n){var t=e.l+a,s=ja(e,n,r),i;return t!==e.l&&(i=Ya(e,t-e.l,s,r)),[s,i]}function Bh(e,a,r){var n=e.l+a,t,s=e.read_shift(2),i=ja(e,s,r);return s==65535?[[],Ye(e,a-2)]:(a!==s+2&&(t=Ya(e,n-s-2,i,r)),[i,t])}function bh(e){var a;if(Lr(e,e.l+6)!==65535)return[Je(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return a=e[e.l+2]===1,e.l+=8,[a,"b"];case 2:return a=e[e.l+2],e.l+=8,[a,"e"];case 3:return e.l+=8,["","s"]}return[]}function f0(e,a,r){var n=e.l+a,t=yr(e);r.biff==2&&++e.l;var s=bh(e),i=e.read_shift(1);r.biff!=2&&(e.read_shift(1),r.biff>=5&&e.read_shift(4));var c=Lh(e,n-e.l,r);return{cell:t,val:s[0],formula:c,shared:i>>3&1,tt:s[1]}}function Ct(e,a,r){var n=e.read_shift(4),t=ja(e,n,r),s=e.read_shift(4),i=s>0?Ya(e,s,t,r):null;return[t,i]}var Uh=Ct,yt=Ct,Hh=Ct,Wh=Ct,Vh={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"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"},Us={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:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Gh={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function Hs(e){return e.slice(0,3)=="of:"&&(e=e.slice(3)),e.charCodeAt(0)==61&&(e=e.slice(1),e.charCodeAt(0)==61&&(e=e.slice(1))),e=e.replace(/COM\.MICROSOFT\./g,""),e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(a,r){return r.replace(/\./g,"")}),e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),e.replace(/[;~]/g,",").replace(/\|/g,";")}function o0(e){var a=e.split(":"),r=a[0].split(".")[0];return[r,a[0].split(".")[1]+(a.length>1?":"+(a[1].split(".")[1]||a[1].split(".")[0]):"")]}var Ja={},Ca={};function Za(e,a){if(e){var r=[.7,.7,.75,.75,.3,.3];a=="xlml"&&(r=[1,1,1,1,.5,.5]),e.left==null&&(e.left=r[0]),e.right==null&&(e.right=r[1]),e.top==null&&(e.top=r[2]),e.bottom==null&&(e.bottom=r[3]),e.header==null&&(e.header=r[4]),e.footer==null&&(e.footer=r[5])}}function Ws(e,a,r,n,t,s){try{n.cellNF&&(e.z=de[a])}catch(c){if(n.WTF)throw c}if(!(e.t==="z"&&!n.cellStyles)){if(e.t==="d"&&typeof e.v=="string"&&(e.v=Ve(e.v)),(!n||n.cellText!==!1)&&e.t!=="z")try{if(de[a]==null&&sa(Gi[a]||"General",a),e.t==="e")e.w=e.w||ha[e.v];else if(a===0)if(e.t==="n")(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Oa(e.v);else if(e.t==="d"){var i=tr(e.v);(i|0)===i?e.w=i.toString(10):e.w=Oa(i)}else{if(e.v===void 0)return"";e.w=na(e.v,Ca)}else e.t==="d"?e.w=xr(a,tr(e.v),Ca):e.w=xr(a,e.v,Ca)}catch(c){if(n.WTF)throw c}if(n.cellStyles&&r!=null)try{e.s=s.Fills[r],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=kt(t.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),n.WTF&&(e.s.fgColor.raw_rgb=t.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=kt(t.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),n.WTF&&(e.s.bgColor.raw_rgb=t.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(c){if(n.WTF&&s.Fills)throw c}}}function Xh(e,a){var r=Oe(a);r.s.r<=r.e.r&&r.s.c<=r.e.c&&r.s.r>=0&&r.s.c>=0&&(e["!ref"]=_e(r))}var $h=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,zh=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,Kh=/<(?:\w:)?hyperlink [^>]*>/mg,Yh=/"(\w*:\w*)"/,jh=/<(?:\w:)?col\b[^>]*[\/]?>/g,Jh=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,Zh=/<(?:\w:)?pageMargins[^>]*\/>/g,Vs=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,qh=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,Qh=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function eu(e,a,r,n,t,s,i){if(!e)return e;n||(n={"!id":{}});var c=a.dense?[]:{},f={s:{r:2e6,c:2e6},e:{r:0,c:0}},o="",l="",h=e.match(zh);h?(o=e.slice(0,h.index),l=e.slice(h.index+h[0].length)):o=l=e;var x=o.match(Vs);x?l0(x[0],c,t,r):(x=o.match(qh))&&ru(x[0],x[1]||"",c,t,r);var d=(o.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(d>0){var v=o.slice(d,d+50).match(Yh);v&&Xh(c,v[1])}var u=o.match(Qh);u&&u[1]&&cu(u[1],t);var g=[];if(a.cellStyles){var S=o.match(jh);S&&nu(g,S)}h&&fu(h[1],c,a,f,s,i);var y=l.match(Jh);y&&(c["!autofilter"]=su(y[0]));var _=[],N=l.match($h);if(N)for(d=0;d!=N.length;++d)_[d]=Oe(N[d].slice(N[d].indexOf('"')+1));var b=l.match(Kh);b&&au(c,b,n);var I=l.match(Zh);if(I&&(c["!margins"]=tu(oe(I[0]))),!c["!ref"]&&f.e.c>=f.s.c&&f.e.r>=f.s.r&&(c["!ref"]=_e(f)),a.sheetRows>0&&c["!ref"]){var A=Oe(c["!ref"]);a.sheetRows<=+A.e.r&&(A.e.r=a.sheetRows-1,A.e.r>f.e.r&&(A.e.r=f.e.r),A.e.rf.e.c&&(A.e.c=f.e.c),A.e.c0&&(c["!cols"]=g),_.length>0&&(c["!merges"]=_),c}function l0(e,a,r,n){var t=oe(e);r.Sheets[n]||(r.Sheets[n]={}),t.codeName&&(r.Sheets[n].CodeName=Ee(Ae(t.codeName)))}function ru(e,a,r,n,t){l0(e.slice(0,e.indexOf(">")),r,n,t)}function au(e,a,r){for(var n=Array.isArray(e),t=0;t!=a.length;++t){var s=oe(Ae(a[t]),!0);if(!s.ref)return;var i=((r||{})["!id"]||[])[s.id];i?(s.Target=i.Target,s.location&&(s.Target+="#"+Ee(s.location))):(s.Target="#"+Ee(s.location),i={Target:s.Target,TargetMode:"Internal"}),s.Rel=i,s.tooltip&&(s.Tooltip=s.tooltip,delete s.tooltip);for(var c=Oe(s.ref),f=c.s.r;f<=c.e.r;++f)for(var o=c.s.c;o<=c.e.c;++o){var l=ue({c:o,r:f});n?(e[f]||(e[f]=[]),e[f][o]||(e[f][o]={t:"z",v:void 0}),e[f][o].l=s):(e[l]||(e[l]={t:"z",v:void 0}),e[l].l=s)}}}function tu(e){var a={};return["left","right","top","bottom","header","footer"].forEach(function(r){e[r]&&(a[r]=parseFloat(e[r]))}),a}function nu(e,a){for(var r=!1,n=0;n!=a.length;++n){var t=oe(a[n],!0);t.hidden&&(t.hidden=Se(t.hidden));var s=parseInt(t.min,10)-1,i=parseInt(t.max,10)-1;for(t.outlineLevel&&(t.level=+t.outlineLevel||0),delete t.min,delete t.max,t.width=+t.width,!r&&t.width&&(r=!0,i0(t.width)),Fa(t);s<=i;)e[s++]=Xe(t)}}function su(e){var a={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return a}var iu=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function cu(e,a){a.Views||(a.Views=[{}]),(e.match(iu)||[]).forEach(function(r,n){var t=oe(r);a.Views[n]||(a.Views[n]={}),+t.zoomScale&&(a.Views[n].zoom=+t.zoomScale),Se(t.rightToLeft)&&(a.Views[n].RTL=!0)})}var fu=function(){var e=/<(?:\w+:)?c[ \/>]/,a=/<\/(?:\w+:)?row>/,r=/r=["']([^"']*)["']/,n=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,t=/ref=["']([^"']*)["']/,s=Na("v"),i=Na("f");return function(f,o,l,h,x,d){for(var v=0,u="",g=[],S=[],y=0,_=0,N=0,b="",I,A,W=0,D=0,z,G,P=0,J=0,fe=Array.isArray(d.CellXf),re,ce=[],ie=[],Fe=Array.isArray(o),V=[],le={},he=!1,F=!!l.sheetStubs,U=f.split(a),R=0,O=U.length;R!=O;++R){u=U[R].trim();var K=u.length;if(K!==0){var ee=0;e:for(v=0;v":if(u[v-1]!="/"){++v;break e}if(l&&l.cellStyles){if(A=oe(u.slice(ee,v),!0),W=A.r!=null?parseInt(A.r,10):W+1,D=-1,l.sheetRows&&l.sheetRows=v)break;if(A=oe(u.slice(ee,v),!0),W=A.r!=null?parseInt(A.r,10):W+1,D=-1,!(l.sheetRows&&l.sheetRowsW-1&&(h.s.r=W-1),h.e.r":"")+u,S!=null&&S.length===2){for(y=0,b=S[1],_=0;_!=b.length&&!((N=b.charCodeAt(_)-64)<1||N>26);++_)y=26*y+N;--y,D=y}else++D;for(_=0;_!=u.length&&u.charCodeAt(_)!==62;++_);if(++_,A=oe(u.slice(0,_),!0),A.r||(A.r=ue({r:W-1,c:D})),b=u.slice(_),I={t:""},(S=b.match(s))!=null&&S[1]!==""&&(I.v=Ee(S[1])),l.cellFormula){if((S=b.match(i))!=null&&S[1]!==""){if(I.f=Ee(Ae(S[1])).replace(/\r\n/g,` `),l.xlfn||(I.f=Ds(I.f)),S[0].indexOf('t="array"')>-1)I.F=(b.match(t)||[])[1],I.F.indexOf(":")>-1&&ce.push([Oe(I.F),I.F]);else if(S[0].indexOf('t="shared"')>-1){G=oe(S[0]);var q=Ee(Ae(S[1]));l.xlfn||(q=Ds(q)),ie[parseInt(G.si,10)]=[G,q,A.r]}}else(S=b.match(/]*\/>/))&&(G=oe(S[0]),ie[G.si]&&(I.f=_1(ie[G.si][1],ie[G.si][2],A.r)));var j=nr(A.r);for(_=0;_=ce[_][0].s.r&&j.r<=ce[_][0].e.r&&j.c>=ce[_][0].s.c&&j.c<=ce[_][0].e.c&&(I.F=ce[_][1])}if(A.t==null&&I.v===void 0)if(I.f||I.F)I.v=0,I.t="n";else if(F)I.t="z";else continue;else I.t=A.t||"n";switch(h.s.c>D&&(h.s.c=D),h.e.c"u"){if(!F)continue;I.t="z"}else z=Ja[parseInt(I.v,10)],I.v=z.t,I.r=z.r,l.cellHTML&&(I.h=z.h);break;case"str":I.t="s",I.v=I.v!=null?Ae(I.v):"",l.cellHTML&&(I.h=Ht(I.v));break;case"inlineStr":S=b.match(n),I.t="s",S!=null&&(z=t0(S[1]))?(I.v=z.t,l.cellHTML&&(I.h=z.h)):I.v="";break;case"b":I.v=Se(I.v);break;case"d":l.cellDates?I.v=Ve(I.v,1):(I.v=tr(Ve(I.v,1)),I.t="n");break;case"e":(!l||l.cellText!==!1)&&(I.w=I.v),I.v=$n[I.v];break}if(P=J=0,re=null,fe&&A.s!==void 0&&(re=d.CellXf[A.s],re!=null&&(re.numFmtId!=null&&(P=re.numFmtId),l.cellStyles&&re.fillId!=null&&(J=re.fillId))),Ws(I,P,J,l,x,d),l.cellDates&&fe&&I.t=="n"&&_a(de[P])&&(I.t="d",I.v=ut(I.v)),A.cm&&l.xlmeta){var Te=(l.xlmeta.Cell||[])[+A.cm-1];Te&&Te.type=="XLDAPR"&&(I.D=!0)}if(Fe){var C=nr(A.r);o[C.r]||(o[C.r]=[]),o[C.r][C.c]=I}else o[A.r]=I}}}}V.length>0&&(o["!rows"]=V)}}();function ou(e,a){var r={},n=e.l+a;r.r=e.read_shift(4),e.l+=4;var t=e.read_shift(2);e.l+=1;var s=e.read_shift(1);return e.l=n,s&7&&(r.level=s&7),s&16&&(r.hidden=!0),s&32&&(r.hpt=t/20),r}var lu=oa;function hu(){}function uu(e,a){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=Ic(e),r}function xu(e){var a=vr(e);return[a]}function du(e){var a=fa(e);return[a]}function vu(e){var a=vr(e),r=e.read_shift(1);return[a,r,"b"]}function pu(e){var a=fa(e),r=e.read_shift(1);return[a,r,"b"]}function gu(e){var a=vr(e),r=e.read_shift(1);return[a,r,"e"]}function mu(e){var a=fa(e),r=e.read_shift(1);return[a,r,"e"]}function _u(e){var a=vr(e),r=e.read_shift(4);return[a,r,"s"]}function Eu(e){var a=fa(e),r=e.read_shift(4);return[a,r,"s"]}function Tu(e){var a=vr(e),r=Je(e);return[a,r,"n"]}function Gs(e){var a=fa(e),r=Je(e);return[a,r,"n"]}function ku(e){var a=vr(e),r=Zt(e);return[a,r,"n"]}function wu(e){var a=fa(e),r=Zt(e);return[a,r,"n"]}function Au(e){var a=vr(e),r=Yt(e);return[a,r,"is"]}function Fu(e){var a=vr(e),r=je(e);return[a,r,"str"]}function Su(e){var a=fa(e),r=je(e);return[a,r,"str"]}function Cu(e,a,r){var n=e.l+a,t=vr(e);t.r=r["!row"];var s=e.read_shift(1),i=[t,s,"b"];if(r.cellFormula){e.l+=2;var c=yt(e,n-e.l,r);i[3]=qe(c,null,t,r.supbooks,r)}else e.l=n;return i}function yu(e,a,r){var n=e.l+a,t=vr(e);t.r=r["!row"];var s=e.read_shift(1),i=[t,s,"e"];if(r.cellFormula){e.l+=2;var c=yt(e,n-e.l,r);i[3]=qe(c,null,t,r.supbooks,r)}else e.l=n;return i}function Du(e,a,r){var n=e.l+a,t=vr(e);t.r=r["!row"];var s=Je(e),i=[t,s,"n"];if(r.cellFormula){e.l+=2;var c=yt(e,n-e.l,r);i[3]=qe(c,null,t,r.supbooks,r)}else e.l=n;return i}function Ou(e,a,r){var n=e.l+a,t=vr(e);t.r=r["!row"];var s=je(e),i=[t,s,"str"];if(r.cellFormula){e.l+=2;var c=yt(e,n-e.l,r);i[3]=qe(c,null,t,r.supbooks,r)}else e.l=n;return i}var Ru=oa;function Iu(e,a){var r=e.l+a,n=oa(e),t=jt(e),s=je(e),i=je(e),c=je(e);e.l=r;var f={rfx:n,relId:t,loc:s,display:c};return i&&(f.Tooltip=i),f}function Nu(){}function Pu(e,a,r){var n=e.l+a,t=Hn(e),s=e.read_shift(1),i=[t];if(i[2]=s,r.cellFormula){var c=Uh(e,n-e.l,r);i[1]=c}else e.l=n;return i}function Lu(e,a,r){var n=e.l+a,t=oa(e),s=[t];if(r.cellFormula){var i=Wh(e,n-e.l,r);s[1]=i,e.l=n}else e.l=n;return s}var Mu=["left","right","top","bottom","header","footer"];function Bu(e){var a={};return Mu.forEach(function(r){a[r]=Je(e)}),a}function bu(e){var a=e.read_shift(2);return e.l+=28,{RTL:a&32}}function Uu(){}function Hu(){}function Wu(e,a,r,n,t,s,i){if(!e)return e;var c=a||{};n||(n={"!id":{}});var f=c.dense?[]:{},o,l={s:{r:2e6,c:2e6},e:{r:0,c:0}},h=!1,x=!1,d,v,u,g,S,y,_,N,b,I=[];c.biff=12,c["!row"]=0;var A=0,W=!1,D=[],z={},G=c.supbooks||t.supbooks||[[]];if(G.sharedf=z,G.arrayf=D,G.SheetNames=t.SheetNames||t.Sheets.map(function(Fe){return Fe.name}),!c.supbooks&&(c.supbooks=G,t.Names))for(var P=0;P=F[0].s.r&&d.r<=F[0].e.r&&S>=F[0].s.c&&S<=F[0].e.c&&(v.F=_e(F[0]),W=!0)}!W&&V.length>3&&(v.f=V[3])}if(l.s.r>d.r&&(l.s.r=d.r),l.s.c>S&&(l.s.c=S),l.e.rd.r&&(l.s.r=d.r),l.s.c>S&&(l.s.c=S),l.e.r=V.s;)J[V.e--]={width:V.w/256,hidden:!!(V.flags&1),level:V.level},re||(re=!0,i0(V.w/256)),Fa(J[V.e+1]);break;case 161:f["!autofilter"]={ref:_e(V)};break;case 476:f["!margins"]=V;break;case 147:t.Sheets[r]||(t.Sheets[r]={}),V.name&&(t.Sheets[r].CodeName=V.name),(V.above||V.left)&&(f["!outline"]={above:V.above,left:V.left});break;case 137:t.Views||(t.Views=[{}]),t.Views[0]||(t.Views[0]={}),V.RTL&&(t.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:h=!0;break;case 36:h=!1;break;case 37:h=!0;break;case 38:h=!1;break;default:if(!le.T){if(!h||c.WTF)throw new Error("Unexpected record 0x"+he.toString(16))}}},c),delete c.supbooks,delete c["!row"],!f["!ref"]&&(l.s.r<2e6||o&&(o.e.r>0||o.e.c>0||o.s.r>0||o.s.c>0))&&(f["!ref"]=_e(o||l)),c.sheetRows&&f["!ref"]){var ie=Oe(f["!ref"]);c.sheetRows<=+ie.e.r&&(ie.e.r=c.sheetRows-1,ie.e.r>l.e.r&&(ie.e.r=l.e.r),ie.e.rl.e.c&&(ie.e.c=l.e.c),ie.e.c0&&(f["!merges"]=I),J.length>0&&(f["!cols"]=J),fe.length>0&&(f["!rows"]=fe),f}function Vu(e){var a=[],r=e.match(/^/),n;(e.match(/(.*?)<\/c:pt>/mg)||[]).forEach(function(s){var i=s.match(/(.*)<\/c:v><\/c:pt>/);i&&(a[+i[1]]=r?+i[2]:i[2])});var t=Ee((e.match(/([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/(.*?)<\/c:f>/mg)||[]).forEach(function(s){n=s.replace(/<.*?>/g,"")}),[a,t,n]}function Gu(e,a,r,n,t,s){var i=s||{"!type":"chart"};if(!e)return s;var c=0,f=0,o="A",l={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(h){var x=Vu(h);l.s.r=l.s.c=0,l.e.c=c,o=Ue(c),x[0].forEach(function(d,v){i[o+ze(v)]={t:"n",v:d,z:x[1]},f=v}),l.e.r0&&(i["!ref"]=_e(l)),i}function Xu(e,a,r,n,t){if(!e)return e;n||(n={"!id":{}});var s={"!type":"chart","!drawel":null,"!rel":""},i,c=e.match(Vs);return c&&l0(c[0],s,t,r),(i=e.match(/drawing r:id="(.*?)"/))&&(s["!rel"]=i[1]),n["!id"][s["!rel"]]&&(s["!drawel"]=n["!id"][s["!rel"]]),s}function $u(e,a){e.l+=10;var r=je(e);return{name:r}}function zu(e,a,r,n,t){if(!e)return e;n||(n={"!id":{}});var s={"!type":"chart","!drawel":null,"!rel":""},i=!1;return Mr(e,function(f,o,l){switch(l){case 550:s["!rel"]=f;break;case 651:t.Sheets[r]||(t.Sheets[r]={}),f.name&&(t.Sheets[r].CodeName=f.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:i=!0;break;case 36:i=!1;break;case 37:break;case 38:break;default:if(!(o.T>0)){if(!(o.T<0)){if(!i||a.WTF)throw new Error("Unexpected record 0x"+l.toString(16))}}}},a),n["!id"][s["!rel"]]&&(s["!drawel"]=n["!id"][s["!rel"]]),s}var Xs=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],Ku=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],Yu=[],ju=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function $s(e,a){for(var r=0;r!=e.length;++r)for(var n=e[r],t=0;t!=a.length;++t){var s=a[t];if(n[s[0]]==null)n[s[0]]=s[1];else switch(s[2]){case"bool":typeof n[s[0]]=="string"&&(n[s[0]]=Se(n[s[0]]));break;case"int":typeof n[s[0]]=="string"&&(n[s[0]]=parseInt(n[s[0]],10));break}}}function zs(e,a){for(var r=0;r!=a.length;++r){var n=a[r];if(e[n[0]]==null)e[n[0]]=n[1];else switch(n[2]){case"bool":typeof e[n[0]]=="string"&&(e[n[0]]=Se(e[n[0]]));break;case"int":typeof e[n[0]]=="string"&&(e[n[0]]=parseInt(e[n[0]],10));break}}}function Ks(e){zs(e.WBProps,Xs),zs(e.CalcPr,ju),$s(e.WBView,Ku),$s(e.Sheets,Yu),Ca.date1904=Se(e.WBProps.date1904)}var Ju="][*?/\\".split("");function Zu(e,a){if(e.length>31){if(a)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var r=!0;return Ju.forEach(function(n){if(e.indexOf(n)!=-1){if(!a)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");r=!1}}),r}var qu=/<\w+:workbook/;function Qu(e,a){if(!e)throw new Error("Could not find file");var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},n=!1,t="xmlns",s={},i=0;if(e.replace(Ke,function(f,o){var l=oe(f);switch(Cr(l[0])){case"":break;case"":case"":break;case"":break;case"":Xs.forEach(function(h){if(l[h[0]]!=null)switch(h[2]){case"bool":r.WBProps[h[0]]=Se(l[h[0]]);break;case"int":r.WBProps[h[0]]=parseInt(l[h[0]],10);break;default:r.WBProps[h[0]]=l[h[0]]}}),l.codeName&&(r.WBProps.CodeName=Ae(l.codeName));break;case"":break;case"":break;case"":case"":break;case"":delete l[0],r.WBView.push(l);break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":n=!1;break;case"":s.Ref=Ee(Ae(e.slice(i,o))),r.Names.push(s);break;case"":break;case"":delete l[0],r.CalcPr=l;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":case"":break;case"":n=!1;break;case"":n=!0;break;case"":n=!1;break;case"8?je(e):"";return t.length>0&&(r.CodeName=t),r.autoCompressPictures=!!(n&65536),r.backupFile=!!(n&64),r.checkCompatibility=!!(n&4096),r.date1904=!!(n&1),r.filterPrivacy=!!(n&8),r.hidePivotFieldList=!!(n&1024),r.promptedSolutions=!!(n&16),r.publishItems=!!(n&2048),r.refreshAllConnections=!!(n&262144),r.saveExternalLinkValues=!!(n&128),r.showBorderUnselectedTables=!!(n&4),r.showInkAnnotation=!!(n&32),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(n&32768),r.updateLinks=["userSet","never","always"][n>>8&3],r}function ax(e,a){var r={};return e.read_shift(4),r.ArchID=e.read_shift(4),e.l+=a-8,r}function tx(e,a,r){var n=e.l+a;e.l+=4,e.l+=1;var t=e.read_shift(4),s=Nc(e),i=Hh(e,0,r),c=jt(e);e.l=n;var f={Name:s,Ptg:i};return t<268435455&&(f.Sheet=t),c&&(f.Comment=c),f}function nx(e,a){var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},n=[],t=!1;a||(a={}),a.biff=12;var s=[],i=[[]];return i.SheetNames=[],i.XTI=[],Ot[16]={n:"BrtFRTArchID$",f:ax},Mr(e,function(f,o,l){switch(l){case 156:i.SheetNames.push(f.name),r.Sheets.push(f);break;case 153:r.WBProps=f;break;case 39:f.Sheet!=null&&(a.SID=f.Sheet),f.Ref=qe(f.Ptg,null,null,i,a),delete a.SID,delete f.Ptg,s.push(f);break;case 1036:break;case 357:case 358:case 355:case 667:i[0].length?i.push([l,f]):i[0]=[l,f],i[i.length-1].XTI=[];break;case 362:i.length===0&&(i[0]=[],i[0].XTI=[]),i[i.length-1].XTI=i[i.length-1].XTI.concat(f),i.XTI=i.XTI.concat(f);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:n.push(l),t=!0;break;case 36:n.pop(),t=!1;break;case 37:n.push(l),t=!0;break;case 38:n.pop(),t=!1;break;case 16:break;default:if(!o.T){if(!t||a.WTF&&n[n.length-1]!=37&&n[n.length-1]!=35)throw new Error("Unexpected record 0x"+l.toString(16))}}},a),Ks(r),r.Names=s,r.supbooks=i,r}function sx(e,a,r){return a.slice(-4)===".bin"?nx(e,r):Qu(e,r)}function ix(e,a,r,n,t,s,i,c){return a.slice(-4)===".bin"?Wu(e,n,r,t,s,i,c):eu(e,n,r,t,s,i,c)}function cx(e,a,r,n,t,s,i,c){return a.slice(-4)===".bin"?zu(e,n,r,t,s):Xu(e,n,r,t,s)}function fx(e,a,r,n,t,s,i,c){return a.slice(-4)===".bin"?p1():g1()}function ox(e,a,r,n,t,s,i,c){return a.slice(-4)===".bin"?d1():v1()}function lx(e,a,r,n){return a.slice(-4)===".bin"?Rl(e,r,n):Fl(e,r,n)}function hx(e,a,r){return Fs(e,r)}function ux(e,a,r){return a.slice(-4)===".bin"?Ko(e,r):$o(e,r)}function xx(e,a,r){return a.slice(-4)===".bin"?h1(e,r):i1(e,r)}function dx(e,a,r){return a.slice(-4)===".bin"?t1(e):r1(e)}function vx(e,a,r,n){return r.slice(-4)===".bin"?n1(e,a,r,n):void 0}function px(e,a,r){return a.slice(-4)===".bin"?Ql(e,a,r):e1(e,a,r)}var Ys=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,js=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function wr(e,a){var r=e.split(/\s+/),n=[];if(a||(n[0]=r[0]),r.length===1)return n;var t=e.match(Ys),s,i,c,f;if(t)for(f=0;f!=t.length;++f)s=t[f].match(js),(i=s[1].indexOf(":"))===-1?n[s[1]]=s[2].slice(1,s[2].length-1):(s[1].slice(0,6)==="xmlns:"?c="xmlns"+s[1].slice(6):c=s[1].slice(i+1),n[c]=s[2].slice(1,s[2].length-1));return n}function gx(e){var a=e.split(/\s+/),r={};if(a.length===1)return r;var n=e.match(Ys),t,s,i,c;if(n)for(c=0;c!=n.length;++c)t=n[c].match(js),(s=t[1].indexOf(":"))===-1?r[t[1]]=t[2].slice(1,t[2].length-1):(t[1].slice(0,6)==="xmlns:"?i="xmlns"+t[1].slice(6):i=t[1].slice(s+1),r[i]=t[2].slice(1,t[2].length-1));return r}var qa;function mx(e,a){var r=qa[e]||Ee(e);return r==="General"?na(a):xr(r,a)}function _x(e,a,r,n){var t=n;switch((r[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":t=Se(n);break;case"i2":case"int":t=parseInt(n,10);break;case"r4":case"float":t=parseFloat(n);break;case"date":case"dateTime.tz":t=Ve(n);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+r[0])}e[Ee(a)]=t}function Ex(e,a,r){if(e.t!=="z"){if(!r||r.cellText!==!1)try{e.t==="e"?e.w=e.w||ha[e.v]:a==="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Oa(e.v):e.w=na(e.v):e.w=mx(a||"General",e.v)}catch(s){if(r.WTF)throw s}try{var n=qa[a]||a||"General";if(r.cellNF&&(e.z=n),r.cellDates&&e.t=="n"&&_a(n)){var t=ta(e.v);t&&(e.t="d",e.v=new Date(t.y,t.m-1,t.d,t.H,t.M,t.S,t.u))}}catch(s){if(r.WTF)throw s}}}function Tx(e,a,r){if(r.cellStyles&&a.Interior){var n=a.Interior;n.Pattern&&(n.patternType=_l[n.Pattern]||n.Pattern)}e[a.ID]=a}function kx(e,a,r,n,t,s,i,c,f,o){var l="General",h=n.StyleID,x={};o=o||{};var d=[],v=0;for(h===void 0&&c&&(h=c.StyleID),h===void 0&&i&&(h=i.StyleID);s[h]!==void 0&&(s[h].nf&&(l=s[h].nf),s[h].Interior&&d.push(s[h].Interior),!!s[h].Parent);)h=s[h].Parent;switch(r.Type){case"Boolean":n.t="b",n.v=Se(e);break;case"String":n.t="s",n.r=xn(Ee(e)),n.v=e.indexOf("<")>-1?Ee(a||e).replace(/<.*?>/g,""):n.r;break;case"DateTime":e.slice(-1)!="Z"&&(e+="Z"),n.v=(Ve(e)-new Date(Date.UTC(1899,11,30)))/(24*60*60*1e3),n.v!==n.v?n.v=Ee(e):n.v<60&&(n.v=n.v-1),(!l||l=="General")&&(l="yyyy-mm-dd");case"Number":n.v===void 0&&(n.v=+e),n.t||(n.t="n");break;case"Error":n.t="e",n.v=$n[e],o.cellText!==!1&&(n.w=e);break;default:e==""&&a==""?n.t="z":(n.t="s",n.v=xn(a||e));break}if(Ex(n,l,o),o.cellFormula!==!1)if(n.Formula){var u=Ee(n.Formula);u.charCodeAt(0)==61&&(u=u.slice(1)),n.f=Sa(u,t),delete n.Formula,n.ArrayRange=="RC"?n.F=Sa("RC:RC",t):n.ArrayRange&&(n.F=Sa(n.ArrayRange,t),f.push([Oe(n.F),n.F]))}else for(v=0;v=f[v][0].s.r&&t.r<=f[v][0].e.r&&t.c>=f[v][0].s.c&&t.c<=f[v][0].e.c&&(n.F=f[v][1]);o.cellStyles&&(d.forEach(function(g){!x.patternType&&g.patternType&&(x.patternType=g.patternType)}),n.s=x),n.StyleID!==void 0&&(n.ixfe=n.StyleID)}function wx(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,` `).replace(/\r/g,` `),e.v=e.w=e.ixfe=void 0}function h0(e,a){var r=a||{};q0();var n=ya(Vt(e));(r.type=="binary"||r.type=="array"||r.type=="base64")&&(n=Ae(n));var t=n.slice(0,1024).toLowerCase(),s=!1;if(t=t.replace(/".*?"/g,""),(t.indexOf(">")&1023)>Math.min(t.indexOf(",")&1023,t.indexOf(";")&1023)){var i=Xe(r);return i.type="string",Ga.to_workbook(n,i)}if(t.indexOf("=0&&(s=!0)}),s)return Ix(n,r);qa={"General Number":"General","General Date":de[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":de[15],"Short Date":de[14],"Long Time":de[19],"Medium Time":de[18],"Short Time":de[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:de[2],Standard:de[4],Percent:de[10],Scientific:de[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var c,f=[],o,l={},h=[],x=r.dense?[]:{},d="",v={},u={},g=wr(''),S=0,y=0,_=0,N={s:{r:2e6,c:2e6},e:{r:0,c:0}},b={},I={},A="",W=0,D=[],z={},G={},P=0,J=[],fe=[],re={},ce=[],ie,Fe=!1,V=[],le=[],he={},F=0,U=0,R={Sheets:[],WBProps:{date1904:!1}},O={};Pa.lastIndex=0,n=n.replace(//mg,"");for(var K="";c=Pa.exec(n);)switch(c[3]=(K=c[3]).toLowerCase()){case"data":if(K=="data"){if(c[1]==="/"){if((o=f.pop())[0]!==c[3])throw new Error("Bad state: "+o.join("|"))}else c[0].charAt(c[0].length-2)!=="/"&&f.push([c[3],!0]);break}if(f[f.length-1][1])break;c[1]==="/"?kx(n.slice(S,c.index),A,g,f[f.length-1][0]=="comment"?re:v,{c:y,r:_},b,ce[y],u,V,r):(A="",g=wr(c[0]),S=c.index+c[0].length);break;case"cell":if(c[1]==="/")if(fe.length>0&&(v.c=fe),(!r.sheetRows||r.sheetRows>_)&&v.v!==void 0&&(r.dense?(x[_]||(x[_]=[]),x[_][y]=v):x[Ue(y)+ze(_)]=v),v.HRef&&(v.l={Target:Ee(v.HRef)},v.HRefScreenTip&&(v.l.Tooltip=v.HRefScreenTip),delete v.HRef,delete v.HRefScreenTip),(v.MergeAcross||v.MergeDown)&&(F=y+(parseInt(v.MergeAcross,10)|0),U=_+(parseInt(v.MergeDown,10)|0),D.push({s:{c:y,r:_},e:{c:F,r:U}})),!r.sheetStubs)v.MergeAcross?y=F+1:++y;else if(v.MergeAcross||v.MergeDown){for(var ee=y;ee<=F;++ee)for(var ne=_;ne<=U;++ne)(ee>y||ne>_)&&(r.dense?(x[ne]||(x[ne]=[]),x[ne][ee]={t:"z"}):x[Ue(ee)+ze(ne)]={t:"z"});y=F+1}else++y;else v=gx(c[0]),v.Index&&(y=+v.Index-1),yN.e.c&&(N.e.c=y),c[0].slice(-2)==="/>"&&++y,fe=[];break;case"row":c[1]==="/"||c[0].slice(-2)==="/>"?(_N.e.r&&(N.e.r=_),c[0].slice(-2)==="/>"&&(u=wr(c[0]),u.Index&&(_=+u.Index-1)),y=0,++_):(u=wr(c[0]),u.Index&&(_=+u.Index-1),he={},(u.AutoFitHeight=="0"||u.Height)&&(he.hpx=parseInt(u.Height,10),he.hpt=As(he.hpx),le[_]=he),u.Hidden=="1"&&(he.hidden=!0,le[_]=he));break;case"worksheet":if(c[1]==="/"){if((o=f.pop())[0]!==c[3])throw new Error("Bad state: "+o.join("|"));h.push(d),N.s.r<=N.e.r&&N.s.c<=N.e.c&&(x["!ref"]=_e(N),r.sheetRows&&r.sheetRows<=N.e.r&&(x["!fullref"]=x["!ref"],N.e.r=r.sheetRows-1,x["!ref"]=_e(N))),D.length&&(x["!merges"]=D),ce.length>0&&(x["!cols"]=ce),le.length>0&&(x["!rows"]=le),l[d]=x}else N={s:{r:2e6,c:2e6},e:{r:0,c:0}},_=y=0,f.push([c[3],!1]),o=wr(c[0]),d=Ee(o.Name),x=r.dense?[]:{},D=[],V=[],le=[],O={name:d,Hidden:0},R.Sheets.push(O);break;case"table":if(c[1]==="/"){if((o=f.pop())[0]!==c[3])throw new Error("Bad state: "+o.join("|"))}else{if(c[0].slice(-2)=="/>")break;f.push([c[3],!1]),ce=[],Fe=!1}break;case"style":c[1]==="/"?Tx(b,I,r):I=wr(c[0]);break;case"numberformat":I.nf=Ee(wr(c[0]).Format||"General"),qa[I.nf]&&(I.nf=qa[I.nf]);for(var q=0;q!=392&&de[q]!=I.nf;++q);if(q==392){for(q=57;q!=392;++q)if(de[q]==null){sa(I.nf,q);break}}break;case"column":if(f[f.length-1][0]!=="table")break;if(ie=wr(c[0]),ie.Hidden&&(ie.hidden=!0,delete ie.Hidden),ie.Width&&(ie.wpx=parseInt(ie.Width,10)),!Fe&&ie.wpx>10){Fe=!0,sr=ks;for(var j=0;j0&&(Ie.Sheet=R.Sheets.length-1),R.Names.push(Ie);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if(c[0].slice(-2)==="/>")break;c[1]==="/"?A+=n.slice(W,c.index):W=c.index+c[0].length;break;case"interior":if(!r.cellStyles)break;I.Interior=wr(c[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if(c[0].slice(-2)==="/>")break;c[1]==="/"?nf(z,K,n.slice(P,c.index)):P=c.index+c[0].length;break;case"paragraphs":break;case"styles":case"workbook":if(c[1]==="/"){if((o=f.pop())[0]!==c[3])throw new Error("Bad state: "+o.join("|"))}else f.push([c[3],!1]);break;case"comment":if(c[1]==="/"){if((o=f.pop())[0]!==c[3])throw new Error("Bad state: "+o.join("|"));wx(re),fe.push(re)}else f.push([c[3],!1]),o=wr(c[0]),re={a:o.Author};break;case"autofilter":if(c[1]==="/"){if((o=f.pop())[0]!==c[3])throw new Error("Bad state: "+o.join("|"))}else if(c[0].charAt(c[0].length-2)!=="/"){var ke=wr(c[0]);x["!autofilter"]={ref:Sa(ke.Range).replace(/\$/g,"")},f.push([c[3],!0])}break;case"name":break;case"datavalidation":if(c[1]==="/"){if((o=f.pop())[0]!==c[3])throw new Error("Bad state: "+o.join("|"))}else c[0].charAt(c[0].length-2)!=="/"&&f.push([c[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if(c[1]==="/"){if((o=f.pop())[0]!==c[3])throw new Error("Bad state: "+o.join("|"))}else c[0].charAt(c[0].length-2)!=="/"&&f.push([c[3],!0]);break;case"null":break;default:if(f.length==0&&c[3]=="document"||f.length==0&&c[3]=="uof")return si(n,r);var we=!0;switch(f[f.length-1][0]){case"officedocumentsettings":switch(c[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:we=!1}break;case"componentoptions":switch(c[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:we=!1}break;case"excelworkbook":switch(c[3]){case"date1904":R.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:we=!1}break;case"workbookoptions":switch(c[3]){case"owcversion":break;case"height":break;case"width":break;default:we=!1}break;case"worksheetoptions":switch(c[3]){case"visible":if(c[0].slice(-2)!=="/>")if(c[1]==="/")switch(n.slice(P,c.index)){case"SheetHidden":O.Hidden=1;break;case"SheetVeryHidden":O.Hidden=2;break}else P=c.index+c[0].length;break;case"header":x["!margins"]||Za(x["!margins"]={},"xlml"),isNaN(+oe(c[0]).Margin)||(x["!margins"].header=+oe(c[0]).Margin);break;case"footer":x["!margins"]||Za(x["!margins"]={},"xlml"),isNaN(+oe(c[0]).Margin)||(x["!margins"].footer=+oe(c[0]).Margin);break;case"pagemargins":var pe=oe(c[0]);x["!margins"]||Za(x["!margins"]={},"xlml"),isNaN(+pe.Top)||(x["!margins"].top=+pe.Top),isNaN(+pe.Left)||(x["!margins"].left=+pe.Left),isNaN(+pe.Right)||(x["!margins"].right=+pe.Right),isNaN(+pe.Bottom)||(x["!margins"].bottom=+pe.Bottom);break;case"displayrighttoleft":R.Views||(R.Views=[]),R.Views[0]||(R.Views[0]={}),R.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":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"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":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":x["!outline"]||(x["!outline"]={}),x["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":x["!outline"]||(x["!outline"]={}),x["!outline"].left=!0;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:we=!1}break;case"pivottable":case"pivotcache":switch(c[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:we=!1}break;case"pagebreaks":switch(c[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:we=!1}break;case"autofilter":switch(c[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:we=!1}break;case"querytable":switch(c[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:we=!1}break;case"datavalidation":switch(c[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"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;case"cellrangelist":break;default:we=!1}break;case"sorting":case"conditionalformatting":switch(c[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:we=!1}break;case"mapinfo":case"schema":case"data":switch(c[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:we=!1}break;case"smarttags":break;default:we=!1;break}if(we||c[3].match(/!\[CDATA/))break;if(!f[f.length-1][1])throw"Unrecognized tag: "+c[3]+"|"+f.join("|");if(f[f.length-1][0]==="customdocumentproperties"){if(c[0].slice(-2)==="/>")break;c[1]==="/"?_x(G,K,J,n.slice(P,c.index)):(J=c,P=c.index+c[0].length);break}if(r.WTF)throw"Unrecognized tag: "+c[3]+"|"+f.join("|")}var ae={};return!r.bookSheets&&!r.bookProps&&(ae.Sheets=l),ae.SheetNames=h,ae.Workbook=R,ae.SSF=Xe(de),ae.Props=z,ae.Custprops=G,ae}function u0(e,a){switch(_0(a=a||{}),a.type||"base64"){case"base64":return h0(fr(e),a);case"binary":case"buffer":case"file":return h0(e,a);case"array":return h0(aa(e),a)}}function Ax(e){var a={},r=e.content;if(r.l=28,a.AnsiUserType=r.read_shift(0,"lpstr-ansi"),a.AnsiClipboardFormat=Mc(r),r.length-r.l<=4)return a;var n=r.read_shift(4);if(n==0||n>40||(r.l-=4,a.Reserved1=r.read_shift(0,"lpstr-ansi"),r.length-r.l<=4)||(n=r.read_shift(4),n!==1907505652)||(a.UnicodeClipboardFormat=Bc(r),n=r.read_shift(4),n==0||n>40))return a;r.l-=4,a.Reserved2=r.read_shift(0,"lpwstr")}var Fx=[60,1084,2066,2165,2175];function Sx(e,a,r,n,t){var s=n,i=[],c=r.slice(r.l,r.l+s);if(t&&t.enc&&t.enc.insitu&&c.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:break;case 133:break;default:t.enc.insitu(c)}i.push(c),r.l+=s;for(var f=Lr(r,r.l),o=x0[f],l=0;o!=null&&Fx.indexOf(f)>-1;)s=Lr(r,r.l+2),l=r.l+4,f==2066?l+=4:(f==2165||f==2175)&&(l+=12),c=r.slice(l,r.l+4+s),i.push(c),r.l+=4+s,o=x0[f=Lr(r,r.l)];var h=zr(i);$e(h,0);var x=0;h.lens=[];for(var d=0;d1)&&!(mr.sheetRows&&ve.r>=mr.sheetRows)){if(mr.cellStyles&&Pe.XF&&Pe.XF.data&&z(ve,Pe,mr),delete Pe.ixfe,delete Pe.XF,h=ve,x=ue(ve),(!i||!i.s||!i.e)&&(i={s:{r:0,c:0},e:{r:0,c:0}}),ve.ri.e.r&&(i.e.r=ve.r+1),ve.c+1>i.e.c&&(i.e.c=ve.c+1),mr.cellFormula&&Pe.f){for(var We=0;Weve.c||y[We][0].s.r>ve.r)&&!(y[We][0].e.c>8)!==ne)throw new Error("rt mismatch: "+Te+"!="+ne);j.r==12&&(e.l+=10,q-=10)}var C={};if(ne===10?C=j.f(e,q,P):C=Sx(ne,j,e,q,P),he==0&&[9,521,1033,2057].indexOf(le)===-1)continue;switch(ne){case 34:r.opts.Date1904=A.WBProps.date1904=C;break;case 134:r.opts.WriteProtect=!0;break;case 47:if(P.enc||(e.l=0),P.enc=C,!a.password)throw new Error("File is password-protected");if(C.valid==null)throw new Error("Encryption scheme unsupported");if(!C.valid)throw new Error("Password is incorrect");break;case 92:P.lastuser=C;break;case 66:var Ie=Number(C);switch(Ie){case 21010:Ie=1200;break;case 32768:Ie=1e4;break;case 32769:Ie=1252;break}_r(P.codepage=Ie),K=!0;break;case 317:P.rrtabid=C;break;case 25:P.winlocked=C;break;case 439:r.opts.RefreshAll=C;break;case 12:r.opts.CalcCount=C;break;case 16:r.opts.CalcDelta=C;break;case 17:r.opts.CalcIter=C;break;case 13:r.opts.CalcMode=C;break;case 14:r.opts.CalcPrecision=C;break;case 95:r.opts.CalcSaveRecalc=C;break;case 15:P.CalcRefMode=C;break;case 2211:r.opts.FullCalc=C;break;case 129:C.fDialog&&(t["!type"]="dialog"),C.fBelow||((t["!outline"]||(t["!outline"]={})).above=!0),C.fRight||((t["!outline"]||(t["!outline"]={})).left=!0);break;case 224:b.push(C);break;case 430:V.push([C]),V[V.length-1].XTI=[];break;case 35:case 547:V[V.length-1].push(C);break;case 24:case 536:O={Name:C.Name,Ref:qe(C.rgce,i,null,V,P)},C.itab>0&&(O.Sheet=C.itab-1),V.names.push(O),V[0]||(V[0]=[],V[0].XTI=[]),V[V.length-1].push(C),C.Name=="_xlnm._FilterDatabase"&&C.itab>0&&C.rgce&&C.rgce[0]&&C.rgce[0][0]&&C.rgce[0][0][0]=="PtgArea3d"&&(R[C.itab-1]={ref:_e(C.rgce[0][0][1][2])});break;case 22:P.ExternCount=C;break;case 23:V.length==0&&(V[0]=[],V[0].XTI=[]),V[V.length-1].XTI=V[V.length-1].XTI.concat(C),V.XTI=V.XTI.concat(C);break;case 2196:if(P.biff<8)break;O!=null&&(O.Comment=C[1]);break;case 18:t["!protect"]=C;break;case 19:C!==0&&P.WTF&&console.error("Password verifier: "+C);break;case 133:s[C.pos]=C,P.snames.push(C.name);break;case 10:{if(--he)break;if(i.e){if(i.e.r>0&&i.e.c>0){if(i.e.r--,i.e.c--,t["!ref"]=_e(i),a.sheetRows&&a.sheetRows<=i.e.r){var ke=i.e.r;i.e.r=a.sheetRows-1,t["!fullref"]=t["!ref"],t["!ref"]=_e(i),i.e.r=ke}i.e.r++,i.e.c++}fe.length>0&&(t["!merges"]=fe),re.length>0&&(t["!objects"]=re),ce.length>0&&(t["!cols"]=ce),ie.length>0&&(t["!rows"]=ie),A.Sheets.push(W)}o===""?l=t:n[o]=t,t=a.dense?[]:{}}break;case 9:case 521:case 1033:case 2057:{if(P.biff===8&&(P.biff={9:2,521:3,1033:4}[ne]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[C.BIFFVer]||8),P.biffguess=C.BIFFVer==0,C.BIFFVer==0&&C.dt==4096&&(P.biff=5,K=!0,_r(P.codepage=28591)),P.biff==8&&C.BIFFVer==0&&C.dt==16&&(P.biff=2),he++)break;if(t=a.dense?[]:{},P.biff<8&&!K&&(K=!0,_r(P.codepage=a.codepage||1252)),P.biff<5||C.BIFFVer==0&&C.dt==4096){o===""&&(o="Sheet1"),i={s:{r:0,c:0},e:{r:0,c:0}};var we={pos:e.l-q,name:o};s[we.pos]=we,P.snames.push(o)}else o=(s[ee]||{name:""}).name;C.dt==32&&(t["!type"]="chart"),C.dt==64&&(t["!type"]="macro"),fe=[],re=[],P.arrayf=y=[],ce=[],ie=[],Fe=!1,W={Hidden:(s[ee]||{hs:0}).hs,name:o}}break;case 515:case 3:case 2:t["!type"]=="chart"&&(a.dense?(t[C.r]||[])[C.c]:t[ue({c:C.c,r:C.r})])&&++C.c,_={ixfe:C.ixfe,XF:b[C.ixfe]||{},v:C.val,t:"n"},F>0&&(_.z=U[_.ixfe>>8&63]),Dr(_,a,r.opts.Date1904),G({c:C.c,r:C.r},_,a);break;case 5:case 517:_={ixfe:C.ixfe,XF:b[C.ixfe],v:C.val,t:C.t},F>0&&(_.z=U[_.ixfe>>8&63]),Dr(_,a,r.opts.Date1904),G({c:C.c,r:C.r},_,a);break;case 638:_={ixfe:C.ixfe,XF:b[C.ixfe],v:C.rknum,t:"n"},F>0&&(_.z=U[_.ixfe>>8&63]),Dr(_,a,r.opts.Date1904),G({c:C.c,r:C.r},_,a);break;case 189:for(var pe=C.c;pe<=C.C;++pe){var ae=C.rkrec[pe-C.c][0];_={ixfe:ae,XF:b[ae],v:C.rkrec[pe-C.c][1],t:"n"},F>0&&(_.z=U[_.ixfe>>8&63]),Dr(_,a,r.opts.Date1904),G({c:pe,r:C.r},_,a)}break;case 6:case 518:case 1030:{if(C.val=="String"){c=C;break}if(_=Dt(C.val,C.cell.ixfe,C.tt),_.XF=b[_.ixfe],a.cellFormula){var Ne=C.formula;if(Ne&&Ne[0]&&Ne[0][0]&&Ne[0][0][0]=="PtgExp"){var gr=Ne[0][0][1][0],Or=Ne[0][0][1][1],Ur=ue({r:gr,c:Or});S[Ur]?_.f=""+qe(C.formula,i,C.cell,V,P):_.F=((a.dense?(t[gr]||[])[Or]:t[Ur])||{}).F}else _.f=""+qe(C.formula,i,C.cell,V,P)}F>0&&(_.z=U[_.ixfe>>8&63]),Dr(_,a,r.opts.Date1904),G(C.cell,_,a),c=C}break;case 7:case 519:if(c)c.val=C,_=Dt(C,c.cell.ixfe,"s"),_.XF=b[_.ixfe],a.cellFormula&&(_.f=""+qe(c.formula,i,c.cell,V,P)),F>0&&(_.z=U[_.ixfe>>8&63]),Dr(_,a,r.opts.Date1904),G(c.cell,_,a),c=null;else throw new Error("String record expects Formula");break;case 33:case 545:{y.push(C);var at=ue(C[0].s);if(d=a.dense?(t[C[0].s.r]||[])[C[0].s.c]:t[at],a.cellFormula&&d){if(!c||!at||!d)break;d.f=""+qe(C[1],i,C[0],V,P),d.F=_e(C[0])}}break;case 1212:{if(!a.cellFormula)break;if(x){if(!c)break;S[ue(c.cell)]=C[0],d=a.dense?(t[c.cell.r]||[])[c.cell.c]:t[ue(c.cell)],(d||{}).f=""+qe(C[0],i,h,V,P)}}break;case 253:_=Dt(f[C.isst].t,C.ixfe,"s"),f[C.isst].h&&(_.h=f[C.isst].h),_.XF=b[_.ixfe],F>0&&(_.z=U[_.ixfe>>8&63]),Dr(_,a,r.opts.Date1904),G({c:C.c,r:C.r},_,a);break;case 513:a.sheetStubs&&(_={ixfe:C.ixfe,XF:b[C.ixfe],t:"z"},F>0&&(_.z=U[_.ixfe>>8&63]),Dr(_,a,r.opts.Date1904),G({c:C.c,r:C.r},_,a));break;case 190:if(a.sheetStubs)for(var qr=C.c;qr<=C.C;++qr){var hr=C.ixfe[qr-C.c];_={ixfe:hr,XF:b[hr],t:"z"},F>0&&(_.z=U[_.ixfe>>8&63]),Dr(_,a,r.opts.Date1904),G({c:qr,r:C.r},_,a)}break;case 214:case 516:case 4:_=Dt(C.val,C.ixfe,"s"),_.XF=b[_.ixfe],F>0&&(_.z=U[_.ixfe>>8&63]),Dr(_,a,r.opts.Date1904),G({c:C.c,r:C.r},_,a);break;case 0:case 512:he===1&&(i=C);break;case 252:f=C;break;case 1054:if(P.biff==4){U[F++]=C[1];for(var Hr=0;Hr=163&&sa(C[1],F+163)}else sa(C[1],C[0]);break;case 30:{U[F++]=C;for(var Qr=0;Qr=163&&sa(C,F+163)}break;case 229:fe=fe.concat(C);break;case 93:re[C.cmo[0]]=P.lastobj=C;break;case 438:P.lastobj.TxO=C;break;case 127:P.lastobj.ImData=C;break;case 440:for(g=C[0].s.r;g<=C[0].e.r;++g)for(u=C[0].s.c;u<=C[0].e.c;++u)d=a.dense?(t[g]||[])[u]:t[ue({c:u,r:g})],d&&(d.l=C[1]);break;case 2048:for(g=C[0].s.r;g<=C[0].e.r;++g)for(u=C[0].s.c;u<=C[0].e.c;++u)d=a.dense?(t[g]||[])[u]:t[ue({c:u,r:g})],d&&d.l&&(d.l.Tooltip=C[1]);break;case 28:{if(P.biff<=5&&P.biff>=2)break;d=a.dense?(t[C[0].r]||[])[C[0].c]:t[ue(C[0])];var tt=re[C[2]];d||(a.dense?(t[C[0].r]||(t[C[0].r]=[]),d=t[C[0].r][C[0].c]={t:"z"}):d=t[ue(C[0])]={t:"z"},i.e.r=Math.max(i.e.r,C[0].r),i.s.r=Math.min(i.s.r,C[0].r),i.e.c=Math.max(i.e.c,C[0].c),i.s.c=Math.min(i.s.c,C[0].c)),d.c||(d.c=[]),v={a:C[1],t:tt.TxO.t},d.c.push(v)}break;case 2173:jl(b[C.ixfe],C.ext);break;case 125:{if(!P.cellStyles)break;for(;C.e>=C.s;)ce[C.e--]={width:C.w/256,level:C.level||0,hidden:!!(C.flags&1)},Fe||(Fe=!0,i0(C.w/256)),Fa(ce[C.e+1])}break;case 520:{var ir={};C.level!=null&&(ie[C.r]=ir,ir.level=C.level),C.hidden&&(ie[C.r]=ir,ir.hidden=!0),C.hpt&&(ie[C.r]=ir,ir.hpt=C.hpt,ir.hpx=za(C.hpt))}break;case 38:case 39:case 40:case 41:t["!margins"]||Za(t["!margins"]={}),t["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[ne]]=C;break;case 161:t["!margins"]||Za(t["!margins"]={}),t["!margins"].header=C.header,t["!margins"].footer=C.footer;break;case 574:C.RTL&&(A.Views[0].RTL=!0);break;case 146:I=C;break;case 2198:J=C;break;case 140:N=C;break;case 442:o?W.CodeName=C||W.name:A.WBProps.CodeName=C||"ThisWorkbook";break}}else j||console.error("Missing Info for XLS Record 0x"+ne.toString(16)),e.l+=q}return r.SheetNames=Sr(s).sort(function(Rr,ve){return Number(Rr)-Number(ve)}).map(function(Rr){return s[Rr].name}),a.bookSheets||(r.Sheets=n),!r.SheetNames.length&&l["!ref"]?(r.SheetNames.push("Sheet1"),r.Sheets&&(r.Sheets.Sheet1=l)):r.Preamble=l,r.Sheets&&R.forEach(function(Rr,ve){r.Sheets[r.SheetNames[ve]]["!autofilter"]=Rr}),r.Strings=f,r.SSF=Xe(de),P.enc&&(r.Encryption=P.enc),J&&(r.Themes=J),r.Metadata={},N!==void 0&&(r.Metadata.Country=N),V.names.length>0&&(A.Names=V.names),r.Workbook=A,r}var Js={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function yx(e,a,r){var n=me.find(e,"/!DocumentSummaryInformation");if(n&&n.size>0)try{var t=rs(n,Gc,Js.DSI);for(var s in t)a[s]=t[s]}catch(o){if(r.WTF)throw o}var i=me.find(e,"/!SummaryInformation");if(i&&i.size>0)try{var c=rs(i,Xc,Js.SI);for(var f in c)a[f]==null&&(a[f]=c[f])}catch(o){if(r.WTF)throw o}a.HeadingPairs&&a.TitlesOfParts&&(Yn(a.HeadingPairs,a.TitlesOfParts,a,r),delete a.HeadingPairs,delete a.TitlesOfParts)}function Zs(e,a){a||(a={}),_0(a),D0(),a.codepage&&Nt(a.codepage);var r,n;if(e.FullPaths){if(me.find(e,"/encryption"))throw new Error("File is password-protected");r=me.find(e,"!CompObj"),n=me.find(e,"/Workbook")||me.find(e,"/Book")}else{switch(a.type){case"base64":e=Er(fr(e));break;case"binary":e=Er(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e));break}$e(e,0),n={content:e}}var t,s;if(r&&Ax(r),a.bookProps&&!a.bookSheets)t={};else{var i=ge?"buffer":"array";if(n&&n.content)t=Cx(n.content,a);else if((s=me.find(e,"PerfectOffice_MAIN"))&&s.content)t=Xa.to_workbook(s.content,(a.type=i,a));else if((s=me.find(e,"NativeContent_MAIN"))&&s.content)t=Xa.to_workbook(s.content,(a.type=i,a));else throw(s=me.find(e,"MN0"))&&s.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");a.bookVBA&&e.FullPaths&&me.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(t.vbaraw=x1(e))}var c={};return e.FullPaths&&yx(e,c,a),t.Props=t.Custprops=c,a.bookFiles&&(t.cfb=e),t}var Ot={0:{f:ou},1:{f:xu},2:{f:ku},3:{f:gu},4:{f:vu},5:{f:Tu},6:{f:Fu},7:{f:_u},8:{f:Ou},9:{f:Du},10:{f:Cu},11:{f:yu},12:{f:du},13:{f:wu},14:{f:mu},15:{f:pu},16:{f:Gs},17:{f:Su},18:{f:Eu},19:{f:Yt},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:tx},40:{},42:{},43:{f:Cl},44:{f:Sl},45:{f:yl},46:{f:Ol},47:{f:Dl},48:{},49:{f:Dc},50:{},51:{f:Zl},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:ps},62:{f:Au},63:{f:a1},64:{f:Uu},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Ye,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:bu},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:uu},148:{f:lu,p:16},151:{f:Nu},152:{},153:{f:rx},154:{},155:{},156:{f:ex},157:{},158:{},159:{T:1,f:zo},160:{T:-1},161:{T:1,f:oa},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Ru},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:Jl},336:{T:-1},337:{f:ql,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Jt},357:{},358:{},359:{},360:{T:1},361:{},362:{f:ds},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:Pu},427:{f:Lu},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:Bu},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:hu},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:Iu},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Jt},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:l1},633:{T:1},634:{T:-1},635:{T:1,f:o1},636:{T:-1},637:{f:Rc},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:$u},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:Hu},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},x0={6:{f:f0},10:{f:jr},12:{f:Me},13:{f:Me},14:{f:Re},15:{f:Re},16:{f:Je},17:{f:Re},18:{f:Re},19:{f:Me},20:{f:hs},21:{f:hs},23:{f:ds},24:{f:xs},25:{f:Re},26:{},27:{},28:{f:io},29:{},34:{f:Re},35:{f:us},38:{f:Je},39:{f:Je},40:{f:Je},41:{f:Je},42:{f:Re},43:{f:Re},47:{f:hl},49:{f:Wf},51:{f:Me},60:{},61:{f:bf},64:{f:Re},65:{f:Hf},66:{f:Me},77:{},80:{},81:{},82:{},85:{f:Me},89:{},90:{},91:{},92:{f:Of},93:{f:fo},94:{},95:{f:Re},96:{},97:{},99:{f:Re},125:{f:ps},128:{f:Zf},129:{f:Rf},130:{f:Me},131:{f:Re},132:{f:Re},133:{f:If},134:{},140:{f:vo},141:{f:Me},144:{},146:{f:go},151:{},152:{},153:{},154:{},155:{},156:{f:Me},157:{},158:{},160:{f:ko},161:{f:_o},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:Kf},190:{f:Yf},193:{f:jr},197:{},198:{},199:{},200:{},201:{},202:{f:Re},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:Me},220:{},221:{f:Re},222:{},224:{f:Jf},225:{f:Df},226:{f:jr},227:{},229:{f:co},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:Nf},253:{f:Vf},255:{f:Pf},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:as},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:Re},353:{f:jr},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:Qf},431:{f:Re},432:{},433:{},434:{},437:{},438:{f:ho},439:{f:Re},440:{f:uo},441:{},442:{f:Va},443:{},444:{f:Me},445:{},446:{},448:{f:jr},449:{f:Bf,r:2},450:{f:jr},512:{f:os},513:{f:To},515:{f:qf},516:{f:Gf},517:{f:ls},519:{f:wo},520:{f:Lf},523:{},545:{f:vs},549:{f:fs},566:{},574:{f:Uf},638:{f:zf},659:{},1048:{},1054:{f:Xf},1084:{},1212:{f:to},2048:{f:xo},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:Tt},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:jr},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:mo,r:12},2173:{f:Yl,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:Re,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:ao,r:12},2197:{},2198:{f:Vl,r:12},2199:{},2200:{},2201:{},2202:{f:no,r:12},2203:{f:jr},2204:{},2205:{},2206:{},2207:{},2211:{f:Mf},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:Me},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:Eo},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:po},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:os},1:{},2:{f:Co},3:{f:So},4:{f:Fo},5:{f:ls},7:{f:yo},8:{},9:{f:Tt},11:{},22:{f:Me},30:{f:$f},31:{},32:{},33:{f:vs},36:{},37:{f:fs},50:{f:Do},62:{},52:{},67:{},68:{f:Me},69:{},86:{},126:{},127:{f:Ao},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:Oo},223:{},234:{},354:{},421:{},518:{f:f0},521:{f:Tt},536:{f:xs},547:{f:us},561:{},579:{},1030:{f:f0},1033:{f:Tt},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function Ar(e,a,r,n){var t=a;if(!isNaN(t)){var s=n||(r||[]).length||0,i=e.next(4);i.write_shift(2,t),i.write_shift(2,s),s>0&&Ln(r)&&e.push(r)}}function qs(e,a){var r=a||{},n=r.dense?[]:{};e=e.replace(//g,"");var t=e.match(/");var s=e.match(/<\/table/i),i=t.index,c=s&&s.index||e.length,f=qi(e.slice(i,c),/(:?]*>)/i,""),o=-1,l=0,h=0,x=0,d={s:{r:1e7,c:1e7},e:{r:0,c:0}},v=[];for(i=0;i/i);for(c=0;c"))>-1;)_=_.slice(N+1);for(var b=0;b")));x=A.colspan?+A.colspan:1,((h=+A.rowspan)>1||x>1)&&v.push({s:{r:o,c:l},e:{r:o+(h||1)-1,c:l+x-1}});var W=A.t||A["data-t"]||"";if(!_.length){l+=x;continue}if(_=pn(_),d.s.r>o&&(d.s.r=o),d.e.rl&&(d.s.c=l),d.e.cr||t[o].s.c>i)&&!(t[o].e.r1&&(d.rowspan=c),f>1&&(d.colspan=f),n.editable?x=''+x+"":h&&(d["data-t"]=h&&h.t||"z",h.v!=null&&(d["data-v"]=h.v),h.z!=null&&(d["data-z"]=h.z),h.l&&(h.l.Target||"#").charAt(0)!="#"&&(x=''+x+"")),d.id=(n.id||"sjs")+"-"+l,s.push(xc("td",x,d))}}var v="";return v+s.join("")+""}var Ox='SheetJS Table Export',Rx="";function Ix(e,a){var r=e.match(/[\s\S]*?<\/table>/gi);if(!r||r.length==0)throw new Error("Invalid HTML: could not find
");if(r.length==1)return Yr(qs(r[0],a),a);var n=A0();return r.forEach(function(t,s){F0(n,qs(t,a),"Sheet"+(s+1))}),n}function Nx(e,a,r){var n=[];return n.join("")+""}function Px(e,a){var r=a||{},n=r.header!=null?r.header:Ox,t=r.footer!=null?r.footer:Rx,s=[n],i=ka(e["!ref"]);r.dense=Array.isArray(e),s.push(Nx(e,i,r));for(var c=i.s.r;c<=i.e.r;++c)s.push(Dx(e,i,c,r));return s.push("
"+t),s.join("")}function Qs(e,a,r){var n=r||{},t=0,s=0;if(n.origin!=null)if(typeof n.origin=="number")t=n.origin;else{var i=typeof n.origin=="string"?nr(n.origin):n.origin;t=i.r,s=i.c}var c=a.getElementsByTagName("tr"),f=Math.min(n.sheetRows||1e7,c.length),o={s:{r:0,c:0},e:{r:t,c:s}};if(e["!ref"]){var l=ka(e["!ref"]);o.s.r=Math.min(o.s.r,l.s.r),o.s.c=Math.min(o.s.c,l.s.c),o.e.r=Math.max(o.e.r,l.e.r),o.e.c=Math.max(o.e.c,l.e.c),t==-1&&(o.e.r=t=l.e.r+1)}var h=[],x=0,d=e["!rows"]||(e["!rows"]=[]),v=0,u=0,g=0,S=0,y=0,_=0;for(e["!cols"]||(e["!cols"]=[]);v1||_>1)&&h.push({s:{r:u+t,c:S+s},e:{r:u+t+(y||1)-1,c:S+s+(_||1)-1}});var z={t:"s",v:A},G=I.getAttribute("data-t")||I.getAttribute("t")||"";A!=null&&(A.length==0?z.t=G||"z":n.raw||A.trim().length==0||G=="s"||(A==="TRUE"?z={t:"b",v:!0}:A==="FALSE"?z={t:"b",v:!1}:isNaN(kr(A))?isNaN(Ea(A).getDate())||(z={t:"d",v:Ve(A)},n.cellDates||(z={t:"n",v:tr(z.v)}),z.z=n.dateNF||de[14]):z={t:"n",v:kr(A)})),z.z===void 0&&W!=null&&(z.z=W);var P="",J=I.getElementsByTagName("A");if(J&&J.length)for(var fe=0;fe=f&&(e["!fullref"]=_e((o.e.r=c.length-v+u-1+t,o))),e}function ei(e,a){var r=a||{},n=r.dense?[]:{};return Qs(n,e,a)}function Lx(e,a){return Yr(ei(e,a),a)}function ri(e){var a="",r=Mx(e);return r&&(a=r(e).getPropertyValue("display")),a||(a=e.style&&e.style.display),a==="none"}function Mx(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}function Bx(e){var a=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(//g," ").replace(//g,function(n,t){return Array(parseInt(t,10)+1).join(" ")}).replace(/]*\/>/g," ").replace(//g,` `),r=Ee(a.replace(/<[^>]*>/g,""));return[r]}var ai={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"']};function ti(e,a){var r=a||{},n=Vt(e),t=[],s,i,c={name:""},f="",o=0,l,h,x={},d=[],v=r.dense?[]:{},u,g,S={value:""},y="",_=0,N=[],b=-1,I=-1,A={s:{r:1e6,c:1e7},e:{r:0,c:0}},W=0,D={},z=[],G={},P=0,J=0,fe=[],re=1,ce=1,ie=[],Fe={Names:[]},V={},le=["",""],he=[],F={},U="",R=0,O=!1,K=!1,ee=0;for(Pa.lastIndex=0,n=n.replace(//mg,"").replace(//gm,"");u=Pa.exec(n);)switch(u[3]=u[3].replace(/_.*$/,"")){case"table":case"工作表":u[1]==="/"?(A.e.c>=A.s.c&&A.e.r>=A.s.r?v["!ref"]=_e(A):v["!ref"]="A1:A1",r.sheetRows>0&&r.sheetRows<=A.e.r&&(v["!fullref"]=v["!ref"],A.e.r=r.sheetRows-1,v["!ref"]=_e(A)),z.length&&(v["!merges"]=z),fe.length&&(v["!rows"]=fe),l.name=l.名称||l.name,typeof JSON<"u"&&JSON.stringify(l),d.push(l.name),x[l.name]=v,K=!1):u[0].charAt(u[0].length-2)!=="/"&&(l=oe(u[0],!1),b=I=-1,A.s.r=A.s.c=1e7,A.e.r=A.e.c=0,v=r.dense?[]:{},z=[],fe=[],K=!0);break;case"table-row-group":u[1]==="/"?--W:++W;break;case"table-row":case"行":if(u[1]==="/"){b+=re,re=1;break}if(h=oe(u[0],!1),h.行号?b=h.行号-1:b==-1&&(b=0),re=+h["number-rows-repeated"]||1,re<10)for(ee=0;ee0&&(fe[b+ee]={level:W});I=-1;break;case"covered-table-cell":u[1]!=="/"&&++I,r.sheetStubs&&(r.dense?(v[b]||(v[b]=[]),v[b][I]={t:"z"}):v[ue({r:b,c:I})]={t:"z"}),y="",N=[];break;case"table-cell":case"数据":if(u[0].charAt(u[0].length-2)==="/")++I,S=oe(u[0],!1),ce=parseInt(S["number-columns-repeated"]||"1",10),g={t:"z",v:null},S.formula&&r.cellFormula!=!1&&(g.f=Hs(Ee(S.formula))),(S.数据类型||S["value-type"])=="string"&&(g.t="s",g.v=Ee(S["string-value"]||""),r.dense?(v[b]||(v[b]=[]),v[b][I]=g):v[ue({r:b,c:I})]=g),I+=ce-1;else if(u[1]!=="/"){++I,y="",_=0,N=[],ce=1;var ne=re?b+re-1:b;if(I>A.e.c&&(A.e.c=I),IA.e.r&&(A.e.r=ne),S=oe(u[0],!1),he=[],F={},g={t:S.数据类型||S["value-type"],v:null},r.cellFormula)if(S.formula&&(S.formula=Ee(S.formula)),S["number-matrix-columns-spanned"]&&S["number-matrix-rows-spanned"]&&(P=parseInt(S["number-matrix-rows-spanned"],10)||0,J=parseInt(S["number-matrix-columns-spanned"],10)||0,G={s:{r:b,c:I},e:{r:b+P-1,c:I+J-1}},g.F=_e(G),ie.push([G,g.F])),S.formula)g.f=Hs(S.formula);else for(ee=0;ee=ie[ee][0].s.r&&b<=ie[ee][0].e.r&&I>=ie[ee][0].s.c&&I<=ie[ee][0].e.c&&(g.F=ie[ee][1]);switch((S["number-columns-spanned"]||S["number-rows-spanned"])&&(P=parseInt(S["number-rows-spanned"],10)||0,J=parseInt(S["number-columns-spanned"],10)||0,G={s:{r:b,c:I},e:{r:b+P-1,c:I+J-1}},z.push(G)),S["number-columns-repeated"]&&(ce=parseInt(S["number-columns-repeated"],10)),g.t){case"boolean":g.t="b",g.v=Se(S["boolean-value"]);break;case"float":g.t="n",g.v=parseFloat(S.value);break;case"percentage":g.t="n",g.v=parseFloat(S.value);break;case"currency":g.t="n",g.v=parseFloat(S.value);break;case"date":g.t="d",g.v=Ve(S["date-value"]),r.cellDates||(g.t="n",g.v=tr(g.v)),g.z="m/d/yy";break;case"time":g.t="n",g.v=ji(S["time-value"])/86400,r.cellDates&&(g.t="d",g.v=ut(g.v)),g.z="HH:MM:SS";break;case"number":g.t="n",g.v=parseFloat(S.数据数值);break;default:if(g.t==="string"||g.t==="text"||!g.t)g.t="s",S["string-value"]!=null&&(y=Ee(S["string-value"]),N=[]);else throw new Error("Unsupported value type "+g.t)}}else{if(O=!1,g.t==="s"&&(g.v=y||"",N.length&&(g.R=N),O=_==0),V.Target&&(g.l=V),he.length>0&&(g.c=he,he=[]),y&&r.cellText!==!1&&(g.w=y),O&&(g.t="z",delete g.v),(!O||r.sheetStubs)&&!(r.sheetRows&&r.sheetRows<=b))for(var q=0;q0;)v[b+q][I+ce]=Xe(g);else for(v[ue({r:b+q,c:I})]=g;--ce>0;)v[ue({r:b+q,c:I+ce})]=Xe(g);A.e.c<=I&&(A.e.c=I)}ce=parseInt(S["number-columns-repeated"]||"1",10),I+=ce-1,ce=0,g={},y="",N=[]}V={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(u[1]==="/"){if((s=t.pop())[0]!==u[3])throw"Bad state: "+s}else u[0].charAt(u[0].length-2)!=="/"&&t.push([u[3],!0]);break;case"annotation":if(u[1]==="/"){if((s=t.pop())[0]!==u[3])throw"Bad state: "+s;F.t=y,N.length&&(F.R=N),F.a=U,he.push(F)}else u[0].charAt(u[0].length-2)!=="/"&&t.push([u[3],!1]);U="",R=0,y="",_=0,N=[];break;case"creator":u[1]==="/"?U=n.slice(R,u.index):R=u.index+u[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":case"chart":if(u[1]==="/"){if((s=t.pop())[0]!==u[3])throw"Bad state: "+s}else u[0].charAt(u[0].length-2)!=="/"&&t.push([u[3],!1]);y="",_=0,N=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(u[1]==="/"){if(D[c.name]=f,(s=t.pop())[0]!==u[3])throw"Bad state: "+s}else u[0].charAt(u[0].length-2)!=="/"&&(f="",c=oe(u[0],!1),t.push([u[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(t[t.length-1][0]){case"time-style":case"date-style":i=oe(u[0],!1),f+=ai[u[3]][i.style==="long"?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(t[t.length-1][0]){case"time-style":case"date-style":i=oe(u[0],!1),f+=ai[u[3]][i.style==="long"?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(u[0].slice(-2)==="/>")break;if(u[1]==="/")switch(t[t.length-1][0]){case"number-style":case"date-style":case"time-style":f+=n.slice(o,u.index);break}else o=u.index+u[0].length;break;case"named-range":i=oe(u[0],!1),le=o0(i["cell-range-address"]);var j={Name:i.name,Ref:le[0]+"!"+le[1]};K&&(j.Sheet=d.length),Fe.Names.push(j);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"文本串":if(["master-styles"].indexOf(t[t.length-1][0])>-1)break;if(u[1]==="/"&&(!S||!S["string-value"])){var Te=Bx(n.slice(_,u.index));y=(y.length>0?y+` `:"")+Te[0]}else oe(u[0],!1),_=u.index+u[0].length;break;case"s":break;case"database-range":if(u[1]==="/")break;try{le=o0(oe(u[0])["target-range-address"]),x[le[0]]["!autofilter"]={ref:le[1]}}catch{}break;case"date":break;case"object":break;case"title":case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if(u[1]!=="/"){if(V=oe(u[0],!1),!V.href)break;V.Target=Ee(V.href),delete V.href,V.Target.charAt(0)=="#"&&V.Target.indexOf(".")>-1?(le=o0(V.Target.slice(1)),V.Target="#"+le[0]+"!"+le[1]):V.Target.match(/^\.\.[\\\/]/)&&(V.Target=V.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(u[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(r.WTF)throw new Error(u)}}var C={Sheets:x,SheetNames:d,Workbook:Fe};return r.bookSheets&&delete C.Sheets,C}function ni(e,a){a=a||{},dr(e,"META-INF/manifest.xml")&&Zc(Le(e,"META-INF/manifest.xml"),a);var r=or(e,"content.xml");if(!r)throw new Error("Missing content.xml in ODS / UOF file");var n=ti(Ae(r),a);return dr(e,"meta.xml")&&(n.Props=Kn(Le(e,"meta.xml"))),n}function si(e,a){return ti(e,a)}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function d0(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function v0(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):Ae(aa(e))}function p0(e){var a=e.reduce(function(t,s){return t+s.length},0),r=new Uint8Array(a),n=0;return e.forEach(function(t){r.set(t,n),n+=t.length}),r}function ii(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>>24}function bx(e,a){for(var r=(e[a+15]&127)<<7|e[a+14]>>1,n=e[a+14]&1,t=a+13;t>=a;--t)n=n*256+e[t];return(e[a+15]&128?-n:n)*Math.pow(10,r-6176)}function Qa(e,a){var r=a?a[0]:0,n=e[r]&127;e:if(e[r++]>=128&&(n|=(e[r]&127)<<7,e[r++]<128||(n|=(e[r]&127)<<14,e[r++]<128)||(n|=(e[r]&127)<<21,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return a&&(a[0]=r),n}function He(e){var a=0,r=e[a]&127;e:if(e[a++]>=128){if(r|=(e[a]&127)<<7,e[a++]<128||(r|=(e[a]&127)<<14,e[a++]<128)||(r|=(e[a]&127)<<21,e[a++]<128))break e;r|=(e[a]&127)<<28}return r}function Qe(e){for(var a=[],r=[0];r[0]=128;);c=e.slice(f,r[0])}break;case 5:i=4,c=e.slice(r[0],r[0]+i),r[0]+=i;break;case 1:i=8,c=e.slice(r[0],r[0]+i),r[0]+=i;break;case 2:i=Qa(e,r),c=e.slice(r[0],r[0]+i),r[0]+=i;break;case 3:case 4:default:throw new Error("PB Type ".concat(s," for Field ").concat(t," at offset ").concat(n))}var o={data:c,type:s};a[t]==null?a[t]=[o]:a[t].push(o)}return a}function g0(e,a){return(e==null?void 0:e.map(function(r){return a(r.data)}))||[]}function Ux(e){for(var a,r=[],n=[0];n[0]>>0>0),r.push(i)}return r}function Hx(e,a){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=Qa(a,r),t=[];r[0]>2;if(i<60)++i;else{var c=i-59;i=a[r[0]],c>1&&(i|=a[r[0]+1]<<8),c>2&&(i|=a[r[0]+2]<<16),c>3&&(i|=a[r[0]+3]<<24),i>>>=0,i++,r[0]+=c}t.push(a.slice(r[0],r[0]+i)),r[0]+=i;continue}else{var f=0,o=0;if(s==1?(o=(a[r[0]]>>2&7)+4,f=(a[r[0]++]&224)<<3,f|=a[r[0]++]):(o=(a[r[0]++]>>2)+1,s==2?(f=a[r[0]]|a[r[0]+1]<<8,r[0]+=2):(f=(a[r[0]]|a[r[0]+1]<<8|a[r[0]+2]<<16|a[r[0]+3]<<24)>>>0,r[0]+=4)),t=[p0(t)],f==0)throw new Error("Invalid offset 0");if(f>t[0].length)throw new Error("Invalid offset beyond length");if(o>=f)for(t.push(t[0].slice(-f)),o-=f;o>=t[t.length-1].length;)t.push(t[t.length-1]),o-=t[t.length-1].length;t.push(t[0].slice(-f,-f+o))}}var l=p0(t);if(l.length!=n)throw new Error("Unexpected length: ".concat(l.length," != ").concat(n));return l}function Wx(e){for(var a=[],r=0;r1?12:8)+ii(s&(n>1?3470:398))*4,c=-1,f=-1,o=NaN,l=new Date(2001,0,1);s&512&&(c=t.getUint32(i,!0),i+=4),i+=ii(s&(n>1?12288:4096))*4,s&16&&(f=t.getUint32(i,!0),i+=4),s&32&&(o=t.getFloat64(i,!0),i+=8),s&64&&(l.setTime(l.getTime()+t.getFloat64(i,!0)*1e3),i+=8);var h;switch(e[2]){case 0:break;case 2:h={t:"n",v:o};break;case 3:h={t:"s",v:a[f]};break;case 5:h={t:"d",v:l};break;case 6:h={t:"b",v:o>0};break;case 7:h={t:"n",v:o/86400};break;case 8:h={t:"e",v:0};break;case 9:if(c>-1)h={t:"s",v:r[c]};else if(f>-1)h={t:"s",v:a[f]};else if(!isNaN(o))h={t:"n",v:o};else throw new Error("Unsupported cell type ".concat(e.slice(0,4)));break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return h}function Gx(e,a,r){var n=d0(e),t=n.getUint32(8,!0),s=12,i=-1,c=-1,f=NaN,o=NaN,l=new Date(2001,0,1);t&1&&(f=bx(e,s),s+=16),t&2&&(o=n.getFloat64(s,!0),s+=8),t&4&&(l.setTime(l.getTime()+n.getFloat64(s,!0)*1e3),s+=8),t&8&&(c=n.getUint32(s,!0),s+=4),t&16&&(i=n.getUint32(s,!0),s+=4);var h;switch(e[1]){case 0:break;case 2:h={t:"n",v:f};break;case 3:h={t:"s",v:a[c]};break;case 5:h={t:"d",v:l};break;case 6:h={t:"b",v:o>0};break;case 7:h={t:"n",v:o/86400};break;case 8:h={t:"e",v:0};break;case 9:if(i>-1)h={t:"s",v:r[i]};else throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(t&31," : ").concat(e.slice(0,4)));break;case 10:h={t:"n",v:f};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(t&31," : ").concat(e.slice(0,4)))}return h}function Xx(e,a,r){switch(e[0]){case 0:case 1:case 2:case 3:return Vx(e,a,r,e[0]);case 5:return Gx(e,a,r);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function Zr(e){var a=Qe(e);return Qa(a[1][0].data)}function ci(e,a){var r=Qe(a.data),n=He(r[1][0].data),t=r[3],s=[];return(t||[]).forEach(function(i){var c=Qe(i.data),f=He(c[1][0].data)>>>0;switch(n){case 1:s[f]=v0(c[3][0].data);break;case 8:{var o=e[Zr(c[9][0].data)][0],l=Qe(o.data),h=e[Zr(l[1][0].data)][0],x=He(h.meta[1][0].data);if(x!=2001)throw new Error("2000 unexpected reference to ".concat(x));var d=Qe(h.data);s[f]=d[3].map(function(v){return v0(v.data)}).join("")}break}}),s}function $x(e,a){var r,n,t,s,i,c,f,o,l,h,x,d,v,u,g=Qe(e),S=He(g[1][0].data)>>>0,y=He(g[2][0].data)>>>0,_=((n=(r=g[8])==null?void 0:r[0])==null?void 0:n.data)&&He(g[8][0].data)>0||!1,N,b;if((s=(t=g[7])==null?void 0:t[0])!=null&&s.data&&a!=0)N=(c=(i=g[7])==null?void 0:i[0])==null?void 0:c.data,b=(o=(f=g[6])==null?void 0:f[0])==null?void 0:o.data;else if((h=(l=g[4])==null?void 0:l[0])!=null&&h.data&&a!=1)N=(d=(x=g[4])==null?void 0:x[0])==null?void 0:d.data,b=(u=(v=g[3])==null?void 0:v[0])==null?void 0:u.data;else throw"NUMBERS Tile missing ".concat(a," cell storage");for(var I=_?4:1,A=d0(N),W=[],D=0;D=1&&(G[W[W.length-1][0]]=b.subarray(W[W.length-1][1]*I)),{R:S,cells:G}}function zx(e,a){var r,n=Qe(a.data),t=(r=n==null?void 0:n[7])!=null&&r[0]?He(n[7][0].data)>>>0>0?1:0:-1,s=g0(n[5],function(i){return $x(i,t)});return{nrows:He(n[4][0].data)>>>0,data:s.reduce(function(i,c){return i[c.R]||(i[c.R]=[]),c.cells.forEach(function(f,o){if(i[c.R][o])throw new Error("Duplicate cell r=".concat(c.R," c=").concat(o));i[c.R][o]=f}),i},[])}}function Kx(e,a,r){var n,t=Qe(a.data),s={s:{r:0,c:0},e:{r:0,c:0}};if(s.e.r=(He(t[6][0].data)>>>0)-1,s.e.r<0)throw new Error("Invalid row varint ".concat(t[6][0].data));if(s.e.c=(He(t[7][0].data)>>>0)-1,s.e.c<0)throw new Error("Invalid col varint ".concat(t[7][0].data));r["!ref"]=_e(s);var i=Qe(t[4][0].data),c=ci(e,e[Zr(i[4][0].data)][0]),f=(n=i[17])!=null&&n[0]?ci(e,e[Zr(i[17][0].data)][0]):[],o=Qe(i[3][0].data),l=0;o[1].forEach(function(h){var x=Qe(h.data),d=e[Zr(x[2][0].data)][0],v=He(d.meta[1][0].data);if(v!=6002)throw new Error("6001 unexpected reference to ".concat(v));var u=zx(e,d);u.data.forEach(function(g,S){g.forEach(function(y,_){var N=ue({r:l+S,c:_}),b=Xx(y,c,f);b&&(r[N]=b)})}),l+=u.nrows})}function Yx(e,a){var r=Qe(a.data),n={"!ref":"A1"},t=e[Zr(r[2][0].data)],s=He(t[0].meta[1][0].data);if(s!=6001)throw new Error("6000 unexpected reference to ".concat(s));return Kx(e,t[0],n),n}function jx(e,a){var r,n=Qe(a.data),t={name:(r=n[1])!=null&&r[0]?v0(n[1][0].data):"",sheets:[]},s=g0(n[2],Zr);return s.forEach(function(i){e[i].forEach(function(c){var f=He(c.meta[1][0].data);f==6e3&&t.sheets.push(Yx(e,c))})}),t}function Jx(e,a){var r=A0(),n=Qe(a.data),t=g0(n[1],Zr);if(t.forEach(function(s){e[s].forEach(function(i){var c=He(i.meta[1][0].data);if(c==2){var f=jx(e,i);f.sheets.forEach(function(o,l){F0(r,o,l==0?f.name:f.name+"_"+l,!0)})}})}),r.SheetNames.length==0)throw new Error("Empty NUMBERS file");return r}function m0(e){var a,r,n,t,s={},i=[];if(e.FullPaths.forEach(function(f){if(f.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),e.FileIndex.forEach(function(f){if(f.name.match(/\.iwa$/)){var o;try{o=Wx(f.content)}catch(h){return console.log("?? "+f.content.length+" "+(h.message||h))}var l;try{l=Ux(o)}catch(h){return console.log("## "+(h.message||h))}l.forEach(function(h){s[h.id]=h.messages,i.push(h.id)})}}),!i.length)throw new Error("File has no messages");var c=((t=(n=(r=(a=s==null?void 0:s[1])==null?void 0:a[0])==null?void 0:r.meta)==null?void 0:n[1])==null?void 0:t[0].data)&&He(s[1][0].meta[1][0].data)==1&&s[1][0];if(c||i.forEach(function(f){s[f].forEach(function(o){var l=He(o.meta[1][0].data)>>>0;if(l==1)if(!c)c=o;else throw new Error("Document has multiple roots")})}),!c)throw new Error("Cannot find Document root");return Jx(s,c)}function Zx(e){return function(r){for(var n=0;n!=e.length;++n){var t=e[n];r[t[0]]===void 0&&(r[t[0]]=t[1]),t[2]==="n"&&(r[t[0]]=Number(r[t[0]]))}}}function _0(e){Zx([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function qx(e){return Aa.WS.indexOf(e)>-1?"sheet":e==Aa.CS?"chart":e==Aa.DS?"dialog":e==Aa.MS?"macro":e&&e.length?e:"sheet"}function Qx(e,a){if(!e)return 0;try{e=a.map(function(n){return n.id||(n.id=n.strRelID),[n.name,e["!id"][n.id].Target,qx(e["!id"][n.id].Type)]})}catch{return null}return!e||e.length===0?null:e}function ed(e,a,r,n,t,s,i,c,f,o,l,h){try{s[n]=Ua(or(e,r,!0),a);var x=Le(e,a),d;switch(c){case"sheet":d=ix(x,a,t,f,s[n],o,l,h);break;case"chart":if(d=cx(x,a,t,f,s[n],o,l,h),!d||!d["!drawel"])break;var v=Ra(d["!drawel"].Target,a),u=Qt(v),g=s1(or(e,v,!0),Ua(or(e,u,!0),v)),S=Ra(g,v),y=Qt(S);d=Gu(or(e,S,!0),S,f,Ua(or(e,y,!0),S),o,d);break;case"macro":d=fx(x,a,t,f,s[n],o,l,h);break;case"dialog":d=ox(x,a,t,f,s[n],o,l,h);break;default:throw new Error("Unrecognized sheet type "+c)}i[n]=d;var _=[];s&&s[n]&&Sr(s[n]).forEach(function(N){var b="";if(s[n][N].Type==Aa.CMNT){b=Ra(s[n][N].Target,a);var I=xx(Le(e,b,!0),b,f);if(!I||!I.length)return;Ss(d,I,!1)}s[n][N].Type==Aa.TCMNT&&(b=Ra(s[n][N].Target,a),_=_.concat(c1(Le(e,b,!0),f)))}),_&&_.length&&Ss(d,_,!0,f.people||[])}catch(N){if(f.WTF)throw N}}function pr(e){return e.charAt(0)=="/"?e.slice(1):e}function rd(e,a){if(q0(),a=a||{},_0(a),dr(e,"META-INF/manifest.xml")||dr(e,"objectdata.xml"))return ni(e,a);if(dr(e,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof m0<"u"){if(e.FileIndex)return m0(e);var r=me.utils.cfb_new();return fn(e).forEach(function(fe){ec(r,fe,cn(e,fe))}),m0(r)}throw new Error("Unsupported NUMBERS file")}if(!dr(e,"[Content_Types].xml"))throw dr(e,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):dr(e,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var n=fn(e),t=jc(or(e,"[Content_Types].xml")),s=!1,i,c;if(t.workbooks.length===0&&(c="xl/workbook.xml",Le(e,c,!0)&&t.workbooks.push(c)),t.workbooks.length===0){if(c="xl/workbook.bin",!Le(e,c,!0))throw new Error("Could not find workbook");t.workbooks.push(c),s=!0}t.workbooks[0].slice(-3)=="bin"&&(s=!0);var f={},o={};if(!a.bookSheets&&!a.bookProps){if(Ja=[],t.sst)try{Ja=ux(Le(e,pr(t.sst)),t.sst,a)}catch(fe){if(a.WTF)throw fe}a.cellStyles&&t.themes.length&&(f=hx(or(e,t.themes[0].replace(/^\//,""),!0)||"",t.themes[0],a)),t.style&&(o=lx(Le(e,pr(t.style)),t.style,f,a))}t.links.map(function(fe){try{var re=Ua(or(e,Qt(pr(fe))),fe);return vx(Le(e,pr(fe)),re,fe,a)}catch{}});var l=sx(Le(e,pr(t.workbooks[0])),t.workbooks[0],a),h={},x="";t.coreprops.length&&(x=Le(e,pr(t.coreprops[0]),!0),x&&(h=Kn(x)),t.extprops.length!==0&&(x=Le(e,pr(t.extprops[0]),!0),x&&ef(x,h,a)));var d={};(!a.bookSheets||a.bookProps)&&t.custprops.length!==0&&(x=or(e,pr(t.custprops[0]),!0),x&&(d=af(x,a)));var v={};if((a.bookSheets||a.bookProps)&&(l.Sheets?i=l.Sheets.map(function(re){return re.name}):h.Worksheets&&h.SheetNames.length>0&&(i=h.SheetNames),a.bookProps&&(v.Props=h,v.Custprops=d),a.bookSheets&&typeof i<"u"&&(v.SheetNames=i),a.bookSheets?v.SheetNames:a.bookProps))return v;i={};var u={};a.bookDeps&&t.calcchain&&(u=dx(Le(e,pr(t.calcchain)),t.calcchain));var g=0,S={},y,_;{var N=l.Sheets;h.Worksheets=N.length,h.SheetNames=[];for(var b=0;b!=N.length;++b)h.SheetNames[b]=N[b].name}var I=s?"bin":"xml",A=t.workbooks[0].lastIndexOf("/"),W=(t.workbooks[0].slice(0,A+1)+"_rels/"+t.workbooks[0].slice(A+1)+".rels").replace(/^\//,"");dr(e,W)||(W="xl/_rels/workbook."+I+".rels");var D=Ua(or(e,W,!0),W.replace(/_rels.*/,"s5s"));(t.metadata||[]).length>=1&&(a.xlmeta=px(Le(e,pr(t.metadata[0])),t.metadata[0],a)),(t.people||[]).length>=1&&(a.people=f1(Le(e,pr(t.people[0])),a)),D&&(D=Qx(D,l.Sheets));var z=Le(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(g=0;g!=h.Worksheets;++g){var G="sheet";if(D&&D[g]?(y="xl/"+D[g][1].replace(/[\/]?xl\//,""),dr(e,y)||(y=D[g][1]),dr(e,y)||(y=W.replace(/_rels\/.*$/,"")+D[g][1]),G=D[g][2]):(y="xl/worksheets/sheet"+(g+1-z)+"."+I,y=y.replace(/sheet0\./,"sheet.")),_=y.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),a&&a.sheets!=null)switch(typeof a.sheets){case"number":if(g!=a.sheets)continue e;break;case"string":if(h.SheetNames[g].toLowerCase()!=a.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(a.sheets)){for(var P=!1,J=0;J!=a.sheets.length;++J)typeof a.sheets[J]=="number"&&a.sheets[J]==g&&(P=1),typeof a.sheets[J]=="string"&&a.sheets[J].toLowerCase()==h.SheetNames[g].toLowerCase()&&(P=1);if(!P)continue e}}ed(e,y,_,h.SheetNames[g],g,S,i,G,a,l,f,o)}return v={Directory:t,Workbook:l,Props:h,Custprops:d,Deps:u,Sheets:i,SheetNames:h.SheetNames,Strings:Ja,Styles:o,Themes:f,SSF:Xe(de)},a&&a.bookFiles&&(e.files?(v.keys=n,v.files=e.files):(v.keys=[],v.files={},e.FullPaths.forEach(function(fe,re){fe=fe.replace(/^Root Entry[\/]/,""),v.keys.push(fe),v.files[fe]=e.FileIndex[re]}))),a&&a.bookVBA&&(t.vba.length>0?v.vbaraw=Le(e,pr(t.vba[0]),!0):t.defaults&&t.defaults.bin===u1&&(v.vbaraw=Le(e,"xl/vbaProject.bin",!0))),v}function ad(e,a){var r=a||{},n="Workbook",t=me.find(e,n);try{if(n="/!DataSpaces/Version",t=me.find(e,n),!t||!t.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(Yo(t.content),n="/!DataSpaces/DataSpaceMap",t=me.find(e,n),!t||!t.content)throw new Error("ECMA-376 Encrypted file missing "+n);var s=Jo(t.content);if(s.length!==1||s[0].comps.length!==1||s[0].comps[0].t!==0||s[0].name!=="StrongEncryptionDataSpace"||s[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",t=me.find(e,n),!t||!t.content)throw new Error("ECMA-376 Encrypted file missing "+n);var i=Zo(t.content);if(i.length!=1||i[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",t=me.find(e,n),!t||!t.content)throw new Error("ECMA-376 Encrypted file missing "+n);Qo(t.content)}catch{}if(n="/EncryptionInfo",t=me.find(e,n),!t||!t.content)throw new Error("ECMA-376 Encrypted file missing "+n);var c=el(t.content);if(n="/EncryptedPackage",t=me.find(e,n),!t||!t.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(c[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(c[1],t.content,r.password||"",r);if(c[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(c[1],t.content,r.password||"",r);throw new Error("File is password-protected")}function E0(e,a){var r="";switch((a||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=fr(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(a&&a.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function td(e,a){return me.find(e,"EncryptedPackage")?ad(e,a):Zs(e,a)}function nd(e,a){var r,n=e,t=a||{};return t.type||(t.type=ge&&Buffer.isBuffer(e)?"buffer":"base64"),r=on(n,t),rd(r,t)}function fi(e,a){var r=0;e:for(;r=2&&t[3]===0||t[2]===0&&(t[3]===8||t[3]===9)))return Xa.to_workbook(n,r);break;case 3:case 131:case 139:case 140:return gs.to_workbook(n,r);case 123:if(t[1]===92&&t[2]===114&&t[3]===116)return ul.to_workbook(n,r);break;case 10:case 13:case 32:return sd(n,r);case 137:if(t[1]===80&&t[2]===78&&t[3]===71)throw new Error("PNG Image File is not a spreadsheet");break}return Ro.indexOf(t[0])>-1&&t[2]<=12&&t[3]<=31?gs.to_workbook(n,r):T0(e,n,r,s)}function fd(e,a,r,n,t,s,i,c){var f=ze(r),o=c.defval,l=c.raw||!Object.prototype.hasOwnProperty.call(c,"raw"),h=!0,x=t===1?[]:{};if(t!==1)if(Object.defineProperty)try{Object.defineProperty(x,"__rowNum__",{value:r,enumerable:!1})}catch{x.__rowNum__=r}else x.__rowNum__=r;if(!i||e[r])for(var d=a.s.c;d<=a.e.c;++d){var v=i?e[r][d]:e[n[d]+f];if(v===void 0||v.t===void 0){if(o===void 0)continue;s[d]!=null&&(x[s[d]]=o);continue}var u=v.v;switch(v.t){case"z":if(u==null)break;continue;case"e":u=u==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+v.t)}if(s[d]!=null){if(u==null)if(v.t=="e"&&u===null)x[s[d]]=null;else if(o!==void 0)x[s[d]]=o;else if(l&&u===null)x[s[d]]=null;else continue;else x[s[d]]=l&&(v.t!=="n"||v.t==="n"&&c.rawNumbers!==!1)?u:Br(v,u,c);u!=null&&(h=!1)}}return{row:x,isempty:h}}function w0(e,a){if(e==null||e["!ref"]==null)return[];var r={t:"n",v:0},n=0,t=1,s=[],i=0,c="",f={s:{r:0,c:0},e:{r:0,c:0}},o=a||{},l=o.range!=null?o.range:e["!ref"];switch(o.header===1?n=1:o.header==="A"?n=2:Array.isArray(o.header)?n=3:o.header==null&&(n=0),typeof l){case"string":f=Oe(l);break;case"number":f=Oe(e["!ref"]),f.s.r=l;break;default:f=l}n>0&&(t=0);var h=ze(f.s.r),x=[],d=[],v=0,u=0,g=Array.isArray(e),S=f.s.r,y=0,_={};g&&!e[S]&&(e[S]=[]);var N=o.skipHidden&&e["!cols"]||[],b=o.skipHidden&&e["!rows"]||[];for(y=f.s.c;y<=f.e.c;++y)if(!(N[y]||{}).hidden)switch(x[y]=Ue(y),r=g?e[S][y]:e[x[y]+h],n){case 1:s[y]=y-f.s.c;break;case 2:s[y]=x[y];break;case 3:s[y]=o.header[y-f.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),c=i=Br(r,null,o),u=_[i]||0,!u)_[i]=1;else{do c=i+"_"+u++;while(_[c]);_[i]=u,_[c]=1}s[y]=c}for(S=f.s.r+t;S<=f.e.r;++S)if(!(b[S]||{}).hidden){var I=fd(e,f,S,x,n,s,g,o);(I.isempty===!1||(n===1?o.blankrows!==!1:o.blankrows))&&(d[v++]=I.row)}return d.length=v,d}var oi=/"/g;function od(e,a,r,n,t,s,i,c){for(var f=!0,o=[],l="",h=ze(r),x=a.s.c;x<=a.e.c;++x)if(n[x]){var d=c.dense?(e[r]||[])[x]:e[n[x]+h];if(d==null)l="";else if(d.v!=null){f=!1,l=""+(c.rawNumbers&&d.t=="n"?d.v:Br(d,null,c));for(var v=0,u=0;v!==l.length;++v)if((u=l.charCodeAt(v))===t||u===s||u===34||c.forceQuotes){l='"'+l.replace(oi,'""')+'"';break}l=="ID"&&(l='"ID"')}else d.f!=null&&!d.F?(f=!1,l="="+d.f,l.indexOf(",")>=0&&(l='"'+l.replace(oi,'""')+'"')):l="";o.push(l)}return c.blankrows===!1&&f?null:o.join(i)}function li(e,a){var r=[],n=a??{};if(e==null||e["!ref"]==null)return"";var t=Oe(e["!ref"]),s=n.FS!==void 0?n.FS:",",i=s.charCodeAt(0),c=n.RS!==void 0?n.RS:` `,f=c.charCodeAt(0),o=new RegExp((s=="|"?"\\|":s)+"+$"),l="",h=[];n.dense=Array.isArray(e);for(var x=n.skipHidden&&e["!cols"]||[],d=n.skipHidden&&e["!rows"]||[],v=t.s.c;v<=t.e.c;++v)(x[v]||{}).hidden||(h[v]=Ue(v));for(var u=0,g=t.s.r;g<=t.e.r;++g)(d[g]||{}).hidden||(l=od(e,t,g,h,i,f,s,n),l!=null&&(n.strip&&(l=l.replace(o,"")),(l||n.blankrows!==!1)&&r.push((u++?c:"")+l)));return delete n.dense,r.join("")}function ld(e,a){a||(a={}),a.FS=" ",a.RS=` `;var r=li(e,a);return r}function hd(e){var a="",r,n="";if(e==null||e["!ref"]==null)return[];var t=Oe(e["!ref"]),s="",i=[],c,f=[],o=Array.isArray(e);for(c=t.s.c;c<=t.e.c;++c)i[c]=Ue(c);for(var l=t.s.r;l<=t.e.r;++l)for(s=ze(l),c=t.s.c;c<=t.e.c;++c)if(a=i[c]+s,r=o?(e[l]||[])[c]:e[a],n="",r!==void 0){if(r.F!=null){if(a=r.F,!r.f)continue;n=r.f,a.indexOf(":")==-1&&(a=a+":"+a)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}f[f.length]=a+"="+n}return f}function hi(e,a,r){var n=r||{},t=+!n.skipHeader,s=e||{},i=0,c=0;if(s&&n.origin!=null)if(typeof n.origin=="number")i=n.origin;else{var f=typeof n.origin=="string"?nr(n.origin):n.origin;i=f.r,c=f.c}var o,l={s:{c:0,r:0},e:{c,r:i+a.length-1+t}};if(s["!ref"]){var h=Oe(s["!ref"]);l.e.c=Math.max(l.e.c,h.e.c),l.e.r=Math.max(l.e.r,h.e.r),i==-1&&(i=h.e.r+1,l.e.r=i+a.length-1+t)}else i==-1&&(i=0,l.e.r=a.length-1+t);var x=n.header||[],d=0;a.forEach(function(u,g){Sr(u).forEach(function(S){(d=x.indexOf(S))==-1&&(x[d=x.length]=S);var y=u[S],_="z",N="",b=ue({c:c+d,r:i+g+t});o=et(s,b),y&&typeof y=="object"&&!(y instanceof Date)?s[b]=y:(typeof y=="number"?_="n":typeof y=="boolean"?_="b":typeof y=="string"?_="s":y instanceof Date?(_="d",n.cellDates||(_="n",y=tr(y)),N=n.dateNF||de[14]):y===null&&n.nullError&&(_="e",y=0),o?(o.t=_,o.v=y,delete o.w,delete o.R,N&&(o.z=N)):s[b]=o={t:_,v:y},N&&(o.z=N))})}),l.e.c=Math.max(l.e.c,c+x.length-1);var v=ze(i);if(t)for(d=0;d=0&&e.SheetNames.length>a)return a;throw new Error("Cannot find sheet # "+a)}else if(typeof a=="string"){var r=e.SheetNames.indexOf(a);if(r>-1)return r;throw new Error("Cannot find sheet name |"+a+"|")}else throw new Error("Cannot find sheet |"+a+"|")}function A0(){return{SheetNames:[],Sheets:{}}}function F0(e,a,r,n){var t=1;if(!r)for(;t<=65535&&e.SheetNames.indexOf(r="Sheet"+t)!=-1;++t,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var s=r.match(/(^.*?)(\d+)$/);t=s&&+s[2]||0;var i=s&&s[1]||r;for(++t;t<=65535&&e.SheetNames.indexOf(r=i+t)!=-1;++t);}if(Zu(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=a,r}function dd(e,a,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=xd(e,a);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[n].Hidden=r}function vd(e,a){return e.z=a,e}function ui(e,a,r){return a?(e.l={Target:a},r&&(e.l.Tooltip=r)):delete e.l,e}function pd(e,a,r){return ui(e,"#"+a,r)}function gd(e,a,r){e.c||(e.c=[]),e.c.push({t:a,a:r||"SheetJS"})}function md(e,a,r,n){for(var t=typeof a!="string"?a:Oe(a),s=typeof a=="string"?a:_e(a),i=t.s.r;i<=t.e.r;++i)for(var c=t.s.c;c<=t.e.c;++c){var f=et(e,i,c);f.t="n",f.F=s,delete f.v,i==t.s.r&&c==t.s.c&&(f.f=r,n&&(f.D=!0))}return e}var xi={encode_col:Ue,encode_row:ze,encode_cell:ue,encode_range:_e,decode_col:Kt,decode_row:zt,split_cell:yc,decode_cell:nr,decode_range:ka,format_cell:Br,sheet_add_aoa:Un,sheet_add_json:hi,sheet_add_dom:Qs,aoa_to_sheet:wa,json_to_sheet:ud,table_to_sheet:ei,table_to_book:Lx,sheet_to_csv:li,sheet_to_txt:ld,sheet_to_json:w0,sheet_to_html:Px,sheet_to_formulae:hd,sheet_to_row_object_array:w0,sheet_get_cell:et,book_new:A0,book_append_sheet:F0,book_set_sheet_visibility:dd,cell_set_number_format:vd,cell_set_hyperlink:ui,cell_set_internal_link:pd,cell_add_comment:gd,sheet_set_array_formula:md,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const _d={rowHeight:20,colWidth:70},rt=class rt{constructor(a){ea(this,"_ws");ea(this,"_data");ea(this,"_merge");ea(this,"_rowHeights");ea(this,"_colWidths");ea(this,"range");this._ws=a;const{"!ref":r}=a;this.range=xi.decode_range(r||"A1")}static create(a){return new rt(a)}get ws(){return this._ws}get defaults(){return rt.defaults}get data(){return this._data??(this._data=this.getData())}get cell(){return{}}get merge(){return this._merge??(this._merge=this.getMerge())}get columns(){return[]}get rowHeights(){return this._rowHeights??(this._rowHeights=this.getRowHeights())}get colWidths(){return this._colWidths??(this._colWidths=this.getColWidths())}getData(){const a=this.ws;return a?xi.sheet_to_json(a,{header:1,defval:""}):[]}getMerge(){const a=this.ws,{"!merges":r=[]}=a;return r.map(n=>{const{r:t,c:s}=n.s,{r:i,c}=n.e;return{row:t,col:s,rowspan:i-t+1,colspan:c-s+1}})}getRowHeights(){var c;const{rowHeight:a}=this.defaults,r=this.ws,{"!rows":n=[]}=r,{s:{r:t},e:{r:s}}=this.range,i=[];if(n.length)for(let f=t;f<=s;f++){const o=(c=n[f])==null?void 0:c.hpx;o&&(i[f]=o)}return i.length?i:a}getColWidths(){var c;const{colWidth:a}=this.defaults,r=this.ws,{"!cols":n=[]}=r,{s:{c:t},e:{c:s}}=this.range,i=[];if(n.length)for(let f=t;f<=s;f++){const o=(c=n[f])==null?void 0:c.wpx;o&&(i[f]=o)}return i.length?i:a}toObject(){const{defaults:a,data:r,merge:n,rowHeights:t,colWidths:s}=this;return{defaults:a,data:r,merge:n,rowHeights:t,colWidths:s}}};ea(rt,"defaults",_d);let S0=rt;const Rt=self,da={workbook:null,sheets:[]};Rt.onmessage=async e=>{const{data:{type:a,payload:{sheet:r,workbook:n}}}=e;switch(a){case"parseWorkbook":Ed(n);break;case"parseSheet":Td(r);break}},Rt.onerror=e=>{console.error(e)};const Ed=e=>{da.workbook=k0(e,{type:"buffer"}),console.log(da.workbook),kd()},Td=e=>{var n;const a=da.workbook,r=(n=da.sheets[e])==null?void 0:n.name;if(a!=null&&a.Sheets&&r){const t=a.Sheets[r];if(t){const s=S0.create(t).toObject();Rt.postMessage({type:"parseSheet",payload:{sheetData:s}})}}},kd=()=>{const e=da.workbook;e!=null&&e.SheetNames&&(da.sheets=e.SheetNames.map((a,r)=>({id:r,name:a})),Rt.postMessage({type:"sheets",payload:{sheets:da.sheets}}))}})();