import{an as Yt,aw as yi,ap as Rn}from"./index-e497b666.js";const Nd=e=>Yt.post(yi+"/DeviceClassList/Template_Download",e,{responseType:"blob"}),Pd=e=>Yt.post(Rn+"/TaskData/Temperature_Pdf",e,{responseType:"blob"}),Ld=e=>Yt.post(Rn+"/TaskData/Humidity_Pdf",e,{responseType:"blob"});function Md(e){console.log("下载",e);let a=new Blob([e.data],{type:"application/x-rar-compressed"}),r=window.URL.createObjectURL(a),n=document.createElement("a");n.href=r,n.download="添加设备列表模板.xlsx",n.click(),window.URL.revokeObjectURL(r)}function Bd(e,a){let r=new Blob([e.data],{type:"application/x-rar-compressed"}),n=window.URL.createObjectURL(r),t=document.createElement("a");t.href=n,t.download=a+Di()+".pdf",t.click(),window.URL.revokeObjectURL(n)}function Di(){var e=new Date;let a=e.getFullYear(),r=(e.getMonth()+1).toString().padStart(2,"0"),n=e.getDate().toString().padStart(2,"0"),t=e.getHours().toString().padStart(2,"0"),s=e.getMinutes().toString().padStart(2,"0"),i=e.getSeconds().toString().padStart(2,"0");return a+r+n+t+s+i}/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var In=1252,Oi=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],jt={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},Jt=function(e){Oi.indexOf(e)!=-1&&(In=jt[0]=e)};function Ri(){Jt(1252)}var kr=function(e){Jt(e)};function Nn(){kr(1200),Ri()}function S0(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 Pn(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?Ii(e.slice(2)):a==254&&r==255?Pn(e.slice(2)):a==65279?e.slice(1):e},at=function(a){return String.fromCharCode(a)},C0=function(a){return String.fromCharCode(a)},Gr,$r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function y0(e){for(var a="",r=0,n=0,t=0,s=0,i=0,c=0,f=0,l=0;l>2,n=e.charCodeAt(l++),i=(r&3)<<4|n>>4,t=e.charCodeAt(l++),c=(n&15)<<2|t>>6,f=t&63,isNaN(n)?c=f=64:isNaN(t)&&(f=64),a+=$r.charAt(s)+$r.charAt(i)+$r.charAt(c)+$r.charAt(f);return a}function hr(e){var a="",r=0,n=0,t=0,s=0,i=0,c=0,f=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var l=0;l>4,a+=String.fromCharCode(r),c=$r.indexOf(e.charAt(l++)),n=(i&15)<<4|c>>2,c!==64&&(a+=String.fromCharCode(n)),f=$r.indexOf(e.charAt(l++)),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}(),ia=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 Yr(e){return ge?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function D0(e){return ge?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var Tr=function(a){return ge?ia(a,"binary"):a.split("").map(function(r){return r.charCodeAt(0)&255})};function ca(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 Zt(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=Yr(65535),n=65530)}return a.push(t.slice(0,r)),Xr(a)}var sr=/\u0000/g,Da=/[\u0001-\u0006]/g;function va(e){for(var a="",r=e.length-1;r>=0;)a+=e.charAt(r--);return a}function wr(e,a){var r=""+e;return r.length>=a?r:De("0",a-r.length)+r}function qt(e,a){var r=""+e;return r.length>=a?r:De(" ",a-r.length)+r}function ht(e,a){var r=""+e;return r.length>=a?r:r+De(" ",a-r.length)}function Pi(e,a){var r=""+Math.round(e);return r.length>=a?r:De("0",a-r.length)+r}function Li(e,a){var r=""+e;return r.length>=a?r:De("0",a-r.length)+r}var O0=Math.pow(2,32);function ua(e,a){if(e>O0||e<-O0)return Pi(e,a);var r=Math.round(e);return Li(r,a)}function ut(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 R0=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],yt=[["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 Mi(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"秒 "'},I0={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},Bi={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 xt(e,a,r){for(var n=e<0?-1:1,t=e*n,s=0,i=1,c=0,f=1,l=0,o=0,h=Math.floor(t);la&&(l>a?(o=f,c=s):(o=l,c=i)),!r)return[0,n*c,o];var x=Math.floor(n*c/o);return[x,n*c-x*o,o]}function ea(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=Gi(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 Ln=new Date(1899,11,31,0,0,0),bi=Ln.getTime(),Ui=new Date(1900,2,1,0,0,0);function Mn(e,a){var r=e.getTime();return a?r-=1461*24*60*60*1e3:e>=Ui&&(r+=24*60*60*1e3),(r-(bi+(e.getTimezoneOffset()-Ln.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function Qt(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Hi(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function Vi(e){var a=e<0?12:11,r=Qt(e.toFixed(12));return r.length<=a||(r=e.toPrecision(10),r.length<=a)?r:e.toExponential(5)}function Wi(e){var a=Qt(e.toFixed(11));return a.length>(e<0?12:11)||a==="0"||a==="-0"?e.toPrecision(6):a}function Va(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=Vi(e):a===10?r=e.toFixed(10).substr(0,12):r=Wi(e),Qt(Hi(r.toUpperCase()))}function ta(e,a){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):Va(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return gr(14,Mn(e,a&&a.date1904),a)}throw new Error("unsupported value in General format: "+e)}function Gi(e,a){a[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function Xi(e,a,r,n){var t="",s=0,i=0,c=r.y,f,l=0;switch(e){case 98:c=r.y+543;case 121:switch(a.length){case 1:case 2:f=c%100,l=2;break;default:f=c%1e4,l=4;break}break;case 109:switch(a.length){case 1:case 2:f=r.m,l=a.length;break;case 3:return yt[r.m-1][1];case 5:return yt[r.m-1][0];default:return yt[r.m-1][2]}break;case 100:switch(a.length){case 1:case 2:f=r.d,l=a.length;break;case 3:return R0[r.q][0];default:return R0[r.q][1]}break;case 104:switch(a.length){case 1:case 2:f=1+(r.H+11)%12,l=a.length;break;default:throw"bad hour format: "+a}break;case 72:switch(a.length){case 1:case 2:f=r.H,l=a.length;break;default:throw"bad hour format: "+a}break;case 77:switch(a.length){case 1:case 2:f=r.M,l=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")?wr(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=wr(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}l=a.length===3?1:2;break;case 101:f=c,l=1;break}var o=l>0?wr(f,l):"";return o}function zr(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 Bn=/%/g;function $i(e,a,r){var n=a.replace(Bn,""),t=a.length-n.length;return Mr(e,n,r*Math.pow(10,2*t))+De("%",t)}function zi(e,a,r){for(var n=a.length-1;a.charCodeAt(n-1)===44;)--n;return Mr(e,a.substr(0,n),r/Math.pow(10,3*(a.length-n)))}function bn(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"-"+bn(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,l,o){return f+l+o.substr(0,(t+s)%t)+"."+o.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 Un=/# (\?+)( ?)\/( ?)(\d+)/;function Ki(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):qt(i,e[1].length)+e[2]+"/"+e[3]+wr(c,e[4].length))}function Yi(e,a,r){return r+(a===0?"":""+a)+De(" ",e[1].length+2+e[4].length)}var Hn=/^#*0*\.([0#]+)/,Vn=/\).*[0#]/,Wn=/\(###\) ###\\?-####/;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 N0(e,a){var r=Math.pow(10,a);return""+Math.round(e*r)/r}function P0(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 ji(e,a){return a<(""+Math.round((e-Math.floor(e))*Math.pow(10,a))).length?1:0}function Ji(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function vr(e,a,r){if(e.charCodeAt(0)===40&&!a.match(Vn)){var n=a.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?vr("n",n,r):"("+vr("n",n,-r)+")"}if(a.charCodeAt(a.length-1)===44)return zi(e,a,r);if(a.indexOf("%")!==-1)return $i(e,a,r);if(a.indexOf("E")!==-1)return bn(a,r);if(a.charCodeAt(0)===36)return"$"+vr(e,a.substr(a.charAt(1)==" "?2:1),r);var t,s,i,c,f=Math.abs(r),l=r<0?"-":"";if(a.match(/^00+$/))return l+ua(f,a.length);if(a.match(/^[#?]+$/))return t=ua(r,0),t==="0"&&(t=""),t.length>a.length?t:ar(a.substr(0,a.length-t.length))+t;if(s=a.match(Un))return Ki(s,f,l);if(a.match(/^#+0+$/))return l+ua(f,a.length-a.indexOf("0"));if(s=a.match(Hn))return t=N0(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 l+N0(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 l+zr(ua(f,0));if(s=a.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+vr(e,a,-r):zr(""+(Math.floor(r)+ji(r,s[1].length)))+"."+wr(P0(r,s[1].length),s[1].length);if(s=a.match(/^#,#*,#0/))return vr(e,a.replace(/^#,#*,/,""),r);if(s=a.match(/^([0#]+)(\\?-([0#]+))+$/))return t=va(vr(e,a.replace(/[\\-]/g,""),r)),i=0,va(va(a.replace(/\\/g,"")).replace(/[0#]/g,function(v){return i=0?yr("n",n,r):"("+yr("n",n,-r)+")"}if(a.charCodeAt(a.length-1)===44)return Zi(e,a,r);if(a.indexOf("%")!==-1)return qi(e,a,r);if(a.indexOf("E")!==-1)return Gn(a,r);if(a.charCodeAt(0)===36)return"$"+yr(e,a.substr(a.charAt(1)==" "?2:1),r);var t,s,i,c,f=Math.abs(r),l=r<0?"-":"";if(a.match(/^00+$/))return l+wr(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(Un))return Yi(s,f,l);if(a.match(/^#+0+$/))return l+wr(f,a.length-a.indexOf("0"));if(s=a.match(Hn))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 l+(""+f).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=a.match(/^#{1,3},##0(\.?)$/))return l+zr(""+f);if(s=a.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+yr(e,a,-r):zr(""+r)+"."+De("0",s[1].length);if(s=a.match(/^#,#*,#0/))return yr(e,a.replace(/^#,#*,/,""),r);if(s=a.match(/^([0#]+)(\\?-([0#]+))+$/))return t=va(yr(e,a.replace(/[\\-]/g,""),r)),i=0,va(va(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 ec(e,a,r,n){for(var t=[],s="",i=0,c="",f="t",l,o,h,x="H";i=12?"P":"A"),u.t="T",x="h",i+=3):e.substr(i,5).toUpperCase()==="AM/PM"?(l!=null&&(u.v=l.H>=12?"PM":"AM"),u.t="T",i+=5,x="h"):e.substr(i,5).toUpperCase()==="上午/下午"?(l!=null&&(u.v=l.H>=12?"下午":"上午"),u.t="T",i+=5,x="h"):(u.t="t",++i),l==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]||"$",Ea(e)||(t[t.length]={t:"t",v:s}));break;case".":if(l!=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:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M),l.M>=60&&(l.M=0,++l.H);break;case 2:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M);break}var _="",N;for(i=0;i0){_.charCodeAt(0)==40?(I=a<0&&_.charCodeAt(0)===45?-a:a,F=Mr("n",_,I)):(I=a<0&&n>1?-a:a,F=Mr("n",_,I),I<0&&t[0]&&t[0].t=="t"&&(F=F.substr(1),t[0].v="-"+t[0].v)),N=F.length-1;var V=t.length;for(i=0;i-1){V=i;break}var D=t.length;if(V===t.length&&F.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=F.substr(N+1,t[i].v.length)):N<0?t[i].v="":(t[i].v=F.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(o=t[i].v.indexOf(".")>-1&&i===V?t[i].v.indexOf(".")-1:t[i].v.length-1,b=t[i].v.substr(o+1);o>=0;--o)N>=0&&(t[i].v.charAt(o)==="0"||t[i].v.charAt(o)==="#")&&(b=F.charAt(N--)+b);t[i].v=b,t[i].t="t",D=i}for(N>=0&&D-1&&i===V?t[i].v.indexOf(".")+1:0,b=t[i].v.substr(0,o);o-1&&(I=n>1&&a<0&&i>0&&t[i-1].v==="-"?-a:a,t[i].v=Mr(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 L0=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function M0(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 rc(e,a){var r=Qi(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(L0),c=r[1].match(L0);return M0(a,i)?[n,r[0]]:M0(a,c)?[n,r[1]]:[n,r[i!=null&&c!=null?2:1]]}return[n,s]}function gr(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[I0[e]]||de[I0[e]]),n==null&&(n=Bi[e]||"General");break}if(ut(n,0))return ta(a,r);a instanceof Date&&(a=Mn(a,r.date1904));var t=rc(n,a);if(ut(t[1]))return ta(a,r);if(a===!0)a="TRUE";else if(a===!1)a="FALSE";else if(a===""||a==null)return"";return ec(t[1],a,r,t[0])}function ra(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 $n(){de=Mi()}var ac={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"},zn=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function tc(e){var a=typeof e=="number"?de[e]:e;return a=a.replace(zn,"(\\d+)"),new RegExp("^"+a+"$")}function nc(e,a,r){var n=-1,t=-1,s=-1,i=-1,c=-1,f=-1;(a.match(zn)||[]).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 l=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(t>=1?t:1)).slice(-2)+"-"+("00"+(s>=1?s:1)).slice(-2);l.length==7&&(l="0"+l),l.length==8&&(l="20"+l);var o=("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?l:n==-1&&t==-1&&s==-1?o:l+"T"+o}var sc=function(){var e={};e.version="1.2.0";function a(){for(var F=0,V=new Array(256),D=0;D!=256;++D)F=D,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,V[D]=F;return typeof Int32Array<"u"?new Int32Array(V):V}var r=a();function n(F){var V=0,D=0,z=0,G=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(z=0;z!=256;++z)G[z]=F[z];for(z=0;z!=256;++z)for(D=F[z],V=256+z;V<4096;V+=256)D=G[V]=D>>>8^F[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],l=t[4],o=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(F,V){for(var D=V^-1,z=0,G=F.length;z>>8^r[(D^F.charCodeAt(z++))&255];return~D}function b(F,V){for(var D=V^-1,z=F.length-15,G=0;G>8&255]^S[F[G++]^D>>16&255]^g[F[G++]^D>>>24]^u[F[G++]]^v[F[G++]]^d[F[G++]]^x[F[G++]]^h[F[G++]]^o[F[G++]]^l[F[G++]]^f[F[G++]]^c[F[G++]]^i[F[G++]]^s[F[G++]]^r[F[G++]];for(z+=15;G>>8^r[(D^F[G++])&255];return~D}function I(F,V){for(var D=V^-1,z=0,G=F.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=F.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){Xe(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 l(){return f||(f={})}function o(p,T){if(p[0]==80&&p[1]==75)return A0(p,T);if((p[0]|32)==109&&(p[1]|32)==105)return ki(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);Xe(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 A0(p,T);default:throw new Error("Major Version: Expected 3 or 4 saw "+m)}E!==512&&(H=p.slice(0,E),Xe(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={},Ke=[],Aa=[],Sa=[];_(M,Ce,xe,Ke,k,ye,Aa,X),v(Aa,Sa,Ke),Ke.shift();var Ca={FileIndex:Aa,FullPaths:Sa};return T&&T.raw&&(Ca.raw={header:Q,sectors:xe}),Ca}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=Qr(m,M*4);return w.length===0?Ue(0):Xr(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=Qr(p[H],B)}return{nodes:w,data:z0([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=Qr(p[te],se),Z[Y]))break}w[Q]={nodes:X,data:z0([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&&Xe(te.content,0),w[se]=te,M.push(te)}}function N(p,T){return new Date((or(p,T+4)/1e7*Math.pow(2,32)+or(p,T)/1e7-11644473600)*1e3)}function b(p,T){return l(),o(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 o(Tr(hr(p)),T);case"binary":return o(Tr(p),T)}return o(p,T)}function F(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),V(p)}function V(p){var T="Sh33tJ5";if(!me.find(p,"/"+T)){var m=Ue(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){F(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 wi(p,m);switch(D(p),m.fileType){case"zip":return pi(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 Ke=se.FullPaths.length+3>>2,Aa=Z+7>>3,Sa=Z+127>>7,Ca=Aa+te+Ke+Sa,qr=Ca+127>>7,Ct=qr<=109?0:Math.ceil((qr-109)/127);Ca+qr+Ct+127>>7>qr;)Ct=++qr<=109?0:Math.ceil((qr-109)/127);var Pr=[1,Ct,qr,Sa,Ke,te,Z,0];return se.FileIndex[0].size=Z<<6,Pr[7]=(se.FileIndex[0].start=Pr[0]+Pr[1]+Pr[2]+Pr[3]+Pr[4]+Pr[5])+(Pr[6]+7>>3),Pr}(p),k=Ue(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):[],Ee=0;Ee<256;++Ee)j[Ee]=ne(Ee);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 Re(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 Ie(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 ur(p,T,m){var E=T&7,k=T>>>3;return E<=5?p[k]|=(m&7)<>8-E),T+3}function Ar(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 wa(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 Hr(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=D0(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=ur(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=Ir(L,B,j[Z+1]>>1)-1:(Ir(L,B,3),B+=5,Ir(L,B,j[Z-23]>>5),B+=3);var Ce=Z<8?0:Z-4>>2;Ce>0&&(wa(L,B,xe-K[Z]),B+=Ce),Z=T[H-te],B=Ir(L,B,j[Z]>>3),B-=3;var ye=Z<4?0:Z-2>>1;ye>0&&(wa(L,B,H-te-ee[Z]),B+=ye);for(var Ke=0;Ke>8-Z;for(var te=(1<<7-Z)-1;te>=0;--te)be[se|te<>>=3){case 16:for(w=3+Re(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=xi(p,m),X=Zr,L=k0);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?Vr[H]:Ne[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+=Ie(p,m,Q),m+=Q),H=Ie(p,m,L),Y=E>>>1==1?Fa[H]:xr[H],m+=Y&15,Y>>>=4;var Z=Y<4?0:Y-2>>1,te=ee[Y];for(Z>0&&(te+=Ie(p,m,Z),m+=Z),!T&&M>>3]:[k.slice(0,w),m+7>>>3]}function w0(p,T){var m=p.slice(p.l||0),E=di(m,T);return p.l+=E[1],E[0]}function F0(p,T){if(p)typeof console<"u"&&console.error(T);else throw new Error(T)}function A0(p,T){var m=p;Xe(m,0);var E=[],k=[],w={FileIndex:E,FullPaths:k};F(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};F(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: "+gi(X,M)),k.push(""),k.push(te?_i(H):mi(H))}return k.push(E+`--\r `),k.join(`\r `)}function Fi(p){var T={};return F(T,p),T}function St(p,T,m,E){var k=E&&E.unsafe;k||F(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 Ai(p,T){F(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 b0=new Date("2017-02-19T19:06:09.000Z"),Yn=isNaN(b0.getFullYear())?new Date("2/19/17"):b0,oc=Yn.getFullYear()==2017;function Ge(e,a){var r=new Date(e);if(oc)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(Yn.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 na(e,a){if(ge&&Buffer.isBuffer(e)){if(a){if(e[0]==255&&e[1]==254)return Ra(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return Ra(Pn(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(a){if(e[0]==255&&e[1]==254)return Ra(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return Ra(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 $e(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]=$e(e[r]));return a}function De(e,a){for(var r="";r.length3&&lc.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 hc=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 `,dc=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,H0=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,vc=/<[^>]*>/g,er=Qn.match(H0)?H0:vc,pc=/<\w*:/,gc=/<(\/?)\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(dc),c=0,f="",l=0,o="",h="",x=1;if(i)for(l=0;l!=i.length;++l){for(h=i[l],s=0;s!=h.length&&h.charCodeAt(s)!==61;++s);for(o=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!=o.length&&o.charCodeAt(c)!==58;++c);if(c===o.length)o.indexOf("_")>0&&(o=o.slice(0,o.indexOf("_"))),n[o]=f,r||(n[o.toLowerCase()]=f);else{var d=(c===5&&o.slice(0,5)==="xmlns"?"xmlns":"")+o.slice(c+1);if(n[d]&&o.slice(c-3,c)=="ext")continue;n[d]=f,r||(n[d.toLowerCase()]=f)}}return n}function Or(e){return e.replace(gc,"<$1")}var es={""":'"',"'":"'",">":">","<":"<","&":"&"},mc=e0(es),Te=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))}}(),_c=/[&<>'"]/g,Ec=/[\u0000-\u001f]/g;function a0(e){var a=e+"";return a.replace(_c,function(r){return mc[r]}).replace(/\n/g,"
").replace(Ec,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}var V0=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 Dt(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 W0(e){var a=Yr(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 G0(e){return ia(e,"binary").toString("utf8")}var tt="foo bar baz☃🍣",Fe=ge&&(G0(tt)==Dt(tt)&&G0||W0(tt)==Dt(tt)&&W0)||Dt,Ra=ge?function(e){return ia(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("")},Wa=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||"")}}(),rs=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")}}(),kc=/<\/?(?:vt:)?variant>/g,wc=/<(?:vt:)([^>]*)>([\s\S]*)"+a+""}function t0(e){if(ge&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e=="string")return e;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return Fe(ca(Zt(e)));throw new Error("Bad input format: expected Buffer or string")}var Ga=/<(\/?)([^\s?>:\/]+)(?:[\s?:\/][^>]*)?>/mg,Cc={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"},yc=["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 Dc(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 Oc(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 $0=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:ia(a)})):$0(e)}:$0,K0=function(e,a,r){for(var n=[],t=a;t0?ja(e,a+4,a+4+r-1):""},ns=ts,ss=function(e,a){var r=or(e,a);return r>0?ja(e,a+4,a+4+r-1):""},is=ss,cs=function(e,a){var r=2*or(e,a);return r>0?ja(e,a+4,a+4+r-1):""},fs=cs,os=function(a,r){var n=or(a,r);return n>0?n0(a,r+4,r+4+n):""},ls=os,hs=function(e,a){var r=or(e,a);return r>0?ja(e,a+4,a+4+r):""},us=hs,xs=function(e,a){return Dc(e,a)},vt=xs,ds=function(a){return Array.isArray(a)||typeof Uint8Array<"u"&&a instanceof Uint8Array};ge&&(ns=function(a,r){if(!Buffer.isBuffer(a))return ts(a,r);var n=a.readUInt32LE(r);return n>0?a.toString("utf8",r+4,r+4+n-1):""},is=function(a,r){if(!Buffer.isBuffer(a))return ss(a,r);var n=a.readUInt32LE(r);return n>0?a.toString("utf8",r+4,r+4+n-1):""},fs=function(a,r){if(!Buffer.isBuffer(a))return cs(a,r);var n=2*a.readUInt32LE(r);return a.toString("utf16le",r+4,r+4+n-1)},ls=function(a,r){if(!Buffer.isBuffer(a))return os(a,r);var n=a.readUInt32LE(r);return a.toString("utf16le",r+4,r+4+n)},us=function(a,r){if(!Buffer.isBuffer(a))return hs(a,r);var n=a.readUInt32LE(r);return a.toString("utf8",r+4,r+4+n)},vt=function(a,r){return Buffer.isBuffer(a)?a.readDoubleLE(r):xs(a,r)},ds=function(a){return Buffer.isBuffer(a)||Array.isArray(a)||typeof Uint8Array<"u"&&a instanceof Uint8Array});var xa=function(e,a){return e[a]},Lr=function(e,a){return e[a+1]*256+e[a]},Rc=function(e,a){var r=e[a+1]*256+e[a];return r<32768?r:(65535-r+1)*-1},or=function(e,a){return e[a+3]*(1<<24)+(e[a+2]<<16)+(e[a+1]<<8)+e[a]},Qr=function(e,a){return e[a+3]<<24|e[a+2]<<16|e[a+1]<<8|e[a]},Ic=function(e,a){return e[a]<<24|e[a+1]<<16|e[a+2]<<8|e[a+3]};function Ia(e,a){var r="",n,t,s=[],i,c,f,l;switch(a){case"dbcs":if(l=this.l,ge&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(f=0;f0?Qr:Ic)(this,this.l),this.l+=4,n):(t=or(this,this.l),this.l+=4,t);case 8:case-8:if(a==="f")return e==8?t=vt(this,this.l):t=vt([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=as(this,this.l,e);break}}return this.l+=e,r}var Nc=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},Pc=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},Lc=function(e,a,r){e[r]=a&255,e[r+1]=a>>>8&255};function Mc(e,a,r){var n=0,t=0;if(r==="dbcs"){for(t=0;t!=a.length;++t)Lc(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,Nc(this,a,this.l);break;case 8:if(n=8,r==="f"){Oc(this,a,this.l);break}case 16:break;case-4:n=4,Pc(this,a,this.l);break}return this.l+=n,this}function vs(e,a){var r=as(this,this.l,e.length>>1);if(r!==e)throw new Error(a+"Expected "+e+" saw "+r);this.l+=e.length>>1}function Xe(e,a){e.l=a,e.read_shift=Ia,e.chk=vs,e.write_shift=Mc}function Qe(e,a){e.l+=a}function Ue(e){var a=Yr(e);return Xe(a,0),a}function Ur(e,a,r){if(e){var n,t,s;Xe(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(l){return n&&l=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function J0(e,a,r){var n=$e(e);return n.s=Na(n.s,a.s,r),n.e=Na(n.e,a.s,r),n}function Pa(e,a){if(e.cRel&&e.c<0)for(e=$e(e);e.c<0;)e.c+=a>8?16384:256;if(e.rRel&&e.r<0)for(e=$e(e);e.r<0;)e.r+=a>8?1048576:a>5?65536:16384;var r=ue(e);return!e.cRel&&e.cRel!=null&&(r=Uc(r)),!e.rRel&&e.rRel!=null&&(r=Bc(r)),r}function Ot(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?"":"$")+He(e.s.c)+":"+(e.e.cRel?"":"$")+He(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):Pa(e.s,a.biff)+":"+Pa(e.e,a.biff)}function s0(e){return parseInt(bc(e),10)-1}function ze(e){return""+(e+1)}function Bc(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function bc(e){return e.replace(/\$(\d+)$/,"$1")}function i0(e){for(var a=Hc(e),r=0,n=0;n!==a.length;++n)r=26*r+a.charCodeAt(n)-64;return r-1}function He(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 Uc(e){return e.replace(/^([A-Z])/,"$$$1")}function Hc(e){return e.replace(/^\$([A-Z])/,"$1")}function Vc(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 Ta(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 Z0(e,a){var r=e.t=="d"&&a instanceof Date;if(e.z!=null)try{return e.w=gr(e.z,r?ir(a):a)}catch{}try{return e.w=gr((e.XF||{}).numFmtId||(r?14:0),r?ir(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"?la[e.v]||e.v:a==null?Z0(e,e.v):Z0(e,a))}function Jr(e,a){var r=a&&a.sheet?a.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function ps(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 l={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(s["!ref"]){var o=Oe(s["!ref"]);l.s.c=o.s.c,l.s.r=o.s.r,l.e.c=Math.max(l.e.c,o.e.c),l.e.r=Math.max(l.e.r,o.e.r),i==-1&&(l.e.r=i=o.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(l.s.r>v&&(l.s.r=v),l.s.c>u&&(l.s.c=u),l.e.r>2;return r?t/100:t}function gs(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=gs;function Je(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Kc(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 l=aa[t];l&&(a.rgb=$a(l));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 Yc(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 ms(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 jc(e){return ms(e,1)}function Jc(e){return ms(e,2)}var l0=2,cr=3,nt=11,q0=12,pt=19,st=64,Zc=65,qc=71,Qc=4108,ef=4126,We=80,_s=81,rf=[We,_s],af={1:{n:"CodePage",t:l0},2:{n:"Category",t:We},3:{n:"PresentationFormat",t:We},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:nt},12:{n:"HeadingPairs",t:Qc},13:{n:"TitlesOfParts",t:ef},14:{n:"Manager",t:We},15:{n:"Company",t:We},16:{n:"LinksUpToDate",t:nt},17:{n:"CharacterCount",t:cr},19:{n:"SharedDoc",t:nt},22:{n:"HyperlinksChanged",t:nt},23:{n:"AppVersion",t:cr,p:"version"},24:{n:"DigSig",t:Zc},26:{n:"ContentType",t:We},27:{n:"ContentStatus",t:We},28:{n:"Language",t:We},29:{n:"Version",t:We},255:{},2147483648:{n:"Locale",t:pt},2147483651:{n:"Behavior",t:pt},1919054434:{}},tf={1:{n:"CodePage",t:l0},2:{n:"Title",t:We},3:{n:"Subject",t:We},4:{n:"Author",t:We},5:{n:"Keywords",t:We},6:{n:"Comments",t:We},7:{n:"Template",t:We},8:{n:"LastAuthor",t:We},9:{n:"RevNumber",t:We},10:{n:"EditTime",t:st},11:{n:"LastPrinted",t:st},12:{n:"CreatedDate",t:st},13:{n:"ModifiedDate",t:st},14:{n:"PageCount",t:cr},15:{n:"WordCount",t:cr},16:{n:"CharCount",t:cr},17:{n:"Thumbnail",t:qc},18:{n:"Application",t:We},19:{n:"DocSecurity",t:cr},255:{},2147483648:{n:"Locale",t:pt},2147483651:{n:"Behavior",t:pt},1919054434:{}},Q0={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"},nf=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function sf(e){return e.map(function(a){return[a>>16&255,a>>8&255,a&255]})}var cf=sf([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]),aa=$e(cf),la={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Es={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},en={"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 ff(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function of(e){var a=ff();if(!e||!e.match)return a;var r={};if((e.match(er)||[]).forEach(function(n){var t=oe(n);switch(t[0].replace(pc,"<")){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 da={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 Ht(e){var a=e.lastIndexOf("/");return e.slice(0,a+1)+"_rels/"+e.slice(a+1)+".rels"}function La(e,a){var r={"!id":{}};if(!e)return r;a.charAt(0)!=="/"&&(a="/"+a);var n={};return(e.match(er)||[]).forEach(function(t){var s=oe(t);if(s[0]==="]*>([\\s\\S]*?)")}return e}();function Ts(e){var a={};e=Fe(e);for(var r=0;r0&&(a[n[1]]=Te(t[1])),n[2]==="date"&&a[n[1]]&&(a[n[1]]=Ge(a[n[1]]))}return a}var xf=[["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 ks(e,a,r,n){var t=[];if(typeof e=="string")t=X0(e,n);else for(var s=0;s0)for(var l=0;l!==t.length;l+=2){switch(f=+t[l+1].v,t[l].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 df(e,a,r){var n={};return a||(a={}),e=Fe(e),xf.forEach(function(t){var s=(e.match(Wa(t[0]))||[])[1];switch(t[2]){case"string":s&&(a[t[1]]=Te(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&&ks(n.HeadingPairs,n.TitlesOfParts,a,r),a}var vf=/<[^>]+>[^<]*/g;function pf(e,a){var r={},n="",t=e.match(vf);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(""),l=f[0].slice(4),o=f[1];switch(l){case"lpstr":case"bstr":case"lpwstr":r[n]=Te(o);break;case"bool":r[n]=Se(o);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":r[n]=parseInt(o,10);break;case"r4":case"r8":case"decimal":r[n]=parseFloat(o);break;case"filetime":case"date":r[n]=Ge(o);break;case"cy":case"error":r[n]=Te(o);break;default:if(l.slice(-1)=="/")break;a.WTF&&typeof console<"u"&&console.warn("Unexpected",i,l,f)}}else if(i.slice(0,2)!==">2+1<<2),n}function Ss(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 Ff(e){var a={};return a.Size=e.read_shift(4),e.l+=a.Size+3-(a.Size-1)%4,a}function gt(e,a,r){var n=e.read_shift(2),t,s=r||{};if(e.l+=2,a!==q0&&n!==a&&rf.indexOf(a)===-1&&!((a&65534)==4126&&(n&65534)==4126))throw new Error("Expected type "+a+" saw "+n);switch(a===q0?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 ws(e,n,4).replace(sr,"");case 31:return Fs(e);case 64:return h0(e);case 65:return Ss(e);case 71:return Ff(e);case 80:return Vt(e,n,!s.raw).replace(sr,"");case 81:return _f(e,n).replace(sr,"");case 4108:return wf(e);case 4126:case 4127:return n==4127?Ef(e):Tf(e);default:throw new Error("TypedPropertyValue unrecognized type "+a+" "+n)}}function an(e,a){var r=e.l,n=e.read_shift(4),t=e.read_shift(4),s=[],i=0,c=0,f=-1,l={};for(i=0;i!=t;++i){var o=e.read_shift(4),h=e.read_shift(4);s[i]=[o,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]=gt(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:kr(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=gt(e,l0),kr(c),f!==-1){var u=e.l;e.l=s[f][1],l=rn(e,c),e.l=u}}else if(s[i][0]===0){if(c===0){f=i,e.l=s[i+1][1];continue}l=rn(e,c)}else{var g=l[s[i][0]],S;switch(e[e.l]){case 65:e.l+=4,S=Ss(e);break;case 30:e.l+=4,S=Vt(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4,S=Vt(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=Pe(e,4);break;case 64:e.l+=4,S=Ge(h0(e));break;default:throw new Error("unparsed value: "+e[e.l])}x[g]=S}}return e.l=r+n,x}function tn(e,a,r){var n=e.content;if(!n)return{};Xe(n,0);var t,s,i,c,f=0;n.chk("feff","Byte Order: "),n.read_shift(2);var l=n.read_shift(4),o=n.read_shift(16);if(o!==me.utils.consts.HEADER_CLSID&&o!==r)throw new Error("Bad PropertySet CLSID "+o);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=an(n,a),x={SystemIdentifier:l};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=an(n,null)}catch{}for(d in v)x[d]=v[d];return x.FMTID=[s,i],x}function Wr(e,a){return e.read_shift(a),null}function Af(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 Cf(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 l=s==2?"dbcs-cont":"sbcs-cont",o=a===0?"":e.read_shift(a,l);return t&&(e.l+=4*i),n&&(e.l+=c),f.t=o,t||(f.raw=""+f.t+"",f.r=f.t),f}function sa(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 Za(e,a,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):sa(e,n,r)}function ha(e,a,r){if(r.biff>5)return Za(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 yf(e){var a=e.read_shift(1);e.l++;var r=e.read_shift(2);return e.l+=2,[a,r]}function Df(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(sr,"");return n&&(e.l+=24),t}function Of(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(sr,"");return r+i}function Rf(e,a){var r=e.read_shift(16);switch(r){case"e0c9ea79f9bace118c8200aa004ba90b":return Df(e);case"0303000000000000c000000000000046":return Of(e);default:throw new Error("Unsupported Moniker "+r)}}function it(e){var a=e.read_shift(4),r=a>0?e.read_shift(a,"utf16le").replace(sr,""):"";return r}function If(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,l="",o,h;t&16&&(s=it(e,r-e.l)),t&128&&(i=it(e,r-e.l)),(t&257)===257&&(c=it(e,r-e.l)),(t&257)===1&&(f=Rf(e,r-e.l)),t&8&&(l=it(e,r-e.l)),t&32&&(o=e.read_shift(16)),t&64&&(h=h0(e)),e.l=r;var x=i||c||f||"";x&&l&&(x+="#"+l),x||(x="#"+l),t&2&&x.charAt(0)=="/"&&x.charAt(1)!="/"&&(x="file://"+x);var d={Target:x};return o&&(d.guid=o),h&&(d.time=h),s&&(d.Tooltip=s),d}function ys(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 Ds(e,a){var r=ys(e);return r[3]=0,r}function Rr(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 Nf(e){var a=e.read_shift(2),r=e.read_shift(2);return e.l+=8,{type:a,flags:r}}function Pf(e,a,r){return a===0?"":ha(e,a,r)}function Lf(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 Os(e){var a=e.read_shift(2),r=o0(e);return[a,r]}function Mf(e,a,r){e.l+=4,a-=4;var n=e.l+a,t=Ja(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 wt(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 Rs(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 Bf=Rs;function Is(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 bf(e){var a={};return e.l+=4,e.l+=16,a.fSharedNote=e.read_shift(2),e.l+=4,a}function Uf(e){var a={};return e.l+=4,e.cf=e.read_shift(2),a}function Ye(e){e.l+=2,e.l+=e.read_shift(2)}var Hf={0:Ye,4:Ye,5:Ye,6:Ye,7:Uf,8:Ye,9:Ye,10:Ye,11:Ye,12:Ye,13:bf,14:Ye,15:Ye,16:Ye,17:Ye,18:Ye,19:Ye,20:Ye,21:Is};function Vf(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 Wf(e,a){return a===0||e.read_shift(2),1200}function Gf(e,a,r){if(r.enc)return e.l+=a,"";var n=e.l,t=ha(e,0,r);return e.read_shift(a+n-e.l),t}function Xf(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 $f(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=Ja(e,0,r);return i.length===0&&(i="Sheet1"),{pos:n,hs:t,dt:s,name:i}}function zf(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 Zf(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),l=e.read_shift(2);return{Pos:[a,r],Dim:[n,t],Flags:s,CurTab:i,FirstTab:c,Selected:f,TabRatio:l}}function qf(e,a,r){if(r&&r.biff>=2&&r.biff<5)return{};var n=e.read_shift(2);return{RTL:n&64}}function Qf(){}function eo(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=Ja(e,0,r),n}function ro(e){var a=Rr(e);return a.isst=e.read_shift(4),a}function ao(e,a,r){r.biffguess&&r.biff==2&&(r.biff=5);var n=e.l+a,t=Rr(e);r.biff==2&&e.l++;var s=Za(e,n-e.l,r);return t.val=s,t}function to(e,a,r){var n=e.read_shift(2),t=ha(e,0,r);return[n,t]}var no=ha;function sn(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 so(e){var a=e.read_shift(2),r=e.read_shift(2),n=Os(e);return{r:a,c:r,ixfe:n[0],rknum:n[1]}}function io(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 oo(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=fo(e,a,n.fStyle,r),n}function lo(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 cn(e,a,r){var n=Rr(e);(r.biff==2||a==9)&&++e.l;var t=Sf(e);return n.val=t,n.t=t===!0||t===!1?"b":"e",n}function ho(e,a,r){r.biffguess&&r.biff==2&&(r.biff=5);var n=Rr(e),t=Je(e);return n.val=t,n}var fn=Pf;function uo(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=sa(e,s),c=[];n>e.l;)c.push(Za(e));return[s,t,i,c]}function on(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=Mf(e,a-2,r)),s.body=t||e.read_shift(a-2),typeof t=="string"&&(s.Name=t),s}var xo=["_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 ln(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 l=sa(e,i,r);t&32&&(l=xo[l.charCodeAt(0)]);var o=n-e.l;r&&r.biff==2&&--o;var h=n==e.l||c===0||!(o>0)?[]:jh(e,o,r,c);return{chKey:s,Name:l,itab:f,rgce:h}}function Ns(e,a,r){if(r.biff<8)return vo(e,a,r);for(var n=[],t=e.l+a,s=e.read_shift(r.biff>8?4:2);s--!==0;)n.push(Lf(e,r.biff>8?12:6,r));if(e.l!=t)throw new Error("Bad ExternSheet: "+e.l+" != "+t);return n}function vo(e,a,r){e[e.l+1]==3&&e[e.l]++;var n=Ja(e,a,r);return n.charCodeAt(0)==3?n.slice(1):n}function po(e,a,r){if(r.biff<8){e.l+=a;return}var n=e.read_shift(2),t=e.read_shift(2),s=sa(e,n,r),i=sa(e,t,r);return[s,i]}function go(e,a,r){var n=Rs(e);e.l++;var t=e.read_shift(1);return a-=8,[Jh(e,a,r),t,n]}function hn(e,a,r){var n=Bf(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,Kh(e,a,r)]}function mo(e){var a=e.read_shift(4)!==0,r=e.read_shift(4)!==0,n=e.read_shift(4);return[a,r,n]}function _o(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=ha(e,0,r);return r.biff<8&&e.read_shift(1),[{r:n,c:t},c,i,s]}}function Eo(e,a,r){return _o(e,a,r)}function To(e,a){for(var r=[],n=e.read_shift(2);n--;)r.push(wt(e));return r}function ko(e,a,r){if(r&&r.biff<8)return Fo(e,a,r);var n=Is(e),t=Vf(e,a-22,n[1]);return{cmo:n,ft:t}}var wo={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 Fo(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((wo[n]||Qe)(e,a,r)),{cmo:[t,n,s],ft:i}}function Ao(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=yf(e,6,r);var c=e.read_shift(2);e.read_shift(2),Be(e,2);var f=e.read_shift(2);e.l+=f;for(var l=1;l=(o?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 So(e,a){var r=wt(e);e.l+=16;var n=If(e,a-24);return[r,n]}function Co(e,a){e.read_shift(2);var r=wt(e),n=e.read_shift((a-10)/2,"dbcs-cont");return n=n.replace(sr,""),[r,n]}function yo(e){var a=[0,0],r;return r=e.read_shift(2),a[0]=Q0[r]||r,r=e.read_shift(2),a[1]=Q0[r]||r,a}function Do(e){for(var a=e.read_shift(2),r=[];a-- >0;)r.push(Ds(e));return r}function Oo(e){for(var a=e.read_shift(2),r=[];a-- >0;)r.push(Ds(e));return r}function Ro(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 Qe(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 l={s:t,e:s,w:i,ixfe:c,flags:f};return(r.biff>=5||!r.biff)&&(l.level=f>>8&7),l}function Io(e,a){var r={};return a<32||(e.l+=16,r.header=Je(e),r.footer=Je(e),e.l+=2),r}function No(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 Po=Rr,Lo=Cs,Mo=Za;function Bo(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 bo(e,a,r){r.biffguess&&r.biff==5&&(r.biff=2);var n=Rr(e);++e.l;var t=ha(e,a-7,r);return n.t="str",n.val=t,n}function Uo(e){var a=Rr(e);++e.l;var r=Je(e);return a.t="n",a.val=r,a}function Ho(e){var a=Rr(e);++e.l;var r=e.read_shift(2);return a.t="n",a.val=r,a}function Vo(e){var a=e.read_shift(1);return a===0?(e.l++,""):e.read_shift(a,"sbcs-cont")}function Wo(e,a){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=a-13}function Go(e,a,r){var n=e.l+a,t=Rr(e),s=e.read_shift(2),i=sa(e,s,r);return e.l=n,t.t="str",t.val=i,t}var Xo=[2,3,48,49,131,139,140,245],un=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=e0({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 l=[],o=Yr(1);switch(f.type){case"base64":o=Tr(hr(c));break;case"binary":o=Tr(c);break;case"buffer":case"array":o=c;break}Xe(o,0);var h=o.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=o.read_shift(2)),o.l+=3,h!=2&&(u=o.read_shift(4)),u>1048576&&(u=1e6),h!=2&&(g=o.read_shift(2));var S=o.read_shift(2),y=f.codepage||1252;h!=2&&(o.l+=16,o.read_shift(1),o[o.l]!==0&&(y=e[o[o.l]]),o.l+=1,o.l+=2),v&&(o.l+=36);for(var _=[],N={},b=Math.min(o.length,h==2?521:g-10-(d?264:0)),I=v?32:11;o.l0;){if(o[o.l]===42){o.l+=S;continue}for(++o.l,l[++F]=[],V=0,V=0;V!=_.length;++V){var D=o.slice(o.l,o.l+_[V].len);o.l+=_[V].len,Xe(D,0);var z=Gr.utils.decode(y,D);switch(_[V].type){case"C":z.trim().length&&(l[F][V]=z.replace(/\s+$/,""));break;case"D":z.length===8?l[F][V]=new Date(+z.slice(0,4),+z.slice(4,6)-1,+z.slice(6,8)):l[F][V]=z;break;case"F":l[F][V]=parseFloat(z.trim());break;case"+":case"I":l[F][V]=v?D.read_shift(-4,"i")^2147483648:D.read_shift(4,"i");break;case"L":switch(z.trim().toUpperCase()){case"Y":case"T":l[F][V]=!0;break;case"N":case"F":l[F][V]=!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));l[F][V]="##MEMO##"+(v?parseInt(z.trim(),10):D.read_shift(4));break;case"N":z=z.replace(/\u0000/g,"").trim(),z&&z!="."&&(l[F][V]=+z||0);break;case"@":l[F][V]=new Date(D.read_shift(-8,"f")-621356832e5);break;case"T":l[F][V]=new Date((D.read_shift(4)-2440588)*864e5+D.read_shift(4));break;case"Y":l[F][V]=D.read_shift(4,"i")/1e4+D.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":l[F][V]=-D.read_shift(-8,"f");break;case"B":if(d&&_[V].len==8){l[F][V]=D.read_shift(8,"f");break}case"G":case"P":D.l+=_[V].len;break;case"0":if(_[V].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+_[V].type)}}}if(h!=2&&o.l=0&&kr(+l.codepage),l.type=="string")throw new Error("Cannot write DBF to JS string");var o=bt(),h=Kt(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),V=((v[u]||{}).DBF||{}).type,V=="C"&&v[u].DBF.len>D&&(D=v[u].DBF.len),F=="B"&&V=="N"&&(F="N",I[u]=v[u].DBF.dec,D=v[u].DBF.len),b[u]=F=="C"||V=="N"?D:s[F]||0,y+=b[u],N[u]=F}var G=o.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[In]||3)<<8),u=0,g=0;u":190,"?":191,"{":223},a=new RegExp("\x1BN("+Dr(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(x,d){var v=e[d];return typeof v=="number"?C0(v):v},n=function(x,d,v){var u=d.charCodeAt(0)-32<<4|v.charCodeAt(0)-48;return u==59?x:C0(u)};e["|"]=254;function t(x,d){switch(d.type){case"base64":return s(hr(x),d);case"binary":return s(x,d);case"buffer":return s(ge&&Buffer.isBuffer(x)?x.toString("binary"):ca(x),d);case"array":return s(na(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={},F=[],V=[],D=[],z=0,G;for(+d.codepage>=0&&kr(+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,Ae=!1,W=!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]=Xs(U[1],{r:u-le,c:g-he})}break;case"F":var R=0;for(y=1;y0?(F[u].hpt=z,F[u].hpx=za(z)):z===0&&(F[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 F.length>0&&(I["!rows"]=F),V.length>0&&(I["!cols"]=V),d&&d.sheetRows&&(_=_.slice(0,d.sheetRows)),[_,I]}function i(x,d){var v=t(x,d),u=v[0],g=v[1],S=ka(u,d);return Dr(g).forEach(function(y){S[y]=g[y]}),S}function c(x,d){return Jr(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"+R1(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 l(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=_t(v.width)),typeof v.wpx=="number"&&!v.wch&&(v.wch=Et(v.wpx)),typeof v.wch=="number"&&(g+=Math.round(v.wch))),g.charAt(g.length-1)!=" "&&x.push(g)})}function o(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*Vs(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"]&&l(v,x["!cols"]),x["!rows"]&&o(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}}(),zo=function(){function e(s,i){switch(i.type){case"base64":return a(hr(s),i);case"binary":return a(s,i);case"buffer":return a(ge&&Buffer.isBuffer(s)?s.toString("binary"):ca(s),i);case"array":return a(na(s),i)}throw new Error("Unrecognized type "+i.type)}function a(s,i){for(var c=s.split(` `),f=-1,l=-1,o=0,h=[];o!==c.length;++o){if(c[o].trim()==="BOT"){h[++f]=[],l=0;continue}if(!(f<0)){var x=c[o].trim().split(","),d=x[0],v=x[1];++o;for(var u=c[o]||"";(u.match(/["]/g)||[]).length&1&&o=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(o){for(var h={},x=!1,d=0,v=0;d0&&z(),v["!ref"]=_e(u),v}function i(o,h){return!(h&&h.PRN)||h.FS||o.slice(0,4)=="sep="||o.indexOf(" ")>=0||o.indexOf(",")>=0||o.indexOf(";")>=0?s(o,h):ka(a(o,h),h)}function c(o,h){var x="",d=h.type=="string"?[0,0,0,0]:_0(o,h);switch(h.type){case"base64":x=hr(o);break;case"binary":x=o;break;case"buffer":h.codepage==65001?x=o.toString("utf8"):h.codepage&&typeof Gr<"u"?x=Gr.utils.decode(h.codepage,o):x=ge&&Buffer.isBuffer(o)?o.toString("binary"):ca(o);break;case"array":x=na(o);break;case"string":x=o;break;default:throw new Error("Unrecognized type "+h.type)}return d[0]==239&&d[1]==187&&d[2]==191?x=Fe(x.slice(3)):h.type!="string"&&h.type!="buffer"&&h.codepage==65001?x=Fe(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:"?Ko.to_sheet(h.type=="string"?x:Fe(x),h):i(x,h)}function f(o,h){return Jr(c(o,h),h)}function l(o){for(var h=[],x=Oe(o["!ref"]),d,v=Array.isArray(o),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?(o[u]||[])[S]:o[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:l}}();function Yo(e,a){var r=a||{},n=!!r.WTF;r.WTF=!0;try{var t=$o.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 Xa.to_workbook(e,a)}}var Ba=function(){function e(A,U,R){if(A){Xe(A,A.l||0);for(var O=R.Enum||le;A.l=16&&A[14]==5&&A[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(A[2]==2)R.Enum=le,e(A,function(ae,Ie,ur){switch(ur){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:ur==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=kt(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 Ar=R.dense?(O[ae[0].r]||[])[ae[0].c]:O[ue(ae[0])];if(Ar){Ar.t=ae[1].t,Ar.v=ae[1].v,ae[1].z!=null&&(Ar.z=ae[1].z),ae[1].f!=null&&(Ar.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(A[2]==26||A[2]==14)R.Enum=he,A[2]==14&&(R.qpro=!0,A.l=0),e(A,function(ae,Ie,ur){switch(ur){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)),Re>0&&ae[0].r>=Re)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&&kr(+R.codepage),R.type=="string")throw new Error("Cannot write WK1 to JS string");var O=bt(),K=Oe(A["!ref"]),ee=Array.isArray(A),ne=[];Er(O,0,s(1030)),Er(O,6,f(K));for(var q=Math.min(K.e.r,8191),j=K.s.r;j<=q;++j)for(var Ee=ze(j),C=K.s.c;C<=K.e.c;++C){j===K.s.r&&(ne[C]=He(C));var Re=ne[C]+Ee,ke=ee?(A[j]||[])[C]:A[Re];if(!(!ke||ke.t=="z"))if(ke.t=="n")(ke.v|0)==ke.v&&ke.v>=-32768&&ke.v<=32767?Er(O,13,d(j,C,ke.v)):Er(O,14,u(j,C,ke.v));else{var we=br(ke);Er(O,15,h(j,C,we.slice(0,239)))}}return Er(O,1),O.end()}function t(A,U){var R=U||{};if(+R.codepage>=0&&kr(+R.codepage),R.type=="string")throw new Error("Cannot write WK3 to JS string");var O=bt();Er(O,0,i(A));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(A,U,R){var O={s:{c:0,r:0},e:{c:0,r:0}};return U==8&&R.qpro?(O.s.c=A.read_shift(1),A.l++,O.s.r=A.read_shift(2),O.e.c=A.read_shift(1),A.l++,O.e.r=A.read_shift(2),O):(O.s.c=A.read_shift(2),O.s.r=A.read_shift(2),U==12&&R.qpro&&(A.l+=2),O.e.c=A.read_shift(2),O.e.r=A.read_shift(2),U==12&&R.qpro&&(A.l+=2),O.s.c==65535&&(O.s.c=O.e.c=O.s.r=O.e.r=0),O)}function f(A){var U=Ue(8);return U.write_shift(2,A.s.c),U.write_shift(2,A.s.r),U.write_shift(2,A.e.c),U.write_shift(2,A.e.r),U}function l(A,U,R){var O=[{c:0,r:0},{t:"n",v:0},0,0];return R.qpro&&R.vers!=20768?(O[0].c=A.read_shift(1),O[3]=A.read_shift(1),O[0].r=A.read_shift(2),A.l+=2):(O[2]=A.read_shift(1),O[0].c=A.read_shift(2),O[0].r=A.read_shift(2)),O}function o(A,U,R){var O=A.l+U,K=l(A,U,R);if(K[1].t="s",R.vers==20768){A.l++;var ee=A.read_shift(1);return K[1].v=A.read_shift(ee,"utf8"),K}return R.qpro&&A.l++,K[1].v=A.read_shift(O-A.l,"cstr"),K}function h(A,U,R){var O=Ue(7+R.length);O.write_shift(1,255),O.write_shift(2,U),O.write_shift(2,A),O.write_shift(1,39);for(var K=0;K=128?95:ee)}return O.write_shift(1,0),O}function x(A,U,R){var O=l(A,U,R);return O[1].v=A.read_shift(2,"i"),O}function d(A,U,R){var O=Ue(7);return O.write_shift(1,255),O.write_shift(2,U),O.write_shift(2,A),O.write_shift(2,R,"i"),O}function v(A,U,R){var O=l(A,U,R);return O[1].v=A.read_shift(8,"f"),O}function u(A,U,R){var O=Ue(13);return O.write_shift(1,255),O.write_shift(2,U),O.write_shift(2,A),O.write_shift(8,R,"f"),O}function g(A,U,R){var O=A.l+U,K=l(A,U,R);if(K[1].v=A.read_shift(8,"f"),R.qpro)A.l=O;else{var ee=A.read_shift(2);N(A.slice(A.l,A.l+ee),K),A.l+=ee}return K}function S(A,U,R){var O=U&32768;return U&=-32769,U=(O?A:0)+(U>=8192?U-16384:U),(O?"":"$")+(R?He(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(A,U){Xe(A,0);for(var R=[],O=0,K="",ee="",ne="",q="";A.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(A){var U=[{c:0,r:0},{t:"n",v:0},0];return U[0].r=A.read_shift(2),U[3]=A[A.l++],U[0].c=A[A.l++],U}function I(A,U){var R=b(A);return R[1].t="s",R[1].v=A.read_shift(U-4,"cstr"),R}function F(A,U,R,O){var K=Ue(6+O.length);K.write_shift(2,A),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 V(A,U){var R=b(A);R[1].v=A.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(A,U){var R=b(A),O=A.read_shift(4),K=A.read_shift(4),ee=A.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(A,U,R,O){var K=Ue(14);if(K.write_shift(2,A),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(A,U){var R=D(A);return A.l+=U-14,R}function P(A,U){var R=b(A),O=A.read_shift(4);return R[1].v=O>>6,R}function J(A,U){var R=b(A),O=A.read_shift(8,"f");return R[1].v=O,R}function fe(A,U){var R=J(A);return A.l+=U-10,R}function re(A,U){return A[A.l+U-1]==0?A.read_shift(U,"cstr"):""}function ce(A,U){var R=A[A.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:Be},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:o},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:o},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:V},25:{n:"FORMULA19",f:G},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:Ae},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 jo(e){var a={},r=e.match(er),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 Jo=function(){var e=Wa("t"),a=Wa("rPr");function r(s){var i=s.match(e);if(!i)return{t:"s",v:""};var c={t:"s",v:Te(i[1])},f=s.match(a);return f&&(c.s=jo(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})}}(),Zo=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("")}}(),qo=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,Qo=/<(?:\w+:)?r>/,el=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function u0(e,a){var r=a?a.cellHTML:!0,n={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(n.t=Te(Fe(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),n.r=Fe(e),r&&(n.h=a0(n.t))):e.match(Qo)&&(n.r=Fe(e),n.t=Te(Fe((e.replace(el,"").match(qo)||[]).join("").replace(er,""))),r&&(n.h=Zo(Jo(n.r)))),n):{t:""}}var rl=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,al=/<(?:\w+:)?(?:si|sstItem)>/g,tl=/<\/(?:\w+:)?(?:si|sstItem)>/;function nl(e,a){var r=[],n="";if(!e)return r;var t=e.match(rl);if(t){n=t[2].replace(al,"").split(tl);for(var s=0;s!=n.length;++s){var i=u0(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 sl(e){return[e.read_shift(4),e.read_shift(4)]}function il(e,a){var r=[],n=!1;return Ur(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 Ls(e){for(var a=[],r=e.split(""),n=0;n=4&&(e.l+=a-4),r}function cl(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 fl(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 ol(e){var a=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)a.push(fl(e));return a}function ll(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 hl(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 ul(e){var a=hl(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 Ms(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 Bs(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 xl(e){var a=Br(e);switch(a.Minor){case 2:return[a.Minor,dl(e)];case 3:return[a.Minor,vl()];case 4:return[a.Minor,pl(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+a.Minor)}function dl(e){var a=e.read_shift(4);if((a&63)!=36)throw new Error("EncryptionInfo mismatch");var r=e.read_shift(4),n=Ms(e,r),t=Bs(e,e.length-e.l);return{t:"Std",h:n,v:t}}function vl(){throw new Error("File is password-protected: ECMA-376 Extensible")}function pl(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(er,function(s){var i=oe(s);switch(Or(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=Ms(e,t),a-=t,r.EncryptionVerifier=Bs(e,a),r}function ml(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 _l(e){var a=0,r,n=Ls(e),t=n.length+1,s,i,c,f,l;for(r=Yr(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,l=c|f,a=l^i;return a^52811}var bs=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,l=i.length-1;l>=0;--l)for(var o=i[l],h=0;h!=7;++h)o&64&&(c^=r[f]),o*=2,--f;return c};return function(i){for(var c=Ls(i),f=s(c),l=c.length,o=Yr(16),h=0;h!=16;++h)o[h]=0;var x,d,v;for((l&1)===1&&(x=f>>8,o[l]=t(e[0],x),--l,x=f&255,d=c[c.length-1],o[l]=t(d,x));l>0;)--l,x=f>>8,o[l]=t(c[l],x),--l,x=f&255,o[l]=t(c[l],x);for(l=15,v=15-c.length;v>0;)x=f>>8,o[l]=t(e[v],x),--l,--v,x=f&255,o[l]=t(c[l],x),--l,--v;return o}}(),El=function(e,a,r,n,t){t||(t=a),n||(n=bs(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]},Tl=function(e){var a=0,r=bs(e);return function(n){var t=El("",n,a,r);return a=t[1],t[0]}};function kl(e,a,r,n){var t={key:Be(e),verificationBytes:Be(e)};return r.password&&(t.verifier=_l(r.password)),n.valid=t.verificationBytes===t.verifier,n.valid&&(n.insitu=Tl(r.password)),t}function wl(e,a,r){var n=r||{};return n.Info=e.read_shift(2),e.l-=2,n.Info===1?n.Data=ml(e):n.Data=gl(e,a),n}function Fl(e,a,r){var n={Type:r.biff>=8?e.read_shift(2):0};return n.Type?wl(e,a-2,n):kl(e,r.biff>=8?a:a-2,r,n),n}var Al=function(){function e(t,s){switch(s.type){case"base64":return a(hr(t),s);case"binary":return a(t,s);case"buffer":return a(ge&&Buffer.isBuffer(t)?t.toString("binary"):ca(t),s);case"array":return a(na(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 l={s:{c:0,r:0},e:{c:0,r:f.length-1}};return f.forEach(function(o,h){Array.isArray(c)&&(c[h]=[]);for(var x=/\\\w+\b/g,d=0,v,u=-1;v=x.exec(o);){switch(v[0]){case"\\cell":var g=o.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>l.e.c&&(l.e.c=u)}),c["!ref"]=_e(l),c}function r(t,s){return Jr(e(t,s),s)}function n(t){for(var s=["{\\rtf1\\ansi"],i=Oe(t["!ref"]),c,f=Array.isArray(t),l=i.s.r;l<=i.e.r;++l){s.push("\\trowd\\trautofit1");for(var o=i.s.c;o<=i.e.c;++o)s.push("\\cellx"+(o+1));for(s.push("\\pard\\intbl"),o=i.s.c;o<=i.e.c;++o){var h=ue({r:l,c:o});c=f?(t[l]||[])[o]: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 Sl(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 Cl(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,l=t+s;switch(f=i/(l>1?2-l:l),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,l/2]}function yl(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 l=0;l!=3;++l)i[l]=Math.round(i[l]*255);return i}function mt(e,a){if(a===0)return e;var r=Cl(Sl(e));return a<0?r[2]=r[2]*(1+a):r[2]=1-(1-r[2])*(1-a),$a(yl(r))}var Us=6,Dl=15,Ol=1,tr=Us;function _t(e){return Math.floor((e+Math.round(128/tr)/256)*tr)}function Et(e){return Math.floor((e-5)/tr*100+.5)/100}function Wt(e){return Math.round((e*tr+5)/tr*256)/256}function It(e){return Wt(Et(_t(e)))}function x0(e){var a=Math.abs(e-It(e)),r=tr;if(a>.005)for(tr=Ol;tr":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 Pl(e,a,r,n){a.Fills=[];var t={},s=!1;(e[0].match(er)||[]).forEach(function(i){var c=oe(i);switch(Or(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 Ll(e,a,r,n){a.Fonts=[];var t={},s=!1;(e[0].match(er)||[]).forEach(function(i){var c=oe(i);switch(Or(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 Ml(e,a,r){a.NumberFmt=[];for(var n=Dr(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}ra(c,f)}}break;case"":break;default:if(r.WTF)throw new Error("unrecognized "+i[0]+" in numFmts")}}}var ft=["numFmtId","fillId","fontId","borderId","xfId"],ot=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function Bl(e,a,r){a.CellXf=[];var n,t=!1;(e[0].match(er)||[]).forEach(function(s){var i=oe(s),c=0;switch(Or(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 bl=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,l){var o={};if(!c)return o;c=c.replace(//mg,"").replace(//gm,"");var h;return(h=c.match(a))&&Ml(h,o,l),(h=c.match(t))&&Ll(h,o,f,l),(h=c.match(n))&&Pl(h,o,f,l),(h=c.match(s))&&Nl(h,o,f,l),(h=c.match(r))&&Bl(h,o,l),o}}();function Ul(e,a){var r=e.read_shift(2),n=qe(e);return[r,n]}function Hl(e,a,r){var n={};n.sz=e.read_shift(2)/20;var t=Yc(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=Kc(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=qe(e),n}var Vl=Qe;function Wl(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 Gl=Qe;function Xl(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 Ur(e,function(f,l,o){switch(o){case 44:n.NumberFmt[f[0]]=f[1],ra(f[1],f[0]);break;case 43:n.Fonts.push(f),f.color.theme!=null&&a&&a.themeElements&&a.themeElements.clrScheme&&(f.color.rgb=mt(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(o),i=!0;break;case 38:s.pop(),i=!1;break;default:if(l.T>0)s.push(o);else if(l.T<0)s.pop();else if(!i||r.WTF&&s[s.length-1]!=37)throw new Error("Unexpected record 0x"+o.toString(16))}}),n}var $l=["","","","","","","","","","","",""];function zl(e,a,r){a.themeElements.clrScheme=[];var n={};(e[0].match(er)||[]).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[$l.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 Kl(){}function Yl(){}var jl=/]*)>[\s\S]*<\/a:clrScheme>/,Jl=/]*)>[\s\S]*<\/a:fontScheme>/,Zl=/]*)>[\s\S]*<\/a:fmtScheme>/;function ql(e,a,r){a.themeElements={};var n;[["clrScheme",jl,zl],["fontScheme",Jl,Kl],["fmtScheme",Zl,Yl]].forEach(function(t){if(!(n=e.match(t[1])))throw new Error(t[0]+" not found in themeElements");t[2](n,a,r)})}var Ql=/]*)>[\s\S]*<\/a:themeElements>/;function Ws(e,a){(!e||e.length===0)&&(e=e1());var r,n={};if(!(r=e.match(Ql)))throw new Error("themeElements not found in theme");return ql(r[0],n,a),n.raw=e,n}function e1(e,a){if(a&&a.themeXLSX)return a.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[Qn];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 r1(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=qn(s,{type:"array"})}catch{return}var c=lr(i,"theme/theme/theme1.xml",!0);if(c)return Ws(c,r)}}function a1(e){return e.read_shift(4)}function t1(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=n1(e,4);break;case 2:a.xclrValue=ys(e);break;case 3:a.xclrValue=a1(e);break;case 4:e.l+=4;break}return e.l+=8,a}function n1(e,a){return Qe(e,a)}function s1(e,a){return Qe(e,a)}function i1(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]=t1(e);break;case 6:n[1]=s1(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 c1(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(i1(e,r-e.l));return{ixfe:n,ext:s}}function f1(e,a){a.forEach(function(r){switch(r[0]){}})}function o1(e,a){return{flags:e.read_shift(4),version:e.read_shift(4),name:qe(e)}}function l1(e){for(var a=[],r=e.read_shift(4);r-- >0;)a.push([e.read_shift(4),e.read_shift(4)]);return a}function h1(e){return e.l+=4,e.read_shift(4)!=0}function u1(e,a,r){var n={Types:[],Cell:[],Value:[]},t=r||{},s=[],i=!1,c=2;return Ur(e,function(f,l,o){switch(o){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(o),i=!0;break;case 36:s.pop(),i=!1;break;default:if(!l.T){if(!i||t.WTF&&s[s.length-1]!=35)throw new Error("Unexpected record 0x"+o.toString(16))}}}),n}function x1(e,a,r){var n={Types:[],Cell:[],Value:[]};if(!e)return n;var t=!1,s=2,i;return e.replace(er,function(c){var f=oe(c);switch(Or(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 xn(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]),l={author:f.authorId&&r[f.authorId]||"sheetjsghost",ref:f.ref,guid:f.guid},o=nr(f.ref);if(!(a.sheetRows&&a.sheetRows<=o.r)){var h=i.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),x=!!h&&!!h[1]&&u0(h[1])||{r:"",t:"",h:""};l.r=x.r,x.r==""&&(x.t=x.h=""),l.t=(x.t||"").replace(/\r\n/g,` `).replace(/\r/g,` `),a.cellHTML&&(l.h=x.h),n.push(l)}}}}),n}function E1(e,a){var r=[],n=!1,t={},s=0;return e.replace(er,function(c,f){var l=oe(c);switch(Or(l[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 "+l[0]+" in threaded comments")}return c}),r}function T1(e,a){var r=[],n=!1;return e.replace(er,function(s){var i=oe(s);switch(Or(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 k1(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 w1=qe;function F1(e,a){var r=[],n=[],t={},s=!1;return Ur(e,function(c,f,l){switch(l){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"+l.toString(16))}}}),r}var A1="application/vnd.ms-office.vbaProject";function S1(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 C1(){return{"!type":"dialog"}}function y1(){return{"!type":"dialog"}}function D1(){return{"!type":"macro"}}function O1(){return{"!type":"macro"}}var pa=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 l=s.length>0?parseInt(s,10)|0:0,o=i.length>0?parseInt(i,10)|0:0;return c?o+=a.c:--o,f?l+=a.r:--l,t+(c?"":"$")+He(o)+(f?"":"$")+ze(l)}return function(t,s){return a=s,t.replace(e,r)}}(),Gs=/(^|[^._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,R1=function(){return function(a,r){return a.replace(Gs,function(n,t,s,i,c,f){var l=i0(i)-(s?0:r.c),o=s0(f)-(c?0:r.r),h=o==0?"":c?o+1:"["+o+"]",x=l==0?"":s?l+1:"["+l+"]";return t+"R"+h+"C"+x})}}();function Xs(e,a){return e.replace(Gs,function(r,n,t,s,i,c){return n+(t=="$"?t+s:He(i0(s)+a.c))+(i=="$"?i+c:ze(s0(c)+a.r))})}function I1(e,a,r){var n=Ta(a),t=n.s,s=nr(r),i={r:s.r-t.r,c:s.c-t.c};return Xs(e,i)}function N1(e){return e.length!=1}function dn(e){return e.replace(/_xlfn\./g,"")}function Le(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 $s(e,a,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return zs(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 zs(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 P1(e,a,r){if(r.biff<8)return zs(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 Ks(e,a,r){if(r&&r.biff>=2&&r.biff<=5)return L1(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 L1(e){var a=jr(e,2),r=e.read_shift(1);return{r:a[0],c:r,cRel:a[1],rRel:a[2]}}function M1(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 B1(e,a,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return b1(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 b1(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 U1(e,a,r){var n=(e[e.l++]&96)>>5,t=$s(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,t]}function H1(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=$s(e,s,r);return[n,t,i]}function V1(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 W1(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 G1(e,a,r){var n=(e[e.l++]&96)>>5,t=P1(e,a-1,r);return[n,t]}function X1(e,a,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function vn(e){var a=e[e.l+1]&1,r=1;return e.l+=4,[a,r]}function $1(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 z1(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 K1(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 Y1(e){var a=e[e.l+1]&255?1:0;return e.l+=2,[a,e.read_shift(2)]}function j1(e,a,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function Ys(e){var a=e.read_shift(1),r=e.read_shift(1);return[a,r]}function J1(e){return e.read_shift(2),Ys(e)}function Z1(e){return e.read_shift(2),Ys(e)}function q1(e,a,r){var n=(e[e.l]&96)>>5;e.l+=1;var t=Ks(e,0,r);return[n,t]}function Q1(e,a,r){var n=(e[e.l]&96)>>5;e.l+=1;var t=B1(e,0,r);return[n,t]}function eh(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=Ks(e,0,r);return[n,t,s]}function rh(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[au[t],Zs[t],n]}function ah(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)]:th(e);return[t,(s[0]===0?Zs:ru)[s[1]]]}function th(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function nh(e,a,r){e.l+=r&&r.biff==2?3:4}function sh(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 ih(e){return e.l++,la[e.read_shift(1)]}function ch(e){return e.l++,e.read_shift(2)}function fh(e){return e.l++,e.read_shift(1)!==0}function oh(e){return e.l++,Je(e)}function lh(e,a,r){return e.l++,Ja(e,a-1,r)}function hh(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]=Pe(e,1)?"TRUE":"FALSE",a!=12&&(e.l+=7);break;case 37:case 16:r[1]=la[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]=ha(e,0,{biff:a>0&&a<8?2:a});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function uh(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:wt)(e));return t}function xh(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]=hh(e,r.biff);return i}function dh(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 vh(e,a,r){if(r.biff==5)return ph(e);var n=e.read_shift(1)>>>5&3,t=e.read_shift(2),s=e.read_shift(4);return[n,t,s]}function ph(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 gh(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 mh(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 _h(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 Eh(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 Th=Qe,kh=Qe,wh=Qe;function qa(e,a,r){return e.l+=2,[M1(e)]}function d0(e){return e.l+=6,[]}var Fh=qa,Ah=d0,Sh=d0,Ch=qa;function js(e){return e.l+=2,[Be(e),e.read_shift(2)&1]}var yh=qa,Dh=js,Oh=d0,Rh=qa,Ih=qa,Nh=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function Ph(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=Nh[r>>2&31];return{ixti:a,coltype:r&3,rt:i,idx:n,c:t,C:s}}function Lh(e){return e.l+=2,[e.read_shift(4)]}function Mh(e,a,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function Bh(e,a,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function bh(e){var a=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[a,r]}function Uh(e){var a=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[a,r]}function Hh(e){return e.l+=4,[0,0]}var pn={1:{n:"PtgExp",f:sh},2:{n:"PtgTbl",f:wh},3:{n:"PtgAdd",f:Le},4:{n:"PtgSub",f:Le},5:{n:"PtgMul",f:Le},6:{n:"PtgDiv",f:Le},7:{n:"PtgPower",f:Le},8:{n:"PtgConcat",f:Le},9:{n:"PtgLt",f:Le},10:{n:"PtgLe",f:Le},11:{n:"PtgEq",f:Le},12:{n:"PtgGe",f:Le},13:{n:"PtgGt",f:Le},14:{n:"PtgNe",f:Le},15:{n:"PtgIsect",f:Le},16:{n:"PtgUnion",f:Le},17:{n:"PtgRange",f:Le},18:{n:"PtgUplus",f:Le},19:{n:"PtgUminus",f:Le},20:{n:"PtgPercent",f:Le},21:{n:"PtgParen",f:Le},22:{n:"PtgMissArg",f:Le},23:{n:"PtgStr",f:lh},26:{n:"PtgSheet",f:Mh},27:{n:"PtgEndSheet",f:Bh},28:{n:"PtgErr",f:ih},29:{n:"PtgBool",f:fh},30:{n:"PtgInt",f:ch},31:{n:"PtgNum",f:oh},32:{n:"PtgArray",f:X1},33:{n:"PtgFunc",f:rh},34:{n:"PtgFuncVar",f:ah},35:{n:"PtgName",f:dh},36:{n:"PtgRef",f:q1},37:{n:"PtgArea",f:U1},38:{n:"PtgMemArea",f:gh},39:{n:"PtgMemErr",f:Th},40:{n:"PtgMemNoMem",f:kh},41:{n:"PtgMemFunc",f:mh},42:{n:"PtgRefErr",f:_h},43:{n:"PtgAreaErr",f:V1},44:{n:"PtgRefN",f:Q1},45:{n:"PtgAreaN",f:G1},46:{n:"PtgMemAreaN",f:bh},47:{n:"PtgMemNoMemN",f:Uh},57:{n:"PtgNameX",f:vh},58:{n:"PtgRef3d",f:eh},59:{n:"PtgArea3d",f:H1},60:{n:"PtgRefErr3d",f:Eh},61:{n:"PtgAreaErr3d",f:W1},255:{}},Vh={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},Wh={1:{n:"PtgElfLel",f:js},2:{n:"PtgElfRw",f:Rh},3:{n:"PtgElfCol",f:Fh},6:{n:"PtgElfRwV",f:Ih},7:{n:"PtgElfColV",f:Ch},10:{n:"PtgElfRadical",f:yh},11:{n:"PtgElfRadicalS",f:Oh},13:{n:"PtgElfColS",f:Ah},15:{n:"PtgElfColSV",f:Sh},16:{n:"PtgElfRadicalLel",f:Dh},25:{n:"PtgList",f:Ph},29:{n:"PtgSxName",f:Lh},255:{}},Gh={0:{n:"PtgAttrNoop",f:Hh},1:{n:"PtgAttrSemi",f:j1},2:{n:"PtgAttrIf",f:K1},4:{n:"PtgAttrChoose",f:$1},8:{n:"PtgAttrGoto",f:z1},16:{n:"PtgAttrSum",f:nh},32:{n:"PtgAttrBaxcel",f:vn},33:{n:"PtgAttrBaxcel",f:vn},64:{n:"PtgAttrSpace",f:J1},65:{n:"PtgAttrSpaceSemi",f:Z1},128:{n:"PtgAttrIfError",f:Y1},255:{}};function Qa(e,a,r,n){if(n.biff<8)return Qe(e,a);for(var t=e.l+a,s=[],i=0;i!==r.length;++i)switch(r[i][0]){case"PtgArray":r[i][1]=xh(e,0,n),s.push(r[i][1]);break;case"PtgMemArea":r[i][2]=uh(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(Qe(e,a)),s}function et(e,a,r){for(var n=e.l+a,t,s,i=[];n!=e.l;)a=n-e.l,s=e[e.l],t=pn[s]||pn[Vh[s]],(s===24||s===25)&&(t=(s===24?Wh:Gh)[e[e.l+1]]),!t||!t.f?Qe(e,a):i.push([t.n,t.f(e,a,r)]);return i}function Xh(e){for(var a=[],r=0;r=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function zh(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 Js(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 gn(e,a,r){var n=Js(e,a,r);return n=="#REF"?n:zh(n,r)}function je(e,a,r,n,t){var s=t&&t.biff||8,i={s:{c:0,r:0},e:{c:0,r:0}},c=[],f,l,o,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])}l=l+g,u=-1}c.push(l+$h[_[0]]+f);break;case"PtgIsect":f=c.pop(),l=c.pop(),c.push(l+" "+f);break;case"PtgUnion":f=c.pop(),l=c.pop(),c.push(l+","+f);break;case"PtgRange":f=c.pop(),l=c.pop(),c.push(l+":"+f);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":o=Na(_[1][1],i,t),c.push(Pa(o,s));break;case"PtgRefN":o=r?Na(_[1][1],r,t):_[1][1],c.push(Pa(o,s));break;case"PtgRef3d":h=_[1][1],o=Na(_[1][2],i,t),v=gn(n,h,t),c.push(v+"!"+Pa(o,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=J0(_[1][1],r?{s:r}:i,t),c.push(Ot(d,t));break;case"PtgArea":d=J0(_[1][1],i,t),c.push(Ot(d,t));break;case"PtgArea3d":h=_[1][1],d=_[1][2],v=gn(n,h,t),c.push(v+"!"+Ot(d,t));break;case"PtgAttrSum":c.push("SUM("+c.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":x=_[1][2];var F=(n.names||[])[x-1]||(n[0]||[])[x],V=F?F.Name:"SH33TJSNAME"+String(x);V&&V.slice(0,6)=="_xlfn."&&!t.xlfn&&(V=V.slice(6)),c.push(V);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=(Js(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":o={c:_[1][1],r:_[1][0]};var re={c:r.c,r:r.r};if(n.sharedf[ue(o)]){var ce=n.sharedf[ue(o)];c.push(je(ce,i,re,n,t))}else{var ie=!1;for(f=0;f!=n.arrayf.length;++f)if(l=n.arrayf[f],!(o.cl[0].e.c)&&!(o.rl[0].e.r)){c.push(je(l[1],i,re,n,t)),ie=!0;break}ie||c.push(_[1])}break;case"PtgArray":c.push("{"+Xh(_[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 Ae=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(t.biff!=3&&u>=0&&Ae.indexOf(e[0][S][0])==-1){_=e[0][u];var W=!0;switch(_[1][0]){case 4:W=!1;case 0:g=De(" ",_[1][1]);break;case 5:W=!1;case 1:g=De("\r",_[1][1]);break;default:if(g="",t.WTF)throw new Error("Unexpected PtgAttrSpaceType "+_[1][0])}c.push((W?g:"")+c.pop()+(W?"":g)),u=-1}}if(c.length>1&&t.WTF)throw new Error("bad formula stack");return c[0]}function Kh(e,a,r){var n=e.l+a,t=r.biff==2?1:2,s,i=e.read_shift(t);if(i==65535)return[[],Qe(e,a-2)];var c=et(e,i,r);return a!==i+t&&(s=Qa(e,a-i-t,c,r)),e.l=n,[c,s]}function Yh(e,a,r){var n=e.l+a,t=r.biff==2?1:2,s,i=e.read_shift(t);if(i==65535)return[[],Qe(e,a-2)];var c=et(e,i,r);return a!==i+t&&(s=Qa(e,a-i-t,c,r)),e.l=n,[c,s]}function jh(e,a,r,n){var t=e.l+a,s=et(e,n,r),i;return t!==e.l&&(i=Qa(e,t-e.l,s,r)),[s,i]}function Jh(e,a,r){var n=e.l+a,t,s=e.read_shift(2),i=et(e,s,r);return s==65535?[[],Qe(e,a-2)]:(a!==s+2&&(t=Qa(e,n-s-2,i,r)),[i,t])}function Zh(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 Nt(e,a,r){var n=e.l+a,t=Rr(e);r.biff==2&&++e.l;var s=Zh(e),i=e.read_shift(1);r.biff!=2&&(e.read_shift(1),r.biff>=5&&e.read_shift(4));var c=Yh(e,n-e.l,r);return{cell:t,val:s[0],formula:c,shared:i>>3&1,tt:s[1]}}function Ft(e,a,r){var n=e.read_shift(4),t=et(e,n,r),s=e.read_shift(4),i=s>0?Qa(e,s,t,r):null;return[t,i]}var qh=Ft,At=Ft,Qh=Ft,eu=Ft,ru={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"},Zs={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"},au={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 mn(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 Pt(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 ba={},ga={};function Ua(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 qs(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=Ge(e.v)),(!n||n.cellText!==!1)&&e.t!=="z")try{if(de[a]==null&&ra(ac[a]||"General",a),e.t==="e")e.w=e.w||la[e.v];else if(a===0)if(e.t==="n")(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Va(e.v);else if(e.t==="d"){var i=ir(e.v);(i|0)===i?e.w=i.toString(10):e.w=Va(i)}else{if(e.v===void 0)return"";e.w=ta(e.v,ga)}else e.t==="d"?e.w=gr(a,ir(e.v),ga):e.w=gr(a,e.v,ga)}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=mt(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=mt(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 tu(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 nu=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,su=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,iu=/<(?:\w:)?hyperlink [^>]*>/mg,cu=/"(\w*:\w*)"/,fu=/<(?:\w:)?col\b[^>]*[\/]?>/g,ou=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,lu=/<(?:\w:)?pageMargins[^>]*\/>/g,Qs=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,hu=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,uu=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function xu(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}},l="",o="",h=e.match(su);h?(l=e.slice(0,h.index),o=e.slice(h.index+h[0].length)):l=o=e;var x=l.match(Qs);x?v0(x[0],c,t,r):(x=l.match(hu))&&du(x[0],x[1]||"",c,t,r);var d=(l.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(d>0){var v=l.slice(d,d+50).match(cu);v&&tu(c,v[1])}var u=l.match(uu);u&&u[1]&&Eu(u[1],t);var g=[];if(a.cellStyles){var S=l.match(fu);S&&gu(g,S)}h&&Tu(h[1],c,a,f,s,i);var y=o.match(ou);y&&(c["!autofilter"]=mu(y[0]));var _=[],N=o.match(nu);if(N)for(d=0;d!=N.length;++d)_[d]=Oe(N[d].slice(N[d].indexOf('"')+1));var b=o.match(iu);b&&vu(c,b,n);var I=o.match(lu);if(I&&(c["!margins"]=pu(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 F=Oe(c["!ref"]);a.sheetRows<=+F.e.r&&(F.e.r=a.sheetRows-1,F.e.r>f.e.r&&(F.e.r=f.e.r),F.e.rf.e.c&&(F.e.c=f.e.c),F.e.c0&&(c["!cols"]=g),_.length>0&&(c["!merges"]=_),c}function v0(e,a,r,n){var t=oe(e);r.Sheets[n]||(r.Sheets[n]={}),t.codeName&&(r.Sheets[n].CodeName=Te(Fe(t.codeName)))}function du(e,a,r,n,t){v0(e.slice(0,e.indexOf(">")),r,n,t)}function vu(e,a,r){for(var n=Array.isArray(e),t=0;t!=a.length;++t){var s=oe(Fe(a[t]),!0);if(!s.ref)return;var i=((r||{})["!id"]||[])[s.id];i?(s.Target=i.Target,s.location&&(s.Target+="#"+Te(s.location))):(s.Target="#"+Te(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 l=c.s.c;l<=c.e.c;++l){var o=ue({c:l,r:f});n?(e[f]||(e[f]=[]),e[f][l]||(e[f][l]={t:"z",v:void 0}),e[f][l].l=s):(e[o]||(e[o]={t:"z",v:void 0}),e[o].l=s)}}}function pu(e){var a={};return["left","right","top","bottom","header","footer"].forEach(function(r){e[r]&&(a[r]=parseFloat(e[r]))}),a}function gu(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,x0(t.width)),_a(t);s<=i;)e[s++]=$e(t)}}function mu(e){var a={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return a}var _u=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function Eu(e,a){a.Views||(a.Views=[{}]),(e.match(_u)||[]).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 Tu=function(){var e=/<(?:\w+:)?c[ \/>]/,a=/<\/(?:\w+:)?row>/,r=/r=["']([^"']*)["']/,n=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,t=/ref=["']([^"']*)["']/,s=Wa("v"),i=Wa("f");return function(f,l,o,h,x,d){for(var v=0,u="",g=[],S=[],y=0,_=0,N=0,b="",I,F,V=0,D=0,z,G,P=0,J=0,fe=Array.isArray(d.CellXf),re,ce=[],ie=[],Ae=Array.isArray(l),W=[],le={},he=!1,A=!!o.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(o&&o.cellStyles){if(F=oe(u.slice(ee,v),!0),V=F.r!=null?parseInt(F.r,10):V+1,D=-1,o.sheetRows&&o.sheetRows=v)break;if(F=oe(u.slice(ee,v),!0),V=F.r!=null?parseInt(F.r,10):V+1,D=-1,!(o.sheetRows&&o.sheetRowsV-1&&(h.s.r=V-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(++_,F=oe(u.slice(0,_),!0),F.r||(F.r=ue({r:V-1,c:D})),b=u.slice(_),I={t:""},(S=b.match(s))!=null&&S[1]!==""&&(I.v=Te(S[1])),o.cellFormula){if((S=b.match(i))!=null&&S[1]!==""){if(I.f=Te(Fe(S[1])).replace(/\r\n/g,` `),o.xlfn||(I.f=dn(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=Te(Fe(S[1]));o.xlfn||(q=dn(q)),ie[parseInt(G.si,10)]=[G,q,F.r]}}else(S=b.match(/]*\/>/))&&(G=oe(S[0]),ie[G.si]&&(I.f=I1(ie[G.si][1],ie[G.si][2],F.r)));var j=nr(F.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(F.t==null&&I.v===void 0)if(I.f||I.F)I.v=0,I.t="n";else if(A)I.t="z";else continue;else I.t=F.t||"n";switch(h.s.c>D&&(h.s.c=D),h.e.c"u"){if(!A)continue;I.t="z"}else z=ba[parseInt(I.v,10)],I.v=z.t,I.r=z.r,o.cellHTML&&(I.h=z.h);break;case"str":I.t="s",I.v=I.v!=null?Fe(I.v):"",o.cellHTML&&(I.h=a0(I.v));break;case"inlineStr":S=b.match(n),I.t="s",S!=null&&(z=u0(S[1]))?(I.v=z.t,o.cellHTML&&(I.h=z.h)):I.v="";break;case"b":I.v=Se(I.v);break;case"d":o.cellDates?I.v=Ge(I.v,1):(I.v=ir(Ge(I.v,1)),I.t="n");break;case"e":(!o||o.cellText!==!1)&&(I.w=I.v),I.v=Es[I.v];break}if(P=J=0,re=null,fe&&F.s!==void 0&&(re=d.CellXf[F.s],re!=null&&(re.numFmtId!=null&&(P=re.numFmtId),o.cellStyles&&re.fillId!=null&&(J=re.fillId))),qs(I,P,J,o,x,d),o.cellDates&&fe&&I.t=="n"&&Ea(de[P])&&(I.t="d",I.v=kt(I.v)),F.cm&&o.xlmeta){var Ee=(o.xlmeta.Cell||[])[+F.cm-1];Ee&&Ee.type=="XLDAPR"&&(I.D=!0)}if(Ae){var C=nr(F.r);l[C.r]||(l[C.r]=[]),l[C.r][C.c]=I}else l[F.r]=I}}}}W.length>0&&(l["!rows"]=W)}}();function ku(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 wu=oa;function Fu(){}function Au(e,a){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=$c(e),r}function Su(e){var a=mr(e);return[a]}function Cu(e){var a=fa(e);return[a]}function yu(e){var a=mr(e),r=e.read_shift(1);return[a,r,"b"]}function Du(e){var a=fa(e),r=e.read_shift(1);return[a,r,"b"]}function Ou(e){var a=mr(e),r=e.read_shift(1);return[a,r,"e"]}function Ru(e){var a=fa(e),r=e.read_shift(1);return[a,r,"e"]}function Iu(e){var a=mr(e),r=e.read_shift(4);return[a,r,"s"]}function Nu(e){var a=fa(e),r=e.read_shift(4);return[a,r,"s"]}function Pu(e){var a=mr(e),r=Je(e);return[a,r,"n"]}function ei(e){var a=fa(e),r=Je(e);return[a,r,"n"]}function Lu(e){var a=mr(e),r=o0(e);return[a,r,"n"]}function Mu(e){var a=fa(e),r=o0(e);return[a,r,"n"]}function Bu(e){var a=mr(e),r=c0(e);return[a,r,"is"]}function bu(e){var a=mr(e),r=qe(e);return[a,r,"str"]}function Uu(e){var a=fa(e),r=qe(e);return[a,r,"str"]}function Hu(e,a,r){var n=e.l+a,t=mr(e);t.r=r["!row"];var s=e.read_shift(1),i=[t,s,"b"];if(r.cellFormula){e.l+=2;var c=At(e,n-e.l,r);i[3]=je(c,null,t,r.supbooks,r)}else e.l=n;return i}function Vu(e,a,r){var n=e.l+a,t=mr(e);t.r=r["!row"];var s=e.read_shift(1),i=[t,s,"e"];if(r.cellFormula){e.l+=2;var c=At(e,n-e.l,r);i[3]=je(c,null,t,r.supbooks,r)}else e.l=n;return i}function Wu(e,a,r){var n=e.l+a,t=mr(e);t.r=r["!row"];var s=Je(e),i=[t,s,"n"];if(r.cellFormula){e.l+=2;var c=At(e,n-e.l,r);i[3]=je(c,null,t,r.supbooks,r)}else e.l=n;return i}function Gu(e,a,r){var n=e.l+a,t=mr(e);t.r=r["!row"];var s=qe(e),i=[t,s,"str"];if(r.cellFormula){e.l+=2;var c=At(e,n-e.l,r);i[3]=je(c,null,t,r.supbooks,r)}else e.l=n;return i}var Xu=oa;function $u(e,a){var r=e.l+a,n=oa(e),t=f0(e),s=qe(e),i=qe(e),c=qe(e);e.l=r;var f={rfx:n,relId:t,loc:s,display:c};return i&&(f.Tooltip=i),f}function zu(){}function Ku(e,a,r){var n=e.l+a,t=gs(e),s=e.read_shift(1),i=[t];if(i[2]=s,r.cellFormula){var c=qh(e,n-e.l,r);i[1]=c}else e.l=n;return i}function Yu(e,a,r){var n=e.l+a,t=oa(e),s=[t];if(r.cellFormula){var i=eu(e,n-e.l,r);s[1]=i,e.l=n}else e.l=n;return s}var ju=["left","right","top","bottom","header","footer"];function Ju(e){var a={};return ju.forEach(function(r){a[r]=Je(e)}),a}function Zu(e){var a=e.read_shift(2);return e.l+=28,{RTL:a&32}}function qu(){}function Qu(){}function ex(e,a,r,n,t,s,i){if(!e)return e;var c=a||{};n||(n={"!id":{}});var f=c.dense?[]:{},l,o={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 F=0,V=!1,D=[],z={},G=c.supbooks||t.supbooks||[[]];if(G.sharedf=z,G.arrayf=D,G.SheetNames=t.SheetNames||t.Sheets.map(function(Ae){return Ae.name}),!c.supbooks&&(c.supbooks=G,t.Names))for(var P=0;P=A[0].s.r&&d.r<=A[0].e.r&&S>=A[0].s.c&&S<=A[0].e.c&&(v.F=_e(A[0]),V=!0)}!V&&W.length>3&&(v.f=W[3])}if(o.s.r>d.r&&(o.s.r=d.r),o.s.c>S&&(o.s.c=S),o.e.rd.r&&(o.s.r=d.r),o.s.c>S&&(o.s.c=S),o.e.r=W.s;)J[W.e--]={width:W.w/256,hidden:!!(W.flags&1),level:W.level},re||(re=!0,x0(W.w/256)),_a(J[W.e+1]);break;case 161:f["!autofilter"]={ref:_e(W)};break;case 476:f["!margins"]=W;break;case 147:t.Sheets[r]||(t.Sheets[r]={}),W.name&&(t.Sheets[r].CodeName=W.name),(W.above||W.left)&&(f["!outline"]={above:W.above,left:W.left});break;case 137:t.Views||(t.Views=[{}]),t.Views[0]||(t.Views[0]={}),W.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"]&&(o.s.r<2e6||l&&(l.e.r>0||l.e.c>0||l.s.r>0||l.s.c>0))&&(f["!ref"]=_e(l||o)),c.sheetRows&&f["!ref"]){var ie=Oe(f["!ref"]);c.sheetRows<=+ie.e.r&&(ie.e.r=c.sheetRows-1,ie.e.r>o.e.r&&(ie.e.r=o.e.r),ie.e.ro.e.c&&(ie.e.c=o.e.c),ie.e.c0&&(f["!merges"]=I),J.length>0&&(f["!cols"]=J),fe.length>0&&(f["!rows"]=fe),f}function rx(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=Te((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 ax(e,a,r,n,t,s){var i=s||{"!type":"chart"};if(!e)return s;var c=0,f=0,l="A",o={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(h){var x=rx(h);o.s.r=o.s.c=0,o.e.c=c,l=He(c),x[0].forEach(function(d,v){i[l+ze(v)]={t:"n",v:d,z:x[1]},f=v}),o.e.r0&&(i["!ref"]=_e(o)),i}function tx(e,a,r,n,t){if(!e)return e;n||(n={"!id":{}});var s={"!type":"chart","!drawel":null,"!rel":""},i,c=e.match(Qs);return c&&v0(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 nx(e,a){e.l+=10;var r=qe(e);return{name:r}}function sx(e,a,r,n,t){if(!e)return e;n||(n={"!id":{}});var s={"!type":"chart","!drawel":null,"!rel":""},i=!1;return Ur(e,function(f,l,o){switch(o){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(!(l.T>0)){if(!(l.T<0)){if(!i||a.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}}}},a),n["!id"][s["!rel"]]&&(s["!drawel"]=n["!id"][s["!rel"]]),s}var ri=[["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"]],ix=[["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"]],cx=[],fx=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function _n(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 En(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 ai(e){En(e.WBProps,ri),En(e.CalcPr,fx),_n(e.WBView,ix),_n(e.Sheets,cx),ga.date1904=Se(e.WBProps.date1904)}var ox="][*?/\\".split("");function lx(e,a){if(e.length>31){if(a)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var r=!0;return ox.forEach(function(n){if(e.indexOf(n)!=-1){if(!a)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");r=!1}}),r}var hx=/<\w+:workbook/;function ux(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(er,function(f,l){var o=oe(f);switch(Or(o[0])){case"":break;case"":case"":break;case"":break;case"":ri.forEach(function(h){if(o[h[0]]!=null)switch(h[2]){case"bool":r.WBProps[h[0]]=Se(o[h[0]]);break;case"int":r.WBProps[h[0]]=parseInt(o[h[0]],10);break;default:r.WBProps[h[0]]=o[h[0]]}}),o.codeName&&(r.WBProps.CodeName=Fe(o.codeName));break;case"":break;case"":break;case"":case"":break;case"":delete o[0],r.WBView.push(o);break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":n=!1;break;case"":s.Ref=Te(Fe(e.slice(i,l))),r.Names.push(s);break;case"":break;case"":delete o[0],r.CalcPr=o;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?qe(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 vx(e,a){var r={};return e.read_shift(4),r.ArchID=e.read_shift(4),e.l+=a-8,r}function px(e,a,r){var n=e.l+a;e.l+=4,e.l+=1;var t=e.read_shift(4),s=zc(e),i=Qh(e,0,r),c=f0(e);e.l=n;var f={Name:s,Ptg:i};return t<268435455&&(f.Sheet=t),c&&(f.Comment=c),f}function gx(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=[],Tt[16]={n:"BrtFRTArchID$",f:vx},Ur(e,function(f,l,o){switch(o){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=je(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([o,f]):i[0]=[o,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(o),t=!0;break;case 36:n.pop(),t=!1;break;case 37:n.push(o),t=!0;break;case 38:n.pop(),t=!1;break;case 16:break;default:if(!l.T){if(!t||a.WTF&&n[n.length-1]!=37&&n[n.length-1]!=35)throw new Error("Unexpected record 0x"+o.toString(16))}}},a),ai(r),r.Names=s,r.supbooks=i,r}function mx(e,a,r){return a.slice(-4)===".bin"?gx(e,r):ux(e,r)}function _x(e,a,r,n,t,s,i,c){return a.slice(-4)===".bin"?ex(e,n,r,t,s,i,c):xu(e,n,r,t,s,i,c)}function Ex(e,a,r,n,t,s,i,c){return a.slice(-4)===".bin"?sx(e,n,r,t,s):tx(e,n,r,t,s)}function Tx(e,a,r,n,t,s,i,c){return a.slice(-4)===".bin"?D1():O1()}function kx(e,a,r,n,t,s,i,c){return a.slice(-4)===".bin"?C1():y1()}function wx(e,a,r,n){return a.slice(-4)===".bin"?Xl(e,r,n):bl(e,r,n)}function Fx(e,a,r){return Ws(e,r)}function Ax(e,a,r){return a.slice(-4)===".bin"?il(e,r):nl(e,r)}function Sx(e,a,r){return a.slice(-4)===".bin"?F1(e,r):_1(e,r)}function Cx(e,a,r){return a.slice(-4)===".bin"?p1(e):d1(e)}function yx(e,a,r,n){return r.slice(-4)===".bin"?g1(e,a,r,n):void 0}function Dx(e,a,r){return a.slice(-4)===".bin"?u1(e,a,r):x1(e,a,r)}var ti=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,ni=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function _r(e,a){var r=e.split(/\s+/),n=[];if(a||(n[0]=r[0]),r.length===1)return n;var t=e.match(ti),s,i,c,f;if(t)for(f=0;f!=t.length;++f)s=t[f].match(ni),(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 Ox(e){var a=e.split(/\s+/),r={};if(a.length===1)return r;var n=e.match(ti),t,s,i,c;if(n)for(c=0;c!=n.length;++c)t=n[c].match(ni),(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 Ha;function Rx(e,a){var r=Ha[e]||Te(e);return r==="General"?ta(a):gr(r,a)}function Ix(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=Ge(n);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+r[0])}e[Te(a)]=t}function Nx(e,a,r){if(e.t!=="z"){if(!r||r.cellText!==!1)try{e.t==="e"?e.w=e.w||la[e.v]:a==="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Va(e.v):e.w=ta(e.v):e.w=Rx(a||"General",e.v)}catch(s){if(r.WTF)throw s}try{var n=Ha[a]||a||"General";if(r.cellNF&&(e.z=n),r.cellDates&&e.t=="n"&&Ea(n)){var t=ea(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 Px(e,a,r){if(r.cellStyles&&a.Interior){var n=a.Interior;n.Pattern&&(n.patternType=Il[n.Pattern]||n.Pattern)}e[a.ID]=a}function Lx(e,a,r,n,t,s,i,c,f,l){var o="General",h=n.StyleID,x={};l=l||{};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&&(o=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=V0(Te(e)),n.v=e.indexOf("<")>-1?Te(a||e).replace(/<.*?>/g,""):n.r;break;case"DateTime":e.slice(-1)!="Z"&&(e+="Z"),n.v=(Ge(e)-new Date(Date.UTC(1899,11,30)))/(24*60*60*1e3),n.v!==n.v?n.v=Te(e):n.v<60&&(n.v=n.v-1),(!o||o=="General")&&(o="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=Es[e],l.cellText!==!1&&(n.w=e);break;default:e==""&&a==""?n.t="z":(n.t="s",n.v=V0(a||e));break}if(Nx(n,o,l),l.cellFormula!==!1)if(n.Formula){var u=Te(n.Formula);u.charCodeAt(0)==61&&(u=u.slice(1)),n.f=pa(u,t),delete n.Formula,n.ArrayRange=="RC"?n.F=pa("RC:RC",t):n.ArrayRange&&(n.F=pa(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]);l.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 Mx(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 Lt(e,a){var r=a||{};$n();var n=ya(t0(e));(r.type=="binary"||r.type=="array"||r.type=="base64")&&(n=Fe(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=$e(r);return i.type="string",Xa.to_workbook(n,i)}if(t.indexOf("=0&&(s=!0)}),s)return $x(n,r);Ha={"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=[],l,o={},h=[],x=r.dense?[]:{},d="",v={},u={},g=_r(''),S=0,y=0,_=0,N={s:{r:2e6,c:2e6},e:{r:0,c:0}},b={},I={},F="",V=0,D=[],z={},G={},P=0,J=[],fe=[],re={},ce=[],ie,Ae=!1,W=[],le=[],he={},A=0,U=0,R={Sheets:[],WBProps:{date1904:!1}},O={};Ga.lastIndex=0,n=n.replace(//mg,"");for(var K="";c=Ga.exec(n);)switch(c[3]=(K=c[3]).toLowerCase()){case"data":if(K=="data"){if(c[1]==="/"){if((l=f.pop())[0]!==c[3])throw new Error("Bad state: "+l.join("|"))}else c[0].charAt(c[0].length-2)!=="/"&&f.push([c[3],!0]);break}if(f[f.length-1][1])break;c[1]==="/"?Lx(n.slice(S,c.index),F,g,f[f.length-1][0]=="comment"?re:v,{c:y,r:_},b,ce[y],u,W,r):(F="",g=_r(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[He(y)+ze(_)]=v),v.HRef&&(v.l={Target:Te(v.HRef)},v.HRefScreenTip&&(v.l.Tooltip=v.HRefScreenTip),delete v.HRef,delete v.HRefScreenTip),(v.MergeAcross||v.MergeDown)&&(A=y+(parseInt(v.MergeAcross,10)|0),U=_+(parseInt(v.MergeDown,10)|0),D.push({s:{c:y,r:_},e:{c:A,r:U}})),!r.sheetStubs)v.MergeAcross?y=A+1:++y;else if(v.MergeAcross||v.MergeDown){for(var ee=y;ee<=A;++ee)for(var ne=_;ne<=U;++ne)(ee>y||ne>_)&&(r.dense?(x[ne]||(x[ne]=[]),x[ne][ee]={t:"z"}):x[He(ee)+ze(ne)]={t:"z"});y=A+1}else++y;else v=Ox(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=_r(c[0]),u.Index&&(_=+u.Index-1)),y=0,++_):(u=_r(c[0]),u.Index&&(_=+u.Index-1),he={},(u.AutoFitHeight=="0"||u.Height)&&(he.hpx=parseInt(u.Height,10),he.hpt=Vs(he.hpx),le[_]=he),u.Hidden=="1"&&(he.hidden=!0,le[_]=he));break;case"worksheet":if(c[1]==="/"){if((l=f.pop())[0]!==c[3])throw new Error("Bad state: "+l.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),o[d]=x}else N={s:{r:2e6,c:2e6},e:{r:0,c:0}},_=y=0,f.push([c[3],!1]),l=_r(c[0]),d=Te(l.Name),x=r.dense?[]:{},D=[],W=[],le=[],O={name:d,Hidden:0},R.Sheets.push(O);break;case"table":if(c[1]==="/"){if((l=f.pop())[0]!==c[3])throw new Error("Bad state: "+l.join("|"))}else{if(c[0].slice(-2)=="/>")break;f.push([c[3],!1]),ce=[],Ae=!1}break;case"style":c[1]==="/"?Px(b,I,r):I=_r(c[0]);break;case"numberformat":I.nf=Te(_r(c[0]).Format||"General"),Ha[I.nf]&&(I.nf=Ha[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){ra(I.nf,q);break}}break;case"column":if(f[f.length-1][0]!=="table")break;if(ie=_r(c[0]),ie.Hidden&&(ie.hidden=!0,delete ie.Hidden),ie.Width&&(ie.wpx=parseInt(ie.Width,10)),!Ae&&ie.wpx>10){Ae=!0,tr=Us;for(var j=0;j0&&(Re.Sheet=R.Sheets.length-1),R.Names.push(Re);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]==="/"?F+=n.slice(V,c.index):V=c.index+c[0].length;break;case"interior":if(!r.cellStyles)break;I.Interior=_r(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]==="/"?mf(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((l=f.pop())[0]!==c[3])throw new Error("Bad state: "+l.join("|"))}else f.push([c[3],!1]);break;case"comment":if(c[1]==="/"){if((l=f.pop())[0]!==c[3])throw new Error("Bad state: "+l.join("|"));Mx(re),fe.push(re)}else f.push([c[3],!1]),l=_r(c[0]),re={a:l.Author};break;case"autofilter":if(c[1]==="/"){if((l=f.pop())[0]!==c[3])throw new Error("Bad state: "+l.join("|"))}else if(c[0].charAt(c[0].length-2)!=="/"){var ke=_r(c[0]);x["!autofilter"]={ref:pa(ke.Range).replace(/\$/g,"")},f.push([c[3],!0])}break;case"name":break;case"datavalidation":if(c[1]==="/"){if((l=f.pop())[0]!==c[3])throw new Error("Bad state: "+l.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((l=f.pop())[0]!==c[3])throw new Error("Bad state: "+l.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 Sn(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"]||Ua(x["!margins"]={},"xlml"),isNaN(+oe(c[0]).Margin)||(x["!margins"].header=+oe(c[0]).Margin);break;case"footer":x["!margins"]||Ua(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"]||Ua(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]==="/"?Ix(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=o),ae.SheetNames=h,ae.Workbook=R,ae.SSF=$e(de),ae.Props=z,ae.Custprops=G,ae}function Gt(e,a){switch(m0(a=a||{}),a.type||"base64"){case"base64":return Lt(hr(e),a);case"binary":case"buffer":case"file":return Lt(e,a);case"array":return Lt(ca(e),a)}}function Bx(e){var a={},r=e.content;if(r.l=28,a.AnsiUserType=r.read_shift(0,"lpstr-ansi"),a.AnsiClipboardFormat=jc(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=Jc(r),n=r.read_shift(4),n==0||n>40))return a;r.l-=4,a.Reserved2=r.read_shift(0,"lpwstr")}var bx=[60,1084,2066,2165,2175];function Ux(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),l=Xt[f],o=0;l!=null&&bx.indexOf(f)>-1;)s=Lr(r,r.l+2),o=r.l+4,f==2066?o+=4:(f==2165||f==2175)&&(o+=12),c=r.slice(o,r.l+4+s),i.push(c),r.l+=4+s,l=Xt[f=Lr(r,r.l)];var h=Xr(i);Xe(h,0);var x=0;h.lens=[];for(var d=0;d1)&&!(xr.sheetRows&&ve.r>=xr.sheetRows)){if(xr.cellStyles&&Ne.XF&&Ne.XF.data&&z(ve,Ne,xr),delete Ne.ixfe,delete Ne.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),xr.cellFormula&&Ne.f){for(var be=0;beve.c||y[be][0].s.r>ve.r)&&!(y[be][0].e.c>8)!==ne)throw new Error("rt mismatch: "+Ee+"!="+ne);j.r==12&&(e.l+=10,q-=10)}var C={};if(ne===10?C=j.f(e,q,P):C=Ux(ne,j,e,q,P),he==0&&[9,521,1033,2057].indexOf(le)===-1)continue;switch(ne){case 34:r.opts.Date1904=F.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 Re=Number(C);switch(Re){case 21010:Re=1200;break;case 32768:Re=1e4;break;case 32769:Re=1252;break}kr(P.codepage=Re),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:W.push([C]),W[W.length-1].XTI=[];break;case 35:case 547:W[W.length-1].push(C);break;case 24:case 536:O={Name:C.Name,Ref:je(C.rgce,i,null,W,P)},C.itab>0&&(O.Sheet=C.itab-1),W.names.push(O),W[0]||(W[0]=[],W[0].XTI=[]),W[W.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:W.length==0&&(W[0]=[],W[0].XTI=[]),W[W.length-1].XTI=W[W.length-1].XTI.concat(C),W.XTI=W.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),F.Sheets.push(V)}l===""?o=t:n[l]=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,kr(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,kr(P.codepage=a.codepage||1252)),P.biff<5||C.BIFFVer==0&&C.dt==4096){l===""&&(l="Sheet1"),i={s:{r:0,c:0},e:{r:0,c:0}};var we={pos:e.l-q,name:l};s[we.pos]=we,P.snames.push(l)}else l=(s[ee]||{name:""}).name;C.dt==32&&(t["!type"]="chart"),C.dt==64&&(t["!type"]="macro"),fe=[],re=[],P.arrayf=y=[],ce=[],ie=[],Ae=!1,V={Hidden:(s[ee]||{hs:0}).hs,name:l}}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"},A>0&&(_.z=U[_.ixfe>>8&63]),Cr(_,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},A>0&&(_.z=U[_.ixfe>>8&63]),Cr(_,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"},A>0&&(_.z=U[_.ixfe>>8&63]),Cr(_,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"},A>0&&(_.z=U[_.ixfe>>8&63]),Cr(_,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(_=lt(C.val,C.cell.ixfe,C.tt),_.XF=b[_.ixfe],a.cellFormula){var Ie=C.formula;if(Ie&&Ie[0]&&Ie[0][0]&&Ie[0][0][0]=="PtgExp"){var ur=Ie[0][0][1][0],Ar=Ie[0][0][1][1],Ir=ue({r:ur,c:Ar});S[Ir]?_.f=""+je(C.formula,i,C.cell,W,P):_.F=((a.dense?(t[ur]||[])[Ar]:t[Ir])||{}).F}else _.f=""+je(C.formula,i,C.cell,W,P)}A>0&&(_.z=U[_.ixfe>>8&63]),Cr(_,a,r.opts.Date1904),G(C.cell,_,a),c=C}break;case 7:case 519:if(c)c.val=C,_=lt(C,c.cell.ixfe,"s"),_.XF=b[_.ixfe],a.cellFormula&&(_.f=""+je(c.formula,i,c.cell,W,P)),A>0&&(_.z=U[_.ixfe>>8&63]),Cr(_,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 wa=ue(C[0].s);if(d=a.dense?(t[C[0].s.r]||[])[C[0].s.c]:t[wa],a.cellFormula&&d){if(!c||!wa||!d)break;d.f=""+je(C[1],i,C[0],W,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=""+je(C[0],i,h,W,P)}}break;case 253:_=lt(f[C.isst].t,C.ixfe,"s"),f[C.isst].h&&(_.h=f[C.isst].h),_.XF=b[_.ixfe],A>0&&(_.z=U[_.ixfe>>8&63]),Cr(_,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"},A>0&&(_.z=U[_.ixfe>>8&63]),Cr(_,a,r.opts.Date1904),G({c:C.c,r:C.r},_,a));break;case 190:if(a.sheetStubs)for(var Hr=C.c;Hr<=C.C;++Hr){var fr=C.ixfe[Hr-C.c];_={ixfe:fr,XF:b[fr],t:"z"},A>0&&(_.z=U[_.ixfe>>8&63]),Cr(_,a,r.opts.Date1904),G({c:Hr,r:C.r},_,a)}break;case 214:case 516:case 4:_=lt(C.val,C.ixfe,"s"),_.XF=b[_.ixfe],A>0&&(_.z=U[_.ixfe>>8&63]),Cr(_,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[A++]=C[1];for(var Nr=0;Nr=163&&ra(C[1],A+163)}else ra(C[1],C[0]);break;case 30:{U[A++]=C;for(var Vr=0;Vr=163&&ra(C,A+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 Fa=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:Fa.TxO.t},d.c.push(v)}break;case 2173:f1(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)},Ae||(Ae=!0,x0(C.w/256)),_a(ce[C.e+1])}break;case 520:{var rr={};C.level!=null&&(ie[C.r]=rr,rr.level=C.level),C.hidden&&(ie[C.r]=rr,rr.hidden=!0),C.hpt&&(ie[C.r]=rr,rr.hpt=C.hpt,rr.hpx=za(C.hpt))}break;case 38:case 39:case 40:case 41:t["!margins"]||Ua(t["!margins"]={}),t["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[ne]]=C;break;case 161:t["!margins"]||Ua(t["!margins"]={}),t["!margins"].header=C.header,t["!margins"].footer=C.footer;break;case 574:C.RTL&&(F.Views[0].RTL=!0);break;case 146:I=C;break;case 2198:J=C;break;case 140:N=C;break;case 442:l?V.CodeName=C||V.name:F.WBProps.CodeName=C||"ThisWorkbook";break}}else j||console.error("Missing Info for XLS Record 0x"+ne.toString(16)),e.l+=q}return r.SheetNames=Dr(s).sort(function(Sr,ve){return Number(Sr)-Number(ve)}).map(function(Sr){return s[Sr].name}),a.bookSheets||(r.Sheets=n),!r.SheetNames.length&&o["!ref"]?(r.SheetNames.push("Sheet1"),r.Sheets&&(r.Sheets.Sheet1=o)):r.Preamble=o,r.Sheets&&R.forEach(function(Sr,ve){r.Sheets[r.SheetNames[ve]]["!autofilter"]=Sr}),r.Strings=f,r.SSF=$e(de),P.enc&&(r.Encryption=P.enc),J&&(r.Themes=J),r.Metadata={},N!==void 0&&(r.Metadata.Country=N),W.names.length>0&&(F.Names=W.names),r.Workbook=F,r}var Tn={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function Vx(e,a,r){var n=me.find(e,"/!DocumentSummaryInformation");if(n&&n.size>0)try{var t=tn(n,af,Tn.DSI);for(var s in t)a[s]=t[s]}catch(l){if(r.WTF)throw l}var i=me.find(e,"/!SummaryInformation");if(i&&i.size>0)try{var c=tn(i,tf,Tn.SI);for(var f in c)a[f]==null&&(a[f]=c[f])}catch(l){if(r.WTF)throw l}a.HeadingPairs&&a.TitlesOfParts&&(ks(a.HeadingPairs,a.TitlesOfParts,a,r),delete a.HeadingPairs,delete a.TitlesOfParts)}function si(e,a){a||(a={}),m0(a),Nn(),a.codepage&&Jt(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=Tr(hr(e));break;case"binary":e=Tr(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e));break}Xe(e,0),n={content:e}}var t,s;if(r&&Bx(r),a.bookProps&&!a.bookSheets)t={};else{var i=ge?"buffer":"array";if(n&&n.content)t=Hx(n.content,a);else if((s=me.find(e,"PerfectOffice_MAIN"))&&s.content)t=Ba.to_workbook(s.content,(a.type=i,a));else if((s=me.find(e,"NativeContent_MAIN"))&&s.content)t=Ba.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=S1(e))}var c={};return e.FullPaths&&Vx(e,c,a),t.Props=t.Custprops=c,a.bookFiles&&(t.cfb=e),t}var Tt={0:{f:ku},1:{f:Su},2:{f:Lu},3:{f:Ou},4:{f:yu},5:{f:Pu},6:{f:bu},7:{f:Iu},8:{f:Gu},9:{f:Wu},10:{f:Hu},11:{f:Vu},12:{f:Cu},13:{f:Mu},14:{f:Ru},15:{f:Du},16:{f:ei},17:{f:Uu},18:{f:Nu},19:{f:c0},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:px},40:{},42:{},43:{f:Hl},44:{f:Ul},45:{f:Vl},46:{f:Gl},47:{f:Wl},48:{},49:{f:Wc},50:{},51:{f:l1},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:Bu},63:{f:v1},64:{f:qu},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Qe,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:Zu},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:Au},148:{f:wu,p:16},151:{f:zu},152:{},153:{f:dx},154:{},155:{},156:{f:xx},157:{},158:{},159:{T:1,f:sl},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:Xu},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:o1},336:{T:-1},337:{f:h1,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:Ut},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Ns},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:Ku},427:{f:Yu},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:Ju},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:Fu},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:$u},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:Ut},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:w1},633:{T:1},634:{T:-1},635:{T:1,f:k1},636:{T:-1},637:{f:Xc},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:nx},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:Qu},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:""}},Xt={6:{f:Nt},10:{f:Wr},12:{f:Be},13:{f:Be},14:{f:Pe},15:{f:Pe},16:{f:Je},17:{f:Pe},18:{f:Pe},19:{f:Be},20:{f:fn},21:{f:fn},23:{f:Ns},24:{f:ln},25:{f:Pe},26:{},27:{},28:{f:Eo},29:{},34:{f:Pe},35:{f:on},38:{f:Je},39:{f:Je},40:{f:Je},41:{f:Je},42:{f:Pe},43:{f:Pe},47:{f:Fl},49:{f:eo},51:{f:Be},60:{},61:{f:Zf},64:{f:Pe},65:{f:Qf},66:{f:Be},77:{},80:{},81:{},82:{},85:{f:Be},89:{},90:{},91:{},92:{f:Gf},93:{f:ko},94:{},95:{f:Pe},96:{},97:{},99:{f:Pe},125:{f:Ps},128:{f:lo},129:{f:Xf},130:{f:Be},131:{f:Pe},132:{f:Pe},133:{f:$f},134:{},140:{f:yo},141:{f:Be},144:{},146:{f:Oo},151:{},152:{},153:{},154:{},155:{},156:{f:Be},157:{},158:{},160:{f:Lo},161:{f:Io},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:io},190:{f:co},193:{f:Wr},197:{},198:{},199:{},200:{},201:{},202:{f:Pe},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:Be},220:{},221:{f:Pe},222:{},224:{f:oo},225:{f:Wf},226:{f:Wr},227:{},229:{f:To},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:zf},253:{f:ro},255:{f:Kf},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:Cs},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:Pe},353:{f:Wr},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:uo},431:{f:Pe},432:{},433:{},434:{},437:{},438:{f:Ao},439:{f:Pe},440:{f:So},441:{},442:{f:Za},443:{},444:{f:Be},445:{},446:{},448:{f:Wr},449:{f:Jf,r:2},450:{f:Wr},512:{f:sn},513:{f:Po},515:{f:ho},516:{f:ao},517:{f:cn},519:{f:Mo},520:{f:Yf},523:{},545:{f:hn},549:{f:nn},566:{},574:{f:qf},638:{f:so},659:{},1048:{},1054:{f:to},1084:{},1212:{f:go},2048:{f:Co},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:ct},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:Wr},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:Ro,r:12},2173:{f:c1,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:Pe,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:po,r:12},2197:{},2198:{f:r1,r:12},2199:{},2200:{},2201:{},2202:{f:mo,r:12},2203:{f:Wr},2204:{},2205:{},2206:{},2207:{},2211:{f:jf},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:Be},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:No},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:Do},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:sn},1:{},2:{f:Ho},3:{f:Uo},4:{f:bo},5:{f:cn},7:{f:Vo},8:{},9:{f:ct},11:{},22:{f:Be},30:{f:no},31:{},32:{},33:{f:hn},36:{},37:{f:nn},50:{f:Wo},62:{},52:{},67:{},68:{f:Be},69:{},86:{},126:{},127:{f:Bo},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:Go},223:{},234:{},354:{},421:{},518:{f:Nt},521:{f:ct},536:{f:ln},547:{f:on},561:{},579:{},1030:{f:Nt},1033:{f:ct},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function Er(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&&ds(r)&&e.push(r)}}function kn(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=hc(e.slice(i,c),/(:?]*>)/i,""),l=-1,o=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=F.colspan?+F.colspan:1,((h=+F.rowspan)>1||x>1)&&v.push({s:{r:l,c:o},e:{r:l+(h||1)-1,c:o+x-1}});var V=F.t||F["data-t"]||"";if(!_.length){o+=x;continue}if(_=rs(_),d.s.r>l&&(d.s.r=l),d.e.ro&&(d.s.c=o),d.e.cr||t[l].s.c>i)&&!(t[l].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")+"-"+o,s.push(Sc("td",x,d))}}var v="";return v+s.join("")+""}var Gx='SheetJS Table Export',Xx="";function $x(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 Jr(kn(r[0],a),a);var n=E0();return r.forEach(function(t,s){T0(n,kn(t,a),"Sheet"+(s+1))}),n}function zx(e,a,r){var n=[];return n.join("")+""}function Kx(e,a){var r=a||{},n=r.header!=null?r.header:Gx,t=r.footer!=null?r.footer:Xx,s=[n],i=Ta(e["!ref"]);r.dense=Array.isArray(e),s.push(zx(e,i,r));for(var c=i.s.r;c<=i.e.r;++c)s.push(Wx(e,i,c,r));return s.push("
"+t),s.join("")}function ii(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),l={s:{r:0,c:0},e:{r:t,c:s}};if(e["!ref"]){var o=Ta(e["!ref"]);l.s.r=Math.min(l.s.r,o.s.r),l.s.c=Math.min(l.s.c,o.s.c),l.e.r=Math.max(l.e.r,o.e.r),l.e.c=Math.max(l.e.c,o.e.c),t==-1&&(l.e.r=t=o.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:F},G=I.getAttribute("data-t")||I.getAttribute("t")||"";F!=null&&(F.length==0?z.t=G||"z":n.raw||F.trim().length==0||G=="s"||(F==="TRUE"?z={t:"b",v:!0}:F==="FALSE"?z={t:"b",v:!1}:isNaN(Fr(F))?isNaN(ma(F).getDate())||(z={t:"d",v:Ge(F)},n.cellDates||(z={t:"n",v:ir(z.v)}),z.z=n.dateNF||de[14]):z={t:"n",v:Fr(F)})),z.z===void 0&&V!=null&&(z.z=V);var P="",J=I.getElementsByTagName("A");if(J&&J.length)for(var fe=0;fe=f&&(e["!fullref"]=_e((l.e.r=c.length-v+u-1+t,l))),e}function ci(e,a){var r=a||{},n=r.dense?[]:{};return ii(n,e,a)}function Yx(e,a){return Jr(ci(e,a),a)}function wn(e){var a="",r=jx(e);return r&&(a=r(e).getPropertyValue("display")),a||(a=e.style&&e.style.display),a==="none"}function jx(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}function Jx(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=Te(a.replace(/<[^>]*>/g,""));return[r]}var Fn={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 fi(e,a){var r=a||{},n=t0(e),t=[],s,i,c={name:""},f="",l=0,o,h,x={},d=[],v=r.dense?[]:{},u,g,S={value:""},y="",_=0,N=[],b=-1,I=-1,F={s:{r:1e6,c:1e7},e:{r:0,c:0}},V=0,D={},z=[],G={},P=0,J=0,fe=[],re=1,ce=1,ie=[],Ae={Names:[]},W={},le=["",""],he=[],A={},U="",R=0,O=!1,K=!1,ee=0;for(Ga.lastIndex=0,n=n.replace(//mg,"").replace(//gm,"");u=Ga.exec(n);)switch(u[3]=u[3].replace(/_.*$/,"")){case"table":case"工作表":u[1]==="/"?(F.e.c>=F.s.c&&F.e.r>=F.s.r?v["!ref"]=_e(F):v["!ref"]="A1:A1",r.sheetRows>0&&r.sheetRows<=F.e.r&&(v["!fullref"]=v["!ref"],F.e.r=r.sheetRows-1,v["!ref"]=_e(F)),z.length&&(v["!merges"]=z),fe.length&&(v["!rows"]=fe),o.name=o.名称||o.name,typeof JSON<"u"&&JSON.stringify(o),d.push(o.name),x[o.name]=v,K=!1):u[0].charAt(u[0].length-2)!=="/"&&(o=oe(u[0],!1),b=I=-1,F.s.r=F.s.c=1e7,F.e.r=F.e.c=0,v=r.dense?[]:{},z=[],fe=[],K=!0);break;case"table-row-group":u[1]==="/"?--V:++V;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:V});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=mn(Te(S.formula))),(S.数据类型||S["value-type"])=="string"&&(g.t="s",g.v=Te(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>F.e.c&&(F.e.c=I),IF.e.r&&(F.e.r=ne),S=oe(u[0],!1),he=[],A={},g={t:S.数据类型||S["value-type"],v:null},r.cellFormula)if(S.formula&&(S.formula=Te(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=mn(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=Ge(S["date-value"]),r.cellDates||(g.t="n",g.v=ir(g.v)),g.z="m/d/yy";break;case"time":g.t="n",g.v=fc(S["time-value"])/86400,r.cellDates&&(g.t="d",g.v=kt(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=Te(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),W.Target&&(g.l=W),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]=$e(g);else for(v[ue({r:b+q,c:I})]=g;--ce>0;)v[ue({r:b+q,c:I+ce})]=$e(g);F.e.c<=I&&(F.e.c=I)}ce=parseInt(S["number-columns-repeated"]||"1",10),I+=ce-1,ce=0,g={},y="",N=[]}W={};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;A.t=y,N.length&&(A.R=N),A.a=U,he.push(A)}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+=Fn[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+=Fn[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(l,u.index);break}else l=u.index+u[0].length;break;case"named-range":i=oe(u[0],!1),le=Pt(i["cell-range-address"]);var j={Name:i.name,Ref:le[0]+"!"+le[1]};K&&(j.Sheet=d.length),Ae.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 Ee=Jx(n.slice(_,u.index));y=(y.length>0?y+` `:"")+Ee[0]}else oe(u[0],!1),_=u.index+u[0].length;break;case"s":break;case"database-range":if(u[1]==="/")break;try{le=Pt(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(W=oe(u[0],!1),!W.href)break;W.Target=Te(W.href),delete W.href,W.Target.charAt(0)=="#"&&W.Target.indexOf(".")>-1?(le=Pt(W.Target.slice(1)),W.Target="#"+le[0]+"!"+le[1]):W.Target.match(/^\.\.[\\\/]/)&&(W.Target=W.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:Ae};return r.bookSheets&&delete C.Sheets,C}function An(e,a){a=a||{},pr(e,"META-INF/manifest.xml")&&hf(Me(e,"META-INF/manifest.xml"),a);var r=lr(e,"content.xml");if(!r)throw new Error("Missing content.xml in ODS / UOF file");var n=fi(Fe(r),a);return pr(e,"meta.xml")&&(n.Props=Ts(Me(e,"meta.xml"))),n}function Sn(e,a){return fi(e,a)}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function p0(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function $t(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):Fe(ca(e))}function zt(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 Cn(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>>24}function Zx(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 Ka(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 Ve(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 Ze(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=Ka(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 l={data:c,type:s};a[t]==null?a[t]=[l]:a[t].push(l)}return a}function g0(e,a){return(e==null?void 0:e.map(function(r){return a(r.data)}))||[]}function qx(e){for(var a,r=[],n=[0];n[0]>>0>0),r.push(i)}return r}function Qx(e,a){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=Ka(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,l=0;if(s==1?(l=(a[r[0]]>>2&7)+4,f=(a[r[0]++]&224)<<3,f|=a[r[0]++]):(l=(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=[zt(t)],f==0)throw new Error("Invalid offset 0");if(f>t[0].length)throw new Error("Invalid offset beyond length");if(l>=f)for(t.push(t[0].slice(-f)),l-=f;l>=t[t.length-1].length;)t.push(t[t.length-1]),l-=t[t.length-1].length;t.push(t[0].slice(-f,-f+l))}}var o=zt(t);if(o.length!=n)throw new Error("Unexpected length: ".concat(o.length," != ").concat(n));return o}function ed(e){for(var a=[],r=0;r1?12:8)+Cn(s&(n>1?3470:398))*4,c=-1,f=-1,l=NaN,o=new Date(2001,0,1);s&512&&(c=t.getUint32(i,!0),i+=4),i+=Cn(s&(n>1?12288:4096))*4,s&16&&(f=t.getUint32(i,!0),i+=4),s&32&&(l=t.getFloat64(i,!0),i+=8),s&64&&(o.setTime(o.getTime()+t.getFloat64(i,!0)*1e3),i+=8);var h;switch(e[2]){case 0:break;case 2:h={t:"n",v:l};break;case 3:h={t:"s",v:a[f]};break;case 5:h={t:"d",v:o};break;case 6:h={t:"b",v:l>0};break;case 7:h={t:"n",v:l/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(l))h={t:"n",v:l};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 ad(e,a,r){var n=p0(e),t=n.getUint32(8,!0),s=12,i=-1,c=-1,f=NaN,l=NaN,o=new Date(2001,0,1);t&1&&(f=Zx(e,s),s+=16),t&2&&(l=n.getFloat64(s,!0),s+=8),t&4&&(o.setTime(o.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:o};break;case 6:h={t:"b",v:l>0};break;case 7:h={t:"n",v:l/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 td(e,a,r){switch(e[0]){case 0:case 1:case 2:case 3:return rd(e,a,r,e[0]);case 5:return ad(e,a,r);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function Kr(e){var a=Ze(e);return Ka(a[1][0].data)}function yn(e,a){var r=Ze(a.data),n=Ve(r[1][0].data),t=r[3],s=[];return(t||[]).forEach(function(i){var c=Ze(i.data),f=Ve(c[1][0].data)>>>0;switch(n){case 1:s[f]=$t(c[3][0].data);break;case 8:{var l=e[Kr(c[9][0].data)][0],o=Ze(l.data),h=e[Kr(o[1][0].data)][0],x=Ve(h.meta[1][0].data);if(x!=2001)throw new Error("2000 unexpected reference to ".concat(x));var d=Ze(h.data);s[f]=d[3].map(function(v){return $t(v.data)}).join("")}break}}),s}function nd(e,a){var r,n,t,s,i,c,f,l,o,h,x,d,v,u,g=Ze(e),S=Ve(g[1][0].data)>>>0,y=Ve(g[2][0].data)>>>0,_=((n=(r=g[8])==null?void 0:r[0])==null?void 0:n.data)&&Ve(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=(l=(f=g[6])==null?void 0:f[0])==null?void 0:l.data;else if((h=(o=g[4])==null?void 0:o[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,F=p0(N),V=[],D=0;D=1&&(G[V[V.length-1][0]]=b.subarray(V[V.length-1][1]*I)),{R:S,cells:G}}function sd(e,a){var r,n=Ze(a.data),t=(r=n==null?void 0:n[7])!=null&&r[0]?Ve(n[7][0].data)>>>0>0?1:0:-1,s=g0(n[5],function(i){return nd(i,t)});return{nrows:Ve(n[4][0].data)>>>0,data:s.reduce(function(i,c){return i[c.R]||(i[c.R]=[]),c.cells.forEach(function(f,l){if(i[c.R][l])throw new Error("Duplicate cell r=".concat(c.R," c=").concat(l));i[c.R][l]=f}),i},[])}}function id(e,a,r){var n,t=Ze(a.data),s={s:{r:0,c:0},e:{r:0,c:0}};if(s.e.r=(Ve(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=(Ve(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=Ze(t[4][0].data),c=yn(e,e[Kr(i[4][0].data)][0]),f=(n=i[17])!=null&&n[0]?yn(e,e[Kr(i[17][0].data)][0]):[],l=Ze(i[3][0].data),o=0;l[1].forEach(function(h){var x=Ze(h.data),d=e[Kr(x[2][0].data)][0],v=Ve(d.meta[1][0].data);if(v!=6002)throw new Error("6001 unexpected reference to ".concat(v));var u=sd(e,d);u.data.forEach(function(g,S){g.forEach(function(y,_){var N=ue({r:o+S,c:_}),b=td(y,c,f);b&&(r[N]=b)})}),o+=u.nrows})}function cd(e,a){var r=Ze(a.data),n={"!ref":"A1"},t=e[Kr(r[2][0].data)],s=Ve(t[0].meta[1][0].data);if(s!=6001)throw new Error("6000 unexpected reference to ".concat(s));return id(e,t[0],n),n}function fd(e,a){var r,n=Ze(a.data),t={name:(r=n[1])!=null&&r[0]?$t(n[1][0].data):"",sheets:[]},s=g0(n[2],Kr);return s.forEach(function(i){e[i].forEach(function(c){var f=Ve(c.meta[1][0].data);f==6e3&&t.sheets.push(cd(e,c))})}),t}function od(e,a){var r=E0(),n=Ze(a.data),t=g0(n[1],Kr);if(t.forEach(function(s){e[s].forEach(function(i){var c=Ve(i.meta[1][0].data);if(c==2){var f=fd(e,i);f.sheets.forEach(function(l,o){T0(r,l,o==0?f.name:f.name+"_"+o,!0)})}})}),r.SheetNames.length==0)throw new Error("Empty NUMBERS file");return r}function Mt(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 l;try{l=ed(f.content)}catch(h){return console.log("?? "+f.content.length+" "+(h.message||h))}var o;try{o=qx(l)}catch(h){return console.log("## "+(h.message||h))}o.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)&&Ve(s[1][0].meta[1][0].data)==1&&s[1][0];if(c||i.forEach(function(f){s[f].forEach(function(l){var o=Ve(l.meta[1][0].data)>>>0;if(o==1)if(!c)c=l;else throw new Error("Document has multiple roots")})}),!c)throw new Error("Cannot find Document root");return od(s,c)}function ld(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 m0(e){ld([["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 hd(e){return da.WS.indexOf(e)>-1?"sheet":e==da.CS?"chart":e==da.DS?"dialog":e==da.MS?"macro":e&&e.length?e:"sheet"}function ud(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,hd(e["!id"][n.id].Type)]})}catch{return null}return!e||e.length===0?null:e}function xd(e,a,r,n,t,s,i,c,f,l,o,h){try{s[n]=La(lr(e,r,!0),a);var x=Me(e,a),d;switch(c){case"sheet":d=_x(x,a,t,f,s[n],l,o,h);break;case"chart":if(d=Ex(x,a,t,f,s[n],l,o,h),!d||!d["!drawel"])break;var v=Oa(d["!drawel"].Target,a),u=Ht(v),g=m1(lr(e,v,!0),La(lr(e,u,!0),v)),S=Oa(g,v),y=Ht(S);d=ax(lr(e,S,!0),S,f,La(lr(e,y,!0),S),l,d);break;case"macro":d=Tx(x,a,t,f,s[n],l,o,h);break;case"dialog":d=kx(x,a,t,f,s[n],l,o,h);break;default:throw new Error("Unrecognized sheet type "+c)}i[n]=d;var _=[];s&&s[n]&&Dr(s[n]).forEach(function(N){var b="";if(s[n][N].Type==da.CMNT){b=Oa(s[n][N].Target,a);var I=Sx(Me(e,b,!0),b,f);if(!I||!I.length)return;xn(d,I,!1)}s[n][N].Type==da.TCMNT&&(b=Oa(s[n][N].Target,a),_=_.concat(E1(Me(e,b,!0),f)))}),_&&_.length&&xn(d,_,!0,f.people||[])}catch(N){if(f.WTF)throw N}}function dr(e){return e.charAt(0)=="/"?e.slice(1):e}function dd(e,a){if($n(),a=a||{},m0(a),pr(e,"META-INF/manifest.xml")||pr(e,"objectdata.xml"))return An(e,a);if(pr(e,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof Mt<"u"){if(e.FileIndex)return Mt(e);var r=me.utils.cfb_new();return U0(e).forEach(function(fe){xc(r,fe,Zn(e,fe))}),Mt(r)}throw new Error("Unsupported NUMBERS file")}if(!pr(e,"[Content_Types].xml"))throw pr(e,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):pr(e,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var n=U0(e),t=of(lr(e,"[Content_Types].xml")),s=!1,i,c;if(t.workbooks.length===0&&(c="xl/workbook.xml",Me(e,c,!0)&&t.workbooks.push(c)),t.workbooks.length===0){if(c="xl/workbook.bin",!Me(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={},l={};if(!a.bookSheets&&!a.bookProps){if(ba=[],t.sst)try{ba=Ax(Me(e,dr(t.sst)),t.sst,a)}catch(fe){if(a.WTF)throw fe}a.cellStyles&&t.themes.length&&(f=Fx(lr(e,t.themes[0].replace(/^\//,""),!0)||"",t.themes[0],a)),t.style&&(l=wx(Me(e,dr(t.style)),t.style,f,a))}t.links.map(function(fe){try{var re=La(lr(e,Ht(dr(fe))),fe);return yx(Me(e,dr(fe)),re,fe,a)}catch{}});var o=mx(Me(e,dr(t.workbooks[0])),t.workbooks[0],a),h={},x="";t.coreprops.length&&(x=Me(e,dr(t.coreprops[0]),!0),x&&(h=Ts(x)),t.extprops.length!==0&&(x=Me(e,dr(t.extprops[0]),!0),x&&df(x,h,a)));var d={};(!a.bookSheets||a.bookProps)&&t.custprops.length!==0&&(x=lr(e,dr(t.custprops[0]),!0),x&&(d=pf(x,a)));var v={};if((a.bookSheets||a.bookProps)&&(o.Sheets?i=o.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=Cx(Me(e,dr(t.calcchain)),t.calcchain));var g=0,S={},y,_;{var N=o.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",F=t.workbooks[0].lastIndexOf("/"),V=(t.workbooks[0].slice(0,F+1)+"_rels/"+t.workbooks[0].slice(F+1)+".rels").replace(/^\//,"");pr(e,V)||(V="xl/_rels/workbook."+I+".rels");var D=La(lr(e,V,!0),V.replace(/_rels.*/,"s5s"));(t.metadata||[]).length>=1&&(a.xlmeta=Dx(Me(e,dr(t.metadata[0])),t.metadata[0],a)),(t.people||[]).length>=1&&(a.people=T1(Me(e,dr(t.people[0])),a)),D&&(D=ud(D,o.Sheets));var z=Me(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\//,""),pr(e,y)||(y=D[g][1]),pr(e,y)||(y=V.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}}xd(e,y,_,h.SheetNames[g],g,S,i,G,a,o,f,l)}return v={Directory:t,Workbook:o,Props:h,Custprops:d,Deps:u,Sheets:i,SheetNames:h.SheetNames,Strings:ba,Styles:l,Themes:f,SSF:$e(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=Me(e,dr(t.vba[0]),!0):t.defaults&&t.defaults.bin===A1&&(v.vbaraw=Me(e,"xl/vbaProject.bin",!0))),v}function vd(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(cl(t.content),n="/!DataSpaces/DataSpaceMap",t=me.find(e,n),!t||!t.content)throw new Error("ECMA-376 Encrypted file missing "+n);var s=ol(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=ll(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);ul(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=xl(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 _0(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=hr(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 pd(e,a){return me.find(e,"EncryptedPackage")?vd(e,a):si(e,a)}function gd(e,a){var r,n=e,t=a||{};return t.type||(t.type=ge&&Buffer.isBuffer(e)?"buffer":"base64"),r=qn(n,t),dd(r,t)}function oi(e,a){var r=0;e:for(;r=2&&t[3]===0||t[2]===0&&(t[3]===8||t[3]===9)))return Ba.to_workbook(n,r);break;case 3:case 131:case 139:case 140:return un.to_workbook(n,r);case 123:if(t[1]===92&&t[2]===114&&t[3]===116)return Al.to_workbook(n,r);break;case 10:case 13:case 32:return md(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 Xo.indexOf(t[0])>-1&&t[2]<=12&&t[3]<=31?un.to_workbook(n,r):Bt(e,n,r,s)}function Td(e,a,r,n,t,s,i,c){var f=ze(r),l=c.defval,o=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(l===void 0)continue;s[d]!=null&&(x[s[d]]=l);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(l!==void 0)x[s[d]]=l;else if(o&&u===null)x[s[d]]=null;else continue;else x[s[d]]=o&&(v.t!=="n"||v.t==="n"&&c.rawNumbers!==!1)?u:br(v,u,c);u!=null&&(h=!1)}}return{row:x,isempty:h}}function Kt(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}},l=a||{},o=l.range!=null?l.range:e["!ref"];switch(l.header===1?n=1:l.header==="A"?n=2:Array.isArray(l.header)?n=3:l.header==null&&(n=0),typeof o){case"string":f=Oe(o);break;case"number":f=Oe(e["!ref"]),f.s.r=o;break;default:f=o}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=l.skipHidden&&e["!cols"]||[],b=l.skipHidden&&e["!rows"]||[];for(y=f.s.c;y<=f.e.c;++y)if(!(N[y]||{}).hidden)switch(x[y]=He(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]=l.header[y-f.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),c=i=br(r,null,l),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=Td(e,f,S,x,n,s,g,l);(I.isempty===!1||(n===1?l.blankrows!==!1:l.blankrows))&&(d[v++]=I.row)}return d.length=v,d}var On=/"/g;function kd(e,a,r,n,t,s,i,c){for(var f=!0,l=[],o="",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)o="";else if(d.v!=null){f=!1,o=""+(c.rawNumbers&&d.t=="n"?d.v:br(d,null,c));for(var v=0,u=0;v!==o.length;++v)if((u=o.charCodeAt(v))===t||u===s||u===34||c.forceQuotes){o='"'+o.replace(On,'""')+'"';break}o=="ID"&&(o='"ID"')}else d.f!=null&&!d.F?(f=!1,o="="+d.f,o.indexOf(",")>=0&&(o='"'+o.replace(On,'""')+'"')):o="";l.push(o)}return c.blankrows===!1&&f?null:l.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),l=new RegExp((s=="|"?"\\|":s)+"+$"),o="",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]=He(v));for(var u=0,g=t.s.r;g<=t.e.r;++g)(d[g]||{}).hidden||(o=kd(e,t,g,h,i,f,s,n),o!=null&&(n.strip&&(o=o.replace(l,"")),(o||n.blankrows!==!1)&&r.push((u++?c:"")+o)));return delete n.dense,r.join("")}function wd(e,a){a||(a={}),a.FS=" ",a.RS=` `;var r=li(e,a);return r}function Fd(e){var a="",r,n="";if(e==null||e["!ref"]==null)return[];var t=Oe(e["!ref"]),s="",i=[],c,f=[],l=Array.isArray(e);for(c=t.s.c;c<=t.e.c;++c)i[c]=He(c);for(var o=t.s.r;o<=t.e.r;++o)for(s=ze(o),c=t.s.c;c<=t.e.c;++c)if(a=i[c]+s,r=l?(e[o]||[])[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 l,o={s:{c:0,r:0},e:{c,r:i+a.length-1+t}};if(s["!ref"]){var h=Oe(s["!ref"]);o.e.c=Math.max(o.e.c,h.e.c),o.e.r=Math.max(o.e.r,h.e.r),i==-1&&(i=h.e.r+1,o.e.r=i+a.length-1+t)}else i==-1&&(i=0,o.e.r=a.length-1+t);var x=n.header||[],d=0;a.forEach(function(u,g){Dr(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});l=Ya(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=ir(y)),N=n.dateNF||de[14]):y===null&&n.nullError&&(_="e",y=0),l?(l.t=_,l.v=y,delete l.w,delete l.R,N&&(l.z=N)):s[b]=l={t:_,v:y},N&&(l.z=N))})}),o.e.c=Math.max(o.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 E0(){return{SheetNames:[],Sheets:{}}}function T0(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(lx(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 Cd(e,a,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=Sd(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 yd(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 Dd(e,a,r){return ui(e,"#"+a,r)}function Od(e,a,r){e.c||(e.c=[]),e.c.push({t:a,a:r||"SheetJS"})}function Rd(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=Ya(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 bd={encode_col:He,encode_row:ze,encode_cell:ue,encode_range:_e,decode_col:i0,decode_row:s0,split_cell:Vc,decode_cell:nr,decode_range:Ta,format_cell:br,sheet_add_aoa:ps,sheet_add_json:hi,sheet_add_dom:ii,aoa_to_sheet:ka,json_to_sheet:Ad,table_to_sheet:ci,table_to_book:Yx,sheet_to_csv:li,sheet_to_txt:wd,sheet_to_json:Kt,sheet_to_html:Kx,sheet_to_formulae:Fd,sheet_to_row_object_array:Kt,sheet_get_cell:Ya,book_new:E0,book_append_sheet:T0,book_set_sheet_visibility:Cd,cell_set_number_format:yd,cell_set_hyperlink:ui,cell_set_internal_link:Dd,cell_add_comment:Od,sheet_set_array_formula:Rd,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};export{Bd as a,Ld as b,Md as d,Pd as e,Nd as g,Dn as r,bd as u};