131 lines
343 KiB
JavaScript
131 lines
343 KiB
JavaScript
(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function t(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=t(i);fetch(i.href,a)}})();const vl={context:void 0,registry:void 0},ml=(e,r)=>e===r,bn=Symbol("solid-proxy"),gl=Symbol("solid-track"),_l=Symbol("solid-dev-component"),Bn={equals:ml};let R0=W0;const ar=1,Un=2,L0={owned:null,cleanups:null,context:null,owner:null};var Oe=null;let yi=null,Ce=null,tt=null,Ht=null,ni=0;function Pr(e,r){const t=Ce,n=Oe,i=e.length===0,a=i?L0:{owned:null,cleanups:null,context:null,owner:r===void 0?n:r},s=i?e:()=>e(()=>lt(()=>ii(a)));Oe=a,Ce=null;try{return fr(s,!0)}finally{Ce=t,Oe=n}}function ye(e,r){r=r?Object.assign({},Bn,r):Bn;const t={value:e,observers:null,observerSlots:null,comparator:r.equals||void 0},n=i=>(typeof i=="function"&&(i=i(t.value)),$0(t,i));return[U0.bind(t),n]}function Dt(e,r,t){const n=Ki(e,r,!1,ar);mn(n)}function sr(e,r,t){R0=Al;const n=Ki(e,r,!1,ar);(!t||!t.render)&&(n.user=!0),Ht?Ht.push(n):mn(n)}function De(e,r,t){t=t?Object.assign({},Bn,t):Bn;const n=Ki(e,r,!0,0);return n.observers=null,n.observerSlots=null,n.comparator=t.equals||void 0,mn(n),U0.bind(n)}function El(e){return fr(e,!1)}function lt(e){if(Ce===null)return e();const r=Ce;Ce=null;try{return e()}finally{Ce=r}}function P0(e,r,t){const n=Array.isArray(e);let i,a=t&&t.defer;return s=>{let f;if(n){f=Array(e.length);for(let o=0;o<e.length;o++)f[o]=e[o]()}else f=e();if(a){a=!1;return}const l=lt(()=>r(f,i,s));return i=f,l}}function M0(e){sr(()=>lt(e))}function zt(e){return Oe===null||(Oe.cleanups===null?Oe.cleanups=[e]:Oe.cleanups.push(e)),e}function b0(){return Oe}function B0(e,r){const t=Oe,n=Ce;Oe=e,Ce=null;try{return fr(r,!0)}catch(i){Yi(i)}finally{Oe=t,Ce=n}}function Tl(e){const r=Ce,t=Oe;return Promise.resolve().then(()=>{Ce=r,Oe=t;let n;return fr(e,!1),Ce=Oe=null,n?n.done:void 0})}function Vr(e,r){const t=Symbol("context");return{id:t,Provider:Fl(t),defaultValue:e}}function Tr(e){let r;return(r=V0(Oe,e.id))!==void 0?r:e.defaultValue}function ji(e){const r=De(e),t=De(()=>Bi(r()));return t.toArray=()=>{const n=t();return Array.isArray(n)?n:n!=null?[n]:[]},t}function U0(){if(this.sources&&this.state)if(this.state===ar)mn(this);else{const e=tt;tt=null,fr(()=>Wn(this),!1),tt=e}if(Ce){const e=this.observers?this.observers.length:0;Ce.sources?(Ce.sources.push(this),Ce.sourceSlots.push(e)):(Ce.sources=[this],Ce.sourceSlots=[e]),this.observers?(this.observers.push(Ce),this.observerSlots.push(Ce.sources.length-1)):(this.observers=[Ce],this.observerSlots=[Ce.sources.length-1])}return this.value}function $0(e,r,t){let n=e.value;return(!e.comparator||!e.comparator(n,r))&&(e.value=r,e.observers&&e.observers.length&&fr(()=>{for(let i=0;i<e.observers.length;i+=1){const a=e.observers[i],s=yi&&yi.running;s&&yi.disposed.has(a),(s?!a.tState:!a.state)&&(a.pure?tt.push(a):Ht.push(a),a.observers&&H0(a)),s||(a.state=ar)}if(tt.length>1e6)throw tt=[],new Error},!1)),r}function mn(e){if(!e.fn)return;ii(e);const r=Oe,t=Ce,n=ni;Ce=Oe=e,wl(e,e.value,n),Ce=t,Oe=r}function wl(e,r,t){let n;try{n=e.fn(r)}catch(i){return e.pure&&(e.state=ar,e.owned&&e.owned.forEach(ii),e.owned=null),e.updatedAt=t+1,Yi(i)}(!e.updatedAt||e.updatedAt<=t)&&(e.updatedAt!=null&&"observers"in e?$0(e,n):e.value=n,e.updatedAt=t)}function Ki(e,r,t,n=ar,i){const a={fn:e,state:n,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:r,owner:Oe,context:null,pure:t};return Oe===null||Oe!==L0&&(Oe.owned?Oe.owned.push(a):Oe.owned=[a]),a}function $n(e){if(e.state===0)return;if(e.state===Un)return Wn(e);if(e.suspense&<(e.suspense.inFallback))return e.suspense.effects.push(e);const r=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<ni);)e.state&&r.push(e);for(let t=r.length-1;t>=0;t--)if(e=r[t],e.state===ar)mn(e);else if(e.state===Un){const n=tt;tt=null,fr(()=>Wn(e,r[0]),!1),tt=n}}function fr(e,r){if(tt)return e();let t=!1;r||(tt=[]),Ht?t=!0:Ht=[],ni++;try{const n=e();return Sl(t),n}catch(n){t||(Ht=null),tt=null,Yi(n)}}function Sl(e){if(tt&&(W0(tt),tt=null),e)return;const r=Ht;Ht=null,r.length&&fr(()=>R0(r),!1)}function W0(e){for(let r=0;r<e.length;r++)$n(e[r])}function Al(e){let r,t=0;for(r=0;r<e.length;r++){const n=e[r];n.user?e[t++]=n:$n(n)}for(r=0;r<t;r++)$n(e[r])}function Wn(e,r){e.state=0;for(let t=0;t<e.sources.length;t+=1){const n=e.sources[t];if(n.sources){const i=n.state;i===ar?n!==r&&(!n.updatedAt||n.updatedAt<ni)&&$n(n):i===Un&&Wn(n,r)}}}function H0(e){for(let r=0;r<e.observers.length;r+=1){const t=e.observers[r];t.state||(t.state=Un,t.pure?tt.push(t):Ht.push(t),t.observers&&H0(t))}}function ii(e){let r;if(e.sources)for(;e.sources.length;){const t=e.sources.pop(),n=e.sourceSlots.pop(),i=t.observers;if(i&&i.length){const a=i.pop(),s=t.observerSlots.pop();n<i.length&&(a.sourceSlots[s]=n,i[n]=a,t.observerSlots[n]=s)}}if(e.owned){for(r=e.owned.length-1;r>=0;r--)ii(e.owned[r]);e.owned=null}if(e.cleanups){for(r=e.cleanups.length-1;r>=0;r--)e.cleanups[r]();e.cleanups=null}e.state=0,e.context=null}function yl(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Yi(e,r=Oe){throw yl(e)}function V0(e,r){return e?e.context&&e.context[r]!==void 0?e.context[r]:V0(e.owner,r):void 0}function Bi(e){if(typeof e=="function"&&!e.length)return Bi(e());if(Array.isArray(e)){const r=[];for(let t=0;t<e.length;t++){const n=Bi(e[t]);Array.isArray(n)?r.push.apply(r,n):r.push(n)}return r}return e}function Fl(e,r){return function(n){let i;return Dt(()=>i=lt(()=>(Oe.context={[e]:n.value},ji(()=>n.children))),void 0),i}}const Cl=Symbol("fallback");function Pa(e){for(let r=0;r<e.length;r++)e[r]()}function Ol(e,r,t={}){let n=[],i=[],a=[],s=0,f=r.length>1?[]:null;return zt(()=>Pa(a)),()=>{let l=e()||[],o,c;return l[gl],lt(()=>{let u=l.length,x,v,d,m,y,A,F,I,z;if(u===0)s!==0&&(Pa(a),a=[],n=[],i=[],s=0,f&&(f=[])),t.fallback&&(n=[Cl],i[0]=Pr(ee=>(a[0]=ee,t.fallback())),s=1);else if(s===0){for(i=new Array(u),c=0;c<u;c++)n[c]=l[c],i[c]=Pr(h);s=u}else{for(d=new Array(u),m=new Array(u),f&&(y=new Array(u)),A=0,F=Math.min(s,u);A<F&&n[A]===l[A];A++);for(F=s-1,I=u-1;F>=A&&I>=A&&n[F]===l[I];F--,I--)d[I]=i[F],m[I]=a[F],f&&(y[I]=f[F]);for(x=new Map,v=new Array(I+1),c=I;c>=A;c--)z=l[c],o=x.get(z),v[c]=o===void 0?-1:o,x.set(z,c);for(o=A;o<=F;o++)z=n[o],c=x.get(z),c!==void 0&&c!==-1?(d[c]=i[o],m[c]=a[o],f&&(y[c]=f[o]),c=v[c],x.set(z,c)):a[o]();for(c=A;c<u;c++)c in d?(i[c]=d[c],a[c]=m[c],f&&(f[c]=y[c],f[c](c))):i[c]=Pr(h);i=i.slice(0,s=u),n=l.slice(0)}return i});function h(u){if(a[c]=u,f){const[x,v]=ye(c);return f[c]=v,r(l[c],x)}return r(l[c])}}}let Dl=!1;function H(e,r){return lt(()=>e(r||{}))}function Fn(){return!0}const Ui={get(e,r,t){return r===bn?t:e.get(r)},has(e,r){return r===bn?!0:e.has(r)},set:Fn,deleteProperty:Fn,getOwnPropertyDescriptor(e,r){return{configurable:!0,enumerable:!0,get(){return e.get(r)},set:Fn,deleteProperty:Fn}},ownKeys(e){return e.keys()}};function Fi(e){return(e=typeof e=="function"?e():e)?e:{}}function Il(){for(let e=0,r=this.length;e<r;++e){const t=this[e]();if(t!==void 0)return t}}function dt(...e){let r=!1;for(let a=0;a<e.length;a++){const s=e[a];r=r||!!s&&bn in s,e[a]=typeof s=="function"?(r=!0,De(s)):s}if(r)return new Proxy({get(a){for(let s=e.length-1;s>=0;s--){const f=Fi(e[s])[a];if(f!==void 0)return f}},has(a){for(let s=e.length-1;s>=0;s--)if(a in Fi(e[s]))return!0;return!1},keys(){const a=[];for(let s=0;s<e.length;s++)a.push(...Object.keys(Fi(e[s])));return[...new Set(a)]}},Ui);const t={},n={},i=new Set;for(let a=e.length-1;a>=0;a--){const s=e[a];if(!s)continue;const f=Object.getOwnPropertyNames(s);for(let l=0,o=f.length;l<o;l++){const c=f[l];if(c==="__proto__"||c==="constructor")continue;const h=Object.getOwnPropertyDescriptor(s,c);if(!i.has(c))h.get?(i.add(c),Object.defineProperty(t,c,{enumerable:!0,configurable:!0,get:Il.bind(n[c]=[h.get.bind(s)])})):(h.value!==void 0&&i.add(c),t[c]=h.value);else{const u=n[c];u?h.get?u.push(h.get.bind(s)):h.value!==void 0&&u.push(()=>h.value):t[c]===void 0&&(t[c]=h.value)}}}return t}function Ji(e,...r){if(bn in e){const i=new Set(r.length>1?r.flat():r[0]),a=r.map(s=>new Proxy({get(f){return s.includes(f)?e[f]:void 0},has(f){return s.includes(f)&&f in e},keys(){return s.filter(f=>f in e)}},Ui));return a.push(new Proxy({get(s){return i.has(s)?void 0:e[s]},has(s){return i.has(s)?!1:s in e},keys(){return Object.keys(e).filter(s=>!i.has(s))}},Ui)),a}const t={},n=r.map(()=>({}));for(const i of Object.getOwnPropertyNames(e)){const a=Object.getOwnPropertyDescriptor(e,i),s=!a.get&&!a.set&&a.enumerable&&a.writable&&a.configurable;let f=!1,l=0;for(const o of r)o.includes(i)&&(f=!0,s?n[l][i]=a.value:Object.defineProperty(n[l],i,a)),++l;f||(s?t[i]=a.value:Object.defineProperty(t,i,a))}return[...n,t]}let kl=0;function ot(){return`cl-${kl++}`}const Nl=e=>`Stale read from <${e}>.`;function tr(e){const r="fallback"in e&&{fallback:()=>e.fallback};return De(Ol(()=>e.each,e.children,r||void 0))}function Ye(e){const r=e.keyed,t=De(()=>e.when,void 0,{equals:(n,i)=>r?n===i:!n==!i});return De(()=>{const n=t();if(n){const i=e.children;return typeof i=="function"&&i.length>0?lt(()=>i(r?n:()=>{if(!lt(t))throw Nl("Show");return e.when})):i}return e.fallback},void 0,void 0)}const Rl=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],Ll=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Rl]),Pl=new Set(["innerHTML","textContent","innerText","children"]),Ml=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),bl=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});function Bl(e,r){const t=bl[e];return typeof t=="object"?t[r]?t.$:void 0:t}const Ul=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),$l=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),Wl={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function Hl(e,r,t){let n=t.length,i=r.length,a=n,s=0,f=0,l=r[i-1].nextSibling,o=null;for(;s<i||f<a;){if(r[s]===t[f]){s++,f++;continue}for(;r[i-1]===t[a-1];)i--,a--;if(i===s){const c=a<n?f?t[f-1].nextSibling:t[a-f]:l;for(;f<a;)e.insertBefore(t[f++],c)}else if(a===f)for(;s<i;)(!o||!o.has(r[s]))&&r[s].remove(),s++;else if(r[s]===t[a-1]&&t[f]===r[i-1]){const c=r[--i].nextSibling;e.insertBefore(t[f++],r[s++].nextSibling),e.insertBefore(t[--a],c),r[i]=t[a]}else{if(!o){o=new Map;let h=f;for(;h<a;)o.set(t[h],h++)}const c=o.get(r[s]);if(c!=null)if(f<c&&c<a){let h=s,u=1,x;for(;++h<i&&h<a&&!((x=o.get(r[h]))==null||x!==c+u);)u++;if(u>c-f){const v=r[s];for(;f<c;)e.insertBefore(t[f++],v)}else e.replaceChild(t[f++],r[s++])}else s++;else r[s++].remove()}}}const Ma="_$DX_DELEGATE";function Vl(e,r,t,n={}){let i;return Pr(a=>{i=a,r===document?e():ie(r,e(),r.firstChild?null:void 0,t)},n.owner),()=>{i(),r.textContent=""}}function fe(e,r,t){let n;const i=()=>{const s=document.createElement("template");return s.innerHTML=e,t?s.content.firstChild.firstChild:s.content.firstChild},a=r?()=>lt(()=>document.importNode(n||(n=i()),!0)):()=>(n||(n=i())).cloneNode(!0);return a.cloneNode=a,a}function Gr(e,r=window.document){const t=r[Ma]||(r[Ma]=new Set);for(let n=0,i=e.length;n<i;n++){const a=e[n];t.has(a)||(t.add(a),r.addEventListener(a,Yl))}}function Re(e,r,t){t==null?e.removeAttribute(r):e.setAttribute(r,t)}function Gl(e,r,t,n){n==null?e.removeAttributeNS(r,t):e.setAttributeNS(r,t,n)}function be(e,r){r==null?e.removeAttribute("class"):e.className=r}function qi(e,r,t,n){if(n)Array.isArray(t)?(e[`$$${r}`]=t[0],e[`$$${r}Data`]=t[1]):e[`$$${r}`]=t;else if(Array.isArray(t)){const i=t[0];e.addEventListener(r,t[0]=a=>i.call(e,t[1],a))}else e.addEventListener(r,t)}function Xl(e,r,t={}){const n=Object.keys(r||{}),i=Object.keys(t);let a,s;for(a=0,s=i.length;a<s;a++){const f=i[a];!f||f==="undefined"||r[f]||(ba(e,f,!1),delete t[f])}for(a=0,s=n.length;a<s;a++){const f=n[a],l=!!r[f];!f||f==="undefined"||t[f]===l||!l||(ba(e,f,!0),t[f]=l)}return t}function G0(e,r,t){if(!r)return t?Re(e,"style"):r;const n=e.style;if(typeof r=="string")return n.cssText=r;typeof t=="string"&&(n.cssText=t=void 0),t||(t={}),r||(r={});let i,a;for(a in t)r[a]==null&&n.removeProperty(a),delete t[a];for(a in r)i=r[a],i!==t[a]&&(n.setProperty(a,i),t[a]=i);return t}function X0(e,r={},t,n){const i={};return n||Dt(()=>i.children=$r(e,r.children,i.children)),Dt(()=>r.ref&&r.ref(e)),Dt(()=>jl(e,r,t,!0,i,!0)),i}function zl(e,r,t){return lt(()=>e(r,t))}function ie(e,r,t,n){if(t!==void 0&&!n&&(n=[]),typeof r!="function")return $r(e,r,n,t);Dt(i=>$r(e,r(),i,t),n)}function jl(e,r,t,n,i={},a=!1){r||(r={});for(const s in i)if(!(s in r)){if(s==="children")continue;i[s]=Ba(e,s,null,i[s],t,a)}for(const s in r){if(s==="children"){n||$r(e,r.children);continue}const f=r[s];i[s]=Ba(e,s,f,i[s],t,a)}}function Kl(e){return e.toLowerCase().replace(/-([a-z])/g,(r,t)=>t.toUpperCase())}function ba(e,r,t){const n=r.trim().split(/\s+/);for(let i=0,a=n.length;i<a;i++)e.classList.toggle(n[i],t)}function Ba(e,r,t,n,i,a){let s,f,l,o,c;if(r==="style")return G0(e,t,n);if(r==="classList")return Xl(e,t,n);if(t===n)return n;if(r==="ref")a||t(e);else if(r.slice(0,3)==="on:"){const h=r.slice(3);n&&e.removeEventListener(h,n),t&&e.addEventListener(h,t)}else if(r.slice(0,10)==="oncapture:"){const h=r.slice(10);n&&e.removeEventListener(h,n,!0),t&&e.addEventListener(h,t,!0)}else if(r.slice(0,2)==="on"){const h=r.slice(2).toLowerCase(),u=Ul.has(h);if(!u&&n){const x=Array.isArray(n)?n[0]:n;e.removeEventListener(h,x)}(u||t)&&(qi(e,h,t,u),u&&Gr([h]))}else if(r.slice(0,5)==="attr:")Re(e,r.slice(5),t);else if((c=r.slice(0,5)==="prop:")||(l=Pl.has(r))||!i&&((o=Bl(r,e.tagName))||(f=Ll.has(r)))||(s=e.nodeName.includes("-")))c&&(r=r.slice(5),f=!0),r==="class"||r==="className"?be(e,t):s&&!f&&!l?e[Kl(r)]=t:e[o||r]=t;else{const h=i&&r.indexOf(":")>-1&&Wl[r.split(":")[0]];h?Gl(e,h,r,t):Re(e,Ml[r]||r,t)}return t}function Yl(e){const r=`$$${e.type}`;let t=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==t&&Object.defineProperty(e,"target",{configurable:!0,value:t}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}});t;){const n=t[r];if(n&&!t.disabled){const i=t[`${r}Data`];if(i!==void 0?n.call(t,i,e):n.call(t,e),e.cancelBubble)return}t=t._$host||t.parentNode||t.host}}function $r(e,r,t,n,i){for(;typeof t=="function";)t=t();if(r===t)return t;const a=typeof r,s=n!==void 0;if(e=s&&t[0]&&t[0].parentNode||e,a==="string"||a==="number")if(a==="number"&&(r=r.toString()),s){let f=t[0];f&&f.nodeType===3?f.data=r:f=document.createTextNode(r),t=Dr(e,t,n,f)}else t!==""&&typeof t=="string"?t=e.firstChild.data=r:t=e.textContent=r;else if(r==null||a==="boolean")t=Dr(e,t,n);else{if(a==="function")return Dt(()=>{let f=r();for(;typeof f=="function";)f=f();t=$r(e,f,t,n)}),()=>t;if(Array.isArray(r)){const f=[],l=t&&Array.isArray(t);if($i(f,r,t,i))return Dt(()=>t=$r(e,f,t,n,!0)),()=>t;if(f.length===0){if(t=Dr(e,t,n),s)return t}else l?t.length===0?Ua(e,f,n):Hl(e,t,f):(t&&Dr(e),Ua(e,f));t=f}else if(r.nodeType){if(Array.isArray(t)){if(s)return t=Dr(e,t,n,r);Dr(e,t,null,r)}else t==null||t===""||!e.firstChild?e.appendChild(r):e.replaceChild(r,e.firstChild);t=r}else console.warn("Unrecognized value. Skipped inserting",r)}return t}function $i(e,r,t,n){let i=!1;for(let a=0,s=r.length;a<s;a++){let f=r[a],l=t&&t[a],o;if(!(f==null||f===!0||f===!1))if((o=typeof f)=="object"&&f.nodeType)e.push(f);else if(Array.isArray(f))i=$i(e,f,l)||i;else if(o==="function")if(n){for(;typeof f=="function";)f=f();i=$i(e,Array.isArray(f)?f:[f],Array.isArray(l)?l:[l])||i}else e.push(f),i=!0;else{const c=String(f);l&&l.nodeType===3&&l.data===c?e.push(l):e.push(document.createTextNode(c))}}return i}function Ua(e,r,t=null){for(let n=0,i=r.length;n<i;n++)e.insertBefore(r[n],t)}function Dr(e,r,t,n){if(t===void 0)return e.textContent="";const i=n||document.createTextNode("");if(r.length){let a=!1;for(let s=r.length-1;s>=0;s--){const f=r[s];if(i!==f){const l=f.parentNode===e;!a&&!s?l?e.replaceChild(i,f):e.insertBefore(i,t):l&&f.remove()}else a=!0}}else e.insertBefore(i,t);return[i]}const Jl=!1,ql="http://www.w3.org/2000/svg";function z0(e,r=!1){return r?document.createElementNS(ql,e):document.createElement(e)}function Zl(e){const{useShadow:r}=e,t=document.createTextNode(""),n=()=>e.mount||document.body,i=b0();let a,s=!!vl.context;return sr(()=>{a||(a=B0(i,()=>De(()=>e.children)));const f=n();if(f instanceof HTMLHeadElement){const[l,o]=ye(!1),c=()=>o(!0);Pr(h=>ie(f,()=>l()?h():a(),null)),zt(c)}else{const l=z0(e.isSVG?"g":"div",e.isSVG),o=r&&l.attachShadow?l.attachShadow({mode:"open"}):l;Object.defineProperty(l,"_$host",{get(){return t.parentNode},configurable:!0}),ie(o,a),f.appendChild(l),e.ref&&e.ref(l),zt(()=>f.removeChild(l))}},void 0,{render:!s}),t}function Ql(e){const[r,t]=Ji(e,["component"]),n=De(()=>r.component);return De(()=>{const i=n();switch(typeof i){case"function":return Object.assign(i,{[_l]:!0}),lt(()=>i(t));case"string":const a=$l.has(i),s=z0(i,a);return X0(s,t,a),s}})}function eo(e,r,t){return e.addEventListener(r,t),()=>e.removeEventListener(r,t)}function to([e,r],t,n){return[t?()=>t(e()):e,n?i=>r(n(i)):r]}function ro(e){try{return document.querySelector(e)}catch{return null}}function no(e,r){const t=ro(`#${e}`);t?t.scrollIntoView():r&&window.scrollTo(0,0)}function io(e,r,t,n){let i=!1;const a=f=>typeof f=="string"?{value:f}:f,s=to(ye(a(e()),{equals:(f,l)=>f.value===l.value}),void 0,f=>(!i&&r(f),f));return t&&zt(t((f=e())=>{i=!0,s[1](a(f)),i=!1})),{signal:s,utils:n}}function ao(e){if(e){if(Array.isArray(e))return{signal:e}}else return{signal:ye({value:""})};return e}function so(){return io(()=>({value:window.location.pathname+window.location.search+window.location.hash,state:history.state}),({value:e,replace:r,scroll:t,state:n})=>{r?window.history.replaceState(n,"",e):window.history.pushState(n,"",e),no(window.location.hash.slice(1),t)},e=>eo(window,"popstate",()=>e()),{go:e=>window.history.go(e)})}function fo(){let e=new Set;function r(i){return e.add(i),()=>e.delete(i)}let t=!1;function n(i,a){if(t)return!(t=!1);const s={to:i,options:a,defaultPrevented:!1,preventDefault:()=>s.defaultPrevented=!0};for(const f of e)f.listener({...s,from:f.location,retry:l=>{l&&(t=!0),f.navigate(i,a)}});return!s.defaultPrevented}return{subscribe:r,confirm:n}}const lo=/^(?:[a-z0-9]+:)?\/\//i,oo=/^\/+|(\/)\/+$/g;function tn(e,r=!1){const t=e.replace(oo,"$1");return t?r||/^[?#]/.test(t)?t:"/"+t:""}function Pn(e,r,t){if(lo.test(r))return;const n=tn(e),i=t&&tn(t);let a="";return!i||r.startsWith("/")?a=n:i.toLowerCase().indexOf(n.toLowerCase())!==0?a=n+i:a=i,(a||"/")+tn(r,!a)}function co(e,r){if(e==null)throw new Error(r);return e}function j0(e,r){return tn(e).replace(/\/*(\*.*)?$/g,"")+tn(r)}function uo(e){const r={};return e.searchParams.forEach((t,n)=>{r[n]=t}),r}function ho(e,r,t){const[n,i]=e.split("/*",2),a=n.split("/").filter(Boolean),s=a.length;return f=>{const l=f.split("/").filter(Boolean),o=l.length-s;if(o<0||o>0&&i===void 0&&!r)return null;const c={path:s?"":"/",params:{}},h=u=>t===void 0?void 0:t[u];for(let u=0;u<s;u++){const x=a[u],v=l[u],d=x[0]===":",m=d?x.slice(1):x;if(d&&Ci(v,h(m)))c.params[m]=v;else if(d||!Ci(v,x))return null;c.path+=`/${v}`}if(i){const u=o?l.slice(-o).join("/"):"";if(Ci(u,h(i)))c.params[i]=u;else return null}return c}}function Ci(e,r){const t=n=>n.localeCompare(e,void 0,{sensitivity:"base"})===0;return r===void 0?!0:typeof r=="string"?t(r):typeof r=="function"?r(e):Array.isArray(r)?r.some(t):r instanceof RegExp?r.test(e):!1}function xo(e){const[r,t]=e.pattern.split("/*",2),n=r.split("/").filter(Boolean);return n.reduce((i,a)=>i+(a.startsWith(":")?2:3),n.length-(t===void 0?0:1))}function K0(e){const r=new Map,t=b0();return new Proxy({},{get(n,i){return r.has(i)||B0(t,()=>r.set(i,De(()=>e()[i]))),r.get(i)()},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},ownKeys(){return Reflect.ownKeys(e())}})}function po(e,r){const t=new URLSearchParams(e);Object.entries(r).forEach(([i,a])=>{a==null||a===""?t.delete(i):t.set(i,String(a))});const n=t.toString();return n?`?${n}`:""}function Y0(e){let r=/(\/?\:[^\/]+)\?/.exec(e);if(!r)return[e];let t=e.slice(0,r.index),n=e.slice(r.index+r[0].length);const i=[t,t+=r[1]];for(;r=/^(\/\:[^\/]+)\?/.exec(n);)i.push(t+=r[1]),n=n.slice(r[0].length);return Y0(n).reduce((a,s)=>[...a,...i.map(f=>f+s)],[])}const vo=100,J0=Vr(),ai=Vr(),si=()=>co(Tr(J0),"Make sure your app is wrapped in a <Router />");let on;const q0=()=>on||Tr(ai)||si().base,mo=()=>si().navigatorFactory(),go=()=>si().location,_o=()=>{const e=go(),r=mo(),t=(n,i)=>{const a=lt(()=>po(e.search,n));r(e.pathname+a+e.hash,{scroll:!1,resolve:!1,...i})};return[e.query,t]};function Eo(e,r="",t){const{component:n,data:i,children:a}=e,s=!a||Array.isArray(a)&&!a.length,f={key:e,element:n?()=>H(n,{}):()=>{const{element:l}=e;return l===void 0&&t?H(t,{}):l},preload:e.component?n.preload:e.preload,data:i};return Z0(e.path).reduce((l,o)=>{for(const c of Y0(o)){const h=j0(r,c),u=s?h:h.split("/*",1)[0];l.push({...f,originalPath:c,pattern:u,matcher:ho(u,!s,e.matchFilters)})}return l},[])}function To(e,r=0){return{routes:e,score:xo(e[e.length-1])*1e4-r,matcher(t){const n=[];for(let i=e.length-1;i>=0;i--){const a=e[i],s=a.matcher(t);if(!s)return null;n.unshift({...s,route:a})}return n}}}function Z0(e){return Array.isArray(e)?e:[e]}function Q0(e,r="",t,n=[],i=[]){const a=Z0(e);for(let s=0,f=a.length;s<f;s++){const l=a[s];if(l&&typeof l=="object"&&l.hasOwnProperty("path")){const o=Eo(l,r,t);for(const c of o){n.push(c);const h=Array.isArray(l.children)&&l.children.length===0;if(l.children&&!h)Q0(l.children,c.pattern,t,n,i);else{const u=To([...n],i.length);i.push(u)}n.pop()}}}return n.length?i:i.sort((s,f)=>f.score-s.score)}function wo(e,r){for(let t=0,n=e.length;t<n;t++){const i=e[t].matcher(r);if(i)return i}return[]}function So(e,r){const t=new URL("http://sar"),n=De(l=>{const o=e();try{return new URL(o,t)}catch{return console.error(`Invalid path ${o}`),l}},t,{equals:(l,o)=>l.href===o.href}),i=De(()=>n().pathname),a=De(()=>n().search,!0),s=De(()=>n().hash),f=De(()=>"");return{get pathname(){return i()},get search(){return a()},get hash(){return s()},get state(){return r()},get key(){return f()},query:K0(P0(a,()=>uo(n())))}}function Ao(e,r="",t,n){const{signal:[i,a],utils:s={}}=ao(e),f=s.parsePath||(b=>b),l=s.renderPath||(b=>b),o=s.beforeLeave||fo(),c=Pn("",r),h=void 0;if(c===void 0)throw new Error(`${c} is not a valid base path`);c&&!i().value&&a({value:c,replace:!0,scroll:!1});const[u,x]=ye(!1),v=async b=>{x(!0);try{await Tl(b)}finally{x(!1)}},[d,m]=ye(i().value),[y,A]=ye(i().state),F=So(d,y),I=[],z={pattern:c,params:{},path:()=>c,outlet:()=>null,resolvePath(b){return Pn(c,b)}};if(t)try{on=z,z.data=t({data:void 0,params:{},location:F,navigate:D(z)})}finally{on=void 0}function ee(b,U,G){lt(()=>{if(typeof U=="number"){U&&(s.go?o.confirm(U,G)&&s.go(U):console.warn("Router integration does not support relative routing"));return}const{replace:K,resolve:ce,scroll:le,state:de}={replace:!1,resolve:!0,scroll:!0,...G},xe=ce?b.resolvePath(U):Pn("",U);if(xe===void 0)throw new Error(`Path '${U}' is not a routable path`);if(I.length>=vo)throw new Error("Too many redirects");const ze=d();if((xe!==ze||de!==y())&&!Jl){if(o.confirm(xe,G)){const Be=I.push({value:ze,replace:K,scroll:le,state:y()});v(()=>{m(xe),A(de)}).then(()=>{I.length===Be&&V({value:xe,state:de})})}}})}function D(b){return b=b||Tr(ai)||z,(U,G)=>ee(b,U,G)}function V(b){const U=I[0];U&&((b.value!==U.value||b.state!==U.state)&&a({...b,replace:U.replace,scroll:U.scroll}),I.length=0)}Dt(()=>{const{value:b,state:U}=i();lt(()=>{b!==d()&&v(()=>{m(b),A(U)})})});{let b=function(U){if(U.defaultPrevented||U.button!==0||U.metaKey||U.altKey||U.ctrlKey||U.shiftKey)return;const G=U.composedPath().find(ze=>ze instanceof Node&&ze.nodeName.toUpperCase()==="A");if(!G||!G.hasAttribute("link"))return;const K=G.href;if(G.target||!K&&!G.hasAttribute("state"))return;const ce=(G.getAttribute("rel")||"").split(/\s+/);if(G.hasAttribute("download")||ce&&ce.includes("external"))return;const le=new URL(K);if(le.origin!==window.location.origin||c&&le.pathname&&!le.pathname.toLowerCase().startsWith(c.toLowerCase()))return;const de=f(le.pathname+le.search+le.hash),xe=G.getAttribute("state");U.preventDefault(),ee(z,de,{resolve:!1,replace:G.hasAttribute("replace"),scroll:!G.hasAttribute("noscroll"),state:xe&&JSON.parse(xe)})};var P=b;Gr(["click"]),document.addEventListener("click",b),zt(()=>document.removeEventListener("click",b))}return{base:z,out:h,location:F,isRouting:u,renderPath:l,parsePath:f,navigatorFactory:D,beforeLeave:o}}function yo(e,r,t,n,i){const{base:a,location:s,navigatorFactory:f}=e,{pattern:l,element:o,preload:c,data:h}=n().route,u=De(()=>n().path);c&&c();const x={parent:r,pattern:l,get child(){return t()},path:u,params:i,data:r.data,outlet:o,resolvePath(v){return Pn(a.path(),v,u())}};if(h)try{on=x,x.data=h({data:r.data,params:i,location:s,navigate:f(x)})}finally{on=void 0}return x}const Fo=e=>{const{source:r,url:t,base:n,data:i,out:a}=e,s=r||so(),f=Ao(s,n,i);return H(J0.Provider,{value:f,get children(){return e.children}})},Co=e=>{const r=si(),t=q0(),n=ji(()=>e.children),i=De(()=>Q0(n(),j0(t.pattern,e.base||""),Oo)),a=De(()=>wo(i(),r.location.pathname)),s=K0(()=>{const c=a(),h={};for(let u=0;u<c.length;u++)Object.assign(h,c[u].params);return h});r.out&&r.out.matches.push(a().map(({route:c,path:h,params:u})=>({originalPath:c.originalPath,pattern:c.pattern,path:h,params:u})));const f=[];let l;const o=De(P0(a,(c,h,u)=>{let x=h&&c.length===h.length;const v=[];for(let d=0,m=c.length;d<m;d++){const y=h&&h[d],A=c[d];u&&y&&A.route.key===y.route.key?v[d]=u[d]:(x=!1,f[d]&&f[d](),Pr(F=>{f[d]=F,v[d]=yo(r,v[d-1]||t,()=>o()[d+1],()=>a()[d],s)}))}return f.splice(c.length).forEach(d=>d()),u&&x?u:(l=v[0],v)}));return H(Ye,{get when(){return o()&&l},keyed:!0,children:c=>H(ai.Provider,{value:c,get children(){return c.outlet()}})})},Oi=e=>{const r=ji(()=>e.children);return dt(e,{get children(){return r()}})},Oo=()=>{const e=q0();return H(Ye,{get when(){return e.child},keyed:!0,children:r=>H(ai.Provider,{value:r,get children(){return r.outlet()}})})};const Do=fe("<svg>"),Pt=e=>{const[r,t]=Ji(e,["path"]);return(()=>{const n=Do();return X0(n,dt({get viewBox(){return r.path.mini?"0 0 20 20":"0 0 24 24"},get fill(){return r.path.outline?"none":"currentColor"},get stroke(){return r.path.outline?"currentColor":"none"},get"stroke-width"(){return r.path.outline?1.5:void 0}},t),!0,!0),ie(n,()=>r.path.path),n})()},Io=fe('<svg><path fill-rule="evenodd" d="M12 2.25a.75.75 0 01.75.75v11.69l3.22-3.22a.75.75 0 111.06 1.06l-4.5 4.5a.75.75 0 01-1.06 0l-4.5-4.5a.75.75 0 111.06-1.06l3.22 3.22V3a.75.75 0 01.75-.75zm-9 13.5a.75.75 0 01.75.75v2.25a1.5 1.5 0 001.5 1.5h13.5a1.5 1.5 0 001.5-1.5V16.5a.75.75 0 011.5 0v2.25a3 3 0 01-3 3H5.25a3 3 0 01-3-3V16.5a.75.75 0 01.75-.75z" clip-rule="evenodd"></svg>',!1,!0),ko=fe('<svg><path fill-rule="evenodd" d="M4.755 10.059a7.5 7.5 0 0112.548-3.364l1.903 1.903h-3.183a.75.75 0 100 1.5h4.992a.75.75 0 00.75-.75V4.356a.75.75 0 00-1.5 0v3.18l-1.9-1.9A9 9 0 003.306 9.67a.75.75 0 101.45.388zm15.408 3.352a.75.75 0 00-.919.53 7.5 7.5 0 01-12.548 3.364l-1.902-1.903h3.183a.75.75 0 000-1.5H2.984a.75.75 0 00-.75.75v4.992a.75.75 0 001.5 0v-3.18l1.9 1.9a9 9 0 0015.059-4.035.75.75 0 00-.53-.918z" clip-rule="evenodd"></svg>',!1,!0),No=fe('<svg><path fill-rule="evenodd" d="M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z" clip-rule="evenodd"></svg>',!1,!0),Ro=fe('<svg><path fill-rule="evenodd" d="M7.72 12.53a.75.75 0 010-1.06l7.5-7.5a.75.75 0 111.06 1.06L9.31 12l6.97 6.97a.75.75 0 11-1.06 1.06l-7.5-7.5z" clip-rule="evenodd"></svg>',!1,!0),Lo=fe('<svg><path fill-rule="evenodd" d="M11.47 7.72a.75.75 0 011.06 0l7.5 7.5a.75.75 0 11-1.06 1.06L12 9.31l-6.97 6.97a.75.75 0 01-1.06-1.06l7.5-7.5z" clip-rule="evenodd"></svg>',!1,!0),Po=fe('<svg><path d="M3.53 2.47a.75.75 0 00-1.06 1.06l18 18a.75.75 0 101.06-1.06l-18-18zM22.676 12.553a11.249 11.249 0 01-2.631 4.31l-3.099-3.099a5.25 5.25 0 00-6.71-6.71L7.759 4.577a11.217 11.217 0 014.242-.827c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113z"></svg>',!1,!0),Mo=fe('<svg><path d="M15.75 12c0 .18-.013.357-.037.53l-4.244-4.243A3.75 3.75 0 0115.75 12zM12.53 15.713l-4.243-4.244a3.75 3.75 0 004.243 4.243z"></svg>',!1,!0),bo=fe('<svg><path d="M6.75 12c0-.619.107-1.213.304-1.764l-3.1-3.1a11.25 11.25 0 00-2.63 4.31c-.12.362-.12.752 0 1.114 1.489 4.467 5.704 7.69 10.675 7.69 1.5 0 2.933-.294 4.242-.827l-2.477-2.477A5.25 5.25 0 016.75 12z"></svg>',!1,!0),Bo=fe('<svg><path d="M12 15a3 3 0 100-6 3 3 0 000 6z"></svg>',!1,!0),Uo=fe('<svg><path fill-rule="evenodd" d="M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 010-1.113zM17.25 12a5.25 5.25 0 11-10.5 0 5.25 5.25 0 0110.5 0z" clip-rule="evenodd"></svg>',!1,!0),$o=fe('<svg><path fill-rule="evenodd" d="M3.792 2.938A49.069 49.069 0 0112 2.25c2.797 0 5.54.236 8.209.688a1.857 1.857 0 011.541 1.836v1.044a3 3 0 01-.879 2.121l-6.182 6.182a1.5 1.5 0 00-.439 1.061v2.927a3 3 0 01-1.658 2.684l-1.757.878A.75.75 0 019.75 21v-5.818a1.5 1.5 0 00-.44-1.06L3.13 7.938a3 3 0 01-.879-2.121V4.774c0-.897.64-1.683 1.542-1.836z" clip-rule="evenodd"></svg>',!1,!0),Wo=fe('<svg><path fill-rule="evenodd" d="M10.5 3.75a6.75 6.75 0 100 13.5 6.75 6.75 0 000-13.5zM2.25 10.5a8.25 8.25 0 1114.59 5.28l4.69 4.69a.75.75 0 11-1.06 1.06l-4.69-4.69A8.25 8.25 0 012.25 10.5z" clip-rule="evenodd"></svg>',!1,!0),Ho=fe('<svg><path fill-rule="evenodd" d="M5.47 5.47a.75.75 0 011.06 0L12 10.94l5.47-5.47a.75.75 0 111.06 1.06L13.06 12l5.47 5.47a.75.75 0 11-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 01-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 010-1.06z" clip-rule="evenodd"></svg>',!1,!0),Vo={path:()=>Io(),outline:!1,mini:!1},Go={path:()=>ko(),outline:!1,mini:!1},Xo={path:()=>No(),outline:!1,mini:!1},zo={path:()=>Ro(),outline:!1,mini:!1},jo={path:()=>Lo(),outline:!1,mini:!1},Ko={path:()=>[Po(),Mo(),bo()],outline:!1,mini:!1},Yo={path:()=>[Bo(),Uo()],outline:!1,mini:!1},Jo={path:()=>$o(),outline:!1,mini:!1},qo={path:()=>Wo(),outline:!1,mini:!1},Zo={path:()=>Ho(),outline:!1,mini:!1},Qo=fe("<a>"),Xr=({to:e,rel:r,children:t,className:n,id:i,newTab:a=!0,title:s})=>(()=>{const f=Qo();return Re(f,"href",e),Re(f,"id",i),Re(f,"title",s),Re(f,"rel",`${r} ${a?"noreferrer":void 0}`),Re(f,"target",a?"_blank":void 0),be(f,`link ${n}`),ie(f,t),f})(),ec=fe('<header><div class="flex-row-center mx-auto w-fit"><h1 class="text-center text-cyan-500"></h1></div><div class="mx-auto w-fit"><p>Av Martin Berg Alstad'),tc=({className:e,title:r="Title goes here"})=>(()=>{const t=ec(),n=t.firstChild,i=n.firstChild;return be(t,e),ie(n,H(Ye,{get when(){return typeof location<"u"&&location.pathname!=="/"},keyed:!0,get children(){return H(Xr,{to:"/",newTab:!1,title:"Back to homepage",get children(){return H(Pt,{path:zo,class:"text-cyan-500"})}})}}),i),ie(i,r),t})(),rc=fe("<footer><p>Kildekode på "),nc=({className:e})=>(()=>{const r=rc(),t=r.firstChild;return t.firstChild,be(r,`text-center py-5 absolute bottom-0 container ${e}`),ie(t,H(Xr,{to:"https://github.com/h600878/martials.no",children:"GitHub"}),null),r})(),ic=fe('<div><div class="container mx-auto"><main><div class="pb-28">'),Zi=({children:e,title:r,className:t})=>(()=>{const n=ic(),i=n.firstChild,a=i.firstChild,s=a.firstChild;return be(n,`bg-default-bg text-white min-h-screen relative font-mono ${t}`),ie(i,H(tc,{className:"py-3",title:r}),a),ie(s,e),ie(a,H(nc,{}),null),n})(),ac=fe(`<h3 class="text-center w-fit mx-auto before:content-['↗']">`),sc=fe('<div><div class="relative p-5">'),fc=({children:e,className:r,title:t,to:n,newTab:i=!1})=>(()=>{const a=sc(),s=a.firstChild;return be(a,`relative bg-gradient-to-r from-cyan-600 to-cyan-500 h-32 w-72 rounded-2xl ${r}`),ie(s,H(Xr,{className:"text-white",to:n,newTab:i,get children(){const f=ac();return ie(f,t),f}}),null),ie(s,e,null),a})(),lc=fe("<p>Sjekk ut mine API-er"),oc=fe("<ul><li>"),cc=fe("<p>Sjekk ut mine andre prosjekter"),uc=fe("<p>Implementering av API"),hc=fe('<div class="flex flex-wrap justify-center mt-10">'),$a="https://api.martials.no",dc=[{title:"API-er",children:[lc(),(()=>{const e=oc(),r=e.firstChild;return ie(r,H(Xr,{className:"text-white",to:`${$a}/simplify-truths`,children:"Forenkle sannhetsverdier"})),e})()],to:$a,newTab:!0},{title:"Hjemmeside",children:cc(),to:"https://h600878.github.io/",newTab:!0},{title:"Forenkle sannhetsverdier",children:uc(),to:"/simplify-truths"}],xc=()=>H(Zi,{title:"Velkommen!",get children(){const e=hc();return ie(e,H(tr,{each:dc,children:r=>H(fc,{get title(){return r.title},className:"m-4",get to(){return r.to},get newTab(){return r.newTab},get children(){return r.children}})})),e}}),pc=fe("<div>"),es=({children:e,className:r})=>(()=>{const t=pc();return be(t,`flex-row-center ${r}`),ie(t,e),t})();function Wr(e){return document.getElementById(e)}const vc=fe("<input>"),mc=fe('<label><div class="z-50 relative"></div><div class="w-full h-2 default-bg absolute bottom-1/3 z-10">'),gc=fe('<button class="absolute right-2" title="Clear" type="reset">');function _c(e,r){let t=!0;function n(a){t&&r(a)}const i=Wr(e);return i?.addEventListener("pointerenter",()=>n(!0)),i?.addEventListener("pointerleave",()=>n(!1)),()=>{i?.removeEventListener("pointerenter",()=>n(!0)),i?.removeEventListener("pointerleave",()=>n(!1)),t=!1}}function Ec(e,r,t){if(e){const n=Wr(e);n&&n.value!==""!==r&&t(n.value!=="")}}const ts=({className:e,id:r,name:t,type:n="text",title:i,placeholder:a,required:s=!1,onChange:f,leading:l,trailing:o,inputClass:c,ref:h})=>{const[u,x]=ye(!1),[v,d]=ye(!1),[m,y]=ye(!1);return M0(()=>{r&&i&&_c(r,d)}),H(es,{className:`relative ${e}`,get children(){return[l,H(Tc,{title:i,get isActive(){return u()||v()||m()},htmlFor:r}),(()=>{const A=vc();A.$$input=()=>{Ec(r,m(),y),f&&f()},A.addEventListener("blur",()=>x(!1)),A.addEventListener("focus",()=>x(!0));const F=h;return typeof F=="function"?zl(F,A):h=A,be(A,`bg-default-bg focus:border-cyan-500 outline-none border-2 border-gray-500
|
||
hover:border-t-cyan-400 ${c}`),Re(A,"id",r),Re(A,"name",t??void 0),Re(A,"type",n),Re(A,"placeholder",a??void 0),A.required=s,A})(),o]}})},Tc=({title:e,isActive:r=!1,htmlFor:t})=>(()=>{const n=mc(),i=n.firstChild;return be(n,`absolute pointer-events-none
|
||
${r?"-top-2 left-3 default-bg text-sm":"left-2 top-1"}
|
||
transition-all duration-150 text-gray-600 dark:text-gray-400`),Re(n,"for",t),ie(i,e),n})(),wc=({typingDefault:e=!1,id:r="search",className:t,ref:n})=>{const[i,a]=ye(e);function s(){return Wr(r)}function f(){const o=s();o&&(o.value="",a(!1),history.replaceState(null,"",location.pathname),o.focus())}function l(){const o=s();o&&o.value!==""!==i()&&a(o.value!=="")}return H(ts,{inputClass:"rounded-xl pl-7 h-10 w-full pr-8",className:`w-full ${t}`,id:r,ref(o){const c=n;typeof c=="function"?c(o):n=o},placeholder:"¬A & B -> C",type:"text",onChange:l,get leading(){return H(Pt,{path:qo,"aria-label":"Magnifying glass",class:"pl-2 absolute"})},get trailing(){return H(Ye,{get when(){return i()},keyed:!0,get children(){const o=gc();return o.$$click=f,ie(o,H(Pt,{path:Zo,"aria-label":"The letter X"})),o}})}})};Gr(["input","click"]);const Sc=fe("<table><thead><tr></tr></thead><tbody>"),Ac=fe('<th scope="col" class="bg-default-bg text-center sticky top-0 [position:-webkit-sticky;] outline outline-2 outline-offset-[-1px] outline-gray-500"><p class="px-2 w-max">'),yc=fe('<tr class="hover:text-black">'),Fc=fe("<td><p>"),Cc=({table:e,header:r,className:t,style:n,id:i})=>(()=>{const a=Sc(),s=a.firstChild,f=s.firstChild,l=s.nextSibling;return be(a,`border-2 border-gray-500 border-collapse table z-10 ${t}`),Re(a,"id",i),ie(f,H(tr,{each:r,children:o=>(()=>{const c=Ac(),h=c.firstChild;return ie(h,o),c})()})),ie(l,H(tr,{each:e,children:o=>(()=>{const c=yc();return ie(c,H(tr,{each:o,children:h=>(()=>{const u=Fc(),x=u.firstChild;return be(u,`text-center border border-gray-500 last:underline
|
||
${h?"bg-green-700":"bg-red-700"}`),ie(x,h?"T":"F"),u})()})),c})()})),Dt(o=>G0(a,n,o)),a})();function kt(e,r){let t={},n=Object.keys(e);for(let i=0,a=n.length;i<a;i+=1){let s=n[i];r.includes(s)||Object.defineProperty(t,s,{get(){return e[s]},configurable:!0,enumerable:!0})}return t}var rs=Vr();function fi(){let e=Tr(rs);if(e)return e;throw new Error("`useHeadlessDisclosureProperties` must be used within `<HeadlessDisclosureRoot>`.")}function Oc(e){return typeof e=="function"&&e.length>0}function Dc(e){let r=fi();return De(()=>{let t=e.children;return Oc(t)?t(r):t})}function wr(e){return{get children(){return H(Dc,{get children(){return e.children}})}}}function Ic(e){let r,t;if("defaultOpen"in e){let[n,i]=ye(e.defaultOpen);r=n,t=a=>{El(()=>{var s;i(a),(s=e.onChange)==null||s.call(e,a)})}}else r=()=>e.isOpen,t=n=>{var i;return(i=e.onChange)==null?void 0:i.call(e,n)};return{isOpen(){return r()},setState(n){e.disabled||t(n)},disabled(){return!!e.disabled}}}function kc(e){return typeof e=="function"&&e.length>0}function li(e){let r=Ic(e);return H(rs.Provider,{value:r,get children(){return De(()=>{let t=e.children;return kc(t)?t(r):t})}})}function bt(e,r){return H(Ql,dt({get component(){return e()}},r))}function Nc(e){return typeof e=="function"}function oi(e,r){return t=>{"ref"in e&&Nc(e.ref)&&e.ref(t),r(t)}}function ci(e){return{get disabled(){return e()},get"aria-disabled"(){return e()},get"data-sh-disabled"(){return e()}}}function Rc(e){return{get"aria-expanded"(){return e()},get"data-sh-expanded"(){return e()}}}var Lc='a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex]:not([tabindex="-1"]), [contenteditable]';function ns(e,r){let t=e.querySelectorAll(Lc),n=[];for(let i=0,a=t.length;i<a;i+=1)(!r||!r.contains(t[i]))&&n.push(t[i]);return n}function is(e){return!e.matches('[data-sh-disabled="true"]')}function as(e,r,t){let n=r+t;for(;n>=0&&n<e.length;){if(is(e[n]))return e[n];n+=t}}function ss(e,r,t){let n=r+t;for(t===1&&n===e.length&&(n=0),t===-1&&n===-1&&(n=e.length-1);r!==n;){if(is(e[n]))return e[n];n+=t,t===1&&n>=e.length&&(n=0),t===-1&&n<0&&(n=e.length-1)}}function Pc(e,r){var t;for(let n=0,i=e.length;n<i;n+=1)if(r===e[n]){(t=ss(e,n,1))==null||t.focus();break}}function Mc(e,r){var t;for(let n=0,i=e.length;n<i;n+=1)if(r===e[n]){(t=ss(e,n,-1))==null||t.focus();break}}function fs(e){var r;return e.length?((r=as(e,-1,1))==null||r.focus(),!0):!1}function bc(e){var r;return e.length?((r=as(e,e.length,-1))==null||r.focus(),!0):!1}function Bc(e,r){let t=ns(e);r?!document.activeElement||!e.contains(document.activeElement)?bc(t):Mc(t,document.activeElement):!document.activeElement||!e.contains(document.activeElement)?fs(t):Pc(t,document.activeElement)}var Uc="data-sh";function lr(e){return{[Uc]:e}}var $c=lr("button");function Wc(e){let[r,t]=ye();return sr(()=>{let n=r();if(n instanceof HTMLElement&&n.tagName!=="BUTTON"){let i=a=>{(a.key==="Enter"||a.key===" ")&&n.click()};n.addEventListener("keydown",i),zt(()=>{n.removeEventListener("keydown",i)})}}),bt(()=>{var n;return(n=e.as)!=null?n:"button"},dt({get tabindex(){return e.disabled?-1:0},role:"button"},ci(()=>e.disabled),kt(e,["as","ref"]),$c,{ref:oi(e,n=>{t(()=>n)})}))}function ui(e,r,t){return H(Ye,{get when(){var n;return(n=e.unmount)!=null?n:!0},get fallback(){return t()},get children(){return H(Ye,{get when(){return r()},get children(){return t()}})}})}function Wa(){var e,r;return(r=(e=window.getSelection())==null?void 0:e.focusNode)==null?void 0:r.parentElement}function Hc(e){if(e){let r=e.getAttribute("tabindex");e.setAttribute("tabindex","-1"),e.focus(),e.blur(),r?e.setAttribute("tabindex",r):e.removeAttribute("tabindex")}}var Vc=class{constructor(){typeof document<"u"&&(this.returnElement=document.activeElement,this.fsp=Wa()),zt(()=>{this.load()})}load(){this.returnElement instanceof HTMLElement?this.returnElement.focus():Hc(this.fsp)}save(){this.returnElement=document.activeElement,this.fsp=Wa()}};function ls(){return new Vc}function os(e){return De(()=>e.children)}var Qi=Vr();function ea(e){let r=Tr(Qi);if(r)return r;throw new Error(`<${e}> must be used inside a <Dialog>`)}var cs=lr("dialog"),Gc=lr("dialog-description"),Xc=lr("dialog-panel"),zc=lr("dialog-title");function jc(e){let r=ot(),t=ot(),n=ot(),i=ot(),a=ls();return H(Qi.Provider,{value:{ownerID:r,panelID:t,titleID:n,descriptionID:i},get children(){return H(li,{get isOpen(){return e.isOpen},get disabled(){return e.disabled},onChange(s){var f,l,o;s&&(a.save(),(f=e.onOpen)==null||f.call(e)),(l=e.onChange)==null||l.call(e,s),s||((o=e.onClose)==null||o.call(e),a.load())},children:({isOpen:s})=>ui(e,s,()=>bt(()=>{var f;return(f=e.as)!=null?f:"div"},dt(kt(e,["as","children","unmount","isOpen","disabled","onOpen","onClose","onChange"]),cs,{id:r,role:"dialog","aria-modal":!0,"aria-labelledby":n,"aria-describedby":i},wr(e))))})}})}function Kc(e){let r=ot(),t=ot(),n=ot(),i=ot(),a=ls();return H(Qi.Provider,{value:{ownerID:r,panelID:t,titleID:n,descriptionID:i},get children(){return H(li,{get defaultOpen(){return e.defaultOpen},get disabled(){return e.disabled},onChange(s){var f,l,o;s&&(a.save(),(f=e.onOpen)==null||f.call(e)),(l=e.onChange)==null||l.call(e,s),s||((o=e.onClose)==null||o.call(e),a.load())},children:({isOpen:s})=>ui(e,s,()=>bt(()=>{var f;return(f=e.as)!=null?f:"div"},dt(kt(e,["as","children","unmount","defaultOpen","disabled","onOpen","onClose","onChange"]),cs,{id:r,role:"dialog","aria-modal":!0,"aria-labelledby":n,"aria-describedby":i},wr(e))))})}})}function Yc(e){return"defaultOpen"in e}function Jc(e){return Yc(e)?H(Kc,e):H(jc,e)}function qc(e){let r=ea("DialogDescription");return bt(()=>{var t;return(t=e.as)!=null?t:"p"},dt(kt(e,["as","children"]),Gc,{id:r.descriptionID},wr(e)))}function Zc(e){let r=ea("DialogPanel"),t=fi(),[n,i]=ye();return sr(()=>{let a=n();if(a instanceof HTMLElement&&t.isOpen()){fs(ns(a));let s=f=>{e.disabled||(f.key==="Tab"?(f.preventDefault(),Bc(a,f.shiftKey)):f.key==="Escape"&&t.setState(!1))};a.addEventListener("keydown",s),zt(()=>{a.removeEventListener("keydown",s)})}}),bt(()=>{var a;return(a=e.as)!=null?a:"div"},dt(kt(e,["as","children","ref"]),Xc,{id:r.panelID,ref:oi(e,a=>{i(()=>a)})},wr(e)))}function Qc(e){let r=ea("DialogTitle");return bt(()=>{var t;return(t=e.as)!=null?t:"h2"},dt(kt(e,["as","children"]),zc,{id:r.titleID},wr(e)))}var ta=Vr();function us(e){let r=Tr(ta);if(r)return r;throw new Error(`<${e}> must be used inside a <Disclosure>`)}var hs=lr("disclosure"),eu=lr("disclosure-button"),tu=lr("disclosure-panel");function ru(e){let r=ot(),t=ot(),n=ot();return H(ta.Provider,{value:{ownerID:r,buttonID:t,panelID:n},get children(){return bt(()=>{var i;return(i=e.as)!=null?i:os},dt(kt(e,["isOpen","as","children","disabled","onChange"]),hs,ci(()=>e.disabled),{get children(){return H(li,{get isOpen(){return e.isOpen},get disabled(){return e.disabled},get children(){return e.children},onChange:e.onChange})}}))}})}function nu(e){let r=ot(),t=ot(),n=ot();return H(ta.Provider,{value:{ownerID:r,buttonID:t,panelID:n},get children(){return bt(()=>{var i;return(i=e.as)!=null?i:os},dt(kt(e,["defaultOpen","as","children","disabled","onChange"]),hs,ci(()=>e.disabled),{get children(){return H(li,{get defaultOpen(){return e.defaultOpen},get disabled(){return e.disabled},get children(){return e.children},onChange:e.onChange})}}))}})}function iu(e){return"defaultOpen"in e}function au(e){return iu(e)?H(nu,e):H(ru,e)}function su(e){let r=us("DisclosureButton"),t=fi(),[n,i]=ye();return sr(()=>{let a=n();if(a instanceof HTMLElement){let s=()=>{t.disabled()||e.disabled||t.setState(!t.isOpen())};a.addEventListener("click",s),zt(()=>{a.removeEventListener("click",s)})}}),H(Wc,dt(kt(e,["children","ref"]),eu,{id:r.buttonID,ref:oi(e,a=>{i(()=>a)}),get"aria-controls"(){return t.isOpen()&&r.panelID}},ci(()=>{let a=t.disabled(),s=e.disabled;return a||s}),Rc(()=>t.isOpen()),wr(e)))}function fu(e){let r=us("DisclosurePanel"),t=fi();return ui(e,()=>t.isOpen(),()=>bt(()=>{var n;return(n=e.as)!=null?n:"div"},dt(kt(e,["as","unmount","children"]),tu,{id:r.panelID},wr(e))))}var ds=Vr();function lu(e){let r=Tr(ds);if(r)return r;throw new Error(`<${e}> must be used inside a <Transition>`)}function qt(e){return e?e.split(" "):[]}function dr(e,r){let t=r.filter(n=>n);t.length&&e.classList.add(...t)}function xr(e,r){let t=r.filter(n=>n);t.length&&e.classList.remove(...t)}function ou(e){let r=lu("TransitionChild"),[t,n]=ye(r.show),[i,a]=ye(),s=!0;function f(l,o){var c,h;if(o){if(s){let u=qt(e.enter),x=qt(e.enterFrom),v=qt(e.enterTo),d=qt(e.entered),m=()=>{var y;xr(l,u),xr(l,v),dr(l,d),(y=e.afterEnter)==null||y.call(e)};(c=e.beforeEnter)==null||c.call(e),dr(l,u),dr(l,x),requestAnimationFrame(()=>{xr(l,x),dr(l,v),l.addEventListener("transitionend",m,{once:!0}),l.addEventListener("animationend",m,{once:!0})})}}else{let u=qt(e.leave),x=qt(e.leaveFrom),v=qt(e.leaveTo),d=qt(e.entered);(h=e.beforeLeave)==null||h.call(e),xr(l,d),dr(l,u),dr(l,x),requestAnimationFrame(()=>{xr(l,x),dr(l,v)});let m=()=>{var y;xr(l,u),xr(l,v),n(!1),(y=e.afterLeave)==null||y.call(e)};l.addEventListener("transitionend",m,{once:!0}),l.addEventListener("animationend",m,{once:!0})}}return sr(()=>{let l=r.show;l&&n(!0);let o=i();o instanceof HTMLElement?f(o,l):s=!0}),ui(e,t,()=>bt(()=>{var l;return(l=e.as)!=null?l:"div"},dt(kt(e,["as","enter","enterFrom","enterTo","leave","leaveFrom","leaveTo","unmount","afterEnter","afterLeave","appear","beforeEnter","beforeLeave","entered","ref"]),{ref:oi(e,l=>{a(()=>l)})})))}function cu(e){let[r,t]=Ji(e,["show"]);return H(ds.Provider,{value:r,get children(){return H(ou,t)}})}const uu=fe('<div><p></p><div class="mx-2">'),xs=fe("<div>"),hu=fe('<p class="py-1">'),du=fe('<div class="px-2 pb-2 text-gray-300">'),ps=({title:e,children:r,error:t=!1,className:n})=>(()=>{const i=uu(),a=i.firstChild,s=a.nextSibling;return be(i,`border-rounded ${t?"border-red-500":"border-gray-500"} ${n}`),be(a,`border-b px-2 ${t?"border-red-500":"border-gray-500"}`),ie(a,e),ie(s,r),i})(),ra=({title:e,children:r,defaultOpen:t=!1,className:n,id:i,onClick:a})=>(()=>{const s=xs();return Re(s,"id",i),be(s,`border-rounded bg-default-bg ${n}`),ie(s,H(au,{defaultOpen:t,children:({isOpen:f})=>[H(su,{onClick:a,class:"flex-row-center w-full justify-between px-2",get children(){return[(()=>{const l=hu();return ie(l,e),l})(),H(Pt,{path:jo,get class(){return`w-5 ${f()&&"transform rotate-180"} transition`}})]}}),H(cu,{enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",show:!0,get children(){return H(fu,{get children(){const l=du();return ie(l,r),l}})}})]})),s})(),vs=({children:e,className:r})=>(()=>{const t=xs();return be(t,`bg-cyan-900 border-rounded dark:border-gray-800 p-2 mb-2
|
||
flex flex-col gap-1 ${r}`),ie(t,e),t})();function Yt(){}Yt.prototype={diff:function(r,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.callback;typeof n=="function"&&(i=n,n={}),this.options=n;var a=this;function s(d){return i?(setTimeout(function(){i(void 0,d)},0),!0):d}r=this.castInput(r),t=this.castInput(t),r=this.removeEmpty(this.tokenize(r)),t=this.removeEmpty(this.tokenize(t));var f=t.length,l=r.length,o=1,c=f+l;n.maxEditLength&&(c=Math.min(c,n.maxEditLength));var h=[{newPos:-1,components:[]}],u=this.extractCommon(h[0],t,r,0);if(h[0].newPos+1>=f&&u+1>=l)return s([{value:this.join(t),count:t.length}]);function x(){for(var d=-1*o;d<=o;d+=2){var m=void 0,y=h[d-1],A=h[d+1],F=(A?A.newPos:0)-d;y&&(h[d-1]=void 0);var I=y&&y.newPos+1<f,z=A&&0<=F&&F<l;if(!I&&!z){h[d]=void 0;continue}if(!I||z&&y.newPos<A.newPos?(m=pu(A),a.pushComponent(m.components,void 0,!0)):(m=y,m.newPos++,a.pushComponent(m.components,!0,void 0)),F=a.extractCommon(m,t,r,d),m.newPos+1>=f&&F+1>=l)return s(xu(a,m.components,t,r,a.useLongestToken));h[d]=m}o++}if(i)(function d(){setTimeout(function(){if(o>c)return i();x()||d()},0)})();else for(;o<=c;){var v=x();if(v)return v}},pushComponent:function(r,t,n){var i=r[r.length-1];i&&i.added===t&&i.removed===n?r[r.length-1]={count:i.count+1,added:t,removed:n}:r.push({count:1,added:t,removed:n})},extractCommon:function(r,t,n,i){for(var a=t.length,s=n.length,f=r.newPos,l=f-i,o=0;f+1<a&&l+1<s&&this.equals(t[f+1],n[l+1]);)f++,l++,o++;return o&&r.components.push({count:o}),r.newPos=f,l},equals:function(r,t){return this.options.comparator?this.options.comparator(r,t):r===t||this.options.ignoreCase&&r.toLowerCase()===t.toLowerCase()},removeEmpty:function(r){for(var t=[],n=0;n<r.length;n++)r[n]&&t.push(r[n]);return t},castInput:function(r){return r},tokenize:function(r){return r.split("")},join:function(r){return r.join("")}};function xu(e,r,t,n,i){for(var a=0,s=r.length,f=0,l=0;a<s;a++){var o=r[a];if(o.removed){if(o.value=e.join(n.slice(l,l+o.count)),l+=o.count,a&&r[a-1].added){var h=r[a-1];r[a-1]=r[a],r[a]=h}}else{if(!o.added&&i){var c=t.slice(f,f+o.count);c=c.map(function(x,v){var d=n[l+v];return d.length>x.length?d:x}),o.value=e.join(c)}else o.value=e.join(t.slice(f,f+o.count));f+=o.count,o.added||(l+=o.count)}}var u=r[s-1];return s>1&&typeof u.value=="string"&&(u.added||u.removed)&&e.equals("",u.value)&&(r[s-2].value+=u.value,r.pop()),r}function pu(e){return{newPos:e.newPos,components:e.components.slice(0)}}var vu=new Yt;function mu(e,r,t){return vu.diff(e,r,t)}var Ha=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Va=/\S/,ms=new Yt;ms.equals=function(e,r){return this.options.ignoreCase&&(e=e.toLowerCase(),r=r.toLowerCase()),e===r||this.options.ignoreWhitespace&&!Va.test(e)&&!Va.test(r)};ms.tokenize=function(e){for(var r=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;t<r.length-1;t++)!r[t+1]&&r[t+2]&&Ha.test(r[t])&&Ha.test(r[t+2])&&(r[t]+=r[t+2],r.splice(t+1,2),t--);return r};var gs=new Yt;gs.tokenize=function(e){var r=[],t=e.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var n=0;n<t.length;n++){var i=t[n];n%2&&!this.options.newlineIsToken?r[r.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),r.push(i))}return r};var gu=new Yt;gu.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var _u=new Yt;_u.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function Mn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mn=function(r){return typeof r}:Mn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Mn(e)}var Eu=Object.prototype.toString,cn=new Yt;cn.useLongestToken=!0;cn.tokenize=gs.tokenize;cn.castInput=function(e){var r=this.options,t=r.undefinedReplacement,n=r.stringifyReplacer,i=n===void 0?function(a,s){return typeof s>"u"?t:s}:n;return typeof e=="string"?e:JSON.stringify(Wi(e,null,null,i),i," ")};cn.equals=function(e,r){return Yt.prototype.equals.call(cn,e.replace(/,([\r\n])/g,"$1"),r.replace(/,([\r\n])/g,"$1"))};function Wi(e,r,t,n,i){r=r||[],t=t||[],n&&(e=n(i,e));var a;for(a=0;a<r.length;a+=1)if(r[a]===e)return t[a];var s;if(Eu.call(e)==="[object Array]"){for(r.push(e),s=new Array(e.length),t.push(s),a=0;a<e.length;a+=1)s[a]=Wi(e[a],r,t,n,i);return r.pop(),t.pop(),s}if(e&&e.toJSON&&(e=e.toJSON()),Mn(e)==="object"&&e!==null){r.push(e),s={},t.push(s);var f=[],l;for(l in e)e.hasOwnProperty(l)&&f.push(l);for(f.sort(),a=0;a<f.length;a+=1)l=f[a],s[l]=Wi(e[l],r,t,n,l);r.pop(),t.pop()}else s=e;return s}var Hi=new Yt;Hi.tokenize=function(e){return e.slice()};Hi.join=Hi.removeEmpty=function(e){return e};const Tu=fe('<button><span class="sr-only"></span><span>'),wu=fe("<button>"),Di=({defaultValue:e=!1,title:r,onChange:t,className:n,name:i,id:a})=>{const[s,f]=ye(e);function l(){const o=!s();f(o),t&&t(o)}return(()=>{const o=Tu(),c=o.firstChild,h=c.nextSibling;return o.$$click=l,Re(o,"id",a),Re(o,"title",r),ie(c,i),Dt(u=>{const x=`${s()?"bg-cyan-900":"bg-gray-500"}
|
||
relative inline-flex h-6 w-11 items-center rounded-full my-2 ${n}`,v=`${s()?"translate-x-6":"translate-x-1"}
|
||
inline-block h-4 w-4 transform rounded-full bg-white transition-all`;return x!==u._v$&&be(o,u._v$=x),v!==u._v$2&&be(h,u._v$2=v),u},{_v$:void 0,_v$2:void 0}),o})()},Hn=({className:e,title:r,children:t,id:n,onClick:i,type:a="button"})=>(()=>{const s=wu();return qi(s,"click",i,!0),Re(s,"title",r),Re(s,"id",n),Re(s,"type",a),be(s,`border-rounded bg-cyan-900 px-2 cursor-pointer ${e}`),ie(s,t),s})();Gr(["click"]);const Su=fe('<div><div class="mx-1">'),Au=fe("<div>"),Ga=({title:e,button:r,children:t,id:n,className:i,buttonClassName:a,itemsClassName:s})=>{const[f,l]=ye(!1);function o(){l(!1)}function c(){l(!f())}return sr(()=>{function h(x){x.target instanceof HTMLElement&&x.target.closest(`#${n}`)===null&&o()}function u(x){x.key==="Escape"&&o()}f()?(document.addEventListener("click",h),document.addEventListener("keyup",u)):(document.removeEventListener("click",h),document.removeEventListener("keyup",u))}),(()=>{const h=Au();return be(h,`${i}`),Re(h,"id",n),ie(h,H(Hn,{title:e,onClick:c,className:`flex-row-center ${a}`,children:r}),null),ie(h,H(Ye,{get when(){return f()},keyed:!0,get children(){const u=Su(),x=u.firstChild;return be(u,`absolute bg-default-bg border border-gray-500 rounded-b-xl mt-1 w-max z-50 ${s}`),ie(x,t),u}}),null),h})()},yu=fe('<div class="fixed inset-0 bg-black/40">'),Fu=fe('<div class="my-3">'),Cu=fe('<div class="w-fit h-fit"><button>'),Ou=({title:e,description:r,button:t,acceptButtonName:n="Ok",cancelButtonName:i="Cancel",children:a,callback:s,className:f,buttonClass:l,buttonTitle:o,acceptButtonId:c})=>{const[h,u]=ye(!1);function x(){s&&s(),u(!1)}function v(){let d=!0;function m(y){d&&y.key==="Enter"&&c&&Wr(c)?.click()}if(h()){const A=Wr("cl-6");return A?.addEventListener("keypress",m),()=>{A?.removeEventListener("keypress",m),d=!1}}else return()=>{}}return sr(v,h()),(()=>{const d=Cu(),m=d.firstChild;return m.$$click=()=>u(!0),be(m,l),Re(m,"title",o??void 0),ie(m,t),ie(d,H(Zl,{get children(){return H(Jc,{get isOpen(){return h()},onClose:()=>u(!1),class:`fixed inset-0 flex-row-center justify-center z-50 overflow-auto text-white ${f}`,get children(){return[(()=>{const y=yu();return Re(y,"aria-hidden",!0),y})(),H(Zc,{class:"w-fit relative bg-default-bg border-rounded border-gray-500 p-2",get children(){return[H(Qc,{class:"border-b",children:e}),H(qc,{class:"mb-4 mt-1",children:r}),a,(()=>{const y=Fu();return ie(y,H(Hn,{onClick:x,className:"h-10 mr-2",id:c,children:n}),null),ie(y,H(Hn,{onClick:()=>u(!1),className:"h-10",children:i}),null),y})()]}})]}})}}),null),d})()};Gr(["click"]);/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Vn={};Vn.version="0.18.5";var _s=1252,Du=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],Es=function(e){Du.indexOf(e)!=-1&&(_s=e)};function Iu(){Es(1252)}var un=function(e){Es(e)};function ku(){un(1200),Iu()}function Nu(e){for(var r=[],t=0;t<e.length>>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t+1)+(e.charCodeAt(2*t)<<8));return r.join("")}var Cn=function(r){return String.fromCharCode(r)},Xa=function(r){return String.fromCharCode(r)},pr,Qt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function hn(e){for(var r="",t=0,n=0,i=0,a=0,s=0,f=0,l=0,o=0;o<e.length;)t=e.charCodeAt(o++),a=t>>2,n=e.charCodeAt(o++),s=(t&3)<<4|n>>4,i=e.charCodeAt(o++),f=(n&15)<<2|i>>6,l=i&63,isNaN(n)?f=l=64:isNaN(i)&&(l=64),r+=Qt.charAt(a)+Qt.charAt(s)+Qt.charAt(f)+Qt.charAt(l);return r}function jt(e){var r="",t=0,n=0,i=0,a=0,s=0,f=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var o=0;o<e.length;)a=Qt.indexOf(e.charAt(o++)),s=Qt.indexOf(e.charAt(o++)),t=a<<2|s>>4,r+=String.fromCharCode(t),f=Qt.indexOf(e.charAt(o++)),n=(s&15)<<4|f>>2,f!==64&&(r+=String.fromCharCode(n)),l=Qt.indexOf(e.charAt(o++)),i=(f&3)<<6|l,l!==64&&(r+=String.fromCharCode(i));return r}var ge=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),Jt=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(r,t){return t?new Buffer(r,t):new Buffer(r)}:Buffer.from.bind(Buffer)}return function(){}}();function gr(e){return ge?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function za(e){return ge?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var Ct=function(r){return ge?Jt(r,"binary"):r.split("").map(function(t){return t.charCodeAt(0)&255})};function hi(e){if(typeof ArrayBuffer>"u")return Ct(e);for(var r=new ArrayBuffer(e.length),t=new Uint8Array(r),n=0;n!=e.length;++n)t[n]=e.charCodeAt(n)&255;return r}function gn(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var r=[],t=0;t<e.length;++t)r[t]=String.fromCharCode(e[t]);return r.join("")}function Ru(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var Je=ge?function(e){return Buffer.concat(e.map(function(r){return Buffer.isBuffer(r)?r:Jt(r)}))}:function(e){if(typeof Uint8Array<"u"){var r=0,t=0;for(r=0;r<e.length;++r)t+=e[r].length;var n=new Uint8Array(t),i=0;for(r=0,t=0;r<e.length;t+=i,++r)if(i=e[r].length,e[r]instanceof Uint8Array)n.set(e[r],t);else{if(typeof e[r]=="string")throw"wtf";n.set(new Uint8Array(e[r]),t)}return n}return[].concat.apply([],e.map(function(a){return Array.isArray(a)?a:[].slice.call(a)}))};function Lu(e){for(var r=[],t=0,n=e.length+250,i=gr(e.length+255),a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s<128)i[t++]=s;else if(s<2048)i[t++]=192|s>>6&31,i[t++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var f=e.charCodeAt(++a)&1023;i[t++]=240|s>>8&7,i[t++]=128|s>>2&63,i[t++]=128|f>>6&15|(s&3)<<4,i[t++]=128|f&63}else i[t++]=224|s>>12&15,i[t++]=128|s>>6&63,i[t++]=128|s&63;t>n&&(r.push(i.slice(0,t)),t=0,i=gr(65535),n=65530)}return r.push(i.slice(0,t)),Je(r)}var rn=/\u0000/g,On=/[\u0001-\u0006]/g;function Mr(e){for(var r="",t=e.length-1;t>=0;)r+=e.charAt(t--);return r}function Ot(e,r){var t=""+e;return t.length>=r?t:Pe("0",r-t.length)+t}function na(e,r){var t=""+e;return t.length>=r?t:Pe(" ",r-t.length)+t}function Gn(e,r){var t=""+e;return t.length>=r?t:t+Pe(" ",r-t.length)}function Pu(e,r){var t=""+Math.round(e);return t.length>=r?t:Pe("0",r-t.length)+t}function Mu(e,r){var t=""+e;return t.length>=r?t:Pe("0",r-t.length)+t}var ja=Math.pow(2,32);function Ir(e,r){if(e>ja||e<-ja)return Pu(e,r);var t=Math.round(e);return Mu(t,r)}function Xn(e,r){return r=r||0,e.length>=7+r&&(e.charCodeAt(r)|32)===103&&(e.charCodeAt(r+1)|32)===101&&(e.charCodeAt(r+2)|32)===110&&(e.charCodeAt(r+3)|32)===101&&(e.charCodeAt(r+4)|32)===114&&(e.charCodeAt(r+5)|32)===97&&(e.charCodeAt(r+6)|32)===108}var Ka=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],Ii=[["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 bu(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 Me={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"秒 "'},Ya={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},Bu={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 zn(e,r,t){for(var n=e<0?-1:1,i=e*n,a=0,s=1,f=0,l=1,o=0,c=0,h=Math.floor(i);o<r&&(h=Math.floor(i),f=h*s+a,c=h*o+l,!(i-h<5e-8));)i=1/(i-h),a=s,s=f,l=o,o=c;if(c>r&&(o>r?(c=l,f=a):(c=o,f=s)),!t)return[0,n*f,c];var u=Math.floor(n*f/c);return[u,n*f-u*c,c]}function Dn(e,r,t){if(e>2958465||e<0)return null;var n=e|0,i=Math.floor(86400*(e-n)),a=0,s=[],f={D:n,T:i,u:86400*(e-n)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(f.u)<1e-6&&(f.u=0),r&&r.date1904&&(n+=1462),f.u>.9999&&(f.u=0,++i==86400&&(f.T=i=0,++n,++f.D)),n===60)s=t?[1317,10,29]:[1900,2,29],a=3;else if(n===0)s=t?[1317,8,29]:[1900,1,0],a=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()],a=l.getDay(),n<60&&(a=(a+6)%7),t&&(a=Xu(l,s))}return f.y=s[0],f.m=s[1],f.d=s[2],f.S=i%60,i=Math.floor(i/60),f.M=i%60,i=Math.floor(i/60),f.H=i,f.q=a,f}var Ts=new Date(1899,11,31,0,0,0),Uu=Ts.getTime(),$u=new Date(1900,2,1,0,0,0);function ws(e,r){var t=e.getTime();return r?t-=1461*24*60*60*1e3:e>=$u&&(t+=24*60*60*1e3),(t-(Uu+(e.getTimezoneOffset()-Ts.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function ia(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Wu(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function Hu(e){var r=e<0?12:11,t=ia(e.toFixed(12));return t.length<=r||(t=e.toPrecision(10),t.length<=r)?t:e.toExponential(5)}function Vu(e){var r=ia(e.toFixed(11));return r.length>(e<0?12:11)||r==="0"||r==="-0"?e.toPrecision(6):r}function Gu(e){var r=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),t;return r>=-4&&r<=-1?t=e.toPrecision(10+r):Math.abs(r)<=9?t=Hu(e):r===10?t=e.toFixed(10).substr(0,12):t=Vu(e),ia(Wu(t.toUpperCase()))}function Vi(e,r){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):Gu(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return rr(14,ws(e,r&&r.date1904),r)}throw new Error("unsupported value in General format: "+e)}function Xu(e,r){r[0]-=581;var t=e.getDay();return e<60&&(t=(t+6)%7),t}function zu(e,r,t,n){var i="",a=0,s=0,f=t.y,l,o=0;switch(e){case 98:f=t.y+543;case 121:switch(r.length){case 1:case 2:l=f%100,o=2;break;default:l=f%1e4,o=4;break}break;case 109:switch(r.length){case 1:case 2:l=t.m,o=r.length;break;case 3:return Ii[t.m-1][1];case 5:return Ii[t.m-1][0];default:return Ii[t.m-1][2]}break;case 100:switch(r.length){case 1:case 2:l=t.d,o=r.length;break;case 3:return Ka[t.q][0];default:return Ka[t.q][1]}break;case 104:switch(r.length){case 1:case 2:l=1+(t.H+11)%12,o=r.length;break;default:throw"bad hour format: "+r}break;case 72:switch(r.length){case 1:case 2:l=t.H,o=r.length;break;default:throw"bad hour format: "+r}break;case 77:switch(r.length){case 1:case 2:l=t.M,o=r.length;break;default:throw"bad minute format: "+r}break;case 115:if(r!="s"&&r!="ss"&&r!=".0"&&r!=".00"&&r!=".000")throw"bad second format: "+r;return t.u===0&&(r=="s"||r=="ss")?Ot(t.S,r.length):(n>=2?s=n===3?1e3:100:s=n===1?10:1,a=Math.round(s*(t.S+t.u)),a>=60*s&&(a=0),r==="s"?a===0?"0":""+a/s:(i=Ot(a,2+n),r==="ss"?i.substr(0,2):"."+i.substr(2,r.length-1)));case 90:switch(r){case"[h]":case"[hh]":l=t.D*24+t.H;break;case"[m]":case"[mm]":l=(t.D*24+t.H)*60+t.M;break;case"[s]":case"[ss]":l=((t.D*24+t.H)*60+t.M)*60+Math.round(t.S+t.u);break;default:throw"bad abstime format: "+r}o=r.length===3?1:2;break;case 101:l=f,o=1;break}var c=o>0?Ot(l,o):"";return c}function er(e){var r=3;if(e.length<=r)return e;for(var t=e.length%r,n=e.substr(0,t);t!=e.length;t+=r)n+=(n.length>0?",":"")+e.substr(t,r);return n}var Ss=/%/g;function ju(e,r,t){var n=r.replace(Ss,""),i=r.length-n.length;return Vt(e,n,t*Math.pow(10,2*i))+Pe("%",i)}function Ku(e,r,t){for(var n=r.length-1;r.charCodeAt(n-1)===44;)--n;return Vt(e,r.substr(0,n),t/Math.pow(10,3*(r.length-n)))}function As(e,r){var t,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";if(r<0)return"-"+As(e,-r);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(r)*Math.LOG10E)%i;if(a<0&&(a+=i),t=(r/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),t.indexOf("e")===-1){var s=Math.floor(Math.log(r)*Math.LOG10E);for(t.indexOf(".")===-1?t=t.charAt(0)+"."+t.substr(1)+"E+"+(s-t.length+a):t+="E+"+(s-a);t.substr(0,2)==="0.";)t=t.charAt(0)+t.substr(2,i)+"."+t.substr(2+i),t=t.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(f,l,o,c){return l+o+c.substr(0,(i+a)%i)+"."+c.substr(a)+"E"})}else t=r.toExponential(n);return e.match(/E\+00$/)&&t.match(/e[+-]\d$/)&&(t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1)),e.match(/E\-/)&&t.match(/e\+/)&&(t=t.replace(/e\+/,"e")),t.replace("e","E")}var ys=/# (\?+)( ?)\/( ?)(\d+)/;function Yu(e,r,t){var n=parseInt(e[4],10),i=Math.round(r*n),a=Math.floor(i/n),s=i-a*n,f=n;return t+(a===0?"":""+a)+" "+(s===0?Pe(" ",e[1].length+1+e[4].length):na(s,e[1].length)+e[2]+"/"+e[3]+Ot(f,e[4].length))}function Ju(e,r,t){return t+(r===0?"":""+r)+Pe(" ",e[1].length+2+e[4].length)}var Fs=/^#*0*\.([0#]+)/,Cs=/\).*[0#]/,Os=/\(###\) ###\\?-####/;function at(e){for(var r="",t,n=0;n!=e.length;++n)switch(t=e.charCodeAt(n)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=String.fromCharCode(t)}return r}function Ja(e,r){var t=Math.pow(10,r);return""+Math.round(e*t)/t}function qa(e,r){var t=e-Math.floor(e),n=Math.pow(10,r);return r<(""+Math.round(t*n)).length?0:Math.round(t*n)}function qu(e,r){return r<(""+Math.round((e-Math.floor(e))*Math.pow(10,r))).length?1:0}function Zu(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function wt(e,r,t){if(e.charCodeAt(0)===40&&!r.match(Cs)){var n=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?wt("n",n,t):"("+wt("n",n,-t)+")"}if(r.charCodeAt(r.length-1)===44)return Ku(e,r,t);if(r.indexOf("%")!==-1)return ju(e,r,t);if(r.indexOf("E")!==-1)return As(r,t);if(r.charCodeAt(0)===36)return"$"+wt(e,r.substr(r.charAt(1)==" "?2:1),t);var i,a,s,f,l=Math.abs(t),o=t<0?"-":"";if(r.match(/^00+$/))return o+Ir(l,r.length);if(r.match(/^[#?]+$/))return i=Ir(t,0),i==="0"&&(i=""),i.length>r.length?i:at(r.substr(0,r.length-i.length))+i;if(a=r.match(ys))return Yu(a,l,o);if(r.match(/^#+0+$/))return o+Ir(l,r.length-r.indexOf("0"));if(a=r.match(Fs))return i=Ja(t,a[1].length).replace(/^([^\.]+)$/,"$1."+at(a[1])).replace(/\.$/,"."+at(a[1])).replace(/\.(\d*)$/,function(v,d){return"."+d+Pe("0",at(a[1]).length-d.length)}),r.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),a=r.match(/^(0*)\.(#*)$/))return o+Ja(l,a[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=r.match(/^#{1,3},##0(\.?)$/))return o+er(Ir(l,0));if(a=r.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+wt(e,r,-t):er(""+(Math.floor(t)+qu(t,a[1].length)))+"."+Ot(qa(t,a[1].length),a[1].length);if(a=r.match(/^#,#*,#0/))return wt(e,r.replace(/^#,#*,/,""),t);if(a=r.match(/^([0#]+)(\\?-([0#]+))+$/))return i=Mr(wt(e,r.replace(/[\\-]/g,""),t)),s=0,Mr(Mr(r.replace(/\\/g,"")).replace(/[0#]/g,function(v){return s<i.length?i.charAt(s++):v==="0"?"0":""}));if(r.match(Os))return i=wt(e,"##########",t),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var c="";if(a=r.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),f=zn(l,Math.pow(10,s)-1,!1),i=""+o,c=Vt("n",a[1],f[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),i+=c+a[2]+"/"+a[3],c=Gn(f[2],s),c.length<a[4].length&&(c=at(a[4].substr(a[4].length-c.length))+c),i+=c,i;if(a=r.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),f=zn(l,Math.pow(10,s)-1,!0),o+(f[0]||(f[1]?"":"0"))+" "+(f[1]?na(f[1],s)+a[2]+"/"+a[3]+Gn(f[2],s):Pe(" ",2*s+1+a[2].length+a[3].length));if(a=r.match(/^[#0?]+$/))return i=Ir(t,0),r.length<=i.length?i:at(r.substr(0,r.length-i.length))+i;if(a=r.match(/^([#0?]+)\.([#0]+)$/)){i=""+t.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var h=r.indexOf(".")-s,u=r.length-i.length-h;return at(r.substr(0,h)+i+r.substr(r.length-u))}if(a=r.match(/^00,000\.([#0]*0)$/))return s=qa(t,a[1].length),t<0?"-"+wt(e,r,-t):er(Zu(t)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(v){return"00,"+(v.length<3?Ot(0,3-v.length):"")+v})+"."+Ot(s,a[1].length);switch(r){case"###,##0.00":return wt(e,"#,##0.00",t);case"###,###":case"##,###":case"#,###":var x=er(Ir(l,0));return x!=="0"?o+x:"";case"###,###.00":return wt(e,"###,##0.00",t).replace(/^0\./,".");case"#,###.00":return wt(e,"#,##0.00",t).replace(/^0\./,".")}throw new Error("unsupported format |"+r+"|")}function Qu(e,r,t){for(var n=r.length-1;r.charCodeAt(n-1)===44;)--n;return Vt(e,r.substr(0,n),t/Math.pow(10,3*(r.length-n)))}function eh(e,r,t){var n=r.replace(Ss,""),i=r.length-n.length;return Vt(e,n,t*Math.pow(10,2*i))+Pe("%",i)}function Ds(e,r){var t,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";if(r<0)return"-"+Ds(e,-r);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(r)*Math.LOG10E)%i;if(a<0&&(a+=i),t=(r/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),!t.match(/[Ee]/)){var s=Math.floor(Math.log(r)*Math.LOG10E);t.indexOf(".")===-1?t=t.charAt(0)+"."+t.substr(1)+"E+"+(s-t.length+a):t+="E+"+(s-a),t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(f,l,o,c){return l+o+c.substr(0,(i+a)%i)+"."+c.substr(a)+"E"})}else t=r.toExponential(n);return e.match(/E\+00$/)&&t.match(/e[+-]\d$/)&&(t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1)),e.match(/E\-/)&&t.match(/e\+/)&&(t=t.replace(/e\+/,"e")),t.replace("e","E")}function Rt(e,r,t){if(e.charCodeAt(0)===40&&!r.match(Cs)){var n=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?Rt("n",n,t):"("+Rt("n",n,-t)+")"}if(r.charCodeAt(r.length-1)===44)return Qu(e,r,t);if(r.indexOf("%")!==-1)return eh(e,r,t);if(r.indexOf("E")!==-1)return Ds(r,t);if(r.charCodeAt(0)===36)return"$"+Rt(e,r.substr(r.charAt(1)==" "?2:1),t);var i,a,s,f,l=Math.abs(t),o=t<0?"-":"";if(r.match(/^00+$/))return o+Ot(l,r.length);if(r.match(/^[#?]+$/))return i=""+t,t===0&&(i=""),i.length>r.length?i:at(r.substr(0,r.length-i.length))+i;if(a=r.match(ys))return Ju(a,l,o);if(r.match(/^#+0+$/))return o+Ot(l,r.length-r.indexOf("0"));if(a=r.match(Fs))return i=(""+t).replace(/^([^\.]+)$/,"$1."+at(a[1])).replace(/\.$/,"."+at(a[1])),i=i.replace(/\.(\d*)$/,function(v,d){return"."+d+Pe("0",at(a[1]).length-d.length)}),r.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),a=r.match(/^(0*)\.(#*)$/))return o+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=r.match(/^#{1,3},##0(\.?)$/))return o+er(""+l);if(a=r.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+Rt(e,r,-t):er(""+t)+"."+Pe("0",a[1].length);if(a=r.match(/^#,#*,#0/))return Rt(e,r.replace(/^#,#*,/,""),t);if(a=r.match(/^([0#]+)(\\?-([0#]+))+$/))return i=Mr(Rt(e,r.replace(/[\\-]/g,""),t)),s=0,Mr(Mr(r.replace(/\\/g,"")).replace(/[0#]/g,function(v){return s<i.length?i.charAt(s++):v==="0"?"0":""}));if(r.match(Os))return i=Rt(e,"##########",t),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var c="";if(a=r.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),f=zn(l,Math.pow(10,s)-1,!1),i=""+o,c=Vt("n",a[1],f[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),i+=c+a[2]+"/"+a[3],c=Gn(f[2],s),c.length<a[4].length&&(c=at(a[4].substr(a[4].length-c.length))+c),i+=c,i;if(a=r.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),f=zn(l,Math.pow(10,s)-1,!0),o+(f[0]||(f[1]?"":"0"))+" "+(f[1]?na(f[1],s)+a[2]+"/"+a[3]+Gn(f[2],s):Pe(" ",2*s+1+a[2].length+a[3].length));if(a=r.match(/^[#0?]+$/))return i=""+t,r.length<=i.length?i:at(r.substr(0,r.length-i.length))+i;if(a=r.match(/^([#0]+)\.([#0]+)$/)){i=""+t.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var h=r.indexOf(".")-s,u=r.length-i.length-h;return at(r.substr(0,h)+i+r.substr(r.length-u))}if(a=r.match(/^00,000\.([#0]*0)$/))return t<0?"-"+Rt(e,r,-t):er(""+t).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(v){return"00,"+(v.length<3?Ot(0,3-v.length):"")+v})+"."+Ot(0,a[1].length);switch(r){case"###,###":case"##,###":case"#,###":var x=er(""+l);return x!=="0"?o+x:"";default:if(r.match(/\.[0#?]*$/))return Rt(e,r.slice(0,r.lastIndexOf(".")),t)+at(r.slice(r.lastIndexOf(".")))}throw new Error("unsupported format |"+r+"|")}function Vt(e,r,t){return(t|0)===t?Rt(e,r,t):wt(e,r,t)}function th(e){for(var r=[],t=!1,n=0,i=0;n<e.length;++n)switch(e.charCodeAt(n)){case 34:t=!t;break;case 95:case 42:case 92:++n;break;case 59:r[r.length]=e.substr(i,n-i),i=n+1}if(r[r.length]=e.substr(i),t===!0)throw new Error("Format |"+e+"| unterminated string ");return r}var Is=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function ks(e){for(var r=0,t="",n="";r<e.length;)switch(t=e.charAt(r)){case"G":Xn(e,r)&&(r+=6),r++;break;case'"':for(;e.charCodeAt(++r)!==34&&r<e.length;);++r;break;case"\\":r+=2;break;case"_":r+=2;break;case"@":++r;break;case"B":case"b":if(e.charAt(r+1)==="1"||e.charAt(r+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(e.substr(r,3).toUpperCase()==="A/P"||e.substr(r,5).toUpperCase()==="AM/PM"||e.substr(r,5).toUpperCase()==="上午/下午")return!0;++r;break;case"[":for(n=t;e.charAt(r++)!=="]"&&r<e.length;)n+=e.charAt(r);if(n.match(Is))return!0;break;case".":case"0":case"#":for(;r<e.length&&("0#?.,E+-%".indexOf(t=e.charAt(++r))>-1||t=="\\"&&e.charAt(r+1)=="-"&&"0#".indexOf(e.charAt(r+2))>-1););break;case"?":for(;e.charAt(++r)===t;);break;case"*":++r,(e.charAt(r)==" "||e.charAt(r)=="*")&&++r;break;case"(":case")":++r;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;r<e.length&&"0123456789".indexOf(e.charAt(++r))>-1;);break;case" ":++r;break;default:++r;break}return!1}function rh(e,r,t,n){for(var i=[],a="",s=0,f="",l="t",o,c,h,u="H";s<e.length;)switch(f=e.charAt(s)){case"G":if(!Xn(e,s))throw new Error("unrecognized character "+f+" in "+e);i[i.length]={t:"G",v:"General"},s+=7;break;case'"':for(a="";(h=e.charCodeAt(++s))!==34&&s<e.length;)a+=String.fromCharCode(h);i[i.length]={t:"t",v:a},++s;break;case"\\":var x=e.charAt(++s),v=x==="("||x===")"?x:"t";i[i.length]={t:v,v:x},++s;break;case"_":i[i.length]={t:"t",v:" "},s+=2;break;case"@":i[i.length]={t:"T",v:r},++s;break;case"B":case"b":if(e.charAt(s+1)==="1"||e.charAt(s+1)==="2"){if(o==null&&(o=Dn(r,t,e.charAt(s+1)==="2"),o==null))return"";i[i.length]={t:"X",v:e.substr(s,2)},l=f,s+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":f=f.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(r<0||o==null&&(o=Dn(r,t),o==null))return"";for(a=f;++s<e.length&&e.charAt(s).toLowerCase()===f;)a+=f;f==="m"&&l.toLowerCase()==="h"&&(f="M"),f==="h"&&(f=u),i[i.length]={t:f,v:a},l=f;break;case"A":case"a":case"上":var d={t:f,v:f};if(o==null&&(o=Dn(r,t)),e.substr(s,3).toUpperCase()==="A/P"?(o!=null&&(d.v=o.H>=12?"P":"A"),d.t="T",u="h",s+=3):e.substr(s,5).toUpperCase()==="AM/PM"?(o!=null&&(d.v=o.H>=12?"PM":"AM"),d.t="T",s+=5,u="h"):e.substr(s,5).toUpperCase()==="上午/下午"?(o!=null&&(d.v=o.H>=12?"下午":"上午"),d.t="T",s+=5,u="h"):(d.t="t",++s),o==null&&d.t==="T")return"";i[i.length]=d,l=f;break;case"[":for(a=f;e.charAt(s++)!=="]"&&s<e.length;)a+=e.charAt(s);if(a.slice(-1)!=="]")throw'unterminated "[" block: |'+a+"|";if(a.match(Is)){if(o==null&&(o=Dn(r,t),o==null))return"";i[i.length]={t:"Z",v:a.toLowerCase()},l=a.charAt(1)}else a.indexOf("$")>-1&&(a=(a.match(/\$([^-\[\]]*)/)||[])[1]||"$",ks(e)||(i[i.length]={t:"t",v:a}));break;case".":if(o!=null){for(a=f;++s<e.length&&(f=e.charAt(s))==="0";)a+=f;i[i.length]={t:"s",v:a};break}case"0":case"#":for(a=f;++s<e.length&&"0#?.,E+-%".indexOf(f=e.charAt(s))>-1;)a+=f;i[i.length]={t:"n",v:a};break;case"?":for(a=f;e.charAt(++s)===f;)a+=f;i[i.length]={t:f,v:a},l=f;break;case"*":++s,(e.charAt(s)==" "||e.charAt(s)=="*")&&++s;break;case"(":case")":i[i.length]={t:n===1?"t":f,v:f},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(a=f;s<e.length&&"0123456789".indexOf(e.charAt(++s))>-1;)a+=e.charAt(s);i[i.length]={t:"D",v:a};break;case" ":i[i.length]={t:f,v:f},++s;break;case"$":i[i.length]={t:"t",v:"$"},++s;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(f)===-1)throw new Error("unrecognized character "+f+" in "+e);i[i.length]={t:"t",v:f},++s;break}var m=0,y=0,A;for(s=i.length-1,l="t";s>=0;--s)switch(i[s].t){case"h":case"H":i[s].t=u,l="h",m<1&&(m=1);break;case"s":(A=i[s].v.match(/\.0+$/))&&(y=Math.max(y,A[0].length-1)),m<3&&(m=3);case"d":case"y":case"M":case"e":l=i[s].t;break;case"m":l==="s"&&(i[s].t="M",m<2&&(m=2));break;case"X":break;case"Z":m<1&&i[s].v.match(/[Hh]/)&&(m=1),m<2&&i[s].v.match(/[Mm]/)&&(m=2),m<3&&i[s].v.match(/[Ss]/)&&(m=3)}switch(m){case 0:break;case 1:o.u>=.5&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M),o.M>=60&&(o.M=0,++o.H);break;case 2:o.u>=.5&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M);break}var F="",I;for(s=0;s<i.length;++s)switch(i[s].t){case"t":case"T":case" ":case"D":break;case"X":i[s].v="",i[s].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":i[s].v=zu(i[s].t.charCodeAt(0),i[s].v,o,y),i[s].t="t";break;case"n":case"?":for(I=s+1;i[I]!=null&&((f=i[I].t)==="?"||f==="D"||(f===" "||f==="t")&&i[I+1]!=null&&(i[I+1].t==="?"||i[I+1].t==="t"&&i[I+1].v==="/")||i[s].t==="("&&(f===" "||f==="n"||f===")")||f==="t"&&(i[I].v==="/"||i[I].v===" "&&i[I+1]!=null&&i[I+1].t=="?"));)i[s].v+=i[I].v,i[I]={v:"",t:";"},++I;F+=i[s].v,s=I-1;break;case"G":i[s].t="t",i[s].v=Vi(r,t);break}var z="",ee,D;if(F.length>0){F.charCodeAt(0)==40?(ee=r<0&&F.charCodeAt(0)===45?-r:r,D=Vt("n",F,ee)):(ee=r<0&&n>1?-r:r,D=Vt("n",F,ee),ee<0&&i[0]&&i[0].t=="t"&&(D=D.substr(1),i[0].v="-"+i[0].v)),I=D.length-1;var V=i.length;for(s=0;s<i.length;++s)if(i[s]!=null&&i[s].t!="t"&&i[s].v.indexOf(".")>-1){V=s;break}var P=i.length;if(V===i.length&&D.indexOf("E")===-1){for(s=i.length-1;s>=0;--s)i[s]==null||"n?".indexOf(i[s].t)===-1||(I>=i[s].v.length-1?(I-=i[s].v.length,i[s].v=D.substr(I+1,i[s].v.length)):I<0?i[s].v="":(i[s].v=D.substr(0,I+1),I=-1),i[s].t="t",P=s);I>=0&&P<i.length&&(i[P].v=D.substr(0,I+1)+i[P].v)}else if(V!==i.length&&D.indexOf("E")===-1){for(I=D.indexOf(".")-1,s=V;s>=0;--s)if(!(i[s]==null||"n?".indexOf(i[s].t)===-1)){for(c=i[s].v.indexOf(".")>-1&&s===V?i[s].v.indexOf(".")-1:i[s].v.length-1,z=i[s].v.substr(c+1);c>=0;--c)I>=0&&(i[s].v.charAt(c)==="0"||i[s].v.charAt(c)==="#")&&(z=D.charAt(I--)+z);i[s].v=z,i[s].t="t",P=s}for(I>=0&&P<i.length&&(i[P].v=D.substr(0,I+1)+i[P].v),I=D.indexOf(".")+1,s=V;s<i.length;++s)if(!(i[s]==null||"n?(".indexOf(i[s].t)===-1&&s!==V)){for(c=i[s].v.indexOf(".")>-1&&s===V?i[s].v.indexOf(".")+1:0,z=i[s].v.substr(0,c);c<i[s].v.length;++c)I<D.length&&(z+=D.charAt(I++));i[s].v=z,i[s].t="t",P=s}}}for(s=0;s<i.length;++s)i[s]!=null&&"n?".indexOf(i[s].t)>-1&&(ee=n>1&&r<0&&s>0&&i[s-1].v==="-"?-r:r,i[s].v=Vt(i[s].t,i[s].v,ee),i[s].t="t");var b="";for(s=0;s!==i.length;++s)i[s]!=null&&(b+=i[s].v);return b}var Za=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Qa(e,r){if(r==null)return!1;var t=parseFloat(r[2]);switch(r[1]){case"=":if(e==t)return!0;break;case">":if(e>t)return!0;break;case"<":if(e<t)return!0;break;case"<>":if(e!=t)return!0;break;case">=":if(e>=t)return!0;break;case"<=":if(e<=t)return!0;break}return!1}function nh(e,r){var t=th(e),n=t.length,i=t[n-1].indexOf("@");if(n<4&&i>-1&&--n,t.length>4)throw new Error("cannot find right format for |"+t.join("|")+"|");if(typeof r!="number")return[4,t.length===4||i>-1?t[t.length-1]:"@"];switch(t.length){case 1:t=i>-1?["General","General","General",t[0]]:[t[0],t[0],t[0],"@"];break;case 2:t=i>-1?[t[0],t[0],t[0],t[1]]:[t[0],t[1],t[0],"@"];break;case 3:t=i>-1?[t[0],t[1],t[0],t[2]]:[t[0],t[1],t[2],"@"];break}var a=r>0?t[0]:r<0?t[1]:t[2];if(t[0].indexOf("[")===-1&&t[1].indexOf("[")===-1)return[n,a];if(t[0].match(/\[[=<>]/)!=null||t[1].match(/\[[=<>]/)!=null){var s=t[0].match(Za),f=t[1].match(Za);return Qa(r,s)?[n,t[0]]:Qa(r,f)?[n,t[1]]:[n,t[s!=null&&f!=null?2:1]]}return[n,a]}function rr(e,r,t){t==null&&(t={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&t.dateNF?n=t.dateNF:n=e;break;case"number":e==14&&t.dateNF?n=t.dateNF:n=(t.table!=null?t.table:Me)[e],n==null&&(n=t.table&&t.table[Ya[e]]||Me[Ya[e]]),n==null&&(n=Bu[e]||"General");break}if(Xn(n,0))return Vi(r,t);r instanceof Date&&(r=ws(r,t.date1904));var i=nh(n,r);if(Xn(i[1]))return Vi(r,t);if(r===!0)r="TRUE";else if(r===!1)r="FALSE";else if(r===""||r==null)return"";return rh(i[1],r,t,i[0])}function Ns(e,r){if(typeof r!="number"){r=+r||-1;for(var t=0;t<392;++t){if(Me[t]==null){r<0&&(r=t);continue}if(Me[t]==e){r=t;break}}r<0&&(r=391)}return Me[r]=e,r}function di(e){for(var r=0;r!=392;++r)e[r]!==void 0&&Ns(e[r],r)}function xi(){Me=bu()}var Rs=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function ih(e){var r=typeof e=="number"?Me[e]:e;return r=r.replace(Rs,"(\\d+)"),new RegExp("^"+r+"$")}function ah(e,r,t){var n=-1,i=-1,a=-1,s=-1,f=-1,l=-1;(r.match(Rs)||[]).forEach(function(h,u){var x=parseInt(t[u+1],10);switch(h.toLowerCase().charAt(0)){case"y":n=x;break;case"d":a=x;break;case"h":s=x;break;case"s":l=x;break;case"m":s>=0?f=x:i=x;break}}),l>=0&&f==-1&&i>=0&&(f=i,i=-1);var o=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(a>=1?a:1)).slice(-2);o.length==7&&(o="0"+o),o.length==8&&(o="20"+o);var c=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(f>=0?f:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return s==-1&&f==-1&&l==-1?o:n==-1&&i==-1&&a==-1?c:o+"T"+c}var sh=function(){var e={};e.version="1.2.0";function r(){for(var D=0,V=new Array(256),P=0;P!=256;++P)D=P,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,V[P]=D;return typeof Int32Array<"u"?new Int32Array(V):V}var t=r();function n(D){var V=0,P=0,b=0,U=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(b=0;b!=256;++b)U[b]=D[b];for(b=0;b!=256;++b)for(P=D[b],V=256+b;V<4096;V+=256)P=U[V]=P>>>8^D[P&255];var G=[];for(b=1;b!=16;++b)G[b-1]=typeof Int32Array<"u"?U.subarray(b*256,b*256+256):U.slice(b*256,b*256+256);return G}var i=n(t),a=i[0],s=i[1],f=i[2],l=i[3],o=i[4],c=i[5],h=i[6],u=i[7],x=i[8],v=i[9],d=i[10],m=i[11],y=i[12],A=i[13],F=i[14];function I(D,V){for(var P=V^-1,b=0,U=D.length;b<U;)P=P>>>8^t[(P^D.charCodeAt(b++))&255];return~P}function z(D,V){for(var P=V^-1,b=D.length-15,U=0;U<b;)P=F[D[U++]^P&255]^A[D[U++]^P>>8&255]^y[D[U++]^P>>16&255]^m[D[U++]^P>>>24]^d[D[U++]]^v[D[U++]]^x[D[U++]]^u[D[U++]]^h[D[U++]]^c[D[U++]]^o[D[U++]]^l[D[U++]]^f[D[U++]]^s[D[U++]]^a[D[U++]]^t[D[U++]];for(b+=15;U<b;)P=P>>>8^t[(P^D[U++])&255];return~P}function ee(D,V){for(var P=V^-1,b=0,U=D.length,G=0,K=0;b<U;)G=D.charCodeAt(b++),G<128?P=P>>>8^t[(P^G)&255]:G<2048?(P=P>>>8^t[(P^(192|G>>6&31))&255],P=P>>>8^t[(P^(128|G&63))&255]):G>=55296&&G<57344?(G=(G&1023)+64,K=D.charCodeAt(b++)&1023,P=P>>>8^t[(P^(240|G>>8&7))&255],P=P>>>8^t[(P^(128|G>>2&63))&255],P=P>>>8^t[(P^(128|K>>6&15|(G&3)<<4))&255],P=P>>>8^t[(P^(128|K&63))&255]):(P=P>>>8^t[(P^(224|G>>12&15))&255],P=P>>>8^t[(P^(128|G>>6&63))&255],P=P>>>8^t[(P^(128|G&63))&255]);return~P}return e.table=t,e.bstr=I,e.buf=z,e.str=ee,e}(),Ae=function(){var r={};r.version="1.2.1";function t(p,E){for(var g=p.split("/"),_=E.split("/"),T=0,w=0,N=Math.min(g.length,_.length);T<N;++T){if(w=g[T].length-_[T].length)return w;if(g[T]!=_[T])return g[T]<_[T]?-1:1}return g.length-_.length}function n(p){if(p.charAt(p.length-1)=="/")return p.slice(0,-1).indexOf("/")===-1?p:n(p.slice(0,-1));var E=p.lastIndexOf("/");return E===-1?p:p.slice(0,E+1)}function i(p){if(p.charAt(p.length-1)=="/")return i(p.slice(0,-1));var E=p.lastIndexOf("/");return E===-1?p:p.slice(E+1)}function a(p,E){typeof E=="string"&&(E=new Date(E));var g=E.getHours();g=g<<6|E.getMinutes(),g=g<<5|E.getSeconds()>>>1,p.write_shift(2,g);var _=E.getFullYear()-1980;_=_<<4|E.getMonth()+1,_=_<<5|E.getDate(),p.write_shift(2,_)}function s(p){var E=p.read_shift(2)&65535,g=p.read_shift(2)&65535,_=new Date,T=g&31;g>>>=5;var w=g&15;g>>>=4,_.setMilliseconds(0),_.setFullYear(g+1980),_.setMonth(w-1),_.setDate(T);var N=E&31;E>>>=5;var W=E&63;return E>>>=6,_.setHours(E),_.setMinutes(W),_.setSeconds(N<<1),_}function f(p){vt(p,0);for(var E={},g=0;p.l<=p.length-4;){var _=p.read_shift(2),T=p.read_shift(2),w=p.l+T,N={};switch(_){case 21589:g=p.read_shift(1),g&1&&(N.mtime=p.read_shift(4)),T>5&&(g&2&&(N.atime=p.read_shift(4)),g&4&&(N.ctime=p.read_shift(4))),N.mtime&&(N.mt=new Date(N.mtime*1e3));break}p.l=w,E[_]=N}return E}var l;function o(){return l||(l={})}function c(p,E){if(p[0]==80&&p[1]==75)return La(p,E);if((p[0]|32)==109&&(p[1]|32)==105)return cl(p,E);if(p.length<512)throw new Error("CFB file size "+p.length+" < 512");var g=3,_=512,T=0,w=0,N=0,W=0,k=0,R=[],L=p.slice(0,512);vt(L,0);var Y=h(L);switch(g=Y[0],g){case 3:_=512;break;case 4:_=4096;break;case 0:if(Y[1]==0)return La(p,E);default:throw new Error("Major Version: Expected 3 or 4 saw "+g)}_!==512&&(L=p.slice(0,_),vt(L,28));var Q=p.slice(0,_);u(L,g);var ne=L.read_shift(4,"i");if(g===3&&ne!==0)throw new Error("# Directory Sectors: Expected 0 saw "+ne);L.l+=4,N=L.read_shift(4,"i"),L.l+=4,L.chk("00100000","Mini Stream Cutoff Size: "),W=L.read_shift(4,"i"),T=L.read_shift(4,"i"),k=L.read_shift(4,"i"),w=L.read_shift(4,"i");for(var J=-1,re=0;re<109&&(J=L.read_shift(4,"i"),!(J<0));++re)R[re]=J;var he=x(p,_);m(k,w,he,_,R);var ke=A(he,N,R,_);ke[N].name="!Directory",T>0&&W!==K&&(ke[W].name="!MiniFAT"),ke[R[0]].name="!FAT",ke.fat_addrs=R,ke.ssz=_;var Ne={},et=[],Jr=[],qr=[];F(N,ke,he,et,T,Ne,Jr,W),v(Jr,qr,et),et.shift();var Zr={FileIndex:Jr,FullPaths:qr};return E&&E.raw&&(Zr.raw={header:Q,sectors:he}),Zr}function h(p){if(p[p.l]==80&&p[p.l+1]==75)return[0,0];p.chk(ce,"Header Signature: "),p.l+=16;var E=p.read_shift(2,"u");return[p.read_shift(2,"u"),E]}function u(p,E){var g=9;switch(p.l+=2,g=p.read_shift(2)){case 9:if(E!=3)throw new Error("Sector Shift: Expected 9 saw "+g);break;case 12:if(E!=4)throw new Error("Sector Shift: Expected 12 saw "+g);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+g)}p.chk("0600","Mini Sector Shift: "),p.chk("000000000000","Reserved: ")}function x(p,E){for(var g=Math.ceil(p.length/E)-1,_=[],T=1;T<g;++T)_[T-1]=p.slice(T*E,(T+1)*E);return _[g-1]=p.slice(g*E),_}function v(p,E,g){for(var _=0,T=0,w=0,N=0,W=0,k=g.length,R=[],L=[];_<k;++_)R[_]=L[_]=_,E[_]=g[_];for(;W<L.length;++W)_=L[W],T=p[_].L,w=p[_].R,N=p[_].C,R[_]===_&&(T!==-1&&R[T]!==T&&(R[_]=R[T]),w!==-1&&R[w]!==w&&(R[_]=R[w])),N!==-1&&(R[N]=_),T!==-1&&_!=R[_]&&(R[T]=R[_],L.lastIndexOf(T)<W&&L.push(T)),w!==-1&&_!=R[_]&&(R[w]=R[_],L.lastIndexOf(w)<W&&L.push(w));for(_=1;_<k;++_)R[_]===_&&(w!==-1&&R[w]!==w?R[_]=R[w]:T!==-1&&R[T]!==T&&(R[_]=R[T]));for(_=1;_<k;++_)if(p[_].type!==0){if(W=_,W!=R[W])do W=R[W],E[_]=E[W]+"/"+E[_];while(W!==0&&R[W]!==-1&&W!=R[W]);R[_]=-1}for(E[0]+="/",_=1;_<k;++_)p[_].type!==2&&(E[_]+="/")}function d(p,E,g){for(var _=p.start,T=p.size,w=[],N=_;g&&T>0&&N>=0;)w.push(E.slice(N*G,N*G+G)),T-=G,N=vr(g,N*4);return w.length===0?B(0):Je(w).slice(0,p.size)}function m(p,E,g,_,T){var w=K;if(p===K){if(E!==0)throw new Error("DIFAT chain shorter than expected")}else if(p!==-1){var N=g[p],W=(_>>>2)-1;if(!N)return;for(var k=0;k<W&&(w=vr(N,k*4))!==K;++k)T.push(w);m(vr(N,_-4),E-1,g,_,T)}}function y(p,E,g,_,T){var w=[],N=[];T||(T=[]);var W=_-1,k=0,R=0;for(k=E;k>=0;){T[k]=!0,w[w.length]=k,N.push(p[k]);var L=g[Math.floor(k*4/_)];if(R=k*4&W,_<4+R)throw new Error("FAT boundary crossed: "+k+" 4 "+_);if(!p[L])break;k=vr(p[L],R)}return{nodes:w,data:f0([N])}}function A(p,E,g,_){var T=p.length,w=[],N=[],W=[],k=[],R=_-1,L=0,Y=0,Q=0,ne=0;for(L=0;L<T;++L)if(W=[],Q=L+E,Q>=T&&(Q-=T),!N[Q]){k=[];var J=[];for(Y=Q;Y>=0;){J[Y]=!0,N[Y]=!0,W[W.length]=Y,k.push(p[Y]);var re=g[Math.floor(Y*4/_)];if(ne=Y*4&R,_<4+ne)throw new Error("FAT boundary crossed: "+Y+" 4 "+_);if(!p[re]||(Y=vr(p[re],ne),J[Y]))break}w[Q]={nodes:W,data:f0([k])}}return w}function F(p,E,g,_,T,w,N,W){for(var k=0,R=_.length?2:0,L=E[p].data,Y=0,Q=0,ne;Y<L.length;Y+=128){var J=L.slice(Y,Y+128);vt(J,64),Q=J.read_shift(2),ne=oa(J,0,Q-R),_.push(ne);var re={name:ne,type:J.read_shift(1),color:J.read_shift(1),L:J.read_shift(4,"i"),R:J.read_shift(4,"i"),C:J.read_shift(4,"i"),clsid:J.read_shift(16),state:J.read_shift(4,"i"),start:0,size:0},he=J.read_shift(2)+J.read_shift(2)+J.read_shift(2)+J.read_shift(2);he!==0&&(re.ct=I(J,J.l-8));var ke=J.read_shift(2)+J.read_shift(2)+J.read_shift(2)+J.read_shift(2);ke!==0&&(re.mt=I(J,J.l-8)),re.start=J.read_shift(4,"i"),re.size=J.read_shift(4,"i"),re.size<0&&re.start<0&&(re.size=re.type=0,re.start=K,re.name=""),re.type===5?(k=re.start,T>0&&k!==K&&(E[k].name="!StreamData")):re.size>=4096?(re.storage="fat",E[re.start]===void 0&&(E[re.start]=y(g,re.start,E.fat_addrs,E.ssz)),E[re.start].name=re.name,re.content=E[re.start].data.slice(0,re.size)):(re.storage="minifat",re.size<0?re.size=0:k!==K&&re.start!==K&&E[k]&&(re.content=d(re,E[k].data,(E[W]||{}).data))),re.content&&vt(re.content,0),w[ne]=re,N.push(re)}}function I(p,E){return new Date((gt(p,E+4)/1e7*Math.pow(2,32)+gt(p,E)/1e7-11644473600)*1e3)}function z(p,E){return o(),c(l.readFileSync(p),E)}function ee(p,E){var g=E&&E.type;switch(g||ge&&Buffer.isBuffer(p)&&(g="buffer"),g||"base64"){case"file":return z(p,E);case"base64":return c(Ct(jt(p)),E);case"binary":return c(Ct(p),E)}return c(p,E)}function D(p,E){var g=E||{},_=g.root||"Root Entry";if(p.FullPaths||(p.FullPaths=[]),p.FileIndex||(p.FileIndex=[]),p.FullPaths.length!==p.FileIndex.length)throw new Error("inconsistent CFB structure");p.FullPaths.length===0&&(p.FullPaths[0]=_+"/",p.FileIndex[0]={name:_,type:5}),g.CLSID&&(p.FileIndex[0].clsid=g.CLSID),V(p)}function V(p){var E="Sh33tJ5";if(!Ae.find(p,"/"+E)){var g=B(4);g[0]=55,g[1]=g[3]=50,g[2]=54,p.FileIndex.push({name:E,type:2,content:g,size:4,L:69,R:69,C:69}),p.FullPaths.push(p.FullPaths[0]+E),P(p)}}function P(p,E){D(p);for(var g=!1,_=!1,T=p.FullPaths.length-1;T>=0;--T){var w=p.FileIndex[T];switch(w.type){case 0:_?g=!0:(p.FileIndex.pop(),p.FullPaths.pop());break;case 1:case 2:case 5:_=!0,isNaN(w.R*w.L*w.C)&&(g=!0),w.R>-1&&w.L>-1&&w.R==w.L&&(g=!0);break;default:g=!0;break}}if(!(!g&&!E)){var N=new Date(1987,1,19),W=0,k=Object.create?Object.create(null):{},R=[];for(T=0;T<p.FullPaths.length;++T)k[p.FullPaths[T]]=!0,p.FileIndex[T].type!==0&&R.push([p.FullPaths[T],p.FileIndex[T]]);for(T=0;T<R.length;++T){var L=n(R[T][0]);_=k[L],_||(R.push([L,{name:i(L).replace("/",""),type:1,clsid:de,ct:N,mt:N,content:null}]),k[L]=!0)}for(R.sort(function(ne,J){return t(ne[0],J[0])}),p.FullPaths=[],p.FileIndex=[],T=0;T<R.length;++T)p.FullPaths[T]=R[T][0],p.FileIndex[T]=R[T][1];for(T=0;T<R.length;++T){var Y=p.FileIndex[T],Q=p.FullPaths[T];if(Y.name=i(Q).replace("/",""),Y.L=Y.R=Y.C=-(Y.color=1),Y.size=Y.content?Y.content.length:0,Y.start=0,Y.clsid=Y.clsid||de,T===0)Y.C=R.length>1?1:-1,Y.size=0,Y.type=5;else if(Q.slice(-1)=="/"){for(W=T+1;W<R.length&&n(p.FullPaths[W])!=Q;++W);for(Y.C=W>=R.length?-1:W,W=T+1;W<R.length&&n(p.FullPaths[W])!=n(Q);++W);Y.R=W>=R.length?-1:W,Y.type=1}else n(p.FullPaths[T+1]||"")==n(Q)&&(Y.R=T+1),Y.type=2}}}function b(p,E){var g=E||{};if(g.fileType=="mad")return ul(p,g);switch(P(p),g.fileType){case"zip":return il(p,g)}var _=function(ne){for(var J=0,re=0,he=0;he<ne.FileIndex.length;++he){var ke=ne.FileIndex[he];if(ke.content){var Ne=ke.content.length;Ne>0&&(Ne<4096?J+=Ne+63>>6:re+=Ne+511>>9)}}for(var et=ne.FullPaths.length+3>>2,Jr=J+7>>3,qr=J+127>>7,Zr=Jr+re+et+qr,hr=Zr+127>>7,Ai=hr<=109?0:Math.ceil((hr-109)/127);Zr+hr+Ai+127>>7>hr;)Ai=++hr<=109?0:Math.ceil((hr-109)/127);var $t=[1,Ai,hr,qr,et,re,J,0];return ne.FileIndex[0].size=J<<6,$t[7]=(ne.FileIndex[0].start=$t[0]+$t[1]+$t[2]+$t[3]+$t[4]+$t[5])+($t[6]+7>>3),$t}(p),T=B(_[7]<<9),w=0,N=0;{for(w=0;w<8;++w)T.write_shift(1,le[w]);for(w=0;w<8;++w)T.write_shift(2,0);for(T.write_shift(2,62),T.write_shift(2,3),T.write_shift(2,65534),T.write_shift(2,9),T.write_shift(2,6),w=0;w<3;++w)T.write_shift(2,0);for(T.write_shift(4,0),T.write_shift(4,_[2]),T.write_shift(4,_[0]+_[1]+_[2]+_[3]-1),T.write_shift(4,0),T.write_shift(4,4096),T.write_shift(4,_[3]?_[0]+_[1]+_[2]-1:K),T.write_shift(4,_[3]),T.write_shift(-4,_[1]?_[0]-1:K),T.write_shift(4,_[1]),w=0;w<109;++w)T.write_shift(-4,w<_[2]?_[1]+w:-1)}if(_[1])for(N=0;N<_[1];++N){for(;w<236+N*127;++w)T.write_shift(-4,w<_[2]?_[1]+w:-1);T.write_shift(-4,N===_[1]-1?K:N+1)}var W=function(ne){for(N+=ne;w<N-1;++w)T.write_shift(-4,w+1);ne&&(++w,T.write_shift(-4,K))};for(N=w=0,N+=_[1];w<N;++w)T.write_shift(-4,xe.DIFSECT);for(N+=_[2];w<N;++w)T.write_shift(-4,xe.FATSECT);W(_[3]),W(_[4]);for(var k=0,R=0,L=p.FileIndex[0];k<p.FileIndex.length;++k)L=p.FileIndex[k],L.content&&(R=L.content.length,!(R<4096)&&(L.start=N,W(R+511>>9)));for(W(_[6]+7>>3);T.l&511;)T.write_shift(-4,xe.ENDOFCHAIN);for(N=w=0,k=0;k<p.FileIndex.length;++k)L=p.FileIndex[k],L.content&&(R=L.content.length,!(!R||R>=4096)&&(L.start=N,W(R+63>>6)));for(;T.l&511;)T.write_shift(-4,xe.ENDOFCHAIN);for(w=0;w<_[4]<<2;++w){var Y=p.FullPaths[w];if(!Y||Y.length===0){for(k=0;k<17;++k)T.write_shift(4,0);for(k=0;k<3;++k)T.write_shift(4,-1);for(k=0;k<12;++k)T.write_shift(4,0);continue}L=p.FileIndex[w],w===0&&(L.start=L.size?L.start-1:K);var Q=w===0&&g.root||L.name;if(R=2*(Q.length+1),T.write_shift(64,Q,"utf16le"),T.write_shift(2,R),T.write_shift(1,L.type),T.write_shift(1,L.color),T.write_shift(-4,L.L),T.write_shift(-4,L.R),T.write_shift(-4,L.C),L.clsid)T.write_shift(16,L.clsid,"hex");else for(k=0;k<4;++k)T.write_shift(4,0);T.write_shift(4,L.state||0),T.write_shift(4,0),T.write_shift(4,0),T.write_shift(4,0),T.write_shift(4,0),T.write_shift(4,L.start),T.write_shift(4,L.size),T.write_shift(4,0)}for(w=1;w<p.FileIndex.length;++w)if(L=p.FileIndex[w],L.size>=4096)if(T.l=L.start+1<<9,ge&&Buffer.isBuffer(L.content))L.content.copy(T,T.l,0,L.size),T.l+=L.size+511&-512;else{for(k=0;k<L.size;++k)T.write_shift(1,L.content[k]);for(;k&511;++k)T.write_shift(1,0)}for(w=1;w<p.FileIndex.length;++w)if(L=p.FileIndex[w],L.size>0&&L.size<4096)if(ge&&Buffer.isBuffer(L.content))L.content.copy(T,T.l,0,L.size),T.l+=L.size+63&-64;else{for(k=0;k<L.size;++k)T.write_shift(1,L.content[k]);for(;k&63;++k)T.write_shift(1,0)}if(ge)T.l=T.length;else for(;T.l<T.length;)T.write_shift(1,0);return T}function U(p,E){var g=p.FullPaths.map(function(k){return k.toUpperCase()}),_=g.map(function(k){var R=k.split("/");return R[R.length-(k.slice(-1)=="/"?2:1)]}),T=!1;E.charCodeAt(0)===47?(T=!0,E=g[0].slice(0,-1)+E):T=E.indexOf("/")!==-1;var w=E.toUpperCase(),N=T===!0?g.indexOf(w):_.indexOf(w);if(N!==-1)return p.FileIndex[N];var W=!w.match(On);for(w=w.replace(rn,""),W&&(w=w.replace(On,"!")),N=0;N<g.length;++N)if((W?g[N].replace(On,"!"):g[N]).replace(rn,"")==w||(W?_[N].replace(On,"!"):_[N]).replace(rn,"")==w)return p.FileIndex[N];return null}var G=64,K=-2,ce="d0cf11e0a1b11ae1",le=[208,207,17,224,161,177,26,225],de="00000000000000000000000000000000",xe={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:K,FREESECT:-1,HEADER_SIGNATURE:ce,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:de,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function ze(p,E,g){o();var _=b(p,g);l.writeFileSync(E,_)}function Be(p){for(var E=new Array(p.length),g=0;g<p.length;++g)E[g]=String.fromCharCode(p[g]);return E.join("")}function Et(p,E){var g=b(p,E);switch(E&&E.type||"buffer"){case"file":return o(),l.writeFileSync(E.filename,g),g;case"binary":return typeof g=="string"?g:Be(g);case"base64":return hn(typeof g=="string"?g:Be(g));case"buffer":if(ge)return Buffer.isBuffer(g)?g:Jt(g);case"array":return typeof g=="string"?Ct(g):g}return g}var xt;function S(p){try{var E=p.InflateRaw,g=new E;if(g._processChunk(new Uint8Array([3,0]),g._finishFlushFlag),g.bytesRead)xt=p;else throw new Error("zlib does not expose bytesRead")}catch(_){console.error("cannot use native zlib: "+(_.message||_))}}function M(p,E){if(!xt)return Na(p,E);var g=xt.InflateRaw,_=new g,T=_._processChunk(p.slice(p.l),_._finishFlushFlag);return p.l+=_.bytesRead,T}function O(p){return xt?xt.deflateRawSync(p):Fa(p)}var C=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],oe=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function ue(p){var E=(p<<1|p<<11)&139536|(p<<5|p<<15)&558144;return(E>>16|E>>8|E)&255}for(var se=typeof Uint8Array<"u",te=se?new Uint8Array(256):[],Fe=0;Fe<256;++Fe)te[Fe]=ue(Fe);function ve(p,E){var g=te[p&255];return E<=8?g>>>8-E:(g=g<<8|te[p>>8&255],E<=16?g>>>16-E:(g=g<<8|te[p>>16&255],g>>>24-E))}function it(p,E){var g=E&7,_=E>>>3;return(p[_]|(g<=6?0:p[_+1]<<8))>>>g&3}function _e(p,E){var g=E&7,_=E>>>3;return(p[_]|(g<=5?0:p[_+1]<<8))>>>g&7}function Bt(p,E){var g=E&7,_=E>>>3;return(p[_]|(g<=4?0:p[_+1]<<8))>>>g&15}function Le(p,E){var g=E&7,_=E>>>3;return(p[_]|(g<=3?0:p[_+1]<<8))>>>g&31}function ae(p,E){var g=E&7,_=E>>>3;return(p[_]|(g<=1?0:p[_+1]<<8))>>>g&127}function Tt(p,E,g){var _=E&7,T=E>>>3,w=(1<<g)-1,N=p[T]>>>_;return g<8-_||(N|=p[T+1]<<8-_,g<16-_)||(N|=p[T+2]<<16-_,g<24-_)||(N|=p[T+3]<<24-_),N&w}function Ut(p,E,g){var _=E&7,T=E>>>3;return _<=5?p[T]|=(g&7)<<_:(p[T]|=g<<_&255,p[T+1]=(g&7)>>8-_),E+3}function cr(p,E,g){var _=E&7,T=E>>>3;return g=(g&1)<<_,p[T]|=g,E+1}function Or(p,E,g){var _=E&7,T=E>>>3;return g<<=_,p[T]|=g&255,g>>>=8,p[T+1]=g,E+8}function ya(p,E,g){var _=E&7,T=E>>>3;return g<<=_,p[T]|=g&255,g>>>=8,p[T+1]=g&255,p[T+2]=g>>>8,E+16}function Ei(p,E){var g=p.length,_=2*g>E?2*g:E+5,T=0;if(g>=E)return p;if(ge){var w=za(_);if(p.copy)p.copy(w);else for(;T<p.length;++T)w[T]=p[T];return w}else if(se){var N=new Uint8Array(_);if(N.set)N.set(p);else for(;T<g;++T)N[T]=p[T];return N}return p.length=_,p}function Nt(p){for(var E=new Array(p),g=0;g<p;++g)E[g]=0;return E}function An(p,E,g){var _=1,T=0,w=0,N=0,W=0,k=p.length,R=se?new Uint16Array(32):Nt(32);for(w=0;w<32;++w)R[w]=0;for(w=k;w<g;++w)p[w]=0;k=p.length;var L=se?new Uint16Array(k):Nt(k);for(w=0;w<k;++w)R[T=p[w]]++,_<T&&(_=T),L[w]=0;for(R[0]=0,w=1;w<=_;++w)R[w+16]=W=W+R[w-1]<<1;for(w=0;w<k;++w)W=p[w],W!=0&&(L[w]=R[W+16]++);var Y=0;for(w=0;w<k;++w)if(Y=p[w],Y!=0)for(W=ve(L[w],_)>>_-Y,N=(1<<_+4-Y)-1;N>=0;--N)E[W|N<<Y]=Y&15|w<<4;return _}var Ti=se?new Uint16Array(512):Nt(512),wi=se?new Uint16Array(32):Nt(32);if(!se){for(var ur=0;ur<512;++ur)Ti[ur]=0;for(ur=0;ur<32;++ur)wi[ur]=0}(function(){for(var p=[],E=0;E<32;E++)p.push(5);An(p,wi,32);var g=[];for(E=0;E<=143;E++)g.push(8);for(;E<=255;E++)g.push(9);for(;E<=279;E++)g.push(7);for(;E<=287;E++)g.push(8);An(g,Ti,288)})();var el=function(){for(var E=se?new Uint8Array(32768):[],g=0,_=0;g<oe.length-1;++g)for(;_<oe[g+1];++_)E[_]=g;for(;_<32768;++_)E[_]=29;var T=se?new Uint8Array(259):[];for(g=0,_=0;g<j.length-1;++g)for(;_<j[g+1];++_)T[_]=g;function w(W,k){for(var R=0;R<W.length;){var L=Math.min(65535,W.length-R),Y=R+L==W.length;for(k.write_shift(1,+Y),k.write_shift(2,L),k.write_shift(2,~L&65535);L-- >0;)k[k.l++]=W[R++]}return k.l}function N(W,k){for(var R=0,L=0,Y=se?new Uint16Array(32768):[];L<W.length;){var Q=Math.min(65535,W.length-L);if(Q<10){for(R=Ut(k,R,+(L+Q==W.length)),R&7&&(R+=8-(R&7)),k.l=R/8|0,k.write_shift(2,Q),k.write_shift(2,~Q&65535);Q-- >0;)k[k.l++]=W[L++];R=k.l*8;continue}R=Ut(k,R,+(L+Q==W.length)+2);for(var ne=0;Q-- >0;){var J=W[L];ne=(ne<<5^J)&32767;var re=-1,he=0;if((re=Y[ne])&&(re|=L&-32768,re>L&&(re-=32768),re<L))for(;W[re+he]==W[L+he]&&he<250;)++he;if(he>2){J=T[he],J<=22?R=Or(k,R,te[J+1]>>1)-1:(Or(k,R,3),R+=5,Or(k,R,te[J-23]>>5),R+=3);var ke=J<8?0:J-4>>2;ke>0&&(ya(k,R,he-j[J]),R+=ke),J=E[L-re],R=Or(k,R,te[J]>>3),R-=3;var Ne=J<4?0:J-2>>1;Ne>0&&(ya(k,R,L-re-oe[J]),R+=Ne);for(var et=0;et<he;++et)Y[ne]=L&32767,ne=(ne<<5^W[L])&32767,++L;Q-=he-1}else J<=143?J=J+48:R=cr(k,R,1),R=Or(k,R,te[J]),Y[ne]=L&32767,++L}R=Or(k,R,0)-1}return k.l=(R+7)/8|0,k.l}return function(k,R){return k.length<8?w(k,R):N(k,R)}}();function Fa(p){var E=B(50+Math.floor(p.length*1.1)),g=el(p,E);return E.slice(0,g)}var Ca=se?new Uint16Array(32768):Nt(32768),Oa=se?new Uint16Array(32768):Nt(32768),Da=se?new Uint16Array(128):Nt(128),Ia=1,ka=1;function tl(p,E){var g=Le(p,E)+257;E+=5;var _=Le(p,E)+1;E+=5;var T=Bt(p,E)+4;E+=4;for(var w=0,N=se?new Uint8Array(19):Nt(19),W=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],k=1,R=se?new Uint8Array(8):Nt(8),L=se?new Uint8Array(8):Nt(8),Y=N.length,Q=0;Q<T;++Q)N[C[Q]]=w=_e(p,E),k<w&&(k=w),R[w]++,E+=3;var ne=0;for(R[0]=0,Q=1;Q<=k;++Q)L[Q]=ne=ne+R[Q-1]<<1;for(Q=0;Q<Y;++Q)(ne=N[Q])!=0&&(W[Q]=L[ne]++);var J=0;for(Q=0;Q<Y;++Q)if(J=N[Q],J!=0){ne=te[W[Q]]>>8-J;for(var re=(1<<7-J)-1;re>=0;--re)Da[ne|re<<J]=J&7|Q<<3}var he=[];for(k=1;he.length<g+_;)switch(ne=Da[ae(p,E)],E+=ne&7,ne>>>=3){case 16:for(w=3+it(p,E),E+=2,ne=he[he.length-1];w-- >0;)he.push(ne);break;case 17:for(w=3+_e(p,E),E+=3;w-- >0;)he.push(0);break;case 18:for(w=11+ae(p,E),E+=7;w-- >0;)he.push(0);break;default:he.push(ne),k<ne&&(k=ne);break}var ke=he.slice(0,g),Ne=he.slice(g);for(Q=g;Q<286;++Q)ke[Q]=0;for(Q=_;Q<30;++Q)Ne[Q]=0;return Ia=An(ke,Ca,286),ka=An(Ne,Oa,30),E}function rl(p,E){if(p[0]==3&&!(p[1]&3))return[gr(E),2];for(var g=0,_=0,T=za(E||1<<18),w=0,N=T.length>>>0,W=0,k=0;!(_&1);){if(_=_e(p,g),g+=3,_>>>1)_>>1==1?(W=9,k=5):(g=tl(p,g),W=Ia,k=ka);else{g&7&&(g+=8-(g&7));var R=p[g>>>3]|p[(g>>>3)+1]<<8;if(g+=32,R>0)for(!E&&N<w+R&&(T=Ei(T,w+R),N=T.length);R-- >0;)T[w++]=p[g>>>3],g+=8;continue}for(;;){!E&&N<w+32767&&(T=Ei(T,w+32767),N=T.length);var L=Tt(p,g,W),Y=_>>>1==1?Ti[L]:Ca[L];if(g+=Y&15,Y>>>=4,!(Y>>>8&255))T[w++]=Y;else{if(Y==256)break;Y-=257;var Q=Y<8?0:Y-4>>2;Q>5&&(Q=0);var ne=w+j[Y];Q>0&&(ne+=Tt(p,g,Q),g+=Q),L=Tt(p,g,k),Y=_>>>1==1?wi[L]:Oa[L],g+=Y&15,Y>>>=4;var J=Y<4?0:Y-2>>1,re=oe[Y];for(J>0&&(re+=Tt(p,g,J),g+=J),!E&&N<ne&&(T=Ei(T,ne+100),N=T.length);w<ne;)T[w]=T[w-re],++w}}}return E?[T,g+7>>>3]:[T.slice(0,w),g+7>>>3]}function Na(p,E){var g=p.slice(p.l||0),_=rl(g,E);return p.l+=_[1],_[0]}function Ra(p,E){if(p)typeof console<"u"&&console.error(E);else throw new Error(E)}function La(p,E){var g=p;vt(g,0);var _=[],T=[],w={FileIndex:_,FullPaths:T};D(w,{root:E.root});for(var N=g.length-4;(g[N]!=80||g[N+1]!=75||g[N+2]!=5||g[N+3]!=6)&&N>=0;)--N;g.l=N+4,g.l+=4;var W=g.read_shift(2);g.l+=6;var k=g.read_shift(4);for(g.l=k,N=0;N<W;++N){g.l+=20;var R=g.read_shift(4),L=g.read_shift(4),Y=g.read_shift(2),Q=g.read_shift(2),ne=g.read_shift(2);g.l+=8;var J=g.read_shift(4),re=f(g.slice(g.l+Y,g.l+Y+Q));g.l+=Y+Q+ne;var he=g.l;g.l=J+4,nl(g,R,L,w,re),g.l=he}return w}function nl(p,E,g,_,T){p.l+=2;var w=p.read_shift(2),N=p.read_shift(2),W=s(p);if(w&8257)throw new Error("Unsupported ZIP encryption");for(var k=p.read_shift(4),R=p.read_shift(4),L=p.read_shift(4),Y=p.read_shift(2),Q=p.read_shift(2),ne="",J=0;J<Y;++J)ne+=String.fromCharCode(p[p.l++]);if(Q){var re=f(p.slice(p.l,p.l+Q));(re[21589]||{}).mt&&(W=re[21589].mt),((T||{})[21589]||{}).mt&&(W=T[21589].mt)}p.l+=Q;var he=p.slice(p.l,p.l+R);switch(N){case 8:he=M(p,L);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+N)}var ke=!1;w&8&&(k=p.read_shift(4),k==134695760&&(k=p.read_shift(4),ke=!0),R=p.read_shift(4),L=p.read_shift(4)),R!=E&&Ra(ke,"Bad compressed size: "+E+" != "+R),L!=g&&Ra(ke,"Bad uncompressed size: "+g+" != "+L),Si(_,ne,he,{unsafe:!0,mt:W})}function il(p,E){var g=E||{},_=[],T=[],w=B(1),N=g.compression?8:0,W=0,k=0,R=0,L=0,Y=0,Q=p.FullPaths[0],ne=Q,J=p.FileIndex[0],re=[],he=0;for(k=1;k<p.FullPaths.length;++k)if(ne=p.FullPaths[k].slice(Q.length),J=p.FileIndex[k],!(!J.size||!J.content||ne=="Sh33tJ5")){var ke=L,Ne=B(ne.length);for(R=0;R<ne.length;++R)Ne.write_shift(1,ne.charCodeAt(R)&127);Ne=Ne.slice(0,Ne.l),re[Y]=sh.buf(J.content,0);var et=J.content;N==8&&(et=O(et)),w=B(30),w.write_shift(4,67324752),w.write_shift(2,20),w.write_shift(2,W),w.write_shift(2,N),J.mt?a(w,J.mt):w.write_shift(4,0),w.write_shift(-4,re[Y]),w.write_shift(4,et.length),w.write_shift(4,J.content.length),w.write_shift(2,Ne.length),w.write_shift(2,0),L+=w.length,_.push(w),L+=Ne.length,_.push(Ne),L+=et.length,_.push(et),w=B(46),w.write_shift(4,33639248),w.write_shift(2,0),w.write_shift(2,20),w.write_shift(2,W),w.write_shift(2,N),w.write_shift(4,0),w.write_shift(-4,re[Y]),w.write_shift(4,et.length),w.write_shift(4,J.content.length),w.write_shift(2,Ne.length),w.write_shift(2,0),w.write_shift(2,0),w.write_shift(2,0),w.write_shift(2,0),w.write_shift(4,0),w.write_shift(4,ke),he+=w.l,T.push(w),he+=Ne.length,T.push(Ne),++Y}return w=B(22),w.write_shift(4,101010256),w.write_shift(2,0),w.write_shift(2,0),w.write_shift(2,Y),w.write_shift(2,Y),w.write_shift(4,he),w.write_shift(4,L),w.write_shift(2,0),Je([Je(_),Je(T),w])}var yn={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function al(p,E){if(p.ctype)return p.ctype;var g=p.name||"",_=g.match(/\.([^\.]+)$/);return _&&yn[_[1]]||E&&(_=(g=E).match(/[\.\\]([^\.\\])+$/),_&&yn[_[1]])?yn[_[1]]:"application/octet-stream"}function sl(p){for(var E=hn(p),g=[],_=0;_<E.length;_+=76)g.push(E.slice(_,_+76));return g.join(`\r
|
||
`)+`\r
|
||
`}function fl(p){var E=p.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(R){var L=R.charCodeAt(0).toString(16).toUpperCase();return"="+(L.length==1?"0"+L:L)});E=E.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),E.charAt(0)==`
|
||
`&&(E="=0D"+E.slice(1)),E=E.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
|
||
=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var g=[],_=E.split(`\r
|
||
`),T=0;T<_.length;++T){var w=_[T];if(w.length==0){g.push("");continue}for(var N=0;N<w.length;){var W=76,k=w.slice(N,N+W);k.charAt(W-1)=="="?W--:k.charAt(W-2)=="="?W-=2:k.charAt(W-3)=="="&&(W-=3),k=w.slice(N,N+W),N+=W,N<w.length&&(k+="="),g.push(k)}}return g.join(`\r
|
||
`)}function ll(p){for(var E=[],g=0;g<p.length;++g){for(var _=p[g];g<=p.length&&_.charAt(_.length-1)=="=";)_=_.slice(0,_.length-1)+p[++g];E.push(_)}for(var T=0;T<E.length;++T)E[T]=E[T].replace(/[=][0-9A-Fa-f]{2}/g,function(w){return String.fromCharCode(parseInt(w.slice(1),16))});return Ct(E.join(`\r
|
||
`))}function ol(p,E,g){for(var _="",T="",w="",N,W=0;W<10;++W){var k=E[W];if(!k||k.match(/^\s*$/))break;var R=k.match(/^(.*?):\s*([^\s].*)$/);if(R)switch(R[1].toLowerCase()){case"content-location":_=R[2].trim();break;case"content-type":w=R[2].trim();break;case"content-transfer-encoding":T=R[2].trim();break}}switch(++W,T.toLowerCase()){case"base64":N=Ct(jt(E.slice(W).join("")));break;case"quoted-printable":N=ll(E.slice(W));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+T)}var L=Si(p,_.slice(g.length),N,{unsafe:!0});w&&(L.ctype=w)}function cl(p,E){if(Be(p.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var g=E&&E.root||"",_=(ge&&Buffer.isBuffer(p)?p.toString("binary"):Be(p)).split(`\r
|
||
`),T=0,w="";for(T=0;T<_.length;++T)if(w=_[T],!!/^Content-Location:/i.test(w)&&(w=w.slice(w.indexOf("file")),g||(g=w.slice(0,w.lastIndexOf("/")+1)),w.slice(0,g.length)!=g))for(;g.length>0&&(g=g.slice(0,g.length-1),g=g.slice(0,g.lastIndexOf("/")+1),w.slice(0,g.length)!=g););var N=(_[1]||"").match(/boundary="(.*?)"/);if(!N)throw new Error("MAD cannot find boundary");var W="--"+(N[1]||""),k=[],R=[],L={FileIndex:k,FullPaths:R};D(L);var Y,Q=0;for(T=0;T<_.length;++T){var ne=_[T];ne!==W&&ne!==W+"--"||(Q++&&ol(L,_.slice(Y,T),g),Y=T)}return L}function ul(p,E){var g=E||{},_=g.boundary||"SheetJS";_="------="+_;for(var T=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+_.slice(2)+'"',"","",""],w=p.FullPaths[0],N=w,W=p.FileIndex[0],k=1;k<p.FullPaths.length;++k)if(N=p.FullPaths[k].slice(w.length),W=p.FileIndex[k],!(!W.size||!W.content||N=="Sh33tJ5")){N=N.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(he){return"_x"+he.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(he){return"_u"+he.charCodeAt(0).toString(16)+"_"});for(var R=W.content,L=ge&&Buffer.isBuffer(R)?R.toString("binary"):Be(R),Y=0,Q=Math.min(1024,L.length),ne=0,J=0;J<=Q;++J)(ne=L.charCodeAt(J))>=32&&ne<128&&++Y;var re=Y>=Q*4/5;T.push(_),T.push("Content-Location: "+(g.root||"file:///C:/SheetJS/")+N),T.push("Content-Transfer-Encoding: "+(re?"quoted-printable":"base64")),T.push("Content-Type: "+al(W,N)),T.push(""),T.push(re?fl(L):sl(L))}return T.push(_+`--\r
|
||
`),T.join(`\r
|
||
`)}function hl(p){var E={};return D(E,p),E}function Si(p,E,g,_){var T=_&&_.unsafe;T||D(p);var w=!T&&Ae.find(p,E);if(!w){var N=p.FullPaths[0];E.slice(0,N.length)==N?N=E:(N.slice(-1)!="/"&&(N+="/"),N=(N+E).replace("//","/")),w={name:i(E),type:2},p.FileIndex.push(w),p.FullPaths.push(N),T||Ae.utils.cfb_gc(p)}return w.content=g,w.size=g?g.length:0,_&&(_.CLSID&&(w.clsid=_.CLSID),_.mt&&(w.mt=_.mt),_.ct&&(w.ct=_.ct)),w}function dl(p,E){D(p);var g=Ae.find(p,E);if(g){for(var _=0;_<p.FileIndex.length;++_)if(p.FileIndex[_]==g)return p.FileIndex.splice(_,1),p.FullPaths.splice(_,1),!0}return!1}function xl(p,E,g){D(p);var _=Ae.find(p,E);if(_){for(var T=0;T<p.FileIndex.length;++T)if(p.FileIndex[T]==_)return p.FileIndex[T].name=i(g),p.FullPaths[T]=g,!0}return!1}function pl(p){P(p,!0)}return r.find=U,r.read=ee,r.parse=c,r.write=Et,r.writeFile=ze,r.utils={cfb_new:hl,cfb_add:Si,cfb_del:dl,cfb_mov:xl,cfb_gc:pl,ReadShift:an,CheckField:qs,prep_blob:vt,bconcat:Je,use_zlib:S,_deflateRaw:Fa,_inflateRaw:Na,consts:xe},r}();function fh(e){return typeof e=="string"?hi(e):Array.isArray(e)?Ru(e):e}function _n(e,r,t){if(typeof Deno<"u"){if(t&&typeof r=="string")switch(t){case"utf8":r=new TextEncoder(t).encode(r);break;case"binary":r=hi(r);break;default:throw new Error("Unsupported encoding "+t)}return Deno.writeFileSync(e,r)}var n=t=="utf8"?Wt(r):r;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var i=new Blob([fh(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(i,e);if(typeof saveAs<"u")return saveAs(i,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var a=URL.createObjectURL(i);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),chrome.downloads.download({url:a,filename:e,saveAs:!0});var s=document.createElement("a");if(s.download!=null)return s.download=e,s.href=a,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),a}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var f=File(e);return f.open("w"),f.encoding="binary",Array.isArray(r)&&(r=gn(r)),f.write(r),f.close(),r}catch(l){if(!l.message||!l.message.match(/onstruct/))throw l}throw new Error("cannot save file "+e)}function Qe(e){for(var r=Object.keys(e),t=[],n=0;n<r.length;++n)Object.prototype.hasOwnProperty.call(e,r[n])&&t.push(r[n]);return t}function e0(e,r){for(var t=[],n=Qe(e),i=0;i!==n.length;++i)t[e[n[i]][r]]==null&&(t[e[n[i]][r]]=n[i]);return t}function aa(e){for(var r=[],t=Qe(e),n=0;n!==t.length;++n)r[e[t[n]]]=t[n];return r}function pi(e){for(var r=[],t=Qe(e),n=0;n!==t.length;++n)r[e[t[n]]]=parseInt(t[n],10);return r}function lh(e){for(var r=[],t=Qe(e),n=0;n!==t.length;++n)r[e[t[n]]]==null&&(r[e[t[n]]]=[]),r[e[t[n]]].push(t[n]);return r}var jn=new Date(1899,11,30,0,0,0);function ut(e,r){var t=e.getTime();r&&(t-=1462*24*60*60*1e3);var n=jn.getTime()+(e.getTimezoneOffset()-jn.getTimezoneOffset())*6e4;return(t-n)/(24*60*60*1e3)}var Ls=new Date,oh=jn.getTime()+(Ls.getTimezoneOffset()-jn.getTimezoneOffset())*6e4,t0=Ls.getTimezoneOffset();function Ps(e){var r=new Date;return r.setTime(e*24*60*60*1e3+oh),r.getTimezoneOffset()!==t0&&r.setTime(r.getTime()+(r.getTimezoneOffset()-t0)*6e4),r}var r0=new Date("2017-02-19T19:06:09.000Z"),Ms=isNaN(r0.getFullYear())?new Date("2/19/17"):r0,ch=Ms.getFullYear()==2017;function ft(e,r){var t=new Date(e);if(ch)return r>0?t.setTime(t.getTime()+t.getTimezoneOffset()*60*1e3):r<0&&t.setTime(t.getTime()-t.getTimezoneOffset()*60*1e3),t;if(e instanceof Date)return e;if(Ms.getFullYear()==1917&&!isNaN(t.getFullYear())){var n=t.getFullYear();return e.indexOf(""+n)>-1||t.setFullYear(t.getFullYear()+100),t}var i=e.match(/\d+/g)||["2017","2","19","0","0","0"],a=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(a=new Date(a.getTime()-a.getTimezoneOffset()*60*1e3)),a}function vi(e,r){if(ge&&Buffer.isBuffer(e)){if(r){if(e[0]==255&&e[1]==254)return Wt(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return Wt(Nu(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(r){if(e[0]==255&&e[1]==254)return Wt(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return Wt(new TextDecoder("utf-16be").decode(e.slice(2)))}var t={"€":"","‚":"",ƒ:"","„":"","…":"
","†":"","‡":"","ˆ":"","‰":"",Š:"","‹":"",Œ:"",Ž:"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"",š:"","›":"",œ:"",ž:"",Ÿ:""};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(a){return t[a]||a})}catch{}for(var n=[],i=0;i!=e.length;++i)n.push(String.fromCharCode(e[i]));return n.join("")}function ht(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 r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=ht(e[t]));return r}function Pe(e,r){for(var t="";t.length<r;)t+=e;return t}function Gt(e){var r=Number(e);if(!isNaN(r))return isFinite(r)?r:NaN;if(!/\d/.test(e))return r;var t=1,n=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return t*=100,""});return!isNaN(r=Number(n))||(n=n.replace(/[(](.*)[)]/,function(i,a){return t=-t,a}),!isNaN(r=Number(n)))?r/t:r}var uh=["january","february","march","april","may","june","july","august","september","october","november","december"];function dn(e){var r=new Date(e),t=new Date(NaN),n=r.getYear(),i=r.getMonth(),a=r.getDate();if(isNaN(a))return t;var s=e.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),s.length>3&&uh.indexOf(s)==-1)return t}else if(s.match(/[a-z]/))return t;return n<0||n>8099?t:(i>0||a>1)&&n!=101?r:e.match(/[^-0-9:,\/\\]/)?t:r}function pe(e,r,t){if(e.FullPaths){if(typeof t=="string"){var n;return ge?n=Jt(t):n=Lu(t),Ae.utils.cfb_add(e,r,n)}Ae.utils.cfb_add(e,r,t)}else e.file(r,t)}function sa(){return Ae.utils.cfb_new()}var We=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
|
||
`,hh={""":'"',"'":"'",">":">","<":"<","&":"&"},fa=aa(hh),la=/[&<>'"]/g,dh=/[\u0000-\u0008\u000b-\u001f]/g;function we(e){var r=e+"";return r.replace(la,function(t){return fa[t]}).replace(dh,function(t){return"_x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+"_"})}function n0(e){return we(e).replace(/ /g,"_x0020_")}var bs=/[\u0000-\u001f]/g;function xh(e){var r=e+"";return r.replace(la,function(t){return fa[t]}).replace(/\n/g,"<br/>").replace(bs,function(t){return"&#x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+";"})}function ph(e){var r=e+"";return r.replace(la,function(t){return fa[t]}).replace(bs,function(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"})}function vh(e){return e.replace(/(\r\n|[\r\n])/g," ")}function mh(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function ki(e){for(var r="",t=0,n=0,i=0,a=0,s=0,f=0;t<e.length;){if(n=e.charCodeAt(t++),n<128){r+=String.fromCharCode(n);continue}if(i=e.charCodeAt(t++),n>191&&n<224){s=(n&31)<<6,s|=i&63,r+=String.fromCharCode(s);continue}if(a=e.charCodeAt(t++),n<240){r+=String.fromCharCode((n&15)<<12|(i&63)<<6|a&63);continue}s=e.charCodeAt(t++),f=((n&7)<<18|(i&63)<<12|(a&63)<<6|s&63)-65536,r+=String.fromCharCode(55296+(f>>>10&1023)),r+=String.fromCharCode(56320+(f&1023))}return r}function i0(e){var r=gr(2*e.length),t,n,i=1,a=0,s=0,f;for(n=0;n<e.length;n+=i)i=1,(f=e.charCodeAt(n))<128?t=f:f<224?(t=(f&31)*64+(e.charCodeAt(n+1)&63),i=2):f<240?(t=(f&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),i=3):(i=4,t=(f&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+3)&63),t-=65536,s=55296+(t>>>10&1023),t=56320+(t&1023)),s!==0&&(r[a++]=s&255,r[a++]=s>>>8,s=0),r[a++]=t%256,r[a++]=t>>>8;return r.slice(0,a).toString("ucs2")}function a0(e){return Jt(e,"binary").toString("utf8")}var In="foo bar bazâð£",nn=ge&&(a0(In)==ki(In)&&a0||i0(In)==ki(In)&&i0)||ki,Wt=ge?function(e){return Jt(e,"utf8").toString("binary")}:function(e){for(var r=[],t=0,n=0,i=0;t<e.length;)switch(n=e.charCodeAt(t++),!0){case n<128:r.push(String.fromCharCode(n));break;case n<2048:r.push(String.fromCharCode(192+(n>>6))),r.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,i=e.charCodeAt(t++)-56320+(n<<10),r.push(String.fromCharCode(240+(i>>18&7))),r.push(String.fromCharCode(144+(i>>12&63))),r.push(String.fromCharCode(128+(i>>6&63))),r.push(String.fromCharCode(128+(i&63)));break;default:r.push(String.fromCharCode(224+(n>>12))),r.push(String.fromCharCode(128+(n>>6&63))),r.push(String.fromCharCode(128+(n&63)))}return r.join("")},gh=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(r){return[new RegExp("&"+r[0]+";","ig"),r[1]]});return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
|
||
`).replace(/<[^>]*>/g,""),i=0;i<e.length;++i)n=n.replace(e[i][0],e[i][1]);return n}}(),Bs=/(^\s|\s$|\n)/;function qe(e,r){return"<"+e+(r.match(Bs)?' xml:space="preserve"':"")+">"+r+"</"+e+">"}function xn(e){return Qe(e).map(function(r){return" "+r+'="'+e[r]+'"'}).join("")}function q(e,r,t){return"<"+e+(t!=null?xn(t):"")+(r!=null?(r.match(Bs)?' xml:space="preserve"':"")+">"+r+"</"+e:"/")+">"}function Gi(e,r){try{return e.toISOString().replace(/\.\d*/,"")}catch(t){if(r)throw t}return""}function _h(e,r){switch(typeof e){case"string":var t=q("vt:lpwstr",we(e));return r&&(t=t.replace(/"/g,"_x0022_")),t;case"number":return q((e|0)==e?"vt:i4":"vt:r8",we(String(e)));case"boolean":return q("vt:bool",e?"true":"false")}if(e instanceof Date)return q("vt:filetime",Gi(e));throw new Error("Unable to serialize "+e)}var Ve={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"},zr=["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"],mt={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 Eh(e,r){for(var t=1-2*(e[r+7]>>>7),n=((e[r+7]&127)<<4)+(e[r+6]>>>4&15),i=e[r+6]&15,a=5;a>=0;--a)i=i*256+e[r+a];return n==2047?i==0?t*(1/0):NaN:(n==0?n=-1022:(n-=1023,i+=Math.pow(2,52)),t*Math.pow(2,n-52)*i)}function Th(e,r,t){var n=(r<0||1/r==-1/0?1:0)<<7,i=0,a=0,s=n?-r:r;isFinite(s)?s==0?i=a=0:(i=Math.floor(Math.log(s)/Math.LN2),a=s*Math.pow(2,52-i),i<=-1023&&(!isFinite(a)||a<Math.pow(2,52))?i=-1022:(a-=Math.pow(2,52),i+=1023)):(i=2047,a=isNaN(r)?26985:0);for(var f=0;f<=5;++f,a/=256)e[t+f]=a&255;e[t+6]=(i&15)<<4|a&15,e[t+7]=i>>4|n}var s0=function(e){for(var r=[],t=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var i=0,a=e[0][n].length;i<a;i+=t)r.push.apply(r,e[0][n].slice(i,i+t));return r},f0=ge?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(r){return Buffer.isBuffer(r)?r:Jt(r)})):s0(e)}:s0,l0=function(e,r,t){for(var n=[],i=r;i<t;i+=2)n.push(String.fromCharCode(en(e,i)));return n.join("").replace(rn,"")},oa=ge?function(e,r,t){return Buffer.isBuffer(e)?e.toString("utf16le",r,t).replace(rn,""):l0(e,r,t)}:l0,o0=function(e,r,t){for(var n=[],i=r;i<r+t;++i)n.push(("0"+e[i].toString(16)).slice(-2));return n.join("")},Us=ge?function(e,r,t){return Buffer.isBuffer(e)?e.toString("hex",r,r+t):o0(e,r,t)}:o0,c0=function(e,r,t){for(var n=[],i=r;i<t;i++)n.push(String.fromCharCode(Rr(e,i)));return n.join("")},En=ge?function(r,t,n){return Buffer.isBuffer(r)?r.toString("utf8",t,n):c0(r,t,n)}:c0,$s=function(e,r){var t=gt(e,r);return t>0?En(e,r+4,r+4+t-1):""},Ws=$s,Hs=function(e,r){var t=gt(e,r);return t>0?En(e,r+4,r+4+t-1):""},Vs=Hs,Gs=function(e,r){var t=2*gt(e,r);return t>0?En(e,r+4,r+4+t-1):""},Xs=Gs,zs=function(r,t){var n=gt(r,t);return n>0?oa(r,t+4,t+4+n):""},js=zs,Ks=function(e,r){var t=gt(e,r);return t>0?En(e,r+4,r+4+t):""},Ys=Ks,Js=function(e,r){return Eh(e,r)},Kn=Js,ca=function(r){return Array.isArray(r)||typeof Uint8Array<"u"&&r instanceof Uint8Array};ge&&(Ws=function(r,t){if(!Buffer.isBuffer(r))return $s(r,t);var n=r.readUInt32LE(t);return n>0?r.toString("utf8",t+4,t+4+n-1):""},Vs=function(r,t){if(!Buffer.isBuffer(r))return Hs(r,t);var n=r.readUInt32LE(t);return n>0?r.toString("utf8",t+4,t+4+n-1):""},Xs=function(r,t){if(!Buffer.isBuffer(r))return Gs(r,t);var n=2*r.readUInt32LE(t);return r.toString("utf16le",t+4,t+4+n-1)},js=function(r,t){if(!Buffer.isBuffer(r))return zs(r,t);var n=r.readUInt32LE(t);return r.toString("utf16le",t+4,t+4+n)},Ys=function(r,t){if(!Buffer.isBuffer(r))return Ks(r,t);var n=r.readUInt32LE(t);return r.toString("utf8",t+4,t+4+n)},Kn=function(r,t){return Buffer.isBuffer(r)?r.readDoubleLE(t):Js(r,t)},ca=function(r){return Buffer.isBuffer(r)||Array.isArray(r)||typeof Uint8Array<"u"&&r instanceof Uint8Array});var Rr=function(e,r){return e[r]},en=function(e,r){return e[r+1]*256+e[r]},wh=function(e,r){var t=e[r+1]*256+e[r];return t<32768?t:(65535-t+1)*-1},gt=function(e,r){return e[r+3]*(1<<24)+(e[r+2]<<16)+(e[r+1]<<8)+e[r]},vr=function(e,r){return e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]},Sh=function(e,r){return e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]};function an(e,r){var t="",n,i,a=[],s,f,l,o;switch(r){case"dbcs":if(o=this.l,ge&&Buffer.isBuffer(this))t=this.slice(this.l,this.l+2*e).toString("utf16le");else for(l=0;l<e;++l)t+=String.fromCharCode(en(this,o)),o+=2;e*=2;break;case"utf8":t=En(this,this.l,this.l+e);break;case"utf16le":e*=2,t=oa(this,this.l,this.l+e);break;case"wstr":return an.call(this,e,"dbcs");case"lpstr-ansi":t=Ws(this,this.l),e=4+gt(this,this.l);break;case"lpstr-cp":t=Vs(this,this.l),e=4+gt(this,this.l);break;case"lpwstr":t=Xs(this,this.l),e=4+2*gt(this,this.l);break;case"lpp4":e=4+gt(this,this.l),t=js(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+gt(this,this.l),t=Ys(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,t="";(s=Rr(this,this.l+e++))!==0;)a.push(Cn(s));t=a.join("");break;case"_wstr":for(e=0,t="";(s=en(this,this.l+e))!==0;)a.push(Cn(s)),e+=2;e+=2,t=a.join("");break;case"dbcs-cont":for(t="",o=this.l,l=0;l<e;++l){if(this.lens&&this.lens.indexOf(o)!==-1)return s=Rr(this,o),this.l=o+1,f=an.call(this,e-l,s?"dbcs-cont":"sbcs-cont"),a.join("")+f;a.push(Cn(en(this,o))),o+=2}t=a.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(t="",o=this.l,l=0;l!=e;++l){if(this.lens&&this.lens.indexOf(o)!==-1)return s=Rr(this,o),this.l=o+1,f=an.call(this,e-l,s?"dbcs-cont":"sbcs-cont"),a.join("")+f;a.push(Cn(Rr(this,o))),o+=1}t=a.join("");break;default:switch(e){case 1:return n=Rr(this,this.l),this.l++,n;case 2:return n=(r==="i"?wh:en)(this,this.l),this.l+=2,n;case 4:case-4:return r==="i"||!(this[this.l+3]&128)?(n=(e>0?vr:Sh)(this,this.l),this.l+=4,n):(i=gt(this,this.l),this.l+=4,i);case 8:case-8:if(r==="f")return e==8?i=Kn(this,this.l):i=Kn([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,i;e=8;case 16:t=Us(this,this.l,e);break}}return this.l+=e,t}var Ah=function(e,r,t){e[t]=r&255,e[t+1]=r>>>8&255,e[t+2]=r>>>16&255,e[t+3]=r>>>24&255},yh=function(e,r,t){e[t]=r&255,e[t+1]=r>>8&255,e[t+2]=r>>16&255,e[t+3]=r>>24&255},Fh=function(e,r,t){e[t]=r&255,e[t+1]=r>>>8&255};function Ch(e,r,t){var n=0,i=0;if(t==="dbcs"){for(i=0;i!=r.length;++i)Fh(this,r.charCodeAt(i),this.l+2*i);n=2*r.length}else if(t==="sbcs"){for(r=r.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=r.length;++i)this[this.l+i]=r.charCodeAt(i)&255;n=r.length}else if(t==="hex"){for(;i<e;++i)this[this.l++]=parseInt(r.slice(2*i,2*i+2),16)||0;return this}else if(t==="utf16le"){var a=Math.min(this.l+e,this.length);for(i=0;i<Math.min(r.length,e);++i){var s=r.charCodeAt(i);this[this.l++]=s&255,this[this.l++]=s>>8}for(;this.l<a;)this[this.l++]=0;return this}else switch(e){case 1:n=1,this[this.l]=r&255;break;case 2:n=2,this[this.l]=r&255,r>>>=8,this[this.l+1]=r&255;break;case 3:n=3,this[this.l]=r&255,r>>>=8,this[this.l+1]=r&255,r>>>=8,this[this.l+2]=r&255;break;case 4:n=4,Ah(this,r,this.l);break;case 8:if(n=8,t==="f"){Th(this,r,this.l);break}case 16:break;case-4:n=4,yh(this,r,this.l);break}return this.l+=n,this}function qs(e,r){var t=Us(this,this.l,e.length>>1);if(t!==e)throw new Error(r+"Expected "+e+" saw "+t);this.l+=e.length>>1}function vt(e,r){e.l=r,e.read_shift=an,e.chk=qs,e.write_shift=Ch}function Mt(e,r){e.l+=r}function B(e){var r=gr(e);return vt(r,0),r}function ct(){var e=[],r=ge?256:2048,t=function(o){var c=B(o);return vt(c,0),c},n=t(r),i=function(){n&&(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&e.push(n),n=null)},a=function(o){return n&&o<n.length-n.l?n:(i(),n=t(Math.max(o+1,r)))},s=function(){return i(),Je(e)},f=function(o){i(),n=o,n.l==null&&(n.l=n.length),a(r)};return{next:a,push:f,end:s,_bufs:e}}function X(e,r,t,n){var i=+r,a;if(!isNaN(i)){n||(n=Ev[i].p||(t||[]).length||0),a=1+(i>=128?1:0)+1,n>=128&&++a,n>=16384&&++a,n>=2097152&&++a;var s=e.next(a);i<=127?s.write_shift(1,i):(s.write_shift(1,(i&127)+128),s.write_shift(1,i>>7));for(var f=0;f!=4;++f)if(n>=128)s.write_shift(1,(n&127)+128),n>>=7;else{s.write_shift(1,n);break}n>0&&ca(t)&&e.push(t)}}function sn(e,r,t){var n=ht(e);if(r.s?(n.cRel&&(n.c+=r.s.c),n.rRel&&(n.r+=r.s.r)):(n.cRel&&(n.c+=r.c),n.rRel&&(n.r+=r.r)),!t||t.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function u0(e,r,t){var n=ht(e);return n.s=sn(n.s,r.s,t),n.e=sn(n.e,r.s,t),n}function fn(e,r){if(e.cRel&&e.c<0)for(e=ht(e);e.c<0;)e.c+=r>8?16384:256;if(e.rRel&&e.r<0)for(e=ht(e);e.r<0;)e.r+=r>8?1048576:r>5?65536:16384;var t=Se(e);return!e.cRel&&e.cRel!=null&&(t=Ih(t)),!e.rRel&&e.rRel!=null&&(t=Oh(t)),t}function Ni(e,r){return e.s.r==0&&!e.s.rRel&&e.e.r==(r.biff>=12?1048575:r.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+rt(e.s.c)+":"+(e.e.cRel?"":"$")+rt(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(r.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+Ze(e.s.r)+":"+(e.e.rRel?"":"$")+Ze(e.e.r):fn(e.s,r.biff)+":"+fn(e.e,r.biff)}function ua(e){return parseInt(Dh(e),10)-1}function Ze(e){return""+(e+1)}function Oh(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function Dh(e){return e.replace(/\$(\d+)$/,"$1")}function ha(e){for(var r=kh(e),t=0,n=0;n!==r.length;++n)t=26*t+r.charCodeAt(n)-64;return t-1}function rt(e){if(e<0)throw new Error("invalid column "+e);var r="";for(++e;e;e=Math.floor((e-1)/26))r=String.fromCharCode((e-1)%26+65)+r;return r}function Ih(e){return e.replace(/^([A-Z])/,"$$$1")}function kh(e){return e.replace(/^\$([A-Z])/,"$1")}function Nh(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Ge(e){for(var r=0,t=0,n=0;n<e.length;++n){var i=e.charCodeAt(n);i>=48&&i<=57?r=10*r+(i-48):i>=65&&i<=90&&(t=26*t+(i-64))}return{c:t-1,r:r-1}}function Se(e){for(var r=e.c+1,t="";r;r=(r-1)/26|0)t=String.fromCharCode((r-1)%26+65)+t;return t+(e.r+1)}function _t(e){var r=e.indexOf(":");return r==-1?{s:Ge(e),e:Ge(e)}:{s:Ge(e.slice(0,r)),e:Ge(e.slice(r+1))}}function $e(e,r){return typeof r>"u"||typeof r=="number"?$e(e.s,e.e):(typeof e!="string"&&(e=Se(e)),typeof r!="string"&&(r=Se(r)),e==r?e:e+":"+r)}function Ie(e){var r={s:{c:0,r:0},e:{c:0,r:0}},t=0,n=0,i=0,a=e.length;for(t=0;n<a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)t=26*t+i;for(r.s.c=--t,t=0;n<a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)t=10*t+i;if(r.s.r=--t,n===a||i!=10)return r.e.c=r.s.c,r.e.r=r.s.r,r;for(++n,t=0;n!=a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)t=26*t+i;for(r.e.c=--t,t=0;n!=a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)t=10*t+i;return r.e.r=--t,r}function h0(e,r){var t=e.t=="d"&&r instanceof Date;if(e.z!=null)try{return e.w=rr(e.z,t?ut(r):r)}catch{}try{return e.w=rr((e.XF||{}).numFmtId||(t?14:0),t?ut(r):r)}catch{return""+r}}function Kt(e,r,t){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&t&&t.dateNF&&(e.z=t.dateNF),e.t=="e"?Tn[e.v]||e.v:r==null?h0(e,e.v):h0(e,r))}function Sr(e,r){var t=r&&r.sheet?r.sheet:"Sheet1",n={};return n[t]=e,{SheetNames:[t],Sheets:n}}function Zs(e,r,t){var n=t||{},i=e?Array.isArray(e):n.dense,a=e||(i?[]:{}),s=0,f=0;if(a&&n.origin!=null){if(typeof n.origin=="number")s=n.origin;else{var l=typeof n.origin=="string"?Ge(n.origin):n.origin;s=l.r,f=l.c}a["!ref"]||(a["!ref"]="A1:A1")}var o={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var c=Ie(a["!ref"]);o.s.c=c.s.c,o.s.r=c.s.r,o.e.c=Math.max(o.e.c,c.e.c),o.e.r=Math.max(o.e.r,c.e.r),s==-1&&(o.e.r=s=c.e.r+1)}for(var h=0;h!=r.length;++h)if(r[h]){if(!Array.isArray(r[h]))throw new Error("aoa_to_sheet expects an array of arrays");for(var u=0;u!=r[h].length;++u)if(!(typeof r[h][u]>"u")){var x={v:r[h][u]},v=s+h,d=f+u;if(o.s.r>v&&(o.s.r=v),o.s.c>d&&(o.s.c=d),o.e.r<v&&(o.e.r=v),o.e.c<d&&(o.e.c=d),r[h][u]&&typeof r[h][u]=="object"&&!Array.isArray(r[h][u])&&!(r[h][u]instanceof Date))x=r[h][u];else if(Array.isArray(x.v)&&(x.f=r[h][u][1],x.v=x.v[0]),x.v===null)if(x.f)x.t="n";else if(n.nullError)x.t="e",x.v=0;else if(n.sheetStubs)x.t="z";else continue;else typeof x.v=="number"?x.t="n":typeof x.v=="boolean"?x.t="b":x.v instanceof Date?(x.z=n.dateNF||Me[14],n.cellDates?(x.t="d",x.w=rr(x.z,ut(x.v))):(x.t="n",x.v=ut(x.v),x.w=rr(x.z,x.v))):x.t="s";if(i)a[v]||(a[v]=[]),a[v][d]&&a[v][d].z&&(x.z=a[v][d].z),a[v][d]=x;else{var m=Se({c:d,r:v});a[m]&&a[m].z&&(x.z=a[m].z),a[m]=x}}}return o.s.c<1e7&&(a["!ref"]=$e(o)),a}function jr(e,r){return Zs(null,e,r)}function Rh(e){return e.read_shift(4,"i")}function It(e,r){return r||(r=B(4)),r.write_shift(4,e),r}function nt(e){var r=e.read_shift(4);return r===0?"":e.read_shift(r,"dbcs")}function Xe(e,r){var t=!1;return r==null&&(t=!0,r=B(4+2*e.length)),r.write_shift(4,e.length),e.length>0&&r.write_shift(0,e,"dbcs"),t?r.slice(0,r.l):r}function Lh(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function Ph(e,r){return r||(r=B(4)),r.write_shift(2,e.ich||0),r.write_shift(2,e.ifnt||0),r}function da(e,r){var t=e.l,n=e.read_shift(1),i=nt(e),a=[],s={t:i,h:i};if(n&1){for(var f=e.read_shift(4),l=0;l!=f;++l)a.push(Lh(e));s.r=a}else s.r=[{ich:0,ifnt:0}];return e.l=t+r,s}function Mh(e,r){var t=!1;return r==null&&(t=!0,r=B(15+4*e.t.length)),r.write_shift(1,0),Xe(e.t,r),t?r.slice(0,r.l):r}var bh=da;function Bh(e,r){var t=!1;return r==null&&(t=!0,r=B(23+4*e.t.length)),r.write_shift(1,1),Xe(e.t,r),r.write_shift(4,1),Ph({ich:0,ifnt:0},r),t?r.slice(0,r.l):r}function At(e){var r=e.read_shift(4),t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:r,iStyleRef:t}}function Ar(e,r){return r==null&&(r=B(8)),r.write_shift(-4,e.c),r.write_shift(3,e.iStyleRef||e.s),r.write_shift(1,0),r}function yr(e){var r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:r}}function Fr(e,r){return r==null&&(r=B(4)),r.write_shift(3,e.iStyleRef||e.s),r.write_shift(1,0),r}var Uh=nt,Qs=Xe;function xa(e){var r=e.read_shift(4);return r===0||r===4294967295?"":e.read_shift(r,"dbcs")}function Yn(e,r){var t=!1;return r==null&&(t=!0,r=B(127)),r.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&r.write_shift(0,e,"dbcs"),t?r.slice(0,r.l):r}var $h=nt,Xi=xa,pa=Yn;function ef(e){var r=e.slice(e.l,e.l+4),t=r[0]&1,n=r[0]&2;e.l+=4;var i=n===0?Kn([0,0,0,0,r[0]&252,r[1],r[2],r[3]],0):vr(r,0)>>2;return t?i/100:i}function tf(e,r){r==null&&(r=B(4));var t=0,n=0,i=e*100;if(e==(e|0)&&e>=-(1<<29)&&e<1<<29?n=1:i==(i|0)&&i>=-(1<<29)&&i<1<<29&&(n=1,t=1),n)r.write_shift(-4,((t?i:e)<<2)+(t+2));else throw new Error("unsupported RkNumber "+e)}function rf(e){var r={s:{},e:{}};return r.s.r=e.read_shift(4),r.e.r=e.read_shift(4),r.s.c=e.read_shift(4),r.e.c=e.read_shift(4),r}function Wh(e,r){return r||(r=B(16)),r.write_shift(4,e.s.r),r.write_shift(4,e.e.r),r.write_shift(4,e.s.c),r.write_shift(4,e.e.c),r}var Cr=rf,Kr=Wh;function Yr(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function _r(e,r){return(r||B(8)).write_shift(8,e,"f")}function Hh(e){var r={},t=e.read_shift(1),n=t>>>1,i=e.read_shift(1),a=e.read_shift(2,"i"),s=e.read_shift(1),f=e.read_shift(1),l=e.read_shift(1);switch(e.l++,n){case 0:r.auto=1;break;case 1:r.index=i;var o=qh[i];o&&(r.rgb=S0(o));break;case 2:r.rgb=S0([s,f,l]);break;case 3:r.theme=i;break}return a!=0&&(r.tint=a>0?a/32767:a/32768),r}function Jn(e,r){if(r||(r=B(8)),!e||e.auto)return r.write_shift(4,0),r.write_shift(4,0),r;e.index!=null?(r.write_shift(1,2),r.write_shift(1,e.index)):e.theme!=null?(r.write_shift(1,6),r.write_shift(1,e.theme)):(r.write_shift(1,5),r.write_shift(1,0));var t=e.tint||0;if(t>0?t*=32767:t<0&&(t*=32768),r.write_shift(2,t),!e.rgb||e.theme!=null)r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);else{var n=e.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),r.write_shift(1,parseInt(n.slice(0,2),16)),r.write_shift(1,parseInt(n.slice(2,4),16)),r.write_shift(1,parseInt(n.slice(4,6),16)),r.write_shift(1,255)}return r}function Vh(e){var r=e.read_shift(1);e.l++;var t={fBold:r&1,fItalic:r&2,fUnderline:r&4,fStrikeout:r&8,fOutline:r&16,fShadow:r&32,fCondense:r&64,fExtend:r&128};return t}function Gh(e,r){r||(r=B(2));var t=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return r.write_shift(1,t),r.write_shift(1,0),r}var nf=2,pt=3,kn=11,qn=19,Nn=64,Xh=65,zh=71,jh=4108,Kh=4126,Ke=80,d0={1:{n:"CodePage",t:nf},2:{n:"Category",t:Ke},3:{n:"PresentationFormat",t:Ke},4:{n:"ByteCount",t:pt},5:{n:"LineCount",t:pt},6:{n:"ParagraphCount",t:pt},7:{n:"SlideCount",t:pt},8:{n:"NoteCount",t:pt},9:{n:"HiddenCount",t:pt},10:{n:"MultimediaClipCount",t:pt},11:{n:"ScaleCrop",t:kn},12:{n:"HeadingPairs",t:jh},13:{n:"TitlesOfParts",t:Kh},14:{n:"Manager",t:Ke},15:{n:"Company",t:Ke},16:{n:"LinksUpToDate",t:kn},17:{n:"CharacterCount",t:pt},19:{n:"SharedDoc",t:kn},22:{n:"HyperlinksChanged",t:kn},23:{n:"AppVersion",t:pt,p:"version"},24:{n:"DigSig",t:Xh},26:{n:"ContentType",t:Ke},27:{n:"ContentStatus",t:Ke},28:{n:"Language",t:Ke},29:{n:"Version",t:Ke},255:{},2147483648:{n:"Locale",t:qn},2147483651:{n:"Behavior",t:qn},1919054434:{}},x0={1:{n:"CodePage",t:nf},2:{n:"Title",t:Ke},3:{n:"Subject",t:Ke},4:{n:"Author",t:Ke},5:{n:"Keywords",t:Ke},6:{n:"Comments",t:Ke},7:{n:"Template",t:Ke},8:{n:"LastAuthor",t:Ke},9:{n:"RevNumber",t:Ke},10:{n:"EditTime",t:Nn},11:{n:"LastPrinted",t:Nn},12:{n:"CreatedDate",t:Nn},13:{n:"ModifiedDate",t:Nn},14:{n:"PageCount",t:pt},15:{n:"WordCount",t:pt},16:{n:"CharCount",t:pt},17:{n:"Thumbnail",t:zh},18:{n:"Application",t:Ke},19:{n:"DocSecurity",t:pt},255:{},2147483648:{n:"Locale",t:qn},2147483651:{n:"Behavior",t:qn},1919054434:{}};function Yh(e){return e.map(function(r){return[r>>16&255,r>>8&255,r&255]})}var Jh=Yh([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),qh=ht(Jh),Tn={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Zh={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Rn={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function af(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function sf(e,r){var t=lh(Zh),n=[],i;n[n.length]=We,n[n.length]=q("Types",null,{xmlns:Ve.CT,"xmlns:xsd":Ve.xsd,"xmlns:xsi":Ve.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(l){return q("Default",null,{Extension:l[0],ContentType:l[1]})}));var a=function(l){e[l]&&e[l].length>0&&(i=e[l][0],n[n.length]=q("Override",null,{PartName:(i[0]=="/"?"":"/")+i,ContentType:Rn[l][r.bookType]||Rn[l].xlsx}))},s=function(l){(e[l]||[]).forEach(function(o){n[n.length]=q("Override",null,{PartName:(o[0]=="/"?"":"/")+o,ContentType:Rn[l][r.bookType]||Rn[l].xlsx})})},f=function(l){(e[l]||[]).forEach(function(o){n[n.length]=q("Override",null,{PartName:(o[0]=="/"?"":"/")+o,ContentType:t[l][0]})})};return a("workbooks"),s("sheets"),s("charts"),f("themes"),["strs","styles"].forEach(a),["coreprops","extprops","custprops"].forEach(f),f("vba"),f("comments"),f("threadedcomments"),f("drawings"),s("metadata"),f("people"),n.length>2&&(n[n.length]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var me={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 ff(e){var r=e.lastIndexOf("/");return e.slice(0,r+1)+"_rels/"+e.slice(r+1)+".rels"}function br(e){var r=[We,q("Relationships",null,{xmlns:Ve.RELS})];return Qe(e["!id"]).forEach(function(t){r[r.length]=q("Relationship",null,e["!id"][t])}),r.length>2&&(r[r.length]="</Relationships>",r[1]=r[1].replace("/>",">")),r.join("")}function Te(e,r,t,n,i,a){if(i||(i={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),r<0)for(r=e["!idx"];e["!id"]["rId"+r];++r);if(e["!idx"]=r+1,i.Id="rId"+r,i.Type=n,i.Target=t,a?i.TargetMode=a:[me.HLINK,me.XPATH,me.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),e["!id"][i.Id])throw new Error("Cannot rewrite rId "+r);return e["!id"][i.Id]=i,e[("/"+i.Target).replace("//","/")]=i,r}function Qh(e){var r=[We];r.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
|
||
`),r.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
|
||
`);for(var t=0;t<e.length;++t)r.push(' <manifest:file-entry manifest:full-path="'+e[t][0]+'" manifest:media-type="'+e[t][1]+`"/>
|
||
`);return r.push("</manifest:manifest>"),r.join("")}function p0(e,r,t){return[' <rdf:Description rdf:about="'+e+`">
|
||
`,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(t||"odf")+"#"+r+`"/>
|
||
`,` </rdf:Description>
|
||
`].join("")}function e1(e,r){return[' <rdf:Description rdf:about="'+e+`">
|
||
`,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+r+`"/>
|
||
`,` </rdf:Description>
|
||
`].join("")}function t1(e){var r=[We];r.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
||
`);for(var t=0;t!=e.length;++t)r.push(p0(e[t][0],e[t][1])),r.push(e1("",e[t][0]));return r.push(p0("","Document","pkg")),r.push("</rdf:RDF>"),r.join("")}function lf(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+Vn.version+"</meta:generator></office:meta></office:document-meta>"}var mr=[["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 Ri(e,r,t,n,i){i[e]!=null||r==null||r===""||(i[e]=r,r=we(r),n[n.length]=t?q(e,r,t):qe(e,r))}function of(e,r){var t=r||{},n=[We,q("cp:coreProperties",null,{"xmlns:cp":Ve.CORE_PROPS,"xmlns:dc":Ve.dc,"xmlns:dcterms":Ve.dcterms,"xmlns:dcmitype":Ve.dcmitype,"xmlns:xsi":Ve.xsi})],i={};if(!e&&!t.Props)return n.join("");e&&(e.CreatedDate!=null&&Ri("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:Gi(e.CreatedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),e.ModifiedDate!=null&&Ri("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:Gi(e.ModifiedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var a=0;a!=mr.length;++a){var s=mr[a],f=t.Props&&t.Props[s[1]]!=null?t.Props[s[1]]:e?e[s[1]]:null;f===!0?f="1":f===!1?f="0":typeof f=="number"&&(f=String(f)),f!=null&&Ri(s[0],f,null,n,i)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var Br=[["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"]],cf=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function uf(e){var r=[],t=q;return e||(e={}),e.Application="SheetJS",r[r.length]=We,r[r.length]=q("Properties",null,{xmlns:Ve.EXT_PROPS,"xmlns:vt":Ve.vt}),Br.forEach(function(n){if(e[n[1]]!==void 0){var i;switch(n[2]){case"string":i=we(String(e[n[1]]));break;case"bool":i=e[n[1]]?"true":"false";break}i!==void 0&&(r[r.length]=t(n[0],i))}}),r[r.length]=t("HeadingPairs",t("vt:vector",t("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+t("vt:variant",t("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),r[r.length]=t("TitlesOfParts",t("vt:vector",e.SheetNames.map(function(n){return"<vt:lpstr>"+we(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}function hf(e){var r=[We,q("Properties",null,{xmlns:Ve.CUST_PROPS,"xmlns:vt":Ve.vt})];if(!e)return r.join("");var t=1;return Qe(e).forEach(function(i){++t,r[r.length]=q("property",_h(e[i],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t,name:we(i)})}),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}var v0={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function r1(e,r){var t=[];return Qe(v0).map(function(n){for(var i=0;i<mr.length;++i)if(mr[i][1]==n)return mr[i];for(i=0;i<Br.length;++i)if(Br[i][1]==n)return Br[i];throw n}).forEach(function(n){if(e[n[1]]!=null){var i=r&&r.Props&&r.Props[n[1]]!=null?r.Props[n[1]]:e[n[1]];switch(n[2]){case"date":i=new Date(i).toISOString().replace(/\.\d*Z/,"Z");break}typeof i=="number"?i=String(i):i===!0||i===!1?i=i?"1":"0":i instanceof Date&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"")),t.push(qe(v0[n[1]]||n[1],i))}}),q("DocumentProperties",t.join(""),{xmlns:mt.o})}function n1(e,r){var t=["Worksheets","SheetNames"],n="CustomDocumentProperties",i=[];return e&&Qe(e).forEach(function(a){if(Object.prototype.hasOwnProperty.call(e,a)){for(var s=0;s<mr.length;++s)if(a==mr[s][1])return;for(s=0;s<Br.length;++s)if(a==Br[s][1])return;for(s=0;s<t.length;++s)if(a==t[s])return;var f=e[a],l="string";typeof f=="number"?(l="float",f=String(f)):f===!0||f===!1?(l="boolean",f=f?"1":"0"):f=String(f),i.push(q(n0(a),f,{"dt:dt":l}))}}),r&&Qe(r).forEach(function(a){if(Object.prototype.hasOwnProperty.call(r,a)&&!(e&&Object.prototype.hasOwnProperty.call(e,a))){var s=r[a],f="string";typeof s=="number"?(f="float",s=String(s)):s===!0||s===!1?(f="boolean",s=s?"1":"0"):s instanceof Date?(f="dateTime.tz",s=s.toISOString()):s=String(s),i.push(q(n0(a),s,{"dt:dt":f}))}}),"<"+n+' xmlns="'+mt.o+'">'+i.join("")+"</"+n+">"}function i1(e){var r=typeof e=="string"?new Date(Date.parse(e)):e,t=r.getTime()/1e3+11644473600,n=t%Math.pow(2,32),i=(t-n)/Math.pow(2,32);n*=1e7,i*=1e7;var a=n/Math.pow(2,32)|0;a>0&&(n=n%Math.pow(2,32),i+=a);var s=B(8);return s.write_shift(4,n),s.write_shift(4,i),s}function m0(e,r){var t=B(4),n=B(4);switch(t.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,r);break;case 5:n=B(8),n.write_shift(8,r,"f");break;case 11:n.write_shift(4,r?1:0);break;case 64:n=i1(r);break;case 31:case 80:for(n=B(4+2*(r.length+1)+(r.length%2?0:2)),n.write_shift(4,r.length+1),n.write_shift(0,r,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+r)}return Je([t,n])}var df=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function a1(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function g0(e,r,t){var n=B(8),i=[],a=[],s=8,f=0,l=B(8),o=B(8);if(l.write_shift(4,2),l.write_shift(4,1200),o.write_shift(4,1),a.push(l),i.push(o),s+=8+l.length,!r){o=B(8),o.write_shift(4,0),i.unshift(o);var c=[B(4)];for(c[0].write_shift(4,e.length),f=0;f<e.length;++f){var h=e[f][0];for(l=B(4+4+2*(h.length+1)+(h.length%2?0:2)),l.write_shift(4,f+2),l.write_shift(4,h.length+1),l.write_shift(0,h,"dbcs");l.l!=l.length;)l.write_shift(1,0);c.push(l)}l=Je(c),a.unshift(l),s+=8+l.length}for(f=0;f<e.length;++f)if(!(r&&!r[e[f][0]])&&!(df.indexOf(e[f][0])>-1||cf.indexOf(e[f][0])>-1)&&e[f][1]!=null){var u=e[f][1],x=0;if(r){x=+r[e[f][0]];var v=t[x];if(v.p=="version"&&typeof u=="string"){var d=u.split(".");u=(+d[0]<<16)+(+d[1]||0)}l=m0(v.t,u)}else{var m=a1(u);m==-1&&(m=31,u=String(u)),l=m0(m,u)}a.push(l),o=B(8),o.write_shift(4,r?x:2+f),i.push(o),s+=8+l.length}var y=8*(a.length+1);for(f=0;f<a.length;++f)i[f].write_shift(4,y),y+=a[f].length;return n.write_shift(4,s),n.write_shift(4,a.length),Je([n].concat(i).concat(a))}function _0(e,r,t,n,i,a){var s=B(i?68:48),f=[s];s.write_shift(2,65534),s.write_shift(2,0),s.write_shift(4,842412599),s.write_shift(16,Ae.utils.consts.HEADER_CLSID,"hex"),s.write_shift(4,i?2:1),s.write_shift(16,r,"hex"),s.write_shift(4,i?68:48);var l=g0(e,t,n);if(f.push(l),i){var o=g0(i,null,null);s.write_shift(16,a,"hex"),s.write_shift(4,68+l.length),f.push(o)}return Je(f)}function s1(e,r){r||(r=B(e));for(var t=0;t<e;++t)r.write_shift(1,0);return r}function f1(e,r){return e.read_shift(r)===1}function st(e,r){return r||(r=B(2)),r.write_shift(2,+!!e),r}function xf(e){return e.read_shift(2,"u")}function St(e,r){return r||(r=B(2)),r.write_shift(2,e),r}function pf(e,r,t){return t||(t=B(2)),t.write_shift(1,r=="e"?+e:+!!e),t.write_shift(1,r=="e"?1:0),t}function vf(e,r,t){var n=e.read_shift(t&&t.biff>=12?2:1),i="sbcs-cont";if(t&&t.biff>=8,!t||t.biff==8){var a=e.read_shift(1);a&&(i="dbcs-cont")}else t.biff==12&&(i="wstr");t.biff>=2&&t.biff<=5&&(i="cpstr");var s=n?e.read_shift(n,i):"";return s}function l1(e){var r=e.t||"",t=B(3+0);t.write_shift(2,r.length),t.write_shift(1,1);var n=B(2*r.length);n.write_shift(2*r.length,r,"utf16le");var i=[t,n];return Je(i)}function o1(e,r,t){var n;if(t){if(t.biff>=2&&t.biff<=5)return e.read_shift(r,"cpstr");if(t.biff>=12)return e.read_shift(r,"dbcs-cont")}var i=e.read_shift(1);return i===0?n=e.read_shift(r,"sbcs-cont"):n=e.read_shift(r,"dbcs-cont"),n}function c1(e,r,t){var n=e.read_shift(t&&t.biff==2?1:2);return n===0?(e.l++,""):o1(e,n,t)}function u1(e,r,t){if(t.biff>5)return c1(e,r,t);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,t.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function mf(e,r,t){return t||(t=B(3+2*e.length)),t.write_shift(2,e.length),t.write_shift(1,1),t.write_shift(31,e,"utf16le"),t}function E0(e,r){r||(r=B(6+e.length*2)),r.write_shift(4,1+e.length);for(var t=0;t<e.length;++t)r.write_shift(2,e.charCodeAt(t));return r.write_shift(2,0),r}function h1(e){var r=B(512),t=0,n=e.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var i=n.indexOf("#"),a=i>-1?31:23;switch(n.charAt(0)){case"#":a=28;break;case".":a&=-3;break}r.write_shift(4,2),r.write_shift(4,a);var s=[8,6815827,6619237,4849780,83];for(t=0;t<s.length;++t)r.write_shift(4,s[t]);if(a==28)n=n.slice(1),E0(n,r);else if(a&2){for(s="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),t=0;t<s.length;++t)r.write_shift(1,parseInt(s[t],16));var f=i>-1?n.slice(0,i):n;for(r.write_shift(4,2*(f.length+1)),t=0;t<f.length;++t)r.write_shift(2,f.charCodeAt(t));r.write_shift(2,0),a&8&&E0(i>-1?n.slice(i+1):"",r)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),t=0;t<s.length;++t)r.write_shift(1,parseInt(s[t],16));for(var l=0;n.slice(l*3,l*3+3)=="../"||n.slice(l*3,l*3+3)=="..\\";)++l;for(r.write_shift(2,l),r.write_shift(4,n.length-3*l+1),t=0;t<n.length-3*l;++t)r.write_shift(1,n.charCodeAt(t+3*l)&255);for(r.write_shift(1,0),r.write_shift(2,65535),r.write_shift(2,57005),t=0;t<6;++t)r.write_shift(4,0)}return r.slice(0,r.l)}function Er(e,r,t,n){return n||(n=B(6)),n.write_shift(2,e),n.write_shift(2,r),n.write_shift(2,t||0),n}function d1(e,r,t){var n=t.biff>8?4:2,i=e.read_shift(n),a=e.read_shift(n,"i"),s=e.read_shift(n,"i");return[i,a,s]}function x1(e){var r=e.read_shift(2),t=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(2);return{s:{c:n,r},e:{c:i,r:t}}}function gf(e,r){return r||(r=B(8)),r.write_shift(2,e.s.r),r.write_shift(2,e.e.r),r.write_shift(2,e.s.c),r.write_shift(2,e.e.c),r}function va(e,r,t){var n=1536,i=16;switch(t.bookType){case"biff8":break;case"biff5":n=1280,i=8;break;case"biff4":n=4,i=6;break;case"biff3":n=3,i=6;break;case"biff2":n=2,i=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var a=B(i);return a.write_shift(2,n),a.write_shift(2,r),i>4&&a.write_shift(2,29282),i>6&&a.write_shift(2,1997),i>8&&(a.write_shift(2,49161),a.write_shift(2,1),a.write_shift(2,1798),a.write_shift(2,0)),a}function p1(e,r){var t=!r||r.biff==8,n=B(t?112:54);for(n.write_shift(r.biff==8?2:1,7),t&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(t?0:536870912));n.l<n.length;)n.write_shift(1,t?0:32);return n}function v1(e,r){var t=!r||r.biff>=8?2:1,n=B(8+t*e.name.length);n.write_shift(4,e.pos),n.write_shift(1,e.hs||0),n.write_shift(1,e.dt),n.write_shift(1,e.name.length),r.biff>=8&&n.write_shift(1,1),n.write_shift(t*e.name.length,e.name,r.biff<8?"sbcs":"utf16le");var i=n.slice(0,n.l);return i.l=n.l,i}function m1(e,r){var t=B(8);t.write_shift(4,e.Count),t.write_shift(4,e.Unique);for(var n=[],i=0;i<e.length;++i)n[i]=l1(e[i]);var a=Je([t].concat(n));return a.parts=[t.length].concat(n.map(function(s){return s.length})),a}function g1(){var e=B(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function _1(e){var r=B(18),t=1718;return e&&e.RTL&&(t|=64),r.write_shift(2,t),r.write_shift(4,0),r.write_shift(4,64),r.write_shift(4,0),r.write_shift(4,0),r}function E1(e,r){var t=e.name||"Arial",n=r&&r.biff==5,i=n?15+t.length:16+2*t.length,a=B(i);return a.write_shift(2,(e.sz||12)*20),a.write_shift(4,0),a.write_shift(2,400),a.write_shift(4,0),a.write_shift(2,0),a.write_shift(1,t.length),n||a.write_shift(1,1),a.write_shift((n?1:2)*t.length,t,n?"sbcs":"utf16le"),a}function T1(e,r,t,n){var i=B(10);return Er(e,r,n,i),i.write_shift(4,t),i}function w1(e,r,t,n,i){var a=!i||i.biff==8,s=B(6+2+ +a+(1+a)*t.length);return Er(e,r,n,s),s.write_shift(2,t.length),a&&s.write_shift(1,1),s.write_shift((1+a)*t.length,t,a?"utf16le":"sbcs"),s}function S1(e,r,t,n){var i=t&&t.biff==5;n||(n=B(i?3+r.length:5+2*r.length)),n.write_shift(2,e),n.write_shift(i?1:2,r.length),i||n.write_shift(1,1),n.write_shift((i?1:2)*r.length,r,i?"sbcs":"utf16le");var a=n.length>n.l?n.slice(0,n.l):n;return a.l==null&&(a.l=a.length),a}function A1(e,r){var t=r.biff==8||!r.biff?4:2,n=B(2*t+6);return n.write_shift(t,e.s.r),n.write_shift(t,e.e.r+1),n.write_shift(2,e.s.c),n.write_shift(2,e.e.c+1),n.write_shift(2,0),n}function T0(e,r,t,n){var i=t&&t.biff==5;n||(n=B(i?16:20)),n.write_shift(2,0),e.style?(n.write_shift(2,e.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,e.numFmtId||0),n.write_shift(2,r<<4));var a=0;return e.numFmtId>0&&i&&(a|=1024),n.write_shift(4,a),n.write_shift(4,0),i||n.write_shift(4,0),n.write_shift(2,0),n}function y1(e){var r=B(8);return r.write_shift(4,0),r.write_shift(2,e[0]?e[0]+1:0),r.write_shift(2,e[1]?e[1]+1:0),r}function F1(e,r,t,n,i,a){var s=B(8);return Er(e,r,n,s),pf(t,a,s),s}function C1(e,r,t,n){var i=B(14);return Er(e,r,n,i),_r(t,i),i}function O1(e,r,t){if(t.biff<8)return D1(e,r,t);for(var n=[],i=e.l+r,a=e.read_shift(t.biff>8?4:2);a--!==0;)n.push(d1(e,t.biff>8?12:6,t));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return n}function D1(e,r,t){e[e.l+1]==3&&e[e.l]++;var n=vf(e,r,t);return n.charCodeAt(0)==3?n.slice(1):n}function I1(e){var r=B(2+e.length*8);r.write_shift(2,e.length);for(var t=0;t<e.length;++t)gf(e[t],r);return r}function k1(e){var r=B(24),t=Ge(e[0]);r.write_shift(2,t.r),r.write_shift(2,t.r),r.write_shift(2,t.c),r.write_shift(2,t.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<16;++i)r.write_shift(1,parseInt(n[i],16));return Je([r,h1(e[1])])}function N1(e){var r=e[1].Tooltip,t=B(10+2*(r.length+1));t.write_shift(2,2048);var n=Ge(e[0]);t.write_shift(2,n.r),t.write_shift(2,n.r),t.write_shift(2,n.c),t.write_shift(2,n.c);for(var i=0;i<r.length;++i)t.write_shift(2,r.charCodeAt(i));return t.write_shift(2,0),t}function R1(e){return e||(e=B(4)),e.write_shift(2,1),e.write_shift(2,1),e}function L1(e,r,t){if(!t.cellStyles)return Mt(e,r);var n=t&&t.biff>=12?4:2,i=e.read_shift(n),a=e.read_shift(n),s=e.read_shift(n),f=e.read_shift(n),l=e.read_shift(2);n==2&&(e.l+=2);var o={s:i,e:a,w:s,ixfe:f,flags:l};return(t.biff>=5||!t.biff)&&(o.level=l>>8&7),o}function P1(e,r){var t=B(12);t.write_shift(2,r),t.write_shift(2,r),t.write_shift(2,e.width*256),t.write_shift(2,0);var n=0;return e.hidden&&(n|=1),t.write_shift(1,n),n=e.level||0,t.write_shift(1,n),t.write_shift(2,0),t}function M1(e){for(var r=B(2*e),t=0;t<e;++t)r.write_shift(2,t+1);return r}function b1(e,r,t){var n=B(15);return Sn(n,e,r),n.write_shift(8,t,"f"),n}function B1(e,r,t){var n=B(9);return Sn(n,e,r),n.write_shift(2,t),n}var U1=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},r=aa({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function t(f,l){var o=[],c=gr(1);switch(l.type){case"base64":c=Ct(jt(f));break;case"binary":c=Ct(f);break;case"buffer":case"array":c=f;break}vt(c,0);var h=c.read_shift(1),u=!!(h&136),x=!1,v=!1;switch(h){case 2:break;case 3:break;case 48:x=!0,u=!0;break;case 49:x=!0,u=!0;break;case 131:break;case 139:break;case 140:v=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+h.toString(16))}var d=0,m=521;h==2&&(d=c.read_shift(2)),c.l+=3,h!=2&&(d=c.read_shift(4)),d>1048576&&(d=1e6),h!=2&&(m=c.read_shift(2));var y=c.read_shift(2),A=l.codepage||1252;h!=2&&(c.l+=16,c.read_shift(1),c[c.l]!==0&&(A=e[c[c.l]]),c.l+=1,c.l+=2),v&&(c.l+=36);for(var F=[],I={},z=Math.min(c.length,h==2?521:m-10-(x?264:0)),ee=v?32:11;c.l<z&&c[c.l]!=13;)switch(I={},I.name=pr.utils.decode(A,c.slice(c.l,c.l+ee)).replace(/[\u0000\r\n].*$/g,""),c.l+=ee,I.type=String.fromCharCode(c.read_shift(1)),h!=2&&!v&&(I.offset=c.read_shift(4)),I.len=c.read_shift(1),h==2&&(I.offset=c.read_shift(2)),I.dec=c.read_shift(1),I.name.length&&F.push(I),h!=2&&(c.l+=v?13:14),I.type){case"B":(!x||I.len!=8)&&l.WTF&&console.log("Skipping "+I.name+":"+I.type);break;case"G":case"P":l.WTF&&console.log("Skipping "+I.name+":"+I.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+I.type)}if(c[c.l]!==13&&(c.l=m-1),c.read_shift(1)!==13)throw new Error("DBF Terminator not found "+c.l+" "+c[c.l]);c.l=m;var D=0,V=0;for(o[0]=[],V=0;V!=F.length;++V)o[0][V]=F[V].name;for(;d-- >0;){if(c[c.l]===42){c.l+=y;continue}for(++c.l,o[++D]=[],V=0,V=0;V!=F.length;++V){var P=c.slice(c.l,c.l+F[V].len);c.l+=F[V].len,vt(P,0);var b=pr.utils.decode(A,P);switch(F[V].type){case"C":b.trim().length&&(o[D][V]=b.replace(/\s+$/,""));break;case"D":b.length===8?o[D][V]=new Date(+b.slice(0,4),+b.slice(4,6)-1,+b.slice(6,8)):o[D][V]=b;break;case"F":o[D][V]=parseFloat(b.trim());break;case"+":case"I":o[D][V]=v?P.read_shift(-4,"i")^2147483648:P.read_shift(4,"i");break;case"L":switch(b.trim().toUpperCase()){case"Y":case"T":o[D][V]=!0;break;case"N":case"F":o[D][V]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+b+"|")}break;case"M":if(!u)throw new Error("DBF Unexpected MEMO for type "+h.toString(16));o[D][V]="##MEMO##"+(v?parseInt(b.trim(),10):P.read_shift(4));break;case"N":b=b.replace(/\u0000/g,"").trim(),b&&b!="."&&(o[D][V]=+b||0);break;case"@":o[D][V]=new Date(P.read_shift(-8,"f")-621356832e5);break;case"T":o[D][V]=new Date((P.read_shift(4)-2440588)*864e5+P.read_shift(4));break;case"Y":o[D][V]=P.read_shift(4,"i")/1e4+P.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":o[D][V]=-P.read_shift(-8,"f");break;case"B":if(x&&F[V].len==8){o[D][V]=P.read_shift(8,"f");break}case"G":case"P":P.l+=F[V].len;break;case"0":if(F[V].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+F[V].type)}}}if(h!=2&&c.l<c.length&&c[c.l++]!=26)throw new Error("DBF EOF Marker missing "+(c.l-1)+" of "+c.length+" "+c[c.l-1].toString(16));return l&&l.sheetRows&&(o=o.slice(0,l.sheetRows)),l.DBF=F,o}function n(f,l){var o=l||{};o.dateNF||(o.dateNF="yyyymmdd");var c=jr(t(f,o),o);return c["!cols"]=o.DBF.map(function(h){return{wch:h.len,DBF:h}}),delete o.DBF,c}function i(f,l){try{return Sr(n(f,l),l)}catch(o){if(l&&l.WTF)throw o}return{SheetNames:[],Sheets:{}}}var a={B:8,C:250,L:1,D:8,"?":0,"":0};function s(f,l){var o=l||{};if(+o.codepage>=0&&un(+o.codepage),o.type=="string")throw new Error("Cannot write DBF to JS string");var c=ct(),h=ri(f,{header:1,raw:!0,cellDates:!0}),u=h[0],x=h.slice(1),v=f["!cols"]||[],d=0,m=0,y=0,A=1;for(d=0;d<u.length;++d){if(((v[d]||{}).DBF||{}).name){u[d]=v[d].DBF.name,++y;continue}if(u[d]!=null){if(++y,typeof u[d]=="number"&&(u[d]=u[d].toString(10)),typeof u[d]!="string")throw new Error("DBF Invalid column name "+u[d]+" |"+typeof u[d]+"|");if(u.indexOf(u[d])!==d){for(m=0;m<1024;++m)if(u.indexOf(u[d]+"_"+m)==-1){u[d]+="_"+m;break}}}}var F=Ie(f["!ref"]),I=[],z=[],ee=[];for(d=0;d<=F.e.c-F.s.c;++d){var D="",V="",P=0,b=[];for(m=0;m<x.length;++m)x[m][d]!=null&&b.push(x[m][d]);if(b.length==0||u[d]==null){I[d]="?";continue}for(m=0;m<b.length;++m){switch(typeof b[m]){case"number":V="B";break;case"string":V="C";break;case"boolean":V="L";break;case"object":V=b[m]instanceof Date?"D":"C";break;default:V="C"}P=Math.max(P,String(b[m]).length),D=D&&D!=V?"C":V}P>250&&(P=250),V=((v[d]||{}).DBF||{}).type,V=="C"&&v[d].DBF.len>P&&(P=v[d].DBF.len),D=="B"&&V=="N"&&(D="N",ee[d]=v[d].DBF.dec,P=v[d].DBF.len),z[d]=D=="C"||V=="N"?P:a[D]||0,A+=z[d],I[d]=D}var U=c.next(32);for(U.write_shift(4,318902576),U.write_shift(4,x.length),U.write_shift(2,296+32*y),U.write_shift(2,A),d=0;d<4;++d)U.write_shift(4,0);for(U.write_shift(4,0|(+r[_s]||3)<<8),d=0,m=0;d<u.length;++d)if(u[d]!=null){var G=c.next(32),K=(u[d].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);G.write_shift(1,K,"sbcs"),G.write_shift(1,I[d]=="?"?"C":I[d],"sbcs"),G.write_shift(4,m),G.write_shift(1,z[d]||a[I[d]]||0),G.write_shift(1,ee[d]||0),G.write_shift(1,2),G.write_shift(4,0),G.write_shift(1,0),G.write_shift(4,0),G.write_shift(4,0),m+=z[d]||a[I[d]]||0}var ce=c.next(264);for(ce.write_shift(4,13),d=0;d<65;++d)ce.write_shift(4,0);for(d=0;d<x.length;++d){var le=c.next(A);for(le.write_shift(1,0),m=0;m<u.length;++m)if(u[m]!=null)switch(I[m]){case"L":le.write_shift(1,x[d][m]==null?63:x[d][m]?84:70);break;case"B":le.write_shift(8,x[d][m]||0,"f");break;case"N":var de="0";for(typeof x[d][m]=="number"&&(de=x[d][m].toFixed(ee[m]||0)),y=0;y<z[m]-de.length;++y)le.write_shift(1,32);le.write_shift(1,de,"sbcs");break;case"D":x[d][m]?(le.write_shift(4,("0000"+x[d][m].getFullYear()).slice(-4),"sbcs"),le.write_shift(2,("00"+(x[d][m].getMonth()+1)).slice(-2),"sbcs"),le.write_shift(2,("00"+x[d][m].getDate()).slice(-2),"sbcs")):le.write_shift(8,"00000000","sbcs");break;case"C":var xe=String(x[d][m]!=null?x[d][m]:"").slice(0,z[m]);for(le.write_shift(1,xe,"sbcs"),y=0;y<z[m]-xe.length;++y)le.write_shift(1,32);break}}return c.next(1).write_shift(1,26),c.end()}return{to_workbook:i,to_sheet:n,from_sheet:s}}(),$1=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},r=new RegExp("\x1BN("+Qe(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),t=function(u,x){var v=e[x];return typeof v=="number"?Xa(v):v},n=function(u,x,v){var d=x.charCodeAt(0)-32<<4|v.charCodeAt(0)-48;return d==59?u:Xa(d)};e["|"]=254;function i(u,x){switch(x.type){case"base64":return a(jt(u),x);case"binary":return a(u,x);case"buffer":return a(ge&&Buffer.isBuffer(u)?u.toString("binary"):gn(u),x);case"array":return a(vi(u),x)}throw new Error("Unrecognized type "+x.type)}function a(u,x){var v=u.split(/[\n\r]+/),d=-1,m=-1,y=0,A=0,F=[],I=[],z=null,ee={},D=[],V=[],P=[],b=0,U;for(+x.codepage>=0&&un(+x.codepage);y!==v.length;++y){b=0;var G=v[y].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(r,t),K=G.replace(/;;/g,"\0").split(";").map(function(C){return C.replace(/\u0000/g,";")}),ce=K[0],le;if(G.length>0)switch(ce){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":K[1].charAt(0)=="P"&&I.push(G.slice(3).replace(/;;/g,";"));break;case"C":var de=!1,xe=!1,ze=!1,Be=!1,Et=-1,xt=-1;for(A=1;A<K.length;++A)switch(K[A].charAt(0)){case"A":break;case"X":m=parseInt(K[A].slice(1))-1,xe=!0;break;case"Y":for(d=parseInt(K[A].slice(1))-1,xe||(m=0),U=F.length;U<=d;++U)F[U]=[];break;case"K":le=K[A].slice(1),le.charAt(0)==='"'?le=le.slice(1,le.length-1):le==="TRUE"?le=!0:le==="FALSE"?le=!1:isNaN(Gt(le))?isNaN(dn(le).getDate())||(le=ft(le)):(le=Gt(le),z!==null&&ks(z)&&(le=Ps(le))),de=!0;break;case"E":Be=!0;var S=Bd(K[A].slice(1),{r:d,c:m});F[d][m]=[F[d][m],S];break;case"S":ze=!0,F[d][m]=[F[d][m],"S5S"];break;case"G":break;case"R":Et=parseInt(K[A].slice(1))-1;break;case"C":xt=parseInt(K[A].slice(1))-1;break;default:if(x&&x.WTF)throw new Error("SYLK bad record "+G)}if(de&&(F[d][m]&&F[d][m].length==2?F[d][m][0]=le:F[d][m]=le,z=null),ze){if(Be)throw new Error("SYLK shared formula cannot have own formula");var M=Et>-1&&F[Et][xt];if(!M||!M[1])throw new Error("SYLK shared formula cannot find base");F[d][m][1]=Ud(M[1],{r:d-Et,c:m-xt})}break;case"F":var O=0;for(A=1;A<K.length;++A)switch(K[A].charAt(0)){case"X":m=parseInt(K[A].slice(1))-1,++O;break;case"Y":for(d=parseInt(K[A].slice(1))-1,U=F.length;U<=d;++U)F[U]=[];break;case"M":b=parseInt(K[A].slice(1))/20;break;case"F":break;case"G":break;case"P":z=I[parseInt(K[A].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(P=K[A].slice(1).split(" "),U=parseInt(P[0],10);U<=parseInt(P[1],10);++U)b=parseInt(P[2],10),V[U-1]=b===0?{hidden:!0}:{wch:b},ma(V[U-1]);break;case"C":m=parseInt(K[A].slice(1))-1,V[m]||(V[m]={});break;case"R":d=parseInt(K[A].slice(1))-1,D[d]||(D[d]={}),b>0?(D[d].hpt=b,D[d].hpx=Sf(b)):b===0&&(D[d].hidden=!0);break;default:if(x&&x.WTF)throw new Error("SYLK bad record "+G)}O<1&&(z=null);break;default:if(x&&x.WTF)throw new Error("SYLK bad record "+G)}}return D.length>0&&(ee["!rows"]=D),V.length>0&&(ee["!cols"]=V),x&&x.sheetRows&&(F=F.slice(0,x.sheetRows)),[F,ee]}function s(u,x){var v=i(u,x),d=v[0],m=v[1],y=jr(d,x);return Qe(m).forEach(function(A){y[A]=m[A]}),y}function f(u,x){return Sr(s(u,x),x)}function l(u,x,v,d){var m="C;Y"+(v+1)+";X"+(d+1)+";K";switch(u.t){case"n":m+=u.v||0,u.f&&!u.F&&(m+=";E"+_a(u.f,{r:v,c:d}));break;case"b":m+=u.v?"TRUE":"FALSE";break;case"e":m+=u.w||u.v;break;case"d":m+='"'+(u.w||u.v)+'"';break;case"s":m+='"'+u.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return m}function o(u,x){x.forEach(function(v,d){var m="F;W"+(d+1)+" "+(d+1)+" ";v.hidden?m+="0":(typeof v.width=="number"&&!v.wpx&&(v.wpx=Zn(v.width)),typeof v.wpx=="number"&&!v.wch&&(v.wch=Qn(v.wpx)),typeof v.wch=="number"&&(m+=Math.round(v.wch))),m.charAt(m.length-1)!=" "&&u.push(m)})}function c(u,x){x.forEach(function(v,d){var m="F;";v.hidden?m+="M0;":v.hpt?m+="M"+20*v.hpt+";":v.hpx&&(m+="M"+20*ei(v.hpx)+";"),m.length>2&&u.push(m+"R"+(d+1))})}function h(u,x){var v=["ID;PWXL;N;E"],d=[],m=Ie(u["!ref"]),y,A=Array.isArray(u),F=`\r
|
||
`;v.push("P;PGeneral"),v.push("F;P0;DG0G8;M255"),u["!cols"]&&o(v,u["!cols"]),u["!rows"]&&c(v,u["!rows"]),v.push("B;Y"+(m.e.r-m.s.r+1)+";X"+(m.e.c-m.s.c+1)+";D"+[m.s.c,m.s.r,m.e.c,m.e.r].join(" "));for(var I=m.s.r;I<=m.e.r;++I)for(var z=m.s.c;z<=m.e.c;++z){var ee=Se({r:I,c:z});y=A?(u[I]||[])[z]:u[ee],!(!y||y.v==null&&(!y.f||y.F))&&d.push(l(y,u,I,z))}return v.join(F)+F+d.join(F)+F+"E"+F}return{to_workbook:f,to_sheet:s,from_sheet:h}}(),W1=function(){function e(a,s){switch(s.type){case"base64":return r(jt(a),s);case"binary":return r(a,s);case"buffer":return r(ge&&Buffer.isBuffer(a)?a.toString("binary"):gn(a),s);case"array":return r(vi(a),s)}throw new Error("Unrecognized type "+s.type)}function r(a,s){for(var f=a.split(`
|
||
`),l=-1,o=-1,c=0,h=[];c!==f.length;++c){if(f[c].trim()==="BOT"){h[++l]=[],o=0;continue}if(!(l<0)){var u=f[c].trim().split(","),x=u[0],v=u[1];++c;for(var d=f[c]||"";(d.match(/["]/g)||[]).length&1&&c<f.length-1;)d+=`
|
||
`+f[++c];switch(d=d.trim(),+x){case-1:if(d==="BOT"){h[++l]=[],o=0;continue}else if(d!=="EOD")throw new Error("Unrecognized DIF special command "+d);break;case 0:d==="TRUE"?h[l][o]=!0:d==="FALSE"?h[l][o]=!1:isNaN(Gt(v))?isNaN(dn(v).getDate())?h[l][o]=v:h[l][o]=ft(v):h[l][o]=Gt(v),++o;break;case 1:d=d.slice(1,d.length-1),d=d.replace(/""/g,'"'),d&&d.match(/^=".*"$/)&&(d=d.slice(2,-1)),h[l][o++]=d!==""?d:null;break}if(d==="EOD")break}}return s&&s.sheetRows&&(h=h.slice(0,s.sheetRows)),h}function t(a,s){return jr(e(a,s),s)}function n(a,s){return Sr(t(a,s),s)}var i=function(){var a=function(l,o,c,h,u){l.push(o),l.push(c+","+h),l.push('"'+u.replace(/"/g,'""')+'"')},s=function(l,o,c,h){l.push(o+","+c),l.push(o==1?'"'+h.replace(/"/g,'""')+'"':h)};return function(l){var o=[],c=Ie(l["!ref"]),h,u=Array.isArray(l);a(o,"TABLE",0,1,"sheetjs"),a(o,"VECTORS",0,c.e.r-c.s.r+1,""),a(o,"TUPLES",0,c.e.c-c.s.c+1,""),a(o,"DATA",0,0,"");for(var x=c.s.r;x<=c.e.r;++x){s(o,-1,0,"BOT");for(var v=c.s.c;v<=c.e.c;++v){var d=Se({r:x,c:v});if(h=u?(l[x]||[])[v]:l[d],!h){s(o,1,0,"");continue}switch(h.t){case"n":var m=h.w;!m&&h.v!=null&&(m=h.v),m==null?h.f&&!h.F?s(o,1,0,"="+h.f):s(o,1,0,""):s(o,0,m,"V");break;case"b":s(o,0,h.v?1:0,h.v?"TRUE":"FALSE");break;case"s":s(o,1,0,isNaN(h.v)?h.v:'="'+h.v+'"');break;case"d":h.w||(h.w=rr(h.z||Me[14],ut(ft(h.v)))),s(o,0,h.w,"V");break;default:s(o,1,0,"")}}}s(o,-1,0,"EOD");var y=`\r
|
||
`,A=o.join(y);return A}}();return{to_workbook:n,to_sheet:t,from_sheet:i}}(),_f=function(){function e(h){return h.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
|
||
`)}function r(h){return h.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function t(h,u){for(var x=h.split(`
|
||
`),v=-1,d=-1,m=0,y=[];m!==x.length;++m){var A=x[m].trim().split(":");if(A[0]==="cell"){var F=Ge(A[1]);if(y.length<=F.r)for(v=y.length;v<=F.r;++v)y[v]||(y[v]=[]);switch(v=F.r,d=F.c,A[2]){case"t":y[v][d]=e(A[3]);break;case"v":y[v][d]=+A[3];break;case"vtf":var I=A[A.length-1];case"vtc":switch(A[3]){case"nl":y[v][d]=!!+A[4];break;default:y[v][d]=+A[4];break}A[2]=="vtf"&&(y[v][d]=[y[v][d],I])}}}return u&&u.sheetRows&&(y=y.slice(0,u.sheetRows)),y}function n(h,u){return jr(t(h,u),u)}function i(h,u){return Sr(n(h,u),u)}var a=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
|
||
`),s=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
|
||
`)+`
|
||
`,f=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
|
||
`),l="--SocialCalcSpreadsheetControlSave--";function o(h){if(!h||!h["!ref"])return"";for(var u=[],x=[],v,d="",m=_t(h["!ref"]),y=Array.isArray(h),A=m.s.r;A<=m.e.r;++A)for(var F=m.s.c;F<=m.e.c;++F)if(d=Se({r:A,c:F}),v=y?(h[A]||[])[F]:h[d],!(!v||v.v==null||v.t==="z")){switch(x=["cell",d,"t"],v.t){case"s":case"str":x.push(r(v.v));break;case"n":v.f?(x[2]="vtf",x[3]="n",x[4]=v.v,x[5]=r(v.f)):(x[2]="v",x[3]=v.v);break;case"b":x[2]="vt"+(v.f?"f":"c"),x[3]="nl",x[4]=v.v?"1":"0",x[5]=r(v.f||(v.v?"TRUE":"FALSE"));break;case"d":var I=ut(ft(v.v));x[2]="vtc",x[3]="nd",x[4]=""+I,x[5]=v.w||rr(v.z||Me[14],I);break;case"e":continue}u.push(x.join(":"))}return u.push("sheet:c:"+(m.e.c-m.s.c+1)+":r:"+(m.e.r-m.s.r+1)+":tvf:1"),u.push("valueformat:1:text-wiki"),u.join(`
|
||
`)}function c(h){return[a,s,f,s,o(h),l].join(`
|
||
`)}return{to_workbook:i,to_sheet:n,from_sheet:c}}(),H1=function(){function e(c,h,u,x,v){v.raw?h[u][x]=c:c===""||(c==="TRUE"?h[u][x]=!0:c==="FALSE"?h[u][x]=!1:isNaN(Gt(c))?isNaN(dn(c).getDate())?h[u][x]=c:h[u][x]=ft(c):h[u][x]=Gt(c))}function r(c,h){var u=h||{},x=[];if(!c||c.length===0)return x;for(var v=c.split(/[\r\n]/),d=v.length-1;d>=0&&v[d].length===0;)--d;for(var m=10,y=0,A=0;A<=d;++A)y=v[A].indexOf(" "),y==-1?y=v[A].length:y++,m=Math.max(m,y);for(A=0;A<=d;++A){x[A]=[];var F=0;for(e(v[A].slice(0,m).trim(),x,A,F,u),F=1;F<=(v[A].length-m)/10+1;++F)e(v[A].slice(m+(F-1)*10,m+F*10).trim(),x,A,F,u)}return u.sheetRows&&(x=x.slice(0,u.sheetRows)),x}var t={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(c){for(var h={},u=!1,x=0,v=0;x<c.length;++x)(v=c.charCodeAt(x))==34?u=!u:!u&&v in t&&(h[v]=(h[v]||0)+1);v=[];for(x in h)Object.prototype.hasOwnProperty.call(h,x)&&v.push([h[x],x]);if(!v.length){h=n;for(x in h)Object.prototype.hasOwnProperty.call(h,x)&&v.push([h[x],x])}return v.sort(function(d,m){return d[0]-m[0]||n[d[1]]-n[m[1]]}),t[v.pop()[1]]||44}function a(c,h){var u=h||{},x="",v=u.dense?[]:{},d={s:{c:0,r:0},e:{c:0,r:0}};c.slice(0,4)=="sep="?c.charCodeAt(5)==13&&c.charCodeAt(6)==10?(x=c.charAt(4),c=c.slice(7)):c.charCodeAt(5)==13||c.charCodeAt(5)==10?(x=c.charAt(4),c=c.slice(6)):x=i(c.slice(0,1024)):u&&u.FS?x=u.FS:x=i(c.slice(0,1024));var m=0,y=0,A=0,F=0,I=0,z=x.charCodeAt(0),ee=!1,D=0,V=c.charCodeAt(0);c=c.replace(/\r\n/mg,`
|
||
`);var P=u.dateNF!=null?ih(u.dateNF):null;function b(){var U=c.slice(F,I),G={};if(U.charAt(0)=='"'&&U.charAt(U.length-1)=='"'&&(U=U.slice(1,-1).replace(/""/g,'"')),U.length===0)G.t="z";else if(u.raw)G.t="s",G.v=U;else if(U.trim().length===0)G.t="s",G.v=U;else if(U.charCodeAt(0)==61)U.charCodeAt(1)==34&&U.charCodeAt(U.length-1)==34?(G.t="s",G.v=U.slice(2,-1).replace(/""/g,'"')):$d(U)?(G.t="n",G.f=U.slice(1)):(G.t="s",G.v=U);else if(U=="TRUE")G.t="b",G.v=!0;else if(U=="FALSE")G.t="b",G.v=!1;else if(!isNaN(A=Gt(U)))G.t="n",u.cellText!==!1&&(G.w=U),G.v=A;else if(!isNaN(dn(U).getDate())||P&&U.match(P)){G.z=u.dateNF||Me[14];var K=0;P&&U.match(P)&&(U=ah(U,u.dateNF,U.match(P)||[]),K=1),u.cellDates?(G.t="d",G.v=ft(U,K)):(G.t="n",G.v=ut(ft(U,K))),u.cellText!==!1&&(G.w=rr(G.z,G.v instanceof Date?ut(G.v):G.v)),u.cellNF||delete G.z}else G.t="s",G.v=U;if(G.t=="z"||(u.dense?(v[m]||(v[m]=[]),v[m][y]=G):v[Se({c:y,r:m})]=G),F=I+1,V=c.charCodeAt(F),d.e.c<y&&(d.e.c=y),d.e.r<m&&(d.e.r=m),D==z)++y;else if(y=0,++m,u.sheetRows&&u.sheetRows<=m)return!0}e:for(;I<c.length;++I)switch(D=c.charCodeAt(I)){case 34:V===34&&(ee=!ee);break;case z:case 10:case 13:if(!ee&&b())break e;break}return I-F>0&&b(),v["!ref"]=$e(d),v}function s(c,h){return!(h&&h.PRN)||h.FS||c.slice(0,4)=="sep="||c.indexOf(" ")>=0||c.indexOf(",")>=0||c.indexOf(";")>=0?a(c,h):jr(r(c,h),h)}function f(c,h){var u="",x=h.type=="string"?[0,0,0,0]:em(c,h);switch(h.type){case"base64":u=jt(c);break;case"binary":u=c;break;case"buffer":h.codepage==65001?u=c.toString("utf8"):h.codepage&&typeof pr<"u"?u=pr.utils.decode(h.codepage,c):u=ge&&Buffer.isBuffer(c)?c.toString("binary"):gn(c);break;case"array":u=vi(c);break;case"string":u=c;break;default:throw new Error("Unrecognized type "+h.type)}return x[0]==239&&x[1]==187&&x[2]==191?u=nn(u.slice(3)):h.type!="string"&&h.type!="buffer"&&h.codepage==65001?u=nn(u):h.type=="binary"&&typeof pr<"u"&&h.codepage&&(u=pr.utils.decode(h.codepage,pr.utils.encode(28591,u))),u.slice(0,19)=="socialcalc:version:"?_f.to_sheet(h.type=="string"?u:nn(u),h):s(u,h)}function l(c,h){return Sr(f(c,h),h)}function o(c){for(var h=[],u=Ie(c["!ref"]),x,v=Array.isArray(c),d=u.s.r;d<=u.e.r;++d){for(var m=[],y=u.s.c;y<=u.e.c;++y){var A=Se({r:d,c:y});if(x=v?(c[d]||[])[y]:c[A],!x||x.v==null){m.push(" ");continue}for(var F=(x.w||(Kt(x),x.w)||"").slice(0,10);F.length<10;)F+=" ";m.push(F+(y===0?" ":""))}h.push(m.join(""))}return h.join(`
|
||
`)}return{to_workbook:l,to_sheet:f,from_sheet:o}}(),w0=function(){function e(S,M,O){if(S){vt(S,S.l||0);for(var C=O.Enum||Et;S.l<S.length;){var j=S.read_shift(2),oe=C[j]||C[65535],ue=S.read_shift(2),se=S.l+ue,te=oe.f&&oe.f(S,ue,O);if(S.l=se,M(te,oe,j))return}}}function r(S,M){switch(M.type){case"base64":return t(Ct(jt(S)),M);case"binary":return t(Ct(S),M);case"buffer":case"array":return t(S,M)}throw"Unsupported type "+M.type}function t(S,M){if(!S)return S;var O=M||{},C=O.dense?[]:{},j="Sheet1",oe="",ue=0,se={},te=[],Fe=[],ve={s:{r:0,c:0},e:{r:0,c:0}},it=O.sheetRows||0;if(S[2]==0&&(S[3]==8||S[3]==9)&&S.length>=16&&S[14]==5&&S[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(S[2]==2)O.Enum=Et,e(S,function(ae,Tt,Ut){switch(Ut){case 0:O.vers=ae,ae>=4096&&(O.qpro=!0);break;case 6:ve=ae;break;case 204:ae&&(oe=ae);break;case 222:oe=ae;break;case 15:case 51:O.qpro||(ae[1].v=ae[1].v.slice(1));case 13:case 14:case 16:Ut==14&&(ae[2]&112)==112&&(ae[2]&15)>1&&(ae[2]&15)<15&&(ae[1].z=O.dateNF||Me[14],O.cellDates&&(ae[1].t="d",ae[1].v=Ps(ae[1].v))),O.qpro&&ae[3]>ue&&(C["!ref"]=$e(ve),se[j]=C,te.push(j),C=O.dense?[]:{},ve={s:{r:0,c:0},e:{r:0,c:0}},ue=ae[3],j=oe||"Sheet"+(ue+1),oe="");var cr=O.dense?(C[ae[0].r]||[])[ae[0].c]:C[Se(ae[0])];if(cr){cr.t=ae[1].t,cr.v=ae[1].v,ae[1].z!=null&&(cr.z=ae[1].z),ae[1].f!=null&&(cr.f=ae[1].f);break}O.dense?(C[ae[0].r]||(C[ae[0].r]=[]),C[ae[0].r][ae[0].c]=ae[1]):C[Se(ae[0])]=ae[1];break}},O);else if(S[2]==26||S[2]==14)O.Enum=xt,S[2]==14&&(O.qpro=!0,S.l=0),e(S,function(ae,Tt,Ut){switch(Ut){case 204:j=ae;break;case 22:ae[1].v=ae[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(ae[3]>ue&&(C["!ref"]=$e(ve),se[j]=C,te.push(j),C=O.dense?[]:{},ve={s:{r:0,c:0},e:{r:0,c:0}},ue=ae[3],j="Sheet"+(ue+1)),it>0&&ae[0].r>=it)break;O.dense?(C[ae[0].r]||(C[ae[0].r]=[]),C[ae[0].r][ae[0].c]=ae[1]):C[Se(ae[0])]=ae[1],ve.e.c<ae[0].c&&(ve.e.c=ae[0].c),ve.e.r<ae[0].r&&(ve.e.r=ae[0].r);break;case 27:ae[14e3]&&(Fe[ae[14e3][0]]=ae[14e3][1]);break;case 1537:Fe[ae[0]]=ae[1],ae[0]==ue&&(j=ae[1]);break}},O);else throw new Error("Unrecognized LOTUS BOF "+S[2]);if(C["!ref"]=$e(ve),se[oe||j]=C,te.push(oe||j),!Fe.length)return{SheetNames:te,Sheets:se};for(var _e={},Bt=[],Le=0;Le<Fe.length;++Le)se[te[Le]]?(Bt.push(Fe[Le]||te[Le]),_e[Fe[Le]]=se[Fe[Le]]||se[te[Le]]):(Bt.push(Fe[Le]),_e[Fe[Le]]={"!ref":"A1"});return{SheetNames:Bt,Sheets:_e}}function n(S,M){var O=M||{};if(+O.codepage>=0&&un(+O.codepage),O.type=="string")throw new Error("Cannot write WK1 to JS string");var C=ct(),j=Ie(S["!ref"]),oe=Array.isArray(S),ue=[];Z(C,0,a(1030)),Z(C,6,l(j));for(var se=Math.min(j.e.r,8191),te=j.s.r;te<=se;++te)for(var Fe=Ze(te),ve=j.s.c;ve<=j.e.c;++ve){te===j.s.r&&(ue[ve]=rt(ve));var it=ue[ve]+Fe,_e=oe?(S[te]||[])[ve]:S[it];if(!(!_e||_e.t=="z"))if(_e.t=="n")(_e.v|0)==_e.v&&_e.v>=-32768&&_e.v<=32767?Z(C,13,x(te,ve,_e.v)):Z(C,14,d(te,ve,_e.v));else{var Bt=Kt(_e);Z(C,15,h(te,ve,Bt.slice(0,239)))}}return Z(C,1),C.end()}function i(S,M){var O=M||{};if(+O.codepage>=0&&un(+O.codepage),O.type=="string")throw new Error("Cannot write WK3 to JS string");var C=ct();Z(C,0,s(S));for(var j=0,oe=0;j<S.SheetNames.length;++j)(S.Sheets[S.SheetNames[j]]||{})["!ref"]&&Z(C,27,Be(S.SheetNames[j],oe++));var ue=0;for(j=0;j<S.SheetNames.length;++j){var se=S.Sheets[S.SheetNames[j]];if(!(!se||!se["!ref"])){for(var te=Ie(se["!ref"]),Fe=Array.isArray(se),ve=[],it=Math.min(te.e.r,8191),_e=te.s.r;_e<=it;++_e)for(var Bt=Ze(_e),Le=te.s.c;Le<=te.e.c;++Le){_e===te.s.r&&(ve[Le]=rt(Le));var ae=ve[Le]+Bt,Tt=Fe?(se[_e]||[])[Le]:se[ae];if(!(!Tt||Tt.t=="z"))if(Tt.t=="n")Z(C,23,b(_e,Le,ue,Tt.v));else{var Ut=Kt(Tt);Z(C,22,D(_e,Le,ue,Ut.slice(0,239)))}}++ue}}return Z(C,1),C.end()}function a(S){var M=B(2);return M.write_shift(2,S),M}function s(S){var M=B(26);M.write_shift(2,4096),M.write_shift(2,4),M.write_shift(4,0);for(var O=0,C=0,j=0,oe=0;oe<S.SheetNames.length;++oe){var ue=S.SheetNames[oe],se=S.Sheets[ue];if(!(!se||!se["!ref"])){++j;var te=_t(se["!ref"]);O<te.e.r&&(O=te.e.r),C<te.e.c&&(C=te.e.c)}}return O>8191&&(O=8191),M.write_shift(2,O),M.write_shift(1,j),M.write_shift(1,C),M.write_shift(2,0),M.write_shift(2,0),M.write_shift(1,1),M.write_shift(1,2),M.write_shift(4,0),M.write_shift(4,0),M}function f(S,M,O){var C={s:{c:0,r:0},e:{c:0,r:0}};return M==8&&O.qpro?(C.s.c=S.read_shift(1),S.l++,C.s.r=S.read_shift(2),C.e.c=S.read_shift(1),S.l++,C.e.r=S.read_shift(2),C):(C.s.c=S.read_shift(2),C.s.r=S.read_shift(2),M==12&&O.qpro&&(S.l+=2),C.e.c=S.read_shift(2),C.e.r=S.read_shift(2),M==12&&O.qpro&&(S.l+=2),C.s.c==65535&&(C.s.c=C.e.c=C.s.r=C.e.r=0),C)}function l(S){var M=B(8);return M.write_shift(2,S.s.c),M.write_shift(2,S.s.r),M.write_shift(2,S.e.c),M.write_shift(2,S.e.r),M}function o(S,M,O){var C=[{c:0,r:0},{t:"n",v:0},0,0];return O.qpro&&O.vers!=20768?(C[0].c=S.read_shift(1),C[3]=S.read_shift(1),C[0].r=S.read_shift(2),S.l+=2):(C[2]=S.read_shift(1),C[0].c=S.read_shift(2),C[0].r=S.read_shift(2)),C}function c(S,M,O){var C=S.l+M,j=o(S,M,O);if(j[1].t="s",O.vers==20768){S.l++;var oe=S.read_shift(1);return j[1].v=S.read_shift(oe,"utf8"),j}return O.qpro&&S.l++,j[1].v=S.read_shift(C-S.l,"cstr"),j}function h(S,M,O){var C=B(7+O.length);C.write_shift(1,255),C.write_shift(2,M),C.write_shift(2,S),C.write_shift(1,39);for(var j=0;j<C.length;++j){var oe=O.charCodeAt(j);C.write_shift(1,oe>=128?95:oe)}return C.write_shift(1,0),C}function u(S,M,O){var C=o(S,M,O);return C[1].v=S.read_shift(2,"i"),C}function x(S,M,O){var C=B(7);return C.write_shift(1,255),C.write_shift(2,M),C.write_shift(2,S),C.write_shift(2,O,"i"),C}function v(S,M,O){var C=o(S,M,O);return C[1].v=S.read_shift(8,"f"),C}function d(S,M,O){var C=B(13);return C.write_shift(1,255),C.write_shift(2,M),C.write_shift(2,S),C.write_shift(8,O,"f"),C}function m(S,M,O){var C=S.l+M,j=o(S,M,O);if(j[1].v=S.read_shift(8,"f"),O.qpro)S.l=C;else{var oe=S.read_shift(2);I(S.slice(S.l,S.l+oe),j),S.l+=oe}return j}function y(S,M,O){var C=M&32768;return M&=-32769,M=(C?S:0)+(M>=8192?M-16384:M),(C?"":"$")+(O?rt(M):Ze(M))}var A={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},F=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function I(S,M){vt(S,0);for(var O=[],C=0,j="",oe="",ue="",se="";S.l<S.length;){var te=S[S.l++];switch(te){case 0:O.push(S.read_shift(8,"f"));break;case 1:oe=y(M[0].c,S.read_shift(2),!0),j=y(M[0].r,S.read_shift(2),!1),O.push(oe+j);break;case 2:{var Fe=y(M[0].c,S.read_shift(2),!0),ve=y(M[0].r,S.read_shift(2),!1);oe=y(M[0].c,S.read_shift(2),!0),j=y(M[0].r,S.read_shift(2),!1),O.push(Fe+ve+":"+oe+j)}break;case 3:if(S.l<S.length){console.error("WK1 premature formula end");return}break;case 4:O.push("("+O.pop()+")");break;case 5:O.push(S.read_shift(2));break;case 6:{for(var it="";te=S[S.l++];)it+=String.fromCharCode(te);O.push('"'+it.replace(/"/g,'""')+'"')}break;case 8:O.push("-"+O.pop());break;case 23:O.push("+"+O.pop());break;case 22:O.push("NOT("+O.pop()+")");break;case 20:case 21:se=O.pop(),ue=O.pop(),O.push(["AND","OR"][te-20]+"("+ue+","+se+")");break;default:if(te<32&&F[te])se=O.pop(),ue=O.pop(),O.push(ue+F[te]+se);else if(A[te]){if(C=A[te][1],C==69&&(C=S[S.l++]),C>O.length){console.error("WK1 bad formula parse 0x"+te.toString(16)+":|"+O.join("|")+"|");return}var _e=O.slice(-C);O.length-=C,O.push(A[te][0]+"("+_e.join(",")+")")}else return te<=7?console.error("WK1 invalid opcode "+te.toString(16)):te<=24?console.error("WK1 unsupported op "+te.toString(16)):te<=30?console.error("WK1 invalid opcode "+te.toString(16)):te<=115?console.error("WK1 unsupported function opcode "+te.toString(16)):console.error("WK1 unrecognized opcode "+te.toString(16))}}O.length==1?M[1].f=""+O[0]:console.error("WK1 bad formula parse |"+O.join("|")+"|")}function z(S){var M=[{c:0,r:0},{t:"n",v:0},0];return M[0].r=S.read_shift(2),M[3]=S[S.l++],M[0].c=S[S.l++],M}function ee(S,M){var O=z(S);return O[1].t="s",O[1].v=S.read_shift(M-4,"cstr"),O}function D(S,M,O,C){var j=B(6+C.length);j.write_shift(2,S),j.write_shift(1,O),j.write_shift(1,M),j.write_shift(1,39);for(var oe=0;oe<C.length;++oe){var ue=C.charCodeAt(oe);j.write_shift(1,ue>=128?95:ue)}return j.write_shift(1,0),j}function V(S,M){var O=z(S);O[1].v=S.read_shift(2);var C=O[1].v>>1;if(O[1].v&1)switch(C&7){case 0:C=(C>>3)*5e3;break;case 1:C=(C>>3)*500;break;case 2:C=(C>>3)/20;break;case 3:C=(C>>3)/200;break;case 4:C=(C>>3)/2e3;break;case 5:C=(C>>3)/2e4;break;case 6:C=(C>>3)/16;break;case 7:C=(C>>3)/64;break}return O[1].v=C,O}function P(S,M){var O=z(S),C=S.read_shift(4),j=S.read_shift(4),oe=S.read_shift(2);if(oe==65535)return C===0&&j===3221225472?(O[1].t="e",O[1].v=15):C===0&&j===3489660928?(O[1].t="e",O[1].v=42):O[1].v=0,O;var ue=oe&32768;return oe=(oe&32767)-16446,O[1].v=(1-ue*2)*(j*Math.pow(2,oe+32)+C*Math.pow(2,oe)),O}function b(S,M,O,C){var j=B(14);if(j.write_shift(2,S),j.write_shift(1,O),j.write_shift(1,M),C==0)return j.write_shift(4,0),j.write_shift(4,0),j.write_shift(2,65535),j;var oe=0,ue=0,se=0,te=0;return C<0&&(oe=1,C=-C),ue=Math.log2(C)|0,C/=Math.pow(2,ue-31),te=C>>>0,te&2147483648||(C/=2,++ue,te=C>>>0),C-=te,te|=2147483648,te>>>=0,C*=Math.pow(2,32),se=C>>>0,j.write_shift(4,se),j.write_shift(4,te),ue+=16383+(oe?32768:0),j.write_shift(2,ue),j}function U(S,M){var O=P(S);return S.l+=M-14,O}function G(S,M){var O=z(S),C=S.read_shift(4);return O[1].v=C>>6,O}function K(S,M){var O=z(S),C=S.read_shift(8,"f");return O[1].v=C,O}function ce(S,M){var O=K(S);return S.l+=M-10,O}function le(S,M){return S[S.l+M-1]==0?S.read_shift(M,"cstr"):""}function de(S,M){var O=S[S.l++];O>M-1&&(O=M-1);for(var C="";C.length<O;)C+=String.fromCharCode(S[S.l++]);return C}function xe(S,M,O){if(!(!O.qpro||M<21)){var C=S.read_shift(1);S.l+=17,S.l+=1,S.l+=2;var j=S.read_shift(M-21,"cstr");return[C,j]}}function ze(S,M){for(var O={},C=S.l+M;S.l<C;){var j=S.read_shift(2);if(j==14e3){for(O[j]=[0,""],O[j][0]=S.read_shift(2);S[S.l];)O[j][1]+=String.fromCharCode(S[S.l]),S.l++;S.l++}}return O}function Be(S,M){var O=B(5+S.length);O.write_shift(2,14e3),O.write_shift(2,M);for(var C=0;C<S.length;++C){var j=S.charCodeAt(C);O[O.l++]=j>127?95:j}return O[O.l++]=0,O}var Et={0:{n:"BOF",f:xf},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:u},14:{n:"NUMBER",f:v},15:{n:"LABEL",f:c},16:{n:"FORMULA",f:m},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:c},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:le},222:{n:"SHEETNAMELP",f:de},65535:{n:""}},xt={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:ee},23:{n:"NUMBER17",f:P},24:{n:"NUMBER18",f:V},25:{n:"FORMULA19",f:U},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:ze},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:G},38:{n:"??"},39:{n:"NUMBER27",f:K},40:{n:"FORMULA28",f:ce},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:le},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:xe},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:i,to_workbook:r}}(),V1=/^\s|\s$|[\t\n\r]/;function Ef(e,r){if(!r.bookSST)return"";var t=[We];t[t.length]=q("sst",null,{xmlns:zr[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var i=e[n],a="<si>";i.r?a+=i.r:(a+="<t",i.t||(i.t=""),i.t.match(V1)&&(a+=' xml:space="preserve"'),a+=">"+we(i.t)+"</t>"),a+="</si>",t[t.length]=a}return t.length>2&&(t[t.length]="</sst>",t[1]=t[1].replace("/>",">")),t.join("")}function G1(e){return[e.read_shift(4),e.read_shift(4)]}function X1(e,r){return r||(r=B(8)),r.write_shift(4,e.Count),r.write_shift(4,e.Unique),r}var z1=Mh;function j1(e){var r=ct();X(r,159,X1(e));for(var t=0;t<e.length;++t)X(r,19,z1(e[t]));return X(r,160),r.end()}function K1(e){for(var r=[],t=e.split(""),n=0;n<t.length;++n)r[n]=t[n].charCodeAt(0);return r}function Tf(e){var r=0,t,n=K1(e),i=n.length+1,a,s,f,l,o;for(t=gr(i),t[0]=n.length,a=1;a!=i;++a)t[a]=n[a-1];for(a=i-1;a>=0;--a)s=t[a],f=r&16384?1:0,l=r<<1&32767,o=f|l,r=o^s;return r^52811}var Y1=function(){function e(i,a){switch(a.type){case"base64":return r(jt(i),a);case"binary":return r(i,a);case"buffer":return r(ge&&Buffer.isBuffer(i)?i.toString("binary"):gn(i),a);case"array":return r(vi(i),a)}throw new Error("Unrecognized type "+a.type)}function r(i,a){var s=a||{},f=s.dense?[]:{},l=i.match(/\\trowd.*?\\row\b/g);if(!l.length)throw new Error("RTF missing table");var o={s:{c:0,r:0},e:{c:0,r:l.length-1}};return l.forEach(function(c,h){Array.isArray(f)&&(f[h]=[]);for(var u=/\\\w+\b/g,x=0,v,d=-1;v=u.exec(c);){switch(v[0]){case"\\cell":var m=c.slice(x,u.lastIndex-v[0].length);if(m[0]==" "&&(m=m.slice(1)),++d,m.length){var y={v:m,t:"s"};Array.isArray(f)?f[h][d]=y:f[Se({r:h,c:d})]=y}break}x=u.lastIndex}d>o.e.c&&(o.e.c=d)}),f["!ref"]=$e(o),f}function t(i,a){return Sr(e(i,a),a)}function n(i){for(var a=["{\\rtf1\\ansi"],s=Ie(i["!ref"]),f,l=Array.isArray(i),o=s.s.r;o<=s.e.r;++o){a.push("\\trowd\\trautofit1");for(var c=s.s.c;c<=s.e.c;++c)a.push("\\cellx"+(c+1));for(a.push("\\pard\\intbl"),c=s.s.c;c<=s.e.c;++c){var h=Se({r:o,c});f=l?(i[o]||[])[c]:i[h],!(!f||f.v==null&&(!f.f||f.F))&&(a.push(" "+(f.w||(Kt(f),f.w))),a.push("\\cell"))}a.push("\\pard\\intbl\\row")}return a.join("")+"}"}return{to_workbook:t,to_sheet:e,from_sheet:n}}();function S0(e){for(var r=0,t=1;r!=3;++r)t=t*256+(e[r]>255?255:e[r]<0?0:e[r]);return t.toString(16).toUpperCase().slice(1)}var J1=6,Xt=J1;function Zn(e){return Math.floor((e+Math.round(128/Xt)/256)*Xt)}function Qn(e){return Math.floor((e-5)/Xt*100+.5)/100}function zi(e){return Math.round((e*Xt+5)/Xt*256)/256}function ma(e){e.width?(e.wpx=Zn(e.width),e.wch=Qn(e.wpx),e.MDW=Xt):e.wpx?(e.wch=Qn(e.wpx),e.width=zi(e.wch),e.MDW=Xt):typeof e.wch=="number"&&(e.width=zi(e.wch),e.wpx=Zn(e.width),e.MDW=Xt),e.customWidth&&delete e.customWidth}var q1=96,wf=q1;function ei(e){return e*96/wf}function Sf(e){return e*wf/96}function Z1(e){var r=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(var n=t[0];n<=t[1];++n)e[n]!=null&&(r[r.length]=q("numFmt",null,{numFmtId:n,formatCode:we(e[n])}))}),r.length===1?"":(r[r.length]="</numFmts>",r[0]=q("numFmts",null,{count:r.length-2}).replace("/>",">"),r.join(""))}function Q1(e){var r=[];return r[r.length]=q("cellXfs",null),e.forEach(function(t){r[r.length]=q("xf",null,t)}),r[r.length]="</cellXfs>",r.length===2?"":(r[0]=q("cellXfs",null,{count:r.length-2}).replace("/>",">"),r.join(""))}function Af(e,r){var t=[We,q("styleSheet",null,{xmlns:zr[0],"xmlns:vt":Ve.vt})],n;return e.SSF&&(n=Z1(e.SSF))!=null&&(t[t.length]=n),t[t.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',t[t.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',t[t.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',t[t.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=Q1(r.cellXfs))&&(t[t.length]=n),t[t.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',t[t.length]='<dxfs count="0"/>',t[t.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',t.length>2&&(t[t.length]="</styleSheet>",t[1]=t[1].replace("/>",">")),t.join("")}function ed(e,r){var t=e.read_shift(2),n=nt(e);return[t,n]}function td(e,r,t){t||(t=B(6+4*r.length)),t.write_shift(2,e),Xe(r,t);var n=t.length>t.l?t.slice(0,t.l):t;return t.l==null&&(t.l=t.length),n}function rd(e,r,t){var n={};n.sz=e.read_shift(2)/20;var i=Vh(e);i.fItalic&&(n.italic=1),i.fCondense&&(n.condense=1),i.fExtend&&(n.extend=1),i.fShadow&&(n.shadow=1),i.fOutline&&(n.outline=1),i.fStrikeout&&(n.strike=1);var a=e.read_shift(2);switch(a===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var s=e.read_shift(1);s!=0&&(n.underline=s);var f=e.read_shift(1);f>0&&(n.family=f);var l=e.read_shift(1);switch(l>0&&(n.charset=l),e.l++,n.color=Hh(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=nt(e),n}function nd(e,r){r||(r=B(25+4*32)),r.write_shift(2,e.sz*20),Gh(e,r),r.write_shift(2,e.bold?700:400);var t=0;e.vertAlign=="superscript"?t=1:e.vertAlign=="subscript"&&(t=2),r.write_shift(2,t),r.write_shift(1,e.underline||0),r.write_shift(1,e.family||0),r.write_shift(1,e.charset||0),r.write_shift(1,0),Jn(e.color,r);var n=0;return e.scheme=="major"&&(n=1),e.scheme=="minor"&&(n=2),r.write_shift(1,n),Xe(e.name,r),r.length>r.l?r.slice(0,r.l):r}var id=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Li,ad=Mt;function A0(e,r){r||(r=B(4*3+8*7+16*1)),Li||(Li=aa(id));var t=Li[e.patternType];t==null&&(t=40),r.write_shift(4,t);var n=0;if(t!=40)for(Jn({auto:1},r),Jn({auto:1},r);n<12;++n)r.write_shift(4,0);else{for(;n<4;++n)r.write_shift(4,0);for(;n<12;++n)r.write_shift(4,0)}return r.length>r.l?r.slice(0,r.l):r}function sd(e,r){var t=e.l+r,n=e.read_shift(2),i=e.read_shift(2);return e.l=t,{ixfe:n,numFmtId:i}}function yf(e,r,t){t||(t=B(16)),t.write_shift(2,r||0),t.write_shift(2,e.numFmtId||0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);var n=0;return t.write_shift(1,n),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(1,0),t}function Qr(e,r){return r||(r=B(10)),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(4,0),r}var fd=Mt;function ld(e,r){return r||(r=B(51)),r.write_shift(1,0),Qr(null,r),Qr(null,r),Qr(null,r),Qr(null,r),Qr(null,r),r.length>r.l?r.slice(0,r.l):r}function od(e,r){return r||(r=B(12+4*10)),r.write_shift(4,e.xfId),r.write_shift(2,1),r.write_shift(1,+e.builtinId),r.write_shift(1,0),Yn(e.name||"",r),r.length>r.l?r.slice(0,r.l):r}function cd(e,r,t){var n=B(2052);return n.write_shift(4,e),Yn(r,n),Yn(t,n),n.length>n.l?n.slice(0,n.l):n}function ud(e,r){if(r){var t=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)r[i]!=null&&++t}),t!=0&&(X(e,615,It(t)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)r[i]!=null&&X(e,44,td(i,r[i]))}),X(e,616))}}function hd(e){var r=1;X(e,611,It(r)),X(e,43,nd({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),X(e,612)}function dd(e){var r=2;X(e,603,It(r)),X(e,45,A0({patternType:"none"})),X(e,45,A0({patternType:"gray125"})),X(e,604)}function xd(e){var r=1;X(e,613,It(r)),X(e,46,ld()),X(e,614)}function pd(e){var r=1;X(e,626,It(r)),X(e,47,yf({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),X(e,627)}function vd(e,r){X(e,617,It(r.length)),r.forEach(function(t){X(e,47,yf(t,0))}),X(e,618)}function md(e){var r=1;X(e,619,It(r)),X(e,48,od({xfId:0,builtinId:0,name:"Normal"})),X(e,620)}function gd(e){var r=0;X(e,505,It(r)),X(e,506)}function _d(e){var r=0;X(e,508,cd(r,"TableStyleMedium9","PivotStyleMedium4")),X(e,509)}function Ed(e,r){var t=ct();return X(t,278),ud(t,e.SSF),hd(t),dd(t),xd(t),pd(t),vd(t,r.cellXfs),md(t),gd(t),_d(t),X(t,279),t.end()}function Ff(e,r){if(r&&r.themeXLSX)return r.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var t=[We];return t[t.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',t[t.length]="<a:themeElements>",t[t.length]='<a:clrScheme name="Office">',t[t.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',t[t.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',t[t.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',t[t.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',t[t.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',t[t.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',t[t.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',t[t.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',t[t.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',t[t.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',t[t.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',t[t.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',t[t.length]="</a:clrScheme>",t[t.length]='<a:fontScheme name="Office">',t[t.length]="<a:majorFont>",t[t.length]='<a:latin typeface="Cambria"/>',t[t.length]='<a:ea typeface=""/>',t[t.length]='<a:cs typeface=""/>',t[t.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',t[t.length]='<a:font script="Hang" typeface="맑은 고딕"/>',t[t.length]='<a:font script="Hans" typeface="宋体"/>',t[t.length]='<a:font script="Hant" typeface="新細明體"/>',t[t.length]='<a:font script="Arab" typeface="Times New Roman"/>',t[t.length]='<a:font script="Hebr" typeface="Times New Roman"/>',t[t.length]='<a:font script="Thai" typeface="Tahoma"/>',t[t.length]='<a:font script="Ethi" typeface="Nyala"/>',t[t.length]='<a:font script="Beng" typeface="Vrinda"/>',t[t.length]='<a:font script="Gujr" typeface="Shruti"/>',t[t.length]='<a:font script="Khmr" typeface="MoolBoran"/>',t[t.length]='<a:font script="Knda" typeface="Tunga"/>',t[t.length]='<a:font script="Guru" typeface="Raavi"/>',t[t.length]='<a:font script="Cans" typeface="Euphemia"/>',t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>',t[t.length]='<a:font script="Deva" typeface="Mangal"/>',t[t.length]='<a:font script="Telu" typeface="Gautami"/>',t[t.length]='<a:font script="Taml" typeface="Latha"/>',t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',t[t.length]='<a:font script="Orya" typeface="Kalinga"/>',t[t.length]='<a:font script="Mlym" typeface="Kartika"/>',t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>',t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',t[t.length]='<a:font script="Viet" typeface="Times New Roman"/>',t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>',t[t.length]="</a:majorFont>",t[t.length]="<a:minorFont>",t[t.length]='<a:latin typeface="Calibri"/>',t[t.length]='<a:ea typeface=""/>',t[t.length]='<a:cs typeface=""/>',t[t.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',t[t.length]='<a:font script="Hang" typeface="맑은 고딕"/>',t[t.length]='<a:font script="Hans" typeface="宋体"/>',t[t.length]='<a:font script="Hant" typeface="新細明體"/>',t[t.length]='<a:font script="Arab" typeface="Arial"/>',t[t.length]='<a:font script="Hebr" typeface="Arial"/>',t[t.length]='<a:font script="Thai" typeface="Tahoma"/>',t[t.length]='<a:font script="Ethi" typeface="Nyala"/>',t[t.length]='<a:font script="Beng" typeface="Vrinda"/>',t[t.length]='<a:font script="Gujr" typeface="Shruti"/>',t[t.length]='<a:font script="Khmr" typeface="DaunPenh"/>',t[t.length]='<a:font script="Knda" typeface="Tunga"/>',t[t.length]='<a:font script="Guru" typeface="Raavi"/>',t[t.length]='<a:font script="Cans" typeface="Euphemia"/>',t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>',t[t.length]='<a:font script="Deva" typeface="Mangal"/>',t[t.length]='<a:font script="Telu" typeface="Gautami"/>',t[t.length]='<a:font script="Taml" typeface="Latha"/>',t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',t[t.length]='<a:font script="Orya" typeface="Kalinga"/>',t[t.length]='<a:font script="Mlym" typeface="Kartika"/>',t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>',t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',t[t.length]='<a:font script="Viet" typeface="Arial"/>',t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>',t[t.length]="</a:minorFont>",t[t.length]="</a:fontScheme>",t[t.length]='<a:fmtScheme name="Office">',t[t.length]="<a:fillStyleLst>",t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:lin ang="16200000" scaled="1"/>',t[t.length]="</a:gradFill>",t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:lin ang="16200000" scaled="0"/>',t[t.length]="</a:gradFill>",t[t.length]="</a:fillStyleLst>",t[t.length]="<a:lnStyleLst>",t[t.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]="</a:lnStyleLst>",t[t.length]="<a:effectStyleLst>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]="</a:effectStyle>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]="</a:effectStyle>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',t[t.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',t[t.length]="</a:effectStyle>",t[t.length]="</a:effectStyleLst>",t[t.length]="<a:bgFillStyleLst>",t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',t[t.length]="</a:gradFill>",t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',t[t.length]="</a:gradFill>",t[t.length]="</a:bgFillStyleLst>",t[t.length]="</a:fmtScheme>",t[t.length]="</a:themeElements>",t[t.length]="<a:objectDefaults>",t[t.length]="<a:spDef>",t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',t[t.length]="</a:spDef>",t[t.length]="<a:lnDef>",t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',t[t.length]="</a:lnDef>",t[t.length]="</a:objectDefaults>",t[t.length]="<a:extraClrSchemeLst/>",t[t.length]="</a:theme>",t.join("")}function Td(e,r){return{flags:e.read_shift(4),version:e.read_shift(4),name:nt(e)}}function wd(e){var r=B(12+2*e.name.length);return r.write_shift(4,e.flags),r.write_shift(4,e.version),Xe(e.name,r),r.slice(0,r.l)}function Sd(e){for(var r=[],t=e.read_shift(4);t-- >0;)r.push([e.read_shift(4),e.read_shift(4)]);return r}function Ad(e){var r=B(4+8*e.length);r.write_shift(4,e.length);for(var t=0;t<e.length;++t)r.write_shift(4,e[t][0]),r.write_shift(4,e[t][1]);return r}function yd(e,r){var t=B(8+2*r.length);return t.write_shift(4,e),Xe(r,t),t.slice(0,t.l)}function Fd(e){return e.l+=4,e.read_shift(4)!=0}function Cd(e,r){var t=B(8);return t.write_shift(4,e),t.write_shift(4,r?1:0),t}function Od(){var e=ct();return X(e,332),X(e,334,It(1)),X(e,335,wd({name:"XLDAPR",version:12e4,flags:3496657072})),X(e,336),X(e,339,yd(1,"XLDAPR")),X(e,52),X(e,35,It(514)),X(e,4096,It(0)),X(e,4097,St(1)),X(e,36),X(e,53),X(e,340),X(e,337,Cd(1,!0)),X(e,51,Ad([[1,0]])),X(e,338),X(e,333),e.end()}function Cf(){var e=[We];return e.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
|
||
<metadataTypes count="1">
|
||
<metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
|
||
</metadataTypes>
|
||
<futureMetadata name="XLDAPR" count="1">
|
||
<bk>
|
||
<extLst>
|
||
<ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
|
||
<xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
|
||
</ext>
|
||
</extLst>
|
||
</bk>
|
||
</futureMetadata>
|
||
<cellMetadata count="1">
|
||
<bk>
|
||
<rc t="1" v="0"/>
|
||
</bk>
|
||
</cellMetadata>
|
||
</metadata>`),e.join("")}function Dd(e){var r={};r.i=e.read_shift(4);var t={};t.r=e.read_shift(4),t.c=e.read_shift(4),r.r=Se(t);var n=e.read_shift(1);return n&2&&(r.l="1"),n&8&&(r.a="1"),r}var Lr=1024;function Of(e,r){for(var t=[21600,21600],n=["m0,0l0",t[1],t[0],t[1],t[0],"0xe"].join(","),i=[q("xml",null,{"xmlns:v":mt.v,"xmlns:o":mt.o,"xmlns:x":mt.x,"xmlns:mv":mt.mv}).replace(/\/>/,">"),q("o:shapelayout",q("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),q("v:shapetype",[q("v:stroke",null,{joinstyle:"miter"}),q("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:t.join(","),path:n})];Lr<e*1e3;)Lr+=1e3;return r.forEach(function(a){var s=Ge(a[0]),f={color2:"#BEFF82",type:"gradient"};f.type=="gradient"&&(f.angle="-180");var l=f.type=="gradient"?q("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,o=q("v:fill",l,f),c={on:"t",obscured:"t"};++Lr,i=i.concat(["<v:shape"+xn({id:"_x0000_s"+Lr,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(a[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",o,q("v:shadow",null,c),q("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",qe("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),qe("x:AutoFill","False"),qe("x:Row",String(s.r)),qe("x:Column",String(s.c)),a[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),i.push("</xml>"),i.join("")}function Df(e){var r=[We,q("comments",null,{xmlns:zr[0]})],t=[];return r.push("<authors>"),e.forEach(function(n){n[1].forEach(function(i){var a=we(i.a);t.indexOf(a)==-1&&(t.push(a),r.push("<author>"+a+"</author>")),i.T&&i.ID&&t.indexOf("tc="+i.ID)==-1&&(t.push("tc="+i.ID),r.push("<author>tc="+i.ID+"</author>"))})}),t.length==0&&(t.push("SheetJ5"),r.push("<author>SheetJ5</author>")),r.push("</authors>"),r.push("<commentList>"),e.forEach(function(n){var i=0,a=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?i=t.indexOf("tc="+n[1][0].ID):n[1].forEach(function(l){l.a&&(i=t.indexOf(we(l.a))),a.push(l.t||"")}),r.push('<comment ref="'+n[0]+'" authorId="'+i+'"><text>'),a.length<=1)r.push(qe("t",we(a[0]||"")));else{for(var s=`Comment:
|
||
`+a[0]+`
|
||
`,f=1;f<a.length;++f)s+=`Reply:
|
||
`+a[f]+`
|
||
`;r.push(qe("t",we(s)))}r.push("</text></comment>")}),r.push("</commentList>"),r.length>2&&(r[r.length]="</comments>",r[1]=r[1].replace("/>",">")),r.join("")}function Id(e,r,t){var n=[We,q("ThreadedComments",null,{xmlns:Ve.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(i){var a="";(i[1]||[]).forEach(function(s,f){if(!s.T){delete s.ID;return}s.a&&r.indexOf(s.a)==-1&&r.push(s.a);var l={ref:i[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+t.tcid++).slice(-12)+"}"};f==0?a=l.id:l.parentId=a,s.ID=l.id,s.a&&(l.personId="{54EE7950-7262-4200-6969-"+("000000000000"+r.indexOf(s.a)).slice(-12)+"}"),n.push(q("threadedComment",qe("text",s.t||""),l))})}),n.push("</ThreadedComments>"),n.join("")}function kd(e){var r=[We,q("personList",null,{xmlns:Ve.TCMNT,"xmlns:x":zr[0]}).replace(/[\/]>/,">")];return e.forEach(function(t,n){r.push(q("person",null,{displayName:t,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:t,providerId:"None"}))}),r.push("</personList>"),r.join("")}function Nd(e){var r={};r.iauthor=e.read_shift(4);var t=Cr(e);return r.rfx=t.s,r.ref=Se(t.s),e.l+=16,r}function Rd(e,r){return r==null&&(r=B(36)),r.write_shift(4,e[1].iauthor),Kr(e[0],r),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r}var Ld=nt;function Pd(e){return Xe(e.slice(0,54))}function Md(e){var r=ct(),t=[];return X(r,628),X(r,630),e.forEach(function(n){n[1].forEach(function(i){t.indexOf(i.a)>-1||(t.push(i.a.slice(0,54)),X(r,632,Pd(i.a)))})}),X(r,631),X(r,633),e.forEach(function(n){n[1].forEach(function(i){i.iauthor=t.indexOf(i.a);var a={s:Ge(n[0]),e:Ge(n[0])};X(r,635,Rd([a,i])),i.t&&i.t.length>0&&X(r,637,Bh(i)),X(r,636),delete i.iauthor})}),X(r,634),X(r,629),r.end()}function bd(e,r){r.FullPaths.forEach(function(t,n){if(n!=0){var i=t.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");i.slice(-1)!=="/"&&Ae.utils.cfb_add(e,i,r.FileIndex[n].content)}})}var If=["xlsb","xlsm","xlam","biff8","xla"],Bd=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,r={r:0,c:0};function t(n,i,a,s){var f=!1,l=!1;a.length==0?l=!0:a.charAt(0)=="["&&(l=!0,a=a.slice(1,-1)),s.length==0?f=!0:s.charAt(0)=="["&&(f=!0,s=s.slice(1,-1));var o=a.length>0?parseInt(a,10)|0:0,c=s.length>0?parseInt(s,10)|0:0;return f?c+=r.c:--c,l?o+=r.r:--o,i+(f?"":"$")+rt(c)+(l?"":"$")+Ze(o)}return function(i,a){return r=a,i.replace(e,t)}}(),ga=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,_a=function(){return function(r,t){return r.replace(ga,function(n,i,a,s,f,l){var o=ha(s)-(a?0:t.c),c=ua(l)-(f?0:t.r),h=c==0?"":f?c+1:"["+c+"]",u=o==0?"":a?o+1:"["+o+"]";return i+"R"+h+"C"+u})}}();function Ud(e,r){return e.replace(ga,function(t,n,i,a,s,f){return n+(i=="$"?i+a:rt(ha(a)+r.c))+(s=="$"?s+f:Ze(ua(f)+r.r))})}function $d(e){return e.length!=1}function Ue(e){e.l+=1}function nr(e,r){var t=e.read_shift(r==1?1:2);return[t&16383,t>>14&1,t>>15&1]}function kf(e,r,t){var n=2;if(t){if(t.biff>=2&&t.biff<=5)return Nf(e);t.biff==12&&(n=4)}var i=e.read_shift(n),a=e.read_shift(n),s=nr(e,2),f=nr(e,2);return{s:{r:i,c:s[0],cRel:s[1],rRel:s[2]},e:{r:a,c:f[0],cRel:f[1],rRel:f[2]}}}function Nf(e){var r=nr(e,2),t=nr(e,2),n=e.read_shift(1),i=e.read_shift(1);return{s:{r:r[0],c:n,cRel:r[1],rRel:r[2]},e:{r:t[0],c:i,cRel:t[1],rRel:t[2]}}}function Wd(e,r,t){if(t.biff<8)return Nf(e);var n=e.read_shift(t.biff==12?4:2),i=e.read_shift(t.biff==12?4:2),a=nr(e,2),s=nr(e,2);return{s:{r:n,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function Rf(e,r,t){if(t&&t.biff>=2&&t.biff<=5)return Hd(e);var n=e.read_shift(t&&t.biff==12?4:2),i=nr(e,2);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function Hd(e){var r=nr(e,2),t=e.read_shift(1);return{r:r[0],c:t,cRel:r[1],rRel:r[2]}}function Vd(e){var r=e.read_shift(2),t=e.read_shift(2);return{r,c:t&255,fQuoted:!!(t&16384),cRel:t>>15,rRel:t>>15}}function Gd(e,r,t){var n=t&&t.biff?t.biff:8;if(n>=2&&n<=5)return Xd(e);var i=e.read_shift(n>=12?4:2),a=e.read_shift(2),s=(a&16384)>>14,f=(a&32768)>>15;if(a&=16383,f==1)for(;i>524287;)i-=1048576;if(s==1)for(;a>8191;)a=a-16384;return{r:i,c:a,cRel:s,rRel:f}}function Xd(e){var r=e.read_shift(2),t=e.read_shift(1),n=(r&32768)>>15,i=(r&16384)>>14;return r&=16383,n==1&&r>=8192&&(r=r-16384),i==1&&t>=128&&(t=t-256),{r,c:t,cRel:i,rRel:n}}function zd(e,r,t){var n=(e[e.l++]&96)>>5,i=kf(e,t.biff>=2&&t.biff<=5?6:8,t);return[n,i]}function jd(e,r,t){var n=(e[e.l++]&96)>>5,i=e.read_shift(2,"i"),a=8;if(t)switch(t.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}var s=kf(e,a,t);return[n,i,s]}function Kd(e,r,t){var n=(e[e.l++]&96)>>5;return e.l+=t&&t.biff>8?12:t.biff<8?6:8,[n]}function Yd(e,r,t){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=8;if(t)switch(t.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}return e.l+=a,[n,i]}function Jd(e,r,t){var n=(e[e.l++]&96)>>5,i=Wd(e,r-1,t);return[n,i]}function qd(e,r,t){var n=(e[e.l++]&96)>>5;return e.l+=t.biff==2?6:t.biff==12?14:7,[n]}function y0(e){var r=e[e.l+1]&1,t=1;return e.l+=4,[r,t]}function Zd(e,r,t){e.l+=2;for(var n=e.read_shift(t&&t.biff==2?1:2),i=[],a=0;a<=n;++a)i.push(e.read_shift(t&&t.biff==2?1:2));return i}function Qd(e,r,t){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(t&&t.biff==2?1:2)]}function ex(e,r,t){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(t&&t.biff==2?1:2)]}function tx(e){var r=e[e.l+1]&255?1:0;return e.l+=2,[r,e.read_shift(2)]}function rx(e,r,t){var n=e[e.l+1]&255?1:0;return e.l+=t&&t.biff==2?3:4,[n]}function Lf(e){var r=e.read_shift(1),t=e.read_shift(1);return[r,t]}function nx(e){return e.read_shift(2),Lf(e)}function ix(e){return e.read_shift(2),Lf(e)}function ax(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var i=Rf(e,0,t);return[n,i]}function sx(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var i=Gd(e,0,t);return[n,i]}function fx(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(2);t&&t.biff==5&&(e.l+=12);var a=Rf(e,0,t);return[n,i,a]}function lx(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(t&&t.biff<=3?1:2);return[l2[i],bf[i],n]}function ox(e,r,t){var n=e[e.l++],i=e.read_shift(1),a=t&&t.biff<=3?[n==88?-1:0,e.read_shift(1)]:cx(e);return[i,(a[0]===0?bf:f2)[a[1]]]}function cx(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function ux(e,r,t){e.l+=t&&t.biff==2?3:4}function hx(e,r,t){if(e.l++,t&&t.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),i=e.read_shift(t&&t.biff==2?1:2);return[n,i]}function dx(e){return e.l++,Tn[e.read_shift(1)]}function xx(e){return e.l++,e.read_shift(2)}function px(e){return e.l++,e.read_shift(1)!==0}function vx(e){return e.l++,Yr(e)}function mx(e,r,t){return e.l++,vf(e,r-1,t)}function gx(e,r){var t=[e.read_shift(1)];if(r==12)switch(t[0]){case 2:t[0]=4;break;case 4:t[0]=16;break;case 0:t[0]=1;break;case 1:t[0]=2;break}switch(t[0]){case 4:t[1]=f1(e,1)?"TRUE":"FALSE",r!=12&&(e.l+=7);break;case 37:case 16:t[1]=Tn[e[e.l]],e.l+=r==12?4:8;break;case 0:e.l+=8;break;case 1:t[1]=Yr(e);break;case 2:t[1]=u1(e,0,{biff:r>0&&r<8?2:r});break;default:throw new Error("Bad SerAr: "+t[0])}return t}function _x(e,r,t){for(var n=e.read_shift(t.biff==12?4:2),i=[],a=0;a!=n;++a)i.push((t.biff==12?Cr:x1)(e));return i}function Ex(e,r,t){var n=0,i=0;t.biff==12?(n=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),n=1+e.read_shift(2)),t.biff>=2&&t.biff<8&&(--n,--i==0&&(i=256));for(var a=0,s=[];a!=n&&(s[a]=[]);++a)for(var f=0;f!=i;++f)s[a][f]=gx(e,t.biff);return s}function Tx(e,r,t){var n=e.read_shift(1)>>>5&3,i=!t||t.biff>=8?4:2,a=e.read_shift(i);switch(t.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[n,0,a]}function wx(e,r,t){if(t.biff==5)return Sx(e);var n=e.read_shift(1)>>>5&3,i=e.read_shift(2),a=e.read_shift(4);return[n,i,a]}function Sx(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[r,t,n]}function Ax(e,r,t){var n=e.read_shift(1)>>>5&3;e.l+=t&&t.biff==2?3:4;var i=e.read_shift(t&&t.biff==2?1:2);return[n,i]}function yx(e,r,t){var n=e.read_shift(1)>>>5&3,i=e.read_shift(t&&t.biff==2?1:2);return[n,i]}function Fx(e,r,t){var n=e.read_shift(1)>>>5&3;return e.l+=4,t.biff<8&&e.l--,t.biff==12&&(e.l+=2),[n]}function Cx(e,r,t){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=4;if(t)switch(t.biff){case 5:a=15;break;case 12:a=6;break}return e.l+=a,[n,i]}var Ox=Mt,Dx=Mt,Ix=Mt;function wn(e,r,t){return e.l+=2,[Vd(e)]}function Ea(e){return e.l+=6,[]}var kx=wn,Nx=Ea,Rx=Ea,Lx=wn;function Pf(e){return e.l+=2,[xf(e),e.read_shift(2)&1]}var Px=wn,Mx=Pf,bx=Ea,Bx=wn,Ux=wn,$x=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function Wx(e){e.l+=2;var r=e.read_shift(2),t=e.read_shift(2),n=e.read_shift(4),i=e.read_shift(2),a=e.read_shift(2),s=$x[t>>2&31];return{ixti:r,coltype:t&3,rt:s,idx:n,c:i,C:a}}function Hx(e){return e.l+=2,[e.read_shift(4)]}function Vx(e,r,t){return e.l+=5,e.l+=2,e.l+=t.biff==2?1:4,["PTGSHEET"]}function Gx(e,r,t){return e.l+=t.biff==2?4:5,["PTGENDSHEET"]}function Xx(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2);return[r,t]}function zx(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2);return[r,t]}function jx(e){return e.l+=4,[0,0]}var F0={1:{n:"PtgExp",f:hx},2:{n:"PtgTbl",f:Ix},3:{n:"PtgAdd",f:Ue},4:{n:"PtgSub",f:Ue},5:{n:"PtgMul",f:Ue},6:{n:"PtgDiv",f:Ue},7:{n:"PtgPower",f:Ue},8:{n:"PtgConcat",f:Ue},9:{n:"PtgLt",f:Ue},10:{n:"PtgLe",f:Ue},11:{n:"PtgEq",f:Ue},12:{n:"PtgGe",f:Ue},13:{n:"PtgGt",f:Ue},14:{n:"PtgNe",f:Ue},15:{n:"PtgIsect",f:Ue},16:{n:"PtgUnion",f:Ue},17:{n:"PtgRange",f:Ue},18:{n:"PtgUplus",f:Ue},19:{n:"PtgUminus",f:Ue},20:{n:"PtgPercent",f:Ue},21:{n:"PtgParen",f:Ue},22:{n:"PtgMissArg",f:Ue},23:{n:"PtgStr",f:mx},26:{n:"PtgSheet",f:Vx},27:{n:"PtgEndSheet",f:Gx},28:{n:"PtgErr",f:dx},29:{n:"PtgBool",f:px},30:{n:"PtgInt",f:xx},31:{n:"PtgNum",f:vx},32:{n:"PtgArray",f:qd},33:{n:"PtgFunc",f:lx},34:{n:"PtgFuncVar",f:ox},35:{n:"PtgName",f:Tx},36:{n:"PtgRef",f:ax},37:{n:"PtgArea",f:zd},38:{n:"PtgMemArea",f:Ax},39:{n:"PtgMemErr",f:Ox},40:{n:"PtgMemNoMem",f:Dx},41:{n:"PtgMemFunc",f:yx},42:{n:"PtgRefErr",f:Fx},43:{n:"PtgAreaErr",f:Kd},44:{n:"PtgRefN",f:sx},45:{n:"PtgAreaN",f:Jd},46:{n:"PtgMemAreaN",f:Xx},47:{n:"PtgMemNoMemN",f:zx},57:{n:"PtgNameX",f:wx},58:{n:"PtgRef3d",f:fx},59:{n:"PtgArea3d",f:jd},60:{n:"PtgRefErr3d",f:Cx},61:{n:"PtgAreaErr3d",f:Yd},255:{}},Kx={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},Yx={1:{n:"PtgElfLel",f:Pf},2:{n:"PtgElfRw",f:Bx},3:{n:"PtgElfCol",f:kx},6:{n:"PtgElfRwV",f:Ux},7:{n:"PtgElfColV",f:Lx},10:{n:"PtgElfRadical",f:Px},11:{n:"PtgElfRadicalS",f:bx},13:{n:"PtgElfColS",f:Nx},15:{n:"PtgElfColSV",f:Rx},16:{n:"PtgElfRadicalLel",f:Mx},25:{n:"PtgList",f:Wx},29:{n:"PtgSxName",f:Hx},255:{}},Jx={0:{n:"PtgAttrNoop",f:jx},1:{n:"PtgAttrSemi",f:rx},2:{n:"PtgAttrIf",f:ex},4:{n:"PtgAttrChoose",f:Zd},8:{n:"PtgAttrGoto",f:Qd},16:{n:"PtgAttrSum",f:ux},32:{n:"PtgAttrBaxcel",f:y0},33:{n:"PtgAttrBaxcel",f:y0},64:{n:"PtgAttrSpace",f:nx},65:{n:"PtgAttrSpaceSemi",f:ix},128:{n:"PtgAttrIfError",f:tx},255:{}};function qx(e,r,t,n){if(n.biff<8)return Mt(e,r);for(var i=e.l+r,a=[],s=0;s!==t.length;++s)switch(t[s][0]){case"PtgArray":t[s][1]=Ex(e,0,n),a.push(t[s][1]);break;case"PtgMemArea":t[s][2]=_x(e,t[s][1],n),a.push(t[s][2]);break;case"PtgExp":n&&n.biff==12&&(t[s][1][1]=e.read_shift(4),a.push(t[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+t[s][0]}return r=i-e.l,r!==0&&a.push(Mt(e,r)),a}function Zx(e,r,t){for(var n=e.l+r,i,a,s=[];n!=e.l;)r=n-e.l,a=e[e.l],i=F0[a]||F0[Kx[a]],(a===24||a===25)&&(i=(a===24?Yx:Jx)[e[e.l+1]]),!i||!i.f?Mt(e,r):s.push([i.n,i.f(e,r,t)]);return s}function Qx(e){for(var r=[],t=0;t<e.length;++t){for(var n=e[t],i=[],a=0;a<n.length;++a){var s=n[a];if(s)switch(s[0]){case 2:i.push('"'+s[1].replace(/"/g,'""')+'"');break;default:i.push(s[1])}else i.push("")}r.push(i.join(","))}return r.join(";")}var e2={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function t2(e,r){if(!e&&!(r&&r.biff<=5&&r.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function Mf(e,r,t){if(!e)return"SH33TJSERR0";if(t.biff>8&&(!e.XTI||!e.XTI[r]))return e.SheetNames[r];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[r];if(t.biff<8)return r>1e4&&(r-=65536),r<0&&(r=-r),r==0?"":e.XTI[r-1];if(!n)return"SH33TJSERR1";var i="";if(t.biff>8)switch(e[n[0]][0]){case 357:return i=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?i:i+":"+e.SheetNames[n[2]];case 358:return t.SID!=null?e.SheetNames[t.SID]:"SH33TJSSAME"+e[n[0]][0];case 355:default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return i=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?i:i+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(a){return a.Name}).join(";;");default:return e[n[0]][0][3]?(i=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?i:i+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function C0(e,r,t){var n=Mf(e,r,t);return n=="#REF"?n:t2(n,t)}function Hr(e,r,t,n,i){var a=i&&i.biff||8,s={s:{c:0,r:0},e:{c:0,r:0}},f=[],l,o,c,h=0,u=0,x,v="";if(!e[0]||!e[0][0])return"";for(var d=-1,m="",y=0,A=e[0].length;y<A;++y){var F=e[0][y];switch(F[0]){case"PtgUminus":f.push("-"+f.pop());break;case"PtgUplus":f.push("+"+f.pop());break;case"PtgPercent":f.push(f.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(l=f.pop(),o=f.pop(),d>=0){switch(e[0][d][1][0]){case 0:m=Pe(" ",e[0][d][1][1]);break;case 1:m=Pe("\r",e[0][d][1][1]);break;default:if(m="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][d][1][0])}o=o+m,d=-1}f.push(o+e2[F[0]]+l);break;case"PtgIsect":l=f.pop(),o=f.pop(),f.push(o+" "+l);break;case"PtgUnion":l=f.pop(),o=f.pop(),f.push(o+","+l);break;case"PtgRange":l=f.pop(),o=f.pop(),f.push(o+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":c=sn(F[1][1],s,i),f.push(fn(c,a));break;case"PtgRefN":c=t?sn(F[1][1],t,i):F[1][1],f.push(fn(c,a));break;case"PtgRef3d":h=F[1][1],c=sn(F[1][2],s,i),v=C0(n,h,i),f.push(v+"!"+fn(c,a));break;case"PtgFunc":case"PtgFuncVar":var I=F[1][0],z=F[1][1];I||(I=0),I&=127;var ee=I==0?[]:f.slice(-I);f.length-=I,z==="User"&&(z=ee.shift()),f.push(z+"("+ee.join(",")+")");break;case"PtgBool":f.push(F[1]?"TRUE":"FALSE");break;case"PtgInt":f.push(F[1]);break;case"PtgNum":f.push(String(F[1]));break;case"PtgStr":f.push('"'+F[1].replace(/"/g,'""')+'"');break;case"PtgErr":f.push(F[1]);break;case"PtgAreaN":x=u0(F[1][1],t?{s:t}:s,i),f.push(Ni(x,i));break;case"PtgArea":x=u0(F[1][1],s,i),f.push(Ni(x,i));break;case"PtgArea3d":h=F[1][1],x=F[1][2],v=C0(n,h,i),f.push(v+"!"+Ni(x,i));break;case"PtgAttrSum":f.push("SUM("+f.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":u=F[1][2];var D=(n.names||[])[u-1]||(n[0]||[])[u],V=D?D.Name:"SH33TJSNAME"+String(u);V&&V.slice(0,6)=="_xlfn."&&!i.xlfn&&(V=V.slice(6)),f.push(V);break;case"PtgNameX":var P=F[1][1];u=F[1][2];var b;if(i.biff<=5)P<0&&(P=-P),n[P]&&(b=n[P][u]);else{var U="";if(((n[P]||[])[0]||[])[0]==14849||(((n[P]||[])[0]||[])[0]==1025?n[P][u]&&n[P][u].itab>0&&(U=n.SheetNames[n[P][u].itab-1]+"!"):U=n.SheetNames[u-1]+"!"),n[P]&&n[P][u])U+=n[P][u].Name;else if(n[0]&&n[0][u])U+=n[0][u].Name;else{var G=(Mf(n,P,i)||"").split(";;");G[u-1]?U=G[u-1]:U+="SH33TJSERRX"}f.push(U);break}b||(b={Name:"SH33TJSERRY"}),f.push(b.Name);break;case"PtgParen":var K="(",ce=")";if(d>=0){switch(m="",e[0][d][1][0]){case 2:K=Pe(" ",e[0][d][1][1])+K;break;case 3:K=Pe("\r",e[0][d][1][1])+K;break;case 4:ce=Pe(" ",e[0][d][1][1])+ce;break;case 5:ce=Pe("\r",e[0][d][1][1])+ce;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][d][1][0])}d=-1}f.push(K+f.pop()+ce);break;case"PtgRefErr":f.push("#REF!");break;case"PtgRefErr3d":f.push("#REF!");break;case"PtgExp":c={c:F[1][1],r:F[1][0]};var le={c:t.c,r:t.r};if(n.sharedf[Se(c)]){var de=n.sharedf[Se(c)];f.push(Hr(de,s,le,n,i))}else{var xe=!1;for(l=0;l!=n.arrayf.length;++l)if(o=n.arrayf[l],!(c.c<o[0].s.c||c.c>o[0].e.c)&&!(c.r<o[0].s.r||c.r>o[0].e.r)){f.push(Hr(o[1],s,le,n,i)),xe=!0;break}xe||f.push(F[1])}break;case"PtgArray":f.push("{"+Qx(F[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":d=y;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":f.push("");break;case"PtgAreaErr":f.push("#REF!");break;case"PtgAreaErr3d":f.push("#REF!");break;case"PtgList":f.push("Table"+F[1].idx+"[#"+F[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(F));default:throw new Error("Unrecognized Formula Token: "+String(F))}var ze=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&d>=0&&ze.indexOf(e[0][y][0])==-1){F=e[0][d];var Be=!0;switch(F[1][0]){case 4:Be=!1;case 0:m=Pe(" ",F[1][1]);break;case 5:Be=!1;case 1:m=Pe("\r",F[1][1]);break;default:if(m="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+F[1][0])}f.push((Be?m:"")+f.pop()+(Be?"":m)),d=-1}}if(f.length>1&&i.WTF)throw new Error("bad formula stack");return f[0]}function r2(e){if(e==null){var r=B(8);return r.write_shift(1,3),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,65535),r}else if(typeof e=="number")return _r(e);return _r(0)}function n2(e,r,t,n,i){var a=Er(r,t,i),s=r2(e.v),f=B(6),l=33;f.write_shift(2,l),f.write_shift(4,0);for(var o=B(e.bf.length),c=0;c<e.bf.length;++c)o[c]=e.bf[c];var h=Je([a,s,f,o]);return h}function mi(e,r,t){var n=e.read_shift(4),i=Zx(e,n,t),a=e.read_shift(4),s=a>0?qx(e,a,i,t):null;return[i,s]}var i2=mi,gi=mi,a2=mi,s2=mi,f2={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},bf={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},l2={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function o2(e){var r="of:="+e.replace(ga,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return r.replace(/;/g,"|").replace(/,/g,";")}function c2(e){return e.replace(/\./,"!")}var ln=typeof Map<"u";function Ta(e,r,t){var n=0,i=e.length;if(t){if(ln?t.has(r):Object.prototype.hasOwnProperty.call(t,r)){for(var a=ln?t.get(r):t[r];n<a.length;++n)if(e[a[n]].t===r)return e.Count++,a[n]}}else for(;n<i;++n)if(e[n].t===r)return e.Count++,n;return e[i]={t:r},e.Count++,e.Unique++,t&&(ln?(t.has(r)||t.set(r,[]),t.get(r).push(i)):(Object.prototype.hasOwnProperty.call(t,r)||(t[r]=[]),t[r].push(i))),i}function _i(e,r){var t={min:e+1,max:e+1},n=-1;return r.MDW&&(Xt=r.MDW),r.width!=null?t.customWidth=1:r.wpx!=null?n=Qn(r.wpx):r.wch!=null&&(n=r.wch),n>-1?(t.width=zi(n),t.customWidth=1):r.width!=null&&(t.width=r.width),r.hidden&&(t.hidden=!0),r.level!=null&&(t.outlineLevel=t.level=r.level),t}function Bf(e,r){if(e){var t=[.7,.7,.75,.75,.3,.3];r=="xlml"&&(t=[1,1,1,1,.5,.5]),e.left==null&&(e.left=t[0]),e.right==null&&(e.right=t[1]),e.top==null&&(e.top=t[2]),e.bottom==null&&(e.bottom=t[3]),e.header==null&&(e.header=t[4]),e.footer==null&&(e.footer=t[5])}}function or(e,r,t){var n=t.revssf[r.z!=null?r.z:"General"],i=60,a=e.length;if(n==null&&t.ssf){for(;i<392;++i)if(t.ssf[i]==null){Ns(r.z,i),t.ssf[i]=r.z,t.revssf[r.z]=n=i;break}}for(i=0;i!=a;++i)if(e[i].numFmtId===n)return i;return e[a]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},a}function u2(e,r,t){if(e&&e["!ref"]){var n=Ie(e["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+t+"): "+e["!ref"])}}function h2(e){if(e.length===0)return"";for(var r='<mergeCells count="'+e.length+'">',t=0;t!=e.length;++t)r+='<mergeCell ref="'+$e(e[t])+'"/>';return r+"</mergeCells>"}function d2(e,r,t,n,i){var a=!1,s={},f=null;if(n.bookType!=="xlsx"&&r.vbaraw){var l=r.SheetNames[t];try{r.Workbook&&(l=r.Workbook.Sheets[t].CodeName||l)}catch{}a=!0,s.codeName=Wt(we(l))}if(e&&e["!outline"]){var o={summaryBelow:1,summaryRight:1};e["!outline"].above&&(o.summaryBelow=0),e["!outline"].left&&(o.summaryRight=0),f=(f||"")+q("outlinePr",null,o)}!a&&!f||(i[i.length]=q("sheetPr",f,s))}var x2=["objects","scenarios","selectLockedCells","selectUnlockedCells"],p2=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function v2(e){var r={sheet:1};return x2.forEach(function(t){e[t]!=null&&e[t]&&(r[t]="1")}),p2.forEach(function(t){e[t]!=null&&!e[t]&&(r[t]="0")}),e.password&&(r.password=Tf(e.password).toString(16).toUpperCase()),q("sheetProtection",null,r)}function m2(e){return Bf(e),q("pageMargins",null,e)}function g2(e,r){for(var t=["<cols>"],n,i=0;i!=r.length;++i)(n=r[i])&&(t[t.length]=q("col",null,_i(i,n)));return t[t.length]="</cols>",t.join("")}function _2(e,r,t,n){var i=typeof e.ref=="string"?e.ref:$e(e.ref);t.Workbook||(t.Workbook={Sheets:[]}),t.Workbook.Names||(t.Workbook.Names=[]);var a=t.Workbook.Names,s=_t(i);s.s.r==s.e.r&&(s.e.r=_t(r["!ref"]).e.r,i=$e(s));for(var f=0;f<a.length;++f){var l=a[f];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==n){l.Ref="'"+t.SheetNames[n]+"'!"+i;break}}return f==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+t.SheetNames[n]+"'!"+i}),q("autoFilter",null,{ref:i})}function E2(e,r,t,n){var i={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),q("sheetViews",q("sheetView",null,i),{})}function T2(e,r,t,n){if(e.c&&t["!comments"].push([r,e.c]),e.v===void 0&&typeof e.f!="string"||e.t==="z"&&!e.f)return"";var i="",a=e.t,s=e.v;if(e.t!=="z")switch(e.t){case"b":i=e.v?"1":"0";break;case"n":i=""+e.v;break;case"e":i=Tn[e.v];break;case"d":n&&n.cellDates?i=ft(e.v,-1).toISOString():(e=ht(e),e.t="n",i=""+(e.v=ut(ft(e.v)))),typeof e.z>"u"&&(e.z=Me[14]);break;default:i=e.v;break}var f=qe("v",we(i)),l={r},o=or(n.cellXfs,e,n);switch(o!==0&&(l.s=o),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){f=qe("v",""+Ta(n.Strings,e.v,n.revStrings)),l.t="s";break}l.t="str";break}if(e.t!=a&&(e.t=a,e.v=s),typeof e.f=="string"&&e.f){var c=e.F&&e.F.slice(0,r.length)==r?{t:"array",ref:e.F}:null;f=q("f",we(e.f),c)+(e.v!=null?f:"")}return e.l&&t["!links"].push([r,e.l]),e.D&&(l.cm=1),q("c",f,l)}function w2(e,r,t,n){var i=[],a=[],s=Ie(e["!ref"]),f="",l,o="",c=[],h=0,u=0,x=e["!rows"],v=Array.isArray(e),d={r:o},m,y=-1;for(u=s.s.c;u<=s.e.c;++u)c[u]=rt(u);for(h=s.s.r;h<=s.e.r;++h){for(a=[],o=Ze(h),u=s.s.c;u<=s.e.c;++u){l=c[u]+o;var A=v?(e[h]||[])[u]:e[l];A!==void 0&&(f=T2(A,l,e,r))!=null&&a.push(f)}(a.length>0||x&&x[h])&&(d={r:o},x&&x[h]&&(m=x[h],m.hidden&&(d.hidden=1),y=-1,m.hpx?y=ei(m.hpx):m.hpt&&(y=m.hpt),y>-1&&(d.ht=y,d.customHeight=1),m.level&&(d.outlineLevel=m.level)),i[i.length]=q("row",a.join(""),d))}if(x)for(;h<x.length;++h)x&&x[h]&&(d={r:h+1},m=x[h],m.hidden&&(d.hidden=1),y=-1,m.hpx?y=ei(m.hpx):m.hpt&&(y=m.hpt),y>-1&&(d.ht=y,d.customHeight=1),m.level&&(d.outlineLevel=m.level),i[i.length]=q("row","",d));return i.join("")}function Uf(e,r,t,n){var i=[We,q("worksheet",null,{xmlns:zr[0],"xmlns:r":Ve.r})],a=t.SheetNames[e],s=0,f="",l=t.Sheets[a];l==null&&(l={});var o=l["!ref"]||"A1",c=Ie(o);if(c.e.c>16383||c.e.r>1048575){if(r.WTF)throw new Error("Range "+o+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575),o=$e(c)}n||(n={}),l["!comments"]=[];var h=[];d2(l,t,e,r,i),i[i.length]=q("dimension",null,{ref:o}),i[i.length]=E2(l,r,e,t),r.sheetFormat&&(i[i.length]=q("sheetFormatPr",null,{defaultRowHeight:r.sheetFormat.defaultRowHeight||"16",baseColWidth:r.sheetFormat.baseColWidth||"10",outlineLevelRow:r.sheetFormat.outlineLevelRow||"7"})),l["!cols"]!=null&&l["!cols"].length>0&&(i[i.length]=g2(l,l["!cols"])),i[s=i.length]="<sheetData/>",l["!links"]=[],l["!ref"]!=null&&(f=w2(l,r),f.length>0&&(i[i.length]=f)),i.length>s+1&&(i[i.length]="</sheetData>",i[s]=i[s].replace("/>",">")),l["!protect"]&&(i[i.length]=v2(l["!protect"])),l["!autofilter"]!=null&&(i[i.length]=_2(l["!autofilter"],l,t,e)),l["!merges"]!=null&&l["!merges"].length>0&&(i[i.length]=h2(l["!merges"]));var u=-1,x,v=-1;return l["!links"].length>0&&(i[i.length]="<hyperlinks>",l["!links"].forEach(function(d){d[1].Target&&(x={ref:d[0]},d[1].Target.charAt(0)!="#"&&(v=Te(n,-1,we(d[1].Target).replace(/#.*$/,""),me.HLINK),x["r:id"]="rId"+v),(u=d[1].Target.indexOf("#"))>-1&&(x.location=we(d[1].Target.slice(u+1))),d[1].Tooltip&&(x.tooltip=we(d[1].Tooltip)),i[i.length]=q("hyperlink",null,x))}),i[i.length]="</hyperlinks>"),delete l["!links"],l["!margins"]!=null&&(i[i.length]=m2(l["!margins"])),(!r||r.ignoreEC||r.ignoreEC==null)&&(i[i.length]=qe("ignoredErrors",q("ignoredError",null,{numberStoredAsText:1,sqref:o}))),h.length>0&&(v=Te(n,-1,"../drawings/drawing"+(e+1)+".xml",me.DRAW),i[i.length]=q("drawing",null,{"r:id":"rId"+v}),l["!drawing"]=h),l["!comments"].length>0&&(v=Te(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",me.VML),i[i.length]=q("legacyDrawing",null,{"r:id":"rId"+v}),l["!legacy"]=v),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function S2(e,r){var t={},n=e.l+r;t.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var a=e.read_shift(1);return e.l=n,a&7&&(t.level=a&7),a&16&&(t.hidden=!0),a&32&&(t.hpt=i/20),t}function A2(e,r,t){var n=B(145),i=(t["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var a=320;i.hpx?a=ei(i.hpx)*20:i.hpt&&(a=i.hpt*20),n.write_shift(2,a),n.write_shift(1,0);var s=0;i.level&&(s|=i.level),i.hidden&&(s|=16),(i.hpx||i.hpt)&&(s|=32),n.write_shift(1,s),n.write_shift(1,0);var f=0,l=n.l;n.l+=4;for(var o={r:e,c:0},c=0;c<16;++c)if(!(r.s.c>c+1<<10||r.e.c<c<<10)){for(var h=-1,u=-1,x=c<<10;x<c+1<<10;++x){o.c=x;var v=Array.isArray(t)?(t[o.r]||[])[o.c]:t[Se(o)];v&&(h<0&&(h=x),u=x)}h<0||(++f,n.write_shift(4,h),n.write_shift(4,u))}var d=n.l;return n.l=l,n.write_shift(4,f),n.l=d,n.length>n.l?n.slice(0,n.l):n}function y2(e,r,t,n){var i=A2(n,t,r);(i.length>17||(r["!rows"]||[])[n])&&X(e,0,i)}var F2=Cr,C2=Kr;function O2(){}function D2(e,r){var t={},n=e[e.l];return++e.l,t.above=!(n&64),t.left=!(n&128),e.l+=18,t.name=Uh(e),t}function I2(e,r,t){t==null&&(t=B(84+4*e.length));var n=192;r&&(r.above&&(n&=-65),r.left&&(n&=-129)),t.write_shift(1,n);for(var i=1;i<3;++i)t.write_shift(1,0);return Jn({auto:1},t),t.write_shift(-4,-1),t.write_shift(-4,-1),Qs(e,t),t.slice(0,t.l)}function k2(e){var r=At(e);return[r]}function N2(e,r,t){return t==null&&(t=B(8)),Ar(r,t)}function R2(e){var r=yr(e);return[r]}function L2(e,r,t){return t==null&&(t=B(4)),Fr(r,t)}function P2(e){var r=At(e),t=e.read_shift(1);return[r,t,"b"]}function M2(e,r,t){return t==null&&(t=B(9)),Ar(r,t),t.write_shift(1,e.v?1:0),t}function b2(e){var r=yr(e),t=e.read_shift(1);return[r,t,"b"]}function B2(e,r,t){return t==null&&(t=B(5)),Fr(r,t),t.write_shift(1,e.v?1:0),t}function U2(e){var r=At(e),t=e.read_shift(1);return[r,t,"e"]}function $2(e,r,t){return t==null&&(t=B(9)),Ar(r,t),t.write_shift(1,e.v),t}function W2(e){var r=yr(e),t=e.read_shift(1);return[r,t,"e"]}function H2(e,r,t){return t==null&&(t=B(8)),Fr(r,t),t.write_shift(1,e.v),t.write_shift(2,0),t.write_shift(1,0),t}function V2(e){var r=At(e),t=e.read_shift(4);return[r,t,"s"]}function G2(e,r,t){return t==null&&(t=B(12)),Ar(r,t),t.write_shift(4,r.v),t}function X2(e){var r=yr(e),t=e.read_shift(4);return[r,t,"s"]}function z2(e,r,t){return t==null&&(t=B(8)),Fr(r,t),t.write_shift(4,r.v),t}function j2(e){var r=At(e),t=Yr(e);return[r,t,"n"]}function K2(e,r,t){return t==null&&(t=B(16)),Ar(r,t),_r(e.v,t),t}function Y2(e){var r=yr(e),t=Yr(e);return[r,t,"n"]}function J2(e,r,t){return t==null&&(t=B(12)),Fr(r,t),_r(e.v,t),t}function q2(e){var r=At(e),t=ef(e);return[r,t,"n"]}function Z2(e,r,t){return t==null&&(t=B(12)),Ar(r,t),tf(e.v,t),t}function Q2(e){var r=yr(e),t=ef(e);return[r,t,"n"]}function ep(e,r,t){return t==null&&(t=B(8)),Fr(r,t),tf(e.v,t),t}function tp(e){var r=At(e),t=da(e);return[r,t,"is"]}function rp(e){var r=At(e),t=nt(e);return[r,t,"str"]}function np(e,r,t){return t==null&&(t=B(12+4*e.v.length)),Ar(r,t),Xe(e.v,t),t.length>t.l?t.slice(0,t.l):t}function ip(e){var r=yr(e),t=nt(e);return[r,t,"str"]}function ap(e,r,t){return t==null&&(t=B(8+4*e.v.length)),Fr(r,t),Xe(e.v,t),t.length>t.l?t.slice(0,t.l):t}function sp(e,r,t){var n=e.l+r,i=At(e);i.r=t["!row"];var a=e.read_shift(1),s=[i,a,"b"];if(t.cellFormula){e.l+=2;var f=gi(e,n-e.l,t);s[3]=Hr(f,null,i,t.supbooks,t)}else e.l=n;return s}function fp(e,r,t){var n=e.l+r,i=At(e);i.r=t["!row"];var a=e.read_shift(1),s=[i,a,"e"];if(t.cellFormula){e.l+=2;var f=gi(e,n-e.l,t);s[3]=Hr(f,null,i,t.supbooks,t)}else e.l=n;return s}function lp(e,r,t){var n=e.l+r,i=At(e);i.r=t["!row"];var a=Yr(e),s=[i,a,"n"];if(t.cellFormula){e.l+=2;var f=gi(e,n-e.l,t);s[3]=Hr(f,null,i,t.supbooks,t)}else e.l=n;return s}function op(e,r,t){var n=e.l+r,i=At(e);i.r=t["!row"];var a=nt(e),s=[i,a,"str"];if(t.cellFormula){e.l+=2;var f=gi(e,n-e.l,t);s[3]=Hr(f,null,i,t.supbooks,t)}else e.l=n;return s}var cp=Cr,up=Kr;function hp(e,r){return r==null&&(r=B(4)),r.write_shift(4,e),r}function dp(e,r){var t=e.l+r,n=Cr(e),i=xa(e),a=nt(e),s=nt(e),f=nt(e);e.l=t;var l={rfx:n,relId:i,loc:a,display:f};return s&&(l.Tooltip=s),l}function xp(e,r){var t=B(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Kr({s:Ge(e[0]),e:Ge(e[0])},t),pa("rId"+r,t);var n=e[1].Target.indexOf("#"),i=n==-1?"":e[1].Target.slice(n+1);return Xe(i||"",t),Xe(e[1].Tooltip||"",t),Xe("",t),t.slice(0,t.l)}function pp(){}function vp(e,r,t){var n=e.l+r,i=rf(e),a=e.read_shift(1),s=[i];if(s[2]=a,t.cellFormula){var f=i2(e,n-e.l,t);s[1]=f}else e.l=n;return s}function mp(e,r,t){var n=e.l+r,i=Cr(e),a=[i];if(t.cellFormula){var s=s2(e,n-e.l,t);a[1]=s,e.l=n}else e.l=n;return a}function gp(e,r,t){t==null&&(t=B(18));var n=_i(e,r);t.write_shift(-4,e),t.write_shift(-4,e),t.write_shift(4,(n.width||10)*256),t.write_shift(4,0);var i=0;return r.hidden&&(i|=1),typeof n.width=="number"&&(i|=2),r.level&&(i|=r.level<<8),t.write_shift(2,i),t}var $f=["left","right","top","bottom","header","footer"];function _p(e){var r={};return $f.forEach(function(t){r[t]=Yr(e)}),r}function Ep(e,r){return r==null&&(r=B(6*8)),Bf(e),$f.forEach(function(t){_r(e[t],r)}),r}function Tp(e){var r=e.read_shift(2);return e.l+=28,{RTL:r&32}}function wp(e,r,t){t==null&&(t=B(30));var n=924;return(((r||{}).Views||[])[0]||{}).RTL&&(n|=32),t.write_shift(2,n),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,100),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(4,0),t}function Sp(e){var r=B(24);return r.write_shift(4,4),r.write_shift(4,1),Kr(e,r),r}function Ap(e,r){return r==null&&(r=B(16*4+2)),r.write_shift(2,e.password?Tf(e.password):0),r.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(t){t[1]?r.write_shift(4,e[t[0]]!=null&&!e[t[0]]?1:0):r.write_shift(4,e[t[0]]!=null&&e[t[0]]?0:1)}),r}function yp(){}function Fp(){}function Cp(e,r,t,n,i,a,s){if(r.v===void 0)return!1;var f="";switch(r.t){case"b":f=r.v?"1":"0";break;case"d":r=ht(r),r.z=r.z||Me[14],r.v=ut(ft(r.v)),r.t="n";break;case"n":case"e":f=""+r.v;break;default:f=r.v;break}var l={r:t,c:n};switch(l.s=or(i.cellXfs,r,i),r.l&&a["!links"].push([Se(l),r.l]),r.c&&a["!comments"].push([Se(l),r.c]),r.t){case"s":case"str":return i.bookSST?(f=Ta(i.Strings,r.v,i.revStrings),l.t="s",l.v=f,s?X(e,18,z2(r,l)):X(e,7,G2(r,l))):(l.t="str",s?X(e,17,ap(r,l)):X(e,6,np(r,l))),!0;case"n":return r.v==(r.v|0)&&r.v>-1e3&&r.v<1e3?s?X(e,13,ep(r,l)):X(e,2,Z2(r,l)):s?X(e,16,J2(r,l)):X(e,5,K2(r,l)),!0;case"b":return l.t="b",s?X(e,15,B2(r,l)):X(e,4,M2(r,l)),!0;case"e":return l.t="e",s?X(e,14,H2(r,l)):X(e,3,$2(r,l)),!0}return s?X(e,12,L2(r,l)):X(e,1,N2(r,l)),!0}function Op(e,r,t,n){var i=Ie(r["!ref"]||"A1"),a,s="",f=[];X(e,145);var l=Array.isArray(r),o=i.e.r;r["!rows"]&&(o=Math.max(i.e.r,r["!rows"].length-1));for(var c=i.s.r;c<=o;++c){s=Ze(c),y2(e,r,i,c);var h=!1;if(c<=i.e.r)for(var u=i.s.c;u<=i.e.c;++u){c===i.s.r&&(f[u]=rt(u)),a=f[u]+s;var x=l?(r[c]||[])[u]:r[a];if(!x){h=!1;continue}h=Cp(e,x,c,u,n,r,h)}}X(e,146)}function Dp(e,r){!r||!r["!merges"]||(X(e,177,hp(r["!merges"].length)),r["!merges"].forEach(function(t){X(e,176,up(t))}),X(e,178))}function Ip(e,r){!r||!r["!cols"]||(X(e,390),r["!cols"].forEach(function(t,n){t&&X(e,60,gp(n,t))}),X(e,391))}function kp(e,r){!r||!r["!ref"]||(X(e,648),X(e,649,Sp(Ie(r["!ref"]))),X(e,650))}function Np(e,r,t){r["!links"].forEach(function(n){if(n[1].Target){var i=Te(t,-1,n[1].Target.replace(/#.*$/,""),me.HLINK);X(e,494,xp(n,i))}}),delete r["!links"]}function Rp(e,r,t,n){if(r["!comments"].length>0){var i=Te(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",me.VML);X(e,551,pa("rId"+i)),r["!legacy"]=i}}function Lp(e,r,t,n){if(r["!autofilter"]){var i=r["!autofilter"],a=typeof i.ref=="string"?i.ref:$e(i.ref);t.Workbook||(t.Workbook={Sheets:[]}),t.Workbook.Names||(t.Workbook.Names=[]);var s=t.Workbook.Names,f=_t(a);f.s.r==f.e.r&&(f.e.r=_t(r["!ref"]).e.r,a=$e(f));for(var l=0;l<s.length;++l){var o=s[l];if(o.Name=="_xlnm._FilterDatabase"&&o.Sheet==n){o.Ref="'"+t.SheetNames[n]+"'!"+a;break}}l==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+t.SheetNames[n]+"'!"+a}),X(e,161,Kr(Ie(a))),X(e,162)}}function Pp(e,r,t){X(e,133),X(e,137,wp(r,t)),X(e,138),X(e,134)}function Mp(e,r){r["!protect"]&&X(e,535,Ap(r["!protect"]))}function bp(e,r,t,n){var i=ct(),a=t.SheetNames[e],s=t.Sheets[a]||{},f=a;try{t&&t.Workbook&&(f=t.Workbook.Sheets[e].CodeName||f)}catch{}var l=Ie(s["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(r.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],X(i,129),(t.vbaraw||s["!outline"])&&X(i,147,I2(f,s["!outline"])),X(i,148,C2(l)),Pp(i,s,t.Workbook),Ip(i,s),Op(i,s,e,r),Mp(i,s),Lp(i,s,t,e),Dp(i,s),Np(i,s,n),s["!margins"]&&X(i,476,Ep(s["!margins"])),(!r||r.ignoreEC||r.ignoreEC==null)&&kp(i,s),Rp(i,s,e,n),X(i,130),i.end()}function Bp(e,r){e.l+=10;var t=nt(e);return{name:t}}var Up=[["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"]];function $p(e){return!e.Workbook||!e.Workbook.WBProps?"false":mh(e.Workbook.WBProps.date1904)?"true":"false"}var Wp="][*?/\\".split("");function Wf(e,r){if(e.length>31){if(r)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var t=!0;return Wp.forEach(function(n){if(e.indexOf(n)!=-1){if(!r)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");t=!1}}),t}function Hp(e,r,t){e.forEach(function(n,i){Wf(n);for(var a=0;a<i;++a)if(n==e[a])throw new Error("Duplicate Sheet Name: "+n);if(t){var s=r&&r[i]&&r[i].CodeName||n;if(s.charCodeAt(0)==95&&s.length>22)throw new Error("Bad Code Name: Worksheet"+s)}})}function Vp(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var r=e.Workbook&&e.Workbook.Sheets||[];Hp(e.SheetNames,r,!!e.vbaraw);for(var t=0;t<e.SheetNames.length;++t)u2(e.Sheets[e.SheetNames[t]],e.SheetNames[t],t)}function Hf(e){var r=[We];r[r.length]=q("workbook",null,{xmlns:zr[0],"xmlns:r":Ve.r});var t=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(Up.forEach(function(f){e.Workbook.WBProps[f[0]]!=null&&e.Workbook.WBProps[f[0]]!=f[1]&&(n[f[0]]=e.Workbook.WBProps[f[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),r[r.length]=q("workbookPr",null,n);var i=e.Workbook&&e.Workbook.Sheets||[],a=0;if(i&&i[0]&&i[0].Hidden){for(r[r.length]="<bookViews>",a=0;a!=e.SheetNames.length&&!(!i[a]||!i[a].Hidden);++a);a==e.SheetNames.length&&(a=0),r[r.length]='<workbookView firstSheet="'+a+'" activeTab="'+a+'"/>',r[r.length]="</bookViews>"}for(r[r.length]="<sheets>",a=0;a!=e.SheetNames.length;++a){var s={name:we(e.SheetNames[a].slice(0,31))};if(s.sheetId=""+(a+1),s["r:id"]="rId"+(a+1),i[a])switch(i[a].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break}r[r.length]=q("sheet",null,s)}return r[r.length]="</sheets>",t&&(r[r.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(f){var l={name:f.Name};f.Comment&&(l.comment=f.Comment),f.Sheet!=null&&(l.localSheetId=""+f.Sheet),f.Hidden&&(l.hidden="1"),f.Ref&&(r[r.length]=q("definedName",we(f.Ref),l))}),r[r.length]="</definedNames>"),r.length>2&&(r[r.length]="</workbook>",r[1]=r[1].replace("/>",">")),r.join("")}function Gp(e,r){var t={};return t.Hidden=e.read_shift(4),t.iTabID=e.read_shift(4),t.strRelID=Xi(e),t.name=nt(e),t}function Xp(e,r){return r||(r=B(127)),r.write_shift(4,e.Hidden),r.write_shift(4,e.iTabID),pa(e.strRelID,r),Xe(e.name.slice(0,31),r),r.length>r.l?r.slice(0,r.l):r}function zp(e,r){var t={},n=e.read_shift(4);t.defaultThemeVersion=e.read_shift(4);var i=r>8?nt(e):"";return i.length>0&&(t.CodeName=i),t.autoCompressPictures=!!(n&65536),t.backupFile=!!(n&64),t.checkCompatibility=!!(n&4096),t.date1904=!!(n&1),t.filterPrivacy=!!(n&8),t.hidePivotFieldList=!!(n&1024),t.promptedSolutions=!!(n&16),t.publishItems=!!(n&2048),t.refreshAllConnections=!!(n&262144),t.saveExternalLinkValues=!!(n&128),t.showBorderUnselectedTables=!!(n&4),t.showInkAnnotation=!!(n&32),t.showObjects=["all","placeholders","none"][n>>13&3],t.showPivotChartFilter=!!(n&32768),t.updateLinks=["userSet","never","always"][n>>8&3],t}function jp(e,r){r||(r=B(72));var t=0;return e&&e.filterPrivacy&&(t|=8),r.write_shift(4,t),r.write_shift(4,0),Qs(e&&e.CodeName||"ThisWorkbook",r),r.slice(0,r.l)}function Kp(e,r,t){var n=e.l+r;e.l+=4,e.l+=1;var i=e.read_shift(4),a=$h(e),s=a2(e,0,t),f=xa(e);e.l=n;var l={Name:a,Ptg:s};return i<268435455&&(l.Sheet=i),f&&(l.Comment=f),l}function Yp(e,r){X(e,143);for(var t=0;t!=r.SheetNames.length;++t){var n=r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[t]&&r.Workbook.Sheets[t].Hidden||0,i={Hidden:n,iTabID:t+1,strRelID:"rId"+(t+1),name:r.SheetNames[t]};X(e,156,Xp(i))}X(e,144)}function Jp(e,r){r||(r=B(127));for(var t=0;t!=4;++t)r.write_shift(4,0);return Xe("SheetJS",r),Xe(Vn.version,r),Xe(Vn.version,r),Xe("7262",r),r.length>r.l?r.slice(0,r.l):r}function qp(e,r){r||(r=B(29)),r.write_shift(-4,0),r.write_shift(-4,460),r.write_shift(4,28800),r.write_shift(4,17600),r.write_shift(4,500),r.write_shift(4,e),r.write_shift(4,e);var t=120;return r.write_shift(1,t),r.length>r.l?r.slice(0,r.l):r}function Zp(e,r){if(!(!r.Workbook||!r.Workbook.Sheets)){for(var t=r.Workbook.Sheets,n=0,i=-1,a=-1;n<t.length;++n)!t[n]||!t[n].Hidden&&i==-1?i=n:t[n].Hidden==1&&a==-1&&(a=n);a>i||(X(e,135),X(e,158,qp(i)),X(e,136))}}function Qp(e,r){var t=ct();return X(t,131),X(t,128,Jp()),X(t,153,jp(e.Workbook&&e.Workbook.WBProps||null)),Zp(t,e),Yp(t,e),X(t,132),t.end()}function ev(e,r,t){return(r.slice(-4)===".bin"?Qp:Hf)(e)}function tv(e,r,t,n,i){return(r.slice(-4)===".bin"?bp:Uf)(e,t,n,i)}function rv(e,r,t){return(r.slice(-4)===".bin"?Ed:Af)(e,t)}function nv(e,r,t){return(r.slice(-4)===".bin"?j1:Ef)(e,t)}function iv(e,r,t){return(r.slice(-4)===".bin"?Md:Df)(e)}function av(e){return(e.slice(-4)===".bin"?Od:Cf)()}function sv(e,r){var t=[];return e.Props&&t.push(r1(e.Props,r)),e.Custprops&&t.push(n1(e.Props,e.Custprops)),t.join("")}function fv(){return""}function lv(e,r){var t=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return r.cellXfs.forEach(function(n,i){var a=[];a.push(q("NumberFormat",null,{"ss:Format":we(Me[n.numFmtId])}));var s={"ss:ID":"s"+(21+i)};t.push(q("Style",a.join(""),s))}),q("Styles",t.join(""))}function Vf(e){return q("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+_a(e.Ref,{r:0,c:0})})}function ov(e){if(!((e||{}).Workbook||{}).Names)return"";for(var r=e.Workbook.Names,t=[],n=0;n<r.length;++n){var i=r[n];i.Sheet==null&&(i.Name.match(/^_xlfn\./)||t.push(Vf(i)))}return q("Names",t.join(""))}function cv(e,r,t,n){if(!e||!((n||{}).Workbook||{}).Names)return"";for(var i=n.Workbook.Names,a=[],s=0;s<i.length;++s){var f=i[s];f.Sheet==t&&(f.Name.match(/^_xlfn\./)||a.push(Vf(f)))}return a.join("")}function uv(e,r,t,n){if(!e)return"";var i=[];if(e["!margins"]&&(i.push("<PageSetup>"),e["!margins"].header&&i.push(q("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push(q("Footer",null,{"x:Margin":e["!margins"].footer})),i.push(q("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),i.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[t])if(n.Workbook.Sheets[t].Hidden)i.push(q("Visible",n.Workbook.Sheets[t].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var a=0;a<t&&!(n.Workbook.Sheets[a]&&!n.Workbook.Sheets[a].Hidden);++a);a==t&&i.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push("<DisplayRightToLeft/>"),e["!protect"]&&(i.push(qe("ProtectContents","True")),e["!protect"].objects&&i.push(qe("ProtectObjects","True")),e["!protect"].scenarios&&i.push(qe("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?i.push(qe("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&i.push(qe("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(s){e["!protect"][s[0]]&&i.push("<"+s[1]+"/>")})),i.length==0?"":q("WorksheetOptions",i.join(""),{xmlns:mt.x})}function hv(e){return e.map(function(r){var t=vh(r.t||""),n=q("ss:Data",t,{xmlns:"http://www.w3.org/TR/REC-html40"});return q("Comment",n,{"ss:Author":r.a})}).join("")}function dv(e,r,t,n,i,a,s){if(!e||e.v==null&&e.f==null)return"";var f={};if(e.f&&(f["ss:Formula"]="="+we(_a(e.f,s))),e.F&&e.F.slice(0,r.length)==r){var l=Ge(e.F.slice(r.length+1));f["ss:ArrayRange"]="RC:R"+(l.r==s.r?"":"["+(l.r-s.r)+"]")+"C"+(l.c==s.c?"":"["+(l.c-s.c)+"]")}if(e.l&&e.l.Target&&(f["ss:HRef"]=we(e.l.Target),e.l.Tooltip&&(f["x:HRefScreenTip"]=we(e.l.Tooltip))),t["!merges"])for(var o=t["!merges"],c=0;c!=o.length;++c)o[c].s.c!=s.c||o[c].s.r!=s.r||(o[c].e.c>o[c].s.c&&(f["ss:MergeAcross"]=o[c].e.c-o[c].s.c),o[c].e.r>o[c].s.r&&(f["ss:MergeDown"]=o[c].e.r-o[c].s.r));var h="",u="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":h="Number",u=String(e.v);break;case"b":h="Boolean",u=e.v?"1":"0";break;case"e":h="Error",u=Tn[e.v];break;case"d":h="DateTime",u=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||Me[14]);break;case"s":h="String",u=ph(e.v||"");break}var x=or(n.cellXfs,e,n);f["ss:StyleID"]="s"+(21+x),f["ss:Index"]=s.c+1;var v=e.v!=null?u:"",d=e.t=="z"?"":'<Data ss:Type="'+h+'">'+v+"</Data>";return(e.c||[]).length>0&&(d+=hv(e.c)),q("Cell",d,f)}function xv(e,r){var t='<Row ss:Index="'+(e+1)+'"';return r&&(r.hpt&&!r.hpx&&(r.hpx=Sf(r.hpt)),r.hpx&&(t+=' ss:AutoFitHeight="0" ss:Height="'+r.hpx+'"'),r.hidden&&(t+=' ss:Hidden="1"')),t+">"}function pv(e,r,t,n){if(!e["!ref"])return"";var i=Ie(e["!ref"]),a=e["!merges"]||[],s=0,f=[];e["!cols"]&&e["!cols"].forEach(function(m,y){ma(m);var A=!!m.width,F=_i(y,m),I={"ss:Index":y+1};A&&(I["ss:Width"]=Zn(F.width)),m.hidden&&(I["ss:Hidden"]="1"),f.push(q("Column",null,I))});for(var l=Array.isArray(e),o=i.s.r;o<=i.e.r;++o){for(var c=[xv(o,(e["!rows"]||[])[o])],h=i.s.c;h<=i.e.c;++h){var u=!1;for(s=0;s!=a.length;++s)if(!(a[s].s.c>h)&&!(a[s].s.r>o)&&!(a[s].e.c<h)&&!(a[s].e.r<o)){(a[s].s.c!=h||a[s].s.r!=o)&&(u=!0);break}if(!u){var x={r:o,c:h},v=Se(x),d=l?(e[o]||[])[h]:e[v];c.push(dv(d,v,e,r,t,n,x))}}c.push("</Row>"),c.length>2&&f.push(c.join(""))}return f.join("")}function vv(e,r,t){var n=[],i=t.SheetNames[e],a=t.Sheets[i],s=a?cv(a,r,e,t):"";return s.length>0&&n.push("<Names>"+s+"</Names>"),s=a?pv(a,r,e,t):"",s.length>0&&n.push("<Table>"+s+"</Table>"),n.push(uv(a,r,e,t)),n.join("")}function mv(e,r){r||(r={}),e.SSF||(e.SSF=ht(Me)),e.SSF&&(xi(),di(e.SSF),r.revssf=pi(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF,r.cellXfs=[],or(r.cellXfs,{},{revssf:{General:0}}));var t=[];t.push(sv(e,r)),t.push(fv()),t.push(""),t.push("");for(var n=0;n<e.SheetNames.length;++n)t.push(q("Worksheet",vv(n,r,e),{"ss:Name":we(e.SheetNames[n])}));return t[2]=lv(e,r),t[3]=ov(e),We+q("Workbook",t.join(""),{xmlns:mt.ss,"xmlns:o":mt.o,"xmlns:x":mt.x,"xmlns:ss":mt.ss,"xmlns:dt":mt.dt,"xmlns:html":mt.html})}var Pi={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function gv(e,r){var t=[],n=[],i=[],a=0,s,f=e0(d0,"n"),l=e0(x0,"n");if(e.Props)for(s=Qe(e.Props),a=0;a<s.length;++a)(Object.prototype.hasOwnProperty.call(f,s[a])?t:Object.prototype.hasOwnProperty.call(l,s[a])?n:i).push([s[a],e.Props[s[a]]]);if(e.Custprops)for(s=Qe(e.Custprops),a=0;a<s.length;++a)Object.prototype.hasOwnProperty.call(e.Props||{},s[a])||(Object.prototype.hasOwnProperty.call(f,s[a])?t:Object.prototype.hasOwnProperty.call(l,s[a])?n:i).push([s[a],e.Custprops[s[a]]]);var o=[];for(a=0;a<i.length;++a)df.indexOf(i[a][0])>-1||cf.indexOf(i[a][0])>-1||i[a][1]!=null&&o.push(i[a]);n.length&&Ae.utils.cfb_add(r,"/SummaryInformation",_0(n,Pi.SI,l,x0)),(t.length||o.length)&&Ae.utils.cfb_add(r,"/DocumentSummaryInformation",_0(t,Pi.DSI,f,d0,o.length?o:null,Pi.UDI))}function _v(e,r){var t=r||{},n=Ae.utils.cfb_new({root:"R"}),i="/Workbook";switch(t.bookType||"xls"){case"xls":t.bookType="biff8";case"xla":t.bookType||(t.bookType="xla");case"biff8":i="/Workbook",t.biff=8;break;case"biff5":i="/Book",t.biff=5;break;default:throw new Error("invalid type "+t.bookType+" for XLS CFB")}return Ae.utils.cfb_add(n,i,Gf(e,t)),t.biff==8&&(e.Props||e.Custprops)&&gv(e,n),t.biff==8&&e.vbaraw&&bd(n,Ae.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var Ev={0:{f:S2},1:{f:k2},2:{f:q2},3:{f:U2},4:{f:P2},5:{f:j2},6:{f:rp},7:{f:V2},8:{f:op},9:{f:lp},10:{f:sp},11:{f:fp},12:{f:R2},13:{f:Q2},14:{f:W2},15:{f:b2},16:{f:Y2},17:{f:ip},18:{f:X2},19:{f:da},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:Kp},40:{},42:{},43:{f:rd},44:{f:ed},45:{f:ad},46:{f:fd},47:{f:sd},48:{},49:{f:Rh},50:{},51:{f:Sd},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:L1},62:{f:tp},63:{f:Dd},64:{f:yp},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Mt,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:Tp},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:D2},148:{f:F2,p:16},151:{f:pp},152:{},153:{f:zp},154:{},155:{},156:{f:Gp},157:{},158:{},159:{T:1,f:G1},160:{T:-1},161:{T:1,f:Cr},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:cp},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:Td},336:{T:-1},337:{f:Fd,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Xi},357:{},358:{},359:{},360:{T:1},361:{},362:{f:O1},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:vp},427:{f:mp},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:_p},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:O2},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:dp},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Xi},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:Ld},633:{T:1},634:{T:-1},635:{T:1,f:Nd},636:{T:-1},637:{f:bh},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:Bp},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:Fp},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function Z(e,r,t,n){var i=r;if(!isNaN(i)){var a=n||(t||[]).length||0,s=e.next(4);s.write_shift(2,i),s.write_shift(2,a),a>0&&ca(t)&&e.push(t)}}function Tv(e,r,t,n){var i=n||(t||[]).length||0;if(i<=8224)return Z(e,r,t,i);var a=r;if(!isNaN(a)){for(var s=t.parts||[],f=0,l=0,o=0;o+(s[f]||8224)<=8224;)o+=s[f]||8224,f++;var c=e.next(4);for(c.write_shift(2,a),c.write_shift(2,o),e.push(t.slice(l,l+o)),l+=o;l<i;){for(c=e.next(4),c.write_shift(2,60),o=0;o+(s[f]||8224)<=8224;)o+=s[f]||8224,f++;c.write_shift(2,o),e.push(t.slice(l,l+o)),l+=o}}}function Sn(e,r,t){return e||(e=B(7)),e.write_shift(2,r),e.write_shift(2,t),e.write_shift(2,0),e.write_shift(1,0),e}function wv(e,r,t,n){var i=B(9);return Sn(i,e,r),pf(t,n||"b",i),i}function Sv(e,r,t){var n=B(8+2*t.length);return Sn(n,e,r),n.write_shift(1,t.length),n.write_shift(t.length,t,"sbcs"),n.l<n.length?n.slice(0,n.l):n}function Av(e,r,t,n){if(r.v!=null)switch(r.t){case"d":case"n":var i=r.t=="d"?ut(ft(r.v)):r.v;i==(i|0)&&i>=0&&i<65536?Z(e,2,B1(t,n,i)):Z(e,3,b1(t,n,i));return;case"b":case"e":Z(e,5,wv(t,n,r.v,r.t));return;case"s":case"str":Z(e,4,Sv(t,n,(r.v||"").slice(0,255)));return}Z(e,1,Sn(null,t,n))}function yv(e,r,t,n){var i=Array.isArray(r),a=Ie(r["!ref"]||"A1"),s,f="",l=[];if(a.e.c>255||a.e.r>16383){if(n.WTF)throw new Error("Range "+(r["!ref"]||"A1")+" exceeds format limit A1:IV16384");a.e.c=Math.min(a.e.c,255),a.e.r=Math.min(a.e.c,16383),s=$e(a)}for(var o=a.s.r;o<=a.e.r;++o){f=Ze(o);for(var c=a.s.c;c<=a.e.c;++c){o===a.s.r&&(l[c]=rt(c)),s=l[c]+f;var h=i?(r[o]||[])[c]:r[s];h&&Av(e,h,o,c)}}}function Fv(e,r){for(var t=r||{},n=ct(),i=0,a=0;a<e.SheetNames.length;++a)e.SheetNames[a]==t.sheet&&(i=a);if(i==0&&t.sheet&&e.SheetNames[0]!=t.sheet)throw new Error("Sheet not found: "+t.sheet);return Z(n,t.biff==4?1033:t.biff==3?521:9,va(e,16,t)),yv(n,e.Sheets[e.SheetNames[i]],i,t),Z(n,10),n.end()}function Cv(e,r,t){Z(e,49,E1({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},t))}function Ov(e,r,t){r&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)r[i]!=null&&Z(e,1054,S1(i,r[i],t))})}function Dv(e,r){var t=B(19);t.write_shift(4,2151),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(2,3),t.write_shift(1,1),t.write_shift(4,0),Z(e,2151,t),t=B(39),t.write_shift(4,2152),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(2,3),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(2,1),t.write_shift(4,4),t.write_shift(2,0),gf(Ie(r["!ref"]||"A1"),t),t.write_shift(4,4),Z(e,2152,t)}function Iv(e,r){for(var t=0;t<16;++t)Z(e,224,T0({numFmtId:0,style:!0},0,r));r.cellXfs.forEach(function(n){Z(e,224,T0(n,0,r))})}function kv(e,r){for(var t=0;t<r["!links"].length;++t){var n=r["!links"][t];Z(e,440,k1(n)),n[1].Tooltip&&Z(e,2048,N1(n))}delete r["!links"]}function Nv(e,r){if(r){var t=0;r.forEach(function(n,i){++t<=256&&n&&Z(e,125,P1(_i(i,n),i))})}}function Rv(e,r,t,n,i){var a=16+or(i.cellXfs,r,i);if(r.v==null&&!r.bf){Z(e,513,Er(t,n,a));return}if(r.bf)Z(e,6,n2(r,t,n,i,a));else switch(r.t){case"d":case"n":var s=r.t=="d"?ut(ft(r.v)):r.v;Z(e,515,C1(t,n,s,a));break;case"b":case"e":Z(e,517,F1(t,n,r.v,a,i,r.t));break;case"s":case"str":if(i.bookSST){var f=Ta(i.Strings,r.v,i.revStrings);Z(e,253,T1(t,n,f,a))}else Z(e,516,w1(t,n,(r.v||"").slice(0,255),a,i));break;default:Z(e,513,Er(t,n,a))}}function Lv(e,r,t){var n=ct(),i=t.SheetNames[e],a=t.Sheets[i]||{},s=(t||{}).Workbook||{},f=(s.Sheets||[])[e]||{},l=Array.isArray(a),o=r.biff==8,c,h="",u=[],x=Ie(a["!ref"]||"A1"),v=o?65536:16384;if(x.e.c>255||x.e.r>=v){if(r.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:IV16384");x.e.c=Math.min(x.e.c,255),x.e.r=Math.min(x.e.c,v-1)}Z(n,2057,va(t,16,r)),Z(n,13,St(1)),Z(n,12,St(100)),Z(n,15,st(!0)),Z(n,17,st(!1)),Z(n,16,_r(.001)),Z(n,95,st(!0)),Z(n,42,st(!1)),Z(n,43,st(!1)),Z(n,130,St(1)),Z(n,128,y1([0,0])),Z(n,131,st(!1)),Z(n,132,st(!1)),o&&Nv(n,a["!cols"]),Z(n,512,A1(x,r)),o&&(a["!links"]=[]);for(var d=x.s.r;d<=x.e.r;++d){h=Ze(d);for(var m=x.s.c;m<=x.e.c;++m){d===x.s.r&&(u[m]=rt(m)),c=u[m]+h;var y=l?(a[d]||[])[m]:a[c];y&&(Rv(n,y,d,m,r),o&&y.l&&a["!links"].push([c,y.l]))}}var A=f.CodeName||f.name||i;return o&&Z(n,574,_1((s.Views||[])[0])),o&&(a["!merges"]||[]).length&&Z(n,229,I1(a["!merges"])),o&&kv(n,a),Z(n,442,mf(A)),o&&Dv(n,a),Z(n,10),n.end()}function Pv(e,r,t){var n=ct(),i=(e||{}).Workbook||{},a=i.Sheets||[],s=i.WBProps||{},f=t.biff==8,l=t.biff==5;if(Z(n,2057,va(e,5,t)),t.bookType=="xla"&&Z(n,135),Z(n,225,f?St(1200):null),Z(n,193,s1(2)),l&&Z(n,191),l&&Z(n,192),Z(n,226),Z(n,92,p1("SheetJS",t)),Z(n,66,St(f?1200:1252)),f&&Z(n,353,St(0)),f&&Z(n,448),Z(n,317,M1(e.SheetNames.length)),f&&e.vbaraw&&Z(n,211),f&&e.vbaraw){var o=s.CodeName||"ThisWorkbook";Z(n,442,mf(o))}Z(n,156,St(17)),Z(n,25,st(!1)),Z(n,18,st(!1)),Z(n,19,St(0)),f&&Z(n,431,st(!1)),f&&Z(n,444,St(0)),Z(n,61,g1()),Z(n,64,st(!1)),Z(n,141,St(0)),Z(n,34,st($p(e)=="true")),Z(n,14,st(!0)),f&&Z(n,439,st(!1)),Z(n,218,St(0)),Cv(n,e,t),Ov(n,e.SSF,t),Iv(n,t),f&&Z(n,352,st(!1));var c=n.end(),h=ct();f&&Z(h,140,R1()),f&&t.Strings&&Tv(h,252,m1(t.Strings)),Z(h,10);var u=h.end(),x=ct(),v=0,d=0;for(d=0;d<e.SheetNames.length;++d)v+=(f?12:11)+(f?2:1)*e.SheetNames[d].length;var m=c.length+v+u.length;for(d=0;d<e.SheetNames.length;++d){var y=a[d]||{};Z(x,133,v1({pos:m,hs:y.Hidden||0,dt:0,name:e.SheetNames[d]},t)),m+=r[d].length}var A=x.end();if(v!=A.length)throw new Error("BS8 "+v+" != "+A.length);var F=[];return c.length&&F.push(c),A.length&&F.push(A),u.length&&F.push(u),Je(F)}function Mv(e,r){var t=r||{},n=[];e&&!e.SSF&&(e.SSF=ht(Me)),e&&e.SSF&&(xi(),di(e.SSF),t.revssf=pi(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,wa(t),t.cellXfs=[],or(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var i=0;i<e.SheetNames.length;++i)n[n.length]=Lv(i,t,e);return n.unshift(Pv(e,n,t)),Je(n)}function Gf(e,r){for(var t=0;t<=e.SheetNames.length;++t){var n=e.Sheets[e.SheetNames[t]];if(!(!n||!n["!ref"])){var i=_t(n["!ref"]);i.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[t]+"' extends beyond column IV (255). Data may be lost.")}}var a=r||{};switch(a.biff||2){case 8:case 5:return Mv(e,r);case 4:case 3:case 2:return Fv(e,r)}throw new Error("invalid type "+a.bookType+" for BIFF")}function bv(e,r,t,n){for(var i=e["!merges"]||[],a=[],s=r.s.c;s<=r.e.c;++s){for(var f=0,l=0,o=0;o<i.length;++o)if(!(i[o].s.r>t||i[o].s.c>s)&&!(i[o].e.r<t||i[o].e.c<s)){if(i[o].s.r<t||i[o].s.c<s){f=-1;break}f=i[o].e.r-i[o].s.r+1,l=i[o].e.c-i[o].s.c+1;break}if(!(f<0)){var c=Se({r:t,c:s}),h=n.dense?(e[t]||[])[s]:e[c],u=h&&h.v!=null&&(h.h||xh(h.w||(Kt(h),h.w)||""))||"",x={};f>1&&(x.rowspan=f),l>1&&(x.colspan=l),n.editable?u='<span contenteditable="true">'+u+"</span>":h&&(x["data-t"]=h&&h.t||"z",h.v!=null&&(x["data-v"]=h.v),h.z!=null&&(x["data-z"]=h.z),h.l&&(h.l.Target||"#").charAt(0)!="#"&&(u='<a href="'+h.l.Target+'">'+u+"</a>")),x.id=(n.id||"sjs")+"-"+c,a.push(q("td",u,x))}}var v="<tr>";return v+a.join("")+"</tr>"}var Bv='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',Uv="</body></html>";function $v(e,r,t){var n=[];return n.join("")+"<table"+(t&&t.id?' id="'+t.id+'"':"")+">"}function Xf(e,r){var t=r||{},n=t.header!=null?t.header:Bv,i=t.footer!=null?t.footer:Uv,a=[n],s=_t(e["!ref"]);t.dense=Array.isArray(e),a.push($v(e,s,t));for(var f=s.s.r;f<=s.e.r;++f)a.push(bv(e,s,f,t));return a.push("</table>"+i),a.join("")}function zf(e,r,t){var n=t||{},i=0,a=0;if(n.origin!=null)if(typeof n.origin=="number")i=n.origin;else{var s=typeof n.origin=="string"?Ge(n.origin):n.origin;i=s.r,a=s.c}var f=r.getElementsByTagName("tr"),l=Math.min(n.sheetRows||1e7,f.length),o={s:{r:0,c:0},e:{r:i,c:a}};if(e["!ref"]){var c=_t(e["!ref"]);o.s.r=Math.min(o.s.r,c.s.r),o.s.c=Math.min(o.s.c,c.s.c),o.e.r=Math.max(o.e.r,c.e.r),o.e.c=Math.max(o.e.c,c.e.c),i==-1&&(o.e.r=i=c.e.r+1)}var h=[],u=0,x=e["!rows"]||(e["!rows"]=[]),v=0,d=0,m=0,y=0,A=0,F=0;for(e["!cols"]||(e["!cols"]=[]);v<f.length&&d<l;++v){var I=f[v];if(O0(I)){if(n.display)continue;x[d]={hidden:!0}}var z=I.children;for(m=y=0;m<z.length;++m){var ee=z[m];if(!(n.display&&O0(ee))){var D=ee.hasAttribute("data-v")?ee.getAttribute("data-v"):ee.hasAttribute("v")?ee.getAttribute("v"):gh(ee.innerHTML),V=ee.getAttribute("data-z")||ee.getAttribute("z");for(u=0;u<h.length;++u){var P=h[u];P.s.c==y+a&&P.s.r<d+i&&d+i<=P.e.r&&(y=P.e.c+1-a,u=-1)}F=+ee.getAttribute("colspan")||1,((A=+ee.getAttribute("rowspan")||1)>1||F>1)&&h.push({s:{r:d+i,c:y+a},e:{r:d+i+(A||1)-1,c:y+a+(F||1)-1}});var b={t:"s",v:D},U=ee.getAttribute("data-t")||ee.getAttribute("t")||"";D!=null&&(D.length==0?b.t=U||"z":n.raw||D.trim().length==0||U=="s"||(D==="TRUE"?b={t:"b",v:!0}:D==="FALSE"?b={t:"b",v:!1}:isNaN(Gt(D))?isNaN(dn(D).getDate())||(b={t:"d",v:ft(D)},n.cellDates||(b={t:"n",v:ut(b.v)}),b.z=n.dateNF||Me[14]):b={t:"n",v:Gt(D)})),b.z===void 0&&V!=null&&(b.z=V);var G="",K=ee.getElementsByTagName("A");if(K&&K.length)for(var ce=0;ce<K.length&&!(K[ce].hasAttribute("href")&&(G=K[ce].getAttribute("href"),G.charAt(0)!="#"));++ce);G&&G.charAt(0)!="#"&&(b.l={Target:G}),n.dense?(e[d+i]||(e[d+i]=[]),e[d+i][y+a]=b):e[Se({c:y+a,r:d+i})]=b,o.e.c<y+a&&(o.e.c=y+a),y+=F}}++d}return h.length&&(e["!merges"]=(e["!merges"]||[]).concat(h)),o.e.r=Math.max(o.e.r,d-1+i),e["!ref"]=$e(o),d>=l&&(e["!fullref"]=$e((o.e.r=f.length-v+d-1+i,o))),e}function jf(e,r){var t=r||{},n=t.dense?[]:{};return zf(n,e,r)}function Wv(e,r){return Sr(jf(e,r),r)}function O0(e){var r="",t=Hv(e);return t&&(r=t(e).getPropertyValue("display")),r||(r=e.style&&e.style.display),r==="none"}function Hv(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var Vv=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),r="<office:document-styles "+xn({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return We+r}}(),D0=function(){var e=function(a){return we(a).replace(/ +/g,function(s){return'<text:s text:c="'+s.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},r=` <table:table-cell />
|
||
`,t=` <table:covered-table-cell/>
|
||
`,n=function(a,s,f){var l=[];l.push(' <table:table table:name="'+we(s.SheetNames[f])+`" table:style-name="ta1">
|
||
`);var o=0,c=0,h=_t(a["!ref"]||"A1"),u=a["!merges"]||[],x=0,v=Array.isArray(a);if(a["!cols"])for(c=0;c<=h.e.c;++c)l.push(" <table:table-column"+(a["!cols"][c]?' table:style-name="co'+a["!cols"][c].ods+'"':"")+`></table:table-column>
|
||
`);var d="",m=a["!rows"]||[];for(o=0;o<h.s.r;++o)d=m[o]?' table:style-name="ro'+m[o].ods+'"':"",l.push(" <table:table-row"+d+`></table:table-row>
|
||
`);for(;o<=h.e.r;++o){for(d=m[o]?' table:style-name="ro'+m[o].ods+'"':"",l.push(" <table:table-row"+d+`>
|
||
`),c=0;c<h.s.c;++c)l.push(r);for(;c<=h.e.c;++c){var y=!1,A={},F="";for(x=0;x!=u.length;++x)if(!(u[x].s.c>c)&&!(u[x].s.r>o)&&!(u[x].e.c<c)&&!(u[x].e.r<o)){(u[x].s.c!=c||u[x].s.r!=o)&&(y=!0),A["table:number-columns-spanned"]=u[x].e.c-u[x].s.c+1,A["table:number-rows-spanned"]=u[x].e.r-u[x].s.r+1;break}if(y){l.push(t);continue}var I=Se({r:o,c}),z=v?(a[o]||[])[c]:a[I];if(z&&z.f&&(A["table:formula"]=we(o2(z.f)),z.F&&z.F.slice(0,I.length)==I)){var ee=_t(z.F);A["table:number-matrix-columns-spanned"]=ee.e.c-ee.s.c+1,A["table:number-matrix-rows-spanned"]=ee.e.r-ee.s.r+1}if(!z){l.push(r);continue}switch(z.t){case"b":F=z.v?"TRUE":"FALSE",A["office:value-type"]="boolean",A["office:boolean-value"]=z.v?"true":"false";break;case"n":F=z.w||String(z.v||0),A["office:value-type"]="float",A["office:value"]=z.v||0;break;case"s":case"str":F=z.v==null?"":z.v,A["office:value-type"]="string";break;case"d":F=z.w||ft(z.v).toISOString(),A["office:value-type"]="date",A["office:date-value"]=ft(z.v).toISOString(),A["table:style-name"]="ce1";break;default:l.push(r);continue}var D=e(F);if(z.l&&z.l.Target){var V=z.l.Target;V=V.charAt(0)=="#"?"#"+c2(V.slice(1)):V,V.charAt(0)!="#"&&!V.match(/^\w+:/)&&(V="../"+V),D=q("text:a",D,{"xlink:href":V.replace(/&/g,"&")})}l.push(" "+q("table:table-cell",q("text:p",D,{}),A)+`
|
||
`)}l.push(` </table:table-row>
|
||
`)}return l.push(` </table:table>
|
||
`),l.join("")},i=function(a,s){a.push(` <office:automatic-styles>
|
||
`),a.push(` <number:date-style style:name="N37" number:automatic-order="true">
|
||
`),a.push(` <number:month number:style="long"/>
|
||
`),a.push(` <number:text>/</number:text>
|
||
`),a.push(` <number:day number:style="long"/>
|
||
`),a.push(` <number:text>/</number:text>
|
||
`),a.push(` <number:year/>
|
||
`),a.push(` </number:date-style>
|
||
`);var f=0;s.SheetNames.map(function(o){return s.Sheets[o]}).forEach(function(o){if(o&&o["!cols"]){for(var c=0;c<o["!cols"].length;++c)if(o["!cols"][c]){var h=o["!cols"][c];if(h.width==null&&h.wpx==null&&h.wch==null)continue;ma(h),h.ods=f;var u=o["!cols"][c].wpx+"px";a.push(' <style:style style:name="co'+f+`" style:family="table-column">
|
||
`),a.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+u+`"/>
|
||
`),a.push(` </style:style>
|
||
`),++f}}});var l=0;s.SheetNames.map(function(o){return s.Sheets[o]}).forEach(function(o){if(o&&o["!rows"]){for(var c=0;c<o["!rows"].length;++c)if(o["!rows"][c]){o["!rows"][c].ods=l;var h=o["!rows"][c].hpx+"px";a.push(' <style:style style:name="ro'+l+`" style:family="table-row">
|
||
`),a.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+h+`"/>
|
||
`),a.push(` </style:style>
|
||
`),++l}}}),a.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
|
||
`),a.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
|
||
`),a.push(` </style:style>
|
||
`),a.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
|
||
`),a.push(` </office:automatic-styles>
|
||
`)};return function(s,f){var l=[We],o=xn({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),c=xn({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});f.bookType=="fods"?(l.push("<office:document"+o+c+`>
|
||
`),l.push(lf().replace(/office:document-meta/g,"office:meta"))):l.push("<office:document-content"+o+`>
|
||
`),i(l,s),l.push(` <office:body>
|
||
`),l.push(` <office:spreadsheet>
|
||
`);for(var h=0;h!=s.SheetNames.length;++h)l.push(n(s.Sheets[s.SheetNames[h]],s,h));return l.push(` </office:spreadsheet>
|
||
`),l.push(` </office:body>
|
||
`),f.bookType=="fods"?l.push("</office:document>"):l.push("</office:document-content>"),l.join("")}}();function Kf(e,r){if(r.bookType=="fods")return D0(e,r);var t=sa(),n="",i=[],a=[];return n="mimetype",pe(t,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",pe(t,n,D0(e,r)),i.push([n,"text/xml"]),a.push([n,"ContentFile"]),n="styles.xml",pe(t,n,Vv(e,r)),i.push([n,"text/xml"]),a.push([n,"StylesFile"]),n="meta.xml",pe(t,n,We+lf()),i.push([n,"text/xml"]),a.push([n,"MetadataFile"]),n="manifest.rdf",pe(t,n,t1(a)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",pe(t,n,Qh(i)),t}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function ti(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Gv(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):Ct(Wt(e))}function Xv(e,r){e:for(var t=0;t<=e.length-r.length;++t){for(var n=0;n<r.length;++n)if(e[t+n]!=r[n])continue e;return!0}return!1}function ir(e){var r=e.reduce(function(i,a){return i+a.length},0),t=new Uint8Array(r),n=0;return e.forEach(function(i){t.set(i,n),n+=i.length}),t}function zv(e,r,t){var n=Math.floor(t==0?0:Math.LOG10E*Math.log(Math.abs(t)))+6176-20,i=t/Math.pow(10,n-6176);e[r+15]|=n>>7,e[r+14]|=(n&127)<<1;for(var a=0;i>=1;++a,i/=256)e[r+a]=i&255;e[r+15]|=t>=0?0:128}function pn(e,r){var t=r?r[0]:0,n=e[t]&127;e:if(e[t++]>=128&&(n|=(e[t]&127)<<7,e[t++]<128||(n|=(e[t]&127)<<14,e[t++]<128)||(n|=(e[t]&127)<<21,e[t++]<128)||(n+=(e[t]&127)*Math.pow(2,28),++t,e[t++]<128)||(n+=(e[t]&127)*Math.pow(2,35),++t,e[t++]<128)||(n+=(e[t]&127)*Math.pow(2,42),++t,e[t++]<128)))break e;return r&&(r[0]=t),n}function Ee(e){var r=new Uint8Array(7);r[0]=e&127;var t=1;e:if(e>127){if(r[t-1]|=128,r[t]=e>>7&127,++t,e<=16383||(r[t-1]|=128,r[t]=e>>14&127,++t,e<=2097151)||(r[t-1]|=128,r[t]=e>>21&127,++t,e<=268435455)||(r[t-1]|=128,r[t]=e/256>>>21&127,++t,e<=34359738367)||(r[t-1]|=128,r[t]=e/65536>>>21&127,++t,e<=4398046511103))break e;r[t-1]|=128,r[t]=e/16777216>>>21&127,++t}return r.slice(0,t)}function Ur(e){var r=0,t=e[r]&127;e:if(e[r++]>=128){if(t|=(e[r]&127)<<7,e[r++]<128||(t|=(e[r]&127)<<14,e[r++]<128)||(t|=(e[r]&127)<<21,e[r++]<128))break e;t|=(e[r]&127)<<28}return t}function He(e){for(var r=[],t=[0];t[0]<e.length;){var n=t[0],i=pn(e,t),a=i&7;i=Math.floor(i/8);var s=0,f;if(i==0)break;switch(a){case 0:{for(var l=t[0];e[t[0]++]>=128;);f=e.slice(l,t[0])}break;case 5:s=4,f=e.slice(t[0],t[0]+s),t[0]+=s;break;case 1:s=8,f=e.slice(t[0],t[0]+s),t[0]+=s;break;case 2:s=pn(e,t),f=e.slice(t[0],t[0]+s),t[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(a," for Field ").concat(i," at offset ").concat(n))}var o={data:f,type:a};r[i]==null?r[i]=[o]:r[i].push(o)}return r}function je(e){var r=[];return e.forEach(function(t,n){t.forEach(function(i){i.data&&(r.push(Ee(n*8+i.type)),i.type==2&&r.push(Ee(i.data.length)),r.push(i.data))})}),ir(r)}function yt(e){for(var r,t=[],n=[0];n[0]<e.length;){var i=pn(e,n),a=He(e.slice(n[0],n[0]+i));n[0]+=i;var s={id:Ur(a[1][0].data),messages:[]};a[2].forEach(function(f){var l=He(f.data),o=Ur(l[3][0].data);s.messages.push({meta:l,data:e.slice(n[0],n[0]+o)}),n[0]+=o}),(r=a[3])!=null&&r[0]&&(s.merge=Ur(a[3][0].data)>>>0>0),t.push(s)}return t}function kr(e){var r=[];return e.forEach(function(t){var n=[];n[1]=[{data:Ee(t.id),type:0}],n[2]=[],t.merge!=null&&(n[3]=[{data:Ee(+!!t.merge),type:0}]);var i=[];t.messages.forEach(function(s){i.push(s.data),s.meta[3]=[{type:0,data:Ee(s.data.length)}],n[2].push({data:je(s.meta),type:2})});var a=je(n);r.push(Ee(a.length)),r.push(a),i.forEach(function(s){return r.push(s)})}),ir(r)}function jv(e,r){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var t=[0],n=pn(r,t),i=[];t[0]<r.length;){var a=r[t[0]]&3;if(a==0){var s=r[t[0]++]>>2;if(s<60)++s;else{var f=s-59;s=r[t[0]],f>1&&(s|=r[t[0]+1]<<8),f>2&&(s|=r[t[0]+2]<<16),f>3&&(s|=r[t[0]+3]<<24),s>>>=0,s++,t[0]+=f}i.push(r.slice(t[0],t[0]+s)),t[0]+=s;continue}else{var l=0,o=0;if(a==1?(o=(r[t[0]]>>2&7)+4,l=(r[t[0]++]&224)<<3,l|=r[t[0]++]):(o=(r[t[0]++]>>2)+1,a==2?(l=r[t[0]]|r[t[0]+1]<<8,t[0]+=2):(l=(r[t[0]]|r[t[0]+1]<<8|r[t[0]+2]<<16|r[t[0]+3]<<24)>>>0,t[0]+=4)),i=[ir(i)],l==0)throw new Error("Invalid offset 0");if(l>i[0].length)throw new Error("Invalid offset beyond length");if(o>=l)for(i.push(i[0].slice(-l)),o-=l;o>=i[i.length-1].length;)i.push(i[i.length-1]),o-=i[i.length-1].length;i.push(i[0].slice(-l,-l+o))}}var c=ir(i);if(c.length!=n)throw new Error("Unexpected length: ".concat(c.length," != ").concat(n));return c}function Ft(e){for(var r=[],t=0;t<e.length;){var n=e[t++],i=e[t]|e[t+1]<<8|e[t+2]<<16;t+=3,r.push(jv(n,e.slice(t,t+i))),t+=i}if(t!==e.length)throw new Error("data is not a valid framed stream!");return ir(r)}function Nr(e){for(var r=[],t=0;t<e.length;){var n=Math.min(e.length-t,268435455),i=new Uint8Array(4);r.push(i);var a=Ee(n),s=a.length;r.push(a),n<=60?(s++,r.push(new Uint8Array([n-1<<2]))):n<=256?(s+=2,r.push(new Uint8Array([240,n-1&255]))):n<=65536?(s+=3,r.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(s+=4,r.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(s+=5,r.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),r.push(e.slice(t,t+n)),s+=n,i[0]=0,i[1]=s&255,i[2]=s>>8&255,i[3]=s>>16&255,t+=n}return ir(r)}function Mi(e,r){var t=new Uint8Array(32),n=ti(t),i=12,a=0;switch(t[0]=5,e.t){case"n":t[1]=2,zv(t,i,e.v),a|=1,i+=16;break;case"b":t[1]=6,n.setFloat64(i,e.v?1:0,!0),a|=2,i+=8;break;case"s":if(r.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));t[1]=3,n.setUint32(i,r.indexOf(e.v),!0),a|=8,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,a,!0),t.slice(0,i)}function bi(e,r){var t=new Uint8Array(32),n=ti(t),i=12,a=0;switch(t[0]=3,e.t){case"n":t[2]=2,n.setFloat64(i,e.v,!0),a|=32,i+=8;break;case"b":t[2]=6,n.setFloat64(i,e.v?1:0,!0),a|=32,i+=8;break;case"s":if(r.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));t[2]=3,n.setUint32(i,r.indexOf(e.v),!0),a|=16,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,a,!0),t.slice(0,i)}function Zt(e){var r=He(e);return pn(r[1][0].data)}function Kv(e,r,t){var n,i,a,s;if(!((n=e[6])!=null&&n[0])||!((i=e[7])!=null&&i[0]))throw"Mutation only works on post-BNC storages!";var f=((s=(a=e[8])==null?void 0:a[0])==null?void 0:s.data)&&Ur(e[8][0].data)>0||!1;if(f)throw"Math only works with normal offsets";for(var l=0,o=ti(e[7][0].data),c=0,h=[],u=ti(e[4][0].data),x=0,v=[],d=0;d<r.length;++d){if(r[d]==null){o.setUint16(d*2,65535,!0),u.setUint16(d*2,65535);continue}o.setUint16(d*2,c,!0),u.setUint16(d*2,x,!0);var m,y;switch(typeof r[d]){case"string":m=Mi({t:"s",v:r[d]},t),y=bi({t:"s",v:r[d]},t);break;case"number":m=Mi({t:"n",v:r[d]},t),y=bi({t:"n",v:r[d]},t);break;case"boolean":m=Mi({t:"b",v:r[d]},t),y=bi({t:"b",v:r[d]},t);break;default:throw new Error("Unsupported value "+r[d])}h.push(m),c+=m.length,v.push(y),x+=y.length,++l}for(e[2][0].data=Ee(l);d<e[7][0].data.length/2;++d)o.setUint16(d*2,65535,!0),u.setUint16(d*2,65535,!0);return e[6][0].data=ir(h),e[3][0].data=ir(v),l}function Yv(e,r){if(!r||!r.numbers)throw new Error("Must pass a `numbers` option -- check the README");var t=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=_t(t["!ref"]);n.s.r=n.s.c=0;var i=!1;n.e.c>9&&(i=!0,n.e.c=9),n.e.r>49&&(i=!0,n.e.r=49),i&&console.error("The Numbers writer is currently limited to ".concat($e(n)));var a=ri(t,{range:n,header:1}),s=["~Sh33tJ5~"];a.forEach(function(M){return M.forEach(function(O){typeof O=="string"&&s.push(O)})});var f={},l=[],o=Ae.read(r.numbers,{type:"base64"});o.FileIndex.map(function(M,O){return[M,o.FullPaths[O]]}).forEach(function(M){var O=M[0],C=M[1];if(O.type==2&&O.name.match(/\.iwa/)){var j=O.content,oe=Ft(j),ue=yt(oe);ue.forEach(function(se){l.push(se.id),f[se.id]={deps:[],location:C,type:Ur(se.messages[0].meta[1][0].data)}})}}),l.sort(function(M,O){return M-O});var c=l.filter(function(M){return M>1}).map(function(M){return[M,Ee(M)]});o.FileIndex.map(function(M,O){return[M,o.FullPaths[O]]}).forEach(function(M){var O=M[0];if(M[1],!!O.name.match(/\.iwa/)){var C=yt(Ft(O.content));C.forEach(function(j){j.messages.forEach(function(oe){c.forEach(function(ue){j.messages.some(function(se){return Ur(se.meta[1][0].data)!=11006&&Xv(se.data,ue[1])})&&f[ue[0]].deps.push(j.id)})})})}});for(var h=Ae.find(o,f[1].location),u=yt(Ft(h.content)),x,v=0;v<u.length;++v){var d=u[v];d.id==1&&(x=d)}var m=Zt(He(x.messages[0].data)[1][0].data);for(h=Ae.find(o,f[m].location),u=yt(Ft(h.content)),v=0;v<u.length;++v)d=u[v],d.id==m&&(x=d);for(m=Zt(He(x.messages[0].data)[2][0].data),h=Ae.find(o,f[m].location),u=yt(Ft(h.content)),v=0;v<u.length;++v)d=u[v],d.id==m&&(x=d);for(m=Zt(He(x.messages[0].data)[2][0].data),h=Ae.find(o,f[m].location),u=yt(Ft(h.content)),v=0;v<u.length;++v)d=u[v],d.id==m&&(x=d);var y=He(x.messages[0].data);{y[6][0].data=Ee(n.e.r+1),y[7][0].data=Ee(n.e.c+1);var A=Zt(y[46][0].data),F=Ae.find(o,f[A].location),I=yt(Ft(F.content));{for(var z=0;z<I.length&&I[z].id!=A;++z);if(I[z].id!=A)throw"Bad ColumnRowUIDMapArchive";var ee=He(I[z].messages[0].data);ee[1]=[],ee[2]=[],ee[3]=[];for(var D=0;D<=n.e.c;++D){var V=[];V[1]=V[2]=[{type:0,data:Ee(D+420690)}],ee[1].push({type:2,data:je(V)}),ee[2].push({type:0,data:Ee(D)}),ee[3].push({type:0,data:Ee(D)})}ee[4]=[],ee[5]=[],ee[6]=[];for(var P=0;P<=n.e.r;++P)V=[],V[1]=V[2]=[{type:0,data:Ee(P+726270)}],ee[4].push({type:2,data:je(V)}),ee[5].push({type:0,data:Ee(P)}),ee[6].push({type:0,data:Ee(P)});I[z].messages[0].data=je(ee)}F.content=Nr(kr(I)),F.size=F.content.length,delete y[46];var b=He(y[4][0].data);{b[7][0].data=Ee(n.e.r+1);var U=He(b[1][0].data),G=Zt(U[2][0].data);F=Ae.find(o,f[G].location),I=yt(Ft(F.content));{if(I[0].id!=G)throw"Bad HeaderStorageBucket";var K=He(I[0].messages[0].data);for(P=0;P<a.length;++P){var ce=He(K[2][0].data);ce[1][0].data=Ee(P),ce[4][0].data=Ee(a[P].length),K[2][P]={type:K[2][0].type,data:je(ce)}}I[0].messages[0].data=je(K)}F.content=Nr(kr(I)),F.size=F.content.length;var le=Zt(b[2][0].data);F=Ae.find(o,f[le].location),I=yt(Ft(F.content));{if(I[0].id!=le)throw"Bad HeaderStorageBucket";for(K=He(I[0].messages[0].data),D=0;D<=n.e.c;++D)ce=He(K[2][0].data),ce[1][0].data=Ee(D),ce[4][0].data=Ee(n.e.r+1),K[2][D]={type:K[2][0].type,data:je(ce)};I[0].messages[0].data=je(K)}F.content=Nr(kr(I)),F.size=F.content.length;var de=Zt(b[4][0].data);(function(){for(var M=Ae.find(o,f[de].location),O=yt(Ft(M.content)),C,j=0;j<O.length;++j){var oe=O[j];oe.id==de&&(C=oe)}var ue=He(C.messages[0].data);{ue[3]=[];var se=[];s.forEach(function(ve,it){se[1]=[{type:0,data:Ee(it)}],se[2]=[{type:0,data:Ee(1)}],se[3]=[{type:2,data:Gv(ve)}],ue[3].push({type:2,data:je(se)})})}C.messages[0].data=je(ue);var te=kr(O),Fe=Nr(te);M.content=Fe,M.size=M.content.length})();var xe=He(b[3][0].data);{var ze=xe[1][0];delete xe[2];var Be=He(ze.data);{var Et=Zt(Be[2][0].data);(function(){for(var M=Ae.find(o,f[Et].location),O=yt(Ft(M.content)),C,j=0;j<O.length;++j){var oe=O[j];oe.id==Et&&(C=oe)}var ue=He(C.messages[0].data);{delete ue[6],delete xe[7];var se=new Uint8Array(ue[5][0].data);ue[5]=[];for(var te=0,Fe=0;Fe<=n.e.r;++Fe){var ve=He(se);te+=Kv(ve,a[Fe],s),ve[1][0].data=Ee(Fe),ue[5].push({data:je(ve),type:2})}ue[1]=[{type:0,data:Ee(n.e.c+1)}],ue[2]=[{type:0,data:Ee(n.e.r+1)}],ue[3]=[{type:0,data:Ee(te)}],ue[4]=[{type:0,data:Ee(n.e.r+1)}]}C.messages[0].data=je(ue);var it=kr(O),_e=Nr(it);M.content=_e,M.size=M.content.length})()}ze.data=je(Be)}b[3][0].data=je(xe)}y[4][0].data=je(b)}x.messages[0].data=je(y);var xt=kr(u),S=Nr(xt);return h.content=S,h.size=h.content.length,o}function Jv(e){return function(t){for(var n=0;n!=e.length;++n){var i=e[n];t[i[0]]===void 0&&(t[i[0]]=i[1]),i[2]==="n"&&(t[i[0]]=Number(t[i[0]]))}}}function wa(e){Jv([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function qv(e,r){return r.bookType=="ods"?Kf(e,r):r.bookType=="numbers"?Yv(e,r):r.bookType=="xlsb"?Zv(e,r):Qv(e,r)}function Zv(e,r){Lr=1024,e&&!e.SSF&&(e.SSF=ht(Me)),e&&e.SSF&&(xi(),di(e.SSF),r.revssf=pi(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.rels={},r.wbrels={},r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,ln?r.revStrings=new Map:(r.revStrings={},r.revStrings.foo=[],delete r.revStrings.foo);var t=r.bookType=="xlsb"?"bin":"xml",n=If.indexOf(r.bookType)>-1,i=af();wa(r=r||{});var a=sa(),s="",f=0;if(r.cellXfs=[],or(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",pe(a,s,of(e.Props,r)),i.coreprops.push(s),Te(r.rels,2,s,me.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=[],o=0;o<e.SheetNames.length;++o)(e.Workbook.Sheets[o]||{}).Hidden!=2&&l.push(e.SheetNames[o]);e.Props.SheetNames=l}for(e.Props.Worksheets=e.Props.SheetNames.length,pe(a,s,uf(e.Props)),i.extprops.push(s),Te(r.rels,3,s,me.EXT_PROPS),e.Custprops!==e.Props&&Qe(e.Custprops||{}).length>0&&(s="docProps/custom.xml",pe(a,s,hf(e.Custprops)),i.custprops.push(s),Te(r.rels,4,s,me.CUST_PROPS)),f=1;f<=e.SheetNames.length;++f){var c={"!id":{}},h=e.Sheets[e.SheetNames[f-1]],u=(h||{})["!type"]||"sheet";switch(u){case"chart":default:s="xl/worksheets/sheet"+f+"."+t,pe(a,s,tv(f-1,s,r,e,c)),i.sheets.push(s),Te(r.wbrels,-1,"worksheets/sheet"+f+"."+t,me.WS[0])}if(h){var x=h["!comments"],v=!1,d="";x&&x.length>0&&(d="xl/comments"+f+"."+t,pe(a,d,iv(x,d)),i.comments.push(d),Te(c,-1,"../comments"+f+"."+t,me.CMNT),v=!0),h["!legacy"]&&v&&pe(a,"xl/drawings/vmlDrawing"+f+".vml",Of(f,h["!comments"])),delete h["!comments"],delete h["!legacy"]}c["!id"].rId1&&pe(a,ff(s),br(c))}return r.Strings!=null&&r.Strings.length>0&&(s="xl/sharedStrings."+t,pe(a,s,nv(r.Strings,s,r)),i.strs.push(s),Te(r.wbrels,-1,"sharedStrings."+t,me.SST)),s="xl/workbook."+t,pe(a,s,ev(e,s)),i.workbooks.push(s),Te(r.rels,1,s,me.WB),s="xl/theme/theme1.xml",pe(a,s,Ff(e.Themes,r)),i.themes.push(s),Te(r.wbrels,-1,"theme/theme1.xml",me.THEME),s="xl/styles."+t,pe(a,s,rv(e,s,r)),i.styles.push(s),Te(r.wbrels,-1,"styles."+t,me.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",pe(a,s,e.vbaraw),i.vba.push(s),Te(r.wbrels,-1,"vbaProject.bin",me.VBA)),s="xl/metadata."+t,pe(a,s,av(s)),i.metadata.push(s),Te(r.wbrels,-1,"metadata."+t,me.XLMETA),pe(a,"[Content_Types].xml",sf(i,r)),pe(a,"_rels/.rels",br(r.rels)),pe(a,"xl/_rels/workbook."+t+".rels",br(r.wbrels)),delete r.revssf,delete r.ssf,a}function Qv(e,r){Lr=1024,e&&!e.SSF&&(e.SSF=ht(Me)),e&&e.SSF&&(xi(),di(e.SSF),r.revssf=pi(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.rels={},r.wbrels={},r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,ln?r.revStrings=new Map:(r.revStrings={},r.revStrings.foo=[],delete r.revStrings.foo);var t="xml",n=If.indexOf(r.bookType)>-1,i=af();wa(r=r||{});var a=sa(),s="",f=0;if(r.cellXfs=[],or(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",pe(a,s,of(e.Props,r)),i.coreprops.push(s),Te(r.rels,2,s,me.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=[],o=0;o<e.SheetNames.length;++o)(e.Workbook.Sheets[o]||{}).Hidden!=2&&l.push(e.SheetNames[o]);e.Props.SheetNames=l}e.Props.Worksheets=e.Props.SheetNames.length,pe(a,s,uf(e.Props)),i.extprops.push(s),Te(r.rels,3,s,me.EXT_PROPS),e.Custprops!==e.Props&&Qe(e.Custprops||{}).length>0&&(s="docProps/custom.xml",pe(a,s,hf(e.Custprops)),i.custprops.push(s),Te(r.rels,4,s,me.CUST_PROPS));var c=["SheetJ5"];for(r.tcid=0,f=1;f<=e.SheetNames.length;++f){var h={"!id":{}},u=e.Sheets[e.SheetNames[f-1]],x=(u||{})["!type"]||"sheet";switch(x){case"chart":default:s="xl/worksheets/sheet"+f+"."+t,pe(a,s,Uf(f-1,r,e,h)),i.sheets.push(s),Te(r.wbrels,-1,"worksheets/sheet"+f+"."+t,me.WS[0])}if(u){var v=u["!comments"],d=!1,m="";if(v&&v.length>0){var y=!1;v.forEach(function(A){A[1].forEach(function(F){F.T==!0&&(y=!0)})}),y&&(m="xl/threadedComments/threadedComment"+f+"."+t,pe(a,m,Id(v,c,r)),i.threadedcomments.push(m),Te(h,-1,"../threadedComments/threadedComment"+f+"."+t,me.TCMNT)),m="xl/comments"+f+"."+t,pe(a,m,Df(v)),i.comments.push(m),Te(h,-1,"../comments"+f+"."+t,me.CMNT),d=!0}u["!legacy"]&&d&&pe(a,"xl/drawings/vmlDrawing"+f+".vml",Of(f,u["!comments"])),delete u["!comments"],delete u["!legacy"]}h["!id"].rId1&&pe(a,ff(s),br(h))}return r.Strings!=null&&r.Strings.length>0&&(s="xl/sharedStrings."+t,pe(a,s,Ef(r.Strings,r)),i.strs.push(s),Te(r.wbrels,-1,"sharedStrings."+t,me.SST)),s="xl/workbook."+t,pe(a,s,Hf(e)),i.workbooks.push(s),Te(r.rels,1,s,me.WB),s="xl/theme/theme1.xml",pe(a,s,Ff(e.Themes,r)),i.themes.push(s),Te(r.wbrels,-1,"theme/theme1.xml",me.THEME),s="xl/styles."+t,pe(a,s,Af(e,r)),i.styles.push(s),Te(r.wbrels,-1,"styles."+t,me.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",pe(a,s,e.vbaraw),i.vba.push(s),Te(r.wbrels,-1,"vbaProject.bin",me.VBA)),s="xl/metadata."+t,pe(a,s,Cf()),i.metadata.push(s),Te(r.wbrels,-1,"metadata."+t,me.XLMETA),c.length>1&&(s="xl/persons/person.xml",pe(a,s,kd(c)),i.people.push(s),Te(r.wbrels,-1,"persons/person.xml",me.PEOPLE)),pe(a,"[Content_Types].xml",sf(i,r)),pe(a,"_rels/.rels",br(r.rels)),pe(a,"xl/_rels/workbook."+t+".rels",br(r.wbrels)),delete r.revssf,delete r.ssf,a}function em(e,r){var t="";switch((r||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":t=jt(e.slice(0,12));break;case"binary":t=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(r&&r.type||"undefined"))}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3),t.charCodeAt(4),t.charCodeAt(5),t.charCodeAt(6),t.charCodeAt(7)]}function Yf(e,r){switch(r.type){case"base64":case"binary":break;case"buffer":case"array":r.type="";break;case"file":return _n(r.file,Ae.write(e,{type:ge?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");default:throw new Error("Unrecognized type "+r.type)}return Ae.write(e,r)}function tm(e,r){var t=ht(r||{}),n=qv(e,t);return rm(n,t)}function rm(e,r){var t={},n=ge?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(r.compression&&(t.compression="DEFLATE"),r.password)t.type=n;else switch(r.type){case"base64":t.type="base64";break;case"binary":t.type="string";break;case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");case"buffer":case"file":t.type=n;break;default:throw new Error("Unrecognized type "+r.type)}var i=e.FullPaths?Ae.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[t.type]||t.type,compression:!!r.compression}):e.generate(t);if(typeof Deno<"u"&&typeof i=="string"){if(r.type=="binary"||r.type=="base64")return i;i=new Uint8Array(hi(i))}return r.password&&typeof encrypt_agile<"u"?Yf(encrypt_agile(i,r.password),r):r.type==="file"?_n(r.file,i):r.type=="string"?nn(i):i}function nm(e,r){var t=r||{},n=_v(e,t);return Yf(n,t)}function Lt(e,r,t){t||(t="");var n=t+e;switch(r.type){case"base64":return hn(Wt(n));case"binary":return Wt(n);case"string":return e;case"file":return _n(r.file,n,"utf8");case"buffer":return ge?Jt(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):Lt(n,{type:"binary"}).split("").map(function(i){return i.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}function im(e,r){switch(r.type){case"base64":return hn(e);case"binary":return e;case"string":return e;case"file":return _n(r.file,e,"binary");case"buffer":return ge?Jt(e,"binary"):e.split("").map(function(t){return t.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}function Ln(e,r){switch(r.type){case"string":case"base64":case"binary":for(var t="",n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return r.type=="base64"?hn(t):r.type=="string"?nn(t):t;case"file":return _n(r.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+r.type)}}function Sa(e,r){ku(),Vp(e);var t=ht(r||{});if(t.cellStyles&&(t.cellNF=!0,t.sheetStubs=!0),t.type=="array"){t.type="binary";var n=Sa(e,t);return t.type="array",hi(n)}var i=0;if(t.sheet&&(typeof t.sheet=="number"?i=t.sheet:i=e.SheetNames.indexOf(t.sheet),!e.SheetNames[i]))throw new Error("Sheet not found: "+t.sheet+" : "+typeof t.sheet);switch(t.bookType||"xlsb"){case"xml":case"xlml":return Lt(mv(e,t),t);case"slk":case"sylk":return Lt($1.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"htm":case"html":return Lt(Xf(e.Sheets[e.SheetNames[i]],t),t);case"txt":return im(Jf(e.Sheets[e.SheetNames[i]],t),t);case"csv":return Lt(Aa(e.Sheets[e.SheetNames[i]],t),t,"\uFEFF");case"dif":return Lt(W1.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"dbf":return Ln(U1.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"prn":return Lt(H1.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"rtf":return Lt(Y1.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"eth":return Lt(_f.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"fods":return Lt(Kf(e,t),t);case"wk1":return Ln(w0.sheet_to_wk1(e.Sheets[e.SheetNames[i]],t),t);case"wk3":return Ln(w0.book_to_wk3(e,t),t);case"biff2":t.biff||(t.biff=2);case"biff3":t.biff||(t.biff=3);case"biff4":return t.biff||(t.biff=4),Ln(Gf(e,t),t);case"biff5":t.biff||(t.biff=5);case"biff8":case"xla":case"xls":return t.biff||(t.biff=8),nm(e,t);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return tm(e,t);default:throw new Error("Unrecognized bookType |"+t.bookType+"|")}}function am(e){if(!e.bookType){var r={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},t=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();t.match(/^\.[a-z]+$/)&&(e.bookType=t.slice(1)),e.bookType=r[e.bookType]||e.bookType}}function sm(e,r,t){var n=t||{};return n.type="file",n.file=r,am(n),Sa(e,n)}function fm(e,r,t,n,i,a,s,f){var l=Ze(t),o=f.defval,c=f.raw||!Object.prototype.hasOwnProperty.call(f,"raw"),h=!0,u=i===1?[]:{};if(i!==1)if(Object.defineProperty)try{Object.defineProperty(u,"__rowNum__",{value:t,enumerable:!1})}catch{u.__rowNum__=t}else u.__rowNum__=t;if(!s||e[t])for(var x=r.s.c;x<=r.e.c;++x){var v=s?e[t][x]:e[n[x]+l];if(v===void 0||v.t===void 0){if(o===void 0)continue;a[x]!=null&&(u[a[x]]=o);continue}var d=v.v;switch(v.t){case"z":if(d==null)break;continue;case"e":d=d==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+v.t)}if(a[x]!=null){if(d==null)if(v.t=="e"&&d===null)u[a[x]]=null;else if(o!==void 0)u[a[x]]=o;else if(c&&d===null)u[a[x]]=null;else continue;else u[a[x]]=c&&(v.t!=="n"||v.t==="n"&&f.rawNumbers!==!1)?d:Kt(v,d,f);d!=null&&(h=!1)}}return{row:u,isempty:h}}function ri(e,r){if(e==null||e["!ref"]==null)return[];var t={t:"n",v:0},n=0,i=1,a=[],s=0,f="",l={s:{r:0,c:0},e:{r:0,c:0}},o=r||{},c=o.range!=null?o.range:e["!ref"];switch(o.header===1?n=1:o.header==="A"?n=2:Array.isArray(o.header)?n=3:o.header==null&&(n=0),typeof c){case"string":l=Ie(c);break;case"number":l=Ie(e["!ref"]),l.s.r=c;break;default:l=c}n>0&&(i=0);var h=Ze(l.s.r),u=[],x=[],v=0,d=0,m=Array.isArray(e),y=l.s.r,A=0,F={};m&&!e[y]&&(e[y]=[]);var I=o.skipHidden&&e["!cols"]||[],z=o.skipHidden&&e["!rows"]||[];for(A=l.s.c;A<=l.e.c;++A)if(!(I[A]||{}).hidden)switch(u[A]=rt(A),t=m?e[y][A]:e[u[A]+h],n){case 1:a[A]=A-l.s.c;break;case 2:a[A]=u[A];break;case 3:a[A]=o.header[A-l.s.c];break;default:if(t==null&&(t={w:"__EMPTY",t:"s"}),f=s=Kt(t,null,o),d=F[s]||0,!d)F[s]=1;else{do f=s+"_"+d++;while(F[f]);F[s]=d,F[f]=1}a[A]=f}for(y=l.s.r+i;y<=l.e.r;++y)if(!(z[y]||{}).hidden){var ee=fm(e,l,y,u,n,a,m,o);(ee.isempty===!1||(n===1?o.blankrows!==!1:o.blankrows))&&(x[v++]=ee.row)}return x.length=v,x}var I0=/"/g;function lm(e,r,t,n,i,a,s,f){for(var l=!0,o=[],c="",h=Ze(t),u=r.s.c;u<=r.e.c;++u)if(n[u]){var x=f.dense?(e[t]||[])[u]:e[n[u]+h];if(x==null)c="";else if(x.v!=null){l=!1,c=""+(f.rawNumbers&&x.t=="n"?x.v:Kt(x,null,f));for(var v=0,d=0;v!==c.length;++v)if((d=c.charCodeAt(v))===i||d===a||d===34||f.forceQuotes){c='"'+c.replace(I0,'""')+'"';break}c=="ID"&&(c='"ID"')}else x.f!=null&&!x.F?(l=!1,c="="+x.f,c.indexOf(",")>=0&&(c='"'+c.replace(I0,'""')+'"')):c="";o.push(c)}return f.blankrows===!1&&l?null:o.join(s)}function Aa(e,r){var t=[],n=r??{};if(e==null||e["!ref"]==null)return"";var i=Ie(e["!ref"]),a=n.FS!==void 0?n.FS:",",s=a.charCodeAt(0),f=n.RS!==void 0?n.RS:`
|
||
`,l=f.charCodeAt(0),o=new RegExp((a=="|"?"\\|":a)+"+$"),c="",h=[];n.dense=Array.isArray(e);for(var u=n.skipHidden&&e["!cols"]||[],x=n.skipHidden&&e["!rows"]||[],v=i.s.c;v<=i.e.c;++v)(u[v]||{}).hidden||(h[v]=rt(v));for(var d=0,m=i.s.r;m<=i.e.r;++m)(x[m]||{}).hidden||(c=lm(e,i,m,h,s,l,a,n),c!=null&&(n.strip&&(c=c.replace(o,"")),(c||n.blankrows!==!1)&&t.push((d++?f:"")+c)));return delete n.dense,t.join("")}function Jf(e,r){r||(r={}),r.FS=" ",r.RS=`
|
||
`;var t=Aa(e,r);return t}function om(e){var r="",t,n="";if(e==null||e["!ref"]==null)return[];var i=Ie(e["!ref"]),a="",s=[],f,l=[],o=Array.isArray(e);for(f=i.s.c;f<=i.e.c;++f)s[f]=rt(f);for(var c=i.s.r;c<=i.e.r;++c)for(a=Ze(c),f=i.s.c;f<=i.e.c;++f)if(r=s[f]+a,t=o?(e[c]||[])[f]:e[r],n="",t!==void 0){if(t.F!=null){if(r=t.F,!t.f)continue;n=t.f,r.indexOf(":")==-1&&(r=r+":"+r)}if(t.f!=null)n=t.f;else{if(t.t=="z")continue;if(t.t=="n"&&t.v!=null)n=""+t.v;else if(t.t=="b")n=t.v?"TRUE":"FALSE";else if(t.w!==void 0)n="'"+t.w;else{if(t.v===void 0)continue;t.t=="s"?n="'"+t.v:n=""+t.v}}l[l.length]=r+"="+n}return l}function qf(e,r,t){var n=t||{},i=+!n.skipHeader,a=e||{},s=0,f=0;if(a&&n.origin!=null)if(typeof n.origin=="number")s=n.origin;else{var l=typeof n.origin=="string"?Ge(n.origin):n.origin;s=l.r,f=l.c}var o,c={s:{c:0,r:0},e:{c:f,r:s+r.length-1+i}};if(a["!ref"]){var h=Ie(a["!ref"]);c.e.c=Math.max(c.e.c,h.e.c),c.e.r=Math.max(c.e.r,h.e.r),s==-1&&(s=h.e.r+1,c.e.r=s+r.length-1+i)}else s==-1&&(s=0,c.e.r=r.length-1+i);var u=n.header||[],x=0;r.forEach(function(d,m){Qe(d).forEach(function(y){(x=u.indexOf(y))==-1&&(u[x=u.length]=y);var A=d[y],F="z",I="",z=Se({c:f+x,r:s+m+i});o=vn(a,z),A&&typeof A=="object"&&!(A instanceof Date)?a[z]=A:(typeof A=="number"?F="n":typeof A=="boolean"?F="b":typeof A=="string"?F="s":A instanceof Date?(F="d",n.cellDates||(F="n",A=ut(A)),I=n.dateNF||Me[14]):A===null&&n.nullError&&(F="e",A=0),o?(o.t=F,o.v=A,delete o.w,delete o.R,I&&(o.z=I)):a[z]=o={t:F,v:A},I&&(o.z=I))})}),c.e.c=Math.max(c.e.c,f+u.length-1);var v=Ze(s);if(i)for(x=0;x<u.length;++x)a[rt(x+f)+v]={t:"s",v:u[x]};return a["!ref"]=$e(c),a}function cm(e,r){return qf(null,e,r)}function vn(e,r,t){if(typeof r=="string"){if(Array.isArray(e)){var n=Ge(r);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[r]||(e[r]={t:"z"})}return typeof r!="number"?vn(e,Se(r)):vn(e,Se({r,c:t||0}))}function um(e,r){if(typeof r=="number"){if(r>=0&&e.SheetNames.length>r)return r;throw new Error("Cannot find sheet # "+r)}else if(typeof r=="string"){var t=e.SheetNames.indexOf(r);if(t>-1)return t;throw new Error("Cannot find sheet name |"+r+"|")}else throw new Error("Cannot find sheet |"+r+"|")}function hm(){return{SheetNames:[],Sheets:{}}}function dm(e,r,t,n){var i=1;if(!t)for(;i<=65535&&e.SheetNames.indexOf(t="Sheet"+i)!=-1;++i,t=void 0);if(!t||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(t)>=0){var a=t.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var s=a&&a[1]||t;for(++i;i<=65535&&e.SheetNames.indexOf(t=s+i)!=-1;++i);}if(Wf(t),e.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");return e.SheetNames.push(t),e.Sheets[t]=r,t}function xm(e,r,t){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=um(e,r);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),t){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+t)}e.Workbook.Sheets[n].Hidden=t}function pm(e,r){return e.z=r,e}function Zf(e,r,t){return r?(e.l={Target:r},t&&(e.l.Tooltip=t)):delete e.l,e}function vm(e,r,t){return Zf(e,"#"+r,t)}function mm(e,r,t){e.c||(e.c=[]),e.c.push({t:r,a:t||"SheetJS"})}function gm(e,r,t,n){for(var i=typeof r!="string"?r:Ie(r),a=typeof r=="string"?r:$e(r),s=i.s.r;s<=i.e.r;++s)for(var f=i.s.c;f<=i.e.c;++f){var l=vn(e,s,f);l.t="n",l.F=a,delete l.v,s==i.s.r&&f==i.s.c&&(l.f=t,n&&(l.D=!0))}return e}var _m={encode_col:rt,encode_row:Ze,encode_cell:Se,encode_range:$e,decode_col:ha,decode_row:ua,split_cell:Nh,decode_cell:Ge,decode_range:_t,format_cell:Kt,sheet_add_aoa:Zs,sheet_add_json:qf,sheet_add_dom:zf,aoa_to_sheet:jr,json_to_sheet:cm,table_to_sheet:jf,table_to_book:Wv,sheet_to_csv:Aa,sheet_to_txt:Jf,sheet_to_json:ri,sheet_to_html:Xf,sheet_to_formulae:om,sheet_to_row_object_array:ri,sheet_get_cell:vn,book_new:hm,book_append_sheet:dm,book_set_sheet_visibility:xm,cell_set_number_format:pm,cell_set_hyperlink:Zf,cell_set_internal_link:vm,cell_add_comment:mm,sheet_set_array_formula:gm,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};/**
|
||
* Exports the generated truth table to an excel (.xlsx) file
|
||
*
|
||
* @param type The downloaded files extension. Default is "xlsx"
|
||
* @param name The name of the file, excluding the extension. Default is "Truth Table"
|
||
* @param dl
|
||
* @param tableId The id of the table to export
|
||
* @returns {any}
|
||
* @author SheetJS
|
||
* @link https://cdn.sheetjs.com/
|
||
* @license Apache 2.0 License
|
||
* SheetJS Community Edition -- https://sheetjs.com/
|
||
*
|
||
* Copyright (C) 2012-present SheetJS LLC
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/function Em({type:e="xlsx",name:r="Truth Table",dl:t=!1,tableId:n}){const i=document.getElementById(n),a=_m.table_to_book(i,{sheet:"sheet1"});return t?Sa(a,{bookType:e,bookSST:!0,type:"base64"}):sm(a,r+"."+e)}function Tm(){return"ontouchstart"in window||navigator.maxTouchPoints>0}function wm(e){return e=e.replaceAll(/\//g,"|"),e=e.replaceAll(/¬/g,"!"),e=e.replaceAll(/\sOR\s/gi," | "),e=e.replaceAll(/\sAND\s/gi," & "),e=e.replaceAll(/\s(IMPLICATION|IMP)\s/gi," -> "),e=e.replaceAll(/\sNOT\s/gi," !"),e}const Sm=fe('<span class="h-min">Simplify: '),k0=fe('<div class="h-min relative">'),Am=fe("<p>Filename:"),Qf=fe("<p>"),ym=fe('<div class="flex justify-center m-2"><div id="table" class="h-[45rem] overflow-auto">'),Fm=fe('<div id="truth-content"><div class="max-w-2xl mx-auto"><form class="flex-row-center" autocomplete="off">'),Cm=fe('<p class="sr-only">Download'),Om=fe('<button class="hover:underline cursor-pointer last:mb-1 flex-row-center">'),Dm=fe('<table class="table"><tbody>'),Im=fe("<p>Fill in a truth expression and it will be simplified for you as much as possible. It will also genereate a truth table with all possible values. You can use a single letter, word or multiple words without spacing for each atomic value. If you do not want to simplify the expression, simply turn off the toggle. Keywords for operators are defined below. Parentheses is also allowed."),km=fe("<p>API docs can be found <!>."),Nm=fe("<p>using: "),Rm=fe("<td>using: "),Lm=fe('<tr class="border-b border-dotted border-gray-500"><td>:</td><td class="px-2">'),Pm=fe("<span>"),Mm=fe('<table><thead><tr class="text-left"><th>Name</th><th class="pr-2">API</th><th>Other</th></tr></thead><tbody><tr><td>Not:</td><td>!</td><td>NOT</td></tr><tr><td>And:</td><td>&</td><td>AND</td></tr><tr><td>Or:</td><td>|</td><td>/</td><td>OR</td></tr><tr><td class="pr-2">Implication:</td><td>-></td><td class="px-2">IMPLICATION</td><td>IMP'),bm=["http://localhost:8080/simplify/table/","https://api.martials.no/simplify-truths/simplify/table/"],Bm=()=>{const[e,r]=_o();let t,n=e.simplify===void 0||e.simplify==="true",i=!!e.exp,a=e.hideIntermediate==="true";const[s,f]=ye(n),[l,o]=ye(null),c=[{name:"Show all result",value:"NONE"},{name:"Hide true results",value:"TRUE"},{name:"Hide false results",value:"FALSE"}],[h,u]=ye(c[0]),x=[{name:"Sort by default",value:"DEFAULT"},{name:"Sort by true first",value:"TRUE_FIRST"},{name:"Sort by false first",value:"FALSE_FIRST"}],[v,d]=ye(x[0]),[m,y]=ye(a),[A,F]=ye(null),[I,z]=ye(null),[ee,D]=ye(!1);function V(K){K.preventDefault();const ce=t?.value;ce&&(r({exp:ce,simplify:s(),hide:h().value,sort:v().value,hideIntermediate:m()}),P(ce))}function P(K){o(null),K&&K!==""&&(K=wm(K),z(null),F(!1),fetch(`${bm[ee()?0:1]}${encodeURIComponent(K)}?
|
||
simplify=${s()}&hide=${h().value}&sort=${v().value}&caseSensitive=false&
|
||
hideIntermediate=${m()}`).then(ce=>ce.json()).then(ce=>ce.status!=="OK"&&!ce.ok?z({title:"Input error",message:ce.message}):o(ce)).catch(ce=>z({title:"Fetch error",message:ce.toString()})).finally(()=>F(!0)))}M0(()=>{if(e.exp){const K=e.exp;K&&t&&(t.value=K);const ce=e.hide;ce&&u(c.find(de=>de.value===ce)??c[0]);const le=e.sort;le&&d(x.find(de=>de.value===le)??x[0]),P(K)}Tm()||t?.focus()});const b="truth-table",U="excel-filename";function G(){const K=Wr(U)?.value;Em({name:K!==""?K:void 0,tableId:b})}return H(Zi,{title:"Truth tables",get children(){return[H(Ye,{get when(){return!1},keyed:!0,get children(){return["(DEV) Use localhost:",H(Di,{title:"Use localhost",defaultValue:!1,onChange:D})]}}),(()=>{const K=Fm(),ce=K.firstChild,le=ce.firstChild;return ie(ce,H(Wm,{}),le),le.addEventListener("submit",V),ie(le,H(wc,{ref(de){const xe=t;typeof xe=="function"?xe(de):t=de},typingDefault:i}),null),ie(le,H(Hn,{id:"truth-input-button",title:"Generate (Enter)",type:"submit",className:"min-w-50px h-10 ml-2",children:"Generate"}),null),ie(ce,H(es,{className:"my-1 gap-2",get children(){return[Sm(),H(Di,{onChange:f,get defaultValue(){return s()},title:"Simplify",name:"Turn on/off simplify expressions",className:"mx-1"}),(()=>{const de=k0();return ie(de,H(Ga,{title:"Filter results",id:"filter-results",get button(){return H(Ye,{get when(){return h().value!=="NONE"},get children(){return H(Pt,{path:Ko,"aria-label":"An eye with a slash through it",get class(){return`mx-1 ${h().value==="TRUE"?"text-green-500":"text-red-500"}`}})},get fallback(){return H(Pt,{path:Yo,"aria-label":"An eye",class:"mx-1"})},keyed:!0})},get children(){return H(tr,{each:c,children:xe=>H(N0,{onClick:()=>u(xe),option:xe,currentValue:h})})},itemsClassName:"right-0"})),de})(),(()=>{const de=k0();return ie(de,H(Ga,{title:"Sort results",id:"sort-results",get button(){return H(Pt,{path:Jo,"aria-label":"Filter",get class(){return`h-6 w-6 ${v().value==="TRUE_FIRST"?"text-green-500":v().value==="FALSE_FIRST"&&"text-red-500"}`}})},get children(){return H(tr,{each:x,children:xe=>H(N0,{option:xe,currentValue:v,onClick:()=>d(xe)})})},itemsClassName:"right-0"})),de})(),H(Di,{title:"Hide intermediate values",onChange:y,get defaultValue(){return m()}}),H(Ye,{get when(){return De(()=>!!A())()&&I()===null},keyed:!0,get children(){return H(Ou,{title:"Download",description:"Export current table (.xlsx)",get button(){return[Cm(),H(Pt,{"aria-label":"Download",path:Vo})]},callback:G,acceptButtonName:"Download",cancelButtonName:"Cancel",buttonClass:"float-right",buttonTitle:"Export current table",acceptButtonId:"download-accept",get children(){return[Am(),H(ts,{className:"border-rounded h-10 px-2",id:U,placeholder:"Truth Table"})]}})}})]}}),null),ie(ce,H(Ye,{get when(){return I()},keyed:!0,get children(){return H(Um,{get title(){return I()?.title??"Error"},get error(){return I()?.message??"Something went wrong"}})}}),null),ie(ce,H(Ye,{get when(){return A()===!1},keyed:!0,get children(){return H(Pt,{path:Go,"aria-label":"Loading indicator",class:"animate-spin mx-auto"})}}),null),ie(ce,H(Ye,{get when(){return De(()=>!!s())()&&(l()?.orderOperations?.length??0)>0},keyed:!0,get children(){return H($m,{fetchResult:l})}}),null),ie(K,H(Ye,{get when(){return De(()=>!!A())()&&I()===null},keyed:!0,get children(){return[H(Ye,{get when(){return s()},keyed:!0,get children(){return H(ps,{className:"w-fit mx-auto pb-1 text-lg text-center",title:"Output:",id:"expression-output",get children(){const de=Qf();return ie(de,()=>l()?.after),de}})}}),(()=>{const de=ym(),xe=de.firstChild;return ie(xe,H(Cc,{get header(){return l()?.header??void 0},get table(){return l()?.table?.truthMatrix},id:b})),de})()]}}),null),K})()]}})},N0=({option:e,currentValue:r,onClick:t})=>{const n=()=>r?.().value===e.value;return(()=>{const i=Om();return qi(i,"click",t,!0),ie(i,H(Pt,{path:Xo,get"aria-label"(){return n()?"A checkmark":"Nothing"},get class(){return`text-white ${!n()&&"invisible"}`}}),null),ie(i,()=>e.name,null),i})()},Um=({title:e,error:r})=>H(ps,{className:"w-fit text-center mx-auto",title:e,error:!0,get children(){const t=Qf();return ie(t,r),t}}),$m=({fetchResult:e})=>H(vs,{get children(){return H(ra,{title:"Show me how it's done",get children(){const r=Dm(),t=r.firstChild;return ie(t,H(tr,{get each(){return e()?.orderOperations},get children(){return Hm()}})),r}})}}),Wm=()=>H(vs,{get children(){return[H(ra,{title:"How to",get children(){return[Im(),(()=>{const e=km(),r=e.firstChild,t=r.nextSibling;return t.nextSibling,ie(e,H(Xr,{to:"https://api.martials.no/simplify-truths",children:"here"}),t),e})()]}}),H(Vm,{})]}}),Hm=()=>(e,r)=>(()=>{const t=Lm(),n=t.firstChild,i=n.firstChild,a=n.nextSibling;return ie(n,()=>r()+1,i),ie(a,()=>H(tr,{get each(){return mu(e.before,e.after)},children:s=>(()=>{const f=Pm();return ie(f,()=>s.value),Dt(()=>be(f,`${s.added&&"bg-green-700"} ${s.removed&&"bg-red-700"}`)),f})()}),null),ie(a,H(Ye,{get when(){return typeof window<"u"&&window.outerWidth<=640},keyed:!0,get children(){const s=Nm();return s.firstChild,ie(s,()=>e.law,null),s}}),null),ie(t,H(Ye,{get when(){return typeof window<"u"&&window.outerWidth>640},keyed:!0,get children(){const s=Rm();return s.firstChild,ie(s,()=>e.law,null),s}}),null),t})(),Vm=()=>H(ra,{title:"Keywords",get children(){return Mm()}});Gr(["click"]);const Gm=fe('<div class="text-center"><h4>Error 404 - Siden ble ikke funnet</h4><p>'),Xm=()=>H(Zi,{title:"Siden ble ikke funnet",get children(){const e=Gm(),r=e.firstChild,t=r.nextSibling;return ie(t,H(Xr,{to:"/",newTab:!1,className:"mx-auto relative w-max",children:"Gå tilbake til forsiden"})),e}}),zm=()=>H(Co,{get children(){return[H(Oi,{path:"/",get element(){return H(xc,{})}}),H(Oi,{path:"/simplify-truths",get element(){return H(Bm,{})}}),H(Oi,{path:"*",get element(){return H(Xm,{})}})]}});Vl(()=>H(Fo,{get children(){return H(zm,{})}}),document.getElementById("root"));
|