file-viewer-demo/public/dist/assets/sheet.worker-d79186a2.js

39 lines
329 KiB
JavaScript
Raw Permalink Normal View History

2024-01-30 00:54:29 +00:00
var bd=Object.defineProperty;var Ud=(Vr,Ir,Nr)=>Ir in Vr?bd(Vr,Ir,{enumerable:!0,configurable:!0,writable:!0,value:Nr}):Vr[Ir]=Nr;var ea=(Vr,Ir,Nr)=>(Ud(Vr,typeof Ir!="symbol"?Ir+"":Ir,Nr),Nr);(function(){"use strict";/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Vr=1252,Ir=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],Nr={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},Nt=function(e){Ir.indexOf(e)!=-1&&(Vr=Nr[0]=e)};function mi(){Nt(1252)}var _r=function(e){Nt(e)};function D0(){_r(1200),mi()}function O0(e){for(var a=[],r=0,n=e.length;r<n;++r)a[r]=e.charCodeAt(r);return a}function _i(e){for(var a=[],r=0;r<e.length>>1;++r)a[r]=String.fromCharCode(e.charCodeAt(2*r)+(e.charCodeAt(2*r+1)<<8));return a.join("")}function R0(e){for(var a=[],r=0;r<e.length>>1;++r)a[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return a.join("")}var ya=function(e){var a=e.charCodeAt(0),r=e.charCodeAt(1);return a==255&&r==254?_i(e.slice(2)):a==254&&r==255?R0(e.slice(2)):a==65279?e.slice(1):e},ct=function(a){return String.fromCharCode(a)},I0=function(a){return String.fromCharCode(a)},Gr,Xr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function N0(e){for(var a="",r=0,n=0,t=0,s=0,i=0,c=0,f=0,o=0;o<e.length;)r=e.charCodeAt(o++),s=r>>2,n=e.charCodeAt(o++),i=(r&3)<<4|n>>4,t=e.charCodeAt(o++),c=(n&15)<<2|t>>6,f=t&63,isNaN(n)?c=f=64:isNaN(t)&&(f=64),a+=Xr.charAt(s)+Xr.charAt(i)+Xr.charAt(c)+Xr.charAt(f);return a}function fr(e){var a="",r=0,n=0,t=0,s=0,i=0,c=0,f=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var o=0;o<e.length;)s=Xr.indexOf(e.charAt(o++)),i=Xr.indexOf(e.charAt(o++)),r=s<<2|i>>4,a+=String.fromCharCode(r),c=Xr.indexOf(e.charAt(o++)),n=(i&15)<<4|c>>2,c!==64&&(a+=String.fromCharCode(n)),f=Xr.indexOf(e.charAt(o++)),t=(c&3)<<6|f,f!==64&&(a+=String.fromCharCode(t));return a}var ge=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),ra=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(a,r){return r?new Buffer(a,r):new Buffer(a)}:Buffer.from.bind(Buffer)}return function(){}}();function $r(e){return ge?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function P0(e){return ge?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var Er=function(a){return ge?ra(a,"binary"):a.split("").map(function(r){return r.charCodeAt(0)&255})};function aa(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var a=[],r=0;r<e.length;++r)a[r]=String.fromCharCode(e[r]);return a.join("")}function Pt(e){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return Pt(new Uint8Array(e));for(var a=new Array(e.length),r=0;r<e.length;++r)a[r]=e[r];return a}var zr=ge?function(e){return Buffer.concat(e.map(function(a){return Buffer.isBuffer(a)?a:ra(a)}))}:function(e){if(typeof Uint8Array<"u"){var a=0,r=0;for(a=0;a<e.length;++a)r+=e[a].length;var n=new Uint8Array(r),t=0;for(a=0,r=0;a<e.length;r+=t,++a)if(t=e[a].length,e[a]instanceof Uint8Array)n.set(e[a],r);else{if(typeof e[a]=="string")throw"wtf";n.set(new Uint8Array(e[a]),r)}return n}return[].concat.apply([],e.map(function(s){return Array.isArray(s)?s:[].slice.call(s)}))};function Ei(e){for(var a=[],r=0,n=e.length+250,t=$r(e.length+255),s=0;s<e.length;++s){var i=e.charCodeAt(s);if(i<128)t[r++]=i;else if(i<2048)t[r++]=192|i>>6&31,t[r++]=128|i&63;else if(i>=55296&&i<57344){i=(i&1023)+64;var c=e.charCodeAt(++s)&1023;t[r++]=240|i>>8&7,t[r++]=128|i>>2&63,t[r++]=128|c>>6&15|(i&3)<<4,t[r++]=128|c&63}else t[r++]=224|i>>12&15,t[r++]=128|i>>6&63,t[r++]=128|i&63;r>n&&(a.push(t.slice(0,r)),r=0,t=$r(65535),n=65530)}return a.push(t.slice(0,r)),zr(a)}var rr=/\u0000/g,Da=/[\u0001-\u0006]/g;function ga(e){for(var a="",r=e.length-1;r>=0;)a+=e.charAt(r--);
`)+`\r
`}function Dd(p){var T=p.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(B){var H=B.charCodeAt(0).toString(16).toUpperCase();return"="+(H.length==1?"0"+H:H)});T=T.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),T.charAt(0)==`
`&&(T="=0D"+T.slice(1)),T=T.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var m=[],E=T.split(`\r
`),k=0;k<E.length;++k){var w=E[k];if(w.length==0){m.push("");continue}for(var M=0;M<w.length;){var X=76,L=w.slice(M,M+X);L.charAt(X-1)=="="?X--:L.charAt(X-2)=="="?X-=2:L.charAt(X-3)=="="&&(X-=3),L=w.slice(M,M+X),M+=X,M<w.length&&(L+="="),m.push(L)}}return m.join(`\r
`)}function Od(p){for(var T=[],m=0;m<p.length;++m){for(var E=p[m];m<=p.length&&E.charAt(E.length-1)=="=";)E=E.slice(0,E.length-1)+p[++m];T.push(E)}for(var k=0;k<T.length;++k)T[k]=T[k].replace(/[=][0-9A-Fa-f]{2}/g,function(w){return String.fromCharCode(parseInt(w.slice(1),16))});return Er(T.join(`\r
`))}function Rd(p,T,m){for(var E="",k="",w="",M,X=0;X<10;++X){var L=T[X];if(!L||L.match(/^\s*$/))break;var B=L.match(/^(.*?):\s*([^\s].*)$/);if(B)switch(B[1].toLowerCase()){case"content-location":E=B[2].trim();break;case"content-type":w=B[2].trim();break;case"content-transfer-encoding":k=B[2].trim();break}}switch(++X,k.toLowerCase()){case"base64":M=Er(fr(T.slice(X).join("")));break;case"quoted-printable":M=Od(T.slice(X));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+k)}var H=C0(p,E.slice(m.length),M,{unsafe:!0});w&&(H.ctype=w)}function Id(p,T){if(V(p.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var m=T&&T.root||"",E=(ge&&Buffer.isBuffer(p)?p.toString("binary"):V(p)).split(`\r
`),k=0,w="";for(k=0;k<E.length;++k)if(w=E[k],!!/^Content-Location:/i.test(w)&&(w=w.slice(w.indexOf("file")),m||(m=w.slice(0,w.lastIndexOf("/")+1)),w.slice(0,m.length)!=m))for(;m.length>0&&(m=m.slice(0,m.length-1),m=m.slice(0,m.lastIndexOf("/")+1),w.slice(0,m.length)!=m););var M=(E[1]||"").match(/boundary="(.*?)"/);if(!M)throw new Error("MAD cannot find boundary");var X="--"+(M[1]||""),L=[],B=[],H={FileIndex:L,FullPaths:B};A(H);var Y,Q=0;for(k=0;k<E.length;++k){var se=E[k];se!==X&&se!==X+"--"||(Q++&&Rd(H,E.slice(Y,k),m),Y=k)}return H}function Nd(p,T){var m=T||{},E=m.boundary||"SheetJS";E="------="+E;for(var k=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+E.slice(2)+'"',"","",""],w=p.FullPaths[0],M=w,X=p.FileIndex[0],L=1;L<p.FullPaths.length;++L)if(M=p.FullPaths[L].slice(w.length),X=p.FileIndex[L],!(!X.size||!X.content||M=="Sh33tJ5")){M=M.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(xe){return"_x"+xe.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(xe){return"_u"+xe.charCodeAt(0).toString(16)+"_"});for(var B=X.content,H=ge&&Buffer.isBuffer(B)?B.toString("binary"):V(B),Y=0,Q=Math.min(1024,H.length),se=0,Z=0;Z<=Q;++Z)(se=H.charCodeAt(Z))>=32&&se<128&&++Y;var te=Y>=Q*4/5;k.push(E),k.push("Content-Location: "+(m.root||"file:///C:/SheetJS/")+M),k.push("Content-Transfer-Encoding: "+(te?"quoted-printable":"base64")),k.push("Content-Type: "+Cd(X,M)),k.push(""),k.push(te?Dd(H):yd(H))}return k.push(E+`--\r
`),k.join(`\r
`)}function Pd(p){var T={};return A(T,p),T}function C0(p,T,m,E){var k=E&&E.unsafe;k||A(p);var w=!k&&me.find(p,T);if(!w){var M=p.FullPaths[0];T.slice(0,M.length)==M?M=T:(M.slice(-1)!="/"&&(M+="/"),M=(M+T).replace("//","/")),w={name:t(T),type:2},p.FileIndex.push(w),p.FullPaths.push(M),k||me.utils.cfb_gc(p)}return w.content=m,w.size=m?m.length:0,E&&(E.CLSID&&(w.clsid=E.CLSID),E.mt&&(w.mt=E.mt),E.ct&&(w.ct=E.ct)),w}function Ld(p,T){A(p);var m=me.find(p,T);if(m){for(var E=0;E<p.FileIndex.length;++E)if(p.FileIndex[E]==m)return p.FileIndex.splice(E,1),p.FullPaths.splice(E,1),!0}return!1}function Md(p,T,m){A(p);var E=me.find(p,T);if(E){for(var k=0;k<p.FileIndex.length;++k)if(p.FileIndex[k]==E)return p.FileIndex[k].name=t(m),p.FullPaths[k]=m,!0}return!1}function Bd(p){D(p,!0)}return a.find=G,a.read=I,a.parse=l,a.write=le,a.writeFile=Fe,a.utils={cfb_new:Pd,cfb_add:C0,cfb_del:Ld,cfb_mov:Md,cfb_gc:Bd,ReadShift:Ma,CheckField:Mn,prep_blob:$e,bconcat:zr,use_zlib:F,_deflateRaw:ve,_inflateRaw:vi,consts:ie},a}();function Ki(e){if(typeof Deno<"u")return Deno.readFileSync(e);if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var a=File(e);a.open("r"),a.encoding="binary";var r=a.read();return a.close(),r}catch(n){if(!n.message||!n.message.match(/onstruct/))throw n}throw new Error("Cannot access file "+e)}function Sr(e){for(var a=Object.keys(e),r=[],n=0;n<a.length;++n)Object.prototype.hasOwnProperty.call(e,a[n])&&r.push(a[n]);return r}function bt(e){for(var a=[],r=Sr(e),n=0;n!==r.length;++n)a[e[r[n]]]=r[n];return a}var ht=new Date(1899,11,30,0,0,0);function tr(e,a){var r=e.getTime();a&&(r-=1462*24*60*60*1e3);var n=ht.getTime()+(e.getTimezoneOffset()-ht.getTimezoneOffset())*6e4;return(r-n)/(24*60*60*1e3)}var en=new Date,Yi=ht.getTime()+(en.getTimezoneOffset()-ht.getTimezoneOffset())*6e4,rn=en.getTimezoneOffset();function ut(e){var a=new Date;return a.setTime(e*24*60*60*1e3+Yi),a.getTimezoneOffset()!==rn&&a.setTime(a.getTime()+(a.getTimezoneOffset()-rn)*6e4),a}function ji(e){var a=0,r=0,n=!1,t=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!t)throw new Error("|"+e+"| is not an ISO8601 Duration");for(var s=1;s!=t.length;++s)if(t[s]){switch(r=1,s>3&&(n=!0),t[s].slice(t[s].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+t[s].slice(t[s].length-1));case"D":r*=24;case"H":r*=60;case"M":if(n)r*=60;else throw new Error("Unsupported ISO Duration Field: M")}a+=r*parseInt(t[s],10)}return a}var an=new Date("2017-02-19T19:06:09.000Z"),tn=isNaN(an.getFullYear())?new Date("2/19/17"):an,Ji=tn.getFullYear()==2017;function Ve(e,a){var r=new Date(e);if(Ji)return a>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):a<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(tn.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var t=e.match(/\d+/g)||["2017","2","19","0","0","0"],s=new Date(+t[0],+t[1]-1,+t[2],+t[3]||0,+t[4]||0,+t[5]||0);return e.indexOf("Z")>-1&&(s=new Date(s.getTime()-s.getTimezoneOffset()*60*1e3)),s}function ia(e,a){if(ge&&Buffer.isBuffer(e)){if(a){if(e[0]==255&&e[1]==254)return Ia(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return Ia(R0(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(a){if(e[0]==255&&e[1]==254)return Ia(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return Ia(new TextDecoder("utf-16be").decode(e.slice(2)))}var r={"€":"€","":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","":"‹",Œ:"Œ",Ž:"Ž","":"‘","":"’","“":"“","”":"”","•":"•","":"–","—":"—","˜":"˜","™":"™",š:"š","":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(s){return r[s]||s})}catch{}for(var n=[],t=0;t!=e.length;++t)n.push(String.fromCharCode(e[t]));return n.join("")}fu
`,rc=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,hn=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,ac=/<[^>]*>/g,Ke=ln.match(hn)?hn:ac,tc=/<\w*:/,nc=/<(\/?)\w+:/;function oe(e,a,r){for(var n={},t=0,s=0;t!==e.length&&!((s=e.charCodeAt(t))===32||s===10||s===13);++t);if(a||(n[0]=e.slice(0,t)),t===e.length)return n;var i=e.match(rc),c=0,f="",o=0,l="",h="",x=1;if(i)for(o=0;o!=i.length;++o){for(h=i[o],s=0;s!=h.length&&h.charCodeAt(s)!==61;++s);for(l=h.slice(0,s).trim();h.charCodeAt(s+1)==32;)++s;for(x=(t=h.charCodeAt(s+1))==34||t==39?1:0,f=h.slice(s+1+x,h.length-x),c=0;c!=l.length&&l.charCodeAt(c)!==58;++c);if(c===l.length)l.indexOf("_")>0&&(l=l.slice(0,l.indexOf("_"))),n[l]=f,r||(n[l.toLowerCase()]=f);else{var d=(c===5&&l.slice(0,5)==="xmlns"?"xmlns":"")+l.slice(c+1);if(n[d]&&l.slice(c-3,c)=="ext")continue;n[d]=f,r||(n[d.toLowerCase()]=f)}}return n}function Cr(e){return e.replace(nc,"<$1")}var un={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},sc=bt(un),Ee=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig,a=/_x([\da-fA-F]{4})_/ig;return function r(n){var t=n+"",s=t.indexOf("<![CDATA[");if(s==-1)return t.replace(e,function(c,f){return un[c]||String.fromCharCode(parseInt(f,c.indexOf("x")>-1?16:10))||c}).replace(a,function(c,f){return String.fromCharCode(parseInt(f,16))});var i=t.indexOf("]]>");return r(t.slice(0,s))+t.slice(s+9,i)+r(t.slice(i+3))}}(),ic=/[&<>'"]/g,cc=/[\u0000-\u001f]/g;function Ht(e){var a=e+"";return a.replace(ic,function(r){return sc[r]}).replace(/\n/g,"<br/>").replace(cc,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}var xn=function(){var e=/&#(\d+);/g;function a(r,n){return String.fromCharCode(parseInt(n,10))}return function(n){return n.replace(e,a)}}();function Se(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Wt(e){for(var a="",r=0,n=0,t=0,s=0,i=0,c=0;r<e.length;){if(n=e.charCodeAt(r++),n<128){a+=String.fromCharCode(n);continue}if(t=e.charCodeAt(r++),n>191&&n<224){i=(n&31)<<6,i|=t&63,a+=String.fromCharCode(i);continue}if(s=e.charCodeAt(r++),n<240){a+=String.fromCharCode((n&15)<<12|(t&63)<<6|s&63);continue}i=e.charCodeAt(r++),c=((n&7)<<18|(t&63)<<12|(s&63)<<6|i&63)-65536,a+=String.fromCharCode(55296+(c>>>10&1023)),a+=String.fromCharCode(56320+(c&1023))}return a}function dn(e){var a=$r(2*e.length),r,n,t=1,s=0,i=0,c;for(n=0;n<e.length;n+=t)t=1,(c=e.charCodeAt(n))<128?r=c:c<224?(r=(c&31)*64+(e.charCodeAt(n+1)&63),t=2):c<240?(r=(c&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),t=3):(t=4,r=(c&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+3)&63),r-=65536,i=55296+(r>>>10&1023),r=56320+(r&1023)),i!==0&&(a[s++]=i&255,a[s++]=i>>>8,i=0),a[s++]=r%256,a[s++]=r>>>8;return a.slice(0,s).toString("ucs2")}function vn(e){return ra(e,"binary").toString("utf8")}var xt="foo bar baz☃🍣",Ae=ge&&(vn(xt)==Wt(xt)&&vn||dn(xt)==Wt(xt)&&dn)||Wt,Ia=ge?function(e){return ra(e,"utf8").toString("binary")}:function(e){for(var a=[],r=0,n=0,t=0;r<e.length;)switch(n=e.charCodeAt(r++),!0){case n<128:a.push(String.fromCharCode(n));break;case n<2048:a.push(String.fromCharCode(192+(n>>6))),a.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,t=e.charCodeAt(r++)-56320+(n<<10),a.push(String.fromCharCode(240+(t>>18&7))),a.push(String.fromCharCode(144+(t>>12&63))),a.push(String.fromCharCode(128+(t>>6&63))),a.push(String.fromCharCode(128+(t&63)));break;default:a.push(String.fromCharCode(224+(n>>12))),a.push(String.fromCharCode(128+(n>>6&63))),a.push(String.fromCharCode(128+(n&63)))}return a.join("")},Na=function(){var e={};return function(r,n){var t=r+"|"+(n||"");return e[t]?e[t]:e[t]=new RegExp("<(?:\\w+:)?"+r+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+r+">",n||"")}}(),pn=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(a){return[new RegExp("&"+a[0]+";","ig"),a[1]]});return function(r){for(var n=r.repl
`).replace(/<[^>]*>/g,""),t=0;t<e.length;++t)n=n.replace(e[t][0],e[t][1]);return n}}(),fc=function(){var e={};return function(r){return e[r]!==void 0?e[r]:e[r]=new RegExp("<(?:vt:)?"+r+">([\\s\\S]*?)</(?:vt:)?"+r+">","g")}}(),oc=/<\/?(?:vt:)?variant>/g,lc=/<(?:vt:)([^>]*)>([\s\S]*)</;function gn(e,a){var r=oe(e),n=e.match(fc(r.baseType))||[],t=[];if(n.length!=r.size){if(a.WTF)throw new Error("unexpected vector length "+n.length+" != "+r.size);return t}return n.forEach(function(s){var i=s.replace(oc,"").match(lc);i&&t.push({v:Ae(i[2]),t:i[1]})}),t}var hc=/(^\s|\s$|\n)/;function uc(e){return Sr(e).map(function(a){return" "+a+'="'+e[a]+'"'}).join("")}function xc(e,a,r){return"<"+e+(r!=null?uc(r):"")+(a!=null?(a.match(hc)?' xml:space="preserve"':"")+">"+a+"</"+e:"/")+">"}function Vt(e){if(ge&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e=="string")return e;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return Ae(aa(Pt(e)));throw new Error("Bad input format: expected Buffer or string")}var Pa=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/mg,dc={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},vc=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"];function pc(e,a){for(var r=1-2*(e[a+7]>>>7),n=((e[a+7]&127)<<4)+(e[a+6]>>>4&15),t=e[a+6]&15,s=5;s>=0;--s)t=t*256+e[a+s];return n==2047?t==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,t+=Math.pow(2,52)),r*Math.pow(2,n-52)*t)}function gc(e,a,r){var n=(a<0||1/a==-1/0?1:0)<<7,t=0,s=0,i=n?-a:a;isFinite(i)?i==0?t=s=0:(t=Math.floor(Math.log(i)/Math.LN2),s=i*Math.pow(2,52-t),t<=-1023&&(!isFinite(s)||s<Math.pow(2,52))?t=-1022:(s-=Math.pow(2,52),t+=1023)):(t=2047,s=isNaN(a)?26985:0);for(var c=0;c<=5;++c,s/=256)e[r+c]=s&255;e[r+6]=(t&15)<<4|s&15,e[r+7]=t>>4|n}var mn=function(e){for(var a=[],r=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var t=0,s=e[0][n].length;t<s;t+=r)a.push.apply(a,e[0][n].slice(t,t+r));return a},_n=ge?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(a){return Buffer.isBuffer(a)?a:ra(a)})):mn(e)}:mn,En=function(e,a,r){for(var n=[],t=a;t<r;t+=2)n.push(String.fromCharCode(Lr(e,t)));return n.join("").replace(rr,"")},Gt=ge?function(e,a,r){return Buffer.isBuffer(e)?e.toString("utf16le",a,r).replace(rr,""):En(e,a,r)}:En,Tn=function(e,a,r){for(var n=[],t=a;t<a+r;++t)n.push(("0"+e[t].toString(16)).slice(-2));return n.join("")},kn=ge?function(e,a,r){return Buffer.isBuffer(e)?e.toString("hex",a,a+r):Tn(e,a,r)}:Tn,wn=function(e,a,r){for(var n=[],t=a;t<r;t++)n.push(String.fromCharCode(Ta(e,t)));return n.join("")},La=ge?function(a,r,n){return Buffer.isBuffer(a)?a.toString("utf8",r,n):wn(a,r,n)}:wn,An=function(e,a){var r=lr(e,a);return r>0?La(e,a+4,a+4+r-1):""},Fn=An,Sn=function(e,a){var r=lr(e,a);return r>0?La(e,a+4,a+4+r-1):""},Cn=Sn,yn=function(e,a){var r=2*lr(e,a);return r>0?La(e,a+4,a+4+r-1):""},Dn=yn,On=function(a,r){var n=lr(a,r);return n>0?Gt(a,r+4,r+4+n):""},Rn=On,In=function(e,a){var r=lr(e,a);return r>0?La(e,a+4,a+4+r):""},Nn=In,Pn=function(e,a){return pc(e,a)},dt=Pn,Ln=
`;v.push("P;PGeneral"),v.push("F;P0;DG0G8;M255"),x["!cols"]&&o(v,x["!cols"]),x["!rows"]&&l(v,x["!rows"]),v.push("B;Y"+(g.e.r-g.s.r+1)+";X"+(g.e.c-g.s.c+1)+";D"+[g.s.c,g.s.r,g.e.c,g.e.r].join(" "));for(var N=g.s.r;N<=g.e.r;++N)for(var b=g.s.c;b<=g.e.c;++b){var I=ue({r:N,c:b});S=y?(x[N]||[])[b]:x[I],!(!S||S.v==null&&(!S.f||S.F))&&u.push(f(S,x,N,b))}return v.join(_)+_+u.join(_)+_+"E"+_}return{to_workbook:c,to_sheet:i,from_sheet:h}}(),No=function(){function e(s,i){switch(i.type){case"base64":return a(fr(s),i);case"binary":return a(s,i);case"buffer":return a(ge&&Buffer.isBuffer(s)?s.toString("binary"):aa(s),i);case"array":return a(ia(s),i)}throw new Error("Unrecognized type "+i.type)}function a(s,i){for(var c=s.split(`
`),f=-1,o=-1,l=0,h=[];l!==c.length;++l){if(c[l].trim()==="BOT"){h[++f]=[],o=0;continue}if(!(f<0)){var x=c[l].trim().split(","),d=x[0],v=x[1];++l;for(var u=c[l]||"";(u.match(/["]/g)||[]).length&1&&l<c.length-1;)u+=`
`+c[++l];switch(u=u.trim(),+d){case-1:if(u==="BOT"){h[++f]=[],o=0;continue}else if(u!=="EOD")throw new Error("Unrecognized DIF special command "+u);break;case 0:u==="TRUE"?h[f][o]=!0:u==="FALSE"?h[f][o]=!1:isNaN(kr(v))?isNaN(Ea(v).getDate())?h[f][o]=v:h[f][o]=Ve(v):h[f][o]=kr(v),++o;break;case 1:u=u.slice(1,u.length-1),u=u.replace(/""/g,'"'),u&&u.match(/^=".*"$/)&&(u=u.slice(2,-1)),h[f][o++]=u!==""?u:null;break}if(u==="EOD")break}}return i&&i.sheetRows&&(h=h.slice(0,i.sheetRows)),h}function r(s,i){return wa(e(s,i),i)}function n(s,i){return Yr(r(s,i),i)}var t=function(){var s=function(f,o,l,h,x){f.push(o),f.push(l+","+h),f.push('"'+x.replace(/"/g,'""')+'"')},i=function(f,o,l,h){f.push(o+","+l),f.push(o==1?'"'+h.replace(/"/g,'""')+'"':h)};return function(f){var o=[],l=Oe(f["!ref"]),h,x=Array.isArray(f);s(o,"TABLE",0,1,"sheetjs"),s(o,"VECTORS",0,l.e.r-l.s.r+1,""),s(o,"TUPLES",0,l.e.c-l.s.c+1,""),s(o,"DATA",0,0,"");for(var d=l.s.r;d<=l.e.r;++d){i(o,-1,0,"BOT");for(var v=l.s.c;v<=l.e.c;++v){var u=ue({r:d,c:v});if(h=x?(f[d]||[])[v]:f[u],!h){i(o,1,0,"");continue}switch(h.t){case"n":var g=h.w;!g&&h.v!=null&&(g=h.v),g==null?h.f&&!h.F?i(o,1,0,"="+h.f):i(o,1,0,""):i(o,0,g,"V");break;case"b":i(o,0,h.v?1:0,h.v?"TRUE":"FALSE");break;case"s":i(o,1,0,isNaN(h.v)?h.v:'="'+h.v+'"');break;case"d":h.w||(h.w=xr(h.z||de[14],tr(Ve(h.v)))),i(o,0,h.w,"V");break;default:i(o,1,0,"")}}}i(o,-1,0,"EOD");var S=`\r
`,y=o.join(S);return y}}();return{to_workbook:n,to_sheet:r,from_sheet:t}}(),Po=function(){function e(h){return h.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
`)}function a(h){return h.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(h,x){for(var d=h.split(`
`),v=-1,u=-1,g=0,S=[];g!==d.length;++g){var y=d[g].trim().split(":");if(y[0]==="cell"){var _=nr(y[1]);if(S.length<=_.r)for(v=S.length;v<=_.r;++v)S[v]||(S[v]=[]);switch(v=_.r,u=_.c,y[2]){case"t":S[v][u]=e(y[3]);break;case"v":S[v][u]=+y[3];break;case"vtf":var N=y[y.length-1];case"vtc":switch(y[3]){case"nl":S[v][u]=!!+y[4];break;default:S[v][u]=+y[4];break}y[2]=="vtf"&&(S[v][u]=[S[v][u],N])}}}return x&&x.sheetRows&&(S=S.slice(0,x.sheetRows)),S}function n(h,x){return wa(r(h,x),x)}function t(h,x){return Yr(n(h,x),x)}var s=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
`),i=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
`)+`
`,c=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
`),f="--SocialCalcSpreadsheetControlSave--";function o(h){if(!h||!h["!ref"])return"";for(var x=[],d=[],v,u="",g=ka(h["!ref"]),S=Array.isArray(h),y=g.s.r;y<=g.e.r;++y)for(var _=g.s.c;_<=g.e.c;++_)if(u=ue({r:y,c:_}),v=S?(h[y]||[])[_]:h[u],!(!v||v.v==null||v.t==="z")){switch(d=["cell",u,"t"],v.t){case"s":case"str":d.push(a(v.v));break;case"n":v.f?(d[2]="vtf",d[3]="n",d[4]=v.v,d[5]=a(v.f)):(d[2]="v",d[3]=v.v);break;case"b":d[2]="vt"+(v.f?"f":"c"),d[3]="nl",d[4]=v.v?"1":"0",d[5]=a(v.f||(v.v?"TRUE":"FALSE"));break;case"d":var N=tr(Ve(v.v));d[2]="vtc",d[3]="nd",d[4]=""+N,d[5]=v.w||xr(v.z||de[14],N);break;case"e":continue}x.push(d.join(":"))}return x.push("sheet:c:"+(g.e.c-g.s.c+1)+":r:"+(g.e.r-g.s.r+1)+":tvf:1"),x.push("valueformat:1:text-wiki"),x.join(`
`)}function l(h){return[s,i,c,i,o(h),f].join(`
`)}return{to_workbook:t,to_sheet:n,from_sheet:l}}(),Ga=function(){function e(l,h,x,d,v){v.raw?h[x][d]=l:l===""||(l==="TRUE"?h[x][d]=!0:l==="FALSE"?h[x][d]=!1:isNaN(kr(l))?isNaN(Ea(l).getDate())?h[x][d]=l:h[x][d]=Ve(l):h[x][d]=kr(l))}function a(l,h){var x=h||{},d=[];if(!l||l.length===0)return d;for(var v=l.split(/[\r\n]/),u=v.length-1;u>=0&&v[u].length===0;)--u;for(var g=10,S=0,y=0;y<=u;++y)S=v[y].indexOf(" "),S==-1?S=v[y].length:S++,g=Math.max(g,S);for(y=0;y<=u;++y){d[y]=[];var _=0;for(e(v[y].slice(0,g).trim(),d,y,_,x),_=1;_<=(v[y].length-g)/10+1;++_)e(v[y].slice(g+(_-1)*10,g+_*10).trim(),d,y,_,x)}return x.sheetRows&&(d=d.slice(0,x.sheetRows)),d}var r={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function t(l){for(var h={},x=!1,d=0,v=0;d<l.length;++d)(v=l.charCodeAt(d))==34?x=!x:!x&&v in r&&(h[v]=(h[v]||0)+1);v=[];for(d in h)Object.prototype.hasOwnProperty.call(h,d)&&v.push([h[d],d]);if(!v.length){h=n;for(d in h)Object.prototype.hasOwnProperty.call(h,d)&&v.push([h[d],d])}return v.sort(function(u,g){return u[0]-g[0]||n[u[1]]-n[g[1]]}),r[v.pop()[1]]||44}function s(l,h){var x=h||{},d="",v=x.dense?[]:{},u={s:{c:0,r:0},e:{c:0,r:0}};l.slice(0,4)=="sep="?l.charCodeAt(5)==13&&l.charCodeAt(6)==10?(d=l.charAt(4),l=l.slice(7)):l.charCodeAt(5)==13||l.charCodeAt(5)==10?(d=l.charAt(4),l=l.slice(6)):d=t(l.slice(0,1024)):x&&x.FS?d=x.FS:d=t(l.slice(0,1024));var g=0,S=0,y=0,_=0,N=0,b=d.charCodeAt(0),I=!1,A=0,W=l.charCodeAt(0);l=l.replace(/\r\n/mg,`
`);var D=x.dateNF!=null?Xi(x.dateNF):null;function z(){var G=l.slice(_,N),P={};if(G.charAt(0)=='"'&&G.charAt(G.length-1)=='"'&&(G=G.slice(1,-1).replace(/""/g,'"')),G.length===0)P.t="z";else if(x.raw)P.t="s",P.v=G;else if(G.trim().length===0)P.t="s",P.v=G;else if(G.charCodeAt(0)==61)G.charCodeAt(1)==34&&G.charCodeAt(G.length-1)==34?(P.t="s",P.v=G.slice(2,-1).replace(/""/g,'"')):E1(G)?(P.t="n",P.f=G.slice(1)):(P.t="s",P.v=G);else if(G=="TRUE")P.t="b",P.v=!0;else if(G=="FALSE")P.t="b",P.v=!1;else if(!isNaN(y=kr(G)))P.t="n",x.cellText!==!1&&(P.w=G),P.v=y;else if(!isNaN(Ea(G).getDate())||D&&G.match(D)){P.z=x.dateNF||de[14];var J=0;D&&G.match(D)&&(G=$i(G,x.dateNF,G.match(D)||[]),J=1),x.cellDates?(P.t="d",P.v=Ve(G,J)):(P.t="n",P.v=tr(Ve(G,J))),x.cellText!==!1&&(P.w=xr(P.z,P.v instanceof Date?tr(P.v):P.v)),x.cellNF||delete P.z}else P.t="s",P.v=G;if(P.t=="z"||(x.dense?(v[g]||(v[g]=[]),v[g][S]=P):v[ue({c:S,r:g})]=P),_=N+1,W=l.charCodeAt(_),u.e.c<S&&(u.e.c=S),u.e.r<g&&(u.e.r=g),A==b)++S;else if(S=0,++g,x.sheetRows&&x.sheetRows<=g)return!0}e:for(;N<l.length;++N)switch(A=l.charCodeAt(N)){case 34:W===34&&(I=!I);break;case b:case 10:case 13:if(!I&&z())break e;break}return N-_>0&&z(),v["!ref"]=_e(u),v}function i(l,h){return!(h&&h.PRN)||h.FS||l.slice(0,4)=="sep="||l.indexOf(" ")>=0||l.indexOf(",")>=0||l.indexOf(";")>=0?s(l,h):wa(a(l,h),h)}function c(l,h){var x="",d=h.type=="string"?[0,0,0,0]:E0(l,h);switch(h.type){case"base64":x=fr(l);break;case"binary":x=l;break;case"buffer":h.codepage==65001?x=l.toString("utf8"):h.codepage&&typeof Gr<"u"?x=Gr.utils.decode(h.codepage,l):x=ge&&Buffer.isBuffer(l)?l.toString("binary"):aa(l);break;case"array":x=ia(l);break;case"string":x=l;break;default:throw new Error("Unrecognized type "+h.type)}return d[0]==239&&d[1]==187&&d[2]==191?x=Ae(x.slice(3)):h.type!="string"&&h.type!="buffer"&&h.codepage==65001?x=Ae(x):h.type=="binary"&&typeof Gr<"u"&&h.codepage&&(x=Gr.utils.decode(h.codepage,Gr.utils.encode(28591,x))),x.slice(0,19)=="socialcalc:version:"?Po.to_sheet(h.type=="string"?x:Ae(x),h):i(x,h)}function f(l,h){return Yr(c(l,h),h)}function o(l){for(var h=[],x=Oe(l["!ref"]),d,v=Array.isArray(l),u=x.s.r;u<=x.e.r;++u){for(var g=[],S=x.s.c;S<=x.e.c;++S){var y=ue({r:u,c:S});if(d=v?(l[u]||[])[S]:l[y],!d||d.v==null){g.push(" ");continue}for(var _=(d.w||(Br(d),d.w)||"").slice(0,10);_.length<10;)_+=" ";g.push(_+(S===0?" ":""))}h.push(g.join(""))}return h.join(`
`)}return{to_workbook:f,to_sheet:c,from_sheet:o}}();function Lo(e,a){var r=a||{},n=!!r.WTF;r.WTF=!0;try{var t=Io.to_workbook(e,r);return r.WTF=n,t}catch(s){if(r.WTF=n,!s.message.match(/SYLK bad record ID/)&&n)throw s;return Ga.to_workbook(e,a)}}var Xa=function(){function e(F,U,R){if(F){$e(F,F.l||0);for(var O=R.Enum||le;F.l<F.length;){var K=F.read_shift(2),ee=O[K]||O[65535],ne=F.read_shift(2),q=F.l+ne,j=ee.f&&ee.f(F,ne,R);if(F.l=q,U(j,ee,K))return}}}function a(F,U){switch(U.type){case"base64":return r(Er(fr(F)),U);case"binary":return r(Er(F),U);case"buffer":case"array":return r(F,U)}throw"Unsupported type "+U.type}function r(F,U){if(!F)return F;var R=U||{},O=R.dense?[]:{},K="Sheet1",ee="",ne=0,q={},j=[],Te=[],C={s:{r:0,c:0},e:{r:0,c:0}},Ie=R.sheetRows||0;if(F[2]==0&&(F[3]==8||F[3]==9)&&F.length>=16&&F[14]==5&&F[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(F[2]==2)R.Enum=le,e(F,function(ae,Ne,gr){switch(gr){case 0:R.vers=ae,ae>=4096&&(R.qpro=!0);break;case 6:C=ae;break;case 204:ae&&(ee=ae);break;case 222:ee=ae;break;case 15:case 51:R.qpro||(ae[1].v=ae[1].v.slice(1));case 13:case 14:case 16:gr==14&&(ae[2]&112)==112&&(ae[2]&15)>1&&(ae[2]&15)<15&&(ae[1].z=R.dateNF||de[14],R.cellDates&&(ae[1].t="d",ae[1].v=ut(ae[1].v))),R.qpro&&ae[3]>ne&&(O["!ref"]=_e(C),q[K]=O,j.push(K),O=R.dense?[]:{},C={s:{r:0,c:0},e:{r:0,c:0}},ne=ae[3],K=ee||"Sheet"+(ne+1),ee="");var Or=R.dense?(O[ae[0].r]||[])[ae[0].c]:O[ue(ae[0])];if(Or){Or.t=ae[1].t,Or.v=ae[1].v,ae[1].z!=null&&(Or.z=ae[1].z),ae[1].f!=null&&(Or.f=ae[1].f);break}R.dense?(O[ae[0].r]||(O[ae[0].r]=[]),O[ae[0].r][ae[0].c]=ae[1]):O[ue(ae[0])]=ae[1];break}},R);else if(F[2]==26||F[2]==14)R.Enum=he,F[2]==14&&(R.qpro=!0,F.l=0),e(F,function(ae,Ne,gr){switch(gr){case 204:K=ae;break;case 22:ae[1].v=ae[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(ae[3]>ne&&(O["!ref"]=_e(C),q[K]=O,j.push(K),O=R.dense?[]:{},C={s:{r:0,c:0},e:{r:0,c:0}},ne=ae[3],K="Sheet"+(ne+1)),Ie>0&&ae[0].r>=Ie)break;R.dense?(O[ae[0].r]||(O[ae[0].r]=[]),O[ae[0].r][ae[0].c]=ae[1]):O[ue(ae[0])]=ae[1],C.e.c<ae[0].c&&(C.e.c=ae[0].c),C.e.r<ae[0].r&&(C.e.r=ae[0].r);break;case 27:ae[14e3]&&(Te[ae[14e3][0]]=ae[14e3][1]);break;case 1537:Te[ae[0]]=ae[1],ae[0]==ne&&(K=ae[1]);break}},R);else throw new Error("Unrecognized LOTUS BOF "+F[2]);if(O["!ref"]=_e(C),q[ee||K]=O,j.push(ee||K),!Te.length)return{SheetNames:j,Sheets:q};for(var ke={},we=[],pe=0;pe<Te.length;++pe)q[j[pe]]?(we.push(Te[pe]||j[pe]),ke[Te[pe]]=q[Te[pe]]||q[j[pe]]):(we.push(Te[pe]),ke[Te[pe]]={"!ref":"A1"});return{SheetNames:we,Sheets:ke}}function n(F,U){var R=U||{};if(+R.codepage>=0&&_r(+R.codepage),R.type=="string")throw new Error("Cannot write WK1 to JS string");var O=Xt(),K=Oe(F["!ref"]),ee=Array.isArray(F),ne=[];Ar(O,0,s(1030)),Ar(O,6,f(K));for(var q=Math.min(K.e.r,8191),j=K.s.r;j<=q;++j)for(var Te=ze(j),C=K.s.c;C<=K.e.c;++C){j===K.s.r&&(ne[C]=Ue(C));var Ie=ne[C]+Te,ke=ee?(F[j]||[])[C]:F[Ie];if(!(!ke||ke.t=="z"))if(ke.t=="n")(ke.v|0)==ke.v&&ke.v>=-32768&&ke.v<=32767?Ar(O,13,d(j,C,ke.v)):Ar(O,14,u(j,C,ke.v));else{var we=Br(ke);Ar(O,15,h(j,C,we.slice(0,239)))}}return Ar(O,1),O.end()}function t(F,U){var R=U||{};if(+R.codepage>=0&&_r(+R.codepage),R.type=="string")throw new Error("Cannot write WK3 to JS string");var O=Xt();Ar(O,0,i(F));for(var K=0,ee=0;K<F.SheetNames.length;++K)(F.Sheets[F.SheetNames[K]]||{})["!ref"]&&Ar(O,27,V(F.SheetNames[K],ee++));var ne=0;for(K=0;K<F.SheetNames.length;++K){var q=F.Sheets[F.SheetNames[K]];if(!(!q||!q["!ref"])){for(var j=Oe(q["!ref"]),Te=Array.isArray(q),C=[],Ie=Math.min(j.e.r,8191),ke=j.s.r;ke<=Ie;++ke)for(var we=ze(ke),pe=j.s.c;pe<=j.e.c;++pe){ke===j.s.r&&(C[pe]=Ue(pe));var ae=C[pe]+we,Ne=Te?(q[ke]||[])[pe]:q[ae];if(!(!Ne||Ne.t=="z"))if(Ne.t=="n")Ar(O,23,z(ke,pe,ne,Ne.v));else{var gr=Br(Ne);Ar(O,22,A(ke,pe,ne,gr.slice(0,239)))}}++ne}}return Ar(O,1),O.end()}function s(F){var U=be(2);return U.write_shift(2,F),U}function i(F){var U=be(26);U.write_shift(2,4096),U.write_shift(2,4),U.write_shift(4,0);for(var R=0,O=0,K=0,ee=0;ee<F.SheetNames.length;++ee){var ne=F.SheetNames[ee],q=F.Sheets[ne];if(!(!q||!q["!ref"]))
`).replace(/\r/g,`
`),a.cellHTML&&(o.h=x.h),n.push(o)}}}}),n}function c1(e,a){var r=[],n=!1,t={},s=0;return e.replace(Ke,function(c,f){var o=oe(c);switch(Cr(o[0])){case"<?xml":break;case"<ThreadedComments":break;case"</ThreadedComments>":break;case"<threadedComment":t={author:o.personId,guid:o.id,ref:o.ref,T:1};break;case"</threadedComment>":t.t!=null&&r.push(t);break;case"<text>":case"<text":s=f+c.length;break;case"</text>":t.t=e.slice(s,f).replace(/\r\n/g,`
`).replace(/\r/g,`
`);break;case"<mentions":case"<mentions>":n=!0;break;case"</mentions>":n=!1;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&a.WTF)throw new Error("unrecognized "+o[0]+" in threaded comments")}return c}),r}function f1(e,a){var r=[],n=!1;return e.replace(Ke,function(s){var i=oe(s);switch(Cr(i[0])){case"<?xml":break;case"<personList":break;case"</personList>":break;case"<person":r.push({name:i.displayname,id:i.id});break;case"</person>":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&a.WTF)throw new Error("unrecognized "+i[0]+" in threaded comments")}return s}),r}function o1(e){var a={};a.iauthor=e.read_shift(4);var r=oa(e);return a.rfx=r.s,a.ref=ue(r.s),e.l+=16,a}var l1=je;function h1(e,a){var r=[],n=[],t={},s=!1;return Mr(e,function(c,f,o){switch(o){case 632:n.push(c);break;case 635:t=c;break;case 637:t.t=c.t,t.h=c.h,t.r=c.r;break;case 636:if(t.author=n[t.iauthor],delete t.iauthor,a.sheetRows&&t.rfx&&a.sheetRows<=t.rfx.r)break;t.t||(t.t=""),delete t.rfx,r.push(t);break;case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:break;case 38:break;default:if(!f.T){if(!s||a.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}}}),r}var u1="application/vnd.ms-office.vbaProject";function x1(e){var a=me.utils.cfb_new({root:"R"});return e.FullPaths.forEach(function(r,n){if(!(r.slice(-1)==="/"||!r.match(/_VBA_PROJECT_CUR/))){var t=r.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");me.utils.cfb_add(a,t,e.FileIndex[n].content)}}),me.write(a)}function d1(){return{"!type":"dialog"}}function v1(){return{"!type":"dialog"}}function p1(){return{"!type":"macro"}}function g1(){return{"!type":"macro"}}var Sa=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,a={r:0,c:0};function r(n,t,s,i){var c=!1,f=!1;s.length==0?f=!0:s.charAt(0)=="["&&(f=!0,s=s.slice(1,-1)),i.length==0?c=!0:i.charAt(0)=="["&&(c=!0,i=i.slice(1,-1));var o=s.length>0?parseInt(s,10)|0:0,l=i.length>0?parseInt(i,10)|0:0;return c?l+=a.c:--l,f?o+=a.r:--o,t+(c?"":"$")+Ue(l)+(f?"":"$")+ze(o)}return function(t,s){return a=s,t.replace(e,r)}}(),Cs=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,m1=function(){return function(a,r){return a.replace(Cs,function(n,t,s,i,c,f){var o=Kt(i)-(s?0:r.c),l=zt(f)-(c?0:r.r),h=l==0?"":c?l+1:"["+l+"]",x=o==0?"":s?o+1:"["+o+"]";return t+"R"+h+"C"+x})}}();function ys(e,a){return e.replace(Cs,function(r,n,t,s,i,c){return n+(t=="$"?t+s:Ue(Kt(s)+a.c))+(i=="$"?i+c:ze(zt(c)+a.r))})}function _1(e,a,r){var n=ka(a),t=n.s,s=nr(r),i={r:s.r-t.r,c:s.c-t.c};return ys(e,i)}function E1(e){return e.length!=1}function Ds(e){return e.replace(/_xlfn\./g,"")}function Be(e){e.l+=1}function Jr(e,a){var r=e.read_shift(a==1?1:2);return[r&16383,r>>14&1,r>>15&1]}function Os(e,a,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return Rs(e);r.biff==12&&(n=4)}var t=e.read_shift(n),s=e.read_shift(n),i=Jr(e,2),c=Jr(e,2);return{s:{r:t,c:i[0],cRel:i[1],rRel:i[2]},e:{r:s,c:c[0],cRel:c[1],rRel:c[2]}}}function Rs(e){var a=Jr(e,2),r=Jr(e,2),n=e.read_shift(1),t=e.read_shift(1);return{s:{r:a[0],c:n,cRel:a[1],rRel:a[2]},e:{r:r[0],c:t,cRel:r[1],rRel:r[2]}}}function T1(e,a,r){if(r.biff<8)return Rs(e);var n=e.read_shift(r.biff==12?4:2),t=e.read_shift(r.biff==12?4:2),s=Jr(e,2),i=Jr(e,2);return{s:{r:n,c:s[0],cRel:s[1],rRel:s[2]},e:{r:t,c:i[0],cRel:i[1],rRel:i[2]}}}function Is(e,a,r){if(r&&r.biff>=2&&r.biff<=5)return k1(e);var n=e.read_shift(r&&r.biff==12?4:2),t=Jr(e,2);return{r:n,c:t[0],cRel:t[1],rRel:t[2]}}function k1(e){var a=Jr(e,2),r=e.read_shift(1);return{r:a[0],c:r,cRel:a[1],rRel:a[2]}}function w1(e){var a=e.read_shift(2),r=e.read_shift(2);return{r:a,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function A1(e,a,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return F1(e);var t=e.read_shift(n>=12?4:2),s=e.read_shift(2),i=(s&16384)>>14,
`),l.xlfn||(I.f=Ds(I.f)),S[0].indexOf('t="array"')>-1)I.F=(b.match(t)||[])[1],I.F.indexOf(":")>-1&&ce.push([Oe(I.F),I.F]);else if(S[0].indexOf('t="shared"')>-1){G=oe(S[0]);var q=Ee(Ae(S[1]));l.xlfn||(q=Ds(q)),ie[parseInt(G.si,10)]=[G,q,A.r]}}else(S=b.match(/<f[^>]*\/>/))&&(G=oe(S[0]),ie[G.si]&&(I.f=_1(ie[G.si][1],ie[G.si][2],A.r)));var j=nr(A.r);for(_=0;_<ce.length;++_)j.r>=ce[_][0].s.r&&j.r<=ce[_][0].e.r&&j.c>=ce[_][0].s.c&&j.c<=ce[_][0].e.c&&(I.F=ce[_][1])}if(A.t==null&&I.v===void 0)if(I.f||I.F)I.v=0,I.t="n";else if(F)I.t="z";else continue;else I.t=A.t||"n";switch(h.s.c>D&&(h.s.c=D),h.e.c<D&&(h.e.c=D),I.t){case"n":if(I.v==""||I.v==null){if(!F)continue;I.t="z"}else I.v=parseFloat(I.v);break;case"s":if(typeof I.v>"u"){if(!F)continue;I.t="z"}else z=Ja[parseInt(I.v,10)],I.v=z.t,I.r=z.r,l.cellHTML&&(I.h=z.h);break;case"str":I.t="s",I.v=I.v!=null?Ae(I.v):"",l.cellHTML&&(I.h=Ht(I.v));break;case"inlineStr":S=b.match(n),I.t="s",S!=null&&(z=t0(S[1]))?(I.v=z.t,l.cellHTML&&(I.h=z.h)):I.v="";break;case"b":I.v=Se(I.v);break;case"d":l.cellDates?I.v=Ve(I.v,1):(I.v=tr(Ve(I.v,1)),I.t="n");break;case"e":(!l||l.cellText!==!1)&&(I.w=I.v),I.v=$n[I.v];break}if(P=J=0,re=null,fe&&A.s!==void 0&&(re=d.CellXf[A.s],re!=null&&(re.numFmtId!=null&&(P=re.numFmtId),l.cellStyles&&re.fillId!=null&&(J=re.fillId))),Ws(I,P,J,l,x,d),l.cellDates&&fe&&I.t=="n"&&_a(de[P])&&(I.t="d",I.v=ut(I.v)),A.cm&&l.xlmeta){var Te=(l.xlmeta.Cell||[])[+A.cm-1];Te&&Te.type=="XLDAPR"&&(I.D=!0)}if(Fe){var C=nr(A.r);o[C.r]||(o[C.r]=[]),o[C.r][C.c]=I}else o[A.r]=I}}}}V.length>0&&(o["!rows"]=V)}}();function ou(e,a){var r={},n=e.l+a;r.r=e.read_shift(4),e.l+=4;var t=e.read_shift(2);e.l+=1;var s=e.read_shift(1);return e.l=n,s&7&&(r.level=s&7),s&16&&(r.hidden=!0),s&32&&(r.hpt=t/20),r}var lu=oa;function hu(){}function uu(e,a){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=Ic(e),r}function xu(e){var a=vr(e);return[a]}function du(e){var a=fa(e);return[a]}function vu(e){var a=vr(e),r=e.read_shift(1);return[a,r,"b"]}function pu(e){var a=fa(e),r=e.read_shift(1);return[a,r,"b"]}function gu(e){var a=vr(e),r=e.read_shift(1);return[a,r,"e"]}function mu(e){var a=fa(e),r=e.read_shift(1);return[a,r,"e"]}function _u(e){var a=vr(e),r=e.read_shift(4);return[a,r,"s"]}function Eu(e){var a=fa(e),r=e.read_shift(4);return[a,r,"s"]}function Tu(e){var a=vr(e),r=Je(e);return[a,r,"n"]}function Gs(e){var a=fa(e),r=Je(e);return[a,r,"n"]}function ku(e){var a=vr(e),r=Zt(e);return[a,r,"n"]}function wu(e){var a=fa(e),r=Zt(e);return[a,r,"n"]}function Au(e){var a=vr(e),r=Yt(e);return[a,r,"is"]}function Fu(e){var a=vr(e),r=je(e);return[a,r,"str"]}function Su(e){var a=fa(e),r=je(e);return[a,r,"str"]}function Cu(e,a,r){var n=e.l+a,t=vr(e);t.r=r["!row"];var s=e.read_shift(1),i=[t,s,"b"];if(r.cellFormula){e.l+=2;var c=yt(e,n-e.l,r);i[3]=qe(c,null,t,r.supbooks,r)}else e.l=n;return i}function yu(e,a,r){var n=e.l+a,t=vr(e);t.r=r["!row"];var s=e.read_shift(1),i=[t,s,"e"];if(r.cellFormula){e.l+=2;var c=yt(e,n-e.l,r);i[3]=qe(c,null,t,r.supbooks,r)}else e.l=n;return i}function Du(e,a,r){var n=e.l+a,t=vr(e);t.r=r["!row"];var s=Je(e),i=[t,s,"n"];if(r.cellFormula){e.l+=2;var c=yt(e,n-e.l,r);i[3]=qe(c,null,t,r.supbooks,r)}else e.l=n;return i}function Ou(e,a,r){var n=e.l+a,t=vr(e);t.r=r["!row"];var s=je(e),i=[t,s,"str"];if(r.cellFormula){e.l+=2;var c=yt(e,n-e.l,r);i[3]=qe(c,null,t,r.supbooks,r)}else e.l=n;return i}var Ru=oa;function Iu(e,a){var r=e.l+a,n=oa(e),t=jt(e),s=je(e),i=je(e),c=je(e);e.l=r;var f={rfx:n,relId:t,loc:s,display:c};return i&&(f.Tooltip=i),f}function Nu(){}function Pu(e,a,r){var n=e.l+a,t=Hn(e),s=e.read_shift(1),i=[t];if(i[2]=s,r.cellFormula){var c=Uh(e,n-e.l,r);i[1]=c}else e.l=n;return i}function Lu(e,a,r){var n=e.l+a,t=oa(e),s=[t];if(r.cellFormula){var i=Wh(e,n-e.l,r);s[1]=i,e.l=n}else e.l=n;return s}var Mu=["left","right","top","bottom","header","footer"];function Bu(e){var a={};return Mu.forEach(function(r){a[r]=Je(e)}),a}function bu(e){var a=e.read_shift(2);return e.l+=28,{RTL:a&32}}function Uu(){}function Hu(){}function Wu(e,a,r,n,t,s,i){if(!e)return e;var c=a||{};n||(n={"!id":{}
`).replace(/\r/g,`
`),e.v=e.w=e.ixfe=void 0}function h0(e,a){var r=a||{};q0();var n=ya(Vt(e));(r.type=="binary"||r.type=="array"||r.type=="base64")&&(n=Ae(n));var t=n.slice(0,1024).toLowerCase(),s=!1;if(t=t.replace(/".*?"/g,""),(t.indexOf(">")&1023)>Math.min(t.indexOf(",")&1023,t.indexOf(";")&1023)){var i=Xe(r);return i.type="string",Ga.to_workbook(n,i)}if(t.indexOf("<?xml")==-1&&["html","table","head","meta","script","style","div"].forEach(function(Ne){t.indexOf("<"+Ne)>=0&&(s=!0)}),s)return Ix(n,r);qa={"General Number":"General","General Date":de[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":de[15],"Short Date":de[14],"Long Time":de[19],"Medium Time":de[18],"Short Time":de[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:de[2],Standard:de[4],Percent:de[10],Scientific:de[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var c,f=[],o,l={},h=[],x=r.dense?[]:{},d="",v={},u={},g=wr('<Data ss:Type="String">'),S=0,y=0,_=0,N={s:{r:2e6,c:2e6},e:{r:0,c:0}},b={},I={},A="",W=0,D=[],z={},G={},P=0,J=[],fe=[],re={},ce=[],ie,Fe=!1,V=[],le=[],he={},F=0,U=0,R={Sheets:[],WBProps:{date1904:!1}},O={};Pa.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/mg,"");for(var K="";c=Pa.exec(n);)switch(c[3]=(K=c[3]).toLowerCase()){case"data":if(K=="data"){if(c[1]==="/"){if((o=f.pop())[0]!==c[3])throw new Error("Bad state: "+o.join("|"))}else c[0].charAt(c[0].length-2)!=="/"&&f.push([c[3],!0]);break}if(f[f.length-1][1])break;c[1]==="/"?kx(n.slice(S,c.index),A,g,f[f.length-1][0]=="comment"?re:v,{c:y,r:_},b,ce[y],u,V,r):(A="",g=wr(c[0]),S=c.index+c[0].length);break;case"cell":if(c[1]==="/")if(fe.length>0&&(v.c=fe),(!r.sheetRows||r.sheetRows>_)&&v.v!==void 0&&(r.dense?(x[_]||(x[_]=[]),x[_][y]=v):x[Ue(y)+ze(_)]=v),v.HRef&&(v.l={Target:Ee(v.HRef)},v.HRefScreenTip&&(v.l.Tooltip=v.HRefScreenTip),delete v.HRef,delete v.HRefScreenTip),(v.MergeAcross||v.MergeDown)&&(F=y+(parseInt(v.MergeAcross,10)|0),U=_+(parseInt(v.MergeDown,10)|0),D.push({s:{c:y,r:_},e:{c:F,r:U}})),!r.sheetStubs)v.MergeAcross?y=F+1:++y;else if(v.MergeAcross||v.MergeDown){for(var ee=y;ee<=F;++ee)for(var ne=_;ne<=U;++ne)(ee>y||ne>_)&&(r.dense?(x[ne]||(x[ne]=[]),x[ne][ee]={t:"z"}):x[Ue(ee)+ze(ne)]={t:"z"});y=F+1}else++y;else v=gx(c[0]),v.Index&&(y=+v.Index-1),y<N.s.c&&(N.s.c=y),y>N.e.c&&(N.e.c=y),c[0].slice(-2)==="/>"&&++y,fe=[];break;case"row":c[1]==="/"||c[0].slice(-2)==="/>"?(_<N.s.r&&(N.s.r=_),_>N.e.r&&(N.e.r=_),c[0].slice(-2)==="/>"&&(u=wr(c[0]),u.Index&&(_=+u.Index-1)),y=0,++_):(u=wr(c[0]),u.Index&&(_=+u.Index-1),he={},(u.AutoFitHeight=="0"||u.Height)&&(he.hpx=parseInt(u.Height,10),he.hpt=As(he.hpx),le[_]=he),u.Hidden=="1"&&(he.hidden=!0,le[_]=he));break;case"worksheet":if(c[1]==="/"){if((o=f.pop())[0]!==c[3])throw new Error("Bad state: "+o.join("|"));h.push(d),N.s.r<=N.e.r&&N.s.c<=N.e.c&&(x["!ref"]=_e(N),r.sheetRows&&r.sheetRows<=N.e.r&&(x["!fullref"]=x["!ref"],N.e.r=r.sheetRows-1,x["!ref"]=_e(N))),D.length&&(x["!merges"]=D),ce.length>0&&(x["!cols"]=ce),le.length>0&&(x["!rows"]=le),l[d]=x}else N={s:{r:2e6,c:2e6},e:{r:0,c:0}},_=y=0,f.push([c[3],!1]),o=wr(c[0]),d=Ee(o.Name),x=r.dense?[]:{},D=[],V=[],le=[],O={name:d,Hidden:0},R.Sheets.push(O);break;case"table":if(c[1]==="/"){if((o=f.pop())[0]!==c[3])throw new Error("Bad state: "+o.join("|"))}else{if(c[0].slice(-2)=="/>")break;f.push([c[3],!1]),ce=[],Fe=!1}break;case"style":c[1]==="/"?Tx(b,I,r):I=wr(c[0]);break;case"numberformat":I.nf=Ee(wr(c[0]).Format||"General"),qa[I.nf]&&(I.nf=qa[I.nf]);for(var q=0;q!=392&&de[q]!=I.nf;++q);if(q==392){for(q=57;q!=392;++q)if(de[q]==null){sa(I.nf,q);break}}break;case"column":if(f[f.length-1][0]!=="table")break;if(ie=wr(c[0]),ie.Hidden&&(ie.hidden=!0,delete ie.Hidden),ie.Width&&(ie.wpx=parseInt(ie.Width,10)),!Fe&&ie.wpx>10){Fe=!0,sr=ks;for(var j=0;j<ce.length;++j)ce[j]&&Fa(ce[j])}Fe&&Fa(ie),ce[ie.Index-1||ce.length]=ie;for(var Te=0;Te<+ie.Span;++Te)ce[ce.length]=Xe(ie);break;case"namedrange":if(c[1]==="/")break;R.Names||(R.Names=[]);var C=oe(c[0]),Ie={Name:C.Name,Ref:Sa(C.RefersTo.slice(1),{r:0,c:0})};R.Sheets.length>0&&(Ie.Sheet=R.Sheets.length-1),R.Names.push(Ie)
`),r=Ee(a.replace(/<[^>]*>/g,""));return[r]}var ai={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function ti(e,a){var r=a||{},n=Vt(e),t=[],s,i,c={name:""},f="",o=0,l,h,x={},d=[],v=r.dense?[]:{},u,g,S={value:""},y="",_=0,N=[],b=-1,I=-1,A={s:{r:1e6,c:1e7},e:{r:0,c:0}},W=0,D={},z=[],G={},P=0,J=0,fe=[],re=1,ce=1,ie=[],Fe={Names:[]},V={},le=["",""],he=[],F={},U="",R=0,O=!1,K=!1,ee=0;for(Pa.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");u=Pa.exec(n);)switch(u[3]=u[3].replace(/_.*$/,"")){case"table":case"工作表":u[1]==="/"?(A.e.c>=A.s.c&&A.e.r>=A.s.r?v["!ref"]=_e(A):v["!ref"]="A1:A1",r.sheetRows>0&&r.sheetRows<=A.e.r&&(v["!fullref"]=v["!ref"],A.e.r=r.sheetRows-1,v["!ref"]=_e(A)),z.length&&(v["!merges"]=z),fe.length&&(v["!rows"]=fe),l.name=l.名称||l.name,typeof JSON<"u"&&JSON.stringify(l),d.push(l.name),x[l.name]=v,K=!1):u[0].charAt(u[0].length-2)!=="/"&&(l=oe(u[0],!1),b=I=-1,A.s.r=A.s.c=1e7,A.e.r=A.e.c=0,v=r.dense?[]:{},z=[],fe=[],K=!0);break;case"table-row-group":u[1]==="/"?--W:++W;break;case"table-row":case"行":if(u[1]==="/"){b+=re,re=1;break}if(h=oe(u[0],!1),h.行号?b=h.行号-1:b==-1&&(b=0),re=+h["number-rows-repeated"]||1,re<10)for(ee=0;ee<re;++ee)W>0&&(fe[b+ee]={level:W});I=-1;break;case"covered-table-cell":u[1]!=="/"&&++I,r.sheetStubs&&(r.dense?(v[b]||(v[b]=[]),v[b][I]={t:"z"}):v[ue({r:b,c:I})]={t:"z"}),y="",N=[];break;case"table-cell":case"数据":if(u[0].charAt(u[0].length-2)==="/")++I,S=oe(u[0],!1),ce=parseInt(S["number-columns-repeated"]||"1",10),g={t:"z",v:null},S.formula&&r.cellFormula!=!1&&(g.f=Hs(Ee(S.formula))),(S.数据类型||S["value-type"])=="string"&&(g.t="s",g.v=Ee(S["string-value"]||""),r.dense?(v[b]||(v[b]=[]),v[b][I]=g):v[ue({r:b,c:I})]=g),I+=ce-1;else if(u[1]!=="/"){++I,y="",_=0,N=[],ce=1;var ne=re?b+re-1:b;if(I>A.e.c&&(A.e.c=I),I<A.s.c&&(A.s.c=I),b<A.s.r&&(A.s.r=b),ne>A.e.r&&(A.e.r=ne),S=oe(u[0],!1),he=[],F={},g={t:S.数据类型||S["value-type"],v:null},r.cellFormula)if(S.formula&&(S.formula=Ee(S.formula)),S["number-matrix-columns-spanned"]&&S["number-matrix-rows-spanned"]&&(P=parseInt(S["number-matrix-rows-spanned"],10)||0,J=parseInt(S["number-matrix-columns-spanned"],10)||0,G={s:{r:b,c:I},e:{r:b+P-1,c:I+J-1}},g.F=_e(G),ie.push([G,g.F])),S.formula)g.f=Hs(S.formula);else for(ee=0;ee<ie.length;++ee)b>=ie[ee][0].s.r&&b<=ie[ee][0].e.r&&I>=ie[ee][0].s.c&&I<=ie[ee][0].e.c&&(g.F=ie[ee][1]);switch((S["number-columns-spanned"]||S["number-rows-spanned"])&&(P=parseInt(S["number-rows-spanned"],10)||0,J=parseInt(S["number-columns-spanned"],10)||0,G={s:{r:b,c:I},e:{r:b+P-1,c:I+J-1}},z.push(G)),S["number-columns-repeated"]&&(ce=parseInt(S["number-columns-repeated"],10)),g.t){case"boolean":g.t="b",g.v=Se(S["boolean-value"]);break;case"float":g.t="n",g.v=parseFloat(S.value);break;case"percentage":g.t="n",g.v=parseFloat(S.value);break;case"currency":g.t="n",g.v=parseFloat(S.value);break;case"date":g.t="d",g.v=Ve(S["date-value"]),r.cellDates||(g.t="n",g.v=tr(g.v)),g.z="m/d/yy";break;case"time":g.t="n",g.v=ji(S["time-value"])/86400,r.cellDates&&(g.t="d",g.v=ut(g.v)),g.z="HH:MM:SS";break;case"number":g.t="n",g.v=parseFloat(S.数据数值);break;default:if(g.t==="string"||g.t==="text"||!g.t)g.t="s",S["string-value"]!=null&&(y=Ee(S["string-value"]),N=[]);else throw new Error("Unsupported value type "+g.t)}}else{if(O=!1,g.t==="s"&&(g.v=y||"",N.length&&(g.R=N),O=_==0),V.Target&&(g.l=V),he.length>0&&(g.c=he,he=[]),y&&r.cellText!==!1&&(g.w=y),O&&(g.t="z",delete g.v),(!O||r.sheetStubs)&&!(r.sheetRows&&r.sheetRows<=b))for(var q=0;q<re;++q){if(ce=parseInt(S["number-columns-repeated"]||"1",10),r.dense)for(v[b+q]||(v[b+q]=[]),v[b+q][I]=q==0?g:Xe(g);--ce>0;)v[b+q][I+ce]=Xe(g);else for(v[ue({r:b+q,c:I})]=g;--ce>0;)v[ue({r:b+q,c:I+ce})]=Xe(g);A.e.c<=I&&(A.e.c=I)}ce=parseInt(S["number-columns-repeated"]||"1",10),I+=ce-1,ce=0,g={},y="",N=[]}V={};break;case"document":case"document-content":case"电子表格文档":case"sprea
`:"")+Te[0]}else oe(u[0],!1),_=u.index+u[0].length;break;case"s":break;case"database-range":if(u[1]==="/")break;try{le=o0(oe(u[0])["target-range-address"]),x[le[0]]["!autofilter"]={ref:le[1]}}catch{}break;case"date":break;case"object":break;case"title":case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if(u[1]!=="/"){if(V=oe(u[0],!1),!V.href)break;V.Target=Ee(V.href),delete V.href,V.Target.charAt(0)=="#"&&V.Target.indexOf(".")>-1?(le=o0(V.Target.slice(1)),V.Target="#"+le[0]+"!"+le[1]):V.Target.match(/^\.\.[\\\/]/)&&(V.Target=V.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(u[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(r.WTF)throw new Error(u)}}var C={Sheets:x,SheetNames:d,Workbook:Fe};return r.bookSheets&&delete C.Sheets,C}function ni(e,a){a=a||{},dr(e,"META-INF/manifest.xml")&&Zc(Le(e,"META-INF/manifest.xml"),a);var r=or(e,"content.xml");if(!r)throw new Error("Missing content.xml in ODS / UOF file");var n=ti(Ae(r),a);return dr(e,"meta.xml")&&(n.Props=Kn(Le(e,"meta.xml"))),n}function si(e,a){return ti(e,a)}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function d0(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function v0(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):Ae(aa(e))}function p0(e){var a=e.reduce(function(t,s){return t+s.length},0),r=new Uint8Array(a),n=0;return e.forEach(function(t){r.set(t,n),n+=t.length}),r}function ii(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>>24}function bx(e,a){for(var r=(e[a+15]&127)<<7|e[a+14]>>1,n=e[a+14]&1,t=a+13;t>=a;--t)n=n*256+e[t];return(e[a+15]&128?-n:n)*Math.pow(10,r-6176)}function Qa(e,a){var r=a?a[0]:0,n=e[r]&127;e:if(e[r++]>=128&&(n|=(e[r]&127)<<7,e[r++]<128||(n|=(e[r]&127)<<14,e[r++]<128)||(n|=(e[r]&127)<<21,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return a&&(a[0]=r),n}function He(e){var a=0,r=e[a]&127;e:if(e[a++]>=128){if(r|=(e[a]&127)<<7,e[a++]<128||(r|=
`,f=c.charCodeAt(0),o=new RegExp((s=="|"?"\\|":s)+"+$"),l="",h=[];n.dense=Array.isArray(e);for(var x=n.skipHidden&&e["!cols"]||[],d=n.skipHidden&&e["!rows"]||[],v=t.s.c;v<=t.e.c;++v)(x[v]||{}).hidden||(h[v]=Ue(v));for(var u=0,g=t.s.r;g<=t.e.r;++g)(d[g]||{}).hidden||(l=od(e,t,g,h,i,f,s,n),l!=null&&(n.strip&&(l=l.replace(o,"")),(l||n.blankrows!==!1)&&r.push((u++?c:"")+l)));return delete n.dense,r.join("")}function ld(e,a){a||(a={}),a.FS=" ",a.RS=`
`;var r=li(e,a);return r}function hd(e){var a="",r,n="";if(e==null||e["!ref"]==null)return[];var t=Oe(e["!ref"]),s="",i=[],c,f=[],o=Array.isArray(e);for(c=t.s.c;c<=t.e.c;++c)i[c]=Ue(c);for(var l=t.s.r;l<=t.e.r;++l)for(s=ze(l),c=t.s.c;c<=t.e.c;++c)if(a=i[c]+s,r=o?(e[l]||[])[c]:e[a],n="",r!==void 0){if(r.F!=null){if(a=r.F,!r.f)continue;n=r.f,a.indexOf(":")==-1&&(a=a+":"+a)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}f[f.length]=a+"="+n}return f}function hi(e,a,r){var n=r||{},t=+!n.skipHeader,s=e||{},i=0,c=0;if(s&&n.origin!=null)if(typeof n.origin=="number")i=n.origin;else{var f=typeof n.origin=="string"?nr(n.origin):n.origin;i=f.r,c=f.c}var o,l={s:{c:0,r:0},e:{c,r:i+a.length-1+t}};if(s["!ref"]){var h=Oe(s["!ref"]);l.e.c=Math.max(l.e.c,h.e.c),l.e.r=Math.max(l.e.r,h.e.r),i==-1&&(i=h.e.r+1,l.e.r=i+a.length-1+t)}else i==-1&&(i=0,l.e.r=a.length-1+t);var x=n.header||[],d=0;a.forEach(function(u,g){Sr(u).forEach(function(S){(d=x.indexOf(S))==-1&&(x[d=x.length]=S);var y=u[S],_="z",N="",b=ue({c:c+d,r:i+g+t});o=et(s,b),y&&typeof y=="object"&&!(y instanceof Date)?s[b]=y:(typeof y=="number"?_="n":typeof y=="boolean"?_="b":typeof y=="string"?_="s":y instanceof Date?(_="d",n.cellDates||(_="n",y=tr(y)),N=n.dateNF||de[14]):y===null&&n.nullError&&(_="e",y=0),o?(o.t=_,o.v=y,delete o.w,delete o.R,N&&(o.z=N)):s[b]=o={t:_,v:y},N&&(o.z=N))})}),l.e.c=Math.max(l.e.c,c+x.length-1);var v=ze(i);if(t)for(d=0;d<x.length;++d)s[Ue(d+c)+v]={t:"s",v:x[d]};return s["!ref"]=_e(l),s}function ud(e,a){return hi(null,e,a)}function et(e,a,r){if(typeof a=="string"){if(Array.isArray(e)){var n=nr(a);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[a]||(e[a]={t:"z"})}return typeof a!="number"?et(e,ue(a)):et(e,ue({r:a,c:r||0}))}function xd(e,a){if(typeof a=="number"){if(a>=0&&e.SheetNames.length>a)return a;throw new Error("Cannot find sheet # "+a)}else if(typeof a=="string"){var r=e.SheetNames.indexOf(a);if(r>-1)return r;throw new Error("Cannot find sheet name |"+a+"|")}else throw new Error("Cannot find sheet |"+a+"|")}function A0(){return{SheetNames:[],Sheets:{}}}function F0(e,a,r,n){var t=1;if(!r)for(;t<=65535&&e.SheetNames.indexOf(r="Sheet"+t)!=-1;++t,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var s=r.match(/(^.*?)(\d+)$/);t=s&&+s[2]||0;var i=s&&s[1]||r;for(++t;t<=65535&&e.SheetNames.indexOf(r=i+t)!=-1;++t);}if(Zu(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=a,r}function dd(e,a,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=xd(e,a);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[n].Hidden=r}function vd(e,a){return e.z=a,e}function ui(e,a,r){return a?(e.l={Target:a},r&&(e.l.Tooltip=r)):delete e.l,e}function pd(e,a,r){return ui(e,"#"+a,r)}function gd(e,a,r){e.c||(e.c=[]),e.c.push({t:a,a:r||"SheetJS"})}function md(e,a,r,n){for(var t=typeof a!="string"?a:Oe(a),s=typeof a=="string"?a:_e(a),i=t.s.r;i<=t.e.r;++i)for(var c=t.s.c;c<=t.e.c;++c){var f=et(e,i,c);f.t="n",f.F=s,delete f.v,i==t.s.r&&c==t.s.c&&(f.f=r,n&&(f.D=!0))}return e}var xi={encode_col:Ue,encode_row:ze,encode_cell:ue,encode_range:_e,decode_col:Kt,decode_row:zt,split_cell:yc,decode_cell:nr,decode_range:ka,format_cell:Br,sheet_add_aoa:Un,sheet_add_json:hi,sheet_add_dom:Qs,aoa_to_sheet:wa,json_to_sheet:ud,table_to_sheet:ei,table_to_book:Lx,sheet_to_csv:li,sheet_to_txt:ld,sheet_to_json:w0,sheet_to_html:Px,sheet_to_formulae:hd,sheet_to_row_object_array:w0,sheet_get_cell:et,book_new:A0,book_append_sheet:F0,book_set_sheet_visibility:dd,cell_set_number_format:vd,cell_set_hyperlink:ui,cell_set_internal_link:pd,cell_add_comment:gd,sheet_set_array_formula:md,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const _d={rowHeight