import{r as ri,w as po,i as gn,c as fe,h as Yt}from"./vue-vendor-0e3aae74.js";import{w as go,x as mo,y as vo,A as or,B as me,C as _o,D as qt,E as yo,F as ni,G as xo,H as wo,I as bo,J as So,K as mr,L as mn,M as ai,N as Fo,O as ii,S as Ao,P as Co,Q as $r,R as nt,T as Pr,U as Yn,V as Ir,W as qn,X as Nr,Y as Rr,Z as Jn,_ as To,$ as Lr,a0 as Zn,a1 as Oo,a2 as jr,a3 as He,a4 as Eo,a5 as ko,l as Mo,a6 as vn,a7 as Do,a8 as Br,a9 as $o,aa as Po,ab as Io,ac as _n,ad as No,ae as Ro,af as Lo,ag as jo}from"./vendor-6dafcdec.js";var Bo=Array.isArray;const he=Bo;var Uo=typeof global=="object"&&global&&global.Object===Object&&global;const si=Uo;var Ho=typeof self=="object"&&self&&self.Object===Object&&self,Wo=si||Ho||Function("return this")();const Se=Wo;var zo=Se.Symbol;const Te=zo;var oi=Object.prototype,Go=oi.hasOwnProperty,Xo=oi.toString,St=Te?Te.toStringTag:void 0;function Vo(e){var t=Go.call(e,St),r=e[St];try{e[St]=void 0;var n=!0}catch{}var a=Xo.call(e);return n&&(t?e[St]=r:delete e[St]),a}var Ko=Object.prototype,Yo=Ko.toString;function qo(e){return Yo.call(e)}var Jo="[object Null]",Zo="[object Undefined]",Qn=Te?Te.toStringTag:void 0;function qe(e){return e==null?e===void 0?Zo:Jo:Qn&&Qn in Object(e)?Vo(e):qo(e)}function Oe(e){return e!=null&&typeof e=="object"}var Qo="[object Symbol]";function vr(e){return typeof e=="symbol"||Oe(e)&&qe(e)==Qo}var ef=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tf=/^\w*$/;function yn(e,t){if(he(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||vr(e)?!0:tf.test(e)||!ef.test(e)||t!=null&&e in Object(t)}function ce(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var rf="[object AsyncFunction]",nf="[object Function]",af="[object GeneratorFunction]",sf="[object Proxy]";function xn(e){if(!ce(e))return!1;var t=qe(e);return t==nf||t==af||t==rf||t==sf}var of=Se["__core-js_shared__"];const Ur=of;var ea=function(){var e=/[^.]+$/.exec(Ur&&Ur.keys&&Ur.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ff(e){return!!ea&&ea in e}var lf=Function.prototype,cf=lf.toString;function Je(e){if(e!=null){try{return cf.call(e)}catch{}try{return e+""}catch{}}return""}var uf=/[\\^$.*+?()[\]{}|]/g,hf=/^\[object .+?Constructor\]$/,df=Function.prototype,pf=Object.prototype,gf=df.toString,mf=pf.hasOwnProperty,vf=RegExp("^"+gf.call(mf).replace(uf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _f(e){if(!ce(e)||ff(e))return!1;var t=xn(e)?vf:hf;return t.test(Je(e))}function yf(e,t){return e==null?void 0:e[t]}function Ze(e,t){var r=yf(e,t);return _f(r)?r:void 0}var xf=Ze(Object,"create");const kt=xf;function wf(){this.__data__=kt?kt(null):{},this.size=0}function bf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Sf="__lodash_hash_undefined__",Ff=Object.prototype,Af=Ff.hasOwnProperty;function Cf(e){var t=this.__data__;if(kt){var r=t[e];return r===Sf?void 0:r}return Af.call(t,e)?t[e]:void 0}var Tf=Object.prototype,Of=Tf.hasOwnProperty;function Ef(e){var t=this.__data__;return kt?t[e]!==void 0:Of.call(t,e)}var kf="__lodash_hash_undefined__";function Mf(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=kt&&t===void 0?kf:t,this}function Ke(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}function Lf(e,t){var r=this.__data__,n=_r(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Ne(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t=0;t--){const r=e.childNodes[t];if(pi(r)&&(gi(r)||al(r)))return!0}return!1}function gi(e){if(!il(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function il(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}var sl=/\s/;function ol(e){for(var t=e.length;t--&&sl.test(e.charAt(t)););return t}var fl=/^\s+/;function ll(e){return e&&e.slice(0,ol(e)+1).replace(fl,"")}var na=0/0,cl=/^[-+]0x[0-9a-f]+$/i,ul=/^0b[01]+$/i,hl=/^0o[0-7]+$/i,dl=parseInt;function aa(e){if(typeof e=="number")return e;if(vr(e))return na;if(ce(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ce(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ll(e);var r=ul.test(e);return r||hl.test(e)?dl(e.slice(2),r?2:8):cl.test(e)?na:+e}function xr(e){return e}var pl=Ze(Se,"WeakMap");const tn=pl;var ia=Object.create,gl=function(){function e(){}return function(t){if(!ce(t))return{};if(ia)return ia(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const ml=gl;function vl(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function mi(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r0){if(++t>=_l)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function bl(e){return function(){return e}}var Sl=function(){try{var e=Ze(Object,"defineProperty");return e({},"",{}),e}catch{}}();const fr=Sl;var Fl=fr?function(e,t){return fr(e,"toString",{configurable:!0,enumerable:!1,value:bl(t),writable:!0})}:xr;const Al=Fl;var Cl=wl(Al);const Tl=Cl;function Ol(e,t){for(var r=-1,n=e==null?0:e.length;++r-1&&e%1==0&&e-1&&e%1==0&&e<=Il}function Qe(e){return e!=null&&An(e.length)&&!xn(e)}function Nl(e,t,r){if(!ce(r))return!1;var n=typeof t;return(n=="number"?Qe(r)&&wr(t,r.length):n=="string"&&t in r)?Nt(r[t],e):!1}function Rl(e){return Pl(function(t,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,s=a>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,s&&Nl(r[0],r[1],s)&&(i=a<3?void 0:i,a=1),t=Object(t);++na?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(a);++n=n?e:jc(e,t,r)}var Uc="\\ud800-\\udfff",Hc="\\u0300-\\u036f",Wc="\\ufe20-\\ufe2f",zc="\\u20d0-\\u20ff",Gc=Hc+Wc+zc,Xc="\\ufe0e\\ufe0f",Vc="\\u200d",Kc=RegExp("["+Vc+Uc+Gc+Xc+"]");function Ai(e){return Kc.test(e)}function Yc(e){return e.split("")}var Ci="\\ud800-\\udfff",qc="\\u0300-\\u036f",Jc="\\ufe20-\\ufe2f",Zc="\\u20d0-\\u20ff",Qc=qc+Jc+Zc,eu="\\ufe0e\\ufe0f",tu="["+Ci+"]",rn="["+Qc+"]",nn="\\ud83c[\\udffb-\\udfff]",ru="(?:"+rn+"|"+nn+")",Ti="[^"+Ci+"]",Oi="(?:\\ud83c[\\udde6-\\uddff]){2}",Ei="[\\ud800-\\udbff][\\udc00-\\udfff]",nu="\\u200d",ki=ru+"?",Mi="["+eu+"]?",au="(?:"+nu+"(?:"+[Ti,Oi,Ei].join("|")+")"+Mi+ki+")*",iu=Mi+ki+au,su="(?:"+[Ti+rn+"?",rn,Oi,Ei,tu].join("|")+")",ou=RegExp(nn+"(?="+nn+")|"+su+iu,"g");function fu(e){return e.match(ou)||[]}function lu(e){return Ai(e)?fu(e):Yc(e)}function cu(e){return function(t){t=ci(t);var r=Ai(t)?lu(t):void 0,n=r?r[0]:t.charAt(0),a=r?Bc(r,1).join(""):t.slice(1);return n[e]()+a}}var uu=cu("toUpperCase");const hm=uu;function hu(){this.__data__=new Ne,this.size=0}function du(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function pu(e){return this.__data__.get(e)}function gu(e){return this.__data__.has(e)}var mu=200;function vu(e,t){var r=this.__data__;if(r instanceof Ne){var n=r.__data__;if(!Mt||n.lengtho))return!1;var c=i.get(e),m=i.get(t);if(c&&m)return c==t&&m==e;var S=-1,b=!0,v=r&t0?new cr:void 0;for(i.set(e,t),i.set(t,e);++S=t||T<0||S&&z>=i}function N(){var U=zr();if(k(U))return L(U);o=setTimeout(N,C(U))}function L(U){return o=void 0,b&&n?v(U):(n=a=void 0,s)}function W(){o!==void 0&&clearTimeout(o),c=0,n=l=a=o=void 0}function j(){return o===void 0?s:L(zr())}function V(){var U=zr(),T=k(U);if(n=arguments,a=this,l=U,T){if(o===void 0)return A(l);if(S)return clearTimeout(o),o=setTimeout(N,t),v(l)}return o===void 0&&(o=setTimeout(N,t)),s}return V.cancel=W,V.flush=j,V}function ln(e,t,r){(r!==void 0&&!Nt(e[t],r)||r===void 0&&!(t in e))&&Sn(e,t,r)}function J0(e){return Oe(e)&&Qe(e)}function cn(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Z0(e){return Lt(e,pt(e))}function Q0(e,t,r,n,a,i,s){var o=cn(e,r),l=cn(t,r),c=s.get(l);if(c){ln(e,r,c);return}var m=i?i(o,l,r+"",e,t,s):void 0,S=m===void 0;if(S){var b=he(l),v=!b&&ct(l),A=!b&&!v&&Sr(l);m=l,b||v||A?he(o)?m=o:J0(o)?m=mi(o):v?(S=!1,m=$i(l,!0)):A?(S=!1,m=Ri(l,!0)):m=[]:Lc(l)||Dt(l)?(m=o,Dt(o)?m=Z0(o):(!ce(o)||xn(o))&&(m=Li(l))):S=!1}S&&(s.set(l,m),a(m,l,n,i,s),s.delete(l)),ln(e,r,m)}function Xi(e,t,r,n,a){e!==t&&Mn(t,function(i,s){if(a||(a=new xe),ce(i))Q0(e,t,s,r,Xi,n,a);else{var o=n?n(cn(e,s),i,s+"",e,t,a):void 0;o===void 0&&(o=i),ln(e,s,o)}},pt)}function ed(e){return typeof e=="function"?e:xr}function td(e,t){var r=-1,n=Qe(e)?Array(e.length):[];return G0(e,function(a,i,s){n[++r]=t(a,i,s)}),n}function dm(e,t){var r=he(e)?fi:td;return r(e,j0(t))}function pm(e,t){return e==null?e:Mn(e,ed(t),pt)}var rd="[object Map]",nd="[object Set]",ad=Object.prototype,id=ad.hasOwnProperty;function gm(e){if(e==null)return!0;if(Qe(e)&&(he(e)||typeof e=="string"||typeof e.splice=="function"||ct(e)||Sr(e)||Dt(e)))return!e.length;var t=ht(e);if(t==rd||t==nd)return!e.size;if(br(e))return!bi(e).length;for(var r in e)if(id.call(e,r))return!1;return!0}var sd=Rl(function(e,t,r){Xi(e,t,r)});const mm=sd;function od(e,t,r,n){if(!ce(e))return e;t=bn(t,e);for(var a=-1,i=t.length,s=i-1,o=e;o!=null&&++a{ur(a)?a[r].forEach(i=>{n.set(i[t],i)}):n.set(a[t],a)}),n}function Sm(e){let t=0;for(const r of e)t++;return t}function Fm(e){return e===""||e==null}function Am(e){const t=ri(null);function r(){const{value:i}=e;if(!(i!=null&&i.focus)){a();return}const{selectionStart:s,selectionEnd:o,value:l}=i;if(s==null||o==null){a();return}t.value={start:s,end:o,beforeText:l.slice(0,s),afterText:l.slice(o)}}function n(){var i;const{value:s}=t,{value:o}=e;if(!s||!o)return;const{value:l}=o,{start:c,beforeText:m,afterText:S}=s;let b=l.length;if(l.endsWith(S))b=l.length-S.length;else if(l.startsWith(m))b=m.length;else{const v=m[c-1],A=l.indexOf(v,c-1);A!==-1&&(b=A+1)}(i=o.setSelectionRange)===null||i===void 0||i.call(o,b,b)}function a(){t.value=null}return po(e,a),{recordCursor:r,restoreCursor:n}}const ld=(e={})=>{var t;const{root:r=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof r=="string"?document.querySelector(r):r)||document.documentElement})}},Gr=new WeakMap,Xr=new WeakMap,Vr=new WeakMap,Cm=(e,t,r)=>{if(!e)return()=>{};const n=ld(t),{root:a}=n.options;let i;const s=Gr.get(a);s?i=s:(i=new Map,Gr.set(a,i));let o,l;i.has(n.hash)?(l=i.get(n.hash),l[1].has(e)||(o=l[0],l[1].add(e),o.observe(e))):(o=new IntersectionObserver(S=>{S.forEach(b=>{if(b.isIntersecting){const v=Xr.get(b.target),A=Vr.get(b.target);v&&v(),A&&(A.value=!0)}})},n.options),o.observe(e),l=[o,new Set([e])],i.set(n.hash,l));let c=!1;const m=()=>{c||(Xr.delete(e),Vr.delete(e),c=!0,l[1].has(e)&&(l[0].unobserve(e),l[1].delete(e)),l[1].size<=0&&i.delete(n.hash),i.size||Gr.delete(a))};return Xr.set(e,m),Vr.set(e,r),m},cd={date:Co,month:mn,year:ai,quarter:ii};function $e(e,t,r){const n=cd[r];return Array.isArray(e)?e.some(a=>n(a,t)):n(e,t)}function Kr(e,t,r,n){let a=!1,i=!1,s=!1;Array.isArray(r)&&(r[0]=360?359:e<0?0:e}function Nm(e){return e=Math.round(e*100)/100,e>1?1:e<0?0:e}const gd={rgb:{hex(e){return $r(nt(e))},hsl(e){const[t,r,n,a]=nt(e);return Pr([...Yn(t,r,n),a])},hsv(e){const[t,r,n,a]=nt(e);return Ir([...qn(t,r,n),a])}},hex:{rgb(e){return Nr(nt(e))},hsl(e){const[t,r,n,a]=nt(e);return Pr([...Yn(t,r,n),a])},hsv(e){const[t,r,n,a]=nt(e);return Ir([...qn(t,r,n),a])}},hsl:{hex(e){const[t,r,n,a]=Rr(e);return $r([...Jn(t,r,n),a])},rgb(e){const[t,r,n,a]=Rr(e);return Nr([...Jn(t,r,n),a])},hsv(e){const[t,r,n,a]=Rr(e);return Ir([...To(t,r,n),a])}},hsv:{hex(e){const[t,r,n,a]=Lr(e);return $r([...Zn(t,r,n),a])},rgb(e){const[t,r,n,a]=Lr(e);return Nr([...Zn(t,r,n),a])},hsl(e){const[t,r,n,a]=Lr(e);return Pr([...Oo(t,r,n),a])}}};function Rm(e,t,r){return r=r||pd(e),r?r===t?e:gd[r][t](e):null}function Lm(e,t,r){let n=!1,a=!1,i=1,s=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:s,fastBackwardTo:i,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:s,fastBackwardTo:i,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const o=1,l=t;let c=e,m=e;const S=(r-5)/2;m+=Math.ceil(S),m=Math.min(Math.max(m,o+r-3),l-2),c-=Math.floor(S),c=Math.max(Math.min(c,l-r+3),o+2);let b=!1,v=!1;c>o+2&&(b=!0),m=o+1&&A.push({type:"page",label:o+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===o+1});for(let C=c;C<=m;++C)A.push({type:"page",label:C,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===C});return v?(a=!0,s=m+1,A.push({type:"fast-forward",active:!1,label:void 0,options:Oa(m+1,l-1)})):m===l-2&&A[A.length-1].label!==l-1&&A.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:l-1,active:e===l-1}),A[A.length-1].label!==l&&A.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:l,active:e===l}),{hasFastBackward:n,hasFastForward:a,fastBackwardTo:i,fastForwardTo:s,items:A}}function Oa(e,t){const r=[];for(let n=e;n<=t;++n)r.push({label:`${n}`,value:n});return r}const Ki=40,Yi=40;function jm(e){if(e.type==="selection")return e.width===void 0?Ki:jr(e.width);if(e.type==="expand")return e.width===void 0?Yi:jr(e.width);if(!("children"in e))return typeof e.width=="string"?jr(e.width):e.width}function md(e){var t,r;if(e.type==="selection")return He((t=e.width)!==null&&t!==void 0?t:Ki);if(e.type==="expand")return He((r=e.width)!==null&&r!==void 0?r:Yi);if(!("children"in e))return He(e.width)}function Bm(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function Um(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function Hm(e){return e==="ascend"?1:e==="descend"?-1:0}function Wm(e,t,r){return r!==void 0&&(e=Math.min(e,typeof r=="number"?r:parseFloat(r))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:parseFloat(t))),e}function zm(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const r=md(e),{minWidth:n,maxWidth:a}=e;return{width:r,minWidth:He(n)||r,maxWidth:He(a)}}function Gm(e,t,r){return typeof r=="function"?r(e,t):r||""}function Xm(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function Vm(e){return"children"in e?!1:!!e.sorter}function Km(e){return"children"in e&&e.children.length?!1:!!e.resizable}function Ym(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function Ea(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function qm(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:Ea(!1)}:Object.assign(Object.assign({},t),{order:Ea(t.order)})}function Jm(e,t){return t.find(r=>r.columnKey===e.key&&r.order)!==void 0}function Zm(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function Qm(e){return e.type==="group"}function e1(e){return e.type==="divider"}function t1(e){return e.type==="render"}const vd={amHours:["00","01","02","03","04","05","06","07","08","09","10","11"],pmHours:["12","01","02","03","04","05","06","07","08","09","10","11"],hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],seconds:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],period:["AM","PM"]};function Yr(e){return`00${e}`.slice(-2)}function _d(e,t,r){return Array.isArray(t)?(r==="am"?t.filter(n=>n<12):r==="pm"?t.filter(n=>n>=12).map(n=>n===12?12:n-12):t).map(n=>Yr(n)):typeof t=="number"?r==="am"?e.filter(n=>{const a=Number(n);return a<12&&a%t===0}):r==="pm"?e.filter(n=>{const a=Number(n);return a>=12&&a%t===0}).map(n=>{const a=Number(n);return Yr(a===12?12:a-12)}):e.filter(n=>Number(n)%t===0):r==="am"?e.filter(n=>Number(n)<12):r==="pm"?e.map(n=>Number(n)).filter(n=>Number(n)>=12).map(n=>Yr(n===12?12:n-12)):e}function r1(e,t,r){return r?typeof r=="number"?e%r===0:r.includes(e):!0}function n1(e,t,r){const n=_d(vd[t],r).map(Number);let a,i;for(let s=0;se){i=o;break}a=o}return a===void 0?(i||ko("time-picker","Please set 'hours' or 'minutes' or 'seconds' props"),i):i===void 0||i-e>e-a?a:i}function a1(e){return Eo(e)<12?"am":"pm"}const yd="DESCRIPTION_ITEM_FLAG";function i1(e){return typeof e=="object"&&e&&!Array.isArray(e)?e.type&&e.type[yd]:!1}let qr;const s1=()=>{if(!Mo)return!0;if(qr===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),qr=t}return qr};function o1(e){const t=gn(vn,null);return{mergedSize:fe(()=>e.size!==void 0?e.size:(t==null?void 0:t.props.size)!==void 0?t.props.size:"medium")}}function f1(e){const t=gn(vn,null),r=fe(()=>{const{labelPlacement:v}=e;return v!==void 0?v:t!=null&&t.props.labelPlacement?t.props.labelPlacement:"top"}),n=fe(()=>r.value==="left"&&(e.labelWidth==="auto"||(t==null?void 0:t.props.labelWidth)==="auto")),a=fe(()=>{if(r.value==="top")return;const{labelWidth:v}=e;if(v!==void 0&&v!=="auto")return He(v);if(n.value){const A=t==null?void 0:t.maxChildLabelWidthRef.value;return A!==void 0?He(A):void 0}if((t==null?void 0:t.props.labelWidth)!==void 0)return He(t.props.labelWidth)}),i=fe(()=>{const{labelAlign:v}=e;if(v)return v;if(t!=null&&t.props.labelAlign)return t.props.labelAlign}),s=fe(()=>{var v;return[(v=e.labelProps)===null||v===void 0?void 0:v.style,e.labelStyle,{width:a.value}]}),o=fe(()=>{const{showRequireMark:v}=e;return v!==void 0?v:t==null?void 0:t.props.showRequireMark}),l=fe(()=>{const{requireMarkPlacement:v}=e;return v!==void 0?v:(t==null?void 0:t.props.requireMarkPlacement)||"right"}),c=ri(!1),m=fe(()=>{const{validationStatus:v}=e;if(v!==void 0)return v;if(c.value)return"error"}),S=fe(()=>{const{showFeedback:v}=e;return v!==void 0?v:(t==null?void 0:t.props.showFeedback)!==void 0?t.props.showFeedback:!0}),b=fe(()=>{const{showLabel:v}=e;return v!==void 0?v:(t==null?void 0:t.props.showLabel)!==void 0?t.props.showLabel:!0});return{validationErrored:c,mergedLabelStyle:s,mergedLabelPlacement:r,mergedLabelAlign:i,mergedShowRequireMark:o,mergedRequireMarkPlacement:l,mergedValidationStatus:m,mergedShowFeedback:S,mergedShowLabel:b,isAutoLabelWidth:n}}function l1(e){const t=gn(vn,null),r=fe(()=>{const{rulePath:s}=e;if(s!==void 0)return s;const{path:o}=e;if(o!==void 0)return o}),n=fe(()=>{const s=[],{rule:o}=e;if(o!==void 0&&(Array.isArray(o)?s.push(...o):s.push(o)),t){const{rules:l}=t.props,{value:c}=r;if(l!==void 0&&c!==void 0){const m=hi(l,c);m!==void 0&&(Array.isArray(m)?s.push(...m):s.push(m))}}return s}),a=fe(()=>n.value.some(s=>s.required)),i=fe(()=>a.value||e.required);return{mergedRules:n,mergedRequired:i}}function c1(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function u1(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^\.\d+$/.test(e))}function h1(e){return e==null?!0:!Number.isNaN(e)}function d1(e,t){return e==null?"":t===void 0?String(e):e.toFixed(t)}function p1(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const xd=_n(No),wd=_n(Ro),bd=_n(Lo);function Sd(e){return e.type==="divider"||e.type==="render"}function Fd(e){return e.type==="divider"}function g1(e,t){const{rawNode:r}=e,{show:n}=r;if(n===!1)return null;if(Sd(r))return Fd(r)?Yt(Do,Object.assign({key:e.key},r.props)):null;const{labelField:a}=t,{key:i,level:s,isGroup:o}=e,l=Object.assign(Object.assign({},r),{title:r.title||r[a],extra:r.titleExtra||r.extra,key:i,internalKey:i,level:s,root:s===0,isGroup:o});return e.children?e.isGroup?Yt($o,Br(l,xd,{tmNode:e,tmNodes:e.children,key:i})):Yt(Po,Br(l,bd,{key:i,rawNodes:r[t.childrenField],tmNodes:e.children,tmNode:e})):Yt(Io,Br(l,wd,{key:i,tmNode:e}))}function m1(e,t,r="sessionStorage"){if(!e){console.error("Failed to set stored data: key is empty or undefined");return}try{const n=JSON.stringify(t);r==="localStorage"?window.localStorage.setItem(e,n):window.sessionStorage.setItem(e,n)}catch(n){console.error(`Failed to set stored data for key '${e}'`,n)}}function v1(e,t="sessionStorage",r){try{const n=t==="localStorage"?window.localStorage.getItem(e):window.sessionStorage.getItem(e);return n===null?r??null:JSON.parse(n)}catch(n){return console.error(`Failed to get stored data for key '${e}'`,n),r??null}}function _1(e,t="sessionStorage"){switch(e){case"all":window.window.localStorage.clear(),window.sessionStorage.clear();break;case"all-sessionStorage":window.sessionStorage.clear();break;case"all-localStorage":window.localStorage.clear();break;default:if(!e){console.error("Failed to remove stored data: key is empty or undefined");return}t==="localStorage"?window.localStorage.removeItem(e):window.sessionStorage.removeItem(e)}}const y1=()=>({VITE_APP_URL:"/",VITE_APP_OFFICE_PROXY_URL:"https://office.yka.one/",VITE_APP_OFFICE_SCRIPT_URL:"https://office.yka.one/web-apps/apps/api/documents/api.js",VITE_USER_NODE_ENV:"production",BASE_URL:"/ray-template/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}),qi=(e,t)=>Object.prototype.toString.call(e).includes(t),x1=(e=16,t=62)=>{const r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[],a=window.crypto||window.msCrypto;let i=0;for(i=0;i{e&&t&&r&&e.addEventListener(t,r,n)},b1=(e,t,r,n=!1)=>{e&&t&&r&&e.removeEventListener(t,r,n)},S1=(e,t)=>{e&&t.trim().split(" ").forEach(n=>{n&&e.classList.add(n)})},F1=(e,t)=>{if(e)if(t==="removeAllClass"){const r=e.classList;r.forEach(n=>r.remove(n))}else t.trim().split(" ").forEach(n=>{n&&e.classList.remove(n)})},A1=(e,t)=>{const r=e.className,n=t.trim().split(" ").filter(a=>a!=="");return r.includes(n.join(" "))},C1=(e,t)=>{if(!e)return;let r;qi(t,"String")?r=t.split(";").reduce((n,a)=>{const[i,s]=a.split(":").map(o=>o.trim());return i&&s&&(n[i]=s),n},{}):r=t,Object.keys(r).forEach(n=>{const a=r[n];n in e.style&&(e.style[n]=a)})},T1=(e,t=1)=>{const r=/^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i,n=/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/i,a=/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*(?:\.\d+)?)\)$/i;let i;if(r.test(e)){const s=e.substring(1);i="rgb("+[parseInt(s.substring(0,2),16),parseInt(s.substring(2,4),16),parseInt(s.substring(4,6),16)].join(", ")+")"}else n.test(e)||a.test(e),i=e;return i&&!i.startsWith("rgba")&&(i=i.replace("rgb","rgba").replace(")",`, ${t})`)),i},O1=e=>{if(!e)return null;const t=e.startsWith("attr:")?`[${e.replace("attr:","")}]`:e;try{return Array.from(document.querySelectorAll(t))}catch(r){return console.error(`Failed to get elements for selector '${e}'`,r),null}},E1=(e,t="px")=>typeof e=="number"?e.toString()+t:qi(e,"String")&&Ad.validerCSSUnit.test(e)?e:e+t;/*! * currency.js - v2.0.4 * http://scurker.github.io/currency.js * * Copyright (c) 2021 Jason Wilson * Released under MIT license */var Cd={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:kd,fromCents:!1},Ji=function(t){return Math.round(t)},Dn=function(t){return Math.pow(10,t)},Td=function(t,r){return Ji(t/r)*r},Od=/(\d)(?=(\d{3})+\b)/g,Ed=/(\d)(?=(\d\d)+\d\b)/g;function re(e,t){var r=this;if(!(r instanceof re))return new re(e,t);var n=Object.assign({},Cd,t),a=Dn(n.precision),i=ir(e,n);r.intValue=i,r.value=i/a,n.increment=n.increment||1/a,n.useVedic?n.groups=Ed:n.groups=Od,this.s=n,this.p=a}function ir(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,n=0,a=t.decimal,i=t.errorOnInvalid,s=t.precision,o=t.fromCents,l=Dn(s),c=typeof e=="number",m=e instanceof re;if(m&&o)return e.intValue;if(c||m)n=m?e.value:e;else if(typeof e=="string"){var S=new RegExp("[^-\\d"+a+"]","g"),b=new RegExp("\\"+a,"g");n=e.replace(/\((.*)\)/,"-$1").replace(S,"").replace(b,"."),n=n||0}else{if(i)throw Error("Invalid Input");n=0}return o||(n*=l,n=n.toFixed(4)),r?Ji(n):n}function kd(e,t){var r=t.pattern,n=t.negativePattern,a=t.symbol,i=t.separator,s=t.decimal,o=t.groups,l=(""+e).replace(/^-/,"").split("."),c=l[0],m=l[1];return(e.value>=0?r:n).replace("!",a).replace("#",c.replace(o,"$1"+i)+(m?s+m:""))}re.prototype={add:function(t){var r=this.intValue,n=this.s,a=this.p;return re((r+=ir(t,n))/(n.fromCents?1:a),n)},subtract:function(t){var r=this.intValue,n=this.s,a=this.p;return re((r-=ir(t,n))/(n.fromCents?1:a),n)},multiply:function(t){var r=this.intValue,n=this.s;return re((r*=t)/(n.fromCents?1:Dn(n.precision)),n)},divide:function(t){var r=this.intValue,n=this.s;return re(r/=ir(t,n,!1),n)},distribute:function(t){for(var r=this.intValue,n=this.p,a=this.s,i=[],s=Math[r>=0?"floor":"ceil"](r/t),o=Math.abs(r-s*t),l=a.fromCents?1:n;t!==0;t--){var c=re(s/l,a);o-- >0&&(c=c[r>=0?"add":"subtract"](1/l)),i.push(c)}return i},dollars:function(){return~~this.value},cents:function(){var t=this.intValue,r=this.p;return~~(t%r)},format:function(t){var r=this.s;return typeof t=="function"?t(this,r):r.format(this,Object.assign({},r,t))},toString:function(){var t=this.intValue,r=this.p,n=this.s;return Td(t/r,n.increment).toFixed(n.precision)},toJSON:function(){return this.value}};const Fr=(e,t,r)=>e!=null&&e.length?e.length===1?re(e[0]):e.reduce((a,i,s,o)=>(a=r==null?void 0:r(a,i,s,o),a),t):0,Md=(e,t,r="number")=>r==="number"?re(e,t).value:re(e,t).toString(),k1=(...e)=>Fr(e,0,(t,r)=>re(t).add(r)),M1=(...e)=>{if(e.length===2){const[n,a]=e;return re(n).subtract(a)}const t=Hi(e),r=t.shift();return t.length?Fr(t,r,(n,a)=>re(n).subtract(a)):r},D1=(...e)=>Fr(e,1,(t,r)=>re(t).multiply(r)),$1=(...e)=>{if(e.length===2){const[n,a]=e;return re(n).divide(a)}const t=Hi(e),r=t.shift();return t.length?Fr(t,r,(n,a)=>re(n).divide(a)):r},P1=(e,t,r)=>t<=1?[e||0]:e?re(e,r).distribute(t).map(a=>Md(a,r)):new Array(t).fill(0);/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Zt=function(t){return String.fromCharCode(t)},Be="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function ka(e){for(var t="",r=0,n=0,a=0,i=0,s=0,o=0,l=0,c=0;c>2,n=e.charCodeAt(c++),s=(r&3)<<4|n>>4,a=e.charCodeAt(c++),o=(n&15)<<2|a>>6,l=a&63,isNaN(n)?o=l=64:isNaN(a)&&(l=64),t+=Be.charAt(i)+Be.charAt(s)+Be.charAt(o)+Be.charAt(l);return t}function Ma(e){var t="",r=0,n=0,a=0,i=0,s=0,o=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var c=0;c>4,t+=String.fromCharCode(r),o=Be.indexOf(e.charAt(c++)),n=(s&15)<<4|o>>2,o!==64&&(t+=String.fromCharCode(n)),l=Be.indexOf(e.charAt(c++)),a=(o&3)<<6|l,l!==64&&(t+=String.fromCharCode(a));return t}var Q=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),et=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,r){return r?new Buffer(t,r):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function dt(e){return Q?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function Da(e){return Q?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var it=function(t){return Q?et(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function Ar(e){if(typeof ArrayBuffer>"u")return it(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n!=e.length;++n)r[n]=e.charCodeAt(n)&255;return t}function Dd(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var t=[],r=0;r"u")throw new Error("Unsupported");return new Uint8Array(e)}var st=Q?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:et(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,r=0;for(t=0;t>6&31,a[r++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var o=e.charCodeAt(++i)&1023;a[r++]=240|s>>8&7,a[r++]=128|s>>2&63,a[r++]=128|o>>6&15|(s&3)<<4,a[r++]=128|o&63}else a[r++]=224|s>>12&15,a[r++]=128|s>>6&63,a[r++]=128|s&63;r>n&&(t.push(a.slice(0,r)),r=0,a=dt(65535),n=65530)}return t.push(a.slice(0,r)),st(t)}var Ot=/\u0000/g,Qt=/[\u0001-\u0006]/g;function lt(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function _e(e,t){var r=""+e;return r.length>=t?r:ue("0",t-r.length)+r}function $n(e,t){var r=""+e;return r.length>=t?r:ue(" ",t-r.length)+r}function hr(e,t){var r=""+e;return r.length>=t?r:r+ue(" ",t-r.length)}function Id(e,t){var r=""+Math.round(e);return r.length>=t?r:ue("0",t-r.length)+r}function Nd(e,t){var r=""+e;return r.length>=t?r:ue("0",t-r.length)+r}var $a=Math.pow(2,32);function at(e,t){if(e>$a||e<-$a)return Id(e,t);var r=Math.round(e);return Nd(r,t)}function dr(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var Pa=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],Jr=[["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 Rd(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 we={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"秒 "'},Ia={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},Ld={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 pr(e,t,r){for(var n=e<0?-1:1,a=e*n,i=0,s=1,o=0,l=1,c=0,m=0,S=Math.floor(a);ct&&(c>t?(m=l,o=i):(m=c,o=s)),!r)return[0,n*o,m];var b=Math.floor(n*o/m);return[b,n*o-b*m,m]}function er(e,t,r){if(e>2958465||e<0)return null;var n=e|0,a=Math.floor(86400*(e-n)),i=0,s=[],o={D:n,T:a,u:86400*(e-n)-a,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(o.u)<1e-6&&(o.u=0),t&&t.date1904&&(n+=1462),o.u>.9999&&(o.u=0,++a==86400&&(o.T=a=0,++n,++o.D)),n===60)s=r?[1317,10,29]:[1900,2,29],i=3;else if(n===0)s=r?[1317,8,29]:[1900,1,0],i=6;else{n>60&&--n;var l=new Date(1900,0,1);l.setDate(l.getDate()+n-1),s=[l.getFullYear(),l.getMonth()+1,l.getDate()],i=l.getDay(),n<60&&(i=(i+6)%7),r&&(i=Gd(l,s))}return o.y=s[0],o.m=s[1],o.d=s[2],o.S=a%60,a=Math.floor(a/60),o.M=a%60,a=Math.floor(a/60),o.H=a,o.q=i,o}var Zi=new Date(1899,11,31,0,0,0),jd=Zi.getTime(),Bd=new Date(1900,2,1,0,0,0);function Qi(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=Bd&&(r+=24*60*60*1e3),(r-(jd+(e.getTimezoneOffset()-Zi.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function Pn(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Ud(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function Hd(e){var t=e<0?12:11,r=Pn(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function Wd(e){var t=Pn(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function zd(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),r;return t>=-4&&t<=-1?r=e.toPrecision(10+t):Math.abs(t)<=9?r=Hd(e):t===10?r=e.toFixed(10).substr(0,12):r=Wd(e),Pn(Ud(r.toUpperCase()))}function un(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):zd(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return $t(14,Qi(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function Gd(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function Xd(e,t,r,n){var a="",i=0,s=0,o=r.y,l,c=0;switch(e){case 98:o=r.y+543;case 121:switch(t.length){case 1:case 2:l=o%100,c=2;break;default:l=o%1e4,c=4;break}break;case 109:switch(t.length){case 1:case 2:l=r.m,c=t.length;break;case 3:return Jr[r.m-1][1];case 5:return Jr[r.m-1][0];default:return Jr[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:l=r.d,c=t.length;break;case 3:return Pa[r.q][0];default:return Pa[r.q][1]}break;case 104:switch(t.length){case 1:case 2:l=1+(r.H+11)%12,c=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:l=r.H,c=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:l=r.M,c=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return r.u===0&&(t=="s"||t=="ss")?_e(r.S,t.length):(n>=2?s=n===3?1e3:100:s=n===1?10:1,i=Math.round(s*(r.S+r.u)),i>=60*s&&(i=0),t==="s"?i===0?"0":""+i/s:(a=_e(i,2+n),t==="ss"?a.substr(0,2):"."+a.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":l=r.D*24+r.H;break;case"[m]":case"[mm]":l=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":l=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}c=t.length===3?1:2;break;case 101:l=o,c=1;break}var m=c>0?_e(l,c):"";return m}function Ue(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,n=e.substr(0,r);r!=e.length;r+=t)n+=(n.length>0?",":"")+e.substr(r,t);return n}var es=/%/g;function Vd(e,t,r){var n=t.replace(es,""),a=t.length-n.length;return Pe(e,n,r*Math.pow(10,2*a))+ue("%",a)}function Kd(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return Pe(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function ts(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+ts(e,-t);var a=e.indexOf(".");a===-1&&(a=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%a;if(i<0&&(i+=a),r=(t/Math.pow(10,i)).toPrecision(n+1+(a+i)%a),r.indexOf("e")===-1){var s=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+i):r+="E+"+(s-i);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,a)+"."+r.substr(2+a),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,l,c,m){return l+c+m.substr(0,(a+i)%a)+"."+m.substr(i)+"E"})}else r=t.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 rs=/# (\?+)( ?)\/( ?)(\d+)/;function Yd(e,t,r){var n=parseInt(e[4],10),a=Math.round(t*n),i=Math.floor(a/n),s=a-i*n,o=n;return r+(i===0?"":""+i)+" "+(s===0?ue(" ",e[1].length+1+e[4].length):$n(s,e[1].length)+e[2]+"/"+e[3]+_e(o,e[4].length))}function qd(e,t,r){return r+(t===0?"":""+t)+ue(" ",e[1].length+2+e[4].length)}var ns=/^#*0*\.([0#]+)/,as=/\).*[0#]/,is=/\(###\) ###\\?-####/;function le(e){for(var t="",r,n=0;n!=e.length;++n)switch(r=e.charCodeAt(n)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function Na(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function Ra(e,t){var r=e-Math.floor(e),n=Math.pow(10,t);return t<(""+Math.round(r*n)).length?0:Math.round(r*n)}function Jd(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function Zd(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function ge(e,t,r){if(e.charCodeAt(0)===40&&!t.match(as)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?ge("n",n,r):"("+ge("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return Kd(e,t,r);if(t.indexOf("%")!==-1)return Vd(e,t,r);if(t.indexOf("E")!==-1)return ts(t,r);if(t.charCodeAt(0)===36)return"$"+ge(e,t.substr(t.charAt(1)==" "?2:1),r);var a,i,s,o,l=Math.abs(r),c=r<0?"-":"";if(t.match(/^00+$/))return c+at(l,t.length);if(t.match(/^[#?]+$/))return a=at(r,0),a==="0"&&(a=""),a.length>t.length?a:le(t.substr(0,t.length-a.length))+a;if(i=t.match(rs))return Yd(i,l,c);if(t.match(/^#+0+$/))return c+at(l,t.length-t.indexOf("0"));if(i=t.match(ns))return a=Na(r,i[1].length).replace(/^([^\.]+)$/,"$1."+le(i[1])).replace(/\.$/,"."+le(i[1])).replace(/\.(\d*)$/,function(A,C){return"."+C+ue("0",le(i[1]).length-C.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return c+Na(l,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return c+Ue(at(l,0));if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+ge(e,t,-r):Ue(""+(Math.floor(r)+Jd(r,i[1].length)))+"."+_e(Ra(r,i[1].length),i[1].length);if(i=t.match(/^#,#*,#0/))return ge(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=lt(ge(e,t.replace(/[\\-]/g,""),r)),s=0,lt(lt(t.replace(/\\/g,"")).replace(/[0#]/g,function(A){return s=0?Ae("n",n,r):"("+Ae("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return Qd(e,t,r);if(t.indexOf("%")!==-1)return ep(e,t,r);if(t.indexOf("E")!==-1)return ss(t,r);if(t.charCodeAt(0)===36)return"$"+Ae(e,t.substr(t.charAt(1)==" "?2:1),r);var a,i,s,o,l=Math.abs(r),c=r<0?"-":"";if(t.match(/^00+$/))return c+_e(l,t.length);if(t.match(/^[#?]+$/))return a=""+r,r===0&&(a=""),a.length>t.length?a:le(t.substr(0,t.length-a.length))+a;if(i=t.match(rs))return qd(i,l,c);if(t.match(/^#+0+$/))return c+_e(l,t.length-t.indexOf("0"));if(i=t.match(ns))return a=(""+r).replace(/^([^\.]+)$/,"$1."+le(i[1])).replace(/\.$/,"."+le(i[1])),a=a.replace(/\.(\d*)$/,function(A,C){return"."+C+ue("0",le(i[1]).length-C.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return c+Ue(""+l);if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Ae(e,t,-r):Ue(""+r)+"."+ue("0",i[1].length);if(i=t.match(/^#,#*,#0/))return Ae(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=lt(Ae(e,t.replace(/[\\-]/g,""),r)),s=0,lt(lt(t.replace(/\\/g,"")).replace(/[0#]/g,function(A){return s-1||r=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t-1;);break;case" ":++t;break;default:++t;break}return!1}function np(e,t,r,n){for(var a=[],i="",s=0,o="",l="t",c,m,S,b="H";s=12?"P":"A"),C.t="T",b="h",s+=3):e.substr(s,5).toUpperCase()==="AM/PM"?(c!=null&&(C.v=c.H>=12?"PM":"AM"),C.t="T",s+=5,b="h"):e.substr(s,5).toUpperCase()==="上午/下午"?(c!=null&&(C.v=c.H>=12?"下午":"上午"),C.t="T",s+=5,b="h"):(C.t="t",++s),c==null&&C.t==="T")return"";a[a.length]=C,l=o;break;case"[":for(i=o;e.charAt(s++)!=="]"&&s-1&&(i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$",rp(e)||(a[a.length]={t:"t",v:i}));break;case".":if(c!=null){for(i=o;++s-1;)i+=o;a[a.length]={t:"n",v:i};break;case"?":for(i=o;e.charAt(++s)===o;)i+=o;a[a.length]={t:o,v:i},l=o;break;case"*":++s,(e.charAt(s)==" "||e.charAt(s)=="*")&&++s;break;case"(":case")":a[a.length]={t:n===1?"t":o,v:o},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(i=o;s-1;)i+=e.charAt(s);a[a.length]={t:"D",v:i};break;case" ":a[a.length]={t:o,v:o},++s;break;case"$":a[a.length]={t:"t",v:"$"},++s;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(o)===-1)throw new Error("unrecognized character "+o+" in "+e);a[a.length]={t:"t",v:o},++s;break}var k=0,N=0,L;for(s=a.length-1,l="t";s>=0;--s)switch(a[s].t){case"h":case"H":a[s].t=b,l="h",k<1&&(k=1);break;case"s":(L=a[s].v.match(/\.0+$/))&&(N=Math.max(N,L[0].length-1)),k<3&&(k=3);case"d":case"y":case"M":case"e":l=a[s].t;break;case"m":l==="s"&&(a[s].t="M",k<2&&(k=2));break;case"X":break;case"Z":k<1&&a[s].v.match(/[Hh]/)&&(k=1),k<2&&a[s].v.match(/[Mm]/)&&(k=2),k<3&&a[s].v.match(/[Ss]/)&&(k=3)}switch(k){case 0:break;case 1:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M),c.M>=60&&(c.M=0,++c.H);break;case 2:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M);break}var W="",j;for(s=0;s0){W.charCodeAt(0)==40?(U=t<0&&W.charCodeAt(0)===45?-t:t,T=Pe("n",W,U)):(U=t<0&&n>1?-t:t,T=Pe("n",W,U),U<0&&a[0]&&a[0].t=="t"&&(T=T.substr(1),a[0].v="-"+a[0].v)),j=T.length-1;var z=a.length;for(s=0;s-1){z=s;break}var M=a.length;if(z===a.length&&T.indexOf("E")===-1){for(s=a.length-1;s>=0;--s)a[s]==null||"n?".indexOf(a[s].t)===-1||(j>=a[s].v.length-1?(j-=a[s].v.length,a[s].v=T.substr(j+1,a[s].v.length)):j<0?a[s].v="":(a[s].v=T.substr(0,j+1),j=-1),a[s].t="t",M=s);j>=0&&M=0;--s)if(!(a[s]==null||"n?".indexOf(a[s].t)===-1)){for(m=a[s].v.indexOf(".")>-1&&s===z?a[s].v.indexOf(".")-1:a[s].v.length-1,V=a[s].v.substr(m+1);m>=0;--m)j>=0&&(a[s].v.charAt(m)==="0"||a[s].v.charAt(m)==="#")&&(V=T.charAt(j--)+V);a[s].v=V,a[s].t="t",M=s}for(j>=0&&M-1&&s===z?a[s].v.indexOf(".")+1:0,V=a[s].v.substr(0,m);m-1&&(U=n>1&&t<0&&s>0&&a[s-1].v==="-"?-t:t,a[s].v=Pe(a[s].t,a[s].v,U),a[s].t="t");var B="";for(s=0;s!==a.length;++s)a[s]!=null&&(B+=a[s].v);return B}var La=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function ja(e,t){if(t==null)return!1;var r=parseFloat(t[2]);switch(t[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 ap(e,t){var r=tp(e),n=r.length,a=r[n-1].indexOf("@");if(n<4&&a>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||a>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=a>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=a>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=a>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var i=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,i];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var s=r[0].match(La),o=r[1].match(La);return ja(t,s)?[n,r[0]]:ja(t,o)?[n,r[1]]:[n,r[s!=null&&o!=null?2:1]]}return[n,i]}function $t(e,t,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:we)[e],n==null&&(n=r.table&&r.table[Ia[e]]||we[Ia[e]]),n==null&&(n=Ld[e]||"General");break}if(dr(n,0))return un(t,r);t instanceof Date&&(t=Qi(t,r.date1904));var a=ap(n,t);if(dr(a[1]))return un(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return np(a[1],t,r,a[0])}function fs(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(we[r]==null){t<0&&(t=r);continue}if(we[r]==e){t=r;break}}t<0&&(t=391)}return we[t]=e,t}function ip(e){for(var t=0;t!=392;++t)e[t]!==void 0&&fs(e[t],t)}function sp(){we=Rd()}var op=function(){var e={};e.version="1.2.0";function t(){for(var T=0,z=new Array(256),M=0;M!=256;++M)T=M,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,z[M]=T;return typeof Int32Array<"u"?new Int32Array(z):z}var r=t();function n(T){var z=0,M=0,B=0,G=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(B=0;B!=256;++B)G[B]=T[B];for(B=0;B!=256;++B)for(M=T[B],z=256+B;z<4096;z+=256)M=G[z]=M>>>8^T[M&255];var X=[];for(B=1;B!=16;++B)X[B-1]=typeof Int32Array<"u"?G.subarray(B*256,B*256+256):G.slice(B*256,B*256+256);return X}var a=n(r),i=a[0],s=a[1],o=a[2],l=a[3],c=a[4],m=a[5],S=a[6],b=a[7],v=a[8],A=a[9],C=a[10],k=a[11],N=a[12],L=a[13],W=a[14];function j(T,z){for(var M=z^-1,B=0,G=T.length;B>>8^r[(M^T.charCodeAt(B++))&255];return~M}function V(T,z){for(var M=z^-1,B=T.length-15,G=0;G>8&255]^N[T[G++]^M>>16&255]^k[T[G++]^M>>>24]^C[T[G++]]^A[T[G++]]^v[T[G++]]^b[T[G++]]^S[T[G++]]^m[T[G++]]^c[T[G++]]^l[T[G++]]^o[T[G++]]^s[T[G++]]^i[T[G++]]^r[T[G++]];for(B+=15;G>>8^r[(M^T[G++])&255];return~M}function U(T,z){for(var M=z^-1,B=0,G=T.length,X=0,q=0;B>>8^r[(M^X)&255]:X<2048?(M=M>>>8^r[(M^(192|X>>6&31))&255],M=M>>>8^r[(M^(128|X&63))&255]):X>=55296&&X<57344?(X=(X&1023)+64,q=T.charCodeAt(B++)&1023,M=M>>>8^r[(M^(240|X>>8&7))&255],M=M>>>8^r[(M^(128|X>>2&63))&255],M=M>>>8^r[(M^(128|q>>6&15|(X&3)<<4))&255],M=M>>>8^r[(M^(128|q&63))&255]):(M=M>>>8^r[(M^(224|X>>12&15))&255],M=M>>>8^r[(M^(128|X>>6&63))&255],M=M>>>8^r[(M^(128|X&63))&255]);return~M}return e.table=r,e.bstr=j,e.buf=V,e.str=U,e}(),ve=function(){var t={};t.version="1.2.1";function r(f,d){for(var u=f.split("/"),h=d.split("/"),p=0,g=0,y=Math.min(u.length,h.length);p>>1,f.write_shift(2,u);var h=d.getFullYear()-1980;h=h<<4|d.getMonth()+1,h=h<<5|d.getDate(),f.write_shift(2,h)}function s(f){var d=f.read_shift(2)&65535,u=f.read_shift(2)&65535,h=new Date,p=u&31;u>>>=5;var g=u&15;u>>>=4,h.setMilliseconds(0),h.setFullYear(u+1980),h.setMonth(g-1),h.setDate(p);var y=d&31;d>>>=5;var F=d&63;return d>>>=6,h.setHours(d),h.setMinutes(F),h.setSeconds(y<<1),h}function o(f){je(f,0);for(var d={},u=0;f.l<=f.length-4;){var h=f.read_shift(2),p=f.read_shift(2),g=f.l+p,y={};switch(h){case 21589:u=f.read_shift(1),u&1&&(y.mtime=f.read_shift(4)),p>5&&(u&2&&(y.atime=f.read_shift(4)),u&4&&(y.ctime=f.read_shift(4))),y.mtime&&(y.mt=new Date(y.mtime*1e3));break}f.l=g,d[h]=y}return d}var l;function c(){return l||(l={})}function m(f,d){if(f[0]==80&&f[1]==75)return Kn(f,d);if((f[0]|32)==109&&(f[1]|32)==105)return oo(f,d);if(f.length<512)throw new Error("CFB file size "+f.length+" < 512");var u=3,h=512,p=0,g=0,y=0,F=0,_=0,x=[],w=f.slice(0,512);je(w,0);var O=S(w);switch(u=O[0],u){case 3:h=512;break;case 4:h=4096;break;case 0:if(O[1]==0)return Kn(f,d);default:throw new Error("Major Version: Expected 3 or 4 saw "+u)}h!==512&&(w=f.slice(0,h),je(w,28));var D=f.slice(0,h);b(w,u);var I=w.read_shift(4,"i");if(u===3&&I!==0)throw new Error("# Directory Sectors: Expected 0 saw "+I);w.l+=4,y=w.read_shift(4,"i"),w.l+=4,w.chk("00100000","Mini Stream Cutoff Size: "),F=w.read_shift(4,"i"),p=w.read_shift(4,"i"),_=w.read_shift(4,"i"),g=w.read_shift(4,"i");for(var E=-1,P=0;P<109&&(E=w.read_shift(4,"i"),!(E<0));++P)x[P]=E;var H=v(f,h);k(_,g,H,h,x);var J=L(H,y,x,h);J[y].name="!Directory",p>0&&F!==q&&(J[F].name="!MiniFAT"),J[x[0]].name="!FAT",J.fat_addrs=x,J.ssz=h;var Z={},se=[],xt=[],wt=[];W(y,J,H,se,p,Z,xt,F),A(xt,wt,se),se.shift();var bt={FileIndex:xt,FullPaths:wt};return d&&d.raw&&(bt.raw={header:D,sectors:H}),bt}function S(f){if(f[f.l]==80&&f[f.l+1]==75)return[0,0];f.chk(ze,"Header Signature: "),f.l+=16;var d=f.read_shift(2,"u");return[f.read_shift(2,"u"),d]}function b(f,d){var u=9;switch(f.l+=2,u=f.read_shift(2)){case 9:if(d!=3)throw new Error("Sector Shift: Expected 9 saw "+u);break;case 12:if(d!=4)throw new Error("Sector Shift: Expected 12 saw "+u);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+u)}f.chk("0600","Mini Sector Shift: "),f.chk("000000000000","Reserved: ")}function v(f,d){for(var u=Math.ceil(f.length/d)-1,h=[],p=1;p0&&y>=0;)g.push(d.slice(y*X,y*X+X)),p-=X,y=ft(u,y*4);return g.length===0?De(0):st(g).slice(0,f.size)}function k(f,d,u,h,p){var g=q;if(f===q){if(d!==0)throw new Error("DIFAT chain shorter than expected")}else if(f!==-1){var y=u[f],F=(h>>>2)-1;if(!y)return;for(var _=0;_=0;){p[_]=!0,g[g.length]=_,y.push(f[_]);var w=u[Math.floor(_*4/h)];if(x=_*4&F,h<4+x)throw new Error("FAT boundary crossed: "+_+" 4 "+h);if(!f[w])break;_=ft(f[w],x)}return{nodes:g,data:Xa([y])}}function L(f,d,u,h){var p=f.length,g=[],y=[],F=[],_=[],x=h-1,w=0,O=0,D=0,I=0;for(w=0;w=p&&(D-=p),!y[D]){_=[];var E=[];for(O=D;O>=0;){E[O]=!0,y[O]=!0,F[F.length]=O,_.push(f[O]);var P=u[Math.floor(O*4/h)];if(I=O*4&x,h<4+I)throw new Error("FAT boundary crossed: "+O+" 4 "+h);if(!f[P]||(O=ft(f[P],I),E[O]))break}g[D]={nodes:F,data:Xa([_])}}return g}function W(f,d,u,h,p,g,y,F){for(var _=0,x=h.length?2:0,w=d[f].data,O=0,D=0,I;O0&&_!==q&&(d[_].name="!StreamData")):P.size>=4096?(P.storage="fat",d[P.start]===void 0&&(d[P.start]=N(u,P.start,d.fat_addrs,d.ssz)),d[P.start].name=P.name,P.content=d[P.start].data.slice(0,P.size)):(P.storage="minifat",P.size<0?P.size=0:_!==q&&P.start!==q&&d[_]&&(P.content=C(P,d[_].data,(d[F]||{}).data))),P.content&&je(P.content,0),g[I]=P,y.push(P)}}function j(f,d){return new Date((pe(f,d+4)/1e7*Math.pow(2,32)+pe(f,d)/1e7-11644473600)*1e3)}function V(f,d){return c(),m(l.readFileSync(f),d)}function U(f,d){var u=d&&d.type;switch(u||Q&&Buffer.isBuffer(f)&&(u="buffer"),u||"base64"){case"file":return V(f,d);case"base64":return m(it(Ma(f)),d);case"binary":return m(it(f),d)}return m(f,d)}function T(f,d){var u=d||{},h=u.root||"Root Entry";if(f.FullPaths||(f.FullPaths=[]),f.FileIndex||(f.FileIndex=[]),f.FullPaths.length!==f.FileIndex.length)throw new Error("inconsistent CFB structure");f.FullPaths.length===0&&(f.FullPaths[0]=h+"/",f.FileIndex[0]={name:h,type:5}),u.CLSID&&(f.FileIndex[0].clsid=u.CLSID),z(f)}function z(f){var d="Sh33tJ5";if(!ve.find(f,"/"+d)){var u=De(4);u[0]=55,u[1]=u[3]=50,u[2]=54,f.FileIndex.push({name:d,type:2,content:u,size:4,L:69,R:69,C:69}),f.FullPaths.push(f.FullPaths[0]+d),M(f)}}function M(f,d){T(f);for(var u=!1,h=!1,p=f.FullPaths.length-1;p>=0;--p){var g=f.FileIndex[p];switch(g.type){case 0:h?u=!0:(f.FileIndex.pop(),f.FullPaths.pop());break;case 1:case 2:case 5:h=!0,isNaN(g.R*g.L*g.C)&&(u=!0),g.R>-1&&g.L>-1&&g.R==g.L&&(u=!0);break;default:u=!0;break}}if(!(!u&&!d)){var y=new Date(1987,1,19),F=0,_=Object.create?Object.create(null):{},x=[];for(p=0;p1?1:-1,O.size=0,O.type=5;else if(D.slice(-1)=="/"){for(F=p+1;F=x.length?-1:F,F=p+1;F=x.length?-1:F,O.type=1}else n(f.FullPaths[p+1]||"")==n(D)&&(O.R=p+1),O.type=2}}}function B(f,d){var u=d||{};if(u.fileType=="mad")return fo(f,u);switch(M(f),u.fileType){case"zip":return to(f,u)}var h=function(I){for(var E=0,P=0,H=0;H0&&(Z<4096?E+=Z+63>>6:P+=Z+511>>9)}}for(var se=I.FullPaths.length+3>>2,xt=E+7>>3,wt=E+127>>7,bt=xt+P+se+wt,Xe=bt+127>>7,Dr=Xe<=109?0:Math.ceil((Xe-109)/127);bt+Xe+Dr+127>>7>Xe;)Dr=++Xe<=109?0:Math.ceil((Xe-109)/127);var Me=[1,Dr,Xe,wt,se,P,E,0];return I.FileIndex[0].size=E<<6,Me[7]=(I.FileIndex[0].start=Me[0]+Me[1]+Me[2]+Me[3]+Me[4]+Me[5])+(Me[6]+7>>3),Me}(f),p=De(h[7]<<9),g=0,y=0;{for(g=0;g<8;++g)p.write_shift(1,js[g]);for(g=0;g<8;++g)p.write_shift(2,0);for(p.write_shift(2,62),p.write_shift(2,3),p.write_shift(2,65534),p.write_shift(2,9),p.write_shift(2,6),g=0;g<3;++g)p.write_shift(2,0);for(p.write_shift(4,0),p.write_shift(4,h[2]),p.write_shift(4,h[0]+h[1]+h[2]+h[3]-1),p.write_shift(4,0),p.write_shift(4,4096),p.write_shift(4,h[3]?h[0]+h[1]+h[2]-1:q),p.write_shift(4,h[3]),p.write_shift(-4,h[1]?h[0]-1:q),p.write_shift(4,h[1]),g=0;g<109;++g)p.write_shift(-4,g>9)));for(F(h[6]+7>>3);p.l&511;)p.write_shift(-4,vt.ENDOFCHAIN);for(y=g=0,_=0;_=4096)&&(w.start=y,F(x+63>>6)));for(;p.l&511;)p.write_shift(-4,vt.ENDOFCHAIN);for(g=0;g=4096)if(p.l=w.start+1<<9,Q&&Buffer.isBuffer(w.content))w.content.copy(p,p.l,0,w.size),p.l+=w.size+511&-512;else{for(_=0;_0&&w.size<4096)if(Q&&Buffer.isBuffer(w.content))w.content.copy(p,p.l,0,w.size),p.l+=w.size+63&-64;else{for(_=0;_>16|d>>8|d)&255}for(var ie=typeof Uint8Array<"u",ke=ie?new Uint8Array(256):[],Gt=0;Gt<256;++Gt)ke[Gt]=Xs(Gt);function Vs(f,d){var u=ke[f&255];return d<=8?u>>>8-d:(u=u<<8|ke[f>>8&255],d<=16?u>>>16-d:(u=u<<8|ke[f>>16&255],u>>>24-d))}function Ks(f,d){var u=d&7,h=d>>>3;return(f[h]|(u<=6?0:f[h+1]<<8))>>>u&3}function Tr(f,d){var u=d&7,h=d>>>3;return(f[h]|(u<=5?0:f[h+1]<<8))>>>u&7}function Ys(f,d){var u=d&7,h=d>>>3;return(f[h]|(u<=4?0:f[h+1]<<8))>>>u&15}function Nn(f,d){var u=d&7,h=d>>>3;return(f[h]|(u<=3?0:f[h+1]<<8))>>>u&31}function Rn(f,d){var u=d&7,h=d>>>3;return(f[h]|(u<=1?0:f[h+1]<<8))>>>u&127}function Xt(f,d,u){var h=d&7,p=d>>>3,g=(1<>>h;return u<8-h||(y|=f[p+1]<<8-h,u<16-h)||(y|=f[p+2]<<16-h,u<24-h)||(y|=f[p+3]<<24-h),y&g}function Ln(f,d,u){var h=d&7,p=d>>>3;return h<=5?f[p]|=(u&7)<>8-h),d+3}function qs(f,d,u){var h=d&7,p=d>>>3;return u=(u&1)<>>3;return u<<=h,f[p]|=u&255,u>>>=8,f[p+1]=u,d+8}function jn(f,d,u){var h=d&7,p=d>>>3;return u<<=h,f[p]|=u&255,u>>>=8,f[p+1]=u&255,f[p+2]=u>>>8,d+16}function Or(f,d){var u=f.length,h=2*u>d?2*u:d+5,p=0;if(u>=d)return f;if(Q){var g=Da(h);if(f.copy)f.copy(g);else for(;p>h-O,y=(1<=0;--y)d[F|y<0;)_[_.l++]=F[x++]}return _.l}function y(F,_){for(var x=0,w=0,O=ie?new Uint16Array(32768):[];w0;)_[_.l++]=F[w++];x=_.l*8;continue}x=Ln(_,x,+(w+D==F.length)+2);for(var I=0;D-- >0;){var E=F[w];I=(I<<5^E)&32767;var P=-1,H=0;if((P=O[I])&&(P|=w&-32768,P>w&&(P-=32768),P2){E=p[H],E<=22?x=rt(_,x,ke[E+1]>>1)-1:(rt(_,x,3),x+=5,rt(_,x,ke[E-23]>>5),x+=3);var J=E<8?0:E-4>>2;J>0&&(jn(_,x,H-Wt[E]),x+=J),E=d[w-P],x=rt(_,x,ke[E]>>3),x-=3;var Z=E<4?0:E-2>>1;Z>0&&(jn(_,x,w-P-zt[E]),x+=Z);for(var se=0;se>8-E;for(var P=(1<<7-E)-1;P>=0;--P)Wn[I|P<>>=3){case 16:for(g=3+Ks(f,d),d+=2,I=H[H.length-1];g-- >0;)H.push(I);break;case 17:for(g=3+Tr(f,d),d+=3;g-- >0;)H.push(0);break;case 18:for(g=11+Rn(f,d),d+=7;g-- >0;)H.push(0);break;default:H.push(I),_>>0,F=0,_=0;!(h&1);){if(h=Tr(f,u),u+=3,h>>>1)h>>1==1?(F=9,_=5):(u=Zs(f,u),F=zn,_=Gn);else{u&7&&(u+=8-(u&7));var x=f[u>>>3]|f[(u>>>3)+1]<<8;if(u+=32,x>0)for(!d&&y0;)p[g++]=f[u>>>3],u+=8;continue}for(;;){!d&&y>>1==1?Er[w]:Un[w];if(u+=O&15,O>>>=4,!(O>>>8&255))p[g++]=O;else{if(O==256)break;O-=257;var D=O<8?0:O-4>>2;D>5&&(D=0);var I=g+Wt[O];D>0&&(I+=Xt(f,u,D),u+=D),w=Xt(f,u,_),O=h>>>1==1?kr[w]:Hn[w],u+=O&15,O>>>=4;var E=O<4?0:O-2>>1,P=zt[O];for(E>0&&(P+=Xt(f,u,E),u+=E),!d&&y>>3]:[p.slice(0,g),u+7>>>3]}function Xn(f,d){var u=f.slice(f.l||0),h=Qs(u,d);return f.l+=h[1],h[0]}function Vn(f,d){if(f)typeof console<"u"&&console.error(d);else throw new Error(d)}function Kn(f,d){var u=f;je(u,0);var h=[],p=[],g={FileIndex:h,FullPaths:p};T(g,{root:d.root});for(var y=u.length-4;(u[y]!=80||u[y+1]!=75||u[y+2]!=5||u[y+3]!=6)&&y>=0;)--y;u.l=y+4,u.l+=4;var F=u.read_shift(2);u.l+=6;var _=u.read_shift(4);for(u.l=_,y=0;y0&&(u=u.slice(0,u.length-1),u=u.slice(0,u.lastIndexOf("/")+1),g.slice(0,u.length)!=u););var y=(h[1]||"").match(/boundary="(.*?)"/);if(!y)throw new Error("MAD cannot find boundary");var F="--"+(y[1]||""),_=[],x=[],w={FileIndex:_,FullPaths:x};T(w);var O,D=0;for(p=0;p=32&&I<128&&++O;var P=O>=D*4/5;p.push(h),p.push("Content-Location: "+(u.root||"file:///C:/SheetJS/")+y),p.push("Content-Transfer-Encoding: "+(P?"quoted-printable":"base64")),p.push("Content-Type: "+ro(F,y)),p.push(""),p.push(P?ao(w):no(w))}return p.push(h+`--\r `),p.join(`\r `)}function lo(f){var d={};return T(d,f),d}function Mr(f,d,u,h){var p=h&&h.unsafe;p||T(f);var g=!p&&ve.find(f,d);if(!g){var y=f.FullPaths[0];d.slice(0,y.length)==y?y=d:(y.slice(-1)!="/"&&(y+="/"),y=(y+d).replace("//","/")),g={name:a(d),type:2},f.FileIndex.push(g),f.FullPaths.push(y),p||ve.utils.cfb_gc(f)}return g.content=u,g.size=u?u.length:0,h&&(h.CLSID&&(g.clsid=h.CLSID),h.mt&&(g.mt=h.mt),h.ct&&(g.ct=h.ct)),g}function co(f,d){T(f);var u=ve.find(f,d);if(u){for(var h=0;h0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):t<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(cs.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var a=e.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+a[0],+a[1]-1,+a[2],+a[3]||0,+a[4]||0,+a[5]||0);return e.indexOf("Z")>-1&&(i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3)),i}function Bt(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 t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=Bt(e[r]));return t}function ue(e,t){for(var r="";r.length3&&dp.indexOf(s)==-1)return r}else if(s.match(/[a-z]/))return r;return n<0||n>8099?r:(a>0||i>1)&&n!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}function ne(e,t,r){if(e.FullPaths){if(typeof r=="string"){var n;return Q?n=et(r):n=Pd(r),ve.utils.cfb_add(e,t,n)}ve.utils.cfb_add(e,t,r)}else e.file(t,r)}function gp(){return ve.utils.cfb_new()}var de=`\r `,mp={""":'"',"'":"'",">":">","<":"<","&":"&"},us=lp(mp),hs=/[&<>'"]/g,vp=/[\u0000-\u0008\u000b-\u001f]/g;function ee(e){var t=e+"";return t.replace(hs,function(r){return us[r]}).replace(vp,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}var _p=/[\u0000-\u001f]/g;function yp(e){var t=e+"";return t.replace(hs,function(r){return us[r]}).replace(/\n/g,"
").replace(_p,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function Zr(e){for(var t="",r=0,n=0,a=0,i=0,s=0,o=0;r191&&n<224){s=(n&31)<<6,s|=a&63,t+=String.fromCharCode(s);continue}if(i=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(a&63)<<6|i&63);continue}s=e.charCodeAt(r++),o=((n&7)<<18|(a&63)<<12|(i&63)<<6|s&63)-65536,t+=String.fromCharCode(55296+(o>>>10&1023)),t+=String.fromCharCode(56320+(o&1023))}return t}function Wa(e){var t=dt(2*e.length),r,n,a=1,i=0,s=0,o;for(n=0;n>>10&1023),r=56320+(r&1023)),s!==0&&(t[i++]=s&255,t[i++]=s>>>8,s=0),t[i++]=r%256,t[i++]=r>>>8;return t.slice(0,i).toString("ucs2")}function za(e){return et(e,"binary").toString("utf8")}var tr="foo bar baz☃🍣",xp=Q&&(za(tr)==Zr(tr)&&za||Wa(tr)==Zr(tr)&&Wa)||Zr,ds=Q?function(e){return et(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,a=0;r>6))),t.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,a=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(a>>18&7))),t.push(String.fromCharCode(144+(a>>12&63))),t.push(String.fromCharCode(128+(a>>6&63))),t.push(String.fromCharCode(128+(a&63)));break;default:t.push(String.fromCharCode(224+(n>>12))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(n&63)))}return t.join("")},wp=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+/g,` `).replace(/<[^>]*>/g,""),a=0;a"+t+""}function gs(e){return We(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function R(e,t,r){return"<"+e+(r!=null?gs(r):"")+(t!=null?(t.match(ps)?' xml:space="preserve"':"")+">"+t+""}function dn(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function bp(e,t){switch(typeof e){case"string":var r=R("vt:lpwstr",ee(e));return t&&(r=r.replace(/"/g,"_x0022_")),r;case"number":return R((e|0)==e?"vt:i4":"vt:r8",ee(String(e)));case"boolean":return R("vt:bool",e?"true":"false")}if(e instanceof Date)return R("vt:filetime",dn(e));throw new Error("Unable to serialize "+e)}var ae={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"},gt=["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"],rr={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function Sp(e,t){for(var r=1-2*(e[t+7]>>>7),n=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),a=e[t+6]&15,i=5;i>=0;--i)a=a*256+e[t+i];return n==2047?a==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,a+=Math.pow(2,52)),r*Math.pow(2,n-52)*a)}function Fp(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,a=0,i=0,s=n?-t:t;isFinite(s)?s==0?a=i=0:(a=Math.floor(Math.log(s)/Math.LN2),i=s*Math.pow(2,52-a),a<=-1023&&(!isFinite(i)||i>4|n}var Ga=function(e){for(var t=[],r=10240,n=0;n0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:et(t)})):Ga(e)}:Ga,Va=function(e,t,r){for(var n=[],a=t;a0?Ut(e,t+4,t+4+r-1):""},_s=vs,ys=function(e,t){var r=pe(e,t);return r>0?Ut(e,t+4,t+4+r-1):""},xs=ys,ws=function(e,t){var r=2*pe(e,t);return r>0?Ut(e,t+4,t+4+r-1):""},bs=ws,Ss=function(t,r){var n=pe(t,r);return n>0?In(t,r+4,r+4+n):""},Fs=Ss,As=function(e,t){var r=pe(e,t);return r>0?Ut(e,t+4,t+4+r):""},Cs=As,Ts=function(e,t){return Sp(e,t)},pn=Ts;Q&&(_s=function(t,r){if(!Buffer.isBuffer(t))return vs(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},xs=function(t,r){if(!Buffer.isBuffer(t))return ys(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},bs=function(t,r){if(!Buffer.isBuffer(t))return ws(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},Fs=function(t,r){if(!Buffer.isBuffer(t))return Ss(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},Cs=function(t,r){if(!Buffer.isBuffer(t))return As(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},pn=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):Ts(t,r)});var ot=function(e,t){return e[t]},Ft=function(e,t){return e[t+1]*256+e[t]},Ap=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},pe=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},ft=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},Cp=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Et(e,t){var r="",n,a,i=[],s,o,l,c;switch(t){case"dbcs":if(c=this.l,Q&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(l=0;l0?ft:Cp)(this,this.l),this.l+=4,n):(a=pe(this,this.l),this.l+=4,a);case 8:case-8:if(t==="f")return e==8?a=pn(this,this.l):a=pn([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,a;e=8;case 16:r=ms(this,this.l,e);break}}return this.l+=e,r}var Tp=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},Op=function(e,t,r){e[r]=t&255,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},Ep=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function kp(e,t,r){var n=0,a=0;if(r==="dbcs"){for(a=0;a!=t.length;++a)Ep(this,t.charCodeAt(a),this.l+2*a);n=2*t.length}else if(r==="sbcs"){for(t=t.replace(/[^\x00-\x7F]/g,"_"),a=0;a!=t.length;++a)this[this.l+a]=t.charCodeAt(a)&255;n=t.length}else if(r==="hex"){for(;a>8}for(;this.l>>=8,this[this.l+1]=t&255;break;case 3:n=3,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255,t>>>=8,this[this.l+2]=t&255;break;case 4:n=4,Tp(this,t,this.l);break;case 8:if(n=8,r==="f"){Fp(this,t,this.l);break}case 16:break;case-4:n=4,Op(this,t,this.l);break}return this.l+=n,this}function Os(e,t){var r=ms(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function je(e,t){e.l=t,e.read_shift=Et,e.chk=Os,e.write_shift=kp}function De(e){var t=dt(e);return je(t,0),t}function Mp(e){return parseInt(Dp(e),10)-1}function tt(e){return""+(e+1)}function Dp(e){return e.replace(/\$(\d+)$/,"$1")}function $p(e){for(var t=Pp(e),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function mt(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function Pp(e){return e.replace(/^\$([A-Z])/,"$1")}function Ip(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Ce(e){for(var t=0,r=0,n=0;n=48&&a<=57?t=10*t+(a-48):a>=65&&a<=90&&(r=26*r+(a-64))}return{c:r-1,r:t-1}}function Ie(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function Pt(e){var t=e.indexOf(":");return t==-1?{s:Ce(e),e:Ce(e)}:{s:Ce(e.slice(0,t)),e:Ce(e.slice(t+1))}}function be(e,t){return typeof t>"u"||typeof t=="number"?be(e.s,e.e):(typeof e!="string"&&(e=Ie(e)),typeof t!="string"&&(t=Ie(t)),e==t?e:e+":"+t)}function Ee(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,a=0,i=e.length;for(r=0;n26);++n)r=26*r+a;for(t.s.c=--r,r=0;n9);++n)r=10*r+a;if(t.s.r=--r,n===i||a!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=i&&!((a=e.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(t.e.c=--r,r=0;n!=i&&!((a=e.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;return t.e.r=--r,t}function qa(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=$t(e.z,r?Ye(t):t)}catch{}try{return e.w=$t((e.XF||{}).numFmtId||(r?14:0),r?Ye(t):t)}catch{return""+t}}function Ht(e,t,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"?ks[e.v]||e.v:t==null?qa(e,e.v):qa(e,t))}function Np(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function Es(e,t,r){var n=r||{},a=e?Array.isArray(e):n.dense,i=e||(a?[]:{}),s=0,o=0;if(i&&n.origin!=null){if(typeof n.origin=="number")s=n.origin;else{var l=typeof n.origin=="string"?Ce(n.origin):n.origin;s=l.r,o=l.c}i["!ref"]||(i["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var m=Ee(i["!ref"]);c.s.c=m.s.c,c.s.r=m.s.r,c.e.c=Math.max(c.e.c,m.e.c),c.e.r=Math.max(c.e.r,m.e.r),s==-1&&(c.e.r=s=m.e.r+1)}for(var S=0;S!=t.length;++S)if(t[S]){if(!Array.isArray(t[S]))throw new Error("aoa_to_sheet expects an array of arrays");for(var b=0;b!=t[S].length;++b)if(!(typeof t[S][b]>"u")){var v={v:t[S][b]},A=s+S,C=o+b;if(c.s.r>A&&(c.s.r=A),c.s.c>C&&(c.s.c=C),c.e.r0&&(a=e[l][0],n[n.length]=R("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:nr[l][t.bookType]||nr[l].xlsx}))},s=function(l){(e[l]||[]).forEach(function(c){n[n.length]=R("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:nr[l][t.bookType]||nr[l].xlsx})})},o=function(l){(e[l]||[]).forEach(function(c){n[n.length]=R("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:r[l][0]})})};return i("workbooks"),s("sheets"),s("charts"),o("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(o),o("vba"),o("comments"),o("threadedcomments"),o("drawings"),s("metadata"),o("people"),n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var te={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 Up(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function Qr(e){var t=[de,R("Relationships",null,{xmlns:ae.RELS})];return We(e["!id"]).forEach(function(r){t[t.length]=R("Relationship",null,e["!id"][r])}),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function oe(e,t,r,n,a,i){if(a||(a={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,a.Id="rId"+t,a.Type=n,a.Target=r,i?a.TargetMode=i:[te.HLINK,te.XPATH,te.XMISS].indexOf(a.Type)>-1&&(a.TargetMode="External"),e["!id"][a.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][a.Id]=a,e[("/"+a.Target).replace("//","/")]=a,t}var Ja=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function en(e,t,r,n,a){a[e]!=null||t==null||t===""||(a[e]=t,t=ee(t),n[n.length]=r?R(e,t,r):ye(e,t))}function Hp(e,t){var r=t||{},n=[de,R("cp:coreProperties",null,{"xmlns:cp":ae.CORE_PROPS,"xmlns:dc":ae.dc,"xmlns:dcterms":ae.dcterms,"xmlns:dcmitype":ae.dcmitype,"xmlns:xsi":ae.xsi})],a={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&en("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:dn(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a),e.ModifiedDate!=null&&en("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:dn(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a));for(var i=0;i!=Ja.length;++i){var s=Ja[i],o=r.Props&&r.Props[s[1]]!=null?r.Props[s[1]]:e?e[s[1]]:null;o===!0?o="1":o===!1?o="0":typeof o=="number"&&(o=String(o)),o!=null&&en(s[0],o,null,n,a)}return n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var Wp=[["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 zp(e){var t=[],r=R;return e||(e={}),e.Application="SheetJS",t[t.length]=de,t[t.length]=R("Properties",null,{xmlns:ae.EXT_PROPS,"xmlns:vt":ae.vt}),Wp.forEach(function(n){if(e[n[1]]!==void 0){var a;switch(n[2]){case"string":a=ee(String(e[n[1]]));break;case"bool":a=e[n[1]]?"true":"false";break}a!==void 0&&(t[t.length]=r(n[0],a))}}),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","Worksheets")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map(function(n){return""+ee(n)+""}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function Gp(e){var t=[de,R("Properties",null,{xmlns:ae.CUST_PROPS,"xmlns:vt":ae.vt})];if(!e)return t.join("");var r=1;return We(e).forEach(function(a){++r,t[t.length]=R("property",bp(e[a],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:ee(a)})}),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}var Xp=/^\s|\s$|[\t\n\r]/;function Vp(e,t){if(!t.bookSST)return"";var r=[de];r[r.length]=R("sst",null,{xmlns:gt[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var a=e[n],i="";a.r?i+=a.r:(i+=""),i+="",r[r.length]=i}return r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function Kp(e){for(var t=[],r=e.split(""),n=0;n=0;--i)s=r[i],o=t&16384?1:0,l=t<<1&32767,c=o|l,t=c^s;return t^52811}var qp=6,gr=qp;function Jp(e){return Math.floor((e-5)/gr*100+.5)/100}function Zp(e){return Math.round((e*gr+5)/gr*256)/256}var Qp=96,eg=Qp;function Za(e){return e*96/eg}function tg(e){var t=[""];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)e[n]!=null&&(t[t.length]=R("numFmt",null,{numFmtId:n,formatCode:ee(e[n])}))}),t.length===1?"":(t[t.length]="",t[0]=R("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function rg(e){var t=[];return t[t.length]=R("cellXfs",null),e.forEach(function(r){t[t.length]=R("xf",null,r)}),t[t.length]="",t.length===2?"":(t[0]=R("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function ng(e,t){var r=[de,R("styleSheet",null,{xmlns:gt[0],"xmlns:vt":ae.vt})],n;return e.SSF&&(n=tg(e.SSF))!=null&&(r[r.length]=n),r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',(n=rg(t.cellXfs))&&(r[r.length]=n),r[r.length]='',r[r.length]='',r[r.length]='',r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function ag(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[de];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 ig(){var e=[de];return e.push(` `),e.join("")}var At=1024;function sg(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),a=[R("xml",null,{"xmlns:v":rr.v,"xmlns:o":rr.o,"xmlns:x":rr.x,"xmlns:mv":rr.mv}).replace(/\/>/,">"),R("o:shapelayout",R("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),R("v:shapetype",[R("v:stroke",null,{joinstyle:"miter"}),R("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];At",c,R("v:shadow",null,m),R("v:path",null,{"o:connecttype":"none"}),'
','',"","",ye("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),ye("x:AutoFill","False"),ye("x:Row",String(s.r)),ye("x:Column",String(s.c)),i[1].hidden?"":"","",""])}),a.push(""),a.join("")}function og(e){var t=[de,R("comments",null,{xmlns:gt[0]})],r=[];return t.push(""),e.forEach(function(n){n[1].forEach(function(a){var i=ee(a.a);r.indexOf(i)==-1&&(r.push(i),t.push(""+i+"")),a.T&&a.ID&&r.indexOf("tc="+a.ID)==-1&&(r.push("tc="+a.ID),t.push("tc="+a.ID+""))})}),r.length==0&&(r.push("SheetJ5"),t.push("SheetJ5")),t.push(""),t.push(""),e.forEach(function(n){var a=0,i=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?a=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(l){l.a&&(a=r.indexOf(ee(l.a))),i.push(l.t||"")}),t.push(''),i.length<=1)t.push(ye("t",ee(i[0]||"")));else{for(var s=`Comment: `+i[0]+` `,o=1;o")}),t.push(""),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function fg(e,t,r){var n=[de,R("ThreadedComments",null,{xmlns:ae.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(a){var i="";(a[1]||[]).forEach(function(s,o){if(!s.T){delete s.ID;return}s.a&&t.indexOf(s.a)==-1&&t.push(s.a);var l={ref:a[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};o==0?i=l.id:l.parentId=i,s.ID=l.id,s.a&&(l.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(s.a)).slice(-12)+"}"),n.push(R("threadedComment",ye("text",s.t||""),l))})}),n.push(""),n.join("")}function lg(e){var t=[de,R("personList",null,{xmlns:ae.TCMNT,"xmlns:x":gt[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push(R("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push(""),t.join("")}var cg=["xlsb","xlsm","xlam","biff8","xla"],sr=typeof Map<"u";function ug(e,t,r){var n=0,a=e.length;if(r){if(sr?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var i=sr?r.get(t):r[t];n-1?(r.width=Zp(n),r.customWidth=1):t.width!=null&&(r.width=t.width),t.hidden&&(r.hidden=!0),t.level!=null&&(r.outlineLevel=r.level=t.level),r}function dg(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];t=="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 Ms(e,t,r){var n=r.revssf[t.z!=null?t.z:"General"],a=60,i=e.length;if(n==null&&r.ssf){for(;a<392;++a)if(r.ssf[a]==null){fs(t.z,a),r.ssf[a]=t.z,r.revssf[t.z]=n=a;break}}for(a=0;a!=i;++a)if(e[a].numFmtId===n)return a;return e[i]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function pg(e,t,r){if(e&&e["!ref"]){var n=Ee(e["!ref"]);if(n.e.c',r=0;r!=e.length;++r)t+='';return t+""}function mg(e,t,r,n,a){var i=!1,s={},o=null;if(n.bookType!=="xlsx"&&t.vbaraw){var l=t.SheetNames[r];try{t.Workbook&&(l=t.Workbook.Sheets[r].CodeName||l)}catch{}i=!0,s.codeName=ds(ee(l))}if(e&&e["!outline"]){var c={summaryBelow:1,summaryRight:1};e["!outline"].above&&(c.summaryBelow=0),e["!outline"].left&&(c.summaryRight=0),o=(o||"")+R("outlinePr",null,c)}!i&&!o||(a[a.length]=R("sheetPr",o,s))}var vg=["objects","scenarios","selectLockedCells","selectUnlockedCells"],_g=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function yg(e){var t={sheet:1};return vg.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),_g.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=Yp(e.password).toString(16).toUpperCase()),R("sheetProtection",null,t)}function xg(e){return dg(e),R("pageMargins",null,e)}function wg(e,t){for(var r=[""],n,a=0;a!=t.length;++a)(n=t[a])&&(r[r.length]=R("col",null,hg(a,n)));return r[r.length]="",r.join("")}function bg(e,t,r,n){var a=typeof e.ref=="string"?e.ref:be(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var i=r.Workbook.Names,s=Pt(a);s.s.r==s.e.r&&(s.e.r=Pt(t["!ref"]).e.r,a=be(s));for(var o=0;o"u"&&(e.z=we[14]);break;default:a=e.v;break}var o=ye("v",ee(a)),l={r:t},c=Ms(n.cellXfs,e,n);switch(c!==0&&(l.s=c),e.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){o=ye("v",""+ug(n.Strings,e.v,n.revStrings)),l.t="s";break}l.t="str";break}if(e.t!=i&&(e.t=i,e.v=s),typeof e.f=="string"&&e.f){var m=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;o=R("f",ee(e.f),m)+(e.v!=null?o:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(l.cm=1),R("c",o,l)}function Ag(e,t,r,n){var a=[],i=[],s=Ee(e["!ref"]),o="",l,c="",m=[],S=0,b=0,v=e["!rows"],A=Array.isArray(e),C={r:c},k,N=-1;for(b=s.s.c;b<=s.e.c;++b)m[b]=mt(b);for(S=s.s.r;S<=s.e.r;++S){for(i=[],c=tt(S),b=s.s.c;b<=s.e.c;++b){l=m[b]+c;var L=A?(e[S]||[])[b]:e[l];L!==void 0&&(o=Fg(L,l,e,t))!=null&&i.push(o)}(i.length>0||v&&v[S])&&(C={r:c},v&&v[S]&&(k=v[S],k.hidden&&(C.hidden=1),N=-1,k.hpx?N=Za(k.hpx):k.hpt&&(N=k.hpt),N>-1&&(C.ht=N,C.customHeight=1),k.level&&(C.outlineLevel=k.level)),a[a.length]=R("row",i.join(""),C))}if(v)for(;S-1&&(C.ht=N,C.customHeight=1),k.level&&(C.outlineLevel=k.level),a[a.length]=R("row","",C));return a.join("")}function Cg(e,t,r,n){var a=[de,R("worksheet",null,{xmlns:gt[0],"xmlns:r":ae.r})],i=r.SheetNames[e],s=0,o="",l=r.Sheets[i];l==null&&(l={});var c=l["!ref"]||"A1",m=Ee(c);if(m.e.c>16383||m.e.r>1048575){if(t.WTF)throw new Error("Range "+c+" exceeds format limit A1:XFD1048576");m.e.c=Math.min(m.e.c,16383),m.e.r=Math.min(m.e.c,1048575),c=be(m)}n||(n={}),l["!comments"]=[];var S=[];mg(l,r,e,t,a),a[a.length]=R("dimension",null,{ref:c}),a[a.length]=Sg(l,t,e,r),t.sheetFormat&&(a[a.length]=R("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),l["!cols"]!=null&&l["!cols"].length>0&&(a[a.length]=wg(l,l["!cols"])),a[s=a.length]="",l["!links"]=[],l["!ref"]!=null&&(o=Ag(l,t),o.length>0&&(a[a.length]=o)),a.length>s+1&&(a[a.length]="",a[s]=a[s].replace("/>",">")),l["!protect"]&&(a[a.length]=yg(l["!protect"])),l["!autofilter"]!=null&&(a[a.length]=bg(l["!autofilter"],l,r,e)),l["!merges"]!=null&&l["!merges"].length>0&&(a[a.length]=gg(l["!merges"]));var b=-1,v,A=-1;return l["!links"].length>0&&(a[a.length]="",l["!links"].forEach(function(C){C[1].Target&&(v={ref:C[0]},C[1].Target.charAt(0)!="#"&&(A=oe(n,-1,ee(C[1].Target).replace(/#.*$/,""),te.HLINK),v["r:id"]="rId"+A),(b=C[1].Target.indexOf("#"))>-1&&(v.location=ee(C[1].Target.slice(b+1))),C[1].Tooltip&&(v.tooltip=ee(C[1].Tooltip)),a[a.length]=R("hyperlink",null,v))}),a[a.length]=""),delete l["!links"],l["!margins"]!=null&&(a[a.length]=xg(l["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(a[a.length]=ye("ignoredErrors",R("ignoredError",null,{numberStoredAsText:1,sqref:c}))),S.length>0&&(A=oe(n,-1,"../drawings/drawing"+(e+1)+".xml",te.DRAW),a[a.length]=R("drawing",null,{"r:id":"rId"+A}),l["!drawing"]=S),l["!comments"].length>0&&(A=oe(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",te.VML),a[a.length]=R("legacyDrawing",null,{"r:id":"rId"+A}),l["!legacy"]=A),a.length>1&&(a[a.length]="",a[1]=a[1].replace("/>",">")),a.join("")}var Tg=[["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"]],Og="][*?/\\".split("");function Ds(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var r=!0;return Og.forEach(function(n){if(e.indexOf(n)!=-1){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");r=!1}}),r}function Eg(e,t,r){e.forEach(function(n,a){Ds(n);for(var i=0;i22)throw new Error("Bad Code Name: Worksheet"+s)}})}function kg(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];Eg(e.SheetNames,t,!!e.vbaraw);for(var r=0;r0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(Tg.forEach(function(o){e.Workbook.WBProps[o[0]]!=null&&e.Workbook.WBProps[o[0]]!=o[1]&&(n[o[0]]=e.Workbook.WBProps[o[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),t[t.length]=R("workbookPr",null,n);var a=e.Workbook&&e.Workbook.Sheets||[],i=0;if(a&&a[0]&&a[0].Hidden){for(t[t.length]="",i=0;i!=e.SheetNames.length&&!(!a[i]||!a[i].Hidden);++i);i==e.SheetNames.length&&(i=0),t[t.length]='',t[t.length]=""}for(t[t.length]="",i=0;i!=e.SheetNames.length;++i){var s={name:ee(e.SheetNames[i].slice(0,31))};if(s.sheetId=""+(i+1),s["r:id"]="rId"+(i+1),a[i])switch(a[i].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break}t[t.length]=R("sheet",null,s)}return t[t.length]="",r&&(t[t.length]="",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(o){var l={name:o.Name};o.Comment&&(l.comment=o.Comment),o.Sheet!=null&&(l.localSheetId=""+o.Sheet),o.Hidden&&(l.hidden="1"),o.Ref&&(t[t.length]=R("definedName",ee(o.Ref),l))}),t[t.length]=""),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function Dg(e,t,r,n){for(var a=e["!merges"]||[],i=[],s=t.s.c;s<=t.e.c;++s){for(var o=0,l=0,c=0;cr||a[c].s.c>s)&&!(a[c].e.r1&&(v.rowspan=o),l>1&&(v.colspan=l),n.editable?b=''+b+"":S&&(v["data-t"]=S&&S.t||"z",S.v!=null&&(v["data-v"]=S.v),S.z!=null&&(v["data-z"]=S.z),S.l&&(S.l.Target||"#").charAt(0)!="#"&&(b=''+b+"")),v.id=(n.id||"sjs")+"-"+m,i.push(R("td",b,v))}}var A="";return A+i.join("")+""}var $g='SheetJS Table Export',Pg="";function Ig(e,t,r){var n=[];return n.join("")+""}function Ng(e,t){var r=t||{},n=r.header!=null?r.header:$g,a=r.footer!=null?r.footer:Pg,i=[n],s=Pt(e["!ref"]);r.dense=Array.isArray(e),i.push(Ig(e,s,r));for(var o=s.s.r;o<=s.e.r;++o)i.push(Dg(e,s,o,r));return i.push(""+a),i.join("")}function $s(e,t,r){var n=r||{},a=0,i=0;if(n.origin!=null)if(typeof n.origin=="number")a=n.origin;else{var s=typeof n.origin=="string"?Ce(n.origin):n.origin;a=s.r,i=s.c}var o=t.getElementsByTagName("tr"),l=Math.min(n.sheetRows||1e7,o.length),c={s:{r:0,c:0},e:{r:a,c:i}};if(e["!ref"]){var m=Pt(e["!ref"]);c.s.r=Math.min(c.s.r,m.s.r),c.s.c=Math.min(c.s.c,m.s.c),c.e.r=Math.max(c.e.r,m.e.r),c.e.c=Math.max(c.e.c,m.e.c),a==-1&&(c.e.r=a=m.e.r+1)}var S=[],b=0,v=e["!rows"]||(e["!rows"]=[]),A=0,C=0,k=0,N=0,L=0,W=0;for(e["!cols"]||(e["!cols"]=[]);A1||W>1)&&S.push({s:{r:C+a,c:N+i},e:{r:C+a+(L||1)-1,c:N+i+(W||1)-1}});var B={t:"s",v:T},G=U.getAttribute("data-t")||U.getAttribute("t")||"";T!=null&&(T.length==0?B.t=G||"z":n.raw||T.trim().length==0||G=="s"||(T==="TRUE"?B={t:"b",v:!0}:T==="FALSE"?B={t:"b",v:!1}:isNaN(Ha(T))?isNaN(pp(T).getDate())||(B={t:"d",v:hn(T)},n.cellDates||(B={t:"n",v:Ye(B.v)}),B.z=n.dateNF||we[14]):B={t:"n",v:Ha(T)})),B.z===void 0&&z!=null&&(B.z=z);var X="",q=U.getElementsByTagName("A");if(q&&q.length)for(var ze=0;ze=l&&(e["!fullref"]=be((c.e.r=o.length-A+C-1+a,c))),e}function Ps(e,t){var r=t||{},n=r.dense?[]:{};return $s(n,e,t)}function Rg(e,t){return Np(Ps(e,t),t)}function Qa(e){var t="",r=Lg(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function Lg(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}function jg(e){return function(r){for(var n=0;n!=e.length;++n){var a=e[n];r[a[0]]===void 0&&(r[a[0]]=a[1]),a[2]==="n"&&(r[a[0]]=Number(r[a[0]]))}}}function Bg(e){jg([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function Ug(e,t){At=1024,e&&!e.SSF&&(e.SSF=Bt(we)),e&&e.SSF&&(sp(),ip(e.SSF),t.revssf=cp(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,sr?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=cg.indexOf(t.bookType)>-1,a=jp();Bg(t=t||{});var i=gp(),s="",o=0;if(t.cellXfs=[],Ms(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",ne(i,s,Hp(e.Props,t)),a.coreprops.push(s),oe(t.rels,2,s,te.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],c=0;c0&&(s="docProps/custom.xml",ne(i,s,Gp(e.Custprops)),a.custprops.push(s),oe(t.rels,4,s,te.CUST_PROPS));var m=["SheetJ5"];for(t.tcid=0,o=1;o<=e.SheetNames.length;++o){var S={"!id":{}},b=e.Sheets[e.SheetNames[o-1]],v=(b||{})["!type"]||"sheet";switch(v){case"chart":default:s="xl/worksheets/sheet"+o+"."+r,ne(i,s,Cg(o-1,t,e,S)),a.sheets.push(s),oe(t.wbrels,-1,"worksheets/sheet"+o+"."+r,te.WS[0])}if(b){var A=b["!comments"],C=!1,k="";if(A&&A.length>0){var N=!1;A.forEach(function(L){L[1].forEach(function(W){W.T==!0&&(N=!0)})}),N&&(k="xl/threadedComments/threadedComment"+o+"."+r,ne(i,k,fg(A,m,t)),a.threadedcomments.push(k),oe(S,-1,"../threadedComments/threadedComment"+o+"."+r,te.TCMNT)),k="xl/comments"+o+"."+r,ne(i,k,og(A)),a.comments.push(k),oe(S,-1,"../comments"+o+"."+r,te.CMNT),C=!0}b["!legacy"]&&C&&ne(i,"xl/drawings/vmlDrawing"+o+".vml",sg(o,b["!comments"])),delete b["!comments"],delete b["!legacy"]}S["!id"].rId1&&ne(i,Up(s),Qr(S))}return t.Strings!=null&&t.Strings.length>0&&(s="xl/sharedStrings."+r,ne(i,s,Vp(t.Strings,t)),a.strs.push(s),oe(t.wbrels,-1,"sharedStrings."+r,te.SST)),s="xl/workbook."+r,ne(i,s,Mg(e)),a.workbooks.push(s),oe(t.rels,1,s,te.WB),s="xl/theme/theme1.xml",ne(i,s,ag(e.Themes,t)),a.themes.push(s),oe(t.wbrels,-1,"theme/theme1.xml",te.THEME),s="xl/styles."+r,ne(i,s,ng(e,t)),a.styles.push(s),oe(t.wbrels,-1,"styles."+r,te.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",ne(i,s,e.vbaraw),a.vba.push(s),oe(t.wbrels,-1,"vbaProject.bin",te.VBA)),s="xl/metadata."+r,ne(i,s,ig()),a.metadata.push(s),oe(t.wbrels,-1,"metadata."+r,te.XLMETA),m.length>1&&(s="xl/persons/person.xml",ne(i,s,lg(m)),a.people.push(s),oe(t.wbrels,-1,"persons/person.xml",te.PEOPLE)),ne(i,"[Content_Types].xml",Bp(a,t)),ne(i,"_rels/.rels",Qr(t.rels)),ne(i,"xl/_rels/workbook."+r+".rels",Qr(t.wbrels)),delete t.revssf,delete t.ssf,i}function Hg(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return ls(t.file,ve.write(e,{type:Q?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return ve.write(e,t)}function Wg(e,t){var r=Bt(t||{}),n=Ug(e,r);return zg(n,r)}function zg(e,t){var r={},n=Q?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=n;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+t.type)}var a=e.FullPaths?ve.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if(typeof Deno<"u"&&typeof a=="string"){if(t.type=="binary"||t.type=="base64")return a;a=new Uint8Array(Ar(a))}return t.password&&typeof encrypt_agile<"u"?Hg(encrypt_agile(a,t.password),t):t.type==="file"?ls(t.file,a):t.type=="string"?xp(a):a}function Is(e,t){kg(e);var r=Bt(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=Is(e,r);return r.type="array",Ar(n)}return Wg(e,r)}function Gg(e){if(!e.bookType){var t={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},r=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();r.match(/^\.[a-z]+$/)&&(e.bookType=r.slice(1)),e.bookType=t[e.bookType]||e.bookType}}function Xg(e,t,r){var n=r||{};return n.type="file",n.file=t,Gg(n),Is(e,n)}function Vg(e,t,r,n,a,i,s,o){var l=tt(r),c=o.defval,m=o.raw||!Object.prototype.hasOwnProperty.call(o,"raw"),S=!0,b=a===1?[]:{};if(a!==1)if(Object.defineProperty)try{Object.defineProperty(b,"__rowNum__",{value:r,enumerable:!1})}catch{b.__rowNum__=r}else b.__rowNum__=r;if(!s||e[r])for(var v=t.s.c;v<=t.e.c;++v){var A=s?e[r][v]:e[n[v]+l];if(A===void 0||A.t===void 0){if(c===void 0)continue;i[v]!=null&&(b[i[v]]=c);continue}var C=A.v;switch(A.t){case"z":if(C==null)break;continue;case"e":C=C==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+A.t)}if(i[v]!=null){if(C==null)if(A.t=="e"&&C===null)b[i[v]]=null;else if(c!==void 0)b[i[v]]=c;else if(m&&C===null)b[i[v]]=null;else continue;else b[i[v]]=m&&(A.t!=="n"||A.t==="n"&&o.rawNumbers!==!1)?C:Ht(A,C,o);C!=null&&(S=!1)}}return{row:b,isempty:S}}function ei(e,t){if(e==null||e["!ref"]==null)return[];var r={t:"n",v:0},n=0,a=1,i=[],s=0,o="",l={s:{r:0,c:0},e:{r:0,c:0}},c=t||{},m=c.range!=null?c.range:e["!ref"];switch(c.header===1?n=1:c.header==="A"?n=2:Array.isArray(c.header)?n=3:c.header==null&&(n=0),typeof m){case"string":l=Ee(m);break;case"number":l=Ee(e["!ref"]),l.s.r=m;break;default:l=m}n>0&&(a=0);var S=tt(l.s.r),b=[],v=[],A=0,C=0,k=Array.isArray(e),N=l.s.r,L=0,W={};k&&!e[N]&&(e[N]=[]);var j=c.skipHidden&&e["!cols"]||[],V=c.skipHidden&&e["!rows"]||[];for(L=l.s.c;L<=l.e.c;++L)if(!(j[L]||{}).hidden)switch(b[L]=mt(L),r=k?e[N][L]:e[b[L]+S],n){case 1:i[L]=L-l.s.c;break;case 2:i[L]=b[L];break;case 3:i[L]=c.header[L-l.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),o=s=Ht(r,null,c),C=W[s]||0,!C)W[s]=1;else{do o=s+"_"+C++;while(W[o]);W[s]=C,W[o]=1}i[L]=o}for(N=l.s.r+a;N<=l.e.r;++N)if(!(V[N]||{}).hidden){var U=Vg(e,l,N,b,n,i,k,c);(U.isempty===!1||(n===1?c.blankrows!==!1:c.blankrows))&&(v[A++]=U.row)}return v.length=A,v}var ti=/"/g;function Kg(e,t,r,n,a,i,s,o){for(var l=!0,c=[],m="",S=tt(r),b=t.s.c;b<=t.e.c;++b)if(n[b]){var v=o.dense?(e[r]||[])[b]:e[n[b]+S];if(v==null)m="";else if(v.v!=null){l=!1,m=""+(o.rawNumbers&&v.t=="n"?v.v:Ht(v,null,o));for(var A=0,C=0;A!==m.length;++A)if((C=m.charCodeAt(A))===a||C===i||C===34||o.forceQuotes){m='"'+m.replace(ti,'""')+'"';break}m=="ID"&&(m='"ID"')}else v.f!=null&&!v.F?(l=!1,m="="+v.f,m.indexOf(",")>=0&&(m='"'+m.replace(ti,'""')+'"')):m="";c.push(m)}return o.blankrows===!1&&l?null:c.join(s)}function Ns(e,t){var r=[],n=t??{};if(e==null||e["!ref"]==null)return"";var a=Ee(e["!ref"]),i=n.FS!==void 0?n.FS:",",s=i.charCodeAt(0),o=n.RS!==void 0?n.RS:` `,l=o.charCodeAt(0),c=new RegExp((i=="|"?"\\|":i)+"+$"),m="",S=[];n.dense=Array.isArray(e);for(var b=n.skipHidden&&e["!cols"]||[],v=n.skipHidden&&e["!rows"]||[],A=a.s.c;A<=a.e.c;++A)(b[A]||{}).hidden||(S[A]=mt(A));for(var C=0,k=a.s.r;k<=a.e.r;++k)(v[k]||{}).hidden||(m=Kg(e,a,k,S,s,l,i,n),m!=null&&(n.strip&&(m=m.replace(c,"")),(m||n.blankrows!==!1)&&r.push((C++?o:"")+m)));return delete n.dense,r.join("")}function Yg(e,t){t||(t={}),t.FS=" ",t.RS=` `;var r=Ns(e,t);return r}function qg(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var a=Ee(e["!ref"]),i="",s=[],o,l=[],c=Array.isArray(e);for(o=a.s.c;o<=a.e.c;++o)s[o]=mt(o);for(var m=a.s.r;m<=a.e.r;++m)for(i=tt(m),o=a.s.c;o<=a.e.c;++o)if(t=s[o]+i,r=c?(e[m]||[])[o]:e[t],n="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;n=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}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}}l[l.length]=t+"="+n}return l}function Rs(e,t,r){var n=r||{},a=+!n.skipHeader,i=e||{},s=0,o=0;if(i&&n.origin!=null)if(typeof n.origin=="number")s=n.origin;else{var l=typeof n.origin=="string"?Ce(n.origin):n.origin;s=l.r,o=l.c}var c,m={s:{c:0,r:0},e:{c:o,r:s+t.length-1+a}};if(i["!ref"]){var S=Ee(i["!ref"]);m.e.c=Math.max(m.e.c,S.e.c),m.e.r=Math.max(m.e.r,S.e.r),s==-1&&(s=S.e.r+1,m.e.r=s+t.length-1+a)}else s==-1&&(s=0,m.e.r=t.length-1+a);var b=n.header||[],v=0;t.forEach(function(C,k){We(C).forEach(function(N){(v=b.indexOf(N))==-1&&(b[v=b.length]=N);var L=C[N],W="z",j="",V=Ie({c:o+v,r:s+k+a});c=It(i,V),L&&typeof L=="object"&&!(L instanceof Date)?i[V]=L:(typeof L=="number"?W="n":typeof L=="boolean"?W="b":typeof L=="string"?W="s":L instanceof Date?(W="d",n.cellDates||(W="n",L=Ye(L)),j=n.dateNF||we[14]):L===null&&n.nullError&&(W="e",L=0),c?(c.t=W,c.v=L,delete c.w,delete c.R,j&&(c.z=j)):i[V]=c={t:W,v:L},j&&(c.z=j))})}),m.e.c=Math.max(m.e.c,o+b.length-1);var A=tt(s);if(a)for(v=0;v=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function Qg(){return{SheetNames:[],Sheets:{}}}function em(e,t,r,n){var a=1;if(!r)for(;a<=65535&&e.SheetNames.indexOf(r="Sheet"+a)!=-1;++a,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var i=r.match(/(^.*?)(\d+)$/);a=i&&+i[2]||0;var s=i&&i[1]||r;for(++a;a<=65535&&e.SheetNames.indexOf(r=s+a)!=-1;++a);}if(Ds(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function tm(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=Zg(e,t);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 rm(e,t){return e.z=t,e}function Ls(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function nm(e,t,r){return Ls(e,"#"+t,r)}function am(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function im(e,t,r,n){for(var a=typeof t!="string"?t:Ee(t),i=typeof t=="string"?t:be(t),s=a.s.r;s<=a.e.r;++s)for(var o=a.s.c;o<=a.e.c;++o){var l=It(e,s,o);l.t="n",l.F=i,delete l.v,s==a.s.r&&o==a.s.c&&(l.f=r,n&&(l.D=!0))}return e}var Ct={encode_col:mt,encode_row:tt,encode_cell:Ie,encode_range:be,decode_col:$p,decode_row:Mp,split_cell:Ip,decode_cell:Ce,decode_range:Pt,format_cell:Ht,sheet_add_aoa:Es,sheet_add_json:Rs,sheet_add_dom:$s,aoa_to_sheet:Rp,json_to_sheet:Jg,table_to_sheet:Ps,table_to_book:Rg,sheet_to_csv:Ns,sheet_to_txt:Yg,sheet_to_json:ei,sheet_to_html:Ng,sheet_to_formulae:qg,sheet_to_row_object_array:ei,sheet_get_cell:It,book_new:Qg,book_append_sheet:em,book_set_sheet_visibility:tm,cell_set_number_format:rm,cell_set_hyperlink:Ls,cell_set_internal_link:nm,cell_add_comment:am,sheet_set_array_formula:im,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const sm=e=>e.reduce((r,n)=>(r[n.key]=n.title,r),{}),om=(e,t,r)=>{for(let n=e.s.c;n<=e.e.c;n++){const a=Ct.encode_col(n)+"1";t[a].v=r[t[a].v]}},I1=async(e,t,r={})=>{await new Promise((n,a)=>{if(Array.isArray(e))if(e.length){const i=sm(t??[]),s=Ct.json_to_sheet(e),o=Ct.book_new(),l=r.filename?r.filename+".xlsx":jo().format("YYYY-MM-DD")+"导出表格.xlsx";Ct.book_append_sheet(o,s,"Data");const c=Ct.decode_range(s["!ref"]);t!=null&&t.length&&om(c,s,i),Xg(o,l),n()}else n();else a()})};export{$m as $,e1 as A,t1 as B,Qm as C,Bm as D,Jm as E,Ym as F,Vm as G,qm as H,Wm as I,Km as J,hi as K,Gm as L,Hm as M,Um as N,jm as O,zm as P,_d as Q,a1 as R,vd as S,r1 as T,Mm as U,n1 as V,Tm as W,Om as X,km as Y,Em as Z,Dm as _,rl as a,i1 as a0,yd as a1,s1 as a2,o1 as a3,f1 as a4,l1 as a5,p1 as a6,u1 as a7,c1 as a8,h1 as a9,D1 as aA,$1 as aB,I1 as aC,d1 as aa,g1 as ab,Sd as ac,_m as ad,S1 as ae,F1 as af,m1 as ag,T1 as ah,qi as ai,w1 as aj,b1 as ak,q0 as al,O1 as am,x1 as an,A1 as ao,gm as ap,_1 as aq,C1 as ar,pm as as,y1 as at,E1 as au,Hi as av,Md as aw,P1 as ax,k1 as ay,M1 as az,cm as b,um as c,al as d,mm as e,nl as f,v1 as g,Am as h,Fm as i,Nm as j,pd as k,Sm as l,dm as m,Im as n,Cm as o,Rm as p,Pm as q,xm as r,vm as s,bm as t,hm as u,ym as v,wm as w,Lm as x,Xm as y,Zm as z};